{"version":3,"file":"src_stimulus_controllers_dynamic_menus_submenu_controller_ts.cf8fa2b6aee085f7.js","mappings":"iOAEc,MAAOA,0BAA0BC,EAAAA,UACtC,KAAAC,QAAU,CACf,YACA,YACA,CAKFC,eAAAA,GACMC,KAAKC,aACPD,KAAKE,WAELF,KAAKG,QAET,CAEQF,UAAAA,GACN,OAAOD,KAAKI,gBAAgBC,UAAUC,SAAS,iBACjD,CAEQH,MAAAA,GACNH,KAAKO,gBAAgBF,UAAUG,QAAQ,8BAA+B,qBACtER,KAAKI,gBAAgBC,UAAUG,QAAQ,mBAAoB,iBAC7D,CAEQN,QAAAA,GACNF,KAAKO,gBAAgBF,UAAUG,QAAQ,oBAAqB,+BAC5DR,KAAKI,gBAAgBC,UAAUG,QAAQ,iBAAkB,mBAC3D,E","sources":["./src/stimulus/controllers/dynamic/menus/submenu.controller.ts"],"sourcesContent":["import { Controller } from '@hotwired/stimulus';\n\nexport default class SubmenuController extends Controller {\n static targets = [\n 'indicator',\n 'container',\n ];\n\n declare readonly indicatorTarget:HTMLElement;\n declare readonly containerTarget:HTMLElement;\n\n toggleContainer() {\n if (this.isExpanded()) {\n this.collapse();\n } else {\n this.expand();\n }\n }\n\n private isExpanded() {\n return this.indicatorTarget.classList.contains('icon-arrow-up1');\n }\n\n private expand() {\n this.containerTarget.classList.replace('op-submenu--items_collapsed', 'op-submenu--items');\n this.indicatorTarget.classList.replace('icon-arrow-down1', 'icon-arrow-up1');\n }\n\n private collapse() {\n this.containerTarget.classList.replace('op-submenu--items', 'op-submenu--items_collapsed');\n this.indicatorTarget.classList.replace('icon-arrow-up1', 'icon-arrow-down1');\n }\n}\n"],"names":["SubmenuController","Controller","targets","toggleContainer","this","isExpanded","collapse","expand","indicatorTarget","classList","contains","containerTarget","replace"],"sourceRoot":"webpack:///","x_google_ignoreList":[]}