(window.webpackJsonp=window.webpackJsonp||[]).push([[8,75,105,146,194],{189:function(e,t,r){"use strict";r.r(t);var o=r(815).a,n=(r(940),r(1)),component=Object(n.a)(o,function(){var e=this,t=e._self._c;return t("v-row",{staticClass:"premium-home",attrs:{justify:"center",align:"center"}},[t("client-only",[t("breadcrumbs",{staticClass:"premium-breadcrumbs"})],1),e._v(" "),t("v-col",{staticClass:"pa-1",attrs:{cols:"12"}},[t("div",{staticClass:"section-header"},[t("v-icon",{staticClass:"mb-4",attrs:{color:"#001732","x-large":""}},[e._v("mdi-information")]),e._v(" "),t("h1",{staticClass:"section-title"},[e._v("\n BLOG\n ")]),e._v(" "),t("div",{staticClass:"title-divider"})],1)]),e._v(" "),t("v-col",{staticClass:"py-0",attrs:{cols:"12"}},[t("v-card",{staticClass:"premium-hero mb-8",attrs:{elevation:"12"}},[t("v-row",{staticClass:"hero-content",attrs:{align:"center"}},[t("v-col",{staticClass:"text-content pa-8",attrs:{cols:"12"}},[t("h1",{staticClass:"hero-title mb-4"},[e._v("\n Descubre el Mundo del\n "),t("span",{staticClass:"accent-text"},[e._v("\n Pescado Fresco\n ")])]),e._v(" "),t("p",{staticClass:"hero-subtitle mb-6"},[e._v("\n Recetas, consejos y todo sobre pescados y mariscos de la más alta calidad\n ")])])],1)],1)],1),e._v(" "),t("v-col",{staticClass:"py-1",attrs:{cols:"12"}},[t("nuxt")],1),e._v(" "),t("v-col",{staticClass:"py-1",attrs:{cols:"12"}},[t("v-row",{staticClass:"pt-2 pb-6",attrs:{justify:"center"}},[t("v-col",{staticClass:"pb-0",attrs:{cols:"12"}},[t("div",{staticClass:"section-header mb-6"},[t("h2",{staticClass:"section-title"},[e._v("\n Productos Destacados\n ")]),e._v(" "),t("div",{staticClass:"title-divider"})]),e._v(" "),t("client-only",[t("products-slider")],1)],1),e._v(" "),t("v-col",{staticClass:"py-0 text-center",attrs:{cols:"12",md:"4",sm:"6"}},[t("v-btn",{staticClass:"premium-button",attrs:{color:"#001732",dark:"",large:"",to:{name:"products.index"}}},[t("v-icon",{attrs:{left:""}},[e._v("mdi-fish")]),e._v(" "),t("strong",[e._v("Ver Catálogo Completo")])],1)],1)],1)],1),e._v(" "),e.config.image||e.config.youtube_code?t("v-col",{staticClass:"py-1 mb-2",attrs:{cols:"12"}},[t("v-card",{staticClass:"premium-media-card",attrs:{elevation:"8"}},["video"===e.config.media&&e.config.youtube_code?t("v-card-text",{staticClass:"pa-0"},[t("div",{staticClass:"media-container"},[t("youtube",{staticClass:"media-content",attrs:{"video-id":e.config.youtube_code,width:"100%"}})],1)]):t("v-img",{staticClass:"media-content",attrs:{height:"300",width:"100%",loading:"lazy","aspect-ratio":"1.7",src:e.optimizedConfigImage,"lazy-src":e.optimizedConfigImagePlaceholder}})],1)],1):e._e()],1)},[],!1,null,"13446b4b",null);t.default=component.exports},359:function(e,t,r){"use strict";r.r(t);r(34),r(52),r(108),r(179),r(5),r(47);t.default={data:function(){return{seconds:1,pendingProducts:[]}},methods:{handleProductInput:function(e,t){if(e<=0)this.removeProductFromQueue(t);else{if(t.agotado)return this.askForNotification(t);if(t.presentacion)return this.$store.commit("cart/SET_DRAWER_PRODUCT",{value:!0,product:t});this.addProductToQueue(t),this.fireTimer(t)}},addProductToCart:function(e){this.$store.commit("cart/ADD",e),this.clearOrigin(e);var t=this.$store.getters["cart/total"],r=this.$store.getters["commons/minimumPurchase"],o=r.amount,n=r.notification||"Para compra minima agrege al carrito";t=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"}},watch:{"form.correo":function(){this.emailVerified=null,this.form.errors.has("correo")&&this.form.errors.clear("correo")}},methods:{handleEmailBlur:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark(function t(){var r,o,c,l;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((r=e.form.correo)&&Object(n.f)(r)){t.next=1;break}return e.emailVerified=!1,t.abrupt("return");case 1:return e.emailLoading=!0,t.prev=2,t.next=3,e.$axios.$get("/email/validate",{params:{email:r}});case 3:o=t.sent,c=o.valid,l=o.message,e.emailVerified=c,c?e.form.errors.clear("correo"):e.form.errors.set("correo",[l]),t.next=5;break;case 4:t.prev=4,t.catch(2),e.emailVerified=!1,e.form.errors.set("correo",["No pudimos verificar tu correo. Revisa que sea correcto e intenta de nuevo."]);case 5:return t.prev=5,e.emailLoading=!1,t.finish(5);case 6:case"end":return t.stop()}},t,null,[[2,4,5,6]])}))()},getFormValues:function(){var e;return{producto:null===(e=this.product)||void 0===e?void 0:e.codigo}},onFormSuccess:function(){this.$notify("Hemos recibido tus datos, te estaremos notificando cuando este producto se encuentre disponible."),this.clearForm()}}},l=r(1),component=Object(l.a)(c,function(){var e=this,t=e._self._c;return t("app-form",e._g({attrs:{form:e.form,title:e.title,action:e.action,method:e.method,readonly:e.readonly,disabled:e.form.busy||!0!==e.emailVerified,"save-btn-text":"Enviar"},on:{success:e.onFormSuccess}},e.$listeners),[t("v-col",{staticClass:"pa-0",attrs:{cols:"12"}},[t("v-card-title",{attrs:{dark:""}},[t("span",[e._v("\n Si deseas que te notifiquemos cuando "+e._s(e.product.nombre)+" este disponible llena el formulario.\n ")])])],1),e._v(" "),e.form.errors.has("producto")?t("v-col",{attrs:{cols:"12"}},[t("v-alert",{attrs:{type:"error",dismissible:""}},[e._v("\n "+e._s(e.form.errors.get("producto"))+"\n ")])],1):e._e(),e._v(" "),t("v-col",{attrs:{cols:"12",md:"4",sm:"6"}},[t("v-text-field",{attrs:{dense:"",outlined:"",label:"Nombre",rules:[e.rules.name],"prepend-inner-icon":"fa-user",error:e.form.errors.has("nombre"),"error-messages":e.form.errors.get("nombre")},on:{keypress:function(t){return e.restrictNumber(t)}},model:{value:e.form.nombre,callback:function(t){e.$set(e.form,"nombre",t)},expression:"form.nombre"}})],1),e._v(" "),t("v-col",{attrs:{cols:"12",md:"4",sm:"6"}},[t("v-text-field",{staticClass:"email-input",attrs:{dense:"",outlined:"",autofocus:"",type:"email",label:"Correo",rules:e.rules.email,loading:!!e.emailLoading&&"primary","prepend-inner-icon":"fa-envelope",error:e.form.errors.has("correo"),"error-messages":e.form.errors.get("correo")},on:{blur:e.handleEmailBlur},model:{value:e.form.correo,callback:function(t){e.$set(e.form,"correo",t)},expression:"form.correo"}})],1),e._v(" "),t("v-col",{attrs:{cols:"12",md:"4",sm:"6"}},[t("v-text-field",{directives:[{name:"mask",rawName:"v-mask",value:"#########",expression:"'#########'"}],attrs:{dense:"",outlined:"",label:"Teléfono",placeholder:"Teléfono",rules:e.rules.phone,"prepend-inner-icon":"fa-mobile",error:e.form.errors.has("telefono"),"error-messages":e.form.errors.get("telefono")},model:{value:e.form.telefono,callback:function(t){e.$set(e.form,"telefono",t)},expression:"form.telefono"}})],1)],1)},[],!1,null,null,null);t.default=component.exports},370:function(e,t,r){"use strict";r.r(t);r(34),r(9),r(5),r(21),r(51);var o={props:{replaceSegments:{type:Object,default:function(){return{}}}},computed:{headerOffset:function(){return this.$store.getters["commons/headerOffset"]||0},breadcrumbsTopStyle:function(){return this.headerOffset?{paddingTop:"".concat(this.headerOffset+8,"px")}:{paddingTop:"24px"}},items:function(){var e=this,t=this.$route.path.split("/").filter(function(e){return Boolean(e)}).reduce(function(t,path,r){var o,n,c={path:path,nuxt:!0,exact:!0,to:t[r-1]?t[r-1].to+"/".concat(path):"/"+path},meta=(null===(o=e.$route.matched[r])||void 0===o||null===(n=o.meta)||void 0===n?void 0:n.breadCrumb)||path;return c.text="function"==typeof meta?meta.call(e,e.$route):decodeURI(meta).replace(/-/g," "),t.push(c),t},[]),r=[{text:"INICIO",nuxt:!0,to:"/"}].concat(t);for(var o in this.replaceSegments){var n=this.replaceSegments[o];Object.assign(r[o-1],"string"==typeof n?{text:n}:n)}return r}}},n=(r(774),r(1)),component=Object(n.a)(o,function(){var e=this,t=e._self._c;return t("v-col",{staticClass:"pa-2",style:e.breadcrumbsTopStyle,attrs:{cols:"12"}},[t("v-card",{staticClass:"premium-breadcrumbs-card",attrs:{flat:""}},[t("v-breadcrumbs",{staticClass:"text-uppercase caption premium-breadcrumbs-items",attrs:{items:e.items}})],1)],1)},[],!1,null,"49e2b151",null);t.default=component.exports},378:function(e,t,r){"use strict";r.r(t);var o=r(2),n=r(0),c=(r(39),r(7),r(9),r(17),r(5),r(14),r(15),r(8),r(11),r(47),r(20),r(38)),l=r(371),d=r(360),f=r(359);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function h(e){for(var t=1;t0)){t.next=1;break}return t.abrupt("return");case 1:return t.next=2,e.fetchSliderProducts({fetchFromStore:e.isCartPage});case 2:t.next=4;break;case 3:t.prev=3,t.catch(0);case 4:case"end":return t.stop()}},t,null,[[0,3]])}))()},computed:{items:function(){return this.isCartPage?this.sliderProducts:this.products},responsive:function(){return{xs:{visibleSlides:3},sm:{visibleSlides:2},md:{visibleSlides:3},lg:{visibleSlides:4},xl:{visibleSlides:4}}[this.$vuetify.breakpoint.name]},drawerState:function(){return this.$store.getters["cart/drawerProduct"].value},sliderProducts:function(){return this.$store.getters["commons/sliderProducts"]},isCartPage:function(){return this.routeIs("cart")||this.routeIs("price-list.cart")}},watch:{drawerState:function(e){e||this.clear()},items:function(e){var t=this;this.$refs.slides&&(this.$refs.slides.pauseAutoplay(),this.$refs.slides.touchEnabled=!1,setTimeout(function(){t.$refs.slides.touchEnabled=!0,t.$refs.slides.resumeAutoplay()},200))}},methods:{addToCart:function(e,t){this.item=new c.a(h(h({},t),{},{qty:e})),this.handleProductInput(e,this.item)},clear:function(e){var t,r,o=null!=e?e:this.item;this.waitingListDialog=!1,null===(t=this.$refs["product_".concat(o)])||void 0===t||null===(r=t[0])||void 0===r||r.clear(),this.item={}},fetchSliderProducts:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark(function r(){var o,n,l;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(o=e.fetchFromStore,!(void 0!==o&&o)){r.next=2;break}return r.next=1,t.$store.dispatch("commons/fetchSliderProducts");case 1:return r.abrupt("return",r.sent);case 2:return r.prev=2,r.next=3,t.$axios.get("/products");case 3:n=r.sent,l=n.data.data,t.products=l.map(function(e){return new c.a(e)}),r.next=5;break;case 4:r.prev=4,r.catch(2);case 5:case"end":return r.stop()}},r,null,[[2,4]])}))()}}},x=(r(786),r(1)),component=Object(x.a)(v,function(){var e=this,t=e._self._c;return t("v-card",{attrs:{flat:"",color:"transparent"}},[t("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":e.responsive.visibleSlides,autoplay:!e.waitingListDialog,breakpoints:{800:{visibleSlides:2,slideMultiple:1}}}},e._l(e.items,function(r){return t("vueper-slide",{key:r.codigo,attrs:{duration:6e3},scopedSlots:e._u([{key:"content",fn:function(){return[t("product-list-item",{ref:"product_".concat(r.codigo),refInFor:!0,staticStyle:{"margin-bottom":"2px"},attrs:{product:r},on:{input:function(t){return e.addToCart(t,r)}}})]},proxy:!0}],null,!0)})}),1),e._v(" "),t("v-dialog",{attrs:{persistent:""},model:{value:e.waitingListDialog,callback:function(t){e.waitingListDialog=t},expression:"waitingListDialog"}},[t("waiting-list-form",{attrs:{product:e.item},on:{cancel:e.clear,success:e.clear}})],1)],1)},[],!1,null,null,null);t.default=component.exports},731:function(e,t,r){e.exports={}},771:function(e,t,r){e.exports={}},774:function(e,t,r){"use strict";r(731)},786:function(e,t,r){"use strict";r(771)},815:function(e,t,r){"use strict";(function(e){var o=r(0),n=(r(21),r(51),r(20),r(370)),c=r(378),l=r(60);t.a={components:{Breadcrumbs:n.default,ProductsSlider:c.default},mixins:[l.default],fetch:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("{}"!==JSON.stringify(e.config)){t.next=1;break}return t.next=1,e.$store.dispatch("commons/fetchWebConfig","blog");case 1:case"end":return t.stop()}},t)}))()},head:function(t){var r,o;return{title:"Blog FishBox Chile",titleTemplate:"%s",link:[{hid:"canonical",rel:"canonical",href:"".concat(((null===(r=t.$config)||void 0===r?void 0:r.appUrl)||e.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===(o=t.$config)||void 0===o?void 0:o.appUrl)||e.env.CLIENT_URL||"https://fishboxchile.cl").replace(/\/$/,""),"/blog"),publisher:{"@type":"Organization",name:"FishBox Chile",url:"https://fishboxchile.cl"}})}],__dangerouslyDisableSanitizersByTagID:{"ld-blog":["innerHTML"]}}},computed:{config:function(){return this.$store.getters["commons/blog"]},optimizedConfigImage:function(){var e;if(null===(e=this.config)||void 0===e||!e.image)return"";var t=/^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent);return this.requestResizedImage(this.config.image,{w:1600,q:90,fm:t?"jpg":"webp",fit:"max",sharp:12})},optimizedConfigImagePlaceholder:function(){var e;return null!==(e=this.config)&&void 0!==e&&e.image?this.requestResizedImage(this.config.image,{w:40,q:40,fm:"jpg",fit:"max",blur:3}):""}},mounted:function(){window.scrollTo(0,0)}}}).call(this,r(109))},874:function(e,t,r){e.exports={}},940:function(e,t,r){"use strict";r(874)}}]);