{"size": 1454, "ext": "js", "max_stars_repo_path": "docs/controller/MainView.controller.js", "max_stars_repo_name": "larshp/artifact-of-the-month", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "docs/controller/MainView.controller.js", "max_issues_repo_name": "larshp/artifact-of-the-month", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "docs/controller/MainView.controller.js", "max_forks_repo_name": "larshp/artifact-of-the-month", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 1454.0, "max_line_length": 1454, "alphanum_fraction": 0.7558459422}
sap.ui.define(["aow/artifact/controller/BaseController","aow/artifact/model/formatter"],function(e,t){"use strict";return e.extend("aow.artifact.controller.MainView",{formatter:t,onMenuButtonPress:function(){const e=this.getView().getModel("settings");const t=e.getProperty("/sidebarExpanded");e.setProperty("/sidebarExpanded",!t)},onToggleTheme:function(e){const t=e.getParameter("state");sap.ui.getCore().applyTheme(t?"sap_fiori_3":"sap_fiori_3_dark")},onNavPage:function(e){const t=this.getView().getModel("settings");const r=e.getParameter("item").getKey();if(r==="legal"){return window.open("https://www.sap.com/corporate/en/legal/impressum.html","_blank")}if(r==="privacy"){return window.open("https://www.sap.com/corporate/en/legal/privacy.html","_blank")}if(r==="terms"){return window.open("https://www.sap.com/corporate/en/legal/terms-of-use.html","_blank")}this.navTo(r);t.setProperty("/currentHash",r);t.setProperty("/filter","all")},liveSearch:function(e){const t=e.getParameter("newValue");const r=this.getView().byId("all-list");const o=r.getBinding("items");const a=new sap.ui.model.Filter({path:"name",operator:sap.ui.model.FilterOperator.Contains,value1:t});const n=new sap.ui.model.Filter({path:"description",operator:sap.ui.model.FilterOperator.Contains,value1:t});const i=new sap.ui.model.Filter({path:"type",operator:sap.ui.model.FilterOperator.Contains,value1:t});o.filter(new sap.ui.model.Filter({filters:[a,n,i],and:false}))}})});