Changeset 2956409 for pressidium-cookie-consent
- Timestamp:
- 08/21/2023 07:57:36 PM (3 years ago)
- Location:
- pressidium-cookie-consent
- Files:
-
- 14 edited
- 1 copied
-
tags/1.1.4 (copied) (copied from pressidium-cookie-consent/trunk)
-
tags/1.1.4/pressidium-cookie-consent.php (modified) (2 diffs)
-
tags/1.1.4/public/bundle.admin.asset.php (modified) (1 diff)
-
tags/1.1.4/public/bundle.admin.js (modified) (1 diff)
-
tags/1.1.4/readme.txt (modified) (2 diffs)
-
tags/1.1.4/vendor/autoload.php (modified) (1 diff)
-
tags/1.1.4/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/1.1.4/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/pressidium-cookie-consent.php (modified) (2 diffs)
-
trunk/public/bundle.admin.asset.php (modified) (1 diff)
-
trunk/public/bundle.admin.js (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pressidium-cookie-consent/tags/1.1.4/pressidium-cookie-consent.php
r2947881 r2956409 4 4 * Plugin URI: https://github.com/pressidium/pressidium-cookie-consent/ 5 5 * Description: Lightweight, user-friendly and customizable cookie consent banner to help you comply with the EU GDPR cookie law and CCPA regulations. 6 * Version: 1.1. 36 * Version: 1.1.4 7 7 * Author: Pressidium 8 8 * Author URI: https://pressidium.com/ … … 28 28 function setup_constants(): void { 29 29 if ( ! defined( 'Pressidium\WP\CookieConsent\VERSION' ) ) { 30 define( 'Pressidium\WP\CookieConsent\VERSION', '1.1. 3' );30 define( 'Pressidium\WP\CookieConsent\VERSION', '1.1.4' ); 31 31 } 32 32 -
pressidium-cookie-consent/tags/1.1.4/public/bundle.admin.asset.php
r2947881 r2956409 1 <?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => ' e49b38c8b89fe85b6e48');1 <?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'a95e918d8ca0a5b91874'); -
pressidium-cookie-consent/tags/1.1.4/public/bundle.admin.js
r2947881 r2956409 63 63 color: #0073aa; 64 64 }, 65 `,PN=function(){const{state:M,dispatch:L}=(0,j.useContext)(N),u=(0,j.useMemo)((()=>M.pressidium_options.blocked_scripts?M.pressidium_options.blocked_scripts:[]),[M]),S=(0,j.useCallback)((()=>{L({type:"ADD_BLOCKED_SCRIPT"})}),[]),D=(0,j.useCallback)(((M,j,N)=>{L({type:"UPDATE_BLOCKED_SCRIPT",payload:{index:M,key:j,value:N}})}),[]),t=(0,j.useCallback)((M=>{L({type:"DELETE_BLOCKED_SCRIPT",payload:{index:M}})}),[]),i=(0,j.useMemo)((()=>Array.isArray(u)&&u.length>0),[u]);return(0,j.createElement)(I.Flex,{direction:"column",gap:4,style:{width:"100%"}},(0,j.createElement)(I.FlexItem,null,i?(0,j.createElement)(Tj,{width:"100%"},(0,j.createElement)(Dj,null,(0,j.createElement)(yj,null,(0,y.__)("Script Source","pressidium-cookie-consent")),(0,j.createElement)(yj,null,(0,y.__)("Cookie Category","pressidium-cookie-consent")),(0,j.createElement)(yj,{style:{maxWidth:"70px"}},(0,y.__)("Is Regex?","pressidium-cookie-consent")),(0,j.createElement)(yj,{style:{maxWidth:"50px"}},(0,y.__)("Actions","pressidium-cookie-consent"))),u.map(((M,L)=>(0,j.createElement)(tj,null,(0,j.createElement)(yj,null,(0,j.createElement)(I.TextControl,{value:M.src,placeholder:"https://example.com/script.js",onChange:M=>D(L,"src",M)})),(0,j.createElement)(yj,null,(0,j.createElement)(I.SelectControl,{value:M.category,options:[{label:(0,y.__)("Analytics","pressidium-cookie-consent"),value:"analytics"},{label:(0,y.__)("Targeting","pressidium-cookie-consent"),value:"targeting"}],onChange:M=>D(L,"category",M)})),(0,j.createElement)(yj,{style:{maxWidth:"70px"}},(0,j.createElement)(I.ToggleControl,{checked:M.is_regex,onChange:M=>D(L,"is_regex",M),className:"pressidium-no-margin"})),(0,j.createElement)(yj,{style:{maxWidth:"50px",lineHeight:1}},(0,j.createElement)(GN,{icon:Nj,label:(0,y.__)("Delete","pressidium-cookie-consent"),onClick:()=>t(L)})))))):(0,j.createElement)("p",null,(0,y.__)("No blocked scripts.","pressidium-cookie-consent"))),(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Button,{icon:uj,onClick:S,style:{paddingRight:"10px"},isPrimary:!0},(0,y.__)("New Script","pressidium-cookie-consent"))))},ZN=function(){return(0,j.createElement)(I.Panel,null,(0,j.createElement)(I.PanelBody,{initialOpen:!0},(0,j.createElement)(I.PanelRow,null,(0,j.createElement)("p",null,(0,y.__)("Make sure that you’ve enabled the “Page Scripts” option, located under the General tab.","pressidium-cookie-consent"))),(0,j.createElement)(I.PanelRow,null,(0,j.createElement)("p",null,(0,y.__)("Script blocking may not always be effective due to variations in script loading methods.","pressidium-cookie-consent"))),(0,j.createElement)(I.PanelRow,null,(0,j.createElement)(PN,null))))},hN=(0,j.createElement)(WM.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,j.createElement)(WM.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"})),vN=function(M){const{logs:L}=M;return null===L||0===L.length?(0,j.createElement)("p",null,(0,y.__)("There are no logs yet.","pressidium-cookie-consent")):(0,j.createElement)(I.TextareaControl,{label:"Logs",value:L,rows:12,disabled:!0})},BN=function(M){const{isOpen:L,onClose:N,clearLogs:u}=M;return L?(0,j.createElement)(I.Modal,{title:(0,y.__)("Clear logs?","pressidium-cookie-consent"),onRequestClose:N},(0,j.createElement)(I.Flex,{direction:"column"},(0,j.createElement)("p",null,(0,j.createElement)("strong",null,(0,y.__)("This action cannot be undone.","pressidium-cookie-consent"))," ",(0,y.__)("You are about to clear all logs. Are you sure you want to proceed?","pressidium-cookie-consent")),(0,j.createElement)(I.Flex,{justify:"flex-end"},(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Button,{variant:"tertiary",onClick:N},(0,y.__)("Cancel","pressidium-cookie-consent"))),(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Button,{variant:"primary",className:"is-destructive",onClick:()=>{u(),N()}},(0,y.__)("Clear logs","pressidium-cookie-consent")))))):null},RN=function(){const[M,L]=(0,j.useState)(""),[N,u]=(0,j.useState)(!1),[S,D]=(0,j.useState)(!1),[t,z]=(0,j.useState)(!1),T=(0,j.useCallback)((()=>z(!0)),[]),g=(0,j.useCallback)((()=>z(!1)),[]),e=async()=>{u(!0);try{const M=await(async()=>{const{logs_route:M,nonce:j}=pressidiumCCAdminDetails.api,L={path:`${M}?nonce=${j}`,method:"GET"},N=await i()(L);if(!("success"in N)||!N.success||!("data"in N))throw console.error("Error fetching logs",N),new Error("Invalid response while fetching logs");const{data:u}=N;return u})();L(M)}catch(M){console.error("Could not fetch logs",M)}u(!1)},x=async()=>{const{logs_route:M,nonce:j}=pressidiumCCAdminDetails.api,L={path:M,method:"DELETE",data:{nonce:j}};try{await i()(L),await e()}catch(M){console.error("Error clearing logs",M)}};(0,j.useEffect)((()=>{let M=null;return(async()=>{M=setInterval(e,3e3),await e()})(),()=>{L(""),u(!1),null!==M&&clearInterval(M)}}),[]);const A=(0,j.useCallback)((async()=>{try{await navigator.clipboard.writeText(M)}catch(M){console.error("Could not copy logs to clipboard",M)}}),[M]),E=(0,j.useCallback)((()=>{(async()=>{D(!0),await x(),D(!1)})()}),[x]);return(0,j.createElement)(I.Panel,null,(0,j.createElement)(I.PanelBody,{initialOpen:!0},(0,j.createElement)(I.PanelRow,null,(0,j.createElement)("p",null,(0,y.__)("In this section, you’ll find vital debugging logs. If you encounter any issues, open an issue and include these logs for reference in our investigation.","pressidium-cookie-consent"))),(0,j.createElement)(I.PanelRow,null,(0,j.createElement)(I.Flex,{direction:"column",gap:4,style:{width:"100%"}},(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(vN,{logs:M})),(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Flex,{justify:"flex-start"},(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Button,{variant:"secondary",icon:hN,onClick:A,style:{paddingRight:"10px"},disabled:""===M||null===M},(0,y.__)("Copy to clipboard","pressidium-cookie-consent"))),(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Button,{variant:"secondary",className:"is-destructive",onClick:T,disabled:S,isBusy:S},(0,y.__)("Clear logs","pressidium-cookie-consent")),(0,j.createElement)(BN,{isOpen:t,onClose:g,clearLogs:E})),N?(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Spinner,null)):null))))))},HN=function(){const[M,L]=(0,j.useState)(!1),[u,S]=(0,j.useState)(!1),[D,t]=(0,j.useState)("info"),[T,g]=(0,j.useState)(null),{state:e,dispatch:x}=(0,j.useContext)(N),A=(0,j.useCallback)((()=>{t("info"),g(null)}),[]),E=async()=>{const{route:M}=pressidiumCCAdminDetails.api,j={path:M,method:"GET"},L=await i()(j);if(!("success"in L)||!L.success||!("data"in L))throw console.error("Error fetching settings",L),new Error("Invalid response while fetching settings");const{data:N}=L;return N},c=async M=>{const{route:j,nonce:L}=pressidiumCCAdminDetails.api,N={path:j,method:"POST",data:{settings:M,nonce:L}};try{const M=await i()(N);"success"in M&&M.success?(t("success"),g((0,y.__)("Settings saved successfully.","pressidium-cookie-consent"))):(t("error"),g((0,y.__)("Could not save settings.","pressidium-cookie-consent")))}catch(M){"code"in M&&"invalid_nonce"===M.code?(t("error"),g((0,y.__)("Could not pass security check.","pressidium-cookie-consent"))):(t("error"),g((0,y.__)("Could not save settings.","pressidium-cookie-consent")))}S(!1)},w=(0,j.useMemo)((()=>{const M={...e},j=M.pressidium_options.cookie_table.analytics,L=M.pressidium_options.cookie_table.targeting,N=M.pressidium_options.primary_btn_role,u=M.pressidium_options.secondary_btn_role;return Object.keys(M.languages).forEach((S=>{M.languages[S].settings_modal.blocks[2].cookie_table=j,M.languages[S].settings_modal.blocks[3].cookie_table=L,M.languages[S].consent_modal.primary_btn.role=N,M.languages[S].consent_modal.secondary_btn.role=u})),M}),[e]),O=function(){let M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const j=document.querySelector("#pressidium-cc-styles");if(j){let M="";Object.keys(w.pressidium_options.colors).forEach((j=>{const L=w.pressidium_options.colors[j];M+=`--cc-${j}: ${L};\n`})),j.innerHTML=`\n .pressidium-cc-theme {\n ${M}\n }\n `}const L=window.pressidiumCookieConsent.getConfig("cookie_name");var N;window.pressidiumCookieConsent.eraseCookies(L),(N=document.querySelector("#cc--main"))&&N.parentNode.removeChild(N),window.pressidiumCookieConsent=window.initCookieConsent(),window.pressidiumCookieConsent.run({...w,...M})};!function(M){null!=M&&"function"!=typeof M&&function(M,j){throw new Error("Invariant failed")}();var j=(0,z.useRef)();(0,z.useEffect)((function(){j.current=function(j){var L=null==M?void 0:M(j);return"string"==typeof L?j.returnValue=L:j.defaultPrevented?j.returnValue="":void 0}}),[M]),(0,z.useEffect)((function(){var M=function(M){return j.current(M)};return window.addEventListener("beforeunload",M),function(){window.removeEventListener("beforeunload",M)}}),[])}( (M=>{if(!u)return"";const j=(0,y.__)("You have unsaved changes. Are you sure you want to leave?","pressidium-cookie-consent");return M.preventDefault(),M.returnValue=j,j}));const o=(M=>{const L=(0,j.useRef)();return(0,j.useEffect)((()=>{L.current=M}),[M]),L.current})(e);return(0,j.useEffect)((()=>{o&&!M&&S(!0)}),[e]),(0,j.useEffect)((()=>{(async()=>{L(!0);try{const M=await E();x({type:"SET_SETTINGS",payload:M})}catch(M){console.error("Could not fetch settings",M)}L(!1)})()}),[]),M?(0,j.createElement)(I.Spinner,null):(0,j.createElement)(j.Fragment,null,T&&(0,j.createElement)(I.Notice,{status:D,onDismiss:A},T),(0,j.createElement)(BM,null,(0,j.createElement)(I.TabPanel,{className:"my-tab-panel",activeClass:"active-tab",tabs:[{name:"general",title:(0,y.__)("General","pressidium-cookie-consent"),className:"tab-general",Component:KM},{name:"cookies",title:(0,y.__)("Cookies","pressidium-cookie-consent"),className:"tab-cookies",Component:xj},{name:"translations",title:(0,y.__)("Translations","pressidium-cookie-consent"),className:"tab-translations",Component:mN},{name:"consent-modal",title:(0,y.__)("Consent Modal","pressidium-cookie-consent"),className:"tab-consent-modal",Component:bN},{name:"settings-modal",title:(0,y.__)("Settings Modal","pressidium-cookie-consent"),className:"tab-settings-modal",Component:pN},{name:"blocked-scripts",title:(0,y.__)("Blocked Scripts","pressidium-cookie-consent"),className:"tab-blocked-scripts",Component:ZN},{name:"logs",title:(0,y.__)("Logs","pressidium-cookie-consent"),className:"tab-logs",Component:RN}]},(M=>{let{Component:L}=M;return(0,j.createElement)(L,null)})),(0,j.createElement)(_M,{save:()=>c(e),previewConsentModal:()=>{O(),window.pressidiumCookieConsent.show()},previewSettingsModal:()=>{O({autorun:!1}),window.pressidiumCookieConsent.showSettings()},hasUnsavedChanges:u,exportSettings:async()=>{try{(M=>{const j=new Blob([JSON.stringify(M)],{type:"text/json;charset=utf-8"}),L=URL.createObjectURL(j),N=`pressidium-cookie-consent-settings_${(()=>{const M=new Date;return`${M.getFullYear()}-${(M.getMonth()+1).toString().padStart(2,"0")}-${M.getDate().toString().padStart(2,"0")}_${M.getHours().toString().padStart(2,"0")}-${M.getMinutes().toString().padStart(2,"0")}-${M.getSeconds().toString().padStart(2,"0")}`})()}.json`,u=document.createElement("a");u.setAttribute("href",L),u.setAttribute("download",N),u.click(),u.remove(),URL.revokeObjectURL(L)})(await E())}catch(M){t("error"),g((0,y.__)("Could not export settings.","pressidium-cookie-consent"))}},importSettings:async M=>{try{if(0===M.length)throw new Error((0,y.__)("No files selected","pressidium-cookie-consent"));const[j]=M,L=await j.text(),N=JSON.parse(L);await c(N),x({type:"SET_SETTINGS",payload:N})}catch(M){console.error("Could not import settings",M),t("error"),g((0,y.__)("Could not import settings.","pressidium-cookie-consent"))}},resetSettings:async()=>{const{route:M,nonce:j}=pressidiumCCAdminDetails.api,L={path:M,method:"DELETE",data:{nonce:j}};try{const M=await i()(L);"success"in M&&M.success?(t("success"),g((0,y.__)("Settings reset successfully.","pressidium-cookie-consent"))):(t("error"),g((0,y.__)("Could not reset settings.","pressidium-cookie-consent")))}catch(M){"code"in M&&"invalid_nonce"===M.code?(t("error"),g((0,y.__)("Could not pass security check.","pressidium-cookie-consent"))):(t("error"),g((0,y.__)("Could not reset settings.","pressidium-cookie-consent")))}try{const M=await E();x({type:"SET_SETTINGS",payload:M})}catch(M){console.error("Could not reload default settings",M)}}})))};(0,j.render)((0,j.createElement)((function(){return(0,j.createElement)(D,null,(0,j.createElement)(HN,null))}),null),document.getElementById("pressidium-cookie-consent-root"))})()})();65 `,PN=function(){const{state:M,dispatch:L}=(0,j.useContext)(N),u=(0,j.useMemo)((()=>M.pressidium_options.blocked_scripts?M.pressidium_options.blocked_scripts:[]),[M]),S=(0,j.useCallback)((()=>{L({type:"ADD_BLOCKED_SCRIPT"})}),[]),D=(0,j.useCallback)(((M,j,N)=>{L({type:"UPDATE_BLOCKED_SCRIPT",payload:{index:M,key:j,value:N}})}),[]),t=(0,j.useCallback)((M=>{L({type:"DELETE_BLOCKED_SCRIPT",payload:{index:M}})}),[]),i=(0,j.useMemo)((()=>Array.isArray(u)&&u.length>0),[u]);return(0,j.createElement)(I.Flex,{direction:"column",gap:4,style:{width:"100%"}},(0,j.createElement)(I.FlexItem,null,i?(0,j.createElement)(Tj,{width:"100%"},(0,j.createElement)(Dj,null,(0,j.createElement)(yj,null,(0,y.__)("Script Source","pressidium-cookie-consent")),(0,j.createElement)(yj,null,(0,y.__)("Cookie Category","pressidium-cookie-consent")),(0,j.createElement)(yj,{style:{maxWidth:"70px"}},(0,y.__)("Is Regex?","pressidium-cookie-consent")),(0,j.createElement)(yj,{style:{maxWidth:"50px"}},(0,y.__)("Actions","pressidium-cookie-consent"))),u.map(((M,L)=>(0,j.createElement)(tj,null,(0,j.createElement)(yj,null,(0,j.createElement)(I.TextControl,{value:M.src,placeholder:"https://example.com/script.js",onChange:M=>D(L,"src",M)})),(0,j.createElement)(yj,null,(0,j.createElement)(I.SelectControl,{value:M.category,options:[{label:(0,y.__)("Analytics","pressidium-cookie-consent"),value:"analytics"},{label:(0,y.__)("Targeting","pressidium-cookie-consent"),value:"targeting"}],onChange:M=>D(L,"category",M)})),(0,j.createElement)(yj,{style:{maxWidth:"70px"}},(0,j.createElement)(I.ToggleControl,{checked:M.is_regex,onChange:M=>D(L,"is_regex",M),className:"pressidium-no-margin"})),(0,j.createElement)(yj,{style:{maxWidth:"50px",lineHeight:1}},(0,j.createElement)(GN,{icon:Nj,label:(0,y.__)("Delete","pressidium-cookie-consent"),onClick:()=>t(L)})))))):(0,j.createElement)("p",null,(0,y.__)("No blocked scripts.","pressidium-cookie-consent"))),(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Button,{icon:uj,onClick:S,style:{paddingRight:"10px"},isPrimary:!0},(0,y.__)("New Script","pressidium-cookie-consent"))))},ZN=function(){return(0,j.createElement)(I.Panel,null,(0,j.createElement)(I.PanelBody,{initialOpen:!0},(0,j.createElement)(I.PanelRow,null,(0,j.createElement)("p",null,(0,y.__)("Make sure that you’ve enabled the “Page Scripts” option, located under the General tab.","pressidium-cookie-consent"))),(0,j.createElement)(I.PanelRow,null,(0,j.createElement)("p",null,(0,y.__)("Script blocking may not always be effective due to variations in script loading methods.","pressidium-cookie-consent"))),(0,j.createElement)(I.PanelRow,null,(0,j.createElement)(PN,null))))},hN=(0,j.createElement)(WM.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,j.createElement)(WM.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"})),vN=function(M){const{logs:L}=M;return null===L||0===L.length?(0,j.createElement)("p",null,(0,y.__)("There are no logs yet.","pressidium-cookie-consent")):(0,j.createElement)(I.TextareaControl,{label:"Logs",value:L,rows:12,disabled:!0})},BN=function(M){const{isOpen:L,onClose:N,clearLogs:u}=M;return L?(0,j.createElement)(I.Modal,{title:(0,y.__)("Clear logs?","pressidium-cookie-consent"),onRequestClose:N},(0,j.createElement)(I.Flex,{direction:"column"},(0,j.createElement)("p",null,(0,j.createElement)("strong",null,(0,y.__)("This action cannot be undone.","pressidium-cookie-consent"))," ",(0,y.__)("You are about to clear all logs. Are you sure you want to proceed?","pressidium-cookie-consent")),(0,j.createElement)(I.Flex,{justify:"flex-end"},(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Button,{variant:"tertiary",onClick:N},(0,y.__)("Cancel","pressidium-cookie-consent"))),(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Button,{variant:"primary",className:"is-destructive",onClick:()=>{u(),N()}},(0,y.__)("Clear logs","pressidium-cookie-consent")))))):null},RN=function(){const[M,L]=(0,j.useState)(""),[N,u]=(0,j.useState)(!1),[S,D]=(0,j.useState)(!1),[t,z]=(0,j.useState)(!1),T=(0,j.useCallback)((()=>z(!0)),[]),g=(0,j.useCallback)((()=>z(!1)),[]),e=async()=>{u(!0);try{const M=await(async()=>{const{logs_route:M,nonce:j}=pressidiumCCAdminDetails.api,L={path:`${M}?nonce=${j}`,method:"GET"},N=await i()(L);if(!("success"in N)||!N.success||!("data"in N))throw console.error("Error fetching logs",N),new Error("Invalid response while fetching logs");const{data:u}=N;return u})();L(M)}catch(M){console.error("Could not fetch logs",M)}u(!1)},x=async()=>{const{logs_route:M,nonce:j}=pressidiumCCAdminDetails.api,L={path:M,method:"DELETE",data:{nonce:j}};try{await i()(L),await e()}catch(M){console.error("Error clearing logs",M)}};(0,j.useEffect)((()=>{let M=null;return(async()=>{M=setInterval(e,3e3),await e()})(),()=>{L(""),u(!1),null!==M&&clearInterval(M)}}),[]);const A=(0,j.useCallback)((async()=>{try{await navigator.clipboard.writeText(M)}catch(M){console.error("Could not copy logs to clipboard",M)}}),[M]),E=(0,j.useCallback)((()=>{(async()=>{D(!0),await x(),D(!1)})()}),[x]);return(0,j.createElement)(I.Panel,null,(0,j.createElement)(I.PanelBody,{initialOpen:!0},(0,j.createElement)(I.PanelRow,null,(0,j.createElement)("p",null,(0,y.__)("In this section, you’ll find vital debugging logs. If you encounter any issues, open an issue and include these logs for reference in our investigation.","pressidium-cookie-consent"))),(0,j.createElement)(I.PanelRow,null,(0,j.createElement)(I.Flex,{direction:"column",gap:4,style:{width:"100%"}},(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(vN,{logs:M})),(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Flex,{justify:"flex-start"},(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Button,{variant:"secondary",icon:hN,onClick:A,style:{paddingRight:"10px"},disabled:""===M||null===M},(0,y.__)("Copy to clipboard","pressidium-cookie-consent"))),(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Button,{variant:"secondary",className:"is-destructive",onClick:T,disabled:S,isBusy:S},(0,y.__)("Clear logs","pressidium-cookie-consent")),(0,j.createElement)(BN,{isOpen:t,onClose:g,clearLogs:E})),N?(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Spinner,null)):null))))))},HN=function(){const[M,L]=(0,j.useState)(!1),[u,S]=(0,j.useState)(!1),[D,t]=(0,j.useState)("info"),[T,g]=(0,j.useState)(null),{state:e,dispatch:x}=(0,j.useContext)(N),A=(0,j.useCallback)((()=>{t("info"),g(null)}),[]),E=async()=>{const{route:M}=pressidiumCCAdminDetails.api,j={path:M,method:"GET"},L=await i()(j);if(!("success"in L)||!L.success||!("data"in L))throw console.error("Error fetching settings",L),new Error("Invalid response while fetching settings");const{data:N}=L;return N},c=async M=>{const{route:j,nonce:L}=pressidiumCCAdminDetails.api,N={path:j,method:"POST",data:{settings:M,nonce:L}};try{const M=await i()(N);"success"in M&&M.success?(t("success"),g((0,y.__)("Settings saved successfully.","pressidium-cookie-consent"))):(t("error"),g((0,y.__)("Could not save settings.","pressidium-cookie-consent")))}catch(M){"code"in M&&"invalid_nonce"===M.code?(t("error"),g((0,y.__)("Could not pass security check.","pressidium-cookie-consent"))):(t("error"),g((0,y.__)("Could not save settings.","pressidium-cookie-consent")))}S(!1)},w=(0,j.useMemo)((()=>{const M={...e},j=M.pressidium_options.cookie_table.analytics,L=M.pressidium_options.cookie_table.targeting,N=M.pressidium_options.primary_btn_role,u=M.pressidium_options.secondary_btn_role;return Object.keys(M.languages).forEach((S=>{M.languages[S].settings_modal.blocks[2].cookie_table=j,M.languages[S].settings_modal.blocks[3].cookie_table=L,M.languages[S].consent_modal.primary_btn.role=N,M.languages[S].consent_modal.secondary_btn.role=u})),M}),[e]),O=function(){let M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const j=document.querySelector("#pressidium-cc-styles");if(j){let M="";Object.keys(w.pressidium_options.colors).forEach((j=>{const L=w.pressidium_options.colors[j];M+=`--cc-${j}: ${L};\n`})),j.innerHTML=`\n .pressidium-cc-theme {\n ${M}\n }\n `}const L=window.pressidiumCookieConsent.getConfig("cookie_name");var N;window.pressidiumCookieConsent.eraseCookies(L),(N=document.querySelector("#cc--main"))&&N.parentNode.removeChild(N),window.pressidiumCookieConsent=window.initCookieConsent(),window.pressidiumCookieConsent.run({...w,...M})};!function(M){null!=M&&"function"!=typeof M&&function(M,j){throw new Error("Invariant failed")}();var j=(0,z.useRef)();(0,z.useEffect)((function(){j.current=function(j){var L=null==M?void 0:M(j);return"string"==typeof L?j.returnValue=L:j.defaultPrevented?j.returnValue="":void 0}}),[M]),(0,z.useEffect)((function(){var M=function(M){return j.current(M)};return window.addEventListener("beforeunload",M),function(){window.removeEventListener("beforeunload",M)}}),[])}(u?M=>{const j=(0,y.__)("You have unsaved changes. Are you sure you want to leave?","pressidium-cookie-consent");return M.preventDefault(),M.returnValue=j,j}:null);const o=(M=>{const L=(0,j.useRef)();return(0,j.useEffect)((()=>{L.current=M}),[M]),L.current})(e);return(0,j.useEffect)((()=>{o&&!M&&S(!0)}),[e]),(0,j.useEffect)((()=>{(async()=>{L(!0);try{const M=await E();x({type:"SET_SETTINGS",payload:M})}catch(M){console.error("Could not fetch settings",M)}L(!1)})()}),[]),M?(0,j.createElement)(I.Spinner,null):(0,j.createElement)(j.Fragment,null,T&&(0,j.createElement)(I.Notice,{status:D,onDismiss:A},T),(0,j.createElement)(BM,null,(0,j.createElement)(I.TabPanel,{className:"my-tab-panel",activeClass:"active-tab",tabs:[{name:"general",title:(0,y.__)("General","pressidium-cookie-consent"),className:"tab-general",Component:KM},{name:"cookies",title:(0,y.__)("Cookies","pressidium-cookie-consent"),className:"tab-cookies",Component:xj},{name:"translations",title:(0,y.__)("Translations","pressidium-cookie-consent"),className:"tab-translations",Component:mN},{name:"consent-modal",title:(0,y.__)("Consent Modal","pressidium-cookie-consent"),className:"tab-consent-modal",Component:bN},{name:"settings-modal",title:(0,y.__)("Settings Modal","pressidium-cookie-consent"),className:"tab-settings-modal",Component:pN},{name:"blocked-scripts",title:(0,y.__)("Blocked Scripts","pressidium-cookie-consent"),className:"tab-blocked-scripts",Component:ZN},{name:"logs",title:(0,y.__)("Logs","pressidium-cookie-consent"),className:"tab-logs",Component:RN}]},(M=>{let{Component:L}=M;return(0,j.createElement)(L,null)})),(0,j.createElement)(_M,{save:()=>c(e),previewConsentModal:()=>{O(),window.pressidiumCookieConsent.show()},previewSettingsModal:()=>{O({autorun:!1}),window.pressidiumCookieConsent.showSettings()},hasUnsavedChanges:u,exportSettings:async()=>{try{(M=>{const j=new Blob([JSON.stringify(M)],{type:"text/json;charset=utf-8"}),L=URL.createObjectURL(j),N=`pressidium-cookie-consent-settings_${(()=>{const M=new Date;return`${M.getFullYear()}-${(M.getMonth()+1).toString().padStart(2,"0")}-${M.getDate().toString().padStart(2,"0")}_${M.getHours().toString().padStart(2,"0")}-${M.getMinutes().toString().padStart(2,"0")}-${M.getSeconds().toString().padStart(2,"0")}`})()}.json`,u=document.createElement("a");u.setAttribute("href",L),u.setAttribute("download",N),u.click(),u.remove(),URL.revokeObjectURL(L)})(await E())}catch(M){t("error"),g((0,y.__)("Could not export settings.","pressidium-cookie-consent"))}},importSettings:async M=>{try{if(0===M.length)throw new Error((0,y.__)("No files selected","pressidium-cookie-consent"));const[j]=M,L=await j.text(),N=JSON.parse(L);await c(N),x({type:"SET_SETTINGS",payload:N})}catch(M){console.error("Could not import settings",M),t("error"),g((0,y.__)("Could not import settings.","pressidium-cookie-consent"))}},resetSettings:async()=>{const{route:M,nonce:j}=pressidiumCCAdminDetails.api,L={path:M,method:"DELETE",data:{nonce:j}};try{const M=await i()(L);"success"in M&&M.success?(t("success"),g((0,y.__)("Settings reset successfully.","pressidium-cookie-consent"))):(t("error"),g((0,y.__)("Could not reset settings.","pressidium-cookie-consent")))}catch(M){"code"in M&&"invalid_nonce"===M.code?(t("error"),g((0,y.__)("Could not pass security check.","pressidium-cookie-consent"))):(t("error"),g((0,y.__)("Could not reset settings.","pressidium-cookie-consent")))}try{const M=await E();x({type:"SET_SETTINGS",payload:M})}catch(M){console.error("Could not reload default settings",M)}}})))};(0,j.render)((0,j.createElement)((function(){return(0,j.createElement)(D,null,(0,j.createElement)(HN,null))}),null),document.getElementById("pressidium-cookie-consent-root"))})()})(); -
pressidium-cookie-consent/tags/1.1.4/readme.txt
r2947881 r2956409 7 7 Tested up to: 6.2 8 8 Requires PHP: 7.4 9 Stable Tag: 1.1. 39 Stable Tag: 1.1.4 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 146 146 == Changelog == 147 147 148 = 1.1.4: Aug 21, 2023 = 149 150 * Fix an issue where the confirmation before leaving the tab was being triggered even when there were no unsaved changes 151 148 152 = 1.1.3: Aug 4, 2023 = 149 153 -
pressidium-cookie-consent/tags/1.1.4/vendor/autoload.php
r2947881 r2956409 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 8819bd605a767dfce3a09b72f6c12f7a::getLoader();25 return ComposerAutoloaderInit5d5ed59a02ed336c0cc5baddbb78d6a2::getLoader(); -
pressidium-cookie-consent/tags/1.1.4/vendor/composer/autoload_real.php
r2947881 r2956409 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 8819bd605a767dfce3a09b72f6c12f7a5 class ComposerAutoloaderInit5d5ed59a02ed336c0cc5baddbb78d6a2 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 8819bd605a767dfce3a09b72f6c12f7a', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit5d5ed59a02ed336c0cc5baddbb78d6a2', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 8819bd605a767dfce3a09b72f6c12f7a', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit5d5ed59a02ed336c0cc5baddbb78d6a2', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 8819bd605a767dfce3a09b72f6c12f7a::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit5d5ed59a02ed336c0cc5baddbb78d6a2::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
pressidium-cookie-consent/tags/1.1.4/vendor/composer/autoload_static.php
r2947881 r2956409 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 8819bd605a767dfce3a09b72f6c12f7a7 class ComposerStaticInit5d5ed59a02ed336c0cc5baddbb78d6a2 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 46 46 { 47 47 return \Closure::bind(function () use ($loader) { 48 $loader->prefixLengthsPsr4 = ComposerStaticInit 8819bd605a767dfce3a09b72f6c12f7a::$prefixLengthsPsr4;49 $loader->prefixDirsPsr4 = ComposerStaticInit 8819bd605a767dfce3a09b72f6c12f7a::$prefixDirsPsr4;50 $loader->classMap = ComposerStaticInit 8819bd605a767dfce3a09b72f6c12f7a::$classMap;48 $loader->prefixLengthsPsr4 = ComposerStaticInit5d5ed59a02ed336c0cc5baddbb78d6a2::$prefixLengthsPsr4; 49 $loader->prefixDirsPsr4 = ComposerStaticInit5d5ed59a02ed336c0cc5baddbb78d6a2::$prefixDirsPsr4; 50 $loader->classMap = ComposerStaticInit5d5ed59a02ed336c0cc5baddbb78d6a2::$classMap; 51 51 52 52 }, null, ClassLoader::class); -
pressidium-cookie-consent/trunk/pressidium-cookie-consent.php
r2947881 r2956409 4 4 * Plugin URI: https://github.com/pressidium/pressidium-cookie-consent/ 5 5 * Description: Lightweight, user-friendly and customizable cookie consent banner to help you comply with the EU GDPR cookie law and CCPA regulations. 6 * Version: 1.1. 36 * Version: 1.1.4 7 7 * Author: Pressidium 8 8 * Author URI: https://pressidium.com/ … … 28 28 function setup_constants(): void { 29 29 if ( ! defined( 'Pressidium\WP\CookieConsent\VERSION' ) ) { 30 define( 'Pressidium\WP\CookieConsent\VERSION', '1.1. 3' );30 define( 'Pressidium\WP\CookieConsent\VERSION', '1.1.4' ); 31 31 } 32 32 -
pressidium-cookie-consent/trunk/public/bundle.admin.asset.php
r2947881 r2956409 1 <?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => ' e49b38c8b89fe85b6e48');1 <?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'a95e918d8ca0a5b91874'); -
pressidium-cookie-consent/trunk/public/bundle.admin.js
r2947881 r2956409 63 63 color: #0073aa; 64 64 }, 65 `,PN=function(){const{state:M,dispatch:L}=(0,j.useContext)(N),u=(0,j.useMemo)((()=>M.pressidium_options.blocked_scripts?M.pressidium_options.blocked_scripts:[]),[M]),S=(0,j.useCallback)((()=>{L({type:"ADD_BLOCKED_SCRIPT"})}),[]),D=(0,j.useCallback)(((M,j,N)=>{L({type:"UPDATE_BLOCKED_SCRIPT",payload:{index:M,key:j,value:N}})}),[]),t=(0,j.useCallback)((M=>{L({type:"DELETE_BLOCKED_SCRIPT",payload:{index:M}})}),[]),i=(0,j.useMemo)((()=>Array.isArray(u)&&u.length>0),[u]);return(0,j.createElement)(I.Flex,{direction:"column",gap:4,style:{width:"100%"}},(0,j.createElement)(I.FlexItem,null,i?(0,j.createElement)(Tj,{width:"100%"},(0,j.createElement)(Dj,null,(0,j.createElement)(yj,null,(0,y.__)("Script Source","pressidium-cookie-consent")),(0,j.createElement)(yj,null,(0,y.__)("Cookie Category","pressidium-cookie-consent")),(0,j.createElement)(yj,{style:{maxWidth:"70px"}},(0,y.__)("Is Regex?","pressidium-cookie-consent")),(0,j.createElement)(yj,{style:{maxWidth:"50px"}},(0,y.__)("Actions","pressidium-cookie-consent"))),u.map(((M,L)=>(0,j.createElement)(tj,null,(0,j.createElement)(yj,null,(0,j.createElement)(I.TextControl,{value:M.src,placeholder:"https://example.com/script.js",onChange:M=>D(L,"src",M)})),(0,j.createElement)(yj,null,(0,j.createElement)(I.SelectControl,{value:M.category,options:[{label:(0,y.__)("Analytics","pressidium-cookie-consent"),value:"analytics"},{label:(0,y.__)("Targeting","pressidium-cookie-consent"),value:"targeting"}],onChange:M=>D(L,"category",M)})),(0,j.createElement)(yj,{style:{maxWidth:"70px"}},(0,j.createElement)(I.ToggleControl,{checked:M.is_regex,onChange:M=>D(L,"is_regex",M),className:"pressidium-no-margin"})),(0,j.createElement)(yj,{style:{maxWidth:"50px",lineHeight:1}},(0,j.createElement)(GN,{icon:Nj,label:(0,y.__)("Delete","pressidium-cookie-consent"),onClick:()=>t(L)})))))):(0,j.createElement)("p",null,(0,y.__)("No blocked scripts.","pressidium-cookie-consent"))),(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Button,{icon:uj,onClick:S,style:{paddingRight:"10px"},isPrimary:!0},(0,y.__)("New Script","pressidium-cookie-consent"))))},ZN=function(){return(0,j.createElement)(I.Panel,null,(0,j.createElement)(I.PanelBody,{initialOpen:!0},(0,j.createElement)(I.PanelRow,null,(0,j.createElement)("p",null,(0,y.__)("Make sure that you’ve enabled the “Page Scripts” option, located under the General tab.","pressidium-cookie-consent"))),(0,j.createElement)(I.PanelRow,null,(0,j.createElement)("p",null,(0,y.__)("Script blocking may not always be effective due to variations in script loading methods.","pressidium-cookie-consent"))),(0,j.createElement)(I.PanelRow,null,(0,j.createElement)(PN,null))))},hN=(0,j.createElement)(WM.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,j.createElement)(WM.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"})),vN=function(M){const{logs:L}=M;return null===L||0===L.length?(0,j.createElement)("p",null,(0,y.__)("There are no logs yet.","pressidium-cookie-consent")):(0,j.createElement)(I.TextareaControl,{label:"Logs",value:L,rows:12,disabled:!0})},BN=function(M){const{isOpen:L,onClose:N,clearLogs:u}=M;return L?(0,j.createElement)(I.Modal,{title:(0,y.__)("Clear logs?","pressidium-cookie-consent"),onRequestClose:N},(0,j.createElement)(I.Flex,{direction:"column"},(0,j.createElement)("p",null,(0,j.createElement)("strong",null,(0,y.__)("This action cannot be undone.","pressidium-cookie-consent"))," ",(0,y.__)("You are about to clear all logs. Are you sure you want to proceed?","pressidium-cookie-consent")),(0,j.createElement)(I.Flex,{justify:"flex-end"},(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Button,{variant:"tertiary",onClick:N},(0,y.__)("Cancel","pressidium-cookie-consent"))),(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Button,{variant:"primary",className:"is-destructive",onClick:()=>{u(),N()}},(0,y.__)("Clear logs","pressidium-cookie-consent")))))):null},RN=function(){const[M,L]=(0,j.useState)(""),[N,u]=(0,j.useState)(!1),[S,D]=(0,j.useState)(!1),[t,z]=(0,j.useState)(!1),T=(0,j.useCallback)((()=>z(!0)),[]),g=(0,j.useCallback)((()=>z(!1)),[]),e=async()=>{u(!0);try{const M=await(async()=>{const{logs_route:M,nonce:j}=pressidiumCCAdminDetails.api,L={path:`${M}?nonce=${j}`,method:"GET"},N=await i()(L);if(!("success"in N)||!N.success||!("data"in N))throw console.error("Error fetching logs",N),new Error("Invalid response while fetching logs");const{data:u}=N;return u})();L(M)}catch(M){console.error("Could not fetch logs",M)}u(!1)},x=async()=>{const{logs_route:M,nonce:j}=pressidiumCCAdminDetails.api,L={path:M,method:"DELETE",data:{nonce:j}};try{await i()(L),await e()}catch(M){console.error("Error clearing logs",M)}};(0,j.useEffect)((()=>{let M=null;return(async()=>{M=setInterval(e,3e3),await e()})(),()=>{L(""),u(!1),null!==M&&clearInterval(M)}}),[]);const A=(0,j.useCallback)((async()=>{try{await navigator.clipboard.writeText(M)}catch(M){console.error("Could not copy logs to clipboard",M)}}),[M]),E=(0,j.useCallback)((()=>{(async()=>{D(!0),await x(),D(!1)})()}),[x]);return(0,j.createElement)(I.Panel,null,(0,j.createElement)(I.PanelBody,{initialOpen:!0},(0,j.createElement)(I.PanelRow,null,(0,j.createElement)("p",null,(0,y.__)("In this section, you’ll find vital debugging logs. If you encounter any issues, open an issue and include these logs for reference in our investigation.","pressidium-cookie-consent"))),(0,j.createElement)(I.PanelRow,null,(0,j.createElement)(I.Flex,{direction:"column",gap:4,style:{width:"100%"}},(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(vN,{logs:M})),(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Flex,{justify:"flex-start"},(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Button,{variant:"secondary",icon:hN,onClick:A,style:{paddingRight:"10px"},disabled:""===M||null===M},(0,y.__)("Copy to clipboard","pressidium-cookie-consent"))),(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Button,{variant:"secondary",className:"is-destructive",onClick:T,disabled:S,isBusy:S},(0,y.__)("Clear logs","pressidium-cookie-consent")),(0,j.createElement)(BN,{isOpen:t,onClose:g,clearLogs:E})),N?(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Spinner,null)):null))))))},HN=function(){const[M,L]=(0,j.useState)(!1),[u,S]=(0,j.useState)(!1),[D,t]=(0,j.useState)("info"),[T,g]=(0,j.useState)(null),{state:e,dispatch:x}=(0,j.useContext)(N),A=(0,j.useCallback)((()=>{t("info"),g(null)}),[]),E=async()=>{const{route:M}=pressidiumCCAdminDetails.api,j={path:M,method:"GET"},L=await i()(j);if(!("success"in L)||!L.success||!("data"in L))throw console.error("Error fetching settings",L),new Error("Invalid response while fetching settings");const{data:N}=L;return N},c=async M=>{const{route:j,nonce:L}=pressidiumCCAdminDetails.api,N={path:j,method:"POST",data:{settings:M,nonce:L}};try{const M=await i()(N);"success"in M&&M.success?(t("success"),g((0,y.__)("Settings saved successfully.","pressidium-cookie-consent"))):(t("error"),g((0,y.__)("Could not save settings.","pressidium-cookie-consent")))}catch(M){"code"in M&&"invalid_nonce"===M.code?(t("error"),g((0,y.__)("Could not pass security check.","pressidium-cookie-consent"))):(t("error"),g((0,y.__)("Could not save settings.","pressidium-cookie-consent")))}S(!1)},w=(0,j.useMemo)((()=>{const M={...e},j=M.pressidium_options.cookie_table.analytics,L=M.pressidium_options.cookie_table.targeting,N=M.pressidium_options.primary_btn_role,u=M.pressidium_options.secondary_btn_role;return Object.keys(M.languages).forEach((S=>{M.languages[S].settings_modal.blocks[2].cookie_table=j,M.languages[S].settings_modal.blocks[3].cookie_table=L,M.languages[S].consent_modal.primary_btn.role=N,M.languages[S].consent_modal.secondary_btn.role=u})),M}),[e]),O=function(){let M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const j=document.querySelector("#pressidium-cc-styles");if(j){let M="";Object.keys(w.pressidium_options.colors).forEach((j=>{const L=w.pressidium_options.colors[j];M+=`--cc-${j}: ${L};\n`})),j.innerHTML=`\n .pressidium-cc-theme {\n ${M}\n }\n `}const L=window.pressidiumCookieConsent.getConfig("cookie_name");var N;window.pressidiumCookieConsent.eraseCookies(L),(N=document.querySelector("#cc--main"))&&N.parentNode.removeChild(N),window.pressidiumCookieConsent=window.initCookieConsent(),window.pressidiumCookieConsent.run({...w,...M})};!function(M){null!=M&&"function"!=typeof M&&function(M,j){throw new Error("Invariant failed")}();var j=(0,z.useRef)();(0,z.useEffect)((function(){j.current=function(j){var L=null==M?void 0:M(j);return"string"==typeof L?j.returnValue=L:j.defaultPrevented?j.returnValue="":void 0}}),[M]),(0,z.useEffect)((function(){var M=function(M){return j.current(M)};return window.addEventListener("beforeunload",M),function(){window.removeEventListener("beforeunload",M)}}),[])}( (M=>{if(!u)return"";const j=(0,y.__)("You have unsaved changes. Are you sure you want to leave?","pressidium-cookie-consent");return M.preventDefault(),M.returnValue=j,j}));const o=(M=>{const L=(0,j.useRef)();return(0,j.useEffect)((()=>{L.current=M}),[M]),L.current})(e);return(0,j.useEffect)((()=>{o&&!M&&S(!0)}),[e]),(0,j.useEffect)((()=>{(async()=>{L(!0);try{const M=await E();x({type:"SET_SETTINGS",payload:M})}catch(M){console.error("Could not fetch settings",M)}L(!1)})()}),[]),M?(0,j.createElement)(I.Spinner,null):(0,j.createElement)(j.Fragment,null,T&&(0,j.createElement)(I.Notice,{status:D,onDismiss:A},T),(0,j.createElement)(BM,null,(0,j.createElement)(I.TabPanel,{className:"my-tab-panel",activeClass:"active-tab",tabs:[{name:"general",title:(0,y.__)("General","pressidium-cookie-consent"),className:"tab-general",Component:KM},{name:"cookies",title:(0,y.__)("Cookies","pressidium-cookie-consent"),className:"tab-cookies",Component:xj},{name:"translations",title:(0,y.__)("Translations","pressidium-cookie-consent"),className:"tab-translations",Component:mN},{name:"consent-modal",title:(0,y.__)("Consent Modal","pressidium-cookie-consent"),className:"tab-consent-modal",Component:bN},{name:"settings-modal",title:(0,y.__)("Settings Modal","pressidium-cookie-consent"),className:"tab-settings-modal",Component:pN},{name:"blocked-scripts",title:(0,y.__)("Blocked Scripts","pressidium-cookie-consent"),className:"tab-blocked-scripts",Component:ZN},{name:"logs",title:(0,y.__)("Logs","pressidium-cookie-consent"),className:"tab-logs",Component:RN}]},(M=>{let{Component:L}=M;return(0,j.createElement)(L,null)})),(0,j.createElement)(_M,{save:()=>c(e),previewConsentModal:()=>{O(),window.pressidiumCookieConsent.show()},previewSettingsModal:()=>{O({autorun:!1}),window.pressidiumCookieConsent.showSettings()},hasUnsavedChanges:u,exportSettings:async()=>{try{(M=>{const j=new Blob([JSON.stringify(M)],{type:"text/json;charset=utf-8"}),L=URL.createObjectURL(j),N=`pressidium-cookie-consent-settings_${(()=>{const M=new Date;return`${M.getFullYear()}-${(M.getMonth()+1).toString().padStart(2,"0")}-${M.getDate().toString().padStart(2,"0")}_${M.getHours().toString().padStart(2,"0")}-${M.getMinutes().toString().padStart(2,"0")}-${M.getSeconds().toString().padStart(2,"0")}`})()}.json`,u=document.createElement("a");u.setAttribute("href",L),u.setAttribute("download",N),u.click(),u.remove(),URL.revokeObjectURL(L)})(await E())}catch(M){t("error"),g((0,y.__)("Could not export settings.","pressidium-cookie-consent"))}},importSettings:async M=>{try{if(0===M.length)throw new Error((0,y.__)("No files selected","pressidium-cookie-consent"));const[j]=M,L=await j.text(),N=JSON.parse(L);await c(N),x({type:"SET_SETTINGS",payload:N})}catch(M){console.error("Could not import settings",M),t("error"),g((0,y.__)("Could not import settings.","pressidium-cookie-consent"))}},resetSettings:async()=>{const{route:M,nonce:j}=pressidiumCCAdminDetails.api,L={path:M,method:"DELETE",data:{nonce:j}};try{const M=await i()(L);"success"in M&&M.success?(t("success"),g((0,y.__)("Settings reset successfully.","pressidium-cookie-consent"))):(t("error"),g((0,y.__)("Could not reset settings.","pressidium-cookie-consent")))}catch(M){"code"in M&&"invalid_nonce"===M.code?(t("error"),g((0,y.__)("Could not pass security check.","pressidium-cookie-consent"))):(t("error"),g((0,y.__)("Could not reset settings.","pressidium-cookie-consent")))}try{const M=await E();x({type:"SET_SETTINGS",payload:M})}catch(M){console.error("Could not reload default settings",M)}}})))};(0,j.render)((0,j.createElement)((function(){return(0,j.createElement)(D,null,(0,j.createElement)(HN,null))}),null),document.getElementById("pressidium-cookie-consent-root"))})()})();65 `,PN=function(){const{state:M,dispatch:L}=(0,j.useContext)(N),u=(0,j.useMemo)((()=>M.pressidium_options.blocked_scripts?M.pressidium_options.blocked_scripts:[]),[M]),S=(0,j.useCallback)((()=>{L({type:"ADD_BLOCKED_SCRIPT"})}),[]),D=(0,j.useCallback)(((M,j,N)=>{L({type:"UPDATE_BLOCKED_SCRIPT",payload:{index:M,key:j,value:N}})}),[]),t=(0,j.useCallback)((M=>{L({type:"DELETE_BLOCKED_SCRIPT",payload:{index:M}})}),[]),i=(0,j.useMemo)((()=>Array.isArray(u)&&u.length>0),[u]);return(0,j.createElement)(I.Flex,{direction:"column",gap:4,style:{width:"100%"}},(0,j.createElement)(I.FlexItem,null,i?(0,j.createElement)(Tj,{width:"100%"},(0,j.createElement)(Dj,null,(0,j.createElement)(yj,null,(0,y.__)("Script Source","pressidium-cookie-consent")),(0,j.createElement)(yj,null,(0,y.__)("Cookie Category","pressidium-cookie-consent")),(0,j.createElement)(yj,{style:{maxWidth:"70px"}},(0,y.__)("Is Regex?","pressidium-cookie-consent")),(0,j.createElement)(yj,{style:{maxWidth:"50px"}},(0,y.__)("Actions","pressidium-cookie-consent"))),u.map(((M,L)=>(0,j.createElement)(tj,null,(0,j.createElement)(yj,null,(0,j.createElement)(I.TextControl,{value:M.src,placeholder:"https://example.com/script.js",onChange:M=>D(L,"src",M)})),(0,j.createElement)(yj,null,(0,j.createElement)(I.SelectControl,{value:M.category,options:[{label:(0,y.__)("Analytics","pressidium-cookie-consent"),value:"analytics"},{label:(0,y.__)("Targeting","pressidium-cookie-consent"),value:"targeting"}],onChange:M=>D(L,"category",M)})),(0,j.createElement)(yj,{style:{maxWidth:"70px"}},(0,j.createElement)(I.ToggleControl,{checked:M.is_regex,onChange:M=>D(L,"is_regex",M),className:"pressidium-no-margin"})),(0,j.createElement)(yj,{style:{maxWidth:"50px",lineHeight:1}},(0,j.createElement)(GN,{icon:Nj,label:(0,y.__)("Delete","pressidium-cookie-consent"),onClick:()=>t(L)})))))):(0,j.createElement)("p",null,(0,y.__)("No blocked scripts.","pressidium-cookie-consent"))),(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Button,{icon:uj,onClick:S,style:{paddingRight:"10px"},isPrimary:!0},(0,y.__)("New Script","pressidium-cookie-consent"))))},ZN=function(){return(0,j.createElement)(I.Panel,null,(0,j.createElement)(I.PanelBody,{initialOpen:!0},(0,j.createElement)(I.PanelRow,null,(0,j.createElement)("p",null,(0,y.__)("Make sure that you’ve enabled the “Page Scripts” option, located under the General tab.","pressidium-cookie-consent"))),(0,j.createElement)(I.PanelRow,null,(0,j.createElement)("p",null,(0,y.__)("Script blocking may not always be effective due to variations in script loading methods.","pressidium-cookie-consent"))),(0,j.createElement)(I.PanelRow,null,(0,j.createElement)(PN,null))))},hN=(0,j.createElement)(WM.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,j.createElement)(WM.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"})),vN=function(M){const{logs:L}=M;return null===L||0===L.length?(0,j.createElement)("p",null,(0,y.__)("There are no logs yet.","pressidium-cookie-consent")):(0,j.createElement)(I.TextareaControl,{label:"Logs",value:L,rows:12,disabled:!0})},BN=function(M){const{isOpen:L,onClose:N,clearLogs:u}=M;return L?(0,j.createElement)(I.Modal,{title:(0,y.__)("Clear logs?","pressidium-cookie-consent"),onRequestClose:N},(0,j.createElement)(I.Flex,{direction:"column"},(0,j.createElement)("p",null,(0,j.createElement)("strong",null,(0,y.__)("This action cannot be undone.","pressidium-cookie-consent"))," ",(0,y.__)("You are about to clear all logs. Are you sure you want to proceed?","pressidium-cookie-consent")),(0,j.createElement)(I.Flex,{justify:"flex-end"},(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Button,{variant:"tertiary",onClick:N},(0,y.__)("Cancel","pressidium-cookie-consent"))),(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Button,{variant:"primary",className:"is-destructive",onClick:()=>{u(),N()}},(0,y.__)("Clear logs","pressidium-cookie-consent")))))):null},RN=function(){const[M,L]=(0,j.useState)(""),[N,u]=(0,j.useState)(!1),[S,D]=(0,j.useState)(!1),[t,z]=(0,j.useState)(!1),T=(0,j.useCallback)((()=>z(!0)),[]),g=(0,j.useCallback)((()=>z(!1)),[]),e=async()=>{u(!0);try{const M=await(async()=>{const{logs_route:M,nonce:j}=pressidiumCCAdminDetails.api,L={path:`${M}?nonce=${j}`,method:"GET"},N=await i()(L);if(!("success"in N)||!N.success||!("data"in N))throw console.error("Error fetching logs",N),new Error("Invalid response while fetching logs");const{data:u}=N;return u})();L(M)}catch(M){console.error("Could not fetch logs",M)}u(!1)},x=async()=>{const{logs_route:M,nonce:j}=pressidiumCCAdminDetails.api,L={path:M,method:"DELETE",data:{nonce:j}};try{await i()(L),await e()}catch(M){console.error("Error clearing logs",M)}};(0,j.useEffect)((()=>{let M=null;return(async()=>{M=setInterval(e,3e3),await e()})(),()=>{L(""),u(!1),null!==M&&clearInterval(M)}}),[]);const A=(0,j.useCallback)((async()=>{try{await navigator.clipboard.writeText(M)}catch(M){console.error("Could not copy logs to clipboard",M)}}),[M]),E=(0,j.useCallback)((()=>{(async()=>{D(!0),await x(),D(!1)})()}),[x]);return(0,j.createElement)(I.Panel,null,(0,j.createElement)(I.PanelBody,{initialOpen:!0},(0,j.createElement)(I.PanelRow,null,(0,j.createElement)("p",null,(0,y.__)("In this section, you’ll find vital debugging logs. If you encounter any issues, open an issue and include these logs for reference in our investigation.","pressidium-cookie-consent"))),(0,j.createElement)(I.PanelRow,null,(0,j.createElement)(I.Flex,{direction:"column",gap:4,style:{width:"100%"}},(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(vN,{logs:M})),(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Flex,{justify:"flex-start"},(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Button,{variant:"secondary",icon:hN,onClick:A,style:{paddingRight:"10px"},disabled:""===M||null===M},(0,y.__)("Copy to clipboard","pressidium-cookie-consent"))),(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Button,{variant:"secondary",className:"is-destructive",onClick:T,disabled:S,isBusy:S},(0,y.__)("Clear logs","pressidium-cookie-consent")),(0,j.createElement)(BN,{isOpen:t,onClose:g,clearLogs:E})),N?(0,j.createElement)(I.FlexItem,null,(0,j.createElement)(I.Spinner,null)):null))))))},HN=function(){const[M,L]=(0,j.useState)(!1),[u,S]=(0,j.useState)(!1),[D,t]=(0,j.useState)("info"),[T,g]=(0,j.useState)(null),{state:e,dispatch:x}=(0,j.useContext)(N),A=(0,j.useCallback)((()=>{t("info"),g(null)}),[]),E=async()=>{const{route:M}=pressidiumCCAdminDetails.api,j={path:M,method:"GET"},L=await i()(j);if(!("success"in L)||!L.success||!("data"in L))throw console.error("Error fetching settings",L),new Error("Invalid response while fetching settings");const{data:N}=L;return N},c=async M=>{const{route:j,nonce:L}=pressidiumCCAdminDetails.api,N={path:j,method:"POST",data:{settings:M,nonce:L}};try{const M=await i()(N);"success"in M&&M.success?(t("success"),g((0,y.__)("Settings saved successfully.","pressidium-cookie-consent"))):(t("error"),g((0,y.__)("Could not save settings.","pressidium-cookie-consent")))}catch(M){"code"in M&&"invalid_nonce"===M.code?(t("error"),g((0,y.__)("Could not pass security check.","pressidium-cookie-consent"))):(t("error"),g((0,y.__)("Could not save settings.","pressidium-cookie-consent")))}S(!1)},w=(0,j.useMemo)((()=>{const M={...e},j=M.pressidium_options.cookie_table.analytics,L=M.pressidium_options.cookie_table.targeting,N=M.pressidium_options.primary_btn_role,u=M.pressidium_options.secondary_btn_role;return Object.keys(M.languages).forEach((S=>{M.languages[S].settings_modal.blocks[2].cookie_table=j,M.languages[S].settings_modal.blocks[3].cookie_table=L,M.languages[S].consent_modal.primary_btn.role=N,M.languages[S].consent_modal.secondary_btn.role=u})),M}),[e]),O=function(){let M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const j=document.querySelector("#pressidium-cc-styles");if(j){let M="";Object.keys(w.pressidium_options.colors).forEach((j=>{const L=w.pressidium_options.colors[j];M+=`--cc-${j}: ${L};\n`})),j.innerHTML=`\n .pressidium-cc-theme {\n ${M}\n }\n `}const L=window.pressidiumCookieConsent.getConfig("cookie_name");var N;window.pressidiumCookieConsent.eraseCookies(L),(N=document.querySelector("#cc--main"))&&N.parentNode.removeChild(N),window.pressidiumCookieConsent=window.initCookieConsent(),window.pressidiumCookieConsent.run({...w,...M})};!function(M){null!=M&&"function"!=typeof M&&function(M,j){throw new Error("Invariant failed")}();var j=(0,z.useRef)();(0,z.useEffect)((function(){j.current=function(j){var L=null==M?void 0:M(j);return"string"==typeof L?j.returnValue=L:j.defaultPrevented?j.returnValue="":void 0}}),[M]),(0,z.useEffect)((function(){var M=function(M){return j.current(M)};return window.addEventListener("beforeunload",M),function(){window.removeEventListener("beforeunload",M)}}),[])}(u?M=>{const j=(0,y.__)("You have unsaved changes. Are you sure you want to leave?","pressidium-cookie-consent");return M.preventDefault(),M.returnValue=j,j}:null);const o=(M=>{const L=(0,j.useRef)();return(0,j.useEffect)((()=>{L.current=M}),[M]),L.current})(e);return(0,j.useEffect)((()=>{o&&!M&&S(!0)}),[e]),(0,j.useEffect)((()=>{(async()=>{L(!0);try{const M=await E();x({type:"SET_SETTINGS",payload:M})}catch(M){console.error("Could not fetch settings",M)}L(!1)})()}),[]),M?(0,j.createElement)(I.Spinner,null):(0,j.createElement)(j.Fragment,null,T&&(0,j.createElement)(I.Notice,{status:D,onDismiss:A},T),(0,j.createElement)(BM,null,(0,j.createElement)(I.TabPanel,{className:"my-tab-panel",activeClass:"active-tab",tabs:[{name:"general",title:(0,y.__)("General","pressidium-cookie-consent"),className:"tab-general",Component:KM},{name:"cookies",title:(0,y.__)("Cookies","pressidium-cookie-consent"),className:"tab-cookies",Component:xj},{name:"translations",title:(0,y.__)("Translations","pressidium-cookie-consent"),className:"tab-translations",Component:mN},{name:"consent-modal",title:(0,y.__)("Consent Modal","pressidium-cookie-consent"),className:"tab-consent-modal",Component:bN},{name:"settings-modal",title:(0,y.__)("Settings Modal","pressidium-cookie-consent"),className:"tab-settings-modal",Component:pN},{name:"blocked-scripts",title:(0,y.__)("Blocked Scripts","pressidium-cookie-consent"),className:"tab-blocked-scripts",Component:ZN},{name:"logs",title:(0,y.__)("Logs","pressidium-cookie-consent"),className:"tab-logs",Component:RN}]},(M=>{let{Component:L}=M;return(0,j.createElement)(L,null)})),(0,j.createElement)(_M,{save:()=>c(e),previewConsentModal:()=>{O(),window.pressidiumCookieConsent.show()},previewSettingsModal:()=>{O({autorun:!1}),window.pressidiumCookieConsent.showSettings()},hasUnsavedChanges:u,exportSettings:async()=>{try{(M=>{const j=new Blob([JSON.stringify(M)],{type:"text/json;charset=utf-8"}),L=URL.createObjectURL(j),N=`pressidium-cookie-consent-settings_${(()=>{const M=new Date;return`${M.getFullYear()}-${(M.getMonth()+1).toString().padStart(2,"0")}-${M.getDate().toString().padStart(2,"0")}_${M.getHours().toString().padStart(2,"0")}-${M.getMinutes().toString().padStart(2,"0")}-${M.getSeconds().toString().padStart(2,"0")}`})()}.json`,u=document.createElement("a");u.setAttribute("href",L),u.setAttribute("download",N),u.click(),u.remove(),URL.revokeObjectURL(L)})(await E())}catch(M){t("error"),g((0,y.__)("Could not export settings.","pressidium-cookie-consent"))}},importSettings:async M=>{try{if(0===M.length)throw new Error((0,y.__)("No files selected","pressidium-cookie-consent"));const[j]=M,L=await j.text(),N=JSON.parse(L);await c(N),x({type:"SET_SETTINGS",payload:N})}catch(M){console.error("Could not import settings",M),t("error"),g((0,y.__)("Could not import settings.","pressidium-cookie-consent"))}},resetSettings:async()=>{const{route:M,nonce:j}=pressidiumCCAdminDetails.api,L={path:M,method:"DELETE",data:{nonce:j}};try{const M=await i()(L);"success"in M&&M.success?(t("success"),g((0,y.__)("Settings reset successfully.","pressidium-cookie-consent"))):(t("error"),g((0,y.__)("Could not reset settings.","pressidium-cookie-consent")))}catch(M){"code"in M&&"invalid_nonce"===M.code?(t("error"),g((0,y.__)("Could not pass security check.","pressidium-cookie-consent"))):(t("error"),g((0,y.__)("Could not reset settings.","pressidium-cookie-consent")))}try{const M=await E();x({type:"SET_SETTINGS",payload:M})}catch(M){console.error("Could not reload default settings",M)}}})))};(0,j.render)((0,j.createElement)((function(){return(0,j.createElement)(D,null,(0,j.createElement)(HN,null))}),null),document.getElementById("pressidium-cookie-consent-root"))})()})(); -
pressidium-cookie-consent/trunk/readme.txt
r2947881 r2956409 7 7 Tested up to: 6.2 8 8 Requires PHP: 7.4 9 Stable Tag: 1.1. 39 Stable Tag: 1.1.4 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 146 146 == Changelog == 147 147 148 = 1.1.4: Aug 21, 2023 = 149 150 * Fix an issue where the confirmation before leaving the tab was being triggered even when there were no unsaved changes 151 148 152 = 1.1.3: Aug 4, 2023 = 149 153 -
pressidium-cookie-consent/trunk/vendor/autoload.php
r2947881 r2956409 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 8819bd605a767dfce3a09b72f6c12f7a::getLoader();25 return ComposerAutoloaderInit5d5ed59a02ed336c0cc5baddbb78d6a2::getLoader(); -
pressidium-cookie-consent/trunk/vendor/composer/autoload_real.php
r2947881 r2956409 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 8819bd605a767dfce3a09b72f6c12f7a5 class ComposerAutoloaderInit5d5ed59a02ed336c0cc5baddbb78d6a2 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 8819bd605a767dfce3a09b72f6c12f7a', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit5d5ed59a02ed336c0cc5baddbb78d6a2', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 8819bd605a767dfce3a09b72f6c12f7a', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit5d5ed59a02ed336c0cc5baddbb78d6a2', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 8819bd605a767dfce3a09b72f6c12f7a::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit5d5ed59a02ed336c0cc5baddbb78d6a2::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
pressidium-cookie-consent/trunk/vendor/composer/autoload_static.php
r2947881 r2956409 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 8819bd605a767dfce3a09b72f6c12f7a7 class ComposerStaticInit5d5ed59a02ed336c0cc5baddbb78d6a2 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 46 46 { 47 47 return \Closure::bind(function () use ($loader) { 48 $loader->prefixLengthsPsr4 = ComposerStaticInit 8819bd605a767dfce3a09b72f6c12f7a::$prefixLengthsPsr4;49 $loader->prefixDirsPsr4 = ComposerStaticInit 8819bd605a767dfce3a09b72f6c12f7a::$prefixDirsPsr4;50 $loader->classMap = ComposerStaticInit 8819bd605a767dfce3a09b72f6c12f7a::$classMap;48 $loader->prefixLengthsPsr4 = ComposerStaticInit5d5ed59a02ed336c0cc5baddbb78d6a2::$prefixLengthsPsr4; 49 $loader->prefixDirsPsr4 = ComposerStaticInit5d5ed59a02ed336c0cc5baddbb78d6a2::$prefixDirsPsr4; 50 $loader->classMap = ComposerStaticInit5d5ed59a02ed336c0cc5baddbb78d6a2::$classMap; 51 51 52 52 }, null, ClassLoader::class);
Note: See TracChangeset
for help on using the changeset viewer.