(window.webpackJsonp=window.webpackJsonp||[]).push([[3,90,139,187,194],{356:function(t,e,r){"use strict";r.r(e);r(34),r(52),r(108),r(179),r(5),r(46);e.default={data:function(){return{seconds:1,pendingProducts:[]}},methods:{handleProductInput:function(t,e){if(t<=0)this.removeProductFromQueue(e);else{if(e.agotado)return this.askForNotification(e);if(e.presentacion)return this.$store.commit("cart/SET_DRAWER_PRODUCT",{value:!0,product:e});this.addProductToQueue(e),this.fireTimer(e)}},addProductToCart:function(t){this.$store.commit("cart/ADD",t),this.clearOrigin(t);var e=this.$store.getters["cart/total"],r=this.$store.getters["commons/minimumPurchase"],o=r.amount,n=r.notification||"Para compra minima agrege al carrito";e=9)||"Utiliza un número válido"}]}}},computed:{title:function(){return"¡Este producto se encuentra agotado!"},method:function(){return"post"},action:function(){return"/waiting-list"}},methods:{getFormValues:function(){var t;return{producto:null===(t=this.product)||void 0===t?void 0:t.codigo}},onFormSuccess:function(){this.$notify("Hemos recibido tus datos, te estaremos notificando cuando este producto se encuentre disponible."),this.clearForm()}}},c=r(1),component=Object(c.a)(n,function(){var t=this,e=t._self._c;return e("app-form",t._g({attrs:{form:t.form,title:t.title,action:t.action,method:t.method,readonly:t.readonly,disabled:t.form.busy,"save-btn-text":"Enviar"},on:{success:t.onFormSuccess}},t.$listeners),[e("v-col",{staticClass:"pa-0",attrs:{cols:"12"}},[e("v-card-title",{attrs:{dark:""}},[e("span",[t._v("\n Si deseas que te notifiquemos cuando "+t._s(t.product.nombre)+" este disponible llena el formulario.\n ")])])],1),t._v(" "),t.form.errors.has("producto")?e("v-col",{attrs:{cols:"12"}},[e("v-alert",{attrs:{type:"error",dismissible:""}},[t._v("\n "+t._s(t.form.errors.get("producto"))+"\n ")])],1):t._e(),t._v(" "),e("v-col",{attrs:{cols:"12",md:"4",sm:"6"}},[e("v-text-field",{attrs:{dense:"",outlined:"",label:"Nombre",rules:[t.rules.name],"prepend-inner-icon":"fa-user",error:t.form.errors.has("nombre"),"error-messages":t.form.errors.get("nombre")},on:{keypress:function(e){return t.restrictNumber(e)}},model:{value:t.form.nombre,callback:function(e){t.$set(t.form,"nombre",e)},expression:"form.nombre"}})],1),t._v(" "),e("v-col",{attrs:{cols:"12",md:"4",sm:"6"}},[e("v-text-field",{staticClass:"email-input",attrs:{dense:"",outlined:"",autofocus:"",type:"email",label:"Correo",rules:t.rules.email,"prepend-inner-icon":"fa-envelope",error:t.form.errors.has("correo"),"error-messages":t.form.errors.get("correo")},model:{value:t.form.correo,callback:function(e){t.$set(t.form,"correo",e)},expression:"form.correo"}})],1),t._v(" "),e("v-col",{attrs:{cols:"12",md:"4",sm:"6"}},[e("v-text-field",{directives:[{name:"mask",rawName:"v-mask",value:"#########",expression:"'#########'"}],attrs:{dense:"",outlined:"",label:"Teléfono",placeholder:"Teléfono",rules:t.rules.phone,"prepend-inner-icon":"fa-mobile",error:t.form.errors.has("telefono"),"error-messages":t.form.errors.get("telefono")},model:{value:t.form.telefono,callback:function(e){t.$set(t.form,"telefono",e)},expression:"form.telefono"}})],1)],1)},[],!1,null,null,null);e.default=component.exports},390:function(t,e,r){"use strict";r.r(e);r(7),r(41),r(48),r(9),r(47),r(35),r(14),r(15),r(8),r(5),r(20),r(37),r(31),r(12),r(30);var o=r(2),n=r(0),c=(r(108),r(17),r(19),r(22)),l=r(4),d=r(38),f=r(438),m=r(357),v=r(365),h=r(439),y=r(440),_=r(441),x=r(356);function C(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,a){if(t){if("string"==typeof t)return w(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?w(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,n=function(){};return{s:n,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw c}}}}function w(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,r=Array(a);e0&&this.initialLoad&&(this.currentCategoryIndex=this.getCurrentCategory(),this.initialLoad=!1)}}},mounted:function(){this.currentCategoryIndex=this.getCurrentCategory(),this.setItems()},methods:{scrollToProductsSectionAnchor:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark(function e(){var r,o,n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:e.next=1;break;case 1:if(r=t.$el){e.next=2;break}return e.abrupt("return");case 2:return o=t.$isMobile()?120:90,n=Math.max(window.pageYOffset+r.getBoundingClientRect().top-o,0),e.next=3,t.$vuetify.goTo(n,{duration:260,easing:"easeInOutCubic"});case 3:case"end":return e.stop()}},e)}))()},paginate:function(t){var e=this;return Object(n.a)(regeneratorRuntime.mark(function r(){var o,n,c,d;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(e.pagination.current_page===t){r.next=2;break}return o=e.categories[e.getCurrentCategory()],n={category:o?Object(l.x)(o.nombre):void 0},c=e.$route.query,d={category:e.useCategoryFromQueryString?n.category:void 0,offers:c.offers||void 0,spent:c.spent||void 0,s:c.s||void 0,page:isNaN(t)?void 0:t},e.useCategoryFromQueryString&&delete n.category,e.showCategoryTabs&&e.$refs["category-tabs"]&&e.$refs["category-tabs"].mobileTabs&&e.$refs["category-tabs"].toggleMobileTabs(),r.next=1,e.scrollToProductsSectionAnchor();case 1:return e.$emit("paginate"),r.next=2,e.$router.push({name:e.$route.name,query:d,params:n}).catch(function(){});case 2:case"end":return r.stop()}},r)}))()},addToCart:function(t,e){this.item=new d.a(O(O({},e),{},{qty:t})),this.handleProductInput(t,this.item)},clear:function(t){var e,r,o=(null!=t?t:this.item).codigo;this.waitingListDialog=!1,null===(e=this.$refs["product_".concat(o)])||void 0===e||null===(r=e[0])||void 0===r||r.clear(),this.item={}},setItems:function(){var t,e=[],r=C(this.products);try{for(r.s();!(t=r.n()).done;){var o=t.value;e.push(new d.a(o))}}catch(t){r.e(t)}finally{r.f()}this.items=e},getCurrentCategory:function(){var t,e,r,o=null!==(t=this.$route.params.category)&&void 0!==t?t:Object(l.x)(null!==(e=null===(r=this.categories[this.currentCategoryIndex])||void 0===r?void 0:r.nombre)&&void 0!==e?e:"")||this.$route.query.category;return this.categories.findIndex(function(t){return Object(l.x)(t.nombre)===o})},onCategoryChanged:function(t){null===t&&(this.currentCategoryIndex=null,this.$route.query.category=null),this.$route.query.s=null,this.paginate()}}},k=(r(934),r(1)),component=Object(k.a)(I,function(){var t=this,e=t._self._c;return e("v-card",{class:t.isPriceListPage?"":"mb-4",attrs:{flat:"",color:"transparent"}},[e("v-lazy",{attrs:{id:t.idType,options:{threshold:0},transition:"scale-transition"}},[t.showCategoryTabs?e("category-tabs",{ref:"category-tabs",attrs:{disabled:t.fetching},on:{change:t.onCategoryChanged},model:{value:t.currentCategoryIndex,callback:function(e){t.currentCategoryIndex=e},expression:"currentCategoryIndex"}}):t._e()],1),t._v(" "),e("br"),t._v(" "),t.isPriceListPage?e("price-list-featured-info"):t._e(),t._v(" "),t.pagination.last_page>1&&!t.isPriceListPage?e("v-row",{attrs:{justify:t.$isMobile()?"center":"end"}},[e("v-col",{staticClass:"d-none d-md-flex d-lg-flex d-xl-flex pa-0 text-end",staticStyle:{display:"flex","justify-content":"right","align-items":"center"},attrs:{md:"1",sm:"6",cols:"12"}},[e("strong",[t._v("\n Páginas:\n ")])]),t._v(" "),e("v-col",{staticClass:"text-end pa-0",attrs:{cols:"12",md:"5",lg:"4",xl:"3",sm:"6"}},[e("client-only",[e("v-pagination",{staticClass:"my-5",attrs:{value:t.pagination.current_page,length:t.pagination.last_page,disabled:t.fetching,"total-visible":8,color:"white",circle:"","prev-icon":"fas fa-angle-left","next-icon":"fas fa-angle-right"},on:{input:t.paginate}})],1)],1)],1):t._e(),t._v(" "),e("v-row",{attrs:{justify:"center"}},[t.fetching||t.items.length?t._l(t.items,function(r,i){return e("v-col",t._b({key:"product_list_item_wrapper_".concat(i)},"v-col",t.productListItemWrapperAttrs,!1),[e("v-lazy",{attrs:{options:{threshold:0},transition:"scale-transition"}},[t.isPriceListPage&&t.$isMobile()?e("product-list-item-list-mobile",{ref:"product_".concat(r.codigo),refInFor:!0,attrs:{product:r},on:{input:function(e){return t.addToCart(e,r)}}}):t.isPriceListPage&&!t.$isMobile()?e("product-list-item-list",{ref:"product_".concat(r.codigo),refInFor:!0,attrs:{product:r},on:{input:function(e){return t.addToCart(e,r)}}}):e("product-list-item",{ref:"product_".concat(r.codigo),refInFor:!0,attrs:{product:r},on:{input:function(e){return t.addToCart(e,r)}}})],1)],1)}):e("v-col",{staticClass:"text-center",attrs:{cols:"12"}},[e("strong",[e("v-icon",{attrs:{size:"50",color:"fishboxColor"}},[t._v("\n fas fa-sad-tear\n ")]),t._v(" "),e("br"),t._v("\n Lo sentimos, no encontramos resultados\n ")],1),t._v(" "),e("br"),t._v("\n Por favor inténtalo nuevamente\n ")])],2),t._v(" "),t.pagination.last_page>1&&!t.isPriceListPage?e("v-pagination",{staticClass:"my-5 text-center",attrs:{value:t.pagination.current_page,length:t.pagination.last_page,disabled:t.fetching,"total-visible":8,color:"white",circle:"","prev-icon":"fas fa-angle-left","next-icon":"fas fa-angle-right"},on:{input:t.paginate}}):t._e(),t._v(" "),e("v-dialog",{attrs:{persistent:"",width:t.responsive.dialogWith},model:{value:t.waitingListDialog,callback:function(e){t.waitingListDialog=e},expression:"waitingListDialog"}},[e("waiting-list-form",{attrs:{product:t.item},on:{cancel:t.clear,success:t.clear}})],1)],1)},[],!1,null,null,null);e.default=component.exports},438:function(t,e,r){"use strict";r.r(e);r(34),r(17),r(45),r(20),r(46);var o={mixins:[r(60).default],props:{value:{type:Number,default:0},disabled:{type:Boolean,default:!1}},data:function(){return{localValue:0,mobileTabs:!1,showCategoryImage:!1}},computed:{responsive:function(){return{xs:{tab:!0,centerTab:!1},sm:{tab:!0,centerTab:!1},md:{tab:!1,centerTab:!0},lg:{tab:!1,centerTab:!0},xl:{tab:!1,centerTab:!0}}[this.$vuetify.breakpoint.name]},categories:function(){var t=this.$store.getters["commons/categories"];return[{nombre:"Todos",referencia:"all"}].concat(t)},isPriceListPage:function(){return this.routeIs("price-list")},screenWith:function(){return this.$vuetify.breakpoint.width}},watch:{value:{immediate:!0,handler:function(t){this.localValue=null===t||t<0?0:t+1}}},created:function(){var t=this;setTimeout(function(){t.showCategoryImage=!0},200)},methods:{categorySelected:function(){var t=0===this.localValue?null:this.localValue-1;this.$emit("input",t),this.$emit("change",t)},getCategoryImageUrl:function(t){var e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);return this.requestResizedImage(t.photo_url,{w:60,h:60,q:70,fm:e?"":"webp",fit:"crop",crop:"center"})},toggleMobileTabs:function(){this.mobileTabs=!this.mobileTabs}}},n=(r(817),r(1)),component=Object(n.a)(o,function(){var t=this,e=t._self._c;return e("v-card",{staticClass:"premium-category-selector",attrs:{flat:"",width:"auto",color:"transparent"}},[t.responsive.tab&&!t.isPriceListPage?[t.responsive.tab?e("v-btn",{staticClass:"d-md-none mobile-toggle-btn",attrs:{dark:"",large:"",block:"",color:"primary"},on:{click:t.toggleMobileTabs}},[e("v-icon",{staticClass:"mr-2"},[t._v("\n fa-box-open\n ")]),t._v(" "),e("strong",[t._v("\n Nuestros Productos\n ")]),t._v(" "),e("v-icon",{attrs:{right:""}},[t._v("\n "+t._s(t.mobileTabs?"fa-chevron-up":"fa-chevron-down")+"\n ")])],1):t._e(),t._v(" "),e("v-expand-transition",[e("v-tabs",{directives:[{name:"show",rawName:"v-show",value:t.mobileTabs,expression:"mobileTabs"}],staticClass:"premium-tabs mobile-tabs",attrs:{color:"primary",vertical:t.responsive.tab,"fixed-tabs":t.responsive.tab,"active-class":"premium-active-category",centered:!1},on:{change:t.categorySelected},model:{value:t.localValue,callback:function(e){t.localValue=e},expression:"localValue"}},[e("v-tabs-slider",{staticClass:"premium-slider"}),t._v(" "),t._l(t.categories,function(r){return e("v-tab",{key:r.referencia,staticClass:"premium-category-tab mobile-category-item",attrs:{disabled:t.disabled}},[e("div",{staticClass:"category-content mobile-content"},[e("div",{staticClass:"category-indicator"}),t._v(" "),r.photo_url&&r.referencia>0?e("v-avatar",{staticClass:"category-avatar mr-3"},[e("v-img",{staticClass:"category-image",attrs:{loading:"lazy","lazy-src":t.getCategoryImageUrl(r),src:t.showCategoryImage?t.getCategoryImageUrl(r):"",cover:""}})],1):t._e(),t._v(" "),e("div",{staticClass:"category-text"},[e("span",{staticClass:"category-name",domProps:{textContent:t._s(r.nombre)}}),t._v(" "),e("div",{staticClass:"category-subtitle"},[t._v("\n Ver productos\n ")])]),t._v(" "),e("v-icon",{staticClass:"category-arrow",attrs:{small:""}},[t._v("fa-chevron-right")])],1)])})],2)],1)]:e("v-tabs",{staticClass:"premium-tabs desktop-tabs",class:t.isPriceListPage?"price-list-tabs":"",attrs:{"show-arrows":"",color:"transparent","background-color":"transparent","next-icon":"fa-chevron-circle-right","prev-icon":"fa-chevron-circle-left","active-class":"premium-active-category","fixed-tabs":!t.isPriceListPage&&t.responsive.tab,vertical:!t.isPriceListPage&&t.responsive.tab,centered:!!t.isPriceListPage||t.responsive.centerTab},on:{change:t.categorySelected},model:{value:t.localValue,callback:function(e){t.localValue=e},expression:"localValue"}},t._l(t.categories,function(r){return e("v-tab",{key:r.referencia,staticClass:"premium-category-tab desktop-category-item",attrs:{disabled:t.disabled}},[e("div",{staticClass:"category-content desktop-content"},[e("div",{staticClass:"category-glow"}),t._v(" "),e("div",{staticClass:"desktop-category-wrapper"},[r.photo_url&&r.referencia>0?e("v-lazy",{attrs:{options:{threshold:0},transition:"fade-transition"}},[e("v-avatar",{staticClass:"category-avatar desktop-avatar mr-2"},[e("v-img",{staticClass:"category-image desktop-image",attrs:{loading:"lazy","lazy-src":t.getCategoryImageUrl(r),src:t.showCategoryImage?t.getCategoryImageUrl(r):"",cover:""}})],1)],1):t._e(),t._v(" "),e("span",{staticClass:"category-name desktop-name",domProps:{textContent:t._s(r.nombre)}})],1)])])}),1)],2)},[],!1,null,"493f7e7e",null);e.default=component.exports},439:function(t,e,r){"use strict";r.r(e);var o=r(0),n=(r(17),r(20),r(51),r(19),{mixins:[r(60).default],data:function(){return{defaultItems:[],selectedImage:{},imageDialog:!1}},fetch:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==t.items.length){e.next=1;break}return e.next=1,t.$store.dispatch("commons/fetchWebConfig","price-list-featured-info");case 1:case"end":return e.stop()}},e)}))()},computed:{items:function(){return this.$store.getters["commons/priceListFeaturedInfo"].images||[]},responsive:function(){return{xs:{dialogWith:"100%"},sm:{dialogWith:"100%"},md:{dialogWith:"80%"},lg:{dialogWith:"70%"},xl:{dialogWith:"70%"}}[this.$vuetify.breakpoint.name]},isMobile:function(){return this.$vuetify.breakpoint.mobile}},methods:{getImageUrl:function(t,e,r){var o,n;return t[r]||"/images/img/".concat(null===(o=this.defaultItems)||void 0===o||null===(n=o[e])||void 0===n?void 0:n[r.replace("_url","")])},getItemImageUrl:function(t,e){var r=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);return t.image_url?this.requestResizedImage(t.image_url,{w:300,h:300,fit:"max",q:60,fm:r?"":"webp"}):this.getImageUrl(t,e,"image_url")},openImageDialog:function(t){this.selectedImage=t,this.imageDialog=!0},closeImageDialog:function(){this.imageDialog=!1,this.selectedImage={}}}}),c=r(1),component=Object(c.a)(n,function(){var t=this,e=t._self._c;return t.$fetchState.pending?t._e():e("v-row",{staticClass:"mx-1",attrs:{justify:"center"}},[e("v-col",{staticClass:"px-1 pt-1 pb-0",attrs:{cols:"12"}},[e("strong",[t._v("\n INFORMACIÓN\n ")])]),t._v(" "),t._l(t.items,function(r,o){return e("v-col",{key:o,staticClass:"pa-1",attrs:{cols:"3"}},[e("v-lazy",{attrs:{options:{threshold:1},transition:"scale-transition"}},[e("v-card",{on:{click:function(e){return t.openImageDialog(r)}}},[e("v-img",{attrs:{contain:"",src:t.getItemImageUrl(r,o),"lazy-src":t.getItemImageUrl(r,o)}})],1)],1)],1)}),t._v(" "),e("app-dialog",{attrs:{persistent:"","hide-actions":"",width:t.responsive.dialogWith},on:{close:t.closeImageDialog},model:{value:t.imageDialog,callback:function(e){t.imageDialog=e},expression:"imageDialog"}},[e("v-img",{attrs:{src:t.getImageUrl(t.selectedImage,0,t.isMobile?"thumbnail_url":"image_url"),"lazy-src":t.getImageUrl(t.selectedImage,0,t.isMobile?"thumbnail_url":"image_url")}})],1)],2)},[],!1,null,null,null);e.default=component.exports},440:function(t,e,r){"use strict";r.r(e);r(7),r(9),r(14),r(15),r(8);var o=r(2),n=(r(17),r(5),r(20),r(12),r(46),r(22)),c=r(38),l=r(4),d=r(60),f=r(89),m=r(362);function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,o)}return r}function h(t){for(var e=1;e999&&(r=999-p.qty)}),this.$emit("input",r>0?r:this.qty)},drawerState:function(t){t||this.clear(this.productRecentlyAdded)}},created:function(){var t=this;setTimeout(function(){t.time=!1},6e3)},methods:{openDialogImage:function(img){this.dialogImage=!0},closeDialogImage:function(){this.dialogImage=!1},getFlyToCartAnimationPositions:function(){return{y:document.getElementById(this.flyToCartWrapperId).clientHeight-140,w:30}},clear:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.qty=0,e&&this.products.some(function(e){return e.codigo===t.product.codigo})&&this.fireFlyToCartAnimation()},percentage:function(t,e){return Math.round(100*(1-t/e))}}},_=y,x=(r(818),r(1)),component=Object(x.a)(_,function(){var t=this,e=t._self._c;return e("v-card",{staticClass:"mx-1 mb-2 rounded-lg",attrs:{flat:""}},[e("v-hover",{scopedSlots:t._u([{key:"default",fn:function(r){var o=r.hover;return[e("v-card",{staticClass:"rounded-lg",attrs:{id:t.flyToCartWrapperId,elevation:o?16:2}},[t.product.hasPriceListOffer?e("div",{staticClass:"labelOfferPriceList",class:t.time?"blinks":""},[e("span",{staticClass:"text-uppercase",style:"background: ".concat(t.product.preferences.pl_offer_tag.color," !important;"),domProps:{textContent:t._s(t.product.preferences.pl_offer_tag.label)}})]):t.product.agotado&&!t.product.hasPriceListOffer?e("div",{staticClass:"labelOfferPriceList",class:t.time?"blinks":""},[e("span",{staticClass:"text-uppercase",style:"background: ".concat(t.product.agotado?"linear-gradient(#EF9A9A 0%, #D50000 100%) ":"background: linear-gradient(#69F0AE 0%, #1B5E20 100%)"," !important;")},[t._v("\n "+t._s(t.product.agotado?"Agotado":"Nuevo")+"\n ")])]):t._e(),t._v(" "),e("transition",{on:{enter:t.onFlyToCartAnimationEnter,"before-enter":t.beforeFlyToCartAnimationEnter,"after-enter":t.afterFlyToCartAnimationEnter}},[t.flyToCartAnimationConfig.ballFlag?e("img",{ref:"fly-to-cart-animation-ball",staticClass:"ball",style:{top:"".concat(t.flyToCartAnimationConfig.tt,"px"),left:"".concat(t.flyToCartAnimationConfig.ll,"px")},attrs:{src:t.productCoverUrl}}):t._e()]),t._v(" "),e("v-card-text",{staticClass:"py-0 pl-0",class:t.screenWith<400?"":"pr-0"},[e("v-btn",{staticClass:"white--text btnDetail",attrs:{fab:"",right:"",bottom:"","x-small":"",absolute:"",color:t.showProductDescription?"red":"orange"},on:{click:function(e){t.showProductDescription=!t.showProductDescription}}},[e("v-icon",[t._v(t._s(t.showProductDescription?"fas fa-times":"fa-chevron-down"))])],1),t._v(" "),e("div",{staticClass:"d-flex flex-no-wrap justify-space-between"},[e("v-img",{staticClass:"align-end rounded rounded-lg",staticStyle:{cursor:"pointer"},attrs:{contain:"",loading:"lazy",alt:t.product.nombre,src:t.productCoverUrl,"lazy-src":t.productCoverUrl,width:t.isMobile?t.screenWith<400?"40%":"30%":"15%"},on:{click:t.openDialogImage},scopedSlots:t._u([{key:"placeholder",fn:function(){return[e("v-row",{staticClass:"fill-height ma-0",attrs:{align:"center",justify:"center"}},[e("v-progress-circular",{attrs:{size:40,width:6,indeterminate:"",color:"fishboxColor","aria-label":"cargando"}})],1)]},proxy:!0}],null,!0)},[t._v(" "),e("v-col",{staticClass:"px-1 py-0",attrs:{cols:"12"}},[e("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[e("v-col",{attrs:{cols:"6"}},[e("app-rating",{attrs:{readonly:"",size:"9",value:t.product.rating||0,length:t.screenWith<400?1:5}})],1),t._v(" "),t.product.hasPriceListOffer?e("v-col",{staticClass:"text-right",attrs:{cols:"6"}},[e("v-chip",{staticClass:"font-weight-bold",attrs:{"x-small":"",color:t.product.preferences.offer_tag.color||t.pink,"text-color":"white"}},[t.product.priceListOfferIs2X1?e("span",[t._v("\n "+t._s(t.product.pl_offer_2x1_value)+"x1\n ")]):t.product.pl_offer_type===t.OFFER_TYPES.percentage?e("span",[t._v("\n - "+t._s(t.product.pl_offer_price)+"%\n ")]):e("span",[t._v("\n - "+t._s(t.percentage(t.product.pl_offer_price,t.product.precio))+"%\n ")])])],1):t._e()],1)],1)],1),t._v(" "),e("v-col",{staticClass:"pl-1 py-0",class:t.screenWith<400?"":"pr-1",attrs:{cols:"8",md:"10"}},[e("v-card-subtitle",{staticClass:"px-2 font-weight-bold",class:t.isMobile?"py-0":"py-1",staticStyle:{height:"35px","letter-spacing":"0 !important","line-height":"0.95rem !important"},domProps:{textContent:t._s(t.str_limit(t.product.nombre.toLowerCase(),t.responsive.productName))}}),t._v(" "),e("v-card-text",{staticClass:"py-0"},[e("v-row",{staticClass:"pb-0 pt-2",attrs:{justify:t.screenWith<400&&t.product.hasPriceListOffer&&t.product.priceListPrice999&&(r=999-p.qty)}),this.$emit("input",r>0?r:this.qty)}},created:function(){var t=this;setTimeout(function(){t.showProductImg=!0},2),setTimeout(function(){t.time=!1},6e3)},methods:{percentage:function(t,e){return Math.round(100*(1-t/e))},clear:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.qty=0,e&&this.products.some(function(e){return e.codigo===t.product.codigo})&&this.fireFlyToCartAnimation()}}},_=y,x=(r(819),r(1)),component=Object(x.a)(_,function(){var t=this,e=t._self._c;return e("v-hover",{scopedSlots:t._u([{key:"default",fn:function(r){var o=r.hover;return[e("v-card",{attrs:{id:t.flyToCartWrapperId,shaped:"",height:"auto","min-width":"95%","max-width":"100%",color:"grey lighten-5",elevation:o?16:2}},[e("transition",{on:{enter:t.onFlyToCartAnimationEnter,"before-enter":t.beforeFlyToCartAnimationEnter,"after-enter":t.afterFlyToCartAnimationEnter}},[t.flyToCartAnimationConfig.ballFlag?e("img",{ref:"fly-to-cart-animation-ball",staticClass:"ball",style:{top:"".concat(t.flyToCartAnimationConfig.tt,"px"),left:"".concat(t.flyToCartAnimationConfig.ll,"px")},attrs:{loading:"lazy",src:t.productCoverUrl,"lazy-src":t.productCoverUrl}}):t._e()]),t._v(" "),t.product.hasPriceListOffer?e("span",{staticClass:"labelOffer",class:t.time?"blinks":""},[e("span",{staticClass:"text-uppercase",style:"background: ".concat(t.product.preferences.pl_offer_tag.color||"#F47530"," !important;"),domProps:{textContent:t._s(t.product.preferences.pl_offer_tag.label||"¡Oferta!")}})]):t.product.isNew||t.product.agotado&&!t.product.hasPriceListOffer?e("div",{staticClass:"labelOffer",class:t.time?"blinks":""},[e("span",{staticClass:"text-uppercase",style:"background: ".concat(t.product.agotado?"linear-gradient(#EF9A9A 0%, #D50000 100%) ":"background: linear-gradient(#69F0AE 0%, #1B5E20 100%)"," !important;")},[t._v("\n "+t._s(t.product.agotado?"Agotado":"Nuevo")+"\n ")])]):t._e(),t._v(" "),e("v-lazy",{attrs:{options:{threshold:0},transition:"scale-transition"}},[e("v-card",{staticStyle:{"border-top-left-radius":"24px !important"},attrs:{flat:"",color:"grey lighten-5"}},[e("v-img",{staticClass:"align-end",attrs:{eager:"",loading:"lazy",alt:t.product.nombre,src:t.productCoverUrl,"lazy-src":t.productCoverUrl,"min-height":t.screenWith<=375?"105px":"",height:t.showProductImg?"":t.responsive.imageHeight},scopedSlots:t._u([{key:"placeholder",fn:function(){return[e("v-row",{staticClass:"fill-height ma-0",attrs:{align:"center",justify:"center"}},[e("v-progress-circular",{attrs:{size:70,width:8,indeterminate:"",color:"fishboxColor","aria-label":"cargando"}})],1)]},proxy:!0}],null,!0)})],1)],1),t._v(" "),e("v-card-text",{staticClass:"py-1 px-1",style:"position: relative; height:".concat(t.responsive.cardText,";")},[e("strong",{staticClass:"mt-1 font-weight-bold blue-grey--text text-capitalize text-caption",staticStyle:{color:"#263238 !important"},style:"".concat(t.isMobile?"font-size: x-small !important;":""),domProps:{textContent:t._s(t.str_limit(t.product.nombre.toUpperCase(),t.responsive.productName))}})]),t._v(" "),e("v-col",{staticClass:"px-1 py-0",attrs:{cols:"12"}},[e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{attrs:{cols:"6"}},[e("v-card-actions",{staticClass:"pa-0"},[e("app-rating",{attrs:{readonly:"",value:t.product.rating||0,length:t.screenWith<376?1:5}}),t._v(" "),e("span",{staticClass:"text-caption ms-1",domProps:{textContent:t._s(t.product.rating)}})],1)],1),t._v(" "),t.product.hasPriceListOffer?e("v-col",{staticClass:"text-right",attrs:{cols:"6"}},[e("v-chip",{staticClass:"font-weight-bold",attrs:{"x-small":"",color:"pink","text-color":"white"}},[t.product.offerIs2X1?e("strong",[t._v("\n "+t._s(t.product.offer_2x1_value)+"x1\n ")]):t.product.tipooferta===t.OFFER_TYPES.percentage?e("strong",[t._v("\n - "+t._s(t.product.preciooferta)+"%\n ")]):e("strong",[t._v("\n - "+t._s(t.percentage(t.product.preciooferta,t.product.precio))+"%\n ")])])],1):t._e()],1)],1),t._v(" "),e("v-divider",{staticClass:"mx-4"}),t._v(" "),t.product.preferences.retail.length&&!t.isHidenPage?[e("p",{staticClass:"caption text-center mb-0 font-weight-bold"},[t._v("\n Valor Retail\n ")]),t._v(" "),e("v-card-actions",{staticClass:"pa-0"},[e("v-spacer"),t._v(" "),t._l(t.product.preferences.retail,function(r,o){return e("div",{key:"retail_wrapper".concat(o)},[e("v-tooltip",{attrs:{top:"",color:r.color||"#1565C0"},scopedSlots:t._u([{key:"activator",fn:function(o){var n=o.on,c=o.attrs;return[e("v-chip",t._g(t._b({staticClass:"ma-0",attrs:{dark:"","x-small":"",color:r.color||"#1565C0"}},"v-chip",c,!1),n),[t._v("\n "+t._s(r.value)+"% +\n ")])]}}],null,!0)},[t._v(" "),e("span",{domProps:{textContent:t._s(r.text)}})]),t._v(" "),e("v-divider",{staticClass:"mx-1",attrs:{vertical:""}})],1)}),t._v(" "),e("v-spacer")],2)]:t._e(),t._v(" "),e("v-divider",{staticClass:"mx-4"}),t._v(" "),e(t.isMobile?"v-card":"v-card-actions",{tag:"component",staticClass:"py-0",style:t.product.hasPriceListOffer&&t.product.price=t.product.cant_min_oferta?[e(t.isMobile?"h5":"h4",{tag:"component",staticClass:"text-center orange--text text-decoration-line-through",domProps:{textContent:t._s(t.$toCurrency(t.product.precio))}}),t._v(" "),t.isMobile?e("v-divider",{staticClass:"mx-4 my-1"}):[t._v("\n  \n  \n ")]]:t._e(),t._v(" "),e(t.isMobile?"h4":"h2",{tag:"component",staticClass:"text-center light-blue--text",staticStyle:{color:"#02897d !important"}},[t._v("\n "+t._s(t.$toCurrency(t.total))+"\n "),e("span",{staticClass:"body-2"},[e("strong",{staticStyle:{color:"#02897d !important"},domProps:{textContent:t._s(t.product.unidad)}})])]),t._v(" "),e("v-spacer")],2),t._v(" "),e("v-divider",{staticClass:"mx-4"}),t._v(" "),e("v-card-actions",{staticClass:"pa-1"},[e("v-spacer"),t._v(" "),e("quantity-input",{staticClass:"mx-auto",attrs:{product:t.product},model:{value:t.qty,callback:function(e){t.qty=e},expression:"qty"}}),t._v(" "),e("v-spacer")],1),t._v(" "),t.product.hasPriceListOffer&&!t.product.offerIs2X1?e("v-col",{staticClass:"pa-0 ma-0 text-center",attrs:{cols:"12"}},[e("strong",{staticClass:"text-caption font-weight-bold",style:"color: ".concat(t.product.preferences.offer_tag.color)},[t._v("\n Agrega\n "+t._s(t.product.cant_min_oferta?t.product.cant_min_oferta:t.product.cantidaddesde)+"\n "+t._s(t.product.unidad)+" y obtiene un\n "),t.product.tipooferta===t.OFFER_TYPES.percentage?e("strong",[t._v("\n "+t._s(t.product.preciooferta)+"%\n ")]):e("strong",[t._v("\n "+t._s(t.percentage(t.product.preciooferta,t.product.precio))+"%\n ")])])]):t._e()],2)]}}])})},[],!1,null,"b67580f6",null);e.default=component.exports},795:function(t,e,r){t.exports={}},796:function(t,e,r){t.exports={}},797:function(t,e,r){t.exports={}},817:function(t,e,r){"use strict";r(795)},818:function(t,e,r){"use strict";r(796)},819:function(t,e,r){"use strict";r(797)},874:function(t,e,r){t.exports={}},934:function(t,e,r){"use strict";r(874)}}]);