{"version":3,"sources":["components/product/list-recommended/_std/product-list-recommended.js"],"names":["ProductListRecommended","Component","constructor","el","collapse","$find","button","buttonLess","dataset","trim","buttonMore","innerText","addEventListener","e","toggleCollapse","preventDefault","classList","toggle"],"mappings":"aAAA,KAAMA,CAAAA,sBAAN,QAAqCC,CAAAA,SAAU,CAC9CC,WAAW,CAACC,EAAD,CAAK,CACf,MAAMA,EAAN,EACA,KAAKC,QAAL,CAAgB,KAAKC,KAAL,CAAW,iBAAX,CAAhB,CACA,KAAKC,MAAL,CAAc,KAAKD,KAAL,CAAW,eAAX,CAAd,CACA,GAAG,KAAKC,MAAR,CAAgB,CACf,KAAKC,UAAL,CAAkB,KAAKD,MAAL,CAAYE,OAAZ,CAAoBF,MAApB,CAA2BG,IAA3B,EAAlB,CACA,KAAKC,UAAL,CAAkB,KAAKJ,MAAL,CAAYK,SAAZ,CAAsBF,IAAtB,EAAlB,CACA,KAAKH,MAAL,CAAYM,gBAAZ,CAA6B,OAA7B,CAAsCC,CAAC,EAAI,KAAKC,cAAL,CAAoBD,CAApB,CAA3C,CACA,CACD,CAEDC,cAAc,CAACD,CAAD,CAAI,CACjBA,CAAC,CAACE,cAAF,GACA,KAAKT,MAAL,CAAYK,SAAZ,CAAwB,KAAKL,MAAL,CAAYK,SAAZ,CAAsBF,IAAtB,KAAiC,KAAKF,UAAtC,CAAmD,KAAKG,UAAxD,CAAqE,KAAKH,UAAlG,CACA,KAAKH,QAAL,CAAcY,SAAd,CAAwBC,MAAxB,CAA+B,WAA/B,CACA,CAhB6C","sourcesContent":["class ProductListRecommended extends Component {\r\n\tconstructor(el) {\r\n\t\tsuper(el);\r\n\t\tthis.collapse = this.$find('[data-collapse]');\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.innerText.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.innerText.trim() === this.buttonLess ? this.buttonMore : this.buttonLess;\r\n\t\tthis.collapse.classList.toggle('is-opened');\r\n\t}\r\n}\r\n\r\n"],"file":"product-list-recommended.min.js"}