HEX
Server: Apache
System: Linux ecngx285.inmotionhosting.com 4.18.0-553.79.1.lve.el8.x86_64 #1 SMP Wed Oct 15 17:59:35 UTC 2025 x86_64
User: zeusxp5 (3862)
PHP: 8.3.28
Disabled: NONE
Upload Files
File: /home/zeusxp5/chuair.org/wp-content/plugins/wd-framework/build/count-up.js
!function(){var e,a={525:function(e,a,t){"use strict";var l=window.wp.element,r=window.wp.blocks,n=(t(4184),window.wp.i18n);const{useBlockProps:o,InspectorControls:i,MediaUpload:c,MediaUploadCheck:u,PlainText:d}=wp.blockEditor,{}=wp.element,{PanelBody:s,RangeControl:p,SelectControl:w,Button:m}=wp.components,{useBlockProps:_,PlainText:v,RichText:b}=wp.blockEditor;var f=JSON.parse('{"apiVersion":2,"name":"webdevia/count-up","version":"0.1.0","title":"Count up","category":"webdevia","description":"The count up Gutenberg block displays a dynamic numeric counter with an optional icon and label, animating from 0 to a customizable value. It\'s an engaging way to showcase numerical data and add interactivity to your website.","attributes":{"mediaId":{"type":"number","default":0},"mediaUrl":{"type":"string","default":"https://placehold.co/400x400"},"counter":{"type":"string"},"tag":{"default":"h3","type":"string"},"iconSize":{"type":"integer","default":80},"label":{"type":"string"},"labelTag":{"default":"p","type":"string"},"style":{"type":"string","default":""}},"supports":{"html":false},"keywords":["wd","webdevia","count","up"],"example":{"attributes":{"preview":true,"blockOnly":true,"mediaUrl":"https://placehold.co/400x400","label":"Projects","labelTag":"h2","counter":"789"}},"textdomain":"webdevia-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","viewScript":"file:./view.js","style":"file:./style-index.css"}');const{name:h,...g}=f,{withSelect:k}=wp.data;(0,r.registerBlockType)(h,{...g,icon:()=>(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",class:"wd-blocks-icon",viewBox:"0 0 16 16"},(0,l.createElement)("path",{"fill-rule":"evenodd",d:"M11.36 7.098c-1.137 0-1.708-.657-1.762-1.278h1.004c.058.223.343.45.773.45.824 0 1.164-.829 1.133-1.856h-.059c-.148.39-.57.742-1.261.742-.91 0-1.72-.613-1.72-1.758 0-1.148.848-1.836 1.973-1.836 1.09 0 2.063.637 2.063 2.688 0 1.867-.723 2.848-2.145 2.848zm.062-2.735c.504 0 .933-.336.933-.972 0-.633-.398-1.008-.94-1.008-.52 0-.927.375-.927 1 0 .64.418.98.934.98z"}),(0,l.createElement)("path",{d:"M12.438 8.668V14H11.39V9.684h-.051l-1.211.859v-.969l1.262-.906h1.046zM4.5 13.5a.5.5 0 0 1-1 0V3.707L2.354 4.854a.5.5 0 1 1-.708-.708l2-1.999.007-.007a.498.498 0 0 1 .7.006l2 2a.5.5 0 1 1-.707.708L4.5 3.707V13.5z"})),edit:k(((e,a)=>({media:a.attributes.mediaId?e("core").getMedia(a.attributes.mediaId):void 0})))((function(e){let{media:a,attributes:t,setAttributes:r}=e;const{rel:_,counter:v,iconSize:b,label:f,mediaId:h,mediaUrl:g}=t,k=o(),y=e=>{r({mediaId:e.id,mediaUrl:e.url})};return[(0,l.createElement)(i,null,(0,l.createElement)(s,{title:(0,n.__)("Select count up icon","wd-framework"),initialOpen:!0},(0,l.createElement)("div",{className:"wp-block-webdevia-count-up__inspector-controls__icon"},(0,l.createElement)(u,null,(0,l.createElement)(c,{onSelect:y,value:h,allowedTypes:["image"],render:e=>{let{open:a}=e;return(0,l.createElement)(m,{className:0==h?"wp-block-webdevia-count-up__inspector-controls__icon__toggle":"wp-block-webdevia-count-up__inspector-controls__icon__preview",onClick:a},0==h&&(0,n.__)("Choose an icon","wd-framework"))}})),0!=h&&(0,l.createElement)(u,null,(0,l.createElement)(c,{title:(0,n.__)("Replace icon","wd-framework"),value:h,onSelect:y,allowedTypes:["image"],render:e=>{let{open:a}=e;return(0,l.createElement)(m,{onClick:a,variant:"secondary",isLarge:!0},(0,n.__)("Replace icon","wd-framework"))}})),0!=h&&(0,l.createElement)(u,null,(0,l.createElement)(m,{onClick:()=>{r({mediaId:0,mediaUrl:"../wp-content/uploads/woocommerce-placeholder.png"})},isLink:!0,isDestructive:!0},(0,n.__)("Remove image","wd-framework")))),(0,l.createElement)(p,{label:(0,n.__)("Icon size","wd-framework"),value:b,onChange:e=>r({iconSize:e}),min:10,max:500}),(0,l.createElement)(w,{label:(0,n.__)("Counter HTML Tag","wd-framework"),value:t.tag,onChange:e=>r({tag:e}),options:[{label:(0,n.__)("H1","wd-framework"),value:"h1"},{label:(0,n.__)("H2","wd-framework"),value:"h2"},{label:(0,n.__)("H3","wd-framework"),value:"h3"},{label:(0,n.__)("H4","wd-framework"),value:"h4"},{label:(0,n.__)("H5","wd-framework"),value:"h5"},{label:(0,n.__)("H6","wd-framework"),value:"h6"},{label:(0,n.__)("div","wd-framework"),value:"div"},{label:(0,n.__)("span","wd-framework"),value:"span"},{label:(0,n.__)("p","wd-framework"),value:"p"}]}),(0,l.createElement)(w,{label:(0,n.__)("Label HTML Tag","wd-framework"),value:t.labelTag,onChange:e=>r({labelTag:e}),options:[{label:(0,n.__)("H1","wd-framework"),value:"h1"},{label:(0,n.__)("H2","wd-framework"),value:"h2"},{label:(0,n.__)("H3","wd-framework"),value:"h3"},{label:(0,n.__)("H4","wd-framework"),value:"h4"},{label:(0,n.__)("H5","wd-framework"),value:"h5"},{label:(0,n.__)("H6","wd-framework"),value:"h6"},{label:(0,n.__)("div","wd-framework"),value:"div"},{label:(0,n.__)("span","wd-framework"),value:"span"},{label:(0,n.__)("p","wd-framework"),value:"p"}]}))),(0,l.createElement)("div",k,0!=h&&(0,l.createElement)("div",{className:"wp-block-webdevia-count-up__picture",style:{width:b}},(0,l.createElement)("img",{src:g,lat:f})),(0,l.createElement)("div",{className:"wp-block-webdevia-count-up__info"},(0,l.createElement)(d,{className:"wp-block-webdevia-count-up__info__counter",tagName:t.tag,rel:_,placeholder:(0,n.__)("999","wd-framework"),value:v,onChange:e=>{r({counter:e})},__experimentalVersion:2}),(0,l.createElement)(d,{className:"wp-block-webdevia-count-up__info__label",tagName:t.labelTag,rel:_,placeholder:(0,n.__)("Label","wd-framework"),value:f,onChange:e=>{r({label:e})},__experimentalVersion:2})))]})),save:function(e){let{attributes:a}=e;const{mediaUrl:t,mediaId:r,counter:n,tag:o,iconSize:i,label:c,labelTag:u}=a;return(0,l.createElement)("div",_.save(),0!=r&&(0,l.createElement)("div",{className:"wp-block-webdevia-count-up__picture",style:{width:i}},(0,l.createElement)("img",{src:t,alt:c,width:i,height:i})),(0,l.createElement)("div",{className:"wp-block-webdevia-count-up__info"},(0,l.createElement)(b.Content,{className:"wp-block-webdevia-count-up__info__counter",tagName:o,value:0,"data-counter":n}),(0,l.createElement)(b.Content,{className:"wp-block-webdevia-count-up__info__label",tagName:u,value:c})))}})},4184:function(e,a){var t;!function(){"use strict";var l={}.hasOwnProperty;function r(){for(var e=[],a=0;a<arguments.length;a++){var t=arguments[a];if(t){var n=typeof t;if("string"===n||"number"===n)e.push(t);else if(Array.isArray(t)){if(t.length){var o=r.apply(null,t);o&&e.push(o)}}else if("object"===n){if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]")){e.push(t.toString());continue}for(var i in t)l.call(t,i)&&t[i]&&e.push(i)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(t=function(){return r}.apply(a,[]))||(e.exports=t)}()}},t={};function l(e){var r=t[e];if(void 0!==r)return r.exports;var n=t[e]={exports:{}};return a[e](n,n.exports,l),n.exports}l.m=a,e=[],l.O=function(a,t,r,n){if(!t){var o=1/0;for(d=0;d<e.length;d++){t=e[d][0],r=e[d][1],n=e[d][2];for(var i=!0,c=0;c<t.length;c++)(!1&n||o>=n)&&Object.keys(l.O).every((function(e){return l.O[e](t[c])}))?t.splice(c--,1):(i=!1,n<o&&(o=n));if(i){e.splice(d--,1);var u=r();void 0!==u&&(a=u)}}return a}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[t,r,n]},l.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},function(){var e={3911:0,3646:0,4075:0};l.O.j=function(a){return 0===e[a]};var a=function(a,t){var r,n,o=t[0],i=t[1],c=t[2],u=0;if(o.some((function(a){return 0!==e[a]}))){for(r in i)l.o(i,r)&&(l.m[r]=i[r]);if(c)var d=c(l)}for(a&&a(t);u<o.length;u++)n=o[u],l.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return l.O(d)},t=self.webpackChunkwebdevia_blocks=self.webpackChunkwebdevia_blocks||[];t.forEach(a.bind(null,0)),t.push=a.bind(null,t.push.bind(t))}();var r=l.O(void 0,[4075],(function(){return l(525)}));r=l.O(r)}();