1import{CounterBlockModel as k}from"./CounterBlockModel-De5BNQHT.js";import{n as h,Y as p,Z as _,o as n,f as o,j as d,x as m,a0 as f,i as b,t as v,g as C,w as y,z as i,_ as $,r as x,F as B,p as w,q as g,k as N}from"./vendor-CKeVwYWs.js";import"./index-LzfnuSyf.js";import"./CounterModel-B5YJBUke.js";const V={key:0,class:"color-orange"},j={key:1,class:"color-orange"},E={class:"p1"},T={__name:"Counter",props:{Counter:{type:Object,required:!0}},setup(e){const a=i(null),r=i(null),s=i(null),l=i(null);let t=null;return h(async()=>{await p(),t=new IntersectionObserver(u=>{u[0].isIntersecting&&(r.value&&r.value.start(),s.value&&l.value&&(s.value.start(),l.value.start()),t.disconnect())},{threshold:.3}),a.value&&t.observe(a.value)}),_(()=>{t&&t.disconnect()}),(u,c)=>e.Counter?(n(),o("div",{key:0,ref_key:"counterEl",ref:a,class:"item-counter col-sm-6 col-xl-3"},[e.Counter.has_two_numbers?(n(),o("h2",j,[d(m(f),{ref_key:"counter1",ref:s,"start-val":0,"end-val":e.Counter.number1,duration:1500,decimals:e.Counter.decimals,autoplay:!1},null,8,["end-val","decimals"]),b(" "+v(e.Counter.separator)+" ",1),d(m(f),{ref_key:"counter2",ref:l,"start-val":0,"end-val":e.Counter.number2,duration:1500,decimals:e.Counter.decimals,autoplay:!1},null,8,["end-val","decimals"])])):(n(),o("h2",V,[d(m(f),{ref_key:"counter",ref:r,"start-val":0,"end-val":e.Counter.number,duration:1500,decimals:e.Counter.decimals,separator:e.Counter.separator,suffix:` ${e.Counter.number_suffix}`,autoplay:!1},null,8,["end-val","decimals","separator","suffix"])])),C("p",E,v(e.Counter.sub_title),1)],512)):y("",!0)}},q=N({name:"CounterBlock",props:["id","type","data"],components:{Counter:T},data(){return{model:null}},async created(){this.data!==void 0&&(this.model=new k(this.data))}}),F={key:0,class:"section-counter"},I={class:"container"},M={class:"row js-counters-wrapper"};function O(e,a,r,s,l,t){const u=x("Counter");return e.model!==null&&e.model.enabled?(n(),o("section",F,[C("div",I,[C("div",M,[(n(!0),o(B,null,w(e.model.counters,c=>(n(),g(u,{key:c.id,Counter:c},null,8,["Counter"]))),128))])])])):y("",!0)}const U=$(q,[["render",O]]);export{U as default}; 2//# sourceMappingURL=CounterBlock-DE4vvWiU.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.