1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="52dc2f68-2fc7-44e5-be6b-e6b8d576e659",e._sentryDebugIdIdentifier="sentry-dbid-52dc2f68-2fc7-44e5-be6b-e6b8d576e659")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7623],{11848:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSG:()=>g,default:()=>N});var c=n(37876),a=n(12212),o=n(36701),s=n(14232),r=n(96010),i=n(93153),l=n(74474),d=n(46565),m=n(2847),u=n(34924),h=n(75975),f=n(49505),p=n(3038),x=n(53544);let j={s:{type:"string",default:""},q:{type:"string",default:""}},b=e=>{let{t}=(0,a.B)(),{s:n,q:o,isReady:b}=(0,l.I)(j),[v,g]=(0,s.useState)(!1),[N,y]=(0,s.useState)(!1),_=async e=>{N||(y(!0),await d.A.post("forms/contact",e,{withCredentials:!0}).then(n=>{if(200===n.status&&n.data&&"success"===n.data){w(),g(!0),(0,m.YJ)("main-content");return}(0,u.JE)("Form","Contact form declined by the API",{status:n.status,recipient:e.recipient}),i.oR.error(t("utils.error"))},n=>{(0,u.vV)("Form","Contact form submission failed",(e=>{if(!e?.isAxiosError)return e;let t=Error(e.message);return t.name=e.name,t.code=e.code,t.stack=e.stack,t.isCanceled=e.isCanceled,t})(n),{status:n?.response?.status,code:n?.code,recipient:e.recipient}),i.oR.error(t("utils.error"))}).finally(()=>{y(!1)}))},w=()=>{let e=document.querySelector(".contact-form");if(e){let n=e.querySelectorAll("input,textarea");for(var t=0;t<n.length;t++)n[t].value="";let c=e.querySelector("#recipient");c&&(c.value="")}};return b?(0,c.jsx)(c.Fragment,{children:v?(0,c.jsxs)("div",{id:"contact-form",children:[(0,c.jsx)("p",{className:"p--weight--bold",children:t("contact.form.confirmation")}),(0,c.jsxs)("p",{className:"",children:[(0,c.jsx)(h.A,{href:"/",className:"link link--tomato link--underline",children:t("contact.form.gohome")})," ",t("contact.form.or"),(0,c.jsxs)("button",{type:"button",className:"link link--tomato link--underline",onClick:()=>g(!1),children:[t("contact.form.reload"),"."]})]})]}):(0,c.jsxs)("form",{className:"contact-form",onSubmit:t=>{t.preventDefault();let n=t.target.elements,c={firstname:n.firstname.value,lastname:n.lastname.value,email:n.email.value,order:n.order.value,recipient:parseInt(n.recipient.value),subject:n.recipient.selectedOptions[0].textContent,telephone:n.phone.value,message:n.message.value};e.subdomain&&e.organization&&(c={...c,organization_id:e.organization.id}),_(c)},id:"contact-form",children:[(0,c.jsx)("small",{className:"d-block mb-3 span--c-forest",children:t("contact.form.requireds")}),(0,c.jsxs)("div",{className:"row",children:[(0,c.jsx)("div",{className:"col-sm-6 mb-3",children:(0,c.jsx)(f.A,{label:t("contact.form.firstname"),id:"firstname",name:"firstname",required:!0})}),(0,c.jsx)("div",{className:"col-sm-6 mb-3",children:(0,c.jsx)(f.A,{label:t("contact.form.lastname"),id:"lastname",name:"lastname",required:!0})})]}),(0,c.jsxs)("div",{className:"row",children:[(0,c.jsx)("div",{className:"col-sm-6 mb-3",children:(0,c.jsx)(f.A,{label:t("contact.form.email"),id:"email",name:"email",type:"email",required:!0})}),(0,c.jsx)("div",{className:"col-sm-6 mb-3",children:(0,c.jsx)(f.A,{label:t("contact.form.phone"),id:"phone",name:"phone",maxLength:18,required:!0})})]}),(0,c.jsxs)("div",{className:"row",children:[(0,c.jsx)("div",{className:"col-sm-6 mb-3",children:(0,c.jsxs)(p.A,{label:t("contact.form.select.title"),id:"recipient",name:"recipient",defaultValue:n,required:!0,children:[(0,c.jsx)("option",{value:"",disabled:!0,children:t("contact.form.select.title")}),(0,c.jsxs)("optgroup",{label:t("contact.form.select.group1"),children:[(0,c.jsx)("option",{value:"1",children:t("contact.form.select.choice1")}),(0,c.jsx)("option",{value:"2",children:t("contact.form.select.choice2")})]}),(0,c.jsxs)("optgroup",{label:t("contact.form.select.group2"),children:[(0,c.jsx)("option",{value:"3",children:t("contact.form.select.choice3")}),(0,c.jsx)("option",{value:"4",children:t("contact.form.select.choice4")}),(0,c.jsx)("option",{value:"5",children:t("contact.form.select.choice5")}),(0,c.jsx)("option",{value:"7",children:t("contact.form.select.choice7")}),(0,c.jsx)("option",{value:"6",children:t("contact.form.select.choice6")})]}),(0,c.jsxs)("optgroup",{label:t("contact.form.select.group3"),children:[(0,c.jsx)("option",{value:"8",children:t("contact.form.select.choice8")}),(0,c.jsx)("option",{value:"9",children:t("contact.form.select.choice9")}),(0,c.jsx)("option",{value:"10",children:t("contact.form.select.choice10")}),(0,c.jsx)("option",{value:"11",children:t("contact.form.select.choice11")})]}),(0,c.jsxs)("optgroup",{label:t("contact.form.select.group4"),children:[(0,c.jsx)("option",{value:"12",children:t("contact.form.select.choice12")}),(0,c.jsx)("option",{value:"13",children:t("contact.form.select.choice13")}),(0,c.jsx)("option",{value:"14",children:t("contact.form.select.choice14")}),(0,c.jsx)("option",{value:"15",children:t("contact.form.select.choice15")})]})]})}),(0,c.jsx)("div",{className:"col-sm-6 mb-3",children:(0,c.jsxs)("div",{className:"field-labeled",children:[(0,c.jsx)("label",{htmlFor:"order",children:t("contact.form.order")}),(0,c.jsxs)("div",{className:"input-ordernumber",children:[(0,c.jsx)("span",{className:"input-ordernumber__start",children:"CMD-LIQ-"}),(0,c.jsx)(f.A,{id:"order",name:"order",className:"input-ordernumber__input"})]})]})})]}),(0,c.jsx)(x.A,{label:t("contact.form.message"),id:"message",name:"message",defaultValue:o,required:!0,rows:6}),(0,c.jsx)("div",{className:"d-flex justify-content-end mt-4",children:(0,c.jsx)("button",{type:"submit",className:"btn btn--raised btn--raised--tomato w-100",formTarget:"contact-form",disabled:N||v,children:t("contact.btnsen
1d")})})]})}):(0,c.jsx)(r.A,{count:1,duration:2,height:300,baseColor:"#FFF5F0"})};var v=n(43361),g=!0;let N=e=>{let{t,locale:n}=(0,a.B)();return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(v.A,{title:t("contact.title"),route:"contact",selfCanonical:!0}),(0,c.jsxs)("section",{className:"section section--pt-80 section--pb-60",children:[(0,c.jsx)(o.A,{currentTitle:t("contact.title")}),(0,c.jsx)("div",{className:"container a-center",children:(0,c.jsx)("h1",{className:"headline headline--main ",children:t("contact.title")})}),(0,c.jsxs)("div",{className:"container wysiwyg section--pt-20 section-body scroll-margin-top",id:"main-content",style:{maxWidth:"960px"},children:[e.content&&e.content.data&&e.content.data.content&&"object"==typeof e.content.data.content?(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:e.content.data.content[n]}}):"",(0,c.jsx)(b,{subdomain:e.subdomain,organization:e.organization})]})]})]})}},53544:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var c=n(37876),a=n(79564),o=n(89613),s=n(28244);let r=e=>{let{label:t,id:n,name:r,required:i=!1,className:l="",placeholder:d="",maxLength:m,minLength:u,defaultValue:h,value:f,rows:p=4,hintMessage:x,errorMessage:j,onChange:b,disabled:v=!1,readOnly:g=!1}=e,N=`${n}-error`,y=`${n}-hint`,_=[j&&N,x&&y].filter(Boolean).join(" ")||void 0;return(0,c.jsxs)(s.A,{label:t,id:n,required:i,className:l,children:[(0,c.jsx)("textarea",{className:"form-control",id:n,name:r||n,placeholder:d,maxLength:m,minLength:u,...void 0!==f?{value:f}:{defaultValue:h},rows:p,"aria-required":i,"aria-invalid":!!j,"aria-describedby":_,required:i,readOnly:g,disabled:v,onChange:e=>{!v&&b&&b(e)}}),(0,c.jsx)(o.A,{id:y,message:x}),(0,c.jsx)(a.A,{id:N,message:j})]})}},95810:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/site/[host]/contact",function(){return n(11848)}])}},e=>{e.O(0,[4909,6593,636,8792],()=>e(e.s=95810)),_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.