1"use strict";(self.webpackChunkcomfama_portalservicios_archetype=self.webpackChunkcomfama_portalservicios_archetype||[]).push([[1032],{2192:function(e,t,i){i.d(t,{He:function(){return c},Hr:function(){return n},O5:function(){return l},P_:function(){return d},Sm:function(){return o},Yq:function(){return a},jn:function(){return u},k9:function(){return s},rv:function(){return r}});const a=e=>{try{return new Date(e).toLocaleDateString("es-CO",{day:"numeric",month:"long",year:"numeric"})}catch(t){return e}},n=e=>{const t=Math.abs(parseFloat(e)||0);return new Intl.NumberFormat("es-CO",{style:"currency",currency:"COP",minimumFractionDigits:0}).format(t)},o=e=>Math.floor(parseFloat(e)||0).toString(),s=e=>{const t=new Date(e);return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`},c=e=>{if(8!==e.length)return e;return`${e.slice(0,4)}-${e.slice(4,6)}-${e.slice(6,8)}`},r=e=>{const t=new Date(e);return t.setFullYear(t.getFullYear()+1),s(t.getTime())},l=(e,t)=>{if(!e||!t)return!1;const i=new Date(e),a=new Date(t);if(a<i)return!1;const n=new Date(e);return n.setFullYear(n.getFullYear()+1),a<=n},u=()=>"El rango de fechas no puede exceder 1 año",d=e=>{if(!e)return 0;if(8===e.length){const t=e.substring(0,4),i=e.substring(4,6),a=e.substring(6,8);return new Date(`${t}-${i}-${a}`).getTime()}return new Date(e).getTime()}},6515:function(e,t,i){var a=i(96540),n=i(64810),o=i(4240),s=i(45871),c=i(17325),r=i(29390),l=i(74848);t.A=e=>{const t=(0,n.useStaticQuery)("936848023").allContentfulTemplate.nodes[0],{imagen:i,nombre:u,referencias:d,descripcion:M}=null!=t?t:{};(0,a.useEffect)(()=>(document.documentElement.style.overflowY="hidden",()=>{document.documentElement.style.overflowY="scroll"}),[]);const N=()=>{e.closeModal()},g=e=>({renderNode:{[s.BLOCKS.PARAGRAPH]:(t,i)=>(0,l.jsx)("p",{className:e,children:i})}});return(0,l.jsxs)("div",{role:"dialog",className:"m-error-modal",children:[(0,l.jsxs)("div",{className:"m-error-modal__content",onClick:()=>{},children:[(0,l.jsx)("div",{className:"m-error-modal__exit",children:(0,l.jsx)("button",{"aria-label":"Close",className:"icon icon-close m-error-modal__exit-icon",onClick:N})}),(0,l.jsxs)("div",{className:"m-error-modal__container",children:[((null==t?void 0:t.imagen)||e.imageNew)&&(0,l.jsx)("img",{className:"m-error-modal__container-icon",src:e.imageNew?e.imageNew:(0,r.s)(i[0]),alt:e.imageNew?e.imageNew.title:i[0].title,title:e.imageNew?e.imageNew.title:i[0].title}),(u||e.title)&&(0,l.jsx)("h3",{className:"m-error-modal__container-title",children:e.title?e.title:u}),(M&&M.raw||e.subtitle)&&e.subtitle?e.subtitle.raw?(0,o.i)(JSON.parse(e.subtitle.raw),g("m-error-modal__container-description")):(0,l.jsx)("p",{className:"m-error-modal__container-description",children:e.subt
1itle}):(0,o.i)(JSON.parse(M.raw),g("m-error-modal__container-description")),(0,l.jsx)(c.A,{type:"button",classname:"m-error-modal__container-button modal",text:e.buttonCopy?e.buttonCopy:d[0].copyBoton?d[0].copyBoton:"Aceptar",isDisabled:!1,onClickAction:e.buttonEvent?e.buttonEvent:()=>{N()}}),e.extraEvent&&e.extraEventCopy&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"m-error-modal__container-separator"}),(0,l.jsx)("p",{className:"m-error-modal__container-extra-event",onClick:e.extraEvent,children:e.extraEventCopy})]})]})]}),(0,l.jsx)("button",{role:"button","aria-label":"Close",className:"m-error-modal__bkg",onClick:N})]})}},13207:function(e,t,i){var a=i(96540),n=i(4240),o=i(74848);t.A=({tooltipLeft:e=!1,tooltipBottomCenter:t=!1,tooltipTopCenter:i=!1,content:s,stringContent:c,title:r})=>{const[l,u]=(0,a.useState)(!1);return(0,o.jsxs)("div",{className:"a-tooltip-element--tooltip","data-testid":"tooltip-element",children:[(0,o.jsx)("i",{"data-testid":"tooltip-icon",className:"icon icon-question-circle",onClick:()=>u(!0)}),(0,o.jsx)("div",{children:(0,o.jsxs)("span",{"data-testid":"tooltip-text",className:`a-tooltip-element--tooltip__text \n ${e?"a-tooltip-element--tooltip__text--left":""}\n ${i?"a-tooltip-element--tooltip__text--bottom-center a-tooltip-element--tooltip__text--bottom-center__top-mobile":""}\n ${t?"a-tooltip-element--tooltip__text--bottom-center":""} \n ${l?"":"a-tooltip-element--tooltip__text--inactive"}`,children:[(0,o.jsxs)("button",{className:"a-tooltip-element__close",onClick:()=>u(!1),children:[(0,o.jsx)("span",{className:"a-tooltip-element__line"}),(0,o.jsx)("span",{className:"a-tooltip-element__line"})]}),r&&(0,o.jsx)("h3",{className:"a-tooltip-element__title",children:r}),s&&(e=>e?"string"==typeof e?(e=>{try{return JSON.parse(e),!0}catch(t){return!1}})(e)?(0,n.i)(JSON.parse(e)):null:(0,n.i)(e):null)(s),c&&(0,o.jsx)("p",{className:"a-tooltip-element__description",children:c})]})})]})}},21529:function(e,t,i){var a=i(96540);const n="undefined"!=typeof window?a.useLayoutEffect:a.useEffect;t.A=n},47379:function(e,t,i){i.d(t,{A:function(){return n}});var a=i(58168);function n(e,t){const i=(0,a.A)({},t);return Object.keys(e).forEach(o=>{if(o.toString().match(/^(components|slots)$/))i[o]=(0,a.A)({},e[o],i[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const s=e[o]||{},c=t[o];i[o]={},c&&Object.keys(c)?s&&Object.keys(s)?(i[o]=(0,a.A)({},c),Object.keys(s).forEach(e=>{i[o][e]=n(s[e],c[e])})):i[o]=c:i[o]=s}else void 0===i[o]&&(i[o]=e[o])}),i}},63408:function(e,t,i){i.d(t,{Y:function(){return c}});var a=i(64810),n=i(68667),o=i(96540),s=i(64691);const c=()=>{const{selectedTab:e}=(0,o.useContext)(s.A),t=(0,a.useStaticQuery)("4036828946"),i=t.allContentfulHome.nodes[0].slider[0].referencias[0].referencias,c=t.allContentfulHome.nodes[0].slider[0].referencias[1].referencias;return{bannerData:(null==e?void 0:e.get)===n.m.PEOPLE?i:c,sliderPerson:i,sliderBusiness:c}}},68315:function(e,t,i){i.d(t,{A:function(){return N}});var a=i(96540),n=i(64810),o=i(4240),s=i(45871),c=i(19871),r=i(29390),l=i(74848);var u=()=>{const e=(0,n.useStaticQuery)("8872584"),[t,i]=(0,a.useState)(5),[u,d]=(0,a.useState)(!1),{isBrowser:M,localStorage:N}=(0,c.A)(),g=e.allContentfulTemplate.nodes[0],j={renderNode:{[s.BLOCKS.PARAGRAPH]:(e,t)=>(0,l.jsx)("p",{children:t}),[s.BLOCKS.HEADING_1]:(e,t)=>(0,l.jsx)("h1",{children:t})}},x=(0,a.useCallback)(()=>setInterval(()=>{t>0?i(t-1):d(!0)},1e3),[t]);return(0,a.useEffect)(()=>{const e=x();return 0===t&&(d(!0),clearInterval(e),(()=>{var e,t;const i=null===(e=N.getItem("CURRENT_TAB"))||void 0===e?void 0:e.toString(),a=null===(t=window)||void 0===t?void 0:t.location.hostname;window.location.href="empresas"===i?"localhost"===a?"/empresas":"/portal-servicios/empresas":"localhost"===a?"/personas":"/portal-servicios/personas"})()),()=>{clearInterval(e)}},[u,t]),(0,l.jsx)(l.Fragment,{children:M&&(0,l.jsxs)("section",{className:"o-head404",children:[(0,l.jsxs)("article",{className:"o-head404__container",children:[g.tituloEnriquecido&&(0,o.i)(JSON.parse(g.tituloEnriquecido.raw),j),(0,l.jsxs)("p",{children:["Seras Redirigido a la pagina inicial en: ",t," Segundos"]})]}),(0,l.jsx)("figure",{className:"o-head404__cover",children:(0,l.jsx)("img",{loading:"lazy",className:"o-head404__cover__img",src:g.imagen[0]&&(0,r.s)(g.imagen[0]),alt:g.imagen[0].title})})]})})},d=i(62291),M=i(62585);var N=({data:e,children:t,hasLoader:i,isPrivate:a,hideSide:n,sideMenu:o,isMain:s,isActive:c,serviceId:r})=>{var N;const{metaTitulo:g,metaDescripcion:j,metaImagen:x,noIndex:m,urlCanonical:D}=e;return(0,l.jsx)(d.A,{hasLoader:i,isPrivate:a,hideSide:n,sideMenu:o,isMain:s,serviceId:r,children:c?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(M.A,{title:g,description:j,image:null==x||null===(N=x.file)||void 0===N?void 0:N.url,noIndex:m,urlCanonical:D,noCanonical:!1,lang:"es"}),t]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(M.A,{title:"Pagina no encontrada",noIndex:!0}),(0,l.jsx)(u,{})]})})}},68899:function(e,t,i){i.d(t,{A:function(){return n}});var a=i(47379);function n(e){const{theme:t,name:i,props:n}=e;return t&&t.components&&t.components[i]&&t.components[i].defaultProps?(0,a.A)(t.components[i].defaultProps,n):n}},81979:function(e,t,i){i.d(t,{A:function(){return se}});var a=i(96540),n=i(79771),o=i(64810),s=i(74848);const c={warning:"#F48AB3",success:"#7ECCC9",informative:"#ECA785"};var r=({type:e,text:t,buttonRedirect:i,buttonText:a,icon:n,key:r})=>(0,s.jsxs)("div",{className:"notification-card__container",children:[(0,s.jsx)("div",{className:"notification-card__container__icon",style:{backgroundColor:c[e]},children:(0,s.jsx)("img",{src:n,alt:"dolar icon",width:18,height:18})}),(0,s.jsxs)("div",{className:"notification-card__container__text",children:[(0,s.jsx)("h3",{children:t}),(0,s.jsx)(o.Link,{to:i,className:"notification-card__container__button",children:a})]})]},r);var l=({title:e,children:t,icon:i})=>{const[n,o]=(0,a.useState)(!1);return(0,s.jsxs)("div",{className:"accordion",children:[(0,s.jsxs)("div",{className:"accordion__header "+(n?"active":""),onClick:()=>{o(!n)},children:[(0,s.jsxs)("div",{className:"accordion__title",children:[(0,s.jsx)("div",{className:"accordion__img "+(n?"active":""),children:(0,s.jsx)("img",{src:i,alt:"icon-header"})}),(0,s.jsx)("h3",{children:e})]}),(0,s.jsx)("span",{className:"accordion__icon",children:(0,s.jsx)("img",{src:n?"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNiIgaGVpZ2h0PSIyNyIgdmlld0JveD0iMCAwIDI2IDI3Ij48ZGVmcz48c3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)("div",{className:"accordion__content "+(n?"open":""),children:t})]})},u=i(90508);var d=({title:e,description:t,buttonText:i,buttonLink:a,imageSrc:n,label:o})=>(0,s.jsxs)("div",{className:"cardCarrousel",children:[(0,s.jsx)("img",{src:n,alt:e,className:"cardCarrousel__image",width:200,height:200}),(0,s.jsxs)("div",{className:"cardCarrousel__content",children:[o&&(0,s.jsx)("span",{className:"cardCarrousel__label",children:o}),(0,s.jsx)("h3",{className:"cardCarrousel__title",children:e}),(0,s.jsx)("p",{className:"cardCarrousel__description",children:t}),(0,s.jsx)("a",{href:a,className:"cardCarrousel__button",children:i})]})]});var M=({cards:e,cardsPerSlide:t,title:i="PodrÃa interesarte"})=>{const[n,o]=(0,a.useState)(0),c=(0,u.A)("(max-width:768px)")?1:t,r=Math.ceil(e.length/c),l=e.slice(n*c,n*c+c);return(0,s.jsxs)("div",{className:"carousel",children:[(0,s.jsx)("h2",{className:"carousel__title",children:i}),(0,s.jsxs)("div",{className:"carousel__navigation",children:[(0,s.jsxs)("button",{onClick:()=>{o(e=>0===e?r-1:e-1)},className:0===n?"carousel__navigation__btn":"carousel__navigation__btnActive",children:[" ","<"]}),(0,s.jsxs)("button",{onClick:()=>{o(e=>e===r-1?0:e+1)},className:0!==n?"carousel__navigation__btn":"carousel__navigation__btnActive",children:[" ",">"]})]}),(0,s.jsx)("div",{className:"carousel__cardsContainer",children:l.map((e,t)=>(0,s.jsx)("div",{className:"carousel__item",children:(0,s.jsx)(d,{...e})},t))}),(0,s.jsx)("div",{className:"carousel__indicators",children:Array.from({length:r}).map((e,t)=>(0,s.jsx)("div",{className:t===n?"carousel__indicatorActive":"carousel__indicator",onClick:()=>o(t)},t))})]})},N=i(6515),g=i(21396),j=i.n(g),x=i(51145),m=i.p+"static/select-bussines-0ef68aee409013d16c5833b053289bf9.svg",D=i(61067);var T=({selectedValue:e,setSelectedValue:t,placeholder:i,options:a})=>(0,s.jsxs)("div",{className:"a-dropdown",children:[(0,s.jsx)("p",{className:"a-dropdown-label",children:"Identificación empresarial"}),(0,s.jsx)(D.Ay,{options:a,isSearchable:!0,maxMenuHeight:150,placeholder:i,styles:{indicatorSeparator:()=>({display:"none"}),dropdownIndicator:e=>({...e,color:"#ff277e"}),placeholder:e=>({...e,fontFamily:"roboto-regular",whiteSpace:"nowrap",fontSize:"0.91429rem",color:"#6F7287"}),option:(e,t)=>({...e,fontFamily:"roboto-regular",fontSize:"0.91429rem",color:"#36373A",backgroundColor:t.isSelected?"#FFF5F9":"#FFFFFF","&:hover":{backgroundColor:"#FFF5F9"}}),singleValue:e=>({...e,whiteSpace:"nowrap",fontFamily:"roboto-regular",color:"#6F7287",fontSize:"0.91429rem"}),noOptionsMessage:e=>({...e,fontFamily:"roboto-regular"}),input:e=>({...e,fontFamily:"roboto-regular"}),control:()=>({display:"flex",border:"1px solid #DBDBDB",borderRadius:"0px"})},onChange:e=>{t(e)},value:e,noOptionsMessage:()=>"No se encontraron resultados"})]}),I=i(64691),v=i(44460),y=i(54460),A=i(44798),p=i(48596),z=i(68667);var _=()=>{var e,t,i;const[n,o]=(0,a.useState)(!1),[c,r]=(0,a.useState)(),[l,u]=(0,a.useState)(!1),{business:d,gigyaContext:M,userInfoContext:N}=(0,a.useContext)(I.A),g=null!==(e=(e=>{const t=null==e?void 0:e.map((e,t)=>({...e,label:`${z.K[e.companyDocType]} ${e.companyDocID}`,value:t})),i=[];return null==t||t.forEach(e=>{if(t.filter(t=>t.companyDocID===e.companyDocID).length>1){if(-1===i.findIndex(function(t){return t.companyDocID===e.companyDocID})){const a=t.filter(t=>t.companyDocID===e.companyDocID).map(e=>e.serviceId);e.serviceId=a,i.push(e)}}else e.serviceId=[e.serviceId],i.push(e)}),i})(null===(t=M.gigyaAccount)||void 0===t||null===(i=t.data)||void 0===i?void 0:i.servicesAuth))&&void 0!==e?e:[],D=new x.A;return(0,s.jsxs)("div",{className:"noBussinessSelect",children:[(0,s.jsx)("img",{src:m,alt:"select bussiness img"}),(0,s.jsxs)("div",{className:"noBussinessSelect__container",children:[(0,s.jsx)("h3",{className:"noBussinessSelect__container__title",children:"Selecciona la identificación empresarial de la empresa que te gustarÃa ver"}),(0,s.jsx)(T,{selectedValue:c,setSelectedValue:r,placeholder:"Selecciona o escribe",options:g}),l&&(0,s.jsxs)("div",{className:"noBussinessSelect__container-message",children:[(0,s.jsx)("i",{className:"icon icon-exclamation-triangle noBussinessSelect__container-message__icon"}),(0,s.jsx)("p",{className:"noBussinessSelect__container-message__text",children:l})]}),(0,s.jsx)("button",{onClick:async()=>
1{if(c){o(!0);const S=c.companyDocID.replace(/\s/g,"")+("CO1N"===c.companyDocType?(0,y.A)(String(c.companyDocID)):"");try{var e,t;const o=await(0,A.Z)(S);var i;if(200===(null==o?void 0:o.status)&&(null==o||null===(e=o.data)||void 0===e||null===(t=e.records)||void 0===t?void 0:t.length)>0)if("VIGEN"===(null==o||null===(i=o.data)||void 0===i?void 0:i.records[0].status)){var a,n,s,r,l,g;if(c.label=null==o||null===(a=o.data)||void 0===a?void 0:a.records[0].companyName,null==d||d.set(c),D.set("CURRENT_BUSINESS",j().AES.encrypt(JSON.stringify(c),"comfama").toString(),{path:"/",expires:new Date(new Date(Date.now()+6e5))}),null!=M&&M.gigyaAccount)(0,v.A)(`${null==M||null===(n=M.gigyaAccount)||void 0===n?void 0:n.profile.firstName} ${M.gigyaAccount.data.secondName?`${M.gigyaAccount.data.secondName} `:""}${M.gigyaAccount.profile.lastName}${M.gigyaAccount.data.secondLastName?` ${M.gigyaAccount.data.secondLastName}`:""}`,null==M||null===(s=M.gigyaAccount)||void 0===s?void 0:s.data.docNumber,null==M||null===(r=M.gigyaAccount)||void 0===r?void 0:r.data.docType,null==M||null===(l=M.gigyaAccount)||void 0===l?void 0:l.profile.email,"click",`${(0,p.Hn)("Seleccionar Empresa exitoso")}`,null===(g=N.data)||void 0===g?void 0:g.userJwt)}else{var x,m,T,I,z,_,E;if(null!=M&&M.gigyaAccount)(0,v.A)(`${null==M||null===(T=M.gigyaAccount)||void 0===T?void 0:T.profile.firstName} ${M.gigyaAccount.data.secondName?`${M.gigyaAccount.data.secondName} `:""}${M.gigyaAccount.profile.lastName}${M.gigyaAccount.data.secondLastName?` ${M.gigyaAccount.data.secondLastName}`:""}`,null==M||null===(I=M.gigyaAccount)||void 0===I?void 0:I.data.docNumber,null==M||null===(z=M.gigyaAccount)||void 0===z?void 0:z.data.docType,null==M||null===(_=M.gigyaAccount)||void 0===_?void 0:_.profile.email,"click",`${(0,p.Hn)("Seleccionar Empresa fallido")}`,null===(E=N.data)||void 0===E?void 0:E.userJwt);u("VIGEN"!==(null==o||null===(x=o.data)||void 0===x||null===(m=x.records[0])||void 0===m?void 0:m.status)?"La empresa no se encuentra vigente":"No fue posible cambiar de empresa")}else u("No fue posible cambiar de empresa")}catch(h){console.log(h)}o(!1)}},className:c?"noBussinessSelect__container__button":"noBussinessSelect__container__buttonDisabled",children:"Continuar"})]})]})},E=i.p+"static/no-service-870f643370254171500c7cb72b430dcb.svg";var h=()=>(0,s.jsxs)("div",{className:"notBussinessAuth",children:[(0,s.jsx)("img",{src:E,alt:"no service img",className:"notBussinessAuth__img"}),(0,s.jsx)("h2",{className:"notBussinessAuth__title",children:"No tienes servicios empresariales"}),(0,s.jsx)("h3",{className:"notBussinessAuth__message",children:"Para acceder a estos servicios debes completar el registro para empresas"}),(0,s.jsx)("a",{href:"#",className:"notBussinessAuth__btn",children:"Registrar mi empresa"})]});const S={active:"#FCE3ED",inactive:"#F3F3F3"};var f=({button:e,text:t,valor:i,secondaryText:a,buttonAction:n,buttonText:o,type:c="active"})=>(0,s.jsxs)("div",{className:"card-accordeon-notification__container",style:{backgroundColor:S[c]},children:[(0,s.jsxs)("div",{className:"card-accordeon-notification__content",children:[(0,s.jsx)("p",{className:"card-accordeon-notification__text",children:t}),i&&(0,s.jsx)("p",{className:"card-accordeon-notification__value",children:i})]}),(0,s.jsxs)("div",{children:[e&&(0,s.jsx)("button",{type:"button",onClick:n,className:"card-accordeon-notification__button",children:o}),a&&(0,s.jsx)("p",{className:"card-accordeon-notification__secondaryText",children:a})]})]}),L=i(13207);var C=({title:e,subtitle:t,children:i,dateString:a,date:n,chipText:o,value:c,text:r,redirect:l,tooltip:u,chipColor:d,uses:M,usesQuantity:N,chipTextColor:g,icon:j,key:x})=>(0,s.jsxs)("div",{className:"accordeon-card__container",children:[(0,s.jsx)("h2",{className:"accordeon-card__title",children:e}),t&&(0,s.jsx)("p",{className:"accordeon-card__subtitle",children:t}),(0,s.jsxs)("div",{className:"accordeon-card__content",children:[(0,s.jsxs)("div",{className:"accordeon-card__content__text",children:[(0,s.jsxs)("div",{children:[a&&(0,s.jsx)("p",{className:"accordeon-card__dateText",children:a}),n&&(0,s.jsx)("p",{className:"accordeon-card__dateText",children:n})]}),(0,s.jsxs)("div",{children:[M&&(0,s.jsx)("p",{className:"accordeon-card__dateText",children:M}),N&&(0,s.jsx)("p",{className:"accordeon-card__dateText",children:N})]}),(0,s.jsxs)("div",{children:[r&&(0,s.jsx)("p",{className:"accordeon-card__text",children:r}),c&&(0,s.jsx)("p",{className:"accordeon-card__value",children:c})]})]}),(0,s.jsxs)("div",{className:"accordeon-card__content__chipContainer",children:[o&&(0,s.jsx)("p",{className:"accordeon-card__chip",style:{backgroundColor:d,c
1olor:g},children:o}),u&&(0,s.jsx)(L.A,{stringContent:u,icon:j})]}),i&&(0,s.jsx)("div",{children:i})]})]},x),O=i(2192);const b=({service:e,index:t})=>(0,s.jsx)(C,{redirect:"",title:e.Servicio__c,subtitle:e.AgrupadorMayor__c,uses:"# de usos",usesQuantity:(0,O.Sm)(e.Cantidad__c),dateString:"Fecha de Uso",date:(0,O.Yq)(e.FechaUso__c),text:"Valor pagado",value:(0,O.Hr)(e.MontoPagado__c),tooltip:"Estos valores corresponden al último año calendario",chipText:`Usado en: ${e.SedeUso__c}`,chipColor:"#E6F0FF",chipTextColor:"#003366",children:(0,s.jsx)(f,{type:"active",buttonText:"Ver más detalles",text:e.AgrupadorDetalle__c})},`education-${t}`),w=({service:e,index:t})=>(0,s.jsx)(C,{redirect:"",title:e.AgrupadorMayor__c,subtitle:e.AgrupadorDetalle__c,dateString:"Fecha de Uso",date:(0,O.Yq)(e.FechaUso__c),text:"Trabajadores beneficiados",value:(0,O.Sm)(e.Cantidad__c),tooltip:"Estos valores corresponden al último año calendario",chipText:`Usado en: ${e.SedeUso__c}`,chipColor:"#E6F0FF",chipTextColor:"#003366",children:(0,s.jsx)(f,{type:"active",text:"Valor pagado",valor:(0,O.Hr)(e.MontoPagado__c)})},`sales-${t}`),U=({service:e,index:t})=>(0,s.jsx)(C,{redirect:"",title:e.AgrupadorDetalle__c,subtitle:e.AgrupadorMayor__c,uses:"# de usos",usesQuantity:(0,O.Sm)(e.Cantidad__c),dateString:"Fecha de Uso",date:(0,O.Yq)(e.FechaUso__c),text:"Valor pagado",value:(0,O.Hr)(e.MontoPagado__c),tooltip:"Estos valores corresponden al último año calendario",chipText:`Usado en: ${e.SedeUso__c}`,chipColor:"#E6F0FF",chipTextColor:"#003366",children:(0,s.jsx)(f,{type:"active",valor:(0,O.Hr)(e.MontoSubsidiado__c),text:"Valor subsidiado"})},`experience-${t}`),Q=({service:e,index:t})=>(0,s.jsx)(C,{redirect:"",title:e.Servicio__c,uses:"# de ingresos",dateString:"Fecha de uso",date:(0,O.Yq)(e.FechaUso__c),usesQuantity:(0,O.Sm)(e.Cantidad__c),text:"Valor pagado",value:(0,O.Hr)(e.MontoPagado__c),tooltip:"Estos valores corresponden al último año calendario",chipText:`Parques visitados: ${e.SedeUso__c}`,chipColor:"#E6F0FF",chipTextColor:"#003366",children:(0,s.jsx)(f,{type:"active",valor:(0,O.Hr)(e.MontoSubsidiado__c),text:"Valor subsidiado"})},`park-${t}`),k=({service:e,index:t})=>(0,s.jsx)(C,{redirect:"",title:e.Servicio__c,dateString:"Fecha de pago",date:(0,O.Yq)(e.FechaUso__c),tooltip:"Estos valores corresponden al último año calendario",chipText:e.SedeUso__c,chipColor:"#E6F0FF",chipTextColor:"#003366",children:(0,s.jsx)(f,{type:"active",button:!0,buttonAction:()=>(0,o.navigate)("/personas/certificados/consulta-de-pago-subsidio-familiar/"),buttonText:"Conoce más",valor:(0,O.Hr)(e.MontoSubsidiado__c),text:"Subsidio recibido"})},`subsidy-${t}`),Y=({service:e,index:t})=>(0,s.jsx)(C,{redirect:"",title:e.Servicio__c,dateString:"Fecha de uso",date:(0,O.Yq)(e.FechaUso__c),uses:"Tus viajes",usesQuantity:(0,O.Sm)(e.Cantidad__c),text:"Valor pagado",value:(0,O.Hr)(e.MontoPagado__c),tooltip:"Estos valores corresponden al último año calendario",chipText:`Lugares visitados: ${e.AgrupadorDetalle__c}`,chipColor:"#E6F0FF",chipTextColor:"#003366",children:(0,s.jsx)(f,{type:"active",valor:(0,O.Hr)(e.MontoSubsidiado__c),text:"Valor subsidiado"})},`travel-${t}`),F="mis subsidios",P="mis viajes y recreación",B="mis experiencias comfama",$="educación y cultura",R="venta empresarial",H={SUBSIDIES:["cuota monetaria","subsidio desempleo","subsidio menstruación"],TRAVELS:["ingreso a parques","viajes"],EXPERIENCES:["salud y cuidado","aprendizaje y educacion","calidad de vida y progreso","disfrute del ocio","habitat y sostenibilidad","cultura y entretenimiento"],EDUCATION:["educación continua","biblioteca préstamos","cesde","bibliotecas","educación continua - venta empresarial","educación continua venta empresarial","preescolares","educación continua - ley de emprendimiento","cine y teatro","biblioteca consultas","otros servicio bibliotecas","cultura, conversatorio"],ENTERPRISE:["smart fit","perifericos","smartfit","parques","diseños a la medida","vacunas","contratos yo convenios","examenes medicos ocupacionales","programa integral","programas recreativos","cinema","matriculas por la web empresa convenio","equilibrio vital","experiencias empresariales","salud familiar","seguros","viajes","diversidad equidad e inclusion","turismo","desarrollo humano","capf","alquiler escenarios","servicios de cultura","torneos","mentoria financiera","licencias de aprendizaje","cuerpo y mente","ley de emprendimiento","ing. parque","matriculas por la web empresa convenio","agenda cultural en sedes y regiones","ingreso nocturno"]},V=({category:e,service:t,index:i})=>{switch((0,p.u6)(e).toLowerCase()){case(0,p.u6)(F):return(0,s.jsx)(k,{service:t,index:i});case(0,p.u6)(P):return"ingreso a parques"===t.Servicio__c?(0,s.jsx)(Q,{service:t,index:i}):(0,s.jsx)(Y,{service:t,index:i});case(0,p.u6)(B):return(0,s.jsx)(U,{service:t,index:i});case(0,p.u6)($):return(0,s.jsx)(b,{service:t,index:i});case(0,p.u6)(R):return(0,s.jsx)(w,{service:t,index:i});default:return(0,s.jsx)(Z,{service:t,index:i})}},Z=({service:e,index:t})=>(0,s.jsx)(C,{redirect:"",title:e.Servicio__c,dateString:"Fecha",date:(0,O.Yq)(e.FechaUso__c),text:"Valor",value:(0,O.Hr)(e.MontoPagado__c),chipText:e.AgrupadorDetalle__c,tooltip:e.Servicio__c,chipColor:"#E0F2F2",chipTextColor:"#004F45"},`default-${t}`);var J=({category:e,services:t,children:i})=>0===t.length?null:(0,s.jsxs)(s.Fragment,{children:[t.map((t,i)=>(0,s.jsx)(V,{category:e,service:t,index:i},`${e}-${i}`)),i]}),G=i(63408),W="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTkiIHZpZXdCb3g9IjAgMCAyMCAxOSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik0xMC4zMjUgOS40ODc5M0MxMC4zMjUgOS4zNjc0OSAxMC4yMzQ3IDkuMjQ3MDYgMTAuMTE0MiA5LjI0NzA2QzkuNDgxOTUgOS4yMTY5NSA4Ljg3OTc2IDkuMTI2NjIgOC4zOTgwMSA4Ljk3NjA3VjcuOTIyMjVWNy44OTIxNEM4LjM5ODAxIDYuODM4MzEgNi43NzIxMSA2LjAyNTM2IDQuNjY0NDYgNi4wMjUzNkMyLjU4NjkyIDYuMDI1MzYgMC45MzA5MDggNi44MzgzMSAwLjkzMDkwOCA3Ljg5MjE0QzAuOTMwOTA4IDguOTQ1OTYgMi41NTY4MSA5Ljc1ODkxIDQ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IDE0LjU4OTQgOS44ODc5QzE0LjU4NjcgOS45NTcxNSAxNC41ODM3IDEwLjAyNzMgMTQuNTg5NyAxMC4wOTYzQzE0LjU5NjkgMTAuMTc3NiAxNC41NjQ0IDEwLjIxMSAxNC40ODY0IDEwLjIzNTdDMTMuOTk1OSAxMC4zODk4IDEzLjU3ODkgMTAuODczMSAxMy42MTUgMTEuNTMxOUMxMy42NDMzIDEyLjA0ODggMTQuMDQ5MiAxMi41Mjc2IDE0LjU4NCAxMi42NTk4QzE0LjcxMjIgMTIuNjkxNCAxNC44NDI5IDEyLjY4MjMgMTQuOTcxMiAxMi43MDM0QzE1LjI0NTIgMTIuNzQ4OSAxNS40MzI0IDEyLjkwMzMgMTUuNTE5OCAxMy4xNjMyQzE1LjYwODYgMTMuNDI3NSAxNS41NDg3IDEzLjY2OTMgMTUuMzQ5MyAxMy44NjVDMTUuMTUyNCAxNC4wNTggMTQuOTEyMSAxNC4xMTM3IDE0LjY1MjMgMTQuMDIyNUMxNC4zNTE1IDEzLjkxNzEgMTQuMjA2MSAxMy42ODc3IDE0LjE4NjIgMTMuMzc1MkMxNC4xODE0IDEzLjI5OSAxNC4xNTcgMTMuMjMzOSAxNC4xMDUyIDEzLjE3OTRDMTQuMDI1MSAxMy4wOTUxIDEzLjkwMiAxMy4wNjk1IDEzLjc5MzMgMTMuMTEyNkMxMy42NzI1IDEzLjE2MDUgMTMuNjE1IDEzLjI2MDEgMTMuNjEzMiAxMy40MjAzQzEzLjYxNjggMTMuNDY3IDEzLjYxNzcgMTMuNTEzNyAxMy42MjU5IDEzLjU1ODhaIiBmaWxsPSIjRUUyQjdCIi8+DQo8L3N2Zz4NCg==";var q=i(11049),K=i(89179),X=i(48314);const ee=()=>{const e=(0,o.useStaticQuery)("3377275814");return{accordionSections:e.allContentfulTemplate.nodes[0].referencias.filter(e=>e.nombre&&e.imagen).map((e,t)=>({title:e.nombre,icon:e.imagen[0].file.url||W,key:`accordion-${t}`})),notificationCards:e.allContentfulTemplate.nodes[0].secciones.map((e,t)=>{return{title:e.titulo,subtitle:e.subtitulo,buttonText:e.copyBoton,type:(i=e.icono,{informative:"informative",sucess:"success",success:"success",warning:"warning"}[i.toLowerCase()]||"informative"),redirect:e.redireccion,icon:e.imagen[0].file.url,key:`notification-card-${t}`};var i}),noAffiliation:e.allContentfulTemplate.nodes[0].consultContent.map((e,t)=>({key:`content-no-affiliation-${t}`,title:e.titulo,image:e.imagen[0].file.url,alt:e.imagen[0].file.fileName,text:e.subtitulo,buttonText:e.copyBoton,redirect:e.redireccion})),breadcrumb:e.allContentfulTemplate.nodes[0].migaDePan,metaInfo:e.allContentfulTemplate.nodes[0].metaInfo,isActive:e.allContentfulTemplate.nodes[0].estaActivo}},te=()=>{const{gigyaContext:e,userInfoContext:t,selectedTab:i,business:n}=(0,a.useContext)(I.A),{isActive:o}=ee(),[s,c]=(0,a.useState)(null),[r,l]=(0,a.useState)(!1),[u,d]=(0,a.useState)(null),[M,N]=(0,a.useState)(!1),[g,j]=(0,a.useState)(null),x=(0,a.useCallback)(()=>{if(null==n||!n.get)return null;const e=n.get.companyDocID;return"CO1N"===n.get.companyDocType?e+(0,y.A)(String(e)):e},[null==n?void 0:n.get]),m=(0,a.useCallback)(async()=>{if(o)try{var a,s,r,u,M,g;l(!0),d(null),j(null),c(null);const o=(0,q.A)(null==e||null===(a=e.gigyaAccount)||void 0===a||null===(s=a.data)||void 0===s?void 0:s.docType).tipoDocumentoLegdos;if((null==i?void 0:i.get)===z.m.BUSINESS&&(null==n||!n.get))return;const N=(null==i?void 0:i.get)===z.m.BUSINESS?x():null==e||null===(r=e.gigyaAccount)||void 0===r||null===(u=r.data)||void 0===u?void 0:u.docNumber,D=await(async(e,t,i)=>{var a;const n={headers:{Authorization:i}};if(sessionStorage.getItem(`${t}-${e}`))return JSON.parse(sessionStorage.getItem(`${t}-${e}`));const o=await K.S.get(`${X.oX}/pesonalizacionCDP/api/v1/getAdherenciaUsoServicios?tipoDocumento=${t}&numeroDocumento=${e}`,n);return null!==(a=o.data)&&void 0!==a&&a.data&&sessionStorage.setItem(`${t}-${e}`,JSON.stringify(o)),o})(N,o,null===(M=t.data)||void 0===M?void 0:M.userJwt);if(200===D.status&&null!==(g=D.data)&&void 0!==g&&g.data)c(D.data.data);else{if(404!==D.data.status)throw new Error(`Invalid response status: ${D.status}`);var m;j(null!==(m=D.data.userMessage)&&void 0!==m?m:"No se encontraron datos disponibles")}}catch(D){d(D||new Error("Failed to fetch data"))}finally{l(!1),N(!0)}else N(!0)},[e,t,o,i,n]);return(0,a.useEffect)(()=>{var i;null!=e&&e.gigyaAccount&&null!=t&&null!==(i=t.data)&&void 0!==i&&i.userJwt&&!M&&!r&&m()},[m,e,t,r,M]),{personalizationData:s,loading:r,error:u,errorMessage:g,hasValidData:!(null==s||!s.length),shouldShowPublic:!o||M&&!(null!=s&&s.length)&&u,refetch:()=>{N(!1),m()}}},ie=()=>{var e,t,i;const[c,u]=(0,a.useState)(!1),[d,g]=(0,a.useState)(null),[j,x]=(0,a.useState)(null),[m,D]=(0,a.useState)(!1),{accordionSections:T,notificationCards:v}=(()=>{const e=(0,o.useStaticQuery)("809711940");return{accordionSections:e.allContentfulTemplate.nodes[0].referencias.filter(e=>e.nombre&&e.imagen).map((e,t)=>({title:e.nombre,icon:e.imagen[0].file.url||W,key:`accordion-${t}`})),notificationCards:e.allContentfulTemplate.nodes[0].secciones.map((e,t)=>{return{title:e.titulo,subtitle:e.subtitulo,buttonText:e.copyBoton,type:(i=e.icono,{informative:"informative",sucess:"success",success:"success",warning:"warning"}[i.toLowerCase()]||"informative"),redirect:e.redireccion,icon:e.imagen[0].file.url,key:`notification-card-${t}`};var i}
1),noAffiliation:e.allContentfulTemplate.nodes[0].consultContent.map((e,t)=>({key:`content-no-affiliation-${t}`,title:e.titulo,image:e.imagen[0].file.url,alt:e.imagen[0].file.fileName,text:e.subtitulo,buttonText:e.copyBoton,redirect:e.redireccion})),breadcrumb:e.allContentfulTemplate.nodes[0].migaDePan,metaInfo:e.allContentfulTemplate.nodes[0].metaInfo,isActive:e.allContentfulTemplate.nodes[0].estaActivo}})(),{personalizationData:E,loading:S,error:f,refetch:L,errorMessage:C}=te(),{business:O,selectedTab:b}=(0,a.useContext)(I.A),{sliderBusiness:w}=(0,G.Y)(),{isActive:U}=ee(),Q=(null==O||null===(e=O.get)||void 0===e?void 0:e.companyDocID.replace(/\s/g,""))+("CO1N"===(null==O||null===(t=O.get)||void 0===t?void 0:t.companyDocType)?(0,y.A)(String(null==O||null===(i=O.get)||void 0===i?void 0:i.companyDocID)):""),k=()=>{g(null)};if((0,a.useEffect)(()=>{x(null),D(!1),null!=O&&O.get&&(async()=>{try{return await(0,A.Z)(Q)}catch(e){return console.error("Error fetching business name:",e),null}})().then(e=>{var t;x(null==e||null===(t=e.data)||void 0===t?void 0:t.records[0]),D(!0),u(!1),L()})},[null==O?void 0:O.get]),(0,a.useEffect)(()=>{g(C?(0,s.jsx)(N.A,{title:"¡Importante!",subtitle:"Actualmente no tienes historial de consumos",closeModal:k,isMobile:!0,buttonCopy:"Entendido",buttonEvent:k}):null)},[C]),S)return(0,s.jsx)("div",{className:"afiliationContent__loader",children:(0,s.jsx)(n.A,{size:"__big"})});if(!U||f&&"No se ha seleccionar una empresa"!==(null==f?void 0:f.message))return(0,s.jsx)("h1",{className:"loggedBusiness__error-title",children:"No se encontró información"});const Y=E||[];return(0,s.jsx)("div",{children:m?d||(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"loggedBusiness__userInfo",children:(0,s.jsx)("h2",{className:"loggedBusiness__title",children:null==O||null===(F=O.get)||void 0===F?void 0:F.label})}),(0,s.jsx)("div",{className:"loggedBusiness__notifications",children:v.map(e=>(0,s.jsx)(r,{type:e.type,buttonRedirect:e.redirect,buttonText:e.buttonText,text:e.subtitle,icon:e.icon},e.key))}),(0,s.jsx)("div",{className:"loggedBusiness__accordion",children:T.filter(e=>e.title.toLowerCase().includes(R)).map(e=>{return{section:e,filteredServices:(t=Y,t.filter(e=>{const t=H.ENTERPRISE.includes((0,p.u6)(e.AgrupadorMayor__c||"")),i=e.MontoSubsidiado__c&&""!==e.MontoSubsidiado__c.trim()&&Number.parseFloat(e.MontoSubsidiado__c)>0;return t&&i}))};var t}).filter(({filteredServices:e})=>e.length>0).map(({section:e,filteredServices:t})=>(0,s.jsx)(l,{title:e.title,icon:e.icon,children:(0,s.jsx)(J,{category:e.title,services:t})},e.key))}),(0,s.jsx)("div",{className:"loggedBusiness__carousel",children:(0,s.jsx)(M,{cards:w.map(e=>{var t,i,a;return{title:e.nombre,description:e.subtitulo,buttonText:e.copyBoton,buttonLink:e.redireccion,imageSrc:null!==(t=null===(i=e.imagen[0])||void 0===i||null===(a=i.file)||void 0===a?void 0:a.url)&&void 0!==t?t:"",isButtonPrimary:(null==b?void 0:b.get)===z.m.BUSINESS}}),cardsPerSlide:3})})]}):c?(0,s.jsx)(h,{}):(0,s.jsx)(_,{})});var F};var ae=i(90294);var ne=()=>{const{accordionSections:e,notificationCards:t}=ee(),{loading:i,getFirstName:o,userCategory:c,userData:u}=(()=>{const{userVerificationData:e,gigyaContext:t}=(0,a.useContext)(I.A),[i,n]=(0,a.useState)(!1),[o,s]=(0,a.useState)(null);return(0,a.useEffect)(()=>{if(e||t){var i,a,o;const d=null==e?void 0:e.get,M=null==e||null===(i=e.get)||void 0===i?void 0:i.beneficiaries,N=null==t||null===(a=t.gigyaAccount)||void 0===a||null===(o=a.data)||void 0===o?void 0:o.docNumber,g=null==M?void 0:M.find(e=>e.id===parseInt(N||"0")),j=!!g,x=g||d;var c,r,l,u;s(x?{fullName:(null===(c=x.fullName)||void 0===c?void 0:c.trim())||"Usuario",status:null!==(r=x.status)&&void 0!==r?r:"Desconocido",id:null!==(l=x.id)&&void 0!==l?l:void 0,idType:x.idType,category:null!==(u=x.salarialCategory)&&void 0!==u?u:"",isBeneficiary:j}:{fullName:"Usuario",status:"DESCONOCIDO",isBeneficiary:!1,category:""}),n(!1)}else n(!0)},[e,t]),{userData:o||{isBeneficiary:!1},loading:i,getFirstName:()=>{return(0,ae.kR)((e=null==o?void 0:o.fullName)&&e.trim()?e.split(" ")[0]:"Usuario");var e},userStatus:(c=null==o?void 0:o.expirationDate,"99991231"!==c&&c?"Inactivo":"Activo"),userCategory:null==o?void 0:o.category};var c})(),{personalizationData:d,loading:N,error:g,shouldShowPublic:j}
1=te(),{selectedTab:x}=(0,a.useContext)(I.A),{sliderPerson:m}=(0,G.Y)();if(i||N||!u)return(0,s.jsx)("div",{className:"afiliationContent__loader",children:(0,s.jsx)(n.A,{size:"__big"})});if(j||g)return(0,s.jsx)("h2",{className:"loggedHome__error-title",children:"No se encontró información"});const D=m.map(e=>{var t,i,a;return{title:e.nombre,description:e.subtitulo,buttonText:e.copyBoton,buttonLink:e.redireccion,imageSrc:null!==(t=null===(i=e.imagen[0])||void 0===i||null===(a=i.file)||void 0===a?void 0:a.url)&&void 0!==t?t:"",isButtonPrimary:(null==x?void 0:x.get)===z.m.PEOPLE}}),T=d||[];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"loggedHome__header",children:[(0,s.jsxs)("h2",{className:"loggedHome__title",children:["¡Hola ",o(),"!"]}),c&&(0,s.jsx)("p",{className:"loggedHome__subtitle",children:`${null!=u&&u.isBeneficiary?"Beneficiario":"Trabajador"} dependiente/ CategorÃa ${c}`})]}),(0,s.jsx)("div",{className:"loggedHome__notifications",children:t.map(e=>(0,s.jsx)(r,{type:e.type,buttonRedirect:e.redirect,buttonText:e.buttonText,text:e.subtitle,icon:e.icon},e.key))}),(0,s.jsx)("div",{className:"loggedHome__accordion",children:e.map(e=>{const t=e.title.toLowerCase();let i=[];return t.includes(F)?i=T.filter(e=>H.SUBSIDIES.includes((0,p.u6)(e.Servicio__c||""))):t.includes(P)?i=(e=>e.filter(e=>H.TRAVELS.includes((0,p.u6)(e.Servicio__c||""))))(T):t.includes(B)?i=(e=>e.filter(e=>H.EXPERIENCES.includes((0,p.u6)(e.AgrupadorDetalle__c||""))))(T):t.includes($)&&(i=(e=>e.filter(e=>{const t=(0,p.u6)(e.Servicio__c||"");return H.EDUCATION.map(p.u6).some(e=>t===e||t.startsWith(e))}))(T)),{section:e,filteredServices:i}}).filter(({filteredServices:e})=>e.length>0).map(({section:e,filteredServices:t})=>(0,s.jsx)(l,{title:e.title,icon:e.icon,children:(0,s.jsx)(J,{category:e.title,services:t})},e.key))}),(0,s.jsx)("div",{className:"loggedHome__carousel",children:(0,s.jsx)(M,{cards:D,cardsPerSlide:3})})]})},oe=i(68315);var se=({data:e})=>{var t,i,n,o;const{selectedTab:c}=(0,a.useContext)(I.A),[r,l]=(0,a.useState)(null);(0,a.useEffect)(()=>{if(void 0!==globalThis.window){const e=globalThis.window.location.pathname;e.includes("/personas/")?l(z.m.PEOPLE):e.includes("/empresas/")&&l(z.m.BUSINESS)}},[]);const u=(null==c?void 0:c.get)||r,d=null==e||null===(t=e.allContentfulMetaInfo)||void 0===t||null===(i=t.nodes)||void 0===i?void 0:i[0],M={metaTitulo:null==d?void 0:d.metaTitulo,metaDescripcion:null==d?void 0:d.metaDescripcion,metaImagen:null==d||null===(n=d.metaImagen)||void 0===n||null===(o=n.file)||void 0===o?void 0:o.url,noIndex:null==d?void 0:d.noIndex,urlCanonical:null==d?void 0:d.urlCanonical,children:null,hasLoader:!1,isPrivate:!1};return(0,s.jsx)(oe.A,{data:M,hasLoader:!0,isPrivate:!0,isActive:!0,children:(0,s.jsx)("div",{className:"mis-consumos-template",children:(0,s.jsxs)("div",{className:"mis-consumos-template__content",children:[u===z.m.PEOPLE&&(0,s.jsx)(ne,{}),u===z.m.BUSINESS&&(0,s.jsx)(ie,{})]})})})}},90294:function(e,t,i){function a(e){return e?e.toLowerCase().split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "):""}i.d(t,{bB:function(){return n},kR:function(){return a},vv:function(){return o}});const n=(e,t=0)=>{if(!e)return"";const i=" ".repeat(2*t);let a="";return"text"===e.nodeType&&e.value&&(a+=`${i}${e.value}`),e.content&&e.content.length>0&&(a+=e.content.map(e=>n(e,t)).join("\n")),a},o=e=>"text"===e.nodeType&&e.value?e.value.replace(/[\n\t]/g,""):e.content&&e.content.length>0?e.content.map(o).join(""):""},90508:function(e,t,i){var a;i.d(t,{A:function(){return d}});var n=i(96540),o=i(21529),s=i(68899),c=i(97494);function r(e,t,i,a,s){const[c,r]=n.useState(()=>s&&i?i(e).matches:a?a(e).matches:t);return(0,o.A)(()=>{let t=!0;if(!i)return;const a=i(e),n=()=>{t&&r(a.matches)};return n(),a.addListener(n),()=>{t=!1,a.removeListener(n)}},[e,i]),c}const l=(a||(a=i.t(n,2))).useSyncExternalStore;function u(e,t,i,a,o){const s=n.useCallback(()=>t,[t]),c=n.useMemo(()=>{if(o&&i)return()=>i(e).matches;if(null!==a){const{matches:t}=a(e);return()=>t}return s},[s,e,a,o,i]),[r,u]=n.useMemo(()=>{if(null===i)return[s,()=>()=>{}];const t=i(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]},[s,i,e]);return l(u,r,c)}function d(e,t={}){const i=(0,c.A)(),a="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:n=!1,matchMedia:o=(a?window.matchMedia:null),ssrMatchMedia:d=null,noSsr:M=!1}=(0,s.A)({name:"MuiUseMediaQuery",props:t,theme:i});let N="function"==typeof e?e(i):e;N=N.replace(/^@media( ?)/m,"");return(void 0!==l?u:r)(N,n,o,d,M)}},97494:function(e,t,i){var a=i(96540),n=i(24684);t.A=function(e=null){const t=a.useContext(n.T);return t&&(i=t,0!==Object.keys(i).length)?t:e;var i}}}]); 2//# sourceMappingURL=1a3a26262c41bab3d75286f7051a1e212853ace1-188abd92303937ff4eb1.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.