1!function(){try{var 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]="c987db94-8050-45d0-9f13-accc00cdf50a",e._sentryDebugIdIdentifier="sentry-dbid-c987db94-8050-45d0-9f13-accc00cdf50a")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4219],{11295:(e,t,n)=>{"use strict";n.d(t,{C:()=>s});var r=n(95155),o=n(12115),i=n(72651);let a="That report did not reach us, and nothing else on this page changed. What you wrote is still here, so you can try again. If it keeps stopping, send the reference below to an engineer.";function s(e){let{digest:t,traceId:n,variant:s="page",className:p}=e,[u,f]=(0,o.useState)(!1),[g,x]=(0,o.useState)(""),[y,b]=(0,o.useState)("idle"),[m,v]=(0,o.useState)(a),[w,j]=(0,o.useState)(null),T=(0,o.useRef)(null),k=(0,o.useId)();(0,o.useEffect)(()=>{var e;u&&(null==(e=T.current)||e.focus())},[u]);let S="bare"===s?h:d,N=g.trim(),W=N.length>0&&"sending"!==y,C=(null==n?void 0:n.trim())||(null==t?void 0:t.trim())||null;async function B(){if(!W)return;b("sending");let e=new AbortController,r=window.setTimeout(()=>e.abort(),1e4);try{var o;let r=await fetch((0,i.y0)("/public/report-problem"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({message:N.slice(0,2e3),digest:null!=t?t:null,trace_id:null!=n?n:null,surface:"web",path:window.location.pathname}),signal:e.signal});if(!r.ok){v(429===r.status?"That report did not reach us: too many reports have gone out in a short time. Wait a few minutes and try again. What you wrote is still here.":a),b("refused");return}let s=await r.json().catch(()=>null);j(null!=(o=function(e){if(null===e||"object"!=typeof e)return null;let t=e.reference;return"string"==typeof t&&t.trim()?t.trim():null}(s))?o:C),b("sent")}catch(e){v(a),b("refused")}finally{window.clearTimeout(r)}}return"sent"===y?(0,r.jsxs)("div",{className:c(S.sentPanel.className,p),style:S.sentPanel.style,children:[(0,r.jsx)("p",{role:"status",...S.sentTitle,children:"Your report is in."}),(0,r.jsx)("p",{...S.body,children:w?"An engineer can find it by the reference below.":"An engineer can find it by the time you sent it."}),w?(0,r.jsx)(l,{value:w,skin:S}):null]}):u?(0,r.jsxs)("div",{className:c(S.panel.className,p),style:S.panel.style,children:[(0,r.jsx)("label",{htmlFor:k,...S.label,children:"What were you doing?"}),(0,r.jsx)("textarea",{id:k,ref:T,rows:3,maxLength:2e3,value:g,onChange:e=>x(e.target.value),"aria-describedby":"".concat(k,"-hint"),placeholder:"I opened my profile from the feed and this came up.",...S.textarea}),(0,r.jsx)("p",{id:"".concat(k,"-hint"),...S.body,children:W?"This goes to engineering with the page address and the reference.":"Write a line about what you were doing. Send report turns on once there is something to send."}),"refused"===y?(0,r.jsxs)("div",{...S.refusalPanel,children:[(0,r.jsx)("p",{role:"alert",...S.refusalText,children:m}),C?(0,r.jsx)(l,{value:C,skin:S}):null]}):null,(0,r.jsxs)("div",{...S.actions,children:[(0,r.jsx)("button",{type:"button",onClick:B,disabled:!W,className:S.primaryButton.className,style:S.primaryButton.style?{...S.primaryButton.style,opacity:W?1:.6}:void 0,children:"sending"===y?"Sending":"refused"===y?"Try again":"Send report"}),(0,r.jsx)("button",{type:"button",onClick:()=>{f(!1),b("idle")},...S.quietButton,children:"Not now"})]})]}):(0,r.jsx)("div",{className:c(S.openWrap.className,p),style:S.openWrap.style,children:(0,r.jsx)("button",{type:"button",onClick:()=>f(!0),...S.quietButton,children:"Send to engineering"})})}function l(e){let{value:t,skin:n}=e;return(0,r.jsxs)("p",{...n.body,children:["Reference ",(0,r.jsx)("code",{...n.reference,children:t})]})}function c(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")||void 0}let d={panel:{className:"border border-covet-hairline bg-white p-4 text-left"},openWrap:{className:"flex justify-center"},label:{className:"covet-tracker block text-covet-textSecondary"},textarea:{className:"covet-focus-ring mt-2 w-full rounded-covet-chip border border-covet-textTertiary bg-white px-3 py-2 text-covet-body text-covet-textPrimary placeholder:text-covet-textTertiary"},body:{className:"mt-2 text-covet-caption text-covet-textSecondary"},refusalPanel:{className:"mt-3 border-l-[3px] border-covet-error bg-covet-surfaceMuted px-3 py-2"},refusalText:{className:"text-covet-caption text-covet-error"},actions:{className:"mt-3 flex flex-wrap items-center gap-2"},primaryButton:{className:"covet-focus-ring inline-flex min-h-[44px] items-center justify-center rounded-covet-chip bg-covet-greenDeep px-4 py-2.5 text-covet-headline font-medium text-white transition-colors duration-covet-fade hover:bg-covet-greenDeep/90 disabled:opacity-60"},quietButton:{className:"covet-focus-ring inline-flex min-h-[44px] items-center justify-center rounded-covet-chip border border-covet-hairline px-4 py-2 text-covet-headline text-covet-textSecondary transition-colors duration-covet-fade hover:bg-covet-surfaceMuted"},sentPanel:{className:"border-l-[3px] border-covet-greenText bg-covet-surfaceMuted px-4 py-3 text-left"},sentTitle:{className:"text-covet-caption font-semibold text-covet-greenText"},reference:{className:"covet-figures select-all break-all rounded-covet-chip bg-covet-surfaceMuted px-1.5 py-0.5 text-covet-textPrimary"}},p={border:"1px solid #d8d2c4",background:"#fff",padding:16,textAlign:"left"},u={margin:"8px 0 0",color:"#57534e",fontSize:13,lineHeight:1.5},f={minHeight:44,borderRadius:999,padding:"10px 18px",fontWeight:600,fontSize:14,cursor:"pointer"},h={panel:{style:p},openWrap:{style:{textAlign:"center"}},label:{style:{margin:0,display:"block",color:"#57534e",fontSize:12,textTransform:"uppercase"}},textarea:{style:{marginTop:8,width:"100%",boxSizing:"border-box",border:"1px solid #d8d2c4",background:"#fff",color:"#171717",padding:"8px 10px",fontSize:14,fontFamily:"inherit"}},body:{style:u},refusalPanel:{style:{...p,marginTop:12,padding:"8px 12px",borderLeft:"3px solid #b42a2a"}},refusalText:{style:{...u,margin:0,color:"#b42a2a"}},actions:{style:{marginTop:12,display:"flex",flexWrap:"wrap",gap:8}},primaryButton:{style:{...f,border:0,background:"#2f6f3e",color:"#fff"}},quietButton:{style:{...f,border:"1px solid #d8d2c4",background:"transparent",color:"#57534e"}},sentPanel:{style:{...p,padding:"12px 16px",borderLeft:"3px solid #2f6f3e"}},sentTitle:{style:{margin:0,fontSize:13,fontWeight:600,color:"#2f6f3e"}},reference:{style:{userSelect:"all",wordBreak:"break-all",background:"#efece4",color:"#171717",padding:"2px 6px"}}}},13427:(e,t,n)=>{Promise.resolve().then(n.bind(n,28731))},28731:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(95155),o=n(12115),i=n(52619),a=n.n(i),s=n(27122),l=n(11295);function c(e){var t;let{error:n,reset:i}=e;return(0,o.useEffect)(()=>{s.Cp(n)},[n]),(0,r.jsx)("html",{lang:"en",children:(0,r.jsx)("body",{children:(0,r.jsx)("main",{style:{minHeight:"100dvh",display:"grid",placeItems:"center",padding:24,background:"#f7f5ef",color:"#171717",fontFamily:'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif'},children:(0,r.jsxs)("section",{style:{width:"100%",maxWidth:420,borderTop:"1px solid #d8d2c4",borderBottom:"1px solid #d8d2c4",padding:"32px 0",textAlign:"center"},children:[(0,r.jsx)("p",{style:{margin:0,color:"#78716c",fontSize:12,letterSpacing:0,textTransform:"uppercase"},children:"Error"}),(0,r.jsx)("h1",{style:{margin:"8px 0 0",fontSize:28,lineHeight:1.15},children:"Covet didn't load"}),(0,r.jsx)("p",{style:{margin:"10px 0 0",color:"#57534e",lineHeight:1.5},children:"Something on our side stopped while Covet was loading. Nothing you have saved is affected. Try again, or come back in a moment."}),(0,r.jsxs)("div",{style:{marginTop:22,display:"flex",justifyContent:"center",gap:10,flexWrap:"wrap"},children:[(0,r.jsx)("button",{type:"button",onClick:()=>i(),style:{minHeight:44,borderRadius:999,border:0,background:"#2f6f3e",color:"#fff",padding:"10px 18px",fontWeight:600,cursor:"pointer"},children:"Try again"}),(0,r.jsx)(a(),{href:"/",style:{minHeight:44,borderRadius:999,border:"1px solid #d8d2c4",color:"#57534e",padding:"10px 18px",display:"inline-flex",alignItems:"center",textDecoration:"none",fontWeight:600},children:"Home"})]}),n.digest?(0,r.jsxs)("p",{style:{margin:"24px 0 0",color:"#78716c",fontSize:12},children:["Reference:"," ",(0,r.jsx)("code",{style:{userSelect:"all",wordBreak:"break-all"},children:n.digest})]}):null,(0,r.jsx)("div",{style:{marginTop:20},children:(0,r.jsx)(l.C,{variant:"bare",digest:null!=(t=n.digest)?t:null})})]})})})})}},72651:(e,t,n)=>{"use strict";n.d(t,{HC:()=>i,hD:()=>o,y0:()=>a});let r=(()=>{let e="https://covet-app.vercel.app/api";return e&&e.trim().length>0?e.replace(/\/$/,""):"https://covet-app.vercel.app/api"})();
1class o extends Error{constructor(e,t,n){super(t),this.name="ApiError",this.status=e,this.body=n}}async function i(e){if(!e.ok){let t,n=e.statusText||"HTTP ".concat(e.status);try{let r=await e.text();if(t=r,r)try{let e=JSON.parse(r);t=e,(null==e?void 0:e.message)&&(n=e.message)}catch(e){}}catch(e){}throw new o(e.status,n,t)}if(204!==e.status&&(e.headers.get("content-type")||"").includes("application/json"))return await e.json()}function a(e){return e.startsWith("/")||(e="/".concat(e)),"".concat(r).concat(e)}}},e=>{e.O(0,[2619,8441,6766,7358],()=>e(e.s=13427)),_N_E=e.O()}]);
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.