{
  "version": 3,
  "sources": ["/cdn/shop/t/48/assets/sat-home-bf-patch.js?x=4"],
  "sourcesContent": ["/*\n * Home page Black Friday (data half).\n *\n * The markup is added by assets/sat-home-bf-template.js. This file (deferred,\n * after sat-app.js) wraps SATComponent.prototype.renderVals to fill it, and\n * injects the styles. The hero additions use the hero's own amber/copper; the\n * mini sale is the Black Friday look (black ground, red hazard stripe, poster\n * type with a red \"Friday\") kept in the house with SAT's departures board,\n * release stamp and brass corner brackets.\n *\n *  - bfHeroShow / bfTicketShow: the hero tint, top stripe and \"Notice to\n *    shippers\" ticket, shown until END.\n *  - bfShow / bfManifestShow: on the home page, before END, the mini sale shows\n *    and \"Featured This Week\" is hidden. Anywhere else, after END, or if the\n *    collection can't be read or is empty, the manifest section shows as before.\n *  - bfDays / bfHours / bfLabel / bfPill / bfHeroLine: time to START (before\n *    it) or to END (during). Worked out at each render; the app re-renders often\n *    enough for a day/hour readout, so there is no ticking timer.\n *  - bfItems / bfCount: 4 in-stock products of the Black Friday collection,\n *    deepest discount first (BF-NN tags), then the collection's own order;\n *    each stamped \"NN% OFF \u00B7 NOV 27\" (or \"NN% OFF\" and the sale price during\n *    the sale). The merch isn't part of\n *    window.SAT_DATA.products, so they're read from the collection's public\n *    products.json. Tag or untag a product in Shopify and this follows.\n *\n * Dates match templates/collection.black-friday.json; change both together.\n */\n(function () {\n  'use strict';\n  if (!window.SATComponent) { return; }\n\n  var START = Date.parse('2026-11-27T00:00:00-05:00');\n  var END = Date.parse('2026-12-01T23:59:59-05:00');\n  var COLLECTION = '/collections/black-friday';\n  var SHOW = 4;\n\n  var items = [];\n  var count = 0;\n  var state = 'loading';  // loading | ready | failed\n  var comp = null;\n\n  var css = [\n    /* hero */\n    '.satbf-herostripe{position:absolute;top:0;left:0;right:0;height:9px;z-index:5;background:repeating-linear-gradient(-45deg,#C2793F 0 10px,#8A4E24 10px 20px);}',\n    '.satbf-herotint{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 65% 60% at 78% 42%,rgba(166,64,42,.42),transparent 66%),radial-gradient(ellipse 60% 55% at 18% 28%,rgba(194,121,63,.34),transparent 62%),linear-gradient(180deg,rgba(110,32,18,.30) 0%,rgba(18,13,9,0) 55%,rgba(110,32,18,.22) 100%);}',\n    '.satbf-ticket{align-items:stretch;max-width:430px;margin:0 0 22px;text-decoration:none;background:rgba(10,7,5,.55);border:1px solid rgba(240,199,122,.55);box-shadow:0 8px 22px rgba(0,0,0,.45);transition:border-color .18s,background .18s;}',\n    '.satbf-ticket:hover{border-color:#F0C77A;background:rgba(240,199,122,.12);}',\n    '.satbf-tk-stub{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;padding:10px 12px;border-right:1px dashed rgba(240,199,122,.55);font-family:\"Courier Prime\",monospace;font-weight:700;font-size:11px;color:#F0C77A;letter-spacing:.06em;}',\n    '.satbf-tk-body{display:flex;flex-direction:column;gap:4px;padding:10px 14px;flex:1;min-width:0;}',\n    '.satbf-tk-k{display:flex;align-items:center;gap:7px;font-family:\"Special Elite\",monospace;font-size:9px;letter-spacing:.2em;color:#F0C77A;text-transform:uppercase;}',\n    '.satbf-tk-k i{width:6px;height:6px;border-radius:50%;background:#E06A50;box-shadow:0 0 8px #E06A50;display:inline-block;}',\n    '.satbf-tk-h{font-family:\"Righteous\",cursive;font-size:19px;letter-spacing:.04em;color:#F4EFE3;text-transform:uppercase;line-height:1.1;}',\n    '.satbf-tk-d{font-family:\"Courier Prime\",monospace;font-size:11px;color:#EFE2CE;letter-spacing:.04em;}',\n    '.satbf-tk-go{display:flex;align-items:center;justify-content:center;text-align:center;padding:0 14px;border-left:1px solid rgba(240,199,122,.3);font-family:\"Special Elite\",monospace;font-size:9.5px;letter-spacing:.16em;color:#F0C77A;line-height:1.5;}',\n    /* mini sale: black, red hazard, poster type; SAT board, stamps, brackets */\n    '.satbf{position:relative;overflow:hidden;color:#F4EFE3;background:repeating-linear-gradient(-45deg,#A6402A 0 14px,#11161C 14px 28px) top left/auto 10px repeat-x,radial-gradient(ellipse at 80% 25%,rgba(166,64,42,.36),transparent 55%) no-repeat,#11161C;}',\n    '.satbf::before{content:\"\";position:absolute;inset:10px 0 0;pointer-events:none;background-image:repeating-linear-gradient(0deg,rgba(244,239,227,.035) 0 1px,transparent 1px 44px),repeating-linear-gradient(90deg,rgba(244,239,227,.035) 0 1px,transparent 1px 44px);}',\n    '.satbf-in{position:relative;max-width:1180px;margin:0 auto;padding:64px 32px 44px;}',\n    '.satbf-head{display:flex;justify-content:space-between;align-items:flex-end;gap:28px;flex-wrap:wrap;margin-bottom:22px;}',\n    '.satbf-copy{flex:1;min-width:280px;}',\n    '.satbf-kick{display:flex;align-items:flex-end;gap:3px;margin-bottom:12px;}',\n    '.satbf-kick i{width:3px;background:#C2503A;display:inline-block;}',\n    '.satbf-kick i:nth-child(1){height:10px;}.satbf-kick i:nth-child(2){height:14px;}.satbf-kick i:nth-child(3){height:8px;}',\n    '.satbf-kick span{margin-left:6px;font-family:\"Special Elite\",monospace;font-size:10px;letter-spacing:.18em;color:#B99B5B;}',\n    '.satbf-title{font-family:\"Anton\",\"Oswald\",sans-serif;font-weight:400;font-size:clamp(52px,7.5vw,96px);line-height:.9;margin:0;text-transform:uppercase;color:#F4EFE3;letter-spacing:.01em;}',\n    '.satbf-title span{color:#C2503A;text-shadow:0 0 34px rgba(194,80,58,.4);}',\n    '.satbf-script{font-family:\"Kaushan Script\",cursive;font-size:clamp(20px,2.4vw,28px);color:#F0C77A;margin-top:6px;}',\n    '.satbf-sub{font-family:\"Lora\",serif;font-size:14.5px;color:#C9C2B2;margin-top:10px;max-width:56ch;line-height:1.65;}',\n    '.satbf-board{position:relative;background:#0B0F13;border:1px solid rgba(185,155,91,.45);box-shadow:0 14px 30px rgba(0,0,0,.5);width:270px;padding:0 0 14px;}',\n    '.satbf-board::before{content:\"CLEARED\";position:absolute;top:-14px;right:-10px;transform:rotate(8deg);border:3px double #C2503A;color:#C2503A;background:#11161C;font-family:\"Special Elite\",monospace;font-size:10px;letter-spacing:.18em;padding:4px 9px;}',\n    '.satbf-bh{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 12px;border-bottom:1px solid rgba(240,199,122,.2);font-family:\"Special Elite\",monospace;font-size:9px;letter-spacing:.14em;color:#EAE1CB;}',\n    '.satbf-pill{font-size:8.5px;letter-spacing:.14em;padding:2px 7px;border:1px solid currentColor;}',\n    '.satbf-cd{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:12px 12px 8px;}',\n    '.satbf-cd div{background:linear-gradient(180deg,#27323C 0 49%,#0E1418 49% 51%,#1F2932 51%);border:1px solid rgba(0,0,0,.6);border-radius:3px;text-align:center;padding:10px 2px 7px;}',\n    '.satbf-cd b{display:block;font-family:\"Righteous\",\"Courier Prime\",monospace;font-weight:400;font-size:34px;line-height:1;color:#F4EFE3;}',\n    '.satbf-cd small{display:block;margin-top:6px;font-family:\"Special Elite\",monospace;font-size:8px;letter-spacing:.18em;color:#8C97A3;}',\n    '.satbf-cdl{font-family:\"Special Elite\",monospace;font-size:8.5px;letter-spacing:.16em;color:#B99B5B;text-align:center;margin-bottom:12px;}',\n    '.satbf-cta{display:block;margin:0 12px;text-align:center;font-family:\"Poppins\",sans-serif;font-weight:600;font-size:12px;letter-spacing:.06em;text-transform:uppercase;background:#A6402A;color:#F4EFE3;border:1px solid #C2503A;padding:12px 14px;text-decoration:none;box-shadow:0 4px 0 #5E2014;}',\n    '.satbf-cta:hover{background:#C2503A;}',\n    '.satbf-band{display:flex;align-items:center;gap:12px;margin:8px 0 26px;}',\n    '.satbf-band i{height:2px;flex:1;background:#B99B5B;opacity:.6;display:block;}',\n    '.satbf-band span{font-family:\"Special Elite\",monospace;font-size:9px;letter-spacing:.2em;color:#B99B5B;white-space:nowrap;}',\n    '.satbf-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;}',\n    '.satbf-card{position:relative;display:flex;flex-direction:column;background:#FAF4E6;border:1px solid rgba(185,155,91,.4);padding:9px;text-decoration:none;color:#232E38;transition:transform .22s cubic-bezier(.2,.8,.3,1),box-shadow .22s;}',\n    '.satbf-card::before,.satbf-card::after{content:\"\";position:absolute;width:14px;height:14px;border-color:#B99B5B;border-style:solid;z-index:2;pointer-events:none;}',\n    '.satbf-card::before{top:5px;left:5px;border-width:2px 0 0 2px;}.satbf-card::after{bottom:5px;right:5px;border-width:0 2px 2px 0;}',\n    '.satbf-card:hover{transform:translateY(-3px);box-shadow:0 14px 28px rgba(0,0,0,.5);}',\n    '.satbf-ph{position:relative;aspect-ratio:1/1;background:#fff;overflow:hidden;border:1px solid rgba(35,46,56,.12);}',\n    '.satbf-ph img{width:100%;height:100%;object-fit:contain;display:block;}',\n    '.satbf-flag{position:absolute;top:10px;left:8px;transform:rotate(-5deg);background:#A6402A;border:2px solid #A6402A;color:#F4EFE3;box-shadow:0 3px 8px rgba(0,0,0,.25);font-family:\"Special Elite\",monospace;font-size:8.5px;letter-spacing:.16em;padding:3px 7px;}',\n    '.satbf-info{padding:10px 5px 3px;display:flex;flex-direction:column;gap:8px;flex:1;}',\n    '.satbf-name{font-family:\"Poppins\",sans-serif;font-weight:600;font-size:14px;line-height:1.3;}',\n    '.satbf-price{margin-top:auto;display:flex;justify-content:space-between;align-items:baseline;gap:6px;border-top:1px solid rgba(35,46,56,.14);padding-top:8px;font-family:\"Poppins\",sans-serif;font-weight:600;font-size:16px;}',\n    '.satbf-price small{font-weight:500;font-size:10.5px;color:#8A8272;margin-right:4px;}',\n    '.satbf-price em{font-style:normal;font-family:\"Special Elite\",monospace;font-size:9.5px;letter-spacing:.14em;color:#A6402A;white-space:nowrap;}',\n    '.satbf-more{display:inline-block;margin-top:24px;font-family:\"Special Elite\",monospace;font-size:10.5px;letter-spacing:.16em;color:#B99B5B;text-decoration:none;border-bottom:1px solid rgba(185,155,91,.5);padding-bottom:3px;}',\n    '@media (max-width:749px){.satbf-in{padding:56px 16px 32px;}.satbf-board{width:100%;}.satbf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}.satbf-name{font-size:12.5px;}.satbf-price{font-size:14.5px;}.satbf-price em{display:none;}.satbf-ticket{max-width:100%;}}'\n  ].join('\\n');\n  var st = document.createElement('style');\n  st.textContent = css;\n  document.head.appendChild(st);\n\n  function pad(n) { return (n < 10 ? '0' : '') + n; }\n  function sized(src) { return src ? src + (src.indexOf('?') === -1 ? '?' : '&') + 'width=600' : ''; }\n  function rerender() { if (comp) { comp.setState({ bfTick: Date.now() }); } }\n\n  fetch(COLLECTION + '/products.json?limit=250', { credentials: 'same-origin' })\n    .then(function (r) { if (!r.ok) { throw new Error(r.status); } return r.json(); })\n    .then(function (d) {\n      var list = (d && d.products) || [];\n      count = list.length;\n      var live = Date.now() >= START && Date.now() <= END;\n      items = list.filter(function (p) {\n        return (p.variants || []).some(function (v) { return v.available; });\n      }).map(function (p, i) {\n        // BF-30 / BF-25 / BF-20 / BF-15 tags match the \"Black Friday N% off\"\n        // automatic discounts; untagged items (the SAT merch) carry no discount.\n        var tags = Array.isArray(p.tags) ? p.tags : String(p.tags || '').split(/\\s*,\\s*/);\n        var pct = 0;\n        tags.forEach(function (t) { var m = /^BF-(\\d+)$/.exec(t); if (m) { pct = Math.max(pct, +m[1]); } });\n        return { p: p, pct: pct, i: i };\n      }).sort(function (a, b) { return (b.pct - a.pct) || (a.i - b.i); }).slice(0, SHOW).map(function (x) {\n        var p = x.p;\n        var prices = (p.variants || []).map(function (v) { return parseFloat(v.price); });\n        var min = Math.min.apply(null, prices);\n        var max = Math.max.apply(null, prices);\n        var url = '/products/' + p.handle;\n        var shown = live && x.pct ? min * (100 - x.pct) / 100 : min;\n        return {\n          url: url,\n          name: p.title,\n          photo: sized(p.images && p.images[0] && p.images[0].src),\n          price: '$' + shown.toFixed(2),\n          fromShow: max > min ? 'inline' : 'none',\n          flag: x.pct ? x.pct + '% OFF' + (live ? '' : ' \u00B7 NOV 27') : 'SAT MERCH',\n          open: function () { window.location.href = url; }\n        };\n      });\n      state = items.length ? 'ready' : 'failed';\n      rerender();\n    })\n    .catch(function (e) {\n      console.warn('[sat] home Black Friday patch: could not read the collection', e);\n      state = 'failed';\n      rerender();\n    });\n\n  var orig = window.SATComponent.prototype.renderVals;\n  window.SATComponent.prototype.renderVals = function () {\n    var out = orig.call(this);\n    comp = this;\n    var now = Date.now();\n    var on = now < END;\n    var before = now < START;\n    var active = !!out.onHome && on && state !== 'failed';\n\n    out.bfHeroShow = on ? 'block' : 'none';\n    out.bfTicketShow = on ? 'flex' : 'none';\n    out.bfShow = active ? 'block' : 'none';\n    out.bfManifestShow = active ? 'none' : out.showManifest;\n\n    var s = Math.max(0, Math.floor(((before ? START : END) - now) / 1000));\n    var days = Math.floor(s / 86400);\n    out.bfDays = pad(days);\n    out.bfHours = pad(Math.floor(s % 86400 / 3600));\n    out.bfLabel = before ? 'WHEELS UP \u00B7 NOV 27' : 'BOARDING CLOSES \u00B7 DEC 1';\n    out.bfPill = before ? 'SCHEDULED' : 'BOARDING';\n    out.bfPillColor = before ? '#F0C77A' : '#8FE39C';\n    out.bfHeroLine = before\n      ? 'NOV 27 \u2014 DEC 1 \u00B7 ' + (days > 0 ? days + (days === 1 ? ' DAY' : ' DAYS') + ' OUT' : 'OPENS TONIGHT')\n      : 'ON NOW \u00B7 ENDS DEC 1';\n    out.bfItems = items;\n    out.bfCount = count;\n    return out;\n  };\n})();"],
  "mappings": "CA2BC,UAAY,CACX,aACA,GAAI,CAAC,OAAO,aAAgB,OAE5B,IAAI,MAAQ,KAAK,MAAM,2BAA2B,EAC9C,IAAM,KAAK,MAAM,2BAA2B,EAC5C,WAAa,4BACb,KAAO,EAEP,MAAQ,CAAC,EACT,MAAQ,EACR,MAAQ,UACR,KAAO,KAEP,IAAM,CAER,gKACA,0UACA,iPACA,8EACA,gRACA,mGACA,uKACA,4HACA,2IACA,wGACA,6PAEA,+PACA,yQACA,sFACA,2HACA,uCACA,6EACA,oEACA,0HACA,6HACA,8LACA,4EACA,qHACA,uHACA,+JACA,+PACA,yOACA,mGACA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