{
  "version": 3,
  "sources": ["/cdn/shop/t/1064/assets/component-toggle.js?auto=format%2Ccompress"],
  "sourcesContent": ["if ( typeof ToggleTab !== 'function' ) {\n\n\tclass ToggleTab extends HTMLElement {\n\n\t\tconstructor(){\n\n\t\t\tsuper();\n\n\t\t\tthis.titleEl = this.querySelector('[data-js-title]');\n\t\t\tthis.contentEl = this.querySelector('[data-js-content]');\n\t\t\tthis.titleEl.innerHTML = `${this.titleEl.innerHTML}${this.hasAttribute('data-togglepack-alternate') ? KROWN.settings.symbols.toggle_pack_alternate : KROWN.settings.symbols.toggle_pack}`;\n\n\t\t\tthis.titleEl.addEventListener('click',this.onClickHandler.bind(this));\n\t\t\tthis.titleEl.addEventListener('keydown', e=>{\n\t\t\t\tif ( e.keyCode == window.KEYCODES.RETURN ) {\n\t\t\t\t\tthis.onClickHandler();\n\t\t\t\t}\n\t\t\t})\n\n\t\t}\n\n\t\tonClickHandler(){\n\t\t\tif ( ! this.classList.contains('opened') ) {\n\t\t\t\tthis.classList.add('opened');\n\t\t\t\tthis.titleEl.setAttribute('aria-expanded', 'true');\n\t\t\t\tthis.slideDown(this.contentEl, 200);\n\t\t\t\tsetTimeout(()=>{\n\t\t\t\t\tthis.contentEl.querySelector('css-slider')?.resetSlider();\n\t\t\t\t}, 200);\n\t\t\t} else {\n\t\t\t\tthis.classList.remove('opened');\n\t\t\t\tthis.titleEl.setAttribute('aria-expanded', 'false');\n\t\t\t\tthis.slideUp(this.contentEl, 200);\n\t\t\t}\n\t\t}\n\n\t\tslideUp(target, duration){\n\t\t\ttarget.style.transitionProperty = 'height, margin, padding';\n\t\t\ttarget.style.transitionDuration = duration + 'ms';\n\t\t\ttarget.style.boxSizing = 'border-box';\n\t\t\ttarget.style.height = target.offsetHeight + 'px';\n\t\t\ttarget.offsetHeight;\n\t\t\ttarget.style.overflow = 'hidden';\n\t\t\ttarget.style.height = 0;\n\t\t\ttarget.style.paddingTop = 0;\n\t\t\ttarget.style.paddingBottom = 0;\n\t\t\ttarget.style.marginTop = 0;\n\t\t\ttarget.style.marginBottom = 0;\n\t\t\tsetTimeout(()=>{\n\t\t\t\ttarget.style.display = 'none';\n\t\t\t\ttarget.style.removeProperty('height');\n\t\t\t\ttarget.style.removeProperty('padding-top');\n\t\t\t\ttarget.style.removeProperty('padding-bottom');\n\t\t\t\ttarget.style.removeProperty('margin-top');\n\t\t\t\ttarget.style.removeProperty('margin-bottom');\n\t\t\t\ttarget.style.removeProperty('overflow');\n\t\t\t\ttarget.style.removeProperty('transition-duration');\n\t\t\t\ttarget.style.removeProperty('transition-property');\n\t\t\t}, duration);\n\t\t}\n\t\tslideDown(target, duration) {\n\t\t\ttarget.style.removeProperty('display');\n\t\t\tvar display = window.getComputedStyle(target).display;\n\n\t\t\tif (display === 'none')\n\t\t\t\tdisplay = 'block';\n\n\t\t\ttarget.style.display = display;\n\t\t\tvar height = target.offsetHeight;\n\t\t\ttarget.style.overflow = 'hidden';\n\t\t\ttarget.style.height = 0;\n\t\t\ttarget.style.paddingTop = 0;\n\t\t\ttarget.style.paddingBottom = 0;\n\t\t\ttarget.style.marginTop = 0;\n\t\t\ttarget.style.marginBottom = 0;\n\t\t\ttarget.offsetHeight;\n\t\t\ttarget.style.boxSizing = 'border-box';\n\t\t\ttarget.style.transitionProperty = \"height, margin, padding\";\n\t\t\ttarget.style.transitionDuration = duration + 'ms';\n\t\t\ttarget.style.height = height + 'px';\n\t\t\ttarget.style.removeProperty('padding-top');\n\t\t\ttarget.style.removeProperty('padding-bottom');\n\t\t\ttarget.style.removeProperty('margin-top');\n\t\t\ttarget.style.removeProperty('margin-bottom');\n\t\t\tsetTimeout(()=>{\n\t\t\t\ttarget.style.removeProperty('height');\n\t\t\t\ttarget.style.removeProperty('overflow');\n\t\t\t\ttarget.style.removeProperty('transition-duration');\n\t\t\t\ttarget.style.removeProperty('transition-property');\n\t\t\t}, duration);\n\t\t}\n\n\t}\n\n  if ( typeof customElements.get('toggle-tab') == 'undefined' ) {\n\t\tcustomElements.define('toggle-tab', ToggleTab);\n\t}\n\n}\n\nif ( typeof ToggleGroup !== 'function' ) {\n\n\tclass ToggleGroup extends HTMLElement {\n\n\t\tconstructor(){\n\n\t\t\tsuper();\n\t\t\tthis.querySelectorAll('toggle-tab').forEach(allToggle=>{\n\t\t\t\tallToggle.querySelector('[data-js-title]').addEventListener('click', ()=>{\n\t\t\t\t\tthis.querySelectorAll('toggle-tab.opened').forEach(openedToggle=>{\n\t\t\t\t\t\tif ( allToggle !== openedToggle ) {\n\t\t\t\t\t\t\topenedToggle.onClickHandler();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t});\n\n\t\t}\n\n\t}\n\t\n  if ( typeof customElements.get('toggle-group') == 'undefined' ) {\n\t\tcustomElements.define('toggle-group', ToggleGroup);\n\t}\n\n}"],
  "mappings": "AAAA,GAAK,OAAO,WAAc,WAAa,CAEtC,MAAMA,mBAAkB,WAAY,CAEnC,aAAa,CAEZ,MAAM,EAEN,KAAK,QAAU,KAAK,cAAc,iBAAiB,EACnD,KAAK,UAAY,KAAK,cAAc,mBAAmB,EACvD,KAAK,QAAQ,UAAY,GAAG,KAAK,QAAQ,SAAS,GAAG,KAAK,aAAa,2BAA2B,EAAI,MAAM,SAAS,QAAQ,sBAAwB,MAAM,SAAS,QAAQ,WAAW,GAEvL,KAAK,QAAQ,iBAAiB,QAAQ,KAAK,eAAe,KAAK,IAAI,CAAC,EACpE,KAAK,QAAQ,iBAAiB,UAAW,GAAG,CACtC,EAAE,SAAW,OAAO,SAAS,QACjC,KAAK,eAAe,CAEtB,CAAC,CAEF,CAEA,gBAAgB,CACR,KAAK,UAAU,SAAS,QAAQ,GAQtC,KAAK,UAAU,OAAO,QAAQ,EAC9B,KAAK,QAAQ,aAAa,gBAAiB,OAAO,EAClD,KAAK,QAAQ,KAAK,UAAW,GAAG,IAThC,KAAK,UAAU,IAAI,QAAQ,EAC3B,KAAK,QAAQ,aAAa,gBAAiB,MAAM,EACjD,KAAK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