1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7392],{1260:(e,o,t)=>{t.d(o,{cn:()=>n,ev:()=>r,fw:()=>a,uo:()=>c});let r="userAuthData",a="userInfo",n="gclid",c="lastActiveAt"},4575:(e,o,t)=>{t.d(o,{bq:()=>m,eb:()=>x,gC:()=>p,l6:()=>d,mi:()=>f,yv:()=>u});var r=t(65392),a=t(24252),n=t(66466),c=t(6755),l=t(4050),s=t(49367),i=t(19964);let d=n.bL;n.YJ;let u=n.WT,m=a.forwardRef((e,o)=>{let{className:t,children:a,...l}=e;return(0,r.jsxs)(n.l9,{ref:o,className:(0,i.cn)("\n flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-gray-200 focus:border-gray-900 bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background\n data-placeholder:text-muted-foreground focus:ring-0 focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-ring focus:outline-none focus-visible:outline-none text-gray-900 \n disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 cursor-pointer\n ",t),...l,children:[a,(0,r.jsx)(n.In,{asChild:!0,children:(0,r.jsx)(c.A,{className:"h-4 w-4 opacity-50"})})]})});m.displayName=n.l9.displayName;let h=a.forwardRef((e,o)=>{let{className:t,...a}=e;return(0,r.jsx)(n.PP,{ref:o,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",t),...a,children:(0,r.jsx)(l.A,{className:"h-4 w-4"})})});h.displayName=n.PP.displayName;let y=a.forwardRef((e,o)=>{let{className:t,...a}=e;return(0,r.jsx)(n.wn,{ref:o,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",t),...a,children:(0,r.jsx)(c.A,{className:"h-4 w-4"})})});y.displayName=n.wn.displayName;let p=a.forwardRef((e,o)=>{let{className:t,children:a,position:c="popper",...l}=e;return(0,r.jsx)(n.ZL,{children:(0,r.jsxs)(n.UC,{ref:o,className:(0,i.cn)("\n bg-white border-gray-200 relative z-[60] max-h-96 min-w-32 overflow-hidden rounded-md border text-popover-foreground shadow-md data-[state=open]:animate-in\n 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\n 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\n ","popper"===c&&"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:c,...l,children:[(0,r.jsx)(h,{}),(0,r.jsx)(n.LM,{className:(0,i.cn)("p-1","popper"===c&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),(0,r.jsx)(y,{})]})})});p.displayName=n.UC.displayName,a.forwardRef((e,o)=>{let{className:t,...a}=e;return(0,r.jsx)(n.JU,{ref:o,className:(0,i.cn)("px-2 py-1.5 text-sm font-semibold",t),...a})}).displayName=n.JU.displayName;let x=a.forwardRef((e,o)=>{let{className:t,children:a,...c}=e;return(0,r.jsxs)(n.q7,{ref:o,className:(0,i.cn)("\n relative flex w-full bg-white text-gray-900 cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none hover:bg-gray-100 \n focus:bg-gray-100 focus:text-gray-900 data-disabled:pointer-events-none data-disabled:opacity-50\n ",t),...c,children:[(0,r.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(n.VF,{children:(0,r.jsx)(s.A,{className:"h-4 w-4"})})}),(0,r.jsx)(n.p4,{children:a})]})});x.displayName=n.q7.displayName;let f=a.forwardRef((e,o)=>{let{className:t,...a}=e;return(0,r.jsx)(n.wv,{ref:o,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",t),...a})});f.displayName=n.wv.displayName},10663:(e,o,t)=>{t.d(o,{J:()=>c});var r=t(65392);t(24252);var a=t(82087),n=t(19964);function c(e){let{className:o,...t}=e;return(0,r.jsx)(a.b,{"data-slot":"label",className:(0,n.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",o),...t})}},25011:(e,o,t)=>{t.r(o),t.d(o,{TalkToExpertForm:()=>H,default:()=>$});var r=t(65392),a=t(24252);let n=JSON.parse('[{"country":"Afghanistan","code":"+93"},{"country":"Albania","code":"+355"},{"country":"Algeria","code":"+213"},{"country":"American Samoa","code":"+1-684"},{"country":"Andorra","code":"+376"},{"country":"Angola","code":"+244"},{"country":"Anguilla","code":"+1-264"},{"country":"Antigua and Barbuda","code":"+1-268"},{"country":"Argentina","code":"+54"},{"country":"Armenia","code":"+374"},{"country":"Aruba","code":"+297"},{"country":"Australia","code":"+61"},{"country":"Austria","code":"+43"},{"country":"Azerbaijan","code":"+994"},{"country":"Bahamas","code":"+1-242"},{"country":"Bahrain","code":"+973"},{"country":"Bangladesh","code":"+880"},{"country":"Barbados","code":"+1-246"},{"country":"Belarus","code":"+375"},{"country":"Belgium","code":"+32"},{"country":"Belize","code":"+501"},{"country":"Benin","code":"+229"},{"country":"Bermuda","code":"+1-441"},{"country":"Bhutan","code":"+975"},{"country":"Bolivia","code":"+591"},{"country":"Bosnia and Herzegovina","code":"+387"},{"country":"Botswana","code":"+267"},{"country":"Brazil","code":"+55"},{"country":"British Virgin Islands","code":"+1-284"},{"country":"Brunei","code":"+673"},{"country":"Bulgaria","code":"+359"},{"country":"Burkina Faso","code":"+226"},{"country":"Burundi","code":"+257"},{"country":"Cambodia","code":"+855"},{"country":"Cameroon","code":"+237"},{"country":"Canada","code":"+1"},{"country":"Cape Verde","code":"+238"},{"country":"Cayman Islands","code":"+1-345"},{"country":"Central African Republic","code":"+236"},{"country":"Chad","code":"+235"},{"country":"Chile","code":"+56"},{"country":"China","code":"+86"},{"country":"Colombia","code":"+57"},{"country":"Comoros","code":"+269"},{"country":"Congo","code":"+242"},{"country":"Costa Rica","code":"+506"},{"country":"Croatia","code":"+385"},{"country":"Cuba","code":"+53"},{"country":"Cura\xe7ao","code":"+599"},{"country":"Cyprus","code":"+357"},{"country":"Czech Republic","code":"+420"},{"country":"Denmark","code":"+45"},{"country":"Djibouti","code":"+253"},{"country":"Dominica","code":"+1-767"},{"country":"Dominican Republic","code":"+1-809"},{"country":"Ecuador","code":"+593"},{"country":"Egypt","code":"+20"},{"country":"El Salvador","code":"+503"},{"country":"Equatorial Guinea","code":"+240"},{"country":"Eritrea","code":"+291"},{"country":"Estonia","code":"+372"},{"country":"Eswatini","code":"+268"},{"country":"Ethiopia","code":"+251"},{"country":"Falkland Islands","code":"+500"},{"country":"Faroe Islands","code":"+298"},{"country":"Fiji","code":"+679"},{"country":"Finland","code":"+358"},{"country":"France","code":"+33"},{"country":"Gabon","code":"+241"},{"country":"Gambia","code":"+220"},{"country":"Georgia","code":"+995"},{"country":"Germany","code":"+49"},{"country":"Ghana","code":"+233"},{"country":"Gibraltar","code":"+350"},{"country":"Greece","code":"+30"},{"country":"Greenland","code":"+299"},{"country":"Grenada","code":"+1-473"},{"country":"Guam","code":"+1-671"},{"country":"Guatemala","code":"+502"},{"country":"Guinea","code":"+224"},{"country":"Guinea-Bissau","code":"+245"},{"country":"Guyana","code":"+592"},{"country":"Haiti","code":"+509"},{"country":"Honduras","code":"+504"},{"country":"Hong Kong","code":"+852"},{"country":"Hungary","code":"+36"},{"country":"Iceland","code":"+354"},{"country":"India","code":"+91"},{"country":"Indonesia","code":"+62"},{"country":"Iran","code":"+98"},{"country":"Iraq","code":"+964"},{"country":"Ireland","code":"+353"},{"country":"Israel","code":"+972"},{"country":"Italy","code":"+39"},{"country":"Jamaica","code":"+1-876"},{"country":"Japan","code":"+81"},{"country":"Jordan","code":"+962"},{"country":"Kazakhstan","code":"+7"},{"country":"Kenya","code":"+254"},{"country":"Kiribati","code":"+686"},{"country":"Kuwait","code":"+965"},{"country":"Kyrgyzstan","code":"+996"},{"country":"Laos","code":"+856"},{"country":"Latvia","code":"+371"},{"country":"Lebanon","code":"+961"},{"country":"Lesotho","code":"+266"},{"country":"Liberia","code":"+231"},{"country":"Libya","code":"+218"},{"country":"Liechtenstein","code":"+423"},{"country":"Lithuania","code":"+370"},{"country":"Luxembourg","code":"+352"},{"country":"Macau","code":"+853"},{"country":"Madagascar","code":"+261"},{"country":"Malawi","code":"+265"},{"country":"Malaysia","code":"+60"},{"country":"Maldives","code":"+960"},{"country":"Mali","code":"+223"},{"country":"Malta","code":"+356"},{"country":"Marshall Islands","code":"+692"},{"country":"Mauritania","code":"+222"},{"country":"Mauritius","code":"+230"},{"country":"Mexico","code":"+52"},{"country":"Micronesia","code":"+691"},{"country":"Moldova","code":"+373"},{"country":"Monaco","code":"+377"},{"country":"Mongolia","code":"+976"},{"country":"Montenegro","code":"+382"},{"country":"Morocco","code":"+212"},{"country":"Mozambique","code":"+258"},{"country":"Myanmar","code":"+95"},{"country":"Namibia","code":"+264"},{"country":"Nauru","code":"+674"},{"country":"Nepal","code":"+977"},{"country":"Netherlands","code":"+31"},{"country":"New Zealand","code":"+64"},{"country":"Nicaragua","code":"+505"},{"country":"Niger","code":"+227"},{"country":"Nigeria","code":"+234"},{"country":"North Korea","code":"+850"},{"country":"North Macedonia","code":"+389"},{"country":"Norway","code":"+47"},{"country":"Oman","code":"+968"},{"country":"Pakistan","code":"+92"},{"country":"Panama","code":"+507"},{"country":"Papua New Guinea","code":"+675"},{"country":"Paraguay","code":"+595"},{"country":"Peru","code":"+51"},{"country":"Philippines","code":"+63"},{"country":"Poland","code":"+48"},{"country":"Portugal","code":"+351"},{"country":"Puerto Rico","code":"+1-787"},{"country":"Qatar","code":"+974"},{"country":"Romania","code":"+40"},{"country":"Russia","code":"+7"},{"country":"Rwanda","code":"+250"},{"country":"Saudi Arabia","code":"+966"},{"country":"Senegal","code":"+221"},{"country":"Serbia","code":"+381"},{"country":"Singapore","code":"+65"},{"country":"Slovakia","code":"+421"},{"country":"Slovenia","code":"+386"},{"country":"Somalia","code":"+252"},{"country":"South Africa","code":"+27"},{"country":"South Korea","code":"+82"},{"country":"Spain","code":"+34"},{"country":"Sri Lanka","code":"+94"},{"country":"Sudan","code":"+249"},{"country":"Suriname","code":"+597"},{"country":"Sweden","code":"+46"},{"country":"Switzerland","code":"+41"},{"country":"Syria","code":"+963"},{"country":"Taiwan","code":"+886"},{"country":"Tajikistan","code":"+992"},{"country":"Tanzania","code":"+255"},{"country":"Thailand","code":"+66"},{"country":"Timor-Leste","code":"+670"},{"country":"Togo","code":"+228"},{"country":"Tonga","code":"+676"},{"country":"Trinidad and Tobago","code":"+1-868"},{"country":"Tunisia","code":"+216"},{"country":"Turkey","code":"+90"},{"country":"Turkmenistan","code":"+993"},{"country":"Uganda","code":"+256"},{"country":"Ukraine","code":"+380"},{"country":"United Arab Emirates","code":"+971"},{"country":"United Kingdom","code":"+44"},{"country":"United States","code":"+1"},{"country":"Uruguay","code":"+598"},{"country":"Uzbekistan","code":"+998"},{"country":"Vanuatu","code":"+678"},{"country":"Venezuela","code":"+58"},{"country":"Vietnam","code":"+84"},{"country":"Yemen","code":"+967"},{"country":"Zambia","code":"+260"},{"country":"Zimbabwe","code":"+263"}]'),c=n.map((e,o)=>({id:o,label:e.country,value:e.code}));Object.values(n.reduce((e,o)=>(e[o.code]?e[o.code].label="".concat(e[o.code].label,"/").concat(o.country):e[o.code]={id:o.c
1ode,label:o.country,value:o.code},e),{}));var l=t(59341),s=t(98746),i=t(20816),d=t(20465),u=t(73199),m=t(97555),h=t(55138),y=t(92276),p=t(96577),x=t(19964);function f(e){let{className:o,...t}=e;return(0,r.jsx)(y.uB,{"data-slot":"command",className:(0,x.cn)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",o),...t})}function b(e){let{className:o,...t}=e;return(0,r.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,r.jsx)(p.A,{className:"size-4 shrink-0 opacity-50"}),(0,r.jsx)(y.uB.Input,{"data-slot":"command-input",className:(0,x.cn)("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",o),...t})]})}function g(e){let{className:o,...t}=e;return(0,r.jsx)(y.uB.List,{"data-slot":"command-list",className:(0,x.cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto always-show-scrollbar",o),...t})}function v(e){let{...o}=e;return(0,r.jsx)(y.uB.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...o})}function j(e){let{className:o,...t}=e;return(0,r.jsx)(y.uB.Group,{"data-slot":"command-group",className:(0,x.cn)("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",o),...t})}function w(e){let{className:o,...t}=e;return(0,r.jsx)(y.uB.Item,{"data-slot":"command-item",className:(0,x.cn)("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),...t})}t(60995);var N=t(39262),_=t(85004),B=t(10663);let k=m.Op,S=a.createContext({}),C=e=>{let{...o}=e;return(0,r.jsx)(S.Provider,{value:{name:o.name},children:(0,r.jsx)(m.xI,{...o})})},A=()=>{let e=a.useContext(S),o=a.useContext(I),{getFieldState:t}=(0,m.xW)(),r=(0,m.lN)({name:e.name}),n=t(e.name,r);if(!e)throw Error("useFormField should be used within <FormField>");let{id:c}=o;return{id:c,name:e.name,formItemId:"".concat(c,"-form-item"),formDescriptionId:"".concat(c,"-form-item-description"),formMessageId:"".concat(c,"-form-item-message"),...n}},I=a.createContext({});function P(e){let{className:o,...t}=e,n=a.useId();return(0,r.jsx)(I.Provider,{value:{id:n},children:(0,r.jsx)("div",{"data-slot":"form-item",className:(0,x.cn)("grid gap-2",o),...t})})}function M(e){let{className:o,...t}=e,{error:a,formItemId:n}=A();return(0,r.jsx)(B.J,{"data-slot":"form-label","data-error":!!a,className:(0,x.cn)("data-[error=true]:text-destructive",o),htmlFor:n,...t})}function R(e){let{...o}=e,{error:t,formItemId:a,formDescriptionId:n,formMessageId:c}=A();return(0,r.jsx)(_.DX,{"data-slot":"form-control",id:a,"aria-describedby":t?"".concat(n," ").concat(c):"".concat(n),"aria-invalid":!!t,...o})}function O(e){var o;let{className:t,...a}=e,{error:n,formMessageId:c}=A(),l=n?String(null!=(o=null==n?void 0:n.message)?o:""):a.children;return l?(0,r.jsx)("p",{"data-slot":"form-message",id:c,className:(0,x.cn)("text-destructive text-sm",t),...a,children:l}):null}var V=t(4575),z=t(91935),E=t(50185),L=t(44773),T=t(2262),D=t(49367);function F(e){let{className:o,...t}=e;return(0,r.jsx)(T.bL,{"data-slot":"checkbox",className:(0,x.cn)("peer border-input data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",o),...t,children:(0,r.jsx)(T.C1,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:(0,r.jsx)(D.A,{className:"size-3.5"})})})}var Y=t(47579),G=t(75028),q=t(12901),U=t(25984),J=t(60369),K=t(27015),W=t(5021);function H(e){let{onSuccess:o,privacyPolicyText:t,showSubmitButton:n=!0,className:y}=e,p=(0,i.Ym)(),x=(0,J.nR)(p),_=(0,d.c)("ipcook.common.talkToExpert"),[B,S]=(0,a.useState)(""),[A,I]=(0,a.useState)(""),[T,H]=(0,a.useState)(!1),[$,Z]=(0,a.useState)(!1),[Q,X]=(0,a.useState)(!1),ee=(0,a.useMemo)(()=>c.map(e=>({...e,country:e.label,code:e.value,label:"".concat(e.label," ").concat(e.value),value:e.label})),[]),eo=(0,a.useMemo)(()=>[{label:_("form.enterpriseSolutions"),value:"Enterprise Solutions"},{label:_("form.marketingPartnership"),value:"Marketing & Partnership"},{label:_("form.referrerApplication"),value:"Referrer Application"},{label:_("form.productSupport"),value:"Product Support"},{label:_("form.other"),value:"Other"}],[_]),et=s.Ik({full_name:s.Yj().min(1,{error:_("form.fullNameRequired")}),brand_name:s.Yj().min(1,{error:_("form.brandNameRequired")}),official_website:s.Yj().min(1,{error:_("form.officialWebsiteRequired")}),email:s.Yj().min(1,{error:_("form.requiredError")}).email({error:_("form.emailFormatError")}),area:s.Yj().optional(),country_code:s.Yj().optional(),phone:s.Yj().optional(),social_network:s.Yj().optional(),social_area:s.Yj().optional(),social_code:s.Yj().optional(),social_phone:s.Yj().optional(),why_reach_out:s.YO(s.Yj()).min(1,{error:_("form.whyReachOutRequired")}),why_reach_out_other:s.Yj().optional(),content:s.Yj().optional()}).superRefine((e,o)=>{var t;!e.why_reach_out.includes("Other")||(null==(t=e.why_reach_out_other)?void 0:t.trim())||o.addIssue({code:"custom",path:["why_reach_out_other"],message:_("form.otherRequired")})}),er=(0,m.mN)({resolver:(0,u.u)(et),mode:"onChange",defaultValues:{full_name:"",brand_name:"",official_website:"",email:"",area:"",country_code:"",phone:"",social_network:"",social_area:"",social_code:"",social_phone:"",why_reach_out:[],why_reach_out_other:"",content:""}}),ea=er.watch("social_network"),en=er.watch("why_reach_out").includes("Other"),ec=er.watch("why_reach_out_other"),el=en&&!(null==ec?void 0:ec.trim()),[es,ei]=(0,a.useState)([{id:1,label:"WhatsApp",value:"whatsapp"},{id:2,label:"Telegram",value:"telegram"}]),[ed,eu]=(0,a.useState)(""),em=()=>{es.find(e=>e.value===ed)||""===ed||(ei(e=>[...e,{id:e.length+1,label:ed,value:ed}]),eu(""))},eh=er.formState.isSubmitting,ey=async()=>{let{full_name:e,brand_name:t,official_website:r,email:a,area:n,country_code:c,phone:l,social_network:s,social_code:i,social_phone:d,why_reach_out:u,why_reach_out_other:m,content:h}=er.getValues(),y="".concat(c?"".concat(c," - "):"").concat(l?"".concat(l):""),p=s&&"whatsapp"!==s&&"telegram"!==s,x="".concat(s?"".concat(s," : "):"").concat(!p&&i?"".concat(i," - "):"").concat(d||""),f=u.map(e=>"Other"===e&&m?"".concat(e,": ").concat(m):e).join(", ");U.A.post("".concat(J.RF,"/api/page/talktoexpert"),{full_name:e,official_website:r,company_name:t,company_email:a,area:n,phone:y,social_network:x,social_type:p?"other":s,why_reach_out:f,content:h}).then(e=>{let{data:t}=e,{code:r,msg:a}=t;0===r?(Y.oR.success(_("submitSuccess")),er.reset(),null==o||o()):Y.oR.error(a)}).catch(e=>{})};(0,a.useEffect)(()=>{let e=(0,K.me)();(null==e?void 0:e.email)&&er.setValue("email",e.email)},[er]);let ep=(0,r.jsx)("p",{className:"text-[.8125rem] text-[#5B5E65]",children:_.rich("privacyPolicy",{policyLink:e=>(0,r.jsx)(h.N_,{href:"".concat(x,"/privacy"),target:"_blank",className:"text-[#1BB495] underline",children:e}),customerServiceLink:e=>(0,r.jsx)("button",{type:"button",onClick:()=>(0,W.af)("chatOpen"),className:"text-[#1BB495] underline bg-transparent border-0 p-0 cursor-pointer",children:e})})});return(0,r.jsx)(k,{...er,children:(0,r.jsxs)("form",{className:(0,l.A)("space-y-8",y),onSubmit:er.handleSubmit(ey),children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 items-start",children:[(0,r.jsx)(C,{control:er.control,name:"brand_name",render:e=>{let{field:o}=e;return(0,r.jsxs)(P,{children:[(0,r.jsxs)(M,{className:"text-base font-normal text-black data-[error=true]:text-black",children:[(0,r.jsx)("span",{children:_("form.brandName")}),(0,r.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,r.jsx)(R,{children:(0,r.jsx)(E.p,{...o,className:"h-10 pr-4 focus-visible:border-[#1BB495] focus-visible:ring-[#1BB495] focus-visible:ring-1"})}),(0,r.jsx)(O,{})]})}}),(0,r.jsx)(C,{control:er.control,name:"official_website",render:e=>{let{field:o}=e;return(0,r.jsxs)(P,{children:[(0,r.jsxs)(M,{className:"text-base font-normal text-black data-[error=true]:text-black",children:[(0,r.jsx)("span",{children:_("form.officialWebsite")}),(0,r.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,r.jsx)(R,{children:(0,r.jsx)(E.p,{...o,className:"h-10 pr-4 focus-visible:border-[#1BB495] focus-visible:ring-[#1BB495] focus-visible:ring-1"})}),(0,r.jsx)(O,{})]})}})]}),(0,r.jsxs)("div",{className:"-mt-5",children:[_.rich("tips",{strong:e=>(0,r.jsx)("strong",{children:e})}),"."]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 items-start",children:[(0,r.jsx)(C,{control:er.control,name:"full_name",render:e=>{let{field:o}=e;return(0,r.jsxs)(P,{children:[(0,r.jsxs)(M,{className:"text-base font-normal text-black data-[error=true]:text-black",children:[(0,r.jsx)("span",{children:_("form.fullName")}
1),(0,r.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,r.jsx)(R,{children:(0,r.jsx)(E.p,{...o,className:"h-10 pr-4 focus-visible:border-[#1BB495] focus-visible:ring-[#1BB495] focus-visible:ring-1"})}),(0,r.jsx)(O,{})]})}}),(0,r.jsx)(C,{control:er.control,name:"email",render:e=>{let{field:o}=e;return(0,r.jsxs)(P,{children:[(0,r.jsxs)(M,{className:"text-base font-normal text-black data-[error=true]:text-black",children:[(0,r.jsx)("span",{children:_("form.email")}),(0,r.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,r.jsx)(R,{children:(0,r.jsx)(E.p,{...o,type:"email",className:"h-10 pr-4 focus-visible:border-[#1BB495] focus-visible:ring-[#1BB495] focus-visible:ring-1"})}),(0,r.jsx)(O,{})]})}})]}),(0,r.jsx)(C,{control:er.control,name:"why_reach_out",render:e=>{var o,t,a;let{field:n}=e,c=!!((null==(o=er.formState.errors.why_reach_out)?void 0:o.message)||(null==(t=er.formState.errors.why_reach_out_other)?void 0:t.message));return(0,r.jsxs)(P,{children:[(0,r.jsxs)(M,{className:"text-base font-normal text-black data-[error=true]:text-black",children:[(0,r.jsx)("span",{children:_("form.whyReachOut")}),(0,r.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,r.jsx)(R,{children:(0,r.jsxs)(N.AM,{open:Q,onOpenChange:e=>{X(e),e||er.trigger(["why_reach_out","why_reach_out_other"])},modal:!0,children:[(0,r.jsx)(N.Wv,{asChild:!0,children:(0,r.jsxs)(z.$,{type:"button",variant:"outline",role:"combobox","aria-expanded":Q,"aria-invalid":c,className:(0,l.A)("w-full min-w-0 max-w-full shrink justify-between overflow-hidden h-10 pr-4 focus-visible:border-[#1BB495] focus-visible:ring-[#1BB495] focus-visible:ring-1 rounded-md",c&&"border-destructive"),children:[(0,r.jsx)("span",{className:(0,l.A)("min-w-0 flex-1 truncate text-left",!n.value.length&&"text-[#898C92]"),children:n.value.length?n.value.map(e=>{var o;return(null==(o=eo.find(o=>o.value===e))?void 0:o.label)||e}).join(", "):_("form.selectPlaceholder")}),(0,r.jsx)(G.A,{className:(0,l.A)("shrink-0",n.value.length?"text-[#1BB495]":"opacity-50")})]})}),(0,r.jsx)(N.hl,{className:"w-[var(--radix-popover-trigger-width)] max-w-[calc(100vw-2rem)] p-0",onOpenAutoFocus:e=>e.preventDefault(),children:(0,r.jsx)(f,{children:(0,r.jsxs)(g,{children:[(0,r.jsx)(j,{children:eo.map(e=>{let o=n.value.includes(e.value);return(0,r.jsxs)(w,{value:e.label,onSelect:()=>(e=>{let o=er.getValues("why_reach_out"),t=o.includes(e)?o.filter(o=>o!==e):[...o,e];er.setValue("why_reach_out",t,{shouldDirty:!0,shouldValidate:!0}),t.includes("Other")||er.setValue("why_reach_out_other","",{shouldDirty:!0,shouldValidate:!0})})(e.value),className:(0,l.A)("gap-2",o&&"bg-white text-[#1BB495] data-[selected=true]:bg-white data-[selected=true]:text-[#1BB495] [&_svg]:!text-white"),children:[(0,r.jsx)(F,{checked:o,className:"data-[state=checked]:border-[#1BB495] data-[state=checked]:bg-[#1BB495] data-[state=checked]:text-white [&_svg]:!text-white"}),(0,r.jsx)("span",{children:e.label})]},e.value)})}),(0,r.jsx)("div",{className:"px-3 pb-6 pt-1",children:(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(L.T,{value:ec,disabled:!en,rows:4,maxLength:300,placeholder:_("form.otherPlaceholder"),onChange:e=>er.setValue("why_reach_out_other",e.target.value,{shouldDirty:!0,shouldValidate:!0}),onKeyDown:e=>e.stopPropagation(),"aria-invalid":el,className:(0,l.A)("min-h-12 max-h-20 text-sm focus-visible:border-[#1BB495] focus-visible:ring-[#1BB495] focus-visible:ring-1",el&&"border-destructive")}
1),(0,r.jsxs)("span",{className:"absolute -bottom-5 right-0 text-xs text-gray-400 bg-transparent px-1",children:[(null==ec?void 0:ec.length)||0,"/300"]})]})})]})})})]})}),(0,r.jsx)(O,{}),(null==(a=er.formState.errors.why_reach_out_other)?void 0:a.message)&&(0,r.jsx)("p",{className:"text-sm text-destructive",children:er.formState.errors.why_reach_out_other.message})]})}}),(0,r.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[(0,r.jsx)(C,{control:er.control,name:"area",render:e=>{var o;let{field:t}=e;return(0,r.jsxs)(P,{children:[(0,r.jsx)(M,{className:"text-base font-normal text-black data-[error=true]:text-black",children:_("form.phoneNumber")}),(0,r.jsx)(R,{children:(0,r.jsxs)(N.AM,{open:T,onOpenChange:e=>{H(e),e||S("")},modal:!0,children:[(0,r.jsx)(N.Wv,{asChild:!0,children:(0,r.jsxs)(z.$,{variant:"outline",role:"combobox","aria-expanded":T,className:"w-full justify-between h-10 pr-4 focus-visible:border-[#1BB495] focus-visible:ring-[#1BB495] focus-visible:ring-1 rounded-md",children:[(0,r.jsx)("span",{className:"truncate",children:t.value?(null==(o=ee.find(e=>e.country===t.value))?void 0:o.label)||t.value:_("form.selectPlaceholder")}),(0,r.jsx)(G.A,{className:"opacity-50"})]})}),(0,r.jsx)(N.hl,{className:"w-full p-0",onOpenAutoFocus:e=>e.preventDefault(),children:(0,r.jsxs)(f,{children:[(0,r.jsx)(b,{placeholder:_("form.searchCountryOrArea"),className:"h-9",value:B,onValueChange:S}),(0,r.jsxs)(g,{children:[(0,r.jsx)(v,{children:_("form.areaError")}),(0,r.jsx)(j,{children:ee.map(e=>(0,r.jsxs)(w,{value:e.label,onSelect:()=>{t.onChange(e.country),er.setValue("country_code",e.code,{shouldDirty:!0,shouldValidate:!0}),H(!1)},children:[e.label,(0,r.jsx)(D.A,{className:(0,l.A)("ml-auto",t.value===e.country?"opacity-100":"opacity-0")})]},e.id))})]})]})})]})}),(0,r.jsx)(O,{})]})}}),(0,r.jsx)(C,{control:er.control,name:"phone",render:e=>{let{field:o}=e;return(0,r.jsxs)(P,{children:[(0,r.jsx)(M,{className:"hidden! lg:block! text-base font-normal text-black invisible data-[error=true]:text-black",children:_("form.phoneNumber")}),(0,r.jsx)(R,{children:(0,r.jsx)(E.p,{...o,type:"tel",onChange:e=>{e.target.value=e.target.value.replace(/[^\d\s+\-]/g,""),o.onChange(e)},className:"h-10 pr-4 focus-visible:border-[#1BB495] focus-visible:ring-[#1BB495] focus-visible:ring-1"})}),(0,r.jsx)(O,{})]})}})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-[130px_160px_auto] gap-y-4 lg:gap-y-0 lg:gap-x-4",children:[(0,r.jsx)(C,{control:er.control,name:"social_network",render:e=>{let{field:o}=e;return(0,r.jsxs)(P,{children:[(0,r.jsx)(M,{className:"text-base font-normal text-black data-[error=true]:text-black",children:_("form.socialNetwork")}),(0,r.jsx)(R,{children:(0,r.jsxs)(V.l6,{onValueChange:e=>{o.onChange(e),"whatsapp"!==e&&"telegram"!==e&&(er.setValue("social_area",""),er.setValue("social_code",""))},value:o.value,children:[(0,r.jsx)(V.bq,{className:"w-full h-10! focus-visible:border-[#1BB495] focus-visible:ring-[#1BB495] focus-visible:ring-1",children:(0,r.jsx)(V.yv,{placeholder:_("form.selectPlaceholder")})}),(0,r.jsxs)(V.gC,{children:[es.map(e=>(0,r.jsx)(V.eb,{value:e.value,children:e.label},e.id)),(0,r.jsx)(V.mi,{}),(0,r.jsxs)("div",{className:"p-1 flex items-center space-x-1",children:[(0,r.jsx)(E.p,{value:ed,onChange:e=>eu(e.target.value),onKeyDown:e=>e.stopPropagation(),placeholder:_("form.addCustomSocialNetwork"),className:"w-full placeholder:text-xs h-10 pr-4 focus-visible:border-[#1BB495] focus-visible:ring-[#1BB495] focus-visible:ring-1"}),(0,r.jsx)(z.$,{type:"button",variant:"ghost",className:"w-8 flex items-center justify-center text-xs font-normal",onClick:em,children:(0,r.jsx)(q.A,{className:""})})]})]})]})}),(0,r.jsx)(O,{})]})}}),("whatsapp"===ea||"telegram"===ea)&&(0,r.jsx)(C,{control:er.control,name:"social_area",render:e=>{var o;let{field:t}=e;return(0,r.jsxs)(P,{children:[(0,r.jsx)(M,{className:"text-base font-normal text-black data-[error=true]:text-black",children:_("form.contactInfo")}),(0,r.jsx)(R,{children:(0,r.jsxs)(N.AM,{open:$,onOpenChange:e=>{Z(e),e||I("")},modal:!0,children:[(0,r.jsx)(N.Wv,{asChild:!0,children:(0,r.jsxs)(z.$,{type:"button",variant:"outline",role:"combobox","aria-expanded":$,className:"w-full justify-between h-10 pr-4 focus-visible:border-[#1BB495] focus-visible:ring-[#1BB495] focus-visible:ring-1 rounded-md",children:[(0,r.jsx)("span",{className:"truncate",children:t.value?(null==(o=ee.find(e=>e.country===t.value))?void 0:o.label)||t.value:_("form.selectPlaceholder")}),(0,r.jsx)(G.A,{className:"opacity-50"})]})}),(0,r.jsx)(N.hl,{className:"w-full p-0",onOpenAutoFocus:e=>e.preventDefault(),children:(0,r.jsxs)(f,{children:[(0,r.jsx)(b,{placeholder:_("form.searchCountryOrArea"),className:"h-9",value:A,onValueChange:I}),(0,r.jsxs)(g,{children:[(0,r.jsx)(v,{children:_("form.areaError")}),(0,r.jsx)(j,{children:ee.map(e=>(0,r.jsxs)(w,{value:e.label,onSelect:()=>
1{t.onChange(e.country),er.setValue("social_code",e.code,{shouldDirty:!0,shouldValidate:!0}),Z(!1)},children:[e.label,(0,r.jsx)(D.A,{className:(0,l.A)("ml-auto",t.value===e.country?"opacity-100":"opacity-0")})]},e.id))})]})]})})]})}),(0,r.jsx)(O,{})]})}}),(0,r.jsx)(C,{control:er.control,name:"social_phone",render:e=>{let{field:o}=e;return(0,r.jsxs)(P,{className:(0,l.A)("whatsapp"===ea||"telegram"===ea?"col-span-1":"col-span-2"),children:[(0,r.jsx)(M,{className:(0,l.A)("text-base font-normal text-black data-[error=true]:text-black",("whatsapp"===ea||"telegram"===ea)&&"hidden! invisible lg:block!"),children:_("whatsapp"===ea||"telegram"===ea?"form.contactInfo":"form.socialPhoneNumber")}),(0,r.jsx)(R,{children:(0,r.jsx)(E.p,{...o,type:"tel",onChange:e=>{e.target.value=e.target.value.replace(/[^\d\s+\-]/g,""),o.onChange(e)},placeholder:_("form.telegramIdOrPhoneNumber"),className:"h-10 pr-4 focus-visible:border-[#1BB495] focus-visible:ring-[#1BB495] focus-visible:ring-1"})})]})}})]}),(0,r.jsx)(C,{control:er.control,name:"content",render:e=>{let{field:o}=e;return(0,r.jsxs)(P,{children:[(0,r.jsx)(M,{className:"text-base font-normal text-black data-[error=true]:text-black",children:(0,r.jsx)("span",{children:_("form.useCase")})}),(0,r.jsx)(R,{children:(0,r.jsx)(L.T,{rows:12,placeholder:_("form.useCasePlaceholder",{hours:48}),...o,className:"max-h-[100px] min-h-[100px] h-10 pr-4 focus-visible:border-[#1BB495] focus-visible:ring-[#1BB495] focus-visible:ring-1"})}),(0,r.jsx)(O,{})]})}}),n&&(0,r.jsxs)("div",{className:"mt-8",children:[(0,r.jsx)(z.$,{type:"submit",disabled:eh,className:"w-full h-11 mb-1 text-white bg-[#1BB495] hover:text-white! hover:bg-[#0E9C80]! hover:border-[#0E9C80]!",children:_("submit")}),t||ep]})]})})}let $=H},27015:(e,o,t)=>{t.d(o,{$K:()=>c,D0:()=>i,L7:()=>n,Pu:()=>a,US:()=>s,me:()=>l,zg:()=>d});var r=t(1260);function a(){if("undefined"==typeof navigator)return!1;let e=navigator.userAgent.toLowerCase();return e.includes("lighthouse")||e.includes("chrome-lighthouse")||e.includes("headlesschrome")||e.includes("pagespeed")||!0===navigator.webdriver||0===window.outerWidth||0===window.outerHeight}let n=()=>{let e=localStorage.getItem(r.ev);if(!e)return null;let o=null;try{o=JSON.parse(e)}catch(e){return localStorage.removeItem(r.ev),null}if(!o||"object"!=typeof o||!o.jwt_token)return localStorage.removeItem(r.ev),null;let t=o.expire_at;return!t||1e3*t<Date.now()?(localStorage.removeItem(r.ev),null):{jwt_token:o.jwt_token,expire_at:t}},c=e=>{localStorage.setItem(r.fw,JSON.stringify(e))},l=()=>{let e=localStorage.getItem(r.fw);if(!e)return null;try{let o=JSON.parse(e);if(o&&"object"==typeof o)return o}catch(e){localStorage.removeItem(r.fw)}return null},s=()=>{localStorage.removeItem(r.ev),localStorage.removeItem(r.fw),localStorage.removeItem(r.uo)},i=()=>{let e=Date.now(),o=(()=>{let e=localStorage.getItem(r.uo);if(!e)return null;let o=Number(e);return Number.isFinite(o)?o:null})();o&&e-o<6e4||localStorage.setItem(r.uo,String(e))},d=function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15;return e?e.length>o?"".concat(e.slice(0,o),"...."):e:""}},39262:(e,o,t)=>{t.d(o,{AM:()=>c,Wv:()=>l,hl:()=>s});var r=t(65392);t(24252);var a=t(45969),n=t(19964);function c(e){let{...o}=e;return(0,r.jsx)(a.bL,{"data-slot":"popover",...o})}function l(e){let{...o}=e;return(0,r.jsx)(a.l9,{"data-slot":"popover-trigger",...o})}function s(e){let{className:o,align:t="center",sideOffset:c=4,...l}=e;return(0,r.jsx)(a.ZL,{children:(0,r.jsx)(a.UC,{"data-slot":"popover-content",align:t,sideOffset:c,className:(0,n.cn)("bg-popover 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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",o),...l})})}},44773:(e,o,t)=>{t.d(o,{T:()=>c});var r=t(65392),a=t(24252),n=t(19964);let c=a.forwardRef((e,o)=>{let{className:t,...a}=e;
1return(0,r.jsx)("textarea",{className:(0,n.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:o,...a})});c.displayName="Textarea"},50185:(e,o,t)=>{t.d(o,{p:()=>n});var r=t(65392);t(24252);var a=t(19964);function n(e){let{className:o,type:t,...n}=e;return(0,r.jsx)("input",{type:t,"data-slot":"input",className:(0,a.cn)("\n file:text-foreground placeholder:text-muted-foreground border-gray-200 flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base \n shadow-xs 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 \n disabled:cursor-not-allowed disabled:opacity-50 md:text-sm focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-0 aria-invalid:ring-destructive/20 \n aria-invalid:border-destructive focus:border-gray-900 focus:ring-0 focus:outline-none focus-visible:ring-offset-0 focus-visible:outline-none\n ",o),...n})}}}]);
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.