(window["wpJsonpOkeReviews"]=window["wpJsonpOkeReviews"]||[]).push([["modules/okendo-widget-init","modules/okendo-reviews-settings"],{"090b":function(e,t,o){"use strict";o.r(t),t["default"]={January:"{day} January {year}",February:"{day} February {year}",March:"{day} March {year}",April:"{day} April {year}",May:"{day} May {year}",June:"{day} June {year}",July:"{day} July {year}",August:"{day} August {year}",September:"{day} September {year}",October:"{day} October {year}",November:"{day} November {year}",December:"{day} December {year}","{0} day ago":"1 day ago | {0} days ago","{0} filter":"{0} filter","{0} hour ago":"1 hour ago | {0} hours ago","{0} logo":"{0} logo","{0} minute ago":"1 minute ago | {0} minutes ago","{0} month ago":"1 month ago | {0} months ago","{0} reviews":"0 reviews | 1 review | {0} reviews","{0} second ago":"1 second ago | {0} seconds ago","{0} verified reviews with an average of {1} stars out of 5 by Okendo Reviews":"{0} verified reviews with an average of {1} stars out of 5 by Okendo Reviews","{0} week ago":"1 week ago | {0} weeks ago","{0} year ago":"1 year ago | {0} years ago","Last updated {0} day ago":"Last updated 1 day ago | Last updated {0} days ago","Last updated {0} hour ago":"Last updated 1 hour ago | Last updated {0} hours ago","Last updated {0} minute ago":"Last updated 1 minute ago | Last updated {0} minutes ago","Last updated {0} month ago":"Last updated 1 month ago | Last updated {0} months ago","Last updated {0} second ago":"Last updated 1 second ago | Last updated {0} seconds ago","Last updated {0} week ago":"Last updated 1 week ago | Last updated {0} weeks ago","Last updated {0} year ago":"Last updated 1 year ago | Last updated {0} years ago","Last updated Just now":"Last updated just now","Last updated Yesterday":"Last updated yesterday","+ {0} more":"+ {0} more","All Products":"All Products","All Reviews":"All Reviews","Ask a Question":"Ask a Question","Based on {0} reviews":"Based on 0 reviews | Based on 1 review | Based on {0} reviews",Clear:"Clear","Click to scroll to reviews":"Click to scroll to reviews","Close Dialog":"Close Dialog","Customer-uploaded image, show more details":"Customer-uploaded image, show more details","Customer-uploaded image":"Customer-uploaded image","Customer-uploaded media carousel. Press left and right arrows to navigate. Press space or enter to open more details.":"Customer-uploaded media carousel. Press left and right arrows to navigate. Press space or enter to open more details.","Customer-uploaded video, show more details":"Customer-uploaded video, show more details","Customer-uploaded video":"Customer-uploaded video","Error Loading Filters":"Error Loading Filters","Error Loading Review":"Error Loading Review","Error occurred loading reviews, please try again":"Error occurred loading reviews, please try again","Error occurred while loading {0}":"Error occurred while loading {0}",Filters:"Filters","Filter Reviews":"Filter Reviews","Flag of {0}":"Flag of {0}","from {0}":"from {0}","Highest Rating":"Highest Rating","I do not recommend this product":"I do not recommend this product","I had this question too":"I had this question too","I recommend this product":"I recommend this product","Just now":"Just now","Least Helpful":"Least Helpful","Loading {0}":"Loading {0}","Loading More Reviews":"Loading More Reviews","Loading more":"Loading more","Loading Questions...":"Loading Questions...","Loading Reviews":"Loading Reviews","Loading...":"Loading...","Lowest Rating":"Lowest Rating","Media Carousel of Reviews User Generated Content":"Media Carousel of Reviews User Generated Content","Most Helpful":"Most Helpful","Most Recent":"Most Recent","Next Slide":"Next Slide",Next:"Next","No questions yet, ask one now?":"No questions yet, ask one now?","No questions yet":"No questions yet","No Reviews Found":"No Reviews Found","No reviews yet, write one now?":"No reviews yet, write one now?","No reviews yet":"No reviews yet","No, this review was not helpful":"No, this review was not helpful",Oldest:"Oldest","Opens in a new window":"Opens in a new window","Open Okendo Reviews in a new window":"Open Okendo Reviews in a new window","out of 5 Stars":"out of 5 Stars","person voted no":"person voted no | people voted no","person voted yes":"person voted yes | people voted yes","Photos & Videos":"Photos & Videos","Posted on Instagram {0}":"Posted on Instagram {0}","Powered by Okendo":"Powered by Okendo","Press left and right arrows to navigate.":"Press left and right arrows to navigate.","Previous Slide":"Previous Slide",Previous:"Previous","Profile picture for {0}":"Profile picture for {0}",Question:"Questions | Question | Questions",Questions:"Questions","Rated {0} on a scale of 1 to 5":"Rated {0} on a scale of 1 to 5","Rated {0} on a scale of minus 2 to 2":"Rated {0} on a scale of minus 2 to 2","Rating distribution":"Rating distribution","Rating filter":"Rating filter",Rating:"Rating","Read More":"Read More",Retry:"Retry","Review Carousel":"Review Carousel",Review:"Reviews | Review | Reviews",Reviewing:"Reviewing","Reviews Added":"Reviews Added","Reviews Loaded":"Reviews Loaded",Reviews:"Reviews","Show More":"Show More","Showing reviews starting from page {0}":"Showing reviews starting from page {0}","Slide {0} selected":"Slide {0} selected","Slide {0}":"Slide {0}",Sort:"Sort",Stars:"Stars","tab expanded":"tab expanded","tab collapsed":"tab collapsed","Total {0} star reviews: {1}":"Total {0} star reviews: {1}","Try Again":"Try Again","Unexpected error occurred, please try again":"Unexpected error occurred, please try again","User Media and Reviews Gallery":"User Media and Reviews Gallery","Verified Buyer":"Verified Buyer","Verified Reviewer":"Verified Reviewer","Verified Reviews":"Verified Reviews","View {0}":"View {0}","Viewing Slides {0} to {1} of {2}":"Viewing Slides {0} to {1} of {2}","Was this helpful?":"Was this helpful?","would recommend these products":"would recommend these products","would recommend this product":"would recommend this product","Write a Review":"Write a Review","Yes, this review was helpful":"Yes, this review was helpful",Yesterday:"Yesterday","Incentivized review":"Incentivized review","Verified by Shop app":"Verified by Shop app","This review was received as part of a promotion or in exchange for an incentive. The incentive was offered to both positive and negative reviews.":"This review was received as part of a promotion or in exchange for an incentive. The incentive was offered to both positive and negative reviews.","Translate to da":"Translate to Danish","Translate to de":"Translate to German","Translate to el":"Translate to Greek","Translate to en":"Translate to English","Translate to es":"Translate to Spanish","Translate to fr":"Translate to French","Translate to id":"Translate to Indonesian","Translate to it":"Translate to Italian","Translate to ja":"Translate to Japanese","Translate to ko":"Translate to Korean","Translate to nb":"Translate to Norwegian","Translate to nl":"Translate to Dutch","Translate to no":"Translate to Norwegian","Translate to pl":"Translate to Polish","Translate to pt":"Translate to Portuguese","Translate to pt-br":"Translate to Portuguese (Brazil)","Translate to pt-pt":"Translate to Portuguese (Portugal)","Translate to ro":"Translate to Romanian","Translate to ru":"Translate to Russian","Translate to sv":"Translate to Swedish","Translate to th":"Translate to Thai","Translate to uk":"Translate to Ukrainian","Translate to vi":"Translate to Vietnamese","Translate to zh-tw":"Translate to Chinese (Traditional)",Translated:"Translated","Translated from af":"Translated from Afrikaans","Translated from sq":"Translated from Albanian","Translated from am":"Translated from Amharic","Translated from ar":"Translated from Arabic","Translated from hy":"Translated from Armenian","Translated from az":"Translated from Azerbaijani","Translated from bn":"Translated from Bengali","Translated from bs":"Translated from Bosnian","Translated from bg":"Translated from Bulgarian","Translated from ca":"Translated from Catalan","Translated from zh":"Translated from Chinese (Simplified)","Translated from zh-tw":"Translated from Chinese (Traditional)","Translated from hr":"Translated from Croatian","Translated from cs":"Translated from Czech","Translated from da":"Translated from Danish","Translated from fa-af":"Translated from Dari","Translated from nl":"Translated from Dutch","Translated from en":"Translated from English","Translated from et":"Translated from Estonian","Translated from fa":"Translated from Farsi (Persian)","Translated from tl":"Translated from Filipino, Tagalog","Translated from fi":"Translated from Finnish","Translated from fr":"Translated from French","Translated from fr-ca":"Translated from French (Canada)","Translated from ka":"Translated from Georgian","Translated from de":"Translated from German","Translated from el":"Translated from Greek","Translated from gu":"Translated from Gujarati","Translated from ht":"Translated from Haitian Creole","Translated from ha":"Translated from Hausa","Translated from he":"Translated from Hebrew","Translated from hi":"Translated from Hindi","Translated from hu":"Translated from Hungarian","Translated from is":"Translated from Icelandic","Translated from id":"Translated from Indonesian","Translated from ga":"Translated from Irish","Translated from it":"Translated from Italian","Translated from ja":"Translated from Japanese","Translated from kn":"Translated from Kannada","Translated from kk":"Translated from Kazakh","Translated from ko":"Translated from Korean","Translated from lv":"Translated from Latvian","Translated from lt":"Translated from Lithuanian","Translated from mk":"Translated from Macedonian","Translated from ms":"Translated from Malay","Translated from ml":"Translated from Malayalam","Translated from mt":"Translated from Maltese","Translated from mr":"Translated from Marathi","Translated from mn":"Translated from Mongolian","Translated from no":"Translated from Norwegian (Bokmål)","Translated from ps":"Translated from Pashto","Translated from pl":"Translated from Polish","Translated from pt":"Translated from Portuguese (Brazil)","Translated from pt-pt":"Translated from Portuguese (Portugal)","Translated from pa":"Translated from Punjabi","Translated from ro":"Translated from Romanian","Translated from ru":"Translated from Russian","Translated from sr":"Translated from Serbian","Translated from si":"Translated from Sinhala","Translated from sk":"Translated from Slovak","Translated from sl":"Translated from Slovenian","Translated from so":"Translated from Somali","Translated from es":"Translated from Spanish","Translated from es-mx":"Translated from Spanish (Mexico)","Translated from sw":"Translated from Swahili","Translated from sv":"Translated from Swedish","Translated from ta":"Translated from Tamil","Translated from te":"Translated from Telugu","Translated from th":"Translated from Thai","Translated from tr":"Translated from Turkish","Translated from uk":"Translated from Ukrainian","Translated from ur":"Translated from Urdu","Translated from uz":"Translated from Uzbek","Translated from vi":"Translated from Vietnamese","Translated from cy":"Translated from Welsh","Show original":"Show original","Error while translating review":"Error while translating review","Redeem {0} rewards using your points":"Redeem {0} rewards using your points","Redeem a reward using your points":"Redeem a reward using your points","Complete {0} orders with a loyalty coupon":"Complete {0} orders with a loyalty coupon","Complete an order with a loyalty coupon":"Complete an order with a loyalty coupon","Refer {0} friends":"Refer {0} friends","Refer a friend":"Refer a friend","Leave {0} reviews":"Leave {0} reviews","Leave a review":"Leave a review","Leave a review with a photo":"Leave a review with a photo","Leave a review with a video":"Leave a review with a video","Earn loyalty points {0} times":"Earn loyalty points {0} times","Earn loyalty points once":"Earn loyalty points once","{0} tier":"{0} tier",Featured:"Featured","Generated by AI from {0} most recent customer reviews":"Generated by AI from {0} most recent customer reviews","Last updated {0}":"Last updated {0}",Search:"Search","Search Reviews":"Search Reviews"}},"1f59":function(e,t,o){e.exports=o.p+"img/broken-image.cbc04156.svg"},2003:function(e,t,o){"use strict";o.r(t),o.d(t,"InitialiseWidgets",(function(){return M}));var a=o("ec26"),r=o("2b0e"),i=(o("2fb4"),o("88c3")),n=o("9de8"),s=o("a8f8"),l=o("92ca"),d=o("7392"),u=o("b943"),c=o("dc15"),v={inserted:(e,t)=>{"IMG"===(null===e||void 0===e?void 0:e.nodeName)&&(e.src=t.value)}},g={inserted:(e,t)=>{var o;if(!t.value)return;const a=null!==(o=t.arg)&&void 0!==o?o:"click",r=t.value;l["a"].bindGAEventToElement(e,a,r)}},m=o("1f59"),f=o.n(m);class b{constructor(e,t){this.imageElement=e,this.imageSrc=t,this.isLoaded=!1,this.onImageErrorFunc=this.onImageError.bind(this),this.showImageFunc=this.showImage.bind(this),this.hideImage(),this.createObserver()}debounceValueUpdate(e){this.timer&&clearTimeout(this.timer),this.timer=window.setTimeout(()=>{this.imageSrc=e,this.isLoaded&&this.loadImage(),this.timer=void 0},200)}hideImage(){this.imageElement.style.opacity="0",this.imageElement.style.transition="all 0.1s ease-out"}showImage(){this.imageElement.style.opacity="1",this.removeEventListeners()}onImageError(){this.imageElement.src=f.a,this.imageElement.classList.add("oke-is-error")}loadImage(){const e=this.imageSrc;this.imageElement.addEventListener("load",this.showImageFunc),this.imageElement.addEventListener("error",this.onImageErrorFunc),e?this.imageElement.src=e:this.onImageError(),this.isLoaded=!0}removeEventListeners(){this.imageElement.removeEventListener("load",this.showImageFunc),this.imageElement.removeEventListener("error",this.onImageErrorFunc)}createObserver(){const e=new IntersectionObserver((e,t)=>{for(const o of e)o.isIntersecting&&(this.loadImage(),t.disconnect())});e.observe(this.imageElement)}}var h=(()=>{const e=new WeakMap;return{inserted:(t,o)=>{if("IMG"===(null===t||void 0===t?void 0:t.nodeName)){const a=new b(t,o.value);e.set(t,a)}},componentUpdated:(t,o)=>{const a=e.get(t);a&&o.oldValue!==o.value&&o.value&&a.debounceValueUpdate(o.value)}}})(),p={inserted:e=>{"IMG"===(null===e||void 0===e?void 0:e.nodeName)&&(e.style.opacity="0")}},w={inserted:(e,t)=>{}},k=o("7c19");class y{constructor(){this.trackableWidgets=new Map,this.kTimerIntervalMilliseconds=5e3,document.addEventListener("visibilitychange",this.handleVisibilityChange.bind(this),!1)}createObserver(e,t){if(!e||!t.widgetId||!t.widgetType)return;const o={root:null,rootMargin:t.rootMargin,threshold:t.threshold?[t.threshold]:void 0},a=new IntersectionObserver(this.intersectionCallback.bind(this),o);a.observe(e),t.observer=a,this.trackableWidgets.set(e,t)}destroyObserver(e){var t;const o=this.trackableWidgets.get(e);o&&(o.isIntersecting=!1,this.clearInterval(o),null===(t=o.observer)||void 0===t||t.disconnect(),this.trackableWidgets.delete(e),0===this.trackableWidgets.size&&document.removeEventListener("visibilitychange",this.handleVisibilityChange.bind(this),!1))}handleVisibilityChange(){this.trackableWidgets.forEach(e=>{document.hidden?this.clearInterval(e):e.isIntersecting&&(e.intervalId=this.setInterval(e.widgetType))})}intersectionCallback(e){e.forEach(e=>{var t,o,a;const r=e.target,i=this.trackableWidgets.get(r);if(!i)return;const n=null===(t=r.parentElement)||void 0===t?void 0:t.style,s=!(null===n||void 0===n?void 0:n.opacity)||(null===n||void 0===n?void 0:n.opacity)&&+(null===n||void 0===n?void 0:n.opacity)>0,l="hidden"!==(null===(o=r.parentElement)||void 0===o?void 0:o.style.visibility);e.isIntersecting&&e.intersectionRatio>=(null!==(a=i.threshold)&&void 0!==a?a:0)&&l&&s?(i.isIntersecting=!0,i.intervalId=this.setInterval(i.widgetType)):e.isIntersecting||(i.isIntersecting=!1,this.clearInterval(i))})}sendAnalyticsEvent(e){l["a"].sendGAEvent({action:e+" On Screen Timer",value:this.kTimerIntervalMilliseconds,additionalProperties:{timer_interval_msec:this.kTimerIntervalMilliseconds},type:"view"})}setInterval(e){return window.setInterval(()=>this.sendAnalyticsEvent(e),this.kTimerIntervalMilliseconds)}clearInterval(e){e.intervalId&&(window.clearInterval(e.intervalId),e.intervalId=void 0)}}var C=(()=>{const e=new y;return{inserted:(t,o)=>{const a=k["default"].analyticsSettings;if("none"===(null===a||void 0===a?void 0:a.provider)||!(null===a||void 0===a?void 0:a.isWidgetOnScreenTrackingEnabled)||!o.value)return;const r=o.value;e.createObserver(t,r)},unbind:t=>{e.destroyObserver(t)}}})();function T(e,t){const o="cypress"===e||"prerender"===e;r["a"].directive("ga",o||t?w:g),r["a"].directive("onScreenTracking",o||t?w:C),"cypress"===e?r["a"].directive("lazySrc",v):r["a"].directive("lazySrc",o?p:h)}var S=o("4adb"),L=o("88a3"),A=o("3d80");class R{async setGlobalWidgetSettingsAndDirectives(e,t,o,a,i,n){e||(e=S["default"]),this.setWidgetSettings(e,t,a,i,n);const s=this.getDefaultWidgetLocale(t);await this.setWidgetLocale(s.code,s.variant,null===t||void 0===t?void 0:t.i18n),this.setSubscriberId(o),"on-load"===k["default"].widgetSettings.global.reviewTranslationsMode&&(r["a"].$localeStore.shouldFetchTranslationsWithReviews=!0,l["a"].sendGAEvent({action:"On-load Review Translation",additionalProperties:{toLocale:r["a"].$localeStore.currentLocale.code.toLowerCase()},type:"interaction"}));const d=window.okeInShopifyThemeCustomizer;T(null===t||void 0===t?void 0:t.widgetRenderMode,d)}setWidgetSettings(e,t,o,a,r){var i;const s=null!==(i=k["default"].widgetSettings)&&void 0!==i?i:S["default"];e&&n["a"].merge(e,s),k["default"].widgetSettings=s,t&&(k["default"].isTestModeEnabled=t.isTestModeEnabled||!1,k["default"].locale=t.locale||void 0,k["default"].matchCustomerLocale=t.matchCustomerLocale||!1),o&&(k["default"].features=o),a&&(k["default"].analyticsSettings=a),r&&(k["default"].customDomain=r),this.writeCSSVariables(s),this.writeStarSymbols(s)}async setWidgetLocale(e="en",t,o){const a=await Object(u["a"])(e,t,o);a&&r["a"].$localeStoreActions.setLocale(a)}setSubscriberId(e){k["default"].subscriberId=e}getDefaultWidgetLocale(e){if(!e)return s["LocaleUtils"].kEnglish;const t=s["LocaleUtils"].getOkendoLocaleWithFallback(null===e||void 0===e?void 0:e.localeAndVariant,null===e||void 0===e?void 0:e.locale),o=Object(c["a"])(e);return o&&o.code!==t.code?o:t}writeStarSymbols(e){var t,o;const a=null!==(o=null===(t=e.global)||void 0===t?void 0:t.stars.shape)&&void 0!==o?o:A["d"];if("custom"===a.type)fetch(a.assetUrl).then(e=>{if(e.ok)e.text().then(e=>{const t=Object(A["a"])(a,e);L["a"].addOrUpdateTargetBlock("svg",A["e"],t,"outerHTML","body")});else{k["default"].widgetSettings.global.stars.shape=A["d"];const e=Object(A["b"])(A["d"]);L["a"].addOrUpdateTargetBlock("svg",A["e"],e,"outerHTML","body")}});else{const e=Object(A["b"])(a);L["a"].addOrUpdateTargetBlock("svg",A["e"],e,"outerHTML","body")}}writeCSSVariables(e){const t=d["a"].cssVariablesId,o=d["a"].getCssVariablesSnippet(e);L["a"].addOrUpdateTargetBlock("style",t,o,"outerHTML")}}var E=o("da28");class M extends R{initialiseWidgets(e,t){if(e.starRating.length&&this.initialiseWidget(e.starRating,null===t||void 0===t?void 0:t.starRating),e.widget.length&&(this.removeMetafieldResizeEventBinding(),this.initialiseWidget(e.widget,null===t||void 0===t?void 0:t.widget)),e.questions.length&&this.initialiseWidget(e.questions,null===t||void 0===t?void 0:t.questions),e.homepageCarousel.length&&this.initialiseWidget(e.homepageCarousel,null===t||void 0===t?void 0:t.homepageCarousel),e.badge.length&&this.initialiseWidget(e.badge,null===t||void 0===t?void 0:t.badge),e.reviewsModal.length&&E["a"].bindOpenReviewsModalEventForElements(e.reviewsModal),e.reviewsTab){const e=()=>Promise.all([o.e("okendo-reviews-core"),o.e("modules/okendo-reviews-tab")]).then(o.bind(null,"7197"));this.initialiseWidgetWithoutSnippet(e)}e.mediaGrid.length&&this.initialiseWidget(e.mediaGrid,null===t||void 0===t?void 0:t.mediaGrid),e.mediaCarousel.length&&this.initialiseWidget(e.mediaCarousel,null===t||void 0===t?void 0:t.mediaCarousel),e.reviewsSummary.length&&this.initialiseWidget(e.reviewsSummary,null===t||void 0===t?void 0:t.reviewsSummary)}componentSelect(e){let t;return e.hasAttribute("data-oke-star-rating")&&(t=()=>Promise.all([o.e("okendo-reviews-core"),o.e("modules/okendo-star-rating")]).then(o.bind(null,"4cac"))),e.hasAttribute("data-oke-widget")&&(t=()=>Promise.all([o.e("okendo-reviews-core"),o.e("modules/okendo-widget")]).then(o.bind(null,"ea14"))),e.hasAttribute("data-oke-questions-widget")&&(t=()=>Promise.all([o.e("okendo-reviews-core"),o.e("modules/okendo-questions-widget")]).then(o.bind(null,"9dab"))),e.hasAttribute("data-oke-carousel")&&(t=()=>Promise.all([o.e("okendo-reviews-lib"),o.e("okendo-reviews-core"),o.e("modules/okendo-homepage-carousel")]).then(o.bind(null,"c0bb"))),e.hasAttribute("data-oke-badge")&&(t=()=>Promise.all([o.e("okendo-reviews-core"),o.e("modules/okendo-reviews-badge")]).then(o.bind(null,"122a"))),e.hasAttribute("data-oke-media-grid")&&(t=()=>Promise.all([o.e("okendo-reviews-core"),o.e("modules/okendo-media-grid")]).then(o.bind(null,"57a1"))),e.hasAttribute("data-oke-media-carousel")&&(t=()=>Promise.all([o.e("okendo-reviews-lib"),o.e("okendo-reviews-core"),o.e("modules/okendo-media-carousel")]).then(o.bind(null,"9d4e"))),e.hasAttribute("data-oke-reviews-summary")&&(t=()=>Promise.all([o.e("okendo-reviews-lib"),o.e("okendo-reviews-core"),o.e("modules/okendo-reviews-summary")]).then(o.bind(null,"7459"))),t}initialiseWidget(e,t){var o,r;const i="0.75.2";for(const s of e){const e=s.getAttribute("data-oke-reviews-group-id"),l=s.getAttribute("data-oke-reviews-product-id"),d=n["a"].getWidgetMode(null!==l&&void 0!==l?l:void 0,null!==e&&void 0!==e?e:void 0),u=document.querySelectorAll("style[data-oke-reviews-version], link[data-oke-reviews-version]");u.forEach(e=>{const t=e.getAttribute("data-oke-reviews-version");t!==i&&e.remove()});const c=s.querySelector(".okeReviews"),v=null===c||void 0===c?void 0:c.getAttribute("data-oke-reviews-version"),g=s.querySelector("#oke-metafield-data, [data-oke-metafield-data]"),m=g?JSON.parse(g.innerHTML):void 0,f=(null===window||void 0===window?void 0:window.okeShowPreviewData)?void 0:null!==t&&void 0!==t?t:m,b=s.hasAttribute("data-oke-widget"),h=s.hasAttribute("data-oke-questions-widget"),p=b||h?s.getAttribute("data-oke-reviews-ask-question-product-id"):null,w=b?s.getAttribute("data-oke-reviews-write-review-product-id"):null;let k,y,C,T;if(s.hasAttribute("data-oke-badge")&&(k=this.getReviewsBadgeDataAttributes(s)),s.hasAttribute("data-oke-carousel")&&(y=this.getReviewsCarouselDataAttributeSettings(s)),s.hasAttribute("data-oke-star-rating")){const e=n["a"].stringOrNullToBoolOrUndefined(s.getAttribute("data-oke-all-reviews"));C={scrollDisabled:"true"===s.getAttribute("data-oke-scroll-disabled"),..."boolean"===typeof e?{isInAllReviewsMode:e}:void 0}}s.hasAttribute("data-oke-reviews-summary")&&(T={heading:null!==(o=s.getAttribute("data-oke-heading"))&&void 0!==o?o:"Reviews Summary",maxTextLines:parseInt(null!==(r=s.getAttribute("data-oke-max-text-lines"))&&void 0!==r?r:"5",10)});const S=this.componentSelect(s),L=Object(a["a"])(),A=t||!c||v!==i||!f,R=document.createElement("div"),E=document.createElement("div");if(R.appendChild(E),A){s.innerHTML="",s.appendChild(E);const e=t=>{const{id:o}=null===t||void 0===t?void 0:t.detail;o===L&&(s.setAttribute("data-oke-rendered",""),document.removeEventListener("oke-rendered",e))};document.addEventListener("oke-rendered",e)}else{const e=t=>{const{id:o}=null===t||void 0===t?void 0:t.detail,a=500,r=500;o===L&&(R.setAttribute("style",`position: absolute; opacity: 0; top: 0; left: 0; width: 100%; transition: opacity ${r/1e3}s linear;`),null===c||void 0===c||c.setAttribute("style",`opacity: 1; transition: opacity ${r/1e3}s linear;`),s.setAttribute("style","position: relative;"),s.setAttribute("data-oke-rendered",""),s.appendChild(R),setTimeout(()=>{R.style.opacity="1",c&&(c.style.opacity="0"),setTimeout(()=>{const e=R.querySelector(".okeReviews");e&&(s.removeAttribute("style"),s.innerHTML="",s.appendChild(e))},r)},a),document.removeEventListener("oke-rendered",e))};document.addEventListener("oke-rendered",e)}const M={askQuestionProductId:p,badgeDataAttributeSettings:k,carouselDataAttributeSettings:y,reviewsSummaryDataAttributeSettings:T,starRatingDataAttributeSettings:C,groupId:e,initialData:f,productId:l,widgetId:L,widgetMode:d,widgetSnippetElement:s,writeReviewProductId:w};this.initialiseWidgetSnippet(E,S,M)}}initialiseWidgetSnippet(e,t,o){new r["a"]({el:e,i18n:i["a"],render:e=>e(t,{props:o})})}initialiseWidgetWithoutSnippet(e){const t=document.createElement("div");document.body.appendChild(t),new r["a"]({el:t,i18n:i["a"],render:t=>t(e)})}getReviewsBadgeDataAttributes(e){var t,o,a,r,i,s;const l=e.getAttribute("data-oke-star-background-color"),d=e.getAttribute("data-oke-star-border-color"),u=e.getAttribute("data-oke-star-foreground-color"),c=n["a"].stringOrNullToBoolOrUndefined(e.getAttribute("data-oke-star-border-enabled")),v=e.getAttribute("data-oke-star-height-px"),g={backgroundColor:null!==(t=e.getAttribute("data-oke-background-color"))&&void 0!==t?t:void 0,borderColor:null!==(o=e.getAttribute("data-oke-border-color"))&&void 0!==o?o:void 0,colorScheme:null!==(a=e.getAttribute("data-oke-color-scheme"))&&void 0!==a?a:void 0,layout:null!==(r=e.getAttribute("data-oke-layout"))&&void 0!==r?r:void 0,stars:{globalOverrideSettings:{...l?{backgroundColor:l}:void 0,...d?{borderColor:d}:void 0,...u?{foregroundColor:u}:void 0,..."boolean"===typeof c?{showBorder:c}:void 0},...v?{height:{value:+v,unit:"px"}}:void 0},textColor:null!==(i=e.getAttribute("data-oke-text-color"))&&void 0!==i?i:void 0,url:null!==(s=e.getAttribute("data-oke-url"))&&void 0!==s?s:void 0};return g}getReviewsCarouselDataAttributeSettings(e){var t,o,a,r;return{autoPlay:!!n["a"].stringOrNullToBoolOrUndefined(e.getAttribute("data-oke-auto-play")),hideHeader:!!n["a"].stringOrNullToBoolOrUndefined(e.getAttribute("data-oke-hide-header")),headerText:null!==(t=e.getAttribute("data-oke-header-text"))&&void 0!==t?t:"Reviews from our customers",headerUrl:null!==(o=e.getAttribute("data-oke-header-badge-url"))&&void 0!==o?o:void 0,style:{layout:{name:null!==(a=e.getAttribute("data-oke-layout"))&&void 0!==a?a:void 0,reviewDetailsPosition:null!==(r=e.getAttribute("data-oke-reviewer-position"))&&void 0!==r?r:void 0,showProductName:n["a"].stringOrNullToBoolOrUndefined(e.getAttribute("data-oke-show-product-name")),showAttributeBars:n["a"].stringOrNullToBoolOrUndefined(e.getAttribute("data-oke-show-attribute-bars"))}}}}removeMetafieldResizeEventBinding(){window.okeResizeObserver&&(window.okeResizeObserver.disconnect(),window.okeResizeObserver=void 0)}}},"3d80":function(e,t,o){"use strict";o.d(t,"d",(function(){return a})),o.d(t,"e",(function(){return r})),o.d(t,"b",(function(){return i})),o.d(t,"c",(function(){return n})),o.d(t,"a",(function(){return l}));const a={type:"default"},r="oke-star-symbols";function i(e){let t='',o='';switch(e.type){case"circle":t='',o='';break;case"heart":t='',o='';break;case"thin":t='',o='';break;case"rounded":t='',o='';break;case"default":default:break}return s(t,o)}function n(e=a,t){return"custom"===e.type?t?l(e,t):i(a):i(e)}function s(e,t){return`${e}${t}`}function l(e,t){const o=t.replace(/ viewBox="([^"]+)"/,""),a=e.useAssetColors?o:d(o,"var(--oke-stars-foregroundColor)"),r=d(o,"var(--oke-stars-backgroundColor)");return s(r,a)}function d(e,t){let o=e;return/fill/.test(o)&&(o=o.replace(/fill="\S*"/g,`fill="${t}"`).replace(/fill:\S+;*/g,`fill:${t};`)),o}},"4adb":function(e,t,o){"use strict";o.r(t),o.d(t,"kDefaultStarBackgroundColor",(function(){return r})),o.d(t,"kDefaultStarForegroundColor",(function(){return i})),o.d(t,"kDefaultStarBorderColor",(function(){return n})),o.d(t,"kDefaultStarInterspace",(function(){return s})),o.d(t,"kBadgeDarkBackgroundColor",(function(){return l})),o.d(t,"kBadgeLightBackgroundColor",(function(){return d})),o.d(t,"kBadgeLightBorderColor",(function(){return u}));var a=o("3d80");const r="#E5E5E5",i="#FFCF2A",n="#2C3E50",s=2,l="#272D45",d="#F4F4F6",u="#DBDDE4",c={global:{hideOkendoBranding:!0,showIncentiveIndicator:!1,searchEnginePaginationEnabled:!1,dateSettings:{format:{type:"relative"}},font:{fontType:"inherit-from-page"},stars:{backgroundColor:r,borderColor:n,foregroundColor:i,interspace:s,shape:a["d"],showBorder:!1}},reviewsWidget:{tabs:{reviews:!0,questions:!1},showWhenEmpty:!0,style:{highlightColor:"#0E7A82",productImageSize:{value:48,unit:"px"},shadingColor:"#F7F7F8",showDates:!0,spaceAbove:{value:20,unit:"px"},spaceBelow:{value:20,unit:"px"},button:{backgroundColor:"#F7F7F8",backgroundColorHover:"#F4F4F6",backgroundColorActive:"#676986",textColor:"#272D45",textColorHover:"#272D45",textColorActive:"#FFFFFF",borderRadius:{value:4,unit:"px"},borderColor:"#DBDDE4",borderColorHover:"#DBDDE4",borderColorActive:"#676986",borderWidth:{value:1,unit:"px"},font:{hasCustomFontSettings:!1}},filters:{backgroundColor:"#FFFFFF",backgroundColorActive:"#676986",borderColor:"#DBDDE4",borderColorActive:"#676986",textColor:"#2C3E50",textColorActive:"#FFFFFF",borderRadius:{value:100,unit:"px"},searchHighlightColor:"#B2F9E9"},border:{color:"#E5E5EB",width:{value:1,unit:"px"}},text:{primaryColor:"#2C3E50",secondaryColor:"#676986",fontSizeSmall:{value:12,unit:"px"},fontSizeRegular:{value:14,unit:"px"},fontSizeLarge:{value:20,unit:"px"}},avatar:{enabled:!0,size:{value:48,unit:"px"},backgroundColor:"#E5E5EB",placeholderTextColor:"#2C3E50"},attributeBar:{style:"default",borderColor:"#9A9DB1",shadingColor:"#9A9DB1",backgroundColor:"#D3D4DD",markerColor:"#00CAAA"},stars:{height:{value:18,unit:"px"}},headingFont:{hasCustomFontSettings:!1},bodyFont:{hasCustomFontSettings:!1}},header:{columnDistribution:"space-between",verticalAlignment:"top",blocks:[{textAlignment:"left",columnWidth:"one-third",modules:[{name:"rating-average",layout:"one-line"},{name:"rating-breakdown",backgroundColor:"#F4F4F6",shadingColor:"#9A9DB1",stretchMode:"contain"}]},{textAlignment:"left",columnWidth:"two-thirds",modules:[{name:"recommended"},{name:"media-carousel",imageGap:{value:4,unit:"px"},imageHeight:{value:120,unit:"px"}}]}]},reviews:{controls:{filterMode:"closed",writeReviewButtonEnabled:!0,defaultSort:"has_media desc",freeTextSearchEnabled:!1},list:{initialPageSize:5,loadMorePageSize:5,layout:{name:"default",borderStyle:"full",collapseReviewerDetails:!1,showAttributeBars:!1,showProductDetails:"only-when-grouped",showProductVariantName:!1},media:{layout:"featured",size:{value:200,unit:"px"},imageGap:{value:4,unit:"px"}},truncation:{bodyMaxLines:4,enabled:!0,truncateAll:!1},replyTruncation:{bodyMaxLines:4,enabled:!0},loyalty:{showVipTiers:!1,showAchievements:!1}}}},starRatings:{showWhenEmpty:!1,clickBehavior:"scroll-to-widget",scrollTargetId:void 0,style:{text:{content:"review-count",style:"number-and-text",brackets:!1},singleStar:!1,spaceAbove:{value:0,unit:"px"},spaceBelow:{value:0,unit:"px"},height:{value:18,unit:"px"}}},questions:{initialPageSize:6,loadMorePageSize:6},homepageCarousel:{autoPlay:!1,defaultSort:"rating desc",totalSlides:12,slidesPerPage:{medium:2,large:3},scrollBehaviour:"slide",truncation:{bodyMaxLines:4,enabled:!0,truncateAll:!1},style:{layout:{name:"default",reviewDetailsPosition:"below",showAttributeBars:!1,showProductDetails:"only-when-grouped",showProductName:!1,showProductVariantName:!1},highlightColor:"#0E7A82",productImageSize:{value:48,unit:"px"},spaceAbove:{value:20,unit:"px"},spaceBelow:{value:20,unit:"px"},showDates:!0,arrows:{enabled:!0,color:"#676986",size:{value:24,unit:"px"}},avatar:{enabled:!0,size:{value:48,unit:"px"},backgroundColor:"#E5E5EB",placeholderTextColor:"#2C3E50"},border:{color:"#E5E5EB",width:{value:1,unit:"px"}},media:{enabled:!0,size:{value:80,unit:"px"},imageGap:{value:4,unit:"px"}},stars:{height:{value:18,unit:"px"}},text:{primaryColor:"#2C3E50",secondaryColor:"#676986",fontSizeSmall:{value:12,unit:"px"},fontSizeRegular:{value:14,unit:"px"}},headingFont:{hasCustomFontSettings:!1},bodyFont:{hasCustomFontSettings:!1}}},reviewsTab:{enabled:!0,position:"top-left",positionSmall:"top-left",backgroundColor:"#676986",textColor:"#FFFFFF"},mediaGrid:{gridStyleDesktop:{layout:"default-desktop"},gridStyleMobile:{layout:"default-mobile"},gapSize:{value:10,unit:"px"},infiniteScroll:!1,showMoreArrow:{enabled:!0,backgroundColor:"#f4f4f6",arrowColor:"#676986"},linkText:"Read More"},mediaCarousel:{autoPlay:!1,linkText:"Read More",minimumImages:1,slideSize:"medium",arrowPosition:"outside"},reviewsBadge:{colorScheme:"dark",layout:"large"},customCss:""};t["default"]=c},7392:function(e,t,o){"use strict";var a=o("4adb"),r=o("9de8"),i=o("3d80");const n="oke-css-vars",s="oke-reviews-custom-css";function l(e){var t,o,i,s,l,d,u,c,v,g,m,f,b,h,p,w,k,y,C,T,S,L,A,R,E,M,F,I,x,$,O,P,W,j,D,U,B,z,H,N,V,G,_,q,J,K,Q;e.reviewsWidget||(e.reviewsWidget={...a["default"].reviewsWidget}),e.starRatings||(e.starRatings={...a["default"].starRatings});const Z=e.reviewsWidget.style,Y=e.starRatings.style;return``}function d(e,t,o){var a;const r=u(t.customCss);return delete t.customCss,{reviewsHeaderConfig:c(e,t),cssVariables:l(t),starSymbols:Object(i["c"])(null===(a=t.global)||void 0===a?void 0:a.stars.shape,o),customCss:r}}function u(e){if(e)return``}function c(e,t){const{analyticsSettings:o,features:a,locale:r,localeAndVariant:i,matchCustomerLocale:n,isTestModeEnabled:s,customDomain:l}=e;return{subscriberId:e.subscriberId,analyticsSettings:o,customDomain:l,isTestModeEnabled:s||void 0,locale:r,localeAndVariant:i,matchCustomerLocale:n,widgetSettings:t,...v(a)}}function v(e){const t=(null===e||void 0===e?void 0:e.widgetFilters)?{attributeFiltersEnabled:!0}:{},o=(null===e||void 0===e?void 0:e.recorderPlus)?{recorderPlusEnabled:!0}:{},a=(null===e||void 0===e?void 0:e.recorderQandaPlus)?{recorderQandaPlusEnabled:!0}:{},r=(null===e||void 0===e?void 0:e.reviewsKeywordsWidgets)?{reviewsKeywordsEnabled:!0}:{},i=(null===e||void 0===e?void 0:e.reviewsSummaries)?{reviewsSummariesEnabled:!0}:{};return(null===e||void 0===e?void 0:e.recorderPlus)||(null===e||void 0===e?void 0:e.reviewsSummaries)||(null===e||void 0===e?void 0:e.widgetFilters)?{features:{...t,...o,...a,...r,...i}}:{}}function g(e){return!!(null===e||void 0===e?void 0:e.blocks.some(({modules:e})=>e.some(({name:e})=>"reviews-keywords"===e)))}function m(e){return!!(null===e||void 0===e?void 0:e.blocks.some(({modules:e})=>e.some(({name:e})=>"reviews-summary"===e)))}t["a"]={cssVariablesId:n,customCssId:s,getCssVariablesSnippet:l,getHeaderContent:d,getReviewsHeaderConfig:c,getWidgetPlusFeatures:v,hasReviewsKeywordsModule:g,hasReviewsSummaryModule:m}},"7c19":function(e,t,o){"use strict";o.r(t);var a=o("2b0e"),r=o("4adb");const i={subscriberId:void 0,analyticsSettings:void 0,customDomain:void 0,features:void 0,isTestModeEnabled:!1,matchCustomerLocale:!1,productLabel:void 0,widgetSettings:r["default"]};t["default"]=a["a"].observable(i)},"88c3":function(e,t,o){"use strict";var a=o("2b0e"),r=o("a925"),i=o("a8f8"),n={install:e=>{const t=e.observable({currentLocale:i["english"],translatedReviews:{}}),o={setLocale(e){e&&(t.currentLocale=e)},setTranslatedReviewState(e){t.translatedReviews={...e}}};e.$localeStore=t,e.$localeStoreActions=o}};const s=o("090b").default;a["a"].use(n),a["a"].use(r["a"]);const l=new r["a"]({locale:"en",fallbackLocale:"en",messages:{en:s}});t["a"]=l},"92ca":function(e,t,o){"use strict";var a=o("9de8"),r=o("7c19"),i=o("e39c");t["a"]={bindGAEventToElement(e,t,o){"click"===t?e.addEventListener("click",e=>{e.stopPropagation(),this.sendGAEvent(o)},{capture:!1,passive:!0}):"change"===t&&e.addEventListener("change",e=>{const t=e.target.value;this.sendGAEvent({...o,action:`${o.action}${t?" - "+t:""}`})},{capture:!1,passive:!0})},sendGAEvent(e){var t,o,n;e.label=null!==(t=e.label)&&void 0!==t?t:r["default"].productLabel;const s={event_value:e.value,product_label:r["default"].productLabel};switch(e.additionalProperties=null!==(o=e.additionalProperties)&&void 0!==o?o:{},a["a"].merge(s,e.additionalProperties),null===(n=r["default"].analyticsSettings)||void 0===n?void 0:n.provider){case"ua":this.sendUAEvent(e);break;case"gtm":this.sendGTMEvent(e);break;case"gtag":this.sendGTagEvent(e);break}document.dispatchEvent(new CustomEvent("oke-analytics-event",{bubbles:!0,cancelable:!0,composed:!1,detail:{event:"okendo_"+i["a"].titleToSnakeCase(e.action),event_category:"Okendo",event_label:e.label,event_type:e.type,okendo_product:"reviews",...e.additionalProperties}}))},sendUAEvent(e){const t=window.ga;t&&t("send","event","Okendo",i["a"].toTitleCase(e.action),e.label,e.value)},sendGTMEvent(e){const t=window.dataLayer;t&&t.find(e=>"gtm.js"===e.event)&&(this.resetDataLayer(),t.push({event:"okendo_"+i["a"].titleToSnakeCase(e.action),event_category:"Okendo",event_label:e.label,event_type:e.type,okendo_product:"reviews",...e.additionalProperties}))},sendGTagEvent(e){const t=window.gtag;window.dataLayer&&t&&t("event","okendo_"+i["a"].titleToSnakeCase(e.action),{event_category:"Okendo",event_label:e.label,event_type:e.type,okendo_product:"reviews",...e.additionalProperties})},resetDataLayer(){window.dataLayer&&window.dataLayer.push((function(){this.reset()}))}}},"9de8":function(e,t,o){"use strict";var a=o("7c19");t["a"]={getPrettyNumber(e,t=!1){if("undefined"!==typeof e){if(e.toString().includes(",")||e.toString().includes("."))return e.toString();const o="string"===typeof e?parseInt(e,10):e;if(t){const e=(e,t,o)=>(e/t).toLocaleString(void 0,{maximumFractionDigits:e/t>100?0:1})+o;return o>1e9?e(o,1e9,"B"):o>1e6?e(o,1e6,"M"):o>1e3?e(o,1e3,"k"):o.toString()}return o.toLocaleString()}},getCombinedUnitMeasure(e){if(e)return`${e.value}${e.unit}`},getAverageRatingDisplayText(e){return e.ratingAndReviewCount&&e.ratingAndReviewValuesTotal?(e.ratingAndReviewValuesTotal/e.ratingAndReviewCount).toFixed(1):"0"},toPixels(e){switch(e.unit){case"em":return Math.floor(14*e.value);case"rem":return Math.floor(e.value*parseFloat(getComputedStyle(document.documentElement).fontSize));case"px":default:return Math.floor(e.value)}},getWidgetSize(e){var t;const o=null!==(t=null===e||void 0===e?void 0:e.clientWidth)&&void 0!==t?t:0;return o>960?"large":o>640?"medium":"small"},sendWidgetRenderedEvent(e,t){document.dispatchEvent(new CustomEvent("oke-rendered",{detail:{widget:e,id:t}}))},convertMediaToMediaReviews(e){return e.map(e=>this.convertMediaToMediaReview(e))},convertMediaToMediaReview(e){var t,o,a,r;return{id:e.streamId,type:e.type,dynamicImageKey:e.dynamicImageKey,fullSizeUrl:null!==(o=null===(t=e.imageUrls)||void 0===t?void 0:t.fullSizeUrl)&&void 0!==o?o:null===(a=e.videoUrls)||void 0===a?void 0:a.fullSizeUrl,videoPosterUrl:null===(r=e.videoUrls)||void 0===r?void 0:r.videoPosterUrl,source:"okendo-media",dateCreated:e.dateCreated,parentId:e.reviewId,productId:e.productId}},convertReviewToMediaReview(e){var t,o;if(!(null===(t=null===e||void 0===e?void 0:e.media)||void 0===t?void 0:t.length))return;const a=e.media[0];return{id:a.streamId,type:a.type,dynamicImageKey:"image"===a.type?a.dynamicKey:void 0,fullSizeUrl:null!==(o=a.fullSizeUrl)&&void 0!==o?o:"",videoPosterUrl:"video"===a.type?a.videoPosterUrl:void 0,source:"okendo-review",dateCreated:e.dateCreated,reviewer:e.reviewer,languageCode:e.languageCode,original:e.original,parentId:e.reviewId,body:e.body,title:e.title,rating:e.rating,helpfulCount:e.helpfulCount,unhelpfulCount:e.unhelpfulCount,isRecommended:e.isRecommended,productHandle:e.productHandle,productId:e.productId,productImageUrl:e.productImageUrl,productName:e.productName,productUrl:e.productUrl,variantId:e.variantId}},convertReviewsToMediaReviews(e){var t,o,a;const r=[];for(const i of e)for(const e of null!==(t=i.media)&&void 0!==t?t:[])r.push({id:e.streamId,type:e.type,dynamicImageKey:e.dynamicKey,fullSizeUrl:null!==(o=e.fullSizeUrl)&&void 0!==o?o:"",videoPosterUrl:null!==(a=e.videoPosterUrl)&&void 0!==a?a:"",source:"okendo-review",dateCreated:i.dateCreated,reviewer:i.reviewer,languageCode:i.languageCode,original:i.original,parentId:i.reviewId,body:i.body,title:i.title,rating:i.rating,helpfulCount:i.helpfulCount,unhelpfulCount:i.unhelpfulCount,isRecommended:i.isRecommended,productHandle:i.productHandle,productId:i.productId,productImageUrl:i.productImageUrl,productName:i.productName,productUrl:i.productUrl,variantId:i.variantId});return r},getWidgetMode(e,t){return e?"product":t?"group":"all"},getWidgetRenderMode(){return(null===window||void 0===window?void 0:window.okeShowPreviewData)?"sample-data":a["default"].isTestModeEnabled?"empty":"normal"},merge(e,t){for(const[o,a]of Object.entries(e)){const e=t[o];e instanceof Object&&!Array.isArray(e)&&a instanceof Object&&!Array.isArray(a)?this.merge(a,e):t[o]=a}},defaultsDeep(e,t){for(const[o,a]of Object.entries(e)){if(null===a||void 0===a)continue;const e=t[o];e instanceof Object&&!Array.isArray(e)&&a instanceof Object&&!Array.isArray(a)?this.merge(a,e):t[o]=a}},debounce(e,t){let o;return()=>{o&&clearTimeout(o),o=window.setTimeout(()=>{e.apply(this)},t)}},setDocumentOverflow(e="add"){document.documentElement.classList[e]("is-oke-modalOpen"),document.body.classList[e]("is-oke-modalOpen")},stringOrNullToBoolOrUndefined(e){return null!==e?"true"===e.toLowerCase():void 0},getHeaderImagesCountToLoad(e){const t=[],o=[],a=16;if(e.length)for(const n of e)t.push(...n.modules.filter(e=>"media-grid"===e.name)),o.push(...n.modules.filter(e=>"media-carousel"===e.name));const r=t.reduce((e,t)=>Math.max(t.columns*t.rows,e),0),i=o.length?a:0;return Math.max(r,i)},getTextFontFamily(e){if((null===e||void 0===e?void 0:e.hasCustomFontSettings)&&"custom"===e.fontType&&e.fontFamily)return e.fontFamily+", sans-serif";const t=a["default"].widgetSettings.global.font;return"custom"===(null===t||void 0===t?void 0:t.fontType)&&t.fontFamily?t.fontFamily+", sans-serif":"inherit"}}},b943:function(e,t,o){"use strict";o.d(t,"a",(function(){return s}));var a=o("2b0e"),r=o("88c3"),i=o("a8f8");const n=["en"];async function s(e,t,s){let d;s&&(d=s);const u=null!==d&&void 0!==d?d:r["a"],c=Object(i["getLocale"])(e,t);c||console.warn("Okendo Reviews & UGC - Locale not present for requested locale code.");const v=a["a"].$localeStore.currentLocale,g=(null===c||void 0===c?void 0:c.variant)!==(null===v||void 0===v?void 0:v.variant);if((null===c||void 0===c?void 0:c.code)&&((null===c||void 0===c?void 0:c.code)!==u.locale||g)){const e=Object(i["getLocaleTranslationFilename"])(null===c||void 0===c?void 0:c.code,null===c||void 0===c?void 0:c.variant);return d||!e||n.includes(e)&&!g||await l(e,null===c||void 0===c?void 0:c.code,u),d&&"en"===(null===c||void 0===c?void 0:c.code)&&u.setLocaleMessage(c.code,o("090b").default),u.locale=null===c||void 0===c?void 0:c.code,a["a"].$localeStoreActions.setLocale(c),c}}async function l(e,t,a){try{const r=await o("d089")(`./${e}.js`);a.setLocaleMessage(t,r.default),n.includes(e)||n.push(e)}catch(r){console.error(r)}}},c8ba:function(e,t){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(a){"object"===typeof window&&(o=window)}e.exports=o},d089:function(e,t,o){var a={"./cs.js":["b93e","locales/locale-cs-js"],"./da.js":["a2a3","locales/locale-da-js"],"./de-formal.js":["c6cd","locales/locale-de-formal-js"],"./de-informal.js":["815c","locales/locale-de-informal-js"],"./de.js":["8859","locales/locale-de-js"],"./el.js":["938f","locales/locale-el-js"],"./en.js":["090b"],"./es.js":["d0c2","locales/locale-es-js"],"./fr.js":["4b7f","locales/locale-fr-js"],"./id.js":["bbc6","locales/locale-id-js"],"./it.js":["55f5","locales/locale-it-js"],"./ja.js":["1105","locales/locale-ja-js"],"./ko.js":["41f5","locales/locale-ko-js"],"./nb.js":["360b","locales/locale-nb-js"],"./nl.js":["570f","locales/locale-nl-js"],"./no.js":["8ba5","locales/locale-no-js"],"./pl.js":["d36d","locales/locale-pl-js"],"./pt.js":["d377","locales/locale-pt-js"],"./ro.js":["d4e8","locales/locale-ro-js"],"./ru.js":["b9ee","locales/locale-ru-js"],"./sk.js":["4014","locales/locale-sk-js"],"./sv.js":["adc2","locales/locale-sv-js"],"./th.js":["52f8","locales/locale-th-js"],"./uk.js":["e19c","locales/locale-uk-js"],"./vi.js":["9a11","locales/locale-vi-js"],"./zh-tw.js":["b8e5","locales/locale-zh-tw-js"]};function r(e){if(!o.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],r=t[0];return Promise.all(t.slice(1).map(o.e)).then((function(){return o(r)}))}r.keys=function(){return Object.keys(a)},r.id="d089",e.exports=r},da28:function(e,t,o){"use strict";var a=o("2b0e"),r=o("88c3"),i=o("b943");const n="oke-modalContainer",s="oke-modalContainer-inner",l=[];let d,u,c=!1;t["a"]={openMediaModal(e){const t=async()=>(await Promise.all([o.e("okendo-reviews-lib"),o.e("okendo-reviews-core"),o.e("modules/media-modal")]).then(o.bind(null,"7fa0"))).default;this.openModal(t,"mediaModal",e)},openAllReviewsModal(e){const t=async()=>(await Promise.all([o.e("okendo-reviews-core"),o.e("modules/all-reviews-modal")]).then(o.bind(null,"55f4"))).default;this.openModal(t,"allReviewsModal",e)},openModal(e,t,o){if(c||l.push({key:t,propsData:o}),this.closeCurrentModalInstance(),!document.getElementById(n)){u=document.createElement("div"),u.id=n;const t=document.createElement("div");t.id=s,u.appendChild(t),document.body.appendChild(u),d=new a["a"]({el:"#"+s,i18n:r["a"],render:t=>t(e,{props:{...o}}),created:()=>{var e,t;Object(i["a"])(null===(e=a["a"].$localeStore.currentLocale)||void 0===e?void 0:e.code,null===(t=a["a"].$localeStore.currentLocale)||void 0===t?void 0:t.variant)}})}c=!1},closeModal(){l.pop(),this.closeCurrentModalInstance(),l.length&&this.restoreLastModalInHistory()},closeCurrentModalInstance(){null===d||void 0===d||d.$destroy(),null===u||void 0===u||u.remove()},restoreLastModalInHistory(){const e=l[l.length-1];switch(c=!0,e.key){case"mediaModal":this.openMediaModal(e.propsData);break;case"allReviewsModal":this.openAllReviewsModal(e.propsData);break}},bindOpenReviewsModalEventForElements(e){e.forEach(e=>{var t,o;if(e){const a=null!==(t=e.getAttribute("data-oke-reviews-group-id"))&&void 0!==t?t:void 0,r=null!==(o=e.getAttribute("data-oke-reviews-product-id"))&&void 0!==o?o:void 0,i=()=>this.openAllReviewsModal({groupId:a,productId:r});e.addEventListener("click",i),e.addEventListener("keydown",e=>{"Space"!==e.key&&"Enter"!==e.key||(e.preventDefault(),i())}),e.style.cursor="pointer"}})}}},e39c:function(e,t,o){"use strict";t["a"]={addParagraphTags(e){if(e.startsWith("

"))return e;{let t="

";return t+=e.replace(/(?:\r\n|\r|\n)+/g,"

"),t+="

",t}},escapeHTML(e){if(!e)return;const t={"&":"&","<":"<",">":">",'"':""","'":"'"},o=/(.*?<\/mark>)/gi,a=e.split(o),r=a.map(e=>o.test(e)?e.replace(/()(.*?)(<\/mark>)/gi,(e,o,a,r)=>{const i=a.replace(/[&<>"']/g,e=>t[e]);return`${o}${i}${r}`}):e.replace(/[&<>"']/g,e=>t[e]));return r.join("")},toTitleCase(e){return e.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase())},titleToSnakeCase(e){return e.replace(/[^a-zA-Z0-9_\- ]/g,"").replace(/[_\- ]+/g,"_").toLowerCase()},kebabToCamelCase(e){if(!e)return"";const t=e.split("-");return t.map((e,t)=>t?this.capitalize(e):e.toLowerCase()).join("")},capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)},toComaEscapedEncodedString(e){return encodeURIComponent(e.replace(/,/g,"\\,"))},isAbsoluteUrl(e){const t=/^(([a-zA-Z]+){1}:\/\/)?[\w-]+(\.[\w-]+)+([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?$/i;return t.test(e)},getUniqueId(e){const t=Math.floor(1e6*Math.random());return e?`${e}-${t}`:""+t}}},ec26:function(e,t,o){"use strict";var a,r=new Uint8Array(16);function i(){if(!a&&(a="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!a))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(r)}var n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function s(e){return"string"===typeof e&&n.test(e)}for(var l=s,d=[],u=0;u<256;++u)d.push((u+256).toString(16).substr(1));function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(d[e[t+0]]+d[e[t+1]]+d[e[t+2]]+d[e[t+3]]+"-"+d[e[t+4]]+d[e[t+5]]+"-"+d[e[t+6]]+d[e[t+7]]+"-"+d[e[t+8]]+d[e[t+9]]+"-"+d[e[t+10]]+d[e[t+11]]+d[e[t+12]]+d[e[t+13]]+d[e[t+14]]+d[e[t+15]]).toLowerCase();if(!l(o))throw TypeError("Stringified UUID is invalid");return o}var v=c;function g(e,t,o){e=e||{};var a=e.random||(e.rng||i)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){o=o||0;for(var r=0;r<16;++r)t[o+r]=a[r];return t}return v(a)}t["a"]=g}}]);