403Webshell
Server IP : 192.158.238.246  /  Your IP : 216.73.216.204
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/4082427/root/proc/7779/cwd/plugins/gutenkit-blocks-addon/build/blocks/back-to-top/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/4082427/root/proc/7779/cwd/plugins/gutenkit-blocks-addon/build/blocks/back-to-top/index.js
(()=>{var e,t,o,r={4306:(e,t,o)=>{"use strict";const r=window.wp.blocks;o(7723);const n=window.wp.blockEditor;var s=o(6087),i=o(6942),a=o.n(i);const c=(e,t)=>{const{background:o,foreground:r}=t;(({percentage:e=100,onScroll:t=!1,speed:o=1,element:r,size:n=50,backgroundClr:s="white",color:i="blue",strokeWidth:a=5})=>{let c=window.frames["editor-canvas"]?.document.querySelector("html")||document.querySelector(".interface-interface-skeleton__content");if(wp?.editor)var l=Math.ceil(c.scrollHeight-c.clientHeight);else l=Math.ceil(document.body.scrollHeight-window.innerHeight);if(!r)return void console.error("Invalid element:",r);const d=r,u=d.getContext("2d"),p=2*n+a,h=p,g=p/2,f=h/2;var b;d.width=p,d.height=h,b=t?Math.floor(window.scrollY/l*100):e>100?100:e+o,wp?.editor&&(b=t?Math.floor(c.scrollTop/l*100):e>100?100:e+o),u.clearRect(0,0,p,h),u.beginPath(),u.lineWidth=a,u.arc(g,f,n,0,2*Math.PI),u.strokeStyle=s,u.stroke(),(e=>{u.beginPath(),u.lineWidth=a,u.strokeStyle=i,u.arc(g,f,n,0,2*Math.PI*e/100),u.stroke()})(b)})({element:e.querySelector("canvas"),size:100,percentage:100,onScroll:!0,speed:50,backgroundClr:o,color:r,strokeWidth:10})};var l=o(790);const d=({attributes:e,options:t,clientId:o})=>{const{btnAppearance:r,btnIcon:n,btnText:s}=e,{GkitIcon:i}=window.gutenkit.components,c={className:a()({"icon-wrapper":"text-only"!==r},{"text-wrapper":"text-only"===r})};return(0,l.jsx)("div",{className:"gkit-back-to-top","data-settings":JSON.stringify(t),children:(0,l.jsxs)("span",{...c,children:["icon-only"===r&&(0,l.jsx)(i,{icon:n}),s&&"text-only"===r&&s,s&&"progress-indicator"===r&&(0,l.jsxs)("div",{className:"progress-indicator",children:[(0,l.jsx)("canvas",{id:`canvas-${o}`,className:"canvas","data-canvas":o}),(0,l.jsx)(i,{icon:n})]})]})})},u=(0,s.lazy)((()=>o.e(8024).then(o.bind(o,8024)))),p=JSON.parse('{"UU":"gutenkit/back-to-top"}'),{backToTop:h}=window.gutenkit.editorIcon;(0,r.registerBlockType)(p.UU,{edit:function({attributes:e,setAttributes:t,clientId:o,advancedControl:r,isSelected:i}){const{GkitStyle:p,GkitIcon:h,GkitSuspense:g}=window.gutenkit.components,{useDeviceType:f,useBlockStyles:b,useDeviceList:w}=window.gutenkit.helpers,v=w(),{btnAppearance:k,btnIcon:m,btnText:y,offsetTop:S,showBtnOnScroll:x,scrolledValue:j,lineFgColor:C,lineBgColor:T}=e,$={style:k,offset_top:S,show_scroll:x,show_after:j,foreground:C,background:T},_=(0,s.useRef)(null),O=(0,n.useBlockProps)({className:a()(k,{"show-on-scroll":x}),ref:_}),I=f();return(0,s.useEffect)((()=>{const{ownerDocument:e}=_.current,t=_.current.querySelector("span");t.addEventListener("click",(e=>{var t;t=$,(window.frames["editor-canvas"]||window).scrollTo({left:0,top:t?.offset_top,behavior:"smooth"})})),e.addEventListener("scroll",(e=>{$?.show_scroll&&((e,t)=>{let o=window.frames["editor-canvas"]?.document.querySelector("html")||document.querySelector(".interface-interface-skeleton__content");const{offset_top:r,show_after:n}=t,s=wp?.editor?o.scrollTop:window.scrollY,i=Math.ceil(s)>parseInt(n,10)+parseInt(r,10);let a=e.classList.contains("gkit-tt-show");i&&!a&&e.classList.add("gkit-tt-show"),!i&&a&&e.classList.remove("gkit-tt-show")})(t,$),"progress-indicator"===$?.style&&c(t,$)}),!0),"progress-indicator"===$?.style&&c(t,$)}),[k,S,x,j,C,T]),b(e,t,"blocksCSS",((e,t)=>{const{parseCSS:o,backgroundGenerator:r,getBoxShadowValue:n,getBoxValue:s,getBorderValue:i,getTypographyValue:a,getSliderValue:c,getColor:l}=window.gutenkit.helpers,d=e.blockClass;return o([[{selector:`.${d} span`,color:l(e.textColor),background:r(e?.bgColor).background,"box-shadow":n(e.boxShadow)},{selector:`.${d} span:hover`,color:l(e.hoverColor),background:r(e?.bgHoverColor).background,"box-shadow":n(e.hoverBoxShadow)}],t=>[{selector:`.${d}`,"text-align":e[`align${t}`]},{selector:`.${d} span`,width:e[`width${t}`]?c(e[`width${t}`]):void 0,height:e[`height${t}`]?c(e[`height${t}`]):void 0,...i(e[`border${t}`]),...s(e[`borderRadius${t}`],"border-radius")},{selector:`.${d} span:hover`,...i(e[`hoverBorder${t}`]),...s(e[`hoverBorderRadius${t}`],"border-radius")},{selector:`.${d} .icon-wrapper`,"font-size":e[`iconSize${t}`]?c(e[`iconSize${t}`]):void 0},{selector:`.${d}.text-only span`,...a(e.typography,t)}]],t)})(e,v)),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(p,{blocksCSS:e?.blocksCSS}),i&&(0,l.jsx)(g,{children:(0,l.jsx)(u,{attributes:e,setAttributes:t,device:I,advancedControl:r})}),(0,l.jsx)("div",{...O,children:(0,l.jsx)(d,{attributes:e,options:$,clientId:o})})]})},icon:{src:h},save:function({attributes:e,clientId:t}){const{GkitIcon:o}=window.gutenkit.components,{btnAppearance:r,btnIcon:s,btnText:i,offsetTop:c,showBtnOnScroll:u,scrolledValue:p,lineFgColor:h,lineBgColor:g,blockID:f}=e,b={style:r,offset_top:c,show_scroll:u,show_after:p,foreground:h,background:g},w=n.useBlockProps.save({className:a()(r,{"show-on-scroll":u})});return(0,l.jsx)("div",{...w,children:(0,l.jsx)(d,{attributes:e,options:b,clientId:t})})}})},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},6087:e=>{"use strict";e.exports=window.wp.element},7723:e=>{"use strict";e.exports=window.wp.i18n},5573:e=>{"use strict";e.exports=window.wp.primitives},6942:(e,t)=>{var o;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=i(e,s(o)))}return e}function s(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var o in e)r.call(e,o)&&e[o]&&(t=i(t,o));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):void 0===(o=function(){return n}.apply(t,[]))||(e.exports=o)}()}},n={};function s(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e](o,o.exports,s),o.exports}s.m=r,e=[],s.O=(t,o,r,n)=>{if(!o){var i=1/0;for(d=0;d<e.length;d++){o=e[d][0],r=e[d][1],n=e[d][2];for(var a=!0,c=0;c<o.length;c++)(!1&n||i>=n)&&Object.keys(s.O).every((e=>s.O[e](o[c])))?o.splice(c--,1):(a=!1,n<i&&(i=n));if(a){e.splice(d--,1);var l=r();void 0!==l&&(t=l)}}return t}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[o,r,n]},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,o)=>(s.f[o](e,t),t)),[])),s.u=e=>e+".js",s.miniCssF=e=>{},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},o="gutenkit-blocks-addon:",s.l=(e,r,n,i)=>{if(t[e])t[e].push(r);else{var a,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var u=l[d];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==o+n){a=u;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",o+n),a.src=e),t[e]=[r];var p=(o,r)=>{a.onerror=a.onload=null,clearTimeout(h);var n=t[e];if(delete t[e],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach((e=>e(r))),o)return o(r)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),c&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;s.g.importScripts&&(e=s.g.location+"");var t=s.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var r=o.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=o[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e+"../../"})(),(()=>{var e={1910:0,794:0};s.f.j=(t,o)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else if(794!=t){var n=new Promise(((o,n)=>r=e[t]=[o,n]));o.push(r[2]=n);var i=s.p+s.u(t),a=new Error;s.l(i,(o=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var n=o&&("load"===o.type?"missing":o.type),i=o&&o.target&&o.target.src;a.message="Loading chunk "+t+" failed.\n("+n+": "+i+")",a.name="ChunkLoadError",a.type=n,a.request=i,r[1](a)}}),"chunk-"+t,t)}else e[t]=0},s.O.j=t=>0===e[t];var t=(t,o)=>{var r,n,i=o[0],a=o[1],c=o[2],l=0;if(i.some((t=>0!==e[t]))){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);if(c)var d=c(s)}for(t&&t(o);l<i.length;l++)n=i[l],s.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return s.O(d)},o=self.webpackChunkgutenkit_blocks_addon=self.webpackChunkgutenkit_blocks_addon||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var i=s.O(void 0,[794],(()=>s(4306)));i=s.O(i)})();

Youez - 2016 - github.com/yon3zu
LinuXploit