1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8949],{7917:(e,s,r)=>{"use strict";r.r(s),r.d(s,{default:()=>v});var t=r(37876),a=r(14232);r(89099);var o=r(1619),i=r(13734),l=r(87569),m=r(51178),d=r(88992),n=r(71090),c=r(64177),u=r(76751);let h=o.Ik().shape({email:o.Yj().email("The provided email is not valid"),frequency:o.Yj().required("This field is required"),motivation:o.Yj().required("This field is required"),mostUsedFeature:o.Yj().required("This field is required"),improvements:o.Yj().required("This field is required"),needFollowup:o.zM()}),x=({handleCloseForm:e,isFeedbackPage:s=!1})=>{let[r,o]=(0,a.useState)(!1),{register:x,handleSubmit:p,formState:{errors:v},setValue:f}=(0,d.mN)({resolver:(0,n.t)(h)}),[j]=(0,c.n)(u.XH,{onCompleted(s){i.oR.success("Successfully recorded, thanks for your feedback!",{autoClose:3e3}),e()},onError(e){let s=e?.message||"";/too many attempts/i.test(s)?i.oR.error("Too many attempts, try again later"):i.oR.error("Could not send feedback. Please try again."),console.error(e)}});return(0,t.jsxs)("div",{className:`h-[25.5rem] sm:h-full overflow-y-auto p-[1rem] w-[18.75rem] sm:w-[26.25rem] bg-[#F2F2F2] dark:bg-[#131318] rounded-md feedback-form ${s?"mx-auto":""}`,children:[(0,t.jsx)("div",{children:(0,t.jsx)("h2",{className:"text-center",children:"\uD83D\uDC4B\uD83C\uDFFF Help us improve"})}),(0,t.jsxs)("form",{method:"POST",onSubmit:p(e=>{j({variables:{...e,deviceToken:"FROM-WEB"}})}),children:[(0,t.jsx)("input",{type:"hidden",name:"fnid",value:"GvyHFpy11L26dCAIgGQ9rv"}),(0,t.jsx)("input",{type:"hidden",name:"fnop",value:"submit-feedback"}),(0,t.jsxs)("div",{className:"mb-2 sm:mb-3",children:[(0,t.jsx)("div",{className:"text-xs sm:text-base",children:"How often do you use WazoPlus?"}),(0,t.jsx)(m.ks,{type:"text",placeholder:"Everyday/once a week/bi-weekly",className:"max-w-[23.75rem] h-[2.3rem] sm:h-[2.938rem]",...x("frequency")}),(0,t.jsx)(b,{error:v.frequency})]}),(0,t.jsxs)("div",{className:"mb-2 sm:mb-3",children:[(0,t.jsx)("div",{className:"text-xs sm:text-base",children:"What is the motivation to use WazoPlus?"}),(0,t.jsx)("textarea",{rows:2,placeholder:"What problem does it solve for you?",className:"block dark:bg-inherit w-full px-3 py-2 border border-gray-300 rounded resize-none outline-0",...x("motivation")}),(0,t.jsx)(b,{error:v.motivation})]}),(0,t.jsxs)("div",{className:"mb-2 sm:mb-3",children:[(0,t.jsx)("div",{className:"text-xs sm:text-base",children:"What is your most used feature?"}),(0,t.jsx)(m.ks,{placeholder:"Stories/Videos/Newsletters/Sports",type:"text",className:"max-w-[23.75rem] h-[2.3rem] sm:h-[2.938rem]",...x("mostUsedFeature")}),(0,t.jsx)(b,{error:v.mostUsedFeature})]}),(0,t.jsxs)("div",{className:"mb-2 sm:mb-3",children:[(0,t.jsx)("div",{className:"text-xs sm:text-base",children:"What would you like to see improved the most?"}),(0,t.jsx)("textarea",{rows:1,className:"block dark:bg-inherit w-full px-3 py-2 border border-gray-300 rounded resize-none outline-0",...x("improvements")}),(0,t.jsx)(b,{error:v.improvements})]}),(0,t.jsxs)("div",{className:"mb-2 sm:mb-3",children:[(0,t.jsx)("input",{className:"form-check-input appearance-none h-4 w-4 border border-gray-300 rounded-sm bg-white checked:bg-[#3ECB78] checked:border-[#3ECB78] focus:outline-none transition duration-200 mt-1 align-top bg-no-repeat bg-center bg-contain float-left mr-2 cursor-pointer",type:"checkbox",id:"source",onChange:e=>{f("needFollowup",!!e.target.checked),o(e.target.checked)}}),(0,t.jsx)("label",{className:"form-check-label cursor-pointer",htmlFor:"source",children:"Receive personal follow-up to your feedback."})]}),r&&(0,t.jsxs)("div",{className:"mb-2 sm:mb-3",children:[(0,t.jsx)("div",{className:"text-xs sm:text-base",children:"Email"}),(0,t.jsx)(m.ks,{type:"text",placeholder:"Enter your mail",className:"max-w-[23.75rem] h-[2.3rem] sm:h-[2.938rem]",...x("email")}),(0,t.jsx)(b,{error:v.email})]}),(0,t.jsx)("div",{className:"",children:(0,t.jsx)(l.PrimaryButton,{text:"Submit feedback",className:"bg-[#3ECB78] w-full h-[2rem] text-sm text-white mt-[1rem] hover:bg-skin-primary hover:text-[#fff] border-0 border-[#3ECB78]",type:"submit"})})]})]})},b=({error:e})=>(0,t.jsx)("div",{className:"text-red-700 text-[0.9rem]",children:e?.message});var p=r(94380);let v=(0,r(17074).J)(e=>{let{router:s}=e;return(0,t.jsx)(p.O,{currentUrl:s.asPath,children:(0,t.jsx)("div",{children:(0,t.jsx)(x,{handleCloseForm:()=>console.log("hey"),isFeedbackPage:!0})})})})},80178:(e,s,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/feedback",function(){return r(7917)}])}},e=>{e.O(0,[8319,3081,9338,4029,8070,7615,1274,508,6132,3630,1799,7673,8121,8263,8779,563,6203,8405,1680,8313,6335,3238,4908,9290,5019,5367,3269,4269,6321,7366,5030,465,3719,9173,8612,5092,6960,4083,6682,2769,7438,3699,9219,7300,5917,6231,6611,6933,2964,9656,1813,3043,9976,8189,1687,428,369,443,6835,8422,2308,9184,9006,7244,7585,8066,8374,8209,6979,8311,3735,8792],()=>e(e.s=80178)),_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.