From 523fc32d4c0c7a23f328c62a6649bbad76f624b1 Mon Sep 17 00:00:00 2001
From: Michal Kleiner
Date: Fri, 27 Oct 2023 14:35:56 +1300
Subject: [PATCH] [DEV-17228] Add markup and content for premium plugins promos
(#21402)
* Add initial template for plugin promos
* Move image to Card so grid can be used at card level
* Add plugin promo screenshots
* Adjust content
* Use widget template instead of controller view
* Populate plugin promo content
* Remove enable/disable variable override
* Remove legal info markup as not yet designed
* Unify image alt text and remove help url property
* Prepare promo widgets for refactoring for reusability
* Integrate CTA links
* Rename A/B Testing image to match plugin name
* Use marketplace plugin info where possible
* Update Start free trial CTA to open marketplace in new tab
* Move promo features text to lang file
* Add UI tests
* Update UI test screenshots from CI
* Simplify UI test selector
* Update UI tests
* Use full plugin names in category ids
* Disable Professional Services ads for UI tests apart from the plugin itself
* Fix typo in test method name
* Add new widget categories to widgets test
* Add integration test without professional services widgets/categories
* Update expected list of report pages returned by the API in a system test
* Added missing externalLink method reference to the vue global properties
* built vue files
* Use test.vars. approach to disable professional services for UI tests as needed
This is needed as config override from UI tests has lower priority than ui-test.php file overrides.
* Remove test dependency on Advertising class
It seems the DI config isn't passed to the class properly during the UI tests
so using its static method using config provided by the DI works better.
* Reverse logic so that Professional Services are disabled for UI tests by default and only enabled when required
* Ensure page is reloaded after config change
* Update screenshot from CI run
* Reset UI tests config before each test
Tidying up the config within the test where it's set didn't work.
* Move mouse out of viewport to prevent any unwanted hover effects
* Update tests from CI
* Update language to use visitor instead of user
* Update UI test screenshots after content change
---------
Co-authored-by: Ben
---
config/environment/ui-test.php | 10 +-
core/Plugin/WidgetsProvider.php | 2 +-
plugins/CoreHome/vue/dist/CoreHome.umd.js | 45 ++--
plugins/CoreHome/vue/dist/CoreHome.umd.min.js | 60 ++---
.../vue/src/ContentBlock/ContentBlock.vue | 8 +-
plugins/Morpheus/stylesheets/ui/_cards.less | 10 +
.../Categories/PromoFormsCategory.php | 2 +-
.../Categories/PromoMediaCategory.php | 2 +-
.../ProfessionalServices.php | 1 +
.../PromoWidgetApplicable.php | 11 +-
.../Widgets/PromoAbTesting.php | 23 +-
.../Widgets/PromoCrashAnalytics.php | 23 +-
.../Widgets/PromoCustomReports.php | 23 +-
.../Widgets/PromoFormAnalytics.php | 50 ++++
.../Widgets/PromoForms.php | 35 ---
.../Widgets/PromoFunnels.php | 23 +-
.../Widgets/PromoHeatmap.php | 35 ---
.../Widgets/PromoHeatmaps.php | 51 ++++
.../Widgets/PromoMedia.php | 35 ---
.../Widgets/PromoMediaAnalytics.php | 50 ++++
.../Widgets/PromoSessionRecording.php | 35 ---
.../Widgets/PromoSessionRecordings.php | 51 ++++
.../images/ad-abtesting.png | Bin 0 -> 150098 bytes
.../images/ad-crashanalytics.png | Bin 0 -> 178423 bytes
.../images/ad-customreports.png | Bin 0 -> 105207 bytes
.../images/ad-formanalytics.png | Bin 0 -> 98231 bytes
.../images/ad-funnels.png | Bin 0 -> 81653 bytes
.../images/ad-heatmaps.png | Bin 0 -> 993959 bytes
.../images/ad-mediaanalytics.png | Bin 0 -> 176514 bytes
.../images/ad-sessionrecordings.png | Bin 0 -> 521633 bytes
plugins/ProfessionalServices/lang/en.json | 36 ++-
.../stylesheets/promos.less | 70 +++++
.../templates/pluginAdvertising.twig | 27 ++
.../ProfessionalServices/tests/UI/.gitignore | 2 +
.../ProfessionalServices_PluginPromo_spec.js | 99 +++++++
...alServices_PluginPromo_promo_abtesting.png | 3 +
...vices_PluginPromo_promo_crashanalytics.png | 3 +
...rvices_PluginPromo_promo_customreports.png | 3 +
...rvices_PluginPromo_promo_formanalytics.png | 3 +
...onalServices_PluginPromo_promo_funnels.png | 3 +
...nalServices_PluginPromo_promo_heatmaps.png | 3 +
...vices_PluginPromo_promo_mediaanalytics.png | 3 +
...es_PluginPromo_promo_sessionrecordings.png | 3 +
.../tests/Unit/PromoWidgetApplicableTest.php | 9 +-
.../Integration/Category/CategoryListTest.php | 4 +-
tests/PHPUnit/Integration/WidgetsListTest.php | 39 ++-
...rtMetadata__API.getReportPagesMetadata.xml | 242 +++++++++++++++++-
.../Menus_mainmenu_loaded_withpromos.png | 3 +
.../Menus_mainmenu_lower_clicked.png | 4 +-
tests/UI/specs/Menus_spec.js | 25 +-
50 files changed, 932 insertions(+), 237 deletions(-)
create mode 100644 plugins/ProfessionalServices/Widgets/PromoFormAnalytics.php
delete mode 100644 plugins/ProfessionalServices/Widgets/PromoForms.php
delete mode 100644 plugins/ProfessionalServices/Widgets/PromoHeatmap.php
create mode 100644 plugins/ProfessionalServices/Widgets/PromoHeatmaps.php
delete mode 100644 plugins/ProfessionalServices/Widgets/PromoMedia.php
create mode 100644 plugins/ProfessionalServices/Widgets/PromoMediaAnalytics.php
delete mode 100644 plugins/ProfessionalServices/Widgets/PromoSessionRecording.php
create mode 100644 plugins/ProfessionalServices/Widgets/PromoSessionRecordings.php
create mode 100644 plugins/ProfessionalServices/images/ad-abtesting.png
create mode 100644 plugins/ProfessionalServices/images/ad-crashanalytics.png
create mode 100644 plugins/ProfessionalServices/images/ad-customreports.png
create mode 100644 plugins/ProfessionalServices/images/ad-formanalytics.png
create mode 100644 plugins/ProfessionalServices/images/ad-funnels.png
create mode 100644 plugins/ProfessionalServices/images/ad-heatmaps.png
create mode 100644 plugins/ProfessionalServices/images/ad-mediaanalytics.png
create mode 100644 plugins/ProfessionalServices/images/ad-sessionrecordings.png
create mode 100644 plugins/ProfessionalServices/stylesheets/promos.less
create mode 100644 plugins/ProfessionalServices/templates/pluginAdvertising.twig
create mode 100644 plugins/ProfessionalServices/tests/UI/.gitignore
create mode 100644 plugins/ProfessionalServices/tests/UI/ProfessionalServices_PluginPromo_spec.js
create mode 100644 plugins/ProfessionalServices/tests/UI/expected-screenshots/ProfessionalServices_PluginPromo_promo_abtesting.png
create mode 100644 plugins/ProfessionalServices/tests/UI/expected-screenshots/ProfessionalServices_PluginPromo_promo_crashanalytics.png
create mode 100644 plugins/ProfessionalServices/tests/UI/expected-screenshots/ProfessionalServices_PluginPromo_promo_customreports.png
create mode 100644 plugins/ProfessionalServices/tests/UI/expected-screenshots/ProfessionalServices_PluginPromo_promo_formanalytics.png
create mode 100644 plugins/ProfessionalServices/tests/UI/expected-screenshots/ProfessionalServices_PluginPromo_promo_funnels.png
create mode 100644 plugins/ProfessionalServices/tests/UI/expected-screenshots/ProfessionalServices_PluginPromo_promo_heatmaps.png
create mode 100644 plugins/ProfessionalServices/tests/UI/expected-screenshots/ProfessionalServices_PluginPromo_promo_mediaanalytics.png
create mode 100644 plugins/ProfessionalServices/tests/UI/expected-screenshots/ProfessionalServices_PluginPromo_promo_sessionrecordings.png
create mode 100644 tests/UI/expected-screenshots/Menus_mainmenu_loaded_withpromos.png
diff --git a/config/environment/ui-test.php b/config/environment/ui-test.php
index 5769d3a6570..b14003a239f 100644
--- a/config/environment/ui-test.php
+++ b/config/environment/ui-test.php
@@ -41,11 +41,19 @@ public function write(string $key, string $content): void
};
},
- 'Piwik\Config' => \Piwik\DI::decorate(function (\Piwik\Config $config) {
+ 'Piwik\Config' => \Piwik\DI::decorate(function (\Piwik\Config $config, Container $c) {
$config->General['cors_domains'][] = '*';
$config->General['trusted_hosts'][] = '127.0.0.1';
$config->General['trusted_hosts'][] = $config->tests['http_host'];
$config->General['trusted_hosts'][] = $config->tests['http_host'] . ':' . $config->tests['port'];
+
+ // disable plugin promos for UI tests, only enable when explicitly requested
+ if ($c->get('test.vars.enableProfessionalSupportAdsForUITests')) {
+ $config->General['piwik_professional_support_ads_enabled'] = '1';
+ } else {
+ $config->General['piwik_professional_support_ads_enabled'] = '0';
+ }
+
return $config;
}),
diff --git a/core/Plugin/WidgetsProvider.php b/core/Plugin/WidgetsProvider.php
index e5f5347fbfd..164f3412bd1 100644
--- a/core/Plugin/WidgetsProvider.php
+++ b/core/Plugin/WidgetsProvider.php
@@ -42,7 +42,7 @@ public function getWidgetConfigs()
$configs = array();
/**
- * Triggered to add custom widget configs. To filder widgets have a look at the {@hook Widget.filterWidgets}
+ * Triggered to add custom widget configs. To filter widgets have a look at the {@hook Widget.filterWidgets}
* event.
*
* **Example**
diff --git a/plugins/CoreHome/vue/dist/CoreHome.umd.js b/plugins/CoreHome/vue/dist/CoreHome.umd.js
index 9aa2774e4dd..7d03c0b75e4 100644
--- a/plugins/CoreHome/vue/dist/CoreHome.umd.js
+++ b/plugins/CoreHome/vue/dist/CoreHome.umd.js
@@ -3688,30 +3688,37 @@ var RateFeature = useExternalPluginComponent('Feedback', 'RateFeature');
EnrichedHeadlinevue_type_script_lang_ts.render = EnrichedHeadlinevue_type_template_id_0945105a_render
/* harmony default export */ var EnrichedHeadline = (EnrichedHeadlinevue_type_script_lang_ts);
-// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CoreHome/vue/src/ContentBlock/ContentBlock.vue?vue&type=template&id=561baeb1
+// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CoreHome/vue/src/ContentBlock/ContentBlock.vue?vue&type=template&id=a32a48ea
-var ContentBlockvue_type_template_id_561baeb1_hoisted_1 = {
- class: "card",
- ref: "root"
-};
-var ContentBlockvue_type_template_id_561baeb1_hoisted_2 = {
+var ContentBlockvue_type_template_id_a32a48ea_hoisted_1 = {
class: "card-content"
};
-var ContentBlockvue_type_template_id_561baeb1_hoisted_3 = {
+var ContentBlockvue_type_template_id_a32a48ea_hoisted_2 = {
key: 0,
class: "card-title"
};
-var ContentBlockvue_type_template_id_561baeb1_hoisted_4 = {
+var ContentBlockvue_type_template_id_a32a48ea_hoisted_3 = {
key: 1,
class: "card-title"
};
-var ContentBlockvue_type_template_id_561baeb1_hoisted_5 = {
+var ContentBlockvue_type_template_id_a32a48ea_hoisted_4 = {
ref: "content"
};
-function ContentBlockvue_type_template_id_561baeb1_render(_ctx, _cache, $props, $setup, $data, $options) {
+var ContentBlockvue_type_template_id_a32a48ea_hoisted_5 = {
+ key: 0,
+ class: "card-image hide-on-med-and-down"
+};
+var ContentBlockvue_type_template_id_a32a48ea_hoisted_6 = ["src", "alt"];
+function ContentBlockvue_type_template_id_a32a48ea_render(_ctx, _cache, $props, $setup, $data, $options) {
var _component_EnrichedHeadline = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("EnrichedHeadline");
- return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", ContentBlockvue_type_template_id_561baeb1_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ContentBlockvue_type_template_id_561baeb1_hoisted_2, [_ctx.contentTitle && !_ctx.actualFeature && !_ctx.helpUrl && !_ctx.actualHelpText ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("h2", ContentBlockvue_type_template_id_561baeb1_hoisted_3, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.decode(_ctx.contentTitle)), 1)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.contentTitle && (_ctx.actualFeature || _ctx.helpUrl || _ctx.actualHelpText) ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("h2", ContentBlockvue_type_template_id_561baeb1_hoisted_4, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_EnrichedHeadline, {
+ return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", {
+ class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])({
+ card: true,
+ 'card-with-image': !!this.imageUrl
+ }),
+ ref: "root"
+ }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ContentBlockvue_type_template_id_a32a48ea_hoisted_1, [_ctx.contentTitle && !_ctx.actualFeature && !_ctx.helpUrl && !_ctx.actualHelpText ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("h2", ContentBlockvue_type_template_id_a32a48ea_hoisted_2, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.decode(_ctx.contentTitle)), 1)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.contentTitle && (_ctx.actualFeature || _ctx.helpUrl || _ctx.actualHelpText) ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("h2", ContentBlockvue_type_template_id_a32a48ea_hoisted_3, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_EnrichedHeadline, {
"feature-name": _ctx.actualFeature,
"help-url": _ctx.helpUrl,
"inline-help": _ctx.actualHelpText
@@ -3720,9 +3727,12 @@ function ContentBlockvue_type_template_id_561baeb1_render(_ctx, _cache, $props,
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.decode(_ctx.contentTitle)), 1)];
}),
_: 1
- }, 8, ["feature-name", "help-url", "inline-help"])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ContentBlockvue_type_template_id_561baeb1_hoisted_5, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "default")], 512)])], 512);
+ }, 8, ["feature-name", "help-url", "inline-help"])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ContentBlockvue_type_template_id_a32a48ea_hoisted_4, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "default")], 512)]), _ctx.imageUrl ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", ContentBlockvue_type_template_id_a32a48ea_hoisted_5, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("img", {
+ src: _ctx.imageUrl,
+ alt: _ctx.actualImageAltText
+ }, null, 8, ContentBlockvue_type_template_id_a32a48ea_hoisted_6)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 2);
}
-// CONCATENATED MODULE: ./plugins/CoreHome/vue/src/ContentBlock/ContentBlock.vue?vue&type=template&id=561baeb1
+// CONCATENATED MODULE: ./plugins/CoreHome/vue/src/ContentBlock/ContentBlock.vue?vue&type=template&id=a32a48ea
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CoreHome/vue/src/ContentBlock/ContentBlock.vue?vue&type=script&lang=ts
@@ -3737,7 +3747,9 @@ var ContentBlockvue_type_script_lang_ts_window = window,
feature: String,
helpUrl: String,
helpText: String,
- anchor: String
+ anchor: String,
+ imageUrl: String,
+ imageAltText: String
},
components: {
EnrichedHeadline: EnrichedHeadline
@@ -3745,7 +3757,8 @@ var ContentBlockvue_type_script_lang_ts_window = window,
data: function data() {
return {
actualFeature: this.feature,
- actualHelpText: this.helpText
+ actualHelpText: this.helpText,
+ actualImageAltText: this.imageAltText ? this.imageAltText : this.contentTitle
};
},
watch: {
@@ -3818,7 +3831,7 @@ var ContentBlockvue_type_script_lang_ts_window = window,
-ContentBlockvue_type_script_lang_ts.render = ContentBlockvue_type_template_id_561baeb1_render
+ContentBlockvue_type_script_lang_ts.render = ContentBlockvue_type_template_id_a32a48ea_render
/* harmony default export */ var ContentBlock = (ContentBlockvue_type_script_lang_ts);
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CoreHome/vue/src/Comparisons/Comparisons.vue?vue&type=template&id=39ac6c4e
diff --git a/plugins/CoreHome/vue/dist/CoreHome.umd.min.js b/plugins/CoreHome/vue/dist/CoreHome.umd.min.js
index e0cecbd69aa..8ca7cdf7753 100644
--- a/plugins/CoreHome/vue/dist/CoreHome.umd.min.js
+++ b/plugins/CoreHome/vue/dist/CoreHome.umd.min.js
@@ -4,7 +4,7 @@
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
- */window.hasBlockedContent=!1},"8bbf":function(t,n){t.exports=e},fae3:function(e,t,n){"use strict";if(n.r(t),n.d(t,"createVueApp",(function(){return mt})),n.d(t,"importPluginUmd",(function(){return gt})),n.d(t,"useExternalPluginComponent",(function(){return vt})),n.d(t,"DirectiveUtilities",(function(){return Ot})),n.d(t,"debounce",(function(){return wt})),n.d(t,"getFormattedEvolution",(function(){return Ct})),n.d(t,"clone",(function(){return Et})),n.d(t,"VueEntryContainer",(function(){return Vt})),n.d(t,"ActivityIndicator",(function(){return At})),n.d(t,"translate",(function(){return a})),n.d(t,"translateOrDefault",(function(){return i})),n.d(t,"externalRawLink",(function(){return ut})),n.d(t,"externalLink",(function(){return dt})),n.d(t,"Alert",(function(){return Ft})),n.d(t,"AjaxHelper",(function(){return Qe})),n.d(t,"setCookie",(function(){return ot})),n.d(t,"getCookie",(function(){return at})),n.d(t,"deleteCookie",(function(){return it})),n.d(t,"MatomoUrl",(function(){return Ce})),n.d(t,"Matomo",(function(){return ce})),n.d(t,"Periods",(function(){return m})),n.d(t,"Day",(function(){return j})),n.d(t,"Week",(function(){return E})),n.d(t,"Month",(function(){return N})),n.d(t,"Year",(function(){return L})),n.d(t,"Range",(function(){return Y})),n.d(t,"format",(function(){return p})),n.d(t,"getToday",(function(){return f})),n.d(t,"parseDate",(function(){return h})),n.d(t,"todayIsInRange",(function(){return b})),n.d(t,"DropdownMenu",(function(){return Rt})),n.d(t,"FocusAnywhereButHere",(function(){return zt})),n.d(t,"FocusIf",(function(){return Yt})),n.d(t,"Tooltips",(function(){return Zt})),n.d(t,"MatomoDialog",(function(){return rn})),n.d(t,"ExpandOnClick",(function(){return pn})),n.d(t,"ExpandOnHover",(function(){return yn})),n.d(t,"ShowSensitiveData",(function(){return wn})),n.d(t,"DropdownButton",(function(){return Cn})),n.d(t,"SelectOnFocus",(function(){return Nn})),n.d(t,"CopyToClipboard",(function(){return Bn})),n.d(t,"SideNav",(function(){return An})),n.d(t,"EnrichedHeadline",(function(){return Zn})),n.d(t,"ContentBlock",(function(){return ur})),n.d(t,"Comparisons",(function(){return qr})),n.d(t,"ComparisonsStore",(function(){return Hr})),n.d(t,"ComparisonsStoreInstance",(function(){return Ur})),n.d(t,"MenuItemsDropdown",(function(){return oo})),n.d(t,"DatePicker",(function(){return mo})),n.d(t,"DateRangePicker",(function(){return yo})),n.d(t,"PeriodDatePicker",(function(){return So})),n.d(t,"Notification",(function(){return Ao})),n.d(t,"NotificationGroup",(function(){return Jo})),n.d(t,"NotificationsStore",(function(){return Go})),n.d(t,"ShowHelpLink",(function(){return ta})),n.d(t,"SitesStore",(function(){return la})),n.d(t,"SiteSelector",(function(){return Pa})),n.d(t,"QuickAccess",(function(){return za})),n.d(t,"FieldArray",(function(){return ii})),n.d(t,"MultiPairField",(function(){return ki})),n.d(t,"PeriodSelector",(function(){return al})),n.d(t,"ReportingMenu",(function(){return tc})),n.d(t,"ReportingMenuStore",(function(){return ql})),n.d(t,"ReportingPagesStore",(function(){return Pl})),n.d(t,"ReportMetadataStore",(function(){return lc})),n.d(t,"WidgetsStore",(function(){return Xl})),n.d(t,"WidgetLoader",(function(){return bc})),n.d(t,"WidgetContainer",(function(){return Nc})),n.d(t,"WidgetByDimensionContainer",(function(){return Gc})),n.d(t,"Widget",(function(){return es})),n.d(t,"ReportingPage",(function(){return ws})),n.d(t,"ReportExport",(function(){return tu})),n.d(t,"Sparkline",(function(){return iu})),n.d(t,"Progressbar",(function(){return pu})),n.d(t,"ContentIntro",(function(){return fu})),n.d(t,"ContentTable",(function(){return hu})),n.d(t,"AjaxForm",(function(){return ju})),n.d(t,"Passthrough",(function(){return Su})),n.d(t,"DataTableActions",(function(){return Nd})),n.d(t,"VersionInfoHeaderMessage",(function(){return qd})),n.d(t,"MobileLeftMenu",(function(){return mm})),n.d(t,"scrollToAnchorInUrl",(function(){return jm})),"undefined"!==typeof window){var r=window.document.currentScript,o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}n("2342");
+ */window.hasBlockedContent=!1},"8bbf":function(t,n){t.exports=e},fae3:function(e,t,n){"use strict";if(n.r(t),n.d(t,"createVueApp",(function(){return mt})),n.d(t,"importPluginUmd",(function(){return bt})),n.d(t,"useExternalPluginComponent",(function(){return vt})),n.d(t,"DirectiveUtilities",(function(){return Ot})),n.d(t,"debounce",(function(){return wt})),n.d(t,"getFormattedEvolution",(function(){return Ct})),n.d(t,"clone",(function(){return Et})),n.d(t,"VueEntryContainer",(function(){return Vt})),n.d(t,"ActivityIndicator",(function(){return At})),n.d(t,"translate",(function(){return a})),n.d(t,"translateOrDefault",(function(){return i})),n.d(t,"externalRawLink",(function(){return ut})),n.d(t,"externalLink",(function(){return dt})),n.d(t,"Alert",(function(){return Ft})),n.d(t,"AjaxHelper",(function(){return Qe})),n.d(t,"setCookie",(function(){return ot})),n.d(t,"getCookie",(function(){return at})),n.d(t,"deleteCookie",(function(){return it})),n.d(t,"MatomoUrl",(function(){return Ce})),n.d(t,"Matomo",(function(){return ce})),n.d(t,"Periods",(function(){return m})),n.d(t,"Day",(function(){return j})),n.d(t,"Week",(function(){return E})),n.d(t,"Month",(function(){return N})),n.d(t,"Year",(function(){return L})),n.d(t,"Range",(function(){return Y})),n.d(t,"format",(function(){return p})),n.d(t,"getToday",(function(){return f})),n.d(t,"parseDate",(function(){return h})),n.d(t,"todayIsInRange",(function(){return g})),n.d(t,"DropdownMenu",(function(){return Rt})),n.d(t,"FocusAnywhereButHere",(function(){return zt})),n.d(t,"FocusIf",(function(){return Yt})),n.d(t,"Tooltips",(function(){return Zt})),n.d(t,"MatomoDialog",(function(){return rn})),n.d(t,"ExpandOnClick",(function(){return pn})),n.d(t,"ExpandOnHover",(function(){return yn})),n.d(t,"ShowSensitiveData",(function(){return wn})),n.d(t,"DropdownButton",(function(){return Cn})),n.d(t,"SelectOnFocus",(function(){return Nn})),n.d(t,"CopyToClipboard",(function(){return Bn})),n.d(t,"SideNav",(function(){return An})),n.d(t,"EnrichedHeadline",(function(){return Zn})),n.d(t,"ContentBlock",(function(){return dr})),n.d(t,"Comparisons",(function(){return Wr})),n.d(t,"ComparisonsStore",(function(){return Ur})),n.d(t,"ComparisonsStoreInstance",(function(){return $r})),n.d(t,"MenuItemsDropdown",(function(){return ao})),n.d(t,"DatePicker",(function(){return po})),n.d(t,"DateRangePicker",(function(){return Oo})),n.d(t,"PeriodDatePicker",(function(){return Co})),n.d(t,"Notification",(function(){return Lo})),n.d(t,"NotificationGroup",(function(){return Ko})),n.d(t,"NotificationsStore",(function(){return Yo})),n.d(t,"ShowHelpLink",(function(){return na})),n.d(t,"SitesStore",(function(){return ca})),n.d(t,"SiteSelector",(function(){return Ta})),n.d(t,"QuickAccess",(function(){return Ga})),n.d(t,"FieldArray",(function(){return li})),n.d(t,"MultiPairField",(function(){return Si})),n.d(t,"PeriodSelector",(function(){return il})),n.d(t,"ReportingMenu",(function(){return nc})),n.d(t,"ReportingMenuStore",(function(){return Wl})),n.d(t,"ReportingPagesStore",(function(){return Tl})),n.d(t,"ReportMetadataStore",(function(){return cc})),n.d(t,"WidgetsStore",(function(){return Zl})),n.d(t,"WidgetLoader",(function(){return bc})),n.d(t,"WidgetContainer",(function(){return Ic})),n.d(t,"WidgetByDimensionContainer",(function(){return Yc})),n.d(t,"Widget",(function(){return ts})),n.d(t,"ReportingPage",(function(){return ks})),n.d(t,"ReportExport",(function(){return nu})),n.d(t,"Sparkline",(function(){return lu})),n.d(t,"Progressbar",(function(){return fu})),n.d(t,"ContentIntro",(function(){return hu})),n.d(t,"ContentTable",(function(){return gu})),n.d(t,"AjaxForm",(function(){return wu})),n.d(t,"Passthrough",(function(){return Cu})),n.d(t,"DataTableActions",(function(){return Id})),n.d(t,"VersionInfoHeaderMessage",(function(){return Wd})),n.d(t,"MobileLeftMenu",(function(){return pm})),n.d(t,"scrollToAnchorInUrl",(function(){return wm})),"undefined"!==typeof window){var r=window.document.currentScript,o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}n("2342");
/*!
* Matomo - free/libre analytics platform
*
@@ -24,37 +24,37 @@ function a(e){if(!e)return"";for(var t=arguments.length,n=new Array(t>1?t-1:0),r
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
-function p(e){return $.datepicker.formatDate("yy-mm-dd",e)}function f(){var e=new Date(Date.now());return e.setTime(e.getTime()+60*e.getTimezoneOffset()*1e3),e.setHours(e.getHours()+(window.piwik.timezoneOffset||0)/3600),e.setHours(0),e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0),e}function h(e){if(e instanceof Date)return e;var t=decodeURIComponent(e).trim();if(""===t)throw new Error("Invalid date, empty string.");if("today"===t||"now"===t)return f();if("yesterday"===t||"yesterdaySameTime"===t){var n=f();return n.setDate(n.getDate()-1),n}if(t.match(/last[ -]?week/i)){var r=f();return r.setDate(r.getDate()-7),r}if(t.match(/last[ -]?month/i)){var o=f();return o.setDate(1),o.setMonth(o.getMonth()-1),o}if(t.match(/last[ -]?year/i)){var a=f();return a.setFullYear(a.getFullYear()-1),a}return $.datepicker.parseDate("yy-mm-dd",t)}function b(e){return 2===e.length&&(f()>=e[0]&&f()<=e[1])}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n=e[0]&&f()<=e[1])}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"day";if(/^previous/.test(t)){var r=e.getLastNRange(n,"2").startDate;return e.getLastNRange(n,t.substring(8),r)}if(/^last/.test(t))return e.getLastNRange(n,t.substring(4));var o=decodeURIComponent(t).split(",");return new e(h(o[0]),h(o[1]),n)}},{key:"getDisplayText",value:function(){return a("General_DateRangeInPeriodList")}}]),e}();m.addCustomPeriod("range",Y);var J,K=n("8bbf");function Q(e){return te(e)||ee(e)||Z(e)||X()}function X(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Z(e,t){if(e){if("string"===typeof e)return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(e,t):void 0}}function ee(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function te(e){if(Array.isArray(e))return ne(e)}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"day";if(/^previous/.test(t)){var r=e.getLastNRange(n,"2").startDate;return e.getLastNRange(n,t.substring(8),r)}if(/^last/.test(t))return e.getLastNRange(n,t.substring(4));var o=decodeURIComponent(t).split(",");return new e(h(o[0]),h(o[1]),n)}},{key:"getDisplayText",value:function(){return a("General_DateRangeInPeriodList")}}]),e}();m.addCustomPeriod("range",Y);var J,K=n("8bbf");function Q(e){return te(e)||ee(e)||Z(e)||X()}function X(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Z(e,t){if(e){if("string"===typeof e)return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(e,t):void 0}}function ee(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function te(e){if(Array.isArray(e))return ne(e)}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n="string"!==typeof e?this.stringify(e):e,r=Object.keys(t).length?this.getFinalHashParams(t,e):{},o=this.stringify(r),a="?".concat(n);o.length&&(a="".concat(a,"#?").concat(o)),window.broadcast.propagateNewPage("",void 0,void 0,void 0,a)}},{key:"getFinalHashParams",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="string"!==typeof e?e:this.parse(e),r="string"!==typeof e?t:this.parse(t);return Object.assign({period:r.period||this.parsed.value.period,date:r.date||this.parsed.value.date,segment:r.segment||this.parsed.value.segment},n)}},{key:"updateLocation",value:function(e){ce.helper.isReportingPage()?this.updateHash(e):this.updateUrl(e)}},{key:"getSearchParam",value:function(e){var t=window.location.href.split("#"),n=new RegExp("".concat(e,"(\\[]|=)"));if(t&&t[1]&&n.test(decodeURIComponent(t[1]))){var r=window.broadcast.getValueFromHash(e,window.location.href);if(r||"date"!==e&&"period"!==e&&"idSite"!==e)return r}return window.broadcast.getValueFromUrl(e,window.location.search)}},{key:"parse",value:function(e){return je.getValuesFromUrl("?".concat(e),!0)}},{key:"stringify",value:function(e){var t=Object.fromEntries(Object.entries(e).filter((function(e){var t=se(e,2),n=t[1];return""!==n&&null!==n&&void 0!==n})));return $.param(t).replace(/%5B%5D/g,"[]").replace(/%2C/g,",").replace(/\+/g,"%20")}},{key:"updatePeriodParamsFromUrl",value:function(){var e=this.getSearchParam("date"),t=this.getSearchParam("period");if(we(t,e)&&(Oe.period!==t||Oe.currentDateString!==e)){Oe.period=t;var n=m.parse(t,e).getDateRange();Oe.startDateString=p(n[0]),Oe.endDateString=p(n[1]),Oe.updateDateInTitle(e,t),"range"===Oe.period&&(e="".concat(Oe.startDateString,",").concat(Oe.endDateString)),Oe.currentDateString=e}}}]),e}(),Se=new ke,Ce=Se;function Ee(e){return Ee="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ee(e)}function De(e){return Ne(e)||Ve(e)||Te(e)||Pe()}function Pe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Te(e,t){if(e){if("string"===typeof e)return Ie(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ie(e,t):void 0}}function Ve(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ne(e){if(Array.isArray(e))return Ie(e)}function Ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n="string"!==typeof e?this.stringify(e):e,r=Object.keys(t).length?this.getFinalHashParams(t,e):{},o=this.stringify(r),a="?".concat(n);o.length&&(a="".concat(a,"#?").concat(o)),window.broadcast.propagateNewPage("",void 0,void 0,void 0,a)}},{key:"getFinalHashParams",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="string"!==typeof e?e:this.parse(e),r="string"!==typeof e?t:this.parse(t);return Object.assign({period:r.period||this.parsed.value.period,date:r.date||this.parsed.value.date,segment:r.segment||this.parsed.value.segment},n)}},{key:"updateLocation",value:function(e){ce.helper.isReportingPage()?this.updateHash(e):this.updateUrl(e)}},{key:"getSearchParam",value:function(e){var t=window.location.href.split("#"),n=new RegExp("".concat(e,"(\\[]|=)"));if(t&&t[1]&&n.test(decodeURIComponent(t[1]))){var r=window.broadcast.getValueFromHash(e,window.location.href);if(r||"date"!==e&&"period"!==e&&"idSite"!==e)return r}return window.broadcast.getValueFromUrl(e,window.location.search)}},{key:"parse",value:function(e){return je.getValuesFromUrl("?".concat(e),!0)}},{key:"stringify",value:function(e){var t=Object.fromEntries(Object.entries(e).filter((function(e){var t=se(e,2),n=t[1];return""!==n&&null!==n&&void 0!==n})));return $.param(t).replace(/%5B%5D/g,"[]").replace(/%2C/g,",").replace(/\+/g,"%20")}},{key:"updatePeriodParamsFromUrl",value:function(){var e=this.getSearchParam("date"),t=this.getSearchParam("period");if(we(t,e)&&(Oe.period!==t||Oe.currentDateString!==e)){Oe.period=t;var n=m.parse(t,e).getDateRange();Oe.startDateString=p(n[0]),Oe.endDateString=p(n[1]),Oe.updateDateInTitle(e,t),"range"===Oe.period&&(e="".concat(Oe.startDateString,",").concat(Oe.endDateString)),Oe.currentDateString=e}}}]),e}(),Se=new ke,Ce=Se;function Ee(e){return Ee="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ee(e)}function De(e){return Ne(e)||Ve(e)||Te(e)||Pe()}function Pe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Te(e,t){if(e){if("string"===typeof e)return Ie(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ie(e,t):void 0}}function Ve(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ne(e){if(Array.isArray(e))return Ie(e)}function Ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?t-1:0),r=1;rbt)try{var r=o&&("load"===o.type?"missing":o.type),a=o&&o.target&&o.target.src;i.message="Loading plugin ".concat(e," on demand failed.\n(").concat(r,": ").concat(a,")"),i.name="PluginOnDemandLoadError",i.type=r,i.request=a,t(i)}finally{t=void 0,n=void 0}else setTimeout(c,ht)}setTimeout(c,ht)};return r=setTimeout((function(){l({type:"timeout",target:a})}),ft),a.onerror=l,a.onload=l,document.head.appendChild(a),new Promise((function(e,r){n=e,t=r}))}
+ */ce.on("Matomo.topControlsRendered",(function(){st()}));var pt={},ft=120,ht=50,gt=1e3;function bt(e){if(pt[e])return pt[e];if(window[e])return Promise.resolve(window[e]);var t,n,r,o="?module=Proxy&action=getPluginUmdJs&plugin=".concat(e),a=document.createElement("script");a.charset="utf-8",a.timeout=ft,a.src=o;var i=new Error,l=function(o){a.onerror=null,a.onload=null,clearTimeout(r);var l=0;function c(){if(l+=ht,t&&n)if(window[e]&&n)try{n(window[e])}finally{t=void 0,n=void 0}else if(l>gt)try{var r=o&&("load"===o.type?"missing":o.type),a=o&&o.target&&o.target.src;i.message="Loading plugin ".concat(e," on demand failed.\n(").concat(r,": ").concat(a,")"),i.name="PluginOnDemandLoadError",i.type=r,i.request=a,t(i)}finally{t=void 0,n=void 0}else setTimeout(c,ht)}setTimeout(c,ht)};return r=setTimeout((function(){l({type:"timeout",target:a})}),ft),a.onerror=l,a.onload=l,document.head.appendChild(a),new Promise((function(e,r){n=e,t=r}))}
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
- */function vt(e,t){return Object(K["defineAsyncComponent"])((function(){return gt(e).then((function(e){return e||resolve(null),e[t]}))}))}
+ */function vt(e,t){return Object(K["defineAsyncComponent"])((function(){return bt(e).then((function(e){return e||resolve(null),e[t]}))}))}
/*!
* Matomo - free/libre analytics platform
*
@@ -173,7 +173,7 @@ function Gt(e,t){var n,r;null===(n=t.value)||void 0===n||!n.focused||null!==(r=t
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
-function fn(e){e.classList.add("expanded");var t=e.querySelector(".dropdown.positionInViewport");t&&ce.helper.setMarginLeftToBeInViewport(t)}function hn(e){e.classList.remove("expanded")}function bn(e,t){e.contains(t.target)||e.classList.remove("expanded")}function gn(e,t){27===t.which&&e.classList.remove("expanded")}var vn=document.documentElement,yn={mounted:function(e,t){t.value.onMouseEnter=fn.bind(null,e),t.value.onMouseLeave=hn.bind(null,e),t.value.onClickOutsideElement=bn.bind(null,e),t.value.onEscapeHandler=gn.bind(null,e),setTimeout((function(){var e=Ot.getRef(t.value.expander,t);e&&e.addEventListener("mouseenter",t.value.onMouseEnter)})),e.addEventListener("mouseleave",t.value.onMouseLeave),vn.addEventListener("keyup",t.value.onEscapeHandler),vn.addEventListener("mouseup",t.value.onClickOutsideElement)},unmounted:function(e,t){var n=Ot.getRef(t.value.expander,t);n&&n.removeEventListener("mouseenter",t.value.onMouseEnter),e.removeEventListener("mouseleave",t.value.onMouseLeave),document.removeEventListener("keyup",t.value.onEscapeHandler),document.removeEventListener("mouseup",t.value.onClickOutsideElement)}},On=window,jn=On.$,wn={mounted:function(e,t){var n=jn(e),r=t.value.sensitiveData,o=t.value.showCharacters||6,i=t.value.clickElementSelector||n,l="";function c(){n.html(r),jn(i).css({cursor:""}),jn(i).tooltip("destroy")}o>0&&(l+=r.slice(0,o)),l+=r.slice(o).replace(/./g,"*"),n.html(l),jn(i).tooltip({content:a("CoreHome_ClickToSeeFullInformation"),items:"*",track:!0}),jn(i).one("click",c),jn(i).css({cursor:"pointer"})}},kn=window,Sn=kn.$,Cn={mounted:function(e){var t=Sn(e);!t.attr("data-target")&&t.attr("data-activates")&&t.attr("data-target",t.attr("data-activates"));var n=t.attr("data-target");n&&Sn("#".concat(n)).length&&t.dropdown({inDuration:300,outDuration:225,constrainWidth:!1,belowOrigin:!0})}},En=window,Dn=En.$;function Pn(e,t){e.value.focusedElement!==t.target&&(e.value.focusedElement=t.target,Dn(t.target).select())}function Tn(e){var t=document.createRange();t.selectNode(e.target);var n=window.getSelection();n&&n.rangeCount>0&&n.removeAllRanges(),n&&n.addRange(t)}function Vn(e){delete e.value.focusedElement}var Nn={mounted:function(e,t){var n=e.tagName.toLowerCase();t.value.elementSupportsSelect="textarea"===n,t.value.elementSupportsSelect?(t.value.onFocusHandler=Pn.bind(null,t),t.value.onBlurHandler=Vn.bind(null,t),e.addEventListener("focus",t.value.onFocusHandler),e.addEventListener("blur",t.value.onBlurHandler)):(t.value.onClickHandler=Tn,e.addEventListener("click",t.value.onClickHandler))},unmounted:function(e,t){t.value.elementSupportsSelect?(e.removeEventListener("focus",t.value.onFocusHandler),e.removeEventListener("blur",t.value.onBlurHandler)):e.removeEventListener("click",t.value.onClickHandler)}};
+function fn(e){e.classList.add("expanded");var t=e.querySelector(".dropdown.positionInViewport");t&&ce.helper.setMarginLeftToBeInViewport(t)}function hn(e){e.classList.remove("expanded")}function gn(e,t){e.contains(t.target)||e.classList.remove("expanded")}function bn(e,t){27===t.which&&e.classList.remove("expanded")}var vn=document.documentElement,yn={mounted:function(e,t){t.value.onMouseEnter=fn.bind(null,e),t.value.onMouseLeave=hn.bind(null,e),t.value.onClickOutsideElement=gn.bind(null,e),t.value.onEscapeHandler=bn.bind(null,e),setTimeout((function(){var e=Ot.getRef(t.value.expander,t);e&&e.addEventListener("mouseenter",t.value.onMouseEnter)})),e.addEventListener("mouseleave",t.value.onMouseLeave),vn.addEventListener("keyup",t.value.onEscapeHandler),vn.addEventListener("mouseup",t.value.onClickOutsideElement)},unmounted:function(e,t){var n=Ot.getRef(t.value.expander,t);n&&n.removeEventListener("mouseenter",t.value.onMouseEnter),e.removeEventListener("mouseleave",t.value.onMouseLeave),document.removeEventListener("keyup",t.value.onEscapeHandler),document.removeEventListener("mouseup",t.value.onClickOutsideElement)}},On=window,jn=On.$,wn={mounted:function(e,t){var n=jn(e),r=t.value.sensitiveData,o=t.value.showCharacters||6,i=t.value.clickElementSelector||n,l="";function c(){n.html(r),jn(i).css({cursor:""}),jn(i).tooltip("destroy")}o>0&&(l+=r.slice(0,o)),l+=r.slice(o).replace(/./g,"*"),n.html(l),jn(i).tooltip({content:a("CoreHome_ClickToSeeFullInformation"),items:"*",track:!0}),jn(i).one("click",c),jn(i).css({cursor:"pointer"})}},kn=window,Sn=kn.$,Cn={mounted:function(e){var t=Sn(e);!t.attr("data-target")&&t.attr("data-activates")&&t.attr("data-target",t.attr("data-activates"));var n=t.attr("data-target");n&&Sn("#".concat(n)).length&&t.dropdown({inDuration:300,outDuration:225,constrainWidth:!1,belowOrigin:!0})}},En=window,Dn=En.$;function Pn(e,t){e.value.focusedElement!==t.target&&(e.value.focusedElement=t.target,Dn(t.target).select())}function Tn(e){var t=document.createRange();t.selectNode(e.target);var n=window.getSelection();n&&n.rangeCount>0&&n.removeAllRanges(),n&&n.addRange(t)}function Vn(e){delete e.value.focusedElement}var Nn={mounted:function(e,t){var n=e.tagName.toLowerCase();t.value.elementSupportsSelect="textarea"===n,t.value.elementSupportsSelect?(t.value.onFocusHandler=Pn.bind(null,t),t.value.onBlurHandler=Vn.bind(null,t),e.addEventListener("focus",t.value.onFocusHandler),e.addEventListener("blur",t.value.onBlurHandler)):(t.value.onClickHandler=Tn,e.addEventListener("click",t.value.onClickHandler))},unmounted:function(e,t){t.value.elementSupportsSelect?(e.removeEventListener("focus",t.value.onFocusHandler),e.removeEventListener("blur",t.value.onBlurHandler)):e.removeEventListener("click",t.value.onClickHandler)}};
/*!
* Matomo - free/libre analytics platform
*
@@ -185,107 +185,107 @@ function fn(e){e.classList.add("expanded");var t=e.querySelector(".dropdown.posi
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
- */function Kn(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("RateFeature");return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",{class:"enrichedHeadline",onMouseenter:t[1]||(t[1]=function(t){return e.showIcons=!0}),onMouseleave:t[2]||(t[2]=function(t){return e.showIcons=!1}),ref:"root"},[e.editUrl?Object(K["createCommentVNode"])("",!0):(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Ln,[Object(K["renderSlot"])(e.$slots,"default")])),e.editUrl?(Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{key:1,class:"title",href:e.editUrl,title:e.translate("CoreHome_ClickToEditX",e.htmlEntities(e.actualFeatureName))},[Object(K["renderSlot"])(e.$slots,"default")],8,Mn)):Object(K["createCommentVNode"])("",!0),Object(K["withDirectives"])(Object(K["createElementVNode"])("span",_n,[e.helpUrl&&!e.actualInlineHelp?(Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{key:0,rel:"noreferrer noopener",target:"_blank",class:"helpIcon",href:e.helpUrl,title:e.translate("CoreHome_ExternalHelp")},Hn,8,Fn)):Object(K["createCommentVNode"])("",!0),e.actualInlineHelp?(Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{key:1,onClick:t[0]||(t[0]=function(t){return e.showInlineHelp=!e.showInlineHelp}),class:Object(K["normalizeClass"])(["helpIcon",{active:e.showInlineHelp}]),title:e.translate(e.reportGenerated?"General_HelpReport":"General_Help")},qn,10,Un)):Object(K["createCommentVNode"])("",!0),Object(K["createElementVNode"])("div",Wn,[Object(K["createVNode"])(i,{title:e.actualFeatureName},null,8,["title"])])],512),[[K["vShow"],e.showIcons||e.showInlineHelp]]),Object(K["withDirectives"])(Object(K["createElementVNode"])("div",zn,[Object(K["createElementVNode"])("div",{innerHTML:e.$sanitize(e.actualInlineHelp)},null,8,Gn),""!=e.reportGenerated?(Object(K["openBlock"])(),Object(K["createElementBlock"])("span",{key:0,class:"helpDate",innerHTML:e.$sanitize(e.reportGenerated)},null,8,Yn)):Object(K["createCommentVNode"])("",!0),e.helpUrl?(Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{key:1,rel:"noreferrer noopener",target:"_blank",class:"readMore",href:e.helpUrl},Object(K["toDisplayString"])(e.translate("General_MoreDetails")),9,Jn)):Object(K["createCommentVNode"])("",!0)],512),[[K["vShow"],e.showInlineHelp]])],544)}var Qn=vt("Feedback","RateFeature"),Xn=Object(K["defineComponent"])({props:{helpUrl:{type:String,default:""},editUrl:{type:String,default:""},reportGenerated:String,featureName:String,inlineHelp:String},components:{RateFeature:Qn},data:function(){return{showIcons:!1,showInlineHelp:!1,actualFeatureName:this.featureName,actualInlineHelp:this.inlineHelp}},watch:{inlineHelp:function(e){this.actualInlineHelp=e},featureName:function(e){this.actualFeatureName=e}},mounted:function(){var e,t=this.$refs.root;if(!this.actualInlineHelp){var n,r=t.querySelector(".title .inlineHelp");if(!r&&null!==(n=t.parentElement)&&void 0!==n&&n.nextElementSibling&&(r=t.parentElement.nextElementSibling.querySelector(".reportDocumentation")),r){var o,a=null===(o=r.getAttribute("data-content"))||void 0===o?void 0:o.trim();a&&a.length&&(this.actualInlineHelp="".concat(a,"
"),setTimeout((function(){return r.remove()}),0))}}this.actualFeatureName||(this.actualFeatureName=null===(e=t.querySelector(".title"))||void 0===e?void 0:e.textContent);if(ce.period&&ce.currentDateString){var i=m.parse(ce.period,ce.currentDateString);this.reportGenerated&&i.containsToday()&&window.$(t.querySelector(".report-generated")).tooltip({track:!0,content:this.reportGenerated,items:"div",show:!1,hide:!1})}},methods:{htmlEntities:function(e){return ce.helper.htmlEntities(e)}}});Xn.render=Kn;var Zn=Xn,er={class:"card",ref:"root"},tr={class:"card-content"},nr={key:0,class:"card-title"},rr={key:1,class:"card-title"},or={ref:"content"};function ar(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("EnrichedHeadline");return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",er,[Object(K["createElementVNode"])("div",tr,[!e.contentTitle||e.actualFeature||e.helpUrl||e.actualHelpText?Object(K["createCommentVNode"])("",!0):(Object(K["openBlock"])(),Object(K["createElementBlock"])("h2",nr,Object(K["toDisplayString"])(e.decode(e.contentTitle)),1)),e.contentTitle&&(e.actualFeature||e.helpUrl||e.actualHelpText)?(Object(K["openBlock"])(),Object(K["createElementBlock"])("h2",rr,[Object(K["createVNode"])(i,{"feature-name":e.actualFeature,"help-url":e.helpUrl,"inline-help":e.actualHelpText},{default:Object(K["withCtx"])((function(){return[Object(K["createTextVNode"])(Object(K["toDisplayString"])(e.decode(e.contentTitle)),1)]})),_:1},8,["feature-name","help-url","inline-help"])])):Object(K["createCommentVNode"])("",!0),Object(K["createElementVNode"])("div",or,[Object(K["renderSlot"])(e.$slots,"default")],512)])],512)}var ir=null,lr=window,cr=lr.$,sr=Object(K["defineComponent"])({props:{contentTitle:String,feature:String,helpUrl:String,helpText:String,anchor:String},components:{EnrichedHeadline:Zn},data:function(){return{actualFeature:this.feature,actualHelpText:this.helpText}},watch:{feature:function(e){this.actualFeature=e},helpText:function(e){this.actualHelpText=e}},mounted:function(){var e=this,t=this.$refs.root,n=this.$refs.content;if(this.anchor&&t&&t.parentElement){var r=document.createElement("a");r.id=this.anchor,cr(t.parentElement).prepend(r)}setTimeout((function(){var t=n.querySelector(".contentHelp");t&&(e.actualHelpText=t.innerHTML,t.remove())}),0),this.actualFeature&&"true"===this.actualFeature&&(this.actualFeature=this.contentTitle),null===ir&&(ir=document.querySelector("#content.admin"));var o=null;if(ir&&(o=ir.offsetTop),o||0===o){var a=t.closest(".widgetLoader"),i=a?a.offsetTop:t.offsetTop;i-o<17&&(t.style.marginTop="0")}},methods:{decode:function(e){return ce.helper.htmlDecode(e)}}});sr.render=ar;var ur=sr,dr={key:0,ref:"root",class:"matomo-comparisons"},mr={class:"comparison-type"},pr=["title"],fr=["href"],hr=["title"],br={class:"comparison-period-label"},gr=["onClick"],vr=["title"],yr={class:"loadingPiwik",style:{display:"none"}},Or=["alt"];function jr(e,t,n,r,o,a){var i=Object(K["resolveDirective"])("tooltips");return e.isComparing?Object(K["withDirectives"])((Object(K["openBlock"])(),Object(K["createElementBlock"])("div",dr,[Object(K["createElementVNode"])("h3",null,Object(K["toDisplayString"])(e.translate("General_Comparisons")),1),(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.segmentComparisons,(function(t,n){return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",{class:"comparison card",key:t.index},[Object(K["createElementVNode"])("div",mr,Object(K["toDisplayString"])(e.translate("General_Segment")),1),Object(K["createElementVNode"])("div",{class:"title",title:t.title+"
"+decodeURIComponent(t.params.segment)},[Object(K["createElementVNode"])("a",{target:"_blank",href:e.getUrlToSegment(t.params.segment)},Object(K["toDisplayString"])(t.title),9,fr)],8,pr),(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.periodComparisons,(function(n){return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",{class:"comparison-period",key:n.index,title:e.getComparisonTooltip(t,n)},[Object(K["createElementVNode"])("span",{class:"comparison-dot",style:Object(K["normalizeStyle"])({"background-color":e.getSeriesColor(t,n)})},null,4),Object(K["createElementVNode"])("span",br,Object(K["toDisplayString"])(n.title)+" ("+Object(K["toDisplayString"])(e.getComparisonPeriodType(n))+") ",1)],8,hr)})),128)),e.segmentComparisons.length>1?(Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{key:0,class:"remove-button",onClick:function(t){return e.removeSegmentComparison(n)}},[Object(K["createElementVNode"])("span",{class:"icon icon-close",title:e.translate("General_ClickToRemoveComp")},null,8,vr)],8,gr)):Object(K["createCommentVNode"])("",!0)])})),128)),Object(K["createElementVNode"])("div",yr,[Object(K["createElementVNode"])("img",{src:"plugins/Morpheus/images/loading-blue.gif",alt:e.translate("General_LoadingData")},null,8,Or),Object(K["createTextVNode"])(" "+Object(K["toDisplayString"])(e.translate("General_LoadingData")),1)])],512)),[[i,{duration:200,delay:200,content:e.transformTooltipContent}]]):Object(K["createCommentVNode"])("",!0)}function wr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kr(e,t){for(var n=0;n".concat(a,"
"),setTimeout((function(){return r.remove()}),0))}}this.actualFeatureName||(this.actualFeatureName=null===(e=t.querySelector(".title"))||void 0===e?void 0:e.textContent);if(ce.period&&ce.currentDateString){var i=m.parse(ce.period,ce.currentDateString);this.reportGenerated&&i.containsToday()&&window.$(t.querySelector(".report-generated")).tooltip({track:!0,content:this.reportGenerated,items:"div",show:!1,hide:!1})}},methods:{htmlEntities:function(e){return ce.helper.htmlEntities(e)}}});Xn.render=Kn;var Zn=Xn,er={class:"card-content"},tr={key:0,class:"card-title"},nr={key:1,class:"card-title"},rr={ref:"content"},or={key:0,class:"card-image hide-on-med-and-down"},ar=["src","alt"];function ir(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("EnrichedHeadline");return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",{class:Object(K["normalizeClass"])({card:!0,"card-with-image":!!this.imageUrl}),ref:"root"},[Object(K["createElementVNode"])("div",er,[!e.contentTitle||e.actualFeature||e.helpUrl||e.actualHelpText?Object(K["createCommentVNode"])("",!0):(Object(K["openBlock"])(),Object(K["createElementBlock"])("h2",tr,Object(K["toDisplayString"])(e.decode(e.contentTitle)),1)),e.contentTitle&&(e.actualFeature||e.helpUrl||e.actualHelpText)?(Object(K["openBlock"])(),Object(K["createElementBlock"])("h2",nr,[Object(K["createVNode"])(i,{"feature-name":e.actualFeature,"help-url":e.helpUrl,"inline-help":e.actualHelpText},{default:Object(K["withCtx"])((function(){return[Object(K["createTextVNode"])(Object(K["toDisplayString"])(e.decode(e.contentTitle)),1)]})),_:1},8,["feature-name","help-url","inline-help"])])):Object(K["createCommentVNode"])("",!0),Object(K["createElementVNode"])("div",rr,[Object(K["renderSlot"])(e.$slots,"default")],512)]),e.imageUrl?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",or,[Object(K["createElementVNode"])("img",{src:e.imageUrl,alt:e.actualImageAltText},null,8,ar)])):Object(K["createCommentVNode"])("",!0)],2)}var lr=null,cr=window,sr=cr.$,ur=Object(K["defineComponent"])({props:{contentTitle:String,feature:String,helpUrl:String,helpText:String,anchor:String,imageUrl:String,imageAltText:String},components:{EnrichedHeadline:Zn},data:function(){return{actualFeature:this.feature,actualHelpText:this.helpText,actualImageAltText:this.imageAltText?this.imageAltText:this.contentTitle}},watch:{feature:function(e){this.actualFeature=e},helpText:function(e){this.actualHelpText=e}},mounted:function(){var e=this,t=this.$refs.root,n=this.$refs.content;if(this.anchor&&t&&t.parentElement){var r=document.createElement("a");r.id=this.anchor,sr(t.parentElement).prepend(r)}setTimeout((function(){var t=n.querySelector(".contentHelp");t&&(e.actualHelpText=t.innerHTML,t.remove())}),0),this.actualFeature&&"true"===this.actualFeature&&(this.actualFeature=this.contentTitle),null===lr&&(lr=document.querySelector("#content.admin"));var o=null;if(lr&&(o=lr.offsetTop),o||0===o){var a=t.closest(".widgetLoader"),i=a?a.offsetTop:t.offsetTop;i-o<17&&(t.style.marginTop="0")}},methods:{decode:function(e){return ce.helper.htmlDecode(e)}}});ur.render=ir;var dr=ur,mr={key:0,ref:"root",class:"matomo-comparisons"},pr={class:"comparison-type"},fr=["title"],hr=["href"],gr=["title"],br={class:"comparison-period-label"},vr=["onClick"],yr=["title"],Or={class:"loadingPiwik",style:{display:"none"}},jr=["alt"];function wr(e,t,n,r,o,a){var i=Object(K["resolveDirective"])("tooltips");return e.isComparing?Object(K["withDirectives"])((Object(K["openBlock"])(),Object(K["createElementBlock"])("div",mr,[Object(K["createElementVNode"])("h3",null,Object(K["toDisplayString"])(e.translate("General_Comparisons")),1),(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.segmentComparisons,(function(t,n){return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",{class:"comparison card",key:t.index},[Object(K["createElementVNode"])("div",pr,Object(K["toDisplayString"])(e.translate("General_Segment")),1),Object(K["createElementVNode"])("div",{class:"title",title:t.title+"
"+decodeURIComponent(t.params.segment)},[Object(K["createElementVNode"])("a",{target:"_blank",href:e.getUrlToSegment(t.params.segment)},Object(K["toDisplayString"])(t.title),9,hr)],8,fr),(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.periodComparisons,(function(n){return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",{class:"comparison-period",key:n.index,title:e.getComparisonTooltip(t,n)},[Object(K["createElementVNode"])("span",{class:"comparison-dot",style:Object(K["normalizeStyle"])({"background-color":e.getSeriesColor(t,n)})},null,4),Object(K["createElementVNode"])("span",br,Object(K["toDisplayString"])(n.title)+" ("+Object(K["toDisplayString"])(e.getComparisonPeriodType(n))+") ",1)],8,gr)})),128)),e.segmentComparisons.length>1?(Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{key:0,class:"remove-button",onClick:function(t){return e.removeSegmentComparison(n)}},[Object(K["createElementVNode"])("span",{class:"icon icon-close",title:e.translate("General_ClickToRemoveComp")},null,8,yr)],8,vr)):Object(K["createCommentVNode"])("",!0)])})),128)),Object(K["createElementVNode"])("div",Or,[Object(K["createElementVNode"])("img",{src:"plugins/Morpheus/images/loading-blue.gif",alt:e.translate("General_LoadingData")},null,8,jr),Object(K["createTextVNode"])(" "+Object(K["toDisplayString"])(e.translate("General_LoadingData")),1)])],512)),[[i,{duration:200,delay:200,content:e.transformTooltipContent}]]):Object(K["createCommentVNode"])("",!0)}function kr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sr(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1||this.periodComparisons.value.length>1)}},{key:"isComparingPeriods",value:function(){return this.getPeriodComparisons().length>1}},{key:"getSegmentComparisons",value:function(){return this.isComparisonEnabled()?this.segmentComparisons.value:[]}},{key:"getPeriodComparisons",value:function(){return this.isComparisonEnabled()?this.periodComparisons.value:[]}},{key:"getSeriesColor",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.getComparisonSeriesIndex(t.index,e.index)%_r;if(0===n)return this.colors["series".concat(r)];var o=n%Fr;return this.colors["series".concat(r,"-shade").concat(o)]}},{key:"getSeriesColorName",value:function(e,t){var n="series".concat(e%_r);return t>0&&(n+="-shade".concat(t%Fr)),n}},{key:"isComparisonEnabled",value:function(){return this.isEnabled.value}},{key:"getIndividualComparisonRowIndices",value:function(e){var t=this.getSegmentComparisons().length,n=e%t,r=Math.floor(e/t);return{segmentIndex:n,periodIndex:r}}},{key:"getComparisonSeriesIndex",value:function(e,t){var n=this.getSegmentComparisons().length;return e*n+t}},{key:"getAllComparisonSeries",value:function(){var e=this,t=[],n=0;return this.getPeriodComparisons().forEach((function(r){e.getSegmentComparisons().forEach((function(o){t.push({index:n,params:Object.assign(Object.assign({},o.params),r.params),color:e.colors["series".concat(n)]}),n+=1}))})),t}},{key:"removeSegmentComparison",value:function(e){if(!this.isComparisonEnabled())throw new Error("Comparison disabled.");var t=Pr(this.segmentComparisons.value);t.splice(e,1);var n={};0===e&&(n.segment=t[0].params.segment),this.updateQueryParamsFromComparisons(t,this.periodComparisons.value,n)}},{key:"addSegmentComparison",value:function(e){if(!this.isComparisonEnabled())throw new Error("Comparison disabled.");var t=this.segmentComparisons.value.concat([{params:e,index:-1,title:""}]);this.updateQueryParamsFromComparisons(t,this.periodComparisons.value)}},{key:"updateQueryParamsFromComparisons",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={},o={},a=!1,i=!1;e.forEach((function(e){a?r[e.params.segment]=!0:a=!0})),t.forEach((function(e){i?o["".concat(e.params.period,"|").concat(e.params.date)]=!0:i=!0}));var l=[],c=[];Object.keys(o).forEach((function(e){var t=e.split("|");l.push(t[0]),c.push(t[1])}));var s={compareSegments:Object.keys(r),comparePeriods:l,compareDates:c},u=ce.helper.isReportingPage()?Ce.hashParsed.value:Ce.urlParsed.value;Ce.updateLocation(Object.assign(Object.assign(Object.assign({},u),s),n))}},{key:"getAllSeriesColors",value:function(){var e=ce.ColorManager;if(!e)return[];for(var t=[],n=0;n<_r;n+=1){t.push("series".concat(n));for(var r=0;r")):e}return{isComparing:e,segmentComparisons:t,periodComparisons:n,getSeriesColor:r,transformTooltipContent:o}},methods:{comparisonHasSegment:function(e){return"undefined"!==typeof e.params.segment},removeSegmentComparison:function(e){window.$(this.$refs.root).tooltip("destroy"),Ur.removeSegmentComparison(e)},getComparisonPeriodType:function(e){var t=e.params.period;if("range"===t)return a("CoreHome_PeriodRange");var n=a("Intl_Period".concat(t.substring(0,1).toUpperCase()).concat(t.substring(1)));return n.substring(0,1).toUpperCase()+n.substring(1)},getComparisonTooltip:function(e,t){if(this.comparisonTooltips&&Object.keys(this.comparisonTooltips).length)return(this.comparisonTooltips[t.index]||{})[e.index]},getUrlToSegment:function(e){var t=Object.assign({},Ce.hashParsed.value);return delete t.comparePeriods,delete t.compareDates,delete t.compareSegments,t.segment=e,"".concat(window.location.search,"#?").concat(Ce.stringify(t))},onComparisonsChanged:function(){var e=this;if(this.comparisonTooltips=null,Ur.isComparing()){var t=Ur.getPeriodComparisons(),n=Ur.getSegmentComparisons();Qe.fetch({method:"API.getProcessedReport",apiModule:"VisitsSummary",apiAction:"get",compare:"1",compareSegments:Ce.getSearchParam("compareSegments"),comparePeriods:Ce.getSearchParam("comparePeriods"),compareDates:Ce.getSearchParam("compareDates"),format_metrics:"1"}).then((function(r){e.comparisonTooltips={},t.forEach((function(t){e.comparisonTooltips[t.index]={},n.forEach((function(n){var o=e.generateComparisonTooltip(r,t,n);e.comparisonTooltips[t.index][n.index]=o}))}))}))}},generateComparisonTooltip:function(e,t,n){if(!e.reportData.comparisons)return"";var r=Ur.getComparisonSeriesIndex(t.index,0),o=e.reportData.comparisons[r],i=Ur.getComparisonSeriesIndex(t.index,n.index),l=e.reportData.comparisons[i],c=e.reportData.comparisons[n.index],s='',u=(l.nb_visits/o.nb_visits*100).toFixed(2);return u="".concat(u,"%"),s+=a("General_ComparisonCardTooltip1",["'".concat(l.compareSegmentPretty,"'"),l.comparePeriodPretty,u,l.nb_visits.toString(),o.nb_visits.toString()]),t.index>0&&(s+="
",s+=a("General_ComparisonCardTooltip2",[l.nb_visits_change.toString(),c.compareSegmentPretty,c.comparePeriodPretty])),s+="
",s}},mounted:function(){var e=this;ce.on("piwikComparisonsChanged",(function(){e.onComparisonsChanged()})),this.onComparisonsChanged()}});$r.render=jr;var qr=$r,Wr={ref:"root",class:"menuDropdown"},zr=["title"],Gr=["innerHTML"],Yr=Object(K["createElementVNode"])("span",{class:"icon-chevron-down reporting-menu-sub-icon"},null,-1),Jr={class:"items"},Kr={key:0,class:"search"},Qr=["placeholder"],Xr=["title"],Zr=["title"];function eo(e,t,n,r,o,a){var i=Object(K["resolveDirective"])("focus-if"),l=Object(K["resolveDirective"])("focus-anywhere-but-here");return Object(K["withDirectives"])((Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Wr,[Object(K["createElementVNode"])("span",{class:"title",onClick:t[0]||(t[0]=function(t){return e.showItems=!e.showItems}),title:e.tooltip},[Object(K["createElementVNode"])("span",{innerHTML:e.$sanitize(this.actualMenuTitle)},null,8,Gr),Yr],8,zr),Object(K["withDirectives"])(Object(K["createElementVNode"])("div",Jr,[e.showSearch&&e.showItems?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Kr,[Object(K["withDirectives"])(Object(K["createElementVNode"])("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=function(t){return e.searchTerm=t}),onKeydown:t[2]||(t[2]=function(t){return e.onSearchTermKeydown(t)}),placeholder:e.translate("General_Search")},null,40,Qr),[[K["vModelText"],e.searchTerm],[i,{focused:e.showItems}]]),Object(K["withDirectives"])(Object(K["createElementVNode"])("div",{class:"search_ico icon-search",title:e.translate("General_Search")},null,8,Xr),[[K["vShow"],!e.searchTerm]]),Object(K["withDirectives"])(Object(K["createElementVNode"])("div",{onClick:t[3]||(t[3]=function(t){e.searchTerm="",e.searchItems("")}),class:"reset icon-close",title:e.translate("General_Clear")},null,8,Zr),[[K["vShow"],e.searchTerm]])])):Object(K["createCommentVNode"])("",!0),Object(K["createElementVNode"])("div",{onClick:t[4]||(t[4]=function(t){return e.selectItem(t)})},[Object(K["renderSlot"])(e.$slots,"default")])],512),[[K["vShow"],e.showItems]])],512)),[[l,{blur:e.lostFocus}]])}var to=window,no=to.$,ro=Object(K["defineComponent"])({props:{menuTitle:String,tooltip:String,showSearch:Boolean,menuTitleChangeOnClick:Boolean},directives:{FocusAnywhereButHere:zt,FocusIf:Yt},emits:["afterSelect"],watch:{menuTitle:function(){this.actualMenuTitle=this.menuTitle}},data:function(){return{showItems:!1,searchTerm:"",actualMenuTitle:this.menuTitle}},methods:{lostFocus:function(){this.showItems=!1},selectItem:function(e){var t=e.target.classList;!t.contains("item")||t.contains("disabled")||t.contains("separator")||(this.menuTitleChangeOnClick&&(this.actualMenuTitle=(e.target.textContent||"").replace(/[\u0000-\u2666]/g,(function(e){return"".concat(e.charCodeAt(0),";")}))),this.showItems=!1,no(this.$slots.default()[0].el).find(".item").removeClass("active"),t.add("active"),this.$emit("afterSelect",e.target))},onSearchTermKeydown:function(){var e=this;setTimeout((function(){e.searchItems(e.searchTerm)}))},searchItems:function(e){var t=e.toLowerCase();no(this.$refs.root).find(".item").each((function(e,n){var r=no(n);-1===r.text().toLowerCase().indexOf(t)?r.hide():r.show()}))}}});ro.render=eo;var oo=ro,ao={ref:"root"};function io(e,t,n,r,o,a){return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",ao,null,512)}var lo=1,co=window,so=co.$,uo=Object(K["defineComponent"])({props:{selectedDateStart:Date,selectedDateEnd:Date,highlightedDateStart:Date,highlightedDateEnd:Date,viewDate:[String,Date],stepMonths:Number,disableMonthDropdown:Boolean,options:Object},emits:["cellHover","cellHoverLeave","dateSelect"],setup:function(e,t){var n=Object(K["ref"])(null);function r(t,n){var r=t.children("a");if(e.selectedDateStart&&e.selectedDateEnd&&n>=e.selectedDateStart&&n<=e.selectedDateEnd?t.addClass("ui-datepicker-current-period"):t.removeClass("ui-datepicker-current-period"),e.highlightedDateStart&&e.highlightedDateEnd&&n>=e.highlightedDateStart&&n<=e.highlightedDateEnd){var o=r.length?r:t;o.addClass("ui-state-hover")}else t.removeClass("ui-state-hover"),r.removeClass("ui-state-hover")}function o(e,t,n){if(e.hasClass("ui-datepicker-other-month"))return a(e,t,n);var r=parseInt(e.children("a,span").text(),10);return new Date(n,t,r)}function a(e,t,n){var r,a=e.parent(),i=a.children("td");if(a.is(":first-child")){var l=a.children("td:not(.ui-datepicker-other-month)").first();return r=o(l,t,n),r.setDate(i.index(e)-i.index(l)+1),r}var c=a.children("td:not(.ui-datepicker-other-month)").last();return r=o(c,t,n),r.setDate(r.getDate()+i.index(e)-i.index(c)),r}function i(){var e=so(n.value),t=e.find("td[data-month]"),r=parseInt(t.attr("data-month"),10),o=parseInt(t.attr("data-year"),10);return[r,o]}function l(){var e=so(n.value),t=e.find(".ui-datepicker-calendar"),a=i(),l=t.find("td"),c=l.first(),s=o(c,a[0],a[1]);l.each((function(){r(so(this),s),s.setDate(s.getDate()+1)}))}function c(){if(!e.viewDate)return!1;var t;if("string"===typeof e.viewDate)try{t=h(e.viewDate)}catch(a){return!1}else t=e.viewDate;var r=so(n.value),o=i();return(o[0]!==t.getMonth()||o[1]!==t.getFullYear())&&(r.datepicker("setDate",t),!0)}function s(){var e=so(n.value);e.find("td[data-event]").off("click"),e.find(".ui-state-active").removeClass("ui-state-active"),e.find(".ui-datepicker-current-day").removeClass("ui-datepicker-current-day"),e.find(".ui-datepicker-prev,.ui-datepicker-next").attr("href","")}function u(){var t=so(n.value),r=e.stepMonths||lo;if(t.datepicker("option","stepMonths")===r)return!1;var o=so(".ui-datepicker-month",t).val(),a=so(".ui-datepicker-year",t).val();return t.datepicker("option","stepMonths",r).datepicker("setDate",new Date(a,o)),s(),!0}function d(){var t=so(n.value),r=t.find(".ui-datepicker-month")[0];r&&(r.disabled=e.disableMonthDropdown)}function m(){if(so(this).hasClass("ui-state-hover")){var e=so(this).parent(),t=e.parent();e.is(":first-child")?t.find("a").first().click():t.find("a").last().click()}}function p(){d(),l()}return Object(K["watch"])((function(){return Object.assign({},e)}),(function(e,t){var n=!1;[function(e){return e.selectedDateStart},function(e){return e.selectedDateEnd},function(e){return e.highlightedDateStart},function(e){return e.highlightedDateEnd}].forEach((function(r){if(!n){var o=r(e),a=r(t);!o&&a&&(n=!0),o&&!a&&(n=!0),o&&a&&o.getTime()!==a.getTime()&&(n=!0)}})),e.viewDate!==t.viewDate&&c()&&(n=!0),e.stepMonths!==t.stepMonths&&u(),e.disableMonthDropdown!==t.disableMonthDropdown&&d(),n&&l()})),Object(K["onMounted"])((function(){var r=so(n.value),a=e.options||{},f=Object.assign(Object.assign(Object.assign({},ce.getBaseDatePickerOptions()),a),{},{onChangeMonthYear:function(){setTimeout((function(){s()}))}});r.datepicker(f),r.on("mouseover","tbody td a",(function(e){e.originalEvent&&l()})),r.on("mouseenter","tbody td",(function(){var e=i(),n=so(this),r=o(n,e[0],e[1]);t.emit("cellHover",{date:r,$cell:n})})),r.on("mouseout","tbody td a",(function(){l()})),r.on("mouseleave","table",(function(){return t.emit("cellHoverLeave")})).on("mouseenter","thead",(function(){return t.emit("cellHoverLeave")})),r.on("click","tbody td.ui-datepicker-other-month",m),r.on("click",(function(e){e.preventDefault();var t=so(e.target).closest("a");(t.is(".ui-datepicker-next")||t.is(".ui-datepicker-prev"))&&p()})),r.on("click","td[data-month]",(function(e){var n=so(e.target).closest("td"),r=parseInt(n.attr("data-month"),10),o=parseInt(n.attr("data-year"),10),a=parseInt(n.children("a,span").text(),10);t.emit("dateSelect",{date:new Date(o,r,a)})}));var h=u();c(),d(),h||s(),l()})),{root:n}}});uo.render=io;var mo=uo,po={class:"dateRangePicker"},fo={id:"calendarRangeFrom"},ho={id:"calendarRangeTo"};function bo(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("DatePicker");return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",po,[Object(K["createElementVNode"])("div",fo,[Object(K["createElementVNode"])("h6",null,[Object(K["createTextVNode"])(Object(K["toDisplayString"])(e.translate("General_DateRangeFrom"))+" ",1),Object(K["withDirectives"])(Object(K["createElementVNode"])("input",{type:"text",id:"inputCalendarFrom",name:"inputCalendarFrom",class:"browser-default","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.startDateText=t}),onKeydown:t[1]||(t[1]=function(t){return e.onRangeInputChanged("from",t)}),onKeyup:t[2]||(t[2]=function(t){return e.handleEnterPress(t)})},null,544),[[K["vModelText"],e.startDateText]])]),Object(K["createVNode"])(i,{id:"calendarFrom","view-date":e.startDate,"selected-date-start":e.fromPickerSelectedDates[0],"selected-date-end":e.fromPickerSelectedDates[1],"highlighted-date-start":e.fromPickerHighlightedDates[0],"highlighted-date-end":e.fromPickerHighlightedDates[1],onDateSelect:t[3]||(t[3]=function(t){return e.setStartRangeDate(t.date)}),onCellHover:t[4]||(t[4]=function(t){return e.fromPickerHighlightedDates=e.getNewHighlightedDates(t.date,t.$cell)}),onCellHoverLeave:t[5]||(t[5]=function(t){return e.fromPickerHighlightedDates=[null,null]})},null,8,["view-date","selected-date-start","selected-date-end","highlighted-date-start","highlighted-date-end"])]),Object(K["createElementVNode"])("div",ho,[Object(K["createElementVNode"])("h6",null,[Object(K["createTextVNode"])(Object(K["toDisplayString"])(e.translate("General_DateRangeTo"))+" ",1),Object(K["withDirectives"])(Object(K["createElementVNode"])("input",{type:"text",id:"inputCalendarTo",name:"inputCalendarTo",class:"browser-default","onUpdate:modelValue":t[6]||(t[6]=function(t){return e.endDateText=t}),onKeydown:t[7]||(t[7]=function(t){return e.onRangeInputChanged("to",t)}),onKeyup:t[8]||(t[8]=function(t){return e.handleEnterPress(t)})},null,544),[[K["vModelText"],e.endDateText]])]),Object(K["createVNode"])(i,{id:"calendarTo","view-date":e.endDate,"selected-date-start":e.toPickerSelectedDates[0],"selected-date-end":e.toPickerSelectedDates[1],"highlighted-date-start":e.toPickerHighlightedDates[0],"highlighted-date-end":e.toPickerHighlightedDates[1],onDateSelect:t[9]||(t[9]=function(t){return e.setEndRangeDate(t.date)}),onCellHover:t[10]||(t[10]=function(t){return e.toPickerHighlightedDates=e.getNewHighlightedDates(t.date,t.$cell)}),onCellHoverLeave:t[11]||(t[11]=function(t){return e.toPickerHighlightedDates=[null,null]})},null,8,["view-date","selected-date-start","selected-date-end","highlighted-date-start","highlighted-date-end"])])])}var go="YYYY-MM-DD",vo=Object(K["defineComponent"])({props:{startDate:String,endDate:String},components:{DatePicker:mo},data:function(){var e=null;try{this.startDate&&(e=h(this.startDate))}catch(n){}var t=null;try{this.endDate&&(t=h(this.endDate))}catch(n){}return{fromPickerSelectedDates:[e,e],toPickerSelectedDates:[t,t],fromPickerHighlightedDates:[null,null],toPickerHighlightedDates:[null,null],startDateText:this.startDate,endDateText:this.endDate,startDateInvalid:!1,endDateInvalid:!1}},emits:["rangeChange","submit"],watch:{startDate:function(){this.startDateText=this.startDate,this.setStartRangeDateFromStr(this.startDate)},endDate:function(){this.endDateText=this.endDate,this.setEndRangeDateFromStr(this.endDate)}},mounted:function(){this.rangeChanged()},methods:{setStartRangeDate:function(e){this.fromPickerSelectedDates=[e,e],this.rangeChanged()},setEndRangeDate:function(e){this.toPickerSelectedDates=[e,e],this.rangeChanged()},onRangeInputChanged:function(e,t){var n=this;setTimeout((function(){"from"===e?n.setStartRangeDateFromStr(t.target.value):n.setEndRangeDateFromStr(t.target.value)}))},getNewHighlightedDates:function(e,t){return t.hasClass("ui-datepicker-unselectable")?null:[e,e]},handleEnterPress:function(e){13===e.keyCode&&this.$emit("submit",{start:this.startDate,end:this.endDate})},setStartRangeDateFromStr:function(e){this.startDateInvalid=!0;var t=null;try{e&&e.length===go.length&&(t=h(e))}catch(n){}t&&(this.fromPickerSelectedDates=[t,t],this.startDateInvalid=!1,this.rangeChanged())},setEndRangeDateFromStr:function(e){this.endDateInvalid=!0;var t=null;try{e&&e.length===go.length&&(t=h(e))}catch(n){}t&&(this.toPickerSelectedDates=[t,t],this.endDateInvalid=!1,this.rangeChanged())},rangeChanged:function(){this.$emit("rangeChange",{start:this.fromPickerSelectedDates[0]?p(this.fromPickerSelectedDates[0]):null,end:this.toPickerSelectedDates[0]?p(this.toPickerSelectedDates[0]):null})}}});vo.render=bo;var yo=vo;function Oo(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("DatePicker");return Object(K["openBlock"])(),Object(K["createBlock"])(i,{"selected-date-start":e.selectedDates[0],"selected-date-end":e.selectedDates[1],"highlighted-date-start":e.highlightedDates[0],"highlighted-date-end":e.highlightedDates[1],"view-date":e.viewDate,"step-months":"year"===e.period?12:1,"disable-month-dropdown":"year"===e.period,onCellHover:t[0]||(t[0]=function(t){return e.onHoverNormalCell(t.date,t.$cell)}),onCellHoverLeave:t[1]||(t[1]=function(t){return e.onHoverLeaveNormalCells()}),onDateSelect:t[2]||(t[2]=function(t){return e.onDateSelected(t.date)})},null,8,["selected-date-start","selected-date-end","highlighted-date-start","highlighted-date-end","view-date","step-months","disable-month-dropdown"])}var jo=new Date(ce.minDateYear,ce.minDateMonth-1,ce.minDateDay),wo=new Date(ce.maxDateYear,ce.maxDateMonth-1,ce.maxDateDay),ko=Object(K["defineComponent"])({props:{period:{type:String,required:!0},date:[String,Date]},components:{DatePicker:mo},emits:["select"],setup:function(e,t){var n=Object(K["ref"])(e.date),r=Object(K["ref"])([null,null]),o=Object(K["ref"])([null,null]);function a(t){var n=m.get(e.period).parse(t).getDateRange();return n[0]=jon[1]?n[1]:wo,n}function i(t,n){var r=two,i=n.hasClass("ui-datepicker-other-month")&&("month"===e.period||"day"===e.period);o.value=r||i?[null,null]:a(t)}function l(){o.value=[null,null]}function c(e){t.emit("select",{date:e})}function s(){if(!e.period||!e.date)return r.value=[null,null],void(n.value=null);r.value=a(e.date),n.value=h(e.date)}return Object(K["watch"])(e,s),s(),{selectedDates:r,highlightedDates:o,viewDate:n,onHoverNormalCell:i,onHoverLeaveNormalCells:l,onDateSelected:c}}});ko.render=Oo;var So=ko,Co={key:0},Eo=["data-notification-instance-id"],Do={key:1},Po={class:"notification-body"},To=["innerHTML"],Vo={key:1};function No(e,t,n,r,o,a){return Object(K["openBlock"])(),Object(K["createBlock"])(K["Transition"],{name:"toast"===e.type?"slow-fade-out":void 0,onAfterLeave:t[1]||(t[1]=function(t){return e.toastClosed()})},{default:Object(K["withCtx"])((function(){return[e.deleted?Object(K["createCommentVNode"])("",!0):(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Co,[Object(K["createVNode"])(K["Transition"],{name:"toast"===e.type?"toast-slide-up":void 0,appear:""},{default:Object(K["withCtx"])((function(){return[Object(K["createElementVNode"])("div",null,[Object(K["createVNode"])(K["Transition"],{name:e.animate?"fade-in":void 0,appear:""},{default:Object(K["withCtx"])((function(){return[Object(K["createElementVNode"])("div",{class:Object(K["normalizeClass"])(["notification system",e.cssClasses]),style:Object(K["normalizeStyle"])(e.style),ref:"root","data-notification-instance-id":e.notificationInstanceId},[e.canClose?(Object(K["openBlock"])(),Object(K["createElementBlock"])("button",{key:0,type:"button",class:"close","data-dismiss":"alert",onClick:t[0]||(t[0]=function(t){return e.closeNotification(t)})}," × ")):Object(K["createCommentVNode"])("",!0),e.title?(Object(K["openBlock"])(),Object(K["createElementBlock"])("strong",Do,Object(K["toDisplayString"])(e.title),1)):Object(K["createCommentVNode"])("",!0),Object(K["createElementVNode"])("div",Po,[e.message?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",{key:0,innerHTML:e.$sanitize(e.message)},null,8,To)):Object(K["createCommentVNode"])("",!0),e.message?Object(K["createCommentVNode"])("",!0):(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Vo,[Object(K["renderSlot"])(e.$slots,"default")]))])],14,Eo)]})),_:3},8,["name"])])]})),_:3},8,["name"])]))]})),_:3},8,["name"])}var Io=window,xo=Io.$,Bo=Object(K["defineComponent"])({props:{notificationId:String,notificationInstanceId:String,title:String,context:String,type:String,noclear:Boolean,toastLength:{type:Number,default:12e3},style:[String,Object],animate:Boolean,message:String,cssClass:String},computed:{cssClasses:function(){var e={};return this.context&&(e["notification-".concat(this.context)]=!0),this.cssClass&&(e[this.cssClass]=!0),e},canClose:function(){return"persistent"===this.type||!this.noclear}},emits:["closed"],data:function(){return{deleted:!1}},mounted:function(){var e=this,t=function(){setTimeout((function(){e.deleted=!0}),e.toastLength)};"toast"===this.type&&t(),this.style&&xo(this.$refs.root).css(this.style)},methods:{toastClosed:function(){var e=this;Object(K["nextTick"])((function(){e.$emit("closed")}))},closeNotification:function(e){var t=this;this.canClose&&e&&e.target&&(this.deleted=!0,Object(K["nextTick"])((function(){t.$emit("closed")}))),this.markNotificationAsRead()},markNotificationAsRead:function(){this.notificationId&&Qe.post({module:"CoreHome",action:"markNotificationAsRead"},{notificationId:this.notificationId},{withTokenInUrl:!0})}}});Bo.render=No;var Ao=Bo,Lo={class:"notification-group"},Mo=["innerHTML"];function _o(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("Notification");return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Lo,[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.notifications,(function(t,n){return Object(K["openBlock"])(),Object(K["createBlock"])(i,{key:t.id||"no-id-".concat(n),"notification-id":t.id,title:t.title,context:t.context,type:t.type,noclear:t.noclear,"toast-length":t.toastLength,style:Object(K["normalizeStyle"])(t.style),animate:t.animate,message:t.message,"notification-instance-id":t.notificationInstanceId,"css-class":t.class,onClosed:function(n){return e.removeNotification(t.id)}},{default:Object(K["withCtx"])((function(){return[Object(K["createElementVNode"])("div",{innerHTML:e.$sanitize(t.message)},null,8,Mo)]})),_:2},1032,["notification-id","title","context","type","noclear","toast-length","style","animate","message","notification-instance-id","css-class","onClosed"])})),128))])}function Fo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ro(e,t){for(var n=0;n1||this.periodComparisons.value.length>1)}},{key:"isComparingPeriods",value:function(){return this.getPeriodComparisons().length>1}},{key:"getSegmentComparisons",value:function(){return this.isComparisonEnabled()?this.segmentComparisons.value:[]}},{key:"getPeriodComparisons",value:function(){return this.isComparisonEnabled()?this.periodComparisons.value:[]}},{key:"getSeriesColor",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.getComparisonSeriesIndex(t.index,e.index)%Fr;if(0===n)return this.colors["series".concat(r)];var o=n%Rr;return this.colors["series".concat(r,"-shade").concat(o)]}},{key:"getSeriesColorName",value:function(e,t){var n="series".concat(e%Fr);return t>0&&(n+="-shade".concat(t%Rr)),n}},{key:"isComparisonEnabled",value:function(){return this.isEnabled.value}},{key:"getIndividualComparisonRowIndices",value:function(e){var t=this.getSegmentComparisons().length,n=e%t,r=Math.floor(e/t);return{segmentIndex:n,periodIndex:r}}},{key:"getComparisonSeriesIndex",value:function(e,t){var n=this.getSegmentComparisons().length;return e*n+t}},{key:"getAllComparisonSeries",value:function(){var e=this,t=[],n=0;return this.getPeriodComparisons().forEach((function(r){e.getSegmentComparisons().forEach((function(o){t.push({index:n,params:Object.assign(Object.assign({},o.params),r.params),color:e.colors["series".concat(n)]}),n+=1}))})),t}},{key:"removeSegmentComparison",value:function(e){if(!this.isComparisonEnabled())throw new Error("Comparison disabled.");var t=Tr(this.segmentComparisons.value);t.splice(e,1);var n={};0===e&&(n.segment=t[0].params.segment),this.updateQueryParamsFromComparisons(t,this.periodComparisons.value,n)}},{key:"addSegmentComparison",value:function(e){if(!this.isComparisonEnabled())throw new Error("Comparison disabled.");var t=this.segmentComparisons.value.concat([{params:e,index:-1,title:""}]);this.updateQueryParamsFromComparisons(t,this.periodComparisons.value)}},{key:"updateQueryParamsFromComparisons",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={},o={},a=!1,i=!1;e.forEach((function(e){a?r[e.params.segment]=!0:a=!0})),t.forEach((function(e){i?o["".concat(e.params.period,"|").concat(e.params.date)]=!0:i=!0}));var l=[],c=[];Object.keys(o).forEach((function(e){var t=e.split("|");l.push(t[0]),c.push(t[1])}));var s={compareSegments:Object.keys(r),comparePeriods:l,compareDates:c},u=ce.helper.isReportingPage()?Ce.hashParsed.value:Ce.urlParsed.value;Ce.updateLocation(Object.assign(Object.assign(Object.assign({},u),s),n))}},{key:"getAllSeriesColors",value:function(){var e=ce.ColorManager;if(!e)return[];for(var t=[],n=0;n")):e}return{isComparing:e,segmentComparisons:t,periodComparisons:n,getSeriesColor:r,transformTooltipContent:o}},methods:{comparisonHasSegment:function(e){return"undefined"!==typeof e.params.segment},removeSegmentComparison:function(e){window.$(this.$refs.root).tooltip("destroy"),$r.removeSegmentComparison(e)},getComparisonPeriodType:function(e){var t=e.params.period;if("range"===t)return a("CoreHome_PeriodRange");var n=a("Intl_Period".concat(t.substring(0,1).toUpperCase()).concat(t.substring(1)));return n.substring(0,1).toUpperCase()+n.substring(1)},getComparisonTooltip:function(e,t){if(this.comparisonTooltips&&Object.keys(this.comparisonTooltips).length)return(this.comparisonTooltips[t.index]||{})[e.index]},getUrlToSegment:function(e){var t=Object.assign({},Ce.hashParsed.value);return delete t.comparePeriods,delete t.compareDates,delete t.compareSegments,t.segment=e,"".concat(window.location.search,"#?").concat(Ce.stringify(t))},onComparisonsChanged:function(){var e=this;if(this.comparisonTooltips=null,$r.isComparing()){var t=$r.getPeriodComparisons(),n=$r.getSegmentComparisons();Qe.fetch({method:"API.getProcessedReport",apiModule:"VisitsSummary",apiAction:"get",compare:"1",compareSegments:Ce.getSearchParam("compareSegments"),comparePeriods:Ce.getSearchParam("comparePeriods"),compareDates:Ce.getSearchParam("compareDates"),format_metrics:"1"}).then((function(r){e.comparisonTooltips={},t.forEach((function(t){e.comparisonTooltips[t.index]={},n.forEach((function(n){var o=e.generateComparisonTooltip(r,t,n);e.comparisonTooltips[t.index][n.index]=o}))}))}))}},generateComparisonTooltip:function(e,t,n){if(!e.reportData.comparisons)return"";var r=$r.getComparisonSeriesIndex(t.index,0),o=e.reportData.comparisons[r],i=$r.getComparisonSeriesIndex(t.index,n.index),l=e.reportData.comparisons[i],c=e.reportData.comparisons[n.index],s='',u=(l.nb_visits/o.nb_visits*100).toFixed(2);return u="".concat(u,"%"),s+=a("General_ComparisonCardTooltip1",["'".concat(l.compareSegmentPretty,"'"),l.comparePeriodPretty,u,l.nb_visits.toString(),o.nb_visits.toString()]),t.index>0&&(s+="
",s+=a("General_ComparisonCardTooltip2",[l.nb_visits_change.toString(),c.compareSegmentPretty,c.comparePeriodPretty])),s+="
",s}},mounted:function(){var e=this;ce.on("piwikComparisonsChanged",(function(){e.onComparisonsChanged()})),this.onComparisonsChanged()}});qr.render=wr;var Wr=qr,zr={ref:"root",class:"menuDropdown"},Gr=["title"],Yr=["innerHTML"],Jr=Object(K["createElementVNode"])("span",{class:"icon-chevron-down reporting-menu-sub-icon"},null,-1),Kr={class:"items"},Qr={key:0,class:"search"},Xr=["placeholder"],Zr=["title"],eo=["title"];function to(e,t,n,r,o,a){var i=Object(K["resolveDirective"])("focus-if"),l=Object(K["resolveDirective"])("focus-anywhere-but-here");return Object(K["withDirectives"])((Object(K["openBlock"])(),Object(K["createElementBlock"])("div",zr,[Object(K["createElementVNode"])("span",{class:"title",onClick:t[0]||(t[0]=function(t){return e.showItems=!e.showItems}),title:e.tooltip},[Object(K["createElementVNode"])("span",{innerHTML:e.$sanitize(this.actualMenuTitle)},null,8,Yr),Jr],8,Gr),Object(K["withDirectives"])(Object(K["createElementVNode"])("div",Kr,[e.showSearch&&e.showItems?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Qr,[Object(K["withDirectives"])(Object(K["createElementVNode"])("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=function(t){return e.searchTerm=t}),onKeydown:t[2]||(t[2]=function(t){return e.onSearchTermKeydown(t)}),placeholder:e.translate("General_Search")},null,40,Xr),[[K["vModelText"],e.searchTerm],[i,{focused:e.showItems}]]),Object(K["withDirectives"])(Object(K["createElementVNode"])("div",{class:"search_ico icon-search",title:e.translate("General_Search")},null,8,Zr),[[K["vShow"],!e.searchTerm]]),Object(K["withDirectives"])(Object(K["createElementVNode"])("div",{onClick:t[3]||(t[3]=function(t){e.searchTerm="",e.searchItems("")}),class:"reset icon-close",title:e.translate("General_Clear")},null,8,eo),[[K["vShow"],e.searchTerm]])])):Object(K["createCommentVNode"])("",!0),Object(K["createElementVNode"])("div",{onClick:t[4]||(t[4]=function(t){return e.selectItem(t)})},[Object(K["renderSlot"])(e.$slots,"default")])],512),[[K["vShow"],e.showItems]])],512)),[[l,{blur:e.lostFocus}]])}var no=window,ro=no.$,oo=Object(K["defineComponent"])({props:{menuTitle:String,tooltip:String,showSearch:Boolean,menuTitleChangeOnClick:Boolean},directives:{FocusAnywhereButHere:zt,FocusIf:Yt},emits:["afterSelect"],watch:{menuTitle:function(){this.actualMenuTitle=this.menuTitle}},data:function(){return{showItems:!1,searchTerm:"",actualMenuTitle:this.menuTitle}},methods:{lostFocus:function(){this.showItems=!1},selectItem:function(e){var t=e.target.classList;!t.contains("item")||t.contains("disabled")||t.contains("separator")||(this.menuTitleChangeOnClick&&(this.actualMenuTitle=(e.target.textContent||"").replace(/[\u0000-\u2666]/g,(function(e){return"".concat(e.charCodeAt(0),";")}))),this.showItems=!1,ro(this.$slots.default()[0].el).find(".item").removeClass("active"),t.add("active"),this.$emit("afterSelect",e.target))},onSearchTermKeydown:function(){var e=this;setTimeout((function(){e.searchItems(e.searchTerm)}))},searchItems:function(e){var t=e.toLowerCase();ro(this.$refs.root).find(".item").each((function(e,n){var r=ro(n);-1===r.text().toLowerCase().indexOf(t)?r.hide():r.show()}))}}});oo.render=to;var ao=oo,io={ref:"root"};function lo(e,t,n,r,o,a){return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",io,null,512)}var co=1,so=window,uo=so.$,mo=Object(K["defineComponent"])({props:{selectedDateStart:Date,selectedDateEnd:Date,highlightedDateStart:Date,highlightedDateEnd:Date,viewDate:[String,Date],stepMonths:Number,disableMonthDropdown:Boolean,options:Object},emits:["cellHover","cellHoverLeave","dateSelect"],setup:function(e,t){var n=Object(K["ref"])(null);function r(t,n){var r=t.children("a");if(e.selectedDateStart&&e.selectedDateEnd&&n>=e.selectedDateStart&&n<=e.selectedDateEnd?t.addClass("ui-datepicker-current-period"):t.removeClass("ui-datepicker-current-period"),e.highlightedDateStart&&e.highlightedDateEnd&&n>=e.highlightedDateStart&&n<=e.highlightedDateEnd){var o=r.length?r:t;o.addClass("ui-state-hover")}else t.removeClass("ui-state-hover"),r.removeClass("ui-state-hover")}function o(e,t,n){if(e.hasClass("ui-datepicker-other-month"))return a(e,t,n);var r=parseInt(e.children("a,span").text(),10);return new Date(n,t,r)}function a(e,t,n){var r,a=e.parent(),i=a.children("td");if(a.is(":first-child")){var l=a.children("td:not(.ui-datepicker-other-month)").first();return r=o(l,t,n),r.setDate(i.index(e)-i.index(l)+1),r}var c=a.children("td:not(.ui-datepicker-other-month)").last();return r=o(c,t,n),r.setDate(r.getDate()+i.index(e)-i.index(c)),r}function i(){var e=uo(n.value),t=e.find("td[data-month]"),r=parseInt(t.attr("data-month"),10),o=parseInt(t.attr("data-year"),10);return[r,o]}function l(){var e=uo(n.value),t=e.find(".ui-datepicker-calendar"),a=i(),l=t.find("td"),c=l.first(),s=o(c,a[0],a[1]);l.each((function(){r(uo(this),s),s.setDate(s.getDate()+1)}))}function c(){if(!e.viewDate)return!1;var t;if("string"===typeof e.viewDate)try{t=h(e.viewDate)}catch(a){return!1}else t=e.viewDate;var r=uo(n.value),o=i();return(o[0]!==t.getMonth()||o[1]!==t.getFullYear())&&(r.datepicker("setDate",t),!0)}function s(){var e=uo(n.value);e.find("td[data-event]").off("click"),e.find(".ui-state-active").removeClass("ui-state-active"),e.find(".ui-datepicker-current-day").removeClass("ui-datepicker-current-day"),e.find(".ui-datepicker-prev,.ui-datepicker-next").attr("href","")}function u(){var t=uo(n.value),r=e.stepMonths||co;if(t.datepicker("option","stepMonths")===r)return!1;var o=uo(".ui-datepicker-month",t).val(),a=uo(".ui-datepicker-year",t).val();return t.datepicker("option","stepMonths",r).datepicker("setDate",new Date(a,o)),s(),!0}function d(){var t=uo(n.value),r=t.find(".ui-datepicker-month")[0];r&&(r.disabled=e.disableMonthDropdown)}function m(){if(uo(this).hasClass("ui-state-hover")){var e=uo(this).parent(),t=e.parent();e.is(":first-child")?t.find("a").first().click():t.find("a").last().click()}}function p(){d(),l()}return Object(K["watch"])((function(){return Object.assign({},e)}),(function(e,t){var n=!1;[function(e){return e.selectedDateStart},function(e){return e.selectedDateEnd},function(e){return e.highlightedDateStart},function(e){return e.highlightedDateEnd}].forEach((function(r){if(!n){var o=r(e),a=r(t);!o&&a&&(n=!0),o&&!a&&(n=!0),o&&a&&o.getTime()!==a.getTime()&&(n=!0)}})),e.viewDate!==t.viewDate&&c()&&(n=!0),e.stepMonths!==t.stepMonths&&u(),e.disableMonthDropdown!==t.disableMonthDropdown&&d(),n&&l()})),Object(K["onMounted"])((function(){var r=uo(n.value),a=e.options||{},f=Object.assign(Object.assign(Object.assign({},ce.getBaseDatePickerOptions()),a),{},{onChangeMonthYear:function(){setTimeout((function(){s()}))}});r.datepicker(f),r.on("mouseover","tbody td a",(function(e){e.originalEvent&&l()})),r.on("mouseenter","tbody td",(function(){var e=i(),n=uo(this),r=o(n,e[0],e[1]);t.emit("cellHover",{date:r,$cell:n})})),r.on("mouseout","tbody td a",(function(){l()})),r.on("mouseleave","table",(function(){return t.emit("cellHoverLeave")})).on("mouseenter","thead",(function(){return t.emit("cellHoverLeave")})),r.on("click","tbody td.ui-datepicker-other-month",m),r.on("click",(function(e){e.preventDefault();var t=uo(e.target).closest("a");(t.is(".ui-datepicker-next")||t.is(".ui-datepicker-prev"))&&p()})),r.on("click","td[data-month]",(function(e){var n=uo(e.target).closest("td"),r=parseInt(n.attr("data-month"),10),o=parseInt(n.attr("data-year"),10),a=parseInt(n.children("a,span").text(),10);t.emit("dateSelect",{date:new Date(o,r,a)})}));var h=u();c(),d(),h||s(),l()})),{root:n}}});mo.render=lo;var po=mo,fo={class:"dateRangePicker"},ho={id:"calendarRangeFrom"},go={id:"calendarRangeTo"};function bo(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("DatePicker");return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",fo,[Object(K["createElementVNode"])("div",ho,[Object(K["createElementVNode"])("h6",null,[Object(K["createTextVNode"])(Object(K["toDisplayString"])(e.translate("General_DateRangeFrom"))+" ",1),Object(K["withDirectives"])(Object(K["createElementVNode"])("input",{type:"text",id:"inputCalendarFrom",name:"inputCalendarFrom",class:"browser-default","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.startDateText=t}),onKeydown:t[1]||(t[1]=function(t){return e.onRangeInputChanged("from",t)}),onKeyup:t[2]||(t[2]=function(t){return e.handleEnterPress(t)})},null,544),[[K["vModelText"],e.startDateText]])]),Object(K["createVNode"])(i,{id:"calendarFrom","view-date":e.startDate,"selected-date-start":e.fromPickerSelectedDates[0],"selected-date-end":e.fromPickerSelectedDates[1],"highlighted-date-start":e.fromPickerHighlightedDates[0],"highlighted-date-end":e.fromPickerHighlightedDates[1],onDateSelect:t[3]||(t[3]=function(t){return e.setStartRangeDate(t.date)}),onCellHover:t[4]||(t[4]=function(t){return e.fromPickerHighlightedDates=e.getNewHighlightedDates(t.date,t.$cell)}),onCellHoverLeave:t[5]||(t[5]=function(t){return e.fromPickerHighlightedDates=[null,null]})},null,8,["view-date","selected-date-start","selected-date-end","highlighted-date-start","highlighted-date-end"])]),Object(K["createElementVNode"])("div",go,[Object(K["createElementVNode"])("h6",null,[Object(K["createTextVNode"])(Object(K["toDisplayString"])(e.translate("General_DateRangeTo"))+" ",1),Object(K["withDirectives"])(Object(K["createElementVNode"])("input",{type:"text",id:"inputCalendarTo",name:"inputCalendarTo",class:"browser-default","onUpdate:modelValue":t[6]||(t[6]=function(t){return e.endDateText=t}),onKeydown:t[7]||(t[7]=function(t){return e.onRangeInputChanged("to",t)}),onKeyup:t[8]||(t[8]=function(t){return e.handleEnterPress(t)})},null,544),[[K["vModelText"],e.endDateText]])]),Object(K["createVNode"])(i,{id:"calendarTo","view-date":e.endDate,"selected-date-start":e.toPickerSelectedDates[0],"selected-date-end":e.toPickerSelectedDates[1],"highlighted-date-start":e.toPickerHighlightedDates[0],"highlighted-date-end":e.toPickerHighlightedDates[1],onDateSelect:t[9]||(t[9]=function(t){return e.setEndRangeDate(t.date)}),onCellHover:t[10]||(t[10]=function(t){return e.toPickerHighlightedDates=e.getNewHighlightedDates(t.date,t.$cell)}),onCellHoverLeave:t[11]||(t[11]=function(t){return e.toPickerHighlightedDates=[null,null]})},null,8,["view-date","selected-date-start","selected-date-end","highlighted-date-start","highlighted-date-end"])])])}var vo="YYYY-MM-DD",yo=Object(K["defineComponent"])({props:{startDate:String,endDate:String},components:{DatePicker:po},data:function(){var e=null;try{this.startDate&&(e=h(this.startDate))}catch(n){}var t=null;try{this.endDate&&(t=h(this.endDate))}catch(n){}return{fromPickerSelectedDates:[e,e],toPickerSelectedDates:[t,t],fromPickerHighlightedDates:[null,null],toPickerHighlightedDates:[null,null],startDateText:this.startDate,endDateText:this.endDate,startDateInvalid:!1,endDateInvalid:!1}},emits:["rangeChange","submit"],watch:{startDate:function(){this.startDateText=this.startDate,this.setStartRangeDateFromStr(this.startDate)},endDate:function(){this.endDateText=this.endDate,this.setEndRangeDateFromStr(this.endDate)}},mounted:function(){this.rangeChanged()},methods:{setStartRangeDate:function(e){this.fromPickerSelectedDates=[e,e],this.rangeChanged()},setEndRangeDate:function(e){this.toPickerSelectedDates=[e,e],this.rangeChanged()},onRangeInputChanged:function(e,t){var n=this;setTimeout((function(){"from"===e?n.setStartRangeDateFromStr(t.target.value):n.setEndRangeDateFromStr(t.target.value)}))},getNewHighlightedDates:function(e,t){return t.hasClass("ui-datepicker-unselectable")?null:[e,e]},handleEnterPress:function(e){13===e.keyCode&&this.$emit("submit",{start:this.startDate,end:this.endDate})},setStartRangeDateFromStr:function(e){this.startDateInvalid=!0;var t=null;try{e&&e.length===vo.length&&(t=h(e))}catch(n){}t&&(this.fromPickerSelectedDates=[t,t],this.startDateInvalid=!1,this.rangeChanged())},setEndRangeDateFromStr:function(e){this.endDateInvalid=!0;var t=null;try{e&&e.length===vo.length&&(t=h(e))}catch(n){}t&&(this.toPickerSelectedDates=[t,t],this.endDateInvalid=!1,this.rangeChanged())},rangeChanged:function(){this.$emit("rangeChange",{start:this.fromPickerSelectedDates[0]?p(this.fromPickerSelectedDates[0]):null,end:this.toPickerSelectedDates[0]?p(this.toPickerSelectedDates[0]):null})}}});yo.render=bo;var Oo=yo;function jo(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("DatePicker");return Object(K["openBlock"])(),Object(K["createBlock"])(i,{"selected-date-start":e.selectedDates[0],"selected-date-end":e.selectedDates[1],"highlighted-date-start":e.highlightedDates[0],"highlighted-date-end":e.highlightedDates[1],"view-date":e.viewDate,"step-months":"year"===e.period?12:1,"disable-month-dropdown":"year"===e.period,onCellHover:t[0]||(t[0]=function(t){return e.onHoverNormalCell(t.date,t.$cell)}),onCellHoverLeave:t[1]||(t[1]=function(t){return e.onHoverLeaveNormalCells()}),onDateSelect:t[2]||(t[2]=function(t){return e.onDateSelected(t.date)})},null,8,["selected-date-start","selected-date-end","highlighted-date-start","highlighted-date-end","view-date","step-months","disable-month-dropdown"])}var wo=new Date(ce.minDateYear,ce.minDateMonth-1,ce.minDateDay),ko=new Date(ce.maxDateYear,ce.maxDateMonth-1,ce.maxDateDay),So=Object(K["defineComponent"])({props:{period:{type:String,required:!0},date:[String,Date]},components:{DatePicker:po},emits:["select"],setup:function(e,t){var n=Object(K["ref"])(e.date),r=Object(K["ref"])([null,null]),o=Object(K["ref"])([null,null]);function a(t){var n=m.get(e.period).parse(t).getDateRange();return n[0]=won[1]?n[1]:ko,n}function i(t,n){var r=tko,i=n.hasClass("ui-datepicker-other-month")&&("month"===e.period||"day"===e.period);o.value=r||i?[null,null]:a(t)}function l(){o.value=[null,null]}function c(e){t.emit("select",{date:e})}function s(){if(!e.period||!e.date)return r.value=[null,null],void(n.value=null);r.value=a(e.date),n.value=h(e.date)}return Object(K["watch"])(e,s),s(),{selectedDates:r,highlightedDates:o,viewDate:n,onHoverNormalCell:i,onHoverLeaveNormalCells:l,onDateSelected:c}}});So.render=jo;var Co=So,Eo={key:0},Do=["data-notification-instance-id"],Po={key:1},To={class:"notification-body"},Vo=["innerHTML"],No={key:1};function Io(e,t,n,r,o,a){return Object(K["openBlock"])(),Object(K["createBlock"])(K["Transition"],{name:"toast"===e.type?"slow-fade-out":void 0,onAfterLeave:t[1]||(t[1]=function(t){return e.toastClosed()})},{default:Object(K["withCtx"])((function(){return[e.deleted?Object(K["createCommentVNode"])("",!0):(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Eo,[Object(K["createVNode"])(K["Transition"],{name:"toast"===e.type?"toast-slide-up":void 0,appear:""},{default:Object(K["withCtx"])((function(){return[Object(K["createElementVNode"])("div",null,[Object(K["createVNode"])(K["Transition"],{name:e.animate?"fade-in":void 0,appear:""},{default:Object(K["withCtx"])((function(){return[Object(K["createElementVNode"])("div",{class:Object(K["normalizeClass"])(["notification system",e.cssClasses]),style:Object(K["normalizeStyle"])(e.style),ref:"root","data-notification-instance-id":e.notificationInstanceId},[e.canClose?(Object(K["openBlock"])(),Object(K["createElementBlock"])("button",{key:0,type:"button",class:"close","data-dismiss":"alert",onClick:t[0]||(t[0]=function(t){return e.closeNotification(t)})}," × ")):Object(K["createCommentVNode"])("",!0),e.title?(Object(K["openBlock"])(),Object(K["createElementBlock"])("strong",Po,Object(K["toDisplayString"])(e.title),1)):Object(K["createCommentVNode"])("",!0),Object(K["createElementVNode"])("div",To,[e.message?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",{key:0,innerHTML:e.$sanitize(e.message)},null,8,Vo)):Object(K["createCommentVNode"])("",!0),e.message?Object(K["createCommentVNode"])("",!0):(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",No,[Object(K["renderSlot"])(e.$slots,"default")]))])],14,Do)]})),_:3},8,["name"])])]})),_:3},8,["name"])]))]})),_:3},8,["name"])}var xo=window,Bo=xo.$,Ao=Object(K["defineComponent"])({props:{notificationId:String,notificationInstanceId:String,title:String,context:String,type:String,noclear:Boolean,toastLength:{type:Number,default:12e3},style:[String,Object],animate:Boolean,message:String,cssClass:String},computed:{cssClasses:function(){var e={};return this.context&&(e["notification-".concat(this.context)]=!0),this.cssClass&&(e[this.cssClass]=!0),e},canClose:function(){return"persistent"===this.type||!this.noclear}},emits:["closed"],data:function(){return{deleted:!1}},mounted:function(){var e=this,t=function(){setTimeout((function(){e.deleted=!0}),e.toastLength)};"toast"===this.type&&t(),this.style&&Bo(this.$refs.root).css(this.style)},methods:{toastClosed:function(){var e=this;Object(K["nextTick"])((function(){e.$emit("closed")}))},closeNotification:function(e){var t=this;this.canClose&&e&&e.target&&(this.deleted=!0,Object(K["nextTick"])((function(){t.$emit("closed")}))),this.markNotificationAsRead()},markNotificationAsRead:function(){this.notificationId&&Qe.post({module:"CoreHome",action:"markNotificationAsRead"},{notificationId:this.notificationId},{withTokenInUrl:!0})}}});Ao.render=Io;var Lo=Ao,Mo={class:"notification-group"},_o=["innerHTML"];function Fo(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("Notification");return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Mo,[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.notifications,(function(t,n){return Object(K["openBlock"])(),Object(K["createBlock"])(i,{key:t.id||"no-id-".concat(n),"notification-id":t.id,title:t.title,context:t.context,type:t.type,noclear:t.noclear,"toast-length":t.toastLength,style:Object(K["normalizeStyle"])(t.style),animate:t.animate,message:t.message,"notification-instance-id":t.notificationInstanceId,"css-class":t.class,onClosed:function(n){return e.removeNotification(t.id)}},{default:Object(K["withCtx"])((function(){return[Object(K["createElementVNode"])("div",{innerHTML:e.$sanitize(t.message)},null,8,_o)]})),_:2},1032,["notification-id","title","context","type","noclear","toast-length","style","animate","message","notification-instance-id","css-class","onClosed"])})),128))])}function Ro(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ho(e,t){for(var n=0;n'),n="".concat(r," #modalNotificationContainer"),t=this.prependNotification)}var a=e.group||(n?n.toString():"");this.initializeNotificationContainer(n,a);var i=(this.nextNotificationId+=1).toString();return t.call(this,Object.assign(Object.assign({},e),{},{noclear:!!e.noclear,group:a,notificationId:e.id,notificationInstanceId:i,type:e.type||"transient"})),i}},{key:"scrollToNotification",value:function(e){setTimeout((function(){var t=document.querySelector("[data-notification-instance-id='".concat(e,"']"));t&&ce.helper.lazyScrollTo(t,250)}))}},{key:"toast",value:function(e){this.checkMessage(e.message);var t=e.placeat?qo(e.placeat):void 0;if(!t||!t.length)throw new Error("A valid selector is required for the placeat option when using Notification.toast().");var n=document.createElement("div");n.style.position="absolute",n.style.top="".concat(t.offset().top,"px"),n.style.left="".concat(t.offset().left,"px"),n.style.zIndex="1000",document.body.appendChild(n);var r=mt({render:function(){return Object(K["createVNode"])(Ao,Object.assign(Object.assign({},e),{},{notificationId:e.id,type:"toast",onClosed:function(){r.unmount()}}))}});r.mount(n)}},{key:"initializeNotificationContainer",value:function(e,t){if(e){var n=qo(e);if(!n.children(".notification-group").length){var r=window.CoreHome.NotificationGroup,o=mt({template:'',data:function(){return{group:t}}});o.component("NotificationGroup",r),o.mount(n[0])}}}},{key:"checkMessage",value:function(e){if(!e)throw new Error("No message given, cannot display notification")}}]),e}(),zo=new Wo,Go=zo;qo((function(){return zo.parseNotificationDivs()}));var Yo=Object(K["defineComponent"])({props:{group:String},components:{Notification:Ao},computed:{notifications:function(){var e=this;return Go.state.notifications.filter((function(t){return e.group?e.group===t.group:!t.group}))}},methods:{removeNotification:function(e){Go.remove(e)}}});Yo.render=_o;var Jo=Yo,Ko=Object(K["createElementVNode"])("span",{class:"icon-help"},null,-1),Qo=[Ko];
+ */var qo=window,Wo=qo.$,zo=function(){function e(){Ro(this,e),$o(this,"privateState",Object(K["reactive"])({notifications:[]})),$o(this,"nextNotificationId",0)}return Uo(e,[{key:"state",get:function(){return Object(K["readonly"])(this.privateState)}},{key:"appendNotification",value:function(e){this.checkMessage(e.message),e.id&&this.remove(e.id),this.privateState.notifications.push(e)}},{key:"prependNotification",value:function(e){this.checkMessage(e.message),e.id&&this.remove(e.id),this.privateState.notifications.unshift(e)}},{key:"remove",value:function(e){this.privateState.notifications=this.privateState.notifications.filter((function(t){return t.id!==e}))}},{key:"parseNotificationDivs",value:function(){var e=this,t=Wo('[data-role="notification"]'),n=[];t.each((function(e,r){var o=Wo(r),a=o.data(),i=o.html();i&&n.push(Object.assign(Object.assign({},a),{},{message:i,animate:!1})),t.remove()})),n.forEach((function(t){return e.show(t)}))}},{key:"clearTransientNotifications",value:function(){this.privateState.notifications=this.privateState.notifications.filter((function(e){return"transient"!==e.type}))}},{key:"show",value:function(e){this.checkMessage(e.message);var t=e.prepend?this.prependNotification:this.appendNotification,n="#notificationContainer";if(e.placeat)n=e.placeat;else{var r=".modal.open .modal-content",o=document.querySelector(r);o&&(o.querySelector("#modalNotificationContainer")||Wo(o).prepend(''),n="".concat(r," #modalNotificationContainer"),t=this.prependNotification)}var a=e.group||(n?n.toString():"");this.initializeNotificationContainer(n,a);var i=(this.nextNotificationId+=1).toString();return t.call(this,Object.assign(Object.assign({},e),{},{noclear:!!e.noclear,group:a,notificationId:e.id,notificationInstanceId:i,type:e.type||"transient"})),i}},{key:"scrollToNotification",value:function(e){setTimeout((function(){var t=document.querySelector("[data-notification-instance-id='".concat(e,"']"));t&&ce.helper.lazyScrollTo(t,250)}))}},{key:"toast",value:function(e){this.checkMessage(e.message);var t=e.placeat?Wo(e.placeat):void 0;if(!t||!t.length)throw new Error("A valid selector is required for the placeat option when using Notification.toast().");var n=document.createElement("div");n.style.position="absolute",n.style.top="".concat(t.offset().top,"px"),n.style.left="".concat(t.offset().left,"px"),n.style.zIndex="1000",document.body.appendChild(n);var r=mt({render:function(){return Object(K["createVNode"])(Lo,Object.assign(Object.assign({},e),{},{notificationId:e.id,type:"toast",onClosed:function(){r.unmount()}}))}});r.mount(n)}},{key:"initializeNotificationContainer",value:function(e,t){if(e){var n=Wo(e);if(!n.children(".notification-group").length){var r=window.CoreHome.NotificationGroup,o=mt({template:'',data:function(){return{group:t}}});o.component("NotificationGroup",r),o.mount(n[0])}}}},{key:"checkMessage",value:function(e){if(!e)throw new Error("No message given, cannot display notification")}}]),e}(),Go=new zo,Yo=Go;Wo((function(){return Go.parseNotificationDivs()}));var Jo=Object(K["defineComponent"])({props:{group:String},components:{Notification:Lo},computed:{notifications:function(){var e=this;return Yo.state.notifications.filter((function(t){return e.group?e.group===t.group:!t.group}))}},methods:{removeNotification:function(e){Yo.remove(e)}}});Jo.render=Fo;var Ko=Jo,Qo=Object(K["createElementVNode"])("span",{class:"icon-help"},null,-1),Xo=[Qo];
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
- */function Xo(e,t,n,r,o,a){return Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{class:"item-help-icon",tabindex:"5",href:"javascript:",onClick:t[0]||(t[0]=function(){return e.showHelp&&e.showHelp.apply(e,arguments)})},Qo)}var Zo="reportingMenu-help",ea=Object(K["defineComponent"])({props:{message:{type:String,required:!0},name:{type:String,required:!0}},data:function(){return{currentName:""}},methods:{showHelp:function(){if(""!==this.currentName)return Go.remove(Zo),void(this.currentName="");Go.show({context:"info",id:Zo,type:"help",noclear:!0,class:"help-notification",message:this.message,placeat:"#notificationContainer",prepend:!0}),""!==this.name&&(this.currentName=this.name)}}});ea.render=Xo;var ta=ea;function na(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ra(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.state.isInitialized&&0===n.length?Promise.resolve(Object(K["readonly"])(this.state.initialSites)):this.stateFiltered.isInitialized&&n.length===this.stateFiltered.excludedSites.length&&n.every((function(t,n){return t===e.stateFiltered.excludedSites[n]}))?Promise.resolve(Object(K["readonly"])(this.stateFiltered.initialSites)):(n.length>0&&this.searchSite("%",t,n).then((function(t){e.stateFiltered.isInitialized=!0,e.stateFiltered.excludedSites=n,null!==t&&(e.stateFiltered.initialSites=t)})),this.state.isInitialized?Promise.resolve(Object(K["readonly"])(this.state.initialSites)):this.searchSite("%",t,n).then((function(t){return e.state.isInitialized=!0,null!==t&&(e.state.initialSites=t),t})))}},{key:"loadSite",value:function(e){"all"===e?Ce.updateUrl(Object.assign(Object.assign({},Ce.urlParsed.value),{},{module:"MultiSites",action:"index",date:Ce.parsed.value.date,period:Ce.parsed.value.period})):Ce.updateUrl(Object.assign(Object.assign({},Ce.urlParsed.value),{},{segment:"",idSite:e}),Object.assign(Object.assign({},Ce.hashParsed.value),{},{segment:"",idSite:e}))}},{key:"searchSite",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return e?(this.currentRequestAbort&&this.currentRequestAbort.abort(),this.limitRequest||(this.limitRequest=Qe.fetch({method:"SitesManager.getNumWebsitesToDisplayPerPage"})),this.limitRequest.then((function(o){var a=o.value,i="SitesManager.getPatternMatchSites";return n&&(i="SitesManager.getSitesWithAdminAccess"),t.currentRequestAbort=new AbortController,Qe.fetch({method:i,limit:a,pattern:e,sitesToExclude:r},{abortController:t.currentRequestAbort})})).then((function(e){return e?t.processWebsitesList(e):null})).finally((function(){t.currentRequestAbort=null}))):this.loadInitialSites(n,r)}},{key:"processWebsitesList",value:function(e){var t=e;return t&&t.length?(t=t.map((function(e){return Object.assign(Object.assign({},e),{},{name:e.group?"[".concat(e.group,"] ").concat(e.name):e.name})})),t.sort((function(e,t){return e.name.toLowerCase()t.name.toLowerCase()?1:0})),t):[]}}]),e}(),la=new ia,ca=["value","name"],sa=["title"],ua=["textContent"],da={key:1,class:"placeholder"},ma={class:"dropdown"},pa={class:"custom_select_search"},fa=["placeholder"],ha={key:0},ba={class:"custom_select_container"},ga=["onClick"],va=["innerHTML","href","title"],ya={class:"custom_select_ul_list"},Oa={class:"noresult"},ja={key:1};function wa(e,t,n,r,o,a){var i,l,c,s,u=Object(K["resolveComponent"])("AllSitesLink"),d=Object(K["resolveDirective"])("focus-if"),m=Object(K["resolveDirective"])("focus-anywhere-but-here");return Object(K["withDirectives"])((Object(K["openBlock"])(),Object(K["createElementBlock"])("div",{class:Object(K["normalizeClass"])(["siteSelector piwikSelector borderedControl",{expanded:e.showSitesList,disabled:!e.hasMultipleSites}])},[e.name?(Object(K["openBlock"])(),Object(K["createElementBlock"])("input",{key:0,type:"hidden",value:null===(i=e.displayedModelValue)||void 0===i?void 0:i.id,name:e.name},null,8,ca)):Object(K["createCommentVNode"])("",!0),Object(K["createElementVNode"])("a",{ref:"selectorLink",onClick:t[0]||(t[0]=function(){return e.onClickSelector&&e.onClickSelector.apply(e,arguments)}),onKeydown:t[1]||(t[1]=function(t){return e.onPressEnter(t)}),href:"javascript:void(0)",class:Object(K["normalizeClass"])([{loading:e.isLoading},"title"]),tabindex:"4",title:e.selectorLinkTitle},[Object(K["createElementVNode"])("span",{class:Object(K["normalizeClass"])(["icon icon-chevron-down",{iconHidden:e.isLoading,collapsed:!e.showSitesList}])},null,2),Object(K["createElementVNode"])("span",null,[null!==(l=e.displayedModelValue)&&void 0!==l&&l.name||!e.placeholder?(Object(K["openBlock"])(),Object(K["createElementBlock"])("span",{key:0,textContent:Object(K["toDisplayString"])((null===(c=e.displayedModelValue)||void 0===c?void 0:c.name)||e.firstSiteName)},null,8,ua)):Object(K["createCommentVNode"])("",!0),null!==(s=e.displayedModelValue)&&void 0!==s&&s.name||!e.placeholder?Object(K["createCommentVNode"])("",!0):(Object(K["openBlock"])(),Object(K["createElementBlock"])("span",da,Object(K["toDisplayString"])(e.placeholder),1))])],42,sa),Object(K["withDirectives"])(Object(K["createElementVNode"])("div",ma,[Object(K["withDirectives"])(Object(K["createElementVNode"])("div",pa,[Object(K["withDirectives"])(Object(K["createElementVNode"])("input",{type:"text",onClick:t[2]||(t[2]=function(t){e.searchTerm="",e.loadInitialSites()}),"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.searchTerm=t}),tabindex:"4",class:"websiteSearch inp browser-default",placeholder:e.translate("General_Search")},null,8,fa),[[K["vModelText"],e.searchTerm],[d,{focused:e.shouldFocusOnSearch}]]),Object(K["withDirectives"])(Object(K["createElementVNode"])("img",{title:"Clear",onClick:t[4]||(t[4]=function(t){e.searchTerm="",e.loadInitialSites()}),class:"reset",src:"plugins/CoreHome/images/reset_search.png"},null,512),[[K["vShow"],e.searchTerm]])],512),[[K["vShow"],e.autocompleteMinSites<=e.sites.length||e.searchTerm]]),"top"===e.allSitesLocation&&e.showAllSitesItem?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",ha,[Object(K["createVNode"])(u,{href:e.urlAllSites,"all-sites-text":e.allSitesText,onClick:t[5]||(t[5]=function(t){return e.onAllSitesClick(t)})},null,8,["href","all-sites-text"])])):Object(K["createCommentVNode"])("",!0),Object(K["createElementVNode"])("div",ba,[Object(K["createElementVNode"])("ul",{class:"custom_select_ul_list",onClick:t[7]||(t[7]=function(t){return e.showSitesList=!1})},[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.sites,(function(n,r){return Object(K["withDirectives"])((Object(K["openBlock"])(),Object(K["createElementBlock"])("li",{onClick:function(t){return e.switchSite(Object.assign(Object.assign({},n),{},{id:n.idsite}),t)},key:r},[Object(K["createElementVNode"])("a",{onClick:t[6]||(t[6]=function(e){return e.preventDefault()}),innerHTML:e.$sanitize(e.getMatchedSiteName(n.name)),tabindex:"4",href:e.getUrlForSiteId(n.idsite),title:n.name},null,8,va)],8,ga)),[[K["vShow"],!(!e.showSelectedSite&&"".concat(e.activeSiteId)==="".concat(n.idsite))]])})),128))]),Object(K["withDirectives"])(Object(K["createElementVNode"])("ul",ya,[Object(K["createElementVNode"])("li",null,[Object(K["createElementVNode"])("div",Oa,Object(K["toDisplayString"])(e.translate("SitesManager_NotFound")+" "+e.searchTerm),1)])],512),[[K["vShow"],!e.sites.length&&e.searchTerm]])]),"bottom"===e.allSitesLocation&&e.showAllSitesItem?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",ja,[Object(K["createVNode"])(u,{href:e.urlAllSites,"all-sites-text":e.allSitesText,onClick:t[8]||(t[8]=function(t){return e.onAllSitesClick(t)})},null,8,["href","all-sites-text"])])):Object(K["createCommentVNode"])("",!0)],512),[[K["vShow"],e.showSitesList]])],2)),[[m,{blur:e.onBlur}]])}var ka=["innerHTML","href"];function Sa(e,t,n,r,o,a){var i=this;return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",{onClick:t[1]||(t[1]=function(e){return i.onClick(e)}),class:"custom_select_all"},[Object(K["createElementVNode"])("a",{onClick:t[0]||(t[0]=function(e){return e.preventDefault()}),innerHTML:e.$sanitize(e.allSitesText),tabindex:"4",href:e.href},null,8,ka)])}var Ca=Object(K["defineComponent"])({props:{href:String,allSitesText:String},emits:["click"],methods:{onClick:function(e){this.$emit("click",e)}}});Ca.render=Sa;var Ea=Ca,Da=Object(K["defineComponent"])({props:{modelValue:Object,showSelectedSite:{type:Boolean,default:!1},showAllSitesItem:{type:Boolean,default:!0},switchSiteOnSelect:{type:Boolean,default:!0},onlySitesWithAdminAccess:{type:Boolean,default:!1},name:{type:String,default:""},allSitesText:{type:String,default:a("General_MultiSitesSummary")},allSitesLocation:{type:String,default:"bottom"},placeholder:String,defaultToFirstSite:Boolean,sitesToExclude:{type:Array,default:function(){return[]}}},emits:["update:modelValue","blur"],components:{AllSitesLink:Ea},directives:{FocusAnywhereButHere:zt,FocusIf:Yt},watch:{searchTerm:function(){this.onSearchTermChanged()}},data:function(){return{searchTerm:"",activeSiteId:"".concat(ce.idSite),showSitesList:!1,isLoading:!1,sites:[],autocompleteMinSites:parseInt(ce.config.autocomplete_min_sites,10)}},created:function(){this.searchSite=wt(this.searchSite),!this.modelValue&&ce.idSite&&this.$emit("update:modelValue",{id:ce.idSite,name:ce.helper.htmlDecode(ce.siteName)})},mounted:function(){var e=this;window.initTopControls(),this.loadInitialSites().then((function(){e.shouldDefaultToFirstSite&&e.$emit("update:modelValue",{id:e.sites[0].idsite,name:e.sites[0].name})}));var t=a("CoreHome_ShortcutWebsiteSelector");ce.helper.registerShortcut("w",t,(function(t){if(!t.altKey){t.preventDefault?t.preventDefault():t.returnValue=!1;var n=e.$refs.selectorLink;n&&(n.click(),n.focus())}}))},computed:{shouldFocusOnSearch:function(){return this.showSitesList&&this.autocompleteMinSites<=this.sites.length||this.searchTerm},selectorLinkTitle:function(){var e;return this.hasMultipleSites?a("CoreHome_ChangeCurrentWebsite",(null===(e=this.modelValue)||void 0===e?void 0:e.name)||this.firstSiteName):""},hasMultipleSites:function(){var e=la.initialSitesFiltered.value&&la.initialSitesFiltered.value.length?la.initialSitesFiltered.value:la.initialSites.value;return e&&e.length>1},firstSiteName:function(){var e=la.initialSitesFiltered.value&&la.initialSitesFiltered.value.length?la.initialSitesFiltered.value:la.initialSites.value;return e&&e.length>0?e[0].name:""},urlAllSites:function(){var e=Ce.stringify(Object.assign(Object.assign({},Ce.urlParsed.value),{},{module:"MultiSites",action:"index",date:Ce.parsed.value.date,period:Ce.parsed.value.period}));return"?".concat(e)},shouldDefaultToFirstSite:function(){var e;return!(null!==(e=this.modelValue)&&void 0!==e&&e.id)&&(!this.hasMultipleSites||this.defaultToFirstSite)&&this.sites[0]},displayedModelValue:function(){return this.modelValue?this.modelValue:ce.idSite?{id:ce.idSite,name:ce.helper.htmlDecode(ce.siteName)}:this.shouldDefaultToFirstSite?{id:this.sites[0].idsite,name:this.sites[0].name}:null}},methods:{onSearchTermChanged:function(){this.searchTerm?(this.isLoading=!0,this.searchSite(this.searchTerm)):(this.isLoading=!1,this.loadInitialSites())},onAllSitesClick:function(e){this.switchSite({id:"all",name:this.$props.allSitesText},e),this.showSitesList=!1},switchSite:function(e,t){var n=-1!==navigator.userAgent.indexOf("Mac OS X")?t.metaKey:t.ctrlKey;t&&n&&t.target&&t.target.href?window.open(t.target.href,"_blank"):(this.$emit("update:modelValue",{id:e.id,name:e.name}),this.switchSiteOnSelect&&this.activeSiteId!==e.id&&la.loadSite(e.id))},onBlur:function(){this.showSitesList=!1,this.$emit("blur")},onClickSelector:function(){this.hasMultipleSites&&(this.showSitesList=!this.showSitesList,this.isLoading||this.searchTerm||this.loadInitialSites())},onPressEnter:function(e){"Enter"===e.key&&(e.preventDefault(),this.showSitesList=!this.showSitesList,this.showSitesList&&!this.isLoading&&this.loadInitialSites())},getMatchedSiteName:function(e){var t=e.toUpperCase().indexOf(this.searchTerm.toUpperCase());if(-1===t||this.isLoading)return ce.helper.htmlEntities(e);var n=ce.helper.htmlEntities(e.substring(0,t)),r=ce.helper.htmlEntities(e.substring(t+this.searchTerm.length));return"".concat(n,'').concat(this.searchTerm,"").concat(r)},loadInitialSites:function(){var e=this;return la.loadInitialSites(this.onlySitesWithAdminAccess,this.sitesToExclude?this.sitesToExclude:[]).then((function(t){e.sites=t||[]}))},searchSite:function(e){var t=this;this.isLoading=!0,la.searchSite(e,this.onlySitesWithAdminAccess,this.sitesToExclude?this.sitesToExclude:[]).then((function(n){e===t.searchTerm&&n&&(t.sites=n)})).finally((function(){t.isLoading=!1}))},getUrlForSiteId:function(e){var t=Ce.stringify(Object.assign(Object.assign({},Ce.urlParsed.value),{},{segment:"",idSite:e})),n=Ce.stringify(Object.assign(Object.assign({},Ce.hashParsed.value),{},{segment:"",idSite:e}));return"?".concat(t,"#?").concat(n)}}});Da.render=wa;var Pa=Da,Ta={ref:"root",class:"quickAccessInside"},Va=["title","placeholder"],Na={class:"dropdown"},Ia={class:"no-result"},xa=["onClick"],Ba=["onMouseenter","onClick"],Aa={class:"quickAccessMatomoSearch"},La=["onMouseenter","onClick"],Ma=["textContent"],_a={class:"quick-access-category helpCategory"},Fa=["href"];function Ra(e,t,n,r,o,a){var i=Object(K["resolveDirective"])("focus-if"),l=Object(K["resolveDirective"])("focus-anywhere-but-here");return Object(K["withDirectives"])((Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Ta,[Object(K["createElementVNode"])("span",{class:"icon-search",onMouseenter:t[0]||(t[0]=function(t){return e.searchActive=!0})},null,32),Object(K["withDirectives"])(Object(K["createElementVNode"])("input",{class:"s",onKeydown:t[1]||(t[1]=function(t){return e.onKeypress(t)}),onFocus:t[2]||(t[2]=function(t){return e.searchActive=!0}),"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.searchTerm=t}),type:"text",tabindex:"2",title:e.quickAccessTitle,placeholder:e.translate("General_Search"),ref:"input"},null,40,Va),[[K["vModelText"],e.searchTerm],[i,{focused:e.searchActive}]]),Object(K["withDirectives"])(Object(K["createElementVNode"])("div",Na,[Object(K["withDirectives"])(Object(K["createElementVNode"])("ul",null,[Object(K["createElementVNode"])("li",Ia,Object(K["toDisplayString"])(e.translate("General_SearchNoResults")),1)],512),[[K["vShow"],!(e.numMenuItems>0||e.sites.length)]]),(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.menuItems,(function(t){return Object(K["openBlock"])(),Object(K["createElementBlock"])("ul",{key:t.title},[Object(K["createElementVNode"])("li",{class:"quick-access-category",onClick:function(n){e.searchTerm=t.title,e.searchMenu(e.searchTerm)}},Object(K["toDisplayString"])(t.title),9,xa),(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(t.items,(function(t){return Object(K["openBlock"])(),Object(K["createElementBlock"])("li",{class:Object(K["normalizeClass"])(["result",{selected:t.menuIndex===e.searchIndex}]),onMouseenter:function(n){return e.searchIndex=t.menuIndex},onClick:function(n){return e.selectMenuItem(t.index)},key:t.index},[Object(K["createElementVNode"])("a",null,Object(K["toDisplayString"])(t.name.trim()),1)],42,Ba)})),128))])})),128)),Object(K["createElementVNode"])("ul",Aa,[Object(K["withDirectives"])(Object(K["createElementVNode"])("li",{class:"quick-access-category websiteCategory"},Object(K["toDisplayString"])(e.translate("SitesManager_Sites")),513),[[K["vShow"],e.hasSitesSelector&&e.sites.length||e.isLoading]]),Object(K["withDirectives"])(Object(K["createElementVNode"])("li",{class:"no-result"},Object(K["toDisplayString"])(e.translate("MultiSites_LoadingWebsites")),513),[[K["vShow"],e.hasSitesSelector&&e.isLoading]]),(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.sites,(function(t,n){return Object(K["withDirectives"])((Object(K["openBlock"])(),Object(K["createElementBlock"])("li",{class:Object(K["normalizeClass"])(["result",{selected:e.numMenuItems+n===e.searchIndex}]),onMouseenter:function(t){return e.searchIndex=e.numMenuItems+n},onClick:function(n){return e.selectSite(t.idsite)},key:t.idsite},[Object(K["createElementVNode"])("a",{textContent:Object(K["toDisplayString"])(t.name)},null,8,Ma)],42,La)),[[K["vShow"],e.hasSitesSelector&&!e.isLoading]])})),128))]),Object(K["createElementVNode"])("ul",null,[Object(K["createElementVNode"])("li",_a,Object(K["toDisplayString"])(e.translate("General_HelpResources")),1),Object(K["createElementVNode"])("li",{class:Object(K["normalizeClass"])([{selected:"help"===e.searchIndex},"quick-access-help"]),onMouseenter:t[4]||(t[4]=function(t){return e.searchIndex="help"})},[Object(K["createElementVNode"])("a",{href:"https://matomo.org?mtm_campaign=App_Help&mtm_source=Matomo_App&mtm_keyword=QuickSearch&s=".concat(encodeURIComponent(e.searchTerm)),target:"_blank"},Object(K["toDisplayString"])(e.translate("CoreHome_SearchOnMatomo",e.searchTerm)),9,Fa)],34)])],512),[[K["vShow"],e.searchTerm&&e.searchActive]])],512)),[[l,{blur:e.onBlur}]])}var Ha=window,Ua=Ha.ListingFormatter;function $a(e){var t=e.getBoundingClientRect(),n=window.$(window);return t.top>=0&&t.left>=0&&t.bottom<=n.height()&&t.right<=n.width()}function qa(e){e&&e.scrollIntoView&&e.scrollIntoView()}var Wa=Object(K["defineComponent"])({directives:{FocusAnywhereButHere:zt,FocusIf:Yt},watch:{searchActive:function(e){var t=this.$refs.root;if(t&&t.parentElement){var n=t.parentElement.classList;n.toggle("active",e),n.toggle("expanded",e)}}},mounted:function(){var e=this,t=this.$refs.root;t&&t.parentElement&&t.parentElement.classList.add("quick-access","piwikSelector"),"undefined"!==typeof window.initTopControls&&window.initTopControls&&window.initTopControls(),ce.helper.registerShortcut("f",a("CoreHome_ShortcutSearch"),(function(t){t.altKey||(t.preventDefault(),qa(e.$refs.root),e.activateSearch())}))},data:function(){var e=!!document.querySelector(".segmentEditorPanel");return{menuItems:[],numMenuItems:0,searchActive:!1,searchTerm:"",searchIndex:0,menuIndexCounter:-1,topMenuItems:null,leftMenuItems:null,segmentItems:null,hasSegmentSelector:e,sites:[],isLoading:!1}},created:function(){this.searchMenu=wt(this.searchMenu.bind(this))},computed:{hasSitesSelector:function(){return!!document.querySelector('.top_controls .siteSelector,.top_controls [vue-entry="CoreHome.SiteSelector"]')},quickAccessTitle:function(){var e=[a("CoreHome_MenuEntries")];return this.hasSegmentSelector&&e.push(a("CoreHome_Segments")),this.hasSitesSelector&&e.push(a("SitesManager_Sites")),a("CoreHome_QuickAccessTitle",Ua.formatAnd(e))}},emits:["itemSelected","blur"],methods:{onKeypress:function(e){var t=this,n=this.searchTerm&&this.searchActive,r=9===e.which,o=27===e.which;38===e.which?(this.highlightPreviousItem(),e.preventDefault()):40===e.which?(this.highlightNextItem(),e.preventDefault()):13===e.which?this.clickQuickAccessMenuItem():r&&n||o&&n?this.deactivateSearch():setTimeout((function(){t.searchActive=!0,t.searchMenu(t.searchTerm)}))},highlightPreviousItem:function(){this.searchIndex-1<0?this.searchIndex=0:this.searchIndex-=1,this.makeSureSelectedItemIsInViewport()},highlightNextItem:function(){var e=this.$refs.root.querySelectorAll("li.result").length;e<=this.searchIndex+1?this.searchIndex=e-1:this.searchIndex+=1,this.makeSureSelectedItemIsInViewport()},clickQuickAccessMenuItem:function(){var e=this,t=this.getCurrentlySelectedElement();t&&setTimeout((function(){t.click(),e.$emit("itemSelected",t)}),20)},deactivateSearch:function(){this.searchTerm="",this.searchActive=!1,this.$refs.input&&this.$refs.input.blur()},makeSureSelectedItemIsInViewport:function(){var e=this.getCurrentlySelectedElement();e&&!$a(e)&&qa(e)},getCurrentlySelectedElement:function(){var e=this.$refs.root.querySelectorAll("li.result");if(e&&e.length&&e.item(this.searchIndex))return e.item(this.searchIndex)},searchMenu:function(e){var t=this,n=e.toLowerCase(),r=-1,o={},a=[],i=function(e){var t=Object.assign({},e);r+=1,t.menuIndex=r;var n=t.category;n in o||(a.push({title:n,items:[]}),o[n]=a.length-1);var i=o[n];a[i].items.push(t)};this.resetSearchIndex(),this.hasSitesSelector&&(this.isLoading=!0,la.searchSite(n).then((function(e){e&&(t.sites=e)})).finally((function(){t.isLoading=!1})));var l=function(e){return-1!==e.name.toLowerCase().indexOf(n)||-1!==e.category.toLowerCase().indexOf(n)};null===this.topMenuItems&&(this.topMenuItems=this.getTopMenuItems()),null===this.leftMenuItems&&(this.leftMenuItems=this.getLeftMenuItems()),null===this.segmentItems&&(this.segmentItems=this.getSegmentItems());var c=this.topMenuItems.filter(l),s=this.leftMenuItems.filter(l),u=this.segmentItems.filter(l);c.forEach(i),s.forEach(i),u.forEach(i),this.numMenuItems=c.length+s.length+u.length,this.menuItems=a},resetSearchIndex:function(){this.searchIndex=0,this.makeSureSelectedItemIsInViewport()},selectSite:function(e){la.loadSite(e)},selectMenuItem:function(e){var t=document.querySelector("[quick_access='".concat(e,"']"));if(t){this.deactivateSearch();var n=t.getAttribute("href");if(n&&n.length>10&&t&&t.click)try{t.click()}catch(r){window.$(t).click()}else window.$(t).click()}},onBlur:function(){this.searchActive=!1,this.$emit("blur")},activateSearch:function(){this.searchActive=!0},getTopMenuItems:function(){var e=this,t=a("CoreHome_Menu"),n=[];return document.querySelectorAll("nav .sidenav li > a, nav .sidenav li > div > a").forEach((function(r){var o,a,i=null===(o=r.textContent)||void 0===o?void 0:o.trim();(!i||null!=r.parentElement&&null!=r.parentElement.tagName&&"DIV"===r.parentElement.tagName)&&(i=null===(a=r.getAttribute("title"))||void 0===a?void 0:a.trim());i&&(n.push({name:i,index:e.menuIndexCounter+=1,category:t}),r.setAttribute("quick_access","".concat(e.menuIndexCounter)))})),n},getLeftMenuItems:function(){var e=this,t=[];return document.querySelectorAll("#secondNavBar .menuTab").forEach((function(n){var r,o=window.$(n).find("> .item"),a=(null===(r=o[0])||void 0===r?void 0:r.innerText.trim())||"";a&&-1!==a.lastIndexOf("\n")&&(a=a.slice(0,a.lastIndexOf("\n")).trim()),window.$(n).find("li .item").each((function(n,r){var o,i=null===(o=r.textContent)||void 0===o?void 0:o.trim();i&&(t.push({name:i,category:a,index:e.menuIndexCounter+=1}),r.setAttribute("quick_access","".concat(e.menuIndexCounter)))}))})),t},getSegmentItems:function(){var e=this;if(!this.hasSegmentSelector)return[];var t=a("CoreHome_Segments"),n=[];return document.querySelectorAll(".segmentList [data-idsegment]").forEach((function(r){var o,a,i=null===(o=r.querySelector(".segname"))||void 0===o||null===(a=o.textContent)||void 0===a?void 0:a.trim();i&&(n.push({name:i,category:t,index:e.menuIndexCounter+=1}),r.setAttribute("quick_access","".concat(e.menuIndexCounter)))})),n}}});Wa.render=Ra;var za=Wa;function Ga(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ya={class:"fieldArray form-group"},Ja={key:0,class:"fieldUiControl"},Ka=["onClick","title"];function Qa(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("Field");return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Ya,[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.modelValue,(function(t,n){return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",{class:Object(K["normalizeClass"])(["fieldArrayTable multiple valign-wrapper",Ga({},"fieldArrayTable".concat(n),!0)]),key:n},[e.field.uiControl?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Ja,[Object(K["createVNode"])(i,{"full-width":!0,"model-value":t,options:e.field.availableValues,"onUpdate:modelValue":function(t){return e.onEntryChange(t,n)},"model-modifiers":e.field.modelModifiers,placeholder:" ",uicontrol:e.field.uiControl,title:e.field.title,name:"".concat(e.name,"-").concat(n),"template-file":e.field.templateFile,component:e.field.component},null,8,["model-value","options","onUpdate:modelValue","model-modifiers","uicontrol","title","name","template-file","component"])])):Object(K["createCommentVNode"])("",!0),Object(K["withDirectives"])(Object(K["createElementVNode"])("span",{onClick:function(t){return e.removeEntry(n)},class:"icon-minus valign",title:e.translate("General_Remove")},null,8,Ka),[[K["vShow"],n+1!==e.modelValue.length]])],2)})),128))])}function Xa(e){return ni(e)||ti(e)||ei(e)||Za()}function Za(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ei(e,t){if(e){if("string"===typeof e)return ri(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ri(e,t):void 0}}function ti(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function ni(e){if(Array.isArray(e))return ri(e)}function ri(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1&&this.modelValue){var t=this.modelValue.filter((function(t,n){return n!==e}));this.$emit("update:modelValue",t)}}}});ai.render=Qa;var ii=ai;function li(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ci={class:"multiPairField form-group"},si={key:1,class:"fieldUiControl fieldUiControl2"},ui={key:2,class:"fieldUiControl fieldUiControl3"},di={key:3,class:"fieldUiControl fieldUiControl4"},mi=["onClick","title"];function pi(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("Field");return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",ci,[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.modelValue,(function(t,n){var r;return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",{class:Object(K["normalizeClass"])(["multiPairFieldTable multiple valign-wrapper",(r={},li(r,"multiPairFieldTable".concat(n),!0),li(r,"has".concat(e.fieldCount,"Fields"),!0),r)]),key:n},[e.field1?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",{key:0,class:Object(K["normalizeClass"])(["fieldUiControl fieldUiControl1",{hasMultiFields:e.field1.type&&e.field2.type}])},[Object(K["createVNode"])(i,{"full-width":!0,"model-value":t[e.field1.key],options:e.field1.availableValues,"onUpdate:modelValue":function(t){return e.onEntryChange(n,e.field1.key,t)},"model-modifiers":e.field1.modelModifiers,placeholder:" ",uicontrol:e.field1.uiControl,name:"".concat(e.name,"-p1-").concat(n),title:e.field1.title,"template-file":e.field1.templateFile,component:e.field1.component},null,8,["model-value","options","onUpdate:modelValue","model-modifiers","uicontrol","name","title","template-file","component"])],2)):Object(K["createCommentVNode"])("",!0),e.field2?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",si,[Object(K["createVNode"])(i,{"full-width":!0,options:e.field2.availableValues,"onUpdate:modelValue":function(t){return e.onEntryChange(n,e.field2.key,t)},"model-value":t[e.field2.key],"model-modifiers":e.field2.modelModifiers,placeholder:" ",uicontrol:e.field2.uiControl,name:"".concat(e.name,"-p2-").concat(n),title:e.field2.title,"template-file":e.field2.templateFile,component:e.field2.component},null,8,["options","onUpdate:modelValue","model-value","model-modifiers","uicontrol","name","title","template-file","component"])])):Object(K["createCommentVNode"])("",!0),e.field3?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",ui,[Object(K["createVNode"])(i,{"full-width":!0,options:e.field3.availableValues,"onUpdate:modelValue":function(t){return e.onEntryChange(n,e.field3.key,t)},"model-value":t[e.field3.key],"model-modifiers":e.field3.modelModifiers,placeholder:" ",uicontrol:e.field3.uiControl,title:e.field3.title,"template-file":e.field3.templateFile,component:e.field3.component},null,8,["options","onUpdate:modelValue","model-value","model-modifiers","uicontrol","title","template-file","component"])])):Object(K["createCommentVNode"])("",!0),e.field4?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",di,[Object(K["createVNode"])(i,{"full-width":!0,options:e.field4.availableValues,"onUpdate:modelValue":function(t){return e.onEntryChange(n,e.field4.key,t)},"model-value":t[e.field4.key],"model-modifiers":e.field4.modelModifiers,placeholder:" ",uicontrol:e.field4.uiControl,title:e.field4.title,"template-file":e.field4.templateFile,component:e.field4.component},null,8,["options","onUpdate:modelValue","model-value","model-modifiers","uicontrol","title","template-file","component"])])):Object(K["createCommentVNode"])("",!0),Object(K["withDirectives"])(Object(K["createElementVNode"])("span",{onClick:function(t){return e.removeEntry(n)},class:"icon-minus valign",title:e.translate("General_Remove")},null,8,mi),[[K["vShow"],n+1!==e.modelValue.length]])],2)})),128))])}function fi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hi(e){return yi(e)||vi(e)||gi(e)||bi()}function bi(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function gi(e,t){if(e){if("string"===typeof e)return Oi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oi(e,t):void 0}}function vi(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function yi(e){if(Array.isArray(e))return Oi(e)}function Oi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1&&this.modelValue){var t=this.modelValue.filter((function(t,n){return n!==e}));this.$emit("update:modelValue",t)}},isEmptyValue:function(e){var t=this.fieldCount;if(4===t){if(!e[this.field1.key]&&!e[this.field2.key]&&!e[this.field3.key]&&!e[this.field4.key])return!1}else if(3===t){if(!e[this.field1.key]&&!e[this.field2.key]&&!e[this.field3.key])return!1}else if(2===t){if(!e[this.field1.key]&&!e[this.field2.key])return!1}else if(1===t&&!e[this.field1.key])return!1;return!0},makeEmptyValue:function(){var e={};return this.field1&&this.field1.key&&(e[this.field1.key]=""),this.field2&&this.field2.key&&(e[this.field2.key]=""),this.field3&&this.field3.key&&(e[this.field3.key]=""),this.field4&&this.field4.key&&(e[this.field4.key]=""),e}}});wi.render=pi;var ki=wi,Si={ref:"root",class:"periodSelector piwikSelector"},Ci=["title"],Ei=Object(K["createElementVNode"])("span",{class:"icon icon-calendar"},null,-1),Di={id:"periodMore",class:"dropdown"},Pi={class:"flex"},Ti={key:0,class:"period-date"},Vi={class:"period-type"},Ni={id:"otherPeriods"},Ii=["onDblclick","title"],xi=["id","checked","onChange","onDblclick"],Bi={key:0,class:"compare-checkbox"},Ai={id:"comparePeriodToDropdown"},Li={key:1,class:"compare-date-range"},Mi={id:"comparePeriodStartDate"},_i=Object(K["createElementVNode"])("span",{class:"compare-dates-separator"},null,-1),Fi={id:"comparePeriodEndDate"},Ri={class:"apply-button-container"},Hi=["disabled","value"],Ui={key:2,id:"ajaxLoadingCalendar"},$i={class:"loadingSegment"};function qi(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("DateRangePicker"),l=Object(K["resolveComponent"])("PeriodDatePicker"),c=Object(K["resolveComponent"])("Field"),s=Object(K["resolveComponent"])("ActivityIndicator"),u=Object(K["resolveDirective"])("expand-on-click");return Object(K["withDirectives"])((Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Si,[Object(K["createElementVNode"])("a",{ref:"title",id:"date",class:"title",tabindex:"-1",title:e.translate("General_ChooseDate",e.currentlyViewingText)},[Ei,Object(K["createTextVNode"])(" "+Object(K["toDisplayString"])(e.currentlyViewingText),1)],8,Ci),Object(K["createElementVNode"])("div",Di,[Object(K["createElementVNode"])("div",Pi,[Object(K["createElementVNode"])("div",null,[Object(K["withDirectives"])(Object(K["createVNode"])(i,{class:"period-range","start-date":e.startRangeDate,"end-date":e.endRangeDate,onRangeChange:t[0]||(t[0]=function(t){return e.onRangeChange(t.start,t.end)}),onSubmit:t[1]||(t[1]=function(t){return e.onApplyClicked()})},null,8,["start-date","end-date"]),[[K["vShow"],"range"===e.selectedPeriod]]),"range"!==e.selectedPeriod?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Ti,[Object(K["createVNode"])(l,{id:"datepicker",period:e.selectedPeriod,date:e.periodValue===e.selectedPeriod?e.dateValue:null,onSelect:t[2]||(t[2]=function(t){return e.setPiwikPeriodAndDate(e.selectedPeriod,t.date)})},null,8,["period","date"])])):Object(K["createCommentVNode"])("",!0)]),Object(K["createElementVNode"])("div",Vi,[Object(K["createElementVNode"])("h6",null,Object(K["toDisplayString"])(e.translate("General_Period")),1),Object(K["createElementVNode"])("div",Ni,[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.periodsFiltered,(function(n){return Object(K["openBlock"])(),Object(K["createElementBlock"])("p",{key:n},[Object(K["createElementVNode"])("label",{class:Object(K["normalizeClass"])({"selected-period-label":n===e.selectedPeriod}),onDblclick:function(t){return e.changeViewedPeriod(n)},title:n===e.periodValue?"":e.translate("General_DoubleClickToChangePeriod")},[Object(K["withDirectives"])(Object(K["createElementVNode"])("input",{type:"radio",name:"period",id:"period_id_".concat(n),"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.selectedPeriod=t}),checked:e.selectedPeriod===n,onChange:function(t){return e.selectedPeriod=n},onDblclick:function(t){return e.changeViewedPeriod(n)}},null,40,xi),[[K["vModelRadio"],e.selectedPeriod]]),Object(K["createElementVNode"])("span",null,Object(K["toDisplayString"])(e.getPeriodDisplayText(n)),1)],42,Ii)])})),128))])])]),e.isComparisonEnabled?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Bi,[Object(K["createElementVNode"])("label",null,[Object(K["withDirectives"])(Object(K["createElementVNode"])("input",{id:"comparePeriodTo",type:"checkbox","onUpdate:modelValue":t[4]||(t[4]=function(t){return e.isComparing=t})},null,512),[[K["vModelCheckbox"],e.isComparing]]),Object(K["createElementVNode"])("span",null,Object(K["toDisplayString"])(e.translate("General_CompareTo")),1)]),Object(K["createElementVNode"])("div",Ai,[Object(K["createVNode"])(c,{modelValue:e.comparePeriodType,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.comparePeriodType=t}),style:Object(K["normalizeStyle"])({visibility:e.isComparing?"visible":"hidden"}),name:"comparePeriodToDropdown",uicontrol:"select",options:e.comparePeriodDropdownOptions,"full-width":!0,disabled:!e.isComparing},null,8,["modelValue","style","options","disabled"])])])):Object(K["createCommentVNode"])("",!0),e.isComparing&&"custom"===e.comparePeriodType?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Li,[Object(K["createElementVNode"])("div",null,[Object(K["createElementVNode"])("div",Mi,[Object(K["createElementVNode"])("div",null,[Object(K["createVNode"])(c,{modelValue:e.compareStartDate,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.compareStartDate=t}),name:"comparePeriodStartDate",uicontrol:"text","full-width":!0,title:e.translate("CoreHome_StartDate"),placeholder:"YYYY-MM-DD"},null,8,["modelValue","title"])])]),_i,Object(K["createElementVNode"])("div",Fi,[Object(K["createElementVNode"])("div",null,[Object(K["createVNode"])(c,{modelValue:e.compareEndDate,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.compareEndDate=t}),name:"comparePeriodEndDate",uicontrol:"text","full-width":!0,title:e.translate("CoreHome_EndDate"),placeholder:"YYYY-MM-DD"},null,8,["modelValue","title"])])])])])):Object(K["createCommentVNode"])("",!0),Object(K["createElementVNode"])("div",Ri,[Object(K["createElementVNode"])("input",{type:"submit",id:"calendarApply",class:"btn",onClick:t[8]||(t[8]=function(t){return e.onApplyClicked()}),disabled:!e.isApplyEnabled(),value:e.translate("General_Apply")},null,8,Hi)]),e.isLoadingNewPage?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Ui,[Object(K["createVNode"])(s,{loading:!0}),Object(K["createElementVNode"])("div",$i,Object(K["toDisplayString"])(e.translate("SegmentEditor_LoadingSegmentedDataMayTakeSomeTime")),1)])):Object(K["createCommentVNode"])("",!0)])],512)),[[u,{expander:"title"}]])}function Wi(e,t){return Ki(e)||Ji(e,t)||Gi(e,t)||zi()}function zi(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Gi(e,t){if(e){if("string"===typeof e)return Yi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yi(e,t):void 0}}function Yi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nr?(window.$("#alert").find("h2").text(a("General_InvalidDateRange")),ce.helper.modalConfirm("#alert",{}),null):"".concat(e,",").concat(t)}return p(this.dateValue)}},methods:{handleZIndexPositionRelativeCompareDropdownIssue:function(){var e=window.$(this.$refs.root);e.on("focus","#comparePeriodToDropdown .select-dropdown",(function(){e.addClass("compare-dropdown-open")})).on("blur","#comparePeriodToDropdown .select-dropdown",(function(){e.removeClass("compare-dropdown-open")}))},changeViewedPeriod:function(e){e!==this.periodValue&&"range"!==e&&this.setPiwikPeriodAndDate(e,this.dateValue)},setPiwikPeriodAndDate:function(e,t){this.periodValue=e,this.selectedPeriod=e,this.dateValue=t;var n=p(t);this.setRangeStartEndFromPeriod(e,n),this.propagateNewUrlParams(n,this.selectedPeriod),window.initTopControls()},propagateNewUrlParams:function(e,t){var n,r=this.selectedComparisonParams;ce.helper.isReportingPage()?(this.closePeriodSelector(),n=Ce.hashParsed.value):(this.isLoadingNewPage=!0,n=Ce.parsed.value);var o=Object.assign({},n);delete o.comparePeriods,delete o.comparePeriodType,delete o.compareDates,Ce.updateLocation(Object.assign(Object.assign({},o),{},{date:e,period:t},r))},onApplyClicked:function(){if("range"===this.selectedPeriod){var e=this.selectedDateString;if(!e)return;return this.periodValue="range",void this.propagateNewUrlParams(e,"range")}this.setPiwikPeriodAndDate(this.selectedPeriod,this.dateValue)},updateComparisonValuesFromStore:function(){this.comparePeriodType="previousPeriod",this.compareStartDate="",this.compareEndDate="";var e=Ur.getPeriodComparisons();if(!(e.length<2)){var t=Ce.parsed.value.comparePeriodType;if(Zi.includes(t)&&(this.comparePeriodType=t,"custom"===this.comparePeriodType&&"range"===e[1].params.period)){var n;try{n=m.parse(e[1].params.period,e[1].params.date)}catch(l){return}var r=n.getDateRange(),o=Wi(r,2),a=o[0],i=o[1];this.compareStartDate=p(a),this.compareEndDate=p(i)}}},updateSelectedValuesFromHash:function(){var e=Ce.parsed.value.date,t=Ce.parsed.value.period;this.periodValue=t,this.selectedPeriod=t,this.dateValue=null,this.startRangeDate=null,this.endRangeDate=null;try{m.parse(t,e)}catch(l){return}if("range"===t){var n=m.get(t).parse(e),r=n.getDateRange(),o=Wi(r,2),a=o[0],i=o[1];this.dateValue=a,this.startRangeDate=p(a),this.endRangeDate=p(i)}else this.dateValue=h(e),this.setRangeStartEndFromPeriod(t,e)},setRangeStartEndFromPeriod:function(e,t){var n=m.parse(e,t).getDateRange();this.startRangeDate=p(n[0]nl?nl:n[1])},getPeriodDisplayText:function(e){return m.get(e).getDisplayText()},onRangeChange:function(e,t){e&&t?(this.isRangeValid=!0,this.startRangeDate=e,this.endRangeDate=t):this.isRangeValid=!1},isApplyEnabled:function(){return!("range"===this.selectedPeriod&&!this.isRangeValid)&&!(this.isComparing&&"custom"===this.comparePeriodType&&!this.isCompareRangeValid())},closePeriodSelector:function(){this.$refs.root.classList.remove("expanded")},isCompareRangeValid:function(){try{h(this.compareStartDate)}catch(e){return!1}try{h(this.compareEndDate)}catch(e){return!1}return!0}}});ol.render=qi;var al=ol,il={class:"reportingMenu"},ll=["aria-label"],cl=["onClick"],sl={class:"hidden"},ul={role:"menu"},dl=["href","onClick","title"],ml=["href","onClick"],pl=["onClick"],fl=Object(K["createElementVNode"])("span",{class:"icon-help"},null,-1),hl=[fl],bl={id:"mobile-left-menu",class:"sidenav hide-on-large-only"},gl={class:"collapsible collapsible-accordion"},vl={class:"collapsible-header"},yl={class:"collapsible-body"},Ol=["onClick","href"],jl=["onClick","href"];function wl(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("MenuItemsDropdown"),l=Object(K["resolveDirective"])("side-nav");return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",il,[Object(K["createElementVNode"])("ul",{class:"navbar hide-on-med-and-down",role:"menu","aria-label":e.translate("CoreHome_MainNavigation")},[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.menu,(function(t){return Object(K["openBlock"])(),Object(K["createElementBlock"])("li",{class:Object(K["normalizeClass"])(["menuTab",{active:t.id===e.activeCategory}]),role:"menuitem",key:t.id},[Object(K["createElementVNode"])("a",{class:"item",tabindex:"5",href:"",onClick:Object(K["withModifiers"])((function(n){return e.loadCategory(t)}),["prevent"])},[Object(K["createElementVNode"])("span",{class:Object(K["normalizeClass"])("menu-icon ".concat(t.icon?t.icon:t.subcategories&&t.id===e.activeCategory?"icon-chevron-down":"icon-chevron-right"))},null,2),Object(K["createTextVNode"])(Object(K["toDisplayString"])(t.name)+" ",1),Object(K["createElementVNode"])("span",sl,Object(K["toDisplayString"])(e.translate("CoreHome_Menu")),1)],8,cl),Object(K["createElementVNode"])("ul",ul,[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(t.subcategories,(function(n){return Object(K["openBlock"])(),Object(K["createElementBlock"])("li",{role:"menuitem",class:Object(K["normalizeClass"])({active:(n.id===e.displayedSubcategory||n.isGroup&&e.activeSubsubcategory===e.displayedSubcategory)&&t.id===e.displayedCategory}),key:n.id},[n.isGroup?(Object(K["openBlock"])(),Object(K["createBlock"])(i,{key:0,"show-search":!0,"menu-title":e.htmlEntities(n.name)},{default:Object(K["withCtx"])((function(){return[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(n.subcategories,(function(r){return Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{class:Object(K["normalizeClass"])(["item",{active:r.id===e.activeSubsubcategory&&n.id===e.displayedSubcategory&&t.id===e.displayedCategory}]),tabindex:"5",href:"#?".concat(e.makeUrl(t,r)),onClick:function(n){return e.loadSubcategory(t,r,n)},title:r.tooltip,key:r.id},Object(K["toDisplayString"])(r.name),11,dl)})),128))]})),_:2},1032,["menu-title"])):Object(K["createCommentVNode"])("",!0),n.isGroup?Object(K["createCommentVNode"])("",!0):(Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{key:1,href:"#?".concat(e.makeUrl(t,n)),class:"item",onClick:function(r){return e.loadSubcategory(t,n,r)}},Object(K["toDisplayString"])(n.name),9,ml)),n.help?(Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{key:2,class:Object(K["normalizeClass"])(["item-help-icon",{active:e.helpShownCategory&&e.helpShownCategory.subcategory===n.id&&e.helpShownCategory.category===t.id&&n.help}]),tabindex:"5",href:"javascript:",onClick:function(r){return e.showHelp(t,n,r)}},hl,10,pl)):Object(K["createCommentVNode"])("",!0)],2)})),128))])],2)})),128))],8,ll),Object(K["createElementVNode"])("ul",bl,[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.menu,(function(t){return Object(K["openBlock"])(),Object(K["createElementBlock"])("li",{class:"no-padding",key:t.id},[Object(K["withDirectives"])(Object(K["createElementVNode"])("ul",gl,[Object(K["createElementVNode"])("li",null,[Object(K["createElementVNode"])("a",vl,[Object(K["createElementVNode"])("i",{class:Object(K["normalizeClass"])(t.icon?t.icon:"icon-chevron-down")},null,2),Object(K["createTextVNode"])(Object(K["toDisplayString"])(t.name),1)]),Object(K["createElementVNode"])("div",yl,[Object(K["createElementVNode"])("ul",null,[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(t.subcategories,(function(n){return Object(K["openBlock"])(),Object(K["createElementBlock"])("li",{key:n.id},[n.isGroup?(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],{key:0},Object(K["renderList"])(n.subcategories,(function(n){return Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{onClick:function(r){return e.loadSubcategory(t,n)},href:"#?".concat(e.makeUrl(t,n)),key:n.id},Object(K["toDisplayString"])(n.name),9,Ol)})),128)):Object(K["createCommentVNode"])("",!0),n.isGroup?Object(K["createCommentVNode"])("",!0):(Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{key:1,onClick:function(r){return e.loadSubcategory(t,n)},href:"#?".concat(e.makeUrl(t,n))},Object(K["toDisplayString"])(n.name),9,jl))])})),128))])])])],512),[[l,{activator:e.sideNavActivator}]])])})),128))])])}function kl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sl(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.state.isInitialized&&0===n.length?Promise.resolve(Object(K["readonly"])(this.state.initialSites)):this.stateFiltered.isInitialized&&n.length===this.stateFiltered.excludedSites.length&&n.every((function(t,n){return t===e.stateFiltered.excludedSites[n]}))?Promise.resolve(Object(K["readonly"])(this.stateFiltered.initialSites)):(n.length>0&&this.searchSite("%",t,n).then((function(t){e.stateFiltered.isInitialized=!0,e.stateFiltered.excludedSites=n,null!==t&&(e.stateFiltered.initialSites=t)})),this.state.isInitialized?Promise.resolve(Object(K["readonly"])(this.state.initialSites)):this.searchSite("%",t,n).then((function(t){return e.state.isInitialized=!0,null!==t&&(e.state.initialSites=t),t})))}},{key:"loadSite",value:function(e){"all"===e?Ce.updateUrl(Object.assign(Object.assign({},Ce.urlParsed.value),{},{module:"MultiSites",action:"index",date:Ce.parsed.value.date,period:Ce.parsed.value.period})):Ce.updateUrl(Object.assign(Object.assign({},Ce.urlParsed.value),{},{segment:"",idSite:e}),Object.assign(Object.assign({},Ce.hashParsed.value),{},{segment:"",idSite:e}))}},{key:"searchSite",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return e?(this.currentRequestAbort&&this.currentRequestAbort.abort(),this.limitRequest||(this.limitRequest=Qe.fetch({method:"SitesManager.getNumWebsitesToDisplayPerPage"})),this.limitRequest.then((function(o){var a=o.value,i="SitesManager.getPatternMatchSites";return n&&(i="SitesManager.getSitesWithAdminAccess"),t.currentRequestAbort=new AbortController,Qe.fetch({method:i,limit:a,pattern:e,sitesToExclude:r},{abortController:t.currentRequestAbort})})).then((function(e){return e?t.processWebsitesList(e):null})).finally((function(){t.currentRequestAbort=null}))):this.loadInitialSites(n,r)}},{key:"processWebsitesList",value:function(e){var t=e;return t&&t.length?(t=t.map((function(e){return Object.assign(Object.assign({},e),{},{name:e.group?"[".concat(e.group,"] ").concat(e.name):e.name})})),t.sort((function(e,t){return e.name.toLowerCase()t.name.toLowerCase()?1:0})),t):[]}}]),e}(),ca=new la,sa=["value","name"],ua=["title"],da=["textContent"],ma={key:1,class:"placeholder"},pa={class:"dropdown"},fa={class:"custom_select_search"},ha=["placeholder"],ga={key:0},ba={class:"custom_select_container"},va=["onClick"],ya=["innerHTML","href","title"],Oa={class:"custom_select_ul_list"},ja={class:"noresult"},wa={key:1};function ka(e,t,n,r,o,a){var i,l,c,s,u=Object(K["resolveComponent"])("AllSitesLink"),d=Object(K["resolveDirective"])("focus-if"),m=Object(K["resolveDirective"])("focus-anywhere-but-here");return Object(K["withDirectives"])((Object(K["openBlock"])(),Object(K["createElementBlock"])("div",{class:Object(K["normalizeClass"])(["siteSelector piwikSelector borderedControl",{expanded:e.showSitesList,disabled:!e.hasMultipleSites}])},[e.name?(Object(K["openBlock"])(),Object(K["createElementBlock"])("input",{key:0,type:"hidden",value:null===(i=e.displayedModelValue)||void 0===i?void 0:i.id,name:e.name},null,8,sa)):Object(K["createCommentVNode"])("",!0),Object(K["createElementVNode"])("a",{ref:"selectorLink",onClick:t[0]||(t[0]=function(){return e.onClickSelector&&e.onClickSelector.apply(e,arguments)}),onKeydown:t[1]||(t[1]=function(t){return e.onPressEnter(t)}),href:"javascript:void(0)",class:Object(K["normalizeClass"])([{loading:e.isLoading},"title"]),tabindex:"4",title:e.selectorLinkTitle},[Object(K["createElementVNode"])("span",{class:Object(K["normalizeClass"])(["icon icon-chevron-down",{iconHidden:e.isLoading,collapsed:!e.showSitesList}])},null,2),Object(K["createElementVNode"])("span",null,[null!==(l=e.displayedModelValue)&&void 0!==l&&l.name||!e.placeholder?(Object(K["openBlock"])(),Object(K["createElementBlock"])("span",{key:0,textContent:Object(K["toDisplayString"])((null===(c=e.displayedModelValue)||void 0===c?void 0:c.name)||e.firstSiteName)},null,8,da)):Object(K["createCommentVNode"])("",!0),null!==(s=e.displayedModelValue)&&void 0!==s&&s.name||!e.placeholder?Object(K["createCommentVNode"])("",!0):(Object(K["openBlock"])(),Object(K["createElementBlock"])("span",ma,Object(K["toDisplayString"])(e.placeholder),1))])],42,ua),Object(K["withDirectives"])(Object(K["createElementVNode"])("div",pa,[Object(K["withDirectives"])(Object(K["createElementVNode"])("div",fa,[Object(K["withDirectives"])(Object(K["createElementVNode"])("input",{type:"text",onClick:t[2]||(t[2]=function(t){e.searchTerm="",e.loadInitialSites()}),"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.searchTerm=t}),tabindex:"4",class:"websiteSearch inp browser-default",placeholder:e.translate("General_Search")},null,8,ha),[[K["vModelText"],e.searchTerm],[d,{focused:e.shouldFocusOnSearch}]]),Object(K["withDirectives"])(Object(K["createElementVNode"])("img",{title:"Clear",onClick:t[4]||(t[4]=function(t){e.searchTerm="",e.loadInitialSites()}),class:"reset",src:"plugins/CoreHome/images/reset_search.png"},null,512),[[K["vShow"],e.searchTerm]])],512),[[K["vShow"],e.autocompleteMinSites<=e.sites.length||e.searchTerm]]),"top"===e.allSitesLocation&&e.showAllSitesItem?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",ga,[Object(K["createVNode"])(u,{href:e.urlAllSites,"all-sites-text":e.allSitesText,onClick:t[5]||(t[5]=function(t){return e.onAllSitesClick(t)})},null,8,["href","all-sites-text"])])):Object(K["createCommentVNode"])("",!0),Object(K["createElementVNode"])("div",ba,[Object(K["createElementVNode"])("ul",{class:"custom_select_ul_list",onClick:t[7]||(t[7]=function(t){return e.showSitesList=!1})},[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.sites,(function(n,r){return Object(K["withDirectives"])((Object(K["openBlock"])(),Object(K["createElementBlock"])("li",{onClick:function(t){return e.switchSite(Object.assign(Object.assign({},n),{},{id:n.idsite}),t)},key:r},[Object(K["createElementVNode"])("a",{onClick:t[6]||(t[6]=function(e){return e.preventDefault()}),innerHTML:e.$sanitize(e.getMatchedSiteName(n.name)),tabindex:"4",href:e.getUrlForSiteId(n.idsite),title:n.name},null,8,ya)],8,va)),[[K["vShow"],!(!e.showSelectedSite&&"".concat(e.activeSiteId)==="".concat(n.idsite))]])})),128))]),Object(K["withDirectives"])(Object(K["createElementVNode"])("ul",Oa,[Object(K["createElementVNode"])("li",null,[Object(K["createElementVNode"])("div",ja,Object(K["toDisplayString"])(e.translate("SitesManager_NotFound")+" "+e.searchTerm),1)])],512),[[K["vShow"],!e.sites.length&&e.searchTerm]])]),"bottom"===e.allSitesLocation&&e.showAllSitesItem?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",wa,[Object(K["createVNode"])(u,{href:e.urlAllSites,"all-sites-text":e.allSitesText,onClick:t[8]||(t[8]=function(t){return e.onAllSitesClick(t)})},null,8,["href","all-sites-text"])])):Object(K["createCommentVNode"])("",!0)],512),[[K["vShow"],e.showSitesList]])],2)),[[m,{blur:e.onBlur}]])}var Sa=["innerHTML","href"];function Ca(e,t,n,r,o,a){var i=this;return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",{onClick:t[1]||(t[1]=function(e){return i.onClick(e)}),class:"custom_select_all"},[Object(K["createElementVNode"])("a",{onClick:t[0]||(t[0]=function(e){return e.preventDefault()}),innerHTML:e.$sanitize(e.allSitesText),tabindex:"4",href:e.href},null,8,Sa)])}var Ea=Object(K["defineComponent"])({props:{href:String,allSitesText:String},emits:["click"],methods:{onClick:function(e){this.$emit("click",e)}}});Ea.render=Ca;var Da=Ea,Pa=Object(K["defineComponent"])({props:{modelValue:Object,showSelectedSite:{type:Boolean,default:!1},showAllSitesItem:{type:Boolean,default:!0},switchSiteOnSelect:{type:Boolean,default:!0},onlySitesWithAdminAccess:{type:Boolean,default:!1},name:{type:String,default:""},allSitesText:{type:String,default:a("General_MultiSitesSummary")},allSitesLocation:{type:String,default:"bottom"},placeholder:String,defaultToFirstSite:Boolean,sitesToExclude:{type:Array,default:function(){return[]}}},emits:["update:modelValue","blur"],components:{AllSitesLink:Da},directives:{FocusAnywhereButHere:zt,FocusIf:Yt},watch:{searchTerm:function(){this.onSearchTermChanged()}},data:function(){return{searchTerm:"",activeSiteId:"".concat(ce.idSite),showSitesList:!1,isLoading:!1,sites:[],autocompleteMinSites:parseInt(ce.config.autocomplete_min_sites,10)}},created:function(){this.searchSite=wt(this.searchSite),!this.modelValue&&ce.idSite&&this.$emit("update:modelValue",{id:ce.idSite,name:ce.helper.htmlDecode(ce.siteName)})},mounted:function(){var e=this;window.initTopControls(),this.loadInitialSites().then((function(){e.shouldDefaultToFirstSite&&e.$emit("update:modelValue",{id:e.sites[0].idsite,name:e.sites[0].name})}));var t=a("CoreHome_ShortcutWebsiteSelector");ce.helper.registerShortcut("w",t,(function(t){if(!t.altKey){t.preventDefault?t.preventDefault():t.returnValue=!1;var n=e.$refs.selectorLink;n&&(n.click(),n.focus())}}))},computed:{shouldFocusOnSearch:function(){return this.showSitesList&&this.autocompleteMinSites<=this.sites.length||this.searchTerm},selectorLinkTitle:function(){var e;return this.hasMultipleSites?a("CoreHome_ChangeCurrentWebsite",(null===(e=this.modelValue)||void 0===e?void 0:e.name)||this.firstSiteName):""},hasMultipleSites:function(){var e=ca.initialSitesFiltered.value&&ca.initialSitesFiltered.value.length?ca.initialSitesFiltered.value:ca.initialSites.value;return e&&e.length>1},firstSiteName:function(){var e=ca.initialSitesFiltered.value&&ca.initialSitesFiltered.value.length?ca.initialSitesFiltered.value:ca.initialSites.value;return e&&e.length>0?e[0].name:""},urlAllSites:function(){var e=Ce.stringify(Object.assign(Object.assign({},Ce.urlParsed.value),{},{module:"MultiSites",action:"index",date:Ce.parsed.value.date,period:Ce.parsed.value.period}));return"?".concat(e)},shouldDefaultToFirstSite:function(){var e;return!(null!==(e=this.modelValue)&&void 0!==e&&e.id)&&(!this.hasMultipleSites||this.defaultToFirstSite)&&this.sites[0]},displayedModelValue:function(){return this.modelValue?this.modelValue:ce.idSite?{id:ce.idSite,name:ce.helper.htmlDecode(ce.siteName)}:this.shouldDefaultToFirstSite?{id:this.sites[0].idsite,name:this.sites[0].name}:null}},methods:{onSearchTermChanged:function(){this.searchTerm?(this.isLoading=!0,this.searchSite(this.searchTerm)):(this.isLoading=!1,this.loadInitialSites())},onAllSitesClick:function(e){this.switchSite({id:"all",name:this.$props.allSitesText},e),this.showSitesList=!1},switchSite:function(e,t){var n=-1!==navigator.userAgent.indexOf("Mac OS X")?t.metaKey:t.ctrlKey;t&&n&&t.target&&t.target.href?window.open(t.target.href,"_blank"):(this.$emit("update:modelValue",{id:e.id,name:e.name}),this.switchSiteOnSelect&&this.activeSiteId!==e.id&&ca.loadSite(e.id))},onBlur:function(){this.showSitesList=!1,this.$emit("blur")},onClickSelector:function(){this.hasMultipleSites&&(this.showSitesList=!this.showSitesList,this.isLoading||this.searchTerm||this.loadInitialSites())},onPressEnter:function(e){"Enter"===e.key&&(e.preventDefault(),this.showSitesList=!this.showSitesList,this.showSitesList&&!this.isLoading&&this.loadInitialSites())},getMatchedSiteName:function(e){var t=e.toUpperCase().indexOf(this.searchTerm.toUpperCase());if(-1===t||this.isLoading)return ce.helper.htmlEntities(e);var n=ce.helper.htmlEntities(e.substring(0,t)),r=ce.helper.htmlEntities(e.substring(t+this.searchTerm.length));return"".concat(n,'').concat(this.searchTerm,"").concat(r)},loadInitialSites:function(){var e=this;return ca.loadInitialSites(this.onlySitesWithAdminAccess,this.sitesToExclude?this.sitesToExclude:[]).then((function(t){e.sites=t||[]}))},searchSite:function(e){var t=this;this.isLoading=!0,ca.searchSite(e,this.onlySitesWithAdminAccess,this.sitesToExclude?this.sitesToExclude:[]).then((function(n){e===t.searchTerm&&n&&(t.sites=n)})).finally((function(){t.isLoading=!1}))},getUrlForSiteId:function(e){var t=Ce.stringify(Object.assign(Object.assign({},Ce.urlParsed.value),{},{segment:"",idSite:e})),n=Ce.stringify(Object.assign(Object.assign({},Ce.hashParsed.value),{},{segment:"",idSite:e}));return"?".concat(t,"#?").concat(n)}}});Pa.render=ka;var Ta=Pa,Va={ref:"root",class:"quickAccessInside"},Na=["title","placeholder"],Ia={class:"dropdown"},xa={class:"no-result"},Ba=["onClick"],Aa=["onMouseenter","onClick"],La={class:"quickAccessMatomoSearch"},Ma=["onMouseenter","onClick"],_a=["textContent"],Fa={class:"quick-access-category helpCategory"},Ra=["href"];function Ha(e,t,n,r,o,a){var i=Object(K["resolveDirective"])("focus-if"),l=Object(K["resolveDirective"])("focus-anywhere-but-here");return Object(K["withDirectives"])((Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Va,[Object(K["createElementVNode"])("span",{class:"icon-search",onMouseenter:t[0]||(t[0]=function(t){return e.searchActive=!0})},null,32),Object(K["withDirectives"])(Object(K["createElementVNode"])("input",{class:"s",onKeydown:t[1]||(t[1]=function(t){return e.onKeypress(t)}),onFocus:t[2]||(t[2]=function(t){return e.searchActive=!0}),"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.searchTerm=t}),type:"text",tabindex:"2",title:e.quickAccessTitle,placeholder:e.translate("General_Search"),ref:"input"},null,40,Na),[[K["vModelText"],e.searchTerm],[i,{focused:e.searchActive}]]),Object(K["withDirectives"])(Object(K["createElementVNode"])("div",Ia,[Object(K["withDirectives"])(Object(K["createElementVNode"])("ul",null,[Object(K["createElementVNode"])("li",xa,Object(K["toDisplayString"])(e.translate("General_SearchNoResults")),1)],512),[[K["vShow"],!(e.numMenuItems>0||e.sites.length)]]),(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.menuItems,(function(t){return Object(K["openBlock"])(),Object(K["createElementBlock"])("ul",{key:t.title},[Object(K["createElementVNode"])("li",{class:"quick-access-category",onClick:function(n){e.searchTerm=t.title,e.searchMenu(e.searchTerm)}},Object(K["toDisplayString"])(t.title),9,Ba),(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(t.items,(function(t){return Object(K["openBlock"])(),Object(K["createElementBlock"])("li",{class:Object(K["normalizeClass"])(["result",{selected:t.menuIndex===e.searchIndex}]),onMouseenter:function(n){return e.searchIndex=t.menuIndex},onClick:function(n){return e.selectMenuItem(t.index)},key:t.index},[Object(K["createElementVNode"])("a",null,Object(K["toDisplayString"])(t.name.trim()),1)],42,Aa)})),128))])})),128)),Object(K["createElementVNode"])("ul",La,[Object(K["withDirectives"])(Object(K["createElementVNode"])("li",{class:"quick-access-category websiteCategory"},Object(K["toDisplayString"])(e.translate("SitesManager_Sites")),513),[[K["vShow"],e.hasSitesSelector&&e.sites.length||e.isLoading]]),Object(K["withDirectives"])(Object(K["createElementVNode"])("li",{class:"no-result"},Object(K["toDisplayString"])(e.translate("MultiSites_LoadingWebsites")),513),[[K["vShow"],e.hasSitesSelector&&e.isLoading]]),(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.sites,(function(t,n){return Object(K["withDirectives"])((Object(K["openBlock"])(),Object(K["createElementBlock"])("li",{class:Object(K["normalizeClass"])(["result",{selected:e.numMenuItems+n===e.searchIndex}]),onMouseenter:function(t){return e.searchIndex=e.numMenuItems+n},onClick:function(n){return e.selectSite(t.idsite)},key:t.idsite},[Object(K["createElementVNode"])("a",{textContent:Object(K["toDisplayString"])(t.name)},null,8,_a)],42,Ma)),[[K["vShow"],e.hasSitesSelector&&!e.isLoading]])})),128))]),Object(K["createElementVNode"])("ul",null,[Object(K["createElementVNode"])("li",Fa,Object(K["toDisplayString"])(e.translate("General_HelpResources")),1),Object(K["createElementVNode"])("li",{class:Object(K["normalizeClass"])([{selected:"help"===e.searchIndex},"quick-access-help"]),onMouseenter:t[4]||(t[4]=function(t){return e.searchIndex="help"})},[Object(K["createElementVNode"])("a",{href:"https://matomo.org?mtm_campaign=App_Help&mtm_source=Matomo_App&mtm_keyword=QuickSearch&s=".concat(encodeURIComponent(e.searchTerm)),target:"_blank"},Object(K["toDisplayString"])(e.translate("CoreHome_SearchOnMatomo",e.searchTerm)),9,Ra)],34)])],512),[[K["vShow"],e.searchTerm&&e.searchActive]])],512)),[[l,{blur:e.onBlur}]])}var Ua=window,$a=Ua.ListingFormatter;function qa(e){var t=e.getBoundingClientRect(),n=window.$(window);return t.top>=0&&t.left>=0&&t.bottom<=n.height()&&t.right<=n.width()}function Wa(e){e&&e.scrollIntoView&&e.scrollIntoView()}var za=Object(K["defineComponent"])({directives:{FocusAnywhereButHere:zt,FocusIf:Yt},watch:{searchActive:function(e){var t=this.$refs.root;if(t&&t.parentElement){var n=t.parentElement.classList;n.toggle("active",e),n.toggle("expanded",e)}}},mounted:function(){var e=this,t=this.$refs.root;t&&t.parentElement&&t.parentElement.classList.add("quick-access","piwikSelector"),"undefined"!==typeof window.initTopControls&&window.initTopControls&&window.initTopControls(),ce.helper.registerShortcut("f",a("CoreHome_ShortcutSearch"),(function(t){t.altKey||(t.preventDefault(),Wa(e.$refs.root),e.activateSearch())}))},data:function(){var e=!!document.querySelector(".segmentEditorPanel");return{menuItems:[],numMenuItems:0,searchActive:!1,searchTerm:"",searchIndex:0,menuIndexCounter:-1,topMenuItems:null,leftMenuItems:null,segmentItems:null,hasSegmentSelector:e,sites:[],isLoading:!1}},created:function(){this.searchMenu=wt(this.searchMenu.bind(this))},computed:{hasSitesSelector:function(){return!!document.querySelector('.top_controls .siteSelector,.top_controls [vue-entry="CoreHome.SiteSelector"]')},quickAccessTitle:function(){var e=[a("CoreHome_MenuEntries")];return this.hasSegmentSelector&&e.push(a("CoreHome_Segments")),this.hasSitesSelector&&e.push(a("SitesManager_Sites")),a("CoreHome_QuickAccessTitle",$a.formatAnd(e))}},emits:["itemSelected","blur"],methods:{onKeypress:function(e){var t=this,n=this.searchTerm&&this.searchActive,r=9===e.which,o=27===e.which;38===e.which?(this.highlightPreviousItem(),e.preventDefault()):40===e.which?(this.highlightNextItem(),e.preventDefault()):13===e.which?this.clickQuickAccessMenuItem():r&&n||o&&n?this.deactivateSearch():setTimeout((function(){t.searchActive=!0,t.searchMenu(t.searchTerm)}))},highlightPreviousItem:function(){this.searchIndex-1<0?this.searchIndex=0:this.searchIndex-=1,this.makeSureSelectedItemIsInViewport()},highlightNextItem:function(){var e=this.$refs.root.querySelectorAll("li.result").length;e<=this.searchIndex+1?this.searchIndex=e-1:this.searchIndex+=1,this.makeSureSelectedItemIsInViewport()},clickQuickAccessMenuItem:function(){var e=this,t=this.getCurrentlySelectedElement();t&&setTimeout((function(){t.click(),e.$emit("itemSelected",t)}),20)},deactivateSearch:function(){this.searchTerm="",this.searchActive=!1,this.$refs.input&&this.$refs.input.blur()},makeSureSelectedItemIsInViewport:function(){var e=this.getCurrentlySelectedElement();e&&!qa(e)&&Wa(e)},getCurrentlySelectedElement:function(){var e=this.$refs.root.querySelectorAll("li.result");if(e&&e.length&&e.item(this.searchIndex))return e.item(this.searchIndex)},searchMenu:function(e){var t=this,n=e.toLowerCase(),r=-1,o={},a=[],i=function(e){var t=Object.assign({},e);r+=1,t.menuIndex=r;var n=t.category;n in o||(a.push({title:n,items:[]}),o[n]=a.length-1);var i=o[n];a[i].items.push(t)};this.resetSearchIndex(),this.hasSitesSelector&&(this.isLoading=!0,ca.searchSite(n).then((function(e){e&&(t.sites=e)})).finally((function(){t.isLoading=!1})));var l=function(e){return-1!==e.name.toLowerCase().indexOf(n)||-1!==e.category.toLowerCase().indexOf(n)};null===this.topMenuItems&&(this.topMenuItems=this.getTopMenuItems()),null===this.leftMenuItems&&(this.leftMenuItems=this.getLeftMenuItems()),null===this.segmentItems&&(this.segmentItems=this.getSegmentItems());var c=this.topMenuItems.filter(l),s=this.leftMenuItems.filter(l),u=this.segmentItems.filter(l);c.forEach(i),s.forEach(i),u.forEach(i),this.numMenuItems=c.length+s.length+u.length,this.menuItems=a},resetSearchIndex:function(){this.searchIndex=0,this.makeSureSelectedItemIsInViewport()},selectSite:function(e){ca.loadSite(e)},selectMenuItem:function(e){var t=document.querySelector("[quick_access='".concat(e,"']"));if(t){this.deactivateSearch();var n=t.getAttribute("href");if(n&&n.length>10&&t&&t.click)try{t.click()}catch(r){window.$(t).click()}else window.$(t).click()}},onBlur:function(){this.searchActive=!1,this.$emit("blur")},activateSearch:function(){this.searchActive=!0},getTopMenuItems:function(){var e=this,t=a("CoreHome_Menu"),n=[];return document.querySelectorAll("nav .sidenav li > a, nav .sidenav li > div > a").forEach((function(r){var o,a,i=null===(o=r.textContent)||void 0===o?void 0:o.trim();(!i||null!=r.parentElement&&null!=r.parentElement.tagName&&"DIV"===r.parentElement.tagName)&&(i=null===(a=r.getAttribute("title"))||void 0===a?void 0:a.trim());i&&(n.push({name:i,index:e.menuIndexCounter+=1,category:t}),r.setAttribute("quick_access","".concat(e.menuIndexCounter)))})),n},getLeftMenuItems:function(){var e=this,t=[];return document.querySelectorAll("#secondNavBar .menuTab").forEach((function(n){var r,o=window.$(n).find("> .item"),a=(null===(r=o[0])||void 0===r?void 0:r.innerText.trim())||"";a&&-1!==a.lastIndexOf("\n")&&(a=a.slice(0,a.lastIndexOf("\n")).trim()),window.$(n).find("li .item").each((function(n,r){var o,i=null===(o=r.textContent)||void 0===o?void 0:o.trim();i&&(t.push({name:i,category:a,index:e.menuIndexCounter+=1}),r.setAttribute("quick_access","".concat(e.menuIndexCounter)))}))})),t},getSegmentItems:function(){var e=this;if(!this.hasSegmentSelector)return[];var t=a("CoreHome_Segments"),n=[];return document.querySelectorAll(".segmentList [data-idsegment]").forEach((function(r){var o,a,i=null===(o=r.querySelector(".segname"))||void 0===o||null===(a=o.textContent)||void 0===a?void 0:a.trim();i&&(n.push({name:i,category:t,index:e.menuIndexCounter+=1}),r.setAttribute("quick_access","".concat(e.menuIndexCounter)))})),n}}});za.render=Ha;var Ga=za;function Ya(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ja={class:"fieldArray form-group"},Ka={key:0,class:"fieldUiControl"},Qa=["onClick","title"];function Xa(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("Field");return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Ja,[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.modelValue,(function(t,n){return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",{class:Object(K["normalizeClass"])(["fieldArrayTable multiple valign-wrapper",Ya({},"fieldArrayTable".concat(n),!0)]),key:n},[e.field.uiControl?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Ka,[Object(K["createVNode"])(i,{"full-width":!0,"model-value":t,options:e.field.availableValues,"onUpdate:modelValue":function(t){return e.onEntryChange(t,n)},"model-modifiers":e.field.modelModifiers,placeholder:" ",uicontrol:e.field.uiControl,title:e.field.title,name:"".concat(e.name,"-").concat(n),"template-file":e.field.templateFile,component:e.field.component},null,8,["model-value","options","onUpdate:modelValue","model-modifiers","uicontrol","title","name","template-file","component"])])):Object(K["createCommentVNode"])("",!0),Object(K["withDirectives"])(Object(K["createElementVNode"])("span",{onClick:function(t){return e.removeEntry(n)},class:"icon-minus valign",title:e.translate("General_Remove")},null,8,Qa),[[K["vShow"],n+1!==e.modelValue.length]])],2)})),128))])}function Za(e){return ri(e)||ni(e)||ti(e)||ei()}function ei(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ti(e,t){if(e){if("string"===typeof e)return oi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oi(e,t):void 0}}function ni(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function ri(e){if(Array.isArray(e))return oi(e)}function oi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1&&this.modelValue){var t=this.modelValue.filter((function(t,n){return n!==e}));this.$emit("update:modelValue",t)}}}});ii.render=Xa;var li=ii;function ci(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var si={class:"multiPairField form-group"},ui={key:1,class:"fieldUiControl fieldUiControl2"},di={key:2,class:"fieldUiControl fieldUiControl3"},mi={key:3,class:"fieldUiControl fieldUiControl4"},pi=["onClick","title"];function fi(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("Field");return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",si,[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.modelValue,(function(t,n){var r;return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",{class:Object(K["normalizeClass"])(["multiPairFieldTable multiple valign-wrapper",(r={},ci(r,"multiPairFieldTable".concat(n),!0),ci(r,"has".concat(e.fieldCount,"Fields"),!0),r)]),key:n},[e.field1?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",{key:0,class:Object(K["normalizeClass"])(["fieldUiControl fieldUiControl1",{hasMultiFields:e.field1.type&&e.field2.type}])},[Object(K["createVNode"])(i,{"full-width":!0,"model-value":t[e.field1.key],options:e.field1.availableValues,"onUpdate:modelValue":function(t){return e.onEntryChange(n,e.field1.key,t)},"model-modifiers":e.field1.modelModifiers,placeholder:" ",uicontrol:e.field1.uiControl,name:"".concat(e.name,"-p1-").concat(n),title:e.field1.title,"template-file":e.field1.templateFile,component:e.field1.component},null,8,["model-value","options","onUpdate:modelValue","model-modifiers","uicontrol","name","title","template-file","component"])],2)):Object(K["createCommentVNode"])("",!0),e.field2?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",ui,[Object(K["createVNode"])(i,{"full-width":!0,options:e.field2.availableValues,"onUpdate:modelValue":function(t){return e.onEntryChange(n,e.field2.key,t)},"model-value":t[e.field2.key],"model-modifiers":e.field2.modelModifiers,placeholder:" ",uicontrol:e.field2.uiControl,name:"".concat(e.name,"-p2-").concat(n),title:e.field2.title,"template-file":e.field2.templateFile,component:e.field2.component},null,8,["options","onUpdate:modelValue","model-value","model-modifiers","uicontrol","name","title","template-file","component"])])):Object(K["createCommentVNode"])("",!0),e.field3?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",di,[Object(K["createVNode"])(i,{"full-width":!0,options:e.field3.availableValues,"onUpdate:modelValue":function(t){return e.onEntryChange(n,e.field3.key,t)},"model-value":t[e.field3.key],"model-modifiers":e.field3.modelModifiers,placeholder:" ",uicontrol:e.field3.uiControl,title:e.field3.title,"template-file":e.field3.templateFile,component:e.field3.component},null,8,["options","onUpdate:modelValue","model-value","model-modifiers","uicontrol","title","template-file","component"])])):Object(K["createCommentVNode"])("",!0),e.field4?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",mi,[Object(K["createVNode"])(i,{"full-width":!0,options:e.field4.availableValues,"onUpdate:modelValue":function(t){return e.onEntryChange(n,e.field4.key,t)},"model-value":t[e.field4.key],"model-modifiers":e.field4.modelModifiers,placeholder:" ",uicontrol:e.field4.uiControl,title:e.field4.title,"template-file":e.field4.templateFile,component:e.field4.component},null,8,["options","onUpdate:modelValue","model-value","model-modifiers","uicontrol","title","template-file","component"])])):Object(K["createCommentVNode"])("",!0),Object(K["withDirectives"])(Object(K["createElementVNode"])("span",{onClick:function(t){return e.removeEntry(n)},class:"icon-minus valign",title:e.translate("General_Remove")},null,8,pi),[[K["vShow"],n+1!==e.modelValue.length]])],2)})),128))])}function hi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gi(e){return Oi(e)||yi(e)||vi(e)||bi()}function bi(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vi(e,t){if(e){if("string"===typeof e)return ji(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ji(e,t):void 0}}function yi(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Oi(e){if(Array.isArray(e))return ji(e)}function ji(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1&&this.modelValue){var t=this.modelValue.filter((function(t,n){return n!==e}));this.$emit("update:modelValue",t)}},isEmptyValue:function(e){var t=this.fieldCount;if(4===t){if(!e[this.field1.key]&&!e[this.field2.key]&&!e[this.field3.key]&&!e[this.field4.key])return!1}else if(3===t){if(!e[this.field1.key]&&!e[this.field2.key]&&!e[this.field3.key])return!1}else if(2===t){if(!e[this.field1.key]&&!e[this.field2.key])return!1}else if(1===t&&!e[this.field1.key])return!1;return!0},makeEmptyValue:function(){var e={};return this.field1&&this.field1.key&&(e[this.field1.key]=""),this.field2&&this.field2.key&&(e[this.field2.key]=""),this.field3&&this.field3.key&&(e[this.field3.key]=""),this.field4&&this.field4.key&&(e[this.field4.key]=""),e}}});ki.render=fi;var Si=ki,Ci={ref:"root",class:"periodSelector piwikSelector"},Ei=["title"],Di=Object(K["createElementVNode"])("span",{class:"icon icon-calendar"},null,-1),Pi={id:"periodMore",class:"dropdown"},Ti={class:"flex"},Vi={key:0,class:"period-date"},Ni={class:"period-type"},Ii={id:"otherPeriods"},xi=["onDblclick","title"],Bi=["id","checked","onChange","onDblclick"],Ai={key:0,class:"compare-checkbox"},Li={id:"comparePeriodToDropdown"},Mi={key:1,class:"compare-date-range"},_i={id:"comparePeriodStartDate"},Fi=Object(K["createElementVNode"])("span",{class:"compare-dates-separator"},null,-1),Ri={id:"comparePeriodEndDate"},Hi={class:"apply-button-container"},Ui=["disabled","value"],$i={key:2,id:"ajaxLoadingCalendar"},qi={class:"loadingSegment"};function Wi(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("DateRangePicker"),l=Object(K["resolveComponent"])("PeriodDatePicker"),c=Object(K["resolveComponent"])("Field"),s=Object(K["resolveComponent"])("ActivityIndicator"),u=Object(K["resolveDirective"])("expand-on-click");return Object(K["withDirectives"])((Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Ci,[Object(K["createElementVNode"])("a",{ref:"title",id:"date",class:"title",tabindex:"-1",title:e.translate("General_ChooseDate",e.currentlyViewingText)},[Di,Object(K["createTextVNode"])(" "+Object(K["toDisplayString"])(e.currentlyViewingText),1)],8,Ei),Object(K["createElementVNode"])("div",Pi,[Object(K["createElementVNode"])("div",Ti,[Object(K["createElementVNode"])("div",null,[Object(K["withDirectives"])(Object(K["createVNode"])(i,{class:"period-range","start-date":e.startRangeDate,"end-date":e.endRangeDate,onRangeChange:t[0]||(t[0]=function(t){return e.onRangeChange(t.start,t.end)}),onSubmit:t[1]||(t[1]=function(t){return e.onApplyClicked()})},null,8,["start-date","end-date"]),[[K["vShow"],"range"===e.selectedPeriod]]),"range"!==e.selectedPeriod?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Vi,[Object(K["createVNode"])(l,{id:"datepicker",period:e.selectedPeriod,date:e.periodValue===e.selectedPeriod?e.dateValue:null,onSelect:t[2]||(t[2]=function(t){return e.setPiwikPeriodAndDate(e.selectedPeriod,t.date)})},null,8,["period","date"])])):Object(K["createCommentVNode"])("",!0)]),Object(K["createElementVNode"])("div",Ni,[Object(K["createElementVNode"])("h6",null,Object(K["toDisplayString"])(e.translate("General_Period")),1),Object(K["createElementVNode"])("div",Ii,[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.periodsFiltered,(function(n){return Object(K["openBlock"])(),Object(K["createElementBlock"])("p",{key:n},[Object(K["createElementVNode"])("label",{class:Object(K["normalizeClass"])({"selected-period-label":n===e.selectedPeriod}),onDblclick:function(t){return e.changeViewedPeriod(n)},title:n===e.periodValue?"":e.translate("General_DoubleClickToChangePeriod")},[Object(K["withDirectives"])(Object(K["createElementVNode"])("input",{type:"radio",name:"period",id:"period_id_".concat(n),"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.selectedPeriod=t}),checked:e.selectedPeriod===n,onChange:function(t){return e.selectedPeriod=n},onDblclick:function(t){return e.changeViewedPeriod(n)}},null,40,Bi),[[K["vModelRadio"],e.selectedPeriod]]),Object(K["createElementVNode"])("span",null,Object(K["toDisplayString"])(e.getPeriodDisplayText(n)),1)],42,xi)])})),128))])])]),e.isComparisonEnabled?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Ai,[Object(K["createElementVNode"])("label",null,[Object(K["withDirectives"])(Object(K["createElementVNode"])("input",{id:"comparePeriodTo",type:"checkbox","onUpdate:modelValue":t[4]||(t[4]=function(t){return e.isComparing=t})},null,512),[[K["vModelCheckbox"],e.isComparing]]),Object(K["createElementVNode"])("span",null,Object(K["toDisplayString"])(e.translate("General_CompareTo")),1)]),Object(K["createElementVNode"])("div",Li,[Object(K["createVNode"])(c,{modelValue:e.comparePeriodType,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.comparePeriodType=t}),style:Object(K["normalizeStyle"])({visibility:e.isComparing?"visible":"hidden"}),name:"comparePeriodToDropdown",uicontrol:"select",options:e.comparePeriodDropdownOptions,"full-width":!0,disabled:!e.isComparing},null,8,["modelValue","style","options","disabled"])])])):Object(K["createCommentVNode"])("",!0),e.isComparing&&"custom"===e.comparePeriodType?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Mi,[Object(K["createElementVNode"])("div",null,[Object(K["createElementVNode"])("div",_i,[Object(K["createElementVNode"])("div",null,[Object(K["createVNode"])(c,{modelValue:e.compareStartDate,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.compareStartDate=t}),name:"comparePeriodStartDate",uicontrol:"text","full-width":!0,title:e.translate("CoreHome_StartDate"),placeholder:"YYYY-MM-DD"},null,8,["modelValue","title"])])]),Fi,Object(K["createElementVNode"])("div",Ri,[Object(K["createElementVNode"])("div",null,[Object(K["createVNode"])(c,{modelValue:e.compareEndDate,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.compareEndDate=t}),name:"comparePeriodEndDate",uicontrol:"text","full-width":!0,title:e.translate("CoreHome_EndDate"),placeholder:"YYYY-MM-DD"},null,8,["modelValue","title"])])])])])):Object(K["createCommentVNode"])("",!0),Object(K["createElementVNode"])("div",Hi,[Object(K["createElementVNode"])("input",{type:"submit",id:"calendarApply",class:"btn",onClick:t[8]||(t[8]=function(t){return e.onApplyClicked()}),disabled:!e.isApplyEnabled(),value:e.translate("General_Apply")},null,8,Ui)]),e.isLoadingNewPage?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",$i,[Object(K["createVNode"])(s,{loading:!0}),Object(K["createElementVNode"])("div",qi,Object(K["toDisplayString"])(e.translate("SegmentEditor_LoadingSegmentedDataMayTakeSomeTime")),1)])):Object(K["createCommentVNode"])("",!0)])],512)),[[u,{expander:"title"}]])}function zi(e,t){return Qi(e)||Ki(e,t)||Yi(e,t)||Gi()}function Gi(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Yi(e,t){if(e){if("string"===typeof e)return Ji(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ji(e,t):void 0}}function Ji(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nr?(window.$("#alert").find("h2").text(a("General_InvalidDateRange")),ce.helper.modalConfirm("#alert",{}),null):"".concat(e,",").concat(t)}return p(this.dateValue)}},methods:{handleZIndexPositionRelativeCompareDropdownIssue:function(){var e=window.$(this.$refs.root);e.on("focus","#comparePeriodToDropdown .select-dropdown",(function(){e.addClass("compare-dropdown-open")})).on("blur","#comparePeriodToDropdown .select-dropdown",(function(){e.removeClass("compare-dropdown-open")}))},changeViewedPeriod:function(e){e!==this.periodValue&&"range"!==e&&this.setPiwikPeriodAndDate(e,this.dateValue)},setPiwikPeriodAndDate:function(e,t){this.periodValue=e,this.selectedPeriod=e,this.dateValue=t;var n=p(t);this.setRangeStartEndFromPeriod(e,n),this.propagateNewUrlParams(n,this.selectedPeriod),window.initTopControls()},propagateNewUrlParams:function(e,t){var n,r=this.selectedComparisonParams;ce.helper.isReportingPage()?(this.closePeriodSelector(),n=Ce.hashParsed.value):(this.isLoadingNewPage=!0,n=Ce.parsed.value);var o=Object.assign({},n);delete o.comparePeriods,delete o.comparePeriodType,delete o.compareDates,Ce.updateLocation(Object.assign(Object.assign({},o),{},{date:e,period:t},r))},onApplyClicked:function(){if("range"===this.selectedPeriod){var e=this.selectedDateString;if(!e)return;return this.periodValue="range",void this.propagateNewUrlParams(e,"range")}this.setPiwikPeriodAndDate(this.selectedPeriod,this.dateValue)},updateComparisonValuesFromStore:function(){this.comparePeriodType="previousPeriod",this.compareStartDate="",this.compareEndDate="";var e=$r.getPeriodComparisons();if(!(e.length<2)){var t=Ce.parsed.value.comparePeriodType;if(el.includes(t)&&(this.comparePeriodType=t,"custom"===this.comparePeriodType&&"range"===e[1].params.period)){var n;try{n=m.parse(e[1].params.period,e[1].params.date)}catch(l){return}var r=n.getDateRange(),o=zi(r,2),a=o[0],i=o[1];this.compareStartDate=p(a),this.compareEndDate=p(i)}}},updateSelectedValuesFromHash:function(){var e=Ce.parsed.value.date,t=Ce.parsed.value.period;this.periodValue=t,this.selectedPeriod=t,this.dateValue=null,this.startRangeDate=null,this.endRangeDate=null;try{m.parse(t,e)}catch(l){return}if("range"===t){var n=m.get(t).parse(e),r=n.getDateRange(),o=zi(r,2),a=o[0],i=o[1];this.dateValue=a,this.startRangeDate=p(a),this.endRangeDate=p(i)}else this.dateValue=h(e),this.setRangeStartEndFromPeriod(t,e)},setRangeStartEndFromPeriod:function(e,t){var n=m.parse(e,t).getDateRange();this.startRangeDate=p(n[0]rl?rl:n[1])},getPeriodDisplayText:function(e){return m.get(e).getDisplayText()},onRangeChange:function(e,t){e&&t?(this.isRangeValid=!0,this.startRangeDate=e,this.endRangeDate=t):this.isRangeValid=!1},isApplyEnabled:function(){return!("range"===this.selectedPeriod&&!this.isRangeValid)&&!(this.isComparing&&"custom"===this.comparePeriodType&&!this.isCompareRangeValid())},closePeriodSelector:function(){this.$refs.root.classList.remove("expanded")},isCompareRangeValid:function(){try{h(this.compareStartDate)}catch(e){return!1}try{h(this.compareEndDate)}catch(e){return!1}return!0}}});al.render=Wi;var il=al,ll={class:"reportingMenu"},cl=["aria-label"],sl=["onClick"],ul={class:"hidden"},dl={role:"menu"},ml=["href","onClick","title"],pl=["href","onClick"],fl=["onClick"],hl=Object(K["createElementVNode"])("span",{class:"icon-help"},null,-1),gl=[hl],bl={id:"mobile-left-menu",class:"sidenav hide-on-large-only"},vl={class:"collapsible collapsible-accordion"},yl={class:"collapsible-header"},Ol={class:"collapsible-body"},jl=["onClick","href"],wl=["onClick","href"];function kl(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("MenuItemsDropdown"),l=Object(K["resolveDirective"])("side-nav");return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",ll,[Object(K["createElementVNode"])("ul",{class:"navbar hide-on-med-and-down",role:"menu","aria-label":e.translate("CoreHome_MainNavigation")},[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.menu,(function(t){return Object(K["openBlock"])(),Object(K["createElementBlock"])("li",{class:Object(K["normalizeClass"])(["menuTab",{active:t.id===e.activeCategory}]),role:"menuitem",key:t.id},[Object(K["createElementVNode"])("a",{class:"item",tabindex:"5",href:"",onClick:Object(K["withModifiers"])((function(n){return e.loadCategory(t)}),["prevent"])},[Object(K["createElementVNode"])("span",{class:Object(K["normalizeClass"])("menu-icon ".concat(t.icon?t.icon:t.subcategories&&t.id===e.activeCategory?"icon-chevron-down":"icon-chevron-right"))},null,2),Object(K["createTextVNode"])(Object(K["toDisplayString"])(t.name)+" ",1),Object(K["createElementVNode"])("span",ul,Object(K["toDisplayString"])(e.translate("CoreHome_Menu")),1)],8,sl),Object(K["createElementVNode"])("ul",dl,[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(t.subcategories,(function(n){return Object(K["openBlock"])(),Object(K["createElementBlock"])("li",{role:"menuitem",class:Object(K["normalizeClass"])({active:(n.id===e.displayedSubcategory||n.isGroup&&e.activeSubsubcategory===e.displayedSubcategory)&&t.id===e.displayedCategory}),key:n.id},[n.isGroup?(Object(K["openBlock"])(),Object(K["createBlock"])(i,{key:0,"show-search":!0,"menu-title":e.htmlEntities(n.name)},{default:Object(K["withCtx"])((function(){return[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(n.subcategories,(function(r){return Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{class:Object(K["normalizeClass"])(["item",{active:r.id===e.activeSubsubcategory&&n.id===e.displayedSubcategory&&t.id===e.displayedCategory}]),tabindex:"5",href:"#?".concat(e.makeUrl(t,r)),onClick:function(n){return e.loadSubcategory(t,r,n)},title:r.tooltip,key:r.id},Object(K["toDisplayString"])(r.name),11,ml)})),128))]})),_:2},1032,["menu-title"])):Object(K["createCommentVNode"])("",!0),n.isGroup?Object(K["createCommentVNode"])("",!0):(Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{key:1,href:"#?".concat(e.makeUrl(t,n)),class:"item",onClick:function(r){return e.loadSubcategory(t,n,r)}},Object(K["toDisplayString"])(n.name),9,pl)),n.help?(Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{key:2,class:Object(K["normalizeClass"])(["item-help-icon",{active:e.helpShownCategory&&e.helpShownCategory.subcategory===n.id&&e.helpShownCategory.category===t.id&&n.help}]),tabindex:"5",href:"javascript:",onClick:function(r){return e.showHelp(t,n,r)}},gl,10,fl)):Object(K["createCommentVNode"])("",!0)],2)})),128))])],2)})),128))],8,cl),Object(K["createElementVNode"])("ul",bl,[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.menu,(function(t){return Object(K["openBlock"])(),Object(K["createElementBlock"])("li",{class:"no-padding",key:t.id},[Object(K["withDirectives"])(Object(K["createElementVNode"])("ul",vl,[Object(K["createElementVNode"])("li",null,[Object(K["createElementVNode"])("a",yl,[Object(K["createElementVNode"])("i",{class:Object(K["normalizeClass"])(t.icon?t.icon:"icon-chevron-down")},null,2),Object(K["createTextVNode"])(Object(K["toDisplayString"])(t.name),1)]),Object(K["createElementVNode"])("div",Ol,[Object(K["createElementVNode"])("ul",null,[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(t.subcategories,(function(n){return Object(K["openBlock"])(),Object(K["createElementBlock"])("li",{key:n.id},[n.isGroup?(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],{key:0},Object(K["renderList"])(n.subcategories,(function(n){return Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{onClick:function(r){return e.loadSubcategory(t,n)},href:"#?".concat(e.makeUrl(t,n)),key:n.id},Object(K["toDisplayString"])(n.name),9,jl)})),128)):Object(K["createCommentVNode"])("",!0),n.isGroup?Object(K["createCommentVNode"])("",!0):(Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{key:1,onClick:function(r){return e.loadSubcategory(t,n)},href:"#?".concat(e.makeUrl(t,n))},Object(K["toDisplayString"])(n.name),9,wl))])})),128))])])])],512),[[l,{activator:e.sideNavActivator}]])])})),128))])])}function Sl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cl(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nt.order?1:0})),t}
+ */function Ll(e){var t=Vl(e||[]);return t.sort((function(e,t){return e.ordert.order?1:0})),t}
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
- */function Ll(e){var t=e;return t.subcategories?t.subcategories:[]}
+ */function Ml(e){var t=e;return t.subcategories?t.subcategories:[]}
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
- */function Ml(e){var t=e;return t.subcategories?t.subcategories:[]}function _l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fl(e,t){for(var n=0;n".concat(l,"
");Go.show({context:"info",id:Zl,type:"help",noclear:!0,class:"help-notification",message:c+t.help,placeat:"#notificationContainer",prepend:!0}),this.helpShownCategory={category:e.id,subcategory:t.id}}}});ec.render=wl;var tc=ec;function nc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rc(e,t){for(var n=0;n".concat(l,"
");Yo.show({context:"info",id:ec,type:"help",noclear:!0,class:"help-notification",message:c+t.help,placeat:"#notificationContainer",prepend:!0}),this.helpShownCategory={category:e.id,subcategory:t.id}}}});tc.render=kl;var nc=tc;function rc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oc(e,t){for(var n=0;n .card-content .card-title");i.length||(i=a.find("> h2")),i.length&&i.html(ce.helper.htmlEntities(n.widgetName))}ce.helper.compileVueEntryComponents(a),Go.parseNotificationDivs(),setTimeout((function(){ce.postEvent("widget:loaded",{parameters:e,element:a})}))}})).catch((function(e){t===n.changeCounter&&(n.lastWidgetAbortController=null,n.cleanupLastWidgetContent(),n.loading=!1,"abort"!==e.xhrStatus&&(429===e.status&&(n.loadingFailedRateLimit=!0),n.loadingFailed=!0))}))}}});hc.render=fc;var bc=hc,gc={class:"widget-container"};function vc(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("Widget");return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",gc,[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.actualContainer,(function(e,t){return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",{key:t},[Object(K["createElementVNode"])("div",null,[Object(K["createVNode"])(i,{widget:e,"prevent-recursion":!0},null,8,["widget"])])])})),128))])}function yc(e){return wc(e)||jc(e)||Cc(e)||Oc()}function Oc(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function jc(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function wc(e){if(Array.isArray(e))return Ec(e)}function kc(e,t){return Pc(e)||Dc(e,t)||Cc(e,t)||Sc()}function Sc(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Cc(e,t){if(e){if("string"===typeof e)return Ec(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ec(e,t):void 0}}function Ec(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n"))}return{tooltipContent:e}},created:function(){var e=this,t=this.actualWidget;if(t&&t.middlewareParameters){var n=t.middlewareParameters;Qe.fetch(n).then((function(t){e.showWidget=!!t}))}else this.showWidget=!0},computed:{allWidgets:function(){return Xl.widgets.value},actualWidget:function(){var e=this,t=this.widget;if(t){var n=Object.assign({},t);if(t&&t.isReport&&!t.documentation){var r=lc.findReport(t.module,t.action);r&&r.documentation&&(n.documentation=r.documentation)}return t}if(this.containerid){var o=Xc(this.allWidgets,this.containerid);if(o){var a=Object.assign({},o);if(this.widgetized){a.isFirstInPage=!0,a.parameters=Object.assign(Object.assign({},a.parameters),{},{widget:"1"});var i=Kl(a);i&&(a.widgets=i.map((function(t){return Object.assign(Object.assign({},t),{},{parameters:Object.assign(Object.assign({},t.parameters),{},{widget:"1",containerId:e.containerid})})})))}return a}}return null}}});Zc.render=Qc;var es=Zc,ts={class:"reporting-page"},ns={key:1,class:"col s12 l6 leftWidgetColumn"},rs={key:2,class:"col s12 l6 rightWidgetColumn"};function os(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("ActivityIndicator"),l=Object(K["resolveComponent"])("Widget");return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",ts,[Object(K["createVNode"])(i,{loading:e.loading},null,8,["loading"]),Object(K["withDirectives"])(Object(K["createElementVNode"])("div",null,Object(K["toDisplayString"])(e.translate("CoreHome_NoSuchPage")),513),[[K["vShow"],e.hasNoPage]]),(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.widgets,(function(e){return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",{class:"row",key:e.uniqueId},[e.group?Object(K["createCommentVNode"])("",!0):(Object(K["openBlock"])(),Object(K["createBlock"])(l,{key:0,class:"col s12 fullWidgetColumn",widget:e},null,8,["widget"])),e.group?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",ns,[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.left,(function(e){return Object(K["openBlock"])(),Object(K["createBlock"])(l,{widget:e,key:e.uniqueId},null,8,["widget"])})),128))])):Object(K["createCommentVNode"])("",!0),e.group?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",rs,[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.right,(function(e){return Object(K["openBlock"])(),Object(K["createBlock"])(l,{widget:e,key:e.uniqueId},null,8,["widget"])})),128))])):Object(K["createCommentVNode"])("",!0)])})),128))])}function as(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function is(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n .card-content .card-title");i.length||(i=a.find("> h2")),i.length&&i.html(ce.helper.htmlEntities(n.widgetName))}ce.helper.compileVueEntryComponents(a),Yo.parseNotificationDivs(),setTimeout((function(){ce.postEvent("widget:loaded",{parameters:e,element:a})}))}})).catch((function(e){t===n.changeCounter&&(n.lastWidgetAbortController=null,n.cleanupLastWidgetContent(),n.loading=!1,"abort"!==e.xhrStatus&&(429===e.status&&(n.loadingFailedRateLimit=!0),n.loadingFailed=!0))}))}}});gc.render=hc;var bc=gc,vc={class:"widget-container"};function yc(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("Widget");return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",vc,[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.actualContainer,(function(e,t){return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",{key:t},[Object(K["createElementVNode"])("div",null,[Object(K["createVNode"])(i,{widget:e,"prevent-recursion":!0},null,8,["widget"])])])})),128))])}function Oc(e){return kc(e)||wc(e)||Ec(e)||jc()}function jc(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function wc(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function kc(e){if(Array.isArray(e))return Dc(e)}function Sc(e,t){return Tc(e)||Pc(e,t)||Ec(e,t)||Cc()}function Cc(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ec(e,t){if(e){if("string"===typeof e)return Dc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dc(e,t):void 0}}function Dc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n"))}return{tooltipContent:e}},created:function(){var e=this,t=this.actualWidget;if(t&&t.middlewareParameters){var n=t.middlewareParameters;Qe.fetch(n).then((function(t){e.showWidget=!!t}))}else this.showWidget=!0},computed:{allWidgets:function(){return Zl.widgets.value},actualWidget:function(){var e=this,t=this.widget;if(t){var n=Object.assign({},t);if(t&&t.isReport&&!t.documentation){var r=cc.findReport(t.module,t.action);r&&r.documentation&&(n.documentation=r.documentation)}return t}if(this.containerid){var o=Zc(this.allWidgets,this.containerid);if(o){var a=Object.assign({},o);if(this.widgetized){a.isFirstInPage=!0,a.parameters=Object.assign(Object.assign({},a.parameters),{},{widget:"1"});var i=Ql(a);i&&(a.widgets=i.map((function(t){return Object.assign(Object.assign({},t),{},{parameters:Object.assign(Object.assign({},t.parameters),{},{widget:"1",containerId:e.containerid})})})))}return a}}return null}}});es.render=Xc;var ts=es,ns={class:"reporting-page"},rs={key:1,class:"col s12 l6 leftWidgetColumn"},os={key:2,class:"col s12 l6 rightWidgetColumn"};function as(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("ActivityIndicator"),l=Object(K["resolveComponent"])("Widget");return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",ns,[Object(K["createVNode"])(i,{loading:e.loading},null,8,["loading"]),Object(K["withDirectives"])(Object(K["createElementVNode"])("div",null,Object(K["toDisplayString"])(e.translate("CoreHome_NoSuchPage")),513),[[K["vShow"],e.hasNoPage]]),(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.widgets,(function(e){return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",{class:"row",key:e.uniqueId},[e.group?Object(K["createCommentVNode"])("",!0):(Object(K["openBlock"])(),Object(K["createBlock"])(l,{key:0,class:"col s12 fullWidgetColumn",widget:e},null,8,["widget"])),e.group?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",rs,[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.left,(function(e){return Object(K["openBlock"])(),Object(K["createBlock"])(l,{widget:e,key:e.uniqueId},null,8,["widget"])})),128))])):Object(K["createCommentVNode"])("",!0),e.group?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",os,[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.right,(function(e){return Object(K["openBlock"])(),Object(K["createBlock"])(l,{widget:e,key:e.uniqueId},null,8,["widget"])})),128))])):Object(K["createCommentVNode"])("",!0)])})),128))])}function is(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ls(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n'),""),type:"transient"})}function Os(){Go.remove("onlyRawData")}var js=Object(K["defineComponent"])({components:{ActivityIndicator:At,Widget:es},data:function(){return{loading:!1,hasRawData:!1,hasNoVisits:!1,dateLastChecked:null,hasNoPage:!1}},created:function(){var e=this;vs.resetPage(),this.loading=!0,this.renderInitialPage(),Object(K["watch"])((function(){return Ce.parsed.value}),(function(t,n){t.category===n.category&&t.subcategory===n.subcategory&&t.period===n.period&&t.date===n.date&&t.segment===n.segment&&JSON.stringify(t.compareDates)===JSON.stringify(n.compareDates)&&JSON.stringify(t.comparePeriods)===JSON.stringify(n.comparePeriods)&&JSON.stringify(t.compareSegments)===JSON.stringify(n.compareSegments)&&JSON.stringify(t.columns||"")===JSON.stringify(n.columns||"")||(t.date===n.date&&t.period===n.period||(Os(),e.dateLastChecked=null,e.hasRawData=!1,e.hasNoVisits=!1),e.renderPage(t.category,t.subcategory))})),ce.on("loadPage",(function(t,n){e.renderPage(t,n)}))},computed:{widgets:function(){return vs.widgets.value}},methods:{renderPage:function(e,t){var n=this;if(!e||!t)return vs.resetPage(),void(this.loading=!1);var r=Ce.parsed.value,o=r.period,i=r.date;try{m.parse(o,i)}catch(c){return Go.show({id:"invalidDate",animate:!1,context:"error",message:a("CoreHome_DateInvalid"),type:"transient"}),vs.resetPage(),void(this.loading=!1)}Go.remove("invalidDate"),ce.postEvent("matomoPageChange",{}),Go.clearTransientNotifications(),m.parse(o,i).containsToday()&&this.showOnlyRawDataMessageIfRequired();var l={category:e,subcategory:t};if(ce.postEvent("ReportingPage.loadPage",l),l.promise)return this.loading=!0,void Promise.resolve(l.promise).finally((function(){n.loading=!1}));vs.fetchPage(e,t).then((function(){var t=!vs.page.value;if(t){var r=Pl.findPageInCategory(e);if(r&&r.subcategory)return void Ce.updateHash(Object.assign(Object.assign({},Ce.hashParsed.value),{},{subcategory:r.subcategory.id}))}n.hasNoPage=t,n.loading=!1}))},renderInitialPage:function(){var e=Ce.parsed.value;this.renderPage(e.category,e.subcategory)},showOnlyRawDataMessageIfRequired:function(){var e=this;if(ce.visitorLogEnabled){this.hasRawData&&this.hasNoVisits&&ys();var t=Ce.parsed.value,n=t.segment;if(n)Os();else{var r=["Live_VisitorLog","General_RealTime","UserCountryMap_RealTimeMap","MediaAnalytics_TypeAudienceLog","MediaAnalytics_TypeRealTime","FormAnalytics_TypeRealTime","Goals_AddNewGoal"],o=["HeatmapSessionRecording_Heatmaps","HeatmapSessionRecording_SessionRecordings","Marketplace_Marketplace"],a=t.subcategory,i=t.category;if(-1===r.indexOf(a)&&-1===o.indexOf(i)&&-1===a.toLowerCase().indexOf("manage")){var l=6e4;this.dateLastChecked&&(new Date).valueOf()-this.dateLastChecked.valueOf()0?(e.hasNoVisits=!1,void Os()):(e.hasNoVisits=!0,e.hasRawData?void ys():Qe.fetch({method:"Live.getLastVisitsDetails",filter_limit:1,doNotFetchActions:1}).then((function(t){if(!t||0===t.length)return e.hasRawData=!1,void Os();e.hasRawData=!0,ys()})))}))}else Os()}}}}});js.render=os;var ws=js,ks={class:"report-export-popover row",id:"reportExport"},Ss={class:"col l6"},Cs={name:"format"},Es={name:"option_flat"},Ds={name:"option_expanded"},Ps={name:"option_format_metrics"},Ts={class:"col l6"},Vs={name:"filter_type"},Ns={class:"filter_limit"},Is={name:"filter_limit_all"},xs={key:0,name:"filter_limit"},Bs={key:1,name:"filter_limit"},As={class:"col l12"},Ls=["value"],Ms=Object(K["createTextVNode"])("\n "),_s=[Ms],Fs=["innerHTML"],Rs={class:"col l12"},Hs=["href","title"];function Us(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("Field"),l=Object(K["resolveDirective"])("select-on-focus");return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",ks,[Object(K["createElementVNode"])("div",Ss,[Object(K["createElementVNode"])("div",Cs,[Object(K["createVNode"])(i,{uicontrol:"radio",name:"format",title:e.translate("CoreHome_ExportFormat"),modelValue:e.reportFormat,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.reportFormat=t}),"full-width":!0,options:e.availableReportFormats[e.reportType]},null,8,["title","modelValue","options"])]),Object(K["createElementVNode"])("div",null,[Object(K["createElementVNode"])("div",Es,[Object(K["withDirectives"])(Object(K["createVNode"])(i,{uicontrol:"checkbox",name:"option_flat",title:e.translate("CoreHome_FlattenReport"),modelValue:e.optionFlat,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.optionFlat=t})},null,8,["title","modelValue"]),[[K["vShow"],e.hasSubtables]])])]),Object(K["createElementVNode"])("div",null,[Object(K["createElementVNode"])("div",Ds,[Object(K["withDirectives"])(Object(K["createVNode"])(i,{uicontrol:"checkbox",name:"option_expanded",title:e.translate("CoreHome_ExpandSubtables"),modelValue:e.optionExpanded,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.optionExpanded=t})},null,8,["title","modelValue"]),[[K["vShow"],e.hasSubtables&&!e.optionFlat]])])]),Object(K["createElementVNode"])("div",null,[Object(K["createElementVNode"])("div",Ps,[Object(K["createVNode"])(i,{uicontrol:"checkbox",name:"option_format_metrics",title:e.translate("CoreHome_FormatMetrics"),modelValue:e.optionFormatMetrics,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.optionFormatMetrics=t})},null,8,["title","modelValue"])])])]),Object(K["createElementVNode"])("div",Ts,[Object(K["createElementVNode"])("div",null,[Object(K["createElementVNode"])("div",Vs,[Object(K["createVNode"])(i,{uicontrol:"radio",name:"filter_type",title:e.translate("CoreHome_ReportType"),modelValue:e.reportType,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.reportType=t}),"full-width":!0,options:e.availableReportTypes},null,8,["title","modelValue","options"])])]),Object(K["createElementVNode"])("div",Ns,[Object(K["withDirectives"])(Object(K["createElementVNode"])("div",Is,[Object(K["createVNode"])(i,{uicontrol:"radio",name:"filter_limit_all",title:e.translate("CoreHome_RowLimit"),modelValue:e.reportLimitAll,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.reportLimitAll=t}),"full-width":!0,options:e.limitAllOptions},null,8,["title","modelValue","options"])],512),[[K["vShow"],!e.maxFilterLimit||e.maxFilterLimit<=0]]),"no"===e.reportLimitAll&&e.maxFilterLimit<=0?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",xs,[Object(K["createVNode"])(i,{uicontrol:"number",name:"filter_limit",min:1,modelValue:e.reportLimit,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.reportLimit=t}),"full-width":!0},null,8,["modelValue"])])):Object(K["createCommentVNode"])("",!0),"no"===e.reportLimitAll&&e.maxFilterLimit>0?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Bs,[Object(K["createVNode"])(i,{uicontrol:"number",name:"filter_limit",min:1,max:e.maxFilterLimit,modelValue:e.reportLimit,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.reportLimit=t}),value:e.reportLimit,"full-width":!0,title:e.filterLimitTooltip},null,8,["max","modelValue","value","title"])])):Object(K["createCommentVNode"])("",!0)])]),Object(K["withDirectives"])(Object(K["createElementVNode"])("div",As,[Object(K["withDirectives"])(Object(K["createElementVNode"])("textarea",{readonly:"",class:"exportFullUrl",value:e.exportLinkWithoutToken},_s,8,Ls),[[l,{}]]),Object(K["createElementVNode"])("div",{class:"tooltip",innerHTML:e.$sanitize(e.translate("CoreHome_ExportTooltipWithLink","","","ENTER_YOUR_TOKEN_AUTH_HERE"))},null,8,Fs)],512),[[K["vShow"],e.showUrl]]),Object(K["createElementVNode"])("div",Rs,[Object(K["createElementVNode"])("a",{class:"btn",href:e.exportLink,target:"_new",title:e.translate("CoreHome_ExportTooltip")},Object(K["toDisplayString"])(e.translate("General_Export")),9,Hs),Object(K["createElementVNode"])("a",{href:"javascript:",onClick:t[8]||(t[8]=function(t){return e.showUrl=!e.showUrl}),class:"toggle-export-url"},[Object(K["withDirectives"])(Object(K["createElementVNode"])("span",null,Object(K["toDisplayString"])(e.translate("CoreHome_ShowExportUrl")),513),[[K["vShow"],!e.showUrl]]),Object(K["withDirectives"])(Object(K["createElementVNode"])("span",null,Object(K["toDisplayString"])(e.translate("CoreHome_HideExportUrl")),513),[[K["vShow"],e.showUrl]])])])])}function $s(e,t){return Ys(e)||Gs(e,t)||Ws(e,t)||qs()}function qs(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ws(e,t){if(e){if("string"===typeof e)return zs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zs(e,t):void 0}}function zs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&e>this.maxFilterLimit&&(this.reportLimit=t)}},computed:{filterLimitTooltip:function(){var e=a("CoreHome_RowLimit"),t=this.maxFilterLimit?a("General_ComputedMetricMax",this.maxFilterLimit.toString()):"";return"".concat(e," (").concat(t,")")},exportLink:function(){return this.getExportLink(!0)},exportLinkWithoutToken:function(){return this.getExportLink(!1)}},methods:{getExportLink:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.reportFormat,n=this.apiMethod,r=this.reportType,o=this.dataTable;if(t){var a={},i="yes"===this.reportLimitAll?-1:this.reportLimit;this.requestParams&&"string"===typeof this.requestParams?a=JSON.parse(this.requestParams):this.requestParams&&"object"===Js(this.requestParams)&&(a=this.requestParams);var l=o.param,c=l.segment,s=l.label,u=l.idGoal,d=l.idDimension,m=l.idSite,p=o.param,f=p.date,h=p.period;"RSS"===t&&(f="last10"),"undefined"!==typeof o.param.dateUsedInGraph&&(f=o.param.dateUsedInGraph);var b=ce.config.datatable_export_range_as_day.toLowerCase();-1!==b.indexOf(t.toLowerCase())&&"range"===o.param.period&&(h="day"),"range"===o.param.period&&"graphEvolution"===o.param.viewDataTable&&(h="day");var g={module:"API",format:t,idSite:m,period:h,date:f};if("processed"===r){g.method="API.getProcessedReport";var v=n.split("."),y=$s(v,2);g.apiModule=y[0],g.apiAction=y[1]}else g.method=n;if(o.param.compareDates&&o.param.compareDates.length&&(g.compareDates=o.param.compareDates,g.compare="1"),o.param.comparePeriods&&o.param.comparePeriods.length&&(g.comparePeriods=o.param.comparePeriods,g.compare="1"),o.param.compareSegments&&o.param.compareSegments.length&&(g.compareSegments=o.param.compareSegments,g.compare="1"),"undefined"!==typeof o.param.filter_pattern&&(g.filter_pattern=o.param.filter_pattern),"undefined"!==typeof o.param.filter_pattern_recursive&&(g.filter_pattern_recursive=o.param.filter_pattern_recursive),window.$.isPlainObject(a)&&Object.entries(a).forEach((function(e){var t=$s(e,2),n=t[0],r=t[1],o=r;!0===o?o=1:!1===o&&(o=0),g[n]=o})),this.optionFlat&&(g.flat=1,"undefined"!==typeof o.param.include_aggregate_rows&&"1"===o.param.include_aggregate_rows&&(g.include_aggregate_rows=1)),!this.optionFlat&&this.optionExpanded&&(g.expanded=1),this.optionFormatMetrics&&(g.format_metrics=1),o.param.pivotBy&&(g.pivotBy=o.param.pivotBy,g.pivotByColumnLimit=20,o.props.pivot_by_column&&(g.pivotByColumn=o.props.pivot_by_column)),"CSV"!==t&&"TSV"!==t&&"RSS"!==t||(g.translateColumnNames=1,g.language=ce.language),"undefined"!==typeof c&&(g.segment=decodeURIComponent(c)),"undefined"!==typeof u&&"-1"!==u&&(g.idGoal=u),"undefined"!==typeof d&&"-1"!==d&&(g.idDimension=d),s){var O=s.split(",");if(O.length>1)g.label=O;else{var j=$s(O,1);g.label=j[0]}}g.token_auth="ENTER_YOUR_TOKEN_AUTH_HERE",!0===e&&(g.token_auth=ce.token_auth,g.force_api_session=1),g.filter_limit=i;var w=window.location.href.split("?")[0];return"".concat(w,"?").concat(Ce.stringify(g))}}}});Qs.render=Us;var Xs=Qs,Zs=window,eu=Zs.$,tu={mounted:function(e,t){e.addEventListener("click",(function(){var n=Ce.hashParsed.value.popover,r=eu(e).closest("[data-report]").data("uiControlObject"),o=window.Piwik_Popover.showLoading("Export"),i=t.value.reportFormats,l=r.param.filter_limit;t.value.maxFilterLimit>0&&(l=Math.min(l,t.value.maxFilterLimit));var c=!0===r.param.flat||1===r.param.flat||"1"===r.param.flat,s={initialReportType:"default",initialReportLimit:l>0?l:100,initialReportLimitAll:-1===l?"yes":"no",initialOptionFlat:c,initialOptionExpanded:!0,initialOptionFormatMetrics:!1,hasSubtables:c||r.numberOfSubtables>0,availableReportFormats:{default:i,processed:{XML:i.XML,JSON:i.JSON}},availableReportTypes:{default:a("CoreHome_StandardReport"),processed:a("CoreHome_ReportWithMetadata")},limitAllOptions:{yes:a("General_All"),no:a("CoreHome_CustomLimit")},maxFilterLimit:t.value.maxFilterLimit,dataTable:r,requestParams:t.value.requestParams,apiMethod:t.value.apiMethod},u=mt({template:'\n ',data:function(){return{bind:s}}});u.component("popover",Xs);var d=document.createElement("div");u.mount(d);var m=t.value.reportTitle;window.Piwik_Popover.setTitle("".concat(a("General_Export")," ").concat(ce.helper.htmlEntities(m))),window.Piwik_Popover.setContent(d),window.Piwik_Popover.onClose((function(){u.unmount(),""!==n&&setTimeout((function(){Ce.updateHash(Object.assign(Object.assign({},Ce.hashParsed.value),{},{popover:n})),t.value.onClose&&t.value.onClose()}),100)})),setTimeout((function(){o.dialog(),eu(".exportFullUrl, .btn",o).tooltip({track:!0,show:!1,hide:!1})}),100)}))}},nu=["src","width","height"];
+ */function gs(e){return!!(e.isContainer&&e.layout&&"ByDimension"===e.layout||"bydimension"===e.viewDataTable)||(!!e.isWide||e.viewDataTable&&("tableAllColumns"===e.viewDataTable||"sparklines"===e.viewDataTable||"graphEvolution"===e.viewDataTable))}function bs(e){if(e&&e[0]){var t=us(e),n=e[0];return n.group?t[0]=Object.assign(Object.assign({},t[0]),{},{left:bs(n.left||[]),right:bs(n.right||[])}):t[0]=Object.assign(Object.assign({},t[0]),{},{isFirstInPage:!0}),t}return e}var vs=function(){function e(){var t=this;is(this,e),ss(this,"privateState",Object(K["reactive"])({})),ss(this,"state",Object(K["computed"])((function(){return Object(K["readonly"])(t.privateState)}))),ss(this,"page",Object(K["computed"])((function(){return t.state.value.page}))),ss(this,"widgets",Object(K["computed"])((function(){var e=t.page.value;if(!e)return[];var n=[],r={},o=function(e){return e.isReport&&r["".concat(e.module,".").concat(e.action)]},a=function(e){if(!e.isReport)return[];var t=cc.findReport(e.module,e.action);return t&&t.relatedReports?t.relatedReports:[]};if((e.widgets||[]).forEach((function(e){o(e)||(a(e).forEach((function(e){r["".concat(e.module,".").concat(e.action)]=!0})),n.push(e))})),n=Ll(n),1===n.length)return bs(n);for(var i=[],l=0;l'),""),type:"transient"})}function js(){Yo.remove("onlyRawData")}var ws=Object(K["defineComponent"])({components:{ActivityIndicator:At,Widget:ts},data:function(){return{loading:!1,hasRawData:!1,hasNoVisits:!1,dateLastChecked:null,hasNoPage:!1}},created:function(){var e=this;ys.resetPage(),this.loading=!0,this.renderInitialPage(),Object(K["watch"])((function(){return Ce.parsed.value}),(function(t,n){t.category===n.category&&t.subcategory===n.subcategory&&t.period===n.period&&t.date===n.date&&t.segment===n.segment&&JSON.stringify(t.compareDates)===JSON.stringify(n.compareDates)&&JSON.stringify(t.comparePeriods)===JSON.stringify(n.comparePeriods)&&JSON.stringify(t.compareSegments)===JSON.stringify(n.compareSegments)&&JSON.stringify(t.columns||"")===JSON.stringify(n.columns||"")||(t.date===n.date&&t.period===n.period||(js(),e.dateLastChecked=null,e.hasRawData=!1,e.hasNoVisits=!1),e.renderPage(t.category,t.subcategory))})),ce.on("loadPage",(function(t,n){e.renderPage(t,n)}))},computed:{widgets:function(){return ys.widgets.value}},methods:{renderPage:function(e,t){var n=this;if(!e||!t)return ys.resetPage(),void(this.loading=!1);var r=Ce.parsed.value,o=r.period,i=r.date;try{m.parse(o,i)}catch(c){return Yo.show({id:"invalidDate",animate:!1,context:"error",message:a("CoreHome_DateInvalid"),type:"transient"}),ys.resetPage(),void(this.loading=!1)}Yo.remove("invalidDate"),ce.postEvent("matomoPageChange",{}),Yo.clearTransientNotifications(),m.parse(o,i).containsToday()&&this.showOnlyRawDataMessageIfRequired();var l={category:e,subcategory:t};if(ce.postEvent("ReportingPage.loadPage",l),l.promise)return this.loading=!0,void Promise.resolve(l.promise).finally((function(){n.loading=!1}));ys.fetchPage(e,t).then((function(){var t=!ys.page.value;if(t){var r=Tl.findPageInCategory(e);if(r&&r.subcategory)return void Ce.updateHash(Object.assign(Object.assign({},Ce.hashParsed.value),{},{subcategory:r.subcategory.id}))}n.hasNoPage=t,n.loading=!1}))},renderInitialPage:function(){var e=Ce.parsed.value;this.renderPage(e.category,e.subcategory)},showOnlyRawDataMessageIfRequired:function(){var e=this;if(ce.visitorLogEnabled){this.hasRawData&&this.hasNoVisits&&Os();var t=Ce.parsed.value,n=t.segment;if(n)js();else{var r=["Live_VisitorLog","General_RealTime","UserCountryMap_RealTimeMap","MediaAnalytics_TypeAudienceLog","MediaAnalytics_TypeRealTime","FormAnalytics_TypeRealTime","Goals_AddNewGoal"],o=["HeatmapSessionRecording_Heatmaps","HeatmapSessionRecording_SessionRecordings","Marketplace_Marketplace"],a=t.subcategory,i=t.category;if(-1===r.indexOf(a)&&-1===o.indexOf(i)&&-1===a.toLowerCase().indexOf("manage")){var l=6e4;this.dateLastChecked&&(new Date).valueOf()-this.dateLastChecked.valueOf()0?(e.hasNoVisits=!1,void js()):(e.hasNoVisits=!0,e.hasRawData?void Os():Qe.fetch({method:"Live.getLastVisitsDetails",filter_limit:1,doNotFetchActions:1}).then((function(t){if(!t||0===t.length)return e.hasRawData=!1,void js();e.hasRawData=!0,Os()})))}))}else js()}}}}});ws.render=as;var ks=ws,Ss={class:"report-export-popover row",id:"reportExport"},Cs={class:"col l6"},Es={name:"format"},Ds={name:"option_flat"},Ps={name:"option_expanded"},Ts={name:"option_format_metrics"},Vs={class:"col l6"},Ns={name:"filter_type"},Is={class:"filter_limit"},xs={name:"filter_limit_all"},Bs={key:0,name:"filter_limit"},As={key:1,name:"filter_limit"},Ls={class:"col l12"},Ms=["value"],_s=Object(K["createTextVNode"])("\n "),Fs=[_s],Rs=["innerHTML"],Hs={class:"col l12"},Us=["href","title"];function $s(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("Field"),l=Object(K["resolveDirective"])("select-on-focus");return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Ss,[Object(K["createElementVNode"])("div",Cs,[Object(K["createElementVNode"])("div",Es,[Object(K["createVNode"])(i,{uicontrol:"radio",name:"format",title:e.translate("CoreHome_ExportFormat"),modelValue:e.reportFormat,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.reportFormat=t}),"full-width":!0,options:e.availableReportFormats[e.reportType]},null,8,["title","modelValue","options"])]),Object(K["createElementVNode"])("div",null,[Object(K["createElementVNode"])("div",Ds,[Object(K["withDirectives"])(Object(K["createVNode"])(i,{uicontrol:"checkbox",name:"option_flat",title:e.translate("CoreHome_FlattenReport"),modelValue:e.optionFlat,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.optionFlat=t})},null,8,["title","modelValue"]),[[K["vShow"],e.hasSubtables]])])]),Object(K["createElementVNode"])("div",null,[Object(K["createElementVNode"])("div",Ps,[Object(K["withDirectives"])(Object(K["createVNode"])(i,{uicontrol:"checkbox",name:"option_expanded",title:e.translate("CoreHome_ExpandSubtables"),modelValue:e.optionExpanded,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.optionExpanded=t})},null,8,["title","modelValue"]),[[K["vShow"],e.hasSubtables&&!e.optionFlat]])])]),Object(K["createElementVNode"])("div",null,[Object(K["createElementVNode"])("div",Ts,[Object(K["createVNode"])(i,{uicontrol:"checkbox",name:"option_format_metrics",title:e.translate("CoreHome_FormatMetrics"),modelValue:e.optionFormatMetrics,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.optionFormatMetrics=t})},null,8,["title","modelValue"])])])]),Object(K["createElementVNode"])("div",Vs,[Object(K["createElementVNode"])("div",null,[Object(K["createElementVNode"])("div",Ns,[Object(K["createVNode"])(i,{uicontrol:"radio",name:"filter_type",title:e.translate("CoreHome_ReportType"),modelValue:e.reportType,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.reportType=t}),"full-width":!0,options:e.availableReportTypes},null,8,["title","modelValue","options"])])]),Object(K["createElementVNode"])("div",Is,[Object(K["withDirectives"])(Object(K["createElementVNode"])("div",xs,[Object(K["createVNode"])(i,{uicontrol:"radio",name:"filter_limit_all",title:e.translate("CoreHome_RowLimit"),modelValue:e.reportLimitAll,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.reportLimitAll=t}),"full-width":!0,options:e.limitAllOptions},null,8,["title","modelValue","options"])],512),[[K["vShow"],!e.maxFilterLimit||e.maxFilterLimit<=0]]),"no"===e.reportLimitAll&&e.maxFilterLimit<=0?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Bs,[Object(K["createVNode"])(i,{uicontrol:"number",name:"filter_limit",min:1,modelValue:e.reportLimit,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.reportLimit=t}),"full-width":!0},null,8,["modelValue"])])):Object(K["createCommentVNode"])("",!0),"no"===e.reportLimitAll&&e.maxFilterLimit>0?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",As,[Object(K["createVNode"])(i,{uicontrol:"number",name:"filter_limit",min:1,max:e.maxFilterLimit,modelValue:e.reportLimit,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.reportLimit=t}),value:e.reportLimit,"full-width":!0,title:e.filterLimitTooltip},null,8,["max","modelValue","value","title"])])):Object(K["createCommentVNode"])("",!0)])]),Object(K["withDirectives"])(Object(K["createElementVNode"])("div",Ls,[Object(K["withDirectives"])(Object(K["createElementVNode"])("textarea",{readonly:"",class:"exportFullUrl",value:e.exportLinkWithoutToken},Fs,8,Ms),[[l,{}]]),Object(K["createElementVNode"])("div",{class:"tooltip",innerHTML:e.$sanitize(e.translate("CoreHome_ExportTooltipWithLink","","","ENTER_YOUR_TOKEN_AUTH_HERE"))},null,8,Rs)],512),[[K["vShow"],e.showUrl]]),Object(K["createElementVNode"])("div",Hs,[Object(K["createElementVNode"])("a",{class:"btn",href:e.exportLink,target:"_new",title:e.translate("CoreHome_ExportTooltip")},Object(K["toDisplayString"])(e.translate("General_Export")),9,Us),Object(K["createElementVNode"])("a",{href:"javascript:",onClick:t[8]||(t[8]=function(t){return e.showUrl=!e.showUrl}),class:"toggle-export-url"},[Object(K["withDirectives"])(Object(K["createElementVNode"])("span",null,Object(K["toDisplayString"])(e.translate("CoreHome_ShowExportUrl")),513),[[K["vShow"],!e.showUrl]]),Object(K["withDirectives"])(Object(K["createElementVNode"])("span",null,Object(K["toDisplayString"])(e.translate("CoreHome_HideExportUrl")),513),[[K["vShow"],e.showUrl]])])])])}function qs(e,t){return Js(e)||Ys(e,t)||zs(e,t)||Ws()}function Ws(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function zs(e,t){if(e){if("string"===typeof e)return Gs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gs(e,t):void 0}}function Gs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&e>this.maxFilterLimit&&(this.reportLimit=t)}},computed:{filterLimitTooltip:function(){var e=a("CoreHome_RowLimit"),t=this.maxFilterLimit?a("General_ComputedMetricMax",this.maxFilterLimit.toString()):"";return"".concat(e," (").concat(t,")")},exportLink:function(){return this.getExportLink(!0)},exportLinkWithoutToken:function(){return this.getExportLink(!1)}},methods:{getExportLink:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.reportFormat,n=this.apiMethod,r=this.reportType,o=this.dataTable;if(t){var a={},i="yes"===this.reportLimitAll?-1:this.reportLimit;this.requestParams&&"string"===typeof this.requestParams?a=JSON.parse(this.requestParams):this.requestParams&&"object"===Ks(this.requestParams)&&(a=this.requestParams);var l=o.param,c=l.segment,s=l.label,u=l.idGoal,d=l.idDimension,m=l.idSite,p=o.param,f=p.date,h=p.period;"RSS"===t&&(f="last10"),"undefined"!==typeof o.param.dateUsedInGraph&&(f=o.param.dateUsedInGraph);var g=ce.config.datatable_export_range_as_day.toLowerCase();-1!==g.indexOf(t.toLowerCase())&&"range"===o.param.period&&(h="day"),"range"===o.param.period&&"graphEvolution"===o.param.viewDataTable&&(h="day");var b={module:"API",format:t,idSite:m,period:h,date:f};if("processed"===r){b.method="API.getProcessedReport";var v=n.split("."),y=qs(v,2);b.apiModule=y[0],b.apiAction=y[1]}else b.method=n;if(o.param.compareDates&&o.param.compareDates.length&&(b.compareDates=o.param.compareDates,b.compare="1"),o.param.comparePeriods&&o.param.comparePeriods.length&&(b.comparePeriods=o.param.comparePeriods,b.compare="1"),o.param.compareSegments&&o.param.compareSegments.length&&(b.compareSegments=o.param.compareSegments,b.compare="1"),"undefined"!==typeof o.param.filter_pattern&&(b.filter_pattern=o.param.filter_pattern),"undefined"!==typeof o.param.filter_pattern_recursive&&(b.filter_pattern_recursive=o.param.filter_pattern_recursive),window.$.isPlainObject(a)&&Object.entries(a).forEach((function(e){var t=qs(e,2),n=t[0],r=t[1],o=r;!0===o?o=1:!1===o&&(o=0),b[n]=o})),this.optionFlat&&(b.flat=1,"undefined"!==typeof o.param.include_aggregate_rows&&"1"===o.param.include_aggregate_rows&&(b.include_aggregate_rows=1)),!this.optionFlat&&this.optionExpanded&&(b.expanded=1),this.optionFormatMetrics&&(b.format_metrics=1),o.param.pivotBy&&(b.pivotBy=o.param.pivotBy,b.pivotByColumnLimit=20,o.props.pivot_by_column&&(b.pivotByColumn=o.props.pivot_by_column)),"CSV"!==t&&"TSV"!==t&&"RSS"!==t||(b.translateColumnNames=1,b.language=ce.language),"undefined"!==typeof c&&(b.segment=decodeURIComponent(c)),"undefined"!==typeof u&&"-1"!==u&&(b.idGoal=u),"undefined"!==typeof d&&"-1"!==d&&(b.idDimension=d),s){var O=s.split(",");if(O.length>1)b.label=O;else{var j=qs(O,1);b.label=j[0]}}b.token_auth="ENTER_YOUR_TOKEN_AUTH_HERE",!0===e&&(b.token_auth=ce.token_auth,b.force_api_session=1),b.filter_limit=i;var w=window.location.href.split("?")[0];return"".concat(w,"?").concat(Ce.stringify(b))}}}});Xs.render=$s;var Zs=Xs,eu=window,tu=eu.$,nu={mounted:function(e,t){e.addEventListener("click",(function(){var n=Ce.hashParsed.value.popover,r=tu(e).closest("[data-report]").data("uiControlObject"),o=window.Piwik_Popover.showLoading("Export"),i=t.value.reportFormats,l=r.param.filter_limit;t.value.maxFilterLimit>0&&(l=Math.min(l,t.value.maxFilterLimit));var c=!0===r.param.flat||1===r.param.flat||"1"===r.param.flat,s={initialReportType:"default",initialReportLimit:l>0?l:100,initialReportLimitAll:-1===l?"yes":"no",initialOptionFlat:c,initialOptionExpanded:!0,initialOptionFormatMetrics:!1,hasSubtables:c||r.numberOfSubtables>0,availableReportFormats:{default:i,processed:{XML:i.XML,JSON:i.JSON}},availableReportTypes:{default:a("CoreHome_StandardReport"),processed:a("CoreHome_ReportWithMetadata")},limitAllOptions:{yes:a("General_All"),no:a("CoreHome_CustomLimit")},maxFilterLimit:t.value.maxFilterLimit,dataTable:r,requestParams:t.value.requestParams,apiMethod:t.value.apiMethod},u=mt({template:'\n ',data:function(){return{bind:s}}});u.component("popover",Zs);var d=document.createElement("div");u.mount(d);var m=t.value.reportTitle;window.Piwik_Popover.setTitle("".concat(a("General_Export")," ").concat(ce.helper.htmlEntities(m))),window.Piwik_Popover.setContent(d),window.Piwik_Popover.onClose((function(){u.unmount(),""!==n&&setTimeout((function(){Ce.updateHash(Object.assign(Object.assign({},Ce.hashParsed.value),{},{popover:n})),t.value.onClose&&t.value.onClose()}),100)})),setTimeout((function(){o.dialog(),tu(".exportFullUrl, .btn",o).tooltip({track:!0,show:!1,hide:!1})}),100)}))}},ru=["src","width","height"];
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
- */function ru(e,t,n,r,o,a){return Object(K["openBlock"])(),Object(K["createElementBlock"])("img",{class:"sparklineImg",loading:"lazy",alt:"",src:e.sparklineUrl,width:e.width,height:e.height},null,8,nu)}function ou(e){return ou="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ou(e)}var au=Object(K["defineComponent"])({props:{seriesIndices:Array,params:[Object,String],width:Number,height:Number},data:function(){return{isWidget:!1}},mounted:function(){this.isWidget=!!this.$el.closest("[widgetId]")},computed:{sparklineUrl:function(){var e=this.seriesIndices,t=this.params,n=ce.getSparklineColors();e&&(n.lineColor=n.lineColor.filter((function(t,n){return-1!==e.indexOf(n)})));var r=JSON.stringify(n),o={forceView:"1",viewDataTable:"sparkline",widget:this.isWidget?"1":"0",showtitle:"1",colors:r,random:Date.now(),date:this.defaultDate,segment:Ce.parsed.value.segment},a="object"===ou(t)?t:Ce.parse(t.substring(t.indexOf("?")+1)),i=new Qe,l=i.mixinDefaultGetParams(Object.assign(Object.assign({},o),a)),c=Ce.parsed.value.token_auth;return c&&c.length&&ce.shouldPropagateTokenAuth&&(l.token_auth=c),"?".concat(Ce.stringify(l))},defaultDate:function(){if("range"===ce.period)return"".concat(ce.startDateString,",").concat(ce.endDateString);var e=Y.getLastNRange(ce.period,30,ce.currentDateString).getDateRange(),t=new Date(ce.minDateYear,ce.minDateMonth-1,ce.minDateDay);e[0]100?100:this.progress<0?0:this.progress}}});mu.render=du;var pu=mu,fu={mounted:function(e){e.classList.add("piwik-content-intro")},updated:function(e){Object(K["nextTick"])((function(){e.classList.add("piwik-content-intro")}))}},hu={mounted:function(e,t){var n;null!==t&&void 0!==t&&null!==(n=t.value)&&void 0!==n&&n.off||e.classList.add("card","card-table","entityTable")},updated:function(e,t){var n;null!==t&&void 0!==t&&null!==(n=t.value)&&void 0!==n&&n.off||Object(K["nextTick"])((function(){e.classList.add("card","card-table","entityTable")}))}},bu={ref:"root"};
+ */function ou(e,t,n,r,o,a){return Object(K["openBlock"])(),Object(K["createElementBlock"])("img",{class:"sparklineImg",loading:"lazy",alt:"",src:e.sparklineUrl,width:e.width,height:e.height},null,8,ru)}function au(e){return au="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},au(e)}var iu=Object(K["defineComponent"])({props:{seriesIndices:Array,params:[Object,String],width:Number,height:Number},data:function(){return{isWidget:!1}},mounted:function(){this.isWidget=!!this.$el.closest("[widgetId]")},computed:{sparklineUrl:function(){var e=this.seriesIndices,t=this.params,n=ce.getSparklineColors();e&&(n.lineColor=n.lineColor.filter((function(t,n){return-1!==e.indexOf(n)})));var r=JSON.stringify(n),o={forceView:"1",viewDataTable:"sparkline",widget:this.isWidget?"1":"0",showtitle:"1",colors:r,random:Date.now(),date:this.defaultDate,segment:Ce.parsed.value.segment},a="object"===au(t)?t:Ce.parse(t.substring(t.indexOf("?")+1)),i=new Qe,l=i.mixinDefaultGetParams(Object.assign(Object.assign({},o),a)),c=Ce.parsed.value.token_auth;return c&&c.length&&ce.shouldPropagateTokenAuth&&(l.token_auth=c),"?".concat(Ce.stringify(l))},defaultDate:function(){if("range"===ce.period)return"".concat(ce.startDateString,",").concat(ce.endDateString);var e=Y.getLastNRange(ce.period,30,ce.currentDateString).getDateRange(),t=new Date(ce.minDateYear,ce.minDateMonth-1,ce.minDateDay);e[0]100?100:this.progress<0?0:this.progress}}});pu.render=mu;var fu=pu,hu={mounted:function(e){e.classList.add("piwik-content-intro")},updated:function(e){Object(K["nextTick"])((function(){e.classList.add("piwik-content-intro")}))}},gu={mounted:function(e,t){var n;null!==t&&void 0!==t&&null!==(n=t.value)&&void 0!==n&&n.off||e.classList.add("card","card-table","entityTable")},updated:function(e,t){var n;null!==t&&void 0!==t&&null!==(n=t.value)&&void 0!==n&&n.off||Object(K["nextTick"])((function(){e.classList.add("card","card-table","entityTable")}))}},bu={ref:"root"};
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
- */function gu(e,t,n,r,o,a){return Object(K["openBlock"])(),Object(K["createElementBlock"])("div",bu,[Object(K["renderSlot"])(e.$slots,"default",{formData:e.formData,submitApiMethod:e.submitApiMethod,sendJsonPayload:e.sendJsonPayload,noErrorNotification:e.noErrorNotification,noSuccessNotification:e.noSuccessNotification,submitForm:e.submitForm,isSubmitting:e.isSubmitting,successfulPostResponse:e.successfulPostResponse,errorPostResponse:e.errorPostResponse})],512)}var vu=window,yu=vu.$,Ou=Object(K["defineComponent"])({props:{formData:{type:Object,required:!0},submitApiMethod:{type:String,required:!0},sendJsonPayload:Boolean,noErrorNotification:Boolean,noSuccessNotification:Boolean},data:function(){return{isSubmitting:!1,successfulPostResponse:null,errorPostResponse:null}},emits:["update:modelValue"],mounted:function(){var e=this;yu(this.$refs.root).on("click","input[type=submit]",(function(){e.submitForm()}))},methods:{submitForm:function(){var e=this;this.successfulPostResponse=null,this.errorPostResponse=null;var t=this.formData;this.sendJsonPayload&&(t={data:JSON.stringify(this.formData)}),this.isSubmitting=!0,Qe.post({module:"API",method:this.submitApiMethod},t,{createErrorNotification:!this.noErrorNotification}).then((function(t){if(e.successfulPostResponse=t,!e.noSuccessNotification){var n=Go.show({message:a("General_YourChangesHaveBeenSaved"),context:"success",type:"toast",id:"ajaxHelper"});Go.scrollToNotification(n)}})).catch((function(t){e.errorPostResponse=t.message})).finally((function(){e.isSubmitting=!1}))}}});Ou.render=gu;var ju=Ou;function wu(e,t,n,r,o,a){return Object(K["renderSlot"])(e.$slots,"default")}var ku=Object(K["defineComponent"])({});ku.render=wu;var Su=ku,Cu={key:0},Eu=["data-target"],Du=Object(K["createElementVNode"])("span",{class:"icon-configure"},null,-1),Pu=[Du],Tu=["data-target"],Vu=["title"],Nu=["title","src"],Iu=["id"],xu=["data-footer-icon-id"],Bu=["title"],Au=["title","src"],Lu={key:2},Mu=Object(K["createElementVNode"])("li",{class:"divider"},null,-1),_u=Object(K["createElementVNode"])("li",{class:"divider"},null,-1),Fu=["title"],Ru=Object(K["createElementVNode"])("span",{class:"icon-export"},null,-1),Hu=[Ru],Uu=["title"],$u=Object(K["createElementVNode"])("span",{class:"icon-image"},null,-1),qu=[$u],Wu=["title"],zu=Object(K["createElementVNode"])("span",{class:"icon-annotation"},null,-1),Gu=[zu],Yu=["title"],Ju=Object(K["createElementVNode"])("span",{class:"icon-search",draggable:"false"},null,-1),Ku=["title"],Qu=["id","title"],Xu=["title"],Zu=["title","src"],ed=["id"],td={key:0},nd=["innerHTML"],rd={key:1},od=["innerHTML"],ad={key:2},id=["innerHTML"],ld={key:3},cd=["innerHTML"],sd={key:4},ud=["innerHTML"],dd={key:5},md=["innerHTML"],pd=["title","data-target"],fd=Object(K["createElementVNode"])("span",{class:"icon-calendar"},null,-1),hd={class:"periodName"},bd=["id"],gd=["data-period"];function vd(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("Passthrough"),l=Object(K["resolveDirective"])("dropdown-button"),c=Object(K["resolveDirective"])("report-export");return e.showFooter&&e.showFooterIcons?(Object(K["openBlock"])(),Object(K["createElementBlock"])("div",Cu,[e.hasConfigItems&&(e.isAnyConfigureIconHighlighted||e.isTableView)?Object(K["withDirectives"])((Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{key:0,class:Object(K["normalizeClass"])(["dropdown-button dropdownConfigureIcon dataTableAction",{highlighted:e.isAnyConfigureIconHighlighted}]),href:"",onClick:t[0]||(t[0]=Object(K["withModifiers"])((function(){}),["prevent"])),"data-target":"dropdownConfigure".concat(e.randomIdForDropdown),style:{"margin-right":"3.5px"}},Pu,10,Eu)),[[l]]):Object(K["createCommentVNode"])("",!0),e.hasFooterIconsToShow?Object(K["withDirectives"])((Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{key:1,class:"dropdown-button dataTableAction activateVisualizationSelection",href:"","data-target":"dropdownVisualizations".concat(e.randomIdForDropdown),style:{"margin-right":"3.5px"},onClick:t[1]||(t[1]=Object(K["withModifiers"])((function(){}),["prevent"]))},[/^icon-/.test(e.activeFooterIcon||"")?(Object(K["openBlock"])(),Object(K["createElementBlock"])("span",{key:0,title:e.translate("CoreHome_ChangeVisualization"),class:Object(K["normalizeClass"])(e.activeFooterIcon)},null,10,Vu)):(Object(K["openBlock"])(),Object(K["createElementBlock"])("img",{key:1,title:e.translate("CoreHome_ChangeVisualization"),width:"16",height:"16",src:e.activeFooterIcon},null,8,Nu))],8,Tu)),[[l]]):Object(K["createCommentVNode"])("",!0),e.showFooterIcons?(Object(K["openBlock"])(),Object(K["createElementBlock"])("ul",{key:2,id:"dropdownVisualizations".concat(e.randomIdForDropdown),class:"dropdown-content dataTableFooterIcons"},[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.footerIcons,(function(t,n){return Object(K["openBlock"])(),Object(K["createBlock"])(i,{key:n},{default:Object(K["withCtx"])((function(){return[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(t.buttons.filter((function(e){return!!e.icon})),(function(n){return Object(K["openBlock"])(),Object(K["createElementBlock"])("li",{key:n.id},[Object(K["createElementVNode"])("a",{class:Object(K["normalizeClass"])("".concat(t.class," tableIcon\n ").concat(-1!==e.activeFooterIconIds.indexOf(n.id)?"activeIcon":"")),"data-footer-icon-id":n.id},[/^icon-/.test(n.icon||"")?(Object(K["openBlock"])(),Object(K["createElementBlock"])("span",{key:0,title:n.title,class:Object(K["normalizeClass"])(n.icon),style:{"margin-right":"5.5px"}},null,10,Bu)):(Object(K["openBlock"])(),Object(K["createElementBlock"])("img",{key:1,width:"16",height:"16",title:n.title,src:n.icon,style:{"margin-right":"5.5px"}},null,8,Au)),n.title?(Object(K["openBlock"])(),Object(K["createElementBlock"])("span",Lu,Object(K["toDisplayString"])(n.title),1)):Object(K["createCommentVNode"])("",!0)],10,xu)])})),128)),Mu]})),_:2},1024)})),128)),_u],8,Iu)):Object(K["createCommentVNode"])("",!0),e.showExport?Object(K["withDirectives"])((Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{key:3,class:"dataTableAction activateExportSelection",title:e.translate("General_ExportThisReport"),href:"",style:{"margin-right":"3.5px"},onClick:t[2]||(t[2]=Object(K["withModifiers"])((function(){}),["prevent"]))},Hu,8,Fu)),[[c,{reportTitle:e.reportTitle,requestParams:e.requestParams,apiMethod:e.apiMethodToRequestDataTable,reportFormats:e.reportFormats,maxFilterLimit:e.maxFilterLimit}]]):Object(K["createCommentVNode"])("",!0),e.showExportAsImageIcon?(Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{key:4,class:"dataTableAction tableIcon",href:"",id:"dataTableFooterExportAsImageIcon",onClick:t[3]||(t[3]=Object(K["withModifiers"])((function(t){return e.showExportImage(t)}),["prevent"])),title:e.translate("General_ExportAsImage"),style:{"margin-right":"3.5px"}},qu,8,Uu)):Object(K["createCommentVNode"])("",!0),e.showAnnotations?(Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{key:5,class:"dataTableAction annotationView",href:"",title:e.translate("Annotations_Annotations"),onClick:t[4]||(t[4]=Object(K["withModifiers"])((function(){}),["prevent"])),style:{"margin-right":"3.5px"}},Gu,8,Wu)):Object(K["createCommentVNode"])("",!0),e.showSearch?(Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{key:6,class:"dropdown-button dataTableAction searchAction",href:"",title:e.translate("General_Search"),style:{"margin-right":"3.5px"},draggable:"false",onClick:t[5]||(t[5]=Object(K["withModifiers"])((function(){}),["prevent"]))},[Ju,Object(K["createElementVNode"])("span",{class:"icon-close",draggable:"false",title:e.translate("CoreHome_CloseSearch")},null,8,Ku),Object(K["createElementVNode"])("input",{id:"widgetSearch_".concat(e.reportId),title:e.translate("CoreHome_DataTableHowToSearch"),type:"text",class:"dataTableSearchInput"},null,8,Qu)],8,Yu)):Object(K["createCommentVNode"])("",!0),(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.dataTableActions,(function(e){return Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{key:e.id,class:Object(K["normalizeClass"])("dataTableAction ".concat(e.id)),href:"",onClick:t[6]||(t[6]=Object(K["withModifiers"])((function(){}),["prevent"])),title:e.title,style:{"margin-right":"3.5px"}},[/^icon-/.test(e.icon||"")?(Object(K["openBlock"])(),Object(K["createElementBlock"])("span",{key:0,class:Object(K["normalizeClass"])(e.icon)},null,2)):(Object(K["openBlock"])(),Object(K["createElementBlock"])("img",{key:1,width:"16",height:"16",title:e.title,src:e.icon},null,8,Zu))],10,Xu)})),128)),Object(K["createElementVNode"])("ul",{id:"dropdownConfigure".concat(e.randomIdForDropdown),class:"dropdown-content tableConfiguration"},[e.showFlattenTable?(Object(K["openBlock"])(),Object(K["createElementBlock"])("li",td,[Object(K["createElementVNode"])("div",{class:"configItem dataTableFlatten",innerHTML:e.$sanitize(e.flattenItemText)},null,8,nd)])):Object(K["createCommentVNode"])("",!0),e.showDimensionsConfigItem?(Object(K["openBlock"])(),Object(K["createElementBlock"])("li",rd,[Object(K["createElementVNode"])("div",{class:"configItem dataTableShowDimensions",innerHTML:e.$sanitize(e.showDimensionsText)},null,8,od)])):Object(K["createCommentVNode"])("",!0),e.showFlatConfigItem?(Object(K["openBlock"])(),Object(K["createElementBlock"])("li",ad,[Object(K["createElementVNode"])("div",{class:"configItem dataTableIncludeAggregateRows",innerHTML:e.$sanitize(e.includeAggregateRowsText)},null,8,id)])):Object(K["createCommentVNode"])("",!0),e.showTotalsConfigItem?(Object(K["openBlock"])(),Object(K["createElementBlock"])("li",ld,[Object(K["createElementVNode"])("div",{class:"configItem dataTableShowTotalsRow",innerHTML:e.$sanitize(e.keepTotalsRowText)},null,8,cd)])):Object(K["createCommentVNode"])("",!0),e.showExcludeLowPopulation?(Object(K["openBlock"])(),Object(K["createElementBlock"])("li",sd,[Object(K["createElementVNode"])("div",{class:"configItem dataTableExcludeLowPopulation",innerHTML:e.$sanitize(e.excludeLowPopText)},null,8,ud)])):Object(K["createCommentVNode"])("",!0),e.showPivotBySubtable?(Object(K["openBlock"])(),Object(K["createElementBlock"])("li",dd,[Object(K["createElementVNode"])("div",{class:"configItem dataTablePivotBySubtable",innerHTML:e.$sanitize(e.pivotByText)},null,8,md)])):Object(K["createCommentVNode"])("",!0)],8,ed),e.showPeriods?Object(K["withDirectives"])((Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{key:7,class:"dropdown-button dataTableAction activatePeriodsSelection",href:"",onClick:t[7]||(t[7]=Object(K["withModifiers"])((function(){}),["prevent"])),title:e.translate("CoreHome_ChangePeriod"),"data-target":"dropdownPeriods".concat(e.randomIdForDropdown)},[Object(K["createElementVNode"])("div",null,[fd,Object(K["createElementVNode"])("span",hd,Object(K["toDisplayString"])(e.translations[e.clientSideParameters.period]||e.clientSideParameters.period),1)])],8,pd)),[[l]]):Object(K["createCommentVNode"])("",!0),e.showPeriods?(Object(K["openBlock"])(),Object(K["createElementBlock"])("ul",{key:8,id:"dropdownPeriods".concat(e.randomIdForDropdown),class:"dropdown-content dataTablePeriods"},[(Object(K["openBlock"])(!0),Object(K["createElementBlock"])(K["Fragment"],null,Object(K["renderList"])(e.selectablePeriods,(function(t){return Object(K["openBlock"])(),Object(K["createElementBlock"])("li",{key:t},[Object(K["createElementVNode"])("a",{"data-period":t,class:Object(K["normalizeClass"])("tableIcon ".concat(e.clientSideParameters.period===t?"activeIcon":""))},[Object(K["createElementVNode"])("span",null,Object(K["toDisplayString"])(e.translations[t]||t),1)],10,gd)])})),128))],8,bd)):Object(K["createCommentVNode"])("",!0)])):Object(K["createCommentVNode"])("",!0)}function yd(e){return kd(e)||wd(e)||jd(e)||Od()}function Od(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function jd(e,t){if(e){if("string"===typeof e)return Sd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sd(e,t):void 0}}function wd(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function kd(e){if(Array.isArray(e))return Sd(e)}function Sd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n'];n&&r.push(n);var o=a.apply(void 0,[e].concat(r));return t&&(o+=" (".concat(a("CoreHome_Default"),")")),o+="",o}return a(e)}function Pd(e,t,n){return e?Dd(t,!0):Dd(n)}function Td(e){return!!e&&"0"!==e}var Vd=Object(K["defineComponent"])({props:{showPeriods:Boolean,showFooter:Boolean,showFooterIcons:Boolean,showSearch:Boolean,showFlattenTable:Boolean,footerIcons:{type:Array,required:!0},viewDataTable:{type:String,required:!0},reportTitle:String,requestParams:{type:Object,required:!0},apiMethodToRequestDataTable:{type:String,required:!0},maxFilterLimit:{type:Number,required:!0},showExport:Boolean,showExportAsImageIcon:Boolean,showAnnotations:Boolean,reportId:{type:String,required:!0},dataTableActions:{type:Array,required:!0},clientSideParameters:{type:Object,required:!0},hasMultipleDimensions:Boolean,isDataTableEmpty:Boolean,showTotalsRow:Boolean,showExcludeLowPopulation:Boolean,showPivotBySubtable:Boolean,selectablePeriods:Array,translations:{type:Object,required:!0},pivotDimensionName:String},components:{Passthrough:Su},directives:{DropdownButton:Cn,ReportExport:tu},methods:{showExportImage:function(e){Ed(e.target).closest(".dataTable").find("div.jqplot-target").trigger("piwikExportAsImage")}},computed:{randomIdForDropdown:function(){return Math.floor(999999*Math.random())},allFooterIcons:function(){return this.footerIcons.reduce((function(e,t){return e.push.apply(e,yd(t.buttons)),e}),[])},activeFooterIcons:function(){var e=this,t=this.clientSideParameters,n=[this.viewDataTable];return 0===t.abandonedCarts||"0"===t.abandonedCarts?n.push("ecommerceOrder"):1!==t.abandonedCarts&&"1"!==t.abandonedCarts||n.push("ecommerceAbandonedCart"),n.map((function(t){return e.allFooterIcons.find((function(e){return e.id===t}))})).filter((function(e){return!!e}))},activeFooterIcon:function(){var e;return null===(e=this.activeFooterIcons[0])||void 0===e?void 0:e.icon},activeFooterIconIds:function(){return this.activeFooterIcons.map((function(e){return e.id}))},numIcons:function(){return this.allFooterIcons.length},hasFooterIconsToShow:function(){return!!this.activeFooterIcons.length&&this.numIcons>1},reportFormats:function(){var e={CSV:"CSV",TSV:"TSV (Excel)",XML:"XML",JSON:"Json",HTML:"HTML",RSS:"RSS"};return e},showDimensionsConfigItem:function(){return this.showFlattenTable&&"1"==="".concat(this.clientSideParameters.flat)&&this.hasMultipleDimensions},showFlatConfigItem:function(){return this.showFlattenTable&&"1"==="".concat(this.clientSideParameters.flat)},showTotalsConfigItem:function(){return!this.isDataTableEmpty&&this.showTotalsRow},hasConfigItems:function(){return this.showFlattenTable||this.showDimensionsConfigItem||this.showFlatConfigItem||this.showTotalsConfigItem||this.showExcludeLowPopulation||this.showPivotBySubtable},flattenItemText:function(){var e=this.clientSideParameters;return Pd(Td(e.flat),"CoreHome_UnFlattenDataTable","CoreHome_FlattenDataTable")},keepTotalsRowText:function(){var e=this.clientSideParameters;return Pd(Td(e.keep_totals_row),"CoreHome_RemoveTotalsRowDataTable","CoreHome_AddTotalsRowDataTable")},includeAggregateRowsText:function(){var e=this.clientSideParameters;return Pd(Td(e.include_aggregate_rows),"CoreHome_DataTableExcludeAggregateRows","CoreHome_DataTableIncludeAggregateRows")},showDimensionsText:function(){var e=this.clientSideParameters;return Pd(Td(e.show_dimensions),"CoreHome_DataTableCombineDimensions","CoreHome_DataTableShowDimensions")},pivotByText:function(){var e=this.clientSideParameters;return Td(e.pivotBy)?Dd("CoreHome_UndoPivotBySubtable",!0):Dd("CoreHome_PivotBySubtable",!1,this.pivotDimensionName)},excludeLowPopText:function(){var e=this.clientSideParameters;return Pd(Td(e.enable_filter_excludelowpop),"CoreHome_IncludeRowsWithLowPopulation","CoreHome_ExcludeRowsWithLowPopulation")},isAnyConfigureIconHighlighted:function(){var e=this.clientSideParameters;return Td(e.flat)||Td(e.keep_totals_row)||Td(e.include_aggregate_rows)||Td(e.show_dimensions)||Td(e.pivotBy)||Td(e.enable_filter_excludelowpop)},isTableView:function(){return"table"===this.viewDataTable||"tableAllColumns"===this.viewDataTable||"tableGoals"===this.viewDataTable}}});Vd.render=vd;var Nd=Vd,Id={key:0,class:"title",style:{cursor:"pointer"},ref:"expander"},xd=Object(K["createElementVNode"])("span",{class:"icon-warning"},null,-1),Bd={key:1,class:"title",href:"?module=CoreUpdater&action=newVersionAvailable",style:{cursor:"pointer"},ref:"expander"},Ad=Object(K["createElementVNode"])("span",{class:"icon-warning"},null,-1),Ld=["innerHTML"],Md={key:1,class:"title",href:"{{ externalRawLink('https://matomo.org/changelog/') }}",target:"_blank",rel:"noreferrer noopener"},_d={id:"updateCheckLinkContainer"},Fd={class:"dropdown positionInViewport"},Rd=["innerHTML"],Hd=["innerHTML"];function Ud(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("Passthrough"),l=Object(K["resolveDirective"])("expand-on-hover");return Object(K["withDirectives"])((Object(K["openBlock"])(),Object(K["createElementBlock"])("div",{id:"header_message",class:Object(K["normalizeClass"])(["piwikSelector",{header_info:!e.latestVersionAvailable||e.lastUpdateCheckFailed,update_available:e.latestVersionAvailable}])},[e.latestVersionAvailable&&!e.isPiwikDemo?(Object(K["openBlock"])(),Object(K["createBlock"])(i,{key:0},{default:Object(K["withCtx"])((function(){return[e.isMultiServerEnvironment?(Object(K["openBlock"])(),Object(K["createElementBlock"])("span",Id,[Object(K["createTextVNode"])(Object(K["toDisplayString"])(e.translate("General_NewUpdatePiwikX",e.latestVersionAvailable))+" ",1),xd],512)):(Object(K["openBlock"])(),Object(K["createElementBlock"])("a",Bd,[Object(K["createTextVNode"])(Object(K["toDisplayString"])(e.translate("General_NewUpdatePiwikX",e.latestVersionAvailable))+" ",1),Ad],512))]})),_:1})):e.isSuperUser&&(e.isAdminArea||e.lastUpdateCheckFailed)?(Object(K["openBlock"])(),Object(K["createBlock"])(i,{key:1},{default:Object(K["withCtx"])((function(){return[e.isInternetEnabled?(Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{key:0,class:"title",innerHTML:e.$sanitize(e.updateCheck)},null,8,Ld)):(Object(K["openBlock"])(),Object(K["createElementBlock"])("a",Md,[Object(K["createElementVNode"])("span",_d,Object(K["toDisplayString"])(e.translate("CoreHome_SeeAvailableVersions")),1)]))]})),_:1})):Object(K["createCommentVNode"])("",!0),Object(K["createElementVNode"])("div",Fd,[e.latestVersionAvailable&&e.isSuperUser?(Object(K["openBlock"])(),Object(K["createElementBlock"])("span",{key:0,innerHTML:e.$sanitize(e.updateNowText)},null,8,Rd)):e.latestVersionAvailable&&!e.isPiwikDemo&&e.hasSomeViewAccess&&!e.isAnonymous?(Object(K["openBlock"])(),Object(K["createElementBlock"])("span",{key:1,innerHTML:e.$sanitize(e.updateAvailableText)},null,8,Hd)):Object(K["createCommentVNode"])("",!0),Object(K["createTextVNode"])(" "+Object(K["toDisplayString"])(e.translate("General_YouAreCurrentlyUsing",e.piwikVersion)),1)])],2)),[[l,{expander:"expander"}]])}var $d=Object(K["defineComponent"])({props:{isMultiServerEnvironment:Boolean,lastUpdateCheckFailed:Boolean,latestVersionAvailable:String,isPiwikDemo:Boolean,isSuperUser:Boolean,isAdminArea:Boolean,isInternetEnabled:Boolean,updateCheck:String,isAnonymous:Boolean,hasSomeViewAccess:Boolean,contactEmail:String,piwikVersion:String},components:{Passthrough:Su},directives:{ExpandOnHover:yn},computed:{updateNowText:function(){var e="";if(this.isMultiServerEnvironment){var t=ut("https://builds.matomo.org/piwik-".concat(this.latestVersionAvailable,".zip"));e=a("CoreHome_OneClickUpdateNotPossibleAsMultiServerEnvironment",'builds.matomo.org'))}else e=a("General_PiwikXIsAvailablePleaseUpdateNow",this.latestVersionAvailable||"",'
',"",dt('href="https://matomo.org/changelog/'),"");return"".concat(e,"
")},updateAvailableText:function(){var e=a("General_NewUpdatePiwikX",this.latestVersionAvailable||""),t=dt("https://matomo.org/")+"Matomo",n=dt("https://matomo.org/changelog/"),r=a("General_PiwikXIsAvailablePleaseNotifyPiwikAdmin","".concat(t," ").concat(n).concat(this.latestVersionAvailable,""),''),"");return"".concat(r,"
")}}});$d.render=Ud;var qd=$d;function Wd(e,t){return Kd(e)||Jd(e,t)||Gd(e,t)||zd()}function zd(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Gd(e,t){if(e){if("string"===typeof e)return Yd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yd(e,t):void 0}}function Yd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n'];n&&r.push(n);var o=a.apply(void 0,[e].concat(r));return t&&(o+=" (".concat(a("CoreHome_Default"),")")),o+="",o}return a(e)}function Td(e,t,n){return e?Pd(t,!0):Pd(n)}function Vd(e){return!!e&&"0"!==e}var Nd=Object(K["defineComponent"])({props:{showPeriods:Boolean,showFooter:Boolean,showFooterIcons:Boolean,showSearch:Boolean,showFlattenTable:Boolean,footerIcons:{type:Array,required:!0},viewDataTable:{type:String,required:!0},reportTitle:String,requestParams:{type:Object,required:!0},apiMethodToRequestDataTable:{type:String,required:!0},maxFilterLimit:{type:Number,required:!0},showExport:Boolean,showExportAsImageIcon:Boolean,showAnnotations:Boolean,reportId:{type:String,required:!0},dataTableActions:{type:Array,required:!0},clientSideParameters:{type:Object,required:!0},hasMultipleDimensions:Boolean,isDataTableEmpty:Boolean,showTotalsRow:Boolean,showExcludeLowPopulation:Boolean,showPivotBySubtable:Boolean,selectablePeriods:Array,translations:{type:Object,required:!0},pivotDimensionName:String},components:{Passthrough:Cu},directives:{DropdownButton:Cn,ReportExport:nu},methods:{showExportImage:function(e){Dd(e.target).closest(".dataTable").find("div.jqplot-target").trigger("piwikExportAsImage")}},computed:{randomIdForDropdown:function(){return Math.floor(999999*Math.random())},allFooterIcons:function(){return this.footerIcons.reduce((function(e,t){return e.push.apply(e,Od(t.buttons)),e}),[])},activeFooterIcons:function(){var e=this,t=this.clientSideParameters,n=[this.viewDataTable];return 0===t.abandonedCarts||"0"===t.abandonedCarts?n.push("ecommerceOrder"):1!==t.abandonedCarts&&"1"!==t.abandonedCarts||n.push("ecommerceAbandonedCart"),n.map((function(t){return e.allFooterIcons.find((function(e){return e.id===t}))})).filter((function(e){return!!e}))},activeFooterIcon:function(){var e;return null===(e=this.activeFooterIcons[0])||void 0===e?void 0:e.icon},activeFooterIconIds:function(){return this.activeFooterIcons.map((function(e){return e.id}))},numIcons:function(){return this.allFooterIcons.length},hasFooterIconsToShow:function(){return!!this.activeFooterIcons.length&&this.numIcons>1},reportFormats:function(){var e={CSV:"CSV",TSV:"TSV (Excel)",XML:"XML",JSON:"Json",HTML:"HTML",RSS:"RSS"};return e},showDimensionsConfigItem:function(){return this.showFlattenTable&&"1"==="".concat(this.clientSideParameters.flat)&&this.hasMultipleDimensions},showFlatConfigItem:function(){return this.showFlattenTable&&"1"==="".concat(this.clientSideParameters.flat)},showTotalsConfigItem:function(){return!this.isDataTableEmpty&&this.showTotalsRow},hasConfigItems:function(){return this.showFlattenTable||this.showDimensionsConfigItem||this.showFlatConfigItem||this.showTotalsConfigItem||this.showExcludeLowPopulation||this.showPivotBySubtable},flattenItemText:function(){var e=this.clientSideParameters;return Td(Vd(e.flat),"CoreHome_UnFlattenDataTable","CoreHome_FlattenDataTable")},keepTotalsRowText:function(){var e=this.clientSideParameters;return Td(Vd(e.keep_totals_row),"CoreHome_RemoveTotalsRowDataTable","CoreHome_AddTotalsRowDataTable")},includeAggregateRowsText:function(){var e=this.clientSideParameters;return Td(Vd(e.include_aggregate_rows),"CoreHome_DataTableExcludeAggregateRows","CoreHome_DataTableIncludeAggregateRows")},showDimensionsText:function(){var e=this.clientSideParameters;return Td(Vd(e.show_dimensions),"CoreHome_DataTableCombineDimensions","CoreHome_DataTableShowDimensions")},pivotByText:function(){var e=this.clientSideParameters;return Vd(e.pivotBy)?Pd("CoreHome_UndoPivotBySubtable",!0):Pd("CoreHome_PivotBySubtable",!1,this.pivotDimensionName)},excludeLowPopText:function(){var e=this.clientSideParameters;return Td(Vd(e.enable_filter_excludelowpop),"CoreHome_IncludeRowsWithLowPopulation","CoreHome_ExcludeRowsWithLowPopulation")},isAnyConfigureIconHighlighted:function(){var e=this.clientSideParameters;return Vd(e.flat)||Vd(e.keep_totals_row)||Vd(e.include_aggregate_rows)||Vd(e.show_dimensions)||Vd(e.pivotBy)||Vd(e.enable_filter_excludelowpop)},isTableView:function(){return"table"===this.viewDataTable||"tableAllColumns"===this.viewDataTable||"tableGoals"===this.viewDataTable}}});Nd.render=yd;var Id=Nd,xd={key:0,class:"title",style:{cursor:"pointer"},ref:"expander"},Bd=Object(K["createElementVNode"])("span",{class:"icon-warning"},null,-1),Ad={key:1,class:"title",href:"?module=CoreUpdater&action=newVersionAvailable",style:{cursor:"pointer"},ref:"expander"},Ld=Object(K["createElementVNode"])("span",{class:"icon-warning"},null,-1),Md=["innerHTML"],_d={key:1,class:"title",href:"{{ externalRawLink('https://matomo.org/changelog/') }}",target:"_blank",rel:"noreferrer noopener"},Fd={id:"updateCheckLinkContainer"},Rd={class:"dropdown positionInViewport"},Hd=["innerHTML"],Ud=["innerHTML"];function $d(e,t,n,r,o,a){var i=Object(K["resolveComponent"])("Passthrough"),l=Object(K["resolveDirective"])("expand-on-hover");return Object(K["withDirectives"])((Object(K["openBlock"])(),Object(K["createElementBlock"])("div",{id:"header_message",class:Object(K["normalizeClass"])(["piwikSelector",{header_info:!e.latestVersionAvailable||e.lastUpdateCheckFailed,update_available:e.latestVersionAvailable}])},[e.latestVersionAvailable&&!e.isPiwikDemo?(Object(K["openBlock"])(),Object(K["createBlock"])(i,{key:0},{default:Object(K["withCtx"])((function(){return[e.isMultiServerEnvironment?(Object(K["openBlock"])(),Object(K["createElementBlock"])("span",xd,[Object(K["createTextVNode"])(Object(K["toDisplayString"])(e.translate("General_NewUpdatePiwikX",e.latestVersionAvailable))+" ",1),Bd],512)):(Object(K["openBlock"])(),Object(K["createElementBlock"])("a",Ad,[Object(K["createTextVNode"])(Object(K["toDisplayString"])(e.translate("General_NewUpdatePiwikX",e.latestVersionAvailable))+" ",1),Ld],512))]})),_:1})):e.isSuperUser&&(e.isAdminArea||e.lastUpdateCheckFailed)?(Object(K["openBlock"])(),Object(K["createBlock"])(i,{key:1},{default:Object(K["withCtx"])((function(){return[e.isInternetEnabled?(Object(K["openBlock"])(),Object(K["createElementBlock"])("a",{key:0,class:"title",innerHTML:e.$sanitize(e.updateCheck)},null,8,Md)):(Object(K["openBlock"])(),Object(K["createElementBlock"])("a",_d,[Object(K["createElementVNode"])("span",Fd,Object(K["toDisplayString"])(e.translate("CoreHome_SeeAvailableVersions")),1)]))]})),_:1})):Object(K["createCommentVNode"])("",!0),Object(K["createElementVNode"])("div",Rd,[e.latestVersionAvailable&&e.isSuperUser?(Object(K["openBlock"])(),Object(K["createElementBlock"])("span",{key:0,innerHTML:e.$sanitize(e.updateNowText)},null,8,Hd)):e.latestVersionAvailable&&!e.isPiwikDemo&&e.hasSomeViewAccess&&!e.isAnonymous?(Object(K["openBlock"])(),Object(K["createElementBlock"])("span",{key:1,innerHTML:e.$sanitize(e.updateAvailableText)},null,8,Ud)):Object(K["createCommentVNode"])("",!0),Object(K["createTextVNode"])(" "+Object(K["toDisplayString"])(e.translate("General_YouAreCurrentlyUsing",e.piwikVersion)),1)])],2)),[[l,{expander:"expander"}]])}var qd=Object(K["defineComponent"])({props:{isMultiServerEnvironment:Boolean,lastUpdateCheckFailed:Boolean,latestVersionAvailable:String,isPiwikDemo:Boolean,isSuperUser:Boolean,isAdminArea:Boolean,isInternetEnabled:Boolean,updateCheck:String,isAnonymous:Boolean,hasSomeViewAccess:Boolean,contactEmail:String,piwikVersion:String},components:{Passthrough:Cu},directives:{ExpandOnHover:yn},computed:{updateNowText:function(){var e="";if(this.isMultiServerEnvironment){var t=ut("https://builds.matomo.org/piwik-".concat(this.latestVersionAvailable,".zip"));e=a("CoreHome_OneClickUpdateNotPossibleAsMultiServerEnvironment",'builds.matomo.org'))}else e=a("General_PiwikXIsAvailablePleaseUpdateNow",this.latestVersionAvailable||"",'
',"",dt('href="https://matomo.org/changelog/'),"");return"".concat(e,"
")},updateAvailableText:function(){var e=a("General_NewUpdatePiwikX",this.latestVersionAvailable||""),t=dt("https://matomo.org/")+"Matomo",n=dt("https://matomo.org/changelog/"),r=a("General_PiwikXIsAvailablePleaseNotifyPiwikAdmin","".concat(t," ").concat(n).concat(this.latestVersionAvailable,""),''),"");return"".concat(r,"
")}}});qd.render=$d;var Wd=qd;function zd(e,t){return Qd(e)||Kd(e,t)||Yd(e,t)||Gd()}function Gd(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Yd(e,t){if(e){if("string"===typeof e)return Jd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jd(e,t):void 0}}function Jd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n
-
+
+
+
+
@@ -46,6 +49,8 @@ export default defineComponent({
helpUrl: String,
helpText: String,
anchor: String,
+ imageUrl: String,
+ imageAltText: String,
},
components: {
EnrichedHeadline,
@@ -54,6 +59,7 @@ export default defineComponent({
return {
actualFeature: this.feature,
actualHelpText: this.helpText,
+ actualImageAltText: this.imageAltText ? this.imageAltText : this.contentTitle,
};
},
watch: {
diff --git a/plugins/Morpheus/stylesheets/ui/_cards.less b/plugins/Morpheus/stylesheets/ui/_cards.less
index 5288749940f..b8acd3bae86 100644
--- a/plugins/Morpheus/stylesheets/ui/_cards.less
+++ b/plugins/Morpheus/stylesheets/ui/_cards.less
@@ -62,3 +62,13 @@ h1,
.card-table + .tableActionBar {
margin: 0 0 0 -20px;
}
+
+.card-with-image {
+ display: grid;
+ grid-auto-flow: column;
+ grid-auto-columns: 1fr;
+
+ .card-image {
+ margin: 25px 20px;
+ }
+}
diff --git a/plugins/ProfessionalServices/Categories/PromoFormsCategory.php b/plugins/ProfessionalServices/Categories/PromoFormsCategory.php
index afe5720556d..4010d8ee861 100644
--- a/plugins/ProfessionalServices/Categories/PromoFormsCategory.php
+++ b/plugins/ProfessionalServices/Categories/PromoFormsCategory.php
@@ -12,7 +12,7 @@
class PromoFormsCategory extends Category
{
- protected $id = 'ProfessionalServices_PromoForms';
+ protected $id = 'ProfessionalServices_PromoFormAnalytics';
protected $order = 49;
protected $icon = 'icon-form';
}
diff --git a/plugins/ProfessionalServices/Categories/PromoMediaCategory.php b/plugins/ProfessionalServices/Categories/PromoMediaCategory.php
index 4bab69da4c6..7ae1b75df53 100644
--- a/plugins/ProfessionalServices/Categories/PromoMediaCategory.php
+++ b/plugins/ProfessionalServices/Categories/PromoMediaCategory.php
@@ -12,7 +12,7 @@
class PromoMediaCategory extends Category
{
- protected $id = 'ProfessionalServices_PromoMedia';
+ protected $id = 'ProfessionalServices_PromoMediaAnalytics';
protected $order = 50;
protected $icon = 'icon-folder-charts';
}
diff --git a/plugins/ProfessionalServices/ProfessionalServices.php b/plugins/ProfessionalServices/ProfessionalServices.php
index 32cb4f422c8..41ecab070d4 100644
--- a/plugins/ProfessionalServices/ProfessionalServices.php
+++ b/plugins/ProfessionalServices/ProfessionalServices.php
@@ -38,6 +38,7 @@ public function registerEvents()
public function getStylesheetFiles(&$stylesheets)
{
+ $stylesheets[] = 'plugins/ProfessionalServices/stylesheets/promos.less';
$stylesheets[] = 'plugins/ProfessionalServices/stylesheets/widget.less';
}
diff --git a/plugins/ProfessionalServices/PromoWidgetApplicable.php b/plugins/ProfessionalServices/PromoWidgetApplicable.php
index 626cdead096..ba4e945c9b1 100644
--- a/plugins/ProfessionalServices/PromoWidgetApplicable.php
+++ b/plugins/ProfessionalServices/PromoWidgetApplicable.php
@@ -14,12 +14,6 @@
class PromoWidgetApplicable
{
-
- /**
- * @var Advertising
- */
- private $advertising;
-
/**
* @var Manager
*/
@@ -30,16 +24,15 @@ class PromoWidgetApplicable
*/
private $config;
- public function __construct(Advertising $advertising, Manager $manager, Config $config)
+ public function __construct(Manager $manager, Config $config)
{
- $this->advertising = $advertising;
$this->manager = $manager;
$this->config = $config;
}
public function check(string $pluginName): bool
{
- if ($this->advertising->areAdsForProfessionalServicesEnabled() === false) {
+ if (Advertising::isAdsEnabledInConfig($this->config->General) === false) {
return false;
}
diff --git a/plugins/ProfessionalServices/Widgets/PromoAbTesting.php b/plugins/ProfessionalServices/Widgets/PromoAbTesting.php
index 0a579d4b9a1..23ab5783f95 100644
--- a/plugins/ProfessionalServices/Widgets/PromoAbTesting.php
+++ b/plugins/ProfessionalServices/Widgets/PromoAbTesting.php
@@ -9,27 +9,42 @@
namespace Piwik\Plugins\ProfessionalServices\Widgets;
use Piwik\Container\StaticContainer;
+use Piwik\Piwik;
+use Piwik\View;
use Piwik\Widget\Widget;
use Piwik\Widget\WidgetConfig;
class PromoAbTesting extends Widget
{
+ private const PROMO_PLUGIN_NAME = 'AbTesting';
+
public static function configure(WidgetConfig $config)
{
$config->setCategoryId('ProfessionalServices_PromoAbTesting');
$config->setSubcategoryId('ProfessionalServices_PromoOverview');
- $config->setName('ProfessionalServices_PromoAbTestingOverview');
$config->setIsNotWidgetizable();
$promoWidgetApplicable = StaticContainer::get('Piwik\Plugins\ProfessionalServices\PromoWidgetApplicable');
- $isEnabled = $promoWidgetApplicable->check('AbTesting');
- $isEnabled = false;
+ $isEnabled = $promoWidgetApplicable->check(self::PROMO_PLUGIN_NAME);
$config->setIsEnabled($isEnabled);
}
public function render()
{
- return 'content';
+ $marketplacePlugins = StaticContainer::get('Piwik\Plugins\Marketplace\Plugins');
+ $pluginInfo = $marketplacePlugins->getPluginInfo(self::PROMO_PLUGIN_NAME);
+
+ $view = new View('@ProfessionalServices/pluginAdvertising');
+ $view->plugin = $pluginInfo;
+
+ $view->title = Piwik::translate('ProfessionalServices_PromoUnlockPowerOf', $pluginInfo['displayName']);
+ $view->listOfFeatures = [
+ Piwik::translate('ProfessionalServices_AbTestingFeature01'),
+ Piwik::translate('ProfessionalServices_AbTestingFeature02'),
+ Piwik::translate('ProfessionalServices_AbTestingFeature03'),
+ ];
+
+ return $view->render();
}
}
diff --git a/plugins/ProfessionalServices/Widgets/PromoCrashAnalytics.php b/plugins/ProfessionalServices/Widgets/PromoCrashAnalytics.php
index 736571e40b8..36395e322dc 100644
--- a/plugins/ProfessionalServices/Widgets/PromoCrashAnalytics.php
+++ b/plugins/ProfessionalServices/Widgets/PromoCrashAnalytics.php
@@ -9,27 +9,42 @@
namespace Piwik\Plugins\ProfessionalServices\Widgets;
use Piwik\Container\StaticContainer;
+use Piwik\Piwik;
+use Piwik\View;
use Piwik\Widget\Widget;
use Piwik\Widget\WidgetConfig;
class PromoCrashAnalytics extends Widget
{
+ private const PROMO_PLUGIN_NAME = 'CrashAnalytics';
+
public static function configure(WidgetConfig $config)
{
$config->setCategoryId('ProfessionalServices_PromoCrashAnalytics');
$config->setSubcategoryId('ProfessionalServices_PromoOverview');
- $config->setName('ProfessionalServices_PromoCrashAnalyticsOverview');
$config->setIsNotWidgetizable();
$promoWidgetApplicable = StaticContainer::get('Piwik\Plugins\ProfessionalServices\PromoWidgetApplicable');
- $isEnabled = $promoWidgetApplicable->check('CrashAnalytics');
- $isEnabled = false;
+ $isEnabled = $promoWidgetApplicable->check(self::PROMO_PLUGIN_NAME);
$config->setIsEnabled($isEnabled);
}
public function render()
{
- return 'content';
+ $marketplacePlugins = StaticContainer::get('Piwik\Plugins\Marketplace\Plugins');
+ $pluginInfo = $marketplacePlugins->getPluginInfo(self::PROMO_PLUGIN_NAME);
+
+ $view = new View('@ProfessionalServices/pluginAdvertising');
+ $view->plugin = $pluginInfo;
+
+ $view->title = Piwik::translate('ProfessionalServices_PromoUnlockPowerOf', $pluginInfo['displayName']);
+ $view->listOfFeatures = [
+ Piwik::translate('ProfessionalServices_CrashAnalyticsFeature01'),
+ Piwik::translate('ProfessionalServices_CrashAnalyticsFeature02'),
+ Piwik::translate('ProfessionalServices_CrashAnalyticsFeature03'),
+ ];
+
+ return $view->render();
}
}
diff --git a/plugins/ProfessionalServices/Widgets/PromoCustomReports.php b/plugins/ProfessionalServices/Widgets/PromoCustomReports.php
index ad2ba1423e9..6f6e83801ae 100644
--- a/plugins/ProfessionalServices/Widgets/PromoCustomReports.php
+++ b/plugins/ProfessionalServices/Widgets/PromoCustomReports.php
@@ -9,27 +9,42 @@
namespace Piwik\Plugins\ProfessionalServices\Widgets;
use Piwik\Container\StaticContainer;
+use Piwik\Piwik;
+use Piwik\View;
use Piwik\Widget\Widget;
use Piwik\Widget\WidgetConfig;
class PromoCustomReports extends Widget
{
+ private const PROMO_PLUGIN_NAME = 'CustomReports';
+
public static function configure(WidgetConfig $config)
{
$config->setCategoryId('ProfessionalServices_PromoCustomReports');
$config->setSubcategoryId('ProfessionalServices_PromoManage');
- $config->setName('ProfessionalServices_PromoCustomReportsManage');
$config->setIsNotWidgetizable();
$promoWidgetApplicable = StaticContainer::get('Piwik\Plugins\ProfessionalServices\PromoWidgetApplicable');
- $isEnabled = $promoWidgetApplicable->check('CustomReports');
- $isEnabled = false;
+ $isEnabled = $promoWidgetApplicable->check(self::PROMO_PLUGIN_NAME);
$config->setIsEnabled($isEnabled);
}
public function render()
{
- return 'content';
+ $marketplacePlugins = StaticContainer::get('Piwik\Plugins\Marketplace\Plugins');
+ $pluginInfo = $marketplacePlugins->getPluginInfo(self::PROMO_PLUGIN_NAME);
+
+ $view = new View('@ProfessionalServices/pluginAdvertising');
+ $view->plugin = $pluginInfo;
+
+ $view->title = Piwik::translate('ProfessionalServices_PromoUnlockPowerOf', $pluginInfo['displayName']);
+ $view->listOfFeatures = [
+ Piwik::translate('ProfessionalServices_CustomReportsFeature01'),
+ Piwik::translate('ProfessionalServices_CustomReportsFeature02'),
+ Piwik::translate('ProfessionalServices_CustomReportsFeature03'),
+ ];
+
+ return $view->render();
}
}
diff --git a/plugins/ProfessionalServices/Widgets/PromoFormAnalytics.php b/plugins/ProfessionalServices/Widgets/PromoFormAnalytics.php
new file mode 100644
index 00000000000..37ae580ab8e
--- /dev/null
+++ b/plugins/ProfessionalServices/Widgets/PromoFormAnalytics.php
@@ -0,0 +1,50 @@
+setCategoryId('ProfessionalServices_PromoFormAnalytics');
+ $config->setSubcategoryId('ProfessionalServices_PromoOverview');
+ $config->setIsNotWidgetizable();
+
+ $promoWidgetApplicable = StaticContainer::get('Piwik\Plugins\ProfessionalServices\PromoWidgetApplicable');
+
+ $isEnabled = $promoWidgetApplicable->check(self::PROMO_PLUGIN_NAME);
+ $config->setIsEnabled($isEnabled);
+ }
+
+ public function render()
+ {
+ $marketplacePlugins = StaticContainer::get('Piwik\Plugins\Marketplace\Plugins');
+ $pluginInfo = $marketplacePlugins->getPluginInfo(self::PROMO_PLUGIN_NAME);
+
+ $view = new View('@ProfessionalServices/pluginAdvertising');
+ $view->plugin = $pluginInfo;
+
+ $view->title = Piwik::translate('ProfessionalServices_PromoUnlockPowerOf', $pluginInfo['displayName']);
+ $view->listOfFeatures = [
+ Piwik::translate('ProfessionalServices_FormAnalyticsFeature01'),
+ Piwik::translate('ProfessionalServices_FormAnalyticsFeature02'),
+ Piwik::translate('ProfessionalServices_FormAnalyticsFeature03'),
+ ];
+
+ return $view->render();
+ }
+}
diff --git a/plugins/ProfessionalServices/Widgets/PromoForms.php b/plugins/ProfessionalServices/Widgets/PromoForms.php
deleted file mode 100644
index cf58e3e4d3c..00000000000
--- a/plugins/ProfessionalServices/Widgets/PromoForms.php
+++ /dev/null
@@ -1,35 +0,0 @@
-setCategoryId('ProfessionalServices_PromoForms');
- $config->setSubcategoryId('ProfessionalServices_PromoOverview');
- $config->setName('ProfessionalServices_PromoFormsOverview');
- $config->setIsNotWidgetizable();
-
- $promoWidgetApplicable = StaticContainer::get('Piwik\Plugins\ProfessionalServices\PromoWidgetApplicable');
-
- $isEnabled = $promoWidgetApplicable->check('FormAnalytics');
- $isEnabled = false;
- $config->setIsEnabled($isEnabled);
- }
-
- public function render()
- {
- return 'content';
- }
-}
diff --git a/plugins/ProfessionalServices/Widgets/PromoFunnels.php b/plugins/ProfessionalServices/Widgets/PromoFunnels.php
index 528278ad425..d3c423e56fe 100644
--- a/plugins/ProfessionalServices/Widgets/PromoFunnels.php
+++ b/plugins/ProfessionalServices/Widgets/PromoFunnels.php
@@ -9,27 +9,42 @@
namespace Piwik\Plugins\ProfessionalServices\Widgets;
use Piwik\Container\StaticContainer;
+use Piwik\Piwik;
+use Piwik\View;
use Piwik\Widget\Widget;
use Piwik\Widget\WidgetConfig;
class PromoFunnels extends Widget
{
+ private const PROMO_PLUGIN_NAME = 'Funnels';
+
public static function configure(WidgetConfig $config)
{
$config->setCategoryId('ProfessionalServices_PromoFunnels');
$config->setSubcategoryId('ProfessionalServices_PromoOverview');
- $config->setName('ProfessionalServices_PromoFunnelsOverview');
$config->setIsNotWidgetizable();
$promoWidgetApplicable = StaticContainer::get('Piwik\Plugins\ProfessionalServices\PromoWidgetApplicable');
- $isEnabled = $promoWidgetApplicable->check('Funnels');
- $isEnabled = false;
+ $isEnabled = $promoWidgetApplicable->check(self::PROMO_PLUGIN_NAME);
$config->setIsEnabled($isEnabled);
}
public function render()
{
- return 'content';
+ $marketplacePlugins = StaticContainer::get('Piwik\Plugins\Marketplace\Plugins');
+ $pluginInfo = $marketplacePlugins->getPluginInfo(self::PROMO_PLUGIN_NAME);
+
+ $view = new View('@ProfessionalServices/pluginAdvertising');
+ $view->plugin = $pluginInfo;
+
+ $view->title = Piwik::translate('ProfessionalServices_PromoUnlockPowerOf', $pluginInfo['displayName']);
+ $view->listOfFeatures = [
+ Piwik::translate('ProfessionalServices_FunnelsFeature01'),
+ Piwik::translate('ProfessionalServices_FunnelsFeature02'),
+ Piwik::translate('ProfessionalServices_FunnelsFeature03'),
+ ];
+
+ return $view->render();
}
}
diff --git a/plugins/ProfessionalServices/Widgets/PromoHeatmap.php b/plugins/ProfessionalServices/Widgets/PromoHeatmap.php
deleted file mode 100644
index 456762b5636..00000000000
--- a/plugins/ProfessionalServices/Widgets/PromoHeatmap.php
+++ /dev/null
@@ -1,35 +0,0 @@
-setCategoryId('ProfessionalServices_PromoHeatmaps');
- $config->setSubcategoryId('ProfessionalServices_PromoManage');
- $config->setName('ProfessionalServices_PromoHeatmapsManage');
- $config->setIsNotWidgetizable();
-
- $promoWidgetApplicable = StaticContainer::get('Piwik\Plugins\ProfessionalServices\PromoWidgetApplicable');
-
- $isEnabled = $promoWidgetApplicable->check('HeatmapSessionRecording');
- $isEnabled = false;
- $config->setIsEnabled($isEnabled);
- }
-
- public function render()
- {
- return 'content';
- }
-}
diff --git a/plugins/ProfessionalServices/Widgets/PromoHeatmaps.php b/plugins/ProfessionalServices/Widgets/PromoHeatmaps.php
new file mode 100644
index 00000000000..7c68fea2daa
--- /dev/null
+++ b/plugins/ProfessionalServices/Widgets/PromoHeatmaps.php
@@ -0,0 +1,51 @@
+setCategoryId('ProfessionalServices_PromoHeatmaps');
+ $config->setSubcategoryId('ProfessionalServices_PromoManage');
+ $config->setIsNotWidgetizable();
+
+ $promoWidgetApplicable = StaticContainer::get('Piwik\Plugins\ProfessionalServices\PromoWidgetApplicable');
+
+ $isEnabled = $promoWidgetApplicable->check(self::PROMO_PLUGIN_NAME);
+ $config->setIsEnabled($isEnabled);
+ }
+
+ public function render()
+ {
+ $marketplacePlugins = StaticContainer::get('Piwik\Plugins\Marketplace\Plugins');
+ $pluginInfo = $marketplacePlugins->getPluginInfo(self::PROMO_PLUGIN_NAME);
+
+ $view = new View('@ProfessionalServices/pluginAdvertising');
+ $view->plugin = $pluginInfo;
+
+ $view->title = Piwik::translate('ProfessionalServices_PromoUnlockPowerOf', 'Heatmaps');
+ $view->imageName = 'ad-heatmaps.png';
+ $view->listOfFeatures = [
+ Piwik::translate('ProfessionalServices_HeatmapsFeature01'),
+ Piwik::translate('ProfessionalServices_HeatmapsFeature02'),
+ Piwik::translate('ProfessionalServices_HeatmapsFeature03'),
+ ];
+
+ return $view->render();
+ }
+}
diff --git a/plugins/ProfessionalServices/Widgets/PromoMedia.php b/plugins/ProfessionalServices/Widgets/PromoMedia.php
deleted file mode 100644
index 2a4dc507f2c..00000000000
--- a/plugins/ProfessionalServices/Widgets/PromoMedia.php
+++ /dev/null
@@ -1,35 +0,0 @@
-setCategoryId('ProfessionalServices_PromoMedia');
- $config->setSubcategoryId('ProfessionalServices_PromoOverview');
- $config->setName('ProfessionalServices_PromoHeatmapsOverview');
- $config->setIsNotWidgetizable();
-
- $promoWidgetApplicable = StaticContainer::get('Piwik\Plugins\ProfessionalServices\PromoWidgetApplicable');
-
- $isEnabled = $promoWidgetApplicable->check('MediaAnalytics');
- $isEnabled = false;
- $config->setIsEnabled($isEnabled);
- }
-
- public function render()
- {
- return 'content';
- }
-}
diff --git a/plugins/ProfessionalServices/Widgets/PromoMediaAnalytics.php b/plugins/ProfessionalServices/Widgets/PromoMediaAnalytics.php
new file mode 100644
index 00000000000..0081aa29d7d
--- /dev/null
+++ b/plugins/ProfessionalServices/Widgets/PromoMediaAnalytics.php
@@ -0,0 +1,50 @@
+setCategoryId('ProfessionalServices_PromoMediaAnalytics');
+ $config->setSubcategoryId('ProfessionalServices_PromoOverview');
+ $config->setIsNotWidgetizable();
+
+ $promoWidgetApplicable = StaticContainer::get('Piwik\Plugins\ProfessionalServices\PromoWidgetApplicable');
+
+ $isEnabled = $promoWidgetApplicable->check(self::PROMO_PLUGIN_NAME);
+ $config->setIsEnabled($isEnabled);
+ }
+
+ public function render()
+ {
+ $marketplacePlugins = StaticContainer::get('Piwik\Plugins\Marketplace\Plugins');
+ $pluginInfo = $marketplacePlugins->getPluginInfo(self::PROMO_PLUGIN_NAME);
+
+ $view = new View('@ProfessionalServices/pluginAdvertising');
+ $view->plugin = $pluginInfo;
+
+ $view->title = Piwik::translate('ProfessionalServices_PromoUnlockPowerOf', $pluginInfo['displayName']);
+ $view->listOfFeatures = [
+ Piwik::translate('ProfessionalServices_MediaAnalyticsFeature01'),
+ Piwik::translate('ProfessionalServices_MediaAnalyticsFeature02'),
+ Piwik::translate('ProfessionalServices_MediaAnalyticsFeature03'),
+ ];
+
+ return $view->render();
+ }
+}
diff --git a/plugins/ProfessionalServices/Widgets/PromoSessionRecording.php b/plugins/ProfessionalServices/Widgets/PromoSessionRecording.php
deleted file mode 100644
index 9ecfd8069ed..00000000000
--- a/plugins/ProfessionalServices/Widgets/PromoSessionRecording.php
+++ /dev/null
@@ -1,35 +0,0 @@
-setCategoryId('ProfessionalServices_PromoSessionRecording');
- $config->setSubcategoryId('ProfessionalServices_PromoManage');
- $config->setName('ProfessionalServices_PromoSessionRecordingManage');
- $config->setIsNotWidgetizable();
-
- $promoWidgetApplicable = StaticContainer::get('Piwik\Plugins\ProfessionalServices\PromoWidgetApplicable');
-
- $isEnabled = $promoWidgetApplicable->check('HeatmapSessionRecording');
- $isEnabled = false;
- $config->setIsEnabled($isEnabled);
- }
-
- public function render()
- {
- return 'content';
- }
-}
diff --git a/plugins/ProfessionalServices/Widgets/PromoSessionRecordings.php b/plugins/ProfessionalServices/Widgets/PromoSessionRecordings.php
new file mode 100644
index 00000000000..585411d629a
--- /dev/null
+++ b/plugins/ProfessionalServices/Widgets/PromoSessionRecordings.php
@@ -0,0 +1,51 @@
+setCategoryId('ProfessionalServices_PromoSessionRecording');
+ $config->setSubcategoryId('ProfessionalServices_PromoManage');
+ $config->setIsNotWidgetizable();
+
+ $promoWidgetApplicable = StaticContainer::get('Piwik\Plugins\ProfessionalServices\PromoWidgetApplicable');
+
+ $isEnabled = $promoWidgetApplicable->check(self::PROMO_PLUGIN_NAME);
+ $config->setIsEnabled($isEnabled);
+ }
+
+ public function render()
+ {
+ $marketplacePlugins = StaticContainer::get('Piwik\Plugins\Marketplace\Plugins');
+ $pluginInfo = $marketplacePlugins->getPluginInfo(self::PROMO_PLUGIN_NAME);
+
+ $view = new View('@ProfessionalServices/pluginAdvertising');
+ $view->plugin = $pluginInfo;
+
+ $view->title = Piwik::translate('ProfessionalServices_PromoUnlockPowerOf', 'Session Recordings'); // custom title
+ $view->imageName = 'ad-sessionrecordings.png';
+ $view->listOfFeatures = [
+ Piwik::translate('ProfessionalServices_SessionRecordingsFeature01'),
+ Piwik::translate('ProfessionalServices_SessionRecordingsFeature02'),
+ Piwik::translate('ProfessionalServices_SessionRecordingsFeature03'),
+ ];
+
+ return $view->render();
+ }
+}
diff --git a/plugins/ProfessionalServices/images/ad-abtesting.png b/plugins/ProfessionalServices/images/ad-abtesting.png
new file mode 100644
index 0000000000000000000000000000000000000000..e63628a3cfcd85faa011f062266397453b7f6ae4
GIT binary patch
literal 150098
zcmeFZXH?VMw>AnPKozMwQ
zIvWBgy@uYT_Z}eJ`2O!Xd!Kth-jDZ;k&*Jt8f&bzW_#vbbIwRT9d#!9%k&f!6ioLu
zRP-q*Xn+(H0A~;l`H9+d`W6a`Ad34cN(Nq*>yxzQVyf{p*7jlC_LunPtuOzbESYhI
z{>o=TF3Bg%SAO$?XtZG0eg_3{v)_D6|GVI`TlZ6DAp7!;=rhHx!(_J}|E>C0;>j0Q
zjzy^+}#q*5{%;)+9~JKCsW0AF1sBfEDfiVTVcix#G#f9==t*O
z?x%(`=c&DvSI0+z7e`7JJ|~|7Pd+^<`-R}S;nl>z{AXnN>C{nui@L&Y?5w@w=~&h1
zjC;iN1?i~eX6nh$*%!vOkIQHgu1j*$-d^o;Q<4g|KZmgC-gP-%5K+9dUfjamGS(At
z_#_{TyF7K${fb$U*cU@6(e+<_)Pi>M9iMHuIBf{uOT9R2Q8-<{$?Lmb(sEzq>#Z9v
z_;>^7d8TFV&QP*&;l^Lq&Z6w)#+}=4rj$gF>>Ll-Cpp!h6#qhuGagm7%ZC~Nm}76z
z4I~cCete|E&FTB4nLOpvv((Cl^NsL}^XUt8!0N*opTTY7NJD_%s(~MQZZ6BSIZl=(
z*^%n7z|+b=M<3bkMk=#FEX)2%!0Cpx`F=VlA8B5ZWFvD_-6MaO{Ki**fOTTBI&S6+
z3s>0x)^exEyL(vLxVqCY%y)9lvPC@bq{~H;C(4REaSPAXcGzs`r#e&_W$9XBEwi}q
zSXWzip-lZz-ByKy%=Ah32r9-hl9VXCZfQ~E{mYU06`4HY*$M}_E#Zo1v$LUWI$WI4
zGsVLx->uo<%6gBo%*j{N{xalKC2W!RQ3crdmbGoAj^3
z>MRRrJ|NTClY!=Zt%0<*oqBPS+G4TgGcp??_?|2EvKD1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