text: // Copyright (c) 2009-2017 SAP SE, All Rights Reserved
  sap.ui.define(["sap/ui/core/mvc/Controller","sap/ui/model/json/JSONModel","sap/ui/Device","sap/ui/model/resource/ResourceModel"],function(C,J,D,R){"use strict";return C.extend("sap.ushell.components.shell.UserSettings.FlpSettings",{DISPLAY_MODES:{"scroll":0,"tabs":1,getName:function(v){return Object.keys(this)[v];}},onInit:function(){this.oConfModel=new J({});this.oConfModel.setData({isRTL:sap.ui.getCore().getConfiguration().getRTL(),flexAlignItems:D.system.phone?"Stretch":"Start",textAlign:D.system.phone?"Begin":"End",textDirection:D.system.phone?"Column":"Row",labelWidth:D.system.phone?"auto":"12rem"});this.getView().setModel(this.oConfModel,"config");var r=new R({bundleUrl:sap.ui.require.toUrl("sap/ushell/renderers/fiori2/resources/resources")+".properties"});this.getView().setModel(r,"i18n");var i=this.getView().getViewData().initialDisplayMode;this.iCurrentMode=this.DISPLAY_MODES[i]||this.DISPLAY_MODES.scroll;},onBeforeRendering:function(){this.oConfModel.setProperty("/displayMode",this.iCurrentMode);},onSave:function(){this.iCurrentMode=this.oConfModel.getProperty("/displayMode");return this.DISPLAY_MODES.getName(this.iCurrentMode);}});});
  