1!function(){try{var t="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="6ec9290b-1c78-43f6-8506-e2b167da8068",t._sentryDebugIdIdentifier="sentry-dbid-6ec9290b-1c78-43f6-8506-e2b167da8068")}catch(t){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2479],{3971:(t,e,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/charity/application-summary-step",function(){return a(86520)}])},32094:(t,e,a)=>{"use strict";a.d(e,{A:()=>r});var i=a(57613);let r=(0,a(88593).memo)(t=>(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:t.width||24,height:t.height||24,...t,"data-sentry-element":"svg","data-sentry-component":"SvgArrowLeft","data-sentry-source-file":"ArrowLeft.tsx",children:(0,i.jsx)("path",{d:"M19 12H5m0 0 7 7m-7-7 7-7",stroke:t.stroke||"currentColor",strokeWidth:t.strokeWidth||2,strokeLinecap:"round",strokeLinejoin:"round","data-sentry-element":"path","data-sentry-source-file":"ArrowLeft.tsx"})}))},44149:(t,e,a)=>{"use strict";a.d(e,{A:()=>f});var i=a(88593),r=a(54634),n=a(1816),s=a(96952),o=a(41862),l=a(13417),c=a(51957),p=a(60412),d=a(75765),u=a(11673),m=a(57613);let y=(0,p.A)(),h=(0,l.A)("div",{name:"MuiStack",slot:"Root"});function x(t){return(0,c.A)({props:t,name:"MuiStack",defaultTheme:y})}let S=({ownerState:t,theme:e})=>{let a={display:"flex",flexDirection:"column",...(0,d.NI)({theme:e},(0,d.kW)({values:t.direction,breakpoints:e.breakpoints.values}),t=>({flexDirection:t}))};if(t.spacing){let i=(0,u.LX)(e),r=Object.keys(e.breakpoints.values).reduce((e,a)=>(("object"==typeof t.spacing&&null!=t.spacing[a]||"object"==typeof t.direction&&null!=t.direction[a])&&(e[a]=!0),e),{}),s=(0,d.kW)({values:t.direction,base:r}),o=(0,d.kW)({values:t.spacing,base:r});"object"==typeof s&&Object.keys(s).forEach((t,e,a)=>{if(!s[t]){let i=e>0?s[a[e-1]]:"column";s[t]=i}}),a=(0,n.A)(a,(0,d.NI)({theme:e},o,(e,a)=>t.useFlexGap?{gap:(0,u._W)(i,e)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[a?s[a]:t.direction]}`]:(0,u._W)(i,e)}}))}return(0,d.iZ)(e.breakpoints,a)};function f(t={}){let{createStyledComponent:e=h,useThemeProps:a=x,componentName:n="MuiStack"}=t,l=e(S);return i.forwardRef(function(t,e){let c,{component:p="div",direction:d="column",spacing:u=0,divider:y,children:h,className:x,useFlexGap:S=!1,...f}=a(t),A=(0,o.A)({root:["root"]},t=>(0,s.Ay)(n,t),{});return(0,m.jsx)(l,{as:p,ownerState:{direction:d,spacing:u,useFlexGap:S},ref:e,className:(0,r.A)(A.root,x),...f,children:y?(c=i.Children.toArray(h).filter(Boolean)).reduce((t,e,a)=>(t.push(e),a<c.length-1&&t.push(i.cloneElement(y,{key:`separator-${a}`})),t),[]):h})})}},84958:(t,e,a)=>{"use strict";a.d(e,{A:()=>s});var i=a(44149),r=a(43523),n=a(67948);let s=(0,i.A)({createStyledComponent:(0,r.Ay)("div",{name:"MuiStack",slot:"Root"}),useThemeProps:t=>(0,n.b)({props:t,name:"MuiStack"})})},86520:(t,e,a)=>{"use strict";a.r(e),a.d(e,{__N_SSG:()=>z,default:()=>E});var i=a(57613),r=a(48183),n=a(3772),s=a.n(n),o=a(46466),l=a(11086),c=a(65734),p=a(13391),d=a(2443),u=a(84958),m=a(81279),y=a(27326),h=a(23942),x=a(34922),S=a(32064),f=a(30263),A=a.n(f),g=a(87175),b=a(51979);let j={src:"/_next/static/media/confirmation.7b1aea5c.svg",height:420,width:420,blurWidth:0,blurHeight:0};var v=a(24452),k=a(97593),w=a(67673),D=a(93847),_=a(90845);let C=({title:t,children:e,returnLink:a,disabled:r})=>{let n=(0,g.useRouter)();return(0,i.jsxs)(u.A,{direction:"column",spacing:1,"data-sentry-element":"Stack","data-sentry-component":"CharitySummaryItem","data-sentry-source-file":"CharitySummaryItem.tsx",children:[(0,i.jsxs)(u.A,{direction:"row",spacing:1,sx:{justifyContent:"space-between",alignItems:"center"},"data-sentry-element":"Stack","data-sentry-source-file":"CharitySummaryItem.tsx",children:[(0,i.jsx)(h.A,{variant:"h6",sx:{fontSize:16,fontWeight:500},"data-sentry-element":"Typography","data-sentry-source-file":"CharitySummaryItem.tsx",children:t}),(0,i.jsx)(_.A,{disabled:r,onClick:()=>{n.push(a)},"data-sentry-element":"IconButton","data-sentry-source-file":"CharitySummaryItem.tsx",children:(0,i.jsx)(D.A,{opacity:r?.5:1,"data-sentry-element":"Edit01","data-sentry-source-file":"CharitySummaryItem.tsx"})})]}),e]})};var I=a(79374),T=a(21995);let $={fontSize:14,fontWeight:400,lineHeight:2,letterSpacing:-1,color:"theme.palette.text.secondary"},L=()=>{var t;let{t:e}=(0,o.A)(),a=(0,g.useRouter)(),r=(0,c.A)(),n=(0,b.wA)(),[s]=(0,v.fX)(),f=(0,p.A)(r.breakpoints.down("md")),D=(0,b.d4)(t=>t.CharitySlice.applicationRequest),_=(0,b.d4)(t=>t.AuthSlice.account),L=()=>{D.account&&D.address&&D.applicationType&&D.requestDetail&&((0,w.mr)(_)?s({_user:D.account?._id??"",firstName:D.account?.firstName??"",lastName:D.account?.lastName,email:D.account?.email??"",_address:D.address?._id??"",quantity:D.quantity??0,recipient:D.recipient,requestType:D.requestType??l.US.Subscription,duration:D.duration??0,applicationLetter:D.applicationLetter??"",requestDetail:N(D),applicationType:D.applicationType}).unwrap().then(t=>{t&&"error"!==t.status?a.push("/charity/application-final-step"):n((0,k.td)({msg:t.message,variant:"error"}))}).catch((0,w.kH)(n)):n((0,k.td)({msg:e("charity:third-step.not-a-charity-account"),variant:"error",action:!0})))},N=t=>{if("individual"===t.applicationType){let e=t.requestDetail,a={...e,isDisabled:"true"===e.isDisabled,isEmployed:"true"===e.isEmployed,isStudent:"true"===e.isStudent,hasOtherSupport:"true"===e.hasOtherSupport,_additionalDocument:e.additionalDocument,_disabilityDocument:e.disabilityDocument,_jobInsuranceDocument:e.jobInsuranceDocument,_studentDocument:e.studentDocument};return a.familyMemberCount&&(a.familyMemberCount=parseInt(a.familyMemberCount.toString())),delete a.additionalDocument,delete a.disabilityDocument,delete a.jobInsuranceDocument,delete a.studentDocument,a}{let e=t.requestDetail,a={...e,hasOtherSupport:"true"===e.hasOtherSupport,hasInternationalConnection:"true"===e.hasInternationalConnection,hasS
1pecialStatus:"true"===e.hasSpecialStatus,agenda:"true"===e.agenda,_organizationAdditionalDocument:e.organizationAdditionalDocument,_organizationRelationshipDocument:e.organizationRelationshipDocument,_organizationSpecialFieldDocument:e.organizationSpecialFieldDocument};return delete a.organizationAdditionalDocument,delete a.organizationRelationshipDocument,delete a.organizationSpecialFieldDocument,a}};return(0,i.jsx)(d.A,{sx:T.q_,"data-sentry-element":"Box","data-sentry-component":"ApplicationSummaryStep","data-sentry-source-file":"ApplicationSummaryStep.tsx",children:(0,i.jsxs)(x.A,{container:!0,spacing:2,direction:"row-reverse","data-sentry-element":"Grid","data-sentry-source-file":"ApplicationSummaryStep.tsx",children:[(0,i.jsx)(x.A,{size:{xs:12,md:5},sx:{display:{xs:"none",md:"flex"}},"data-sentry-element":"Grid","data-sentry-source-file":"ApplicationSummaryStep.tsx",children:(0,i.jsx)(A(),{src:j,alt:"Charity Image",style:{maxWidth:"100%",height:"auto"},"data-sentry-element":"Image","data-sentry-source-file":"ApplicationSummaryStep.tsx"})}),(0,i.jsx)(x.A,{size:{xs:12,md:1},"data-sentry-element":"Grid","data-sentry-source-file":"ApplicationSummaryStep.tsx"}),(0,i.jsxs)(x.A,{size:{xs:12,md:6},"data-sentry-element":"Grid","data-sentry-source-file":"ApplicationSummaryStep.tsx",children:[(0,i.jsxs)(u.A,{direction:"row",sx:{justifyContent:"space-between",display:"flex"},"data-sentry-element":"Stack","data-sentry-source-file":"ApplicationSummaryStep.tsx",children:[(0,i.jsx)(I.C4,{title:e("charity:summary-step.title"),returnLink:"/charity/application-third-step/address",currentStep:4,totalNumberOfSteps:4,"data-sentry-element":"CharityStepHeader","data-sentry-source-file":"ApplicationSummaryStep.tsx"}),!f&&(0,i.jsx)(d.A,{sx:{alignContent:"end",mb:"3.12rem"},children:(0,i.jsx)(m.A,{variant:"contained",sx:T.V4,disableElevation:!0,onClick:L,children:e("charity:summary-step.continue")})})]}),(0,i.jsxs)(u.A,{sx:{display:"flex",direction:"column",spacing:"3rem"},divider:(0,i.jsx)(y.A,{}),spacing:3,"data-sentry-element":"Stack","data-sentry-source-file":"ApplicationSummaryStep.tsx",children:[(0,i.jsxs)(C,{title:e("charity:summary-step.personal-information.title"),returnLink:"/charity/application-third-step/account",disabled:!0,"data-sentry-element":"CharitySummaryItem","data-sentry-source-file":"ApplicationSummaryStep.tsx",children:[(0,i.jsx)(h.A,{variant:"h6",sx:$,"data-sentry-element":"Typography","data-sentry-source-file":"ApplicationSummaryStep.tsx",children:`${e("charity:summary-step.personal-information.name")}: ${D.account?.firstName} ${D.account?.lastName}`}),(0,i.jsx)(h.A,{variant:"h6",sx:$,"data-sentry-element":"Typography","data-sentry-source-file":"ApplicationSummaryStep.tsx",children:`${e("charity:summary-step.personal-information.birth-date")}: ${D.account?.dateOfBirth?(0,S.GP)(new Date(D.account?.dateOfBirth),"dd/MM/yyyy"):""}`}),(0,i.jsx)(h.A,{variant:"h6",sx:$,"data-sentry-element":"Typography","data-sentry-source-file":"ApplicationSummaryStep.tsx",children:`${e("charity:summary-step.personal-information.email")}: ${D.account?.email}`}),(0,i.jsx)(h.A,{variant:"h6",sx:$,"data-sentry-element":"Typography","data-sentry-source-file":"ApplicationSummaryStep.tsx",children:`${e("charity:summary-step.personal-information.phone")}: +${D.account?.phone.dialCode} ${D.account?.phone.number}`})]}),(0,i.jsxs)(C,{title:e("charity:summary-step.person-count.title"),returnLink:"/charity/application-second-step","data-sentry-element":"CharitySummaryItem","data-sentry-source-file":"ApplicationSummaryStep.tsx",children:[(0,i.jsx)(h.A,{variant:"h6",sx:$,"data-sentry-element":"Typography","data-sentry-source-file":"ApplicationSummaryStep.tsx",children:` ${D.quantity} ${e("charity:second-step.person")}`}),(0,i.jsx)(h.A,{variant:"h6",sx:$,"data-sentry-element":"Typography","data-sentry-source-file":"ApplicationSummaryStep.tsx",children:D.recipient})]}),(0,i.jsx)(C,{title:e("charity:summary-step.application-type.title"),returnLink:"/charity/application-third-step/subscription","data-sentry-element":"CharitySummaryItem","data-sentry-source-file":"ApplicationSummaryStep.tsx",children:(0,i.jsx)(h.A,{variant:"h6",sx:$,"data-sentry-element":"Typography","data-sentry-source-file":"ApplicationSummaryStep.tsx",children:D.requestType===l.US.OneTimePurchase?e("charity:summary-step.application-type.one-time-purchase"):`${D.duration} ${e("charity:summary-step.application-type.subscription")}`})}),(0,i.jsx)(C,{title:e("charity:summary-step.motivation-letter.title"),returnLink:"/charity/application-third-step/subscription","data-sentry-element":"CharitySummaryItem","data-sentry-source-file":"ApplicationSummaryStep.tsx",children:(0,i.jsx)(h.A,{variant:"h6",sx:$,"data-sentry-element":"Typography","data-sentry-source-file":"ApplicationSummaryStep.tsx",children:D.applicationLetter})}),(0,i.jsx)(C,{title:e("charity:summary-step.address-information.title"),returnLink:"/charity/application-third-step/address","data-sentry-element":"CharitySummaryItem","data-sentry-source-file":"ApplicationSummaryStep.tsx",children:(0,i.jsx)(h.A,{variant:"h6",sx:$,"data-sentry-element":"Typography","data-sentry-source-file":"ApplicationSummaryStep.tsx",children:(t=D.address)?`${t.neighborhood?.name}, ${t.detail1}, ${t.city?.name}/${t.state?.name}, ${t.postalCode}`:""})})]}),f&&(0,i.jsx)(d.A,{sx:T.HB,children:(0,i.jsx)(m.A,{variant:"contained",sx:T.V4,disableElevation:!0,onClick:L,children:e("charity:summary-step.continue")})})]})]})})};var N=a(35079),z=!0;let E=()=>{let{t}=(0,o.A)();return(0,i.jsxs)(N.m,{invertHeader:!0,children:[(0,i.jsx)(s(),{children:(0,i.jsxs)("title",{children:[t("nav:charity")," | beije."]})}),(0,i.jsx)(r.A,{maxWidth:"lg",children:(0,i.jsx)(L,{})})]})}}},t=>{t.O(0,[2553,4992,2902,3931,3968,2799,8849,7540,4649,5121,9756,8745,4922,6834,3444,8802,7533,636,6593,8792],()=>t(t.s=3971)),_N_E=t.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.