1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3188],{3188:(e,t,o)=>{o.r(t),o.d(t,{ume_contact_form:()=>u});var a,i,r,n,s,c,d=o(4309),l=o(3565);let m={"dialog.title":"Get in touch","dialog.subtitle":"How can we help you?","form.enquiryType.label":"Enquiry Type","form.enquiryType.valueMissing":"This field is required","form.enquiryType.options.empty":"Choose a value","form.enquiryType.options.enquiry":"General enquiry","form.enquiryType.options.support":"Technical support","form.enquiryType.options.demo":"Book a demo","form.enquiryType.options.contact":"Contact a branch","form.enquiryType.options.partner":"Become a partner","form.branch.label":"Select a branch","form.branch.valueMissing":"This field is required","form.branch.options.empty":"Choose a value","form.branch.options.london":"London","form.branch.options.singapore":"Singapore","form.branch.options.sydney":"Sydney","form.branch.options.boston":"Boston","form.products.label":"Which products are you interested in?","form.products.valueMissing":"This field is required","form.products.options.empty":"Select","form.products.options.engine":"Underwriting Engine","form.products.options.decision":"Decision Studio","form.products.options.risk":"AI-Powered Risk Review","form.products.options.analytics":"Actionable Analytics","form.products.options.claims":"Claims Engine","form.details.label":"Any details?","form.name.label":"First name","form.name.valueMissing":"This field is required","form.surname.label":"Last name","form.surname.valueMissing":"This field is required","form.email.label":"Business email","form.email.valueMissing":"This field is required","form.email.patternMismatch":"This field is not valid","form.actions.next":"Next","form.actions.back":"Back","form.actions.submit":"Submit","form.actions.close":"Close","form.sent.title":"Your request has been sent","form.sent.subtitle":"We'll get in touch with you soon"},h={"en-us":{},"en-gb":m,"en-au":{},"en-sg":{}};(a=n||(n={})).ENQUIRY="enquiry",a.SUPPORT="support",a.DEMO="demo",a.CONTACT="contact",a.PARTNER="partner",(i=s||(s={})).LONDON="london",i.SINGAPORE="singapore",i.SYDNEY="sydney",i.BOSTON="boston",(r=c||(c={})).ENGINE="engine",r.DECISION="decision",r.RISK="risk",r.ANALYTICS="analytics",r.CLAIMS="claims";let u=class{constructor(e){(0,d.r)(this,e),this.sent=!1,this.step=0,this.formIsValid=!1,this.currentType="",this.products=[],this.currentBranch=""}onTypePropChange(){this.el.querySelector("form").reset(),this.currentType=this.type}onProductPropChange(){this.products=[this.product]}onBranchPropChange(){this.currentBranch=this.branch}async open(){var e;this.currentType=this.type,this.products=this.product?[this.product]:[],this.currentBranch=this.branch,this.step=0,this.sent=!1,null==(e=null==window?void 0:window.analytics)||e.track("ContactModalOpen",{Type:this.currentType,Products:this.products,Branch:this.currentBranch}),this.el.querySelector("dialog").showModal()}async close(){var e;null==(e=null==window?void 0:window.analytics)||e.track("ContactClose"),this.onClose(),this.el.querySelector("dialog").close()}updateValidity(){let e=this.el.querySelector("form");this.formIsValid=e.checkValidity()}onTypeChange(e){var t;let{value:o}=e.currentTarget;this.el.querySelector("form").reset(),this.currentType=o,null==(t=null==window?void 0:window.analytics)||t.track("TypeSelected",{Type:this.currentType})}onProductChange(e){var t;let o=new FormData(e.currentTarget.form);this.products=o.getAll("products"),null==(t=null==window?void 0:window.analytics)||t.track("ProductSelected",{Products:this.products})}onBranchChange(e){var t;let{value:o}=e.currentTarget;this.currentBranch=o,null==(t=null==window?void 0:window.analytics)||t.track("BranchSelected",{Branch:this.currentBranch})}onNextClick(){var e;null==(e=null==window?void 0:window.analytics)||e.track("ContactNextButton",{EnquiryType:this.currentType,Branch:this.currentBranch}),this.step=Math.min(this.step+1,2)}onBackClick(){var e;null==(e=null==window?void 0:window.analytics)||e.track("ContactBackButton",{EnquiryType:this.currentType,Branch:this.currentBranch}),this.step=Math.max(this.step-1,0)}onClose(){this.sent=!1}async send(e,t){var o,a;let i=this.el.querySelector("#contact-submit-button");try{i.disabled=!0;let r=new FormData(e),n=r.get("email")||"",s=r.get("name")||"",c=r.get("surname")||"";null==(o=window.analytics)||o.identify(n,{firstName:s,lastName:c,email:n}),null==(a=null==window?void 0:window.analytics)||a.track("ContactSubmit",{EnquiryType:this.currentType,Branch:this.currentBranch,Products:this.products,EmailDomain:n.split("@")[1]}
1),t&&Object.entries(t).forEach(([e,t])=>{r.set(e,t)});let d=await fetch(this.action,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(Object.fromEntries(r.entries()))});if(!d.ok)throw console.error("Failed to send",d.status,d.statusText),Error("Failed to send");this.sent=!0}catch(e){throw i.disabled=!1,e}}async onSubmit(e){e.preventDefault();let t=e.currentTarget,o={url:window.location.toString(),pageTitle:document.title};this.recaptcha?grecaptcha.enterprise.ready(async()=>{let e=await grecaptcha.enterprise.execute(this.recaptcha,{action:"contact"});this.send(t,Object.assign(Object.assign({},o),{token:e}))}):this.send(t,o)}componentDidUpdate(){this.updateValidity()}componentWillLoad(){let e=this.el.closest("[lang]"),t=e?e.lang:"en-gb";this.text=Object.assign(Object.assign({},m),h[t]||{})}render(){return(0,d.h)(d.H,{key:"26bc8171a521444acd0a161dac513fbd53da7f6e"},(0,d.h)("slot",{key:"c934820dafb5437d73b01c133d61d05ca24f9086"}),(0,d.h)("dialog",{key:"cc801defc0704829b85f8070ca3308e6d983f5df",class:(0,l.c)("form-dialog",{sent:this.sent}),onClose:()=>this.onClose(),"data-tracking-section":"ContactModal"},(0,d.h)("header",{key:"653b33bc89531003cb1250b48141b81cf5327337"},(0,d.h)("dme-button",{key:"6d6f2857f49816deed97c6db845086f549ffc3fe","data-testid":"contact-form-close",text:!0,round:!0,icon:!0,onClick:()=>this.close()},(0,d.h)("dme-icon-cross",{key:"d98010f1169f9f10b81ec87d6eb8b1944721ce34"})),(0,d.h)("h2",{key:"07b748f528e883458fd017cd83fe13d343576536"},this.text["dialog.title"]),(0,d.h)("h3",{key:"3e81420cbea67c5f214cf098a0b0fc6fafca3493"},this.text["dialog.subtitle"]),(0,d.h)("ul",{key:"e3fc93752174705c35aabdc8d3424d0f008ace79",class:"step-list"},(0,d.h)("li",{key:"f883e96663e0f5968c37949af17f0a23cb86dd1e",class:(0,l.c)({active:0===this.step})},"1"),(0,d.h)("li",{key:"7c2919e729819f1bcd2b72d88a8f1f22a61a88be",class:(0,l.c)({active:1===this.step})},"2"))),(0,d.h)("dme-form",{key:"2c81f4cdd3b7819d15418e7eaac6e6a0e393fb5c"},(0,d.h)("form",{key:"e8458168c17a2e3ba0efc9284e81c9d4652c4483",autoComplete:"off",onSubmit:e=>this.onSubmit(e)},(0,d.h)("div",{key:"368437d86be3a8383819b02553ec970e32518ccd",class:(0,l.c)("step",{"step-active":0===this.step})},(0,d.h)("label",{key:"836554158bf6cf473244e046fd6c38c7c7c03fce"},this.text["form.enquiryType.label"]," ",(0,d.h)("span",{key:"f20296ebabdd0cf532fceeb1e3e459f942833001",class:"required-field"},"*"),(0,d.h)("select",{key:"ae7a7d18aa8cf26ca38d252cede585e801d3ef25",name:"type",required:!0,"data-value-missing":this.text["form.enquiryType.valueMissing"],onInput:e=>this.onTypeChange(e)},(0,d.h)("option",{key:"4cc0cd943a22bd393f82280e53d5df282bd12376",value:""},this.text["form.enquiryType.options.empty"]),Object.values(n).map(e=>(0,d.h)("option",{value:e,selected:this.currentType===e},this.text["form.enquiryType.options."+e])))),[n.PARTNER,n.DEMO].includes(this.currentType)?(0,d.h)("dme-dropdown",null,(0,d.h)("dme-dropdown-toggle",null,(0,d.h)("label",null,this.text["form.products.label"],(0,d.h)("input",{type:"text",name:"products-label",readonly:!0,placeholder:this.text["form.products.options.empty"],value:this.products.map(e=>this.text["form.products.options."+e]).join(", "),required:!0}),(0,d.h)("dme-icon-chevron",{size:"5"}))),(0,d.h)("dme-dropdown-options",{slot:"content"},Object.values(c).map(e=>(0,d.h)("label",{class:"dropdown-row"},(0,d.h)("input",{type:"checkbox",name:"products",value:e,onChange:e=>this.onProductChange(e),checked:this.products.includes(e)}),this.text["form.products.options."+e])))):null,[n.CONTACT].includes(this.currentType)?(0,d.h)("label",null,this.text["form.branch.label"],(0,d.h)("select",{name:"branch",required:!0,"data-value-missing":this.text["form.branch.valueMissing"],onInput:e=>this.onBranchChange(e)},(0,d.h)("option",{value:"",selected:""===this.currentBranch},this.text["form.branch.options.empty"]),Object.values(s).map(e=>(0,d.h)("option",{value:e,selected:this.currentBranch===e},this.text["form.branch.options."+e])))):null,[n.ENQUIRY,n.SUPPORT,n.CONTACT,n.PARTNER].includes(this.currentType)?(0,d.h)("label",null,this.text["form.details.label"],(0,d.h)("textarea",{name:"details",onInput:()=>
1this.updateValidity()})):null,(0,d.h)("div",{key:"feca8de6207e8ed1df6498c68d0f5919f7462500",class:"actions"},(0,d.h)("div",{key:"d6be8ac035fe51ff5fcb5882a9ad9287485d49c6",class:"box-top-large centered"},(0,d.h)("dme-button",{key:"c441ba0e6e9820a600ec6205c2cd7811dec1435c","data-testid":"contact-form-next",type:"button",disabled:!this.formIsValid,loading:!1,round:!0,onClick:()=>this.onNextClick()},this.text["form.actions.next"])))),1===this.step?(0,d.h)("div",{class:"step step-active"},(0,d.h)("label",null,this.text["form.name.label"]," ",(0,d.h)("span",{class:"required-field"},"*"),(0,d.h)("input",{type:"text",name:"name",required:!0,"data-value-missing":this.text["form.name.valueMissing"],onInput:()=>this.updateValidity()})),(0,d.h)("label",null,this.text["form.surname.label"]," ",(0,d.h)("span",{class:"required-field"},"*"),(0,d.h)("input",{type:"text",name:"surname",required:!0,"data-value-missing":this.text["form.surname.valueMissing"],onInput:()=>this.updateValidity()})),(0,d.h)("label",null,this.text["form.email.label"]," ",(0,d.h)("span",{class:"required-field"},"*"),(0,d.h)("input",{type:"email",name:"email",required:!0,pattern:"[^@\\s]+@[^@\\s]+\\.[^@\\s]+","data-value-missing":this.text["form.email.valueMissing"],"data-pattern-mismatch":this.text["form.email.patternMismatch"],onInput:()=>this.updateValidity()})),(0,d.h)("div",{class:"actions"},(0,d.h)("div",{class:"box-top-large centered"},(0,d.h)("dme-button",{type:"button",ghost:!0,secondary:!0,round:!0,onClick:()=>this.onBackClick()},this.text["form.actions.back"]),(0,d.h)("dme-button",{id:"contact-submit-button",type:"submit",disabled:!this.formIsValid,loading:!1,round:!0},this.text["form.actions.submit"])),(0,d.h)("small",null,"This site is protected by reCAPTCHA and the Google"," ",(0,d.h)("a",{href:"https://policies.google.com/privacy",target:"_blank"},"Privacy Policy")," ","and"," ",(0,d.h)("a",{href:"https://policies.google.com/terms",target:"_blank"},"Terms of Service")," ","apply."))):null)),(0,d.h)("div",{key:"13ed354a9919c8c2eceaa0f9612f6af835279c11",class:"sent-message"},(0,d.h)("img",{key:"44ccc38432bb5dd913603374a9b72143447f9058",src:(0,d.a)("assets/images/complete.jpeg")}),(0,d.h)("h2",{key:"da17a33898a975ea1f2999f1ce12707a6855d1e1"},this.text["form.sent.title"]),(0,d.h)("h3",{key:"3bbc3ccf1ca36e380432bd08239be5007cb0a712"},this.text["form.sent.subtitle"]),(0,d.h)("div",{key:"12d3a239f3d81a4398f91e1f9eeabe0385aa18f0",class:"actions centered"},(0,d.h)("dme-button",{key:"fa086a4c3111b2f780cdef14abc4b9f6fc32a23d",round:!0,onClick:()=>this.close()},this.text["form.actions.close"])))))}static get assetsDirs(){return["../../assetc/images"]}get el(){return(0,d.g)(this)}static get watchers(){return{type:["onTypePropChange"],product:["onProductPropChange"],branch:["onBranchPropChange"]}}};u.style='ume-contact-form{--contact-font-size:14px}ume-contact-form dialog.form-dialog{min-height:700px;min-width:500px;--dialog-button-font-size:var(--contact-font-size);--dialog-button-font-weight:var(--font-weight-5);--dialog-button-background:var(--brand);--text:var(--dark);--input-placeholder-color:var(--text);--checked-background:var(--brand);--unchecked-border-color:var(--brand)}@media (width < 640px){ume-contact-form dialog.form-dialog{min-width:auto;padding:var(--size-2);width:100vw}}.brand ume-contact-form dialog.form-dialog header button.icon:hover{--button-color:var(--brand)}.brand ume-contact-form dialog.form-dialog button.ghost:not(:hover){--button-color:var(--gray-10);--button-border-color:var(--gray-10)}ume-contact-form dialog.form-dialog .actions .button,ume-contact-form dialog.form-dialog .actions button{width:fit-content}ume-contact-form dialog.form-dialog header{display:flex;flex-direction:column}ume-contact-form dialog.form-dialog header>button,ume-contact-form dialog.form-dialog header>dme-button{align-self:flex-end;height:fit-content;width:fit-content}ume-contact-form dialog.form-dialog header dme-button button:focus{outline:none}ume-contact-form dialog.form-dialog header .step-list{display:flex;gap:32px;justify-content:center;list-style-type:none;margin-bottom:0;padding:0}ume-contact-form dialog.form-dialog header .step-list li{align-items:center;background:var(--gray-2);border:2px solid transparent;border-radius:50%;color:var(--gray-5);display:flex;font-size:var(--font-size-0);height:32px;justify-content:center;padding:0;position:relative;width:32px;z-index:10}ume-contact-form dialog.form-dialog header .step-list li:after{background-color:var(--gray-2);content:"";height:1px;position:absolute;top:50%;width:16px}ume-contact-form dialog.form-dialog header .step-list li:last-child:after{left:-2px;transform:translateX(-100%)}ume-contact-form dialog.form-dialog header .step-list li:first-child{background-color:var(--brand);color:var(--light)}ume-contact-form dialog.form-dialog header .step-list li:first-child:after{background-color:var(--brand);right:-2px;transform:translateX(100%)}ume-contact-form dialog.form-dialog header .step-list li.active{background-color:var(--brand);border-color:var(--light);color:var(--light);outline:1px solid var(--brand)}ume-contact-form dialog.form-dialog header .step-list li.active:last-child:after{background-color:var(--brand);left:-3px}ume-contact-form dialog.form-dialog h2,ume-contact-form dialog.form-dialog h3{text-align:center}ume-contact-form dialog.form-dialog h2{font-size:var(--font-size-6);margin-top:var(--size-3)}ume-contact-form dialog.form-dialog h3{font-size:var(--font-size-2);font-weight:var(--font-weight-4);margin:var(--size-5) 0}ume-contact-form dialog.form-dialog dme-form{--formrow-spacing:var(--size-3);--field-spacing:var(--size-1);--input-font-size:var(--contact-font-size);display:flex;flex:1;flex-direction:column;font-size:var(--contact-font-size);padding:var(--size-5)}ume-contact-form dialog.form-dialog dme-form form{flex:1}ume-contact-form dialog.form-dialog dme-form .required-field{color:var(--field-required-color)}ume-contact-form dialog.form-dialog dme-form button{min-width:80px}ume-contact-form dialog.form-dialog .step{display:none;flex:1}ume-contact-form dialog.form-dialog .step.step-active{display:flex;flex-direction:column}ume-contact-form dialog.form-dialog .step .actions{display:flex;flex:1;flex-direction:column;justify-content:end}ume-contact-form dialog.form-dialog .step .actions small{color:var(--gray-5);margin-top:var(--size-5)}ume-contact-form dialog.form-dialog dme-dropdown{margin-block-start:var(--formrow-spacing)}ume-contact-form dialog.form-dialog dme-dropdown dme-dropdown-toggle input{cursor:pointer}ume-contact-form dialog.form-dialog dme-dropdown dme-dropdown-toggle input::placeholder{color:var(--gray-6);font-weight:var(--font-weight-4)}ume-contact-form dialog.form-dialog dme-dropdown dme-dropdown-toggle .
1icon{height:var(--accordion-chevron-size);margin:0;top:calc(50% - var(--accordion-chevron-size)/2);width:var(--accordion-chevron-size)}ume-contact-form dialog.form-dialog dme-dropdown dme-dropdown-options{display:flex;flex-direction:column;gap:var(--size-4);padding:var(--size-4) var(--size-2);width:100%}ume-contact-form dialog.form-dialog dme-dropdown .dropdown-row{color:var(--gray-5);display:flex;font-weight:var(--font-weight-4);gap:var(--size-1);margin:0}ume-contact-form dialog.form-dialog dme-dropdown .dropdown-row:has(:checked){color:var(--text)}ume-contact-form dialog.form-dialog dme-dropdown .dropdown-row input[type=checkbox]{border-radius:var(--radius-1);transform:none}ume-contact-form dialog.form-dialog dme-dropdown.open dme-dropdown-toggle .icon{transform:rotate(180deg)}ume-contact-form dialog.form-dialog .sent-message{display:none;padding:var(--size-5) 0}ume-contact-form dialog.form-dialog .sent-message img{height:250px;margin-bottom:var(--size-7);object-fit:contain;width:100%!important}ume-contact-form dialog.form-dialog .sent-message .actions{--dialog-button-background:var(--dark);justify-content:center;margin-top:var(--size-5)}ume-contact-form dialog.form-dialog.sent dme-form,ume-contact-form dialog.form-dialog.sent header{display:none}ume-contact-form dialog.form-dialog.sent .sent-message{display:block}'},3565:(e,t,o)=>{o.d(t,{c:()=>a});function a(){for(var e,t,o=0,a="",i=arguments.length;o<i;o++)(e=arguments[o])&&(t=function e(t){var o,a,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var r=t.length;for(o=0;o<r;o++)t[o]&&(a=e(t[o]))&&(i&&(i+=" "),i+=a)}else for(a in t)t[a]&&(i&&(i+=" "),i+=a);return i}(e))&&(a&&(a+=" "),a+=t);return a}}}]);
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.