{
  "version": 3,
  "sources": ["/cdn/shop/t/19/assets/component-product-variants.js?section_id=pickup-availability"],
  "sourcesContent": ["(function (global, factory) {\n    typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n    typeof define === 'function' && define.amd ? define(factory) :\n    (global = typeof globalThis !== 'undefined' ? globalThis : global || self, (global.themegoal = global.themegoal || {}, global.themegoal.components_business = global.themegoal.components_business || {}, global.themegoal.components_business.product_variants = factory()));\n  })(this, (function () { 'use strict';\n\n  class ProductImageModal {\n    constructor(element) {\n      this.element = element;\n      this.delegateElement = new themegoal.libs.Delegate(this.element);\n  \n      this.quiviewModalElement = document.getElementById('ProductMediaZoomModal');\n      this.quiviewModal = null;\n  \n      this.activeMedia = null;\n  \n      this._bindEventsListeners();\n    }\n    \n    destroy() {\n      this.delegateElement.off('click');\n    }\n    \n    _bindEventsListeners() {\n      this.delegateElement.on('click', '.MediaModalOpener', this._openMediaModal.bind(this), true);\n      this.quiviewModalElement.addEventListener('hidden.tg.Modal', function (event) {\n        window.pauseAllMedia();\n      });\n      let _this = this;\n      this.quiviewModalElement.addEventListener('shown.tg.Modal', function (event) {\n        window.pauseAllMedia();\n        _this.activeMedia.scrollIntoView({ behavior: 'smooth', block:\"start\"});\n      });\n    }\n    \n    _openMediaModal(event, target) {\n      let imageBreakpoint = themegoal.helpers.Responsive.getCurrentBreakpoint();\n  \n      if ( imageBreakpoint == \"small\" ){\n        event.stopImmediatePropagation();\n        this._setActiveMeida(target);\n        this.quiviewModal = new themegoal.components.Modal(this.quiviewModalElement);\n        this.quiviewModal.show();  \n      }else{\n        if (target.classList.contains(\"MediaModalOpener--image\")){\n          this._setActiveMeida(target);\n          this.quiviewModal = new themegoal.components.Modal(this.quiviewModalElement);\n          this.quiviewModal.show();\n        }\n      }\n    }\n    \n    _setActiveMeida(target){\n      let openers = this.quiviewModalElement.querySelectorAll(\".Product__MediaWrapper\");\n      let currentMediaId = target.getAttribute(\"data-media-id\");\n  \n      if(openers){\n        openers.forEach(function (item) {\n          item.classList.remove(\"Active\");\n        });\n  \n        this.activeMedia = this.quiviewModalElement.querySelector('[data-media-id=\"'+ currentMediaId +'\"]');\n        if(this.activeMedia){\n          this.activeMedia.classList.add(\"Active\");\n        }\n      }\n    }\n  }\n  \n  class ProductPickupAvailability {\n    constructor(element) {\n      this.element = element;\n    }\n  \n    updateWithVariant(variant) {\n      if (!this.element) {\n        return; \n      }\n\n      if (!variant) {\n        this.element.textContent = '';\n        return;\n      }\n\n      this._renderAvailabilitySection(variant['id']);\n    }\n  \n    _renderAvailabilitySection(id) {\n      let _this = this;\n  \n      this.element.innerHTML = '';\n      let drawerColorScheme = this.element.getAttribute(\"data-drawer-color-scheme\");\n  \n      var availabilityModal = document.getElementById('PickupAvailabilityModal-' + id);\n      if (availabilityModal) {\n        availabilityModal.remove();\n      }\n  \n      return fetch(window.routes.rootUrlWithoutSlash + '/variants/' + id + '?section_id=pickup-availability').then(function (response) {\n        return response.text().then(function (content) {\n          _this.element.innerHTML = content;\n          _this.element.innerHTML = _this.element.firstElementChild.innerHTML;\n  \n          let availabilityModal = document.getElementById('PickupAvailabilityModal-' + id);\n  \n          if(availabilityModal){\n            availabilityModal.classList.add(drawerColorScheme);\n            document.body.appendChild(availabilityModal);\n  \n            new themegoal.components.Drawer(availabilityModal);\n          }\n        });\n      });\n    }\n  }\n  class ProductVariants {\n    constructor(container, options) {\n      let _this = this;\n  \n      this.element = container;\n      this.delegateElement = new themegoal.libs.Delegate(this.element);\n      this.options = options;\n  \n      let jsonData = JSON.parse(this.element.querySelector('[data-product-json]').innerHTML);\n  \n      this.productData = jsonData['product'];\n      this.sectionId = jsonData['section_id'];\n  \n      if(!this.productData['id']) return ;\n\n      this.currentVariant = this.productData['selected_or_first_available_variant'];\n      this.variantsInventories = jsonData['inventories'] || {};\n  \n      this.pickupAvailability = new ProductPickupAvailability(this.element.querySelector('.Product__StoreAvailabilityContainer'));\n      this.pickupAvailability.updateWithVariant(this.currentVariant);\n  \n      this._bindEventsListeners();\n  \n    }\n  \n    destroy() {\n      this.delegateElement.off('click');\n    }\n  \n    _bindEventsListeners() {\n      this.delegateElement.on('click', '[data-action=\"add-to-cart\"]', this._addToCart.bind(this));\n      this.delegateElement.on('click', '[data-action=\"decrease-quantity\"]', this._decreaseQuantity.bind(this));\n      this.delegateElement.on('click', '[data-action=\"increase-quantity\"]', this._increaseQuantity.bind(this));\n      this.delegateElement.on('change', '.ProductForm__QuantityNum', this._validateQuantity.bind(this));\n  \n      this.delegateElement.on('change', '.ProductForm__Option [type=\"radio\"]', this._onOptionChanged.bind(this));\n      this.delegateElement.on('keydown', '.ProductForm__Option [type=\"radio\"]~label', this._labeEnerKeyEvent.bind(this));\n      this.delegateElement.on('change', '.ProductForm__Option .Form__Select', this._onOptionChanged.bind(this));\n  \n      this.delegateElement.on('change', '.ProductForm__CustomProperty [type=\"radio\"]', this._onChangeCustomPropertyRadio.bind(this));\n      this.delegateElement.on('change', '.ProductForm__CustomProperty .Form__Select', this._onChangeCustomPropertySelect.bind(this));\n      this.delegateElement.on('change', '.ProductForm__CustomProperty .Form__Input', this._onChangeCustomPropertyText.bind(this));\n    }\n  \n    _labeEnerKeyEvent(event, target){\n      if(event.keyCode == 13) {\n        let inputId = target.getAttribute(\"for\");\n        let inputElement = document.getElementById(inputId);\n        inputElement.click();\n      }\n    }\n\n    _onOptionChanged(event, target) {\n      const targetUrl = this.element.dataset.productUrl;\n\n      const inputElement = target.tagName === 'SELECT' ? target.selectedOptions[0] : target;\n\n      if(inputElement.dataset.productUrl && targetUrl != inputElement.dataset.productUrl){\n        if(this.options[\"productForm\"] == \"main-product\" || this.options[\"productForm\"] == \"featured-product\"){\n          this._goToSubProductPage(inputElement.dataset.productUrl);\n        }else{ //'product-quickview'\n          this.element.setAttribute(\"data-product-url\", inputElement.dataset.productUrl);\n          this._reRenderFullSection(inputElement.dataset.productUrl, this.options[\"productForm\"]);\n        }\n      }else{\n        if(inputElement.dataset.variantId){\n          this._reRenderBlocks(inputElement.dataset.variantId);\n        }else{\n          //variant does not exist, not sold out\n          let selectedOption = target.closest('.ProductForm__Option');\n          if(selectedOption){\n            let selectedValue = selectedOption.querySelector('.ProductForm__SelectedValue');\n            if (selectedValue) {\n              selectedValue.innerHTML = target.value;\n            }\n          }\n          this._updateAddToCartButton(null);\n          this._updateProductInfo(null,null,null);\n        }\n       \n      }\n    }\n\n    _reRenderBlocks(newVariantId){\n      let _this = this;\n\n      fetch(_this.element.dataset.productUrl + '?variant=' + newVariantId + '&section_id='+_this.sectionId).then(function (response) {\n        return response.text().then(function (content) {\n          const responseHtml = new DOMParser().parseFromString(content, 'text/html');\n\n          let previousVariant = _this.currentVariant;\n\n          let jsonData = JSON.parse(responseHtml.querySelector('[data-product-json]').innerHTML);\n          _this.productData = jsonData['product'];\n          if(!_this.productData['id']) return ;\n\n          _this.currentVariant = _this.productData['selected_or_first_available_variant'];\n          _this.variantsInventories = jsonData['inventories'] || {};\n\n          _this._onVariantChanged(previousVariant, _this.currentVariant, responseHtml);\n\n          if (_this.currentVariant) {\n            if (_this.options['enableHistoryState']) {\n              _this._updateHistoryState(_this.currentVariant);\n            }\n          }\n\n        })\n      });\n    }\n\n    _onVariantChanged(previousVariant, newVariant, responseHtml) {\n      this._updateProductInfo(previousVariant, newVariant, responseHtml);\n      this._updateAddToCartButton(newVariant);\n      this.pickupAvailability.updateWithVariant(newVariant);\n\n      this.element.dispatchEvent(new CustomEvent('variant:changed', {\n        bubbles: true,\n        detail: { variant: newVariant, previousVariant: previousVariant }\n      }));\n    }\n  \n    _updateProductInfo(previousVariant, newVariant,responseHtml){\n      let _this = this;\n  \n      let destinationPriceList = _this.element.querySelector(\".Product__PriceList\");\n      let destinationSKU = _this.element.querySelector(\".Product__Sku\");\n      let destinationUnitPrice = _this.element.querySelector(\".Product__UnitPrice\");\n      let destinationInventory = _this.element.querySelector('.ProductForm__Inventory');\n      let destinationPayInstallments = _this.element.querySelector(\".Product__PayInstallments\");\n      let destinationProductFormOptions = _this.element.querySelector(\".Product__Block--variantPicker\");\n      let destinationRefreshVariantChanges = _this.element.querySelectorAll(\".Product__Block--refreshVariantChange\");\n  \n      if (!newVariant){//the new variant does not exist, not available\n        if(destinationPriceList) destinationPriceList.innerHTML = \"\";\n        if(destinationSKU) destinationSKU.innerHTML = \"\";\n        if(destinationUnitPrice) destinationUnitPrice.innerHTML = \"\";\n        if(destinationInventory) destinationInventory.innerHTML = \"\";\n        if(destinationPayInstallments) destinationPayInstallments.innerHTML = \"\";\n        // if(destinationProductFormOptions) destinationProductFormOptions.innerHTML = \"\";// The option needs to be shown even if the new variant does not exist. when Total number of variants ! = option 1 * option 2 * option 3\n        return;\n      }  \n  \n     \n      if(responseHtml){\n          const sourcePriceList = responseHtml.querySelector(\".Product__PriceList\");\n          if (sourcePriceList && destinationPriceList) destinationPriceList.innerHTML = sourcePriceList.innerHTML;\n  \n          if (_this.options['showSku']) {\n            const sourceSKU = responseHtml.querySelector(\".Product__Sku\");\n            if (sourceSKU && destinationSKU) {\n              destinationSKU.innerHTML = sourceSKU.innerHTML;\n              destinationSKU.style.display = sourceSKU.style.display;\n            };\n          }\n    \n          const sourceUnitPrice = responseHtml.querySelector(\".Product__UnitPrice\");\n          if (sourceUnitPrice && destinationUnitPrice) {\n            destinationUnitPrice.innerHTML = sourceUnitPrice.innerHTML;\n            destinationUnitPrice.style.display = sourceUnitPrice.style.display;\n          };\n  \n          if (_this.options['showInventoryQuantity']) {\n\n            let variantInventory = newVariant ? _this.variantsInventories : null;\n  \n            if(destinationInventory && variantInventory){\n        \n              if ( null === newVariant['inventory_management'] || variantInventory['inventory_quantity'] <= 0 || _this.options['inventoryQuantityThreshold'] > 0 && variantInventory['inventory_quantity'] > _this.options['inventoryQuantityThreshold']) {\n                destinationInventory.style.display = 'none';\n              } else {\n                const sourceInventory = responseHtml.querySelector(\".ProductForm__Inventory\");\n                if (sourceInventory) {\n                  destinationInventory.innerHTML = sourceInventory.innerHTML;\n                  destinationInventory.style.display = '';\n                }\n              }\n            }\n          }\n  \n          const sourcePayInstallments = responseHtml.querySelector(\".Product__PayInstallments\");\n          if (sourcePayInstallments && destinationPayInstallments) destinationPayInstallments.innerHTML = sourcePayInstallments.innerHTML;\n\n          const sourceProductFormOptions = responseHtml.querySelector(\".Product__Block--variantPicker\");\n          if (sourceProductFormOptions && destinationProductFormOptions) {\n            destinationProductFormOptions.innerHTML = sourceProductFormOptions.innerHTML;\n          }\n\n          if(this.options[\"enableMediaGrouping\"]&&previousVariant.options[0]!=newVariant.options[0]){\n            let destinationGallery = _this.element.querySelector(\".ProductGallery\");\n            const sourceGallery = responseHtml.querySelector(\".ProductGallery\");\n            if (sourceGallery && destinationGallery) {\n              destinationGallery.innerHTML = sourceGallery.innerHTML;\n            }\n\n            let destinationMediaIdIndexs = _this.element.querySelector('[data-product-media-id-index-json]');\n            const sourceMediaIdIndexs = responseHtml.querySelector('[data-product-media-id-index-json]');\n            if(destinationMediaIdIndexs && sourceMediaIdIndexs){\n              destinationMediaIdIndexs.innerHTML = sourceMediaIdIndexs.innerHTML;\n            }\n\n            let destinationGalleryZoomModal = document.querySelector(\"#ProductMediaZoomModal .ProductGallery--zoomModal\");\n            const sourceGalleryZoomModal = responseHtml.querySelector(\"#ProductMediaZoomModal .ProductGallery--zoomModal\");\n            if (sourceGalleryZoomModal && destinationGalleryZoomModal) {\n              destinationGalleryZoomModal.innerHTML = sourceGalleryZoomModal.innerHTML;\n            }\n\n            if(this.options['enableImageZoom']&&this.options['imageZoomLayout'] == 'carousel'){\n              let destinationGalleryZoomPhotoSwipe = document.querySelector(\"#MediaLightbox-\"+this.sectionId);\n              const sourceGalleryZoomPhotoSwipe = responseHtml.querySelector(\"#MediaLightbox-\"+this.sectionId);\n              if (destinationGalleryZoomPhotoSwipe && sourceGalleryZoomPhotoSwipe) {\n                let pElem = destinationGalleryZoomPhotoSwipe.parentNode;\n                let newScript = document.createElement('script');\n                newScript.type = 'module';\n                newScript.id = \"MediaLightbox-\"+this.sectionId;\n                newScript.innerHTML = sourceGalleryZoomPhotoSwipe.innerHTML;\n\n                pElem.removeChild(destinationGalleryZoomPhotoSwipe);\n                pElem.appendChild(newScript);\n              }\n            }\n          }\n\n          const sourceRefreshVariantChanges = responseHtml.querySelectorAll(\".Product__Block--refreshVariantChange\");\n          if (sourceRefreshVariantChanges && destinationRefreshVariantChanges) {\n            sourceRefreshVariantChanges.forEach(sItem => {\n              destinationRefreshVariantChanges.forEach(dItem => {\n                if(sItem.getAttribute(\"id\") == dItem.getAttribute(\"id\")){\n                  dItem.innerHTML = sItem.innerHTML;\n                }\n              });\n            });\n          }\n  \n        }\n  \n    }\n  \n    _updateAddToCartButton(newVariant) {\n      let addToCartButton = this.element.querySelector('.ProductForm__AddToCart'),\n        shopifyPaymentButton = this.element.querySelector('.shopify-payment-button'),\n        newButton = document.createElement('button');\n  \n      if(addToCartButton){\n        newButton.setAttribute('type', 'submit');\n        newButton.className = 'ProductForm__AddToCart Button Button--full';\n  \n        if (!newVariant) {\n          newButton.setAttribute('disabled', 'disabled');\n          newButton.removeAttribute('data-action');\n          newButton.classList.add('Button--outline');\n          newButton.innerHTML = window.languages.productFormUnavailable;\n        } else {\n          if (newVariant['available']) {\n            newButton.removeAttribute('disabled');\n            newButton.classList.add(this.options['showPaymentButton'] ? 'Button--outline' : 'Button--primary');\n            newButton.setAttribute('data-action', 'add-to-cart');\n            \n            newButton.innerHTML = '<span>' + window.languages.productFormAddToCart + '</span>';\n            \n          } else {\n            newButton.setAttribute('disabled', 'disabled');\n            newButton.classList.add('Button--outline');\n            newButton.removeAttribute('data-action');\n            newButton.innerHTML = window.languages.productFormSoldOut;\n          }\n        }\n  \n        if (this.options['showPaymentButton'] && shopifyPaymentButton) {\n          if (!newVariant || !newVariant['available']) {\n            shopifyPaymentButton.style.display = 'none';\n          } else {\n            shopifyPaymentButton.style.display = 'block';\n          }\n        }\n  \n        addToCartButton.parentNode.replaceChild(newButton, addToCartButton);\n      }\n    }\n  \n    _reRenderFullSection(url, productForm){\n      let _this = this;\n      fetch(window.location.protocol + '//' + window.location.host + '' + url + '?section_id='+this.sectionId).then(function (response) {\n        return response.text().then(function (content) {\n          const responseHtml = new DOMParser().parseFromString(content, 'text/html');\n\n          //quickview\n          if('product-quickview' == productForm){\n            _this.element.querySelector(\"#ProductQuickviewModal\").innerHTML = responseHtml.querySelector(\"#ProductQuickviewModal\").innerHTML;\n            // _this.pickupAvailability.updateWithVariant(newVariant);//The quick view section does not show pickup availability because the drawer is located on the back of the modal\n          }\n  \n        });\n      });\n    }\n\n    _goToSubProductPage(url){\n      location.href = window.location.protocol + '//' + window.location.host + '' + url;\n    }\n  \n    _updateHistoryState(variant) {\n      if (!history.replaceState) {\n        return;\n      }\n  \n      let newUrl = window.location.protocol + '//' + window.location.host + window.location.pathname + '?variant=' + variant.id;\n  \n      window.history.replaceState({ path: newUrl }, '', newUrl);\n    }\n  \n    _addToCart(event) {\n      let _this = this;\n  \n      event.preventDefault(); \n  \n      let formElement = this.element.querySelector('form.ProductForm');\n  \n      if (!formElement.checkValidity()) {\n        if(!this.element.classList.contains(\".ProductFormValidated\")){\n          this.element.classList.add('ProductFormValidated');\n        }\n        return;\n      }else{\n        this.element.classList.remove('ProductFormValidated')\n      }\n  \n      let addToCartButton = this.element.querySelector('.ProductForm__AddToCart');\n  \n      addToCartButton.setAttribute('disabled', 'disabled');\n      document.dispatchEvent(new CustomEvent('theme:loading:start'));\n  \n      fetch(window.routes.cartAddUrl + '.js', {\n        body: JSON.stringify(themegoal.components.Form.serialize(formElement)),\n        credentials: 'same-origin',\n        method: 'POST',\n        headers: {\n          'Content-Type': 'application/json',\n          'X-Requested-With': 'XMLHttpRequest' \n        }\n      }).then(function (response) {\n        document.dispatchEvent(new CustomEvent('theme:loading:end'));\n  \n        if (response.ok) {\n          if (window.theme.cartType == \"page\") {\n            window.location.href = window.routes.cartUrl;\n            // return; \n          }else{\n            addToCartButton.removeAttribute('disabled');\n            response.json().then(function (data) {\n              _this.element.dispatchEvent(new CustomEvent('product:added', {\n                bubbles: true,\n                detail: {\n                  variant: _this.currentVariant,\n                  quantity: parseInt(_this.element.querySelector('[name=\"quantity\"]').value),\n                  cartItemKey: data.key\n                }\n              }));\n            });\n          }\n        } else {\n          response.json().then(function (content) {\n            var errorMessageElement = document.createElement('div');\n            errorMessageElement.className = 'Alert Alert--danger';\n            if (typeof content['description'] === 'object') {\n              errorMessageElement.innerHTML = content['message'];\n            }else{\n              errorMessageElement.innerHTML = content['description'];\n            }\n            addToCartButton.removeAttribute('disabled');\n            addToCartButton.insertAdjacentElement('beforeBegin', errorMessageElement);\n            setTimeout(function () {\n              errorMessageElement.remove();\n            }, 8000);\n          });\n        }\n      });\n  \n      event.preventDefault();\n    }\n  \n    _decreaseQuantity(event, target) {\n      let qty = Math.max(parseInt(this.element.querySelector(\".ProductForm__QuantityNum\").value) - 1, 1);\n      this.element.querySelector(\".ProductForm__QuantityNum\").value = qty;\n      this.element.querySelector('[name=\"quantity\"]').value = qty;\n    }\n  \n    _increaseQuantity(event, target) {\n      let qty = parseInt(this.element.querySelector(\".ProductForm__QuantityNum\").value) + 1;\n      this.element.querySelector(\".ProductForm__QuantityNum\").value = qty;\n      this.element.querySelector('[name=\"quantity\"]').value = qty;\n    }\n  \n    _validateQuantity(event, target) {\n      target.value = Math.max(parseInt(target.value) || 1, 1);\n    }\n\n    _onChangeCustomPropertyRadio(event, target){\n      let selectedValue = target.closest('.ProductForm__CustomProperty').querySelector('.ProductForm__SelectedValue');\n  \n      let invalidFeedbackElment = target.closest('.ProductForm__CustomProperty').querySelector('.InvalidFeedback');\n  \n      if (selectedValue) {\n        selectedValue.innerHTML = target.value;\n      }\n  \n      if (invalidFeedbackElment) {\n        invalidFeedbackElment.classList.add(\"Valided\");\n      }\n    }\n  \n    _onChangeCustomPropertySelect(event, target){\n      let invalidFeedbackElment = target.closest('.ProductForm__CustomProperty').querySelector('.InvalidFeedback');\n      if (invalidFeedbackElment) {\n        if(target.value != \"\"){\n          invalidFeedbackElment.classList.add(\"Valided\");\n        }else{\n          invalidFeedbackElment.classList.remove(\"Valided\");\n        }\n      }\n    }\n  \n    _onChangeCustomPropertyText(event, target){\n      let invalidFeedbackElment = target.closest('.ProductForm__CustomProperty').querySelector('.InvalidFeedback');\n  \n      if (invalidFeedbackElment) {\n        if(target.value != \"\"){\n          invalidFeedbackElment.classList.add(\"Valided\");\n        }else{\n          invalidFeedbackElment.classList.remove(\"Valided\");\n        }\n      }\n    }\n    \n  }\n\n  const components_business = {\n      ProductImageModal,\n      ProductVariants\n  };\n\n  return components_business;\n\n}));\n  "],
  "mappings": "CAAC,SAAU,OAAQ,QAAS,CACxB,OAAO,SAAY,UAAY,OAAO,OAAW,IAAc,OAAO,QAAU,QAAQ,EACxF,OAAO,QAAW,YAAc,OAAO,IAAM,OAAO,OAAO,GAC1D,OAAS,OAAO,WAAe,IAAc,WAAa,QAAU,KAAO,OAAO,UAAY,OAAO,WAAa,CAAC,EAAG,OAAO,UAAU,oBAAsB,OAAO,UAAU,qBAAuB,CAAC,EAAG,OAAO,UAAU,oBAAoB,iBAAmB,QAAQ,EAC5Q,GAAG,MAAO,UAAY,CAAE,aAExB,MAAM,iBAAkB,CACtB,YAAY,QAAS,CACnB,KAAK,QAAU,QACf,KAAK,gBAAkB,IAAI,UAAU,KAAK,SAAS,KAAK,OAAO,EAE/D,KAAK,oBAAsB,SAAS,eAAe,uBAAuB,EAC1E,KAAK,aAAe,KAEpB,KAAK,YAAc,KAEnB,KAAK,qBAAqB,CAC5B,CAEA,SAAU,CACR,KAAK,gBAAgB,IAAI,OAAO,CAClC,CAEA,sBAAuB,CACrB,KAAK,gBAAgB,GAAG,QAAS,oBAAqB,KAAK,gBAAgB,KAAK,IAAI,EAAG,EAAI,EAC3F,KAAK,oBAAoB,iBAAiB,kBAAmB,SAAU,MAAO,CAC5E,OAAO,cAAc,CACvB,CAAC,EACD,IAAI,MAAQ,KACZ,KAAK,oBAAoB,iBAAiB,iBAAkB,SAAU,MAAO,CAC3E,OAAO,cAAc,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