1"use strict";(self.webpackChunkpalma_web=self.webpackChunkpalma_web||[]).push([[181],{14251:(e,l,i)=>{i.d(l,{A:()=>t});var a=i(89379),s=i(85352),n=i(70579);function t(e){const l=(0,s.DP)(),{text:i,style:t,uppercase:o}=e;return(0,n.jsx)("h1",{className:"tituloSeccion ".concat(o?"upper":""),style:(0,a.A)((0,a.A)({},t),{},{color:l.colors.primaryText}),children:i})}},32285:()=>{},72181:(e,l,i)=>{i.r(l),i.d(l,{default:()=>I});var a=i(89379),s=(i(32285),i(84088)),n=i(14251),t=i(94910),o=i(75279),c=i(43589),r=i(96213),d=i.n(r),u=i(75040),v=i(65043),h=i(5137),m=i(73216),x=i(60551),j=i(26931),p=i(32869),y=i(2963),g=i(9056),f=i(60232),N=i(16154),w=i(70579);const A="STATIC",b="ERROR";function I(e){let{style:l}=e;const i=(0,m.Zp)(),r=(0,m.zy)(),I=r.pathname.split("/")[2],E=(0,h.d4)(j.UV),k=(0,c.ok)(),[S,C]=(0,v.useState)(!0),[T,_]=(0,v.useState)(null),[z,R]=(0,v.useState)(null),[Z]=(0,x.CZ)(),[,D]=(0,u.A)(),{logEventAnalytics:L}=(0,N.A)();(0,v.useEffect)(()=>{L("".concat(r.pathname,"_screen"))},[r.pathname]);const V=e=>{const l=e;return d().sanitize(l)},F=async()=>{try{if(C(!0),R(null),_(null),!(I&&isNaN(Number(I))&&(e=I,/^[a-zA-Z0-9_-]+$/.test(e))))throw new Error("Error al cargar p\xe1gina est\xe1tica");await(async e=>{try{const i=await Z({code:e,language:k});if(i.isError||"rejected"===String(i.status))throw new Error("La p\xe1gina no existe");var l;return _(null===i||void 0===i?void 0:i.data),R(A),null===i||void 0===i||null===(l=i.data)||void 0===l?void 0:l.id}catch(i){R(b)}finally{C(!0)}})(I).catch(e=>{})}catch(l){R(b)}finally{setTimeout(()=>C(!1),150)}var e},H=(0,h.wA)();(0,v.useEffect)(()=>{H((0,p.o8)(!0)),F().then(()=>{window.scroll({top:0,left:100,behavior:"smooth"})}).catch(e=>{console.error("Error al ejecutar init:",e)})},[r,k,E]);return(0,w.jsx)("div",{style:{flex:1,flexDirection:"column"},children:(0,w.jsx)("section",{className:"static-wapper",children:(0,w.jsx)("div",{className:"container",children:(0,w.jsx)("main",{className:"static-main col-12",style:(0,a.A)({},l),children:S?(0,w.jsx)("div",{className:"static-loader-container",children:(0,w.jsx)(y.A,{})}):z===A?(()=>{var e,l,a,c;return(0,w.jsxs)(w.Fragment,{children:[D(null===T||void 0===T?void 0:T.title,null!==(e=null===T||void 0===T?void 0:T.seoInfo)&&void 0!==e?e:null===T||void 0===T?void 0:T.summary),T&&(0,w.jsxs)("div",{className:"static-screen-main",children:[I&&r.pathname.includes("emt-palma")&&(0,w.jsxs)("div",{className:"static-go-back",children:[(0,w.jsx)(s.A,{Icon:f.h,onClick:()=>i(-1)}),(0,w.jsx)("hr",{}),(0,w.jsx)("span",{children:"Volver"})]}),(0,w.jsxs)("div",{className:"static-screen-header",children:[(0,w.jsx)(t.A,{idIcon:Number(null===T||void 0===T?void 0:T.iconId)}),(0,w.jsx)("h1",{style:{marginTop:0},children:null===T||void 0===T?void 0:T.title})]}),(0,w.jsxs)("div",{className:"container",children:[null!==T&&void 0!==T&&T.imageId?(0,w.jsx)("div",{className:(null===T||void 0===T||null===(l=T.body)||void 0===l?void 0:l.length)>550?"col-12":"col-6",style:{order:(null===T||void 0===T||null===(a=T.body)||void 0===a?void 0:a.length)>550?"0":"2"},children:(0,w.jsx)("div",{className:"static-img-wrapper",children:(0,w.jsx)(o.A,{imageId:null===T||void 0===T?void 0:T.imageId,className:"static-screen-img"})})}):null,(0,w.jsxs)("div",{className:(null===T||void 0===T||null===(c=T.body)||void 0===c?void 0:c.length)>550||null===T||void 0===T||!T.imageId?"col-12":"col-6",style:{height:"100%"},children:[(0,w.jsx)(n.A,{text:null===T||void 0===T?void 0:T.summary}),(0,w.jsx)("div",{dangerouslySetInnerHTML:{__html:V(null===T||void 0===T?void 0:T.body)}})]})]})]})]})})():z===b?(0,w.jsx)(g.default,{errorCode:404}):null})})})})}}}]); 2//# sourceMappingURL=181.6d4a1697.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.