PageSourceSearch

https://rokys.com/_next/static/chunks/9722.00d0a32a9e15cad3.js

js rokys.com collected 2026-10-02 13:47:01 UTC 7,767 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9722],{29722:function(e,n,t){t.r(n),t.d(n,{default:function(){return M}});var r=t(85893),o=t(5152),i=t.n(o),a=t(9008),l=t.n(a),s=t(11163),u=t(67294),c=t(56064),d=t(68356),p=t(25675),m=t.n(p),f=function(){var e=(0,u.useState)(!1),n=e[0],t=e[1];(0,u.useEffect)((function(){var e=function(){window.scrollY>300?t(!0):t(!1)};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}),[]);return(0,r.jsx)("button",{onClick:function(){window.scrollTo({top:0,behavior:"smooth"})},className:"fixed bottom-6 right-6 z-50 w-10 h-10 rounded-full shadow-md bg-[#3ca464] flex justify-center items-center transition-all duration-300 ".concat(n?"opacity-100":"opacity-0 pointer-events-none"),"aria-label":"Volver al inicio",children:(0,r.jsx)(m(),{className:"transform -rotate-90",src:"/img/malmenara_new/home/next-white.svg",width:15,height:15,alt:"Ir arriba"})})},g=t(37235),b=t(67398),h=t(6655),v=t(59849);function _(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){_(e,n,t[n])}))}return e}var w=i()((function(){return Promise.all([t.e(2678),t.e(4885),t.e(351),t.e(7536),t.e(9491),t.e(3914),t.e(4496),t.e(4755),t.e(5178)]).then(t.bind(t,94755))}),{loadableGenerated:{webpack:function(){return[94755]}},ssr:!1}),j=i()((function(){return Promise.all([t.e(351),t.e(2472)]).then(t.bind(t,32472))}),{loadableGenerated:{webpack:function(){return[32472]}}}),k=i()((function(){return t.e(607).then(t.bind(t,24653))}),{loadableGenerated:{webpack:function(){return[24653]}}}),y=i()((function(){return Promise.all([t.e(351),t.e(9464),t.e(3979),t.e(2607)]).then(t.bind(t,54561))}),{loadableGenerated:{webpack:function(){return[54561]}}}),O=i()((function(){return Promise.all([t.e(351),t.e(7536),t.e(9491),t.e(3544),t.e(1911),t.e(8352),t.e(7466),t.e(4369),t.e(2443),t.e(4386),t.e(3039)]).then(t.bind(t,10356))}),{loadableGenerated:{webpack:function(){return[10356]}},ssr:!1}),B=i()((function(){return Promise.all([t.e(351),t.e(9464),t.e(7536),t.e(9491),t.e(3544),t.e(1911),t.e(8352),t.e(3979),t.e(7466),t.e(4369),t.e(2443),t.e(8421),t.e(8909)]).then(t.bind(t,88421))}),{loadableGenerated:{webpack:function(){return[88421]}}}),E=i()((function(){return t.e(8846).then(t.bind(t,48846))}),{loadableGenerated:{webpack:function(){return[48846]}}}),M=(0,c.$j)((function(e){return{isOpenTopBar:e.initServices.isOpenTopBar,topBarType:e.initServices.topBarType,isOpenOrderLocationModal:e.globalVariables.isOpenOrderLocationModal,global_settings:e.initServices.settings,isMobileDevice:e.globalVariables.isMobileDevice}}),(function(e){return{updateIsOpenTopBar:(0,d.DE)(b.xr,e),updateTopBarType:(0,d.DE)(b.R,e),setIsOpenOrderLocationModal:(0,d.DE)(g.b4,e)}}))((function(e){var n,t,o,i=e.topbar,a=e.header,c=e.footer,d=e.children,p=e.showFooter,m=void 0===p||p,g=e.showLocationBar,b=void 0===g||g,_=e.isProductDetailMobile,M=void 0!==_&&_,T=e.isCheckout,S=void 0!==T&&T,D=e.isAuth,P=void 0!==D&&D,L=e.isOpenTopBar,I=e.topBarType,G=e.updateIsOpenTopBar,F=e.updateTopBarType,N=e.isOpenOrderLocationModal,C=e.setIsOpenOrderLocationModal,A=e.global_settings,q=e.isMobileDevice,V=(0,s.useRouter)(),K=V.asPath,R=V.query,z=V.pathname,H=(0,u.useState)(void 0!=(null===(n=A.shipping_methods)||void 0===n?void 0:n.delivery)&&null!=(null===(t=A.shipping_methods)||void 0===t?void 0:t.delivery)),J=H[0],Q=H[1];(0,u.useEffect)((function(){var e,n;Q(void 0!=(null===(e=A.shipping_methods)||void 0===e?void 0:e.delivery)&&null!=(null===(n=A.shipping_methods)||void 0===n?void 0:n.delivery))}),[]);var Y=(0,u.useState)(!1),$=Y[0],U=Y[1],W=function(){G(!1),F(null)};(0,u.useEffect)((function(){i&&(i.settings.show?(G(!0),F(i.settings.position)):(G(!1),F(null)))}),[i]);var X=(0,u.useState)((0,v.k2)(a.settings.image,A.base_url)),Z=X[0],ee=X[1],ne=(0,u.useState)(void 0),te=ne[0],re=ne[1],oe=(0,u.useState)((0,v.k2)(c.settings.imagePath,A.base_url)),ie=
1oe[0],ae=oe[1],le=(0,u.useState)((0,v.k2)(c.settings.complaints_book_image,A.base_url)),se=le[0],ue=le[1];(0,u.useEffect)((function(){ee((0,v.k2)(a.settings.image,A.base_url))}),[a.settings]),(0,u.useEffect)((function(){ae((0,v.k2)(c.settings.imagePath,A.base_url))}),[c.settings]),(0,u.useEffect)((function(){ue((0,v.k2)(c.settings.complaints_book_image,A.base_url))}),[c.settings]),(0,u.useEffect)((function(){R&&"true"==R.cms&&R.tid||A.general.popup&&"/"==K&&(re((0,v.k2)(A.general.popup.image,A.base_url)),U(!0))}),[K]);var ce=(0,u.useMemo)((function(){var e;return null!==(e=null===A||void 0===A?void 0:A.meta_tags)&&void 0!==e?e:[]}),[A]);return(0,u.useEffect)((function(){!["/auth","/auth/register","/auth/google/redirect","/auth/apple/redirect","/auth/facebook/redirect"].includes(z)&&localStorage.getItem("redirect_to_product_after_authentication")&&localStorage.removeItem("redirect_to_product_after_authentication")}),[z]),(0,r.jsxs)(u.Fragment,{children:[0!=ce.length&&(0,r.jsx)(u.Fragment,{children:(0,r.jsx)(l(),{children:ce.map((function(e,n){var t=e.name,o=e.content;return(0,r.jsx)(u.Fragment,{children:(0,r.jsx)("meta",{name:t,content:o})},n)}))})}),(0,r.jsx)(w,{color_scheme:"background-1",isOpenModal:N,closeModal:function(){return C(!1)},isDelivery:J,selectDelivery:function(){return Q(!0)},selectShop:function(){return Q(!1)}}),te&&(0,r.jsx)(j,{isOpenModal:$,closeModal:function(){return U(!1)},popup_image:te,redirect_slug:A.general.popup.redirect_slug}),(0,r.jsxs)("div",{className:"flex flex-col min-h-screen font-Helveticaltstd",children:[S||P?(0,r.jsx)(y,x({},a,{withBackBtn:S,logo:Z})):(0,r.jsxs)(r.Fragment,{children:[i&&L&&i.settings.show&&"top"==i.settings.position&&(0,r.jsx)(k,x({},i,{header_settings:a.settings,closeTopBar:W})),a?(0,r.jsx)(B,x({logo:Z},a,{isOpenTopBar:L,topBarType:I,openModal:function(){return C(!0)},showLocationBar:b,isProductDetailMobile:M})):(0,r.jsx)(E,{type:"store-navigation"}),i&&L&&i.settings.show&&"bottom"==i.settings.position&&(0,r.jsx)(k,x({},i,{header_settings:a.settings,closeTopBar:W}))]}),(0,r.jsx)("main",{className:(0,h.AK)("/corner-rokys"==z?"bg-[#EC671B]":"","relative bg-jq_b1 flex-auto",m?"":" grow flex flex-col","/menu/[categories_slug]/[product_name]"==z?"overflow-hidden":""),children:d}),(0,r.jsx)(f,{}),m&&(0,r.jsx)(r.Fragment,{children:c?(0,r.jsx)(O,x({},c,{logo:ie,complaints_book_image:se,phone_number:(null===a||void 0===a||null===(o=a.settings)||void 0===o?void 0:o.contact_phone)||"",isMobileDevice:q})):(0,r.jsx)(E,{type:"footer"})})]})]})}))},6655:function(e,n,t){t.d(n,{AK:function(){return c},Dp:function(){return o},Il:function(){return s},JB:function(){return u},ii:function(){return l},kQ:function(){return i},p5:function(){return a},qD:function(){return r}});var r={none:"pt-0",small:"pt-3",medium:"pt-6",large:"pt-8",xlarge:"pt-16"},o={none:"pb-0",small:"pb-3",medium:"pb-6",large:"pb-8",xlarge:"pb-16"},i={none:"mt-0",small:"mt-3",medium:"mt-6",large:"mt-8",xlarge:"mt-16"},a={none:"mb-0",small:"mb-3",medium:"mb-6",large:"mb-8",xlarge:"mb-16"},l={none:"ml-0",small:"ml-3",medium:"ml-6",large:"ml-8",xlarge:"ml-16"},s={none:"mr-0",small:"mr-3",medium:"mr-6",large:"mr-8",xlarge:"mr-16"},u={none:"rounded-none",small:"rounded-sm",normal:"rounded",medium:"rounded-md",large:"rounded-lg",xlarge:"rounded-xl",x2large:"rounded-2xl",x3large:"rounded-3xl",full:"rounded-full"};function c(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.filter(Boolean).join(" ")}}}]);

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.