(window.webpackJsonpvtex_store_icons_0_18_0=window.webpackJsonpvtex_store_icons_0_18_0||[]).push([["IconEyeSight"],{0:function(e,n){e.exports=React},2:function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},3:function(e,n,t){"use strict";var o=t(0),r=t.n(o),i=t(2),c=t.n(i),a=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);re.length)&&(t=e.length);for(var n=0,o=new Array(t);ne,d=!h||!1!==t.activarEnMobile;return"Por Fechas"===t.configuracionVisibilidad.posiblesConfiguraciones?r&&d:"Activacion Manual"===t.configuracionVisibilidad.posiblesConfiguraciones&&(t.configuracionVisibilidad.estaActivo&&d)}))}),[t,h]),B=i(Object(a.useState)(Math.min(m,w.length)),2),P=B[0],x=B[1],T=Object(a.useRef)(null);Object(a.useEffect)((function(){if(!(P>=w.length)){var e=new IntersectionObserver((function(e){i(e,1)[0].isIntersecting&&x((function(e){var t=e+k;return Math.min(t,w.length)}))}),{threshold:.1});return T.current&&e.observe(T.current),function(){e.disconnect()}}}),[P,w.length,k]);var I=Object(a.useMemo)((function(){var e={};return u&&g&&("color"===g.backgroundType?e.backgroundColor=g.color:"image"===g.backgroundType?(e.backgroundImage="url(".concat(h&&g.mobileImage?g.mobileImage:g.image,")"),e.backgroundSize=g.backgroundSize,e.backgroundPosition=g.backgroundPosition,e.backgroundRepeat=g.backgroundRepeat,e.backgroundAttachment=g.backgroundAttachment):"gradient"===g.backgroundType&&(e.background=g.background)),e}),[u,g,h]);return 0===w.length?r.a.createElement("div",{className:y.organizadorWrapper__loading},r.a.createElement("div",{className:y.organizadorWrapper__loadingSkeleton})):r.a.createElement(r.a.Fragment,null,o&&r.a.createElement(p.Helmet,null,r.a.createElement("meta",{name:"description",content:o})),r.a.createElement("div",{className:y.organizadorWrapper__container,style:I},w.slice(0,P).map((function(e){var t=n(8).default;return r.a.createElement(t,{key:"organizador-".concat(e.indexId),colorFondo:e.colorFondo,configuracionPadding:e.configuracionPadding,hasBackground:e.hasBackground,backgroundProps:e.backgroundProps,device:v,id:String(e.indexId)},d[e.indexId])})),P=t?a():i=setTimeout(a,t-e)),o};function a(){i=0,c=+new Date,o=e.apply(n,r),n=null,r=null}}},12:function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(11),c=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){a&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),d?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){a&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;h.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),v=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),S="undefined"!=typeof WeakMap?new WeakMap:new c,R=function(){return function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=p.getInstance(),r=new M(t,n,this);S.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){R.prototype[e]=function(){var t;return(t=S.get(this))[e].apply(t,arguments)}});var A=void 0!==u.ResizeObserver?u.ResizeObserver:R,k=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i=t||n<0||l&&e-s>=i}function v(){var e=C();if(p(e))return b(e);a=setTimeout(v,function(e){var n=t-(e-u);return l?ae(n,i-(e-s)):n}(e))}function b(e){return a=void 0,h&&r?d(e):(r=o=void 0,c)}function y(){var e=C(),n=p(e);if(r=arguments,o=this,u=e,n){if(void 0===a)return function(e){return s=e,a=setTimeout(v,t),f?d(e):c}(u);if(l)return clearTimeout(a),a=setTimeout(v,t),d(u)}return void 0===a&&(a=setTimeout(v,t)),c}return t=oe(t)||0,z(n)&&(f=!!n.leading,i=(l="maxWait"in n)?ce(oe(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==a&&clearTimeout(a),s=0,r=u=o=a=void 0},y.flush=function(){return void 0===a?c:b(C())},y},se="Expected a function";var fe=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(se);return z(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ue(e,t,{leading:r,maxWait:t,trailing:o})},le={debounce:ue,throttle:fe},he=function(e){return le[e]},de=function(e){return"function"==typeof e},pe=function(){return"undefined"==typeof window},ve=function(e){return e instanceof Element||e instanceof HTMLDocument};function be(e){return(be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ye(e,t){for(var n=0;n=o;d!==c&&v(c)}},[u,s,e,d,a,i])),{isStuck:d}}({stickOffset:C,position:N,verticalSpacing:p,contentHeight:j,wrapperOffsetTop:R}).isStuck;null!=H&&null!=s&&console.warn('"StackContainer" overrides the "StickyLayout" "position" prop.');var I=[O.container,!l&&"z-999",M?"fixed":"relative","left-0 right-0"].filter(Boolean).join(" "),D=M?d()(O.wrapper,["stuck"]):O.wrapper,A=(e={},Object(r.a)(e,N,M?p+C:0),Object(r.a)(e,"zIndex",l),e),B={position:"relative",height:j};return a.a.createElement("div",{ref:w,className:D,style:B},a.a.createElement("div",{ref:b,className:I,style:A},i,a.a.createElement(u.a,{handleHeight:!0,onResize:function(t,e){!1===M&&_(e),T(e)}})))}}],[[15,"common",0]]]);; !function(e){function t(t){for(var n,a,c=t[0],u=t[1],l=t[2],f=0,s=[];fe.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);ro.getTime()&&e.getTime()0){var e=Math.floor(m/86400),a=Math.floor(m%86400/3600),t=Math.floor(m%86400%3600/60),o=Math.floor(m%86400%3600%60);j(e),E(a),w(t),f(o),c(!0)}else c(!1)}),[m]),{isOfertaActive:i,segundos:g,minutos:y,horas:v,dias:x}}({fechaInicio:c,fechaFinal:_}),w=y.isOfertaActive,T=y.dias,O=y.horas,v=y.minutos,E=y.segundos;return w?n.a.createElement("div",{className:b.categoriasCountdown__generalContainer},n.a.createElement("div",{className:b.categoriasCountdown__bannerContainer},n.a.createElement(l.Link,{className:b.categoriasCountdown__bannnerLink,to:r},n.a.createElement("img",{alt:"Oferta Contrarreloj",src:"phone"===C?t:a,className:b.categoriasCountdown__banner}),n.a.createElement(g,{dias:T,horas:O,minutos:v,segundos:E}))),n.a.createElement(m.a,f)):null}function g(e){var a=e.dias,t=e.horas,o=e.minutos,r=e.segundos,c=i()(u);return n.a.createElement("div",{className:c.ofertaTemporizador__container},a>0&&n.a.createElement("div",{className:c.ofertaTemporizador__tiempoCasilla},n.a.createElement("p",{className:c.ofertaTiempoCasilla__numero},a<10?"0".concat(a):a),n.a.createElement("p",{className:c.ofertaTiempoCasilla__descripcion},"DÍAS")),n.a.createElement("div",{className:c.ofertaTemporizador__tiempoCasilla},n.a.createElement("p",{className:c.ofertaTiempoCasilla__numero},t<10?"0".concat(t):t),n.a.createElement("p",{className:c.ofertaTiempoCasilla__descripcion},"HORAS")),n.a.createElement("div",{className:c.ofertaTemporizador__tiempoCasilla},n.a.createElement("p",{className:c.ofertaTiempoCasilla__numero},o<10?"0".concat(o):o),n.a.createElement("p",{className:c.ofertaTiempoCasilla__descripcion},"MINUTOS")),n.a.createElement("div",{className:c.ofertaTemporizador__tiempoCasilla},n.a.createElement("p",{className:c.ofertaTiempoCasilla__numero},r<10?"0".concat(r):r),n.a.createElement("p",{className:c.ofertaTiempoCasilla__descripcion},"SEGUNDOS")))}_.schema={title:"Category Product Tabs Countdown",description:"Configuracion de oferta limitada de productos por categorias",type:"object",properties:{bannerDesktop:{title:"Banner Desktop",type:"string",default:"",widget:{"ui:widget":"image-uploader"}},bannerMobile:{title:"Banner Desktop",type:"string",default:"",widget:{"ui:widget":"image-uploader"}},slug:{title:"Slug",type:"string",default:"",widget:{"ui:widget":"textarea"}},fechaInicio:{title:"Fecha de Incio",type:"string",widget:{"ui:widget":"date-time"}},fechaFinal:{title:"Fecha Final",type:"string",widget:{"ui:widget":"date-time"}},categorias:{title:"Lista Categorias",type:"array",items:{properties:{__editorItemTitle:{title:"Nombre Categoria",type:"string"},categoriaId:{title:"Category ID",description:'For subcategories, use "/" (e.g.: 1/2/3)',type:"string"},coleccionId:{title:"Collection",type:"string"},linkRedireccionBoton:{title:"Url de Redirección",type:"string",default:"#"},ordenProductos:{title:"List Order",type:"string",enum:["Relevance","Sales","Price, descending","Price, ascending","Name, descending","Name, ascending","Release date","Discount"],default:"Relevance"},maximoItems:{title:"Max Items",type:"number",default:10},esconderItemsNoDisponibles:{title:"Hide unavailable items",type:"boolean",default:!1},filtroSku:{title:"SKU Filter",type:"string",enum:["All available","First available"],default:"All available"},cuotasMostradas:{title:"Displayed installments",type:"string",enum:["Maximum without interest","Maximum"],default:"Maximum without interest"}}}}}};a.default=_}],[[11,"common",0]]]);; (window.webpackJsonppanamericana_category_product_tabs_0_0_14=window.webpackJsonppanamericana_category_product_tabs_0_0_14||[]).push([["CategoryProductTabs"],[function(t,a){t.exports=React},,function(t,a){t.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},,function(t,a){t.exports=__RENDER_8_COMPONENTS__["vtex.device-detector@0.x/useDevice"]},,,,function(t,a,e){"use strict";e.r(a),function(t){var a=e(3);e.p=Object(a.getPublicPath)("panamericana.category-product-tabs@0.0.14");var c=Object(a.register)((function(){return e(9)}),t,"panamericana.category-product-tabs@0.0.14","panamericana.category-product-tabs@0.x","CategoryProductTabs");c.renderHotReload,c.setupHMR}.call(this,e(6)(t))},function(t,a,e){"use strict";e.r(a);var c=e(5);a.default=c.a}],[[8,"common",0]]]);; !function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t){e.exports=React},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPublicPath=t.register=void 0;var o="__RENDER_8_RUNTIME__",r="__RENDER_8_COMPONENTS__",i=!("undefined"==typeof window||!window.document);i&&!window.global&&(window.global=window),window[r]=window[r]||{},t.register=function(e,t,n,i,c){var a="".concat(n,"/").concat(c),u="".concat(i,"/").concat(c),l=function(){return function(e,t){try{var n=e();return n.__esModule?n.default:n.default||n}catch(e){throw new Error("An error happened while requiring the app ".concat(t,", please check your app's code.\\n").concat(e.stack))}}(e,a)};if(window[o]&&window[o].registerComponent){var s=!!window.__RENDER_LAZY__;window[o].registerComponent(t,s?l:l(),n,c,s)}else{var d=l();window[o]&&window[o].withHMR?window[r][a]=window[r][u]=window[o].withHMR(t,d):window[r][a]=window[r][u]=d}return{}},t.getPublicPath=function(e){var t=window.__hostname__,n="/_v/public/assets/v1/published/";return i&&window.__RUNTIME__&&(t=__RUNTIME__.assetServerPublishedHost||window.location.hostname,n=__RUNTIME__.assetServerPublishedPath||"/_v/public/assets/v1/published/"),"https://"+t+n+"".concat(e,"/public/react/")}},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/applyModifiers"]},function(e,t){e.exports=ReactIntl},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},function(e,t,n){"use strict";n.r(t),function(e){var t=n(1);n.p=Object(t.getPublicPath)("vtex.stack-layout@0.1.1");var o=Object(t.register)((function(){return n(7)}),e,"vtex.stack-layout@0.1.1","vtex.stack-layout@0.x","index");o.renderHotReload,o.setupHMR}.call(this,n(6)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";n.r(t);var o=n(0),r=n.n(o),i=n(3),c=n(4),a=n.n(c),u=n(2),l=n.n(u),s=["stackContainer","stackItem"],d=function(e){var t=e.children,n=e.zIndexOffset,o=void 0===n?0:n,i=a()(s);return r.a.createElement("div",{className:"".concat(i.stackContainer," relative")},r.a.Children.toArray(t).map((function(e,t){var n,c,a,u=(null===(a=null===(c=null===(n=e)||void 0===n?void 0:n.props)||void 0===c?void 0:c.blockProps)||void 0===a?void 0:a.blockClass)||"",s="";return u&&(s=l()(i.stackItem,u)),0===t?r.a.createElement("div",{key:t,className:"".concat(l()(i.stackItem,"first")," ").concat(s),style:{zIndex:o+1}},e):r.a.createElement("div",{key:t,className:"".concat(i.stackItem," absolute top-0 left-0 w-auto h-auto ").concat(s),style:{zIndex:o+t+1}},e)})))},f=Object(i.defineMessages)({title:{id:"admin/editor.stack-layout.title"},description:{id:"admin/editor.stack-layout.description"}});d.schema={title:f.title.id,description:f.description.id},t.default=d}]);; !function(e){function n(n){for(var r,u,c=n[0],a=n[1],l=n[2],f=0,p=[];fe.length)&&(t=e.length);for(var r=0,n=new Array(t);r=n||e<0||b&&t-c>=o}function x(){var t=v();if(j(t))return _(t);a=setTimeout(x,function(t){var e=n-(t-f);return b?s(e,o-(t-c)):e}(t))}function _(t){return a=void 0,y&&i?m(t):(i=r=void 0,u)}function h(){var t=v(),e=j(t);if(i=arguments,r=this,f=t,e){if(void 0===a)return w(f);if(b)return a=setTimeout(x,n),m(f)}return void 0===a&&(a=setTimeout(x,n)),u}return n=g(n)||0,d(e)&&(l=!!e.leading,o=(b="maxWait"in e)?p(g(e.maxWait)||0,n):o,y="trailing"in e?!!e.trailing:y),h.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=f=r=a=void 0},h.flush=function(){return void 0===a?u:_(v())},h}function d(t){var n=typeof t;return!!t&&("object"==n||"function"==n)}function g(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==l.call(t)}(t))return NaN;if(d(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=d(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(e,"");var a=r.test(t);return a||o.test(t)?u(t.slice(2),a?2:8):i.test(t)?NaN:+t}t.exports=function(t,n,e){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return d(e)&&(i="leading"in e?!!e.leading:i,r="trailing"in e?!!e.trailing:r),b(t,n,{leading:i,maxWait:n,trailing:r})}}}]);;