import{ai as t,d as n,aj as i,ak as e,al as s,am as o,M as a,an as l,_ as r,B as h,ao as p,ap as c,aq as d,ar as m,as as u,at as y,P as f,au as C,av as b,y as v,z as g,e as _,g as w,r as x,H as k,N as M,G as $,J as P,ae as S,D as T,aw as L,ax as B,W as E,q,ay as N,az as z,k as I,s as F,ah as O}from"./chunk.common_d3f72b1d.esm.js";const A=(t,n)=>n.every((n=>n in t));function V(n,i){return null!=n&&("cart"===(null==n?void 0:n.type)?function(n,i){A(n,["min_price","max_price","price","eligible","number_of_payment_terms","available_loan_types"])||i(t.Cart,JSON.stringify(n))}(n,i):function(n,i){var e;const s=A(n,["variants","max_price","min_price","number_of_payment_terms"]),o=(null===(e=n.variants)||void 0===e?void 0:e.length)>0&&A(n.variants[0],["id","price","eligible","available_loan_types","available"]);s&&o||i(t.Product,JSON.stringify(n))}(n,i),A(n,["min_price","max_price"]))}function H(n,i){return null!=n&&("cart"===n.type?function(n,i){if(!A(n,["min_price","max_price","price_per_term","eligible","number_of_payment_terms","full_price","financing_plans"]))return null==i||i(t.Cart,JSON.stringify(n)),!1;return!0}(n,i):function(n,i){var e;const s=A(n,["variants","max_price","min_price","financing_plans"]),o=(null===(e=n.variants)||void 0===e?void 0:e.length)>0&&A(n.variants[0],["id","price_per_term","eligible","full_price","available"]);if(!s||!o)return null==i||i(t.Product,JSON.stringify(n)),!1;return!0}(n,i))}class Z extends HTMLElement{constructor(){super(),this.t=!1,this.i=document.createElement("div"),this.attachShadow({mode:"open"})}static get observedAttributes(){return["variant-id","shopify-meta"]}connectedCallback(){var t;const n=this.o();null===(t=this.shadowRoot)||void 0===t||t.appendChild(n),this.i=n,this.t=!0}attributeChangedCallback(){var t;if(this.t){const n=this.o();null===(t=this.shadowRoot)||void 0===t||t.replaceChild(n,this.i),this.i=n}}disconnectedCallback(){var t;null===(t=this.shadowRoot)||void 0===t||t.removeChild(this.i)}o(){const t=this.getAttribute("shopify-meta"),n=this.getAttribute("variant-id"),i=Boolean(t&&H(JSON.parse(t))),e=document.createElement(i?"shop-pay-installments-banner":"shop-pay-banner");return n&&e.setAttribute("variant-id",n),t&&e.setAttribute("shopify-meta",t),e}}const j='\n \n
\n \n \n
\n',R=(t,n)=>`\nPay in 4 interest-free installments of ${t} with \n`,D=(t,n)=>`\nPay in 4 interest-free installments for orders over ${t} with \n`,J="CA Residents: Loans by Affirm Loan Services, LLC are made or arranged pursuant to a California Finance Lender license.",U='Rates from 0-36% APR. Payment options through Affirm are subject to an eligibility check, may not be available in all states, and are provided by these lending partners: affirm.com/lenders. Options depend on your purchase amount, and a down payment may be required.',W={INTEREST_AND_SPLIT_PAY:`The estimated payment amount excludes taxes and shipping. ${U} ${J}`,INTEREST_ONLY:`${U} ${J}`,SPLIT_PAY_ONLY:`The estimated payment amount excludes taxes and shipping. Payment options are offered by Affirm and are subject to an eligibility check and might not be available in all states. ${J}`,INELIGIBLE:`Payment options are offered by Affirm and are subject to an eligibility check and might not be available in all states. ${J}`,DYNAMIC_PDP:'The estimated payment amount excludes taxes and shipping. Rates range from 0-36% APR. Payment options through Shop Pay Installments are subject to an eligibility check and are provided by these lending partners: affirm.com/lenders. Options depend on your purchase amount, and a down payment may be required. More options may be available upon approval. State notices to consumers: affirm.com/licenses.'},Y=t=>`Choose your payment schedule at checkout – starting at 4 interest-free payments of ${t} every 2 weeks.`,G=()=>"Choose your payment schedule at checkout to split your purchase into monthly installments.",Q=t=>`Select installments at checkout to split your purchase into 4 interest-free payments of ${t} every 2 weeks.`,K=t=>`For orders over ${t}, select installments at checkout to split your purchase into 4 interest-free payments.`,X=t=>`For orders over ${t}, select installments at checkout to split your purchase into monthly payments.`,tt=t=>`For orders up to ${t}, select installments at checkout to split your purchase into multiple payments.`,nt=(t,n)=>`Sample ${1===t?"plan":"plans"} for ${n} purchase`,it="\n#shopify-payment-terms-modal .visually-hidden {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n#shopify-payment-terms-modal .modal-wrapper {\n max-width: 432px;\n}\n\n#shopify-payment-terms-modal p {\n font-size: 18px;\n line-height: 150%;\n}\n\n#shopify-payment-terms-modal section {\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,\n Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';\n}\n\n#shopify-payment-terms-modal .price {\n color: rgb(90, 49, 244);\n font-weight: 600;\n display: inline-flex;\n flex-direction: column;\n line-height: 1;\n align-items: center;\n}\n\n#shopify-payment-terms-modal .price__icon {\n width: 43px;\n height: 10px;\n}\n\n#shopify-payment-terms-modal .list {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n\n#shopify-payment-terms-modal .list-item__subheading {\n font-size: 14px;\n line-height: 140%;\n color: rgba(0, 0, 0, 0.7);\n}\n\n#shopify-payment-terms-modal .btn__close--icon {\n display: inline-flex;\n flex-shrink: 0;\n padding: 16px;\n border-radius: 6px;\n}\n\n#shopify-payment-terms-modal .btn__close--icon:hover,\n#shopify-payment-terms-modal .btn__close--icon:active,\n#shopify-payment-terms-modal .btn__close--icon:focus {\n background-color: rgb(244, 241, 254);\n color: rgb(63, 34, 171);\n}\n\n#shopify-payment-terms-modal .help_text {\n margin-bottom: 19px;\n margin-top: 16px;\n font-size: 11px;\n line-height: 14px;\n color: rgba(0, 0, 0, 0.6);\n}\n\n#shopify-payment-terms-modal .help_text small {\n color: inherit;\n letter-spacing: 0.04rem;\n font-weight: 300;\n font-size: 11px;\n}\n\n#shopify-payment-terms-modal .help_text__link {\n color: rgba(0, 0, 0, 0.6);\n text-decoration: underline;\n}\n\n#shopify-payment-terms-modal .help_text__link:hover,\n#shopify-payment-terms-modal .help_text__link:active,\n#shopify-payment-terms-modal .help_text__link:focus {\n color: rgb(63, 34, 171);\n}\n\n#shopify-payment-terms-modal .tagline__bold {\n font-weight: 700;\n}\n\n#shopify-payment-terms-modal footer, #shopify-payment-terms-cover footer {\n text-align: center;\n}\n\n#shopify-payment-terms-modal .shop-pay-logo-wrapper,\n#shopify-payment-terms-cover .shop-pay-logo-wrapper {\n margin-bottom: 12px;\n}\n\n#shopify-payment-terms-modal .close__icon {\n width: 13px;\n height: 13px;\n}\n\n#shopify-payment-terms-modal .affirm-logo,\n#shopify-payment-terms-cover .affirm-logo {\n width: 39px;\n height: 21px;\n padding-left: 4px;\n box-sizing: content-box;\n}\n\n#shopify-payment-terms-modal .affirm-text,\n#shopify-payment-terms-cover .affirm-text {\n display: flex;\n font-size: 12px;\n font-weight: 300;\n line-height: 150%;\n color: rgba(0, 0, 0, 0.6);\n justify-content: center;\n align-items: center;\n}\n";class et{constructor(t){this.l=t=>{this.h&&t.target!==this.p()&&!this.m(t)&&(t.preventDefault(),t.stopPropagation(),this.h.focus())},this.u=t=>{this.C&&t.target===this.v&&this.C.focus()},this.g=t}lock(){const t=this.g.querySelectorAll('a[href], button:not([disabled]):not([tabindex="-1"]');this.C=t[0],this.h=t[t.length-1],this.v=this._(),this.g.appendChild(this.v),this.g.addEventListener("focus",this.u,!0),document.addEventListener("focus",this.l,!0)}release(t={}){this.g.removeEventListener("focus",this.u,!0),document.removeEventListener("focus",this.l,!0),this.k(),t instanceof HTMLElement&&t.focus()}_(){const t=document.createElement("button");return t.setAttribute("aria-hidden","true"),t.className="visually-hidden",t}k(){this.v&&this.g.removeChild(this.v)}m(t){const n=t.composedPath().find((t=>t instanceof Element&&t.ariaModal));return Boolean(n)}p(){const t=this.g.getRootNode();return t instanceof ShadowRoot?t.host:null}}function st(t){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2}).format(t)}function ot(){var t,n,i;switch(null===(i=null===(n=null===(t=window.Shopify)||void 0===t?void 0:t.theme)||void 0===n?void 0:n.name)||void 0===i?void 0:i.toLowerCase()){case"boundless":case"brooklyn":return".cart__subtotal";case"dawn":return".totals__subtotal-value, .sections.cart.new_subtotal";case"debut":return".cart-subtotal__price";case"express":return".cart__subtotal, .cart-drawer__subtotal-value";case"minimal":return".h5.cart__subtotal-price";case"narrative":return".cart-subtotal__price, .cart-drawer__subtotal-number";case"simple":return".cart__subtotal.h3";case"supply":return".h1.cart-subtotal--price";case"venture":return".CartSubtotal"}return null}function at(){document.querySelector("[data-cart-subtotal]")||console.warn("[Shop Pay Installments] Cart price updates may not be handled automatically for this theme. To ensure the price shown in the Shop Pay Installments banner is updated correctly, follow the instructions found here: https://shopify.dev/themes/pricing-payments/installments#updating-the-banner-with-cart-total-changes")}function lt(t){var n,i,e;const s="#FFF";if(!t)return s;const o=t.host.parentElement&&(null===(n=getComputedStyle(t.host.parentElement).getPropertyValue("--payment-terms-background-color"))||void 0===n?void 0:n.trim()),a=null===(i=getComputedStyle(document.documentElement).getPropertyValue("--payment-terms-background-color"))||void 0===i?void 0:i.trim(),l=null===(e=getComputedStyle(document.documentElement).getPropertyValue("--color-body"))||void 0===e?void 0:e.trim(),r=o||a||l;return r&&CSS.supports("color",r)?r:s}function rt(t){return parseFloat(t.replace(/[^0-9.]/g,""))}function ht(t){const n=t.querySelector('select[name^="id"]')||t.querySelector('[name^="id"]');return n?Number(n.value):function(){const t=new URL(document.location.href).searchParams.get("variant");return t?Number(t):void 0}()}function pt(t,n){return{subTitle:nt(t,n),legalCopy:W.DYNAMIC_PDP}}function ct(t,n){return t.map((({pricePerTerm:t,apr:i,numberOfPaymentTerms:e,loanType:s})=>{const o=rt(t)*e,a=rt(n);return{pricePerTerm:t,apr:i,numberOfPaymentTerms:e,interest:st(0===i?0:o-a),totalPriceWithInterest:st(0===i?a:o),loanType:s}}))}function dt(t,n,i){return`\n \n
'}function yt(){return''}class ft extends HTMLElement{constructor(t,n,i,o,a,l,r,h){super(),this.M=!0,this.handleClose=()=>{this.$.trackModalAction(this.P,s.Close);const t=new Event("shopify_modal_close");this.dispatchEvent(t)},this.handleEscKey=t=>{"Escape"!==t.key&&"Esc"!==t.key||this.handleClose()},this.handleContinueToCheckout=()=>{this.M&&this.$.trackModalAction(this.P,s.ContinueToCheckout)},this.S=o,this.T=n,this.P=a,this.$=l;const p=document.createElement("template"),c=function(t){if(t&&t.includes(e.Interest))return["No hidden fees, ever.","No impact on your credit score to apply."];return["No fees, ever.","No impact on your credit score."]}(o),{subTitle:d,legalCopy:m}=function(t,n,i,s,o,a){if(!t||!s)return Ct(i,a,o);return t.includes(e.Interest)&&t.includes(e.SplitPay)?{subTitle:Y(n),legalCopy:W.INTEREST_AND_SPLIT_PAY}:t.includes(e.SplitPay)?{subTitle:Q(n),legalCopy:W.SPLIT_PAY_ONLY}:t.includes(e.Interest)?{subTitle:G(),legalCopy:W.INTEREST_ONLY}:Ct(i,a,o)}(o,t,i,n,h,r);p.innerHTML=function(t,n,i){return`\n \n