PageSourceSearch

https://cortisoldetox.com/_next/static/chunks/7848.e105f0df8b535a4a.js

js cortisoldetox.com collected 2026-10-01 16:07:16 UTC 39,830 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2813f371-ba8e-4330-8c83-1df8010c6e32",e._sentryDebugIdIdentifier="sentry-dbid-2813f371-ba8e-4330-8c83-1df8010c6e32")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7848],{81806:function(e,t,r){"use strict";r.d(t,{P2:function(){return eE},Z1:function(){return eT},qR:function(){return d}});var i=r(35944),n=r(67294);let o={apiBasePath:"/api/subscription",supportUrl:"/contact"},a=e=>{Object.assign(o,e)},l={},s=!1,h=(e,t,r)=>{Object.assign(l,e),s=!!r},c=(0,n.createContext)(null),d=e=>{let{children:t,...r}=e;return a({apiBasePath:r.apiBasePath||"/api/subscription",supportUrl:r.supportUrl||"/contact"}),h(r.theme,r.hasDarkText,r.darkMode),(0,i.tZ)(c.Provider,{value:r,children:t})},u=()=>{let e=(0,n.useContext)(c);if(!e)throw Error("useSubscriptionContext must be used inside <SubscriptionProvider>");return e};var g=r(98029),m=r(37337),p=r(4289);let y="(max-width: 48rem)";var f=r(29061);let b=e=>"".concat(o.apiBasePath,"/").concat(e),x=e=>null==e?"":String(e).trim(),v=e=>{let t=Number(e);return Number.isFinite(t)?t:0},Z=e=>"boolean"==typeof e?e:"string"==typeof e?"true"===e.trim().toLowerCase():!!e,w=e=>{var t,r,i;return{subscriptionId:v(null!==(t=e.subscriptionId)&&void 0!==t?t:e.id),subscriptionUuid:x(e.subscriptionUuid),orderId:x(null!==(r=e.orderId)&&void 0!==r?r:e.order_id),clientCode:x(null!==(i=e.clientCode)&&void 0!==i?i:e.client_code),name:x(e.name),planLength:x(e.planLength),initialPrice:v(e.initialPrice),recurringPrice:v(e.recurringPrice),recurringPeriod:x(e.recurringPeriod),nextChargeDate:x(e.nextChargeDate),status:x(e.status),currency:x(e.currency),masterProductKey:x(e.masterProductKey),isLifetime:Z(e.isLifetime),canCancel:Z(e.canCancel),canRenew:Z(e.canRenew)}},k=(e,t)=>{if(f.default.isAxiosError(e)){var r,i;return(null===(i=e.response)||void 0===i?void 0:null===(r=i.data)||void 0===r?void 0:r.message)||t}return t},S=async e=>{try{let{data:t}=await f.default.post(b("send-code"),{email:e});return t}catch(e){throw Error(k(e,"Failed to send verification code"))}},z=async(e,t)=>{try{let{data:r}=await f.default.post(b("verify-code"),{email:e,code:t});return r}catch(e){throw Error(k(e,"Invalid or expired code"))}},C=async e=>{try{var t;let{data:r}=await f.default.post(b("subscriptions"),{token:e});if(Array.isArray(r))return r.map(e=>w(e));return(null!==(t=null==r?void 0:r.subscriptions)&&void 0!==t?t:[]).map(e=>w(e))}catch(e){throw Error(k(e,"Failed to fetch subscriptions"))}},B=async(e,t)=>{try{let{data:r}=await f.default.post(b("cancel"),{token:e,clientCode:t.clientCode,subscriptionId:t.subscriptionId});return r}catch(e){throw Error(k(e,"Failed to cancel subscription"))}},P=async(e,t)=>{try{let{data:r}=await f.default.post(b("renew"),{token:e,clientCode:t.clientCode,subscriptionId:t.subscriptionId});return r}catch(e){throw Error(k(e,"Failed to renew subscription"))}};var I=r(63448),D=r(56312),E=r(87536),X=r(41664),R=r.n(X);let M=I.Ry({email:I.Z_().email("Please enter a valid email address")});var W=e=>{var t;let{projectName:r,defaultEmail:o="",isSubmitting:a=!1,errorMessage:s,onSubmit:h}=e,{supportUrl:c="/contact",hasDarkText:d=!1}=u(),[g,m]=(0,n.useState)(null!=s?s:null),y=(0,n.useRef)(!1),{register:f,handleSubmit:b,formState:{errors:x}}=(0,E.cI)({defaultValues:{email:o},resolver:(0,D.F)(M),mode:"onSubmit",reValidateMode:"onSubmit"}),v=f("email"),Z=(null===(t=x.email)||void 0===t?void 0:t.message)||g;return(0,n.useEffect)(()=>{m(s&&!y.current?s:null)},[s]),(0,i.BX)(p.xn2,{children:[(0,i.tZ)(p.h4i,{label:"Sign In",optionsLabel:"Enter the email you used to register for ".concat(r," app"),theme:l}),(0,i.BX)(H,{onSubmit:b(e=>{y.current=!1,m(null),h(e.email.trim().toLowerCase())}),children:[(0,i.BX)(j,{children:[(0,i.tZ)(p.g8n,{theme:l,...v,type:"email",inputMode:"email",placeholder:"Your email",invalid:!!Z,onChange:e=>{y.current=!0,m(null),v.onChange(e)}}),Z&&(0,i.tZ)(O,{theme:l,invalid:!0,children:Z})]}),(0,i.tZ)(p.KMU,{type:"submit",disabled:a,theme:l,hasDarkText:d,children:a?"Sending...":"Continue"})]}),(0,i.BX)(L,{theme:l,children:["Need help?"," ",(0,i.tZ)(F,{theme:l,href:c,target:"_blank",children:"Contact our support"})]})]})};let H=(0,m.Z)("form",{target:"ez2hrtj0"})("display:flex;flex-direction:column;width:100%;margin-top:2rem;@media ",y,"{margin-top:1.5rem;}"),j=(0,m.Z)("div",{target:"ez2hrtj1"})("display:flex;flex-direction:column;gap:0.5rem;margin-bottom:1.5rem;"),O=(0,m.Z)("p",{target:"ez2hrtj2"})("font-size:",e=>{let{theme:t}=e;return t.typography.bs400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bs400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bs400.lineHeight},";color:",e=>{let{invalid:t}=e;return t?l.colors.fg.error:l.colors.fg.secondary},";transition:color 0.2s;"),L=(0,m.Z)("p",{target:"ez2hrtj3"})("margin:1rem 0 0;text-align:center;font-size:",e=>{let{theme:t}=e;return t.typography.bm400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bm400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bm400.lineHeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.primary},";@media ",y,"{margin:0.75rem 0 0;}"),F=(0,m.Z)(R(),{target:"ez2hrtj4"})("color:",e=>{let{theme:t}=e;return t.colors.fg.link},";text-decoration:underline;");var T=e=>{let{theme:t}=e;return(0,i.tZ)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",he
1ight:"14",viewBox:"0 0 8 14",fill:"none",children:(0,i.tZ)("path",{d:"M1.65214 7.00301L7.35972 12.7106C7.51025 12.8611 7.58362 13.0384 7.57983 13.2423C7.57591 13.4464 7.49869 13.6237 7.34816 13.7742C7.19751 13.9247 7.0202 14 6.81626 14C6.61231 14 6.43501 13.9247 6.28435 13.7742L0.472025 7.97344C0.335007 7.83642 0.233475 7.68292 0.167429 7.51294C0.101383 7.34297 0.0683594 7.17299 0.0683594 7.00301C0.0683594 6.83303 0.101383 6.66305 0.167429 6.49308C0.233475 6.3231 0.335007 6.1696 0.472025 6.03258L6.28435 0.220071C6.43501 0.0695413 6.61426 -0.00376594 6.82213 0.000148846C7.02999 0.00406363 7.20919 0.0812856 7.35972 0.231816C7.51025 0.382345 7.58551 0.559648 7.58551 0.763722C7.58551 0.96767 7.51025 1.14491 7.35972 1.29544L1.65214 7.00301Z",fill:t.colors.fg.primary})})},_=e=>{let{projectName:t,email:r,isSubmitting:o=!1,isResending:a=!1,errorMessage:s,onSubmit:h,onResend:c,onBack:d}=e,{supportUrl:g="/contact",hasDarkText:m=!1}=u(),[y,f]=(0,n.useState)([,,,,].fill("")),[b,x]=(0,n.useState)(30),[v,Z]=(0,n.useState)(null),w=(0,n.useRef)([]),k=(0,n.useRef)(!1),S=y.join(""),z=4===S.length,C=a||b>0,B=b>0,P=v||s;(0,n.useEffect)(()=>{if(!B)return;let e=window.setInterval(()=>{x(e=>e<=1?0:e-1)},1e3);return()=>window.clearInterval(e)},[B]),(0,n.useEffect)(()=>{k.current&&!a&&x(30),k.current=a},[a]);let I=e=>{var t;null===(t=w.current[e])||void 0===t||t.focus()},D=(e,t)=>{let r=t.replace(/\D/g,"");if(Z(null),!r){f(t=>{let r=[...t];return r[e]="",r});return}let i=[...y],n=r.split(""),o=e;for(let e of n){if(o>=4)break;i[o]=e,o+=1}f(i),I(Math.min(o,3))},E=(e,t)=>{"Backspace"===t.key&&!y[e]&&e>0&&I(e-1),"ArrowLeft"===t.key&&e>0&&I(e-1),"ArrowRight"===t.key&&e<3&&I(e+1)};return(0,i.BX)(p.xn2,{children:[(0,i.BX)(Y,{theme:l,type:"button",onClick:d,"aria-label":"Back",children:[(0,i.tZ)(T,{theme:l}),"Back"]}),(0,i.tZ)(p.h4i,{label:"Enter security code",optionsLabel:"We sent a security code to ".concat(r,". Open the email from ").concat(t," and enter your code below."),theme:l}),(0,i.BX)(U,{onSubmit:e=>{if(e.preventDefault(),!z){Z("Please enter a valid security code");return}Z(null),h(S)},children:[(0,i.tZ)(G,{theme:l,children:"Security code"}),(0,i.BX)(A,{children:[(0,i.tZ)(N,{onPaste:e=>{e.preventDefault();let t=e.clipboardData.getData("text").replace(/\D/g,"").slice(0,4);if(!t)return;let r=[,,,,].fill("");t.split("").forEach((e,t)=>{r[t]=e}),Z(null),f(r),I(Math.min(t.length,3))},children:y.map((e,t)=>(0,i.tZ)(V,{theme:l,ref:e=>{w.current[t]=e},type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:1,value:e,invalid:!!P,onChange:e=>D(t,e.target.value),onKeyDown:e=>E(t,e),autoFocus:0===t},t))}),P&&(0,i.tZ)(K,{theme:l,children:P})]}),(0,i.BX)(q,{children:[(0,i.tZ)($,{theme:l,children:"Didn't receive the code?"}),(0,i.tZ)(J,{theme:l,type:"button",onClick:()=>{C||c()},disabled:C,children:a?"Resending...":b>0?"Retry in ".concat(b,"s"):"Resend Code"})]}),(0,i.tZ)(p.KMU,{type:"submit",disabled:o,theme:l,hasDarkText:m,children:o?"Verifying...":"Verify"})]}),(0,i.BX)(Q,{theme:l,children:[(0,i.tZ)(ee,{theme:l,children:"Please make sure to check your Spam folder and tabs Updates, Promotions, and Forums."}),(0,i.BX)(ee,{theme:l,children:["Need help?"," ",(0,i.tZ)(et,{theme:l,href:g,target:"_blank",children:"Contact our support"})]})]})]})};let U=(0,m.Z)("form",{target:"e1w02jii0"})("display:flex;flex-direction:column;width:100%;margin-top:2rem;gap:1.5rem;@media ",y,"{margin-top:1.5rem;}"),A=(0,m.Z)("div",{target:"e1w02jii1"})("display:flex;flex-direction:column;gap:0.75rem;"),N=(0,m.Z)("div",{target:"e1w02jii2"})("display:flex;justify-content:center;gap:0.75rem;@media ",y,"{gap:0.5rem;}"),V=(0,m.Z)("input",{target:"e1w02jii3"})("width:3.5rem;min-width:3.5rem;height:3.5rem;text-align:center;font-size:",e=>{let{theme:t}=e;return t.typography.bxl500.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bxl500.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bxl500.lineHeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.primary},";background-color:",e=>{let{theme:t}=e;return t.colors.bg.primary},";border:1px solid\n    ",e=>{let{invalid:t}=e;return t?l.colors.bdr.error:l.colors.bdr.primary},";border-radius:0.75rem;outline:none;transition:border-color 0.2s;&:focus{border-color:",e=>{let{invalid:t}=e;return t?l.colors.bdr.error:l.colors.bdr.brandPrimaryDefault},";}@media ",y,"{width:3rem;min-width:3rem;height:3rem;}"),K=(0,m.Z)("p",{target:"e1w02jii4"})("text-align:center;font-size:",e=>{let{theme:t}=e;return t.typography.bl400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bl400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bl400.lineHeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.error},";margin:0;"),Y=(0,m.Z)("button",{target:"e1w02jii5"})("margin-right:auto;display:flex;align-items:center;gap:0.5rem;color:",e=>{let{theme:t}=e;return t.colors.fg.primary},";font-size:",e=>{let{theme:t}=e;return t.typography.bl600.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bl600.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bl600.lineHeight},";margin-bottom:2rem;@media ",y,"{margin-bottom:1.5rem;}"),G=(0,m.Z)("label",{target:"e1w02jii6"})("text-align:center;font-size:",e=>{let{theme:t}=e;return t.typography.bl600.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bl600.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bl600.lineHeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.primary},";"),q=(0,m.Z)("div",{target:"e1w02jii7"})("display:flex;flex-direction:column;align-items:center;gap:0.375rem;"),$=(0,m.Z)("span",{target:"e1w02jii8"})("font-size:",e=>{let{theme:t}=e;return t.typography.bl400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bl400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bl400.lineHeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.secondary},";"),J=(0,m.Z)("button",{target:"e1w02jii9"})("background:none;border:none;padding:0;cursor:pointer;text-decoration:underline;font-size:",e=>{let{theme:t}=e;return t.typography.bl600.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bl600.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bl600.lineHeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.successPrimaryDefault},";&:disabled{font-weight:",e=>{let{theme:t}=e;return t.typography.bl400.fontWeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.primary},";text-decoration:none;cursor:default;}"),Q=(0,m.Z)("p",{target:"e1w02jii10"})("display:flex;flex-direction:column;gap:0.75rem;margin:2rem 0 0;padding:1rem;border-radius:0.75rem;background-color:",e=>{let{theme:t}=e;return t.colors.bg.primary},";border:1px solid ",e=>{let{theme:t}=e;return t.colors.bdr.primary},";"),ee=(0,m.Z)("p",{target:"e1w02jii11"})("text-align:left;font-size:",e=>{let{theme:t}=e;return t.typography.bl400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bl400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bl400.lineHeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.primary},";"),et=(0,m.Z)(R(),{target:"e1w02jii12"})("color:",e=>{let{theme:t}=e;return t.colors.fg.link},";text-decoration:underline;"),er=e=>{switch(e){default:case"USD":return"$";case"GBP":return"\xa3";case"EUR":return"€"}},ei=e=>er(e||"USD"),en=(e,t)=>"".concat(ei(t)).concat(e.toFixed(2)),eo=e=>{let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})},ea=e=>{let t=e.toLowerCase();return"cancelled"===t||"canceled"===t},el=["One payment","Unlimited access","No recurring fees"];var es=e=>{let{token:t,subscriptions:r}=e,{supportUrl:o="/contact",hasDarkText:a=!1}
1=u(),[s,h]=(0,n.useState)(r),c=(0,g.D)({mutationFn:e=>B(t,e),onSuccess:(e,t)=>{h(e=>e.map(e=>e.subscriptionId===t.subscriptionId?{...e,status:"canceled",canCancel:!1,canRenew:!0}:e))}}),d=(0,g.D)({mutationFn:e=>P(t,e),onSuccess:(e,t)=>{h(e=>e.map(e=>e.subscriptionId===t.subscriptionId?{...e,status:"active",canRenew:!1,canCancel:!0}:e))}}),m=e=>{c.mutate(e)},y=e=>{d.mutate(e)};return(0,i.BX)(p.xn2,{children:[0===s.length?(0,i.BX)(i.HY,{children:[(0,i.tZ)(eh,{theme:l,marginSm:!0,children:"My subscription"}),(0,i.BX)(eg,{theme:l,children:["You have no active subscriptions.",(0,i.tZ)("br",{}),"Tap ",(0,i.tZ)("span",{children:"Get my plan"})," below to choose one."]}),(0,i.tZ)(ec,{children:(0,i.tZ)(p.KMU,{type:"submit",theme:l,hasDarkText:a,onClick:()=>window.location.href="/start",children:"Get my plan"})})]}):(0,i.BX)(i.HY,{children:[(0,i.tZ)(eh,{theme:l,children:"Subscription Management"}),(0,i.tZ)(eu,{children:s.map((e,t)=>{var r,n,o,a;let s=e.isLifetime,h=ea(e.status),u=c.isPending&&(null===(r=c.variables)||void 0===r?void 0:r.subscriptionId)===e.subscriptionId,g=c.isError&&(null===(n=c.variables)||void 0===n?void 0:n.subscriptionId)===e.subscriptionId,f=d.isPending&&(null===(o=d.variables)||void 0===o?void 0:o.subscriptionId)===e.subscriptionId,b=d.isError&&(null===(a=d.variables)||void 0===a?void 0:a.subscriptionId)===e.subscriptionId;return(0,i.BX)(em,{theme:l,children:[(0,i.BX)(ep,{theme:l,children:[(0,i.BX)(ey,{children:[(0,i.tZ)(ef,{theme:l,children:s?"Lifetime plan":e.name}),e.orderId&&(0,i.BX)(eb,{theme:l,children:["Order #",e.orderId]})]}),(0,i.tZ)(ev,{theme:l,status:e.status,children:e.status})]}),(0,i.BX)(eZ,{theme:l,children:[s?(0,i.tZ)(ek,{children:el.map(e=>(0,i.tZ)(eS,{theme:l,children:e},e))}):(0,i.BX)(i.HY,{children:[(0,i.BX)(ew,{theme:l,children:[(0,i.BX)(ez,{children:[(0,i.tZ)(eC,{theme:l,children:"Introductory period"}),(0,i.tZ)(eB,{theme:l,children:e.planLength})]}),(0,i.BX)(ez,{children:[(0,i.tZ)(eC,{theme:l,children:"Introductory price"}),(0,i.tZ)(eB,{theme:l,children:en(e.initialPrice,e.currency)})]})]}),(0,i.BX)(ew,{theme:l,children:[(0,i.BX)(ez,{children:[(0,i.tZ)(eC,{theme:l,children:"Billing period"}),(0,i.tZ)(eB,{theme:l,children:e.recurringPeriod})]}),!h&&(0,i.BX)(ez,{children:[(0,i.tZ)(eC,{theme:l,children:"Next charge date"}),(0,i.tZ)(eB,{theme:l,children:eo(e.nextChargeDate)})]}),(0,i.BX)(ez,{children:[(0,i.tZ)(eC,{theme:l,children:"Billing amount"}),(0,i.tZ)(eB,{theme:l,children:en(e.recurringPrice,e.currency)})]})]})]}),!h&&e.canCancel&&!s&&(0,i.tZ)(ed,{children:(0,i.tZ)(p.KMU,{theme:l,variant:"fourth",size:"sm",customBorderRadius:.5,type:"button",onClick:()=>m(e),disabled:u,children:u?"Cancelling...":"Cancel"})}),h&&e.canRenew&&!s&&(0,i.tZ)(ed,{children:(0,i.tZ)(p.KMU,{theme:l,variant:"fourth",size:"sm",customBorderRadius:.5,type:"button",onClick:()=>y(e),disabled:f,children:f?"Renewing...":"Renew"})}),g&&(0,i.tZ)(eP,{theme:l,children:c.error.message}),b&&(0,i.tZ)(eP,{theme:l,children:d.error.message})]})]},e.subscriptionId?String(e.subscriptionId):"".concat(e.name,"-").concat(t))})})]}),(0,i.BX)(eI,{theme:l,children:["Need help?"," ",(0,i.tZ)(eD,{theme:l,href:o,target:"_blank",children:"Contact our support"})]})]})};let eh=(0,m.Z)("h1",{target:"e1t34siy0"})("margin:",e=>{let{marginSm:t}=e;return t?"0 0 0.5rem":"0 0 1.5rem"},";text-align:center;font-size:",e=>{let{theme:t}=e;return t.typography.h3.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.h3.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.h3.lineHeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.primary},";@media ",y,"{font-size:",e=>{let{theme:t}=e;return t.typography.h5.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.h5.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.h5.lineHeight},";}"),ec=(0,m.Z)("div",{target:"e1t34siy1"})("margin:2rem 0 0;width:100%;@media ",y,"{margin:1.5rem 0 0;}"),ed=(0,m.Z)("div",{target:"e1t34siy2"})("margin:1rem 0 0 auto;button{min-width:unset;}"),eu=(0,m.Z)("div",{target:"e1t34siy3"})("display:flex;flex-direction:column;gap:0.75rem;width:100%;"),eg=(0,m.Z)("p",{target:"e1t34siy4"})("text-align:center;color:",e=>{let{theme:t}=e;return t.colors.fg.primary},";font-size:",e=>{let{theme:t}=e;return t.typography.bl400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bl400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bl400.lineHeight},";span{font-weight:",e=>{let{theme:t}=e;return t.typography.bl700.fontWeight},";}"),em=(0,m.Z)("div",{target:"e1t34siy5"})("display:flex;flex-direction:column;border:1px solid ",e=>{let{theme:t}=e;return t.colors.bdr.primary},";border-radius:0.75rem;background:",e=>{let{theme:t}=e;return t.colors.bg.primary},";overflow:hidden;padding:1rem;"),ep=(0,m.Z)("div",{target:"e1t34siy6"})("display:flex;align-items:center;justify-content:space-between;gap:0.75rem;padding-bottom:0.75rem;border-bottom:1px solid ",e=>{let{theme:t}=e;return t.colors.bdr.primary},";"),ey=(0,m.Z)("div",{target:"e1t34siy7"})("display:flex;flex-direction:column;gap:0.25rem;"),ef=(0,m.Z)("h3",{target:"e1t34siy8"})("margin:0;font-size:",e=>{let{theme:t}=e;return t.typography.bxl700.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bxl700.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bxl700.lineHeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.primary},";"),eb=(0,m.Z)("span",{target:"e1t34siy9"})("font-size:",e=>{let{theme:t}=e;return t.typography.bm400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bm400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bm400.lineHeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.secondary},";"),ex=e=>ea(e)?{bg:l.colors.bg.info,fg:s?l.colors.fg.accent:l.colors.fg.info}:(e.toLowerCase(),{bg:l.colors.bg.successPrimaryDefault,fg:l.colors.fg.accent}),ev=(0,m.Z)("span",{target:"e1t34siy10"})("padding:0.25rem 0.5rem;border-radius:0.5rem;text-transform:uppercase;white-space:nowrap;background:",e=>{let{status:t}=e;return ex(t).bg},";color:",e=>{let{status:t}=e;return ex(t).fg},";font-size:",e=>{let{theme:t}=e;return t.typography.bs600.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bs600.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bs600.lineHeight},";"),eZ=(0,m.Z)("div",{target:"e1t34siy11"})("display:flex;flex-direction:column;min-width:100%;"),ew=(0,m.Z)("div",{target:"e1t34siy12"})("display:flex;flex-direction:column;padding-top:1rem;gap:0.5rem;& + &{border-top:1px solid ",e=>{let{theme:t}=e;return t.colors.bdr.primary},";margin-top:1rem;}"),ek=(0,m.Z)("ul",{target:"e1t34siy13"})("display:flex;flex-direction:column;gap:0.5rem;margin:1rem 0 0;padding:0;list-style:none;"),eS=(0,m.Z)("li",{target:"e1t34siy14"})("font-size:",e=>{let{theme:t}=e;return t.typography.bm400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bm400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bm400.lineHeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.secondary},";"),ez=(0,m.Z)("div",{target:"e1t34siy15"})("display:flex;align-items:center;justify-content:space-between;gap:0.75rem;"),eC=(0,m.Z)("span",{target:"e1t34siy16"})("font-size:",e=>{let{theme:t}=e;return t.typography.bm400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bm400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bm400.lineHeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.secondary},";"),eB=(0,m.Z)("span",{target:"e1t34siy17"})("font-size:",e=>{let{theme:t}=e;return t.typography.bm600.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bm600.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bm600.lineHeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.primary},";text-align:right;"),eP=(0,m.Z)("p",{target:"e1t34siy18"})("margin:0;text-align:right;font-size:",e=>{let{theme:t}=e;return t.typography.bs400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bs400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bs400.lineHeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.error},";"),eI=(0,m.Z)("p",{target:"e1t34siy19"})("margin:1rem 0 0;text-align:center;font-size:",e=>{let{theme:t}=e;return t.typography.bm400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bm400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bm400.lineHeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.primary},";@media ",y,"{margin:0.75rem 0 0;}"),eD=(0,m.Z)(R(),{target:"e1t34siy20"})("color:",e=>{let{theme:t}=e;return t.colors.fg.link},";text-decoration:underline;");var eE=e=>{let{projectName:t,showNavigation:r=!0,fillViewport:o=!0}=e,{theme:a,logo:l}
1=u(),[s,h]=(0,n.useState)("email"),[c,d]=(0,n.useState)(""),[m,y]=(0,n.useState)(""),[f,b]=(0,n.useState)([]),x=(0,g.D)({mutationFn:e=>S(e),onSuccess:(e,t)=>{d(t),h("code")}}),v=(0,g.D)({mutationFn:e=>S(e)}),Z=(0,g.D)({mutationFn:async e=>{let t=await z(c,e);if((null==t?void 0:t.success)!==!0)throw Error((null==t?void 0:t.message)||"Invalid or expired code");return t},onSuccess:async e=>{var t;let r=null!==(t=null==e?void 0:e.token)&&void 0!==t?t:"";if(y(r),r)try{let e=await C(r);b(e)}catch(e){console.error("Failed to fetch subscriptions",e)}h("subscriptions")}}),w=e=>{x.mutate(e)},k=e=>{Z.mutate(e)},B=()=>{v.mutate(c)},P=()=>{Z.reset(),h("email")};return(0,i.BX)(eX,{fillViewport:o,children:[r&&(0,i.tZ)(p.W_F,{theme:a,hideCount:!0,hasProgress:!1,logo:l}),(0,i.tZ)(eR,{theme:a,children:(0,i.tZ)(eM,{children:(()=>{switch(s){case"email":return(0,i.tZ)(W,{projectName:t,defaultEmail:c,isSubmitting:x.isPending,errorMessage:x.isError?x.error.message:null,onSubmit:w});case"code":return(0,i.tZ)(_,{projectName:t,email:c,isSubmitting:Z.isPending,isResending:v.isPending,errorMessage:Z.isError?Z.error.message:null,onSubmit:k,onResend:B,onBack:P});case"subscriptions":return(0,i.tZ)(es,{email:c,token:m,subscriptions:f})}})()})})]})};let eX=(0,m.Z)("div",{target:"e1eoy8yt0"})("display:flex;flex-direction:column;flex:1;min-height:",e=>{let{fillViewport:t}=e;return t?"100vh":"0"},";"),eR=(0,m.Z)("div",{target:"e1eoy8yt1"})("flex:1;display:flex;flex-direction:column;background:",e=>{let{theme:t}=e;return t.colors.bg.secondary},";"),eM=(0,m.Z)("div",{target:"e1eoy8yt2"})("width:100%;max-width:31.75rem;margin:0 auto;padding:2rem 1.5rem 4rem;@media ",y,"{padding:1.5rem 1rem 3rem;}"),eW=(e,t)=>{if(f.default.isAxiosError(e)){var r,i;return(null===(i=e.response)||void 0===i?void 0:null===(r=i.data)||void 0===r?void 0:r.message)||t}return t},eH=async(e,t)=>{try{let{data:r}=await f.default.post(e,{email:t.email,name:"[PayPal Refund Request Form]",message:"Transaction ID provided: ".concat(t.transactionId,", Additional information: ").concat(t.additionalInfo)});return r}catch(e){throw Error(eW(e,"Failed to submit refund request"))}};var ej=r(69260),eO=r.n(ej),eL=JSON.parse('{"nm":"Success","ddd":0,"h":1080,"w":1080,"meta":{"g":"LottieFiles AE "},"layers":[{"ty":4,"nm":"Check","sr":1,"st":0,"op":39.0000015885026,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[500,528,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Shape 1","ix":1,"cix":2,"np":3,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":false,"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-128,-24],[24,128],[412,-260]]},"ix":2}},{"ty":"st","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":2,"lj":2,"ml":1,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":60,"ix":5},"c":{"a":0,"k":[0.4118,0.7608,0.2627],"ix":3}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[0,0],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"tm","bm":0,"hd":false,"mn":"ADBE Vector Filter - Trim","nm":"Trim Paths 2","ix":2,"e":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[0],"t":0},{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[0],"t":20},{"s":[100],"t":30.0000012219251}],"ix":2},"o":{"a":0,"k":0,"ix":3},"s":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[0],"t":0},{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[0],"t":20},{"s":[0],"t":30.0000012219251}],"ix":1},"m":1}],"ind":1},{"ty":4,"nm":"animated progress","sr":1,"st":0,"op":39.0000015885026,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[540,520,0],"ix":2},"r":{"a":1,"k":[{"o":{"x":0.333,"y":0}
1,"i":{"x":0.667,"y":0.685},"s":[-30],"t":-1},{"o":{"x":0.333,"y":0.11},"i":{"x":0.667,"y":1},"s":[-30],"t":0},{"s":[30],"t":21.0000008553475}],"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Ellipse 1","ix":1,"cix":2,"np":4,"it":[{"ty":"el","bm":0,"hd":false,"mn":"ADBE Vector Shape - Ellipse","nm":"Ellipse Path 1","d":1,"p":{"a":0,"k":[0,0],"ix":3},"s":{"a":0,"k":[800,800],"ix":2}},{"ty":"st","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":2,"lj":1,"ml":4,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":60,"ix":5},"c":{"a":0,"k":[0.4118,0.7608,0.2627],"ix":3}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[0,0],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"tm","bm":0,"hd":false,"mn":"ADBE Vector Filter - Trim","nm":"Trim Paths 1","ix":2,"e":{"a":1,"k":[{"o":{"x":0.167,"y":0},"i":{"x":0.575,"y":0.465},"s":[0],"t":0},{"o":{"x":0.411,"y":0.14},"i":{"x":0.824,"y":1.002},"s":[23],"t":11},{"o":{"x":0.039,"y":47.064},"i":{"x":0.824,"y":1.248},"s":[100],"t":21},{"s":[100],"t":40.0000016292334}],"ix":2,"x":"var $bm_rt;\\n$bm_rt = loopOut();"},"o":{"a":0,"k":0,"ix":3},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0},"i":{"x":0.667,"y":-0.366},"s":[0],"t":0},{"o":{"x":0.333,"y":0.414},"i":{"x":0.667,"y":1},"s":[4],"t":11},{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[16],"t":21},{"s":[16],"t":40.0000016292334}],"ix":1,"x":"var $bm_rt;\\n$bm_rt = loopOut();"},"m":1}],"ind":2}],"v":"4.8.0","fr":29.9700012207031,"op":39.0000015885026,"ip":0,"assets":[]}');let eF=I.Ry({email:I.Z_().email("Please enter a valid email address"),transactionId:I.Z_().optional(),additionalInfo:I.Z_().optional()});var eT=e=>{var t,r,o;let{projectName:a,apiBasePath:l="/api/refund",showNavigation:s=!0}=e,{theme:h,logo:c,supportUrl:d="/contact",hasDarkText:m=!1}=u(),{register:y,handleSubmit:f,setValue:b,formState:{errors:x}}=(0,E.cI)({defaultValues:{email:"",transactionId:"",additionalInfo:""},resolver:(0,D.F)(eF),mode:"onSubmit",reValidateMode:"onSubmit"}),v=(0,g.D)({mutationFn:e=>{var t,r;return eH(l,{email:e.email.trim().toLowerCase(),transactionId:null===(t=e.transactionId)||void 0===t?void 0:t.trim(),additionalInfo:null===(r=e.additionalInfo)||void 0===r?void 0:r.trim()})}}),Z=v.isSuccess,w=null!==(o=null===(r=v.variables)||void 0===r?void 0:null===(t=r.email)||void 0===t?void 0:t.trim().toLowerCase())&&void 0!==o?o:"";return(0,n.useEffect)(()=>{Z&&window.scrollTo({top:0,behavior:"instant"})},[Z]),(0,i.BX)(i.HY,{children:[s&&(0,i.tZ)(p.W_F,{theme:h,hideCount:!0,hasProgress:!1,logo:c}),(0,i.tZ)(e_,{theme:h,children:(0,i.tZ)(eU,{children:Z?(0,i.tZ)(i.HY,{children:(0,i.BX)(eN,{children:[(0,i.BX)(eV,{children:[(0,i.tZ)(eK,{theme:h,children:(0,i.tZ)(eO(),{animationData:eL,loop:!1})}),(0,i.tZ)(eY,{theme:h,children:"Your request was sent successfully"}),(0,i.BX)(eG,{theme:h,children:["We've sent a confirmation email to"," ",(0,i.tZ)("strong",{children:w}),". Please check your spam folder if it doesn't arrive soon."]})]}),(0,i.BX)(eq,{children:[(0,i.tZ)(e$,{theme:h,children:"You may now close this window. Still facing issues?"}),(0,i.tZ)(e$,{theme:h,children:(0,i.tZ)(eJ,{theme:h,href:d,target:"_blank",children:"Contact Support"})})]})]})}):(0,i.BX)(i.HY,{children:[(0,i.BX)(p.xn2,{children:[(0,i.tZ)(p.OSZ,{theme:h,removeSpacing:!0,firstStepTitle:"PayPal Contacted",secondStepTitle:"Refund Request",thirdStepTitle:"Refund Processed"}),(0,i.BX)(e0,{theme:h,children:[(0,i.tZ)(p.h4i,{label:"Refund request form",optionsLabel:"Direct PayPal claim can delay your refund by up to 30 days. Contact our special resolution team and get your request resolved immediately.",theme:h,alignLeft:!0}),(0,i.tZ)(eA,{theme:h}),(0,i.BX)(eQ,{onSubmit:f(e=>{v.mutate(e)}),children:[(0,i.BX)(e1,{children:[(0,i.BX)(e2,{theme:h,children:["Email ",(0,i.tZ)(e5,{theme:h,children:"*"})]}),(0,i.tZ)(e3,{children:(0,i.tZ)(p.g8n,{theme:h,...y("email"),type:"email",inputMode:"email",placeholder:"PayPal or ".concat(a," email"),invalid:!!x.email})}),x.email&&(0,i.tZ)(e6,{theme:h,invalid:!0,children:x.email.message})]}),(0,i.BX)(e1,{children:[(0,i.tZ)(e2,{theme:h,children:"Transaction ID"}),(0,i.tZ)(e3,{children:(0,i.tZ)(p.oil,{theme:h,...y("transactionId"),t
1ype:"text",placeholder:"Paypal Transaction ID (optional)",onChange:e=>b("transactionId",e.target.value)})})]}),(0,i.BX)(e1,{children:[(0,i.tZ)(e2,{theme:h,children:"Additional information"}),(0,i.tZ)(e4,{children:(0,i.tZ)(e7,{theme:h,...y("additionalInfo"),rows:5,placeholder:"Please provide any additional information that might be relevant in resolving this case (optional)",onChange:e=>b("additionalInfo",e.target.value)})})]}),v.isError&&(0,i.tZ)(e8,{theme:h,children:v.error.message}),(0,i.BX)(e9,{theme:h,children:[(0,i.tZ)("strong",{children:"Expected response time:"})," <10 minutes"]}),(0,i.tZ)(p.KMU,{type:"submit",variant:"primary",disabled:v.isPending,theme:h,hasDarkText:m,children:v.isPending?"Processing...":"Process my refund"})]})]})]}),(0,i.BX)(te,{theme:h,children:[(0,i.BX)("p",{children:["IMPORTANT NOTE: It is mandatory to provide your PayPal account email OR the email you used to create your ",a," account."]}),(0,i.tZ)("p",{children:"Formal PayPal disputes freeze transactions and can take up to 14–30 days to review. If you are unsatisfied with your purchase or were billed by mistake, our internal policy is to make it right immediately."})]})]})})})]})};let e_=(0,m.Z)("div",{target:"e13vh7xt0"})("min-height:100vh;background:",e=>{let{theme:t}=e;return t.colors.bg.primary},";"),eU=(0,m.Z)("div",{target:"e13vh7xt1"})("width:100%;max-width:30.75rem;margin:0 auto;padding:2rem 1rem 3.5rem;@media ",y,"{padding:1.5rem 1rem 2.25rem;}"),eA=(0,m.Z)("div",{target:"e13vh7xt2"})("background:",e=>{let{theme:t}=e;return t.colors.bdr.primary},";width:100%;height:1px;margin:1rem 0;"),eN=(0,m.Z)("div",{target:"e13vh7xt3"})("display:flex;flex-direction:column;align-items:center;text-align:center;@media ",y,"{min-height:calc(100dvh - 8rem);justify-content:space-between;}"),eV=(0,m.Z)("div",{target:"e13vh7xt4"})("display:flex;flex-direction:column;align-items:center;"),eK=(0,m.Z)("div",{target:"e13vh7xt5"})("width:6.25rem;height:6.25rem;flex-shrink:0;margin:0 0 1.5rem;path{stroke:",e=>{let{theme:t}=e;return t.colors.fg.successPrimaryDefault},";}"),eY=(0,m.Z)("h1",{target:"e13vh7xt6"})("margin:0 0 0.5rem;font-size:",e=>{let{theme:t}=e;return t.typography.h3.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.h3.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.h3.lineHeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.primary},";@media ",y,"{font-size:",e=>{let{theme:t}=e;return t.typography.h5.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.h5.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.h5.lineHeight},";}"),eG=(0,m.Z)("p",{target:"e13vh7xt7"})("margin:0;font-size:",e=>{let{theme:t}=e;return t.typography.bl400.fontSize},";line-height:",e=>{let{theme:t}=e;return t.typography.bl400.lineHeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.primary},";strong{font-weight:",e=>{let{theme:t}=e;return t.typography.bl700.fontWeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.primary},";}"),eq=(0,m.Z)("div",{target:"e13vh7xt8"})("margin:7.5rem 0 0;display:flex;flex-direction:column;gap:0.75rem;@media ",y,"{margin-top:auto;}"),e$=(0,m.Z)("p",{target:"e13vh7xt9"})("font-size:",e=>{let{theme:t}=e;return t.typography.bl400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bl400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bl400.lineHeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.primary},";@media ",y,"{font-size:",e=>{let{theme:t}=e;return t.typography.bm400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bm400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bm400.lineHeight},";}"),eJ=(0,m.Z)(R(),{target:"e13vh7xt10"})("color:",e=>{let{theme:t}=e;return t.colors.fg.link},";text-decoration:underline;"),eQ=(0,m.Z)("form",{target:"e13vh7xt11"})("display:flex;flex-direction:column;width:100%;gap:1rem;"),e0=(0,m.Z)("div",{target:"e13vh7xt12"})("padding:1.5rem;background-color:",e=>{let{theme:t}=e;return t.colors.bg.secondary},";border-radius:0.75rem;margin-top:1.5rem;@media ",y,"{padding:1rem;}"),e1=(0,m.Z)("div",{target:"e13vh7xt13"})("display:flex;flex-direction:column;gap:0.5rem;"),e3=(0,m.Z)("div",{target:"e13vh7xt14"})("input{height:3rem;}"),e4=(0,m.Z)("div",{target:"e13vh7xt15"})("textarea{min-height:10.375rem;}"),e2=(0,m.Z)("label",{target:"e13vh7xt16"})("font-size:",e=>{let{theme:t}=e;return t.typography.bm600.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bm600.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bm600.lineHeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.primary},";"),e5=(0,m.Z)("span",{target:"e13vh7xt17"})("color:",e=>{let{theme:t}=e;return t.colors.fg.error},";"),e7=(0,m.Z)("textarea",{target:"e13vh7xt18"})("width:100%;resize:vertical;padding:0.875rem 1rem;font-size:",e=>{let{theme:t}=e;return t.typography.bl400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bl400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bl400.lineHeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.primary},";background:",e=>{let{theme:t}=e;return t.colors.bg.primary},";border:1px solid ",e=>{let{theme:t}=e;return t.colors.bdr.primary},";border-radius:0.75rem;outline:none;font-family:inherit;&::placeholder{color:",e=>{let{theme:t}=e;return t.colors.fg.secondary},";}"),e6=(0,m.Z)("p",{target:"e13vh7xt19"})("margin:0;font-size:",e=>{let{theme:t}=e;return t.typography.bs400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bs400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bs400.lineHeight},";color:",e=>
1{let{theme:t,invalid:r}=e;return r?t.colors.fg.error:t.colors.fg.secondary},";"),e8=(0,m.Z)("p",{target:"e13vh7xt20"})("margin:0;font-size:",e=>{let{theme:t}=e;return t.typography.bm600.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bm600.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bm600.lineHeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.error},";"),e9=(0,m.Z)("p",{target:"e13vh7xt21"})("margin:0;font-size:",e=>{let{theme:t}=e;return t.typography.bm400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bm400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bm400.lineHeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.primary},";strong{font-weight:",e=>{let{theme:t}=e;return t.typography.bm600.fontWeight},";}"),te=(0,m.Z)("div",{target:"e13vh7xt22"})("margin-top:1.5rem;display:flex;flex-direction:column;gap:1rem;p{margin:0;font-size:",e=>{let{theme:t}=e;return t.typography.bs400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bs400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bs400.lineHeight},";color:",e=>{let{theme:t}=e;return t.colors.fg.secondaryStrong},";}")},9008:function(e,t,r){e.exports=r(23867)},98029:function(e,t,r){"use strict";r.d(t,{D:function(){return c}});var i=r(30202),n=r(67294),o=r(24139),a=r(7506),l=r(27037),s=r(59289),h=class extends a.l{#e;#t=void 0;#r;#i;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,o.VS)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,o.Ym)(t.mutationKey)!==(0,o.Ym)(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onSubscribe(){1===this.listeners.size&&this.#r&&(this.#r.addObserver(this),this.#n())}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(e){this.#n(),this.#o(e)}getCurrentResult(){return this.#t}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#n(),this.#o()}mutate(e,t){return this.#i=t,this.#r?.removeObserver(this),this.#r=this.#e.getMutationCache().build(this.#e,this.options),this.#r.addObserver(this),this.#r.execute(e)}#n(){let e=this.#r?.state??(0,s.R)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#o(e){l.Vr.batch(()=>{if(this.#i&&this.hasListeners()){let t=this.#t.variables,r=this.#t.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#i.onSuccess?.(e.data,t,r,i)}catch(e){Promise.reject(e)}try{this.#i.onSettled?.(e.data,null,t,r,i)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#i.onError?.(e.error,t,r,i)}catch(e){Promise.reject(e)}try{this.#i.onSettled?.(void 0,e.error,t,r,i)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}};function c(e,t){let r=(0,i.NL)(t),[a]=n.useState(()=>new h(r,e));n.useEffect(()=>{a.setOptions(e)},[a,e]);let s=n.useSyncExternalStore(n.useCallback(e=>a.subscribe(l.Vr.batchCalls(e)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),c=n.useCallback((...e)=>{a.mutate(e[0],e[1]).catch(o.ZT)},[a]);if(s.error&&(0,o.L3)(a.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:c,mutateAsync:s.mutate}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.