(window.webpackJsonp=window.webpackJsonp||[]).push([[8,67,96,134,183],{141:function(t,e,o){"use strict";o.r(e);var r=o(745).a,n=(o(860),o(1)),component=Object(n.a)(r,function(){var t=this,e=t._self._c;return e("v-row",{staticClass:"premium-home",attrs:{justify:"center",align:"center"}},[e("client-only",[e("breadcrumbs",{staticClass:"premium-breadcrumbs"})],1),t._v(" "),e("v-col",{staticClass:"pa-1",attrs:{cols:"12"}},[e("div",{staticClass:"section-header"},[e("v-icon",{staticClass:"mb-4",attrs:{color:"#001732","x-large":""}},[t._v("mdi-information")]),t._v(" "),e("h1",{staticClass:"section-title"},[t._v("\n BLOG\n ")]),t._v(" "),e("div",{staticClass:"title-divider"})],1)]),t._v(" "),e("v-col",{staticClass:"py-0",attrs:{cols:"12"}},[e("v-card",{staticClass:"premium-hero mb-8",attrs:{elevation:"12"}},[e("v-row",{staticClass:"hero-content",attrs:{align:"center"}},[e("v-col",{staticClass:"text-content pa-8",attrs:{cols:"12"}},[e("h1",{staticClass:"hero-title mb-4"},[t._v("\n Descubre el Mundo del\n "),e("span",{staticClass:"accent-text"},[t._v("\n Pescado Fresco\n ")])]),t._v(" "),e("p",{staticClass:"hero-subtitle mb-6"},[t._v("\n Recetas, consejos y todo sobre pescados y mariscos de la más alta calidad\n ")])])],1)],1)],1),t._v(" "),e("v-col",{staticClass:"py-1",attrs:{cols:"12"}},[e("nuxt")],1),t._v(" "),e("v-col",{staticClass:"py-1",attrs:{cols:"12"}},[e("v-row",{staticClass:"pt-2 pb-6",attrs:{justify:"center"}},[e("v-col",{staticClass:"pb-0",attrs:{cols:"12"}},[e("div",{staticClass:"section-header mb-6"},[e("h2",{staticClass:"section-title"},[t._v("\n Productos Destacados\n ")]),t._v(" "),e("div",{staticClass:"title-divider"})]),t._v(" "),e("client-only",[e("products-slider")],1)],1),t._v(" "),e("v-col",{staticClass:"py-0 text-center",attrs:{cols:"12",md:"4",sm:"6"}},[e("v-btn",{staticClass:"premium-button",attrs:{color:"#001732",dark:"",large:"",to:{name:"products.index"}}},[e("v-icon",{attrs:{left:""}},[t._v("mdi-fish")]),t._v(" "),e("strong",[t._v("Ver Catálogo Completo")])],1)],1)],1)],1),t._v(" "),t.config.image||t.config.youtube_code?e("v-col",{staticClass:"py-1 mb-2",attrs:{cols:"12"}},[e("v-card",{staticClass:"premium-media-card",attrs:{elevation:"8"}},["video"===t.config.media&&t.config.youtube_code?e("v-card-text",{staticClass:"pa-0"},[e("div",{staticClass:"media-container"},[e("youtube",{staticClass:"media-content",attrs:{"video-id":t.config.youtube_code,width:"100%"}})],1)]):e("v-img",{staticClass:"media-content",attrs:{height:"300",width:"100%",loading:"lazy","aspect-ratio":"1.7",src:t.optimizedConfigImage,"lazy-src":t.optimizedConfigImagePlaceholder}})],1)],1):t._e()],1)},[],!1,null,"13446b4b",null);e.default=component.exports},299:function(t,e,o){"use strict";o.r(e);o(35);e.default={data:()=>({seconds:1,pendingProducts:[]}),methods:{handleProductInput(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(t){this.$store.commit("cart/ADD",t),this.clearOrigin(t);var e=this.$store.getters["cart/total"],{amount:o,notification:r}=this.$store.getters["commons/minimumPurchase"],n=r||"Para compra minima agrege al carrito";ee.codigo===t.codigo);e?(clearTimeout(e.timer),Object.assign(e,t)):this.pendingProducts.push(t)},removeProductFromQueue(t){var e=this.pendingProducts.findIndex(e=>e.codigo===t.codigo);-1!==e&&(clearTimeout(this.pendingProducts[e].timer),this.pendingProducts.splice(e,1))},fireTimer(t){var e=this.pendingProducts.find(e=>t.codigo===e.codigo),o=setTimeout(()=>{e?(this.addProductToCart(e),this.removeProductFromQueue(e)):this.clearOrigin(t)},1e3*this.seconds);e&&(e.timer=o)},clearOrigin(t){"function"==typeof this.clear&&this.clear(t)}}}},300:function(t,e,o){"use strict";o.r(e);var r=o(4),n={mixins:[o(87).default],props:{product:{type:Object,default:()=>({})}},data:t=>({formInitialValuesProp:"product",form:t.$vform.make({nombre:"",correo:"",telefono:"",producto:null}),rules:{name:t=>!!t||"El Nombre es requerido",email:[t=>!!t||"El Correo es requerido",t=>Object(r.f)(t)||"Correo invalido"],phone:[t=>!!t||"El teléfono es requerido.",t=>!(t&&t.length>=9)||"Utiliza un número válido"]}}),computed:{title:()=>"¡Este producto se encuentra agotado!",method:()=>"post",action:()=>"/waiting-list"},methods:{getFormValues(){var t;return{producto:null===(t=this.product)||void 0===t?void 0:t.codigo}},onFormSuccess(){this.$notify("Hemos recibido tus datos, te estaremos notificando cuando este producto se encuentre disponible."),this.clearForm()}}},c=o(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},306:function(t,e,o){"use strict";o.r(e);o(43),o(35),o(14),o(29);var r={props:{replaceSegments:{type:Object,default:()=>({})}},computed:{headerOffset(){return this.$store.getters["commons/headerOffset"]||0},breadcrumbsTopStyle(){return this.headerOffset?{paddingTop:"".concat(this.headerOffset+8,"px")}:{paddingTop:"24px"}},items(){var t=this.$route.path.split("/").filter(t=>Boolean(t)).reduce((t,path,e)=>{var o,r,n={path:path,nuxt:!0,exact:!0,to:t[e-1]?t[e-1].to+"/".concat(path):"/"+path},meta=(null===(o=this.$route.matched[e])||void 0===o||null===(r=o.meta)||void 0===r?void 0:r.breadCrumb)||path;return n.text="function"==typeof meta?meta.call(this,this.$route):decodeURI(meta).replace(/-/g," "),t.push(n),t},[]),e=[{text:"INICIO",nuxt:!0,to:"/"}].concat(t);for(var o in this.replaceSegments){var r=this.replaceSegments[o];Object.assign(e[o-1],"string"==typeof r?{text:r}:r)}return e}}},n=(o(671),o(1)),component=Object(n.a)(r,function(){var t=this,e=t._self._c;return e("v-col",{staticClass:"pa-2",style:t.breadcrumbsTopStyle,attrs:{cols:"12"}},[e("v-card",{staticClass:"premium-breadcrumbs-card",attrs:{flat:""}},[e("v-breadcrumbs",{staticClass:"text-uppercase caption premium-breadcrumbs-items",attrs:{items:t.items}})],1)],1)},[],!1,null,"49e2b151",null);e.default=component.exports},312:function(t,e,o){"use strict";o.r(e);var r=o(2),n=o(0),c=o(22),l=o(308),d=o(300),m=o(299);function f(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,r)}return o}function h(t){for(var e=1;e({item:{},products:[],waitingListDialog:!1}),fetch(){var t=this;return Object(n.a)(function*(){t.isCartPage&&t.sliderProducts.length>0||(yield t.fetchSliderProducts({fetchFromStore:t.isCartPage}))})()},computed:{items(){return this.isCartPage?this.sliderProducts:this.products},responsive(){return{xs:{visibleSlides:3},sm:{visibleSlides:2},md:{visibleSlides:3},lg:{visibleSlides:4},xl:{visibleSlides:4}}[this.$vuetify.breakpoint.name]},drawerState(){return this.$store.getters["cart/drawerProduct"].value},sliderProducts(){return this.$store.getters["commons/sliderProducts"]},isCartPage(){return this.routeIs("cart")||this.routeIs("price-list.cart")}},watch:{drawerState(t){t||this.clear()},items(t){this.$refs.slides&&(this.$refs.slides.pauseAutoplay(),this.$refs.slides.touchEnabled=!1,setTimeout(()=>{this.$refs.slides.touchEnabled=!0,this.$refs.slides.resumeAutoplay()},200))}},methods:{addToCart(t,e){this.item=new c.a(h(h({},e),{},{qty:t})),this.handleProductInput(t,this.item)},clear(t){var e,o,r=null!=t?t:this.item;this.waitingListDialog=!1,null===(e=this.$refs["product_".concat(r)])||void 0===e||null===(o=e[0])||void 0===o||o.clear(),this.item={}},fetchSliderProducts(t){var e=this;return Object(n.a)(function*(){var{fetchFromStore:o=!1}=t;if(o)return yield e.$store.dispatch("commons/fetchSliderProducts");try{var{data:{data:r}}=yield e.$axios.get("/products");e.products=r.map(t=>new c.a(t))}catch(t){}})()}}},y=(o(709),o(1)),component=Object(y.a)(v,function(){var t=this,e=t._self._c;return e("v-card",{attrs:{flat:"",color:"transparent"}},[e("vueper-slides",{ref:"slides",staticClass:"sliderProduct no-shadow",attrs:{gap:3,"slide-multiple":"","slide-ratio":1/4,"pause-on-hover":!0,"dragging-distance":100,arrows:!1,"visible-slides":t.responsive.visibleSlides,autoplay:!t.waitingListDialog,breakpoints:{800:{visibleSlides:2,slideMultiple:1}}}},t._l(t.items,function(o){return e("vueper-slide",{key:o.codigo,attrs:{duration:6e3},scopedSlots:t._u([{key:"content",fn:function(){return[e("product-list-item",{ref:"product_".concat(o.codigo),refInFor:!0,staticStyle:{"margin-bottom":"2px"},attrs:{product:o},on:{input:function(e){return t.addToCart(e,o)}}})]},proxy:!0}],null,!0)})}),1),t._v(" "),e("v-dialog",{attrs:{persistent:""},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},665:function(t,e,o){t.exports={}},669:function(t,e,o){t.exports={}},671:function(t,e,o){"use strict";o(665)},709:function(t,e,o){"use strict";o(669)},745:function(t,e,o){"use strict";(function(t){var r=o(0),n=(o(14),o(29),o(306)),c=o(312),l=o(36);e.a={components:{Breadcrumbs:n.default,ProductsSlider:c.default},mixins:[l.default],fetch(){var t=this;return Object(r.a)(function*(){"{}"===JSON.stringify(t.config)&&(yield t.$store.dispatch("commons/fetchWebConfig","blog"))})()},head:e=>{var o,r;return{title:"Blog FishBox Chile",titleTemplate:"%s",link:[{hid:"canonical",rel:"canonical",href:"".concat(((null===(o=e.$config)||void 0===o?void 0:o.appUrl)||t.env.CLIENT_URL||"https://fishboxchile.cl").replace(/\/$/,""),"/blog")}],meta:[{hid:"description",name:"description",content:"Recetas, tips y novedades sobre pescados y mariscos frescos en el blog de FishBox Chile."},{hid:"og:title",property:"og:title",content:"Blog FishBox Chile"},{hid:"og:description",property:"og:description",content:"Recetas, tips y novedades sobre pescados y mariscos frescos en el blog de FishBox Chile."},{hid:"og:type",property:"og:type",content:"website"}],script:[{hid:"ld-blog",type:"application/ld+json",innerHTML:JSON.stringify({"@context":"https://schema.org","@type":"Blog",name:"Blog FishBox Chile",description:"Recetas, tips y novedades sobre pescados y mariscos frescos en el blog de FishBox Chile.",url:"".concat(((null===(r=e.$config)||void 0===r?void 0:r.appUrl)||t.env.CLIENT_URL||"https://fishboxchile.cl").replace(/\/$/,""),"/blog"),publisher:{"@type":"Organization",name:"FishBox Chile",url:"https://fishboxchile.cl"}})}],__dangerouslyDisableSanitizersByTagID:{"ld-blog":["innerHTML"]}}},computed:{config(){return this.$store.getters["commons/blog"]},optimizedConfigImage(){var t;if(null===(t=this.config)||void 0===t||!t.image)return"";var e=/^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent);return this.requestResizedImage(this.config.image,{w:1600,q:90,fm:e?"jpg":"webp",fit:"max",sharp:12})},optimizedConfigImagePlaceholder(){var t;return null!==(t=this.config)&&void 0!==t&&t.image?this.requestResizedImage(this.config.image,{w:40,q:40,fm:"jpg",fit:"max",blur:3}):""}},mounted(){window.scrollTo(0,0)}}}).call(this,o(74))},800:function(t,e,o){t.exports={}},860:function(t,e,o){"use strict";o(800)}}]);