| 1 |
(()=>{"use strict";const e={n:n=>{const t=n&&n.__esModule?()=>n.default:()=>n;return e.d(t,{a:t}),t},d:(n,t)=>{if(Array.isArray(t))for(var r=0;r<t.length;){var a=t[r++],o=t[r++];e.o(n,a)?0===o&&r++:0===o?Object.defineProperty(n,a,{enumerable:!0,value:t[r++]}):Object.defineProperty(n,a,{enumerable:!0,get:o})}else for(var a in t)e.o(t,a)&&!e.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:t[a]})},o:(e,n)=>Object.hasOwn(e,n)},n=window.jQuery;var t=e.n(n);function r(e){return"true"===e}function a(e){const n=e??"",t=window.wp?.htmlEntities?.decodeEntities,r=window.wp?.dom?.safeHTML,a=t?t(n):n;return r?r(a):a}function o(e){return r(e.useEasing)?"outQuintic"===e.easing?(e,n,t,r)=>t*((e=e/r-1)*e*e*e*e+1)+n:"outCubic"===e.easing?(e,n,t,r)=>t*((e=e/r-1)*e*e+1)+n:(e,n,t,r)=>t*(1-Math.pow(2,-10*e/r))*1024/1023+n:null}const i=".wp-block-getwid-counter";function u(e,n,t=""){const r=e.data(n);return void 0===r?t:String(r)}function s(){const e=t()(".wp-block-getwid-counter:not(.getwid-init)"),n=window.CountUp,s=window.Waypoint;"function"==typeof n&&"function"==typeof s&&e.each((e,d)=>{const c=t()(d),l=c.find(`${i}__wrapper`),p=c.find(`${i}__number`).get(0),f=l.get(0);if(!p||!f)return;c.addClass("getwid-init");const g=new s({element:p,handler:()=>{new n(p,Number.parseFloat(u(l,"end","100")),function(e){return n=function(e){return{start:u(e,"start","0"),end:u(e,"end","100"),decimalPlaces:u(e,"decimal-places","0"),duration:u(e,"duration","3"),useEasing:u(e,"use-easing","true"),useGrouping:u(e,"use-grouping","true"),separator:u(e,"separator",","),decimal:u(e,"decimal","."),easing:u(e,"easing-fn","outExpo"),numerals:u(e,"numerals","default")}}(e),{startVal:Number.parseFloat(n.start),decimalPlaces:Number.parseInt(n.decimalPlaces,10),duration:Number.parseInt(n.duration,10),useEasing:r(n.useEasing),useGrouping:r(n.useGrouping),separator:a(n.separator),decimal:a(n.decimal),easingFn:o(n),numerals:(t=n.numerals,"eastern_arabic"===t?["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"]:"farsi"===t?["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"]:null)};var n,t}(l)).start(),g.destroy()},offset:"100%"})})}t()(document).ready(()=>{t()(document.body).on("post-load",()=>{s()}),s()})})(); |