From 1b6dd6dd67e70b8f309ebb2304f85e61d22a0afb Mon Sep 17 00:00:00 2001 From: "charly.garcia" Date: Wed, 13 Sep 2023 09:48:33 -0300 Subject: [PATCH] bugfix: change url --- apps/eo_web/dist/assets/{main-3a9b6b53.js => main-281f57f2.js} | 2 +- apps/eo_web/dist/manifest.json | 2 +- apps/eo_web/src/screens/Cancer/UserTypeSelectorDemo.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename apps/eo_web/dist/assets/{main-3a9b6b53.js => main-281f57f2.js} (91%) diff --git a/apps/eo_web/dist/assets/main-3a9b6b53.js b/apps/eo_web/dist/assets/main-281f57f2.js similarity index 91% rename from apps/eo_web/dist/assets/main-3a9b6b53.js rename to apps/eo_web/dist/assets/main-281f57f2.js index f880db78..764173fc 100644 --- a/apps/eo_web/dist/assets/main-3a9b6b53.js +++ b/apps/eo_web/dist/assets/main-281f57f2.js @@ -117,4 +117,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PR(e,t){if(e){if(typeof e=="string")return uw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uw(e,t)}}function uw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function A5e(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}var L7=m.forwardRef(function(e,t){var r=e.children,n=wm(e,v5e),o=MR(n),a=o.open,l=wm(o,g5e);return m.useImperativeHandle(t,function(){return{open:a}},[a]),we.createElement(m.Fragment,null,r(Rt(Rt({},l),{},{open:a})))});L7.displayName="Dropzone";var FR={disabled:!1,getFilesFromEvent:jhe,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};L7.defaultProps=FR;L7.propTypes={children:it.func,accept:it.objectOf(it.arrayOf(it.string)),multiple:it.bool,preventDropOnDocument:it.bool,noClick:it.bool,noKeyboard:it.bool,noDrag:it.bool,noDragEventsBubbling:it.bool,minSize:it.number,maxSize:it.number,maxFiles:it.number,disabled:it.bool,getFilesFromEvent:it.func,onFileDialogCancel:it.func,onFileDialogOpen:it.func,useFsAccessApi:it.bool,autoFocus:it.bool,onDragEnter:it.func,onDragLeave:it.func,onDragOver:it.func,onDrop:it.func,onDropAccepted:it.func,onDropRejected:it.func,onError:it.func,validator:it.func};var fw={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function MR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Rt(Rt({},FR),e),r=t.accept,n=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,l=t.minSize,c=t.multiple,d=t.maxFiles,h=t.onDragEnter,v=t.onDragLeave,y=t.onDragOver,w=t.onDrop,k=t.onDropAccepted,_=t.onDropRejected,R=t.onFileDialogCancel,$=t.onFileDialogOpen,E=t.useFsAccessApi,b=t.autoFocus,B=t.preventDropOnDocument,I=t.noClick,M=t.noKeyboard,z=t.noDrag,N=t.noDragEventsBubbling,j=t.onError,oe=t.validator,re=m.useMemo(function(){return h5e(r)},[r]),me=m.useMemo(function(){return d5e(r)},[r]),le=m.useMemo(function(){return typeof $=="function"?$:LC},[$]),i=m.useMemo(function(){return typeof R=="function"?R:LC},[R]),q=m.useRef(null),X=m.useRef(null),J=m.useReducer(S5e,fw),fe=y3(J,2),V=fe[0],ae=fe[1],_e=V.isFocused,ke=V.isFileDialogActive,Fe=m.useRef(typeof window<"u"&&window.isSecureContext&&E&&f5e()),Ye=function(){!Fe.current&&ke&&setTimeout(function(){if(X.current){var Oe=X.current.files;Oe.length||(ae({type:"closeDialog"}),i())}},300)};m.useEffect(function(){return window.addEventListener("focus",Ye,!1),function(){window.removeEventListener("focus",Ye,!1)}},[X,ke,i,Fe]);var tt=m.useRef([]),ue=function(Oe){q.current&&q.current.contains(Oe.target)||(Oe.preventDefault(),tt.current=[])};m.useEffect(function(){return B&&(document.addEventListener("dragover",$C,!1),document.addEventListener("drop",ue,!1)),function(){B&&(document.removeEventListener("dragover",$C),document.removeEventListener("drop",ue))}},[q,B]),m.useEffect(function(){return!n&&b&&q.current&&q.current.focus(),function(){}},[q,b,n]);var K=m.useCallback(function(ne){j?j(ne):console.error(ne)},[j]),ee=m.useCallback(function(ne){ne.preventDefault(),ne.persist(),pe(ne),tt.current=[].concat(x5e(tt.current),[ne.target]),Sf(ne)&&Promise.resolve(o(ne)).then(function(Oe){if(!(ym(ne)&&!N)){var xt=Oe.length,ut=xt>0&&s5e({files:Oe,accept:re,minSize:l,maxSize:a,multiple:c,maxFiles:d,validator:oe}),ct=xt>0&&!ut;ae({isDragAccept:ut,isDragReject:ct,isDragActive:!0,type:"setDraggedFiles"}),h&&h(ne)}}).catch(function(Oe){return K(Oe)})},[o,h,K,N,re,l,a,c,d,oe]),de=m.useCallback(function(ne){ne.preventDefault(),ne.persist(),pe(ne);var Oe=Sf(ne);if(Oe&&ne.dataTransfer)try{ne.dataTransfer.dropEffect="copy"}catch{}return Oe&&y&&y(ne),!1},[y,N]),ve=m.useCallback(function(ne){ne.preventDefault(),ne.persist(),pe(ne);var Oe=tt.current.filter(function(ut){return q.current&&q.current.contains(ut)}),xt=Oe.indexOf(ne.target);xt!==-1&&Oe.splice(xt,1),tt.current=Oe,!(Oe.length>0)&&(ae({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Sf(ne)&&v&&v(ne))},[q,v,N]),Qe=m.useCallback(function(ne,Oe){var xt=[],ut=[];ne.forEach(function(ct){var eo=$R(ct,re),vr=y3(eo,2),cn=vr[0],In=vr[1],gr=IR(ct,l,a),fn=y3(gr,2),Fa=fn[0],Fr=fn[1],to=oe?oe(ct):null;if(cn&&Fa&&!to)xt.push(ct);else{var Mr=[In,Fr];to&&(Mr=Mr.concat(to)),ut.push({file:ct,errors:Mr.filter(function(ri){return ri})})}}),(!c&&xt.length>1||c&&d>=1&&xt.length>d)&&(xt.forEach(function(ct){ut.push({file:ct,errors:[a5e]})}),xt.splice(0)),ae({acceptedFiles:xt,fileRejections:ut,type:"setFiles"}),w&&w(xt,ut,Oe),ut.length>0&&_&&_(ut,Oe),xt.length>0&&k&&k(xt,Oe)},[ae,c,re,l,a,d,w,k,_,oe]),ht=m.useCallback(function(ne){ne.preventDefault(),ne.persist(),pe(ne),tt.current=[],Sf(ne)&&Promise.resolve(o(ne)).then(function(Oe){ym(ne)&&!N||Qe(Oe,ne)}).catch(function(Oe){return K(Oe)}),ae({type:"reset"})},[o,Qe,K,N]),lt=m.useCallback(function(){if(Fe.current){ae({type:"openDialog"}),le();var ne={multiple:c,types:me};window.showOpenFilePicker(ne).then(function(Oe){return o(Oe)}).then(function(Oe){Qe(Oe,null),ae({type:"closeDialog"})}).catch(function(Oe){p5e(Oe)?(i(Oe),ae({type:"closeDialog"})):m5e(Oe)?(Fe.current=!1,X.current?(X.current.value=null,X.current.click()):K(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):K(Oe)});return}X.current&&(ae({type:"openDialog"}),le(),X.current.value=null,X.current.click())},[ae,le,i,E,Qe,K,me,c]),wt=m.useCallback(function(ne){!q.current||!q.current.isEqualNode(ne.target)||(ne.key===" "||ne.key==="Enter"||ne.keyCode===32||ne.keyCode===13)&&(ne.preventDefault(),lt())},[q,lt]),Lt=m.useCallback(function(){ae({type:"focus"})},[]),$n=m.useCallback(function(){ae({type:"blur"})},[]),P=m.useCallback(function(){I||(c5e()?setTimeout(lt,0):lt())},[I,lt]),W=function(Oe){return n?null:Oe},G=function(Oe){return M?null:W(Oe)},S=function(Oe){return z?null:W(Oe)},pe=function(Oe){N&&Oe.stopPropagation()},se=m.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Oe=ne.refKey,xt=Oe===void 0?"ref":Oe,ut=ne.role,ct=ne.onKeyDown,eo=ne.onFocus,vr=ne.onBlur,cn=ne.onClick,In=ne.onDragEnter,gr=ne.onDragOver,fn=ne.onDragLeave,Fa=ne.onDrop,Fr=wm(ne,y5e);return Rt(Rt(cw({onKeyDown:G(so(ct,wt)),onFocus:G(so(eo,Lt)),onBlur:G(so(vr,$n)),onClick:W(so(cn,P)),onDragEnter:S(so(In,ee)),onDragOver:S(so(gr,de)),onDragLeave:S(so(fn,ve)),onDrop:S(so(Fa,ht)),role:typeof ut=="string"&&ut!==""?ut:"presentation"},xt,q),!n&&!M?{tabIndex:0}:{}),Fr)}},[q,wt,Lt,$n,P,ee,de,ve,ht,M,z,n]),Be=m.useCallback(function(ne){ne.stopPropagation()},[]),Ge=m.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Oe=ne.refKey,xt=Oe===void 0?"ref":Oe,ut=ne.onChange,ct=ne.onClick,eo=wm(ne,w5e),vr=cw({accept:re,multiple:c,type:"file",style:{display:"none"},onChange:W(so(ut,ht)),onClick:W(so(ct,Be)),tabIndex:-1},xt,X);return Rt(Rt({},vr),eo)}},[X,r,c,ht,n]);return Rt(Rt({},V),{},{isFocused:_e&&!n,getRootProps:se,getInputProps:Ge,rootRef:q,inputRef:X,open:W(lt)})}function S5e(e,t){switch(t.type){case"focus":return Rt(Rt({},e),{},{isFocused:!0});case"blur":return Rt(Rt({},e),{},{isFocused:!1});case"openDialog":return Rt(Rt({},fw),{},{isFileDialogActive:!0});case"closeDialog":return Rt(Rt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Rt(Rt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Rt(Rt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Rt({},fw);default:return e}}function LC(){}const O5e="/assets/UploadFile-694e44b5.svg",Gs=({message:e,error:t,className:r})=>C("p",{className:Bt("block pb-1 pt-1 text-xs text-black-800 opacity-80",r,{"text-red-900":!!t}),children:t===!0?"​":t||e||"​"}),B5e=m.forwardRef(({onDrop:e,children:t,loading:r,containerClassName:n,compact:o,error:a,message:l,...c},d)=>{const{getRootProps:h,getInputProps:v}=MR({accept:{"image/*":[]},onDrop:y=>{e==null||e(y)}});return Q("div",{children:[Q("div",{...h({className:Bt(`dropzone text-center border focus-none border-gray-300 rounded border-dashed flex justify-center items-center w-fit py-20 px-20 ${r?"pointer-events-none bg-gray-200":""}`,n)}),children:[C("input",{ref:d,...v(),className:"w-full",...c,disabled:r}),t||Q("div",{className:"flex flex-col justify-center items-center",children:[C("img",{src:O5e,className:"h-12 w-12 text-gray-300",alt:"Upload Icon"}),Q("div",{className:"mt-4 flex flex-col text-sm leading-6 text-neutrals-medium-400",children:[Q("div",{className:"flex",children:[C("span",{className:"relative cursor-pointer rounded-md bg-white font-semibold text-neutrals-medium-400",children:"Click to upload"}),C("p",{className:"pl-1",children:"or drag and drop"})]}),C("div",{className:"text-xs leading-5 text-neutrals-medium-400",children:"PNG, JPG or GIF image."})]})]}),r&&C(I7,{})]}),!o&&C(Gs,{message:l,error:a})]})});B5e.displayName="Dropzone";const uc=({label:e,containerClassName:t,className:r,...n})=>C("div",{className:Bt("flex",t),children:typeof e!="string"?e:C("label",{...n,className:Bt("m-0 mr-3 text-sm font-medium leading-6 text-neutrals-dark-500",r),children:e})}),Vn=Da(({label:e,message:t,error:r,id:n,compact:o,left:a,right:l,rightWidth:c=40,style:d,containerClassName:h,className:v,preventEventsRightIcon:y,...w},k)=>Q("div",{style:d,className:Bt("relative",h),children:[!!e&&C(uc,{htmlFor:n,className:"text-mono",label:e}),Q("div",{className:Bt("flex flex-row items-center rounded-md shadow-sm",!!w.disabled&&"opacity-30"),children:[!!a&&C("div",{className:"pointer-events-none absolute pl-3",children:C(hm,{size:"sm",children:a})}),C("input",{ref:k,type:"text",id:n,...w,className:Bt("shadow-xs block w-full border-none text-neutrals-dark-400 placeholder:text-primary-white-600 focus:border-secondary-green focus:ring-2 focus:ring-secondary-green-300 sm:text-sm",!!r&&"border-red focus:border-red focus:ring-red-200",!!a&&"pl-10",!!w.disabled&&"border-gray-500 bg-black-100",v),style:{paddingRight:l?c:void 0}}),!!l&&C(hm,{className:Bt("absolute right-0 flex flex-row items-center justify-center",`w-[${c}px]`,y?"pointer-events-none":""),children:l})]}),!o&&C(Gs,{message:t,error:r})]})),$5e=Da(({label:e,id:t,className:r,...n},o)=>Q("div",{className:"flex items-center",children:[C("input",{ref:o,id:t,type:"radio",value:t,className:Bt("h-4 w-4 border-gray-300 text-indigo-600 focus:ring-indigo-600",r),...n}),C("label",{htmlFor:t,className:"ml-3 block text-sm font-medium leading-6 text-gray-900",children:e})]})),I5e=new Set,Yr=new WeakMap,bs=new WeakMap,Oa=new WeakMap,dw=new WeakMap,xm=new WeakMap,bm=new WeakMap,L5e=new WeakSet;let Ba;const Vo="__aa_tgt",hw="__aa_del",D5e=e=>{const t=j5e(e);t&&t.forEach(r=>N5e(r))},P5e=e=>{e.forEach(t=>{t.target===Ba&&M5e(),Yr.has(t.target)&&cc(t.target)})};function F5e(e){const t=dw.get(e);t==null||t.disconnect();let r=Yr.get(e),n=0;const o=5;r||(r=Ps(e),Yr.set(e,r));const{offsetWidth:a,offsetHeight:l}=Ba,d=[r.top-o,a-(r.left+o+r.width),l-(r.top+o+r.height),r.left-o].map(v=>`${-1*Math.floor(v)}px`).join(" "),h=new IntersectionObserver(()=>{++n>1&&cc(e)},{root:Ba,threshold:1,rootMargin:d});h.observe(e),dw.set(e,h)}function cc(e){clearTimeout(bm.get(e));const t=ev(e),r=typeof t=="function"?500:t.duration;bm.set(e,setTimeout(async()=>{const n=Oa.get(e);try{await(n==null?void 0:n.finished),Yr.set(e,Ps(e)),F5e(e)}catch{}},r))}function M5e(){clearTimeout(bm.get(Ba)),bm.set(Ba,setTimeout(()=>{I5e.forEach(e=>z5e(e,t=>T5e(()=>cc(t))))},100))}function T5e(e){typeof requestIdleCallback=="function"?requestIdleCallback(()=>e()):requestAnimationFrame(()=>e())}let DC;typeof window<"u"&&(Ba=document.documentElement,new MutationObserver(D5e),DC=new ResizeObserver(P5e),DC.observe(Ba));function j5e(e){return e.reduce((n,o)=>[...n,...Array.from(o.addedNodes),...Array.from(o.removedNodes)],[]).every(n=>n.nodeName==="#comment")?!1:e.reduce((n,o)=>{if(n===!1)return!1;if(o.target instanceof Element){if(w3(o.target),!n.has(o.target)){n.add(o.target);for(let a=0;ar(e,xm.has(e)));for(let r=0;ro(n,xm.has(n)))}}function W5e(e){const t=Yr.get(e),r=Ps(e);if(!D7(e))return Yr.set(e,r);let n;if(!t)return;const o=ev(e);if(typeof o!="function"){const a=t.left-r.left,l=t.top-r.top,[c,d,h,v]=TR(e,t,r),y={transform:`translate(${a}px, ${l}px)`},w={transform:"translate(0, 0)"};c!==d&&(y.width=`${c}px`,w.width=`${d}px`),h!==v&&(y.height=`${h}px`,w.height=`${v}px`),n=e.animate([y,w],{duration:o.duration,easing:o.easing})}else n=new Animation(o(e,"remain",t,r)),n.play();Oa.set(e,n),Yr.set(e,r),n.addEventListener("finish",cc.bind(null,e))}function V5e(e){const t=Ps(e);Yr.set(e,t);const r=ev(e);if(!D7(e))return;let n;typeof r!="function"?n=e.animate([{transform:"scale(.98)",opacity:0},{transform:"scale(0.98)",opacity:0,offset:.5},{transform:"scale(1)",opacity:1}],{duration:r.duration*1.5,easing:"ease-in"}):(n=new Animation(r(e,"add",t)),n.play()),Oa.set(e,n),n.addEventListener("finish",cc.bind(null,e))}function U5e(e){var t;if(!bs.has(e)||!Yr.has(e))return;const[r,n]=bs.get(e);Object.defineProperty(e,hw,{value:!0}),n&&n.parentNode&&n.parentNode instanceof Element?n.parentNode.insertBefore(e,n):r&&r.parentNode?r.parentNode.appendChild(e):(t=jR(e))===null||t===void 0||t.appendChild(e);function o(){var w;e.remove(),Yr.delete(e),bs.delete(e),Oa.delete(e),(w=dw.get(e))===null||w===void 0||w.disconnect()}if(!D7(e))return o();const[a,l,c,d]=H5e(e),h=ev(e),v=Yr.get(e);let y;Object.assign(e.style,{position:"absolute",top:`${a}px`,left:`${l}px`,width:`${c}px`,height:`${d}px`,margin:0,pointerEvents:"none",transformOrigin:"center",zIndex:100}),typeof h!="function"?y=e.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.98)",opacity:0}],{duration:h.duration,easing:"ease-out"}):(y=new Animation(h(e,"remove",v)),y.play()),Oa.set(e,y),y.addEventListener("finish",o)}function H5e(e){const t=Yr.get(e),[r,,n]=TR(e,t,Ps(e));let o=e.parentElement;for(;o&&(getComputedStyle(o).position==="static"||o instanceof HTMLBodyElement);)o=o.parentElement;o||(o=document.body);const a=getComputedStyle(o),l=Yr.get(o)||Ps(o),c=Math.round(t.top-l.top)-uo(a.borderTopWidth),d=Math.round(t.left-l.left)-uo(a.borderLeftWidth);return[c,d,r,n]}var Of,q5e=new Uint8Array(16);function Z5e(){if(!Of&&(Of=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Of))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Of(q5e)}const Q5e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function G5e(e){return typeof e=="string"&&Q5e.test(e)}var cr=[];for(var x3=0;x3<256;++x3)cr.push((x3+256).toString(16).substr(1));function Y5e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(cr[e[t+0]]+cr[e[t+1]]+cr[e[t+2]]+cr[e[t+3]]+"-"+cr[e[t+4]]+cr[e[t+5]]+"-"+cr[e[t+6]]+cr[e[t+7]]+"-"+cr[e[t+8]]+cr[e[t+9]]+"-"+cr[e[t+10]]+cr[e[t+11]]+cr[e[t+12]]+cr[e[t+13]]+cr[e[t+14]]+cr[e[t+15]]).toLowerCase();if(!G5e(r))throw TypeError("Stringified UUID is invalid");return r}function K5e(e,t,r){e=e||{};var n=e.random||(e.rng||Z5e)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return Y5e(n)}const X5e=e=>{const t=m.useRef(K5e());return e||t.current};Da(({options:e,className:t="",label:r,children:n,value:o,name:a,onChange:l,error:c,message:d,style:h,compact:v})=>{const y=X5e(a);return Q("div",{style:h,className:Bt("relative",t),children:[!!r&&C(uc,{className:"text-base font-semibold text-gray-900",label:r}),n,Q("fieldset",{className:"mt-4",children:[C("legend",{className:"sr-only",children:"Notification method"}),C("div",{className:"space-y-2",children:e.map(({id:w,label:k})=>C($5e,{id:`${y} - ${w}`,label:k,name:y,checked:o===void 0?o:o===w,onChange:()=>l==null?void 0:l(w)},w))})]}),!v&&C(Gs,{message:d,error:c})]})});Da(({label:e,message:t,error:r,id:n,emptyOption:o="Select an Option",compact:a,style:l,containerClassName:c="",className:d,options:h,disableEmptyOption:v=!1,...y},w)=>Q("div",{style:l,className:Bt("flex flex-col",c),children:[!!e&&C(uc,{htmlFor:n,label:e}),Q("select",{ref:w,className:Bt("block w-full mt-1 rounded-md shadow-xs border-gray-300 placeholder:text-black-300 focus:border-green-500 focus:ring-2 focus:ring-green-300 sm:text-sm placeholder-black-300",d,!!r&&"border-red focus:border-red focus:ring-red-200"),id:n,defaultValue:"",...y,children:[o&&C("option",{disabled:v,value:"",children:o}),h.map(k=>C("option",{value:k.value,children:k.label},k.value))]}),!a&&C(Gs,{message:t,error:r})]}));Da(({label:e,message:t,error:r,id:n,compact:o,style:a,containerClassName:l,className:c,...d},h)=>Q("div",{style:a,className:l,children:[e&&C(uc,{className:"block text-sm font-medium",htmlFor:n,label:e}),C("div",{className:"mt-1",children:C("textarea",{ref:h,id:n,className:Bt("block w-full rounded-md shadow-xs text-neutrals-dark-400 border-gray-300 placeholder:text-primary-white-600 focus:border-secondary-green focus:ring-2 focus:ring-secondary-green-300 sm:text-sm",!!r&&"border-red focus:border-red focus:ring-red-200",!!d.disabled&&"bg-black-100 border-gray-500",c),...d})}),!o&&C(Gs,{message:t,error:r})]}));const J5e=()=>{const[e,t]=m.useState(window.innerWidth);function r(){t(window.innerWidth)}return m.useEffect(()=>(window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}),[]),e<=768},epe=()=>{const e=Di(d=>d.profile),t=Di(d=>d.setProfile),r=Di(d=>d.setSession),n=Ut(),[o,a]=m.useState(!1),l=()=>{t(null),r(null),n(Se.login),We.info("You has been logged out!")},c=J5e();return Q("header",{className:"border-1 relative flex min-h-[93px] w-full flex-row items-center justify-between border bg-white px-2 shadow-lg md:px-12",children:[C("img",{src:"https://assets-global.website-files.com/641990da28209a736d8d7c6a/641990da28209a61b68d7cc2_eo-logo%201.svg",alt:"Leters EO",className:"h-11 w-20",onClick:()=>{window.location.href="/"}}),Q("div",{className:"right-12 flex flex-row items-center gap-2",children:[c?Q(yo,{children:[C("img",{src:"https://assets-global.website-files.com/6087423fbc61c1bded1c5d8e/63da9be7c173debd1e84e3c4_image%206.png",onClick:()=>{window.open("https://www.eo.care/web/privacy-policy","_blank")}}),C(Et.QuestionMarkCircleIcon,{onClick:()=>a(!0),className:"h-6 w-6 rounded-full bg-primary-900 stroke-2"})]}):Q(yo,{children:[C(Vt,{variant:"tertiary-link",onClick:()=>{window.open("https://www.eo.care/web/privacy-policy","_blank")},children:C(he,{font:"regular",children:"Privacy Policy"})}),C(Vt,{left:C(Et.QuestionMarkCircleIcon,{className:"stroke-2"}),onClick:()=>a(!0),children:C(he,{font:"regular",children:"Need Help"})})]}),e&&C(Vt,{variant:"outline",onClick:()=>l(),className:"",children:"Log out"})]}),C(_R,{isOpen:o,onClose:()=>{},controller:a,children:Q("div",{className:"flex h-full w-full flex-col justify-center bg-white px-10 py-4 leading-[48px] md:px-12",children:[C(he,{variant:"large",className:"mb-0 font-nobel text-5xl md:mb-6",children:"We're here."}),C(he,{font:"light",className:"mb-6 whitespace-normal text-3xl lg:whitespace-nowrap",children:"Have questions or prefer to complete these questions and set-up your account with an eo rep?"}),Q("ul",{className:"list-disc pl-4",children:[C("li",{children:Q(he,{variant:"base",className:"mb-5 text-2xl font-light tracking-wide",children:[C("a",{href:"https://calendly.com/help-eo/30min",className:"underline decoration-1 underline-offset-8",children:C("strong",{children:"Schedule a video chat"})})," ","with a member of our team."]})}),C("li",{children:Q(he,{variant:"base",className:"mb-5 text-2xl font-light tracking-wide",children:["Call"," ",C("a",{href:"tel:877-707-0706",children:C("strong",{className:"underline decoration-1 underline-offset-8",children:"877-707-0706"})})]})}),C("li",{children:Q(he,{variant:"base",className:"mb-5 text-2xl font-light tracking-wide",children:["Email"," ",C("a",{href:"mailto:members@eo.care",className:"underline decoration-1 underline-offset-8",children:C("strong",{children:"members@eo.care"})})]})})]})]})})]})},_t=({children:e})=>C("section",{className:"flex h-screen w-screen flex-col bg-cream-100",children:Q("div",{className:"flex h-full w-full flex-col gap-y-10 overflow-auto pb-4",children:[C(epe,{}),e]})}),tpe=()=>{const[e]=Kn(),t=e.get("name"),r=e.get("last"),n=e.get("dob"),o=e.get("email"),a=e.get("caregiver"),l=e.get("submission_id"),c=e.get("gender"),[d,h,v]=(n==null?void 0:n.split("-"))||[],y=Ut();return l||y(Se.cancerProfile),m.useEffect(()=>{Vs(Hf)},[]),C(_t,{children:C("div",{className:"mb-10 flex h-screen flex-col",children:C("iframe",{id:`JotFormIFrame-${Hf}`,title:"",onLoad:()=>window.parent.scrollTo(0,0),allow:"geolocation; microphone; camera",allowTransparency:!0,allowFullScreen:!0,src:`https://form.jotform.com/${Hf}?name[0]=${t}&name[1]=${r}&email=${o}&dob[month]=${h}&dob[day]=${d}&dob[year]=${v}&caregiver=${a}&gender=${c}`,className:"h-full w-full",style:{minWidth:"100%",height:"539px",border:"none"}})})})},P7=e=>{const t=m.useRef(!0);m.useEffect(()=>{t.current&&(t.current=!1,e())},[])},rpe=()=>{const[e]=Kn(),t=Ut(),r=e.get("type"),n=r==="Patient"?Hf:KN;return r||t(Se.cancerUserTypeSelectDemo),P7(()=>{setTimeout(()=>{Vs(n)},400)}),C(_t,{children:C("div",{className:"mb-10 flex h-screen flex-col",children:C("iframe",{id:`JotFormIFrame-${n}`,title:"",onLoad:()=>window.parent.scrollTo(0,0),allow:"geolocation; microphone; camera",allowTransparency:!0,allowFullScreen:!0,src:`https://form.jotform.com/${n}`,className:"h-full w-full",style:{minWidth:"100%",height:"539px",border:"none"}})})})};function NR(e,t){return function(){return e.apply(t,arguments)}}const{toString:npe}=Object.prototype,{getPrototypeOf:F7}=Object,tv=(e=>t=>{const r=npe.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ti=e=>(e=e.toLowerCase(),t=>tv(t)===e),rv=e=>t=>typeof t===e,{isArray:Ys}=Array,Gu=rv("undefined");function ope(e){return e!==null&&!Gu(e)&&e.constructor!==null&&!Gu(e.constructor)&&Jo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const zR=ti("ArrayBuffer");function ipe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&zR(e.buffer),t}const ape=rv("string"),Jo=rv("function"),WR=rv("number"),M7=e=>e!==null&&typeof e=="object",spe=e=>e===!0||e===!1,N5=e=>{if(tv(e)!=="object")return!1;const t=F7(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},lpe=ti("Date"),upe=ti("File"),cpe=ti("Blob"),fpe=ti("FileList"),dpe=e=>M7(e)&&Jo(e.pipe),hpe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Jo(e.append)&&((t=tv(e))==="formdata"||t==="object"&&Jo(e.toString)&&e.toString()==="[object FormData]"))},ppe=ti("URLSearchParams"),mpe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function fc(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Ys(e))for(n=0,o=e.length;n0;)if(o=r[n],t===o.toLowerCase())return o;return null}const UR=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),HR=e=>!Gu(e)&&e!==UR;function pw(){const{caseless:e}=HR(this)&&this||{},t={},r=(n,o)=>{const a=e&&VR(t,o)||o;N5(t[a])&&N5(n)?t[a]=pw(t[a],n):N5(n)?t[a]=pw({},n):Ys(n)?t[a]=n.slice():t[a]=n};for(let n=0,o=arguments.length;n(fc(t,(o,a)=>{r&&Jo(o)?e[a]=NR(o,r):e[a]=o},{allOwnKeys:n}),e),gpe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ype=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},wpe=(e,t,r,n)=>{let o,a,l;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)l=o[a],(!n||n(l,e,t))&&!c[l]&&(t[l]=e[l],c[l]=!0);e=r!==!1&&F7(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},xpe=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},bpe=e=>{if(!e)return null;if(Ys(e))return e;let t=e.length;if(!WR(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Cpe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&F7(Uint8Array)),Epe=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},_pe=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},kpe=ti("HTMLFormElement"),Rpe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),PC=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ape=ti("RegExp"),qR=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};fc(r,(o,a)=>{t(o,a,e)!==!1&&(n[a]=o)}),Object.defineProperties(e,n)},Spe=e=>{qR(e,(t,r)=>{if(Jo(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Jo(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Ope=(e,t)=>{const r={},n=o=>{o.forEach(a=>{r[a]=!0})};return Ys(e)?n(e):n(String(e).split(t)),r},Bpe=()=>{},$pe=(e,t)=>(e=+e,Number.isFinite(e)?e:t),b3="abcdefghijklmnopqrstuvwxyz",FC="0123456789",ZR={DIGIT:FC,ALPHA:b3,ALPHA_DIGIT:b3+b3.toUpperCase()+FC},Ipe=(e=16,t=ZR.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Lpe(e){return!!(e&&Jo(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Dpe=e=>{const t=new Array(10),r=(n,o)=>{if(M7(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const a=Ys(n)?[]:{};return fc(n,(l,c)=>{const d=r(l,o+1);!Gu(d)&&(a[c]=d)}),t[o]=void 0,a}}return n};return r(e,0)},Z={isArray:Ys,isArrayBuffer:zR,isBuffer:ope,isFormData:hpe,isArrayBufferView:ipe,isString:ape,isNumber:WR,isBoolean:spe,isObject:M7,isPlainObject:N5,isUndefined:Gu,isDate:lpe,isFile:upe,isBlob:cpe,isRegExp:Ape,isFunction:Jo,isStream:dpe,isURLSearchParams:ppe,isTypedArray:Cpe,isFileList:fpe,forEach:fc,merge:pw,extend:vpe,trim:mpe,stripBOM:gpe,inherits:ype,toFlatObject:wpe,kindOf:tv,kindOfTest:ti,endsWith:xpe,toArray:bpe,forEachEntry:Epe,matchAll:_pe,isHTMLForm:kpe,hasOwnProperty:PC,hasOwnProp:PC,reduceDescriptors:qR,freezeMethods:Spe,toObjectSet:Ope,toCamelCase:Rpe,noop:Bpe,toFiniteNumber:$pe,findKey:VR,global:UR,isContextDefined:HR,ALPHABET:ZR,generateString:Ipe,isSpecCompliantForm:Lpe,toJSONObject:Dpe};function Xe(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}Z.inherits(Xe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Z.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const QR=Xe.prototype,GR={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{GR[e]={value:e}});Object.defineProperties(Xe,GR);Object.defineProperty(QR,"isAxiosError",{value:!0});Xe.from=(e,t,r,n,o,a)=>{const l=Object.create(QR);return Z.toFlatObject(e,l,function(d){return d!==Error.prototype},c=>c!=="isAxiosError"),Xe.call(l,e.message,t,r,n,o),l.cause=e,l.name=e.name,a&&Object.assign(l,a),l};const Ppe=null;function mw(e){return Z.isPlainObject(e)||Z.isArray(e)}function YR(e){return Z.endsWith(e,"[]")?e.slice(0,-2):e}function MC(e,t,r){return e?e.concat(t).map(function(o,a){return o=YR(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function Fpe(e){return Z.isArray(e)&&!e.some(mw)}const Mpe=Z.toFlatObject(Z,{},null,function(t){return/^is[A-Z]/.test(t)});function nv(e,t,r){if(!Z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Z.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(R,$){return!Z.isUndefined($[R])});const n=r.metaTokens,o=r.visitor||v,a=r.dots,l=r.indexes,d=(r.Blob||typeof Blob<"u"&&Blob)&&Z.isSpecCompliantForm(t);if(!Z.isFunction(o))throw new TypeError("visitor must be a function");function h(_){if(_===null)return"";if(Z.isDate(_))return _.toISOString();if(!d&&Z.isBlob(_))throw new Xe("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(_)||Z.isTypedArray(_)?d&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function v(_,R,$){let E=_;if(_&&!$&&typeof _=="object"){if(Z.endsWith(R,"{}"))R=n?R:R.slice(0,-2),_=JSON.stringify(_);else if(Z.isArray(_)&&Fpe(_)||(Z.isFileList(_)||Z.endsWith(R,"[]"))&&(E=Z.toArray(_)))return R=YR(R),E.forEach(function(B,I){!(Z.isUndefined(B)||B===null)&&t.append(l===!0?MC([R],I,a):l===null?R:R+"[]",h(B))}),!1}return mw(_)?!0:(t.append(MC($,R,a),h(_)),!1)}const y=[],w=Object.assign(Mpe,{defaultVisitor:v,convertValue:h,isVisitable:mw});function k(_,R){if(!Z.isUndefined(_)){if(y.indexOf(_)!==-1)throw Error("Circular reference detected in "+R.join("."));y.push(_),Z.forEach(_,function(E,b){(!(Z.isUndefined(E)||E===null)&&o.call(t,E,Z.isString(b)?b.trim():b,R,w))===!0&&k(E,R?R.concat(b):[b])}),y.pop()}}if(!Z.isObject(e))throw new TypeError("data must be an object");return k(e),t}function TC(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function T7(e,t){this._pairs=[],e&&nv(e,this,t)}const KR=T7.prototype;KR.append=function(t,r){this._pairs.push([t,r])};KR.toString=function(t){const r=t?function(n){return t.call(this,n,TC)}:TC;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Tpe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function XR(e,t,r){if(!t)return e;const n=r&&r.encode||Tpe,o=r&&r.serialize;let a;if(o?a=o(t,r):a=Z.isURLSearchParams(t)?t.toString():new T7(t,r).toString(n),a){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class jpe{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Z.forEach(this.handlers,function(n){n!==null&&t(n)})}}const jC=jpe,JR={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Npe=typeof URLSearchParams<"u"?URLSearchParams:T7,zpe=typeof FormData<"u"?FormData:null,Wpe=typeof Blob<"u"?Blob:null,Vpe=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Upe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),vo={isBrowser:!0,classes:{URLSearchParams:Npe,FormData:zpe,Blob:Wpe},isStandardBrowserEnv:Vpe,isStandardBrowserWebWorkerEnv:Upe,protocols:["http","https","file","blob","url","data"]};function Hpe(e,t){return nv(e,new vo.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,a){return vo.isNode&&Z.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function qpe(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Zpe(e){const t={},r=Object.keys(e);let n;const o=r.length;let a;for(n=0;n=r.length;return l=!l&&Z.isArray(o)?o.length:l,d?(Z.hasOwnProp(o,l)?o[l]=[o[l],n]:o[l]=n,!c):((!o[l]||!Z.isObject(o[l]))&&(o[l]=[]),t(r,n,o[l],a)&&Z.isArray(o[l])&&(o[l]=Zpe(o[l])),!c)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){const r={};return Z.forEachEntry(e,(n,o)=>{t(qpe(n),o,r,0)}),r}return null}const Qpe={"Content-Type":void 0};function Gpe(e,t,r){if(Z.isString(e))try{return(t||JSON.parse)(e),Z.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const ov={transitional:JR,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=Z.isObject(t);if(a&&Z.isHTMLForm(t)&&(t=new FormData(t)),Z.isFormData(t))return o&&o?JSON.stringify(eA(t)):t;if(Z.isArrayBuffer(t)||Z.isBuffer(t)||Z.isStream(t)||Z.isFile(t)||Z.isBlob(t))return t;if(Z.isArrayBufferView(t))return t.buffer;if(Z.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Hpe(t,this.formSerializer).toString();if((c=Z.isFileList(t))||n.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return nv(c?{"files[]":t}:t,d&&new d,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),Gpe(t)):t}],transformResponse:[function(t){const r=this.transitional||ov.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(t&&Z.isString(t)&&(n&&!this.responseType||o)){const l=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(l)throw c.name==="SyntaxError"?Xe.from(c,Xe.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:vo.classes.FormData,Blob:vo.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Z.forEach(["delete","get","head"],function(t){ov.headers[t]={}});Z.forEach(["post","put","patch"],function(t){ov.headers[t]=Z.merge(Qpe)});const j7=ov,Ype=Z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Kpe=e=>{const t={};let r,n,o;return e&&e.split(` `).forEach(function(l){o=l.indexOf(":"),r=l.substring(0,o).trim().toLowerCase(),n=l.substring(o+1).trim(),!(!r||t[r]&&Ype[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},NC=Symbol("internals");function Pl(e){return e&&String(e).trim().toLowerCase()}function z5(e){return e===!1||e==null?e:Z.isArray(e)?e.map(z5):String(e)}function Xpe(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Jpe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function C3(e,t,r,n,o){if(Z.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!Z.isString(t)){if(Z.isString(n))return t.indexOf(n)!==-1;if(Z.isRegExp(n))return n.test(t)}}function eme(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function tme(e,t){const r=Z.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,a,l){return this[n].call(this,t,o,a,l)},configurable:!0})})}class iv{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function a(c,d,h){const v=Pl(d);if(!v)throw new Error("header name must be a non-empty string");const y=Z.findKey(o,v);(!y||o[y]===void 0||h===!0||h===void 0&&o[y]!==!1)&&(o[y||d]=z5(c))}const l=(c,d)=>Z.forEach(c,(h,v)=>a(h,v,d));return Z.isPlainObject(t)||t instanceof this.constructor?l(t,r):Z.isString(t)&&(t=t.trim())&&!Jpe(t)?l(Kpe(t),r):t!=null&&a(r,t,n),this}get(t,r){if(t=Pl(t),t){const n=Z.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return Xpe(o);if(Z.isFunction(r))return r.call(this,o,n);if(Z.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Pl(t),t){const n=Z.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||C3(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function a(l){if(l=Pl(l),l){const c=Z.findKey(n,l);c&&(!r||C3(n,n[c],c,r))&&(delete n[c],o=!0)}}return Z.isArray(t)?t.forEach(a):a(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const a=r[n];(!t||C3(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const r=this,n={};return Z.forEach(this,(o,a)=>{const l=Z.findKey(n,a);if(l){r[l]=z5(o),delete r[a];return}const c=t?eme(a):String(a).trim();c!==a&&delete r[a],r[c]=z5(o),n[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return Z.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&Z.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[NC]=this[NC]={accessors:{}}).accessors,o=this.prototype;function a(l){const c=Pl(l);n[c]||(tme(o,l),n[c]=!0)}return Z.isArray(t)?t.forEach(a):a(t),this}}iv.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Z.freezeMethods(iv.prototype);Z.freezeMethods(iv);const Zo=iv;function E3(e,t){const r=this||j7,n=t||r,o=Zo.from(n.headers);let a=n.data;return Z.forEach(e,function(c){a=c.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function tA(e){return!!(e&&e.__CANCEL__)}function dc(e,t,r){Xe.call(this,e??"canceled",Xe.ERR_CANCELED,t,r),this.name="CanceledError"}Z.inherits(dc,Xe,{__CANCEL__:!0});function rme(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Xe("Request failed with status code "+r.status,[Xe.ERR_BAD_REQUEST,Xe.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const nme=vo.isStandardBrowserEnv?function(){return{write:function(r,n,o,a,l,c){const d=[];d.push(r+"="+encodeURIComponent(n)),Z.isNumber(o)&&d.push("expires="+new Date(o).toGMTString()),Z.isString(a)&&d.push("path="+a),Z.isString(l)&&d.push("domain="+l),c===!0&&d.push("secure"),document.cookie=d.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function ome(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ime(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function rA(e,t){return e&&!ome(t)?ime(e,t):t}const ame=vo.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(a){let l=a;return t&&(r.setAttribute("href",l),l=r.href),r.setAttribute("href",l),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(l){const c=Z.isString(l)?o(l):l;return c.protocol===n.protocol&&c.host===n.host}}():function(){return function(){return!0}}();function sme(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function lme(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,a=0,l;return t=t!==void 0?t:1e3,function(d){const h=Date.now(),v=n[a];l||(l=h),r[o]=d,n[o]=h;let y=a,w=0;for(;y!==o;)w+=r[y++],y=y%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),h-l{const a=o.loaded,l=o.lengthComputable?o.total:void 0,c=a-r,d=n(c),h=a<=l;r=a;const v={loaded:a,total:l,progress:l?a/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&h?(l-a)/d:void 0,event:o};v[t?"download":"upload"]=!0,e(v)}}const ume=typeof XMLHttpRequest<"u",cme=ume&&function(e){return new Promise(function(r,n){let o=e.data;const a=Zo.from(e.headers).normalize(),l=e.responseType;let c;function d(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}Z.isFormData(o)&&(vo.isStandardBrowserEnv||vo.isStandardBrowserWebWorkerEnv)&&a.setContentType(!1);let h=new XMLHttpRequest;if(e.auth){const k=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(k+":"+_))}const v=rA(e.baseURL,e.url);h.open(e.method.toUpperCase(),XR(v,e.params,e.paramsSerializer),!0),h.timeout=e.timeout;function y(){if(!h)return;const k=Zo.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),R={data:!l||l==="text"||l==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:k,config:e,request:h};rme(function(E){r(E),d()},function(E){n(E),d()},R),h=null}if("onloadend"in h?h.onloadend=y:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(y)},h.onabort=function(){h&&(n(new Xe("Request aborted",Xe.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new Xe("Network Error",Xe.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let _=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const R=e.transitional||JR;e.timeoutErrorMessage&&(_=e.timeoutErrorMessage),n(new Xe(_,R.clarifyTimeoutError?Xe.ETIMEDOUT:Xe.ECONNABORTED,e,h)),h=null},vo.isStandardBrowserEnv){const k=(e.withCredentials||ame(v))&&e.xsrfCookieName&&nme.read(e.xsrfCookieName);k&&a.set(e.xsrfHeaderName,k)}o===void 0&&a.setContentType(null),"setRequestHeader"in h&&Z.forEach(a.toJSON(),function(_,R){h.setRequestHeader(R,_)}),Z.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),l&&l!=="json"&&(h.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&h.addEventListener("progress",zC(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",zC(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=k=>{h&&(n(!k||k.type?new dc(null,e,h):k),h.abort(),h=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const w=sme(v);if(w&&vo.protocols.indexOf(w)===-1){n(new Xe("Unsupported protocol "+w+":",Xe.ERR_BAD_REQUEST,e));return}h.send(o||null)})},W5={http:Ppe,xhr:cme};Z.forEach(W5,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const fme={getAdapter:e=>{e=Z.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let o=0;oe instanceof Zo?e.toJSON():e;function Fs(e,t){t=t||{};const r={};function n(h,v,y){return Z.isPlainObject(h)&&Z.isPlainObject(v)?Z.merge.call({caseless:y},h,v):Z.isPlainObject(v)?Z.merge({},v):Z.isArray(v)?v.slice():v}function o(h,v,y){if(Z.isUndefined(v)){if(!Z.isUndefined(h))return n(void 0,h,y)}else return n(h,v,y)}function a(h,v){if(!Z.isUndefined(v))return n(void 0,v)}function l(h,v){if(Z.isUndefined(v)){if(!Z.isUndefined(h))return n(void 0,h)}else return n(void 0,v)}function c(h,v,y){if(y in t)return n(h,v);if(y in e)return n(void 0,h)}const d={url:a,method:a,data:a,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c,headers:(h,v)=>o(VC(h),VC(v),!0)};return Z.forEach(Object.keys(e).concat(Object.keys(t)),function(v){const y=d[v]||o,w=y(e[v],t[v],v);Z.isUndefined(w)&&y!==c||(r[v]=w)}),r}const nA="1.3.6",N7={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{N7[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const UC={};N7.transitional=function(t,r,n){function o(a,l){return"[Axios v"+nA+"] Transitional option '"+a+"'"+l+(n?". "+n:"")}return(a,l,c)=>{if(t===!1)throw new Xe(o(l," has been removed"+(r?" in "+r:"")),Xe.ERR_DEPRECATED);return r&&!UC[l]&&(UC[l]=!0,console.warn(o(l," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,l,c):!0}};function dme(e,t,r){if(typeof e!="object")throw new Xe("options must be an object",Xe.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const a=n[o],l=t[a];if(l){const c=e[a],d=c===void 0||l(c,a,e);if(d!==!0)throw new Xe("option "+a+" must be "+d,Xe.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Xe("Unknown option "+a,Xe.ERR_BAD_OPTION)}}const vw={assertOptions:dme,validators:N7},hi=vw.validators;class Cm{constructor(t){this.defaults=t,this.interceptors={request:new jC,response:new jC}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Fs(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&vw.assertOptions(n,{silentJSONParsing:hi.transitional(hi.boolean),forcedJSONParsing:hi.transitional(hi.boolean),clarifyTimeoutError:hi.transitional(hi.boolean)},!1),o!=null&&(Z.isFunction(o)?r.paramsSerializer={serialize:o}:vw.assertOptions(o,{encode:hi.function,serialize:hi.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let l;l=a&&Z.merge(a.common,a[r.method]),l&&Z.forEach(["delete","get","head","post","put","patch","common"],_=>{delete a[_]}),r.headers=Zo.concat(l,a);const c=[];let d=!0;this.interceptors.request.forEach(function(R){typeof R.runWhen=="function"&&R.runWhen(r)===!1||(d=d&&R.synchronous,c.unshift(R.fulfilled,R.rejected))});const h=[];this.interceptors.response.forEach(function(R){h.push(R.fulfilled,R.rejected)});let v,y=0,w;if(!d){const _=[WC.bind(this),void 0];for(_.unshift.apply(_,c),_.push.apply(_,h),w=_.length,v=Promise.resolve(r);y{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a;const l=new Promise(c=>{n.subscribe(c),a=c}).then(o);return l.cancel=function(){n.unsubscribe(a)},l},t(function(a,l,c){n.reason||(n.reason=new dc(a,l,c),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new z7(function(o){t=o}),cancel:t}}}const hme=z7;function pme(e){return function(r){return e.apply(null,r)}}function mme(e){return Z.isObject(e)&&e.isAxiosError===!0}const gw={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gw).forEach(([e,t])=>{gw[t]=e});const vme=gw;function oA(e){const t=new V5(e),r=NR(V5.prototype.request,t);return Z.extend(r,V5.prototype,t,{allOwnKeys:!0}),Z.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return oA(Fs(e,o))},r}const tr=oA(j7);tr.Axios=V5;tr.CanceledError=dc;tr.CancelToken=hme;tr.isCancel=tA;tr.VERSION=nA;tr.toFormData=nv;tr.AxiosError=Xe;tr.Cancel=tr.CanceledError;tr.all=function(t){return Promise.all(t)};tr.spread=pme;tr.isAxiosError=mme;tr.mergeConfig=Fs;tr.AxiosHeaders=Zo;tr.formToJSON=e=>eA(Z.isHTMLForm(e)?new FormData(e):e);tr.HttpStatusCode=vme;tr.default=tr;const Ui=tr,en=Ui.create({baseURL:"",headers:{"Content-Type":"application/json"}}),ko=()=>{const t={headers:{Authorization:`Bearer ${Di(w=>{var k;return(k=w.session)==null?void 0:k.token})}`}};return{validateZipCode:async w=>en.post(`${Nn}/v2/profile/validate_zip_code`,{zip:w},t),combineProfileOne:async w=>en.post(`${Nn}/v2/profile/submit_profiling_one`,{submission_id:w},t),combineProfileTwo:async w=>en.post(`${Nn}/v2/profile/combine_profile_two`,{submission_id:w},t),sendEmailToRecoveryPassword:async w=>en.post(`${Nn}/v2/profile/request_password_reset`,{email:w}),resetPassword:async w=>en.post(`${Nn}/v2/profile/reset_password`,w),getSubmission:async()=>await en.get(`${Nn}/v2/profile/profiling_one`,t),getSubmissionById:async w=>await en.get(`${Nn}/v2/submission/profiling_one?submission_id=${w}`,t),eligibleEmail:async w=>await en.get(`${Nn}/v2/profiles/eligible?email=${w}`,t),postCancerFormSubmission:async w=>await en.post(`${J9}/api/v2/cancer/profile`,w),postCancerSurveyFormSubmission:async w=>await en.post(`${J9}/api/cancer/survey`,w)}},gme=()=>{const[e]=Kn(),t=e.get("submission_id")||"",r=Ut();t||r(Se.cancerProfile);const{postCancerFormSubmission:n}=ko(),{mutate:o}=Xn({mutationFn:n,mutationKey:["postCancerFormSubmission",t],onError:a=>{var l;Ui.isAxiosError(a)?((l=a.response)==null?void 0:l.status)!==200&&We.error("Something went wrong"):We.error("Something went wrong")}});return P7(()=>o({submission_id:t})),C(_t,{children:Q("div",{className:"flex flex-col items-center justify-center px-[20%]",children:[C(he,{variant:"large",className:"font-nunito font-bold",style:{fontFamily:"nunito",lineHeight:"55px",fontSize:"45px"},children:"All done!"}),C("br",{}),Q(he,{variant:"base",font:"regular",className:"text-center font-nunito",style:{fontWeight:"300px",fontFamily:"nunito",lineHeight:"40px",fontSize:"28px"},children:["You’ll receive your initial, personalized, clinician-approved care care plan via email within 24 hours. ",C("br",{}),C("br",{}),"If you’ve opted to receive a medical card through eo and/or take home delivery of your products, we’ll communicate your next steps in separate email(s) you’ll receive shortly. ",C("br",{}),C("br",{}),"Have questions? We’re here. Email members@eo.care, call"," ",C("a",{href:"tel:+1-877-707-0706",children:"877-707-0706"}),", or schedule a free consultation."]})]})})},yme=()=>{const[e]=Kn(),t=e.get("email")||"";return m.useEffect(()=>{Vs(i3)},[]),C(_t,{children:C("div",{className:"mb-10 flex h-screen flex-col",children:C("iframe",{id:`JotFormIFrame-${i3}`,title:"",onLoad:()=>window.parent.scrollTo(0,0),allow:"geolocation; microphone; camera",allowTransparency:!0,allowFullScreen:!0,src:`https://form.jotform.com/${i3}?email=${t}`,className:"h-full w-full",style:{minWidth:"100%",height:"539px",border:"none"}})})})},wme=()=>{const[e]=Kn(),t=e.get("submission_id")||"",r=Ut();t||r(Se.cancerProfile);const{postCancerSurveyFormSubmission:n}=ko(),{mutate:o}=Xn({mutationFn:n,mutationKey:["postCancerSurveyFormSubmission",t],onError:a=>{var l;Ui.isAxiosError(a)?((l=a.response)==null?void 0:l.status)!==200&&We.error("Something went wrong"):We.error("Something went wrong")}});return P7(()=>o({submission_id:t})),C(_t,{children:Q("div",{className:"flex h-full flex-col items-center justify-center px-[20%]",children:[C(he,{variant:"large",className:"font-nunito font-bold",style:{fontFamily:"nunito",lineHeight:"55px",fontSize:"45px"},children:"All done!"}),C("br",{}),Q(he,{variant:"base",font:"regular",className:"text-center font-nunito",style:{fontWeight:"300px",fontFamily:"nunito",lineHeight:"40px",fontSize:"28px"},children:["We receive your feedback! ",C("br",{}),C("br",{}),"Thank you! ",C("br",{}),C("br",{}),"Have questions? We’re here. Email members@eo.care, call"," ",C("a",{href:"tel:+1-877-707-0706",children:"877-707-0706"}),", or schedule a free consultation."]})]})})},xme=()=>(m.useEffect(()=>{Vs(o3)},[]),C(_t,{children:C("div",{className:"mb-10 flex h-screen flex-col",children:C("iframe",{id:`JotFormIFrame-${o3}`,title:"",onLoad:()=>window.parent.scrollTo(0,0),allow:"geolocation; microphone; camera",allowTransparency:!0,allowFullScreen:!0,src:`https://form.jotform.com/${o3}`,className:"h-full w-full",style:{minWidth:"100%",height:"539px",border:"none"}})})})),bme=()=>{const e=Ut(),t=r=>{e(`${Se.cancerFormDemo}?type=${r}`)};return C(_t,{children:C("div",{className:"flex h-full w-full items-center justify-center bg-[#f8f6f3] bg-opacity-50",children:Q("div",{className:"relative w-3/4 bg-white px-[43px] py-[52px] md:w-[742px]",children:[C("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",className:"absolute left-4 top-4 h-6 w-6",onClick:()=>window.location.href=`https://${window.location.host}/cancer/pilot#how-eo-care-plans-works`,children:C("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18"})}),Q(he,{className:"text-nunito text-lg font-normal",children:["Which best describes you? ",C("span",{className:"text-red-600",children:"*"})]}),Q("div",{className:"mt-6 flex flex-row gap-5",children:[C("button",{className:"text-nunito h-[41px] w-1/2 border border-solid border-[#a5c4ff] bg-[#a5c4ff] bg-opacity-10 px-[15px] py-[9px] ",onClick:()=>t("Patient"),children:"Patient"}),C("button",{className:"text-nunito h-[41px] w-1/2 border border-solid border-[#a5c4ff] bg-[#a5c4ff] bg-opacity-10 px-[15px] py-[9px] ",onClick:()=>t("Caregiver"),children:"Caretaker"})]})]})})})},Cme=()=>{const e=Ut(),[t]=Kn(),{eligibleEmail:r}=ko(),n=t.get("submission_id")||"",o=t.get("name")||"",a=t.get("last")||"",l=t.get("email")||"",c=t.get("dob")||"",d=t.get("caregiver")||"",h=t.get("gender")||"";(!l||!n||!o||!a||!l||!c||!h)&&e(Se.cancerProfile);const[v,y]=m.useState(!1),[w,k]=m.useState(!1),{data:_,isLoading:R}=b7({queryFn:()=>r(l),queryKey:["eligibleEmail",l],enabled:!!l,onSuccess:({data:$})=>{if($.success){const E=new URLSearchParams({name:o,last:a,dob:c,email:l,gender:h,caregiver:d,submission_id:n});e(Se.cancerForm+`?${E}`)}else y(!0)},onError:()=>{y(!0)}});return m.useEffect(()=>{if(w){const $=new URLSearchParams({"whoAre[first]":o,"whoAre[last]":a}).toString();e(`${Se.cancerProfile}?${$}`)}},[w,a,o,e]),C(_t,{children:!R&&!(_!=null&&_.data.success)&&!v?C(yo,{children:Q("div",{className:"flex flex-col items-center justify-center",children:[C(he,{variant:"large",font:"bold",className:"mt-12 text-4xl font-bold",children:"We apologize for the inconvenience,"}),Q(he,{className:"mx-0 my-4 px-10 text-center text-justify font-nobel",variant:"large",children:[C("br",{}),C("br",{}),"You can reach our customer support team by calling the following phone number: 877-707-0706. Our representatives will be delighted to assist you and address any inquiries you may have. Alternatively, you can also send us an email at members@eo.care. Our support team regularly checks this email and will respond to you as soon as possible."]})]})}):Q(yo,{children:[C("div",{className:"relative h-[250px]",children:C(I7,{})}),C(_R,{isOpen:v,controller:y,onPressX:()=>k(!0),children:Q("div",{className:"flex h-full w-full flex-col justify-center bg-white px-10 py-4 leading-[48px] md:px-12",children:[C(he,{variant:"large",className:"mb-0 font-nobel text-3xl md:mb-6 lg:text-5xl",children:"Oops! It looks like you already have an account."}),C(he,{font:"light",className:"mb-6 mt-4 whitespace-normal text-lg lg:text-2xl ",children:"Please reach out to the eo team in order to change your care plan."}),Q("ul",{className:"list-disc pl-4",children:[C("li",{children:Q(he,{variant:"base",className:"mb-5 text-lg font-light tracking-wide lg:text-2xl",children:[C("a",{href:"https://calendly.com/help-eo/30min",className:"underline decoration-1 underline-offset-8",children:C("strong",{children:"Schedule a video chat"})})," ","with a member of our team."]})}),C("li",{children:Q(he,{variant:"base",className:"mb-5 text-lg font-light tracking-wide lg:text-2xl",children:["Call"," ",C("a",{href:"tel:877-707-0706",children:C("strong",{className:"underline decoration-1 underline-offset-8",children:"877-707-0706"})})]})}),C("li",{children:Q(he,{variant:"base",className:"mb-5 text-lg font-light tracking-wide lg:text-2xl",children:["Email"," ",C("a",{href:"mailto:members@eo.care",className:"underline decoration-1 underline-offset-8",children:C("strong",{children:"members@eo.care"})})]})})]})]})})]})})},Eme=()=>{const e=Ut();return C(_t,{children:Q("div",{className:"flex h-full h-full flex-col items-center justify-center px-2",children:[Q(he,{variant:"large",font:"bold",className:"mx-10 text-center",children:["Looks like you’re eligible for eo! Next, we’ll get you to fill out",C("br",{}),C("br",{}),"Next, we’ll get you to fill out some information"," ",C("br",{className:"hidden md:block"})," so we can better serve you..."]}),C("div",{className:"mt-10 flex flex-row justify-center",children:C(Vt,{className:"text-center",onClick:()=>e(Se.profilingOne),children:"Continue"})})]})})},iA=async e=>await en.post(`${Nn}/v2/profile/resend_confirmation_email`,{email:e}),_me=()=>{const e=Vi(),{email:t}=e.state,r=Ut(),{mutate:n}=Xn({mutationFn:iA,onSuccess:()=>{We.success("Email resent successfully, please check your inbox")},onError:()=>{We.error("An error occurred, please try again later")}});return t||r(Se.login),C(_t,{children:Q("div",{className:"flex h-full h-full flex-col items-center justify-center px-2",children:[Q(he,{variant:"large",font:"bold",children:["It looks like you haven’t verified your email."," ",C("br",{className:"hidden md:block"})," Try checking your junk or spam folders."]}),C("img",{className:"mt-4 w-[500px]",src:"https://uploads-ssl.webflow.com/641990da28209a736d8d7c6a/644197b05bf126412b8799c4_woman-sat.svg",alt:"Images showing women sat in a sofa, viewing her phone"}),C(Vt,{type:"submit",className:"mt-10",onClick:()=>n(t),left:C(Et.EnvelopeIcon,{}),children:"Resend verification"})]})})};var hc=e=>e.type==="checkbox",hs=e=>e instanceof Date,$r=e=>e==null;const aA=e=>typeof e=="object";var rr=e=>!$r(e)&&!Array.isArray(e)&&aA(e)&&!hs(e),kme=e=>rr(e)&&e.target?hc(e.target)?e.target.checked:e.target.value:e,Rme=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Ame=(e,t)=>e.has(Rme(t)),Sme=e=>{const t=e.constructor&&e.constructor.prototype;return rr(t)&&t.hasOwnProperty("isPrototypeOf")},W7=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function aa(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(W7&&(e instanceof Blob||e instanceof FileList))&&(r||rr(e)))if(t=r?[]:{},!Array.isArray(e)&&!Sme(e))t=e;else for(const n in e)t[n]=aa(e[n]);else return e;return t}var pc=e=>Array.isArray(e)?e.filter(Boolean):[],qt=e=>e===void 0,Ae=(e,t,r)=>{if(!t||!rr(e))return r;const n=pc(t.split(/[,[\].]+?/)).reduce((o,a)=>$r(o)?o:o[a],e);return qt(n)||n===e?qt(e[t])?r:e[t]:n};const HC={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Un={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Fo={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};we.createContext(null);var Ome=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const l=a;return t._proxyFormState[l]!==Un.all&&(t._proxyFormState[l]=!n||Un.all),r&&(r[l]=!0),e[l]}});return o},xn=e=>rr(e)&&!Object.keys(e).length,Bme=(e,t,r,n)=>{r(e);const{name:o,...a}=e;return xn(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(l=>t[l]===(!n||Un.all))},k3=e=>Array.isArray(e)?e:[e];function $me(e){const t=we.useRef(e);t.current=e,we.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}var go=e=>typeof e=="string",Ime=(e,t,r,n,o)=>go(e)?(n&&t.watch.add(e),Ae(r,e,o)):Array.isArray(e)?e.map(a=>(n&&t.watch.add(a),Ae(r,a))):(n&&(t.watchAll=!0),r),V7=e=>/^\w*$/.test(e),sA=e=>pc(e.replace(/["|']|\]/g,"").split(/\.|\[/));function gt(e,t,r){let n=-1;const o=V7(t)?[t]:sA(t),a=o.length,l=a-1;for(;++nt?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{};const yw=(e,t,r)=>{for(const n of r||Object.keys(e)){const o=Ae(e,n);if(o){const{_f:a,...l}=o;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else rr(l)&&yw(l,t)}}};var qC=e=>({isOnSubmit:!e||e===Un.onSubmit,isOnBlur:e===Un.onBlur,isOnChange:e===Un.onChange,isOnAll:e===Un.all,isOnTouch:e===Un.onTouched}),ZC=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length)))),Lme=(e,t,r)=>{const n=pc(Ae(e,r));return gt(n,"root",t[r]),gt(e,r,n),e},Cs=e=>typeof e=="boolean",U7=e=>e.type==="file",_i=e=>typeof e=="function",Em=e=>{if(!W7)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},U5=e=>go(e),H7=e=>e.type==="radio",_m=e=>e instanceof RegExp;const QC={value:!1,isValid:!1},GC={value:!0,isValid:!0};var uA=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!qt(e[0].attributes.value)?qt(e[0].value)||e[0].value===""?GC:{value:e[0].value,isValid:!0}:GC:QC}return QC};const YC={isValid:!1,value:null};var cA=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,YC):YC;function KC(e,t,r="validate"){if(U5(e)||Array.isArray(e)&&e.every(U5)||Cs(e)&&!e)return{type:r,message:U5(e)?e:"",ref:t}}var Ja=e=>rr(e)&&!_m(e)?e:{value:e,message:""},XC=async(e,t,r,n,o)=>{const{ref:a,refs:l,required:c,maxLength:d,minLength:h,min:v,max:y,pattern:w,validate:k,name:_,valueAsNumber:R,mount:$,disabled:E}=e._f,b=Ae(t,_);if(!$||E)return{};const B=l?l[0]:a,I=le=>{n&&B.reportValidity&&(B.setCustomValidity(Cs(le)?"":le||""),B.reportValidity())},M={},z=H7(a),N=hc(a),j=z||N,oe=(R||U7(a))&&qt(a.value)&&qt(b)||Em(a)&&a.value===""||b===""||Array.isArray(b)&&!b.length,re=lA.bind(null,_,r,M),me=(le,i,q,X=Fo.maxLength,J=Fo.minLength)=>{const fe=le?i:q;M[_]={type:le?X:J,message:fe,ref:a,...re(le?X:J,fe)}};if(o?!Array.isArray(b)||!b.length:c&&(!j&&(oe||$r(b))||Cs(b)&&!b||N&&!uA(l).isValid||z&&!cA(l).isValid)){const{value:le,message:i}=U5(c)?{value:!!c,message:c}:Ja(c);if(le&&(M[_]={type:Fo.required,message:i,ref:B,...re(Fo.required,i)},!r))return I(i),M}if(!oe&&(!$r(v)||!$r(y))){let le,i;const q=Ja(y),X=Ja(v);if(!$r(b)&&!isNaN(b)){const J=a.valueAsNumber||b&&+b;$r(q.value)||(le=J>q.value),$r(X.value)||(i=Jnew Date(new Date().toDateString()+" "+_e),V=a.type=="time",ae=a.type=="week";go(q.value)&&b&&(le=V?fe(b)>fe(q.value):ae?b>q.value:J>new Date(q.value)),go(X.value)&&b&&(i=V?fe(b)+le.value,X=!$r(i.value)&&b.length<+i.value;if((q||X)&&(me(q,le.message,i.message),!r))return I(M[_].message),M}if(w&&!oe&&go(b)){const{value:le,message:i}=Ja(w);if(_m(le)&&!b.match(le)&&(M[_]={type:Fo.pattern,message:i,ref:a,...re(Fo.pattern,i)},!r))return I(i),M}if(k){if(_i(k)){const le=await k(b,t),i=KC(le,B);if(i&&(M[_]={...i,...re(Fo.validate,i.message)},!r))return I(i.message),M}else if(rr(k)){let le={};for(const i in k){if(!xn(le)&&!r)break;const q=KC(await k[i](b,t),B,i);q&&(le={...q,...re(i,q.message)},I(q.message),r&&(M[_]=le))}if(!xn(le)&&(M[_]={ref:B,...le},!r))return M}}return I(!0),M};function Dme(e,t){const r=t.slice(0,-1).length;let n=0;for(;n{for(const a of e)a.next&&a.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(a=>a!==o)}}),unsubscribe:()=>{e=[]}}}var km=e=>$r(e)||!aA(e);function pa(e,t){if(km(e)||km(t))return e===t;if(hs(e)&&hs(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r){const a=e[o];if(!n.includes(o))return!1;if(o!=="ref"){const l=t[o];if(hs(a)&&hs(l)||rr(a)&&rr(l)||Array.isArray(a)&&Array.isArray(l)?!pa(a,l):a!==l)return!1}}return!0}var fA=e=>e.type==="select-multiple",Fme=e=>H7(e)||hc(e),A3=e=>Em(e)&&e.isConnected,dA=e=>{for(const t in e)if(_i(e[t]))return!0;return!1};function Rm(e,t={}){const r=Array.isArray(e);if(rr(e)||r)for(const n in e)Array.isArray(e[n])||rr(e[n])&&!dA(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Rm(e[n],t[n])):$r(e[n])||(t[n]=!0);return t}function hA(e,t,r){const n=Array.isArray(e);if(rr(e)||n)for(const o in e)Array.isArray(e[o])||rr(e[o])&&!dA(e[o])?qt(t)||km(r[o])?r[o]=Array.isArray(e[o])?Rm(e[o],[]):{...Rm(e[o])}:hA(e[o],$r(t)?{}:t[o],r[o]):r[o]=!pa(e[o],t[o]);return r}var S3=(e,t)=>hA(e,t,Rm(t)),pA=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>qt(e)?e:t?e===""?NaN:e&&+e:r&&go(e)?new Date(e):n?n(e):e;function O3(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return U7(t)?t.files:H7(t)?cA(e.refs).value:fA(t)?[...t.selectedOptions].map(({value:r})=>r):hc(t)?uA(e.refs).value:pA(qt(t.value)?e.ref.value:t.value,e)}var Mme=(e,t,r,n)=>{const o={};for(const a of e){const l=Ae(t,a);l&>(o,a,l._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},Fl=e=>qt(e)?e:_m(e)?e.source:rr(e)?_m(e.value)?e.value.source:e.value:e,Tme=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function JC(e,t,r){const n=Ae(e,r);if(n||V7(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const a=o.join("."),l=Ae(t,a),c=Ae(e,a);if(l&&!Array.isArray(l)&&r!==a)return{name:r};if(c&&c.type)return{name:a,error:c};o.pop()}return{name:r}}var jme=(e,t,r,n,o)=>o.isOnAll?!1:!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:(r?n.isOnChange:o.isOnChange)?e:!0,Nme=(e,t)=>!pc(Ae(e,t)).length&&fr(e,t);const zme={mode:Un.onSubmit,reValidateMode:Un.onChange,shouldFocusError:!0};function Wme(e={},t){let r={...zme,...e},n={submitCount:0,isDirty:!1,isLoading:_i(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},o={},a=rr(r.defaultValues)||rr(r.values)?aa(r.defaultValues||r.values)||{}:{},l=r.shouldUnregister?{}:aa(a),c={action:!1,mount:!1,watch:!1},d={mount:new Set,unMount:new Set,array:new Set,watch:new Set},h,v=0;const y={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},w={values:R3(),array:R3(),state:R3()},k=e.resetOptions&&e.resetOptions.keepDirtyValues,_=qC(r.mode),R=qC(r.reValidateMode),$=r.criteriaMode===Un.all,E=P=>W=>{clearTimeout(v),v=setTimeout(P,W)},b=async P=>{if(y.isValid||P){const W=r.resolver?xn((await oe()).errors):await me(o,!0);W!==n.isValid&&w.state.next({isValid:W})}},B=P=>y.isValidating&&w.state.next({isValidating:P}),I=(P,W=[],G,S,pe=!0,se=!0)=>{if(S&&G){if(c.action=!0,se&&Array.isArray(Ae(o,P))){const Be=G(Ae(o,P),S.argA,S.argB);pe&>(o,P,Be)}if(se&&Array.isArray(Ae(n.errors,P))){const Be=G(Ae(n.errors,P),S.argA,S.argB);pe&>(n.errors,P,Be),Nme(n.errors,P)}if(y.touchedFields&&se&&Array.isArray(Ae(n.touchedFields,P))){const Be=G(Ae(n.touchedFields,P),S.argA,S.argB);pe&>(n.touchedFields,P,Be)}y.dirtyFields&&(n.dirtyFields=S3(a,l)),w.state.next({name:P,isDirty:i(P,W),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else gt(l,P,W)},M=(P,W)=>{gt(n.errors,P,W),w.state.next({errors:n.errors})},z=(P,W,G,S)=>{const pe=Ae(o,P);if(pe){const se=Ae(l,P,qt(G)?Ae(a,P):G);qt(se)||S&&S.defaultChecked||W?gt(l,P,W?se:O3(pe._f)):J(P,se),c.mount&&b()}},N=(P,W,G,S,pe)=>{let se=!1,Be=!1;const Ge={name:P};if(!G||S){y.isDirty&&(Be=n.isDirty,n.isDirty=Ge.isDirty=i(),se=Be!==Ge.isDirty);const ne=pa(Ae(a,P),W);Be=Ae(n.dirtyFields,P),ne?fr(n.dirtyFields,P):gt(n.dirtyFields,P,!0),Ge.dirtyFields=n.dirtyFields,se=se||y.dirtyFields&&Be!==!ne}if(G){const ne=Ae(n.touchedFields,P);ne||(gt(n.touchedFields,P,G),Ge.touchedFields=n.touchedFields,se=se||y.touchedFields&&ne!==G)}return se&&pe&&w.state.next(Ge),se?Ge:{}},j=(P,W,G,S)=>{const pe=Ae(n.errors,P),se=y.isValid&&Cs(W)&&n.isValid!==W;if(e.delayError&&G?(h=E(()=>M(P,G)),h(e.delayError)):(clearTimeout(v),h=null,G?gt(n.errors,P,G):fr(n.errors,P)),(G?!pa(pe,G):pe)||!xn(S)||se){const Be={...S,...se&&Cs(W)?{isValid:W}:{},errors:n.errors,name:P};n={...n,...Be},w.state.next(Be)}B(!1)},oe=async P=>r.resolver(l,r.context,Mme(P||d.mount,o,r.criteriaMode,r.shouldUseNativeValidation)),re=async P=>{const{errors:W}=await oe();if(P)for(const G of P){const S=Ae(W,G);S?gt(n.errors,G,S):fr(n.errors,G)}else n.errors=W;return W},me=async(P,W,G={valid:!0})=>{for(const S in P){const pe=P[S];if(pe){const{_f:se,...Be}=pe;if(se){const Ge=d.array.has(se.name),ne=await XC(pe,l,$,r.shouldUseNativeValidation&&!W,Ge);if(ne[se.name]&&(G.valid=!1,W))break;!W&&(Ae(ne,se.name)?Ge?Lme(n.errors,ne,se.name):gt(n.errors,se.name,ne[se.name]):fr(n.errors,se.name))}Be&&await me(Be,W,G)}}return G.valid},le=()=>{for(const P of d.unMount){const W=Ae(o,P);W&&(W._f.refs?W._f.refs.every(G=>!A3(G)):!A3(W._f.ref))&&K(P)}d.unMount=new Set},i=(P,W)=>(P&&W&>(l,P,W),!pa(ke(),a)),q=(P,W,G)=>Ime(P,d,{...c.mount?l:qt(W)?a:go(P)?{[P]:W}:W},G,W),X=P=>pc(Ae(c.mount?l:a,P,e.shouldUnregister?Ae(a,P,[]):[])),J=(P,W,G={})=>{const S=Ae(o,P);let pe=W;if(S){const se=S._f;se&&(!se.disabled&>(l,P,pA(W,se)),pe=Em(se.ref)&&$r(W)?"":W,fA(se.ref)?[...se.ref.options].forEach(Be=>Be.selected=pe.includes(Be.value)):se.refs?hc(se.ref)?se.refs.length>1?se.refs.forEach(Be=>(!Be.defaultChecked||!Be.disabled)&&(Be.checked=Array.isArray(pe)?!!pe.find(Ge=>Ge===Be.value):pe===Be.value)):se.refs[0]&&(se.refs[0].checked=!!pe):se.refs.forEach(Be=>Be.checked=Be.value===pe):U7(se.ref)?se.ref.value="":(se.ref.value=pe,se.ref.type||w.values.next({name:P,values:{...l}})))}(G.shouldDirty||G.shouldTouch)&&N(P,pe,G.shouldTouch,G.shouldDirty,!0),G.shouldValidate&&_e(P)},fe=(P,W,G)=>{for(const S in W){const pe=W[S],se=`${P}.${S}`,Be=Ae(o,se);(d.array.has(P)||!km(pe)||Be&&!Be._f)&&!hs(pe)?fe(se,pe,G):J(se,pe,G)}},V=(P,W,G={})=>{const S=Ae(o,P),pe=d.array.has(P),se=aa(W);gt(l,P,se),pe?(w.array.next({name:P,values:{...l}}),(y.isDirty||y.dirtyFields)&&G.shouldDirty&&w.state.next({name:P,dirtyFields:S3(a,l),isDirty:i(P,se)})):S&&!S._f&&!$r(se)?fe(P,se,G):J(P,se,G),ZC(P,d)&&w.state.next({...n}),w.values.next({name:P,values:{...l}}),!c.mount&&t()},ae=async P=>{const W=P.target;let G=W.name,S=!0;const pe=Ae(o,G),se=()=>W.type?O3(pe._f):kme(P);if(pe){let Be,Ge;const ne=se(),Oe=P.type===HC.BLUR||P.type===HC.FOCUS_OUT,xt=!Tme(pe._f)&&!r.resolver&&!Ae(n.errors,G)&&!pe._f.deps||jme(Oe,Ae(n.touchedFields,G),n.isSubmitted,R,_),ut=ZC(G,d,Oe);gt(l,G,ne),Oe?(pe._f.onBlur&&pe._f.onBlur(P),h&&h(0)):pe._f.onChange&&pe._f.onChange(P);const ct=N(G,ne,Oe,!1),eo=!xn(ct)||ut;if(!Oe&&w.values.next({name:G,type:P.type,values:{...l}}),xt)return y.isValid&&b(),eo&&w.state.next({name:G,...ut?{}:ct});if(!Oe&&ut&&w.state.next({...n}),B(!0),r.resolver){const{errors:vr}=await oe([G]),cn=JC(n.errors,o,G),In=JC(vr,o,cn.name||G);Be=In.error,G=In.name,Ge=xn(vr)}else Be=(await XC(pe,l,$,r.shouldUseNativeValidation))[G],S=isNaN(ne)||ne===Ae(l,G,ne),S&&(Be?Ge=!1:y.isValid&&(Ge=await me(o,!0)));S&&(pe._f.deps&&_e(pe._f.deps),j(G,Ge,Be,ct))}},_e=async(P,W={})=>{let G,S;const pe=k3(P);if(B(!0),r.resolver){const se=await re(qt(P)?P:pe);G=xn(se),S=P?!pe.some(Be=>Ae(se,Be)):G}else P?(S=(await Promise.all(pe.map(async se=>{const Be=Ae(o,se);return await me(Be&&Be._f?{[se]:Be}:Be)}))).every(Boolean),!(!S&&!n.isValid)&&b()):S=G=await me(o);return w.state.next({...!go(P)||y.isValid&&G!==n.isValid?{}:{name:P},...r.resolver||!P?{isValid:G}:{},errors:n.errors,isValidating:!1}),W.shouldFocus&&!S&&yw(o,se=>se&&Ae(n.errors,se),P?pe:d.mount),S},ke=P=>{const W={...a,...c.mount?l:{}};return qt(P)?W:go(P)?Ae(W,P):P.map(G=>Ae(W,G))},Fe=(P,W)=>({invalid:!!Ae((W||n).errors,P),isDirty:!!Ae((W||n).dirtyFields,P),isTouched:!!Ae((W||n).touchedFields,P),error:Ae((W||n).errors,P)}),Ye=P=>{P&&k3(P).forEach(W=>fr(n.errors,W)),w.state.next({errors:P?n.errors:{}})},tt=(P,W,G)=>{const S=(Ae(o,P,{_f:{}})._f||{}).ref;gt(n.errors,P,{...W,ref:S}),w.state.next({name:P,errors:n.errors,isValid:!1}),G&&G.shouldFocus&&S&&S.focus&&S.focus()},ue=(P,W)=>_i(P)?w.values.subscribe({next:G=>P(q(void 0,W),G)}):q(P,W,!0),K=(P,W={})=>{for(const G of P?k3(P):d.mount)d.mount.delete(G),d.array.delete(G),W.keepValue||(fr(o,G),fr(l,G)),!W.keepError&&fr(n.errors,G),!W.keepDirty&&fr(n.dirtyFields,G),!W.keepTouched&&fr(n.touchedFields,G),!r.shouldUnregister&&!W.keepDefaultValue&&fr(a,G);w.values.next({values:{...l}}),w.state.next({...n,...W.keepDirty?{isDirty:i()}:{}}),!W.keepIsValid&&b()},ee=(P,W={})=>{let G=Ae(o,P);const S=Cs(W.disabled);return gt(o,P,{...G||{},_f:{...G&&G._f?G._f:{ref:{name:P}},name:P,mount:!0,...W}}),d.mount.add(P),G?S&>(l,P,W.disabled?void 0:Ae(l,P,O3(G._f))):z(P,!0,W.value),{...S?{disabled:W.disabled}:{},...r.shouldUseNativeValidation?{required:!!W.required,min:Fl(W.min),max:Fl(W.max),minLength:Fl(W.minLength),maxLength:Fl(W.maxLength),pattern:Fl(W.pattern)}:{},name:P,onChange:ae,onBlur:ae,ref:pe=>{if(pe){ee(P,W),G=Ae(o,P);const se=qt(pe.value)&&pe.querySelectorAll&&pe.querySelectorAll("input,select,textarea")[0]||pe,Be=Fme(se),Ge=G._f.refs||[];if(Be?Ge.find(ne=>ne===se):se===G._f.ref)return;gt(o,P,{_f:{...G._f,...Be?{refs:[...Ge.filter(A3),se,...Array.isArray(Ae(a,P))?[{}]:[]],ref:{type:se.type,name:P}}:{ref:se}}}),z(P,!1,void 0,se)}else G=Ae(o,P,{}),G._f&&(G._f.mount=!1),(r.shouldUnregister||W.shouldUnregister)&&!(Ame(d.array,P)&&c.action)&&d.unMount.add(P)}}},de=()=>r.shouldFocusError&&yw(o,P=>P&&Ae(n.errors,P),d.mount),ve=(P,W)=>async G=>{G&&(G.preventDefault&&G.preventDefault(),G.persist&&G.persist());let S=aa(l);if(w.state.next({isSubmitting:!0}),r.resolver){const{errors:pe,values:se}=await oe();n.errors=pe,S=se}else await me(o);fr(n.errors,"root"),xn(n.errors)?(w.state.next({errors:{}}),await P(S,G)):(W&&await W({...n.errors},G),de(),setTimeout(de)),w.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:xn(n.errors),submitCount:n.submitCount+1,errors:n.errors})},Qe=(P,W={})=>{Ae(o,P)&&(qt(W.defaultValue)?V(P,Ae(a,P)):(V(P,W.defaultValue),gt(a,P,W.defaultValue)),W.keepTouched||fr(n.touchedFields,P),W.keepDirty||(fr(n.dirtyFields,P),n.isDirty=W.defaultValue?i(P,Ae(a,P)):i()),W.keepError||(fr(n.errors,P),y.isValid&&b()),w.state.next({...n}))},ht=(P,W={})=>{const G=P||a,S=aa(G),pe=P&&!xn(P)?S:a;if(W.keepDefaultValues||(a=G),!W.keepValues){if(W.keepDirtyValues||k)for(const se of d.mount)Ae(n.dirtyFields,se)?gt(pe,se,Ae(l,se)):V(se,Ae(pe,se));else{if(W7&&qt(P))for(const se of d.mount){const Be=Ae(o,se);if(Be&&Be._f){const Ge=Array.isArray(Be._f.refs)?Be._f.refs[0]:Be._f.ref;if(Em(Ge)){const ne=Ge.closest("form");if(ne){ne.reset();break}}}}o={}}l=e.shouldUnregister?W.keepDefaultValues?aa(a):{}:S,w.array.next({values:{...pe}}),w.values.next({values:{...pe}})}d={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!c.mount&&t(),c.mount=!y.isValid||!!W.keepIsValid,c.watch=!!e.shouldUnregister,w.state.next({submitCount:W.keepSubmitCount?n.submitCount:0,isDirty:W.keepDirty?n.isDirty:!!(W.keepDefaultValues&&!pa(P,a)),isSubmitted:W.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:W.keepDirtyValues?n.dirtyFields:W.keepDefaultValues&&P?S3(a,P):{},touchedFields:W.keepTouched?n.touchedFields:{},errors:W.keepErrors?n.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},lt=(P,W)=>ht(_i(P)?P(l):P,W);return{control:{register:ee,unregister:K,getFieldState:Fe,_executeSchema:oe,_getWatch:q,_getDirty:i,_updateValid:b,_removeUnmounted:le,_updateFieldArray:I,_getFieldArray:X,_reset:ht,_resetDefaultValues:()=>_i(r.defaultValues)&&r.defaultValues().then(P=>{lt(P,r.resetOptions),w.state.next({isLoading:!1})}),_updateFormState:P=>{n={...n,...P}},_subjects:w,_proxyFormState:y,get _fields(){return o},get _formValues(){return l},get _state(){return c},set _state(P){c=P},get _defaultValues(){return a},get _names(){return d},set _names(P){d=P},get _formState(){return n},set _formState(P){n=P},get _options(){return r},set _options(P){r={...r,...P}}},trigger:_e,register:ee,handleSubmit:ve,watch:ue,setValue:V,getValues:ke,reset:lt,resetField:Qe,clearErrors:Ye,unregister:K,setError:tt,setFocus:(P,W={})=>{const G=Ae(o,P),S=G&&G._f;if(S){const pe=S.refs?S.refs[0]:S.ref;pe.focus&&(pe.focus(),W.shouldSelect&&pe.select())}},getFieldState:Fe}}function mc(e={}){const t=we.useRef(),[r,n]=we.useState({isDirty:!1,isValidating:!1,isLoading:_i(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:_i(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Wme(e,()=>n(a=>({...a}))),formState:r});const o=t.current.control;return o._options=e,$me({subject:o._subjects.state,next:a=>{Bme(a,o._proxyFormState,o._updateFormState,!0)&&n({...o._formState})}}),we.useEffect(()=>{e.values&&!pa(e.values,o._defaultValues)?o._reset(e.values,o._options.resetOptions):o._resetDefaultValues()},[e.values,o]),we.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=Ome(r,o),t.current}var eE=function(e,t,r){if(e&&"reportValidity"in e){var n=Ae(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},mA=function(e,t){var r=function(o){var a=t.fields[o];a&&a.ref&&"reportValidity"in a.ref?eE(a.ref,o,e):a.refs&&a.refs.forEach(function(l){return eE(l,o,e)})};for(var n in t.fields)r(n)},Vme=function(e,t){t.shouldUseNativeValidation&&mA(e,t);var r={};for(var n in e){var o=Ae(t.fields,n);gt(r,n,Object.assign(e[n]||{},{ref:o&&o.ref}))}return r},Ume=function(e,t){for(var r={};e.length;){var n=e[0],o=n.code,a=n.message,l=n.path.join(".");if(!r[l])if("unionErrors"in n){var c=n.unionErrors[0].errors[0];r[l]={message:c.message,type:c.code}}else r[l]={message:a,type:o};if("unionErrors"in n&&n.unionErrors.forEach(function(v){return v.errors.forEach(function(y){return e.push(y)})}),t){var d=r[l].types,h=d&&d[n.code];r[l]=lA(l,t,r,o,h?[].concat(h,n.message):n.message)}e.shift()}return r},vc=function(e,t,r){return r===void 0&&(r={}),function(n,o,a){try{return Promise.resolve(function(l,c){try{var d=Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](n,t)).then(function(h){return a.shouldUseNativeValidation&&mA({},a),{errors:{},values:r.raw?n:h}})}catch(h){return c(h)}return d&&d.then?d.then(void 0,c):d}(0,function(l){if(function(c){return c.errors!=null}(l))return{values:{},errors:Vme(Ume(l.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw l}))}catch(l){return Promise.reject(l)}}};const Hme=Zt.object({email:Zt.string().min(1,{message:"Email is required"}).email({message:"The email received it is not a valid email"})}),qme=()=>{var a;const{sendEmailToRecoveryPassword:e}=ko(),{formState:{errors:t},register:r,handleSubmit:n}=mc({resolver:vc(Hme)}),{mutate:o}=Xn({mutationFn:e,onSuccess:()=>{We.success("Email sent to recovery your password, please check your inbox")},onError:l=>{var c;Ui.isAxiosError(l)?((c=l.response)==null?void 0:c.status)!==200&&We.error("Something went wrong"):We.error("Something went wrong")}});return C(_t,{children:Q("div",{className:"flex h-full h-full flex-row items-start justify-center gap-20 px-2 md:items-center",children:[Q("div",{children:[C(he,{variant:"large",font:"bold",children:"Reset your password"}),Q(he,{variant:"small",font:"regular",className:"mt-4",children:["Enter your email and we'll send you instructions"," ",C("br",{className:"hidden md:block"})," on how to reset your password"]}),Q("form",{className:"mt-10 flex flex-col ",onSubmit:l=>{n(c=>{o(c.email)})(l)},children:[C(Vn,{id:"email",label:"Email",type:"email",containerClassName:"max-w-[317px]",className:"h-12 shadow-md",...r("email"),error:(a=t.email)==null?void 0:a.message}),Q("div",{className:"flex flex-row justify-center gap-2 md:justify-start",children:[C(yp,{to:Se.login,children:C(Vt,{type:"button",className:"mt-10",variant:"secondary",left:C(Et.ArrowLeftIcon,{}),children:"Back"})}),C(Vt,{type:"submit",className:"mt-10",children:"Continue"})]})]})]}),C("div",{className:"hidden md:block",children:C("img",{className:"w-[500px]",src:"https://uploads-ssl.webflow.com/641990da28209a736d8d7c6a/641990da28209a9b288d7e7d_WhatsApp%20Image%202022-11-08%20at%207.46.28%20PM%20(1).jpeg",alt:"Images showing app of Eo Care"})})]})})},Zme=()=>C(_t,{children:C("br",{})}),Qme=async e=>await en.post(`${Nn}/v2/profile/login`,{email:e.email,password:e.password}),Gme=async e=>await en.post(`${Nn}/v2/profile`,e),Yme=Zt.object({email:Zt.string().min(1,{message:"Email is required"}).email({message:"The email received it is not a valid email"}),password:Zt.string().min(1,{message:"Password is required"})}),Kme=()=>{var R,$;const e=Di(E=>E.setProfile),t=Di(E=>E.setSession),[r,n]=m.useState(!1),[o,a]=m.useState(""),l=Ut(),[c]=Kn();m.useEffect(()=>{c.has("email")&&c.has("account_confirmed")&&n(E=>(E||We.success("Your account has been activated."),!0))},[r,c]);const{formState:{errors:d},register:h,handleSubmit:v,getValues:y}=mc({resolver:vc(Yme)}),{mutate:w}=Xn({mutationFn:Qme,onSuccess:({data:E})=>{e(E.profile),t(E.session)},onError:E=>{var b;Ui.isAxiosError(E)?((b=E.response)==null?void 0:b.status)===403?l(Se.emailVerification,{state:{email:y("email")}}):a("Your email or password is incorrect"):a("Something went wrong")}}),[k,_]=m.useState(!1);return C(_t,{children:Q("div",{className:"flex h-full w-full flex-row items-center justify-center gap-20 px-2",children:[Q("div",{children:[C(he,{variant:"large",font:"bold",children:"Welcome back."}),Q("form",{className:"mt-10",onSubmit:E=>{v(b=>{w(b)})(E)},children:[C(Vn,{id:"email",label:"Email",type:"email",containerClassName:"max-w-[327px]",className:"h-12 shadow-md",...h("email"),error:(R=d.email)==null?void 0:R.message}),C(Vn,{id:"password",label:"Password",right:k?C(Et.EyeIcon,{className:"h-5 w-5 cursor-pointer text-primary-white-600",onClick:()=>_(E=>!E)}):C(Et.EyeSlashIcon,{className:"h-5 w-5 cursor-pointer text-primary-white-600",onClick:()=>_(E=>!E)}),containerClassName:"max-w-[327px]",className:"h-12 shadow-md",type:k?"text":"password",...h("password"),error:($=d.password)==null?void 0:$.message}),C(yp,{to:Se.forgotPassword,children:C(he,{variant:"small",className:"text-gray-300 hover:underline",children:"Forgot password?"})}),C(Vt,{type:"submit",className:"mt-10",children:"Sign in"}),o&&C(he,{variant:"small",id:"login-message",className:"text-red-600",children:o}),Q(he,{variant:"small",className:"text-gray-30 mt-3",children:["First time here?"," ",C(yp,{to:Se.register,children:C("strong",{children:"Create account"})})]})]})]}),C("div",{className:"hidden md:block",children:C("img",{className:"w-[500px]",src:"https://uploads-ssl.webflow.com/641990da28209a736d8d7c6a/641990da28209a9b288d7e7d_WhatsApp%20Image%202022-11-08%20at%207.46.28%20PM%20(1).jpeg",alt:"Images showing app of Eo Care"})})]})})};var ru=(e=>(e.Sleep="Sleep",e.Pain="Pain",e.Anxiety="Anxiety",e.Other="Other",e))(ru||{}),ww=(e=>(e.Morning="Morning",e.Afternoon="Afternoon",e.Evening="Evening",e.BedTimeOrNight="Bedtime or During the Night",e))(ww||{}),fo=(e=>(e.WorkDayMornings="Workday Mornings",e.NonWorkDayMornings="Non-Workday Mornings",e.WorkDayAfternoons="Workday Afternoons",e.NonWorkDayAfternoons="Non-Workday Afternoons",e.WorkDayEvenings="Workday Evenings",e.NonWorkDayEvenings="Non-Workday Evenings",e.WorkDayBedtimes="Workday Bedtimes",e.NonWorkDayBedtimes="Non-Workday Bedtimes",e))(fo||{}),nu=(e=>(e.inhalation="Avoid inhalation",e.edibles="Avoid edibles",e.sublinguals="Avoid sublinguals",e.topicals="Avoid topicals",e))(nu||{}),Yu=(e=>(e.open="I’m open to using products with THC.",e.notPrefer="I’d prefer to use non-THC (CBD/CBN/CBG) products only.",e.notSure="I’m not sure.",e))(Yu||{}),hr=(e=>(e.Pain="I want to manage pain",e.Anxiety="I want to reduce anxiety",e.Sleep="I want to sleep better",e))(hr||{});const Xme=(e,{C3:t,onlyCbd:r,C9:n,C8:o,C10:a,reasonToUse:l,C14:c,C15:d,C16:h,C17:v,M5:y})=>{const{currentlyUsingCannabisProducts:w}=e,k=()=>l.includes(hr.Sleep)?"":re==="topical lotion or patch"&&l.includes(hr.Anxiety)?"1:1 CBD:THC ratio":re==="topical lotion or patch"?"THC-dominant":r&&!w?"CBD or CBDA":r&&w?"CBD, CBDA, or CBC":l.includes(hr.Anxiety)||o===!1&&!w?"CBD-dominant":o===!1&&w?"4:1 CBD:THC ratio":o===!0&&!w?"2:1 CBD:THC ratio":o===!0&&w?"THC-dominant":"",_=()=>y==="fast-acting form"&&h===!1&&oe==="sublingual"&&v===!1?"patch":y==="fast-acting form"&&h===!1?"sublingual":y==="fast-acting form"&&v===!1?"topical lotion or patch":y==="fast-acting form"&&c===!1?"inhalation method":d===!1?"edible":v===!1?"topical lotion or patch":h===!1?"sublingual":c===!1?"inhalation method":"capsule",R=()=>re==="topical lotion or patch"?"50mg":me===""?"":me==="THC-dominant"?"2.5mg":me==="CBD-dominant"&&t===!0?"10mg":me==="CBD-dominant"||me==="4:1 CBD:THC ratio"?"5mg":me==="2:1 CBD:THC ratio"?"2.5mg":"10mg",$=()=>l.includes(hr.Sleep)?"":re==="inhalation method"?`Use a ${me} inhalable product`:`Use ${le} of a ${me} ${re} product`,E=()=>l.includes(hr.Anxiety)&&r?"CBDA":l.includes(hr.Pain)&&r?"CBG plus CBD":r?"CBD":n===!0&&w?"THC-dominant":n===!0&&!w?"1:1 CBD:THC ratio":"CBD-dominant",b=()=>n&&!c?"inhalation method":n&&!h?"sublingual":c?h?d?v?"capsule":"topical lotion or patch":"edible":"sublingual":"inhalation method",B=()=>oe==="topical lotion or patch"?"50mg":i==="THC-dominant"?"2.5mg":i==="CBD-dominant"?"5mg":i==="1:1 CBD:THC ratio"?"2.5mg":"10mg",I=()=>oe==="inhalation method"?`Use a ${i} inhalable product`:`Use ${q} of a ${i} ${oe} product`,M=()=>r?"CBN or D8-THC":a===!0?"THC-dominant":w?"1:1 CBD:THC ratio":"CBD-dominant",z=()=>d===!1?"edible":h===!1?"sublingual":v===!1?"topical lotion or patch":c===!1?"inhalation method":"capsule",N=()=>X==="topical lotion or patch"?"50mg":J==="THC-dominant"?"2.5mg":J==="CBD-dominant"?"5mg":J==="1:1 CBD:THC ratio"?"2.5mg":"10mg",j=()=>X==="inhalation method"?`Use a ${J} inhalable product`:`Use ${fe} of a ${J} ${X} product`,oe=b(),re=_(),me=k(),le=R(),i=E(),q=B(),X=z(),J=M(),fe=N();return{dayTime:{time:"Morning",type:k(),form:_(),dose:R(),result:$()},evening:{time:"Evening",type:E(),form:b(),dose:B(),result:I()},bedTime:{time:"BedTime",type:M(),form:z(),dose:N(),result:j()}}},Jme=(e,{C3:t,onlyCbd:r,C5:n,C7:o,C11:a,reasonToUse:l,C14:c,C15:d,C16:h,C17:v,M5:y})=>{const{openToUseThcProducts:w,currentlyUsingCannabisProducts:k}=e,_=()=>me==="topical lotion or patch"&&l.includes(hr.Anxiety)?"1:1 CBD:THC ratio":me==="topical lotion or patch"?"THC-dominant":l.includes(hr.Sleep)?"":r&&a===!1?"CBD or CBDA":r&&a===!0?"CBD, CBDA, or CBC":l.includes(hr.Anxiety)||n===!1&&a===!1?"CBD-dominant":n===!1&&a===!0?"4:1 CBD:THC ratio":n===!0&&a===!1?"2:1 CBD:THC ratio":n===!0&&a===!0?"THC-dominant":"CBD-dominant",R=()=>y==="fast-acting form"&&h===!1&&re==="sublingual"&&v===!1?"patch":y==="fast-acting form"&&h===!1?"sublingual":y==="fast-acting form"&&v===!1?"topical lotion or patch":y==="fast-acting form"&&c===!1?"inhalation method":d===!1?"edible":v===!1?"topical lotion or patch":h===!1?"sublingual":c===!1?"inhalation method":"capsule",$=()=>me==="topical lotion or patch"?"50mg":le===""?"":le==="THC-dominant"?"2.5mg":le==="CBD-dominant"&&t===!0?"10mg":le==="CBD-dominant"||le==="4:1 CBD:THC ratio"?"5mg":le==="2:1 CBD:THC ratio"?"2.5mg":"10mg",E=()=>l.includes(hr.Sleep)?"":me==="inhalation method"?"Use a "+le+" inhalable product":"Use "+i+" of a "+le+" "+me+" product",b=()=>l.includes(hr.Anxiety)&&r?"CBDA":l.includes(hr.Pain)&&r?"CBG plus CBD":r?"CBD":w.includes(fo.WorkDayEvenings)&&k?"THC-dominant":w.includes(fo.WorkDayEvenings)&&!k?"1:1 CBD:THC ratio":"CBD-dominant",B=()=>n===!0&&c===!1?"inhalation method":n===!0&&h===!1?"sublingual":c===!1?"inhalation method":h===!1?"sublingual":d===!1?"edible":v===!1?"topical lotion or patch":"capsule",I=()=>re==="topical lotion or patch"?"50mg":q==="THC-dominant"?"2.5mg":q==="CBD-dominant"?"5mg":q==="1:1 CBD:THC ratio"?"2.5mg":"10mg",M=()=>re==="inhalation method"?`Use a ${q} inhalable product`:`Use ${X} of a ${q} ${re} product`,z=()=>r?"CBN or D8-THC":o===!0?"THC-dominant":a===!0?"1:1 CBD:THC ratio":"CBD-dominant",N=()=>d===!1?"edible":h===!1?"sublingual":v===!1?"topical lotion or patch":c===!1?"inhalation method":"capsule",j=()=>fe==="topical lotion or patch"?"50mg":J==="THC-dominant"?"2.5mg":J==="CBD-dominant"?"5mg":J==="1:1 CBD:THC ratio"?"2.5mg":"10mg",oe=()=>fe==="inhalation method"?`Use a ${J} inhalable product`:`Use ${V} of a ${J} ${fe} product`,re=B(),me=R(),le=_(),i=$(),q=b(),X=I(),J=z(),fe=N(),V=j();return{dayTime:{time:"Morning",type:_(),form:R(),dose:$(),result:E()},evening:{time:"Evening",type:b(),form:B(),dose:I(),result:M()},bedTime:{time:"BedTime",type:z(),form:N(),dose:j(),result:oe()}}},vA=e=>{const{symptomsWorseTimes:t,thcTypePreferences:r,openToUseThcProducts:n,currentlyUsingCannabisProducts:o,reasonToUse:a,avoidPresentation:l}=e,c=a.includes(hr.Sleep)?"":t.includes(ww.Morning)?"fast-acting form":"long-lasting form",d=r===Yu.notPrefer,h=t.includes(ww.Morning),v=n.includes(fo.WorkDayMornings),y=n.includes(fo.WorkDayBedtimes),w=n.includes(fo.NonWorkDayMornings),k=n.includes(fo.NonWorkDayEvenings),_=n.includes(fo.NonWorkDayBedtimes),R=o,$=l.includes(nu.inhalation),E=l.includes(nu.edibles),b=l.includes(nu.sublinguals),B=l.includes(nu.topicals),I=Jme(e,{C3:h,onlyCbd:d,C5:v,C7:y,C11:R,reasonToUse:a,C14:$,C15:E,C16:b,C17:B,M5:c}),M=Xme(e,{C10:_,reasonToUse:a,C14:$,C15:E,C16:b,C17:B,C3:h,C8:w,C9:k,M5:c,onlyCbd:d});return{workdayPlan:I,nonWorkdayPlan:M,whyRecommended:(()=>d&&a.includes(hr.Pain)?"CBD and CBDA are predominantly researched for their potential in addressing chronic pain and inflammation. CBG has demonstrated potential for its anti-inflammatory and analgesic effects. Preliminary investigations also imply that CBN and D8-THC may contribute to enhancing sleep quality and providing relief during sleep. We always recommend starting off at lower doses and adjusting from there to ensure consistently positive experiences.":d&&a.includes(hr.Anxiety)?"Extensive research has been conducted on the therapeutic impacts of both CBD and CBDA on anxiety, with positive results. Preliminary investigations also indicate that CBN and D8-THC may be beneficial in promoting sleep. We always recommend starting off at lower doses and adjusting from there to ensure consistently positive experiences.":d&&a.includes(hr.Sleep)?"CBD can be helpful in the evening for getting the mind and body relaxed and ready for sleep. Some early studies indicate that CBN as well as D8-THC can be effective for promoting sleep. We always recommend starting off at lower doses and adjusting from there to ensure consistently positive experiences.":n.includes(fo.WorkDayEvenings)&&v&&y&&w&&k&&_?"Given that you indicated you're open to feeling the potentially altering effects of THC, we recommended a plan that at times has stronger proportions of THC, which may help provide more effective symptom relief. We always recommend starting off at lower doses and adjusting from there to ensure consistently positive experiences.":!n.includes(fo.WorkDayEvenings)&&!v&&!y&&!w&&!k&&!_?"Given that you'd like to avoid the potentially altering effects of THC, we primarily recommend using products with higher concentrations of CBD. Depending on your experience level, some THC may not feel altering. We always recommend starting off at lower doses and adjusting from there to ensure consistently positive experiences.":"For times when you're looking to maintain a clear head, we recommended product types that are lower in THC in relation to CBD, and higher THC at times when you're more able to relax and unwind. The amount of THC in relation to CBD relates to your recent use of cannabis, as we always recommend starting off at lower doses and adjusting from there to ensure consistently positive experiences.")()}},tE=()=>Q("svg",{width:"20px",height:"20px",viewBox:"0 0 164 164",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.92656 147.34C14.8215 158.174 40.4865 163.667 81.1941 163.667C104.713 163.667 123.648 161.654 137.417 157.761C147.949 154.808 155.479 150.575 159.79 145.403C161.05 144.072 162.041 142.495 162.706 140.764C163.371 139.033 163.697 137.183 163.664 135.321C163.191 124.778 162.183 114.268 160.645 103.834C157.243 79.8335 151.787 60.0649 144.511 45.0174C132.488 20.0574 115.772 9.26088 103.876 4.59617C96.4487 1.54077 88.4923 0.100139 80.5029 0.364065C72.5868 0.592629 64.7822 2.35349 57.4935 5.55544C45.816 10.5211 29.864 21.3741 19.478 44.8293C10.0923 65.9898 5.39948 89.5015 3.10764 105.489C1.63849 115.377 0.715404 125.343 0.342871 135.34C0.266507 137.559 0.634231 139.77 1.42299 141.835C2.21174 143.9 3.40453 145.774 4.92656 147.34ZM59.6762 11.8754C66.2296 8.96617 73.2482 7.33985 80.3756 7.079V7.24828H80.9212C88.0885 6.98588 95.2303 8.26693 101.893 11.0101C108.8 13.7827 115.165 17.8226 120.683 22.9353C128.191 30.0319 134.315 38.5491 138.727 48.0269C155.388 82.4104 157.207 135.133 157.207 135.66V135.904C156.993 138.028 156.02 139.994 154.479 141.415C149.24 147.227 132.742 156.952 81.1941 156.952C59.7126 156.952 42.451 155.391 29.8822 152.344C20.0964 149.955 13.2936 146.72 9.65577 142.732C8.73849 141.824 8.01535 140.727 7.5329 139.512C7.05045 138.297 6.8194 136.991 6.85462 135.678V135.547C6.85462 135.058 8.03692 86.8118 25.3349 47.6131C32.9198 30.4778 44.47 18.4586 59.6762 11.8754ZM44.7634 44.1274C45.2627 44.4383 45.8336 44.6048 46.4165 44.6097C46.952 44.6028 47.478 44.4624 47.9498 44.2005C48.4216 43.9385 48.8253 43.5627 49.1267 43.1049C55.2816 34.6476 64.1146 28.6958 74.0824 26.2894C74.4968 26.1893 74.8881 26.0059 75.234 25.7494C75.5798 25.493 75.8735 25.1687 76.0981 24.7949C76.3227 24.4211 76.474 24.0052 76.5432 23.571C76.6124 23.1368 76.5983 22.6927 76.5015 22.2642C76.4048 21.8356 76.2274 21.431 75.9794 21.0733C75.7314 20.7156 75.4177 20.412 75.0563 20.1797C74.6948 19.9474 74.2927 19.791 73.8728 19.7194C73.4529 19.6478 73.0235 19.6625 72.609 19.7625C60.9982 22.4967 50.7337 29.4772 43.7063 39.4183C43.3904 39.9249 43.2118 40.5098 43.1892 41.1121C43.1666 41.7144 43.3007 42.312 43.5776 42.8423C43.8545 43.3727 44.264 43.8165 44.7634 44.1274Z",fill:"black"}),C("path",{d:"M4.92656 147.34L5.11125 147.172L5.10584 147.166L4.92656 147.34ZM137.417 157.761L137.35 157.52L137.349 157.52L137.417 157.761ZM159.79 145.403L159.608 145.231L159.603 145.237L159.598 145.243L159.79 145.403ZM162.706 140.764L162.939 140.854L162.706 140.764ZM163.664 135.321L163.914 135.317L163.914 135.31L163.664 135.321ZM160.645 103.834L160.397 103.869L160.397 103.871L160.645 103.834ZM144.511 45.0174L144.286 45.1259L144.286 45.1263L144.511 45.0174ZM103.876 4.59617L103.781 4.8274L103.785 4.82891L103.876 4.59617ZM80.5029 0.364065L80.5101 0.613963L80.5111 0.613928L80.5029 0.364065ZM57.4935 5.55544L57.5913 5.78552L57.594 5.78433L57.4935 5.55544ZM19.478 44.8293L19.7065 44.9307L19.7066 44.9306L19.478 44.8293ZM3.10764 105.489L3.35493 105.526L3.35511 105.525L3.10764 105.489ZM0.342871 135.34L0.0930433 135.331L0.0930188 135.331L0.342871 135.34ZM1.42299 141.835L1.18944 141.924H1.18944L1.42299 141.835ZM80.3756 7.079H80.6256V6.81968L80.3664 6.82916L80.3756 7.079ZM59.6762 11.8754L59.7755 12.1048L59.7776 12.1039L59.6762 11.8754ZM80.3756 7.24828H80.1256V7.49828H80.3756V7.24828ZM80.9212 7.24828V7.49845L80.9304 7.49811L80.9212 7.24828ZM101.893 11.0101L101.798 11.2413L101.8 11.2422L101.893 11.0101ZM120.683 22.9353L120.855 22.7536L120.853 22.7519L120.683 22.9353ZM138.727 48.0269L138.5 48.1324L138.502 48.1359L138.727 48.0269ZM157.207 135.904L157.456 135.929L157.457 135.917V135.904H157.207ZM154.479 141.415L154.309 141.232L154.301 141.239L154.293 141.248L154.479 141.415ZM29.8822 152.344L29.8229 152.586L29.8233 152.586L29.8822 152.344ZM9.65577 142.732L9.84069 142.563L9.83167 142.554L9.65577 142.732ZM7.5329 139.512L7.30055 139.604L7.5329 139.512ZM6.85462 135.678L7.10462 135.685V135.678H6.85462ZM25.3349 47.6131L25.1063 47.5119L25.1062 47.5122L25.3349 47.6131ZM46.4165 44.6097L46.4144 44.8597L46.4197 44.8597L46.4165 44.6097ZM47.9498 44.2005L48.0711 44.419L47.9498 44.2005ZM49.1267 43.1049L48.9243 42.9577L48.9179 42.9675L49.1267 43.1049ZM74.0824 26.2894L74.0237 26.0464L74.0237 26.0464L74.0824 26.2894ZM75.234 25.7494L75.3829 25.9503V25.9503L75.234 25.7494ZM76.0981 24.7949L76.3124 24.9237L76.0981 24.7949ZM75.0563 20.1797L75.1915 19.9694V19.9694L75.0563 20.1797ZM73.8728 19.7194L73.9148 19.473L73.8728 19.7194ZM72.609 19.7625L72.6663 20.0059L72.6677 20.0056L72.609 19.7625ZM43.7063 39.4183L43.5022 39.274L43.498 39.2799L43.4942 39.286L43.7063 39.4183ZM43.1892 41.1121L42.9394 41.1027L43.1892 41.1121ZM43.5776 42.8423L43.7992 42.7266L43.5776 42.8423ZM81.1941 163.417C60.8493 163.417 44.2756 162.044 31.5579 159.322C18.8323 156.598 10.0053 152.53 5.11116 147.172L4.74196 147.509C9.74275 152.984 18.6958 157.08 31.4533 159.811C44.2188 162.543 60.8313 163.917 81.1941 163.917V163.417ZM137.349 157.52C123.611 161.405 104.702 163.417 81.1941 163.417V163.917C104.723 163.917 123.684 161.904 137.485 158.001L137.349 157.52ZM159.598 145.243C155.333 150.36 147.858 154.573 137.35 157.52L137.485 158.001C148.039 155.042 155.625 150.791 159.982 145.563L159.598 145.243ZM162.473 140.675C161.819 142.375 160.845 143.924 159.608 145.231L159.971 145.575C161.254 144.22 162.263 142.615 162.939 140.854L162.473 140.675ZM163.414 135.325C163.446 137.156 163.126 138.974 162.473 140.675L162.939 140.854C163.616 139.093 163.947 137.211 163.914 135.317L163.414 135.325ZM160.397 103.871C161.935 114.296 162.942 124.798 163.414 135.332L163.914 135.31C163.441 124.758 162.432 114.24 160.892 103.798L160.397 103.871ZM144.286 45.1263C151.547 60.1428 156.998 79.8842 160.397 103.869L160.892 103.799C157.489 79.7828 152.027 59.9869 144.736 44.9086L144.286 45.1263ZM103.785 4.82891C115.628 9.47311 132.293 20.2287 144.286 45.1259L144.736 44.9089C132.683 19.8862 115.915 9.04865 103.967 4.36342L103.785 4.82891ZM80.5111 0.613928C88.465 0.351177 96.3862 1.78538 103.781 4.82737L103.971 4.36496C96.5112 1.29616 88.5196 -0.150899 80.4946 0.114201L80.5111 0.613928ZM57.594 5.78433C64.8535 2.59525 72.6263 0.841591 80.5101 0.61396L80.4957 0.114169C72.5472 0.343667 64.711 2.11173 57.3929 5.32655L57.594 5.78433ZM19.7066 44.9306C30.0628 21.5426 45.9621 10.7306 57.5913 5.7855L57.3957 5.32538C45.6699 10.3116 29.6652 21.2056 19.2494 44.7281L19.7066 44.9306ZM3.35511 105.525C5.64556 89.5467 10.3343 66.0609 19.7065 44.9307L19.2494 44.728C9.85033 65.9188 5.1534 89.4563 2.86017 105.454L3.35511 105.525ZM0.592698 135.349C0.964888 125.362 1.88712 115.405 3.35492 105.526L2.86035 105.453C1.38985 115.35 0.465919 125.325 0.0930443 135.331L0.592698 135.349ZM1.65653 141.746C0.879739 139.712 0.517502 137.534 0.592723 135.348L0.0930188 135.331C0.0155122 137.583 0.388723 139.828 1.18944 141.924L1.65653 141.746ZM5.10584 147.166C3.60778 145.625 2.43332 143.779 1.65653 141.746L1.18944 141.924C1.99017 144.021 3.20128 145.924 4.74729 147.514L5.10584 147.166ZM80.3664 6.82916C73.2071 7.09119 66.1572 8.72482 59.5748 11.6469L59.7776 12.1039C66.3021 9.20753 73.2894 7.58851 80.3847 7.32883L80.3664 6.82916ZM80.6256 7.24828V7.079H80.1256V7.24828H80.6256ZM80.9212 6.99828H80.3756V7.49828H80.9212V6.99828ZM101.989 10.779C95.2926 8.02222 88.1153 6.73474 80.9121 6.99845L80.9304 7.49811C88.0618 7.23703 95.168 8.51165 101.798 11.2413L101.989 10.779ZM120.853 22.7519C115.313 17.6187 108.922 13.5622 101.987 10.7781L101.8 11.2422C108.678 14.0032 115.018 18.0265 120.513 23.1186L120.853 22.7519ZM138.953 47.9214C134.529 38.4153 128.386 29.8722 120.855 22.7536L120.511 23.1169C127.996 30.1917 134.102 38.6828 138.5 48.1324L138.953 47.9214ZM157.457 135.66C157.457 135.383 157.001 122.058 154.462 104.504C151.924 86.9516 147.299 65.1446 138.952 47.9179L138.502 48.1359C146.815 65.2927 151.431 87.0387 153.967 104.575C155.235 113.341 155.983 121.05 156.413 126.599C156.628 129.374 156.764 131.609 156.847 133.166C156.888 133.945 156.915 134.554 156.933 134.977C156.941 135.188 156.947 135.352 156.951 135.468C156.953 135.526 156.955 135.571 156.956 135.604C156.956 135.62 156.956 135.633 156.957 135.643C156.957 135.648 156.957 135.652 156.957 135.655C156.957 135.656 156.957 135.657 156.957 135.658C156.957 135.659 156.957 135.659 156.957 135.66H157.457ZM157.457 135.904V135.66H156.957V135.904H157.457ZM154.648 141.599C156.235 140.135 157.235 138.113 157.456 135.929L156.958 135.879C156.75 137.944 155.805 139.852 154.309 141.232L154.648 141.599ZM81.1941 157.202C132.752 157.202 149.349 147.48 154.664 141.583L154.293 141.248C149.131 146.975 132.733 156.702 81.1941 156.702V157.202ZM29.8233 152.586C42.4197 155.64 59.7037 157.202 81.1941 157.202V156.702C59.7214 156.702 42.4822 155.141 29.9411 152.101L29.8233 152.586ZM9.47108 142.9C13.1607 146.945 20.0245 150.195 29.8229 152.586L29.9415 152.101C20.1683 149.715 13.4266 146.494 9.84046 142.563L9.47108 142.9ZM7.30055 139.604C7.79556 140.851 8.53777 141.977 9.47986 142.91L9.83167 142.554C8.93921 141.671 8.23513 140.603 7.76525 139.42L7.30055 139.604ZM6.60471 135.672C6.56859 137.018 6.80555 138.358 7.30055 139.604L7.76525 139.42C7.29535 138.236 7.07021 136.964 7.10453 135.685L6.60471 135.672ZM6.60462 135.547V135.678H7.10462V135.547H6.60462ZM25.1062 47.5122C7.78667 86.7596 6.60462 135.048 6.60462 135.547H7.10462C7.10462 135.067 8.28717 86.8639 25.5636 47.7141L25.1062 47.5122ZM59.5769 11.646C44.3053 18.2575 32.7131 30.3272 25.1063 47.5119L25.5635 47.7143C33.1266 30.6284 44.6346 18.6598 59.7755 12.1048L59.5769 11.646ZM46.4186 44.3597C45.8822 44.3552 45.3562 44.202 44.8955 43.9152L44.6312 44.3397C45.1693 44.6746 45.7851 44.8545 46.4144 44.8597L46.4186 44.3597ZM47.8284 43.9819C47.3925 44.2239 46.9071 44.3534 46.4133 44.3597L46.4197 44.8597C46.9969 44.8522 47.5634 44.7009 48.0711 44.419L47.8284 43.9819ZM48.9179 42.9675C48.6383 43.3921 48.2644 43.7398 47.8284 43.9819L48.0711 44.419C48.5788 44.1372 49.0123 43.7333 49.3355 43.2424L48.9179 42.9675ZM74.0237 26.0464C63.997 28.467 55.1136 34.4536 48.9246 42.9578L49.3288 43.252C55.4496 34.8417 64.2323 28.9246 74.141 26.5324L74.0237 26.0464ZM75.0851 25.5486C74.7659 25.7853 74.4052 25.9543 74.0237 26.0464L74.141 26.5324C74.5884 26.4244 75.0103 26.2265 75.3829 25.9503L75.0851 25.5486ZM75.8838 24.6661C75.6758 25.0122 75.4043 25.3119 75.0851 25.5486L75.3829 25.9503C75.7554 25.6741 76.0711 25.3251 76.3124 24.9237L75.8838 24.6661ZM76.2963 23.5317C76.2321 23.9345 76.0918 24.32 75.8838 24.6661L76.3124 24.9237C76.5536 24.5222 76.7159 24.076 76.7901 23.6104L76.2963 23.5317ZM76.2577 22.3192C76.3474 22.7168 76.3605 23.1288 76.2963 23.5317L76.7901 23.6104C76.8643 23.1448 76.8491 22.6687 76.7454 22.2091L76.2577 22.3192ZM75.7739 21.2157C76.0034 21.5468 76.1679 21.9217 76.2577 22.3192L76.7454 22.2091C76.6416 21.7495 76.4513 21.3152 76.1848 20.9309L75.7739 21.2157ZM74.9211 20.39C75.2546 20.6043 75.5445 20.8848 75.7739 21.2157L76.1848 20.9309C75.9184 20.5465 75.5809 20.2197 75.1915 19.9694L74.9211 20.39ZM73.8308 19.9659C74.2172 20.0317 74.5877 20.1757 74.9211 20.39L75.1915 19.9694C74.802 19.7191 74.3682 19.5503 73.9148 19.473L73.8308 19.9659ZM72.6677 20.0056C73.0492 19.9135 73.4443 19.9 73.8308 19.9659L73.9148 19.473C73.4614 19.3957 72.9977 19.4115 72.5504 19.5195L72.6677 20.0056ZM43.9104 39.5626C50.9035 29.6702 61.1162 22.7257 72.6663 20.0059L72.5517 19.5192C60.8802 22.2676 50.564 29.2842 43.5022 39.274L43.9104 39.5626ZM43.439 41.1215C43.46 40.5623 43.6259 40.0198 43.9184 39.5506L43.4942 39.286C43.155 39.8299 42.9636 40.4573 42.9394 41.1027L43.439 41.1215ZM43.7992 42.7266C43.5426 42.2351 43.418 41.6807 43.439 41.1215L42.9394 41.1027C42.9151 41.7481 43.0588 42.3888 43.356 42.958L43.7992 42.7266ZM44.8955 43.9152C44.4347 43.6283 44.0558 43.2182 43.7992 42.7266L43.356 42.958C43.6532 43.5273 44.0933 44.0047 44.6312 44.3397L44.8955 43.9152Z",fill:"black"})]}),xw=e=>{switch(e){case"patch":return C(Et.CheckIcon,{className:"stroke-[5px]"});case"sublingual":return C("svg",{width:"15px",height:"30px",viewBox:"0 0 98 196",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:C("path",{d:"M81.6664 82.1936C76.2634 82.1936 71.8664 77.9385 71.8664 72.7097V69.5484H75.1331C76.9363 69.5484 78.3998 68.1353 78.3998 66.3871V53.7419C78.3998 51.9937 76.9363 50.5806 75.1331 50.5806H71.8664V34.7742C71.8664 33.026 70.403 31.6129 68.5998 31.6129H58.7998V9.48387C58.7998 4.2551 54.4028 0 48.9998 0C43.5967 0 39.1998 4.2551 39.1998 9.48387V31.6129H29.3998C27.5966 31.6129 26.1331 33.026 26.1331 34.7742V50.5806H22.8664C21.0632 50.5806 19.5998 51.9937 19.5998 53.7419V66.3871C19.5998 68.1353 21.0632 69.5484 22.8664 69.5484H26.1331V72.7097C26.1331 77.9385 21.7362 82.1936 16.3331 82.1936C7.32689 82.1936 -0.000244141 89.2843 -0.000244141 98V177.032C-0.000244141 187.493 8.79036 196 19.5998 196H78.3998C89.2092 196 97.9998 187.493 97.9998 177.032V98C97.9998 89.2843 90.6726 82.1936 81.6664 82.1936ZM45.7331 9.48387C45.7331 7.73884 47.1998 6.32258 48.9998 6.32258C50.7997 6.32258 52.2664 7.73884 52.2664 9.48387V31.6129H45.7331V9.48387ZM32.6664 37.9355H65.3331V50.5806H32.6664V37.9355ZM26.1331 56.9032H29.3998H68.5998H71.8664V63.2258H26.1331V56.9032ZM91.4664 177.032C91.4664 184.006 85.606 189.677 78.3998 189.677H19.5998C12.3935 189.677 6.53309 184.006 6.53309 177.032V98C6.53309 92.7712 10.93 88.5161 16.3331 88.5161C25.3393 88.5161 32.6664 81.4254 32.6664 72.7097V69.5484H65.3331V72.7097C65.3331 81.4254 72.6602 88.5161 81.6664 88.5161C87.0695 88.5161 91.4664 92.7712 91.4664 98V177.032Z",fill:"black"})});case"topical lotion or patch":return C("svg",{width:"130",height:"164",viewBox:"0 0 130 164",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:C("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M114.249 57.1081C127.383 72.9966 132.256 93.7575 127.595 114.095C122.935 133.585 110.012 149.473 92.4289 157.735C83.7432 161.76 74.6339 163.667 65.1008 163.667C55.5677 163.667 46.2465 161.548 37.7726 157.735C19.7657 149.473 6.84314 133.585 2.39437 114.095C-2.26624 93.9693 2.60621 72.9966 15.7407 57.1081L60.652 2.23999C62.7705 -0.302164 67.0074 -0.302164 68.914 2.23999L114.249 57.1081ZM64.8889 152.863C72.9391 152.863 80.5655 151.168 87.7683 147.99C102.598 141.211 113.402 127.865 117.215 111.553C121.24 94.6049 117.003 77.0217 105.987 63.6754L64.8889 13.8915L23.7908 63.6754C12.7748 77.0217 8.5379 94.6049 12.563 111.553C16.3762 127.865 27.1804 141.211 42.0096 147.99C49.2123 151.168 56.8388 152.863 64.8889 152.863ZM97.7159 99.9199C97.7159 96.9541 100.046 94.6238 103.012 94.6238C105.978 94.6238 108.308 97.1659 108.308 99.9199C108.308 121.105 91.1487 138.264 69.9641 138.264C66.9982 138.264 64.6679 135.934 64.6679 132.968C64.6679 130.002 66.9982 127.672 69.9641 127.672C85.217 127.672 97.7159 115.173 97.7159 99.9199Z",fill:"black"})});case"inhalation method":return C("svg",{width:"15",height:"30",viewBox:"0 0 98 196",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:C("path",{d:"M81.6664 82.1936C76.2634 82.1936 71.8664 77.9385 71.8664 72.7097V69.5484H75.1331C76.9363 69.5484 78.3998 68.1353 78.3998 66.3871V53.7419C78.3998 51.9937 76.9363 50.5806 75.1331 50.5806H71.8664V34.7742C71.8664 33.026 70.403 31.6129 68.5998 31.6129H58.7998V9.48387C58.7998 4.2551 54.4028 0 48.9998 0C43.5967 0 39.1998 4.2551 39.1998 9.48387V31.6129H29.3998C27.5966 31.6129 26.1331 33.026 26.1331 34.7742V50.5806H22.8664C21.0632 50.5806 19.5998 51.9937 19.5998 53.7419V66.3871C19.5998 68.1353 21.0632 69.5484 22.8664 69.5484H26.1331V72.7097C26.1331 77.9385 21.7362 82.1936 16.3331 82.1936C7.32689 82.1936 -0.000244141 89.2843 -0.000244141 98V177.032C-0.000244141 187.493 8.79036 196 19.5998 196H78.3998C89.2092 196 97.9998 187.493 97.9998 177.032V98C97.9998 89.2843 90.6726 82.1936 81.6664 82.1936ZM45.7331 9.48387C45.7331 7.73884 47.1998 6.32258 48.9998 6.32258C50.7997 6.32258 52.2664 7.73884 52.2664 9.48387V31.6129H45.7331V9.48387ZM32.6664 37.9355H65.3331V50.5806H32.6664V37.9355ZM26.1331 56.9032H29.3998H68.5998H71.8664V63.2258H26.1331V56.9032ZM91.4664 177.032C91.4664 184.006 85.606 189.677 78.3998 189.677H19.5998C12.3935 189.677 6.53309 184.006 6.53309 177.032V98C6.53309 92.7712 10.93 88.5161 16.3331 88.5161C25.3393 88.5161 32.6664 81.4254 32.6664 72.7097V69.5484H65.3331V72.7097C65.3331 81.4254 72.6602 88.5161 81.6664 88.5161C87.0695 88.5161 91.4664 92.7712 91.4664 98V177.032Z",fill:"black"})});case"edible":return C(tE,{});case"capsule":return C(tE,{});default:return C(Et.CheckIcon,{className:"stroke-[5px]"})}},eve=()=>{const{getSubmission:e}=ko(),{data:t}=b7({queryFn:e,queryKey:["getSubmission"]}),r=t==null?void 0:t.data.values,{nonWorkdayPlan:n,workdayPlan:o,whyRecommended:a}=vA(r?{avoidPresentation:r.areThere,currentlyUsingCannabisProducts:r.usingCannabisProducts==="Yes",openToUseThcProducts:r.workday_allow_intoxication_nonworkday_allow_intoxi,reasonToUse:r.whatBrings,symptomsWorseTimes:r.symptoms_worse_times,thcTypePreferences:r.thc_type_preferences}:{avoidPresentation:[],currentlyUsingCannabisProducts:!1,openToUseThcProducts:[],reasonToUse:[],symptomsWorseTimes:[],thcTypePreferences:Yu.notSure}),l=Ut(),c=[{title:"IN THE MORNINGS",label:o.dayTime.result,description:"",form:o.dayTime.form,type:o.dayTime.type},{title:"IN THE EVENING",label:o.evening.result,description:"",form:o.evening.form,type:o.evening.type},{title:"AT BEDTIME",label:o.bedTime.result,description:"",form:o.bedTime.form,type:o.bedTime.type}],d=[{title:"IN THE MORNINGS",label:n.dayTime.result,description:"",form:n.dayTime.form,type:n.dayTime.type},{title:"IN THE EVENING",label:n.evening.result,description:"",form:n.evening.form,type:n.evening.type},{title:"AT BEDTIME",label:n.bedTime.result,description:"",form:n.bedTime.form,type:n.bedTime.type}];return C(_t,{children:C("div",{className:"flex flex-col items-center gap-0 px-2 md:gap-20",children:Q("div",{className:"w-full max-w-[1211px] lg:w-3/5",children:[C("header",{children:C(he,{variant:"large",font:"bold",className:"my-10 font-nobel",children:"Initial Recommendations:"})}),Q("section",{className:"flex flex-col items-center justify-center gap-10 bg-cream-200 px-0 py-7 md:px-10 lg:flex-row",children:[Q("article",{className:"flex flex-row items-center justify-center gap-4",children:[C("div",{className:"h-14 w-14 rounded-full bg-cream-300 p-3",children:C(Et.CheckIcon,{className:"stroke-[5px]"})}),Q("div",{className:"flex w-full flex-col md:w-[316px]",children:[C(he,{variant:"large",font:"bold",className:"font-nobel",children:"What's included:"}),C(he,{variant:"base",className:"underline",children:"Product types/forms."}),C(he,{variant:"base",className:"underline",children:"Starting doses."}),C(he,{variant:"base",className:"underline",children:"Times of uses."}),C(Vt,{variant:"white",right:C(Et.ArrowRightIcon,{}),className:"mt-6",onClick:()=>{l(Se.profilingTwo)},children:"Save Recommendations"})]})]}),Q("article",{className:"flex-wor flex items-center justify-center gap-4",children:[C("div",{children:C("div",{className:"h-14 w-14 rounded-full bg-cream-300 p-2",children:C(Et.XMarkIcon,{className:"stroke-[3px]"})})}),Q("div",{className:"flex w-[316px] flex-col",children:[C(he,{variant:"large",font:"bold",className:"whitespace-nowrap font-nobel",children:"What's not included:"}),C(he,{variant:"base",className:"underline",children:"Local dispensary inventory match."}),C(he,{variant:"base",className:"underline",children:"Clinician review & approval."}),C(he,{variant:"base",className:"underline",children:"Ongoing feedback & optimization."}),C(Vt,{variant:"white",right:C(Et.ArrowRightIcon,{}),className:"mt-6",onClick:()=>{l(Se.profilingTwo)},children:"Continue & Get Care Plan"})]})]})]}),Q("section",{children:[C("header",{children:C(he,{variant:"large",font:"bold",className:"mb-8 mt-4 font-nobel",children:"On Workdays"})}),C("main",{className:"flex flex-col gap-14",children:c.map(({title:h,label:v,description:y,type:w,form:k})=>w?Q("article",{className:"gap-4 divide-y divide-gray-300",children:[C(he,{className:"text-gray-300",children:h}),Q("div",{className:"flex flex-col items-center gap-4 pt-4 md:flex-row",children:[C("div",{className:"w-14",children:C("div",{className:"flex h-10 w-10 flex-row items-center justify-center rounded-full bg-cream-300 p-2",children:xw(k)})}),Q("div",{children:[C(he,{font:"semiBold",className:"font-nobel",children:v}),C(he,{className:"hidden md:block",children:y})]})]})]},h):C(yo,{}))})]}),Q("section",{children:[C(he,{variant:"large",font:"bold",className:"mb-8 mt-12 font-nobel",children:"On Non- Workdays"}),C("main",{className:"flex flex-col gap-14",children:d.map(({title:h,label:v,description:y,type:w,form:k})=>w?Q("article",{className:"gap-4 divide-y divide-gray-300",children:[C(he,{className:"text-gray-300",children:h}),Q("div",{className:"flex flex-col items-center gap-4 pt-4 md:flex-row",children:[C("div",{className:"w-14",children:C("div",{className:"flex h-10 w-10 flex-row items-center justify-center rounded-full bg-cream-300 p-2",children:xw(k)})}),Q("div",{children:[C(he,{font:"semiBold",className:"font-nobel",children:v}),C(he,{className:"hidden md:block",children:y})]})]})]},h):C(yo,{}))})]}),C("section",{children:Q("header",{children:[C(he,{variant:"large",font:"bold",className:"mb-8 mt-12 font-nobel",children:"Why recommended"}),C(he,{className:"mb-8 mt-12",children:a})]})}),C("footer",{children:Q(he,{className:"mb-8 mt-12",children:["These recommendations were created using our proprietary data model which leverages the latest cannabis research and the wisdom of over 18,000 patient interactions. Note that these recommendations should be informed by a more complete understanding of your current symptoms, specific diagnoses, medications, or medical history, and have not been reviewed or approved by an eo clinician. To most responsibly define and maintain an optimal cannabis regimen,",C("a",{href:Se.register,className:"underline",children:"get your eo care plan now."})]})})]})})})},tve=()=>{const[e]=Kn(),t=e.get("submission_id"),r=e.get("union"),[n,o]=m.useState(!1),a=10,[l,c]=m.useState(0),{getSubmissionById:d}=ko(),{data:h}=b7({queryFn:()=>d(t),queryKey:["getSubmission",t],enabled:!!t,onSuccess:({data:I})=>{(I.malady===ru.Pain||I.malady===ru.Anxiety||I.malady===ru.Sleep||I.malady===ru.Other)&&o(!0),c(M=>M+1)},refetchInterval:n||l>=a?!1:1500}),v=h==null?void 0:h.data,{nonWorkdayPlan:y,workdayPlan:w,whyRecommended:k}=vA({avoidPresentation:(v==null?void 0:v.areThere)||[],currentlyUsingCannabisProducts:(v==null?void 0:v.usingCannabisProducts)==="Yes",openToUseThcProducts:(v==null?void 0:v.workday_allow_intoxication_nonworkday_allow_intoxi)||[],reasonToUse:(v==null?void 0:v.whatBrings)||[],symptomsWorseTimes:(v==null?void 0:v.symptoms_worse_times)||[],thcTypePreferences:(v==null?void 0:v.thc_type_preferences)||Yu.notSure}),_=I=>{let M="";switch(I.time){case"Morning":M="IN THE MORNINGS";break;case"Evening":M="IN THE EVENING";break;case"BedTime":M="AT BEDTIME";break}return{title:M,label:I.result,description:"",form:I.form,type:I.type}},R=Object.values(w).map(_).filter(I=>!!I.type),$=Object.values(y).map(_).filter(I=>!!I.type),E=(v==null?void 0:v.thc_type_preferences)===Yu.notPrefer,b=R.length||$.length,B=(I,M)=>Q("section",{className:"mt-8",children:[C("header",{children:C(he,{variant:"large",font:"bold",className:"mb-8 mt-4 font-nobel ",children:I})}),C("main",{className:"flex flex-col gap-14",children:M.map(({title:z,label:N,description:j,form:oe})=>Q("article",{className:"gap-4 divide-y divide-gray-300",children:[C(he,{className:"text-gray-600",children:z}),Q("div",{className:"flex flex-col items-center gap-4 pt-4 md:flex-row",children:[C("div",{className:"w-14",children:C("div",{className:"flex h-10 w-10 flex-row items-center justify-center rounded-full bg-cream-300 p-2",children:xw(oe)})}),Q("div",{children:[C(he,{font:"semiBold",className:"font-nobel",children:N}),C(he,{className:"hidden md:block",children:j})]})]})]},z))})]});return C(_t,{children:C("div",{className:"flex flex-col items-center gap-0 px-2 md:gap-20",children:Q("div",{className:"w-full max-w-[1211px] md:w-[90%] lg:w-4/5",children:[C("header",{children:C(he,{variant:"large",font:"bold",className:"my-10 font-nobel",children:"Initial Recommendations:"})}),Q("section",{className:"grid grid-cols-1 items-center justify-center divide-x divide-solid bg-cream-200 px-0 py-7 md:px-3 lg:grid-cols-2 lg:divide-gray-400",children:[Q("article",{className:"md:max-w-1/2 flex flex-col items-center justify-center gap-4 md:flex-row",children:[C("div",{className:"ml-4 flex h-10 w-10 flex-row items-center justify-center rounded-full bg-cream-300 p-2 md:h-14 md:w-14 md:p-3",children:C(Et.CheckIcon,{className:"h-20 w-20 stroke-[5px] md:h-14 md:w-14"})}),Q("div",{className:"flex w-[316px] flex-col p-4",children:[C(he,{variant:"large",font:"bold",className:"font-nobel text-3xl",children:"What's included:"}),C(he,{variant:"base",font:"medium",children:"Product types/forms."}),C(he,{variant:"base",font:"medium",children:"Starting doses."}),C(he,{variant:"base",font:"medium",children:"Times of uses."}),C(Vt,{id:"ga-save-recomendation",variant:"white",right:C(Et.ArrowRightIcon,{className:"stroke-[4px]"}),className:"mt-6 h-[30px]",onClick:()=>{window.location.href=`/${r}/account?submission_id=${t}&union=${r}`},children:C(he,{font:"medium",children:"Save Recommendations"})})]})]}),Q("article",{className:"md:max-w-1/2 flex flex-col items-center justify-center gap-4 md:flex-row",children:[C("div",{className:"ml-4 flex h-10 w-10 flex-row items-center justify-center rounded-full bg-cream-300 p-2 md:h-14 md:w-14 md:p-3",children:C(Et.XMarkIcon,{className:"h-20 w-20 stroke-[5px] md:h-14 md:w-14"})}),Q("div",{className:"flex w-[316px] flex-col p-4",children:[C(he,{variant:"large",font:"bold",className:"whitespace-nowrap font-nobel text-3xl",children:"What's not included:"}),C(he,{variant:"base",font:"medium",children:"Local dispensary inventory match."}),C(he,{variant:"base",font:"medium",children:"Clinician review & approval."}),C(he,{variant:"base",font:"medium",children:"Ongoing feedback & optimization."}),C(Vt,{id:"ga-continue-recomendation",variant:"white",right:C(Et.ArrowRightIcon,{className:"stroke-[4px]"}),className:"mt-6 h-[30px]",onClick:()=>{window.location.href=`/${r}/account?submission_id=${t}&union=${r}`},children:C(he,{font:"medium",children:"Continue & Get Care Plan"})})]})]})]}),!n||!b?C(yo,{children:l{window.location.href=`/${r}/profile-onboarding?malady=${(v==null?void 0:v.malady)||"Pain"}&union=${r}`},children:C(he,{font:"medium",children:"Redirect"})}),C(he,{children:"Thank you for your cooperation. We appreciate your effort in providing us with the required information to serve you better."})]})}),C("section",{children:Q("header",{children:[C(he,{variant:"large",font:"bold",className:"mb-8 mt-12 font-nobel",children:"Why recommended"}),C(he,{className:"mb-4 mt-4 py-2 text-justify",children:k})]})}),C("footer",{children:Q(he,{className:"mb-8 mt-4 text-justify",children:["These recommendations were created using our proprietary data model which leverages the latest cannabis research and the wisdom of over 18,000 patient interactions. Note that these recommendations should be informed by a more complete understanding of your current symptoms, specific diagnoses, medications, or medical history, and have not been reviewed or approved by an eo clinician. To most responsibly define and maintain an optimal cannabis regimen,"," ",C("span",{onClick:()=>{window.location.href=`/${r}/account?submission_id=${t}&union=${r}`},className:"poin cursor-pointer font-bold underline",children:"get your eo care plan now."})]})})]})})})},rve=Zt.object({password:Zt.string().min(8,{message:"The password must has 8 characters."}).regex(/(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])/,"The password must have at least one uppercase letter, one lowercase letter, one number"),password_confirmation:Zt.string().min(8,{message:"This field is required."}),token:Zt.string().min(1,"Token is required")}),nve=()=>{var v,y;const{resetPassword:e}=ko(),[t,r]=m.useState(!1),{formState:{errors:n},register:o,handleSubmit:a,setValue:l}=mc({resolver:vc(rve)}),c=Ut(),[d]=Kn(),{mutate:h}=Xn({mutationFn:e,onSuccess:()=>{We.success("Your password has been reset. Sign in with your new password."),c(Se.login)},onError:w=>{var k;Ui.isAxiosError(w)?((k=w.response)==null?void 0:k.status)!==200&&We.error("Something went wrong"):We.error("Something went wrong")}});return m.useEffect(()=>{d.has("token")?l("token",d.get("token")||""):c(Se.login)},[c,d,l]),C(_t,{children:Q("div",{className:"flex h-full h-full flex-row items-center justify-center gap-20 px-2",children:[Q("div",{children:[C(he,{variant:"large",font:"bold",children:"Reset your password"}),Q("form",{className:"mt-10 flex flex-col ",onSubmit:w=>{a(k=>{h(k)})(w)},children:[C(Vn,{id:"password",containerClassName:"max-w-[327px]",label:"Password",right:t?C(Et.EyeIcon,{className:"m-auto h-5 w-5 cursor-pointer text-primary-white-600",onClick:()=>r(w=>!w)}):C(Et.EyeSlashIcon,{className:"m-auto h-5 w-5 cursor-pointer text-primary-white-600",onClick:()=>r(w=>!w)}),className:"h-12 shadow-md",type:t?"text":"password",...o("password"),error:(v=n.password)==null?void 0:v.message}),C(Vn,{id:"password_confirmation",label:"Password confirmation",containerClassName:"max-w-[327px]",className:"h-12 shadow-md",type:"password",...o("password_confirmation"),error:(y=n.password_confirmation)==null?void 0:y.message}),Q(he,{variant:"small",font:"regular",className:"text-gray-500",children:["Must be at least 8 characters long and contain ",C("br",{})," a capital letter, number, and special character"]}),C(Vt,{type:"submit",className:"mt-10 w-fit",children:"Save and Sign in"})]})]}),C("div",{className:"hidden md:block",children:C("img",{className:"w-[500px]",src:"https://uploads-ssl.webflow.com/641990da28209a736d8d7c6a/641990da28209a9b288d7e7d_WhatsApp%20Image%202022-11-08%20at%207.46.28%20PM%20(1).jpeg",alt:"Images showing app of Eo Care"})})]})})},ove=Da(({label:e,message:t,error:r,id:n,compact:o,style:a,containerClassName:l,className:c,...d},h)=>Q("div",{style:a,className:Bt("relative",l),children:[Q("div",{className:Bt("flex flex-row items-center rounded-md",!!d.disabled&&"opacity-30"),children:[C("input",{ref:h,type:"checkbox",id:n,...d,className:Bt("shadow-xs block h-[40px] w-[40px] border-none text-neutrals-dark-400 placeholder:text-primary-white-600 focus:border-secondary-green focus:ring-2 focus:ring-secondary-green-300 sm:text-sm",!!r&&"border-red focus:border-red focus:ring-red-200",!!d.disabled&&"border-gray-500 bg-black-100",c)}),C(uc,{htmlFor:n,className:"text-mono",containerClassName:"ml-2",label:e})]}),!o&&C(Gs,{message:t,error:r})]})),ive=Zt.object({first_name:Zt.string().min(2,"The first name must be present"),last_name:Zt.string().min(2,"The last name must be present"),email:Zt.string().min(1,{message:"Email is required"}).email({message:"The email received it is not a valid email"}),password:Zt.string().min(8,{message:"The password must has 8 characters."}).regex(/(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])/,"The password must have at least one uppercase letter, one lowercase letter, one number"),password_confirmation:Zt.string().min(8,{message:"This field is required."}),agree_terms_and_conditions:Zt.boolean({required_error:"You must agree to the terms and conditions"})}).refine(e=>e.password===e.password_confirmation,{message:"Passwords don't match",path:["password_confirmation"]}).refine(e=>!!e.agree_terms_and_conditions,{message:"You must agree to the terms and conditions",path:["agree_terms_and_conditions"]}),ave=()=>{var h,v,y,w,k,_;const e=Ut(),{formState:{errors:t},register:r,handleSubmit:n,getValues:o,setError:a}=mc({resolver:vc(ive)}),{mutate:l}=Xn({mutationFn:Gme,onError:R=>{var $,E,b,B,I;if(Ui.isAxiosError(R)){const M=($=R.response)==null?void 0:$.data;(E=M.errors)!=null&&E.email&&a("email",{message:((b=M.errors.email.pop())==null?void 0:b.message)||""}),(B=M.errors)!=null&&B.password&&a("password",{message:((I=M.errors.password.pop())==null?void 0:I.message)||""})}else We.error("Something went wrong. Please try again later.")},onSuccess:({data:R})=>{typeof R=="string"&&e(Se.registrationComplete,{state:{email:o("email")}})}}),[c,d]=m.useState(!1);return C(_t,{children:Q("div",{className:"flex h-full w-full flex-row items-center justify-center gap-x-20 px-2",children:[Q("div",{children:[C(he,{variant:"large",font:"bold",children:"Start here."}),Q("form",{className:"mt-10",onSubmit:R=>{n($=>{l($)})(R)},children:[Q("div",{className:"flex flex-col gap-0 md:flex-row md:gap-2",children:[C(Vn,{id:"firstName",label:"First name",type:"text",className:"h-12 shadow-md",...r("first_name"),error:(h=t.first_name)==null?void 0:h.message}),C(Vn,{id:"lastName",label:"Last name",type:"text",className:"h-12 shadow-md",...r("last_name"),error:(v=t.last_name)==null?void 0:v.message})]}),C(Vn,{id:"email",label:"Email",type:"email",className:"h-12 shadow-md",...r("email"),error:(y=t.email)==null?void 0:y.message}),C(Vn,{id:"password",label:"Password",right:c?C(Et.EyeIcon,{className:"m-auto h-5 w-5 cursor-pointer text-primary-white-600",onClick:()=>d(R=>!R)}):C(Et.EyeSlashIcon,{className:"m-auto h-5 w-5 cursor-pointer text-primary-white-600",onClick:()=>d(R=>!R)}),className:"h-12 shadow-md",type:c?"text":"password",...r("password"),error:(w=t.password)==null?void 0:w.message}),C(Vn,{id:"password_confirmation",label:"Password confirmation",className:"h-12 shadow-md",type:"password",...r("password_confirmation"),error:(k=t.password_confirmation)==null?void 0:k.message}),Q(he,{variant:"small",font:"regular",className:"text-gray-500",children:["Must be at least 8 characters long and contain ",C("br",{})," a capital letter, number, and special character"]}),C(ove,{id:"agree_terms_and_conditions",...r("agree_terms_and_conditions"),error:(_=t.agree_terms_and_conditions)==null?void 0:_.message,containerClassName:"mt-2",label:Q(he,{variant:"small",font:"regular",children:["I have read and agree to the"," ",Q("a",{href:"https://www.eo.care/web/terms-of-use",target:"_blank",className:"underline",children:["Terms of ",C("br",{className:"block md:hidden lg:block"}),"Service"]}),", and"," ",Q("a",{href:"https://www.eo.care/web/privacy-policy",target:"_blank",className:"underline",children:["Privacy Policy"," "]})," ","of eo."]})}),C(Vt,{type:"submit",className:"mt-3",children:"Create account"}),Q(he,{variant:"small",className:"text-gray-30 mt-3",children:["Already have an account?"," ",C(yp,{to:Se.login,children:C("strong",{children:"Sign in"})})]})]})]}),C("div",{className:"hidden md:block",children:C("img",{className:"w-[500px]",src:"https://uploads-ssl.webflow.com/641990da28209a736d8d7c6a/641990da28209a9b288d7e7d_WhatsApp%20Image%202022-11-08%20at%207.46.28%20PM%20(1).jpeg",alt:"Images showing app of Eo Care"})})]})})},sve=()=>{const t=Vi().state,r=Ut(),{mutate:n}=Xn({mutationFn:iA,onSuccess:({data:o})=>{o?We.success("Email has been send."):We.error("Email hasn't been send")}});return m.useEffect(()=>{t!=null&&t.email||r(Se.login)},[r,t]),C(_t,{children:Q("div",{className:"flex h-full w-full flex-col items-center justify-center px-2",children:[Q(he,{variant:"large",font:"bold",className:"mb-10 text-center",children:["We’ve sent a verification email to ",t==null?void 0:t.email,".",C("br",{})," Please verify to continue."]}),C("img",{className:"w-[500px]",src:"https://uploads-ssl.webflow.com/641990da28209a736d8d7c6a/644197b05bf126412b8799c4_woman-sat.svg",alt:"Images showing women sat in a sofa, viewing her phone"}),C(Vt,{className:"mt-10",onClick:()=>n(t.email),left:C(Et.EnvelopeIcon,{}),children:"Resend verification"})]})})},lve=()=>{const e=Vi(),t=Ut(),{zip:r}=e.state;return C(_t,{children:Q("div",{className:"flex h-full h-full flex-col items-center justify-center px-2",children:[Q(he,{variant:"large",font:"bold",className:"mx-10 text-center",children:["Sorry, this eo offering is not currently"," ",C("br",{className:"hidden md:block"}),"available in ",r,". We’ll notify you",C("br",{className:"hidden md:block"}),"when we have licensed clinicians in your area."," "]}),Q("div",{className:"mt-10 flex flex-row justify-center",children:[C(Vt,{className:"text-center",onClick:()=>t(Se.zipCodeValidation),children:"Back"}),C(Vt,{variant:"secondary",onClick:()=>t(Se.home),className:"ml-4",children:"Continue"})]})]})})},gA=e=>{const t=()=>{const n=document.createElement("script");return n.type="text/javascript",n.textContent=`Zuko.trackForm({slug:'${e}'}).trackEvent(Zuko.COMPLETION_EVENT);`,setTimeout(()=>{document.body.appendChild(n)},2e3),()=>{setTimeout(()=>{document.body.removeChild(n)},2e3)}},r=()=>{const n=document.createElement("script");return n.type="text/javascript",n.textContent=`Zuko.trackForm({target:document.body,slug:"${e}"}).trackEvent(Zuko.FORM_VIEW_EVENT);`,setTimeout(()=>{document.body.appendChild(n)},2e3),()=>{setTimeout(()=>{document.body.removeChild(n)},2e3)}};return m.useEffect(()=>{const n=document.createElement("script");return n.type="text/javascript",n.async=!0,n.src="https://assets.zuko.io/js/v2/client.min.js",document.body.appendChild(n),()=>{document.body.removeChild(n)}},[]),{triggerCompletionEvent:t,triggerViewEvent:r}},uve=Zt.object({zip_code:Zt.string().min(5,{message:"Zip code is invalid"}).max(5,{message:"Zip code is invalid"})}),cve=()=>{var v;const{validateZipCode:e}=ko(),{triggerViewEvent:t}=gA(qk);m.useEffect(t,[t]);const r=Ut(),n=Di(y=>y.setProfileZip),{formState:{errors:o},register:a,handleSubmit:l,setError:c,getValues:d}=mc({resolver:vc(uve)}),{mutate:h}=Xn({mutationFn:e,onSuccess:()=>{n(d("zip_code")),r(Se.eligibleProfile)},onError:y=>{var w,k;Ui.isAxiosError(y)?((w=y.response)==null?void 0:w.status)===400?(n(d("zip_code")),r(Se.unavailableZipCode,{state:{zip:d("zip_code")}})):((k=y.response)==null?void 0:k.status)===422&&c("zip_code",{message:"Zip code is invalid"}):We.error("Something went wrong")}});return C(_t,{children:Q("div",{className:"flex h-full h-full flex-col items-center justify-center px-2",children:[C(he,{variant:"large",font:"bold",className:"text-center",children:"First, let’s check our availability in your area."}),Q("form",{className:"mt-10 flex flex-col items-center justify-center",onSubmit:y=>{l(w=>{h(w.zip_code)})(y)},children:[C(Vn,{id:"zip_code",label:"Zip Code",type:"number",className:"h-12 shadow-md",...a("zip_code"),error:(v=o.zip_code)==null?void 0:v.message}),C(Vt,{type:"submit",className:"mt-10",children:"Submit"})]})]})})},fve=()=>(m.useEffect(()=>{Vs(r3)}),C(_t,{children:C("div",{className:"mb-10 flex h-screen flex-col",children:C("iframe",{id:`JotFormIFrame-${r3}`,title:"Clone of Profiling 1",onLoad:()=>window.parent.scrollTo(0,0),allowTransparency:!0,allowFullScreen:!0,allow:"geolocation; microphone; camera",src:`https://form.jotform.com/${r3}?isuser=Yes`,className:"h-full w-full"})})})),dve=()=>{const e=Ut(),[t,r]=m.useState(!1),{combineProfileOne:n}=ko(),[o]=Kn();o.get("submission_id")||e(Se.login);const{mutate:a}=Xn({mutationFn:n,onSuccess:()=>{setTimeout(()=>{e(Se.prePlan)},5e3)},onError:()=>{r(!1)}});return m.useEffect(()=>{t||r(l=>(l||a(o.get("submission_id")||""),!0))},[a,o,t]),C(_t,{children:Q("div",{className:"flex h-full h-full flex-col items-center justify-center",children:[C(he,{variant:"large",font:"bold",children:"Great! Your submission was sent."}),C(Vt,{type:"button",className:"mt-10",onClick:()=>e(Se.prePlan),children:"Continue!"})]})})},hve=()=>(m.useEffect(()=>{Vs(n3)}),C(_t,{children:C("div",{className:"mb-10 flex h-screen flex-col",children:C("iframe",{id:`JotFormIFrame-${n3}`,title:"Clone of Profiling 1",onLoad:()=>window.parent.scrollTo(0,0),allowTransparency:!0,allowFullScreen:!0,allow:"geolocation; microphone; camera",src:`https://form.jotform.com/${n3}`,className:"h-full w-full"})})})),pve=()=>{const e=Ut(),[t,r]=m.useState(!1),{combineProfileOne:n}=ko(),[o]=Kn(),{triggerCompletionEvent:a}=gA(qk);o.get("submission_id")||e(Se.login);const{mutate:l}=Xn({mutationFn:n,onSuccess:()=>{r(!0),setTimeout(()=>{e(Se.profilingTwo)},5e3)}});return m.useEffect(a,[a]),m.useEffect(()=>{t||l(o.get("submission_id")||"")},[l,o,t]),C(_t,{children:Q("div",{className:"flex h-full h-full flex-col items-center justify-center",children:[Q(he,{variant:"large",font:"bold",className:"text-center",children:["Great! We are working with your care plan. ",C("br",{}),C("br",{})," In a few minutes we will send you by email."," ",C("br",{className:"hidden md:block"})," Also you will be able to view your care plan in your dashboard."]}),C(Vt,{type:"button",className:"mt-10",onClick:()=>e(Se.home),children:"Go home"})]})})},mve=()=>Q(mT,{children:[Q(st,{element:C(t3,{expected:"loggedOut"}),children:[C(st,{element:C(Kme,{}),path:Se.login}),C(st,{element:C(ave,{}),path:Se.register}),C(st,{element:C(sve,{}),path:Se.registrationComplete}),C(st,{element:C(qme,{}),path:Se.forgotPassword}),C(st,{element:C(nve,{}),path:Se.recoveryPassword}),C(st,{element:C(tve,{}),path:Se.prePlanV2})]}),Q(st,{element:C(t3,{expected:"withZipCode"}),children:[C(st,{element:C(Zme,{}),path:Se.home}),C(st,{element:C(lve,{}),path:Se.unavailableZipCode}),C(st,{element:C(Eme,{}),path:Se.eligibleProfile}),C(st,{element:C(fve,{}),path:Se.profilingOne}),C(st,{element:C(dve,{}),path:Se.profilingOneRedirect}),C(st,{element:C(hve,{}),path:Se.profilingTwo}),C(st,{element:C(pve,{}),path:Se.profilingTwoRedirect}),C(st,{element:C(eve,{}),path:Se.prePlan})]}),C(st,{element:C(t3,{expected:["withoutZipCode","withZipCode"]}),children:C(st,{element:C(cve,{}),path:Se.zipCodeValidation})}),C(st,{element:C(_me,{}),path:Se.emailVerification}),C(st,{element:C(xme,{}),path:Se.cancerProfile}),C(st,{element:C(bme,{}),path:Se.cancerUserTypeSelectDemo}),C(st,{element:C(rpe,{}),path:Se.cancerFormDemo}),C(st,{element:C(Cme,{}),path:Se.cancerUserVerification}),C(st,{element:C(tpe,{}),path:Se.cancerForm}),C(st,{element:C(gme,{}),path:Se.cancerThankYou}),C(st,{element:C(yme,{}),path:Se.cancerSurvey}),C(st,{element:C(wme,{}),path:Se.cancerSurveyThankYou})]});const vve=new jT;function gve(){return Q(JT,{client:vve,children:[C(mve,{}),C(Dy,{position:"top-right",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0}),BN.VITE_APP_ENV==="local"&&C(hj,{initialIsOpen:!1})]})}B3.createRoot(document.getElementById("root")).render(C(we.StrictMode,{children:C(bT,{children:C(gve,{})})})); +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[NC]=this[NC]={accessors:{}}).accessors,o=this.prototype;function a(l){const c=Pl(l);n[c]||(tme(o,l),n[c]=!0)}return Z.isArray(t)?t.forEach(a):a(t),this}}iv.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Z.freezeMethods(iv.prototype);Z.freezeMethods(iv);const Zo=iv;function E3(e,t){const r=this||j7,n=t||r,o=Zo.from(n.headers);let a=n.data;return Z.forEach(e,function(c){a=c.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function tA(e){return!!(e&&e.__CANCEL__)}function dc(e,t,r){Xe.call(this,e??"canceled",Xe.ERR_CANCELED,t,r),this.name="CanceledError"}Z.inherits(dc,Xe,{__CANCEL__:!0});function rme(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Xe("Request failed with status code "+r.status,[Xe.ERR_BAD_REQUEST,Xe.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const nme=vo.isStandardBrowserEnv?function(){return{write:function(r,n,o,a,l,c){const d=[];d.push(r+"="+encodeURIComponent(n)),Z.isNumber(o)&&d.push("expires="+new Date(o).toGMTString()),Z.isString(a)&&d.push("path="+a),Z.isString(l)&&d.push("domain="+l),c===!0&&d.push("secure"),document.cookie=d.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function ome(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ime(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function rA(e,t){return e&&!ome(t)?ime(e,t):t}const ame=vo.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(a){let l=a;return t&&(r.setAttribute("href",l),l=r.href),r.setAttribute("href",l),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(l){const c=Z.isString(l)?o(l):l;return c.protocol===n.protocol&&c.host===n.host}}():function(){return function(){return!0}}();function sme(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function lme(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,a=0,l;return t=t!==void 0?t:1e3,function(d){const h=Date.now(),v=n[a];l||(l=h),r[o]=d,n[o]=h;let y=a,w=0;for(;y!==o;)w+=r[y++],y=y%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),h-l{const a=o.loaded,l=o.lengthComputable?o.total:void 0,c=a-r,d=n(c),h=a<=l;r=a;const v={loaded:a,total:l,progress:l?a/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&h?(l-a)/d:void 0,event:o};v[t?"download":"upload"]=!0,e(v)}}const ume=typeof XMLHttpRequest<"u",cme=ume&&function(e){return new Promise(function(r,n){let o=e.data;const a=Zo.from(e.headers).normalize(),l=e.responseType;let c;function d(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}Z.isFormData(o)&&(vo.isStandardBrowserEnv||vo.isStandardBrowserWebWorkerEnv)&&a.setContentType(!1);let h=new XMLHttpRequest;if(e.auth){const k=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(k+":"+_))}const v=rA(e.baseURL,e.url);h.open(e.method.toUpperCase(),XR(v,e.params,e.paramsSerializer),!0),h.timeout=e.timeout;function y(){if(!h)return;const k=Zo.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),R={data:!l||l==="text"||l==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:k,config:e,request:h};rme(function(E){r(E),d()},function(E){n(E),d()},R),h=null}if("onloadend"in h?h.onloadend=y:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(y)},h.onabort=function(){h&&(n(new Xe("Request aborted",Xe.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new Xe("Network Error",Xe.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let _=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const R=e.transitional||JR;e.timeoutErrorMessage&&(_=e.timeoutErrorMessage),n(new Xe(_,R.clarifyTimeoutError?Xe.ETIMEDOUT:Xe.ECONNABORTED,e,h)),h=null},vo.isStandardBrowserEnv){const k=(e.withCredentials||ame(v))&&e.xsrfCookieName&&nme.read(e.xsrfCookieName);k&&a.set(e.xsrfHeaderName,k)}o===void 0&&a.setContentType(null),"setRequestHeader"in h&&Z.forEach(a.toJSON(),function(_,R){h.setRequestHeader(R,_)}),Z.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),l&&l!=="json"&&(h.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&h.addEventListener("progress",zC(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",zC(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=k=>{h&&(n(!k||k.type?new dc(null,e,h):k),h.abort(),h=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const w=sme(v);if(w&&vo.protocols.indexOf(w)===-1){n(new Xe("Unsupported protocol "+w+":",Xe.ERR_BAD_REQUEST,e));return}h.send(o||null)})},W5={http:Ppe,xhr:cme};Z.forEach(W5,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const fme={getAdapter:e=>{e=Z.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let o=0;oe instanceof Zo?e.toJSON():e;function Fs(e,t){t=t||{};const r={};function n(h,v,y){return Z.isPlainObject(h)&&Z.isPlainObject(v)?Z.merge.call({caseless:y},h,v):Z.isPlainObject(v)?Z.merge({},v):Z.isArray(v)?v.slice():v}function o(h,v,y){if(Z.isUndefined(v)){if(!Z.isUndefined(h))return n(void 0,h,y)}else return n(h,v,y)}function a(h,v){if(!Z.isUndefined(v))return n(void 0,v)}function l(h,v){if(Z.isUndefined(v)){if(!Z.isUndefined(h))return n(void 0,h)}else return n(void 0,v)}function c(h,v,y){if(y in t)return n(h,v);if(y in e)return n(void 0,h)}const d={url:a,method:a,data:a,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c,headers:(h,v)=>o(VC(h),VC(v),!0)};return Z.forEach(Object.keys(e).concat(Object.keys(t)),function(v){const y=d[v]||o,w=y(e[v],t[v],v);Z.isUndefined(w)&&y!==c||(r[v]=w)}),r}const nA="1.3.6",N7={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{N7[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const UC={};N7.transitional=function(t,r,n){function o(a,l){return"[Axios v"+nA+"] Transitional option '"+a+"'"+l+(n?". "+n:"")}return(a,l,c)=>{if(t===!1)throw new Xe(o(l," has been removed"+(r?" in "+r:"")),Xe.ERR_DEPRECATED);return r&&!UC[l]&&(UC[l]=!0,console.warn(o(l," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,l,c):!0}};function dme(e,t,r){if(typeof e!="object")throw new Xe("options must be an object",Xe.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const a=n[o],l=t[a];if(l){const c=e[a],d=c===void 0||l(c,a,e);if(d!==!0)throw new Xe("option "+a+" must be "+d,Xe.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Xe("Unknown option "+a,Xe.ERR_BAD_OPTION)}}const vw={assertOptions:dme,validators:N7},hi=vw.validators;class Cm{constructor(t){this.defaults=t,this.interceptors={request:new jC,response:new jC}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Fs(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&vw.assertOptions(n,{silentJSONParsing:hi.transitional(hi.boolean),forcedJSONParsing:hi.transitional(hi.boolean),clarifyTimeoutError:hi.transitional(hi.boolean)},!1),o!=null&&(Z.isFunction(o)?r.paramsSerializer={serialize:o}:vw.assertOptions(o,{encode:hi.function,serialize:hi.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let l;l=a&&Z.merge(a.common,a[r.method]),l&&Z.forEach(["delete","get","head","post","put","patch","common"],_=>{delete a[_]}),r.headers=Zo.concat(l,a);const c=[];let d=!0;this.interceptors.request.forEach(function(R){typeof R.runWhen=="function"&&R.runWhen(r)===!1||(d=d&&R.synchronous,c.unshift(R.fulfilled,R.rejected))});const h=[];this.interceptors.response.forEach(function(R){h.push(R.fulfilled,R.rejected)});let v,y=0,w;if(!d){const _=[WC.bind(this),void 0];for(_.unshift.apply(_,c),_.push.apply(_,h),w=_.length,v=Promise.resolve(r);y{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a;const l=new Promise(c=>{n.subscribe(c),a=c}).then(o);return l.cancel=function(){n.unsubscribe(a)},l},t(function(a,l,c){n.reason||(n.reason=new dc(a,l,c),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new z7(function(o){t=o}),cancel:t}}}const hme=z7;function pme(e){return function(r){return e.apply(null,r)}}function mme(e){return Z.isObject(e)&&e.isAxiosError===!0}const gw={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gw).forEach(([e,t])=>{gw[t]=e});const vme=gw;function oA(e){const t=new V5(e),r=NR(V5.prototype.request,t);return Z.extend(r,V5.prototype,t,{allOwnKeys:!0}),Z.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return oA(Fs(e,o))},r}const tr=oA(j7);tr.Axios=V5;tr.CanceledError=dc;tr.CancelToken=hme;tr.isCancel=tA;tr.VERSION=nA;tr.toFormData=nv;tr.AxiosError=Xe;tr.Cancel=tr.CanceledError;tr.all=function(t){return Promise.all(t)};tr.spread=pme;tr.isAxiosError=mme;tr.mergeConfig=Fs;tr.AxiosHeaders=Zo;tr.formToJSON=e=>eA(Z.isHTMLForm(e)?new FormData(e):e);tr.HttpStatusCode=vme;tr.default=tr;const Ui=tr,en=Ui.create({baseURL:"",headers:{"Content-Type":"application/json"}}),ko=()=>{const t={headers:{Authorization:`Bearer ${Di(w=>{var k;return(k=w.session)==null?void 0:k.token})}`}};return{validateZipCode:async w=>en.post(`${Nn}/v2/profile/validate_zip_code`,{zip:w},t),combineProfileOne:async w=>en.post(`${Nn}/v2/profile/submit_profiling_one`,{submission_id:w},t),combineProfileTwo:async w=>en.post(`${Nn}/v2/profile/combine_profile_two`,{submission_id:w},t),sendEmailToRecoveryPassword:async w=>en.post(`${Nn}/v2/profile/request_password_reset`,{email:w}),resetPassword:async w=>en.post(`${Nn}/v2/profile/reset_password`,w),getSubmission:async()=>await en.get(`${Nn}/v2/profile/profiling_one`,t),getSubmissionById:async w=>await en.get(`${Nn}/v2/submission/profiling_one?submission_id=${w}`,t),eligibleEmail:async w=>await en.get(`${Nn}/v2/profiles/eligible?email=${w}`,t),postCancerFormSubmission:async w=>await en.post(`${J9}/api/v2/cancer/profile`,w),postCancerSurveyFormSubmission:async w=>await en.post(`${J9}/api/cancer/survey`,w)}},gme=()=>{const[e]=Kn(),t=e.get("submission_id")||"",r=Ut();t||r(Se.cancerProfile);const{postCancerFormSubmission:n}=ko(),{mutate:o}=Xn({mutationFn:n,mutationKey:["postCancerFormSubmission",t],onError:a=>{var l;Ui.isAxiosError(a)?((l=a.response)==null?void 0:l.status)!==200&&We.error("Something went wrong"):We.error("Something went wrong")}});return P7(()=>o({submission_id:t})),C(_t,{children:Q("div",{className:"flex flex-col items-center justify-center px-[20%]",children:[C(he,{variant:"large",className:"font-nunito font-bold",style:{fontFamily:"nunito",lineHeight:"55px",fontSize:"45px"},children:"All done!"}),C("br",{}),Q(he,{variant:"base",font:"regular",className:"text-center font-nunito",style:{fontWeight:"300px",fontFamily:"nunito",lineHeight:"40px",fontSize:"28px"},children:["You’ll receive your initial, personalized, clinician-approved care care plan via email within 24 hours. ",C("br",{}),C("br",{}),"If you’ve opted to receive a medical card through eo and/or take home delivery of your products, we’ll communicate your next steps in separate email(s) you’ll receive shortly. ",C("br",{}),C("br",{}),"Have questions? We’re here. Email members@eo.care, call"," ",C("a",{href:"tel:+1-877-707-0706",children:"877-707-0706"}),", or schedule a free consultation."]})]})})},yme=()=>{const[e]=Kn(),t=e.get("email")||"";return m.useEffect(()=>{Vs(i3)},[]),C(_t,{children:C("div",{className:"mb-10 flex h-screen flex-col",children:C("iframe",{id:`JotFormIFrame-${i3}`,title:"",onLoad:()=>window.parent.scrollTo(0,0),allow:"geolocation; microphone; camera",allowTransparency:!0,allowFullScreen:!0,src:`https://form.jotform.com/${i3}?email=${t}`,className:"h-full w-full",style:{minWidth:"100%",height:"539px",border:"none"}})})})},wme=()=>{const[e]=Kn(),t=e.get("submission_id")||"",r=Ut();t||r(Se.cancerProfile);const{postCancerSurveyFormSubmission:n}=ko(),{mutate:o}=Xn({mutationFn:n,mutationKey:["postCancerSurveyFormSubmission",t],onError:a=>{var l;Ui.isAxiosError(a)?((l=a.response)==null?void 0:l.status)!==200&&We.error("Something went wrong"):We.error("Something went wrong")}});return P7(()=>o({submission_id:t})),C(_t,{children:Q("div",{className:"flex h-full flex-col items-center justify-center px-[20%]",children:[C(he,{variant:"large",className:"font-nunito font-bold",style:{fontFamily:"nunito",lineHeight:"55px",fontSize:"45px"},children:"All done!"}),C("br",{}),Q(he,{variant:"base",font:"regular",className:"text-center font-nunito",style:{fontWeight:"300px",fontFamily:"nunito",lineHeight:"40px",fontSize:"28px"},children:["We receive your feedback! ",C("br",{}),C("br",{}),"Thank you! ",C("br",{}),C("br",{}),"Have questions? We’re here. Email members@eo.care, call"," ",C("a",{href:"tel:+1-877-707-0706",children:"877-707-0706"}),", or schedule a free consultation."]})]})})},xme=()=>(m.useEffect(()=>{Vs(o3)},[]),C(_t,{children:C("div",{className:"mb-10 flex h-screen flex-col",children:C("iframe",{id:`JotFormIFrame-${o3}`,title:"",onLoad:()=>window.parent.scrollTo(0,0),allow:"geolocation; microphone; camera",allowTransparency:!0,allowFullScreen:!0,src:`https://form.jotform.com/${o3}`,className:"h-full w-full",style:{minWidth:"100%",height:"539px",border:"none"}})})})),bme=()=>{const e=Ut(),t=r=>{e(`${Se.cancerFormDemo}?type=${r}`)};return C(_t,{children:C("div",{className:"flex h-full w-full items-center justify-center bg-[#f8f6f3] bg-opacity-50",children:Q("div",{className:"relative w-3/4 bg-white px-[43px] py-[52px] md:w-[742px]",children:[C("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",className:"absolute left-4 top-4 h-6 w-6",onClick:()=>window.location.href=`https://${window.location.host}/pilot#how-eo-care-plans-works`,children:C("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18"})}),Q(he,{className:"text-nunito text-lg font-normal",children:["Which best describes you? ",C("span",{className:"text-red-600",children:"*"})]}),Q("div",{className:"mt-6 flex flex-row gap-5",children:[C("button",{className:"text-nunito h-[41px] w-1/2 border border-solid border-[#a5c4ff] bg-[#a5c4ff] bg-opacity-10 px-[15px] py-[9px] ",onClick:()=>t("Patient"),children:"Patient"}),C("button",{className:"text-nunito h-[41px] w-1/2 border border-solid border-[#a5c4ff] bg-[#a5c4ff] bg-opacity-10 px-[15px] py-[9px] ",onClick:()=>t("Caregiver"),children:"Caretaker"})]})]})})})},Cme=()=>{const e=Ut(),[t]=Kn(),{eligibleEmail:r}=ko(),n=t.get("submission_id")||"",o=t.get("name")||"",a=t.get("last")||"",l=t.get("email")||"",c=t.get("dob")||"",d=t.get("caregiver")||"",h=t.get("gender")||"";(!l||!n||!o||!a||!l||!c||!h)&&e(Se.cancerProfile);const[v,y]=m.useState(!1),[w,k]=m.useState(!1),{data:_,isLoading:R}=b7({queryFn:()=>r(l),queryKey:["eligibleEmail",l],enabled:!!l,onSuccess:({data:$})=>{if($.success){const E=new URLSearchParams({name:o,last:a,dob:c,email:l,gender:h,caregiver:d,submission_id:n});e(Se.cancerForm+`?${E}`)}else y(!0)},onError:()=>{y(!0)}});return m.useEffect(()=>{if(w){const $=new URLSearchParams({"whoAre[first]":o,"whoAre[last]":a}).toString();e(`${Se.cancerProfile}?${$}`)}},[w,a,o,e]),C(_t,{children:!R&&!(_!=null&&_.data.success)&&!v?C(yo,{children:Q("div",{className:"flex flex-col items-center justify-center",children:[C(he,{variant:"large",font:"bold",className:"mt-12 text-4xl font-bold",children:"We apologize for the inconvenience,"}),Q(he,{className:"mx-0 my-4 px-10 text-center text-justify font-nobel",variant:"large",children:[C("br",{}),C("br",{}),"You can reach our customer support team by calling the following phone number: 877-707-0706. Our representatives will be delighted to assist you and address any inquiries you may have. Alternatively, you can also send us an email at members@eo.care. Our support team regularly checks this email and will respond to you as soon as possible."]})]})}):Q(yo,{children:[C("div",{className:"relative h-[250px]",children:C(I7,{})}),C(_R,{isOpen:v,controller:y,onPressX:()=>k(!0),children:Q("div",{className:"flex h-full w-full flex-col justify-center bg-white px-10 py-4 leading-[48px] md:px-12",children:[C(he,{variant:"large",className:"mb-0 font-nobel text-3xl md:mb-6 lg:text-5xl",children:"Oops! It looks like you already have an account."}),C(he,{font:"light",className:"mb-6 mt-4 whitespace-normal text-lg lg:text-2xl ",children:"Please reach out to the eo team in order to change your care plan."}),Q("ul",{className:"list-disc pl-4",children:[C("li",{children:Q(he,{variant:"base",className:"mb-5 text-lg font-light tracking-wide lg:text-2xl",children:[C("a",{href:"https://calendly.com/help-eo/30min",className:"underline decoration-1 underline-offset-8",children:C("strong",{children:"Schedule a video chat"})})," ","with a member of our team."]})}),C("li",{children:Q(he,{variant:"base",className:"mb-5 text-lg font-light tracking-wide lg:text-2xl",children:["Call"," ",C("a",{href:"tel:877-707-0706",children:C("strong",{className:"underline decoration-1 underline-offset-8",children:"877-707-0706"})})]})}),C("li",{children:Q(he,{variant:"base",className:"mb-5 text-lg font-light tracking-wide lg:text-2xl",children:["Email"," ",C("a",{href:"mailto:members@eo.care",className:"underline decoration-1 underline-offset-8",children:C("strong",{children:"members@eo.care"})})]})})]})]})})]})})},Eme=()=>{const e=Ut();return C(_t,{children:Q("div",{className:"flex h-full h-full flex-col items-center justify-center px-2",children:[Q(he,{variant:"large",font:"bold",className:"mx-10 text-center",children:["Looks like you’re eligible for eo! Next, we’ll get you to fill out",C("br",{}),C("br",{}),"Next, we’ll get you to fill out some information"," ",C("br",{className:"hidden md:block"})," so we can better serve you..."]}),C("div",{className:"mt-10 flex flex-row justify-center",children:C(Vt,{className:"text-center",onClick:()=>e(Se.profilingOne),children:"Continue"})})]})})},iA=async e=>await en.post(`${Nn}/v2/profile/resend_confirmation_email`,{email:e}),_me=()=>{const e=Vi(),{email:t}=e.state,r=Ut(),{mutate:n}=Xn({mutationFn:iA,onSuccess:()=>{We.success("Email resent successfully, please check your inbox")},onError:()=>{We.error("An error occurred, please try again later")}});return t||r(Se.login),C(_t,{children:Q("div",{className:"flex h-full h-full flex-col items-center justify-center px-2",children:[Q(he,{variant:"large",font:"bold",children:["It looks like you haven’t verified your email."," ",C("br",{className:"hidden md:block"})," Try checking your junk or spam folders."]}),C("img",{className:"mt-4 w-[500px]",src:"https://uploads-ssl.webflow.com/641990da28209a736d8d7c6a/644197b05bf126412b8799c4_woman-sat.svg",alt:"Images showing women sat in a sofa, viewing her phone"}),C(Vt,{type:"submit",className:"mt-10",onClick:()=>n(t),left:C(Et.EnvelopeIcon,{}),children:"Resend verification"})]})})};var hc=e=>e.type==="checkbox",hs=e=>e instanceof Date,$r=e=>e==null;const aA=e=>typeof e=="object";var rr=e=>!$r(e)&&!Array.isArray(e)&&aA(e)&&!hs(e),kme=e=>rr(e)&&e.target?hc(e.target)?e.target.checked:e.target.value:e,Rme=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Ame=(e,t)=>e.has(Rme(t)),Sme=e=>{const t=e.constructor&&e.constructor.prototype;return rr(t)&&t.hasOwnProperty("isPrototypeOf")},W7=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function aa(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(W7&&(e instanceof Blob||e instanceof FileList))&&(r||rr(e)))if(t=r?[]:{},!Array.isArray(e)&&!Sme(e))t=e;else for(const n in e)t[n]=aa(e[n]);else return e;return t}var pc=e=>Array.isArray(e)?e.filter(Boolean):[],qt=e=>e===void 0,Ae=(e,t,r)=>{if(!t||!rr(e))return r;const n=pc(t.split(/[,[\].]+?/)).reduce((o,a)=>$r(o)?o:o[a],e);return qt(n)||n===e?qt(e[t])?r:e[t]:n};const HC={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Un={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Fo={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};we.createContext(null);var Ome=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const l=a;return t._proxyFormState[l]!==Un.all&&(t._proxyFormState[l]=!n||Un.all),r&&(r[l]=!0),e[l]}});return o},xn=e=>rr(e)&&!Object.keys(e).length,Bme=(e,t,r,n)=>{r(e);const{name:o,...a}=e;return xn(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(l=>t[l]===(!n||Un.all))},k3=e=>Array.isArray(e)?e:[e];function $me(e){const t=we.useRef(e);t.current=e,we.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}var go=e=>typeof e=="string",Ime=(e,t,r,n,o)=>go(e)?(n&&t.watch.add(e),Ae(r,e,o)):Array.isArray(e)?e.map(a=>(n&&t.watch.add(a),Ae(r,a))):(n&&(t.watchAll=!0),r),V7=e=>/^\w*$/.test(e),sA=e=>pc(e.replace(/["|']|\]/g,"").split(/\.|\[/));function gt(e,t,r){let n=-1;const o=V7(t)?[t]:sA(t),a=o.length,l=a-1;for(;++nt?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{};const yw=(e,t,r)=>{for(const n of r||Object.keys(e)){const o=Ae(e,n);if(o){const{_f:a,...l}=o;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else rr(l)&&yw(l,t)}}};var qC=e=>({isOnSubmit:!e||e===Un.onSubmit,isOnBlur:e===Un.onBlur,isOnChange:e===Un.onChange,isOnAll:e===Un.all,isOnTouch:e===Un.onTouched}),ZC=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length)))),Lme=(e,t,r)=>{const n=pc(Ae(e,r));return gt(n,"root",t[r]),gt(e,r,n),e},Cs=e=>typeof e=="boolean",U7=e=>e.type==="file",_i=e=>typeof e=="function",Em=e=>{if(!W7)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},U5=e=>go(e),H7=e=>e.type==="radio",_m=e=>e instanceof RegExp;const QC={value:!1,isValid:!1},GC={value:!0,isValid:!0};var uA=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!qt(e[0].attributes.value)?qt(e[0].value)||e[0].value===""?GC:{value:e[0].value,isValid:!0}:GC:QC}return QC};const YC={isValid:!1,value:null};var cA=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,YC):YC;function KC(e,t,r="validate"){if(U5(e)||Array.isArray(e)&&e.every(U5)||Cs(e)&&!e)return{type:r,message:U5(e)?e:"",ref:t}}var Ja=e=>rr(e)&&!_m(e)?e:{value:e,message:""},XC=async(e,t,r,n,o)=>{const{ref:a,refs:l,required:c,maxLength:d,minLength:h,min:v,max:y,pattern:w,validate:k,name:_,valueAsNumber:R,mount:$,disabled:E}=e._f,b=Ae(t,_);if(!$||E)return{};const B=l?l[0]:a,I=le=>{n&&B.reportValidity&&(B.setCustomValidity(Cs(le)?"":le||""),B.reportValidity())},M={},z=H7(a),N=hc(a),j=z||N,oe=(R||U7(a))&&qt(a.value)&&qt(b)||Em(a)&&a.value===""||b===""||Array.isArray(b)&&!b.length,re=lA.bind(null,_,r,M),me=(le,i,q,X=Fo.maxLength,J=Fo.minLength)=>{const fe=le?i:q;M[_]={type:le?X:J,message:fe,ref:a,...re(le?X:J,fe)}};if(o?!Array.isArray(b)||!b.length:c&&(!j&&(oe||$r(b))||Cs(b)&&!b||N&&!uA(l).isValid||z&&!cA(l).isValid)){const{value:le,message:i}=U5(c)?{value:!!c,message:c}:Ja(c);if(le&&(M[_]={type:Fo.required,message:i,ref:B,...re(Fo.required,i)},!r))return I(i),M}if(!oe&&(!$r(v)||!$r(y))){let le,i;const q=Ja(y),X=Ja(v);if(!$r(b)&&!isNaN(b)){const J=a.valueAsNumber||b&&+b;$r(q.value)||(le=J>q.value),$r(X.value)||(i=Jnew Date(new Date().toDateString()+" "+_e),V=a.type=="time",ae=a.type=="week";go(q.value)&&b&&(le=V?fe(b)>fe(q.value):ae?b>q.value:J>new Date(q.value)),go(X.value)&&b&&(i=V?fe(b)+le.value,X=!$r(i.value)&&b.length<+i.value;if((q||X)&&(me(q,le.message,i.message),!r))return I(M[_].message),M}if(w&&!oe&&go(b)){const{value:le,message:i}=Ja(w);if(_m(le)&&!b.match(le)&&(M[_]={type:Fo.pattern,message:i,ref:a,...re(Fo.pattern,i)},!r))return I(i),M}if(k){if(_i(k)){const le=await k(b,t),i=KC(le,B);if(i&&(M[_]={...i,...re(Fo.validate,i.message)},!r))return I(i.message),M}else if(rr(k)){let le={};for(const i in k){if(!xn(le)&&!r)break;const q=KC(await k[i](b,t),B,i);q&&(le={...q,...re(i,q.message)},I(q.message),r&&(M[_]=le))}if(!xn(le)&&(M[_]={ref:B,...le},!r))return M}}return I(!0),M};function Dme(e,t){const r=t.slice(0,-1).length;let n=0;for(;n{for(const a of e)a.next&&a.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(a=>a!==o)}}),unsubscribe:()=>{e=[]}}}var km=e=>$r(e)||!aA(e);function pa(e,t){if(km(e)||km(t))return e===t;if(hs(e)&&hs(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r){const a=e[o];if(!n.includes(o))return!1;if(o!=="ref"){const l=t[o];if(hs(a)&&hs(l)||rr(a)&&rr(l)||Array.isArray(a)&&Array.isArray(l)?!pa(a,l):a!==l)return!1}}return!0}var fA=e=>e.type==="select-multiple",Fme=e=>H7(e)||hc(e),A3=e=>Em(e)&&e.isConnected,dA=e=>{for(const t in e)if(_i(e[t]))return!0;return!1};function Rm(e,t={}){const r=Array.isArray(e);if(rr(e)||r)for(const n in e)Array.isArray(e[n])||rr(e[n])&&!dA(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Rm(e[n],t[n])):$r(e[n])||(t[n]=!0);return t}function hA(e,t,r){const n=Array.isArray(e);if(rr(e)||n)for(const o in e)Array.isArray(e[o])||rr(e[o])&&!dA(e[o])?qt(t)||km(r[o])?r[o]=Array.isArray(e[o])?Rm(e[o],[]):{...Rm(e[o])}:hA(e[o],$r(t)?{}:t[o],r[o]):r[o]=!pa(e[o],t[o]);return r}var S3=(e,t)=>hA(e,t,Rm(t)),pA=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>qt(e)?e:t?e===""?NaN:e&&+e:r&&go(e)?new Date(e):n?n(e):e;function O3(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return U7(t)?t.files:H7(t)?cA(e.refs).value:fA(t)?[...t.selectedOptions].map(({value:r})=>r):hc(t)?uA(e.refs).value:pA(qt(t.value)?e.ref.value:t.value,e)}var Mme=(e,t,r,n)=>{const o={};for(const a of e){const l=Ae(t,a);l&>(o,a,l._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},Fl=e=>qt(e)?e:_m(e)?e.source:rr(e)?_m(e.value)?e.value.source:e.value:e,Tme=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function JC(e,t,r){const n=Ae(e,r);if(n||V7(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const a=o.join("."),l=Ae(t,a),c=Ae(e,a);if(l&&!Array.isArray(l)&&r!==a)return{name:r};if(c&&c.type)return{name:a,error:c};o.pop()}return{name:r}}var jme=(e,t,r,n,o)=>o.isOnAll?!1:!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:(r?n.isOnChange:o.isOnChange)?e:!0,Nme=(e,t)=>!pc(Ae(e,t)).length&&fr(e,t);const zme={mode:Un.onSubmit,reValidateMode:Un.onChange,shouldFocusError:!0};function Wme(e={},t){let r={...zme,...e},n={submitCount:0,isDirty:!1,isLoading:_i(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},o={},a=rr(r.defaultValues)||rr(r.values)?aa(r.defaultValues||r.values)||{}:{},l=r.shouldUnregister?{}:aa(a),c={action:!1,mount:!1,watch:!1},d={mount:new Set,unMount:new Set,array:new Set,watch:new Set},h,v=0;const y={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},w={values:R3(),array:R3(),state:R3()},k=e.resetOptions&&e.resetOptions.keepDirtyValues,_=qC(r.mode),R=qC(r.reValidateMode),$=r.criteriaMode===Un.all,E=P=>W=>{clearTimeout(v),v=setTimeout(P,W)},b=async P=>{if(y.isValid||P){const W=r.resolver?xn((await oe()).errors):await me(o,!0);W!==n.isValid&&w.state.next({isValid:W})}},B=P=>y.isValidating&&w.state.next({isValidating:P}),I=(P,W=[],G,S,pe=!0,se=!0)=>{if(S&&G){if(c.action=!0,se&&Array.isArray(Ae(o,P))){const Be=G(Ae(o,P),S.argA,S.argB);pe&>(o,P,Be)}if(se&&Array.isArray(Ae(n.errors,P))){const Be=G(Ae(n.errors,P),S.argA,S.argB);pe&>(n.errors,P,Be),Nme(n.errors,P)}if(y.touchedFields&&se&&Array.isArray(Ae(n.touchedFields,P))){const Be=G(Ae(n.touchedFields,P),S.argA,S.argB);pe&>(n.touchedFields,P,Be)}y.dirtyFields&&(n.dirtyFields=S3(a,l)),w.state.next({name:P,isDirty:i(P,W),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else gt(l,P,W)},M=(P,W)=>{gt(n.errors,P,W),w.state.next({errors:n.errors})},z=(P,W,G,S)=>{const pe=Ae(o,P);if(pe){const se=Ae(l,P,qt(G)?Ae(a,P):G);qt(se)||S&&S.defaultChecked||W?gt(l,P,W?se:O3(pe._f)):J(P,se),c.mount&&b()}},N=(P,W,G,S,pe)=>{let se=!1,Be=!1;const Ge={name:P};if(!G||S){y.isDirty&&(Be=n.isDirty,n.isDirty=Ge.isDirty=i(),se=Be!==Ge.isDirty);const ne=pa(Ae(a,P),W);Be=Ae(n.dirtyFields,P),ne?fr(n.dirtyFields,P):gt(n.dirtyFields,P,!0),Ge.dirtyFields=n.dirtyFields,se=se||y.dirtyFields&&Be!==!ne}if(G){const ne=Ae(n.touchedFields,P);ne||(gt(n.touchedFields,P,G),Ge.touchedFields=n.touchedFields,se=se||y.touchedFields&&ne!==G)}return se&&pe&&w.state.next(Ge),se?Ge:{}},j=(P,W,G,S)=>{const pe=Ae(n.errors,P),se=y.isValid&&Cs(W)&&n.isValid!==W;if(e.delayError&&G?(h=E(()=>M(P,G)),h(e.delayError)):(clearTimeout(v),h=null,G?gt(n.errors,P,G):fr(n.errors,P)),(G?!pa(pe,G):pe)||!xn(S)||se){const Be={...S,...se&&Cs(W)?{isValid:W}:{},errors:n.errors,name:P};n={...n,...Be},w.state.next(Be)}B(!1)},oe=async P=>r.resolver(l,r.context,Mme(P||d.mount,o,r.criteriaMode,r.shouldUseNativeValidation)),re=async P=>{const{errors:W}=await oe();if(P)for(const G of P){const S=Ae(W,G);S?gt(n.errors,G,S):fr(n.errors,G)}else n.errors=W;return W},me=async(P,W,G={valid:!0})=>{for(const S in P){const pe=P[S];if(pe){const{_f:se,...Be}=pe;if(se){const Ge=d.array.has(se.name),ne=await XC(pe,l,$,r.shouldUseNativeValidation&&!W,Ge);if(ne[se.name]&&(G.valid=!1,W))break;!W&&(Ae(ne,se.name)?Ge?Lme(n.errors,ne,se.name):gt(n.errors,se.name,ne[se.name]):fr(n.errors,se.name))}Be&&await me(Be,W,G)}}return G.valid},le=()=>{for(const P of d.unMount){const W=Ae(o,P);W&&(W._f.refs?W._f.refs.every(G=>!A3(G)):!A3(W._f.ref))&&K(P)}d.unMount=new Set},i=(P,W)=>(P&&W&>(l,P,W),!pa(ke(),a)),q=(P,W,G)=>Ime(P,d,{...c.mount?l:qt(W)?a:go(P)?{[P]:W}:W},G,W),X=P=>pc(Ae(c.mount?l:a,P,e.shouldUnregister?Ae(a,P,[]):[])),J=(P,W,G={})=>{const S=Ae(o,P);let pe=W;if(S){const se=S._f;se&&(!se.disabled&>(l,P,pA(W,se)),pe=Em(se.ref)&&$r(W)?"":W,fA(se.ref)?[...se.ref.options].forEach(Be=>Be.selected=pe.includes(Be.value)):se.refs?hc(se.ref)?se.refs.length>1?se.refs.forEach(Be=>(!Be.defaultChecked||!Be.disabled)&&(Be.checked=Array.isArray(pe)?!!pe.find(Ge=>Ge===Be.value):pe===Be.value)):se.refs[0]&&(se.refs[0].checked=!!pe):se.refs.forEach(Be=>Be.checked=Be.value===pe):U7(se.ref)?se.ref.value="":(se.ref.value=pe,se.ref.type||w.values.next({name:P,values:{...l}})))}(G.shouldDirty||G.shouldTouch)&&N(P,pe,G.shouldTouch,G.shouldDirty,!0),G.shouldValidate&&_e(P)},fe=(P,W,G)=>{for(const S in W){const pe=W[S],se=`${P}.${S}`,Be=Ae(o,se);(d.array.has(P)||!km(pe)||Be&&!Be._f)&&!hs(pe)?fe(se,pe,G):J(se,pe,G)}},V=(P,W,G={})=>{const S=Ae(o,P),pe=d.array.has(P),se=aa(W);gt(l,P,se),pe?(w.array.next({name:P,values:{...l}}),(y.isDirty||y.dirtyFields)&&G.shouldDirty&&w.state.next({name:P,dirtyFields:S3(a,l),isDirty:i(P,se)})):S&&!S._f&&!$r(se)?fe(P,se,G):J(P,se,G),ZC(P,d)&&w.state.next({...n}),w.values.next({name:P,values:{...l}}),!c.mount&&t()},ae=async P=>{const W=P.target;let G=W.name,S=!0;const pe=Ae(o,G),se=()=>W.type?O3(pe._f):kme(P);if(pe){let Be,Ge;const ne=se(),Oe=P.type===HC.BLUR||P.type===HC.FOCUS_OUT,xt=!Tme(pe._f)&&!r.resolver&&!Ae(n.errors,G)&&!pe._f.deps||jme(Oe,Ae(n.touchedFields,G),n.isSubmitted,R,_),ut=ZC(G,d,Oe);gt(l,G,ne),Oe?(pe._f.onBlur&&pe._f.onBlur(P),h&&h(0)):pe._f.onChange&&pe._f.onChange(P);const ct=N(G,ne,Oe,!1),eo=!xn(ct)||ut;if(!Oe&&w.values.next({name:G,type:P.type,values:{...l}}),xt)return y.isValid&&b(),eo&&w.state.next({name:G,...ut?{}:ct});if(!Oe&&ut&&w.state.next({...n}),B(!0),r.resolver){const{errors:vr}=await oe([G]),cn=JC(n.errors,o,G),In=JC(vr,o,cn.name||G);Be=In.error,G=In.name,Ge=xn(vr)}else Be=(await XC(pe,l,$,r.shouldUseNativeValidation))[G],S=isNaN(ne)||ne===Ae(l,G,ne),S&&(Be?Ge=!1:y.isValid&&(Ge=await me(o,!0)));S&&(pe._f.deps&&_e(pe._f.deps),j(G,Ge,Be,ct))}},_e=async(P,W={})=>{let G,S;const pe=k3(P);if(B(!0),r.resolver){const se=await re(qt(P)?P:pe);G=xn(se),S=P?!pe.some(Be=>Ae(se,Be)):G}else P?(S=(await Promise.all(pe.map(async se=>{const Be=Ae(o,se);return await me(Be&&Be._f?{[se]:Be}:Be)}))).every(Boolean),!(!S&&!n.isValid)&&b()):S=G=await me(o);return w.state.next({...!go(P)||y.isValid&&G!==n.isValid?{}:{name:P},...r.resolver||!P?{isValid:G}:{},errors:n.errors,isValidating:!1}),W.shouldFocus&&!S&&yw(o,se=>se&&Ae(n.errors,se),P?pe:d.mount),S},ke=P=>{const W={...a,...c.mount?l:{}};return qt(P)?W:go(P)?Ae(W,P):P.map(G=>Ae(W,G))},Fe=(P,W)=>({invalid:!!Ae((W||n).errors,P),isDirty:!!Ae((W||n).dirtyFields,P),isTouched:!!Ae((W||n).touchedFields,P),error:Ae((W||n).errors,P)}),Ye=P=>{P&&k3(P).forEach(W=>fr(n.errors,W)),w.state.next({errors:P?n.errors:{}})},tt=(P,W,G)=>{const S=(Ae(o,P,{_f:{}})._f||{}).ref;gt(n.errors,P,{...W,ref:S}),w.state.next({name:P,errors:n.errors,isValid:!1}),G&&G.shouldFocus&&S&&S.focus&&S.focus()},ue=(P,W)=>_i(P)?w.values.subscribe({next:G=>P(q(void 0,W),G)}):q(P,W,!0),K=(P,W={})=>{for(const G of P?k3(P):d.mount)d.mount.delete(G),d.array.delete(G),W.keepValue||(fr(o,G),fr(l,G)),!W.keepError&&fr(n.errors,G),!W.keepDirty&&fr(n.dirtyFields,G),!W.keepTouched&&fr(n.touchedFields,G),!r.shouldUnregister&&!W.keepDefaultValue&&fr(a,G);w.values.next({values:{...l}}),w.state.next({...n,...W.keepDirty?{isDirty:i()}:{}}),!W.keepIsValid&&b()},ee=(P,W={})=>{let G=Ae(o,P);const S=Cs(W.disabled);return gt(o,P,{...G||{},_f:{...G&&G._f?G._f:{ref:{name:P}},name:P,mount:!0,...W}}),d.mount.add(P),G?S&>(l,P,W.disabled?void 0:Ae(l,P,O3(G._f))):z(P,!0,W.value),{...S?{disabled:W.disabled}:{},...r.shouldUseNativeValidation?{required:!!W.required,min:Fl(W.min),max:Fl(W.max),minLength:Fl(W.minLength),maxLength:Fl(W.maxLength),pattern:Fl(W.pattern)}:{},name:P,onChange:ae,onBlur:ae,ref:pe=>{if(pe){ee(P,W),G=Ae(o,P);const se=qt(pe.value)&&pe.querySelectorAll&&pe.querySelectorAll("input,select,textarea")[0]||pe,Be=Fme(se),Ge=G._f.refs||[];if(Be?Ge.find(ne=>ne===se):se===G._f.ref)return;gt(o,P,{_f:{...G._f,...Be?{refs:[...Ge.filter(A3),se,...Array.isArray(Ae(a,P))?[{}]:[]],ref:{type:se.type,name:P}}:{ref:se}}}),z(P,!1,void 0,se)}else G=Ae(o,P,{}),G._f&&(G._f.mount=!1),(r.shouldUnregister||W.shouldUnregister)&&!(Ame(d.array,P)&&c.action)&&d.unMount.add(P)}}},de=()=>r.shouldFocusError&&yw(o,P=>P&&Ae(n.errors,P),d.mount),ve=(P,W)=>async G=>{G&&(G.preventDefault&&G.preventDefault(),G.persist&&G.persist());let S=aa(l);if(w.state.next({isSubmitting:!0}),r.resolver){const{errors:pe,values:se}=await oe();n.errors=pe,S=se}else await me(o);fr(n.errors,"root"),xn(n.errors)?(w.state.next({errors:{}}),await P(S,G)):(W&&await W({...n.errors},G),de(),setTimeout(de)),w.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:xn(n.errors),submitCount:n.submitCount+1,errors:n.errors})},Qe=(P,W={})=>{Ae(o,P)&&(qt(W.defaultValue)?V(P,Ae(a,P)):(V(P,W.defaultValue),gt(a,P,W.defaultValue)),W.keepTouched||fr(n.touchedFields,P),W.keepDirty||(fr(n.dirtyFields,P),n.isDirty=W.defaultValue?i(P,Ae(a,P)):i()),W.keepError||(fr(n.errors,P),y.isValid&&b()),w.state.next({...n}))},ht=(P,W={})=>{const G=P||a,S=aa(G),pe=P&&!xn(P)?S:a;if(W.keepDefaultValues||(a=G),!W.keepValues){if(W.keepDirtyValues||k)for(const se of d.mount)Ae(n.dirtyFields,se)?gt(pe,se,Ae(l,se)):V(se,Ae(pe,se));else{if(W7&&qt(P))for(const se of d.mount){const Be=Ae(o,se);if(Be&&Be._f){const Ge=Array.isArray(Be._f.refs)?Be._f.refs[0]:Be._f.ref;if(Em(Ge)){const ne=Ge.closest("form");if(ne){ne.reset();break}}}}o={}}l=e.shouldUnregister?W.keepDefaultValues?aa(a):{}:S,w.array.next({values:{...pe}}),w.values.next({values:{...pe}})}d={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!c.mount&&t(),c.mount=!y.isValid||!!W.keepIsValid,c.watch=!!e.shouldUnregister,w.state.next({submitCount:W.keepSubmitCount?n.submitCount:0,isDirty:W.keepDirty?n.isDirty:!!(W.keepDefaultValues&&!pa(P,a)),isSubmitted:W.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:W.keepDirtyValues?n.dirtyFields:W.keepDefaultValues&&P?S3(a,P):{},touchedFields:W.keepTouched?n.touchedFields:{},errors:W.keepErrors?n.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},lt=(P,W)=>ht(_i(P)?P(l):P,W);return{control:{register:ee,unregister:K,getFieldState:Fe,_executeSchema:oe,_getWatch:q,_getDirty:i,_updateValid:b,_removeUnmounted:le,_updateFieldArray:I,_getFieldArray:X,_reset:ht,_resetDefaultValues:()=>_i(r.defaultValues)&&r.defaultValues().then(P=>{lt(P,r.resetOptions),w.state.next({isLoading:!1})}),_updateFormState:P=>{n={...n,...P}},_subjects:w,_proxyFormState:y,get _fields(){return o},get _formValues(){return l},get _state(){return c},set _state(P){c=P},get _defaultValues(){return a},get _names(){return d},set _names(P){d=P},get _formState(){return n},set _formState(P){n=P},get _options(){return r},set _options(P){r={...r,...P}}},trigger:_e,register:ee,handleSubmit:ve,watch:ue,setValue:V,getValues:ke,reset:lt,resetField:Qe,clearErrors:Ye,unregister:K,setError:tt,setFocus:(P,W={})=>{const G=Ae(o,P),S=G&&G._f;if(S){const pe=S.refs?S.refs[0]:S.ref;pe.focus&&(pe.focus(),W.shouldSelect&&pe.select())}},getFieldState:Fe}}function mc(e={}){const t=we.useRef(),[r,n]=we.useState({isDirty:!1,isValidating:!1,isLoading:_i(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:_i(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Wme(e,()=>n(a=>({...a}))),formState:r});const o=t.current.control;return o._options=e,$me({subject:o._subjects.state,next:a=>{Bme(a,o._proxyFormState,o._updateFormState,!0)&&n({...o._formState})}}),we.useEffect(()=>{e.values&&!pa(e.values,o._defaultValues)?o._reset(e.values,o._options.resetOptions):o._resetDefaultValues()},[e.values,o]),we.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=Ome(r,o),t.current}var eE=function(e,t,r){if(e&&"reportValidity"in e){var n=Ae(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},mA=function(e,t){var r=function(o){var a=t.fields[o];a&&a.ref&&"reportValidity"in a.ref?eE(a.ref,o,e):a.refs&&a.refs.forEach(function(l){return eE(l,o,e)})};for(var n in t.fields)r(n)},Vme=function(e,t){t.shouldUseNativeValidation&&mA(e,t);var r={};for(var n in e){var o=Ae(t.fields,n);gt(r,n,Object.assign(e[n]||{},{ref:o&&o.ref}))}return r},Ume=function(e,t){for(var r={};e.length;){var n=e[0],o=n.code,a=n.message,l=n.path.join(".");if(!r[l])if("unionErrors"in n){var c=n.unionErrors[0].errors[0];r[l]={message:c.message,type:c.code}}else r[l]={message:a,type:o};if("unionErrors"in n&&n.unionErrors.forEach(function(v){return v.errors.forEach(function(y){return e.push(y)})}),t){var d=r[l].types,h=d&&d[n.code];r[l]=lA(l,t,r,o,h?[].concat(h,n.message):n.message)}e.shift()}return r},vc=function(e,t,r){return r===void 0&&(r={}),function(n,o,a){try{return Promise.resolve(function(l,c){try{var d=Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](n,t)).then(function(h){return a.shouldUseNativeValidation&&mA({},a),{errors:{},values:r.raw?n:h}})}catch(h){return c(h)}return d&&d.then?d.then(void 0,c):d}(0,function(l){if(function(c){return c.errors!=null}(l))return{values:{},errors:Vme(Ume(l.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw l}))}catch(l){return Promise.reject(l)}}};const Hme=Zt.object({email:Zt.string().min(1,{message:"Email is required"}).email({message:"The email received it is not a valid email"})}),qme=()=>{var a;const{sendEmailToRecoveryPassword:e}=ko(),{formState:{errors:t},register:r,handleSubmit:n}=mc({resolver:vc(Hme)}),{mutate:o}=Xn({mutationFn:e,onSuccess:()=>{We.success("Email sent to recovery your password, please check your inbox")},onError:l=>{var c;Ui.isAxiosError(l)?((c=l.response)==null?void 0:c.status)!==200&&We.error("Something went wrong"):We.error("Something went wrong")}});return C(_t,{children:Q("div",{className:"flex h-full h-full flex-row items-start justify-center gap-20 px-2 md:items-center",children:[Q("div",{children:[C(he,{variant:"large",font:"bold",children:"Reset your password"}),Q(he,{variant:"small",font:"regular",className:"mt-4",children:["Enter your email and we'll send you instructions"," ",C("br",{className:"hidden md:block"})," on how to reset your password"]}),Q("form",{className:"mt-10 flex flex-col ",onSubmit:l=>{n(c=>{o(c.email)})(l)},children:[C(Vn,{id:"email",label:"Email",type:"email",containerClassName:"max-w-[317px]",className:"h-12 shadow-md",...r("email"),error:(a=t.email)==null?void 0:a.message}),Q("div",{className:"flex flex-row justify-center gap-2 md:justify-start",children:[C(yp,{to:Se.login,children:C(Vt,{type:"button",className:"mt-10",variant:"secondary",left:C(Et.ArrowLeftIcon,{}),children:"Back"})}),C(Vt,{type:"submit",className:"mt-10",children:"Continue"})]})]})]}),C("div",{className:"hidden md:block",children:C("img",{className:"w-[500px]",src:"https://uploads-ssl.webflow.com/641990da28209a736d8d7c6a/641990da28209a9b288d7e7d_WhatsApp%20Image%202022-11-08%20at%207.46.28%20PM%20(1).jpeg",alt:"Images showing app of Eo Care"})})]})})},Zme=()=>C(_t,{children:C("br",{})}),Qme=async e=>await en.post(`${Nn}/v2/profile/login`,{email:e.email,password:e.password}),Gme=async e=>await en.post(`${Nn}/v2/profile`,e),Yme=Zt.object({email:Zt.string().min(1,{message:"Email is required"}).email({message:"The email received it is not a valid email"}),password:Zt.string().min(1,{message:"Password is required"})}),Kme=()=>{var R,$;const e=Di(E=>E.setProfile),t=Di(E=>E.setSession),[r,n]=m.useState(!1),[o,a]=m.useState(""),l=Ut(),[c]=Kn();m.useEffect(()=>{c.has("email")&&c.has("account_confirmed")&&n(E=>(E||We.success("Your account has been activated."),!0))},[r,c]);const{formState:{errors:d},register:h,handleSubmit:v,getValues:y}=mc({resolver:vc(Yme)}),{mutate:w}=Xn({mutationFn:Qme,onSuccess:({data:E})=>{e(E.profile),t(E.session)},onError:E=>{var b;Ui.isAxiosError(E)?((b=E.response)==null?void 0:b.status)===403?l(Se.emailVerification,{state:{email:y("email")}}):a("Your email or password is incorrect"):a("Something went wrong")}}),[k,_]=m.useState(!1);return C(_t,{children:Q("div",{className:"flex h-full w-full flex-row items-center justify-center gap-20 px-2",children:[Q("div",{children:[C(he,{variant:"large",font:"bold",children:"Welcome back."}),Q("form",{className:"mt-10",onSubmit:E=>{v(b=>{w(b)})(E)},children:[C(Vn,{id:"email",label:"Email",type:"email",containerClassName:"max-w-[327px]",className:"h-12 shadow-md",...h("email"),error:(R=d.email)==null?void 0:R.message}),C(Vn,{id:"password",label:"Password",right:k?C(Et.EyeIcon,{className:"h-5 w-5 cursor-pointer text-primary-white-600",onClick:()=>_(E=>!E)}):C(Et.EyeSlashIcon,{className:"h-5 w-5 cursor-pointer text-primary-white-600",onClick:()=>_(E=>!E)}),containerClassName:"max-w-[327px]",className:"h-12 shadow-md",type:k?"text":"password",...h("password"),error:($=d.password)==null?void 0:$.message}),C(yp,{to:Se.forgotPassword,children:C(he,{variant:"small",className:"text-gray-300 hover:underline",children:"Forgot password?"})}),C(Vt,{type:"submit",className:"mt-10",children:"Sign in"}),o&&C(he,{variant:"small",id:"login-message",className:"text-red-600",children:o}),Q(he,{variant:"small",className:"text-gray-30 mt-3",children:["First time here?"," ",C(yp,{to:Se.register,children:C("strong",{children:"Create account"})})]})]})]}),C("div",{className:"hidden md:block",children:C("img",{className:"w-[500px]",src:"https://uploads-ssl.webflow.com/641990da28209a736d8d7c6a/641990da28209a9b288d7e7d_WhatsApp%20Image%202022-11-08%20at%207.46.28%20PM%20(1).jpeg",alt:"Images showing app of Eo Care"})})]})})};var ru=(e=>(e.Sleep="Sleep",e.Pain="Pain",e.Anxiety="Anxiety",e.Other="Other",e))(ru||{}),ww=(e=>(e.Morning="Morning",e.Afternoon="Afternoon",e.Evening="Evening",e.BedTimeOrNight="Bedtime or During the Night",e))(ww||{}),fo=(e=>(e.WorkDayMornings="Workday Mornings",e.NonWorkDayMornings="Non-Workday Mornings",e.WorkDayAfternoons="Workday Afternoons",e.NonWorkDayAfternoons="Non-Workday Afternoons",e.WorkDayEvenings="Workday Evenings",e.NonWorkDayEvenings="Non-Workday Evenings",e.WorkDayBedtimes="Workday Bedtimes",e.NonWorkDayBedtimes="Non-Workday Bedtimes",e))(fo||{}),nu=(e=>(e.inhalation="Avoid inhalation",e.edibles="Avoid edibles",e.sublinguals="Avoid sublinguals",e.topicals="Avoid topicals",e))(nu||{}),Yu=(e=>(e.open="I’m open to using products with THC.",e.notPrefer="I’d prefer to use non-THC (CBD/CBN/CBG) products only.",e.notSure="I’m not sure.",e))(Yu||{}),hr=(e=>(e.Pain="I want to manage pain",e.Anxiety="I want to reduce anxiety",e.Sleep="I want to sleep better",e))(hr||{});const Xme=(e,{C3:t,onlyCbd:r,C9:n,C8:o,C10:a,reasonToUse:l,C14:c,C15:d,C16:h,C17:v,M5:y})=>{const{currentlyUsingCannabisProducts:w}=e,k=()=>l.includes(hr.Sleep)?"":re==="topical lotion or patch"&&l.includes(hr.Anxiety)?"1:1 CBD:THC ratio":re==="topical lotion or patch"?"THC-dominant":r&&!w?"CBD or CBDA":r&&w?"CBD, CBDA, or CBC":l.includes(hr.Anxiety)||o===!1&&!w?"CBD-dominant":o===!1&&w?"4:1 CBD:THC ratio":o===!0&&!w?"2:1 CBD:THC ratio":o===!0&&w?"THC-dominant":"",_=()=>y==="fast-acting form"&&h===!1&&oe==="sublingual"&&v===!1?"patch":y==="fast-acting form"&&h===!1?"sublingual":y==="fast-acting form"&&v===!1?"topical lotion or patch":y==="fast-acting form"&&c===!1?"inhalation method":d===!1?"edible":v===!1?"topical lotion or patch":h===!1?"sublingual":c===!1?"inhalation method":"capsule",R=()=>re==="topical lotion or patch"?"50mg":me===""?"":me==="THC-dominant"?"2.5mg":me==="CBD-dominant"&&t===!0?"10mg":me==="CBD-dominant"||me==="4:1 CBD:THC ratio"?"5mg":me==="2:1 CBD:THC ratio"?"2.5mg":"10mg",$=()=>l.includes(hr.Sleep)?"":re==="inhalation method"?`Use a ${me} inhalable product`:`Use ${le} of a ${me} ${re} product`,E=()=>l.includes(hr.Anxiety)&&r?"CBDA":l.includes(hr.Pain)&&r?"CBG plus CBD":r?"CBD":n===!0&&w?"THC-dominant":n===!0&&!w?"1:1 CBD:THC ratio":"CBD-dominant",b=()=>n&&!c?"inhalation method":n&&!h?"sublingual":c?h?d?v?"capsule":"topical lotion or patch":"edible":"sublingual":"inhalation method",B=()=>oe==="topical lotion or patch"?"50mg":i==="THC-dominant"?"2.5mg":i==="CBD-dominant"?"5mg":i==="1:1 CBD:THC ratio"?"2.5mg":"10mg",I=()=>oe==="inhalation method"?`Use a ${i} inhalable product`:`Use ${q} of a ${i} ${oe} product`,M=()=>r?"CBN or D8-THC":a===!0?"THC-dominant":w?"1:1 CBD:THC ratio":"CBD-dominant",z=()=>d===!1?"edible":h===!1?"sublingual":v===!1?"topical lotion or patch":c===!1?"inhalation method":"capsule",N=()=>X==="topical lotion or patch"?"50mg":J==="THC-dominant"?"2.5mg":J==="CBD-dominant"?"5mg":J==="1:1 CBD:THC ratio"?"2.5mg":"10mg",j=()=>X==="inhalation method"?`Use a ${J} inhalable product`:`Use ${fe} of a ${J} ${X} product`,oe=b(),re=_(),me=k(),le=R(),i=E(),q=B(),X=z(),J=M(),fe=N();return{dayTime:{time:"Morning",type:k(),form:_(),dose:R(),result:$()},evening:{time:"Evening",type:E(),form:b(),dose:B(),result:I()},bedTime:{time:"BedTime",type:M(),form:z(),dose:N(),result:j()}}},Jme=(e,{C3:t,onlyCbd:r,C5:n,C7:o,C11:a,reasonToUse:l,C14:c,C15:d,C16:h,C17:v,M5:y})=>{const{openToUseThcProducts:w,currentlyUsingCannabisProducts:k}=e,_=()=>me==="topical lotion or patch"&&l.includes(hr.Anxiety)?"1:1 CBD:THC ratio":me==="topical lotion or patch"?"THC-dominant":l.includes(hr.Sleep)?"":r&&a===!1?"CBD or CBDA":r&&a===!0?"CBD, CBDA, or CBC":l.includes(hr.Anxiety)||n===!1&&a===!1?"CBD-dominant":n===!1&&a===!0?"4:1 CBD:THC ratio":n===!0&&a===!1?"2:1 CBD:THC ratio":n===!0&&a===!0?"THC-dominant":"CBD-dominant",R=()=>y==="fast-acting form"&&h===!1&&re==="sublingual"&&v===!1?"patch":y==="fast-acting form"&&h===!1?"sublingual":y==="fast-acting form"&&v===!1?"topical lotion or patch":y==="fast-acting form"&&c===!1?"inhalation method":d===!1?"edible":v===!1?"topical lotion or patch":h===!1?"sublingual":c===!1?"inhalation method":"capsule",$=()=>me==="topical lotion or patch"?"50mg":le===""?"":le==="THC-dominant"?"2.5mg":le==="CBD-dominant"&&t===!0?"10mg":le==="CBD-dominant"||le==="4:1 CBD:THC ratio"?"5mg":le==="2:1 CBD:THC ratio"?"2.5mg":"10mg",E=()=>l.includes(hr.Sleep)?"":me==="inhalation method"?"Use a "+le+" inhalable product":"Use "+i+" of a "+le+" "+me+" product",b=()=>l.includes(hr.Anxiety)&&r?"CBDA":l.includes(hr.Pain)&&r?"CBG plus CBD":r?"CBD":w.includes(fo.WorkDayEvenings)&&k?"THC-dominant":w.includes(fo.WorkDayEvenings)&&!k?"1:1 CBD:THC ratio":"CBD-dominant",B=()=>n===!0&&c===!1?"inhalation method":n===!0&&h===!1?"sublingual":c===!1?"inhalation method":h===!1?"sublingual":d===!1?"edible":v===!1?"topical lotion or patch":"capsule",I=()=>re==="topical lotion or patch"?"50mg":q==="THC-dominant"?"2.5mg":q==="CBD-dominant"?"5mg":q==="1:1 CBD:THC ratio"?"2.5mg":"10mg",M=()=>re==="inhalation method"?`Use a ${q} inhalable product`:`Use ${X} of a ${q} ${re} product`,z=()=>r?"CBN or D8-THC":o===!0?"THC-dominant":a===!0?"1:1 CBD:THC ratio":"CBD-dominant",N=()=>d===!1?"edible":h===!1?"sublingual":v===!1?"topical lotion or patch":c===!1?"inhalation method":"capsule",j=()=>fe==="topical lotion or patch"?"50mg":J==="THC-dominant"?"2.5mg":J==="CBD-dominant"?"5mg":J==="1:1 CBD:THC ratio"?"2.5mg":"10mg",oe=()=>fe==="inhalation method"?`Use a ${J} inhalable product`:`Use ${V} of a ${J} ${fe} product`,re=B(),me=R(),le=_(),i=$(),q=b(),X=I(),J=z(),fe=N(),V=j();return{dayTime:{time:"Morning",type:_(),form:R(),dose:$(),result:E()},evening:{time:"Evening",type:b(),form:B(),dose:I(),result:M()},bedTime:{time:"BedTime",type:z(),form:N(),dose:j(),result:oe()}}},vA=e=>{const{symptomsWorseTimes:t,thcTypePreferences:r,openToUseThcProducts:n,currentlyUsingCannabisProducts:o,reasonToUse:a,avoidPresentation:l}=e,c=a.includes(hr.Sleep)?"":t.includes(ww.Morning)?"fast-acting form":"long-lasting form",d=r===Yu.notPrefer,h=t.includes(ww.Morning),v=n.includes(fo.WorkDayMornings),y=n.includes(fo.WorkDayBedtimes),w=n.includes(fo.NonWorkDayMornings),k=n.includes(fo.NonWorkDayEvenings),_=n.includes(fo.NonWorkDayBedtimes),R=o,$=l.includes(nu.inhalation),E=l.includes(nu.edibles),b=l.includes(nu.sublinguals),B=l.includes(nu.topicals),I=Jme(e,{C3:h,onlyCbd:d,C5:v,C7:y,C11:R,reasonToUse:a,C14:$,C15:E,C16:b,C17:B,M5:c}),M=Xme(e,{C10:_,reasonToUse:a,C14:$,C15:E,C16:b,C17:B,C3:h,C8:w,C9:k,M5:c,onlyCbd:d});return{workdayPlan:I,nonWorkdayPlan:M,whyRecommended:(()=>d&&a.includes(hr.Pain)?"CBD and CBDA are predominantly researched for their potential in addressing chronic pain and inflammation. CBG has demonstrated potential for its anti-inflammatory and analgesic effects. Preliminary investigations also imply that CBN and D8-THC may contribute to enhancing sleep quality and providing relief during sleep. We always recommend starting off at lower doses and adjusting from there to ensure consistently positive experiences.":d&&a.includes(hr.Anxiety)?"Extensive research has been conducted on the therapeutic impacts of both CBD and CBDA on anxiety, with positive results. Preliminary investigations also indicate that CBN and D8-THC may be beneficial in promoting sleep. We always recommend starting off at lower doses and adjusting from there to ensure consistently positive experiences.":d&&a.includes(hr.Sleep)?"CBD can be helpful in the evening for getting the mind and body relaxed and ready for sleep. Some early studies indicate that CBN as well as D8-THC can be effective for promoting sleep. We always recommend starting off at lower doses and adjusting from there to ensure consistently positive experiences.":n.includes(fo.WorkDayEvenings)&&v&&y&&w&&k&&_?"Given that you indicated you're open to feeling the potentially altering effects of THC, we recommended a plan that at times has stronger proportions of THC, which may help provide more effective symptom relief. We always recommend starting off at lower doses and adjusting from there to ensure consistently positive experiences.":!n.includes(fo.WorkDayEvenings)&&!v&&!y&&!w&&!k&&!_?"Given that you'd like to avoid the potentially altering effects of THC, we primarily recommend using products with higher concentrations of CBD. Depending on your experience level, some THC may not feel altering. We always recommend starting off at lower doses and adjusting from there to ensure consistently positive experiences.":"For times when you're looking to maintain a clear head, we recommended product types that are lower in THC in relation to CBD, and higher THC at times when you're more able to relax and unwind. The amount of THC in relation to CBD relates to your recent use of cannabis, as we always recommend starting off at lower doses and adjusting from there to ensure consistently positive experiences.")()}},tE=()=>Q("svg",{width:"20px",height:"20px",viewBox:"0 0 164 164",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.92656 147.34C14.8215 158.174 40.4865 163.667 81.1941 163.667C104.713 163.667 123.648 161.654 137.417 157.761C147.949 154.808 155.479 150.575 159.79 145.403C161.05 144.072 162.041 142.495 162.706 140.764C163.371 139.033 163.697 137.183 163.664 135.321C163.191 124.778 162.183 114.268 160.645 103.834C157.243 79.8335 151.787 60.0649 144.511 45.0174C132.488 20.0574 115.772 9.26088 103.876 4.59617C96.4487 1.54077 88.4923 0.100139 80.5029 0.364065C72.5868 0.592629 64.7822 2.35349 57.4935 5.55544C45.816 10.5211 29.864 21.3741 19.478 44.8293C10.0923 65.9898 5.39948 89.5015 3.10764 105.489C1.63849 115.377 0.715404 125.343 0.342871 135.34C0.266507 137.559 0.634231 139.77 1.42299 141.835C2.21174 143.9 3.40453 145.774 4.92656 147.34ZM59.6762 11.8754C66.2296 8.96617 73.2482 7.33985 80.3756 7.079V7.24828H80.9212C88.0885 6.98588 95.2303 8.26693 101.893 11.0101C108.8 13.7827 115.165 17.8226 120.683 22.9353C128.191 30.0319 134.315 38.5491 138.727 48.0269C155.388 82.4104 157.207 135.133 157.207 135.66V135.904C156.993 138.028 156.02 139.994 154.479 141.415C149.24 147.227 132.742 156.952 81.1941 156.952C59.7126 156.952 42.451 155.391 29.8822 152.344C20.0964 149.955 13.2936 146.72 9.65577 142.732C8.73849 141.824 8.01535 140.727 7.5329 139.512C7.05045 138.297 6.8194 136.991 6.85462 135.678V135.547C6.85462 135.058 8.03692 86.8118 25.3349 47.6131C32.9198 30.4778 44.47 18.4586 59.6762 11.8754ZM44.7634 44.1274C45.2627 44.4383 45.8336 44.6048 46.4165 44.6097C46.952 44.6028 47.478 44.4624 47.9498 44.2005C48.4216 43.9385 48.8253 43.5627 49.1267 43.1049C55.2816 34.6476 64.1146 28.6958 74.0824 26.2894C74.4968 26.1893 74.8881 26.0059 75.234 25.7494C75.5798 25.493 75.8735 25.1687 76.0981 24.7949C76.3227 24.4211 76.474 24.0052 76.5432 23.571C76.6124 23.1368 76.5983 22.6927 76.5015 22.2642C76.4048 21.8356 76.2274 21.431 75.9794 21.0733C75.7314 20.7156 75.4177 20.412 75.0563 20.1797C74.6948 19.9474 74.2927 19.791 73.8728 19.7194C73.4529 19.6478 73.0235 19.6625 72.609 19.7625C60.9982 22.4967 50.7337 29.4772 43.7063 39.4183C43.3904 39.9249 43.2118 40.5098 43.1892 41.1121C43.1666 41.7144 43.3007 42.312 43.5776 42.8423C43.8545 43.3727 44.264 43.8165 44.7634 44.1274Z",fill:"black"}),C("path",{d:"M4.92656 147.34L5.11125 147.172L5.10584 147.166L4.92656 147.34ZM137.417 157.761L137.35 157.52L137.349 157.52L137.417 157.761ZM159.79 145.403L159.608 145.231L159.603 145.237L159.598 145.243L159.79 145.403ZM162.706 140.764L162.939 140.854L162.706 140.764ZM163.664 135.321L163.914 135.317L163.914 135.31L163.664 135.321ZM160.645 103.834L160.397 103.869L160.397 103.871L160.645 103.834ZM144.511 45.0174L144.286 45.1259L144.286 45.1263L144.511 45.0174ZM103.876 4.59617L103.781 4.8274L103.785 4.82891L103.876 4.59617ZM80.5029 0.364065L80.5101 0.613963L80.5111 0.613928L80.5029 0.364065ZM57.4935 5.55544L57.5913 5.78552L57.594 5.78433L57.4935 5.55544ZM19.478 44.8293L19.7065 44.9307L19.7066 44.9306L19.478 44.8293ZM3.10764 105.489L3.35493 105.526L3.35511 105.525L3.10764 105.489ZM0.342871 135.34L0.0930433 135.331L0.0930188 135.331L0.342871 135.34ZM1.42299 141.835L1.18944 141.924H1.18944L1.42299 141.835ZM80.3756 7.079H80.6256V6.81968L80.3664 6.82916L80.3756 7.079ZM59.6762 11.8754L59.7755 12.1048L59.7776 12.1039L59.6762 11.8754ZM80.3756 7.24828H80.1256V7.49828H80.3756V7.24828ZM80.9212 7.24828V7.49845L80.9304 7.49811L80.9212 7.24828ZM101.893 11.0101L101.798 11.2413L101.8 11.2422L101.893 11.0101ZM120.683 22.9353L120.855 22.7536L120.853 22.7519L120.683 22.9353ZM138.727 48.0269L138.5 48.1324L138.502 48.1359L138.727 48.0269ZM157.207 135.904L157.456 135.929L157.457 135.917V135.904H157.207ZM154.479 141.415L154.309 141.232L154.301 141.239L154.293 141.248L154.479 141.415ZM29.8822 152.344L29.8229 152.586L29.8233 152.586L29.8822 152.344ZM9.65577 142.732L9.84069 142.563L9.83167 142.554L9.65577 142.732ZM7.5329 139.512L7.30055 139.604L7.5329 139.512ZM6.85462 135.678L7.10462 135.685V135.678H6.85462ZM25.3349 47.6131L25.1063 47.5119L25.1062 47.5122L25.3349 47.6131ZM46.4165 44.6097L46.4144 44.8597L46.4197 44.8597L46.4165 44.6097ZM47.9498 44.2005L48.0711 44.419L47.9498 44.2005ZM49.1267 43.1049L48.9243 42.9577L48.9179 42.9675L49.1267 43.1049ZM74.0824 26.2894L74.0237 26.0464L74.0237 26.0464L74.0824 26.2894ZM75.234 25.7494L75.3829 25.9503V25.9503L75.234 25.7494ZM76.0981 24.7949L76.3124 24.9237L76.0981 24.7949ZM75.0563 20.1797L75.1915 19.9694V19.9694L75.0563 20.1797ZM73.8728 19.7194L73.9148 19.473L73.8728 19.7194ZM72.609 19.7625L72.6663 20.0059L72.6677 20.0056L72.609 19.7625ZM43.7063 39.4183L43.5022 39.274L43.498 39.2799L43.4942 39.286L43.7063 39.4183ZM43.1892 41.1121L42.9394 41.1027L43.1892 41.1121ZM43.5776 42.8423L43.7992 42.7266L43.5776 42.8423ZM81.1941 163.417C60.8493 163.417 44.2756 162.044 31.5579 159.322C18.8323 156.598 10.0053 152.53 5.11116 147.172L4.74196 147.509C9.74275 152.984 18.6958 157.08 31.4533 159.811C44.2188 162.543 60.8313 163.917 81.1941 163.917V163.417ZM137.349 157.52C123.611 161.405 104.702 163.417 81.1941 163.417V163.917C104.723 163.917 123.684 161.904 137.485 158.001L137.349 157.52ZM159.598 145.243C155.333 150.36 147.858 154.573 137.35 157.52L137.485 158.001C148.039 155.042 155.625 150.791 159.982 145.563L159.598 145.243ZM162.473 140.675C161.819 142.375 160.845 143.924 159.608 145.231L159.971 145.575C161.254 144.22 162.263 142.615 162.939 140.854L162.473 140.675ZM163.414 135.325C163.446 137.156 163.126 138.974 162.473 140.675L162.939 140.854C163.616 139.093 163.947 137.211 163.914 135.317L163.414 135.325ZM160.397 103.871C161.935 114.296 162.942 124.798 163.414 135.332L163.914 135.31C163.441 124.758 162.432 114.24 160.892 103.798L160.397 103.871ZM144.286 45.1263C151.547 60.1428 156.998 79.8842 160.397 103.869L160.892 103.799C157.489 79.7828 152.027 59.9869 144.736 44.9086L144.286 45.1263ZM103.785 4.82891C115.628 9.47311 132.293 20.2287 144.286 45.1259L144.736 44.9089C132.683 19.8862 115.915 9.04865 103.967 4.36342L103.785 4.82891ZM80.5111 0.613928C88.465 0.351177 96.3862 1.78538 103.781 4.82737L103.971 4.36496C96.5112 1.29616 88.5196 -0.150899 80.4946 0.114201L80.5111 0.613928ZM57.594 5.78433C64.8535 2.59525 72.6263 0.841591 80.5101 0.61396L80.4957 0.114169C72.5472 0.343667 64.711 2.11173 57.3929 5.32655L57.594 5.78433ZM19.7066 44.9306C30.0628 21.5426 45.9621 10.7306 57.5913 5.7855L57.3957 5.32538C45.6699 10.3116 29.6652 21.2056 19.2494 44.7281L19.7066 44.9306ZM3.35511 105.525C5.64556 89.5467 10.3343 66.0609 19.7065 44.9307L19.2494 44.728C9.85033 65.9188 5.1534 89.4563 2.86017 105.454L3.35511 105.525ZM0.592698 135.349C0.964888 125.362 1.88712 115.405 3.35492 105.526L2.86035 105.453C1.38985 115.35 0.465919 125.325 0.0930443 135.331L0.592698 135.349ZM1.65653 141.746C0.879739 139.712 0.517502 137.534 0.592723 135.348L0.0930188 135.331C0.0155122 137.583 0.388723 139.828 1.18944 141.924L1.65653 141.746ZM5.10584 147.166C3.60778 145.625 2.43332 143.779 1.65653 141.746L1.18944 141.924C1.99017 144.021 3.20128 145.924 4.74729 147.514L5.10584 147.166ZM80.3664 6.82916C73.2071 7.09119 66.1572 8.72482 59.5748 11.6469L59.7776 12.1039C66.3021 9.20753 73.2894 7.58851 80.3847 7.32883L80.3664 6.82916ZM80.6256 7.24828V7.079H80.1256V7.24828H80.6256ZM80.9212 6.99828H80.3756V7.49828H80.9212V6.99828ZM101.989 10.779C95.2926 8.02222 88.1153 6.73474 80.9121 6.99845L80.9304 7.49811C88.0618 7.23703 95.168 8.51165 101.798 11.2413L101.989 10.779ZM120.853 22.7519C115.313 17.6187 108.922 13.5622 101.987 10.7781L101.8 11.2422C108.678 14.0032 115.018 18.0265 120.513 23.1186L120.853 22.7519ZM138.953 47.9214C134.529 38.4153 128.386 29.8722 120.855 22.7536L120.511 23.1169C127.996 30.1917 134.102 38.6828 138.5 48.1324L138.953 47.9214ZM157.457 135.66C157.457 135.383 157.001 122.058 154.462 104.504C151.924 86.9516 147.299 65.1446 138.952 47.9179L138.502 48.1359C146.815 65.2927 151.431 87.0387 153.967 104.575C155.235 113.341 155.983 121.05 156.413 126.599C156.628 129.374 156.764 131.609 156.847 133.166C156.888 133.945 156.915 134.554 156.933 134.977C156.941 135.188 156.947 135.352 156.951 135.468C156.953 135.526 156.955 135.571 156.956 135.604C156.956 135.62 156.956 135.633 156.957 135.643C156.957 135.648 156.957 135.652 156.957 135.655C156.957 135.656 156.957 135.657 156.957 135.658C156.957 135.659 156.957 135.659 156.957 135.66H157.457ZM157.457 135.904V135.66H156.957V135.904H157.457ZM154.648 141.599C156.235 140.135 157.235 138.113 157.456 135.929L156.958 135.879C156.75 137.944 155.805 139.852 154.309 141.232L154.648 141.599ZM81.1941 157.202C132.752 157.202 149.349 147.48 154.664 141.583L154.293 141.248C149.131 146.975 132.733 156.702 81.1941 156.702V157.202ZM29.8233 152.586C42.4197 155.64 59.7037 157.202 81.1941 157.202V156.702C59.7214 156.702 42.4822 155.141 29.9411 152.101L29.8233 152.586ZM9.47108 142.9C13.1607 146.945 20.0245 150.195 29.8229 152.586L29.9415 152.101C20.1683 149.715 13.4266 146.494 9.84046 142.563L9.47108 142.9ZM7.30055 139.604C7.79556 140.851 8.53777 141.977 9.47986 142.91L9.83167 142.554C8.93921 141.671 8.23513 140.603 7.76525 139.42L7.30055 139.604ZM6.60471 135.672C6.56859 137.018 6.80555 138.358 7.30055 139.604L7.76525 139.42C7.29535 138.236 7.07021 136.964 7.10453 135.685L6.60471 135.672ZM6.60462 135.547V135.678H7.10462V135.547H6.60462ZM25.1062 47.5122C7.78667 86.7596 6.60462 135.048 6.60462 135.547H7.10462C7.10462 135.067 8.28717 86.8639 25.5636 47.7141L25.1062 47.5122ZM59.5769 11.646C44.3053 18.2575 32.7131 30.3272 25.1063 47.5119L25.5635 47.7143C33.1266 30.6284 44.6346 18.6598 59.7755 12.1048L59.5769 11.646ZM46.4186 44.3597C45.8822 44.3552 45.3562 44.202 44.8955 43.9152L44.6312 44.3397C45.1693 44.6746 45.7851 44.8545 46.4144 44.8597L46.4186 44.3597ZM47.8284 43.9819C47.3925 44.2239 46.9071 44.3534 46.4133 44.3597L46.4197 44.8597C46.9969 44.8522 47.5634 44.7009 48.0711 44.419L47.8284 43.9819ZM48.9179 42.9675C48.6383 43.3921 48.2644 43.7398 47.8284 43.9819L48.0711 44.419C48.5788 44.1372 49.0123 43.7333 49.3355 43.2424L48.9179 42.9675ZM74.0237 26.0464C63.997 28.467 55.1136 34.4536 48.9246 42.9578L49.3288 43.252C55.4496 34.8417 64.2323 28.9246 74.141 26.5324L74.0237 26.0464ZM75.0851 25.5486C74.7659 25.7853 74.4052 25.9543 74.0237 26.0464L74.141 26.5324C74.5884 26.4244 75.0103 26.2265 75.3829 25.9503L75.0851 25.5486ZM75.8838 24.6661C75.6758 25.0122 75.4043 25.3119 75.0851 25.5486L75.3829 25.9503C75.7554 25.6741 76.0711 25.3251 76.3124 24.9237L75.8838 24.6661ZM76.2963 23.5317C76.2321 23.9345 76.0918 24.32 75.8838 24.6661L76.3124 24.9237C76.5536 24.5222 76.7159 24.076 76.7901 23.6104L76.2963 23.5317ZM76.2577 22.3192C76.3474 22.7168 76.3605 23.1288 76.2963 23.5317L76.7901 23.6104C76.8643 23.1448 76.8491 22.6687 76.7454 22.2091L76.2577 22.3192ZM75.7739 21.2157C76.0034 21.5468 76.1679 21.9217 76.2577 22.3192L76.7454 22.2091C76.6416 21.7495 76.4513 21.3152 76.1848 20.9309L75.7739 21.2157ZM74.9211 20.39C75.2546 20.6043 75.5445 20.8848 75.7739 21.2157L76.1848 20.9309C75.9184 20.5465 75.5809 20.2197 75.1915 19.9694L74.9211 20.39ZM73.8308 19.9659C74.2172 20.0317 74.5877 20.1757 74.9211 20.39L75.1915 19.9694C74.802 19.7191 74.3682 19.5503 73.9148 19.473L73.8308 19.9659ZM72.6677 20.0056C73.0492 19.9135 73.4443 19.9 73.8308 19.9659L73.9148 19.473C73.4614 19.3957 72.9977 19.4115 72.5504 19.5195L72.6677 20.0056ZM43.9104 39.5626C50.9035 29.6702 61.1162 22.7257 72.6663 20.0059L72.5517 19.5192C60.8802 22.2676 50.564 29.2842 43.5022 39.274L43.9104 39.5626ZM43.439 41.1215C43.46 40.5623 43.6259 40.0198 43.9184 39.5506L43.4942 39.286C43.155 39.8299 42.9636 40.4573 42.9394 41.1027L43.439 41.1215ZM43.7992 42.7266C43.5426 42.2351 43.418 41.6807 43.439 41.1215L42.9394 41.1027C42.9151 41.7481 43.0588 42.3888 43.356 42.958L43.7992 42.7266ZM44.8955 43.9152C44.4347 43.6283 44.0558 43.2182 43.7992 42.7266L43.356 42.958C43.6532 43.5273 44.0933 44.0047 44.6312 44.3397L44.8955 43.9152Z",fill:"black"})]}),xw=e=>{switch(e){case"patch":return C(Et.CheckIcon,{className:"stroke-[5px]"});case"sublingual":return C("svg",{width:"15px",height:"30px",viewBox:"0 0 98 196",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:C("path",{d:"M81.6664 82.1936C76.2634 82.1936 71.8664 77.9385 71.8664 72.7097V69.5484H75.1331C76.9363 69.5484 78.3998 68.1353 78.3998 66.3871V53.7419C78.3998 51.9937 76.9363 50.5806 75.1331 50.5806H71.8664V34.7742C71.8664 33.026 70.403 31.6129 68.5998 31.6129H58.7998V9.48387C58.7998 4.2551 54.4028 0 48.9998 0C43.5967 0 39.1998 4.2551 39.1998 9.48387V31.6129H29.3998C27.5966 31.6129 26.1331 33.026 26.1331 34.7742V50.5806H22.8664C21.0632 50.5806 19.5998 51.9937 19.5998 53.7419V66.3871C19.5998 68.1353 21.0632 69.5484 22.8664 69.5484H26.1331V72.7097C26.1331 77.9385 21.7362 82.1936 16.3331 82.1936C7.32689 82.1936 -0.000244141 89.2843 -0.000244141 98V177.032C-0.000244141 187.493 8.79036 196 19.5998 196H78.3998C89.2092 196 97.9998 187.493 97.9998 177.032V98C97.9998 89.2843 90.6726 82.1936 81.6664 82.1936ZM45.7331 9.48387C45.7331 7.73884 47.1998 6.32258 48.9998 6.32258C50.7997 6.32258 52.2664 7.73884 52.2664 9.48387V31.6129H45.7331V9.48387ZM32.6664 37.9355H65.3331V50.5806H32.6664V37.9355ZM26.1331 56.9032H29.3998H68.5998H71.8664V63.2258H26.1331V56.9032ZM91.4664 177.032C91.4664 184.006 85.606 189.677 78.3998 189.677H19.5998C12.3935 189.677 6.53309 184.006 6.53309 177.032V98C6.53309 92.7712 10.93 88.5161 16.3331 88.5161C25.3393 88.5161 32.6664 81.4254 32.6664 72.7097V69.5484H65.3331V72.7097C65.3331 81.4254 72.6602 88.5161 81.6664 88.5161C87.0695 88.5161 91.4664 92.7712 91.4664 98V177.032Z",fill:"black"})});case"topical lotion or patch":return C("svg",{width:"130",height:"164",viewBox:"0 0 130 164",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:C("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M114.249 57.1081C127.383 72.9966 132.256 93.7575 127.595 114.095C122.935 133.585 110.012 149.473 92.4289 157.735C83.7432 161.76 74.6339 163.667 65.1008 163.667C55.5677 163.667 46.2465 161.548 37.7726 157.735C19.7657 149.473 6.84314 133.585 2.39437 114.095C-2.26624 93.9693 2.60621 72.9966 15.7407 57.1081L60.652 2.23999C62.7705 -0.302164 67.0074 -0.302164 68.914 2.23999L114.249 57.1081ZM64.8889 152.863C72.9391 152.863 80.5655 151.168 87.7683 147.99C102.598 141.211 113.402 127.865 117.215 111.553C121.24 94.6049 117.003 77.0217 105.987 63.6754L64.8889 13.8915L23.7908 63.6754C12.7748 77.0217 8.5379 94.6049 12.563 111.553C16.3762 127.865 27.1804 141.211 42.0096 147.99C49.2123 151.168 56.8388 152.863 64.8889 152.863ZM97.7159 99.9199C97.7159 96.9541 100.046 94.6238 103.012 94.6238C105.978 94.6238 108.308 97.1659 108.308 99.9199C108.308 121.105 91.1487 138.264 69.9641 138.264C66.9982 138.264 64.6679 135.934 64.6679 132.968C64.6679 130.002 66.9982 127.672 69.9641 127.672C85.217 127.672 97.7159 115.173 97.7159 99.9199Z",fill:"black"})});case"inhalation method":return C("svg",{width:"15",height:"30",viewBox:"0 0 98 196",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:C("path",{d:"M81.6664 82.1936C76.2634 82.1936 71.8664 77.9385 71.8664 72.7097V69.5484H75.1331C76.9363 69.5484 78.3998 68.1353 78.3998 66.3871V53.7419C78.3998 51.9937 76.9363 50.5806 75.1331 50.5806H71.8664V34.7742C71.8664 33.026 70.403 31.6129 68.5998 31.6129H58.7998V9.48387C58.7998 4.2551 54.4028 0 48.9998 0C43.5967 0 39.1998 4.2551 39.1998 9.48387V31.6129H29.3998C27.5966 31.6129 26.1331 33.026 26.1331 34.7742V50.5806H22.8664C21.0632 50.5806 19.5998 51.9937 19.5998 53.7419V66.3871C19.5998 68.1353 21.0632 69.5484 22.8664 69.5484H26.1331V72.7097C26.1331 77.9385 21.7362 82.1936 16.3331 82.1936C7.32689 82.1936 -0.000244141 89.2843 -0.000244141 98V177.032C-0.000244141 187.493 8.79036 196 19.5998 196H78.3998C89.2092 196 97.9998 187.493 97.9998 177.032V98C97.9998 89.2843 90.6726 82.1936 81.6664 82.1936ZM45.7331 9.48387C45.7331 7.73884 47.1998 6.32258 48.9998 6.32258C50.7997 6.32258 52.2664 7.73884 52.2664 9.48387V31.6129H45.7331V9.48387ZM32.6664 37.9355H65.3331V50.5806H32.6664V37.9355ZM26.1331 56.9032H29.3998H68.5998H71.8664V63.2258H26.1331V56.9032ZM91.4664 177.032C91.4664 184.006 85.606 189.677 78.3998 189.677H19.5998C12.3935 189.677 6.53309 184.006 6.53309 177.032V98C6.53309 92.7712 10.93 88.5161 16.3331 88.5161C25.3393 88.5161 32.6664 81.4254 32.6664 72.7097V69.5484H65.3331V72.7097C65.3331 81.4254 72.6602 88.5161 81.6664 88.5161C87.0695 88.5161 91.4664 92.7712 91.4664 98V177.032Z",fill:"black"})});case"edible":return C(tE,{});case"capsule":return C(tE,{});default:return C(Et.CheckIcon,{className:"stroke-[5px]"})}},eve=()=>{const{getSubmission:e}=ko(),{data:t}=b7({queryFn:e,queryKey:["getSubmission"]}),r=t==null?void 0:t.data.values,{nonWorkdayPlan:n,workdayPlan:o,whyRecommended:a}=vA(r?{avoidPresentation:r.areThere,currentlyUsingCannabisProducts:r.usingCannabisProducts==="Yes",openToUseThcProducts:r.workday_allow_intoxication_nonworkday_allow_intoxi,reasonToUse:r.whatBrings,symptomsWorseTimes:r.symptoms_worse_times,thcTypePreferences:r.thc_type_preferences}:{avoidPresentation:[],currentlyUsingCannabisProducts:!1,openToUseThcProducts:[],reasonToUse:[],symptomsWorseTimes:[],thcTypePreferences:Yu.notSure}),l=Ut(),c=[{title:"IN THE MORNINGS",label:o.dayTime.result,description:"",form:o.dayTime.form,type:o.dayTime.type},{title:"IN THE EVENING",label:o.evening.result,description:"",form:o.evening.form,type:o.evening.type},{title:"AT BEDTIME",label:o.bedTime.result,description:"",form:o.bedTime.form,type:o.bedTime.type}],d=[{title:"IN THE MORNINGS",label:n.dayTime.result,description:"",form:n.dayTime.form,type:n.dayTime.type},{title:"IN THE EVENING",label:n.evening.result,description:"",form:n.evening.form,type:n.evening.type},{title:"AT BEDTIME",label:n.bedTime.result,description:"",form:n.bedTime.form,type:n.bedTime.type}];return C(_t,{children:C("div",{className:"flex flex-col items-center gap-0 px-2 md:gap-20",children:Q("div",{className:"w-full max-w-[1211px] lg:w-3/5",children:[C("header",{children:C(he,{variant:"large",font:"bold",className:"my-10 font-nobel",children:"Initial Recommendations:"})}),Q("section",{className:"flex flex-col items-center justify-center gap-10 bg-cream-200 px-0 py-7 md:px-10 lg:flex-row",children:[Q("article",{className:"flex flex-row items-center justify-center gap-4",children:[C("div",{className:"h-14 w-14 rounded-full bg-cream-300 p-3",children:C(Et.CheckIcon,{className:"stroke-[5px]"})}),Q("div",{className:"flex w-full flex-col md:w-[316px]",children:[C(he,{variant:"large",font:"bold",className:"font-nobel",children:"What's included:"}),C(he,{variant:"base",className:"underline",children:"Product types/forms."}),C(he,{variant:"base",className:"underline",children:"Starting doses."}),C(he,{variant:"base",className:"underline",children:"Times of uses."}),C(Vt,{variant:"white",right:C(Et.ArrowRightIcon,{}),className:"mt-6",onClick:()=>{l(Se.profilingTwo)},children:"Save Recommendations"})]})]}),Q("article",{className:"flex-wor flex items-center justify-center gap-4",children:[C("div",{children:C("div",{className:"h-14 w-14 rounded-full bg-cream-300 p-2",children:C(Et.XMarkIcon,{className:"stroke-[3px]"})})}),Q("div",{className:"flex w-[316px] flex-col",children:[C(he,{variant:"large",font:"bold",className:"whitespace-nowrap font-nobel",children:"What's not included:"}),C(he,{variant:"base",className:"underline",children:"Local dispensary inventory match."}),C(he,{variant:"base",className:"underline",children:"Clinician review & approval."}),C(he,{variant:"base",className:"underline",children:"Ongoing feedback & optimization."}),C(Vt,{variant:"white",right:C(Et.ArrowRightIcon,{}),className:"mt-6",onClick:()=>{l(Se.profilingTwo)},children:"Continue & Get Care Plan"})]})]})]}),Q("section",{children:[C("header",{children:C(he,{variant:"large",font:"bold",className:"mb-8 mt-4 font-nobel",children:"On Workdays"})}),C("main",{className:"flex flex-col gap-14",children:c.map(({title:h,label:v,description:y,type:w,form:k})=>w?Q("article",{className:"gap-4 divide-y divide-gray-300",children:[C(he,{className:"text-gray-300",children:h}),Q("div",{className:"flex flex-col items-center gap-4 pt-4 md:flex-row",children:[C("div",{className:"w-14",children:C("div",{className:"flex h-10 w-10 flex-row items-center justify-center rounded-full bg-cream-300 p-2",children:xw(k)})}),Q("div",{children:[C(he,{font:"semiBold",className:"font-nobel",children:v}),C(he,{className:"hidden md:block",children:y})]})]})]},h):C(yo,{}))})]}),Q("section",{children:[C(he,{variant:"large",font:"bold",className:"mb-8 mt-12 font-nobel",children:"On Non- Workdays"}),C("main",{className:"flex flex-col gap-14",children:d.map(({title:h,label:v,description:y,type:w,form:k})=>w?Q("article",{className:"gap-4 divide-y divide-gray-300",children:[C(he,{className:"text-gray-300",children:h}),Q("div",{className:"flex flex-col items-center gap-4 pt-4 md:flex-row",children:[C("div",{className:"w-14",children:C("div",{className:"flex h-10 w-10 flex-row items-center justify-center rounded-full bg-cream-300 p-2",children:xw(k)})}),Q("div",{children:[C(he,{font:"semiBold",className:"font-nobel",children:v}),C(he,{className:"hidden md:block",children:y})]})]})]},h):C(yo,{}))})]}),C("section",{children:Q("header",{children:[C(he,{variant:"large",font:"bold",className:"mb-8 mt-12 font-nobel",children:"Why recommended"}),C(he,{className:"mb-8 mt-12",children:a})]})}),C("footer",{children:Q(he,{className:"mb-8 mt-12",children:["These recommendations were created using our proprietary data model which leverages the latest cannabis research and the wisdom of over 18,000 patient interactions. Note that these recommendations should be informed by a more complete understanding of your current symptoms, specific diagnoses, medications, or medical history, and have not been reviewed or approved by an eo clinician. To most responsibly define and maintain an optimal cannabis regimen,",C("a",{href:Se.register,className:"underline",children:"get your eo care plan now."})]})})]})})})},tve=()=>{const[e]=Kn(),t=e.get("submission_id"),r=e.get("union"),[n,o]=m.useState(!1),a=10,[l,c]=m.useState(0),{getSubmissionById:d}=ko(),{data:h}=b7({queryFn:()=>d(t),queryKey:["getSubmission",t],enabled:!!t,onSuccess:({data:I})=>{(I.malady===ru.Pain||I.malady===ru.Anxiety||I.malady===ru.Sleep||I.malady===ru.Other)&&o(!0),c(M=>M+1)},refetchInterval:n||l>=a?!1:1500}),v=h==null?void 0:h.data,{nonWorkdayPlan:y,workdayPlan:w,whyRecommended:k}=vA({avoidPresentation:(v==null?void 0:v.areThere)||[],currentlyUsingCannabisProducts:(v==null?void 0:v.usingCannabisProducts)==="Yes",openToUseThcProducts:(v==null?void 0:v.workday_allow_intoxication_nonworkday_allow_intoxi)||[],reasonToUse:(v==null?void 0:v.whatBrings)||[],symptomsWorseTimes:(v==null?void 0:v.symptoms_worse_times)||[],thcTypePreferences:(v==null?void 0:v.thc_type_preferences)||Yu.notSure}),_=I=>{let M="";switch(I.time){case"Morning":M="IN THE MORNINGS";break;case"Evening":M="IN THE EVENING";break;case"BedTime":M="AT BEDTIME";break}return{title:M,label:I.result,description:"",form:I.form,type:I.type}},R=Object.values(w).map(_).filter(I=>!!I.type),$=Object.values(y).map(_).filter(I=>!!I.type),E=(v==null?void 0:v.thc_type_preferences)===Yu.notPrefer,b=R.length||$.length,B=(I,M)=>Q("section",{className:"mt-8",children:[C("header",{children:C(he,{variant:"large",font:"bold",className:"mb-8 mt-4 font-nobel ",children:I})}),C("main",{className:"flex flex-col gap-14",children:M.map(({title:z,label:N,description:j,form:oe})=>Q("article",{className:"gap-4 divide-y divide-gray-300",children:[C(he,{className:"text-gray-600",children:z}),Q("div",{className:"flex flex-col items-center gap-4 pt-4 md:flex-row",children:[C("div",{className:"w-14",children:C("div",{className:"flex h-10 w-10 flex-row items-center justify-center rounded-full bg-cream-300 p-2",children:xw(oe)})}),Q("div",{children:[C(he,{font:"semiBold",className:"font-nobel",children:N}),C(he,{className:"hidden md:block",children:j})]})]})]},z))})]});return C(_t,{children:C("div",{className:"flex flex-col items-center gap-0 px-2 md:gap-20",children:Q("div",{className:"w-full max-w-[1211px] md:w-[90%] lg:w-4/5",children:[C("header",{children:C(he,{variant:"large",font:"bold",className:"my-10 font-nobel",children:"Initial Recommendations:"})}),Q("section",{className:"grid grid-cols-1 items-center justify-center divide-x divide-solid bg-cream-200 px-0 py-7 md:px-3 lg:grid-cols-2 lg:divide-gray-400",children:[Q("article",{className:"md:max-w-1/2 flex flex-col items-center justify-center gap-4 md:flex-row",children:[C("div",{className:"ml-4 flex h-10 w-10 flex-row items-center justify-center rounded-full bg-cream-300 p-2 md:h-14 md:w-14 md:p-3",children:C(Et.CheckIcon,{className:"h-20 w-20 stroke-[5px] md:h-14 md:w-14"})}),Q("div",{className:"flex w-[316px] flex-col p-4",children:[C(he,{variant:"large",font:"bold",className:"font-nobel text-3xl",children:"What's included:"}),C(he,{variant:"base",font:"medium",children:"Product types/forms."}),C(he,{variant:"base",font:"medium",children:"Starting doses."}),C(he,{variant:"base",font:"medium",children:"Times of uses."}),C(Vt,{id:"ga-save-recomendation",variant:"white",right:C(Et.ArrowRightIcon,{className:"stroke-[4px]"}),className:"mt-6 h-[30px]",onClick:()=>{window.location.href=`/${r}/account?submission_id=${t}&union=${r}`},children:C(he,{font:"medium",children:"Save Recommendations"})})]})]}),Q("article",{className:"md:max-w-1/2 flex flex-col items-center justify-center gap-4 md:flex-row",children:[C("div",{className:"ml-4 flex h-10 w-10 flex-row items-center justify-center rounded-full bg-cream-300 p-2 md:h-14 md:w-14 md:p-3",children:C(Et.XMarkIcon,{className:"h-20 w-20 stroke-[5px] md:h-14 md:w-14"})}),Q("div",{className:"flex w-[316px] flex-col p-4",children:[C(he,{variant:"large",font:"bold",className:"whitespace-nowrap font-nobel text-3xl",children:"What's not included:"}),C(he,{variant:"base",font:"medium",children:"Local dispensary inventory match."}),C(he,{variant:"base",font:"medium",children:"Clinician review & approval."}),C(he,{variant:"base",font:"medium",children:"Ongoing feedback & optimization."}),C(Vt,{id:"ga-continue-recomendation",variant:"white",right:C(Et.ArrowRightIcon,{className:"stroke-[4px]"}),className:"mt-6 h-[30px]",onClick:()=>{window.location.href=`/${r}/account?submission_id=${t}&union=${r}`},children:C(he,{font:"medium",children:"Continue & Get Care Plan"})})]})]})]}),!n||!b?C(yo,{children:l{window.location.href=`/${r}/profile-onboarding?malady=${(v==null?void 0:v.malady)||"Pain"}&union=${r}`},children:C(he,{font:"medium",children:"Redirect"})}),C(he,{children:"Thank you for your cooperation. We appreciate your effort in providing us with the required information to serve you better."})]})}),C("section",{children:Q("header",{children:[C(he,{variant:"large",font:"bold",className:"mb-8 mt-12 font-nobel",children:"Why recommended"}),C(he,{className:"mb-4 mt-4 py-2 text-justify",children:k})]})}),C("footer",{children:Q(he,{className:"mb-8 mt-4 text-justify",children:["These recommendations were created using our proprietary data model which leverages the latest cannabis research and the wisdom of over 18,000 patient interactions. Note that these recommendations should be informed by a more complete understanding of your current symptoms, specific diagnoses, medications, or medical history, and have not been reviewed or approved by an eo clinician. To most responsibly define and maintain an optimal cannabis regimen,"," ",C("span",{onClick:()=>{window.location.href=`/${r}/account?submission_id=${t}&union=${r}`},className:"poin cursor-pointer font-bold underline",children:"get your eo care plan now."})]})})]})})})},rve=Zt.object({password:Zt.string().min(8,{message:"The password must has 8 characters."}).regex(/(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])/,"The password must have at least one uppercase letter, one lowercase letter, one number"),password_confirmation:Zt.string().min(8,{message:"This field is required."}),token:Zt.string().min(1,"Token is required")}),nve=()=>{var v,y;const{resetPassword:e}=ko(),[t,r]=m.useState(!1),{formState:{errors:n},register:o,handleSubmit:a,setValue:l}=mc({resolver:vc(rve)}),c=Ut(),[d]=Kn(),{mutate:h}=Xn({mutationFn:e,onSuccess:()=>{We.success("Your password has been reset. Sign in with your new password."),c(Se.login)},onError:w=>{var k;Ui.isAxiosError(w)?((k=w.response)==null?void 0:k.status)!==200&&We.error("Something went wrong"):We.error("Something went wrong")}});return m.useEffect(()=>{d.has("token")?l("token",d.get("token")||""):c(Se.login)},[c,d,l]),C(_t,{children:Q("div",{className:"flex h-full h-full flex-row items-center justify-center gap-20 px-2",children:[Q("div",{children:[C(he,{variant:"large",font:"bold",children:"Reset your password"}),Q("form",{className:"mt-10 flex flex-col ",onSubmit:w=>{a(k=>{h(k)})(w)},children:[C(Vn,{id:"password",containerClassName:"max-w-[327px]",label:"Password",right:t?C(Et.EyeIcon,{className:"m-auto h-5 w-5 cursor-pointer text-primary-white-600",onClick:()=>r(w=>!w)}):C(Et.EyeSlashIcon,{className:"m-auto h-5 w-5 cursor-pointer text-primary-white-600",onClick:()=>r(w=>!w)}),className:"h-12 shadow-md",type:t?"text":"password",...o("password"),error:(v=n.password)==null?void 0:v.message}),C(Vn,{id:"password_confirmation",label:"Password confirmation",containerClassName:"max-w-[327px]",className:"h-12 shadow-md",type:"password",...o("password_confirmation"),error:(y=n.password_confirmation)==null?void 0:y.message}),Q(he,{variant:"small",font:"regular",className:"text-gray-500",children:["Must be at least 8 characters long and contain ",C("br",{})," a capital letter, number, and special character"]}),C(Vt,{type:"submit",className:"mt-10 w-fit",children:"Save and Sign in"})]})]}),C("div",{className:"hidden md:block",children:C("img",{className:"w-[500px]",src:"https://uploads-ssl.webflow.com/641990da28209a736d8d7c6a/641990da28209a9b288d7e7d_WhatsApp%20Image%202022-11-08%20at%207.46.28%20PM%20(1).jpeg",alt:"Images showing app of Eo Care"})})]})})},ove=Da(({label:e,message:t,error:r,id:n,compact:o,style:a,containerClassName:l,className:c,...d},h)=>Q("div",{style:a,className:Bt("relative",l),children:[Q("div",{className:Bt("flex flex-row items-center rounded-md",!!d.disabled&&"opacity-30"),children:[C("input",{ref:h,type:"checkbox",id:n,...d,className:Bt("shadow-xs block h-[40px] w-[40px] border-none text-neutrals-dark-400 placeholder:text-primary-white-600 focus:border-secondary-green focus:ring-2 focus:ring-secondary-green-300 sm:text-sm",!!r&&"border-red focus:border-red focus:ring-red-200",!!d.disabled&&"border-gray-500 bg-black-100",c)}),C(uc,{htmlFor:n,className:"text-mono",containerClassName:"ml-2",label:e})]}),!o&&C(Gs,{message:t,error:r})]})),ive=Zt.object({first_name:Zt.string().min(2,"The first name must be present"),last_name:Zt.string().min(2,"The last name must be present"),email:Zt.string().min(1,{message:"Email is required"}).email({message:"The email received it is not a valid email"}),password:Zt.string().min(8,{message:"The password must has 8 characters."}).regex(/(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])/,"The password must have at least one uppercase letter, one lowercase letter, one number"),password_confirmation:Zt.string().min(8,{message:"This field is required."}),agree_terms_and_conditions:Zt.boolean({required_error:"You must agree to the terms and conditions"})}).refine(e=>e.password===e.password_confirmation,{message:"Passwords don't match",path:["password_confirmation"]}).refine(e=>!!e.agree_terms_and_conditions,{message:"You must agree to the terms and conditions",path:["agree_terms_and_conditions"]}),ave=()=>{var h,v,y,w,k,_;const e=Ut(),{formState:{errors:t},register:r,handleSubmit:n,getValues:o,setError:a}=mc({resolver:vc(ive)}),{mutate:l}=Xn({mutationFn:Gme,onError:R=>{var $,E,b,B,I;if(Ui.isAxiosError(R)){const M=($=R.response)==null?void 0:$.data;(E=M.errors)!=null&&E.email&&a("email",{message:((b=M.errors.email.pop())==null?void 0:b.message)||""}),(B=M.errors)!=null&&B.password&&a("password",{message:((I=M.errors.password.pop())==null?void 0:I.message)||""})}else We.error("Something went wrong. Please try again later.")},onSuccess:({data:R})=>{typeof R=="string"&&e(Se.registrationComplete,{state:{email:o("email")}})}}),[c,d]=m.useState(!1);return C(_t,{children:Q("div",{className:"flex h-full w-full flex-row items-center justify-center gap-x-20 px-2",children:[Q("div",{children:[C(he,{variant:"large",font:"bold",children:"Start here."}),Q("form",{className:"mt-10",onSubmit:R=>{n($=>{l($)})(R)},children:[Q("div",{className:"flex flex-col gap-0 md:flex-row md:gap-2",children:[C(Vn,{id:"firstName",label:"First name",type:"text",className:"h-12 shadow-md",...r("first_name"),error:(h=t.first_name)==null?void 0:h.message}),C(Vn,{id:"lastName",label:"Last name",type:"text",className:"h-12 shadow-md",...r("last_name"),error:(v=t.last_name)==null?void 0:v.message})]}),C(Vn,{id:"email",label:"Email",type:"email",className:"h-12 shadow-md",...r("email"),error:(y=t.email)==null?void 0:y.message}),C(Vn,{id:"password",label:"Password",right:c?C(Et.EyeIcon,{className:"m-auto h-5 w-5 cursor-pointer text-primary-white-600",onClick:()=>d(R=>!R)}):C(Et.EyeSlashIcon,{className:"m-auto h-5 w-5 cursor-pointer text-primary-white-600",onClick:()=>d(R=>!R)}),className:"h-12 shadow-md",type:c?"text":"password",...r("password"),error:(w=t.password)==null?void 0:w.message}),C(Vn,{id:"password_confirmation",label:"Password confirmation",className:"h-12 shadow-md",type:"password",...r("password_confirmation"),error:(k=t.password_confirmation)==null?void 0:k.message}),Q(he,{variant:"small",font:"regular",className:"text-gray-500",children:["Must be at least 8 characters long and contain ",C("br",{})," a capital letter, number, and special character"]}),C(ove,{id:"agree_terms_and_conditions",...r("agree_terms_and_conditions"),error:(_=t.agree_terms_and_conditions)==null?void 0:_.message,containerClassName:"mt-2",label:Q(he,{variant:"small",font:"regular",children:["I have read and agree to the"," ",Q("a",{href:"https://www.eo.care/web/terms-of-use",target:"_blank",className:"underline",children:["Terms of ",C("br",{className:"block md:hidden lg:block"}),"Service"]}),", and"," ",Q("a",{href:"https://www.eo.care/web/privacy-policy",target:"_blank",className:"underline",children:["Privacy Policy"," "]})," ","of eo."]})}),C(Vt,{type:"submit",className:"mt-3",children:"Create account"}),Q(he,{variant:"small",className:"text-gray-30 mt-3",children:["Already have an account?"," ",C(yp,{to:Se.login,children:C("strong",{children:"Sign in"})})]})]})]}),C("div",{className:"hidden md:block",children:C("img",{className:"w-[500px]",src:"https://uploads-ssl.webflow.com/641990da28209a736d8d7c6a/641990da28209a9b288d7e7d_WhatsApp%20Image%202022-11-08%20at%207.46.28%20PM%20(1).jpeg",alt:"Images showing app of Eo Care"})})]})})},sve=()=>{const t=Vi().state,r=Ut(),{mutate:n}=Xn({mutationFn:iA,onSuccess:({data:o})=>{o?We.success("Email has been send."):We.error("Email hasn't been send")}});return m.useEffect(()=>{t!=null&&t.email||r(Se.login)},[r,t]),C(_t,{children:Q("div",{className:"flex h-full w-full flex-col items-center justify-center px-2",children:[Q(he,{variant:"large",font:"bold",className:"mb-10 text-center",children:["We’ve sent a verification email to ",t==null?void 0:t.email,".",C("br",{})," Please verify to continue."]}),C("img",{className:"w-[500px]",src:"https://uploads-ssl.webflow.com/641990da28209a736d8d7c6a/644197b05bf126412b8799c4_woman-sat.svg",alt:"Images showing women sat in a sofa, viewing her phone"}),C(Vt,{className:"mt-10",onClick:()=>n(t.email),left:C(Et.EnvelopeIcon,{}),children:"Resend verification"})]})})},lve=()=>{const e=Vi(),t=Ut(),{zip:r}=e.state;return C(_t,{children:Q("div",{className:"flex h-full h-full flex-col items-center justify-center px-2",children:[Q(he,{variant:"large",font:"bold",className:"mx-10 text-center",children:["Sorry, this eo offering is not currently"," ",C("br",{className:"hidden md:block"}),"available in ",r,". We’ll notify you",C("br",{className:"hidden md:block"}),"when we have licensed clinicians in your area."," "]}),Q("div",{className:"mt-10 flex flex-row justify-center",children:[C(Vt,{className:"text-center",onClick:()=>t(Se.zipCodeValidation),children:"Back"}),C(Vt,{variant:"secondary",onClick:()=>t(Se.home),className:"ml-4",children:"Continue"})]})]})})},gA=e=>{const t=()=>{const n=document.createElement("script");return n.type="text/javascript",n.textContent=`Zuko.trackForm({slug:'${e}'}).trackEvent(Zuko.COMPLETION_EVENT);`,setTimeout(()=>{document.body.appendChild(n)},2e3),()=>{setTimeout(()=>{document.body.removeChild(n)},2e3)}},r=()=>{const n=document.createElement("script");return n.type="text/javascript",n.textContent=`Zuko.trackForm({target:document.body,slug:"${e}"}).trackEvent(Zuko.FORM_VIEW_EVENT);`,setTimeout(()=>{document.body.appendChild(n)},2e3),()=>{setTimeout(()=>{document.body.removeChild(n)},2e3)}};return m.useEffect(()=>{const n=document.createElement("script");return n.type="text/javascript",n.async=!0,n.src="https://assets.zuko.io/js/v2/client.min.js",document.body.appendChild(n),()=>{document.body.removeChild(n)}},[]),{triggerCompletionEvent:t,triggerViewEvent:r}},uve=Zt.object({zip_code:Zt.string().min(5,{message:"Zip code is invalid"}).max(5,{message:"Zip code is invalid"})}),cve=()=>{var v;const{validateZipCode:e}=ko(),{triggerViewEvent:t}=gA(qk);m.useEffect(t,[t]);const r=Ut(),n=Di(y=>y.setProfileZip),{formState:{errors:o},register:a,handleSubmit:l,setError:c,getValues:d}=mc({resolver:vc(uve)}),{mutate:h}=Xn({mutationFn:e,onSuccess:()=>{n(d("zip_code")),r(Se.eligibleProfile)},onError:y=>{var w,k;Ui.isAxiosError(y)?((w=y.response)==null?void 0:w.status)===400?(n(d("zip_code")),r(Se.unavailableZipCode,{state:{zip:d("zip_code")}})):((k=y.response)==null?void 0:k.status)===422&&c("zip_code",{message:"Zip code is invalid"}):We.error("Something went wrong")}});return C(_t,{children:Q("div",{className:"flex h-full h-full flex-col items-center justify-center px-2",children:[C(he,{variant:"large",font:"bold",className:"text-center",children:"First, let’s check our availability in your area."}),Q("form",{className:"mt-10 flex flex-col items-center justify-center",onSubmit:y=>{l(w=>{h(w.zip_code)})(y)},children:[C(Vn,{id:"zip_code",label:"Zip Code",type:"number",className:"h-12 shadow-md",...a("zip_code"),error:(v=o.zip_code)==null?void 0:v.message}),C(Vt,{type:"submit",className:"mt-10",children:"Submit"})]})]})})},fve=()=>(m.useEffect(()=>{Vs(r3)}),C(_t,{children:C("div",{className:"mb-10 flex h-screen flex-col",children:C("iframe",{id:`JotFormIFrame-${r3}`,title:"Clone of Profiling 1",onLoad:()=>window.parent.scrollTo(0,0),allowTransparency:!0,allowFullScreen:!0,allow:"geolocation; microphone; camera",src:`https://form.jotform.com/${r3}?isuser=Yes`,className:"h-full w-full"})})})),dve=()=>{const e=Ut(),[t,r]=m.useState(!1),{combineProfileOne:n}=ko(),[o]=Kn();o.get("submission_id")||e(Se.login);const{mutate:a}=Xn({mutationFn:n,onSuccess:()=>{setTimeout(()=>{e(Se.prePlan)},5e3)},onError:()=>{r(!1)}});return m.useEffect(()=>{t||r(l=>(l||a(o.get("submission_id")||""),!0))},[a,o,t]),C(_t,{children:Q("div",{className:"flex h-full h-full flex-col items-center justify-center",children:[C(he,{variant:"large",font:"bold",children:"Great! Your submission was sent."}),C(Vt,{type:"button",className:"mt-10",onClick:()=>e(Se.prePlan),children:"Continue!"})]})})},hve=()=>(m.useEffect(()=>{Vs(n3)}),C(_t,{children:C("div",{className:"mb-10 flex h-screen flex-col",children:C("iframe",{id:`JotFormIFrame-${n3}`,title:"Clone of Profiling 1",onLoad:()=>window.parent.scrollTo(0,0),allowTransparency:!0,allowFullScreen:!0,allow:"geolocation; microphone; camera",src:`https://form.jotform.com/${n3}`,className:"h-full w-full"})})})),pve=()=>{const e=Ut(),[t,r]=m.useState(!1),{combineProfileOne:n}=ko(),[o]=Kn(),{triggerCompletionEvent:a}=gA(qk);o.get("submission_id")||e(Se.login);const{mutate:l}=Xn({mutationFn:n,onSuccess:()=>{r(!0),setTimeout(()=>{e(Se.profilingTwo)},5e3)}});return m.useEffect(a,[a]),m.useEffect(()=>{t||l(o.get("submission_id")||"")},[l,o,t]),C(_t,{children:Q("div",{className:"flex h-full h-full flex-col items-center justify-center",children:[Q(he,{variant:"large",font:"bold",className:"text-center",children:["Great! We are working with your care plan. ",C("br",{}),C("br",{})," In a few minutes we will send you by email."," ",C("br",{className:"hidden md:block"})," Also you will be able to view your care plan in your dashboard."]}),C(Vt,{type:"button",className:"mt-10",onClick:()=>e(Se.home),children:"Go home"})]})})},mve=()=>Q(mT,{children:[Q(st,{element:C(t3,{expected:"loggedOut"}),children:[C(st,{element:C(Kme,{}),path:Se.login}),C(st,{element:C(ave,{}),path:Se.register}),C(st,{element:C(sve,{}),path:Se.registrationComplete}),C(st,{element:C(qme,{}),path:Se.forgotPassword}),C(st,{element:C(nve,{}),path:Se.recoveryPassword}),C(st,{element:C(tve,{}),path:Se.prePlanV2})]}),Q(st,{element:C(t3,{expected:"withZipCode"}),children:[C(st,{element:C(Zme,{}),path:Se.home}),C(st,{element:C(lve,{}),path:Se.unavailableZipCode}),C(st,{element:C(Eme,{}),path:Se.eligibleProfile}),C(st,{element:C(fve,{}),path:Se.profilingOne}),C(st,{element:C(dve,{}),path:Se.profilingOneRedirect}),C(st,{element:C(hve,{}),path:Se.profilingTwo}),C(st,{element:C(pve,{}),path:Se.profilingTwoRedirect}),C(st,{element:C(eve,{}),path:Se.prePlan})]}),C(st,{element:C(t3,{expected:["withoutZipCode","withZipCode"]}),children:C(st,{element:C(cve,{}),path:Se.zipCodeValidation})}),C(st,{element:C(_me,{}),path:Se.emailVerification}),C(st,{element:C(xme,{}),path:Se.cancerProfile}),C(st,{element:C(bme,{}),path:Se.cancerUserTypeSelectDemo}),C(st,{element:C(rpe,{}),path:Se.cancerFormDemo}),C(st,{element:C(Cme,{}),path:Se.cancerUserVerification}),C(st,{element:C(tpe,{}),path:Se.cancerForm}),C(st,{element:C(gme,{}),path:Se.cancerThankYou}),C(st,{element:C(yme,{}),path:Se.cancerSurvey}),C(st,{element:C(wme,{}),path:Se.cancerSurveyThankYou})]});const vve=new jT;function gve(){return Q(JT,{client:vve,children:[C(mve,{}),C(Dy,{position:"top-right",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0}),BN.VITE_APP_ENV==="local"&&C(hj,{initialIsOpen:!1})]})}B3.createRoot(document.getElementById("root")).render(C(we.StrictMode,{children:C(bT,{children:C(gve,{})})})); diff --git a/apps/eo_web/dist/manifest.json b/apps/eo_web/dist/manifest.json index bf4536b5..4cbc6e8a 100644 --- a/apps/eo_web/dist/manifest.json +++ b/apps/eo_web/dist/manifest.json @@ -18,7 +18,7 @@ "css": [ "assets/main-6104ee8d.css" ], - "file": "assets/main-3a9b6b53.js", + "file": "assets/main-281f57f2.js", "isEntry": true, "src": "src/main.tsx" } diff --git a/apps/eo_web/src/screens/Cancer/UserTypeSelectorDemo.tsx b/apps/eo_web/src/screens/Cancer/UserTypeSelectorDemo.tsx index a849e28e..1aba1a0e 100644 --- a/apps/eo_web/src/screens/Cancer/UserTypeSelectorDemo.tsx +++ b/apps/eo_web/src/screens/Cancer/UserTypeSelectorDemo.tsx @@ -28,7 +28,7 @@ export const UserTypeSelectorDemo = () => { stroke="currentColor" className="absolute left-4 top-4 h-6 w-6" onClick={() => - (window.location.href = `https://${window.location.host}/cancer/pilot#how-eo-care-plans-works`) + (window.location.href = `https://${window.location.host}/pilot#how-eo-care-plans-works`) } >