1/* Matomo Javascript - cb=88783e4d5ff0d437221f7e84ee59253e*/ 2 3/*! 4 * Matomo - free/libre analytics platform 5 * 6 * @link https://matomo.org 7 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later 8 */ 9(function(){angular.module('piwikApp').factory('manageCustomVarsModel',manageCustomVarsModel);manageCustomVarsModel.$inject=['piwikApi'];function manageCustomVarsModel(piwikApi){var model={customVariables:[],extractions:[],isLoading:false,fetchUsages:fetchUsages,hasCustomVariablesInGeneral:false,hasAtLeastOneUsage:false,numSlotsAvailable:5,};return model;function fetchCustomVariables(){return piwikApi.fetch({method:'CustomVariables.getCustomVariables',period:'year',date:'today',filter_limit:1}).then(function(customVariables){model.hasCustomVariablesInGeneral=(customVariables&&customVariables.length>0);});} 10function fetchUsages(){model.isLoading=true;fetchCustomVariables().then(function(){return piwikApi.fetch({method:'CustomVariables.getUsagesOfSlots',filter_limit:'-1'});}).then(function(customVariables){model.customVariables=customVariables;angular.forEach(customVariables,function(customVar){if(customVar.index>model.numSlotsAvailable){model.numSlotsAvailable=customVar.index;} 11if(customVar.usages&&customVar.usages.length>0){model.hasAtLeastOneUsage=true;}});})['finally'](function(){model.isLoading=false;});}}})(); 12/*! 13 * Matomo - free/libre analytics platform 14 * 15 * @link https://matomo.org 16 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later 17 */ 18(function(){angular.module('piwikApp').controller('ManageCustomVarsController',ManageCustomVarsController);ManageCustomVarsController.$inject=['manageCustomVarsModel','piwik','$filter'];function ManageCustomVarsController(manageCustomVarsModel,piwik,$filter){manageCustomVarsModel.fetchUsages();this.model=manageCustomVarsModel;this.siteName=piwik.siteName;this.scopes=[{value:'visit',name:_pk_translate('General_TrackingScopeVisit')},{value:'page',name:_pk_translate('General_TrackingScopePage')}];}})(); 19/*! 20 * Matomo - free/libre analytics platform 21 * 22 * @link https://matomo.org 23 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later 24 */ 25(function(){angular.module('piwikApp').directive('piwikManageCustomVars',piwikManageCustomVars);piwikManageCustomVars.$inject=['piwik'];function piwikManageCustomVars(piwik){return{restrict:'A',scope:{},templateUrl:'plugins/CustomVariables/angularjs/manage-custom-vars/manage-custom-vars.directive.html?cb='+piwik.cacheBuster,controller:'ManageCustomVarsController',controllerAs:'manageCustomVars'};}})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.