/*! * 0.85.8 - 2026-03-16T03:24:02.221Z * Copyright (c) 2026 Okendo Pty Ltd * */(function(e){function l(l){for(var o,a,t=l[0],r=l[1],d=0,i=[];de.toLowerCase())},supportedSourceLocaleCodesLowerCase(){return a["awsSupportedLocaleCodes"].map(e=>e.toLowerCase())}}},"522e":function(e,l,o){"use strict";o.d(l,"a",(function(){return a}));const a={get:(e,l)=>(l?fetch(e,l):fetch(e)).then(e=>e.json()),post:(e,l)=>fetch(e,{method:"POST",body:JSON.stringify(l)}).then(e=>e.json())}},"6f27":function(e,l,o){"use strict";let a;const s=(e,l)=>{if("HTML"===e.nodeName)return-l;const o=e.getBoundingClientRect().top,a=parseInt((window.getComputedStyle(e).scrollMarginTop||0).toString(),10);return o+l-a};function t(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1}l["a"]={smoothScrollTo(e,l=-48){const o=500;a||(a=window.requestAnimationFrame||function(e){window.setTimeout(e,16)});const r=window.pageYOffset;let d=s(e,r);d+=l;const i=Date.now(),c=t,n=()=>{const e=Date.now()-i;let l=d;e{const l=e.getAttribute("data-oke-scroll-target");if(!l)return;const o=document.querySelector(l);o&&(e.addEventListener("click",()=>this.smoothScrollTo(o)),e.style.cursor="pointer")})}}},"88a3":function(e,l,o){"use strict";l["a"]={addOrUpdateTargetBlock(e,l,o,a="innerHTML",s="head"){if(!o)return;const t=document.querySelector(s),r=t.querySelector("#"+l);if(r)r[a]=o;else{const s=document.createElement(e);s.id=l,t.prepend(s),s[a]=o}},getFocusableElements(e,l){if(e){const o=["button","a","input","select","textarea","[tabindex]"],a=l?o:o.map(e=>e+':not([tabindex="-1"])');return Array.from(e.querySelectorAll(a.join(",")))}},getFirstFocusable(e){if(e){const l=this.getFocusableElements(e);if(null===l||void 0===l?void 0:l.length)return l[0]}},sanitiseControlId(e){if(!(null===e||void 0===e?void 0:e.length))return;const l=/[^\p{L}\p{N}-]+/gu,o=/^[-]+|[-]+$/gu,a=/^[^\p{L}]+/u,s=e.toLowerCase().replace(l,"-");return s.replace(o,"").replace(a,"id-")}}},a8f8:function(e,l,o){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,l,o,a){void 0===a&&(a=o);var s=Object.getOwnPropertyDescriptor(l,o);s&&!("get"in s?!l.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return l[o]}}),Object.defineProperty(e,a,s)}:function(e,l,o,a){void 0===a&&(a=o),e[a]=l[o]}),s=this&&this.__exportStar||function(e,l){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(l,o)||a(l,e,o)};Object.defineProperty(l,"__esModule",{value:!0}),s(o("ffff"),l)},cd49:function(e,l,o){"use strict";o.r(l);var a=o("02e8"),s=o("6f27"),t=o("342a"),r=o("a8f8"),d=o("522e"),i=o("0625"),c=o("88a3");let n;const u="Could not retrieve Okendo Reviews & UGC configuration";async function m(){var e,l;if(n)return await n;const o=document.getElementById("oke-reviews-settings");if(o)n=Promise.resolve(JSON.parse(o.innerText));else{const o=document.querySelector('meta[name="oke:subscriber_id"]'),a=null===(e=document.querySelector("script[data-oke-subscriber-id]"))||void 0===e?void 0:e.getAttribute("data-oke-subscriber-id"),s=null!==(l=null===o||void 0===o?void 0:o.content)&&void 0!==l?l:a;if(!s)return;const t=async()=>{try{const[e,l]=await Promise.all([d["a"].get(`${i["a"].apiBaseUrl}/stores/${s}/widget_plus_settings`),c["a"]]);return l.addOrUpdateTargetBlock("style","oke-css-vars",e.cssVariables,"outerHTML"),l.addOrUpdateTargetBlock("style","oke-reviews-custom-css",e.customCss,"outerHTML"),l.addOrUpdateTargetBlock("svg","oke-star-symbols",e.starSymbols,"outerHTML","body"),e.reviewsHeaderConfig}catch(e){console.error(u)}};n=t()}return await n}async function f(e){let{widgetSettings:l}=e;if(!l){const{defaultSettings:e}=await Promise.all([o.e("okendo-reviews-core"),o.e("modules/okendo-reviews-settings")]).then(o.bind(null,"4adb"));l=e}return l}var v,b;let w;const g=document.querySelector('meta[name="oke:subscriber_id"]'),h=null===(v=document.querySelector("script[data-oke-subscriber-id]"))||void 0===v?void 0:v.getAttribute("data-oke-subscriber-id"),k=document.querySelector('meta[name="oke:auto_initialise"]'),p=document.querySelector('meta[name="oke:hide_reviews_tab"]'),j=null!==(b=null===g||void 0===g?void 0:g.content)&&void 0!==b?b:h;function y(e){const{isTestModeEnabled:l,locale:o,localeAndVariant:a,matchCustomerLocale:s}=e;return{isTestModeEnabled:l,locale:o,localeAndVariant:a,matchCustomerLocale:s}}(!j||j&&k)&&(async()=>{const e=await m();e&&("interactive"!==document.readyState&&"complete"!==document.readyState?document.addEventListener("readystatechange",()=>{S(e)},{once:!0}):S(e))})();const L={initAllWidgets:A,setWidgetSettings:P,setWidgetLocale:W,setSubscriberId:z,initWidget:q,setProduct:T,setGroup:_};async function S(e){const l=await f(e),o=y(e),a=Object(r["getLocaleWithFallback"])(null===o||void 0===o?void 0:o.localeAndVariant,null===o||void 0===o?void 0:o.locale),s=t["a"].getCustomerLocaleFromShopify(o),d=s&&s.code!==a.code;await A(e.subscriberId,l,void 0,o,e.features,e.analyticsSettings,e.customDomain,d)}async function A(e,l,o,a,t,r,d,i=!0){var c,n,u,v;if(!e||!l){const o=await m();if(!o)return;l=await f(o),t=null!==t&&void 0!==t?t:o.features,e=null!==(c=null!==e&&void 0!==e?e:j)&&void 0!==c?c:o.subscriberId}if(!e)return void console.error("No Okendo Reviews & UGC Subscriber ID. Please check your configuration.");const b=Array.from(document.querySelectorAll("[data-oke-star-rating]")),w=Array.from(document.querySelectorAll("[data-oke-widget]")),g=Array.from(document.querySelectorAll("[data-oke-questions-widget]")),h=Array.from(document.querySelectorAll("[data-oke-carousel]")),k=Array.from(document.querySelectorAll("[data-oke-badge]")),y=Array.from(document.querySelectorAll("[data-oke-media-grid]")),L=Array.from(document.querySelectorAll("[data-oke-media-carousel]")),S=Array.from(document.querySelectorAll("[data-oke-scroll-target]")),A=Array.from(document.querySelectorAll("[data-oke-reviews-keywords]")),E=Array.from(document.querySelectorAll("[data-oke-reviews-modal-trigger]")),T=Array.from(document.querySelectorAll("[data-oke-reviews-summary]")),_=!p&&null!==(u=null===(n=l.reviewsTab)||void 0===n?void 0:n.enabled)&&void 0!==u&&u;if(e){const c=null===window||void 0===window?void 0:window.okeShowPreviewData,n=c||(null===(v=l.reviewsWidget)||void 0===v?void 0:v.showWhenEmpty)?w:w.filter(e=>""!==e.innerHTML.trim()),u=b.filter(e=>""!==e.innerHTML.trim()),m=!!i||await O(u,l,n);!m&&u.length&&C(u);const f=m?b:b.filter(e=>""===e.innerHTML.trim());S.length>0&&s["a"].bindScrollEventForElements(S);const p=f.length||n.length||g.length||h.length||k.length||y.length||L.length||A.length||E.length||T.length||_;if(p){const s=await B(!1);await s.setGlobalWidgetSettingsAndDirectives(l,a,e,t,r,d),s.initialiseWidgets({starRating:f,widget:n,questions:g,homepageCarousel:h,reviewsKeywords:A,reviewsModal:E,reviewsSummary:T,reviewsTab:_,badge:k,mediaGrid:y,mediaCarousel:L},o)}}}async function O(e,l,o){let s=!1;return e.length&&(s=o.length>0||await a["a"].areStarRatingsClickable(l.starRatings)),s}async function C(e){const{default:l}=await o.e("modules/okendo-metafield-star-rating-utils").then(o.bind(null,"06b3"));l.bindEventsToMetafieldStarRatings(e)}async function E(e,l,o){var a;if(e){null===(a=e.firstElementChild)||void 0===a||a.remove();const s=`data-oke-reviews-${"group"===o?"product":"group"}-id`;(null===e||void 0===e?void 0:e.hasAttribute(s))&&e.removeAttribute(s),e.setAttribute(`data-oke-reviews-${o}-id`,l),await q(e,!0)}}async function T(e,l){await E(e,l,"product")}async function _(e,l){await E(e,l,"group")}async function q(e,l=!1){if(!(null===e||void 0===e?void 0:e.innerHTML)||!e.hasAttribute("data-oke-rendered")||l){const l=await B();l.initialiseWidget([e])}}async function P(e,l){const o=await B();o.setWidgetSettings(e,l);const a=Object(r["getLocaleWithFallback"])(null===l||void 0===l?void 0:l.localeAndVariant,null===l||void 0===l?void 0:l.locale);a&&W(a.code,a.variant)}async function z(e){const l=await B();l.setSubscriberId(e)}async function W(e,l){const o=await B();o.setWidgetLocale(e,l),document.dispatchEvent(new Event("oke-locale-changed"))}async function B(e=!0){if(w)return Promise.resolve(w);const{InitialiseWidgets:l}=await Promise.all([o.e("okendo-reviews-core"),o.e("okendo-reviews-styles"),o.e("okendo-reviews-translation"),o.e("modules/okendo-widget-init")]).then(o.bind(null,"2003")),a=new l;return e&&(await R(a),w=a),a}async function R(e){const l=await m();if(l){const o=y(l),a=await f(l);e.setGlobalWidgetSettingsAndDirectives(a,o,l.subscriberId,l.features,l.analyticsSettings,l.customDomain)}}window.okeWidgetApi=L,document.dispatchEvent(new Event("oke-script-loaded"))},ffff:function(e,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.awsSupportedLocaleCodes=l.allLocalesWithAliases=l.localeAliases=l.allLocales=l.english=l.LocaleUtils=void 0,l.getLocale=t,l.getAllLocales=r,l.getLocaleWithFallback=d,l.getSubscriberLocaleWithFallback=i,l.getSubscriberLocaleTranslationFilename=c,l.getLocaleTranslationFilename=n;const a=f();var s;function t(e,o){if(void 0===e)return;const a=m(e)?e:l.localeAliases[e.toLowerCase()],s=l.allLocales[a];if(s){if("string"===typeof s)return{code:a};if("variants"in s){if(o){const e=s.variants[o];if(e)return{code:a,variant:o}}return{code:a,variant:s.defaultVariant}}}}function r(){const e=[];for(const[o,a]of Object.entries(l.allLocales))if("string"===typeof a)e.push({name:a,code:o});else if("variants"in a)for(const[l,{name:s}]of Object.entries(a.variants))e.push({name:s,code:o,variant:l});return e.sort((e,l)=>e.name.localeCompare(l.name))}function d(e,o,a=l.english){var s,r;return null!==(r=null!==(s=t(null===e||void 0===e?void 0:e.code,null===e||void 0===e?void 0:e.variant))&&void 0!==s?s:t(o))&&void 0!==r?r:a}function i(e,o=l.english){return d(e.localeAndVariant,e.locale,o)}function c(e){const l=i(e);return u(l)}function n(e,l){const o=t(e,l);if(o)return u(o)}function u(e){return`${e.code.toLowerCase()}${e.variant?"-"+e.variant.toLowerCase():""}`}function m(e){return!!e&&Object.keys(s.kOkendoLocales).some(l=>l.toLowerCase()===e.toLowerCase())}function f(){const e="(?([A-Za-z]{2,3}))",l="(?