1document.addEventListener(`octane.quiz.completed`,function(t){console.log(t),t.detail.quiz_results_url.includes(`product-finder-quiz`)&&e(t)},!1);function e(e){try{let t=e?.detail?.product_blocks?.[0]?.[0].id,n=e?.detail?.product_blocks?.[0]?.[0]?.link;if(n)fetch(n+`?sections=product-quiz-result`).then(e=>{if(!e.ok)throw Error(`Network response was not ok: ${e.statusText}`);return e.json()}).then(e=>{console.log(e,t),document.getElementById(`quiz-results-wrapper`).innerHTML=e?.[`product-quiz-result`],o(t);let n=document.querySelector(`.octane-ai-quiz-rendered`);n&&(n.style.display=`none`),document.querySelector(`body`).style.overflow=`initial`,a(),i()}).catch(e=>{console.error(`Fetch error:`,e)});else throw Error(`Link is not available`)}catch(e){console.error(`Error:`,e)}}function t(e){return function(){let t=e.querySelector(`.quiz__variant:checked`);if(t){let n=e.querySelector(`[name="id"]`);console.log(e,n),n&&(n.value=t.value)}}}function n(e){return function(){let t=e.querySelector(`.quiz__variant:checked`);
1if(t){let n=e.querySelector(`[data-product-price]`),r=e.querySelector(`[data-compare-price]`);r.style.display=`none`;let i=e?.querySelector(`[data-variant-id]`)?.dataset?.variantId;i&&(i=t.value,n.innerHTML=t.dataset.variantPrice),t.dataset.variantCompareAtPrice&&(r.innerHTML=t.dataset.variantCompareAtPrice,r.style.display=`block`)}}}function r(e){e.querySelectorAll(`.quiz__variant`).forEach(r=>{console.log(r,e),r.addEventListener(`change`,t(e)),r.addEventListener(`change`,n(e))})}function i(){let e=document.getElementById(`product__form`),t=document.getElementById(`discovery__form`);r(e),r(t)}function a(){var e=`{{ request.locale.iso_code }}`;function t(e){var t=new Date,n=new Date;if(t.getHours()>=12&&n.setDate(n.getDate()+1),e===`en`)for(var r=0;r<2;r++)n.setDate(n.getDate()+1),n.getDay()===6?n.setDate(n.getDate()+2):n.getDay()===0&&n.setDate(n.getDate()+1);else for(var i=0;i<4;i++)n.setDate(n.getDate()+1),n.getDay()===6?n.setDate(n.getDate()+2):n.getDay()===0&&n.setDate(n.getDate()+1);return n}function n(e){var t=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],n=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],r=t[e.getDay()],i=e.getDate(),a=n[e.getMonth()];function o(e){if(e>3&&e<21)return`th`;switch(e%10){case 1:return`st`;case 2:return`nd`;case 3:return`rd`;default:return`th`}}return r+` `+i+o(i)+` `+a}var r=n(t(e));document.querySelectorAll(`.shipping-estimate-text`).forEach(e=>{console.log(e),e.innerText=r})}function o(e){fetch(`/recommendations/products.json?product_id=`+e+`&intent=related`).then(e=>{if(!e.ok)throw Error(`Network response was not ok: ${e.statusText}`);return e.json()}).then(e=>{let t=e.products,n=document.querySelector(`[data-recommendations-list]`),r=document.querySelector(`[data-recommendation-template]`).outerHTML,i=``,a=0;for(let e of t){if(a>=3)break;if(e.title.includes(`2ml`))continue;let t=``;e.tags.includes(`gender:unisex`)?t=`Unisex`:e.tags.includes(`gender:male`)?t=`For Him`:e.tags.includes(`gender:female`)&&(t=`For Her`);let n=r.replace(/href="[^"]*"/,`href="${e.url}"`).replace(/data-recommendation-title[^>]*>.*?</,`data-recommendation-title>${e.title}<`).replace(/data-recommendation-price[^>]*>.*?</,`data-recommendation-price>£${(e.price/100).toFixed(2)}<`).replace(/data-recommendation-image[^>]*src="[^"]*"/,`data-recommendation-image src="${e.featured_image}"`).replace(/data-recommendation-gender[^>]*>.*?</,`data-recommendation-gender>${t}<`).replace(/data-recommendation-notes[^>]*>.*?</,`data-recommendation-notes>${e.tags.filter(e=>!e.startsWith(`gender:`)).join(`, `)}<`);i+=n,a++}n.innerHTML=i}).catch(e=>{console.error(`Fetch error:`,e)})}document.addEventListener(`octane.quiz.completed`,function(e){console.log(e,`custom event octane.quiz.completed fired`),e.detail.quiz_results_url.includes(`scent-identity-quiz`)&&s(e)},!1);function s(e){try{e?.detail?.product_blocks?.[0]?.[0].id;let t=e?.detail?.product_blocks?.[0]?.[0]?.link;if(t)fetch(t+`?sections=scent-identity-quiz-result`).then(e=>{if(!e.ok)throw Error(`Network response was not ok: ${e.statusText}`);return e.json()}).then(e=>{document.getElementById(`quiz-results-wrapper`).innerHTML=e?.[`scent-identity-quiz-result`];let t=document.querySelector(`.octane-ai-quiz-rendered`);t&&(t.style.display=`none`),document.querySelector(`body`).style.overflow=`initial`,m(),l(),u(),c(),document.dispatchEvent(new CustomEvent(`collapsible:init`,{detail:{container:document.querySelector(`[data-accordion-section]`)}}))}).catch(e=>{console.error(`Fetch error:`,e)});else throw Error(`Link is not available`)}catch(e){console.error(`Error:`,e)}}
1function c(){let e=document.querySelector(`[data-product-single-media-slider]`),t=document.querySelector(`[data-product-single-media-thumbs]`);if(document.querySelectorAll(`[data-product-single-media-wrapper]`).length>1){new themeVendor.Flickity(e,{wrapAround:!0,pageDots:!1,adaptiveHeight:!0});let n=null;function r(){n!==null&&n.resize()}t!==null&&(n=new themeVendor.Flickity(t,{asNavFor:e,contain:!0,pageDots:!1,prevNextButtons:!1,resize:!0})),n!==null&&document.addEventListener(`theme:resize:width`,r);let i=document.querySelectorAll(`.product-single__thumbnail-link`);i.length&&i.forEach(e=>{e.addEventListener(`click`,e=>{e.preventDefault()})})}}function l(){let e=document.querySelector(`[data-review-slider]`);document.querySelectorAll(`[data-review-slider-item]`),new themeVendor.Flickity(e,{wrapAround:!0,pageDots:!0,freeScroll:!0,adaptiveHeight:!0,prevNextButtons:!1})}function u(){d(document.getElementById(`product__form`))}function d(e){let t=e?.querySelectorAll(`.scent__quiz__variant`);t?.length&&t.forEach(t=>{t.addEventListener(`change`,f(e)),t.addEventListener(`change`,p(e))})}function f(e){return function(){let t=e.querySelector(`.scent__quiz__variant:checked`);if(t){let n=e.querySelector(`[name="id"]`);n&&(n.value=t.value)}}}function p(e){return function(){let t=e.querySelector(`.scent__quiz__variant:checked`);if(t){let n=e.querySelectorAll(`[data-product-price]`),r=e.querySelectorAll(`[data-compare-price]`);r.forEach(e=>{e.style.display=`none`}
1),n.forEach(e=>{e.innerHTML=t.dataset.variantPrice}),t.dataset.variantCompareAtPrice&&r.forEach(e=>{e.innerHTML=t.dataset.variantCompareAtPrice,e.style.display=`block`})}}}function m(){var e=`{{ request.locale.iso_code }}`;function t(e){var t=new Date,n=new Date;if(t.getHours()>=12&&n.setDate(n.getDate()+1),console.log(e),e===`en`)for(var r=0;r<2;r++)n.setDate(n.getDate()+1),n.getDay()===6?n.setDate(n.getDate()+2):n.getDay()===0&&n.setDate(n.getDate()+1);else for(var r=0;r<4;r++)n.setDate(n.getDate()+1),n.getDay()===6?n.setDate(n.getDate()+2):n.getDay()===0&&n.setDate(n.getDate()+1);return n}function n(e){var t=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],n=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],r=t[e.getDay()],i=e.getDate(),a=n[e.getMonth()];function o(e){if(e>3&&e<21)return`th`;switch(e%10){case 1:return`st`;case 2:return`nd`;case 3:return`rd`;default:return`th`}}return r+` `+i+o(i)+` `+a}var r=n(t(e));document.querySelectorAll(`.shipping-estimate-text`).forEach(e=>{e.innerText=r})}var h=2,ee=1499,g=5e3,_=Promise.resolve(),v=0,y=null,b=null,x=null;function te(){S(),w(),I(`init`)}function S(){[`theme:cart:open`,`theme:cart:added`,`theme:cart:update`,`theme:cart:loaded`].forEach(e=>{window.addEventListener(e,()=>C(e))})}function C(e){w(),I(e)}function w(){b=T(`[data-sample-select-continue]`,`click`,()=>O()),x=T(`[data-sample-select-submit]`,`click`,()=>k()),document.querySelectorAll(`[data-sample-select-checkbox]`).forEach(e=>{e.addEventListener(`change`,()=>J())}),E(),ne(),J()}function T(e,t,n){let r=document.querySelector(e);if(!r)return null;let i=r.cloneNode(!0);return r.parentNode.replaceChild(i,r),i.addEventListener(t,n),i}function E(){T(`[data-sample-selector-button]`,`click`,()=>se())}function ne(){document.querySelectorAll(`[data-cart-checkout-button] button[type="submit"]`).forEach(e=>{e._sampleSelectorCheckoutHandler&&e.removeEventListener(`click`,e._sampleSelectorCheckoutHandler);let t=t=>D(t,e);e._sampleSelectorCheckoutHandler=t,e.addEventListener(`click`,t)})}async function D(e,t){e.preventDefault(),t.setAttribute(`disabled`,`disabled`),await I(`cart-checkout-submit`),t.removeAttribute(`disabled`);let n=t.closest(`form`);n?n.requestSubmit(t):window.top.location.href=`/checkout`}async function O(){j(),b?.querySelector(`img`)?.classList.remove(`tw-hidden`),b?.querySelector(`div`)?.classList.add(`tw-hidden`),await I(`picker-continue`,A()),Y()}async function k(){j(),x?.querySelector(`[data-sample-select-submit-label-save] img`)?.classList.remove(`tw-hidden`),x?.querySelector(`[data-sample-select-submit-label-save] div`)?.classList.add(`tw-hidden`),await I(`picker-checkout`,A()),re()}function A(){return[...document.querySelectorAll(`[data-sample-select-checkbox]:checked`)].map(e=>({id:e.value,quantity:1,properties:{__free_sample:`true`}}))}function re(){window.top.location.href=`/checkout`}function j(){b?.setAttribute(`disabled`,`disabled`),x?.setAttribute(`disabled`,`disabled`)}function ie(){b?.removeAttribute(`disabled`),x?.removeAttribute(`disabled`),x?.querySelector(`[data-sample-select-submit-label-save] img`)?.classList.add(`tw-hidden`),x?.querySelector(`[data-sample-select-submit-label-save] div`)?.classList.remove(`tw-hidden`),b?.querySelector(`img`)?.classList.add(`tw-hidden`),b?.querySelector(`div`)?.classList.remove(`tw-hidden`),J()}function M(e){return N(),_=_.then(e).catch(e=>{console.error(`SampleSelector: queued operation failed`,e)}).finally(()=>P()),_}function N(){v++,v===1&&(F(!0),y=setTimeout(()=>{console.warn(`SampleSelector: reconcile exceeded watchdog timeout, unlocking checkout`),v=0,F(!1)},g))}function P(){v=Math.max(0,v-1),v===0&&(clearTimeout(y),F(!1))}function F(e){try{let t=document.querySelector(`[data-cart-checkout-buttons]`);if(!t)return;t.style.pointerEvents=e?`none`:``,t.style.opacity=e?`0.5`:``,t.setAttribute(`aria-busy`,e?`true`:`false`)}catch(e){console.error(`SampleSelector: failed to toggle checkout lock`,e)}}function I(e,t=null){return M(()=>L(e,t))}async function L(e,t){try{let e=await(await fetch(`/cart.js`)).json(),n=K(),r=R(e,{threshold:n,limit:h,selectionOverride:t});r.type!==`noop`&&(await z(r),(r.type===`top-up`||r.type===`trim`||r.type===`remove-all`)&&window.cart?.getCart(),r.type===`apply-selection`&&await ce()),G(e,n),J()}catch(e){console.error(`SampleSelector: error reconciling cart samples`,e)}}function R(e,{threshold:t,limit:n,selectionOverride:r}){let i=e.items.filter(e=>e.properties?.__free_sample),a=i.reduce((e,t)=>
1e+t.quantity,0),o=e.total_price>=t;return r?{type:`apply-selection`,remove:i,add:r}:o?a>n?{type:`trim`,items:i,limit:n}:a<n?{type:`top-up`,shortfall:n-a}:{type:`noop`}:a>0?{type:`remove-all`,items:i}:{type:`noop`}}async function z(e){switch(e.type){case`remove-all`:await B(e.items);break;case`trim`:await V(e.items,e.limit);break;case`top-up`:await W(e.shortfall);break;case`apply-selection`:await B(e.remove),await U(e.add);break}}async function B(e){let t={};e.forEach(e=>{t[e.key]=0}),await H(t)}async function V(e,t){let n=t,r={};e.forEach(e=>{n<=0?r[e.key]=0:e.quantity>n?(r[e.key]=n,n=0):n-=e.quantity}),await H(r)}async function H(e){Object.keys(e).length!==0&&await fetch(`/cart/update.js`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({updates:e})})}async function U(e){e.length&&await fetch(`/cart/add.js`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({items:e})})}async function W(e){let t=document.querySelector(`[data-free-samples-variant-ids]`)?.dataset?.freeSamplesVariantIds;if(!t)return;let n=document.getElementById(`gwp-data-tc`),r=document.querySelector(`[data-cart-drawer]`);n&&(r?.classList.add(`is-loading`),await new Promise(e=>setTimeout(e,1e3)));try{await U(t.split(`,`).sort(()=>.5-Math.random()).slice(0,e).map(e=>({id:e,quantity:1,properties:{__free_sample:`true`,__free_sample_default:`true`}})))}finally{r?.classList.remove(`is-loading`)}}function G(e,t){e.total_price>=t?oe():ae()}function K(){let e=window.theme?.freeSamples?.threshold;return typeof e!=`number`||Number.isNaN(e)?(console.warn(`SampleSelector: freeSamples.threshold missing from window.theme, using fallback`),ee):e}function q(){let e=document.querySelectorAll(`[data-sample-select-checkbox]:checked`).length;document.querySelectorAll(`[data-sample-select-checkbox]:not(:checked)`).forEach(t=>{let n=t.nextElementSibling;n.classList.remove(`tw-bg-gray-300`,`tw-text-gray-600`,`tw-pointer-events-none`),n.classList.add(`tw-border`),e===h&&(n.classList.add(`tw-bg-gray-300`,`tw-text-gray-600`,`tw-pointer-events-none`),n.classList.remove(`tw-border`))})}function J(){let e=document.querySelectorAll(`[data-sample-select-checkbox]:checked`).length;if(q(),x){let t=document.querySelector(`[data-sample-select-submit-label-default]`),n=document.querySelector(`[data-sample-select-submit-label-save]`);x.querySelector(`span`).textContent=e,x.disabled=e<h,x.classList.toggle(`tw-bg-gray-300`,e<h),x.classList.toggle(`tw-bg-black`,e>=h),x.classList.toggle(`tw-text-gray-600`,e<h),x.classList.toggle(`tw-text-white`,e>=h),t?.classList.toggle(`tw-hidden`,e>=h),n?.classList.toggle(`tw-hidden`,e<h),b?.classList.toggle(`tw-hidden`,e<h),e<h?x.setAttribute(`disabled`,`disabled`):x.removeAttribute(`disabled`)}}function ae(){document.querySelector(`[data-sample-selector-cart-wrapper]`)?.classList.add(`tw-hidden`)}function oe(){document.querySelector(`[data-sample-selector-cart-wrapper]`)?.classList.remove(`tw-hidden`)}function Y(){document.querySelector(`[data-sample-selector-overlay]`)?.classList.add(`tw-hidden`)}function se(){document.querySelector(`[data-sample-selector-overlay]`)?.classList.remove(`tw-hidden`)}async function ce(){try{let e=await(await fetch(`/?section_id=cart-sample-selector`,{method:`GET`})).text(),t=new DOMParser().parseFromString(e,`text/html`).querySelector(`[data-sample-selector-cart-wrapper]`)?.innerHTML,n=document.querySelector(`[data-sample-selector-cart-wrapper]`);t!=null&&n&&(n.innerHTML=t),E(),Y(),ie()}catch(e){console.error(`Error:`,e)}}document.addEventListener(`DOMContentLoaded`,te);function X(){let e=document.querySelector(`[data-free-gift-row-template]`);if(!e)return;document.querySelectorAll(`[data-free-gift-row]`).forEach(e=>e.remove());let t=new Map;document.querySelectorAll(`[data-free-gift-json]`).forEach(e=>{let n;try{n=JSON.parse(e.textContent)}catch{return}let r=document.querySelector(`[data-item="${n.lineKey}"]`);if(!r)return;let i=t.get(n.giftVariantId);i?i.quantity+=n.quantity:t.set(n.giftVariantId,{...n,anchor:r})}),t.forEach(t=>{let n=e.content.cloneNode(!0).querySelector(`[data-free-gift-row]`);if(!n)return;let r=n.querySelector(`[data-free-gift-row-image]`);r&&(r.src=t.image,r.alt=t.title);let i=n.querySelector(`[data-free-gift-row-title]`);i&&(i.textContent=t.title);let a=n.querySelector(`[data-free-gift-row-variant]`),o=n.querySelector(`[data-free-gift-row-variant-value]`);a&&o&&(o.textContent=t.variantTitle||``,a.style.display=t.variantTitle?``:`none`);let s=n.querySelector(`[data-free-gift-row-quantity]`);s&&(s.textContent=t.quantity),t.anchor.insertAdjacentElement(`afterend`,n)})}function le(){[`theme:cart:open`,`theme:cart:added`,`theme:cart:update`].forEach(e
1=>{window.addEventListener(e,X)}),X()}document.addEventListener(`DOMContentLoaded`,le);var Z=document.querySelector(`[data-upsell-tertiary]`);Z&&Z.addEventListener(`change`,function(){document.querySelector(`[data-upsell-tertiary-form]`).value=this.checked?Z.dataset.variantId:``});var Q=e=>{e.preventDefault();let t=document.querySelector(`[data-quickview-jaq]`);t&&t.classList.remove(`quickview-active`),setTimeout(()=>{let e=document.querySelector(`[data-quickview-overlay-jaq]`);e&&e.classList.add(`tw-hidden`),t&&(t.classList.remove(`tw-block`),t.innerHTML=``)},400)},$=e=>{if(!e)return console.error(`initQuickViewForm: No container provided`),null;let t={product:`[data-product]`,productForm:`[data-product-form]`,productJson:`[data-product-json]`,addToCart:`[data-add-to-cart]`,addToCartText:`[data-add-to-cart-text]`,priceWrapper:`[data-price-wrapper]`,productPrice:`[data-product-price]`,comparePrice:`[data-compare-price]`,formWrapper:`[data-form-wrapper]`,originalSelectorId:`[data-product-select]`,idInput:`[name="id"]`,optionInput:`[name^="options"], [data-single-option-selector]`,buyItNow:`[data-buy-it-now]`},n={hidden:`hidden`,variantSoldOut:`variant--soldout`,variantUnavailable:`variant--unavailabe`,productPriceSale:`product__price--sale`,priceWrapperHidden:`product__price--hidden`},r=e.querySelector(t.product),i=e.querySelector(t.productForm),a=e.querySelector(t.productJson);if(!r||!i||!a)return console.error(`initQuickViewForm: Missing required elements`,{product:!!r,productForm:!!i,productJson:!!a}),null;let o;try{o=JSON.parse(a.innerHTML)}catch(e){return console.error(`initQuickViewForm: Invalid product JSON`,e),null}function s(){let e=new FormData(i),t=[];for(let[n,r]of e.entries())n.includes(`options[`)&&t.push(r);return o.variants.find(e=>e.options.every((e,n)=>e===t[n]))||null}function c(r){let a=i.querySelector(t.idInput);a&&r&&(a.value=r.id);let o=e.querySelectorAll(t.addToCart),s=e.querySelectorAll(t.addToCartText),c=e.querySelector(t.buyItNow);o.forEach(e=>{if(!r){e.disabled=!0,c?.classList.add(n.hidden);return}e.disabled=!r.available,r.available?c?.classList.remove(n.hidden):c?.classList.add(n.hidden)}),s.forEach(e=>{r?r.available?e.innerHTML=window.theme?.strings?.add_to_cart||`Add to Cart`:e.innerHTML=window.theme?.strings?.sold_out||`Sold Out`:e.innerHTML=window.theme?.strings?.unavailable||`Unavailable`}),l(r),e.querySelectorAll(t.formWrapper).forEach(e=>{if(!r){e.classList.add(n.variantUnavailable),e.classList.remove(n.variantSoldOut);return}let i=e.querySelector(t.originalSelectorId);i&&(i.value=r.id),r.available?e.classList.remove(n.variantSoldOut,n.variantUnavailable):(e.classList.add(n.variantSoldOut),e.classList.remove(n.variantUnavailable))})}function l(r){if(!r){e.querySelectorAll(t.priceWrapper).forEach(e=>e.classList.add(n.priceWrapperHidden));return}e.querySelectorAll(t.priceWrapper).forEach(e=>e.classList.remove(n.priceWrapperHidden))}function u(){c(s())}let d=i.querySelectorAll(t.optionInput);d.forEach(e=>{e.addEventListener(`change`,u)});
1let f=e.querySelector(`[data-popup-close]`);return f&&f.addEventListener(`click`,Q),c(s()),{destroy:()=>{d.forEach(e=>{e.removeEventListener(`change`,u)}),f&&f.removeEventListener(`click`,Q)},getCurrentVariant:s,updateFormState:c,refresh:()=>{c(s())}}},ue=e=>{if(!e)return console.error(`initQuickViewGallery: No container provided`),null;let t=e.querySelector(`[data-quickview-gallery-2025]`);if(!t)return null;let n=t.querySelector(`[data-product-single-media-slider]`),r=t.querySelectorAll(`[data-product-single-media-wrapper]`);if(!n||r.length<=1)return null;if(window.themeVendor.Flickity===void 0)return console.error(`initQuickViewGallery: Flickity is not loaded`),null;try{let e=new window.themeVendor.Flickity(n,{wrapAround:!0,cellAlign:`left`,pageDots:!1,prevNextButtons:!0,adaptiveHeight:!1,pauseAutoPlayOnHover:!1,selectedAttraction:.2,friction:1,autoPlay:!1,on:{ready:()=>{n.setAttribute(`tabindex`,`-1`),requestAnimationFrame(()=>{e.resize()})},settle:()=>{let t=e.selectedElement;t.setAttribute(`tabindex`,`0`),e.cells.forEach(e=>{e.element!==t&&e.element.setAttribute(`tabindex`,`-1`)})}}});return r.forEach(t=>{t.addEventListener(`theme:media:play`,()=>{e.options.draggable=!1,e.updateDraggable(),n.classList.add(`has-media-active`)}),t.addEventListener(`theme:media:pause`,()=>{e.options.draggable=!0,e.updateDraggable(),n.classList.remove(`has-media-active`)})}),e}catch(e){return console.error(`initQuickViewGallery: Error initializing Flickity`,e),null}},de=(e,t,n={})=>{let r={sectionId:`api-quickview-2025`,variantID:null,onLoad:null,onError:null,showLoading:!0,...n};return new Promise((n,i)=>{if(!t){let e=Error(`loadQuickView: No container provided`);console.error(e),i(e);return}let a=new URLSearchParams({section_id:r.sectionId});r.variantId&&a.set(`variant`,r.variantId),fetch(`/products/${e}/?${a.toString()}`).then(e=>e.text()).then(e=>{let a=document.querySelector(`[data-quickview-overlay-jaq]`);a&&a.classList.remove(`tw-hidden`),t.innerHTML=e,document.querySelector(`[data-quickview-jaq]`)&&document.querySelector(`[data-quickview-jaq]`).querySelector(`[data-quick-view-foot-inner]`)&&(document.querySelector(`[data-quickview-jaq]`).querySelector(`[data-quick-view-foot-inner]`).style.opacity=`1`),requestAnimationFrame(()=>{t.classList.add(`quickview-active`)}),setTimeout(()=>{let e=$(t),a=ue(t);if(e){e.gallery=a;let t=e.destroy;e.destroy=()=>{t(),a&&a.destroy()},r.onLoad&&r.onLoad(e),n(e)}else{let e=Error(`Failed to initialize quick view`);r.onError&&r.onError(e),i(e)}},100)}).catch(e=>{t.innerHTML=`<div class="tw-p-8 tw-text-center tw-text-red-500">Error loading product</div>`,r.onError&&r.onError(e),i(e)})})};document.addEventListener(`theme:cart:added`,function(e){let t=document.querySelector(`[data-quickview-jaq]`);t&&(t.classList.remove(`quickview-active`),setTimeout(()=>{t.classList.remove(`tw-block`),t.innerHTML=``;let e=document.querySelector(`[data-quickview-overlay-jaq]`);e&&e.classList.add(`tw-hidden`)},400))}),(function(){typeof window<`u`&&(window.initQuickViewForm=$,window.loadQuickView=de,window.handleQuickviewCloseClick=Q)})();
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.