PageSourceSearch

https://www.xelha.com/_next/static/chunks/1986.8ba288d50b14dc4e.js

js xelha.com collected 2026-10-02 10:38:03 UTC 3,253 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1986],{39898:function(e,i,t){t.r(i);var s=t(52676),n=t(75271),r=t(40507),o=t.n(r),d=t(51218),l=t.n(d),u=t(33589),a=t(32866),c=t(32571),f=t(39890),g=t(93140);let h=e=>{var i,t,r,o;let{isMobile:d,shopping:h,setShopping:b,showNotification:p,language:v,currency:R,currency_id:L,itemLabels:m,titleLabel:O,setLoading:P,productsComplements:q,host:A,validation:C,infoGA4:y,getProductsForChildren:j,sectionLabels:G,metricasGA4:S,cbResults:_}=e,[k,w]=(0,n.useState)([]),[M,N]=(0,n.useState)(!1),[,x]=(0,n.useState)([]),E=null===(i=h.Cart)||void 0===i?void 0:null===(t=i.PackageProducts)||void 0===t?void 0:t.ProductCount,F=null===(r=h.Cart)||void 0===r?void 0:null===(o=r.IndividualProducts)||void 0===o?void 0:o.ProductCount,I=(0,n.useMemo)(()=>{var e,i;let t=Array.from((null===(e=h.Cart.PackageProducts)||void 0===e?void 0:e.Products)||[]),s=Array.from((null===(i=h.Cart.IndividualProducts)||void 0===i?void 0:i.Products)||[]),n=t.concat(s);if(n.length>0){let e=q.filter(e=>{let i=n.find(i=>{let t=(null==e?void 0:e.idsForSheet)||[];return -1!==t.indexOf(i.Id)});return!i});return e.map(e=>({...e,hasBeenAdded:!1,hasUpgrade:!1}))}return[]},[E,F,R,q]);return((0,n.useEffect)(()=>{let e=[];for(let i=0;i<I.length;
1i+=1)e.push(I[i].id);if(e.length>0){let i=l()().add(7,"day").format("YYYY-MM-DD");N(!0),(0,c.OA)(e,v,R,i,"",d).then(e=>{let{data:i}=e,t=[],s=i.Activities||[];for(let e=0;e<s.length;e+=1){var n;let i=s[e],r=I.find(e=>e.id===i.Id),o=0,d=0,{Rates:l}=i,[u]=l;if(u){let{Calendar:e}=u;if(e){let[i]=e;if(i){let{NormalAdults:e,Adults:t}=i;d=(0,f.fL)(e,t),o=e}}}t.push({...r,price:o,priceFetched:!0,variant:"adulto",discount:d,brand:(0,g.e9)(null==r?void 0:null===(n=r.businessUnit)||void 0===n?void 0:n.toLowerCase())})}j(t);let r=[];for(let e=0;e<I.length;e+=1){let i=t.find(i=>i.id===I[e].id);i&&r.push(i)}w(r),N(!1)}).catch(()=>{w([])})}},[I,R]),(0,n.useEffect)(()=>{(0,g.xb)(k)||_(k)},[k]),(null==k?void 0:k.length)>0)?d?(0,s.jsx)(a.Z,{setLoading:P,currency_id:L,currency:R,language:v,setShopping:b,showNotification:p,shopping:h,products:k,itemLabels:m,titleLabel:O,isMobile:!0,host:A,validation:C,isLoadingPrices:M,infoGA4:y,sectionLabels:G,metricasGA4:S,cbResults:x}):(0,s.jsx)(u.Z,{setLoading:P,currency_id:L,currency:R,language:v,setShopping:b,showNotification:p,shopping:h,products:k,itemLabels:m,titleLabel:O,host:A,validation:C,isLoadingPrices:M,infoGA4:y,sectionLabels:G,metricasGA4:S,isMobile:d,cbResults:x}):null};h.propTypes={isMobile:o().bool.isRequired,titleLabel:o().string,shopping:o().instanceOf(Object).isRequired,setShopping:o().func.isRequired,showNotification:o().func.isRequired,setLoading:o().func.isRequired,language:o().string.isRequired,currency:o().string.isRequired,currency_id:o().number.isRequired,itemLabels:o().instanceOf(Object).isRequired,productsComplements:o().instanceOf(Array).isRequired,host:o().string.isRequired,validation:o().instanceOf(Object).isRequired,infoGA4:o().instanceOf(Object).isRequired,sectionLabels:o().instanceOf(Object).isRequired,getProductsForChildren:o().func,metricasGA4:o().instanceOf(Object),cbResults:o().func},h.defaultProps={getProductsForChildren:()=>{},titleLabel:"",metricasGA4:{},cbResults:()=>{}},i.default=h}}]);

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.