1"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__||=[]).push([[5480],{28154(e,t,s){s.r(t),s.d(t,{default:()=>w});var r=s(20305),a=(s(22155),s(87881)),i=s(71651),n=s(8032),o=s(42335),l=s(32498),m=s(37319),c=s(93351),u=s(65353),_=s(86737),d=s(35361),p=s(17494),h=s(9574),x=s(35905),g=s(39340);const b=g.Ik({firstName:g.Yj({message:"error_first_name_required"}).min(1,"error_first_name_required"),lastName:g.Yj({message:"error_last_name_required"}).min(1,"error_last_name_required"),email:g.Yj({message:"error_email_required"}).email("error_email_invalid"),message:g.Yj({message:"error_message_required"}),question:g.Ik({id:g.ai().optional()})});var f=s(80731);const{app:j}=f.A,S=h.StyleSheet.create({submitButton:{marginTop:"70px"},form:{display:"flex",flexDirection:"column",width:"100%"},largeScreenForm:{flexDirection:"row",justifyContent:"space-between",gap:j.gutter12,":nth-child(1n) > div":{display:"flex",flexDirection:"column",flexGrow:1}}});var y=s(65723);const A=(0,m.A)(e=>{const t=(0,r.c)(33),{i18n:s,largeScreen:a,customer:i,support:n,actions:o,buttonTheme:l}=e;let m;t[0]!==i.email||t[1]!==i.firstName||t[2]!==i.lastName||t[3]!==n.question?(m={firstName:i.firstName,lastName:i.lastName,email:i.email,question:n.question},t[0]=i.email,t[1]=i.firstName,t[2]=i.lastName,t[3]=n.question,t[4]=m):m=t[4];const g=m;let f;t[5]!==o||t[6]!==i.id||t[7]!==n.questionsType?(f=async e=>{try{await o.handleSendMessage(e,i.id,n.questionsType)}catch(e){const t=e;if(t.error)return{[p.FORM_ERROR]:t.error}}},t[5]=o,t[6]=i.id,t[7]=n.questionsType,t[8]=f):f=t[8];const j=f;let A,N,k,q,w,v;return t[9]!==s.customer_support_modal_title?(A=(0,y.jsx)(c.A,{"data-aid":"modal-header-text",children:s.customer_support_modal_title}),t[9]=s.customer_support_modal_title,t[10]=A):A=t[10],t[11]!==s.customer_support_modal_description?(N=(0,y.jsx)(u.A,{children:s.customer_support_modal_description}),t[11]=s.customer_support_modal_description,t[12]=N):N=t[12],t[13]!==s?(k=e=>s[e],t[13]=s,t[14]=k):k=t[14],t[15]!==l||t[16]!==s.email_address||t[17]!==s.first_name||t[18]!==s.how_can_we_help_you||t[19]!==s.last_name||t[20]!==s.submit||t[21]!==s.submitting||t[22]!==a?(q=e=>{const{handleSubmit:t,submitting:r,submitError:i,hasSubmitErrors:n}=e;return(0,y.jsxs)("form",{onSubmit:t,children:[n&&(0,y.jsx)(_.A,{message:i}),(0,y.jsxs)("div",{className:(0,h.css)(S.form,a&&S.largeScreenForm),children:[(0,y.jsxs)("div",{children:[(0,y.jsx)(x.zB,{name:"firstName",label:s.first_name}),(0,y.jsx)(x.zB,{name:"lastName",label:s.last_name}),(0,y.jsx)(x.zB,{name:"email",label:s.email_address})]}),(0,y.jsx)(x.zB,{name:"message",label:s.how_can_we_help_you,variant:"textarea",fillHeight:a})]}),(0,y.jsx)(d.A,{buttonText:r?s.submitting:s.submit,hideSubmittingSpace:!0,disabled:r,theme:l})]})},t[15]=l,t[16]=s.email_address,t[17]=s.first_name,t[18]=s.how_can_we_help_you,t[19]=s.last_name,t[20]=s.submit,t[21]=s.submitting,t[22]=a,t[23]=q):q=t[23],t[24]!==g||t[25]!==j||t[26]!==k||t[27]!==q?(w=(0,y.jsx)(x.lV,{schema:b,onSubmit:j,initialValues:g,translateErrors:k,children:q}),t[24]=g,t[25]=j,t[26]=k,t[27]=q,t[28]=w):w=t[28],t[29]!==A||t[30]!==N||t[31]!==w?(v=(0,y.jsxs)(y.Fragment,{children:[A,N,w]}),t[29]=A,t[30]=N,t[31]=w,t[32]=v):v=t[32],v});var N=s(16890);const k=h.StyleSheet.create({button:{maxWidth:"550px"}}),q=(0,m.A)(e=>{const t=(0,r.c)(13),{actions:s,i18n:a,buttonTheme:i}=e,n=`${a.sent}!`;let o,l,m,_,d;return t[0]!==n?(o=(0,y.jsx)(c.A,{children:n}),t[0]=n,t[1]=o):o=t[1],t[2]!==a.customer_support_sent?(l=(0,y.jsx)(u.A,{children:a.customer_support_sent}),t[2]=a.customer_support_sent,t[3]=l):l=t[3],t[4]===Symbol.for("react.memo_cache_sentinel")?(m=(0,h.css)(k.button),t[4]=m):m=t[4],t[5]!==s.handleOkClick||t[6]!==i||t[7]!==a.ok?(_=(0,y.jsx)("div",{className:m,children:(0,y.jsx)(N.A,{buttonText:a.ok,onClick:s.handleOkClick,"data-aid":"support-message-ok-btn",theme:"primary",size:"default",theme:i})}),t[5]=s.handleOkClick,t[6]=i,t[7]=a.ok,t[8]=_):_=t[8],t[9]!==o||t[10]!==l||t[11]!==_?(d=(0,y.jsxs)(y.Fragment,{children:[o,l,_]}),t[9]=o,t[10]=l,t[11]=_,t[12]=d):d=t[12],d}),w=(0,a.Ng)(e=>({largeScreen:e.app.largeScreen,customer:e.customer,support:e.support}),e=>({actions:{handleSendMessage:async(t,s,r)=>{try{await e(l.A.sendMessage(t,s,r)),e(o.A.showSupportMessageSentModal())}catch(e){throw(0,n.Mv)(e),e}},handleOkClick:t=>{t.preventDefault(),e(o.A.clearModal())}}}))(e=>{const t=(0,r.c)(4);if(e.modalKey===i.l.supportMessageSent){let s;return t[0]!==e?(s=(0,y.jsx)(q,{...e}),t[0]=e,t[1]=s):s=t[1],s}{let s;return t[2]!==e?(s=(0,y.jsx)(A,{...e}),t[2]=e,t[3]=s):s=t[3],s}})}}]); 2//# sourceMappingURL=SupportMessageFormContainer-863056714e511ebe53d9.bundle.js.map
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.