"use strict";sap.ui.define(["./BaseController","sap/ui/Device"],function(t,e){"use strict";function o(t){return t&&t.__esModule&&typeof t.default!=="undefined"?t.default:t}const n=o(t);const i=n.extend("com.optrabot.ui.controller.App",{onInit:function t(){this.getView().addStyleClass(this.getOwnerComponent().getContentDensityClass());if(e.resize.width<=1024){this.onSideNavButtonPress()}},getBundleText:function t(e,o){return Promise.resolve(this.getBundleTextByModel(e,this.getOwnerComponent().getModel("i18n"),o))},onSideNavButtonPress:function t(){console.log("SideNavButton pressed");const e=this.byId("optrabot_app");var o=e.getSideExpanded();e.setSideExpanded(!o);this._setToggleButtonTooltip(!o)},_setToggleButtonTooltip:async function t(e){const o=this.byId("sideNavigationToggleButton");if(e){o.setTooltip(await this.getBundleText("sideNavigationCollapseTooltip"))}else{o.setTooltip(await this.getBundleText("sideNavigationExpandTooltip"))}}});return i});
//# sourceMappingURL=App.controller.js.map