PageSourceSearch

https://preview-lockton-global.netlify.app/_next/static/chunks/2642.ca0e83b8fe892c3e.js

js preview-lockton-global.netlify.app collected 2026-10-03 11:19:21 UTC 12,359 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2642],{18037:function(e,r,a){var l=a(64836);r.Z=void 0;var t=l(a(64938)),n=a(85893),i=(0,t.default)((0,n.jsx)("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"CheckCircleOutline");r.Z=i},22642:function(e,r,a){a.r(r);var l=a(59499),t=a(67294),n=a(86886),i=a(93443),o=a(54181),m=a(50135),s=a(9840),d=a(50066),u=a(83321),f=a(84808),h=a(42721),c=a(93321),p=a(36191),R=a(93946),v=a(11163),x=a(18037),g=a(85893);function P(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);r&&(l=l.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,l)}return a}function E(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?P(Object(a),!0).forEach((function(r){(0,l.Z)(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):P(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}a(29254).regions;var b=d.ZP.div.withConfig({displayName:"ReferralForm__Wrapper",componentId:"sc-308fid-0"})(["padding:75px;max-width:960px;margin:auto;.MuiTextField-root{margin:0 !important;}@media (max-width:","){padding:20px 20px 40px;}"],o.AV.sm),N=d.ZP.h2.withConfig({displayName:"ReferralForm__FormMessage",componentId:"sc-308fid-1"})(["padding:0 20px;color:",";"],(function(e){return e.error?o.O9.red:o.O9.midnightBlack})),y=d.ZP.div.withConfig({displayName:"ReferralForm__ModalContent",componentId:"sc-308fid-2"})(["margin:0;background-color:",";position:relative;width:90%;height:90%;"],o.O9.trueWhite),j=(0,d.ZP)(R.Z).withConfig({displayName:"ReferralForm__CloseButton",componentId:"sc-308fid-3"})(["position:absolute !important;top:0;right:0;color:"," !important;z-index:1500;svg{font-size:30px;}&:focus{outline:-webkit-focus-ring-color auto 5px;}"],o.O9.mediumGrey),Z=d.ZP.div.withConfig({displayName:"ReferralForm__ModalBody",componentId:"sc-308fid-4"})(["display:flex;justify-content:center;align-items:center;flex-direction:column;height:80%;@media (max-width:","){padding:10px;}"],o.AV.sm),C=d.ZP.div.withConfig({displayName:"ReferralForm__ModalActionButton",componentId:"sc-308fid-5"})(["position:absolute;right:10px;bottom:10px;"]),L=d.ZP.div.withConfig({displayName:"ReferralForm__CheckIcon",componentId:"sc-308fid-6"})(["color:green;display:block;"]),F=d.ZP.div.withConfig({displayName:"ReferralForm__GreetText",componentId:"sc-308fid-7"})(["font-size:2.2rem;color:#1c1c1b;"]),W=d.ZP.div.withConfig({displayName:"ReferralForm__FormSubmitText",componentId:"sc-308fid-8"})(["font-size:1.8rem;color:#393937;text-align:center;"]),T=(0,i.Z)((function(e){return{root:{"& .MuiTextField-root":{margin:e.spacing(1)},"& .MuiGrid-spacing-xs-4 > .noTopPadding":{paddingTop:0},"& .MuiButton-root.Mui-disabled":{backgroundColor:"lightgray"}}}})),w=function(e){var r=(0,h.Z)().width,a=0!==r&&r<=600?"0":"50px",l=(0,v.useRouter)(),t=(0,i.Z)((function(){return{modal:{display:"flex",justifyContent:"center",zIndex:"1500 !important",margin:a,outline:"none"}}}))(),n=function(){e.clearForm(),e.changeModalStatus(!1)};return(0,g.jsx)(c.Z,{open:e.open,onClose:n,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",className:t.modal,BackdropComponent:f.Z,children:(0,g.jsxs)(y,{children:[(0,g.jsx)(j,{id:"modal-close",color:"secondary",onClick:n,"aria-label":"Close Modal",children:(0,g.jsx)(p.Z,{})}),(0,g.jsxs)(Z,{children:[(0,g.jsx)(L,{children:(0,g.jsx)(x.Z,{style:{color:"green",fontSize:"80"}})}),(0,g.jsx)(F,{children:"Thank you for your referral!"}),(0,g.jsx)(W,{children:"We will be in contact with you shortly"})]}),(0,g.jsx)(C,{children:(0,g.jsx)(u.Z,{onClick:function(){return l.push("/us/en")},children:"Lockton's Home Page"})})]})})};r.default=function(e){e.content;var r=T(),a={ReferrerFirstName:{name:"ReferrerFirstName",label:"Referrer First Name",value:"",outlined:!0,required:!0,fullWidth:!0,hasError:!1},ReferrerLastName:{name:"ReferrerLastName",label:"Referrer Last Name",value:"",outlined:!0,required:!0,fullWidth:!0,hasError:!1},ReferrerPhone:{name:"ReferrerPhone",label:"Referrer Phone Number",value:"",outlined:!0,required:!0,fullWidth:!0,hasError:!1},ReferrerEmail:{name:"ReferrerEmail",label:"Referrer Email Address",value:"",outlined:!0,required:!0,fullWidth:!0,hasError:!1},ReferralFirstName:{name:"ReferralFirstName",label:"Referral First Name",value:"",outlined:!0,required:!0,fullWidth:!0,hasError:!1},ReferralLastName:{name:"ReferralLastName",label:"Referral Last Name",value:"",outlined:!0,required:!0,fullWidth:!0,hasError:!1},ReferralCompany:{name:"ReferralCompany",label:"Referral Company",value:"",outlined:!0,required:!0,fullWidth:!0,hasError:!1},ReferralEmail:{name:"ReferralEmail",label:"Referral Email Address",value:"",outlined:!0,required:!0,fullWidth:!0,hasError:!1},ReferralPhone:{name:"ReferralPhone",label:"Referral Phone Number",value:"",outlined:!0,required:!0,fullWidth:!0,hasError:!1},ReferalType:{name:"ReferalType",label:"Type of Referral",value:"",outlined:!0,required:!0,fullWidth:!0,hasError:!1},ProducerName:{name:"ProducerName",label:"Lockton Producer Name",value:"",outlined:!0,required:!0,fullWidth:!0,hasError:!1}},i=(0,t.useState)(a),o=i[0],d=i[1],f=(0,t.useState)(!1),h=f[0],c=f[1],p=(0,t.useState)(["Benefits","P&C","PRS","Executive Benefits","One Time Project","Transaction Liability","Lockton Financial Services"]),R=p[0],v=(p[1],(0,t.useState)(!1)),x=v[0],P=v[1],y="This is a required field",j="Enter Valid Email Address",Z="Enter Valid Phone Number",C=function(e){var r=o[e.target.name],a=!r.required||!W(e.target.value)&&("email"!==r.name||O(e.target.value));d(E(E({},o),{},(0,l.Z)({},e.target.name,E(E({},o[e.target.name]),{},{value:e.target.value,hasError:!a}))))},L=function(e){W(e.target.value)?d(E(E({},o),{},(0,l.Z)({},e.target.name,E(E({},o[e.target.name]),{},{value:e.target.value,hasError:!0})))):O(e.target.value)?d(E(E({},o),{},(0,l.Z)({},e.target.name,E(E({},o[e.target.name]),{},{value:e.target.value,hasError:!1,invalidEmail:!1})))):d(E(E({},o),{},(0,l.Z)({},e.target.name,E(E({},o[e.target.name]),{},{value:e.target.value,hasError:!0,invalidEmail:!0}))))},F=function(e){W(e.target.value)?d(E(E({},o),{},(0,l.Z)({},e.target.name,E(E({},o[e.target.name]),{},{value:e.target.value,hasError:!0})))):_(e.target.value)?d(E(E({},o),{},(0,l.Z)({},e.target.name,E(E({},o[e.target.name]),{},{value:e.target.value,hasError:!1,invalidPhone:!1})))):d(E(E({},o),{},(0,l.Z)({},e.target.name,E(E({},o[e.target.name]),{},{value:e.target.value,hasError:!0,invalidPhone:!0}))))},W=function(e){return""===e},O=function(e){return/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e)},_=function(e){return/^[0-9*#+()-]+$/.test(e)};return(0,g.jsxs)(b,{maxWidth:"md",children:[(0,g.jsxs)("form",{className:r.root,onSubmit:function(e){e.preventDefault();var r,l={},t=Object.keys(o).map((function(e){var r=o[e],a=!r.required||!W(r.value)&&("ReferrerEmail"!==e&&"ReferralEmail"!==e||O(r.value))&&("ReferrerPhone"!==e&&"ReferralPhone"!==e||_(r.value));return l[r.name]=E(E({},r),{},{hasError:!a}),a}));d(l),-1===t.indexOf(!1)?fetch("https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8",{method:"POST",mode:"no-cors",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:(r={oid:"00Dj0000001rLEY",retURL:"https://global.lockton.com/us/en","00N5e00000f0cpd":o.ReferrerFirstName.value,"00N5e00000f0cpi":o.ReferrerLastName.value,"00N5e00000f19m0":o.ReferrerEmail.value,"00N5e00000f0cpn":o.ReferrerPhone.value,first_name:o.ReferralFirstName.value,last_name:o.ReferralLastName.value,company:o.ReferralCompany.value,email:o.ReferralEmail.value,phone:o.ReferralPhone.value,"00N5e00000f0cps":o.ReferalType.value,"00N5e00000f0cpx":o.ProducerName.value},Object.keys(r).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(r[e])})).join("&"))}).then((function(e){P(!0),c(!1),d(a)})).catch((function(e){c(!0)})):c(!0)},children:[(0,g.jsxs)(n.ZP,{container:!0,spacing:4,children:[(0,g.jsx)(n.ZP,{item:!0,xs:12,md:6,children:(0,g.jsx)(m.Z,{id:a.ReferrerFirstName.name,name:a.ReferrerFirstName.name,label:a.ReferrerFirstName.label,onChange:C,value:o.ReferrerFirstName.value,variant:"outlined",error:o.ReferrerFirstName.hasError,helperText:o.ReferrerFirstName.hasError&&y,fullWidth:a.ReferrerFirstName.fullWidth,inputProps:{maxLength:225}})}),(0,g.jsx)(n.ZP,{item:!0,xs:12,md:6,children:(0,g.jsx)(m.Z,{id:a.ReferrerLastName.name,name:a.ReferrerLastName.name,label:a.ReferrerLastName.label,onChange:C,value:o.ReferrerLastName.value,variant:"outlined",error:o.ReferrerLastName.hasError,helperText:o.ReferrerLastName.hasError&&y,fullWidth:a.ReferrerLastName.fullWidth,inputProps:{maxLength:225}})}),(0,g.jsx)(n.ZP,{item:!0,xs:12,md:6,children:(0,g.jsx)(m.Z,{id:a.ReferrerEmail.name,name:a.ReferrerEmail.name,label:a.ReferrerEmail.label,onChange:L,value:o.ReferrerEmail.value,variant:"outlined",error:o.ReferrerEmail.hasError,helperText:o.ReferrerEmail.invalidEmail?j:o.ReferrerEmail.hasError&&y,fullWidth:a.ReferrerEmail.fullWidth,inputProps:{maxLength:80}})}),(0,g.jsx)(n.ZP,{item:!0,xs:12,md:6,children:(0,g.jsx)(m.Z,{id:a.ReferrerPhone.name,name:a.ReferrerPhone.name,label:a.ReferrerPhone.label,onChange:F,value:o.ReferrerPhone.value,variant:"outlined",error:o.ReferrerPhone.hasError,helperText:o.ReferrerPhone.invalidPhone?Z:o.ReferrerPhone.hasError&&y,fullWidth:a.ReferrerPhone.fullWidth,inputProps:{maxLength:40}})}),(0,g.jsx)(n.ZP,{item:!0,xs:12,md:6,children:(0,g.jsx)(m.Z,{id:a.ReferralFirstName.name,name:a.ReferralFirstName.name,label:a.ReferralFirstName.label,onChange:C,value:o.ReferralFirstName.value,variant:"outlined",error:o.ReferralFirstName.hasError,helperText:o.ReferralFirstName.hasError&&y,fullWidth:a.ReferralFirstName.fullWidth,inputProps:{maxLength:40}})}),(0,g.jsx)(n.ZP,{item:!0,xs:12,md:6,children:(0,g.jsx)(m.Z,{id:a.ReferralLastName.name,name:a.ReferralLastName.name,label:a.ReferralLastName.label,onChange:C,value:o.ReferralLastName.value,variant:"outlined",error:o.ReferralLastName.hasError,helperText:o.ReferralLastName.hasError&&y,fullWidth:a.ReferralLastName.fullWidth,inputProps:{maxLength:80}})}),(0,g.jsx)(n.ZP,{item:!0,xs:12,md:6,children:(0,g.jsx)(m.Z,{id:a.ReferralCompany.name,name:a.ReferralCompany.name,label:a.ReferralCompany.label,onChange:C,value:o.ReferralCompany.value,variant:"outlined",error:o.ReferralCompany.hasError,helperText:o.ReferralCompany.hasError&&y,fullWidth:a.ReferralCompany.fullWidth,inputProps:{maxLength:40}})}),(0,g.jsx)(n.ZP,{item:!0,xs:12,md:6,children:(0,g.jsx)(m.Z,{id:a.ReferralEmail.name,name:a.ReferralEmail.name,label:a.ReferralEmail.label,onChange:L,value:o.ReferralEmail.value,variant:"outlined",error:o.ReferralEmail.hasError,helperText:o.ReferralEmail.invalidEmail?j:o.ReferralEmail.hasError&&y,fullWidth:a.ReferralEmail.fullWidth,inputProps:{maxLength:80}})}),(0,g.jsx)(n.ZP,{item:!0,xs:12,md:6,children:(0,g.jsx)(m.Z,{id:a.ReferralPhone.name,name:a.ReferralPhone.name,label:a.ReferralPhone.label,onChange:F,value:o.ReferralPhone.value,variant:"outlined",error:o.ReferralPhone.hasError,helperText:o.ReferralPhone.invalidPhone?Z:o.ReferralPhone.hasError&&y,fullWidth:a.ReferralPhone.fullWidth,inputProps:{maxLength:40}})}),(0,g.jsx)(n.ZP,{item:!0,xs:12,md:6,children:(0,g.jsx)(m.Z,{id:a.ReferalType.name,name:a.ReferalType.name,label:a.ReferalType.label,select:!0,value:o.ReferalType.value,onChange:C,variant:"outlined",error:o.ReferalType.hasError,helperText:o.ReferalType.hasError&&y,fullWidth:a.ReferalType.fullWidth,children:R.map((function(e){return(0,g.jsx)(s.Z,{value:e,children:e},e)}))})}),(0,g.jsx)(n.ZP,{item:!0,xs:12,children:(0,g.jsx)(m.Z,{id:a.ProducerName.name,name:a.ProducerName.name,label:a.ProducerName.label,onChange:C,value:o.ProducerName.value,variant:"outlined",error:o.ProducerName.hasError,helperText:o.ProducerName.hasError&&y,fullWidth:a.ProducerName.fullWidth,inputProps:{maxLength:225}})}),(0,g.jsx)(n.ZP,{item:!0,xs:12,children:(0,g.jsx)(u.Z,{type:"submit",children:"Submit"})})]}),h&&(0,g.jsx)(N,{error:!0,children:"There was some error while submitting data"})]}),(0,g.jsx)(w,{open:x,changeModalStatus:P,clearForm:function(){d(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.