1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="79b565d4-9f55-5f8a-b0fe-2500c32ec4a2")}catch(e){}}(); 3(self.webpackChunkultradinero_customer_client=self.webpackChunkultradinero_customer_client||[]).push([[547],{11547:(e,t,n)=>{n.r(t),n.d(t,{default:()=>H});var r=n(10467),i=n(65043),a=n(38872),c=n(73216),o=n(26240),s=n(53193),l=n(74605),d=n(51962),u=n(85865),f=n(88911),h=n(6520),g=n(22075),x=n(12110),m=n(26494),p=n(14194),A=n(83600),j=n(21541),_=n(54597),v=n(31256),y=n(60340),k=n(9971),b=n(17620),C=n(10584),w=n(70579);const H=(0,n(26332).A)((()=>{var[e,t]=(0,i.useState)(!1),[n,H]=i.useState(!1),[D,S]=i.useState(!1),[I,z]=(0,i.useState)({}),{userInfo:O}=(0,k.G)(b.mB),W=(0,k.j)(),P=(0,o.A)(),G=(0,A.A)(P.breakpoints.up("md")),L=i.useCallback((0,r.A)((function*(){z({})})),[]);(0,i.useEffect)((()=>{t(!!O.is_allow_to_receive_marketing_email)}),[]),(0,i.useEffect)((()=>{var e=!0;return e&&function(){var e=(0,r.A)((function*(){var e=yield(0,_.ug)(!0);t(!!e.data.is_allow_to_receive_marketing_email),W((0,b.Ve)({user:e.data})),(0,y.TV)(C.aX,e.data.preferred_product_code),(0,y.ni)("otpType",e.data.preferred_otp_code_sender),"created"!==e.data.state&&W((0,b.BH)(!0)),a.gV({id:e.data.id,username:e.data.username,email:e.data.email})}));return function(){return e.apply(this,arguments)}}()(),()=>{e=!1}}),[I]);var T=function(){var n=(0,r.A)((function*(n,r){if(t(n.target.checked),e)try{yield(0,_.qP)(r),H(!0),L()}catch(i){S(!0),t(!n.target.checked)}else try{yield(0,_.jN)(r),H(!0),L()}catch(i){S(!0),t(!n.target.checked)}}));return function(e,t){return n.apply(this,arguments)}}(),V=(e,t)=>{"clickaway"!==t&&(H(!1),S(!1))};return void 0===O.is_notification_sending_changed?(0,w.jsx)(v.aH,{open:!0}):O.is_notification_sending_changed?(0,w.jsx)(g.A,{xs:12,sm:10,smOffset:1,md:6,mdOffset:5,lg:4,lgOffset:4,children:(0,w.jsx)(x.A,{variant:"outlined",children:(0,w.jsx)(m.A,{children:(0,w.jsxs)(f.A,{gap:2,children:[(0,w.jsx)(u.A,{variant:"h6",fontWeight:700,fontSize:18,lineHeight:1.2,children:j.ct.km}),(0,w.jsx)(s.A,{children:(0,w.jsx)(l.A,{sx:{alignItems:"center"},label:(0,w.jsx)(u.A,{variant:"body2",fontSize:"1rem",fontWeight:500,lineHeight:"1.3125rem",children:j.ct.w4}),control:(0,w.jsx)(d.A,{checked:e,onChange:function(){var e=(0,r.A)((function*(e){yield T(e,{category:"marketing"})}));return function(t){return e.apply(this,arguments)}}()})})}),(0,w.jsx)(h.A,{anchorOrigin:{vertical:"bottom",horizontal:G?"right":"center"},open:n,autoHideDuration:5e3,onClose:V,children:(0,w.jsx)(p.A,{onClose:V,severity:"success",children:j.$e.J})}),(0,w.jsx)(h.A,{anchorOrigin:{vertical:"bottom",horizontal:G?"right":"center"},open:D,autoHideDuration:5e3,onClose:V,children:(0,w.jsx)(p.A,{onClose:V,severity:"error",children:"Error al actualizar la configuraci\xf3n de la suscripci\xf3n"})})]})})})}):(0,w.jsx)(c.C5,{to:"/user/not-found"})}))},26332:(e,t,n)=>{n.d(t,{A:()=>S});var r=n(89379),i=n(65043),a=n(73216),c=n(85865),o=n(26240),s=n(83600),l=n(22075),d=n(21541),u=n(60340),f=n(40901),h=n(94109),g=n(55263),x=n(88911),m=n(88446),p=n(53404),A=n(38872),j=n(84312),_=n(9971),v=n(17620),y=n(47204),k=n(31256),b=n(65523),C=n(10584),w=n(70579);const H=()=>{var{externalItems:e,internalItems:t}=(0,j.TN)("header"),{authenticated:n,userInfo:i}=(0,_.G)(v.mB),s=(0,o.A)(),l=(0,_.j)(),H=(0,a.Zp)(),{pathname:D,state:S}=(0,a.zy)(),I=D.includes("registration")||D.includes("login")||D.includes("take-loan"),z={fontWeight:600,fontSize:"1rem",lineHeight:"1.1875rem"};return(0,w.jsxs)(h.Ay,{sx:{width:"282px",maxWidth:"282px",flexShrink:0,"& .MuiDrawer-paper":{width:"282px",maxWidth:"282px",boxSizing:"border-box"}},variant:"permanent",anchor:"left",children:[(0,w.jsx)(g.A,{sx:{minHeight:"83px !important"},children:(0,w.jsx)(b.gu,{})}),(0,w.jsxs)(x.A,{flexDirection:"column",justifyContent:"space-between",height:"100%",children:[(0,w.jsxs)(x.A,{flexDirection:"column",justifyContent:"flex-start",gap:"1.5rem",children:[(0,w.jsxs)(x.A,{flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",children:[(0,w.jsx)(c.A,{variant:"body2",fontWeight:500,lineHeight:"1.3125rem",sx:e=>{var{palette:t}=e;return{color:t.customGrey.light1,padding:s.spacing(0,2.5)}},children:d.ct.WQ}),t.filter((e=>!!i.is_notification_sending_changed||e.link!==f.f.AccountSubscriptions)).map((e=>{return(0,w.jsx)(k.Tm,{active:D===e.link,disabled:(t=e.link,"pdl_google"===i.preferred_product_code||(t===f.f.AccountLoanHistory||t===f.f.AccountPersonalInfo||t===f.f.AccountDocuments?!n||i.has_sold_loans:t===f.f.AccountReferralProgram&&i.has_sold_loans)),onClick:()=>{var t;t=e.link,H(t,{replace:!0,state:[f.f.Account,f.f.AccountReferralProgram].includes(t)?S:null})},children:e.text},e.link);var t}))]}),(0,w.jsxs)(x.A,{flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",children:[(0,w.jsx)(c.A,{variant:"body2",fontWeight:500,lineHeight:"1.3125rem",sx:e=>{var{palette:t}=e;return{color:t.customGrey.light1,padding:s.spacing(0,2.5)}},children:d.ct.i3}),e.map(((e,t)=>"pdl_google"===i.preferred_product_code&&0===t?null:(0,w.jsx)(m.A,{href:e.link,target:"_blank",sx:(0,r.A)((0,r.A)({display:"block",width:"100%",textDecoration:"none",padding:s.spacing(2.5)},z),{},{color:s.palette.customGrey.dark3}),children:e.text},e.link)))]})]}),!I&&n&&(0,w.jsx)(p.A,{variant:"text",onClick:()=>{(0,u.Nc)(),(0,u.X)(C.Xg),l((0,v.Ve)({user:{id:0,username:""}})),l((0,v.BH)(!1)),A.gV(null),H(f.f.Login,{replace:!0})},sx:e=>{var{palette:t}=e;return(0,r.A)((0,r.A)({},z),{},{color:t.customGrey.light1,justifyContent:"flex-start",padding:s.spacing(2.5)})},startIcon:(0,w.jsx)(y.h,{}),children:d.iD.ri})]})]})};var D=[f.f.Account,f.f.AccountReferralProgram];const S=e=>t=>{var n=(0,a.Zp)(),{state:h,pathname:g}=(0,a.zy)(),x=(0,o.A)(),m=(0,s.A)(x.breakpoints.up("md"));i.useEffect((()=>{var e;
3window.scrollTo(0,0),!(0,u.ib)()&&!D.includes(g)&&n(f.f.Login,{state:{from:null!==(e=null===h||void 0===h?void 0:h.from)&&void 0!==e?e:g}})}),[]);return(0,w.jsxs)(w.Fragment,{children:[m&&(0,w.jsx)(H,{}),(0,w.jsxs)(l.A,{container:!0,gap:"1.5rem",children:[(0,w.jsx)(l.A,{xs:12,sm:10,smOffset:1,md:6,mdOffset:5,lg:4,lgOffset:4,children:(0,w.jsx)(c.A,{variant:"h4",children:(e=>{switch(e){case f.f.Account:return d.ct.oo;case f.f.AccountReferralProgram:return d.ct.OA;case f.f.AccountPersonalInfo:return d.ct.ls;case f.f.AccountLoanHistory:return d.ct.LF;case f.f.AccountSubscriptions:return d.ct.x0;case f.f.AccountDocuments:return d.ct.k5;default:return d.ct.WQ}})(g)})}),(0,w.jsx)(e,(0,r.A)({},t))]})]})}}}]); 4//# sourceMappingURL=547.c2b73db8.chunk.js.map 5//# debugId=79b565d4-9f55-5f8a-b0fe-2500c32ec4a2
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.