403Webshell
Server IP : 14.225.204.176  /  Your IP : 216.73.216.6
Web Server : nginx/1.24.0
System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64
User : root ( 0)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/php/tapchi.ai/wp-content/plugins/light-modal-block/build/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/php/tapchi.ai/wp-content/plugins/light-modal-block/build/index.js
(()=>{var e,o={942:(e,o)=>{var l;!function(){"use strict";var t={}.hasOwnProperty;function a(){for(var e="",o=0;o<arguments.length;o++){var l=arguments[o];l&&(e=n(e,i(l)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var o="";for(var l in e)t.call(e,l)&&e[l]&&(o=n(o,l));return o}function n(e,o){return o?e?e+" "+o:e+o:e}e.exports?(a.default=a,e.exports=a):void 0===(l=function(){return a}.apply(o,[]))||(e.exports=l)}()},979:(e,o,l)=>{"use strict";const t=window.wp.blocks;var a=l(942),i=l.n(a);const n=window.wp.i18n,r=window.wp.blockEditor,d=window.wp.element,s=window.wp.components,c=window.wp.data,h=window.wp.editor;let g=e=>crypto.getRandomValues(new Uint8Array(e));const u=()=>((e,o=21)=>((e,o,l)=>{let t=(2<<Math.log2(e.length-1))-1,a=-~(1.6*t*o/e.length);return(i=o)=>{let n="";for(;;){let o=l(a),r=0|a;for(;r--;)if(n+=e[o[r]&t]||"",n.length>=i)return n}}})(e,0|o,g))("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",11)(),b=()=>(0,c.useSelect)((e=>{const o=[],l=e(r.store).getBlocks(),t=e=>{e?.innerBlocks&&e.innerBlocks.forEach((e=>{"cloudcatch/light-modal-block"===e.name&&o.push(e),t(e)}))};return l.forEach((e=>{"cloudcatch/light-modal-block"===e.name&&o.push(e),t(e)})),o})),m=window.ReactJSXRuntime,p=(0,s.withNotices)((function(e){const{attributes:o,setAttributes:l,isSelected:t,clientId:a}=e,{id:g,label:p,width:_,backdropColor:k,enableCloseButton:x,closeIconColor:w,closeBackgroundColor:v,triggerDelay:C,enableTriggerDelay:f,triggerSelector:j,cookieDuration:B,interactionSetsCookie:y}=o,S=b();(0,d.useEffect)((()=>{const e=S.filter(((e,o,l)=>l.find((o=>o.attributes.id===e.attributes.id&&o.clientId!==e.clientId))));if(!(e.length<=1))for(let o=1;o<e.length;o++)(0,c.dispatch)("core/block-editor").updateBlockAttributes(e[o].clientId,{id:u()})}),[a,S]);const[M,I]=(0,d.useState)(!1),N=(0,r.__experimentalUseMultipleOriginColorsAndGradients)(),P=(0,c.useSelect)((e=>{const{getCurrentPostType:o}=e(h.store);return o()}),[]),T=(0,d.useRef)(null),[E,A]=(0,d.useState)(!1),D=(0,c.useSelect)((e=>{const{hasSelectedInnerBlock:o}=e(r.store);return o(a,!0)}),[a]);(0,d.useEffect)((()=>{g||l({id:u()})}),[g,l]),(0,d.useEffect)((()=>{t||D?A(!0):"wp_block"!==P||M?A(!1):(I(!0),A(!0))}),[t,D,P]);const[H]=(0,r.useSettings)("spacing.units"),O=(0,s.__experimentalUseCustomUnits)({availableUnits:H||["%","px","em","rem","vw"]}),V=Number.isFinite(_)?_+"%":_,F=(0,r.useBlockProps)({style:V?{maxWidth:V}:void 0}),U={ref:T,role:"dialog","aria-modal":!0,className:i()("wp-block-cloudcatch-light-modal-block__wrapper",{"is-open":E}),style:k?{backgroundColor:k}:void 0,"data-trigger-delay":f?C:void 0,"data-trigger-selector":j||void 0,"data-cookie-duration":B||void 0,"data-cookie-interaction":y||void 0,"data-modal-id":g};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(r.InspectorControls,{children:[(0,m.jsxs)(s.PanelBody,{children:[(0,m.jsxs)("p",{className:"wp-block-cloudcatch-light-modal-block__editor-id",children:[(0,n.__)("Modal ID","light-modal-block"),": ",(0,m.jsx)("code",{children:g})]}),(0,m.jsx)(s.TextControl,{label:(0,n.__)("Modal Label","light-modal-block"),value:p,placeholder:(0,n.__)("New Modal","light-modal-block"),onChange:e=>l({label:e}),help:(0,n.__)("Used to differentiate modals from one another","light-modal-block"),__nextHasNoMarginBottom:!0}),(0,m.jsx)(s.__experimentalUnitControl,{label:(0,n.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:_||"",onChange:e=>{e=0>parseFloat(e)?"0":e,l({width:e})},units:O}),(0,m.jsx)(s.ToggleControl,{label:(0,n.__)("Show close button","light-modal-block"),checked:x||!1,onChange:()=>{l({enableCloseButton:!x})},__nextHasNoMarginBottom:!0})]}),(0,m.jsxs)(s.PanelBody,{title:(0,n.__)("Triggers","light-modal-block"),children:[(0,m.jsx)(s.ToggleControl,{label:(0,n.__)("Show modal on page load","light-modal-block"),checked:f||!1,onChange:()=>{l({enableTriggerDelay:!f})},__nextHasNoMarginBottom:!0}),f&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(s.__experimentalUnitControl,{label:(0,n.__)("Delay","light-modal-block"),labelPosition:"edge",__unstableInputWidth:"80px",value:C,placeholder:"0",onChange:e=>l({triggerDelay:e}),unit:"ms",units:{ms:{value:"ms",label:"ms",default:"",a11yLabel:(0,n.__)("Milliseconds (ms)"),step:1}}}),(0,m.jsx)(s.__experimentalUnitControl,{label:(0,n.__)("Cookie duration","light-modal-block"),labelPosition:"edge",__unstableInputWidth:"80px",value:B,help:(0,n.__)("Duration in minutes before this modal will appear again after being closed. Leave blank to always show this modal.","light-modal-block"),placeholder:"0",onChange:e=>l({cookieDuration:e}),unit:"min",units:{ms:{value:"min",label:"min",default:"",a11yLabel:(0,n.__)("Minutes (min)"),step:1}}}),(0,m.jsx)(s.ToggleControl,{label:(0,n.__)("Interaction sets cookie","light-modal-block"),checked:y||!1,help:(0,n.__)("Interaction with the modal such as clicking a link or submitting a form, will set the cookie, respecting the cookie duration.","light-modal-block"),onChange:()=>{l({interactionSetsCookie:!y})},__nextHasNoMarginBottom:!0})]}),(0,m.jsx)(s.TextControl,{label:(0,n.__)("Selector","light-modal-block"),value:j,onChange:e=>l({triggerSelector:e}),style:{fontFamily:"monospace"},__nextHasNoMarginBottom:!0})]})]}),(0,m.jsxs)(r.InspectorControls,{group:"color",children:[(0,m.jsx)(r.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:k,label:(0,n.__)("Backdrop","light-modal-block"),onColorChange:e=>l({backdropColor:e}),isShownByDefault:!0,enableAlpha:!0,resetAllFilter:()=>({backdropColor:void 0})}],panelId:a,...N}),(0,m.jsx)(r.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:w,label:(0,n.__)("Close Icon","light-modal-block"),onColorChange:e=>l({closeIconColor:e}),isShownByDefault:!0,enableAlpha:!0,resetAllFilter:()=>({closeIconColor:void 0})}],panelId:a,...N}),(0,m.jsx)(r.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:v,label:(0,n.__)("Close Background","light-modal-block"),onColorChange:e=>l({closeBackgroundColor:e}),isShownByDefault:!0,enableAlpha:!0,resetAllFilter:()=>({closeBackgroundColor:void 0})}],panelId:a,...N})]}),(0,m.jsx)("div",{...U,children:(0,m.jsxs)("div",{...F,children:[(0,m.jsx)("div",{...(0,r.useInnerBlocksProps)({className:"wp-block-cloudcatch-light-modal-block__content"})}),x&&(0,m.jsx)("button",{className:"wp-block-cloudcatch-light-modal-block__close",onClick:()=>{A(!1)},style:{backgroundColor:v},children:(0,m.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",children:(0,m.jsx)(s.Path,{d:"M24 1.2 22.8 0 12 10.8 1.2 0 0 1.2 10.8 12 0 22.8 1.2 24 12 13.2 22.8 24l1.2-1.2L13.2 12 24 1.2z",fill:w})})})]})})]})})),_=JSON.parse('{"UU":"cloudcatch/light-modal-block"}'),k=window.wp.primitives,x=(0,m.jsxs)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,m.jsx)(k.Path,{d:"M6.4 12.1h11.2v1.5H6.4zM6.5 15.5h11.2V17H6.5z"}),(0,m.jsx)(k.Path,{d:"M23.2 4.5c0-2.1-1.7-3.7-3.7-3.7-1 0-2 .4-2.7 1.2-.3.3-.5.7-.7 1H5c-1.1 0-1.9.9-1.9 2v14c0 1.1.8 2 1.9 2h14.1c1.1 0 1.9-.9 1.9-1.9V7.9c1.3-.5 2.2-1.8 2.2-3.4zM19.5 19c0 .2-.2.4-.4.4H5c-.2 0-.4-.2-.4-.4V5c0-.2.2-.4.4-.4h10.8c0 2.1 1.7 3.7 3.7 3.7V19zm0-12.2c-1.2 0-2.2-1-2.2-2.2 0-.6.2-1.1.6-1.5.4-.5 1-.7 1.6-.7 1.2 0 2.2 1 2.2 2.2s-1 2.2-2.2 2.2z"})]}),w=window.wp.plugins,v=(0,m.jsx)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,m.jsx)(k.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})}),C=(0,m.jsx)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,m.jsx)(k.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})});(0,w.registerPlugin)("light-modal-block",{render:function(){const e=b(),{selectBlock:o,removeBlock:l}=(0,c.useDispatch)(r.store);return(0,m.jsx)(h.PluginSidebar,{name:"plugin-sidebar-test",title:(0,n.__)("Modals","light-modal-block"),icon:x,children:(0,m.jsxs)("div",{className:"plugin-sidebar-content",children:[e.length>0&&e.map(((e,t)=>(0,m.jsx)("div",{children:(0,m.jsx)(s.Card,{className:"light-modal-block__card",children:(0,m.jsxs)(s.CardBody,{children:[(0,m.jsx)(s.__experimentalHeading,{size:4,children:e.attributes.label||(0,n.__)("New Modal","light-modal-block")}),(0,m.jsxs)("div",{children:[(0,m.jsx)(s.Button,{icon:v,label:(0,n.__)("Edit Modal","light-modal-block"),onClick:()=>o(e.clientId)}),(0,m.jsx)(s.Button,{icon:C,label:(0,n.__)("Remove Modal","light-modal-block"),onClick:()=>l(e.clientId)})]})]})})},t))),e.length<1&&(0,m.jsx)(s.Card,{isBorderless:!0,children:(0,m.jsx)(s.CardBody,{children:(0,m.jsx)("p",{children:(0,n.__)("There are no modals on this page","light-modal-block")})})})]})})}});const f=window.wp.hooks,j=window.wp.compose,B=["core/button","core/image","core/heading","core/group"],y=(0,j.createHigherOrderComponent)((e=>o=>{const{name:l,attributes:t,setAttributes:a}=o,i=b(),d=i.filter((e=>t?.modalEnabled===e?.attributes?.id))[0],{selectBlock:h}=(0,c.useDispatch)(r.store),g=[{label:(0,n.__)("Select Modal","light-modal-block"),value:""},...i.map((e=>({label:e?.attributes?.label||(0,n.__)("New Modal","light-modal-block"),value:e?.attributes?.id})))];return B.includes(l)?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(e,{...o}),"cloudcatch/light-modal-block"!==l&&(0,m.jsx)(r.InspectorAdvancedControls,{children:(0,m.jsxs)(s.BaseControl,{__nextHasNoMarginBottom:!0,children:[(0,m.jsx)(s.ToggleControl,{label:(0,n.__)("Show Modal on Click","light-modal-block"),checked:t?.modalTriggerEnabled||!1,onChange:()=>{a({modalTriggerEnabled:!t?.modalTriggerEnabled})},__nextHasNoMarginBottom:!0}),t?.modalTriggerEnabled&&(0,m.jsx)(s.SelectControl,{label:(0,n.__)("Modal","light-modal-block"),value:t?.modalEnabled,options:g,onChange:e=>{a({modalEnabled:e})},__nextHasNoMarginBottom:!0}),null!=d&&(0,m.jsx)(s.Button,{label:(0,n.__)("Edit Modal","light-modal-block"),variant:"secondary",onClick:()=>h(d.clientId),children:(0,n.__)("Open Modal","light-modal-block")})]})})]}):(0,m.jsx)(e,{...o})}),"withInspectorControl");(0,f.addFilter)("blocks.registerBlockType","cloudcatch/LightModalBlockAttributes",((e,o)=>(void 0!==e?.attributes&&B.includes(o)&&(e.attributes={...e.attributes,modalTriggerEnabled:{type:"boolean",default:!1},modalEnabled:{type:"string"}}),e))),(0,f.addFilter)("editor.BlockEdit","cloudcatch/LightModalBlockAdvancedControls",y),(0,f.addFilter)("blocks.getSaveContent.extraProps","cloudcatch/LightModalBlockAttributes",((e,o,l)=>{const{modalTriggerEnabled:t,modalEnabled:a}=l;return!0===t&&null!=a?{...e,"data-trigger-modal":a}:e})),(0,t.registerBlockType)(_.UU,{edit:p,save:function(e){const{attributes:o}=e,{id:l,width:t,backdropColor:a,enableCloseButton:n,closeIconColor:d,closeBackgroundColor:c,triggerDelay:h,enableTriggerDelay:g,triggerSelector:u,cookieDuration:b,interactionSetsCookie:p}=o,_=Number.isFinite(t)?t+"%":t,k=r.useBlockProps.save({style:_?{maxWidth:_}:void 0}),x={role:"dialog","aria-modal":!0,className:i()("wp-block-cloudcatch-light-modal-block__wrapper"),style:a?{backgroundColor:a}:void 0,"data-trigger-delay":g?h:void 0,"data-trigger-selector":u||void 0,"data-cookie-duration":b||void 0,"data-cookie-interaction":p||void 0,"data-modal-id":l};return(0,m.jsx)("div",{...x,children:(0,m.jsxs)("div",{...k,children:[(0,m.jsx)("div",{...r.useInnerBlocksProps.save({className:"wp-block-cloudcatch-light-modal-block__content"})}),n&&(0,m.jsx)("button",{className:"wp-block-cloudcatch-light-modal-block__close",style:{backgroundColor:c},children:(0,m.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",children:(0,m.jsx)(s.Path,{d:"M24 1.2 22.8 0 12 10.8 1.2 0 0 1.2 10.8 12 0 22.8 1.2 24 12 13.2 22.8 24l1.2-1.2L13.2 12 24 1.2z",fill:d})})})]})})},icon:x})}},l={};function t(e){var a=l[e];if(void 0!==a)return a.exports;var i=l[e]={exports:{}};return o[e](i,i.exports,t),i.exports}t.m=o,e=[],t.O=(o,l,a,i)=>{if(!l){var n=1/0;for(c=0;c<e.length;c++){for(var[l,a,i]=e[c],r=!0,d=0;d<l.length;d++)(!1&i||n>=i)&&Object.keys(t.O).every((e=>t.O[e](l[d])))?l.splice(d--,1):(r=!1,i<n&&(n=i));if(r){e.splice(c--,1);var s=a();void 0!==s&&(o=s)}}return o}i=i||0;for(var c=e.length;c>0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[l,a,i]},t.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},t.d=(e,o)=>{for(var l in o)t.o(o,l)&&!t.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:o[l]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={57:0,350:0};t.O.j=o=>0===e[o];var o=(o,l)=>{var a,i,[n,r,d]=l,s=0;if(n.some((o=>0!==e[o]))){for(a in r)t.o(r,a)&&(t.m[a]=r[a]);if(d)var c=d(t)}for(o&&o(l);s<n.length;s++)i=n[s],t.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return t.O(c)},l=globalThis.webpackChunklight_modal_block=globalThis.webpackChunklight_modal_block||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))})();var a=t.O(void 0,[350],(()=>t(979)));a=t.O(a)})();

Youez - 2016 - github.com/yon3zu
LinuXploit