{"version":3,"sources":["components/category/sub-list/_std/category-sub-list.js"],"names":["CategorySubList","Component","constructor","el","button","$find","buttonLess","dataset","trim","buttonMore","textContent","addEventListener","e","toggleCollapse","preventDefault","innerText","$el","classList","toggle"],"mappings":"aAAA,KAAMA,CAAAA,eAAN,QAA8BC,CAAAA,SAAU,CACvCC,WAAW,CAACC,EAAD,CAAK,CACf,MAAMA,EAAN,EACA,KAAKC,MAAL,CAAc,KAAKC,KAAL,CAAW,eAAX,CAAd,CACA,GAAG,KAAKD,MAAR,CAAgB,CACf,KAAKE,UAAL,CAAkB,KAAKF,MAAL,CAAYG,OAAZ,CAAoBH,MAApB,CAA2BI,IAA3B,EAAlB,CACA,KAAKC,UAAL,CAAkB,KAAKL,MAAL,CAAYM,WAAZ,CAAwBF,IAAxB,EAAlB,CACA,KAAKJ,MAAL,CAAYO,gBAAZ,CAA6B,OAA7B,CAAsCC,CAAC,EAAI,KAAKC,cAAL,CAAoBD,CAApB,CAA3C,CACA,CACD,CAEDC,cAAc,CAACD,CAAD,CAAI,CACjBA,CAAC,CAACE,cAAF,GACA,KAAKV,MAAL,CAAYW,SAAZ,CAAwB,KAAKX,MAAL,CAAYM,WAAZ,CAAwBF,IAAxB,KAAmC,KAAKF,UAAxC,CAAqD,KAAKG,UAA1D,CAAuE,KAAKH,UAApG,CACA,KAAKU,GAAL,CAASC,SAAT,CAAmBC,MAAnB,CAA0B,WAA1B,CACA,CAfsC","sourcesContent":["class CategorySubList extends Component {\r\n\tconstructor(el) {\r\n\t\tsuper(el);\r\n\t\tthis.button = this.$find('[data-button]');\r\n\t\tif(this.button) {\r\n\t\t\tthis.buttonLess = this.button.dataset.button.trim();\r\n\t\t\tthis.buttonMore = this.button.textContent.trim();\r\n\t\t\tthis.button.addEventListener('click', e => this.toggleCollapse(e));\r\n\t\t}\r\n\t}\r\n\r\n\ttoggleCollapse(e) {\r\n\t\te.preventDefault();\r\n\t\tthis.button.innerText = this.button.textContent.trim() === this.buttonLess ? this.buttonMore : this.buttonLess;\r\n\t\tthis.$el.classList.toggle('is-opened');\r\n\t}\r\n}"],"file":"category-sub-list.min.js"}