(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,541450,e=>{e.v(t=>Promise.all(["static/immutable/chunks/16ruzjg_qg0xo.js"].map(t=>e.l(t))).then(()=>t(170298)))},620931,e=>{"use strict";var t=e.i(663456),n=e.i(195618),r=e.i(16179),i=e.i(207298),a=e.i(136562);let s=(0,i.f)("mx-auto max-w-full p-6",{variants:{size:{default:"md:max-w-screen-md",lg:"md:max-w-screen-lg",xl:"md:max-w-screen-xl",wide:"md:max-w-[80%]",full:"md:max-w-none"}},defaultVariants:{size:"default"}});e.s(["f",0,function(e){let i,o,l,c,d,u,m=(0,t.c)(10);if(m[0]!==e){let{className:t,size:d,render:u,...f}=e;i=u,c=r.f,o="div",l=(0,n.w)({className:(0,a.f)(s({size:d,className:t}))},f),m[0]=e,m[1]=i,m[2]=o,m[3]=l,m[4]=c}else i=m[1],o=m[2],l=m[3],c=m[4];return m[5]===Symbol.for("react.memo_cache_sentinel")?(d={slot:"container"},m[5]=d):d=m[5],m[6]!==i||m[7]!==o||m[8]!==l?(u={defaultTagName:o,props:l,render:i,state:d},m[6]=i,m[7]=o,m[8]=l,m[9]=u):u=m[9],c(u)}])},359388,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(195618),i=e.i(16179),a=e.i(16043),s=e.i(101403),o=e.i(136562);let l=e=>{let r,i=(0,n.c)(3),{className:a,children:s}=e;return i[0]!==s||i[1]!==a?(r=(0,t.jsx)("span",{className:a,children:s}),i[0]=s,i[1]=a,i[2]=r):r=i[2],r};var c=e.i(475615),d=e.i(3699),u=e.i(763156);let m=(0,a.lazy)(()=>e.A(541450).then(({TextMorph:e})=>({default:e})).catch(()=>({default:l}))),f=s.p,h=(0,a.createContext)(null),x=()=>{let e,t,r,i=(0,n.c)(13),o=(0,a.useContext)(h),l=(0,a.useContext)(p),{getFieldState:c}=(0,s.M)(),d=o?.name;i[0]!==d?(e={name:d},i[0]=d,i[1]=e):e=i[1];let u=(0,s.B)(e);if(!o)throw Error("useFormField should be used within ");if(!l)throw Error("useFormField should be used within ");i[2]!==o.name||i[3]!==u||i[4]!==c?(t=c(o.name,u),i[2]=o.name,i[3]=u,i[4]=c,i[5]=t):t=i[5];let m=t,{id:f}=l,x=`${f}-form-item`,g=`${f}-form-item-description`,j=`${f}-form-item-message`;return i[6]!==o.name||i[7]!==m||i[8]!==f||i[9]!==x||i[10]!==g||i[11]!==j?(r={id:f,name:o.name,formItemId:x,formDescriptionId:g,formMessageId:j,...m},i[6]=o.name,i[7]=m,i[8]=f,i[9]=x,i[10]=g,i[11]=j,i[12]=r):r=i[12],r},p=(0,a.createContext)(null);e.s(["n",0,f,"K",0,e=>{let t,s,o=(0,n.c)(7),{children:l,ref:c,render:d,...u}=e,{error:m,formItemId:f,formDescriptionId:h,formMessageId:p}=x(),g=d??((0,a.isValidElement)(l)?l:void 0),j=(0,r.w)({id:f,"aria-describedby":m?`${h} ${p}`:`${h}`,"aria-invalid":!!m},u),b=!!m;return o[0]!==b?(t={invalid:b},o[0]=b,o[1]=t):t=o[1],o[2]!==g||o[3]!==c||o[4]!==j||o[5]!==t?(s={defaultTagName:"input",render:g,ref:c,props:j,state:t},o[2]=g,o[3]=c,o[4]=j,o[5]=t,o[6]=s):s=o[6],(0,i.f)(s)},"Y",0,e=>{let r,i,a,s,l,c=(0,n.c)(11);c[0]!==e?({className:r,ref:a,...i}=e,c[0]=e,c[1]=r,c[2]=i,c[3]=a):(r=c[1],i=c[2],a=c[3]);let{formDescriptionId:d}=x();return c[4]!==r?(s=(0,o.f)("text-[0.8rem] text-muted-foreground",r),c[4]=r,c[5]=s):s=c[5],c[6]!==d||c[7]!==i||c[8]!==a||c[9]!==s?(l=(0,t.jsx)("p",{ref:a,id:d,className:s,...i}),c[6]=d,c[7]=i,c[8]=a,c[9]=s,c[10]=l):l=c[10],l},"G",0,e=>{let r,i,a,o,l=(0,n.c)(9);l[0]!==e?({...r}=e,l[0]=e,l[1]=r):r=l[1],l[2]!==r.name?(i={name:r.name},l[2]=r.name,l[3]=i):i=l[3];let c=i;return l[4]!==r?(a=(0,t.jsx)(s.e,{...r}),l[4]=r,l[5]=a):a=l[5],l[6]!==c||l[7]!==a?(o=(0,t.jsx)(h.Provider,{value:c,children:a}),l[6]=c,l[7]=a,l[8]=o):o=l[8],o},"V",0,e=>{let r,i,s,l,c,d,u,m=(0,n.c)(15);m[0]!==e?({className:r,ref:s,...i}=e,m[0]=e,m[1]=r,m[2]=i,m[3]=s):(r=m[1],i=m[2],s=m[3]);let f=(0,a.useId)();m[4]!==f?(l={id:f},m[4]=f,m[5]=l):l=m[5];let h=l;return m[6]!==r?(c=(0,o.f)("flex flex-col gap-y-2",r),m[6]=r,m[7]=c):c=m[7],m[8]!==i||m[9]!==s||m[10]!==c?(d=(0,t.jsx)("div",{ref:s,className:c,...i}),m[8]=i,m[9]=s,m[10]=c,m[11]=d):d=m[11],m[12]!==h||m[13]!==d?(u=(0,t.jsx)(p.Provider,{value:h,children:d}),m[12]=h,m[13]=d,m[14]=u):u=m[14],u},"y",0,e=>{let r,i,a,s,l,d,u=(0,n.c)(14);u[0]!==e?({className:r,variant:s,ref:a,...i}=e,u[0]=e,u[1]=r,u[2]=i,u[3]=a,u[4]=s):(r=u[1],i=u[2],a=u[3],s=u[4]);let m=void 0===s?"field":s,{error:f,formItemId:h}=x(),p=f&&"text-negative-text";return u[5]!==r||u[6]!==p?(l=(0,o.f)(r,p),u[5]=r,u[6]=p,u[7]=l):l=u[7],u[8]!==h||u[9]!==i||u[10]!==a||u[11]!==l||u[12]!==m?(d=(0,t.jsx)(c.f,{ref:a,variant:m,className:l,htmlFor:h,...i}),u[8]=h,u[9]=i,u[10]=a,u[11]=l,u[12]=m,u[13]=d):d=u[13],d},"o",0,e=>{let r,i,s,l,c,f,h,p,g,j=(0,n.c)(22);j[0]!==e?({className:i,children:r,ref:c,onAnimationEnd:s,...l}=e,j[0]=e,j[1]=r,j[2]=i,j[3]=s,j[4]=l,j[5]=c):(r=j[1],i=j[2],s=j[3],l=j[4],c=j[5]);let{error:b,formMessageId:y}=x(),{body:_,exiting:v,visible:T,finishExit:S}=function(e,t){let r,i,s=(0,n.c)(5),[o,l]=(0,a.useState)(e);e!==o&&(void 0!==e||t)&&l(e);let c=e??t,d=!c&&void 0!==o,u=!!c||d,m=c??o;return s[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>l(void 0),s[0]=r):r=s[0],s[1]!==d||s[2]!==m||s[3]!==u?(i={body:m,exiting:d,visible:u,finishExit:r},s[1]=d,s[2]=m,s[3]=u,s[4]=i):i=s[4],i}(b?String(b.message):void 0,r);if(!T)return null;let N=v?"animate-out fade-out slide-out-to-top-(length:--distance-micro) duration-quick ease-smooth-out fill-mode-forwards":"animate-in fade-in slide-in-from-top-(length:--distance-micro) duration-fast ease-smooth-out";return j[6]!==i||j[7]!==N?(f=(0,o.f)("text-[0.8rem] font-medium text-negative-text",N,i),j[6]=i,j[7]=N,j[8]=f):f=j[8],j[9]!==v||j[10]!==S||j[11]!==s?(h=e=>{s?.(e),v&&e.target===e.currentTarget&&S()},j[9]=v,j[10]=S,j[11]=s,j[12]=h):h=j[12],j[13]!==_?(p="string"==typeof _?(0,t.jsx)(u.f,{className:"block",tooltipContent:_,children:(0,t.jsx)(a.Suspense,{fallback:(0,t.jsx)("span",{className:"inline!",children:_}),children:(0,t.jsx)(m,{as:"span",className:"inline!",numbers:!1,duration:(0,d.X)("--duration-fast"),ease:(0,d.A)("--ease-smooth-out"),children:_})})}):_,j[13]=_,j[14]=p):p=j[14],j[15]!==y||j[16]!==l||j[17]!==c||j[18]!==f||j[19]!==h||j[20]!==p?(g=(0,t.jsx)("p",{ref:c,id:y,className:f,onAnimationEnd:h,...l,children:p}),j[15]=y,j[16]=l,j[17]=c,j[18]=f,j[19]=h,j[20]=p,j[21]=g):g=j[21],g},"O",0,x],359388)},554395,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(207298),i=e.i(136562),a=e.i(102187);let s=(0,r.f)((0,i.f)("flex w-full","text-body pointer-coarse:text-base","placeholder:text-muted-foreground/50","focus-visible:outline-hidden focus-visible:ring-0","disabled:cursor-not-allowed disabled:opacity-50"),{variants:{variant:{default:(0,i.f)("min-h-20 px-3 py-2","rounded-md border border-input bg-input-bg","focus-visible:border-focus-border focus-visible:shadow-focus"),embedded:"overflow-y-auto px-3 py-2.5"}},defaultVariants:{variant:"default"}}),o=s();e.s(["g",0,o,"o",0,function(e){let r,o,l,c,d,u,m,f,h=(0,n.c)(16);return h[0]!==e?({className:r,inputClassName:l,variant:u,font:o,ref:d,...c}=e,h[0]=e,h[1]=r,h[2]=o,h[3]=l,h[4]=c,h[5]=d,h[6]=u):(r=h[1],o=h[2],l=h[3],c=h[4],d=h[5],u=h[6]),h[7]!==r||h[8]!==o||h[9]!==l||h[10]!==u?(m=(0,i.f)(s({variant:u}),(0,a.f)({font:o}),l,r),h[7]=r,h[8]=o,h[9]=l,h[10]=u,h[11]=m):m=h[11],h[12]!==c||h[13]!==d||h[14]!==m?(f=(0,t.jsx)("textarea",{className:m,ref:d,...c}),h[12]=c,h[13]=d,h[14]=m,h[15]=f):f=h[15],f}])},763156,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(16043),i=e.i(136562),a=e.i(751155);function s(e){return e.scrollWidth>e.clientWidth+1}function o(e){return"mouse"!==e.pointerType&&l()?"tap":"hover"}function l(){return globalThis.matchMedia?.("(pointer: coarse)").matches===!0}function c(e){let t=[],n=document.activeElement;for(;n&&n!==e;){let r=n.parentElement;if(!r||!e.contains(r))return null;t.unshift(Array.prototype.indexOf.call(r.children,n)),n=r}return n===e?t:null}e.s(["f",0,function(e){let d,u,m,f,h,x,p,g,j,b,y,_,v,T,S,N,w,k,C,E,z,A,F,I,O=(0,n.c)(48);O[0]!==e?({className:u,shouldTooltipOnTruncate:g,tooltipContent:y,tooltipDelay:_,tooltipSide:j,title:b,children:d,ref:p,onPointerEnter:f,onPointerLeave:h,onFocus:m,...x}=e,O[0]=e,O[1]=d,O[2]=u,O[3]=m,O[4]=f,O[5]=h,O[6]=x,O[7]=p,O[8]=g,O[9]=j,O[10]=b,O[11]=y,O[12]=_):(d=O[1],u=O[2],m=O[3],f=O[4],h=O[5],x=O[6],p=O[7],g=O[8],j=O[9],b=O[10],y=O[11],_=O[12]);let P=void 0===g||g,V=void 0===j?"top":j,R=(0,r.useRef)(null),K=(0,r.useRef)(null),$=(0,r.useRef)(null),[L,B]=(0,r.useState)(!1),[M,U]=(0,r.useState)(!1),Y=y??b??d,D=P&&!!Y;O[13]!==p?(v=e=>{R.current=e,"function"==typeof p?p(e):p&&(p.current=e),e&&$.current&&(function(e,t){let n=e;for(let e of t)n=n?.children[e];n instanceof HTMLElement&&n.focus()}(e,$.current),$.current=null)},O[13]=p,O[14]=v):v=O[14];let G=v;O[15]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{null!==K.current&&(clearTimeout(K.current),K.current=null)},O[15]=T):T=O[15];let W=T;O[16]===Symbol.for("react.memo_cache_sentinel")?(S=()=>W,N=[],O[16]=S,O[17]=N):(S=O[16],N=O[17]),(0,r.useEffect)(S,N),O[18]!==D||O[19]!==L||O[20]!==_?(w=(e,t)=>{if(!D||L&&"tap"===t)return;W();let n=()=>{L&&($.current=c(e),B(!1),U(!1))};if(!s(e))return void n();let r=()=>{if(K.current=null,e.isConnected){if(!s(e))return void n();L||($.current=c(e),B(!0)),U("tap"!==t)}};void 0===_||"hover"!==t?r():K.current=setTimeout(r,_)},O[18]=D,O[19]=L,O[20]=_,O[21]=w):w=O[21];let q=w,J=D&&L?void 0:b;O[22]!==u?(k=(0,i.f)("min-w-0 max-w-full truncate",u),O[22]=u,O[23]=k):k=O[23],O[24]!==q||O[25]!==f?(C=e=>{f?.(e),q(e.currentTarget,o(e))},O[24]=q,O[25]=f,O[26]=C):C=O[26],O[27]!==h?(E=e=>{h?.(e),W();let t="mouse"===e.pointerType&&!l();"hover"!==o(e)||t||U(!1)},O[27]=h,O[28]=E):E=O[28],O[29]!==q||O[30]!==m?(z=e=>{m?.(e),q(e.currentTarget,"focus")},O[29]=q,O[30]=m,O[31]=z):z=O[31],O[32]!==d||O[33]!==x||O[34]!==G||O[35]!==C||O[36]!==E||O[37]!==z||O[38]!==J||O[39]!==k?(A=(0,t.jsx)("span",{ref:G,...x,title:J,className:k,onPointerEnter:C,onPointerLeave:E,onFocus:z,children:d}),O[32]=d,O[33]=x,O[34]=G,O[35]=C,O[36]=E,O[37]=z,O[38]=J,O[39]=k,O[40]=A):A=O[40];let X=A;return D&&L?(O[41]===Symbol.for("react.memo_cache_sentinel")?(F=e=>{let t=R.current;U(e&&null!==t&&s(t))},O[41]=F):F=O[41],O[42]!==M||O[43]!==Y||O[44]!==X||O[45]!==_||O[46]!==V?(I=(0,t.jsx)(a.Tooltip,{side:V,content:Y,delay:_,open:M,onOpenChange:F,children:X}),O[42]=M,O[43]=Y,O[44]=X,O[45]=_,O[46]=V,O[47]=I):I=O[47],I):X}])},3699,e=>{"use strict";function t(e,t){let n=e.cache.get(t);if(void 0!==n)return n;let r=function(e){if("u"e};e.s(["X",0,function(e){return t(n,e)},"A",0,function(e){return t(r,e)}])},912579,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(723775),i=e.i(689284),a=e.i(596376),s=e.i(139697),o=e.i(702441),l=e.i(620931),c=e.i(912147),d=e.i(359388),u=e.i(181870),m=e.i(326e3),f=e.i(554395),h=e.i(592001),x=e.i(960773),p=e.i(138257),g=e.i(980189),j=e.i(199168),b=e.i(647204);e.i(882844);var y=e.i(635157);let _=["billing_payments_and_credits","api_and_model_technical_issues","account_access_and_authentication","account_management_and_settings","account_restrictions_suspensions_and_bans","security_fraud_and_unauthorized_activity","privacy_compliance_and_legal","sales_and_partnerships","other"],v=y.z.enum(_);y.z.object({category:v,subject:y.z.string().trim().min(1).max(200),description:y.z.string().trim().min(10).max(1e4)}).extend({turnstileToken:y.z.string().min(1).max(2048)}),y.z.object({data:y.z.object({ref:y.z.string()})}),e.i(707060);var T=e.i(196991),S=e.i(153746),N=e.i(16043),w=e.i(101403);e.i(406201);var k=e.i(967605),C=e.i(905361);async function E(e){return(0,h.f)("/api/frontend/v1/private/support/tickets",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}var z=e.i(387086);let A={billing_payments_and_credits:(0,z.b)("Billing, payments and credits"),api_and_model_technical_issues:(0,z.b)("API and model technical issues"),account_access_and_authentication:(0,z.b)("Account access and authentication"),account_management_and_settings:(0,z.b)("Account management and settings"),account_restrictions_suspensions_and_bans:(0,z.b)("Account restrictions, suspensions and bans"),security_fraud_and_unauthorized_activity:(0,z.b)("Security, fraud and unauthorized activity"),privacy_compliance_and_legal:(0,z.b)("Privacy, compliance and legal"),sales_and_partnerships:(0,z.b)("Sales and partnerships"),other:(0,z.b)("Other")};var F=e.i(427720);let I={action:"support_ticket",siteKeyEnvVar:"NEXT_PUBLIC_SUPPORT_TURNSTILE_SITE_KEY",missingSiteKeyEffect:"support tickets cannot be submitted"},O="support@openrouter.ai";function P(e){let r,i=(0,n.c)(2),{children:a}=e;return i[0]!==a?(r=(0,t.jsx)(l.f,{className:"px-4 py-12 md:px-6",children:(0,t.jsx)("div",{className:"mx-auto flex max-w-2xl flex-col gap-6",children:a})}),i[0]=a,i[1]=r):r=i[1],r}function V(e){let r,i,a,l,c=(0,n.c)(6),{ticketRef:d}=e;return c[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("h1",{className:"font-brand text-size-title font-bold tracking-tight text-foreground",children:"Ticket received"}),c[0]=r):r=c[0],c[1]!==d?(i=(0,t.jsxs)(T.T,{children:[r,(0,t.jsxs)("p",{className:"text-body text-muted-foreground",children:["Your reference is ",(0,t.jsx)(S.d,{children:d}),". You'll get a reply by email, and you can reply to that email to add more details."]})]}),c[1]=d,c[2]=i):i=c[2],c[3]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(k.Link,{href:"/support",className:"self-start",children:(0,t.jsx)(s.Button,{variant:"outline",children:(0,t.jsx)(T.T,{children:"Back to support"})})}),c[3]=a):a=c[3],c[4]!==i?(l=(0,t.jsxs)(o.N,{className:"flex flex-col gap-4 p-6",children:[i,a]}),c[4]=i,c[5]=l):l=c[5],l}function R(){let e,r=(0,n.c)(1);return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("h1",{className:"font-brand text-size-title font-bold tracking-tight text-foreground",children:(0,t.jsx)(T.T,{children:"Create a support ticket"})}),r[0]=e):e=r[0],e}function K(){var e;let r,i,a,l,d,u,m,f=(0,n.c)(10),h=(0,p.useLocale)();return f[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)(R,{}),f[0]=r):r=f[0],f[1]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsxs)(T.T,{children:[(0,t.jsx)("h2",{className:"text-body font-semibold text-foreground",children:"You're not signed in"}),(0,t.jsx)("p",{className:"text-body text-muted-foreground",children:"Sign in to your OpenRouter account to create a support ticket. Tickets are linked to your account so the support team can review your account details."})]}),f[1]=i):i=f[1],f[2]!==h?(e=h,a=`/sign-in?redirect_url=${encodeURIComponent((0,g.f)("/support/new",e))}`,f[2]=h,f[3]=a):a=f[3],f[4]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(s.Button,{children:(0,t.jsx)(T.T,{children:"Sign in"})}),f[4]=l):l=f[4],f[5]!==a?(d=(0,t.jsxs)(o.N,{className:"flex flex-col gap-4 p-6",children:[i,(0,t.jsx)(k.Link,{href:a,className:"self-start",children:l})]}),f[5]=a,f[6]=d):d=f[6],f[7]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)("p",{className:"text-body text-muted-foreground",children:(0,t.jsxs)(T.T,{children:["If you don't have an OpenRouter account, or you're locked out of your account and can't sign in, email"," ",(0,t.jsx)(c.f,{href:`mailto:${O}`,children:(0,t.jsx)(S.d,{children:O})}),"."]})}),f[7]=u):u=f[7],f[8]!==d?(m=(0,t.jsxs)(t.Fragment,{children:[r,d,u]}),f[8]=d,f[9]=m):m=f[9],m}e.s(["SupportTicketForm",0,function(){let e,l,p,g,v,k,z,$=(0,j.o)(),L=(0,j.M)(),B=(0,x.Q)(),{user:M,isLoaded:U,isSignedIn:Y}=(0,r.f)(),D=((p=(0,n.c)(3))[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,F.i)("0x4AAAAAAFMgQ57Hx-OouiU7"),p[0]=e):e=p[0],g=e,v=(0,F.W)(g,I),p[1]!==v?(l={...v,isConfigured:void 0!==g},p[1]=v,p[2]=l):l=p[2],l),G=((z=(0,n.c)(1))[0]===Symbol.for("react.memo_cache_sentinel")?(k={mutationFn:E,invalidates:C.C.NONE},z[0]=k):k=z[0],(0,C.h)(k)),[W,q]=(0,N.useState)(null),J=(0,N.useMemo)(()=>y.z.object({category:y.z.enum(_,{error:$("Select a category")}),subject:y.z.string().trim().min(1,$("Enter a subject")).max(200,$("Keep the subject under {max} characters",{max:200})),description:y.z.string().trim().min(10,$("Describe the issue in at least {min} characters",{min:10})).max(1e4,$("Keep the description under {max} characters",{max:1e4}))}),[$]),X=(0,w.G)({resolver:(0,i.f)(J),defaultValues:{subject:"",description:""}}),H=X.formState.errors.root?.message,Q=X.formState.isSubmitting,Z=M?.primaryEmailAddress?.emailAddress??"",ee=async e=>{let t=await D.execute();if((0,b.V)(t)){B.capture("support_ticket_submit_failed",{reason:`turnstile_${t.error.cause}`}),X.setError("root",{message:$("We could not verify this request. Refresh the page and try again.")});return}let n=await G.mutate({...e,turnstileToken:t.data.token});if((0,b.V)(n)){B.capture("support_ticket_submit_failed",{reason:"request_failed"}),X.setError("root",{message:(0,h._)(n.error,$("Your ticket could not be submitted. Try again or email {email}.",{email:O}))});return}B.capture("support_ticket_submitted",{category:e.category}),q(n.data.ref)};return U?Y?null!==W?(0,t.jsx)(P,{children:(0,t.jsx)(V,{ticketRef:W})}):(0,t.jsxs)(P,{children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(R,{}),(0,t.jsx)("p",{className:"text-body text-muted-foreground",children:(0,t.jsx)(T.T,{children:"Tell us what you need help with. We reply by email to the address on your account."})})]}),(0,t.jsx)(o.N,{className:"p-6",children:(0,t.jsx)(d.n,{...X,children:(0,t.jsxs)("form",{onSubmit:X.handleSubmit(ee),className:"flex flex-col gap-6",noValidate:!0,children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("label",{htmlFor:"support-ticket-email",className:"text-body font-medium text-foreground",children:(0,t.jsx)(T.T,{children:"Email"})}),(0,t.jsx)(u.f,{id:"support-ticket-email",value:Z,readOnly:!0,disabled:!0}),(0,t.jsx)("p",{className:"text-body text-muted-foreground",children:(0,t.jsx)(T.T,{children:"This is the email address you're signed in with. For help with a different account, sign in to that account."})})]}),(0,t.jsx)(d.G,{control:X.control,name:"category",render:({field:e})=>(0,t.jsxs)(d.V,{className:"flex flex-col gap-2",children:[(0,t.jsx)(d.y,{htmlFor:"support-ticket-category",children:(0,t.jsx)(T.T,{children:"Category"})}),(0,t.jsxs)(m.Select,{name:e.name,value:e.value??null,disabled:Q,onValueChange:t=>e.onChange(t),children:[(0,t.jsx)(d.K,{children:(0,t.jsx)(m.SelectTrigger,{id:"support-ticket-category",children:(0,t.jsx)(m.SelectValue,{placeholder:$("Select a category")})})}),(0,t.jsx)(m.SelectContent,{children:_.map(e=>(0,t.jsx)(m.SelectItem,{value:e,children:L(A[e])},e))})]}),(0,t.jsx)(d.o,{})]})}),(0,t.jsx)(d.G,{control:X.control,name:"subject",render:({field:e})=>(0,t.jsxs)(d.V,{className:"flex flex-col gap-2",children:[(0,t.jsx)(d.y,{htmlFor:"support-ticket-subject",children:(0,t.jsx)(T.T,{children:"Subject"})}),(0,t.jsx)(d.K,{children:(0,t.jsx)(u.f,{...e,id:"support-ticket-subject",disabled:Q,maxLength:200,placeholder:$("A short summary of the issue")})}),(0,t.jsx)(d.o,{})]})}),(0,t.jsx)(d.G,{control:X.control,name:"description",render:({field:e})=>(0,t.jsxs)(d.V,{className:"flex flex-col gap-2",children:[(0,t.jsx)(d.y,{htmlFor:"support-ticket-description",children:(0,t.jsx)(T.T,{children:"Description"})}),(0,t.jsx)(d.K,{children:(0,t.jsx)(f.o,{...e,id:"support-ticket-description",disabled:Q,rows:8,maxLength:1e4,placeholder:$("Describe the steps you took, what you expected, and what happened instead")})}),(0,t.jsx)(d.Y,{children:(0,t.jsx)(T.T,{children:"Include when the issue started, any error messages, and relevant generation IDs, model names or workspace names. Don't include API keys, passwords or payment card numbers."})}),(0,t.jsx)(d.o,{})]})}),(0,t.jsx)("div",{ref:D.containerRef}),D.isConfigured?null:(0,t.jsx)(a.J,{variant:"warning",children:(0,t.jsx)(a.p,{children:(0,t.jsxs)(T.T,{children:["The support form is unavailable right now. Email"," ",(0,t.jsx)(c.f,{href:`mailto:${O}`,children:(0,t.jsx)(S.d,{children:O})})," ","instead."]})})}),void 0===H?null:(0,t.jsx)(a.J,{variant:"negative",children:(0,t.jsx)(a.p,{children:H})}),(0,t.jsx)(s.Button,{type:"submit",className:"self-start",disabled:Q||!D.isConfigured,children:Q?(0,t.jsx)(T.T,{children:"Submitting…"}):(0,t.jsx)(T.T,{children:"Submit ticket"})})]})})})]}):(0,t.jsx)(P,{children:(0,t.jsx)(K,{})}):(0,t.jsx)(P,{children:(0,t.jsx)(R,{})})}],912579)}]); //# sourceMappingURL=09_wog3te15z5.js.map