From 420c0deaa826ff6ee98960165fc34ef747806ec4 Mon Sep 17 00:00:00 2001 From: sgiehl Date: Mon, 18 Sep 2023 10:20:45 +0200 Subject: [PATCH] Simplify and clean up vue components for tracking code --- TagManager.php | 2 - lang/en.json | 2 - vue/dist/TagManager.umd.js | 357 +++++++----------- vue/dist/TagManager.umd.min.js | 4 +- .../TagManagerTrackingCode.less | 26 +- .../TagmanagerTrackingCode.vue | 116 ------ .../TrackingCodeCommon.vue | 23 +- .../TrackingCodePage.vue | 134 +++++-- .../TrackingSPAPage.vue | 50 +-- vue/src/index.ts | 1 - 10 files changed, 295 insertions(+), 420 deletions(-) delete mode 100644 vue/src/TagmanagerTrackingCode/TagmanagerTrackingCode.vue diff --git a/TagManager.php b/TagManager.php index bec190051..5de8518a3 100644 --- a/TagManager.php +++ b/TagManager.php @@ -429,10 +429,8 @@ public function getClientSideTranslationKeys(&$result) $result[] = 'TagManager_ConfigureEnvironmentsSuperUser'; $result[] = 'TagManager_WantToDeployThisChangeCreateVersion'; $result[] = 'TagManager_ConfigureWhenTagDoes'; - $result[] = 'TagManager_CustomizeTracking'; $result[] = 'TagManager_ViewContainerDashboard'; $result[] = 'TagManager_NoMatomoConfigFoundForContainer'; - $result[] = 'TagManager_CustomizeTrackingTeaser'; $result[] = 'TagManager_PublishLiveEnvironmentCapabilityRequired'; $result[] = 'TagManager_CapabilityPublishLiveContainer'; $result[] = 'TagManager_VersionAlreadyPublishedToAllEnvironments'; diff --git a/lang/en.json b/lang/en.json index 7f7aa18d9..89437065a 100644 --- a/lang/en.json +++ b/lang/en.json @@ -272,8 +272,6 @@ "CustomRequestProcessingVariableName": "Custom Request Processing Function", "CustomRequestProcessingVariableDescription": "A custom function to use with a Matomo Tracker that can transform all tracking requests.", "CustomVariables": "Custom variables", - "CustomizeTracking": "Customize Tracking", - "CustomizeTrackingTeaser": "Want to configure the Matomo tracking for this container? Here is a list of existing Matomo configurations in this container:", "DashboardHelp1": "How does the \"Tag Manager → Dashboard\" page help me?", "DashboardHelp2": "The Tag Manager Dashboard provides an instant overview of both the names and quantity of tags, triggers, variables and versions of container configurations that have been created in your Matomo Tag Manager.", "DashboardHelp3": "Within the Tag Manager Dashboard, you also can edit or create new tags, triggers, variables and versions.", diff --git a/vue/dist/TagManager.umd.js b/vue/dist/TagManager.umd.js index b0cd7d3e7..2259482f9 100644 --- a/vue/dist/TagManager.umd.js +++ b/vue/dist/TagManager.umd.js @@ -149,7 +149,6 @@ __webpack_require__.d(__webpack_exports__, "ContainerManage", function() { retur __webpack_require__.d(__webpack_exports__, "ContainerDashboard", function() { return /* reexport */ ContainerDashboard; }); __webpack_require__.d(__webpack_exports__, "ContainerSelector", function() { return /* reexport */ ContainerSelector; }); __webpack_require__.d(__webpack_exports__, "ManageInstallTagCode", function() { return /* reexport */ ManageInstallTagCode; }); -__webpack_require__.d(__webpack_exports__, "TagmanagerTrackingCode", function() { return /* reexport */ TagmanagerTrackingCode; }); __webpack_require__.d(__webpack_exports__, "TrackingCodeCommon", function() { return /* reexport */ TrackingCodeCommon; }); __webpack_require__.d(__webpack_exports__, "TrackingCodePage", function() { return /* reexport */ TrackingCodePage; }); __webpack_require__.d(__webpack_exports__, "TrackingSPAPage", function() { return /* reexport */ TrackingSPAPage; }); @@ -8922,96 +8921,66 @@ var ManageInstallTagCodevue_type_script_lang_ts_window = window, ManageInstallTagCodevue_type_script_lang_ts.render = ManageInstallTagCodevue_type_template_id_7f2f7f11_render /* harmony default export */ var ManageInstallTagCode = (ManageInstallTagCodevue_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/TagManager/vue/src/TagmanagerTrackingCode/TagmanagerTrackingCode.vue?vue&type=template&id=6a09ff25 +// 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/TagManager/vue/src/TagmanagerTrackingCode/TrackingCodeCommon.vue?vue&type=template&id=674b0d5c -var TagmanagerTrackingCodevue_type_template_id_6a09ff25_hoisted_1 = { - class: "list-style-decimal" -}; -var TagmanagerTrackingCodevue_type_template_id_6a09ff25_hoisted_2 = ["innerHTML"]; -function TagmanagerTrackingCodevue_type_template_id_6a09ff25_render(_ctx, _cache, $props, $setup, $data, $options) { - var _component_TrackingCodeCommon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("TrackingCodeCommon"); - - return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("ol", TagmanagerTrackingCodevue_type_template_id_6a09ff25_hoisted_1, [_ctx.showContainerRow ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", { - key: 0, - innerHTML: _ctx.$sanitize(_ctx.setupStep1) - }, null, 8, TagmanagerTrackingCodevue_type_template_id_6a09ff25_hoisted_2)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_TrackingCodeCommon, { - "show-container-row": _ctx.showContainerRow, - showBottom: true, - showDescription: false, - showPlainMtmSteps: true, - showTestSection: _ctx.showTestSection, - onFetchInstallInstructions: _ctx.fetchInstallInstructions, - ref: "trackingCodeCommon" - }, null, 8, ["show-container-row", "showTestSection", "onFetchInstallInstructions"])]); -} -// CONCATENATED MODULE: ./plugins/TagManager/vue/src/TagmanagerTrackingCode/TagmanagerTrackingCode.vue?vue&type=template&id=6a09ff25 - -// 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/TagManager/vue/src/TagmanagerTrackingCode/TrackingCodeCommon.vue?vue&type=template&id=5fe4209c - -var TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_1 = { +var TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_1 = { class: "tagManagerTrackingCode" }; -var TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_2 = { +var TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_2 = { key: 1, class: "row" }; -var TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_3 = { +var TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_3 = { class: "col s12 m4 " }; -var TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_4 = { +var TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_4 = { class: "form-group row" }; -var TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_5 = { +var TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_5 = { class: "col s12 input-field" }; -var TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_6 = { +var TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_6 = { for: "tagManagerTrackingCodeSite", class: "siteSelectorLabel" }; -var TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_7 = { +var TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_7 = { class: "sites_autocomplete" }; -var TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_8 = { +var TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_8 = { class: "col s12 m4" }; -var TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_9 = { +var TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_9 = { class: "col s12 m4" }; -var TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_10 = { +var TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_10 = { key: 2, class: "alert alert-info" }; -var TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_11 = { +var TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_11 = { href: "" }; -var TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_12 = { +var TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_12 = { key: 0 }; -var TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_13 = ["href"]; +var TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_13 = ["href"]; -var TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_14 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(". "); +var TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_14 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(". "); -var TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_15 = { - key: 1 -}; -var TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_16 = ["innerHTML"]; +var TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_15 = ["innerHTML"]; -var TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_17 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(". "); +var TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_16 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(". "); -var TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_18 = ["innerHTML"]; +var TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_17 = ["innerHTML"]; -var TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_19 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(". "); +var TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_18 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(". "); -var TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_20 = ["innerHTML"]; -var TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_21 = ["textContent"]; -var TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_22 = { - key: 3 -}; -var TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_23 = ["innerHTML"]; -var TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_24 = { +var TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_19 = ["innerHTML"]; +var TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_20 = ["textContent"]; +var TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_21 = ["innerHTML"]; +var TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_22 = { key: 1 }; -function TrackingCodeCommonvue_type_template_id_5fe4209c_render(_ctx, _cache, $props, $setup, $data, $options) { +function TrackingCodeCommonvue_type_template_id_674b0d5c_render(_ctx, _cache, $props, $setup, $data, $options) { var _this = this; var _component_ActivityIndicator = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ActivityIndicator"); @@ -9022,13 +8991,10 @@ function TrackingCodeCommonvue_type_template_id_5fe4209c_render(_ctx, _cache, $p var _directive_copy_to_clipboard = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDirective"])("copy-to-clipboard"); - return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_1, [_ctx.showContainerRow || _ctx.environments.length > 1 ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_ActivityIndicator, { + return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_1, [_ctx.showContainerRow || _ctx.environments.length > 1 ? Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])((Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_ActivityIndicator, { key: 0, - style: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeStyle"])({ - opacity: _ctx.isLoading ? 1 : 0 - }), loading: true - }, null, 8, ["style"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.showContainerRow || _ctx.environments.length > 1 ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_2, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_3, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_4, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_5, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("label", TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_6, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('General_Website')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_7, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_SiteSelector, { + }, null, 512)), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.isLoading]]) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.showContainerRow || _ctx.environments.length > 1 ? Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])((Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_2, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_3, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_4, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_5, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("label", TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_6, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('General_Website')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_7, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_SiteSelector, { id: "tagManagerTrackingCodeSite", modelValue: _ctx.site, "onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) { @@ -9037,7 +9003,7 @@ function TrackingCodeCommonvue_type_template_id_5fe4209c_render(_ctx, _cache, $p "show-all-sites-item": false, "switch-site-on-select": false, "show-selected-site": true - }, null, 8, ["modelValue"])])])])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_8, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { + }, null, 8, ["modelValue"])])])])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_8, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { uicontrol: "select", name: "containers", "model-value": _ctx.idContainer, @@ -9050,7 +9016,7 @@ function TrackingCodeCommonvue_type_template_id_5fe4209c_render(_ctx, _cache, $p disabled: _ctx.containerOptions.length <= 1, "full-width": true, title: _ctx.translate('TagManager_Container') - }, null, 8, ["model-value", "options", "disabled", "title"])])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_9, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { + }, null, 8, ["model-value", "options", "disabled", "title"])])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_9, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { uicontrol: "select", name: "environment", "model-value": _ctx.environment, @@ -9063,32 +9029,36 @@ function TrackingCodeCommonvue_type_template_id_5fe4209c_render(_ctx, _cache, $p disabled: _ctx.environments.length <= 1, "full-width": true, title: _ctx.translate('TagManager_Environment') - }, null, 8, ["model-value", "options", "disabled", "title"])])])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.idContainer && _ctx.noReleaseFound ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_10, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('TagManager_NoReleasesFoundForContainer')) + " ", 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("a", TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_11, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('TagManager_PublishVersionToEnvironmentToViewEmbedCode')), 1)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), (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.installInstructions, function (installInstruction, index) { - return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", { + }, null, 8, ["model-value", "options", "disabled", "title"])])])], 512)), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], !_ctx.isLoading]]) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.idContainer && _ctx.noReleaseFound ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_10, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('TagManager_NoReleasesFoundForContainer')) + " ", 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("a", TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_11, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('TagManager_PublishVersionToEnvironmentToViewEmbedCode')), 1)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), (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.installInstructions, function (installInstruction, index) { + return 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: index - }, [_ctx.showDescription ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("p", TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_12, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(installInstruction.description) + " ", 1), installInstruction.helpUrl ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("a", { + }, [_ctx.showDescription ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("p", TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_12, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(installInstruction.description) + " ", 1), installInstruction.helpUrl ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("a", { key: 0, target: "_blank", href: installInstruction.helpUrl - }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('TagManager_LearnMore')), 9, TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_13)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_14])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.showPlainMtmSteps ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_15, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { + }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('TagManager_LearnMore')), 9, TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_13)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_14])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.showPlainMtmSteps ? (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 + }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { innerHTML: _ctx.$sanitize(_ctx.getMtmStep2) - }, null, 8, TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_16), TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_17, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { + }, null, 8, TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_15), TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_16, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { innerHTML: _ctx.$sanitize(_ctx.getLearnMoreLink) - }, null, 8, TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_18), TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_19]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_17), TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_18]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { innerHTML: _ctx.$sanitize(_ctx.getMtmStep3) - }, null, 8, TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_20)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("pre", { + }, null, 8, TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_19)], 64)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("pre", { class: "codeblock", textContent: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(installInstruction.embedCode), ref: "codeblock" - }, null, 8, TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_21), [[_directive_copy_to_clipboard, {}]])])]); - }), 128)), _ctx.showBottom ? Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])((Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_22, [_ctx.idContainer && !_ctx.showTestSection ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("p", { + }, null, 8, TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_20), [[_directive_copy_to_clipboard, {}]])])], 64); + }), 128)), _ctx.showBottom && !_ctx.noReleaseFound && _ctx.idContainer ? (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: 3 + }, [!_ctx.showTestSection ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("p", { key: 0, innerHTML: _ctx.$sanitize(_ctx.getCongratulationsText) - }, null, 8, TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_23)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.idContainer && _ctx.showTestSection ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", TrackingCodeCommonvue_type_template_id_5fe4209c_hoisted_24, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDynamicComponent"])(_ctx.testComponent), { + }, null, 8, TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_21)) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", TrackingCodeCommonvue_type_template_id_674b0d5c_hoisted_22, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDynamicComponent"])(_ctx.testComponent), { site: _ctx.site - }, null, 8, ["site"]))])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 512)), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], !_ctx.noReleaseFound]]) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)]); + }, null, 8, ["site"]))]))], 64)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)]); } -// CONCATENATED MODULE: ./plugins/TagManager/vue/src/TagmanagerTrackingCode/TrackingCodeCommon.vue?vue&type=template&id=5fe4209c +// CONCATENATED MODULE: ./plugins/TagManager/vue/src/TagmanagerTrackingCode/TrackingCodeCommon.vue?vue&type=template&id=674b0d5c // 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/TagManager/vue/src/TagmanagerTrackingCode/TrackingCodeCommon.vue?vue&type=script&lang=ts @@ -9343,19 +9313,61 @@ function ucfirst(s) { -TrackingCodeCommonvue_type_script_lang_ts.render = TrackingCodeCommonvue_type_template_id_5fe4209c_render +TrackingCodeCommonvue_type_script_lang_ts.render = TrackingCodeCommonvue_type_template_id_674b0d5c_render /* harmony default export */ var TrackingCodeCommon = (TrackingCodeCommonvue_type_script_lang_ts); -// 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/TagManager/vue/src/TagmanagerTrackingCode/TagmanagerTrackingCode.vue?vue&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/TagManager/vue/src/TagmanagerTrackingCode/TrackingCodePage.vue?vue&type=template&id=2173e522 + +var TrackingCodePagevue_type_template_id_2173e522_hoisted_1 = ["innerHTML"]; + +var TrackingCodePagevue_type_template_id_2173e522_hoisted_2 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("br", null, null, -1); + +var TrackingCodePagevue_type_template_id_2173e522_hoisted_3 = { + style: { + "list-style": "inside decimal" + } +}; +var TrackingCodePagevue_type_template_id_2173e522_hoisted_4 = ["innerHTML"]; +function TrackingCodePagevue_type_template_id_2173e522_render(_ctx, _cache, $props, $setup, $data, $options) { + var _component_TrackingCodeCommon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("TrackingCodeCommon"); + + return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDynamicComponent"])(_ctx.currentAction === 'getTrackingMethodsForSite' ? 'div' : 'ContentBlock'), { + anchor: "tagmanager", + "content-title": _ctx.translate('TagManager_MatomoTagManager') + }, { + default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () { + return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("p", { + innerHTML: _ctx.$sanitize(_ctx.siteWithoutDataMtmIntro) + }, null, 8, TrackingCodePagevue_type_template_id_2173e522_hoisted_1), TrackingCodePagevue_type_template_id_2173e522_hoisted_2, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("p", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("strong", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('SitesManager_SiteWithoutDataCloudflareFollowStepsIntro')), 1)]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("ol", TrackingCodePagevue_type_template_id_2173e522_hoisted_3, [_ctx.showContainerRow ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", { + key: 0, + innerHTML: _ctx.$sanitize(_ctx.setupStep1) + }, null, 8, TrackingCodePagevue_type_template_id_2173e522_hoisted_4)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_TrackingCodeCommon, { + "show-container-row": _ctx.showContainerRow, + showBottom: true, + showDescription: false, + showPlainMtmSteps: true, + showTestSection: _ctx.currentAction === 'getTrackingMethodsForSite' && _ctx.isJsTrackerInstallCheckAvailable, + onFetchInstallInstructions: _ctx.fetchInstallInstructions, + ref: "trackingCodeCommon" + }, null, 8, ["show-container-row", "showTestSection", "onFetchInstallInstructions"])])]; + }), + _: 1 + }, 8, ["content-title"]); +} +// CONCATENATED MODULE: ./plugins/TagManager/vue/src/TagmanagerTrackingCode/TrackingCodePage.vue?vue&type=template&id=2173e522 + +// 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/TagManager/vue/src/TagmanagerTrackingCode/TrackingCodePage.vue?vue&type=script&lang=ts -/* harmony default export */ var TagmanagerTrackingCodevue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({ +/* harmony default export */ var TrackingCodePagevue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({ props: { + currentAction: String, showContainerRow: Boolean, - showTestSection: Boolean + isJsTrackerInstallCheckAvailable: Boolean }, components: { + ContentBlock: external_CoreHome_["ContentBlock"], TrackingCodeCommon: TrackingCodeCommon }, data: function data() { @@ -9429,89 +9441,8 @@ TrackingCodeCommonvue_type_script_lang_ts.render = TrackingCodeCommonvue_type_te }, mounted: function mounted() { this.updateStep1Text(); - } -})); -// CONCATENATED MODULE: ./plugins/TagManager/vue/src/TagmanagerTrackingCode/TagmanagerTrackingCode.vue?vue&type=script&lang=ts - -// CONCATENATED MODULE: ./plugins/TagManager/vue/src/TagmanagerTrackingCode/TagmanagerTrackingCode.vue - - - -TagmanagerTrackingCodevue_type_script_lang_ts.render = TagmanagerTrackingCodevue_type_template_id_6a09ff25_render - -/* harmony default export */ var TagmanagerTrackingCode = (TagmanagerTrackingCodevue_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/TagManager/vue/src/TagmanagerTrackingCode/TrackingCodePage.vue?vue&type=template&id=5195f22b - -var TrackingCodePagevue_type_template_id_5195f22b_hoisted_1 = { - key: 0 -}; -var TrackingCodePagevue_type_template_id_5195f22b_hoisted_2 = ["innerHTML"]; - -var TrackingCodePagevue_type_template_id_5195f22b_hoisted_3 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("br", null, null, -1); - -var TrackingCodePagevue_type_template_id_5195f22b_hoisted_4 = ["innerHTML"]; - -var TrackingCodePagevue_type_template_id_5195f22b_hoisted_5 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("br", null, null, -1); - -function TrackingCodePagevue_type_template_id_5195f22b_render(_ctx, _cache, $props, $setup, $data, $options) { - var _component_TagmanagerTrackingCode = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("TagmanagerTrackingCode"); - - var _component_ContentBlock = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ContentBlock"); - - return _ctx.currentAction === 'getTrackingMethodsForSite' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", TrackingCodePagevue_type_template_id_5195f22b_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("p", { - innerHTML: _ctx.$sanitize(_ctx.siteWithoutDataMtmIntro) - }, null, 8, TrackingCodePagevue_type_template_id_5195f22b_hoisted_2), TrackingCodePagevue_type_template_id_5195f22b_hoisted_3, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("p", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("strong", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('SitesManager_SiteWithoutDataCloudflareFollowStepsIntro')), 1)]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_TagmanagerTrackingCode, { - "show-container-row": _ctx.showContainerRow, - "current-action": _ctx.currentAction, - showTestSection: _ctx.isJsTrackerInstallCheckAvailable - }, null, 8, ["show-container-row", "current-action", "showTestSection"])])) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_ContentBlock, { - key: 1, - anchor: "tagmanager", - "content-title": _ctx.translate('TagManager_MatomoTagManager') - }, { - default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () { - return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("p", { - innerHTML: _ctx.$sanitize(_ctx.siteWithoutDataMtmIntro) - }, null, 8, TrackingCodePagevue_type_template_id_5195f22b_hoisted_4), TrackingCodePagevue_type_template_id_5195f22b_hoisted_5, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("p", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("strong", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('SitesManager_SiteWithoutDataCloudflareFollowStepsIntro')), 1)]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_TagmanagerTrackingCode, { - "show-container-row": _ctx.showContainerRow, - "current-action": _ctx.currentAction, - showTestSection: false - }, null, 8, ["show-container-row", "current-action"])]; - }), - _: 1 - }, 8, ["content-title"])); -} -// CONCATENATED MODULE: ./plugins/TagManager/vue/src/TagmanagerTrackingCode/TrackingCodePage.vue?vue&type=template&id=5195f22b - -// 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/TagManager/vue/src/TagmanagerTrackingCode/TrackingCodePage.vue?vue&type=script&lang=ts - - - -/* harmony default export */ var TrackingCodePagevue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({ - props: { - currentAction: String, - showContainerRow: Boolean, - isJsTrackerInstallCheckAvailable: Boolean - }, - components: { - ContentBlock: external_CoreHome_["ContentBlock"], - TagmanagerTrackingCode: TagmanagerTrackingCode }, computed: { - trackingInfoTextLine1: function trackingInfoTextLine1() { - var manageContainersLink = "?".concat(external_CoreHome_["MatomoUrl"].stringify(Object.assign(Object.assign({}, external_CoreHome_["MatomoUrl"].urlParsed.value), {}, { - module: 'TagManager', - action: 'manageContainers' - }))); - return Object(external_CoreHome_["translate"])('TagManager_MatomoTagManagerTrackingInfoLine1', ""), ''); - }, - trackingInfoTextLine2: function trackingInfoTextLine2() { - var gettingStartedLink = "?".concat(external_CoreHome_["MatomoUrl"].stringify(Object.assign(Object.assign({}, external_CoreHome_["MatomoUrl"].urlParsed.value), {}, { - module: 'TagManager', - action: 'gettingStarted' - }))); - return Object(external_CoreHome_["translate"])('TagManager_MatomoTagManagerTrackingInfoLine2', ""), ''); - }, siteWithoutDataMtmIntro: function siteWithoutDataMtmIntro() { var gettingStartedLink = "?".concat(external_CoreHome_["MatomoUrl"].stringify(Object.assign(Object.assign({}, external_CoreHome_["MatomoUrl"].urlParsed.value), {}, { module: 'TagManager', @@ -9527,105 +9458,104 @@ function TrackingCodePagevue_type_template_id_5195f22b_render(_ctx, _cache, $pro -TrackingCodePagevue_type_script_lang_ts.render = TrackingCodePagevue_type_template_id_5195f22b_render +TrackingCodePagevue_type_script_lang_ts.render = TrackingCodePagevue_type_template_id_2173e522_render /* harmony default export */ var TrackingCodePage = (TrackingCodePagevue_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/TagManager/vue/src/TagmanagerTrackingCode/TrackingSPAPage.vue?vue&type=template&id=4a0674e4 +// 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/TagManager/vue/src/TagmanagerTrackingCode/TrackingSPAPage.vue?vue&type=template&id=4916719a -var TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_1 = { +var TrackingSPAPagevue_type_template_id_4916719a_hoisted_1 = { class: "list-style-decimal" }; -var TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_2 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_3 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_4 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_5 = ["textContent"]; -var TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_6 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_7 = ["textContent"]; -var TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_8 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_9 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_10 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_11 = ["textContent"]; -var TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_12 = { +var TrackingSPAPagevue_type_template_id_4916719a_hoisted_2 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_4916719a_hoisted_3 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_4916719a_hoisted_4 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_4916719a_hoisted_5 = ["textContent"]; +var TrackingSPAPagevue_type_template_id_4916719a_hoisted_6 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_4916719a_hoisted_7 = ["textContent"]; +var TrackingSPAPagevue_type_template_id_4916719a_hoisted_8 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_4916719a_hoisted_9 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_4916719a_hoisted_10 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_4916719a_hoisted_11 = ["textContent"]; +var TrackingSPAPagevue_type_template_id_4916719a_hoisted_12 = { style: { "list-style": "lower-alpha", - "list-style-position": "inside", - "text-indent": "1.2rem" + "list-style-position": "inside" } }; -var TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_13 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_14 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_15 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_16 = ["textContent"]; -var TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_17 = ["textContent"]; -var TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_18 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_19 = ["textContent"]; -var TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_20 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_21 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_22 = ["textContent"]; -function TrackingSPAPagevue_type_template_id_4a0674e4_render(_ctx, _cache, $props, $setup, $data, $options) { +var TrackingSPAPagevue_type_template_id_4916719a_hoisted_13 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_4916719a_hoisted_14 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_4916719a_hoisted_15 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_4916719a_hoisted_16 = ["textContent"]; +var TrackingSPAPagevue_type_template_id_4916719a_hoisted_17 = ["textContent"]; +var TrackingSPAPagevue_type_template_id_4916719a_hoisted_18 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_4916719a_hoisted_19 = ["textContent"]; +var TrackingSPAPagevue_type_template_id_4916719a_hoisted_20 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_4916719a_hoisted_21 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_4916719a_hoisted_22 = ["textContent"]; +function TrackingSPAPagevue_type_template_id_4916719a_render(_ctx, _cache, $props, $setup, $data, $options) { var _component_TrackingCodeCommon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("TrackingCodeCommon"); var _directive_select_on_focus = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDirective"])("select-on-focus"); - return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("ol", TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_1, [_ctx.showContainerRow ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", { + return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("ol", TrackingSPAPagevue_type_template_id_4916719a_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", null, [_ctx.showContainerRow ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", { key: 0, innerHTML: _ctx.$sanitize(_ctx.setupStep1) - }, null, 8, TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_2)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_TrackingCodeCommon, { + }, null, 8, TrackingSPAPagevue_type_template_id_4916719a_hoisted_2)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_TrackingCodeCommon, { "show-container-row": _ctx.showContainerRow, "current-action": _ctx.currentAction, showBottom: false, showDescription: false, onFetchInstallInstructions: _ctx.fetchInstallInstructionsSPA, ref: "trackingCodeCommon" - }, null, 8, ["show-container-row", "current-action", "onFetchInstallInstructions"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, ["show-container-row", "current-action", "onFetchInstallInstructions"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { innerHTML: _ctx.$sanitize(_ctx.setupStep2) - }, null, 8, TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_3), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_4916719a_hoisted_3), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { innerHTML: _ctx.$sanitize(_ctx.fetchFollowStep3) - }, null, 8, TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_4), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_4916719a_hoisted_4), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { textContent: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.fetchClickX('TagManager_CreateNewTrigger')) - }, null, 8, TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_5), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_4916719a_hoisted_5), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { innerHTML: _ctx.$sanitize(_ctx.fetchFollowStep5) - }, null, 8, TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_6), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_4916719a_hoisted_6), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { textContent: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.fetchClickX('TagManager_CreateNewTrigger')) - }, null, 8, TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_7), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_4916719a_hoisted_7), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { innerHTML: _ctx.$sanitize(_ctx.setupStep7) - }, null, 8, TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_8), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_4916719a_hoisted_8), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { innerHTML: _ctx.$sanitize(_ctx.fetchFollowStep8) - }, null, 8, TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_9), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_4916719a_hoisted_9), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { innerHTML: _ctx.$sanitize(_ctx.fetchFollowStep9) - }, null, 8, TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_10), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { + }, null, 8, TrackingSPAPagevue_type_template_id_4916719a_hoisted_10), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { textContent: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.fetchFollowStep10) - }, null, 8, TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_11), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("ol", TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_12, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_4916719a_hoisted_11), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("ol", TrackingSPAPagevue_type_template_id_4916719a_hoisted_12, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { innerHTML: _ctx.$sanitize(_ctx.fetchFollowStep10a) - }, null, 8, TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_13), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_4916719a_hoisted_13), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { innerHTML: _ctx.$sanitize(_ctx.fetchFollowStep10b) - }, null, 8, TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_14)])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_4916719a_hoisted_14)])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { innerHTML: _ctx.$sanitize(_ctx.fetchFollowStep11) - }, null, 8, TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_15), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_4916719a_hoisted_15), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { textContent: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.fetchClickX('General_Update')) - }, null, 8, TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_16), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_4916719a_hoisted_16), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { textContent: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.fetchFollowStep13) - }, null, 8, TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_17), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_4916719a_hoisted_17), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { innerHTML: _ctx.$sanitize(_ctx.fetchFollowStep14) - }, null, 8, TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_18), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_4916719a_hoisted_18), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { textContent: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.fetchFollowStep15) - }, null, 8, TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_19), _ctx.jsFramework === 'react' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", { - key: 1, + }, null, 8, TrackingSPAPagevue_type_template_id_4916719a_hoisted_19), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", null, [_ctx.jsFramework === 'react' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", { + key: 0, innerHTML: _ctx.$sanitize(_ctx.fetchFollowStep16React) - }, null, 8, TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_20)) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", { - key: 2, + }, null, 8, TrackingSPAPagevue_type_template_id_4916719a_hoisted_20)) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", { + key: 1, innerHTML: _ctx.$sanitize(_ctx.fetchFollowStep16SPA) - }, null, 8, TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_21)), (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.installInstructions, function (installInstruction, index) { + }, null, 8, TrackingSPAPagevue_type_template_id_4916719a_hoisted_21)), (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.installInstructions, function (installInstruction, index) { return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", { key: index }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("pre", { class: "codeblock", textContent: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(installInstruction.embedCode), ref: "codeblock" - }, null, 8, TrackingSPAPagevue_type_template_id_4a0674e4_hoisted_22), [[_directive_select_on_focus, {}]])]); - }), 128))]); + }, null, 8, TrackingSPAPagevue_type_template_id_4916719a_hoisted_22), [[_directive_select_on_focus, {}]])]); + }), 128))])]); } -// CONCATENATED MODULE: ./plugins/TagManager/vue/src/TagmanagerTrackingCode/TrackingSPAPage.vue?vue&type=template&id=4a0674e4 +// CONCATENATED MODULE: ./plugins/TagManager/vue/src/TagmanagerTrackingCode/TrackingSPAPage.vue?vue&type=template&id=4916719a // 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/TagManager/vue/src/TagmanagerTrackingCode/TrackingSPAPage.vue?vue&type=script&lang=ts @@ -9757,7 +9687,7 @@ function TrackingSPAPagevue_type_template_id_4a0674e4_render(_ctx, _cache, $prop -TrackingSPAPagevue_type_script_lang_ts.render = TrackingSPAPagevue_type_template_id_4a0674e4_render +TrackingSPAPagevue_type_script_lang_ts.render = TrackingSPAPagevue_type_template_id_4916719a_render /* harmony default export */ var TrackingSPAPage = (TrackingSPAPagevue_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/TagManager/vue/src/Debugging/Debugging.vue?vue&type=template&id=6e8e3aea @@ -10365,7 +10295,6 @@ GettingStartedvue_type_script_lang_ts.render = GettingStartedvue_type_template_i - // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js diff --git a/vue/dist/TagManager.umd.min.js b/vue/dist/TagManager.umd.min.js index facf691b5..27ab24eb9 100644 --- a/vue/dist/TagManager.umd.min.js +++ b/vue/dist/TagManager.umd.min.js @@ -1,4 +1,4 @@ -(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("CoreHome"),require("vue"),require("CorePluginsAdmin")):"function"===typeof define&&define.amd?define(["CoreHome",,"CorePluginsAdmin"],t):"object"===typeof exports?exports["TagManager"]=t(require("CoreHome"),require("vue"),require("CorePluginsAdmin")):e["TagManager"]=t(e["CoreHome"],e["Vue"],e["CorePluginsAdmin"])})("undefined"!==typeof self?self:this,(function(e,t,n){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="plugins/TagManager/vue/dist/",n(n.s="fae3")}({"19dc":function(t,n){t.exports=e},"8bbf":function(e,n){e.exports=t},a5a2:function(e,t){e.exports=n},fae3:function(e,t,n){"use strict";if(n.r(t),n.d(t,"ImportVersion",(function(){return p})),n.d(t,"VariableSelect",(function(){return G})),n.d(t,"VariableSelectType",(function(){return ne})),n.d(t,"FieldTextareaVariable",(function(){return ue})),n.d(t,"FieldVariableTemplate",(function(){return Te})),n.d(t,"FieldVariableTypeTemplate",(function(){return Ne})),n.d(t,"VariableEdit",(function(){return Et})),n.d(t,"VariableList",(function(){return On})),n.d(t,"VariableManage",(function(){return En})),n.d(t,"TriggerEdit",(function(){return Ta})),n.d(t,"TriggerList",(function(){return lr})),n.d(t,"TriggerManage",(function(){return ur})),n.d(t,"TagEdit",(function(){return To})),n.d(t,"TagList",(function(){return ol})),n.d(t,"TagManage",(function(){return gl})),n.d(t,"VersionEdit",(function(){return Tc})),n.d(t,"VersionList",(function(){return ms})),n.d(t,"VersionManage",(function(){return Os})),n.d(t,"ContainerEdit",(function(){return qs})),n.d(t,"ContainerList",(function(){return wd})),n.d(t,"ContainerManage",(function(){return xd})),n.d(t,"ContainerDashboard",(function(){return Eu})),n.d(t,"ContainerSelector",(function(){return Uu})),n.d(t,"ManageInstallTagCode",(function(){return yg})),n.d(t,"TagmanagerTrackingCode",(function(){return nb})),n.d(t,"TrackingCodeCommon",(function(){return eb})),n.d(t,"TrackingCodePage",(function(){return db})),n.d(t,"TrackingSPAPage",(function(){return Ub})),n.d(t,"Debugging",(function(){return Qm})),n.d(t,"GettingStarted",(function(){return bp})),"undefined"!==typeof window){var a=window.document.currentScript,r=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(n.p=r[1])}var i=n("8bbf"),o={class:"tagManagerImportVersion"},l={class:"ui-confirm",id:"confirmImportContainerVersion",ref:"confirmImportContainerVersion"},c=["value"],s=["value"];function d(e,t,n,a,r,d){var u=Object(i["resolveComponent"])("ActivityIndicator"),g=Object(i["resolveComponent"])("Field"),b=Object(i["resolveComponent"])("SaveButton"),m=Object(i["resolveComponent"])("ContentBlock");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",o,[Object(i["createVNode"])(m,{"content-title":e.translate("TagManager_ImportVersion")},{default:Object(i["withCtx"])((function(){return[Object(i["createElementVNode"])("p",null,Object(i["toDisplayString"])(e.translate("TagManager_VersionImportInfo")),1),Object(i["createVNode"])(u,{loading:e.isUpdating,"loading-message":e.translate("TagManager_UpdatingData")},null,8,["loading","loading-message"]),Object(i["createElementVNode"])("div",null,[Object(i["createVNode"])(g,{uicontrol:"text",modelValue:e.backupName,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.backupName=t}),name:"backupName",placeholder:" ",title:e.backupNameTitle,"inline-help":e.translate("TagManager_BackupVersionNameHelp")},null,8,["modelValue","title","inline-help"])]),Object(i["createElementVNode"])("div",null,[Object(i["createVNode"])(g,{uicontrol:"textarea",modelValue:e.importContent,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.importContent=t}),name:"importContent",placeholder:" ","full-width":!0,title:e.translate("TagManager_VersionImportContentTitle")},null,8,["modelValue","title"])]),Object(i["createVNode"])(b,{class:"importVersion",disabled:!e.importContent,onConfirm:t[2]||(t[2]=function(t){return e.importVersion(e.backupName,e.importContent)}),value:e.translate("TagManager_VersionImportOverwriteContent")},null,8,["disabled","value"])]})),_:1},8,["content-title"]),Object(i["createElementVNode"])("div",l,[Object(i["createElementVNode"])("h2",null,Object(i["toDisplayString"])(e.translate("TagManager_ConfirmImportContainerVersion")),1),Object(i["createElementVNode"])("input",{role:"yes",type:"button",value:e.translate("General_Yes")},null,8,c),Object(i["createElementVNode"])("input",{role:"no",type:"button",value:e.translate("General_No")},null,8,s)],512)])}var u=n("19dc"),g=n("a5a2"),b="importContainerVersion",m=Object(i["defineComponent"])({props:{idContainer:{type:String,required:!0}},components:{ContentBlock:u["ContentBlock"],ActivityIndicator:u["ActivityIndicator"],Field:g["Field"],SaveButton:g["SaveButton"]},data:function(){return{isUpdating:!1,backupName:"",importContent:""}},methods:{showNotification:function(e,t){var n=u["NotificationsStore"].show({message:e,context:t,type:"transient",id:b});setTimeout((function(){u["NotificationsStore"].scrollToNotification(n)}),200)},importVersion:function(e,t){var n=this;if(t){var a;try{a=JSON.parse(t)}catch(r){return void this.showNotification(Object(u["translate"])("TagManager_ErrorInvalidContainerImportFormat"),"error")}"tags"in a&&"triggers"in a&&"variables"in a&&"idcontainer"in a&&"context"in a?u["Matomo"].helper.modalConfirm(this.$refs.confirmImportContainerVersion,{yes:function(){n.isUpdating=!0;var e={exportedContainerVersion:t};u["AjaxHelper"].post({method:"TagManager.importContainerVersion",idContainer:n.idContainer,backupName:n.backupName},e).then((function(){n.showNotification(Object(u["translate"])("TagManager_VersionImportSuccess"),"success"),n.isUpdating=!1,window.location.reload()})).catch((function(){n.isUpdating=!1}))}}):this.showNotification(Object(u["translate"])("TagManager_ErrorContainerVersionImportIncomplete"),"error")}}},computed:{backupNameTitle:function(){return"".concat(Object(u["translate"])("TagManager_BackupVersionName")," (").concat(Object(u["translate"])("General_Recommended"),")")}}});m.render=d;var p=m,h={class:"tagManagerManageSelect tagManagerVariableSelect"},f={class:"tableActionBar"},v=Object(i["createElementVNode"])("span",{class:"icon-add"}," ",-1),j={class:"collection with-header"},O={class:"collection-header"},T=["onClick"],V={class:"title"},y={class:"secondary-content"},C=["onClick","title"],N={class:"collection-header"},E=["onClick"],S={class:"title"},k={class:"secondary-content"},w=["title"],M={class:"tableActionBar"},_=Object(i["createElementVNode"])("span",{class:"icon-add"}," ",-1);function D(e,t,n,a,r,o){var l=Object(i["resolveComponent"])("ActivityIndicator");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",h,[Object(i["createVNode"])(l,{loading:e.isLoading},null,8,["loading"]),Object(i["createElementVNode"])("div",f,[Object(i["withDirectives"])(Object(i["createElementVNode"])("a",{class:"createNewVariable",onClick:t[0]||(t[0]=function(t){return e.createVariable()})},[v,Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_CreateNewVariable")),1)],512),[[i["vShow"],!e.isLoading]])]),Object(i["createElementVNode"])("ul",j,[Object(i["createElementVNode"])("li",O,[Object(i["createElementVNode"])("h4",null,Object(i["toDisplayString"])(e.translate("TagManager_CustomVariables")),1)]),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.containerVariables,(function(t,n){return Object(i["openBlock"])(),Object(i["createElementBlock"])("li",{class:"collection-item",onClick:function(n){return e.selectVariable(t)},key:n},[Object(i["createElementVNode"])("span",V,Object(i["toDisplayString"])(t.name)+" ("+Object(i["toDisplayString"])(e.translate("TagManager_Type"))+": "+Object(i["toDisplayString"])(t.type)+") ",1),Object(i["createElementVNode"])("span",y,[Object(i["createElementVNode"])("i",{class:"icon-edit",onClick:Object(i["withModifiers"])((function(n){return e.editVariable(t)}),["stop"]),title:e.translate("General_Edit")},null,8,C)])],8,T)})),128))]),Object(i["createElementVNode"])("h2",null,Object(i["toDisplayString"])(e.translate("TagManager_PreconfiguredVariables")),1),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.preconfiguredVariables,(function(t){return Object(i["openBlock"])(),Object(i["createElementBlock"])("ul",{class:"collection with-header",key:t.name},[Object(i["createElementVNode"])("li",N,[Object(i["createElementVNode"])("h4",null,Object(i["toDisplayString"])(t.name),1)]),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(t.types,(function(t,n){return Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("li",{class:"collection-item",key:n,onClick:function(n){return e.selectVariable(t)}},[Object(i["createElementVNode"])("span",S,Object(i["toDisplayString"])(t.name),1),Object(i["withDirectives"])(Object(i["createElementVNode"])("span",k,[Object(i["createElementVNode"])("i",{class:"icon-help",title:t.description},null,8,w)],512),[[i["vShow"],!!t.description]])],8,E)),[[i["vShow"],t.is_pre_configured]])})),128))])})),128)),Object(i["createElementVNode"])("div",M,[Object(i["withDirectives"])(Object(i["createElementVNode"])("a",{class:"createNewVariable",onClick:t[1]||(t[1]=function(t){return e.createVariable()})},[_,Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_CreateNewVariable",e.translate("TagManager_Variable"))),1)],512),[[i["vShow"],!e.isLoading]])])])}function x(e){return U(e)||L(e)||B(e)||A()}function A(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function B(e,t){if(e){if("string"===typeof e)return I(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)?I(e,t):void 0}}function L(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function U(e){if(Array.isArray(e))return I(e)}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);ne.length)&&(t=e.length);for(var n=0,a=new Array(t);ne.length)&&(t=e.length);for(var n=0,a=new Array(t);ne.length)&&(t=e.length);for(var n=0,a=new Array(t);ne.length)&&(t=e.length);for(var n=0,a=new Array(t);ne.length)&&(t=e.length);for(var n=0,a=new Array(t);ne.length)&&(t=e.length);for(var n=0,a=new Array(t);nt.created_date?-1:0})),e}},methods:{createContainer:function(){this.editContainer("0")},editContainer:function(e){u["MatomoUrl"].updateHash(Object.assign(Object.assign({},u["MatomoUrl"].hashParsed.value),{},{idContainer:e}))},installCode:function(e){Sd.showInstallCode(e)},deleteContainer:function(e){function t(){Rs.deleteContainer(e.idcontainer).then((function(){Rs.reload()}))}u["Matomo"].helper.modalConfirm(this.$refs.confirmDeleteContainer,{yes:t})},truncateText:function(e,t){return e.length>t?"".concat(e.substr(0,t-3),"..."):e}}});kd.render=jd;var wd=kd,Md={class:"manageContainer"};function _d(e,t,n,a,r,o){var l=Object(i["resolveComponent"])("ContainerList"),c=Object(i["resolveComponent"])("ContainerEdit");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Md,[Object(i["withDirectives"])(Object(i["createElementVNode"])("div",null,[Object(i["createVNode"])(l)],512),[[i["vShow"],!e.editMode]]),Object(i["withDirectives"])(Object(i["createElementVNode"])("div",null,[Object(i["createVNode"])(c,{"id-container":e.idContainer},null,8,["id-container"])],512),[[i["vShow"],e.editMode]])])}var Dd=Object(i["defineComponent"])({props:{},components:{ContainerList:wd,ContainerEdit:qs},data:function(){return{isAddAllowed:!1}},created:function(){var e=this;Object(i["watch"])((function(){return u["MatomoUrl"].hashParsed.value.idContainer}),(function(t){e.onIdContainerParamChange(t)})),u["NotificationsStore"].remove("containertagmanagement"),this.onIdContainerParamChange(u["MatomoUrl"].hashParsed.value.idContainer)},computed:{idContainer:function(){var e=u["MatomoUrl"].hashParsed.value.idContainer;return this.isAddAllowed||""!==e?e:null},editMode:function(){return!!this.idContainer}},methods:{onIdContainerParamChange:function(e){if("0"===e){var t={isAllowed:!0};u["Matomo"].postEvent("TagManager.initAddVersion",t),this.isAddAllowed=!!t.isAllowed}}}});Dd.render=_d;var xd=Dd,Ad={class:"containerDashboard"},Bd={key:0},Ld={class:"dashboardCreationDate"},Ud={key:0},Id=Object(i["createElementVNode"])("br",null,null,-1),Pd={class:"row",style:{"margin-left":"-0.75rem"}},Hd={class:"col m6 s12"},Fd={key:0},Gd=["href","title"],$d={key:0},Rd=Object(i["createElementVNode"])("hr",null,null,-1),zd=["href"],Wd=Object(i["createElementVNode"])("span",{class:"icon-edit"}," ",-1),qd=["href"],Xd=Object(i["createElementVNode"])("span",{class:"icon-add"}," ",-1),Kd={class:"col m6 s12"},Jd={key:0},Yd=["href","title"],Qd=Object(i["createElementVNode"])("hr",null,null,-1),Zd=["href"],eu=Object(i["createElementVNode"])("span",{class:"icon-edit"}," ",-1),tu=["href"],nu=Object(i["createElementVNode"])("span",{class:"icon-add"}," ",-1),au={class:"row",style:{"margin-left":"-0.75rem"}},ru={class:"col m6 s12"},iu=["href","title"],ou={key:0},lu=Object(i["createElementVNode"])("hr",null,null,-1),cu=["href"],su=Object(i["createElementVNode"])("span",{class:"icon-edit"}," ",-1),du=["href"],uu=Object(i["createElementVNode"])("span",{class:"icon-add"}," ",-1),gu={class:"col m6 s12"},bu=["title","href"],mu={key:0},pu=Object(i["createElementVNode"])("br",null,null,-1),hu=["title"],fu={key:0},vu=Object(i["createElementVNode"])("hr",null,null,-1),ju=["href"],Ou=Object(i["createElementVNode"])("span",{class:"icon-edit"}," ",-1),Tu=["href"],Vu=Object(i["createElementVNode"])("span",{class:"icon-add"}," ",-1);function yu(e,t,n,a,r,o){var l,c,s=Object(i["resolveComponent"])("ActivityIndicator"),d=Object(i["resolveComponent"])("EnrichedHeadline"),u=Object(i["resolveComponent"])("ContentBlock"),g=Object(i["resolveDirective"])("content-intro");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Ad,[Object(i["createVNode"])(s,{loading:e.isLoading},null,8,["loading"]),e.isLoading?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Bd,[Object(i["withDirectives"])(Object(i["createElementVNode"])("div",null,[Object(i["createElementVNode"])("h2",null,[Object(i["createVNode"])(d,{"feature-name":"Tag Manager","inline-help":e.dashboardHelpText},{default:Object(i["withCtx"])((function(){var t;return[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_ContainerX",null===(t=e.container)||void 0===t?void 0:t.name)),1)]})),_:1},8,["inline-help"])]),Object(i["createElementVNode"])("p",Ld,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.containerMetaInformation)+" ",1),null!==(l=e.containerVersion)&&void 0!==l&&l.description?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Ud,[Id,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("General_Description"))+": "+Object(i["toDisplayString"])(null===(c=e.containerVersion)||void 0===c?void 0:c.description),1)])):Object(i["createCommentVNode"])("",!0)])],512),[[g]]),Object(i["createElementVNode"])("div",Pd,[Object(i["createElementVNode"])("div",Hd,[Object(i["createVNode"])(u,{feature:"Tag Manager","content-title":"".concat(e.tagCount," ").concat(e.translate("TagManager_Tags")),"help-text":e.tagsHelpText},{default:Object(i["withCtx"])((function(){return[Object(i["createElementVNode"])("p",null,[e.tagCount?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Fd,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_Names"))+": ",1),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.sortedContainerVersionTags,(function(t,n){return Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:n},[Object(i["createElementVNode"])("a",{href:e.linkTo("manageTags",{idTag:t.idtag}),title:e.translate("TagManager_EntityDateTypeMetaInformation",t.created_date_pretty,t.updated_date_pretty,t.type)},Object(i["toDisplayString"])(t.name),9,Gd),n!==e.sortedContainerVersionTags.length-1?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",$d,", ")):Object(i["createCommentVNode"])("",!0)])})),128))])):Object(i["createCommentVNode"])("",!0)]),Rd,Object(i["createElementVNode"])("a",{class:"btn-flat",href:e.linkTo("manageTags")},[Wd,Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_EditTags")),1)],8,zd),Object(i["createElementVNode"])("a",{class:"btn-flat",href:e.linkTo("manageTags",{idTag:0})},[Xd,Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_CreateNewTag")),1)],8,qd)]})),_:1},8,["content-title","help-text"])]),Object(i["createElementVNode"])("div",Kd,[Object(i["createVNode"])(u,{feature:"Tag Manager","content-title":"".concat(e.triggerCount," ").concat(e.translate("TagManager_Triggers")),"help-text":e.triggersHelpText},{default:Object(i["withCtx"])((function(){return[Object(i["createElementVNode"])("p",null,[e.triggerCount?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Jd,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_Names"))+": ",1),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.sortedTriggers,(function(t,n){return Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:n},[Object(i["createElementVNode"])("a",{href:e.linkTo("manageTriggers",{idTrigger:t.idtrigger}),title:e.translate("TagManager_EntityDateTypeMetaInformation",t.created_date_pretty,t.updated_date_pretty,t.type)},Object(i["toDisplayString"])(t.name),9,Yd),Object(i["withDirectives"])(Object(i["createElementVNode"])("span",null,", ",512),[[i["vShow"],n!==e.sortedTriggers.length-1]])])})),128))])):Object(i["createCommentVNode"])("",!0)]),Qd,Object(i["createElementVNode"])("a",{class:"btn-flat",href:e.linkTo("manageTriggers")},[eu,Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_EditTriggers")),1)],8,Zd),Object(i["createElementVNode"])("a",{class:"btn-flat",href:e.linkTo("manageTriggers",{idTrigger:0})},[nu,Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_CreateNewTrigger")),1)],8,tu)]})),_:1},8,["content-title","help-text"])])]),Object(i["createElementVNode"])("div",au,[Object(i["createElementVNode"])("div",ru,[Object(i["createVNode"])(u,{feature:"Tag Manager","content-title":"".concat(e.variableCount," ").concat(e.translate("TagManager_Variables")),"help-text":e.variablesHelpText},{default:Object(i["withCtx"])((function(){return[Object(i["createElementVNode"])("p",null,[Object(i["withDirectives"])(Object(i["createElementVNode"])("span",null,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_Names"))+": ",1),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.sortedVariables,(function(t,n){return Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:n},[Object(i["createElementVNode"])("a",{href:e.linkTo("manageVariables",{idVariable:t.idvariable}),title:e.translate("TagManager_EntityDateTypeMetaInformation",t.created_date_pretty,t.updated_date_pretty,t.type)},Object(i["toDisplayString"])(t.name),9,iu),n!==e.sortedVariables.length-1?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",ou,", ")):Object(i["createCommentVNode"])("",!0)])})),128))],512),[[i["vShow"],e.variableCount]])]),lu,Object(i["createElementVNode"])("a",{class:"btn-flat",href:e.linkTo("manageVariables")},[su,Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_EditVariables")),1)],8,cu),Object(i["createElementVNode"])("a",{class:"btn-flat",href:e.linkTo("manageVariables",{idVariable:0})},[uu,Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_CreateNewVariable")),1)],8,du)]})),_:1},8,["content-title","help-text"])]),Object(i["createElementVNode"])("div",gu,[Object(i["createVNode"])(u,{feature:"Tag Manager","content-title":"".concat(e.versionCount," ").concat(e.translate("TagManager_Versions")),"help-text":e.versionsHelpText},{default:Object(i["withCtx"])((function(){return[Object(i["createElementVNode"])("p",null,[Object(i["withDirectives"])(Object(i["createElementVNode"])("span",null,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_LastVersions"))+": ",1),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.lastVersions,(function(t,n){return Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:n},[Object(i["createElementVNode"])("a",{title:e.lastVersionLinkTitle(t),href:e.linkTo("manageVersions",{idContainerVersion:t.idcontainerversion})},Object(i["toDisplayString"])(t.name),9,bu),n!==e.lastVersions.length-1?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",mu,", ")):Object(i["createCommentVNode"])("",!0)])})),128))],512),[[i["vShow"],e.lastVersions.length]]),Object(i["withDirectives"])(Object(i["createElementVNode"])("span",null,[pu,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("TagManager_Environments"))+": ",1),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.container.releases,(function(t,n){return Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:n},[Object(i["createElementVNode"])("span",{title:e.releaseTooltip(t)},Object(i["toDisplayString"])(e.ucfirst(t.environment)),9,hu),n!==e.container.releases.length-1?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",fu,", ")):Object(i["createCommentVNode"])("",!0)])})),128))],512),[[i["vShow"],e.container.releases.length]])]),vu,Object(i["createElementVNode"])("a",{class:"btn-flat",href:e.linkTo("manageVersions")},[Ou,Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_EditVersions")),1)],8,ju),Object(i["createElementVNode"])("a",{class:"btn-flat",href:e.linkTo("manageVersions",{idContainerVersion:0})},[Vu,Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_CreateNewVersion")),1)],8,Tu)]})),_:1},8,["content-title","help-text"])])])]))])}function Cu(e){e.sort((function(e,t){return e.namet.name?1:0}))}var Nu=Object(i["defineComponent"])({props:{idContainer:String,dashboardHelpText:String,tagsHelpText:String,triggersHelpText:String,variablesHelpText:String,versionsHelpText:String},components:{ActivityIndicator:u["ActivityIndicator"],EnrichedHeadline:u["EnrichedHeadline"],ContentBlock:u["ContentBlock"]},directives:{ContentIntro:u["ContentIntro"]},data:function(){return{container:null,containerVersion:null,isLoading:!1}},created:function(){var e=this;Ds.init(),this.isLoading=!0;var t=u["AjaxHelper"].fetch({method:"TagManager.getContainer",idContainer:this.idContainer}).then((function(t){e.container=t})),n=u["AjaxHelper"].fetch({method:"TagManager.exportContainerVersion",idContainer:this.idContainer}).then((function(t){e.containerVersion=t}));Promise.all([t,n]).finally((function(){e.isLoading=!1}))},methods:{linkTo:function(e,t){var n=u["MatomoUrl"].stringify(Object.assign(Object.assign({},u["MatomoUrl"].urlParsed.value),{},{module:"TagManager",action:e}));return t&&(n+="#?".concat(u["MatomoUrl"].stringify(t))),"?".concat(n)},lastVersionLinkTitle:function(e){return"Created on ".concat(e.created_date_pretty)+", description: '".concat(e.description,"'")},releaseTooltip:function(e){var t=Object(u["translate"])("TagManager_ReleaseInfo",e.release_login,e.release_date_pretty),n=Object(u["translate"])("TagManager_ReleaseVersionInfo",e.version_name);return"".concat(t," ").concat(n)},ucfirst:function(e){return"".concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))}},computed:{lastVersions:function(){var e,t;return null!==(e=this.container)&&void 0!==e&&null!==(t=e.versions)&&void 0!==t&&t.length?this.container.versions.slice(-5):[]},contexts:function(){var e={};return Ds.contexts.value.forEach((function(t){var n=t.id,a=t.name;e[n]=a})),e},containerMetaInformation:function(){var e,t,n;return Object(u["translate"])("TagManager_ContainerMetaInformation",(null===(e=this.containerVersion)||void 0===e?void 0:e.idcontainer)||"",this.contexts[(null===(t=this.container)||void 0===t?void 0:t.context)||""]||"",(null===(n=this.containerVersion)||void 0===n?void 0:n.created_date_pretty)||"")},sortedContainerVersionTags:function(){var e,t=(null===(e=this.containerVersion)||void 0===e?void 0:e.tags)||[];return Cu(t),t},sortedTriggers:function(){var e,t=(null===(e=this.containerVersion)||void 0===e?void 0:e.triggers)||[];return Cu(t),t},sortedVariables:function(){var e,t=(null===(e=this.containerVersion)||void 0===e?void 0:e.variables)||[];return Cu(t),t},tagCount:function(){var e;return null===(e=this.containerVersion)||void 0===e?void 0:e.tags.length},triggerCount:function(){var e;return null===(e=this.containerVersion)||void 0===e?void 0:e.triggers.length},versionCount:function(){var e;return null===(e=this.container)||void 0===e?void 0:e.versions.length},variableCount:function(){var e;return null===(e=this.containerVersion)||void 0===e?void 0:e.variables.length}}});Nu.render=yu;var Eu=Nu,Su=["title"],ku={class:"title"},wu=Object(i["createElementVNode"])("span",{class:"icon icon-chevron-down"}," ",-1),Mu={class:"dropdown positionInViewport"},_u={class:"custom_select_container"},Du={class:"custom_select_ul_list"},xu=["title"],Au=["href"];function Bu(e,t,n,a,r,o){var l=Object(i["resolveComponent"])("ActivityIndicator"),c=Object(i["resolveDirective"])("focus-anywhere-but-here");return Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:Object(i["normalizeClass"])(["tagContainerSelector piwikSelector borderedControl",{expanded:e.showContainerList}]),onClick:t[1]||(t[1]=function(t){e.fetchContainers(),e.showContainerList=!e.showContainerList}),title:e.translate("TagManager_ChooseContainer")},[Object(i["createElementVNode"])("a",ku,[wu,Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.actualContainerName),1)]),Object(i["withDirectives"])(Object(i["createElementVNode"])("div",Mu,[Object(i["createVNode"])(l,{loading:e.isLoading},null,8,["loading"]),Object(i["createElementVNode"])("div",_u,[Object(i["createElementVNode"])("ul",Du,[Object(i["withDirectives"])(Object(i["createElementVNode"])("li",null,[Object(i["createElementVNode"])("a",{tabindex:"-1",onClick:t[0]||(t[0]=Object(i["withModifiers"])((function(){}),["prevent","stop"]))},Object(i["toDisplayString"])(e.translate("TagManager_NoContainersFound")),1)],512),[[i["vShow"],!e.isLoading&&0===e.containers.length]]),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.containers,(function(t){return Object(i["openBlock"])(),Object(i["createElementBlock"])("li",{title:"".concat(t.name," (").concat(t.idcontainer,")"),key:t.idcontainer},[Object(i["createElementVNode"])("a",{href:e.linkTo(t.idcontainer)},Object(i["toDisplayString"])(t.name)+" ("+Object(i["toDisplayString"])(t.idcontainer)+") ",9,Au)],8,xu)})),128))])])],512),[[i["vShow"],e.showContainerList]])],10,Su)),[[c,{blur:e.onBlur}]])}var Lu=Object(i["defineComponent"])({props:{containerName:String},components:{ActivityIndicator:u["ActivityIndicator"]},directives:{FocusAnywhereButHere:u["FocusAnywhereButHere"]},data:function(){return{containers:[],isLoading:!1,showContainerList:!1}},created:function(){setTimeout((function(){window.initTopControls()}))},methods:{fetchContainers:function(){var e=this;this.isLoading=!0,this.containers=[],u["AjaxHelper"].fetch({method:"TagManager.getContainers"}).then((function(t){e.containers=t})).finally((function(){e.isLoading=!1}))},linkTo:function(e){var t=u["MatomoUrl"].urlParsed.value.action;t&&"manageContainers"!==t||(t=this.hasWriteAccess?"dashboard":"manageTags");var n=u["MatomoUrl"].stringify(Object.assign(Object.assign({},u["MatomoUrl"].urlParsed.value),{},{idContainer:e,action:t}));return"".concat(window.location.pathname,"?").concat(n)},onBlur:function(){this.showContainerList=!1}},computed:{actualContainerName:function(){return this.containerName?Object(u["translate"])("TagManager_ContainerX",this.containerName):Object(u["translate"])("TagManager_ChooseContainer")},hasWriteAccess:function(){return u["Matomo"].hasUserCapability("tagmanager_write")}}});Lu.render=Bu;var Uu=Lu,Iu={style:{"margin-left":"-0.75rem"}},Pu=Object(i["createElementVNode"])("br",null,null,-1),Hu=["href"],Fu=["textContent"],Gu={style:{"margin-top":"1rem"}},$u=["innerHTML"],Ru=Object(i["createElementVNode"])("br",null,null,-1),zu={target:"_blank",href:"https://matomo.org/faq/tag-manager/data-layer-in-matomo-tag-manager/"},Wu={class:"environment"},qu={class:"name"},Xu={class:"name"},Ku={class:"released_by"},Ju={class:"released_on"},Yu={key:0},Qu={colspan:"7"},Zu={class:"loadingPiwik"},eg=Object(i["createElementVNode"])("img",{src:"plugins/Morpheus/images/loading-blue.gif"},null,-1),tg={key:1},ng={colspan:"7"},ag={class:"environment"},rg={class:"name"},ig={class:"revision"},og={class:"released_by"},lg={class:"released_on"},cg={class:"date"};function sg(e,t,n,a,r,o){var l=Object(i["resolveComponent"])("Field"),c=Object(i["resolveComponent"])("ActivityIndicator"),s=Object(i["resolveComponent"])("ContentBlock"),d=Object(i["resolveDirective"])("select-on-focus"),u=Object(i["resolveDirective"])("content-table");return Object(i["openBlock"])(),Object(i["createBlock"])(s,{class:"manageInstallTagCode",feature:"Tag Manager","content-title":"Install Code"},{default:Object(i["withCtx"])((function(){var n,a;return[Object(i["createElementVNode"])("div",Iu,[Object(i["createVNode"])(l,{uicontrol:"select",name:"environment","model-value":e.environment,"onUpdate:modelValue":t[0]||(t[0]=function(t){e.environment=t,e.fetchInstallInstructions(e.environment)}),options:e.environments,title:e.translate("TagManager_Environment")},null,8,["model-value","options","title"])]),Object(i["createVNode"])(c,{loading:e.isLoading},null,8,["loading"]),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.installInstructions,(function(t,n){return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:n},[Object(i["createElementVNode"])("p",null,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(t.description)+" ",1),Pu,t.helpUrl?(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:0,target:"_blank",href:t.helpUrl},Object(i["toDisplayString"])(e.translate("TagManager_LearnMore")),9,Hu)):Object(i["createCommentVNode"])("",!0)]),t.embedCode?Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("pre",{key:0,class:"codeblock",textContent:Object(i["toDisplayString"])(t.embedCode),ref:"codeblock"},null,8,Fu)),[[d,{}]]):Object(i["createCommentVNode"])("",!0)])})),128)),Object(i["createElementVNode"])("p",null,Object(i["toDisplayString"])(e.translate("TagManager_InstallCodePublishEnvironmentNote","preview"))+" "+Object(i["toDisplayString"])(e.translate("TagManager_ConfigureEnvironmentsSuperUser")),1),Object(i["createElementVNode"])("p",Gu,[Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.translate("TagManager_InstallCodeDataLayerNote","",""))},null,8,$u),Ru,Object(i["createElementVNode"])("a",zu,Object(i["toDisplayString"])(e.translate("TagManager_LearnMore")),1)]),Object(i["createElementVNode"])("h2",null,Object(i["toDisplayString"])(e.translate("TagManager_ReleasesOverview")),1),Object(i["withDirectives"])(Object(i["createElementVNode"])("table",null,[Object(i["createElementVNode"])("thead",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("th",Wu,Object(i["toDisplayString"])(e.translate("TagManager_Environment")),1),Object(i["createElementVNode"])("th",qu,Object(i["toDisplayString"])(e.translate("TagManager_VersionName")),1),Object(i["createElementVNode"])("th",Xu,Object(i["toDisplayString"])(e.translate("TagManager_VersionRevision")),1),Object(i["createElementVNode"])("th",Ku,Object(i["toDisplayString"])(e.translate("TagManager_ReleasedBy")),1),Object(i["createElementVNode"])("th",Ju,Object(i["toDisplayString"])(e.translate("TagManager_ReleasedOn")),1)])]),Object(i["createElementVNode"])("tbody",null,[e.isLoading?(Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",Yu,[Object(i["createElementVNode"])("td",Qu,[Object(i["createElementVNode"])("span",Zu,[eg,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("General_LoadingData")),1)])])])):Object(i["createCommentVNode"])("",!0),e.isLoading||0!==(null===(n=e.container)||void 0===n||null===(a=n.releases)||void 0===a?void 0:a.length)?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",tg,[Object(i["createElementVNode"])("td",ng,Object(i["toDisplayString"])(e.translate("TagManager_NoReleasesFound")),1)])),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.sortedReleases,(function(t){var n,a;return Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",{key:t.idcontainerrelease},[Object(i["createElementVNode"])("td",ag,Object(i["toDisplayString"])(e.ucfirst(t.environment)),1),Object(i["createElementVNode"])("td",rg,Object(i["toDisplayString"])(null===(n=e.releaseVersions[t.idcontainerrelease])||void 0===n?void 0:n.name),1),Object(i["createElementVNode"])("td",ig,Object(i["toDisplayString"])(null===(a=e.releaseVersions[t.idcontainerrelease])||void 0===a?void 0:a.revision),1),Object(i["createElementVNode"])("td",og,Object(i["toDisplayString"])(t.release_login),1),Object(i["createElementVNode"])("td",lg,[Object(i["createElementVNode"])("span",cg,Object(i["toDisplayString"])(t.release_date_pretty),1)])])})),128))])],512),[[u]])]})),_:1})}function dg(e){return bg(e)||gg(e)||hg(e)||ug()}function ug(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function gg(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function bg(e){if(Array.isArray(e))return fg(e)}function mg(e,t){return jg(e)||vg(e,t)||hg(e,t)||pg()}function pg(){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 hg(e,t){if(e){if("string"===typeof e)return fg(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)?fg(e,t):void 0}}function fg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);nt.release_date?-1:t.index-e.index})),t}}});Vg.render=sg;var yg=Vg,Cg={class:"list-style-decimal"},Ng=["innerHTML"];function Eg(e,t,n,a,r,o){var l=Object(i["resolveComponent"])("TrackingCodeCommon");return Object(i["openBlock"])(),Object(i["createElementBlock"])("ol",Cg,[e.showContainerRow?(Object(i["openBlock"])(),Object(i["createElementBlock"])("li",{key:0,innerHTML:e.$sanitize(e.setupStep1)},null,8,Ng)):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(l,{"show-container-row":e.showContainerRow,showBottom:!0,showDescription:!1,showPlainMtmSteps:!0,showTestSection:e.showTestSection,onFetchInstallInstructions:e.fetchInstallInstructions,ref:"trackingCodeCommon"},null,8,["show-container-row","showTestSection","onFetchInstallInstructions"])])}var Sg={class:"tagManagerTrackingCode"},kg={key:1,class:"row"},wg={class:"col s12 m4 "},Mg={class:"form-group row"},_g={class:"col s12 input-field"},Dg={for:"tagManagerTrackingCodeSite",class:"siteSelectorLabel"},xg={class:"sites_autocomplete"},Ag={class:"col s12 m4"},Bg={class:"col s12 m4"},Lg={key:2,class:"alert alert-info"},Ug={href:""},Ig={key:0},Pg=["href"],Hg=Object(i["createTextVNode"])(". "),Fg={key:1},Gg=["innerHTML"],$g=Object(i["createTextVNode"])(". "),Rg=["innerHTML"],zg=Object(i["createTextVNode"])(". "),Wg=["innerHTML"],qg=["textContent"],Xg={key:3},Kg=["innerHTML"],Jg={key:1};function Yg(e,t,n,a,r,o){var l=this,c=Object(i["resolveComponent"])("ActivityIndicator"),s=Object(i["resolveComponent"])("SiteSelector"),d=Object(i["resolveComponent"])("Field"),u=Object(i["resolveDirective"])("copy-to-clipboard");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Sg,[e.showContainerRow||e.environments.length>1?(Object(i["openBlock"])(),Object(i["createBlock"])(c,{key:0,style:Object(i["normalizeStyle"])({opacity:e.isLoading?1:0}),loading:!0},null,8,["style"])):Object(i["createCommentVNode"])("",!0),e.showContainerRow||e.environments.length>1?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",kg,[Object(i["createElementVNode"])("div",wg,[Object(i["createElementVNode"])("div",Mg,[Object(i["createElementVNode"])("div",_g,[Object(i["createElementVNode"])("label",Dg,Object(i["toDisplayString"])(e.translate("General_Website")),1),Object(i["createElementVNode"])("div",xg,[Object(i["createVNode"])(s,{id:"tagManagerTrackingCodeSite",modelValue:e.site,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.site=t}),"show-all-sites-item":!1,"switch-site-on-select":!1,"show-selected-site":!0},null,8,["modelValue"])])])])]),Object(i["createElementVNode"])("div",Ag,[Object(i["createElementVNode"])("div",null,[Object(i["createVNode"])(d,{uicontrol:"select",name:"containers","model-value":e.idContainer,"onUpdate:modelValue":t[1]||(t[1]=function(t){e.idContainer=t,e.onContainerChange()}),options:e.containerOptions,disabled:e.containerOptions.length<=1,"full-width":!0,title:e.translate("TagManager_Container")},null,8,["model-value","options","disabled","title"])])]),Object(i["createElementVNode"])("div",Bg,[Object(i["createElementVNode"])("div",null,[Object(i["createVNode"])(d,{uicontrol:"select",name:"environment","model-value":e.environment,"onUpdate:modelValue":t[2]||(t[2]=function(t){e.environment=t,l.$emit("fetchInstallInstructions")}),options:e.environments,disabled:e.environments.length<=1,"full-width":!0,title:e.translate("TagManager_Environment")},null,8,["model-value","options","disabled","title"])])])])):Object(i["createCommentVNode"])("",!0),e.idContainer&&e.noReleaseFound?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Lg,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_NoReleasesFoundForContainer"))+" ",1),Object(i["createElementVNode"])("a",Ug,Object(i["toDisplayString"])(e.translate("TagManager_PublishVersionToEnvironmentToViewEmbedCode")),1)])):Object(i["createCommentVNode"])("",!0),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.installInstructions,(function(t,n){return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:n},[e.showDescription?(Object(i["openBlock"])(),Object(i["createElementBlock"])("p",Ig,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(t.description)+" ",1),t.helpUrl?(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:0,target:"_blank",href:t.helpUrl},Object(i["toDisplayString"])(e.translate("TagManager_LearnMore")),9,Pg)):Object(i["createCommentVNode"])("",!0),Hg])):Object(i["createCommentVNode"])("",!0),e.showPlainMtmSteps?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Fg,[Object(i["createElementVNode"])("li",null,[Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.getMtmStep2)},null,8,Gg),$g,Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.getLearnMoreLink)},null,8,Rg),zg]),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.getMtmStep3)},null,8,Wg)])):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("div",null,[Object(i["withDirectives"])(Object(i["createElementVNode"])("pre",{class:"codeblock",textContent:Object(i["toDisplayString"])(t.embedCode),ref:"codeblock"},null,8,qg),[[u,{}]])])])})),128)),e.showBottom?Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Xg,[e.idContainer&&!e.showTestSection?(Object(i["openBlock"])(),Object(i["createElementBlock"])("p",{key:0,innerHTML:e.$sanitize(e.getCongratulationsText)},null,8,Kg)):Object(i["createCommentVNode"])("",!0),e.idContainer&&e.showTestSection?(Object(i["openBlock"])(),Object(i["createElementBlock"])("li",Jg,[(Object(i["openBlock"])(),Object(i["createBlock"])(Object(i["resolveDynamicComponent"])(e.testComponent),{site:e.site},null,8,["site"]))])):Object(i["createCommentVNode"])("",!0)],512)),[[i["vShow"],!e.noReleaseFound]]):Object(i["createCommentVNode"])("",!0)])}function Qg(e){return"".concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))}var Zg=Object(i["defineComponent"])({props:{showContainerRow:Boolean,currentAction:String,showBottom:Boolean,showDescription:Boolean,showPlainMtmSteps:Boolean,showTestSection:Boolean},components:{ActivityIndicator:u["ActivityIndicator"],SiteSelector:u["SiteSelector"],Field:g["Field"]},emits:["fetchInstallInstructions"],directives:{CopyToClipboard:u["CopyToClipboard"]},data:function(){return{containerVariables:[],isLoading:!1,idContainer:"",environment:"",environments:[],environmentNameMap:{},containerMap:{},containerOptions:[],site:{id:u["Matomo"].idSite,name:u["Matomo"].helper.htmlDecode(u["Matomo"].siteName)},matomoConfigs:[],releases:[],installInstructions:[],noReleaseFound:!1}},created:function(){var e=this;u["AjaxHelper"].fetch({method:"TagManager.getAvailableEnvironments",filter_limit:"-1"}).then((function(t){var n;n=Array.isArray(t)?t:Object.values(t),e.environmentNameMap=Object.fromEntries(n.map((function(e){var t=e.id,n=e.name;return[t,n]})))})),this.onSiteChange()},watch:{site:function(){this.onSiteChange()}},methods:{onSiteChange:function(){var e,t=this;this.installInstructions=[],this.containerOptions=[],this.containerMap={},this.environments=[],this.matomoConfigs=[],this.idContainer="",null!==(e=this.site)&&void 0!==e&&e.id&&(this.isLoading=!0,u["AjaxHelper"].fetch({method:"TagManager.getContainers",filter_limit:"-1",idSite:this.site.id}).then((function(e){if(t.containerOptions=[],null===e||void 0===e||!e.length)return t.idContainer="",void t.containerOptions.push({key:"",value:t.translate("TagManager_NoContainersFound")});e.forEach((function(e){t.idContainer||(t.idContainer=e.idcontainer),t.containerMap[e.idcontainer]=e,t.containerOptions.push({key:e.idcontainer,value:e.name})})),t.onContainerChange()})).finally((function(){t.isLoading=!1})))},onContainerChange:function(){var e=this;if(this.noReleaseFound=!1,this.idContainer){this.installInstructions=[];var t=this.containerMap[this.idContainer],n=t.draft.idcontainerversion;this.environment="",this.environments=[];var a=t.releases||[];a.find((function(e){return"live"===e.environment}))&&(this.environment="live"),a.forEach((function(t){if("preview"!==t.environment){e.environment||(e.environment=t.environment);var n=Qg(t.environment);t.environment in e.environmentNameMap&&(n=e.environmentNameMap[t.environment]),e.environments.push({key:t.environment,value:n})}})),this.environments.length||(this.noReleaseFound=!0,this.environments.push({key:"",value:this.translate("TagManager_NoReleasesFound")})),this.$emit("fetchInstallInstructions"),this.fetchVariables(n)}},linkTo:function(e,t,n,a){var r=u["MatomoUrl"].stringify(Object.assign(Object.assign({},u["MatomoUrl"].urlParsed.value),{},{module:"TagManager",action:e,idSite:t,idContainer:n})),i="".concat(window.location.pathname,"?").concat(r);return a&&(i+="#?".concat(u["MatomoUrl"].stringify(a))),i},fetchVariables:function(e){var t,n=this;this.matomoConfigs=[],this.idContainer&&null!==(t=this.site)&&void 0!==t&&t.id&&e&&u["AjaxHelper"].fetch({method:"TagManager.getContainerVariables",filter_limit:"-1",idContainer:this.idContainer,idContainerVersion:e,idSite:this.site.id}).then((function(e){n.matomoConfigs=e.filter((function(e){return"MatomoConfiguration"===e.type}))})).finally((function(){n.isLoading=!1}))}},computed:{getLearnMoreLink:function(){return Object(u["translate"])("TagManager_CustomHtmlTagHelpText",'',"")},getMtmStep2:function(){var e=this.site&&this.site.id?this.site.id:"",t=this.linkTo("dashboard",e,this.idContainer,[]);return Object(u["translate"])("TagManager_SiteWithoutDataMtmStep2",''),"")},getMtmStep3:function(){return Object(u["translate"])("TagManager_SiteWithoutDataMtmStep3","</head>",'',"")},getCongratulationsText:function(){return Object(u["translate"])("TagManager_SiteWithoutDataReactFollowStepCompleted","","")},testComponent:function(){return this.showTestSection?Object(u["useExternalPluginComponent"])("JsTrackerInstallCheck","JsTrackerInstallCheck"):""}}});Zg.render=Yg;var eb=Zg,tb=Object(i["defineComponent"])({props:{showContainerRow:Boolean,showTestSection:Boolean},components:{TrackingCodeCommon:eb},data:function(){return{setupStep1:""}},methods:{fetchInstallInstructions:function(){var e,t,n=this,a=this.$refs.trackingCodeCommon;a.installInstructions=[],this.updateStep1Text(),null!==a&&void 0!==a&&null!==(e=a.site)&&void 0!==e&&e.id&&null!==a&&void 0!==a&&a.environment&&(a.isLoading=!0,u["AjaxHelper"].fetch({method:"TagManager.getContainerInstallInstructions",filter_limit:"-1",idContainer:null===a||void 0===a?void 0:a.idContainer,environment:null===a||void 0===a?void 0:a.environment,idSite:null===a||void 0===a||null===(t=a.site)||void 0===t?void 0:t.id}).then((function(e){a.installInstructions=e,Object(i["nextTick"])((function(){var e=Array.isArray(n.$refs.codeblock)?n.$refs.codeblock:[n.$refs.codeblock];e.forEach((function(e){$(e).effect("highlight",{},1500)}))}))})).finally((function(){a.isLoading=!1})))},linkTo:function(e,t,n,a){var r=u["MatomoUrl"].stringify(Object.assign(Object.assign({},u["MatomoUrl"].urlParsed.value),{},{module:"TagManager",action:e,idSite:t,idContainer:n}));return a&&(r+="#?".concat(u["MatomoUrl"].stringify(a))),"?".concat(r)},updateStep1Text:function(){var e,t=this.$refs.trackingCodeCommon;if(null!==t&&void 0!==t&&null!==(e=t.site)&&void 0!==e&&e.id){var n=null!==t&&void 0!==t&&t.idContainer?t.idContainer:"",a=this.linkTo("manageContainers",t.site.id,n);this.setupStep1=Object(u["translate"])("TagManager_SPAFollowStep1","
","",''),"")}}},mounted:function(){this.updateStep1Text()}});tb.render=Eg;var nb=tb,ab={key:0},rb=["innerHTML"],ib=Object(i["createElementVNode"])("br",null,null,-1),ob=["innerHTML"],lb=Object(i["createElementVNode"])("br",null,null,-1);function cb(e,t,n,a,r,o){var l=Object(i["resolveComponent"])("TagmanagerTrackingCode"),c=Object(i["resolveComponent"])("ContentBlock");return"getTrackingMethodsForSite"===e.currentAction?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",ab,[Object(i["createElementVNode"])("p",{innerHTML:e.$sanitize(e.siteWithoutDataMtmIntro)},null,8,rb),ib,Object(i["createElementVNode"])("p",null,[Object(i["createElementVNode"])("strong",null,Object(i["toDisplayString"])(e.translate("SitesManager_SiteWithoutDataCloudflareFollowStepsIntro")),1)]),Object(i["createVNode"])(l,{"show-container-row":e.showContainerRow,"current-action":e.currentAction,showTestSection:e.isJsTrackerInstallCheckAvailable},null,8,["show-container-row","current-action","showTestSection"])])):(Object(i["openBlock"])(),Object(i["createBlock"])(c,{key:1,anchor:"tagmanager","content-title":e.translate("TagManager_MatomoTagManager")},{default:Object(i["withCtx"])((function(){return[Object(i["createElementVNode"])("p",{innerHTML:e.$sanitize(e.siteWithoutDataMtmIntro)},null,8,ob),lb,Object(i["createElementVNode"])("p",null,[Object(i["createElementVNode"])("strong",null,Object(i["toDisplayString"])(e.translate("SitesManager_SiteWithoutDataCloudflareFollowStepsIntro")),1)]),Object(i["createVNode"])(l,{"show-container-row":e.showContainerRow,"current-action":e.currentAction,showTestSection:!1},null,8,["show-container-row","current-action"])]})),_:1},8,["content-title"]))}var sb=Object(i["defineComponent"])({props:{currentAction:String,showContainerRow:Boolean,isJsTrackerInstallCheckAvailable:Boolean},components:{ContentBlock:u["ContentBlock"],TagmanagerTrackingCode:nb},computed:{trackingInfoTextLine1:function(){var e="?".concat(u["MatomoUrl"].stringify(Object.assign(Object.assign({},u["MatomoUrl"].urlParsed.value),{},{module:"TagManager",action:"manageContainers"})));return Object(u["translate"])("TagManager_MatomoTagManagerTrackingInfoLine1",''),"")},trackingInfoTextLine2:function(){var e="?".concat(u["MatomoUrl"].stringify(Object.assign(Object.assign({},u["MatomoUrl"].urlParsed.value),{},{module:"TagManager",action:"gettingStarted"})));return Object(u["translate"])("TagManager_MatomoTagManagerTrackingInfoLine2",''),"")},siteWithoutDataMtmIntro:function(){var e="?".concat(u["MatomoUrl"].stringify(Object.assign(Object.assign({},u["MatomoUrl"].urlParsed.value),{},{module:"TagManager",action:"gettingStarted"})));return Object(u["translate"])("TagManager_SiteWithoutDataMtmIntro",''),"")}}});sb.render=cb;var db=sb,ub={class:"list-style-decimal"},gb=["innerHTML"],bb=["innerHTML"],mb=["innerHTML"],pb=["textContent"],hb=["innerHTML"],fb=["textContent"],vb=["innerHTML"],jb=["innerHTML"],Ob=["innerHTML"],Tb=["textContent"],Vb={style:{"list-style":"lower-alpha","list-style-position":"inside","text-indent":"1.2rem"}},yb=["innerHTML"],Cb=["innerHTML"],Nb=["innerHTML"],Eb=["textContent"],Sb=["textContent"],kb=["innerHTML"],wb=["textContent"],Mb=["innerHTML"],_b=["innerHTML"],Db=["textContent"];function xb(e,t,n,a,r,o){var l=Object(i["resolveComponent"])("TrackingCodeCommon"),c=Object(i["resolveDirective"])("select-on-focus");return Object(i["openBlock"])(),Object(i["createElementBlock"])("ol",ub,[e.showContainerRow?(Object(i["openBlock"])(),Object(i["createElementBlock"])("li",{key:0,innerHTML:e.$sanitize(e.setupStep1)},null,8,gb)):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(l,{"show-container-row":e.showContainerRow,"current-action":e.currentAction,showBottom:!1,showDescription:!1,onFetchInstallInstructions:e.fetchInstallInstructionsSPA,ref:"trackingCodeCommon"},null,8,["show-container-row","current-action","onFetchInstallInstructions"]),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.setupStep2)},null,8,bb),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep3)},null,8,mb),Object(i["createElementVNode"])("li",{textContent:Object(i["toDisplayString"])(e.fetchClickX("TagManager_CreateNewTrigger"))},null,8,pb),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep5)},null,8,hb),Object(i["createElementVNode"])("li",{textContent:Object(i["toDisplayString"])(e.fetchClickX("TagManager_CreateNewTrigger"))},null,8,fb),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.setupStep7)},null,8,vb),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep8)},null,8,jb),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep9)},null,8,Ob),Object(i["createElementVNode"])("li",null,[Object(i["createElementVNode"])("span",{textContent:Object(i["toDisplayString"])(e.fetchFollowStep10)},null,8,Tb),Object(i["createElementVNode"])("ol",Vb,[Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep10a)},null,8,yb),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep10b)},null,8,Cb)])]),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep11)},null,8,Nb),Object(i["createElementVNode"])("li",{textContent:Object(i["toDisplayString"])(e.fetchClickX("General_Update"))},null,8,Eb),Object(i["createElementVNode"])("li",{textContent:Object(i["toDisplayString"])(e.fetchFollowStep13)},null,8,Sb),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep14)},null,8,kb),Object(i["createElementVNode"])("li",{textContent:Object(i["toDisplayString"])(e.fetchFollowStep15)},null,8,wb),"react"===e.jsFramework?(Object(i["openBlock"])(),Object(i["createElementBlock"])("li",{key:1,innerHTML:e.$sanitize(e.fetchFollowStep16React)},null,8,Mb)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("li",{key:2,innerHTML:e.$sanitize(e.fetchFollowStep16SPA)},null,8,_b)),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.installInstructions,(function(e,t){return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:t},[Object(i["withDirectives"])(Object(i["createElementVNode"])("pre",{class:"codeblock",textContent:Object(i["toDisplayString"])(e.embedCode),ref:"codeblock"},null,8,Db),[[c,{}]])])})),128))])}var Ab=Object(i["defineComponent"])({props:{showContainerRow:Boolean,currentAction:String,jsFramework:String},components:{TrackingCodeCommon:eb},directives:{SelectOnFocus:u["SelectOnFocus"]},data:function(){return{setupStep1:"",setupStep2:"",setupStep7:"",installInstructions:[]}},methods:{fetchInstallInstructionsSPA:function(){var e,t,n=this,a=this.$refs.trackingCodeCommon;if(this.installInstructions=[],null!==a&&void 0!==a&&a.idContainer&&null!==a&&void 0!==a&&a.environment&&null!==a&&void 0!==a&&null!==(e=a.site)&&void 0!==e&&e.id){var r=this.linkTo("manageContainers",a.site.id,a.idContainer);this.setupStep1=Object(u["translate"])("TagManager_SPAFollowStep1","
","",''),"");var o=this.linkTo("manageTriggers",a.site.id,a.idContainer);this.setupStep2=Object(u["translate"])("TagManager_SPAFollowStep2",''),"");var l=this.linkTo("manageTags",a.site.id,a.idContainer);this.setupStep7=Object(u["translate"])("TagManager_SPAFollowStep7",''),""),a.isLoading=!0,u["AjaxHelper"].fetch({method:"TagManager.getContainerInstallInstructions",filter_limit:"-1",idContainer:null===a||void 0===a?void 0:a.idContainer,environment:null===a||void 0===a?void 0:a.environment,idSite:null===a||void 0===a||null===(t=a.site)||void 0===t?void 0:t.id,jsFramework:this.jsFramework}).then((function(e){n.installInstructions=e,Object(i["nextTick"])((function(){var e=Array.isArray(n.$refs.codeblock)?n.$refs.codeblock:[n.$refs.codeblock];e.forEach((function(e){$(e).effect("highlight",{},1500)}))}))})).finally((function(){a.isLoading=!1}))}},linkTo:function(e,t,n,a){var r=u["MatomoUrl"].stringify(Object.assign(Object.assign({},u["MatomoUrl"].urlParsed.value),{},{module:"TagManager",action:e,idSite:t,idContainer:n}));return a&&(r+="#?".concat(u["MatomoUrl"].stringify(a))),"?".concat(r)},fetchClickX:function(e){return Object(u["translate"])("General_ClickX",Object(u["translate"])(e))}},computed:{fetchFollowStep3:function(){return Object(u["translate"])("TagManager_SPAFollowStep3","".concat(Object(u["translate"])("TagManager_PageViewTriggerName"),""),Object(u["translate"])("TagManager_PageViewTriggerName"),'',"")},fetchFollowStep5:function(){return Object(u["translate"])("TagManager_SPAFollowStep5","".concat(Object(u["translate"])("TagManager_HistoryChangeTriggerName"),""),Object(u["translate"])("TagManager_CategoryUserEngagement"))},fetchFollowStep8:function(){return Object(u["translate"])("TagManager_SPAFollowStep8","".concat(Object(u["translate"])("TagManager_PageViewTriggerName"),""),"".concat(Object(u["translate"])("TagManager_MatomoTagName"),""),Object(u["translate"])("TagManager_PageViewTriggerName"),'',"")},fetchFollowStep9:function(){return Object(u["translate"])("TagManager_SPAFollowStep9",Object(u["translate"])("TagManager_ConfigureWhatTagDoes"),Object(u["translate"])("TagManager_CustomTitle"),"","")},fetchFollowStep10:function(){return Object(u["translate"])("TagManager_SPAFollowStep10",Object(u["translate"])("TagManager_CustomUrl"))},fetchFollowStep10a:function(){return Object(u["translate"])("TagManager_SPAFollowStep10a","","",Object(u["translate"])("TagManager_CustomUrl"))},fetchFollowStep10b:function(){return Object(u["translate"])("TagManager_SPAFollowStep10b",Object(u["translate"])("TagManager_CustomUrl"),"","")},fetchFollowStep11:function(){return Object(u["translate"])("TagManager_SPAFollowStep11",Object(u["translate"])("TagManager_ConfigureWhenTagDoes"),Object(u["translate"])("TagManager_FireTriggerTitle"),"".concat(Object(u["translate"])("TagManager_HistoryChangeTriggerName"),""),"".concat(Object(u["translate"])("TagManager_PageViewTriggerName"),""))},fetchFollowStep13:function(){return Object(u["translate"])("TagManager_SPAFollowStep13",Object(u["translate"])("TagManager_Publish"))},fetchFollowStep14:function(){return Object(u["translate"])("TagManager_SPAFollowStep14",Object(u["translate"])("TagManager_VersionName"),"","")},fetchFollowStep15:function(){return Object(u["translate"])("TagManager_SPAFollowStep15",Object(u["translate"])("TagManager_CreateVersionAndPublishRelease"))},fetchFollowStep16SPA:function(){return Object(u["translate"])("TagManager_SPAFollowStep16","</head>",'',"")},fetchFollowStep16React:function(){return Object(u["translate"])("TagManager_ReactFollowStep16","","","App.js","React.useEffect","Hello World","React.js")}}});Ab.render=xb;var Bb,Lb,Ub=Ab,Ib={class:"nav-wrapper"},Pb={class:"pull-right"},Hb=Object(i["createElementVNode"])("svg",{"aria-hidden":"true",style:{position:"absolute",width:"0",height:"0",overflow:"hidden"},version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[Object(i["createElementVNode"])("defs",null,[Object(i["createElementVNode"])("symbol",{id:"tm-icon-checkmark",viewBox:"0 0 32 32"},[Object(i["createElementVNode"])("path",{d:"M27 4l-15 15-7-7-5 5 12 12 20-20z"})])])],-1),Fb={class:"page",style:{clear:"both"}},Gb={key:0,id:"secondNavBar",class:"Menu--dashboard z-depth-1"},$b={class:"navbar",role:"menu",style:{padding:"0"}},Rb={class:"menuTab",role:"menuitem"},zb={class:"item",style:{"font-weight":"normal"}},Wb=Object(i["createTextVNode"])(" Events "),qb={key:0},Xb=Object(i["createElementVNode"])("br",null,null,-1),Kb=Object(i["createElementVNode"])("br",null,null,-1),Jb=Object(i["createElementVNode"])("label",{for:"onlyfiredTags",class:"lbl-onlyfiredTags"},"Only fired tags",-1),Yb={key:0,style:{padding:"0 0 1rem 1.2rem"}},Qb=["onClick","title"],Zb={title:"This tag was fired"},em=Object(i["createElementVNode"])("svg",{class:"tm-icon tm-icon-checkmark"},[Object(i["createElementVNode"])("use",{"xlink:href":"#tm-icon-checkmark"})],-1),tm=[em],nm={class:"pageWrap"},am={class:"home",id:"content"},rm=Object(i["createElementVNode"])("h3",null,"Fired Tags",-1),im={class:"entityTable"},om=Object(i["createElementVNode"])("thead",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("th",null,"Action"),Object(i["createElementVNode"])("th",null,"Name"),Object(i["createElementVNode"])("th",null,"Type"),Object(i["createElementVNode"])("th",null,"Fired count")])],-1),lm={key:0},cm=Object(i["createElementVNode"])("td",{colspan:"4"},"No tags",-1),sm=[cm],dm=Object(i["createElementVNode"])("h3",{style:{"margin-top":"30px"}},"Not Yet Fired Tags",-1),um={class:"entityTable"},gm=Object(i["createElementVNode"])("thead",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("th",null,"Name"),Object(i["createElementVNode"])("th",null,"Type")])],-1),bm=Object(i["createElementVNode"])("td",{colspan:"4"},"No tags",-1),mm=[bm],pm=Object(i["createElementVNode"])("h3",null,"Triggers",-1),hm={class:"entityTable"},fm=Object(i["createElementVNode"])("thead",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("th",null,"Name"),Object(i["createElementVNode"])("th",null,"Type")])],-1),vm={key:0},jm=Object(i["createElementVNode"])("td",{colspan:"4"},"No trigger",-1),Om=[jm],Tm={key:1},Vm=Object(i["createElementVNode"])("h3",null,"Pushed data by this event",-1),ym={class:"entityTable"},Cm={style:{"word-break":"break-all"}},Nm=Object(i["createElementVNode"])("br",null,null,-1),Em=Object(i["createElementVNode"])("h3",null,"Content after this event",-1),Sm={class:"entityTable"},km={style:{"word-break":"break-all"}},wm={class:"entityTable"},Mm=Object(i["createElementVNode"])("thead",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("th",null,"Name"),Object(i["createElementVNode"])("th",null,"Type"),Object(i["createElementVNode"])("th",null,"Value")])],-1),_m={key:0},Dm=Object(i["createElementVNode"])("td",{colspan:"3"},"No variables",-1),xm=[Dm],Am={style:{"word-break":"break-all"}},Bm={class:"entityTable"},Lm=Object(i["createElementVNode"])("thead",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("th",null,"Time"),Object(i["createElementVNode"])("th",null,"Message")])],-1),Um={style:{"word-break":"break-all"}},Im=Object(i["createElementVNode"])("br",null,null,-1);function Pm(e,t,n,a,r,o){var l,c,s,d,u,g,b,m,p,h;return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",null,[Object(i["createElementVNode"])("nav",null,[Object(i["createElementVNode"])("div",Ib,[Object(i["createElementVNode"])("ul",null,[Object(i["createElementVNode"])("li",null,[Object(i["renderSlot"])(e.$slots,"logo")]),Object(i["createElementVNode"])("li",{class:Object(i["normalizeClass"])({active:"tags"===e.contentTab||!e.contentTab})},[Object(i["createElementVNode"])("a",{onClick:t[0]||(t[0]=function(t){return e.contentTab="tags"})},"Tags")],2),Object(i["createElementVNode"])("li",{class:Object(i["normalizeClass"])({active:"triggers"===e.contentTab})},[Object(i["createElementVNode"])("a",{onClick:t[1]||(t[1]=function(t){return e.contentTab="triggers"})},"Triggers")],2),Object(i["createElementVNode"])("li",{class:Object(i["normalizeClass"])({active:"variables"===e.contentTab})},[Object(i["createElementVNode"])("a",{onClick:t[2]||(t[2]=function(t){return e.contentTab="variables"})},"Variables")],2),Object(i["createElementVNode"])("li",{class:Object(i["normalizeClass"])({active:"dataLayer"===e.contentTab})},[Object(i["createElementVNode"])("a",{onClick:t[3]||(t[3]=function(t){return e.contentTab="dataLayer"})},"Data Layer")],2),Object(i["createElementVNode"])("li",{class:Object(i["normalizeClass"])({active:"logs"===e.contentTab})},[Object(i["createElementVNode"])("a",{onClick:t[4]||(t[4]=function(t){return e.contentTab="logs"})},"Logs")],2),Object(i["createElementVNode"])("li",Pb,[Object(i["createElementVNode"])("a",{id:"mtmUpdateDebugPosition",onClick:t[5]||(t[5]=function(t){return e.mtmUpdateDebugPosition()})},Object(i["toDisplayString"])(e.positionText),1)])])])]),Hb,Object(i["createElementVNode"])("div",Fb,["logs"!==e.contentTab?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Gb,[Object(i["createElementVNode"])("ul",$b,[Object(i["createElementVNode"])("li",Rb,[Object(i["createElementVNode"])("span",zb,[Wb,e.mtmEvents.length>0?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",qb,[Xb,Kb,Object(i["withDirectives"])(Object(i["createElementVNode"])("input",{type:"checkbox",class:"onlyFiredTags-chk",name:"onlyfiredTags",id:"onlyfiredTags",value:"1","onUpdate:modelValue":t[6]||(t[6]=function(t){return e.onlyfiredTags=t}),style:{"margin-right":"3.5px"}},null,512),[[i["vModelCheckbox"],e.onlyfiredTags]]),Jb])):Object(i["createCommentVNode"])("",!0)])]),0===e.mtmEvents.length?(Object(i["openBlock"])(),Object(i["createElementBlock"])("li",Yb,"No event executed")):Object(i["createCommentVNode"])("",!0),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.mtmEventsReversed,(function(t,n){var a,r;return Object(i["openBlock"])(),Object(i["createElementBlock"])("li",{class:Object(i["normalizeClass"])(["menuTab",{active:n===e.selectedEventIndex}]),role:"menuitem",key:n},[(t.tags||[]).length||!e.onlyfiredTags?(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:0,class:"item",onClick:function(n){return e.selectEvent(t.index0)},title:"Time: ".concat(t.time,". Trigger: ").concat(null===(a=t.metTrigger)||void 0===a?void 0:a.name)},[Object(i["createTextVNode"])(Object(i["toDisplayString"])(t.index)+": "+Object(i["toDisplayString"])(t.name)+" ",1),Object(i["withDirectives"])(Object(i["createElementVNode"])("span",Zb,tm,512),[[i["vShow"],null===(r=t.tags)||void 0===r?void 0:r.length]])],8,Qb)):Object(i["createCommentVNode"])("",!0)],2)})),128))])])):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("div",nm,[Object(i["createElementVNode"])("div",am,[Object(i["withDirectives"])(Object(i["createElementVNode"])("h2",null,Object(i["toDisplayString"])(e.homeTabTitle),513),[[i["vShow"],"logs"!==e.contentTab]]),Object(i["withDirectives"])(Object(i["createElementVNode"])("div",null,[rm,Object(i["createElementVNode"])("table",im,[om,Object(i["createElementVNode"])("tbody",null,[null!==(l=e.selectedEvent)&&void 0!==l&&null!==(c=l.tags)&&void 0!==c&&c.length?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",lm,sm)),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])((null===(s=e.selectedEvent)||void 0===s?void 0:s.tags)||[],(function(e,t){return Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",{key:t},[Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(e.action),1),Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(e.name),1),Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(e.type),1),Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(e.numExecuted),1)])})),128))])]),dm,Object(i["createElementVNode"])("table",um,[gm,Object(i["createElementVNode"])("tbody",null,[Object(i["withDirectives"])(Object(i["createElementVNode"])("tr",null,mm,512),[[i["vShow"],0===e.notFiredTags.length]]),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.notFiredTags,(function(e,t){return Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",{key:t},[Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(e.name),1),Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(e.type),1)])})),128))])])],512),[[i["vShow"],"tags"===e.contentTab||!e.contentTab]]),Object(i["withDirectives"])(Object(i["createElementVNode"])("div",null,[pm,Object(i["createElementVNode"])("table",hm,[fm,Object(i["createElementVNode"])("tbody",null,[null!==(d=e.selectedEvent)&&void 0!==d&&d.metTrigger?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",vm,Om)),null!==(u=e.selectedEvent)&&void 0!==u&&u.metTrigger?(Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",Tm,[Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(e.selectedEvent.metTrigger.name),1),Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(e.selectedEvent.metTrigger.type),1)])):Object(i["createCommentVNode"])("",!0)])])],512),[[i["vShow"],"triggers"===e.contentTab]]),Object(i["withDirectives"])(Object(i["createElementVNode"])("div",null,[Vm,Object(i["createElementVNode"])("table",ym,[Object(i["createElementVNode"])("tbody",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("td",Cm,Object(i["toDisplayString"])(e.selectedEventData),1)])])]),Nm,Em,Object(i["createElementVNode"])("table",Sm,[Object(i["createElementVNode"])("tbody",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("td",km,Object(i["toDisplayString"])(e.selectedEventContainerDataLayer),1)])])])],512),[[i["vShow"],"dataLayer"===e.contentTab]]),Object(i["withDirectives"])(Object(i["createElementVNode"])("div",null,[Object(i["createElementVNode"])("table",wm,[Mm,Object(i["createElementVNode"])("tbody",null,[null!==(g=e.selectedEvent)&&void 0!==g&&null!==(b=g.container)&&void 0!==b&&null!==(m=b.variables)&&void 0!==m&&m.length?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",_m,xm)),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])((null===(p=e.selectedEvent)||void 0===p||null===(h=p.container)||void 0===h?void 0:h.variables)||[],(function(t,n){return Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",{key:n},[Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(t.name),1),Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(t.type),1),Object(i["createElementVNode"])("td",Am,Object(i["toDisplayString"])(e.stringifySelectedVariable(t)),1)])})),128))])])],512),[[i["vShow"],"variables"===e.contentTab]]),Object(i["withDirectives"])(Object(i["createElementVNode"])("div",null,[Object(i["createElementVNode"])("table",Bm,[Lm,Object(i["createElementVNode"])("tbody",null,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.mtmLogs,(function(e,t){return Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",{key:t},[Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(e.time),1),Object(i["createElementVNode"])("td",Um,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.messages,(function(e,t){return Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:t},[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e),1),Im])})),128))])])})),128))])])],512),[[i["vShow"],"logs"===e.contentTab]])])])])])}function Hm(e){return Rm(e)||$m(e)||Gm(e)||Fm()}function Fm(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Gm(e,t){if(e){if("string"===typeof e)return zm(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)?zm(e,t):void 0}}function $m(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Rm(e){if(Array.isArray(e))return zm(e)}function zm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);nt||n.push.apply(n,Hm(e.tags.map((function(e){return e.name}))))}));var a=[];return this.selectedEvent.container.tags.forEach((function(e){-1===n.indexOf(e.name)&&a.push(e)})),a},selectedEvent:function(){return this.mtmEvents[this.selectedEventIndex]},mtmEvents:function(){return window.mtmDbgData.mtmEvents},mtmEventsReversed:function(){var e=Hm(this.mtmEvents);return e.reverse(),e},mtmLogs:function(){return window.mtmDbgData.mtmLogs},selectedEventData:function(){var e;return(null===(e=this.selectedEvent)||void 0===e?void 0:e.eventData)&&JSON.stringify(this.selectedEvent.eventData,Jm())},selectedEventContainerDataLayer:function(){var e,t;return(null===(e=this.selectedEvent)||void 0===e||null===(t=e.container)||void 0===t?void 0:t.dataLayer)&&JSON.stringify(this.selectedEvent.container.dataLayer,Jm())}}});Ym.render=Pm;var Qm=Ym,Zm={class:"tagManagerGettingStarted"},ep=Object(i["createElementVNode"])("br",null,null,-1),tp=Object(i["createElementVNode"])("br",null,null,-1),np=Object(i["createElementVNode"])("br",null,null,-1),ap=Object(i["createElementVNode"])("br",null,null,-1),rp=Object(i["createElementVNode"])("br",null,null,-1),ip=["innerHTML"],op=Object(i["createElementVNode"])("br",null,null,-1),lp=Object(i["createElementVNode"])("br",null,null,-1),cp=Object(i["createElementVNode"])("br",null,null,-1),sp=Object(i["createElementVNode"])("br",null,null,-1),dp=["innerHTML"];function up(e,t,n,a,r,o){var l=Object(i["resolveComponent"])("ContentBlock");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Zm,[Object(i["createElementVNode"])("h2",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStarted")),1),Object(i["createVNode"])(l,{"content-title":e.translate("CorePluginsAdmin_WhatIsTagManager")},{default:Object(i["withCtx"])((function(){return[Object(i["createElementVNode"])("p",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedWhatIsIntro")),1),Object(i["createElementVNode"])("ul",null,[Object(i["createElementVNode"])("li",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedAnalyticsTracking")),1),Object(i["createElementVNode"])("li",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedConversionTracking")),1),Object(i["createElementVNode"])("li",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedNewsletterSignups")),1),Object(i["createElementVNode"])("li",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedExitActions")),1),Object(i["createElementVNode"])("li",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedRemarketing")),1),Object(i["createElementVNode"])("li",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedSocialWidgets")),1),Object(i["createElementVNode"])("li",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedAffiliates")),1),Object(i["createElementVNode"])("li",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedAds")),1),Object(i["createElementVNode"])("li",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedAndMore")),1)]),Object(i["createElementVNode"])("p",null,[ep,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedMainComponents")),1)]),Object(i["createElementVNode"])("ul",null,[Object(i["createElementVNode"])("li",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedTagComponent")),1),Object(i["createElementVNode"])("li",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedTriggerComponent")),1),Object(i["createElementVNode"])("li",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedVariableComponent")),1)])]})),_:1},8,["content-title"]),Object(i["createVNode"])(l,{"content-title":e.translate("TagManager_GettingStartedWhyDoINeed")},{default:Object(i["withCtx"])((function(){return[Object(i["createElementVNode"])("p",null,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedWhyMakesLifeEasier"))+" ",1),tp,np,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedWhyThirdPartySnippets"))+" ",1),ap,rp,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedWhyAccuracyPerformance")),1)])]})),_:1},8,["content-title"]),e.canEdit?(Object(i["openBlock"])(),Object(i["createBlock"])(l,{key:0,"content-title":e.translate("TagManager_GettingStartedHowDoI")},{default:Object(i["withCtx"])((function(){return[Object(i["createElementVNode"])("p",null,[Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.gettingStartedHowCreateContainerText)},null,8,ip),Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedHowCopyCode"))+" ",1),op,lp,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedHowAddTagsToContainer")),1)])]})),_:1},8,["content-title"])):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(l,{"content-title":e.translate("TagManager_GettingStartedWhatIfUnsupported")},{default:Object(i["withCtx"])((function(){return[Object(i["createElementVNode"])("p",null,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedCustomTags"))+" ",1),cp,sp,Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.gettingStartedContributeTagsText)},null,8,dp)])]})),_:1},8,["content-title"])])}var gp=Object(i["defineComponent"])({props:{canEdit:Boolean},components:{ContentBlock:u["ContentBlock"]},computed:{gettingStartedHowCreateContainerText:function(){var e="?".concat(u["MatomoUrl"].stringify({module:"TagManager",action:"manageContainers"}),"}");return Object(u["translate"])("TagManager_GettingStartedHowCreateContainer",''),"")},gettingStartedContributeTagsText:function(){var e="https://developer.matomo.org/guides/tagmanager/settingup";return Object(u["translate"])("TagManager_GettingStartedContributeTags",''),"")}}});gp.render=up;var bp=gp; + */var $s=function(){function e(){var t=this;Ps(this,e),Gs(this,"privateState",Object(i["reactive"])({containers:[],isLoadingContainers:!1,isLoadingSingle:!1,isUpdating:!1})),Gs(this,"state",Object(i["computed"])((function(){return Object(i["readonly"])(t.privateState)}))),Gs(this,"isLoading",Object(i["computed"])((function(){var e=t.state.value;return e.isLoadingContainers||e.isLoadingSingle}))),Gs(this,"isUpdating",Object(i["computed"])((function(){return t.state.value.isUpdating}))),Gs(this,"containers",Object(i["computed"])((function(){return t.state.value.containers}))),Gs(this,"fetchPromise",null)}return Fs(e,[{key:"reload",value:function(){return this.privateState.containers=[],this.fetchPromise=null,this.fetchContainers()}},{key:"fetchContainers",value:function(){var e=this;return this.privateState.isLoadingContainers=!0,this.privateState.containers=[],this.fetchPromise||(this.fetchPromise=u["AjaxHelper"].fetch({method:"TagManager.getContainers",filter_limit:"-1"})),Promise.resolve(this.fetchPromise).then((function(t){return e.privateState.containers=t,e.privateState.isLoadingContainers=!1,e.containers.value})).finally((function(){e.privateState.isLoadingContainers=!1}))}},{key:"findContainer",value:function(e){var t=this,n=this.containers.value.find((function(t){return t.idcontainer===e}));return n?Promise.resolve(n):(this.privateState.isLoadingSingle=!0,u["AjaxHelper"].fetch({idContainer:e,method:"TagManager.getContainer",filter_limit:"-1"}).then((function(e){return t.privateState.containers=[].concat(xs(t.privateState.containers),[e]),Object(i["readonly"])(e)})).finally((function(){t.privateState.isLoadingSingle=!1})))}},{key:"deleteContainer",value:function(e){var t=this;return this.privateState.isUpdating=!0,this.privateState.containers=[],u["AjaxHelper"].fetch({idContainer:e,method:"TagManager.deleteContainer"},{withTokenInUrl:!0}).finally((function(){t.privateState.isUpdating=!1}))}},{key:"createOrUpdateContainer",value:function(e,t){var n=this;return this.privateState.isUpdating=!0,u["AjaxHelper"].post({method:t,idContainer:e.idcontainer},{name:e.name,description:e.description,context:e.context},{withTokenInUrl:!0}).finally((function(){n.privateState.isUpdating=!1}))}}]),e}(),Rs=new $s,zs="containertagmanagement",Ws=Object(i["defineComponent"])({props:{idContainer:String},components:{ContentBlock:u["ContentBlock"],Field:g["Field"],SaveButton:g["SaveButton"]},data:function(){return{isDirty:!1,editTitle:"",isUpdatingVersion:!1,container:{}}},created:function(){Ds.init(),yt.init(),this.initIdContainer()},watch:{idContainer:function(e){null!==e&&this.initIdContainer()}},methods:{removeAnyContainerNotification:function(){u["NotificationsStore"].remove(zs),u["NotificationsStore"].remove("ajaxHelper")},showNotification:function(e,t){var n=u["NotificationsStore"].show({message:e,context:t,id:zs,type:"transient"});setTimeout((function(){u["NotificationsStore"].scrollToNotification(n)}),200)},showErrorFieldNotProvidedNotification:function(e){var t=Object(u["translate"])("TagManager_ErrorXNotProvided",[e]);this.showNotification(t,"error")},initIdContainer:function(){var e=this;this.container={},u["Matomo"].helper.lazyScrollToContent(),this.edit&&this.idContainer?(this.editTitle=Object(u["translate"])("TagManager_EditContainer"),Rs.findContainer(this.idContainer).then((function(t){t&&(e.container=Object(u["clone"])(t),e.isDirty=!1)}))):this.create&&(this.editTitle=Object(u["translate"])("TagManager_CreateNewContainer"),this.container={idSite:u["Matomo"].idSite,name:"",context:"web",description:""},this.isDirty=!1)},cancel:function(){var e=Object.assign({},u["MatomoUrl"].hashParsed.value);delete e.idContainer,u["MatomoUrl"].updateHash(e)},createContainer:function(){var e=this;this.removeAnyContainerNotification(),this.checkRequiredFieldsAreSet()&&(this.isUpdatingVersion=!0,Rs.createOrUpdateContainer(this.container,"TagManager.addContainer").then((function(t){if(e.isUpdatingVersion=!1,t){e.isDirty=!1;var n=t.value;e.showNotification(Object(u["translate"])("TagManager_CreatedX",Object(u["translate"])("TagManager_Container")),"success"),u["MatomoUrl"].updateUrl(Object.assign(Object.assign({},u["MatomoUrl"].urlParsed.value),{},{module:"TagManager",action:"dashboard",idContainer:n}))}})).finally((function(){e.isUpdatingVersion=!1})))},setValueHasChanged:function(){this.isDirty=!0},updateContainer:function(){var e=this;this.removeAnyContainerNotification(),this.checkRequiredFieldsAreSet()&&(this.isUpdating=!0,Rs.createOrUpdateContainer(this.container,"TagManager.updateContainer").then((function(t){t&&(e.isDirty=!1,e.container={},Rs.reload().then((function(){e.initIdContainer()})),e.showNotification(Object(u["translate"])("TagManager_UpdatedX",Object(u["translate"])("TagManager_Container")),"success"))})))},checkRequiredFieldsAreSet:function(){if(!this.container.name){var e=Object(u["translate"])("General_Name");return this.showErrorFieldNotProvidedNotification(e),!1}return!0}},computed:{contexts:function(){return Ds.contextsOptions.value},create:function(){return"0"===this.idContainer},edit:function(){return!this.create},isLoading:function(){return ft.isLoading.value||yt.isLoading.value},isUpdating:function(){return ft.isUpdating.value||this.isUpdatingVersion}}});Ws.render=Es;var qs=Ws,Xs={class:"tagManagerManageList tagManagerContainerList"},Ks={class:"index"},Js={class:"name"},Ys={class:"description"},Qs={class:"created"},Zs={class:"action"},ed={colspan:"5"},td={class:"loadingPiwik"},nd=Object(i["createElementVNode"])("img",{src:"plugins/Morpheus/images/loading-blue.gif"},null,-1),ad={colspan:"5"},rd=["id"],id=["title"],od={class:"name"},ld=["title"],cd={class:"created"},sd={class:"action"},dd=["href","title"],ud=["onClick","title"],gd=["onClick","title"],bd=["onClick","title"],md={class:"tableActionBar"},pd=Object(i["createElementVNode"])("span",{class:"icon-add"}," ",-1),hd={class:"ui-confirm",id:"confirmDeleteContainer",ref:"confirmDeleteContainer"},fd=["value"],vd=["value"];function jd(e,t,n,a,r,o){var l=Object(i["resolveComponent"])("ContentBlock"),c=Object(i["resolveDirective"])("content-table");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Xs,[Object(i["createVNode"])(l,{feature:"Tag Manager","content-title":e.translate("TagManager_ManageX",e.translate("TagManager_Containers"))},{default:Object(i["withCtx"])((function(){return[Object(i["createElementVNode"])("p",null,Object(i["toDisplayString"])(e.translate("TagManager_ContainerUsageBenefits")),1),Object(i["withDirectives"])(Object(i["createElementVNode"])("table",null,[Object(i["createElementVNode"])("thead",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("th",Ks,Object(i["toDisplayString"])(e.translate("General_Id")),1),Object(i["createElementVNode"])("th",Js,Object(i["toDisplayString"])(e.translate("General_Name")),1),Object(i["createElementVNode"])("th",Ys,Object(i["toDisplayString"])(e.translate("General_Description")),1),Object(i["createElementVNode"])("th",Qs,Object(i["toDisplayString"])(e.translate("TagManager_CreatedDate")),1),Object(i["createElementVNode"])("th",Zs,Object(i["toDisplayString"])(e.translate("General_Actions")),1)])]),Object(i["createElementVNode"])("tbody",null,[Object(i["withDirectives"])(Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("td",ed,[Object(i["createElementVNode"])("span",td,[nd,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("General_LoadingData")),1)])])],512),[[i["vShow"],e.isLoading||e.isUpdating]]),Object(i["withDirectives"])(Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("td",ad,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_NoContainersFound"))+" ",1),Object(i["withDirectives"])(Object(i["createElementVNode"])("a",{class:"createContainerNow",onClick:t[0]||(t[0]=function(t){return e.createContainer()})},Object(i["toDisplayString"])(e.translate("TagManager_CreateNewContainerNow")),513),[[i["vShow"],e.hasWriteAccess]])])],512),[[i["vShow"],!e.isLoading&&0===e.containers.length]]),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.sortedContainers,(function(t){return Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",{id:"container".concat(t.idcontainer),class:"containers",key:t.idcontainer},[Object(i["createElementVNode"])("td",{class:"index",title:"".concat(e.translate("TagManager_Context"),": ")+e.contexts[t.context]},Object(i["toDisplayString"])(t.idcontainer),9,id),Object(i["createElementVNode"])("td",od,Object(i["toDisplayString"])(t.name),1),Object(i["createElementVNode"])("td",{class:"description",title:t.description},Object(i["toDisplayString"])(e.truncateText(t.description,50)),9,ld),Object(i["createElementVNode"])("td",cd,[Object(i["createElementVNode"])("span",null,Object(i["toDisplayString"])(t.created_date_pretty),1)]),Object(i["createElementVNode"])("td",sd,[Object(i["createElementVNode"])("a",{class:"table-action icon-configure",href:"?module=TagManager&action="+e.containerDefaultAction+"&idContainer="+t.idcontainer+"&idSite="+t.idsite+"&period=day&date=yesterday",title:e.translate("TagManager_ConfigureX",e.translate("TagManager_Container"))},null,8,dd),Object(i["createElementVNode"])("a",{class:"table-action installCode icon-embed",onClick:function(n){return e.installCode(t.idcontainer)},title:e.translate("TagManager_InstallCode")},null,8,ud),Object(i["withDirectives"])(Object(i["createElementVNode"])("a",{class:"table-action icon-edit",onClick:function(n){return e.editContainer(t.idcontainer)},title:e.translate("TagManager_EditX",e.translate("TagManager_Container"))},null,8,gd),[[i["vShow"],e.hasWriteAccess]]),Object(i["withDirectives"])(Object(i["createElementVNode"])("a",{class:"table-action icon-delete",onClick:function(n){return e.deleteContainer(t)},title:e.translate("TagManager_DeleteX",e.translate("TagManager_Container"))},null,8,bd),[[i["vShow"],e.hasWriteAccess]])])],8,rd)})),128))])],512),[[c]]),Object(i["withDirectives"])(Object(i["createElementVNode"])("div",md,[Object(i["createElementVNode"])("a",{class:"createNewContainer",value:"",onClick:t[1]||(t[1]=function(t){return e.createContainer()})},[pd,Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_CreateNewContainer")),1)])],512),[[i["vShow"],e.hasWriteAccess]])]})),_:1},8,["content-title"]),Object(i["createElementVNode"])("div",hd,[Object(i["createElementVNode"])("h2",null,Object(i["toDisplayString"])(e.translate("TagManager_DeleteContainerConfirm")),1),Object(i["createElementVNode"])("input",{role:"yes",type:"button",value:e.translate("General_Yes")},null,8,fd),Object(i["createElementVNode"])("input",{role:"no",type:"button",value:e.translate("General_No")},null,8,vd)],512)])}function Od(e){return Cd(e)||yd(e)||Vd(e)||Td()}function Td(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Vd(e,t){if(e){if("string"===typeof e)return Nd(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)?Nd(e,t):void 0}}function yd(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Cd(e){if(Array.isArray(e))return Nd(e)}function Nd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);nt.created_date?-1:0})),e}},methods:{createContainer:function(){this.editContainer("0")},editContainer:function(e){u["MatomoUrl"].updateHash(Object.assign(Object.assign({},u["MatomoUrl"].hashParsed.value),{},{idContainer:e}))},installCode:function(e){Sd.showInstallCode(e)},deleteContainer:function(e){function t(){Rs.deleteContainer(e.idcontainer).then((function(){Rs.reload()}))}u["Matomo"].helper.modalConfirm(this.$refs.confirmDeleteContainer,{yes:t})},truncateText:function(e,t){return e.length>t?"".concat(e.substr(0,t-3),"..."):e}}});kd.render=jd;var wd=kd,Md={class:"manageContainer"};function _d(e,t,n,a,r,o){var l=Object(i["resolveComponent"])("ContainerList"),c=Object(i["resolveComponent"])("ContainerEdit");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Md,[Object(i["withDirectives"])(Object(i["createElementVNode"])("div",null,[Object(i["createVNode"])(l)],512),[[i["vShow"],!e.editMode]]),Object(i["withDirectives"])(Object(i["createElementVNode"])("div",null,[Object(i["createVNode"])(c,{"id-container":e.idContainer},null,8,["id-container"])],512),[[i["vShow"],e.editMode]])])}var Dd=Object(i["defineComponent"])({props:{},components:{ContainerList:wd,ContainerEdit:qs},data:function(){return{isAddAllowed:!1}},created:function(){var e=this;Object(i["watch"])((function(){return u["MatomoUrl"].hashParsed.value.idContainer}),(function(t){e.onIdContainerParamChange(t)})),u["NotificationsStore"].remove("containertagmanagement"),this.onIdContainerParamChange(u["MatomoUrl"].hashParsed.value.idContainer)},computed:{idContainer:function(){var e=u["MatomoUrl"].hashParsed.value.idContainer;return this.isAddAllowed||""!==e?e:null},editMode:function(){return!!this.idContainer}},methods:{onIdContainerParamChange:function(e){if("0"===e){var t={isAllowed:!0};u["Matomo"].postEvent("TagManager.initAddVersion",t),this.isAddAllowed=!!t.isAllowed}}}});Dd.render=_d;var xd=Dd,Ad={class:"containerDashboard"},Bd={key:0},Ld={class:"dashboardCreationDate"},Ud={key:0},Id=Object(i["createElementVNode"])("br",null,null,-1),Pd={class:"row",style:{"margin-left":"-0.75rem"}},Hd={class:"col m6 s12"},Fd={key:0},Gd=["href","title"],$d={key:0},Rd=Object(i["createElementVNode"])("hr",null,null,-1),zd=["href"],Wd=Object(i["createElementVNode"])("span",{class:"icon-edit"}," ",-1),qd=["href"],Xd=Object(i["createElementVNode"])("span",{class:"icon-add"}," ",-1),Kd={class:"col m6 s12"},Jd={key:0},Yd=["href","title"],Qd=Object(i["createElementVNode"])("hr",null,null,-1),Zd=["href"],eu=Object(i["createElementVNode"])("span",{class:"icon-edit"}," ",-1),tu=["href"],nu=Object(i["createElementVNode"])("span",{class:"icon-add"}," ",-1),au={class:"row",style:{"margin-left":"-0.75rem"}},ru={class:"col m6 s12"},iu=["href","title"],ou={key:0},lu=Object(i["createElementVNode"])("hr",null,null,-1),cu=["href"],su=Object(i["createElementVNode"])("span",{class:"icon-edit"}," ",-1),du=["href"],uu=Object(i["createElementVNode"])("span",{class:"icon-add"}," ",-1),gu={class:"col m6 s12"},bu=["title","href"],mu={key:0},pu=Object(i["createElementVNode"])("br",null,null,-1),hu=["title"],fu={key:0},vu=Object(i["createElementVNode"])("hr",null,null,-1),ju=["href"],Ou=Object(i["createElementVNode"])("span",{class:"icon-edit"}," ",-1),Tu=["href"],Vu=Object(i["createElementVNode"])("span",{class:"icon-add"}," ",-1);function yu(e,t,n,a,r,o){var l,c,s=Object(i["resolveComponent"])("ActivityIndicator"),d=Object(i["resolveComponent"])("EnrichedHeadline"),u=Object(i["resolveComponent"])("ContentBlock"),g=Object(i["resolveDirective"])("content-intro");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Ad,[Object(i["createVNode"])(s,{loading:e.isLoading},null,8,["loading"]),e.isLoading?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Bd,[Object(i["withDirectives"])(Object(i["createElementVNode"])("div",null,[Object(i["createElementVNode"])("h2",null,[Object(i["createVNode"])(d,{"feature-name":"Tag Manager","inline-help":e.dashboardHelpText},{default:Object(i["withCtx"])((function(){var t;return[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_ContainerX",null===(t=e.container)||void 0===t?void 0:t.name)),1)]})),_:1},8,["inline-help"])]),Object(i["createElementVNode"])("p",Ld,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.containerMetaInformation)+" ",1),null!==(l=e.containerVersion)&&void 0!==l&&l.description?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Ud,[Id,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("General_Description"))+": "+Object(i["toDisplayString"])(null===(c=e.containerVersion)||void 0===c?void 0:c.description),1)])):Object(i["createCommentVNode"])("",!0)])],512),[[g]]),Object(i["createElementVNode"])("div",Pd,[Object(i["createElementVNode"])("div",Hd,[Object(i["createVNode"])(u,{feature:"Tag Manager","content-title":"".concat(e.tagCount," ").concat(e.translate("TagManager_Tags")),"help-text":e.tagsHelpText},{default:Object(i["withCtx"])((function(){return[Object(i["createElementVNode"])("p",null,[e.tagCount?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Fd,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_Names"))+": ",1),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.sortedContainerVersionTags,(function(t,n){return Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:n},[Object(i["createElementVNode"])("a",{href:e.linkTo("manageTags",{idTag:t.idtag}),title:e.translate("TagManager_EntityDateTypeMetaInformation",t.created_date_pretty,t.updated_date_pretty,t.type)},Object(i["toDisplayString"])(t.name),9,Gd),n!==e.sortedContainerVersionTags.length-1?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",$d,", ")):Object(i["createCommentVNode"])("",!0)])})),128))])):Object(i["createCommentVNode"])("",!0)]),Rd,Object(i["createElementVNode"])("a",{class:"btn-flat",href:e.linkTo("manageTags")},[Wd,Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_EditTags")),1)],8,zd),Object(i["createElementVNode"])("a",{class:"btn-flat",href:e.linkTo("manageTags",{idTag:0})},[Xd,Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_CreateNewTag")),1)],8,qd)]})),_:1},8,["content-title","help-text"])]),Object(i["createElementVNode"])("div",Kd,[Object(i["createVNode"])(u,{feature:"Tag Manager","content-title":"".concat(e.triggerCount," ").concat(e.translate("TagManager_Triggers")),"help-text":e.triggersHelpText},{default:Object(i["withCtx"])((function(){return[Object(i["createElementVNode"])("p",null,[e.triggerCount?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Jd,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_Names"))+": ",1),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.sortedTriggers,(function(t,n){return Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:n},[Object(i["createElementVNode"])("a",{href:e.linkTo("manageTriggers",{idTrigger:t.idtrigger}),title:e.translate("TagManager_EntityDateTypeMetaInformation",t.created_date_pretty,t.updated_date_pretty,t.type)},Object(i["toDisplayString"])(t.name),9,Yd),Object(i["withDirectives"])(Object(i["createElementVNode"])("span",null,", ",512),[[i["vShow"],n!==e.sortedTriggers.length-1]])])})),128))])):Object(i["createCommentVNode"])("",!0)]),Qd,Object(i["createElementVNode"])("a",{class:"btn-flat",href:e.linkTo("manageTriggers")},[eu,Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_EditTriggers")),1)],8,Zd),Object(i["createElementVNode"])("a",{class:"btn-flat",href:e.linkTo("manageTriggers",{idTrigger:0})},[nu,Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_CreateNewTrigger")),1)],8,tu)]})),_:1},8,["content-title","help-text"])])]),Object(i["createElementVNode"])("div",au,[Object(i["createElementVNode"])("div",ru,[Object(i["createVNode"])(u,{feature:"Tag Manager","content-title":"".concat(e.variableCount," ").concat(e.translate("TagManager_Variables")),"help-text":e.variablesHelpText},{default:Object(i["withCtx"])((function(){return[Object(i["createElementVNode"])("p",null,[Object(i["withDirectives"])(Object(i["createElementVNode"])("span",null,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_Names"))+": ",1),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.sortedVariables,(function(t,n){return Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:n},[Object(i["createElementVNode"])("a",{href:e.linkTo("manageVariables",{idVariable:t.idvariable}),title:e.translate("TagManager_EntityDateTypeMetaInformation",t.created_date_pretty,t.updated_date_pretty,t.type)},Object(i["toDisplayString"])(t.name),9,iu),n!==e.sortedVariables.length-1?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",ou,", ")):Object(i["createCommentVNode"])("",!0)])})),128))],512),[[i["vShow"],e.variableCount]])]),lu,Object(i["createElementVNode"])("a",{class:"btn-flat",href:e.linkTo("manageVariables")},[su,Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_EditVariables")),1)],8,cu),Object(i["createElementVNode"])("a",{class:"btn-flat",href:e.linkTo("manageVariables",{idVariable:0})},[uu,Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_CreateNewVariable")),1)],8,du)]})),_:1},8,["content-title","help-text"])]),Object(i["createElementVNode"])("div",gu,[Object(i["createVNode"])(u,{feature:"Tag Manager","content-title":"".concat(e.versionCount," ").concat(e.translate("TagManager_Versions")),"help-text":e.versionsHelpText},{default:Object(i["withCtx"])((function(){return[Object(i["createElementVNode"])("p",null,[Object(i["withDirectives"])(Object(i["createElementVNode"])("span",null,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_LastVersions"))+": ",1),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.lastVersions,(function(t,n){return Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:n},[Object(i["createElementVNode"])("a",{title:e.lastVersionLinkTitle(t),href:e.linkTo("manageVersions",{idContainerVersion:t.idcontainerversion})},Object(i["toDisplayString"])(t.name),9,bu),n!==e.lastVersions.length-1?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",mu,", ")):Object(i["createCommentVNode"])("",!0)])})),128))],512),[[i["vShow"],e.lastVersions.length]]),Object(i["withDirectives"])(Object(i["createElementVNode"])("span",null,[pu,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("TagManager_Environments"))+": ",1),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.container.releases,(function(t,n){return Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:n},[Object(i["createElementVNode"])("span",{title:e.releaseTooltip(t)},Object(i["toDisplayString"])(e.ucfirst(t.environment)),9,hu),n!==e.container.releases.length-1?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",fu,", ")):Object(i["createCommentVNode"])("",!0)])})),128))],512),[[i["vShow"],e.container.releases.length]])]),vu,Object(i["createElementVNode"])("a",{class:"btn-flat",href:e.linkTo("manageVersions")},[Ou,Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_EditVersions")),1)],8,ju),Object(i["createElementVNode"])("a",{class:"btn-flat",href:e.linkTo("manageVersions",{idContainerVersion:0})},[Vu,Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_CreateNewVersion")),1)],8,Tu)]})),_:1},8,["content-title","help-text"])])])]))])}function Cu(e){e.sort((function(e,t){return e.namet.name?1:0}))}var Nu=Object(i["defineComponent"])({props:{idContainer:String,dashboardHelpText:String,tagsHelpText:String,triggersHelpText:String,variablesHelpText:String,versionsHelpText:String},components:{ActivityIndicator:u["ActivityIndicator"],EnrichedHeadline:u["EnrichedHeadline"],ContentBlock:u["ContentBlock"]},directives:{ContentIntro:u["ContentIntro"]},data:function(){return{container:null,containerVersion:null,isLoading:!1}},created:function(){var e=this;Ds.init(),this.isLoading=!0;var t=u["AjaxHelper"].fetch({method:"TagManager.getContainer",idContainer:this.idContainer}).then((function(t){e.container=t})),n=u["AjaxHelper"].fetch({method:"TagManager.exportContainerVersion",idContainer:this.idContainer}).then((function(t){e.containerVersion=t}));Promise.all([t,n]).finally((function(){e.isLoading=!1}))},methods:{linkTo:function(e,t){var n=u["MatomoUrl"].stringify(Object.assign(Object.assign({},u["MatomoUrl"].urlParsed.value),{},{module:"TagManager",action:e}));return t&&(n+="#?".concat(u["MatomoUrl"].stringify(t))),"?".concat(n)},lastVersionLinkTitle:function(e){return"Created on ".concat(e.created_date_pretty)+", description: '".concat(e.description,"'")},releaseTooltip:function(e){var t=Object(u["translate"])("TagManager_ReleaseInfo",e.release_login,e.release_date_pretty),n=Object(u["translate"])("TagManager_ReleaseVersionInfo",e.version_name);return"".concat(t," ").concat(n)},ucfirst:function(e){return"".concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))}},computed:{lastVersions:function(){var e,t;return null!==(e=this.container)&&void 0!==e&&null!==(t=e.versions)&&void 0!==t&&t.length?this.container.versions.slice(-5):[]},contexts:function(){var e={};return Ds.contexts.value.forEach((function(t){var n=t.id,a=t.name;e[n]=a})),e},containerMetaInformation:function(){var e,t,n;return Object(u["translate"])("TagManager_ContainerMetaInformation",(null===(e=this.containerVersion)||void 0===e?void 0:e.idcontainer)||"",this.contexts[(null===(t=this.container)||void 0===t?void 0:t.context)||""]||"",(null===(n=this.containerVersion)||void 0===n?void 0:n.created_date_pretty)||"")},sortedContainerVersionTags:function(){var e,t=(null===(e=this.containerVersion)||void 0===e?void 0:e.tags)||[];return Cu(t),t},sortedTriggers:function(){var e,t=(null===(e=this.containerVersion)||void 0===e?void 0:e.triggers)||[];return Cu(t),t},sortedVariables:function(){var e,t=(null===(e=this.containerVersion)||void 0===e?void 0:e.variables)||[];return Cu(t),t},tagCount:function(){var e;return null===(e=this.containerVersion)||void 0===e?void 0:e.tags.length},triggerCount:function(){var e;return null===(e=this.containerVersion)||void 0===e?void 0:e.triggers.length},versionCount:function(){var e;return null===(e=this.container)||void 0===e?void 0:e.versions.length},variableCount:function(){var e;return null===(e=this.containerVersion)||void 0===e?void 0:e.variables.length}}});Nu.render=yu;var Eu=Nu,Su=["title"],ku={class:"title"},wu=Object(i["createElementVNode"])("span",{class:"icon icon-chevron-down"}," ",-1),Mu={class:"dropdown positionInViewport"},_u={class:"custom_select_container"},Du={class:"custom_select_ul_list"},xu=["title"],Au=["href"];function Bu(e,t,n,a,r,o){var l=Object(i["resolveComponent"])("ActivityIndicator"),c=Object(i["resolveDirective"])("focus-anywhere-but-here");return Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:Object(i["normalizeClass"])(["tagContainerSelector piwikSelector borderedControl",{expanded:e.showContainerList}]),onClick:t[1]||(t[1]=function(t){e.fetchContainers(),e.showContainerList=!e.showContainerList}),title:e.translate("TagManager_ChooseContainer")},[Object(i["createElementVNode"])("a",ku,[wu,Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.actualContainerName),1)]),Object(i["withDirectives"])(Object(i["createElementVNode"])("div",Mu,[Object(i["createVNode"])(l,{loading:e.isLoading},null,8,["loading"]),Object(i["createElementVNode"])("div",_u,[Object(i["createElementVNode"])("ul",Du,[Object(i["withDirectives"])(Object(i["createElementVNode"])("li",null,[Object(i["createElementVNode"])("a",{tabindex:"-1",onClick:t[0]||(t[0]=Object(i["withModifiers"])((function(){}),["prevent","stop"]))},Object(i["toDisplayString"])(e.translate("TagManager_NoContainersFound")),1)],512),[[i["vShow"],!e.isLoading&&0===e.containers.length]]),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.containers,(function(t){return Object(i["openBlock"])(),Object(i["createElementBlock"])("li",{title:"".concat(t.name," (").concat(t.idcontainer,")"),key:t.idcontainer},[Object(i["createElementVNode"])("a",{href:e.linkTo(t.idcontainer)},Object(i["toDisplayString"])(t.name)+" ("+Object(i["toDisplayString"])(t.idcontainer)+") ",9,Au)],8,xu)})),128))])])],512),[[i["vShow"],e.showContainerList]])],10,Su)),[[c,{blur:e.onBlur}]])}var Lu=Object(i["defineComponent"])({props:{containerName:String},components:{ActivityIndicator:u["ActivityIndicator"]},directives:{FocusAnywhereButHere:u["FocusAnywhereButHere"]},data:function(){return{containers:[],isLoading:!1,showContainerList:!1}},created:function(){setTimeout((function(){window.initTopControls()}))},methods:{fetchContainers:function(){var e=this;this.isLoading=!0,this.containers=[],u["AjaxHelper"].fetch({method:"TagManager.getContainers"}).then((function(t){e.containers=t})).finally((function(){e.isLoading=!1}))},linkTo:function(e){var t=u["MatomoUrl"].urlParsed.value.action;t&&"manageContainers"!==t||(t=this.hasWriteAccess?"dashboard":"manageTags");var n=u["MatomoUrl"].stringify(Object.assign(Object.assign({},u["MatomoUrl"].urlParsed.value),{},{idContainer:e,action:t}));return"".concat(window.location.pathname,"?").concat(n)},onBlur:function(){this.showContainerList=!1}},computed:{actualContainerName:function(){return this.containerName?Object(u["translate"])("TagManager_ContainerX",this.containerName):Object(u["translate"])("TagManager_ChooseContainer")},hasWriteAccess:function(){return u["Matomo"].hasUserCapability("tagmanager_write")}}});Lu.render=Bu;var Uu=Lu,Iu={style:{"margin-left":"-0.75rem"}},Pu=Object(i["createElementVNode"])("br",null,null,-1),Hu=["href"],Fu=["textContent"],Gu={style:{"margin-top":"1rem"}},$u=["innerHTML"],Ru=Object(i["createElementVNode"])("br",null,null,-1),zu={target:"_blank",href:"https://matomo.org/faq/tag-manager/data-layer-in-matomo-tag-manager/"},Wu={class:"environment"},qu={class:"name"},Xu={class:"name"},Ku={class:"released_by"},Ju={class:"released_on"},Yu={key:0},Qu={colspan:"7"},Zu={class:"loadingPiwik"},eg=Object(i["createElementVNode"])("img",{src:"plugins/Morpheus/images/loading-blue.gif"},null,-1),tg={key:1},ng={colspan:"7"},ag={class:"environment"},rg={class:"name"},ig={class:"revision"},og={class:"released_by"},lg={class:"released_on"},cg={class:"date"};function sg(e,t,n,a,r,o){var l=Object(i["resolveComponent"])("Field"),c=Object(i["resolveComponent"])("ActivityIndicator"),s=Object(i["resolveComponent"])("ContentBlock"),d=Object(i["resolveDirective"])("select-on-focus"),u=Object(i["resolveDirective"])("content-table");return Object(i["openBlock"])(),Object(i["createBlock"])(s,{class:"manageInstallTagCode",feature:"Tag Manager","content-title":"Install Code"},{default:Object(i["withCtx"])((function(){var n,a;return[Object(i["createElementVNode"])("div",Iu,[Object(i["createVNode"])(l,{uicontrol:"select",name:"environment","model-value":e.environment,"onUpdate:modelValue":t[0]||(t[0]=function(t){e.environment=t,e.fetchInstallInstructions(e.environment)}),options:e.environments,title:e.translate("TagManager_Environment")},null,8,["model-value","options","title"])]),Object(i["createVNode"])(c,{loading:e.isLoading},null,8,["loading"]),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.installInstructions,(function(t,n){return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:n},[Object(i["createElementVNode"])("p",null,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(t.description)+" ",1),Pu,t.helpUrl?(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:0,target:"_blank",href:t.helpUrl},Object(i["toDisplayString"])(e.translate("TagManager_LearnMore")),9,Hu)):Object(i["createCommentVNode"])("",!0)]),t.embedCode?Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("pre",{key:0,class:"codeblock",textContent:Object(i["toDisplayString"])(t.embedCode),ref:"codeblock"},null,8,Fu)),[[d,{}]]):Object(i["createCommentVNode"])("",!0)])})),128)),Object(i["createElementVNode"])("p",null,Object(i["toDisplayString"])(e.translate("TagManager_InstallCodePublishEnvironmentNote","preview"))+" "+Object(i["toDisplayString"])(e.translate("TagManager_ConfigureEnvironmentsSuperUser")),1),Object(i["createElementVNode"])("p",Gu,[Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.translate("TagManager_InstallCodeDataLayerNote","",""))},null,8,$u),Ru,Object(i["createElementVNode"])("a",zu,Object(i["toDisplayString"])(e.translate("TagManager_LearnMore")),1)]),Object(i["createElementVNode"])("h2",null,Object(i["toDisplayString"])(e.translate("TagManager_ReleasesOverview")),1),Object(i["withDirectives"])(Object(i["createElementVNode"])("table",null,[Object(i["createElementVNode"])("thead",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("th",Wu,Object(i["toDisplayString"])(e.translate("TagManager_Environment")),1),Object(i["createElementVNode"])("th",qu,Object(i["toDisplayString"])(e.translate("TagManager_VersionName")),1),Object(i["createElementVNode"])("th",Xu,Object(i["toDisplayString"])(e.translate("TagManager_VersionRevision")),1),Object(i["createElementVNode"])("th",Ku,Object(i["toDisplayString"])(e.translate("TagManager_ReleasedBy")),1),Object(i["createElementVNode"])("th",Ju,Object(i["toDisplayString"])(e.translate("TagManager_ReleasedOn")),1)])]),Object(i["createElementVNode"])("tbody",null,[e.isLoading?(Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",Yu,[Object(i["createElementVNode"])("td",Qu,[Object(i["createElementVNode"])("span",Zu,[eg,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("General_LoadingData")),1)])])])):Object(i["createCommentVNode"])("",!0),e.isLoading||0!==(null===(n=e.container)||void 0===n||null===(a=n.releases)||void 0===a?void 0:a.length)?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",tg,[Object(i["createElementVNode"])("td",ng,Object(i["toDisplayString"])(e.translate("TagManager_NoReleasesFound")),1)])),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.sortedReleases,(function(t){var n,a;return Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",{key:t.idcontainerrelease},[Object(i["createElementVNode"])("td",ag,Object(i["toDisplayString"])(e.ucfirst(t.environment)),1),Object(i["createElementVNode"])("td",rg,Object(i["toDisplayString"])(null===(n=e.releaseVersions[t.idcontainerrelease])||void 0===n?void 0:n.name),1),Object(i["createElementVNode"])("td",ig,Object(i["toDisplayString"])(null===(a=e.releaseVersions[t.idcontainerrelease])||void 0===a?void 0:a.revision),1),Object(i["createElementVNode"])("td",og,Object(i["toDisplayString"])(t.release_login),1),Object(i["createElementVNode"])("td",lg,[Object(i["createElementVNode"])("span",cg,Object(i["toDisplayString"])(t.release_date_pretty),1)])])})),128))])],512),[[u]])]})),_:1})}function dg(e){return bg(e)||gg(e)||hg(e)||ug()}function ug(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function gg(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function bg(e){if(Array.isArray(e))return fg(e)}function mg(e,t){return jg(e)||vg(e,t)||hg(e,t)||pg()}function pg(){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 hg(e,t){if(e){if("string"===typeof e)return fg(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)?fg(e,t):void 0}}function fg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);nt.release_date?-1:t.index-e.index})),t}}});Vg.render=sg;var yg=Vg,Cg={class:"tagManagerTrackingCode"},Ng={key:1,class:"row"},Eg={class:"col s12 m4 "},Sg={class:"form-group row"},kg={class:"col s12 input-field"},wg={for:"tagManagerTrackingCodeSite",class:"siteSelectorLabel"},Mg={class:"sites_autocomplete"},_g={class:"col s12 m4"},Dg={class:"col s12 m4"},xg={key:2,class:"alert alert-info"},Ag={href:""},Bg={key:0},Lg=["href"],Ug=Object(i["createTextVNode"])(". "),Ig=["innerHTML"],Pg=Object(i["createTextVNode"])(". "),Hg=["innerHTML"],Fg=Object(i["createTextVNode"])(". "),Gg=["innerHTML"],$g=["textContent"],Rg=["innerHTML"],zg={key:1};function Wg(e,t,n,a,r,o){var l=this,c=Object(i["resolveComponent"])("ActivityIndicator"),s=Object(i["resolveComponent"])("SiteSelector"),d=Object(i["resolveComponent"])("Field"),u=Object(i["resolveDirective"])("copy-to-clipboard");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Cg,[e.showContainerRow||e.environments.length>1?Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createBlock"])(c,{key:0,loading:!0},null,512)),[[i["vShow"],e.isLoading]]):Object(i["createCommentVNode"])("",!0),e.showContainerRow||e.environments.length>1?Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Ng,[Object(i["createElementVNode"])("div",Eg,[Object(i["createElementVNode"])("div",Sg,[Object(i["createElementVNode"])("div",kg,[Object(i["createElementVNode"])("label",wg,Object(i["toDisplayString"])(e.translate("General_Website")),1),Object(i["createElementVNode"])("div",Mg,[Object(i["createVNode"])(s,{id:"tagManagerTrackingCodeSite",modelValue:e.site,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.site=t}),"show-all-sites-item":!1,"switch-site-on-select":!1,"show-selected-site":!0},null,8,["modelValue"])])])])]),Object(i["createElementVNode"])("div",_g,[Object(i["createElementVNode"])("div",null,[Object(i["createVNode"])(d,{uicontrol:"select",name:"containers","model-value":e.idContainer,"onUpdate:modelValue":t[1]||(t[1]=function(t){e.idContainer=t,e.onContainerChange()}),options:e.containerOptions,disabled:e.containerOptions.length<=1,"full-width":!0,title:e.translate("TagManager_Container")},null,8,["model-value","options","disabled","title"])])]),Object(i["createElementVNode"])("div",Dg,[Object(i["createElementVNode"])("div",null,[Object(i["createVNode"])(d,{uicontrol:"select",name:"environment","model-value":e.environment,"onUpdate:modelValue":t[2]||(t[2]=function(t){e.environment=t,l.$emit("fetchInstallInstructions")}),options:e.environments,disabled:e.environments.length<=1,"full-width":!0,title:e.translate("TagManager_Environment")},null,8,["model-value","options","disabled","title"])])])],512)),[[i["vShow"],!e.isLoading]]):Object(i["createCommentVNode"])("",!0),e.idContainer&&e.noReleaseFound?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",xg,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_NoReleasesFoundForContainer"))+" ",1),Object(i["createElementVNode"])("a",Ag,Object(i["toDisplayString"])(e.translate("TagManager_PublishVersionToEnvironmentToViewEmbedCode")),1)])):Object(i["createCommentVNode"])("",!0),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.installInstructions,(function(t,n){return Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:n},[e.showDescription?(Object(i["openBlock"])(),Object(i["createElementBlock"])("p",Bg,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(t.description)+" ",1),t.helpUrl?(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:0,target:"_blank",href:t.helpUrl},Object(i["toDisplayString"])(e.translate("TagManager_LearnMore")),9,Lg)):Object(i["createCommentVNode"])("",!0),Ug])):Object(i["createCommentVNode"])("",!0),e.showPlainMtmSteps?(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:1},[Object(i["createElementVNode"])("li",null,[Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.getMtmStep2)},null,8,Ig),Pg,Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.getLearnMoreLink)},null,8,Hg),Fg]),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.getMtmStep3)},null,8,Gg)],64)):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("div",null,[Object(i["withDirectives"])(Object(i["createElementVNode"])("pre",{class:"codeblock",textContent:Object(i["toDisplayString"])(t.embedCode),ref:"codeblock"},null,8,$g),[[u,{}]])])],64)})),128)),e.showBottom&&!e.noReleaseFound&&e.idContainer?(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:3},[e.showTestSection?(Object(i["openBlock"])(),Object(i["createElementBlock"])("li",zg,[(Object(i["openBlock"])(),Object(i["createBlock"])(Object(i["resolveDynamicComponent"])(e.testComponent),{site:e.site},null,8,["site"]))])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("p",{key:0,innerHTML:e.$sanitize(e.getCongratulationsText)},null,8,Rg))],64)):Object(i["createCommentVNode"])("",!0)])}function qg(e){return"".concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))}var Xg=Object(i["defineComponent"])({props:{showContainerRow:Boolean,currentAction:String,showBottom:Boolean,showDescription:Boolean,showPlainMtmSteps:Boolean,showTestSection:Boolean},components:{ActivityIndicator:u["ActivityIndicator"],SiteSelector:u["SiteSelector"],Field:g["Field"]},emits:["fetchInstallInstructions"],directives:{CopyToClipboard:u["CopyToClipboard"]},data:function(){return{containerVariables:[],isLoading:!1,idContainer:"",environment:"",environments:[],environmentNameMap:{},containerMap:{},containerOptions:[],site:{id:u["Matomo"].idSite,name:u["Matomo"].helper.htmlDecode(u["Matomo"].siteName)},matomoConfigs:[],releases:[],installInstructions:[],noReleaseFound:!1}},created:function(){var e=this;u["AjaxHelper"].fetch({method:"TagManager.getAvailableEnvironments",filter_limit:"-1"}).then((function(t){var n;n=Array.isArray(t)?t:Object.values(t),e.environmentNameMap=Object.fromEntries(n.map((function(e){var t=e.id,n=e.name;return[t,n]})))})),this.onSiteChange()},watch:{site:function(){this.onSiteChange()}},methods:{onSiteChange:function(){var e,t=this;this.installInstructions=[],this.containerOptions=[],this.containerMap={},this.environments=[],this.matomoConfigs=[],this.idContainer="",null!==(e=this.site)&&void 0!==e&&e.id&&(this.isLoading=!0,u["AjaxHelper"].fetch({method:"TagManager.getContainers",filter_limit:"-1",idSite:this.site.id}).then((function(e){if(t.containerOptions=[],null===e||void 0===e||!e.length)return t.idContainer="",void t.containerOptions.push({key:"",value:t.translate("TagManager_NoContainersFound")});e.forEach((function(e){t.idContainer||(t.idContainer=e.idcontainer),t.containerMap[e.idcontainer]=e,t.containerOptions.push({key:e.idcontainer,value:e.name})})),t.onContainerChange()})).finally((function(){t.isLoading=!1})))},onContainerChange:function(){var e=this;if(this.noReleaseFound=!1,this.idContainer){this.installInstructions=[];var t=this.containerMap[this.idContainer],n=t.draft.idcontainerversion;this.environment="",this.environments=[];var a=t.releases||[];a.find((function(e){return"live"===e.environment}))&&(this.environment="live"),a.forEach((function(t){if("preview"!==t.environment){e.environment||(e.environment=t.environment);var n=qg(t.environment);t.environment in e.environmentNameMap&&(n=e.environmentNameMap[t.environment]),e.environments.push({key:t.environment,value:n})}})),this.environments.length||(this.noReleaseFound=!0,this.environments.push({key:"",value:this.translate("TagManager_NoReleasesFound")})),this.$emit("fetchInstallInstructions"),this.fetchVariables(n)}},linkTo:function(e,t,n,a){var r=u["MatomoUrl"].stringify(Object.assign(Object.assign({},u["MatomoUrl"].urlParsed.value),{},{module:"TagManager",action:e,idSite:t,idContainer:n})),i="".concat(window.location.pathname,"?").concat(r);return a&&(i+="#?".concat(u["MatomoUrl"].stringify(a))),i},fetchVariables:function(e){var t,n=this;this.matomoConfigs=[],this.idContainer&&null!==(t=this.site)&&void 0!==t&&t.id&&e&&u["AjaxHelper"].fetch({method:"TagManager.getContainerVariables",filter_limit:"-1",idContainer:this.idContainer,idContainerVersion:e,idSite:this.site.id}).then((function(e){n.matomoConfigs=e.filter((function(e){return"MatomoConfiguration"===e.type}))})).finally((function(){n.isLoading=!1}))}},computed:{getLearnMoreLink:function(){return Object(u["translate"])("TagManager_CustomHtmlTagHelpText",'',"")},getMtmStep2:function(){var e=this.site&&this.site.id?this.site.id:"",t=this.linkTo("dashboard",e,this.idContainer,[]);return Object(u["translate"])("TagManager_SiteWithoutDataMtmStep2",''),"")},getMtmStep3:function(){return Object(u["translate"])("TagManager_SiteWithoutDataMtmStep3","</head>",'',"")},getCongratulationsText:function(){return Object(u["translate"])("TagManager_SiteWithoutDataReactFollowStepCompleted","","")},testComponent:function(){return this.showTestSection?Object(u["useExternalPluginComponent"])("JsTrackerInstallCheck","JsTrackerInstallCheck"):""}}});Xg.render=Wg;var Kg=Xg,Jg=["innerHTML"],Yg=Object(i["createElementVNode"])("br",null,null,-1),Qg={style:{"list-style":"inside decimal"}},Zg=["innerHTML"];function eb(e,t,n,a,r,o){var l=Object(i["resolveComponent"])("TrackingCodeCommon");return Object(i["openBlock"])(),Object(i["createBlock"])(Object(i["resolveDynamicComponent"])("getTrackingMethodsForSite"===e.currentAction?"div":"ContentBlock"),{anchor:"tagmanager","content-title":e.translate("TagManager_MatomoTagManager")},{default:Object(i["withCtx"])((function(){return[Object(i["createElementVNode"])("p",{innerHTML:e.$sanitize(e.siteWithoutDataMtmIntro)},null,8,Jg),Yg,Object(i["createElementVNode"])("p",null,[Object(i["createElementVNode"])("strong",null,Object(i["toDisplayString"])(e.translate("SitesManager_SiteWithoutDataCloudflareFollowStepsIntro")),1)]),Object(i["createElementVNode"])("ol",Qg,[e.showContainerRow?(Object(i["openBlock"])(),Object(i["createElementBlock"])("li",{key:0,innerHTML:e.$sanitize(e.setupStep1)},null,8,Zg)):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(l,{"show-container-row":e.showContainerRow,showBottom:!0,showDescription:!1,showPlainMtmSteps:!0,showTestSection:"getTrackingMethodsForSite"===e.currentAction&&e.isJsTrackerInstallCheckAvailable,onFetchInstallInstructions:e.fetchInstallInstructions,ref:"trackingCodeCommon"},null,8,["show-container-row","showTestSection","onFetchInstallInstructions"])])]})),_:1},8,["content-title"])}var tb=Object(i["defineComponent"])({props:{currentAction:String,showContainerRow:Boolean,isJsTrackerInstallCheckAvailable:Boolean},components:{ContentBlock:u["ContentBlock"],TrackingCodeCommon:Kg},data:function(){return{setupStep1:""}},methods:{fetchInstallInstructions:function(){var e,t,n=this,a=this.$refs.trackingCodeCommon;a.installInstructions=[],this.updateStep1Text(),null!==a&&void 0!==a&&null!==(e=a.site)&&void 0!==e&&e.id&&null!==a&&void 0!==a&&a.environment&&(a.isLoading=!0,u["AjaxHelper"].fetch({method:"TagManager.getContainerInstallInstructions",filter_limit:"-1",idContainer:null===a||void 0===a?void 0:a.idContainer,environment:null===a||void 0===a?void 0:a.environment,idSite:null===a||void 0===a||null===(t=a.site)||void 0===t?void 0:t.id}).then((function(e){a.installInstructions=e,Object(i["nextTick"])((function(){var e=Array.isArray(n.$refs.codeblock)?n.$refs.codeblock:[n.$refs.codeblock];e.forEach((function(e){$(e).effect("highlight",{},1500)}))}))})).finally((function(){a.isLoading=!1})))},linkTo:function(e,t,n,a){var r=u["MatomoUrl"].stringify(Object.assign(Object.assign({},u["MatomoUrl"].urlParsed.value),{},{module:"TagManager",action:e,idSite:t,idContainer:n}));return a&&(r+="#?".concat(u["MatomoUrl"].stringify(a))),"?".concat(r)},updateStep1Text:function(){var e,t=this.$refs.trackingCodeCommon;if(null!==t&&void 0!==t&&null!==(e=t.site)&&void 0!==e&&e.id){var n=null!==t&&void 0!==t&&t.idContainer?t.idContainer:"",a=this.linkTo("manageContainers",t.site.id,n);this.setupStep1=Object(u["translate"])("TagManager_SPAFollowStep1","
","",''),"")}}},mounted:function(){this.updateStep1Text()},computed:{siteWithoutDataMtmIntro:function(){var e="?".concat(u["MatomoUrl"].stringify(Object.assign(Object.assign({},u["MatomoUrl"].urlParsed.value),{},{module:"TagManager",action:"gettingStarted"})));return Object(u["translate"])("TagManager_SiteWithoutDataMtmIntro",''),"")}}});tb.render=eb;var nb=tb,ab={class:"list-style-decimal"},rb=["innerHTML"],ib=["innerHTML"],ob=["innerHTML"],lb=["textContent"],cb=["innerHTML"],sb=["textContent"],db=["innerHTML"],ub=["innerHTML"],gb=["innerHTML"],bb=["textContent"],mb={style:{"list-style":"lower-alpha","list-style-position":"inside"}},pb=["innerHTML"],hb=["innerHTML"],fb=["innerHTML"],vb=["textContent"],jb=["textContent"],Ob=["innerHTML"],Tb=["textContent"],Vb=["innerHTML"],yb=["innerHTML"],Cb=["textContent"];function Nb(e,t,n,a,r,o){var l=Object(i["resolveComponent"])("TrackingCodeCommon"),c=Object(i["resolveDirective"])("select-on-focus");return Object(i["openBlock"])(),Object(i["createElementBlock"])("ol",ab,[Object(i["createElementVNode"])("li",null,[e.showContainerRow?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:0,innerHTML:e.$sanitize(e.setupStep1)},null,8,rb)):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(l,{"show-container-row":e.showContainerRow,"current-action":e.currentAction,showBottom:!1,showDescription:!1,onFetchInstallInstructions:e.fetchInstallInstructionsSPA,ref:"trackingCodeCommon"},null,8,["show-container-row","current-action","onFetchInstallInstructions"])]),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.setupStep2)},null,8,ib),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep3)},null,8,ob),Object(i["createElementVNode"])("li",{textContent:Object(i["toDisplayString"])(e.fetchClickX("TagManager_CreateNewTrigger"))},null,8,lb),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep5)},null,8,cb),Object(i["createElementVNode"])("li",{textContent:Object(i["toDisplayString"])(e.fetchClickX("TagManager_CreateNewTrigger"))},null,8,sb),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.setupStep7)},null,8,db),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep8)},null,8,ub),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep9)},null,8,gb),Object(i["createElementVNode"])("li",null,[Object(i["createElementVNode"])("span",{textContent:Object(i["toDisplayString"])(e.fetchFollowStep10)},null,8,bb),Object(i["createElementVNode"])("ol",mb,[Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep10a)},null,8,pb),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep10b)},null,8,hb)])]),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep11)},null,8,fb),Object(i["createElementVNode"])("li",{textContent:Object(i["toDisplayString"])(e.fetchClickX("General_Update"))},null,8,vb),Object(i["createElementVNode"])("li",{textContent:Object(i["toDisplayString"])(e.fetchFollowStep13)},null,8,jb),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep14)},null,8,Ob),Object(i["createElementVNode"])("li",{textContent:Object(i["toDisplayString"])(e.fetchFollowStep15)},null,8,Tb),Object(i["createElementVNode"])("li",null,["react"===e.jsFramework?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:0,innerHTML:e.$sanitize(e.fetchFollowStep16React)},null,8,Vb)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:1,innerHTML:e.$sanitize(e.fetchFollowStep16SPA)},null,8,yb)),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.installInstructions,(function(e,t){return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:t},[Object(i["withDirectives"])(Object(i["createElementVNode"])("pre",{class:"codeblock",textContent:Object(i["toDisplayString"])(e.embedCode),ref:"codeblock"},null,8,Cb),[[c,{}]])])})),128))])])}var Eb=Object(i["defineComponent"])({props:{showContainerRow:Boolean,currentAction:String,jsFramework:String},components:{TrackingCodeCommon:Kg},directives:{SelectOnFocus:u["SelectOnFocus"]},data:function(){return{setupStep1:"",setupStep2:"",setupStep7:"",installInstructions:[]}},methods:{fetchInstallInstructionsSPA:function(){var e,t,n=this,a=this.$refs.trackingCodeCommon;if(this.installInstructions=[],null!==a&&void 0!==a&&a.idContainer&&null!==a&&void 0!==a&&a.environment&&null!==a&&void 0!==a&&null!==(e=a.site)&&void 0!==e&&e.id){var r=this.linkTo("manageContainers",a.site.id,a.idContainer);this.setupStep1=Object(u["translate"])("TagManager_SPAFollowStep1","
","",''),"");var o=this.linkTo("manageTriggers",a.site.id,a.idContainer);this.setupStep2=Object(u["translate"])("TagManager_SPAFollowStep2",''),"");var l=this.linkTo("manageTags",a.site.id,a.idContainer);this.setupStep7=Object(u["translate"])("TagManager_SPAFollowStep7",''),""),a.isLoading=!0,u["AjaxHelper"].fetch({method:"TagManager.getContainerInstallInstructions",filter_limit:"-1",idContainer:null===a||void 0===a?void 0:a.idContainer,environment:null===a||void 0===a?void 0:a.environment,idSite:null===a||void 0===a||null===(t=a.site)||void 0===t?void 0:t.id,jsFramework:this.jsFramework}).then((function(e){n.installInstructions=e,Object(i["nextTick"])((function(){var e=Array.isArray(n.$refs.codeblock)?n.$refs.codeblock:[n.$refs.codeblock];e.forEach((function(e){$(e).effect("highlight",{},1500)}))}))})).finally((function(){a.isLoading=!1}))}},linkTo:function(e,t,n,a){var r=u["MatomoUrl"].stringify(Object.assign(Object.assign({},u["MatomoUrl"].urlParsed.value),{},{module:"TagManager",action:e,idSite:t,idContainer:n}));return a&&(r+="#?".concat(u["MatomoUrl"].stringify(a))),"?".concat(r)},fetchClickX:function(e){return Object(u["translate"])("General_ClickX",Object(u["translate"])(e))}},computed:{fetchFollowStep3:function(){return Object(u["translate"])("TagManager_SPAFollowStep3","".concat(Object(u["translate"])("TagManager_PageViewTriggerName"),""),Object(u["translate"])("TagManager_PageViewTriggerName"),'',"")},fetchFollowStep5:function(){return Object(u["translate"])("TagManager_SPAFollowStep5","".concat(Object(u["translate"])("TagManager_HistoryChangeTriggerName"),""),Object(u["translate"])("TagManager_CategoryUserEngagement"))},fetchFollowStep8:function(){return Object(u["translate"])("TagManager_SPAFollowStep8","".concat(Object(u["translate"])("TagManager_PageViewTriggerName"),""),"".concat(Object(u["translate"])("TagManager_MatomoTagName"),""),Object(u["translate"])("TagManager_PageViewTriggerName"),'',"")},fetchFollowStep9:function(){return Object(u["translate"])("TagManager_SPAFollowStep9",Object(u["translate"])("TagManager_ConfigureWhatTagDoes"),Object(u["translate"])("TagManager_CustomTitle"),"","")},fetchFollowStep10:function(){return Object(u["translate"])("TagManager_SPAFollowStep10",Object(u["translate"])("TagManager_CustomUrl"))},fetchFollowStep10a:function(){return Object(u["translate"])("TagManager_SPAFollowStep10a","","",Object(u["translate"])("TagManager_CustomUrl"))},fetchFollowStep10b:function(){return Object(u["translate"])("TagManager_SPAFollowStep10b",Object(u["translate"])("TagManager_CustomUrl"),"","")},fetchFollowStep11:function(){return Object(u["translate"])("TagManager_SPAFollowStep11",Object(u["translate"])("TagManager_ConfigureWhenTagDoes"),Object(u["translate"])("TagManager_FireTriggerTitle"),"".concat(Object(u["translate"])("TagManager_HistoryChangeTriggerName"),""),"".concat(Object(u["translate"])("TagManager_PageViewTriggerName"),""))},fetchFollowStep13:function(){return Object(u["translate"])("TagManager_SPAFollowStep13",Object(u["translate"])("TagManager_Publish"))},fetchFollowStep14:function(){return Object(u["translate"])("TagManager_SPAFollowStep14",Object(u["translate"])("TagManager_VersionName"),"","")},fetchFollowStep15:function(){return Object(u["translate"])("TagManager_SPAFollowStep15",Object(u["translate"])("TagManager_CreateVersionAndPublishRelease"))},fetchFollowStep16SPA:function(){return Object(u["translate"])("TagManager_SPAFollowStep16","</head>",'',"")},fetchFollowStep16React:function(){return Object(u["translate"])("TagManager_ReactFollowStep16","","","App.js","React.useEffect","Hello World","React.js")}}});Eb.render=Nb;var Sb,kb,wb=Eb,Mb={class:"nav-wrapper"},_b={class:"pull-right"},Db=Object(i["createElementVNode"])("svg",{"aria-hidden":"true",style:{position:"absolute",width:"0",height:"0",overflow:"hidden"},version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[Object(i["createElementVNode"])("defs",null,[Object(i["createElementVNode"])("symbol",{id:"tm-icon-checkmark",viewBox:"0 0 32 32"},[Object(i["createElementVNode"])("path",{d:"M27 4l-15 15-7-7-5 5 12 12 20-20z"})])])],-1),xb={class:"page",style:{clear:"both"}},Ab={key:0,id:"secondNavBar",class:"Menu--dashboard z-depth-1"},Bb={class:"navbar",role:"menu",style:{padding:"0"}},Lb={class:"menuTab",role:"menuitem"},Ub={class:"item",style:{"font-weight":"normal"}},Ib=Object(i["createTextVNode"])(" Events "),Pb={key:0},Hb=Object(i["createElementVNode"])("br",null,null,-1),Fb=Object(i["createElementVNode"])("br",null,null,-1),Gb=Object(i["createElementVNode"])("label",{for:"onlyfiredTags",class:"lbl-onlyfiredTags"},"Only fired tags",-1),$b={key:0,style:{padding:"0 0 1rem 1.2rem"}},Rb=["onClick","title"],zb={title:"This tag was fired"},Wb=Object(i["createElementVNode"])("svg",{class:"tm-icon tm-icon-checkmark"},[Object(i["createElementVNode"])("use",{"xlink:href":"#tm-icon-checkmark"})],-1),qb=[Wb],Xb={class:"pageWrap"},Kb={class:"home",id:"content"},Jb=Object(i["createElementVNode"])("h3",null,"Fired Tags",-1),Yb={class:"entityTable"},Qb=Object(i["createElementVNode"])("thead",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("th",null,"Action"),Object(i["createElementVNode"])("th",null,"Name"),Object(i["createElementVNode"])("th",null,"Type"),Object(i["createElementVNode"])("th",null,"Fired count")])],-1),Zb={key:0},em=Object(i["createElementVNode"])("td",{colspan:"4"},"No tags",-1),tm=[em],nm=Object(i["createElementVNode"])("h3",{style:{"margin-top":"30px"}},"Not Yet Fired Tags",-1),am={class:"entityTable"},rm=Object(i["createElementVNode"])("thead",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("th",null,"Name"),Object(i["createElementVNode"])("th",null,"Type")])],-1),im=Object(i["createElementVNode"])("td",{colspan:"4"},"No tags",-1),om=[im],lm=Object(i["createElementVNode"])("h3",null,"Triggers",-1),cm={class:"entityTable"},sm=Object(i["createElementVNode"])("thead",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("th",null,"Name"),Object(i["createElementVNode"])("th",null,"Type")])],-1),dm={key:0},um=Object(i["createElementVNode"])("td",{colspan:"4"},"No trigger",-1),gm=[um],bm={key:1},mm=Object(i["createElementVNode"])("h3",null,"Pushed data by this event",-1),pm={class:"entityTable"},hm={style:{"word-break":"break-all"}},fm=Object(i["createElementVNode"])("br",null,null,-1),vm=Object(i["createElementVNode"])("h3",null,"Content after this event",-1),jm={class:"entityTable"},Om={style:{"word-break":"break-all"}},Tm={class:"entityTable"},Vm=Object(i["createElementVNode"])("thead",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("th",null,"Name"),Object(i["createElementVNode"])("th",null,"Type"),Object(i["createElementVNode"])("th",null,"Value")])],-1),ym={key:0},Cm=Object(i["createElementVNode"])("td",{colspan:"3"},"No variables",-1),Nm=[Cm],Em={style:{"word-break":"break-all"}},Sm={class:"entityTable"},km=Object(i["createElementVNode"])("thead",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("th",null,"Time"),Object(i["createElementVNode"])("th",null,"Message")])],-1),wm={style:{"word-break":"break-all"}},Mm=Object(i["createElementVNode"])("br",null,null,-1);function _m(e,t,n,a,r,o){var l,c,s,d,u,g,b,m,p,h;return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",null,[Object(i["createElementVNode"])("nav",null,[Object(i["createElementVNode"])("div",Mb,[Object(i["createElementVNode"])("ul",null,[Object(i["createElementVNode"])("li",null,[Object(i["renderSlot"])(e.$slots,"logo")]),Object(i["createElementVNode"])("li",{class:Object(i["normalizeClass"])({active:"tags"===e.contentTab||!e.contentTab})},[Object(i["createElementVNode"])("a",{onClick:t[0]||(t[0]=function(t){return e.contentTab="tags"})},"Tags")],2),Object(i["createElementVNode"])("li",{class:Object(i["normalizeClass"])({active:"triggers"===e.contentTab})},[Object(i["createElementVNode"])("a",{onClick:t[1]||(t[1]=function(t){return e.contentTab="triggers"})},"Triggers")],2),Object(i["createElementVNode"])("li",{class:Object(i["normalizeClass"])({active:"variables"===e.contentTab})},[Object(i["createElementVNode"])("a",{onClick:t[2]||(t[2]=function(t){return e.contentTab="variables"})},"Variables")],2),Object(i["createElementVNode"])("li",{class:Object(i["normalizeClass"])({active:"dataLayer"===e.contentTab})},[Object(i["createElementVNode"])("a",{onClick:t[3]||(t[3]=function(t){return e.contentTab="dataLayer"})},"Data Layer")],2),Object(i["createElementVNode"])("li",{class:Object(i["normalizeClass"])({active:"logs"===e.contentTab})},[Object(i["createElementVNode"])("a",{onClick:t[4]||(t[4]=function(t){return e.contentTab="logs"})},"Logs")],2),Object(i["createElementVNode"])("li",_b,[Object(i["createElementVNode"])("a",{id:"mtmUpdateDebugPosition",onClick:t[5]||(t[5]=function(t){return e.mtmUpdateDebugPosition()})},Object(i["toDisplayString"])(e.positionText),1)])])])]),Db,Object(i["createElementVNode"])("div",xb,["logs"!==e.contentTab?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Ab,[Object(i["createElementVNode"])("ul",Bb,[Object(i["createElementVNode"])("li",Lb,[Object(i["createElementVNode"])("span",Ub,[Ib,e.mtmEvents.length>0?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Pb,[Hb,Fb,Object(i["withDirectives"])(Object(i["createElementVNode"])("input",{type:"checkbox",class:"onlyFiredTags-chk",name:"onlyfiredTags",id:"onlyfiredTags",value:"1","onUpdate:modelValue":t[6]||(t[6]=function(t){return e.onlyfiredTags=t}),style:{"margin-right":"3.5px"}},null,512),[[i["vModelCheckbox"],e.onlyfiredTags]]),Gb])):Object(i["createCommentVNode"])("",!0)])]),0===e.mtmEvents.length?(Object(i["openBlock"])(),Object(i["createElementBlock"])("li",$b,"No event executed")):Object(i["createCommentVNode"])("",!0),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.mtmEventsReversed,(function(t,n){var a,r;return Object(i["openBlock"])(),Object(i["createElementBlock"])("li",{class:Object(i["normalizeClass"])(["menuTab",{active:n===e.selectedEventIndex}]),role:"menuitem",key:n},[(t.tags||[]).length||!e.onlyfiredTags?(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:0,class:"item",onClick:function(n){return e.selectEvent(t.index0)},title:"Time: ".concat(t.time,". Trigger: ").concat(null===(a=t.metTrigger)||void 0===a?void 0:a.name)},[Object(i["createTextVNode"])(Object(i["toDisplayString"])(t.index)+": "+Object(i["toDisplayString"])(t.name)+" ",1),Object(i["withDirectives"])(Object(i["createElementVNode"])("span",zb,qb,512),[[i["vShow"],null===(r=t.tags)||void 0===r?void 0:r.length]])],8,Rb)):Object(i["createCommentVNode"])("",!0)],2)})),128))])])):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("div",Xb,[Object(i["createElementVNode"])("div",Kb,[Object(i["withDirectives"])(Object(i["createElementVNode"])("h2",null,Object(i["toDisplayString"])(e.homeTabTitle),513),[[i["vShow"],"logs"!==e.contentTab]]),Object(i["withDirectives"])(Object(i["createElementVNode"])("div",null,[Jb,Object(i["createElementVNode"])("table",Yb,[Qb,Object(i["createElementVNode"])("tbody",null,[null!==(l=e.selectedEvent)&&void 0!==l&&null!==(c=l.tags)&&void 0!==c&&c.length?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",Zb,tm)),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])((null===(s=e.selectedEvent)||void 0===s?void 0:s.tags)||[],(function(e,t){return Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",{key:t},[Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(e.action),1),Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(e.name),1),Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(e.type),1),Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(e.numExecuted),1)])})),128))])]),nm,Object(i["createElementVNode"])("table",am,[rm,Object(i["createElementVNode"])("tbody",null,[Object(i["withDirectives"])(Object(i["createElementVNode"])("tr",null,om,512),[[i["vShow"],0===e.notFiredTags.length]]),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.notFiredTags,(function(e,t){return Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",{key:t},[Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(e.name),1),Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(e.type),1)])})),128))])])],512),[[i["vShow"],"tags"===e.contentTab||!e.contentTab]]),Object(i["withDirectives"])(Object(i["createElementVNode"])("div",null,[lm,Object(i["createElementVNode"])("table",cm,[sm,Object(i["createElementVNode"])("tbody",null,[null!==(d=e.selectedEvent)&&void 0!==d&&d.metTrigger?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",dm,gm)),null!==(u=e.selectedEvent)&&void 0!==u&&u.metTrigger?(Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",bm,[Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(e.selectedEvent.metTrigger.name),1),Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(e.selectedEvent.metTrigger.type),1)])):Object(i["createCommentVNode"])("",!0)])])],512),[[i["vShow"],"triggers"===e.contentTab]]),Object(i["withDirectives"])(Object(i["createElementVNode"])("div",null,[mm,Object(i["createElementVNode"])("table",pm,[Object(i["createElementVNode"])("tbody",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("td",hm,Object(i["toDisplayString"])(e.selectedEventData),1)])])]),fm,vm,Object(i["createElementVNode"])("table",jm,[Object(i["createElementVNode"])("tbody",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("td",Om,Object(i["toDisplayString"])(e.selectedEventContainerDataLayer),1)])])])],512),[[i["vShow"],"dataLayer"===e.contentTab]]),Object(i["withDirectives"])(Object(i["createElementVNode"])("div",null,[Object(i["createElementVNode"])("table",Tm,[Vm,Object(i["createElementVNode"])("tbody",null,[null!==(g=e.selectedEvent)&&void 0!==g&&null!==(b=g.container)&&void 0!==b&&null!==(m=b.variables)&&void 0!==m&&m.length?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",ym,Nm)),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])((null===(p=e.selectedEvent)||void 0===p||null===(h=p.container)||void 0===h?void 0:h.variables)||[],(function(t,n){return Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",{key:n},[Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(t.name),1),Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(t.type),1),Object(i["createElementVNode"])("td",Em,Object(i["toDisplayString"])(e.stringifySelectedVariable(t)),1)])})),128))])])],512),[[i["vShow"],"variables"===e.contentTab]]),Object(i["withDirectives"])(Object(i["createElementVNode"])("div",null,[Object(i["createElementVNode"])("table",Sm,[km,Object(i["createElementVNode"])("tbody",null,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.mtmLogs,(function(e,t){return Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",{key:t},[Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(e.time),1),Object(i["createElementVNode"])("td",wm,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.messages,(function(e,t){return Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:t},[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e),1),Mm])})),128))])])})),128))])])],512),[[i["vShow"],"logs"===e.contentTab]])])])])])}function Dm(e){return Lm(e)||Bm(e)||Am(e)||xm()}function xm(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Am(e,t){if(e){if("string"===typeof e)return Um(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)?Um(e,t):void 0}}function Bm(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Lm(e){if(Array.isArray(e))return Um(e)}function Um(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);nt||n.push.apply(n,Dm(e.tags.map((function(e){return e.name}))))}));var a=[];return this.selectedEvent.container.tags.forEach((function(e){-1===n.indexOf(e.name)&&a.push(e)})),a},selectedEvent:function(){return this.mtmEvents[this.selectedEventIndex]},mtmEvents:function(){return window.mtmDbgData.mtmEvents},mtmEventsReversed:function(){var e=Dm(this.mtmEvents);return e.reverse(),e},mtmLogs:function(){return window.mtmDbgData.mtmLogs},selectedEventData:function(){var e;return(null===(e=this.selectedEvent)||void 0===e?void 0:e.eventData)&&JSON.stringify(this.selectedEvent.eventData,Gm())},selectedEventContainerDataLayer:function(){var e,t;return(null===(e=this.selectedEvent)||void 0===e||null===(t=e.container)||void 0===t?void 0:t.dataLayer)&&JSON.stringify(this.selectedEvent.container.dataLayer,Gm())}}});$m.render=_m;var Rm=$m,zm={class:"tagManagerGettingStarted"},Wm=Object(i["createElementVNode"])("br",null,null,-1),qm=Object(i["createElementVNode"])("br",null,null,-1),Xm=Object(i["createElementVNode"])("br",null,null,-1),Km=Object(i["createElementVNode"])("br",null,null,-1),Jm=Object(i["createElementVNode"])("br",null,null,-1),Ym=["innerHTML"],Qm=Object(i["createElementVNode"])("br",null,null,-1),Zm=Object(i["createElementVNode"])("br",null,null,-1),ep=Object(i["createElementVNode"])("br",null,null,-1),tp=Object(i["createElementVNode"])("br",null,null,-1),np=["innerHTML"];function ap(e,t,n,a,r,o){var l=Object(i["resolveComponent"])("ContentBlock");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",zm,[Object(i["createElementVNode"])("h2",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStarted")),1),Object(i["createVNode"])(l,{"content-title":e.translate("CorePluginsAdmin_WhatIsTagManager")},{default:Object(i["withCtx"])((function(){return[Object(i["createElementVNode"])("p",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedWhatIsIntro")),1),Object(i["createElementVNode"])("ul",null,[Object(i["createElementVNode"])("li",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedAnalyticsTracking")),1),Object(i["createElementVNode"])("li",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedConversionTracking")),1),Object(i["createElementVNode"])("li",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedNewsletterSignups")),1),Object(i["createElementVNode"])("li",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedExitActions")),1),Object(i["createElementVNode"])("li",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedRemarketing")),1),Object(i["createElementVNode"])("li",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedSocialWidgets")),1),Object(i["createElementVNode"])("li",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedAffiliates")),1),Object(i["createElementVNode"])("li",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedAds")),1),Object(i["createElementVNode"])("li",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedAndMore")),1)]),Object(i["createElementVNode"])("p",null,[Wm,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedMainComponents")),1)]),Object(i["createElementVNode"])("ul",null,[Object(i["createElementVNode"])("li",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedTagComponent")),1),Object(i["createElementVNode"])("li",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedTriggerComponent")),1),Object(i["createElementVNode"])("li",null,Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedVariableComponent")),1)])]})),_:1},8,["content-title"]),Object(i["createVNode"])(l,{"content-title":e.translate("TagManager_GettingStartedWhyDoINeed")},{default:Object(i["withCtx"])((function(){return[Object(i["createElementVNode"])("p",null,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedWhyMakesLifeEasier"))+" ",1),qm,Xm,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedWhyThirdPartySnippets"))+" ",1),Km,Jm,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedWhyAccuracyPerformance")),1)])]})),_:1},8,["content-title"]),e.canEdit?(Object(i["openBlock"])(),Object(i["createBlock"])(l,{key:0,"content-title":e.translate("TagManager_GettingStartedHowDoI")},{default:Object(i["withCtx"])((function(){return[Object(i["createElementVNode"])("p",null,[Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.gettingStartedHowCreateContainerText)},null,8,Ym),Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedHowCopyCode"))+" ",1),Qm,Zm,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedHowAddTagsToContainer")),1)])]})),_:1},8,["content-title"])):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(l,{"content-title":e.translate("TagManager_GettingStartedWhatIfUnsupported")},{default:Object(i["withCtx"])((function(){return[Object(i["createElementVNode"])("p",null,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedCustomTags"))+" ",1),ep,tp,Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.gettingStartedContributeTagsText)},null,8,np)])]})),_:1},8,["content-title"])])}var rp=Object(i["defineComponent"])({props:{canEdit:Boolean},components:{ContentBlock:u["ContentBlock"]},computed:{gettingStartedHowCreateContainerText:function(){var e="?".concat(u["MatomoUrl"].stringify({module:"TagManager",action:"manageContainers"}),"}");return Object(u["translate"])("TagManager_GettingStartedHowCreateContainer",''),"")},gettingStartedContributeTagsText:function(){var e="https://developer.matomo.org/guides/tagmanager/settingup";return Object(u["translate"])("TagManager_GettingStartedContributeTags",''),"")}}});rp.render=ap;var ip=rp; /*! * Matomo - free/libre analytics platform * diff --git a/vue/src/TagmanagerTrackingCode/TagManagerTrackingCode.less b/vue/src/TagmanagerTrackingCode/TagManagerTrackingCode.less index 5b414601a..61ae586fe 100644 --- a/vue/src/TagmanagerTrackingCode/TagManagerTrackingCode.less +++ b/vue/src/TagmanagerTrackingCode/TagManagerTrackingCode.less @@ -1,13 +1,21 @@ -div.admin > div[vue-entry='TagManager.TrackingCodePage'] { - .list-style-decimal { - list-style-type: decimal; - list-style-position: inside; +.tagManagerTrackingCode { + padding-top: 1rem; + display: inline-block; + + > .row, > .row .row { + margin-bottom: 0; + margin-top: -0.5rem; + } + + .loadingPiwik { + margin: 1.5rem 0; + } + + .select-wrapper input.select-dropdown { + margin: 8px 0 0 0; } - .tagManagerTrackingCode { - > .row, > .row .row { - margin-bottom: -0.5rem !important; - margin-top: -0.5rem !important; - } + label[for="containers"], label[for="environment"] { + top: -4px !important; } } \ No newline at end of file diff --git a/vue/src/TagmanagerTrackingCode/TagmanagerTrackingCode.vue b/vue/src/TagmanagerTrackingCode/TagmanagerTrackingCode.vue deleted file mode 100644 index cac5d3c00..000000000 --- a/vue/src/TagmanagerTrackingCode/TagmanagerTrackingCode.vue +++ /dev/null @@ -1,116 +0,0 @@ - - - - diff --git a/vue/src/TagmanagerTrackingCode/TrackingCodeCommon.vue b/vue/src/TagmanagerTrackingCode/TrackingCodeCommon.vue index 0ac20243f..31f3bd231 100644 --- a/vue/src/TagmanagerTrackingCode/TrackingCodeCommon.vue +++ b/vue/src/TagmanagerTrackingCode/TrackingCodeCommon.vue @@ -1,11 +1,14 @@ diff --git a/vue/src/TagmanagerTrackingCode/TrackingCodePage.vue b/vue/src/TagmanagerTrackingCode/TrackingCodePage.vue index 021ea0084..6064e9713 100644 --- a/vue/src/TagmanagerTrackingCode/TrackingCodePage.vue +++ b/vue/src/TagmanagerTrackingCode/TrackingCodePage.vue @@ -5,38 +5,42 @@ -->