PageSourceSearch

https://app.planeasy.ca/_next/static/chunks/pages/discovery/upload-documents-315e550db11d58f6.js

js planeasy.ca collected 2026-10-04 03:57:53 UTC 27,310 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[451],{25526:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/discovery/upload-documents",function(){return r(23507)}])},23507:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return W}});var s=r(37340),n=r(85893),a=r(67294),i=r(81988),_=r(86262),o=r(7817),l=r(23581),d=r(34944),p=r(51974),c=r(21560),u=r(42579),y=r(26997),m=r(92432),h=r(18029),f=r(93003),b=r(42298);function x(){let e=(0,s._)(["\n	mutation ($Uploads: GenericScalar!, $FieldSlug: String!, $Notes: String) {\n		saveUpload(uploads: $Uploads, fieldSlug: $FieldSlug, notes: $Notes) {\n			family {\n				documentUploadData\n			}\n		}\n	}\n"]);return x=function(){return e},e}function g(){let e=(0,s._)(["\n	mutation ($S3Key: String!, $FieldSlug: String!) {\n		generateS3PresignedUrl(s3Key: $S3Key, fieldSlug: $FieldSlug) {\n			ok\n			presignedUrl\n		}\n	}\n"]);return g=function(){return e},e}function v(){let e=(0,s._)(["\n	mutation ($S3Key: String!, $FieldSlug: String!) {\n		removeUpload(s3Key: $S3Key, fieldSlug: $FieldSlug) {\n			ok\n			family {\n				documentUploadData\n			}\n		}\n	}\n"]);return v=function(){return e},e}let S=(0,y.Ps)(x()),w=(0,y.Ps)(g()),j=(0,y.Ps)(v()),k={"image/jpeg":"jpeg","image/jpg":"jpg","image/png":"png","image/bmp":"bmp","image/gif":"gif","application/pdf":"pdf","application/vnd.ms-excel":"xls","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","text/csv":"csv","application/msword":"doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx"},V=e=>{var t,r,s;let{client:a,slug:i,..._}=e,{state:l,dispatch:d}=(0,f.ZP)();if(!1===_.isVisible||null===_.isVisible)return null;null==a&&console.warn("Picker not defined on InputUpload",_.title,i),null==i&&console.warn("slug not defined on InputUpload",_.title);let p=null!==(s=l[i])&&void 0!==s?s:{s3_keys:[]},{meState:c,setMeState:u}=(0,o.Z)(),[y,x]=(0,m.Db)(S),[g,v]=(0,m.Db)(w),[V,U]=(0,m.Db)(j),D={displayMode:"overlay",maxFiles:20,maxSize:10485760,accept:["image/jpeg","image/jpg","image/png","image/bmp","image/gif","application/pdf","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","text/csv","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],fromSources:["local_file_system"],storeTo:{path:"family_".concat(c.me.family.slug,"/")},uploadInBackground:!1,onUploadDone:e=>{if(e.filesUploaded.length<1){console.warn("No files uploaded");return}let t={};e.filesUploaded.forEach(e=>{var r;let s={name:e.filename.split(".")[0],type:null!==(r=k[null==e?void 0:e.mimetype])&&void 0!==r?r:"unknown",date:(0,b.Z)(new Date,"yyyy-MM-dd")};t[e.key]=s}),x({Uploads:t,FieldSlug:i,Notes:""}).then(e=>{let{data:t}=e;void 0!==t.saveUpload&&(c.me.family.documentUploadData=t.saveUpload.family.documentUploadData,u(c),d({type:"document-upload-update",data:t.saveUpload.family.documentUploadData}))})}},P=a.picker(D),T=_.isCompleted?_.isCompleted:(0,h.lA)(i,l),N=null==p?void 0:null===(t=p.s3_keys)||void 0===t?void 0:t.length,C=e=>{v({S3Key:e,FieldSlug:i}).then(e=>{let{data:t}=e;void 0!==t.generateS3PresignedUrl&&window.open(t.generateS3PresignedUrl.presignedUrl,"_blank")})},L=e=>{window.confirm("Are you sure you want to delete this file?")&&U({S3Key:e,FieldSlug:i}).then(e=>{let{data:t}=e;void 0!==t.removeUpload&&(c.me.family.documentUploadData=t.removeUpload.family.documentUploadData,u(c),d({type:"document-upload-update",data:t.removeUpload.family.documentUploadData}))})};return(0,n.jsx)("div",{className:"border rounded p-2 mb-4 flex justify-center ".concat(T?"text-brand border-brand-lightest hover:border-brand-lighter":"border-dashed text-oldGray-500 border-oldGray-500 hover:text-brand-lighter hover:border-solid hover:border-brand-lighter"),children:(0,n.jsxs)("div",{className:"flex flex-col items-center w-full h-full",children:[(0,n.jsxs)("div",{className:"flex flex-col items-center w-full h-full cursor-pointer",onClick:()=>{P.open()},children:[(0,n.jsx)("svg",{className:"block stroke-current h-9 w-9",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),(0,n.jsx)("div",{className:"text-center",children:_.title?_.title:"Upload"})]}),N>0?(0,n.jsxs)("div",{className:"w-full pt-1 text-xs text-center text-oldGray-600",children:[N," ",1===N?"File":"Files"," Uploaded"]}):null,(0,n.jsx)("div",{className:"mt-1 w-full ".concat(Object.keys(null==p?void 0:p.s3_keys).length>0?"border-t":""),children:null==p?void 0:null===(r=p.s3_keys)||void 0===r?void 0:r.map((e,t)=>{var r;let s=null==p?void 0:null===(r=p[e])||void 0===r?void 0:r.upload_data,a=null==s?void 0:s.type,i=null==s?void 0:s.date,_=null==s?void 0:s.name;return(0,n.jsxs)("div",{className:"flex flex-row items-center mx-3 mt-2 text-base leading-5 text-oldGray-700",children:[(0,n.jsx)("svg",{className:"flex-shrink-0 w-5 h-5 mr-2 text-oldGray-500 cursor-pointer hover:text-brand",onClick:()=>C(e),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),(0,n.jsx)("svg",{onClick:()=>L(e),className:"flex-shrink-0 w-5 h-5 mr-2 text-oldGray-500 cursor-pointer hover:text-brand",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})}),(!i||!a)&&(0,n.jsxs)("span",{className:"text-sm text-oldGray-800 pr-2 ",children:["File ",t+1]}),_&&(0,n.jsx)("span",{className:"text-sm text-oldGray-800 pr-2 truncate ...",children:_}),a&&(0,n.jsxs)("span",{className:"flex-shrink-0 text-sm text-oldGray-800 pr-2",children:[".",a]}),i&&(0,n.jsx)("span",{className:"flex-shrink-0 text-sm text-oldGray-800",children:i})]},e)})})]})})};var U=e=>{let{primaryUserStatus:t,secondaryUserStatus:r}=(0,u.Z)();return(0,n.jsxs)("div",{className:"w-full ".concat("COUPLE"===e.familyType&&"FULL"!==e.rowSize?"2xl:w-1/2 ".concat("primary"===e.user?"px-4 2xl:pl-4 2xl:pr-2":"px-4 2xl:pr-4 2xl:pl-2"):"px-4"),children:[(0,n.jsxs)("div",{className:"flex flex-row p-2 m-4 text-sm",children:[(0,n.jsx)(c.b,{name:e.profileData[e.user]["profile__name__".concat(e.user)],customStyle:"COUPLE"===e.familyType?"primary"===e.user?"2xl:pr-4":"2xl:pl-4":"px-4",completionStatus:"primary"===e.user?t:r}),e.hideSecondaryInputs&&"COUPLE"===e.familyType?(0,n.jsx)(c.b,{name:e.profileData.secondary.profile__name__secondary,customStyle:"2xl:pl-4",completionStatus:r}):null]}),(0,n.jsx)("div",{className:"flex flex-col justify-around",children:a.Children.map(e.children,t=>a.cloneElement(t,{completionStatus:e.completionStatus}))})]})};let D=e=>{let{questions:t,user:r,client:s,profileData:i,familyType:_,...o}=e,l=[],{updateCompletionStatus:d}=(0,u.Z)();return(0,a.useEffect)(()=>{void 0!==o.completionStatus&&d(o.completionStatus)},[o.completionStatus]),t.map(e=>{let t=!0;if(void 0!==e.visibility&&"string"==typeof e.visibility&&(t=Function("primary","secondary","shared","type",e.visibility)(i.primary,i.secondary,i.shared,_)),!t)return;if("primary"===r){let t=!0;if(void 0!==e.primaryVisibility&&"string"==typeof e.primaryVisibility&&(t=Function("primary","secondary","shared","type",e.primaryVisibility)(i.primary,i.secondary,i.shared,_)),!t)return}if("secondary"===r){if(!1===e.ask_for_partner)return;let t=!0;if(void 0!==e.secondaryVisibility&&"string"==typeof e.secondaryVisibility&&(t=Function("primary","secondary","shared","type",e.secondaryVisibility)(i.primary,i.secondary,i.shared,_)),!t)return}let a="".concat(e.slug,"__").concat(r);l.push((0,n.jsx)(V,{title:e.text,slug:a,client:s},a))}),0===l.length&&l.push((0,n.jsx)("div",{className:"border rounded p-2 mb-4 flex justify-center text-oldGray-500 border-oldGray-300",children:"You don't have any documents you need to upload for this section."},"no_uploads")),l};var P=e=>{let{UploadQuestions:t,familyType:r,card:s,profileData:a,filestackClient:i,hideSecondaryInputs:_,...o}=e,{state:l}=(0,f.ZP)(),d=[],c=[],u=_?"__primary":"__secondary";t.map(e=>{let t=!0;if(void 0!==e.visibility&&"string"==typeof e.visibility&&(t=Function("primary","secondary","shared","type",e.visibility)(a.primary,a.secondary,a.shared,r)),!t)return;let s=!0;if(void 0!==e.primaryVisibility&&"string"==typeof e.primaryVisibility&&(s=Function("primary","secondary","shared","type",e.primaryVisibility)(a.primary,a.secondary,a.shared,r)),s&&d.push("".concat(e.slug).concat("__primary")),!1===e.ask_for_partner)return;let n=!0;void 0!==e.secondaryVisibility&&"string"==typeof e.secondaryVisibility&&(n=Function("primary","secondary","shared","type",e.secondaryVisibility)(a.primary,a.secondary,a.shared,r)),n&&c.push("".concat(e.slug).concat(u))});let y={primary:(0,h.lA)(d,l),secondary:(0,h.lA)(c,l)};return(0,n.jsx)(p.Z,{familyType:r,card:{boxContextInitialValues:{primaryStatus:y.primary,secondaryStatus:y.secondary},...s},children:(0,n.jsxs)("div",{className:"flex flex-col justify-center 2xl:flex-row 2xl:justify-around",children:[(0,n.jsx)(U,{user:"primary",profileData:a,familyType:r,completionStatus:y,rowSize:_?"FULL":"DEFAULT",hideSecondaryInputs:_,children:(0,n.jsx)(D,{user:"primary",questions:t,client:i,profileData:a,familyType:r})}),"COUPLE"!==r||_?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"border-t border-oldGray-300 w-full my-4 2xl:hidden"}),(0,n.jsx)(U,{user:"secondary",profileData:a,familyType:r,completionStatus:y,children:(0,n.jsx)(D,{user:"secondary",questions:t,client:i,profileData:a,familyType:r})})]})]})})};let T=[{text:"Pay Stub",slug:"income__pay_stub"}
1,{text:"T776",slug:"income__t776",visibility:"\n      return shared.financial_profile__rental_property === true;\n    "},{text:"T2125",slug:"income__t2125",visibility:"\n			return shared.financial_profile__business === true && !shared.financial_profile__incorporated_business;\n    "}],N=[{text:"RRSP Statement",slug:"assets__rrsp_statement",primaryVisibility:"\n      return primary.types_of_accounts_held__has_rrsp__primary === true;\n    ",secondaryVisibility:"\n      return secondary.types_of_accounts_held__has_rrsp__secondary === true;\n    "},{text:"Spousal-RRSP Statement",slug:"assets__spousal_rrsp_statement",primaryVisibility:"\n      return primary.types_of_accounts_held__has_spousal_rrsp__primary === true;\n    ",secondaryVisibility:"\n      return secondary.types_of_accounts_held__has_spousal_rrsp__secondary === true;\n    "},{text:"TFSA Statement",slug:"assets__tfsa_statement",primaryVisibility:"\n      return primary.types_of_accounts_held__has_tfsa__primary === true;\n    ",secondaryVisibility:"\n      return secondary.types_of_accounts_held__has_tfsa__secondary === true;\n    "},{text:"Non-Registered Statement",slug:"assets__non_registered_statement",primaryVisibility:"\n      return primary.types_of_accounts_held__has_non_registered__primary === true;\n    ",secondaryVisibility:"\n      return secondary.types_of_accounts_held__has_non_registered__secondary === true;\n    "},{text:"RESP Statement",slug:"assets__resp_statement",primaryVisibility:"\n      return primary.types_of_accounts_held__has_resp__primary === true;\n    ",secondaryVisibility:"\n      return secondary.types_of_accounts_held__has_resp__secondary === true;\n    "},{text:"LIRA Or L-RRSP Statement",slug:"assets__lira_or_l_rrsp_statement",primaryVisibility:"\n      return primary.types_of_accounts_held__has_lira_or_l_rrsp_or_lif__primary === true;\n    ",secondaryVisibility:"\n      return secondary.types_of_accounts_held__has_lira_or_l_rrsp_or_lif__secondary === true;\n    "},{text:"Group-RRSP Statement",slug:"assets__group_rrsp_statement",primaryVisibility:"\n      return primary.types_of_accounts_held__has_group_rrsp__primary === true;\n    ",secondaryVisibility:"\n      return secondary.types_of_accounts_held__has_group_rrsp__secondary === true;\n    "},{text:"DCPP Statement",slug:"assets__dcpp_statement",primaryVisibility:"\n      return primary.types_of_accounts_held__has_dcpp_defined_contribution_pension__primary === true;\n    ",secondaryVisibility:"\n      return secondary.types_of_accounts_held__has_dcpp_defined_contribution_pension__secondary === true;\n    "},{text:"DPSP Statement",slug:"assets__dpsp_statement",primaryVisibility:"\n      return primary.types_of_accounts_held__has_dpsp_deferred_profit_sharing_plan__primary === true;\n    ",secondaryVisibility:"\n      return secondary.types_of_accounts_held__has_dpsp_deferred_profit_sharing_plan__secondary === true;\n    "},{text:"ESPP Statement",slug:"assets__espp_statement",primaryVisibility:"\n      return primary.types_of_accounts_held__has_espp_employee_stock_purchase_plan__primary === true;\n    ",secondaryVisibility:"\n      return secondary.types_of_accounts_held__has_espp_employee_stock_purchase_plan__secondary === true;\n    "},{text:"Prior Financial/Investment Plans",slug:"assets__prior_financialinvestment_plans",ask_for_partner:!1}],C=[{text:"House Mortgage Statement",slug:"debt__house_mortgage_statement",visibility:"\n      return shared.types_of_debt_held__has_debt && shared.financial_profile__home_owner === true && shared.types_of_debt_held__has_mortgage === true;\n    "},{text:"Rental Mortgage Statement",slug:"debt__rental_mortgage_statement",visibility:"\n      return shared.types_of_debt_held__has_debt && shared.financial_profile__rental_property === true && shared.types_of_debt_held__has_mortgage === true;\n    "},{text:"Credit Card Statement",slug:"debt__credit_card_statement",visibility:"\n      return shared.types_of_debt_held__has_debt && shared.types_of_debt_held__has_credit_card === true;\n    "},{text:"Line Of Credit Statement",slug:"debt__line_of_credit_statement",visibility:"\n      return shared.types_of_debt_held__has_debt && shared.types_of_debt_held__has_line_of_credit === true;\n    "},{text:"Home Equity Line Of Credit (HELOC) Statement",slug:"debt__heloc_statement",visibility:"\n      return shared.types_of_debt_held__has_debt && shared.types_of_debt_held__has_home_equity_line_of_credit_heloc === true;\n    "},{text:"Government Student Loan Statement",slug:"debt__gov_student_loan_statement",visibility:"\n      return shared.types_of_debt_held__has_debt && shared.types_of_debt_held__has_government_student_loan === true;\n    "},{text:"Private Student Loan Statement",slug:"debt__private_student_loan_statement",visibility:"\n      return shared.types_of_debt_held__has_debt && shared.types_of_debt_held__has_private_student_loan === true;\n    "},{text:"Vehicle Loan Statement",slug:"debt__vehicle_loan_statement",visibility:"\n      return shared.types_of_debt_held__has_debt && shared.types_of_debt_held__has_vehicle_loan === true;\n    "}
1,{text:"Investment Loan Statement",slug:"debt__investment_loan_statement",visibility:"\n      return shared.types_of_debt_held__has_debt && shared.types_of_debt_held__has_investment_loan === true;\n    "}],L=[{text:"Term Life Insurance Statement",slug:"insurance__tl_statement",primaryVisibility:"\n      return primary.types_of_insurance_held__has_term_life_insurance__primary === true;\n    ",secondaryVisibility:"\n      return secondary.types_of_insurance_held__has_term_life_insurance__secondary === true;\n    "},{text:"Whole or Universal Life Insurance Statement",slug:"insurance__wlul_statement",primaryVisibility:"\n      return primary.types_of_insurance_held__has_whole_or_universal_life_insurance__primary === true;\n    ",secondaryVisibility:"\n      return secondary.types_of_insurance_held__has_whole_or_universal_life_insurance__secondary === true;\n    "},{text:"Critical Illness Insurance Statement",slug:"insurance__ci_statement",primaryVisibility:"\n      return primary.types_of_insurance_held__has_critical_illness_insurance__primary === true;\n    ",secondaryVisibility:"\n      return secondary.types_of_insurance_held__has_critical_illness_insurance__secondary === true;\n    "},{text:"Short-Term Disability Insurance Statement",slug:"insurance__std_statement",primaryVisibility:"\n      return primary.types_of_insurance_held__has_short_term_disability_insurance__primary === true;\n    ",secondaryVisibility:"\n      return secondary.types_of_insurance_held__has_short_term_disability_insurance__secondary === true;\n    "},{text:"Long-Term Disability Insurance Statement",slug:"insurance__ltd_statement",primaryVisibility:"\n      return primary.types_of_insurance_held__has_long_term_disability_insurance__primary === true;\n    ",secondaryVisibility:"\n      return secondary.types_of_insurance_held__has_long_term_disability_insurance__secondary === true;\n    "}],F=[{text:"CPP Statement of Contributions",slug:"taxes_benefits__cpp_statement_of_contributions"},{text:"Latest Notice Of Assessment",slug:"taxes_benefits__latest_notice_of_assessment"},{text:"Defined Benefit Pension Statement",slug:"taxes_benefits__defined_benefit_pension_statement",primaryVisibility:"\n      return primary.financial_profile__defined_benefit_pension__primary === true;\n    ",secondaryVisibility:"\n      return secondary.financial_profile__defined_benefit_pension__secondary === true;\n    "},{text:"Employee Benefit Book",slug:"taxes_benefits__employee_benefit_book"},{text:"Employee Insurance Coverage Details",slug:"taxes_benefits__employee_insurance_coverage_details"},{text:"Employee Pension Matching Details",slug:"taxes_benefits__employee_pension_matching_details",primaryVisibility:"\n      return primary.types_of_accounts_held__has_dcpp_defined_contribution_pension__primary === true || primary.types_of_accounts_held__has_group_rrsp__primary === true;\n    ",secondaryVisibility:"\n      return secondary.types_of_accounts_held__has_dcpp_defined_contribution_pension__secondary === true || secondary.types_of_accounts_held__has_group_rrsp__secondary === true;\n    "},{text:"Maternity/Parental Leave Top Up Details",slug:"taxes_benefits__maternity_or_parental_leave_top_up_details",visibility:"return shared.future_children__would_you_like_future_children === true"},{text:"T1 Tax Return",slug:"taxes_benefits__t1_tax_return"}],M=[{text:"T2 Tax Return",slug:"corporation__t2_tax_return",visibility:"return shared.financial_profile__incorporated_business === true"},{text:"Financial Statements",slug:"corporation__financial_statements",visibility:"return shared.financial_profile__incorporated_business === true"},{text:"Investment Statements",slug:"corporation__investment_statements",visibility:"return shared.financial_profile__incorporated_business === true"},{text:"Insurance Statements",slug:"corporation__insurance_statements",visibility:"return shared.financial_profile__incorporated_business === true"},{text:"Other",slug:"corporation__other",visibility:"return shared.financial_profile__incorporated_business === true"}],I=[{text:"Miscellaneous Documents",slug:"misc__miscellaneous_documents"}];var E=e=>{let{meState:t}
1=(0,o.Z)(),r={primary:t.me.family.primaryProfileData,secondary:t.me.family.secondaryProfileData,shared:t.me.family.sharedProfileData},s=d.S1("AXMQbuoZNQAi7VGyYWQDhz");return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(l.Z,{page:"document_upload",family:e.family,enableTopSpacer:!1,children:[(0,n.jsxs)("div",{className:"flex flex-col space-y-5",children:[(0,n.jsx)(P,{UploadQuestions:T,familyType:e.type,profileData:r,filestackClient:s,card:{title:"Income",showTotal:!1}}),(0,n.jsx)(P,{UploadQuestions:N,familyType:e.type,profileData:r,filestackClient:s,card:{title:"Assets",showTotal:!1,isVisible:r.primary.types_of_accounts_held__has_rrsp__primary||r.primary.types_of_accounts_held__has_spousal_rrsp__primary||r.primary.types_of_accounts_held__has_tfsa__primary||r.primary.types_of_accounts_held__has_non_registered__primary||r.primary.types_of_accounts_held__has_resp__primary||r.primary.types_of_accounts_held__has_lira_or_l_rrsp_or_lif__primary||r.primary.types_of_accounts_held__has_group_rrsp__primary||r.primary.types_of_accounts_held__has_dcpp_defined_contribution_pension__primary||r.primary.types_of_accounts_held__has_dpsp_deferred_profit_sharing_plan__primary||r.primary.types_of_accounts_held__has_espp_employee_stock_purchase_plan__primary||"COUPLE"===e.type&&(r.secondary.types_of_accounts_held__has_rrsp__secondary||r.secondary.types_of_accounts_held__has_spousal_rrsp__secondary||r.secondary.types_of_accounts_held__has_tfsa__secondary||r.secondary.types_of_accounts_held__has_non_registered__secondary||r.secondary.types_of_accounts_held__has_resp__secondary||r.secondary.types_of_accounts_held__has_lira_or_l_rrsp_or_lif__secondary||r.secondary.types_of_accounts_held__has_group_rrsp__secondary||r.secondary.types_of_accounts_held__has_dcpp_defined_contribution_pension__secondary||r.secondary.types_of_accounts_held__has_dpsp_deferred_profit_sharing_plan__secondary||r.secondary.types_of_accounts_held__has_espp_employee_stock_purchase_plan__secondary)}}),(0,n.jsx)(P,{UploadQuestions:C,familyType:e.type,profileData:r,filestackClient:s,hideSecondaryInputs:!0,card:{title:"Debt",showTotal:!1,isVisible:r.shared.types_of_debt_held__has_debt&&(r.shared.types_of_debt_held__has_mortgage&&(r.shared.financial_profile__home_owner||r.shared.financial_profile__rental_property)||r.shared.types_of_debt_held__has_credit_card||r.shared.types_of_debt_held__has_line_of_credit||r.shared.types_of_debt_held__has_home_equity_line_of_credit_heloc||r.shared.types_of_debt_held__has_government_student_loan||r.shared.types_of_debt_held__has_private_student_loan||r.shared.types_of_debt_held__has_vehicle_loan||r.shared.types_of_debt_held__has_investment_loan)}}),(0,n.jsx)(P,{UploadQuestions:M,familyType:e.type,profileData:r,filestackClient:s,hideSecondaryInputs:!0,card:{title:"Corporation",showTotal:!1,isVisible:r.shared.financial_profile__incorporated_business}})]}),(0,n.jsxs)("div",{className:"flex flex-col space-y-5",children:[(0,n.jsx)(P,{UploadQuestions:L,familyType:e.type,profileData:r,filestackClient:s,card:{title:"Insurance",showTotal:!1,isVisible:r.primary.types_of_insurance_held__has_term_life_insurance__primary||r.primary.types_of_insurance_held__has_whole_or_universal_life_insurance__primary||r.primary.types_of_insurance_held__has_critical_illness_insurance__primary||r.primary.types_of_insurance_held__has_short_term_disability_insurance__primary||r.primary.types_of_insurance_held__has_long_term_disability_insurance__primary||"COUPLE"===e.type&&(r.secondary.types_of_insurance_held__has_term_life_insurance__secondary||r.secondary.types_of_insurance_held__has_whole_or_universal_life_insurance__secondary||r.secondary.types_of_insurance_held__has_critical_illness_insurance__secondary||r.secondary.types_of_insurance_held__has_short_term_disability_insurance__secondary||r.secondary.types_of_insurance_held__has_long_term_disability_insurance__secondary)}}),(0,n.jsx)(P,{UploadQuestions:F,familyType:e.type,profileData:r,filestackClient:s,card:{title:"Tax & Benefits",showTotal:!1}}),(0,n.jsx)(P,{UploadQuestions:I,familyType:e.type,profileData:r,filestackClient:s,card:{title:"Miscellaneous Documents",showTotal:!1}})]})]})})},Z=r(82502),G=r(51042),$=r(31704),O=r(66759);function A(){let e=(0,s._)(["\n	query {\n		me {\n			id\n			ok\n			message\n			status\n			family {\n				documentUploadData\n				simpleModeMapping\n				...CommonFamilyFields\n			}\n		}\n		isPlannerUser\n	}\n	","\n"]);return A=function(){return e},e}function R(){let e=(0,s._)(["\n	mutation ($Section: String, $Data: Boolean!) {\n		saveSimpleModeMappingData(section: $Section, data: $Data) {\n			ok\n			status\n			message\n		}\n	}\n"]);return R=function(){return e},e}let B=(0,y.Ps)(A(),$.Z),Q=(0,y.Ps)(R());var W=(0,G.Z)(function(){var e,t,r,s,l,d,p;let{setMeState:c,meState:u}=(0,o.Z)(),[y]=(0,m.aM)({query:B}),{data:h,fetching:b,error:x}=y,[,g]=(0,m.Db)(Q);if((0,a.useEffect)(()=>{b||c(h)},[h]),b)return(0,n.jsx)(O.Z,{});if((!(null==h?void 0:null===(e=h.me)||void 0===e?void 0:e.ok)||x)&&(null==h?void 0:null===(t=h.me)||void 0===t?void 0:t.message)!=="Not logged in!"){let e=(null==h?void 0:null===(p=h.me)||void 0===p?void 0:p.message)||"Something went wrong loading user data";return(0,n.jsx)(_.Z,{title:"Whoops!",message:"Something went wrong loading user data",errorInfo:{message:e,details:x}
1,tryAgain:!0})}if(!b&&(null==u?void 0:u.isPlannerUser))return(0,n.jsx)(_.Z,{title:"Whoops!",message:"You're logged in as a planner trying to access the client section",showSignout:!0,errorCode:403});if(!b&&!(null==u?void 0:null===(r=u.me)||void 0===r?void 0:r.family))return(0,n.jsx)(_.Z,{title:"Whoops!",message:"Something went wrong loading user data",tryAgain:!0});let v=h.me.family;if(!v)return"Not logged in!"!==h.me.message?(0,n.jsx)(_.Z,{title:"Whoops!",message:"Looks like there is no family assigned to you"}):null;let S=v.familyType,w=v.documentUploadData;return(0,n.jsxs)(i.Z,{title:"Upload Documents",children:[(0,n.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:"Upload Documents"}),(0,n.jsxs)("div",{className:"flex flex-row justify-start pt-5 px-4",children:[(0,n.jsx)("button",{onClick:()=>{g({Section:"upload_documents",Data:!0},{additionalTypenames:["UserType"]})},className:"px-4 py-2 font-bold cursor-pointer border rounded-l border-brand hover:bg-brand-dark hover:text-white ".concat((null==v?void 0:null===(s=v.simpleModeMapping)||void 0===s?void 0:s.upload_documents)===!0?"bg-brand text-white":"text-brand"),type:"button",children:"Simple"},"simple"),(0,n.jsx)("button",{onClick:()=>{g({Section:"upload_documents",Data:!1},{additionalTypenames:["UserType"]})},className:"border-l-0 px-4 py-2 font-bold cursor-pointer border rounded-r border-brand hover:bg-brand-dark hover:text-white ".concat((null==v?void 0:null===(l=v.simpleModeMapping)||void 0===l?void 0:l.upload_documents)===!1?"bg-brand text-white":"text-brand"),type:"button",children:"Detailed"},"detailed")]}),(0,n.jsx)(Z.Z,{helpLink:{mode:"BEACON",articleID:"5de1755b2c7d3a7e9ae49403"},positionStyle:"absolute top-0 right-0 mt-4"}),(null==v?void 0:null===(d=v.simpleModeMapping)||void 0===d?void 0:d.upload_documents)?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"m-10 bg-oldGray-100 shadow rounded border p-10 text-center",children:(0,n.jsxs)("div",{children:[(0,n.jsxs)("p",{className:"pb-5",children:["This section is not required for Simple planning."," ",(0,n.jsx)("a",{target:"_blank",href:"https://help.adviice.ca/article/502-simple-vs-detailed",children:"Learn More."},"upload_documents_help_article")]}),(0,n.jsx)("div",{children:"If you would like to use this section select 'Detailed' in the top left corner of this page."})]})})}):(0,n.jsx)(f.ZP.Provider,{initialValues:w,children:(0,n.jsx)(E,{type:S,family:v})})]})})}},function(e){e.O(0,[375,1664,1736,1368,7333,2175,5161,1876,9720,9589,2298,1953,6458,355,1974,3581,9774,2888,179],function(){return e(e.s=25526)}),_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.