1(this["webpackJsonpreact-project"]=this["webpackJsonpreact-project"]||[]).push([[31],{1095:function(e,a,t){"use strict";t.r(a);var c=t(3),n=t.n(c),i=t(7),o=t(31),s=t(4),l=t(40),r=t(402),d=t(34),u=t(18),b=t(536),j=t(87),m=t(68),p=t(56),_=t(107),v=t(256),O=t(405),f=t(871),x=t.n(f),y=t(6),h=Object(l.a)((function(e){var a=e.file,t=e.color,c=e.onClick,n=Object(r.a)("customerSelfManagement").t,i=a.name,o=a.tag;return Object(y.jsxs)("div",{className:x.a.container,children:[Object(y.jsx)("div",{className:x.a.iconContainer,children:Object(y.jsx)(v.a,{tag:o,type:"document"})}),Object(y.jsx)("div",{className:x.a.separator}),Object(y.jsxs)("div",{className:x.a.contentWrapper,children:[Object(y.jsx)("p",{className:x.a.title,children:i}),Object(y.jsx)(O.a,{className:x.a.button,label:n("download"),onClick:c,publicPrimary:t,big:!0})]})]})})),N=t(872),g=t.n(N),k=Object(l.a)((function(){var e=Object(d.useHistory)(),a=Object(d.useLocation)(),t=Object(r.a)("customerSelfManagement").t,c=new URLSearchParams(a.search),l=c.get("identityNumber"),v=c.get("plate"),O=Object(s.useState)(null),f=Object(o.a)(O,2),x=f[0],N=f[1],k=Object(s.useContext)(m.a),L=k.identityNumber,S=k.platform,C=k.insuredName,w=k.asset,H=k.documents,W=k.colors,P=k.insuranceCompany,D=k.metatitle;Object(s.useEffect)((function(){if(!L.value&&!l)return k.setStep(p.d.DOCUMENTS),void e.replace("".concat(u.k,"/").concat(S,"/clientes"));var a=function(){var e=Object(i.a)(n.a.mark((function e(){var a;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!l||!v){e.next=7;break}return k.setIdentityNumber(l),k.setPlate(v),e.next=5,k.checkUserPolicies();case 5:a=e.sent,N(!!a);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();L.value&&N(!0),a()}),[]);return k.isLoading||null===x?Object(y.jsx)(j.a,{center:!0}):x?Object(y.jsxs)("div",{children:[Object(y.jsx)(b.a,{metatitle:D,title:p.d.DOCUMENTS,store:k,colors:W,goBack:function(){e.replace("".concat(u.k,"/").concat(S))}}),Object(y.jsxs)("div",{className:g.a.container,children:[0===(null===H||void 0===H?void 0:H.length)&&Object(y.jsx)("p",{className:g.a.noDocs,children:t("noDocs")}),null===H||void 0===H?void 0:H.map((function(e){return Object(y.jsx)(h,{file:e,color:null===W||void 0===W?void 0:W.primary,onClick:function(){return function(e){var a={insuredIdentityNumber:null===L||void 0===L?void 0:L.value,insuredName:C,insuranceCompany:null===P||void 0===P?void 0:P.value,asset:w,file:e};Object(_.b)(_.a.KEY.DOCUMENT_DOWNLOAD_SELF_MANAGEMENT,a)}(e)}},null===e||void 0===e?void 0:e.id)}))]})]}):Object(y.jsx)("div",{className:g.a.container,children:Object(y.jsx)("p",{className:g.a.noDocs,children:t("noPolicy")})})}));a.default=k},405:function(e,a,t){"use strict";var c=t(23),n=t(85),i=t(4),o=t(167),s=t.n(o),l=t(109),r=t(473),d=t.n(r),u=t(6),b=function(e,a){var t=e.label,o=e.icon,r=e.primary,b=e.secondary,j=e.publicPrimary,m=e.publicSecondary,p=e.cancel,_=e.bold,v=e.big,O=e.small,f=e.type,x=void 0===f?"button":f,y=e.fullWidth,h=e.isLoading,N=e.hidden,g=e.cir
1cle,k=e.iconPositionLeft,L=e.as,S=void 0===L?"button":L,C=e.className,w=e.disabled,H=e.error,W=e.permission,P=void 0===W?null:W,D=e.smallest,M=e.outline,B=Object(n.a)(e,["label","icon","primary","secondary","publicPrimary","publicSecondary","cancel","bold","big","small","type","fullWidth","isLoading","hidden","circle","iconPositionLeft","as","className","disabled","error","permission","smallest","outline"]),R=Object(l.b)();if(P&&!R.can(P))return null;var E=Object(i.useRef)(null),T=Object(i.useCallback)((function(){"NavLink"!==S.name&&E.current.focus()}),[]);Object(i.useImperativeHandle)(a,(function(){return{setFocus:T}}));var V={};return j&&(V["--primary-color"]=j),m&&(V["--secondary-color"]=m),Object(u.jsxs)(S,Object(c.a)(Object(c.a)({type:x,disabled:h||w,className:s()(d.a.button,r&&d.a.primary,b&&d.a.secondary,j&&d.a.publicPrimary,m&&d.a.publicSecondary,v&&d.a.big,O&&d.a.small,D&&d.a.smallest,p&&d.a.cancel,_&&d.a.bold,y&&d.a.fullWidth,h&&d.a.isLoading,N&&d.a.hidden,g&&d.a.circle,k&&d.a.iconLeft,H&&d.a.error,M&&d.a.outline,C&&C),style:V,ref:"NavLink"!==S.name&&E},B),{},{children:[t,o&&Object(u.jsx)("span",{className:d.a.icon,children:o}),h&&Object(u.jsxs)("div",{className:d.a.loadingRing,children:[Object(u.jsx)("div",{}),Object(u.jsx)("div",{}),Object(u.jsx)("div",{}),Object(u.jsx)("div",{})]})]}))},j=Object(i.memo)(Object(i.forwardRef)(b));a.a=j},473:function(e,a,t){e.exports={button:"button_button__2ag03",icon:"button_icon__f47Fm",circle:"button_circle__2mPIG",iconLeft:"button_iconLeft__3miW_",small:"button_small__3ytfS",smallest:"button_smallest__3OtBd",primary:"button_primary__24j3L",outline:"button_outline__3KrfU",secondary:"button_secondary__2NCBJ",publicPrimary:"button_publicPrimary__ZVeRe",publicSecondary:"button_publicSecondary__TrBBW",cancel:"button_cancel__1HS24",bold:"button_bold__2Xb7d",hidden:"button_hidden__18Ada",big:"button_big__CgTkU",fullWidth:"button_fullWidth__98GK3",isLoading:"button_isLoading__1UuCC",error:"button_error__1S84f",loadingRing:"button_loadingRing__2ZU_3","lds-ring":"button_lds-ring__7-J2F"}},484:function(e,a,t){"use strict";var c,n=(c=t(4))&&"object"===typeof c&&"default"in c?c.default:c,i=Object.assign||function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&(e[c]=t[c])}return e},o=function(e){var a=e.color,t=void 0===a?"currentColor":a,c=e.size,o=void 0===c?24:c,s=(e.children,function(e,a){var t={};for(var c in e)a.indexOf(c)>=0||Object.prototype.hasOwnProperty.call(e,c)&&(t[c]=e[c]);return t}(e,["color","size","children"])),l="mdi-icon "+(s.className||"");return n.createElement("svg",i({},s,{className:l,width:o,height:o,fill:t,viewBox:"0 0 24 24"}),n.createElement("path",{d:"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z"}))},s=n.memo?n.memo(o):o;e.exports=s},496:function(e,a,t){e.exports={container:"publicGoBackBreadCrumb_container__3CQ7L",icon:"publicGoBackBreadCrumb_icon__1gpE7"}},507:function(e,a,t){"use strict";t.d(a,"a",(function(){return i}));var c=t(199),n=t(6),i=function(e){var a=e.title,t=e.metatitle;return Object(n.jsx)(c.a,{children:Object(n.jsx)("title",{children:"".concat(a," | ").concat(t)})})}},508:function(e,a,t){"use strict";var c=t(402),n=t(40),i=t(484),o=t.n(i),s=t(496),l=t.n(s),r=t(6),d=Object(n.a)((function(e){var a=e.goBack,t=e.color,n=Object(c.a)("customerSelfManagement").t;return Object(r.jsxs)("div",{className:l.a.container,onClick:a,role:"button",tabIndex:0,style:{"--color":t},children:[Object(r.jsx)(o.a,{className:l.a.icon,size:"20"}),Object(r.jsx)("p",{children:n("menu")})]})}));a.a=d},536:function(e,a,t){"use strict";var c=t(402),n=t.p+"static/media/zurich.70e825e5.svg",i=t.p+"static/media/allianz.44f5355b.svg",o=t.p+"static/media/sura.69fe04c8.svg",s=t.p+"static/media/experta.3d066a7a.svg",l=t.p+"static/media/mercantilAndina.3de14557.svg",r=t.p+"static/media/pasapIsoSecondary.d171bee8.png",d=(t(56),t(39)),u=t(507),b=t(508),j=t(546),m=t.n(j),p=t(6),_=function(e){var a=e.title;return Object(p.jsx)("p",{className:m.a.stepTitle,children:a})},v=t(547),O=t.n(v),f=function(e){var a,t,j,m,v=e.store,f=e.title,x=e.metatitle,y=e.colors,h=e.goBack,N=Object(c.a)("customerSelfManagement").t,g=v.asset,k=v.validFrom,L=v.validTo,S=v.insuranceCompany,C=v.policyNumber,w=v.insuredName;switch(null===S||void 0===S?void 0:S.id){case d.g:m=n;break;case d.c:m=i;break;case d.f:m=o;break;case d.d:m=s;break;case d.e:m=l;break;default:m=r}var H=null===g||void 0===g?void 0:g.split(",").map((function(e){return e.trim()})),W=null===H||void 0===H||null===(a=H.pop())||void 0===a?void 0:a.trim(),P=null===H||void 0===H||null===(t=H.pop())||void 0===t?void 0:t.trim(),D=null===H||void 0===H||null===(j=H.join(","))||void 0===j?void 0:j.trim();return Object(p.jsxs)("div",{className:O.a.container,style:{"--primary-color":null===y||void 0===y?void 0:y.primary},children:[Object(p.jsx)(u.a,{title:f,metatitle:x}),Object(p.jsx)(b.a,{goBack:h,color:null===y||void 0===y?void 0:y.primary}),Object(p.jsx)(_,{title:f}),Object(p.jsx)("div",{className:O.a.card,children:Object(p.jsxs)("div",{className:O.a.contentWrapper,children:[Object(p.jsx)("div",{className:O.a.logoSection,children:Object(p.jsx)("img",{src:m,alt:"Company Logo",className:O.a.logo})}),Object(p.jsx)("div",{className:O.a.divider}),Object(p.jsxs)("div",{className:O.a.dataWrapper,children:[Object(p.jsx)("div",{className:O.a.topRow,children:Object(p.jsxs)("div",{className:O.a.assetSection,children:[Object(p.jsx)("span",{className:O.a.keyLabel,children:N("asset")}),Object(p.jsx)("span",{className:O.a.assetModel,children:"".concat(D," ").concat(P)})]})}),Object(p.jsxs)("div",{className:O.a.bottomRow,children:[Object(p.jsxs)("div",{className:O.a.dataSection,children:[Object(p.jsx)("span",{className:O.a.keyLabel,children:N("insured")}),Object(p.jsx)("span",{className:O.a.valueLabel,children:w||"-"})]}),Object(p.jsx)("div",{className:O.a.divider}),Object(p.jsxs)("div",{className:O.a.dataSection,children:[Object(p.jsx)("span",{className:O.a.keyLabel,children:N("policyNumber")}
1),Object(p.jsx)("span",{className:O.a.valueLabel,children:C||"-"})]}),W&&Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)("div",{className:O.a.divider}),Object(p.jsxs)("div",{className:O.a.dataSection,children:[Object(p.jsx)("span",{className:O.a.keyLabel,children:N("plate")}),Object(p.jsx)("span",{className:"".concat(O.a.valueLabel," ").concat(O.a.plateValue),children:W})]})]}),Object(p.jsx)("div",{className:O.a.divider}),Object(p.jsxs)("div",{className:O.a.dataSection,children:[Object(p.jsx)("span",{className:O.a.keyLabel,children:N("validFrom")}),Object(p.jsx)("span",{className:O.a.valueLabel,children:k||"-"})]}),Object(p.jsx)("div",{className:O.a.divider}),Object(p.jsxs)("div",{className:O.a.dataSection,children:[Object(p.jsx)("span",{className:O.a.keyLabel,children:N("validTo")}),Object(p.jsx)("span",{className:O.a.valueLabel,children:L||"-"})]})]})]})]})})]})};f.defaultProps={title:null,metatitle:null,colors:null,goBack:null};var x=f;a.a=x},546:function(e,a,t){e.exports={stepTitle:"stepTitle_stepTitle__DXaz3"}},547:function(e,a,t){e.exports={container:"policyHeader_container__2J59q",card:"policyHeader_card__38Qyc",contentWrapper:"policyHeader_contentWrapper__1Zjch",logoSection:"policyHeader_logoSection__3tWjQ",logo:"policyHeader_logo__2-Vtk",divider:"policyHeader_divider__1QJ1G",dataWrapper:"policyHeader_dataWrapper__3aREW",topRow:"policyHeader_topRow__2tfxn",bottomRow:"policyHeader_bottomRow__iJKqu",assetSection:"policyHeader_assetSection__2hom2",assetModel:"policyHeader_assetModel__1jVFn",dataSection:"policyHeader_dataSection__2Ubs9",keyLabel:"policyHeader_keyLabel__4tGeC",valueLabel:"policyHeader_valueLabel__ywsbx"}},871:function(e,a,t){e.exports={container:"downloadDocumentCard_container__1ftWP",iconContainer:"downloadDocumentCard_iconContainer__9DPlh",separator:"downloadDocumentCard_separator__3rfxt",title:"downloadDocumentCard_title__vV-RM",contentWrapper:"downloadDocumentCard_contentWrapper__P1ncc"}},872:function(e,a,t){e.exports={container:"documents_container__1_lka",noDocs:"documents_noDocs__39kBE"}}}]); 2//# sourceMappingURL=DocumentsComponent.9002bd40.chunk.js.map
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.