1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8927],{13882:function(e,t,l){"use strict";function n(e,t){if(t.length<e)throw TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}l.d(t,{Z:function(){return n}})},83946:function(e,t,l){"use strict";function n(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}l.d(t,{Z:function(){return n}})},36948:function(e,t,l){"use strict";l.d(t,{qk:function(){return a},vh:function(){return r},yJ:function(){return n}});var n=6e4,r=36e5,a=1e3},23855:function(e,t,l){"use strict";l.d(t,{Z:function(){return o}});var n=l(36948),r=l(13882),a=l(83946);function o(e,t){(0,r.Z)(1,arguments);var l,o,f,h=(0,a.Z)(null!==(l=null==t?void 0:t.additionalDigits)&&void 0!==l?l:2);if(2!==h&&1!==h&&0!==h)throw RangeError("additionalDigits must be 0, 1 or 2");if(!("string"==typeof e||"[object String]"===Object.prototype.toString.call(e)))return new Date(NaN);var x=function(e){var t,l={},n=e.split(i.dateTimeDelimiter);if(n.length>2)return l;if(/:/.test(n[0])?t=n[0]:(l.date=n[0],t=n[1],i.timeZoneDelimiter.test(l.date)&&(l.date=e.split(i.timeZoneDelimiter)[0],t=e.substr(l.date.length,e.length))),t){var r=i.timezone.exec(t);r?(l.time=t.replace(r[1],""),l.timezone=r[1]):l.time=t}return l}(e);if(x.date){var g=function(e,t){var l=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(l);if(!n)return{year:NaN,restDateString:""};var r=n[1]?parseInt(n[1]):null,a=n[2]?parseInt(n[2]):null;return{year:null===a?r:100*a,restDateString:e.slice((n[1]||n[2]).length)}}(x.date,h);o=function(e,t){if(null===t)return new Date(NaN);var l,n,r=e.match(s);if(!r)return new Date(NaN);var a=!!r[4],o=u(r[1]),i=u(r[2])-1,d=u(r[3]),c=u(r[4]),m=u(r[5])-1;if(a)return c>=1&&c<=53&&m>=0&&m<=6?((l=new Date(0)).setUTCFullYear(t,0,4),n=l.getUTCDay()||7,l.setUTCDate(l.getUTCDate()+((c-1)*7+m+1-n)),l):new Date(NaN);var f=new Date(0);return i>=0&&i<=11&&d>=1&&d<=(v[i]||(p(t)?29:28))&&o>=1&&o<=(p(t)?366:365)?(f.setUTCFullYear(t,i,Math.max(o,d)),f):new Date(NaN)}(g.restDateString,g.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var y=o.getTime(),b=0;if(x.time&&isNaN(b=function(e){var t=e.match(d);if(!t)return NaN;var l=m(t[1]),r=m(t[2]),a=m(t[3]);return(24===l?0===r&&0===a:a>=0&&a<60&&r>=0&&r<60&&l>=0&&l<25)?l*n.vh+r*n.yJ+1e3*a:NaN}(x.time)))return new Date(NaN);if(x.timezone){if(isNaN(f=function(e){if("Z"===e)return 0;var t=e.match(c);if(!t)return 0;var l="+"===t[1]?-1:1,r=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return a>=0&&a<=59?l*(r*n.vh+a*n.yJ):NaN}(x.timezone)))return new Date(NaN)}else{var w=new Date(y+b),N=new Date(0);return N.setFullYear(w.getUTCFullYear(),w.getUTCMonth(),w.getUTCDate()),N.setHours(w.getUTCHours(),w.getUTCMinutes(),w.getUTCSeconds(),w.getUTCMilliseconds()),N}return new Date(y+b+f)}var i={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},s=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,d=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,c=/^([+-])(\d{2})(?::?(\d{2}))?$/;function u(e){return e?parseInt(e):1}function m(e){return e&&parseFloat(e.replace(",","."))||0}var v=[31,null,31,30,31,30,31,31,30,31,30,31];function p(e){return e%400==0||e%4==0&&e%100!=0}},23493:function(e,t,l){var n=l(23279),r=l(13218);e.exports=function(e,t,l){var a=!0,o=!0;if("function"!=typeof e)throw TypeError("Expected a function");return r(l)&&(a="leading"in l?!!l.leading:a,o="trailing"in l?!!l.trailing:o),n(e,t,{leading:a,maxWait:t,trailing:o})}},25145:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/discovery/corporate-insurance",function(){return l(53359)}])},86262:function(e,t,l){"use strict";var n=l(85893),r=l(20929),a=l(36808),o=l.n(a),i=l(39666),s=l(20299),d=l(59888),c=l(94205);let u=e=>{let{type:t,customImage:l}=e;return l?(0,n.jsx)(n.Fragment,{children:l}):(0,n.jsx)("svg",{className:"block text-brand-lighter text-center fill-current h-12 w-12 overflow-visible",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M19.511 17.98L10.
1604 1.348a.697.697 0 0 0-1.208 0L.49 17.98a.675.675 0 0 0 .005.68c.125.211.352.34.598.34h17.814a.694.694 0 0 0 .598-.34.677.677 0 0 0 .006-.68zM11 17H9v-2h2v2zm0-3.5H9V7h2v6.5z"})})};t.Z=e=>{var t,l;let{type:a,title:m,message:v,addContactInfo:p=!0,customImage:f,hideImage:h,tryAgain:x,errorInfo:g,errorCode:y,showSignout:b=!1,...w}=e,{supportEmail:N}=(0,c.Z)();404!=y&&"Not logged in!"!==g&&(null===(l=window)||void 0===l?void 0:null===(t=l.location)||void 0===t?void 0:t.hostname)!=="localhost"&&r.fy.logger.error("User encountered the following error: ".concat(v),{details:{message:v,errorInfo:g,errorCode:y}});let{resetClient:j}=(0,s.X)();return(0,n.jsxs)("div",{className:"flex flex-col m-12 items-center py-4 px-2 border rounded shadow-md",children:[h?null:(0,n.jsx)(u,{type:a,customImage:f}),(0,n.jsx)("div",{className:"text-brand text-xl font-medium my-2",children:m}),(0,n.jsx)("div",{className:"text-oldGray-600",children:v}),b&&(0,n.jsx)("div",{children:(0,n.jsx)("button",{className:"text-brand my-4 font-semibold underline",onClick:()=>{o().remove("token"),o().remove("isPlanner"),j(),(0,i.e)(e=>e.setUser(null)),(0,d.Z)("/signin")},children:"Click here to sign out"})}),p&&N&&(0,n.jsxs)("div",{className:"text-oldGray-600 mt-1",children:[x&&"Try again or ","Contact"," ",(0,n.jsx)("a",{className:"text-brand",href:"mailto:".concat(N),children:N})," ","for help"]}),x&&!p&&(0,n.jsx)("div",{className:"text-oldGray-600 mt-1",children:"Please try again later."})]})}},32135:function(e,t,l){"use strict";var n=l(37340),r=l(85893),a=l(67294),o=l(11163),i=l(26997),s=l(92432),d=l(94539);function c(){let e=(0,n._)(["\n query ($page: String!) {\n messages(page: $page) {\n data\n }\n }\n"]);return c=function(){return e},e}let u=(0,i.Ps)(c()),m={error:{text:"text-red-700"},warning:{text:"text-orange-700"},opportunity:{text:"text-green-700"}};t.Z=e=>{var t,l,n,i,c,v,p,f,h,x,g,y,b,w,N,j,D;let{additionalStyles:_,customStyle:k}=e,C=(0,o.useRouter)(),S=(0,a.useMemo)(()=>{var e,t;let l=null==C?void 0:null===(e=C.pathname)||void 0===e?void 0:e.split("/")[2];return null==(l=null==l?void 0:null===(t=l.split("-"))||void 0===t?void 0:t.join("_"))?void 0:l.replace("projections","final_plan_projections")},[C]),[Z]=(0,s.aM)({query:u,requestPolicy:"network-only",variables:{page:S},pause:void 0===S}),{data:I,fetching:M,error:E}=Z,[P,F]=(0,a.useState)(!1),[T,U]=(0,a.useState)("opportunity"),G=null==I?void 0:null===(t=I.messages)||void 0===t?void 0:t.data[S],R=null==I?void 0:null===(n=I.messages)||void 0===n?void 0:null===(l=n.data)||void 0===l?void 0:l.counts[S],L=(0,a.useMemo)(()=>{let e=null==R?void 0:R.opportunity,t=null==R?void 0:R.warning,l=null==R?void 0:R.error,n=[];return e>0&&(n.push("".concat(e," Opportunit").concat(1===e?"y":"ies")),U("opportunity")),t>0&&(n.push("".concat(t," Warnin").concat(1===t?"g":"gs")),U("warning")),l>0&&(n.push("".concat(l," Erro").concat(1===l?"r":"rs")),U("error")),n.reverse().join(", ")},[R]);return R&&(null==R?void 0:R.total)!==0?(0,r.jsxs)(d.Z,{additionalStyle:_,customStyle:k,children:[(0,r.jsx)("div",{className:"py-2 ".concat(m[T].text),onClick:()=>F(!P),children:(0,r.jsxs)("div",{className:"flex flex-row items-center justify-between px-5 pt-3 pb-2",children:[(0,r.jsxs)("div",{className:"flex flex-row font-semibold break-words overflow-hidden items-center",children:[(0,r.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0z"})}),(0,r.jsx)("span",{className:"ml-2",children:L})]}),(0,r.jsxs)("div",{className:"flex flex-row items-center py-2 pl-2",children:[(0,r.jsx)("span",{className:"text-sm font-bold pr-2 w-[84px] h-[18px] cursor-default",children:!P&&"See Details"}),P?(0,r.jsx)("svg",{className:"inline-block overflow-visible text-current fill-current",width:"12",height:"9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M6.228.629L.494 7.099l1.338 1.51 4.396-4.96 4.397 4.96 1.338-1.51L6.228.63z"})}):(0,r.jsx)("svg",{className:"inline-block overflow-visible text-current fill-current",width:"12",height:"9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M6.229 8.254l5.734-6.47-1.338-1.51-4.396 4.96L1.832.274.494 1.784l5.735 6.47z"})})]})]})}),P?(0,r.jsxs)("div",{className:"border-t p-4",children:[(0,r.jsxs)("ul",{className:"grid grid-flow-row gap-y-4",children:[null==G?void 0:null===(i=G.error)||void 0===i?void 0:i.map(e=>{var t;return(0,r.jsxs)("li",{className:"",children:[(0,r.jsxs)("span",{className:"".concat(m.error.text," font-semibold"),children:["Error ",e.code]}),":"," ",(0,r.jsxs)("span",{className:"".concat(m.error.text),children:[e.message,null==e?void 0:null===(t=e.links)||void 0===t?void 0:t.map((t,l)=>(0,r.jsx)("a",{className:"",target:"_blank",href:null==t?void 0:t.link,children:null==t?void 0:t.text},"".concat(e.code,"_link_").concat(l)))]})]},e.code)}),null==G?void 0:null===(c=G.warning)||void 0===c?void 0:c.map(e=>{var t;return(0,r.jsxs)("li",{className:"",children:[(0,r.jsxs)("span",{className:"".concat(m.warning.text," font-semibold"),children:["Warning ",e.code]}),":"," ",(0,r.jsxs)("span",{className:"".concat(m.warning.text),children:[e.message,null==e?void 0:null===(t=e.links)||void 0===t?void 0:t.map((t,l)=>(0,r.jsx)("a",{className:"",target:"_blank",href:null==t?void 0:t.link,children:null==t?void 0:t.text},"".concat(e.code,"_link_").concat(l)))]})]},e.code)}),null==G?void 0:null===(v=G.opportunity)||void 0===v?void 0:v.map(e=>{var t;return(0,r.jsxs)("li",{className:"",children:[(0,r.jsxs)("span",{className:"".concat(m.opportunity.text," font-semibold"),children:["Opportunity ",e.code]}),":"," ",(0,r.jsxs)("span",{className:"".concat(m.opportunity.text),children:[e.message,null==e?void 0:null===(t=e.links)||void 0===t?void 0:t.map((t,l)=>(0,r.jsx)("a",{className:"",target:"_blank",href:null==t?void 0:t.link,children:null==t?void 0:t.text},"".concat(e.code,"_link_").concat(l)))]})]},e.code)})]}),(null==I?void 0:null===(f=I.messages)||void 0===f?void 0:null===(p=f.data)||void 0===p?void 0:p.shared)&&(0,r.jsxs)("div",{className:"mt-4",children:[(0,r.jsx)("span",{className:"".concat(m[T].text," font-bold"),children:null==I?void 0:null===(g=I.messages)||void 0===g?void 0:null===(x=g.data)||void 0===x?void 0:null===(h=x.shared)||void 0===h?void 0:h.header}),(null==I?void 0:null===(w=I.messages)||void 0===w?void 0:null===(b=w.data)||void 0===b?void 0:null===(y=b.shared)||void 0===y?void 0:y.message)&&(0,r.jsx)("div",{children:null==I?void 0:null===(D=I.messages)||void 0===D?void 0:null===(j=D.data)||void 0===j?void 0:null===(N=j.shared)||void 0===N?void 0:N.message})]})]}):null]}):null}},10253:function(e,t,l){"use strict";var n=l(85893);l(67294),t.Z=e=>{let{isVisible:t,content:l="Recalculating"}=e;return t?(0,n.jsx)("div",{className:"flex flex-col backdrop-blur-sm lg:pl-64 h-screen w-full justify-center items-center z-10 fixed top-0 left-0",children:(0,n.jsxs)("div",{className:"flex flex-col items-center",children:[(0,n.jsxs)("svg",{className:"animate-spin h-10 w-10 text-brand",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,n.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}
1),(0,n.jsx)("div",{className:"text-sm text-brand font-medium mt-1",children:l})]})}):null}},94539:function(e,t,l){"use strict";var n=l(85893);l(67294),t.Z=e=>(0,n.jsx)("div",{className:"".concat(e.customStyle?e.customStyle:"mx-4 shadow rounded bg-oldGray-100 border min-w-[240px]"," ").concat(e.additionalStyle?e.additionalStyle:""),children:e.children})},24782:function(e,t,l){"use strict";var n=l(37340),r=l(85893),a=l(99668),o=l(82175),i=l(93003),s=l(26997),d=l(92432),c=l(7817),u=l(16458);function m(){let e=(0,n._)(["\n mutation ($Section: String, $Comment: String) {\n saveComment(section: $Section, comment: $Comment) {\n family {\n commentData\n }\n }\n }\n"]);return m=function(){return e},e}let v=(0,s.Ps)(m());t.Z=e=>{let{section:t,...l}=e,[n,s]=(0,d.Db)(v),{meState:m,setMeState:p}=(0,c.Z)(),{state:f,dispatch:h}=(0,i.ZP)();return(0,r.jsx)(a.Z,{title:"Comments",isExpanded:!1,customStyle:l.customStyle,additionalStyle:l.additionalStyle,children:(0,r.jsx)("div",{className:"px-2 pt-2",children:(0,r.jsx)(o.J9,{initialValues:{comment:f[t]},onSubmit:e=>{s({Section:t,Comment:e.comment}).then(e=>{let{data:t}=e;void 0!==t.saveComment&&(m.me.family.commentData=t.saveComment.family.commentData,p(m))})},validate:e=>(h({type:"section-update",data:e.comment,section:t}),{}),children:e=>{let{errors:t,touched:l}=e;return(0,r.jsxs)(o.l0,{children:[(0,r.jsx)(o.gN,{name:"comment",component:u.Z,type:"textarea"}),(0,r.jsx)(i.vL,{})]})}})})})}},99668:function(e,t,l){"use strict";var n=l(85893),r=l(67294),a=l(94539);class o extends r.Component{toggleComponenet(){this.setState({isExpanded:!this.state.isExpanded})}render(){return(0,n.jsxs)(a.Z,{customStyle:this.props.customStyle,additionalStyle:this.props.additionalStyle,children:[(0,n.jsx)("div",{className:"py-2",onClick:this.toggleComponenet.bind(this),children:(0,n.jsxs)("div",{className:"flex flex-row items-start justify-between px-5 pt-3 pb-2",children:[(0,n.jsx)("div",{className:"flex flex-row flex-wrap font-semibold break-words overflow-hidden text-oldGray-800",children:this.props.title}),(0,n.jsx)("div",{className:"flex flex-row items-center py-2 pl-2",children:this.state.isExpanded?(0,n.jsx)("svg",{className:"inline-block overflow-visible",width:"12",height:"9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M6.228.629L.494 7.099l1.338 1.51 4.396-4.96 4.397 4.96 1.338-1.51L6.228.63z",fill:"#4F4F4F"})}):(0,n.jsx)("svg",{className:"inline-block overflow-visible",width:"12",height:"9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M6.229 8.254l5.734-6.47-1.338-1.51-4.396 4.96L1.832.274.494 1.784l5.735 6.47z",fill:"#4F4F4F"})})})]})}),this.props.alwaysShow&&(0,n.jsxs)("div",{className:"relative text-oldGray-700 flex flex-row z-0",children:[(0,n.jsx)("div",{className:"flex-grow pb-5 px-5",onClick:this.toggleComponenet.bind(this),children:this.props.alwaysShow}),(0,n.jsx)("div",{className:"flex-none",children:this.props.onDelete})]}),this.state.isExpanded?(0,n.jsx)("div",{className:"border-t",children:this.props.children}):null]})}constructor(e){super(e),this.state={isExpanded:void 0!==this.props.isExpanded&&this.props.isExpanded}}}t.Z=o},82502:function(e,t,l){"use strict";var n=l(85893);l(67294);var r=l(74931);t.Z=e=>{if(null===e.helpLink||void 0===e.helpLink)return null;let t=void 0!==e.helpLink.mode?e.helpLink.mode:"BEACON";return(0,n.jsx)("div",{className:"".concat(void 0===e.positionStyle?"absolute top-0 right-0 p-1":e.positionStyle),children:(0,n.jsxs)("a",{className:"flex flex-row items-center cursor-pointer",href:"BEACON"===t?void 0:e.helpLink.href,onClick:"BEACON"===t?()=>{try{Beacon("article",e.helpLink.articleID,{type:"modal"})}catch(e){(null==e?void 0:e.message)==="Beacon is not defined"&&r.ZP.error("Help popup blocked by ad-blocker.\nPlease disable ad-blocker or visit help.adviice.ca",{duration:7e3})}}:void 0,target:"BEACON"===t?void 0:"".concat(!0===e.helpLink.redirect?"_self":"_blank"),children:[(0,n.jsx)("span",{children:e.text}),(0,n.jsx)("svg",{className:"overflow-show inline-block p-1 fill-current text-brand opacity-75 h-8 w-8",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 21 20",children:(0,n.jsx)("path",{d:"M9.45 16h2.1v-2h-2.1v2zM10.5 0C4.704 0 0 4.48 0 10s4.704 10 10.5 10S21 15.52 21 10 16.296 0 10.5 0zm0 18c-4.6305 0-8.4-3.59-8.4-8s3.7695-8 8.4-8c4.6305 0 8.4 3.59 8.4 8s-3.7695 8-8.4 8zm0-14C8.1795 4 6.3 5.79 6.3 8h2.1c0-1.1.945-2 2.1-2 1.155 0 2.1.9 2.1 2 0 2-3.15 1.75-3.15 5h2.1c0-2.25 3.15-2.5 3.15-5 0-2.21-1.8795-4-4.2-4z"})})]})})}},93003:function(e,t,l){"use strict";l.d(t,{k7:function(){return g},se:function(){return h},vL:function(){return x},xw:function(){return y}});var n=l(67294),r=l(11521),a=l(82175),o=l(69590),i=l.n(o),s=l(23279),d=l.n(s);class c extends n.Component{componentDidUpdate(e){i()(e.formik.values,this.props.formik.values)||this.saveForm(this.props.formik)}render(){return null}constructor(...e){super(...e),this.saveForm=d()(e=>{let{isSubmitting:t,values:l,handleSubmit:n,...r}=e;n(l)},this.props.debounce)}}c.defaultProps={debounce:1e3};class u extends n.Component{componentDidUpdate(e){!this.props.calculating&&!e.calculating&&(void 0===e.formik.values||i()(e.formik.values,this.props.formik.values)||this.saveForm(this.props.formik))}render(){return null}constructor(...e){super(...e),this.saveForm=d()(e=>{let{isSubmitting:t,values:l,handleSubmit:n,...r}=e;n(l)},this.props.debounce)}}u.defaultProps={debounce:200};class m extends n.Component{componentDidUpdate(e){i()(e.formik.values,this.props.formik.values)||this.saveForm(this.props.formik)}render(){return null}constructor(...e){super(...e),this.saveForm=d()(e=>{let{isSubmitting:t,values:l,handleSubmit:n,...r}=e;n(l)},this.props.debounce)}}m.defaultProps={debounce:200};class v extends n.Component{componentDidUpdate(){this.props.simpleModeChanged&&(this.localFormForceResave=!0),this.localFormForceResave&&(this.localFormForceResave=!1,this.saveForm(this.props.formik),this.props.setSimpleModeChanged(!1))}componentDidMount(){this.props.formik.validateForm(this.props.formik.values)}render(){return null}constructor(e){super(e),this.saveForm=d()(e=>{let{isSubmitting:t,values:l,handleSubmit:n,...r}=e;n(l)},200),this.localFormForceResave=!1}}let p=(0,r.Z)(function(){let{initialValues:e={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,l]=(0,n.useReducer)(f,e);return{state:t,dispatch:l}});function f(e,t){switch(t.type){case"form-update":if(void 0!==t.nested)return{...e,[t.form]:{...e[t.form],[t.nested]:{...t.data,total:t.total},total:t.data.outer_total}};if(void 0!==t.total)return{...e,[t.form]:{...t.data,total:t.total}};return{...e,[t.form]:{...t.data}};case"form-create":return{...t.data};case"profile-update":return{primary:{...e.primary,...t.data.primary},secondary:{...e.secondary,...t.data.secondary},shared:{...e.shared,...t.data.shared}};case"document-upload-update":return{...e,...t.data};case"section-update":return{...e,[t.section]:t.data};case"shared-field-update":return{...e,[t.targetForm]:{...e[t.targetForm],...t.data}};default:throw Error()}}t.ZP=p;let h=(0,a.$j)(c),x=(0,a.$j)(m),g=(0,a.$j)(u),y=(0,a.$j)(v)},64651:function(e,t,l){"use strict";var n=l(85893),r=l(67294),a=l(47009),o=l(99094),i=l(7817);t.Z=e=>{var t,l;let{gridRef:s,getColDefOverrideMapping:d,cellValueChanged:c,rowData:u,colDefs:m,tableContext:v={},tableHeight:p="90vh",autoHeight:f=!1,isSortable:h=!1}=e,{meState:x,setMeState:g}=(0,i.Z)(),[y,b]=(0,r.useState)(null!=m?m:[]),[w,N]=(0,r.useState)({}),j=(0,r.useCallback)(()=>{var e,t,l,n,r,a;let o={};for(let i of null!==(l=null==s?void 0:null===(t=s.current)||void 0===t?void 0:null===(e=t.columnApi)||void 0===e?void 0:e.getColumnGroupState())&&void 0!==l?l:[]){let e=null==s?void 0:null===(r=s.current)||void 0===r?void 0:null===(n=r.columnApi)||void 0===n?void 0:n.getProvidedColumnGroup(null==i?void 0:i.groupId),t=null==e?void 0:null===(a=e.colGroupDef)||void 0===a?void 0:a.headerName;void 0!==t&&(o[t]={open:null==i?void 0:i.open})}N(o)},[s]);(0,r.useEffect)(()=>{j(),(0,o.k)(y,null!=m?m:[])||b(null!=m?m:[])},[y,m,j]);let D=(0,r.useMemo)(()=>
1{if(void 0===d)return y;let e=[];for(let t of null!=y?y:[]){let l=d(t);e.push({...t,...l})}return e},[d,y]);(0,r.useEffect)(()=>{var e,t,l,n,r,a,o,i;if(0==Object.keys(w).length)return;let d=[];for(let l of null!==(r=null==s?void 0:null===(t=s.current)||void 0===t?void 0:null===(e=t.columnApi)||void 0===e?void 0:e.getColumnGroupState())&&void 0!==r?r:[]){let e=null==s?void 0:null===(o=s.current)||void 0===o?void 0:null===(a=o.columnApi)||void 0===a?void 0:a.getProvidedColumnGroup(null==l?void 0:l.groupId),t=null==e?void 0:null===(i=e.colGroupDef)||void 0===i?void 0:i.headerName;void 0!==t&&void 0!==w[t]&&d.push({...l,...w[t]})}null==s||null===(n=s.current)||void 0===n||null===(l=n.columnApi)||void 0===l||l.setColumnGroupState(d)},[D]);let _=(0,r.useMemo)(()=>({editable:!1,sortable:h,resizable:!1,cellEditorPopup:!0,autoHeaderHeight:!0,suppressKeyboardEvent:e=>null==e?void 0:e.editing}),[]),k=(0,r.useMemo)(()=>{var e,t;return{suppressMovableColumns:!0,enableCellTextSelection:!0,ensureDomOrder:!0,context:{...v,isTrialUser:null==x?void 0:null===(t=x.me)||void 0===t?void 0:null===(e=t.family)||void 0===e?void 0:e.isTrialUser}}},[null==x?void 0:null===(l=x.me)||void 0===l?void 0:null===(t=l.family)||void 0===t?void 0:t.isTrialUser,v]);return(0,n.jsx)("div",{className:"ag-theme-alpine overflow-hidden",style:{height:f?"auto":p},children:(0,n.jsx)(a.AgGridReact,{ref:s,columnDefs:D,defaultColDef:_,rowData:u,gridOptions:k,onCellValueChanged:c,stopEditingWhenCellsLoseFocus:!0,suppressServerSideInfiniteScroll:!0,onGridReady:()=>{j()},domLayout:f?"autoHeight":"normal"})})}},89394:function(e,t,l){"use strict";var n=l(67294),r=l(11521);let a=(0,r.Z)(function(){let{initialValues:e={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,l]=(0,n.useReducer)(o,e);return{state:t,dispatch:l}});function o(e,t){switch(t.type){case"update":case"update-recalculate":return{...e,...t.data};case"update-metaData":return{...e,metaData:{...e.metaData,...t.data}};case"update-advanced-options":return{...e,metaData:{...e.metaData,advanced_options:{...t.data}}};default:throw Error()}}t.Z=a},58321:function(e,t,l){"use strict";var n=l(85893),r=l(67294),a=l(57333);let o=(0,r.memo)(e=>{let{value:t,decimalScale:l=0,alwaysShowDecimals:r=!1}=e;return(0,n.jsx)(a.Z,{decimalScale:l,fixedDecimalScale:r,prefix:"$",value:t,isNumericString:!0,displayType:"text",thousandSeparator:!0})});t.Z=o},28806:function(e,t,l){"use strict";var n=l(85893),r=l(67294),a=l(57333);let o=(0,r.memo)((0,r.forwardRef)((e,t)=>{var l,o,i,s,d;let[c,u]=(0,r.useState)(e.value),[m,v]=(0,r.useState)(null),[p,f]=(0,r.useState)(null),[h,x]=(0,r.useState)(!1),[g,y]=(0,r.useState)(!1),b=(0,r.useRef)(null),[w,N]=(0,r.useState)(!1),j=(null===(l=e.colDef.field)||void 0===l?void 0:l.toLowerCase().includes("secondary"))?"age_secondary":"age_primary",D=e.colDef.field,_=e.data.metaData.defaultValue[D],k=null==e?void 0:null===(d=e.columnApi)||void 0===d?void 0:null===(s=d.columnModel)||void 0===s?void 0:null===(i=s.gridOptionsService)||void 0===i?void 0:null===(o=i.gridOptions)||void 0===o?void 0:o.onCellValueChanged;(0,r.useImperativeHandle)(t,()=>({getValue(){let t=e.node.data;if(e.node.data={...t,metaData:{...t.metaData,edited:{...t.metaData.edited,[D]:!g}}},void 0!==k&&k({...e,...e.node}),g)return _;let l=c;if((null==l||""===l)&&(l=_),null===p){let t=null!=m?m:0;h&&(t+=e.data.metaData.inflation),t>0&&(l*=Math.pow(1+t/100,1),l=Math.round(l))}return Math.round(l)},isCancelAfterEnd:()=>!w}));let C=(0,r.useCallback)(()=>{let t=0,l=[];e.api.forEachNode((n,r)=>{if(r<e.rowIndex||n.rowIndex>=10&&e.colDef.isTrialUser)return;let a={...n.data};if(a[j]>p)return;let o=0;t>0&&(h&&(o=a.metaData.inflation),o+=null!=m?m:0);let i=c;(null==i||""===i)&&(i=_),o>0&&(i*=Math.pow(1+o/100,t)),i=Math.round(i),g?(i=n.data.metaData.defaultValue[D],a[D]=i,a.metaData={...a.metaData,edited:{...a.metaData.edited,[D]:!1}}):(a[D]=i,a.metaData={...a.metaData,edited:{...a.metaData.edited,[D]:!0}}),n.setData(a),l.push(a),void 0!==k&&k({...e,...n}),t++}),e.api.refreshCells({rowNodes:l,columns:[D],force:!0})},[p,j,g,D,_,h,k,m,e,c]),S=(0,r.useCallback)(async()=>
1{if(await N(!0),null!==p){C(),e.stopEditing();return}e.stopEditing()},[p,C,e]);return(0,r.useEffect)(()=>{let e=e=>{[9,13].includes(e.keyCode)&&(e.stopPropagation(),13===e.keyCode&&S())};return addEventListener("keydown",e),()=>{removeEventListener("keydown",e)}},[S]),(0,r.useEffect)(()=>{b.current.focus(),b.current.select()},[]),(0,n.jsxs)("div",{className:"p-4 min-w-[300px]",children:[(0,n.jsx)("div",{className:"text-brand font-semibold text-lg text-center mb-4",children:"Enter Dollar Amount"}),(0,n.jsx)(a.Z,{getInputRef:b,className:"form-input brand-input",allowNegative:!0,value:c,decimalScale:2,isNumericString:!0,thousandSeparator:!0,prefix:"$",placeholder:"$".concat(null==_?void 0:_.toFixed(2)),onValueChange:e=>{u(null==e?void 0:e.floatValue)}}),(0,n.jsxs)("div",{className:"flex flex-col mt-2 border border-oldGray-300 rounded p-2",children:[(0,n.jsxs)("div",{className:"flex flex-row items-center",children:[(0,n.jsx)("label",{htmlFor:"inflation_increase",className:"mr-2",children:"Increase by inflation"}),(0,n.jsx)("input",{checked:h,onChange:e=>x(e.target.checked),type:"checkbox",id:"inflation_increase",name:"inflation_increase",className:"form-checkbox brand-checkbox h-5 w-5",tabIndex:-1})]}),(0,n.jsxs)("div",{className:"flex flex-row items-center mt-2",children:[(0,n.jsx)("div",{className:"font-semibold mr-1",children:"OR"}),(0,n.jsx)("div",{className:"w-3/6",children:"Increase By"}),(0,n.jsx)(a.Z,{className:"p-2 border border-brand-lightest rounded w-full outline-none focus:border-brand-lighter text-brand",value:m,isNumericString:!0,allowNegative:!1,decimalScale:2,placeholder:"0%",suffix:"%",onValueChange:e=>{var t;v(null!==(t=e.floatValue)&&void 0!==t?t:null)}})]})]}),(0,n.jsxs)("div",{className:"flex flex-col mt-2 border border-oldGray-300 rounded p-2",children:[(0,n.jsx)("div",{className:"flex flex-row items-center",children:(0,n.jsxs)("label",{htmlFor:"cascade_save",className:"",children:["Update all rows starting from age ",e.data[j]]})}),(0,n.jsxs)("div",{className:"flex flex-row items-center mt-2",children:[(0,n.jsx)("div",{className:"w-3/6",children:"Until Age"}),(0,n.jsx)(a.Z,{className:"p-2 border border-brand-lightest rounded w-full outline-none focus:border-brand-lighter text-brand",value:p,isNumericString:!0,decimalScale:0,placeholder:"Enter Age",onValueChange:e=>{var t;f(null!==(t=e.floatValue)&&void 0!==t?t:null)}})]})]}),(0,n.jsxs)("div",{className:"flex flex-row items-center mt-2",children:[(0,n.jsx)("label",{htmlFor:"clear_override",className:"mr-2",children:"Clear Override"}),(0,n.jsx)("input",{checked:g,onChange:e=>y(e.target.checked),type:"checkbox",id:"clear_override",name:"clear_override",className:"form-checkbox brand-checkbox h-5 w-5",tabIndex:-1})]}),(0,n.jsxs)("div",{className:"mt-8 flex flex-row justify-end",children:[(0,n.jsx)("button",{className:"block px-4 py-2 rounded border border-oldGray-600 text-oldGray-600 hover:bg-oldGray-600 hover:text-white font-semibold",onClick:()=>{e.api.stopEditing(!0)},tabIndex:-1,children:"Cancel"}),(0,n.jsx)("button",{className:"block ml-4 px-4 py-2 rounded border border-brand text-brand hover:bg-brand hover:text-white font-semibold",onClick:S,tabIndex:-1,children:"Save"})]})]})}));t.Z=o},99094:function(e,t,l){"use strict";l.d(t,{g:function(){return r},k:function(){return a}});var n=l(63417);let r=(e,t,l,r)=>{let a=[];for(let o of t){let t={...o,...l};"editable"in o?(t.editable=o.editable&&((null==l?void 0:l.editable)===void 0||(null==l?void 0:l.editable)),t.editable&&(t.cellStyle=t=>(0,n.Z)(t,e))):t.editable=!1,void 0!==r&&"children"in o&&(t.children=r(o.headerName,o.children)),a.push(t)}return a},a=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let l=0;l<Object.keys(e).length;l++){let n=e[l],r=t[l];if(n.headerName!==r.headerName||n.field!==r.field||n.editable!==r.editable)return!1;if(n.children){let e=a(n.children,r.children);if(!e)return!1}}return!0}},63417:function(e,t){"use strict";t.Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#23cc14",l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(l)return{};if(!e.data.metaData||!e.data.metaData.edited)return null;let n=e.colDef.field,r=!0===e.data.metaData.edited[n]?"#cc1a14":t;return{color:r,fontWeight:600}}},53359:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return L}});var n=l(37340),r=l(85893),a=l(67294),o=l(26997),i=l(92432),s=l(31704),d=l(7817),c=l(66759),u=l(86262),m=l(81988);l(82502);var v=l(89394),p=l(51042),f=l(24782),h=l(93003),x=l(74931),g=l(10253),y=l(32135),b=l(39666),w=l(58321),N=l(99094),j=l(28806),D=l(63417),_=l(94205),k=l(64651),C=l(23279),S=l.n(C),Z=l(23493),I=l.n(Z),M=l(82175),E=l(16458),P=l(99668);function F(){let e=(0,n._)(["\n mutation ($Action: String!, $RowData: GenericScalar, $MetaData: GenericScalar) {\n corporateInsuranceMutation(action: $Action, rowData: $RowData, metaData: $MetaData) {\
1n family {\n corporateInsuranceRowData\n corporateInsuranceColDefs\n corporateInsuranceMetaData\n corporateInsuranceDataUpdated\n }\n ok\n message\n }\n }\n"]);return F=function(){return e},e}let T=(0,o.Ps)(F());var U=e=>{var t,l,n,o,s,c,u,m,p;let{initialMetaData:C}=e,[,Z]=(0,i.Db)(T),[F,U]=(0,a.useState)(!1),{state:G,dispatch:R}=(0,v.Z)(),{meState:L,setMeState:$}=(0,d.Z)(),A=(0,a.useRef)(),{primaryHex:z}=(0,_.Z)(),[O,V]=(0,a.useState)({}),[W,B]=(0,a.useState)(C),H=(0,a.useMemo)(()=>{var e,t,l,n,r,a;let o=null==L?void 0:null===(t=L.me)||void 0===t?void 0:null===(e=t.family)||void 0===e?void 0:e.familyType,i=null==L?void 0:null===(n=L.me)||void 0===n?void 0:null===(l=n.family)||void 0===l?void 0:l.primaryProfileData.profile__name__primary,s=null==L?void 0:null===(a=L.me)||void 0===a?void 0:null===(r=a.family)||void 0===r?void 0:r.secondaryProfileData.profile__name__secondary,d={primary:i};return"COUPLE"===o&&(d.secondary=s),d},[null==L?void 0:null===(l=L.me)||void 0===l?void 0:null===(t=l.family)||void 0===t?void 0:t.familyType,L.me.family.primaryProfileData.profile__name__primary,L.me.family.secondaryProfileData.profile__name__secondary]),q=(0,a.useMemo)(()=>{var e,t,l,n,r,a;let o=null;try{if(o=null==L?void 0:null===(l=L.me)||void 0===l?void 0:null===(t=l.family)||void 0===t?void 0:null===(e=t.sharedProfileData)||void 0===e?void 0:e.financial_profile__number_of_incorporated_businesses,null===o)return[];o=parseInt(o)}catch(e){return[]}let i=[];for(let e=1;e<o+1;e++)i.push({corpNum:e,corpName:null==L?void 0:null===(a=L.me)||void 0===a?void 0:null===(r=a.family)||void 0===r?void 0:null===(n=r.corporationGeneralInfoData)||void 0===n?void 0:n["corporation_ownership_and_share_value_corp_".concat(e,"__corporation_name")]});return i},[null==L?void 0:null===(o=L.me)||void 0===o?void 0:null===(n=o.family)||void 0===n?void 0:n.sharedProfileData,null==L?void 0:null===(c=L.me)||void 0===c?void 0:null===(s=c.family)||void 0===s?void 0:s.corporationGeneralInfoData]),J=(0,a.useCallback)(I()(e=>{U(!0),Z(e,{additionalTypenames:["MessagesType"]}).then(e=>{let{data:t}=e,l={...L};l.me.family.corporateInsuranceRowData=t.corporateInsuranceMutation.family.corporateInsuranceRowData,l.me.family.corporateInsuranceColDefs=t.corporateInsuranceMutation.family.corporateInsuranceColDefs,l.me.family.corporateInsuranceDataUpdated=!1,$(l),R({type:"update",data:{rowData:t.corporateInsuranceMutation.family.corporateInsuranceRowData,colDefs:t.corporateInsuranceMutation.family.corporateInsuranceColDefs,hasChanges:!1}}),U(!1)})},1e3,{trailing:!1}),[null==A?void 0:null===(u=A.current)||void 0===u?void 0:u.api]);(0,a.useEffect)(()=>{J({Action:"recalculate"})},[]);let Y=(0,a.useCallback)(async(e,t)=>{if(!F)try{var l;let e=await Z({Action:"rowData",RowData:t}),n=null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.corporateInsuranceMutation;if(!n||!n.ok){let e=(null==n?void 0:n.message)||"Error saving table data";x.ZP.error(e);return}R({type:"update",data:{hasChanges:!0}}),V({})}catch(e){x.ZP.error("Unexpected error when trying to save table row data"),(0,b.Tb)(e)}},[F,Z,R]),X=S()(Y,100),K=(0,a.useCallback)(e=>{var t,l;let n=e.rowIndex;void 0===O[n]&&(O[n]={index:n,valueUpdates:{},editedUpdates:{}});let r=null==e?void 0:null===(l=e.column)||void 0===l?void 0:null===(t=l.colDef)||void 0===t?void 0:t.field;O[n].valueUpdates[r]=e.data[r],O[n].editedUpdates[r]=e.data.metaData.edited[r],X(e.node||e,O)},[O,X]),Q=(0,a.useCallback)(e=>{let t={};switch(e.field){case"year":t.width=80,t.pinned="left";break;case"age_primary":case"age_secondary":t.width=70,t.pinned="left";break;default:t.cellRenderer=w.Z,t.cellEditor=j.Z,e.editable&&(t.cellStyle=e=>(0,D.Z)(e,z))}if(!e.children)return t;let l=[];for(let t of e.children){let e={...t};t.headerName,e.headerName,e.width=130,e.cellRenderer=w.Z,e.cellEditor=j.Z,e.editable&&(e.cellStyle=e=>(0,D.Z)(e,z)),e.children&&(e.children=(0,N.g)(z,e.children,{width:130,cellRenderer:w.Z,cellEditor:j.Z})),l.push(e)}return t.children=l,t},[z]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g.Z,{isVisible:F}),(0,r.jsxs)("div",{className:"m-4",children:[(0,r.jsxs)("div",{className:"space-y-8 my-8",children:[(0,r.jsx)(y.Z,{additionalStyles:"mx-0"}),(0,r.jsx)(h.ZP.Provider,{initialValues:L.me.family.commentData,children:(0,r.jsx)(f.Z,{section:"corporate_insurance",customStyle:"shadow rounded bg-oldGray-100 border"})})]}),(0,r.jsx)(P.Z,{title:"Insured Person",isExpanded:!0,customStyle:"shadow rounded bg-oldGray-100 border mb-8",children:(0,r.jsx)(M.J9,{initialValues:W,onSubmit:async e=>{if(F)return;let t=await Z({Action:"metaData",MetaData:e}),l={...L};
1l.me.family.corporateInsuranceMetaData=t.data.corporateInsuranceMutation.family.corporateInsuranceMetaData,$(l)},validate:e=>(B(e),{}),children:e=>{let{errors:t,touched:l,values:n,setFieldValue:a,resetForm:o}=e;return(0,r.jsxs)(M.l0,{className:"",children:[(0,r.jsx)("div",{className:"flex flex-col",children:null==q?void 0:q.map(e=>{var t;let l=null!==(t=null==e?void 0:e.corpName)&&void 0!==t?t:"Corp ".concat(null==e?void 0:e.corpNum);return(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)("div",{className:"py-3 px-5 ".concat((null==e?void 0:e.corpNum)!==1?"border-t":""),children:l}),(0,r.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-5 border-t",children:[(0,r.jsxs)("div",{className:"w-full p-4 flex flex-col justify-between bg-oldGray-100 border-r border-b xl:border-b-0",children:[(0,r.jsx)("div",{className:"text-center mb-2",children:"Policy 1: Name of Insured"}),(0,r.jsx)(M.gN,{name:"corp_".concat(null==e?void 0:e.corpNum,"__insured_person_policy_1"),component:E.Z,type:"select",options:H})]}),(0,r.jsxs)("div",{className:"w-full p-4 flex flex-col justify-between bg-oldGray-100 border-r-0 sm:border-r border-b xl:border-b-0",children:[(0,r.jsx)("div",{className:"text-center mb-2",children:"Policy 2: Name of Insured"}),(0,r.jsx)(M.gN,{name:"corp_".concat(null==e?void 0:e.corpNum,"__insured_person_policy_2"),component:E.Z,type:"select",options:H})]}),(0,r.jsxs)("div",{className:"w-full p-4 flex flex-col justify-between bg-oldGray-100 border-r border-b xl:border-b-0",children:[(0,r.jsx)("div",{className:"text-center mb-2",children:"Policy 3: Name of Insured"}),(0,r.jsx)(M.gN,{name:"corp_".concat(null==e?void 0:e.corpNum,"__insured_person_policy_3"),component:E.Z,type:"select",options:H})]}),(0,r.jsxs)("div",{className:"w-full p-4 flex flex-col justify-between bg-oldGray-100 border-r-0 xl:border-r border-b xl:border-b-0",children:[(0,r.jsx)("div",{className:"text-center mb-2",children:"Policy 4: Name of Insured"}),(0,r.jsx)(M.gN,{name:"corp_".concat(null==e?void 0:e.corpNum,"__insured_person_policy_4"),component:E.Z,type:"select",options:H})]}),(0,r.jsxs)("div",{className:"w-full p-4 flex flex-col justify-between bg-oldGray-100 border-r border-b xl:border-b-0",children:[(0,r.jsx)("div",{className:"text-center mb-2",children:"Policy 5: Name of Insured"}),(0,r.jsx)(M.gN,{name:"corp_".concat(null==e?void 0:e.corpNum,"__insured_person_policy_5"),component:E.Z,type:"select",options:H})]})]})]},"corp_".concat(null==e?void 0:e.corpNum))})}),(0,r.jsx)(h.vL,{})]})}})}),(0,r.jsx)(k.Z,{gridRef:A,rowData:null!==(m=null==G?void 0:G.rowData)&&void 0!==m?m:[],colDefs:null!==(p=null==G?void 0:G.colDefs)&&void 0!==p?p:[],getColDefOverrideMapping:Q,cellValueChanged:K})]})]})};function G(){let e=(0,n._)(["\n query {\n me {\n id\n ok\n message\n status\n family {\n corporationGeneralInfoData\n corporateInsuranceMetaData\n ...CommonFamilyFields\n }\n }\n isPlannerUser\n }\n ","\n"]);return G=function(){return e},e}let R=(0,o.Ps)(G(),s.Z);var L=(0,p.Z)(e=>{var t,l,n,o,s;let{setMeState:p,meState:f}=(0,d.Z)(),[h]=(0,i.aM)({query:R}),{data:x,fetching:g,error:y}=h;if((0,a.useEffect)(()=>{g||p(x)},[x]),g)return(0,r.jsx)(c.Z,{});if((!(null==x?void 0:null===(t=x.me)||void 0===t?void 0:t.ok)||y)&&(null==x?void 0:null===(l=x.me)||void 0===l?void 0:l.message)!=="Not logged in!"){let e=(null==x?void 0:null===(o=x.me)||void 0===o?void 0:o.message)||"Something went wrong loading user data";return(0,r.jsx)(u.Z,{title:"Whoops!",message:"Something went wrong loading user data",errorInfo:{message:e,details:y},tryAgain:!0})}if(!g&&(null==f?void 0:f.isPlannerUser))return(0,r.jsx)(u.Z,{title:"Whoops!",message:"You're logged in as a planner trying to access the client section",showSignout:!0,errorCode:403});if(!g&&!(null==f?void 0:null===(n=f.me)||void 0===n?void 0:n.family))return(0,r.jsx)(u.Z,{title:"Whoops!",message:"Something went wrong loading user data",tryAgain:!0});let b=x.me.family;return b?(b.familyType,(0,r.jsxs)(m.Z,{title:"Corporate Insurance",children:[(0,r.jsx)("h1",{className:"text-2xl font-bold text-oldGray-800 leading-none px-4 lg:px-8 pt-5 mt-15 tracking-normal lg:hidden",children:"Corporate Insurance"}),(0,r.jsx)("div",{className:"w-full",children:(0,r.jsx)(v.Z.Provider,{children:(0,r.jsx)(U,{initialMetaData:null!==(s=null==b?void 0:b.corporateInsuranceMetaData)&&void 0!==s?s:{}})})})]})):"Not logged in!"!==x.me.message?(0,r.jsx)(u.Z,{title:"Whoops!",message:"Looks like there is no family assigned to you"}):null})}},function(e){e.O(0,[9774,2153,1664,1736,1368,7333,2175,5161,7009,1953,6458,2888,179],function(){return e(e.s=25145)}),_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.