1document.addEventListener("scroll",function(){if(window.location.pathname==="/"||window.location.pathname===""){const header=document.getElementById("header-main-new");(window.scrollY||document.documentElement.scrollTop)>40?(header.classList.remove("transparent"),header.classList.add("scrolled")):(header.classList.remove("scrolled"),header.classList.add("transparent"))}}),document.addEventListener("DOMContentLoaded",function(){if(window.location.pathname==="/"||window.location.pathname===""){const listMenu=document.querySelectorAll("header-menu"),headerWrapper=document.querySelector(".header-wrapper");listMenu.length&&headerWrapper&&listMenu.forEach(listMenu2=>{listMenu2.addEventListener("mouseenter",()=>{headerWrapper.classList.add("transparent--hover")}),listMenu2.addEventListener("mouseleave",()=>{headerWrapper.classList.remove("transparent--hover")})});const headerDrawer=document.querySelector(".header__icon");if(headerDrawer&&headerWrapper){let isClassActive=!1;headerDrawer.addEventListener("click",()=>{headerWrapper&&(isClassActive=!isClassActive,isClassActive?headerWrapper.classList.add("transparent--hover"):headerWrapper.classList.remove("transparent--hover"))})}}}),document.addEventListener("DOMContentLoaded",function(){if(document.body.classList.contains("holiday-wallpapers")||document.body.classList.contains("floral-wallpapers")||document.body.classList.contains("vintage-wallpapers")||document.body.classList.contains("skull-wallpapers")||document.body.classList.contains("animal-print-wallpapers")||document.body.classList.contains("halloween-wallpapers")||document.body.classList.contains("betsey-wallpapers")){const lastGridBanner=document.querySelectorAll(".grid-banners");lastGridBanner.length>0&&lastGridBanner[lastGridBanner.length-1].classList.add("last-grid--banners")}}),document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".rich-text__blocks").forEach(block=>{const richTextElements=block.querySelectorAll(".rich-text__text");richTextElements.length>0&&(richTextElements[0].classList.add("first-rich-text"),richTextElements.length>1&&richTextElements[1].classList.add("second-rich-text"))})}),document.addEventListener("DOMContentLoaded",function(){const contactUsBlock=document.querySelector(".footer-block.grid__item.contact-us");if(contactUsBlock){const h2Element=contactUsBlock.querySelector("h2");if(!contactUsBlock.querySelector(".footerLinks")&&!contactUsBlock.querySelector(".social_icons")){const ulElement=document.createElement("ul");ulElement.classList.add("footer-block__details-content","list-unstyled","panel"),ulElement.innerHTML=` 2 <li><a href="mailto:[email protected]" class="link link--text list-menu__item list-menu__item--link">[email protected]</a></li> 3 <li><a href="tel:866-222-4243" class="link link--text list-menu__item list-menu__item--link">866-222-4243</a></li> 4 <li><a class="link link--text list-menu__item list-menu__item--link no-hover">7 days a week, 9am to 10pm ET</a></li> 5 `;const socialDiv=document.createElement("div");socialDiv.classList.add("desk-only"),socialDiv.innerHTML=` 6 <div class="social_icons arc-content desk-only"> 7 <div class="social-footer-div"> 8 <ul class="socialApps"> 9 <li class="facebook"> 10 <a href="https://www.facebook.com/xobetseyjohnson" title="Facebook" target="_blank"> 11 <span>Facebook</span> 12 <img src="https://cdn.shopify.com/s/files/1/0023/7187/8977/files/Facebook.png?v=1709543124" alt="Facebook"> 13 </a> 14 </li> 15 <li class="instagram"> 16 <a href="https://www.instagram.com/betseyjohnson/?hl=en" title="Instagram" target="_blank"> 17 <span>Instagram</span> 18 <img src="https://cdn.shopify.com/s/files/1/0023/7187/8977/files/Instagram.png?v=1709543125" alt="Instagram"> 19 </a> 20 </li> 21 <li class="pinterest"> 22 <a href="https://www.pinterest.com/xobetseyjohnson/" title="Pinterest" target="_blank">
23 <span>Pinterest</span> 24 <img src="https://cdn.shopify.com/s/files/1/0023/7187/8977/files/Pinterest.png?v=1709543125" alt="Pinterest"> 25 </a> 26 </li> 27 <li class="youtube"> 28 <a href="https://www.youtube.com/user/xobetseyjohnson" title="YouTube" target="_blank"> 29 <span>YouTube</span> 30 <img src="https://cdn.shopify.com/s/files/1/0023/7187/8977/files/Youtube.png?v=1709543125" alt="YouTube"> 31 </a> 32 </li> 33 <li class="tiktok"> 34 <a href="https://www.tiktok.com/@betseyjohnson?_t=8nfH6b82wE3&_r=1" title="Tiktok" target="_blank"> 35 <span>Tiktok</span> 36 <img src="https://cdn.shopify.com/s/files/1/0023/7187/8977/files/TT_Logo.png?v=1719898695" alt="Tiktok"> 37 </a> 38 </li> 39 </ul> 40 </div> 41 </div> 42 `,h2Element.insertAdjacentElement("afterend",ulElement),ulElement.insertAdjacentElement("afterend",socialDiv)}}}),document.addEventListener("DOMContentLoaded",function(){function attachClickListener(){var triggerElement=document.querySelector(".mobile_product_details .yotpo-reviews-star-ratings-widget"),targetElement=document.querySelector(".yotpo-main-widget.yotpo-small");triggerElement&&targetElement&&(triggerElement.addEventListener("click",function(){var targetPosition=targetElement.getBoundingClientRect().top,offsetPosition=targetPosition+window.scrollY-50;window.scrollTo({top:offsetPosition,behavior:"smooth"})}),observer.disconnect())}var observer=new MutationObserver(attachClickListener);observer.observe(document.body,{childList:!0,subtree:!0}),attachClickListener()}),document.addEventListener("DOMContentLoaded",function(){function attachClickListener(){var triggerElement=document.querySelector(".product__info-container .yotpo-reviews-star-ratings-widget"),targetElement=document.querySelector(".yotpo-main-widget");triggerElement&&targetElement&&(triggerElement.addEventListener("click",function(){var targetPosition=targetElement.getBoundingClientRect().top,offsetPosition=targetPosition+window.scrollY-200;window.scrollTo({top:offsetPosition,behavior:"smooth"})}),observer.disconnect())}var observer=new MutationObserver(attachClickListener);observer.observe(document.body,{childList:!0,subtree:!0}),attachClickListener()}),document.addEventListener("DOMContentLoaded",function(){function attachClickListener(){var links=document.querySelectorAll("body.privacy-policy a"),offsetDesktop=75,offsetMobile=50;links.forEach(function(link){link.addEventListener("click",function(e){var targetId=this.getAttribute("href").replace("#section_",""),targetElement=document.getElementById(targetId);if(targetElement){e.preventDefault();var targetPosition=targetElement.getBoundingClientRect().top,offset=window.innerWidth<=768?offsetMobile:offsetDesktop,offsetPosition=targetPosition+window.scrollY-offset;window.scrollTo({top:offsetPosition,behavior:"smooth"})}})}),observer.disconnect()}var observer=new MutationObserver(attachClickListener);observer.observe(document.body,{childList:!0,subtree:!0}),attachClickListener()}),document.addEventListener("DOMContentLoaded",function(){const tables=document.querySelectorAll("body.privacy-policy table");tables.length>0&&tables.forEach(table=>{const wrapper=document.createElement("div");wrapper.classList.add("scrollable-wrapper"),table.parentNode.insertBefore(wrapper,table),wrapper.appendChild(table)});const myInput=document.querySelector('body.order-tracking .section-header input[name="submitorder"]');myInput&&(myInput.style.padding="0")}),document.addEventListener("DOMContentLoaded",function(){const tables=document.querySelectorAll("body.do-not-sell-my-personal-information table");tables.length>0&&tables.forEach(table=>{const wrapper=document.createElement("div");wrapper.classList.add("scrollable-wrapper"),table.parentNode.insertBefore(wrapper,table),wrapper.appendChild(table)})}
42),document.querySelectorAll("details.mega-menu").forEach(detailsElement=>{detailsElement.addEventListener("mouseenter",()=>{detailsElement.setAttribute("open",!0)}),detailsElement.addEventListener("mouseleave",()=>{detailsElement.removeAttribute("open")}),document.querySelectorAll(".__block img").forEach(function(image){image.addEventListener("contextmenu",function(event){if(event.preventDefault(),this.dataset.downloaded)return;const parentAnchor=this.closest("a"),fileName=parentAnchor&&parentAnchor.title||"imagen",jpegUrl=this.src,link=document.createElement("a");link.href=jpegUrl,link.download=`${fileName}.jpeg`,document.body.appendChild(link),link.click(),document.body.removeChild(link),this.dataset.downloaded=!0})})}),document.addEventListener("DOMContentLoaded",()=>{function injectAfterpayStyles(modal){if(modal&&modal.shadowRoot&&!modal.shadowRoot.querySelector("#afterpay-custom-style")){const style=document.createElement("style");style.id="afterpay-custom-style",style.textContent=` 43 .afterpay-modal-wrapper * { 44 max-width: 100vw !important; 45 } 46 `,modal.shadowRoot.appendChild(style)}}new MutationObserver(()=>{const modal=document.querySelector("afterpay-modal");modal&&injectAfterpayStyles(modal)}).observe(document.body,{childList:!0,subtree:!0});const existingModal=document.querySelector("afterpay-modal");existingModal&&injectAfterpayStyles(existingModal)}),document.addEventListener("DOMContentLoaded",()=>{function waitFor(sel,root=document,timeoutMs=1e4){return new Promise(resolve=>{const found=root.querySelector(sel);if(found)return resolve(found);const mo=new MutationObserver(()=>{const el=root.querySelector(sel);el&&(mo.disconnect(),resolve(el))});mo.observe(root===document?document.body:root,{childList:!0,subtree:!0}),setTimeout(()=>{mo.disconnect(),resolve(null)},timeoutMs)})}Promise.all([waitFor("square-placement"),waitFor(".klarna-cta")]).then(async([square,klarna])=>{if(!square||!klarna)return;const wrapper=document.createElement("div");wrapper.className="payment-row",square.parentNode.insertBefore(wrapper,square),wrapper.appendChild(square),wrapper.appendChild(klarna);const paypal=document.querySelector(".paypal-pay-later-row")||await waitFor(".paypal-pay-later-row",document,3e3);paypal&&wrapper.appendChild(paypal);function checkWidth(){const parentWidth=wrapper.clientWidth;square.offsetWidth>=parentWidth-5?klarna.classList.add("klarna--fixed"):klarna.classList.remove("klarna--fixed")}checkWidth();const ro=new ResizeObserver(checkWidth);ro.observe(square),ro.observe(wrapper)})});function closeMobileSearchDrawer(element){element.closest(".mobile__Search")?.querySelector("details[open]")?.removeAttribute("open")}document.addEventListener("keydown",event=>{if(event.key!=="Enter")return;const searchInput=event.target.closest('.mobile__Search input[type="search"]');searchInput&&closeMobileSearchDrawer(searchInput)},!0); 47//# sourceMappingURL=/cdn/shop/t/1305/assets/bj.js.map?v=26575137934313713801785774817
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.