1"use strict";(self.webpackChunklib=self.webpackChunklib||[]).push([[612],{951:(t,e,i)=>{i.d(e,{XF:()=>n,mp:()=>r});var n=(t,e)=>{if(t&&(!e||e instanceof HTMLElement))return t instanceof HTMLElement?t:e?e.querySelector(t):document.querySelector(t)},r=(t,e)=>{var i=e&&e instanceof HTMLElement?e:document;return"string"==typeof t?[...i.querySelectorAll(t)]:t}},1622:(t,e,i)=>{i.d(e,{A:()=>n});const n=t=>{var e=new URLSearchParams;return Object.keys(t).forEach((i=>e.append(i,t[i]))),e.toString()}},2612:(t,e,i)=>{i.r(e),i.d(e,{default:()=>Ue});var n=i(5069),r=t=>Object.fromEntries(Object.entries(t).filter((t=>{var[,e]=t;return(t=>null!=t&&""!==t&&(!Array.isArray(t)||t.length>0))(e)}))),s=i(1622);function o(t,e,i,n,r,s,o){try{var a=t[s](o),c=a.value}catch(t){return void i(t)}a.done?e(c):Promise.resolve(c).then(n,r)}var a=t=>t&&"NULL"!==t?t:"",c=t=>({userName:a(t.UN),countryName:a(t.Country),countryCode:a(t.CountryCode),date:a(t.Date),title:a(t.T),prosText:a(t.PT),consText:a(t.NT),reviewerType:a(t.ReviewerType),travelPurpose:a(t.TravelPurpose),rating:a(t.Rating),ratingWord:a(t.RatingWord)});function l(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function h(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?l(Object(i),!0).forEach((function(e){u(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function u(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function v(t,e,i,n,r,s,o){try{var a=t[s](o),c=a.value}catch(t){return void i(t)}a.done?e(c):Promise.resolve(c).then(n,r)}function f(t){return function(){var e=this,i=arguments;return new Promise((function(n,r){var s=t.apply(e,i);function o(t){v(s,n,r,o,a,"next",t)}function a(t){v(s,n,r,o,a,"throw",t)}o(void 0)}))}}var p=new class{fetch(){var t,e=arguments;return(t=function*(){try{var t=yield fetch(...e);if(!t.ok)throw new Error("Failed to get data in FetchDataService. Status: ".concat(t.status,". Response status text: ").concat(t.statusText));return{success:!0,data:yield t.json()}}catch(t){return travel.log(t),{success:!1}}},function(){var e=this,i=arguments;return new Promise((function(n,r){var s=t.apply(e,i);function a(t){o(s,n,r,a,c,"next",t)}function c(t){o(s,n,r,a,c,"throw",t)}a(void 0)}))})()}},m=function(){var t=f((function*(t){var{url:e,params:i={}}=t;if(e){var n="".concat(e,"?").concat((0,s.A)(i));return yield p.fetch(n)}}));return function(e){return t.apply(this,arguments)}}(),d={langID:Number(travel.options.languageId),hotelID:Number(travel.options.hotelExtId),offset:0,limit:15},w=function(){var t=f((function*(t){var{customUrl:e,customParams:i={}}=t,n=h(h({},d),i),r=e||"/api/breviews/",{success:s,data:o}=yield m({url:r,params:n});if(!s)throw new Error("Failed to fetch Bcom reviews | ".concat(travel.options.nid," | ").concat(travel.options.tob));return{totalReviewsCount:+o.BcomReviews.ReviewsCount,reviews:o.BcomReviews.Items.map(c),scores:o.BcomReviews.Scores,filters:o.BcomReviews.filters}}));return function(e){return t.apply(this,arguments)}}(),b=["customUrl"];function g(t,e,i,n,r,s,o){try{var a=t[s](o),c=a.value}catch(t){return void i(t)}a.done?e(c):Promise.resolve(c).then(n,r)}function y(t){return function(){var e=this,i=arguments;return new Promise((function(n,r){var s=t.apply(e,i);function o(t){g(s,n,r,o,a,"next",t)}function a(t){g(s,n,r,o,a,"throw",t)}o(void 0)}))}}function j(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function O(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?j(Object(i),!0).forEach((function(e){P(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):j(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function P(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function E(t,e,i){C(t,e),e.set(t,i)}function C(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function T(t,e){return t.get(x(t,e))}function S(t,e,i){return t.set(x(t,e),i),i}function x(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}var k=new WeakMap,B=new WeakMap,M=new WeakMap,N=new WeakMap,W=new WeakMap,L=new WeakMap,D=new WeakSet;class R extends n.A{constructor(t,e){var i,n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;super(),C(i=this,n=D),n.add(i),E(this,k,null),E(this,B,void 0),E(this,M,null),E(this,N,void 0),E(this,W,null),E(this,L,""),S(k,this,t),S(M,this,e),S(W,this,s);var{customUrl:o=""}=r,a=function(t,e){if(null==t)return{};var i,n,r=function(t,e){if(null==t)return{};var i={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;i[n]=t[n]}return i}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(n=0;n<s.length;n++)i=s[n],-1===e.indexOf(i)&&{}.propertyIsEnumerable.call(t,i)&&(r[i]=t[i])}return r}(r,b);S(L,this,o),S(N,this,O({},a)),this.init()}init(){var t=this;return y((function*(){yield x(D,t,q).call(t),T(W,t)&&T(W,t).render(T(B,t).scores),T(M,t).on("pageChange",function(){var e=y((function*(e){yield x(D,t,I).call(t,e),T(k,t).scrollToReviews()}));return function(t){return e.apply(this,arguments)}}())}))()}applyFilters(t){var e=this;return y((function*(){S(N,e,r(O(O({},T(N,e)),t))),yield x(D,e,q).call(e)}))()}}function q(){return F.apply(this,arguments)}function F(){return(F=y((function*(){yield x(D,this,I).call(this,1);var t=Number(T(B,this).totalReviewsCount);T(M,this).init(1,{totalRecords:t}),x(D,this,A).call(this)}))).apply(this,arguments)}function A(){var{filters:t}=T(B,this);t&&this.emit("filters-data",t)}function I(t){return _.apply(this,arguments)}function _(){return(_=y((function*(t){T(N,this).offset=Number(T(N,this).limit*(t-1)),T(k,this).showLoading();try{S(B,this,yield w({customUrl:T(L,this),customParams:T(N,this)})),this.emit("data-update",T(B,this)),T(k,this).render(T(B,this).reviews)}finally{T(k,this).hideLoading()}}))).apply(this,arguments)}function U(t,e,i){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,i)}function z(t,e){return t.get(X(t,e))}function H(t,e,i){return t.set(X(t,e),i),i}function X(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}var G=new WeakMap,V=new WeakMap;class J extends n.A{constructor(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),U(this,G,void 0),U(this,V,void 0),H(G,this,t),H(V,this,e)}get reviewElement(){return z(G,this)}get data(){return z(V,this)}static createTemplate(){throw new Error("Method 'createTemplate()' must be implemented")}updateContent(){throw new Error("Method 'updateContent()' must be implemented")}init(){throw new Error("Method 'init()' must be implemented")}}function K(t,e){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.add(t)}function Q(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}var Y=".js-bcom-review-item",Z=".js-bcom-review-item-flag",$=".js-bcom-review-item-initials",tt=".js-bcom-review-item-date",et=".js-bcom-review-item-score",it=".js-bcom-review-item-rating-word",
1nt=".js-bcom-review-item-purpose",rt=".js-bcom-review-item-positive",st=".js-bcom-review-item-negative",ot={userName:".js-bcom-review-item-name",countryName:".js-bcom-review-item-country-name",travelPurpose:".js-bcom-review-item-travel-purpose",prosText:".js-bcom-review-item-positive-text",consText:".js-bcom-review-item-negative-text"},at="bcom-reviews-item",ct=new WeakSet;class lt extends J{constructor(){super(...arguments),K(this,ct)}static createTemplate(){var t=document.getElementById(at);return t?t.content.cloneNode(!0).querySelector(Y):(console.error("Review template #".concat(at," not found")),null)}updateContent(t){t&&(((t,e,i)=>{for(var[n,r]of Object.entries(i)){var s=t.querySelector(r);s&&(s.textContent=e[n])}})(this.reviewElement,t,ot),Q(ct,this,ut).call(this,t),Q(ct,this,vt).call(this,t),Q(ct,this,ft).call(this,t))}init(){}}function ht(t,e){var i=this.reviewElement.querySelector(t);i&&(i.textContent=e)}function ut(t){var{countryCode:e}=t,i=this.reviewElement.querySelector(Z);if(i){var n,r=i.dataset.src;if(r&&e)i.src=(n=e,"".concat(r).concat(n.toLowerCase(),".svg")),i.alt=e.toLowerCase()}}function vt(t){var e,{date:i,userName:n,rating:r,ratingWord:s}=t;Q(ct,this,ht).call(this,tt,(t=>t?new Date(t.replace(" ","T")).toLocaleDateString(travel.options.language,{day:"numeric",month:"long",year:"numeric"}):"")(i)),Q(ct,this,ht).call(this,$,(e=n)?e.trim().split(/\s+/).map((t=>t.charAt(0).toUpperCase())).join(""):""),Q(ct,this,ht).call(this,et,r),Q(ct,this,ht).call(this,it,s)}function ft(t){var e,i,n,{prosText:r,consText:s,travelPurpose:o}=t;r||null===(e=this.reviewElement.querySelector(rt))||void 0===e||e.remove(),s||null===(i=this.reviewElement.querySelector(st))||void 0===i||i.remove(),o||null===(n=this.reviewElement.querySelector(nt))||void 0===n||n.remove()}var pt=i(951);const mt=function(t){var{top:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(0,pt.XF)(t),n=e||0,r=document.body.getBoundingClientRect().top,s=i.getBoundingClientRect().top-r-n;window.scrollTo({top:s,behavior:"smooth"})};function dt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function wt(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?dt(Object(i),!0).forEach((function(e){bt(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):dt(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function bt(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function gt(t,e,i){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,i)}function yt(t,e){return t.get(Ot(t,e))}function jt(t,e,i){return t.set(Ot(t,e),i),i}function Ot(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}var Pt={containerSelector:".js-bcom-reviews-wrapper",loadingSelector:"",scrollOffset:0},Et="is-loading",Ct="is-loading-empty",Tt=new WeakMap,St=new WeakMap,xt=new WeakMap,kt=new WeakMap;class Bt extends n.A{constructor(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(super(),gt(this,Tt,void 0),gt(this,St,void 0),gt(this,xt,void 0),gt(this,kt,void 0),jt(Tt,this,t),jt(kt,this,wt(wt({},Pt),e)),jt(St,this,document.querySelector(yt(kt,this).containerSelector)),jt(xt,this,(0,pt.XF)(yt(kt,this).loadingSelector)),!yt(St,this))throw new Error("Bcom reviews container with selector '".concat(yt(kt,this).containerSelector,"' not found"));if(yt(kt,this).loadingSelector&&!yt(xt,this))throw new Error("Bcom reviews loading container with selector '".concat(yt(kt,this).loadingSelector,"' not found"))}render(t){var e=document.createDocumentFragment(),i=[];t.forEach(((t,n)=>{var r=yt(Tt,this).createTemplate();if(r){var s=new(yt(Tt,this))(r,{index:n});
1s.updateContent(t),e.appendChild(r),i.push(s)}})),this.clear(),yt(St,this).appendChild(e),i.forEach((t=>t.init()))}clear(){yt(St,this).innerHTML=""}showLoading(){if(!yt(xt,this))return this.clear();yt(xt,this).classList.toggle(Ct,!yt(St,this).childElementCount),yt(xt,this).classList.add(Et)}hideLoading(){var t;null===(t=yt(xt,this))||void 0===t||t.classList.remove(Et,Ct)}scrollToReviews(){yt(St,this)&&mt(yt(St,this),{top:Number(yt(kt,this).scrollOffset)})}}function Mt(t,e,i){Nt(t,e),e.set(t,i)}function Nt(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Wt(t,e){return t.get(Dt(t,e))}function Lt(t,e,i){return t.set(Dt(t,e),i),i}function Dt(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}var Rt=new WeakMap,qt=new WeakMap,Ft=new WeakMap,At=new WeakMap,It=new WeakSet;class _t{constructor(t){var e,i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";Nt(e=this,i=It),i.add(e),Mt(this,Rt,void 0),Mt(this,qt,void 0),Mt(this,Ft,void 0),Mt(this,At,{}),Lt(qt,this,!1),Dt(It,this,Ut).call(this,t,n,r)}setDisable(){Wt(Rt,this).classList.add("is-disabled")}setEnable(){Wt(Rt,this).classList.remove("is-disabled")}setActive(){Wt(Rt,this).classList.add("is-active")}setInactive(){Wt(Rt,this).classList.remove("is-active")}setText(t){Wt(Rt,this).innerText=t}get exists(){return Wt(qt,this)}get template(){return Wt(Rt,this)}get pageNumber(){return Wt(Ft,this)}set pageNumber(t){Lt(Ft,this,t)}on(t,e){Wt(Rt,this).addEventListener(t,e),Dt(It,this,zt).call(this,t,e)}removeEvents(){Object.keys(Wt(At,this)).forEach((t=>{Wt(At,this)[t].forEach((e=>Wt(Rt,this).removeEventListener(t,e)))})),Lt(At,this,{})}destroy(){this.removeEvents(),Wt(Rt,this).remove()}}function Ut(t,e,i){if(t)return t instanceof HTMLElement||t instanceof SVGElement?Lt(Rt,this,t):Lt(Rt,this,document.querySelector(t)),void Lt(qt,this,!0);var n=document.createElement("div");e&&(n.className=e),i&&(n.innerText=i),Lt(Rt,this,n)}function zt(t,e){Wt(At,this)[t]?Wt(At,this)[t].push(e):Wt(At,this)[t]=[e]}function Ht(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Xt(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ht(Object(i),!0).forEach((function(e){Gt(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ht(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Gt(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Vt(t,e,i){Jt(t,e),e.set(t,i)}function Jt(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Kt(t,e){return t.get(Yt(t,e))}function Qt(t,e,i){return t.set(Yt(t,e),i),i}function Yt(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}var Zt=new WeakMap,$t=new WeakMap,te=new WeakMap,ee=new WeakMap,ie=new WeakMap,ne=new WeakMap,re=new WeakMap,se=new WeakMap,oe=new WeakMap,ae=new WeakMap,ce=new WeakSet;class le extends n.A{constructor(t){var e,i;super(),Jt(e=this,i=ce),i.add(e),Vt(this,Zt,void 0),Vt(this,$t,void 0),Vt(this,te,void 0),Vt(this,ee,void 0),Vt(this,ie,void 0),Vt(this,ne,void 0),Vt(this,re,void 0),Vt(this,se,void 0),Vt(this,oe,void 0),Vt(this,ae,[]),Qt(Zt,this,Xt({recordsPerPage:5,btnsCount:3,container:".js-pagination",btnsContainer:!1,btnsContainerClass:"pagination__inner",btnClass:"pagination__btn",prevNextNavigation:!0,prevBtn:!1,prevBtnClass:"pagination__prev-btn",prevBtnText:"<",nextBtn:!1,nextBtnClass:"pagination__next-btn",nextBtnText:">",firstLastNavigation:!0,firstBtn:!1,firstBtnClass:"pagination__first-btn",firstBtnText:"<<",lastBtn:!1,lastBtnClass:"pagination__last-btn",lastBtnText:">>"},t))}init(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Qt(ee,this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:1),Yt(ce,this,he).call(this,t),this.emit
1("onInit")}reinit(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.destroy(),Qt(ee,this,t),Yt(ce,this,he).call(this,e),this.emit("reinit")}goToPage(t){if(!Number.isInteger(+t)||+t<1)throw new Error("Fail to run goToPage(): page must be integer bigger then 0");Yt(ce,this,je).call(this,t)}destroy(){var t,e,i,n,r,s,o,a;Kt(ae,this).forEach((t=>t.destroy())),Kt(Zt,this).btnsContainer?Kt(ie,this).removeEvents():Kt(ie,this).destroy(),Kt(Zt,this).prevBtn?null===(t=Kt(ne,this))||void 0===t||t.removeEvents():null===(e=Kt(ne,this))||void 0===e||e.destroy(),Kt(Zt,this).nextBtn?null===(i=Kt(re,this))||void 0===i||i.removeEvents():null===(n=Kt(re,this))||void 0===n||n.destroy(),Kt(Zt,this).firstBtn?null===(r=Kt(se,this))||void 0===r||r.removeEvents():null===(s=Kt(se,this))||void 0===s||s.destroy(),Kt(Zt,this).lastBtn?null===(o=Kt(oe,this))||void 0===o||o.removeEvents():null===(a=Kt(oe,this))||void 0===a||a.destroy(),Qt(ie,this,null),Qt(ae,this,[])}get activePage(){return Kt(ee,this)}}function he(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Qt(Zt,this,Xt(Xt({},Kt(Zt,this)),t)),Yt(ce,this,ue).call(this),Qt(te,this,Math.ceil(Kt(Zt,this).totalRecords/Kt(Zt,this).recordsPerPage)),Kt(Zt,this).btnsCount>Kt(te,this)&&(Kt(Zt,this).btnsCount=Kt(te,this)),Yt(ce,this,fe).call(this),Yt(ce,this,ve).call(this),Yt(ce,this,pe).call(this),Yt(ce,this,we).call(this),Yt(ce,this,ge).call(this)}function ue(){if(!Number.isInteger(+Kt(Zt,this).totalRecords)||+Kt(Zt,this).totalRecords<1)throw new Error("Fail to init pagination: config.totalRecords is empty or has invalid value");if(!Number.isInteger(+Kt(Zt,this).btnsCount)||+Kt(Zt,this).btnsCount<1)throw new Error("Fail to init pagination: config.btnsCount is empty or has invalid value");if(!Number.isInteger(+Kt(Zt,this).recordsPerPage)||+Kt(Zt,this).btnsCount<1)throw new Error("Fail to init pagination: config.recordsPerPage is empty or has invalid value")}function ve(){if(!Kt($t,this))throw new Error("Fail to init pagination: can't find pagination container [config.container].");if(!Kt(ie,this).template)throw new Error("Fail to init pagination: config.btnsTemplate has invalid value");if(Kt(Zt,this).prevNextNavigation){if(!Kt(ne,this).template)throw new Error("Fail to init pagination: config.prevBtnTemplate has invalid value");if(!Kt(re,this).template)throw new Error("Fail to init pagination: config.nextBtnTemplate has invalid value")}if(Kt(Zt,this).firstLastNavigation){if(!Kt(se,this).template)throw new Error("Fail to init pagination: config.firstBtnTemplate has invalid value");if(!Kt(oe,this).template)throw new Error("Fail to init pagination: config.lastBtnTemplate has invalid value")}}function fe(){Qt($t,this,Kt(Zt,this).container instanceof HTMLElement?Kt(Zt,this).container:document.querySelector(Kt(Zt,this).container)),Qt(ie,this,new _t(Kt(Zt,this).btnsContainer,Kt(Zt,this).btnsContainerClass));for(var t=1;t<=Kt(Zt,this).btnsCount;t++){var e=new _t(!1,Kt(Zt,this).btnClass,t);e.pageNumber=t,Kt(ae,this).push(e)}Kt(Zt,this).prevNextNavigation&&(Qt(ne,this,new _t(Kt(Zt,this).prevBtn,Kt(Zt,this).prevBtnClass,Kt(Zt,this).prevBtnText)),Qt(re,this,new _t(Kt(Zt,this).nextBtn,Kt(Zt,this).nextBtnClass,Kt(Zt,this).nextBtnText))),Kt(Zt,this).firstLastNavigation&&(Qt(se,this,new _t(Kt(Zt,this).firstBtn,Kt(Zt,this).firstBtnClass,Kt(Zt,this).firstBtnText)),Qt(oe,this,new _t(Kt(Zt,this).lastBtn,Kt(Zt,this).lastBtnClass,Kt(Zt,this).lastBtnText)))}function pe(){Kt(ie,this).exists||Kt($t,this).append(Kt(ie,this).template),Kt(ae,this).forEach((t=>Kt(ie,this).template.append(t.template))),Kt(Zt,this).prevNextNavigation&&(Kt(ne,this).exists||Kt($t,this).prepend(Kt(ne,this).template),Kt(re,this).exists||Kt($t,this).append(Kt(re,this).template)),Kt(Zt,this).firstLastNavigation&&(Kt(se,this).exists||Kt($t,this).prepend(Kt(se,this).template),Kt(oe,this).exists||Kt($t,this).append(Kt(oe,this).template)),Yt(ce,this,me).call(this)}function me(){var t,e,i,n;Kt(ae,this).forEach((t=>{t.on("click",(()=>Yt(ce,this,de).call(this,t.pageNumber)))})),null===(t=Kt(ne,this))||void 0===t||t.on("click",(()=>Yt(ce,this,de).call(this,Kt(ee,this)-1))),null===(e=Kt(re,this))||void 0===e||e.on("click",(()=>Yt(ce,this,de).call(this,Kt(ee,this)+1))),null===(i=Kt(se,this))||void 0===i||i.on("click",(()=>Yt(ce,this,de).call(this,1))),null===(n=Kt(oe,this))||void 0===n||n.on("click",(()=>Yt(ce,this,de).call(this,Kt(te,this))))}
1function de(t){this.emit("click",t),Yt(ce,this,je).call(this,t)}function we(){for(var t=(Kt(Zt,this).btnsCount-1)/2,e=Math.ceil(Kt(ee,this)-t),i=e=(e=e+Kt(Zt,this).btnsCount<=Kt(te,this)?e:Kt(te,this)-Kt(Zt,this).btnsCount+1)>0?e:1,n=0;n<Kt(Zt,this).btnsCount;i++,n++)Yt(ce,this,be).call(this,n,i)}function be(t,e){Kt(ae,this)[t].setText(e),Kt(ae,this)[t].pageNumber=e}function ge(){var t,e,i,n,r,s,o,a;Kt(ae,this).forEach((t=>{t.pageNumber===Kt(ee,this)?t.setActive():t.setInactive()})),1===Kt(ee,this)?null===(t=Kt(ne,this))||void 0===t||t.setDisable():null===(e=Kt(ne,this))||void 0===e||e.setEnable(),1===Kt(ee,this)?null===(i=Kt(se,this))||void 0===i||i.setDisable():null===(n=Kt(se,this))||void 0===n||n.setEnable(),Kt(ee,this)===Kt(te,this)?null===(r=Kt(re,this))||void 0===r||r.setDisable():null===(s=Kt(re,this))||void 0===s||s.setEnable(),Kt(ee,this)===Kt(te,this)?null===(o=Kt(oe,this))||void 0===o||o.setDisable():null===(a=Kt(oe,this))||void 0===a||a.setEnable()}function ye(t){return Kt(ee,this)!==t&&(!(t<1)&&!(t>Kt(te,this)))}function je(t){Yt(ce,this,ye).call(this,t)&&(Qt(ee,this,t),Yt(ce,this,we).call(this),Yt(ce,this,ge).call(this),this.emit("pageChange",Kt(ee,this)))}function Oe(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Pe(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Oe(Object(i),!0).forEach((function(e){Ee(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Oe(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Ee(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ce(t,e,i){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,i)}function Te(t,e){return t.get(xe(t,e))}function Se(t,e,i){return t.set(xe(t,e),i),i}function xe(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}var ke="is-inited",Be="hidden",Me=new WeakMap,Ne=new WeakMap,We=new WeakMap,Le=new WeakMap,De=new WeakMap,Re=new WeakMap,qe=new WeakMap;class Fe extends n.A{constructor(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),Ce(this,Me,void 0),Ce(this,Ne,void 0),Ce(this,We,void 0),Ce(this,Le,void 0),Ce(this,De,void 0),Ce(this,Re,1),Ce(this,qe,{}),Se(Ne,this,document.querySelector(".js-bcom-reviews-pagination")),Se(We,this,Te(Ne,this).querySelector(".js-bcom-reviews-pagination-last-wrap")),Se(Le,this,Te(Ne,this).querySelector(".js-bcom-reviews-pagination-last")),Se(qe,this,Pe({recordsPerPage:15,totalRecords:0,container:Te(Ne,this).querySelector(".js-bcom-reviews-pagination-inner"),firstLastNavigation:!0,firstBtn:Te(Ne,this).querySelector(".js-bcom-reviews-pagination-first"),lastBtn:Te(Le,this),btnsCount:3,btnsContainer:Te(Ne,this).querySelector(".js-bcom-reviews-pagination-inner"),btnClass:"bcom-reviews-pagination__btn",prevBtn:".js-bcom-reviews-pagination-prev",nextBtn:".js-bcom-reviews-pagination-next"},t))}init(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Se(qe,this,Pe(Pe({},Te(qe,this)),e)),Se(Re,this,t),Te(qe,this).totalRecords<=Te(qe,this).recordsPerPage)Te(Ne,this).classList.remove(ke);else{if(Te(De,this))return Te(Ne,this).classList.add(ke),void Te(Me,this).reinit(Te(Re,this),Te(qe,this));Se(Me,this,new le(Te(qe,this))),Te(Me,this).on("pageChange",(t=>
1{this.emit("pageChange",t)})),Te(Me,this).on("click",(t=>{this.emit("click",t)})),Te(Me,this).on("onInit",(()=>Te(Ne,this).classList.add(ke))),Te(Me,this).init(Te(Re,this)),Se(De,this,!0),Te(We,this).classList.add(Be)}}}var Ae=()=>{var t=document.querySelector(".js-reviews-bcom-head-row");return(null==t?void 0:t.offsetHeight)||0};function Ie(t,e){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.add(t)}var _e=new WeakSet;class Ue extends n.A{constructor(){super(),Ie(this,_e),function(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}(_e,this,ze).call(this)}scrollToReviews(t){var e=document.querySelector(t);e&&mt(e,{top:Ae()})}}function ze(){var t=new Bt(lt,{scrollOffset:Ae()}),e=new Fe;new R(t,e,{offset:0,limit:15,customUrl:"/h/api/breviews/"}).on("data-update",(t=>{(null==t?void 0:t.totalReviewsCount)<=0&&this.emit("no-reviews")}))}},5069:(t,e,i)=>{i.d(e,{A:()=>r});var n=i(7380);class r{constructor(){this.emiter=(0,n.A)()}emit(t,e){this.emiter.emit(t,e)}on(t,e){this.emiter.on(t,e)}off(t,e){this.emiter.off(t,e)}}},7380:(t,e,i)=>{function n(t){return{all:t=t||new Map,on:function(e,i){var n=t.get(e);n?n.push(i):t.set(e,[i])},off:function(e,i){var n=t.get(e);n&&(i?n.splice(n.indexOf(i)>>>0,1):t.set(e,[]))},emit:function(e,i){var n=t.get(e);n&&n.slice().map((function(t){t(i)})),(n=t.get("*"))&&n.slice().map((function(t){t(e,i)}))}}}i.d(e,{A:()=>n})}}]);
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.