1(self.webpackChunk=self.webpackChunk||[]).push([[4043,4754,3016],{16200:function(e,t,r){var s,o,i=this&&this.__decorate||function(e,t,r,s){var o,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};s=[r,t,r(14775),r(65059)],o=function(e,t,r,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),s=n(s);let o=class GlobalDialog extends r.Vue{constructor(){super(...arguments),this.isOpen=!1}mounted(){window.addEventListener("keydown",this.handleKeydown)}beforeDestroy(){window.removeEventListener("keydown",this.handleKeydown)}handleKeydown(e){"Escape"===e.key&&this.isOpen&&this.closeOnEscape&&this.closeDialog()}openDialog(){const e=this.$refs.dialog;e&&(e.showModal(),this.isOpen=!0,document.body.style.overflow="hidden")}closeDialog(){const e=this.$refs.dialog;e&&(e.close(),this.isOpen=!1,document.body.style.removeProperty("overflow"))}handleOutsideClick(e){if(!this.closeOnBackdropClick)return;const t=this.$refs.dialog,r=this.$el.querySelector(".dialog__content");t&&r&&!r.contains(e.target)&&this.closeDialog()}};i([(0,r.Prop)({type:String,default:""}),a("design:type",String)],o.prototype,"titleClass",void 0),i([(0,r.Prop)({type:String,default:""}),a("design:type",String)],o.prototype,"customDialogClass",void 0),i([(0,r.Prop)({type:String,default:""}),a("design:type",String)],o.prototype,"customComponentClass",void 0),i([(0,r.Prop)({type:Boolean,default:!0}),a("design:type",Boolean)],o.prototype,"closeOnBackdropClick",void 0),i([(0,r.Prop)({type:Boolean,default:!0}),a("design:type",Boolean)],o.prototype,"closeOnEscape",void 0),o=i([(0,r.Component)({name:"global-dialog",components:(0,s.default)().getComponents()})],o),t.default=o}.apply(t,s),void 0===o||(e.exports=o)},34980:function(e,t,r){var s,o,i=this&&this.__decorate||function(e,t,r,s){var o,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},n=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(o,i){function fulfilled(e){try{step(s.next(e))}catch(e){i(e)}}function rejected(e){try{step(s.throw(e))}catch(e){i(e)}}function step(e){e.done?o(e.value):function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};s=[r,t,r(14775),r(12954),r(34479)],o=function(e,t,r,s,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(0,s.extend)("required",o.required),(0,s.extend)("min",o.min);let l=class default_1 extends r.Vue{constructor(){super(...arguments),this.showReviewForm=!1,this.savedReview=!1,this.review={title:null,nickname:null,message:null,rating:null,ordernumber:null},this.serviceUrl={nl_NL:"/klantenservice",nl_BE:"/klantendienst"},this.hasError=!1,this.errorMessage=""}submitForm(){return n(this,void 0,void 0,(function*(){if(this.hasError=!1,yield this.$refs.form.validate())try{const{data:e}=yield this.$solarClient.post(`api/catalog/product/${this.productId}/review`,this.review);e.hasOwnProperty("status")&&(this.hasError=!0,this.errorMessage=e.message),this.review={title:null,nickname:null,message:null,rating:null,ordernumber:null},this.$refs.form.reset(),this.showReviewForm=!1,this.savedReview=!0}catch(e){this.hasError=!0,e.hasOwnProperty("response")&&e.response.data.hasOwnProperty("message")?this.errorMessage=e.response.data.message:this.errorMessage=this.$t("Unable to place review")}}))}created(){console.log(this.productId,this.orderId),this.orderId&&(this.review.ordernumber=this.orderId)}};i([(0,r.Prop)({required:!1}),a("design:type",String)],l.prototype,"productId",void 0),i([(0,r.Prop)({required:!1}),a("design:type",String)],l.prototype,"orderId",void 0),i([(0,r.Prop)({required:!1}),a("design:type",String)],l.prototype,"productName",void 0),l=i([(0,r.Component)({name:"catalog-product-review-form",components:{ValidationObserver:s.ValidationObserver,ValidationProvider:s.ValidationProvider}})],l),t.default=l}.apply(t,s),void 0===o||(e.exports=o)},15387:function(e,t,r){var s,o,i=this&&this.__decorate||function(e,t,r,s){var o,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}
1,n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};s=[r,t,r(14775),r(65059),r(94754),r(43016)],o=function(e,t,r,s,o,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),s=n(s),o=n(o),l=n(l);let c=class default_1 extends r.Vue{constructor(){super(...arguments),this.visibleReviews=1,this.reviewStep=3,this.showAllReviews=!1}get orderId(){let e=new URLSearchParams(window.location.search).get("orderId");if(!e){const t=window.location.href.match(/orderId=(\d+)/);e=t?t[1]:null}return e}get filteredReviews(){return this.productReviews.filter((e=>e.content&&""!==e.content.trim()))}formattedAverageScore(e){return(e/10).toFixed(1)}formatDate(e){return new Date(1e3*e).toLocaleDateString().replace(/\//g,"-")}get isMobile(){return!!this.$mobileDetect.mobile()}showMoreReviews(){this.visibleReviews=Math.min(this.visibleReviews+this.reviewStep,this.productReviews.length)}showLessReviews(){this.visibleReviews=this.isMobile?1:3}get canShowMore(){return this.visibleReviews<this.productReviews.length}get canShowLess(){return this.visibleReviews>(this.isMobile?1:3)}get shouldShowMoreReviewsButton(){return this.isMobile||this.productReviews.length>3}openDialog(){const e=this.$refs.dialog;e&&"function"==typeof e.openDialog?e.openDialog():console.error("Dialog reference or openDialog method not found")}mounted(){this.visibleReviews=this.isMobile?1:Math.min(3,this.productReviews.length),this.showAllReviews=this.visibleReviews>=this.productReviews.length}};i([(0,r.Prop)({required:!0}),a("design:type",Number)],c.prototype,"productRating",void 0),i([(0,r.Prop)({required:!0}),a("design:type",Array)],c.prototype,"productReviews",void 0),i([(0,r.Prop)({required:!1}),a("design:type",String)],c.prototype,"productName",void 0),i([(0,r.Prop)({required:!1}),a("design:type",String)],c.prototype,"productId",void 0),i([(0,r.Prop)({required:!1}),a("design:type",Number)],c.prototype,"productReviewCount",void 0),c=i([(0,r.Component)({name:"catalog-product-reviews",components:Object.assign({GlobalDialog:o.default,CatalogProductReviewForm:l.default},(0,s.default)().getComponents())})],c),t.default=c}.apply(t,s),void 0===o||(e.exports=o)},94754:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var s=r(24500),o=r(92405),i={};for(const e in o)"default"!==e&&(i[e]=()=>o[e]);r.d(t,i);const a=(0,r(51900).Z)(o.default,s.s,s.x,!1,null,null,null).exports},43016:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var s=r(2721),o=r(58874),i={};for(const e in o)"default"!==e&&(i[e]=()=>o[e]);r.d(t,i);const a=(0,r(51900).Z)(o.default,s.s,s.x,!1,null,null,null).exports},44043:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var s=r(61414),o=r(93119),i={};for(const e in o)"default"!==e&&(i[e]=()=>o[e]);r.d(t,i);const a=(0,r(51900).Z)(o.default,s.s,s.x,!1,null,null,null).exports},92405:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var s=r(16200),o=r.n(s),i={};for(const e in s)"default"!==e&&(i[e]=()=>s[e]);r.d(t,i);const a=o()},58874:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var s=r(34980),o=r.n(s),i={};for(const e in s)"default"!==e&&(i[e]=()=>s[e]);r.d(t,i);const a=o()},93119:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var s=r(15387),o=r.n(s),i={};for(const e in s)"default"!==e&&(i[e]=()=>s[e]);r.d(t,i);const a=o()},24500:(e,t,r)=>{"use strict";r.d(t,{s:()=>render,x:()=>s});var render=function(){var e,t=this,r=t.$createElement,s=t._self._c||r;return s("dialog",{ref:"dialog",staticClass:"dialog__container",class:(e={"is-open":t.isOpen},e[t.customDialogClass]=t.customDialogClass,e),attrs:{id:"dialog"},on:{click:t.handleOutsideClick}},[s("div",{staticClass:"dialog__content"},[s("span",{staticClass:"dialog__close",on:{click:t.closeDialog}}),t._v(" "),s("header",{staticClass:"dialog__header"},[t._t("title")],2),t._v(" "),s("div",{staticClass:"dialog__custom_component",class:t.customComponentClass},[t._t("customComponent")],2),t._v(" "),s("div",{staticClass:"dialog__body"},[t._t("body")],2),t._v(" "),s("div",{staticClass:"dialog__footer"},[t._t("footer",(function(){return[s("form",{attrs:{method:"dialog"},on:{click:t.closeDialog}},[s("button",{staticClass:"--button --secondary --border"},[t._v("\n "+t._s(t.$t("Close"))+"\n ")])])]}))],2)])])},s=[]},2721:(e,t,r)=>{"use strict";r.d(t,{s:()=>render,x:()=>s});var render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"product__rating-container"},[e.savedReview?r("i18n",{staticClass:"global__message--bg --success --margin",attrs:{tag:"div",path:"Thank y
1ou for your contribution. Your review has been received and will be checked for language use. For questions about the product or availability, please contact our {url}."},scopedSlots:e._u([{key:"url",fn:function(){return[r("a",{attrs:{href:e.serviceUrl[e.$i18n.locale]}},[e._v(e._s(e.$t("customer service")))])]},proxy:!0}],null,!1,1726419660)}):e._e(),e._v(" "),e.hasError?r("div",{staticClass:"global__message--bg --error --margin",domProps:{textContent:e._s(e.errorMessage)}}):e._e(),e._v(" "),e.savedReview?e._e():r("div",{staticClass:"rating__form"},[r("p",{staticClass:"rating__form-title"},[e._v(e._s(e.$t("How many stars do you give the {name}",{name:e.productName})))]),e._v(" "),r("ValidationObserver",{ref:"form",attrs:{tag:"form"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.handleSubmit;return[r("form",{on:{submit:function(t){return t.preventDefault(),s(e.submitForm)}}},[r("ValidationProvider",{staticClass:"field__group",attrs:{name:"Rating",rules:"required",tag:"div"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.errors,o=t.classes;return[r("div",{staticClass:"rating__group-container"},[r("span",{staticClass:"rating__group"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.review.rating,expression:"review['rating']"}],class:o,attrs:{type:"radio",id:"stars-5",name:"ratings",value:"5"},domProps:{checked:e._q(e.review.rating,"5")},on:{change:function(t){return e.$set(e.review,"rating","5")}}}),r("label",{attrs:{for:"stars-5"}}),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:e.review.rating,expression:"review['rating']"}],class:o,attrs:{type:"radio",id:"stars-4",name:"ratings",value:"4"},domProps:{checked:e._q(e.review.rating,"4")},on:{change:function(t){return e.$set(e.review,"rating","4")}}}),r("label",{attrs:{for:"stars-4"}}),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:e.review.rating,expression:"review['rating']"}],class:o,attrs:{type:"radio",id:"stars-3",name:"ratings",value:"3"},domProps:{checked:e._q(e.review.rating,"3")},on:{change:function(t){return e.$set(e.review,"rating","3")}}}),r("label",{attrs:{for:"stars-3"}}),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:e.review.rating,expression:"review['rating']"}],class:o,attrs:{type:"radio",id:"stars-2",name:"ratings",value:"2"},domProps:{checked:e._q(e.review.rating,"2")},on:{change:function(t){return e.$set(e.review,"rating","2")}}}),r("label",{attrs:{for:"stars-2"}}),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:e.review.rating,expression:"review['rating']"}],class:o,attrs:{type:"radio",id:"stars-1",name:"ratings",value:"1"},domProps:{checked:e._q(e.review.rating,"1")},on:{change:function(t){return e.$set(e.review,"rating","1")}}}),r("label",{attrs:{for:"stars-1"}})])]),e._v(" "),r("span",{directives:[{name:"show",rawName:"v-show",value:s[0],expression:"errors[0]"}],staticClass:"global__message --error --margin--top"},[e._v(e._s(e.$t("Do not forget to enter your number of stars")))])]}}],null,!0)}),e._v(" "),r("ValidationProvider",{staticClass:"field__group",attrs:{name:e.$t("Your name"),rules:"required|min:3",tag:"div"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.errors,o=t.classes;return[r("input",{directives:[{name:"model",rawName:"v-model",value:e.review.nickname,expression:"review['nickname']"}],class:o,attrs:{type:"text",name:"nickname",placeholder:e.$t("Your name")+"*"},domProps:{value:e.review.nickname},on:{input:function(t){t.target.composing||e.$set(e.review,"nickname",t.target.value)}}}),e._v(" "),r("span",{staticClass:"global__message --error --margin--top"},[e._v(e._s(s[0]))])]}}],null,!0)}),e._v(" "),r("ValidationProvider",{staticClass:"field__group",attrs:{name:e.$t("Your ordernumber"),rules:"required",tag:"div"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.errors,o=t.classes;return[r("input",{directives:[{name:"model",rawName:"v-model",value:e.review.ordernumber,expression:"review['ordernumber']"}],class:o,attrs:{type:"number",name:"ordernumber",placeholder:e.$t("Your ordernumber")+"*"},domProps:{value:e.review.ordernumber},on:{input:function(t){t.target.composing||e.$set(e.review,"ordernumber",t.target.value)}}}),e._v(" "),r("span",{staticClass:"global__message --error --margin--top"},[e._v(e._s(s[0]))])]}}],null,!0)}),e._v(" "),r("ValidationProvider",{staticClass:"field__group",attrs:{name:e.$t("Title of your review"),rules:"",tag:"div"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.errors,o=t.classes;return[r("input",{directives:[{name:"model",rawName:"v-model",value:e.review.title,expression:"review['title']"}],class:o,attrs:{type:"text",name:"title",placeholder:e.$t("Title of your review")},domProps:{value:e.review.title},on:{input:function(t){t.target.composing||e.$set(e.review,"title",t.target.value)}}}),e._v(" "),r("span",{staticClass:"global__message --error --margin--top"},[e._v(e._s(s[0]))])]}}],null,!0)}),e._v(" "),r("ValidationProvider",{staticClass:"field__group",attrs:{name:e.$t("Review"),rules:"",tag:"div"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.errors,o=t.classes;return[r("textarea",{directives:[{name:"model",rawName:"v-model",value:e.review.message,expression:"review['message']"}],class:o,attrs:{name:"detail",rows:"5",placeholder:e.$t("What do you think of {product}",{product:e.productName})},domProps:{value:e.review.message},on:{input:function(t){t.target.composing||e.$set(e.review,"message",t.target.value)}}}),e._v(" "),r("span",{staticClass:"global__message --error --margin--top"},[e._v(e._s(s[0]))])]}}],null,!0)}),e._v(" "),r("button",{staticClass:"--button --secondary --border",attrs:{type:"submit"}
1,on:{click:function(t){return t.preventDefault(),e.submitForm()}}},[e._v(e._s(e.$t("Submit your review")))])],1)]}}],null,!1,194009131)})],1)],1)},s=[]},61414:(e,t,r)=>{"use strict";r.d(t,{s:()=>render,x:()=>s});var render=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"product__reviews",class:{"--single":1===e.productReviews.length},attrs:{id:"reviews"}},[e.productReviewCount>0?r("div",{staticClass:"grid-container"},[r("h3",[e._v(e._s(e.$t("Ratings")))]),e._v(" "),r("div",{staticClass:"review__item--header"},[e.productReviews.length>0?r("div",{staticClass:"review__item--first"},[r("span",{staticClass:"--score"},[e._v(e._s(e.formattedAverageScore(e.productRating)))]),e._v(" "),r("div",{staticClass:"rating-container--wrapper"},[r("span",{staticClass:"rating-container"},[r("span",{staticClass:"--fill",style:"width: "+e.productRating+"%"})]),e._v(" "),r("p",[e._v(e._s(e.$t("Based on {productRating} ratings",{productRating:e.productReviewCount})))])])]):e._e(),e._v(" "),r("div",{staticClass:"review__item--header-right hide-for-small-only"},[r("div",[r("h4",[e._v(e._s(e.$t("Do you own the {name}? Write a review!",{name:e.productName})))]),e._v(" "),r("p",[e._v(e._s(e.$t("To write a review, a valid email address is required for verification.")))])]),e._v(" "),r("button",{staticClass:"--button --secondary --border",attrs:{id:"submitReview"},on:{click:e.openDialog}},[e._v(e._s(e.$t("Submit review")))])])]),e._v(" "),r("div",{staticClass:"review__items--wrapper"},e._l(e.productReviews.slice(0,e.visibleReviews),(function(t,s){return r("div",{key:s,staticClass:"review__items"},[r("div",{staticClass:"review__item",class:{sponsored:t.sponsored}},[r("div",{staticClass:"--header"},[r("span",[e._v(e._s(t.nickname))]),e._v(" "),r("span",[e._v(e._s(e.formatDate(t.created_at)))])]),e._v(" "),r("div",{staticClass:"--content"},[r("span",{staticClass:"--score"},[e._v(e._s(e.formattedAverageScore(t.rating)))]),e._v(" "),r("span",{staticClass:"rating-container"},[r("span",{staticClass:"--fill",style:"width: "+t.rating+"%"})])]),e._v(" "),"*"!==t.content?r("p",[e._v(e._s(t.content))]):e._e(),e._v(" "),r("p",{staticClass:"--product-reference"},[r("span",[e._v("\n "+e._s(e.$t("Review for"))+":\n ")]),e._v(" "),t.written_for_product&&t.written_for_product.name?r("a",{attrs:{href:t.written_for_product.url}},[e._v(e._s(t.written_for_product.name))]):e._e()])])])})),0),e._v(" "),r("div",{staticClass:"review__items--footer"},[r("p",{staticClass:"hide-for-small-only"},[e._v(e._s(e.$t("{number} of {total} reviews",{number:e.visibleReviews,total:e.productReviews.length})))]),e._v(" "),e.shouldShowMoreReviewsButton?r("div",{class:{"--is-open":e.canShowLess}},[e.canShowLess?r("button",{on:{click:e.showLessReviews}},[e._v(e._s(e.$t("Show less")))]):e._e(),e._v(" "),e.canShowMore&&e.canShowLess?r("span",{staticClass:"hide-for-small-only"},[e._v("-")]):e._e(),e._v(" "),e.canShowMore?r("button",{on:{click:e.showMoreReviews}},[e._v(e._s(e.$t("Show more reviews")))]):e._e()]):e._e()])]):e._e(),e._v(" "),r("global-dialog",{ref:"dialog",attrs:{customDialogClass:"review-form","close-on-backdrop-click":!1,"close-on-escape":!1},scopedSlots:e._u([{key:"title",fn:function(){return[r("div",{staticClass:"global__content"},[r("h3",[e._v(e._s(e.$t("Submit review")))]),r("a",{attrs:{href:"/reviewbeleid"}},[e._v(e._s(e.$t("Our review policy")))])]),e._v(" "),r("p",[e._v(e._s(e.$t("Tell us what you think about this product and share your experience with other customers. If you have specific questions about the product, please contact our")))]),e._v(" "),r("a",{attrs:{href:"/klantenservice"}},[e._v(e._s(e.$t("customer service")))])]},proxy:!0},{key:"customComponent",fn:function(){return[r("catalog-product-review-form",{attrs:{"product-id":e.productId,"order-id":e.orderId,"product-name":e.productName}})]},proxy:!0}])},[e._v(" "),e._v(" "),r("p",[e._v(e._s(e.$t("Your review form content goes here.")))])])],1)},s=[]}}]); 2//# sourceMappingURL=../maps/4043.8fd4919b426b373a11798fb1dbeefc10.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.