diff --git a/plugins/SitesManager/templates/_othersTab.twig b/plugins/SitesManager/templates/_othersTab.twig
index 0bc10e382890..dbfb258e3416 100644
--- a/plugins/SitesManager/templates/_othersTab.twig
+++ b/plugins/SitesManager/templates/_othersTab.twig
@@ -1,3 +1,5 @@
+
diff --git a/plugins/SitesManager/templates/_vueTabInstructions.twig b/plugins/SitesManager/templates/_vueTabInstructions.twig
index c2e34c2e4746..fe4807100427 100644
--- a/plugins/SitesManager/templates/_vueTabInstructions.twig
+++ b/plugins/SitesManager/templates/_vueTabInstructions.twig
@@ -1,3 +1,5 @@
+
{{ 'SitesManager_VueDetected'|translate('
vue-matomo','
','')|raw }}
diff --git a/plugins/SitesManager/templates/_wordpressTabInstructions.twig b/plugins/SitesManager/templates/_wordpressTabInstructions.twig
index f5fbaedadb5b..216f000e01ea 100644
--- a/plugins/SitesManager/templates/_wordpressTabInstructions.twig
+++ b/plugins/SitesManager/templates/_wordpressTabInstructions.twig
@@ -1,11 +1,5 @@
-
+
{{ 'SitesManager_StepByStepGuide'|translate }}
+
{{ 'SitesManager_SiteWithoutDataWordpressIntroductionLine1'|translate('', '')|raw }}
{{ 'SitesManager_SiteWithoutDataWordpressIntroductionLine2'|translate('', '', '', '')|raw }}
diff --git a/plugins/SitesManager/vue/dist/SitesManager.umd.js b/plugins/SitesManager/vue/dist/SitesManager.umd.js
index 7dc8a6725cc0..dc7209048826 100644
--- a/plugins/SitesManager/vue/dist/SitesManager.umd.js
+++ b/plugins/SitesManager/vue/dist/SitesManager.umd.js
@@ -2097,56 +2097,56 @@ function ManageGlobalSettingsvue_type_template_id_5467128a_render(_ctx, _cache,
ManageGlobalSettingsvue_type_script_lang_ts.render = ManageGlobalSettingsvue_type_template_id_5467128a_render
/* harmony default export */ var ManageGlobalSettings = (ManageGlobalSettingsvue_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/SitesManager/vue/src/SiteWithoutData/SiteWithoutData.vue?vue&type=template&id=45c4c367
+// 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/SitesManager/vue/src/SiteWithoutData/SiteWithoutData.vue?vue&type=template&id=149a856a
-var SiteWithoutDatavue_type_template_id_45c4c367_hoisted_1 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
+var SiteWithoutDatavue_type_template_id_149a856a_hoisted_1 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
class: "icon-chevron-left"
}, null, -1);
-var SiteWithoutDatavue_type_template_id_45c4c367_hoisted_2 = {
+var SiteWithoutDatavue_type_template_id_149a856a_hoisted_2 = {
id: "start-tracking-data-header"
};
-var SiteWithoutDatavue_type_template_id_45c4c367_hoisted_3 = {
+var SiteWithoutDatavue_type_template_id_149a856a_hoisted_3 = {
id: "start-tracking-cta"
};
-var SiteWithoutDatavue_type_template_id_45c4c367_hoisted_4 = ["href"];
+var SiteWithoutDatavue_type_template_id_149a856a_hoisted_4 = ["href"];
-var SiteWithoutDatavue_type_template_id_45c4c367_hoisted_5 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
+var SiteWithoutDatavue_type_template_id_149a856a_hoisted_5 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
class: "icon-user-add"
}, null, -1);
-var SiteWithoutDatavue_type_template_id_45c4c367_hoisted_6 = {
+var SiteWithoutDatavue_type_template_id_149a856a_hoisted_6 = {
key: 0,
class: "row",
id: "start-tracking-detection"
};
-var SiteWithoutDatavue_type_template_id_45c4c367_hoisted_7 = ["src", "alt"];
-var SiteWithoutDatavue_type_template_id_45c4c367_hoisted_8 = ["href"];
-var SiteWithoutDatavue_type_template_id_45c4c367_hoisted_9 = {
+var SiteWithoutDatavue_type_template_id_149a856a_hoisted_7 = ["src", "alt"];
+var SiteWithoutDatavue_type_template_id_149a856a_hoisted_8 = ["href"];
+var SiteWithoutDatavue_type_template_id_149a856a_hoisted_9 = {
class: "row",
id: "start-tracking-method-list"
};
-var SiteWithoutDatavue_type_template_id_45c4c367_hoisted_10 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
+var SiteWithoutDatavue_type_template_id_149a856a_hoisted_10 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
class: "icon-search"
}, null, -1);
-var SiteWithoutDatavue_type_template_id_45c4c367_hoisted_11 = ["href", "onClick"];
-var SiteWithoutDatavue_type_template_id_45c4c367_hoisted_12 = ["src"];
-var SiteWithoutDatavue_type_template_id_45c4c367_hoisted_13 = {
+var SiteWithoutDatavue_type_template_id_149a856a_hoisted_11 = ["href", "onClick"];
+var SiteWithoutDatavue_type_template_id_149a856a_hoisted_12 = ["src"];
+var SiteWithoutDatavue_type_template_id_149a856a_hoisted_13 = {
class: "list-entry-text"
};
-var SiteWithoutDatavue_type_template_id_45c4c367_hoisted_14 = {
+var SiteWithoutDatavue_type_template_id_149a856a_hoisted_14 = {
id: "start-tracking-skip"
};
-var SiteWithoutDatavue_type_template_id_45c4c367_hoisted_15 = ["href"];
-var SiteWithoutDatavue_type_template_id_45c4c367_hoisted_16 = {
+var SiteWithoutDatavue_type_template_id_149a856a_hoisted_15 = ["href"];
+var SiteWithoutDatavue_type_template_id_149a856a_hoisted_16 = {
key: 2,
id: "start-tracking-details"
};
-var SiteWithoutDatavue_type_template_id_45c4c367_hoisted_17 = ["src", "alt"];
-function SiteWithoutDatavue_type_template_id_45c4c367_render(_ctx, _cache, $props, $setup, $data, $options) {
+var SiteWithoutDatavue_type_template_id_149a856a_hoisted_17 = ["src", "alt"];
+function SiteWithoutDatavue_type_template_id_149a856a_render(_ctx, _cache, $props, $setup, $data, $options) {
var _component_VueEntryContainer = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("VueEntryContainer");
var _component_ActivityIndicator = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ActivityIndicator");
@@ -2157,11 +2157,11 @@ function SiteWithoutDatavue_type_template_id_45c4c367_render(_ctx, _cache, $prop
onClick: _cache[0] || (_cache[0] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withModifiers"])(function ($event) {
_ctx.showOverview();
}, ["prevent"]))
- }, [SiteWithoutDatavue_type_template_id_45c4c367_hoisted_1, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Mobile_NavigationBack')), 1)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h1", SiteWithoutDatavue_type_template_id_45c4c367_hoisted_2, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.headline), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", SiteWithoutDatavue_type_template_id_45c4c367_hoisted_3, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("a", {
+ }, [SiteWithoutDatavue_type_template_id_149a856a_hoisted_1, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Mobile_NavigationBack')), 1)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h1", SiteWithoutDatavue_type_template_id_149a856a_hoisted_2, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.headline), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", SiteWithoutDatavue_type_template_id_149a856a_hoisted_3, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("a", {
rel: "noreferrer noopener",
target: "_blank",
href: _ctx.inviteUserLink
- }, [SiteWithoutDatavue_type_template_id_45c4c367_hoisted_5, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('UsersManager_InviteTeamMember')), 1)], 8, SiteWithoutDatavue_type_template_id_45c4c367_hoisted_4), _ctx.additionalCtaContent ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_VueEntryContainer, {
+ }, [SiteWithoutDatavue_type_template_id_149a856a_hoisted_5, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('UsersManager_InviteTeamMember')), 1)], 8, SiteWithoutDatavue_type_template_id_149a856a_hoisted_4), _ctx.additionalCtaContent ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_VueEntryContainer, {
key: 0,
html: _ctx.additionalCtaContent
}, null, 8, ["html"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ActivityIndicator, {
@@ -2169,17 +2169,17 @@ function SiteWithoutDatavue_type_template_id_45c4c367_render(_ctx, _cache, $prop
loading: _ctx.loading
}, null, 8, ["loading-message", "loading"]), !_ctx.loading && !_ctx.showMethodDetails ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], {
key: 1
- }, [_ctx.recommendedMethod ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", SiteWithoutDatavue_type_template_id_45c4c367_hoisted_6, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("img", {
+ }, [_ctx.recommendedMethod ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", SiteWithoutDatavue_type_template_id_149a856a_hoisted_6, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("img", {
src: _ctx.recommendedMethod.icon,
alt: "".concat(_ctx.recommendedMethod.name, " logo")
- }, null, 8, SiteWithoutDatavue_type_template_id_45c4c367_hoisted_7), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h2", null, "Install Matomo with " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.recommendedMethod.name) + " (recommended for you)", 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("p", null, " We have detected " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.recommendedMethod.name) + " on your site, so you can set up Matomo within a few minutes with our official " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.recommendedMethod.name) + " integration. ", 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("a", {
+ }, null, 8, SiteWithoutDatavue_type_template_id_149a856a_hoisted_7), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h2", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.recommendedMethod.recommendationTitle), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("p", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.recommendedMethod.recommendationText), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("a", {
href: "#".concat(_ctx.recommendedMethod.id.toLowerCase()),
class: "btn",
id: "showMethod",
onClick: _cache[1] || (_cache[1] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withModifiers"])(function ($event) {
return _ctx.showMethod(_ctx.recommendedMethod.id);
}, ["prevent"]))
- }, " Install with " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.recommendedMethod.name), 9, SiteWithoutDatavue_type_template_id_45c4c367_hoisted_8)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", SiteWithoutDatavue_type_template_id_45c4c367_hoisted_9, [SiteWithoutDatavue_type_template_id_45c4c367_hoisted_10, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h2", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('SitesManager_SiteWithoutDataOtherInstallMethods')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("p", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('SitesManager_SiteWithoutDataOtherInstallMethodsIntro')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("ul", null, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.trackingMethods, function (method) {
+ }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.recommendedMethod.recommendationButton), 9, SiteWithoutDatavue_type_template_id_149a856a_hoisted_8)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", SiteWithoutDatavue_type_template_id_149a856a_hoisted_9, [SiteWithoutDatavue_type_template_id_149a856a_hoisted_10, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h2", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('SitesManager_SiteWithoutDataOtherInstallMethods')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("p", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('SitesManager_SiteWithoutDataOtherInstallMethodsIntro')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("ul", null, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.trackingMethods, function (method) {
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", {
class: "list-entry",
key: method.id
@@ -2192,18 +2192,18 @@ function SiteWithoutDatavue_type_template_id_45c4c367_render(_ctx, _cache, $prop
key: 0,
src: method.icon,
class: "list-entry-icon"
- }, null, 8, SiteWithoutDatavue_type_template_id_45c4c367_hoisted_12)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", SiteWithoutDatavue_type_template_id_45c4c367_hoisted_13, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(method.name), 1)], 8, SiteWithoutDatavue_type_template_id_45c4c367_hoisted_11)]);
- }), 128))])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", SiteWithoutDatavue_type_template_id_45c4c367_hoisted_14, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h2", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('SitesManager_SiteWithoutDataNotYetReady')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('SitesManager_SiteWithoutDataTemporarilyHidePage')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("a", {
+ }, null, 8, SiteWithoutDatavue_type_template_id_149a856a_hoisted_12)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", SiteWithoutDatavue_type_template_id_149a856a_hoisted_13, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(method.name), 1)], 8, SiteWithoutDatavue_type_template_id_149a856a_hoisted_11)]);
+ }), 128))])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", SiteWithoutDatavue_type_template_id_149a856a_hoisted_14, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h2", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('SitesManager_SiteWithoutDataNotYetReady')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('SitesManager_SiteWithoutDataTemporarilyHidePage')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("a", {
href: _ctx.ignoreSitesWithoutDataLink,
class: "ignoreSitesWithoutData"
- }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('SitesManager_SiteWithoutDataHidePageForHour')), 9, SiteWithoutDatavue_type_template_id_45c4c367_hoisted_15)])], 64)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.showMethodDetails ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", SiteWithoutDatavue_type_template_id_45c4c367_hoisted_16, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("img", {
+ }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('SitesManager_SiteWithoutDataHidePageForHour')), 9, SiteWithoutDatavue_type_template_id_149a856a_hoisted_15)])], 64)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.showMethodDetails ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", SiteWithoutDatavue_type_template_id_149a856a_hoisted_16, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("img", {
src: _ctx.showMethodDetails.icon,
alt: "".concat(_ctx.showMethodDetails.name, " logo")
- }, null, 8, SiteWithoutDatavue_type_template_id_45c4c367_hoisted_17), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h2", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('SitesManager_StepByStepGuide')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_VueEntryContainer, {
+ }, null, 8, SiteWithoutDatavue_type_template_id_149a856a_hoisted_17), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_VueEntryContainer, {
html: _ctx.showMethodDetails.content
}, null, 8, ["html"])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)]);
}
-// CONCATENATED MODULE: ./plugins/SitesManager/vue/src/SiteWithoutData/SiteWithoutData.vue?vue&type=template&id=45c4c367
+// CONCATENATED MODULE: ./plugins/SitesManager/vue/src/SiteWithoutData/SiteWithoutData.vue?vue&type=template&id=149a856a
// 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/SitesManager/vue/src/SiteWithoutData/SiteWithoutData.vue?vue&type=script&lang=ts
function SiteWithoutDatavue_type_script_lang_ts_slicedToArray(arr, i) { return SiteWithoutDatavue_type_script_lang_ts_arrayWithHoles(arr) || SiteWithoutDatavue_type_script_lang_ts_iterableToArrayLimit(arr, i) || SiteWithoutDatavue_type_script_lang_ts_unsupportedIterableToArray(arr, i) || SiteWithoutDatavue_type_script_lang_ts_nonIterableRest(); }
@@ -2317,7 +2317,7 @@ function SiteWithoutDatavue_type_script_lang_ts_arrayWithHoles(arr) { if (Array.
-SiteWithoutDatavue_type_script_lang_ts.render = SiteWithoutDatavue_type_template_id_45c4c367_render
+SiteWithoutDatavue_type_script_lang_ts.render = SiteWithoutDatavue_type_template_id_149a856a_render
/* harmony default export */ var SiteWithoutData = (SiteWithoutDatavue_type_script_lang_ts);
// CONCATENATED MODULE: ./plugins/SitesManager/vue/src/index.ts
diff --git a/plugins/SitesManager/vue/dist/SitesManager.umd.min.js b/plugins/SitesManager/vue/dist/SitesManager.umd.min.js
index 49ef3ae99580..da50720c2767 100644
--- a/plugins/SitesManager/vue/dist/SitesManager.umd.min.js
+++ b/plugins/SitesManager/vue/dist/SitesManager.umd.min.js
@@ -10,19 +10,19 @@
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
- */var j=function(){function e(){var t=this;p(this,e),S(this,"privateState",Object(r["reactive"])({isLoading:!1,currencies:{}})),S(this,"currencies",Object(r["computed"])((function(){return Object(r["readonly"])(t.privateState).currencies}))),S(this,"isLoading",Object(r["computed"])((function(){return Object(r["readonly"])(t.privateState).isLoading}))),S(this,"initializePromise",null)}return f(e,[{key:"init",value:function(){return this.initializePromise||(this.initializePromise=this.fetchCurrencies()),this.initializePromise}},{key:"fetchCurrencies",value:function(){var e=this;return this.privateState.isLoading=!0,l["AjaxHelper"].fetch({method:"SitesManager.getCurrencyList"}).then((function(t){e.privateState.currencies=t})).finally((function(){e.privateState.isLoading=!1}))}}]),e}(),O=new j;function v(e,t){return M(e)||V(e,t)||E(e,t)||y()}function y(){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 E(e,t){if(e){if("string"===typeof e)return N(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)?N(e,t):void 0}}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n
e.length)&&(t=e.length);for(var n=0,a=new Array(t);n1?e.translate("SitesManager_AddMeasurable"):e.translate("SitesManager_AddSite")),3),[[r["vShow"],e.hasSuperUserAccess&&e.availableTypes]]),Object(r["withDirectives"])(Object(r["createElementVNode"])("div",$,[Object(r["createElementVNode"])("input",{value:e.searchTerm,onKeydown:t[1]||(t[1]=function(t){return e.onKeydown(t)}),placeholder:e.translate("Actions_SubmenuSitesearch"),type:"text",disabled:e.siteIsBeingEdited},null,40,Y),Object(r["createElementVNode"])("div",{onClick:t[2]||(t[2]=function(t){return e.searchSite()}),title:e.translate("General_ClickToSearch"),class:"search_ico icon-search"},null,8,X)],512),[[r["vShow"],e.hasPrev||e.hasNext||e.isSearching]]),Object(r["withDirectives"])(Object(r["createElementVNode"])("div",J,[Object(r["createElementVNode"])("a",{class:"btn prev",disabled:!(e.hasPrev&&!e.isLoading&&!e.siteIsBeingEdited)||void 0,onClick:t[3]||(t[3]=function(t){return e.previousPage()})},[Object(r["createElementVNode"])("span",ee,"« "+Object(r["toDisplayString"])(e.translate("General_Previous")),1)],8,Z),Object(r["withDirectives"])(Object(r["createElementVNode"])("span",te,[Object(r["createElementVNode"])("span",null,Object(r["toDisplayString"])(e.paginationText),1)],512),[[r["vShow"],e.hasPrev||e.hasNext]]),Object(r["createElementVNode"])("a",{class:"btn next",disabled:!(e.hasNext&&!e.isLoading&&!e.siteIsBeingEdited)||void 0,onClick:t[4]||(t[4]=function(t){return e.nextPage()})},[Object(r["createElementVNode"])("span",ae,Object(r["toDisplayString"])(e.translate("General_Next"))+" »",1)],8,ne)],512),[[r["vShow"],e.hasPrev||e.hasNext]])])}var re=Object(r["defineComponent"])({props:{siteIsBeingEdited:{type:Boolean,required:!0},hasPrev:{type:Boolean,required:!0},hasNext:{type:Boolean,required:!0},offsetStart:{type:Number,required:!0},offsetEnd:{type:Number,required:!0},totalNumberOfSites:{type:Number},isLoading:{type:Boolean,required:!0},searchTerm:{type:String,required:!0},isSearching:{type:Boolean,required:!0}},emits:["add","search","prev","next","update:searchTerm"],created:function(){h.init(),this.onKeydown=Object(l["debounce"])(this.onKeydown,50)},computed:{hasSuperUserAccess:function(){return l["Matomo"].hasSuperUserAccess},availableTypes:function(){return h.types.value},paginationText:function(){var e;return e=this.isSearching?Object(l["translate"])("General_PaginationWithoutTotal","".concat(this.offsetStart),"".concat(this.offsetEnd)):Object(l["translate"])("General_Pagination","".concat(this.offsetStart),"".concat(this.offsetEnd),null===this.totalNumberOfSites?"?":"".concat(this.totalNumberOfSites))," ".concat(e," ")}},methods:{addNewEntity:function(){this.$emit("add")},searchSite:function(){this.siteIsBeingEdited||this.$emit("search")},previousPage:function(){this.$emit("prev")},nextPage:function(){this.$emit("next")},onKeydown:function(e){var t=this;setTimeout((function(){"Enter"!==e.key?t.$emit("update:searchTerm",e.target.value):t.searchSiteOnEnter(e)}))},searchSiteOnEnter:function(e){e.preventDefault(),this.searchSite()}}});re.render=ie;var le=re,oe=["idsite","type"],se={class:"card-content"},ce={key:0,class:"row"},de={class:"col m3"},ue={class:"title"},be={class:"title"},me=["target","title","href"],he={class:"col m4"},pe={class:"title"},ge={class:"title"},fe={class:"title"},Se={class:"title"},je={class:"col m4"},Oe={class:"title"},ve=Object(r["createTextVNode"])(": "),ye=["href"],Ee={key:0},Ne={class:"title"},Ve={key:1},Me={class:"title"},xe={key:2},we={class:"title"},Te={class:"col m1 text-right"},Ce=["title"],ke=Object(r["createElementVNode"])("span",{class:"icon-edit"},null,-1),De=[ke],_e=["title"],Ae=Object(r["createElementVNode"])("span",{class:"icon-delete"},null,-1),Pe=[Ae],Ge={key:1},Ue={class:"form-group row"},Le={class:"col s12 m6 input-field"},Be=["placeholder"],Ie=Object(r["createElementVNode"])("div",{class:"col s12 m6"},null,-1),ze={id:"timezoneHelpText",class:"inline-help-node"},He={key:0},Fe=Object(r["createElementVNode"])("br",null,null,-1),Re=Object(r["createElementVNode"])("br",null,null,-1),We={class:"editingSiteFooter"},Ke=["disabled","value"],qe=["disabled"];function Qe(e,t,n,a,i,l){var o,s,c,d=this,u=Object(r["resolveComponent"])("ActivityIndicator"),b=Object(r["resolveComponent"])("GroupedSettings"),m=Object(r["resolveComponent"])("Field"),h=Object(r["resolveComponent"])("PasswordConfirmation");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:Object(r["normalizeClass"])(["site card hoverable",{editingSite:!!e.editMode}]),idsite:e.theSite.idsite,type:e.theSite.type,ref:"root"},[Object(r["createElementVNode"])("div",se,[e.editMode?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",ce,[Object(r["createElementVNode"])("div",de,[Object(r["createElementVNode"])("h4",null,Object(r["toDisplayString"])(e.theSite.name),1),Object(r["createElementVNode"])("ul",null,[Object(r["createElementVNode"])("li",null,[Object(r["createElementVNode"])("span",ue,Object(r["toDisplayString"])(e.translate("General_Id"))+":",1),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.theSite.idsite),1)]),Object(r["withDirectives"])(Object(r["createElementVNode"])("li",null,[Object(r["createElementVNode"])("span",be,Object(r["toDisplayString"])(e.translate("SitesManager_Type"))+":",1),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.currentType.name),1)],512),[[r["vShow"],e.availableTypes.length>1]]),Object(r["withDirectives"])(Object(r["createElementVNode"])("li",null,[Object(r["createElementVNode"])("a",{target:e.isInternalSetupUrl?"_self":"_blank",title:e.translate("SitesManager_ShowTrackingTag"),href:e.setupUrl},Object(r["toDisplayString"])(e.translate("SitesManager_ShowTrackingTag")),9,me)],512),[[r["vShow"],e.theSite.idsite&&e.howToSetupUrl]])])]),Object(r["createElementVNode"])("div",he,[Object(r["createElementVNode"])("ul",null,[Object(r["createElementVNode"])("li",null,[Object(r["createElementVNode"])("span",pe,Object(r["toDisplayString"])(e.translate("SitesManager_Timezone"))+":",1),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.theSite.timezone_name),1)]),Object(r["createElementVNode"])("li",null,[Object(r["createElementVNode"])("span",ge,Object(r["toDisplayString"])(e.translate("SitesManager_Currency"))+":",1),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.theSite.currency_name),1)]),Object(r["withDirectives"])(Object(r["createElementVNode"])("li",null,[Object(r["createElementVNode"])("span",fe,Object(r["toDisplayString"])(e.translate("Goals_Ecommerce"))+":",1),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("General_Yes")),1)],512),[[r["vShow"],1===e.theSite.ecommerce||"1"===e.theSite.ecommerce]]),Object(r["withDirectives"])(Object(r["createElementVNode"])("li",null,[Object(r["createElementVNode"])("span",Se,Object(r["toDisplayString"])(e.translate("Actions_SubmenuSitesearch"))+":",1),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("General_Yes")),1)],512),[[r["vShow"],1===e.theSite.sitesearch||"1"===e.theSite.sitesearch]])])]),Object(r["createElementVNode"])("div",je,[Object(r["createElementVNode"])("ul",null,[Object(r["createElementVNode"])("li",null,[Object(r["createElementVNode"])("span",Oe,Object(r["toDisplayString"])(e.translate("SitesManager_Urls")),1),ve,(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(e.theSite.alias_urls,(function(t,n){return Object(r["openBlock"])(),Object(r["createElementBlock"])("span",{key:t},[Object(r["createElementVNode"])("a",{target:"_blank",rel:"noreferrer noopener",href:t},Object(r["toDisplayString"])(t)+Object(r["toDisplayString"])(n===e.theSite.alias_urls.length-1?"":", "),9,ye)])})),128))]),null!==(o=e.theSite.excluded_ips)&&void 0!==o&&o.length?(Object(r["openBlock"])(),Object(r["createElementBlock"])("li",Ee,[Object(r["createElementVNode"])("span",Ne,Object(r["toDisplayString"])(e.translate("SitesManager_ExcludedIps"))+":",1),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.theSite.excluded_ips.split(/\s*,\s*/g).join(", ")),1)])):Object(r["createCommentVNode"])("",!0),null!==(s=e.theSite.excluded_parameters)&&void 0!==s&&s.length?(Object(r["openBlock"])(),Object(r["createElementBlock"])("li",Ve,[Object(r["createElementVNode"])("span",Me,Object(r["toDisplayString"])(e.translate("SitesManager_ExcludedParameters"))+":",1),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.theSite.excluded_parameters.split(/\s*,\s*/g).join(", ")),1)])):Object(r["createCommentVNode"])("",!0),null!==(c=e.theSite.excluded_user_agents)&&void 0!==c&&c.length?(Object(r["openBlock"])(),Object(r["createElementBlock"])("li",xe,[Object(r["createElementVNode"])("span",we,Object(r["toDisplayString"])(e.translate("SitesManager_ExcludedUserAgents"))+":",1),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.theSite.excluded_user_agents.split(/\s*,\s*/g).join(", ")),1)])):Object(r["createCommentVNode"])("",!0)])]),Object(r["createElementVNode"])("div",Te,[Object(r["createElementVNode"])("ul",null,[Object(r["createElementVNode"])("li",null,[Object(r["createElementVNode"])("button",{class:"table-action",onClick:t[0]||(t[0]=function(t){return e.editSite()}),title:e.translate("General_Edit")},De,8,Ce)]),Object(r["createElementVNode"])("li",null,[Object(r["withDirectives"])(Object(r["createElementVNode"])("button",{class:"table-action",onClick:t[1]||(t[1]=function(e){return d.showRemoveDialog=!0}),title:e.translate("General_Delete")},Pe,8,_e),[[r["vShow"],e.theSite.idsite]])])])])])),e.editMode?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",Ge,[Object(r["createElementVNode"])("div",Ue,[Object(r["createElementVNode"])("div",Le,[Object(r["withDirectives"])(Object(r["createElementVNode"])("input",{type:"text","onUpdate:modelValue":t[2]||(t[2]=function(t){return e.theSite.name=t}),maxlength:"90",placeholder:e.translate("General_Name")},null,8,Be),[[r["vModelText"],e.theSite.name]]),Object(r["createElementVNode"])("label",null,Object(r["toDisplayString"])(e.translate("General_Name")),1)]),Ie]),Object(r["createVNode"])(u,{loading:e.isLoading},null,8,["loading"]),(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(e.measurableSettings,(function(t){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:t.pluginName},[Object(r["createVNode"])(b,{"group-name":t.pluginName,settings:t.settings,"all-setting-values":e.settingValues,onChange:function(n){return e.settingValues["".concat(t.pluginName,".").concat(n.name)]=n.value}},null,8,["group-name","settings","all-setting-values","onChange"])])})),128)),Object(r["createVNode"])(m,{uicontrol:"select",name:"currency",modelValue:e.theSite.currency,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.theSite.currency=t}),title:e.translate("SitesManager_Currency"),"inline-help":e.translate("SitesManager_CurrencySymbolWillBeUsedForGoals"),options:e.currencies},null,8,["modelValue","title","inline-help","options"]),Object(r["createVNode"])(m,{uicontrol:"select",name:"timezone",modelValue:e.theSite.timezone,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.theSite.timezone=t}),title:e.translate("SitesManager_Timezone"),"inline-help":"#timezoneHelpText",options:e.timezones},null,8,["modelValue","title","options"]),Object(r["createElementVNode"])("div",ze,[Object(r["createElementVNode"])("div",null,[e.timezoneSupportEnabled?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",He,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("SitesManager_AdvancedTimezoneSupportNotFound"))+" ",1),Fe])),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.utcTimeIs)+" ",1),Re,Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("SitesManager_ChangingYourTimezoneWillOnlyAffectDataForward")),1)])]),Object(r["createElementVNode"])("div",We,[Object(r["withDirectives"])(Object(r["createElementVNode"])("input",{disabled:e.isSaving,type:"submit",class:"btn",value:e.translate("General_Save"),onClick:t[5]||(t[5]=function(t){return e.saveSite()})},null,8,Ke),[[r["vShow"],!e.isLoading]]),Object(r["createElementVNode"])("button",{class:"btn btn-link",disabled:e.isSaving,onClick:t[6]||(t[6]=function(t){return e.cancelEditSite(e.site)})},Object(r["toDisplayString"])(e.translate("General_Cancel","","")),9,qe)])])):Object(r["createCommentVNode"])("",!0)]),Object(r["createVNode"])(h,{modelValue:e.showRemoveDialog,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.showRemoveDialog=t}),onConfirmed:e.deleteSite},{default:Object(r["withCtx"])((function(){return[Object(r["createElementVNode"])("h2",null,Object(r["toDisplayString"])(e.removeDialogTitle),1),Object(r["createElementVNode"])("p",null,Object(r["toDisplayString"])(e.translate("SitesManager_DeleteSiteExplanation")),1),Object(r["createElementVNode"])("p",null,Object(r["toDisplayString"])(e.translate("UsersManager_ConfirmWithPassword")),1)]})),_:1},8,["modelValue","onConfirmed"])],10,oe)}var $e=n("a5a2");function Ye(e,t){return tt(e)||et(e,t)||Je(e,t)||Xe()}function Xe(){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 Je(e,t){if(e){if("string"===typeof e)return Ze(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)?Ze(e,t):void 0}}function Ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n1?e.translate("SitesManager_AddMeasurable"):e.translate("SitesManager_AddSite")),3),[[r["vShow"],e.hasSuperUserAccess&&e.availableTypes]]),Object(r["withDirectives"])(Object(r["createElementVNode"])("div",$,[Object(r["createElementVNode"])("input",{value:e.searchTerm,onKeydown:t[1]||(t[1]=function(t){return e.onKeydown(t)}),placeholder:e.translate("Actions_SubmenuSitesearch"),type:"text",disabled:e.siteIsBeingEdited},null,40,Y),Object(r["createElementVNode"])("div",{onClick:t[2]||(t[2]=function(t){return e.searchSite()}),title:e.translate("General_ClickToSearch"),class:"search_ico icon-search"},null,8,X)],512),[[r["vShow"],e.hasPrev||e.hasNext||e.isSearching]]),Object(r["withDirectives"])(Object(r["createElementVNode"])("div",J,[Object(r["createElementVNode"])("a",{class:"btn prev",disabled:!(e.hasPrev&&!e.isLoading&&!e.siteIsBeingEdited)||void 0,onClick:t[3]||(t[3]=function(t){return e.previousPage()})},[Object(r["createElementVNode"])("span",ee,"« "+Object(r["toDisplayString"])(e.translate("General_Previous")),1)],8,Z),Object(r["withDirectives"])(Object(r["createElementVNode"])("span",te,[Object(r["createElementVNode"])("span",null,Object(r["toDisplayString"])(e.paginationText),1)],512),[[r["vShow"],e.hasPrev||e.hasNext]]),Object(r["createElementVNode"])("a",{class:"btn next",disabled:!(e.hasNext&&!e.isLoading&&!e.siteIsBeingEdited)||void 0,onClick:t[4]||(t[4]=function(t){return e.nextPage()})},[Object(r["createElementVNode"])("span",ae,Object(r["toDisplayString"])(e.translate("General_Next"))+" »",1)],8,ne)],512),[[r["vShow"],e.hasPrev||e.hasNext]])])}var re=Object(r["defineComponent"])({props:{siteIsBeingEdited:{type:Boolean,required:!0},hasPrev:{type:Boolean,required:!0},hasNext:{type:Boolean,required:!0},offsetStart:{type:Number,required:!0},offsetEnd:{type:Number,required:!0},totalNumberOfSites:{type:Number},isLoading:{type:Boolean,required:!0},searchTerm:{type:String,required:!0},isSearching:{type:Boolean,required:!0}},emits:["add","search","prev","next","update:searchTerm"],created:function(){h.init(),this.onKeydown=Object(l["debounce"])(this.onKeydown,50)},computed:{hasSuperUserAccess:function(){return l["Matomo"].hasSuperUserAccess},availableTypes:function(){return h.types.value},paginationText:function(){var e;return e=this.isSearching?Object(l["translate"])("General_PaginationWithoutTotal","".concat(this.offsetStart),"".concat(this.offsetEnd)):Object(l["translate"])("General_Pagination","".concat(this.offsetStart),"".concat(this.offsetEnd),null===this.totalNumberOfSites?"?":"".concat(this.totalNumberOfSites))," ".concat(e," ")}},methods:{addNewEntity:function(){this.$emit("add")},searchSite:function(){this.siteIsBeingEdited||this.$emit("search")},previousPage:function(){this.$emit("prev")},nextPage:function(){this.$emit("next")},onKeydown:function(e){var t=this;setTimeout((function(){"Enter"!==e.key?t.$emit("update:searchTerm",e.target.value):t.searchSiteOnEnter(e)}))},searchSiteOnEnter:function(e){e.preventDefault(),this.searchSite()}}});re.render=ie;var le=re,oe=["idsite","type"],se={class:"card-content"},ce={key:0,class:"row"},de={class:"col m3"},ue={class:"title"},be={class:"title"},me=["target","title","href"],he={class:"col m4"},pe={class:"title"},ge={class:"title"},fe={class:"title"},Se={class:"title"},je={class:"col m4"},Oe={class:"title"},ve=Object(r["createTextVNode"])(": "),ye=["href"],Ee={key:0},Ne={class:"title"},Ve={key:1},Me={class:"title"},xe={key:2},Te={class:"title"},we={class:"col m1 text-right"},Ce=["title"],ke=Object(r["createElementVNode"])("span",{class:"icon-edit"},null,-1),De=[ke],_e=["title"],Ae=Object(r["createElementVNode"])("span",{class:"icon-delete"},null,-1),Pe=[Ae],Ue={key:1},Ge={class:"form-group row"},Le={class:"col s12 m6 input-field"},Be=["placeholder"],Ie=Object(r["createElementVNode"])("div",{class:"col s12 m6"},null,-1),ze={id:"timezoneHelpText",class:"inline-help-node"},He={key:0},Fe=Object(r["createElementVNode"])("br",null,null,-1),Re=Object(r["createElementVNode"])("br",null,null,-1),We={class:"editingSiteFooter"},Ke=["disabled","value"],qe=["disabled"];function Qe(e,t,n,a,i,l){var o,s,c,d=this,u=Object(r["resolveComponent"])("ActivityIndicator"),b=Object(r["resolveComponent"])("GroupedSettings"),m=Object(r["resolveComponent"])("Field"),h=Object(r["resolveComponent"])("PasswordConfirmation");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:Object(r["normalizeClass"])(["site card hoverable",{editingSite:!!e.editMode}]),idsite:e.theSite.idsite,type:e.theSite.type,ref:"root"},[Object(r["createElementVNode"])("div",se,[e.editMode?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",ce,[Object(r["createElementVNode"])("div",de,[Object(r["createElementVNode"])("h4",null,Object(r["toDisplayString"])(e.theSite.name),1),Object(r["createElementVNode"])("ul",null,[Object(r["createElementVNode"])("li",null,[Object(r["createElementVNode"])("span",ue,Object(r["toDisplayString"])(e.translate("General_Id"))+":",1),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.theSite.idsite),1)]),Object(r["withDirectives"])(Object(r["createElementVNode"])("li",null,[Object(r["createElementVNode"])("span",be,Object(r["toDisplayString"])(e.translate("SitesManager_Type"))+":",1),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.currentType.name),1)],512),[[r["vShow"],e.availableTypes.length>1]]),Object(r["withDirectives"])(Object(r["createElementVNode"])("li",null,[Object(r["createElementVNode"])("a",{target:e.isInternalSetupUrl?"_self":"_blank",title:e.translate("SitesManager_ShowTrackingTag"),href:e.setupUrl},Object(r["toDisplayString"])(e.translate("SitesManager_ShowTrackingTag")),9,me)],512),[[r["vShow"],e.theSite.idsite&&e.howToSetupUrl]])])]),Object(r["createElementVNode"])("div",he,[Object(r["createElementVNode"])("ul",null,[Object(r["createElementVNode"])("li",null,[Object(r["createElementVNode"])("span",pe,Object(r["toDisplayString"])(e.translate("SitesManager_Timezone"))+":",1),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.theSite.timezone_name),1)]),Object(r["createElementVNode"])("li",null,[Object(r["createElementVNode"])("span",ge,Object(r["toDisplayString"])(e.translate("SitesManager_Currency"))+":",1),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.theSite.currency_name),1)]),Object(r["withDirectives"])(Object(r["createElementVNode"])("li",null,[Object(r["createElementVNode"])("span",fe,Object(r["toDisplayString"])(e.translate("Goals_Ecommerce"))+":",1),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("General_Yes")),1)],512),[[r["vShow"],1===e.theSite.ecommerce||"1"===e.theSite.ecommerce]]),Object(r["withDirectives"])(Object(r["createElementVNode"])("li",null,[Object(r["createElementVNode"])("span",Se,Object(r["toDisplayString"])(e.translate("Actions_SubmenuSitesearch"))+":",1),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("General_Yes")),1)],512),[[r["vShow"],1===e.theSite.sitesearch||"1"===e.theSite.sitesearch]])])]),Object(r["createElementVNode"])("div",je,[Object(r["createElementVNode"])("ul",null,[Object(r["createElementVNode"])("li",null,[Object(r["createElementVNode"])("span",Oe,Object(r["toDisplayString"])(e.translate("SitesManager_Urls")),1),ve,(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(e.theSite.alias_urls,(function(t,n){return Object(r["openBlock"])(),Object(r["createElementBlock"])("span",{key:t},[Object(r["createElementVNode"])("a",{target:"_blank",rel:"noreferrer noopener",href:t},Object(r["toDisplayString"])(t)+Object(r["toDisplayString"])(n===e.theSite.alias_urls.length-1?"":", "),9,ye)])})),128))]),null!==(o=e.theSite.excluded_ips)&&void 0!==o&&o.length?(Object(r["openBlock"])(),Object(r["createElementBlock"])("li",Ee,[Object(r["createElementVNode"])("span",Ne,Object(r["toDisplayString"])(e.translate("SitesManager_ExcludedIps"))+":",1),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.theSite.excluded_ips.split(/\s*,\s*/g).join(", ")),1)])):Object(r["createCommentVNode"])("",!0),null!==(s=e.theSite.excluded_parameters)&&void 0!==s&&s.length?(Object(r["openBlock"])(),Object(r["createElementBlock"])("li",Ve,[Object(r["createElementVNode"])("span",Me,Object(r["toDisplayString"])(e.translate("SitesManager_ExcludedParameters"))+":",1),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.theSite.excluded_parameters.split(/\s*,\s*/g).join(", ")),1)])):Object(r["createCommentVNode"])("",!0),null!==(c=e.theSite.excluded_user_agents)&&void 0!==c&&c.length?(Object(r["openBlock"])(),Object(r["createElementBlock"])("li",xe,[Object(r["createElementVNode"])("span",Te,Object(r["toDisplayString"])(e.translate("SitesManager_ExcludedUserAgents"))+":",1),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.theSite.excluded_user_agents.split(/\s*,\s*/g).join(", ")),1)])):Object(r["createCommentVNode"])("",!0)])]),Object(r["createElementVNode"])("div",we,[Object(r["createElementVNode"])("ul",null,[Object(r["createElementVNode"])("li",null,[Object(r["createElementVNode"])("button",{class:"table-action",onClick:t[0]||(t[0]=function(t){return e.editSite()}),title:e.translate("General_Edit")},De,8,Ce)]),Object(r["createElementVNode"])("li",null,[Object(r["withDirectives"])(Object(r["createElementVNode"])("button",{class:"table-action",onClick:t[1]||(t[1]=function(e){return d.showRemoveDialog=!0}),title:e.translate("General_Delete")},Pe,8,_e),[[r["vShow"],e.theSite.idsite]])])])])])),e.editMode?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",Ue,[Object(r["createElementVNode"])("div",Ge,[Object(r["createElementVNode"])("div",Le,[Object(r["withDirectives"])(Object(r["createElementVNode"])("input",{type:"text","onUpdate:modelValue":t[2]||(t[2]=function(t){return e.theSite.name=t}),maxlength:"90",placeholder:e.translate("General_Name")},null,8,Be),[[r["vModelText"],e.theSite.name]]),Object(r["createElementVNode"])("label",null,Object(r["toDisplayString"])(e.translate("General_Name")),1)]),Ie]),Object(r["createVNode"])(u,{loading:e.isLoading},null,8,["loading"]),(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(e.measurableSettings,(function(t){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:t.pluginName},[Object(r["createVNode"])(b,{"group-name":t.pluginName,settings:t.settings,"all-setting-values":e.settingValues,onChange:function(n){return e.settingValues["".concat(t.pluginName,".").concat(n.name)]=n.value}},null,8,["group-name","settings","all-setting-values","onChange"])])})),128)),Object(r["createVNode"])(m,{uicontrol:"select",name:"currency",modelValue:e.theSite.currency,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.theSite.currency=t}),title:e.translate("SitesManager_Currency"),"inline-help":e.translate("SitesManager_CurrencySymbolWillBeUsedForGoals"),options:e.currencies},null,8,["modelValue","title","inline-help","options"]),Object(r["createVNode"])(m,{uicontrol:"select",name:"timezone",modelValue:e.theSite.timezone,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.theSite.timezone=t}),title:e.translate("SitesManager_Timezone"),"inline-help":"#timezoneHelpText",options:e.timezones},null,8,["modelValue","title","options"]),Object(r["createElementVNode"])("div",ze,[Object(r["createElementVNode"])("div",null,[e.timezoneSupportEnabled?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",He,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("SitesManager_AdvancedTimezoneSupportNotFound"))+" ",1),Fe])),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.utcTimeIs)+" ",1),Re,Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("SitesManager_ChangingYourTimezoneWillOnlyAffectDataForward")),1)])]),Object(r["createElementVNode"])("div",We,[Object(r["withDirectives"])(Object(r["createElementVNode"])("input",{disabled:e.isSaving,type:"submit",class:"btn",value:e.translate("General_Save"),onClick:t[5]||(t[5]=function(t){return e.saveSite()})},null,8,Ke),[[r["vShow"],!e.isLoading]]),Object(r["createElementVNode"])("button",{class:"btn btn-link",disabled:e.isSaving,onClick:t[6]||(t[6]=function(t){return e.cancelEditSite(e.site)})},Object(r["toDisplayString"])(e.translate("General_Cancel","","")),9,qe)])])):Object(r["createCommentVNode"])("",!0)]),Object(r["createVNode"])(h,{modelValue:e.showRemoveDialog,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.showRemoveDialog=t}),onConfirmed:e.deleteSite},{default:Object(r["withCtx"])((function(){return[Object(r["createElementVNode"])("h2",null,Object(r["toDisplayString"])(e.removeDialogTitle),1),Object(r["createElementVNode"])("p",null,Object(r["toDisplayString"])(e.translate("SitesManager_DeleteSiteExplanation")),1),Object(r["createElementVNode"])("p",null,Object(r["toDisplayString"])(e.translate("UsersManager_ConfirmWithPassword")),1)]})),_:1},8,["modelValue","onConfirmed"])],10,oe)}var $e=n("a5a2");function Ye(e,t){return tt(e)||et(e,t)||Je(e,t)||Xe()}function Xe(){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 Je(e,t){if(e){if("string"===typeof e)return Ze(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)?Ze(e,t):void 0}}function Ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n1?Object(l["translate"])("General_Measurables"):Object(l["translate"])("SitesManager_Sites"))},mainDescription:function(){return Object(l["translate"])("SitesManager_YouCurrentlyHaveAccessToNWebsites","".concat(this.totalNumberOfSites,""))},hasSuperUserAccess:function(){return l["Matomo"].hasSuperUserAccess},superUserAccessMessage:function(){return Object(l["translate"])("SitesManager_SuperUserAccessCan","","")},hasPrev:function(){return this.currentPage>=1},hasNext:function(){return this.fetchedSites.filter((function(e){return!!e.idsite})).length>=this.pageSize+1},offsetStart:function(){return this.currentPage*this.pageSize+1},offsetEnd:function(){return this.offsetStart+this.sites.filter((function(e){return!!e.idsite})).length-1}},methods:{checkGlobalSettingsHash:function(){var e=l["MatomoUrl"].hashQuery.value;!l["Matomo"].hasSuperUserAccess||"globalSettings"!==e&&"/globalSettings"!==e||l["MatomoUrl"].updateLocation(Object.assign(Object.assign({},l["MatomoUrl"].urlParsed.value),{},{action:"globalSettings"}))},addNewEntity:function(){this.availableTypes.length>1?this.showAddSiteDialog=!0:1===this.availableTypes.length&&this.addSite(this.availableTypes[0].id)},addSite:function(e){var t=e,n={isAllowed:!0,measurableType:t};l["Matomo"].postEvent("SitesManager.initAddSite",n),n&&!n.isAllowed||(t||(t="website"),this.fetchedSites.unshift({type:t}),this.isSiteBeingEdited=!0)},afterCancelEdit:function(e){var t=e.site,n=e.element;this.isSiteBeingEdited=!1,t.idsite?n.scrollIntoView():this.fetchedSites=this.fetchedSites.filter((function(e){return!!e.idsite}))},fetchLimitedSitesWithAdminAccess:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.fetchLimitedSitesAbortController&&this.fetchLimitedSitesAbortController.abort(),this.fetchLimitedSitesAbortController=new AbortController;var n=this.pageSize+1,a=this.currentPage*this.pageSize,i={method:"SitesManager.getSitesWithAdminAccess",fetchAliasUrls:1,limit:n+a,filter_offset:a,filter_limit:n};return t&&(i.pattern=t),l["AjaxHelper"].fetch(i).then((function(t){e.fetchedSites=t||[]})).then((function(n){return e.activeSearchTerm=t,n})).finally((function(){e.fetchLimitedSitesAbortController=null}))},getTotalNumberOfSites:function(){var e=this;return l["AjaxHelper"].fetch({method:"SitesManager.getSitesIdWithAdminAccess",filter_limit:"-1"}).then((function(t){e.totalNumberOfSites=t.length}))},triggerAddSiteIfRequested:function(){var e=h.getEditSiteIdParameter(),t=l["MatomoUrl"].urlParsed.value.showaddsite;"1"===t?this.addNewEntity():e&&(this.searchTerm=e,this.fetchLimitedSitesWithAdminAccess(this.searchTerm))},previousPage:function(){this.currentPage=Math.max(0,this.currentPage-1),this.fetchLimitedSitesWithAdminAccess(this.activeSearchTerm)},nextPage:function(){this.currentPage=Math.max(0,this.currentPage+1),this.fetchLimitedSitesWithAdminAccess(this.activeSearchTerm)},searchSites:function(){this.currentPage=0,this.fetchLimitedSitesWithAdminAccess(this.searchTerm)},afterDelete:function(e){var t={showaddsite:0};if(l["MatomoUrl"].urlParsed.value.idSite==="".concat(e.idsite)){var n=this.sites.find((function(t){return t.idsite!==e.idsite}));n&&(t=Object.assign(Object.assign({},t),{},{idSite:n.idsite}))}l["Matomo"].helper.redirect(t)},afterSave:function(e,t,n,a){var i=["excluded_ips","excluded_parameters","excluded_user_agents","sitesearch_keyword_parameters","sitesearch_category_parameters"],r=Object.assign({},e);Object.values(t).forEach((function(e){e.forEach((function(e){"urls"===e.name?r.alias_urls=e.value:-1!==i.indexOf(e.name)?r[e.name]=e.value.join(", "):r[e.name]=e.value}))})),this.fetchedSites[n]=r,a&&null!==this.totalNumberOfSites&&(this.totalNumberOfSites+=1),this.isSiteBeingEdited=!1}}});bt.render=q;var mt=bt,ht={class:"SitesManager"},pt=Object(r["createElementVNode"])("a",{name:"globalSettings",id:"globalSettings"},null,-1),gt={id:"excludedIpsGlobalHelp",class:"inline-help-node"},ft=Object(r["createElementVNode"])("br",null,null,-1),St=Object(r["createElementVNode"])("br",null,null,-1),jt=["innerHTML"],Ot={id:"excludedQueryParametersGlobalHelp",class:"inline-help-node"},vt=Object(r["createElementVNode"])("br",null,null,-1),yt=Object(r["createElementVNode"])("br",null,null,-1),Et={id:"excludedUserAgentsGlobalHelp",class:"inline-help-node"},Nt=Object(r["createElementVNode"])("br",null,null,-1),Vt=Object(r["createElementVNode"])("br",null,null,-1),Mt={id:"excludedReferrersGlobalHelp",class:"inline-help-node"},xt=Object(r["createElementVNode"])("br",null,null,-1),wt=Object(r["createElementVNode"])("br",null,null,-1),Tt=Object(r["createElementVNode"])("br",null,null,-1),Ct=Object(r["createElementVNode"])("br",null,null,-1),kt=Object(r["createElementVNode"])("br",null,null,-1),Dt={id:"timezoneHelp",class:"inline-help-node"},_t={key:0},At=Object(r["createElementVNode"])("br",null,null,-1),Pt=Object(r["createElementVNode"])("br",null,null,-1),Gt={id:"keepURLFragmentsHelp",class:"inline-help-node"},Ut=["innerHTML"],Lt={class:"alert alert-info"};function Bt(e,t,n,a,i,l){var o=Object(r["resolveComponent"])("Field"),s=Object(r["resolveComponent"])("SaveButton"),c=Object(r["resolveComponent"])("ContentBlock");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",ht,[Object(r["withDirectives"])(Object(r["createVNode"])(c,{"content-title":e.translate("SitesManager_GlobalWebsitesSettings")},{default:Object(r["withCtx"])((function(){return[pt,Object(r["createElementVNode"])("div",gt,[Object(r["createElementVNode"])("div",null,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("SitesManager_HelpExcludedIpAddresses","1.2.3.4/24","1.2.3.*","1.2.*.*"))+" ",1),ft,St,Object(r["createElementVNode"])("span",{innerHTML:e.$sanitize(e.yourCurrentIpAddressIs)},null,8,jt)])]),Object(r["createElementVNode"])("div",Ot,[Object(r["createElementVNode"])("div",null,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("SitesManager_ListOfQueryParametersToExclude","/^sess.*|.*[dD]ate$/"))+" ",1),vt,yt,Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("SitesManager_PiwikWillAutomaticallyExcludeCommonSessionParameters","phpsessid, sessionid, ...")),1)])]),Object(r["createElementVNode"])("div",Et,[Object(r["createElementVNode"])("div",null,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("SitesManager_GlobalExcludedUserAgentHelp1"))+" ",1),Nt,Vt,Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("SitesManager_GlobalListExcludedUserAgents_Desc"))+" "+Object(r["toDisplayString"])(e.translate("SitesManager_GlobalExcludedUserAgentHelp2"))+" "+Object(r["toDisplayString"])(e.translate("SitesManager_GlobalExcludedUserAgentHelp3","/bot|spider|crawl|scanner/i")),1)])]),Object(r["createElementVNode"])("div",Mt,[Object(r["createElementVNode"])("div",null,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("SitesManager_ExcludedReferrersHelp"))+" ",1),xt,wt,Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("SitesManager_ExcludedReferrersHelpDetails"))+" ",1),Tt,Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("SitesManager_ExcludedReferrersHelpExamples","www.example.org","http://example.org/mypath","https://www.example.org/?param=1","https://sub.example.org/"))+" ",1),Ct,kt,Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("SitesManager_ExcludedReferrersHelpSubDomains",".sub.example.org","http://sub.example.org/mypath","https://new.sub.example.org/")),1)])]),Object(r["createElementVNode"])("div",Dt,[Object(r["createElementVNode"])("div",null,[e.timezoneSupportEnabled?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",_t,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("SitesManager_AdvancedTimezoneSupportNotFound"))+" ",1),At])),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("SitesManager_UTCTimeIs",e.utcTimeDate))+" ",1),Pt,Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("SitesManager_ChangingYourTimezoneWillOnlyAffectDataForward")),1)])]),Object(r["createElementVNode"])("div",Gt,[Object(r["createElementVNode"])("div",{innerHTML:e.$sanitize(e.keepUrlFragmentHelp)},null,8,Ut),Object(r["createElementVNode"])("div",null,Object(r["toDisplayString"])(e.translate("SitesManager_KeepURLFragmentsHelp2")),1)]),Object(r["createElementVNode"])("div",null,[Object(r["createVNode"])(o,{uicontrol:"textarea",name:"excludedIpsGlobal","var-type":"array",modelValue:e.excludedIpsGlobal,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.excludedIpsGlobal=t}),title:e.translate("SitesManager_ListOfIpsToBeExcludedOnAllWebsites"),introduction:e.translate("SitesManager_GlobalListExcludedIps"),"inline-help":"#excludedIpsGlobalHelp",disabled:e.isLoading},null,8,["modelValue","title","introduction","disabled"])]),Object(r["createElementVNode"])("div",null,[Object(r["createVNode"])(o,{uicontrol:"textarea",name:"excludedQueryParametersGlobal","var-type":"array",modelValue:e.excludedQueryParametersGlobal,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.excludedQueryParametersGlobal=t}),title:e.translate("SitesManager_ListOfQueryParametersToBeExcludedOnAllWebsites"),introduction:e.translate("SitesManager_GlobalListExcludedQueryParameters"),"inline-help":"#excludedQueryParametersGlobalHelp",disabled:e.isLoading},null,8,["modelValue","title","introduction","disabled"])]),Object(r["createElementVNode"])("div",null,[Object(r["createVNode"])(o,{uicontrol:"textarea",name:"excludedUserAgentsGlobal","var-type":"array",modelValue:e.excludedUserAgentsGlobal,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.excludedUserAgentsGlobal=t}),title:e.translate("SitesManager_GlobalListExcludedUserAgents_Desc"),introduction:e.translate("SitesManager_GlobalListExcludedUserAgents"),"inline-help":"#excludedUserAgentsGlobalHelp",disabled:e.isLoading},null,8,["modelValue","title","introduction","disabled"])]),Object(r["createElementVNode"])("div",null,[Object(r["createVNode"])(o,{uicontrol:"textarea",name:"excludedReferrersGlobal","var-type":"array",modelValue:e.excludedReferrersGlobal,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.excludedReferrersGlobal=t}),title:e.translate("SitesManager_GlobalListExcludedReferrersDesc"),introduction:e.translate("SitesManager_GlobalListExcludedReferrers"),"inline-help":"#excludedReferrersGlobalHelp",disabled:e.isLoading},null,8,["modelValue","title","introduction","disabled"])]),Object(r["createElementVNode"])("div",null,[Object(r["createVNode"])(o,{uicontrol:"checkbox",name:"keepURLFragmentsGlobal",modelValue:e.keepURLFragmentsGlobal,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.keepURLFragmentsGlobal=t}),title:e.translate("SitesManager_KeepURLFragmentsLong"),introduction:e.translate("SitesManager_KeepURLFragments"),"inline-help":"#keepURLFragmentsHelp",disabled:e.isLoading},null,8,["modelValue","title","introduction","disabled"])]),Object(r["createElementVNode"])("h3",null,Object(r["toDisplayString"])(e.translate("SitesManager_TrackingSiteSearch")),1),Object(r["createElementVNode"])("p",null,Object(r["toDisplayString"])(e.translate("SitesManager_SiteSearchUse")),1),Object(r["createElementVNode"])("div",Lt,Object(r["toDisplayString"])(e.translate("SitesManager_SearchParametersNote"))+" "+Object(r["toDisplayString"])(e.translate("SitesManager_SearchParametersNote2")),1),Object(r["createElementVNode"])("div",null,[Object(r["createVNode"])(o,{uicontrol:"text",name:"searchKeywordParametersGlobal","var-type":"array",modelValue:e.searchKeywordParametersGlobal,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.searchKeywordParametersGlobal=t}),title:e.translate("SitesManager_SearchKeywordLabel"),"inline-help":e.translate("SitesManager_SearchKeywordParametersDesc"),disabled:e.isLoading},null,8,["modelValue","title","inline-help","disabled"])]),Object(r["createElementVNode"])("div",null,[Object(r["createVNode"])(o,{uicontrol:"text",name:"searchCategoryParametersGlobal","var-type":"array",modelValue:e.searchCategoryParametersGlobal,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.searchCategoryParametersGlobal=t}),title:e.translate("SitesManager_SearchCategoryLabel"),"inline-help":e.searchCategoryParamsInlineHelp,disabled:e.isLoading},null,8,["modelValue","title","inline-help","disabled"])]),Object(r["createElementVNode"])("div",null,[Object(r["createVNode"])(o,{uicontrol:"select",name:"defaultTimezone",options:e.timezoneOptions,title:e.translate("SitesManager_SelectDefaultTimezone"),introduction:e.translate("SitesManager_DefaultTimezoneForNewWebsites"),"inline-help":"#timezoneHelp",disabled:e.isLoading,modelValue:e.defaultTimezone,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.defaultTimezone=t})},null,8,["options","title","introduction","disabled","modelValue"])]),Object(r["createElementVNode"])("div",null,[Object(r["createVNode"])(o,{uicontrol:"select",name:"defaultCurrency",modelValue:e.defaultCurrency,"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.defaultCurrency=t}),options:e.currencies,title:e.translate("SitesManager_SelectDefaultCurrency"),introduction:e.translate("SitesManager_DefaultCurrencyForNewWebsites"),"inline-help":e.translate("SitesManager_CurrencySymbolWillBeUsedForGoals"),disabled:e.isLoading},null,8,["modelValue","options","title","introduction","inline-help","disabled"])]),Object(r["createVNode"])(s,{saving:e.isSaving,onConfirm:t[9]||(t[9]=function(t){return e.saveGlobalSettings()})},null,8,["saving"])]})),_:1},8,["content-title"]),[[r["vShow"],e.hasSuperUserAccess]])])}var It=Object(r["defineComponent"])({props:{dummy:String},components:{ContentBlock:l["ContentBlock"],Field:$e["Field"],SaveButton:$e["SaveButton"]},data:function(){var e=new Date,t=new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()),n=ut.globalSettings.value;return{currentIpAddress:null,utcTime:t,keepURLFragmentsGlobal:n.keepURLFragmentsGlobal,defaultTimezone:n.defaultTimezone,defaultCurrency:n.defaultCurrency,excludedIpsGlobal:(n.excludedIpsGlobal||"").split(","),excludedQueryParametersGlobal:(n.excludedQueryParametersGlobal||"").split(","),excludedUserAgentsGlobal:(n.excludedUserAgentsGlobal||"").split(","),excludedReferrersGlobal:(n.excludedReferrersGlobal||"").split(","),searchKeywordParametersGlobal:(n.searchKeywordParametersGlobal||"").split(","),searchCategoryParametersGlobal:(n.searchCategoryParametersGlobal||"").split(","),isSaving:!1}},created:function(){var e=this;O.init(),D.init(),ut.init(),Object(r["watch"])((function(){return ut.globalSettings.value}),(function(t){e.keepURLFragmentsGlobal=t.keepURLFragmentsGlobal,e.defaultTimezone=t.defaultTimezone,e.defaultCurrency=t.defaultCurrency,e.excludedIpsGlobal=(t.excludedIpsGlobal||"").split(","),e.excludedQueryParametersGlobal=(t.excludedQueryParametersGlobal||"").split(","),e.excludedUserAgentsGlobal=(t.excludedUserAgentsGlobal||"").split(","),e.excludedReferrersGlobal=(t.excludedReferrersGlobal||"").split(","),e.searchKeywordParametersGlobal=(t.searchKeywordParametersGlobal||"").split(","),e.searchCategoryParametersGlobal=(t.searchCategoryParametersGlobal||"").split(",")})),l["AjaxHelper"].fetch({method:"API.getIpFromHeader"}).then((function(t){e.currentIpAddress=t.value}))},methods:{saveGlobalSettings:function(){var e=this;this.isSaving=!0,ut.saveGlobalSettings({keepURLFragments:this.keepURLFragmentsGlobal,currency:this.defaultCurrency,timezone:this.defaultTimezone,excludedIps:this.excludedIpsGlobal.join(","),excludedQueryParameters:this.excludedQueryParametersGlobal.join(","),excludedUserAgents:this.excludedUserAgentsGlobal.join(","),excludedReferrers:this.excludedReferrersGlobal.join(","),searchKeywordParameters:this.searchKeywordParametersGlobal.join(","),searchCategoryParameters:this.searchCategoryParametersGlobal.join(",")}).then((function(){l["Matomo"].helper.redirect({showaddsite:!1})})).finally((function(){e.isSaving=!1}))}},computed:{isLoading:function(){return ut.isLoading.value||D.isLoading.value||O.isLoading.value},timezones:function(){return D.timezones.value},timezoneOptions:function(){return this.timezones.map((function(e){var t=e.group,n=e.label,a=e.code;return{group:t,key:n,value:a}}))},currencies:function(){return O.currencies.value},hasSuperUserAccess:function(){return l["Matomo"].hasSuperUserAccess},yourCurrentIpAddressIs:function(){return Object(l["translate"])("SitesManager_YourCurrentIpAddressIs","".concat(this.currentIpAddress,""))},timezoneSupportEnabled:function(){return D.timezoneSupportEnabled.value},utcTimeDate:function(){var e=this.utcTime,t=function(e){return e.toString().padStart(2,"0")},n=t(e.getHours()),a=t(e.getMinutes()),i=t(e.getSeconds());return"".concat(Object(l["format"])(this.utcTime)," ").concat(n,":").concat(a,":").concat(i)},keepUrlFragmentHelp:function(){return Object(l["translate"])("SitesManager_KeepURLFragmentsHelp","#","example.org/index.html#first_section","example.org/index.html")},searchCategoryParamsInlineHelp:function(){var e=[Object(l["translate"])("Goals_Optional"),Object(l["translate"])("SitesManager_SearchCategoryDesc"),Object(l["translate"])("SitesManager_SearchCategoryParametersDesc")];return e.join(" ")}}});It.render=Bt;var zt=It,Ht=Object(r["createElementVNode"])("span",{class:"icon-chevron-left"},null,-1),Ft={id:"start-tracking-data-header"},Rt={id:"start-tracking-cta"},Wt=["href"],Kt=Object(r["createElementVNode"])("span",{class:"icon-user-add"},null,-1),qt={key:0,class:"row",id:"start-tracking-detection"},Qt=["src","alt"],$t=["href"],Yt={class:"row",id:"start-tracking-method-list"},Xt=Object(r["createElementVNode"])("span",{class:"icon-search"},null,-1),Jt=["href","onClick"],Zt=["src"],en={class:"list-entry-text"},tn={id:"start-tracking-skip"},nn=["href"],an={key:2,id:"start-tracking-details"},rn=["src","alt"];function ln(e,t,n,a,i,l){var o=Object(r["resolveComponent"])("VueEntryContainer"),s=Object(r["resolveComponent"])("ActivityIndicator");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",null,[e.showMethodDetails?(Object(r["openBlock"])(),Object(r["createElementBlock"])("a",{key:0,id:"start-tracking-back",onClick:t[0]||(t[0]=Object(r["withModifiers"])((function(t){e.showOverview()}),["prevent"]))},[Ht,Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("Mobile_NavigationBack")),1)])):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("h1",Ft,Object(r["toDisplayString"])(e.headline),1),Object(r["createElementVNode"])("div",Rt,[Object(r["createElementVNode"])("a",{rel:"noreferrer noopener",target:"_blank",href:e.inviteUserLink},[Kt,Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("UsersManager_InviteTeamMember")),1)],8,Wt),e.additionalCtaContent?(Object(r["openBlock"])(),Object(r["createBlock"])(o,{key:0,html:e.additionalCtaContent},null,8,["html"])):Object(r["createCommentVNode"])("",!0)]),Object(r["createVNode"])(s,{"loading-message":"".concat(e.translate("SitesManager_DetectingYourSite"),"…"),loading:e.loading},null,8,["loading-message","loading"]),e.loading||e.showMethodDetails?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[e.recommendedMethod?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",qt,[Object(r["createElementVNode"])("img",{src:e.recommendedMethod.icon,alt:"".concat(e.recommendedMethod.name," logo")},null,8,Qt),Object(r["createElementVNode"])("h2",null,"Install Matomo with "+Object(r["toDisplayString"])(e.recommendedMethod.name)+" (recommended for you)",1),Object(r["createElementVNode"])("p",null," We have detected "+Object(r["toDisplayString"])(e.recommendedMethod.name)+" on your site, so you can set up Matomo within a few minutes with our official "+Object(r["toDisplayString"])(e.recommendedMethod.name)+" integration. ",1),Object(r["createElementVNode"])("a",{href:"#".concat(e.recommendedMethod.id.toLowerCase()),class:"btn",id:"showMethod",onClick:t[1]||(t[1]=Object(r["withModifiers"])((function(t){return e.showMethod(e.recommendedMethod.id)}),["prevent"]))}," Install with "+Object(r["toDisplayString"])(e.recommendedMethod.name),9,$t)])):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("div",Yt,[Xt,Object(r["createElementVNode"])("h2",null,Object(r["toDisplayString"])(e.translate("SitesManager_SiteWithoutDataOtherInstallMethods")),1),Object(r["createElementVNode"])("p",null,Object(r["toDisplayString"])(e.translate("SitesManager_SiteWithoutDataOtherInstallMethodsIntro")),1),Object(r["createElementVNode"])("ul",null,[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(e.trackingMethods,(function(t){return Object(r["openBlock"])(),Object(r["createElementBlock"])("li",{class:"list-entry",key:t.id},[Object(r["createElementVNode"])("a",{href:"#".concat(t.id.toLowerCase()),onClick:Object(r["withModifiers"])((function(n){return e.showMethod(t.id)}),["prevent"])},[t.icon?(Object(r["openBlock"])(),Object(r["createElementBlock"])("img",{key:0,src:t.icon,class:"list-entry-icon"},null,8,Zt)):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("span",en,Object(r["toDisplayString"])(t.name),1)],8,Jt)])})),128))])]),Object(r["createElementVNode"])("div",tn,[Object(r["createElementVNode"])("h2",null,Object(r["toDisplayString"])(e.translate("SitesManager_SiteWithoutDataNotYetReady")),1),Object(r["createElementVNode"])("div",null,Object(r["toDisplayString"])(e.translate("SitesManager_SiteWithoutDataTemporarilyHidePage")),1),Object(r["createElementVNode"])("a",{href:e.ignoreSitesWithoutDataLink,class:"ignoreSitesWithoutData"},Object(r["toDisplayString"])(e.translate("SitesManager_SiteWithoutDataHidePageForHour")),9,nn)])],64)),e.showMethodDetails?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",an,[Object(r["createElementVNode"])("img",{src:e.showMethodDetails.icon,alt:"".concat(e.showMethodDetails.name," logo")},null,8,rn),Object(r["createElementVNode"])("h2",null,Object(r["toDisplayString"])(e.translate("SitesManager_StepByStepGuide")),1),Object(r["createVNode"])(o,{html:e.showMethodDetails.content},null,8,["html"])])):Object(r["createCommentVNode"])("",!0)])}function on(e,t){return bn(e)||un(e,t)||cn(e,t)||sn()}function sn(){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 cn(e,t){if(e){if("string"===typeof e)return dn(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)?dn(e,t):void 0}}function dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n1?Object(l["translate"])("General_Measurables"):Object(l["translate"])("SitesManager_Sites"))},mainDescription:function(){return Object(l["translate"])("SitesManager_YouCurrentlyHaveAccessToNWebsites","".concat(this.totalNumberOfSites,""))},hasSuperUserAccess:function(){return l["Matomo"].hasSuperUserAccess},superUserAccessMessage:function(){return Object(l["translate"])("SitesManager_SuperUserAccessCan","","")},hasPrev:function(){return this.currentPage>=1},hasNext:function(){return this.fetchedSites.filter((function(e){return!!e.idsite})).length>=this.pageSize+1},offsetStart:function(){return this.currentPage*this.pageSize+1},offsetEnd:function(){return this.offsetStart+this.sites.filter((function(e){return!!e.idsite})).length-1}},methods:{checkGlobalSettingsHash:function(){var e=l["MatomoUrl"].hashQuery.value;!l["Matomo"].hasSuperUserAccess||"globalSettings"!==e&&"/globalSettings"!==e||l["MatomoUrl"].updateLocation(Object.assign(Object.assign({},l["MatomoUrl"].urlParsed.value),{},{action:"globalSettings"}))},addNewEntity:function(){this.availableTypes.length>1?this.showAddSiteDialog=!0:1===this.availableTypes.length&&this.addSite(this.availableTypes[0].id)},addSite:function(e){var t=e,n={isAllowed:!0,measurableType:t};l["Matomo"].postEvent("SitesManager.initAddSite",n),n&&!n.isAllowed||(t||(t="website"),this.fetchedSites.unshift({type:t}),this.isSiteBeingEdited=!0)},afterCancelEdit:function(e){var t=e.site,n=e.element;this.isSiteBeingEdited=!1,t.idsite?n.scrollIntoView():this.fetchedSites=this.fetchedSites.filter((function(e){return!!e.idsite}))},fetchLimitedSitesWithAdminAccess:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.fetchLimitedSitesAbortController&&this.fetchLimitedSitesAbortController.abort(),this.fetchLimitedSitesAbortController=new AbortController;var n=this.pageSize+1,a=this.currentPage*this.pageSize,i={method:"SitesManager.getSitesWithAdminAccess",fetchAliasUrls:1,limit:n+a,filter_offset:a,filter_limit:n};return t&&(i.pattern=t),l["AjaxHelper"].fetch(i).then((function(t){e.fetchedSites=t||[]})).then((function(n){return e.activeSearchTerm=t,n})).finally((function(){e.fetchLimitedSitesAbortController=null}))},getTotalNumberOfSites:function(){var e=this;return l["AjaxHelper"].fetch({method:"SitesManager.getSitesIdWithAdminAccess",filter_limit:"-1"}).then((function(t){e.totalNumberOfSites=t.length}))},triggerAddSiteIfRequested:function(){var e=h.getEditSiteIdParameter(),t=l["MatomoUrl"].urlParsed.value.showaddsite;"1"===t?this.addNewEntity():e&&(this.searchTerm=e,this.fetchLimitedSitesWithAdminAccess(this.searchTerm))},previousPage:function(){this.currentPage=Math.max(0,this.currentPage-1),this.fetchLimitedSitesWithAdminAccess(this.activeSearchTerm)},nextPage:function(){this.currentPage=Math.max(0,this.currentPage+1),this.fetchLimitedSitesWithAdminAccess(this.activeSearchTerm)},searchSites:function(){this.currentPage=0,this.fetchLimitedSitesWithAdminAccess(this.searchTerm)},afterDelete:function(e){var t={showaddsite:0};if(l["MatomoUrl"].urlParsed.value.idSite==="".concat(e.idsite)){var n=this.sites.find((function(t){return t.idsite!==e.idsite}));n&&(t=Object.assign(Object.assign({},t),{},{idSite:n.idsite}))}l["Matomo"].helper.redirect(t)},afterSave:function(e,t,n,a){var i=["excluded_ips","excluded_parameters","excluded_user_agents","sitesearch_keyword_parameters","sitesearch_category_parameters"],r=Object.assign({},e);Object.values(t).forEach((function(e){e.forEach((function(e){"urls"===e.name?r.alias_urls=e.value:-1!==i.indexOf(e.name)?r[e.name]=e.value.join(", "):r[e.name]=e.value}))})),this.fetchedSites[n]=r,a&&null!==this.totalNumberOfSites&&(this.totalNumberOfSites+=1),this.isSiteBeingEdited=!1}}});bt.render=q;var mt=bt,ht={class:"SitesManager"},pt=Object(r["createElementVNode"])("a",{name:"globalSettings",id:"globalSettings"},null,-1),gt={id:"excludedIpsGlobalHelp",class:"inline-help-node"},ft=Object(r["createElementVNode"])("br",null,null,-1),St=Object(r["createElementVNode"])("br",null,null,-1),jt=["innerHTML"],Ot={id:"excludedQueryParametersGlobalHelp",class:"inline-help-node"},vt=Object(r["createElementVNode"])("br",null,null,-1),yt=Object(r["createElementVNode"])("br",null,null,-1),Et={id:"excludedUserAgentsGlobalHelp",class:"inline-help-node"},Nt=Object(r["createElementVNode"])("br",null,null,-1),Vt=Object(r["createElementVNode"])("br",null,null,-1),Mt={id:"excludedReferrersGlobalHelp",class:"inline-help-node"},xt=Object(r["createElementVNode"])("br",null,null,-1),Tt=Object(r["createElementVNode"])("br",null,null,-1),wt=Object(r["createElementVNode"])("br",null,null,-1),Ct=Object(r["createElementVNode"])("br",null,null,-1),kt=Object(r["createElementVNode"])("br",null,null,-1),Dt={id:"timezoneHelp",class:"inline-help-node"},_t={key:0},At=Object(r["createElementVNode"])("br",null,null,-1),Pt=Object(r["createElementVNode"])("br",null,null,-1),Ut={id:"keepURLFragmentsHelp",class:"inline-help-node"},Gt=["innerHTML"],Lt={class:"alert alert-info"};function Bt(e,t,n,a,i,l){var o=Object(r["resolveComponent"])("Field"),s=Object(r["resolveComponent"])("SaveButton"),c=Object(r["resolveComponent"])("ContentBlock");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",ht,[Object(r["withDirectives"])(Object(r["createVNode"])(c,{"content-title":e.translate("SitesManager_GlobalWebsitesSettings")},{default:Object(r["withCtx"])((function(){return[pt,Object(r["createElementVNode"])("div",gt,[Object(r["createElementVNode"])("div",null,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("SitesManager_HelpExcludedIpAddresses","1.2.3.4/24","1.2.3.*","1.2.*.*"))+" ",1),ft,St,Object(r["createElementVNode"])("span",{innerHTML:e.$sanitize(e.yourCurrentIpAddressIs)},null,8,jt)])]),Object(r["createElementVNode"])("div",Ot,[Object(r["createElementVNode"])("div",null,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("SitesManager_ListOfQueryParametersToExclude","/^sess.*|.*[dD]ate$/"))+" ",1),vt,yt,Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("SitesManager_PiwikWillAutomaticallyExcludeCommonSessionParameters","phpsessid, sessionid, ...")),1)])]),Object(r["createElementVNode"])("div",Et,[Object(r["createElementVNode"])("div",null,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("SitesManager_GlobalExcludedUserAgentHelp1"))+" ",1),Nt,Vt,Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("SitesManager_GlobalListExcludedUserAgents_Desc"))+" "+Object(r["toDisplayString"])(e.translate("SitesManager_GlobalExcludedUserAgentHelp2"))+" "+Object(r["toDisplayString"])(e.translate("SitesManager_GlobalExcludedUserAgentHelp3","/bot|spider|crawl|scanner/i")),1)])]),Object(r["createElementVNode"])("div",Mt,[Object(r["createElementVNode"])("div",null,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("SitesManager_ExcludedReferrersHelp"))+" ",1),xt,Tt,Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("SitesManager_ExcludedReferrersHelpDetails"))+" ",1),wt,Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("SitesManager_ExcludedReferrersHelpExamples","www.example.org","http://example.org/mypath","https://www.example.org/?param=1","https://sub.example.org/"))+" ",1),Ct,kt,Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("SitesManager_ExcludedReferrersHelpSubDomains",".sub.example.org","http://sub.example.org/mypath","https://new.sub.example.org/")),1)])]),Object(r["createElementVNode"])("div",Dt,[Object(r["createElementVNode"])("div",null,[e.timezoneSupportEnabled?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",_t,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("SitesManager_AdvancedTimezoneSupportNotFound"))+" ",1),At])),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("SitesManager_UTCTimeIs",e.utcTimeDate))+" ",1),Pt,Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("SitesManager_ChangingYourTimezoneWillOnlyAffectDataForward")),1)])]),Object(r["createElementVNode"])("div",Ut,[Object(r["createElementVNode"])("div",{innerHTML:e.$sanitize(e.keepUrlFragmentHelp)},null,8,Gt),Object(r["createElementVNode"])("div",null,Object(r["toDisplayString"])(e.translate("SitesManager_KeepURLFragmentsHelp2")),1)]),Object(r["createElementVNode"])("div",null,[Object(r["createVNode"])(o,{uicontrol:"textarea",name:"excludedIpsGlobal","var-type":"array",modelValue:e.excludedIpsGlobal,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.excludedIpsGlobal=t}),title:e.translate("SitesManager_ListOfIpsToBeExcludedOnAllWebsites"),introduction:e.translate("SitesManager_GlobalListExcludedIps"),"inline-help":"#excludedIpsGlobalHelp",disabled:e.isLoading},null,8,["modelValue","title","introduction","disabled"])]),Object(r["createElementVNode"])("div",null,[Object(r["createVNode"])(o,{uicontrol:"textarea",name:"excludedQueryParametersGlobal","var-type":"array",modelValue:e.excludedQueryParametersGlobal,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.excludedQueryParametersGlobal=t}),title:e.translate("SitesManager_ListOfQueryParametersToBeExcludedOnAllWebsites"),introduction:e.translate("SitesManager_GlobalListExcludedQueryParameters"),"inline-help":"#excludedQueryParametersGlobalHelp",disabled:e.isLoading},null,8,["modelValue","title","introduction","disabled"])]),Object(r["createElementVNode"])("div",null,[Object(r["createVNode"])(o,{uicontrol:"textarea",name:"excludedUserAgentsGlobal","var-type":"array",modelValue:e.excludedUserAgentsGlobal,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.excludedUserAgentsGlobal=t}),title:e.translate("SitesManager_GlobalListExcludedUserAgents_Desc"),introduction:e.translate("SitesManager_GlobalListExcludedUserAgents"),"inline-help":"#excludedUserAgentsGlobalHelp",disabled:e.isLoading},null,8,["modelValue","title","introduction","disabled"])]),Object(r["createElementVNode"])("div",null,[Object(r["createVNode"])(o,{uicontrol:"textarea",name:"excludedReferrersGlobal","var-type":"array",modelValue:e.excludedReferrersGlobal,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.excludedReferrersGlobal=t}),title:e.translate("SitesManager_GlobalListExcludedReferrersDesc"),introduction:e.translate("SitesManager_GlobalListExcludedReferrers"),"inline-help":"#excludedReferrersGlobalHelp",disabled:e.isLoading},null,8,["modelValue","title","introduction","disabled"])]),Object(r["createElementVNode"])("div",null,[Object(r["createVNode"])(o,{uicontrol:"checkbox",name:"keepURLFragmentsGlobal",modelValue:e.keepURLFragmentsGlobal,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.keepURLFragmentsGlobal=t}),title:e.translate("SitesManager_KeepURLFragmentsLong"),introduction:e.translate("SitesManager_KeepURLFragments"),"inline-help":"#keepURLFragmentsHelp",disabled:e.isLoading},null,8,["modelValue","title","introduction","disabled"])]),Object(r["createElementVNode"])("h3",null,Object(r["toDisplayString"])(e.translate("SitesManager_TrackingSiteSearch")),1),Object(r["createElementVNode"])("p",null,Object(r["toDisplayString"])(e.translate("SitesManager_SiteSearchUse")),1),Object(r["createElementVNode"])("div",Lt,Object(r["toDisplayString"])(e.translate("SitesManager_SearchParametersNote"))+" "+Object(r["toDisplayString"])(e.translate("SitesManager_SearchParametersNote2")),1),Object(r["createElementVNode"])("div",null,[Object(r["createVNode"])(o,{uicontrol:"text",name:"searchKeywordParametersGlobal","var-type":"array",modelValue:e.searchKeywordParametersGlobal,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.searchKeywordParametersGlobal=t}),title:e.translate("SitesManager_SearchKeywordLabel"),"inline-help":e.translate("SitesManager_SearchKeywordParametersDesc"),disabled:e.isLoading},null,8,["modelValue","title","inline-help","disabled"])]),Object(r["createElementVNode"])("div",null,[Object(r["createVNode"])(o,{uicontrol:"text",name:"searchCategoryParametersGlobal","var-type":"array",modelValue:e.searchCategoryParametersGlobal,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.searchCategoryParametersGlobal=t}),title:e.translate("SitesManager_SearchCategoryLabel"),"inline-help":e.searchCategoryParamsInlineHelp,disabled:e.isLoading},null,8,["modelValue","title","inline-help","disabled"])]),Object(r["createElementVNode"])("div",null,[Object(r["createVNode"])(o,{uicontrol:"select",name:"defaultTimezone",options:e.timezoneOptions,title:e.translate("SitesManager_SelectDefaultTimezone"),introduction:e.translate("SitesManager_DefaultTimezoneForNewWebsites"),"inline-help":"#timezoneHelp",disabled:e.isLoading,modelValue:e.defaultTimezone,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.defaultTimezone=t})},null,8,["options","title","introduction","disabled","modelValue"])]),Object(r["createElementVNode"])("div",null,[Object(r["createVNode"])(o,{uicontrol:"select",name:"defaultCurrency",modelValue:e.defaultCurrency,"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.defaultCurrency=t}),options:e.currencies,title:e.translate("SitesManager_SelectDefaultCurrency"),introduction:e.translate("SitesManager_DefaultCurrencyForNewWebsites"),"inline-help":e.translate("SitesManager_CurrencySymbolWillBeUsedForGoals"),disabled:e.isLoading},null,8,["modelValue","options","title","introduction","inline-help","disabled"])]),Object(r["createVNode"])(s,{saving:e.isSaving,onConfirm:t[9]||(t[9]=function(t){return e.saveGlobalSettings()})},null,8,["saving"])]})),_:1},8,["content-title"]),[[r["vShow"],e.hasSuperUserAccess]])])}var It=Object(r["defineComponent"])({props:{dummy:String},components:{ContentBlock:l["ContentBlock"],Field:$e["Field"],SaveButton:$e["SaveButton"]},data:function(){var e=new Date,t=new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()),n=ut.globalSettings.value;return{currentIpAddress:null,utcTime:t,keepURLFragmentsGlobal:n.keepURLFragmentsGlobal,defaultTimezone:n.defaultTimezone,defaultCurrency:n.defaultCurrency,excludedIpsGlobal:(n.excludedIpsGlobal||"").split(","),excludedQueryParametersGlobal:(n.excludedQueryParametersGlobal||"").split(","),excludedUserAgentsGlobal:(n.excludedUserAgentsGlobal||"").split(","),excludedReferrersGlobal:(n.excludedReferrersGlobal||"").split(","),searchKeywordParametersGlobal:(n.searchKeywordParametersGlobal||"").split(","),searchCategoryParametersGlobal:(n.searchCategoryParametersGlobal||"").split(","),isSaving:!1}},created:function(){var e=this;O.init(),D.init(),ut.init(),Object(r["watch"])((function(){return ut.globalSettings.value}),(function(t){e.keepURLFragmentsGlobal=t.keepURLFragmentsGlobal,e.defaultTimezone=t.defaultTimezone,e.defaultCurrency=t.defaultCurrency,e.excludedIpsGlobal=(t.excludedIpsGlobal||"").split(","),e.excludedQueryParametersGlobal=(t.excludedQueryParametersGlobal||"").split(","),e.excludedUserAgentsGlobal=(t.excludedUserAgentsGlobal||"").split(","),e.excludedReferrersGlobal=(t.excludedReferrersGlobal||"").split(","),e.searchKeywordParametersGlobal=(t.searchKeywordParametersGlobal||"").split(","),e.searchCategoryParametersGlobal=(t.searchCategoryParametersGlobal||"").split(",")})),l["AjaxHelper"].fetch({method:"API.getIpFromHeader"}).then((function(t){e.currentIpAddress=t.value}))},methods:{saveGlobalSettings:function(){var e=this;this.isSaving=!0,ut.saveGlobalSettings({keepURLFragments:this.keepURLFragmentsGlobal,currency:this.defaultCurrency,timezone:this.defaultTimezone,excludedIps:this.excludedIpsGlobal.join(","),excludedQueryParameters:this.excludedQueryParametersGlobal.join(","),excludedUserAgents:this.excludedUserAgentsGlobal.join(","),excludedReferrers:this.excludedReferrersGlobal.join(","),searchKeywordParameters:this.searchKeywordParametersGlobal.join(","),searchCategoryParameters:this.searchCategoryParametersGlobal.join(",")}).then((function(){l["Matomo"].helper.redirect({showaddsite:!1})})).finally((function(){e.isSaving=!1}))}},computed:{isLoading:function(){return ut.isLoading.value||D.isLoading.value||O.isLoading.value},timezones:function(){return D.timezones.value},timezoneOptions:function(){return this.timezones.map((function(e){var t=e.group,n=e.label,a=e.code;return{group:t,key:n,value:a}}))},currencies:function(){return O.currencies.value},hasSuperUserAccess:function(){return l["Matomo"].hasSuperUserAccess},yourCurrentIpAddressIs:function(){return Object(l["translate"])("SitesManager_YourCurrentIpAddressIs","".concat(this.currentIpAddress,""))},timezoneSupportEnabled:function(){return D.timezoneSupportEnabled.value},utcTimeDate:function(){var e=this.utcTime,t=function(e){return e.toString().padStart(2,"0")},n=t(e.getHours()),a=t(e.getMinutes()),i=t(e.getSeconds());return"".concat(Object(l["format"])(this.utcTime)," ").concat(n,":").concat(a,":").concat(i)},keepUrlFragmentHelp:function(){return Object(l["translate"])("SitesManager_KeepURLFragmentsHelp","#","example.org/index.html#first_section","example.org/index.html")},searchCategoryParamsInlineHelp:function(){var e=[Object(l["translate"])("Goals_Optional"),Object(l["translate"])("SitesManager_SearchCategoryDesc"),Object(l["translate"])("SitesManager_SearchCategoryParametersDesc")];return e.join(" ")}}});It.render=Bt;var zt=It,Ht=Object(r["createElementVNode"])("span",{class:"icon-chevron-left"},null,-1),Ft={id:"start-tracking-data-header"},Rt={id:"start-tracking-cta"},Wt=["href"],Kt=Object(r["createElementVNode"])("span",{class:"icon-user-add"},null,-1),qt={key:0,class:"row",id:"start-tracking-detection"},Qt=["src","alt"],$t=["href"],Yt={class:"row",id:"start-tracking-method-list"},Xt=Object(r["createElementVNode"])("span",{class:"icon-search"},null,-1),Jt=["href","onClick"],Zt=["src"],en={class:"list-entry-text"},tn={id:"start-tracking-skip"},nn=["href"],an={key:2,id:"start-tracking-details"},rn=["src","alt"];function ln(e,t,n,a,i,l){var o=Object(r["resolveComponent"])("VueEntryContainer"),s=Object(r["resolveComponent"])("ActivityIndicator");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",null,[e.showMethodDetails?(Object(r["openBlock"])(),Object(r["createElementBlock"])("a",{key:0,id:"start-tracking-back",onClick:t[0]||(t[0]=Object(r["withModifiers"])((function(t){e.showOverview()}),["prevent"]))},[Ht,Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("Mobile_NavigationBack")),1)])):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("h1",Ft,Object(r["toDisplayString"])(e.headline),1),Object(r["createElementVNode"])("div",Rt,[Object(r["createElementVNode"])("a",{rel:"noreferrer noopener",target:"_blank",href:e.inviteUserLink},[Kt,Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("UsersManager_InviteTeamMember")),1)],8,Wt),e.additionalCtaContent?(Object(r["openBlock"])(),Object(r["createBlock"])(o,{key:0,html:e.additionalCtaContent},null,8,["html"])):Object(r["createCommentVNode"])("",!0)]),Object(r["createVNode"])(s,{"loading-message":"".concat(e.translate("SitesManager_DetectingYourSite"),"…"),loading:e.loading},null,8,["loading-message","loading"]),e.loading||e.showMethodDetails?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[e.recommendedMethod?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",qt,[Object(r["createElementVNode"])("img",{src:e.recommendedMethod.icon,alt:"".concat(e.recommendedMethod.name," logo")},null,8,Qt),Object(r["createElementVNode"])("h2",null,Object(r["toDisplayString"])(e.recommendedMethod.recommendationTitle),1),Object(r["createElementVNode"])("p",null,Object(r["toDisplayString"])(e.recommendedMethod.recommendationText),1),Object(r["createElementVNode"])("a",{href:"#".concat(e.recommendedMethod.id.toLowerCase()),class:"btn",id:"showMethod",onClick:t[1]||(t[1]=Object(r["withModifiers"])((function(t){return e.showMethod(e.recommendedMethod.id)}),["prevent"]))},Object(r["toDisplayString"])(e.recommendedMethod.recommendationButton),9,$t)])):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("div",Yt,[Xt,Object(r["createElementVNode"])("h2",null,Object(r["toDisplayString"])(e.translate("SitesManager_SiteWithoutDataOtherInstallMethods")),1),Object(r["createElementVNode"])("p",null,Object(r["toDisplayString"])(e.translate("SitesManager_SiteWithoutDataOtherInstallMethodsIntro")),1),Object(r["createElementVNode"])("ul",null,[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(e.trackingMethods,(function(t){return Object(r["openBlock"])(),Object(r["createElementBlock"])("li",{class:"list-entry",key:t.id},[Object(r["createElementVNode"])("a",{href:"#".concat(t.id.toLowerCase()),onClick:Object(r["withModifiers"])((function(n){return e.showMethod(t.id)}),["prevent"])},[t.icon?(Object(r["openBlock"])(),Object(r["createElementBlock"])("img",{key:0,src:t.icon,class:"list-entry-icon"},null,8,Zt)):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("span",en,Object(r["toDisplayString"])(t.name),1)],8,Jt)])})),128))])]),Object(r["createElementVNode"])("div",tn,[Object(r["createElementVNode"])("h2",null,Object(r["toDisplayString"])(e.translate("SitesManager_SiteWithoutDataNotYetReady")),1),Object(r["createElementVNode"])("div",null,Object(r["toDisplayString"])(e.translate("SitesManager_SiteWithoutDataTemporarilyHidePage")),1),Object(r["createElementVNode"])("a",{href:e.ignoreSitesWithoutDataLink,class:"ignoreSitesWithoutData"},Object(r["toDisplayString"])(e.translate("SitesManager_SiteWithoutDataHidePageForHour")),9,nn)])],64)),e.showMethodDetails?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",an,[Object(r["createElementVNode"])("img",{src:e.showMethodDetails.icon,alt:"".concat(e.showMethodDetails.name," logo")},null,8,rn),Object(r["createVNode"])(o,{html:e.showMethodDetails.content},null,8,["html"])])):Object(r["createCommentVNode"])("",!0)])}function on(e,t){return bn(e)||un(e,t)||cn(e,t)||sn()}function sn(){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 cn(e,t){if(e){if("string"===typeof e)return dn(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)?dn(e,t):void 0}}function dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n
- Install Matomo with {{ recommendedMethod.name }} (recommended for you)
+ {{ recommendedMethod.recommendationTitle }}
- We have detected {{ recommendedMethod.name }} on your site, so you can set up Matomo
- within a few minutes with our official {{ recommendedMethod.name }} integration.
+ {{ recommendedMethod.recommendationText }}
- Install with {{ recommendedMethod.name }}
+ {{ recommendedMethod.recommendationButton }}