(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0631d478"],{"017e":function(t,e,a){"use strict";a("aff6")},"04c0":function(t,e,a){"use strict";a("5fd8")},"107e":function(t,e,a){"use strict";a("58df")},1491:function(t,e,a){"use strict";a("fb67")},2680:function(t,e,a){"use strict";a("369c")},"2ed0":function(t,e,a){"use strict";a("d86f");var i=function(){var t=this,e=t._self._c;return e("div",t._l(t.elements,(function(a,i){return e("lazy-hydrate",{key:t.$app.page.alias+i,attrs:{"when-visible":""}},[e(t.sections[a.alias],{tag:"component",attrs:{prefix:"".concat(t.value,".").concat(i,".value"),value:a.value}})],1)})),1)},r=[],n=a("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 a=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,a),a}function d(){var t=function(){},e=new Promise((function(e){t=e}));return{hydrate:t,hydrationPromise:e}}var c="undefined"===typeof window;function p(t){return"function"===typeof t}function l(t){return p(t)?t().then((function(t){return t.default})):t}function u(t){var e=t.component,a=t.hydrationPromise;return c?e:function(){return a.then((function(){return l(e)}))}}function m(t,e){return Object.assign({mixins:[{beforeCreate:function(){this.cleanupHandlers=[];var e=d(),a=e.hydrate,i=e.hydrationPromise;this.Nonce=u({component:t,hydrationPromise:i}),this.hydrate=a,this.hydrationPromise=i},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,a=s(e);if(!a)return void this.hydrate();this.$el.hydrate=this.hydrate;var i=function(){return a.unobserve(t.$el)};return this.cleanupHandlers.push(i),this.hydrationPromise.then(i),void a.observe(this.$el)}if(this.whenIdle){if(!("requestIdleCallback"in window)||!("requestAnimationFrame"in window))return void this.hydrate();var r=requestIdleCallback((function(){requestAnimationFrame(t.hydrate)}),{timeout:this.idleTimeout}),n=function(){return cancelIdleCallback(r)};this.cleanupHandlers.push(n),this.hydrationPromise.then(n)}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 a=function(){t.$el.removeEventListener(e,t.hydrate,o)};t.cleanupHandlers.push(a)}))}}}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}},h=m(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()}}}}),v=h,g={props:{value:String,layout:Boolean},components:{LazyHydrate:v},computed:{elements:function(){var t;return t=this.layout?this.$app.layout.value:this.$app.page.value,Object(n["a"])(this.value,t,"none")},sections:function(){return this.$app.sections}}},b=g,w=a("2be6"),x=Object(w["a"])(b,i,r,!1,null,null,null);e["a"]=x.exports},3591:function(t,e,a){var i=a("844d");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("0ed3").default;r("608fdf68",i,!0,{sourceMap:!1,shadowMode:!1})},"369c":function(t,e,a){var i=a("9a94");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("0ed3").default;r("0c490293",i,!0,{sourceMap:!1,shadowMode:!1})},"58df":function(t,e,a){var i=a("f9f0");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("0ed3").default;r("747545f8",i,!0,{sourceMap:!1,shadowMode:!1})},"5fd8":function(t,e,a){var i=a("9f7f");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("0ed3").default;r("1f54fb78",i,!0,{sourceMap:!1,shadowMode:!1})},"844d":function(t,e,a){var i=a("5eaa");e=i(!1),e.push([t.i,"@keyframes in-btn-social{0%{left:-110%;top:90%}50%{left:10%;top:-30%}100%{top:-10%;left:-10%}}@keyframes out-btn-social{0%{top:-10%;left:-10%}50%{left:10%;top:-30%}100%{left:-110%;top:90%}}.slider-pagination{z-index:1}@media(min-width: 576px){.slider-pagination{margin-bottom:-10px}}.slider-pagination .pagination-list{display:flex;list-style:none;margin:0;padding:0}.slider-pagination .pagination-item{background-color:rgba(58,55,56,.3);width:10px;height:5px;margin-right:1rem;cursor:pointer;transition:all .3s linear}.slider-pagination .pagination-item:last-child{margin-right:0}.slider-pagination .pagination-item.active{width:30px;background-color:#000}",""]),t.exports=e},"9a94":function(t,e,a){var i=a("5eaa");e=i(!1),e.push([t.i,"@keyframes in-btn-social-74f1e006{0%{left:-110%;top:90%}50%{left:10%;top:-30%}100%{top:-10%;left:-10%}}@keyframes out-btn-social-74f1e006{0%{top:-10%;left:-10%}50%{left:10%;top:-30%}100%{left:-110%;top:90%}}.slider.isModal[data-v-74f1e006]{max-width:400px;justify-content:center;flex-wrap:wrap}.slider.isModal .slider-button-wrapper[data-v-74f1e006]{order:1;margin:2rem 0}@media(min-width: 768px){.slider.isModal[data-v-74f1e006]{max-width:none;justify-content:baseline;flex-wrap:nowrap}.slider.isModal .slider-button-wrapper[data-v-74f1e006]{order:initial;margin:0}}.slider-positional-container[data-v-74f1e006]{height:100%;display:flex}.slider-positional-container .product-slider-wrapper[data-v-74f1e006]{display:flex;flex-direction:column;justify-content:center;width:inherit;align-self:center;margin-bottom:25px}@media(min-width: 576px){.slider-positional-container .product-slider-wrapper[data-v-74f1e006]{margin-bottom:25px}}.slider-positional-container .product-slider-wrapper .capacity[data-v-74f1e006]{position:absolute;top:20px;right:30px;z-index:2}.slider-positional-container .product-slider-wrapper .capacity-icon[data-v-74f1e006]{width:50px;height:50px}.slider-positional-container .product-slider-wrapper .capacity[data-v-74f1e006] .capacity-value{position:relative;top:-40px;left:0;text-align:center;font-weight:500}.slider-positional-container .product-slider-wrapper .slider[data-v-74f1e006]{height:100%;display:flex;align-items:center}.slider-positional-container .product-slider-wrapper .slider-button-wrapper[data-v-74f1e006]{z-index:1}.slider-positional-container .product-slider-wrapper .slider-button-wrapper .slide-left-btn[data-v-74f1e006]{margin-right:15px}.slider-positional-container .product-slider-wrapper .slider-button-wrapper .slide-right-btn[data-v-74f1e006]{margin-left:15px}.slider-positional-container .product-slider-wrapper .slider-button-wrapper .transparent-btn[data-v-74f1e006]{background:rgba(0,0,0,0);border:none;cursor:pointer;transition:.5s}.slider-positional-container .product-slider-wrapper .slider-button-wrapper .transparent-btn[data-v-74f1e006]:hover{transition:.5s;transform:scale(1.2)}.slider-positional-container .product-slider-wrapper .slider-button-wrapper .transparent-btn .slider-btn-icon[data-v-74f1e006]{width:1em}.slider-positional-container .product-slider-wrapper .slider-image-wrapper[data-v-74f1e006]{width:-moz-fit-content;width:fit-content;height:inherit;margin:auto;display:flex;align-items:center;justify-content:center;overflow:hidden}@media(min-width: 1200px){.slider-positional-container .product-slider-wrapper .slider-image-wrapper[data-v-74f1e006]{cursor:pointer}}.slider-positional-container .product-slider-wrapper .product-slider-pagination[data-v-74f1e006]{align-self:center;margin-top:2rem}",""]),t.exports=e},"9f7f":function(t,e,a){var i=a("5eaa");e=i(!1),e.push([t.i,'@keyframes in-btn-social-846d249a{0%{left:-110%;top:90%}50%{left:10%;top:-30%}100%{top:-10%;left:-10%}}@keyframes out-btn-social-846d249a{0%{top:-10%;left:-10%}50%{left:10%;top:-30%}100%{left:-110%;top:90%}}.product-review-form-wrapper[data-v-846d249a]{height:auto;display:flex;flex-direction:column;overflow:hidden}@media(min-width: 1200px){.product-review-form-wrapper[data-v-846d249a]{flex-direction:row}}.product-review-form-wrapper .product-review-form-image-wrapper[data-v-846d249a]{display:flex;flex-direction:column;align-items:center}@media(min-width: 1200px){.product-review-form-wrapper .product-review-form-image-wrapper[data-v-846d249a]{padding-right:1.5em}}.product-review-form-wrapper .product-review-form-image-wrapper .image-header[data-v-846d249a]{text-transform:uppercase;font-size:18px;font-weight:500;font-family:"Barlow",sans-serif;padding-bottom:1em}.product-review-form-wrapper .product-review-form-image-wrapper .product-review-form-image[data-v-846d249a]{margin-top:1em}.product-review-form-wrapper .product-review-form[data-v-846d249a]{display:flex;flex-direction:column;width:100%}.product-review-form-wrapper .product-review-form[data-v-846d249a] .field-label label{color:#3a3738;font-size:14px}.product-review-form-wrapper .product-review-form[data-v-846d249a] .field-wrapper .error-wrapper{height:0}.product-review-form-wrapper .product-review-form[data-v-846d249a] .product-review-form-textarea{padding-bottom:0}.product-review-form-wrapper .product-review-form[data-v-846d249a] .product-review-form-textarea .textarea{resize:none}.product-review-form-wrapper .product-review-form .product-review-form-button[data-v-846d249a]{align-self:flex-end;justify-content:center;margin:1em 0}.product-review-form-wrapper .product-review-form .product-review-form-button[data-v-846d249a] button{margin:0}@media(min-width: 992px){.product-review-form-wrapper .product-review-form .product-review-form-button[data-v-846d249a] button{width:270px}}.product-review-form-wrapper .product-review-form .product-review-form-top[data-v-846d249a]{display:flex;flex-direction:column}@media(min-width: 576px){.product-review-form-wrapper .product-review-form .product-review-form-top[data-v-846d249a]{flex-direction:row}}@media(min-width: 1200px){.product-review-form-wrapper .product-review-form .product-review-form-top[data-v-846d249a]{flex-direction:row}}.counter[data-v-846d249a]{text-align:right}.counter-red[data-v-846d249a]{color:red}',""]),t.exports=e},aff6:function(t,e,a){var i=a("dc98");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("0ed3").default;r("26992f15",i,!0,{sourceMap:!1,shadowMode:!1})},dc98:function(t,e,a){var i=a("5eaa");e=i(!1),e.push([t.i,'@keyframes in-btn-social-3d4dd8ca{0%{left:-110%;top:90%}50%{left:10%;top:-30%}100%{top:-10%;left:-10%}}@keyframes out-btn-social-3d4dd8ca{0%{top:-10%;left:-10%}50%{left:10%;top:-30%}100%{left:-110%;top:90%}}.opinions-top[data-v-3d4dd8ca]{display:flex;flex-direction:column;align-items:flex-start}.opinions-top .btn[data-v-3d4dd8ca]{justify-content:center;margin:0 0 4rem 0}@media(min-width: 768px){.opinions-top[data-v-3d4dd8ca]{flex-direction:row;justify-content:space-between;align-items:baseline}}.opinions-wrapper[data-v-3d4dd8ca]{display:flex;flex-wrap:wrap;-moz-column-gap:10px;column-gap:10px;align-items:center;margin-bottom:40px}@media(min-width: 992px){.opinions-wrapper[data-v-3d4dd8ca]{flex-direction:row}}.opinions-wrapper .opinion[data-v-3d4dd8ca]{width:100%;padding:4rem 3rem;background:#fff;box-shadow:0 3px 6px rgba(0,0,0,.16);margin-bottom:2rem}@media(min-width: 992px){.opinions-wrapper .opinion[data-v-3d4dd8ca]{width:calc((100% - 3rem)/2);padding:2rem 1.5rem;margin-bottom:1rem;min-height:27rem}}@media(min-width: 1600px){.opinions-wrapper .opinion[data-v-3d4dd8ca]{width:calc((100% - 6rem)/3);height:23rem}}.opinions-wrapper .opinion-top[data-v-3d4dd8ca]{display:flex;justify-content:space-between;align-items:center;width:100%;position:relative;z-index:1}.opinions-wrapper .opinion-top[data-v-3d4dd8ca]::before{content:"";position:absolute;top:50%;left:0;width:100%;border-bottom:.1rem solid #e5e5e5;z-index:0}.opinions-wrapper .opinion[data-v-3d4dd8ca] .opinion-author,.opinions-wrapper .opinion[data-v-3d4dd8ca] .opinion-rating{z-index:1;position:relative;background:#fff;padding-right:1rem}.opinions-wrapper .opinion-rating[data-v-3d4dd8ca]{display:flex;align-items:center;padding:0 0 0 1rem}.opinions-wrapper .opinion-rating .star[data-v-3d4dd8ca]{width:1.5rem;height:1.5rem;fill:#ebca6b}.opinions-wrapper .opinion-rating .star.disabled-star[data-v-3d4dd8ca]{fill:#e5e5e5}.opinions-wrapper .opinion-description[data-v-3d4dd8ca]{font-style:italic;overflow:hidden}.load-more-button-wrapper[data-v-3d4dd8ca]{display:flex;width:100%;justify-content:center}@media(min-width: 1200px){.load-more-button-wrapper[data-v-3d4dd8ca]{display:flex;justify-content:center}}.load-more-button-wrapper .load-more-button[data-v-3d4dd8ca]{justify-content:center}.no-opinion-wrapper[data-v-3d4dd8ca]{margin-bottom:4rem}@media(min-width: 992px){.no-opinion-wrapper[data-v-3d4dd8ca]{margin-bottom:8rem}}',""]),t.exports=e},e343:function(t,e,a){"use strict";a("3591")},f381:function(t,e,a){var i=a("5eaa");e=i(!1),e.push([t.i,'@keyframes in-btn-social-12582c95{0%{left:-110%;top:90%}50%{left:10%;top:-30%}100%{top:-10%;left:-10%}}@keyframes out-btn-social-12582c95{0%{top:-10%;left:-10%}50%{left:10%;top:-30%}100%{left:-110%;top:90%}}.row[data-v-12582c95]{display:flex;flex:1 0 100%;flex-wrap:wrap;margin-top:8rem;margin-right:-1.5rem;margin-left:-1.5rem}.opinion[data-v-12582c95]{display:flex;flex-direction:column;margin-top:2.5rem}@media(min-width: 1200px){.opinion[data-v-12582c95]{margin-bottom:2rem;flex-grow:1;justify-content:end}}.opinion-rating[data-v-12582c95]{display:flex;align-items:center;margin-bottom:-0.5rem}.opinion[data-v-12582c95] .opinion-text{font-size:1.2rem;margin-top:3px;line-height:1rem}.opinion .star[data-v-12582c95]{width:1.5rem;height:1.5rem;fill:#ebca6b}.opinion .star[data-v-12582c95]:first-of-type{margin-left:.5rem}.opinion .star.disabled-star[data-v-12582c95]{fill:#e5e5e5}.product[data-v-12582c95] .product-name{position:relative;padding-bottom:1rem}.product[data-v-12582c95] .product-name::after{content:"";position:absolute;left:0;bottom:.5rem;height:.1rem;width:60%;background:#e5e5e5}@media(min-width: 992px){.product[data-v-12582c95] .product-name::after{bottom:-1rem}}.product-slider[data-v-12582c95]{width:100%}.product-description[data-v-12582c95]{padding:3rem;background-color:#fff;box-shadow:0 3px 6px rgba(0,0,0,.16);overflow:hidden;height:100%;display:flex;flex-direction:column}@media(min-width: 1200px){.product-description-text[data-v-12582c95]{padding-right:11rem}}.product-description[data-v-12582c95] :first-child{margin-top:0}.product-description-header[data-v-12582c95]{display:flex}.product-description-header .capacity-badge-wrapper[data-v-12582c95]{right:21px;top:-17px;position:absolute}@media(min-width: 1200px){.product-description-header .capacity-badge-wrapper[data-v-12582c95]{right:10px;top:50px}}.product-description-header .capacity-badge-wrapper[data-v-12582c95] .badge{padding:0 4rem 0 2.5rem}.product .field-quantity[data-v-12582c95]{position:absolute;bottom:10rem}@media(min-width: 1200px){.product .field-quantity[data-v-12582c95]{margin-left:2rem;position:initial;bottom:auto;margin-bottom:.5rem;margin-right:auto}}.product[data-v-12582c95] .field-quantity-select,.product[data-v-12582c95] .field-quantity-input{height:5rem;border:.1rem solid #e5e5e5;-moz-text-align-last:center;text-align-last:center}.product-bottom[data-v-12582c95]{display:flex;flex-direction:column-reverse}@media(min-width: 1200px){.product-bottom[data-v-12582c95]{margin-bottom:0;flex-direction:row;align-items:flex-end}.product-bottom .btn-product[data-v-12582c95]{flex-grow:.3}}.product .product-price-wrapper[data-v-12582c95]{display:flex;align-items:flex-end;flex-direction:column;margin-bottom:2rem}@media(min-width: 1200px){.product .product-price-wrapper[data-v-12582c95]{margin-bottom:0}}.product[data-v-12582c95] .product-discount{position:relative;color:#fff;z-index:1;margin-top:3rem}@media(min-width: 1200px){.product[data-v-12582c95] .product-discount{margin-bottom:2rem;margin-top:0}}.product[data-v-12582c95] .product-discount::before{content:"";position:absolute;background:#b79f5b;top:50%;right:-5rem;transform:skew(13deg) translateY(-50%);z-index:-1;width:14.5rem;height:3.4rem}@media(min-width: 1200px){.product[data-v-12582c95] .product-discount::before{height:4.4rem;left:-3rem;width:16rem;right:auto}}.product[data-v-12582c95] .product-discount::after{content:"";position:absolute;top:50%;left:50%;width:8rem;height:.1rem;background:#fff;transform:translate(-50%, -50%) rotate(-15deg)}.product[data-v-12582c95] .product-price{flex-grow:4;font-size:5rem;text-align:right;margin-top:2rem}@media(min-width: 1200px){.product[data-v-12582c95] .product-price{margin-top:0;margin-bottom:1.5rem}}.product .add-to-card-btn[data-v-12582c95]{margin:auto;width:100%;margin-bottom:4rem}@media(min-width: 992px){.product .add-to-card-btn[data-v-12582c95]{width:236px}}',""]),t.exports=e},f7ba:function(t,e,a){"use strict";a.r(e),a.d(e,"ProductPage",(function(){return vt}));var i=a("a74e"),r=a("42c2"),n=a("f5f2"),o=a("30c6"),s=a("a56c"),d=a("3d19"),c=a("b111"),p=a("f0ad"),l=a("02a5"),u=a("ce37"),m=(a("868d"),a("9cd3")),f=(a("cfce"),a("841a"),a("ef1f"),a("d86f"),a("11fd"),a("33ef"),a("2aa5"),a("32f5"),a("d6de"),a("8d0f"),a("e69c")),h=function(t){Object(p["a"])(a,t);var e=Object(l["a"])(a);function a(){return Object(n["a"])(this,a),e.apply(this,arguments)}return Object(o["a"])(a,[{key:"reviewList",get:function(){return this.page.product.reviews.list.map((function(t){return{"@type":"Review",reviewRating:{"@type":"Rating",ratingValue:null===t||void 0===t?void 0:t.rate,bestRating:"5"},author:{"@type":"Person",name:null===t||void 0===t?void 0:t.author},reviewBody:null===t||void 0===t?void 0:t.content}}))}},{key:"openGraph",get:function(){var t=Object(d["a"])(Object(c["a"])(a.prototype),"openGraph",this),e=t.find((function(t){return"og:image"===t.property}));return e.content="".concat(this.app.settings.env.origin,"/api/images/").concat(this.page.product.thumbnail.path),t}},{key:"price",get:function(){return(this.page.product.price/100).toFixed(2)}},{key:"schemaJSON",get:function(){var t=this.page.value.description.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},review:this.reviewList,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 this.page.product.numberOfReviews&&(e.aggregateRating={"@type":"AggregateRating",ratingValue:this.page.product.avgRate,bestRating:"5",reviewCount:this.page.product.numberOfReviews}),e}}]),a}(f["a"]),v=function(){var t=this,e=t._self._c;return e("article",{staticClass:"product"},[e("base-container",[e("base-row",[e("base-col",{attrs:{lg:"5"}},[e("product-slider",{staticClass:"product-slider",attrs:{images:t.value.gallery}})],1),e("base-col",{attrs:{col:"12",lg:"7"}},[e("div",{staticClass:"product-description"},[e("div",{staticClass:"product-description-header"},[e("base-font",{staticClass:"product-name",attrs:{tag:"h1",variant:"medium-header",weight:"regular"}},[t._v(" "+t._s(t.product.name)+" ")])],1),e("div",{staticClass:"product-description-text",domProps:{innerHTML:t._s(t.value.description)}}),t.product.numberOfReviews?e("div",{staticClass:"opinion"},[e("div",{staticClass:"opinion-rating"},[e("base-font",{staticClass:"opinion-value",attrs:{marginReset:"",weight:"medium"}},[t._v(t._s(t.avgRounded)+"/5")]),t._l(5,(function(a){return e("base-svg",{key:a,staticClass:"star",class:{"disabled-star":a>Math.max(t.avgRounded)},attrs:{name:"star"}})}))],2),e("base-font",{staticClass:"opinion-text",attrs:{variant:"paragraph",weight:"medium"}},[t._v(t._s(t.baseOn))])],1):t._e(),e("div",{staticClass:"product-bottom"},[e("product-button",{on:{click:t.addToCart}},[t._v(" "+t._s(t.langs.add_to_cart_extended)+" ")]),e("field-quantity",{on:{"is-focused":t.setFieldFocus},model:{value:t.quantity,callback:function(e){t.quantity=e},expression:"quantity"}}),e("div",{staticClass:"product-price-wrapper"},[t.product.isDiscount?e("base-font",{staticClass:"product-discount",attrs:{variant:"price"}},[e("base-price",{attrs:{price:t.product.priceBeforeDiscount}})],1):t._e(),e("base-font",{staticClass:"product-price",attrs:{variant:"price"}},[e("base-price",{attrs:{price:t.product.price}})],1)],1)],1)])])],1),e("cms-multi-section",{staticClass:"row",attrs:{value:"content"}}),e("product-opinions",{attrs:{value:t.value}}),e("product-button",{staticClass:"add-to-card-btn",on:{click:function(e){return t.product.addToCart(t.quantity)}}},[t._v(" "+t._s(t.langs.add_to_cart_extended)+" ")]),t.product.recommendedProducts?e("div",[e("base-font",{attrs:{variant:"section-header",tag:"h2"}},[t._v(" "+t._s(t.value.recommendedProductsHeader||"Rekomendowane produkty")+" ")]),e("slim-products-list",{attrs:{products:t.product.recommendedProducts}})],1):t._e()],1)],1)},g=[],b=a("2ed0"),w=a("604b"),x=a("af43"),y=function(){var t=this,e=t._self._c;return e("div",{staticClass:"slider-positional-container"},[e("div",{staticClass:"product-slider-wrapper"},[t.product.capacity?e("div",{staticClass:"capacity"},[e("base-svg",{staticClass:"capacity-icon",attrs:{name:"capacity_background"}}),e("base-font",{staticClass:"capacity-value"},[t._v(t._s(t.capacity))])],1):t._e(),e("div",{staticClass:"slider",class:{isModal:t.isModal}},[e("div",{staticClass:"slider-button-wrapper"},[e("div",{staticClass:"slide-left-btn transparent-btn",on:{click:t.prevImage}},[e("base-svg",{staticClass:"slider-btn-icon btn-left",attrs:{name:"arrow_left"}})],1)]),e("div",{ref:"imageWrapper",staticClass:"slider-image-wrapper",on:{click:t.toggle}},[e("cms-image",{staticClass:"slide-product-img",attrs:{src:t.activeImageSrc,base:{height:250},md:{height:470},lg:{height:300},xl:{height:350},xxl:{height:380}}})],1),e("div",{staticClass:"slider-button-wrapper"},[e("div",{staticClass:"slide-right-btn transparent-btn",on:{click:t.nextImage}},[e("base-svg",{staticClass:"slider-btn-icon btn-left",attrs:{name:"arrow_right"}})],1)])]),e("product-slider-pagination",{staticClass:"product-slider-pagination",attrs:{activeImageIndex:t.activeImageIndex,length:t.images.length},on:{activeIndexChanged:t.goTo}})],1),t.isModalOpen?e("product-slider-modal",{attrs:{images:t.images,activeImageIndex:t.activeImageIndex},on:{closeModal:t.toggle}},[e("button-close",{on:{close:t.toggle}})],1):t._e()],1)},_=[],O=a("126d"),C=function(){var t=this,e=t._self._c;return e("nav",{staticClass:"slider-pagination"},[e("ul",{staticClass:"pagination-list"},t._l(t.length,(function(a,i){return e("li",{key:i,staticClass:"pagination-item",class:{active:i===t.activeImageIndex},on:{click:function(e){return e.stopPropagation(),t.$emit("activeIndexChanged",i)}}})})),0)])},j=[],k=(a("e94e"),{props:{length:Number,activeImageIndex:Number}}),I=k,M=(a("e343"),a("2be6")),R=Object(M["a"])(I,C,j,!1,null,null,null),P=R.exports,$=function(){var t=this,e=t._self._c;return e("div",{ref:"modal",staticClass:"product-slider-modal",on:{click:function(e){return e.stopPropagation(),t.close.apply(null,arguments)}}},[e("div",{staticClass:"slider-button-wrapper slide-left-btn"},[e("div",{staticClass:"slide-left-btn transparent-btn",on:{click:t.prevImage}},[e("base-svg",{staticClass:"slider-btn-icon btn-left",attrs:{name:"arrow_left"}})],1)]),e("div",{staticClass:"slider"},[e("div",{staticClass:"close"},[t._t("default")],2),e("div",{staticClass:"thumbnails"},t._l(t.images,(function(a,i){return e("figure",{key:a.path,staticClass:"thumbnail",class:{active:i===t.index},on:{click:function(e){return t.goTo(i)}}},[e("cms-image",{staticClass:"slide-product-img",attrs:{src:a.image,base:{height:45,width:45},md:{height:60,width:60}}})],1)})),0),e("cms-image",{staticClass:"slide-product-img landscape-image",attrs:{position:"",src:t.activeImageSrc,base:{height:1080,width:1080}}})],1),e("div",{staticClass:"slider-button-wrapper slide-right-btn"},[e("div",{staticClass:"slide-right-btn transparent-btn",on:{click:t.nextImage}},[e("base-svg",{staticClass:"slider-btn-icon btn-left",attrs:{name:"arrow_right"}})],1)])])},z=[],S={data:function(){return{index:this.activeImageIndex}},props:{images:Array,activeImageIndex:Number},computed:{activeImageSrc:function(){return this.images[this.index].image}},methods:{nextImage:function(){this.goTo(this.index+1)},prevImage:function(){this.goTo(this.index-1)},goTo:function(t){this.index=(t+this.images.length)%this.images.length},close:function(t){t.target===this.$refs.modal&&this.$emit("closeModal")}}},T=S,B=(a("107e"),Object(M["a"])(T,$,z,!1,null,"095c61c2",null)),F=B.exports,N=a("8d2e"),E={name:"ProductSlider",components:{ProductSliderPagination:P,ProductSliderModal:F,ButtonClose:O["a"],BaseSvg:N["a"]},props:{images:Array,isModal:Boolean},computed:{activeImageSrc:function(){return this.images[this.activeImageIndex].image},product:function(){return this.$app.page.product},capacity:function(){return this.product.capacity.value+this.product.capacity.unit}},data:function(){return{activeImageIndex:0,isModalOpen:!1}},methods:{nextImage:function(){this.goTo(this.activeImageIndex+1)},prevImage:function(){this.goTo(this.activeImageIndex-1)},goTo:function(t){this.slideAnimation(),this.activeImageIndex=(t+this.images.length)%this.images.length},slideAnimation:function(){this.$refs.imageWrapper.animate([{opacity:0},{opacity:1}],1e3)},toggle:function(){this.isModalOpen=!this.isModalOpen}}},L=E,q=(a("2680"),Object(M["a"])(L,y,_,!1,null,"74f1e006",null)),A=q.exports,H=a("c8d0"),V=function(){var t=this,e=t._self._c;return e("div",{staticClass:"product-content"},[e("div",{staticClass:"opinions-top"},[e("base-font",{staticClass:"title",attrs:{variant:"section-header",tag:"h2"}},[t._v(" "+t._s(t.langs.opinions_heading)+" ")]),e("base-button",{staticClass:"opinion-add-button",attrs:{rightSlot:!0,type:"white"},on:{click:t.openNewOpinionModal}},[t._v(" "+t._s(t.langs.add_opinion)+" ")])],1),t.reviews.list.length?e("div",{staticClass:"opinions-wrapper"},t._l(t.reviews.list,(function(a){return e("div",{key:a.id,staticClass:"opinion"},[e("div",{staticClass:"opinion-top"},[e("base-font",{staticClass:"opinion-author",attrs:{variant:"paragraph",tag:"h4",weight:"bold",uppercase:""}},[t._v(" "+t._s(t._f("surnameShortener")(a.author)))]),e("div",{staticClass:"opinion-rating"},t._l(5,(function(t){return e("base-svg",{key:t,staticClass:"star",class:{"disabled-star":t>Math.max(a.rate)},attrs:{name:"star"}})})),1)],1),e("base-font",{attrs:{variant:"paragraph",tag:"p",weight:"bold"}},[t._v("Pisze:")]),e("div",{staticClass:"opinion-description",domProps:{innerHTML:t._s(a.content)}})],1)})),0):e("div",{staticClass:"no-opinion-wrapper"},[e("base-font",{attrs:{variant:"medium-header",tag:"h3",weight:"bold"}},[t._v(" "+t._s(t.langs.no_opinions)+" ")])],1),e("div",{staticClass:"load-more-button-wrapper"},[t.areMoreReviewsToShow?e("base-button",{staticClass:"load-more-button",attrs:{type:"white"},on:{click:t.loadMoreReviews}},[t._v("Więcej opinii")]):t._e()],1)])},D=[],G=(a("ef14"),a("0b38")),J=a("b61b"),W=function(){var t=this,e=t._self._c;return t.modal.form?e("base-blur",{attrs:{blur:!!t.modal.status},scopedSlots:t._u([{key:"status",fn:function(){return[e("div",{staticClass:"status"},[e("base-font",{attrs:{size:"md",family:"secondary",color:"primary"}},[t._v(" "+t._s(t.langs.status[t.modal.status]||t.langs.status.error)+" ")])],1)]},proxy:!0}],null,!1,2625543527)},[e("div",{staticClass:"product-review-form-wrapper"},[e("div",{staticClass:"product-review-form-image-wrapper"},[e("header",{staticClass:"image-header"},[t._v(" "+t._s(t.modal.product.name)+" ")]),e("div",{staticClass:"image-wrapper"},[e("cms-image",{staticClass:"product-review-form-image",attrs:{src:t.modal.product.thumbnail,base:{width:310,height:260},sm:{width:350,height:300},md:{width:400,height:350},lg:{height:300},xl:{height:310},xxl:{height:330}}})],1)]),t.modal.form?e("form",{staticClass:"product-review-form"},[e("div",{staticClass:"product-review-form-top"},[e("input-template",{attrs:{wider:"",input:t.modal.form.inputs.author}}),e("input-template",{attrs:{wider:"",input:t.modal.form.inputs.email}})],1),e("input-template",{attrs:{wider:"",input:t.modal.form.inputs.rate}}),e("input-template",{staticClass:"product-review-form-textarea",attrs:{wider:"",input:t.modal.form.inputs.content}}),e("span",{staticClass:"counter",class:{"counter-red":t.currentContentLength>=t.maxContentLength}},[t._v(t._s(t.currentContentLength)+"/"+t._s(t.maxContentLength))]),e("button-submit",{staticClass:"product-review-form-button",attrs:{type:"white",loading:t.modal.processing,rightSlot:!0},on:{click:function(e){return t.modal.submit()}}},[t._v(" "+t._s(t.langs.submitButton)+" ")])],1):t._e()])]):t._e()},Q=[],U=a("5987"),Y=a("4562"),K=a("1816"),X={props:{modal:Object},components:{BaseBlur:K["default"],InputTemplate:U["f"],ButtonSubmit:Y["a"]},computed:{statusTranslation:function(){return this.$app.translator.get("forms.productReviewForm.status")},langs:function(){return this.$app.translator.get("forms.productReviewForm")},currentContentLength:function(){var t;try{t=this.modal.form.inputs.content.value.length}catch(e){t=0}return t}},data:function(){return{maxContentLength:450}},methods:{addNewReview:function(){return Object(r["a"])(Object(i["a"])().mark((function t(){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()}}},Z=X,tt=(a("04c0"),Object(M["a"])(Z,W,Q,!1,null,"846d249a",null)),et=tt.exports,at=a("2aa4"),it=a("12f2"),rt=function(t){Object(p["a"])(a,t);var e=Object(l["a"])(a);function a(t){var i;return Object(n["a"])(this,a),i=e.apply(this,arguments),Object(u["a"])(Object(s["a"])(i),"component",et),Object(u["a"])(Object(s["a"])(i),"title",""),Object(u["a"])(Object(s["a"])(i),"processing",!1),Object(u["a"])(Object(s["a"])(i),"form",!1),Object(u["a"])(Object(s["a"])(i),"product",void 0),Object(u["a"])(Object(s["a"])(i),"status",!1),i.product=t,i}return Object(o["a"])(a,[{key:"open",value:function(){Object(d["a"])(Object(c["a"])(a.prototype),"open",this).call(this),this.createForm()}},{key:"createForm",value:function(){var t=Object(r["a"])(Object(i["a"])().mark((function t(){var e=this;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.app.translator.prefetch("errors");case 2:return t.next=4,this.app.translator.prefetch("forms.productReviewForm");case 4:this.title=this.app.translator.get("forms.productReviewForm.title"),this.form=new at["a"],this.form.addInput(U["g"].create({translations:function(){return e.app.translator.get("forms.productReviewForm.inputName")},attribute:"author",name:"author",validation:[Object(it["c"])()]})),this.form.addInput(U["b"].create({translations:function(){return e.app.translator.get("forms.productReviewForm.inputEmail")},attribute:"email",name:"email",validation:[Object(it["a"])()]})),this.form.addInput(U["e"].create({translations:function(){return e.app.translator.get("forms.productReviewForm.inputRate")},attribute:"rate",name:"rate",validation:[Object(it["c"])()]})),this.form.addInput(U["i"].create({translations:function(){return e.app.translator.get("forms.productReviewForm.inputTextarea")},attribute:"content",name:"content",maxLength:450,validation:[Object(it["c"])(),Object(it["b"])(450,"Wprowadzona opinia jest zbyt długa!")]}));case 10:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"submit",value:function(){var t=Object(r["a"])(Object(i["a"])().mark((function t(){var e;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.form.validate();case 2:if(t.sent){t.next=4;break}return t.abrupt("return",!1);case 4:return this.processing=!0,t.next=7,this.app.getService("rext").createReview(Object(G["a"])({productId:this.product.id},this.form.getValues()));case 7:e=t.sent,e.error||this.app._emit("product:review:created"),this.status=e;case 10:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),a}(J["a"]),nt=a("b6cf"),ot={components:{BaseButton:nt["default"]},props:{prefix:String,value:Object},computed:{langs:function(){return this.$app.translator.get("products")},reviews:function(){return this.$app.page.product.reviews},areMoreReviewsToShow:function(){return this.reviews.count>this.reviews.list.length}},filters:{surnameShortener:function(t){var e=t.split(" ");return e[1]?(e[1]=e[1].substr(0,1).toUpperCase()+".",e.join(" ")):t}},methods:{loadMoreReviews:function(){var t=this;return Object(r["a"])(Object(i["a"])().mark((function e(){return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$app.page.loadMoreReviews();case 2:case"end":return e.stop()}}),e)})))()},openNewOpinionModal:function(){rt.createAndOpen(this.$app.page.product)}}},st=ot,dt=(a("017e"),Object(M["a"])(st,V,D,!1,null,"3d4dd8ca",null)),ct=dt.exports,pt=a("096e"),lt={name:"Product",components:{CmsMultiSection:b["a"],FieldQuantity:w["a"],ProductSlider:A,ProductOpinions:ct,ProductButton:x["a"],SlimProductsList:H["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")},baseOn:function(){var t,e;return null===(t=this.langs)||void 0===t||null===(e=t.base_on_x_reviews)||void 0===e?void 0:e.replace("<>",this.product.numberOfReviews)},avgRounded:function(){return this.product.avgRate.toFixed(2)}},methods:{setFieldFocus:function(t){this.isFocus=t},addToCart:function(){this.product.addToCart(this.quantity)}},prefetch:function(){var t=this;return Object(r["a"])(Object(i["a"])().mark((function e(){return Object(i["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:[pt["a"]]},ut=lt,mt=(a("1491"),Object(M["a"])(ut,v,g,!1,null,"12582c95",null)),ft=mt.exports,ht=a("74b4"),vt=function(t){Object(p["a"])(a,t);var e=Object(l["a"])(a);function a(t){var i,r=t.app,o=t.route,d=t.from;return Object(n["a"])(this,a),i=e.call(this,{app:r,route:o,from:d}),Object(u["a"])(Object(s["a"])(i),"component",ft),Object(u["a"])(Object(s["a"])(i),"product",{}),i.seo=new h(r,{page:Object(s["a"])(i)}),i}return Object(o["a"])(a,[{key:"init",value:function(){var t=Object(r["a"])(Object(i["a"])().mark((function t(){var e,r=this;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(d["a"])(Object(c["a"])(a.prototype),"init",this).call(this);case 2:if(setTimeout((function(){r.emitViewContent()}),200),!this.app.authorization.isAuthorizated){t.next=11;break}return t.next=6,this.app.getService("rext");case 6:if(e=t.sent,void 0!==this.app.authorization.user){t.next=9;break}return t.abrupt("return");case 9:return t.next=11,e.klaviyoCreateProductPageEvent({email:this.app.authorization.client.user.email,productName:this.product.name,productCategory:this.product.category.name,productValue:this.product.price});case 11:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"emitViewContent",value:function(){var t={page_title:document.title,event_url:location.href,content_type:"product",post_id:this.product.id,content_name:this.product.name,category_id:this.product.category.id,category_name:this.product.category.name,value:this.product.price/100,currency:"PLN",price_before_discount:this.product.priceBeforeDiscount?this.product.priceBeforeDiscount/100:"unknown",contents_id:[this.product.id],user_role:this.app.authorization.isAuthorizated?"client":"guest",contents:[{id:this.product.id,name:this.product.name}],content_ids:[this.product.id]};ht["a"].emitEvent("ViewContent",t)}},{key:"fetchData",value:function(){var t=Object(r["a"])(Object(i["a"])().mark((function t(){var e;return Object(i["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.product.loadReviews(3);case 8:return t.next=10,this.setPageData(this.product.page);case 10: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:"loadMoreReviews",value:function(){return this.product.loadMoreReviews(3)}},{key:"restore",value:function(){Object(d["a"])(Object(c["a"])(a.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(d["a"])(Object(c["a"])(a.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)}}]),a}(m["a"]);Object(u["a"])(vt,"alias","product")},f9f0:function(t,e,a){var i=a("5eaa");e=i(!1),e.push([t.i,'@keyframes in-btn-social-095c61c2{0%{left:-110%;top:90%}50%{left:10%;top:-30%}100%{top:-10%;left:-10%}}@keyframes out-btn-social-095c61c2{0%{top:-10%;left:-10%}50%{left:10%;top:-30%}100%{left:-110%;top:90%}}.slider[data-v-095c61c2]{position:relative;background-color:#fff}.slider .thumbnails[data-v-095c61c2]{display:flex;position:absolute;bottom:-50px;left:0}@media screen and (orientation: landscape){.slider .thumbnails[data-v-095c61c2]{display:block;top:0;bottom:inherit;left:-48px}}@media(min-width: 768px){.slider .thumbnails[data-v-095c61c2]{bottom:-70px}}@media(min-width: 1200px){.slider .thumbnails[data-v-095c61c2]{left:-65px}}.slider .thumbnail[data-v-095c61c2]{position:relative;cursor:pointer;margin:0;height:45px;overflow:hidden;margin-right:3px;margin-bottom:3px}@media(min-width: 768px){.slider .thumbnail[data-v-095c61c2]{height:60px;margin-bottom:5px}.slider .thumbnail[data-v-095c61c2]::before{position:absolute;content:"";top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.35);opacity:0;transition:all .3s linear}.slider .thumbnail.active[data-v-095c61c2]::before{opacity:1}}@media(min-width: 768px){.slider .thumbnail[data-v-095c61c2]:hover::before{opacity:1}}.slider .close[data-v-095c61c2]{position:absolute;top:20px;right:20px}.product-slider-modal[data-v-095c61c2]{position:fixed;top:0;bottom:0;left:0;right:0;display:flex;justify-content:center;align-items:center;z-index:2000;background-color:rgba(0,0,0,.35);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.product-slider-modal[data-v-095c61c2] .landscape-image img{width:auto;height:auto;max-height:calc(100vmin - 30px);max-width:calc(100vmin - 30px)}@media screen and (max-height: 576px)and (orientation: landscape){.product-slider-modal[data-v-095c61c2] .landscape-image img{height:100vh}}.product-slider-modal .slider-button-wrapper[data-v-095c61c2]{margin:2rem 0;z-index:1000;position:relative}.product-slider-modal .slide-left-btn[data-v-095c61c2]{left:50px}@media(min-width: 1200px){.product-slider-modal .slide-left-btn[data-v-095c61c2]{left:0;margin-right:30px}}.product-slider-modal .slide-right-btn[data-v-095c61c2]{right:50px}@media(min-width: 1200px){.product-slider-modal .slide-right-btn[data-v-095c61c2]{right:0;margin-left:30px}}.product-slider-modal .transparent-btn[data-v-095c61c2]{background:rgba(0,0,0,0);border:none;cursor:pointer;transition:.5s}@media(min-width: 1200px){.product-slider-modal .transparent-btn[data-v-095c61c2]:hover{transition:.5s;transform:scale(1.2)}}.product-slider-modal .transparent-btn .slider-btn-icon[data-v-095c61c2]{width:2em}',""]),t.exports=e},fb67:function(t,e,a){var i=a("f381");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("0ed3").default;r("178b9d32",i,!0,{sourceMap:!1,shadowMode:!1})}}]); //# sourceMappingURL=chunk-0631d478.5efd5b74.js.map