diff --git a/vue/dist/TagManager.umd.js b/vue/dist/TagManager.umd.js index 247aaecb4..cc10a3b31 100644 --- a/vue/dist/TagManager.umd.js +++ b/vue/dist/TagManager.umd.js @@ -9460,49 +9460,49 @@ function TrackingCodePagevue_type_template_id_2173e522_render(_ctx, _cache, $pro 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=79c9465d +// 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=0e829390 -var TrackingSPAPagevue_type_template_id_79c9465d_hoisted_1 = { +var TrackingSPAPagevue_type_template_id_0e829390_hoisted_1 = { class: "list-style-decimal" }; -var TrackingSPAPagevue_type_template_id_79c9465d_hoisted_2 = { +var TrackingSPAPagevue_type_template_id_0e829390_hoisted_2 = { ref: "step1" }; -var TrackingSPAPagevue_type_template_id_79c9465d_hoisted_3 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_79c9465d_hoisted_4 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_79c9465d_hoisted_5 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_79c9465d_hoisted_6 = ["textContent"]; -var TrackingSPAPagevue_type_template_id_79c9465d_hoisted_7 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_79c9465d_hoisted_8 = ["textContent"]; -var TrackingSPAPagevue_type_template_id_79c9465d_hoisted_9 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_79c9465d_hoisted_10 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_79c9465d_hoisted_11 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_79c9465d_hoisted_12 = ["textContent"]; -var TrackingSPAPagevue_type_template_id_79c9465d_hoisted_13 = { +var TrackingSPAPagevue_type_template_id_0e829390_hoisted_3 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_0e829390_hoisted_4 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_0e829390_hoisted_5 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_0e829390_hoisted_6 = ["textContent"]; +var TrackingSPAPagevue_type_template_id_0e829390_hoisted_7 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_0e829390_hoisted_8 = ["textContent"]; +var TrackingSPAPagevue_type_template_id_0e829390_hoisted_9 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_0e829390_hoisted_10 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_0e829390_hoisted_11 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_0e829390_hoisted_12 = ["textContent"]; +var TrackingSPAPagevue_type_template_id_0e829390_hoisted_13 = { style: { "list-style": "lower-alpha", "list-style-position": "inside" } }; -var TrackingSPAPagevue_type_template_id_79c9465d_hoisted_14 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_79c9465d_hoisted_15 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_79c9465d_hoisted_16 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_79c9465d_hoisted_17 = ["textContent"]; -var TrackingSPAPagevue_type_template_id_79c9465d_hoisted_18 = ["textContent"]; -var TrackingSPAPagevue_type_template_id_79c9465d_hoisted_19 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_79c9465d_hoisted_20 = ["textContent"]; -var TrackingSPAPagevue_type_template_id_79c9465d_hoisted_21 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_79c9465d_hoisted_22 = ["innerHTML"]; -var TrackingSPAPagevue_type_template_id_79c9465d_hoisted_23 = ["textContent"]; -function TrackingSPAPagevue_type_template_id_79c9465d_render(_ctx, _cache, $props, $setup, $data, $options) { +var TrackingSPAPagevue_type_template_id_0e829390_hoisted_14 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_0e829390_hoisted_15 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_0e829390_hoisted_16 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_0e829390_hoisted_17 = ["textContent"]; +var TrackingSPAPagevue_type_template_id_0e829390_hoisted_18 = ["textContent"]; +var TrackingSPAPagevue_type_template_id_0e829390_hoisted_19 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_0e829390_hoisted_20 = ["textContent"]; +var TrackingSPAPagevue_type_template_id_0e829390_hoisted_21 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_0e829390_hoisted_22 = ["innerHTML"]; +var TrackingSPAPagevue_type_template_id_0e829390_hoisted_23 = ["textContent"]; +function TrackingSPAPagevue_type_template_id_0e829390_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"); + 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"])("ol", TrackingSPAPagevue_type_template_id_79c9465d_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", TrackingSPAPagevue_type_template_id_79c9465d_hoisted_2, [_ctx.showContainerRow ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", { + return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("ol", TrackingSPAPagevue_type_template_id_0e829390_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", TrackingSPAPagevue_type_template_id_0e829390_hoisted_2, [_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_79c9465d_hoisted_3)) : 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_0e829390_hoisted_3)) : 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: false, showDescription: false, @@ -9510,53 +9510,53 @@ function TrackingSPAPagevue_type_template_id_79c9465d_render(_ctx, _cache, $prop ref: "trackingCodeCommon" }, null, 8, ["show-container-row", "onFetchInstallInstructions"])], 512), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.step1HasContent]]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { innerHTML: _ctx.$sanitize(_ctx.setupStep2) - }, null, 8, TrackingSPAPagevue_type_template_id_79c9465d_hoisted_4), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_0e829390_hoisted_4), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { innerHTML: _ctx.$sanitize(_ctx.fetchFollowStep3) - }, null, 8, TrackingSPAPagevue_type_template_id_79c9465d_hoisted_5), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_0e829390_hoisted_5), 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_79c9465d_hoisted_6), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_0e829390_hoisted_6), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { innerHTML: _ctx.$sanitize(_ctx.fetchFollowStep5) - }, null, 8, TrackingSPAPagevue_type_template_id_79c9465d_hoisted_7), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_0e829390_hoisted_7), 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_79c9465d_hoisted_8), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_0e829390_hoisted_8), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { innerHTML: _ctx.$sanitize(_ctx.setupStep7) - }, null, 8, TrackingSPAPagevue_type_template_id_79c9465d_hoisted_9), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_0e829390_hoisted_9), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { innerHTML: _ctx.$sanitize(_ctx.fetchFollowStep8) - }, null, 8, TrackingSPAPagevue_type_template_id_79c9465d_hoisted_10), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_0e829390_hoisted_10), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { innerHTML: _ctx.$sanitize(_ctx.fetchFollowStep9) - }, null, 8, TrackingSPAPagevue_type_template_id_79c9465d_hoisted_11), 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_0e829390_hoisted_11), 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_79c9465d_hoisted_12), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("ol", TrackingSPAPagevue_type_template_id_79c9465d_hoisted_13, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_0e829390_hoisted_12), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("ol", TrackingSPAPagevue_type_template_id_0e829390_hoisted_13, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { innerHTML: _ctx.$sanitize(_ctx.fetchFollowStep10a) - }, null, 8, TrackingSPAPagevue_type_template_id_79c9465d_hoisted_14), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_0e829390_hoisted_14), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { innerHTML: _ctx.$sanitize(_ctx.fetchFollowStep10b) - }, null, 8, TrackingSPAPagevue_type_template_id_79c9465d_hoisted_15)])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_0e829390_hoisted_15)])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { innerHTML: _ctx.$sanitize(_ctx.fetchFollowStep11) - }, null, 8, TrackingSPAPagevue_type_template_id_79c9465d_hoisted_16), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_0e829390_hoisted_16), 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_79c9465d_hoisted_17), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_0e829390_hoisted_17), 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_79c9465d_hoisted_18), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_0e829390_hoisted_18), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { innerHTML: _ctx.$sanitize(_ctx.fetchFollowStep14) - }, null, 8, TrackingSPAPagevue_type_template_id_79c9465d_hoisted_19), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("li", { + }, null, 8, TrackingSPAPagevue_type_template_id_0e829390_hoisted_19), 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_79c9465d_hoisted_20), 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", { + }, null, 8, TrackingSPAPagevue_type_template_id_0e829390_hoisted_20), 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_79c9465d_hoisted_21)) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", { + }, null, 8, TrackingSPAPagevue_type_template_id_0e829390_hoisted_21)) : (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_79c9465d_hoisted_22)), (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_0e829390_hoisted_22)), (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_79c9465d_hoisted_23), [[_directive_select_on_focus, {}]])]); + }, null, 8, TrackingSPAPagevue_type_template_id_0e829390_hoisted_23), [[_directive_copy_to_clipboard, {}]])]); }), 128))])]); } -// CONCATENATED MODULE: ./plugins/TagManager/vue/src/TagmanagerTrackingCode/TrackingSPAPage.vue?vue&type=template&id=79c9465d +// CONCATENATED MODULE: ./plugins/TagManager/vue/src/TagmanagerTrackingCode/TrackingSPAPage.vue?vue&type=template&id=0e829390 // 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 @@ -9571,7 +9571,7 @@ function TrackingSPAPagevue_type_template_id_79c9465d_render(_ctx, _cache, $prop TrackingCodeCommon: TrackingCodeCommon }, directives: { - SelectOnFocus: external_CoreHome_["SelectOnFocus"] + CopyToClipboard: external_CoreHome_["CopyToClipboard"] }, data: function data() { return { @@ -9691,7 +9691,7 @@ function TrackingSPAPagevue_type_template_id_79c9465d_render(_ctx, _cache, $prop -TrackingSPAPagevue_type_script_lang_ts.render = TrackingSPAPagevue_type_template_id_79c9465d_render +TrackingSPAPagevue_type_script_lang_ts.render = TrackingSPAPagevue_type_template_id_0e829390_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 diff --git a/vue/dist/TagManager.umd.min.js b/vue/dist/TagManager.umd.min.js index b645619cf..723fd09ec 100644 --- a/vue/dist/TagManager.umd.min.js +++ b/vue/dist/TagManager.umd.min.js @@ -58,7 +58,7 @@ * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */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,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={ref:"step1"},ib=["innerHTML"],ob=["innerHTML"],lb=["innerHTML"],cb=["textContent"],sb=["innerHTML"],db=["textContent"],ub=["innerHTML"],gb=["innerHTML"],bb=["innerHTML"],mb=["textContent"],pb={style:{"list-style":"lower-alpha","list-style-position":"inside"}},hb=["innerHTML"],fb=["innerHTML"],vb=["innerHTML"],jb=["textContent"],Ob=["textContent"],Tb=["innerHTML"],Vb=["textContent"],yb=["innerHTML"],Cb=["innerHTML"],Nb=["textContent"];function Eb(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["withDirectives"])(Object(i["createElementVNode"])("li",rb,[e.showContainerRow?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:0,innerHTML:e.$sanitize(e.setupStep1)},null,8,ib)):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(l,{"show-container-row":e.showContainerRow,showBottom:!1,showDescription:!1,onFetchInstallInstructions:e.fetchInstallInstructionsSPA,ref:"trackingCodeCommon"},null,8,["show-container-row","onFetchInstallInstructions"])],512),[[i["vShow"],e.step1HasContent]]),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.setupStep2)},null,8,ob),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep3)},null,8,lb),Object(i["createElementVNode"])("li",{textContent:Object(i["toDisplayString"])(e.fetchClickX("TagManager_CreateNewTrigger"))},null,8,cb),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep5)},null,8,sb),Object(i["createElementVNode"])("li",{textContent:Object(i["toDisplayString"])(e.fetchClickX("TagManager_CreateNewTrigger"))},null,8,db),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.setupStep7)},null,8,ub),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep8)},null,8,gb),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep9)},null,8,bb),Object(i["createElementVNode"])("li",null,[Object(i["createElementVNode"])("span",{textContent:Object(i["toDisplayString"])(e.fetchFollowStep10)},null,8,mb),Object(i["createElementVNode"])("ol",pb,[Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep10a)},null,8,hb),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep10b)},null,8,fb)])]),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep11)},null,8,vb),Object(i["createElementVNode"])("li",{textContent:Object(i["toDisplayString"])(e.fetchClickX("General_Update"))},null,8,jb),Object(i["createElementVNode"])("li",{textContent:Object(i["toDisplayString"])(e.fetchFollowStep13)},null,8,Ob),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep14)},null,8,Tb),Object(i["createElementVNode"])("li",{textContent:Object(i["toDisplayString"])(e.fetchFollowStep15)},null,8,Vb),Object(i["createElementVNode"])("li",null,["react"===e.jsFramework?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:0,innerHTML:e.$sanitize(e.fetchFollowStep16React)},null,8,yb)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:1,innerHTML:e.$sanitize(e.fetchFollowStep16SPA)},null,8,Cb)),(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,Nb),[[c,{}]])])})),128))])])}var Sb=Object(i["defineComponent"])({props:{showContainerRow:Boolean,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:{step1HasContent:function(){var e=this.$refs.step1;return e&&""!==e.textContent},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")}}});Sb.render=Eb;var kb,wb,Mb=Sb,_b={class:"nav-wrapper"},Db={class:"pull-right"},xb=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),Ab={class:"page",style:{clear:"both"}},Bb={key:0,id:"secondNavBar",class:"Menu--dashboard z-depth-1"},Lb={class:"navbar",role:"menu",style:{padding:"0"}},Ub={class:"menuTab",role:"menuitem"},Ib={class:"item",style:{"font-weight":"normal"}},Pb=Object(i["createTextVNode"])(" Events "),Hb={key:0},Fb=Object(i["createElementVNode"])("br",null,null,-1),Gb=Object(i["createElementVNode"])("br",null,null,-1),$b=Object(i["createElementVNode"])("label",{for:"onlyfiredTags",class:"lbl-onlyfiredTags"},"Only fired tags",-1),Rb={key:0,style:{padding:"0 0 1rem 1.2rem"}},zb=["onClick","title"],Wb={title:"This tag was fired"},qb=Object(i["createElementVNode"])("svg",{class:"tm-icon tm-icon-checkmark"},[Object(i["createElementVNode"])("use",{"xlink:href":"#tm-icon-checkmark"})],-1),Xb=[qb],Kb={class:"pageWrap"},Jb={class:"home",id:"content"},Yb=Object(i["createElementVNode"])("h3",null,"Fired Tags",-1),Qb={class:"entityTable"},Zb=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),em={key:0},tm=Object(i["createElementVNode"])("td",{colspan:"4"},"No tags",-1),nm=[tm],am=Object(i["createElementVNode"])("h3",{style:{"margin-top":"30px"}},"Not Yet Fired Tags",-1),rm={class:"entityTable"},im=Object(i["createElementVNode"])("thead",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("th",null,"Name"),Object(i["createElementVNode"])("th",null,"Type")])],-1),om=Object(i["createElementVNode"])("td",{colspan:"4"},"No tags",-1),lm=[om],cm=Object(i["createElementVNode"])("h3",null,"Triggers",-1),sm={class:"entityTable"},dm=Object(i["createElementVNode"])("thead",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("th",null,"Name"),Object(i["createElementVNode"])("th",null,"Type")])],-1),um={key:0},gm=Object(i["createElementVNode"])("td",{colspan:"4"},"No trigger",-1),bm=[gm],mm={key:1},pm=Object(i["createElementVNode"])("h3",null,"Pushed data by this event",-1),hm={class:"entityTable"},fm={style:{"word-break":"break-all"}},vm=Object(i["createElementVNode"])("br",null,null,-1),jm=Object(i["createElementVNode"])("h3",null,"Content after this event",-1),Om={class:"entityTable"},Tm={style:{"word-break":"break-all"}},Vm={class:"entityTable"},ym=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),Cm={key:0},Nm=Object(i["createElementVNode"])("td",{colspan:"3"},"No variables",-1),Em=[Nm],Sm={style:{"word-break":"break-all"}},km={class:"entityTable"},wm=Object(i["createElementVNode"])("thead",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("th",null,"Time"),Object(i["createElementVNode"])("th",null,"Message")])],-1),Mm={style:{"word-break":"break-all"}},_m=Object(i["createElementVNode"])("br",null,null,-1);function Dm(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",_b,[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",Db,[Object(i["createElementVNode"])("a",{id:"mtmUpdateDebugPosition",onClick:t[5]||(t[5]=function(t){return e.mtmUpdateDebugPosition()})},Object(i["toDisplayString"])(e.positionText),1)])])])]),xb,Object(i["createElementVNode"])("div",Ab,["logs"!==e.contentTab?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Bb,[Object(i["createElementVNode"])("ul",Lb,[Object(i["createElementVNode"])("li",Ub,[Object(i["createElementVNode"])("span",Ib,[Pb,e.mtmEvents.length>0?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Hb,[Fb,Gb,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]]),$b])):Object(i["createCommentVNode"])("",!0)])]),0===e.mtmEvents.length?(Object(i["openBlock"])(),Object(i["createElementBlock"])("li",Rb,"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",Wb,Xb,512),[[i["vShow"],null===(r=t.tags)||void 0===r?void 0:r.length]])],8,zb)):Object(i["createCommentVNode"])("",!0)],2)})),128))])])):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("div",Kb,[Object(i["createElementVNode"])("div",Jb,[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,[Yb,Object(i["createElementVNode"])("table",Qb,[Zb,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",em,nm)),(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))])]),am,Object(i["createElementVNode"])("table",rm,[im,Object(i["createElementVNode"])("tbody",null,[Object(i["withDirectives"])(Object(i["createElementVNode"])("tr",null,lm,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,[cm,Object(i["createElementVNode"])("table",sm,[dm,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",um,bm)),null!==(u=e.selectedEvent)&&void 0!==u&&u.metTrigger?(Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",mm,[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,[pm,Object(i["createElementVNode"])("table",hm,[Object(i["createElementVNode"])("tbody",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("td",fm,Object(i["toDisplayString"])(e.selectedEventData),1)])])]),vm,jm,Object(i["createElementVNode"])("table",Om,[Object(i["createElementVNode"])("tbody",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("td",Tm,Object(i["toDisplayString"])(e.selectedEventContainerDataLayer),1)])])])],512),[[i["vShow"],"dataLayer"===e.contentTab]]),Object(i["withDirectives"])(Object(i["createElementVNode"])("div",null,[Object(i["createElementVNode"])("table",Vm,[ym,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",Cm,Em)),(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",Sm,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",km,[wm,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",Mm,[(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),_m])})),128))])])})),128))])])],512),[[i["vShow"],"logs"===e.contentTab]])])])])])}function xm(e){return Um(e)||Lm(e)||Bm(e)||Am()}function Am(){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 Bm(e,t){if(e){if("string"===typeof e)return Im(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)?Im(e,t):void 0}}function Lm(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Um(e){if(Array.isArray(e))return Im(e)}function Im(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);nt||n.push.apply(n,xm(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=xm(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,$m())},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,$m())}}});Rm.render=Dm;var zm=Rm,Wm={class:"tagManagerGettingStarted"},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=Object(i["createElementVNode"])("br",null,null,-1),Qm=["innerHTML"],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=Object(i["createElementVNode"])("br",null,null,-1),ap=["innerHTML"];function rp(e,t,n,a,r,o){var l=Object(i["resolveComponent"])("ContentBlock");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Wm,[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,[qm,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),Xm,Km,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedWhyThirdPartySnippets"))+" ",1),Jm,Ym,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,Qm),Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedHowCopyCode"))+" ",1),Zm,ep,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),tp,np,Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.gettingStartedContributeTagsText)},null,8,ap)])]})),_:1},8,["content-title"])])}var ip=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",''),"")}}});ip.render=rp;var op=ip; + */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,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={ref:"step1"},ib=["innerHTML"],ob=["innerHTML"],lb=["innerHTML"],cb=["textContent"],sb=["innerHTML"],db=["textContent"],ub=["innerHTML"],gb=["innerHTML"],bb=["innerHTML"],mb=["textContent"],pb={style:{"list-style":"lower-alpha","list-style-position":"inside"}},hb=["innerHTML"],fb=["innerHTML"],vb=["innerHTML"],jb=["textContent"],Ob=["textContent"],Tb=["innerHTML"],Vb=["textContent"],yb=["innerHTML"],Cb=["innerHTML"],Nb=["textContent"];function Eb(e,t,n,a,r,o){var l=Object(i["resolveComponent"])("TrackingCodeCommon"),c=Object(i["resolveDirective"])("copy-to-clipboard");return Object(i["openBlock"])(),Object(i["createElementBlock"])("ol",ab,[Object(i["withDirectives"])(Object(i["createElementVNode"])("li",rb,[e.showContainerRow?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:0,innerHTML:e.$sanitize(e.setupStep1)},null,8,ib)):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(l,{"show-container-row":e.showContainerRow,showBottom:!1,showDescription:!1,onFetchInstallInstructions:e.fetchInstallInstructionsSPA,ref:"trackingCodeCommon"},null,8,["show-container-row","onFetchInstallInstructions"])],512),[[i["vShow"],e.step1HasContent]]),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.setupStep2)},null,8,ob),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep3)},null,8,lb),Object(i["createElementVNode"])("li",{textContent:Object(i["toDisplayString"])(e.fetchClickX("TagManager_CreateNewTrigger"))},null,8,cb),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep5)},null,8,sb),Object(i["createElementVNode"])("li",{textContent:Object(i["toDisplayString"])(e.fetchClickX("TagManager_CreateNewTrigger"))},null,8,db),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.setupStep7)},null,8,ub),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep8)},null,8,gb),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep9)},null,8,bb),Object(i["createElementVNode"])("li",null,[Object(i["createElementVNode"])("span",{textContent:Object(i["toDisplayString"])(e.fetchFollowStep10)},null,8,mb),Object(i["createElementVNode"])("ol",pb,[Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep10a)},null,8,hb),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep10b)},null,8,fb)])]),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep11)},null,8,vb),Object(i["createElementVNode"])("li",{textContent:Object(i["toDisplayString"])(e.fetchClickX("General_Update"))},null,8,jb),Object(i["createElementVNode"])("li",{textContent:Object(i["toDisplayString"])(e.fetchFollowStep13)},null,8,Ob),Object(i["createElementVNode"])("li",{innerHTML:e.$sanitize(e.fetchFollowStep14)},null,8,Tb),Object(i["createElementVNode"])("li",{textContent:Object(i["toDisplayString"])(e.fetchFollowStep15)},null,8,Vb),Object(i["createElementVNode"])("li",null,["react"===e.jsFramework?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:0,innerHTML:e.$sanitize(e.fetchFollowStep16React)},null,8,yb)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:1,innerHTML:e.$sanitize(e.fetchFollowStep16SPA)},null,8,Cb)),(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,Nb),[[c,{}]])])})),128))])])}var Sb=Object(i["defineComponent"])({props:{showContainerRow:Boolean,jsFramework:String},components:{TrackingCodeCommon:Kg},directives:{CopyToClipboard:u["CopyToClipboard"]},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:{step1HasContent:function(){var e=this.$refs.step1;return e&&""!==e.textContent},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")}}});Sb.render=Eb;var kb,wb,Mb=Sb,_b={class:"nav-wrapper"},Db={class:"pull-right"},xb=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),Ab={class:"page",style:{clear:"both"}},Bb={key:0,id:"secondNavBar",class:"Menu--dashboard z-depth-1"},Lb={class:"navbar",role:"menu",style:{padding:"0"}},Ub={class:"menuTab",role:"menuitem"},Ib={class:"item",style:{"font-weight":"normal"}},Pb=Object(i["createTextVNode"])(" Events "),Hb={key:0},Fb=Object(i["createElementVNode"])("br",null,null,-1),Gb=Object(i["createElementVNode"])("br",null,null,-1),$b=Object(i["createElementVNode"])("label",{for:"onlyfiredTags",class:"lbl-onlyfiredTags"},"Only fired tags",-1),Rb={key:0,style:{padding:"0 0 1rem 1.2rem"}},zb=["onClick","title"],Wb={title:"This tag was fired"},qb=Object(i["createElementVNode"])("svg",{class:"tm-icon tm-icon-checkmark"},[Object(i["createElementVNode"])("use",{"xlink:href":"#tm-icon-checkmark"})],-1),Xb=[qb],Kb={class:"pageWrap"},Jb={class:"home",id:"content"},Yb=Object(i["createElementVNode"])("h3",null,"Fired Tags",-1),Qb={class:"entityTable"},Zb=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),em={key:0},tm=Object(i["createElementVNode"])("td",{colspan:"4"},"No tags",-1),nm=[tm],am=Object(i["createElementVNode"])("h3",{style:{"margin-top":"30px"}},"Not Yet Fired Tags",-1),rm={class:"entityTable"},im=Object(i["createElementVNode"])("thead",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("th",null,"Name"),Object(i["createElementVNode"])("th",null,"Type")])],-1),om=Object(i["createElementVNode"])("td",{colspan:"4"},"No tags",-1),lm=[om],cm=Object(i["createElementVNode"])("h3",null,"Triggers",-1),sm={class:"entityTable"},dm=Object(i["createElementVNode"])("thead",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("th",null,"Name"),Object(i["createElementVNode"])("th",null,"Type")])],-1),um={key:0},gm=Object(i["createElementVNode"])("td",{colspan:"4"},"No trigger",-1),bm=[gm],mm={key:1},pm=Object(i["createElementVNode"])("h3",null,"Pushed data by this event",-1),hm={class:"entityTable"},fm={style:{"word-break":"break-all"}},vm=Object(i["createElementVNode"])("br",null,null,-1),jm=Object(i["createElementVNode"])("h3",null,"Content after this event",-1),Om={class:"entityTable"},Tm={style:{"word-break":"break-all"}},Vm={class:"entityTable"},ym=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),Cm={key:0},Nm=Object(i["createElementVNode"])("td",{colspan:"3"},"No variables",-1),Em=[Nm],Sm={style:{"word-break":"break-all"}},km={class:"entityTable"},wm=Object(i["createElementVNode"])("thead",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("th",null,"Time"),Object(i["createElementVNode"])("th",null,"Message")])],-1),Mm={style:{"word-break":"break-all"}},_m=Object(i["createElementVNode"])("br",null,null,-1);function Dm(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",_b,[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",Db,[Object(i["createElementVNode"])("a",{id:"mtmUpdateDebugPosition",onClick:t[5]||(t[5]=function(t){return e.mtmUpdateDebugPosition()})},Object(i["toDisplayString"])(e.positionText),1)])])])]),xb,Object(i["createElementVNode"])("div",Ab,["logs"!==e.contentTab?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Bb,[Object(i["createElementVNode"])("ul",Lb,[Object(i["createElementVNode"])("li",Ub,[Object(i["createElementVNode"])("span",Ib,[Pb,e.mtmEvents.length>0?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Hb,[Fb,Gb,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]]),$b])):Object(i["createCommentVNode"])("",!0)])]),0===e.mtmEvents.length?(Object(i["openBlock"])(),Object(i["createElementBlock"])("li",Rb,"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",Wb,Xb,512),[[i["vShow"],null===(r=t.tags)||void 0===r?void 0:r.length]])],8,zb)):Object(i["createCommentVNode"])("",!0)],2)})),128))])])):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("div",Kb,[Object(i["createElementVNode"])("div",Jb,[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,[Yb,Object(i["createElementVNode"])("table",Qb,[Zb,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",em,nm)),(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))])]),am,Object(i["createElementVNode"])("table",rm,[im,Object(i["createElementVNode"])("tbody",null,[Object(i["withDirectives"])(Object(i["createElementVNode"])("tr",null,lm,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,[cm,Object(i["createElementVNode"])("table",sm,[dm,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",um,bm)),null!==(u=e.selectedEvent)&&void 0!==u&&u.metTrigger?(Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",mm,[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,[pm,Object(i["createElementVNode"])("table",hm,[Object(i["createElementVNode"])("tbody",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("td",fm,Object(i["toDisplayString"])(e.selectedEventData),1)])])]),vm,jm,Object(i["createElementVNode"])("table",Om,[Object(i["createElementVNode"])("tbody",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("td",Tm,Object(i["toDisplayString"])(e.selectedEventContainerDataLayer),1)])])])],512),[[i["vShow"],"dataLayer"===e.contentTab]]),Object(i["withDirectives"])(Object(i["createElementVNode"])("div",null,[Object(i["createElementVNode"])("table",Vm,[ym,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",Cm,Em)),(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",Sm,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",km,[wm,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",Mm,[(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),_m])})),128))])])})),128))])])],512),[[i["vShow"],"logs"===e.contentTab]])])])])])}function xm(e){return Um(e)||Lm(e)||Bm(e)||Am()}function Am(){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 Bm(e,t){if(e){if("string"===typeof e)return Im(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)?Im(e,t):void 0}}function Lm(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Um(e){if(Array.isArray(e))return Im(e)}function Im(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);nt||n.push.apply(n,xm(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=xm(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,$m())},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,$m())}}});Rm.render=Dm;var zm=Rm,Wm={class:"tagManagerGettingStarted"},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=Object(i["createElementVNode"])("br",null,null,-1),Qm=["innerHTML"],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=Object(i["createElementVNode"])("br",null,null,-1),ap=["innerHTML"];function rp(e,t,n,a,r,o){var l=Object(i["resolveComponent"])("ContentBlock");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Wm,[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,[qm,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),Xm,Km,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedWhyThirdPartySnippets"))+" ",1),Jm,Ym,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,Qm),Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("TagManager_GettingStartedHowCopyCode"))+" ",1),Zm,ep,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),tp,np,Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.gettingStartedContributeTagsText)},null,8,ap)])]})),_:1},8,["content-title"])])}var ip=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",''),"")}}});ip.render=rp;var op=ip; /*! * Matomo - free/libre analytics platform * diff --git a/vue/src/TagmanagerTrackingCode/TrackingSPAPage.vue b/vue/src/TagmanagerTrackingCode/TrackingSPAPage.vue index 263aae678..d61e1c218 100644 --- a/vue/src/TagmanagerTrackingCode/TrackingSPAPage.vue +++ b/vue/src/TagmanagerTrackingCode/TrackingSPAPage.vue @@ -46,7 +46,7 @@
       
@@ -57,8 +57,7 @@