(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5302d3b1"],{"02a4":function(t,e,n){"use strict";n("c217")},"0607":function(t,e,n){"use strict";n.r(e),n.d(e,"ProductPage",(function(){return _}));var r=n("a74e"),a=n("42c2"),i=n("f5f2"),o=n("30c6"),s=n("a56c"),c=n("3d19"),u=n("b111"),p=n("f0ad"),h=n("02a5"),d=n("ce37"),l=(n("868d"),n("9cd3")),f=(n("33ef"),n("2aa5"),n("32f5"),n("d6de"),n("8d0f"),n("d86f"),n("e69c")),v=function(t){Object(p["a"])(n,t);var e=Object(h["a"])(n);function n(){return Object(i["a"])(this,n),e.apply(this,arguments)}return Object(o["a"])(n,[{key:"schemaJSON",get:function(){var t=this.page.product.description[this.app.language].replace(/(<([^>]+)>)/gi,"").slice(0,120),e={"@context":"https://schema.org/","@type":"Product",name:this.page.product.name,image:["".concat(this.app.settings.env.origin,"/api/images/").concat(this.page.product.thumbnail.path)],description:t,brand:{"@type":"Brand",name:this.app.settings.general.contact.pageName},offers:{"@type":"Offer",url:"".concat(this.app.settings.env.origin).concat(this.page.route.fullPath),priceCurrency:"PLN",price:this.price,availability:"https://schema.org/InStock"}};return e}}]),n}(f["a"]),y=function(){var t=this,e=t._self._c;return e("article",{staticClass:"product"},[e("div",{staticClass:"hero-wrapper"},[e("base-heading",{attrs:{tag:"h1",heading:"header",subheading:"subheader"}})],1),e("cms-multi-section",{attrs:{value:"content"}})],1)},m=[],b=n("2ed0"),g=n("8a38"),w=n("096e"),O={name:"Product",components:{CmsMultiSection:b["a"],BaseHeading:g["a"]},data:function(){return{quantity:1}},computed:{product:function(){return this.$app.page.product},value:function(){return this.$app.page.value},langs:function(){return this.$app.translator.get("products")}},methods:{setFieldFocus:function(t){this.isFocus=t}},prefetch:function(){var t=this;return Object(a["a"])(Object(r["a"])().mark((function e(){return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$app.translator.prefetch("products");case 2:case"end":return e.stop()}}),e)})))()},mixins:[w["a"]]},j=O,$=(n("02a4"),n("2be6")),k=Object($["a"])(j,y,m,!1,null,"156326d5",null),P=k.exports,_=function(t){Object(p["a"])(n,t);var e=Object(h["a"])(n);function n(t){var r,a=t.app,o=t.route,c=t.from;return Object(i["a"])(this,n),r=e.call(this,{app:a,route:o,from:c}),Object(d["a"])(Object(s["a"])(r),"component",P),Object(d["a"])(Object(s["a"])(r),"product",{}),r.seo=new v(a,{page:Object(s["a"])(r)}),r}return Object(o["a"])(n,[{key:"fetchData",value:function(){var t=Object(a["a"])(Object(r["a"])().mark((function t(){var e;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.app.getEntity("product"),t.next=3,e.fetchOne(this.alias);case 3:if(this.product=t.sent,this.product){t.next=6;break}return t.abrupt("return",this.app.vue.$redirect({path:"/404"}));case 6:return t.next=8,this.setPageData(this.product.page);case 8:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"header",get:function(){return{title:this.value.header?this.value.header:this.product.name}}},{key:"restore",value:function(){Object(c["a"])(Object(u["a"])(n.prototype),"restore",this).call(this);var t=this.app.getEntity("product");this.product=t.create(window.__PAGE__.product),this.value=window.__PAGE__.product.page.value}},{key:"store",value:function(){var t=Object(c["a"])(Object(u["a"])(n.prototype),"store",this).call(this);return delete t.value,t.product=this.product,t}},{key:"afterRedirect",value:function(){this.app._emit("product:details",this.product)}}]),n}(l["a"]);Object(d["a"])(_,"alias","product")},"096e":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={computed:{page:function(){return this.$app.page}},metaInfo:function(){return this.page.seo.getMeta()}}},"2ed0":function(t,e,n){"use strict";n("d86f");var r=function(){var t=this,e=t._self._c;return e("div",t._l(t.elements,(function(n,r){return e("lazy-hydrate",{key:t.$app.page.alias+r,attrs:{"when-idle":""}},[e(t.sections[n.alias],{tag:"component",attrs:{prefix:"".concat(t.value,".").concat(r,".value"),value:n.value}})],1)})),1)},a=[],i=n("cb6c"),o=new Map;function s(t){if("undefined"===typeof IntersectionObserver)return null;var e=JSON.stringify(t);if(o.has(e))return o.get(e);var n=new IntersectionObserver((function(t){t.forEach((function(t){var e=t.isIntersecting||t.intersectionRatio>0;e&&t.target.hydrate&&t.target.hydrate()}))}),t);return o.set(e,n),n}function c(){var t=function(){},e=new Promise((function(e){t=e}));return{hydrate:t,hydrationPromise:e}}var u="undefined"===typeof window;function p(t){return"function"===typeof t}function h(t){return p(t)?t().then((function(t){return t.default})):t}function d(t){var e=t.component,n=t.hydrationPromise;return u?e:function(){return n.then((function(){return h(e)}))}}function l(t,e){return Object.assign({mixins:[{beforeCreate:function(){this.cleanupHandlers=[];var e=c(),n=e.hydrate,r=e.hydrationPromise;this.Nonce=d({component:t,hydrationPromise:r}),this.hydrate=n,this.hydrationPromise=r},beforeDestroy:function(){this.cleanup()},mounted:function(){var t=this;if(this.$el.nodeType!==Node.COMMENT_NODE){if(!this.never){if(this.whenVisible){var e=!0!==this.whenVisible?this.whenVisible:void 0,n=s(e);if(!n)return void this.hydrate();this.$el.hydrate=this.hydrate;var r=function(){return n.unobserve(t.$el)};return this.cleanupHandlers.push(r),this.hydrationPromise.then(r),void n.observe(this.$el)}if(this.whenIdle){if(!("requestIdleCallback"in window)||!("requestAnimationFrame"in window))return void this.hydrate();var a=requestIdleCallback((function(){requestAnimationFrame(t.hydrate)}),{timeout:this.idleTimeout}),i=function(){return cancelIdleCallback(a)};this.cleanupHandlers.push(i),this.hydrationPromise.then(i)}if(this.interactionEvents&&this.interactionEvents.length){var o={capture:!0,once:!0,passive:!0};this.interactionEvents.forEach((function(e){t.$el.addEventListener(e,t.hydrate,o);var n=function(){t.$el.removeEventListener(e,t.hydrate,o)};t.cleanupHandlers.push(n)}))}}}else this.hydrate()},methods:{cleanup:function(){this.cleanupHandlers.forEach((function(t){return t()}))}},render:function(t){return t(this.Nonce,{attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}}]},e)}var f={render:function(){return this.$slots.default}},v=l(f,{props:{idleTimeout:{default:2e3,type:Number},never:{type:Boolean},onInteraction:{type:[Array,Boolean,String]},triggerHydration:{default:!1,type:Boolean},whenIdle:{type:Boolean},whenVisible:{type:[Boolean,Object]}},computed:{interactionEvents:function(){return this.onInteraction?!0===this.onInteraction?["focus"]:Array.isArray(this.onInteraction)?this.onInteraction:[this.onInteraction]:[]}},watch:{triggerHydration:{immediate:!0,handler:function(t){t&&this.hydrate()}}}}),y=v,m={props:{value:String,layout:Boolean},components:{LazyHydrate:y},computed:{elements:function(){var t;return t=this.layout?this.$app.layout.value:this.$app.page.value,Object(i["a"])(this.value,t,"none")},sections:function(){return this.$app.sections}}},b=m,g=n("2be6"),w=Object(g["a"])(b,r,a,!1,null,null,null);e["a"]=w.exports},4028:function(t,e,n){var r=n("5eaa");e=r(!1),e.push([t.i,"@keyframes in-btn-social-156326d5{0%{left:-110%;top:90%}50%{left:10%;top:-30%}100%{top:-10%;left:-10%}}@keyframes out-btn-social-156326d5{0%{top:-10%;left:-10%}50%{left:10%;top:-30%}100%{left:-110%;top:90%}}.hero-wrapper[data-v-156326d5]{padding:10rem 0 0 0}@media(min-width: 1200px){.hero-wrapper[data-v-156326d5]{padding:16rem 0 0 0}}",""]),t.exports=e},c217:function(t,e,n){var r=n("4028");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var a=n("0ed3").default;a("484d451f",r,!0,{sourceMap:!1,shadowMode:!1})}}]); //# sourceMappingURL=chunk-5302d3b1.9321f63a.js.map