{"version":3,"sources":["webpack:///./src/feature/accordion/accordion.js","webpack:///./node_modules/core-js/modules/es.object.get-prototype-of.js","webpack:///./node_modules/core-js/modules/es.object.set-prototype-of.js"],"names":["Accordion","element","initDomCache","toggleId","instanceId","contentId","open","dom","toggle","id","setAttribute","content","addEventListener","toggleAccordion","bind","this","classList","remove","add","BaseFeature","$","fails","toObject","nativeGetPrototypeOf","CORRECT_PROTOTYPE_GETTER","target","stat","forced","sham","getPrototypeOf","it","setPrototypeOf"],"mappings":"g4BAEMA,E,YACL,WAAYC,GAAS,M,iGAAA,S,EACpB,U,EAAA,eAAMA,K,8CAEDC,eAEL,EAAKD,QAAUA,EAEf,IAAME,EAAW,UAAH,OAAa,EAAKC,YAC1BC,EAAY,WAAH,OAAc,EAAKD,YARd,OAUpB,EAAKE,MAAO,EAEZ,EAAKC,IAAIC,OAAOC,GAAKN,EACrB,EAAKI,IAAIC,OAAOE,aAAa,iBAAiB,GAC9C,EAAKH,IAAIC,OAAOE,aAAa,gBAAiBL,GAE9C,EAAKE,IAAII,QAAQF,GAAKJ,EACtB,EAAKE,IAAII,QAAQD,aAAa,kBAAmBP,GAEjD,EAAKI,IAAIC,OAAOI,iBAAiB,QAAS,EAAKC,gBAAgBC,KAArB,OAnBtB,E,ySAuBpBC,KAAKR,IAAIC,OAAOE,aAAa,iBAAkBK,KAAKT,MAEhDS,KAAKT,KACRS,KAAKd,QAAQe,UAAUC,OAAO,WAE9BF,KAAKd,QAAQe,UAAUE,IAAI,WAG5BH,KAAKT,MAAQS,KAAKT,U,oCAhCIa,GAoCTnB,a,oBCtCf,IAAIoB,EAAI,EAAQ,GACZC,EAAQ,EAAQ,GAChBC,EAAW,EAAQ,IACnBC,EAAuB,EAAQ,IAC/BC,EAA2B,EAAQ,KAMvCJ,EAAE,CAAEK,OAAQ,SAAUC,MAAM,EAAMC,OAJRN,GAAM,WAAcE,EAAqB,MAIJK,MAAOJ,GAA4B,CAChGK,eAAgB,SAAwBC,GACtC,OAAOP,EAAqBD,EAASQ,Q,oBCZjC,EAAQ,EAKhBV,CAAE,CAAEK,OAAQ,SAAUC,MAAM,GAAQ,CAClCK,eALmB,EAAQ","file":"5-f2c2855d.pkg.js","sourcesContent":["import BaseFeature from '../../foundation/base/base';\r\n\r\nclass Accordion extends BaseFeature {\r\n\tconstructor(element) {\r\n\t\tsuper(element);\r\n\r\n\t\tthis.initDomCache();\r\n\r\n\t\tthis.element = element;\r\n\r\n\t\tconst toggleId = `toggle-${this.instanceId}`;\r\n\t\tconst contentId = `content-${this.instanceId}`;\r\n\r\n\t\tthis.open = false;\r\n\r\n\t\tthis.dom.toggle.id = toggleId;\r\n\t\tthis.dom.toggle.setAttribute('aria-expanded', false);\r\n\t\tthis.dom.toggle.setAttribute('aria-controls', contentId);\r\n\r\n\t\tthis.dom.content.id = contentId;\r\n\t\tthis.dom.content.setAttribute('aria-labelledby', toggleId);\r\n\r\n\t\tthis.dom.toggle.addEventListener('click', this.toggleAccordion.bind(this));\r\n\t}\r\n\r\n\ttoggleAccordion() {\r\n\t\tthis.dom.toggle.setAttribute('aria-expanded', !this.open);\r\n\r\n\t\tif (this.open) {\r\n\t\t\tthis.element.classList.remove('is-open');\r\n\t\t} else {\r\n\t\t\tthis.element.classList.add('is-open');\r\n\t\t}\r\n\r\n\t\tthis.open = !this.open;\r\n\t}\r\n}\r\n\r\nexport default Accordion;\r\n","var $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar toObject = require('../internals/to-object');\nvar nativeGetPrototypeOf = require('../internals/object-get-prototype-of');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeGetPrototypeOf(1); });\n\n// `Object.getPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.getprototypeof\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PROTOTYPE_GETTER }, {\n getPrototypeOf: function getPrototypeOf(it) {\n return nativeGetPrototypeOf(toObject(it));\n }\n});\n\n","var $ = require('../internals/export');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// `Object.setPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.setprototypeof\n$({ target: 'Object', stat: true }, {\n setPrototypeOf: setPrototypeOf\n});\n"],"sourceRoot":""}