HOME


Mini Shell 1.0
DIR: /var/www/2of3/wp-content/plugins/security-1747135779/build/
Upload File :
Current File : /var/www/2of3/wp-content/plugins/security-1747135779/build/index.js
(()=>{"use strict";var t,e={662:()=>{const t=window.wp.blocks,e=window.React,o=window.wp.blockEditor,a=window.wp.components,i=window.wp.i18n;var n;function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var a in o)({}).hasOwnProperty.call(o,a)&&(t[a]=o[a])}return t},l.apply(null,arguments)}const r=JSON.parse('{"smoothScroll":{"type":"boolean","default":false},"opacity":{"type":"number","default":0.7},"position":{"type":"object","default":{"x":"30px","y":"30px","anchor":["right","bottom"]}},"transitionDuration":{"type":"string","default":"0.3s"},"enableOnDesktop":{"type":"boolean","default":true},"breakPointMobileDesktop":{"type":"number","default":768}}'),s=JSON.parse('{"multiple":false,"align":true,"ariaLabel":true}');(0,t.registerBlockType)("makeiteasy/back-to-top",{icon:function(t){return e.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 96 960 960"},t),n||(n=e.createElement("path",{d:"M450 896V370L202 618l-42-42 320-320 320 320-42 42-248-248v526z"})))},edit:({attributes:{smoothScroll:t,opacity:n,position:l,transitionDuration:r,enableOnDesktop:s,breakPointMobileDesktop:c,goToBottom:p},setAttributes:m})=>(0,e.createElement)(e.Fragment,null,(({setAttributes:t,smoothScroll:n,enableOnDesktop:l,breakPointMobileDesktop:r,transitionDuration:s,opacity:c,position:p,goToBottom:m})=>(0,e.createElement)(o.InspectorControls,null,(0,e.createElement)(a.PanelBody,{title:(0,i.__)("Page smooth scrolling","makeiteasy-back-to-top")},(0,e.createElement)(a.PanelRow,null,(0,e.createElement)(a.ToggleControl,{label:(0,i.__)("Enable smooth scrolling","makeiteasy-back-to-top"),checked:null!=n&&n,onChange:e=>t({smoothScroll:e})}))),(0,e.createElement)(a.PanelBody,{title:(0,i.__)("Desktop/mobile","makeiteasy-back-to-top")},(0,e.createElement)(a.PanelRow,null,(0,e.createElement)(a.ToggleControl,{label:(0,i.__)("Enable on desktop","makeiteasy-back-to-top"),checked:null==l||l,onChange:e=>t({enableOnDesktop:e})})),(0,e.createElement)(a.PanelRow,null,(0,e.createElement)(a.__experimentalUnitControl,{onChange:e=>t({breakPointMobileDesktop:e}),value:r,label:(0,i.__)("Breakpoint value","makeiteasy-back-to-top"),size:"small",className:"makeiteasy-btt-breakpoint",disabled:l}))),(0,e.createElement)(a.PanelBody,{title:(0,i.__)("Opacity","makeiteasy-back-to-top")},(0,e.createElement)(a.PanelRow,null,(0,e.createElement)(a.RangeControl,{help:"Take care of the contrast with the background. Mind the accessibility.",initialPosition:.7,label:(0,i.__)("Select opacity","makeiteasy-back-to-top"),max:1,min:0,step:.01,value:c,onChange:e=>t({opacity:e})}))),(0,e.createElement)(a.PanelBody,{title:(0,i.__)("Transition","makeiteasy-back-to-top")},(0,e.createElement)(a.PanelRow,null,(0,e.createElement)(a.__experimentalUnitControl,{onChange:e=>t({transitionDuration:e}),value:s,label:(0,i.__)("Duration","makeiteasy-back-to-top"),units:[{value:"s",label:"s",default:.3},{value:"ms",label:"ms",default:300}],isResetValueOnUnitChange:!0,className:"makeiteasy-shorter-input-box",title:"How long does it take for block to appear",help:"Appearance duration"}))),(0,e.createElement)(a.PanelBody,{title:"Position"},(0,e.createElement)(a.PanelRow,null,(0,e.createElement)(a.__experimentalUnitControl,{onChange:e=>t({position:{...p,x:e}}),value:p.x,label:(0,i.__)("from right","makeiteasy-back-to-top"),className:"makeiteasy-shorter-input-box"})),(0,e.createElement)(a.PanelRow,null,(0,e.createElement)(a.__experimentalUnitControl,{onChange:e=>t({position:{...p,y:e}}),value:p.y,label:(0,i.__)("from bottom","makeiteasy-back-to-top"),className:"makeiteasy-shorter-input-box"}))),(0,e.createElement)(a.PanelBody,{title:"Go to bottom"},(0,e.createElement)(a.PanelRow,null,(0,e.createElement)(a.ToggleControl,{label:(0,i.__)("Go to bottom function","makeiteasy-back-to-top"),checked:null!=m&&m,onChange:e=>t({goToBottom:e})})))))({setAttributes:m,smoothScroll:t,enableOnDesktop:s,breakPointMobileDesktop:c,transitionDuration:r,opacity:n,position:l,goToBottom:p}),(0,e.createElement)("div",{...(0,o.useInnerBlocksProps)((0,o.useBlockProps)({id:"makeiteasy-back-to-top",style:{"--makeiteasy-back-to-top-opacity":n,"--makeiteasy-back-to-top-visibility-transition-duration":r,"--makeiteasy-back-to-top-right":l.x,"--makeiteasy-back-to-top-bottom":l.y}}),{template:[["core/button",{text:`<img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCA5NiA0ODAgMjgzIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Im00MyAzNzktNDMtNDMgMjQwLTI0MCAyNDAgMjQwLTQzIDQzLTE5Ny0xOTd6IiBmaWxsPSIjZmZmIi8+PC9zdmc+Cg==" alt="${(0,i.__)("Back to top arrow","makeiteasy-back-to-top")}" width="24" height="24">`,ariaLabel:(0,i.__)("Back to top","makeiteasy-back-to-top"),style:{spacing:{padding:{top:"12px",right:"12px",bottom:"12px",left:"12px"}},border:{radius:"9px"}}}]]})})),save:({attributes:{smoothScroll:t,opacity:a,position:i,transitionDuration:n,enableOnDesktop:l,breakPointMobileDesktop:r,goToBottom:s}})=>(0,e.createElement)("div",{...o.useInnerBlocksProps.save(o.useBlockProps.save({id:"makeiteasy-back-to-top","data-smooth-scroll":t,"data-enable-on-desktop":l,"data-break-point-mobile-desktop":r,"data-go-to-bottom":s,style:{"--makeiteasy-back-to-top-opacity":a.toString(),"--makeiteasy-back-to-top-visibility-transition-duration":n,"--makeiteasy-back-to-top-right":i.x,"--makeiteasy-back-to-top-bottom":i.y}}))}),deprecated:[{attributes:r,supports:s,save:({attributes:{smoothScroll:t,opacity:a,position:i,transitionDuration:n,enableOnDesktop:l,breakPointMobileDesktop:r}})=>(0,e.createElement)("div",{...o.useInnerBlocksProps.save(o.useBlockProps.save({id:"makeiteasy-back-to-top","data-smooth-scroll":t,"data-enable-on-desktop":l,"data-break-point-mobile-desktop":r,style:{"--makeiteasy-back-to-top-opacity":a.toString(),"--makeiteasy-back-to-top-visibility-transition-duration":n,"--makeiteasy-back-to-top-right":i.x,"--makeiteasy-back-to-top-bottom":i.y}}))})}]})}},o={};function a(t){var i=o[t];if(void 0!==i)return i.exports;var n=o[t]={exports:{}};return e[t](n,n.exports,a),n.exports}a.m=e,t=[],a.O=(e,o,i,n)=>{if(!o){var l=1/0;for(p=0;p<t.length;p++){for(var[o,i,n]=t[p],r=!0,s=0;s<o.length;s++)(!1&n||l>=n)&&Object.keys(a.O).every((t=>a.O[t](o[s])))?o.splice(s--,1):(r=!1,n<l&&(l=n));if(r){t.splice(p--,1);var c=i();void 0!==c&&(e=c)}}return e}n=n||0;for(var p=t.length;p>0&&t[p-1][2]>n;p--)t[p]=t[p-1];t[p]=[o,i,n]},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={57:0,350:0};a.O.j=e=>0===t[e];var e=(e,o)=>{var i,n,[l,r,s]=o,c=0;if(l.some((e=>0!==t[e]))){for(i in r)a.o(r,i)&&(a.m[i]=r[i]);if(s)var p=s(a)}for(e&&e(o);c<l.length;c++)n=l[c],a.o(t,n)&&t[n]&&t[n][0](),t[n]=0;return a.O(p)},o=globalThis.webpackChunkmakeiteasy_back_to_top=globalThis.webpackChunkmakeiteasy_back_to_top||[];o.forEach(e.bind(null,0)),o.push=e.bind(null,o.push.bind(o))})();var i=a.O(void 0,[350],(()=>a(662)));i=a.O(i)})();