"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[38],{219:(t,e,n)=>{n.r(e),n.d(e,{default:()=>r});const r={container:"pgWdmTUL",title:"dwxplt0d",count:"slzTEg3A",counterNumbers:"wjSYh3EI",numberTicker:"pUujoc3S",digit:"HPCn9jIa",colNum:"pthq8Fwc",numbers:"ot7n0HaH",customers:"kb_JaEtv"}},218:(t,e,n)=>{const r=n(102);(0,n(2).createEntrypoint)("comfy_customers",r.ComfyCustomers)},102:function(t,e,n){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ComfyCustomers=function({narrow_design:t,title:e,currentVisitorCount:n}){return t?(0,s.jsx)(i,{title:e,currentVisitorCount:n}):(0,s.jsxs)("div",{class:u.default.container,children:[(0,s.jsx)("h1",{class:u.default.title,children:e}),(0,s.jsx)("h2",{class:u.default.count,children:n})]})};const s=n(0),u=(n(1),r(n(219))),c=n(3),o=3e3;function i({title:t,currentVisitorCount:e}){const n=(0,c.useRef)(null);return(0,c.useEffect)((()=>{const t=parseInt(e.replace(/,/g,""),10);let r=null;const s=requestAnimationFrame((function e(s){r||(r=s);const u=s-r,c=Math.min(u/o,1),i=(a=c,1-Math.pow(1-a,4));var a;const l=Math.floor(i*t);n.current&&(n.current.textContent=l.toLocaleString()),c<1&&requestAnimationFrame(e)}));return()=>cancelAnimationFrame(s)}),[e]),(0,s.jsxs)("div",{className:u.default.customers,children:[(0,s.jsx)("span",{ref:n,children:"0"})," ",t]})}}},t=>{t.O(0,[1,2],(()=>t(t.s=218))),t.O()}]);