1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[80],{930:(e,t,a)=>{"use strict";a.d(t,{Feedback:()=>q});var s=a(5400),r=a(9812),l=a(8601),i=a(5912),n=a(1050),o=a(9082),d=a(4461),c=a(8531),u=a(9952),p=a(7239);let m=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,p.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",a),...r})});m.displayName="Card";let x=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,p.cn)("flex flex-col space-y-1.5 p-6",a),...r})});x.displayName="CardHeader";let h=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("h3",{ref:t,className:(0,p.cn)("text-2xl font-semibold leading-none tracking-tight",a),...r})});h.displayName="CardTitle";let g=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("p",{ref:t,className:(0,p.cn)("text-sm text-muted-foreground",a),...r})});g.displayName="CardDescription";let v=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,p.cn)("p-6 pt-0",a),...r})});v.displayName="CardContent",r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,p.cn)("flex items-center p-6 pt-0",a),...r})}).displayName="CardFooter";var f=a(4668),b=a(2905);function j(e){let{className:t,...a}=e;return(0,s.jsx)(b.b,{"data-slot":"label",className:(0,p.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...a})}var y=a(2745),N=a(5177),w=a(5909),k=a(452);function z(e){let{...t}=e;return(0,s.jsx)(y.bL,{"data-slot":"select",...t})}function C(e){let{...t}=e;return(0,s.jsx)(y.WT,{"data-slot":"select-value",...t})}function S(e){let{className:t,size:a="default",children:r,...l}=e;return(0,s.jsxs)(y.l9,{"data-slot":"select-trigger","data-size":a,className:(0,p.cn)("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-full items-center justify-between gap-2 rounded-md border bg-input-background px-3 py-2 text-sm whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 cursor-pointer",t),...l,children:[r,(0,s.jsx)(y.In,{asChild:!0,children:(0,s.jsx)(N.A,{className:"size-4 opacity-50"})})]})}function _(e){let{className:t,children:a,position:r="popper",...l}=e;return(0,s.jsx)(y.ZL,{children:(0,s.jsxs)(y.UC,{"data-slot":"select-content",className:(0,p.cn)("bg-white text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) w-[var(--radix-select-trigger-width)] min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md py-1 px-2","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,...l,children:[(0,s.jsx)(P,{}),(0,s.jsx)(y.LM,{className:(0,p.cn)("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:a}),(0,s.jsx)(T,{})]})})}function F(e){let{className:t,children:a,...r}=e;return(0,s.jsxs)(y.q7,{"data-slot":"select-item",className:(0,p.cn)("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 mb-1 cursor-pointer",t),...r,children:[(0,s.jsx)("span",{className:"right-2 flex size-3.5 items-center justify-center",children:(0,s.jsx)(y.VF,{children:(0,s.jsx)(w.A,{className:"size-4"})})}),(0,s.jsx)(y.p4,{children:a})]})}function P(e){let{className:t,...a}=e;return(0,s.jsx)(y.PP,{"data-slot":"select-scroll-up-button",className:(0,p.cn)("flex cursor-default items-center justify-center py-1",t),...a,children:(0,s.jsx)(k.A,{className:"size-4"})})}function T(e){let{className:t,...a}=e;return(0,s.jsx)(y.wn,{"data-slot":"select-scroll-down-button",className:(0,p.cn)("flex cursor-default items-center justify-center py-1",t),...a,children:(0,s.jsx)(N.A,{className:"size-4"})})}var R=a(4610),A=a(6157),O=a(6715),I=a(2951);function q(){var e,t;let a=(0,l.useSearchParams)(),p=null!=(t=null==(e=A.Nx[0])?void 0:e.id)?t:"",b=a.get("appId")||"",y=a.get("userId")||"",[N,w]=(0,r.useState)(""),[k,P]=(0,r.useState)(""),[T,q]=(0,r.useState)(""),[D,V]=(0,r.useState)(""),B=b||p,[E,H]=(0,r.useState)(y),[M,L]=(0,r.useState)(""),[$,W]=(0,r.useState)(!1),[U,J]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=localStorage.getItem("webUserInfo");if(e)try{let t=JSON.parse(e);!y&&t.userId&&H(t.userId),t.email&&L(t.email)}catch(e){}},[y]);let Q=async e=>{e.preventDefault();let t=(()=>{let e=D.trim();return N&&e?["Topic: ".concat(N),k?"Page type: ".concat(k):"",T?"Content type: ".concat(T):"","Details: ".concat(e)
1].filter(Boolean).join("\n"):""})();if(!t||!B)return;W(!0);let a=await O.e.saveFeedback(M,t,B,E);if(W(!1),200===a.code){J(!0),c.oR.success("Thanks for reaching out. We will review your message soon."),setTimeout(()=>{w(""),P(""),q(""),V(""),L(""),J(!1)},3e3);return}c.oR.error("Failed to send your message. Please try again later.")},X=!!(B&&N&&D.trim()&&!$);return(0,s.jsxs)("div",{className:"min-h-screen bg-gray-50 p-6",children:[(0,s.jsx)(c.l$,{position:"top-center",richColors:!0}),(0,s.jsxs)("div",{className:"mx-auto max-w-3xl space-y-6",children:[(0,s.jsx)(m,{className:"border-blue-100 bg-gradient-to-br from-blue-50 via-white to-purple-50 shadow-sm",children:(0,s.jsxs)(v,{className:"flex flex-col gap-4 p-6 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("p",{className:"text-sm font-medium text-blue-700",children:"Support contact"}),(0,s.jsx)("p",{className:"text-sm text-slate-600",children:"Include the page type, content type, and any error details so we can investigate faster. Please only request help for media you own, manage, or are authorized to archive."})]}),(0,s.jsxs)("a",{href:I.tr,className:"inline-flex items-center gap-2 rounded-full border border-blue-200 bg-white px-4 py-2 text-sm font-medium text-slate-700 transition-colors hover:border-blue-300 hover:text-blue-700",children:[(0,s.jsx)(i.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{children:I.Te})]})]})}),(0,s.jsxs)(m,{children:[(0,s.jsx)(x,{children:(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"rounded-lg bg-blue-100 p-2",children:(0,s.jsx)(n.A,{className:"h-6 w-6 text-blue-600"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)(h,{children:"Contact support"}),(0,s.jsx)(g,{className:"mt-1",children:"Share your issue, request, or suggestion and the Mass Downloader team will take a look."})]})]})}),(0,s.jsx)(v,{className:"overflow-visible",children:U?(0,s.jsxs)("div",{className:"space-y-4 py-12 text-center",children:[(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-green-100",children:(0,s.jsx)(o.A,{className:"h-8 w-8 text-green-600"})})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"mb-2 text-xl",children:"Message sent successfully."}),(0,s.jsx)("p",{className:"text-sm text-gray-500",children:"Thanks for the details. We will review your feedback as soon as possible."})]})]}):(0,s.jsxs)("form",{onSubmit:Q,className:"space-y-6",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)(j,{htmlFor:"topic",children:["Topic ",(0,s.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,s.jsxs)(z,{value:N,onValueChange:w,children:[(0,s.jsx)(S,{id:"topic",className:"cursor-pointer",children:(0,s.jsx)(C,{placeholder:"Choose the topic that best matches your message"})}),(0,s.jsx)(_,{children:[{value:"Bug report",label:"Bug report"},{value:"Feature request",label:"Feature request"},{value:"Archive quality issue",label:"Archive quality issue"},{value:"Billing or account",label:"Billing or account"},{value:"Installation or setup",label:"Installation or setup"},{value:"Other",label:"Other"}].map(e=>(0,s.jsx)(F,{value:e.value,children:e.label},e.value))})]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(j,{htmlFor:"pageType",children:"Page type"}),(0,s.jsxs)(z,{value:k,onValueChange:P,children:[(0,s.jsx)(S,{id:"pageType",className:"cursor-pointer",children:(0,s.jsx)(C,{placeholder:"Optional"})}),(0,s.jsx)(_,{children:[{value:"Profile page",label:"Profile page"},{value:"Post page",label:"Post page"},{value:"Reels page",label:"Reels page"},{value:"Story viewer",label:"Story viewer"},{value:"Highlight page",label:"Highlight page"},{value:"Collection page",label:"Collection page"},{value:"Other",label:"Other"}].map(e=>(0,s.jsx)(F,{value:e.value,children:e.label},e.value))})]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(j,{htmlFor:"contentType",children:"Content type"}),(0,s.jsxs)(z,{value:T,onValueChange:q,children:[(0,s.jsx)(S,{id:"contentType",className:"cursor-pointer",children:(0,s.jsx)(C,{placeholder:"Optional"})}),(0,s.jsx)(_,{children:[{value:"Photos",label:"Photos"},{value:"Videos",label:"Videos"},{value:"Reels",label:"Reels"},{value:"Story media",label:"Story media"},{value:"Highlight media",label:"Highlight media"},{value:"Mixed media",label:"Mixed media"},{value:"Other",label:"Other"}].map(e=>(0,s.jsx)(F,{value:e.value,children:e.label},e.value))})]})]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)(j,{htmlFor:"details",children:["Details ",(0,s.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,s.jsx)(R.T,{id:"details",value:D,onChange:e=>V(e.target.value),placeholder:"Describe what happened, what you expected, and any error details you noticed.",className:"min-h-32 resize-y"})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(j,{htmlFor:"email",children:"Email (optional)"}),(0,s.jsx)(f.p,{id:"email",type:"email",value:M,onChange:e=>L(e.target.value),placeholder:"Leave your email if you would like a reply."})]}),(0,s.jsx)("div",{className:"flex gap-3",children:(0,s.jsx)(u.$,{type:"submit",className:"flex-1 ".concat(X?"cursor-pointer":""),size:"lg",disabled:!X,children:$?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mr-2 h-4 w-4 animate-spin rounded-full border-2 border-white border-t-transparent"}),"Sending..."]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.A,{className:"mr-2 h-4 w-4"}),"Send feedback"]})})})]})})]})]})]})}},3693:(e,t,a)=>{Promise.resolve().then(a.bind(a,930))},4610:(e,t,a)=>{"use strict";a.d(t,{T:()=>l});var s=a(5400);a(9812);var r=a(7239);function l(e){let{className:t,...a}=e;return(0,s.jsx)("textarea",{"data-slot":"textarea",className:(0,r.cn)("resize-none border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-input-background px-3 py-2 text-base transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),...a})}},4668:(e,t,a)=>{"use strict";a.d(t,{p:()=>l});var s=a(5400);a(9812);var r=a(7239);function l(e){let{className:t,type:a,...l}=e;return(0,s.jsx)("input",{type:a,"data-slot":"input",className:(0,r.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base bg-input-background transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...l})}},7239:(e,t,a)=>{"use strict";a.d(t,{cn:()=>l});var s=a(5381),r=a(883);function l(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,r.QP)((0,s.$)(t))}},9952:(e,t,a)=>{"use strict";a.d(t,{$:()=>o,r:()=>n});var s=a(5400);a(9812);var r=a(6405),l=a(3549),i=a(7239);let n=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background text-foreground hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9 rounded-md"}},defaultVariants:{variant:"default",size:"default"}});function o(e){let{className:t,variant:a,size:l,asChild:o=!1,...d}=e,c=o?r.DX:"button";return(0,s.jsx)(c,{"data-slot":"button",className:(0,i.cn)(n({variant:a,size:l,className:t})),...d})}}},e=>{e.O(0,[157,476,835,541,471,154,294,977],()=>e(e.s=3693)),_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.