1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,88653,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(231178),n=e.i(947414),o=e.i(674008),i=e.i(821476),l=e.i(772846),s=r,d=e.i(737806);function c(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class u extends s.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,r=(0,l.isHTMLElement)(e)&&e.offsetWidth||0,a=(0,l.isHTMLElement)(e)&&e.offsetHeight||0,n=this.props.sizeRef.current;n.height=t.offsetHeight||0,n.width=t.offsetWidth||0,n.top=t.offsetTop,n.left=t.offsetLeft,n.right=r-n.width-n.left,n.bottom=a-n.height-n.top}return null}componentDidUpdate(){}render(){return this.props.children}}function m({children:e,isPresent:a,anchorX:n,anchorY:o,root:i,pop:l}){let p=(0,s.useId)(),f=(0,s.useRef)(null),h=(0,s.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:g}=(0,s.useContext)(d.MotionConfigContext),b=function(...e){return r.useCallback(function(...e){return t=>{let r=!1,a=e.map(e=>{let a=c(e,t);return r||"function"!=typeof a||(r=!0),a});if(r)return()=>{for(let t=0;t<a.length;t++){let r=a[t];"function"==typeof r?r():c(e[t],null)}}}}(...e),e)}(f,e.props?.ref??e?.ref);return(0,s.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:s,right:d,bottom:c}=h.current;if(a||!1===l||!f.current||!e||!t)return;let u="left"===n?`left: ${s}`:`right: ${d}`,m="bottom"===o?`bottom: ${c}`:`top: ${r}`;f.current.dataset.motionPopId=p;let b=document.createElement("style");g&&(b.nonce=g);let x=i??document.head;return x.appendChild(b),b.sheet&&b.sheet.insertRule(` 2 [data-motion-pop-id="${p}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${t}px !important; 6 ${u}px !important; 7 ${m}px !important; 8 } 9 `),()=>{x.contains(b)&&x.removeChild(b)}},[a]),(0,t.jsx)(u,{isPresent:a,childRef:f,sizeRef:h,pop:l,children:!1===l?e:s.cloneElement(e,{ref:b})})}let p=({children:e,initial:a,isPresent:o,onExitComplete:l,custom:s,presenceAffectsLayout:d,mode:c,anchorX:u,anchorY:p,root:h})=>{let g=(0,n.useConstant)(f),b=(0,r.useId)(),x=!0,v=(0,r.useMemo)(()=>(x=!1,{id:b,initial:a,isPresent:o,custom:s,onExitComplete:e=>{for(let t of(g.set(e,!0),g.values()))if(!t)return;l&&l()},register:e=>(g.set(e,!1),()=>g.delete(e))}),[o,g,l]);return d&&x&&(v={...v}),(0,r.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[o]),r.useEffect(()=>{o||g.size||!l||l()},[o]),e=(0,t.jsx)(m,{pop:"popLayout"===c,isPresent:o,anchorX:u,anchorY:p,root:h,children:e}),(0,t.jsx)(i.PresenceContext.Provider,{value:v,children:e})};function f(){return new Map}var h=e.i(464978);let g=e=>e.key||"";function b(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}e.s(["AnimatePresence",0,({children:e,custom:i,initial:l=!0,onExitComplete:s,presenceAffectsLayout:d=!0,mode:c="sync",propagate:u=!1,anchorX:m="left",anchorY:f="top",root:x})=>{let[v,y]=(0,h.usePresence)(u),w=(0,r.useMemo)(()=>b(e),[e]),C=u&&!v?[]:w.map(g),N=(0,r.useRef)(!0),S=(0,r.useRef)(w),j=(0,n.useConstant)(()=>new Map),k=(0,r.useRef)(new Set),[P,I]=(0,r.useState)(w),[E,R]=(0,r.useState)(w);(0,o.useIsomorphicLayoutEffect)(()=>{N.current=!1,S.current=w;for(let e=0;e<E.length;e++){let t=g(E[e]);C.includes(t)?(j.delete(t),k.current.delete(t)):!0!==j.get(t)&&j.set(t,!1)}},[E,C.length,C.join("-")]);let A=[];if(w!==P){let e=[...w];for(let t=0;t<E.length;t++){let r=E[t],a=g(r);C.includes(a)||(e.splice(t,0,r),A.push(r))}return"wait"===c&&A.length&&(e=A),R(b(e)),I(w),null}let{forceRender:M}=(0,r.useContext)(a.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:E.map(e=>{let r=g(e),a=(!u||!!v)&&(w===E||C.includes(r));return(0,t.jsx)(p,{isPresent:a,initial:(!N.current||!!l)&&void 0,custom:i,presenceAffectsLayout:d,mode:c,root:x,onExitComplete:a?void 0:()=>{if(k.current.has(r)||(k.current.add(r),!j.has(r)))return;j.set(r,!0);let e=!0;j.forEach(t=>{t||(e=!1)}),e&&(M?.(),R(S.current),u&&y?.(),s&&s())},anchorX:m,anchorY:f,children:e},r)})})}],88653)},299023,e=>{"use strict";let t=(0,e.i(475254).default)("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);e.s(["Minus",0,t],299023)},555436,e=>{"use strict";let t=(0,e.i(475254).default)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);e.s(["Search",0,t],555436)},514764,e=>{"use strict";let t=(0,e.i(475254).default)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);e.s(["Send",0,t],514764)},254030,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(793411),n=e.i(861745),o=e.i(948148),i=e.i(846932),l=e.i(88653),s=e.i(37727),d=e.i(514764),c=e.i(463059),u=e.i(299023),m=e.i(107233),p=e.i(664659),f=e.i(975157),h=e.i(209165),g=e.i(255315),b=e.i(792071),x=e.i(519455),v=e.i(793479),y=e.i(608006),w=e.i(344523),C=e.i(317056),N=e.i(337822),S=e.i(271526);function j({value:e,onValueChange:a,placeholder:n,className:i}){let l=(0,o.useTranslations)("common"),[s,d]=(0,r.useState)(!1),c=(0,r.useMemo)(()=>[...S.PHONE_PREFIX_OPTIONS].sort((e,t)=>
9e.label.localeCompare(t.label)),[]);return(0,t.jsxs)(N.Popover,{open:s,onOpenChange:d,modal:!0,children:[(0,t.jsx)(N.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)(x.Button,{type:"button",variant:"outline",role:"combobox","aria-expanded":s,className:(0,f.cn)("h-10 w-full justify-between font-normal",i),children:[(0,t.jsx)("span",{className:"truncate",children:e||n}),(0,t.jsx)(w.ChevronsUpDown,{className:"h-3.5 w-3.5 shrink-0 opacity-50"})]})}),(0,t.jsx)(N.PopoverContent,{align:"start",sideOffset:4,className:"z-[100] w-[260px] p-0",onOpenAutoFocus:e=>e.preventDefault(),onWheel:e=>e.stopPropagation(),onTouchMove:e=>e.stopPropagation(),children:(0,t.jsxs)(C.Command,{className:"overflow-hidden",children:[(0,t.jsx)(C.CommandInput,{placeholder:l("search")}),(0,t.jsxs)(C.CommandList,{className:"max-h-48 overflow-y-auto overscroll-contain",children:[(0,t.jsx)(C.CommandEmpty,{children:l("noResults")}),(0,t.jsx)(C.CommandGroup,{children:c.map(e=>(0,t.jsxs)(C.CommandItem,{value:`${e.label} ${e.iso}`,onSelect:()=>{a(e.label),d(!1)},children:[(0,t.jsx)("span",{className:"mr-2",children:e.flag}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.label})]},e.iso))})]})]})})]})}let k=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function P({onSubmit:e,submitting:a}){let n=(0,o.useTranslations)("chat"),[i,l]=(0,r.useState)(""),[s,d]=(0,r.useState)(S.DEFAULT_PHONE_ISO),[c,u]=(0,r.useState)(""),[m,p]=(0,r.useState)(""),[f,h]=(0,r.useState)(""),[g,b]=(0,r.useState)(""),[w,C]=(0,r.useState)(""),[N,I]=(0,r.useState)(!1),E=i.trim().length>0,R=c.trim().length>0,A=k.test(m.trim()),M=f.trim().length>0,T=E&&R&&A&&M,D=new Date(Date.now()+6e4).toISOString().slice(0,16),F=async t=>{if(t.preventDefault(),!T)return void I(!0);if(a)return;let r=(0,S.getPhonePrefixByIso)(s)?.dial||"",n=null,o=null;if(w){let e=new Date(w);!Number.isNaN(e.getTime())&&e.getTime()>Date.now()&&(n=e.toISOString(),o=Intl.DateTimeFormat().resolvedOptions().timeZone)}await e({name:i.trim(),phoneNumber:`${r} ${c.trim()}`.trim(),email:m.trim(),country:f.trim(),companyName:g.trim(),preferredAt:n,preferredTimezone:o})};return(0,t.jsxs)("form",{onSubmit:F,noValidate:!0,className:"space-y-2.5 rounded-2xl border border-border bg-background/60 p-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(v.Input,{value:i,onChange:e=>l(e.target.value),placeholder:n("demoFormName"),disabled:a,"aria-invalid":N&&!E}),N&&!E&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:n("demoFormNameRequired")})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsx)(y.PhonePrefixSelect,{iso:s,onIsoChange:d}),(0,t.jsx)(v.Input,{value:c,onChange:e=>u(e.target.value.replace(/[^\d\s]/g,"")),placeholder:n("demoFormWhatsapp"),className:"rounded-l-none",disabled:a,"aria-invalid":N&&!R})]}),N&&!R&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:n("demoFormWhatsappRequired")})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(v.Input,{type:"email",value:m,onChange:e=>p(e.target.value),placeholder:n("demoFormEmail"),disabled:a,"aria-invalid":N&&!A}),N&&!A&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:n("demoFormEmailInvalid")})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(j,{value:f,onValueChange:h,placeholder:n("demoFormCountry")}),N&&!M&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:n("demoFormCountryRequired")})]}),(0,t.jsx)(v.Input,{value:g,onChange:e=>b(e.target.value),placeholder:n("demoFormBusinessName"),disabled:a}),(0,t.jsx)(v.Input,{type:"datetime-local",value:w,min:D,onChange:e=>C(e.target.value),disabled:a,className:"text-muted-foreground","aria-label":n("demoFormPreferredDate")}),(0,t.jsx)(x.Button,{type:"submit",size:"sm",className:"w-full",disabled:a,children:n(a?"demoFormSubmitting":"demoFormSubmit")})]})}var I=e.i(292938),E=e.i(283513),R=e.i(970519);let A="https://reviewrevolution.ai/contact?type=support",M="rr-chat-session",T="rr-chat-messages",D="rr-chat-widget-docked",F="rr-chat-widget-position",O="rr:open-chat-widget";function L(e){let t=window.innerWidth,r=window.innerHeight;return"fab"===e?{w:t>=768?64:56,h:t>=768?64:56}:"dock"===e?{w:52,h:48}:{w:t>=640?380:t-16,h:Math.min(.85*r,560,r-16)}}function B(e,t,r,a){return{left:Math.max(8,Math.min(e,window.innerWidth-r-8)),top:Math.max(8,Math.min(t,window.innerHeight-a-8))}}function $(e){let{w:t,h:r}=L(e),a=window.innerWidth>=768?24:16,n=72*(window.innerWidth<768),{left:o,top:i}=B(window.innerWidth-t-a,window.innerHeight-r-a-n,t,r);return{x:o+t,y:i+r}}function G(e){let{w:t,h:r}=L("dock"),a=window.innerWidth-t,n=window.innerHeight-r-8;return{x:a+t,y:Math.max(8,Math.min(e.y-r,n))+r}}function _(e,t){if("dock"===t)return G(e);let{w:r,h:a}=L(t),{left:n,top:o}=B(e.x-r,e.y-a,r,a);return{x:n+r,y:o+a}}let K=[{id:"overview",labelKey:"q_overview"},{id:"pricing",labelKey:"q_pricing"},{id:"features",labelKey:"q_features"},{id:"how_it_works",labelKey:"q_howItWorks"},{id:"partners",labelKey:"q_partners",agencyHide:!0},{id:"agents",labelKey:"q_agents",agencyHide:!0}
9,{id:"human_support",labelKey:"q_humanSupport"}];function H(e){return e.replace(/#{1,6}\s+/g,"").replace(/\*\*(.+?)\*\*/g,"$1").replace(/\*(.+?)\*/g,"$1").replace(/__(.+?)__/g,"$1").replace(/_(.+?)_/g,"$1").replace(/```[\s\S]*?```/g,"").replace(/`(.+?)`/g,"$1").replace(/^\s*[-*]\s+/gm,"⢠").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/\u2014/g,"-")}let U=[{keywords:["price","pricing","harga"],en:"The Lite tier is free for your first 7 days (direct signup) or 14 days (with an agent referral). Paid plans: Growth at Rp 2,000,000/mo or $119/mo per location, and Intelligence from Rp 3,000,000/mo or $179/mo per location (dynamic pricing may apply). No contract, cancel anytime with 30 days notice.",id:"Paket Lite gratis selama 7 hari pertama (daftar langsung) atau 14 hari (jika dirujuk agen). Paket berbayar: Growth Rp 2.000.000/bln atau $119/bln per lokasi, dan Intelligence mulai Rp 3.000.000/bln atau $179/bln per lokasi (harga dinamis dapat berlaku). Tanpa kontrak, batalkan kapan saja dengan pemberitahuan 30 hari."},{keywords:["contact","support","kontak","hubungi"],en:`Visit ${A} or email [email protected].`,id:`Kunjungi ${A} atau email [email protected].`}];function q(){return{name:"",email:"",whatsapp:"",topicsDiscussed:[],questions:[],leadSubmitted:!1,demoRequestSubmitted:!1,leadPromptDismissed:!1,lastTopic:""}}function z(){return(0,t.jsxs)("div",{className:"flex items-end gap-2 max-w-[85%]",children:[(0,t.jsx)("div",{className:"w-8 h-8 rounded-full bg-gradient-to-br from-primary to-primary/80 flex items-center justify-center shrink-0 shadow-sm overflow-hidden",children:(0,t.jsx)(I.AgencyMascotImage,{pose:"welcome-revo",rrSrc:"/main/welcome-revo.png",alt:"",className:"w-7 h-7 rounded-full object-cover"})}),(0,t.jsx)("div",{className:"bg-muted/60 backdrop-blur-sm rounded-2xl rounded-bl-md px-4 py-3",children:(0,t.jsx)("div",{className:"flex items-center gap-1",children:[0,1,2].map(e=>(0,t.jsx)(i.motion.span,{className:"w-1.5 h-1.5 rounded-full bg-muted-foreground/50",animate:{y:[0,-4,0]},transition:{duration:.6,repeat:1/0,delay:.15*e,ease:"easeInOut"}},e))})})]})}function V({buttons:e,onAction:r,onTopic:a,disabled:n,sectionLabel:o}){if(!e.length)return null;let i=e.filter(e=>"topic"===e.type),l=e.filter(e=>"topic"!==e.type);return(0,t.jsxs)("div",{className:"space-y-1.5 pl-9 max-w-[95%]",children:[i.length>0&&o&&(0,t.jsx)("p",{className:"text-[10px] font-medium text-muted-foreground/70 uppercase tracking-wide",children:o}),(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",children:i.map((e,r)=>(0,t.jsx)("button",{type:"button",disabled:n,onClick:()=>a(e.topicId,e.label),className:"px-3 py-1.5 text-xs font-medium rounded-full border border-primary/25 text-primary bg-primary/5 hover:bg-primary/10 transition-all duration-200 active:scale-95 disabled:opacity-50 text-left",children:e.label},`topic-${e.topicId}-${r}`))}),l.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",children:l.map((e,a)=>"link"===e.type?(0,t.jsx)("button",{type:"button",disabled:n,onClick:()=>{e.external?window.open(e.url,"_blank","noopener,noreferrer"):window.location.href=e.url},className:"px-3 py-1.5 text-xs font-medium rounded-full border border-slate-200 dark:border-slate-700 text-slate-700 dark:text-slate-300 bg-slate-50/80 dark:bg-slate-900/40 hover:bg-slate-100 dark:hover:bg-slate-900/60 transition-all duration-200 active:scale-95 disabled:opacity-50",children:e.label},`${e.url}-${a}`):(0,t.jsx)("button",{type:"button",disabled:n,onClick:()=>r(e.action),className:"px-3 py-1.5 text-xs font-medium rounded-full border border-emerald-200 dark:border-emerald-800/50 text-emerald-700 dark:text-emerald-400 bg-emerald-50/50 dark:bg-emerald-950/20 hover:bg-emerald-100 dark:hover:bg-emerald-950/40 transition-all duration-200 active:scale-95 disabled:opacity-50",children:e.label},`${e.action}-${a}`))})]})}function W({message:e,isLatest:r,responseTimeLabel:a}){let n="bot"===e.role;return(0,t.jsxs)(i.motion.div,{initial:!!r&&{opacity:0,y:8,scale:.96},animate:{opacity:1,y:0,scale:1},transition:{duration:.25,ease:[.25,.46,.45,.94]},className:(0,f.cn)("flex flex-col gap-1",!n&&"items-end"),children:[(0,t.jsxs)("div",{className:(0,f.cn)("flex items-end gap-2 max-w-[85%]",!n&&"ml-auto flex-row-reverse"),children:[n&&(0,t.jsx)("div",{className:"w-8 h-8 rounded-full bg-gradient-to-br from-primary to-primary/80 flex items-center justify-center shrink-0 shadow-sm overflow-hidden",children:(0,t.jsx)(I.AgencyMascotImage,{pose:"welcome-revo",rrSrc:"/main/welcome-revo.png",alt:"",className:"w-7 h-7 rounded-full object-cover"})}),(0,t.jsx)("div",{className:(0,f.cn)("px-3.5 py-2.5 text-[13px] leading-relaxed whitespace-pre-line",n?"bg-muted/60 backdrop-blur-sm text-foreground rounded-2xl rounded-bl-md":"bg-gradient-to-br from-primary to-primary/90 text-primary-foreground rounded-2xl rounded-br-md shadow-sm"),children:e.text})]}),n&&a&&(0,t.jsx)("p",{className:"text-[10px] text-muted-foreground
9/60 pl-9",children:a})]})}function J({options:e,onSelect:r}){return(0,t.jsx)(i.motion.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.3,delay:.15},className:"flex flex-wrap gap-1.5 pl-9",children:e.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>r(e.id,e.label),className:"px-3 py-1.5 text-xs font-medium rounded-full border border-primary/25 text-primary bg-primary/5 hover:bg-primary/10 hover:border-primary/40 transition-all duration-200 active:scale-95",children:e.label},e.id))})}let Z=["/dashboard","/auth","/en","/id","/signup","/help","/status","/contact"];e.s(["CHAT_WIDGET_OPEN_EVENT",0,O,"ChatWidget",0,function(){let e=(0,a.usePathname)(),x=(0,n.useLocale)(),v=(0,o.useTranslations)("chat"),{isAgencyHost:y}=(0,E.useAgencyBrand)(),w=(0,E.useAgencyDisplayName)(),C=e=>y&&w!==R.PRODUCT_NAME?e.replace(/Review Revolutionâ¢/g,w).replace(/Review Revolution/g,w):e,N=C(v("greeting")),S=C(v("title")),j=y?`${w} AI`:"Review Revolution AI",k=K.filter(e=>!y||!("agencyHide"in e&&e.agencyHide)).map(e=>({id:e.id,label:v(e.labelKey)})),[Y,X]=(0,r.useState)(!1),[Q,ee]=(0,r.useState)(!1),[et,er]=(0,r.useState)(null),[ea,en]=(0,r.useState)(q),[eo,ei]=(0,r.useState)([{id:"welcome",role:"bot",text:N}]),[el,es]=(0,r.useState)(!1),[ed,ec]=(0,r.useState)(""),[eu,em]=(0,r.useState)(!1),[ep,ef]=(0,r.useState)(!1),[eh,eg]=(0,r.useState)(!1),[eb,ex]=(0,r.useState)(!0),ev=(0,r.useRef)(null),ey=(0,r.useRef)(null),ew=(0,r.useRef)(null),eC=(0,r.useRef)(ea),eN=(0,r.useRef)(eo),eS=(0,r.useRef)(!0),ej=(0,r.useRef)(!1),ek=(0,r.useRef)({pointerId:null,startPointer:{x:0,y:0},startAnchor:{x:0,y:0},dragging:!1}),eP=(0,r.useRef)(!1);eC.current=ea,eN.current=eo;let eI=(0,r.useCallback)(()=>{let e=ev.current;return!e||e.scrollHeight-e.scrollTop-e.clientHeight<=48},[]),eE=(0,r.useCallback)((e="smooth")=>{requestAnimationFrame(()=>{let t=ev.current;t&&(t.scrollTo({top:t.scrollHeight,behavior:e}),ex(!0),eS.current=!0)})},[]),eR=(0,r.useCallback)(()=>{requestAnimationFrame(()=>{ew.current?.scrollIntoView({behavior:"smooth",block:"start"}),ex(eI())})},[eI]),eA=(0,r.useCallback)(()=>{let e=eI();ex(e),e||(eS.current=!1)},[eI]);(0,r.useEffect)(()=>{en(function(){try{let e=localStorage.getItem(M);if(!e)return q();let t=JSON.parse(e);return{...q(),...t}}catch{return q()}}()),ei(function(e){try{let t=localStorage.getItem(T);if(!t)return[{id:"welcome",role:"bot",text:e}];let r=JSON.parse(t);if(!Array.isArray(r)||0===r.length)return[{id:"welcome",role:"bot",text:e}];return r}catch{return[{id:"welcome",role:"bot",text:e}]}}(N));try{ee("true"===localStorage.getItem(D))}catch{}try{let e=localStorage.getItem(F);if(e){let t=JSON.parse(e);"number"==typeof t?.x&&"number"==typeof t?.y?er(t):er($("fab"))}else er($("fab"))}catch{er($("fab"))}es(!0)},[N]);let eM=Y?"panel":Q?"dock":"fab",eT=et?function(e,t){let{w:r,h:a}=L(t);return B(e.x-r,e.y-a,r,a)}(et,eM):null;(0,r.useEffect)(()=>{if(el&&et)try{localStorage.setItem(F,JSON.stringify(et))}catch{}},[et,el]),(0,r.useEffect)(()=>{if(!et)return;let e=()=>{er(e=>e?_(e,eM):e)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[et,eM]),(0,r.useEffect)(()=>{er(e=>{if(!e||"dock"===eM)return e;let t=_(e,eM);return t.x===e.x&&t.y===e.y?e:t})},[eM]),(0,r.useEffect)(()=>{let e=el&&Q&&!Y,t=e&&!eP.current;if(eP.current=e,!t||!et)return;let r=G(et);if(1>Math.hypot(r.x-et.x,r.y-et.y))return;let a=!1,n={...et},o=performance.now(),i=e=>{if(a)return;let t=Math.min(1,(e-o)/600),l=1-(1-t)**3;er({x:n.x+(r.x-n.x)*l,y:n.y+(r.y-n.y)*l}),t<1?requestAnimationFrame(i):er(G(r))};return requestAnimationFrame(i),()=>{a=!0}},[Q,Y,el,et]);let eD=(0,r.useCallback)(e=>({onPointerDown:e=>{var t;!et||(t=e.target)instanceof Element&&t.closest("[data-chat-no-drag]")||(e.currentTarget.setPointerCapture(e.pointerId),ek.current={pointerId:e.pointerId,startPointer:{x:e.clientX,y:e.clientY},startAnchor:{...et},dragging:!1})},onPointerMove:e=>{let t=ek.current;if(t.pointerId!==e.pointerId||!et)return;let r=e.clientX-t.startPointer.x,a=e.clientY-t.startPointer.y;!t.dragging&&Math.hypot(r,a)>=8&&(t.dragging=!0,document.body.style.userSelect="none"),t.dragging&&(e.preventDefault(),er(_({x:t.startAnchor.x+r,y:t.startAnchor.y+a},eM)))},onPointerUp:t=>{let r=ek.current;if(r.pointerId!==t.pointerId)return;document.body.style.userSelect="";let a=r.dragging;r.pointerId=null,r.dragging=!1;try{t.currentTarget.releasePointerCapture(t.pointerId)}catch{}!a&&e&&e()},onPointerCancel:e=>{let t=ek.current;if(t.pointerId===e.pointerId){document.body.style.userSelect="",t.pointerId=null,t.dragging=!1;try{e.currentTarget.releasePointerCapture(e.pointerId)}catch{}}}}),[et,eM]);(0,r.useEffect)(()=>{el&&function(e){try{localStorage.setItem(M,JSON.stringify(e))}catch{}}(ea)},[ea,el]),(0,r.useEffect)(()=>{el&&function(e){try{localStorage.setItem(T,JSON.stringify(e.slice(-30)))}catch{}}(eo)},[eo,el]);let eF=(0,r.useCallback)(e=>{ee(e);try{localStorage.setItem(D,String(e))}catch{}},[]),eO=(0,r.useCallback)(()=>{X(!1),eF(!0)},[eF]),eL=(0,r.useCallback)(()=>{eF(!1),X(!0)},[eF]),eB=(0,r.useCallback)(()=>{eC.current.demoRequestSubmitted?ei(e=>[...e,{id:`b-${Date.now()}`,role:"bot",text:v("demoFormAlreadySubmitted")}]):(ei(e=>e.length>0&&e[e.length-1].demoForm?e:[...e.filter(e=>!e.demoForm),{id:`b-${Date.now()}`,role:"bot",text:v("demoFormTitle"),demoForm:!0}]),eS.current=!0,eE())},[v,eE]),e$=(0,r.useCallback)(e=>{eF(!1),X(!0),requestAnimationFrame(()=>ey.current?.focus()),"demo_request"===e&&eB()},[eF,eB]);(0,r.useEffect)(()=>{let e=e=>{e$(e.detail?.intent)};return window.addEventListener(O,e),()=>window.removeEventListener(O,e)},[e$]);let eG=(0,r.useCallback)(()=>{let e={...q(),name:eC.current.name,email:eC.current.email,whatsapp:eC.current.whatsapp},t=[{id:"welcome",role:"bot",text:N}];en(e),ei(t),ec(""),em(!1),ef(!1);try{localStorage.setItem(M,JSON.stringify(e)),localStorage.setItem(T,JSON.stringify(t))}catch{}ey.current?.focus(),eS.current=!0,ej.current=!1,requestAnimationFrame(()=>eE("auto"))},[N,eE]);(0,r.useEffect)(()=>{ej.current&&(ej.current=!1,eR())},[eo,eR]),(0,r.useEffect)(()=>{Y&&(ey.current?.focus(),requestAnimationFrame(()=>ex(eI())))},[Y,eI]);let e_=(0,r.useCallback)(async(e,t)=>
9{if(!e.email){let e={id:`b-${Date.now()}`,role:"bot",text:v("leadNeedEmail")};ei(t=>[...t,e]);return}ef(!0);try{let r=await fetch(`${h.API_BASE}/api/public/leads`,{method:"POST",headers:{"Content-Type":"application/json","x-locale":(0,h.getLocale)(),...(0,g.getAgencyAuthHeaders)()},body:JSON.stringify({inquiryType:"general",name:e.name.trim(),email:e.email.trim(),phoneNumber:e.whatsapp.trim(),message:function(e,t,r=R.PRODUCT_NAME){return[`Chatbot conversation (${r})`,t.topicsDiscussed.length?`Topics: ${t.topicsDiscussed.join(", ")}`:"","---",...e.filter(e=>"welcome"!==e.id).map(e=>`${"user"===e.role?"User":"Bot"}: ${e.text}`)].filter(Boolean).join("\n").slice(0,5e3)}(t,e,w),source:"chatbot"})}),a=await r.json().catch(()=>({}));if(!r.ok)throw Error(a?.message||"Failed");let n={...e,leadSubmitted:!0};en(n),ei(e=>[...e,{id:`b-${Date.now()}`,role:"bot",text:v("leadSubmitSuccess")}])}catch{ei(e=>[...e,{id:`b-${Date.now()}`,role:"bot",text:v("leadSubmitError")}])}finally{ef(!1)}},[v,w]),eK=(0,r.useCallback)(async e=>{eg(!0);try{if(!(await fetch(`${h.API_BASE}/api/public/leads`,{method:"POST",headers:{"Content-Type":"application/json","x-locale":(0,h.getLocale)(),...(0,g.getAgencyAuthHeaders)()},body:JSON.stringify({inquiryType:"demo_request",source:"demo_request_chat",name:e.name,email:e.email,phoneNumber:e.phoneNumber,companyName:e.companyName,country:e.country,preferredAt:e.preferredAt,preferredTimezone:e.preferredTimezone})})).ok)throw Error("Failed");en(t=>({...t,leadSubmitted:!0,demoRequestSubmitted:!0,name:e.name,email:e.email,whatsapp:e.phoneNumber})),ei(e=>[...e.map(e=>e.demoForm?{...e,demoForm:!1}:e),{id:`b-${Date.now()}`,role:"bot",text:v("demoFormSuccess")}])}catch{ei(e=>[...e,{id:`b-${Date.now()}`,role:"bot",text:v("demoFormError")}])}finally{eg(!1)}},[v]),eH=(0,r.useCallback)(e=>{"submit_lead"===e?e_(eC.current,eN.current):"dismiss_lead"===e&&en(e=>({...e,leadPromptDismissed:!0}))},[e_]),eU=(0,r.useCallback)(async(e,t)=>{let r,a;if(!e.trim()||eu)return;let n={id:`u-${Date.now()}`,role:"user",text:e.trim()},o=[...eN.current,n];ei(o),ec(""),em(!0),eS.current=!0,eE();let i=null,l=[],s=eC.current,d=performance.now();try{let e=(0,h.getAuthToken)(),n={"Content-Type":"application/json","x-locale":(0,h.getLocale)(),...(0,g.getAgencyAuthHeaders)()};e&&(n.Authorization=`Bearer ${e}`);let c=await fetch(`${h.API_BASE}/api/public/chatbot/message`,{method:"POST",headers:n,body:JSON.stringify({messages:o.map(e=>({role:e.role,text:e.text})),locale:x,session:eC.current,quickReplyId:t||void 0})});if(c.ok){let e=await c.json(),t=e.data?.text||null;i=t?C(H(t)):null,e.data?.session&&(s={...eC.current,...e.data.session},en(s)),Array.isArray(e.data?.buttons)&&(l=e.data.buttons),e.data?.timings&&(r={...e.data.timings,clientMs:Math.round(performance.now()-d)}),a=e.data?.topic}else{let e=await c.json().catch(()=>null);e?.data?.text?(i=C(H(e.data.text)),e.data?.session&&(s={...eC.current,...e.data.session},en(s)),Array.isArray(e.data?.buttons)&&(l=e.data.buttons),e.data?.timings&&(r={...e.data.timings,clientMs:Math.round(performance.now()-d)}),a=e.data?.topic):429===c.status&&(i=e?.message||("id"===x?"Anda mengirim terlalu banyak pesan. Mohon tunggu sebentar.":"You're sending too many messages. Please wait a moment."))}}catch{}i||(i=function(e,t,r=R.PRODUCT_NAME){let a=e.toLowerCase();for(let e of U)if(e.keywords.some(e=>a.includes(e))){let a="id"===t?e.id:e.en;if(r===R.PRODUCT_NAME)return a;return a.replace(/Review Revolution/g,r).replace(/reviewrevolution\.ai/gi,r).replace(A,"")}return null}(e,x,w)||C(`${v("offlineFallback")} ${v("fallback")}`)),eS.current&&(ej.current=!0),ei(e=>[...e,{id:`b-${Date.now()}`,role:"bot",text:i,buttons:l,timings:r,topic:a}]),em(!1)},[x,eu,v,eE,w,y]),eq=(0,r.useCallback)((e,t)=>{eU(t,e)},[eU]);if(!("/"===e||Z.some(t=>e.startsWith(t))))return null;let ez=[...eo].reverse().find(e=>"bot"===e.role),eV=!!ez?.buttons?.some(e=>"topic"===e.type||"link"===e.type),eW=!eu&&!ep&&!eV&&ez&&eo[eo.length-1]?.role==="bot"&&!eo[eo.length-1]?.demoForm;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.AnimatePresence,{mode:"wait",children:Q&&!Y&&eT&&(0,t.jsx)(i.motion.div,{initial:{opacity:0,scale:.9}
9,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{type:"spring",stiffness:400,damping:30},style:{right:0,top:eT.top},className:"fixed z-50 touch-none select-none overflow-visible",...eD(eL),children:(0,t.jsxs)("div",{role:"button",tabIndex:0,"aria-label":v("expandLabel"),title:v("expandLabel"),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),eL())},className:"flex flex-row items-center gap-1.5 rounded-l-full border border-r-0 border-primary/30 bg-background/95 backdrop-blur-sm py-2 pl-2.5 pr-2 shadow-md hover:pl-3.5 hover:bg-primary/5 transition-all duration-200 group cursor-grab active:cursor-grabbing overflow-visible",children:[(0,t.jsx)("div",{className:"w-9 h-9 rounded-full bg-gradient-to-br from-primary to-primary/90 flex items-center justify-center shrink-0 shadow-sm overflow-hidden pointer-events-none",children:(0,t.jsx)(I.AgencyMascotImage,{pose:"welcome-revo",rrSrc:"/main/welcome-revo.png",alt:"",className:"w-8 h-8 rounded-full object-cover"})}),(0,t.jsx)("span",{className:"w-0 overflow-hidden whitespace-nowrap text-xs font-semibold text-primary opacity-0 group-hover:w-[88px] group-hover:opacity-100 transition-all duration-200 pointer-events-none",children:v("dockLabel")}),(0,t.jsx)(c.ChevronRight,{className:"w-3.5 h-3.5 text-primary shrink-0 rotate-180 opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none"})]})},"dock-tab")}),(0,t.jsx)(l.AnimatePresence,{mode:"wait",children:!Y&&!Q&&eT&&(0,t.jsxs)(i.motion.div,{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},exit:{scale:0,opacity:0},transition:{type:"spring",stiffness:400,damping:25},style:{left:eT.left,top:eT.top},className:"fixed z-50 group chat-widget-fab touch-none select-none",...eD(()=>X(!0)),children:[(0,t.jsx)("div",{role:"button",tabIndex:0,"aria-label":v("expandLabel"),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),X(!0))},className:"relative block cursor-grab active:cursor-grabbing",children:(0,t.jsxs)("div",{className:"relative pointer-events-none",children:[(0,t.jsx)("div",{className:"absolute inset-0 rounded-full bg-primary/30 blur-md scale-110 group-hover:scale-125 group-hover:bg-primary/40 transition-all duration-300"}),(0,t.jsx)("div",{className:"relative w-14 h-14 md:w-16 md:h-16 rounded-full bg-gradient-to-br from-primary to-primary/90 shadow-lg shadow-[hsl(var(--primary)/0.25)] flex items-center justify-center hover:shadow-xl hover:shadow-[hsl(var(--primary)/0.3)] hover:scale-105 transition-all duration-200 active:scale-95",children:(0,t.jsx)(I.AgencyMascotImage,{pose:"welcome-revo",rrSrc:"/main/welcome-revo.png",alt:j,className:"w-12 h-12 md:w-14 md:h-14 rounded-full object-cover"})}),(0,t.jsx)("span",{className:"absolute -top-0.5 -right-0.5 w-3 h-3 md:w-3.5 md:h-3.5 rounded-full bg-emerald-500 border-2 border-white dark:border-gray-900 animate-pulse"})]})}),(0,t.jsx)("button",{type:"button","data-chat-no-drag":!0,onClick:e=>{e.stopPropagation(),eO()},"aria-label":v("collapseLabel"),title:v("collapseLabel"),className:"absolute -top-1 -left-1 w-6 h-6 rounded-full border border-border bg-background shadow-sm flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-muted transition-colors cursor-pointer",children:(0,t.jsx)(u.Minus,{className:"w-3.5 h-3.5"})})]},"fab")}),(0,t.jsx)(l.AnimatePresence,{children:Y&&eT&&(0,t.jsxs)(i.motion.div,{initial:{opacity:0,scale:.92},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.92},transition:{type:"spring",stiffness:350,damping:30},style:{left:eT.left,top:eT.top,height:"min(85vh, 560px)",maxHeight:"calc(100dvh - 1rem)"},className:"fixed z-50 w-[calc(100vw-1rem)] sm:w-[380px] flex flex-col overflow-hidden rounded-2xl border border-border bg-background shadow-2xl shadow-black/10 dark:shadow-black/30",children:[(0,t.jsxs)("div",{className:"relative overflow-hidden px-4 py-3.5 bg-gradient-to-r from-primary via-primary to-primary/80 cursor-grab active:cursor-grabbing touch-none select-none",...eD(),children:[(0,t.jsxs)("div",{className:"absolute inset-0 opacity-10",children:[(0,t.jsx)("div",{className:"absolute -right-4 -top-4 w-24 h-24 rounded-full border-[3px] border-primary-foreground
9/40"}),(0,t.jsx)("div",{className:"absolute right-8 -bottom-6 w-16 h-16 rounded-full border-[2px] border-primary-foreground/30"})]}),(0,t.jsxs)("div",{className:"relative flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"w-11 h-11 rounded-full bg-primary-foreground flex items-center justify-center ring-2 ring-primary-foreground/40 overflow-hidden",children:(0,t.jsx)(I.AgencyMascotImage,{pose:"welcome-revo",rrSrc:"/main/welcome-revo.png",alt:j,className:"w-10 h-10 rounded-full object-cover"})}),(0,t.jsx)("span",{className:"absolute -bottom-0.5 -right-0.5 w-3 h-3 rounded-full bg-emerald-400 border-2 border-primary-foreground"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-sm font-bold text-primary-foreground tracking-tight",children:S}),(0,t.jsx)("p",{className:"text-[11px] text-primary-foreground/70 font-medium",children:v("alwaysOnline")})]})]}),(0,t.jsxs)("div",{className:"relative flex items-center gap-1","data-chat-no-drag":!0,children:[(0,t.jsx)("button",{type:"button",onClick:eO,"aria-label":v("collapseLabel"),title:v("collapseLabel"),className:"w-8 h-8 rounded-full bg-primary-foreground/15 hover:bg-primary-foreground/25 flex items-center justify-center transition-colors",children:(0,t.jsx)(u.Minus,{className:"w-4 h-4 text-primary-foreground"})}),(0,t.jsx)("button",{type:"button",onClick:eG,"aria-label":v("newSessionLabel"),title:v("newSessionLabel"),className:"w-8 h-8 rounded-full bg-primary-foreground/15 hover:bg-primary-foreground/25 flex items-center justify-center transition-colors",children:(0,t.jsx)(m.Plus,{className:"w-4 h-4 text-primary-foreground"})}),(0,t.jsx)("button",{type:"button",onClick:()=>X(!1),"aria-label":v("minimizeLabel"),title:v("minimizeLabel"),className:"w-8 h-8 rounded-full bg-primary-foreground/15 hover:bg-primary-foreground/25 flex items-center justify-center transition-colors",children:(0,t.jsx)(s.X,{className:"w-4 h-4 text-primary-foreground"})})]})]})]}),(0,t.jsxs)("div",{className:"relative flex-1 min-h-0",children:[(0,t.jsxs)("div",{ref:ev,onScroll:eA,className:"h-full overflow-y-auto p-4 space-y-3 bg-gradient-to-b from-background to-muted/20",children:[eo.map((e,r)=>{let a="bot"===e.role&&!eo.slice(r+1).some(e=>"bot"===e.role);return(0,t.jsxs)("div",{ref:a?ew:void 0,className:"space-y-2",children:["bot"===e.role&&e.demoForm?(0,t.jsx)("div",{className:"pl-9 pr-2",children:(0,t.jsx)(P,{onSubmit:eK,submitting:eh})}):(0,t.jsx)(W,{message:e,isLatest:r===eo.length-1,responseTimeLabel:function(e){if("bot"!==e.role||"welcome"===e.id)return null;let t=e.timings?.totalMs??e.timings?.clientMs;return!t||t<=0?null:v("responseTime",{seconds:(t/1e3).toFixed(1)})}(e)}),"bot"===e.role&&e.buttons&&e.buttons.length>0&&(0,t.jsx)(V,{buttons:e.buttons,onAction:eH,onTopic:eq,disabled:ep,sectionLabel:v("suggestedNext")})]},e.id)}),eu&&(0,t.jsx)(z,{}),eW&&(0,t.jsx)(J,{options:k,onSelect:eq})]}),!eb&&(0,t.jsx)("button",{type:"button",onClick:()=>eE(),"aria-label":v("scrollToBottom"),title:v("scrollToBottom"),className:"absolute bottom-3 right-3 z-10 w-9 h-9 rounded-full border border-border bg-background/95 shadow-md backdrop-blur-sm flex items-center justify-center text-primary hover:bg-primary/5 transition-all active:scale-95",children:(0,t.jsx)(p.ChevronDown,{className:"w-4 h-4"})})]}),(0,t.jsxs)("div",{className:"border-t border-border bg-background/80 backdrop-blur-sm p-3",children:[(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),eU(ed)},className:"flex items-center gap-2",children:[(0,t.jsx)("input",{ref:ey,type:"text",value:ed,onChange:e=>ec(e.target.value),placeholder:v("placeholder"),className:"flex-1 bg-muted/50 border-0 rounded-xl px-4 py-2.5 text-sm text-foreground placeholder:text-muted-foreground/60 focus:outline-none focus:ring-2 focus:ring-primary/30 focus:bg-muted/70 transition-all"}),(0,t.jsx)("button",{type:"submit",disabled:!ed.trim()||eu,className:(0,f.cn)("w-9 h-9 rounded-xl flex items-center justify-center transition-all duration-200 shrink-0",ed.trim()?"bg-gradient-to-br from-primary to-primary/90 text-primary-foreground shadow-sm hover:shadow-md hover:scale-105 active:scale-95":"bg-muted text-muted-foreground
9/40 cursor-not-allowed"),children:(0,t.jsx)(d.Send,{className:"w-4 h-4"})})]}),(0,t.jsx)("div",{className:"text-center mt-2",children:(0,t.jsx)(b.PoweredByReviewRevolution,{className:"text-[10px] text-muted-foreground/50"})})]})]})})]})},"dispatchOpenChatWidget",0,function(e){window.dispatchEvent(new CustomEvent(O,{detail:{intent:e}}))}],254030)},792071,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["PoweredByReviewRevolution",0,function({className:e}){return(0,t.jsx)("a",{href:"https://reviewrevolution.ai",target:"_blank",rel:"noopener noreferrer",className:(0,r.cn)("text-xs text-muted-foreground/80 hover:text-muted-foreground transition-colors",e),children:"Powered by Review Revolution"})}])},608006,344523,271526,e=>{"use strict";var t=e.i(843476),r=e.i(271645);let a=(0,e.i(475254).default)("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);e.s(["ChevronsUpDown",0,a],344523);var n=e.i(948148),o=e.i(519455),i=e.i(317056),l=e.i(337822),s=e.i(975157);let d={"+1":"US","+7":"RU","+44":"GB","+39":"IT","+262":"RE","+590":"GP","+599":"CW"},c=[["AF","+93","Afghanistan"],["AL","+355","Albania"],["DZ","+213","Algeria"],["AS","+1684","American Samoa"],["AD","+376","Andorra"],["AO","+244","Angola"],["AI","+1264","Anguilla"],["AG","+1268","Antigua and Barbuda"],["AR","+54","Argentina"],["AM","+374","Armenia"],["AW","+297","Aruba"],["AU","+61","Australia"],["AT","+43","Austria"],["AZ","+994","Azerbaijan"],["BS","+1242","Bahamas"],["BH","+973","Bahrain"],["BD","+880","Bangladesh"],["BB","+1246","Barbados"],["BY","+375","Belarus"],["BE","+32","Belgium"],["BZ","+501","Belize"],["BJ","+229","Benin"],["BM","+1441","Bermuda"],["BT","+975","Bhutan"],["BO","+591","Bolivia"],["BA","+387","Bosnia and Herzegovina"],["BW","+267","Botswana"],["BR","+55","Brazil"],["VG","+1284","British Virgin Islands"],["BN","+673","Brunei"],["BG","+359","Bulgaria"],["BF","+226","Burkina Faso"],["BI","+257","Burundi"],["KH","+855","Cambodia"],["CM","+237","Cameroon"],["CA","+1","Canada"],["CV","+238","Cape Verde"],["KY","+1345","Cayman Islands"],["CF","+236","Central African Republic"],["TD","+235","Chad"],["CL","+56","Chile"],["CN","+86","China"],["CO","+57","Colombia"],["KM","+269","Comoros"],["CG","+242","Congo"],["CD","+243","Congo (DRC)"],["CK","+682","Cook Islands"],["CR","+506","Costa Rica"],["CI","+225","Cote d'Ivoire"],["HR","+385","Croatia"],["CU","+53","Cuba"],["CW","+599","Curacao"],["CY","+357","Cyprus"],["CZ","+420","Czechia"],["DK","+45","Denmark"],["DJ","+253","Djibouti"],["DM","+1767","Dominica"],["DO","+1809","Dominican Republic"],["EC","+593","Ecuador"],["EG","+20","Egypt"],["SV","+503","El Salvador"],["GQ","+240","Equatorial Guinea"],["ER","+291","Eritrea"],["EE","+372","Estonia"],["SZ","+268","Eswatini"],["ET","+251","Ethiopia"],["FO","+298","Faroe Islands"],["FJ","+679","Fiji"],["FI","+358","Finland"],["FR","+33","France"],["GF","+594","French Guiana"],["PF","+689","French Polynesia"],["GA","+241","Gabon"],["GM","+220","Gambia"],["GE","+995","Georgia"],["DE","+49","Germany"],["GH","+233","Ghana"],["GI","+350","Gibraltar"],["GR","+30","Greece"],["GL","+299","Greenland"],["GD","+1473","Grenada"],["GP","+590","Guadeloupe"],["GU","+1671","Guam"],["GT","+502","Guatemala"],["GG","+44","Guernsey"],["GN","+224","Guinea"],["GW","+245","Guinea-Bissau"],["GY","+592","Guyana"],["HT","+509","Haiti"],["HN","+504","Honduras"],["HK","+852","Hong Kong"],["HU","+36","Hungary"],["IS","+354","Iceland"],["IN","+91","India"],["ID","+62","Indonesia"],["IR","+98","Iran"],["IQ","+964","Iraq"],["IE","+353","Ireland"],["IM","+44","Isle of Man"],["IL","+972","Israel"],["IT","+39","Italy"],["JM","+1876","Jamaica"],["JP","+81","Japan"],["JE","+44","Jersey"],["JO","+962","Jordan"],["KZ","+7","Kazakhstan"],["KE","+254","Kenya"],["KI","+686","Kiribati"],["XK","+383","Kosovo"],["KW","+965","Kuwait"],["KG","+996","Kyrgyzstan"],["LA","+856","Laos"],["LV","+371","Latvia"],["LB","+961","Lebanon"],["LS","+266","Lesotho"],["LR","+231","Liberia"],["LY","+218","Libya"],["LI","+423","Liechtenstein"],["LT","+370","Lithuania"],["LU","+352","Luxembourg"],["MO","+853","Macau"],["MG","+261","Madagascar"],["MW","+265","Malawi"],["MY","+60","Malaysia"],["MV","+960","Maldives"],["ML","+223","Mali"],["MT","+356","Malta"],["MH","+692","Marshall Islands"],["MQ","+596","Martinique"],["MR","+222","Mauritania"],["MU","+230","Mauritius"],["YT","+262","Mayotte"],["MX","+52","Mexico"],["FM","+691","Micronesia"],["MD","+373","Moldova"],["MC","+377","Monaco"],["MN","+976","Mongolia"],["ME","+382","Montenegro"],["MS","+1664","Montserrat"],["MA","+212","Morocco"],["MZ","+258","Mozambique"],["MM","+95","Myanmar"],["NA","+264","Namibia"],["NR","+674","Nauru"],["NP","+977","Nepal"],["NL","+31","Netherlands"],["NC","+687","New Caledonia"],["NZ","+64","New Zealand"],["NI","+505","Nicaragua"],["NE","+227","Niger"],["NG","+234","Nigeria"],["NU","+683","Niue"],["KP","+850","North Korea"],["MK","+389","North Macedonia"],["MP","+1670","Northern Mariana Islands"],["NO","+47","Norway"],["OM","+968","Oman"],["PK","+92","Pakistan"],["PW","+680","Palau"],["PS","+970","Palestine"],["PA","+507","Panama"],["PG","+675","Papua New Guinea"],["PY","+595","Paraguay"],["PE","+51","Peru"],["PH","+63","Philippines"],["PL","+48","Poland"],["PT","+351","Portugal"],["PR","+1787","Puerto Rico"],["QA","+974","Qatar"],["RE","+262","Reunion"],["RO","+40","Romania"],["RU","+7","Russia"],["RW","+250","Rwanda"],["KN","+1869","Saint Kitts and Nevis"],["LC","+1758","Saint Lucia"],["MF","+590","Saint Martin"],["PM","+508","Saint Pierre and Miquelon"],["VC","+1784","Saint Vincent and the Grenadines"],["WS","+685","Samoa"],["SM","+378","San Marino"],["ST","+239","Sao Tome and Principe"],["SA","+966","Saudi Arabia"],["SN","+221","Senegal"],["RS","+381","Serbia"],["SC","+248","Seychelles"],["SL","+232","Sierra Leone"],["SG","+65","Singapore"],["SX","+1721","Sint Maarten"],["SK","+421","Slovakia"],["SI","+386","Slovenia"],["SB","+677","Solomon Islands"],["SO","+252","Somalia"],["ZA","+27","South Africa"],["KR","+82","South Korea"],["SS","+211","South Sudan"],["ES","+34","Spain"],["LK","+94","Sri Lanka"],["SD","+249","Sudan"],["SR","+597","Suriname"],["SE","+46","Sweden"],["CH","+41","Switzerland"],["SY","+963","Syria"],["TW","+886","Taiwan"],["TJ","+992","Tajikistan"],["TZ","+255","Tanzania"],["TH","+66","Thailand"],["TL","+670","Timor-Leste"],["TG","+228","Togo"],["TK","+690","Tokelau"],["TO","+676","Tonga"],["TT","+1868","Trinidad and Tobago"],["TN","+216","Tunisia"],["TR","+90","Turkey"],["TM","+993","Turkmenistan"],["TC","+1649","Turks and Caicos Islands"],["TV","+688","Tuvalu"],["UG","+256","Uganda"],["UA","+380","Ukraine"],["AE","+971","United Arab Emirates"],["GB","+44","United Kingdom"],["US","+1","United States"],["UY","+598","Uruguay"],["UZ","+998","Uzbekistan"],["VU","+678","Vanuatu"],["VA","+39","Vatican City"],["VE","+58","Venezuela"],["VN","+84","Vietnam"],["VI","+1340","U.S. Virgin Islands"],["WF","+681","Wallis and Futuna"],["YE","+967","Yemen"],["ZM","+260","Zambia"],["ZW","+263","Zimbabwe"]].map(([e,t,r])=>({iso:e,dial:t,label:r,flag:e.toUpperCase().replace(/./g,e=>String.fromCodePoint(127397+e.charCodeAt(0)))})),u=new Map(c.map(e=>[e.iso,e]));function m(e){return u.get(e)}e.s(["DEFAULT_PHONE_ISO",0,"ID","PHONE_PREFIX_OPTIONS",0,c,"getPhonePrefixByIso",0,m,"splitPhoneNumber",0,function(e){if(!e)return{iso:"ID",prefix:"+62",number:""};let t=e.replace(/\s+/g,""),r=c.filter(e=>t.startsWith(e.dial)).sort((e,t)=>
9t.dial.length-e.dial.length);if(!r.length)return{iso:"ID",prefix:"+62",number:t};let a=r[0].dial,n=r.filter(e=>e.dial===a),o=d[a],i=o&&n.find(e=>e.iso===o)||n[0];return{iso:i.iso,prefix:i.dial,number:t.slice(i.dial.length)}}],271526),e.s(["PhonePrefixSelect",0,function({iso:e,onIsoChange:d,className:u}){let p=(0,n.useTranslations)("common"),[f,h]=(0,r.useState)(!1),g=m(e)||m("ID"),b=(0,r.useMemo)(()=>{let e=c.find(e=>"ID"===e.iso),t=c.filter(e=>"ID"!==e.iso).sort((e,t)=>e.label.localeCompare(t.label));return e?[e,...t]:t},[]);return(0,t.jsxs)(l.Popover,{open:f,onOpenChange:h,modal:!0,children:[(0,t.jsx)(l.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)(o.Button,{type:"button",variant:"outline",role:"combobox","aria-expanded":f,className:(0,s.cn)("h-10 w-auto shrink-0 gap-1 rounded-r-none border-r-0 bg-muted px-2 font-normal",u),children:[(0,t.jsx)("span",{className:"whitespace-nowrap",children:g?`${g.flag} ${g.dial}`:p("search")}),(0,t.jsx)(a,{className:"h-3.5 w-3.5 shrink-0 opacity-50"})]})}),(0,t.jsx)(l.PopoverContent,{align:"start",sideOffset:4,className:"z-[100] w-[260px] p-0",onOpenAutoFocus:e=>e.preventDefault(),onWheel:e=>e.stopPropagation(),onTouchMove:e=>e.stopPropagation(),children:(0,t.jsxs)(i.Command,{className:"overflow-hidden",children:[(0,t.jsx)(i.CommandInput,{placeholder:p("search")}),(0,t.jsxs)(i.CommandList,{className:"max-h-48 overflow-y-auto overscroll-contain",children:[(0,t.jsx)(i.CommandEmpty,{children:p("noResults")}),(0,t.jsx)(i.CommandGroup,{children:b.map(e=>(0,t.jsxs)(i.CommandItem,{value:`${e.label} ${e.dial} ${e.iso}`,onSelect:()=>{d(e.iso),h(!1)},children:[(0,t.jsx)("span",{className:"mr-2",children:e.flag}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.label}),(0,t.jsx)("span",{className:"ml-2 shrink-0 text-muted-foreground",children:e.dial})]},e.iso))})]})]})})]})}],608006)},317056,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=/[\\\/_+.#"@\[\(\{&]/,n=/[\\\/_+.#"@\[\(\{&]/g,o=/[\s-]/,i=/[\s-]/g;function l(e){return e.toLowerCase().replace(i," ")}var s=e.i(326999),d=e.i(248425),c=e.i(610772),u=e.i(820783),m='[cmdk-group=""]',p='[cmdk-group-items=""]',f='[cmdk-item=""]',h=`${f}:not([aria-disabled="true"])`,g="cmdk-item-select",b="data-value",x=(e,t,r)=>{var s;return s=e,function e(t,r,l,s,d,c,u){if(c===r.length)return d===t.length?1:.99;var m=`${d},${c}`;if(void 0!==u[m])return u[m];for(var p,f,h,g,b=s.charAt(c),x=l.indexOf(b,d),v=0;x>=0;)(p=e(t,r,l,s,x+1,c+1,u))>v&&(x===d?p*=1:a.test(t.charAt(x-1))?(p*=.8,(h=t.slice(d,x-1).match(n))&&d>0&&(p*=Math.pow(.999,h.length))):o.test(t.charAt(x-1))?(p*=.9,(g=t.slice(d,x-1).match(i))&&d>0&&(p*=Math.pow(.999,g.length))):(p*=.17,d>0&&(p*=Math.pow(.999,x-d))),t.charAt(x)!==r.charAt(c)&&(p*=.9999)),(p<.1&&l.charAt(x-1)===s.charAt(c+1)||s.charAt(c+1)===s.charAt(c)&&l.charAt(x-1)!==s.charAt(c))&&.1*(f=e(t,r,l,s,x+1,c+2,u))>p&&(p=.1*f),p>v&&(v=p),x=l.indexOf(b,x+1);return u[m]=v,v}(s=r&&r.length>0?`${s+" "+r.join(" ")}`:s,t,l(s),l(t),0,0,{})},v=r.createContext(void 0),y=r.createContext(void 0),w=r.createContext(void 0),C=r.forwardRef((e,t)=>{let a=M(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=M(()=>new Set),o=M(()=>new Map),i=M(()=>new Map),l=M(()=>new Set),s=R(e),{label:u,children:w,value:C,onValueChange:N,filter:S,shouldFilter:j,loop:k,disablePointerSelection:P=!1,vimBindings:I=!0,...E}=e,T=(0,c.useId)(),D=(0,c.useId)(),B=(0,c.useId)(),$=r.useRef(null),G=F();A(()=>{if(void 0!==C){let e=C.trim();a.current.value=e,_.emit()}},[C]),A(()=>{G(6,V)},[]);let _=r.useMemo(()=>({subscribe:e=>(l.current.add(e),()=>l.current.delete(e)),snapshot:()=>a.current,setState:(e,t,r)=>{var n,o,i,l;if(!Object.is(a.current[e],t)){if(a.current[e]=t,"search"===e)z(),U(),G(1,q);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(B);e?e.focus():null==(n=document.getElementById(T))||n.focus()}if(G(7,()=>{var e;a.current.selectedItemId=null==(e=W())?void 0:e.id,_.emit()}),r||G(5,V),(null==(o=s.current)?void 0:o.value)!==void 0){null==(l=(i=s.current).onValueChange)||l.call(i,null!=t?t:"");return}}_.emit()}},emit:()=>
9{l.current.forEach(e=>e())}}),[]),K=r.useMemo(()=>({value:(e,t,r)=>{var n;t!==(null==(n=i.current.get(e))?void 0:n.value)&&(i.current.set(e,{value:t,keywords:r}),a.current.filtered.items.set(e,H(t,r)),G(2,()=>{U(),_.emit()}))},item:(e,t)=>(n.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),G(3,()=>{z(),U(),a.current.value||q(),_.emit()}),()=>{i.current.delete(e),n.current.delete(e),a.current.filtered.items.delete(e);let t=W();G(4,()=>{z(),(null==t?void 0:t.getAttribute("id"))===e&&q(),_.emit()})}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{i.current.delete(e),o.current.delete(e)}),filter:()=>s.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:T,inputId:B,labelId:D,listInnerRef:$}),[]);function H(e,t){var r,n;let o=null!=(n=null==(r=s.current)?void 0:r.filter)?n:x;return e?o(e,a.current.search,t):0}function U(){if(!a.current.search||!1===s.current.shouldFilter)return;let e=a.current.filtered.items,t=[];a.current.filtered.groups.forEach(r=>{let a=o.current.get(r),n=0;a.forEach(t=>{n=Math.max(e.get(t),n)}),t.push([r,n])});let r=$.current;J().sort((t,r)=>{var a,n;let o=t.getAttribute("id"),i=r.getAttribute("id");return(null!=(a=e.get(i))?a:0)-(null!=(n=e.get(o))?n:0)}).forEach(e=>{let t=e.closest(p);t?t.appendChild(e.parentElement===t?e:e.closest(`${p} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${p} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=$.current)?void 0:t.querySelector(`${m}[${b}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function q(){let e=J().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(b);_.setState("value",t||void 0)}function z(){var e,t,r,l;if(!a.current.search||!1===s.current.shouldFilter){a.current.filtered.count=n.current.size;return}a.current.filtered.groups=new Set;let d=0;for(let o of n.current){let n=H(null!=(t=null==(e=i.current.get(o))?void 0:e.value)?t:"",null!=(l=null==(r=i.current.get(o))?void 0:r.keywords)?l:[]);a.current.filtered.items.set(o,n),n>0&&d++}for(let[e,t]of o.current)for(let r of t)if(a.current.filtered.items.get(r)>0){a.current.filtered.groups.add(e);break}a.current.filtered.count=d}function V(){var e,t,r;let a=W();a&&((null==(e=a.parentElement)?void 0:e.firstChild)===a&&(null==(r=null==(t=a.closest(m))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function W(){var e;return null==(e=$.current)?void 0:e.querySelector(`${f}[aria-selected="true"]`)}function J(){var e;return Array.from((null==(e=$.current)?void 0:e.querySelectorAll(h))||[])}function Z(e){let t=J()[e];t&&_.setState("value",t.getAttribute(b))}function Y(e){var t;let r=W(),a=J(),n=a.findIndex(e=>e===r),o=a[n+e];null!=(t=s.current)&&t.loop&&(o=n+e<0?a[a.length-1]:n+e===a.length?a[0]:a[n+e]),o&&_.setState("value",o.getAttribute(b))}function X(e){let t=W(),r=null==t?void 0:t.closest(m),a;for(;r&&!a;)a=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,m):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,m))?void 0:r.querySelector(h);a?_.setState("value",a.getAttribute(b)):Y(e)}let Q=()=>Z(J().length-1),ee=e=>{e.preventDefault(),e.metaKey?Q():e.altKey?X(1):Y(1)},et=e=>{e.preventDefault(),e.metaKey?Z(0):e.altKey?X(-1):Y(-1)};return r.createElement(d.Primitive.div,{ref:t,tabIndex:-1,...E,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=E.onKeyDown)||t.call(E,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":I&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":I&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),Z(0);break;case"End":e.preventDefault(),Q();break;case"Enter":{e.preventDefault();let t=W();if(t){let e=new Event(g);t.dispatchEvent(e)}}}}},r.createElement("label",{"cmdk-label":"",htmlFor:K.inputId,id:K.labelId,style:L},u),O(e,e=>r.createElement(y.Provider,{value:_},r.createElement(v.Provider,{value:K},e))))}),N=r.forwardRef((e,t)=>
9{var a,n;let o=(0,c.useId)(),i=r.useRef(null),l=r.useContext(w),s=r.useContext(v),m=R(e),p=null!=(n=null==(a=m.current)?void 0:a.forceMount)?n:null==l?void 0:l.forceMount;A(()=>{if(!p)return s.item(o,null==l?void 0:l.id)},[p]);let f=D(o,i,[e.value,e.children,i],e.keywords),h=r.useContext(y),b=T(e=>e.value&&e.value===f.current),x=T(e=>!!p||!1===s.filter()||!e.search||e.filtered.items.get(o)>0);function C(){var e,t;N(),null==(t=(e=m.current).onSelect)||t.call(e,f.current)}function N(){h.setState("value",f.current,!0)}if(r.useEffect(()=>{let t=i.current;if(!(!t||e.disabled))return t.addEventListener(g,C),()=>t.removeEventListener(g,C)},[x,e.onSelect,e.disabled]),!x)return null;let{disabled:S,value:j,onSelect:k,forceMount:P,keywords:I,...E}=e;return r.createElement(d.Primitive.div,{ref:(0,u.composeRefs)(i,t),...E,id:o,"cmdk-item":"",role:"option","aria-disabled":!!S,"aria-selected":!!b,"data-disabled":!!S,"data-selected":!!b,onPointerMove:S||s.getDisablePointerSelection()?void 0:N,onClick:S?void 0:C},e.children)}),S=r.forwardRef((e,t)=>{let{heading:a,children:n,forceMount:o,...i}
9=e,l=(0,c.useId)(),s=r.useRef(null),m=r.useRef(null),p=(0,c.useId)(),f=r.useContext(v),h=T(e=>!!o||!1===f.filter()||!e.search||e.filtered.groups.has(l));A(()=>f.group(l),[]),D(l,s,[e.value,e.heading,m]);let g=r.useMemo(()=>({id:l,forceMount:o}),[o]);return r.createElement(d.Primitive.div,{ref:(0,u.composeRefs)(s,t),...i,"cmdk-group":"",role:"presentation",hidden:!h||void 0},a&&r.createElement("div",{ref:m,"cmdk-group-heading":"","aria-hidden":!0,id:p},a),O(e,e=>r.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":a?p:void 0},r.createElement(w.Provider,{value:g},e))))}),j=r.forwardRef((e,t)=>{let{alwaysRender:a,...n}=e,o=r.useRef(null),i=T(e=>!e.search);return a||i?r.createElement(d.Primitive.div,{ref:(0,u.composeRefs)(o,t),...n,"cmdk-separator":"",role:"separator"}):null}),k=r.forwardRef((e,t)=>{let{onValueChange:a,...n}=e,o=null!=e.value,i=r.useContext(y),l=T(e=>e.search),s=T(e=>e.selectedItemId),c=r.useContext(v);return r.useEffect(()=>{null!=e.value&&i.setState("search",e.value)},[e.value]),r.createElement(d.Primitive.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":s,id:c.inputId,type:"text",value:o?e.value:l,onChange:e=>{o||i.setState("search",e.target.value),null==a||a(e.target.value)}})}),P=r.forwardRef((e,t)=>{let{children:a,label:n="Suggestions",...o}=e,i=r.useRef(null),l=r.useRef(null),s=T(e=>e.selectedItemId),c=r.useContext(v);return r.useEffect(()=>{if(l.current&&i.current){let e=l.current,t=i.current,r,a=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return a.observe(e),()=>{cancelAnimationFrame(r),a.unobserve(e)}}},[]),r.createElement(d.Primitive.div,{ref:(0,u.composeRefs)(i,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":n,id:c.listId},O(e,e=>r.createElement("div",{ref:(0,u.composeRefs)(l,c.listInnerRef),"cmdk-list-sizer":""},e)))}),I=r.forwardRef((e,t)=>{let{open:a,onOpenChange:n,overlayClassName:o,contentClassName:i,container:l,...d}=e;return r.createElement(s.Root,{open:a,onOpenChange:n},r.createElement(s.Portal,{container:l},r.createElement(s.Overlay,{"cmdk-overlay":"",className:o}),r.createElement(s.Content,{"aria-label":e.label,"cmdk-dialog":"",className:i},r.createElement(C,{ref:t,...d}))))}),E=Object.assign(C,{List:P,Item:N,Input:k,Group:S,Separator:j,Dialog:I,Empty:r.forwardRef((e,t)=>T(e=>0===e.filtered.count)?r.createElement(d.Primitive.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:r.forwardRef((e,t)=>{let{progress:a,children:n,label:o="Loading...",...i}=e;return r.createElement(d.Primitive.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":a,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},O(e,e=>r.createElement("div",{"aria-hidden":!0},e)))})});function R(e){let t=r.useRef(e);return A(()=>{t.current=e}),t}var A="u"<typeof window?r.useEffect:r.useLayoutEffect;function M(e){let t=r.useRef();return void 0===t.current&&(t.current=e()),t}function T(e){let t=r.useContext(y),a=()=>e(t.snapshot());return r.useSyncExternalStore(t.subscribe,a,a)}function D(e,t,a,n=[]){let o=r.useRef(),i=r.useContext(v);return A(()=>{var r;let l=(()=>{var e;for(let t of a){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),s=n.map(e=>e.trim());i.value(e,l,s),null==(r=t.current)||r.setAttribute(b,l),o.current=l}),o}var F=()=>{let[e,t]=r.useState(),a=M(()=>new Map);return A(()=>{a.current.forEach(e=>e()),a.current=new Map},[e]),(e,r)=>{a.current.set(e,r),t({})}};function O({asChild:e,children:t},a){let n;return e&&r.isValidElement(t)?r.cloneElement("function"==typeof(n=t.type)?n(t.props):"render"in n?n.render(t.props):t,{ref:t.ref},a(t.props.children)):a(t)}var L={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},B=e.i(555436),$=e.i(975157);e.i(776639);let G=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(E,{ref:a,className:(0,$.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...r}));G.displayName=E.displayName;let _=r.forwardRef(({className:e,...r},a)=>(0,t.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,t.jsx)(B.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,t.jsx)(E.Input,{ref:a,className:(0,$.cn)("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...r})]}));_.displayName=E.Input.displayName;let K=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(E.List,{ref:a,className:(0,$.cn)("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...r}));K.displayName=E.List.displayName;let H=r.forwardRef((e,r)=>(0,t.jsx)(E.Empty,{ref:r,className:"py-6 text-center text-sm",...e}));H.displayName=E.Empty.displayName;let U=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(E.Group,{ref:a,className:(0,$.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...r}));U.displayName=E.Group.displayName,r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(E.Separator,{ref:a,className:(0,$.cn)("-mx-1 h-px bg-border",e),...r})).displayName=E.Separator.displayName;let q=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(E.Item,{ref:a,className:(0,$.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",e),...r}));q.displayName=E.Item.displayName,e.s(["Command",0,G,"CommandEmpty",0,H,"CommandGroup",0,U,"CommandInput",0,_,"CommandItem",0,q,"CommandList",0,K],317056)},776639,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(326999),n=e.i(37727),o=e.i(975157);let i=a.Root;a.Trigger;let l=a.Portal,s=a.Close,d=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(a.Overlay,{ref:n,className:(0,o.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...r}));d.displayName=a.Overlay.displayName;let c=r.forwardRef(({className:e,children:r,...i},s)=>(0,t.jsxs)(l,{children:[(0,t.jsx)(d,{}),(0,t.jsxs)(a.Content,{ref:s,className:(0,o.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border-0 bg-background px-6 pb-6 pt-4 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-lg",e),...i,children:[r,(0,t.jsxs)(a.Close,{className:"absolute right-4 top-4 roun
9ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[(0,t.jsx)(n.X,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));c.displayName=a.Content.displayName;let u=({className:e,...r})=>(0,t.jsx)("div",{className:(0,o.cn)("flex flex-col space-y-1.5 text-center sm:text-left",e),...r});u.displayName="DialogHeader";let m=({className:e,...r})=>(0,t.jsx)("div",{className:(0,o.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...r});m.displayName="DialogFooter";let p=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(a.Title,{ref:n,className:(0,o.cn)("text-lg font-semibold leading-none tracking-tight",e),...r}));p.displayName=a.Title.displayName;let f=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(a.Description,{ref:n,className:(0,o.cn)("text-sm text-muted-foreground",e),...r}));f.displayName=a.Description.displayName,e.s(["Dialog",0,i,"DialogClose",0,s,"DialogContent",0,c,"DialogDescription",0,f,"DialogFooter",0,m,"DialogHeader",0,u,"DialogOverlay",0,d,"DialogPortal",0,l,"DialogTitle",0,p])},337822,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(981140),n=e.i(820783),o=e.i(30030),i=e.i(726330),l=e.i(303536),s=e.i(765491),d=e.i(610772),c=e.i(853660),u=e.i(774606),m=e.i(296626),p=e.i(248425),f=e.i(991918),h=e.i(369340),g=e.i(186312),b=e.i(985369),x=Object.defineProperty,v=(e,t)=>x(e,"name",{value:t,configurable:!0}),y="Popover",[w,C]=(0,o.createContextScope)(y,[c.createPopperScope]),N=(0,c.createPopperScope)(),[S,j]=w(y),k=v(e=>{let{__scopePopover:a,children:n,open:o,defaultOpen:i,onOpenChange:l,modal:s=!1}=e,u=N(a),m=r.useRef(null),[p,f]=r.useState(!1),[g,b]=(0,h.useControllableState)({prop:o,defaultProp:i??!1,onChange:l,caller:y});return(0,t.jsx)(c.Root,{...u,children:(0,t.jsx)(S,{scope:a,contentId:(0,d.useId)(),triggerRef:m,open:g,onOpenChange:b,onOpenToggle:r.useCallback(()=>b(e=>!e),[b]),hasCustomAnchor:p,onCustomAnchorAdd:r.useCallback(()=>f(!0),[]),onCustomAnchorRemove:r.useCallback(()=>f(!1),[]),modal:s,children:n})})},"Popover"),P=r.forwardRef(v(function(e,r){let{__scopePopover:o,...i}=e,l=j("PopoverTrigger",o),s=N(o),d=(0,n.useComposedRefs)(r,l.triggerRef),u=(0,t.jsx)(p.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":B(l.open),...i,ref:d,onClick:(0,a.composeEventHandlers)(e.onClick,l.onOpenToggle)});return l.hasCustomAnchor?u:(0,t.jsx)(c.Anchor,{asChild:!0,...s,children:u})},"PopoverTrigger")),I="PopoverPortal",[E,R]=w(I,{forceMount:void 0}),A=v(e=>{let{__scopePopover:r,forceMount:a,children:n,container:o}=e,i=j(I,r);return(0,t.jsx)(E,{scope:r,forceMount:a,children:(0,t.jsx)(m.Presence,{present:a||i.open,children:(0,t.jsx)(u.Portal,{asChild:!0,container:o,children:n})})})},"PopoverPortal"),M="PopoverContent",T=r.forwardRef(v(function(e,r){let a=R(M,e.__scopePopover),{forceMount:n=a.forceMount,...o}=e,i=j(M,e.__scopePopover);return(0,t.jsx)(m.Presence,{present:n||i.open,children:i.modal?(0,t.jsx)(F,{...o,ref:r}):(0,t.jsx)(O,{...o,ref:r})})},"PopoverContent")),D=(0,f.createSlot)("PopoverContent.RemoveScroll"),F=r.forwardRef(v(function(e,o){let i=j(M,e.__scopePopover),l=r.useRef(null),s=(0,n.useComposedRefs)(o,l),d=r.useRef(!1);return r.useEffect(()=>{let e=l.current;if(e)return(0,g.hideOthers)(e)},[]),(0,t.jsx)(b.RemoveScroll,{as:D,allowPinchZoom:!0,children:(0,t.jsx)(L,{...e,ref:s,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),d.current||i.triggerRef.current?.focus()}),onPointerDownOutside:(0,a.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;d.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,a.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),O=r.forwardRef(v(function(e,a){let n=j(M,e.__scopePopover),o=r.useRef(!1),i=r.useRef(!1);return(0,t.jsx)(L,{...e,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||n.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let r=t.target;n.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})},"PopoverContentNonModal")),L=r.forwardRef(v(function(e,r){let{__scopePopover:a,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:d,disableOutsidePointerEvents:u,onEscapeKeyDown:m,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:h,...g}=e,b=j(M,a),x=N(a);return(0,l.useFocusGuards)(),(0,t.jsx)(s.FocusScope,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:d,children:(0,t.jsx)(i.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:h,onEscapeKeyDown:m,onPointerDownOutside:p,onFocusOutside:f,onDismiss:()=>b.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,t.jsx)(c.C
9ontent,{"data-state":B(b.open),role:"dialog",id:b.contentId,...x,...g,ref:r,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl"));function B(e){return e?"open":"closed"}v(B,"getState");var $=e.i(975157);let G=r.forwardRef(({className:e,align:r="center",sideOffset:a=4,...n},o)=>(0,t.jsx)(A,{children:(0,t.jsx)(T,{ref:o,align:r,sideOffset:a,className:(0,$.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));G.displayName=T.displayName,e.s(["Popover",0,k,"PopoverContent",0,G,"PopoverTrigger",0,P],337822)}]);
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.