1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8736],{47680:function(e,n,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/planning/report-pdf",function(){return l(43554)}])},86262:function(e,n,l){"use strict";var o=l(85893),r=l(20929),t=l(36808),a=l.n(t),s=l(39666),i=l(20299),d=l(59888),c=l(94205);let u=e=>{let{type:n,customImage:l}=e;return l?(0,o.jsx)(o.Fragment,{children:l}):(0,o.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,o.jsx)("path",{d:"M19.511 17.98L10.604 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"})})};n.Z=e=>{var n,l;let{type:t,title:m,message:h,addContactInfo:g=!0,customImage:x,hideImage:f,tryAgain:p,errorInfo:v,errorCode:y,showSignout:w=!1,...j}=e,{supportEmail:b}=(0,c.Z)();404!=y&&"Not logged in!"!==v&&(null===(l=window)||void 0===l?void 0:null===(n=l.location)||void 0===n?void 0:n.hostname)!=="localhost"&&r.fy.logger.error("User encountered the following error: ".concat(h),{details:{message:h,errorInfo:v,errorCode:y}});let{resetClient:N}=(0,i.X)();return(0,o.jsxs)("div",{className:"flex flex-col m-12 items-center py-4 px-2 border rounded shadow-md",children:[f?null:(0,o.jsx)(u,{type:t,customImage:x}),(0,o.jsx)("div",{className:"text-brand text-xl font-medium my-2",children:m}),(0,o.jsx)("div",{className:"text-oldGray-600",children:h}),w&&(0,o.jsx)("div",{children:(0,o.jsx)("button",{className:"text-brand my-4 font-semibold underline",onClick:()=>{a().remove("token"),a().remove("isPlanner"),N(),(0,s.e)(e=>e.setUser(null)),(0,d.Z)("/signin")},children:"Click here to sign out"})}),g&&b&&(0,o.jsxs)("div",{className:"text-oldGray-600 mt-1",children:[p&&"Try again or ","Contact"," ",(0,o.jsx)("a",{className:"text-brand",href:"mailto:".concat(b),children:b})," ","for help"]}),p&&!g&&(0,o.jsx)("div",{className:"text-oldGray-600 mt-1",children:"Please try again later."})]})}},43554:function(e,n,l){"use strict";l.r(n);var o=l(37340),r=l(85893),t=l(67294),a=l(81988),s=l(86262),i=l(7817),d=l(26997),c=l(92432),u=l(51042),m=l(31704),h=l(66759);function g(){let e=(0,o._)(["\n query {\n me {\n id\n ok\n message\n status\n family {\n finalPlanPdf\n ...CommonFamilyFields\n }\n }\n isPlannerUser\n }\n ","\n"]);return g=function(){return e},e}let x=(0,d.Ps)(g(),m.Z);n.default=(0,u.Z)(function(){var e,n,l,o;let{setMeState:d,meState:u}=(0,i.Z)(),[m]=(0,c.aM)({query:x,requestPolicy:"network-only"}),{data:g,fetching:f,error:p}=m;if((0,t.useEffect)(()=>{f||d(g)},[g]),f)return(0,r.jsx)(h.Z,{});if((!(null==g?void 0:null===(e=g.me)||void 0===e?void 0:e.ok)||p)&&(null==g?void 0:null===(n=g.me)||void 0===n?void 0:n.message)!=="Not logged in!"){let e=(null==g?void 0:null===(o=g.me)||void 0===o?void 0:o.message)||"Something went wrong loading user data";return(0,r.jsx)(s.Z,{title:"Whoops!",message:"Something went wrong loading user data",errorInfo:{message:e,details:p},tryAgain:!0})}if(!f&&(null==u?void 0:u.isPlannerUser))return(0,r.jsx)(s.Z,{title:"Whoops!",message:"You're logged in as a planner trying to access the client section",showSignout:!0,errorCode:403});if(!f&&!(null==u?void 0:null===(l=u.me)||void 0===l?void 0:l.family))return(0,r.jsx)(s.Z,{title:"Whoops!",message:"Something went wrong loading user data",tryAgain:!0});let v=g.me.family;if(!v)return"Not logged in!"!==g.me.message?(0,r.jsx)(s.Z,{title:"Whoops!",message:"Looks like there is no family assigned to you"}):null;v.familyType;let y=v.finalPlanPdf;return(0,r.jsxs)(a.Z,{title:"Planning Report Pdf",children:[(0,r.jsx)("h1",{className:"text-2xl font-bold text-oldGray-800 leading-none px-5 lg:px-8 pt-5 mt-15 tracking-normal lg:hidden",children:"Planning Report PDF"}),(0,r.jsx)("div",{className:"mx-5 my-5 lg:mx-12 lg:my-12 bg-oldGray-100 shadow rounded border p-5 lg:p-20 text-center",children:null===y?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"pb-5",children:"A plan has not been uploaded for you yet."}),(0,r.jsx)("p",{children:"You will receive an email from your financial planner when this document is uploaded for you."})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"pb-6",children:"Your financial planner has uploaded a plan for you."}),(0,r.jsx)("p",{className:"pb-5",children:"Please take some time to read over the plan."}),(0,r.jsx)("p",{className:"pb-12",children:"When youâve had a chance to read over your Plan, please book a meeting with your financial planner to go over your plan together."}),(0,r.jsx)("a",{href:y,className:"btn text-brand border rounded border-brand shadow",children:"View Plan"})]})})]})})}},function(e){e.O(0,[1664,1736,1368,1953,9774,2888,179],function(){return e(e.s=47680)}),_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.