1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[29],{1833:(e,t,l)=>{l.d(t,{U:()=>O,z:()=>V});var r=l(37876),a=l(14232),i=l(48230),s=l.n(i),n=l(54587),o=l.n(n),d=l(97209),c=l(89099),u=l(15266),m=l(19982),x=l(5164),h=l(5002),f=l(80901),p=l(77753),g=l(64397),b=l(50117),v=l(51290),j=l(60265),w=l(1773);let y=v.bL;v.YJ;let N=v.WT,k=a.forwardRef((e,t)=>{let{className:l,children:a,...i}=e;return(0,r.jsxs)(v.l9,{ref:t,className:(0,w.cn)("flex h-10 w-full items-center justify-between rounded-lg border border-input bg-white px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring/50 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",l),...i,children:[a,(0,r.jsx)(v.In,{asChild:!0,children:(0,r.jsx)(x.A,{className:"w-4 h-4 opacity-50"})})]})});k.displayName=v.l9.displayName;let M=a.forwardRef((e,t)=>{let{className:l,children:a,position:i="popper",...s}=e;return(0,r.jsx)(v.ZL,{children:(0,r.jsxs)(v.UC,{ref:t,className:(0,w.cn)("relative z-50 min-w-[8rem] overflow-hidden rounded-lg border bg-popover text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95","popper"===i&&"origin-[var(--radix-select-content-transform-origin)] translate-y-1",l),position:i,...s,children:[(0,r.jsx)(v.PP,{className:"flex cursor-default items-center justify-center py-1",children:(0,r.jsx)(j.A,{className:"h-4 w-4"})}),(0,r.jsx)(v.LM,{className:(0,w.cn)("p-1","popper"===i&&"w-[var(--radix-select-trigger-width)] min-w-[var(--radix-select-trigger-width)]"),children:a}),(0,r.jsx)(v.wn,{className:"flex cursor-default items-center justify-center py-1",children:(0,r.jsx)(x.A,{className:"h-4 w-4"})})]})})});M.displayName=v.UC.displayName,a.forwardRef((e,t)=>{let{className:l,...a}=e;return(0,r.jsx)(v.JU,{ref:t,className:(0,w.cn)("px-2 py-1.5 text-sm font-semibold text-muted-foreground",l),...a})}).displayName=v.JU.displayName;let C=a.forwardRef((e,t)=>{let{className:l,children:a,...i}=e;return(0,r.jsxs)(v.q7,{ref:t,className:(0,w.cn)("relative flex w-full cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",l),...i,children:[(0,r.jsx)("span",{className:"inline-flex items-center justify-center w-4 mr-2",children:(0,r.jsx)(v.VF,{children:(0,r.jsx)(u.A,{className:"h-4 w-4"})})}),(0,r.jsx)(v.p4,{children:a})]})});C.displayName=v.q7.displayName,a.forwardRef((e,t)=>{let{className:l,...a}=e;return(0,r.jsx)(v.wv,{ref:t,className:(0,w.cn)("-mx-1 my-1 h-px bg-muted",l),...a})}).displayName=v.wv.displayName;var S=l(73374),A=l(72953),L=l(49131),R=l(83529),E=l(18739),P=l(57126);let _="#100c07",F=`linear-gradient(to right, transparent 0%, rgba(16,12,7,0.06) 14%, rgba(16,12,7,0.42) calc(var(--copy-x) - 128px), rgba(16,12,7,0.90) calc(var(--copy-x) - 64px), ${_} calc(var(--copy-x) - 16px))`,z=`linear-gradient(to top, ${_} 22%, rgba(16,12,7,0.88) 56%, rgba(16,12,7,0.34) 78%, rgba(16,12,7,0.10) 100%)`;function T(e){let{banner:t,copy:l,batchIndex:i,activeTopic:n}=e,d=(0,c.useRouter)().locale??"en",u=(0,a.useRef)(null),m=(0,a.useRef)(!1),[x,h]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=u.current;if(!e||"u"<typeof IntersectionObserver)return;let l={id:t.id,batch:i,locale:d,topic:n},r=new IntersectionObserver(e=>{var t,a;!e.some(e=>e.isIntersecting)||m.current||(m.current=!0,null==(t=(a=window).plausible)||t.call(a,"Blog banner view",{props:l}),r.disconnect())},{threshold:.5});return r.observe(e),()=>r.disconnect()},[t.id,i,d,n]),(0,r.jsx)(s(),{ref:u,href:t.href,"aria-label":(0,P.TA)(l.title),onClick:()=>{var e,l;return null==(e=(l=window).plausible)?void 0:e.call(l,"Blog banner click",{props:{id:t.id,batch:i,locale:d,topic:n}})},className:"group block rounded-3xl border border-transparent focus-visible:outline-none focus-visible:border-[#5c6b3f]",children:(0,r.jsxs)("div",{className:(0,w.cn)("relative isolate flex min-h-[380px] flex-col justify-end overflow-hidden rounded-3xl border bg-[#100c07] text-[#efe5d1]","border-[#100c07] md:min-
1h-[240px] md:flex-row md:justify-start","[--copy-x:288px] lg:[--copy-x:320px]","after:pointer-events-none after:absolute after:inset-0 after:z-[1] after:bg-[#efe5d1]/[0.04] after:opacity-0 after:transition-opacity after:duration-200 group-hover:after:opacity-100"),children:[(0,r.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 md:right-auto md:w-[58%] lg:w-[62%]",children:(0,r.jsx)(o(),{src:t.image,alt:"",fill:!0,sizes:"(min-width: 1024px) 480px, (min-width: 768px) 58vw, 100vw",onLoad:()=>h(!0),className:(0,w.cn)("object-cover object-top transition-opacity duration-300 ease-out md:object-center motion-reduce:transition-none",x?"opacity-100":"opacity-0"),style:t.focus?{objectPosition:t.focus}:void 0})}),(0,r.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 md:hidden",style:{background:z}}),(0,r.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 hidden md:block",style:{background:F}}),(0,r.jsxs)("div",{className:"relative z-[2] flex flex-col p-6 md:flex-1 md:justify-center md:p-8 md:pl-[288px] lg:pl-[320px]",children:[(0,r.jsxs)("p",{className:"mb-4 flex max-w-[42ch] items-center gap-2.5 text-[11px] font-medium uppercase tracking-[0.14em] text-[#a4b07e]",children:[(0,r.jsx)("span",{className:"shrink-0",children:l.eyebrow}),(0,r.jsx)("span",{"aria-hidden":"true",className:"h-px flex-1 bg-current"})]}),(0,r.jsx)("h3",{className:"card-title line-clamp-2 max-w-[30ch] text-[#efe5d1] [&>span]:text-[#9fb27a]",children:(0,P.JD)(l.title)}),(0,r.jsx)("p",{className:"mt-2 line-clamp-2 max-w-[42ch] text-[15px] font-light leading-relaxed text-[#b6a488]",children:l.description}),(0,r.jsxs)("span",{className:"mt-3 inline-flex items-center gap-2 text-sm font-medium text-[#efe5d1]",children:[l.cta,(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14","aria-hidden":"true",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"motion-safe:transition-transform motion-safe:duration-200 motion-safe:group-hover:translate-x-0.5",children:(0,r.jsx)("path",{d:"M2 7h10M8 3l4 4-4 4"})})]})]})]})})}let $={slotIndex:2,batchSize:10,minArticlesInBatch:3,cooldownBatches:3,maxBannersPerSession:4,pinnedBatch0:{}},I=[{id:"payments",href:"/payments",image:"/images/banners/payments.webp",weight:3,enabled:!0,boosts:[{when:{topic:["contracts","freelancers"]},factor:1.5},{when:{locale:["de","fr"]},factor:1.5}]},{id:"signing",href:"/signing",image:"/images/banners/signing.webp",weight:3,enabled:!0,boosts:[{when:{topic:["e-signatures"]},factor:2},{when:{topic:["blockchain"]},factor:1.5}]},{id:"kyc-verification",href:"/kyc-verification",image:"/images/banners/kyc-verification.webp",focus:"center 30%",weight:2,enabled:!0,boosts:[{when:{topic:["compliance"]},factor:2},{when:{topic:["hr-onboarding"]},factor:1.5}]},{id:"team-management",href:"/team-management",image:"/images/banners/team-management.webp",weight:2,enabled:!0,boosts:[{when:{topic:["document-workflows","product","hr-onboarding"]},factor:1.5}]},{id:"signature-validation",href:"/signature-verification",image:"/images/banners/signature-validation.webp",weight:2,enabled:!0,boosts:[{when:{topic:["e-signatures"]},factor:2},{when:{topic:["blockchain"]},factor:1.5}]},{id:"contract-management",href:"/contract-management",image:"/images/banners/contract-management.webp",weight:2,enabled:!0,boosts:[{when:{topic:["contracts","document-workflows"]},factor:2}]},{id:"contract-templates",href:"/contract-templates",image:"/images/banners/contract-templates.webp",weight:2,enabled:!0,boosts:[{when:{topic:["contracts"]},factor:2}]},{id:"api-integration",href:"/api-integration",image:"/images/banners/api-integration.webp",weight:2,enabled:!0,boosts:[{when:{topic:["ai-integrations"]},factor:3},{when:{topic:["document-workflows"]},factor:1.5}]},{id:"mobile",href:"/mobile",image:"/images/banners/mobile.webp",weight:2,enabled:!0,boosts:[{when:{topic:["product"]},factor:2}]},{id:"signature-generator",href:"/signature-generator",image:"/images/banners/signature-generator.webp",weight:2,enabled:!0,boosts:[{when:{topic:["e-signatures"]},factor:2}]},{id:"real-estate",href:"/real-estate",image:"/images/banners/real-estate.webp",weight:1,enabled:!0,boosts:[{when:{topic:["industries"]},factor:2}]},{id:"healthcare",href:"/healthcare",image:"/images/banners/healthcare.
1webp",weight:1,enabled:!0,boosts:[{when:{topic:["industries"]},factor:2},{when:{topic:["compliance"]},factor:1.5}]},{id:"insurance",href:"/insurance",image:"/images/banners/insurance.webp",weight:1,enabled:!0,boosts:[{when:{topic:["industries"]},factor:2},{when:{topic:["compliance"]},factor:1.5}]},{id:"it-companies",href:"/it-companies",image:"/images/banners/it-companies.webp",weight:1,enabled:!0,boosts:[{when:{topic:["industries"]},factor:2}]},{id:"freelancers",href:"/freelancers",image:"/images/banners/freelancers.webp",weight:1,enabled:!0,boosts:[{when:{topic:["freelancers"]},factor:3}]}];function q(e){let t=0x811c9dc5;for(let l=0;l<e.length;l+=1)t^=e.charCodeAt(l),t=Math.imul(t,0x1000193);return t>>>0}let O=a.createContext({posts:[],categories:[]}),D=a.useLayoutEffect,H=$.batchSize-1;function V(e){var t;let l,{posts:i,categories:n,subCategories:v,translations:j}=e,{t:P}=(0,d.Bd)("pages/blog"),{t:_}=(0,d.Bd)("common"),F=(0,c.useRouter)(),z=(0,a.useContext)(O),V=F.locale??z.locale??"en",W=(0,a.useMemo)(()=>i??z.posts??[],[i,z.posts]),[B,K]=(0,a.useState)(null),U=(0,a.useRef)(!1),J=(0,a.useRef)(V);(0,a.useEffect)(()=>{J.current!==V&&(J.current=V,K(null),U.current=!1)},[V]),(0,a.useEffect)(()=>{z.hasMore&&!U.current&&(U.current=!0,fetch(`/locales/${V}/blog/articles-listing.json`).then(e=>e.ok?e.json():null).then(e=>{if(Array.isArray(e)&&e.length>0){let t=new Set(W.map(e=>e.slug));K([...W,...e.filter(e=>!t.has(e.slug))])}}).catch(()=>{}))},[z.hasMore,V,W]);let X=B??W,G=n??z.categories??[],Y=v??z.subCategories??[],[Z,Q]=(0,a.useState)(""),[ee,et]=(0,a.useState)("all"),[el,er]=(0,a.useState)([]),[ea,ei]=(0,a.useState)("newest"),es=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:150,[t,l]=(0,a.useState)(!1),[r,i]=(0,a.useState)("press"),s=(0,a.useRef)(0),n=(0,a.useRef)(!1),o=(0,a.useRef)(!1);(0,a.useEffect)(()=>()=>window.clearTimeout(s.current),[]);let d=(0,a.useCallback)(()=>window.clearTimeout(s.current),[]),c=(0,a.useCallback)(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>{o.current=!0,n.current=!1,l(!1)},e)},[e]);return{open:t,openedBy:r,onOpenChange:(0,a.useCallback)(e=>{d(),n.current=!1,e&&i("press"),l(e)},[d]),triggerProps:{onPointerEnter:e=>{"mouse"===e.pointerType&&(d(),t||(n.current=!0,i("hover"),l(!0)))},onPointerLeave:e=>{"mouse"===e.pointerType&&c()},onClick:e=>{n.current&&(e.preventDefault(),n.current=!1)}},contentProps:{onPointerEnter:e=>{"mouse"===e.pointerType&&d()},onPointerLeave:e=>{"mouse"===e.pointerType&&c()},onCloseAutoFocus:e=>{o.current&&(e.preventDefault(),o.current=!1)}}}}(),en=a.useId(),[eo,ed]=(0,a.useState)("all"),[ec,eu]=(0,a.useState)(H),em=(0,a.useRef)(null),ex=(0,a.useCallback)(()=>{let e=em.current;if(!e)return;let t=e.getBoundingClientRect().top+window.scrollY-80;window.scrollTo({top:Math.max(t,0),behavior:"smooth"})},[]);(0,a.useEffect)(()=>{try{let e=localStorage.getItem("blog_category");e&&et(e);let t=localStorage.getItem("blog_subcategories");if(t){let e=JSON.parse(t);Array.isArray(e)&&er(e.filter(e=>"string"==typeof e))}let l=localStorage.getItem("blog_sort");l&&ei(l)}catch{}},[]),(0,a.useEffect)(()=>{ee&&"all"!==ee?localStorage.setItem("blog_category",ee):localStorage.removeItem("blog_category")},[ee]),(0,a.useEffect)(()=>{el.length>0?localStorage.setItem("blog_subcategories",JSON.stringify(el)):localStorage.removeItem("blog_subcategories")},[el]),(0,a.useEffect)(()=>{localStorage.setItem("blog_sort",ea)},[ea]);let eh=(0,a.useMemo)(()=>(0,A.zq)(X,G),[X,G]),ef=(0,a.useMemo)(()=>(0,A.L8)(X,Y),[X,Y]),ep=(0,a.useMemo)(()=>{let e=X;if("all"!==ee&&(e=(0,A.sZ)(e,{category:ee,subCategory:"all",search:""})),el.length>0&&(e=e.filter(e=>{let t=e.subCategory??e.category;return Array.isArray(t)?t.some(e=>el.includes(e)):"string"==typeof t&&el.includes(t)})),Z.trim()){let t=Z.trim().toLowerCase();e=e.filter(e=>[e.title,e.description,...e.tags||[]].filter(Boolean).join(" ").toLowerCase().includes(t))}return e="scheduled"===eo?e.filter(e=>e.scheduled):e.filter(e=>!e.scheduled),(0,A.Gj)([...e],ea)},[X,ee,el,Z,ea,eo]),eg=(0,a.useMemo)(()=>X.reduce((e,t)=>
1t.scheduled?e+1:e,0),[X]),eb=eg>0;(0,a.useEffect)(()=>{eu(H)},[ee,el,Z,ea,eo]);let ev=(0,a.useMemo)(()=>ep.slice(0,ec),[ep,ec]),ej=ev.length<ep.length,{t:ew,i18n:ey}=(0,d.Bd)("blog/banners"),eN=(0,a.useMemo)(()=>new Set(Object.keys(ey.getResourceBundle(V,"blog/banners")??{})),[ey,V]),[ek]=(0,a.useState)(()=>Math.random()),[eM,eC]=(0,a.useState)(!1);D(()=>eC(!0),[]);let eS=(0,a.useMemo)(()=>(function(e,t){let l=[];for(let r=0;r<e.length;r+=t)l.push(e.slice(r,r+t));return l})(ev,H),[ev]),eA=(0,a.useMemo)(()=>{let e={locale:V,seedDay:z.seedDay,sessionSeed:ek,randomizeFirstBatch:eM,activeTopics:el,copyIds:eN};return function(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[],a=[],i=0;for(let s of e){let e=function(e){let t,{batchIndex:l,articleCount:r,recentIds:a,assignedCount:i,ctx:s}=e,n=e.catalog??I,o=e.rotation??$,d=s.seedDay;if(void 0===d||r<o.minArticlesInBatch||i>=o.maxBannersPerSession)return null;let c=n.filter(e=>{var t,l;let r,a;return e.enabled&&s.copyIds.has(e.id)&&(r=null==(t=e.window)?void 0:t.from,a=null==(l=e.window)?void 0:l.until,(!r||!(d<r))&&(!a||!(d>a)))});if(0===c.length)return null;if(0===l){let e=o.pinnedBatch0[s.locale],t=e?c.find(t=>t.id===e):void 0;if(t)return t}let u=[];for(let e=o.cooldownBatches;e>=0;e-=1){let t=0===e?new Set:new Set(a.slice(-e));if((u=c.filter(e=>!t.has(e.id))).length>0)break}let m=u.map(e=>({banner:e,score:function(e,t){let l=e.weight;for(let i of e.boosts??[]){var r,a;let e=(null==(r=i.when.topic)?void 0:r.some(e=>t.activeTopics.includes(e)))??!1,s=(null==(a=i.when.locale)?void 0:a.includes(t.locale))??!1;(e||s)&&(l*=i.factor)}return l}(e,s)})).filter(e=>e.score>0),x=m.reduce((e,t)=>e+t.score,0);if(x<=0)return null;let h=(t=(0!==l||s.randomizeFirstBatch?q(`${s.sessionSeed}:${l}`):q(`${d}:${s.locale}`))>>>0,()=>{let e=Math.imul((t=t+0x6d2b79f5|0)^t>>>15,1|t);return(((e=e+Math.imul(e^e>>>7,61|e)^e)^e>>>14)>>>0)/0x100000000})()*x;for(let e of m)if((h-=e.score)<0)return e.banner;return m[m.length-1].banner}({batchIndex:s.index,articleCount:s.articleCount,recentIds:a,assignedCount:i,ctx:t,...l});r.push(e),e&&(a.push(e.id),i+=1)}return r}(eS.map((e,t)=>({index:t,articleCount:e.length})),e)},[eS,V,z.seedDay,ek,eM,el,eN]),eL=el[0]??"none",eR=(0,a.useCallback)(()=>{eu(e=>Math.min(e+H,ep.length))},[ep.length]),eE=(0,a.useCallback)((e,t)=>{if(j){let t=e.split("."),l=j;for(let e of t)if("object"==typeof l&&null!==l)l=l[e];else{l=void 0;break}if("string"==typeof l)return l}let l=P(e,{defaultValue:t??""});return"string"==typeof l?l:t??""},[P,j]),eP=(0,a.useMemo)(()=>{let e=P("contents.blogList.filters.sortOptions",{returnObjects:!0});return Array.isArray(e)?e:[{id:"newest",value:"Newest"},{id:"oldest",value:"Oldest"},{id:"popular",value:"Most Popular"}]},[P]),e_=(0,a.useMemo)(()=>{var e;let t=P("contents.blogList.categories",{returnObjects:!0});return[{id:"all",value:(Array.isArray(t)?null==(e=t.find(e=>"all"===e.id))?void 0:e.value:void 0)??eE("contents.blogList.categories.all","All")},...eh.map(e=>({id:e.key,value:e.name}))]},[eh,P,eE]),eF=(0,a.useCallback)(e=>{et(e),ex()},[ex]),ez=(0,a.useCallback)(e=>{er(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),ex()},[ex]),eT=(0,a.useCallback)(e=>{ed(e),ex()},[ex]),e$=(0,a.useCallback)(()=>{Q(""),et("all"),er([]),ei("newest"),ed("all"),ex()},[ex]),eI=ev.length>0,eq=eE("contents.blogList.filters.categoryLabel","Categories"),eO=eE("contents.blogList.filters.topicsLabel","Topics"),eD=()=>eb?(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)(b.W,{children:"Publication"}),(0,r.jsx)("div",{role:"radiogroup",className:"flex flex-col",children:[{id:"all",label:"All",count:X.length-eg},{id:"scheduled",label:"Scheduled",count:eg}].map(e=>{let t=e.id===eo;return(0,r.jsxs)("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>eT(e.id),className:"group w-full flex items-center gap-2.5 py-1.5 text-sm text-left transition-colors outline-none",children:[(0,r.jsx)("span",{"aria-hidden":"true",className:(0,w.cn)("relative h-4 w-4 flex-shrink-0 rounded-full border transition-colors",t?"border-[#5c6b3f]":"border-input group-hover:border-[#5c6b3f] group-focus-visible:border-[#5c6b3f]"),children:(0,r.jsx)("span",{className:(0,w.cn)("absolute inset-1 rounded-full bg-[#5c6b3f] transition-transform duration-150",t?"scale-100":"scale-0")})}),(0,r.jsx)("span",{className:(0,w.cn)("transition-colors flex-1",t?"text-foreground":"text-muted-foreground group-hover:text-foreground"),children:e.label}),(0,r.jsx)("span",{className:"text-xs text-muted-foreground tabular-nums",children:e.count})]},e.id)})})]}):null,eH=e=>(0,r.jsx)(s(),{href:`/blog/${e.slug}`,className:"block rounded-3xl border border-transparent focus-visible:outline-none focus-visible:border-[#5c6b3f]","aria-label":e.title,children:(0,r.jsx)(f.Zp,{className:"relative overflow-hidden rounded-3xl bg-card transition-colors duration-200 hover:bg-[#FBF6EA]",children:(0,r.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,r.jsx)("div",{className:"relative aspect-video w-full shrink-0 md:aspect-auto md:w-64 md:min-h-[220px] lg:w-72",children:(0,r.jsx)(o(),{src:e.featuredImage.src,alt:e.featuredImage.alt,fill:!0,sizes:"(min-width: 1024px) 288px, (min-width: 768px) 256px, 100vw",className:"object-cover"})}),(0,r.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col justify-center p-6 md:p-8",children:[(0,r.jsxs)("div",{className:"mb-3 flex items-center gap-3 text-sm text-muted-foreground",children:[(0,r.jsx)("time",{dateTime:(0,w.DU)(e),children:(0,w.Yq)((0,w.DU)(e),V)}),e.scheduled&&(0,r.jsx)(L.R,{})]}),(0,r.jsx)("h3",{className:"card-title line-clamp-2",children:e.title}),(0,r.jsx)("p",{className:"mt-2 font-light leading-relaxed text-[hsl(30,8%,40%)] line-clamp-2",children:e.description}),(0,r.jsx)("span",{className:"mt-3 text-sm text-muted-foreground",children:_("blog.readTimeLabel",{time:e.readTime})})]})]})})},e.slug);return(0,r.jsxs)(S.o,{padding:"lg",reveal:!1,headerSpacing:"none",children:[(0,r.jsx)("h2",{className:"sr-only",children:eE("contents.blogList.heading","Blog articles list")}),(0,r.jsxs)("div",{ref:em,className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,r.jsx)("div",{className:"w-full sm:max-w-sm",children:(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(m.A,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),(0,r.jsx)(R.p,{type:"search",value:Z,onChange:e=>Q(e.target.value),placeholder:eE("contents.blogList.filters.search","Search articles..."),className:(0,w.cn)("w-full pl-9 pr-3",E.N)})]})}
1),(0,r.jsx)("div",{className:"w-full sm:w-auto sm:min-w-[180px]",children:(l=(null==(t=eP.find(e=>e.id===ea))?void 0:t.value)??"",(0,r.jsxs)(p.AM,{open:es.open,onOpenChange:es.onOpenChange,children:[(0,r.jsx)(p.Wv,{asChild:!0,children:(0,r.jsxs)("button",{...es.triggerProps,type:"button",role:"combobox","aria-expanded":es.open,"aria-haspopup":"listbox","aria-controls":en,"aria-label":`${eE("contents.blogList.filters.sort","Sort by")}: ${l}`,className:(0,w.cn)("flex h-9 w-full items-center justify-between gap-2 rounded-lg border border-input px-3 py-2 text-sm transition-colors focus-visible:outline-none focus-visible:border-[#5c6b3f] data-[state=open]:border-[#5c6b3f]",E.N),children:[(0,r.jsx)("span",{className:"truncate",children:l}),(0,r.jsx)(x.A,{"aria-hidden":"true",className:(0,w.cn)("h-4 w-4 shrink-0 opacity-50 transition-transform duration-200",es.open&&"rotate-180")})]})}),(0,r.jsx)(p.hl,{...es.contentProps,className:(0,w.cn)("w-[var(--radix-popover-trigger-width)]",g.z),align:"end",sideOffset:8,hideArrow:!0,onOpenAutoFocus:e=>e.preventDefault(),children:(0,r.jsx)(g.m,{id:en,autoFocus:"press"===es.openedBy,value:ea,onSelect:e=>{ei(e),es.onOpenChange(!1)},options:eP.map(e=>({value:e.id,label:e.value}))})})]}))})]}),(0,r.jsxs)("div",{className:"lg:hidden flex flex-col gap-4 mt-4",children:[eD(),(0,r.jsxs)(y,{value:ee,onValueChange:eF,children:[(0,r.jsx)(k,{className:(0,w.cn)("h-9 focus:ring-0 focus:ring-offset-0 focus:border-[#5c6b3f] data-[state=open]:border-[#5c6b3f]",E.N),children:(0,r.jsx)(N,{placeholder:eq})}),(0,r.jsx)(M,{children:e_.map(e=>(0,r.jsx)(C,{value:e.id,children:e.value},e.id))})]}),ef.length>0&&(0,r.jsxs)(p.AM,{children:[(0,r.jsx)(p.Wv,{asChild:!0,children:(0,r.jsxs)("button",{type:"button",className:(0,w.cn)("flex h-9 w-full items-center justify-between gap-2 rounded-lg border border-input px-3 text-sm text-muted-foreground focus-visible:outline-none focus-visible:border-[#5c6b3f]",E.N),children:[(0,r.jsx)("span",{className:"scrollbar-hide flex min-w-0 flex-1 flex-nowrap gap-1 overflow-x-auto",children:0===el.length?eO:el.map(e=>{let t=ef.find(t=>t.key===e);return(0,r.jsxs)("span",{className:"inline-flex shrink-0 items-center gap-1 whitespace-nowrap text-foreground",children:[(null==t?void 0:t.name)??e,(0,r.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),ez(e)},className:"opacity-60 hover:opacity-100","aria-label":"Remove",children:(0,r.jsx)(h.A,{className:"h-3 w-3"})})]},e)})}),(0,r.jsx)(x.A,{className:"h-4 w-4 opacity-50 shrink-0"})]})}),(0,r.jsx)(p.hl,{hideArrow:!0,align:"start",sideOffset:8,className:"w-[var(--radix-popover-trigger-width)] p-2",children:(0,r.jsx)("div",{className:"grid grid-cols-1 gap-1",children:ef.map(e=>{let t=el.includes(e.key);return(0,r.jsxs)("button",{type:"button",onClick:()=>ez(e.key),className:(0,w.cn)("flex items-center gap-2.5 px-3 py-2 text-sm w-full transition-colors group rounded-md",t?"text-foreground":"text-muted-foreground hover:text-foreground hover:bg-muted/40"),children:[(0,r.jsx)("span",{className:(0,w.cn)("h-4 w-4 border rounded-sm flex items-center justify-center transition-colors",t?"bg-[#5c6b3f] border-[#5c6b3f]":"border-input group-hover:border-[#5c6b3f]"),children:t&&(0,r.jsx)(u.A,{className:"h-3 w-3 text-white",strokeWidth:3})}),(0,r.jsx)("span",{className:"text-left",children:e.name})]},e.key)})})})]})]}),(0,r.jsxs)("div",{className:"mt-6 grid grid-cols-1 lg:grid-cols-[1fr_2fr] gap-10 lg:gap-12 items-start",children:[(0,r.jsxs)("aside",{className:"hidden lg:flex flex-col gap-8 lg:sticky lg:top-24 lg:self-start",children:[eD(),(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)(b.W,{children:eq}),(0,r.jsx)("div",{role:"radiogroup",className:"flex flex-col",children:e_.map(e=>{let t=e.id===ee;return(0,r.jsxs)("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>eF(e.id),className:"group w-full flex items-center gap-2.5 py-1.5 text-sm text-left transition-colors outline-none",children:[(0,r.jsx)("span",{"aria-hidden":"true",className:(0,w.cn)("relative h-4 w-4 flex-shrink-0 rounded-full border transition-colors",t?"border-[#5c6b3f]":"border-input group-hover:border-[#5c6b3f] group-focus-visible:border-[#5c6b3f]"),children:(0,r.jsx)("span",{className:(0,w.cn)("absolute inset-1 rounded-full bg-[#5c6b3f] transition-transform duration-150",t?"scale-100":"scale-0")})}),(0,r.jsx)("span",{className:(0,w.cn)("transition-colors flex-1",t?"text-foreground":"text-muted-foreground group-hover:text-foreground"),children:e.value})]},e.id)})})]}),ef.length>0?(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)(b.W,{children:eO}),(0,r.jsx)("div",{className:"grid grid-cols-1",children:ef.map(e=>
1{let t=el.includes(e.key);return(0,r.jsxs)("button",{type:"button",onClick:()=>ez(e.key),className:(0,w.cn)("flex items-center gap-2.5 py-1.5 text-sm w-full transition-colors cursor-pointer group outline-none",t?"text-foreground":"text-muted-foreground hover:text-foreground"),children:[(0,r.jsx)("span",{className:(0,w.cn)("h-4 w-4 border rounded-sm flex items-center justify-center transition-colors",t?"bg-[#5c6b3f] border-[#5c6b3f]":"border-input group-hover:border-[#5c6b3f] group-focus-visible:border-[#5c6b3f]"),children:t&&(0,r.jsx)(u.A,{className:"h-3 w-3 text-white",strokeWidth:3})}),(0,r.jsx)("span",{className:"text-left",children:e.name})]},e.key)})})]}):null,("all"!==ee||el.length>0||Z||"all"!==eo)&&(0,r.jsx)("button",{type:"button",onClick:e$,className:"text-sm text-muted-foreground hover:text-[#5c6b3f] transition-colors self-start",children:eE("contents.blogList.empty.clearFilters","Clear Filters")})]}),(0,r.jsx)("div",{className:"flex flex-col gap-6",children:eI?eS.flatMap((e,t)=>{let l=e.map(eH),a=eA[t];if(a){let e=ew(a.id,{returnObjects:!0});l.splice($.slotIndex,0,(0,r.jsx)(T,{banner:a,copy:e,batchIndex:t,activeTopic:eL},`banner:${t}:${a.id}`))}return l}):(0,r.jsxs)("div",{className:"text-center py-24",children:[(0,r.jsx)("div",{className:"h-16 w-16 rounded-3xl bg-muted/20 flex items-center justify-center mx-auto mb-6 border border-muted/10",children:(0,r.jsx)(m.A,{className:"h-8 w-8 text-muted-foreground"})}),(0,r.jsx)("h3",{className:"text-xl font-semibold mb-2",children:eE("contents.blogList.empty.title","No articles found")}),(0,r.jsx)("p",{className:"text-muted-foreground mb-6",children:eE("contents.blogList.empty.description","Try adjusting your search or filter criteria.")}),(0,r.jsx)("button",{type:"button",onClick:e$,className:"inline-flex items-center justify-center rounded-md border border-input bg-background px-4 h-10 text-sm font-medium hover:bg-muted/40",children:eE("contents.blogList.empty.clearFilters","Clear Filters")})]})})]}),ej&&(0,r.jsx)("div",{className:"mt-8 flex justify-center",children:(0,r.jsx)("button",{type:"button",onClick:eR,className:"inline-flex items-center justify-center rounded-xl border border-input bg-transparent px-6 py-3 text-sm font-medium text-[#1b1918] transition-colors hover:border-[#1b1918] hover:bg-[#1b1918] hover:text-[#f7f1e3] focus-visible:outline-none focus-visible:border-[#1b1918]",children:eE("contents.blogList.posts.loadMore","Load more")})})]})}},3267:(e,t,l)=>{l.d(t,{F:()=>x});var r=l(37876),a=l(14232),i=l(89099),s=l(54587),n=l.n(s),o=l(15266),d=l(22780),c=l(1773),u=l(57126);function m(){return(0,r.jsxs)("svg",{viewBox:"0 0 560 244",preserveAspectRatio:"xMaxYMid meet","aria-hidden":"true",className:"h-full w-full",fill:"none",children:[(0,r.jsxs)("g",{transform:"rotate(-4 96 118)",children:[(0,r.jsx)("rect",{x:"18",y:"14",width:"156",height:"200",rx:"11",fill:"#efe5d1",fillOpacity:"0.06",stroke:"#efe5d1",strokeOpacity:"0.32"}),[56,74,92,110].map((e,t)=>(0,r.jsx)("rect",{x:"40",y:e,width:[112,92,104,62][t],height:"5",rx:"2.5",fill:"#efe5d1",fillOpacity:.24-.03*t},e)),(0,r.jsx)("path",{d:"M42 168c11-18 22 11 33-4s20 11 31-2 17 7 28-4",stroke:"#9fb27a",strokeWidth:"2.6",strokeLinecap:"round"}),(0,r.jsx)("rect",{x:"40",y:"184",width:"114",height:"1",fill:"#efe5d1",fillOpacity:"0.26"})]}),(0,r.jsx)("circle",{cx:"170",cy:"188",r:"20",fill:"#241b12"}),(0,r.jsx)("circle",{cx:"170",cy:"188",r:"20",fill:"#829262",fillOpacity:"0.22"}),(0,r.jsx)("circle",{cx:"170",cy:"188",r:"20",stroke:"#9fb27a",strokeOpacity:"0.85"}),(0,r.jsx)("path",{d:"M162 188.5l6 6 10-12",stroke:"#9fb27a",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M182 118h32",stroke:"#efe5d1",strokeOpacity:"0.3",strokeDasharray:"3 5"}),[0,1,2,3,4].map(e=>{let t=214+70*e;return(0,r.jsxs)("g",{opacity:.95-.18*e,children:[(0,r.jsx)("rect",{x:t,y:"88",width:"52",height:"52",rx:"13",fill:"#efe5d1",fillOpacity:"0.06",stroke:"#efe5d1",strokeOpacity:"0.34"}),(0,r.jsx)("circle",{cx:t+26,cy:"114",r:"4.5",fill:"#9fb27a"}),e<4?(0,r.jsx)("path",{d:`M${t+52} 114h18`,stroke:"#efe5d1",strokeOpacity:"0.34"}):null]},e)})]})}function x(e){var t,l,s;let{banner:x,ctaHref:h,action:f,layout:p="stacked",photoPosition:g="bleed",showArt:b=!0,className:v}=e,j=!!x.image,w="wide"===p,y=(0,i.useRouter)(),N=(0,a.useMemo)(()=>x.description?(0,d.$)(x.description,y.locale??"en"):"",[x.description,y.locale]),k=(0,r.jsxs)("div",{className:"relative z-10",children:[x.badge?(0,r.jsxs)("p",{className:"mb-4 flex max-w-[42ch] items-center gap-2.5 text-[11px] font-medium uppercase tracking-[0.14em] text-[#a4b07e]",children:[(0,r.jsx)("span",{className:"shrink-0",children:x.badge}),(0,r.jsx)("span",{"aria-hidden":"true",className:"h-px flex-1 bg-current"})]}
1):null,x.title?(0,r.jsx)("h3",{className:(0,c.cn)("font-serif text-3xl font-normal leading-[1.1] tracking-tight text-[#efe5d1] [&>span]:text-[#9fb27a]",w?"max-w-[30ch]":"max-w-[24ch]"),children:(0,u.JD)(x.title)}):null,x.description?(0,r.jsx)("p",{className:"mt-3 max-w-[42ch] text-[15px] font-light leading-relaxed text-[#b6a488] [&_a:hover]:text-[#efe5d1]",dangerouslySetInnerHTML:{__html:N}}):null,(null==(t=x.bullets)?void 0:t.length)?(0,r.jsx)("ul",{className:(0,c.cn)("max-w-[42ch] space-y-3",(x.badge||x.title||x.description)&&"mt-6"),children:x.bullets.map(e=>(0,r.jsxs)("li",{className:"flex items-start gap-2.5",children:[(0,r.jsx)(o.A,{className:"mt-1 size-4 shrink-0 text-[#b6a488]",strokeWidth:2.4,"aria-hidden":"true"}),(0,r.jsx)("span",{className:"text-[15px] font-light leading-relaxed text-[#b6a488]",children:e})]},e))}):null,f?(0,r.jsx)("div",{className:"mt-7",children:f}):h?(0,r.jsxs)("a",{href:h,className:"group/cta mt-7 inline-flex items-center gap-2 rounded-xl border border-transparent bg-[#f7f1e3] px-6 py-3 text-sm font-medium text-[#1b1918] no-underline transition-colors hover:bg-[#829262] hover:text-white focus-visible:border-[#f7f1e3] focus-visible:outline-none",...(0,c.OK)(h),children:[null==(l=x.ctaButton)?void 0:l.text,(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14","aria-hidden":"true",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"transition-transform duration-200 group-hover/cta:translate-x-0.5",children:(0,r.jsx)("path",{d:"M2 7h10M8 3l4 4-4 4"})})]}):null]}),M=(0,r.jsx)("div",{"aria-hidden":"true",className:"absolute inset-0",style:{background:"radial-gradient(620px 320px at 84% -12%, rgba(130,146,98,0.22), transparent 62%), radial-gradient(460px 300px at -10% 106%, rgba(92,107,63,0.20), transparent 66%)"}});if(w&&j&&"panel"===g)return(0,r.jsxs)("div",{className:(0,c.cn)("relative isolate overflow-hidden bg-[#100c07] lg:flex lg:min-h-[360px]",v),children:[(0,r.jsxs)("div",{"aria-hidden":"true",className:"relative min-h-[240px] lg:order-2 lg:min-h-0 lg:w-[44%] lg:shrink-0",children:[(0,r.jsx)(n(),{src:x.image,alt:x.imageAlt??"",fill:!0,sizes:"(min-width: 1024px) 44vw, 100vw",className:"object-cover object-top lg:object-center"}),(0,r.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-24 lg:hidden",style:{background:"linear-gradient(to bottom, rgba(16,12,7,0), #100c07)"}}),(0,r.jsx)("div",{className:"absolute inset-y-0 left-0 hidden w-20 lg:block",style:{background:"linear-gradient(to right, #100c07, rgba(16,12,7,0))"}})]}),(0,r.jsx)("div",{className:"relative z-10 -mt-10 flex flex-col justify-end p-8 sm:p-10 lg:order-1 lg:mt-0 lg:flex-1 lg:justify-center lg:p-12",children:k})]});if(w&&j)return(0,r.jsxs)("div",{className:(0,c.cn)("relative isolate flex min-h-[420px] flex-col justify-end overflow-hidden bg-[#100c07] p-8 sm:p-10 lg:min-h-[360px] lg:justify-center lg:p-12",v),children:[(0,r.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0",children:(0,r.jsx)(n(),{src:x.image,alt:x.imageAlt??"",fill:!0,sizes:"(min-width: 1280px) 1200px, 100vw",className:"object-cover object-top lg:object-center"})}),(0,r.jsx)("div",{"aria-hidden":"true",className:"absolute inset-0 lg:hidden",style:{background:"linear-gradient(to top, #100c07 20%, rgba(16,12,7,0.88) 46%, rgba(16,12,7,0.34) 74%, rgba(16,12,7,0.10) 100%)"}}),(0,r.jsx)("div",{"aria-hidden":"true",className:"absolute inset-0 hidden lg:block",style:{background:"linear-gradient(to right, #100c07 0%, #100c07 26%, rgba(16,12,7,0.90) 44%, rgba(16,12,7,0.42) 68%, rgba(16,12,7,0.06) 100%)"}}),k]});if(w)return(0,r.jsxs)("div",{className:(0,c.cn)("relative isolate overflow-hidden bg-[#241b12] p-8 sm:p-10 lg:p-12",v),children:[M,(0,r.jsxs)("div",{className:(0,c.cn)("relative grid items-center gap-10",b&&"lg:grid-cols-[minmax(0,1fr)_minmax(0,0.8fr)]"),children:[k,b?(0,r.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none hidden h-[176px] lg:block",children:(0,r.jsx)(m,{})}):null]})]});let C=j||b&&!(null==(s=x.bullets)?void 0:s.length);
1return(0,r.jsxs)("div",{className:(0,c.cn)("relative isolate flex min-h-[420px] flex-col overflow-hidden bg-[#100c07] p-8 sm:p-10 lg:min-h-[340px]",C?"justify-end":"justify-center",v),children:[C?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-x-0 top-0",children:[j?(0,r.jsx)(n(),{src:x.image,alt:x.imageAlt??"",width:1536,height:1024,sizes:"(min-width: 1024px) 640px, 100vw",className:"h-auto w-full"}):(0,r.jsx)("div",{className:"aspect-[560/244] w-full",children:(0,r.jsx)(m,{})}),(0,r.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-28",style:{background:"linear-gradient(to bottom, rgba(16,12,7,0), #100c07)"}})]}),(0,r.jsx)("div",{"aria-hidden":"true",className:"absolute inset-0",style:{background:"linear-gradient(to top, #100c07 18%, rgba(16,12,7,0.86) 40%, rgba(16,12,7,0.22) 66%, transparent 100%)"}})]}):(0,r.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0",style:{background:"radial-gradient(38% 33% at 100% 100%, rgba(164,176,126,0.4) 0%, rgba(164,176,126,0.12) 42%, transparent 74%)"}}),k]})}},17285:(e,t,l)=>{l.d(t,{I:()=>r});let r=(0,l(14232).createContext)(null)},18739:(e,t,l)=>{l.d(t,{M:()=>a,N:()=>r});let r="bg-[#FBF8F1]",a="focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:border-[#5c6b3f]"},26858:(e,t,l)=>{l.d(t,{F:()=>r});let r=(0,l(14232).createContext)({items:[],total:0,locale:"en"})},30029:(e,t,l)=>{l.d(t,{g:()=>iv});var r={};l.r(r),l.d(r,{About:()=>e3,AnySignatureVerifyForm:()=>r$,AsicVerifyForm:()=>rT,BlogListSection:()=>lk,CadesVerifyForm:()=>rz,CertificationBadges:()=>re,CoinsCta:()=>r6,CompaniesListSection:()=>aj,CompanyAboutSection:()=>aC,CompanyAttachmentsSection:()=>az,CompanyCertificationsSection:()=>aP,CompanyDetailsSection:()=>aR,CompanyHeroSection:()=>aM,CompanySocialSection:()=>aV,ComparisonTable:()=>rB,ComparisonTeasers:()=>rU,ContactForm:()=>ly,CubeCta:()=>r2,FaqMarkdownSection:()=>lT,FaqSection:()=>lz,FeatureAnimationCards:()=>eR,FeatureBlocks:()=>el,FeatureCards:()=>eL,FeatureCells:()=>ew,FeatureInteractiveList:()=>eJ,FeatureLedger:()=>ii,FeatureLists:()=>lV,FeatureNumericBlocks:()=>ek,FeaturePrices:()=>tx,FeatureProcess:()=>e5,FeatureRightAccordions:()=>l$,FeatureRightCards:()=>lP,FeatureRows:()=>ey,FeatureSelector:()=>ir,FeatureTable:()=>tp,FeaturedPostsSection:()=>lM,GalaxyCta:()=>al,GearsCta:()=>ac,HealthCta:()=>ao,HelmetCta:()=>am,Hero:()=>f,HighlightCards:()=>rs,HouseCta:()=>as,HowItWorks:()=>a7,LastArticles:()=>te,MarkdownAccordion:()=>lJ,MarkdownSection:()=>lW,MarkdownSectionGroup:()=>lB,MobileAppBanner:()=>tu,OneFlowSection:()=>a6,OrbitCta:()=>af,PageHero:()=>p.W,PartnerProgramDetails:()=>lY,PartnershipForm:()=>lh,PartnershipRelation:()=>l2,PdfVerifyForm:()=>rf,PhoneCta:()=>ae,PipedriveIntegration:()=>ri,PlatformSection:()=>tQ,RecentPostsSection:()=>lS,RelatedArticles:()=>ts,SignatureForm:()=>tU,SignatureGeneratorForm:()=>r_,SignatureVerifyForm:()=>rh,SimpleBanner:()=>td,SimpleSubscription:()=>tM,SquaresCta:()=>r9,StepperSection:()=>il,TeamCta:()=>aa,TreeCta:()=>r3,VerticalsBanner:()=>rX,WhatIsSection:()=>tG,WidgetShowcase:()=>ra,XadesVerifyForm:()=>rF});var a=l(37876),i=l(97209),s=l(15266),n=l(60067),o=l(14232),d=l(66691),c=l(14796);function u(){let e=(0,o.useRef)(null),t=(0,o.useRef)(0),l=(0,o.useRef)(null),[r,i]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=window.matchMedia("(min-width: 1024px)"),t=e=>i(e.matches);return(t(e),"function"==typeof e.addEventListener)?(e.addEventListener("change",t),()=>e.removeEventListener("change",t)):(e.addListener(t),()=>e.removeListener(t))},[]);let s=(0,o.useCallback)(()=>{let l=e.current;if(!l)return;let r=new d.Z58,a=new d.ubm(75,window.innerWidth/window.innerHeight,.1,1e3);a.position.z=5;let i=new c.JeP({antialias:!0,alpha:!0});i.setSize(window.innerWidth,window.innerHeight),i.setPixelRatio(Math.min(window.devicePixelRatio,2)),i.outputColorSpace=d.er$,l.appendChild(i.domElement);let s=new d.I9Y(0,0),n=new d.M4G,o=new Float32Array(6e4),u=new Float32Array(6e4),m=new Float32Array(2e4),x=new Float32Array(6e4),h=new d.UPV(1.5,.5,200,32),f=h.attributes.position.count;for(let e=0;e<2e4;e++){let t=e%f,l=h.attributes.position.getX(t),r=h.attributes.position.getY(t),a=h.attributes.position.getZ(t),i=3*e;o[i]=l,o[i+1]=r,o[i+2]=a,u[i]=l,u[i+1]=r,u[i+2]=a,m[e]=6*Math.pow(Math.random(),1.6)+1,x[i]=0,x[i+1]=0,x[i+2]=0}h.dispose();let p=new d.LoY;p.setAttribute("position",new d.THS(o,3)),p.setAttribute("size",new d.THS(m,1));let g=document.createElement("canvas");g.width=128,g.height=128;let b=g.getContext("2d"),v=b.createRadialGradient(64,64,0,64,64,60);v.addColorStop(0,"rgba(255,255,255,1)"),v.addColorStop(.85,"rgba(255,255,255,1)"),v.addColorStop(1,"rgba(255,255,255,0)"),b.fillStyle=v,b.fillRect(0,0,128,128);let j=new d.GOR(g);j.minFilter=d.k6q,j.magFilter=d.k6q,j.generateMipmaps=!1;
1let w=new d.BKk({uniforms:{uColor:{value:new d.Pq0(92/255,107/255,63/255)},uTexture:{value:j},uPixelRatio:{value:Math.min(window.devicePixelRatio||1,2)}},vertexShader:` 2 attribute float size; 3 uniform float uPixelRatio; 4 varying float vAlpha; 5 void main() { 6 // Map size 1..7 â alpha 0.15..1.0 so even small dots stay readable 7 // while the largest read as solid #5c6b3f. 8 vAlpha = mix(0.15, 1.0, clamp((size - 1.0) / 6.0, 0.0, 1.0)); 9 vec4 mv = modelViewMatrix * vec4(position, 1.0); 10 gl_PointSize = size * uPixelRatio * (1.0 / -mv.z) * 2.6; 11 gl_Position = projectionMatrix * mv; 12 } 13 `,fragmentShader:` 14 uniform vec3 uColor; 15 uniform sampler2D uTexture; 16 varying float vAlpha; 17 void main() { 18 vec4 tex = texture2D(uTexture, gl_PointCoord); 19 gl_FragColor = vec4(uColor, tex.a * vAlpha); 20 } 21 `,transparent:!0,depthWrite:!1}),y=new d.ONl(p,w);y.position.x=3,r.add(y);let N=e=>{s.x=e.clientX/window.innerWidth*2-1,s.y=-(2*(e.clientY/window.innerHeight))+1};window.addEventListener("mousemove",N);let k=()=>{t.current=requestAnimationFrame(k),n.update();let e=n.getElapsed(),l=new d.Pq0(3*s.x,3*s.y,0);for(let e=0;e<2e4;e++){let t=3*e,r=t+1,a=t+2,i=o[t],s=o[r],n=o[a],d=i-l.x,c=s-l.y,m=n-l.z,h=Math.sqrt(d*d+c*c+m*m);if(h<1.5&&h>0){let e=(1.5-h)*.01,l=1/h;x[t]+=d*l*e,x[r]+=c*l*e,x[a]+=m*l*e}x[t]+=(u[t]-i)*.001,x[r]+=(u[r]-s)*.001,x[a]+=(u[a]-n)*.001,x[t]*=.95,x[r]*=.95,x[a]*=.95,o[t]+=x[t],o[r]+=x[r],o[a]+=x[a]}p.attributes.position.needsUpdate=!0,y.rotation.y=.05*e,i.render(r,a)};k();let M=()=>{a.aspect=window.innerWidth/window.innerHeight,a.updateProjectionMatrix(),i.setSize(window.innerWidth,window.innerHeight)};return window.addEventListener("resize",M),()=>{cancelAnimationFrame(t.current),window.removeEventListener("resize",M),window.removeEventListener("mousemove",N),p.dispose(),w.dispose(),i.dispose(),l.removeChild(i.domElement)}},[]);return((0,o.useEffect)(()=>{if(!r)return;let e=()=>{l.current||document.body.classList.contains("drawing-mode")||(l.current=s()||null)},t=()=>{l.current&&(l.current(),l.current=null)};e();let a=new MutationObserver(()=>{document.body.classList.contains("drawing-mode")?t():e()});return a.observe(document.body,{attributes:!0,attributeFilter:["class"]}),()=>{a.disconnect(),t()}},[s,r]),r)?(0,a.jsx)("div",{ref:e,className:"absolute inset-0 z-0"}):null}var m=l(89099),x=l(22780),h=l(57126);function f(e){let{data:t}=e,l=(0,m.useRouter)(),r=(0,o.useMemo)(()=>(0,x.$)(t.description,l.locale??"en"),[t.description,l.locale]),i=t.stats?Object.entries(t.stats):[],d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e)return null;if("string"==typeof e)return(0,a.jsxs)(n.$,{size:"lg",className:"group h-auto rounded-lg px-6 py-3 text-base font-medium border border-transparent bg-[#5c6b3f] text-white transition-all hover:bg-[#4e5a34]",children:[e,(0,a.jsx)("span",{"aria-hidden":"true",className:"opacity-70 transition-transform duration-200 group-hover:translate-x-0.5 group-hover:opacity-100",children:"â"})]});let{label:l,href:r,title:i,ariaLabel:s,variant:o}=e;if(!l)return null;let d=o??(0===t?"default":"outline"),c="default"===d,u=c?(0,a.jsx)("span",{"aria-hidden":"true",className:"opacity-70 transition-transform duration-200 group-hover:translate-x-0.5 group-hover:opacity-100",children:"â"}):null,m={className:`group h-auto rounded-lg px-6 py-3 text-base font-medium transition-all border border-transparent focus-visible:ring-0 focus-visible:border-[#1b1918] ${c?"bg-[#5c6b3f] text-white hover:bg-[#4e5a34]":"border-input bg-transparent text-[#1b1918] hover:bg-[#1b1918] hover:text-[#f7f1e3] hover:border-[#1b1918]"}`,size:"lg",variant:d};if(r){let e=/^https?:\/\//.test(r);return(0,a.jsx)(n.$,{asChild:!0,...m,children:(0,a.jsxs)("a",{href:r,title:i,"aria-label":s,...e?{target:"_blank",rel:"noreferrer"}:void 0,children:[l,u]})})}return(0,a.jsxs)(n.$,{title:i,"aria-label":s,...m,children:[l,u]})};return(0,a.jsxs)("div",{className:"relative flex flex-col items-center justify-between gap-14 pt-28 overflow-hidden [@media(min-height:760px)]:min-h-screen",children:[(0,a.jsx)(u,{}),(0,a.jsx)("div",{className:"relative z-10 flex-1 flex items-center w-full max-w-7xl mx-auto px-4 sm:px-6 md:px-7 lg:px-8 xl:px-10",children:(0,a.jsxs)("div",{className:"w-full lg:w-[68%] xl:w-[66%] flex flex-col items-start gap-8 lg:gap-10",children:[t.eyebrow?(0,a.jsx)("div",{className:"inline-flex items-center",children:(0,a.jsx)("span",{className:"text-xs font-medium tracking-[0.14em] uppercase text-muted-foreground",children:t.eyebrow})}):null,t.title&&(0,a.jsx)("h1",{className:"text-4xl md:text-6xl lg:text-7xl font-bold text-left leading-[1.2]",children:(0,h.JD)(t.title)}),t.description?(0,a.jsx)("p",{className:"lede max-w-2xl text-left",dangerouslySetInnerHTML:{__html:r}}
21):null,(0,a.jsxs)("div",{className:"flex flex-col items-start gap-8 lg:gap-10",children:[(0,a.jsx)("div",{className:"flex flex-wrap justify-start gap-4",children:Array.isArray(t.cta)?t.cta.map((e,t)=>{let l="string"==typeof e?`cta-${t}-${e}`:`cta-${t}-${e.href??e.label??"item"}`;return(0,a.jsx)(o.Fragment,{children:d(e,t)},l)}):t.cta?d(t.cta,0):null}),t.trust&&t.trust.length>0?(0,a.jsx)("div",{className:"grid grid-cols-2 items-center gap-x-6 gap-y-2 sm:flex sm:flex-wrap",children:t.trust.map(e=>(0,a.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,a.jsx)(s.A,{className:"size-4 shrink-0 text-muted-foreground",strokeWidth:2.4,"aria-hidden":"true"}),(0,a.jsx)("span",{className:"text-sm font-medium text-muted-foreground",children:e})]},e))}):null]})]})}),i.length>0?(0,a.jsx)("div",{className:"relative z-10 w-full max-w-7xl mx-auto px-4 sm:px-6 md:px-7 lg:px-8 xl:px-10",children:(0,a.jsx)("div",{className:"hero-stats",children:i.map(e=>{let[t,l]=e,r=l.value.match(/^([â¬<]?[\d.,]+)\s*(.*)$/u),i=r?r[1]:l.value,s=r?r[2]:"";return(0,a.jsxs)("div",{className:"hero-stat",children:[(0,a.jsxs)("div",{className:"hero-stat-value",children:[i,s?(0,a.jsx)("span",{className:"acc",children:s}):null]}),(0,a.jsx)("div",{className:"hero-stat-label",children:l.label})]},t)})})}):null]})}var p=l(28651),g=l(660),b=l(71538),v=l(47062),j=l(32083),w=l(34968),y=l(55201),N=l(86164),k=l(70100),M=l(25449),C=l(83058),S=l(89854),A=l(60195),L=l(47104),R=l(85179),E=l(9544),P=l(83818),_=l(8994),F=l(64991),z=l(18878),T=l(40871),$=l(53131),I=l(40307),q=l(17259),O=l(8021),D=l(80562),H=l(52391),V=l(19065),W=l(4302),B=l(66935),K=l(50080),U=l(39351),J=l(43246),X=l(24690),G=l(16861),Y=l(73374),Z=l(51547),Q=l(1773);function ee(e){let{text:t,className:l}=e,r=(0,m.useRouter)(),i=(0,o.useMemo)(()=>(0,x.$)(t,r.locale??"en"),[t,r.locale]);return(0,a.jsx)("p",{className:l,dangerouslySetInnerHTML:{__html:i}})}function et(e){let{name:t}=e,l={size:18,strokeWidth:1.6,"aria-hidden":!0};return({document:(0,a.jsx)(g.A,{...l}),users:(0,a.jsx)(b.A,{...l}),shield:(0,a.jsx)(v.A,{...l}),"shield-check":(0,a.jsx)(v.A,{...l}),api:(0,a.jsx)(j.A,{...l}),wand:(0,a.jsx)(w.A,{...l}),zap:(0,a.jsx)(y.A,{...l}),"badge-check":(0,a.jsx)(N.A,{...l}),layers:(0,a.jsx)(k.A,{...l}),lock:(0,a.jsx)(M.A,{...l}),star:(0,a.jsx)(C.A,{...l}),smile:(0,a.jsx)(S.A,{...l}),timer:(0,a.jsx)(A.A,{...l}),clock:(0,a.jsx)(L.A,{...l}),coin:(0,a.jsx)(R.A,{...l}),key:(0,a.jsx)(E.A,{...l}),history:(0,a.jsx)(P.A,{...l}),"pen-line":(0,a.jsx)(_.A,{...l}),file:(0,a.jsx)(g.A,{...l}),workflow:(0,a.jsx)(F.A,{...l}),plug:(0,a.jsx)(z.A,{...l}),bot:(0,a.jsx)(T.A,{...l}),"file-signature":(0,a.jsx)($.A,{...l}),cable:(0,a.jsx)(I.A,{...l}),webhook:(0,a.jsx)(q.A,{...l}),sparkles:(0,a.jsx)(O.A,{...l}),code:(0,a.jsx)(j.A,{...l}),rocket:(0,a.jsx)(D.A,{...l}),globe:(0,a.jsx)(H.A,{...l}),building:(0,a.jsx)(V.A,{...l}),home:(0,a.jsx)(W.A,{...l}),message:(0,a.jsx)(B.A,{...l}),"message-circle":(0,a.jsx)(K.A,{...l}),stethoscope:(0,a.jsx)(U.A,{...l}),"heart-pulse":(0,a.jsx)(J.A,{...l}),microscope:(0,a.jsx)(X.A,{...l}),pill:(0,a.jsx)(G.A,{...l})})[t]??null}function el(e){var t;let{data:l}=e,{badge:r,title:i,subtitle:s,items:n,cta:o}=l,d=(0,m.useRouter)();if(!(null==n||null==(t=n.values)?void 0:t.length))return null;if(o&&3===n.cols){let e=(0,Q.KJ)(d.locale??"en",o.button.href),t=n.values.length%3,l=0===t;return(0,a.jsxs)(Y.o,{headerSpacing:"none",children:[(0,a.jsx)(Z.X3,{badge:r,title:i,description:s}),(0,a.jsxs)("div",{className:"mt-12 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:[n.values.map((e,t)=>(0,a.jsx)(Z.qx,{variant:"card",title:e.title,text:e.text,label:e.label,icon:e.icon?(0,a.jsx)(et,{name:e.icon}):void 0},t)),(0,a.jsxs)("div",{className:`${0===t?"sm:col-span-2 lg:col-span-3":1===t?"sm:col-span-2":"sm:col-span-2 lg:col-span-1"} flex ${l?"flex-col lg:flex-row lg:items-center lg:justify-between":"flex-col justify-between"} rounded-3xl border border-input bg-transparent p-8`,children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center gap-4 mb-5",children:[(0,a.jsx)("span",{className:"dot-seq inline-block w-1.5 h-1.5 rounded-full bg-orange-500",style:{animationDelay:"0s"}}),(0,a.jsx)("span",{className:"dot-seq inline-block w-1.5 h-1.5 rounded-full bg-orange-500",style:{animationDelay:"0.75s"}}),(0,a.jsx)("span",{className:"dot-seq inline-block w-1.5 h-1.5 rounded-full bg-orange-500",style:{animationDelay:"1.5s"}})]}),(0,a.jsx)("h3",{className:"text-xl font-semibold text-gray-900 mb-3",children:(0,h.wR)(o.title)}),(0,a.jsx)("p",{className:`font-light leading-relaxed text-[hsl(30,8%,40%)] ${l?"lg:max-w-xl":""}`,children:o.description})]}),(0,a.jsx)("div",{className:`${l?"mt-6 lg:mt-0 lg:ml-12 lg:shrink-0":"mt-6"}`,children:(0,a.jsxs)("a",{href:e,className:"inline-flex items-center gap-2 text-sm font-semibold text-gray-900 focus-visible:outline-none",...(0,Q.OK)(e),children:[(0,a.jsx)("span",{className:"ulink-orange",children:o.button.label}),(0,a.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 11 11","aria-hidden":"true",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:"M2 9L9 2M9 2H3.5M9 2V7.5"})})]})})]})]})]})}if(o){let e=n.values.slice(0,2),t=n.values.slice(2,4),l=(0,Q.KJ)(d.locale??"en",o.button.href);return(0,a.jsxs)(Y.o,{headerSpacing:"none",children:[(0,a.jsx)(Z.X3,{badge:r,title:i,description:s}),(0,a.jsxs)("div",{className:"mt-12 grid grid-cols-1 md:grid-cols-3 gap-6",children:[(0,a.jsx)("div",{className:"flex flex-col gap-6",children:e.map((e,t)=>(0,a.jsx)(Z.qx,{variant:"card",title:e.title,text:e.text,icon:e.icon?(0,a.jsx)(et,{name:e.icon}):void 0},t))}),(0,a.jsx)("div",{className:"flex flex-col gap-6",children:t.map((e,t)=>(0,a.jsx)(Z.qx,{variant:"card",title:e.title,text:e.text,icon:e.icon?(0,a.jsx)(et,{name:e.icon}):void 0},t))}),(0,a.jsx)("div",{className:"flex",children:(0,a.jsxs)("div",{className:"flex flex-col justify-between w-full rounded-3xl border border-input bg-transparent p-8",children:[(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)("span",{className:"dot-seq inline-block w-1.5 h-1.5 rounded-full bg-orange-500",style:{animationDelay:"0s"}}),(0,a.jsx)("span",{className:"dot-seq inline-block w-1.5 h-1.5 rounded-full bg-orange-500",style:{animationDelay:"0.75s"}}),(0,a.jsx)("span",{className:"dot-seq inline-block w-1.5 h-1.5 rounded-full bg-orange-500",style:{animationDelay:"1.5s"}})]}),(0,a.jsx)("h3",{className:"text-xl font-semibold text-gray-900",children:(0,h.wR)(o.title)}),(0,a.jsx)("p",{className:"font-light leading-relaxed text-[hsl(30,8%,40%)]",children:o.description})]}),o.blockLabel&&(0,a.jsx)("a",{href:l,className:"flex flex-1 my-6 min-h-40 md:min-
21h-0 items-center justify-center rounded-2xl border border-transparent bg-[#5c6b3f] px-6 text-center text-xl font-medium text-white transition-colors hover:bg-[#4e5a34] focus-visible:outline-none focus-visible:border-[#1b1918]",...(0,Q.OK)(l),children:o.blockLabel}),(0,a.jsxs)("a",{href:l,className:"inline-flex items-center gap-2 text-sm font-semibold text-gray-900 focus-visible:outline-none",...(0,Q.OK)(l),children:[(0,a.jsx)("span",{className:"ulink-orange",children:o.button.label}),(0,a.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 11 11","aria-hidden":"true",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:"M2 9L9 2M9 2H3.5M9 2V7.5"})})]})]})})]})]})}let c=2===n.cols?"sm:grid-cols-2":4===n.cols?"sm:grid-cols-2 lg:grid-cols-4":"sm:grid-cols-3",u=n.values.some(e=>e.icon);return(n.values.some(e=>e.label),u)?(0,a.jsxs)(Y.o,{headerSpacing:"none",children:[(0,a.jsx)(Z.X3,{badge:r,title:i,description:s}),(0,a.jsx)("div",{className:`mt-12 grid grid-cols-1 ${c} gap-6`,children:n.values.map((e,t)=>(0,a.jsx)(Z.qx,{variant:"card",title:e.title,text:e.text,label:e.label,icon:e.icon?(0,a.jsx)(et,{name:e.icon}):void 0},t))})]}):(0,a.jsxs)(Y.o,{headerSpacing:"none",children:[(0,a.jsx)(Z.X3,{badge:r,title:i,description:s}),(0,a.jsx)("div",{className:`mt-12 -mx-4 flex snap-x gap-5 overflow-x-auto px-4 scroll-pl-4 scroll-pr-4 [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden sm:mx-0 sm:grid sm:gap-6 sm:overflow-visible sm:px-0 ${c}`,children:n.values.map((e,t)=>(0,a.jsxs)("div",{className:"card-lift flex w-[82%] shrink-0 snap-start flex-col rounded-3xl bg-card p-8 sm:w-auto sm:shrink",children:[(0,a.jsxs)("div",{className:"mb-4 flex items-center gap-2.5",children:[(0,a.jsx)("span",{className:"font-medium text-[11px] tracking-[0.12em] text-[#5c6b3f]","aria-hidden":"true",children:String(t+1).padStart(2,"0")}),e.label&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"inline-block h-1.5 w-1.5 shrink-0 rounded-full bg-[#5c6b3f]","aria-hidden":"true"}),(0,a.jsx)("span",{className:"text-xs font-normal uppercase tracking-wider text-muted-foreground",children:e.label})]})]}),(0,a.jsx)("h3",{className:"text-lg font-semibold text-gray-900",children:(0,h.wR)(e.title)}),e.text&&(0,a.jsx)(ee,{text:e.text,className:"mt-2 font-light leading-relaxed text-[hsl(30,8%,40%)] [&_a]:underline [&_a]:decoration-[0.5px] [&_a]:transition-colors [&_a:hover]:text-orange-500 [&_a:focus-visible]:text-orange-500 [&_a:focus-visible]:outline-none"})]},t))})]})}var er=l(83132),ea=l(39314),ei=l(88598),es=l(72068),en=l(72632),eo=l(66661),ed=l(9005),ec=l(71499),eu=l(82133),em=l(61264),ex=l(79480),eh=l(83819),ef=l(33143),ep=l(72425);let eg={qualified:N.A,unlisted:er.A,tampered:ea.A,untrusted:ei.A,coins:es.A,unlock:en.A,shield:v.A,pen:_.A,code:j.A,calendar:eo.A,gauge:ed.A,box:ec.A,phone:eu.A,gift:em.A,card:ex.A,cloud:eh.A,face:ef.A,link:ep.A};function eb(e){let{icon:t}=e,l=eg[t];return l?(0,a.jsx)(l,{size:18,strokeWidth:1.6,"aria-hidden":"true"}):null}let ev="hsl(var(--input))",ej={1:"sm:grid-cols-1",2:"sm:grid-cols-2",3:"sm:grid-cols-2 lg:grid-cols-3",4:"sm:grid-cols-2 lg:grid-cols-4"};function ew(e){let{data:t}=e,{id:l,badge:r,title:i,subtitle:s,items:n}=t,d=(0,m.useRouter)().locale??"en",c=null==n?void 0:n.values,u=(0,o.useMemo)(()=>(c??[]).map(e=>e.text?(0,x.$)(e.text,d):""),[c,d]);if(!(null==c?void 0:c.length))return null;let f=(null==n?void 0:n.cols)??2,p=c.some(e=>e.icon),g=c.length%2==1&&f>1?f>=3?"sm:col-span-2 lg:col-span-1":"sm:col-span-2":void 0;return(0,a.jsxs)(Y.o,{id:l,headerSpacing:"none",children:[(0,a.jsx)(Z.X3,{badge:r,title:i,description:s}),(0,a.jsx)("div",{className:"mt-12 overflow-hidden rounded-3xl bg-[#FBF6EA]",style:{border:`1px solid ${ev}`},children:(0,a.jsx)("div",{className:(0,Q.cn)("-mb-px -mr-px grid grid-cols-1",ej[f]??ej[2]),children:c.map((e,t)=>(0,a.jsxs)("div",{className:(0,Q.cn)("group flex flex-col p-7 transition-colors duration-200 hover:bg-[#FDFAF3] sm:p-8",t===c.length-1&&g),style:{borderRight:`1px solid ${ev}`,borderBottom:`1px solid ${ev}`},children:[(0,a.jsxs)("div",{className:(0,Q.cn)("mb-[22px] flex items-center gap-2.5",p&&"justify-between"),children:[(0,a.jsxs)("span",{className:"flex items-center gap-2.5",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"text-[11px] font-medium tracking-[0.14em] text-muted-foreground transition-colors duration-200 group-hover:text-[#5c6b3f]",children:String(t+1).padStart(2,"0")}),e.label&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"inline-block h-1.5 w-1.5 shrink-0 rounded-full bg-[#5c6b3f]"}),(0,a.jsx)("span",{className:"text-xs font-normal uppercase tracking-wider text-muted-foreground",children:e.label})]})]}),e.icon&&(0,a.jsx)("span",{className:"text-muted-foreground",children:(0,a.jsx)(eb,{icon:e.icon})})]}),(0,a.jsx)("h3",{className:"font-serif text-[#241b12] hyphens-auto",children:(0,h.wR)(e.title)}),u[t]&&(0,a.jsx)("p",{className:"mt-2.5 text-pretty text-sm leading-[1.55] text-muted-foreground [&_a]:underline [&_a]:decoration-[0.5px] [&_a]:transition-colors [&_a:hover]:text-orange-500 [&_a:focus-visible]:text-orange-500 [&_a:focus-visible]:outline-none [&_strong]:font-semibold [&_b]:font-semibold",dangerouslySetInnerHTML:{__html:u[t]}
21})]},t))})})]})}function ey(e){let{data:t}=e,{id:l,badge:r,title:i,subtitle:s,items:n}=t,d=(0,m.useRouter)().locale??"en",c=(0,o.useId)(),[u,f]=(0,o.useState)(0),p=null==n?void 0:n.values,g=(0,o.useMemo)(()=>(p??[]).map(e=>e.text?(0,x.$)(e.text,d):""),[p,d]);return(null==p?void 0:p.length)?(0,a.jsxs)(Y.o,{id:l,headerSpacing:"none",children:[(0,a.jsx)(Z.X3,{badge:r,title:i,description:s}),(0,a.jsx)("div",{className:"mt-12 border-t border-input",children:p.map((e,t)=>{let l=u===t,r=`${c}-rrow-${t}`;return(0,a.jsxs)("div",{"data-open":l,className:"rrow group relative isolate border-b border-input px-1 py-[22px] transition-[padding] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] lg:py-[26px]",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"rrow-fill pointer-events-none absolute inset-0 -z-10",style:{background:"linear-gradient(90deg, rgba(250,244,231,0) 0%, #faf4e7 9%, #faf4e7 91%, rgba(250,244,231,0) 100%)"}}),(0,a.jsxs)("button",{type:"button",onClick:()=>f(l?null:t),"aria-expanded":l,"aria-controls":r,className:"rrow-head grid w-full grid-cols-[36px_minmax(0,1fr)_38px] items-baseline gap-x-5 text-left focus-visible:outline-none lg:grid-cols-[56px_minmax(0,1fr)_38px] lg:gap-x-8",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"rrow-index text-xs font-medium uppercase tracking-[0.14em] text-muted-foreground",children:String(t+1).padStart(2,"0")}),(0,a.jsx)("h3",{className:"rrow-title font-serif text-[#241b12] hyphens-auto",children:(0,h.wR)(e.title)}),(0,a.jsx)("span",{"aria-hidden":"true",className:"rrow-circle flex h-[38px] w-[38px] shrink-0 items-center justify-center self-center justify-self-end rounded-full border border-[rgba(59,47,35,0.26)] text-[#241b12]",children:(0,a.jsx)("svg",{viewBox:"0 0 15 15",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",className:"rrow-arrow h-[15px] w-[15px]",children:(0,a.jsx)("path",{d:"M7.5 2v11M3.5 9l4 4 4-4"})})})]}),(0,a.jsx)("div",{id:r,className:"rrow-panel pl-14 pr-[38px] lg:pl-[88px]",children:(0,a.jsx)("div",{children:g[t]&&(0,a.jsx)("p",{className:"rrow-prose max-w-[64ch] pt-3 text-pretty text-[15px] leading-[1.62] text-muted-foreground [&_a]:underline [&_a]:decoration-[0.5px] [&_a]:transition-colors [&_a:hover]:text-orange-500 [&_a:focus-visible]:text-orange-500 [&_a:focus-visible]:outline-none [&_strong]:font-semibold [&_b]:font-semibold",dangerouslySetInnerHTML:{__html:g[t]}})})})]},t)})})]}):null}function eN(e){let{index:t,title:l,text:r}=e;return(0,a.jsxs)("div",{className:"flex h-full flex-col gap-5",children:[(0,a.jsx)("div",{className:"shrink-0 w-11 h-11 rounded-full flex items-center justify-center font-bold text-base text-orange-500 bg-[hsl(48,25%,92%)]",style:{border:"1px solid #5c6b3f"},"aria-hidden":"true",children:t}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("h3",{className:"text-xl font-semibold leading-tight text-gray-900",children:l}),(0,a.jsx)("p",{className:"leading-relaxed text-[hsl(30,8%,40%)]",children:r})]})]})}function ek(e){let{data:t}=e,{items:l,banner:r,background:i}=t;if(!l||!l.values)return null;let s=(0,a.jsxs)(Y.o,{headerSpacing:"none",children:[(0,a.jsx)(Z.X3,{badge:t.badge||void 0,title:t.title||void 0,description:t.subtitle||void 0,className:"mb-10"}),r&&(r.title||r.text||r.badge)&&(0,a.jsx)("div",{className:"mb-12 rounded-3xl border border-gray-200 bg-white/80 p-6 shadow-sm",children:(0,a.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between md:gap-6",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[r.badge&&(0,a.jsx)("span",{className:"text-xs font-semibold uppercase tracking-wide text-primary",children:r.badge}),r.title&&(0,a.jsx)("h3",{className:"text-lg font-semibold text-gray-900 leading-tight",children:(0,h.wR)(r.title)})]}),r.text&&(0,a.jsx)("p",{className:"text-sm text-gray-600 md:max-w-xl",children:r.text})]})}),(0,a.jsx)(Z.hM,{columns:l.cols,gap:"xl",children:l.values.map((e,t)=>(0,a.jsx)("div",{className:"h-full",children:(0,a.jsx)(eN,{index:t+1,title:e.title,text:e.text})},`feature-numeric-${t}`))})]});return"dark"===i?(0,a.jsx)("div",{className:"w-full bg-background",children:s}):s}var eM=l(42898),eC=l(2841),eS=l(88061);function eA(e){let{name:t}=e,l={size:18,strokeWidth:1.6,"aria-hidden":!0};return({shield:(0,a.jsx)(v.A,{...l}),coin:(0,a.jsx)(R.A,{...l}),clock:(0,a.jsx)(L.A,{...l}),key:(0,a.jsx)(E.A,{...l}),download:(0,a.jsx)(eM.A,{...l}),users:(0,a.jsx)(b.A,{...l}),"git-branch":(0,a.jsx)(eC.A,{...l}),history:(0,a.jsx)(P.A,{...l}),crown:(0,a.jsx)(eS.A,{...l}),"pen-line":(0,a.jsx)(_.A,{...l}),file:(0,a.jsx)(g.A,{...l}),zap:(0,a.jsx)(y.A,{...l}),smile:(0,a.jsx)(S.A,{...l})})[t]??null}function eL(e){let{data:t}=e,{badge:l,title:r,subtitle:i,maxWidth:s,stats:n,items:o}=t,d="object"==typeof l?null==l?void 0:l.label:l;return n&&(null==o?void 0:o.values)?(0,a.jsx)(Y.o,{maxWidth:s,headerSpacing:"none",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-5 ga
21p-16 items-start",children:[(0,a.jsxs)("div",{className:"lg:col-span-2 lg:sticky lg:top-24 lg:self-start",children:[(0,a.jsx)(Z.X3,{badge:d,title:r,description:i}),(0,a.jsx)(Z.nU,{stats:n,columns:3,variant:"card",className:"mt-9"})]}),(0,a.jsx)(Z.hM,{columns:o.cols,gap:"lg",className:"lg:col-span-3",children:o.values.map((e,t)=>(0,a.jsx)(Z.qx,{title:e.title,text:e.text,label:e.label,variant:"card",icon:e.icon?(0,a.jsx)(eA,{name:e.icon}):void 0},t))})]})}):(0,a.jsxs)(Y.o,{maxWidth:s,headerSpacing:"none",children:[(0,a.jsx)(Z.X3,{badge:d,title:r,description:i}),n&&(0,a.jsx)(Z.nU,{stats:n,columns:3,variant:"card",className:"mt-12"}),(null==o?void 0:o.values)&&(0,a.jsx)(Z.hM,{columns:o.cols,gap:"lg",className:n?"mt-16":"mt-12",children:o.values.map((e,t)=>(0,a.jsx)(Z.qx,{title:e.title,text:e.text,label:e.label,variant:"card",icon:e.icon?(0,a.jsx)(eA,{name:e.icon}):void 0},t))})]})}function eR(e){var t;let{data:l}=e,{stats:r,items:i,cta:s,cardType:n="slide"}=l,o="slide"===n,d=(0,m.useRouter)(),c=(null==s||null==(t=s.button)?void 0:t.href)?(0,Q.KJ)(d.locale??"en",s.button.href):void 0;return(0,a.jsxs)(Y.o,{headerSpacing:"none",children:[(0,a.jsx)(Z.X3,{badge:l.badge||void 0,title:l.title||void 0,description:l.subtitle||void 0,className:"mb-10"}),r&&(0,a.jsx)(Z.nU,{stats:r,columns:3}),i&&i.values&&(0,a.jsxs)(Z.hM,{columns:i.cols,gap:"lg",children:[i.values.map((e,t)=>o?(0,a.jsx)(Z.Yt,{title:e.title,text:e.text,link:e.link},t):(0,a.jsx)(Z.IF,{title:e.title,text:e.text,type:n,link:e.link},t)),s&&(0,a.jsxs)("div",{className:"flex flex-col justify-between rounded-3xl border border-input bg-transparent p-8",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center gap-4 mb-5",children:[(0,a.jsx)("span",{className:"dot-seq inline-block w-1.5 h-1.5 rounded-full bg-orange-500",style:{animationDelay:"0s"}}),(0,a.jsx)("span",{className:"dot-seq inline-block w-1.5 h-1.5 rounded-full bg-orange-500",style:{animationDelay:"0.75s"}}),(0,a.jsx)("span",{className:"dot-seq inline-block w-1.5 h-1.5 rounded-full bg-orange-500",style:{animationDelay:"1.5s"}})]}),(0,a.jsx)("h3",{className:"text-lg font-semibold text-gray-900 mb-3",children:(0,h.wR)(s.title)}),(0,a.jsx)("p",{className:"font-light leading-relaxed text-[hsl(30,8%,40%)]",children:s.description})]}),(0,a.jsx)("div",{className:"mt-6",children:(0,a.jsxs)("a",{href:c??s.button.href,className:"inline-flex items-center gap-2 text-sm font-semibold text-gray-900 focus-visible:outline-none",...(0,Q.OK)(c??s.button.href),children:[(0,a.jsx)("span",{className:"ulink-orange",children:s.button.label}),(0,a.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 11 11","aria-hidden":"true",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:"M2 9L9 2M9 2H3.5M9 2V7.5"})})]})})]})]})]})}var eE=l(54587),eP=l.n(eE),e_=l(27393),eF=l(64799),ez=l(22419),eT=l(51),e$=l(11410),eI=l(19982),eq=l(46863),eO=l(4952),eD=l(74893),eH=l(3144),eV=l(62652),eW=l(8080),eB=l(93332);function eK(e){let{badge:t,title:l,description:r,className:i,alignment:s="center",badgeVariant:n="outline",titleSize:d="lg",centerContent:c=!0}=e,u=(0,m.useRouter)(),h=(0,o.useMemo)(()=>(0,x.$)(r,u.locale??"en"),[r,u.locale]),f=(0,Q.cn)("w-full space-y-8 mx-auto max-w-7xl",{left:"text-left",center:"text-center",right:"text-right"}[s],i);return(0,a.jsx)("div",{className:f,children:(0,a.jsxs)("div",{className:(0,Q.cn)("max-w-4xl space-y-4",c&&"center"===s&&"mx-auto"),children:[t&&(0,a.jsx)(eV.E,{variant:n,children:t}),l&&(0,a.jsx)(eW.C,{level:2,size:d,children:l}),r&&(0,a.jsx)(eB.K,{html:h,children:r})]})})}let eU={files:e_.A,clock:L.A,"check-circle-2":eF.A,"file-text":g.A,users:b.A,shield:ez.A,bell:eT.A,"credit-card":ex.A,"message-square":B.A,list:e$.A,search:eI.A,download:eM.A,eye:eq.A,send:eO.A,pen:eD.A};function eJ(e){var t;let{data:l}=e,r=(0,o.useMemo)(()=>{var e,t;return(Array.isArray(null==(e=l.items)?void 0:e.values)?null==(t=l.items)?void 0:t.values:[]).map(e=>({...e,normalizedImage:((e,t)=>{var l,r;if(!e)return null;let a=(null==t?void 0:t.trim())||"Feature illustration";if("string"==typeof e)return{src:e,alt:a,width:960,height:720};if("object"==typeof e&&(null==e||null==(l=e.src)?void 0:l.trim())){let t=e.width&&e.width>0?e.width:960,l=e.height&&e.height>0?e.height:720;return{src:e.src,alt:(null==(r=e.alt)?void 0:r.trim())||a,width:t,height:l,blurDataURL:e.blurDataURL}}return null})(e.image,e.title)}))},[null==(t=l.items)?void 0:t.values]),[i,n]=(0,o.useState)(0),d=(0,o.useRef)(null),c=(0,o.useRef)(new Map),[u,m]=(0,o.useState)(0),x=Math.min(i,Math.max(0,r.length-1)),f=(0,o.useCallback)(()=>{let e=0;c.current.forEach(t=>{t&&(e=Math.max(e,t.scrollHeight))}),m(e)},[]);return((0,o.useEffect)(()=>{f();let e=()=>{f()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[x,f]),0===r.length)?null:(0,a.jsxs)(Y.o,{headerSpacing:"none",children:[(0,a.jsx)(eK,{badge:l.badge||void 0,title:l.title||void 0,description:l.subtitle||void 0,alignment:"left",centerContent:!1,className:"mb-10"}),(0,a.jsxs)("div",{className:"hidden md:grid md:grid-cols-2 md:gap-12",children:[(0,a.jsx)("div",{ref:d,role:"tablist","aria-label":(0,h.TA)(l.title),className:"flex flex-col gap-1",children:r.map((e,t)=>{let l=t===x,r=e.icon?eU[e.icon]??null:null;return(0,a.jsxs)("button",{type:"button",role:"tab","aria-selected":l,className:(0,Q.cn)("group flex w-full items-center justify-between gap-4 roun
21ded-2xl border border-transparent px-4 py-4 text-left transition-colors focus-visible:outline-none focus-visible:ring-0 focus-visible:border-[#5c6b3f]",l?"text-foreground":"text-muted-foreground hover:text-foreground"),onMouseEnter:()=>n(t),onFocus:()=>n(t),onClick:()=>n(t),children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[r?(0,a.jsx)("span",{className:"shrink-0 w-11 h-11 rounded-full flex items-center justify-center text-[#5c6b3f] bg-[hsl(48,25%,92%)]",style:{border:"1px solid #5c6b3f"},children:(0,a.jsx)(r,{className:"h-5 w-5"})}):(0,a.jsx)("span",{className:(0,Q.cn)("h-2 w-2 flex-shrink-0 rounded-full transition-colors",l?"bg-foreground":"bg-muted-foreground/40 group-hover:bg-muted-foreground")}),(0,a.jsx)("span",{className:"text-lg font-medium leading-snug",children:e.title})]}),(0,a.jsx)(eH.A,{className:(0,Q.cn)("h-4 w-4 flex-shrink-0 transition-all duration-200",l?"text-[#5c6b3f] translate-x-0.5":"text-muted-foreground/30 group-hover:text-[#5c6b3f] group-hover:translate-x-0.5")})]},`interactive-item-${t}`)})}),(0,a.jsx)("div",{role:"tabpanel","aria-live":"polite",className:"relative",style:{minHeight:u||void 0},children:r.map((e,t)=>{let l=e.normalizedImage,r=t===x;return(0,a.jsxs)("div",{ref:e=>{e&&c.current.set(t,e)},className:(0,Q.cn)("flex flex-col gap-8 rounded-3xl bg-card card-lift p-8",r?"relative":"absolute inset-0 invisible pointer-events-none"),children:[l&&(0,a.jsx)("div",{className:"relative w-full overflow-hidden rounded-2xl bg-background",style:{aspectRatio:`${l.width} / ${l.height}`},children:(0,a.jsx)(eP(),{src:l.src,alt:l.alt,fill:!0,sizes:"(max-width: 767px) 100vw, 45vw",className:"object-cover",placeholder:l.blurDataURL?"blur":void 0,blurDataURL:l.blurDataURL})}),(0,a.jsxs)("div",{className:"space-y-4",children:[e.label&&(0,a.jsx)("span",{className:"text-xs font-medium tracking-[0.14em] uppercase text-muted-foreground",children:e.label}),(0,a.jsx)("h3",{className:"text-xl font-semibold leading-tight text-foreground",children:(0,h.wR)(e.title)}),e.description&&(0,a.jsx)("p",{className:"text-base leading-relaxed text-muted-foreground",children:e.description}),Array.isArray(e.bullets)&&e.bullets.length>0&&(0,a.jsx)("ul",{className:"space-y-3",children:e.bullets.map((e,l)=>(0,a.jsxs)("li",{className:"flex items-start gap-3 text-muted-foreground",children:[(0,a.jsx)(s.A,{className:"mt-1 h-4 w-4 flex-shrink-0 text-[#5c6b3f]",strokeWidth:2.5}),(0,a.jsx)("span",{className:"leading-relaxed",children:e})]},`bullet-${t}-${l}`))})]})]},`panel-${t}`)})})]}),(0,a.jsx)("div",{className:"flex flex-col gap-4 md:hidden",children:r.map((e,t)=>{let l=e.normalizedImage,r=e.icon?eU[e.icon]??null:null;return(0,a.jsxs)("div",{className:"flex flex-col gap-5 rounded-3xl bg-card card-lift p-6",children:[l&&(0,a.jsx)("div",{className:"relative w-full overflow-hidden rounded-2xl bg-background",style:{aspectRatio:`${l.width} / ${l.height}`},children:(0,a.jsx)(eP(),{src:l.src,alt:l.alt,fill:!0,sizes:"100vw",className:"object-cover",placeholder:l.blurDataURL?"blur":void 0,blurDataURL:l.blurDataURL})}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[e.label&&(0,a.jsx)("span",{className:"text-xs font-medium tracking-[0.14em] uppercase text-muted-foreground",children:e.label}),(0,a.jsx)("h3",{className:"text-xl font-semibold leading-tight text-foreground",children:(0,h.wR)(e.title)})]}),r&&(0,a.jsx)("span",{className:"shrink-0 text-muted-foreground","aria-hidden":"true",children:(0,a.jsx)(r,{size:18,strokeWidth:1.6})})]}),e.description&&(0,a.jsx)("p",{className:"text-base leading-relaxed text-muted-foreground",children:e.description}),Array.isArray(e.bullets)&&e.bullets.length>0&&(0,a.jsx)("ul",{className:"space-y-3",children:e.bullets.map((e,l)=>(0,a.jsxs)("li",{className:"flex items-start gap-3 text-muted-foreground",children:[(0,a.jsx)(s.A,{className:"mt-1 h-4 w-4 flex-shrink-0 text-[#5c6b3f]",strokeWidth:2.5}),(0,a.jsx)("span",{className:"leading-relaxed",children:e})]},`mobile-bullet-${t}-${l}`))})]},`interactive-mobile-${t}`)})})]})}var eX=l(46623),eG=l(34481),eY=l(62986),eZ=l(5002);let eQ={title:"Hash Signature",idleHint:"Click pencil to draw",drawingHint:"Drawing mode",hashCaption:"Unique digital fingerprint of your signature. Signature hash:",footnote:"SHA-256 \xb7 Verified on chain",demoLabel:"Try the demo"},e0=["#5c6b3f","#000000","#ef4444","#3b82f6","#22c55e","#a855f7","#eab308","#ec4899"];function e1(e){let t,{demoHref:l,labels:r,variant:i="card",className:s}=e,n=(t={...eQ}
21,Object.keys(eQ).forEach(e=>{let l=null==r?void 0:r[e];l&&(t[e]=l)}),t),d=(0,o.useRef)(null),[c,u]=(0,o.useState)(!1),[m,x]=(0,o.useState)(!1),[h,f]=(0,o.useState)("pencil"),[p,g]=(0,o.useState)("#5c6b3f"),[b,v]=(0,o.useState)(!1),[j,w]=(0,o.useState)(null),[y,N]=(0,o.useState)(!1),[k,M]=(0,o.useState)("");(0,o.useEffect)(()=>{let e=d.current;if(!e)return;let t=e.getContext("2d");if(!t)return;let l=e.getBoundingClientRect();e.width=l.width*window.devicePixelRatio,e.height=l.height*window.devicePixelRatio,t.scale(window.devicePixelRatio,window.devicePixelRatio),t.lineCap="round",t.lineJoin="round"},[]);let C=async()=>{let e=d.current;if(!e)return"";try{let t=new TextEncoder().encode(e.toDataURL()),l=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(l)).map(e=>e.toString(16).padStart(2,"0")).join("").toUpperCase()}catch{return""}},S=e=>{let t=d.current;if(!t)return{x:0,y:0};let l=t.getBoundingClientRect();return{x:e.clientX-l.left,y:e.clientY-l.top}},A=async()=>{m&&(N(!0),M(await C())),x(!1),w(null)},L="w-10 h-10 rounded-xl flex items-center justify-center transition-colors focus-visible:outline-none",R="bg-gray-900 text-white",E="bg-card text-gray-700 hover:bg-gray-900 hover:text-white";return(0,a.jsxs)("div",{className:(0,Q.cn)("card"===i?"card-lift rounded-3xl bg-card p-6":"flex flex-col p-6 sm:p-8 lg:p-10",s),children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsx)("span",{className:"text-sm font-medium text-muted-foreground",children:n.title}),(0,a.jsxs)("span",{className:"flex items-center gap-1.5 text-sm font-medium text-orange-500",children:[(0,a.jsx)("span",{className:"hero-dot-pulse inline-block w-1.5 h-1.5 rounded-full bg-orange-500 shrink-0"}),c?n.drawingHint:n.idleHint]})]}),(0,a.jsxs)("div",{className:"relative h-72 overflow-hidden rounded-xl border border-input bg-[#FBF8F1]",children:[(0,a.jsx)("canvas",{ref:d,className:"absolute inset-0 w-full h-full",style:{touchAction:"none",cursor:`url("data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12'><circle cx='6' cy='6' r='4' fill='${p}'/></svg>`)}") 6 6, crosshair`},onPointerDown:e=>{c||(u(!0),f("pencil"),v(!1)),e.currentTarget.setPointerCapture(e.pointerId),x(!0),w(S(e))},onPointerMove:e=>{var t;if(!m||!j)return;let l=null==(t=d.current)?void 0:t.getContext("2d");if(!l)return;let r=S(e);l.globalCompositeOperation="eraser"===h?"destination-out":"source-over",l.lineWidth="eraser"===h?22:3,l.strokeStyle=p,l.beginPath(),l.moveTo(j.x,j.y),l.lineTo(r.x,r.y),l.stroke(),w(r)},onPointerUp:A,onPointerCancel:A,onPointerLeave:A}),(0,a.jsx)("div",{className:`absolute inset-0 flex items-center justify-center transition-opacity duration-500 pointer-events-none ${c?"opacity-0":"opacity-100"}`,children:(0,a.jsx)("svg",{width:"80%",height:"70%",viewBox:"0 0 300 100","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M10 60 C 40 10, 80 90, 120 40 S 200 10, 240 50 S 290 30, 296 50",fill:"none",stroke:"#5c6b3f",strokeWidth:"2.5",strokeLinecap:"round",strokeDasharray:"700",strokeDashoffset:"700",children:(0,a.jsx)("animate",{attributeName:"stroke-dashoffset",from:"700",to:"0",dur:"2.6s",begin:"0s",repeatCount:"indefinite"})})})}),y&&k&&(0,a.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 px-4 py-3 pointer-events-none",style:{background:"linear-gradient(to top, #FBF8F1 70%, transparent)"},children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground mb-0.5",children:n.hashCaption}),(0,a.jsxs)("div",{className:"font-mono text-xs break-all text-gray-800 font-semibold",children:["#",k.slice(0,48),"â¦"]})]}),b&&(0,a.jsx)("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 flex flex-col gap-3 z-10",children:e0.map(e=>(0,a.jsx)("button",{onClick:()=>{g(e),u(!0),f("pencil")},className:`w-5 h-5 rounded-full transition-all hover:scale-110 ${p===e?"ring-2 ring-offset-1 ring-gray-900 scale-110":""}`,style:{backgroundColor:e},"aria-label":`Color ${e}`},e))})]}),(0,a.jsx)("div",{className:"mt-4 flex flex-col items-center gap-2",children:(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,a.jsx)("button",{onClick:()=>{u(!0),f("pencil"),v(!1)},className:`${L}
21 ${c&&"pencil"===h?R:E}`,title:"Draw",children:(0,a.jsx)(eX.A,{size:16})}),(0,a.jsx)("button",{onClick:()=>v(e=>!e),className:`${L} ${b?R:E}`,style:!b&&c?{backgroundColor:p,color:"white"}:void 0,title:"Color",children:(0,a.jsx)(eG.A,{size:16})}),(0,a.jsx)("button",{onClick:()=>{u(!0),f("eraser"),v(!1)},className:`${L} ${c&&"eraser"===h?R:E}`,title:"Eraser",children:(0,a.jsx)(eY.A,{size:16})}),(0,a.jsx)("button",{onClick:()=>{let e=d.current,t=null==e?void 0:e.getContext("2d");t&&e&&(t.clearRect(0,0,e.width/window.devicePixelRatio,e.height/window.devicePixelRatio),N(!1),M(""),u(!1),v(!1))},className:`${L} ${E}`,title:"Clear",children:(0,a.jsx)(eZ.A,{size:16})})]})}),(0,a.jsxs)("div",{className:"mt-4 flex items-center justify-between gap-4",children:[(0,a.jsx)("span",{className:"min-w-0 text-sm text-muted-foreground",children:n.footnote}),l&&(0,a.jsxs)(Z.W_,{href:l,className:"inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap text-[13.5px] font-medium text-[#5c6b3f] transition-colors hover:text-[#4a5632] focus-visible:underline focus-visible:underline-offset-4 focus-visible:outline-none",children:[(0,a.jsx)("span",{children:n.demoLabel}),(0,a.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 11 11","aria-hidden":"true",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:"M2 9L9 2M9 2H3.5M9 2V7.5"})})]})]})]})}function e2(e){let{items:t}=e;return(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{"aria-hidden":"true",className:"absolute left-[21px] pointer-events-none",style:{top:46,bottom:46,width:0,borderLeft:"1px solid #5c6b3f",opacity:.6}}),(0,a.jsx)("ol",{className:"relative space-y-5",children:t.map((e,t)=>(0,a.jsxs)("li",{className:"flex gap-5 items-start",children:[(0,a.jsx)("div",{className:"shrink-0 w-11 h-11 rounded-full flex items-center justify-center font-bold text-sm text-orange-500 bg-[hsl(48,25%,92%)]",style:{border:"1px solid #5c6b3f"},"aria-hidden":"true",children:String(t+1).padStart(2,"0")}),(0,a.jsxs)("div",{className:"card-lift flex-1 rounded-3xl bg-card p-6",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:(0,h.wR)(e.title)}),(0,a.jsx)("p",{className:"font-light leading-relaxed text-[hsl(30,8%,40%)]",children:e.text})]})]},t))})]})}function e5(e){let{data:t}=e,{badge:l,title:r,subtitle:i,items:s,hashDesk:n,ctaButton:o,demoLink:d,showSignatureCard:c=!0}=t,u=(0,m.useRouter)();if(!(null==s?void 0:s.length))return null;let x=(null==o?void 0:o.link)?(0,Q.KJ)(u.locale??"en",o.link):void 0,h=(null==d?void 0:d.href)?(0,Q.KJ)(u.locale??"en",d.href):x;return(0,a.jsx)(Y.o,{headerSpacing:"none",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-start",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-8 lg:sticky lg:top-24 lg:self-start",children:[(0,a.jsx)(Z.X3,{badge:l,title:r,description:i}),c&&(0,a.jsx)(e1,{demoHref:h,labels:{title:null==n?void 0:n.text,hashCaption:null==n?void 0:n.result}}),x&&(0,a.jsx)("div",{children:(0,a.jsxs)("a",{href:x,className:"group inline-flex items-center gap-2 rounded-xl border border-transparent bg-[#5c6b3f] px-6 py-3 text-sm font-medium text-white transition-colors hover:bg-[#4e5a34] focus-visible:outline-none focus-visible:border-[#1b1918]",...(0,Q.OK)(x),children:[(null==o?void 0:o.text)??"Start Signing",(0,a.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14","aria-hidden":"true",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"transition-transform duration-200 group-hover:translate-x-0.5",children:(0,a.jsx)("path",{d:"M2 7h10M8 3l4 4-4 4"})})]})})]}),(0,a.jsx)(e2,{items:s})]})})}function e3(e){let{data:t}=e;return(0,a.jsxs)(Y.o,{headerSpacing:"none",children:[(0,a.jsx)(eK,{badge:t.badge||void 0,title:t.title||void 0,description:t.description||void 0}),(0,a.jsx)("div",{className:"prose prose-lg max-w-none",children:(0,a.jsx)("p",{className:"text-gray-700 leading-relaxed",children:t.content||"Default about content"})})]})}var e4=l(48230),e6=l.n(e4),e8=l(72953);function e9(){let{enabled:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,l]=(0,o.useState)([]),[r,a]=(0,o.useState)(e),[i,s]=(0,o.useState)(null),n=(0,m.useRouter)().locale||"en";return(0,o.useEffect)(()=>{e?(async()=>{try{a(!0),s(null);let e=await fetch(`/locales/${n}/blog/articles-index.json`);if(!e.ok)throw Error(`Failed to fetch articles: ${e.statusText}`);let t=await e.json(),r=Array.isArray(t)?t:"object"==typeof t&&null!==t&&"articles"in t&&t.articles||[],i=(0,e8.KC)(r);l(i)}catch(e){console.error("Error loading articles:",e),s(e instanceof Error?e.message:"Failed to load articles"),l([])}finally{a(!1)}})():a(!1)},[n,e]),{articles:t,loading:r,error:i}}var e7=l(1993);function te(e){var t;let{data:l}=e,r=(0,o.useContext)(e7.Z).LastArticles,{articles:s}=e9({enabled:!r}),n=(0,m.useRouter)().locale||"en",{t:d}=(0,i.Bd)("common"),c=l.maxArticles||3,u=l.showFeaturedOnly||!1,x=l.slugs,h=(0,o.useMemo)(()=>r??function(e,t){let{maxArticles:l,showFeaturedOnly:r,slugs:a,excludeSlug:i}=t,s=e.filter(e=>"published"===e.status).filter(e=>!i||e.slug!==i);return(null==a?void 0:a.length)?a.map(e=>s.find(t=>t.slug===e)).filter(e=>!!e):s.filter(e=>!r||e.featured).sort(e8.pq).slice(0,l)}
21(s,{maxArticles:c,showFeaturedOnly:u,slugs:x}),[r,s,c,u,x]),f=null==(t=l.ctaButton)?void 0:t.link;return(0,a.jsxs)(Y.o,{className:l.className,headerSpacing:"none",children:[(0,a.jsx)("div",{className:"mb-10",children:(0,a.jsx)(Z.X3,{badge:l.badge,title:l.title,description:l.description})}),(0,a.jsx)("div",{className:"-mx-4 flex snap-x gap-5 overflow-x-auto px-4 scroll-pl-4 scroll-pr-4 [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden md:mx-0 md:grid md:grid-cols-3 md:gap-6 md:overflow-visible md:px-0",children:h.map(e=>(0,a.jsxs)(e6(),{href:`/blog/${e.slug}`,"aria-label":e.title,className:"card-lift flex w-[82%] shrink-0 snap-start flex-col overflow-hidden rounded-3xl bg-card transition-colors duration-200 hover:bg-[#FBF6EA] focus-visible:outline-none focus-visible:border-[#5c6b3f] md:w-auto",children:[(0,a.jsx)("div",{className:"relative aspect-video w-full",children:(0,a.jsx)(eP(),{src:e.featuredImage.src,alt:e.featuredImage.alt,fill:!0,sizes:"(min-width: 768px) 33vw, 82vw",className:"object-cover"})}),(0,a.jsxs)("div",{className:"flex flex-1 flex-col p-6",children:[(0,a.jsx)("time",{dateTime:(0,Q.DU)(e),className:"mb-3 block text-sm text-muted-foreground",children:(0,Q.Yq)((0,Q.DU)(e),n)}),(0,a.jsx)("h3",{className:"card-title",children:e.title}),(0,a.jsx)("span",{className:"mt-2 text-sm text-muted-foreground",children:d("blog.readTimeLabel",{time:e.readTime})})]})]},e.slug))}),l.ctaButton&&f&&(0,a.jsx)("div",{className:"mt-10 flex justify-center",children:(0,a.jsx)(Z.W_,{href:f,className:"inline-flex items-center gap-2 rounded-xl border border-input bg-transparent px-6 py-3 text-sm font-medium text-[#1b1918] transition-colors hover:border-[#1b1918] hover:bg-[#1b1918] hover:text-[#f7f1e3] focus-visible:outline-none focus-visible:border-[#1b1918]",children:l.ctaButton.text})})]})}var tt=l(80901),tl=l(68264);function tr(e){let{article:t,className:l="",priority:r=!1,bgClassName:i="bg-card"}=e,s=(0,m.useRouter)().locale||"en",[n,d]=(0,o.useState)(!1),[c,u]=(0,o.useState)({x:0,y:0}),x=(0,o.useRef)(null),h=()=>{d(!0)},f=()=>{d(!1),u({x:0,y:0})};return(0,a.jsx)(e6(),{href:`/blog/${t.slug}`,className:`block rounded-3xl border border-transparent focus-visible:outline-none focus-visible:border-[#5c6b3f] ${l}`,onMouseEnter:h,onMouseLeave:f,onFocus:h,onBlur:f,"aria-label":t.title,children:(0,a.jsxs)(tt.Zp,{className:`relative h-full w-full overflow-hidden rounded-3xl border-0 shadow-none ${i}`,children:[(0,a.jsx)("div",{className:"p-2",children:(0,a.jsx)("div",{ref:x,className:"relative overflow-hidden rounded-2xl",style:{paddingTop:"56.25%",minHeight:200},onMouseMove:e=>{if(!x.current)return;let t=x.current.getBoundingClientRect();u({x:-(((e.clientX-t.left)/t.width-.5)*20),y:-(((e.clientY-t.top)/t.height-.5)*20)})},onMouseLeave:()=>u({x:0,y:0}),children:(0,a.jsx)(eP(),{src:t.featuredImage.src,alt:t.featuredImage.alt,fill:!0,priority:r,loading:r?"eager":"lazy",fetchPriority:r?"high":"auto",sizes:"(min-width: 1280px) 28vw, (min-width: 1024px) 32vw, (min-width: 768px) 48vw, 92vw",className:"object-cover transition-all duration-500 ease-out",style:{transform:n?`scale(1.1) translate(${c.x}px, ${c.y}px)`:"scale(1) translate(0px, 0px)"}})})}),(0,a.jsxs)(tt.Wu,{className:"p-6 pt-4 flex flex-col relative z-10 w-full mx-auto",children:[(0,a.jsxs)("div",{className:"flex items-center gap-4 text-sm text-muted-foreground mb-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(tl.A,{className:"w-4 h-4"}),(0,a.jsx)("time",{dateTime:(0,Q.DU)(t),children:(0,Q.Yq)((0,Q.DU)(t),s)})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(L.A,{className:"w-4 h-4"}),(0,a.jsx)("span",{children:t.readTime})]})]}),(0,a.jsx)("h3",{className:"font-semibold text-gray-900 mb-3 text-lg",children:t.title}),(0,a.jsx)("p",{className:"text-muted-foreground mb-4 line-clamp-3 text-sm leading-relaxed",children:t.description})]})]})})}let ta={1:"grid-cols-1",2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4"};function ti(e){let{articles:t,columns:l=3,className:r="",bottomSpacingClass:i="mb-16",showEmptyState:s=!1,emptyStateMessage:n="No articles found",visibleCount:d}=e,c=(0,o.useRef)(null),u=t.length,m=(0,o.useMemo)(()=>"number"==typeof d?Math.min(Math.max(d,0),u):u,[d,u]);return(null===c.current&&(c.current=m),0===u)?s?(0,a.jsx)("div",{className:"text-center py-12",children:(0,a.jsx)("p",{className:"text-muted-foreground text-lg",children:n})}):null:(0,a.jsx)("div",{className:`grid ${ta[l]} gap-8 ${i} items-stretch ${r}`,children:t.map((e,t)=>{let l="number"==typeof d&&t>=m,r=l?{opacity:0,pointerEvents:"none",position:"absolute",width:"1px",height:"1px",overflow:"hidden"}:void 0,i=!l&&t<=2;return(0,a.jsx)("div",{className:"h-full",style:r,"aria-hidden":l,"data-hidden":l||void 0,children:(0,a.jsx)(tr,{article:e,className:"h-full",priority:i})},e.slug)})})}function ts(e){var t;let{data:l}=e,r=(0,o.useContext)(e7.Z).RelatedArticles,{articles:i}=e9({enabled:!r}),s=l.maxArticles||3,n=l.currentArticleSlug,d=l.currentArticleCategory,c=l.currentArticleTags,u=(0,o.useMemo)(()=>r??function(e,t){let{maxArticles:l,currentSlug:r,currentCategories:a,currentTags:i}=t,s=e.filter(e=>"published"===e.status).filter(e=>!r||e.slug!==r).sort(e8.pq);
21if(!s.length)return[];let n=[],o=a??[],d=i??[],c=new Set(d.map(e=>e.toLowerCase()));if(o.length||d.length){let e=s.map(e=>({article:e,weight:2*e.tags.filter(e=>c.has(e.toLowerCase())).length+e.category.filter(e=>o.includes(e)).length})).filter(e=>e.weight>0);e.sort((e,t)=>t.weight-e.weight),n.push(...e.slice(0,l).map(e=>e.article))}if(n.length<l){let e=l-n.length,t=s.filter(e=>!n.some(t=>t.slug===e.slug)).slice(0,e);n.push(...t)}return n.slice(0,l)}(i,{maxArticles:s,currentSlug:n,currentCategories:d,currentTags:c}),[r,i,n,d,c,s]);if(0===u.length)return null;let m=Math.min(u.length,3),x=null==(t=l.ctaButton)?void 0:t.link;return(0,a.jsxs)(Y.o,{className:l.className,headerSpacing:"none",children:[(0,a.jsxs)("div",{className:"flex items-end justify-between gap-6",children:[(0,a.jsx)("div",{className:"min-w-0 flex-1",children:(0,a.jsx)(eK,{badge:l.badge,title:l.title,description:l.description,alignment:"left",centerContent:!1})}),l.ctaButton&&x&&(0,a.jsxs)(Z.W_,{href:x,className:"inline-flex shrink-0 items-center gap-2 pb-1 text-sm font-semibold text-gray-900 focus-visible:outline-none",children:[(0,a.jsx)("span",{className:"ulink-orange",children:l.ctaButton.text}),(0,a.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 11 11","aria-hidden":"true",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:"M2 9L9 2M9 2H3.5M9 2V7.5"})})]})]}),(0,a.jsx)(ti,{articles:u,columns:m,bottomSpacingClass:"mb-8",className:"mt-12"})]})}let tn="#100c07";function to(e){let{src:t,alt:l="",placement:r="bleed",focus:i="center 20%"}=e,s="inset"===r;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{"aria-hidden":"true",className:(0,Q.cn)("pointer-events-none absolute inset-y-0 right-0",s?"w-full lg:w-[62%]":"left-0"),children:(0,a.jsx)(eP(),{src:t,alt:l,fill:!0,sizes:s?"(min-width: 1024px) 62vw, 100vw":"100vw",className:"object-cover",style:{objectPosition:i}})}),(0,a.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 lg:hidden",style:{background:s?`linear-gradient(to top, ${tn} 22%, rgba(16,12,7,0.94) 50%, rgba(16,12,7,0.78) 76%, rgba(16,12,7,0.66) 100%)`:`linear-gradient(to top, ${tn} 18%, rgba(16,12,7,0.86) 44%, rgba(16,12,7,0.34) 72%, rgba(16,12,7,0) 100%)`}}),(0,a.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 hidden lg:block",style:{background:s?`linear-gradient(to right, ${tn} 0%, ${tn} 34%, rgba(16,12,7,0.86) 46%, rgba(16,12,7,0.34) 58%, rgba(16,12,7,0.06) 70%, rgba(16,12,7,0) 80%)`:`linear-gradient(to right, ${tn} 0%, rgba(16,12,7,0.94) 16%, rgba(16,12,7,0.70) 30%, rgba(16,12,7,0.32) 46%, rgba(16,12,7,0.08) 62%, rgba(16,12,7,0) 78%)`}})]})}function td(e){let{data:t}=e,{badge:l,title:r,description:i,ctaButton:s,secondaryButton:n,pills:o,tone:d,image:c,imageAlt:u,className:x}=t,h="dark"===d,f=(0,m.useRouter)(),p=(null==s?void 0:s.link)?(0,Q.KJ)(f.locale??"en",s.link):void 0,g=(null==n?void 0:n.link)?(0,Q.KJ)(f.locale??"en",n.link):void 0,b=(0,a.jsxs)(a.Fragment,{children:[!h&&(0,a.jsxs)("svg",{viewBox:"0 0 600 400","aria-hidden":"true",className:"pointer-events-none absolute",style:{right:-120,top:-80,width:600,opacity:.9},children:[(0,a.jsx)("defs",{children:(0,a.jsxs)("radialGradient",{id:"payments-og",cx:"0.3",cy:"0.3",children:[(0,a.jsx)("stop",{offset:"0",stopColor:"#b3bd8e",stopOpacity:"0.55"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#b3bd8e",stopOpacity:"0"})]})}),(0,a.jsx)("circle",{cx:"300",cy:"200",r:"180",fill:"url(#payments-og)"}),(0,a.jsx)("circle",{cx:"300",cy:"200",r:"120",fill:"none",stroke:"#5c6b3f",strokeWidth:"1.2",opacity:"0.5"}),(0,a.jsx)("circle",{cx:"300",cy:"200",r:"60",fill:"none",stroke:"#5c6b3f",strokeWidth:"1.2",opacity:"0.7"})]}),(0,a.jsxs)("div",{className:"relative z-10 max-w-[620px]",children:[(0,a.jsx)(Z.X3,{badge:l,title:r,description:i,className:"mb-7"}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-3",children:[p&&(0,a.jsxs)("a",{href:p,className:(0,Q.cn)("group inline-flex items-center gap-2 rounded-xl border border-transparent px-6 py-3 text-sm font-medium transition-colors focus-visible:outline-none",h?"bg-[#f7f1e3] text-[#1b1918] hover:bg-[#829262] hover:text-white focus-visible:border-[#f7f1e3]":"bg-[#5c6b3f] text-white hover:bg-[#4e5a34] focus-visible:border-[#1b1918]"),...(0,Q.OK)(p),children:[(null==s?void 0:s.text)??"Explore Payments",(0,a.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14","aria-hidden":"true",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"transition-transform duration-200 group-hover:translate-x-0.5",children:(0,a.jsx)("path",{d:"M2 7h10M8 3l4 4-4 4"})})]}),g&&(0,a.jsx)("a",{href:g,className:(0,Q.cn)("inline-flex items-center gap-2 rounded-xl border bg-transparent px-6 py-3 text-sm font-medium transition-colors focus-visible:outline-none",h?"border-[rgba(239,229,209,0.25)] text-[#efe5d1] hover:bg-[rgba(239,229,209,0.1)] hover:border-[rgba(239,229,209,0.4)] focus-visible:border-[#efe5d1]":"border-input text-[#1b1918] hover:bg-[#1b1918] hover:text-[#f7f1e3] hover:border-[#1b1918] focus-visible:border-[#1b1918]"),...(0,Q.OK)(g),children:(null==n?void 0:n.text)??"See sample flow"})]})]})]});return h?(0,a.jsxs)("div",{className:"dark-band relative w-full overflow-hidden",children:[h&&!!c&&(0,a.jsx)(to,{src:c,alt:u,placement:"inset",focu
21s:"center"}),(0,a.jsx)(Y.o,{className:(0,Q.cn)("relative",x),headerSpacing:"none",children:(0,a.jsx)("div",{className:"relative",children:b})})]}):(0,a.jsx)(Y.o,{className:x,headerSpacing:"none",children:(0,a.jsx)("div",{className:"relative -mx-4 bg-transparent py-4 px-4 overflow-x-clip sm:mx-0 sm:rounded-3xl sm:border sm:border-input sm:py-14 sm:px-14 sm:overflow-hidden",children:b})})}let tc={ios:{src:"/icons/app-store.svg",alt:"App Store",fallbackTop:"Download on the"},android:{src:"/icons/google-play.svg",alt:"Google Play",fallbackTop:"Get it on"}};function tu(e){let{data:t}=e,{badge:l,title:r,description:i,downloadButtons:s,appStore:d,googlePlay:c,className:u}=t,[m,x]=(0,o.useState)("unknown");(0,o.useEffect)(()=>{let e=(window.navigator.userAgent||"").toLowerCase(),t=/android/i.test(e),l=/iphone|ipad|ipod/i.test(e);/android|iphone|ipad|ipod|mobile/i.test(e)?t?x("android"):l?x("ios"):x("unknown"):x("desktop")},[]);let h=(0,o.useMemo)(()=>{let e=[];return Array.isArray(s)&&s.length>0&&s.forEach(t=>{(null==t?void 0:t.platform)&&t.href&&e.push({key:t.platform,topText:t.topText,bottomText:t.bottomText,config:t})}),e.length>0||(d&&e.push({key:"ios",topText:d.topLabel,bottomText:d.label,config:d}),c&&e.push({key:"android",topText:c.topLabel,bottomText:c.label,config:c})),e},[s,d,c]),f=(0,o.useMemo)(()=>"android"===m?h.filter(e=>"android"===e.key):"ios"===m?h.filter(e=>"ios"===e.key):h,[h,m]),p=f.length>0?f:h;return 0===p.length?null:(0,a.jsx)(Y.o,{className:u,headerSpacing:"none",children:(0,a.jsx)("div",{className:"rounded-3xl bg-card card-lift py-14 px-6 sm:px-12",children:(0,a.jsxs)("div",{className:"flex max-w-3xl flex-col items-start text-left",children:[(0,a.jsx)(eK,{badge:l,title:r,description:i,alignment:"left",centerContent:!1,className:"mb-10"}),(0,a.jsx)("div",{className:(0,Q.cn)("flex w-full flex-col items-start gap-4","sm:flex-row sm:justify-start"),children:p.map(e=>{let{key:t,topText:l,bottomText:r,config:i}=e,s=tc[t],o=(null==l?void 0:l.trim())||s.fallbackTop,d=(null==r?void 0:r.trim())||s.alt;return(0,a.jsx)(n.$,{variant:"outline",className:"h-auto w-full rounded-lg border-gray-900 bg-transparent pl-4 pr-10 py-2 hover:bg-transparent focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:border-[#5c6b3f] sm:w-auto",asChild:!0,children:(0,a.jsxs)("a",{href:i.href,title:i.title||d,"aria-label":i.ariaLabel||d,target:i.target,rel:i.rel,className:"flex w-full items-center justify-center gap-3",...(0,Q.OK)(i.href),children:[(0,a.jsx)("div",{className:"relative flex h-7 w-7 items-center justify-center",children:(0,a.jsx)(eP(),{src:s.src,alt:s.alt,fill:!0,sizes:"48px",className:"object-contain",priority:!1})}),(0,a.jsxs)("span",{className:"flex flex-col gap-0.5 text-left leading-tight",children:[(0,a.jsx)("span",{className:"text-[9px] font-semibold uppercase tracking-[0.18em] text-gray-500 leading-none",children:o}),(0,a.jsx)("span",{className:"text-lg font-semibold leading-tight text-gray-900",children:d})]})]})},t)})})]})})})}let tm=e=>{if(!e)return null;let t=e.match(/([^\d\s]*)\s*(\d[\d\s]*)/);if(!t)return null;let l=parseInt(t[2].replace(/\D/g,""),10);return Number.isFinite(l)?{currency:t[1]||"",amount:l}:null};function tx(e){let{data:t}=e,{badge:l,title:r,subtitle:i,headerHidden:d,freeTier:c,paidTiers:u,annualTag:m,discountBadge:x,monthlyLabel:f,annualLabel:p,annualSavingLabel:g}=t,b=Array.isArray(u)?u:[],[v,j]=(0,o.useState)("monthly");if(!c||!b.length)return null;let w=e=>{let{t,price:l}=e,r=l.split(/\s*\/\s*/),i=r[0]??l,s=r.length>1?"/ "+r.slice(1).join(" / "):"";return(0,a.jsxs)("div",{className:"space-y-2",children:[t.badge&&(0,a.jsx)(eV.E,{children:t.badge}),(0,a.jsx)("h3",{className:"text-lg font-semibold text-gray-900",children:(0,h.wR)(t.title)}),(0,a.jsxs)("p",{className:"flex items-baseline gap-2 text-primary",children:[(0,a.jsx)("span",{className:"text-2xl font-bold",children:i}),s&&(0,a.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:s})]})]})},y=e=>{let{bullets:t}=e;return(null==t?void 0:t.length)?(0,a.jsx)("ul",{className:"space-y-3 font-light text-[hsl(30,8%,40%)]",children:t.map((e,t)=>(0,a.jsxs)("li",{className:"flex items-start gap-3",children:[(0,a.jsx)(s.A,{className:"mt-1 h-4 w-4 flex-shrink-0 text-[#5c6b3f]",strokeWidth:2.5}),(0,a.jsx)("span",{className:"leading-relaxed",children:e})]},t))}):null},N=e=>{let{btn:t}=e;return(null==t?void 0:t.label)&&(null==t?void 0:t.href)?(0,a.jsx)("a",{href:t.href,className:(0,Q.cn)((0,n.r)({variant:"default",size:"lg"}),"w-full justify-center border border-transparent focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:border-[#5c6b3f]"),title:t.title??t.label,"aria-label":t.ariaLabel??t.label,...(0,Q.OK)(t.href),children:t.label}):null},k=(e,t)=>{var l,r;let i="free"===t,s=i?e.price??e.priceMonthly??e.priceAnnual??"":"annual"===v?e.priceAnnual??e.priceMonthly??"":e.priceMonthly??e.priceAnnual??"",n=i?null:(e=>{if("annual"!==v||!g)return null;let t=tm(e.priceMonthly),l=tm(e.priceAnnual);if(!t||!l)return null;let r=12*t.amount-l.amount;if(r<=0)return null;let a=l.currency||t.currency;return g.replace("{amount}",`${a}${r}`)})(e),o=e.cta,d=!!((null==o?void 0:o.title)||(null==o?void 0:o.description)||(null==o?void 0:o.button));return i?(0,a.jsxs)("div",{className:(0,Q.cn)("group grid w-full grid-cols-1 overflow-hidden rounded-3xl bg-card card-lift",d?"lg:grid-cols-[2fr_1fr]":"gap-6 p-8"),children:[(0,a.jsxs)("div",{className:(0,Q.cn)("space-y-6",d&&"p-8"),children:[(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)(w,{t:e,price:s}),(0,a.jsx)(y,{bullets:e.bullets})]}),e.description&&(0,a.jsx)("p",{className:"font-light leading-relaxed text-[hsl(30,8%,40%)]",children:e.description})]}),d&&(0,a.jsxs)("div",{className:"relative flex min-h-[300px] flex-col overflow-hidden bg-[#1c1610] lg:min-h-0",children:[(0,a.jsx)("img",{src:"/images/pricing/free-plan.webp",alt:"","aria-hidden":"true",loading:"lazy",className:"pointer-events-none absolute inset-0 h-full w-full object-cover object-center"}),(0,a.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to top, #1c1610 20%, rgba(28,22,16,0.88) 42%, rgba(28,22,16,0.25) 68%, transparent 100%)"}}),(0,a.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0",style:{background:"radial-gradient(38% 33% at 100% 100%, rgba(164,176,126,0.4) 0%, rgba(164,176,126,0.12) 42%, transparent 74%)"}}),(0,a.jsxs)("div",{className:"relative mt-auto flex flex-col p-6",children:[(null==o?void 0:o.title)&&(0,a.jsx)("h4",{className:"font-serif text-xl leading-tight text-[#f7f1e3]",children:o.title}),(null==o?void 0:o.description)&&(0,a.jsx)("p",{className:"mt-2 text-sm leading-snug text-[#f7f1e3]/60",children:o.description}),(null==o||null==(l=o.button)?void 0:l.label)&&(null==o||null==(r=o.button)?void 0:r.href)&&(0,a.jsxs)("a",{href:o.button.href,className:"group/cta mt-5 inline-flex w-fit items-center gap-2 rounded-lg bg-[#f7f1e3] px-4 py-2 text-sm font-medium text-[#1c1610] transition-colors hover:bg-[#efe6d2] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#a4b07e]",title:o.button.title??o.button.label,"aria-label":o.button.ariaLabel??o.button.label,...(0,Q.OK)(o.button.href),children:[(0,a.jsx)("span",{children:o.button.label}),(0,a.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12","aria-hidden":"true",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"transition-transform group-hover/cta:translate-x-0.5",children:(0,a.jsx)("path",{d:"M2 6h8M7 3l3 3-3 3"})})]})]})]})]},e.title):(0,a.jsxs)("div",{className:"group flex h-full flex-col rounded-3xl bg-card card-lift p-8",children:[(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)(w,{t:e,price:s}),n&&(0,a.jsx)("span",{className:"inline-flex w-fit items-center rounded-full bg-[#5c6b3f]/10 px-2.5 py-1 text-xs font-semibold text-[#404a2b]",children:n}),(0,a.jsx)(y,{bullets:e.bullets})]}),e.description&&(0,a.jsx)("p",{className:"font-light leading-relaxed text-[hsl(30,8%,40%)] mt-6",children:e.description}),(0,a.jsx)("div",{className:"mt-auto pt-6",children:(0,a.jsx)(N,{btn:null==o?void 0:o.button})})]},e.title)};return(0,a.jsx)(Y.o,{padding:"xl",headerSpacing:"none",className:(0,Q.cn)(d&&"pt-0 sm:pt-0 lg:pt-0"),children:(0,a.jsxs)("div",{className:(0,Q.cn)(!d&&"space-y-12"),children:[d?(0,a.jsx)("h2",{className:"sr-only",children:(0,h.TA)(r)}
21):(0,a.jsx)(Z.X3,{badge:l,title:r,description:i,className:"max-w-3xl"}),(0,a.jsxs)("div",{className:"space-y-6",id:"plans",children:[k(c,"free"),(0,a.jsx)(Z.Cc,{value:v,onValueChange:j,monthlyLabel:f??"",annualLabel:p??"",discountBadge:m??x??""}),(0,a.jsx)("div",{className:"grid gap-6 sm:grid-cols-2 xl:grid-cols-3",children:b.map(e=>k(e,"paid"))})]})]})})}var th=l(82921);let tf=e=>{let{status:t}=e;return"yes"===t?(0,a.jsx)(s.A,{className:"size-4 shrink-0 text-[#5c6b3f]",strokeWidth:2.4,"aria-hidden":"true"}):(0,a.jsx)(eZ.A,{className:"size-4 shrink-0 text-muted-foreground/50","aria-hidden":"true"})};function tp(e){var t,l,r;let{data:i}=e,{badge:s,title:d,subtitle:c,table:u}=i,m=null==u?void 0:u.head,x=Array.isArray(null==u?void 0:u.rows)?u.rows:[],h=(null==u?void 0:u.screenReaderLabels)??{},f=null==u?void 0:u.billing,p=(null==m||null==(t=m.plans)?void 0:t.length)??0,g=!!(m&&p>0),[b,v]=(0,o.useState)("monthly"),j=(0,o.useMemo)(()=>{if(!g)return{billingPlans:[],billingRowLabel:"",monthlyLabel:"",annualLabel:"",discountBadge:"",hasBillingRow:!1,hasBillingTabs:!1};let e=Array.isArray(null==f?void 0:f.plans)?f.plans:[],t=(null==f?void 0:f.rowLabel)??"",l=(null==f?void 0:f.monthlyLabel)??"",r=(null==f?void 0:f.annualLabel)??"",a=(null==f?void 0:f.discountBadge)??"",i=!!t&&e.length===p;return{billingPlans:e,billingRowLabel:t,monthlyLabel:l,annualLabel:r,discountBadge:a,hasBillingRow:i,hasBillingTabs:i&&(l||r)}},[f,g,p]);if(!g||0===x.length)return null;let{billingPlans:w,billingRowLabel:y,monthlyLabel:N,annualLabel:k,discountBadge:M,hasBillingRow:C,hasBillingTabs:S}=j,A=Array.from({length:p},(e,t)=>w[t]??{}),L=e=>"annual"===b?e.annual??e.monthly??"":e.monthly??e.annual??"",R=x.some(e=>"cta"===e.variant),E=e=>(0,a.jsxs)("tr",{className:"border-t border-input bg-background/70",children:[(0,a.jsx)("th",{scope:"row",className:"whitespace-pre-wrap px-4 py-4 text-left text-sm font-bold text-foreground",children:y}),A.map((e,t)=>(0,a.jsx)("td",{className:"px-4 py-4 text-left text-sm font-semibold text-foreground sm:text-center",children:L(e)},t))]},e),P=[];return x.forEach((e,t)=>{let l,r;"cta"===e.variant&&C&&P.push(E(`billing-${t}`)),P.push((l=Array.from({length:p},(t,l)=>(Array.isArray(e.cells)?e.cells[l]:null)??{}),r="cta"===e.variant,(0,a.jsxs)("tr",{className:(0,Q.cn)("border-t border-input",0===t&&"border-t-0",r&&"bg-card"),children:[(0,a.jsx)("th",{scope:"row",className:(0,Q.cn)("whitespace-pre-wrap px-4 py-4 text-left text-sm font-bold text-foreground",r&&"text-foreground"),children:e.feature}),l.map((e,t)=>{let l,i,s=(null==e?void 0:e.tone)==="muted"?"text-muted-foreground":"text-foreground";return(0,a.jsx)("td",{className:(0,Q.cn)("px-4 py-4 align-top text-left text-sm sm:text-center",s,r&&"align-middle",r&&t>0&&"text-center"),children:(l=(null==e?void 0:e.tone)==="muted"?"text-muted-foreground":"text-foreground",(null==(i=null==e?void 0:e.button)?void 0:i.label)&&(null==i?void 0:i.href)?(0,a.jsx)("a",{href:i.href,className:(0,Q.cn)((0,n.r)({variant:"default",size:"lg"}),"w-full justify-center border border-transparent focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:border-[#5c6b3f]"),title:i.title??i.label,"aria-label":i.ariaLabel??i.label,...(0,Q.OK)(i.href),children:i.label}):(null==e?void 0:e.status)?(0,a.jsxs)("div",{className:"flex flex-col items-center gap-2 text-center",children:[(0,a.jsx)(tf,{status:e.status}),!e.text&&(h.available||h.notAvailable)&&(0,a.jsx)("span",{className:"sr-only",children:"yes"===e.status?h.available:h.notAvailable}),e.text&&(0,a.jsx)("span",{className:(0,Q.cn)("leading-snug",l),children:e.text})]}):(0,a.jsx)("span",{className:(0,Q.cn)("leading-snug",l),children:(null==e?void 0:e.text)??""}))},t)})]},`row-${t}`)))}),C&&!R&&P.push(E("billing-final")),(0,a.jsx)(Y.o,{padding:"xl",headerSpacing:"none",children:(0,a.jsxs)("div",{className:"space-y-8",children:[(0,a.jsx)(Z.X3,{badge:s,title:d,description:c}),S&&(0,a.jsx)(Z.Cc,{value:b,onValueChange:v,monthlyLabel:N,annualLabel:k,discountBadge:M}),(0,a.jsx)("div",{className:"lg:hidden",children:(0,a.jsx)(th.nD,{type:"single",collapsible:!0,className:"w-full",children:null==m||null==(l=m.plans)?void 0:l.map((e,t)=>{let l=C?L(A[t]??{}):"";return(0,a.jsxs)(th.As,{value:`plan-${t}`,children:[(0,a.jsx)(th.$m,{className:"text-left",children:(0,a.jsxs)("div",{className:"flex flex-col items-start",children:[(0,a.jsx)("span",{className:"text-base font-semibold text-foreground",children:e.label}),l&&(0,a.jsx)("span",{className:"text-sm text-muted-foreground",children:l})]})}),(0,a.jsx)(th.ub,{className:"space-y-4 py-4",children:x.map((e,l)=>{let r=Array.isArray(e.cells)?e.cells[t]??{}:{},i=(null==r?void 0:r.tone)==="muted"?"text-muted-foreground":"text-foreground",s=null==r?void 0:r.button,o=!!((null==s?void 0:s.label)&&(null==s?void 0:s.href));return(0,a.jsx)("div",{className:(0,Q.cn)("space-y-3 py-3","with-divider"===e.variant&&"pt-5"),children:o?(0,a.jsx)("a",{href:s.href,className:(0,Q.cn)((0,n.r)({variant:"default",size:"lg"}),"w-full justify-center border border-transparent focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:border-[#5c6b3f]"),title:s.title??s.label,"aria-label":s.ariaLabel??s.label,...(0,Q.OK)(s.href),children:s.label}):(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,a.jsx)("p",{className:"max-w-[60%] text-sm font-bold text-foreground",children:e.feature}),(0,a.jsx)("div",{className:"flex min-w-[40%] justify-end text-right",children:(null==r?void 0:r.status)?(0,a.jsxs)("div",{className:"flex items-center justify-end gap-2 text-sm",children:[(0,a.jsx)(tf,{status:r.status}),r.text?(0,a.jsx)("span",{className:i,children:r.text}):(0,a.jsx)("span",{className:"sr-only",children:"yes"===r.status?h.available:h.notAvailable})]}):(0,a.jsx)("p",{className:(0,Q.cn)("text-sm",i),children:(null==r?void 0:r.text)??""})})]})},`${t}-${l}`)})})]},t)})})}),(0,a.jsx)("div",{className:"hidden lg:block",children:(0,a.jsx)("div",{className:"overflow-hidden rounded-2xl border border-input bg-transparent",children:(0,a.jsx)("div",{className:"w-full overflow-x-auto outline-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-[#5c6b3f]",role:"region","aria-label":(null==u?void 0:u.caption)||void 0,tabIndex:0,children:(0,a.jsxs)("table",{className:"w-full min-w-[960px] table-fixed border-collapse text-sm",children:[(null==u?void 0:u.caption)&&(0,a.jsx)("caption",{className:"sr-only",children:u.caption}),(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"border-b border-input bg-card",children:[(0,a.jsx)("th",{scope:"col",className:"px-4 py-4 text-left text-xs font-semibold uppercase tracking-wide text-gray-700",children:(null==m?void 0:m.featureLabel)??""}),null==m||null==(r=m.plans)?void 0:r.map((e,t)=>(0,a.jsx)("th",{scope:"col",className:"px-4 py-4 text-left text-xs font-semibold uppercase tracking-wide text-gray-700 sm:text-center",children:e.label},t))]})}),(0,a.jsx)("tbody",{children:P})]})})})}),(null==u?void 0:u.mobileHint)&&(0,a.jsx)("p",{className:"text-center text-xs text-gray-500",children:u.mobileHint})]})})}var tg=l(2284),tb=l(3267);let tv="pk_26efe0fc5d62df822a430813cf0e338b",tj="e1bc57ab-2bd7-45c5-9f3f-18b451939bab",tw="c8c392aa-306c-41fc-99f8-71b603351eb9",ty=tv?new tg._(tv,{baseUrl:"https://api-dev-mira_form.idealogic.dev",timeout:5e3}):null;async function tN(e){if(!ty||!tj||!tw)throw Error("Newsletter form configuration is missing");let{formData:t,errors:l}=ty.prepareFormData({resourceId:tj,formId:tw,content:{email:e}});if(!t||l&&l.length>0)throw Error((null==l?void 0:l.join(" "))||"Invalid newsletter form data");let r=await ty.sendForm(t);if(!r.success){var a;throw Error((null==(a=r.errors)?void 0:a.join(" "))||"Request failed")}}function tk(e){let{placeholder:t,buttonText:l,successMessage:r,errorMessage:i}=e,n=(0,o.useId)(),d=`${n}-error`,[c,u]=(0,o.useState)(""),[m,x]=(0,o.useState)("idle"),h="loading"===m,f="error"===m,p="success"===m,g=async e=>{e.preventDefault();let t=c.trim();if(t&&!h){x("loading");try{await tN(t),u(""),x("success")}catch(e){console.error("Failed to submit newsletter form",e),x("error")}}};return(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{role:"status","aria-live":"polite",children:p?(0,a.jsxs)("p",{className:"flex min-h-[50px] max-w-[42ch] items-center gap-3 text-[15px] leading-snug text-[#efe5d1]",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-[#829262]/20 ring-1 ring-[#9fb27a]/80",children:(0,a.jsx)(s.A,{className:"size-4 text-[#9fb27a]",strokeWidth:2.4})}),r]}):null}),p?null:(0,a.jsxs)("form",{onSubmit:g,"aria-busy":h,className:"w-full max-w-[26rem]",children:[(0,a.jsx)("label",{htmlFor:n,className:"sr-only",children:t}),(0,a.jsxs)("div",{className:(0,Q.cn)("flex h-[50px] items-center gap-2 rounded-xl border bg-[#f7f1e3] py-[5px] pl-5 pr-[5px] transition-colors focus-within:border-[#5c6b3f]",f?"border-[#e0a189]":"border-transparent"),children:[(0,a.jsx)("input",{id:n,type:"email",name:"email",autoComplete:"email",inputMode:"email",spellCheck:!1,required:!0,value:c,onChange:e=>{u(e.target.value),f&&x("idle")},readOnly:h,placeholder:t,"aria-invalid":f||void 0,"aria-describedby":f?d:void 0,className:"h-full min-w-0 flex-1 bg-transparent text-base font-medium text-[#1b1918] placeholder:font-normal placeholder:text-[#7a6c58] focus:outline-none sm:text-[15px] [&:-webkit-autofill]:shadow-[inset_0_0_0_1000px_#f7f1e3] [&:-webkit-autofill]:[-webkit-text-fill-color:#1b1918]"}),(0,a.jsx)("button",{type:"submit","aria-label":l,"aria-disabled":h||void 0,className:"group/submit flex size-10 shrink-0 items-center justify-center rounded-lg bg-[#1b1918] text-[#f7f1e3] transition-colors duration-200 hover:bg-[#829262] hover:text-white focus-visible:bg-[#829262] focus-visible:text-white focus-visible:outline-none aria-disabled:cursor-wait",children:h?(0,a.jsx)("span",{"aria-hidden":"true",className:"size-4 animate-spin rounded-full border-2 border-current border-t-transparent"}):(0,a.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14","aria-hidden":"true",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"transition-transform duration-200 group-hover/submit:translate-x-0.5",children:(0,a.jsx)("path",{d:"M2 7h10M8 3l4 4-4 4"})})})]}),f?(0,a.jsx)("p",{id:d,role:"alert",className:"mt-3 text-[13px] leading-snug text-[#e0a189]",children:i}):null]})]})}function tM(e){let{data:t}
21=e,l={title:t.title,description:t.description,image:t.image,imageAlt:t.imageAlt};return(0,a.jsx)(Y.o,{className:(0,Q.cn)("pt-0 sm:pt-0 lg:pt-0",t.className),headerSpacing:"none",reveal:!1,children:(0,a.jsx)(tb.F,{layout:"wide",className:"rounded-3xl",banner:l,action:(0,a.jsx)(tk,{placeholder:t.placeholder||"Enter your email",buttonText:t.buttonText||"Subscribe",successMessage:t.successMessage||"Thank you for subscribing!",errorMessage:t.errorMessage||"Something went wrong. Please try again later."})})})}let tC=(0,o.forwardRef)((e,t)=>{let{buttonLabel:l="Choose File",dropMessage:r="Drag & drop file, or click to select",helperText:i,className:s,surfaceClassName:n,id:d,multiple:c,onChange:u,...m}=e,x=d??"file-dropzone-input",[h,f]=(0,o.useState)(!1),p=(0,o.useCallback)(e=>{e.preventDefault(),f(!0)},[]),g=(0,o.useCallback)(e=>{e.preventDefault(),f(!1)},[]),b=(0,o.useCallback)(e=>{if(e.preventDefault(),f(!1),u){var t;let l=null==(t=e.dataTransfer)?void 0:t.files;l&&l.length>0&&u({...e,target:{files:l},currentTarget:{files:l}})}},[u]),v=(0,o.useCallback)(e=>{u&&u(e)},[u]);return(0,a.jsxs)("div",{className:(0,Q.cn)("w-full",s),children:[(0,a.jsx)("input",{ref:t,id:x,type:"file",className:"hidden",multiple:c,onChange:v,...m}),(0,a.jsx)("div",{className:(0,Q.cn)("flex h-full w-full items-center justify-center rounded-3xl border border-input p-6 text-center transition",n,h?"bg-[hsl(48,25%,96%)]":""),children:(0,a.jsxs)("label",{htmlFor:x,className:"flex w-full cursor-pointer flex-col items-center justify-center gap-4",onDragOver:p,onDragLeave:g,onDrop:b,children:[(0,a.jsx)("div",{className:"flex h-12 w-12 items-center justify-center rounded-full border border-input text-input",children:(0,a.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none","aria-hidden":"true",children:[(0,a.jsx)("line",{x1:"11",y1:"3",x2:"11",y2:"15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),(0,a.jsx)("polyline",{points:"6,8 11,3 16,8",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("line",{x1:"5",y1:"18",x2:"17",y2:"18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}),(0,a.jsx)("p",{className:"text-sm text-gray-600",children:r}),(0,a.jsx)("span",{className:"inline-flex h-8 min-w-[160px] items-center justify-center rounded-md border border-input bg-transparent px-4 text-sm font-medium text-gray-700",children:l})]})}),i&&(0,a.jsx)("p",{className:"mt-2 text-xs text-gray-500",children:i})]})});tC.displayName="FileDropzone";var tS=l(18739),tA=l(63212),tL=l.n(tA),tR=l(21403),tE=l.n(tR),tP=l(21962),t_=l.n(tP),tF=l(14090),tz=l.n(tF);[tL(),tE(),t_(),tz()].map(e=>e.variable).join(" ");let tT=[{id:"caveat",label:"Caveat",fontFamily:tL().style.fontFamily},{id:"marck-script",label:"Marck Script",fontFamily:tE().style.fontFamily},{id:"bad-script",label:"Bad Script",fontFamily:t_().style.fontFamily},{id:"pacifico",label:"Pacifico",fontFamily:tz().style.fontFamily}],t$=tT[0].id;function tI(e,t){let l=!/[^ -ÉÌ-ͯÐ-Ô¯â-â¯\s]/u.test(e);return l?{fontFamily:(tT.find(e=>e.id===t)??tT[0]).fontFamily,italic:!1,supported:l}:{fontFamily:'system-ui, "Segoe UI", Roboto, sans-serif',italic:!0,supported:l}}async function tq(e,t,l){let r=e.trim();if(!r||"u"<typeof document)return null;let a=window.devicePixelRatio||1,i=(null==l?void 0:l.italic)?"italic ":"";if(document.fonts){try{await document.fonts.load(`${i}96px ${t}`,r)}catch{}try{await document.fonts.ready}catch{}}let s=document.createElement("canvas"),n=s.getContext("2d");if(!n)return null;n.font=`${i}96px ${t}`;let o=n.measureText(r),d=96;o.width>760&&(d=Math.max(24,Math.floor(72960/o.width)),n.font=`${i}${d}px ${t}`,o=n.measureText(r));let c=o.actualBoundingBoxAscent||.8*d,u=o.actualBoundingBoxDescent||.3*d,m=Math.ceil(o.width)+48,x=Math.ceil(c+u)+48;s.width=Math.ceil(m*a),s.height=Math.ceil(x*a),n.scale(a,a),n.font=`${i}${d}px ${t}`,n.fillStyle="#000000",n.textBaseline="alphabetic",n.fillText(r,24,24+c);let h=s.toDataURL("image/png"),f=await new Promise(e=>s.toBlob(t=>e(t),"image/png"));return f?{blob:f,dataUrl:h}:null}var tO=l(83529),tD=l(23837);let tH=o.forwardRef((e,t)=>
21{let{className:l,containerClassName:r,disabled:i,...s}=e;return(0,a.jsx)(tD.wE,{ref:t,containerClassName:(0,Q.cn)("flex items-center gap-1",i&&"opacity-50 cursor-not-allowed",r),className:(0,Q.cn)("disabled:cursor-not-allowed",l),disabled:i,...s})});tH.displayName="InputOTP";let tV=o.forwardRef((e,t)=>{let{className:l,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,Q.cn)("flex items-center",l),...r})});tV.displayName="InputOTPGroup";let tW=o.forwardRef((e,t)=>{let{index:l,className:r,...i}=e,{char:s,hasFakeCaret:n,isActive:d}=o.useContext(tD.dK).slots[l];return(0,a.jsxs)("div",{ref:t,className:(0,Q.cn)("relative flex h-8 w-8 sm:w-10 items-center justify-center border border-input bg-white text-sm transition-all first:rounded-l-md last:rounded-r-md",d&&"z-10 border-[#5c6b3f]",r),...i,children:[s,n&&(0,a.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:(0,a.jsx)("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});tW.displayName="InputOTPSlot";let tB=o.forwardRef((e,t)=>{let{className:l,...r}=e;return(0,a.jsx)("div",{ref:t,role:"separator",className:(0,Q.cn)("mx-0 sm:mx-2 h-0.5 w-2 sm:w-4 rounded-full bg-gray-300",l),...r})});tB.displayName="InputOTPSeparator";var tK=l(26156);function tU(e){let t,{data:l}=e,r=(0,o.useRef)(null),d=(0,o.useRef)(null),c=(0,o.useRef)(null),u=(0,m.useRouter)(),{t:x}=(0,i.Bd)("pages/home"),{t:f}=(0,i.Bd)("forms/SignatureForm"),{toast:p}=(0,tK.d)(),[g,b]=(0,o.useState)("details"),[v,j]=(0,o.useState)({email:""}),[w,y]=(0,o.useState)(null),[N,k]=(0,o.useState)(""),[M,C]=(0,o.useState)(""),[S,A]=(0,o.useState)(!1),[L,R]=(0,o.useState)(!1),[E,P]=(0,o.useState)(0),[_,F]=(0,o.useState)(!1),z=(0,Q.KJ)(u.locale),T={email:f("email.label"),emailPlaceholder:f("email.placeholder"),documentFile:f("documentFile.label"),uploadButton:f("documentFile.button"),uploadHint:f("documentFile.helper"),dropMessage:f("documentFile.dropMessage"),removeFile:f("documentFile.remove"),submit:f("submit"),verificationCode:f("verification.code.label"),verificationHelp:f("verification.code.help"),verificationSubmit:f("verification.submit"),resendLabel:f("verification.resend.label"),resendSending:f("verification.resend.sending")},$={info:f("verification.message",{email:v.email||f("verification.emailFallback")}),change:f("verification.changeEmail"),sentTitle:f("verification.sentTitle"),sentDescription:f("verification.sentDescription"),loginError:f("errors.login"),uploadError:f("errors.upload"),codeRequired:f("errors.codeRequired"),successTitle:f("success.title"),successDescription:f("success.description")},I=f("errors.fileRequired"),q=f("errors.fileMissing"),O=f("errors.emailRequired"),D=l.consentHtml??(0,a.jsxs)("span",{children:[f("consent.prefix")," ",(0,a.jsx)(e6(),{className:"underline",href:"/privacy",children:f("consent.privacy")}),","," ",(0,a.jsx)(e6(),{className:"underline",href:"/cookies",children:f("consent.cookies")})," ",f("consent.and")," ",(0,a.jsx)(e6(),{className:"underline",href:"/terms",children:f("consent.terms")}),"."]}),H="https://api.chaindoc.io/auth/login?admin=false",V=(0,o.useCallback)(()=>{b("details"),j({email:""}),y(null),k(""),C(""),A(!1),R(!1),c.current&&(c.current.value="")},[]),W=(0,o.useCallback)(()=>{P(60),null!==d.current&&window.clearInterval(d.current),d.current=window.setInterval(()=>{P(e=>e<=1?(null!==d.current&&(window.clearInterval(d.current),d.current=null),0):e-1)},1e3)},[]);(0,o.useEffect)(()=>{if("verification"===g){let e=window.setTimeout(()=>{var e;null==(e=r.current)||e.focus({preventScroll:!0})},0);return()=>window.clearTimeout(e)}},[g]),(0,o.useEffect)(()=>("verification"===g?W():(P(0),null!==d.current&&(window.clearInterval(d.current),d.current=null)),()=>{null!==d.current&&(window.clearInterval(d.current),d.current=null)}),[g,W]),(0,o.useEffect)(()=>()=>{null!==d.current&&(window.clearInterval(d.current),d.current=null)},[]);let B=async()=>{if(v.email&&!(E>0)&&!_&&!S){F(!0);try{let e=await fetch(H,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:v.email}),credentials:"include"});if(!e.ok)throw Error(await K(e)||$.loginError);p({title:$.sentTitle,description:$.sentDescription,duration:2500}),W()}catch(e){p({title:e instanceof Error?e.message:$.loginError,variant:"destructive",duration:2500})}finally{F(!1)}}},K=async e=>{try{var t,l;let r=await e.json(),a=(null==r?void 0:r.message)??(null==r?void 0:r.error)??(null==r?void 0:r.detail)??(null==r||null==(l=r.errors)||null==(t=l.join)?void 0:t.call(l," "));return"string"==typeof a&&a.trim()?a:void 0}catch{return}},U=(0,o.useCallback)(()=>{V()},[V]),J=async e=>{if(e.preventDefault(),!v.email)return void p({title:O,variant:"destructive",duration:2500});if("details"===g){if(!w){R(!0),p({title:I,variant:"destructive",duration:2500});return}A(!0);try{let e=await fetch(H,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:v.email}),credentials:"include"});if(!e.ok)throw Error(await K(e)||$.loginError);p({title:$.sentTitle,description:$.sentDescription,duration:2500}),b("verification")}catch(e){p({title:e instanceof Error?e.message:$.loginError,variant:"destructive",duration:2500})}finally{A(!1)}return}if(!M.trim())return void p({title:$.codeRequired,variant:"destructive",duration:2500});if(!w){R(!0),p({title:q,variant:"destructive",duration:2500}),b("details");return}A(!0);try{let e=new FormData;e.append("name",w.name.replace(/\.[^./\\]+$/,"").trim()||w.name),e.a
21ppend("description",""),e.append("email",v.email),e.append("code",M.trim()),e.append("media",w);let t=await fetch("https://api.chaindoc.io/documents/register-and-create",{method:"POST",body:e,credentials:"include"});if(!t.ok)throw Error(await K(t)||$.uploadError);p({title:$.successTitle,description:$.successDescription,duration:2500}),U(),setTimeout(()=>void u.push(z),1500)}catch(e){p({title:e instanceof Error?e.message:$.uploadError,variant:"destructive",duration:2500})}finally{A(!1)}},X="mb-2 block text-sm text-[hsl(30,8%,40%)]",G=l.formTitle??f("formTitle",{defaultValue:x("sections.signature.formTitle",{defaultValue:"Contact Form"})}),{badge:ee,description:et,checklist:el}=l;return(0,a.jsx)("div",{className:"w-full bg-background",children:(0,a.jsx)(Y.o,{headerSpacing:"none",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_1.25fr] gap-14 items-start",children:[(0,a.jsxs)("div",{className:"lg:sticky lg:top-24 lg:self-start flex flex-col gap-0",children:[(0,a.jsx)(Z.X3,{badge:ee,title:l.title,description:et}),el&&el.length>0&&(0,a.jsx)("ul",{className:"mt-8 space-y-3",children:el.map((e,t)=>(0,a.jsxs)("li",{className:"flex items-start gap-2.5",children:[(0,a.jsx)(s.A,{className:"mt-1 size-4 shrink-0 text-muted-foreground",strokeWidth:2.4,"aria-hidden":"true"}),(0,a.jsx)("span",{className:"text-[15px] font-light leading-relaxed text-muted-foreground",children:e})]},t))})]}),(0,a.jsxs)("div",{className:"relative lg:mt-[68px]",children:[(0,a.jsxs)("div",{"aria-hidden":"true",className:"pointer-events-none absolute -top-[58px] left-2 z-10 hidden select-none lg:block",children:[(0,a.jsx)("p",{className:"whitespace-nowrap text-2xl leading-none text-[#5c6b3f]",style:{fontFamily:tT[0].fontFamily,transform:"rotate(-5.5deg)",transformOrigin:"0 100%"},children:(0,h.wR)(G)}),(0,a.jsx)("span",{className:"ml-[86px] mt-1 block h-[56px] w-[56px] bg-[#5c6b3f]",style:{maskImage:"url(/images/arrows/hairline/hook-down.svg)",maskRepeat:"no-repeat",maskSize:"contain",WebkitMaskImage:"url(/images/arrows/hairline/hook-down.svg)",WebkitMaskRepeat:"no-repeat",WebkitMaskSize:"contain",transform:"rotate(9deg)"}})]}),(0,a.jsx)("div",{className:"card-lift overflow-hidden rounded-3xl bg-card p-6 sm:p-8 lg:p-10",children:(0,a.jsxs)(a.Fragment,{children:[!1,(0,a.jsxs)("form",{onSubmit:J,className:"flex flex-1 flex-col space-y-4 text-left","aria-label":(0,h.wR)(G),"aria-busy":S,children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"email",className:X,children:T.email}),(0,a.jsx)(tO.p,{id:"email",type:"email",name:"email",placeholder:T.emailPlaceholder,required:!0,className:(0,Q.cn)(tS.N,"focus:border-[#5c6b3f]"),value:v.email,onChange:e=>j(t=>({...t,email:e.target.value})),disabled:S||"verification"===g})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:X,children:T.documentFile}),(0,a.jsx)(tC,{ref:c,id:"documentFile",name:"documentFile",buttonLabel:T.uploadButton,dropMessage:T.dropMessage,helperText:T.uploadHint,onChange:e=>{var t;let l=(null==(t=e.target.files)?void 0:t[0])??null;y(l),k((null==l?void 0:l.name)||""),l&&R(!1)},surfaceClassName:tS.N,className:(0,Q.cn)(S&&"pointer-events-none opacity-80"),disabled:S}),N&&(0,a.jsxs)("div",{className:"mt-2 flex items-center text-sm text-muted-foreground",children:[(0,a.jsx)("span",{className:"truncate",title:N,children:N}),(0,a.jsx)("button",{type:"button",onClick:()=>{c.current&&(c.current.value=""),y(null),k(""),R(!1)},className:"ml-2 inline-flex items-center justify-center text-muted-foreground transition hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-label":T.removeFile,disabled:S,children:(0,a.jsx)(eZ.A,{className:"h-4 w-4"})})]}),L&&(0,a.jsx)("p",{className:"mt-2 text-sm text-destructive",children:I})]}),"verification"===g&&(0,a.jsxs)("div",{className:"rounded-md border border-input bg-muted/40 p-4 text-sm text-muted-foreground",children:[(0,a.jsx)("p",{children:$.info}),(0,a.jsx)("button",{type:"button",className:"mt-2 inline-flex text-sm font-medium text-muted-foreground hover:underline",onClick:()=>{b("details"),C(""),R(!1)},disabled:S,children:$.change})]}),"verification"===g&&(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("label",{htmlFor:"verificationCode",className:X,children:T.verificationCode}),(0,a.jsxs)("div",{className:"flex flex-wrap justify-between gap-3",children:[(0,a.jsxs)(tH,{ref:r,id:"verificationCode",name:"verificationCode",maxLength:6,value:M,onChange:e=>C(e.replace(/[^0-9]/g,"").slice(0,6)),inputMode:"numeric",pattern:"^[0-9]*$","aria-label":T.verificationCode,containerClassName:"justify-start gap-4",disabled:S,children:[(0,a.jsxs)(tV,{className:"gap-2",children:[(0,a.jsx)(tW,{index:0,className:tS.N}),(0,a.jsx)(tW,{index:1,className:tS.N}),(0,a.jsx)(tW,{index:2,className:tS.N})]}),(0,a.jsx)(tB,{className:"px-3"}),(0,a.jsxs)(tV,{className:"gap-2",children:[(0,a.jsx)(tW,{index:3,className:tS.N}),(0,a.jsx)(tW,{index:4,className:tS.N}),(0,a.jsx)(tW,{index:5,className:tS.N})]})]}),(0,a.jsxs)("button",{type:"button",onClick:B,disabled:E>0||_||S,className:(0,Q.cn)("inline-flex h-9 items-center justify-center rounded-md border border-input px-3 text-sm font-medium text-foreground transition-colors","hover:bg-muted/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:border-border disabled:bg-transparent disabled:text-muted-foreground disabled:opacity-80"),children:[_?T.resendSending:T.resendLabel,E>0&&!_&&(0,a.jsx)("span",{className:"ml-2 text-xs font-normal text-muted-foreground",children:(t=Math.floor(E/60),`${String(t).padStart(2,"0")}
21:${String(E%60).padStart(2,"0")}`)})]})]}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:T.verificationHelp})]}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground leading-relaxed [&_a]:underline [&_a]:underline-offset-2 [&_a:focus-visible]:text-orange-500 [&_a:focus-visible]:outline-none",children:D}),(0,a.jsx)("div",{className:"pt-4 pb-2",children:(0,a.jsx)("button",{type:"submit",className:(0,Q.cn)((0,n.r)({variant:"default"}),"border border-transparent focus-visible:ring-0 focus-visible:border-[#5c6b3f]",S&&"opacity-90 cursor-wait"),disabled:S,children:S?(0,a.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,a.jsx)("span",{className:"inline-block h-4 w-4 animate-spin rounded-full border-2 border-white/60 border-t-white"}),"verification"===g?T.verificationSubmit:T.submit]}):"verification"===g?T.verificationSubmit:T.submit})})]})]})})]})]})})})}function tJ(e){let{icon:t}=e;return"sig"===t?(0,a.jsx)(_.A,{size:20,strokeWidth:1.7,"aria-hidden":"true"}):"kyc"===t?(0,a.jsx)(ef.A,{size:20,strokeWidth:1.7,"aria-hidden":"true"}):(0,a.jsx)(ex.A,{size:20,strokeWidth:1.7,"aria-hidden":"true"})}function tX(e){let{steps:t}=e;return(0,a.jsx)("div",{className:"flex items-start",children:t.map((e,l)=>(0,a.jsxs)(o.Fragment,{children:[(0,a.jsxs)("div",{className:"flex flex-col items-center gap-2 shrink-0 w-11",children:[(0,a.jsx)("div",{className:"w-11 h-11 rounded-full flex items-center justify-center text-[#5c6b3f] bg-[hsl(48,25%,92%)]",style:{border:"1px solid #5c6b3f"},"aria-hidden":"true",children:(0,a.jsx)(tJ,{icon:e.icon})}),(0,a.jsx)("span",{className:"text-xs font-semibold text-gray-800 whitespace-nowrap",children:e.label})]}),l<t.length-1&&(0,a.jsx)("div",{className:"flex items-center flex-1 h-11 px-3","aria-hidden":"true",children:(0,a.jsx)("div",{className:"flex-1",style:{borderTop:"1px solid #5c6b3f",opacity:.6}})})]},e.label))})}function tG(e){var t,l,r;let{data:i}=e,s=(0,m.useRouter)(),n=(0,o.useMemo)(()=>(0,x.I)(i.description,s.locale??"en"),[i.description,s.locale]);if(!i.title&&!i.subtitle&&!n)return null;let d=null==(l=i.link)||null==(t=l.label)?void 0:t.trim(),c=(null==(r=i.link)?void 0:r.href)?(0,Q.KJ)(s.locale??"en",i.link.href):void 0,u=Array.isArray(i.flow)?i.flow:null;return(0,a.jsx)(Y.o,{headerSpacing:"none",children:(0,a.jsxs)("div",{className:"grid w-full gap-16 lg:grid-cols-2 lg:items-start",children:[(0,a.jsxs)("div",{className:"space-y-6 text-left lg:sticky lg:top-24 lg:self-start",children:[i.title?(0,a.jsx)("div",{className:"inline-flex items-center",children:(0,a.jsx)("span",{className:"text-xs font-medium tracking-[0.14em] uppercase text-muted-foreground",children:(0,h.TA)(i.title)})}):null,i.subtitle?(0,a.jsx)(eW.C,{level:2,size:"lg",className:"text-gray-900",children:i.subtitle}):null,i.subtitleExtra?(0,a.jsx)(eB.K,{maxWidth:"none",children:i.subtitleExtra}):null]}),i.items&&i.items.length>0?(0,a.jsx)("div",{className:"flex flex-col gap-4",children:i.items.map((e,t)=>(0,a.jsx)(tt.Zp,{className:"rounded-3xl bg-card",children:(0,a.jsxs)(tt.Wu,{className:"p-8 md:p-10",children:[(0,a.jsx)("h3",{className:"mb-3 text-lg font-semibold text-gray-900",children:(0,h.wR)(e.title)}),(0,a.jsx)("div",{className:"text-base font-light leading-relaxed text-[hsl(30,8%,40%)] [&_a]:underline [&_a]:decoration-[0.5px] [&_a]:transition-colors [&_a:hover]:text-orange-500 [&_a:focus-visible]:text-orange-500 [&_a:focus-visible]:outline-none [&_strong]:font-semibold [&_b]:font-semibold [&_p:last-child]:mb-0",dangerouslySetInnerHTML:{__html:(0,x.I)(e.description,s.locale??"en")}})]})},t))}):n?(0,a.jsx)(tt.Zp,{className:"rounded-3xl bg-card",children:(0,a.jsxs)(tt.Wu,{className:"p-8 md:p-10 flex flex-col gap-6",children:[(0,a.jsx)("div",{className:"text-base font-light leading-relaxed text-[hsl(30,8%,40%)] [&_a]:underline [&_a]:decoration-[0.5px] [&_a]:transition-colors [&_a:hover]:text-orange-500 [&_a:focus-visible]:text-orange-500 [&_a:focus-visible]:outline-none [&_strong]:font-semibold [&_b]:font-semibold [&_p:last-child]:mb-0",dangerouslySetInnerHTML:{__html:n}}),u&&u.length>0?(0,a.jsx)(tX,{steps:u}):null,d&&c?(0,a.jsxs)("a",{href:c,className:"inline-flex items-center gap-2 text-sm font-semibold text-gray-900 focus-visible:outline-none",...(0,Q.OK)(c),children:[(0,a.jsx)("span",{className:"ulink-orange",children:d}),(0,a.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 11 11","aria-hidden":"true",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:"M2 9L9 2M9 2H3.5M9 2V7.5"})})]}):null]})}):null]})})}function tY(e){let{icon:t}=e;return"sign"===t?(0,a.jsx)(_.A,{size:18,strokeWidth:1.6,"aria-hidden":"true"}):"kyc"===t?(0,a.jsx)(ef.A,{size:18,strokeWidth:1.6,"aria-hidden":"true"}):(0,a.jsx)(ex.A,{size:18,strokeWidth:1.6,"aria-hidden":"true"})}function tZ(e){let{meta:t}=e,[l,...r]=t.split("/"),i=r.join("/").trim();return(0,a.jsxs)("span",{className:"flex items-center gap-2.5",children:[(0,a.jsx)("span",{children:l.trim()}),i?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"inline-block h-1.5 w-1.5 shrink-0 rounded-full bg-[#5c6b3f]","aria-hidden":"true"}),(0,a.jsx)("span",{children:i})]}):null]})}function tQ(e){let{data:t}=e,l=(0,m.useRouter)().locale??"en",r=Array.isArray(t.columns)?t.columns:[];return t.title||0!==r.length?(0,a.jsxs)(Y.o,{headerSpacing:"lg",children:[(0,a.jsxs)("div",{className:"max-w-3xl space-y-5",children:[t.eyebrow?(0,a.jsx)("div",{className:"inline-flex items-center",children:(0,a.jsx)("span",{className:"text-xs font-medium uppercase tracking-[0.14em] text-muted-foreground",children:t.eyebrow})}):null,t.title?(0,a.jsx)(eW.C,{level:2,size:"lg",className:"text-gray-900",children:t.title}):null,t.lede?(0,a.jsx)("p",{className:"lede max-w-2xl",children:t.lede}):null]}),r.length>0?(0,a.jsx)("div",{className:"card-lift overflow-hidden rounded-3xl bg-card",children:(0,a.jsx)("div",{className:"grid lg:grid-cols-3",children:r.map((e,t)=>(0,a.jsxs)("div",{className:(0,Q.cn)("flex flex-col p-8 transition-colors duration-200","border-b border-input last:border-b-0","lg:border-b-0 lg:border-r lg:last:border-r-0","hover:bg-[#FBF6EA]"),children:[(0,a.jsxs)("div",{className:"mb-6 flex items-center justify-between font-medium text-[11px] tracking-[0.12em] text-[#5c6b3f]",children:[(0,a.jsx)(tZ,{meta:e.meta}),(0,a.jsx)("span",{className:"text-muted-foreground",children:(0,a.jsx)(tY,{icon:e.icon})})]}),(0,a.jsx)("h3",{className:"mb-3 text-gray-900",children:(0,h.JD)(e.title)}),(0,a.jsx)("div",{className:"mb-6 text-[14.5px] font-light leading-relaxed text-muted-foreground [&_a]:underline [&_a]:decoration-[0.5px] [&_a:hover]:text-[#5c6b3f] [&_strong]:font-semibold [&_p:last-child]:mb-0",dangerouslySetInnerHTML:{__html:(0,x.I)(e.description,l)}}),Array.isArray(e.bullets)&&e.bullets.length>0?(0,a.jsx)("ul",{className:"mb-7 flex flex-col",children:e.bullets.map((e,t)=>(0,a.jsxs)("li",{className:"flex items-center gap-2.5 border-t border-input py-2.5 text-[14px] text-gray-800",children:[(0,a.jsx)("span",{className:"font-mono text-[11px] text-[#5c6b3f]","aria-hidden":"true",children:"â"}),(0,a.jsx)("span",{children:e})]},t))}):null,e.link?(0,a.jsxs)(e6(),{href:e.link.href,className:"mt-auto inline-flex items-center gap-1.5 text-[13.5px] font-medium text-[#5c6b3f] transition-colors hover:text-[#4a5632]",children:[(0,a.jsx)("span",{children:e.link.label}),(0,a.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 11 11","aria-hidden":"true",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:"M2 9L9 2M9 2H3.5M9 2V7.5"})})]}):null]},t))})}):null]}):null}var t0=l(88992);function t1(e){let{className:t,...l}=e;return(0,a.jsx)("textarea",{"data-slot":"textarea",className:(0,Q.cn)("border-input placeholder:text-muted-foreground focus-visible:border-[#5c6b3f] aria-invalid:border-destructive dark:bg-input/30 flex min-h-16 w-full rounded-lg border bg-white px-3 py-2 text-sm shadow-xs transition-colors outline-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",t),...l})}var t2=l(7190),t5=l(82987),t3=l(59773);function t4(e){let{className:t,...l}=e;return(0,a.jsx)(t3.b,{"data-slot":"label",className:(0,Q.cn)("flex items-center gap-2 text-base leading-tight font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...l})}let t6=t0.Op,t8=o.createContext({}),t9=e=>{let{...t}=e;return(0,a.jsx)(t8.Provider,{value:{name:t.name},children:(0,a.jsx)(t0.xI,{...t})})},t7=()=>{let e=o.useContext(t8),t=o.useContext(le),{getFieldState:l}=(0,t0.xW)(),r=(0,t0.lN)({name:e.name}),a=l(e.name,r);
21if(!e)throw Error("useFormField should be used within <FormField>");let{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...a}},le=o.createContext({});function lt(e){let{className:t,...l}=e,r=o.useId();return(0,a.jsx)(le.Provider,{value:{id:r},children:(0,a.jsx)("div",{"data-slot":"form-item",className:(0,Q.cn)("grid gap-2",t),...l})})}function ll(e){let{className:t,...l}=e,{error:r,formItemId:i}=t7();return(0,a.jsx)(t4,{"data-slot":"form-label","data-error":!!r,className:(0,Q.cn)("data-[error=true]:text-destructive",t),htmlFor:i,...l})}function lr(e){let{...t}=e,{error:l,formItemId:r,formDescriptionId:i,formMessageId:s}=t7();return(0,a.jsx)(t5.DX,{"data-slot":"form-control",id:r,"aria-describedby":l?`${i} ${s}`:`${i}`,"aria-invalid":!!l,...t})}let la=/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/i,li=/^[0-9\s()+-]{5,}$/i,ls={fullName:"",companyName:"",role:"",email:"",phoneCountry:"",phoneNumber:"",message:"",policiesAccepted:!0},ln={fullName:"name",companyName:"organization",role:"organization-title",email:"email",phoneNumber:"tel"},lo="pk_26efe0fc5d62df822a430813cf0e338b",ld="e1bc57ab-2bd7-45c5-9f3f-18b451939bab",lc="f358c0f9-5057-47d2-b54d-4b804aa89441",lu=lo?new tg._(lo,{baseUrl:"https://api-dev-mira_form.idealogic.dev",timeout:5e3}):null,lm="https://api.chaindoc.io/auth/login?admin=false";function lx(e){return!!e&&"object"==typeof e&&"string"==typeof e.id&&"string"==typeof e.name&&"string"==typeof e.dialCode}function lh(e){var t,l,r,s,d,c,u,h;let f,{data:p}=e,{t:g}=(0,i.Bd)("forms/PartnershipForm"),{t:b}=(0,i.Bd)("contry-codes"),v=(0,m.useRouter)(),{toast:j}=(0,tK.d)(),w=(0,t0.mN)({defaultValues:ls,mode:"onTouched"}),y=(0,o.useRef)(null),N=(0,o.useRef)(null),[k,M]=(0,o.useState)("details"),[C,S]=(0,o.useState)("idle"),[A,L]=(0,o.useState)(""),[R,E]=(0,o.useState)(0),[P,_]=(0,o.useState)(!1),[F,z]=(0,o.useState)(null),T=w.watch("email"),$=b("items",{returnObjects:!0}),I=b("searchPlaceholder"),q=b("emptyMessage"),O=b("selectPlaceholder"),D=(0,o.useMemo)(()=>Array.isArray($)?$.filter(lx):[],[$]),H=(0,o.useMemo)(()=>D.map(e=>({id:e.id,value:`${e.name} (${e.dialCode})`,label:`${e.name} (${e.dialCode})`,searchValue:`${e.name} ${e.dialCode}`})),[D]),V=(0,o.useMemo)(()=>new Map(D.map(e=>[e.id,e])),[D]),W=w.watch("phoneCountry"),B=W?V.get(W):void 0,K={title:p.title??g("title",{defaultValue:"СÑаÑи паÑÑнеÑом Chaindoc"}),subtitle:p.subtitle??g("subtitle",{defaultValue:"РозкажÑÑÑ Ð¿Ñо Ñебе Ñа компанÑÑ â ми звâÑжемоÑÑ Ð· вами найближÑим ÑаÑом."})},U=(0,o.useMemo)(()=>{let e=(e,t)=>{var l;let r=(null==(l=p.fields)?void 0:l[e])??{};return{label:r.label??g(`fields.${e}.label`,{defaultValue:t.label}),placeholder:r.placeholder??g(`fields.${e}.placeholder`,{defaultValue:t.placeholder}),required:r.required??t.required,requiredMessage:r.requiredMessage??g(`fields.${e}.required`,{defaultValue:t.requiredMessage}),invalidMessage:"email"===e?g("fields.email.invalid",{defaultValue:t.invalidMessage??"ÐкажÑÑÑ ÐºÐ¾ÑекÑÐ½Ñ ÐµÐ»ÐµÐºÑÑÐ¾Ð½Ð½Ñ Ð¿Ð¾ÑÑÑ"}):void 0,type:r.type??("email"===e?"email":"text"),autoComplete:r.autoComplete??ln[e]}};return{fullName:e("fullName",{label:"ÐмâÑ Ñа пÑÑзвиÑе",placeholder:"ÐапÑиклад, ÐÐ¾Ð»Ð¾Ð´Ð¸Ð¼Ð¸Ñ Ð¨ÐµÐ²Ñенко",required:!0,requiredMessage:"ÐбовâÑзкове поле"}),companyName:e("companyName",{label:"Ðазва компанÑÑ",placeholder:"ÐомпанÑÑ Ð°Ð±Ð¾ пÑодÑкÑ",required:!0,requiredMessage:"ÐбовâÑзкове поле"}),role:e("role",{label:"Ð Ð¾Ð»Ñ Ñ ÐºÐ¾Ð¼Ð¿Ð°Ð½ÑÑ",placeholder:"ÐапÑиклад, СÐРабо Head of Product",required:!0,requiredMessage:"ÐбовâÑзкове поле"}),email:e("email",{label:"РобоÑий email",placeholder:"[email protected]",required:!0,requiredMessage:"ÐбовâÑзкове поле",invalidMessage:"ÐкажÑÑÑ ÐºÐ¾ÑекÑÐ½Ñ ÐµÐ»ÐµÐºÑÑÐ¾Ð½Ð½Ñ Ð¿Ð¾ÑÑÑ"})}},[p.fields,g]),J=(null==(t=p.fields)?void 0:t.phone)??{},X={groupLabel:J.label??g("phone.groupLabel",{defaultValue:""}),country:{label:J.countryLabel??g("phone.country.label",{defaultValue:"Ðод кÑаÑни"}),placeholder:J.countryPlaceholder??g("phone.country.placeholder",{defaultValue:O??"ÐбеÑÑÑÑ ÐºÑаÑнÑ"}),requiredMessage:J.requiredMessage??g("phone.country.required",{defaultValue:"ÐбеÑÑÑÑ ÐºÑаÑнÑ"})},number:{label:J.numberLabel??g("phone.number.label",{defaultValue:"ТелеÑон"}),placeholder:J.numberPlaceholder??g("phone.number.placeholder",{defaultValue:"ÐÐ¾Ð¼ÐµÑ ÑелеÑонÑ"}),requiredMessage:g("phone.number.required",{defaultValue:"ÐбовâÑзкове поле"}),invalidMessage:g("phone.number.invalid",{defaultValue:"ÐкажÑÑÑ ÐºÐ¾ÑекÑний Ð½Ð¾Ð¼ÐµÑ ÑелеÑонÑ"})},required:J.required??!0},G=(null==(l=p.fields)?void 0:l.message)??{},ee={label:G.label??g("message.label",{defaultValue:"ÐоменÑÐ°Ñ Ð°Ð±Ð¾ пиÑаннÑ"}),placeholder:G.placeholder??g("message.placeholder",{defaultValue:"ÐпиÑÑÑÑ Ð¾ÑÑкÑÐ²Ð°Ð½Ð½Ñ Ð²Ñд паÑÑнеÑÑÑва, ÑозкажÑÑÑ Ð¿Ñо пÑодÑÐºÑ Ñа ÑÑлÑовиÑ
клÑÑнÑÑв"}),required:G.required??!1,requiredMessage:G.requiredMessage??g("message.required",{defaultValue:"ÐпиÑÑÑÑ Ð·Ð°Ð¿Ð¸Ñ, Ñоб ми могли пÑдгоÑÑваÑиÑÑ."}),autoComplete:G.autoComplete??ln.message},et=(null==(r=p.fields)?void 0:r.policiesAccepted)??{},el={label:et.label??g("consent.label",{defaultValue:"ÐÑдÑвеÑÐ´Ð¶ÐµÐ½Ð½Ñ Ð¿Ð¾Ð»ÑÑик"}),required:et.required??!0,requiredMessage:et.requiredMessage??g("consent.required",{defaultValue:"ÐÑдÑвеÑдÑÑе згодÑ, Ñоб пÑодовжиÑи."}),markdown:et.markdown??g("consent.markdown",{defaultValue:"Я погоджÑÑÑÑ Ð· [Privacy Policy](/privacy), [Cookie Policy](/cookies) Ñа [Terms of Service](/terms)."})},er={submit:(null==(s=p.submit)?void 0:s.label)??g("buttons.submit",{defaultValue:"ÐадÑÑлаÑи заÑвкÑ"}),submitLoading:(null==(d=p.submit)?void 0:d.pendingLabel)??g("buttons.submitLoading",{defaultValue:"ÐÑдпÑавлÑÑмоâ¦"}),verificationSubmit:g("buttons.verificationSubmit",{defaultValue:"ÐÑдÑвеÑдиÑи код"}),verificationLoading:g("buttons.verificationLoading",{defaultValue:"ÐеÑевÑÑÑÑмоâ¦"})},ea=(0,o.useMemo)(()=>{let e=(null==F?void 0:F.email)||T||g("verification.emailFallback",{defaultValue:"Ð²Ð°Ñ email"});return{infoParts:g("verification.message",{defaultValue:"Ðи надÑÑлали код пÑдÑвеÑÐ´Ð¶ÐµÐ½Ð½Ñ Ð½Ð° {{email}}.",email:"\x01"}).split("\x01"),email:e,change:g("verification.change",{defaultValue:"ÐмÑниÑи данÑ"}),codeLabel:g("verification.code.label",{defaultValue:"Ðод пÑдÑвеÑдженнÑ"}),codeHelp:g("verification.code.help",{defaultValue:"ÐведÑÑÑ ÑеÑÑизнаÑний код з елекÑÑÐ¾Ð½Ð½Ð¾Ñ Ð¿Ð¾ÑÑи."}),codeRequired:g("verification.code.required",{defaultValue:"УкажÑÑÑ ÐºÐ¾Ð´ пÑдÑвеÑдженнÑ."}),resendLabel:g("verification.resend.label",{defaultValue:"ÐадÑÑлаÑи Ð
21ºÐ¾Ð´ Ñе Ñаз"}),resendSending:g("verification.resend.sending",{defaultValue:"ÐадÑилаÑмоâ¦"}),sentTitle:g("verification.sentTitle",{defaultValue:"Ðод надÑÑлано"}),sentDescription:g("verification.sentDescription",{defaultValue:"ÐеÑевÑÑÑе поÑÑÑ â лиÑÑ Ð¼Ñг поÑÑапиÑи Ñ \xabСпам\xbb."})}},[null==F?void 0:F.email,g,T]),ei={login:g("errors.login",{defaultValue:"Ðе вдалоÑÑ Ð½Ð°Ð´ÑÑлаÑи код. СпÑобÑйÑе пÑзнÑÑе."}),submit:(null==(c=p.submit)?void 0:c.errorMessage)??g("errors.submit",{defaultValue:"Ðе вдалоÑÑ Ð²ÑдпÑавиÑи заÑвкÑ. СпÑобÑйÑе Ñе Ñаз."}),code:g("errors.code",{defaultValue:"Ðод не пÑдÑйÑов. СпÑобÑйÑе зновÑ."})},es={toastTitle:g("success.toastTitle",{defaultValue:"ÐаÑÐ²ÐºÑ Ð²ÑдпÑавлено"}),toastDescription:g("success.toastDescription",{defaultValue:"Ðи надÑÑлали пÑдÑвеÑÐ´Ð¶ÐµÐ½Ð½Ñ Ð½Ð° Ð²Ð°Ñ email. СлÑдкÑйÑе за вÑдповÑÐ´Ð´Ñ Ñ Ð¿Ð¾ÑÑÑ."})},en=(0,o.useMemo)(()=>(0,x.I)(el.markdown,v.locale??"en"),[el.markdown,v.locale]),eo=(0,o.useCallback)(()=>{E(60),N.current&&window.clearInterval(N.current),N.current=window.setInterval(()=>{E(e=>e<=1?(N.current&&(window.clearInterval(N.current),N.current=null),0):e-1)},1e3)},[]),ed=(0,o.useCallback)(()=>{N.current&&(window.clearInterval(N.current),N.current=null)},[]),ec=async e=>{try{var t,l;let r=await e.json();return(null==r?void 0:r.message)||(null==r?void 0:r.error)||(null==r?void 0:r.detail)||(null==r||null==(l=r.errors)||null==(t=l.join)?void 0:t.call(l," "))}catch{return}},eu=(0,o.useCallback)(()=>{M("details"),L(""),E(0),_(!1),S("idle"),z(null),ed(),w.reset(ls)},[ed,w]),em=(0,o.useCallback)(()=>{M("details"),L(""),E(0),ed()},[ed]),ex=(0,o.useCallback)(async(e,t)=>{var l,r,a;let{phoneCountry:i,phoneNumber:s,...n}=e,o=V.get(i),d=[null==o?void 0:o.dialCode,s.trim()].filter(Boolean).join(" ").trim(),c={...n,phone:d||s.trim(),verificationCode:t};if(lu&&ld&&lc){let{formData:e,errors:t}=lu.prepareFormData({resourceId:ld,formId:lc,content:c});if(!e||(null==t?void 0:t.length))throw Error((null==t?void 0:t.join(" "))||ei.submit);let l=await lu.sendForm(e);if(!l.success)throw Error((null==(a=l.errors)?void 0:a.join(" "))||ei.submit);return}let u=await fetch((null==(l=p.api)?void 0:l.endpoint)??"/api/partner-request",{method:(null==(r=p.api)?void 0:r.method)??"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)});if(!u.ok)throw Error(await ec(u)||ei.submit)},[V,null==(u=p.api)?void 0:u.endpoint,null==(h=p.api)?void 0:h.method,ei.submit]),eh=(0,o.useCallback)(async()=>{let e=(null==F?void 0:F.email)||w.getValues("email");if(e&&!(R>0)&&!P&&"loading"!==C){_(!0);try{let t=await fetch(lm,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e}),credentials:"include"});if(!t.ok)throw Error(await ec(t)||ei.login);j({title:ea.sentTitle,description:ea.sentDescription,duration:2500}),eo()}catch(e){j({title:e instanceof Error?e.message:ei.login,variant:"destructive",duration:2500})}finally{_(!1)}}},[ei.login,w,P,R,null==F?void 0:F.email,eo,C,j,ea.sentDescription,ea.sentTitle]),ef=(0,o.useCallback)(async e=>{if("loading"!==C){if("details"===k){S("loading");try{let t=await fetch(lm,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e.email}),credentials:"include"});if(!t.ok)throw Error(await ec(t)||ei.login);z({...e}),j({title:ea.sentTitle,description:ea.sentDescription,duration:2500}),M("verification"),L(""),eo()}catch(e){j({title:e instanceof Error?e.message:ei.login,variant:"destructive",duration:2500})}finally{S("idle")}return}if(!A.trim())return void j({title:ea.codeRequired,variant:"destructive",duration:2500});S("loading");try{await ex(F??e,A.trim()),j({title:es.toastTitle,description:es.toastDescription,duration:3500}),eu()}catch(e){j({title:e instanceof Error?e.message:ei.submit,variant:"destructive",duration:2500}),S("idle")}}},[ei.login,ei.submit,k,eu,F,eo,C,ex,es.toastDescription,es.toastTitle,j,A,ea.codeRequired,ea.sentDescription,ea.sentTitle]);(0,o.useEffect)(()=>
21{if("verification"===k){let e=window.setTimeout(()=>{var e;null==(e=y.current)||e.focus({preventScroll:!0})},0);return()=>window.clearTimeout(e)}},[k]),(0,o.useEffect)(()=>()=>{ed()},[ed]);let ep="loading"===C,eg=ep?"verification"===k?er.verificationLoading:er.submitLoading:"verification"===k?er.verificationSubmit:er.submit;return(0,a.jsx)("div",{className:"w-full bg-background",id:"partnership-form",children:(0,a.jsx)(Y.o,{headerSpacing:"none",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_1.25fr] gap-14 items-start",children:[(0,a.jsxs)("div",{className:"lg:sticky lg:top-24 lg:self-start flex flex-col gap-0",children:[(0,a.jsx)(Z.X3,{badge:p.badge,title:K.title,description:K.subtitle}),p.checklist&&p.checklist.length>0&&(0,a.jsx)("ul",{className:"mt-8 space-y-3.5",children:p.checklist.map((e,t)=>(0,a.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,a.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16","aria-hidden":"true",className:"shrink-0",children:[(0,a.jsx)("circle",{cx:"8",cy:"8",r:"7.5",fill:"none",stroke:"#5c6b3f",strokeWidth:"1.2",opacity:"0.5"}),(0,a.jsx)("path",{d:"M4.5 8.2 L7 10.7 L11.5 5.5",fill:"none",stroke:"#5c6b3f",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,a.jsx)("span",{className:"font-light leading-relaxed text-[hsl(30,8%,40%)]",children:e})]},t))})]}),(0,a.jsxs)("div",{className:"relative rounded-3xl bg-card card-lift p-8 overflow-hidden",children:[(0,a.jsxs)("svg",{viewBox:"0 0 200 200","aria-hidden":"true",className:"pointer-events-none absolute",style:{top:-40,right:-40,width:200,opacity:.65},children:[(0,a.jsx)("circle",{cx:"100",cy:"100",r:"80",fill:"#b3bd8e",opacity:"0.35"}
21),(0,a.jsx)("circle",{cx:"100",cy:"100",r:"60",fill:"none",stroke:"#5c6b3f",strokeWidth:"1.2"})]}),(0,a.jsx)("div",{className:"relative",children:(0,a.jsx)(t6,{...w,children:(0,a.jsxs)("form",{className:"grid grid-cols-1 gap-8 sm:grid-cols-2 sm:gap-6",onSubmit:w.handleSubmit(ef),children:[["fullName","companyName","role","email"].map(e=>{let t=U[e],l=t.required?{required:t.requiredMessage}:{},r="email"===e?{pattern:{value:la,message:t.invalidMessage??""}}:{},i=Object.keys({...l,...r}).length>0?{...l,...r}:void 0;return(0,a.jsx)(t9,{control:w.control,name:e,rules:i,render:e=>{let{field:l,fieldState:r}=e,i=!!r.error;return(0,a.jsxs)(lt,{children:[(0,a.jsx)(ll,{className:(0,Q.cn)("mb-1 block text-sm font-medium transition-colors",i?"text-destructive":"text-foreground"),children:(0,a.jsxs)("span",{className:"inline-flex items-center gap-1",children:[t.label,t.required&&(0,a.jsx)("span",{className:(0,Q.cn)(i?"text-destructive":"text-foreground"),children:"*"})]})}),(0,a.jsx)(lr,{children:(0,a.jsx)(tO.p,{...l,type:t.type??"text",placeholder:t.placeholder,autoComplete:t.autoComplete,"aria-invalid":i,className:"focus:border-[#5c6b3f]",disabled:ep||"verification"===k,onChange:e=>{l.onChange(e.target.value)}})})]})}},e)}),(0,a.jsxs)("div",{className:"sm:col-span-2 space-y-3",children:[X.groupLabel&&(0,a.jsx)("div",{className:"text-sm font-medium text-foreground",children:X.groupLabel}),(0,a.jsxs)("div",{className:"grid gap-3 sm:grid-cols-[minmax(0,220px)_1fr]",children:[(0,a.jsx)(t9,{control:w.control,name:"phoneCountry",rules:X.required?{required:X.country.requiredMessage}:void 0,render:e=>{let{field:t,fieldState:l}=e,r=!!l.error;return(0,a.jsxs)(lt,{children:[(0,a.jsx)(ll,{className:(0,Q.cn)("mb-1 block text-sm font-medium transition-colors",r?"text-destructive":"text-foreground"),children:(0,a.jsxs)("span",{className:"inline-flex items-center gap-1",children:[X.country.label,X.required&&(0,a.jsx)("span",{className:(0,Q.cn)(r?"text-destructive":"text-foreground"),children:"*"})]})}),(0,a.jsx)(lr,{children:(0,a.jsx)(t2.G,{options:H,value:t.value,onValueChange:e=>{t.onChange(e)},placeholder:X.country.placeholder,emptyMessage:q||"No countries found.",searchPlaceholder:I||"Search country...",showIcon:!1,disabled:ep||"verification"===k})})]})}}),(0,a.jsx)(t9,{control:w.control,name:"phoneNumber",rules:X.required?{required:X.number.requiredMessage,pattern:{value:li,message:X.number.invalidMessage}}:{pattern:{value:li,message:X.number.invalidMessage}},render:e=>{let{field:t,fieldState:l}=e,r=!!l.error;return(0,a.jsxs)(lt,{children:[(0,a.jsx)(ll,{className:(0,Q.cn)("mb-1 block text-sm font-medium transition-colors",r?"text-destructive":"text-foreground"),children:(0,a.jsxs)("span",{className:"inline-flex items-center gap-1",children:[X.number.label,X.required&&(0,a.jsx)("span",{className:(0,Q.cn)(r?"text-destructive":"text-foreground"),children:"*"})]})}),(0,a.jsx)(lr,{children:(0,a.jsxs)("div",{className:(0,Q.cn)("flex overflow-hidden rounded-lg border bg-white transition-colors focus-within:border-[#5c6b3f]",r?"border-destructive":"border-input"),children:[(null==B?void 0:B.dialCode)&&(0,a.jsx)("span",{className:"inline-flex items-center border-r border-input bg-muted px-3 text-sm text-muted-foreground",children:B.dialCode}),(0,a.jsx)(tO.p,{...t,type:"tel",placeholder:X.number.placeholder,autoComplete:ln.phoneNumber,"aria-invalid":r,disabled:ep||"verification"===k,onChange:e=>{t.onChange(e.target.value)},className:"rounded-none border-0 focus-visible:border-0"})]})})]})}})]})]}),(0,a.jsx)(t9,{control:w.control,name:"message",rules:ee.required?{required:ee.requiredMessage}:void 0,render:e=>{let{field:t,fieldState:l}=e,r=!!l.error;return(0,a.jsxs)(lt,{className:"sm:col-span-2",children:[(0,a.jsx)(ll,{className:(0,Q.cn)("mb-1 block text-sm font-medium transition-colors",r?"text-destructive":"text-foreground"),children:(0,a.jsxs)("span",{className:"inline-flex items-center gap-1",children:[ee.label,ee.required&&(0,a.jsx)("span",{className:(0,Q.cn)(r?"text-destructive":"text-foreground"),children:"*"})]})}),(0,a.jsx)(lr,{children:(0,a.jsx)(t1,{...t,rows:5,placeholder:ee.placeholder,autoComplete:ee.autoComplete,"aria-invalid":r,className:"focus-visible:ring-0 focus-visible:border-[#5c6b3f]",disabled:ep||"verification"===k,onChange:e=>
21{t.onChange(e.target.value)}})})]})}}),"verification"===k&&(0,a.jsxs)("div",{className:"sm:col-span-2 space-y-3 rounded-2xl bg-secondary p-4 text-sm text-[hsl(30,8%,40%)]",children:[(0,a.jsxs)("p",{children:[ea.infoParts[0],(0,a.jsx)("strong",{className:"font-semibold text-gray-900",children:ea.email}),ea.infoParts[1]]}),(0,a.jsx)("button",{type:"button",className:(0,Q.cn)((0,n.r)({variant:"outline",size:"sm"}),"w-fit focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:border-[#5c6b3f]"),onClick:em,disabled:ep,children:ea.change})]}),"verification"===k&&(0,a.jsxs)("div",{className:"sm:col-span-2 space-y-3",children:[(0,a.jsx)("label",{htmlFor:"partnership-verification",className:"block text-sm font-medium text-foreground",children:ea.codeLabel}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,a.jsxs)(tH,{ref:y,id:"partnership-verification",name:"verificationCode",maxLength:6,value:A,onChange:e=>L(e.replace(/[^0-9]/g,"").slice(0,6)),inputMode:"numeric",pattern:"^[0-9]*$","aria-label":ea.codeLabel,containerClassName:"justify-start gap-4",disabled:ep,children:[(0,a.jsxs)(tV,{className:"gap-2",children:[(0,a.jsx)(tW,{index:0}),(0,a.jsx)(tW,{index:1}),(0,a.jsx)(tW,{index:2})]}),(0,a.jsx)(tB,{className:"px-3"}),(0,a.jsxs)(tV,{className:"gap-2",children:[(0,a.jsx)(tW,{index:3}),(0,a.jsx)(tW,{index:4}),(0,a.jsx)(tW,{index:5})]})]}),(0,a.jsxs)("button",{type:"button",onClick:eh,disabled:R>0||P||ep,className:(0,Q.cn)("inline-flex h-9 items-center justify-center rounded-md border border-input px-3 text-sm font-medium text-foreground transition-colors","hover:bg-muted/60 focus-visible:outline-none focus-visible:ring-0 focus-visible:border-[#5c6b3f]","disabled:cursor-not-allowed disabled:border-border disabled:bg-transparent disabled:text-muted-foreground disabled:opacity-80"),children:[P?ea.resendSending:ea.resendLabel,R>0&&!P&&(0,a.jsx)("span",{className:"ml-2 text-xs font-normal text-muted-foreground",children:(f=Math.floor(R/60),`${String(f).padStart(2,"0")}:${String(R%60).padStart(2,"0")}`)})]})]}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:ea.codeHelp})]}),(0,a.jsxs)("div",{className:"sm:col-span-2 flex flex-col gap-3",children:[(0,a.jsx)("div",{className:"text-xs font-light leading-relaxed text-muted-foreground [&_p]:m-0 [&_a]:underline [&_a]:decoration-[0.5px] [&_a]:transition-colors [&_a:hover]:text-orange-500 [&_a:focus-visible]:text-orange-500 [&_a:focus-visible]:outline-none",dangerouslySetInnerHTML:{__html:en}}),(0,a.jsx)("button",{type:"submit",className:(0,Q.cn)((0,n.r)({variant:"default"}),"h-11 self-start border border-transparent focus-visible:outline-none focus-visible:ring-0 focus-visible:border-[#5c6b3f]",ep&&"opacity-90 cursor-wait"),disabled:ep,children:ep?(0,a.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,a.jsx)("span",{className:"inline-block h-4 w-4 animate-spin rounded-full border-2 border-white/60 border-t-white"}),eg]}):eg})]})]})})})]})]})})})}let lf={label:"",placeholder:"",required:!0,autoComplete:"",requiredMessage:"",invalidMessage:""},lp={submit:"Confirm code",message:"We sent a verification code to {{email}}.",emailFallback:"your email",change:"Edit details",codeLabel:"Verification code",codeHelp:"Enter the six-digit code from your inbox.",codeRequired:"Enter the verification code.",resendLabel:"Resend code",resendSending:"Sendingâ¦",sentTitle:"Code sent",sentDescription:"Check your inbox â the email might be in the spam folder.",loginError:"Could not send the code. Please try again later."},lg={name:"",email:"",message:""},lb="pk_26efe0fc5d62df822a430813cf0e338b",lv="e1bc57ab-2bd7-45c5-9f3f-18b451939bab",lj="9d75d31c-4d16-4594-9e5b-d8fc75fe8832",lw=lb?new tg._(lb,{baseUrl:"https://api-dev-mira_form.idealogic.dev",timeout:5e3}):null;function ly(e){var t,l,r,i,s,d;let c,{data:u}=e,[m,x]=(0,o.useState)("idle"),[h,f]=(0,o.useState)("details"),[p,g]=(0,o.useState)(""),[b,v]=(0,o.useState)(0),[j,w]=(0,o.useState)(!1),y=(0,o.useRef)(null),N=(0,o.useRef)(null),{toast:k}=(0,tK.d)(),M=(0,t0.mN)({defaultValues:lg,mode:"onTouched"}),C=(0,o.useMemo)(()=>({...lp,...u.verification}),[u.verification]),S=(0,o.useMemo)(()=>u.consentMarkdown?function(e){let t,l=[],r=/\[([^\]]+)\]\(([^)]+)\)/g,i=0,s=0;for(;null!==(t=r.exec(e));)t.index>i&&l.push((0,a.jsx)(o.Fragment,{children:e.slice(i,t.index)},s++)),l.push((0,a.jsx)(e6(),{href:t[2],children:t[1]},s++)),i=t.index+t[0].length;return i<e.length&&l.push((0,a.jsx)(o.Fragment,{children:e.slice(i)},s++)),l}(u.consentMarkdown):null,[u.consentMarkdown]),A=async e=>{try{var t,l;let r=await e.json(),a=(null==r?void 0:r.message)??(null==r?void 0:r.error)??(null==r?void 0:r.detail)??(null==r||null==(l=r.errors)||null==(t=l.join)?void 0:t.call(l," "));return"string"==typeof a&&a.trim()?a:void 0}catch{return}},L=(0,o.useCallback)(()=>{v(60),null!==N.current&&window.clearInterval(N.current),N.current=window.setInterval(()=>{v(e=>e<=1?(null!==N.current&&(window.clearInterval(N.current),N.current=null),0):e-1)},1e3)},[]),R=(0,o.useCallback)(()=>{v(0),null!==N.current&&(window.clearInterval(N.current),N.current=null)},[]);(0,o.useEffect)(()=>R,[R]),(0,o.useEffect)(()=>
21{if("verification"===h){let e=window.setTimeout(()=>{var e;null==(e=y.current)||e.focus({preventScroll:!0})},0);return()=>window.clearTimeout(e)}},[h]);let E=(0,o.useCallback)(()=>{f("details"),g(""),R()},[R]),P=(0,o.useCallback)(async e=>{let t=await fetch("https://api.chaindoc.io/auth/login?admin=false",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e}),credentials:"include"});if(!t.ok)throw Error(await A(t)||C.loginError)},[C.loginError]),_=(0,o.useCallback)(async()=>{let e=M.getValues("email");if(e&&!(b>0)&&!j&&"loading"!==m){w(!0);try{await P(e),k({title:C.sentTitle,description:C.sentDescription,duration:2500}),L()}catch(e){k({title:e instanceof Error?e.message:C.loginError,variant:"destructive",duration:2500})}finally{w(!1)}}},[M,j,b,P,L,m,k,C]),F=async e=>{var t,l,r;if("loading"===m)return;let a=(null==(t=u.submit)?void 0:t.errorMessage)??"",i=(e,t)=>{k({title:e||a,description:t,variant:"destructive",duration:2500})};if("details"===h){x("loading");try{await P(e.email),k({title:C.sentTitle,description:C.sentDescription,duration:2500}),f("verification"),L()}catch(e){i(e instanceof Error?e.message:C.loginError)}finally{x("idle")}return}if(!p.trim())return void i(C.codeRequired);x("loading");try{if(lw&&lv&&lj){let{formData:t,errors:l}=lw.prepareFormData({resourceId:lv,formId:lj,content:{...e,code:p.trim(),verificationCode:p.trim()}});if(!t||l&&l.length>0){i((null==l?void 0:l.join(" "))||a),x("idle");return}let s=await lw.sendForm(t);if(!s.success)throw Error((null==(r=s.errors)?void 0:r.join(" "))||"Request failed")}else{i(a,"MiraForm configuration is missing"),x("idle");return}M.reset(lg),g(""),f("details"),R(),k({title:(null==(l=u.submit)?void 0:l.successMessage)??"",duration:2500}),x("idle")}catch(e){console.error("Failed to submit contact form",e),i(a,(e instanceof Error?e.message.trim():"")||void 0),x("idle")}},z="loading"===m?(null==(d=u.submit)?void 0:d.pendingLabel)??"...":"verification"===h?C.submit:(null==(s=u.submit)?void 0:s.label)??"",T={...lf,...null==(t=u.fields)?void 0:t.name},$={...lf,...null==(l=u.fields)?void 0:l.email},I={...lf,...null==(r=u.fields)?void 0:r.message},q=M.watch("email")||C.emailFallback,O=C.message.split("{{email}}"),D="verification"===h;return(0,a.jsx)("div",{className:"w-full bg-background",id:"contact-form",children:(0,a.jsx)(Y.o,{headerSpacing:"none",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_1.25fr] gap-14 items-start",children:[(0,a.jsxs)("div",{className:"lg:sticky lg:top-24 lg:self-start flex flex-col gap-0",children:[(0,a.jsx)(Z.X3,{badge:u.badge,title:u.title,description:u.subtitle}),u.description&&(0,a.jsx)("p",{className:"lede mt-6",children:u.description}),u.checklist&&u.checklist.length>0&&(0,a.jsx)("ul",{className:"mt-8 space-y-3.5",children:u.checklist.map((e,t)=>(0,a.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,a.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16","aria-hidden":"true",className:"shrink-0",children:[(0,a.jsx)("circle",{cx:"8",cy:"8",r:"7.5",fill:"none",stroke:"#5c6b3f",strokeWidth:"1.2",opacity:"0.5"}),(0,a.jsx)("path",{d:"M4.5 8.2 L7 10.7 L11.5 5.5",fill:"none",stroke:"#5c6b3f",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,a.jsx)("span",{className:"text-sm font-medium text-muted-foreground",children:e})]},t))})]}),(0,a.jsxs)("div",{className:"relative rounded-3xl bg-card p-8 card-lift overflow-hidden",children:[(0,a.jsxs)("svg",{viewBox:"0 0 200 200","aria-hidden":"true",className:"pointer-events-none absolute",style:{top:-40,right:-40,width:200,opacity:.65},children:[(0,a.jsx)("circle",{cx:"100",cy:"100",r:"80",fill:"#b3bd8e",opacity:"0.35"}
21),(0,a.jsx)("circle",{cx:"100",cy:"100",r:"60",fill:"none",stroke:"#5c6b3f",strokeWidth:"1.2"})]}),(0,a.jsx)("div",{className:"relative",children:(0,a.jsx)(t6,{...M,children:(0,a.jsxs)("form",{className:"grid grid-cols-1 gap-8",onSubmit:M.handleSubmit(F),children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-8 sm:grid-cols-2 sm:gap-5",children:[(0,a.jsx)(t9,{control:M.control,name:"name",rules:T.required?{required:T.requiredMessage||"Required"}:void 0,render:e=>{let{field:t}=e,l=!!M.formState.errors.name;return(0,a.jsxs)(lt,{children:[(0,a.jsx)(ll,{className:(0,Q.cn)("mb-1 block text-sm font-medium transition-colors",l?"text-destructive":"text-foreground"),children:(0,a.jsxs)("span",{className:"inline-flex items-center gap-1",children:[T.label,T.required&&(0,a.jsx)("span",{className:(0,Q.cn)(l?"text-destructive":"text-foreground"),children:"*"})]})}),(0,a.jsx)(lr,{children:(0,a.jsx)(tO.p,{...t,placeholder:T.placeholder,autoComplete:T.autoComplete||"name","aria-invalid":l,disabled:"loading"===m})})]})}}),(0,a.jsx)(t9,{control:M.control,name:"email",rules:{...$.required?{required:$.requiredMessage||"Required"}:{},pattern:{value:/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/i,message:$.invalidMessage||"Invalid email"}},render:e=>{let{field:t}=e,l=!!M.formState.errors.email;return(0,a.jsxs)(lt,{children:[(0,a.jsx)(ll,{className:(0,Q.cn)("mb-1 block text-sm font-medium transition-colors",l?"text-destructive":"text-foreground"),children:(0,a.jsxs)("span",{className:"inline-flex items-center gap-1",children:[$.label||"Email",$.required&&(0,a.jsx)("span",{className:(0,Q.cn)(l?"text-destructive":"text-foreground"),children:"*"})]})}),(0,a.jsx)(lr,{children:(0,a.jsx)(tO.p,{...t,placeholder:$.placeholder||"[email protected]",autoComplete:$.autoComplete||"email",type:"email","aria-invalid":l,disabled:"loading"===m||D})})]})}})]}),(0,a.jsx)(t9,{control:M.control,name:"message",rules:I.required?{required:I.requiredMessage||"Required"}:void 0,render:e=>{let{field:t}=e,l=!!M.formState.errors.message;return(0,a.jsxs)(lt,{children:[(0,a.jsx)(ll,{className:(0,Q.cn)("mb-1 block text-sm font-medium transition-colors",l?"text-destructive":"text-foreground"),children:(0,a.jsxs)("span",{className:"inline-flex items-center gap-1",children:[I.label,I.required&&(0,a.jsx)("span",{className:(0,Q.cn)(l?"text-destructive":"text-foreground"),children:"*"})]})}),(0,a.jsx)(lr,{children:(0,a.jsx)(t1,{...t,rows:5,placeholder:I.placeholder,autoComplete:I.autoComplete||"off","aria-invalid":l,disabled:"loading"===m})})]})}}),D&&(0,a.jsxs)("div",{className:"space-y-3 rounded-2xl bg-secondary p-4 text-sm text-[hsl(30,8%,40%)]",children:[(0,a.jsxs)("p",{children:[O[0],(0,a.jsx)("strong",{className:"font-semibold text-gray-900",children:q}),O[1]]}),(0,a.jsx)(n.$,{type:"button",variant:"outline",size:"sm",className:"w-fit border focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:border-[#5c6b3f]",onClick:E,disabled:"loading"===m,children:C.change})]}),D&&(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("label",{htmlFor:"contact-verification",className:"block text-sm font-medium text-foreground",children:C.codeLabel}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,a.jsxs)(tH,{ref:y,id:"contact-verification",name:"verificationCode",maxLength:6,value:p,onChange:e=>g(e.replace(/[^0-9]/g,"").slice(0,6)),inputMode:"numeric",pattern:"^[0-9]*$","aria-label":C.codeLabel,containerClassName:"justify-start gap-4",disabled:"loading"===m,children:[(0,a.jsxs)(tV,{className:"gap-2",children:[(0,a.jsx)(tW,{index:0}),(0,a.jsx)(tW,{index:1}),(0,a.jsx)(tW,{index:2})]}),(0,a.jsx)(tB,{className:"px-3"}),(0,a.jsxs)(tV,{className:"gap-2",children:[(0,a.jsx)(tW,{index:3}),(0,a.jsx)(tW,{index:4}),(0,a.jsx)(tW,{index:5})]})]}),(0,a.jsxs)("button",{type:"button",onClick:_,disabled:b>0||j||"loading"===m,className:(0,Q.cn)("inline-flex h-9 items-center justify-center rounded-md border border-input px-3 text-sm font-medium text-foreground transition-colors","hover:bg-muted/60 focus-visible:outline-none focus-visible:border-[#5c6b3f]","disabled:cursor-not-allowed disabled:border-border disabled:bg-transparent disabled:text-muted-foreground disabled:opacity-80"),children:[j?C.resendSending:C.resendLabel,b>0&&!j&&(0,a.jsx)("span",{className:"ml-2 text-xs font-normal text-muted-foreground",children:(c=Math.floor(b/60),`${String(c).padStart(2,"0")}
21:${String(b%60).padStart(2,"0")}`)})]})]}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:C.codeHelp})]}),S&&(0,a.jsx)("p",{className:"text-xs text-muted-foreground leading-relaxed [&_a]:underline [&_a]:underline-offset-2 [&_a]:transition-colors [&_a:hover]:text-orange-500 [&_a:focus-visible]:text-orange-500 [&_a:focus-visible]:outline-none",children:S}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsx)(n.$,{type:"submit",disabled:"loading"===m,className:(0,Q.cn)("self-start border border-transparent focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:border-[#5c6b3f]","loading"===m&&"pointer-events-none"),children:z}),(0,a.jsx)("div",{"aria-live":"polite",className:"text-sm text-muted-foreground",children:"loading"===m?(null==(i=u.submit)?void 0:i.pendingLabel)??"...":""})]})]})})})]})]})})})}var lN=l(1833);function lk(e){let{data:t}=e;return(0,a.jsx)(lN.z,{})}function lM(e){let{articles:t,title:l="Featured Posts",columns:r=3,className:i}=e;return t&&0!==t.length?(0,a.jsxs)(Y.o,{className:i,padding:"xs",reveal:!1,headerSpacing:"none",children:[(0,a.jsx)(eK,{title:l,alignment:"left",titleSize:"sm",centerContent:!1}),(0,a.jsx)(ti,{articles:t,columns:r,showEmptyState:!1})]}):null}let lC=o.useLayoutEffect;function lS(e){let{articles:t,title:l="Recent Posts",columns:r=3,className:i,initialVisibleCount:s,loadMoreLabel:d="Load more"}=e,c=t.length>0,{locale:u,defaultLocale:x}=(0,m.useRouter)(),h=u&&x&&u!==x?`/${u}`:"",f=(0,o.useMemo)(()=>"number"==typeof s&&s>0?s:t.length,[s,t.length]),[p,g]=(0,o.useState)(()=>Math.min(f,t.length));if(lC(()=>{g(Math.min(f,t.length))},[f,t.length]),!c)return null;let b=p<t.length;return(0,a.jsxs)(Y.o,{className:i,padding:"xs",reveal:!1,headerSpacing:"none",children:[(0,a.jsx)(eK,{title:l,alignment:"left",titleSize:"sm",centerContent:!1}),(0,a.jsx)(ti,{articles:t,columns:r,showEmptyState:!1,bottomSpacingClass:"mb-8",visibleCount:p}),b&&(0,a.jsx)("div",{className:"flex justify-center mt-2",children:(0,a.jsx)(n.$,{type:"button",variant:"outline",onClick:()=>{g(e=>Math.min(e+f,t.length))},children:d})}),t.length>f&&(0,a.jsx)("noscript",{children:(0,a.jsx)("div",{className:"mt-8 space-y-2",children:t.slice(f).map(e=>(0,a.jsx)("a",{href:`${h}/blog/${e.slug}`,children:e.title},`noscript-${e.slug}`))})})]})}var lA=l(57765),lL=l(71820),lR=l(53848),lE=l(60305);function lP(e){let{data:t}=e,{title:l,subtitle:r,description:s,anivation:n,items:d}=t,c=t.badge,u=(0,o.useMemo)(()=>Array.isArray(d)?d:[],[d]),{t:m}=(0,i.Bd)("common"),x=(0,o.useMemo)(()=>{let e=t.animation,l={hint:m("featureCards.dragHint","Drag the card"),reset:m("featureCards.resetCards","Reset cards")};if("boolean"==typeof e)return{isActive:e,textLabel:l};if("object"==typeof e&&e){var r,a;return{isActive:e.isActive??!0,textLabel:{hint:(null==(r=e.textLabel)?void 0:r.hint)??l.hint,reset:(null==(a=e.textLabel)?void 0:a.reset)??l.reset}}}return{isActive:!0,textLabel:l}},[t.animation,m]),[h,f]=(0,o.useState)(!1),[p,g]=(0,o.useState)(0),[b,v]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=window.matchMedia("(min-width: 768px)"),t=e=>{v(e.matches),e.matches||(g(e=>e+1),f(!1))};t(e);let l=e=>t(e);return e.addEventListener?e.addEventListener("change",l):e.addListener(l),()=>e.removeEventListener?e.removeEventListener("change",l):e.removeListener(l)},[]);let j=!!(x.isActive&&(n??!0)&&b),[w,y]=(0,o.useMemo)(()=>[u.slice(0,4),u.slice(4)],[u]);return u.length?(0,a.jsx)(Y.o,{padding:"xl",headerSpacing:"none",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 items-start gap-8 lg:grid-cols-[minmax(0,2fr)_minmax(0,3fr)] lg:gap-12",children:[(0,a.jsx)("div",{className:"space-y-8 lg:sticky lg:top-24",children:(0,a.jsx)(Z.X3,{badge:c,title:l,description:r??s,alignment:"left",className:"[&>div>p]:mx-0"})}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("div",{className:"grid grid-cols-1 gap-8 sm:grid-cols-2 sm:gap-4",children:w.map((e,t)=>(0,a.jsx)(l_,{feature:e,animated:j,resetSignal:p,onMove:f},`p-${t}`))}),y.length>0&&(0,a.jsx)("div",{className:"grid grid-cols-1 gap-8 sm:grid-cols-2 sm:gap-4",children:y.map((e,t)=>(0,a.jsx)(l_,{feature:e,animated:j,resetSignal:p,onMove:f},`s-${t}`))}),(0,a.jsx)("div",{className:"pt-2 text-center",children:j&&(h?(0,a.jsx)("button",{type:"button",onClick:()=>{g(e=>e+1),f(!1)},className:"text-sm text-muted-foreground underline underline-offset-4 hover:text-gray-900",children:x.textLabel.reset}):(0,a.jsx)("span",{className:"hidden sm:inline-block text-sm text-muted-foreground",children:x.textLabel.hint}))})]})]})}):null}function l_(e){let{feature:t,animated:l,resetSignal:r,onMove:i}=e,s=(0,lA.d)(0),n=(0,lA.d)(0),d=(0,lA.d)(0),c=(0,lL.G)(d,e=>e),u=(0,o.useRef)(null),f=(0,m.useRouter)(),p=(0,o.useMemo)(()=>t.description?(0,x.$)(t.description,f.locale??"en"):"",[t.description,f.locale]);(0,o.useEffect)(()=>()=>{var e;document.body.style.userSelect="",null==(e=u.current)||e.stop()},[]),(0,o.useEffect)(()=>{var e;
21return[s,n,d].forEach(e=>e.stop()),null==(e=u.current)||e.stop(),s.set(0),n.set(0),d.set(0),()=>{var e;null==(e=u.current)||e.stop(),u.current=null}},[l,r,s,n,d]);let g=(0,a.jsxs)("div",{className:"flex flex-col h-full",children:[t.label&&(0,a.jsx)("span",{className:"mb-2 text-xs font-normal uppercase tracking-wider text-muted-foreground",children:t.label}),(0,a.jsx)("h3",{className:"text-lg font-semibold text-gray-900",children:(0,h.wR)(t.title)}),p&&(0,a.jsx)("p",{className:"mt-2 font-light leading-relaxed text-[hsl(30,8%,40%)] [&_a]:underline [&_a]:decoration-[0.5px] [&_a]:transition-colors [&_a:hover]:text-orange-500 [&_a:focus-visible]:text-orange-500 [&_a:focus-visible]:outline-none",dangerouslySetInnerHTML:{__html:p}})]});return l?(0,a.jsx)(lE.P.div,{style:{x:s,y:n,rotate:c},drag:!0,dragMomentum:!1,dragElastic:.18,dragTransition:{bounceStiffness:190,bounceDamping:18},onDragStart:()=>{var e;[s,n,d].forEach(e=>e.stop()),null==(e=u.current)||e.stop(),document.body.style.userSelect="none"},onDrag:(e,t)=>{let l="movementX"in e?e.movementX:0;var r,a,i,s=d.get()+(l?.45*l:(null==(r=t.delta)?void 0:r.x)?.45*t.delta.x:(null==(a=t.offset)?void 0:a.x)?t.offset.x/18:0);null==(i=u.current)||i.stop(),u.current=(0,lR.i)(d,Math.min(Math.max(s,-14),14),{type:"spring",stiffness:160,damping:24,mass:.7})},onDragEnd:()=>{document.body.style.userSelect="",i(Math.abs(s.get())>2||Math.abs(n.get())>2)},className:"bg-card p-8 rounded-3xl card-lift cursor-grab active:cursor-grabbing select-none",children:g}):(0,a.jsx)("div",{className:"flex h-full w-full flex-col rounded-3xl bg-card p-8 card-lift cursor-default",children:g})}function lF(e){let{badge:t,title:l,subtitle:r,items:s,className:n}=e,d=(0,m.useRouter)().locale??"en",{t:c}=(0,i.Bd)("common"),[u,h]=(0,o.useState)(!1),f=(0,o.useMemo)(()=>s.map((e,t)=>({id:`faq-item-${t}`,question:e.question,html:(0,x.I)(e.answer,d)})),[s,d]);if(0===f.length)return null;let p=f.length>5;return(0,a.jsx)(Y.o,{className:n,headerSpacing:"none",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 items-start gap-8 lg:grid-cols-[minmax(0,4fr)_minmax(0,5fr)] lg:gap-16",children:[(0,a.jsx)("div",{className:"lg:sticky lg:top-24 lg:self-start",children:(0,a.jsx)(Z.X3,{badge:t||void 0,title:l||void 0,description:r||void 0,alignment:"left",className:"max-w-xl"})}),(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)(th.nD,{type:"single",collapsible:!0,className:"w-full",children:f.map((e,t)=>(0,a.jsxs)(th.As,{value:e.id,className:(0,Q.cn)(p&&!u&&t>=5&&"hidden"),children:[(0,a.jsx)(th.$m,{children:e.question}),(0,a.jsx)(th.ub,{children:(0,a.jsx)("div",{className:"font-light leading-relaxed text-[hsl(30,8%,40%)] [&_p]:mb-3 [&_p:last-child]:mb-0 [&_a]:underline [&_a]:decoration-[0.5px] [&_a]:transition-colors [&_a:hover]:text-olive-500 [&_a:focus-visible]:text-olive-500 [&_a:focus-visible]:outline-none [&_strong]:font-semibold [&_b]:font-semibold",dangerouslySetInnerHTML:{__html:e.html}})})]},e.id))}),p?(0,a.jsxs)("button",{type:"button",onClick:()=>h(e=>!e),"aria-expanded":u,className:"group/faq mt-6 inline-flex items-center gap-2 text-sm font-medium text-[#241b12] underline underline-offset-4 decoration-[0.5px] transition-colors hover:text-[#5c6b3f] focus-visible:text-[#5c6b3f] focus-visible:outline-none",children:[c(u?"faq.showFewer":"faq.showAll"),(0,a.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 15 15",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:(0,Q.cn)("transition-transform duration-200",u&&"rotate-180"),children:(0,a.jsx)("path",{d:"M3.5 5.5l4 4 4-4"})})]}):null]})]})})}function lz(e){let{data:t}=e,l=!1!==t.useArticleFaq,r=Array.isArray(t.currentArticleFaq)?t.currentArticleFaq:[],i=Array.isArray(t.items)?t.items:[],s=l&&r.length>0?r:i;return(0,a.jsx)(lF,{badge:t.badge,title:t.title,subtitle:t.subtitle,items:s,className:"string"==typeof t.className?t.className:void 0})}function lT(e){let{data:t}=e,l=Array.isArray(t.items)?t.items:[];return(0,a.jsx)(lF,{badge:t.badge,title:t.title,subtitle:t.subtitle,items:l,className:"string"==typeof t.className?t.className:void 0})}function l$(e){let{data:t}=e,{badge:l,title:r,subtitle:i,cta:s,items:d=[]}=t,c=(0,m.useRouter)().locale??"en",u=(0,o.useMemo)(()=>d.map(e=>({...e,descriptionHtml:e.description?(0,x.I)(e.description,c):""})),[d,c]);return r||i||d.length?(0,a.jsx)(Y.o,{padding:"xl",headerSpacing:"none",className:"relative",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 items-start gap-8 lg:grid-cols-[minmax(0,4fr)_minmax(0,5fr)] lg:gap-16",children:[(0,a.jsxs)("div",{className:"space-y-8 lg:sticky lg:top-24 lg:self-start",children:[(0,a.jsx)(Z.X3,{badge:l,title:r,de
21scription:i,alignment:"left",className:"max-w-xl"}),(null==s?void 0:s.label)&&(null==s?void 0:s.href)&&(0,a.jsx)(n.$,{asChild:!0,size:"lg",className:"border border-transparent focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:border-[#5c6b3f]",children:(0,a.jsxs)(e6(),{href:s.href,title:s.title||s.label,"aria-label":s.ariaLabel||s.label,...(0,Q.OK)(s.href),children:[s.label,(0,a.jsx)(eH.A,{className:"size-4"})]})})]}),u.length>0&&(0,a.jsx)(th.nD,{type:"single",collapsible:!0,className:"w-full",children:u.map((e,t)=>(0,a.jsxs)(th.As,{value:`item-${t}`,children:[(0,a.jsx)(th.$m,{children:e.title}),e.descriptionHtml&&(0,a.jsx)(th.ub,{children:(0,a.jsx)("div",{className:"font-light leading-relaxed text-[hsl(30,8%,40%)] [&_a]:underline [&_a]:decoration-[0.5px] [&_a]:transition-colors [&_a:hover]:text-orange-500 [&_a:focus-visible]:text-orange-500 [&_a:focus-visible]:outline-none",dangerouslySetInnerHTML:{__html:e.descriptionHtml}})})]},t))})]})}):null}var lI=l(85246),lq=l(75075),lO=l(99900);function lD(e){let{name:t}=e,l={size:18,strokeWidth:1.6,"aria-hidden":!0},r={briefcase:(0,a.jsx)(lI.A,{...l}),wand:(0,a.jsx)(w.A,{...l}),chart:(0,a.jsx)(lq.A,{...l}),users:(0,a.jsx)(b.A,{...l}),building:(0,a.jsx)(V.A,{...l}),palette:(0,a.jsx)(eG.A,{...l}),scale:(0,a.jsx)(lO.A,{...l}),star:(0,a.jsx)(C.A,{...l})};return t&&r[t]?(0,a.jsx)("span",{className:"shrink-0 text-muted-foreground",children:r[t]}):null}let lH=e=>{let t=("string"==typeof e?e:(null==e?void 0:e.title)??"").trim();return t?{title:t}:null};function lV(e){let{data:t}=e,{badge:l,title:r,subtitle:i,cta:s,items:n}=t,o=((null==n?void 0:n.values)??[]).map(lH).filter(e=>!!e),d=((null==n?void 0:n.groups)??[]).map(e=>{var t;let l=((null==e?void 0:e.items)??[]).map(lH).filter(e=>!!e);return l.length?{title:null==e||null==(t=e.title)?void 0:t.trim(),icon:null==e?void 0:e.icon,items:l}:null}).filter(Boolean),c=d.length>0;if(!c&&!o.length)return null;let u=(0,a.jsx)("svg",{className:"mt-0.5 shrink-0 text-orange-500",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M3 8.5L6.5 12L13 5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})});return(0,a.jsx)("div",{className:"w-full bg-background",children:(0,a.jsxs)(Y.o,{headerSpacing:"none",children:[(0,a.jsx)(Z.X3,{badge:l,title:r,description:i}),c?(0,a.jsx)("div",{className:"grid grid-cols-1 items-stretch gap-6 md:grid-cols-3 mt-12",children:d.map((e,t)=>(0,a.jsxs)("div",{className:"flex h-full flex-col space-y-3",children:[e.title&&(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2.5",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold text-foreground",children:(0,h.wR)(e.title)}),(0,a.jsx)(lD,{name:e.icon})]}),(0,a.jsx)(tt.Zp,{className:"rounded-3xl border bg-card flex-1",children:(0,a.jsx)(tt.Wu,{className:"flex h-full flex-col justify-center gap-3 p-6",children:e.items.map((e,t)=>(0,a.jsxs)("div",{className:"flex items-start gap-2.5",children:[u,(0,a.jsx)("span",{className:"text-sm leading-relaxed text-muted-foreground",children:e.title})]},t))})})]},t))}):(0,a.jsx)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 mt-12",children:o.map((e,t)=>(0,a.jsxs)("div",{className:"flex items-start gap-2.5",children:[u,(0,a.jsx)("span",{className:"text-sm leading-relaxed text-muted-foreground",children:e.title})]},t))}),(null==s?void 0:s.label)&&(null==s?void 0:s.href)&&(0,a.jsx)("div",{className:"mt-8",children:(0,a.jsxs)(e6(),{href:s.href,title:s.title||s.label,"aria-label":s.ariaLabel||s.label,className:"inline-flex items-center gap-2 text-sm font-semibold text-gray-900 focus-visible:outline-none",...(0,Q.OK)(s.href),children:[(0,a.jsx)("span",{className:"ulink-orange",children:s.label}),(0,a.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 11 11","aria-hidden":"true",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:"M2 9L9 2M9 2H3.5M9 2V7.5"})})]})})]})})}function lW(e){let{data:t}=e,l=(0,m.useRouter)(),r=(0,o.useMemo)(()=>t.content?(0,x.I)(t.content,l.locale??"en"):"",[t.content,l.locale]),i=t.variant??"default",s=t.spacing??("plain"===i?"compact":"default"),n="compact"===s?"gap-4":"gap-6",d=(0,a.jsxs)(a.Fragment,{children:[t.title&&(0,a.jsx)("h2",{className:"text-3xl font-semibold tracking-tight text-foreground",children:(0,h.JD)(t.title)}),(0,a.jsx)("div",{className:(0,Q.cn)("prose max-w-none text-muted-foreground leading-relaxed [&>h2]:border-t [&>h2]:border-border first:[&>h2]:mt-0 first:[&>h2]:pt-0 first:[&>h2]:border-none","compact"===s?"prose-base":"prose-lg","compact"===s?"[&>h2]:mt-6 [&>h2]:pt-2":"[&>h2]:mt-10 [&>h2]:pt-4",t.proseClassName),dangerouslySetInnerHTML:{__html:r}}
21)]});return"plain"===i?(0,a.jsx)("section",{className:(0,Q.cn)("flex w-full flex-col",n,t.className),children:d}):(0,a.jsx)(Y.o,{padding:t.padding??"xl",maxWidth:t.maxWidth??"4xl",headerSpacing:"none",children:(0,a.jsx)("article",{className:(0,Q.cn)("flex flex-col",n,t.className),children:d})})}function lB(e){let{data:t}=e,l=Array.isArray(t.items)?t.items:[];return l.length?(0,a.jsx)("section",{className:(0,Q.cn)("mx-auto w-full max-w-5xl px-4 py-10 md:py-16 space-y-10",t.className),children:l.map((e,l)=>(0,a.jsx)(lW,{data:{variant:"plain",spacing:t.spacing??"compact",...e}},`markdown-group-${l}`))}):null}function lK(e){let{meta:t,className:l}=e;return(0,a.jsxs)("p",{className:(0,Q.cn)("text-sm text-muted-foreground",l),children:[(0,a.jsx)("span",{className:"font-medium text-primary/80",children:t.label??"Last updated:"})," ",(0,a.jsx)("span",{children:t.value})]})}function lU(e){let{cta:t,href:l,className:r}=e;return(0,a.jsxs)("div",{className:(0,Q.cn)("rounded-3xl bg-card card-lift p-6",r),children:[t.title&&(0,a.jsx)("p",{className:"text-base font-semibold leading-snug text-foreground",children:t.title}),t.description&&(0,a.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-muted-foreground",children:t.description}),t.label&&(0,a.jsx)(n.$,{asChild:!0,size:"lg",className:"mt-5 w-full",children:(0,a.jsxs)("a",{href:l,...(0,Q.OK)(l),children:[t.label,(0,a.jsx)(eH.A,{className:"size-4"})]})})]})}function lJ(e){let{data:t}=e,l=(0,m.useRouter)().locale??"en",r=(0,o.useMemo)(()=>(Array.isArray(t.items)?t.items:[]).map((e,t)=>{var r;let a=e.content.match(/^##\s+(.+?)(?:\n|$)/),i=e.title??(null==a||null==(r=a[1])?void 0:r.trim())??`Section ${t+1}`,s=a?e.content.slice(a[0].length).trimStart():e.content,n=(0,x.I)(s,l);return{id:e.id??`section-${t+1}`,title:i,html:n}}),[t.items,l]);if(0===r.length)return null;let i="multiple"===t.type?{type:"multiple",defaultValue:Array.isArray(t.defaultValue)?t.defaultValue:t.defaultValue?[t.defaultValue]:void 0}:{type:"single",collapsible:!0,defaultValue:Array.isArray(t.defaultValue)?t.defaultValue[0]:t.defaultValue},s=t.meta,n=t.cta,d=(0,Q.KJ)(l,null==n?void 0:n.href);return(0,a.jsx)(Y.o,{className:t.className,headerSpacing:"none",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-3 lg:gap-10 xl:gap-12",children:[(0,a.jsx)("aside",{className:"hidden lg:order-1 lg:block",children:(0,a.jsxs)("div",{className:"sticky top-24 flex flex-col gap-8",children:[(null==s?void 0:s.value)&&(0,a.jsx)(lK,{meta:s}),n&&(0,a.jsx)(lU,{cta:n,href:d})]})}),(0,a.jsxs)("div",{className:"min-w-0 lg:order-2 lg:col-span-2",children:[(null==s?void 0:s.value)&&(0,a.jsx)(lK,{meta:s,className:"mb-6 lg:hidden"}),(0,a.jsx)(Z.X3,{badge:t.badge||void 0,title:t.title||void 0,description:t.subtitle||void 0,alignment:"left",className:"mb-8"}),(0,a.jsx)(th.nD,{...i,className:"w-full",children:r.map(e=>(0,a.jsxs)(th.As,{value:e.id,id:e.id,className:"scroll-mt-24",children:[(0,a.jsx)(th.$m,{children:e.title}),(0,a.jsx)(th.ub,{children:(0,a.jsx)("div",{className:"prose prose-lg max-w-none text-muted-foreground",dangerouslySetInnerHTML:{__html:e.html}})})]},e.id))}),n&&(0,a.jsx)(lU,{cta:n,href:d,className:"mt-12 lg:hidden"})]})]})})}var lX=l(2673);let lG={coin:R.A,users:b.A,shield:v.A,"shield-check":v.A,"badge-check":N.A,code:j.A,workflow:F.A,plug:z.A,sparkles:O.A,star:C.A,smile:S.A,key:lX.A,history:P.A,file:g.A,"pen-line":_.A};function lY(e){let{data:t}=e,{badge:l,title:r,subtitle:i,cards:s,columns:n,footnote:d}=t,c=(0,m.useRouter)().locale??"en",u=(0,o.useMemo)(()=>d?(0,x.I)(d,c):"",[d,c]),f=(0,o.useMemo)(()=>(s??[]).map(e=>({...e,items:e.items.map(e=>({...e,valueHtml:(0,x.I)(e.value??"",c)}))})),[s,c]),p=(0,o.useMemo)(()=>(n??[]).map(e=>(0,x.I)(e.content??"",c)),[n,c]);return(0,a.jsxs)(Y.o,{headerSpacing:"none",children:[(0,a.jsx)(Z.X3,{badge:l,title:r,description:i}),2===f.length&&(0,a.jsxs)("div",{className:"mt-12",children:[(0,a.jsx)("div",{className:"hidden md:block",children:(0,a.jsx)("div",{className:"overflow-hidden rounded-2xl border border-input bg-transparent",children:(0,a.jsx)("div",{className:"w-full overflow-x-auto",children:(0,a.jsxs)("table",{className:"w-full border-collapse text-sm",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"bg-card",children:[(0,a.jsx)("th",{scope:"col",className:"px-4 py-4 text-left text-xs font-semibold uppercase tracking-wide text-gray-700",children:"Feature"}),f.map((e,t)=>(0,a.jsx)("th",{scope:"col",className:"px-4 py-4 text-left text-xs font-semibold uppercase tracking-wide text-gray-700",children:e.title},t))]})}),(0,a.jsx)("tbody",{children:f[0].items.map((e,t)=>(0,a.jsxs)("tr",{className:(0,Q.cn)("border-t border-input",0===t&&"border-t-0"),children:[(0,a.jsx)("th",{scope:"row",className:"whitespace-pre-wrap px-4 py-4 text-left text-sm font-semibold text-foreground",children:e.label}),f.map((e,l)=>{var r;return(0,a.jsx)("td",{className:"px-4 py-4 align-middle text-left text-sm leading-snug text-foreground [&_p]:m-0 [&_a]:underline [&_a]:decoration-[0.5px] [&_a]:transition-colors [&_a:hover]:text-orange-500 [&_a:focus-visible]:text-orange-500 [&_a:focus-visible]:outline-none",dangerouslySetInnerHTML:{__html:(null==(r=e.items[t])?void 0:r.valueHtml)??""}},l)})]},t))})]})})})}),(0,a.jsx)("div",{className:"md:hidden space-y-4",children:f.map((e,t)=>(0,a.jsxs)("div",{className:"overflow-hidden rounded-2xl border border-input bg-transparent",children:[(0,a.jsx)("div",{className:"bg-card px-4 py-3 text-xs font-semibold uppercase tracking-wide text-gray-700",children:e.title}),(0,a.jsx)("table",{className:"w-full border-collapse text-sm",children:(0,a.jsx)("tbody",{children:e.items.map((e,t)=>(0,a.jsxs)("tr",{className:(0,Q.cn)("border-t border-input",0===t&&"border-t-0"),children:[(0,a.jsx)("th",{scope:"row",className:"w-[42%] whitespace-pre-wrap px-4 py-3 text-left align-top text-sm font-semibold text-foreground",children:e.label}),(0,a.jsx)("td",{className:"px-4 py-3 text-left align-top text-sm leading-snug text-foreground [&_p]:m-0 [&_a]:underline [&_a]:decoration-[0.5px] [&_a]:transition-colors [&_a:hover]:text-orange-500 [&_a:focus-visible]:text-orange-500 [&_a:focus-visible]:outline-none",dangerouslySetInnerHTML:{__html:e.valueHtml}}
21)]},t))})})]},t))})]}),n&&n.length>0&&(0,a.jsx)("div",{className:"mt-12 grid grid-cols-1 gap-6 md:grid-cols-2",children:n.map((e,t)=>{let l=e.icon?lG[e.icon]??null:null;return(0,a.jsxs)("div",{className:(0,Q.cn)("rounded-3xl p-8",0===t?"border border-input bg-transparent":"bg-card"),children:[(l||e.label)&&(0,a.jsxs)("div",{className:"mb-5 flex items-center gap-3",children:[e.label&&(0,a.jsx)("span",{className:"text-xs font-normal uppercase tracking-wider text-muted-foreground",children:e.label}),l&&(0,a.jsx)("span",{className:"ml-auto shrink-0 text-muted-foreground","aria-hidden":"true",children:(0,a.jsx)(l,{size:18,strokeWidth:1.6})})]}),(0,a.jsx)("h3",{className:"mb-4 text-lg font-semibold text-gray-900",children:(0,h.wR)(e.title)}),(0,a.jsx)("div",{className:"max-w-none font-light leading-relaxed text-[hsl(30,8%,40%)] [&_p]:mb-3 [&_p:last-child]:mb-0 [&_a]:underline [&_a]:decoration-[0.5px] [&_a]:transition-colors [&_a:hover]:text-orange-500 [&_a:focus-visible]:text-orange-500 [&_a:focus-visible]:outline-none [&_strong]:font-semibold [&_ul]:my-3 [&_ul]:!list-none [&_ul]:!p-0 [&_ul]:space-y-2 [&_li]:!flex [&_li]:items-start [&_li]:gap-3 [&_li>span:first-child]:!hidden [&_li]:before:content-['â'] [&_li]:before:text-[#5c6b3f] [&_li]:before:font-bold [&_li]:before:flex-shrink-0 [&_li]:before:w-4",dangerouslySetInnerHTML:{__html:p[t]??""}})]},t)})}),u&&(0,a.jsx)("div",{className:"mt-8 max-w-2xl text-left font-light leading-relaxed text-[hsl(30,8%,45%)] text-sm [&_a]:underline [&_a]:decoration-[0.5px] [&_a]:transition-colors [&_a:hover]:text-orange-500 [&_a:focus-visible]:text-orange-500 [&_a:focus-visible]:outline-none [&_strong]:font-semibold",dangerouslySetInnerHTML:{__html:u}})]})}var lZ=l(33192),lQ=l(86346);let l0=(e,t)=>"number"!=typeof e||Number.isNaN(e)?t:Math.max(1,Math.floor(e));function l1(){return(0,a.jsxs)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",className:"pointer-events-none absolute top-3.5 right-3.5 w-4 h-4 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100 transition-opacity duration-200 text-[#5c6b3f]",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,a.jsx)("line",{x1:"4",y1:"12",x2:"12",y2:"4"}),(0,a.jsx)("polyline",{points:"6 4 12 4 12 10"})]})}function l2(e){let{data:t}=e,{t:l,ready:r}=(0,i.Bd)("partnership/partnership-index"),s=(0,o.useMemo)(()=>{if(!r)return[];let e=l("companies",{returnObjects:!0});return Array.isArray(e)?e.filter(e=>!!e&&"object"==typeof e&&"string"==typeof e.id&&"string"==typeof e.name&&"string"==typeof e.logo):[]},[l,r]),n=l0(t.initialVisible,8),d=l0(t.loadMoreStep,4),[c,u]=(0,o.useState)(n);(0,o.useEffect)(()=>{u(n)},[n]);let m=s.slice(0,c),x=c<s.length,f=t.loadMoreLabel||"Load more",p=e=>t.cta?(0,a.jsxs)(Z.W_,{href:t.cta.button.href,className:`group flex w-full flex-col justify-between rounded-3xl border border-input bg-transparent p-6 focus-visible:outline-none ${e}`,children:[(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("span",{className:"dot-seq inline-block w-1.5 h-1.5 rounded-full bg-orange-500",style:{animationDelay:"0s"}}),(0,a.jsx)("span",{className:"dot-seq inline-block w-1.5 h-1.5 rounded-full bg-orange-500",style:{animationDelay:"0.75s"}}),(0,a.jsx)("span",{className:"dot-seq inline-block w-1.5 h-1.5 rounded-full bg-orange-500",style:{animationDelay:"1.5s"}})]}),(0,a.jsx)("h3",{className:"text-xl font-semibold text-gray-900",children:(0,h.wR)(t.cta.title)}),t.cta.description&&(0,a.jsx)("p",{className:"font-light leading-relaxed text-[hsl(30,8%,40%)]",children:t.cta.description})]}),(0,a.jsxs)("span",{className:"inline-flex items-center gap-1 text-sm font-semibold text-gray-900 mt-4",children:[(0,a.jsx)("span",{className:"ulink-orange",children:t.cta.button.label}),(0,a.jsx)(lZ.A,{className:"h-3.5 w-3.5"})]})]}):null;return(0,a.jsxs)(Y.o,{headerSpacing:"none",children:[(0,a.jsxs)("div",{className:"flex items-end justify-between gap-10 flex-wrap mb-10",children:[(0,a.jsx)("div",{className:"max-w-2xl",children:(0,a.jsx)(Z.X3,{badge:t.badge,title:t.title,de
21scription:t.description})}),t.verifyLink&&(0,a.jsxs)(Z.W_,{href:t.verifyLink.href,className:"inline-flex items-center gap-1 text-sm font-semibold text-gray-900 shrink-0 focus-visible:outline-none",children:[(0,a.jsx)("span",{className:"ulink-orange",children:t.verifyLink.text}),(0,a.jsx)(lZ.A,{className:"h-3.5 w-3.5"})]})]}),0===s.length?(0,a.jsx)("div",{className:"rounded-3xl border border-gray-200 p-10 text-center",children:(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Partner profiles will be published here soon."})}):(0,a.jsxs)("div",{className:"-mx-4 flex snap-x gap-5 overflow-x-auto px-4 scroll-pl-4 scroll-pr-4 scrollbar-hide sm:mx-0 sm:grid sm:grid-cols-3 sm:gap-6 sm:overflow-visible sm:px-0",children:[m.map(e=>{let t=e.website?"a":"div",l=e.website?{href:e.website,target:"_blank",rel:"noopener nofollow",referrerPolicy:"no-referrer"}:{};return(0,a.jsxs)(t,{...l,className:"group relative flex w-[60%] shrink-0 snap-start flex-col items-center justify-center gap-3 rounded-3xl border border-transparent bg-card card-lift p-6 text-center min-h-[180px] overflow-hidden focus-visible:outline-none focus-visible:border-[#5c6b3f] sm:w-auto sm:shrink",children:[(0,a.jsx)(l1,{}),(0,a.jsx)("div",{className:"flex items-center justify-center",children:(0,a.jsx)(eP(),{src:e.logo,alt:e.alt||e.name,width:120,height:60,className:"max-h-full w-auto max-w-full",style:{maxHeight:e.logoMaxHeight?`${e.logoMaxHeight}px`:"48px",transform:e.logoOffsetY?`translateY(${4*e.logoOffsetY}px)`:void 0}})})]},e.id)}),x&&(0,a.jsxs)("button",{type:"button",onClick:()=>u(e=>Math.min(e+d,s.length)),className:"group flex h-[180px] w-[60%] shrink-0 flex-col items-center justify-center gap-2 rounded-3xl border border-input p-4 text-sm font-medium text-gray-600 transition-transform duration-300 hover:-translate-y-0.5 hover:border-orange-300 focus-visible:outline-none focus-visible:border-[#5c6b3f] sm:w-full sm:shrink","aria-label":f,children:[(0,a.jsx)(lQ.A,{className:"h-6 w-6 text-gray-400 transition group-hover:text-orange-500"}),f]}),!x&&p("min-h-[180px] hidden sm:flex")]}),s.length>0&&!x&&p("mt-6 sm:hidden")]})}let l5=(e,t)=>"number"!=typeof e||Number.isNaN(e)?t:Math.max(1,Math.floor(e)),l3=e=>!!e&&"object"==typeof e&&"string"==typeof e.id&&"string"==typeof e.name,l4=e=>{let{t,ready:l}=(0,i.Bd)("certifications/certifications-index");return(0,o.useMemo)(()=>{if(!l)return[];let r=t(e,{returnObjects:!0,defaultValue:[]});return Array.isArray(r)?r.filter(l3):[]},[t,l,e])}
21,l6="flex items-center gap-4 rounded-3xl border border-transparent bg-card card-lift p-5 text-left min-h-[92px] overflow-hidden transition-colors duration-200 hover:bg-[#FBF6EA] focus-visible:outline-none focus-visible:border-[#5c6b3f] sm:flex-col sm:justify-center sm:gap-3 sm:p-6 sm:text-center sm:min-h-[180px]",l8="grid grid-cols-1 gap-4 sm:grid-cols-3 sm:gap-6";function l9(e){let{entry:t}=e,l=t.logoMaxHeight??48,r={"--logo-h":`${Math.round(.6*l)}px`,"--logo-h-tile":`${l}px`},i=(0,a.jsxs)(a.Fragment,{children:[t.logo?(0,a.jsx)("div",{className:"flex w-[72px] shrink-0 items-center justify-center sm:w-auto",children:(0,a.jsx)(eP(),{src:t.logo,alt:t.alt||t.name,width:120,height:60,className:"w-auto max-w-full max-h-[var(--logo-h)] sm:max-h-[var(--logo-h-tile)]",style:{...r,transform:t.logoOffsetY?`translateY(${4*t.logoOffsetY}px)`:void 0}})}):(0,a.jsx)("span",{className:"shrink-0 text-xl font-semibold tracking-tight text-gray-900 sm:text-2xl",children:t.name}),t.description&&(0,a.jsx)("p",{className:"font-light leading-relaxed text-[hsl(30,8%,40%)]",children:t.description})]});return t.href?(0,a.jsx)(Z.W_,{href:t.href,className:l6,children:i}):t.website?(0,a.jsx)("a",{href:t.website,target:"_blank",rel:"noopener nofollow",referrerPolicy:"no-referrer",className:l6,children:i}):(0,a.jsx)("div",{className:l6,children:i})}function l7(e){let{children:t}=e;return(0,a.jsx)("h3",{className:"mb-5",children:t})}function re(e){let{data:t}=e,l=l4("certifications"),r=l4("integrations"),i=l5(t.initialVisible,8),s=l5(t.loadMoreStep,4),[n,d]=(0,o.useState)(i);(0,o.useEffect)(()=>{d(i)},[i]);let c=l.slice(0,n),u=n<l.length,m=t.loadMoreLabel||"Load more",x=!!t.integrationsLabel&&r.length>0;return(0,a.jsxs)(Y.o,{headerSpacing:"none",children:[(0,a.jsxs)("div",{className:"flex items-end justify-between gap-10 flex-wrap mb-10",children:[(0,a.jsx)("div",{className:"max-w-2xl",children:(0,a.jsx)(Z.X3,{badge:t.badge,title:t.title,description:t.description})}),t.verifyLink&&(0,a.jsxs)(Z.W_,{href:t.verifyLink.href,className:"inline-flex items-center gap-1 text-sm font-semibold text-gray-900 shrink-0 focus-visible:outline-none",children:[(0,a.jsx)("span",{className:"ulink-orange",children:t.verifyLink.text}),(0,a.jsx)(lZ.A,{className:"h-3.5 w-3.5"})]})]}),0===l.length?(0,a.jsx)("div",{className:"rounded-3xl border border-gray-200 p-10 text-center",children:(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Certifications will be published here soon."})}):(0,a.jsxs)(a.Fragment,{children:[t.certificationsLabel&&(0,a.jsx)(l7,{children:t.certificationsLabel}),(0,a.jsxs)("div",{className:l8,children:[c.map(e=>(0,a.jsx)(l9,{entry:e},e.id)),u&&(0,a.jsxs)("button",{type:"button",onClick:()=>d(e=>Math.min(e+s,l.length)),className:"group flex h-[180px] w-full flex-col items-center justify-center gap-2 rounded-3xl border border-input p-4 text-sm font-medium text-gray-600 transition-transform duration-300 hover:-translate-y-0.5 hover:border-orange-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/60","aria-label":m,children:[(0,a.jsx)(lQ.A,{className:"h-6 w-6 text-gray-400 transition group-hover:text-orange-500"}),m]})]})]}),x&&(0,a.jsxs)("div",{className:"mt-12",children:[(0,a.jsx)(l7,{children:t.integrationsLabel}),(0,a.jsx)("div",{className:l8,children:r.map(e=>(0,a.jsx)(l9,{entry:e},e.id))})]})]})}var rt=l(39704),rl=l(20755),rr=l(2663);function ra(e){let t,{data:l}=e,[r,i]=(0,o.useState)("light"),[d,c]=(0,o.useState)("medium"),[u,m]=(0,o.useState)(!1),[x,f]=(0,o.useState)(!1),{badge:p,title:g,subtitle:b,embedCodeLabel:v="Embed Code",copiedLabel:j="Copied!",copyLabel:w="Copy code",lightThemeLabel:y="Light",darkThemeLabel:N="Dark",sizeSmallLabel:k="Small",sizeMediumLabel:M="Medium",sizeLargeLabel:C="Large",logoOnlyLabel:S="Logo only",previewLabel:A="Preview"}=l,L=(t=['src="https://chaindoc.io/widget/chaindoc-badge.js"',`data-theme="${r}"`,`data-size="${d}"`],u&&t.push('data-logo-only="true"'),`<script ${t.join(" ")}></script>`),R=async()=>{try{await navigator.clipboard.writeText(L),f(!0),setTimeout(()=>f(!1),2e3)}catch(e){console.error("Failed to copy:",e)}},E={small:{width:120,height:36,fontSize:11,logoSize:20,padding:"6px 10px",gap:6},medium:{width:160,height:44,fontSize:13,logoSize:26,padding:"8px 14px",gap:8},large:{width:200,height:52,fontSize:15,logoSize:32,padding:"10px 18px",gap:10}}[d];return(0,a.jsxs)(Y.o,{id:"partner-widget",headerSpacing:"none",children:[(0,a.jsx)(eK,{badge:p,title:g,description:b}),(0,a.jsxs)("div",{className:"max-w-4xl mx-auto",children:[(0,a.jsx)("div",{className:"bg-gray-50 dark:bg-gray-800 rounded-3xl p-6 mb-8",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"Theme"}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsxs)(n.$,{variant:"light"===r?"default":"outline",size:"sm",onClick:()=>i("light"),className:"flex items-center gap-1",children:[(0,a.jsx)(rt.A,{className:"w-4 h-4"}),y]}),(0,a.jsxs)(n.$,{variant:"dark"===r?"default":"outline",size:"sm",onClick:()=>i("dark"),className:"flex items-center gap-1",children:[(0,a.jsx)(rl.A,{className:"w-4 h-4"}),N]})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"Size"}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(n.$,{variant:"small"===d?"default":"outline",size:"sm",onClick:()=>c("small"),children:k}),(0,a.jsx)(n.$,{variant:"medium"===d?"default":"outline",size:"sm",onClick:()=>c("medium"),children:M}),(0,a.jsx)(n.$,{variant:"large"===d?"default":"outline",size:"sm",onClick:()=>c("large"),children:C})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"Style"}),(0,a.jsx)(n.$,{variant:u?"default":"outline",size:"sm",onClick:()=>m(!u),children:S})]})]})}),(0,a.jsxs)("div",{className:"mb-8",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-4",children:(0,h.wR)(A)}),(0,a.jsx)("div",{className:"flex items-center justify-center p-12 rounded-3xl border",style:{backgroundColor:"light"===r?"#f9fafb":"#1f2937",borderColor:"light"===r?"#e5e7eb":"#374151"},children:(0,a.jsxs)("a",{href:"https://chaindoc.io",target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:E.gap,padding:E.padding,background:"transparent",borderRadius:8,textDecoration:"none",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',fontSize:E.fontSize,fontWeight:500,color:{light:{background:"#111827",text:"#ffffff",border:"#374151"},dark:{background:"#f3f4f6",text:"#111827",border:"#e5e7eb"}}[r].text,transition:"all 0.2s ease",cursor:"pointer"},className:"hover:opacity-80",children:["light"===r?(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"none",style:{width:E.logoSize,height:E.logoSize,flexShrink:0},children:[(0,a.jsx)("rect",{width:"512",height:"512",rx:"100",fill:"white"}),(0,a.jsx)("path",{d:"M169 336C169 352.569 155.569 366 139 366C122.431 366 109 352.569 109 336C109 319.431 122.431 306 139 306C155.569 306 169 319.431 169 336Z",fill:"black"}),(0,a.jsx)("path",{d:"M292 366C231.249 366 182 316.751 182 256C182 195.249 231.249 146 292 146C322.543 146 350.179 158.448 370.11 178.548L341.825 206.833C329.133 193.971 311.497 186 292 186C253.34 186 222 217.34 222 256C222 294.66 253.34 326 292 326C311.671 326 329.447 317.886 342.163 304.822L370.449 333.108C350.493 353.41 322.717 366 292 366Z",fill:"black"})]}):(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"none",style:{width:E.logoSize,height:E.logoSize,flexShrink:0},children:[(0,a.jsx)("rect",{width:"512",height:"512",rx:"100",fill:"black"}),(0,a.jsx)("path",{d:"M169 336C169 352.569 155.569 366 139 366C122.431 366 109 352.569 109 336C109 319.431 122.431 306 139 306C155.569 306 169 319.431 169 336Z",fill:"white"}),(0,a.jsx)("path",{d:"M292 366C231.249 366 182 316.751 182 256C182 195.249 231.249 146 292 146C322.543 146 350.179 158.448 370.11 178.548L341.825 206.833C329.133 193.971 311.497 186 292 186C253.34 186 222 217.34 222 256C222 294.66 253.34 326 292 326C311.671 326 329.447 317.886 342.163 304.822L370.449 333.108C350.493 353.41 322.717 366 292 366Z",fill:"white"})]}),!u&&(0,a.jsx)("span",{style:{whiteSpace:"nowrap"},children:"Verified Company"})]})})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:(0,h.wR)(v)}),(0,a.jsx)(n.$,{variant:"outline",size:"sm",onClick:R,className:"flex items-center gap-2",children:x?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.A,{className:"w-4 h-4 text-green-500"}),j]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(rr.A,{className:"w-4 h-4"}),w]})})]}),(0,a.jsx)("div",{className:"relative",children:(0,a.jsx)("pre",{className:"bg-gray-900 text-gray-100 p-4 rounded-lg overflow-x-auto text-sm",children:(0,a.jsx)("code",{children:L})})})]}),(0,a.jsxs)("div",{className:"mt-8 p-6 bg-blue-50 dark:bg-blue-900/20 rounded-3xl",children:[(0,a.jsx)("h4",{className:"font-semibold text-blue-900 dark:text-blue-100 mb-2",children:"How to use"}),(0,a.jsxs)("ol",{className:"list-decimal list-inside text-blue-800 dark:text-blue-200 space-y-1 text-sm",children:[(0,a.jsx)("li",{children:"Copy the embed code above"}),(0,a.jsx)("li",{children:"Paste it into your website's HTML where you want the badge to appear"}),(0,a.jsx)("li",{children:"The widget will automatically render the Chaindoc partner badge"})]})]})]})]})}function ri(e){let{data:t}=e,{ctaButton:l,features:r,articleSlug:i,background:s}=t,d="dark"===s,c=(0,m.useRouter)().locale||"en",[u,x]=(0,o.useState)(null);(0,o.useEffect)(()=>
21{i&&(async()=>{try{let e=await fetch(`/locales/${c}/blog/articles-index.json`);if(!e.ok)return;let t=await e.json(),l=(Array.isArray(t)?t:(null==t?void 0:t.articles)||[]).find(e=>e.slug===i);l&&x(l)}catch(e){console.error("Error loading article:",e)}})()},[i,c]);let h=(0,a.jsx)(Y.o,{className:t.className,headerSpacing:"none",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8 lg:gap-12 items-center",children:[(0,a.jsxs)("div",{className:"lg:col-span-2",children:[(0,a.jsx)(eK,{badge:t.badge,title:t.title,description:t.description,alignment:"left",className:"[&>*]:text-left"}),r&&r.length>0&&(0,a.jsx)("ul",{className:"mt-6 space-y-3",children:r.map((e,t)=>(0,a.jsxs)("li",{className:"flex items-center gap-3 text-base text-gray-600",children:[(0,a.jsx)("svg",{className:"h-5 w-5 flex-shrink-0 text-orange-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),e]},t))}),l&&(0,a.jsx)("div",{className:"mt-8",children:(0,a.jsx)(n.$,{asChild:!0,size:"lg",className:"border border-transparent focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:border-[#5c6b3f]",variant:"outline"===l.type?"outline":"secondary"===l.type?"secondary":"default",children:(0,a.jsx)("a",{href:l.link,target:"_blank",rel:"noopener noreferrer",children:l.text})})})]}),u&&(0,a.jsx)("div",{className:"lg:col-span-1",children:(0,a.jsx)(tr,{article:u,bgClassName:d?"bg-[hsl(48,25%,92%)]":"bg-card"})})]})});return d?(0,a.jsx)("div",{className:"w-full bg-background",children:h}):h}function rs(e){let{data:t}=e,{locale:l}=(0,m.useRouter)();return(0,a.jsx)("section",{className:"w-full max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:(0,a.jsx)("div",{className:"hidden md:grid grid-cols-3 gap-4",children:t.items.map((e,t)=>{var r;let i=(null==(r=e.href)?void 0:r.startsWith("https://app.chaindoc.io"))?(0,Q.KJ)(l||"en",e.href):e.href,s=(0,a.jsx)("div",{className:"bg-primary/[0.07] rounded-2xl px-6 py-5 text-center text-lg font-medium text-primary",children:e.title});return i?(0,a.jsx)(e6(),{href:i,...i.startsWith("http")?{target:"_blank",rel:"noopener noreferrer"}:{},children:s},t):(0,a.jsx)("div",{children:s},t)})})})}var rn=l(76028);let ro=/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/i,rd="https://api.chaindoc.io".trim().replace(/\/+$/,""),rc=[3e3,5e3,5e3,2e3],ru=[".p7s",".xml",".xsig",".json",".jws"],rm={"signature-verify-form":{text:"-3.5deg",arrow:"6deg"},"pdf-verify-form":{text:"2.5deg",arrow:"-7deg"},"verify-asic-form":{text:"-2deg",arrow:"8deg"},"verify-cades-form":{text:"3deg",arrow:"-5deg"},"verify-xades-form":{text:"-4deg",arrow:"4.5deg"}},rx={text:"-3deg",arrow:"5deg"};function rh(e){var t,l,r,d,c;let u,x,{data:f,namespace:p="forms/PdfVerifyForm",accept:b=".pdf,application/pdf",acceptedExtensions:v=[".pdf"],maxFileSizeBytes:j=0x3200000,formId:w="pdf-verify-form"}=e,{t:y}=(0,i.Bd)(p),{toast:N}=(0,tK.d)(),k=(0,m.useRouter)(),[C,S]=(0,o.useState)("upload"),[A,L]=(0,o.useState)(""),[R,E]=(0,o.useState)(null),[P,_]=(0,o.useState)(null),[F,z]=(0,o.useState)(!1),[T,$]=(0,o.useState)(""),[I,q]=(0,o.useState)(!1),[O,D]=(0,o.useState)(0),[H,V]=(0,o.useState)({}),[W,B]=(0,o.useState)(0),[K,U]=(0,o.useState)(!1),[J,X]=(0,o.useState)(!1),[G,ee]=(0,o.useState)(!1),[et,el]=(0,o.useState)(null),er=(0,o.useRef)(!1),ea=(0,o.useRef)(null),ei=(0,o.useRef)(null);(0,o.useEffect)(()=>{if(O<=0)return;let e=setInterval(()=>{D(e=>Math.max(0,e-1))},1e3);return()=>clearInterval(e)},[O]),(0,o.useEffect)(()=>{if("otp"===C){let e=setTimeout(()=>{var e;null==(e=ea.current)||e.focus({preventScroll:!0})},0);return()=>clearTimeout(e)}},[C]),(0,o.useEffect)(()=>{if("processing"!==C)return;let e=[],t=0;for(let l=0;l<3;l++){t+=rc[l];let r=l+1;e.push(setTimeout(()=>{B(r)},t))}return t+=rc[3],e.push(setTimeout(()=>{ee(!0)},t)),()=>e.forEach(clearTimeout)},[C]),(0,o.useEffect)(()=>{if(!G||!J)return;B(4);let e=setTimeout(()=>{S("ready")},2e3);return()=>clearTimeout(e)},[G,J]);let es=(0,o.useCallback)(async(e,t)=>{let l=new FormData;l.append("file",e),t&&l.append("originalFiles",t);let r=await fetch(`${rd}
21/signature/validate-signature`,{method:"POST",credentials:"include",body:l});if(!r.ok)throw Error("verificationFailed");return r.json()},[]),en=(0,o.useCallback)(e=>{var t;let l=null==(t=e.target.files)?void 0:t[0];l&&(E(l),_(null),z(!1),V(e=>({...e,file:""})))},[]),eo=(0,o.useCallback)(()=>{E(null),_(null),z(!1)},[]),ed=(0,o.useCallback)(e=>{var t;let l=null==(t=e.target.files)?void 0:t[0];l&&(_(l),V(e=>({...e,submit:""})))},[]),ec=(0,o.useCallback)(()=>{_(null)},[]),eu=(0,o.useCallback)(async(e,t)=>{try{let l=await es(e,t);if((null==l?void 0:l.code)==="ORIGINAL_DOCUMENT_REQUIRED"&&!t){z(!0),S("upload"),B(0),X(!1),ee(!1),er.current=!1,V({submit:y("errors.originalRequired")}),q(!1);return}el((null==l?void 0:l.verificationId)??null),er.current=!0,X(!0)}catch{S("upload"),V({submit:y("errors.verificationFailed")}),q(!1)}},[es,y]),em=(0,o.useCallback)(async e=>{if(e.preventDefault(),!I){if("upload"===C){let e={};if(!K&&(A.trim()?ro.test(A)||(e.email=y("errors.emailInvalid")):e.email=y("errors.emailRequired")),R?v.some(e=>R.name.toLowerCase().endsWith(e.toLowerCase()))?R.size>j&&(e.file=y("errors.fileTooLarge")):e.file=y("errors.fileInvalid"):e.file=y("errors.fileRequired"),Object.keys(e).length>0)return void V(e);q(!0),V({});try{if(K){S("processing"),B(0),X(!1),ee(!1),er.current=!1,eu(R,P);return}if(!(await fetch(`${rd}/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:A.trim().toLowerCase()})})).ok)throw Error("otpFailed");D(60),S("otp"),N({title:y("otp.sentTitle"),description:y("otp.sentDescription")})}catch{V({submit:y("errors.otpFailed")})}finally{q(!1)}return}if("otp"===C){if(6!==T.length)return void V({otp:y("otp.codeRequired")});if(!R)return;q(!0),V({}),S("processing"),B(0),X(!1),ee(!1),er.current=!1;try{let e=await fetch(`${rd}/auth/verify-email`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({code:T,email:A.trim().toLowerCase()})});if(!e.ok){var t,l;let r=await e.json().catch(()=>({}));if("INVALID_CODE"===r.code||(null==(t=r.message)?void 0:t.includes("invalid"))){S("otp"),V({otp:y("otp.invalid")});return}if("CODE_EXPIRED"===r.code||(null==(l=r.message)?void 0:l.includes("expired"))){S("otp"),V({otp:y("otp.expired")});return}throw Error("otpFailed")}U(!0),eu(R,P)}catch{S("otp"),V({submit:y("errors.verificationFailed")})}finally{q(!1)}}}},[C,A,R,P,T,I,K,v,j,y,N,eu]),ex=(0,o.useCallback)(async()=>{if(!(O>0)&&!I){q(!0);try{if(!(await fetch(`${rd}/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:A.trim().toLowerCase()})})).ok)throw Error("otpFailed");D(60),N({title:y("otp.sentTitle"),description:y("otp.sentDescription")})}catch{N({title:"Error",description:y("errors.otpFailed"),variant:"destructive"})}finally{q(!1)}}},[O,A,I,y,N]),eh=(0,o.useCallback)(()=>{S("upload"),$(""),V({})},[]),ef=(0,o.useCallback)(()=>{S("upload"),E(null),_(null),z(!1),$(""),V({}),el(null),B(0),X(!1),ee(!1),er.current=!1},[]),ep=R?`.${R.name.toLowerCase().split(".").pop()??""}`:"",eg=!!R&&(ru.includes(ep)||F),eb=k.locale||"en",ev=et?(0,Q.KJ)(eb,`${Q.ar}/verifications/${et}`):null;(0,o.useEffect)(()=>{"ready"===C&&ev&&(window.location.href=ev)},[C,ev]);let ej=f.badge??y("badge",{defaultValue:""}),ew=f.title??y("title"),ey=f.subtitle??y("subtitle"),eN=!0===f.headerHoisted,ek=f.checklist??y("checklist",{returnObjects:!0}),eM=Array.isArray(ek)?ek:[],eC=y("checklistTitle",{defaultValue:""}),eS=y("nudge",{defaultValue:""}),eA=f.notice??y("notice",{defaultValue:""}),eL=rm[w]??rx,eR=y("checklistCta",{defaultValue:""}),eE={...f.banner??{},title:(null==(t=f.banner)?void 0:t.title)??(eC||void 0),bullets:(null==(l=f.banner)?void 0:l.bullets)??eM,ctaButton:(null==(r=f.banner)?void 0:r.ctaButton)??(eR?{type:"primary",text:eR,link:`${Q.ar}/verifications`}:void 0)},eP=((null==(d=eE.bullets)?void 0:d.length)??0)>0,e_=(null==(c=eE.ctaButton)?void 0:c.link)?(0,Q.KJ)(eb,eE.ctaButton.link):void 0;return(0,a.jsx)("div",{className:"w-full bg-background",id:w,children:(0,a.jsxs)(Y.o,{className:(0,Q.cn)(eN&&"pt-0 sm:pt-0 lg:pt-0"),children:[!eN&&(0,a.jsx)(Z.X3,{badge:ej,title:ew,description:ey}),(0,a.jsxs)("div",{className:"relative",children:[eS&&(0,a.jsxs)("div",{className:"pointer-events-none absolute -top-[45px] right-2 z-10 hidden select-none xl:block",children:[(0,a.jsx)("p",{className:"whitespace-nowrap text-2xl leading-none text-[#5c6b3f]",style:{fontFamily:tT[0].fontFamily,transform:`rotate(${eL.text})`,transformOrigin:"100% 100%"},children:eS}),(0,a.jsx)("span",{"aria-hidden":"true",className:"ml-auto mr-[52px] mt-1 block h-[56px] w-[56px] bg-[#5c6b3f]",style:{maskImage:"url(/images/arrows/hairline/loop-down.svg)",maskRepeat:"no-repeat",maskSize:"contain",WebkitMaskImage:"url(/images/arrows/hairline/loop-down.svg)",WebkitMaskRepeat:"no-repeat",WebkitMaskSize:"contain",transform:`rotate(${eL.arrow})`}})]}),(0,a.jsx)("div",{className:(0,Q.cn)("card-lift overflow-hidden rounded-3xl bg-card",eN?eS?"mt-0 xl:mt-10":"mt-0":"mt-10"),children:(0,a.jsxs)("div",{className:(0,Q.cn)("grid",eP&&"lg:grid-cols-2"),children:[(0,a.jsx)("div",{className:(0,Q.cn)("p-6 sm:p-8 lg:p-10",eP&&"border-b border-input lg:border-b-0 lg:border-r"),children:"ready"===C?(0,a.jsxs)("div",{className:"flex flex-col items-center gap-6 py-4 text-center",children:[(0,a.jsxs)("div",{className:"relative flex items-center justify-center",children:[(0,a.jsx)("span",{className:"ring-pulse absolute inset-0 rounded-full border border-orange-200","aria-hidden":"true"}),(0,a.jsx)("div",{className:"relative flex h-14 w-14 items-center justify-center rounded-full border border-[#d4dabb] bg-white shadow-sm",children:(0,a.jsx)(M.A,{className:"h-7 w-7 text-[#5c6b3f]","aria-hidden":!0})})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold text-foreground",children:(0,h.wR)(y("ready.title"))}),(0,a.jsx)("p",{className:"mx-auto max-w-md text-sm text-muted-foreground",children:y("ready.privacyNote")})]}),(0,a.jsxs)("div",{className:"flex w-full flex-col items-center gap-3",children:[ev&&(0,a.jsx)(n.$,{asChild:!0,className:"w-full sm:w-auto
21sm:min-w-[220px]",children:(0,a.jsxs)("a",{href:ev,...(0,Q.OK)(ev),children:[y("ready.openInApp"),(0,a.jsx)(eH.A,{className:"ml-2 h-4 w-4","aria-hidden":!0})]})}),(0,a.jsx)(n.$,{type:"button",variant:"ghost",onClick:ef,children:y("ready.verifyAnother")})]})]}):(0,a.jsxs)("form",{className:"flex flex-col gap-10",onSubmit:em,children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"pdf-verify-email",className:"mb-1 block text-sm text-[hsl(30,8%,40%)]",children:y("fields.email.label")}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:gap-3",children:[(0,a.jsx)(tO.p,{id:"pdf-verify-email",type:"email",placeholder:y("fields.email.placeholder"),value:A,onChange:e=>{L(e.target.value),H.email&&V(e=>({...e,email:""}))},disabled:I||"upload"!==C,className:(0,Q.cn)("w-full",tS.N,H.email&&"border-destructive focus-visible:ring-destructive/30")}),"upload"!==C&&(0,a.jsx)(n.$,{type:"button",variant:"outline",onClick:eh,disabled:I,className:"h-9 w-full sm:w-auto sm:min-w-[140px] border-input",children:y("otp.change")})]}),H.email&&(0,a.jsx)("p",{className:"mt-2 text-sm text-destructive",children:H.email}),(0,a.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:y("fields.email.helper")})]}),"processing"!==C&&(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"mb-1 block text-sm text-[hsl(30,8%,40%)]",children:y("fields.file.label")}),(0,a.jsx)("input",{ref:ei,type:"file",accept:b,className:"hidden",onChange:en}),R?(0,a.jsxs)("div",{className:(0,Q.cn)("flex h-full min-h-40 w-full flex-col items-center justify-center gap-4 roun
21ded-3xl border border-input p-6 text-center",tS.N),children:[(0,a.jsx)("div",{className:"flex h-12 w-12 items-center justify-center rounded-full border border-input",children:(0,a.jsx)(g.A,{className:"h-6 w-6 text-[#5c6b3f]","aria-hidden":!0})}),(0,a.jsx)("div",{className:"w-full",children:(0,a.jsx)("p",{className:"truncate text-sm text-foreground",title:R.name,children:R.name})}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2",children:[(0,a.jsx)(n.$,{type:"button",variant:"outline",size:"sm",onClick:()=>{var e;return null==(e=ei.current)?void 0:e.click()},disabled:I,className:"min-w-[160px] rounded-md px-4 border-input",children:y("fields.file.button")}),(0,a.jsxs)(n.$,{type:"button",variant:"ghost",size:"sm",onClick:eo,disabled:I,children:[(0,a.jsx)(eZ.A,{className:"mr-1 h-4 w-4","aria-hidden":!0}),"Remove"]})]})]}):(0,a.jsx)(tC,{accept:b,buttonLabel:y("fields.file.button"),dropMessage:y("fields.file.dropMessage"),helperText:void 0,onChange:en,disabled:I,surfaceClassName:(0,Q.cn)(tS.N,H.file&&"border-red-500"),className:"min-h-[160px]"}),H.file&&(0,a.jsx)("p",{className:"mt-2 text-sm text-red-500",children:H.file}),eg&&(0,a.jsxs)("div",{className:"mt-6",children:[(0,a.jsx)("label",{className:"mb-1 block text-sm text-[hsl(30,8%,40%)]",children:y("fields.original.label")}),(0,a.jsx)("p",{className:"mb-2 text-xs text-muted-foreground",children:y("fields.original.hint")}),P?(0,a.jsxs)("div",{className:(0,Q.cn)("flex items-center justify-between gap-3 rounded-2xl border border-input px-4 py-3",tS.N),children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,a.jsx)(g.A,{className:"h-5 w-5 shrink-0 text-[#5c6b3f]","aria-hidden":!0}),(0,a.jsx)("span",{className:"truncate text-sm text-foreground",title:P.name,children:P.name})]}),(0,a.jsxs)(n.$,{type:"button",variant:"ghost",size:"sm",onClick:ec,disabled:I,children:[(0,a.jsx)(eZ.A,{className:"mr-1 h-4 w-4","aria-hidden":!0}),"Remove"]})]}):(0,a.jsx)(tC,{buttonLabel:y("fields.original.button"),onChange:ed,disabled:I,surfaceClassName:tS.N,className:"min-h-[120px]"})]})]}),"otp"===C&&(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)("div",{className:"text-sm text-muted-foreground",children:y("otp.message",{email:A}).split(A).map((e,t,l)=>(0,a.jsxs)("span",{children:[e,t<l.length-1&&(0,a.jsx)("strong",{className:"font-semibold text-foreground",children:A})]},t))}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("label",{className:"text-sm text-[hsl(30,8%,40%)]",children:y("otp.code.label")}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[(0,a.jsxs)(tH,{ref:ea,maxLength:6,value:T,onChange:e=>{$(e.replace(/[^0-9]/g,"").slice(0,6)),H.otp&&V(e=>({...e,otp:""}))},inputMode:"numeric",pattern:"^[0-9]*$","aria-label":y("otp.code.label"),containerClassName:"justify-start gap-2",disabled:I,children:[(0,a.jsxs)(tV,{className:"gap-2",children:[(0,a.jsx)(tW,{index:0,className:tS.N}),(0,a.jsx)(tW,{index:1,className:tS.N}),(0,a.jsx)(tW,{index:2,className:tS.N})]}),(0,a.jsx)(tB,{className:"px-1"}),(0,a.jsxs)(tV,{className:"gap-2",children:[(0,a.jsx)(tW,{index:3,className:tS.N}),(0,a.jsx)(tW,{index:4,className:tS.N}),(0,a.jsx)(tW,{index:5,className:tS.N})]})]}),(0,a.jsxs)(n.$,{type:"button",variant:"outline",onClick:ex,disabled:O>0||I,className:(0,Q.cn)(tS.M,"h-8 w-full border-input sm:w-auto sm:min-w-[180px]"),children:[I?y("otp.resend.sending"):y("otp.resend.label"),O>0&&!I&&(0,a.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:(u=Math.floor(O/60).toString().padStart(2,"0"),x=(O%60).toString().padStart(2,"0"),`${u}:${x}`)})]})]}),H.otp&&(0,a.jsx)("p",{className:"text-sm text-destructive",children:H.otp}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:y("otp.code.help")})]})]}),"processing"===C&&(0,a.jsx)("div",{className:"space-y-4",children:(0,a.jsx)("div",{className:"space-y-2",children:[0,1,2,3].map(e=>{let t=y(`processing.steps.${e}`,{defaultValue:""}),l=W===e,r=W>e;return(0,a.jsxs)("div",{className:(0,Q.cn)("flex items-center gap-2 px-4 py-2 rounded transition-colors",l&&"text-foreground",r&&"text-foreground",!l&&!r&&"text-muted-foreground"),children:[r?(0,a.jsx)(s.A,{className:"h-4 w-4 text-[#5c6b3f]"}):l?(0,a.jsx)(rn.A,{className:"h-4 w-4 animate-spin text-[#5c6b3f]"}
21):(0,a.jsx)("div",{className:"h-4 w-4 rounded-full border-2"}),(0,a.jsx)("span",{className:"text-sm",children:t})]},e)})})}),H.submit&&(0,a.jsx)("p",{className:"text-sm text-red-500 text-center",children:H.submit}),(0,a.jsx)("div",{className:"flex flex-col gap-6",children:(0,a.jsx)("div",{className:"flex justify-start",children:(0,a.jsx)(n.$,{type:"submit",disabled:I||"processing"===C,className:(0,Q.cn)(tS.M,"w-full border border-transparent sm:w-auto sm:min-w-[200px]"),children:I?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(rn.A,{className:"h-4 w-4 animate-spin mr-2"}),y("buttons.submitting")]}):"otp"===C?y("buttons.verify"):y("buttons.submit")})})})]})}),eP?(0,a.jsx)(tb.F,{banner:eE,ctaHref:e_}):null]})})]}),eA&&(0,a.jsxs)("p",{className:"mt-6 flex max-w-3xl items-start gap-3 text-base leading-relaxed text-muted-foreground",children:[(0,a.jsx)(Z.yY,{}),(0,a.jsx)("span",{className:"text-pretty",children:eA})]})]})})}function rf(e){let{data:t}=e;return(0,a.jsx)(rh,{data:t,namespace:"forms/PdfVerifyForm",accept:".pdf,application/pdf",acceptedExtensions:[".pdf"],maxFileSizeBytes:0x3200000,formId:"pdf-verify-form"})}var rp=l(52187),rg=l.n(rp),rb=l(98451),rv=l(77753);let rj="https://api.chaindoc.io".trim().replace(/\/+$/,""),rw=new Set(["PLUS_ADDRESSING_NOT_ALLOWED","CODE_NOT_VALID","CODE_EXPIRED","MAIL_THROTTLED","VALIDATION_FAILED","SESSION_NOT_PROVIDED","SESSION_INVALID","ACCOUNT_BANNED","ACCOUNT_DELETED","HANDOFF_OWNER_MISMATCH","HANDOFF_NOT_AVAILABLE","RATE_LIMITED"]);class ry extends Error{constructor(e,t,l=[]){super(e),this.name="HandoffError",this.errorKey=e,this.status=t,this.properties=l}}async function rN(e,t){let l;try{l=await fetch(`${rj}${e}`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(t)})}catch{throw new ry("NETWORK",0)}let r=await l.json().catch(()=>null);if(!l.ok)throw new ry(function(e){if("object"!=typeof e||null===e)return"UNKNOWN";let{errorKey:t}=e;return"string"==typeof t&&rw.has(t)?t:"UNKNOWN"}(r),l.status,function(e){if("object"!=typeof e||null===e)return[];let{message:t}=e;return Array.isArray(t)?t.map(e=>"object"==typeof e&&null!==e?e.property:void 0).filter(e=>"string"==typeof e):[]}(r));return r}var rk=l(12878);let rM=/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/i;function rC(){let{t:e}=(0,i.Bd)("forms/SignatureGeneratorForm"),{toast:t}=(0,tK.d)(),{locale:l}=(0,m.useRouter)(),[r,s]=(0,o.useState)("form"),[d,c]=(0,o.useState)(""),[u,x]=(0,o.useState)(""),[h,f]=(0,o.useState)(""),[p,g]=(0,o.useState)(""),[b,v]=(0,o.useState)({}),[j,w]=(0,o.useState)(!1),[y,N]=(0,o.useState)(!1),[k,M]=(0,o.useState)(0),[C,S]=(0,o.useState)(0),A=(0,o.useRef)(null);(0,o.useEffect)(()=>{if("code"!==r||k<=0&&C<=0)return;let e=setInterval(()=>{M(e=>Math.max(0,e-1)),S(e=>Math.max(0,e-1))},1e3);return()=>clearInterval(e)},[r,k,C]),(0,o.useEffect)(()=>{if("code"!==r)return;let e=setTimeout(()=>{var e;return null==(e=A.current)?void 0:e.focus({preventScroll:!0})},0);return()=>clearTimeout(e)},[r]);let L=(0,o.useCallback)(t=>{let l={form:e("ai.errors.generic")};if(!(t instanceof ry))return void v(l);switch(t.errorKey){case"PLUS_ADDRESSING_NOT_ALLOWED":v({email:e("ai.errors.plusAddressing")});return;case"CODE_NOT_VALID":v({code:e("ai.errors.codeInvalid")});return;case"CODE_EXPIRED":v({code:e("ai.errors.codeExpired")}),S(0);return;case"ACCOUNT_BANNED":v({form:e("ai.errors.accountBanned")});return;case"ACCOUNT_DELETED":v({form:e("ai.errors.accountDeleted")});return;case"RATE_LIMITED":v({form:e("ai.errors.rateLimited")});return;case"VALIDATION_FAILED":{let r={};for(let l of t.properties)"firstName"===l&&(r.firstName=e("ai.errors.nameTooLong")),"lastName"===l&&(r.lastName=e("ai.errors.nameTooLong")),"expectedOwnerEmail"===l&&(r.email=e("ai.errors.emailInvalid"));v(Object.keys(r).length>0?r:l),s("form");return}default:v(l)}},[e]),R=(0,o.useCallback)(async()=>{try{var e;let{handoffId:t}=await (e={firstName:d.trim(),lastName:u.trim(),expectedOwnerEmail:h.trim().toLowerCase()},rN("/ai-signature/handoff",e));return!function(e,t){let l=(0,Q.KJ)(t,`${Q.ar}/account-settings?tab=signatures&handoff=${encodeURIComponent(e)}`),r=window.open(l,"_blank");if(!r){window.location.href=l;return}try{r.opener=null}catch{}}(t,l),s("form"),g(""),N(!0),"done"}catch(e){if(e instanceof ry&&("SESSION_NOT_PROVIDED"===e.errorKey||"SESSION_INVALID"===e.errorKey||"HANDOFF_OWNER_MISMATCH"===e.errorKey))return"needs-code";return L(e),"failed"}},[d,u,h,l,L]),E=(0,o.useCallback)(async()=>{try{var l;return await (l=h.trim().toLowerCase(),rN("/auth/login",{email:l}
21)),M(60),S(120),s("code"),t({title:e("ai.code.sentTitle"),description:e("ai.code.sentDescription")}),!0}catch(e){if(e instanceof ry&&"MAIL_THROTTLED"===e.errorKey)return M(60),S(60),s("code"),!0;return L(e),!1}},[h,L,t,e]),P=(0,o.useCallback)(()=>{let t={};return d.trim()?d.trim().length>63&&(t.firstName=e("ai.errors.nameTooLong")):t.firstName=e("ai.errors.firstNameRequired"),u.trim()?u.trim().length>63&&(t.lastName=e("ai.errors.nameTooLong")):t.lastName=e("ai.errors.lastNameRequired"),h.trim()?rM.test(h.trim())||(t.email=e("ai.errors.emailInvalid")):t.email=e("ai.errors.emailRequired"),Object.keys(t).length>0?t:null},[d,u,h,e]),_=(0,o.useCallback)(async e=>{if(e.preventDefault(),j)return;let t=P();if(t)return void v(t);w(!0),v({}),N(!1);try{await R()==="needs-code"&&await E()}finally{w(!1)}},[j,P,R,E]),F=(0,o.useCallback)(async t=>{if(t.preventDefault(),!j){if(6!==p.length)return void v({code:e("ai.errors.codeRequired")});w(!0),v({});try{var l;await (l=h.trim().toLowerCase(),rN("/auth/verify-email",{email:l,code:p}));let t=await R();"needs-code"===t&&v({form:e("ai.errors.generic")})}catch(e){L(e)}finally{w(!1)}}},[j,p,h,R,L,e]),z=(0,o.useCallback)(async()=>{if(!(k>0)&&!j){w(!0),v({}),g("");try{await E()}finally{w(!1)}}},[k,j,E]),T=(0,o.useCallback)(()=>{s("form"),g(""),v({})},[]),$=e=>t=>{e(t.target.value),y&&N(!1)},I="mb-2 block text-sm text-[hsl(30,8%,40%)]",q="mt-2 text-sm text-red-700";if("code"===r){let t=h.trim().toLowerCase();return(0,a.jsxs)("form",{onSubmit:F,noValidate:!0,className:"flex h-full flex-col",children:[(0,a.jsx)("p",{className:"text-sm text-[hsl(30,8%,40%)]",children:e("ai.code.message",{email:t}).split(t).map((e,l,r)=>(0,a.jsxs)("span",{children:[e,l<r.length-1&&(0,a.jsx)("strong",{className:"font-semibold text-foreground",children:t})]},l))}),(0,a.jsx)("label",{htmlFor:"ai-signature-code",className:(0,Q.cn)(I,"mt-6"),children:e("ai.code.label")}),(0,a.jsxs)(tH,{ref:A,id:"ai-signature-code",maxLength:6,value:p,onChange:e=>{g(e.replace(/[^0-9]/g,"").slice(0,6)),b.code&&v(e=>({...e,code:void 0}))},inputMode:"numeric",pattern:"^[0-9]*$","aria-label":e("ai.code.label"),containerClassName:"justify-start gap-2",disabled:j,children:[(0,a.jsxs)(tV,{className:"gap-2",children:[(0,a.jsx)(tW,{index:0}),(0,a.jsx)(tW,{index:1}),(0,a.jsx)(tW,{index:2})]}),(0,a.jsx)(tB,{className:"px-1"}),(0,a.jsxs)(tV,{className:"gap-2",children:[(0,a.jsx)(tW,{index:3}),(0,a.jsx)(tW,{index:4}),(0,a.jsx)(tW,{index:5})]})]}),b.code&&(0,a.jsx)("p",{className:q,children:b.code}),(0,a.jsx)("p",{className:"mt-3 text-sm text-[hsl(30,8%,40%)]",children:C>0?e("ai.code.expiresIn",{time:`${Math.floor(C/60)}:${(C%60).toString().padStart(2,"0")}`}):e("ai.code.expired")}),b.form&&(0,a.jsx)("p",{className:q,children:b.form}),(0,a.jsxs)("div",{className:"mt-auto flex flex-wrap items-center gap-3 pt-6",children:[(0,a.jsxs)(n.$,{type:"submit",disabled:j||6!==p.length,className:(0,Q.cn)(tS.M,"border border-transparent"),children:[j?(0,a.jsx)(rn.A,{className:"mr-2 h-4 w-4 animate-spin","aria-hidden":"true"}):(0,a.jsx)(eH.A,{className:"mr-2 h-4 w-4","aria-hidden":"true"}),e("ai.actions.continue")]}),(0,a.jsx)(n.$,{type:"button",variant:"outline",onClick:z,disabled:k>0||j,className:tS.M,children:k>0?e("ai.code.resendIn",{seconds:k}):e("ai.code.resend")}),(0,a.jsx)("button",{type:"button",onClick:T,className:"text-sm text-[hsl(30,8%,40%)] underline underline-offset-4 hover:text-foreground",children:e("ai.actions.changeEmail")})]})]})}return(0,a.jsxs)("form",{onSubmit:_,noValidate:!0,className:"flex h-full flex-col",children:[(0,a.jsx)("p",{className:"text-sm text-[hsl(30,8%,40%)]",children:e("ai.hint")}),(0,a.jsxs)("div",{className:"mt-6 grid gap-4 sm:grid-cols-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"ai-first-name",className:I,children:e("fields.firstName.label")}),(0,a.jsx)(tO.p,{id:"ai-first-name",value:d,maxLength:63,placeholder:e("fields.firstName.placeholder"),"aria-invalid":!!b.firstName,onChange:$(c),className:tS.N}),b.firstName&&(0,a.jsx)("p",{className:q,children:b.firstName})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"ai-last-name",className:I,children:e("fields.lastName.label")}),(0,a.jsx)(tO.p,{id:"ai-last-name",value:u,maxLength:63,placeholder:e("fields.lastName.placeholder"),"aria-invalid":!!b.lastName,onChange:$(x),className:tS.N}),b.lastName&&(0,a.jsx)("p",{className:q,children:b.lastName})]})]}),(0,a.jsx)("label",{htmlFor:"ai-email",className:(0,Q.cn)(I,"mt-5"),children:e("ai.fields.email.label")}),(0,a.jsx)(tO.p,{id:"ai-email",type:"email",value:h,placeholder:e("ai.fields.email.placeholder"),"aria-invalid":!!b.email,onChange:$(f),className:tS.N}),b.email&&(0,a.jsx)("p",{className:q,children:b.email}),b.form&&(0,a.jsx)("p",{className:q,children:b.form}),(0,a.jsxs)("div",{className:"mt-5 flex flex-1 items-start gap-3 rounded-xl border border-input px-4 py-3",children:[(0,a.jsx)(rk.A,{"aria-hidden":"true",className:"mt-0.5 h-4 w-4 shrink-0 text-[hsl(30,8%,35%)]"}),(0,a.jsx)("p",{className:"text-sm leading-relaxed text-[hsl(30,8%,35%)]",children:e("ai.note")})]}),(0,a.jsx)("div",{className:"mt-6",children:(0,a.jsxs)(n.$,{type:"submit",disabled:j,className:(0,Q.cn)(tS.M,"border border-transparent"),children:[j?(0,a.jsx)(rn.A,{className:"mr-2 h-4 w-4 animate-spin","aria-hidden":"true"}):(0,a.jsx)(O.A,{className:"mr-2 h-4 w-4","aria-hidden":"true"}),e("ai.actions.submit")]})}),y&&(0,a.jsx)("p",{className:"mt-3 text-sm text-[#404a2b]",role:"status","aria-live":"polite",children:e("ai.openedInNewTab")})]})}var rS=l(5164);let rA="col-start-1 row-start-1 mt-0 flex h-full flex-col data-[state=inactive]:invisible data-[state=inactive]:pointer-events-none",rL="relative overflow-hidden rounded-xl bg-[#FBF8F1]",rR={border:"1px solid hsl(var(--input))"},rE="#111111",rP=`url("data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12'><circle cx='6' cy='6' r='4' fill='${rE}'/></svg>`)}") 6 6, crosshair`;function r_(e){var t;let{data:l}=e,{t:r}=(0,i.Bd)("forms/SignatureGeneratorForm"),{locale:d}=(0,m.useRouter)(),[c,u]=(0,o.useState)("draw"),[x,f]=(0,o.useState)(""),[p,g]=(0,o.useState)(""),[b,v]=(0,o.useState)(t$),[j,w]=(0,o.useState)(!1),[y,N]=(0,o.useState)(!1),k=(0,o.useRef)(null),[M,C]=(0,o.useState)(!1);(0,o.useEffect)(()=>C(!0),[]);let S=l.banner,A=!!S,L=(null==S||null==(t=S.ctaButton)?void 0:t.link)?(0,Q.KJ)(d,S.ctaButton.link):void 0,R=(0,o.useMemo)(()=>`${x.trim()} ${p.trim()}`.trim(),[x,p]),E=(0,o.useMemo)(()=>tI(R,b),[R,b]),P=tT.find(e=>e.id===b)??tT[0],[_,F]=(0,o.useState)(!1),z=(0,o.useId)(),T=function(e,t){let l=(0,o.useRef)(null),r=(0,o.useRef)(new Map),[a,i]=(0,o.useState)(null),s=(0,o.useCallback)(e=>{let t=l.current,a=r.current.get(e);if(!t||!a)return;let s=t.getBoundingClientRect(),n=a.getBoundingClientRect();
21i({top:n.top-s.top,left:n.left-s.left,width:n.width,height:n.height})},[]);return(0,o.useEffect)(()=>{e?requestAnimationFrame(()=>s(t)):i(null)},[e,t,s]),{listRef:l,registerItem:(0,o.useCallback)(e=>t=>{t&&r.current.set(e,t)},[]),highlight:a,moveHighlight:s,focusActive:(0,o.useCallback)(()=>{var e;null==(e=r.current.get(t))||e.focus()},[t])}}(_,b),$=(0,o.useCallback)(()=>{if("draw"===c){var e;null==(e=k.current)||e.clear(),w(!1)}else f(""),g("")},[c]),I="draw"===c?j:R.length>0,q=(0,o.useCallback)(e=>{let t=document.createElement("a");t.href=e,t.download="signature.png",document.body.appendChild(t),t.click(),document.body.removeChild(t)},[]),D=(0,o.useCallback)(async()=>{if("draw"===c){let e=k.current;if(!e||e.isEmpty())return;q(e.getTrimmedCanvas().toDataURL("image/png"));return}let e=R.trim();if(e){N(!0);try{let{fontFamily:t,italic:l}=tI(e,b),r=await tq(e,t,{italic:l});r&&q(r.dataUrl)}finally{N(!1)}}},[c,R,b,q]),H=(0,h.wR)(l.title??r("title")),V=l.subtitle??r("subtitle"),W=(0,a.jsxs)("div",{className:"mt-6 flex flex-wrap items-center gap-3",children:[(0,a.jsxs)(n.$,{onClick:D,disabled:!I||y,className:(0,Q.cn)(tS.M,"border border-transparent"),children:[(0,a.jsx)(eM.A,{className:"mr-2 h-4 w-4"}),r("actions.download")]}),(0,a.jsxs)(n.$,{variant:"outline",onClick:$,className:tS.M,children:[(0,a.jsx)(eY.A,{className:"mr-2 h-4 w-4"}),r("actions.clear")]})]});return(0,a.jsxs)(Y.o,{id:"signature-generator-form",children:[(0,a.jsx)(Z.X3,{badge:l.badge??r("badge"),title:H,description:V}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("div",{className:"pointer-events-none absolute -top-[2px] left-[32%] z-10 hidden select-none lg:block",children:[(0,a.jsx)("p",{className:"whitespace-nowrap text-2xl leading-none text-[#5c6b3f]",style:{fontFamily:tT[0].fontFamily,transform:"rotate(-2deg)",transformOrigin:"0 100%"},children:r("ai.nudge")}),(0,a.jsx)("span",{"aria-hidden":"true",className:"ml-[69px] mt-1 block h-[56px] w-[56px] bg-[#5c6b3f]",style:{maskImage:"url(/images/arrows/hairline/curve-down.svg)",maskRepeat:"no-repeat",maskSize:"contain",WebkitMaskImage:"url(/images/arrows/hairline/curve-down.svg)",WebkitMaskRepeat:"no-repeat",WebkitMaskSize:"contain",transform:"rotate(-8deg)"}})]}),(0,a.jsx)("div",{className:"card-lift mt-10 overflow-hidden rounded-3xl bg-card",children:(0,a.jsxs)("div",{className:(0,Q.cn)("grid",A&&"lg:grid-cols-2"),children:[(0,a.jsx)("div",{className:(0,Q.cn)("p-6 sm:p-8 lg:p-10",A&&"border-b border-input lg:border-b-0 lg:border-r"),children:(0,a.jsxs)(rb.tU,{value:c,onValueChange:e=>u(e),children:[(0,a.jsxs)(rb.j7,{className:"w-full",children:[(0,a.jsx)(rb.Xi,{value:"draw",className:"flex-1",children:r("tabs.draw")}),(0,a.jsx)(rb.Xi,{value:"type",className:"flex-1",children:r("tabs.type")}),(0,a.jsxs)(rb.Xi,{value:"ai",className:"flex-1 gap-2",children:[(0,a.jsx)(O.A,{"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),r("tabs.ai")]})]}),(0,a.jsxs)("div",{className:"mt-6 grid",children:[(0,a.jsxs)(rb.av,{forceMount:!0,value:"draw",className:rA,children:[(0,a.jsx)("p",{className:"text-sm text-[hsl(30,8%,40%)]",children:r("draw.hint")}),(0,a.jsx)("p",{className:"mb-2 mt-6 text-sm text-[hsl(30,8%,40%)]",children:r("result.label")}),(0,a.jsx)("div",{className:(0,Q.cn)(rL,"min-h-56 flex-1"),style:rR,children:M&&(0,a.jsx)(rg(),{ref:k,penColor:rE,onEnd:()=>w(!0),canvasProps:{className:"absolute inset-0 h-full w-full",style:{cursor:rP},"aria-label":r("draw.canvasLabel")}})}),W]}),(0,a.jsxs)(rb.av,{forceMount:!0,value:"type",className:rA,children:[(0,a.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"signature-first-name",className:"mb-2 block text-sm text-[hsl(30,8%,40%)]",children:r("fields.firstName.label")}),(0,a.jsx)(tO.p,{id:"signature-first-name",value:x,maxLength:30,placeholder:r("fields.firstName.placeholder"),onChange:e=>f(e.target.value),className:tS.N})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"signature-last-name",className:"mb-2 block text-sm text-[hsl(30,8%,40%)]",children:r("fields.lastName.label")}),(0,a.jsx)(tO.p,{id:"signature-last-name",value:p,maxLength:30,placeholder:r("fields.lastName.placeholder"),onChange:e=>g(e.target.value),className:tS.N})]})]}),(0,a.jsx)("label",{htmlFor:"signature-font",className:"mb-2 mt-5 block text-sm text-[hsl(30,8%,40%)]",children:r("type.fontLabel")}),(0,a.jsxs)(rv.AM,{open:_,onOpenChange:F,children:[(0,a.jsx)(rv.Wv,{asChild:!0,children:(0,a.jsxs)("button",{id:"signature-font",type:"button",role:"combobox","aria-expanded":_,"aria-haspopup":"listbox","aria-controls":z,className:"flex h-9 w-full items-center justify-between gap-2 rounded-lg border border-input bg-[#FBF8F1] px-3 text-sm transition-colors focus:outline-none focus-visible:outline-none focus-visible:border-[#5c6b3f]",children:[(0,a.jsx)("span",{className:"truncate text-base leading-none text-[#111111]",style:{fontFamily:P.fontFamily},children:P.label}),(0,a.jsx)(rS.A,{"aria-hidden":"true",className:(0,Q.cn)("h-4 w-4 shrink-0 opacity-50 transition-transform duration-200",_&&"rotate-180")}
21)]})}),(0,a.jsx)(rv.hl,{align:"start",sideOffset:6,hideArrow:!0,className:"w-[var(--radix-popover-trigger-width)] overflow-hidden rounded-2xl border border-input bg-card p-0 shadow-[0_18px_44px_-10px_rgba(28,22,16,0.20)]",onOpenAutoFocus:e=>{e.preventDefault(),requestAnimationFrame(()=>T.focusActive())},children:(0,a.jsxs)("div",{ref:T.listRef,id:z,role:"listbox",className:"relative grid grid-cols-2 p-1",onMouseLeave:()=>T.moveHighlight(b),children:[T.highlight&&(0,a.jsx)("div",{className:"pointer-events-none absolute rounded-xl transition-all duration-200 ease-out",style:{...T.highlight,backgroundColor:"rgba(92, 107, 63, 0.05)"}}),tT.map(e=>{let t=e.id===b;return(0,a.jsxs)("button",{ref:T.registerItem(e.id),type:"button",role:"option","aria-selected":t,className:"relative z-10 flex cursor-pointer select-none items-center justify-between gap-2 rounded-xl px-3 py-3 outline-none focus:outline-none focus-visible:outline-none",onClick:()=>{v(e.id),F(!1)},onMouseEnter:()=>T.moveHighlight(e.id),onFocus:()=>T.moveHighlight(e.id),children:[(0,a.jsx)("span",{className:(0,Q.cn)("truncate text-lg leading-none",t?"text-[#404a2b]":"text-[#111111]"),style:{fontFamily:e.fontFamily},children:e.label}),t&&(0,a.jsx)(s.A,{"aria-hidden":"true",className:"h-4 w-4 shrink-0 text-[#5c6b3f]"})]},e.id)})]})})]}),R.trim()&&!E.supported&&(0,a.jsx)("p",{className:"mt-3 text-sm text-[hsl(30,8%,40%)]",children:r("type.scriptFallback")}),(0,a.jsx)("p",{className:"mb-2 mt-6 text-sm text-[hsl(30,8%,40%)]",children:r("result.label")}),(0,a.jsx)("div",{className:(0,Q.cn)(rL,"flex min-h-28 flex-1 items-center justify-center px-6"),style:rR,children:(0,a.jsx)("span",{className:"max-w-full truncate text-4xl leading-tight text-[#111111]",style:{fontFamily:E.fontFamily,fontStyle:E.italic?"italic":void 0},children:R.trim()})}),W]}),(0,a.jsx)(rb.av,{forceMount:!0,value:"ai",className:rA,children:(0,a.jsx)(rC,{})})]})]})}),S?(0,a.jsx)(tb.F,{banner:S,ctaHref:L}):null]})})]})]})}function rF(e){let{data:t}=e;return(0,a.jsx)(rh,{data:t,namespace:"forms/XadesVerifyForm",accept:".xml,.xsig,application/xml,text/xml",acceptedExtensions:[".xml",".xsig"],maxFileSizeBytes:0x3200000,formId:"verify-xades-form"})}function rz(e){let{data:t}=e;return(0,a.jsx)(rh,{data:t,namespace:"forms/CadesVerifyForm",accept:".p7m,.p7s,application/pkcs7-mime,application/pkcs7-signature,application/x-pkcs7-mime,application/x-pkcs7-signature",acceptedExtensions:[".p7m",".p7s"],maxFileSizeBytes:0x3200000,formId:"verify-cades-form"})}function rT(e){let{data:t}=e;return(0,a.jsx)(rh,{data:t,namespace:"forms/AsicVerifyForm",accept:".asice,.sce,.asics,.scs,.zip,application/vnd.etsi.asic-e+zip,application/vnd.etsi.asic-s+zip,application/zip",acceptedExtensions:[".asice",".sce",".asics",".scs",".zip"],maxFileSizeBytes:0x3200000,formId:"verify-asic-form"})}function r$(e){let{data:t}=e;return(0,a.jsx)(rh,{data:t,namespace:"forms/AnySignatureVerifyForm",accept:".pdf,.xml,.xsig,.p7m,.p7s,.asice,.sce,.asics,.scs,.zip,application/pdf,application/xml,text/xml,application/pkcs7-mime,application/pkcs7-signature,application/x-pkcs7-mime,application/x-pkcs7-signature,application/vnd.etsi.asic-e+zip,application/vnd.etsi.asic-s+zip,application/zip",acceptedExtensions:[".pdf",".xml",".xsig",".p7m",".p7s",".asice",".sce",".asics",".scs",".zip"],maxFileSizeBytes:0x3200000,formId:"signature-verify-form"})}let rI="text-[#766c63]",rq=["differences","both","other","notInChaindoc"];function rO(e){return!0===e?(0,a.jsx)(s.A,{className:"size-4 shrink-0 text-[#5c6b3f] mx-auto",strokeWidth:2.4,"aria-hidden":"true"}):!1===e?(0,a.jsx)(eZ.A,{className:"size-4 shrink-0 text-muted-foreground/50 mx-auto","aria-hidden":"true"}):(0,a.jsx)("span",{className:"text-sm leading-snug text-foreground",children:e})}function rD(e){let{value:t,muted:l=!1}=e;return t?(0,a.jsx)("span",{className:(0,Q.cn)("inline-grid size-[22px] shrink-0 place-items-center rounded-full",l?"bg-secondary":"bg-olive-100"),children:(0,a.jsx)(s.A,{className:(0,Q.cn)("size-[13px]",l?rI:"text-olive-600"),strokeWidth:2.6,"aria-hidden":"true"})}):(0,a.jsx)("span",{className:"inline-grid size-[22px] shrink-0 place-items-center rounded-full border border-border",children:(0,a.jsx)(eZ.A,{className:"size-[11px] text-[#a79d92]",strokeWidth:2.2,"aria-hidden":"true"})})}function rH(e){let{value:t,muted:l=!1,labels:r}=e;return"string"==typeof t?(0,a.jsx)(a.Fragment,{children:t}):(0,a.jsxs)("span",{className:"inline-flex items-center gap-[7px]",children:[(0,a.jsx)(rD,{value:t,muted:l}),t?r.included:r.notIncluded]})}function rV(e){let{sectionId:t,competitorName:l,features:r}=e,{t:s}=(0,i.Bd)("common"),n={differences:s("comparison.keyDifferences"),both:s("comparison.inBoth"),other:s("c
21omparison.otherFeatures"),notInChaindoc:s("comparison.notInChaindoc")},o={included:s("comparison.included"),notIncluded:s("comparison.notIncluded")},d=rq.map(e=>({key:e,anchor:`${t}-${e}`,rows:r.filter(t=>(t.highlight?"differences":!0===t.chaindoc&&!0===t.competitor?"both":!1===t.chaindoc?"notInChaindoc":"other")===e)})).filter(e=>e.rows.length>0),c="text-[10.5px] font-semibold uppercase leading-none tracking-[0.1em]";return(0,a.jsxs)("div",{className:"md:hidden",children:[d.length>1&&(0,a.jsx)("nav",{"aria-label":s("comparison.summary"),className:"mb-9 grid grid-cols-2 gap-2",children:d.map(e=>(0,a.jsxs)("a",{href:`#${e.anchor}`,className:"block rounded-[14px] border border-border bg-card px-3 pb-[11px] pt-3 transition-colors active:bg-secondary",children:[(0,a.jsx)("span",{className:(0,Q.cn)("mb-1.5 block font-display text-[30px] leading-none tracking-[-0.02em]","differences"===e.key?"text-olive-600":"text-foreground"),children:e.rows.length}),(0,a.jsx)("span",{className:"block text-[12.5px] leading-[1.3] text-[#5a524b]",children:n[e.key]})]},e.key))}),(0,a.jsx)("div",{className:"space-y-8",children:d.map(e=>(0,a.jsxs)("div",{id:e.anchor,className:"scroll-mt-20",children:[(0,a.jsxs)("p",{className:"mb-3 flex items-center gap-2.5 text-[11.5px] font-medium uppercase leading-none tracking-[0.14em] text-foreground after:h-px after:flex-1 after:bg-border",children:[(0,a.jsx)("span",{className:"whitespace-nowrap",children:n[e.key]}),(0,a.jsx)("span",{className:"tracking-normal text-muted-foreground",children:e.rows.length})]}),"differences"===e.key?(0,a.jsx)("table",{className:"block w-full overflow-hidden rounded-2xl border border-border bg-card",children:e.rows.map((e,t)=>(0,a.jsxs)("tbody",{className:(0,Q.cn)("block px-4 pb-4 pt-3.5",t>0&&"border-t border-border"),children:[(0,a.jsx)("tr",{className:"block",children:(0,a.jsx)("th",{scope:"colgroup",className:"mb-2.5 block text-left text-[15px] font-semibold leading-[1.3] text-foreground",children:e.name})}),(0,a.jsxs)("tr",{className:"block",children:[(0,a.jsx)("th",{scope:"row",className:(0,Q.cn)("mb-[5px] block text-left text-foreground",c),children:"Chaindoc"}),(0,a.jsx)("td",{className:"block text-[14.5px] font-medium leading-[1.45] text-foreground",children:(0,a.jsx)(rH,{value:e.chaindoc,labels:o})})]}),(0,a.jsxs)("tr",{className:"mt-2.5 block",children:[(0,a.jsx)("th",{scope:"row",className:(0,Q.cn)("mb-[5px] block text-left",c,rI),children:l}),(0,a.jsx)("td",{className:(0,Q.cn)("block text-[14.5px] leading-[1.45]",rI),children:(0,a.jsx)(rH,{value:e.competitor,muted:!0,labels:o})})]})]},t))}):(0,a.jsxs)("div",{className:"rounded-2xl border border-border bg-card px-4 py-1",children:[(0,a.jsxs)("div",{className:(0,Q.cn)("flex items-end justify-end pb-0.5 pt-2.5 text-center text-muted-foreground",c,"leading-[1.25]"),children:[(0,a.jsx)("span",{className:"flex w-20 justify-center",children:"Chaindoc"}),"both"===e.key&&(0,a.jsx)("span",{className:"flex w-20 justify-center",children:l})]}),(0,a.jsx)("ul",{children:e.rows.map((t,r)=>(0,a.jsxs)("li",{className:(0,Q.cn)("flex items-center gap-3 py-3",r>0&&"border-t border-border"),children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("div",{className:"text-[14.5px] font-medium leading-[1.35] text-foreground",children:t.name}),"both"!==e.key&&"string"==typeof t.chaindoc&&(0,a.jsxs)("div",{className:"mt-[3px] text-[12.5px] leading-[1.45] text-foreground",children:[(0,a.jsx)("span",{className:(0,Q.cn)("mr-1.5 text-olive-600",c),children:"Chaindoc"}),t.chaindoc]}),"both"!==e.key&&(0,a.jsxs)("div",{className:(0,Q.cn)("mt-[3px] text-[12.5px] leading-[1.45]",rI),children:[(0,a.jsx)("span",{className:(0,Q.cn)("mr-1.5",c),children:l}),(0,a.jsx)(rH,{value:t.competitor,muted:!0,labels:o})]})]}),(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("span",{className:"flex w-20 justify-center",children:"boolean"==typeof t.chaindoc&&(0,a.jsx)(rD,{value:t.chaindoc})}),"both"===e.key&&(0,a.jsx)("span",{className:"flex w-20 justify-center",children:(0,a.jsx)(rD,{value:!0,muted:!0})})]})]},r))})]})]},e.key))})]})}function rW(e){let{links:t}=e;return(0,a.jsx)(a.Fragment,{children:t.map((e,t)=>(0,a.jsxs)("span",{children:[t>0&&(0,a.jsx)("span",{"aria-hidden":"true",children:" \xb7 "}),(0,a.jsx)("a",{href:e.href,target:"_blank",rel:"noopener nofollow",referrerPolicy:"no-referrer",className:"ulink-orange font-medium text-foreground focus-visible:outline-none",children:e.label})]},e.href))})}function rB(e){var t;let{data:l}=e,{id:r,badge:i,title:s,subtitle:n,competitor:o,features:d,note:c}=l;return(0,a.jsx)(Y.o,{padding:"xl",headerSpacing:"none",children:(0,a.jsxs)("div",{className:"space-y-8",children:[(0,a.jsx)(Z.X3,{badge:i,title:s,description:n}),(0,a.jsx)("div",{className:"hidden md:block",children:(0,a.jsx)("div",{className:"overflow-hidden rounded-2xl border border-input bg-transparent",children:(0,a.jsx)("div",{className:"w-full overflow-x-auto",children:(0,a.jsxs)("table",{className:"w-full border-collapse text-sm",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"border-b border-border",children:[(0,a.jsx)("th",{scope:"col",className:"px-4 py-4 text-left text-xs font-bold uppercase tracking-wide text-foreground",children:"Feature"}),(0,a.jsx)("th",{scope:"col",className:"px-4 py-4 text-center text-xs font-bold uppercase tracking-wide text-foreground",children:"Chaindoc"}),(0,a.jsx)("th",{scope:"col",className:"px-4 py-4 text-center text-xs font-bold uppercase tracking-wide text-foreground",children:o.name})]})}),(0,a.jsx)("tbody",{className:"bg-card",children:d.map((e,t)=>(0,a.jsxs)("tr",{className:(0,Q.cn)("border-t border-border",0===t&&"border-t-0"),children:[(0,a.jsx)("th",{scope:"row",className:"whitespace-pre-wrap px-4 py-4 text-left text-sm font-semibold text-foreground",children:e.name}),(0,a.jsx)("td",{className:"px-4 py-4 align-middle text-center text-sm",children:rO(e.chaindoc)}),(0,a.jsx)("td",{className:"px-4 py-4 align-middle text-center text-sm text-muted-foreground",children:rO(e.competitor)})]},t))})]})})})}),(0,a.jsx)(rV,{sectionId:r??"comparison",competitorName:o.name,features:d}),(null==c?void 0:c.text)&&(0,a.jsxs)("p",{className:"max-w-3xl text-xs leading-relaxed text-muted-foreground",children:[c.text,(null==(t=c.links)?void 0:t.length)?(0,a.jsxs)(a.Fragment,{children:[" ",(0,a.jsx)(rW,{links:c.links})]}):null]})]})})}let rK={title:"Most teams switch **in under an hour**",description:"No data loss, no downtime. Export your existing templates, upload to Chaindoc, and go live â KYC, payments, and blockchain audit included from day one.",ctaButton:{type:"primary",text:"Start free â no credit card",link:"https://app.chaindoc.io"}};function rU(e){var t;let{data:l}=e,{badge:r,title:i,subtitle:s,items:n,cta:o}=l,d=(0,m.useRouter)(),c={...rK,...o},u=(0,Q.KJ)(d.locale??"en",(null==(t=c.ctaButton)?void 0:t.link)??rK.ctaButton.link);return(0,a.jsxs)(Y.o,{headerSpacing:"none",children:[(0,a.jsx)(Z.X3,{badge:r,title:i,description:s}),(0,a.jsx)("div",{className:"mt-12 border-t border-input",children:n.map(e=>{let t,l,{label:r,name:i}=(l=(t=(0,h.wR)(e.headline)).lastIndexOf(e.competitor))>0?{label:t.slice(0,l).trim(),name:t.slice(l)}:{label:"vs",name:e.competitor};return(0,a.jsxs)(e6(),{href:e.href,className:"group relative isolate grid grid-cols-[minmax(0,1fr)_38px] items-center gap-x-5 gap-y-3 border-b border-input px-1 py-[26px] transition-[padding] duration-200 hover:px-[18px] focus-visible:px-[18px] focus-visible:outline-none lg:grid-cols-[160px_minmax(0,1fr)_38px] lg:gap-x-6 xl:grid-cols-[190p
21x_minmax(0,1fr)_38px] xl:gap-x-8",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 -z-10 opacity-0 transition-opacity duration-200 group-hover:opacity-100 group-focus-visible:opacity-100",style:{background:"linear-gradient(90deg, rgba(250,244,231,0) 0%, #faf4e7 9%, #faf4e7 91%, rgba(250,244,231,0) 100%)"}}),(0,a.jsxs)("h3",{className:"col-start-1 row-start-1",children:[(0,a.jsx)("span",{className:"block font-sans text-xs font-medium uppercase tracking-[0.14em] text-muted-foreground",children:r}),(0,a.jsx)("span",{className:"mt-1 block font-sans text-[17px] font-medium leading-tight tracking-[-0.01em] text-[#241b12]",children:i})]}),(0,a.jsx)("p",{className:"col-span-2 col-start-1 row-start-2 font-serif text-[clamp(19px,1.9vw,25px)] font-normal leading-[1.2] tracking-[-0.01em] text-[#3b2f23] [text-wrap:pretty] lg:col-span-1 lg:col-start-2 lg:row-start-1",children:e.teaser}),(0,a.jsx)("span",{"aria-hidden":"true",className:"col-start-2 row-start-1 flex h-[38px] w-[38px] items-center justify-center justify-self-end rounded-full border border-[rgba(59,47,35,0.26)] text-[#241b12] transition-colors duration-200 group-hover:border-[#5c6b3f] group-hover:bg-[#5c6b3f] group-hover:text-white group-focus-visible:border-[#5c6b3f] group-focus-visible:bg-[#5c6b3f] group-focus-visible:text-white lg:col-start-3",children:(0,a.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",className:"transition-transform duration-200 group-hover:-rotate-45",children:(0,a.jsx)("path",{d:"M2 7.5h11M9 3.5l4 4-4 4"})})})]},e.competitor)})}),(0,a.jsx)(tb.F,{layout:"wide",className:"mt-12 rounded-3xl [&_img]:object-[75%_center] lg:[&_img]:object-center",banner:c,ctaHref:u})]})}let rJ={"/real-estate":W.A,"/healthcare":J.A,"/insurance":v.A,"/it-companies":j.A};function rX(e){let{data:t}=e,{badge:l,title:r,description:i,links:s}=t;return(0,a.jsx)("div",{className:"w-full bg-background",children:(0,a.jsxs)(Y.o,{headerSpacing:"none",children:[(0,a.jsx)(Z.X3,{badge:l,title:r,description:i,className:"mb-10"}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6",children:s.map(e=>{let t=rJ[e.href]??V.A;return(0,a.jsxs)(e6(),{href:e.href,className:"card-lift group flex flex-col justify-between rounded-3xl bg-card p-8 transition-shadow hover:shadow-[0_2px_4px_rgba(59,47,35,0.05),0_24px_48px_-24px_rgba(59,47,35,0.3)] focus-visible:outline-none focus-visible:border-[#5c6b3f]",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mb-5 flex justify-end text-muted-foreground","aria-hidden":"true",children:(0,a.jsx)(t,{size:18,strokeWidth:1.6})}),(0,a.jsx)("h3",{className:"text-lg font-semibold text-gray-900 mb-3",children:(0,h.wR)(e.label)}),e.description&&(0,a.jsx)("p",{className:"font-light leading-relaxed text-[hsl(30,8%,40%)]",children:e.description})]}),(0,a.jsxs)("div",{className:"mt-6 inline-flex items-center text-sm font-medium text-gray-900",children:["Learn more",(0,a.jsx)(eH.A,{className:"ml-1 h-4 w-4 transition-transform group-hover:translate-x-0.5"})]})]},e.href)})})]})})}let rG="#5c6b3f";function rY(e){let t=/^#?([0-9a-f]{6})$/i.exec(e.trim());if(!t)return[92/255,107/255,63/255];let l=parseInt(t[1],16);return[(l>>16&255)/255,(l>>8&255)/255,(255&l)/255]}function rZ(e){let{href:t,className:l,children:r}=e;return t.startsWith("/")&&!t.startsWith("//")?(0,a.jsx)(Z.W_,{href:t,className:l,children:r}):(0,a.jsx)("a",{href:t,className:l,...(0,Q.OK)(t),children:r})}let rQ="#100c07";function r0(e){let{data:t,Point:l}=e,{badge:r,title:i,description:s,ctaButton:n,secondaryButton:o,tone:d,image:c,imageAlt:u,imageWidth:x,imageHeight:h,className:f}=t,p="dark"===d,g=p&&!!c,b=x??1536,v=h??1024,j=(0,m.useRouter)(),w=(null==n?void 0:n.link)?(0,Q.KJ)(j.locale??"en",n.link):void 0,y=(null==o?void 0:o.link)?(0,Q.KJ)(j.locale??"en",o.link):void 0,N=(0,a.jsxs)("div",{className:(0,Q.cn)("relative z-10",g?"w-full lg:w-1/2":"max-w-[520px]"),children:[(0,a.jsx)(Z.X3,{badge:r,title:i,description:s,className:"mb-7"}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-3",children:[w&&n&&(0,a.jsxs)(rZ,{href:w,className:(0,Q.cn)("group inline-flex items-center gap-2 rounded-xl border border-transparent px-6 py-3 text-sm font-medium transition-colors focus-visible:outline-none",p?"bg-[#f7f1e3] text-[#1b1918] hover:bg-[#829262] hover:text-white focus-visible:border-[#f7f1e3]":"bg-[#5c6b3f] text-white hover:bg-[#4e5a34] focus-visible:border-[#1b1918]"),children:[n.text,(0,a.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14","aria-hidden":"true",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"transition-transform duration-200 group-hover:translate-x-0.5",children:(0,a.jsx)("path",{d:"M2 7h10M8 3l4 4-4 4"})})]}),y&&o&&(0,a.jsx)(rZ,{href:y,className:(0,Q.cn)("inline-flex items-center gap-2 rounded-xl border bg-transparent px-6 py-3 text-sm font-medium transition-colors focus-visible:outline-none",p?"border-[rgba(239,229,209,0.25)] text-[#efe5d1] hover:border-[rgba(239,229,209,0.4)] hover:bg-[rgba(239,229,209,0.1)] focus-visible:border-[#efe5d1]":"border-input text-[#1b1918] hover:border-[#1b1918] hover:bg-[#1b1918] hover:text-[#f7f1e3] focus-visible:border-[#1b1918]"),children:o.text})]})]}),k=(0,a.jsxs)("div",{className:(0,Q.cn)("relative lg:flex lg:items-center",!g&&"lg:min-h-[440px]"),children:[!g&&(0,a.jsx)("div",{className:(0,Q.cn)("pointer-events-none absolute top-1/2 hidden h-[760px] w-[760px] -translate-y-1/2 lg:block",p?"right-[-6%]":"right-[-12%]"),"aria-hidden":"true",children:(0,a.jsx)(l,{c
21olor:p?"#b3bd8e":void 0})}),N]});if(p)return(0,a.jsxs)("div",{className:"dark-band relative w-full overflow-hidden",children:[g&&(0,a.jsx)("div",{"aria-hidden":"true",style:{"--plate-overlap":`${(40*v/b).toFixed(2)}%`},className:(0,Q.cn)("pointer-events-none relative w-full lg:absolute lg:inset-0 lg:flex lg:justify-center","-mb-[var(--plate-overlap)] lg:mb-0"),children:(0,a.jsx)("div",{className:(0,Q.cn)("relative w-full lg:h-full","lg:max-w-7xl lg:px-8 xl:px-10"),children:(0,a.jsx)("div",{className:"relative w-full overflow-hidden lg:h-full",children:(0,a.jsxs)("div",{className:"relative lg:absolute lg:inset-y-0 lg:right-0",children:[(0,a.jsx)(eP(),{src:c,alt:u??"",width:b,height:v,sizes:"(max-width: 1023px) 100vw, 50vw",className:"h-auto w-full lg:h-full lg:w-auto lg:max-w-none"}),(0,a.jsx)("div",{className:"absolute inset-0 lg:hidden",style:{background:`linear-gradient(to top, ${rQ} 0%, ${rQ} 40%, rgba(16,12,7,0.62) 48%, rgba(16,12,7,0.22) 55%, rgba(16,12,7,0) 64%)`}}),(0,a.jsx)("div",{className:"absolute inset-0 hidden lg:block",style:{background:`linear-gradient(to right, ${rQ} 0%, ${rQ} 16%, rgba(16,12,7,0.70) 28%, rgba(16,12,7,0.38) 40%, rgba(16,12,7,0.14) 51%, rgba(16,12,7,0) 62%, rgba(16,12,7,0) 84%, rgba(16,12,7,0.45) 94%, ${rQ} 100%)`}})]})})})}),(0,a.jsx)(Y.o,{className:(0,Q.cn)("relative",f),headerSpacing:"none",children:k})]});return(0,a.jsx)(Y.o,{className:f,headerSpacing:"none",children:k})}function r1(e){let{className:t,color:l=rG}=e,r=(0,o.useRef)(null),i=(0,o.useRef)(0),s=(0,o.useRef)(null),[n,u]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=window.matchMedia("(min-width: 1024px)"),t=e=>u(e.matches);return(t(e),"function"==typeof e.addEventListener)?(e.addEventListener("change",t),()=>e.removeEventListener("change",t)):(e.addListener(t),()=>e.removeListener(t))},[]);let m=(0,o.useCallback)(()=>{let e=r.current;if(!e)return;let t=window.matchMedia("(prefers-reduced-motion: reduce)").matches,a=e.clientWidth||1,s=e.clientHeight||1,n=new d.Z58,o=new d.ubm(50,a/s,.1,100);o.position.z=3.7;let u=new c.JeP({antialias:!0,alpha:!0});u.setSize(a,s),u.setPixelRatio(Math.min(window.devicePixelRatio,2)),u.outputColorSpace=d.er$,e.appendChild(u.domElement);let m=[];for(let e=-1;e<=1;e+=2)for(let t=-1;t<=1;t+=2)for(let l=-1;l<=1;l+=2)m.push(new d.Pq0(.5*e,.5*t,.5*l));let x=[];for(let e=0;e<m.length;e++)for(let t=e+1;t<m.length;t++)1==+(m[e].x!==m[t].x)+ +(m[e].y!==m[t].y)+ +(m[e].z!==m[t].z)&&x.push([m[e],m[t]]);let h=420+16*x.length+46,f=new Float32Array(3*h),p=new Float32Array(h),g=0,b=(e,t,l,r)=>{f[3*g]=e,f[3*g+1]=t,f[3*g+2]=l,p[g]=r,g++};for(let e=0;e<420;e++){let e=6*Math.random()|0,t=2*Math.random()-1,l=2*Math.random()-1,r=t,a=l,i=t;0===e?(r=.5,a=t,i=l):1===e?(r=-.5,a=t,i=l):2===e?(a=.5,r=t,i=l):3===e?(a=-.5,r=t,i=l):(i=4===e?.5:-.5,r=t,a=l),b(r,a,i,4*Math.pow(Math.random(),1.7)+.8)}for(let[e,t]of x)for(let l=0;l<16;l++){let r=l/15;b(e.x+(t.x-e.x)*r,e.y+(t.y-e.y)*r,e.z+(t.z-e.z)*r,2.2*Math.random()+2.6)}for(let e=0;e<46;e++){let e=1.35*Math.cbrt(Math.random()),t=Math.random()*Math.PI*2,l=Math.acos(2*Math.random()-1);b(e*Math.sin(l)*Math.cos(t),e*Math.sin(l)*Math.sin(t),e*Math.cos(l),1.1*Math.pow(Math.random(),2)+.4)}let v=new d.LoY;v.setAttribute("position",new d.THS(f,3)),v.setAttribute("size",new d.THS(p,1));let j=document.createElement("canvas");j.width=128,j.height=128;let w=j.getContext("2d"),y=w.createRadialGradient(64,64,0,64,64,60);y.addColorStop(0,"rgba(255,255,255,1)"),y.addColorStop(.85,"rgba(255,255,255,1)"),y.addColorStop(1,"rgba(255,255,255,0)"),w.fillStyle=y,w.fillRect(0,0,128,128);let N=new d.GOR(j);N.minFilter=d.k6q,N.magFilter=d.k6q,N.generateMipmaps=!1;let k=new d.BKk({uniforms:{uColor:{value:new d.Pq0(...rY(l))},uTexture:{value:N},uPixelRatio:{value:Math.min(window.devicePixelRatio||1,2)}},vertexShader:` 22 attribute float size; 23 uniform float uPixelRatio; 24 varying float vAlpha; 25 void main() { 26 vAlpha = mix(0.16, 1.0, clamp((size - 0.8) / 4.0, 0.0, 1.0)); 27 vec4 mv = modelViewMatrix * vec4(position, 1.0); 28 gl_PointSize = size * uPixelRatio * (1.0 / -mv.z) * 3.4; 29 gl_Position = projectionMatrix * mv; 30 } 31 `,fragmentShader:` 32 uniform vec3 uColor; 33 uniform sampler2D uTexture; 34 varying float vAlpha; 35 void main() { 36 vec4 t = texture2D(uTexture, gl_PointCoord); 37 gl_FragColor = vec4(uColor, t.a * vAlpha); 38 } 39 `,transparent:!0,depthWrite:!1}),M=new d.ONl(v,k);M.rotation.x=.5,M.rotation.y=.7,n.add(M);let C=performance.now(),S=()=>{i.current=requestAnimationFrame(S);let e=(performance.now()-C)/1e3;t||(M.rotation.y=.7+.15*e),u.render(n,o)};S();let A=new ResizeObserver(()=>{a=e.clientWidth||1,s=e.clientHeight||1,o.aspect=a/s,o.updateProjectionMatrix(),u.setSize(a,s)});return A.observe(e),()=>{cancelAnimationFrame(i.current),A.disconnect(),v.dispose(),k.dispose(),N.dispose(),u.dispose(),u.domElement.parentNode===e&&e.removeChild(u.domElement)}},[l]);return((0,o.useEffect)(()=>
39{if(n&&!s.current)return s.current=m()||null,()=>{var e;null==(e=s.current)||e.call(s),s.current=null}},[m,n]),n)?(0,a.jsx)("div",{ref:r,"aria-hidden":"true",className:(0,Q.cn)("h-full w-full",t)}):null}function r2(e){let{data:t}=e;return(0,a.jsx)(r0,{data:t,Point:r1})}function r5(e){let{className:t,color:l=rG}=e,r=(0,o.useRef)(null),i=(0,o.useRef)(0),s=(0,o.useRef)(null),[n,u]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=window.matchMedia("(min-width: 1024px)"),t=e=>u(e.matches);return(t(e),"function"==typeof e.addEventListener)?(e.addEventListener("change",t),()=>e.removeEventListener("change",t)):(e.addListener(t),()=>e.removeListener(t))},[]);let m=(0,o.useCallback)(()=>{let e=r.current;if(!e)return;let t=window.matchMedia("(prefers-reduced-motion: reduce)").matches,a=e.clientWidth||1,s=e.clientHeight||1,n=new d.Z58,o=new d.ubm(50,a/s,.1,100);o.position.z=3.9;let u=new c.JeP({antialias:!0,alpha:!0});u.setSize(a,s),u.setPixelRatio(Math.min(window.devicePixelRatio,2)),u.outputColorSpace=d.er$,e.appendChild(u.domElement);let m=[],x=[],h=(e,t,l)=>{let r=.95>Math.abs(e.y)?new d.Pq0(0,1,0):new d.Pq0(1,0,0),a=new d.Pq0().crossVectors(e,r).normalize(),i=new d.Pq0().crossVectors(e,a).normalize(),s=a.clone().multiplyScalar(Math.cos(l)).addScaledVector(i,Math.sin(l));return e.clone().multiplyScalar(Math.cos(t)).addScaledVector(s,Math.sin(t)).normalize()},f=(e,t,l,r)=>{let a=e.clone().addScaledVector(t,l);if(m.push({a:e.clone(),b:a.clone(),depth:r}),r>=4)return void x.push(a.clone());let i=r<2?3:2,s=Math.random()*Math.PI*2;for(let e=0;e<i;e++)f(a,h(t,.42+.36*Math.random(),s+e/i*Math.PI*2+(Math.random()-.5)*.8),l*(.66+.12*Math.random()),r+1)};f(new d.Pq0(0,-1,0),new d.Pq0(0,1,0),.7,0);let p=[];for(let e of m){let t=Math.max(2,Math.round(e.a.distanceTo(e.b)/.062));for(let l=0;l<t;l++){let r=l/t;p.push({x:e.a.x+(e.b.x-e.a.x)*r,y:e.a.y+(e.b.y-e.a.y)*r,z:e.a.z+(e.b.z-e.a.z)*r,size:3.7-.6*e.depth+.4*Math.random()})}}for(;p.length<612&&x.length>0;){let e=x[Math.random()*x.length|0],t=.24*Math.cbrt(Math.random()),l=Math.random()*Math.PI*2,r=Math.acos(2*Math.random()-1);p.push({x:e.x+t*Math.sin(r)*Math.cos(l),y:e.y+t*Math.sin(r)*Math.sin(l),z:e.z+t*Math.cos(r),size:3*Math.pow(Math.random(),1.7)+.8})}for(let e=0;e<46;e++){let e=1.7*Math.cbrt(Math.random()),t=Math.random()*Math.PI*2,l=Math.acos(2*Math.random()-1);p.push({x:e*Math.sin(l)*Math.cos(t),y:e*Math.sin(l)*Math.sin(t),z:e*Math.cos(l),size:1.1*Math.pow(Math.random(),2)+.4})}let g=0,b=0,v=0;for(let e of p)g+=e.x,b+=e.y,v+=e.z;g/=p.length,b/=p.length,v/=p.length;let j=new Float32Array(3*p.length),w=new Float32Array(p.length);for(let e=0;e<p.length;e++)j[3*e]=p[e].x-g,j[3*e+1]=p[e].y-b,j[3*e+2]=p[e].z-v,w[e]=p[e].size;let y=new d.LoY;y.setAttribute("position",new d.THS(j,3)),y.setAttribute("size",new d.THS(w,1));let N=document.createElement("canvas");N.width=128,N.height=128;let k=N.getContext("2d"),M=k.createRadialGradient(64,64,0,64,64,60);M.addColorStop(0,"rgba(255,255,255,1)"),M.addColorStop(.85,"rgba(255,255,255,1)"),M.addColorStop(1,"rgba(255,255,255,0)"),k.fillStyle=M,k.fillRect(0,0,128,128);let C=new d.GOR(N);C.minFilter=d.k6q,C.magFilter=d.k6q,C.generateMipmaps=!1;let S=new d.BKk({uniforms:{uColor:{value:new d.Pq0(...rY(l))},uTexture:{value:C},uPixelRatio:{value:Math.min(window.devicePixelRatio||1,2)}},vertexShader:` 40 attribute float size; 41 uniform float uPixelRatio; 42 varying float vAlpha; 43 void main() { 44 vAlpha = mix(0.16, 1.0, clamp((size - 0.8) / 4.0, 0.0, 1.0)); 45 vec4 mv = modelViewMatrix * vec4(position, 1.0); 46 gl_PointSize = size * uPixelRatio * (1.0 / -mv.z) * 3.4; 47 gl_Position = projectionMatrix * mv; 48 } 49 `,fragmentShader:` 50 uniform vec3 uColor; 51 uniform sampler2D uTexture; 52 varying float vAlpha; 53 void main() { 54 vec4 t = texture2D(uTexture, gl_PointCoord); 55 gl_FragColor = vec4(uColor, t.a * vAlpha); 56 } 57 `,transparent:!0,depthWrite:!1}),A=new d.ONl(y,S);A.rotation.x=.16,A.rotation.y=.4,n.add(A);let L=performance.now(),R=()=>{i.current=requestAnimationFrame(R);let e=(performance.now()-L)/1e3;t||(A.rotation.y=.4+.15*e),u.render(n,o)};R();let E=new ResizeObserver(()=>{a=e.clientWidth||1,s=e.clientHeight||1,o.aspect=a/s,o.updateProjectionMatrix(),u.setSize(a,s)});return E.observe(e),()=>{cancelAnimationFrame(i.current),E.disconnect(),y.dispose(),S.dispose(),C.dispose(),u.dispose(),u.domElement.parentNode===e&&e.removeChild(u.domElement)}},[l]);return((0,o.useEffect)(()=>
57{if(n&&!s.current)return s.current=m()||null,()=>{var e;null==(e=s.current)||e.call(s),s.current=null}},[m,n]),n)?(0,a.jsx)("div",{ref:r,"aria-hidden":"true",className:(0,Q.cn)("h-full w-full",t)}):null}function r3(e){let{data:t}=e;return(0,a.jsx)(r0,{data:t,Point:r5})}function r4(e){let{className:t,color:l=rG}=e,r=(0,o.useRef)(null),i=(0,o.useRef)(0),s=(0,o.useRef)(null),[n,u]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=window.matchMedia("(min-width: 1024px)"),t=e=>u(e.matches);return(t(e),"function"==typeof e.addEventListener)?(e.addEventListener("change",t),()=>e.removeEventListener("change",t)):(e.addListener(t),()=>e.removeListener(t))},[]);let m=(0,o.useCallback)(()=>{let e=r.current;if(!e)return;let t=window.matchMedia("(prefers-reduced-motion: reduce)").matches,a=e.clientWidth||1,s=e.clientHeight||1,n=new d.Z58,o=new d.ubm(50,a/s,.1,100);o.position.z=3.8;let u=new c.JeP({antialias:!0,alpha:!0});u.setSize(a,s),u.setPixelRatio(Math.min(window.devicePixelRatio,2)),u.outputColorSpace=d.er$,e.appendChild(u.domElement);let m=[{center:new d.Pq0(-.05,-.27,.04),tilt:new d.O9p(.1,0,-.08)},{center:new d.Pq0(.04,0,-.05),tilt:new d.O9p(-.07,0,.11)},{center:new d.Pq0(.07,.27,.03),tilt:new d.O9p(.12,0,.05)}],x=[],h=(e,t,l)=>{let r=m[e];x.push({v:t.clone().applyEuler(r.tilt).add(r.center),size:l})};for(let e=0;e<m.length;e++){let t=(t,l)=>{for(let r=0;r<l;r++){let a=r/l*Math.PI*2;h(e,new d.Pq0(.6*Math.cos(a),t,.6*Math.sin(a)),2*Math.random()+2.8)}};t(.075,24),t(-.15/2,24),t(0,22)}for(;x.length<612;){let e=Math.random()*m.length|0,t=.5>Math.random(),l=.6*Math.sqrt(Math.random())*.94,r=Math.random()*Math.PI*2;h(e,new d.Pq0(Math.cos(r)*l,.075*(t?1:-1),Math.sin(r)*l),3*Math.pow(Math.random(),1.7)+.8)}for(let e=0;e<46;e++){let e=1.45*Math.cbrt(Math.random()),t=Math.random()*Math.PI*2,l=Math.acos(2*Math.random()-1);x.push({v:new d.Pq0(e*Math.sin(l)*Math.cos(t),e*Math.sin(l)*Math.sin(t),e*Math.cos(l)),size:1.1*Math.pow(Math.random(),2)+.4})}let f=new d.Pq0;for(let e of x)f.add(e.v);f.multiplyScalar(1/x.length);let p=new Float32Array(3*x.length),g=new Float32Array(x.length);for(let e=0;e<x.length;e++)p[3*e]=x[e].v.x-f.x,p[3*e+1]=x[e].v.y-f.y,p[3*e+2]=x[e].v.z-f.z,g[e]=x[e].size;let b=new d.LoY;b.setAttribute("position",new d.THS(p,3)),b.setAttribute("size",new d.THS(g,1));let v=document.createElement("canvas");v.width=128,v.height=128;let j=v.getContext("2d"),w=j.createRadialGradient(64,64,0,64,64,60);w.addColorStop(0,"rgba(255,255,255,1)"),w.addColorStop(.85,"rgba(255,255,255,1)"),w.addColorStop(1,"rgba(255,255,255,0)"),j.fillStyle=w,j.fillRect(0,0,128,128);let y=new d.GOR(v);y.minFilter=d.k6q,y.magFilter=d.k6q,y.generateMipmaps=!1;let N=new d.BKk({uniforms:{uColor:{value:new d.Pq0(...rY(l))},uTexture:{value:y},uPixelRatio:{value:Math.min(window.devicePixelRatio||1,2)}},vertexShader:` 58 attribute float size; 59 uniform float uPixelRatio; 60 varying float vAlpha; 61 void main() { 62 vAlpha = mix(0.16, 1.0, clamp((size - 0.8) / 4.0, 0.0, 1.0)); 63 vec4 mv = modelViewMatrix * vec4(position, 1.0); 64 gl_PointSize = size * uPixelRatio * (1.0 / -mv.z) * 3.4; 65 gl_Position = projectionMatrix * mv; 66 } 67 `,fragmentShader:` 68 uniform vec3 uColor; 69 uniform sampler2D uTexture; 70 varying float vAlpha; 71 void main() { 72 vec4 t = texture2D(uTexture, gl_PointCoord); 73 gl_FragColor = vec4(uColor, t.a * vAlpha); 74 } 75 `,transparent:!0,depthWrite:!1}),k=new d.ONl(b,N);k.rotation.x=.42,k.rotation.y=.6,n.add(k);let M=performance.now(),C=()=>{i.current=requestAnimationFrame(C);let e=(performance.now()-M)/1e3;t||(k.rotation.y=.6+.15*e),u.render(n,o)};C();let S=new ResizeObserver(()=>{a=e.clientWidth||1,s=e.clientHeight||1,o.aspect=a/s,o.updateProjectionMatrix(),u.setSize(a,s)});return S.observe(e),()=>{cancelAnimationFrame(i.current),S.disconnect(),b.dispose(),N.dispose(),y.dispose(),u.dispose(),u.domElement.parentNode===e&&e.removeChild(u.domElement)}},[l]);return((0,o.useEffect)(()=>{if(n&&!s.current)return s.current=m()||null,()=>{var e;null==(e=s.current)||e.call(s),s.current=null}},[m,n]),n)?(0,a.jsx)("div",{ref:r,"aria-hidden":"true",className:(0,Q.cn)("h-full w-full",t)}):null}function r6(e){let{data:t}=e;return(0,a.jsx)(r0,{data:t,Point:r4})}function r8(e){let{className:t,color:l=rG}=e,r=(0,o.useRef)(null),i=(0,o.useRef)(0),s=(0,o.useRef)(null),[n,u]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=window.matchMedia("(min-width: 1024px)"),t=e=>u(e.matches);return(t(e),"function"==typeof e.addEventListener)?(e.addEventListener("change",t),()=>e.removeEventListener("change",t)):(e.addListener(t),()=>e.removeListener(t))},[]);let m=(0,o.useCallback)(()=>{let e=r.current;if(!e)return;let t=window.matchMedia("(prefers-reduced-motion: reduce)").matches,a=e.clientWidth||1,s=e.clientHeight||1,n=new d.Z58,o=new d.ubm(50,a/s,.1,100);o.position.z=3.9;let u=new c.JeP({antialias:!0,alpha:!0});u.setSize(a,s),u.setPixelRatio(Math.min(window.devicePixelRatio,2)),u.outputColorSpace
75=d.er$,e.appendChild(u.domElement);let m=[{center:new d.Pq0(0,0,0),tilt:new d.O9p(.2,.3,.1)},{center:new d.Pq0(-.52,.42,.2),tilt:new d.O9p(-.3,.6,-.2)},{center:new d.Pq0(.56,.36,-.16),tilt:new d.O9p(.4,-.5,.15)},{center:new d.Pq0(-.42,-.46,-.26),tilt:new d.O9p(.1,-.8,.3)},{center:new d.Pq0(.46,-.42,.3),tilt:new d.O9p(-.25,1,-.1)}],x=[],h=(e,t,l,r)=>{let a=m[e];x.push({v:new d.Pq0(t,l,0).applyEuler(a.tilt).add(a.center),size:r})};for(let e=0;e<m.length;e++){let t=[[-.31,-.31],[.31,-.31],[.31,.31],[-.31,.31]];for(let l=0;l<4;l++){let r=t[l],a=t[(l+1)%4];for(let t=0;t<14;t++){let l=t/14;h(e,r[0]+(a[0]-r[0])*l,r[1]+(a[1]-r[1])*l,2.2*Math.random()+2.6)}}}for(;x.length<612;)h(Math.random()*m.length|0,(2*Math.random()-1)*.2852,(2*Math.random()-1)*.2852,3*Math.pow(Math.random(),1.7)+.8);for(let e=0;e<46;e++){let e=1.6*Math.cbrt(Math.random()),t=Math.random()*Math.PI*2,l=Math.acos(2*Math.random()-1);x.push({v:new d.Pq0(e*Math.sin(l)*Math.cos(t),e*Math.sin(l)*Math.sin(t),e*Math.cos(l)),size:1.1*Math.pow(Math.random(),2)+.4})}let f=new d.Pq0;for(let e of x)f.add(e.v);f.multiplyScalar(1/x.length);let p=new Float32Array(3*x.length),g=new Float32Array(x.length);for(let e=0;e<x.length;e++)p[3*e]=x[e].v.x-f.x,p[3*e+1]=x[e].v.y-f.y,p[3*e+2]=x[e].v.z-f.z,g[e]=x[e].size;let b=new d.LoY;b.setAttribute("position",new d.THS(p,3)),b.setAttribute("size",new d.THS(g,1));let v=document.createElement("canvas");v.width=128,v.height=128;let j=v.getContext("2d"),w=j.createRadialGradient(64,64,0,64,64,60);w.addColorStop(0,"rgba(255,255,255,1)"),w.addColorStop(.85,"rgba(255,255,255,1)"),w.addColorStop(1,"rgba(255,255,255,0)"),j.fillStyle=w,j.fillRect(0,0,128,128);let y=new d.GOR(v);y.minFilter=d.k6q,y.magFilter=d.k6q,y.generateMipmaps=!1;let N=new d.BKk({uniforms:{uColor:{value:new d.Pq0(...rY(l))},uTexture:{value:y},uPixelRatio:{value:Math.min(window.devicePixelRatio||1,2)}},vertexShader:` 76 attribute float size; 77 uniform float uPixelRatio; 78 varying float vAlpha; 79 void main() { 80 vAlpha = mix(0.16, 1.0, clamp((size - 0.8) / 4.0, 0.0, 1.0)); 81 vec4 mv = modelViewMatrix * vec4(position, 1.0); 82 gl_PointSize = size * uPixelRatio * (1.0 / -mv.z) * 3.4; 83 gl_Position = projectionMatrix * mv; 84 } 85 `,fragmentShader:` 86 uniform vec3 uColor; 87 uniform sampler2D uTexture; 88 varying float vAlpha; 89 void main() { 90 vec4 t = texture2D(uTexture, gl_PointCoord); 91 gl_FragColor = vec4(uColor, t.a * vAlpha); 92 } 93 `,transparent:!0,depthWrite:!1}),k=new d.ONl(b,N);k.rotation.x=.22,k.rotation.y=.5,n.add(k);let M=performance.now(),C=()=>{i.current=requestAnimationFrame(C);let e=(performance.now()-M)/1e3;t||(k.rotation.y=.5+.15*e),u.render(n,o)};C();let S=new ResizeObserver(()=>{a=e.clientWidth||1,s=e.clientHeight||1,o.aspect=a/s,o.updateProjectionMatrix(),u.setSize(a,s)});return S.observe(e),()=>{cancelAnimationFrame(i.current),S.disconnect(),b.dispose(),N.dispose(),y.dispose(),u.dispose(),u.domElement.parentNode===e&&e.removeChild(u.domElement)}},[l]);return((0,o.useEffect)(()=>{if(n&&!s.current)return s.current=m()||null,()=>{var e;null==(e=s.current)||e.call(s),s.current=null}},[m,n]),n)?(0,a.jsx)("div",{ref:r,"aria-hidden":"true",className:(0,Q.cn)("h-full w-full",t)}):null}function r9(e){let{data:t}=e;return(0,a.jsx)(r0,{data:t,Point:r8})}function r7(e){let{className:t,color:l=rG}=e,r=(0,o.useRef)(null),i=(0,o.useRef)(0),s=(0,o.useRef)(null),[n,u]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=window.matchMedia("(min-width: 1024px)"),t=e=>u(e.matches);return(t(e),"function"==typeof e.addEventListener)?(e.addEventListener("change",t),()=>e.removeEventListener("change",t)):(e.addListener(t),()=>e.removeListener(t))},[]);let m=(0,o.useCallback)(()=>{let e=r.current;if(!e)return;let t=window.matchMedia("(prefers-reduced-motion: reduce)").matches,a=e.clientWidth||1,s=e.clientHeight||1,n=new d.Z58,o=new d.ubm(50,a/s,.1,100);o.position.z=4;let u=new c.JeP({antialias:!0,alpha:!0});u.setSize(a,s),u.setPixelRatio(Math.min(window.devicePixelRatio,2)),u.outputColorSpace
93=d.er$,e.appendChild(u.domElement);let m=.05+.001,x=[],h=(e,t,l,r)=>x.push({x:e,y:t,z:l,size:r}),f=(e,t,l,r)=>{let a=[],i=(e,t,l,i)=>{let s=Math.max(1,Math.round(Math.hypot(l-e,i-t)*r));for(let r=0;r<s;r++){let n=r/s;a.push([e+(l-e)*n,t+(i-t)*n])}},s=(e,t,i,s)=>{let n=Math.max(2,Math.round(Math.abs(s-i)*l*r));for(let r=0;r<n;r++){let o=i+r/n*(s-i);a.push([e+Math.cos(o)*l,t+Math.sin(o)*l])}};return i(-e+l,t,e-l,t),s(e-l,t-l,Math.PI/2,0),i(e,t-l,e,-t+l),s(e-l,-(t-l),0,-Math.PI/2),i(e-l,-t,-e+l,-t),s(-(e-l),-(t-l),-Math.PI/2,-Math.PI),i(-e,-t+l,-e,t-l),s(-(e-l),t-l,Math.PI,Math.PI/2),a},p=f(.37,.74,.13,17);for(let[e,t]of p)h(e,t,.05,2*Math.random()+2.6),h(e,t,-.05,1.8*Math.random()+2.2);for(let e=0;e<p.length;e+=3){let[t,l]=p[e];h(t,l,0,1.5*Math.random()+1.6)}for(let[e,t]of f(.3,.63,.07,16))h(e,t,m,1.6*Math.random()+1.8);let g=[.3,.08,-.16,-.4];for(let e of[-.2,0,.2])for(let t of g){for(let l=0;l<4;l++){let r=[[-.07,-.07],[.07,-.07],[.07,.07],[-.07,.07]],a=r[l],i=r[(l+1)%4];for(let l=0;l<2;l++){let r=l/2;h(e+a[0]+(i[0]-a[0])*r,t+a[1]+(i[1]-a[1])*r,m,1.4*Math.random()+1.9)}}h(e,t,m,1.2*Math.random()+1.6)}for(let e=0;e<8;e++)h(-.05+e/7*.1,.63,m,+Math.random()+1.6);for(let e=0;e<16;e++)h(-.13+e/15*.26,-.62,m,1.4*Math.random()+1.9);for(;x.length<566;)h((2*Math.random()-1)*.29,(2*Math.random()-1)*.6,m,2.4*Math.pow(Math.random(),1.8)+.7);for(let e=0;e<46;e++){let e=1.6*Math.cbrt(Math.random()),t=Math.random()*Math.PI*2,l=Math.acos(2*Math.random()-1);h(e*Math.sin(l)*Math.cos(t),e*Math.sin(l)*Math.sin(t),e*Math.cos(l),1.1*Math.pow(Math.random(),2)+.4)}let b=new Float32Array(3*x.length),v=new Float32Array(x.length);for(let e=0;e<x.length;e++)b[3*e]=x[e].x,b[3*e+1]=x[e].y,b[3*e+2]=x[e].z,v[e]=x[e].size;let j=new d.LoY;j.setAttribute("position",new d.THS(b,3)),j.setAttribute("size",new d.THS(v,1));let w=document.createElement("canvas");w.width=128,w.height=128;let y=w.getContext("2d"),N=y.createRadialGradient(64,64,0,64,64,60);N.addColorStop(0,"rgba(255,255,255,1)"),N.addColorStop(.85,"rgba(255,255,255,1)"),N.addColorStop(1,"rgba(255,255,255,0)"),y.fillStyle=N,y.fillRect(0,0,128,128);let k=new d.GOR(w);k.minFilter=d.k6q,k.magFilter=d.k6q,k.generateMipmaps=!1;let M=new d.BKk({uniforms:{uColor:{value:new d.Pq0(...rY(l))},uTexture:{value:k},uPixelRatio:{value:Math.min(window.devicePixelRatio||1,2)}},vertexShader:` 94 attribute float size; 95 uniform float uPixelRatio; 96 varying float vAlpha; 97 void main() { 98 vAlpha = mix(0.16, 1.0, clamp((size - 0.8) / 4.0, 0.0, 1.0)); 99 vec4 mv = modelViewMatrix * vec4(position, 1.0); 100 gl_PointSize = size * uPixelRatio * (1.0 / -mv.z) * 3.4; 101 gl_Position = projectionMatrix * mv; 102 } 103 `,fragmentShader:` 104 uniform vec3 uColor; 105 uniform sampler2D uTexture; 106 varying float vAlpha; 107 void main() { 108 vec4 t = texture2D(uTexture, gl_PointCoord); 109 gl_FragColor = vec4(uColor, t.a * vAlpha); 110 } 111 `,transparent:!0,depthWrite:!1}),C=new d.ONl(j,M);C.rotation.x=.3,C.rotation.y=.5,n.add(C);let S=performance.now(),A=()=>{i.current=requestAnimationFrame(A);let e=(performance.now()-S)/1e3;t||(C.rotation.y=.5+.15*e),u.render(n,o)};A();let L=new ResizeObserver(()=>{a=e.clientWidth||1,s=e.clientHeight||1,o.aspect=a/s,o.updateProjectionMatrix(),u.setSize(a,s)});return L.observe(e),()=>{cancelAnimationFrame(i.current),L.disconnect(),j.dispose(),M.dispose(),k.dispose(),u.dispose(),u.domElement.parentNode===e&&e.removeChild(u.domElement)}},[l]);return((0,o.useEffect)(()=>{if(n&&!s.current)return s.current=m()||null,()=>{var e;null==(e=s.current)||e.call(s),s.current=null}},[m,n]),n)?(0,a.jsx)("div",{ref:r,"aria-hidden":"true",className:(0,Q.cn)("h-full w-full",t)}):null}function ae(e){let{data:t}=e;return(0,a.jsx)(r0,{data:t,Point:r7})}function at(e){let{className:t,color:l=rG}=e,r=(0,o.useRef)(null),i=(0,o.useRef)(0),s=(0,o.useRef)(null),[n,u]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=window.matchMedia("(min-width: 1024px)"),t=e=>u(e.matches);return(t(e),"function"==typeof e.addEventListener)?(e.addEventListener("change",t),()=>e.removeEventListener("change",t)):(e.addListener(t),()=>e.removeListener(t))},[]);let m=(0,o.useCallback)(()=>{let e=r.current;if(!e)return;let t=window.matchMedia("(prefers-reduced-motion: reduce)").matches,a=e.clientWidth||1,s=e.clientHeight||1,n=new d.Z58,o=new d.ubm(50,a/s,.1,100);o.position.z=3.6;let u=new c.JeP({antialias:!0,alpha:!0});u.setSize(a,s),u.setPixelRatio(Math.min(window.devicePixelRatio,2)),u.outputColorSpace
111=d.er$,e.appendChild(u.domElement);let m=new Float32Array(1836),x=new Float32Array(612),h=0,f=(e,t,l,r)=>{m[3*h]=e,m[3*h+1]=t,m[3*h+2]=l,x[h]=r,h++};for(let e=0;e<82;e++){let e=.24*Math.pow(Math.random(),2),t=Math.random()*Math.PI*2;f(Math.cos(t)*e,(Math.random()-.5)*.13*(1-e/.24),Math.sin(t)*e,2.4*Math.random()+2.4)}for(let e=0;e<484;e++){let t=1.1*Math.pow(Math.random(),.55),l=e%3*(2*Math.PI/3)+2.7*t+(Math.random()-.5)*.55;f(Math.cos(l)*t+(Math.random()-.5)*.14,(Math.random()-.5)*.1*(1-t/1.1*.65),Math.sin(l)*t+(Math.random()-.5)*.14,2.6*Math.pow(Math.random(),1.7)+.7)}for(let e=0;e<46;e++){let e=1.55*Math.cbrt(Math.random()),t=Math.random()*Math.PI*2,l=Math.acos(2*Math.random()-1);f(e*Math.sin(l)*Math.cos(t),e*Math.sin(l)*Math.sin(t),e*Math.cos(l),1.1*Math.pow(Math.random(),2)+.4)}let p=new d.LoY;p.setAttribute("position",new d.THS(m,3)),p.setAttribute("size",new d.THS(x,1));let g=document.createElement("canvas");g.width=128,g.height=128;let b=g.getContext("2d"),v=b.createRadialGradient(64,64,0,64,64,60);v.addColorStop(0,"rgba(255,255,255,1)"),v.addColorStop(.85,"rgba(255,255,255,1)"),v.addColorStop(1,"rgba(255,255,255,0)"),b.fillStyle=v,b.fillRect(0,0,128,128);let j=new d.GOR(g);j.minFilter=d.k6q,j.magFilter=d.k6q,j.generateMipmaps=!1;let w=new d.BKk({uniforms:{uColor:{value:new d.Pq0(...rY(l))},uTexture:{value:j},uPixelRatio:{value:Math.min(window.devicePixelRatio||1,2)}},vertexShader:` 112 attribute float size; 113 uniform float uPixelRatio; 114 varying float vAlpha; 115 void main() { 116 vAlpha = mix(0.16, 1.0, clamp((size - 0.8) / 4.0, 0.0, 1.0)); 117 vec4 mv = modelViewMatrix * vec4(position, 1.0); 118 gl_PointSize = size * uPixelRatio * (1.0 / -mv.z) * 3.4; 119 gl_Position = projectionMatrix * mv; 120 } 121 `,fragmentShader:` 122 uniform vec3 uColor; 123 uniform sampler2D uTexture; 124 varying float vAlpha; 125 void main() { 126 vec4 t = texture2D(uTexture, gl_PointCoord); 127 gl_FragColor = vec4(uColor, t.a * vAlpha); 128 } 129 `,transparent:!0,depthWrite:!1}),y=new d.ONl(p,w);y.rotation.x=.62,y.rotation.y=.3,n.add(y);let N=performance.now(),k=()=>{i.current=requestAnimationFrame(k);let e=(performance.now()-N)/1e3;t||(y.rotation.y=.3+.13*e),u.render(n,o)};k();let M=new ResizeObserver(()=>{a=e.clientWidth||1,s=e.clientHeight||1,o.aspect=a/s,o.updateProjectionMatrix(),u.setSize(a,s)});return M.observe(e),()=>{cancelAnimationFrame(i.current),M.disconnect(),p.dispose(),w.dispose(),j.dispose(),u.dispose(),u.domElement.parentNode===e&&e.removeChild(u.domElement)}},[l]);return((0,o.useEffect)(()=>{if(n&&!s.current)return s.current=m()||null,()=>{var e;null==(e=s.current)||e.call(s),s.current=null}},[m,n]),n)?(0,a.jsx)("div",{ref:r,"aria-hidden":"true",className:(0,Q.cn)("h-full w-full",t)}):null}function al(e){let{data:t}=e;return(0,a.jsx)(r0,{data:t,Point:at})}function ar(e){let{className:t,color:l=rG}=e,r=(0,o.useRef)(null),i=(0,o.useRef)(0),s=(0,o.useRef)(null),[n,u]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=window.matchMedia("(min-width: 1024px)"),t=e=>u(e.matches);return(t(e),"function"==typeof e.addEventListener)?(e.addEventListener("change",t),()=>e.removeEventListener("change",t)):(e.addListener(t),()=>e.removeListener(t))},[]);let m=(0,o.useCallback)(()=>{let e=r.current;if(!e)return;let t=window.matchMedia("(prefers-reduced-motion: reduce)").matches,a=e.clientWidth||1,s=e.clientHeight||1,n=new d.Z58,o=new d.ubm(50,a/s,.1,100);o.position.z=3.7;let u=new c.JeP({antialias:!0,alpha:!0});u.setSize(a,s),u.setPixelRatio(Math.min(window.devicePixelRatio,2)),u.outputColorSpace=d.er$,e.appendChild(u.domElement);let m=[{c:new d.Pq0(0,.02,.15),yaw:0,s:1},{c:new d.Pq0(-.56,-.04,-.1),yaw:.6,s:.92},{c:new d.Pq0(.56,-.03,-.05),yaw:-.5,s:.94},{c:new d.Pq0(-.3,.04,.36),yaw:1.25,s:.88},{c:new d.Pq0(.33,0,-.42),yaw:-1.05,s:.9}],x=[],h=(e,t,l,r)=>{let a=m[e],i=new d.Pq0(t*a.s,l*a.s,0).applyEuler(new d.O9p(0,a.yaw,0)).add(a.c);x.push({v:i,size:r})},f=(e,t,l,r,a,i,s)=>{for(let n=0;n<i;n++){let o=n/i;h(e,t+(r-t)*o,l+(a-l)*o,s+.8*Math.random())}};for(let e=0;e<m.length;e++){for(let t=0;t<24;t++){let t=Math.random()*Math.PI*2,l=.14*Math.sqrt(Math.random());h(e,Math.cos(t)*l,.55+Math.sin(t)*l,1.6*Math.random()+1.9)}f(e,-.19,.34,.19,.34,9,2.4),f(e,.19,.34,.11,-.08,7,2.2),f(e,.11,-.08,-.11,-.08,6,2.2),f(e,-.11,-.08,-.19,.34,7,2.2),f(e,-.19,.32,-.28,-.06,11,2),f(e,.19,.32,.28,-.06,11,2),f(e,-.08,-.08,-.12,-.62,13,2.2),f(e,.08,-.08,.12,-.62,13,2.2)}for(;x.length<566;){let e=Math.random()*m.length|0,t=-.08+.42*Math.random();h(e,(2*Math.random()-1)*(.11+(.34-t)/.42*.08),t,2*Math.pow(Math.random(),1.7)+.7)}for(let e=0;e<46;e++){let e=1.7*Math.cbrt(Math.random()),t=Math.random()*Math.PI*2,l=Math.acos(2*Math.random()-1);x.push({v:new d.Pq0(e*Math.sin(l)*Math.cos(t),e*Math.sin(l)*Math.sin(t),e*Math.cos(l)),size:1.1*Math.pow(Math.random(),2)+.4})}let p=new d.Pq0;for(let e of x)p.add(e.v);p.multiplyScalar(1/x.length);let g=new Float32Array(3*x.length),b=new Float32Array(x.length);for(let e=0;e<x.length;e++)g[3*e]=x[e].v.x-p.x,g[3*e+1]=x[e].v.y-p.y,g[3*e+2]=x[e].v.z-p.z,b[e]=x[e].size;let v=new d.LoY;v.setAttribute("position",new d.THS(g,3)),v.setAttribute("size",new d.THS(b,1));let j=document.createElement("canvas");j.width=128,j.height=128;let w=j.getContext("2d"),y=w.createRadialGradient(64,64,0,64,64,60);y.addColorStop(0,"rgba(255,255,255,1)"),y.addColorStop(.85,"rgba(255,255,255,1)"),y.addColorStop(1,"rgba(255,255,255,0)"),w.fillStyle=y,w.fillRect(0,0,128,128);let N=new d.GOR(j);N.minFilter=d.k6q,N.magFilter=d.k6q,N.generateMipmaps=!1;let k=new d.BKk({uniforms:{uColor:{value:new d.Pq0(...rY(l))},uTexture:{value:N},uPixelRatio:{value:Math.min(window.devicePixelRatio||1,2)}},vertexShader:` 130 attribute float size; 131 uniform float uPixelRatio; 132 varying float vAlpha; 133 void main() { 134 vAlpha = mix(0.16, 1.0, clamp((size - 0.8) / 4.0, 0.0, 1.0));
135 vec4 mv = modelViewMatrix * vec4(position, 1.0); 136 gl_PointSize = size * uPixelRatio * (1.0 / -mv.z) * 3.4; 137 gl_Position = projectionMatrix * mv; 138 } 139 `,fragmentShader:` 140 uniform vec3 uColor; 141 uniform sampler2D uTexture; 142 varying float vAlpha; 143 void main() { 144 vec4 t = texture2D(uTexture, gl_PointCoord); 145 gl_FragColor = vec4(uColor, t.a * vAlpha); 146 } 147 `,transparent:!0,depthWrite:!1}),M=new d.ONl(v,k);M.rotation.x=.12,M.rotation.y=.2,n.add(M);let C=performance.now(),S=()=>{i.current=requestAnimationFrame(S);let e=(performance.now()-C)/1e3;t||(M.rotation.y=.2+.15*e),u.render(n,o)};S();let A=new ResizeObserver(()=>{a=e.clientWidth||1,s=e.clientHeight||1,o.aspect=a/s,o.updateProjectionMatrix(),u.setSize(a,s)});return A.observe(e),()=>{cancelAnimationFrame(i.current),A.disconnect(),v.dispose(),k.dispose(),N.dispose(),u.dispose(),u.domElement.parentNode===e&&e.removeChild(u.domElement)}},[l]);return((0,o.useEffect)(()=>{if(n&&!s.current)return s.current=m()||null,()=>{var e;null==(e=s.current)||e.call(s),s.current=null}},[m,n]),n)?(0,a.jsx)("div",{ref:r,"aria-hidden":"true",className:(0,Q.cn)("h-full w-full",t)}):null}function aa(e){let{data:t}=e;return(0,a.jsx)(r0,{data:t,Point:ar})}function ai(e){let{className:t,color:l=rG}=e,r=(0,o.useRef)(null),i=(0,o.useRef)(0),s=(0,o.useRef)(null),[n,u]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=window.matchMedia("(min-width: 1024px)"),t=e=>u(e.matches);return(t(e),"function"==typeof e.addEventListener)?(e.addEventListener("change",t),()=>e.removeEventListener("change",t)):(e.addListener(t),()=>e.removeListener(t))},[]);let m=(0,o.useCallback)(()=>{let e=r.current;if(!e)return;let t=window.matchMedia("(prefers-reduced-motion: reduce)").matches,a=e.clientWidth||1,s=e.clientHeight||1,n=new d.Z58,o=new d.ubm(50,a/s,.1,100);o.position.z=4;let u=new c.JeP({antialias:!0,alpha:!0});u.setSize(a,s),u.setPixelRatio(Math.min(window.devicePixelRatio,2)),u.outputColorSpace=d.er$,e.appendChild(u.domElement);let m=[],x=(e,t,l,r)=>m.push({x:e,y:t,z:l,size:r}),h=(e,t,l,r,a,i,s,n)=>{for(let o=0;o<s;o++){let d=o/s;x(e+(r-e)*d,t+(a-t)*d,l+(i-l)*d,n+.8*Math.random())}},f=[-.45,.45];for(let e of[-.5,.5])for(let t of f)h(e,-.55,t,e,.3,t,9,2.4);for(let e of[-.55,.3])h(-.5,e,-.45,.5,e,-.45,9,2.4),h(-.5,e,.45,.5,e,.45,9,2.4),h(-.5,e,-.45,-.5,e,.45,8,2.4),h(.5,e,-.45,.5,e,.45,8,2.4);for(let e of(h(0,.8,-.53,0,.8,.53,11,2.8),h(-.58,.3,-.53,-.58,.3,.53,10,2.6),h(.58,.3,-.53,.58,.3,.53,10,2.6),[-.53,.53]))h(-.58,.3,e,0,.8,e,9,2.6),h(.58,.3,e,0,.8,e,9,2.6),h(-.58,.3,e,.58,.3,e,10,2.4);let p=(e,t,l,r)=>{h(e-l,t-r,.452,e+l,t-r,.452,4,2.2),h(e+l,t-r,.452,e+l,t+r,.452,4,2.2),h(e+l,t+r,.452,e-l,t+r,.452,4,2.2),h(e-l,t+r,.452,e-l,t-r,.452,4,2.2)};for(p(0,-.32,.12,.23),p(-.3,-.02,.09,.09),p(.3,-.02,.09,.09);m.length<566;)if(.55>Math.random()){let e=4*Math.random()|0,t=-.55+.8500000000000001*Math.random();0===e?x(.5,t,(2*Math.random()-1)*.45,2*Math.pow(Math.random(),1.8)+.7):1===e?x(-.5,t,(2*Math.random()-1)*.45,2*Math.pow(Math.random(),1.8)+.7):2===e?x((2*Math.random()-1)*.5,t,.45,2*Math.pow(Math.random(),1.8)+.7):x((2*Math.random()-1)*.5,t,-.45,2*Math.pow(Math.random(),1.8)+.7)}else{let e=Math.random();x((.5>Math.random()?-1:1)*(.58-.58*e),.3+.5*e,(2*Math.random()-1)*.53,2*Math.pow(Math.random(),1.8)+.7)}for(let e=0;e<46;e++){let e=1.65*Math.cbrt(Math.random()),t=Math.random()*Math.PI*2,l=Math.acos(2*Math.random()-1);x(e*Math.sin(l)*Math.cos(t),e*Math.sin(l)*Math.sin(t),e*Math.cos(l),1.1*Math.pow(Math.random(),2)+.4)}let g=0,b=0,v=0;for(let e of m)g+=e.x,b+=e.y,v+=e.z;g/=m.length,b/=m.length,v/=m.length;let j=new Float32Array(3*m.length),w=new Float32Array(m.length);for(let e=0;e<m.length;e++)j[3*e]=m[e].x-g,j[3*e+1]=m[e].y-b,j[3*e+2]=m[e].z-v,w[e]=m[e].size;let y=new d.LoY;y.setAttribute("position",new d.THS(j,3)),y.setAttribute("size",new d.THS(w,1));let N=document.createElement("canvas");N.width=128,N.height=128;let k=N.getContext("2d"),M=k.createRadialGradient(64,64,0,64,64,60);M.addColorStop(0,"rgba(255,255,255,1)"),M.addColorStop(.85,"rgba(255,255,255,1)"),M.addColorStop(1,"rgba(255,255,255,0)"),k.fillStyle=M,k.fillRect(0,0,128,128);let C=new d.GOR(N);C.minFilter=d.k6q,C.magFilter=d.k6q,C.generateMipmaps=!1;let S=new d.BKk({uniforms:{uColor:{value:new d.Pq0(...rY(l))},uTexture:{value:C},uPixelRatio:{value:Math.min(window.devicePixelRatio||1,2)}},vertexShader:` 148 attribute float size; 149 uniform float uPixelRatio; 150 varying float vAlpha; 151 void main() { 152 vAlpha = mix(0.16, 1.0, clamp((size - 0.8) / 4.0, 0.0, 1.0));
153 vec4 mv = modelViewMatrix * vec4(position, 1.0); 154 gl_PointSize = size * uPixelRatio * (1.0 / -mv.z) * 3.4; 155 gl_Position = projectionMatrix * mv; 156 } 157 `,fragmentShader:` 158 uniform vec3 uColor; 159 uniform sampler2D uTexture; 160 varying float vAlpha; 161 void main() { 162 vec4 t = texture2D(uTexture, gl_PointCoord); 163 gl_FragColor = vec4(uColor, t.a * vAlpha); 164 } 165 `,transparent:!0,depthWrite:!1}),A=new d.ONl(y,S);A.rotation.x=.18,A.rotation.y=.5,n.add(A);let L=performance.now(),R=()=>{i.current=requestAnimationFrame(R);let e=(performance.now()-L)/1e3;t||(A.rotation.y=.5+.15*e),u.render(n,o)};R();let E=new ResizeObserver(()=>{a=e.clientWidth||1,s=e.clientHeight||1,o.aspect=a/s,o.updateProjectionMatrix(),u.setSize(a,s)});return E.observe(e),()=>{cancelAnimationFrame(i.current),E.disconnect(),y.dispose(),S.dispose(),C.dispose(),u.dispose(),u.domElement.parentNode===e&&e.removeChild(u.domElement)}},[l]);return((0,o.useEffect)(()=>{if(n&&!s.current)return s.current=m()||null,()=>{var e;null==(e=s.current)||e.call(s),s.current=null}},[m,n]),n)?(0,a.jsx)("div",{ref:r,"aria-hidden":"true",className:(0,Q.cn)("h-full w-full",t)}):null}function as(e){let{data:t}=e;return(0,a.jsx)(r0,{data:t,Point:ai})}function an(e){let{className:t,color:l=rG}=e,r=(0,o.useRef)(null),i=(0,o.useRef)(0),s=(0,o.useRef)(null),[n,u]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=window.matchMedia("(min-width: 1024px)"),t=e=>u(e.matches);return(t(e),"function"==typeof e.addEventListener)?(e.addEventListener("change",t),()=>e.removeEventListener("change",t)):(e.addListener(t),()=>e.removeListener(t))},[]);let m=(0,o.useCallback)(()=>{let e=r.current;if(!e)return;let t=window.matchMedia("(prefers-reduced-motion: reduce)").matches,a=e.clientWidth||1,s=e.clientHeight||1,n=new d.Z58,o=new d.ubm(50,a/s,.1,100);o.position.z=4;let u=new c.JeP({antialias:!0,alpha:!0});u.setSize(a,s),u.setPixelRatio(Math.min(window.devicePixelRatio,2)),u.outputColorSpace=d.er$,e.appendChild(u.domElement);let m=[],x=(e,t,l,r)=>m.push({x:e,y:t,z:l,size:r}),h=new d.Pq0(-.5,.02,0),f=(e,t)=>[16*Math.pow(Math.sin(e),3)/17*t*.62,((13*Math.cos(e)-5*Math.cos(2*e)-2*Math.cos(3*e)-Math.cos(4*e))/17+.35)*t*.62],p=e=>.34*Math.sqrt(Math.max(0,1-e*e));for(let e of[1,.82,.64,.46,.3,.15]){let t=p(e);for(let l=0;l<18;l++){let[r,a]=f(l/18*Math.PI*2,e);x(h.x+r,h.y+a,h.z+t,1.8*Math.random()+2.4),x(h.x+r,h.y+a,h.z-t,1.8*Math.random()+2.4)}}let g=new d.Pq0(.52,.02,0),b=[[.12,.12],[.12,.36],[-.12,.36],[-.12,.12],[-.36,.12],[-.36,-.12],[-.12,-.12],[-.12,-.36],[.12,-.36],[.12,-.12],[.36,-.12],[.36,.12]],v=(e,t)=>
165.12>=Math.abs(e)&&.36>=Math.abs(t)||.12>=Math.abs(t)&&.36>=Math.abs(e);for(let e=0;e<12;e++){let t=b[e],l=b[(e+1)%12],r=Math.max(2,Math.round(Math.hypot(l[0]-t[0],l[1]-t[1])/.05));for(let e=0;e<r;e++){let a=e/r,i=g.x+t[0]+(l[0]-t[0])*a,s=g.y+t[1]+(l[1]-t[1])*a;x(i,s,.14,1.6*Math.random()+2.2),x(i,s,-.14,1.6*Math.random()+2.2)}}for(let[e,t]of b)for(let l=0;l<3;l++)x(g.x+e,g.y+t,-.14+l/2*.28,1.4*Math.random()+2);for(;m.length<566;)if(.56>Math.random()){let e=.14+.86*Math.random(),[t,l]=f(Math.random()*Math.PI*2,e);x(h.x+t,h.y+l,h.z+(2*Math.random()-1)*p(e),2*Math.pow(Math.random(),1.8)+.7)}else{let e=0,t=0;do e=(2*Math.random()-1)*.36,t=(2*Math.random()-1)*.36;while(!v(e,t));x(g.x+e,g.y+t,(2*Math.random()-1)*.14,2*Math.pow(Math.random(),1.8)+.7)}for(let e=0;e<46;e++){let e=1.75*Math.cbrt(Math.random()),t=Math.random()*Math.PI*2,l=Math.acos(2*Math.random()-1);x(e*Math.sin(l)*Math.cos(t),e*Math.sin(l)*Math.sin(t),e*Math.cos(l),1.1*Math.pow(Math.random(),2)+.4)}let j=0,w=0,y=0;for(let e of m)j+=e.x,w+=e.y,y+=e.z;j/=m.length,w/=m.length,y/=m.length;let N=new Float32Array(3*m.length),k=new Float32Array(m.length);for(let e=0;e<m.length;e++)N[3*e]=m[e].x-j,N[3*e+1]=m[e].y-w,N[3*e+2]=m[e].z-y,k[e]=m[e].size;let M=new d.LoY;M.setAttribute("position",new d.THS(N,3)),M.setAttribute("size",new d.THS(k,1));let C=document.createElement("canvas");C.width=128,C.height=128;let S=C.getContext("2d"),A=S.createRadialGradient(64,64,0,64,64,60);A.addColorStop(0,"rgba(255,255,255,1)"),A.addColorStop(.85,"rgba(255,255,255,1)"),A.addColorStop(1,"rgba(255,255,255,0)"),S.fillStyle=A,S.fillRect(0,0,128,128);let L=new d.GOR(C);L.minFilter=d.k6q,L.magFilter=d.k6q,L.generateMipmaps=!1;let R=new d.BKk({uniforms:{uColor:{value:new d.Pq0(...rY(l))},uTexture:{value:L},uPixelRatio:{value:Math.min(window.devicePixelRatio||1,2)}},vertexShader:` 166 attribute float size; 167 uniform float uPixelRatio; 168 varying float vAlpha; 169 void main() { 170 vAlpha = mix(0.16, 1.0, clamp((size - 0.8) / 4.0, 0.0, 1.0)); 171 vec4 mv = modelViewMatrix * vec4(position, 1.0); 172 gl_PointSize = size * uPixelRatio * (1.0 / -mv.z) * 3.4; 173 gl_Position = projectionMatrix * mv; 174 } 175 `,fragmentShader:` 176 uniform vec3 uColor; 177 uniform sampler2D uTexture; 178 varying float vAlpha; 179 void main() { 180 vec4 t = texture2D(uTexture, gl_PointCoord); 181 gl_FragColor = vec4(uColor, t.a * vAlpha); 182 } 183 `,transparent:!0,depthWrite:!1}),E=new d.ONl(M,R);E.rotation.x=.15,E.rotation.y=.4,n.add(E);let P=performance.now(),_=()=>{i.current=requestAnimationFrame(_);let e=(performance.now()-P)/1e3;t||(E.rotation.y=.4+.15*e),u.render(n,o)};_();let F=new ResizeObserver(()=>{a=e.clientWidth||1,s=e.clientHeight||1,o.aspect=a/s,o.updateProjectionMatrix(),u.setSize(a,s)});return F.observe(e),()=>{cancelAnimationFrame(i.current),F.disconnect(),M.dispose(),R.dispose(),L.dispose(),u.dispose(),u.domElement.parentNode===e&&e.removeChild(u.domElement)}},[l]);return((0,o.useEffect)(()=>{if(n&&!s.current)return s.current=m()||null,()=>{var e;null==(e=s.current)||e.call(s),s.current=null}},[m,n]),n)?(0,a.jsx)("div",{ref:r,"aria-hidden":"true",className:(0,Q.cn)("h-full w-full",t)}):null}function ao(e){let{data:t}=e;return(0,a.jsx)(r0,{data:t,Point:an})}function ad(e){let{className:t,color:l=rG}=e,r=(0,o.useRef)(null),i=(0,o.useRef)(0),s=(0,o.useRef)(null),[n,u]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=window.matchMedia("(min-width: 1024px)"),t=e=>u(e.matches);return(t(e),"function"==typeof e.addEventListener)?(e.addEventListener("change",t),()=>e.removeEventListener("change",t)):(e.addListener(t),()=>e.removeListener(t))},[]);let m=(0,o.useCallback)(()=>{let e=r.current;if(!e)return;let t=window.matchMedia("(prefers-reduced-motion: reduce)").matches,a=e.clientWidth||1,s=e.clientHeight||1,n=new d.Z58,o=new d.ubm(50,a/s,.1,100);o.position.z=3.9;let u=new c.JeP({antialias:!0,alpha:!0});u.setSize(a,s),u.setPixelRatio(Math.min(window.devicePixelRatio,2)),u.outputColorSpace=d.er$,e.appendChild(u.domElement);let m=document.createElement("canvas");m.width=128,m.height=128;let x=m.getContext("2d"),h=x.createRadialGradient(64,64,0,64,64,60);h.addColorStop(0,"rgba(255,255,255,1)"),h.addColorStop(.85,"rgba(255,255,255,1)"),h.addColorStop(1,"rgba(255,255,255,0)"),x.fillStyle=h,x.fillRect(0,0,128,128);let f=new d.GOR(m);f.minFilter=d.k6q,f.magFilter=d.k6q,f.generateMipmaps=!1;let p=new d.BKk({uniforms:{uColor:{value:new d.Pq0(...rY(l))},uTexture:{value:f},uPixelRatio:{value:Math.min(window.devicePixelRatio||1,2)}},vertexShader:` 184 attribute float size; 185 uniform float uPixelRatio; 186 varying float vAlpha; 187 void main() { 188 vAlpha = mix(0.16, 1.0, clamp((size - 0.8) / 4.0, 0.0, 1.0));
189 vec4 mv = modelViewMatrix * vec4(position, 1.0); 190 gl_PointSize = size * uPixelRatio * (1.0 / -mv.z) * 3.4; 191 gl_Position = projectionMatrix * mv; 192 } 193 `,fragmentShader:` 194 uniform vec3 uColor; 195 uniform sampler2D uTexture; 196 varying float vAlpha; 197 void main() { 198 vec4 t = texture2D(uTexture, gl_PointCoord); 199 gl_FragColor = vec4(uColor, t.a * vAlpha); 200 } 201 `,transparent:!0,depthWrite:!1}),g=[],b=e=>{let t=[],l=(e,l,r,a)=>t.push({x:e,y:l,z:r,s:a}),r=t=>t*e.teeth/(2*Math.PI)%1<.5?e.rTip:e.rRoot,a=6*e.teeth;for(let e=0;e<a;e++){let t=e/a*Math.PI*2,i=r(t);l(Math.cos(t)*i,Math.sin(t)*i,.07,1.7*Math.random()+2.4),l(Math.cos(t)*i,Math.sin(t)*i,-.07,1.7*Math.random()+2.4)}for(let t=0;t<16;t++){let r=t/16*Math.PI*2;l(Math.cos(r)*e.rHub,Math.sin(r)*e.rHub,.07,1.3*Math.random()+2),l(Math.cos(r)*e.rHub,Math.sin(r)*e.rHub,-.07,1.3*Math.random()+2)}for(let t=0;t<2*e.teeth;t++){let a=t/(2*e.teeth)*Math.PI*2,i=r(a);l(Math.cos(a)*i,Math.sin(a)*i,(2*Math.random()-1)*.07,1.2*Math.random()+1.8)}for(;t.length<e.count;){let t=Math.random()*Math.PI*2,r=e.rHub+Math.sqrt(Math.random())*(e.rRoot-e.rHub);l(Math.cos(t)*r,Math.sin(t)*r,(.5>Math.random()?.07:-.07)*(.35+.65*Math.random()),2*Math.pow(Math.random(),1.7)+.7)}let i=new Float32Array(3*t.length),s=new Float32Array(t.length);for(let e=0;e<t.length;e++)i[3*e]=t[e].x,i[3*e+1]=t[e].y,i[3*e+2]=t[e].z,s[e]=t[e].s;let n=new d.LoY;return n.setAttribute("position",new d.THS(i,3)),n.setAttribute("size",new d.THS(s,1)),g.push(n),n},v=[{rTip:.44,rRoot:.34,teeth:11,rHub:.13,count:210,pos:[-.34,.16,0],spin:.42},{rTip:.34,rRoot:.26,teeth:9,rHub:.1,count:190,pos:[.3,-.08,0],spin:-.52},{rTip:.27,rRoot:.21,teeth:7,rHub:.085,count:166,pos:[.13,.45,0],spin:.66}],j=new d.YJl,w=[];for(let e of v){let t=new d.ONl(b(e),p);t.position.set(e.pos[0],e.pos[1],e.pos[2]),j.add(t),w.push(t)}{let e=new Float32Array(138),t=new Float32Array(46);for(let l=0;l<46;l++){let r=1.6*Math.cbrt(Math.random()),a=Math.random()*Math.PI*2,i=Math.acos(2*Math.random()-1);e[3*l]=r*Math.sin(i)*Math.cos(a),e[3*l+1]=r*Math.sin(i)*Math.sin(a),e[3*l+2]=r*Math.cos(i),t[l]=1.1*Math.pow(Math.random(),2)+.4}let l=new d.LoY;l.setAttribute("position",new d.THS(e,3)),l.setAttribute("size",new d.THS(t,1)),g.push(l),j.add(new d.ONl(l,p))}j.rotation.x=.2,j.rotation.y=.3,n.add(j);let y=performance.now(),N=()=>{i.current=requestAnimationFrame(N);let e=(performance.now()-y)/1e3;if(!t){j.rotation.y=.3+.12*e;for(let t=0;t<w.length;t++)w[t].rotation.z=e*v[t].spin}u.render(n,o)};N();let k=new ResizeObserver(()=>{a=e.clientWidth||1,s=e.clientHeight||1,o.aspect=a/s,o.updateProjectionMatrix(),u.setSize(a,s)});return k.observe(e),()=>{for(let e of(cancelAnimationFrame(i.current),k.disconnect(),g))e.dispose();p.dispose(),f.dispose(),u.dispose(),u.domElement.parentNode===e&&e.removeChild(u.domElement)}},[l]);return((0,o.useEffect)(()=>{if(n&&!s.current)return s.current=m()||null,()=>{var e;null==(e=s.current)||e.call(s),s.current=null}},[m,n]),n)?(0,a.jsx)("div",{ref:r,"aria-hidden":"true",className:(0,Q.cn)("h-full w-full",t)}):null}function ac(e){let{data:t}=e;return(0,a.jsx)(r0,{data:t,Point:ad})}function au(e){let{className:t,color:l=rG}=e,r=(0,o.useRef)(null),i=(0,o.useRef)(0),s=(0,o.useRef)(null),[n,u]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=window.matchMedia("(min-width: 1024px)"),t=e=>u(e.matches);return(t(e),"function"==typeof e.addEventListener)?(e.addEventListener("change",t),()=>e.removeEventListener("change",t)):(e.addListener(t),()=>e.removeListener(t))},[]);let m=(0,o.useCallback)(()=>{let e=r.current;if(!e)return;let t=window.matchMedia("(prefers-reduced-motion: reduce)").matches,a=e.clientWidth||1,s=e.clientHeight||1,n=new d.Z58,o=new d.ubm(50,a/s,.1,100);o.position.z=3.7;let u=new c.JeP({antialias:!0,alpha:!0});u.setSize(a,s),u.setPixelRatio(Math.min(window.devicePixelRatio,2)),u.outputColorSpace=d.er$,e.appendChild(u.domElement);let m=e=>.52+.3*(.78+.62*Math.pow(Math.max(0,Math.sin(e)),1.5)),x=e=>-.03-(e-.52)*.13,h=[],f=(e,t,l,r)=>h.push({x:e,y:t,z:l,size:r});for(let e of[.06,.26,.46,.66,.86]){let t=Math.PI/2*e,l=.52*Math.cos(t),r=.52*Math.sin(t);for(let e=0;e<22;e++){let t=e/22*Math.PI*2;f(Math.cos(t)*r,l,Math.sin(t)*r,1.7*Math.random()+2.3)}}for(let e=0;e<28;e++){let t=e/28*Math.PI*2;f(.52*Math.cos(t),0,.52*Math.sin(t),1.6*Math.random()+2.4)}for(let e=0;e<34;e++){let t=e/34*Math.PI*2,l=m(t);f(.52*Math.cos(t),x(.52),.52*Math.sin(t),1.4*Math.random()+2),f(Math.cos(t)*l,x(l),Math.sin(t)*l,1.6*Math.random()+2.3)}for(let e=0;e<22;e++){let t=-Math.PI/2+e/21*Math.PI;f(.006240000000000001,.54*Math.cos(t),.54*Math.sin(t),1.4*Math.random()+2.2)}for(;h.length<566;)if(.55>Math.random()){let e=.98*Math.acos(Math.random()),t=Math.random()*Math.PI*2,l=.52*Math.sin(e);f(Math.cos(t)*l,.52*Math.cos(e),Math.sin(t)*l,2*Math.pow(Math.random(),1.8)+.7)}else{let e=Math.random()*Math.PI*2,t=.52+Math.random()*(m(e)-.52);f(Math.cos(e)*t,x(t),Math.sin(e)*t,2*Math.pow(Math.random(),1.8)+.7)}for(let e=0;e<46;e++){let e=1.7*Math.cbrt(Math.random()),t=Math.random()*Math.PI*2,l=Math.acos(2*Math.random()-1);f(e*Math.sin(l)*Math.cos(t),e*Math.sin(l)*Math.sin(t),e*Math.cos(l),1.1*Math.pow(Math.random(),2)+.4)}let p=0,g=0,b=0;for(let e of h)p+=e.x,g+=e.y,b+=e.z;p/=h.length,g/=h.length,b/=h.length;let v=new Float32Array(3*h.length),j=new Float32Array(h.length);for(let e=0;e<h.length;e++)v[3*e]=h[e].x-p,v[3*e+1]=h[e].y-g,v[3*e+2]=h[e].z-b,j[e]=h[e].size;let w=new d.LoY;w.setAttribute("position",new d.THS(v,3)),w.setAttribute("size",new d.THS(j,1));let y=document.createElement("canvas");y.width=128,y.height=128;let N=y.getContext("2d"),k=N.createRadialGradient(64,64,0,64,64,60);k.addColorStop(0,"rgba(255,255,255,1)"),k.addColorStop(.85,"rgba(255,255,255,1)"),k.addColorStop(1,"rgba(255,255,255,0)"),N.fillStyle=k,N.fillRect(0,0,128,128);let M=new d.GOR(y);M.minFilter=d.k6q,M.magFilter=d.k6q,M.generateMipmaps=!1;let C=new d.BKk({uniforms:{uColor:{value:new d.Pq0(...rY(l))},uTexture:{value:M},uPixelRatio:{value:Math.min(window.devicePixelRatio||1,2)}},vertexShader:` 202 attribute float size; 203 uniform float uPixelRatio; 204 varying float vAlpha; 205 void main() { 206 vAlpha = mix(0.16, 1.0, clamp((size - 0.8) / 4.0, 0.0, 1.0));
207 vec4 mv = modelViewMatrix * vec4(position, 1.0); 208 gl_PointSize = size * uPixelRatio * (1.0 / -mv.z) * 3.4; 209 gl_Position = projectionMatrix * mv; 210 } 211 `,fragmentShader:` 212 uniform vec3 uColor; 213 uniform sampler2D uTexture; 214 varying float vAlpha; 215 void main() { 216 vec4 t = texture2D(uTexture, gl_PointCoord); 217 gl_FragColor = vec4(uColor, t.a * vAlpha); 218 } 219 `,transparent:!0,depthWrite:!1}),S=new d.ONl(w,C);S.rotation.x=.25,S.rotation.y=.5,n.add(S);let A=performance.now(),L=()=>{i.current=requestAnimationFrame(L);let e=(performance.now()-A)/1e3;t||(S.rotation.y=.5+.15*e),u.render(n,o)};L();let R=new ResizeObserver(()=>{a=e.clientWidth||1,s=e.clientHeight||1,o.aspect=a/s,o.updateProjectionMatrix(),u.setSize(a,s)});return R.observe(e),()=>{cancelAnimationFrame(i.current),R.disconnect(),w.dispose(),C.dispose(),M.dispose(),u.dispose(),u.domElement.parentNode===e&&e.removeChild(u.domElement)}},[l]);return((0,o.useEffect)(()=>{if(n&&!s.current)return s.current=m()||null,()=>{var e;null==(e=s.current)||e.call(s),s.current=null}},[m,n]),n)?(0,a.jsx)("div",{ref:r,"aria-hidden":"true",className:(0,Q.cn)("h-full w-full",t)}):null}function am(e){let{data:t}=e;return(0,a.jsx)(r0,{data:t,Point:au})}let ax=Math.PI*(3-Math.sqrt(5));function ah(e){let{className:t,color:l=rG}=e,r=(0,o.useRef)(null),i=(0,o.useRef)(0),s=(0,o.useRef)(null),[n,u]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=window.matchMedia("(min-width: 1024px)"),t=e=>u(e.matches);return(t(e),"function"==typeof e.addEventListener)?(e.addEventListener("change",t),()=>e.removeEventListener("change",t)):(e.addListener(t),()=>e.removeListener(t))},[]);let m=(0,o.useCallback)(()=>{let e=r.current;if(!e)return;let t=window.matchMedia("(prefers-reduced-motion: reduce)").matches,a=e.clientWidth||1,s=e.clientHeight||1,n=new d.Z58,o=new d.ubm(50,a/s,.1,100);o.position.z=4;let u=new c.JeP({antialias:!0,alpha:!0});u.setSize(a,s),u.setPixelRatio(Math.min(window.devicePixelRatio,2)),u.outputColorSpace=d.er$,e.appendChild(u.domElement);let m=document.createElement("canvas");m.width=128,m.height=128;let x=m.getContext("2d"),h=x.createRadialGradient(64,64,0,64,64,60);h.addColorStop(0,"rgba(255,255,255,1)"),h.addColorStop(.85,"rgba(255,255,255,1)"),h.addColorStop(1,"rgba(255,255,255,0)"),x.fillStyle=h,x.fillRect(0,0,128,128);let f=new d.GOR(m);f.minFilter=d.k6q,f.magFilter=d.k6q,f.generateMipmaps=!1;let p=new d.BKk({uniforms:{uColor:{value:new d.Pq0(...rY(l))},uTexture:{value:f},uPixelRatio:{value:Math.min(window.devicePixelRatio||1,2)}},vertexShader:` 220 attribute float size; 221 uniform float uPixelRatio; 222 varying float vAlpha; 223 void main() { 224 vAlpha = mix(0.16, 1.0, clamp((size - 0.8) / 4.0, 0.0, 1.0)); 225 vec4 mv = modelViewMatrix * vec4(position, 1.0); 226 gl_PointSize = size * uPixelRatio * (1.0 / -mv.z) * 3.4; 227 gl_Position = projectionMatrix * mv; 228 } 229 `,fragmentShader:` 230 uniform vec3 uColor; 231 uniform sampler2D uTexture; 232 varying float vAlpha; 233 void main() { 234 vec4 t = texture2D(uTexture, gl_PointCoord); 235 gl_FragColor = vec4(uColor, t.a * vAlpha); 236 } 237 `,transparent:!0,depthWrite:!1}),g=[],b=(e,t,l)=>{let r=[],a=(e,t,l,a)=>r.push({x:e,y:t,z:l,s:a});for(let l=0;l<t;l++){let r=1-l/(t-1)*2,i=Math.sqrt(Math.max(0,1-r*r)),s=l*ax;a(Math.cos(s)*i*e,r*e,Math.sin(s)*i*e,2.2*Math.pow(Math.random(),1.7)+.8)}for(let t=0;t<l;t++)for(let l=0;l<26;l++){let r=l/26*Math.PI*2,i=Math.cos(r)*e,s=0,n=Math.sin(r)*e;1===t?(i=Math.cos(r)*e,s=Math.sin(r)*e,n=0):2===t&&(i=0,s=Math.sin(r)*e,n=Math.cos(r)*e),a(i,s,n,1.6*Math.random()+2.3)}let i=new Float32Array(3*r.length),s=new Float32Array(r.length);for(let e=0;e<r.length;e++)i[3*e]=r[e].x,i[3*e+1]=r[e].y,i[3*e+2]=r[e].z,s[e]=r[e].s;let n=new d.LoY;return n.setAttribute("position",new d.THS(i,3)),n.setAttribute("size",new d.THS(s,1)),g.push(n),n},v=new d.YJl,j=new d.ONl(b(.6,364,3),p);v.add(j);let w=new d.ONl(b(.16,100,1),p);v.add(w);{let e=new Float32Array(138),t=new Float32Array(46);for(let l=0;l<46;l++){let r=1.7*Math.cbrt(Math.random()),a=Math.random()*Math.PI*2,i=Math.acos(2*Math.random()-1);e[3*l]=r*Math.sin(i)*Math.cos(a),e[3*l+1]=r*Math.sin(i)*Math.sin(a),e[3*l+2]=r*Math.cos(i),t[l]=1.1*Math.pow(Math.random(),2)+.4}let l=new d.LoY;l.setAttribute("position",new d.THS(e,3)),l.setAttribute("size",new d.THS(t,1)),g.push(l),v.add(new d.ONl(l,p))}v.rotation.x=.4,n.add(v);let y=performance.now(),N=()=>{i.current=requestAnimationFrame(N);let e=(performance.now()-y)/1e3;if(t)w.position.set(1.05,0,0);else{j.rotation.y=.22*e;let t=.5*e;w.position.set(1.05*Math.cos(t),.12*Math.sin(t),1.05*Math.sin(t)),w.rotation.y=.5*e}u.render(n,o)};N();let k=new ResizeObserver(()=>{a=e.clientWidth||1,s=e.clientHeight||1,o.aspect=a/s,o.updateProjectionMatrix(),u.setSize(a,s)});return k.observe(e),()=>{for(let e of(cancelAnimationFrame(i.current),k.disconnect(),g))e.dispose();p.dispose(),f.dispose(),u.dispose(),u.domElement.parentNode===e&&e.removeChild(u.domElement)}},[l]);return((0,o.useEffect)(()=>
237{if(n&&!s.current)return s.current=m()||null,()=>{var e;null==(e=s.current)||e.call(s),s.current=null}},[m,n]),n)?(0,a.jsx)("div",{ref:r,"aria-hidden":"true",className:(0,Q.cn)("h-full w-full",t)}):null}function af(e){let{data:t}=e;return(0,a.jsx)(r0,{data:t,Point:ah})}var ap=l(26858),ag=l(63679);function ab(e){let{relativePath:t,alt:l,fallback:r,brandName:i,className:s}=e,[n,d]=(0,o.useState)(null),c=(0,ag.YC)(t),u=c&&c!==n?c:void 0;return u?(0,a.jsx)("img",{src:u,alt:l,loading:"lazy",decoding:"async",onError:()=>d(u),className:(0,Q.cn)("logo"===r?"object-contain":"object-cover","w-full h-full",s)}):"logo"===r?(0,a.jsx)("div",{className:(0,Q.cn)("flex items-center justify-center w-full h-full bg-muted text-muted-foreground font-semibold text-2xl select-none",s),role:"img","aria-label":l,children:function(e){if(!e)return"?";let t=e.trim();return t?t.split(/\s+/).slice(0,2).map(e=>{var t;return(null==(t=e[0])?void 0:t.toUpperCase())??""}).join("")||t[0].toUpperCase():"?"}(i)}):(0,a.jsx)("div",{className:(0,Q.cn)("w-full h-full bg-gradient-to-br from-muted via-background to-muted",s),"aria-hidden":"true"})}function av(e){let{item:t}=e,l=t.industries.slice(0,2),r=!!t.coverImageUrl,[i,s]=(0,o.useState)(!1),[n,d]=(0,o.useState)({x:0,y:0}),c=(0,o.useRef)(null),u=()=>s(!0),m=()=>{s(!1),d({x:0,y:0})},x=r?{transform:i?`scale(1.1) translate(${n.x}px, ${n.y}px)`:"scale(1) translate(0px, 0px)"}:void 0;return(0,a.jsx)(e6(),{href:`/companies/${t.slug}`,"aria-label":t.brandName,className:"block h-full group",onMouseEnter:u,onMouseLeave:m,onFocus:u,onBlur:m,children:(0,a.jsxs)(tt.Zp,{className:"h-full w-full overflow-hidden rounded-3xl border border-transparent bg-white shadow-[0_4px_20px_rgba(0,0,0,0.035),0_0_0_0.5px_rgba(0,0,0,0.08)] transition-shadow group-hover:shadow-[0_10px_40px_rgba(0,0,0,0.08),0_0_0_0.5px_rgba(0,0,0,0.12)] flex flex-col",children:[(0,a.jsx)("div",{className:"p-2",children:(0,a.jsxs)("div",{ref:c,onMouseMove:e=>{if(!r||!c.current)return;let t=c.current.getBoundingClientRect();d({x:-(((e.clientX-t.left)/t.width-.5)*20),y:-(((e.clientY-t.top)/t.height-.5)*20)})},className:"relative overflow-hidden rounded-2xl ring-[0.5px] ring-black/[0.08]",style:{paddingTop:"56.25%"},children:[r?(0,a.jsx)("div",{className:"absolute inset-0 transition-all duration-500 ease-out will-change-transform",style:x,children:(0,a.jsx)(ab,{relativePath:t.coverImageUrl,alt:`${t.brandName} cover image`,fallback:"cover",className:"absolute inset-0"})}):t.logoImageUrl?(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-gradient-to-br from-muted via-background to-muted",children:(0,a.jsx)("div",{className:"w-[40%] h-[60%]",children:(0,a.jsx)(ab,{relativePath:t.logoImageUrl,alt:t.brandName,fallback:"logo",brandName:t.brandName})})}):(0,a.jsx)(ab,{relativePath:t.logoImageUrl,alt:t.brandName,fallback:"logo",brandName:t.brandName,className:"absolute inset-0 text-4xl"}),r&&(0,a.jsx)("div",{className:"absolute bottom-3 left-3 w-12 h-12 rounded-xl ring-1 ring-black/[0.08] bg-white overflow-hidden shadow-sm",children:(0,a.jsx)(ab,{relativePath:t.logoImageUrl,alt:t.brandName,fallback:"logo",brandName:t.brandName})})]})}),(0,a.jsxs)(tt.Wu,{className:"p-6 pt-4 flex flex-col gap-3 flex-1",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"font-semibold text-gray-900 text-lg leading-tight line-clamp-2 break-words",children:t.brandName}),t.headline&&(0,a.jsx)("p",{className:"text-sm text-muted-foreground mt-1 line-clamp-1",children:t.headline})]}),t.shortDescription&&(0,a.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-3 leading-relaxed",children:t.shortDescription}),(t.countryCode||l.length>0)&&(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mt-auto pt-1",children:[t.countryCode&&(0,a.jsx)(eV.E,{variant:"outline",className:"px-3 py-0.5 text-xs uppercase tracking-wide",children:t.countryCode}),l.map(e=>(0,a.jsx)(eV.E,{variant:"secondary",className:"px-3 py-0.5 text-xs",children:e},e))]})]})]})})}function aj(e){let{data:t}=e,{items:l,total:r}=(0,o.useContext)(ap.F),[i,s]=(0,o.useState)(l),[n,d]=(0,o.useState)(1),[c,u]=(0,o.useState)(!1),[m,x]=(0,o.useState)(!1),f=(0,o.useRef)(!1),p=(0,o.useRef)(null),g=i.length<r,b=t.loadingLabel??"Loading more companies",v=t.retryLabel??"Try again";(0,o.useEffect)(()=>{s(l),d(1),x(!1)},[l]);let j=(0,o.useCallback)(async()=>
237{if(f.current||!g)return;f.current=!0,u(!0),x(!1);let e=n+1;try{let t=await fetch(`/api/companies-listing?page=${e}&limit=24`,{headers:{Accept:"application/json"}});if(!t.ok)throw Error(`HTTP ${t.status}`);let l=await t.json();s(e=>{let t=new Set(e.map(e=>e.slug)),r=[...e];for(let e of l.items)t.has(e.slug)||r.push(e);return r}),d(e)}catch{x(!0)}finally{u(!1),f.current=!1}},[g,n]);if((0,o.useEffect)(()=>{let e=p.current;if(!e||!g||c||m)return;let t=new IntersectionObserver(e=>{let t=e[0];(null==t?void 0:t.isIntersecting)&&j()},{root:null,rootMargin:"200px 0px",threshold:.1});return t.observe(e),()=>t.disconnect()},[g,c,m,j]),0===r&&0===i.length){var w,y;return(0,a.jsx)(Y.o,{children:(0,a.jsxs)("div",{className:"text-center max-w-xl mx-auto py-16",children:[(0,a.jsx)("h2",{className:"text-2xl font-semibold text-gray-900 mb-3",children:(0,h.wR)(null==(w=t.emptyState)?void 0:w.title)}),(null==(y=t.emptyState)?void 0:y.description)&&(0,a.jsx)("p",{className:"text-muted-foreground",children:t.emptyState.description})]})})}return(0,a.jsxs)(Y.o,{children:[(0,a.jsx)("h2",{className:"sr-only",children:t.listHeading??"All verified companies"}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:i.map(e=>(0,a.jsx)(av,{item:e},e.slug))}),g&&!m&&(0,a.jsx)("div",{ref:p,className:"h-px w-full","aria-hidden":"true"}),c&&(0,a.jsxs)("div",{className:"flex justify-center py-8",role:"status","aria-live":"polite",children:[(0,a.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-muted-foreground/20 border-t-muted-foreground","aria-hidden":"true"}),(0,a.jsx)("span",{className:"sr-only",children:b})]}),m&&(0,a.jsx)("div",{className:"flex justify-center py-8",children:(0,a.jsx)("button",{type:"button",onClick:()=>void j(),className:"text-sm text-muted-foreground underline hover:text-foreground",children:v})})]})}var aw=l(503),ay=l(6800);function aN(e){let{label:t,date:l,className:r}=e,i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";if(!e)return null;let l=new Date(e);if(Number.isNaN(l.getTime()))return null;try{return l.toLocaleDateString(t,{year:"numeric",month:"short",day:"numeric"})}catch{return l.toISOString().slice(0,10)}}(l,(0,m.useRouter)().locale??"en");return(0,a.jsxs)("div",{className:(0,Q.cn)("inline-flex items-center gap-2 rounded-full border border-emerald-200 bg-emerald-50 px-3 py-1 text-xs font-medium text-emerald-700",r),children:[(0,a.jsx)(v.A,{className:"h-3.5 w-3.5","aria-hidden":"true"}),(0,a.jsxs)("span",{children:[t,i&&(0,a.jsx)("span",{className:"ml-1 font-normal text-emerald-700/80",children:i})]})]})}var ak=l(17285);function aM(e){let{data:t}=e,l=(0,o.useContext)(ak.I);if(!l)return null;let r=l.industries.slice(0,3),i=!!l.assets.coverImageUrl;return(0,a.jsxs)(Y.o,{padding:"lg",maxWidth:"4xl",children:[t.backLabel&&(0,a.jsxs)(e6(),{href:"/companies",className:"group mt-8 mb-8 inline-flex w-fit items-center gap-3 self-start rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:ring-offset-2","aria-label":t.backLabel,children:[(0,a.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded border border-gray-200 transition-colors group-hover:bg-gray-100",children:(0,a.jsx)(aw.A,{className:"h-3.5 w-3.5 text-gray-600 transition-colors group-hover:text-gray-700","aria-hidden":"true"})}),(0,a.jsx)("span",{className:"text-sm text-gray-500 transition-colors group-hover:text-gray-700",children:t.backLabel})]}),i&&(0,a.jsx)("div",{className:"relative w-full overflow-hidden rounded-3xl ring-[0.5px] ring-black/[0.08] aspect-[16/5] mb-8",children:(0,a.jsx)(ab,{relativePath:l.assets.coverImageUrl,alt:`${l.brandName} cover image`,fallback:"cover",brandName:l.brandName})}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-6 sm:items-start",children:[(0,a.jsx)("div",{className:"relative shrink-0 w-24 h-24 sm:w-28 sm:h-28 overflow-hidden rounded-3xl ring-[0.5px] ring-black/[0.08] bg-white",children:(0,a.jsx)(ab,{relativePath:l.assets.logoImageUrl,alt:l.brandName,fallback:"logo",brandName:l.brandName})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0 space-y-4",children:[t.verifiedLabel&&(0,a.jsx)(aN,{label:t.verifiedLabel,date:l.verification.verifiedAt}),(0,a.jsxs)("div",{className:"space-y-3",children:[l.brandName&&(0,a.jsx)("h1",{className:"break-words text-4xl md:text-5xl font-bold leading-tight text-foreground",children:l.brandName}),l.headline&&(0,a.jsx)("p",{className:"lede max-w-2xl break-words",children:l.headline})]}),(l.countryCode||r.length>0)&&(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[l.countryCode&&(0,a.jsx)(eV.E,{variant:"outline",className:"px-3 py-0.5 text-xs uppercase tracking-wide",children:l.countryCode}),r.map(e=>(0,a.jsx)(eV.E,{variant:"secondary",className:"px-3 py-0.5 text-xs",children:e},e))]}),l.website&&t.visitWebsiteLabel&&(0,a.jsx)("div",{children:(0,a.jsx)(n.$,{asChild:!0,size:"lg",className:"rounded-xl",children:(0,a.jsxs)("a",{href:l.website,target:"_blank",rel:"noopener noreferrer ugc",className:"inline-flex items-center gap-2",children:[t.visitWebsiteLabel,(0,a.jsx)(ay.A,{className:"h-4 w-4","aria-hidden":"true"})]})})})]})]})]})}function aC(e){var t;let{data:l}=e,r=(0,o.useContext)(ak.I);if(!r)return null;let i=!!(null==(t=r.fullDescription)?void 0:t.trim()),s=r.highlights??[],n=s.length>0;return i||n?(0,a.jsxs)(Y.o,{padding:"md",maxWidth:"4xl",children:[i&&(0,a.jsxs)("div",{children:[l.aboutHeading&&(0,a.jsx)("h2",{className:"text-2xl md:text-3xl font-bold mb-6 text-foreground",children:(0,h.wR)(l.aboutHeading)}),(0,a.jsx)("p",{className:"lede max-w-2xl whitespace-pre-line",children:r.fullDescription})]}),n&&(0,a.jsxs)("div",{className:i?"mt-12":void 0,children:[l.highlightsHeading&&(0,a.jsx)("h3",{className:"text-xl font-semibold mb-6 text-foreground",children:(0,h.wR)(l.highlightsHeading)}),(0,a.jsx)("ul",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:s.map((e,t)=>(0,a.jsxs)("li",{className:"rounded-2xl border border-black/[0.08] bg-white p-5",children:[(0,a.jsx)("p",{className:"font-semibold text-gray-900",children:e.title}),e.description&&(0,a.jsx)("p",{className:"text-sm text-muted-foreground mt-1 leading-relaxed",children:e.description})]},`${e.title}-${t}`))})]})]}):null}var aS=l(59577),aA=l(59158),aL=l(9370);function aR(e){let{data:t}=e,l=(0,o.useContext)(ak.I);if(!l)return null;let r=[];return(l.website&&t.websiteLabel&&r.push({icon:(0,a.jsx)(H.A,{className:"h-4 w-4","aria-hidden":"true"}),label:t.websiteLabel,value:(0,a.jsx)("a",{href:l.website,target:"_blank",rel:"noopener noreferrer ugc",className:"underline underline-offset-4 transition-colors hover:text-primary break-all",children:l.website})}),l.publicEmail&&t.emailLabel&&r.push({icon:(0,a.jsx)(aS.A,{className:"h-4 w-4","aria-hidden":"true"}),label:t.emailLabel,value:(0,a.jsx)("a",{href:`mailto:${l.publicEmail}`,className:"underline underline-offset-4 transition-colors hover:text-primary break-all",children:l.publicEmail})}),l.publicPhone&&t.phoneLabel&&r.push({icon:(0,a.jsx)(aA.A,{className:"h-4 w-4","aria-hidden":"true"}),label:t.phoneLabel,value:(0,a.jsx)("a",{href:`tel:${l.publicPhone}`,className:"underline underline-offset-4 transition-colors hover:text-primary",children:l.publicPhone})}),l.countryCode&&t.countryLabel&&r.push({icon:(0,a.jsx)(aL.A,{className:"h-4 w-4","aria-hidden":"true"}),label:t.countryLabel,value:l.countryCode}),l.serviceRegions.length>0&&t.serviceRegionsLabel&&r.push({label:t.serviceRegionsLabel,value:l.serviceRegions.join(", ")}),l.industries.length>0&&t.industriesLabel&&r.push({label:t.industriesLabel,value:l.industries.join(", ")}),0===r.length)?null:(0,a.jsxs)(Y.o,{padding:"md",maxWidth:"4xl",children:[t.heading&&(0,a.jsx)("h2",{className:"text-2xl md:text-3xl font-bold mb-6 text-foreground",children:(0,h.wR)(t.heading)}),(0,a.jsx)("dl",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6",children:r.map((e,t)=>(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsxs)("dt",{className:"flex items-center gap-2 text-xs uppercase tracking-wide text-muted-foreground",children:[e.icon,(0,a.jsx)("span",{children:e.label})]}),(0,a.jsx)("dd",{className:"text-base text-gray-900",children:e.value})]},`${e.label}-${t}`))})]})}var aE=l(59899);function aP(e){let{data:t}=e,l=(0,o.useContext)(ak.I);return l&&0!==l.certifications.length?(0,a.jsxs)(Y.o,{padding:"md",maxWidth:"4xl",children:[t.heading&&(0,a.jsx)("h2",{className:"text-2xl md:text-3xl font-bold mb-6 text-foreground",children:(0,h.wR)(t.heading)}),(0,a.jsx)("ul",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:l.certifications.map((e,l)=>(0,a.jsxs)("li",{className:"rounded-2xl border border-black/[0.08] bg-white p-5 flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("span",{className:"shrink-0 inline-flex items-center justify-center w-9 h-9 rounded-xl bg-emerald-50 text-emerald-700",children:(0,a.jsx)(aE.A,{className:"h-4 w-4","aria-hidden":"true"})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("p",{className:"font-semibold text-gray-900 break-words",children:e.name}),e.issuer&&t.issuerLabel&&(0,a.jsxs)("p",{className:"text-sm text-muted-foreground mt-0.5",children:[t.issuerLabel,": ",e.issuer]})]})]}),(0,a.jsxs)("dl",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2 text-sm",children:[e.credentialId&&t.credentialIdLabel&&(0,a.jsxs)("div",{children:[(0,a.jsx)("dt",{className:"text-xs uppercase tracking-wide text-muted-foreground",children:t.credentialIdLabel}),(0,a.jsx)("dd",{className:"text-gray-900 break-all",children:e.credentialId})]}),e.issuedOn&&t.issuedOnLabel&&(0,a.jsxs)("div",{children:[(0,a.jsx)("dt",{className:"text-xs uppercase tracking-wide text-muted-foreground",children:t.issuedOnLabel}),(0,a.jsx)("dd",{className:"text-gray-900",children:e.issuedOn})]}),e.expiresOn&&t.expiresOnLabel&&(0,a.jsxs)("div",{children:[(0,a.jsx)("dt",{className:"text-xs uppercase tracking-wide text-muted-foreground",children:t.expiresOnLabel}),(0,a.jsx)("dd",{className:"text-gray-900",children:e.expiresOn})]})]}),e.verificationUrl&&t.verifyLabel&&(0,a.jsxs)("a",{href:e.verificationUrl,target:"_blank",rel:"noopener noreferrer ugc",className:"inline-flex items-center gap-1.5 text-sm underline underline-offset-4 transition-colors hover:text-primary self-start",children:[t.verifyLabel,(0,a.jsx)(ay.A,{className:"h-3.5 w-3.5","aria-hidden":"true"})]})]},`${e.name}-${l}`))})]}):null}function a_(e){return(0,ag.YC)(e.url)??e.url}function aF(e){let{attachment:t,downloadLabel:l}=e,r=a_(t);return(0,a.jsxs)("a",{href:r,target:"_blank",rel:"noopener noreferrer ugc",className:"flex items-start gap-3 rounded-2xl border border-black/[0.08] bg-white p-4 transition-shadow hover:shadow-[0_4px_20px_rgba(0,0,0,0.05)]",children:[(0,a.jsx)("span",{className:"shrink-0 inline-flex items-center justify-center w-10 h-10 rounded-xl bg-emerald-50 text-emerald-700",children:(0,a.jsx)(g.A,{className:"h-4 w-4","aria-hidden":"true"})}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("p",{className:"font-medium text-gray-900 truncate",children:t.title??t.uuid}),t.description&&(0,a.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-2 mt-0.5",children:t.description}),l&&(0,a.jsxs)("span",{className:"inline-flex items-center gap-1 text-xs text-emerald-700 mt-1.5",children:[(0,a.jsx)(eM.A,{className:"h-3 w-3","aria-hidden":"true"}),l]})]})]})}function az(e){let{data:t}=e,l=(0,o.useContext)(ak.I);if(!l||0===l.attachments.length)return null;let r=function(e){let t={gallery_image:[],report:[],supporting_document:[]};for(let l of e)t[l.kind]&&t[l.kind].push(l);return t}
237(l.attachments),i=r.gallery_image,s=r.report,n=r.supporting_document;return 0===i.length&&0===s.length&&0===n.length?null:(0,a.jsx)(Y.o,{padding:"md",maxWidth:"4xl",children:(0,a.jsxs)("div",{className:"space-y-10",children:[i.length>0&&(0,a.jsxs)("div",{children:[t.galleryHeading&&(0,a.jsx)("h2",{className:"text-2xl md:text-3xl font-bold mb-6 text-foreground",children:(0,h.wR)(t.galleryHeading)}),(0,a.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3",children:i.map(e=>(0,a.jsx)("a",{href:a_(e),target:"_blank",rel:"noopener noreferrer ugc",className:"relative block aspect-square overflow-hidden rounded-2xl ring-[0.5px] ring-black/[0.08] bg-muted",children:(0,a.jsx)(ab,{relativePath:e.url,alt:e.title||`${l.brandName} gallery image`,fallback:"cover",brandName:l.brandName})},e.uuid))})]}),s.length>0&&(0,a.jsxs)("div",{children:[t.reportsHeading&&(0,a.jsx)("h2",{className:"text-2xl md:text-3xl font-bold mb-6 text-foreground",children:(0,h.wR)(t.reportsHeading)}),(0,a.jsx)("ul",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:s.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(aF,{attachment:e,downloadLabel:t.downloadLabel})},e.uuid))})]}),n.length>0&&(0,a.jsxs)("div",{children:[t.documentsHeading&&(0,a.jsx)("h2",{className:"text-2xl md:text-3xl font-bold mb-6 text-foreground",children:(0,h.wR)(t.documentsHeading)}),(0,a.jsx)("ul",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:n.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(aF,{attachment:e,downloadLabel:t.downloadLabel})},e.uuid))})]})]})})}var aT=l(37116),a$=l(5129),aI=l(44521),aq=l(80318),aO=l(35974),aD=l(28483);let aH="h-4 w-4";function aV(e){let{data:t}=e,l=(0,o.useContext)(ak.I);if(!l)return null;let r=l.socialLinks;if(!r)return null;let i=[];r.linkedin&&i.push({href:r.linkedin,label:"LinkedIn",icon:(0,a.jsx)(aT.A,{className:aH,"aria-hidden":"true"})}),r.x&&i.push({href:r.x,label:"X",icon:(0,a.jsx)(a$.A,{className:aH,"aria-hidden":"true"})}),r.github&&i.push({href:r.github,label:"GitHub",icon:(0,a.jsx)(aI.A,{className:aH,"aria-hidden":"true"})}),r.facebook&&i.push({href:r.facebook,label:"Facebook",icon:(0,a.jsx)(aq.A,{className:aH,"aria-hidden":"true"})}),r.instagram&&i.push({href:r.instagram,label:"Instagram",icon:(0,a.jsx)(aO.A,{className:aH,"aria-hidden":"true"})}),r.youtube&&i.push({href:r.youtube,label:"YouTube",icon:(0,a.jsx)(aD.A,{className:aH,"aria-hidden":"true"})});let s=r.custom??[];return 0===i.length&&0===s.length?null:(0,a.jsxs)(Y.o,{padding:"md",maxWidth:"4xl",children:[t.heading&&(0,a.jsx)("h2",{className:"text-2xl md:text-3xl font-bold mb-6 text-foreground",children:(0,h.wR)(t.heading)}),i.length>0&&(0,a.jsx)("ul",{className:"flex flex-wrap gap-3",children:i.map(e=>(0,a.jsx)("li",{children:(0,a.jsxs)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer ugc",className:"inline-flex items-center gap-2 rounded-full border border-black/[0.08] bg-white px-4 py-2 text-sm font-medium text-gray-700 hover:text-gray-900 transition-colors",children:[e.icon,e.label]})},e.label))}),s.length>0&&(0,a.jsxs)("div",{className:i.length>0?"mt-6":void 0,children:[t.customLinksHeading&&(0,a.jsx)("h3",{className:"text-xl font-semibold mb-6 text-foreground",children:(0,h.wR)(t.customLinksHeading)}),(0,a.jsx)("ul",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:s.map((e,t)=>(0,a.jsx)("li",{children:(0,a.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer ugc",className:"inline-flex items-center gap-2 text-sm underline underline-offset-4 transition-colors hover:text-primary break-all",children:[(0,a.jsx)(ay.A,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":"true"}),(0,a.jsx)("span",{children:e.label})]})},`${e.label}-${t}`))})]})]})}var aW=l(98665),aB=l(30162),aK=l(52190),aU=l(15664);let aJ="grid grid-cols-[1fr_auto_auto]",aX="flex items-center border-b border-[rgba(59,47,35,0.08)] pb-2 text-[10px] uppercase tracking-wide text-muted-foreground",aG="flex items-center py-2.5",aY="pr-4",aZ=e=>e>0?"border-t border-[rgba(59,47,35,0.06)]":void 0;function aQ(e){let{url:t,status:l,children:r}=e;return(0,a.jsxs)("div",{className:"w-full overflow-hidden rounded-2xl border border-[rgba(59,47,35,0.10)] bg-[#FCF8EF]",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3 border-b border-[rgba(59,47,35,0.08)] px-4 py-2.5",children:[(0,a.jsx)("span",{className:"font-mono text-[11px] text-muted-foreground",children:t}),(0,a.jsx)("span",{className:"rounded-full bg-[#EEF1E6] px-2 py-0.5 text-[10px] font-medium text-[#5c6b3f]",children:l})]}),(0,a.jsx)("div",{className:"p-4 sm:p-5",children:r})]})}function a0(e){let{label:t,tone:l="olive"}=e;return(0,a.jsx)("span",{className:(0,Q.cn)("inline-flex h-6 w-6 items-center justify-center rounded-full text-[9px] font-semibold ring-2 ring-[#FCF8EF]","olive"===l?"bg-[#5c6b3f] text-white":"bg-[#E7DFCC] text-[#6b5d45]"),children:t})}function a1(){return(0,a.jsxs)(aQ,{url:"app.chaindoc.io/signing",status:"Total 87",children:[(0,a.jsxs)("div",{className:"mb-3",children:[(0,a.jsx)("div",{className:"text-sm font-semibold text-foreground",children:"All Signing Requests"}),(0,a.jsx)("div",{className:"text-[11px] text-muted-foreground",children:"Overview of every request and its status"})]}),(0,a.jsxs)("div",{className:aJ,children:[(0,a.jsx)("span",{className:(0,Q.cn)(aX,aY),children:"Document"}),(0,a.jsx)("span",{className:(0,Q.cn)(aX,aY),children:"Recipients"}),(0,a.jsx)("span",{className:(0,Q.cn)(aX,"justify-end"),children:"Progress"}),[{doc:"Mutual NDA",due:"Due May 31, 2026",avatars:["A","K"]},{doc:"MSA â Hartwell & Co",due:"Due Jun 16, 2026",avatars:["H"]},{doc:"Vendor agreement",due:"Due Mar 12, 2026",avatars:["G","S"]}].map((e,t)=>(0,a.jsxs)(o.Fragment,{children:[(0,a.jsxs)("div",{className:(0,Q.cn)(aG,aY,"block",aZ(t)),children:[(0,a.jsx)("div",{className:"text-[12px] font-medium text-foreground",children:e.doc}),(0,a.jsx)("div",{className:"text-[10px] text-muted-foreground",children:e.due})]}),(0,a.jsx)("div",{className:(0,Q.cn)(aG,aY,"-space-x-1.5",aZ(t)),children:e.avatars.map((e,t)=>(0,a.jsx)(a0,{label:e,tone:t%2?"sand":"olive"},t))}),(0,a.jsx)("div",{className:(0,Q.cn)(aG,"justify-end",aZ(t)),children:(0,a.jsx)("span",{className:"rounded-full bg-[#EEF1E6] px-2 py-0.5 text-[10px] font-medium text-[#5c6b3f]",children:"Published"})})]},e.doc))]})]})}function a2(){return(0,a.jsxs)(aQ,{url:"app.chaindoc.io/verifications",status:"Live \xb7 0.4s",children:[(0,a.jsxs)("div",{className:"mb-3 flex items-center justify-between gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-sm font-semibold text-foreground",children:"KYC Verification"}),(0,a.jsx)("div",{className:"text-[11px] text-muted-foreground",children:"Identity confirmed to unlock signing"})]}),(0,a.jsx)("span",{className:"shrink-0 rounded-full bg-[#E7F0E4] px-2.5 py-1 text-[11px] font-semibold text-[#3f6b3f]",children:"Approved"})]}),(0,a.jsx)("div",{className:"space-y-2",children:[{t:"Document authentic",d:"OCR \xb7 MRZ \xb7 hologram"},{t:"Face matched \xb7 99.4%",d:"liveness passed"},{t:"Not on sanctions list",d:"EU \xb7 OFAC \xb7 UN"}].map(e=>(0,a.jsxs)("div",{className:"flex items-center gap-3 rounded-xl border border-[rgba(59,47,35,0.08)] bg-[#FBF6EA] px-3 py-2.5",children:[(0,a.jsx)("span",{className:"inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-[#5c6b3f] text-[11px] text-white",children:"â"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("div",{className:"text-[12px] font-medium text-foreground",children:e.t}),(0,a.jsx)("div",{className:"text-[10px] text-muted-foreground",children:e.d})]})]},e.t))})]})}function a5(){return(0,a.jsxs)(aQ,{url:"app.chaindoc.io/invoices",status:"Paid 65%",children:[(0,a.jsx)("div",{className:"mb-3 text-sm font-semibold text-foreground",children:"Invoices"}),(0,a.jsxs)("div",{className:aJ,children:[(0,a.jsx)("span",{className:(0,Q.cn)(aX,aY),children:"Invoice"}),(0,a.jsx)("span",{className:(0,Q.cn)(aX,aY,"justify-end"),children:"Amount"}),(0,a.jsx)("span",{className:(0,Q.cn)(aX,"justify-end"),children:"Status"}),[{inv:"INV-2026-000004",label:"Milestone \xb7 Launch",status:"Paid",amount:"â¬14,000",due:"Jul 31"},{inv:"INV-2026-000003",label:"Milestone \xb7 Phase one",status:"Paid",amount:"â¬18,000",due:"Jun 30"},{inv:"INV-2026-000002",label:"Kickoff",status:"Cancelled",amount:"â¬8,000",due:"May 18"}].map((e,t)=>(0,a.jsxs)(o.Fragment,{children:[(0,a.jsxs)("div",{className:(0,Q.cn)(aG,aY,"block",aZ(t)),children:[(0,a.jsx)("div",{className:"text-[12px] font-medium text-foreground",children:e.inv}),(0,a.jsxs)("div",{className:"text-[10px] text-muted-foreground",children:[e.label," \xb7 ",e.due]})]}),(0,a.jsx)("div",{className:(0,Q.cn)(aG,aY,"justify-end",aZ(t)),children:(0,a.jsx)("span",{className:"text-[12px] font-semibold text-foreground",children:e.amount})}),(0,a.jsx)("div",{className:(0,Q.cn)(aG,"justify-end",aZ(t)),children:(0,a.jsx)("span",{className:(0,Q.cn)("rounded-full px-2 py-0.5 text-[10px] font-medium","Paid"===e.status?"bg-[#E7F0E4] text-[#3f6b3f]":"bg-[#EFE7E2] text-[#8a6b5d]"),children:e.status})})]},e.inv))]})]})}function a3(e){let{kind:t}=e;return"signing-requests"===t?(0,a.jsx)(a1,{}):"kyc-approved"===t?(0,a.jsx)(a2,{}):"invoices"===t?(0,a.jsx)(a5,{}):null}let a4={"pen-line":_.A,users:b.A,"layout-template":aW.A,"scan-face":ef.A,"shield-check":v.A,"file-check":aB.A,receipt:aK.A,milestones:aU.A,"badge-check":N.A};function a6(e){let{data:t}=e,l=Array.isArray(t.steps)?t.steps:[],r=l.length,i=t.autoRotateMs??5e3,[s,n]=(0,o.useState)(0),[d,c]=(0,o.useState)(0),[u,m]=(0,o.useState)(!1),[x,f]=(0,o.useState)(!1),[p,g]=(0,o.useState)(!0),[b,v]=(0,o.useState)(!1),j=(0,o.useRef)(null),w=(0,o.useRef)([]);if((0,o.useEffect)(()=>{let e=window.matchMedia("(min-width: 768px)"),t=window.matchMedia("(min-width: 640px)"),l=window.matchMedia("(prefers-reduced-motion: reduce)"),r=()=>{f(e.matches&&!l.matches),g(t.matches),t.matches&&n(e=>null===e?0:e)};return r(),e.addEventListener("change",r),t.addEventListener("change",r),l.addEventListener("change",r),()=>{e.removeEventListener("change",r),t.removeEventListener("change",r),l.removeEventListener("change",r)}},[]),(0,o.useEffect)(()=>{let e=j.current;if(!e)return;let t=new IntersectionObserver(e=>{let[t]=e;return v(t.isIntersecting)},{threshold:0});return t.observe(e),()=>t.disconnect()},[]),(0,o.useEffect)(()=>
237{if(!x||u||!b||r<2)return;let e=window.setTimeout(()=>{n(e=>((e??0)+1)%r),c(e=>e+1)},i);return()=>window.clearTimeout(e)},[x,u,b,s,d,r,i]),0===r)return null;let y=e=>{var t;n(e),c(e=>e+1),null==(t=w.current[e])||t.focus()};return(0,a.jsx)(Y.o,{headerSpacing:"none",children:(0,a.jsxs)("section",{ref:j,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),onFocusCapture:()=>m(!0),onBlurCapture:e=>{e.currentTarget.contains(e.relatedTarget)||m(!1)},children:[(0,a.jsx)(Z.X3,{badge:t.badge,title:t.title,description:t.subtitle}),(0,a.jsx)("div",{role:p?"tablist":void 0,"aria-label":p?(0,h.TA)(t.title??"Product flow"):void 0,onKeyDown:e=>{if(!p)return;let t=s??0;"ArrowRight"===e.key?(e.preventDefault(),y((t+1)%r)):"ArrowLeft"===e.key?(e.preventDefault(),y((t-1+r)%r)):"Home"===e.key?(e.preventDefault(),y(0)):"End"===e.key&&(e.preventDefault(),y(r-1))},className:"mt-10 grid overflow-hidden rounded-3xl border border-input bg-[#F1E9D4] sm:grid-cols-3",children:l.map((e,t)=>{let l=t===s,c=t===r-1;return(0,a.jsxs)(o.Fragment,{children:[(0,a.jsxs)("button",{type:"button",role:p?"tab":void 0,id:`oneflow-tab-${t}`,"aria-selected":p?l:void 0,"aria-expanded":p?void 0:l,"aria-controls":`oneflow-panel-${t}`,tabIndex:p?l?0:-1:void 0,ref:e=>{w.current[t]=e},onClick:()=>p?y(t):n(e=>e===t?null:t),className:(0,Q.cn)("group relative flex items-center gap-3 overflow-hidden p-5 text-left transition-colors focus-visible:z-10 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-[#5c6b3f]","border-t border-input first:border-t-0","sm:row-start-1 sm:border-t-0 sm:border-b",!c&&"sm:border-r",l?"bg-card":"hover:bg-[#ECE3CC]"),children:[(0,a.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,a.jsxs)("span",{className:"block text-[11px] font-medium tracking-[0.12em] text-[#5c6b3f]",children:["STEP ",String(t+1).padStart(2,"0")]}),(0,a.jsx)("span",{className:(0,Q.cn)("mt-1 block font-serif text-lg leading-snug",l?"text-foreground":"text-muted-foreground group-hover:text-foreground"),children:e.tab})]}),(0,a.jsx)(rS.A,{"aria-hidden":!0,className:(0,Q.cn)("h-4 w-4 shrink-0 text-[#5c6b3f] transition-transform duration-200 motion-reduce:transition-none sm:hidden",l&&"rotate-180")}),l&&x&&!u&&b&&(0,a.jsx)("span",{"aria-hidden":!0,className:"oneflow-bar absolute inset-x-0 bottom-0 h-0.5 bg-[#5c6b3f]",style:{"--dur":`${i}ms`}},d)]}),(0,a.jsxs)("div",{role:p?"tabpanel":"region",id:`oneflow-panel-${t}`,"aria-labelledby":`oneflow-tab-${t}`,hidden:!l,className:(0,Q.cn)(l&&"oneflow-panel grid bg-card lg:grid-cols-2","sm:col-span-3 sm:col-start-1 sm:row-start-2"),children:[(0,a.jsxs)("div",{className:"flex flex-col p-8 lg:border-r lg:border-input lg:p-10",children:[(0,a.jsx)("h3",{className:"text-foreground",children:(0,h.JD)(e.title)}),(0,a.jsx)("p",{className:"mt-3 font-light leading-relaxed text-muted-foreground",children:e.text}),(0,a.jsx)("ul",{className:"mt-6 space-y-5",children:e.features.map((e,t)=>{let l=e.icon?a4[e.icon]:void 0;return(0,a.jsxs)("li",{className:"flex items-start gap-3.5",children:[l&&(0,a.jsx)("span",{"aria-hidden":!0,className:"flex h-[1.375em] shrink-0 items-center text-lg leading-snug text-[#1c1610]",children:(0,a.jsx)(l,{className:"h-4 w-4",strokeWidth:1.8})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("div",{className:"font-serif text-lg leading-snug text-foreground",children:e.title}),(0,a.jsx)("div",{className:"mt-0.5 text-sm leading-snug text-muted-foreground",children:e.text})]})]},t)})}),(0,a.jsxs)(Z.W_,{href:e.link.href,className:"mt-8 inline-flex items-center gap-1.5 text-sm font-medium text-[#5c6b3f] transition-colors hover:text-[#4a5632] focus-visible:outline-none focus-visible:underline focus-visible:underline-offset-4",children:[(0,a.jsx)("span",{children:e.link.label}),(0,a.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 11 11","aria-hidden":!0,fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:"M2 9L9 2M9 2H3.5M9 2V7.5"})})]})]}),(0,a.jsx)("div",{className:"flex items-center justify-center p-6 lg:p-8",style:{background:"radial-gradient(460px 320px at 82% 0%, rgba(92,107,63,0.07), transparent 70%)"},children:(0,a.jsx)(a3,{kind:e.mockup})})]})]},t)})}),(0,a.jsx)("style",{dangerouslySetInnerHTML:{__html:"@keyframes oneflow-progress{from{transform:scale
237X(0)}to{transform:scaleX(1)}}.oneflow-bar{transform-origin:left;animation:oneflow-progress var(--dur,5000ms) linear forwards}@keyframes oneflow-open{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}@media (max-width:639px){.oneflow-panel{animation:oneflow-open 220ms cubic-bezier(0.22,1,0.36,1) both}}@media (prefers-reduced-motion:reduce){.oneflow-panel{animation:none}}"}})]})})}let a8="hsl(var(--input))";function a9(e){let{items:t}=e;return(0,a.jsxs)("ol",{className:"relative grid grid-cols-1 gap-x-7 gap-y-10 sm:grid-cols-2 lg:grid-cols-4 lg:gap-x-9",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-x-0 hidden h-px lg:block",style:{top:19,backgroundColor:a8}}),t.map((e,l)=>(0,a.jsxs)("li",{className:"group relative flex gap-4 sm:block",children:[l<t.length-1&&(0,a.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute top-[38px] -bottom-10 w-px sm:hidden",style:{left:18.5,backgroundColor:a8}}),(0,a.jsx)("span",{"aria-hidden":"true",className:"relative z-[1] flex h-[38px] w-[38px] shrink-0 items-center justify-center rounded-full bg-background text-[11px] font-medium tracking-[0.14em] text-[#241b12] transition-colors duration-200 group-hover:border-[#5c6b3f] group-hover:bg-[#5c6b3f] group-hover:text-white sm:mb-[22px]",style:{border:"1px solid hsl(var(--input))"},children:String(l+1).padStart(2,"0")}),(0,a.jsxs)("div",{className:"min-w-0 pt-1 sm:pt-0",children:[(0,a.jsx)("h3",{className:"font-serif text-2xl font-normal leading-tight tracking-tight text-[#241b12] hyphens-auto",children:(0,h.wR)(e.title)}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-[1.55] text-muted-foreground hyphens-auto",children:e.text})]})]},l))]})}function a7(e){var t,l,r;let{data:i}=e,{id:s,badge:n,title:o,subtitle:d,items:c,signature:u,banner:x}=i,h=(0,m.useRouter)().locale??"en",f=Array.isArray(c)?c:[];if(0===f.length)return null;let p=(null==x||null==(t=x.ctaButton)?void 0:t.link)?(0,Q.KJ)(h,x.ctaButton.link):void 0,g=(null==u||null==(l=u.demoLink)?void 0:l.href)?(0,Q.KJ)(h,u.demoLink.href):void 0,b=!!u,v=!!x,j=b||v;return(0,a.jsxs)(Y.o,{id:s,headerSpacing:"none",children:[(0,a.jsx)(Z.X3,{badge:n,title:o,description:d}),(0,a.jsx)("div",{className:"mt-14",children:(0,a.jsx)(a9,{items:f})}),j?(0,a.jsx)("div",{className:"card-lift mt-16 overflow-hidden rounded-3xl bg-card",children:(0,a.jsxs)("div",{className:(0,Q.cn)("grid",b&&v&&"lg:grid-cols-2"),children:[b?(0,a.jsx)(e1,{variant:"bare",demoHref:g,labels:{title:null==u?void 0:u.title,idleHint:null==u?void 0:u.idleHint,drawingHint:null==u?void 0:u.drawingHint,hashCaption:null==u?void 0:u.hashCaption,footnote:null==u?void 0:u.footnote,demoLabel:null==u||null==(r=u.demoLink)?void 0:r.text},className:(0,Q.cn)(v&&"border-b border-input lg:border-b-0 lg:border-r")}):null,v&&x?(0,a.jsx)(tb.F,{banner:x,ctaHref:p}):null]})}):null]})}let ie="hsl(var(--input))",it={1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4"};function il(e){var t;let{data:l}=e,{id:r,badge:i,title:s,subtitle:n,items:o,banner:d,layout:c,ctaButton:u}=l,x=(0,m.useRouter)().locale??"en",f=Array.isArray(o)?o:[];if(0===f.length)return null;let p=(null==d||null==(t=d.ctaButton)?void 0:t.link)?(0,Q.KJ)(x,d.ctaButton.link):void 0,g=(null==u?void 0:u.link)?(0,Q.KJ)(x,u.link):void 0;return"split"===c?(0,a.jsx)(Y.o,{id:r,headerSpacing:"none",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 items-start gap-x-[88px] gap-y-12 lg:grid-cols-[minmax(0,5fr)_minmax(0,6fr)]",children:[(0,a.jsxs)("div",{className:"lg:sticky lg:top-24 lg:self-start",children:[(0,a.jsx)(Z.X3,{badge:i,title:s,description:n}),g?(0,a.jsx)("div",{className:"mt-8",children:(0,a.jsxs)("a",{href:g,className:"group inline-flex items-center gap-2 rounded-xl border border-transparent bg-[#5c6b3f] px-6 py-3 text-sm font-medium text-white transition-colors hover:bg-[#4e5a34] focus-visible:border-[#1b1918] focus-visible:outline-none",...(0,Q.OK)(g),children:[null==u?void 0:u.text,(0,a.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14","aria-hidden":"true",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"transition-transform duration-200 group-hover:translate-x-0.5",children:(0,a.jsx)("path",{d:"M2 7h10M8 3l4 4-4 4"})})]})}):null]}),(0,a.jsx)("ol",{className:"pt-2",children:f.map((e,t)=>(0,a.jsxs)("li",{className:"vstep relative grid grid-cols-[38px_minmax(0,1fr)] gap-x-4 pb-[38px] last:pb-0 sm:gap-x-[26px] sm:pb-[46p
237x]",children:[t<f.length-1&&(0,a.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute bottom-0 top-[38px] w-px",style:{left:18.5,backgroundColor:ie}}),(0,a.jsx)("span",{"aria-hidden":"true",className:"vstep-dot border border-input relative z-[1] flex h-[38px] w-[38px] items-center justify-center rounded-full bg-background text-[11px] font-medium tracking-[0.14em] text-[#241b12]",children:(0,a.jsx)("span",{className:"-mr-[0.14em]",children:e.mark??String(t+1).padStart(2,"0")})}),(0,a.jsxs)("div",{className:"min-w-0 pt-1",style:{hyphenateLimitChars:"10 4 4"},children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-x-5 gap-y-1.5",children:[(0,a.jsx)("h3",{className:"font-serif font-normal text-[#241b12] hyphens-auto",children:(0,h.wR)(e.title)}),e.estimatedTime?(0,a.jsxs)("span",{className:"shrink-0 whitespace-nowrap text-[11px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"mr-[9px] inline-block h-1.5 w-1.5 rounded-full bg-[#5c6b3f] align-[1px]"}),e.estimatedTime]}):null]}),(0,a.jsx)("p",{className:"mt-2.5 max-w-[54ch] text-[15px] leading-[1.6] text-muted-foreground hyphens-auto",children:e.text})]})]},t))})]})}):(0,a.jsxs)(Y.o,{id:r,headerSpacing:"none",children:[(0,a.jsx)(Z.X3,{badge:i,title:s,description:n}),(0,a.jsxs)("ol",{className:(0,Q.cn)("relative mt-14 grid grid-cols-1 gap-x-7 gap-y-10 sm:grid-cols-2 lg:gap-x-9",it[f.length]??"lg:grid-cols-3"),children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-x-0 hidden h-px lg:block",style:{to
237p:19,backgroundColor:ie}}),f.map((e,t)=>(0,a.jsxs)("li",{className:"group relative flex gap-4 sm:block",children:[t<f.length-1&&(0,a.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute top-[38px] -bottom-10 w-px sm:hidden",style:{left:18.5,backgroundColor:ie}}),(0,a.jsx)("span",{"aria-hidden":"true",className:"relative z-[1] flex h-[38px] w-[38px] shrink-0 items-center justify-center rounded-full bg-background text-[11px] font-medium tracking-[0.14em] text-[#241b12] transition-colors duration-200 group-hover:border-[#5c6b3f] group-hover:bg-[#5c6b3f] group-hover:text-white sm:mb-[22px]",style:{border:"1px solid hsl(var(--input))"},children:(0,a.jsx)("span",{className:"-mr-[0.14em]",children:e.mark??String(t+1).padStart(2,"0")})}),(0,a.jsxs)("div",{className:"min-w-0 pt-1 sm:pt-0",style:{hyphenateLimitChars:"10 4 4"},children:[(0,a.jsx)("h3",{className:"font-serif text-2xl font-normal leading-tight tracking-tight text-[#241b12] hyphens-auto",children:(0,h.wR)(e.title)}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-[1.55] text-muted-foreground hyphens-auto",children:e.text})]})]},t))]}),d?(0,a.jsx)(tb.F,{layout:"wide",photoPosition:"panel",className:"mt-12 rounded-3xl",banner:d,ctaHref:p}):null]})}function ir(e){let{data:t}=e,{id:l,badge:r,title:i,subtitle:s,items:n}=t,d=(0,m.useRouter)().locale??"en",c=(0,o.useId)(),[u,f]=(0,o.useState)(0),p=null==n?void 0:n.values,g=(0,o.useMemo)(()=>(p??[]).map(e=>e.text?(0,x.$)(e.text,d):""),[p,d]);return(null==p?void 0:p.length)?(0,a.jsxs)(Y.o,{id:l,headerSpacing:"none",children:[(0,a.jsx)(Z.X3,{badge:r,title:i,description:s}),(0,a.jsxs)("div",{className:"mt-12 grid grid-cols-1 overflow-hidden rounded-3xl border border-input bg-card lg:grid-cols-[minmax(0,5fr)_minmax(0,7fr)]",children:[(0,a.jsx)("div",{className:"self-center",children:p.map((e,t)=>{let l=u===t;return(0,a.jsxs)("div",{"data-active":l,className:(0,Q.cn)("fsel-row relative isolate px-7",t>0&&"border-t border-input"),onMouseEnter:()=>{window.matchMedia("(hover: hover) and (min-width: 1024px)").matches&&f(t)},children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"fsel-fill pointer-events-none absolute inset-0 -z-10 bg-[#FDFAF3]"}),(0,a.jsx)("h3",{className:"m-0 font-normal",children:(0,a.jsxs)("button",{type:"button",id:`${c}-tab-${t}`,"aria-expanded":l,"aria-controls":`${c}-panel-${t}`,onClick:()=>f(t),onFocus:()=>f(t),className:"fsel-head flex w-full cursor-pointer items-center justify-between gap-5 py-5 text-left focus-visible:outline-none",children:[(0,a.jsx)("span",{className:"fsel-title font-serif text-[20px] leading-[1.16] tracking-[-0.012em] text-muted-foreground lg:text-[23px]",children:(0,h.wR)(e.title)}),(0,a.jsx)("span",{"aria-hidden":"true",className:"fsel-circle flex h-[38px] w-[38px] shrink-0 items-center justify-center rounded-full border border-[rgba(59,47,35,0.26)] text-[#241b12]",children:(0,a.jsx)("svg",{viewBox:"0 0 15 15",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",className:"h-[15px] w-[15px]",children:(0,a.jsx)("path",{d:"M2 7.5h11M9 3.5l4 4-4 4"})})})]})})]},t)})}),(0,a.jsxs)("div",{className:"dark-band grid border-t border-[rgba(239,229,209,0.14)] lg:border-l-0 lg:border-t-0",children:[(0,a.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0",style:{background:"radial-gradient(38% 33% at 100% 100%, rgba(164,176,126,0.4) 0%, rgba(164,176,126,0.12) 42%, transparent 74%)"}}),p.map((e,t)=>{var l;return(0,a.jsxs)("div",{id:`${c}-panel-${t}`,role:"region","aria-labelledby":`${c}-tab-${t}`,className:(0,Q.cn)("relative col-start-1 row-start-1 px-6 pb-8 pt-7 transition-opacity duration-300 lg:px-11 lg:py-10",u===t?"opacity-100":"invisible opacity-0"),children:[(null==(l=e.chips)?void 0:l.length)?(0,a.jsx)("div",{"aria-hidden":"true",className:"mb-5 flex flex-wrap gap-2 lg:mb-6",children:e.chips.map(e=>(0,a.jsx)("span",{className:"rounded-lg border border-[rgba(239,229,209,0.22)] bg-[rgba(239,229,209,0.05)] px-2.5 py-[7px] font-mono text-xs font-medium text-[#efe5d1]",children:e},e))}):null,g[t]&&(0,a.jsx)("p",{className:"max-w-[56ch] text-pretty text-[15px] leading-[1.68] text-[#b6a488] lg:text-base [&_a]:text-[#efe5d1] [&_a]:underline [&_a]:decoration-[0.5px] [&_a]:transition-colors [&_a:hover]:text-[#9fb27a] [&_a:focus-visible]:text-[#9fb27a] [&_a:focus-visible]:outline-none",dangerouslySetInnerHTML:{__html:g[t]}})]},t)})]})]})]}):null}let ia=["clamp(40px, 3.7vw, 52px)","clamp(48px, 4.8vw, 68px)","clamp(56px, 5.9vw, 84px)"];function ii(e){let{data:t}=e,{id:l,badge:r,title:i,subtitle:s,items:n}=t,o=Array.isArray(n)?n:[];return 0===o.length?null:(0,a.jsxs)(Y.o,{id:l,headerSpacing:"none",children:[(0,a.jsx)(Z.X3,{badge:r,title:i,description:s}),(0,a.jsx)("div",{className:"mt-12 border-t border-input",children:o.map((e,t)=>{var l,r;return(0,a.jsxs)("div",{className:"ledger-row relative isolate grid grid-cols-1 gap-x-9 gap-y-3 border-b border-input px-1 py-[34px] sm:grid-cols-[110px_minmax(0,1fr)] lg:grid-cols-[170px_250px_minmax(0,1fr)]",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"ledger-fill pointer-events-none absolute inset-0 -z-10",style:{background:"linear-gradient(90deg, rgba(250,244,231,0) 0%, #faf4e7 9%, #faf4e7 91%, rgba(250,244,231,0) 100%)"}}),(0,a.jsx)("span",{"aria-hidden":"true",className:"ledger-figure font-serif leading-[0.86] tracking-[-0.04em] text-[#241b12] lining-nums",style:{fontSize:ia[Math.min(t,ia.length-1)]},children:(null==(l=e.title)||null==(r=l.match(/\d+(?:[.,]\d+)*/))?void 0:r[0])??String(t+1).padStart(2,"0")}),(0,a.jsx)("h3",{className:"lg:pt-1.5",children:(0,a.jsx)("span",{className:"block font-sans text-[17px] font-medium leading-[1.3] tracking-[-0.01em] text-[#241b12]",children:(0,h.wR)(e.title)})}),(0,a.jsxs)("div",{className:"sm:col-start-2 lg:col-start-3 lg:pt-0.5",children:[e.price?(0,a.jsx)("p",{className:"font-serif text-[clamp(19px,1.75vw,24px)] font-normal leading-[1.26] tracking-[-0.01em] text-[#3b2f23] [text-wrap:pretty]",children:e.price}):null,e.description?(0,a.jsx)("p",{className:"mt-3 max-w-[68ch] text-sm leading-[1.55] text-muted-foreground [text-wrap:pretty]",children:e.description}):null]})]},t)})})]})}
237let is=[{id:"technical_issue",label:"Technical issue"},{id:"api_integrations",label:"API & integrations"},{id:"account_access",label:"Account & access"},{id:"payments_billing",label:"Payments & billing"},{id:"security_compliance",label:"Security & compliance"},{id:"partnership",label:"Partnership"}],io=/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/i,id="pk_26efe0fc5d62df822a430813cf0e338b",ic="e1bc57ab-2bd7-45c5-9f3f-18b451939bab",iu="45a2cc21-6c61-4b89-8867-55cea1e6fcc5",im=id?new tg._(id,{baseUrl:"https://api-dev-mira_form.idealogic.dev",timeout:5e3}):null,ix={...Object.fromEntries(Object.entries(r).filter(e=>{let[t,l]=e;return"function"==typeof l&&"sectionComponents"!==t&&"availableSections"!==t&&!t.startsWith("Section")})),SupportForm:function(e){var t,l,r,s,d,c,u,m,x,h,f,p;let g,{data:b}=e,{t:v}=(0,i.Bd)("forms/SupportForm"),{toast:j}=(0,tK.d)(),w=(0,o.useRef)(null),y=(0,o.useRef)(null),N=(0,o.useRef)(null),[k,M]=(0,o.useState)("details"),[C,S]=(0,o.useState)({email:"",category:"",subject:"",description:""}),[A,L]=(0,o.useState)({}),[R,E]=(0,o.useState)(null),[P,_]=(0,o.useState)(""),[F,z]=(0,o.useState)(!1),[T,$]=(0,o.useState)(""),[I,q]=(0,o.useState)(0),[O,D]=(0,o.useState)(!1),H=v("fields.category.options",{returnObjects:!0,defaultValue:is}),V=null==(l=b.fields)||null==(t=l.category)?void 0:t.options,W=Array.isArray(V)&&V.length>0?V:Array.isArray(H)&&H.length>0?H:is,B=(0,o.useCallback)(e=>{var t,l;if("string"==typeof e)return{id:e,label:e};let r=e.id||e.key||e.value||e.label||"",a=e.label||e.value||e.id||e.key||"",i=r||a||((null==(l=globalThis.crypto)||null==(t=l.randomUUID)?void 0:t.call(l))??Math.random().toString(36).slice(2));return{id:i,label:a||i}},[]),K=(0,o.useMemo)(()=>(W.length>0?W:is).map(B),[W,B]),U=(0,o.useMemo)(()=>K.map(e=>({id:e.id,value:e.label,label:e.label,searchValue:`${e.label} ${e.id}`.trim()})),[K]),J=(0,o.useMemo)(()=>U.find(e=>e.id===C.category)??null,[U,C.category]),X={title:b.title??v("title",{defaultValue:"ÐвеÑÐ½ÐµÐ½Ð½Ñ Ð´Ð¾ ÑлÑжби пÑдÑÑимки"}),subtitle:b.subtitle??v("subtitle",{defaultValue:"ÐпиÑÑÑÑ Ð·Ð°Ð¿Ð¸Ñ â ми вÑдповÑмо пÑоÑÑгом ÑобоÑого днÑ."})},G=(0,o.useMemo)(()=>{var e,t,l,r,a,i,s,n,o,d,c,u,m,x,h,f,p,g,j,w,y,N,k,M,C,S,A,L,R,E,P,_,F,z,T,$;return{email:{label:(null==(t=b.fields)||null==(e=t.email)?void 0:e.label)??v("fields.email.label",{defaultValue:"РобоÑий email"}),placeholder:(null==(r=b.fields)||null==(l=r.email)?void 0:l.placeholder)??v("fields.email.placeholder",{defaultValue:"[email protected]"}),required:(null==(i=b.fields)||null==(a=i.email)?void 0:a.required)??v("fields.email.required",{defaultValue:"ÐбовâÑзкове поле"}),invalid:(null==(n=b.fields)||null==(s=n.email)?void 0:s.invalid)??v("fields.email.invalid",{defaultValue:"ÐкажÑÑÑ ÐºÐ¾ÑекÑÐ½Ñ ÐµÐ»ÐµÐºÑÑÐ¾Ð½Ð½Ñ Ð¿Ð¾ÑÑÑ"})},category:{label:(null==(d=b.fields)||null==(o=d.category)?void 0:o.label)??v("fields.category.label",{defaultValue:"ÐаÑегоÑÑÑ Ð·Ð°Ð¿Ð¸ÑÑ"}),placeholder:(null==(u=b.fields)||null==(c=u.category)?void 0:c.placeholder)??v("fields.category.placeholder",{defaultValue:"ÐбеÑÑÑÑ ÐºÐ°ÑегоÑÑÑ"}),empty:(null==(x=b.fields)||null==(m=x.category)?void 0:m.empty)??v("fields.category.empty",{defaultValue:"ÐÑÑого не знайдено"}),required:(null==(f=b.fields)||null==(h=f.category)?void 0:h.required)??v("fields.category.required",{defaultValue:"ÐбеÑÑÑÑ ÐºÐ°ÑегоÑÑÑ"})},subject:{label:(null==(g=b.fields)||null==(p=g.subject)?void 0:p.label)??v("fields.subject.label",{defaultValue:"Тема"}),placeholder:(null==(w=b.fields)||null==(j=w.subject)?void 0:j.placeholder)??v("fields.subject.placeholder",{defaultValue:"ÐапÑиклад, Ðомилка пÑдпиÑÐ°Ð½Ð½Ñ Ð´Ð¾ÐºÑменÑÑ"}),required:(null==(N=b.fields)||null==(y=N.subject)?void 0:y.required)??v("fields.subject.required",{defaultValue:"ÐкажÑÑÑ ÑемÑ"})},description:{label:(null==(M=b.fields)||null==(k=M.description)?void 0:k.label)??v("fields.description.label",{defaultValue:"ÐÐ¿Ð¸Ñ Ð¿Ñоблеми"}),placeholder:(null==(S=b.fields)||null==(C=S.description)?void 0:C.placeholder)??v("fields.description.placeholder",{defaultValue:"ÐÑоки Ð´Ð»Ñ Ð²ÑдÑвоÑеннÑ, оÑÑкÑваний ÑезÑлÑÑаÑ, ÑакÑиÑний ÑезÑлÑÑаÑ"}),required:(null==(L=b.fields)||null==(A=L.description)?void 0:A.required)??v("fields.description.required",{defaultValue:"ÐпиÑÑÑÑ Ð¿ÑоблемÑ"})},attachments:{label:(null==(E=b.fields)||null==(R=E.attachments)?void 0:R.label)??v("fields.attachments.label",{defaultValue:"ÐодаÑи Ñайл"}),button:(null==(_=b.fields)||null==(P=_.attachments)?void 0:P.button)??v("fields.attachments.button",{defaultValue:"ÐбÑаÑи Ñайл"}),dropMessage:(null==(z=b.fields)||null==(F=z.attachments)?void 0:F.dropMessage)??v("fields.attachments.dropMessage",{defaultValue:"ÐеÑеÑÑгнÑÑÑ Ñайл ÑÑди або наÑиÑнÑÑÑ, Ñоб обÑаÑи"}),helper:(null==($=b.fields)||null==(T=$.attachments)?void 0:T.helper)??v("fields.attachments.helper",{defaultValue:"Ðо 50 ÐÐ. ÐÑдÑÑимÑÑÑÑÑÑ ÑкÑÑнÑоÑи, логи, CSV/JSON"})}}},[b.fields,v]),ee={label:(null==(r=b.consent)?void 0:r.label)??v("consent.label",{defaultValue:"ÐÑдÑвеÑÐ´Ð¶ÐµÐ½Ð½Ñ Ð¿Ð¾Ð»ÑÑик"}),required:(null==(s=b.consent)?void 0:s.required)??v("consent.required",{defaultValue:"ÐÑдÑвеÑдÑÑе згодÑ, Ñоб надÑÑлаÑи звеÑненнÑ."}),prefix:(null==(d=b.consent)?void 0:d.prefix)??v("consent.prefix",{defaultValue:"Я погоджÑÑÑÑ Ð·"}),privacy:(null==(c=b.consent)?void 0:c.privacy)??v("consent.privacy",{defaultValue:"ÐолÑÑÐ¸ÐºÐ¾Ñ ÐºÐ¾Ð½ÑÑденÑÑйноÑÑÑ"}),cookies:(null==(u=b.consent)?void 0:u.cookies)??v("consent.cookies",{defaultValue:"ÐолÑÑÐ¸ÐºÐ¾Ñ Cookie"}),terms:(null==(m=b.consent)?void 0:m.terms)??v("consent.terms",{defaultValue:"Умовами коÑиÑÑÑваннÑ"}),conjunction:(null==(x=b.consent)?void 0:x.and)??v("consent.and",{defaultValue:"Ñа"})},et={submit:(null==(h=b.buttons)?void 0:h.submit)??v("submit",{defaultValue:"ÐадÑÑлаÑи ÑÑкеÑ"}),submitLoading:(null==(f=b.buttons)?void 0:f.submitLoading)??v("submitLoading",{defaultValue:"ÐадÑилаÑмоâ¦"}),verificationSubmit:(null==(p=b.buttons)?void 0:p.verificationSubmit)??v("verification.submit",{defaultValue:"ÐÑдÑвеÑдиÑи код"})},el=(0,o.useMemo)(()=>{let e=C.email||v("verification.emailFallback",{defaultValue:"Ð²Ð°Ñ email"});return{infoParts:v("verification.message",{defaultValue:"Ðи надÑÑлали код пÑдÑвеÑÐ´Ð¶ÐµÐ½Ð½Ñ Ð½Ð° {{email}}.",email:"\x01"}).split("\x01"),email:e,change:v("verification.change",{defaultValue:"ÐмÑниÑи данÑ"}),codeLabel:v("verification.code.label",{defaultValue:"Ðод пÑдÑвеÑдженнÑ"}),codeHelp:v("verification.code.help",{defaultValue:"ÐведÑÑÑ ÑеÑÑизнаÑний код з ваÑÐ¾Ñ Ð¿Ð¾ÑÑи."}),codeRequired:v("verification.code.required",{defaultValue:"ÐкажÑÑÑ ÐºÐ¾Ð´ пÑдÑвеÑдженнÑ."}),resendLabel:v("verification.resend.label",{defaultValue:"ÐадÑÑлаÑи Ð
237ºÐ¾Ð´ Ñе Ñаз"}),resendSending:v("verification.resend.sending",{defaultValue:"ÐадÑилаÑмоâ¦"}),sentTitle:v("verification.sentTitle",{defaultValue:"Ðод вÑдпÑавлено"}),sentDescription:v("verification.sentDescription",{defaultValue:"ÐеÑевÑÑÑе поÑÑÑ â лиÑÑ Ð¼Ð¾Ð¶Ðµ бÑÑи Ñ Ð¿Ð°Ð¿ÑÑ âСпамâ."}),loginError:v("errors.login",{defaultValue:"Ðе вдалоÑÑ Ð½Ð°Ð´ÑÑлаÑи код. СпÑобÑйÑе пÑзнÑÑе."})}},[C.email,v]),er=(0,o.useMemo)(()=>({toastTitle:v("success.toastTitle",{defaultValue:"ТÑÐºÐµÑ ÑÑвоÑено"}),toastDescription:v("success.toastDescription",{defaultValue:"Ðи надÑÑлали лиÑÑ Ñз номеÑом звеÑненнÑ. СлÑдкÑйÑе за ÑÑаÑÑÑом Ñ Ð·Ð°ÑÑоÑÑÐ½ÐºÑ (вкладка \xabСаппоÑÑ\xbb)."}),submissionError:v("errors.submit",{defaultValue:"Ðе вдалоÑÑ Ð½Ð°Ð´ÑÑлаÑи звеÑненнÑ. СпÑобÑйÑе Ñе Ñаз."}),codeError:v("errors.code",{defaultValue:"Ðод не пÑдÑйÑов. СпÑобÑйÑе Ñе Ñаз."})}),[v]),ea=(0,o.useCallback)(e=>{L(t=>{if(!t[e])return t;let{[e]:l,...r}=t;return r})},[]),ei=(0,o.useCallback)(e=>t=>{ea(e),S(l=>({...l,[e]:t})),"verification"===k&&(M("details"),$(""),q(0),y.current&&(window.clearInterval(y.current),y.current=null))},[k,ea]),es=(0,o.useCallback)(e=>{ei("email")(e.target.value)},[ei]),en=(0,o.useCallback)(e=>ei("category")(e),[ei]),eo=ei("subject"),ed=ei("description"),ec=(0,o.useCallback)(e=>{var t;let l=(null==(t=e.target.files)?void 0:t[0])??null;E(l),_((null==l?void 0:l.name)||"")},[]),eu=(0,o.useCallback)(()=>{N.current&&(N.current.value=""),E(null),_("")},[]),em=(0,o.useCallback)(()=>{let e={};return C.email?io.test(C.email)||(e.email=G.email.invalid):e.email=G.email.required,C.category||(e.category=G.category.required),C.subject.trim()||(e.subject=G.subject.required),C.description.trim()||(e.description=G.description.required),L(e),0===Object.keys(e).length},[G,C]),ex=(0,o.useCallback)(()=>{M("details"),$(""),z(!1),q(0),y.current&&(window.clearInterval(y.current),y.current=null)},[]),eh=(0,o.useCallback)(()=>{q(60),y.current&&window.clearInterval(y.current),y.current=window.setInterval(()=>{q(e=>e<=1?(y.current&&(window.clearInterval(y.current),y.current=null),0):e-1)},1e3)},[]),ef=async e=>{try{var t,l;let r=await e.json();return(null==r?void 0:r.message)||(null==r?void 0:r.error)||(null==r?void 0:r.detail)||(null==r||null==(l=r.errors)||null==(t=l.join)?void 0:t.call(l," "))}catch{return}},ep=(0,o.useCallback)(async e=>{let t={email:C.email,category:C.category,categoryLabel:(null==J?void 0:J.value)??"",subject:C.subject,description:C.description,code:e,verificationCode:e};if(im&&ic&&iu){let{formData:e,errors:r}=im.prepareFormData({resourceId:ic,formId:iu,content:t,files:R?[R]:void 0});if(!e||(null==r?void 0:r.length))throw Error((null==r?void 0:r.join(" "))||er.submissionError);let a=await im.sendForm(e);if(!a.success){var l;throw Error((null==(l=a.errors)?void 0:l.join(" "))||er.submissionError)}return}throw Error("MiraForm configuration is missing")},[C,null==J?void 0:J.value,R,er.submissionError]),eg="https://api.chaindoc.io/auth/login?admin=false",eb=(0,o.useCallback)(async()=>{if(C.email&&!(I>0)&&!O&&!F){D(!0);try{let e=await fetch(eg,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:C.email}),credentials:"include"});if(!e.ok)throw Error(await ef(e)||el.loginError);j({title:el.sentTitle,description:el.sentDescription,duration:2500}),eh()}catch(e){j({title:e instanceof Error?e.message:el.loginError,variant:"destructive",duration:2500})}finally{D(!1)}}},[C.email,O,F,I,eh,j,el]);(0,o.useEffect)(()=>{if("verification"===k){let e=window.setTimeout(()=>{var e;null==(e=w.current)||e.focus({preventScroll:!0})},0);return()=>window.clearTimeout(e)}},[k]),(0,o.useEffect)(()=>()=>{y.current&&window.clearInterval(y.current)},[]);let ev=(0,o.useCallback)(()=>{M("details"),S({email:"",category:"",subject:"",description:""}),L({}),E(null),_(""),$(""),z(!1),q(0),N.current&&(N.current.value=""),y.current&&(window.clearInterval(y.current),y.current=null)},[]),ej=(0,o.useCallback)(async e=>{if(e.preventDefault(),"details"===k){if(!em())return;z(!0);try{let e=await fetch(eg,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:C.email}),credentials:"include"});if(!e.ok)throw Error(await ef(e)||el.loginError);j({title:el.sentTitle,description:el.sentDescription,duration:2500}),M("verification"),eh()}catch(e){j({title:e instanceof Error?e.message:el.loginError,variant:"destructive",duration:2500})}finally{z(!1)}return}if(!T.trim())return void j({title:el.codeRequired,variant:"destructive",duration:2500});z(!0);try{await ep(T.trim()),j({title:er.toastTitle,description:er.toastDescription,duration:4e3}),ev()}catch(e){j({title:e instanceof Error?e.message:er.submissionError,variant:"destructive",duration:2500}),z(!1)}},[k,C.email,ev,eh,ep,er,j,em,T,el]),ew=(0,a.jsxs)("span",{children:[ee.prefix," ",(0,a.jsx)(e6(),{className:"underline transition-colors hover:text-orange-500 focus-visible:text-orange-500 focus-visible:outline-none",href:"/privacy",children:ee.privacy}),","," ",(0,a.jsx)(e6(),{className:"underline transition-colors hover:text-orange-500 focus-visible:text-orange-500 focus-visible:outline-none",href:"/cookies",children:ee.cookies})," ",ee.conjunction," ",(0,a.jsx)(e6(),{className:"underline transition-colors hover:text-orange-500 focus-visible:text-orange-500 focus-visible:outline-none",href:"/terms",children:ee.terms}),"."]});return(0,a.jsx)("div",{className:"w-full bg-background",id:"support-form",children:(0,a.jsx)(Y.o,{headerSpacing:"none",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_1.25fr] gap-14 items-start",children:[(0,a.jsxs)("div",{className:"lg:sticky lg:top-24 lg:self-start flex flex-col gap-0",children:[(0,a.jsx)(Z.X3,{badge:b.badge,title:X.title,de
237scription:X.subtitle}),b.description&&(0,a.jsx)("p",{className:"lede mt-6",children:b.description}),b.checklist&&b.checklist.length>0&&(0,a.jsx)("ul",{className:"mt-8 space-y-3.5",children:b.checklist.map((e,t)=>(0,a.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,a.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16","aria-hidden":"true",className:"shrink-0",children:[(0,a.jsx)("circle",{cx:"8",cy:"8",r:"7.5",fill:"none",stroke:"#5c6b3f",strokeWidth:"1.2",opacity:"0.5"}),(0,a.jsx)("path",{d:"M4.5 8.2 L7 10.7 L11.5 5.5",fill:"none",stroke:"#5c6b3f",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,a.jsx)("span",{className:"text-sm font-medium text-muted-foreground",children:e})]},t))})]}),(0,a.jsxs)("div",{className:"relative rounded-3xl bg-card p-8 card-lift overflow-hidden",children:[(0,a.jsxs)("svg",{viewBox:"0 0 200 200","aria-hidden":"true",className:"pointer-events-none absolute",style:{top:-40,right:-40,width:200,opacity:.65},children:[(0,a.jsx)("circle",{cx:"100",cy:"100",r:"80",fill:"#b3bd8e",opacity:"0.35"}
237),(0,a.jsx)("circle",{cx:"100",cy:"100",r:"60",fill:"none",stroke:"#5c6b3f",strokeWidth:"1.2"})]}),(0,a.jsx)("div",{className:"relative",children:(0,a.jsxs)("form",{className:"flex flex-col gap-8",onSubmit:ej,children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"support-email",className:"mb-1 block text-sm font-medium text-foreground",children:(0,a.jsxs)("span",{className:"inline-flex items-center gap-1",children:[G.email.label,(0,a.jsx)("span",{className:(0,Q.cn)(A.email?"text-destructive":"text-foreground"),children:"*"})]})}),(0,a.jsx)(tO.p,{id:"support-email",type:"email",placeholder:G.email.placeholder,value:C.email,onChange:es,disabled:F||"verification"===k,className:(0,Q.cn)(A.email&&"border-destructive focus-visible:ring-destructive/30"),autoComplete:"email"}),A.email&&(0,a.jsx)("p",{className:"mt-2 text-sm text-destructive",children:A.email})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"mb-1 block text-sm font-medium text-foreground",htmlFor:"support-category",children:(0,a.jsxs)("span",{className:"inline-flex items-center gap-1",children:[G.category.label,(0,a.jsx)("span",{className:(0,Q.cn)(A.category?"text-destructive":"text-foreground"),children:"*"})]})}),(0,a.jsx)(t2.G,{id:"support-category",name:"category",options:U,value:C.category,onValueChange:en,placeholder:G.category.placeholder,emptyMessage:G.category.empty,showIcon:!1,showSearch:!1,className:(0,Q.cn)(A.category&&"border-destructive text-destructive focus-visible:ring-destructive/20"),disabled:F||"verification"===k,"aria-label":G.category.label}),A.category&&(0,a.jsx)("p",{className:"mt-2 text-sm text-destructive",children:A.category})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"support-subject",className:"mb-1 block text-sm font-medium text-foreground",children:(0,a.jsxs)("span",{className:"inline-flex items-center gap-1",children:[G.subject.label,(0,a.jsx)("span",{className:(0,Q.cn)(A.subject?"text-destructive":"text-foreground"),children:"*"})]})}),(0,a.jsx)(tO.p,{id:"support-subject",placeholder:G.subject.placeholder,value:C.subject,onChange:e=>eo(e.target.value),disabled:F,className:(0,Q.cn)(A.subject&&"border-destructive focus-visible:ring-destructive/30")}),A.subject&&(0,a.jsx)("p",{className:"mt-2 text-sm text-destructive",children:A.subject})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"support-description",className:"mb-1 block text-sm font-medium text-foreground",children:(0,a.jsxs)("span",{className:"inline-flex items-center gap-1",children:[G.description.label,(0,a.jsx)("span",{className:(0,Q.cn)(A.description?"text-destructive":"text-foreground"),children:"*"})]})}),(0,a.jsx)(t1,{id:"support-description",rows:6,placeholder:G.description.placeholder,value:C.description,onChange:e=>ed(e.target.value),disabled:F,className:(0,Q.cn)(A.description&&"border-destructive focus-visible:ring-destructive/30")}),A.description&&(0,a.jsx)("p",{className:"mt-2 text-sm text-destructive",children:A.description})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"mb-1 block text-sm font-medium text-foreground",htmlFor:"support-attachment",children:G.attachments.label}),(0,a.jsx)(tC,{ref:N,id:"support-attachment",name:"support-attachment",buttonLabel:G.attachments.button,dropMessage:G.attachments.dropMessage,helperText:G.attachments.helper,onChange:ec,className:(0,Q.cn)(F&&"pointer-events-none opacity-80"),disabled:F}),P&&(0,a.jsxs)("div",{className:"mt-2 flex items-center text-sm text-muted-foreground",children:[(0,a.jsx)("span",{className:"truncate",title:P,children:P}),(0,a.jsx)("button",{type:"button",onClick:eu,className:"ml-2 inline-flex items-center justify-center text-muted-foreground transition hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-label":v("fields.attachments.remove",{defaultValue:"ÐидалиÑи Ñайл"}),disabled:F,children:(0,a.jsx)(eZ.A,{className:"h-4 w-4"})})]})]}),"verification"===k&&(0,a.jsxs)("div",{className:"space-y-3 rounded-2xl bg-secondary p-4 text-sm text-[hsl(30,8%,40%)]",children:[(0,a.jsxs)("p",{children:[el.infoParts[0],(0,a.jsx)("strong",{className:"font-semibold text-gray-900",children:el.email}),el.infoParts[1]]}),(0,a.jsx)("button",{type:"button",className:(0,Q.cn)((0,n.r)({variant:"outline",size:"sm"}),"w-fit focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:border-[#5c6b3f]"),onClick:ex,disabled:F,children:el.change})]}),"verification"===k&&(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("label",{htmlFor:"support-verification",className:"block text-sm font-medium text-foreground",children:el.codeLabel}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,a.jsxs)(tH,{ref:w,id:"support-verification",name:"verificationCode",maxLength:6,value:T,onChange:e=>$(e.replace(/[^0-9]/g,"").slice(0,6)),inputMode:"numeric",pattern:"^[0-9]*$","aria-label":el.codeLabel,containerClassName:"justify-start gap-4",disabled:F,children:[(0,a.jsxs)(tV,{className:"gap-2",children:[(0,a.jsx)(tW,{index:0}),(0,a.jsx)(tW,{index:1}),(0,a.jsx)(tW,{index:2})]}),(0,a.jsx)(tB,{className:"px-3"}),(0,a.jsxs)(tV,{className:"gap-2",children:[(0,a.jsx)(tW,{index:3}),(0,a.jsx)(tW,{index:4}),(0,a.jsx)(tW,{index:5})]})]}),(0,a.jsxs)("button",{type:"button",onClick:eb,disabled:I>0||O||F,className:(0,Q.cn)("inline-flex h-9 items-center justify-center rounded-md border border-input px-3 text-sm font-medium text-foreground transition-colors","hover:bg-muted/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:border-border disabled:bg-transparent disabled:text-muted-foreground disabled:opacity-80"),children:[O?el.resendSending:el.resendLabel,I>0&&!O&&(0,a.jsx)("span",{className:"ml-2 text-xs font-normal text-muted-foreground",children:(g=Math.floor(I/60),`${String(g).padStart(2,"0")}
237:${String(I%60).padStart(2,"0")}`)})]})]}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:el.codeHelp})]}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground leading-relaxed [&_a]:underline [&_a]:underline-offset-2 [&_a]:transition-colors [&_a:hover]:text-orange-500",children:ew}),(0,a.jsx)("div",{className:"pt-2",children:(0,a.jsx)("button",{type:"submit",className:(0,Q.cn)((0,n.r)({variant:"default"}),"border border-transparent focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:border-[#5c6b3f]",F&&"opacity-90 cursor-wait"),disabled:F,children:F?(0,a.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,a.jsx)("span",{className:"inline-block h-4 w-4 animate-spin rounded-full border-2 border-white/60 border-t-white"}),"verification"===k?et.verificationSubmit:et.submitLoading]}):"verification"===k?et.verificationSubmit:et.submit})})]})})]})]})})})}},ih=new Set(["Hero","PageHero","SimpleSubscription"]),ip=new Set(["ContactForm","SupportForm"]);function ig(e,t){return!(!e||!t||ip.has(e)||ih.has(t))}function ib(){return(0,a.jsx)("div",{"aria-hidden":!0,style:{position:"relative",height:0,zIndex:10},children:(0,a.jsx)("div",{style:{position:"absolute",left:0,right:0,height:"1px",top:"-0.5px",backgroundColor:"hsl(var(--input))"}})})}function iv(e){let{namespace:t,sectionsData:l,currentArticle:r}=e,{t:s}=(0,i.Bd)(t||"common");if(l&&l.length>0)return(0,a.jsx)(a.Fragment,{children:l.map((e,t)=>{let i=e.component;if(!i)return console.warn(`No component specified for section: ${t}`),null;let s=ix[i];if(!s)return console.warn(`Component "${i}" not found in component map`),null;let n=r?{...e,currentArticleSlug:r.slug,currentArticleCategory:r.category,currentArticleTags:r.tags,currentArticleFaq:r.faq}:e,o=t>0?l[t-1]:null,d=(null==o?void 0:o.component)??null,c="dark"!==e.tone&&(null==o?void 0:o.tone)!=="dark"&&!1!==e.separator&&(0===t?!ih.has(i):ig(d,i)),u="string"==typeof e.id?e.id:void 0;return(0,a.jsxs)("div",{id:u,className:u?"scroll-mt-20":void 0,children:[c&&(0,a.jsx)(ib,{}),(0,a.jsx)(s,{data:n})]},`section-${t}`)})});if(!t)return null;let n=s("contents",{returnObjects:!0});if(!n||"object"!=typeof n)return null;let o=Array.isArray(n)?n.filter(e=>!!e&&"object"==typeof e):Object.values(n).filter(e=>!!e&&"object"==typeof e&&"component"in e);return 0===o.length?null:(0,a.jsx)(a.Fragment,{children:o.map((e,t)=>{let l=e.component;if(!l)return console.warn(`No component specified for section: ${t}`),null;let r=ix[l];if(!r)return console.warn(`Component "${l}" not found in componentMap`),null;let i=t>0?o[t-1]:null,s=(null==i?void 0:i.component)??null,n="dark"===e.tone||(null==i?void 0:i.tone)==="dark",d="string"==typeof e.id?e.id:void 0;return(0,a.jsxs)("div",{id:d,className:d?"scroll-mt-20":void 0,children:[!n&&!1!==e.separator&&ig(s,l)&&(0,a.jsx)(ib,{}),(0,a.jsx)(r,{data:e})]},`section-${t}`)})})}},49131:(e,t,l)=>{l.d(t,{R:()=>a});var r=l(37876);function a(){return(0,r.jsx)("span",{className:"inline-flex items-center rounded-full border border-[#5c6b3f]/30 bg-[#5c6b3f]/10 px-2 py-0.5 text-xs font-medium text-[#5c6b3f]",children:"Scheduled"})}},63679:(e,t,l)=>{l.d(t,{RM:()=>r,SA:()=>d,YC:()=>s});let r=!0;class a extends Error{constructor(e,t){super(t),this.name="PublicProfileApiError",this.status=e}}function i(){return"https://api.chaindoc.io".trim().replace(/\/+$/,"")}function s(e){if(!e)return;if(/^https?:\/\//i.test(e))return e;let t=i();return e.startsWith("/")?`${t}${e}`:`${t}/${e}`}async function n(e){let t,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=`${i()}${e}`,s=new AbortController,n=setTimeout(()=>s.abort(),8e3);l.signal&&(l.signal.aborted?s.abort():l.signal.addEventListener("abort",()=>s.abort(),{once:!0}));try{t=await fetch(r,{method:"GET",headers:{Accept:"application/json"},signal:s.signal})}catch(l){if(l instanceof DOMException&&"AbortError"===l.name)throw new a(0,`Public Profiles API request timed out: ${e}`);let t=l instanceof Error?l.message:"unknown network error";throw new a(0,`Public Profiles API network error (${e}): ${t}`)}finally{clearTimeout(n)}if(!t.ok){let l="";try{l=await t.text()}catch{}throw new a(t.status,`Public Profiles API ${t.status} on ${e}${l?`: ${l.slice(0,200)}`:""}`)}return t.json()}async function o(){let e,t,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(`/public/profiles${(e=new URLSearchParams,l.q&&e.set("q",l.q),l.industry&&e.set("industry",l.industry),l.country&&e.set("country",l.country),"number"==typeof l.page&&e.set("page",String(l.page)),"number"==typeof l.limit&&e.set("limit",String(l.limit)),l.sort&&e.set("sort",l.sort),(t=e.toString())?`?${t}`:"")}`,r)}async function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[],l=1,r=1/0;for(;t.length<r&&l<=50;){let a=await o({page:l,limit:50,sort:"recent"},e);for(let e of(r=a.pagination.total,a.items))e.slug&&t.push({slug:e.slug,publishedUpdatedAt:e.publishedUpdatedAt,noIndex:!!e.noIndex});if(a.items.length<50)break;l+=1}return t}},72953:(e,t,l)=>{l.d(t,{Gj:()=>o,KC:()=>a,L8:()=>d,pq:()=>n,sZ:()=>i,zq:()=>c});var r=l(1773);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;return e.filter(e=>!("published"!==e.status||!e.slug||e.publishDate&&new Date(e.publishDate)>t)&&!0)}function i(e,t){return e.filter(e=>{if(t.category&&"all"!==t.category&&!(e.category||[]).some(e=>e.toLowerCase()===t.category.toLowerCase())||t.subCategory&&"all"!==t.subCategory&&!(e.subCategory||[]).some(e=>e.toLowerCase()===t.subCategory.toLowerCase())||t.featured&&!e.featured)return!1;if(t.search){let l=t.search.toLowerCase(),r=e.title.toLowerCase().includes(l),a=e.description.toLowerCase().includes(l),i=(e.tags||[]).some(e=>e.toLowerCase().includes(l));if(!r&&!a&&!i)return!1}return!0})}l(65364);let s=e=>e&&new Date(e).getTime()||0;function n(e,t){return s((0,r.DU)(t))-s((0,r.DU)(e))||s(t.publishDate)-s(e.publishDate)}function o(e,t){let l=[...e];switch(t){case"newest":return l.sort(n);case"oldest":return l.sort((e,t)=>
237n(t,e));case"popular":return l.sort((e,t)=>Number(t.featured)-Number(e.featured));default:return l}}function d(e,t){let l=new Map;return e.forEach(e=>{(e.subCategory||[]).forEach(e=>{l.set(e,(l.get(e)||0)+1)})}),t.filter(e=>l.has(e.key)).map(e=>({...e,count:l.get(e.key)||0})).sort((e,t)=>t.count-e.count)}function c(e,t){let l=new Map;return e.forEach(e=>{(e.category||[]).forEach(e=>{l.set(e,(l.get(e)||0)+1)})}),t.filter(e=>l.has(e.key)).map(e=>({...e,count:l.get(e.key)||0})).sort((e,t)=>t.count-e.count)}},73374:(e,t,l)=>{l.d(t,{o:()=>s});var r=l(37876),a=l(14232),i=l(1773);function s(e){let{children:t,className:l,maxWidth:s="7xl",padding:n="xl",headerSpacing:o="lg",reveal:d=!0,id:c}=e,u=(0,a.useRef)(null),[m,x]=(0,a.useState)(!1),[h,f]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(!d)return;let e=u.current;if(!e)return;let t=new IntersectionObserver(e=>{let l=e[0];l&&l.isIntersecting&&(x(!0),t.disconnect())},{root:null,rootMargin:"0px 0px -15% 0px",threshold:0});return t.observe(e),()=>t.disconnect()},[d]),(0,a.useEffect)(()=>{if(!m||h)return;let e=window.setTimeout(()=>f(!0),750);return()=>window.clearTimeout(e)},[m,h]),(0,r.jsx)("section",{id:c,ref:u,className:(0,i.cn)("mx-auto flex w-full flex-col px-4 sm:px-6 md:px-7 lg:px-8 xl:px-10",{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl"}[s],{xs:"py-2 sm:py-4",sm:"py-4 sm:py-8",md:"py-6 sm:py-12",lg:"py-8 sm:py-16",xl:"py-16 sm:py-24 lg:py-32"}[n],{none:"gap-0",sm:"gap-4",md:"gap-8",lg:"gap-12",xl:"gap-16"}[o],d&&"transition-all duration-700 ease-[cubic-bezier(0.22,1,0.36,1)]",d&&!h&&"will-change-transform",d?m?"opacity-100 translate-y-0":"opacity-0 translate-y-6":void 0,l),children:t})}},80901:(e,t,l)=>{l.d(t,{Wu:()=>n,Zp:()=>s});var r=l(37876),a=l(14232),i=l(1773);let s=a.forwardRef((e,t)=>{let{className:l,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("rounded-lg border bg-card text-card-foreground",l),...a})});s.displayName="Card",a.forwardRef((e,t)=>{let{className:l,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("flex flex-col space-y-1.5 p-6",l),...a})}).displayName="CardHeader",a.forwardRef((e,t)=>{let{className:l,...a}=e;return(0,r.jsx)("h3",{ref:t,className:(0,i.cn)("text-2xl font-semibold leading-none tracking-tight",l),...a})}).displayName="CardTitle",a.forwardRef((e,t)=>{let{className:l,...a}=e;return(0,r.jsx)("p",{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",l),...a})}).displayName="CardDescription";let n=a.forwardRef((e,t)=>{let{className:l,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("p-6 pt-0",l),...a})});n.displayName="CardContent",a.forwardRef((e,t)=>{let{className:l,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("flex items-center p-6 pt-0",l),...a})}).displayName="CardFooter"}}]);
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.