403Webshell
Server IP : 103.88.176.108  /  Your IP : 216.73.216.211
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux webserver 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64
User : www-data ( 33)
PHP Version : 7.4.3-4ubuntu2.18
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/wp-content/plugins/wp-cloudflare-page-cache/assets/build/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins/wp-cloudflare-page-cache/assets/build/326.js
"use strict";(globalThis.webpackChunkwp_cloudflare_page_cache=globalThis.webpackChunkwp_cloudflare_page_cache||[]).push([[326],{1020:(e,t,r)=>{var n=r(1609),a=Symbol.for("react.element"),o=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var n,l={},i=null,d=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(d=t.ref),t)o.call(t,n)&&!c.hasOwnProperty(n)&&(l[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===l[n]&&(l[n]=t[n]);return{$$typeof:a,type:e,key:i,ref:d,props:l,_owner:s.current}}t.jsx=l,t.jsxs=l},1071:(e,t,r)=>{r.d(t,{s:()=>s,t:()=>o});var n=r(1609);function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let r=!1;const n=e.map((e=>{const n=a(e,t);return r||"function"!=typeof n||(r=!0),n}));if(r)return()=>{for(let t=0;t<n.length;t++){const r=n[t];"function"==typeof r?r():a(e[t],null)}}}}function s(...e){return n.useCallback(o(...e),e)}},1104:(e,t,r)=>{var n;r.d(t,{B:()=>l});var a=r(1609),o=r(8200),s=(n||(n=r.t(a,2)))[" useId ".trim().toString()]||(()=>{}),c=0;function l(e){const[t,r]=a.useState(s());return(0,o.N)((()=>{e||r((e=>e??String(c++)))}),[e]),e||(t?`radix-${t}`:"")}},1351:(e,t,r)=>{var n;r.d(t,{i:()=>c});var a=r(1609),o=r(8200),s=(n||(n=r.t(a,2)))[" useInsertionEffect ".trim().toString()]||o.N;function c({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,c,l]=function({defaultProp:e,onChange:t}){const[r,n]=a.useState(e),o=a.useRef(r),c=a.useRef(t);return s((()=>{c.current=t}),[t]),a.useEffect((()=>{o.current!==r&&(c.current?.(r),o.current=r)}),[r,o]),[r,n,c]}({defaultProp:t,onChange:r}),i=void 0!==e,d=i?e:o;{const t=a.useRef(void 0!==e);a.useEffect((()=>{const e=t.current;if(e!==i){const t=e?"controlled":"uncontrolled",r=i?"controlled":"uncontrolled";console.warn(`${n} is changing from ${t} to ${r}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=i}),[i,n])}const u=a.useCallback((t=>{if(i){const r=function(e){return"function"==typeof e}(t)?t(e):t;r!==e&&l.current?.(r)}else c(t)}),[i,e,c,l]);return[d,u]}Symbol("RADIX:SYNC_STATE")},2133:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(1609),a=r(4848);function o(e,t=[]){let r=[];const o=()=>{const t=r.map((e=>n.createContext(e)));return function(r){const a=r?.[e]||t;return n.useMemo((()=>({[`__scope${e}`]:{...r,[e]:a}})),[r,a])}};return o.scopeName=e,[function(t,o){const s=n.createContext(o),c=r.length;r=[...r,o];const l=t=>{const{scope:r,children:o,...l}=t,i=r?.[e]?.[c]||s,d=n.useMemo((()=>l),Object.values(l));return(0,a.jsx)(i.Provider,{value:d,children:o})};return l.displayName=t+"Provider",[l,function(r,a){const l=a?.[e]?.[c]||s,i=n.useContext(l);if(i)return i;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${t}\``)}]},s(o,...t)]}function s(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const a=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return n.useMemo((()=>({[`__scope${t.scopeName}`]:a})),[a])}};return r.scopeName=t.scopeName,r}},2579:(e,t,r)=>{r.d(t,{sG:()=>s});var n=r(1609),a=(r(5795),r(3362)),o=r(4848),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,t)=>{const r=(0,a.TL)(`Primitive.${t}`),s=n.forwardRef(((e,n)=>{const{asChild:a,...s}=e,c=a?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(c,{...s,ref:n})}));return s.displayName=`Primitive.${t}`,{...e,[t]:s}}),{})},3136:(e,t,r)=>{r.d(t,{A:()=>n});const n=(0,r(9407).A)("power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]])},3362:(e,t,r)=>{r.d(t,{TL:()=>s});var n=r(1609),a=r(1071),o=r(4848);function s(e){const t=c(e),r=n.forwardRef(((e,r)=>{const{children:a,...s}=e,c=n.Children.toArray(a),l=c.find(i);if(l){const e=l.props.children,a=c.map((t=>t===l?n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null:t));return(0,o.jsx)(t,{...s,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,a):null})}return(0,o.jsx)(t,{...s,ref:r,children:a})}));return r.displayName=`${e}.Slot`,r}function c(e){const t=n.forwardRef(((e,t)=>{const{children:r,...o}=e;if(n.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}(r),s=function(e,t){const r={...t};for(const n in t){const a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...e)=>{const t=o(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...o}:"className"===n&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props);return r.type!==n.Fragment&&(s.ref=t?(0,a.t)(t,e):e),n.cloneElement(r,s)}return n.Children.count(r)>1?n.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var l=Symbol("radix.slottable");function i(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}},3558:(e,t,r)=>{r.d(t,{A:()=>n});const n=(0,r(9407).A)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]])},4848:(e,t,r)=>{e.exports=r(1020)},6236:(e,t,r)=>{r.d(t,{A:()=>n});const n=(0,r(9407).A)("power-off",[["path",{d:"M18.36 6.64A9 9 0 0 1 20.77 15",key:"dxknvb"}],["path",{d:"M6.16 6.16a9 9 0 1 0 12.68 12.68",key:"1x7qb5"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},6858:(e,t,r)=>{r.d(t,{A:()=>n});const n=(0,r(9407).A)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},6988:(e,t,r)=>{r.r(t),r.d(t,{default:()=>ze});var n=r(1609),a=r(8018),o=r(2133),s=r(6214),c=r(1071),l=r(9957),i=r(1351),d=r(2579),u=r(8834),p=r(1104),m=r(4848),f=n.createContext(void 0),h="Accordion",y=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[g,x,b]=(0,s.N)(h),[v,w]=(0,o.A)(h,[b,u.z3]),k=(0,u.z3)(),N=n.forwardRef(((e,t)=>{const{type:r,...n}=e,a=n,o=n;return(0,m.jsx)(g.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,m.jsx)(S,{...o,ref:t}):(0,m.jsx)(M,{...a,ref:t})})}));N.displayName=h;var[_,E]=v(h),[A,C]=v(h,{collapsible:!1}),M=n.forwardRef(((e,t)=>{const{value:r,defaultValue:a,onValueChange:o=()=>{},collapsible:s=!1,...c}=e,[l,d]=(0,i.i)({prop:r,defaultProp:a??"",onChange:o,caller:h});return(0,m.jsx)(_,{scope:e.__scopeAccordion,value:n.useMemo((()=>l?[l]:[]),[l]),onItemOpen:d,onItemClose:n.useCallback((()=>s&&d("")),[s,d]),children:(0,m.jsx)(A,{scope:e.__scopeAccordion,collapsible:s,children:(0,m.jsx)(T,{...c,ref:t})})})})),S=n.forwardRef(((e,t)=>{const{value:r,defaultValue:a,onValueChange:o=()=>{},...s}=e,[c,l]=(0,i.i)({prop:r,defaultProp:a??[],onChange:o,caller:h}),d=n.useCallback((e=>l(((t=[])=>[...t,e]))),[l]),u=n.useCallback((e=>l(((t=[])=>t.filter((t=>t!==e))))),[l]);return(0,m.jsx)(_,{scope:e.__scopeAccordion,value:c,onItemOpen:d,onItemClose:u,children:(0,m.jsx)(A,{scope:e.__scopeAccordion,collapsible:!0,children:(0,m.jsx)(T,{...s,ref:t})})})})),[R,j]=v(h),T=n.forwardRef(((e,t)=>{const{__scopeAccordion:r,disabled:a,dir:o,orientation:s="vertical",...i}=e,u=n.useRef(null),p=(0,c.s)(u,t),h=x(r),b="ltr"===function(e){const t=n.useContext(f);return e||t||"ltr"}(o),v=(0,l.m)(e.onKeyDown,(e=>{if(!y.includes(e.key))return;const t=e.target,r=h().filter((e=>!e.ref.current?.disabled)),n=r.findIndex((e=>e.ref.current===t)),a=r.length;if(-1===n)return;e.preventDefault();let o=n;const c=a-1,l=()=>{o=n+1,o>c&&(o=0)},i=()=>{o=n-1,o<0&&(o=c)};switch(e.key){case"Home":o=0;break;case"End":o=c;break;case"ArrowRight":"horizontal"===s&&(b?l():i());break;case"ArrowDown":"vertical"===s&&l();break;case"ArrowLeft":"horizontal"===s&&(b?i():l());break;case"ArrowUp":"vertical"===s&&i()}const d=o%a;r[d].ref.current?.focus()}));return(0,m.jsx)(R,{scope:r,disabled:a,direction:o,orientation:s,children:(0,m.jsx)(g.Slot,{scope:r,children:(0,m.jsx)(d.sG.div,{...i,"data-orientation":s,ref:p,onKeyDown:a?void 0:v})})})})),O="AccordionItem",[I,P]=v(O),L=n.forwardRef(((e,t)=>{const{__scopeAccordion:r,value:n,...a}=e,o=j(O,r),s=E(O,r),c=k(r),l=(0,p.B)(),i=n&&s.value.includes(n)||!1,d=o.disabled||e.disabled;return(0,m.jsx)(I,{scope:r,open:i,disabled:d,triggerId:l,children:(0,m.jsx)(u.bL,{"data-orientation":o.orientation,"data-state":V(i),...c,...a,ref:t,disabled:d,open:i,onOpenChange:e=>{e?s.onItemOpen(n):s.onItemClose(n)}})})}));L.displayName=O;var z="AccordionHeader";n.forwardRef(((e,t)=>{const{__scopeAccordion:r,...n}=e,a=j(h,r),o=P(z,r);return(0,m.jsx)(d.sG.h3,{"data-orientation":a.orientation,"data-state":V(o.open),"data-disabled":o.disabled?"":void 0,...n,ref:t})})).displayName=z;var D="AccordionTrigger",H=n.forwardRef(((e,t)=>{const{__scopeAccordion:r,...n}=e,a=j(h,r),o=P(D,r),s=C(D,r),c=k(r);return(0,m.jsx)(g.ItemSlot,{scope:r,children:(0,m.jsx)(u.l9,{"aria-disabled":o.open&&!s.collapsible||void 0,"data-orientation":a.orientation,id:o.triggerId,...c,...n,ref:t})})}));H.displayName=D;var U="AccordionContent",$=n.forwardRef(((e,t)=>{const{__scopeAccordion:r,...n}=e,a=j(h,r),o=P(U,r),s=k(r);return(0,m.jsx)(u.UC,{role:"region","aria-labelledby":o.triggerId,"data-orientation":a.orientation,...s,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})}));function V(e){return e?"open":"closed"}$.displayName=U;var q=r(6087),W=r(7723),F=r(8445),B=r(9407);const G=(0,B.A)("circle-off",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.35 2.69A10 10 0 0 1 21.3 15.65",key:"1pfsoa"}],["path",{d:"M19.08 19.08A10 10 0 1 1 4.92 4.92",key:"1ablyi"}]]);var K=r(1486),Q=r(8200),X="Switch",[Y,Z]=(0,o.A)(X),[J,ee]=Y(X),te=n.forwardRef(((e,t)=>{const{__scopeSwitch:r,name:a,checked:o,defaultChecked:s,required:u,disabled:p,value:f="on",onCheckedChange:h,form:y,...g}=e,[x,b]=n.useState(null),v=(0,c.s)(t,(e=>b(e))),w=n.useRef(!1),k=!x||y||!!x.closest("form"),[N,_]=(0,i.i)({prop:o,defaultProp:s??!1,onChange:h,caller:X});return(0,m.jsxs)(J,{scope:r,checked:N,disabled:p,children:[(0,m.jsx)(d.sG.button,{type:"button",role:"switch","aria-checked":N,"aria-required":u,"data-state":oe(N),"data-disabled":p?"":void 0,disabled:p,value:f,...g,ref:v,onClick:(0,l.m)(e.onClick,(e=>{_((e=>!e)),k&&(w.current=e.isPropagationStopped(),w.current||e.stopPropagation())}))}),k&&(0,m.jsx)(ae,{control:x,bubbles:!w.current,name:a,value:f,checked:N,required:u,disabled:p,form:y,style:{transform:"translateX(-100%)"}})]})}));te.displayName=X;var re="SwitchThumb",ne=n.forwardRef(((e,t)=>{const{__scopeSwitch:r,...n}=e,a=ee(re,r);return(0,m.jsx)(d.sG.span,{"data-state":oe(a.checked),"data-disabled":a.disabled?"":void 0,...n,ref:t})}));ne.displayName=re;var ae=n.forwardRef((({__scopeSwitch:e,control:t,checked:r,bubbles:a=!0,...o},s)=>{const l=n.useRef(null),i=(0,c.s)(l,s),d=function(e){const t=n.useRef({value:e,previous:e});return n.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(r),u=function(e){const[t,r]=n.useState(void 0);return(0,Q.N)((()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let a,o;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,o=t.blockSize}else a=e.offsetWidth,o=e.offsetHeight;r({width:a,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)}),[e]),t}(t);return n.useEffect((()=>{const e=l.current;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(d!==r&&n){const t=new Event("click",{bubbles:a});n.call(e,r),e.dispatchEvent(t)}}),[d,r,a]),(0,m.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:i,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})}));function oe(e){return e?"checked":"unchecked"}ae.displayName="SwitchBubbleInput";var se=te,ce=ne,le=r(2748);function ie({className:e,...t}){return(0,n.createElement)(se,{"data-slot":"switch",className:(0,le.cn)("cursor-pointer peer data-[state=checked]:bg-orange-500 data-[state=unchecked]:bg-primary focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-foreground inline-flex h-[2em] w-12 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t},(0,n.createElement)(ce,{"data-slot":"switch-thumb",className:(0,le.cn)("bg-background dark:data-[state=unchecked]:bg-primary-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-5 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(140%-4px)] data-[state=unchecked]:translate-x-[3px] data-[state=unchecked]:translate-x-[2px]")}))}const de=(0,B.A)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);var ue=r(684);const pe=(0,B.A)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),me=(0,B.A)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]),fe=(0,B.A)("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]),he=(0,B.A)("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);var ye=r(418);const ge=(0,B.A)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]),xe=({asset:e,context:t})=>{const{asyncLocked:r}=(0,a.a)(),{currentContext:o}=window.SPCAssetManager;return(0,n.createElement)(K.A,{from:"fade"},(0,n.createElement)("div",{className:"flex items-center mb-4 text-sm font-medium"},(0,n.createElement)(t.icon,{className:"w-4 h-4 mr-2"}),(0,n.createElement)("h5",{className:"text-gray-700"},t.title)),(0,n.createElement)("div",{className:"space-y-3"},t.contexts.map((a=>{const s=e[t.key].includes(a.saveAs),c=((e,t)=>!("global"===t||!e?.locationContexts?.includes("global")))(e,a.key),l=(e=>{let t=de;return"global"===e.category&&(t=ue.A),"singular"===e.category&&(t=pe),"archive"===e.category&&(t="is_tax"===o.subType?"category"===o.taxonomyType?me:fe:"is_author"===o.subType?de:he),"special"===e.category&&("is_search"===o.pageType?t=F.A:"is_404"===o.pageType?t=ye.A:"is_front_page"!==o.pageType&&"is_home"!==o.pageType||(t=ge)),t})(a);return(0,n.createElement)("div",{key:a.key,className:(0,le.cn)("min-w-0 flex items-center gap-5 py-2 px-3 rounded-lg border bg-white border-gray-200 hover:border-gray-300",{"opacity-60":c})},(0,n.createElement)(l,{className:"size-4 shrink-0"}),(0,n.createElement)("div",{className:"min-w-0"},(0,n.createElement)("div",{className:"font-medium text-sm text-gray-900 flex items-center gap-2"},a.label,c&&(0,n.createElement)(K.A,{className:"text-xs px-1.5 py-0.5 bg-gray-300 text-gray-900 rounded"},(0,W.__)("Redundant","wp-cloudflare-page-cache"))),(0,n.createElement)("div",{className:"text-xs text-gray-500 truncate mt-1"},a.description)),(0,n.createElement)(ie,{checked:!s,onCheckedChange:e=>t.handleToggle(a.key,e),disabled:c||r,className:"text-sm ml-auto"}))}))))},be=(0,B.A)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),ve=(0,B.A)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);var we=r(7946),ke=r(3558),Ne=r(9557),_e=r(6858),Ee=r(8309);const Ae=({className:e="",category:t=""})=>(0,n.createElement)("div",{className:e},(e=>{switch(e){case"theme":return(0,n.createElement)(ke.A,{className:"w-4 h-4 text-purple-600"});case"plugin":return(0,n.createElement)(Ne.A,{className:"w-4 h-4 text-blue-600"});case"core":return(0,n.createElement)(_e.A,{className:"w-4 h-4 text-green-600"});case"custom":return(0,n.createElement)(pe,{className:"w-4 h-4 text-orange-600"});case"external":return(0,n.createElement)(Ee.A,{className:"w-4 h-4 text-red-600"});default:return(0,n.createElement)(pe,{className:"w-4 h-4 text-gray-600"})}})(t)),Ce=(0,B.A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var Me=r(3136),Se=r(6236),Re=r(7078);const je=({asset:e})=>{const{label:t,status:r}=(e=>0===e.locationContexts.length&&0===e.userStateContexts.length?{status:"enabled"}:e.locationContexts.includes("global")?{status:"disabled"}:{status:"partially_disabled"})(e);return(0,n.createElement)("div",{className:"p-3 flex items-center gap-3 max-w-full w-full"},(0,n.createElement)("div",{className:"flex items-center space-x-3 flex-1 min-w-0"},(0,n.createElement)(Ce,{className:"size-3 transition-transform duration-300 group-data-[state=open]:rotate-90 flex-shrink-0"}),(0,n.createElement)(Ae,{className:"flex items-center flex-shrink-0",category:e.category}),(0,n.createElement)("div",{className:"text-left min-w-0 flex-1"},(0,n.createElement)("div",{className:"flex items-center space-x-2 min-w-0"},(0,n.createElement)("p",{className:"font-semibold text-[14px] text-gray-900 truncate min-w-0"},e.name),(0,n.createElement)("span",{className:"text-xs px-1.5 py-0.5 bg-gray-100 text-gray-600 rounded font-mono flex-shrink-0"},e.size),(0,n.createElement)("span",{className:"text-xs px-1.5 py-0.5 bg-blue-100 text-blue-900 font-medium rounded flex-shrink-0"},e.origin_type)),(0,n.createElement)("p",{className:"text-sm text-gray-500 mt-1 truncate"},e.asset_url))),(0,n.createElement)(Te,{status:r,label:t||""}))},Te=({status:e,label:t=""})=>{const r={enabled:{Icon:Me.A,label:(0,W.__)("Loaded Everywhere","wp-cloudflare-page-cache"),colorClass:"text-green-600"},disabled:{Icon:Se.A,label:(0,W.__)("Not Loaded Anywhere","wp-cloudflare-page-cache"),colorClass:"text-red-600"},partially_disabled:{Icon:Re.A,label:(0,W.__)("Loaded Only on Some Pages","wp-cloudflare-page-cache"),colorClass:"text-amber-600"}},{colorClass:a,Icon:o,label:s}=r[e];return(0,n.createElement)("div",{className:(0,le.cn)("flex items-center gap-2",a)},(0,n.createElement)("span",{className:"text-sm font-semibold"},t||s),(0,n.createElement)("span",{className:"flex items-center p-2"},(0,n.createElement)(o,{className:"size-5"})))},Oe=({assetHash:e})=>{const{otherExclusions:t}=window.SPCAssetManager;return t[e]?(0,n.createElement)(K.A,{from:"fade"},(0,n.createElement)("div",{className:"flex items-center mb-4 text-sm font-medium"},(0,n.createElement)(we.A,{className:"w-4 h-4 mr-2"}),(0,n.createElement)("h5",{className:"text-gray-700"},(0,W.__)("Other Exclusions","wp-cloudflare-page-cache"))),(0,n.createElement)("div",{className:"flex flex-wrap gap-2"},t[e].map(((e,t)=>(0,n.createElement)("a",{key:t,href:e.url,className:"text-sm bg-gray-700 px-3 py-1 rounded text-white font-semibold hover:bg-gray-800 transition-colors"},e.label))))):null},Ie=({asset:e})=>{const{assets:t,markChange:r,updateAssets:o}=(0,a.a)(),{availableContexts:s}=window.SPCAssetManager,{locationContexts:c,userStateContexts:l}=s,i=(n,a,s="locationContexts")=>{const i=e.asset_hash,d={...e},u=("locationContexts"===s?c:l).find((e=>e.key===n));if(!u)return;const p=u.saveAs;a?d[s]=d[s].filter((e=>e!==p)):d[s].push(p),d[s]=Array.from(new Set(d[s]));const m=[...t].map((e=>e.asset_hash===i?d:e));o(m),r(i,{[n]:a})},d=[{key:"locationContexts",title:(0,W.__)("Location Rules","wp-cloudflare-page-cache"),icon:be,contexts:c,handleToggle:(e,t)=>i(e,t,"locationContexts")},{key:"userStateContexts",title:(0,W.__)("User State Filters","wp-cloudflare-page-cache"),icon:ve,contexts:l,handleToggle:(e,t)=>i(e,t,"userStateContexts")}];return(0,n.createElement)(L,{value:e.asset_hash,className:"max-w-full rounded-lg border border-gray-200"},(0,n.createElement)(H,{className:"group max-w-full w-full"},(0,n.createElement)(je,{asset:e})),(0,n.createElement)($,{className:"p-4 bg-muted space-y-4 border-t border-gray-200"},d.map(((t,r)=>(0,n.createElement)(xe,{key:r,asset:e,context:t}))),(0,n.createElement)(Oe,{assetHash:e.asset_hash})))},Pe=()=>{const{searchQuery:e}=(0,a.a)();return(0,n.createElement)("div",{className:"p-8 text-center text-gray-500"},(0,n.createElement)(F.A,{className:"w-8 h-8 mx-auto mb-2 text-gray-300"}),(0,n.createElement)("p",{className:"text-sm"},(0,W.sprintf)(
// translators: %s is the search query
// translators: %s is the search query
(0,W.__)('No assets found matching "%s"',"wp-cloudflare-page-cache"),e)))},Le=()=>{const{activeTab:e}=(0,a.a)();return(0,n.createElement)("div",{className:"p-8 text-center text-gray-500"},(0,n.createElement)(G,{className:"w-8 h-8 mx-auto mb-2 text-gray-300"}),(0,n.createElement)("p",{className:"text-sm"},(0,W.sprintf)(
// translators: %s is the asset type (css/js)
// translators: %s is the asset type (css/js)
(0,W.__)("No %s assets found.","wp-cloudflare-page-cache"),e)))},ze=()=>{const{activeTab:e,searchQuery:t,assets:r}=(0,a.a)(),o=(0,q.useMemo)((()=>r.filter((r=>r.asset_type===e&&(r.name.toLowerCase().includes(t)||r.asset_url.toLowerCase().includes(t)||r.handle.toLowerCase().includes(t)||r.category.toLowerCase().includes(t))))),[t,e,r]);return(0,n.createElement)("div",{className:"grow overflow-y-auto"},(0,n.createElement)("div",{className:"bg-background p-4 max-w-full"},o.length>0&&(0,n.createElement)(N,{type:"single",collapsible:!0,className:"space-y-2"},o.map((e=>(0,n.createElement)(Ie,{asset:e,key:e.asset_hash})))),o.length<1&&t.length>0&&(0,n.createElement)(Pe,null),o.length<1&&t.length<1&&(0,n.createElement)(Le,null)))}},7078:(e,t,r)=>{r.d(t,{A:()=>n});const n=(0,r(9407).A)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},7971:(e,t,r)=>{r.d(t,{C:()=>s});var n=r(1609),a=r(1071),o=r(8200),s=e=>{const{present:t,children:r}=e,s=function(e){const[t,r]=n.useState(),a=n.useRef(null),s=n.useRef(e),l=n.useRef("none"),i=e?"mounted":"unmounted",[d,u]=function(e,t){return n.useReducer(((e,r)=>t[e][r]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return n.useEffect((()=>{const e=c(a.current);l.current="mounted"===d?e:"none"}),[d]),(0,o.N)((()=>{const t=a.current,r=s.current;if(r!==e){const n=l.current,a=c(t);u(e?"MOUNT":"none"===a||"none"===t?.display?"UNMOUNT":r&&n!==a?"ANIMATION_OUT":"UNMOUNT"),s.current=e}}),[e,u]),(0,o.N)((()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,n=n=>{const o=c(a.current).includes(n.animationName);if(n.target===t&&o&&(u("ANIMATION_END"),!s.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)}))}},o=e=>{e.target===t&&(l.current=c(a.current))};return t.addEventListener("animationstart",o),t.addEventListener("animationcancel",n),t.addEventListener("animationend",n),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",o),t.removeEventListener("animationcancel",n),t.removeEventListener("animationend",n)}}u("ANIMATION_END")}),[t,u]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:n.useCallback((e=>{a.current=e?getComputedStyle(e):null,r(e)}),[])}}(t),l="function"==typeof r?r({present:s.isPresent}):n.Children.only(r),i=(0,a.s)(s.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}(l));return"function"==typeof r||s.isPresent?n.cloneElement(l,{ref:i}):null};function c(e){return e?.animationName||"none"}s.displayName="Presence"},8200:(e,t,r)=>{r.d(t,{N:()=>a});var n=r(1609),a=globalThis?.document?n.useLayoutEffect:()=>{}},8445:(e,t,r)=>{r.d(t,{A:()=>n});const n=(0,r(9407).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},9957:(e,t,r)=>{function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}r.d(t,{m:()=>n})}}]);

Youez - 2016 - github.com/yon3zu
LinuXploit