{
  "version": 3,
  "sources": ["/cdn/shop/t/2/assets/twc-distilleries.js?twc_revision=20260818_1"],
  "sourcesContent": ["/*\n * TWC distilleries \u2014 the browser half of the distilleries index.\n *\n * One custom element:\n *\n *   <twc-distilleries-index>  region + country filters \u00B7 client pagination \u00B7\n *                             complete Storefront read\n *\n * Everything here is an ENHANCEMENT. With no JavaScript the page still works:\n * every distillery the server could draw shows in one alphabetical grid, the\n * filters sit inert with their server-built options, and the pagination stays\n * hidden (Liquid renders the nav hidden and this file reveals it).\n *\n * THE ISLAND IS THE SECOND READER. The server draws the engine's content\n * digest \u2014 the complete alphabetical list, up to 128 entries, plus the true\n * total \u2014 so first paint is already correct and this file does not exist to\n * fix it. Its jobs:\n *\n *   1. COMPLETE THE SET. When the digest has not stamped, Liquid's ~50-entry\n *      scan is the fallback and drops entries. The cursor-paged Storefront\n *      read (assets/twc-community-metaobjects.js, type \"distillery\") brings\n *      the rest in; `data-total-items` says how many really exist, so the\n *      page numbers never grow under the reader, and a page whose cards have\n *      not arrived yet is drawn disabled.\n *   2. RECONCILE. Server page 1 and island page 1 are the same alphabetical\n *      list, so assets/twc-dom-reconcile.js compares handles IN ORDER and\n *      touches nothing when they match. A longer complete list is APPENDED\n *      after the server's cards, which keep their place; only a real\n *      disagreement redraws the grid. Nothing swaps under the reader's eyes.\n *   3. FILTER + PAGE. The two selects combine with AND over the cards'\n *      `data-twc-region` / `data-twc-country` attributes; the pager walks the\n *      FILTERED set, 12 to a page (section setting). The option lists are\n *      rebuilt from the complete model once it lands, keeping the reader's\n *      selection \u2014 and their page, clamped to the pages actually loaded.\n *\n * The read is EAGER, on load \u2014 the grid is the page, so waiting for a scroll\n * would delay the deep pages until the reader is already at them. When the\n * read fails the module answers null and this file does NOTHING: the server's\n * markup stays on screen, filterable and paginated as far as it goes.\n *\n * One IIFE, idempotent under duplicate script tags. Every listener is bound\n * to an AbortController that disconnectedCallback() aborts.\n */\n(function () {\n  'use strict';\n\n  if (customElements.get('twc-distilleries-index')) return;\n\n  /* ---- 1. locale strings ------------------------------------------------ */\n\n  // Shopify HTML-escapes every theme translation on output (only *_html keys\n  // skip it). The island renders via textContent, which would show an entity\n  // literally. Decode once at parse time \u2014 the twc-events.js precedent.\n  var entityEl = null;\n  function decodeEntities(str) {\n    if (typeof str !== 'string' || str.indexOf('&') === -1) return str;\n    if (!entityEl) entityEl = document.createElement('textarea');\n    entityEl.innerHTML = str;\n    return entityEl.value;\n  }\n\n  function strings(host) {\n    if (host._twcStrings) return host._twcStrings;\n    var blob = {};\n    var tag = host.querySelector('script[data-twc-i18n]');\n    if (tag) {\n      try {\n        blob = JSON.parse(tag.textContent) || {};\n      } catch (error) {\n        blob = {};\n      }\n    }\n    for (var key in blob) {\n      if (Object.prototype.hasOwnProperty.call(blob, key)) blob[key] = decodeEntities(blob[key]);\n    }\n    host._twcStrings = blob;\n    return blob;\n  }\n\n  function t(host, key, fallback) {\n    var value = strings(host)[key];\n    return value == null || value === '' ? fallback : value;\n  }\n\n  /* ---- 2. small DOM helpers --------------------------------------------- */\n\n  var CHEVRON_PREV =\n    '<svg viewBox=\"0 0 16 16\" aria-hidden=\"true\" focusable=\"false\">' +\n    '<g transform=\"translate(4.25 2.25)\">' +\n    '<path d=\"M5.75 10.75L0.75 5.75L5.75 0.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>' +\n    '</g></svg>';\n\n  var CHEVRON_NEXT =\n    '<svg viewBox=\"0 0 16 16\" aria-hidden=\"true\" focusable=\"false\">' +\n    '<g transform=\"translate(4.25 2.25)\">' +\n    '<path d=\"M0.75 0.75L5.75 5.75L0.75 10.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>' +\n    '</g></svg>';\n\n  function element(tag, className, text) {\n    var node = document.createElement(tag);\n    if (className) node.className = className;\n    if (text != null && text !== '') node.textContent = text;\n    return node;\n  }\n\n  function append(parent, child) {\n    if (child) parent.appendChild(child);\n    return child;\n  }\n\n  /** \"Page 3\". The section passes the translation with `__n__` where the\n   *  number goes; a translation that lost its placeholder still reads well. */\n  function pageLabel(host, page) {\n    var template = t(host, 'page_number', '');\n    if (!template) return String(page);\n    if (template.indexOf('__n__') !== -1) return template.replace('__n__', String(page));\n    return template + ' ' + page;\n  }\n\n  /** The numbers the board draws (8871:2768): first, a window around the\n   *  current page, last, and an ellipsis wherever the run breaks. */\n  function pageList(current, total) {\n    var wanted = [1, total, current - 1, current, current + 1];\n    var pages = [];\n    wanted\n      .filter(function (page) {\n        return page >= 1 && page <= total;\n      })\n      .sort(function (a, b) {\n        return a - b;\n      })\n      .forEach(function (page) {\n        if (pages[pages.length - 1] !== page) pages.push(page);\n      });\n\n    var out = [];\n    pages.forEach(function (page, index) {\n      if (index > 0 && page - pages[index - 1] > 1) out.push(null);\n      out.push(page);\n    });\n    return out;\n  }\n\n  /* ---- 3. the model ------------------------------------------------------ */\n\n  /** Every typed lookup goes through the shared reader, so a rebuilt card and\n   *  a Liquid-rendered one cannot drift apart. */\n  function api() {\n    return window.TwcCommunityMetaobjects;\n  }\n\n  function field(entry, key) {\n    return api().value(entry, key).trim();\n  }\n\n  function entryPath(entry) {\n    return api().onlineStorePath(entry.onlineStoreUrl || '');\n  }\n\n  /** The same normalization the Liquid runs: downcased, spaces to dashes,\n   *  commas dropped, slashes to dashes \u2014 the two halves MUST agree or a\n   *  server card and an island card would answer the same filter apart. */\n  function filterKey(label) {\n    return String(label || '')\n      .trim()\n      .toLowerCase()\n      .replace(/ /g, '-')\n      .replace(/,/g, '')\n      .replace(/\\//g, '-');\n  }\n\n  /** Alphabetical by name \u2014 the digest's own rule \u2014 with the handle as the\n   *  tie-breaker so the order is total and stable. */\n  function compareByName(left, right) {\n    var a = field(left, 'name') || left.handle || '';\n    var b = field(right, 'name') || right.handle || '';\n    var order = a.localeCompare(b, 'en');\n    if (order !== 0) return order;\n    return String(left.handle || '').localeCompare(String(right.handle || ''), 'en');\n  }\n\n  function multiline(tag, className, value) {\n    if (!value) return null;\n    var node = element(tag, className);\n    String(value).split(/\\r?\\n/).forEach(function (line, index) {\n      if (index) append(node, element('br'));\n      node.appendChild(document.createTextNode(line));\n    });\n    return node;\n  }\n\n  /** One distillery card, node for node the card the Liquid renders\n   *  (sections/twc-distilleries-index.liquid). The TITLE is the card's one\n   *  tab stop; the photo and the EXPLORE button are links the keyboard skips.\n   *  No list image means the cream placeholder band, never a dropped card. */\n  function buildCard(host, entry, eager) {\n    var title = field(entry, 'name');\n    var path = entryPath(entry);\n    var regionLabel = field(entry, 'region');\n    var countryLabel = field(entry, 'country_of_origin');\n\n    var card = element('li', 'twc-community__card twc-distilleries__card');\n    card.setAttribute('data-twc-card', '');\n    card.dataset.twcHandle = entry.handle || '';\n    card.dataset.twcRegion = regionLabel ? filterKey(regionLabel) : '';\n    card.dataset.twcCountry = countryLabel ? filterKey(countryLabel) : '';\n\n    var image = api().image(entry, 'list_image');\n    var media = element(\n      'a',\n      'twc-community__card-media twc-distilleries__media' +\n        (image ? '' : ' twc-distilleries__media--placeholder')\n    );\n    media.href = path;\n    media.tabIndex = -1;\n    media.setAttribute('aria-hidden', 'true');\n    if (image) {\n      var img = element('img');\n      img.src = api().imageUrl(image.url, 928);\n      img.srcset = [343, 464, 720, 928]\n        .map(function (width) {\n          return api().imageUrl(image.url, width) + ' ' + width + 'w';\n        })\n        .join(', ');\n      img.sizes = '(min-width: 750px) 33vw, 100vw';\n      img.alt = title;\n      img.width = image.width || 928;\n      img.height = image.height || 522;\n      img.loading = eager ? 'eager' : 'lazy';\n      if (eager) img.setAttribute('fetchpriority', 'high');\n      append(media, img);\n    }\n    append(card, media);\n\n    var body = element('div', 'twc-community__card-body');\n    var head = element('div', 'twc-community__card-head');\n    var eyebrow = field(entry, 'location_label') || regionLabel;\n    if (eyebrow) append(head, element('p', 'twc-community__eyebrow', eyebrow));\n    if (title) {\n      var heading = element('h3', 'twc-community__card-title twc-distilleries__title');\n      if (path) {\n        var link = element('a', 'twc-distilleries__title-link', title);\n        link.href = path;\n        append(heading, link);\n      } else {\n        heading.textContent = title;\n      }\n      append(head, heading);\n    }\n    append(body, head);\n    append(\n      body,\n      multiline('p', 'twc-community__card-text twc-distilleries__excerpt', field(entry, 'excerpt'))\n    );\n\n    var actions = element('div', 'twc-community__card-actions');\n    var explore = element('a', 'twc-distilleries__cta', t(host, 'explore', 'Explore'));\n    explore.href = path;\n    explore.tabIndex = -1;\n    explore.setAttribute('aria-hidden', 'true');\n    append(actions, explore);\n    append(body, actions);\n    append(card, body);\n    return card;\n  }\n\n  /* ---- 4. the index ------------------------------------------------------ */\n\n  class TwcDistilleriesIndex extends HTMLElement {\n    connectedCallback() {\n      this._twcController = new AbortController();\n\n      this.regionFilter = this.querySelector('[data-twc-filter=\"region\"]');\n      this.countryFilter = this.querySelector('[data-twc-filter=\"country\"]');\n      this.regionField = this.querySelector('[data-twc-region-field]');\n      this.countryField = this.querySelector('[data-twc-country-field]');\n      this.controls = this.querySelector('[data-twc-controls]');\n      this.empty = this.querySelector('[data-twc-empty]');\n      this.list = this.querySelector('[data-twc-list]');\n      this.cards = Array.prototype.slice.call(this.querySelectorAll('[data-twc-card]'));\n      this.pagination = this.querySelector('[data-twc-pagination]');\n      this.perPage = parseInt(this.getAttribute('data-per-page'), 10) || 12;\n      // The TRUE size of the collection, from the digest's own count \u2014 the\n      // no-digest fallback could only draw ~50. 0 means \"what you see is all\n      // there is\".\n      this.totalItems = parseInt(this.getAttribute('data-total-items'), 10) || 0;\n      this.page = 1;\n      this.matching = this.cards.slice();\n\n      this.bindFilters();\n      this.applyFilter(true);\n      this.loadCompleteIndex();\n    }\n\n    disconnectedCallback() {\n      if (this._twcController) this._twcController.abort();\n    }\n\n    /* -- the complete read -- */\n\n    /** EAGER on load, never gated on scroll \u2014 the grid IS the page, so the\n     *  complete set has to be in hand before the reader pages into it. */\n    loadCompleteIndex() {\n      var reader = api();\n      if (!reader) return;\n      var host = this;\n      reader\n        .loadAll(this, 'distillery', this._twcController.signal)\n        .then(function (entries) {\n          // null = no token is configured. The Liquid grid stays exactly as\n          // the server drew it; nothing here blanks it out.\n          if (!entries || host._twcController.signal.aborted) return;\n          host.replaceIndex(entries);\n        })\n        .catch(function (error) {\n          if (error && error.name === 'AbortError') return;\n          console.warn('The complete distilleries index could not be loaded or applied.', error);\n        });\n    }\n\n    replaceIndex(entries) {\n      var host = this;\n      var patch = window.TwcListReconcile;\n      if (!patch) return;\n\n      // Alphabetical by name \u2014 the digest's rule \u2014 then re-ordered so every\n      // card the server already drew keeps its position: identical lists are\n      // untouched, a longer one is appended, and the reader never watches the\n      // grid reshuffle itself a second after it painted.\n      var items = entries.slice().sort(compareByName);\n      items = patch.orderedLike(items, patch.handlesOf(this.list));\n\n      var shell = this.closest('.twc-distilleries');\n      if (shell) shell.hidden = items.length === 0;\n\n      // The first card photo that renders is eager (the LCP candidate below a\n      // short hero). An APPEND never claims it \u2014 the card the server drew\n      // already holds it.\n      var eagerUsed = false;\n      patch.sync(this.list, items, function (entry, index, appended) {\n        var eager = !appended && !eagerUsed && Boolean(api().image(entry, 'list_image'));\n        if (eager) eagerUsed = true;\n        return buildCard(host, entry, eager);\n      });\n\n      this.cards = Array.prototype.slice.call(this.querySelectorAll('[data-twc-card]'));\n\n      // The complete read IS the collection \u2014 a digest count staler than the\n      // read (an entry deleted since the last stamp) would otherwise keep\n      // promising pages whose cards can never arrive, drawn disabled forever.\n      this.totalItems = items.length;\n\n      this.rebuildOptions(items);\n\n      // The reader may already be past page 1 when the complete read lands \u2014\n      // keep their place, clamped to pages whose cards are actually here (a\n      // stale digest count can promise more pages than the read returned).\n      var page = this.page || 1;\n      this.applyFilter(true);\n      var loadedPages = Math.max(1, Math.ceil(this.matching.length / this.perPage));\n      var target = Math.min(page, loadedPages);\n      if (target > 1) this.showPage(target, false);\n    }\n\n    /* -- the two filters -- */\n\n    bindFilters() {\n      var host = this;\n      [this.regionFilter, this.countryFilter].forEach(function (filter) {\n        if (!filter) return;\n        filter.addEventListener(\n          'change',\n          function () {\n            host.applyFilter(true);\n          },\n          { signal: host._twcController.signal }\n        );\n      });\n    }\n\n    filterActive() {\n      var region = this.regionFilter ? this.regionFilter.value : '';\n      var country = this.countryFilter ? this.countryFilter.value : '';\n      return Boolean(region || country);\n    }\n\n    /** Region AND country \u2014 a card must answer both selects to stay. The\n     *  filtered set is what the pager walks. */\n    applyFilter(resetPage) {\n      var region = this.regionFilter ? this.regionFilter.value : '';\n      var country = this.countryFilter ? this.countryFilter.value : '';\n\n      this.matching = this.cards.filter(function (card) {\n        var regionMatch = !region || card.getAttribute('data-twc-region') === region;\n        var countryMatch = !country || card.getAttribute('data-twc-country') === country;\n        return regionMatch && countryMatch;\n      });\n\n      if (this.empty) this.empty.hidden = this.matching.length > 0;\n      if (resetPage) this.page = 1;\n      this.showPage(this.page, false);\n    }\n\n    /** Rebuild both option lists from the complete model, keeping whatever\n     *  the reader had selected (twc-events.js rebuildLocations precedent),\n     *  and hide a select that offers nothing to choose. */\n    rebuildOptions(entries) {\n      this.rebuildSelect(\n        this.regionFilter,\n        this.regionField,\n        entries,\n        'region',\n        t(this, 'filter_region', 'Filter by Region')\n      );\n      this.rebuildSelect(\n        this.countryFilter,\n        this.countryField,\n        entries,\n        'country_of_origin',\n        t(this, 'filter_country', 'Filter by Country')\n      );\n      var showFilters = this.dataset.showFilters === 'true' && this.cards.length > 0;\n      if (this.controls) this.controls.hidden = !showFilters;\n    }\n\n    rebuildSelect(select, fieldBox, entries, key, allLabel) {\n      if (!select) return;\n      var selected = select.value;\n      var labels = {};\n      entries.forEach(function (entry) {\n        var label = field(entry, key);\n        if (label) labels[filterKey(label)] = label;\n      });\n      var options = Object.keys(labels).sort(function (a, b) {\n        return labels[a].localeCompare(labels[b]);\n      });\n      select.textContent = '';\n      // The board draws the closed field reading its own label \u2014 that label\n      // IS the all-values option.\n      var all = element('option', '', allLabel);\n      all.value = '';\n      append(select, all);\n      options.forEach(function (optionKey) {\n        var option = element('option', '', labels[optionKey]);\n        option.value = optionKey;\n        append(select, option);\n      });\n      select.value = options.indexOf(selected) === -1 ? '' : selected;\n      if (fieldBox) fieldBox.hidden = options.length <= 1;\n    }\n\n    /* -- pagination -- */\n\n    /** How many pages there really are. Unfiltered, the digest's count keeps\n     *  the numbers honest past what the server could draw; filtered, only\n     *  the cards actually here can answer, so the count steps aside. */\n    pageTotal() {\n      var known = this.matching.length;\n      if (!this.filterActive()) known = Math.max(known, this.totalItems || 0);\n      return Math.max(1, Math.ceil(known / this.perPage));\n    }\n\n    /** A page is reachable once its cards are on the page. Pages past the\n     *  server's slice stay disabled until the complete read fills them in. */\n    pageIsLoaded(page) {\n      return (page - 1) * this.perPage < this.matching.length;\n    }\n\n    showPage(page, moveFocus) {\n      var total = this.pageTotal();\n      this.page = Math.min(Math.max(page, 1), total);\n\n      var first = (this.page - 1) * this.perPage;\n      var last = first + this.perPage;\n      this.cards.forEach(function (card) {\n        card.hidden = true;\n      });\n      this.matching.forEach(function (card, index) {\n        card.hidden = index < first || index >= last;\n      });\n\n      this.renderPagination(total, moveFocus);\n    }\n\n    renderPagination(total, moveFocus) {\n      var host = this;\n      var nav = this.pagination;\n      if (!nav) return;\n      nav.textContent = '';\n      nav.hidden = total <= 1;\n      if (total <= 1) return;\n\n      var stepLabels = { prev: t(this, 'page_previous', 'Previous'), next: t(this, 'page_next', 'Next') };\n\n      function step(kind, targetPage, disabled, markup) {\n        var button = document.createElement('button');\n        button.type = 'button';\n        button.className = 'twc-community__page-step';\n        button.setAttribute('aria-label', stepLabels[kind]);\n        button.innerHTML = markup;\n        if (disabled) {\n          button.disabled = true;\n        } else {\n          button.addEventListener(\n            'click',\n            function () {\n              host.showPage(targetPage, true);\n            },\n            { signal: host._twcController.signal }\n          );\n        }\n        nav.appendChild(button);\n      }\n\n      step('prev', this.page - 1, this.page === 1, CHEVRON_PREV);\n\n      pageList(this.page, total).forEach(function (page) {\n        if (page === null) {\n          var gap = document.createElement('span');\n          gap.className = 'twc-distilleries__page-gap';\n          gap.setAttribute('aria-hidden', 'true');\n          gap.textContent = '\u2026';\n          nav.appendChild(gap);\n          return;\n        }\n\n        var button = document.createElement('button');\n        button.type = 'button';\n        button.className = 'twc-community__page';\n        button.textContent = String(page);\n        button.setAttribute('aria-label', pageLabel(host, page));\n        if (page === host.page) {\n          button.setAttribute('aria-current', 'page');\n        }\n        if (host.pageIsLoaded(page)) {\n          button.addEventListener(\n            'click',\n            function () {\n              host.showPage(page, true);\n            },\n            { signal: host._twcController.signal }\n          );\n        } else {\n          // The number is honest about how far the list goes; the button\n          // waits for the complete read to bring those cards in.\n          button.disabled = true;\n        }\n        nav.appendChild(button);\n      });\n\n      step('next', this.page + 1, this.page === total || !this.pageIsLoaded(this.page + 1), CHEVRON_NEXT);\n\n      if (moveFocus) {\n        var current = nav.querySelector('[aria-current=\"page\"]');\n        if (current) current.focus();\n      }\n    }\n  }\n\n  customElements.define('twc-distilleries-index', TwcDistilleriesIndex);\n})();\n"],
  "mappings": "CA2CC,UAAY,CACX,aAEA,GAAI,eAAe,IAAI,wBAAwB,EAAG,OAOlD,IAAI,SAAW,KACf,SAAS,eAAe,IAAK,CAC3B,OAAI,OAAO,KAAQ,UAAY,IAAI,QAAQ,GAAG,IAAM,GAAW,KAC1D,WAAU,SAAW,SAAS,cAAc,UAAU,GAC3D,SAAS,UAAY,IACd,SAAS,MAClB,CAEA,SAAS,QAAQ,KAAM,CACrB,GAAI,KAAK,YAAa,OAAO,KAAK,YAClC,IAAI,KAAO,CAAC,EACR,IAAM,KAAK,cAAc,uBAAuB,EACpD,GAAI,IACF,GAAI,CACF,KAAO,KAAK,MAAM,IAAI,WAAW,GAAK,CAAC,CACzC,MAAgB,CACd,KAAO,CAAC,CACV,CAEF,QAAS,OAAO,KACV,OAAO,UAAU,eAAe,KAAK,KAAM,GAAG,IAAG,KAAK,GAAG,EAAI,eAAe,KAAK,GAAG,CAAC,GAE3F,YAAK,YAAc,KACZ,IACT,CAEA,SAAS,EAAE,KAAM,IAAK,SAAU,CAC9B,IAAI,MAAQ,QAAQ,IAAI,EAAE,GAAG,EAC7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