!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4eada5a1-06b0-4192-9c67-f70b16b692ba",e._sentryDebugIdIdentifier="sentry-dbid-4eada5a1-06b0-4192-9c67-f70b16b692ba")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[582],{74172:function(e,t,n){Promise.resolve().then(n.bind(n,57625))},57625:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return w}});var r=n(57437),a=n(2265),o=n(16463),i=n(25524),l=n(16474),s=n(88726),c=n(22861),u=n(39343),d=n(37427),f=n(44839);n(32892);var m=n(72047);n(94990);var g=n(45734),p=n(12098),h=n(9881),v=n(18023);function b(e){let{control:t,errors:n,lang:o="NL"}=e,[i,l]=(0,a.useState)();return(0,r.jsxs)("div",{className:"bg-white rounded-md ",children:[(0,r.jsx)(u.Qr,{control:t,name:"to_phone",render:e=>{var t;let{field:{onChange:n,value:a}}=e;return(0,r.jsx)(m.ZP,{className:"phone-input",value:a,onChange:n,defaultCountry:null===(t=v.u[o.toLowerCase()])||void 0===t?void 0:t.country,international:!0,countryCallingCodeEditable:!1,countries:["NL","DE","GB","BE","FR","LU","AT","CH","IT","ES","PT","US","CA","SE","DK","NO","AU","IE","AE","UA"]})}}),(null==n?void 0:n.phone)&&n.phone.message]})}let x=e=>["gmail.com","yahoo.com","outlook.com","hotmail.com"].includes(e.split("@")[1]),y=()=>{let e=(0,o.useSearchParams)(),[t,n]=(0,a.useState)(),[c,m]=(0,a.useState)(0),[v,y]=(0,a.useState)("form"),{executeRecaptcha:w}=(0,g.xX)(),{register:E,control:N,handleSubmit:k,formState:{errors:j}}=(0,u.cI)(),{mutate:A,isPending:S}=(0,i.D)({mutationFn:e=>(0,l.Q4)(null==t?void 0:t.agents[c].agentId,{...e,demo_agent:!1,prompt_params:{name:e.name}}),networkMode:"always",onSuccess:e=>{y("success")},onError:e=>{var t,n,r,a,o;console.log("error",e),Array.isArray(null==e?void 0:null===(n=e.response)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.error)?e.response.data.error.forEach(e=>s.ZP.error(e.message)):s.ZP.error((null==e?void 0:null===(a=e.response)||void 0===a?void 0:null===(r=a.data)||void 0===r?void 0:r.message)||(null==e?void 0:null===(o=e.response)||void 0===o?void 0:o.data)||"Something went wrong")}});return((0,a.useEffect)(()=>{let t=e.get("config");if(t){let e=JSON.parse(decodeURIComponent(window.atob(t)));if(n({...e,demoAgent:e.demoAgent,form:{...e.form,fields:e.form.fields||["name","email"],disallowPublicDomain:!1}}),e.defaultAgent){let t=e.agents.findIndex(t=>t.name.toLowerCase()===e.defaultAgent.toLowerCase())||0;console.log("defaultAgentIndex",t),m(t)}}},[]),!t||(null==t?void 0:t.agents.length)<=0)?"":"success"===v?(0,r.jsx)("div",{className:"h-screen flex items-center justify-center",children:(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("p",{className:"text-xl font-medium mb-4",children:"Thanks!"}),(0,r.jsx)("p",{className:"block",children:"Our AI agent will be calling you shortly."})]})}):(0,r.jsxs)("form",{id:"embed-form",className:"px-2",onSubmit:k(async e=>{if(!w){console.log("Execute recaptcha not yet available");return}(0,h.sendGTMEvent)({event:"demo_call_booked",form_data:JSON.stringify(e)});let t=await w("submit");A({...e,captcha_token:t})}),children:[t.form.headline&&(0,r.jsx)("h2",{className:"text-4xl mb-14 font-medium text-[#271b58]",children:t.form.headline}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"name",className:"block text-sm font-medium leading-6 text-gray-900 mb-[10px]",children:"Your Name:"}),(0,r.jsx)("div",{className:"",children:(0,r.jsx)("input",{...E("name",{required:!0}),type:"text",className:"block w-full rounded-md border-0 p-[10px] text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-kollie-600 sm:text-sm sm:leading-6",placeholder:"John Snow"})})]}),t.form.fields.indexOf("email")>=0?(0,r.jsxs)("div",{className:"mt-[20px]",children:[(0,r.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium leading-6 text-gray-900 mb-[10px]",children:"Email address:"}),(0,r.jsxs)("div",{className:"",children:[(0,r.jsx)("input",{...E("email",{required:"Email is required",validate:t.form.disallowPublicDomain?{notPublic:e=>!x(e)||"Public email domains are not allowed"}:void 0}),type:"email",className:"block w-full rounded-md border-0 p-[10px] text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-kollie-600 sm:text-sm sm:leading-6",placeholder:"email@example.com"}),j.email&&(0,r.jsx)("p",{style:{color:"red"},children:j.email.message})]})]}):"",(0,r.jsxs)("div",{className:"mt-[20px]",children:[(0,r.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium leading-6 text-gray-900 mb-[10px]",children:"Your Phone:"}),(0,r.jsx)(b,{control:N,errors:j,lang:(null==t?void 0:t.agents[c].country)||(null==t?void 0:t.agents[c].name)})]}),(0,r.jsxs)("div",{className:"flex flex-col justify-between md:flex-row lg:flex-row",children:[t.agents.length>1?(0,r.jsxs)("div",{className:"mt-[20px]",children:[(0,r.jsx)("label",{htmlFor:"email",className:"block text-xs font-medium leading-6 text-gray-800 mb-[10px]",children:"Language:"}),(0,r.jsxs)(d.E,{value:c,onChange:m,className:"mt-2",children:[(0,r.jsx)(d.E.Label,{className:"sr-only",children:"Choose language"}),(0,r.jsx)("div",{className:"flex gap-2",children:t.agents.map((e,t)=>(0,r.jsxs)(d.E.Option,{value:t,className:e=>{let{active:t,checked:n}=e;return(0,f.Z)(t?"ring-1 ring-gray-900 ring-offset-2":"",n?"bg-gray-900 text-white hover:bg-gray-500 active:bg-gray-500":"ring-1 ring-inset ring-gray-900 bg-white hover:bg-gray-50","h-9 relative rounded-md py-3 px-4 text-sm font-medium uppercase cursor-pointer flex justify-center items-center")},children:[(0,r.jsx)(d.E.Label,{as:"span",children:e.name}),e.isBeta?(0,r.jsx)("span",{className:(0,f.Z)("text-[9px] top-0 rounded-full px-1.5 py-0.5 text-red-800 z-10","absolute left-[15px] top-[-4px]"),children:"beta"}):""]},t))})]})]}):"",(0,r.jsx)(p.z,{variant:"solid",color:t.form.primaryColor||"kollie",style:t.form.primaryColor?{backgroundColor:t.form.primaryColor}:{},className:"mt-8 h-fit self-end",disabled:S,children:S?t.form.btnLoadingText||"Loading...":(null==t?void 0:t.agents[c].btnText)||t.form.btnText||"Call Me"})]}),(0,r.jsxs)("div",{className:"relative flex gap-x-2 mt-4",children:[(0,r.jsx)("div",{className:"flex h-6 items-center",children:(0,r.jsx)("input",{id:"comments",name:"comments",type:"checkbox",className:"h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",checked:!0,readOnly:!0})}),(0,r.jsx)("div",{className:"text-xs items-center justify-center content-center",children:(0,r.jsxs)("p",{className:"text-gray-500",children:["By submitting the form you agree to the"," ",(0,r.jsxs)("a",{href:"https://kollie.ai/privacy",target:"_blank",children:[(0,r.jsx)("span",{className:"text-kollie-primary font-bold",children:"Kollie.ai"}),"\xa0terms and conditions"]}),". This form is protected by reCAPTCHA and the Google\xa0",(0,r.jsx)("a",{href:"https://policies.google.com/privacy",children:"Privacy Policy"})," and",(0,r.jsxs)("a",{href:"https://policies.google.com/terms",children:[" ","Terms of Service"]})," ","apply."]})})]})]})};function w(){return(0,r.jsx)(a.Suspense,{children:(0,r.jsx)(c.default,{children:(0,r.jsx)(g.pm,{reCaptchaKey:"6LeszcYpAAAAACQFaFdk__5NmRnpN2hcB_DHHyZy",children:(0,r.jsx)(y,{})})})})}},12098:function(e,t,n){"use strict";n.d(t,{z:function(){return c}});var r=n(57437),a=n(87138),o=n(44839);let i={solid:"group inline-flex items-center justify-center focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2",outline:"group inline-flex ring-1 items-center justify-center focus:outline-none"},l={normal:"rounded-md py-2 px-4 text-base font-medium",small:"rounded-md py-2 px-4 text-sm"},s={solid:{slate:"bg-slate-900 text-white hover:bg-slate-700 hover:text-slate-100 active:bg-slate-800 active:text-slate-300 focus-visible:outline-slate-900",blue:"bg-blue-600 text-white hover:text-slate-100 hover:bg-blue-500 active:bg-blue-800 active:text-blue-100 focus-visible:outline-blue-600",white:"bg-white text-slate-900 hover:bg-blue-50 active:bg-blue-200 active:text-slate-600 focus-visible:outline-white",kollie:"whitespace-nowrap h-11 bg-kollie-700 items-center rounded-lg text-white hover:text-slate-100 hover:bg-kollie-600 active:bg-kollie-500 focus-visible:outline-kollie-600 disabled:cursor-none disabled:bg-gray-400",secondary:"h-11 bg-secondary-700 items-center rounded-lg text-white hover:text-slate-100 hover:bg-secondary-600 active:bg-secondary-500 focus-visible:outline-secondary-600 disabled:cursor-none disabled:bg-gray-400",primary:"whitespace-nowrap h-11 bg-primary-700 items-center rounded-lg text-white hover:text-slate-100 hover:bg-primary-600 active:bg-primary-500 focus-visible:outline-primary-600 disabled:cursor-none disabled:bg-gray-400",danger:"h-11 bg-red-700 items-center rounded-lg text-white hover:text-slate-100 hover:bg-red-600 active:bg-red-500 focus-visible:outline-red-600 disabled:cursor-none disabled:bg-gray-400"},outline:{slate:"ring-slate-200 text-slate-700 hover:text-slate-900 hover:ring-slate-300 active:bg-slate-100 active:text-slate-600 focus-visible:outline-blue-600 focus-visible:ring-slate-300",white:"ring-slate-700 text-white hover:ring-slate-500 active:ring-slate-700 active:text-slate-400 focus-visible:outline-white",kollie:"whitespace-nowrap ring-primary-700 h-11 bg-white items-center rounded-lg text-primary-700 hover:text-primary-400 focus-visible:outline-primary-700 disabled:cursor-none disabled:bg-gray-400"}};function c(e){let{variant:t="solid",color:n="kollie",size:c="normal",className:u,href:d,onClick:f,disabled:m=!1,style:g,target:p="_self",children:h,...v}=e,b="bg-[".concat(n,"] text-white hover:text-slate-100 hover:bg-[").concat(n,"] active:bg-[").concat(n,"] active:text-blue-100 focus-visible:outline-[").concat(n,"]");return u=(0,o.Z)(i[t],l[c],s[t][n]||b,u),d?(0,r.jsx)(a.default,{href:d,className:u,...v,target:p,children:h}):(0,r.jsx)("button",{className:u,onClick:f,...v,disabled:m,style:g,children:h})}},22861:function(e,t,n){"use strict";n.d(t,{default:function(){return u}});var r=n(57437),a=n(2265),o=n(66094),i=n(93191),l=n(88726),s=n(46135);function c(){return(0,r.jsx)(l.x7,{position:"top-right",children:e=>(0,r.jsx)(l.$x,{toast:e,children:t=>{let{icon:n,message:a}=t;return(0,r.jsxs)(r.Fragment,{children:[n,a,"loading"!==e.type&&(0,r.jsx)("div",{className:"ml-4 flex flex-shrink-0",children:(0,r.jsxs)("button",{type:"button",className:"inline-flex rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",onClick:()=>{l.Am.dismiss(e.id)},children:[(0,r.jsx)("span",{className:"sr-only",children:"Close"}),(0,r.jsx)(s.Z,{className:"h-5 w-5","aria-hidden":"true"})]})})]})}})})}var u=function(e){let{children:t}=e,[n]=a.useState(new o.S);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.aH,{client:n,children:t}),(0,r.jsx)(c,{})]})}},18023:function(e,t,n){"use strict";n.d(t,{a:function(){return r},u:function(){return a}});let r=e=>window.btoa(encodeURIComponent(JSON.stringify(e))),a={en:{country:"GB",name:"English",placeholder:"0611576714"},us:{country:"US",placeholder:"(366) 804-2466"},nl:{country:"NL",name:"Nederlands",placeholder:"0611576714"},de:{country:"DE",name:"Deutsch",placeholder:"0611576714"},fr:{country:"FR",name:"Fran\xe7aise",placeholder:"0611576714"}}},16474:function(e,t,n){"use strict";n.d(t,{Ah:function(){return d},C9:function(){return C},EV:function(){return g},Pw:function(){return p},Q4:function(){return f},Tg:function(){return T},VI:function(){return v},WW:function(){return j},WY:function(){return R},Xu:function(){return i},Yy:function(){return S},Zh:function(){return O},_z:function(){return x},bW:function(){return A},dK:function(){return h},hG:function(){return u},hm:function(){return E},j8:function(){return s},l9:function(){return w},mK:function(){return y},o1:function(){return b},pw:function(){return N},rK:function(){return k},sE:function(){return c},xB:function(){return F},x_:function(){return m},yB:function(){return l}});var r=n(42126),a=n(35052);let o=r.Z.create({baseURL:"https://api.kollie.ai/api/v1",withCredentials:!0});o.defaults.headers.common["Content-Type"]="application/json",o.interceptors.request.use(async e=>{let t=a.Z.getState();try{e.headers.set("Authorization","Bearer ".concat(t.accessToken))}catch(e){console.log("interceptors.request error: could not set access token..."),window.location.replace("/")}return e}),o.interceptors.response.use(e=>{var t;return(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.detail)==="New User"&&window.location.replace("/app/welcome"),e},e=>{a.Z.getState();let{response:t}=e;if(t){let e=t.data;if(401===e.statusCode)throw e;throw 403===t.status&&(a.Z.setState(a.Z.getInitialState()),window.location.replace("/login")),e}throw e});let i=async()=>(await o.get("organizations",{})).data,l=async e=>(await o.get("agents/".concat(e),{})).data,s=async e=>{let{page:t=1}=e;return(await o.get("agents?page=".concat(t))).data},c=async(e,t)=>o.put("agents/".concat(e),t),u=async e=>o.delete("agents/".concat(e)),d=async(e,t)=>o.post("agents/".concat(e,"/call"),t),f=async(e,t)=>o.post("agents/".concat(e,"/webcall"),t),m=async e=>(await o.post("agents",e)).data,g=async e=>(await o.get("agents/".concat(e,"/calls"))).data,p=async e=>(await o.get("calls/".concat(e))).data,h=async e=>o.post("calls/send-recording",e),v=async(e,t)=>o.post("calls/".concat(e,"/end"),t),b=async e=>(await o.post("users/signup",e)).data,x=async e=>{let{page:t}=e;return(await o.get("campaigns?page=".concat(t))).data},y=async e=>(await o.post("campaigns",e)).data,w=async e=>(await o.get("campaigns/".concat(e),{})).data,E=async(e,t)=>o.put("campaigns/".concat(e),t),N=async(e,t)=>o.put("campaigns/".concat(e,"/status"),t),k=async e=>(await o.get("campaigns/".concat(e,"/calls"))).data,j=async e=>o.get("billing/check-payment/".concat(e)),A=async e=>o.post("billing/start-subscription",e),S=async(e,t)=>o.post("integrations/".concat(e,"/process-code"),t),O=async e=>{let{page:t=1}=e;return(await o.get("integrations?page=".concat(t))).data},R=async e=>(await o.get("integrations/".concat(e),{})).data,C=async e=>o.post("integrations/".concat(e,"/sync"),{}),T=async e=>o.delete("integrations/".concat(e)),F=async(e,t)=>o.put("integrations/".concat(e),t)},35052:function(e,t,n){"use strict";var r=n(13e3),a=n(89291);let o=(0,r.Ue)()((0,a.tJ)((e,t)=>({isLoaded:!1,setLoaded:t=>{e(e=>({...e,isLoaded:t}))},accessToken:void 0,onboardingAccessToken:void 0,onboarding:{step:0,data:{}},quickAgent:void 0,setAccessToken:t=>e(e=>({...e,accessToken:t})),setOnboardingAccessToken:t=>e(e=>({...e,onboardingAccessToken:t})),setOnboarding:t=>e(e=>({...e,onboarding:t})),setQuickAgent:t=>e(e=>({...e,quickAgent:t})),showOnboardingBanner:!0,shouldOnboardingBanner:()=>{},setShowOnboardingBanner:t=>e(e=>({...e,showOnboardingBanner:t})),orgBilling:void 0,setOrgBilling:t=>e(e=>({...e,orgBilling:t})),paymentId:void 0,setPaymentId:t=>e(e=>({...e,paymentId:t})),showBillingModal:!1,setShowBillingModal:t=>e(e=>({...e,showBillingModal:t}))}),{name:"kollieStore",onRehydrateStorage:()=>e=>{e&&e.setLoaded(!0)}}));t.Z=o},94990:function(){},56800:function(e,t){var n;/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=o(t,n));return t}(n)))}return e}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(a.default=a,e.exports=a):void 0!==(n=(function(){return a}).apply(t,[]))&&(e.exports=n)}()},37427:function(e,t,n){"use strict";let r,a;n.d(t,{E:function(){return T}});var o=n(2265),i=n(83184),l=n(7551),s=n(43003),c=n(93169),u=n(99299),d=n(6584),f=n(78248),m=n(72955),g=n(61463),p=n(88703),h=n(41469),v=n(35531),b=n(89080),x=n(47986),y=n(19309),w=n(69331),E=n(5583),N=n(91498),k=n(3600),j=((r=j||{})[r.RegisterOption=0]="RegisterOption",r[r.UnregisterOption=1]="UnregisterOption",r);let A={0(e,t){let n=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];return{...e,options:(0,y.z2)(n,e=>e.element.current)}},1(e,t){let n=e.options.slice(),r=e.options.findIndex(e=>e.id===t.id);return -1===r?e:(n.splice(r,1),{...e,options:n})}},S=(0,o.createContext)(null);S.displayName="RadioGroupDataContext";let O=(0,o.createContext)(null);function R(e,t){return(0,E.E)(t.type,A,e,t)}O.displayName="RadioGroupActionsContext";var C=((a=C||{})[a.Empty=1]="Empty",a[a.Active=2]="Active",a);let T=Object.assign((0,k.yV)(function(e,t){let n=(0,m.M)(),{id:r="headlessui-radiogroup-".concat(n),value:a,defaultValue:f,form:g,name:p,onChange:x,by:E=(e,t)=>e===t,disabled:j=!1,...A}=e,C=(0,d.z)("string"==typeof E?(e,t)=>(null==e?void 0:e[E])===(null==t?void 0:t[E]):E),[T,F]=(0,o.useReducer)(R,{options:[]}),P=T.options,[_,L]=(0,s.b)(),[I,D]=(0,i.f)(),M=(0,o.useRef)(null),B=(0,h.T)(M,t),[G,U]=(0,c.q)(a,x,f),z=(0,o.useMemo)(()=>P.find(e=>!e.propsRef.current.disabled),[P]),Z=(0,o.useMemo)(()=>P.some(e=>C(e.propsRef.current.value,G)),[P,G]),K=(0,d.z)(e=>{var t;if(j||C(e,G))return!1;let n=null==(t=P.find(t=>C(t.propsRef.current.value,e)))?void 0:t.propsRef.current;return(null==n||!n.disabled)&&(null==U||U(e),!0)});(0,v.B)({container:M.current,accept:e=>"radio"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let W=(0,d.z)(e=>{let t=M.current;if(!t)return;let n=(0,N.r)(t),r=P.filter(e=>!1===e.propsRef.current.disabled).map(e=>e.element.current);switch(e.key){case l.R.Enter:(0,w.g)(e.currentTarget);break;case l.R.ArrowLeft:case l.R.ArrowUp:if(e.preventDefault(),e.stopPropagation(),(0,y.jA)(r,y.TO.Previous|y.TO.WrapAround)===y.fE.Success){let e=P.find(e=>e.element.current===(null==n?void 0:n.activeElement));e&&K(e.propsRef.current.value)}break;case l.R.ArrowRight:case l.R.ArrowDown:if(e.preventDefault(),e.stopPropagation(),(0,y.jA)(r,y.TO.Next|y.TO.WrapAround)===y.fE.Success){let e=P.find(e=>e.element.current===(null==n?void 0:n.activeElement));e&&K(e.propsRef.current.value)}break;case l.R.Space:{e.preventDefault(),e.stopPropagation();let t=P.find(e=>e.element.current===(null==n?void 0:n.activeElement));t&&K(t.propsRef.current.value)}}}),V=(0,d.z)(e=>(F({type:0,...e}),()=>F({type:1,id:e.id}))),q=(0,o.useMemo)(()=>({value:G,firstOption:z,containsCheckedOption:Z,disabled:j,compare:C,...T}),[G,z,Z,j,C,T]),H=(0,o.useMemo)(()=>({registerOption:V,change:K}),[V,K]),J=(0,o.useMemo)(()=>({value:G}),[G]),Y=(0,o.useRef)(null),Q=(0,u.G)();return(0,o.useEffect)(()=>{Y.current&&void 0!==f&&Q.addEventListener(Y.current,"reset",()=>{K(f)})},[Y,K]),o.createElement(D,{name:"RadioGroup.Description"},o.createElement(L,{name:"RadioGroup.Label"},o.createElement(O.Provider,{value:H},o.createElement(S.Provider,{value:q},null!=p&&null!=G&&(0,w.t)({[p]:G}).map((e,t)=>{let[n,r]=e;return o.createElement(b._,{features:b.A.Hidden,ref:0===t?e=>{var t;Y.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...(0,k.oA)({key:n,as:"input",type:"radio",checked:null!=r,hidden:!0,readOnly:!0,form:g,disabled:j,name:n,value:r})})}),(0,k.sY)({ourProps:{ref:B,id:r,role:"radiogroup","aria-labelledby":_,"aria-describedby":I,onKeyDown:W},theirProps:A,slot:J,defaultTag:"div",name:"RadioGroup"})))))}),{Option:(0,k.yV)(function(e,t){var n;let r=(0,m.M)(),{id:a="headlessui-radiogroup-option-".concat(r),value:l,disabled:c=!1,...u}=e,v=(0,o.useRef)(null),b=(0,h.T)(v,t),[y,w]=(0,s.b)(),[E,N]=(0,i.f)(),{addFlag:j,removeFlag:A,hasFlag:R}=(0,f.V)(1),C=(0,p.E)({value:l,disabled:c}),T=function e(t){let n=(0,o.useContext)(S);if(null===n){let n=Error("<".concat(t," /> is missing a parent <RadioGroup /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(n,e),n}return n}("RadioGroup.Option"),F=function e(t){let n=(0,o.useContext)(O);if(null===n){let n=Error("<".concat(t," /> is missing a parent <RadioGroup /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(n,e),n}return n}("RadioGroup.Option");(0,g.e)(()=>F.registerOption({id:a,element:v,propsRef:C}),[a,F,v,C]);let P=(0,d.z)(e=>{var t;if((0,x.P)(e.currentTarget))return e.preventDefault();F.change(l)&&(j(2),null==(t=v.current)||t.focus())}),_=(0,d.z)(e=>{if((0,x.P)(e.currentTarget))return e.preventDefault();j(2)}),L=(0,d.z)(()=>A(2)),I=(null==(n=T.firstOption)?void 0:n.id)===a,D=T.disabled||c,M=T.compare(T.value,l),B={ref:b,id:a,role:"radio","aria-checked":M?"true":"false","aria-labelledby":y,"aria-describedby":E,"aria-disabled":!!D||void 0,tabIndex:D?-1:M||!T.containsCheckedOption&&I?0:-1,onClick:D?void 0:P,onFocus:D?void 0:_,onBlur:D?void 0:L},G=(0,o.useMemo)(()=>({checked:M,disabled:D,active:R(2)}),[M,D,R]);return o.createElement(N,{name:"RadioGroup.Description"},o.createElement(w,{name:"RadioGroup.Label"},(0,k.sY)({ourProps:B,theirProps:u,slot:G,defaultTag:"div",name:"RadioGroup.Option"})))}),Label:s._,Description:i.d})},78248:function(e,t,n){"use strict";n.d(t,{V:function(){return o}});var r=n(2265),a=n(26400);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,n]=(0,r.useState)(e),o=(0,a.t)(),i=(0,r.useCallback)(e=>{o.current&&n(t=>t|e)},[t,o]),l=(0,r.useCallback)(e=>!!(t&e),[t]);return{flags:t,addFlag:i,hasFlag:l,removeFlag:(0,r.useCallback)(e=>{o.current&&n(t=>t&~e)},[n,o]),toggleFlag:(0,r.useCallback)(e=>{o.current&&n(t=>t^e)},[n])}}},26400:function(e,t,n){"use strict";n.d(t,{t:function(){return o}});var r=n(2265),a=n(61463);function o(){let e=(0,r.useRef)(!1);return(0,a.e)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},35531:function(e,t,n){"use strict";n.d(t,{B:function(){return i}});var r=n(2265),a=n(91498),o=n(61463);function i(e){let{container:t,accept:n,walk:i,enabled:l=!0}=e,s=(0,r.useRef)(n),c=(0,r.useRef)(i);(0,r.useEffect)(()=>{s.current=n,c.current=i},[n,i]),(0,o.e)(()=>{if(!t||!l)return;let e=(0,a.r)(t);if(!e)return;let n=s.current,r=c.current,o=Object.assign(e=>n(e),{acceptNode:n}),i=e.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,o,!1);for(;i.nextNode();)r(i.currentNode)},[t,l,s,c])}},19309:function(e,t,n){"use strict";let r,a,o,i,l;n.d(t,{C5:function(){return y},EO:function(){return E},TO:function(){return f},fE:function(){return m},jA:function(){return N},sP:function(){return v},tJ:function(){return h},wI:function(){return b},z2:function(){return w}});var s=n(70777),c=n(5583),u=n(91498);let d=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var f=((r=f||{})[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r),m=((a=m||{})[a.Error=0]="Error",a[a.Overflow=1]="Overflow",a[a.Success=2]="Success",a[a.Underflow=3]="Underflow",a),g=((o=g||{})[o.Previous=-1]="Previous",o[o.Next=1]="Next",o);function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(d)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var h=((i=h||{})[i.Strict=0]="Strict",i[i.Loose=1]="Loose",i);function v(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=(0,u.r)(e))?void 0:t.body)&&(0,c.E)(n,{0:()=>e.matches(d),1(){let t=e;for(;null!==t;){if(t.matches(d))return!0;t=t.parentElement}return!1}})}function b(e){let t=(0,u.r)(e);(0,s.k)().nextFrame(()=>{t&&!v(t.activeElement,0)&&y(e)})}var x=((l=x||{})[l.Keyboard=0]="Keyboard",l[l.Mouse=1]="Mouse",l);function y(e){null==e||e.focus({preventScroll:!0})}function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,n)=>{let r=t(e),a=t(n);if(null===r||null===a)return 0;let o=r.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function E(e,t){return N(p(),t,{relativeTo:e})}function N(e,t){var n,r,a;let{sorted:o=!0,relativeTo:i=null,skipElements:l=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,c=Array.isArray(e)?o?w(e):e:p(e);l.length>0&&c.length>1&&(c=c.filter(e=>!l.includes(e))),i=null!=i?i:s.activeElement;let u=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,c.indexOf(i))-1;if(4&t)return Math.max(0,c.indexOf(i))+1;if(8&t)return c.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=32&t?{preventScroll:!0}:{},m=0,g=c.length,h;do{if(m>=g||m+g<=0)return 0;let e=d+m;if(16&t)e=(e+g)%g;else{if(e<0)return 3;if(e>=g)return 1}null==(h=c[e])||h.focus(f),m+=u}while(h!==s.activeElement);return 6&t&&null!=(a=null==(r=null==(n=h)?void 0:n.matches)?void 0:r.call(n,"textarea,input"))&&a&&h.select(),2}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},91498:function(e,t,n){"use strict";n.d(t,{r:function(){return a}});var r=n(54462);function a(e){return r.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}}},function(e){e.O(0,[6892,9751,2126,1336,8726,7138,193,1061,2845,9881,9481,2971,1913,1744],function(){return e(e.s=74172)}),_N_E=e.O()}]);