{"version":3,"file":"SaleSystem.BQPPS1cb.mjs","names":["React.useState","_Fragment","__esmMin","init_ssg_sandbox_shims","init_npm_react_dom_18_3_1","l","_e","Ha","p","c","init_jsx_runtime","ce","init_npm_react_18_3_1","window","ControlType","addPropertyControls","init_framer_DKgW_P28","currentSale","q","SALES","s","now","day","endsText","to","d","h","m","sec","priceMap","single","PRICE","bundle","money","earlyScript","data","lines","n","PCT","tagSvg","tw","w","strands","e","open","defs","k","body","front","back","twine","useCountdown","left","setLeft","tick","t","Banner","sale","SaleSystem","enabled","props","setSale","mount","setMount","ready","setReady","root","map","qty","onPick","run","placeNavTag","tag","a","r","x","NAV_E","rad","onTap","f","ev","onMove","el","on","inside","busy","v","hits","v0","v1","re","inst","nv","strong","row","was","badge","rib","bar","pr","head","wt","tx","marked","want","first","hits2","ul","FIT_LINK_PAGES","linkTrust","FIT_HTML","nm","h1","kicker","anchor","raf","mo","iv","CSS","Portal","children","init_SaleSystem","y","html"],"sources":["https:/framerusercontent.com/modules/STUbOFmhzYVIlRn0Z48L/QkuSwA6l0xlMn5h3cA3G/SaleSystem.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{createPortal}from\"react-dom\";import{addPropertyControls,ControlType}from\"framer\";/* ================================================================\r\n   ONE STORY SALE SYSTEM\r\n   Everything about prices and sales lives in this block.\r\n   The page switches between sales by itself on the dates below,\r\n   nobody has to edit the page when a sale starts or ends.\r\n\r\n   - PRICE.now   = the real Shopify price (Logan sets the same in Shopify)\r\n   - PRICE.was   = the crossed-out price shown during a sale\r\n   - each sale   = start date, end date, words and colours\r\n   - after the last sale ends: plain price, no banner, no strike\r\n\r\n   Test any sale before its date: add ?sale=bf / ?sale=xmas / ?sale=ny\r\n   (or ?sale=none) to the page address.\r\n   ================================================================ */const PRICE={now:199,was:249,bundleOff:73};const SALES=[{id:\"bf\",from:\"2026-11-01\",to:\"2026-12-02\",name:\"Cyber Monday\",deal:\"20% off\",badge:\"Save 20%, Cyber Monday deal\",bg:\"linear-gradient(115deg,#120B07 0%,#2A160B 48%,#4A220C 100%)\",edge:\"#E8A64A\",gold:\"linear-gradient(180deg,#FFE7A8 0%,#F5B94E 55%,#D98A2B 100%)\",ink:\"#FFF6E8\",chip:\"#B64D11\"},{id:\"xmas\",from:\"2026-12-02\",to:\"2026-12-27\",name:\"Holiday Sale\",deal:\"20% off\",badge:\"Save 20%, Holiday sale\",bg:\"linear-gradient(115deg,#0E2A1C 0%,#14432C 55%,#7E1F1A 100%)\",edge:\"#E9C46A\",gold:\"linear-gradient(180deg,#FFF1C2 0%,#EBC15E 60%,#C9962F 100%)\",ink:\"#FFF8EC\",chip:\"#A8231B\"},{id:\"ny\",from:\"2026-12-27\",to:\"2027-02-01\",name:\"New Year Deal\",deal:\"20% off\",badge:\"Save 20%, New Year deal\",bg:\"linear-gradient(115deg,#0B1226 0%,#17234A 55%,#2C2A5A 100%)\",edge:\"#D9B862\",gold:\"linear-gradient(180deg,#FFF3CC 0%,#E6C36A 55%,#B8913A 100%)\",ink:\"#F4F1FF\",chip:\"#B64D11\"}];/* ================================================================ */const day=s=>{const[y,m,d]=s.split(\"-\").map(Number);return new Date(y,m-1,d).getTime();};export function currentSale(now=Date.now()){try{const q=new URLSearchParams(window.location.search).get(\"sale\");if(q===\"none\")return null;if(q)return SALES.find(s=>s.id===q)||null;}catch{}return SALES.find(s=>now>=day(s.from)&&now<day(s.to))||null;}function endsText(to){const l=Math.max(0,to-Date.now());const d=Math.floor(l/864e5),h=Math.floor(l/36e5)%24,m=Math.floor(l/6e4)%60;const sec=Math.floor(l/1e3)%60;return\"ends in \"+(d>0?d+\"d \":\"\")+String(h).padStart(2,\"0\")+\"h \"+String(m).padStart(2,\"0\")+\"m \"+String(sec).padStart(2,\"0\")+\"s\";}/* the discount shown everywhere, as a percentage of the crossed-out price */const PCT=Math.round((PRICE.was-PRICE.now)/PRICE.was*100);const money=n=>\"$\"+(Number.isInteger(n)?String(n):n.toFixed(2));const OLD={single:249,bundle:425,bundleWas:498};/* every price that the existing sections print, mapped to the new one */function priceMap(){const single=PRICE.now;const bundle=PRICE.now*2-PRICE.bundleOff;return[[/\\$249\\.00/g,money(single)+\".00\"],[/\\$249(?![\\d.])/g,money(single)],[/\\$62\\.25/g,\"$\"+(single/4).toFixed(2)],[/\\$425\\.00/g,money(bundle)+\".00\"],[/\\$425(?![\\d.])/g,money(bundle)],[/\\$106\\.25/g,\"$\"+(bundle/4).toFixed(2)],[/\\$498\\.00/g,money(PRICE.now*2)+\".00\"],[/\\$498(?![\\d.])/g,money(PRICE.now*2)],[/\\$2\\.49 an entry/g,\"$\"+(single/100).toFixed(2)+\" an entry\"]];}/* runs while the page HTML is still loading (before the first paint): marks the page with the active sale,\r\n   paints the strip in the sale colours and hands the strip its sale lines, so nothing flashes orange first */function earlyScript(){const data=SALES.map(s=>({id:s.id,from:s.from,to:s.to,name:s.name,bg:s.bg,edge:s.edge}));const lines=n=>[n+\": \"+PCT+\"% off\",\"Now \"+money(PRICE.now)+\", was \"+money(PRICE.was)];return\"(function(){try{var S=\"+JSON.stringify(data)+\",L=\"+JSON.stringify(SALES.map(s=>lines(s.name)))+\";function d(x){var p=x.split('-');return new Date(+p[0],p[1]-1,+p[2]).getTime()}var n=Date.now(),q=null;try{q=new URLSearchParams(location.search).get('sale')}catch(e){}\"+\"var k=-1;for(var i=0;i<S.length;i++){if(q?S[i].id===q:(n>=d(S[i].from)&&n<d(S[i].to))){k=i;break}}if(q==='none')k=-1;\"+\"if(k<0){document.documentElement.setAttribute('data-sale-over','1');return}var s=S[k];document.documentElement.setAttribute('data-sale',s.id);\"+\"window.__osSale={id:s.id,lines:L[k]};var st=document.createElement('style');st.id='slEarly';st.textContent='.fxt{background:'+s.bg+'!important;border-bottom:1px solid '+s.edge+'55}';document.head.appendChild(st);\"+\"try{window.dispatchEvent(new Event('os-sale'))}catch(e){}}catch(e){}})()\";}/* extra twine on the menu button tag so it hangs below the button */const NAV_E=34;/* hanging kraft-paper price tag: \"20% discount\" on a string */function tagSvg(k,e=0){/* y = 0 is the edge the tag hangs from. The twine comes over that edge from behind (anything above y = 0\r\n       is clipped), runs down and goes through the eyelet; the tag swings around that point.\r\n       e = extra string length (menu button version). The tag body has two faces: the front (\"20% discount\")\r\n       and the back (crossed-out old price and the sale price); hovering or tapping flips it around the string. */const tw=(d,c,w)=>'<path d=\"'+d+'\" fill=\"none\" stroke=\"'+c+'\" stroke-width=\"'+w+'\" stroke-linecap=\"round\"/>';const ey=36;const strands=(c,w)=>(e>0?tw(\"M31 -9 C31 0 31.6 4 32 8 L33.7 \"+(ey+e-6.5),c,w)+tw(\"M39.6 -9 C39.6 0 38.6 4 38.2 8 L36.3 \"+(ey+e-6.5),c,w):tw(\"M28 -9 C27 -3 25.4 2 25.2 7 C25 15 28.6 24 33.6 29.5\",c,w)+tw(\"M42 -9 C43 -3 44.6 2 44.8 7 C45 15 41.4 24 36.2 29.5\",c,w))+tw(\"M33.6 \"+(ey+e-6.5)+\" C35.6 \"+(ey+e-5.4)+\" 36.6 \"+(ey+e-3.6)+\" 35.6 \"+(ey+e),c,w)+tw(\"M36.2 \"+(ey+e-6.5)+\" C34.2 \"+(ey+e-5.2)+\" 33.8 \"+(ey+e-3.4)+\" 34.6 \"+(ey+e),c,w);const H=134+e;const open='<svg viewBox=\"0 -10 70 '+H+'\" aria-hidden=\"true\" overflow=\"visible\">';const defs='<defs><linearGradient id=\"tp'+k+'\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\"><stop offset=\"0\" stop-color=\"#FAEFDC\"/><stop offset=\".5\" stop-color=\"#F5E6CC\"/><stop offset=\"1\" stop-color=\"#E6D0A8\"/></linearGradient>'+'<radialGradient id=\"tr'+k+'\" cx=\".4\" cy=\".35\" r=\".7\"><stop offset=\"0\" stop-color=\"#C9A877\"/><stop offset=\"1\" stop-color=\"#7E5E3C\"/></radialGradient>'+'<clipPath id=\"tc'+k+'\"><rect x=\"-40\" y=\"0\" width=\"150\" height=\"'+(200+e)+'\"/></clipPath></defs>';const body='<g transform=\"translate(0 '+e+')\"><path d=\"M24 24 L46 24 L60 39 L60 116 L49 116 L45 110.5 L41 116 L10 116 L10 39 Z\" fill=\"url(#tp'+k+')\" stroke=\"#C7AA7A\" stroke-width=\"1.1\" stroke-linejoin=\"round\"/>'+'<path d=\"M25.5 27 L44.5 27 L57 40.5 L57 113\" fill=\"none\" stroke=\"#FFF7E6\" stroke-opacity=\".7\" stroke-width=\".8\"/>';const f='font-family=\"Overused Grotesk,Inter,Arial,sans-serif\"';const front=open+defs+body+'<text x=\"35\" y=\"76\" text-anchor=\"middle\" '+f+' font-weight=\"900\" font-size=\"21\" fill=\"#3B2516\" letter-spacing=\"-.6\">'+PCT+\"%</text>\"+'<text x=\"35\" y=\"92\" text-anchor=\"middle\" '+f+' font-weight=\"500\" font-size=\"10.5\" fill=\"#3B2516\">discount</text></g></svg>';const back=open+defs+body+'<text x=\"35\" y=\"62\" text-anchor=\"middle\" '+f+' font-weight=\"700\" font-size=\"11\" fill=\"#7C6A58\">was</text>'+'<text x=\"35\" y=\"75\" text-anchor=\"middle\" '+f+' font-weight=\"700\" font-size=\"13.5\" fill=\"#8C7B69\">'+money(PRICE.was)+\"</text>\"+'<path d=\"M20 71.5 L50 66.5\" stroke=\"#B64D11\" stroke-width=\"1.7\" stroke-linecap=\"round\"/>'+'<text x=\"35\" y=\"97\" text-anchor=\"middle\" '+f+' font-weight=\"900\" font-size=\"23\" fill=\"#B64D11\" letter-spacing=\"-.6\">'+money(PRICE.now)+\"</text></g></svg>\";const twine=open+defs+'<g transform=\"translate(0 '+e+')\"><circle cx=\"35\" cy=\"36\" r=\"5.4\" fill=\"url(#tr'+k+')\"/></g>'+'<g clip-path=\"url(#tc'+k+')\">'+strands(\"#6B4E31\",2.1)+strands(\"#E6CFA3\",1.15)+\"</g>\"+'<g transform=\"translate(0 '+e+')\"><circle cx=\"35\" cy=\"36\" r=\"2.6\" fill=\"#2E1E10\"/></g></svg>';return'<span class=\"slFlipWrap\"><span class=\"slFlip\"><span class=\"slFace slFront\">'+front+'</span><span class=\"slFace slBack\">'+back+\"</span></span>\"+'<span class=\"slTwine\">'+twine+\"</span></span>\";}/* pin the strip under the menu while scrolling (switched off: the user preferred it scrolling away) */const PIN_STRIP=false;/* same list styling as before (icon + line), new promises */const FIT_HTML='<li><svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12 3l7 3v5.5c0 4.3-2.9 7.9-7 9.5-4.1-1.6-7-5.2-7-9.5V6z\"></path><path d=\"m8.8 12.2 2.2 2.2 4.2-4.4\"></path></svg>No subscription needed</li>'+'<li><svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M4.5 12a7.5 7.5 0 1 0 2.2-5.3\"></path><path d=\"M4.5 3.8v3.6h3.6\"></path></svg>30-day money back guarantee</li>'+'<li><svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"9\" r=\"5.2\"></circle><path d=\"m8.8 13.3-1.6 7 4.8-2.4 4.8 2.4-1.6-7\"></path></svg>12-month pen warranty</li>';/* review copy: the promises open the matching help page (same tab) */const FIT_LINK_PAGES=/^\\/checkout-reviews\\/?$/;const linkTrust=html=>html.replace(\"</svg>No subscription needed</li>\",'</svg><a class=\"osTL\" href=\"/returns-and-warranty\">No subscription needed</a></li>').replace(\"</svg>30-day money back guarantee</li>\",'</svg><a class=\"osTL\" href=\"/returns-and-warranty\">30-day money back guarantee</a></li>').replace(\"</svg>12-month pen warranty</li>\",'</svg><a class=\"osTL\" href=\"/product-warranty\">12-month pen warranty</a></li>');/* the three promises shown under the hero buy button */const TRUST_HTML='<span><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M12 3l7 3v5.5c0 4.3-2.9 7.9-7 9.5-4.1-1.6-7-5.2-7-9.5V6z\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linejoin=\"round\"/><path d=\"m8.8 12.2 2.2 2.2 4.2-4.4\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>No subscription needed</span>'+'<span><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M4.5 12a7.5 7.5 0 1 0 2.2-5.3\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"round\"/><path d=\"M4.5 3.8v3.6h3.6\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>30-day money back guarantee</span>'+'<span><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"9\" r=\"5.2\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\"/><path d=\"m8.8 13.3-1.6 7 4.8-2.4 4.8 2.4-1.6-7\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linejoin=\"round\"/></svg>12-month pen warranty</span>';function useCountdown(to){const[left,setLeft]=React.useState(null);React.useEffect(()=>{if(!to)return;const tick=()=>setLeft(Math.max(0,to-Date.now()));tick();const t=window.setInterval(tick,1e3);return()=>window.clearInterval(t);},[to]);return left;}/* the countdown next to the sale name was swapped for two promises (Logan, Dec 2); set to true to bring the timer back */const SHOW_TIMER=false;function Banner({sale}){const left=useCountdown(SHOW_TIMER?day(sale.to):null);const parts=left===null?null:[[Math.floor(left/864e5),\"days\"],[Math.floor(left/36e5)%24,\"hrs\"],[Math.floor(left/6e4)%60,\"min\"],[Math.floor(left/1e3)%60,\"sec\"]];return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"span\",{className:\"slTag slTagBan\",children:/*#__PURE__*/_jsx(\"span\",{className:\"slTagIn\",dangerouslySetInnerHTML:{__html:tagSvg(\"b\")}})}),/*#__PURE__*/_jsxs(\"div\",{className:\"slBan sl-\"+sale.id,role:\"note\",\"aria-label\":sale.name+\", \"+sale.deal,children:[/*#__PURE__*/_jsx(\"span\",{className:\"slShine\",\"aria-hidden\":\"true\"}),/*#__PURE__*/_jsx(\"div\",{className:\"slTop\",children:/*#__PURE__*/_jsx(\"span\",{className:\"slName\",children:sale.name})}),SHOW_TIMER&&parts?/*#__PURE__*/_jsxs(\"div\",{className:\"slTimer\",\"aria-label\":\"Time left in the sale\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"slEnds\",children:\"Ends in\"}),parts.map(([v,l])=>/*#__PURE__*/_jsxs(\"span\",{className:\"slCell\",children:[/*#__PURE__*/_jsx(\"b\",{children:String(v).padStart(2,\"0\")}),/*#__PURE__*/_jsx(\"small\",{className:\"slUL\",children:l}),/*#__PURE__*/_jsx(\"small\",{className:\"slUS\",children:l.charAt(0)})]},l))]}):/*#__PURE__*/_jsxs(\"div\",{className:\"slPerks\",\"aria-label\":\"Free US shipping and 30-day money-back guarantee\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"slPerk\",children:\"Free US shipping\"}),/*#__PURE__*/_jsx(\"span\",{className:\"slDot\",\"aria-hidden\":\"true\",children:\"\\xb7\"}),/*#__PURE__*/_jsx(\"span\",{className:\"slPerk\",children:\"30-day money-back\"})]})]})]});}const CSS=s=>`\r\n.slMount{display:block;width:100%;margin:0 0 14px}\r\n.slBan{position:relative;overflow:hidden;border-radius:14px;padding:14px 20px 12px;background:${s?s.bg:\"#000\"};border:1px solid ${s?s.edge:\"#000\"}55;box-shadow:0 10px 26px rgba(40,18,5,.22),inset 0 1px 0 rgba(255,255,255,.08);color:${s?s.ink:\"#fff\"};font-family:\"Overused Grotesk\",Inter,-apple-system,\"Segoe UI\",sans-serif}\r\n.slShine{position:absolute;inset:0;background:linear-gradient(105deg,transparent 30%,rgba(255,236,190,.16) 45%,transparent 60%);transform:translateX(-100%);animation:slShine 4.5s ease-in-out 1s infinite;pointer-events:none}\r\n@keyframes slShine{0%{transform:translateX(-100%)}40%,100%{transform:translateX(100%)}}\r\n.slTop{position:relative;padding-right:84px;display:flex;align-items:center;justify-content:space-between;gap:12px}\r\n.slName{font-size:clamp(18px,2.1vw,25px);line-height:1;font-weight:800;letter-spacing:.06em;text-transform:uppercase;font-style:italic}\r\n.slDeal{display:inline-flex;align-items:baseline;gap:6px;white-space:nowrap}\r\n.slDeal b{display:inline-block;padding:.06em .16em .08em .04em;margin-right:-.1em;font-size:clamp(26px,3.2vw,40px);line-height:1.05;font-weight:900;font-style:italic;letter-spacing:-.01em;background:${s?s.gold:\"#fff\"};-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 2px 6px rgba(0,0,0,.35))}\r\n.slDeal i{font-size:clamp(14px,1.5vw,18px);font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:${s?s.edge:\"#fff\"};font-style:italic}\r\n.slTimer{position:relative;display:flex;align-items:center;gap:6px;margin-top:10px;padding-top:10px;border-top:1px solid rgba(255,255,255,.12)}\r\n.slEnds{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;opacity:.8;margin-right:4px}\r\n.slCell{display:inline-flex;align-items:baseline;gap:3px;padding:4px 8px;border-radius:7px;background:rgba(255,255,255,.09)}\r\n.slCell b{font-size:15px;font-weight:800;font-variant-numeric:tabular-nums;color:#fff}\r\n.slCell small{font-size:10px;font-weight:600;opacity:.75;text-transform:uppercase;letter-spacing:.06em}\r\n/* one line: title, divider, countdown; the hanging tag sits at the end */\r\n.slBan{display:flex;align-items:center;gap:18px;padding:14px 112px 14px 22px!important}\r\n.slTop{padding-right:0!important;flex:none}\r\n.slName{font-size:clamp(22px,2.3vw,30px)!important;color:#FFCF73;text-shadow:0 0 18px rgba(255,190,90,.35),0 2px 0 rgba(0,0,0,.35);letter-spacing:.05em}\r\n.slTimer{margin-top:0!important;padding-top:0!important;border-top:0!important;padding-left:18px;border-left:1px solid rgba(255,214,140,.25);flex-wrap:nowrap}\r\n.slEnds{color:#FFE2A8;opacity:1!important;white-space:nowrap}\r\n.slCell{background:rgba(255,214,140,.12)!important;border:1px solid rgba(255,214,140,.28)}\r\n.slCell b{color:#FFF6E2!important}\r\n.slCell small{color:#FFD99A;opacity:1!important}\r\n.slUS{display:none}\r\n@media(max-width:809px){.slBan{gap:10px;padding:12px 66px 12px 13px!important}.slName{font-size:15px!important;letter-spacing:.03em}.slTimer{padding-left:10px;gap:5px!important}.slEnds{display:none}.slCell{padding:0!important;background:none!important;border:0!important;gap:1px!important}.slCell b{font-size:14px!important;font-variant-numeric:tabular-nums}.slUL{display:none}.slUS{display:inline;font-size:11px!important;text-transform:lowercase!important}}\r\n@media(max-width:374px){.slName{font-size:13.5px!important}.slTimer{gap:4px!important;padding-left:8px}.slCell b{font-size:13px!important}}\r\n/* promises in place of the countdown: same divider and gold lettering as the timer */\n.slPerks{position:relative;display:flex;align-items:center;gap:9px;padding-left:18px;border-left:1px solid rgba(255,214,140,.25);white-space:nowrap}\n.slPerk{font-size:12.5px;line-height:1.2;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#FFE2A8}\n.slDot{color:#FFD99A;opacity:.75;font-weight:800}\n@media(min-width:810px) and (max-width:1199px){.slPerks{flex-direction:column;align-items:flex-start;gap:3px}.slDot{display:none}}\n@media(max-width:809px){.slPerks{flex-direction:column;align-items:flex-start;gap:2px;padding-left:10px}.slDot{display:none}.slPerk{font-size:10.5px;letter-spacing:.05em}}\n@media(max-width:374px){.slPerks{padding-left:8px}.slPerk{font-size:9.5px;letter-spacing:.03em}}\n/* review row on phones: the \"5.0 (5 reviews)\" text sat higher than the stars */\r\n.purchaseHero.isPhone .rating{align-items:center!important}\r\n.purchaseHero.isPhone .rating>span{line-height:1!important;display:inline-flex;align-items:center}\r\n.purchaseHero.isPhone .ratingReviewLink{align-items:center!important;padding-bottom:1px!important;margin-top:1px}\r\n/* desktop + tablet: the three promises sit side by side in one centred row; phones keep the vertical list */\r\n@media(min-width:810px){.purchaseHero:not(.isPhone) .fitList[data-os]{flex-direction:row!important;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 24px!important;margin-top:16px!important;font-size:14px!important}.purchaseHero:not(.isPhone) .fitList[data-os] li{gap:8px!important;white-space:nowrap}.purchaseHero:not(.isPhone) .fitList[data-os] svg{width:18px!important;height:18px!important;flex:0 0 18px!important}}\r\n.osTrust{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 22px;margin:14px 0 4px;font-family:\"Overused Grotesk\",Inter,sans-serif;font-size:13.5px;line-height:1.3;color:#4F463E}\r\n.osTrust span{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}\r\n.osTrust svg{width:17px;height:17px;flex:none;color:#B64D11}\r\n.fitList a.osTL,.fitList a.osTL:hover,.fitList a.osTL:focus,.fitList a.osTL:visited{color:inherit!important;font:inherit!important;text-decoration:none!important;cursor:pointer;-webkit-tap-highlight-color:transparent}\r\n/* no flash of the old offer: the old price, chip, instalments, list and totals stay invisible (space kept) until the sale swap has run; safety: shown after 3 s whatever happens */\r\nhtml[data-sale]:not([data-sl-ready]) .purchaseHero:not(.osNew) :is(.priceRow,.installments,.fitList,.bundlePrice,.bundleNote,.totalRow strong:last-child,.primaryButton .buttonText>span:first-child),html[data-sale]:not([data-sl-ready]) .stickyPurchaseBar .stickyPrice{visibility:hidden;animation:slFs 0s linear 8s forwards}\nhtml[data-sale]:not([data-fi-ready]) .purchaseHero:not(.osNew) .rewardNote{visibility:hidden;animation:slFs 0s linear 10s forwards}\r\n/* new offer built into the page: the guarantee box's space is held from the first paint (the box itself is added a moment later) */\r\n.purchaseHero.osNew .rewardNote.osHold{display:block!important;visibility:hidden!important;height:90px!important;margin:12px 0 0!important;padding:0!important;border:0!important;overflow:hidden!important}\r\n.purchaseHero.osNew .rewardNote.osHold:has(+ #fi-box){display:none!important}\r\n.purchaseHero.osNew #fi-box{min-height:90px}\r\n\r\n@keyframes slFs{to{visibility:visible}}\n/* width-matched stand-in fonts for the hero while Overused Grotesk downloads, so the text keeps the same line breaks (no jump when the real font arrives) */\n@font-face{font-family:\"OG Fallback Eyebrow\";src:local(\"Arial Bold\"),local(\"Arial-BoldMT\"),local(\"Roboto Bold\"),local(\"Roboto-Bold\"),local(\"Arial\");font-weight:800;size-adjust:80.5%}\n@font-face{font-family:\"OG Fallback Bold\";src:local(\"Arial Bold\"),local(\"Arial-BoldMT\"),local(\"Roboto Bold\"),local(\"Roboto-Bold\"),local(\"Arial\");font-weight:700;size-adjust:89.5%}\n@font-face{font-family:\"OG Fallback Regular\";src:local(\"Arial\"),local(\"ArialMT\"),local(\"Roboto\"),local(\"Roboto-Regular\");font-weight:400;size-adjust:91.1%}\n.purchaseHero .eyebrow{font-family:\"Overused Grotesk\",\"OG Fallback Eyebrow\",Inter,Arial,sans-serif!important}\n.purchaseHero h1,.purchaseHero .priceRow strong{font-family:\"Overused Grotesk\",\"OG Fallback Bold\",Inter,Arial,sans-serif!important}\n.purchaseHero .subtitle,.purchaseHero .installments{font-family:\"Overused Grotesk\",\"OG Fallback Regular\",Inter,Arial,sans-serif!important}\r\n/* phones: the price, the crossed-out price and the \"Save 20%\" tag stay on ONE row (sizes scale with the screen width) */\r\n@media(max-width:809.98px){\r\nhtml[data-sale] .purchaseHero.isPhone .priceRow{flex-wrap:nowrap!important;gap:min(2vw,8px)!important;align-items:center!important}\r\nhtml[data-sale] .purchaseHero.isPhone .priceRow>strong{font-size:min(8.7vw,36px)!important}\r\nhtml[data-sale] .purchaseHero.isPhone .priceRow .slWas{font-size:min(4.7vw,20px)!important;margin-right:-2px}\r\nhtml[data-sale] .purchaseHero.isPhone .priceRow>span:not(.slWas){font-size:min(2.95vw,13px)!important;padding:.55em .9em .55em .7em!important;gap:.5em!important;white-space:nowrap;min-width:0;flex:0 1 auto}\r\nhtml[data-sale] .purchaseHero.isPhone .priceRow>span:not(.slWas)::before{width:1.15em!important;height:1.15em!important}\r\n}\r\n/* the sale banner's space is reserved from the first paint, so nothing jumps down when it appears */\r\nhtml[data-sale] .purchaseHero .detailsCore:not(:has(> .slMount .slBan))::before{content:\"\";display:block;height:42px;margin-bottom:14px}\n.slMount:not(:has(.slBan)){margin:0!important}\r\n@media(min-width:810px){html[data-sale] .purchaseHero .detailsCore:not(:has(> .slMount .slBan))::before{height:59px}}\r\n@media(min-width:1200px){html[data-sale] .purchaseHero .detailsCore:not(:has(> .slMount .slBan))::before{height:60px}}\r\n.osNoSub{display:none;align-items:center;gap:8px;font-family:\"Overused Grotesk\",Inter,sans-serif;font-size:14px;color:#4F463E;white-space:nowrap}\r\n.osNoSub i{width:8px;height:8px;border-radius:50%;background:#2FA866;box-shadow:0 0 0 3px rgba(47,168,102,.15)}\r\n@media(min-width:810px){.stickyPurchaseBar .stickyPromise{display:none!important}.stickyPurchaseBar .osNoSub{display:inline-flex;grid-column:2;grid-row:1;justify-self:center;align-self:center}.stickyPurchaseBar .slRib{display:none!important}}\r\n@media(max-width:809px){.osTrust{gap:8px 16px;font-size:12.5px}.osTrust svg{width:15px;height:15px}}\r\n.osStName{display:none}\r\n/* desktop: compact floating pill (product, price, no subscription, button) */\r\n@media(min-width:1200px){\r\n.stickyPurchaseBar{width:min(780px,calc(100vw - 40px))!important;max-width:none;min-height:0!important;grid-template-columns:auto auto 1fr auto!important;gap:18px!important;padding:9px 9px 9px 24px!important;border-radius:999px!important}\r\n.stickyPurchaseBar .osStName{display:inline-flex;align-items:center;gap:12px;grid-column:1;grid-row:1;font-size:17px;font-weight:700;color:#1E1B18;white-space:nowrap}\r\n.osStName img{width:auto;height:38px;max-width:46px;object-fit:contain;filter:drop-shadow(0 2px 3px rgba(40,20,5,.16))}\r\n.osStName em{font-style:normal;color:#B0A396;margin-left:2px}.stickyPurchaseBar .osStName{margin-right:-8px;gap:8px!important}\r\n.stickyPurchaseBar .priceCluster{grid-column:2;grid-row:1;gap:8px!important}\r\n.stickyPurchaseBar .priceMeta{display:none!important}\r\n.stickyPurchaseBar .stickyPrice{font-size:23px!important}.stickyPurchaseBar .osNoSub{font-size:15px}\r\n.stickyPurchaseBar .slStWas{display:none!important}\r\n.stickyPurchaseBar .osNoSub{grid-column:3!important;justify-self:center!important}\r\n.stickyPurchaseBar .stickyCta{grid-column:4;grid-row:1;min-width:200px!important;height:52px!important;font-size:15.5px!important;border-radius:999px!important}\r\n}\r\n.slPinWrap{position:fixed;left:0;right:0;z-index:40;display:none;box-shadow:0 4px 12px rgba(30,12,4,.18)}\r\n.slPinWrap .fxt{margin-top:0!important}\r\n/* desktop + tablet: the sticky bar slides away at the footer instead of docking, and the empty dock space is removed */\r\n@media(min-width:810px){.stickyPurchaseRoot:not(.isPhoneOne).nearFooter.isVisible{opacity:0!important;transform:translateY(120px)!important;pointer-events:none!important}[data-framer-name^=\"Sticky Bar Footer Clearance\"]{display:none!important}}\r\n.priceRow .slWas{margin-right:-4px;color:#9A8F84;font-weight:600;text-decoration:line-through;text-decoration-color:${s?s.chip:\"#B64D11\"};text-decoration-thickness:2px;font-size:clamp(20px,2vw,26px);line-height:1;align-self:center}\r\nhtml[data-sale] .priceRow > span:not(.slWas){display:inline-flex!important;align-items:center;gap:8px;background:linear-gradient(135deg,#FFF6EC 0%,#FBE4CF 100%)!important;border:1.5px solid ${s?s.chip:\"#B64D11\"}B3!important;color:${s?s.chip:\"#B64D11\"}!important;font-weight:800!important;font-size:14px!important;padding:8px 18px 8px 14px!important;border-radius:999px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 4px 12px rgba(182,77,17,.14)!important;letter-spacing:.01em}\r\nhtml[data-sale] .priceRow > span:not(.slWas)::before{content:\"\";width:15px;height:15px;flex:none;background:currentColor;-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12.6V4a1 1 0 0 1 1-1h8.6a1 1 0 0 1 .7.3l8.4 8.4a1 1 0 0 1 0 1.4l-8.6 8.6a1 1 0 0 1-1.4 0L3.3 13.3a1 1 0 0 1-.3-.7ZM8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z'/%3E%3C/svg%3E\") center/contain no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12.6V4a1 1 0 0 1 1-1h8.6a1 1 0 0 1 .7.3l8.4 8.4a1 1 0 0 1 0 1.4l-8.6 8.6a1 1 0 0 1-1.4 0L3.3 13.3a1 1 0 0 1-.3-.7ZM8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z'/%3E%3C/svg%3E\") center/contain no-repeat}\r\nhtml[data-sale-over] .priceRow > span:not(.slWas){display:none!important}\r\n@media(max-width:809px){.slBan{padding:12px 14px 10px;border-radius:12px}.slTimer{gap:4px}.slEnds{font-size:10.5px}.slCell{padding:3px 6px}.slCell b{font-size:13.5px}.slCell small{font-size:9px}}\r\n@media(prefers-reduced-motion:reduce){.slShine{animation:none;display:none}.slTagIn,.slNavTag .slTagIn{animation:none;transform:rotate(-6deg)}}\r\nhtml[data-sale] .stickyPurchaseBar{position:relative;border-color:${s?s.edge:\"#B64D11\"}88!important;box-shadow:0 10px 30px rgba(40,18,5,.18),0 0 0 1px ${s?s.edge:\"#B64D11\"}33!important}\r\n.slRib{position:absolute;left:50%;top:0;transform:translate(-50%,-55%);display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;background:linear-gradient(135deg,#FFF6EC 0%,#FBE4CF 100%);color:${s?s.chip:\"#B64D11\"};border:1.5px solid ${s?s.chip:\"#B64D11\"}B3;box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 4px 12px rgba(182,77,17,.14);font:800 11px/1 \"Overused Grotesk\",Inter,sans-serif;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;z-index:2;pointer-events:none}\r\n.slChip{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:linear-gradient(135deg,#2B170C,#4A250F);color:#FFCF73;font-weight:800;letter-spacing:.07em;box-shadow:inset 0 1px 0 rgba(255,220,150,.18)}\r\n.slRib b{color:inherit;font-size:13px;font-weight:900}\r\n.slRib em{display:inline-block;min-width:13.5ch;font-style:normal;font-weight:700;opacity:.8;letter-spacing:.03em;font-variant-numeric:tabular-nums;color:#7A5A44}\r\nhtml[data-sale] .stickyPrice{color:${s?s.chip:\"#B64D11\"}!important}\r\n.slStWas{color:#A8988A!important}\r\n.slStWas{margin-right:-5px;color:#9A8F84;font-weight:600;font-size:16px;text-decoration:line-through;text-decoration-color:${s?s.chip:\"#B64D11\"};text-decoration-thickness:2px;align-self:center}\r\nhtml[data-sale] .priceCluster{align-items:center}\r\nhtml[data-sale] .fxt{background:${s?s.bg:\"#000\"}!important;border-bottom:1px solid ${s?s.edge:\"#000\"}55}\r\n\r\n.slMount{position:relative}\r\n.slTag{display:block;pointer-events:none;clip-path:inset(0 -80px -140px -80px)}\r\n.slTagIn{display:block;margin-top:-14.2857%;transform-origin:50% 7.46%;transform:rotate(-9deg);animation:slSwing 3.4s ease-in-out infinite;filter:drop-shadow(0 5px 7px rgba(40,20,5,.3))}\r\n.slFlipWrap{position:relative;display:block;perspective:700px}\r\n.slFlip{position:relative;display:block;transform-style:preserve-3d;transition:transform .75s cubic-bezier(.3,.75,.25,1);pointer-events:auto;cursor:pointer}\r\n.slFlip.hov,.slFlip.on{transform:rotateY(180deg)}\r\n.slFace{display:block;backface-visibility:hidden;-webkit-backface-visibility:hidden}\r\n.slFace svg,.slTwine svg{display:block;width:100%;height:auto}\r\n.slBack{position:absolute;left:0;top:0;width:100%;transform:rotateY(180deg)}\r\n.slTwine{position:absolute;left:0;top:0;width:100%;pointer-events:none}\r\n.slTag.hovering .slTagIn{animation-play-state:paused}\r\n@media(prefers-reduced-motion:reduce){.slFlip{transition:none}}\r\n@keyframes slSwing{0%,100%{transform:rotate(-13deg)}50%{transform:rotate(-3deg)}}\r\n.slTagBan{position:absolute;z-index:3;right:28px;top:0;width:74px}\r\n.slNavTag{position:fixed;z-index:9999;width:58px}\r\n.slNavTag .slTagIn{animation:slSwingN 4.2s ease-in-out infinite;transform:rotate(-5deg)}\r\n@keyframes slSwingN{0%,100%{transform:rotate(-8deg)}50%{transform:rotate(-1deg)}}\r\n@keyframes slPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}\r\n@media(max-width:1199px){.slRib{display:none!important}}\r\n@media(min-width:1200px){html[data-sale] .stickyPurchaseBar .stickyPromise{display:none!important}html[data-sale] .stickyPurchaseBar .slRib{position:static;transform:none;grid-column:2;grid-row:1;justify-self:center;align-self:center;font-size:13px;padding:10px 20px;gap:10px}html[data-sale] .stickyPurchaseBar .slRib b{font-size:17px}}\r\n@media(max-width:809px){.slNavTag{width:52px}.slTagBan{right:10px;top:0;width:54px}.slRib{font-size:10px;padding:4px 11px;gap:6px}.slRib b{font-size:11px}.slStWas{font-size:13px;margin-right:-3px}}\r\n`;/**\r\n * @framerSupportedLayoutWidth any\r\n * @framerSupportedLayoutHeight auto\r\n */export default function SaleSystem(props){const enabled=props.enabled!==false;const[sale,setSale]=React.useState(null);const[mount,setMount]=React.useState(null);const[ready,setReady]=React.useState(false);React.useEffect(()=>{if(!enabled)return;setSale(currentSale());setReady(true);/* the page may stay open across midnight when one sale hands over to the next */const t=window.setInterval(()=>setSale(p=>{const n=currentSale();return(n&&n.id)===(p&&p.id)?p:n;}),6e4);return()=>window.clearInterval(t);},[enabled]);React.useEffect(()=>{if(!enabled||!ready)return;const root=document.documentElement;if(sale){root.setAttribute(\"data-sale\",sale.id);root.removeAttribute(\"data-sale-over\");}else{root.removeAttribute(\"data-sale\");root.setAttribute(\"data-sale-over\",\"1\");}const map=priceMap();const single=PRICE.now;const bundle=PRICE.now*2-PRICE.bundleOff;let qty=window.__onestoryBundle&&window.__onestoryBundle.qty||1;const onPick=e=>{qty=e.detail&&e.detail.qty||1;window.setTimeout(run,30);};window.addEventListener(\"onestory:bundle\",onPick);const placeNavTag=()=>{let tag=document.getElementById(\"slNavTag\");const a=Array.from(document.querySelectorAll('a[data-framer-name=\"Buy now interactive\"]')).find(x=>{const r=x.getBoundingClientRect();return r.width>0&&r.top<90&&r.top>-10;});if(!sale||!a){if(tag&&!sale)tag.remove();if(tag&&!a)tag.style.display=\"none\";return;}if(!tag){tag=document.createElement(\"span\");tag.id=\"slNavTag\";tag.className=\"slNavTag slTag\";tag.setAttribute(\"aria-hidden\",\"true\");tag.innerHTML='<span class=\"slTagIn\" style=\"transform-origin:50% '+(10/(134+NAV_E)*100).toFixed(2)+'%\">'+tagSvg(\"n\",NAV_E)+\"</span>\";document.body.appendChild(tag);}const r=a.getBoundingClientRect();const w=window.innerWidth<810?52:58;tag.style.display=\"block\";/* the knot (top centre of the tag) is tied just inside the button's top-right corner *//* tied over the flat part of the top edge (clear of the rounded end), hanging down the front */const rad=Math.min(r.height/2,24);tag.style.left=Math.round(r.right-rad-12-w/2)+\"px\";tag.style.top=Math.round(r.top)+\"px\";};const onTap=ev=>{const f=ev.target?.closest?.(\".slFlip\");if(f)f.classList.toggle(\"on\");};document.addEventListener(\"click\",onTap);/* hover with a dead zone: the tag flips when the pointer enters it and only flips back once the pointer is\r\n           well clear of it (and the swing pauses meanwhile), so the moving tag can't flicker under a still cursor */const onMove=ev=>{if(ev.pointerType===\"touch\")return;document.querySelectorAll(\".slFlip\").forEach(el=>{const r=el.getBoundingClientRect();const on=el.classList.contains(\"hov\");const m=on?18:0;const inside=ev.clientX>=r.left-m&&ev.clientX<=r.right+m&&ev.clientY>=r.top-m&&ev.clientY<=r.bottom+m;if(inside!==on){el.classList.toggle(\"hov\",inside);el.closest(\".slTag\")?.classList.toggle(\"hovering\",inside);}});};document.addEventListener(\"pointermove\",onMove,{passive:true});window.addEventListener(\"resize\",placeNavTag);window.addEventListener(\"scroll\",placeNavTag,{passive:true});let busy=false;const run=()=>{if(busy)return;busy=true;try{/* 1. every printed price on the page */const w=document.createTreeWalker(document.body,NodeFilter.SHOW_TEXT,{acceptNode:n=>{const p=n.parentElement;if(!p||/^(SCRIPT|STYLE|NOSCRIPT)$/.test(p.tagName)||p.closest(\".slBan, .slWas, .slStWas, .slRib, .slNavTag, .slTagBan, [data-slold], svg\"))return NodeFilter.FILTER_REJECT;const v=n.nodeValue||\"\";/* \"was $249\" is the crossed-out price (the sale ticker line): it stays $249 */if(/was\\s*\\$/i.test(v))return NodeFilter.FILTER_REJECT;if(/\\$(249|62\\.25|425|106\\.25|498|2\\.49)/.test(v))return NodeFilter.FILTER_ACCEPT;/* React splits \"Get One Story, ${price}\" into \"...$\" and \"249\" */if(/^(249|425|498|62\\.25|106\\.25)(\\.00)?$/.test(v.trim())&&/\\$\\s*$/.test(n.previousSibling&&n.previousSibling.nodeValue||\"\"))return NodeFilter.FILTER_ACCEPT;return NodeFilter.FILTER_SKIP;}});const hits=[];let n;while(n=w.nextNode())hits.push(n);hits.forEach(t=>{if(!/\\$/.test(t.nodeValue||\"\")){const v0=\"$\"+(t.nodeValue||\"\").trim();let v1=v0;map.forEach(([re,to])=>v1=v1.replace(re,to));if(v1!==v0)t.nodeValue=v1.slice(1);return;}let v=t.nodeValue||\"\";map.forEach(([re,to])=>v=v.replace(re,to));if(v!==t.nodeValue)t.nodeValue=v;});/* 1b. the buy buttons follow the 1x / 2x pick in the hero */const p=qty===2?bundle:single;document.querySelectorAll('.pmsBtn, .fvsCta, [data-framer-name=\"Final Purchase Call to Action\"], .stickyPurchaseRoot').forEach(r=>{const tw=document.createTreeWalker(r,NodeFilter.SHOW_TEXT);let x;while(x=tw.nextNode()){const v=x.nodeValue||\"\";const inst=\"$\"+(p/4).toFixed(2);const nv=v.split(\"$\"+(single/4).toFixed(2)).join(inst).split(\"$\"+(bundle/4).toFixed(2)).join(inst).replace(/\\$(\\d+)(?![\\d.])/g,(m,d)=>Number(d)===single||Number(d)===bundle?money(p):m).replace(/\\$(\\d+)\\.00/g,(m,d)=>Number(d)===single||Number(d)===bundle?money(p)+\".00\":m);if(nv!==v)x.nodeValue=nv;}});/* 2. the hero price row: crossed-out price + sale badge */document.querySelectorAll(\".priceRow\").forEach(row=>{const strong=row.querySelector(\"strong\");if(!strong)return;let was=row.querySelector(\".slWas\");if(sale){if(!was){was=document.createElement(\"s\");was.className=\"slWas\";row.insertBefore(was,strong);}if(was.textContent!==money(PRICE.was))was.textContent=money(PRICE.was);}else if(was)was.remove();const badge=Array.from(row.children).find(c=>c.tagName===\"SPAN\"&&!c.classList.contains(\"slWas\"));if(badge&&sale&&badge.textContent!==sale.badge)badge.textContent=sale.badge;});/* 2b. sticky bar: sale ribbon + crossed-out price; ticker: sale lines */document.querySelectorAll(\".stickyPurchaseBar\").forEach(bar=>{let rib=bar.querySelector(\":scope > .slRib\");let was=bar.querySelector(\".slStWas\");const pr=bar.querySelector(\".stickyPrice\");if(!sale){rib&&rib.remove();was&&was.remove();return;}if(!rib){rib=document.createElement(\"span\");rib.className=\"slRib\";rib.setAttribute(\"aria-hidden\",\"true\");bar.appendChild(rib);}const head='<span class=\"slChip\">'+sale.name+\"</span> <b>\"+PCT+\"% off</b> \";if(!rib.querySelector(\"em\")||rib.getAttribute(\"data-h\")!==head){rib.innerHTML=head+\"<em>\"+endsText(day(sale.to))+\"</em>\";rib.setAttribute(\"data-h\",head);}if(pr&&pr.parentElement){if(!was){was=document.createElement(\"s\");was.className=\"slStWas\";pr.parentElement.insertBefore(was,pr);}const wt=qty===2?money(PRICE.now*2):money(PRICE.was);if(was.textContent!==wt)was.textContent=wt;}});/* 2c-0. crossed-out old price on other pages (homepage product block): shown only during a sale */document.querySelectorAll(\"p, span, h1, h2, h3, div\").forEach(el=>{if(el.children.length>0&&!el.querySelector(\"*:not(span):not(br)\"))return;const tx=(el.textContent||\"\").trim();const marked=el.getAttribute(\"data-slold\")===\"1\";if(!marked&&tx!==\"$299.00\"&&tx!==\"$300.00\"&&tx!==\"$299\")return;if(!/line-through/.test(getComputedStyle(el).textDecorationLine||\"\")&&!/line-through/.test(el.parentElement?getComputedStyle(el.parentElement).textDecorationLine:\"\"))return;el.style.display=sale?\"\":\"none\";/* the old crossed-out price follows the sale's \"was\" price (kept out of the price rewrite above) */if(!marked)el.setAttribute(\"data-slold\",\"1\");const want=money(PRICE.was)+(/\\.00$/.test(tx)?\".00\":\"\");if(tx!==want){const tn=document.createTreeWalker(el,NodeFilter.SHOW_TEXT);const first=tn.nextNode();if(first)first.nodeValue=want;}});/* 2c. hanging \"20% discount\" tag on the menu's buy button (lives on <body>, pinned to the button, so the menu can't clip it) */placeNavTag();/* buy links to the Shopify cart open in the same tab (Framer opens outside links in a new tab by default) */document.querySelectorAll('a[href^=\"https://shop.onestory.me/cart/\"][target=\"_blank\"]').forEach(x=>x.setAttribute(\"target\",\"_self\"));/* 2d-0. \"30 day\" is always written \"30-day\" (the plural \"30 days\" stays as it is) */{const tw=document.createTreeWalker(document.body,NodeFilter.SHOW_TEXT,{acceptNode:n=>{const p=n.parentElement;if(!p||/^(SCRIPT|STYLE|NOSCRIPT)$/.test(p.tagName))return NodeFilter.FILTER_REJECT;return/30\\s(day)(?!s)/i.test(n.nodeValue||\"\")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP;}});const hits2=[];let q;while(q=tw.nextNode())hits2.push(q);hits2.forEach(t=>{const v=(t.nodeValue||\"\").replace(/30\\s(day)(?!s)/gi,\"30-$1\");if(v!==t.nodeValue)t.nodeValue=v;});}/* 2d. the list under the hero buy button shows the approved promises (same list, new icons and text) */document.querySelectorAll(\".purchaseHero .fitList\").forEach(ul=>{if(ul.getAttribute(\"data-os\")===\"1\")return;ul.innerHTML=typeof window!==\"undefined\"&&FIT_LINK_PAGES.test(window.location.pathname)?linkTrust(FIT_HTML):FIT_HTML;ul.setAttribute(\"data-os\",\"1\");});/* 2e. sticky bar (desktop + tablet): \"No subscription needed\" in the middle */document.querySelectorAll(\".stickyPurchaseBar\").forEach(bar=>{if(!bar.querySelector(\":scope > .osStName\")){const nm=document.createElement(\"span\");nm.className=\"osStName\";nm.innerHTML='<img src=\"https://framerusercontent.com/images/lwCU4h85MbxbVrP8XqAXa1h9Y8.png?scale-down-to=256\" alt=\"\" aria-hidden=\"true\">One Story<em>•</em>';bar.insertBefore(nm,bar.firstChild);}if(bar.querySelector(\":scope > .osNoSub\"))return;const el=document.createElement(\"span\");el.className=\"osNoSub\";el.innerHTML=\"<i></i>No subscription needed\";bar.appendChild(el);});/* 3. the banner sits right above the hero kicker line */if(sale){const h1=document.querySelector(\".purchaseHero h1\");if(h1&&h1.parentElement){const kicker=h1.previousElementSibling;const anchor=kicker&&!kicker.classList.contains(\"slMount\")?kicker:h1;let m=h1.parentElement.querySelector(\":scope > .slMount\");if(!m){m=document.createElement(\"div\");m.className=\"slMount\";anchor.parentElement.insertBefore(m,anchor);}setMount(p=>p===m?p:m);}}else{document.querySelectorAll(\".slMount\").forEach(m=>m.remove());setMount(null);}}finally{busy=false;}};run();root.setAttribute(\"data-sl-ready\",\"1\");let raf=0;const mo=new MutationObserver(()=>{if(raf)return;raf=requestAnimationFrame(()=>{raf=0;run();});});mo.observe(document.body,{childList:true,subtree:true,characterData:true});const iv=window.setInterval(run,1500);/* the sticky pill counts down every second */const tick=window.setInterval(()=>{if(!sale)return;const t=endsText(day(sale.to));document.querySelectorAll(\".slRib em\").forEach(e=>{if(e.textContent!==t)e.textContent=t;});},1e3);return()=>{mo.disconnect();window.clearInterval(iv);window.clearInterval(tick);document.removeEventListener(\"click\",onTap);document.removeEventListener(\"pointermove\",onMove);window.removeEventListener(\"resize\",placeNavTag);window.removeEventListener(\"scroll\",placeNavTag);window.removeEventListener(\"onestory:bundle\",onPick);if(raf)cancelAnimationFrame(raf);};},[sale,enabled,ready]);/* during a sale the strip under the menu stays on screen: once it would scroll away,\r\n       a copy of it is pinned right under the menu (desktop, tablet and phone) */React.useEffect(()=>{if(!PIN_STRIP||!enabled||!sale)return;let pin=null;let top=-1;const upd=()=>{const orig=document.querySelector(\".fxt:not(.slPinned)\");if(!orig)return;const r=orig.getBoundingClientRect();/* the strip sits right under the fixed menu at the top of the page, so its page position is where it pins */if(top<0||window.scrollY<2)top=Math.round(r.top+window.scrollY);const show=r.top<top-.5;if(show){if(!pin){pin=document.createElement(\"div\");pin.className=\"slPinWrap\";document.body.appendChild(pin);}if(pin.getAttribute(\"data-src\")!==orig.innerHTML){pin.innerHTML=\"\";const c=orig.cloneNode(true);c.classList.add(\"slPinned\");c.setAttribute(\"aria-hidden\",\"true\");pin.appendChild(c);pin.setAttribute(\"data-src\",orig.innerHTML);pin.removeAttribute(\"data-sync\");}pin.style.top=top+\"px\";const wasHidden=pin.style.display!==\"block\";pin.style.display=\"block\";/* keep the copy's scrolling in step with the real strip, so nothing jumps or restarts */if(wasHidden||!pin.getAttribute(\"data-sync\")){try{const a=orig.querySelector(\".fxtTrack\")?.getAnimations?.()[0];const b=pin.querySelector(\".fxtTrack\")?.getAnimations?.()[0];if(a&&b){b.currentTime=a.currentTime;pin.setAttribute(\"data-sync\",\"1\");}}catch{}}}else if(pin)pin.style.display=\"none\";};upd();window.addEventListener(\"scroll\",upd,{passive:true});window.addEventListener(\"resize\",upd);const iv=window.setInterval(upd,1e3);return()=>{window.removeEventListener(\"scroll\",upd);window.removeEventListener(\"resize\",upd);window.clearInterval(iv);pin&&pin.remove();};},[sale,enabled]);if(!enabled)return null;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"script\",{suppressHydrationWarning:true,dangerouslySetInnerHTML:{__html:earlyScript()}}),/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:CSS(sale)}}),sale&&mount?/*#__PURE__*/_jsx(Portal,{el:mount,children:/*#__PURE__*/_jsx(Banner,{sale:sale})}):null]});}function Portal({el,children}){return /*#__PURE__*/createPortal(children,el);}addPropertyControls(SaleSystem,{enabled:{type:ControlType.Boolean,title:\"Sales on\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"currentSale\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"SaleSystem\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",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