1"use strict";(self.rspackChunkemovid_ui=self.rspackChunkemovid_ui||[]).push([["qs"],{Ul(e,t,s){s.r(t);var a=s("X"),r=s("u"),l=s("Le"),n=s("v9A"),c=s("MA"),i=s("Ig"),d=s("S1"),o=s("TG"),m=s("ne"),h=s("cJ"),x=s("x"),u=s("H"),p=s("Yg"),v=s("zQb"),j=s("db"),b=s("in"),A=s("yN"),f=s("Vi"),N=s("E9"),w=s("BcB"),g=s("Z8");t.default=()=>{let e=(0,m.Zp)(),[t,s]=(0,h.ok)(),k=(0,A.A)(),[y,S]=(0,r.useState)(!1),[C,E]=(0,r.useState)(!1),[F,I]=(0,r.useState)(""),[D,_]=(0,r.useState)(),[H,O]=(0,r.useState)(!1);(0,r.useEffect)(()=>{(0,x.V$2)(k)&&(0,x.$EH)(u.xH)&&((0,x.Yby)(u.xH),R())},[k.user]),(0,r.useEffect)(()=>{"start_recording"===t.get("type")&&(s(new URLSearchParams,{replace:!0}),R())},[]);let R=()=>{(0,x.V$2)(k)?z():((0,x.niH)(u.xH,!0),O(!0))},T=()=>{var e,t;return"FEEDBACK from the Emovid site - ".concat((null==k||null==(e=k.user)?void 0:e.name)||(null==k||null==(t=k.user)?void 0:t.email))},z=async()=>{try{var t,s;S(!0);let a=await (0,x.JNw)(null==k||null==(t=k.user)?void 0:t.userId,T(),{Members:[{UserDetails:{email:u.sE}}]},!0);await j.Ay.putFormData("/v1/event/".concat(a.event.id,"/member/add"),{UserDetails:{email:u.sE},member_type:"TO",added_by_id:null==k||null==(s=k.user)?void 0:s.userId},!0),await j.Ay.postFormData("/v1/post/".concat(a.event.CreatorPosts[0].id,"/update"),{send_copy:!1},!1,!0),S(!1),e((0,N.kv)(N.Jh.recordFeedback,a.event.CreatorPosts[0].id))}catch(e){S(!1),f.A.alertableError(e.message)}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.A,{theme:"dark"}),(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)("div",{className:"row p-4 pt-5",children:(0,a.jsxs)("div",{className:"col text-center",children:[(0,a.jsx)("div",{className:"pb-4 h3",children:"Tell the founders what you think"}),(0,a.jsx)("div",{className:"pb-2",children:"Questions, issues, feedback, feature requests -- we want it ALL"}),(0,a.jsx)("button",{className:"btn btn-primary mt-5 mb-3",onClick:R,children:"Record Feedback"})]})}),(0,a.jsx)(l.A,{children:"OR"}),(0,a.jsx)("div",{className:"row p-5",children:(0,a.jsxs)("div",{className:"col text-center",children:[(0,a.jsx)("div",{className:"mb-2",children:"Describe it with text"}),(0,a.jsx)("textarea",{rows:6,className:"w-100 p-2 rounded",placeholder:"Start typing here ...",onChange:e=>{I(e.target.value)},style:{maxWidth:"500px",borderColor:"white"},"data-enable-grammarly":"false"}),!D&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"p-2 mt-3",children:"Attach a Screenshot"}),(0,a.jsx)("div",{className:"bordered-container d-flex clickable d-flex justify-content-center align-items-center m-auto",onClick:()=>E(!0),style:{maxWidth:"300px"},children:(0,a.jsx)("div",{className:"text-truncate p-2",children:"Click to attach"})})]}),D&&(0,a.jsx)(w.A,{selectedImage:D,onRemoveImage:()=>_(null)}),(0,a.jsx)("button",{className:"btn btn-primary mt-5",disabled:!F,onClick:()=>{var t;S(!0);let s=new FormData;s.append("message",F),s.append("attachment",D),j.Ay.postFormData("/v1/user/".concat((null==(t=k.user)?void 0:t.userId)||"","/feedback"),s,!0,!0).then(()=>{S(!1),e(N.Jh.feedbackSent)}).catch(e=>{S(!1),f.A.alertableError("Something went wrong, please try again",e)})},children:"Send"})]})}),(0,a.jsx)(l.A,{children:"OR"}),(0,a.jsx)("div",{className:"row p-5 pt-4",children:(0,a.jsx)("div",{className:"col text-center",children:(0,a.jsxs)("div",{children:["Send an email to:Â ",(0,a.jsx)(n.A,{href:"mailto:".concat(u.sE,"?subject=").concat(T()),children:u.sE})]})})}),(0,a.jsx)(p.A,{isOpen:C,onClose:()=>E(!1),children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)("h4",{className:"text-dark m-auto pb-3 text-white text-center",children:"Attach a Screenshot"}),(0,a.jsx)(c.A,{className:"close-icon text-white",onClick:()=>E(!1),children:(0,a.jsx)(o.A,{"data-testid":"CloseIcon",sx:{fontSize:30}})}),(0,a.jsx)(v.A,{onSelectFile:e=>{_(e),E(!1)},selectedFile:D})]})}),(0,a.jsx)(i.A,{sx:{color:"#fff",zIndex:e=>e.zIndex.modal+1},open:y,children:(0,a.jsx)(d.A,{color:"inherit"})})]}),(0,a.jsx)(p.A,{isOpen:H,onClose:()=>O(!1),className:"login-popup",children:(0,a.jsx)(g.A,{handleClose:()=>{O(!1)},title:"To record please...",dividerText:"OR, continue with e-mail",disableSignup:!1})})]})}}}]);
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.