PageSourceSearch

https://axon.es/_next/static/chunks/pages/newsletter-64cd224c42c31c60.js

js axon.es collected 2026-09-24 22:38:14 UTC 12,276 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9243d6e1-5c18-4196-b16c-9efec623dcbd",e._sentryDebugIdIdentifier="sentry-dbid-9243d6e1-5c18-4196-b16c-9efec623dcbd")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1533,126,4316,1685],{27360:function(e,t,r){var n,o,i,u,l;o="undefined"==typeof window?this:window,u=function(e){if("object"!=typeof e.document)throw Error("Cookies.js requires a `window` with a `document` object");var t=function(e,r,n){return 1==arguments.length?t.get(e):t.set(e,r,n)};return t._document=e.document,t._cacheKeyPrefix="cookey.",t._maxExpireDate=new Date("Fri, 31 Dec 9999 23:59:59 UTC"),t.defaults={path:"/",secure:!1},t.get=function(e){t._cachedDocumentCookie!==t._document.cookie&&t._renewCache();var r=t._cache[t._cacheKeyPrefix+e];return i===r?i:decodeURIComponent(r)},t.set=function(e,r,n){return(n=t._getExtendedOptions(n)).expires=t._getExpiresDate(i===r?-1:n.expires),t._document.cookie=t._generateCookieString(e,r,n),t},t.expire=function(e,r){return t.set(e,i,r)},t._getExtendedOptions=function(e){return{path:e&&e.path||t.defaults.path,domain:e&&e.domain||t.defaults.domain,expires:e&&e.expires||t.defaults.expires,secure:e&&i!==e.secure?e.secure:t.defaults.secure}},t._isValidDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())},t._getExpiresDate=function(e,r){if(r=r||new Date,"number"==typeof e?e=e===1/0?t._maxExpireDate:new Date(r.getTime()+1e3*e):"string"==typeof e&&(e=new Date(e)),e&&!t._isValidDate(e))throw Error("`expires` parameter cannot be converted to a valid Date instance");return e},t._generateCookieString=function(e,t,r){return(e=(e=e.replace(/[^#$&+\^`|]/g,encodeURIComponent)).replace(/\(/g,"%28").replace(/\)/g,"%29"))+"="+(t=(t+"").replace(/[^!#$&-+\--:<-\[\]-~]/g,encodeURIComponent))+(((r=r||{}).path?";path="+r.path:"")+(r.domain?";domain="+r.domain:"")+(r.expires?";expires="+r.expires.toUTCString():""))+(r.secure?";secure":"")},t._getCacheFromString=function(e){for(var r={},n=e?e.split("; "):[],o=0;o<n.length;o++){var u=t._getKeyValuePairFromCookieString(n[o]);i===r[t._cacheKeyPrefix+u.key]&&(r[t._cacheKeyPrefix+u.key]=u.value)}return r},t._getKeyValuePairFromCookieString=function(e){var t,r=e.indexOf("=");r=r<0?e.length:r;var n=e.substr(0,r);try{t=decodeURIComponent(n)}catch(e){console&&"function"==typeof console.error&&console.error('Could not decode cookie with key "'+n+'"',e)}return{key:t,value:e.substr(r+1)}},t._renewCache=function(){t._cache=t._getCacheFromString(t._document.cookie),t._cachedDocumentCookie=t._document.cookie},t._areEnabled=function(){var e="cookies.js",r="1"===t.set(e,1).get(e);return t.expire(e),r},t.enabled=t._areEnabled(),t},l=o&&"object"==typeof o.document?u(o):u,i!==(n=(function(){return l}).call(t,r,t,e))&&(e.exports=n)},42222:function(e,t,r){"use strict";var n=r(63907),o=r(50542),i=r(12478),u="localStorage"in r.g&&r.g.localStorage?r.g.localStorage:n;function l(e,t){return 1==arguments.length?c(e):a(e,t)}function c(e){return o(u.getItem(e))}function a(e,t){try{return u.setItem(e,JSON.stringify(t)),!0}catch(e){return!1}}l.set=a,l.get=c,l.remove=function(e){return u.removeItem(e)},l.clear=function(){return u.clear()},l.backend=function(e){return e&&(u=e),u},l.on=i.on,l.off=i.off,e.exports=l},50542:function(e){"use strict";e.exports=function(e){let t=function(e){try{return JSON.parse(e)}catch(t){return e}}(e);return void 0===t?null:t}},63907:function(e){"use strict";var t={};e.exports={getItem:function(e){return e in t?t[e]:null},setItem:function(e,r){return t[e]=r,!0},removeItem:function(e){return e in t&&delete t[e]},clear:function(){return t={},!0}}},12478:function(e,t,r){"use strict";var n=r(50542),o={};function i(e){e||(e=r.g.event);var t=o[e.key];t&&t.forEach(function(t){t(n(e.newValue),n(e.oldValue),e.url||e.uri)})}e.exports={on:function(e,t){o[e]?o[e].push(t):o[e]=[t],r.g.addEventListener?r.g.addEventListener("storage",i,!1):r.g.attachEvent?r.g.attachEvent("onstorage",i
1):r.g.onstorage=i},off:function(e,t){var r=o[e];r.length>1?r.splice(r.indexOf(t),1):o[e]=[]}}},45679:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/newsletter",function(){return r(55269)}])},55269:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return a}});var n=r(85893);r(67294);var o=r(9008),i=r.n(o),u=r(37435),l=r(80126),c=r(74359),a=!0;t.default=e=>{let{listAreas:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i(),{children:(0,n.jsx)("title",{children:"Suscr\xedbete a nuestra Newsletter"})}),(0,n.jsx)(u.default,{children:(0,n.jsx)(l.default,{children:(0,n.jsx)(c.Z,{listAreas:t})})})]})}},66602:function(e,t,r){"use strict";r.d(t,{a:function(){return u},d:function(){return l}});var n=r(76249),o=r(1747),i=r(53174);let u=async()=>{try{let{query:e}=(0,o.in)(),{data:{getArea:t}}=await e({query:n.GX,fetchPolicy:"cache-first"});return{ok:!!t,data:t}}catch(e){return{ok:!1,messageError:null==e?void 0:e.message}}},l=async()=>{try{var e;let{query:t}=(0,o.in)(),{data:r}=await t({query:i.Ld,fetchPolicy:"cache-first",variables:{limit:1,skip:0}});return{ok:!0,data:null===(e=r.getNewBanners)||void 0===e?void 0:e[0]}}catch(e){return{ok:!1}}}},45937:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(11163),o=r(67294),i=r(15503),u=r(76249);let l=(0,r(14671).Z)(e=>({filters:{},order:"",doTheSearch:!1,filterOpen:!1,setFilters:t=>{e(e=>({...e,filters:{...t}}))},setOrder:t=>{e(e=>({...e,order:t}))},setDoTheSearch:t=>{e(e=>({...e,doTheSearch:t}))},setOpenFilter:t=>{e(e=>({...e,openFiler:t}))},clearFilter:()=>{e(e=>({...e,filters:{}}))}}));var c=r(72076),a=()=>{let[e,t,r,a,s,d,f,g,p]=l(e=>[e.order,e.filters,e.doTheSearch,e.filterOpen,e.setOrder,e.setFilters,e.clearFilter,e.setDoTheSearch,e.setOpenFilter]),{asPath:v}=(0,n.useRouter)(),{isTheActualPageSave:h,pageScrollPosition:m}=(0,c.Z)(),b=(0,o.useRef)(null),[y,{data:_}]=(0,u.Jg)({fetchPolicy:"cache-first"}),S=e=>{g(e)},w=(e,r,n,o)=>{if(S(n),Object.keys(t).length&&o)return;let{...i}=t;if("Tags"===e.prop){if((null==i?void 0:i[e.prop])||(i[e.prop]=[]),r)for(let t=0;t<e.value.length;t+=1){let{prop:r,items:n}=e.value[t],o=i[e.prop].find(e=>e.prop===r),u=!0;for(let t=0;t<n.length;t+=1){let l=n[t];o||(u=!1,o={prop:r,items:[]}),-1===o.items.findIndex(e=>e===l)&&o.items.push(l),u||i[e.prop].push(o)}}else i[e.prop]=Object.keys(e.value).length>0?e.value:null}else e.value&&(i[e.prop]=e.value.length>0?e.value:null);null===i[e.prop]&&delete i[e.prop],d({...i})};return(0,o.useEffect)(()=>{var e,r,n,o,i,u;let l=null==_?void 0:_.getAreaName;if(!l)return;let c=t&&JSON.parse(JSON.stringify(t)),a=null==c?void 0:c["\xc1reas"];if(a){let e=a.indexOf(null==l?void 0:null===(o=l.id)||void 0===o?void 0:o.toString());-1===e?a.push(null==l?void 0:null===(i=l.id)||void 0===i?void 0:i.toString()):a.splice(e,1)}else(a=[]).push(null==l?void 0:null===(u=l.id)||void 0===u?void 0:u.toString());w({prop:"\xc1reas",value:a},null===(e=b.current)||void 0===e?void 0:e.pushData,null===(r=b.current)||void 0===r?void 0:r.doTheSearch,null===(n=b.current)||void 0===n?void 0:n.keepInitialValueIfExist),b.current=null},[null==_?void 0:_.getAreaName]),{changeFilters:w,resetFilter:()=>{f(),setTimeout(()=>{S(!1)},700)},resetOrder:()=>{""!==e&&s("")},changeOrder:(t,r,n)=>{S(n),e&&r||s(t)},getOrder:()=>e,getDoTheSearch:()=>r,getFilters:()=>t,keepFiltersAndOrder:()=>{var e;return h()?1:i.default.allProductCategoriesFull.includes(v.replace("/",""))&&(null==m?void 0:m.pageName)&&!i.default.allProductCategoriesFull.includes(null==m?void 0:null===(e=m.pageName)||void 0===e?void 0:e.replace("/",""))?2:0},changeDoTheSearch:S,changeFilterArea:(e,t,r,n)=>{b.current={doTheSearch:t,keepInitialValueIfExist:r,pushData:n},y({variables:{id:e}}).catch(console.error)},existFilter:()=>{var e,r,n,o,i;let u=null==t?void 0:null===(e=t.Categorías)||void 0===e?void 0:e.length,l=null==t?void 0:null===(r=t.Tags)||void 0===r?void 0:r.length,c=null==t?void 0:null===(n=t.Áreas)||void 0===n?void 0:n.length,a=null==t?void 0:null===(o=t.Precio)||void 0===o?void 0:o.length,s=null==t?void 0:null===(i=t.Precio)||void 0===i?void 0:i.length;return!!u||!!l||!!c||!!a||!!s},setOpenFilter:p,doTheSearch:r,filter:t,order:e,filterOpen:a}}},72076:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(11163),o=r(60374);let i=(0,r(14671).Z)(e=>({pageScrollPosition:null,scrollbarValues:null,saveScrollPosition:(t,r)=>
1{e(e=>{var n;return{...e,pageScrollPosition:{pageName:t,Y:r||(null==e?void 0:null===(n=e.scrollbarValues)||void 0===n?void 0:n.scrollTop)}}})},setScrollbarValues:t=>{e(e=>({...e,scrollbarValues:t}))},setScrollPosition:t=>{e(e=>({...e,pageScrollPosition:t}))}}));var u=()=>{let{asPath:e}=(0,n.useRouter)(),[t,r,u,l,c]=i(e=>[e.pageScrollPosition,e.scrollbarValues,e.saveScrollPosition,e.setScrollbarValues,e.setScrollPosition],o.Z);return{pageScrollPosition:t,scrollbarValues:r,savePageAndScrollPosition:()=>{u(e)},setScrollbarValues:l,isTheActualPageSave:()=>(null==t?void 0:t.pageName)===e,setScrollPosition:c}}},80126:function(e,t,r){"use strict";r.r(t);var n=r(85893),o=r(67294);t.default=e=>{let{children:t,className:r,id:i,noPage:u,mainLayout:l,category:c,listProducts:a,withoutProps:s}=e;return(0,n.jsx)("section",{id:i,className:"".concat(u?"noPage":"pageContent"," ").concat(r||""),children:l&&!s?o.Children.map(t,e=>e?o.cloneElement(e,{mainLayout:l,noPage:u,id:i,category:c,listProducts:a}):null):t})}},26410:function(e,t,r){"use strict";r.d(t,{C5:function(){return u},_3:function(){return o},_8:function(){return c},fQ:function(){return a},vX:function(){return l}});var n,o,i=r(42222);(n=o||(o={})).basket="basket",n.areaOfInterest="areaOfInterest",n.areaOfInterestName="areaOfInterestName",n.myurl="myurl",n.noSubscriptionToNewsletter="noSubscriptionToNewsletter",n.addressBasket="addressBasket";let u=()=>!0,l=e=>{if(!u())return null;let t=(0,i.get)(e);return t&&("string"!=typeof t||"null"!==t&&"undefined"!==t)?t:null},c=(e,t)=>{(0,i.set)(e,t)},a=e=>{(0,i.remove)(e)}},14671:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(67294);let o="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?n.useEffect:n.useLayoutEffect;function i(e){let t="function"==typeof e?function(e){let t;let r=new Set,n=(e,n)=>{let o="function"==typeof e?e(t):e;if(o!==t){let e=t;t=n?o:Object.assign({},t,o),r.forEach(r=>r(t,e))}},o=()=>t,i=(e,n=o,i=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let u=n(t);function l(){let r=n(t);if(!i(u,r)){let t=u;e(u=r,t)}}return r.add(l),()=>r.delete(l)},u={setState:n,getState:o,subscribe:(e,t,n)=>t||n?i(e,t,n):(r.add(e),()=>r.delete(e)),destroy:()=>r.clear()};return t=e(n,o,u),u}(e):e,r=(e=t.getState,r=Object.is)=>{let i;let[,u]=(0,n.useReducer)(e=>e+1,0),l=t.getState(),c=(0,n.useRef)(l),a=(0,n.useRef)(e),s=(0,n.useRef)(r),d=(0,n.useRef)(!1),f=(0,n.useRef)();void 0===f.current&&(f.current=e(l));let g=!1;(c.current!==l||a.current!==e||s.current!==r||d.current)&&(i=e(l),g=!r(f.current,i)),o(()=>{g&&(f.current=i),c.current=l,a.current=e,s.current=r,d.current=!1});let p=(0,n.useRef)(l);o(()=>{let e=()=>{try{let e=t.getState(),r=a.current(e);s.current(f.current,r)||(c.current=e,f.current=r,u())}catch(e){d.current=!0,u()}},r=t.subscribe(e);return t.getState()!==p.current&&e(),r},[]);let v=g?i:f.current;return(0,n.useDebugValue)(v),v};return Object.assign(r,t),r[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");let e=[r,t];return{next(){let t=e.length<=0;return{value:e.shift(),done:t}}}},r}},60374:function(e,t,r){"use strict";function n(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!Object.is(e[r[n]],t[r[n]]))return!1;return!0}r.d(t,{Z:function(){return n}})}},function(e){e.O(0,[9774,1664,4628,1580,6658,9734,1513,1572,7435,485,5809,2888,179],function(){return e(e.s=45679)}),_N_E=e.O()}]);

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.