(()=>{function n(e,t,i){var o=this,s=i.getThisMonth(),a=i.getThisDay();function n(n){return o.supportedFunctionalities=n,o.supportedFunctionalities}function r(n){return o.sessions=n.billings,o.session}function c(n){return o.sessions=n.billings,o.sessions}_.assign(o,{$onInit:function(){i.getProviderSupportedFunctionalities().then(n)},$onChanges:function(n){_.get(n,"available.currentValue")&&(o.provider,"ericsson"===o.provider?(_.get(o,"commonData.currentDayDataUsage")||i.getThisDayDataUsage(e.deviceId,a,!1)).then(r):(_.get(o,"commonData.currentMonthDataUsage")||t.getTerminalDataUsage(e.deviceId,{},s)).then(c))},supportedFunctionalities:{}})}n.$inject=["$routeParams","c8yConnectivity","connectivityService"],angular.module("c8y.connectivityV2").component("c8yConnectivitySessions",{controller:n,controllerAs:"vm",templateUrl:":::PLUGIN_PATH:::/sessions.html",bindings:{available:"<",commonData:"<?",provider:"<"}})})();