{
  "version": 3,
  "sources": ["/cdn/shop/t/23/assets/sb2-patches.js?sbv=20260710-desktop-hero"],
  "sourcesContent": ["// sb2-patches.js: DOM patches for SoleBrace homepage\n\n/* PATCH: Override sb2AddToCart to skip invisible Rapi forms.\n   The mobile form (display:none on desktop) may have rapi-bundle-has-different-variants\n   but is not interactable. Skip it, fall through to direct AJAX. */\n\nfunction sbTrackKlaviyoAddedToCart(data, trackedItem) {\n  try {\n    /* SoleBrace Klaviyo Added to Cart tracking */\n    if (!window._learnq || !Array.isArray(window._learnq) || !data) return;\n    var items = Array.isArray(data.items) ? data.items : [data];\n    var item = trackedItem || items[0] || {};\n    var itemUrl = item.url ? (window.location.origin + item.url) : window.location.href;\n    var quantity = item.quantity_delta || item.quantity;\n    var linePrice = item.final_line_price || item.line_price || item.final_price;\n    var unitPrice = item.final_price || item.price || (linePrice && quantity ? linePrice / quantity : undefined);\n    window._learnq.push(['track', 'Added to Cart', {\n      '$value': data.total_price ? data.total_price / 100 : (linePrice ? linePrice / 100 : undefined),\n      'AddedItemProductName': item.product_title || item.title || document.querySelector('h1')?.textContent?.trim() || 'SoleBrace product',\n      'AddedItemProductID': item.product_id,\n      'AddedItemSKU': item.sku,\n      'AddedItemVariantID': item.variant_id,\n      'AddedItemVariantTitle': item.variant_title,\n      'AddedItemQuantity': quantity,\n      'AddedItemPrice': linePrice ? linePrice / 100 : (unitPrice ? unitPrice / 100 : undefined),\n      'AddedItemURL': itemUrl,\n      'URL': itemUrl,\n      'checkout_url': itemUrl,\n      'CheckoutURL': itemUrl,\n      'Items': items.map(function(line) {\n        return {\n          'ProductName': line.product_title || line.title,\n          'ProductID': line.product_id,\n          'SKU': line.sku,\n          'VariantID': line.variant_id,\n          'VariantTitle': line.variant_title,\n          'Quantity': line.quantity,\n          'ItemPrice': (line.final_line_price || line.line_price || line.final_price) ? (line.final_line_price || line.line_price || line.final_price) / 100 : undefined,\n          'URL': line.url ? (window.location.origin + line.url) : undefined\n        };\n      })\n    }]);\n  } catch (error) {\n    console.warn('SoleBrace Klaviyo Added to Cart tracking failed', error);\n  }\n}\n\nfunction sbFetchCartState() {\n  return fetch('/cart.js?sb_klaviyo_atc=' + Date.now(), {\n    credentials: 'same-origin',\n    headers: { 'Accept': 'application/json' }\n  }).then(function(response) {\n    if (!response.ok) throw new Error('Cart state fetch failed');\n    return response.json();\n  });\n}\n\nfunction sbFindAddedCartLine(beforeCart, afterCart) {\n  if (!afterCart || !Array.isArray(afterCart.items)) return null;\n  var beforeItems = beforeCart && Array.isArray(beforeCart.items) ? beforeCart.items : [];\n  var beforeByVariant = {};\n  beforeItems.forEach(function(line) {\n    beforeByVariant[String(line.variant_id)] = line;\n  });\n  for (var i = 0; i < afterCart.items.length; i++) {\n    var line = afterCart.items[i];\n    var previous = beforeByVariant[String(line.variant_id)];\n    var previousQty = previous ? previous.quantity : 0;\n    if (line.quantity > previousQty) {\n      return Object.assign({}, line, { quantity_delta: line.quantity - previousQty });\n    }\n  }\n  return null;\n}\n\nfunction sbTrackAddedToCartAfterMutation() {\n  sbFetchCartState().then(function(beforeCart) {\n    var attempts = 0;\n    function pollCart() {\n      attempts += 1;\n      sbFetchCartState().then(function(afterCart) {\n        var addedLine = sbFindAddedCartLine(beforeCart, afterCart);\n        if (addedLine) {\n          sbTrackKlaviyoAddedToCart(afterCart, addedLine);\n          return;\n        }\n        if (attempts < 8) {\n          setTimeout(pollCart, 400);\n        }\n      }).catch(function() {\n        if (attempts < 8) {\n          setTimeout(pollCart, 400);\n        }\n      });\n    }\n    setTimeout(pollCart, 500);\n  }).catch(function() {\n    /* no-op: cart polling fallback failed */\n  });\n}\n\nfunction sb2AddToCart(btn) {\n  // Step 1: Try Rapi's own ATC button\n  var rapiBtn = document.querySelector('.rapi-atc-btn');\n  if (rapiBtn) {\n    sbTrackAddedToCartAfterMutation();\n    rapiBtn.click();\n    return;\n  }\n\n  // Step 2: Only use visible Rapi forms (offsetParent !== null)\n  var rapiForm = null;\n  var forms = document.querySelectorAll('form.rapi-bundle-has-different-variants');\n  for (var i = 0; i < forms.length; i++) {\n    if (forms[i].offsetParent !== null) { rapiForm = forms[i]; break; }\n  }\n\n  if (rapiForm) {\n    sbTrackAddedToCartAfterMutation();\n    var slotBtn = document.querySelector('#sb-rapi-slot button');\n    if (slotBtn && slotBtn !== btn) { slotBtn.click(); return; }\n    var origAction = rapiForm.action;\n    rapiForm.action = 'javascript:void(0)';\n    if (rapiForm.requestSubmit) { rapiForm.requestSubmit(); }\n    else { rapiForm.submit(); }\n    setTimeout(function() { rapiForm.action = origAction; }, 50);\n    return;\n  }\n\n  // Step 3: AJAX fallback\n  var form = btn.closest('form');\n  var vid = form && form.querySelector('input[name=id]');\n  if (!vid || !vid.value) return;\n  fetch('/cart/add.js', {\n    method: 'POST',\n    headers: {'Content-Type': 'application/json', 'Accept': 'application/json'},\n    body: JSON.stringify({items: [{id: parseInt(vid.value), quantity: 1}]})\n  }).then(function(r) { return r.json(); }).then(function(data) {\n    if (data && (data.items || data.items === undefined)) {\n      sbTrackKlaviyoAddedToCart(data);\n      if (window.SoleBraceCart) { window.SoleBraceCart.open(btn); }\n      else if (typeof window.upcartOpenCart === 'function') { window.upcartOpenCart(); }\n      else { window.location.href = '/cart'; }\n    }\n  }).catch(function() { form.submit(); });\n}\n\n(function(){\n  // Patch 2: MOBILE ONLY - Proxy mobile ATC to the desktop ATC button\n  // Rapi's click handler IS attached to the desktop button (display:none on mobile).\n  // Clicking it programmatically triggers Rapi's full bundle add-to-cart + UpcCart.\n  // DO NOT touch the desktop form (Rapi depends on its action/inputs).\n  function proxyMobileToDesktop(){\n    if(window.innerWidth >= 768) return;\n\n    var mobileForm = document.getElementById('sb-atc-form');\n    if(!mobileForm || mobileForm.dataset.sbProxy) return;\n    mobileForm.dataset.sbProxy = '1';\n\n    // Block mobile form default POST\n    mobileForm.setAttribute('action','javascript:void(0)');\n    mobileForm.addEventListener('submit', function(e){ e.preventDefault(); return false; }, true);\n\n    var mobileBtn = mobileForm.querySelector('[type=\"submit\"]');\n    if(!mobileBtn) return;\n\n    mobileBtn.addEventListener('click', function(e){\n      e.preventDefault();\n      e.stopPropagation();\n\n      // Find the desktop ATC button (hidden by CSS but Rapi handler attached)\n      var desktopForm = document.getElementById('sb-desktop-atc-form');\n      if(desktopForm){\n        var desktopBtn = desktopForm.querySelector('[type=\"submit\"]');\n        if(desktopBtn){\n          desktopBtn.click();\n          return;\n        }\n      }\n    }, true);\n  }\n\n  // Patch 3: Fix scroll lock after cart drawer closes on mobile\n  function fixScrollLock(){\n    if(window.innerWidth >= 768) return;\n    setInterval(function(){\n      var body = document.body;\n      var drawer = document.querySelector('cart-drawer');\n      var drawerActive = drawer && drawer.classList.contains('active');\n      if(!drawerActive && body.classList.contains('overflow-hidden')){\n        body.classList.remove('overflow-hidden');\n        body.style.overflow = '';\n        body.style.position = '';\n        body.style.touchAction = '';\n        document.documentElement.style.overflow = '';\n      }\n    }, 500);\n  }\n\n  function applyUsHomepageProductGap(){\n    if (window.location.hostname !== 'us.solebrace.com') return;\n    var intro = document.querySelector('.sb-prod__intro--us');\n    if (!intro) return;\n    intro.style.marginTop = window.innerWidth <= 600 ? '40px' : '38px';\n  }\n\n  function applyPartnerTypographyLock(){\n    if (window.location.pathname !== '/pages/9-reasons-partner') return;\n    if (document.getElementById('sb-partner-typography-lock')) return;\n    var style = document.createElement('style');\n    style.id = 'sb-partner-typography-lock';\n    style.textContent = [\n      '#MainContent .sb9reasons .sb9-product-rating-copy{font-family:Inter,Arial,Helvetica,sans-serif!important;font-size:14px!important;font-weight:400!important;line-height:18px!important;letter-spacing:-0.03em!important;color:#3a3943!important;display:inline-block!important;white-space:nowrap!important;margin:0!important;position:relative!important;top:0!important;transform:translateY(1px)!important}',\n      '#MainContent .sb9reasons .sb9-product-trust li{font-size:15px!important;font-weight:700!important;line-height:1.35!important;letter-spacing:0!important;text-transform:none!important;color:#2F2A24!important}',\n      '#MainContent .sb9reasons .sb9-product-trust-mark{transform:translateY(5px)!important}',\n      '#MainContent .sb9reasons .hero h1{font-family:Montserrat,system-ui,sans-serif!important;font-size:38px!important;font-weight:800!important;line-height:1.2!important;letter-spacing:0!important}',\n      '#MainContent .sb9reasons .hero .sub{font-family:Montserrat,system-ui,sans-serif!important;font-style:italic!important;font-weight:400!important;font-size:17px!important;line-height:1.55!important;letter-spacing:0!important}',\n      '#MainContent .sb9reasons .intro,#MainContent .sb9reasons .reason p{font-family:Montserrat,system-ui,sans-serif!important;font-size:17px!important;font-weight:400!important;line-height:1.75!important;letter-spacing:0!important}',\n      '#MainContent .sb9reasons .reason-n,#MainContent .sb9reasons .reason h3{font-family:Montserrat,system-ui,sans-serif!important;font-size:clamp(19px,3vw,24px)!important;font-weight:700!important;line-height:1.2!important;letter-spacing:0!important}',\n      '#MainContent .sb9reasons .pull p{font-family:Montserrat,system-ui,sans-serif!important;font-size:19px!important;font-style:normal!important;font-weight:700!important;line-height:1.4!important;letter-spacing:-0.01em!important}',\n      '#MainContent .sb9reasons .pull--nurse-then p{font-family:Montserrat,system-ui,sans-serif!important;font-size:17px!important;font-style:normal!important;font-weight:600!important;line-height:1.65!important;letter-spacing:0!important}',\n      '#MainContent .sb9reasons .chart{transform:none!important}',\n      '#MainContent .sb9reasons .chart-cell{font-size:14px!important;line-height:1.35!important}',\n      '#MainContent .sb9reasons .chart-cell:first-child{font-size:14px!important;font-weight:700!important}',\n      '#MainContent .sb9reasons .chart-cell.brand small{font-family:Montserrat,system-ui,sans-serif!important;font-size:10px!important;font-weight:600!important;letter-spacing:0.1em!important}',\n      '#MainContent .sb9reasons .chart-row.head .chart-cell{font-size:13px!important;font-weight:800!important;letter-spacing:0.06em!important;line-height:1.35!important}',\n      '#MainContent .sb9reasons .ce{font-size:18px!important}',\n      '#MainContent .sb9reasons .reviews-head .tp-stars{font-size:28px!important;letter-spacing:0!important;line-height:1!important}',\n      '#MainContent .sb9reasons .reviews-head .tp-label{font-size:13px!important;font-weight:700!important;letter-spacing:0!important}',\n      '#MainContent .sb9reasons .reviews-head h2{font-family:Montserrat,system-ui,sans-serif!important;font-size:28px!important;font-weight:800!important;line-height:1.25!important;letter-spacing:0!important}',\n      '#MainContent .sb9reasons .rev-stars{font-size:20px!important;letter-spacing:0!important;line-height:1!important}',\n      '#MainContent .sb9reasons .rev-title{font-size:16px!important;font-weight:700!important;line-height:1.4!important}',\n      '#MainContent .sb9reasons .rev-body{font-size:15px!important;font-weight:400!important;line-height:1.65!important}',\n      '#MainContent .sb9reasons .cta-kicker{font-size:11px!important;font-weight:900!important;letter-spacing:0.16em!important}',\n      '#MainContent .sb9reasons .cta-card h2{font-family:Montserrat,system-ui,sans-serif!important;font-size:33px!important;font-weight:900!important;line-height:1.02!important;letter-spacing:-0.03em!important}',\n      '#MainContent .sb9reasons .cta-card p{font-size:13px!important;font-weight:700!important;line-height:1.4!important}',\n      '#MainContent .sb9reasons .cta-countdown,#MainContent .sb9reasons .btn,#MainContent .sb9reasons .sticky a{font-family:Montserrat,system-ui,sans-serif!important}',\n      '#MainContent .sb9reasons .btn{font-size:18px!important;font-weight:800!important;line-height:1.3!important;letter-spacing:-0.4px!important;-webkit-text-stroke:0!important;text-shadow:none!important}',\n      '#MainContent .sb9reasons .sticky a{font-size:16px!important;font-weight:800!important;line-height:1.3!important;letter-spacing:-0.4px!important}',\n      '#MainContent .sb9reasons .post-reviews-cta-button{font-size:20px!important;line-height:1.3!important}',\n      '#MainContent .sb9reasons .post-reviews-cta-copy{font-size:16px!important;font-weight:500!important;line-height:1.45!important}',\n      '#MainContent .sb9reasons .post-reviews-cta-trust{font-size:15px!important;font-weight:700!important;line-height:1.4!important}',\n      '#MainContent .sb9reasons .sb9-share-number{font-size:25px!important;font-weight:900!important;letter-spacing:0!important}',\n      '#MainContent .sb9reasons .sb9-share-copy{font-size:10px!important;line-height:1.1!important}',\n      '@media (max-width:767px){#MainContent .sb9reasons .sb9-product-rating-copy{font-size:13px!important;line-height:16px!important}#MainContent .sb9reasons .sb9-product-trust li{font-size:13px!important}#MainContent .sb9reasons .reason-n,#MainContent .sb9reasons .reason h3{font-size:24px!important}#MainContent .sb9reasons .hero h1{font-size:26px!important}}'\n    ].join('');\n    document.head.appendChild(style);\n  }\n\n  function applyPartnerTrustCopyFix() {\n    if (window.location.pathname !== '/pages/9-reasons-partner') return;\n\n    var trustItems = document.querySelectorAll('#MainContent .sb9reasons .sb9-product-trust li');\n    if (!trustItems.length) return;\n\n    trustItems.forEach(function(item, index) {\n      var textNode = item.querySelector('span:last-child');\n      if (!textNode) return;\n\n      if (index === 0) {\n        textNode.textContent = 'Pain Free in 30 Days or Your Money Back';\n      }\n\n      if (index === 1) {\n        textNode.textContent = 'Fast Shipping Across Australia';\n      }\n    });\n  }\n\n  function applyWorkfitReviewsHeaderFix() {\n    if (window.location.pathname !== '/products/workfit-insoles') return;\n\n    var score = document.querySelector('#sb-pdp-reviews .sb-reviews__big-score');\n    if (score) score.textContent = '4.7';\n\n    var stars = document.querySelector('#sb-pdp-reviews .sb-stars');\n    if (!stars || stars.dataset.sbStarsPatched === '1') return;\n\n    stars.dataset.sbStarsPatched = '1';\n    stars.removeAttribute('style');\n    stars.innerHTML = [\n      '<svg viewBox=\"0 0 512 96\" xmlns=\"http://www.w3.org/2000/svg\" width=\"104\" height=\"20\" role=\"img\" aria-hidden=\"true\">',\n      '<rect width=\"96\" height=\"96\" fill=\"#00B67A\"></rect>',\n      '<rect x=\"104\" width=\"96\" height=\"96\" fill=\"#00B67A\"></rect>',\n      '<rect x=\"208\" width=\"96\" height=\"96\" fill=\"#00B67A\"></rect>',\n      '<rect x=\"312\" width=\"96\" height=\"96\" fill=\"#00B67A\"></rect>',\n      '<rect x=\"464\" width=\"48\" height=\"96\" fill=\"#DCDCE6\"></rect>',\n      '<rect x=\"416\" width=\"48\" height=\"96\" fill=\"#00B67A\"></rect>',\n      '<path d=\"M48 64.7L62.6 61l6.1 18.8L48 64.7zM81.6 40.4H55.9L48 16.2l-7.9 24.2H14.4l20.8 15-7.9 24.2 20.8-15 12.8-9.2h20.7z\" fill=\"#FFFFFF\"></path>',\n      '<path d=\"M152 64.7l14.6-3.7 6.1 18.8L152 64.7zM185.6 40.4h-25.7L152 16.2l-7.9 24.2h-25.7l20.8 15-7.9 24.2 20.8-15 12.8-9.2h20.7z\" fill=\"#FFFFFF\"></path>',\n      '<path d=\"M256 64.7l14.6-3.7 6.1 18.8L256 64.7zM289.6 40.4h-25.7L256 16.2l-7.9 24.2h-25.7l20.8 15-7.9 24.2 20.8-15 12.8-9.2h20.7z\" fill=\"#FFFFFF\"></path>',\n      '<path d=\"M360 64.7l14.6-3.7 6.1 18.8L360 64.7zM393.6 40.4h-25.7L360 16.2l-7.9 24.2h-25.7l20.8 15-7.9 24.2 20.8-15 12.8-9.2h20.7z\" fill=\"#FFFFFF\"></path>',\n      '<path d=\"M464 64.7l14.6-3.7 6.1 18.8L464 64.7zM497.6 40.4h-25.7L464 16.2l-7.9 24.2h-25.7l20.8 15-7.9 24.2 20.8-15 12.8-9.2h20.7z\" fill=\"#FFFFFF\"></path>',\n      '</svg>'\n    ].join('');\n  }\n\n  function applyHomepageTrustpilotFix() {\n    if (window.location.pathname !== '/') return;\n\n    var ratingRows = document.querySelectorAll('#sb-prod-info-col .sb-prod__rating-row a');\n    if (!ratingRows.length) return;\n\n    var desktopStars = [\n      '<svg viewBox=\"0 0 512 96\" xmlns=\"http://www.w3.org/2000/svg\" width=\"94\" height=\"18\" role=\"img\" aria-hidden=\"true\">',\n      '<rect width=\"96\" height=\"96\" fill=\"#00B67A\"></rect>',\n      '<rect x=\"104\" width=\"96\" height=\"96\" fill=\"#00B67A\"></rect>',\n      '<rect x=\"208\" width=\"96\" height=\"96\" fill=\"#00B67A\"></rect>',\n      '<rect x=\"312\" width=\"96\" height=\"96\" fill=\"#00B67A\"></rect>',\n      '<rect x=\"464\" width=\"48\" height=\"96\" fill=\"#DCDCE6\"></rect>',\n      '<rect x=\"416\" width=\"48\" height=\"96\" fill=\"#00B67A\"></rect>',\n      '<path d=\"M48 64.7L62.6 61l6.1 18.8L48 64.7zM81.6 40.4H55.9L48 16.2l-7.9 24.2H14.4l20.8 15-7.9 24.2 20.8-15 12.8-9.2h20.7z\" fill=\"#FFFFFF\"></path>',\n      '<path d=\"M152 64.7l14.6-3.7 6.1 18.8L152 64.7zM185.6 40.4h-25.7L152 16.2l-7.9 24.2h-25.7l20.8 15-7.9 24.2 20.8-15 12.8-9.2h20.7z\" fill=\"#FFFFFF\"></path>',\n      '<path d=\"M256 64.7l14.6-3.7 6.1 18.8L256 64.7zM289.6 40.4h-25.7L256 16.2l-7.9 24.2h-25.7l20.8 15-7.9 24.2 20.8-15 12.8-9.2h20.7z\" fill=\"#FFFFFF\"></path>',\n      '<path d=\"M360 64.7l14.6-3.7 6.1 18.8L360 64.7zM393.6 40.4h-25.7L360 16.2l-7.9 24.2h-25.7l20.8 15-7.9 24.2 20.8-15 12.8-9.2h20.7z\" fill=\"#FFFFFF\"></path>',\n      '<path d=\"M464 64.7l14.6-3.7 6.1 18.8L464 64.7zM497.6 40.4h-25.7L464 16.2l-7.9 24.2h-25.7l20.8 15-7.9 24.2 20.8-15 12.8-9.2h20.7z\" fill=\"#FFFFFF\"></path>',\n      '</svg>'\n    ].join('');\n    var mobileStars = desktopStars.replace('width=\"94\" height=\"18\"', 'width=\"104\" height=\"20\"');\n    var trustpilotLogo = '<img src=\"https://cdn.shopify.com/s/files/1/0659/6041/1345/files/Trustpilot_Logo__2022__svg.webp?v=1777683707\" alt=\"Trustpilot\" width=\"74\" height=\"18\" loading=\"lazy\" style=\"display:block; width:74px; height:auto; flex-shrink:0;\">';\n\n    ratingRows.forEach(function(row) {\n      var isMobile = !!row.closest('.sb-prod__mobile-header');\n      row.setAttribute('style', 'text-decoration:none; color:inherit; display:inline-flex; align-items:flex-end; gap:8px; flex-wrap:nowrap; user-select:none; -webkit-user-select:none; -webkit-tap-highlight-color:transparent; font-family:Inter, Arial, Helvetica, sans-serif !important;');\n      row.innerHTML = [\n        '<span style=\"display:inline-flex; align-items:flex-end; line-height:0; flex-shrink:0;\" aria-hidden=\"true\">', isMobile ? mobileStars : desktopStars, '</span>',\n        '<span style=\"display:inline-flex; align-items:flex-end; line-height:0; flex-shrink:0;\" aria-hidden=\"true\">', trustpilotLogo, '</span>',\n        '<span style=\"color:#3a3943; font-weight:400; display:inline-block; line-height:', isMobile ? '16px' : '18px', '; letter-spacing:-0.03em; white-space:nowrap; flex-shrink:0; margin:0; position:relative; top:1px; font-size:', isMobile ? '13px' : '14px', ';\">TrustScore 4.7 | <strong style=\"font-weight:600; color:#14213d;\">Excellent</strong></span>'\n      ].join('');\n    });\n  }\n\n  function replaceHomepageHeroTrustpilotLogo() {\n    if (window.location.pathname !== '/') return;\n\n    if (!document.getElementById('sb-hero-trustline-fallback-style')) {\n      var style = document.createElement('style');\n      style.id = 'sb-hero-trustline-fallback-style';\n      style.textContent = [\n        '.sb-hero__trustline{display:inline-flex!important;align-items:center!important;gap:8px!important;margin:0 0 14px!important;max-width:100%!important}',\n        '.sb-hero__trustline .sb-hero__trustpilot{display:block!important;width:88px!important;height:auto!important;flex:0 0 auto!important;margin:0!important}',\n        '.sb-hero__trustline-copy{color:#fff!important;font-size:15px!important;font-weight:700!important;line-height:1.2!important;letter-spacing:0!important;white-space:nowrap!important;text-shadow:0 2px 10px rgba(0,0,0,.48)!important}',\n        '@media(max-width:900px){.sb-hero__trustline{display:none!important}.sb-hero__trustline .sb-hero__trustpilot{width:85px!important}.sb-hero__trustline-copy{font-size:13px!important}}'\n      ].join('');\n      document.head.appendChild(style);\n    }\n\n    document.querySelectorAll('.sb-hero__trustpilot').forEach(function(mark) {\n      if (mark.closest && mark.closest('.sb-hero__trustline')) return;\n\n      var wrapper = document.createElement('div');\n      wrapper.className = 'sb-hero__trustline';\n      var svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');\n      svg.setAttribute('class', mark.getAttribute('class') || 'sb-hero__trustpilot');\n      svg.setAttribute('viewBox', '0 0 512 96');\n      svg.setAttribute('role', 'img');\n      svg.setAttribute('aria-label', '4.7 out of 5 stars');\n      svg.innerHTML = [\n        '<style>.st0{fill:#00B67A}.st1{fill:#DCDCE6}.st2{fill:#FFFFFF}</style>',\n        '<rect class=\"st0\" width=\"96\" height=\"96\"></rect><rect x=\"104\" class=\"st0\" width=\"96\" height=\"96\"></rect><rect x=\"208\" class=\"st0\" width=\"96\" height=\"96\"></rect><rect x=\"312\" class=\"st0\" width=\"96\" height=\"96\"></rect>',\n        '<g transform=\"translate(416)\"><rect x=\"48\" class=\"st1\" width=\"48\" height=\"96\"></rect><rect class=\"st0\" width=\"48\" height=\"96\"></rect></g>',\n        '<path class=\"st2\" d=\"M48,64.7L62.6,61l6.1,18.8L48,64.7z M81.6,40.4H55.9L48,16.2l-7.9,24.2H14.4l20.8,15l-7.9,24.2 l20.8-15l12.8-9.2L81.6,40.4L81.6,40.4L81.6,40.4L81.6,40.4z\"></path>',\n        '<path class=\"st2\" d=\"M152,64.7l14.6-3.7l6.1,18.8L152,64.7z M185.6,40.4h-25.7L152,16.2l-7.9,24.2h-25.7l20.8,15l-7.9,24.2 l20.8-15l12.8-9.2L185.6,40.4L185.6,40.4L185.6,40.4L185.6,40.4z\"></path>',\n        '<path class=\"st2\" d=\"M256,64.7l14.6-3.7l6.1,18.8L256,64.7z M289.6,40.4h-25.7L256,16.2l-7.9,24.2h-25.7l20.8,15l-7.9,24.2 l20.8-15l12.8-9.2L289.6,40.4L289.6,40.4L289.6,40.4L289.6,40.4z\"></path>',\n        '<path class=\"st2\" d=\"M360,64.7l14.6-3.7l6.1,18.8L360,64.7z M393.6,40.4h-25.7L360,16.2l-7.9,24.2h-25.7l20.8,15l-7.9,24.2 l20.8-15l12.8-9.2L393.6,40.4L393.6,40.4L393.6,40.4L393.6,40.4z\"></path>',\n        '<path class=\"st2\" d=\"M464,64.7l14.6-3.7l6.1,18.8L464,64.7z M497.6,40.4h-25.7L464,16.2l-7.9,24.2h-25.7l20.8,15l-7.9,24.2 l20.8-15l12.8-9.2L497.6,40.4L497.6,40.4L497.6,40.4L497.6,40.4z\"></path>'\n      ].join('');\n\n      var copy = document.createElement('span');\n      copy.className = 'sb-hero__trustline-copy';\n      copy.textContent = 'Trusted by 80,000+ Feet (4.7/5)';\n      wrapper.appendChild(svg);\n      wrapper.appendChild(copy);\n      mark.replaceWith(wrapper);\n    });\n  }\n\n  function applyHomepageHeroResponsiveFix() {\n    if (window.location.pathname !== '/') return;\n    if (document.getElementById('sb-home-hero-responsive-fix')) return;\n\n    var script = document.currentScript || document.querySelector('script[src*=\"sb2-patches.js\"]');\n    var assetBase = script && script.src\n      ? script.src.split('?')[0].replace(/sb2-patches\\.js$/, '')\n      : '/cdn/shop/t/18/assets/';\n    var desktopHeroUrl = assetBase + 'homepage-workfit-desktop-hero-banner.webp';\n\n    var style = document.createElement('style');\n    style.id = 'sb-home-hero-responsive-fix';\n    style.textContent = [\n      '@media(min-width:901px){',\n      '.sb2 .sb-hero{background-image:url(\"' + desktopHeroUrl + '\")!important;background-size:cover!important;background-position:center center!important;background-repeat:no-repeat!important;min-height:calc(100vw * 2000 / 3740)!important}',\n      '.sb2 .sb-hero__inner{min-height:calc(100vw * 2000 / 3740)!important}',\n      '}',\n      '@media(max-width:900px){',\n      '.sb2 .sb-hero{overflow-x:clip!important;overflow-y:visible!important}',\n      '.sb2 .sb-hero__inner{display:flex!important;flex-direction:column!important;min-height:0!important;height:auto!important;overflow:visible!important}',\n      '.sb2 .sb-hero__content-wrap{flex:0 0 auto!important;width:100%!important}',\n      '.sb2 .sb-hero__trustline{display:none!important;width:100%!important;max-width:100%!important;min-width:0!important;align-items:center!important;overflow:visible!important}',\n      '.sb2 .sb-hero__trustline-copy{min-width:0!important;max-width:100%!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;font-size:clamp(11px,3.2vw,13px)!important}',\n      '.sb2 .sb-hero__h1{max-width:100%!important;overflow-wrap:normal!important;font-size:clamp(34px,9.7vw,42px)!important}',\n      '.sb2 .sb-hero__headline-desktop{display:none!important}',\n      '.sb2 .sb-hero__headline-mobile{display:inline!important}',\n      '.sb2 .sb-hero__desc{max-width:100%!important}',\n      '.sb2 .sb-hero__trust-item{min-width:0!important;max-width:100%!important}',\n      '.sb2 .sb-hero__trust-item span:last-child{min-width:0!important;overflow:visible!important;text-overflow:clip!important;white-space:normal!important}',\n      '.sb2 .sb-hero__cta-wrap{max-width:100%!important;min-width:0!important}',\n      '.sb2 .sb-hero__cta-btn{white-space:nowrap!important;font-size:clamp(16px,4.6vw,18px)!important;padding-left:18px!important;padding-right:18px!important}',\n      '.sb2 .sb-hero__micro-trust{max-width:100%!important;overflow:visible!important;gap:clamp(6px,2.2vw,10px)!important}',\n      '.sb2 .sb-hero__micro-item{min-width:0!important;font-size:clamp(11px,3.15vw,13px)!important;letter-spacing:-.15px!important}',\n      '.sb2 .sb-hero__micro-icon{width:clamp(13px,3.8vw,15px)!important;height:clamp(13px,3.8vw,15px)!important;margin-right:3px!important}',\n      '.sb2 .sb-hero{position:relative!important;overflow:hidden!important;background:#000!important}',\n      '.sb2 .sb-hero__inner{position:relative!important;display:block!important;min-height:calc(100vw * 4300 / 2160)!important;height:auto!important;overflow:hidden!important;isolation:isolate!important}',\n      '.sb2 .sb-hero__content-wrap{position:relative!important;z-index:2!important;width:100%!important;background:transparent!important}',\n      '.sb2 .sb-hero__img-wrap{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;padding:0!important;overflow:hidden!important;z-index:0!important;background:transparent!important;line-height:0!important}',\n      '.sb2 .sb-hero__img-wrap:before,.sb2 .sb-hero__img-wrap:after{content:none!important;display:none!important;background:none!important}',\n      '.sb2 .sb-hero__img-wrap picture{display:block!important;width:100%!important;height:100%!important}',\n      '.sb2 .sb-hero__img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;object-fit:cover!important;object-position:center top!important;border-radius:0!important}',\n      '}',\n      '@media(min-width:601px) and (max-width:900px){',\n      '.sb2 .sb-hero__inner{min-height:calc(100vw * 2000 / 3740)!important}',\n      '}'\n    ].join('');\n    document.head.appendChild(style);\n  }\n\n  function applyHomepageHeroHeadlineFix() {\n    if (window.location.pathname !== '/') return;\n\n    var h1 = document.querySelector('.sb2 .sb-hero__h1');\n    if (!h1 || h1.querySelector('.sb-hero__headline-mobile')) return;\n\n    h1.innerHTML = [\n      '<span class=\"sb-hero__headline-desktop\">12 Hour Shifts, Zero<br> Foot Pain.</span>',\n      '<span class=\"sb-hero__headline-mobile\">12 Hour Shifts,<br>Zero Foot Pain.</span>'\n    ].join('');\n  }\n\n  function applyHomepageHeroCroppedImage() {\n    if (window.location.pathname !== '/') return;\n\n    document.querySelectorAll('.sb2 .sb-hero__img').forEach(function(image) {\n      if (image.dataset.sbCroppedHero === '1') return;\n\n      var src = image.currentSrc || image.src || '';\n      if (src.indexOf('mobile-hero-workfit') === -1) return;\n\n      var script = document.currentScript || document.querySelector('script[src*=\"sb2-patches.js\"]');\n      var assetBase = script && script.src\n        ? script.src.split('?')[0].replace(/sb2-patches\\.js$/, '')\n        : '/cdn/shop/t/18/assets/';\n\n      var useIpadHero = window.matchMedia && window.matchMedia('(min-width: 601px) and (max-width: 900px)').matches;\n      image.dataset.sbCroppedHero = '1';\n      image.src = assetBase + (useIpadHero ? 'ipad-hero-workfit-banner-20260710.png' : 'mobile-hero-workfit-banner-20260721-v2.webp');\n      image.width = useIpadHero ? 3740 : 2160;\n      image.height = useIpadHero ? 2000 : 4300;\n      image.style.objectFit = 'cover';\n      image.style.objectPosition = 'center top';\n    });\n  }\n\n  function applyHomepageReviewsHeaderFix() {\n    if (window.location.pathname !== '/') return;\n    // Rating is owned by the bound review section; do not overwrite it here.\n\n    var stars = document.querySelector('#sb-pdp-reviews .sb-stars');\n    if (!stars || stars.dataset.sbHomeReviewStarsPatched === '1') return;\n\n    stars.dataset.sbHomeReviewStarsPatched = '1';\n    stars.removeAttribute('style');\n    stars.style.whiteSpace = 'nowrap';\n    stars.style.display = 'inline-flex';\n    stars.style.alignItems = 'center';\n    stars.innerHTML = [\n      '<svg viewBox=\"0 0 512 96\" xmlns=\"http://www.w3.org/2000/svg\" width=\"104\" height=\"20\" role=\"img\" aria-hidden=\"true\">',\n      '<rect width=\"96\" height=\"96\" fill=\"#00B67A\"></rect>',\n      '<rect x=\"104\" width=\"96\" height=\"96\" fill=\"#00B67A\"></rect>',\n      '<rect x=\"208\" width=\"96\" height=\"96\" fill=\"#00B67A\"></rect>',\n      '<rect x=\"312\" width=\"96\" height=\"96\" fill=\"#00B67A\"></rect>',\n      '<rect x=\"464\" width=\"48\" height=\"96\" fill=\"#DCDCE6\"></rect>',\n      '<rect x=\"416\" width=\"48\" height=\"96\" fill=\"#00B67A\"></rect>',\n      '<path d=\"M48 64.7L62.6 61l6.1 18.8L48 64.7zM81.6 40.4H55.9L48 16.2l-7.9 24.2H14.4l20.8 15-7.9 24.2 20.8-15 12.8-9.2h20.7z\" fill=\"#FFFFFF\"></path>',\n      '<path d=\"M152 64.7l14.6-3.7 6.1 18.8L152 64.7zM185.6 40.4h-25.7L152 16.2l-7.9 24.2h-25.7l20.8 15-7.9 24.2 20.8-15 12.8-9.2h20.7z\" fill=\"#FFFFFF\"></path>',\n      '<path d=\"M256 64.7l14.6-3.7 6.1 18.8L256 64.7zM289.6 40.4h-25.7L256 16.2l-7.9 24.2h-25.7l20.8 15-7.9 24.2 20.8-15 12.8-9.2h20.7z\" fill=\"#FFFFFF\"></path>',\n      '<path d=\"M360 64.7l14.6-3.7 6.1 18.8L360 64.7zM393.6 40.4h-25.7L360 16.2l-7.9 24.2h-25.7l20.8 15-7.9 24.2 20.8-15 12.8-9.2h20.7z\" fill=\"#FFFFFF\"></path>',\n      '<path d=\"M464 64.7l14.6-3.7 6.1 18.8L464 64.7zM497.6 40.4h-25.7L464 16.2l-7.9 24.2h-25.7l20.8 15-7.9 24.2 20.8-15 12.8-9.2h20.7z\" fill=\"#FFFFFF\"></path>',\n      '</svg>'\n    ].join('');\n  }\n\n  function removeHomepageTestimonialStars() {\n    if (window.location.pathname !== '/') return;\n\n    if (!document.getElementById('sb-home-testimonial-stars-hide')) {\n      var style = document.createElement('style');\n      style.id = 'sb-home-testimonial-stars-hide';\n      style.textContent = '.sb-btest__trust-stars--top{display:none !important;}';\n      document.head.appendChild(style);\n    }\n\n    var stars = document.querySelector('.sb-btest__trust-stars--top');\n    if (stars) stars.remove();\n  }\n\n  function disableScrollUpHeader() {\n    var pathname = window.location.pathname;\n    if (pathname === '/pages/foothealth' || pathname.indexOf('/products/') === 0) return;\n\n    document.querySelectorAll('sticky-header[data-sticky-type=\"on-scroll-up\"]').forEach(function(header) {\n      var replacement = document.createElement('div');\n      Array.prototype.slice.call(header.attributes).forEach(function(attr) {\n        if (attr.name !== 'data-sticky-type') replacement.setAttribute(attr.name, attr.value);\n      });\n      while (header.firstChild) replacement.appendChild(header.firstChild);\n      header.replaceWith(replacement);\n    });\n\n    document.querySelectorAll('.section-header').forEach(function(header) {\n      header.classList.remove('shopify-section-header-hidden', 'shopify-section-header-sticky', 'animate', 'scrolled-past-header');\n    });\n  }\n\n  function applyNonHomeHeaderAndGeoFix() {\n    var pathname = window.location.pathname;\n    if (pathname === '/' || pathname === '/pages/foothealth' || pathname.indexOf('/products/') === 0) return;\n\n    if (!document.getElementById('sb-non-home-header-geo-fix')) {\n      var style = document.createElement('style');\n      style.id = 'sb-non-home-header-geo-fix';\n      style.textContent = [\n        '.section-header .header-wrapper,.section-header .header-wrapper.gradient,.section-header .header-wrapper .header{background:#000000!important;color:#ffffff!important}',\n        '.section-header .header__icon,.section-header .header__icon .icon,.section-header .header__icon svg,.section-header .header-localization .localization-form__select,.section-header .header-localization .localization-form__select span,.section-header .header-localization .localization-form__select .icon-caret{color:#ffffff!important}',\n        '.section-header .header__icon svg path,.section-header .header-localization .localization-form__select svg,.section-header .header-localization .localization-form__select svg path{fill:#ffffff!important;stroke:#ffffff!important}',\n        '#MainContent #sb-announce-bar{display:none!important}'\n      ].join('');\n      document.head.appendChild(style);\n    }\n\n    document.querySelectorAll('#MainContent #sb-announce-bar').forEach(function(bar) {\n      bar.remove();\n    });\n  }\n\n  function applyHomeMobileHeaderBlack() {\n    if (window.location.pathname !== '/') return;\n\n    if (!document.getElementById('sb-home-mobile-header-black')) {\n      var style = document.createElement('style');\n      style.id = 'sb-home-mobile-header-black';\n      style.textContent = [\n        '@media (max-width:989px){',\n        '.section-header .header-wrapper,.section-header .header-wrapper.gradient,.section-header .header-wrapper .header{background:#000000!important}',\n        '}',\n        '@media (min-width:601px) and (max-width:989px){',\n        '.section-header{position:relative!important;top:auto!important;background:#000000!important;z-index:5!important}',\n        '.section-header .header-wrapper,.section-header .header-wrapper.gradient,.section-header .header-wrapper .header{background:#000000!important}',\n        '#shopify-section-sb2-hero,#shopify-section-sb2-hero-main{margin-top:0!important;padding-top:0!important}',\n        '}'\n      ].join('');\n      document.head.appendChild(style);\n    }\n  }\n\n  function keepHomepageFeatureVideoLooping() {\n    if (window.location.pathname !== '/') return;\n\n    document.querySelectorAll('.sb-features2__gif').forEach(function(video) {\n      if (video.dataset.sbLoopGuard === '1') return;\n      video.dataset.sbLoopGuard = '1';\n\n      function restart() {\n        if (!video || document.hidden) return;\n        video.muted = true;\n        video.playsInline = true;\n        if (video.ended || video.currentTime >= Math.max(0, video.duration - 0.12)) {\n          video.currentTime = 0;\n        }\n        var play = video.play();\n        if (play && play.catch) play.catch(function(){});\n      }\n\n      video.addEventListener('ended', restart);\n      video.addEventListener('stalled', restart);\n      video.addEventListener('pause', restart);\n      video.addEventListener('loadeddata', restart, { once: true });\n      video.addEventListener('timeupdate', function() {\n        if (video.duration && video.currentTime >= video.duration - 0.08) restart();\n      });\n      document.addEventListener('visibilitychange', restart);\n      window.addEventListener('pageshow', restart);\n      setInterval(restart, 1800);\n      restart();\n    });\n  }\n\n\n  function applyUnicodeAndNurseGuaranteeCopy() {\n    /* sb-unicode-nurse-guarantee-render-20260813 */\n    var pathname = decodeURIComponent(window.location.pathname);\n    if (pathname !== '/products/workfit\u2122-insoles' && pathname !== '/pages/nurse-workfit') return;\n    document.querySelectorAll('.sb-atc__guarantee-note-text').forEach(function(note) {\n      note.textContent = 'If they don\u2019t help, we\u2019ll buy them back from you. Zero risk.';\n    });\n  }\n\n  function init(){\n    proxyMobileToDesktop();\n    fixScrollLock();\n    applyUsHomepageProductGap();\n    applyPartnerTypographyLock();\n    applyPartnerTrustCopyFix();\n    applyWorkfitReviewsHeaderFix();\n    applyHomepageTrustpilotFix();\n    replaceHomepageHeroTrustpilotLogo();\n    applyHomepageHeroResponsiveFix();\n    applyHomepageHeroHeadlineFix();\n    applyHomepageHeroCroppedImage();\n    applyHomepageReviewsHeaderFix();\n    removeHomepageTestimonialStars();\n    disableScrollUpHeader();\n    applyNonHomeHeaderAndGeoFix();\n    applyHomeMobileHeaderBlack();\n    keepHomepageFeatureVideoLooping();\n    applyUnicodeAndNurseGuaranteeCopy();\n  }\n\n  if(document.readyState === 'loading'){\n    document.addEventListener('DOMContentLoaded', init);\n  } else { init(); }\n  window.addEventListener('load', function(){\n    init();\n    setTimeout(init, 500);\n    setTimeout(init, 1500);\n    setTimeout(init, 3000);\n    setTimeout(init, 5000);\n  });\n  window.addEventListener('resize', applyUsHomepageProductGap);\n  window.addEventListener('scroll', disableScrollUpHeader, { passive: true });\n})();\n"],
  "mappings": "AAMA,SAAS,0BAA0B,KAAM,YAAa,CANtD,UAOE,GAAI,CAEF,GAAI,CAAC,OAAO,SAAW,CAAC,MAAM,QAAQ,OAAO,OAAO,GAAK,CAAC,KAAM,OAChE,IAAI,MAAQ,MAAM,QAAQ,KAAK,KAAK,EAAI,KAAK,MAAQ,CAAC,IAAI,EACtD,KAAO,aAAe,MAAM,CAAC,GAAK,CAAC,EACnC,QAAU,KAAK,IAAO,OAAO,SAAS,OAAS,KAAK,IAAO,OAAO,SAAS,KAC3E,SAAW,KAAK,gBAAkB,KAAK,SACvC,UAAY,KAAK,kBAAoB,KAAK,YAAc,KAAK,YAC7D,UAAY,KAAK,aAAe,KAAK,QAAU,WAAa,SAAW,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