import{c as U,_ as S,I as A}from"./icon-code.6d7a3662.js";import{d as L,e as C,C as $,B,D as R,c as g,O as T,a as s,o as _,_ as E,u as q,f as u,j as p,g as w,W as D,w as M,l as N}from"./index.c685e846.js";import{I as H}from"./icon-bell.2e21c889.js";var G=Object.defineProperty,Y=Object.defineProperties,K=Object.getOwnPropertyDescriptors,O=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,P=(a,e,r)=>e in a?G(a,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[e]=r,I=(a,e)=>{for(var r in e||(e={}))W.call(e,r)&&P(a,r,e[r]);if(O)for(var r of O(e))Z.call(e,r)&&P(a,r,e[r]);return a},z=(a,e)=>Y(a,K(e)),k=globalThis&&globalThis.__assign||function(){return(k=Object.assign||function(a){for(var e,r=1,o=arguments.length;rt.endVal?t.endVal:t.frameVal,t.frameVal=Number(t.frameVal.toFixed(t.options.decimalPlaces)),t.printValue(t.frameVal),l1?t.options.decimal+m[1]:"",t.options.useGrouping){h="";for(var f=0,y=c.length;fwindow.scrollY&&e.paused?(e.paused=!1,setTimeout(function(){return e.start()},e.options.scrollSpyDelay)):window.scrollY>o&&!e.paused&&e.reset()}},a.prototype.determineDirectionAndSmartEasing=function(){var e=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>e;var r=e-this.startVal;if(Math.abs(r)>this.options.smartEasingThreshold){this.finalEndVal=e;var o=this.countDown?1:-1;this.endVal=e+o*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=e,this.finalEndVal=null;this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},a.prototype.start=function(e){this.error||(this.callback=e,this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},a.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},a.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},a.prototype.update=function(e){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(e),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal||this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},a.prototype.printValue=function(e){var r=this.formattingFn(e);this.el.tagName==="INPUT"?this.el.value=r:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=r:this.el.innerHTML=r},a.prototype.ensureNumber=function(e){return typeof e=="number"&&!isNaN(e)},a.prototype.validateValue=function(e){var r=Number(e);return this.ensureNumber(r)?r:(this.error="[CountUp] invalid start or end value: "+e,null)},a.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},a}();const Q={class:"countup-wrap"},X={name:"CountUp"},v=L(z(I({},X),{props:{endVal:null,startVal:{default:0},duration:{default:2.5},autoplay:{type:Boolean,default:!0},loop:{type:[Boolean,Number,String],default:!1},delay:{default:0},options:{default:void 0}},emits:["init","finished"],setup(a,{expose:e,emit:r}){const o=a;let t=C(),n=C();const l=()=>{if(!t.value)return;const i=Number(o.startVal),d=Number(o.endVal),b=Number(o.duration);if(n.value=new J(t.value,d,I({startVal:i,duration:b},o.options)),n.value.error){console.error(n.value.error);return}r("init",n.value)},c=i=>{var d;(d=n.value)==null||d.start(i)};$(()=>o.endVal,i=>{var d;o.autoplay&&((d=n.value)==null||d.update(i))});const x=C(!1);let h=0;const V=()=>{h++,c(()=>{typeof o.loop=="boolean"&&o.loop||o.loop>h?f(()=>{var d;(d=n.value)==null||d.reset(),V()},o.delay):x.value=!0})};$(x,i=>{i&&r("finished")}),B(()=>{l(),o.autoplay&&V()}),R(()=>{var i;cancelAnimationFrame(m),(i=n.value)==null||i.reset()});let m;const f=(i,d=1)=>{let b;function F(j){b||(b=j),j-b{l(),c()}}),(i,d)=>(_(),g("div",Q,[T(i.$slots,"prefix"),s("span",{ref_key:"elRef",ref:t},null,512),T(i.$slots,"suffix")]))}})),tt={},et={width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},st=s("circle",{cx:"9",cy:"6",r:"4",stroke:"currentColor","stroke-width":"1.5"},null,-1),rt=s("path",{opacity:"0.5",d:"M12.5 4.3411C13.0375 3.53275 13.9565 3 15 3C16.6569 3 18 4.34315 18 6C18 7.65685 16.6569 9 15 9C13.9565 9 13.0375 8.46725 12.5 7.6589",stroke:"currentColor","stroke-width":"1.5"},null,-1),at=s("ellipse",{cx:"9",cy:"17",rx:"7",ry:"4",stroke:"currentColor","stroke-width":"1.5"},null,-1),ot=s("path",{opacity:"0.5",d:"M18 14C19.7542 14.3847 21 15.3589 21 16.5C21 17.5293 19.9863 18.4229 18.5 18.8704",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),nt=[st,rt,at,ot];function it(a,e){return _(),g("svg",et,nt)}const lt=E(tt,[["render",it]]),dt={},ct={width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ut=s("path",{opacity:"0.5",d:"M6.28571 19C3.91878 19 2 17.1038 2 14.7647C2 12.4256 3.91878 10.5294 6.28571 10.5294C6.56983 10.5294 6.8475 10.5567 7.11616 10.6089M14.381 8.02721C14.9767 7.81911 15.6178 7.70588 16.2857 7.70588C16.9404 7.70588 17.5693 7.81468 18.1551 8.01498M7.11616 10.6089C6.88706 9.9978 6.7619 9.33687 6.7619 8.64706C6.7619 5.52827 9.32028 3 12.4762 3C15.4159 3 17.8371 5.19371 18.1551 8.01498M7.11616 10.6089C7.68059 10.7184 8.20528 10.9374 8.66667 11.2426M18.1551 8.01498C20.393 8.78024 22 10.8811 22 13.3529C22 16.0599 20.0726 18.3221 17.5 18.8722",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),pt=s("path",{d:"M12 22V16M12 22L14 20M12 22L10 20",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),xt=[ut,pt];function ht(a,e){return _(),g("svg",ct,xt)}const mt=E(dt,[["render",ht]]),ft={},_t={width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},vt=s("path",{opacity:"0.5",d:"M11.1459 7.02251C11.5259 6.34084 11.7159 6 12 6C12.2841 6 12.4741 6.34084 12.8541 7.02251L12.9524 7.19887C13.0603 7.39258 13.1143 7.48944 13.1985 7.55334C13.2827 7.61725 13.3875 7.64097 13.5972 7.68841L13.7881 7.73161C14.526 7.89857 14.895 7.98205 14.9828 8.26432C15.0706 8.54659 14.819 8.84072 14.316 9.42898L14.1858 9.58117C14.0429 9.74833 13.9714 9.83191 13.9392 9.93531C13.9071 10.0387 13.9179 10.1502 13.9395 10.3733L13.9592 10.5763C14.0352 11.3612 14.0733 11.7536 13.8435 11.9281C13.6136 12.1025 13.2682 11.9435 12.5773 11.6254L12.3986 11.5431C12.2022 11.4527 12.1041 11.4075 12 11.4075C11.8959 11.4075 11.7978 11.4527 11.6014 11.5431L11.4227 11.6254C10.7318 11.9435 10.3864 12.1025 10.1565 11.9281C9.92674 11.7536 9.96476 11.3612 10.0408 10.5763L10.0605 10.3733C10.0821 10.1502 10.0929 10.0387 10.0608 9.93531C10.0286 9.83191 9.95713 9.74833 9.81418 9.58117L9.68403 9.42898C9.18097 8.84072 8.92945 8.54659 9.01723 8.26432C9.10501 7.98205 9.47396 7.89857 10.2119 7.73161L10.4028 7.68841C10.6125 7.64097 10.7173 7.61725 10.8015 7.55334C10.8857 7.48944 10.9397 7.39258 11.0476 7.19887L11.1459 7.02251Z",stroke:"currentColor","stroke-width":"1.5"},null,-1),bt=s("path",{d:"M19 9C19 12.866 15.866 16 12 16C8.13401 16 5 12.866 5 9C5 5.13401 8.13401 2 12 2C15.866 2 19 5.13401 19 9Z",stroke:"currentColor","stroke-width":"1.5"},null,-1),wt=s("path",{opacity:"0.5",d:"M7.35111 15L6.71424 17.323C6.0859 19.6148 5.77173 20.7607 6.19097 21.3881C6.3379 21.6079 6.535 21.7844 6.76372 21.9008C7.41635 22.2331 8.42401 21.7081 10.4393 20.658C11.1099 20.3086 11.4452 20.1339 11.8014 20.0959C11.9335 20.0818 12.0665 20.0818 12.1986 20.0959C12.5548 20.1339 12.8901 20.3086 13.5607 20.658C15.576 21.7081 16.5837 22.2331 17.2363 21.9008C17.465 21.7844 17.6621 21.6079 17.809 21.3881C18.2283 20.7607 17.9141 19.6148 17.2858 17.323L16.6489 15",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),gt=[vt,bt,wt];function Vt(a,e){return _(),g("svg",_t,gt)}const yt=E(ft,[["render",Vt]]),Ct=s("ul",{class:"flex space-x-2 rtl:space-x-reverse"},[s("li",null,[s("a",{href:"javascript:;",class:"text-primary hover:underline"},"Components")]),s("li",{class:"before:content-['/'] ltr:before:mr-2 rtl:before:ml-2"},[s("span",null,"Counter")])],-1),kt={class:"pt-5 space-y-8"},Et={class:"panel p-3 flex items-center text-primary overflow-x-auto whitespace-nowrap"},Ft={class:"ring-2 ring-primary/30 rounded-full bg-primary text-white p-1.5 ltr:mr-3 rtl:ml-3"},jt=s("span",{class:"ltr:mr-3 rtl:ml-3"},"Documentation: ",-1),St=s("a",{href:"https://www.npmjs.com/package/vue-countup-v3",target:"_blank",class:"block hover:underline"},"https://www.npmjs.com/package/vue-countup-v3",-1),At={class:"grid grid-cols-1 xl:grid-cols-2 gap-6"},$t={class:"panel"},Tt={class:"flex items-center justify-between mb-5"},Dt=s("h5",{class:"font-semibold text-lg dark:text-white-light"},"Simple Counter",-1),Mt={class:"flex items-center"},Nt={class:"mb-5 grid grid-cols-3 justify-items-center gap-3 max-w-[900px] mx-auto"},Ot={class:"w-[70px] h-[70px] sm:w-[100px] sm:h-[100px] shadow-[1px_2px_12px_0_rgba(31,45,61,0.10)] rounded border border-[#e0e6ed] dark:border-[#1b2e4b] flex justify-center flex-col"},Pt=s("h4",{class:"text-[#3b3f5c] text-xs sm:text-[15px] mt-4 text-center dark:text-white-dark font-semibold"},"HOURS",-1),It={class:"w-[70px] h-[70px] sm:w-[100px] sm:h-[100px] shadow-[1px_2px_12px_0_rgba(31,45,61,0.10)] rounded border border-[#e0e6ed] dark:border-[#1b2e4b] flex justify-center flex-col"},Lt=s("h4",{class:"text-[#3b3f5c] text-xs sm:text-[15px] mt-4 text-center dark:text-white-dark font-semibold"},"TICKETS",-1),Ut={class:"w-[70px] h-[70px] sm:w-[100px] sm:h-[100px] shadow-[1px_2px_12px_0_rgba(31,45,61,0.10)] rounded border border-[#e0e6ed] dark:border-[#1b2e4b] flex justify-center flex-col"},Bt=s("h4",{class:"text-[#3b3f5c] text-xs sm:text-[15px] mt-4 text-center dark:text-white-dark font-semibold"},"CUSTOMERS",-1),Rt=s("pre",null,`

HOURS

TICKETS

CUSTOMERS