PageSourceSearch

https://www.beazley.com/dist-client/Login-91d1257d824a7797ae63.js

js beazley.com collected 2026-09-24 09:03:54 UTC 11,074 bytes, 2 lines download raw bytes

1/*! For license information please see Login-91d1257d824a7797ae63.js.LICENSE.txt */
2"use strict";(globalThis.webpackChunkbeasley_design=globalThis.webpackChunkbeasley_design||[]).push([[7094],{1366(e,t,i){i.r(t),i.d(t,{default:()=>d});var l=i(4848),r=i(6540);const o=(0,r.createContext)(null),n={didCatch:!1,error:null};class a extends r.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=n}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,i,l=arguments.length,r=new Array(l),o=0;o<l;o++)r[o]=arguments[o];null===(t=(i=this.props).onReset)||void 0===t||t.call(i,{args:r,reason:"imperative-api"}),this.setState(n)}}componentDidCatch(e,t){var i,l;null===(i=(l=this.props).onError)||void 0===i||i.call(l,e,t)}componentDidUpdate(e,t){const{didCatch:i}=this.state,{resetKeys:l}=this.props;var r,o;i&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,i)=>!Object.is(e,t[i]))}(e.resetKeys,l)&&(null===(r=(o=this.props).onReset)||void 0===r||r.call(o,{next:l,prev:e.resetKeys,reason:"keys"}),this.setState(n))}render(){const{children:e,fallbackRender:t,FallbackComponent:i,fallback:l}=this.props,{didCatch:n,error:a}=this.state;let s=e;if(n){const e={error:a,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)s=t(e);else if(i)s=(0,r.createElement)(i,e);else{if(void 0===l)throw a;s=l}}return(0,r.createElement)(o.Provider,{value:{didCatch:n,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}var s=i(1734);const d=function(e,t){const i=(0,r.forwardRef)((i,l)=>(0,r.createElement)(a,t,(0,r.createElement)(e,{...i,ref:l}))),l=e.displayName||e.name||"Unknown";return i.displayName="withErrorBoundary(".concat(l,")"),i}(e=>{var t,i,o,n,a;const[d,c]=r.useState(function(){var t;const i=null!==(t=e.locations)&&void 0!==t?t:[];if(!i.length)return;return i.find(e=>null==e?void 0:e.active)}()),[u,p]=r.useState(),[v,m]=r.useState(!1),h=r.useMemo(()=>{var e,t,i,l,r,o,n,a;if((null==u?void 0:u.login)||(null==d?void 0:d.login))return{ariaLabel:u?null===(e=u.login)||void 0===e?void 0:e.ariaLabel:null===(t=null==d?void 0:d.login)||void 0===t?void 0:t.ariaLabel,url:u?null===(i=u.login)||void 0===i?void 0:i.url:null===(l=null==d?void 0:d.login)||void 0===l?void 0:l.url,text:u?null===(r=u.login)||void 0===r?void 0:r.text:null===(o=null==d?void 0:d.login)||void 0===o?void 0:o.text,target:u?null===(n=u.login)||void 0===n?void 0:n.target:null===(a=null==d?void 0:d.login)||void 0===a?void 0:a.target}},[u,d]),g=r.useMemo(()=>{var e,t,i,l,r,o,n,a;if((null==u?void 0:u.register)||(null==d?void 0:d.register))return{ariaLabel:u?null===(e=u.register)||void 0===e?void 0:e.ariaLabel:null===(t=null==d?void 0:d.register)||void 0===t?void 0:t.ariaLabel,url:u?null===(i=u.register)||void 0===i?void 0:i.url:null===(l=null==d?void 0:d.register)||void 0===l?void 0:l.url,text:u?null===(r=u.register)||void 0===r?void 0:r.text:null===(o=null==d?void 0:d.register)||void 0===o?void 0:o.text,target:u?null===(n=u.register)||void 0===n?void 0:n.target:null===(a=null==d?void 0:d.register)||void 0===a?void 0:a.target}},[u,d]),x=e=>{var t;(null===(t=null==d?void 0:d.specialities)||void 0===t?void 0:t.length)&&!u&&(e.preventDefault(),m(!0))};Boolean(g)&&/^mailto:/i.test(null!==(t=null==g?void 0:g.url)&&void 0!==t?t:"");return(0,l.jsx)("div",{className:"container-fluid section-spacing",children:(0,l.jsxs)("div",{className:"flex min-h-[540px] flex-col overflow-hidden rounded-b-[20px] rounded-t-[20px] shadow-card sm:flex-row sm:rounded-l-[20px] sm:rounded-r-[20px]",children:[(0,l.jsxs)("div",{className:"container-fluid section-spacing theme-amethyst relative bg-background !px-[18px] !pt-[60px] text-neutral-white sm:rounded-tr-none sm:!px-16 sm:!pt-20 sm:text-platinum-base",children:[e.title&&(0,l.jsx)("h2",{className:"mb-[10px] font-headline text-s-h4 sm:mb-5 sm:font-serif sm:text-s-h2","data-testid":"loginTitle",children:e.title}),e.subTitle&&(0,l.jsx)("p",{className:"font-sans text-s-subcopy sm:text-s-body","data-testid":"loginSubTitle",children:e.subTitle}),e.image&&(0,l.jsx)(s.A,{className:"absolute -bottom-5 -right-[70px] object-contain sm:-right-24 sm:bottom-2",image:{altText:e.image.altText,url:e.image.url},sizes:["(min-width: 800px) 50vw","100vw"]}
2)]}),(0,l.jsxs)("div",{className:"container-fluid section-spacing z-9  bg-neutral-white !px-[18px] !pt-[73px] font-sans text-[14px] sm:!px-24 sm:!pt-24 sm:text-[16px]",children:[(0,l.jsxs)("label",{htmlFor:"location",className:"relative flex items-center justify-end",children:[(0,l.jsxs)("select",{className:"select-custom-arrow w-full appearance-none rounded-md border-[1px] border-solid border-silver-base bg-neutral-white py-[15px] pl-[15px] pr-[46px] text-s-body text-neutral-80 outline-none sm:py-5 sm:pl-5 focus-visible:outline focus-visible:outline-1 focus-visible:outline-amethyst-base",name:"location",id:"location",value:null==d?void 0:d.title,onChange:t=>{var i,l;const r=null===(i=e.locations)||void 0===i?void 0:i.find(e=>(null==e?void 0:e.title)===t.target.value);c(r),(null===(l=null==r?void 0:r.specialities)||void 0===l?void 0:l.length)||p(void 0),m(!1)},"data-testid":"loginLocationDropdown",children:[(0,l.jsx)("option",{value:"","data-testid":"loginLocationDropdownPlaceholder",children:e.locationPlaceholder}),null===(i=e.locations)||void 0===i?void 0:i.map((e,t)=>(0,l.jsx)("option",{value:null==e?void 0:e.title,"data-testid":`loginLocationDropdownOption-${t}`,children:null==e?void 0:e.title},t))]}),(0,l.jsx)("span",{className:"absolute -top-3 left-5 bg-neutral-white px-1 text-neutral-60",children:e.locationLabel})]}),Boolean(null===(o=null==d?void 0:d.specialities)||void 0===o?void 0:o.length)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("label",{htmlFor:"speciality",className:"relative flex items-center justify-end",children:(0,l.jsxs)("select",{className:`select-custom-arrow mt-5 w-full appearance-none rounded-md border-[1px] sm:mt-3 ${v&&"border-pezzottaite-base"} border-solid border-silver-base bg-neutral-white py-[15px] pl-5 pr-[46px] text-s-body text-neutral-80 outline-none focus-visible:outline focus-visible:outline-1 focus-visible:outline-amethyst-base`,name:"speciality",id:"speciality",onChange:e=>{var t;const i=null===(t=null==d?void 0:d.specialities)||void 0===t?void 0:t.find(t=>(null==t?void 0:t.title)===e.target.value);p(i),m(!1)},"data-testid":"loginSpecialityDropdown",children:[(0,l.jsx)("option",{className:"text-neutral-60",value:"","data-testid":"loginSpecialityDropdownPlaceholder",children:e.specialityPlaceholder}),null===(n=null==d?void 0:d.specialities)||void 0===n?void 0:n.map((e,t)=>(0,l.jsx)("option",{value:null==e?void 0:e.title,"data-testid":`loginSpecialityDropdownOption-${t}`,children:null==e?void 0:e.title},t))]})}),v&&(0,l.jsx)("p",{className:"mt-1 text-pezzottaite-base","data-testid":"loginSpecialityErrorText",children:e.requiredFieldMessage})]}),h&&(0,l.jsxs)("a",{className:"btn-primary mt-[30px] flex w-full justify-center py-4 font-normal sm:mt-10",href:h.url,"aria-label":h.ariaLabel,onClick:x,target:h.target,"data-testid":"loginCTA",children:[(0,l.jsx)("span",{children:h.text}),(0,l.jsx)("span",{className:"-mr-1 ml-4 h-3 w-3",children:(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"1.43 1.26 36.5 36.62","aria-hidden":"true","data-icon":"arrow-right",children:(0,l.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M29.328 21.864h-27.9v-4.585h27.9L16.923 4.451l3.296-3.187 15.487 16.015h.008v.009l2.209 2.283-2.209 2.284v.009h-.008L20.219 37.879l-3.296-3.187 12.405-12.828Z",clipRule:"evenodd"})})})]}),g&&!/^mailto:/i.test(null!==(a=g.url)&&void 0!==a?a:"")&&(0,l.jsxs)("div",{className:"mt-[30px] flex flex-col items-center sm:mt-10 sm:flex-row sm:justify-center sm:gap-1",children:[e.registeredLabel&&(0,l.jsx)("p",{"data-testid":"loginRegisterLabel",children:e.registeredLabel}),(0,l.jsx)("a",{className:"btn-tertiary underline","aria-current":"page",href:g.url,"aria-label":g.ariaLabel,onClick:x,target:g.target,"data-testid":"loginRegisterCTA",children:(0,l.jsx)("p",{children:g.text})})]})]})]})})},{fallbackRender:e=>(0,l.jsx)("pre",{children:JSON.stringify(e.error)})})},1734(e,t,i){i.d(t,{A:()=>c});var l=i(4848),r=i(1183);const o=[320,480,640,800,960,1120,1280,1440,1600,1760,1920];function n({width:e,quality:t=85,ratio:i,baseUrl:l,format:o,focalPoint:n}){const a=(0,r.JU)(i),s=(0,r.JU)(e),d=s*a,c=new URLSearchParams;return n&&c.append("rxy",n),o&&c.append("format",o),d&&c.append("height",d.toString()),t&&c.append("quality",t.toString()),s&&c.append("width",s.toString()),`${l}?${c}`}function a(e){return o.map(t=>[n(Object.assign(Object.assign({},e),{width:t})),`${t}w`])}function s(e){return e.map(e=>e.join(" ")).join(", ")}var d=function(e,t){var i={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(i[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(l=Object.getOwnPropertySymbols(e);r<l.length;r++)t.indexOf(l[r])<0&&Object.prototype.propertyIsEnumerable.call(e,l[r])&&(i[l[r]]=e[l[r]])}return i};const c=e=>{var t,i,{image:o,loading:n="lazy",sizes:c="100vw"}=e,u=d(e,["image","loading","sizes"]);const p=null!==(t=o.url)&&void 0!==t?t:"";if(!p)return null;const v=Array.isArray(c)?c.join(", "):c,m=(0,r.JU)(u.height),h=(0,r.JU)(u.width),g=m&&h?m/h:0,x=a({baseUrl:p,focalPoint:o.imageFocalPoint,ratio:g}),f=a({baseUrl:p,focalPoint:o.imageFocalPoint,format:"webp",ratio:g});return(0,l.jsxs)("picture",{"data-testid":"optiImage",className:"h-[128px] lg:h-[144px]",children:[(0,l.jsx)("source",{sizes:v,srcSet:s(f),type:"image/webp"}),(0,l.jsx)("img",Object.assign({},u,{alt:null!==(i=o.altText)&&void 0!==i?i:"",decoding:"eager"===n?"sync":"async",fetchPriority:"eager"===n?"high":"auto",loading:n,role:o.altText?void 0:"presentation",sizes:v,src:x[0][0],srcSet:s(x)}))]})}},1183(e,t,i){function l(e){if("number"==typeof e&&!Number.isNaN(e))return e;if("string"!=typeof e)return 0;const t=parseFloat(e);return Number.isNaN(t)?0:t}i.d(t,{AH:()=>o,Im:()=>r,JU:()=>l});const r=e=>null==e||""===e||Array.isArray(e)&&0===e.length||!(e instanceof Date)&&"object"==typeof e&&0===Object.keys(e).length,o=e=>{const t=(new DOMParser).parseFromString(e,"text/html");return Array.from(t.body.childNodes).some(e=>1===e.nodeType)}}
vendor: 614 bytes, line 2
2,1020(e,t,i){var l=i(6540),r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function d(e,t,i){var l,o={},d=null,c=null;for(l in void 0!==i&&(d=""+i),void 0!==t.key&&(d=""+t.key),void 0!==t.ref&&(c=t.ref),t)n.call(t,l)&&!s.hasOwnProperty(l)&&(o[l]=t[l]);if(e&&e.defaultProps)for(l in t=e.defaultProps)void 0===o[l]&&(o[l]=t[l]);return{$$typeof:r,type:e,key:d,ref:c,props:o,_owner:a.current}}t.Fragment=o,t.jsx=d,t.jsxs=d},4848(e,t,i){e.exports=i(1020)}}]);

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.