1document.addEventListener("DOMContentLoaded",function(){var isProductPage=document.querySelector(".product-single")!==null;if(!isProductPage)return;var metas=document.querySelector(".product-single__metas");if(metas){var accordions=metas.querySelectorAll(".product-more-info.accordion");if(accordions.length>0){var tabs=[];if(accordions.forEach(function(acc){var titleEl=acc.querySelector(".collapse_title span"),contentEl=acc.querySelector(".panel-collapse");titleEl&&contentEl&&tabs.push({title:titleEl.textContent.trim(),content:contentEl,accordion:acc})}),tabs.length>0){var nav=document.createElement("div");nav.className="magda-tabs-nav",tabs.forEach(function(tab,i){var btn=document.createElement("button");btn.textContent=tab.title,btn.setAttribute("data-tab-index",i),i===0&&(btn.className="active"),nav.appendChild(btn)}),accordions[0].parentNode.insertBefore(nav,accordions[0]),tabs[0].content.classList.add("magda-active"),nav.addEventListener("click",function(e){if(e.target.tagName==="BUTTON"){var index=parseInt(e.target.getAttribute("data-tab-index"));nav.querySelectorAll("button").forEach(function(btn){btn.classList.remove("active")}
1),e.target.classList.add("active"),tabs.forEach(function(tab,i){tab.content.classList.toggle("magda-active",i===index)})}})}}}var collections=(window.marmarCollections||[]).join(" ").toLowerCase(),priceContainer=document.querySelector(".product-single .product-price")||document.querySelector(".product-single .price-container");if(priceContainer){var hasPhysicalStock=(window.marmarStockQtys||[]).some(function(qty){return qty>0}),isFallWinter=collections.indexOf("fall-winter")>-1||collections.indexOf("fall_winter")>-1,isPreFall=collections.indexOf("pre-fall")>-1||collections.indexOf("pre_fall")>-1,isPreOrder=collections.indexOf("pre-order")>-1||collections.indexOf("pre_order")>-1,isR27=collections.indexOf("r27")>-1,isSS27=collections.indexOf("ss27")>-1,statusText=null,statusClass=null;if(hasPhysicalStock?(statusText="In-Stock",statusClass="in-stock"):isR27||isSS27||isPreFall||isPreOrder?(statusText="Pre-Order",statusClass="pre-order"):(statusText="Made-To-Order",statusClass="made-to-order"),statusText){var statusDiv=document.createElement("div");statusDiv.className="magda-stock-status "+statusClass,statusDiv.textContent=statusText,priceContainer.parentNode.insertBefore(statusDiv,priceContainer.nextSibling)}}var variantWrappers=document.querySelectorAll(".product-single .variants-wrapper");variantWrappers.forEach(function(wrapper){var options=wrapper.querySelectorAll(".single-option-selector");if(options.length<=1){for(var children=wrapper.children,i=0;i<children.length;i++)children[i].classList.contains("variants__label")||(children[i].style.display="none");wrapper.style.marginBottom="10px"}});var popupLinks=document.querySelectorAll('.product-single .bwp-single-image a[data-fancybox],.product-single .bwp-single-image [data-popup],.product-single .bwp-single-image a[href*="cdn.shopify"]');popupLinks.forEach(function(el){el.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation()},!0),el.style.cursor="default",el.removeAttribute("data-fancybox")});function killBgColors(){var els=document.querySelectorAll(".product-single .bwp-single-image [style],.product-single .bwp-single-image .product-single__media-image,.product-single .bwp-single-image .img-wrapper,.product-single .bwp-single-image .image-wrap,.product-single .bwp-single-image .main_media-content > *,.product-single .bwp-single-image .slick-slide > *,.product-single .bwp-single-image .slick-slide,.product-single .bwp-single-image .media-item,.product-single .bwp-single-image .product-featured-media");els.forEach(function(el){el.style.setProperty("background-color","transparent","important"),el.style.setProperty("background","transparent","important")})}killBgColors(),setTimeout(killBgColors,500),setTimeout(killBgColors,1500),setTimeout(killBgColors,3e3);var SS27_DELIVERY_FROM=[2027,1,25],SS27_DELIVERY_TO=[2027,1,31];function calcDeliveryHTML(weeksFrom,weeksTo){var days=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],now=new Date,from=weeksFrom instanceof Date?weeksFrom:new Date(now.getTime()+weeksFrom*7*24*60*60*1e3),to=weeksTo instanceof Date?weeksTo:new Date(now.getTime()+weeksTo*7*24*60*60*1e3),midnight=new Date(now);midnight.setHours(24,0,0,0);var diff=midnight-now,hoursLeft=Math.floor(diff/(1e3*60*60)),minutesLeft=Math.floor(diff%(1e3*60*60)/(1e3*60)),fromStr=days[from.getDay()]+", "+months[from.getMonth()]+" "+from.getDate(),toStr=days[to.getDay()]+", "+months[to.getMonth()]+" "+to.getDate();return"Order in the next <strong>"+hoursLeft+" hours "+minutesLeft+" minutes</strong> to get it between <strong><u>"+fromStr+"</u></strong> and <strong><u>"+toStr+"</u></strong>"}var deliveryHTML=null;if(collections.indexOf("ss27")>-1?deliveryHTML=calcDeliveryHTML(new Date(SS27_DELIVERY_FROM[0],SS27_DELIVERY_FROM[1]-1,SS27_DELIVERY_FROM[2]),new Date(SS27_DELIVERY_TO[0],SS27_DELIVERY_TO[1]-1,SS27_DELIVERY_TO[2])):collections.indexOf("fall-winter")>-1||collections.indexOf("fall_winter")>-1?deliveryHTML=calcDeliveryHTML(4,6):collections.indexOf("r27")>-1&&(deliveryHTML=calcDeliveryHTML(6,8)),deliveryHTML){var overrideDelivery2=function(){var deliveryEl=
1document.querySelector(".product-single .estimated_delivery")||document.querySelector(".product-single .section-estimated_delivery .estimated_delivery")||document.querySelector('.product-single [class*="estimated_delivery"]');if(deliveryEl){var iconEl=deliveryEl.querySelector(".icons");if(iconEl){var iconClone=iconEl.cloneNode(!0);deliveryEl.innerHTML="",deliveryEl.appendChild(iconClone);var textSpan=document.createElement("span");textSpan.innerHTML=deliveryHTML,deliveryEl.appendChild(textSpan)}else deliveryEl.innerHTML=deliveryHTML}},overrideDelivery=overrideDelivery2;overrideDelivery2(),setTimeout(overrideDelivery2,800),setTimeout(overrideDelivery2,2e3)}var closeStickyEl=document.querySelector(".product-single .close-sticky");closeStickyEl&&closeStickyEl.remove()}),(function(){var PROP_NAME="_Estimated delivery",SEP=" \u2013 ";function readDeliveryRange(){var el=document.querySelector(".product-single .estimated_delivery");if(!el)return null;var start2=el.querySelector(".day_start"),stop=el.querySelector(".day_stop"),from=start2&&start2.textContent.trim(),to=stop&&stop.textContent.trim();if(!from||!to){var u=el.querySelectorAll("u");u.length>=2&&(from=u[0].textContent.trim(),to=u[1].textContent.trim())}return from&&to?from+SEP+to:null}function syncDeliveryInput(form){if(!(!form||!form.closest(".product-single"))){var input=form.querySelector("input[data-delivery-prop]"),range=readDeliveryRange();if(!range){input&&input.remove();return}input||(input=document.createElement("input"),input.type="hidden",input.name="properties["+PROP_NAME+"]",input.setAttribute("data-delivery-prop",""),form.appendChild(input)),input.value=range}}function onAddToCart(e){var form=e.target.closest&&e.target.closest('form[action*="/cart/add"]');form&&syncDeliveryInput(form)}document.addEventListener("click",onAddToCart,!0),document.addEventListener("submit",onAddToCart,!0);function escapeHtml(s){return String(s).replace(/[&<>"']/g,function(c){return{"&":"&","<":"<",">":">",'"':""","'":"'"}[c]})}function buildNote(items){var lines=[],seen={};if(items.forEach(function(item){var range=item.properties&&item.properties[PROP_NAME];if(!(!range||seen[item.product_title+range])){seen[item.product_title+range]=!0;var parts=String(range).split(SEP);parts.length===2&&lines.push({title:item.product_title,from:parts[0],to:parts[1]})}}),!lines.length)return"";var ranges=lines.map(function(l){return l.from+SEP+l.to}),allSame=ranges.every(function(r){return r===ranges[0]});return allSame?"I understand that the estimated delivery time is between <strong>"+escapeHtml(lines[0].from)+"</strong> and <strong>"+escapeHtml(lines[0].to)+"</strong>.":"I understand that the estimated delivery times are:<ul>"+lines.map(function(l){return"<li>"+escapeHtml(l.title)+": between <strong>"+escapeHtml(l.from)+"</strong> and <strong>"+escapeHtml(l.to)+"</strong></li>"}).join("")+"</ul>"}function refitDrawerFooter(t){var footer=t.closest(".ajaxcart__footer");if(!(!footer||!footer.style.height)){footer.style.height="";var h=footer.offsetHeight;footer.style.height=h+"px";var inner=document.querySelector(".ajaxcart__inner");inner&&(inner.style.bottom=h+"px")}}var pending=null;function renderNotes(){var targets=Array.prototype.filter.call(document.querySelectorAll(".ajaxcart_terms_conditions"),function(t){return!t.hasAttribute("data-delivery-checked")});targets.length&&(targets.forEach(function(t){t.setAttribute("data-delivery-checked","")}),fetch("/cart.js",{credentials:"same-origin"}).then(function(r){return r.json()}).then(function(cart){var html=buildNote(cart.items||[]);targets.forEach(function(t){var next=t.nextElementSibling;if(next&&next.classList.contains("delivery-confirm-note")&&next.remove(),html&&document.body.contains(t)){var note=document.createElement("div");note.className="delivery-confirm-note",note.innerHTML=html,t.parentNode.insertBefore(note,t.nextSibling)}refitDrawerFooter(t)})}).catch(function(e){console.error(e)}))}function scheduleRender(){clearTimeout(pending),pending=setTimeout(renderNotes,200)}function start(){var style=document.createElement("style");style.textContent=".delivery-confirm-note{font-size:13px;line-height:1.5;
1color:#777;margin:-4px 0 15px;padding:0 30px;}.delivery-confirm-note strong{color:#000;font-weight:500;}.delivery-confirm-note ul{margin:4px 0 0;padding-left:18px;list-style:disc;max-height:72px;overflow-y:auto;}",document.head.appendChild(style),new MutationObserver(scheduleRender).observe(document.body,{childList:!0,subtree:!0}),scheduleRender()}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",start):start()})(); 2//# sourceMappingURL=/cdn/shop/t/18/assets/magda-tabs.js.map?v=10540347436644909511791301578
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.