Server IP : 192.158.238.246 / Your IP : 18.222.135.39 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/progress-bar/ |
Upload File : |
(()=>{var e,r,t,o={4740:(e,r,t)=>{"use strict";const o=window.wp.blocks;t(7723);var s=t(6087);const a=window.wp.data,i=JSON.parse('[{"label":"Mobile","slug":"Mobile","value":"767","icon":"<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"24\\" height=\\"24\\" viewBox=\\"0 0 24 24\\" aria-hidden=\\"true\\" focusable=\\"false\\"><path fill=\\"#111722\\" d=\\"M15 4H9a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2Zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12Zm-4.5-.5h2V16h-2v1.5Z\\"/></svg>","isActive":true,"isRequired":true,"direction":"max"},{"label":"Mobile Landscape","slug":"MobileLandscape","value":"880","icon":"<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"24\\" height=\\"24\\" viewBox=\\"0 0 24 24\\" aria-hidden=\\"true\\" focusable=\\"false\\"><path fill=\\"#111722\\" d=\\"M4 9v6c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2Zm14-.5c.3 0 .5.2.5.5v6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V9c0-.3.2-.5.5-.5h12Zm-.5 4.5v-2H16v2h1.5Z\\"/></svg>","isActive":false,"direction":"max"},{"label":"Tablet","slug":"Tablet","value":"1024","icon":"<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"24\\" height=\\"24\\" viewBox=\\"0 0 24 24\\" aria-hidden=\\"true\\" focusable=\\"false\\"><path fill=\\"#111722\\" d=\\"M16.4 5H7.6C6.6 5 6 5.8 6 6.8v10.4c0 1 .8 1.8 1.7 1.8h8.8c1 0 1.7-.8 1.7-1.8V6.8c0-1-.8-1.8-1.7-1.8Zm.4 12.3c0 .2-.2.4-.4.4H7.6c-.2 0-.4-.2-.4-.4V6.7c0-.2.2-.4.4-.4h8.8c.2 0 .4.2.4.5v10.4Zm-6.6-.5h3.6v-1.3h-3.6v1.3Z\\"/></svg>","isActive":true,"isRequired":true,"direction":"max"},{"label":"Tablet Landscape","slug":"TabletLandscape","value":"1200","icon":"<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"24\\" height=\\"24\\" viewBox=\\"0 0 24 24\\" aria-hidden=\\"true\\" focusable=\\"false\\"><path fill=\\"#111722\\" d=\\"M5 7.6v8.8c0 1 .8 1.7 1.8 1.7h10.4c1 0 1.8-.8 1.8-1.7V7.6c0-1-.8-1.7-1.8-1.7H6.8c-1 0-1.8.8-1.8 1.7Zm12.3-.4c.2 0 .4.2.4.4v8.8c0 .2-.2.4-.4.4H6.7c-.2 0-.4-.2-.4-.4V7.6c0-.2.2-.4.5-.4h10.4Zm-.5 6.5v-3.4h-1.3v3.4h1.3Z\\"/></svg>","isActive":false,"direction":"max"},{"label":"Laptop","slug":"Laptop","value":"1366","icon":"<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"24\\" height=\\"24\\" viewBox=\\"0 0 24 24\\" aria-hidden=\\"true\\" focusable=\\"false\\"><path fill=\\"#111722\\" d=\\"m19.4 16.6-1-3.2V6.8a2 2 0 0 0-2-2H7.6a2 2 0 0 0-2 2v6.6l-1 3.2v1c0 .3.2.6.4.9.2.3.4.4.6.5l.9.2h11c.2 0 .5 0 .8-.2.3 0 .5-.3.7-.5l.3-.9c.2-.3.2-.7.1-1ZM7 6.8c0-.2 0-.3.2-.4l.4-.2h8.8l.4.2.2.4v6H7v-6Zm10.9 10.8-.2.2H6.3a.2.2 0 0 1-.2-.2V17l.7-2.9h10.4l.8 3v.2l-.1.3Zm-5.2-1.7h-1.4c-.4 0-.7.3-.7.7 0 .5.2.8.7.8h1.4c.4 0 .8-.3.8-.8 0-.4-.4-.7-.8-.7Z\\"/></svg>","isActive":false,"direction":"max"},{"label":"Wide Screen","slug":"WideScreen","value":"2400","icon":"<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"24\\" height=\\"24\\" viewBox=\\"0 0 24 24\\" aria-hidden=\\"true\\" focusable=\\"false\\"><path fill=\\"#111722\\" fillRule=\\"evenodd\\" d=\\"M8.3 19.4h7.6l.4-.2v-.6l-.1-.4a.7.7 0 0 0-.5-.2h-1v-1.3h3.6c.5 0 1-.2 1.2-.5.3-.2.5-.7.5-1.1V6.3c0-.5-.2-.9-.5-1.2-.3-.3-.8-.5-1.2-.5H5.7c-.5.1-1 .2-1.2.6-.3.3-.5.7-.5 1.2v8.8c0 .5.2.8.5 1.1.3.3.8.5 1.2.5h3.5v1.3H8c-.2 0-.3 0-.4.3v.4l.1.5h.5Zm5.8-4H5.7c-.2 0-.3 0-.3-.2v-9l.3-.1h12.6l.2.1.1.2v9H14Zm-.6 2.6h-3v-1.3h3V18Z\\" clipRule=\\"evenodd\\"/></svg>","isActive":false,"direction":"min"}]'),n={setDeviceType:e=>({type:"SET_DEVICE_TYPE",deviceType:e}),setBreakpoints:e=>async({dispatch:r,registry:t})=>{const{editEntityRecord:o}=t.dispatch("core");await o("root","site",void 0,{gutenkitBreakpoints:JSON.stringify(e)}),await r({type:"SET_BREAKPOINTS",breakpoints:e})}},c="gutenkit/global-store",l={deviceType:"Desktop",breakpoints:[]},g=((0,a.createReduxStore)(c,{reducer(e=l,r){switch(r.type){case"SET_DEVICE_TYPE":return{...e,deviceType:r.deviceType};case"SET_BREAKPOINTS":return{...e,breakpoints:r.breakpoints}}return e},actions:n,selectors:{getDeviceType:(0,a.createRegistrySelector)((e=>r=>{const{getActiveBreakpoints:t}=e(c),o=t();return o?.length>0&&o.find((e=>r.deviceType===e.slug))?r.deviceType:"Desktop"})),getBreakpoints:(0,a.createRegistrySelector)((e=>r=>{const{getEntityRecord:t}=e("core"),o=t("root","site");return o?JSON.parse(o.gutenkitBreakpoints):r.breakpoints})),getEditedBreakpoints:(0,a.createRegistrySelector)((e=>r=>{const{getEntityRecord:t,getEditedEntityRecord:o}=e("core"),s=t("root","site")?o("root","site"):t("root","site");return s?JSON.parse(s.gutenkitBreakpoints):r.breakpoints})),getActiveBreakpoints:(0,a.createRegistrySelector)((e=>r=>{const{getBreakpoints:t}=e(c),o=t();return o?o.filter((e=>e.isActive)):r.breakpoints})),getDefaultBreakpoints:e=>i}}),()=>{const e=wp?.editor?.store,{modules:r}=window?.gutenkit||{},t=r?.breakpoints,{deviceType:o}=(0,a.useSelect)((r=>{const o=r(c)?.getDeviceType,s=e?r(e)?.getDeviceType:void 0;return e?{deviceType:t?o?.():s?.()}:{deviceType:"Desktop"}}),[]);return o||"Desktop"});var p=t(6942),d=t.n(p);const u=e=>{let r=JSON.parse(e.target.getAttribute("data-progress-bar"));r&&function(t,o){const s=performance.now();requestAnimationFrame((function a(i){const n=i-s;let c;n>=o?(c=t,e.target.removeAttribute("data-progress-bar")):(c=function(e,r,t){return 0*(1-t)+t*r}(0,t,n/o),requestAnimationFrame(a)),function(t){e.target.querySelector(".gkit-progress-bar__progress").style.width=t+"%",r.percentageHide||(e.target.querySelector(".gkit-progress-bar__label").textContent=Math.round(t)+"%")}(c)}))}(r.progress,r.duration)},b=window.wp.blockEditor;var v=t(790);const k=({attributes:e,animationData:r})=>{const{GkitIcon:t}=window.gutenkit.components;return(0,v.jsxs)(v.Fragment,{children:[e.title&&(0,v.jsx)("div",{className:"gkit-progress-bar-content",children:e.title}),"switch"!==e.style?(0,v.jsx)("div",{id:`progress-bar-${e.blockID}`,className:"gkit-progress-bar","data-progress-bar":JSON.stringify(r),children:(0,v.jsx)("div",{className:"gkit-progress-bar__progress",children:!e.percentageHide&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"gkit-progress-bar__label"}),"inner-content"===e.style&&e.icon&&(0,v.jsx)(t,{icon:e.icon,className:"gkit-progress-bar__icon"})]})})}):(0,v.jsxs)("div",{id:`progress-bar-${e.blockID}`,className:"gkit-progress-bar","data-progress-bar":JSON.stringify(r),children:[(0,v.jsx)("div",{className:"gkit-progress-bar__progress"}),!e.percentageHide&&(0,v.jsx)("div",{className:"gkit-progress-bar__label"})]})]})},h=(0,s.lazy)((()=>t.e(9250).then(t.bind(t,9250)))),f=JSON.parse('{"UU":"gutenkit/progress-bar"}'),{progressBar:w}=window.gutenkit.editorIcon;(0,o.registerBlockType)(f.UU,{edit:function({attributes:e,setAttributes:r,advancedControl:t,isSelected:o}){const{GkitStyle:a,GkitSuspense:i}=window.gutenkit.components,{onScrollAnimateIframe:n,onScrollAnimate:c,useBlockStyles:l,useDeviceList:p}=window.gutenkit.helpers,f=p(),w=g(),[m,y]=(0,s.useState)({progress:e?.progress?.size,duration:e?.duration?.size,style:e?.style,percentageHide:e?.percentageHide}),S=(0,b.useBlockProps)({className:d()([`gkit-progress-bar-${e?.style}`])});return(0,s.useEffect)((()=>{let r;var t,o,s,a;return t=e?.progress?.size,o=e?.duration?.size,s=e?.style,a=e.percentageHide,clearTimeout(r),r=setTimeout((()=>{y({progress:t,duration:o,style:s,percentageHide:a}),document.getElementsByTagName("iframe").length>0?n(".gkit-progress-bar",u):c(".gkit-progress-bar",u)}),300),()=>{clearTimeout(r)}}),[e?.progress?.size,e?.duration?.size,e?.style,w,e.percentageHide]),l(e,r,"blocksCSS",((e,r)=>{const{parseCSS:t,backgroundGenerator:o,getBoxShadowValue:s,getBoxValue:a,getTypographyValue:i,getSliderValue:n,getColor:c}=window.gutenkit.helpers,l=e?.blockClass;return t([[{selector:`.${l} .gkit-progress-bar`,background:o(e?.barBackground).background,"box-shadow":s(e.barBoxShadow),...a(e.barborderRadius,"border-radius")},{selector:`.${l}.gkit-progress-bar-shadow .gkit-progress-bar`,...a(e.barPadding,"padding")},{selector:`.${l}:not(.gkit-progress-bar-stripe) .gkit-progress-bar`,background:o(e?.barBackground).background},{selector:`.${l}.gkit-progress-bar-stripe .gkit-progress-bar`,background:e?.barStripeBackground},{selector:`.${l} .gkit-progress-bar__progress`,background:o(e?.trackBackground).background,...a(e.trackBorderRadius,"border-radius"),"box-shadow":s(e.trackBoxShadow)},{selector:`.${l} .gkit-progress-bar-content`,color:c(e?.titleColor)},{selector:`.${l} .gkit-progress-bar__label`,color:c(e?.percentageColor)},{selector:`.${l}.gkit-progress-bar-tooltip .gkit-progress-bar__label`,"background-color":c(e?.percentageBackground)},{selector:`.${l}.gkit-progress-bar-stripe .gkit-progress-bar__progress`,color:c(e?.barStripeBackground)},{selector:`.${l}.gkit-progress-bar-stripe .gkit-progress-bar__progress`,background:`repeating-linear-gradient(to right, ${c(e?.trackStripeBackground)}, ${c(e?.trackStripeBackground)} 4px, currentColor 4px, currentColor 8px)`},{selector:`.${l}.gkit-progress-bar-tooltip .gkit-progress-bar__label::before`,"border-color":`transparent ${c(e?.percentageBackground)} transparent transparent`},{selector:`.${l}.gkit-progress-bar-tooltip--box .gkit-progress-bar__label::before`,"border-color":`${c(e?.percentageBackground)} transparent transparent transparent`},{selector:`.${l}.gkit-progress-bar-tooltip--circle .gkit-progress-bar__label::before`,background:e?.percentageBackground},{selector:`.${l}.gkit-progress-bar-tooltip--ribbon .gkit-progress-bar__label::before`,"border-color":`transparent transparent ${c(e?.percentageBackground)} transparent`},{selector:`.${l}.gkit-progress-bar-tooltip--rounded .gkit-progress-bar__label::before`,"border-color":`${c(e?.percentageBackground)} transparent transparent transparent`},{selector:`.${l} .gkit-progress-bar__icon`,fill:c(e?.iconColor)},{selector:`.${l}.gkit-progress-bar-switch .gkit-progress-bar__progress::before, .${l}.gkit-progress-bar-switch .gkit-progress-bar__progress::after`,color:c(e?.switchColor)}],r=>[{selector:`.${l}:not(.gkit-progress-bar-switch) .gkit-progress-bar`,height:n(e[`barHeight${r}`])},{selector:`.${l} .gkit-progress-bar-content`,...i(e.titleTypography,r),"margin-bottom":n(e[`titleMarginBottom${r}`])},{selector:`.${l} .gkit-progress-bar__label`,...i(e.percentageTypography,r)},{selector:`.${l} .gkit-progress-bar__icon`,"font-size":n(e[`iconSize${r}`])}]],r)})(e,f)),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(a,{blocksCSS:e?.blocksCSS}),o&&(0,v.jsx)(i,{children:(0,v.jsx)(h,{attributes:e,setAttributes:r,device:w,advancedControl:t})}),(0,v.jsx)("div",{...S,children:(0,v.jsx)(k,{attributes:e,animationData:m})})]})},icon:{src:w},save:function({attributes:e}){const r=b.useBlockProps.save({className:d()([`gkit-progress-bar-${e?.style}`])}),t={progress:e?.progress?.size,duration:e?.duration?.size,style:e?.style,percentageHide:e?.percentageHide};return(0,v.jsx)("div",{...r,children:(0,v.jsx)(k,{attributes:e,animationData: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},6942:(e,r)=>{var t;!function(){"use strict";var o={}.hasOwnProperty;function s(){for(var e="",r=0;r<arguments.length;r++){var t=arguments[r];t&&(e=i(e,a(t)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return s.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var t in e)o.call(e,t)&&e[t]&&(r=i(r,t));return r}function i(e,r){return r?e?e+" "+r:e+r:e}e.exports?(s.default=s,e.exports=s):void 0===(t=function(){return s}.apply(r,[]))||(e.exports=t)}()}},s={};function a(e){var r=s[e];if(void 0!==r)return r.exports;var t=s[e]={exports:{}};return o[e](t,t.exports,a),t.exports}a.m=o,e=[],a.O=(r,t,o,s)=>{if(!t){var i=1/0;for(g=0;g<e.length;g++){t=e[g][0],o=e[g][1],s=e[g][2];for(var n=!0,c=0;c<t.length;c++)(!1&s||i>=s)&&Object.keys(a.O).every((e=>a.O[e](t[c])))?t.splice(c--,1):(n=!1,s<i&&(i=s));if(n){e.splice(g--,1);var l=o();void 0!==l&&(r=l)}}return r}s=s||0;for(var g=e.length;g>0&&e[g-1][2]>s;g--)e[g]=e[g-1];e[g]=[t,o,s]},a.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return a.d(r,{a:r}),r},a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((r,t)=>(a.f[t](e,r),r)),[])),a.u=e=>e+".js",a.miniCssF=e=>{},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r={},t="gutenkit-blocks-addon:",a.l=(e,o,s,i)=>{if(r[e])r[e].push(o);else{var n,c;if(void 0!==s)for(var l=document.getElementsByTagName("script"),g=0;g<l.length;g++){var p=l[g];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==t+s){n=p;break}}n||(c=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,a.nc&&n.setAttribute("nonce",a.nc),n.setAttribute("data-webpack",t+s),n.src=e),r[e]=[o];var d=(t,o)=>{n.onerror=n.onload=null,clearTimeout(u);var s=r[e];if(delete r[e],n.parentNode&&n.parentNode.removeChild(n),s&&s.forEach((e=>e(o))),t)return t(o)},u=setTimeout(d.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=d.bind(null,n.onerror),n.onload=d.bind(null,n.onload),c&&document.head.appendChild(n)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var r=a.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var o=t.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=t[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e+"../../"})(),(()=>{var e={8548:0,5788:0};a.f.j=(r,t)=>{var o=a.o(e,r)?e[r]:void 0;if(0!==o)if(o)t.push(o[2]);else if(5788!=r){var s=new Promise(((t,s)=>o=e[r]=[t,s]));t.push(o[2]=s);var i=a.p+a.u(r),n=new Error;a.l(i,(t=>{if(a.o(e,r)&&(0!==(o=e[r])&&(e[r]=void 0),o)){var s=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;n.message="Loading chunk "+r+" failed.\n("+s+": "+i+")",n.name="ChunkLoadError",n.type=s,n.request=i,o[1](n)}}),"chunk-"+r,r)}else e[r]=0},a.O.j=r=>0===e[r];var r=(r,t)=>{var o,s,i=t[0],n=t[1],c=t[2],l=0;if(i.some((r=>0!==e[r]))){for(o in n)a.o(n,o)&&(a.m[o]=n[o]);if(c)var g=c(a)}for(r&&r(t);l<i.length;l++)s=i[l],a.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return a.O(g)},t=self.webpackChunkgutenkit_blocks_addon=self.webpackChunkgutenkit_blocks_addon||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})();var i=a.O(void 0,[5788],(()=>a(4740)));i=a.O(i)})();