{
  "version": 3,
  "sources": ["/cdn/shop/t/31/assets/predictive-search.js?ta_search_build=remove-snippets-20260829"],
  "sourcesContent": ["\nclass PredictiveSearch extends HTMLElement {\n  constructor() {\n    super();\n    this.cachedResults = {};\n    this.input = this.querySelector('input[type=\"search\"]');\n    this.predictiveSearchResults = this.querySelector('[data-predictive-search]');\n    this.errorElement = this.querySelector('[data-predictive-search-error]');\n    this.catalogIndexUrl = this.dataset.catalogIndexUrl;\n    const configuredSidebarLimit = Number.parseInt(this.dataset.maxResultsInSidebar, 10);\n    this.maxResultsInSidebar = Number.isFinite(configuredSidebarLimit)\n      ? Math.min(12, Math.max(1, configuredSidebarLimit))\n      : 4;\n    this.catalogProducts = null;\n    this.catalogLoadPromise = null;\n    this.instanceId = (this.closest('search-drawer')?.id || this.id || 'SearchTemplate').replace(/[^a-zA-Z0-9_-]/g, '');\n    this.isOpen = false;\n\n    this.setupEventListeners();\n  }\n\n  setupEventListeners() {\n    const form = this.querySelector('form.search');\n    form.addEventListener('submit', this.onFormSubmit.bind(this));\n\n    this.input.addEventListener('input', debounce((event) => {\n      this.onChange(event);\n    }, 300).bind(this));\n    this.input.addEventListener('focus', this.onFocus.bind(this));\n    this.addEventListener('focusout', this.onFocusOut.bind(this));\n    this.addEventListener('keyup', this.onKeyup.bind(this));\n    this.addEventListener('keydown', this.onKeydown.bind(this));\n  }\n\n  getQuery() {\n    return this.input.value.trim();\n  }\n\n  onChange() {\n    const searchTerm = this.getQuery();\n    this.hideError();\n\n    if (!searchTerm.length) {\n      this.close(true);\n      return;\n    }\n\n    this.getSearchResults(searchTerm);\n  }\n\n  onFormSubmit(event) {\n    if (!this.getQuery().length || this.querySelector('[aria-selected=\"true\"] a')) event.preventDefault();\n  }\n\n  onFocus() {\n    const searchTerm = this.getQuery();\n\n    if (!searchTerm.length) return;\n\n    if (this.getAttribute('results') === 'true') {\n      this.open();\n    } else {\n      this.getSearchResults(searchTerm);\n    }\n  }\n\n  onFocusOut() {\n    setTimeout(() => {\n      if (!this.contains(document.activeElement)) this.close();\n    })\n  }\n\n  onKeyup(event) {\n    if (!this.getQuery().length) this.close(true);\n\n    switch (event.code) {\n      case 'ArrowUp':\n        event.preventDefault();\n        this.switchOption('up')\n        break;\n      case 'ArrowDown':\n        event.preventDefault();\n        this.switchOption('down');\n        break;\n      case 'Enter':\n        event.preventDefault();\n        this.selectOption();\n        break;\n    }\n  }\n\n  onKeydown(event) {\n    // Prevent the cursor from moving in the input when using the up and down arrow keys\n    if (\n      event.code === 'ArrowUp' ||\n      event.code === 'ArrowDown'\n    ) {\n      event.preventDefault();\n    }\n  }\n\n  switchOption(direction) {\n    if (!this.getAttribute('open')) return;\n\n    const moveUp = direction === 'up';\n    const selectedElement = this.querySelector('[data-predictive-search-option][aria-selected=\"true\"]');\n    const allElements = this.querySelectorAll('[data-predictive-search-option]');\n    let activeElement = allElements[0];\n\n    if (!activeElement) return;\n\n    if (moveUp && !selectedElement) return;\n\n    this.statusElement.textContent = '';\n\n    if (!moveUp && selectedElement) {\n      activeElement = selectedElement.nextElementSibling || allElements[0];\n    } else if (moveUp) {\n      activeElement = selectedElement.previousElementSibling || allElements[allElements.length - 1];\n    }\n\n    if (activeElement === selectedElement) return;\n\n    activeElement.setAttribute('aria-selected', true);\n    if (selectedElement) selectedElement.setAttribute('aria-selected', false);\n\n    this.setLiveRegionText(activeElement.textContent);\n    this.input.setAttribute('aria-activedescendant', activeElement.id);\n  }\n\n  selectOption() {\n    const selectedProduct = this.querySelector('[aria-selected=\"true\"] a, [aria-selected=\"true\"] button');\n\n    if (selectedProduct) selectedProduct.click();\n  }\n\n  async getSearchResults(searchTerm) {\n    const queryKey = searchTerm.replace(\" \", \"-\").toLowerCase();\n    this.setLiveRegionLoadingState();\n    this.abortController?.abort();\n\n    if (this.cachedResults[queryKey]) {\n      this.renderSearchResults(this.cachedResults[queryKey]);\n      return;\n    }\n\n    if (this.catalogIndexUrl) {\n      try {\n        const catalogProducts = await this.getCatalogProducts();\n        if (this.getQuery() !== searchTerm || !this.isConnected) return;\n        this.renderCatalogResults(this.rankCatalogMatches(catalogProducts, searchTerm), searchTerm);\n      } catch (error) {\n        if (this.getQuery() !== searchTerm || !this.isConnected) return;\n        this.showError('Search catalogue could not load. Please try again.');\n      }\n      return;\n    }\n\n    this.abortController = new AbortController();\n    const searchableFields = 'title,product_type,variants.title,vendor,tag,body';\n    fetch(`${routes.predictive_search_url}?q=${encodeURIComponent(searchTerm)}&${encodeURIComponent('resources[type]')}=product,query&${encodeURIComponent('resources[limit]')}=6&${encodeURIComponent('resources[options][fields]')}=${encodeURIComponent(searchableFields)}&section_id=predictive-search`, {\n      signal: this.abortController.signal,\n    })\n      .then((response) => {\n        if (!response.ok) {\n          var error = new Error(response.status);\n          this.close();\n          throw error;\n        }\n\n        return response.text();\n      })\n      .then((text) => {\n        const responseSection = new DOMParser().parseFromString(text, 'text/html').querySelector('#shopify-section-predictive-search');\n        if (!responseSection) throw new Error('Predictive search response is missing its section');\n        const resultsMarkup = responseSection.innerHTML;\n        this.cachedResults[queryKey] = resultsMarkup;\n        this.renderSearchResults(resultsMarkup);\n      })\n      .catch((error) => {\n        if (error.name === 'AbortError') return;\n        this.showError();\n      });\n  }\n\n  async getCatalogProducts() {\n    if (this.catalogProducts) return this.catalogProducts;\n    if (this.catalogLoadPromise) return this.catalogLoadPromise;\n\n    this.catalogLoadPromise = (async () => {\n      const products = [];\n      let page = 1;\n      let pages = 1;\n\n      while (page <= pages) {\n        const indexUrl = new URL(this.catalogIndexUrl, window.location.origin);\n        indexUrl.searchParams.set('page', page);\n        const response = await fetch(indexUrl.toString());\n        if (!response.ok) throw new Error(`Catalog index request failed: ${response.status}`);\n\n        const payload = await response.json();\n        if (!Array.isArray(payload.products) || !Number.isInteger(payload.pages) || payload.pages < 1) {\n          throw new Error('Catalog index response is invalid');\n        }\n\n        pages = payload.pages;\n        if (pages > 1000) throw new Error('Catalog index exceeds the supported page bound');\n        products.push(...payload.products);\n        page += 1;\n      }\n\n      this.catalogProducts = products;\n      return products;\n    })();\n\n    try {\n      return await this.catalogLoadPromise;\n    } finally {\n      if (!this.catalogProducts) this.catalogLoadPromise = null;\n    }\n  }\n\n  rankCatalogMatches(products, searchTerm) {\n    const query = this.normalizeSearchText(searchTerm);\n    return products.map((product) => {\n      const searchableDescription = this.getSearchableDescription(product.description);\n      const fields = [\n        ['title', 'Title', this.stripMarkup(product.title).trim()],\n        ['material', 'Material', this.stripMarkup(product.material).trim()],\n        ['material-description', 'Material', this.getMaterialDescription(searchableDescription)],\n        ['description', 'Description', searchableDescription],\n        ['metadata', 'Metadata', this.stripMarkup(product.metadata).trim()],\n      ];\n      for (let rank = 0; rank < fields.length; rank += 1) {\n        const [field, label, fieldValue] = fields[rank];\n        const value = String(fieldValue || '');\n        if (this.findPrefixMatch(value, query) !== -1) return { product, field, label, rank, value };\n      }\n      return null;\n    }).filter(Boolean).sort((left, right) => left.rank - right.rank || left.product.title.localeCompare(right.product.title));\n  }\n\n  getSearchableDescription(value) {\n    const lines = this.stripMarkup(value).split(/\\r?\\n/).map((line) => line.trim()).filter(Boolean);\n    const outfitStart = lines.findIndex((line) => /^(?:to\\s+)?complete\\s+(?:this|the)\\s+outfit\\b/i.test(line));\n    const descriptionLines = outfitStart === -1 ? lines : lines.slice(0, outfitStart);\n    return descriptionLines.filter((line) => !/^ships?\\s+in\\b/i.test(line)).join(' ');\n  }\n\n  getMaterialDescription(description) {\n    return this.stripMarkup(description)\n      .split(/\\n|(?<=[.!?])\\s+/)\n      .filter((line) => /\\b(wool|cotton|silk|denim|linen|leather|cashmere|care|clean|composition)\\b/i.test(line))\n      .join(' ');\n  }\n\n  stripMarkup(value) {\n    const template = document.createElement('template');\n    template.innerHTML = String(value ?? '');\n    return template.content.textContent || '';\n  }\n\n  normalizeSearchText(value) {\n    return String(value).normalize('NFD').replace(/[\\u0300-\\u036f]/g, '').toLocaleLowerCase();\n  }\n\n  findPrefixMatch(value, normalizedQuery) {\n    if (!normalizedQuery) return -1;\n    const normalizedValue = this.normalizeSearchText(value);\n    const matcher = new RegExp(`(^|[^\\\\p{L}\\\\p{N}])(${normalizedQuery.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&')})`, 'u');\n    const match = matcher.exec(normalizedValue);\n    return match ? match.index + match[1].length : -1;\n  }\n\n  renderCatalogResults(matches, searchTerm) {\n    this.predictiveSearchResults.replaceChildren();\n    const resultList = document.createElement('ul');\n    resultList.className = 'predictive-search__results-list list-unstyled';\n    resultList.setAttribute('role', 'listbox');\n    const safeMatches = matches.map((match) => ({ ...match, productUrl: this.getSafeProductUrl(match.product.url) }))\n      .filter(({ productUrl }) => productUrl);\n    const visibleMatches = safeMatches.slice(0, this.maxResultsInSidebar);\n\n    if (!visibleMatches.length) {\n      const noResults = document.createElement('p');\n      noResults.dataset.predictiveSearchNoResults = '';\n      noResults.textContent = `No products found for \u201C${searchTerm}\u201D.`;\n      this.predictiveSearchResults.append(noResults);\n    } else {\n      visibleMatches.forEach(({ product, field, value, productUrl }) => {\n        const item = document.createElement('li');\n        item.className = 'predictive-search__list-item';\n        item.dataset.predictiveSearchOption = '';\n        item.setAttribute('role', 'option');\n        item.setAttribute('aria-selected', 'false');\n        const link = document.createElement('a');\n        link.href = productUrl;\n        link.className = 'predictive-search__item predictive-search__item--link link--text';\n        link.tabIndex = -1;\n        if (product.image) {\n          const image = document.createElement('img');\n          image.className = 'predictive-search__image w-100';\n          image.src = product.image;\n          image.alt = product.imageAlt || product.title;\n          image.width = 60;\n          image.height = 72;\n          image.loading = 'eager';\n          image.decoding = 'async';\n          link.append(image);\n        }\n        const content = document.createElement('div');\n        content.className = 'predictive-search__item-content';\n        const title = document.createElement('h3');\n        title.className = 'predictive-search__item-heading product-card__name';\n        const productTitle = this.stripMarkup(product.title).trim();\n        if (field === 'title') this.appendHighlightedText(title, productTitle, searchTerm);\n        else title.textContent = productTitle;\n        content.append(title);\n        const productPrice = this.stripMarkup(product.price).trim();\n        if (productPrice) {\n          const price = document.createElement('p');\n          price.className = 'price-item price-item--regular';\n          price.textContent = productPrice;\n          content.append(price);\n        }\n        link.append(content);\n        item.append(link);\n        resultList.append(item);\n      });\n      this.predictiveSearchResults.append(resultList);\n      if (safeMatches.length > visibleMatches.length) {\n        const showAllLink = document.createElement('a');\n        showAllLink.className = 'ta-search-drawer__show-all';\n        showAllLink.href = this.getSearchResultsUrl(searchTerm);\n        showAllLink.textContent = `SHOW ALL RESULTS (${safeMatches.length})`;\n        this.predictiveSearchResults.append(showAllLink);\n      }\n    }\n\n    const count = document.createElement('span');\n    count.dataset.predictiveSearchLiveRegionCountValue = '';\n    count.className = 'visually-hidden';\n    count.textContent = safeMatches.length\n      ? (safeMatches.length > visibleMatches.length\n        ? `${visibleMatches.length} of ${safeMatches.length} product results shown.`\n        : `${safeMatches.length} product results found.`)\n      : 'No product results found.';\n    this.predictiveSearchResults.append(count);\n    this.finishRenderingResults();\n  }\n\n  getSearchResultsUrl(searchTerm) {\n    const formAction = this.querySelector('form.search')?.action || '/search';\n    const url = new URL(formAction, window.location.origin);\n    url.searchParams.set('q', searchTerm);\n    url.searchParams.set('type', 'product');\n    url.searchParams.set('options[prefix]', 'last');\n    return url.href;\n  }\n\n  getSafeProductUrl(value) {\n    try {\n      const url = new URL(value, window.location.origin);\n      if (url.origin !== window.location.origin || !url.pathname.startsWith('/products/')) return null;\n      return url.href;\n    } catch {\n      return null;\n    }\n  }\n\n  appendHighlightedText(target, value, searchTerm, maximumLength = 0) {\n    const text = this.stripMarkup(value);\n    const matchIndex = this.findPrefixMatch(text, this.normalizeSearchText(searchTerm));\n    if (matchIndex === -1) {\n      target.append(text);\n      return;\n    }\n    const start = maximumLength ? Math.max(0, matchIndex - Math.floor(maximumLength / 3)) : 0;\n    const end = maximumLength ? Math.min(text.length, start + maximumLength) : text.length;\n    if (start) target.append('\u2026');\n    const localMatchIndex = matchIndex - start;\n    const matchEnd = Math.min(end, localMatchIndex + searchTerm.length);\n    target.append(text.slice(start, start + localMatchIndex));\n    const emphasis = document.createElement('strong');\n    emphasis.className = 'predictive-search__match-highlight';\n    emphasis.textContent = text.slice(start + localMatchIndex, start + matchEnd);\n    target.append(emphasis, text.slice(start + matchEnd, end));\n    if (end < text.length) target.append('\u2026');\n  }\n\n  setLiveRegionLoadingState() {\n    this.statusElement = this.statusElement || this.querySelector('.predictive-search-status');\n    this.loadingText = this.loadingText || this.getAttribute('data-loading-text');\n\n    this.setLiveRegionText(this.loadingText);\n    this.setAttribute('loading', true);\n  }\n\n  setLiveRegionText(statusText) {\n    this.statusElement.setAttribute('aria-hidden', 'false');\n    this.statusElement.textContent = statusText;\n\n    setTimeout(() => {\n      this.statusElement.setAttribute('aria-hidden', 'true');\n    }, 1000);\n  }\n\n  renderSearchResults(resultsMarkup) {\n    this.predictiveSearchResults.innerHTML = resultsMarkup;\n    this.finishRenderingResults();\n  }\n\n  finishRenderingResults() {\n    this.predictiveSearchResults.querySelectorAll('[data-predictive-search-option]').forEach((option, index) => {\n      option.id = `PredictiveSearchOption-${this.instanceId}-${index + 1}`;\n    });\n    this.setAttribute('results', true);\n    this.hideError();\n\n    this.setLiveRegionResults();\n    this.open();\n  }\n\n  setLiveRegionResults() {\n    this.removeAttribute('loading');\n    this.setLiveRegionText(this.querySelector('[data-predictive-search-live-region-count-value]').textContent);\n  }\n\n  getResultsMaxHeight() {\n    this.resultsMaxHeight = window.innerHeight - document.querySelector('.section-header').getBoundingClientRect().bottom;\n    return this.resultsMaxHeight;\n  }\n\n  open() {\n    this.predictiveSearchResults.style.maxHeight = this.resultsMaxHeight || `${this.getResultsMaxHeight()}px`;\n    this.setAttribute('open', true);\n    this.input.setAttribute('aria-expanded', true);\n    this.isOpen = true;\n  }\n\n  showError(message) {\n    this.removeAttribute('loading');\n    this.removeAttribute('open');\n    this.input.setAttribute('aria-expanded', false);\n    if (this.errorElement) {\n      if (message) this.errorElement.textContent = message;\n      this.errorElement.hidden = false;\n    }\n    this.setLiveRegionText(this.errorElement?.textContent.trim() || 'Search is temporarily unavailable.');\n    this.isOpen = false;\n  }\n\n  hideError() {\n    if (this.errorElement) this.errorElement.hidden = true;\n  }\n\n  close(clearSearchTerm = false) {\n    this.abortController?.abort();\n    this.abortController = null;\n    if (clearSearchTerm) {\n      this.input.value = '';\n      this.removeAttribute('results');\n      this.hideError();\n    }\n\n    const selected = this.querySelector('[aria-selected=\"true\"]');\n    \n\n    if (selected) selected.setAttribute('aria-selected', false);\n\n    this.input.setAttribute('aria-activedescendant', '');\n    this.removeAttribute('open');\n    this.input.setAttribute('aria-expanded', false);\n    this.resultsMaxHeight = false\n    this.predictiveSearchResults.removeAttribute('style');\n\n    this.isOpen = false;\n  }\n}\n\ncustomElements.define('predictive-search', PredictiveSearch);\n"],
  "mappings": "AACA,MAAM,yBAAyB,WAAY,CACzC,aAAc,CACZ,MAAM,EACN,KAAK,cAAgB,CAAC,EACtB,KAAK,MAAQ,KAAK,cAAc,sBAAsB,EACtD,KAAK,wBAA0B,KAAK,cAAc,0BAA0B,EAC5E,KAAK,aAAe,KAAK,cAAc,gCAAgC,EACvE,KAAK,gBAAkB,KAAK,QAAQ,gBACpC,MAAM,uBAAyB,OAAO,SAAS,KAAK,QAAQ,oBAAqB,EAAE,EACnF,KAAK,oBAAsB,OAAO,SAAS,sBAAsB,EAC7D,KAAK,IAAI,GAAI,KAAK,IAAI,EAAG,sBAAsB,CAAC,EAChD,EACJ,KAAK,gBAAkB,KACvB,KAAK,mBAAqB,KAC1B,KAAK,YAAc,KAAK,QAAQ,eAAe,GAAG,IAAM,KAAK,IAAM,kBAAkB,QAAQ,kBAAmB,EAAE,EAClH,KAAK,OAAS,GAEd,KAAK,oBAAoB,CAC3B,CAEA,qBAAsB,CACP,KAAK,cAAc,aAAa,EACxC,iBAAiB,SAAU,KAAK,aAAa,KAAK,IAAI,CAAC,EAE5D,KAAK,MAAM,iBAAiB,QAAS,SAAU,OAAU,CACvD,KAAK,SAAS,KAAK,CACrB,EAAG,GAAG,EAAE,KAAK,IAAI,CAAC,EAClB,KAAK,MA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