{"version":3,"file":"sidemenu.nomodule.min.js","sources":["../../../.config/config.js","../../../src/core/api.js","../../../src/component/sidemenu/script/sidemenu/sidemenu-selector.js","../../../src/component/sidemenu/script/sidemenu/sidemenu-list.js","../../../src/component/sidemenu/script/sidemenu/sidemenu-item.js","../../../src/component/sidemenu/index.js","../../../src/component/sidemenu/main.js"],"sourcesContent":["const config = {\r\n prefix: 'fr',\r\n namespace: 'dsfr',\r\n organisation: '@gouvfr',\r\n version: '1.11.2'\r\n};\r\n\r\nexport default config;\r\n","import config from './config.js';\nconst api = window[config.namespace];\nexport default api;\n","import api from '../../api.js';\n\nconst ITEM = api.internals.ns.selector('sidemenu__item');\nconst COLLAPSE = api.internals.ns.selector('collapse');\n\nexport const SidemenuSelector = {\n LIST: api.internals.ns.selector('sidemenu__list'),\n COLLAPSE: `${ITEM} > ${COLLAPSE}, ${ITEM} > *:not(${ITEM}):not(${COLLAPSE}) > ${COLLAPSE}, ${ITEM} > *:not(${ITEM}):not(${COLLAPSE}) > *:not(${ITEM}):not(${COLLAPSE}) > ${COLLAPSE}`,\n COLLAPSE_LEGACY: `${ITEM} ${COLLAPSE}`,\n ITEM: api.internals.ns.selector('sidemenu__item'),\n BUTTON: api.internals.ns.selector('sidemenu__btn')\n};\n","import api from '../../api.js';\nimport { SidemenuSelector } from './sidemenu-selector.js';\n\nclass SidemenuList extends api.core.CollapsesGroup {\n static get instanceClassName () {\n return 'SidemenuList';\n }\n\n validate (member) {\n return super.validate(member) && member.node.matches(api.internals.legacy.isLegacy ? SidemenuSelector.COLLAPSE_LEGACY : SidemenuSelector.COLLAPSE);\n }\n}\n\nexport { SidemenuList };\n","import api from '../../api.js';\nimport { SidemenuSelector } from './sidemenu-selector.js';\n\nclass SidemenuItem extends api.core.Instance {\n static get instanceClassName () {\n return 'SidemenuItem';\n }\n\n get collapsePrimary () {\n const buttons = this.element.children.map(child => child.getInstance('CollapseButton')).filter(button => button !== null && button.hasClass(SidemenuSelector.BUTTON));\n return buttons[0];\n }\n}\n\nexport { SidemenuItem };\n","import api from './api.js';\nimport { SidemenuList } from './script/sidemenu/sidemenu-list.js';\nimport { SidemenuSelector } from './script/sidemenu/sidemenu-selector.js';\nimport { SidemenuItem } from './script/sidemenu/sidemenu-item';\n\napi.sidemenu = {\n SidemenuList: SidemenuList,\n SidemenuItem: SidemenuItem,\n SidemenuSelector: SidemenuSelector\n};\n\nexport default api;\n","import api from './index.js';\n\napi.internals.register(api.sidemenu.SidemenuSelector.LIST, api.sidemenu.SidemenuList);\napi.internals.register(api.sidemenu.SidemenuSelector.ITEM, api.sidemenu.SidemenuItem);\n\nexport default api;\n"],"names":["const","api","window","ITEM","internals","ns","selector","COLLAPSE","SidemenuSelector","LIST","COLLAPSE_LEGACY","BUTTON","SidemenuList","staticAccessors","instanceClassName","validate","member","super","node","matches","legacy","isLegacy","core","CollapsesGroup","SidemenuItem","prototypeAccessors","collapsePrimary","this","element","children","map","child","getInstance","filter","button","hasClass","Instance","sidemenu","register"],"mappings":";yBAAAA,ICCMC,EAAMC,OAAuB,KCC7BC,EAAOF,EAAIG,UAAUC,GAAGC,SAAS,kBACjCC,EAAWN,EAAIG,UAAUC,GAAGC,SAAS,YAE9BE,EAAmB,CAC9BC,KAAMR,EAAIG,UAAUC,GAAGC,SAAS,kBAChCC,SAAaJ,QAAUI,OAAaJ,cAAgBA,WAAaI,SAAeA,OAAaJ,cAAgBA,WAAaI,eAAqBJ,WAAaI,SAAeA,EAC3KG,gBAAoBP,MAAQI,EAC5BJ,KAAMF,EAAIG,UAAUC,GAAGC,SAAS,kBAChCK,OAAQV,EAAIG,UAAUC,GAAGC,SAAS,kBCP9BM,6LACJC,EAAWC,iCACT,MAAO,4BAGTC,kBAAUC,GACR,OAAOC,YAAMF,mBAASC,IAAWA,EAAOE,KAAKC,QAAQlB,EAAIG,UAAUgB,OAAOC,SAAWb,EAAiBE,gBAAkBF,EAAiBD,2CANlHN,EAAIqB,KAAKC,gBCA9BC,mOACJX,EAAWC,iCACT,MAAO,gBAGTW,EAAIC,+BAEF,OADgBC,KAAKC,QAAQC,SAASC,cAAIC,UAASA,EAAMC,YAAY,qBAAmBC,iBAAOC,UAAqB,OAAXA,GAAmBA,EAAOC,SAAS3B,EAAiBG,WAC9I,2EAPQV,EAAIqB,KAAKc,UCEpCnC,EAAIoC,SAAW,CACbzB,aAAcA,EACdY,aAAcA,EACdhB,iBAAkBA,GCNpBP,EAAIG,UAAUkC,SAASrC,EAAIoC,SAAS7B,iBAAiBC,KAAMR,EAAIoC,SAASzB,cACxEX,EAAIG,UAAUkC,SAASrC,EAAIoC,SAAS7B,iBAAiBL,KAAMF,EAAIoC,SAASb"}