From a07507c273e7243ac502bd0e0fae3b68f9d8462f Mon Sep 17 00:00:00 2001 From: Jacob Ransom Date: Mon, 14 Aug 2023 12:21:25 +1200 Subject: [PATCH] Rebuilt Vue after recent merge --- vue/dist/GoogleAnalyticsImporter.umd.js | 108 ++++++++++---------- vue/dist/GoogleAnalyticsImporter.umd.min.js | 2 +- 2 files changed, 55 insertions(+), 55 deletions(-) diff --git a/vue/dist/GoogleAnalyticsImporter.umd.js b/vue/dist/GoogleAnalyticsImporter.umd.js index d9dbf1d02..bbfd73d19 100644 --- a/vue/dist/GoogleAnalyticsImporter.umd.js +++ b/vue/dist/GoogleAnalyticsImporter.umd.js @@ -1257,88 +1257,88 @@ var ImportStatusvue_type_script_lang_ts_window = window, ImportStatusvue_type_script_lang_ts.render = ImportStatusvue_type_template_id_985a7fca_render /* harmony default export */ var ImportStatus = (ImportStatusvue_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/GoogleAnalyticsImporter/vue/src/Configure/ConfigureConnection.vue?vue&type=template&id=1557ce5e +// 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/GoogleAnalyticsImporter/vue/src/Configure/ConfigureConnection.vue?vue&type=template&id=38565042 -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_1 = { +var ConfigureConnectionvue_type_template_id_38565042_hoisted_1 = { key: 0, class: "form-group row" }; -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_2 = { +var ConfigureConnectionvue_type_template_id_38565042_hoisted_2 = { class: "col s12 m6" }; -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_3 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("br", null, null, -1); +var ConfigureConnectionvue_type_template_id_38565042_hoisted_3 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("br", null, null, -1); -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_4 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_5 = { +var ConfigureConnectionvue_type_template_id_38565042_hoisted_4 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_38565042_hoisted_5 = { class: "col s12 m6" }; -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_6 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_7 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_8 = ["textContent"]; -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_9 = { +var ConfigureConnectionvue_type_template_id_38565042_hoisted_6 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_38565042_hoisted_7 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_38565042_hoisted_8 = ["textContent"]; +var ConfigureConnectionvue_type_template_id_38565042_hoisted_9 = { class: "form-group row" }; -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_10 = ["action"]; -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_11 = { +var ConfigureConnectionvue_type_template_id_38565042_hoisted_10 = ["action"]; +var ConfigureConnectionvue_type_template_id_38565042_hoisted_11 = { key: 0, type: "hidden", name: "isNoDataPage", value: "1" }; -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_12 = ["value"]; -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_13 = ["disabled"]; +var ConfigureConnectionvue_type_template_id_38565042_hoisted_12 = ["value"]; +var ConfigureConnectionvue_type_template_id_38565042_hoisted_13 = ["disabled"]; -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_14 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { +var ConfigureConnectionvue_type_template_id_38565042_hoisted_14 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { class: "icon-upload" }, null, -1); -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_15 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { +var ConfigureConnectionvue_type_template_id_38565042_hoisted_15 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { class: "icon-upload" }, null, -1); -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_16 = { +var ConfigureConnectionvue_type_template_id_38565042_hoisted_16 = { key: 1, class: "system-success connected-message-successful" }; -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_17 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { +var ConfigureConnectionvue_type_template_id_38565042_hoisted_17 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { class: "icon-ok" }, null, -1); -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_18 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_19 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_20 = ["action"]; -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_21 = ["value"]; -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_22 = ["disabled", "textContent"]; -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_23 = { +var ConfigureConnectionvue_type_template_id_38565042_hoisted_18 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_38565042_hoisted_19 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_38565042_hoisted_20 = ["action"]; +var ConfigureConnectionvue_type_template_id_38565042_hoisted_21 = ["value"]; +var ConfigureConnectionvue_type_template_id_38565042_hoisted_22 = ["disabled", "textContent"]; +var ConfigureConnectionvue_type_template_id_38565042_hoisted_23 = { key: 0, class: "system-success connected-message-successful" }; -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_24 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { +var ConfigureConnectionvue_type_template_id_38565042_hoisted_24 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { class: "icon-ok" }, null, -1); -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_25 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_26 = ["textContent"]; -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_27 = ["textContent"]; -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_28 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_29 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_30 = ["textContent"]; -function ConfigureConnectionvue_type_template_id_1557ce5e_render(_ctx, _cache, $props, $setup, $data, $options) { - return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, [!_ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_2, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("p", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_ConfigureTheImporterLabel1')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("p", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_ConfigureTheImporterLabel2')), 1), ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_3, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { - innerHTML: _ctx.setupGoogleAnalyticsImportFaq - }, null, 8, ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_4)])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_5, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", { +var ConfigureConnectionvue_type_template_id_38565042_hoisted_25 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_38565042_hoisted_26 = ["textContent"]; +var ConfigureConnectionvue_type_template_id_38565042_hoisted_27 = ["textContent"]; +var ConfigureConnectionvue_type_template_id_38565042_hoisted_28 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_38565042_hoisted_29 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_38565042_hoisted_30 = ["textContent"]; +function ConfigureConnectionvue_type_template_id_38565042_render(_ctx, _cache, $props, $setup, $data, $options) { + return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, [!_ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", ConfigureConnectionvue_type_template_id_38565042_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ConfigureConnectionvue_type_template_id_38565042_hoisted_2, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("p", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_ConfigureTheImporterLabel1')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("p", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_ConfigureTheImporterLabel2')), 1), ConfigureConnectionvue_type_template_id_38565042_hoisted_3, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { + innerHTML: _ctx.$sanitize(_ctx.setupGoogleAnalyticsImportFaq) + }, null, 8, ConfigureConnectionvue_type_template_id_38565042_hoisted_4)])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ConfigureConnectionvue_type_template_id_38565042_hoisted_5, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", { class: "form-help", - innerHTML: _ctx.translate('GoogleAnalyticsImporter_ConfigureTheImporterHelpNewDate', '', '') - }, null, 8, ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_6)])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", { + innerHTML: _ctx.$sanitize(_ctx.translate('GoogleAnalyticsImporter_ConfigureTheImporterHelpNewDate', '', '')) + }, null, 8, ConfigureConnectionvue_type_template_id_38565042_hoisted_6)])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", { key: 1, innerHTML: _ctx.$sanitize(_ctx.getAdvanceConnectStep01Text) - }, null, 8, ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_7)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", { + }, null, 8, ConfigureConnectionvue_type_template_id_38565042_hoisted_7)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", { key: 2, textContent: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_GAImportNoDataScreenStep02')) - }, null, 8, ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_8)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_9, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", { + }, null, 8, ConfigureConnectionvue_type_template_id_38565042_hoisted_8)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ConfigureConnectionvue_type_template_id_38565042_hoisted_9, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", { class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])(_ctx.getClass) }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("form", { id: "configFileUploadForm", @@ -1356,28 +1356,28 @@ function ConfigureConnectionvue_type_template_id_1557ce5e_render(_ctx, _cache, $ style: { "display": "none" } - }, null, 32), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("input", ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_11)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", { + }, null, 32), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("input", ConfigureConnectionvue_type_template_id_38565042_hoisted_11)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", { type: "hidden", name: "config_nonce", value: _ctx.manualConfigNonce - }, null, 8, ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_12), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("button", { + }, null, 8, ConfigureConnectionvue_type_template_id_38565042_hoisted_12), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("button", { type: "button", class: "btn advance-upload-button", onClick: _cache[1] || (_cache[1] = function ($event) { return _ctx.selectConfigFile(); }), disabled: _ctx.isUploadButtonDisabled - }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", null, [ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_14, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('General_Upload')), 1)], 512), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], !_ctx.isUploadButtonDisabled]]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", null, [ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_15, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_Uploading')), 1)], 512), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.isUploadButtonDisabled]])], 8, ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_13), _ctx.isNoDataPage && _ctx.hasClientConfiguration ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_16, [ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_17, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_UploadSuccessful')), 1)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 8, ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_10)], 2)]), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", { + }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", null, [ConfigureConnectionvue_type_template_id_38565042_hoisted_14, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('General_Upload')), 1)], 512), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], !_ctx.isUploadButtonDisabled]]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", null, [ConfigureConnectionvue_type_template_id_38565042_hoisted_15, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_Uploading')), 1)], 512), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.isUploadButtonDisabled]])], 8, ConfigureConnectionvue_type_template_id_38565042_hoisted_13), _ctx.isNoDataPage && _ctx.hasClientConfiguration ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", ConfigureConnectionvue_type_template_id_38565042_hoisted_16, [ConfigureConnectionvue_type_template_id_38565042_hoisted_17, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_UploadSuccessful')), 1)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 8, ConfigureConnectionvue_type_template_id_38565042_hoisted_10)], 2)]), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", { key: 3, innerHTML: _ctx.$sanitize(_ctx.getAdvanceConnectStep03Text) - }, null, 8, ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_18)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", { + }, null, 8, ConfigureConnectionvue_type_template_id_38565042_hoisted_18)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", { key: 4, style: { "margin-left": "1.2rem" }, class: "complete-note-warning", innerHTML: _ctx.$sanitize(_ctx.getOauthCompleteWarningMessage) - }, null, 8, ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_19)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("form", { + }, null, 8, ConfigureConnectionvue_type_template_id_38565042_hoisted_19)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("form", { key: 5, target: "_blank", method: "post", @@ -1386,32 +1386,32 @@ function ConfigureConnectionvue_type_template_id_1557ce5e_render(_ctx, _cache, $ type: "hidden", name: "auth_nonce", value: _ctx.forwardToAuthNonce - }, null, 8, ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_21), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("button", { + }, null, 8, ConfigureConnectionvue_type_template_id_38565042_hoisted_21), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("button", { disabled: _ctx.hasClientConfiguration === false, textContent: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.getAuthorizeText), type: "submit", class: "btn btn-forward-to-Oauth" - }, null, 8, ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_22), _ctx.isNoDataPage && _ctx.hasClientConfiguration && _ctx.isConfigured ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_23, [ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_24, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_AccountsConnectedSuccessfully')), 1)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 8, ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_20)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", { + }, null, 8, ConfigureConnectionvue_type_template_id_38565042_hoisted_22), _ctx.isNoDataPage && _ctx.hasClientConfiguration && _ctx.isConfigured ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", ConfigureConnectionvue_type_template_id_38565042_hoisted_23, [ConfigureConnectionvue_type_template_id_38565042_hoisted_24, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_AccountsConnectedSuccessfully')), 1)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 8, ConfigureConnectionvue_type_template_id_38565042_hoisted_20)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", { key: 6, innerHTML: _ctx.$sanitize(_ctx.getAdvanceConnectStep04Text) - }, null, 8, ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_25)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", { + }, null, 8, ConfigureConnectionvue_type_template_id_38565042_hoisted_25)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", { key: 7, textContent: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_GAImportNoDataScreenStep05')) - }, null, 8, ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_26)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", { + }, null, 8, ConfigureConnectionvue_type_template_id_38565042_hoisted_26)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", { key: 8, textContent: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_GAImportNoDataScreenStep06')) - }, null, 8, ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_27)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", { + }, null, 8, ConfigureConnectionvue_type_template_id_38565042_hoisted_27)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", { key: 9, innerHTML: _ctx.$sanitize(_ctx.getAdvanceConnectStep07Text) - }, null, 8, ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_28)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", { + }, null, 8, ConfigureConnectionvue_type_template_id_38565042_hoisted_28)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", { key: 10, innerHTML: _ctx.$sanitize(_ctx.getAdvanceConnectStep08Text) - }, null, 8, ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_29)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", { + }, null, 8, ConfigureConnectionvue_type_template_id_38565042_hoisted_29)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", { key: 11, textContent: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_GAImportNoDataScreenStep09')) - }, null, 8, ConfigureConnectionvue_type_template_id_1557ce5e_hoisted_30)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64); + }, null, 8, ConfigureConnectionvue_type_template_id_38565042_hoisted_30)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64); } -// CONCATENATED MODULE: ./plugins/GoogleAnalyticsImporter/vue/src/Configure/ConfigureConnection.vue?vue&type=template&id=1557ce5e +// CONCATENATED MODULE: ./plugins/GoogleAnalyticsImporter/vue/src/Configure/ConfigureConnection.vue?vue&type=template&id=38565042 // 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/GoogleAnalyticsImporter/vue/src/Configure/ConfigureConnection.vue?vue&type=script&lang=ts @@ -1531,7 +1531,7 @@ function ConfigureConnectionvue_type_template_id_1557ce5e_render(_ctx, _cache, $ -ConfigureConnectionvue_type_script_lang_ts.render = ConfigureConnectionvue_type_template_id_1557ce5e_render +ConfigureConnectionvue_type_script_lang_ts.render = ConfigureConnectionvue_type_template_id_38565042_render /* harmony default export */ var ConfigureConnection = (ConfigureConnectionvue_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/GoogleAnalyticsImporter/vue/src/ClientConfig/ClientConfig.vue?vue&type=template&id=3d935500 diff --git a/vue/dist/GoogleAnalyticsImporter.umd.min.js b/vue/dist/GoogleAnalyticsImporter.umd.min.js index 88a6012e5..2f27023fa 100644 --- a/vue/dist/GoogleAnalyticsImporter.umd.min.js +++ b/vue/dist/GoogleAnalyticsImporter.umd.min.js @@ -1,4 +1,4 @@ -(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("CoreHome"),require("vue"),require("CorePluginsAdmin")):"function"===typeof define&&define.amd?define(["CoreHome",,"CorePluginsAdmin"],t):"object"===typeof exports?exports["GoogleAnalyticsImporter"]=t(require("CoreHome"),require("vue"),require("CorePluginsAdmin")):e["GoogleAnalyticsImporter"]=t(e["CoreHome"],e["Vue"],e["CorePluginsAdmin"])})("undefined"!==typeof self?self:this,(function(e,t,n){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="plugins/GoogleAnalyticsImporter/vue/dist/",n(n.s="fae3")}({"19dc":function(t,n){t.exports=e},"8bbf":function(e,n){e.exports=t},a5a2:function(e,t){e.exports=n},fae3:function(e,t,n){"use strict";if(n.r(t),n.d(t,"ImportScheduler",(function(){return A})),n.d(t,"ImportSchedulerGA4",(function(){return w})),n.d(t,"ImportSelector",(function(){return P})),n.d(t,"ImportStatus",(function(){return Je})),n.d(t,"ConfigureConnection",(function(){return Et})),n.d(t,"ClientConfig",(function(){return Pt})),n.d(t,"AdminPage",(function(){return Qt})),n.d(t,"Connect",(function(){return Xt})),"undefined"!==typeof window){var o=window.document.currentScript,r=o&&o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(n.p=r[1])}var a=n("19dc"),l=["Transitions.getTransitions","UsersFlow.getUsersFlow","UsersFlow.getUsersFlowPretty","UsersFlow.getInteractionActions"],i=window,c=i.$;a["Matomo"].on("widget:loaded",(function(e){var t=e.parameters,n=e.element,o="".concat(t.module,".").concat(t.action);if(-1!==l.indexOf(o)){var r=a["Matomo"].importedFromGoogleStartDate,i=a["Matomo"].importedFromGoogleEndDate;if(r&&i){r=Object(a["parseDate"])(r),i=Object(a["parseDate"])(i);var s=a["MatomoUrl"].parsed.value.period,m=a["MatomoUrl"].parsed.value.date,p=a["Periods"].parse(s,m).getDateRange(),u=!(r.getTime()>p[1].getTime()||i.getTime()
'.concat(d,"
");c(n).find(".card-content>div").append(g)}}}}));var s=n("8bbf"),m={name:"startDate"},p={name:"endDate"},u={name:"propertyId"},d={name:"accountId"},g={name:"viewId"},b={name:"isMobileApp"},O={name:"timezone"},j={name:"extraCustomDimensions"},f={name:"forceIgnoreOutOfCustomDimSlotError"},h={name:"isVerboseLoggingEnabled"},y=["disabled"];function I(e,t,n,o,r,a){var l=Object(s["resolveComponent"])("Field");return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",null,[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ScheduleImportDescription")),1),Object(s["createElementVNode"])("div",m,[Object(s["createVNode"])(l,{uicontrol:"text",name:"startDate",modelValue:e.startDate,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.startDate=t}),title:e.translate("GoogleAnalyticsImporter_StartDate"),placeholder:"".concat(e.translate("GoogleAnalyticsImporter_CreationDate")," (YYYY-MM-DD)"),"inline-help":e.translate("GoogleAnalyticsImporter_StartDateHelp")},null,8,["modelValue","title","placeholder","inline-help"])]),Object(s["createElementVNode"])("div",p,[Object(s["createVNode"])(l,{uicontrol:"text",name:"endDate",modelValue:e.endDate,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.endDate=t}),title:e.translate("GoogleAnalyticsImporter_EndDate"),placeholder:e.translate("GoogleAnalyticsImporter_None"),"inline-help":e.endDateHelp},null,8,["modelValue","title","placeholder","inline-help"])]),Object(s["createElementVNode"])("div",u,[Object(s["createVNode"])(l,{uicontrol:"text",name:"propertyId",modelValue:e.propertyId,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.propertyId=t}),placeholder:"eg. UA-XXXXX-X",title:e.translate("GoogleAnalyticsImporter_PropertyId"),"inline-help":e.translate("GoogleAnalyticsImporter_PropertyIdHelp")},null,8,["modelValue","title","inline-help"])]),Object(s["createElementVNode"])("div",d,[Object(s["createVNode"])(l,{uicontrol:"text",name:"accountId",placeholder:"eg. 1234567",modelValue:e.accountId,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.accountId=t}),title:e.translate("GoogleAnalyticsImporter_AccountId"),"inline-help":e.translate("GoogleAnalyticsImporter_AccountIdHelp")},null,8,["modelValue","title","inline-help"])]),Object(s["createElementVNode"])("div",g,[Object(s["createVNode"])(l,{uicontrol:"text",name:"viewId",placeholder:"eg. 1234567",modelValue:e.viewId,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.viewId=t}),title:e.translate("GoogleAnalyticsImporter_ViewId"),"inline-help":e.translate("GoogleAnalyticsImporter_ViewIdHelp")},null,8,["modelValue","title","inline-help"])]),Object(s["createElementVNode"])("div",b,[Object(s["createVNode"])(l,{uicontrol:"checkbox",name:"isMobileApp",modelValue:e.isMobileApp,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.isMobileApp=t}),title:e.translate("GoogleAnalyticsImporter_IsMobileApp"),"inline-help":e.translate("GoogleAnalyticsImporter_IsMobileAppHelp")},null,8,["modelValue","title","inline-help"])]),Object(s["createElementVNode"])("div",O,[Object(s["createVNode"])(l,{uicontrol:"text",name:"timezone",modelValue:e.timezone,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.timezone=t}),title:e.translate("GoogleAnalyticsImporter_Timezone"),placeholder:e.translate("GoogleAnalyticsImporter_Optional"),"inline-help":e.timezoneHelp},null,8,["modelValue","title","placeholder","inline-help"])]),Object(s["createElementVNode"])("div",j,[Object(s["createVNode"])(l,{uicontrol:"multituple",name:"extraCustomDimensions",modelValue:e.extraCustomDimensions,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.extraCustomDimensions=t}),title:e.translate("GoogleAnalyticsImporter_ExtraCustomDimensions"),"inline-help":e.extraCustomDimensionsHelp,"ui-control-attributes":e.extraCustomDimensionsField},null,8,["modelValue","title","inline-help","ui-control-attributes"])]),Object(s["createElementVNode"])("div",f,[Object(s["createVNode"])(l,{uicontrol:"checkbox",name:"forceIgnoreOutOfCustomDimSlotError",modelValue:e.ignoreCustomDimensionSlotCheck,"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.ignoreCustomDimensionSlotCheck=t}),title:e.translate("GoogleAnalyticsImporter_ForceCustomDimensionSlotCheck"),"inline-help":e.forceIgnoreOutOfCustomDimSlotErrorHelp},null,8,["modelValue","title","inline-help"])]),Object(s["createElementVNode"])("h3",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Troubleshooting")),1),Object(s["createElementVNode"])("div",h,[Object(s["createVNode"])(l,{uicontrol:"checkbox",name:"isVerboseLoggingEnabled",modelValue:e.isVerboseLoggingEnabled,"onUpdate:modelValue":t[9]||(t[9]=function(t){return e.isVerboseLoggingEnabled=t}),title:e.translate("GoogleAnalyticsImporter_IsVerboseLoggingEnabled"),"inline-help":e.isVerboseLoggingEnabledHelp},null,8,["modelValue","title","inline-help"])]),Object(s["createElementVNode"])("button",{type:"submit",id:"startImportSubmit",class:"btn",onClick:t[10]||(t[10]=function(t){return e.startImport()}),disabled:e.isStartingImport},Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Start")),9,y)])}var C=n("a5a2"),D=Object(s["defineComponent"])({props:{startImportNonce:{type:String,required:!0},maxEndDateDesc:String,extraCustomDimensionsField:{type:Object,required:!0}},components:{Field:C["Field"]},data:function(){return{isStartingImport:!1,extraCustomDimensions:[],isVerboseLoggingEnabled:!1,ignoreCustomDimensionSlotCheck:!1,startDate:"",endDate:"",propertyId:"",accountId:"",viewId:"",isMobileApp:!1,timezone:""}},created:function(){return this},methods:{startImport:function(){if(this.startDate)try{Object(a["parseDate"])(this.startDate)}catch(n){var e=a["NotificationsStore"].show({message:Object(a["translate"])("GoogleAnalyticsImporter_InvalidDateFormat",["YYYY-MM-DD"]),context:"error",type:"transient"});return void a["NotificationsStore"].scrollToNotification(e)}this.isStartingImport=!0;var t=!this.ignoreCustomDimensionSlotCheck;return a["AjaxHelper"].post({module:"GoogleAnalyticsImporter",action:"startImport",startDate:this.startDate,endDate:this.endDate,propertyId:this.propertyId,viewId:this.viewId,nonce:this.startImportNonce,accountId:this.accountId,isMobileApp:this.isMobileApp?"1":"0",timezone:this.timezone,extraCustomDimensions:this.extraCustomDimensions,isVerboseLoggingEnabled:this.isVerboseLoggingEnabled?"1":"0",forceCustomDimensionSlotCheck:t?"1":"0"},{},{withTokenInUrl:!0}).finally((function(){window.location.reload()}))}},computed:{endDateHelp:function(){var e=Object(a["translate"])("GoogleAnalyticsImporter_EndDateHelpText"),t=this.maxEndDateDesc&&Object(a["translate"])("

GoogleAnalyticsImporter_MaxEndDateHelp",this.maxEndDateDesc);return"".concat(e," ").concat(t||"")},timezoneHelp:function(){var e="https://www.php.net/manual/en/timezones.php";return Object(a["translate"])("GoogleAnalyticsImporter_TimezoneHelp",''),"")},extraCustomDimensionsHelp:function(){var e="https://ga-dev-tools.appspot.com/dimensions-metrics-explorer/";return Object(a["translate"])("GoogleAnalyticsImporter_ExtraCustomDimensionsHelp",''),"")},forceIgnoreOutOfCustomDimSlotErrorHelp:function(){var e="https://matomo.org/docs/custom-dimensions/";return Object(a["translate"])("GoogleAnalyticsImporter_ForceCustomDimensionSlotCheckHelp",''),"")},isVerboseLoggingEnabledHelp:function(){return Object(a["translate"])("GoogleAnalyticsImporter_IsVerboseLoggingEnabledHelp","/path/to/matomo/tmp/logs/","gaimportlog.$idSite.$matomoDomain.log")}}});D.render=I;var A=D,V={name:"startDateGA4"},N={name:"endDateGA4"},E={name:"propertyIdGA4"},S={name:"isMobileAppGA4"},k={name:"timezoneGA4"},G={name:"extraCustomDimensionsGA4"},_={name:"forceIgnoreOutOfCustomDimSlotErrorGA4"},v={name:"isVerboseLoggingEnabledGA4"},x=["disabled"];function B(e,t,n,o,r,a){var l=Object(s["resolveComponent"])("Field");return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",null,[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ScheduleImportDescription")),1),Object(s["createElementVNode"])("div",V,[Object(s["createVNode"])(l,{uicontrol:"text",name:"startDateGA4",modelValue:e.startDateGA4,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.startDateGA4=t}),title:e.translate("GoogleAnalyticsImporter_StartDate"),placeholder:"".concat(e.translate("GoogleAnalyticsImporter_CreationDate")," (YYYY-MM-DD)"),"inline-help":e.translate("GoogleAnalyticsImporter_StartDateHelp")},null,8,["modelValue","title","placeholder","inline-help"])]),Object(s["createElementVNode"])("div",N,[Object(s["createVNode"])(l,{uicontrol:"text",name:"endDateGA4",modelValue:e.endDateGA4,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.endDateGA4=t}),title:e.translate("GoogleAnalyticsImporter_EndDate"),placeholder:e.translate("GoogleAnalyticsImporter_None"),"inline-help":e.endDateHelp},null,8,["modelValue","title","placeholder","inline-help"])]),Object(s["createElementVNode"])("div",E,[Object(s["createVNode"])(l,{uicontrol:"text",name:"propertyIdGA4",modelValue:e.propertyIdGA4,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.propertyIdGA4=t}),placeholder:"eg. properties/{PROPERTY_ID}",title:e.translate("GoogleAnalyticsImporter_PropertyIdGA4"),"inline-help":e.translate("GoogleAnalyticsImporter_PropertyIdGA4Help")},null,8,["modelValue","title","inline-help"])]),Object(s["createElementVNode"])("div",S,[Object(s["createVNode"])(l,{uicontrol:"checkbox",name:"isMobileAppGA4",modelValue:e.isMobileAppGA4,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.isMobileAppGA4=t}),title:e.translate("GoogleAnalyticsImporter_IsMobileApp"),"inline-help":e.translate("GoogleAnalyticsImporter_IsMobileAppHelp")},null,8,["modelValue","title","inline-help"])]),Object(s["createElementVNode"])("div",k,[Object(s["createVNode"])(l,{uicontrol:"text",name:"timezoneGA4",modelValue:e.timezoneGA4,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.timezoneGA4=t}),title:e.translate("GoogleAnalyticsImporter_Timezone"),placeholder:e.translate("GoogleAnalyticsImporter_Optional"),"inline-help":e.timezoneHelp},null,8,["modelValue","title","placeholder","inline-help"])]),Object(s["createElementVNode"])("div",G,[Object(s["createVNode"])(l,{uicontrol:"multituple",name:"extraCustomDimensionsGA4",modelValue:e.extraCustomDimensionsGA4,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.extraCustomDimensionsGA4=t}),title:e.translate("GoogleAnalyticsImporter_ExtraCustomDimensions"),"inline-help":e.extraCustomDimensionsHelp,"ui-control-attributes":e.extraCustomDimensionsField},null,8,["modelValue","title","inline-help","ui-control-attributes"])]),Object(s["createElementVNode"])("div",_,[Object(s["createVNode"])(l,{uicontrol:"checkbox",name:"forceIgnoreOutOfCustomDimSlotErrorGA4",modelValue:e.ignoreCustomDimensionSlotCheckGA4,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.ignoreCustomDimensionSlotCheckGA4=t}),title:e.translate("GoogleAnalyticsImporter_ForceCustomDimensionSlotCheck"),"inline-help":e.forceIgnoreOutOfCustomDimSlotErrorHelp},null,8,["modelValue","title","inline-help"])]),Object(s["createElementVNode"])("h3",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Troubleshooting")),1),Object(s["createElementVNode"])("div",v,[Object(s["createVNode"])(l,{uicontrol:"checkbox",name:"isVerboseLoggingEnabledGA4",modelValue:e.isVerboseLoggingEnabledGA4,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.isVerboseLoggingEnabledGA4=t}),title:e.translate("GoogleAnalyticsImporter_IsVerboseLoggingEnabled"),"inline-help":e.isVerboseLoggingEnabledHelp},null,8,["modelValue","title","inline-help"])]),Object(s["createElementVNode"])("button",{type:"submit",id:"startImportSubmitGA4",class:"btn",onClick:t[8]||(t[8]=function(t){return e.startImportGA4()}),disabled:e.isStartingImport},Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Start")),9,x)])}var T=Object(s["defineComponent"])({props:{startImportNonce:{type:String,required:!0},maxEndDateDesc:String,extraCustomDimensionsField:{type:Object,required:!0}},components:{Field:C["Field"]},data:function(){return{isStartingImport:!1,extraCustomDimensionsGA4:[],isVerboseLoggingEnabledGA4:!1,ignoreCustomDimensionSlotCheckGA4:!1,startDateGA4:"",endDateGA4:"",propertyIdGA4:"",accountId:"",viewId:"",isMobileAppGA4:!1,timezoneGA4:""}},created:function(){return this},methods:{startImportGA4:function(){if(this.startDateGA4)try{Object(a["parseDate"])(this.startDateGA4)}catch(n){var e=a["NotificationsStore"].show({message:Object(a["translate"])("GoogleAnalyticsImporter_InvalidDateFormat",["YYYY-MM-DD"]),context:"error",type:"transient"});return void a["NotificationsStore"].scrollToNotification(e)}this.isStartingImport=!0;var t=!this.ignoreCustomDimensionSlotCheckGA4;return a["AjaxHelper"].post({module:"GoogleAnalyticsImporter",action:"startImportGA4",startDate:this.startDateGA4,endDate:this.endDateGA4,propertyId:this.propertyIdGA4,viewId:this.viewId,nonce:this.startImportNonce,accountId:this.accountId,isMobileApp:this.isMobileAppGA4?"1":"0",timezone:this.timezoneGA4,extraCustomDimensions:this.extraCustomDimensionsGA4,isVerboseLoggingEnabled:this.isVerboseLoggingEnabledGA4?"1":"0",forceCustomDimensionSlotCheck:t?"1":"0"},{},{withTokenInUrl:!0}).finally((function(){window.location.reload()}))}},computed:{endDateHelp:function(){var e=Object(a["translate"])("GoogleAnalyticsImporter_EndDateHelpText"),t=this.maxEndDateDesc&&Object(a["translate"])("

GoogleAnalyticsImporter_MaxEndDateHelp",this.maxEndDateDesc);return"".concat(e," ").concat(t||"")},timezoneHelp:function(){var e="https://www.php.net/manual/en/timezones.php";return Object(a["translate"])("GoogleAnalyticsImporter_TimezoneGA4Help",''),"")},extraCustomDimensionsHelp:function(){var e="https://ga-dev-tools.web.app/ga4/dimensions-metrics-explorer/";return Object(a["translate"])("GoogleAnalyticsImporter_ExtraCustomDimensionsGA4Help",''),"")},forceIgnoreOutOfCustomDimSlotErrorHelp:function(){var e="https://matomo.org/docs/custom-dimensions/";return Object(a["translate"])("GoogleAnalyticsImporter_ForceCustomDimensionSlotCheckHelp",''),"")},isVerboseLoggingEnabledHelp:function(){return Object(a["translate"])("GoogleAnalyticsImporter_IsVerboseLoggingEnabledHelp","/path/to/matomo/tmp/logs/","gaimportlog.$idSite.$matomoDomain.log")}}});T.render=B;var w=T;function M(e,t,n,o,r,a){var l=Object(s["resolveComponent"])("Field"),i=Object(s["resolveDirective"])("form");return Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("div",null,[Object(s["createElementVNode"])("div",null,[Object(s["createVNode"])(l,{uicontrol:"radio",name:"selectedImporter",modelValue:e.selectedImporter,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.selectedImporter=t}),options:e.importOptionsUa,"inline-help":e.translate("GoogleAnalyticsImporter_SelectImporterUAInlineHelpText")},null,8,["modelValue","options","inline-help"]),Object(s["createVNode"])(l,{uicontrol:"radio",name:"selectedImporter",modelValue:e.selectedImporter,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.selectedImporter=t}),options:e.importOptionsGa4,"inline-help":e.translate("GoogleAnalyticsImporter_SelectImporterGA4InlineHelpText")},null,8,["modelValue","options","inline-help"])])],512)),[[i]])}var U=Object(s["defineComponent"])({props:{importOptionsUa:{type:Object,required:!0},importOptionsGa4:{type:Object,required:!0}},components:{Field:C["Field"]},directives:{Form:C["Form"]},emits:["update:selectedImporter"],watch:{selectedImporter:function(e){this.$emit("update:selectedImporter",e)}},data:function(){return{selectedImporter:""}}});U.render=M;var P=U,H={ref:"root"},F={class:"entityTable importStatusesTable"},L={class:"modal",id:"openScheduleReimportModal"},R={class:"modal-content"},z={class:"modal-footer"},q={class:"modal",id:"editImportEndDate"},Y={class:"modal-content"},$={class:"modal-footer"};function J(e,t,n,o,r,a){var l=Object(s["resolveComponent"])("ImportStatusRow"),i=Object(s["resolveComponent"])("Field"),c=Object(s["resolveDirective"])("tooltips");return Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("div",H,[Object(s["createElementVNode"])("table",F,[Object(s["createElementVNode"])("thead",null,[Object(s["createElementVNode"])("tr",null,[Object(s["createElementVNode"])("th",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_MatomoSite")),1),Object(s["createElementVNode"])("th",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_GoogleAnalyticsInfo")),1),Object(s["createElementVNode"])("th",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Status")),1),Object(s["createElementVNode"])("th",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_LatestDayProcessed")),1),Object(s["createElementVNode"])("th",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ScheduledReImports")),1),Object(s["createElementVNode"])("th",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_StartFinishTimes")),1),Object(s["createElementVNode"])("th",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Actions")),1)])]),Object(s["createElementVNode"])("tbody",null,[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.statuses,(function(t,n){return Object(s["openBlock"])(),Object(s["createBlock"])(l,{status:t,key:n,onEndImport:function(n){return e.showEditImportEndDateModal(t.idSite,t.isGA4)},onReimport:function(n){return e.openScheduleReimportModal(t.idSite,t.isGA4)},onDelete:function(n){return e.deleteImportStatus(t.idSite,n.isDone)},onManuallyResume:function(n){return e.manuallyResume(t.idSite,t.isGA4)}},null,8,["status","onEndImport","onReimport","onDelete","onManuallyResume"])})),128))])]),Object(s["createElementVNode"])("div",L,[Object(s["createElementVNode"])("div",R,[Object(s["createElementVNode"])("h3",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_EnterImportDateRange")),1),Object(s["createElementVNode"])("div",null,[Object(s["createVNode"])(i,{name:"re-import-start-date",uicontrol:"text",modelValue:e.reimportStartDate,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.reimportStartDate=t}),placeholder:"".concat(e.translate("GoogleAnalyticsImporter_StartDate")," (YYYY-MM-DD)")},null,8,["modelValue","placeholder"])]),Object(s["createElementVNode"])("div",null,[Object(s["createVNode"])(i,{name:"re-import-end-date",uicontrol:"text",modelValue:e.reimportEndDate,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.reimportEndDate=t}),placeholder:"".concat(e.translate("GoogleAnalyticsImporter_EndDate")," (YYYY-MM-DD)")},null,8,["modelValue","placeholder"])])]),Object(s["createElementVNode"])("div",z,[Object(s["createElementVNode"])("a",{id:"scheduleReimportSubmit",href:"",class:"modal-action modal-close btn",onClick:t[2]||(t[2]=Object(s["withModifiers"])((function(t){return e.scheduleReimport()}),["prevent"])),style:{"margin-right":"3.5px"}},Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Schedule")),1),Object(s["createElementVNode"])("a",{href:"",class:"modal-action modal-close modal-no",onClick:t[3]||(t[3]=Object(s["withModifiers"])((function(){}),["prevent"]))},Object(s["toDisplayString"])(e.translate("General_Cancel")),1)])]),Object(s["createElementVNode"])("div",q,[Object(s["createElementVNode"])("div",Y,[Object(s["createElementVNode"])("h3",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_EnterImportEndDate")),1),Object(s["createElementVNode"])("p",null,[Object(s["createElementVNode"])("em",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_LeaveEmptyToRemove")),1)]),Object(s["createElementVNode"])("div",null,[Object(s["createVNode"])(i,{name:"new-import-end-date",uicontrol:"text",modelValue:e.newImportEndDate,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.newImportEndDate=t}),placeholder:"".concat(e.translate("GoogleAnalyticsImporter_EndDate")," (YYYY-MM-DD)")},null,8,["modelValue","placeholder"])])]),Object(s["createElementVNode"])("div",$,[Object(s["createElementVNode"])("a",{href:"",class:"modal-action modal-close btn",onClick:t[5]||(t[5]=function(t){return e.changeImportEndDateModal()}),style:{"margin-right":"3.5px"}},Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Change")),1),Object(s["createElementVNode"])("a",{href:"",class:"modal-action modal-close modal-no",onClick:t[6]||(t[6]=function(t){return e.cancelEditImportEndDateModal()})},Object(s["toDisplayString"])(e.translate("General_Cancel")),1)])])],512)),[[c,{content:e.tooltipContent,delay:500,duration:200}]])}var W=["data-idsite"],X={class:"sitename"},K=["href"],Q={key:1,style:{"text-transform":"uppercase"}},Z=Object(s["createElementVNode"])("br",null,null,-1),ee=["innerHTML"],te={class:"status"},ne={key:0},oe=["title"],re=Object(s["createElementVNode"])("br",null,null,-1),ae={key:0},le={key:1},ie=["title"],ce=Object(s["createElementVNode"])("br",null,null,-1),se={key:0},me={key:2},pe=["title"],ue={key:3},de=["title"],ge={key:4},be=Object(s["createElementVNode"])("br",null,null,-1),Oe=["innerHTML"],je={key:5},fe=["title"],he=Object(s["createElementVNode"])("br",null,null,-1),ye={class:"last-date-imported"},Ie=Object(s["createElementVNode"])("br",null,null,-1),Ce=Object(s["createElementVNode"])("br",null,null,-1),De=Object(s["createElementVNode"])("br",null,null,-1),Ae=Object(s["createElementVNode"])("br",null,null,-1),Ve=Object(s["createElementVNode"])("br",null,null,-1),Ne={key:0},Ee={class:"scheduled-reimports"},Se={key:0},ke={key:1},Ge={class:"import-start-finish-times"},_e=Object(s["createElementVNode"])("br",null,null,-1),ve=Object(s["createElementVNode"])("br",null,null,-1),xe={key:0},Be={key:1},Te={key:0},we={key:1},Me={key:2},Ue={key:3},Pe={class:"actions"},He=["title"],Fe=["title"];function Le(e,t,n,o,r,a){var l;return Object(s["openBlock"])(),Object(s["createElementBlock"])("tr",{"data-idsite":e.status.idSite},[Object(s["createElementVNode"])("td",X,[e.status.site?(Object(s["openBlock"])(),Object(s["createElementBlock"])("a",{key:0,target:"_blank",href:e.siteUrl},Object(s["toDisplayString"])(e.siteName),9,K)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Q,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_SiteDeleted")),1)),Z,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_SiteID"))+": "+Object(s["toDisplayString"])(e.status.idSite),1)]),Object(s["createElementVNode"])("td",{class:"ga-info",innerHTML:e.$sanitize(e.gaInfoPretty)},null,8,ee),Object(s["createElementVNode"])("td",te,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.status.status)+" ",1),"rate_limited"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",ne,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_RateLimitHelp")},null,8,oe),re,e.status.days_finished_since_rate_limit?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",ae,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_FinishedImportingDaysWaiting",e.status.days_finished_since_rate_limit)),1)):Object(s["createCommentVNode"])("",!0)])):Object(s["createCommentVNode"])("",!0),"cloud_rate_limited"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",le,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.status.error},null,8,ie),ce,e.status.days_finished_since_rate_limit?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",se,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_FinishedImportingDaysWaiting",e.status.days_finished_since_rate_limit)),1)):Object(s["createCommentVNode"])("",!0)])):Object(s["createCommentVNode"])("",!0),"rate_limited_hourly"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",me,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_RateLimitHourlyHelp")},null,8,pe)])):Object(s["createCommentVNode"])("",!0),"future_date_import_pending"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",ue,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_FutureDateHelp",e.status.future_resume_date)},null,8,de)])):"errored"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",ge,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ErrorMessage"))+": "+Object(s["toDisplayString"])(e.status.error||"no message")+" ",1),be,Object(s["createElementVNode"])("span",{innerHTML:e.$sanitize(e.errorMessageBugReportRequest)},null,8,Oe)])):"killed"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",je,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_KilledStatusHelp")},null,8,fe),he,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ErrorMessage"))+": "+Object(s["toDisplayString"])(e.status.error||"no message"),1)])):Object(s["createCommentVNode"])("",!0)]),Object(s["createElementVNode"])("td",ye,[Object(s["createElementVNode"])("div",null,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_LastDayImported"))+": "+Object(s["toDisplayString"])(e.status.last_date_imported||e.noneText),1),Ie,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_LastDayArchived"))+": "+Object(s["toDisplayString"])(e.status.last_day_archived||e.noneText),1),Ce,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImportStartDate"))+": "+Object(s["toDisplayString"])(e.status.import_range_start||e.websiteCreationTime)+" ",1),De,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImportEndDate"))+": "+Object(s["toDisplayString"])(e.status.import_range_end||e.noneText)+" ",1),Ae,Ve]),"finished"!==e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",Ne,[Object(s["createElementVNode"])("a",{class:"edit-import-end-link table-command-link",href:"",onClick:t[0]||(t[0]=Object(s["withModifiers"])((function(t){return e.$emit("end-import")}),["prevent"]))},Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_EditEndDate")),1)])):Object(s["createCommentVNode"])("",!0),Object(s["createElementVNode"])("div",null,[Object(s["createElementVNode"])("a",{id:"reimport-date-range",class:"table-command-link",href:"",onClick:t[1]||(t[1]=Object(s["withModifiers"])((function(t){return e.$emit("reimport")}),["prevent"]))},Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ReimportDate")),1)])]),Object(s["createElementVNode"])("td",Ee,[null!==(l=e.status.reimport_ranges)&&void 0!==l&&l.length?(Object(s["openBlock"])(),Object(s["createElementBlock"])("ul",Se,[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.status.reimport_ranges,(function(e,t){return Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:t},Object(s["toDisplayString"])(e[0])+","+Object(s["toDisplayString"])(e[1]),1)})),128))])):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",ke,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_None")),1))]),Object(s["createElementVNode"])("td",Ge,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImportStartTime"))+": "+Object(s["toDisplayString"])(e.status.import_start_time||e.noneText),1),_e,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_LastResumeTime"))+": "+Object(s["toDisplayString"])(e.status.last_job_start_time||e.noneText),1),ve,"finished"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",xe,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_TimeFinished"))+": "+Object(s["toDisplayString"])(e.status.import_end_time||e.noneText),1)):e.status.estimated_days_left_to_finish?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Be,[e.thisJobShouldFinishToday?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Te,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ThisJobShouldFinishToday")),1)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",we,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_EstimatedFinishIn",e.status.estimated_days_left_to_finish)),1))])):e.status.import_range_end?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Me,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_JobWillRunUntilManuallyCancelled")),1)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Ue,Object(s["toDisplayString"])(e.translate("General_Unknown")),1))]),Object(s["createElementVNode"])("td",Pe,[Object(s["createElementVNode"])("a",{class:Object(s["normalizeClass"])(["table-action",{"icon-delete":e.isDone,"icon-close":!e.isDone}]),onClick:t[2]||(t[2]=Object(s["withModifiers"])((function(t){return e.$emit("delete",{isDone:e.isDone})}),["prevent"])),title:e.isDone?e.translate("General_Remove"):e.translate("General_Cancel")},null,10,He),-1===["finished","ongoing","started"].indexOf(e.status.status)?(Object(s["openBlock"])(),Object(s["createElementBlock"])("a",{key:0,class:"table-action icon-play",onClick:t[3]||(t[3]=Object(s["withModifiers"])((function(t){return e.$emit("manuallyResume")}),["prevent"])),title:e.translate("GoogleAnalyticsImporter_ResumeDesc")},null,8,Fe)):Object(s["createCommentVNode"])("",!0)])],8,W)}var Re=Object(s["defineComponent"])({props:{status:{type:Object,required:!0}},emits:["end-import","reimport","delete","manuallyResume"],computed:{isDone:function(){return"finished"===this.status.status},siteUrl:function(){return"?".concat(a["MatomoUrl"].stringify(Object.assign(Object.assign({period:"day",date:"today"},a["MatomoUrl"].urlParsed.value),{},{idSite:this.status.idSite,module:"CoreHome",action:"index"})))},gaInfoPretty:function(){return(this.status.gaInfoPretty||"").replace(/\n/g,"
")},errorMessageBugReportRequest:function(){return Object(a["translate"])("GoogleAnalyticsImporter_ErrorMessageBugReportRequest",'',"")},thisJobShouldFinishToday:function(){return 0===this.status.estimated_days_left_to_finish||"0"===this.status.estimated_days_left_to_finish},siteName:function(){var e;return a["Matomo"].helper.htmlDecode(null===(e=this.status.site)||void 0===e?void 0:e.name)},noneText:function(){return Object(a["translate"])("GoogleAnalyticsImporter_None")},websiteCreationTime:function(){return Object(a["translate"])("GoogleAnalyticsImporter_CreationDate")}}});Re.render=Le;var ze=Re,qe=window,Ye=qe.$,$e=Object(s["defineComponent"])({props:{statuses:{type:Array,required:!0},stopImportNonce:{type:String,required:!0},changeImportEndDateNonce:{type:String,required:!0},resumeImportNonce:{type:String,required:!0},scheduleReImportNonce:{type:String,required:!0}},components:{Field:C["Field"],ImportStatusRow:ze},directives:{Tooltips:a["Tooltips"]},data:function(){return{editImportEndDateIdSite:null,reimportDateRangeIdSite:null,reimportStartDate:"",reimportEndDate:"",newImportEndDate:"",isGA4:!1}},methods:{showEditImportEndDateModal:function(e,t){this.editImportEndDateIdSite=e,this.isGA4=t,Ye("#editImportEndDate").modal({dismissible:!1}).modal("open")},cancelEditImportEndDateModal:function(){this.editImportEndDateIdSite=null,this.isGA4=!1},manuallyResume:function(e,t){return a["AjaxHelper"].post({module:"GoogleAnalyticsImporter",action:"resumeImport",idSite:e,isGA4:t?1:0,nonce:this.resumeImportNonce},{},{withTokenInUrl:!0}).finally((function(){window.location.reload()}))},deleteImportStatus:function(e,t){var n=this;if(t)return a["AjaxHelper"].post({module:"GoogleAnalyticsImporter",action:"deleteImportStatus",idSite:e,nonce:this.stopImportNonce},{},{withTokenInUrl:!0}).finally((function(){window.location.reload()}));a["Matomo"].helper.modalConfirm("#confirmCancelJob",{yes:function(){n.deleteImportStatus(e,!0)}})},openScheduleReimportModal:function(e,t){this.reimportDateRangeIdSite=e,this.isGA4=t,Ye("#openScheduleReimportModal").modal({dismissible:!1}).modal("open")},changeImportEndDateModal:function(){return a["AjaxHelper"].post({module:"GoogleAnalyticsImporter",action:"changeImportEndDate",idSite:this.editImportEndDateIdSite,nonce:this.changeImportEndDateNonce,endDate:this.newImportEndDate},{},{withTokenInUrl:!0}).finally((function(){window.location.reload()}))},scheduleReimport:function(){return a["AjaxHelper"].post({module:"GoogleAnalyticsImporter",action:"scheduleReImport",idSite:this.reimportDateRangeIdSite,startDate:this.reimportStartDate,endDate:this.reimportEndDate,nonce:this.scheduleReImportNonce,isGA4:this.isGA4?1:0},{},{withTokenInUrl:!0}).finally((function(){window.location.reload()}))}},computed:{tooltipContent:function(){return function(){var e=Ye(this).attr("title")||"";return window.vueSanitize(e.replace(/\n/g,"
"))}}}});$e.render=J;var Je=$e,We={key:0,class:"form-group row"},Xe={class:"col s12 m6"},Ke=Object(s["createElementVNode"])("br",null,null,-1),Qe=["innerHTML"],Ze={class:"col s12 m6"},et=["innerHTML"],tt=["innerHTML"],nt=["textContent"],ot={class:"form-group row"},rt=["action"],at={key:0,type:"hidden",name:"isNoDataPage",value:"1"},lt=["value"],it=["disabled"],ct=Object(s["createElementVNode"])("span",{class:"icon-upload"},null,-1),st=Object(s["createElementVNode"])("span",{class:"icon-upload"},null,-1),mt={key:1,class:"system-success connected-message-successful"},pt=Object(s["createElementVNode"])("span",{class:"icon-ok"},null,-1),ut=["innerHTML"],dt=["innerHTML"],gt=["action"],bt=["value"],Ot=["disabled","textContent"],jt={key:0,class:"system-success connected-message-successful"},ft=Object(s["createElementVNode"])("span",{class:"icon-ok"},null,-1),ht=["innerHTML"],yt=["textContent"],It=["textContent"],Ct=["innerHTML"],Dt=["innerHTML"],At=["textContent"];function Vt(e,t,n,o,r,a){return Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],null,[e.isNoDataPage?Object(s["createCommentVNode"])("",!0):(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",We,[Object(s["createElementVNode"])("div",Xe,[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ConfigureTheImporterLabel1")),1),Object(s["createElementVNode"])("p",null,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ConfigureTheImporterLabel2")),1),Ke,Object(s["createElementVNode"])("span",{innerHTML:e.setupGoogleAnalyticsImportFaq},null,8,Qe)])]),Object(s["createElementVNode"])("div",Ze,[Object(s["createElementVNode"])("div",{class:"form-help",innerHTML:e.translate("GoogleAnalyticsImporter_ConfigureTheImporterHelpNewDate","","")},null,8,et)])])),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:1,innerHTML:e.$sanitize(e.getAdvanceConnectStep01Text)},null,8,tt)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:2,textContent:Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep02"))},null,8,nt)):Object(s["createCommentVNode"])("",!0),Object(s["createElementVNode"])("div",ot,[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(e.getClass)},[Object(s["createElementVNode"])("form",{id:"configFileUploadForm",action:e.manualActionUrl,method:"POST",enctype:"multipart/form-data"},[Object(s["createElementVNode"])("input",{type:"file",id:"clientfile",name:"clientfile",accept:".json",onChange:t[0]||(t[0]=function(){return e.processFileChange&&e.processFileChange.apply(e,arguments)}),style:{display:"none"}},null,32),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("input",at)):Object(s["createCommentVNode"])("",!0),Object(s["createElementVNode"])("input",{type:"hidden",name:"config_nonce",value:e.manualConfigNonce},null,8,lt),Object(s["createElementVNode"])("button",{type:"button",class:"btn advance-upload-button",onClick:t[1]||(t[1]=function(t){return e.selectConfigFile()}),disabled:e.isUploadButtonDisabled},[Object(s["withDirectives"])(Object(s["createElementVNode"])("span",null,[ct,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("General_Upload")),1)],512),[[s["vShow"],!e.isUploadButtonDisabled]]),Object(s["withDirectives"])(Object(s["createElementVNode"])("span",null,[st,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Uploading")),1)],512),[[s["vShow"],e.isUploadButtonDisabled]])],8,it),e.isNoDataPage&&e.hasClientConfiguration?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",mt,[pt,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_UploadSuccessful")),1)])):Object(s["createCommentVNode"])("",!0)],8,rt)],2)]),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:3,innerHTML:e.$sanitize(e.getAdvanceConnectStep03Text)},null,8,ut)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:4,style:{"margin-left":"1.2rem"},class:"complete-note-warning",innerHTML:e.$sanitize(e.getOauthCompleteWarningMessage)},null,8,dt)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("form",{key:5,target:"_blank",method:"post",action:e.authorizeUrl},[Object(s["createElementVNode"])("input",{type:"hidden",name:"auth_nonce",value:e.forwardToAuthNonce},null,8,bt),Object(s["createElementVNode"])("button",{disabled:!1===e.hasClientConfiguration,textContent:Object(s["toDisplayString"])(e.getAuthorizeText),type:"submit",class:"btn btn-forward-to-Oauth"},null,8,Ot),e.isNoDataPage&&e.hasClientConfiguration&&e.isConfigured?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",jt,[ft,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_AccountsConnectedSuccessfully")),1)])):Object(s["createCommentVNode"])("",!0)],8,gt)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:6,innerHTML:e.$sanitize(e.getAdvanceConnectStep04Text)},null,8,ht)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:7,textContent:Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep05"))},null,8,yt)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:8,textContent:Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep06"))},null,8,It)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:9,innerHTML:e.$sanitize(e.getAdvanceConnectStep07Text)},null,8,Ct)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:10,innerHTML:e.$sanitize(e.getAdvanceConnectStep08Text)},null,8,Dt)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:11,textContent:Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep09"))},null,8,At)):Object(s["createCommentVNode"])("",!0)],64)}var Nt=Object(s["defineComponent"])({data:function(){return{isSelectingFile:!1,isUploading:!1}},props:{manualConfigNonce:{type:String,required:!0},manualActionUrl:{type:String,required:!0},isNoDataPage:Boolean,hasClientConfiguration:Boolean,indexActionUrl:String,authorizeUrl:String,forwardToAuthNonce:String,isConfigured:Boolean},methods:{selectConfigFile:function(){this.isSelectingFile=!0;var e=document.getElementById("clientfile");e&&e.click()},processFileChange:function(){var e=document.getElementById("clientfile"),t=document.getElementById("configFileUploadForm");e&&e.value&&t&&(this.isUploading=!0,t.submit())},checkForCancel:function(){if(this.isSelectingFile&&!this.isUploading){var e=document.getElementById("clientfile");e&&!e.value&&(this.isSelectingFile=!1)}}},computed:{setupGoogleAnalyticsImportFaq:function(){var e="https://matomo.org/faq/general/set-up-google-analytics-import/";return Object(a["translate"])("GoogleAnalyticsImporter_ConfigureTheImporterLabel3",''),"")},isUploadButtonDisabled:function(){return this.isSelectingFile||this.isUploading},getAdvanceConnectStep01Text:function(){var e="https://matomo.org/faq/general/set-up-google-analytics-import/";return this.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep01",''),"")},getAdvanceConnectStep03Text:function(){return this.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep03",this.translate("GoogleAnalyticsImporter_Authorize"))},getAdvanceConnectStep04Text:function(){var e="https://matomo.org/faq/general/running-the-google-analytics-import/";return this.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep04",''),"",''),"")},getAdvanceConnectStep05Text:function(){return this.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep05",''),"")},getAdvanceConnectStep07Text:function(){return"".concat(this.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep07",this.translate("GoogleAnalyticsImporter_Start")),'
').concat(this.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep07Note","","",this.translate("GoogleAnalyticsImporter_Start")),"
")},getAdvanceConnectStep08Text:function(){return this.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep08",''),"")},getOauthCompleteWarningMessage:function(){return this.translate("GoogleAnalyticsImporter_GoogleOauthCompleteWarning","","")},getClass:function(){var e="col s12";return this.isNoDataPage?e+=" p-half-point":e+=" m6",e},getAuthorizeText:function(){return this.isConfigured?this.translate("GoogleAnalyticsImporter_ReAuthorize"):this.translate("GoogleAnalyticsImporter_Authorize")}},mounted:function(){document.body.onfocus=this.checkForCancel}});Nt.render=Vt;var Et=Nt,St=["action"],kt=["value"],Gt={key:0},_t={type:"submit",class:"btn"},vt={key:1},xt={type:"submit",class:"btn"},Bt=["action"],Tt=["value"],wt={type:"submit",class:"btn"};function Mt(e,t,n,o,r,a){var l=Object(s["resolveComponent"])("ContentBlock");return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",null,[e.hasClientConfiguration?(Object(s["openBlock"])(),Object(s["createBlock"])(l,{key:0,"content-title":e.translate("GoogleAnalyticsImporter_ConfigureTheImporter")},{default:Object(s["withCtx"])((function(){return[Object(s["createElementVNode"])("form",{method:"post",action:e.forwardToAuthUrl,id:"clientauthform"},[Object(s["createElementVNode"])("input",{type:"hidden",name:"auth_nonce",value:e.authNonce},null,8,kt),e.isConfigured?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Gt,[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImporterIsConfigured")),1),Object(s["createElementVNode"])("button",_t,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ReAuthorize")),1)])):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",vt,[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ClientConfigSuccessfullyUpdated")),1),Object(s["createElementVNode"])("button",xt,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Authorize")),1)]))],8,St)]})),_:1},8,["content-title"])):Object(s["createCommentVNode"])("",!0),e.hasClientConfiguration?(Object(s["openBlock"])(),Object(s["createBlock"])(l,{key:1,"content-title":e.translate("GoogleAnalyticsImporter_RemoveClientConfiguration")},{default:Object(s["withCtx"])((function(){return[Object(s["createElementVNode"])("form",{action:e.deleteClientCredentialsLink,method:"POST",enctype:"multipart/form-data",id:"removeConfigForm"},[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_DeleteUploadedClientConfig"))+":",1),Object(s["createElementVNode"])("input",{type:"hidden",name:"config_nonce",value:e.configNonce},null,8,Tt),Object(s["createElementVNode"])("button",wt,Object(s["toDisplayString"])(e.translate("General_Remove")),1)],8,Bt)]})),_:1},8,["content-title"])):Object(s["createCommentVNode"])("",!0)])}var Ut=Object(s["defineComponent"])({props:{hasClientConfiguration:Boolean,isConfigured:Boolean,authNonce:String,configNonce:String},components:{ContentBlock:a["ContentBlock"]},data:function(){return{clientFileToSet:null,clientConfigTextToSet:""}},computed:{forwardToAuthUrl:function(){return"?".concat(a["MatomoUrl"].stringify(Object.assign(Object.assign({},a["MatomoUrl"].urlParsed.value),{},{action:"forwardToAuth"})))},configureClientLink:function(){return"?".concat(a["MatomoUrl"].stringify(Object.assign(Object.assign({},a["MatomoUrl"].urlParsed.value),{},{action:"configureClient"})))},configureClientDesc2:function(){var e="https://matomo.org/docs/google-analytics-importer/";return Object(a["translate"])("GoogleAnalyticsImporter_ConfigureClientDesc2",''),"")},deleteClientCredentialsLink:function(){return"?".concat(a["MatomoUrl"].stringify(Object.assign(Object.assign({},a["MatomoUrl"].urlParsed.value),{},{action:"deleteClientCredentials"})))}}});Ut.render=Mt;var Pt=Ut,Ht={class:"hide-import-main-div ga-import-main-div ua-main-div"},Ft={class:"hide-import-main-div ga-import-main-div ga4-main-div"},Lt={key:0},Rt={key:3,class:"ui-confirm",id:"confirmCancelJob"},zt=["value"],qt=["value"];function Yt(e,t,n,o,r,a){var l=Object(s["resolveComponent"])("CommonConnect"),i=Object(s["resolveComponent"])("ClientConfig"),c=Object(s["resolveComponent"])("ImportSelector"),m=Object(s["resolveComponent"])("ImportScheduler"),p=Object(s["resolveComponent"])("ImportSchedulerGA4"),u=Object(s["resolveComponent"])("ContentBlock"),d=Object(s["resolveComponent"])("ImportStatus");return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",null,[Object(s["createVNode"])(l,{extensions:e.extensions,"configure-connection-props":e.configureConnectionProps},null,8,["extensions","configure-connection-props"]),e.isClientConfigurable?(Object(s["openBlock"])(),Object(s["createBlock"])(i,{key:0,"has-client-configuration":e.hasClientConfiguration,"is-configured":e.isConfigured,"auth-nonce":e.authNonce,"config-nonce":e.configNonce},null,8,["has-client-configuration","is-configured","auth-nonce","config-nonce"])):Object(s["createCommentVNode"])("",!0),e.hasClientConfiguration&&e.isConfigured?(Object(s["openBlock"])(),Object(s["createBlock"])(u,{key:1,"content-title":e.translate("GoogleAnalyticsImporter_SelectImporter")},{default:Object(s["withCtx"])((function(){return[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_SelectImporterSelection")),1),Object(s["createVNode"])(c,{"import-options-ua":e.importOptionsUa,"import-options-ga4":e.importOptionsGa4,"onUpdate:selectedImporter":t[0]||(t[0]=function(t){return e.selectedImporter=t})},null,8,["import-options-ua","import-options-ga4"]),Object(s["withDirectives"])(Object(s["createElementVNode"])("div",Ht,[Object(s["createElementVNode"])("h3",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ScheduleAnImport")),1),Object(s["createVNode"])(m,{"vue-entry":"GoogleAnalyticsImporter.ImportScheduler","has-client-configuration":e.hasClientConfiguration,"is-configured":e.isConfigured,"start-import-nonce":e.startImportNonce,"max-end-date-desc":e.maxEndDateDesc,"extra-custom-dimensions-field":e.extraCustomDimensionsField},null,8,["has-client-configuration","is-configured","start-import-nonce","max-end-date-desc","extra-custom-dimensions-field"])],512),[[s["vShow"],"ua"===e.selectedImporter]]),Object(s["withDirectives"])(Object(s["createElementVNode"])("div",Ft,[Object(s["createElementVNode"])("h3",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ScheduleAnImportGA4")),1),Object(s["createVNode"])(p,{"start-import-nonce":e.startImportNonce,"max-end-date-desc":e.maxEndDateDesc,"extra-custom-dimensions-field":e.extraCustomDimensionsFieldGa4},null,8,["start-import-nonce","max-end-date-desc","extra-custom-dimensions-field"])],512),[[s["vShow"],"ga4"===e.selectedImporter]])]})),_:1},8,["content-title"])):Object(s["createCommentVNode"])("",!0),e.hasClientConfiguration&&e.isConfigured?(Object(s["openBlock"])(),Object(s["createBlock"])(u,{key:2,id:"importStatusContainer","content-title":e.translate("GoogleAnalyticsImporter_ImportJobs")},{default:Object(s["withCtx"])((function(){var t,n;return[null!==(t=e.statuses)&&void 0!==t&&t.length?Object(s["createCommentVNode"])("",!0):(Object(s["openBlock"])(),Object(s["createElementBlock"])("p",Lt,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ThereAreNoImportJobs")),1)),null!==(n=e.statuses)&&void 0!==n&&n.length?(Object(s["openBlock"])(),Object(s["createBlock"])(d,{key:1,statuses:e.statuses,"stop-import-nonce":e.stopImportNonce,"change-import-end-date-nonce":e.changeImportEndDateNonce,"resume-import-nonce":e.resumeImportNonce,"schedule-re-import-nonce":e.scheduleReImportNonce},null,8,["statuses","stop-import-nonce","change-import-end-date-nonce","resume-import-nonce","schedule-re-import-nonce"])):Object(s["createCommentVNode"])("",!0)]})),_:1},8,["content-title"])):Object(s["createCommentVNode"])("",!0),e.hasClientConfiguration&&e.isConfigured?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",Rt,[Object(s["createElementVNode"])("h2",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_CancelJobConfirm")),1),Object(s["createElementVNode"])("input",{role:"yes",type:"button",value:e.translate("General_Yes")},null,8,zt),Object(s["createElementVNode"])("input",{role:"no",type:"button",value:e.translate("General_No")},null,8,qt)])):Object(s["createCommentVNode"])("",!0)])}var $t={key:1};function Jt(e,t,n,o,r,a){var l=Object(s["resolveComponent"])("ContentBlock");return Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.componentExtensions,(function(t,n){return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:n},[e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",$t,[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(t),{"manual-config-nonce":e.configConnectProps.manualConfigNonce,"base-domain":e.configConnectProps.baseDomain,"base-url":e.configConnectProps.baseUrl,"manual-action-url":e.configConnectProps.manualActionUrl,"primary-text":e.configConnectProps.primaryText,"radio-options":e.configConnectProps.radioOptions,"manual-config-text":e.configConnectProps.manualConfigText,"connect-accounts-url":e.configConnectProps.connectAccountsUrl,"connect-accounts-btn-text":e.configConnectProps.connectAccountsBtnText,"auth-url":e.configConnectProps.authUrl,"unlink-url":e.configConnectProps.unlinkUrl,strategy:e.configConnectProps.strategy,"connected-with":e.configConnectProps.connectedWith,"is-no-data-page":e.isNoDataPage,"has-client-configuration":e.hasClientConfiguration,"index-action-url":e.indexActionUrl,"authorize-url":e.authorizeUrl,"forward-to-auth-nonce":e.forwardToAuthNonce,"is-configured":e.isConfigured,"strategy-to-use":e.strategyToUse,"additional-help-text":e.configConnectProps.additionalHelpText},null,8,["manual-config-nonce","base-domain","base-url","manual-action-url","primary-text","radio-options","manual-config-text","connect-accounts-url","connect-accounts-btn-text","auth-url","unlink-url","strategy","connected-with","is-no-data-page","has-client-configuration","index-action-url","authorize-url","forward-to-auth-nonce","is-configured","strategy-to-use","additional-help-text"]))])):(Object(s["openBlock"])(),Object(s["createBlock"])(l,{key:0,"content-title":e.isNoDataPage?"":e.translate("GoogleAnalyticsImporter_AdminMenuTitle")},{default:Object(s["withCtx"])((function(){return[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(t),{"manual-config-nonce":e.configConnectProps.manualConfigNonce,"base-domain":e.configConnectProps.baseDomain,"base-url":e.configConnectProps.baseUrl,"manual-action-url":e.configConnectProps.manualActionUrl,"primary-text":e.configConnectProps.primaryText,"radio-options":e.configConnectProps.radioOptions,"manual-config-text":e.configConnectProps.manualConfigText,"connect-accounts-url":e.configConnectProps.connectAccountsUrl,"connect-accounts-btn-text":e.configConnectProps.connectAccountsBtnText,"auth-url":e.configConnectProps.authUrl,"unlink-url":e.configConnectProps.unlinkUrl,strategy:e.configConnectProps.strategy,"connected-with":e.configConnectProps.connectedWith,"is-no-data-page":e.isNoDataPage,"has-client-configuration":e.hasClientConfiguration,"index-action-url":e.indexActionUrl,"authorize-url":e.authorizeUrl,"forward-to-auth-nonce":e.forwardToAuthNonce,"is-configured":e.isConfigured,"strategy-to-use":e.strategyToUse,"additional-help-text":e.configConnectProps.additionalHelpText},null,8,["manual-config-nonce","base-domain","base-url","manual-action-url","primary-text","radio-options","manual-config-text","connect-accounts-url","connect-accounts-btn-text","auth-url","unlink-url","strategy","connected-with","is-no-data-page","has-client-configuration","index-action-url","authorize-url","forward-to-auth-nonce","is-configured","strategy-to-use","additional-help-text"]))]})),_:2},1032,["content-title"]))])})),128)}var Wt=Object(s["defineComponent"])({props:{extensions:Array,configureConnectionProps:{type:Object,required:!0},isNoDataPage:Boolean,hasClientConfiguration:Boolean,indexActionUrl:String,authorizeUrl:String,forwardToAuthNonce:String,strategyToUse:String,isConfigured:Boolean},components:{Notification:a["Notification"],ContentBlock:a["ContentBlock"]},computed:{componentExtensions:function(){var e=this.extensions;return Object(s["markRaw"])(e.map((function(e){return Object(a["useExternalPluginComponent"])(e.plugin,e.component)})))},configConnectProps:function(){return this.configureConnectionProps}}});Wt.render=Jt;var Xt=Wt,Kt=Object(s["defineComponent"])({props:{hasClientConfiguration:Boolean,isConfigured:Boolean,isClientConfigurable:Boolean,authNonce:String,configNonce:String,startImportNonce:{type:String,required:!0},maxEndDateDesc:String,extraCustomDimensionsField:{type:Object,required:!0},extraCustomDimensionsFieldGa4:{type:Object,required:!0},statuses:{type:Array,required:!0},stopImportNonce:{type:String,required:!0},changeImportEndDateNonce:{type:String,required:!0},resumeImportNonce:{type:String,required:!0},scheduleReImportNonce:{type:String,required:!0},importOptionsUa:{type:Object,required:!0},importOptionsGa4:{type:Object,required:!0},extensions:Array,configureConnectionProps:{type:Object,required:!0}},components:{CommonConnect:Xt,ImportSchedulerGA4:w,ContentBlock:a["ContentBlock"],ClientConfig:Pt,ImportScheduler:A,ImportStatus:Je,ImportSelector:P},data:function(){return{selectedImporter:""}},computed:{importerHelp2Text:function(){var e="https://matomo.org/docs/google-analytics-importer/";return Object(a["translate"])("GoogleAnalyticsImporter_ImporterHelp2",''),"")},importerHelp3Text:function(){return Object(a["translate"])("GoogleAnalyticsImporter_ImporterHelp3","

","")},componentExtensions:function(){var e=this.extensions;return Object(s["markRaw"])(e.map((function(e){return Object(a["useExternalPluginComponent"])(e.plugin,e.component)})))},configConnectProps:function(){return this.configureConnectionProps}}});Kt.render=Yt;var Qt=Kt; +(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("CoreHome"),require("vue"),require("CorePluginsAdmin")):"function"===typeof define&&define.amd?define(["CoreHome",,"CorePluginsAdmin"],t):"object"===typeof exports?exports["GoogleAnalyticsImporter"]=t(require("CoreHome"),require("vue"),require("CorePluginsAdmin")):e["GoogleAnalyticsImporter"]=t(e["CoreHome"],e["Vue"],e["CorePluginsAdmin"])})("undefined"!==typeof self?self:this,(function(e,t,n){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="plugins/GoogleAnalyticsImporter/vue/dist/",n(n.s="fae3")}({"19dc":function(t,n){t.exports=e},"8bbf":function(e,n){e.exports=t},a5a2:function(e,t){e.exports=n},fae3:function(e,t,n){"use strict";if(n.r(t),n.d(t,"ImportScheduler",(function(){return A})),n.d(t,"ImportSchedulerGA4",(function(){return w})),n.d(t,"ImportSelector",(function(){return P})),n.d(t,"ImportStatus",(function(){return Je})),n.d(t,"ConfigureConnection",(function(){return Et})),n.d(t,"ClientConfig",(function(){return Pt})),n.d(t,"AdminPage",(function(){return Qt})),n.d(t,"Connect",(function(){return Xt})),"undefined"!==typeof window){var o=window.document.currentScript,r=o&&o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(n.p=r[1])}var a=n("19dc"),l=["Transitions.getTransitions","UsersFlow.getUsersFlow","UsersFlow.getUsersFlowPretty","UsersFlow.getInteractionActions"],i=window,c=i.$;a["Matomo"].on("widget:loaded",(function(e){var t=e.parameters,n=e.element,o="".concat(t.module,".").concat(t.action);if(-1!==l.indexOf(o)){var r=a["Matomo"].importedFromGoogleStartDate,i=a["Matomo"].importedFromGoogleEndDate;if(r&&i){r=Object(a["parseDate"])(r),i=Object(a["parseDate"])(i);var s=a["MatomoUrl"].parsed.value.period,m=a["MatomoUrl"].parsed.value.date,p=a["Periods"].parse(s,m).getDateRange(),u=!(r.getTime()>p[1].getTime()||i.getTime()
'.concat(d,"
");c(n).find(".card-content>div").append(g)}}}}));var s=n("8bbf"),m={name:"startDate"},p={name:"endDate"},u={name:"propertyId"},d={name:"accountId"},g={name:"viewId"},b={name:"isMobileApp"},O={name:"timezone"},j={name:"extraCustomDimensions"},f={name:"forceIgnoreOutOfCustomDimSlotError"},h={name:"isVerboseLoggingEnabled"},y=["disabled"];function I(e,t,n,o,r,a){var l=Object(s["resolveComponent"])("Field");return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",null,[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ScheduleImportDescription")),1),Object(s["createElementVNode"])("div",m,[Object(s["createVNode"])(l,{uicontrol:"text",name:"startDate",modelValue:e.startDate,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.startDate=t}),title:e.translate("GoogleAnalyticsImporter_StartDate"),placeholder:"".concat(e.translate("GoogleAnalyticsImporter_CreationDate")," (YYYY-MM-DD)"),"inline-help":e.translate("GoogleAnalyticsImporter_StartDateHelp")},null,8,["modelValue","title","placeholder","inline-help"])]),Object(s["createElementVNode"])("div",p,[Object(s["createVNode"])(l,{uicontrol:"text",name:"endDate",modelValue:e.endDate,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.endDate=t}),title:e.translate("GoogleAnalyticsImporter_EndDate"),placeholder:e.translate("GoogleAnalyticsImporter_None"),"inline-help":e.endDateHelp},null,8,["modelValue","title","placeholder","inline-help"])]),Object(s["createElementVNode"])("div",u,[Object(s["createVNode"])(l,{uicontrol:"text",name:"propertyId",modelValue:e.propertyId,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.propertyId=t}),placeholder:"eg. UA-XXXXX-X",title:e.translate("GoogleAnalyticsImporter_PropertyId"),"inline-help":e.translate("GoogleAnalyticsImporter_PropertyIdHelp")},null,8,["modelValue","title","inline-help"])]),Object(s["createElementVNode"])("div",d,[Object(s["createVNode"])(l,{uicontrol:"text",name:"accountId",placeholder:"eg. 1234567",modelValue:e.accountId,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.accountId=t}),title:e.translate("GoogleAnalyticsImporter_AccountId"),"inline-help":e.translate("GoogleAnalyticsImporter_AccountIdHelp")},null,8,["modelValue","title","inline-help"])]),Object(s["createElementVNode"])("div",g,[Object(s["createVNode"])(l,{uicontrol:"text",name:"viewId",placeholder:"eg. 1234567",modelValue:e.viewId,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.viewId=t}),title:e.translate("GoogleAnalyticsImporter_ViewId"),"inline-help":e.translate("GoogleAnalyticsImporter_ViewIdHelp")},null,8,["modelValue","title","inline-help"])]),Object(s["createElementVNode"])("div",b,[Object(s["createVNode"])(l,{uicontrol:"checkbox",name:"isMobileApp",modelValue:e.isMobileApp,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.isMobileApp=t}),title:e.translate("GoogleAnalyticsImporter_IsMobileApp"),"inline-help":e.translate("GoogleAnalyticsImporter_IsMobileAppHelp")},null,8,["modelValue","title","inline-help"])]),Object(s["createElementVNode"])("div",O,[Object(s["createVNode"])(l,{uicontrol:"text",name:"timezone",modelValue:e.timezone,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.timezone=t}),title:e.translate("GoogleAnalyticsImporter_Timezone"),placeholder:e.translate("GoogleAnalyticsImporter_Optional"),"inline-help":e.timezoneHelp},null,8,["modelValue","title","placeholder","inline-help"])]),Object(s["createElementVNode"])("div",j,[Object(s["createVNode"])(l,{uicontrol:"multituple",name:"extraCustomDimensions",modelValue:e.extraCustomDimensions,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.extraCustomDimensions=t}),title:e.translate("GoogleAnalyticsImporter_ExtraCustomDimensions"),"inline-help":e.extraCustomDimensionsHelp,"ui-control-attributes":e.extraCustomDimensionsField},null,8,["modelValue","title","inline-help","ui-control-attributes"])]),Object(s["createElementVNode"])("div",f,[Object(s["createVNode"])(l,{uicontrol:"checkbox",name:"forceIgnoreOutOfCustomDimSlotError",modelValue:e.ignoreCustomDimensionSlotCheck,"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.ignoreCustomDimensionSlotCheck=t}),title:e.translate("GoogleAnalyticsImporter_ForceCustomDimensionSlotCheck"),"inline-help":e.forceIgnoreOutOfCustomDimSlotErrorHelp},null,8,["modelValue","title","inline-help"])]),Object(s["createElementVNode"])("h3",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Troubleshooting")),1),Object(s["createElementVNode"])("div",h,[Object(s["createVNode"])(l,{uicontrol:"checkbox",name:"isVerboseLoggingEnabled",modelValue:e.isVerboseLoggingEnabled,"onUpdate:modelValue":t[9]||(t[9]=function(t){return e.isVerboseLoggingEnabled=t}),title:e.translate("GoogleAnalyticsImporter_IsVerboseLoggingEnabled"),"inline-help":e.isVerboseLoggingEnabledHelp},null,8,["modelValue","title","inline-help"])]),Object(s["createElementVNode"])("button",{type:"submit",id:"startImportSubmit",class:"btn",onClick:t[10]||(t[10]=function(t){return e.startImport()}),disabled:e.isStartingImport},Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Start")),9,y)])}var C=n("a5a2"),D=Object(s["defineComponent"])({props:{startImportNonce:{type:String,required:!0},maxEndDateDesc:String,extraCustomDimensionsField:{type:Object,required:!0}},components:{Field:C["Field"]},data:function(){return{isStartingImport:!1,extraCustomDimensions:[],isVerboseLoggingEnabled:!1,ignoreCustomDimensionSlotCheck:!1,startDate:"",endDate:"",propertyId:"",accountId:"",viewId:"",isMobileApp:!1,timezone:""}},created:function(){return this},methods:{startImport:function(){if(this.startDate)try{Object(a["parseDate"])(this.startDate)}catch(n){var e=a["NotificationsStore"].show({message:Object(a["translate"])("GoogleAnalyticsImporter_InvalidDateFormat",["YYYY-MM-DD"]),context:"error",type:"transient"});return void a["NotificationsStore"].scrollToNotification(e)}this.isStartingImport=!0;var t=!this.ignoreCustomDimensionSlotCheck;return a["AjaxHelper"].post({module:"GoogleAnalyticsImporter",action:"startImport",startDate:this.startDate,endDate:this.endDate,propertyId:this.propertyId,viewId:this.viewId,nonce:this.startImportNonce,accountId:this.accountId,isMobileApp:this.isMobileApp?"1":"0",timezone:this.timezone,extraCustomDimensions:this.extraCustomDimensions,isVerboseLoggingEnabled:this.isVerboseLoggingEnabled?"1":"0",forceCustomDimensionSlotCheck:t?"1":"0"},{},{withTokenInUrl:!0}).finally((function(){window.location.reload()}))}},computed:{endDateHelp:function(){var e=Object(a["translate"])("GoogleAnalyticsImporter_EndDateHelpText"),t=this.maxEndDateDesc&&Object(a["translate"])("

GoogleAnalyticsImporter_MaxEndDateHelp",this.maxEndDateDesc);return"".concat(e," ").concat(t||"")},timezoneHelp:function(){var e="https://www.php.net/manual/en/timezones.php";return Object(a["translate"])("GoogleAnalyticsImporter_TimezoneHelp",''),"")},extraCustomDimensionsHelp:function(){var e="https://ga-dev-tools.appspot.com/dimensions-metrics-explorer/";return Object(a["translate"])("GoogleAnalyticsImporter_ExtraCustomDimensionsHelp",''),"")},forceIgnoreOutOfCustomDimSlotErrorHelp:function(){var e="https://matomo.org/docs/custom-dimensions/";return Object(a["translate"])("GoogleAnalyticsImporter_ForceCustomDimensionSlotCheckHelp",''),"")},isVerboseLoggingEnabledHelp:function(){return Object(a["translate"])("GoogleAnalyticsImporter_IsVerboseLoggingEnabledHelp","/path/to/matomo/tmp/logs/","gaimportlog.$idSite.$matomoDomain.log")}}});D.render=I;var A=D,V={name:"startDateGA4"},N={name:"endDateGA4"},E={name:"propertyIdGA4"},S={name:"isMobileAppGA4"},k={name:"timezoneGA4"},G={name:"extraCustomDimensionsGA4"},_={name:"forceIgnoreOutOfCustomDimSlotErrorGA4"},v={name:"isVerboseLoggingEnabledGA4"},x=["disabled"];function B(e,t,n,o,r,a){var l=Object(s["resolveComponent"])("Field");return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",null,[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ScheduleImportDescription")),1),Object(s["createElementVNode"])("div",V,[Object(s["createVNode"])(l,{uicontrol:"text",name:"startDateGA4",modelValue:e.startDateGA4,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.startDateGA4=t}),title:e.translate("GoogleAnalyticsImporter_StartDate"),placeholder:"".concat(e.translate("GoogleAnalyticsImporter_CreationDate")," (YYYY-MM-DD)"),"inline-help":e.translate("GoogleAnalyticsImporter_StartDateHelp")},null,8,["modelValue","title","placeholder","inline-help"])]),Object(s["createElementVNode"])("div",N,[Object(s["createVNode"])(l,{uicontrol:"text",name:"endDateGA4",modelValue:e.endDateGA4,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.endDateGA4=t}),title:e.translate("GoogleAnalyticsImporter_EndDate"),placeholder:e.translate("GoogleAnalyticsImporter_None"),"inline-help":e.endDateHelp},null,8,["modelValue","title","placeholder","inline-help"])]),Object(s["createElementVNode"])("div",E,[Object(s["createVNode"])(l,{uicontrol:"text",name:"propertyIdGA4",modelValue:e.propertyIdGA4,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.propertyIdGA4=t}),placeholder:"eg. properties/{PROPERTY_ID}",title:e.translate("GoogleAnalyticsImporter_PropertyIdGA4"),"inline-help":e.translate("GoogleAnalyticsImporter_PropertyIdGA4Help")},null,8,["modelValue","title","inline-help"])]),Object(s["createElementVNode"])("div",S,[Object(s["createVNode"])(l,{uicontrol:"checkbox",name:"isMobileAppGA4",modelValue:e.isMobileAppGA4,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.isMobileAppGA4=t}),title:e.translate("GoogleAnalyticsImporter_IsMobileApp"),"inline-help":e.translate("GoogleAnalyticsImporter_IsMobileAppHelp")},null,8,["modelValue","title","inline-help"])]),Object(s["createElementVNode"])("div",k,[Object(s["createVNode"])(l,{uicontrol:"text",name:"timezoneGA4",modelValue:e.timezoneGA4,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.timezoneGA4=t}),title:e.translate("GoogleAnalyticsImporter_Timezone"),placeholder:e.translate("GoogleAnalyticsImporter_Optional"),"inline-help":e.timezoneHelp},null,8,["modelValue","title","placeholder","inline-help"])]),Object(s["createElementVNode"])("div",G,[Object(s["createVNode"])(l,{uicontrol:"multituple",name:"extraCustomDimensionsGA4",modelValue:e.extraCustomDimensionsGA4,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.extraCustomDimensionsGA4=t}),title:e.translate("GoogleAnalyticsImporter_ExtraCustomDimensions"),"inline-help":e.extraCustomDimensionsHelp,"ui-control-attributes":e.extraCustomDimensionsField},null,8,["modelValue","title","inline-help","ui-control-attributes"])]),Object(s["createElementVNode"])("div",_,[Object(s["createVNode"])(l,{uicontrol:"checkbox",name:"forceIgnoreOutOfCustomDimSlotErrorGA4",modelValue:e.ignoreCustomDimensionSlotCheckGA4,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.ignoreCustomDimensionSlotCheckGA4=t}),title:e.translate("GoogleAnalyticsImporter_ForceCustomDimensionSlotCheck"),"inline-help":e.forceIgnoreOutOfCustomDimSlotErrorHelp},null,8,["modelValue","title","inline-help"])]),Object(s["createElementVNode"])("h3",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Troubleshooting")),1),Object(s["createElementVNode"])("div",v,[Object(s["createVNode"])(l,{uicontrol:"checkbox",name:"isVerboseLoggingEnabledGA4",modelValue:e.isVerboseLoggingEnabledGA4,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.isVerboseLoggingEnabledGA4=t}),title:e.translate("GoogleAnalyticsImporter_IsVerboseLoggingEnabled"),"inline-help":e.isVerboseLoggingEnabledHelp},null,8,["modelValue","title","inline-help"])]),Object(s["createElementVNode"])("button",{type:"submit",id:"startImportSubmitGA4",class:"btn",onClick:t[8]||(t[8]=function(t){return e.startImportGA4()}),disabled:e.isStartingImport},Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Start")),9,x)])}var T=Object(s["defineComponent"])({props:{startImportNonce:{type:String,required:!0},maxEndDateDesc:String,extraCustomDimensionsField:{type:Object,required:!0}},components:{Field:C["Field"]},data:function(){return{isStartingImport:!1,extraCustomDimensionsGA4:[],isVerboseLoggingEnabledGA4:!1,ignoreCustomDimensionSlotCheckGA4:!1,startDateGA4:"",endDateGA4:"",propertyIdGA4:"",accountId:"",viewId:"",isMobileAppGA4:!1,timezoneGA4:""}},created:function(){return this},methods:{startImportGA4:function(){if(this.startDateGA4)try{Object(a["parseDate"])(this.startDateGA4)}catch(n){var e=a["NotificationsStore"].show({message:Object(a["translate"])("GoogleAnalyticsImporter_InvalidDateFormat",["YYYY-MM-DD"]),context:"error",type:"transient"});return void a["NotificationsStore"].scrollToNotification(e)}this.isStartingImport=!0;var t=!this.ignoreCustomDimensionSlotCheckGA4;return a["AjaxHelper"].post({module:"GoogleAnalyticsImporter",action:"startImportGA4",startDate:this.startDateGA4,endDate:this.endDateGA4,propertyId:this.propertyIdGA4,viewId:this.viewId,nonce:this.startImportNonce,accountId:this.accountId,isMobileApp:this.isMobileAppGA4?"1":"0",timezone:this.timezoneGA4,extraCustomDimensions:this.extraCustomDimensionsGA4,isVerboseLoggingEnabled:this.isVerboseLoggingEnabledGA4?"1":"0",forceCustomDimensionSlotCheck:t?"1":"0"},{},{withTokenInUrl:!0}).finally((function(){window.location.reload()}))}},computed:{endDateHelp:function(){var e=Object(a["translate"])("GoogleAnalyticsImporter_EndDateHelpText"),t=this.maxEndDateDesc&&Object(a["translate"])("

GoogleAnalyticsImporter_MaxEndDateHelp",this.maxEndDateDesc);return"".concat(e," ").concat(t||"")},timezoneHelp:function(){var e="https://www.php.net/manual/en/timezones.php";return Object(a["translate"])("GoogleAnalyticsImporter_TimezoneGA4Help",''),"")},extraCustomDimensionsHelp:function(){var e="https://ga-dev-tools.web.app/ga4/dimensions-metrics-explorer/";return Object(a["translate"])("GoogleAnalyticsImporter_ExtraCustomDimensionsGA4Help",''),"")},forceIgnoreOutOfCustomDimSlotErrorHelp:function(){var e="https://matomo.org/docs/custom-dimensions/";return Object(a["translate"])("GoogleAnalyticsImporter_ForceCustomDimensionSlotCheckHelp",''),"")},isVerboseLoggingEnabledHelp:function(){return Object(a["translate"])("GoogleAnalyticsImporter_IsVerboseLoggingEnabledHelp","/path/to/matomo/tmp/logs/","gaimportlog.$idSite.$matomoDomain.log")}}});T.render=B;var w=T;function M(e,t,n,o,r,a){var l=Object(s["resolveComponent"])("Field"),i=Object(s["resolveDirective"])("form");return Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("div",null,[Object(s["createElementVNode"])("div",null,[Object(s["createVNode"])(l,{uicontrol:"radio",name:"selectedImporter",modelValue:e.selectedImporter,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.selectedImporter=t}),options:e.importOptionsUa,"inline-help":e.translate("GoogleAnalyticsImporter_SelectImporterUAInlineHelpText")},null,8,["modelValue","options","inline-help"]),Object(s["createVNode"])(l,{uicontrol:"radio",name:"selectedImporter",modelValue:e.selectedImporter,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.selectedImporter=t}),options:e.importOptionsGa4,"inline-help":e.translate("GoogleAnalyticsImporter_SelectImporterGA4InlineHelpText")},null,8,["modelValue","options","inline-help"])])],512)),[[i]])}var U=Object(s["defineComponent"])({props:{importOptionsUa:{type:Object,required:!0},importOptionsGa4:{type:Object,required:!0}},components:{Field:C["Field"]},directives:{Form:C["Form"]},emits:["update:selectedImporter"],watch:{selectedImporter:function(e){this.$emit("update:selectedImporter",e)}},data:function(){return{selectedImporter:""}}});U.render=M;var P=U,H={ref:"root"},F={class:"entityTable importStatusesTable"},L={class:"modal",id:"openScheduleReimportModal"},z={class:"modal-content"},R={class:"modal-footer"},q={class:"modal",id:"editImportEndDate"},Y={class:"modal-content"},$={class:"modal-footer"};function J(e,t,n,o,r,a){var l=Object(s["resolveComponent"])("ImportStatusRow"),i=Object(s["resolveComponent"])("Field"),c=Object(s["resolveDirective"])("tooltips");return Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("div",H,[Object(s["createElementVNode"])("table",F,[Object(s["createElementVNode"])("thead",null,[Object(s["createElementVNode"])("tr",null,[Object(s["createElementVNode"])("th",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_MatomoSite")),1),Object(s["createElementVNode"])("th",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_GoogleAnalyticsInfo")),1),Object(s["createElementVNode"])("th",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Status")),1),Object(s["createElementVNode"])("th",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_LatestDayProcessed")),1),Object(s["createElementVNode"])("th",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ScheduledReImports")),1),Object(s["createElementVNode"])("th",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_StartFinishTimes")),1),Object(s["createElementVNode"])("th",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Actions")),1)])]),Object(s["createElementVNode"])("tbody",null,[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.statuses,(function(t,n){return Object(s["openBlock"])(),Object(s["createBlock"])(l,{status:t,key:n,onEndImport:function(n){return e.showEditImportEndDateModal(t.idSite,t.isGA4)},onReimport:function(n){return e.openScheduleReimportModal(t.idSite,t.isGA4)},onDelete:function(n){return e.deleteImportStatus(t.idSite,n.isDone)},onManuallyResume:function(n){return e.manuallyResume(t.idSite,t.isGA4)}},null,8,["status","onEndImport","onReimport","onDelete","onManuallyResume"])})),128))])]),Object(s["createElementVNode"])("div",L,[Object(s["createElementVNode"])("div",z,[Object(s["createElementVNode"])("h3",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_EnterImportDateRange")),1),Object(s["createElementVNode"])("div",null,[Object(s["createVNode"])(i,{name:"re-import-start-date",uicontrol:"text",modelValue:e.reimportStartDate,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.reimportStartDate=t}),placeholder:"".concat(e.translate("GoogleAnalyticsImporter_StartDate")," (YYYY-MM-DD)")},null,8,["modelValue","placeholder"])]),Object(s["createElementVNode"])("div",null,[Object(s["createVNode"])(i,{name:"re-import-end-date",uicontrol:"text",modelValue:e.reimportEndDate,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.reimportEndDate=t}),placeholder:"".concat(e.translate("GoogleAnalyticsImporter_EndDate")," (YYYY-MM-DD)")},null,8,["modelValue","placeholder"])])]),Object(s["createElementVNode"])("div",R,[Object(s["createElementVNode"])("a",{id:"scheduleReimportSubmit",href:"",class:"modal-action modal-close btn",onClick:t[2]||(t[2]=Object(s["withModifiers"])((function(t){return e.scheduleReimport()}),["prevent"])),style:{"margin-right":"3.5px"}},Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Schedule")),1),Object(s["createElementVNode"])("a",{href:"",class:"modal-action modal-close modal-no",onClick:t[3]||(t[3]=Object(s["withModifiers"])((function(){}),["prevent"]))},Object(s["toDisplayString"])(e.translate("General_Cancel")),1)])]),Object(s["createElementVNode"])("div",q,[Object(s["createElementVNode"])("div",Y,[Object(s["createElementVNode"])("h3",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_EnterImportEndDate")),1),Object(s["createElementVNode"])("p",null,[Object(s["createElementVNode"])("em",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_LeaveEmptyToRemove")),1)]),Object(s["createElementVNode"])("div",null,[Object(s["createVNode"])(i,{name:"new-import-end-date",uicontrol:"text",modelValue:e.newImportEndDate,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.newImportEndDate=t}),placeholder:"".concat(e.translate("GoogleAnalyticsImporter_EndDate")," (YYYY-MM-DD)")},null,8,["modelValue","placeholder"])])]),Object(s["createElementVNode"])("div",$,[Object(s["createElementVNode"])("a",{href:"",class:"modal-action modal-close btn",onClick:t[5]||(t[5]=function(t){return e.changeImportEndDateModal()}),style:{"margin-right":"3.5px"}},Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Change")),1),Object(s["createElementVNode"])("a",{href:"",class:"modal-action modal-close modal-no",onClick:t[6]||(t[6]=function(t){return e.cancelEditImportEndDateModal()})},Object(s["toDisplayString"])(e.translate("General_Cancel")),1)])])],512)),[[c,{content:e.tooltipContent,delay:500,duration:200}]])}var W=["data-idsite"],X={class:"sitename"},K=["href"],Q={key:1,style:{"text-transform":"uppercase"}},Z=Object(s["createElementVNode"])("br",null,null,-1),ee=["innerHTML"],te={class:"status"},ne={key:0},oe=["title"],re=Object(s["createElementVNode"])("br",null,null,-1),ae={key:0},le={key:1},ie=["title"],ce=Object(s["createElementVNode"])("br",null,null,-1),se={key:0},me={key:2},pe=["title"],ue={key:3},de=["title"],ge={key:4},be=Object(s["createElementVNode"])("br",null,null,-1),Oe=["innerHTML"],je={key:5},fe=["title"],he=Object(s["createElementVNode"])("br",null,null,-1),ye={class:"last-date-imported"},Ie=Object(s["createElementVNode"])("br",null,null,-1),Ce=Object(s["createElementVNode"])("br",null,null,-1),De=Object(s["createElementVNode"])("br",null,null,-1),Ae=Object(s["createElementVNode"])("br",null,null,-1),Ve=Object(s["createElementVNode"])("br",null,null,-1),Ne={key:0},Ee={class:"scheduled-reimports"},Se={key:0},ke={key:1},Ge={class:"import-start-finish-times"},_e=Object(s["createElementVNode"])("br",null,null,-1),ve=Object(s["createElementVNode"])("br",null,null,-1),xe={key:0},Be={key:1},Te={key:0},we={key:1},Me={key:2},Ue={key:3},Pe={class:"actions"},He=["title"],Fe=["title"];function Le(e,t,n,o,r,a){var l;return Object(s["openBlock"])(),Object(s["createElementBlock"])("tr",{"data-idsite":e.status.idSite},[Object(s["createElementVNode"])("td",X,[e.status.site?(Object(s["openBlock"])(),Object(s["createElementBlock"])("a",{key:0,target:"_blank",href:e.siteUrl},Object(s["toDisplayString"])(e.siteName),9,K)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Q,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_SiteDeleted")),1)),Z,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_SiteID"))+": "+Object(s["toDisplayString"])(e.status.idSite),1)]),Object(s["createElementVNode"])("td",{class:"ga-info",innerHTML:e.$sanitize(e.gaInfoPretty)},null,8,ee),Object(s["createElementVNode"])("td",te,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.status.status)+" ",1),"rate_limited"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",ne,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_RateLimitHelp")},null,8,oe),re,e.status.days_finished_since_rate_limit?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",ae,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_FinishedImportingDaysWaiting",e.status.days_finished_since_rate_limit)),1)):Object(s["createCommentVNode"])("",!0)])):Object(s["createCommentVNode"])("",!0),"cloud_rate_limited"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",le,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.status.error},null,8,ie),ce,e.status.days_finished_since_rate_limit?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",se,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_FinishedImportingDaysWaiting",e.status.days_finished_since_rate_limit)),1)):Object(s["createCommentVNode"])("",!0)])):Object(s["createCommentVNode"])("",!0),"rate_limited_hourly"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",me,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_RateLimitHourlyHelp")},null,8,pe)])):Object(s["createCommentVNode"])("",!0),"future_date_import_pending"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",ue,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_FutureDateHelp",e.status.future_resume_date)},null,8,de)])):"errored"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",ge,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ErrorMessage"))+": "+Object(s["toDisplayString"])(e.status.error||"no message")+" ",1),be,Object(s["createElementVNode"])("span",{innerHTML:e.$sanitize(e.errorMessageBugReportRequest)},null,8,Oe)])):"killed"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",je,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_KilledStatusHelp")},null,8,fe),he,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ErrorMessage"))+": "+Object(s["toDisplayString"])(e.status.error||"no message"),1)])):Object(s["createCommentVNode"])("",!0)]),Object(s["createElementVNode"])("td",ye,[Object(s["createElementVNode"])("div",null,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_LastDayImported"))+": "+Object(s["toDisplayString"])(e.status.last_date_imported||e.noneText),1),Ie,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_LastDayArchived"))+": "+Object(s["toDisplayString"])(e.status.last_day_archived||e.noneText),1),Ce,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImportStartDate"))+": "+Object(s["toDisplayString"])(e.status.import_range_start||e.websiteCreationTime)+" ",1),De,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImportEndDate"))+": "+Object(s["toDisplayString"])(e.status.import_range_end||e.noneText)+" ",1),Ae,Ve]),"finished"!==e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",Ne,[Object(s["createElementVNode"])("a",{class:"edit-import-end-link table-command-link",href:"",onClick:t[0]||(t[0]=Object(s["withModifiers"])((function(t){return e.$emit("end-import")}),["prevent"]))},Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_EditEndDate")),1)])):Object(s["createCommentVNode"])("",!0),Object(s["createElementVNode"])("div",null,[Object(s["createElementVNode"])("a",{id:"reimport-date-range",class:"table-command-link",href:"",onClick:t[1]||(t[1]=Object(s["withModifiers"])((function(t){return e.$emit("reimport")}),["prevent"]))},Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ReimportDate")),1)])]),Object(s["createElementVNode"])("td",Ee,[null!==(l=e.status.reimport_ranges)&&void 0!==l&&l.length?(Object(s["openBlock"])(),Object(s["createElementBlock"])("ul",Se,[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.status.reimport_ranges,(function(e,t){return Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:t},Object(s["toDisplayString"])(e[0])+","+Object(s["toDisplayString"])(e[1]),1)})),128))])):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",ke,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_None")),1))]),Object(s["createElementVNode"])("td",Ge,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImportStartTime"))+": "+Object(s["toDisplayString"])(e.status.import_start_time||e.noneText),1),_e,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_LastResumeTime"))+": "+Object(s["toDisplayString"])(e.status.last_job_start_time||e.noneText),1),ve,"finished"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",xe,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_TimeFinished"))+": "+Object(s["toDisplayString"])(e.status.import_end_time||e.noneText),1)):e.status.estimated_days_left_to_finish?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Be,[e.thisJobShouldFinishToday?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Te,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ThisJobShouldFinishToday")),1)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",we,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_EstimatedFinishIn",e.status.estimated_days_left_to_finish)),1))])):e.status.import_range_end?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Me,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_JobWillRunUntilManuallyCancelled")),1)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Ue,Object(s["toDisplayString"])(e.translate("General_Unknown")),1))]),Object(s["createElementVNode"])("td",Pe,[Object(s["createElementVNode"])("a",{class:Object(s["normalizeClass"])(["table-action",{"icon-delete":e.isDone,"icon-close":!e.isDone}]),onClick:t[2]||(t[2]=Object(s["withModifiers"])((function(t){return e.$emit("delete",{isDone:e.isDone})}),["prevent"])),title:e.isDone?e.translate("General_Remove"):e.translate("General_Cancel")},null,10,He),-1===["finished","ongoing","started"].indexOf(e.status.status)?(Object(s["openBlock"])(),Object(s["createElementBlock"])("a",{key:0,class:"table-action icon-play",onClick:t[3]||(t[3]=Object(s["withModifiers"])((function(t){return e.$emit("manuallyResume")}),["prevent"])),title:e.translate("GoogleAnalyticsImporter_ResumeDesc")},null,8,Fe)):Object(s["createCommentVNode"])("",!0)])],8,W)}var ze=Object(s["defineComponent"])({props:{status:{type:Object,required:!0}},emits:["end-import","reimport","delete","manuallyResume"],computed:{isDone:function(){return"finished"===this.status.status},siteUrl:function(){return"?".concat(a["MatomoUrl"].stringify(Object.assign(Object.assign({period:"day",date:"today"},a["MatomoUrl"].urlParsed.value),{},{idSite:this.status.idSite,module:"CoreHome",action:"index"})))},gaInfoPretty:function(){return(this.status.gaInfoPretty||"").replace(/\n/g,"
")},errorMessageBugReportRequest:function(){return Object(a["translate"])("GoogleAnalyticsImporter_ErrorMessageBugReportRequest",'',"")},thisJobShouldFinishToday:function(){return 0===this.status.estimated_days_left_to_finish||"0"===this.status.estimated_days_left_to_finish},siteName:function(){var e;return a["Matomo"].helper.htmlDecode(null===(e=this.status.site)||void 0===e?void 0:e.name)},noneText:function(){return Object(a["translate"])("GoogleAnalyticsImporter_None")},websiteCreationTime:function(){return Object(a["translate"])("GoogleAnalyticsImporter_CreationDate")}}});ze.render=Le;var Re=ze,qe=window,Ye=qe.$,$e=Object(s["defineComponent"])({props:{statuses:{type:Array,required:!0},stopImportNonce:{type:String,required:!0},changeImportEndDateNonce:{type:String,required:!0},resumeImportNonce:{type:String,required:!0},scheduleReImportNonce:{type:String,required:!0}},components:{Field:C["Field"],ImportStatusRow:Re},directives:{Tooltips:a["Tooltips"]},data:function(){return{editImportEndDateIdSite:null,reimportDateRangeIdSite:null,reimportStartDate:"",reimportEndDate:"",newImportEndDate:"",isGA4:!1}},methods:{showEditImportEndDateModal:function(e,t){this.editImportEndDateIdSite=e,this.isGA4=t,Ye("#editImportEndDate").modal({dismissible:!1}).modal("open")},cancelEditImportEndDateModal:function(){this.editImportEndDateIdSite=null,this.isGA4=!1},manuallyResume:function(e,t){return a["AjaxHelper"].post({module:"GoogleAnalyticsImporter",action:"resumeImport",idSite:e,isGA4:t?1:0,nonce:this.resumeImportNonce},{},{withTokenInUrl:!0}).finally((function(){window.location.reload()}))},deleteImportStatus:function(e,t){var n=this;if(t)return a["AjaxHelper"].post({module:"GoogleAnalyticsImporter",action:"deleteImportStatus",idSite:e,nonce:this.stopImportNonce},{},{withTokenInUrl:!0}).finally((function(){window.location.reload()}));a["Matomo"].helper.modalConfirm("#confirmCancelJob",{yes:function(){n.deleteImportStatus(e,!0)}})},openScheduleReimportModal:function(e,t){this.reimportDateRangeIdSite=e,this.isGA4=t,Ye("#openScheduleReimportModal").modal({dismissible:!1}).modal("open")},changeImportEndDateModal:function(){return a["AjaxHelper"].post({module:"GoogleAnalyticsImporter",action:"changeImportEndDate",idSite:this.editImportEndDateIdSite,nonce:this.changeImportEndDateNonce,endDate:this.newImportEndDate},{},{withTokenInUrl:!0}).finally((function(){window.location.reload()}))},scheduleReimport:function(){return a["AjaxHelper"].post({module:"GoogleAnalyticsImporter",action:"scheduleReImport",idSite:this.reimportDateRangeIdSite,startDate:this.reimportStartDate,endDate:this.reimportEndDate,nonce:this.scheduleReImportNonce,isGA4:this.isGA4?1:0},{},{withTokenInUrl:!0}).finally((function(){window.location.reload()}))}},computed:{tooltipContent:function(){return function(){var e=Ye(this).attr("title")||"";return window.vueSanitize(e.replace(/\n/g,"
"))}}}});$e.render=J;var Je=$e,We={key:0,class:"form-group row"},Xe={class:"col s12 m6"},Ke=Object(s["createElementVNode"])("br",null,null,-1),Qe=["innerHTML"],Ze={class:"col s12 m6"},et=["innerHTML"],tt=["innerHTML"],nt=["textContent"],ot={class:"form-group row"},rt=["action"],at={key:0,type:"hidden",name:"isNoDataPage",value:"1"},lt=["value"],it=["disabled"],ct=Object(s["createElementVNode"])("span",{class:"icon-upload"},null,-1),st=Object(s["createElementVNode"])("span",{class:"icon-upload"},null,-1),mt={key:1,class:"system-success connected-message-successful"},pt=Object(s["createElementVNode"])("span",{class:"icon-ok"},null,-1),ut=["innerHTML"],dt=["innerHTML"],gt=["action"],bt=["value"],Ot=["disabled","textContent"],jt={key:0,class:"system-success connected-message-successful"},ft=Object(s["createElementVNode"])("span",{class:"icon-ok"},null,-1),ht=["innerHTML"],yt=["textContent"],It=["textContent"],Ct=["innerHTML"],Dt=["innerHTML"],At=["textContent"];function Vt(e,t,n,o,r,a){return Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],null,[e.isNoDataPage?Object(s["createCommentVNode"])("",!0):(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",We,[Object(s["createElementVNode"])("div",Xe,[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ConfigureTheImporterLabel1")),1),Object(s["createElementVNode"])("p",null,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ConfigureTheImporterLabel2")),1),Ke,Object(s["createElementVNode"])("span",{innerHTML:e.$sanitize(e.setupGoogleAnalyticsImportFaq)},null,8,Qe)])]),Object(s["createElementVNode"])("div",Ze,[Object(s["createElementVNode"])("div",{class:"form-help",innerHTML:e.$sanitize(e.translate("GoogleAnalyticsImporter_ConfigureTheImporterHelpNewDate","",""))},null,8,et)])])),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:1,innerHTML:e.$sanitize(e.getAdvanceConnectStep01Text)},null,8,tt)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:2,textContent:Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep02"))},null,8,nt)):Object(s["createCommentVNode"])("",!0),Object(s["createElementVNode"])("div",ot,[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(e.getClass)},[Object(s["createElementVNode"])("form",{id:"configFileUploadForm",action:e.manualActionUrl,method:"POST",enctype:"multipart/form-data"},[Object(s["createElementVNode"])("input",{type:"file",id:"clientfile",name:"clientfile",accept:".json",onChange:t[0]||(t[0]=function(){return e.processFileChange&&e.processFileChange.apply(e,arguments)}),style:{display:"none"}},null,32),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("input",at)):Object(s["createCommentVNode"])("",!0),Object(s["createElementVNode"])("input",{type:"hidden",name:"config_nonce",value:e.manualConfigNonce},null,8,lt),Object(s["createElementVNode"])("button",{type:"button",class:"btn advance-upload-button",onClick:t[1]||(t[1]=function(t){return e.selectConfigFile()}),disabled:e.isUploadButtonDisabled},[Object(s["withDirectives"])(Object(s["createElementVNode"])("span",null,[ct,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("General_Upload")),1)],512),[[s["vShow"],!e.isUploadButtonDisabled]]),Object(s["withDirectives"])(Object(s["createElementVNode"])("span",null,[st,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Uploading")),1)],512),[[s["vShow"],e.isUploadButtonDisabled]])],8,it),e.isNoDataPage&&e.hasClientConfiguration?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",mt,[pt,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_UploadSuccessful")),1)])):Object(s["createCommentVNode"])("",!0)],8,rt)],2)]),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:3,innerHTML:e.$sanitize(e.getAdvanceConnectStep03Text)},null,8,ut)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:4,style:{"margin-left":"1.2rem"},class:"complete-note-warning",innerHTML:e.$sanitize(e.getOauthCompleteWarningMessage)},null,8,dt)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("form",{key:5,target:"_blank",method:"post",action:e.authorizeUrl},[Object(s["createElementVNode"])("input",{type:"hidden",name:"auth_nonce",value:e.forwardToAuthNonce},null,8,bt),Object(s["createElementVNode"])("button",{disabled:!1===e.hasClientConfiguration,textContent:Object(s["toDisplayString"])(e.getAuthorizeText),type:"submit",class:"btn btn-forward-to-Oauth"},null,8,Ot),e.isNoDataPage&&e.hasClientConfiguration&&e.isConfigured?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",jt,[ft,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_AccountsConnectedSuccessfully")),1)])):Object(s["createCommentVNode"])("",!0)],8,gt)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:6,innerHTML:e.$sanitize(e.getAdvanceConnectStep04Text)},null,8,ht)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:7,textContent:Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep05"))},null,8,yt)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:8,textContent:Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep06"))},null,8,It)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:9,innerHTML:e.$sanitize(e.getAdvanceConnectStep07Text)},null,8,Ct)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:10,innerHTML:e.$sanitize(e.getAdvanceConnectStep08Text)},null,8,Dt)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:11,textContent:Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep09"))},null,8,At)):Object(s["createCommentVNode"])("",!0)],64)}var Nt=Object(s["defineComponent"])({data:function(){return{isSelectingFile:!1,isUploading:!1}},props:{manualConfigNonce:{type:String,required:!0},manualActionUrl:{type:String,required:!0},isNoDataPage:Boolean,hasClientConfiguration:Boolean,indexActionUrl:String,authorizeUrl:String,forwardToAuthNonce:String,isConfigured:Boolean},methods:{selectConfigFile:function(){this.isSelectingFile=!0;var e=document.getElementById("clientfile");e&&e.click()},processFileChange:function(){var e=document.getElementById("clientfile"),t=document.getElementById("configFileUploadForm");e&&e.value&&t&&(this.isUploading=!0,t.submit())},checkForCancel:function(){if(this.isSelectingFile&&!this.isUploading){var e=document.getElementById("clientfile");e&&!e.value&&(this.isSelectingFile=!1)}}},computed:{setupGoogleAnalyticsImportFaq:function(){var e="https://matomo.org/faq/general/set-up-google-analytics-import/";return Object(a["translate"])("GoogleAnalyticsImporter_ConfigureTheImporterLabel3",''),"")},isUploadButtonDisabled:function(){return this.isSelectingFile||this.isUploading},getAdvanceConnectStep01Text:function(){var e="https://matomo.org/faq/general/set-up-google-analytics-import/";return this.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep01",''),"")},getAdvanceConnectStep03Text:function(){return this.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep03",this.translate("GoogleAnalyticsImporter_Authorize"))},getAdvanceConnectStep04Text:function(){var e="https://matomo.org/faq/general/running-the-google-analytics-import/";return this.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep04",''),"",''),"")},getAdvanceConnectStep05Text:function(){return this.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep05",''),"")},getAdvanceConnectStep07Text:function(){return"".concat(this.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep07",this.translate("GoogleAnalyticsImporter_Start")),'
').concat(this.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep07Note","","",this.translate("GoogleAnalyticsImporter_Start")),"
")},getAdvanceConnectStep08Text:function(){return this.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep08",''),"")},getOauthCompleteWarningMessage:function(){return this.translate("GoogleAnalyticsImporter_GoogleOauthCompleteWarning","","")},getClass:function(){var e="col s12";return this.isNoDataPage?e+=" p-half-point":e+=" m6",e},getAuthorizeText:function(){return this.isConfigured?this.translate("GoogleAnalyticsImporter_ReAuthorize"):this.translate("GoogleAnalyticsImporter_Authorize")}},mounted:function(){document.body.onfocus=this.checkForCancel}});Nt.render=Vt;var Et=Nt,St=["action"],kt=["value"],Gt={key:0},_t={type:"submit",class:"btn"},vt={key:1},xt={type:"submit",class:"btn"},Bt=["action"],Tt=["value"],wt={type:"submit",class:"btn"};function Mt(e,t,n,o,r,a){var l=Object(s["resolveComponent"])("ContentBlock");return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",null,[e.hasClientConfiguration?(Object(s["openBlock"])(),Object(s["createBlock"])(l,{key:0,"content-title":e.translate("GoogleAnalyticsImporter_ConfigureTheImporter")},{default:Object(s["withCtx"])((function(){return[Object(s["createElementVNode"])("form",{method:"post",action:e.forwardToAuthUrl,id:"clientauthform"},[Object(s["createElementVNode"])("input",{type:"hidden",name:"auth_nonce",value:e.authNonce},null,8,kt),e.isConfigured?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Gt,[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImporterIsConfigured")),1),Object(s["createElementVNode"])("button",_t,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ReAuthorize")),1)])):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",vt,[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ClientConfigSuccessfullyUpdated")),1),Object(s["createElementVNode"])("button",xt,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Authorize")),1)]))],8,St)]})),_:1},8,["content-title"])):Object(s["createCommentVNode"])("",!0),e.hasClientConfiguration?(Object(s["openBlock"])(),Object(s["createBlock"])(l,{key:1,"content-title":e.translate("GoogleAnalyticsImporter_RemoveClientConfiguration")},{default:Object(s["withCtx"])((function(){return[Object(s["createElementVNode"])("form",{action:e.deleteClientCredentialsLink,method:"POST",enctype:"multipart/form-data",id:"removeConfigForm"},[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_DeleteUploadedClientConfig"))+":",1),Object(s["createElementVNode"])("input",{type:"hidden",name:"config_nonce",value:e.configNonce},null,8,Tt),Object(s["createElementVNode"])("button",wt,Object(s["toDisplayString"])(e.translate("General_Remove")),1)],8,Bt)]})),_:1},8,["content-title"])):Object(s["createCommentVNode"])("",!0)])}var Ut=Object(s["defineComponent"])({props:{hasClientConfiguration:Boolean,isConfigured:Boolean,authNonce:String,configNonce:String},components:{ContentBlock:a["ContentBlock"]},data:function(){return{clientFileToSet:null,clientConfigTextToSet:""}},computed:{forwardToAuthUrl:function(){return"?".concat(a["MatomoUrl"].stringify(Object.assign(Object.assign({},a["MatomoUrl"].urlParsed.value),{},{action:"forwardToAuth"})))},configureClientLink:function(){return"?".concat(a["MatomoUrl"].stringify(Object.assign(Object.assign({},a["MatomoUrl"].urlParsed.value),{},{action:"configureClient"})))},configureClientDesc2:function(){var e="https://matomo.org/docs/google-analytics-importer/";return Object(a["translate"])("GoogleAnalyticsImporter_ConfigureClientDesc2",''),"")},deleteClientCredentialsLink:function(){return"?".concat(a["MatomoUrl"].stringify(Object.assign(Object.assign({},a["MatomoUrl"].urlParsed.value),{},{action:"deleteClientCredentials"})))}}});Ut.render=Mt;var Pt=Ut,Ht={class:"hide-import-main-div ga-import-main-div ua-main-div"},Ft={class:"hide-import-main-div ga-import-main-div ga4-main-div"},Lt={key:0},zt={key:3,class:"ui-confirm",id:"confirmCancelJob"},Rt=["value"],qt=["value"];function Yt(e,t,n,o,r,a){var l=Object(s["resolveComponent"])("CommonConnect"),i=Object(s["resolveComponent"])("ClientConfig"),c=Object(s["resolveComponent"])("ImportSelector"),m=Object(s["resolveComponent"])("ImportScheduler"),p=Object(s["resolveComponent"])("ImportSchedulerGA4"),u=Object(s["resolveComponent"])("ContentBlock"),d=Object(s["resolveComponent"])("ImportStatus");return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",null,[Object(s["createVNode"])(l,{extensions:e.extensions,"configure-connection-props":e.configureConnectionProps},null,8,["extensions","configure-connection-props"]),e.isClientConfigurable?(Object(s["openBlock"])(),Object(s["createBlock"])(i,{key:0,"has-client-configuration":e.hasClientConfiguration,"is-configured":e.isConfigured,"auth-nonce":e.authNonce,"config-nonce":e.configNonce},null,8,["has-client-configuration","is-configured","auth-nonce","config-nonce"])):Object(s["createCommentVNode"])("",!0),e.hasClientConfiguration&&e.isConfigured?(Object(s["openBlock"])(),Object(s["createBlock"])(u,{key:1,"content-title":e.translate("GoogleAnalyticsImporter_SelectImporter")},{default:Object(s["withCtx"])((function(){return[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_SelectImporterSelection")),1),Object(s["createVNode"])(c,{"import-options-ua":e.importOptionsUa,"import-options-ga4":e.importOptionsGa4,"onUpdate:selectedImporter":t[0]||(t[0]=function(t){return e.selectedImporter=t})},null,8,["import-options-ua","import-options-ga4"]),Object(s["withDirectives"])(Object(s["createElementVNode"])("div",Ht,[Object(s["createElementVNode"])("h3",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ScheduleAnImport")),1),Object(s["createVNode"])(m,{"vue-entry":"GoogleAnalyticsImporter.ImportScheduler","has-client-configuration":e.hasClientConfiguration,"is-configured":e.isConfigured,"start-import-nonce":e.startImportNonce,"max-end-date-desc":e.maxEndDateDesc,"extra-custom-dimensions-field":e.extraCustomDimensionsField},null,8,["has-client-configuration","is-configured","start-import-nonce","max-end-date-desc","extra-custom-dimensions-field"])],512),[[s["vShow"],"ua"===e.selectedImporter]]),Object(s["withDirectives"])(Object(s["createElementVNode"])("div",Ft,[Object(s["createElementVNode"])("h3",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ScheduleAnImportGA4")),1),Object(s["createVNode"])(p,{"start-import-nonce":e.startImportNonce,"max-end-date-desc":e.maxEndDateDesc,"extra-custom-dimensions-field":e.extraCustomDimensionsFieldGa4},null,8,["start-import-nonce","max-end-date-desc","extra-custom-dimensions-field"])],512),[[s["vShow"],"ga4"===e.selectedImporter]])]})),_:1},8,["content-title"])):Object(s["createCommentVNode"])("",!0),e.hasClientConfiguration&&e.isConfigured?(Object(s["openBlock"])(),Object(s["createBlock"])(u,{key:2,id:"importStatusContainer","content-title":e.translate("GoogleAnalyticsImporter_ImportJobs")},{default:Object(s["withCtx"])((function(){var t,n;return[null!==(t=e.statuses)&&void 0!==t&&t.length?Object(s["createCommentVNode"])("",!0):(Object(s["openBlock"])(),Object(s["createElementBlock"])("p",Lt,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ThereAreNoImportJobs")),1)),null!==(n=e.statuses)&&void 0!==n&&n.length?(Object(s["openBlock"])(),Object(s["createBlock"])(d,{key:1,statuses:e.statuses,"stop-import-nonce":e.stopImportNonce,"change-import-end-date-nonce":e.changeImportEndDateNonce,"resume-import-nonce":e.resumeImportNonce,"schedule-re-import-nonce":e.scheduleReImportNonce},null,8,["statuses","stop-import-nonce","change-import-end-date-nonce","resume-import-nonce","schedule-re-import-nonce"])):Object(s["createCommentVNode"])("",!0)]})),_:1},8,["content-title"])):Object(s["createCommentVNode"])("",!0),e.hasClientConfiguration&&e.isConfigured?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",zt,[Object(s["createElementVNode"])("h2",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_CancelJobConfirm")),1),Object(s["createElementVNode"])("input",{role:"yes",type:"button",value:e.translate("General_Yes")},null,8,Rt),Object(s["createElementVNode"])("input",{role:"no",type:"button",value:e.translate("General_No")},null,8,qt)])):Object(s["createCommentVNode"])("",!0)])}var $t={key:1};function Jt(e,t,n,o,r,a){var l=Object(s["resolveComponent"])("ContentBlock");return Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.componentExtensions,(function(t,n){return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:n},[e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",$t,[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(t),{"manual-config-nonce":e.configConnectProps.manualConfigNonce,"base-domain":e.configConnectProps.baseDomain,"base-url":e.configConnectProps.baseUrl,"manual-action-url":e.configConnectProps.manualActionUrl,"primary-text":e.configConnectProps.primaryText,"radio-options":e.configConnectProps.radioOptions,"manual-config-text":e.configConnectProps.manualConfigText,"connect-accounts-url":e.configConnectProps.connectAccountsUrl,"connect-accounts-btn-text":e.configConnectProps.connectAccountsBtnText,"auth-url":e.configConnectProps.authUrl,"unlink-url":e.configConnectProps.unlinkUrl,strategy:e.configConnectProps.strategy,"connected-with":e.configConnectProps.connectedWith,"is-no-data-page":e.isNoDataPage,"has-client-configuration":e.hasClientConfiguration,"index-action-url":e.indexActionUrl,"authorize-url":e.authorizeUrl,"forward-to-auth-nonce":e.forwardToAuthNonce,"is-configured":e.isConfigured,"strategy-to-use":e.strategyToUse,"additional-help-text":e.configConnectProps.additionalHelpText},null,8,["manual-config-nonce","base-domain","base-url","manual-action-url","primary-text","radio-options","manual-config-text","connect-accounts-url","connect-accounts-btn-text","auth-url","unlink-url","strategy","connected-with","is-no-data-page","has-client-configuration","index-action-url","authorize-url","forward-to-auth-nonce","is-configured","strategy-to-use","additional-help-text"]))])):(Object(s["openBlock"])(),Object(s["createBlock"])(l,{key:0,"content-title":e.isNoDataPage?"":e.translate("GoogleAnalyticsImporter_AdminMenuTitle")},{default:Object(s["withCtx"])((function(){return[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(t),{"manual-config-nonce":e.configConnectProps.manualConfigNonce,"base-domain":e.configConnectProps.baseDomain,"base-url":e.configConnectProps.baseUrl,"manual-action-url":e.configConnectProps.manualActionUrl,"primary-text":e.configConnectProps.primaryText,"radio-options":e.configConnectProps.radioOptions,"manual-config-text":e.configConnectProps.manualConfigText,"connect-accounts-url":e.configConnectProps.connectAccountsUrl,"connect-accounts-btn-text":e.configConnectProps.connectAccountsBtnText,"auth-url":e.configConnectProps.authUrl,"unlink-url":e.configConnectProps.unlinkUrl,strategy:e.configConnectProps.strategy,"connected-with":e.configConnectProps.connectedWith,"is-no-data-page":e.isNoDataPage,"has-client-configuration":e.hasClientConfiguration,"index-action-url":e.indexActionUrl,"authorize-url":e.authorizeUrl,"forward-to-auth-nonce":e.forwardToAuthNonce,"is-configured":e.isConfigured,"strategy-to-use":e.strategyToUse,"additional-help-text":e.configConnectProps.additionalHelpText},null,8,["manual-config-nonce","base-domain","base-url","manual-action-url","primary-text","radio-options","manual-config-text","connect-accounts-url","connect-accounts-btn-text","auth-url","unlink-url","strategy","connected-with","is-no-data-page","has-client-configuration","index-action-url","authorize-url","forward-to-auth-nonce","is-configured","strategy-to-use","additional-help-text"]))]})),_:2},1032,["content-title"]))])})),128)}var Wt=Object(s["defineComponent"])({props:{extensions:Array,configureConnectionProps:{type:Object,required:!0},isNoDataPage:Boolean,hasClientConfiguration:Boolean,indexActionUrl:String,authorizeUrl:String,forwardToAuthNonce:String,strategyToUse:String,isConfigured:Boolean},components:{Notification:a["Notification"],ContentBlock:a["ContentBlock"]},computed:{componentExtensions:function(){var e=this.extensions;return Object(s["markRaw"])(e.map((function(e){return Object(a["useExternalPluginComponent"])(e.plugin,e.component)})))},configConnectProps:function(){return this.configureConnectionProps}}});Wt.render=Jt;var Xt=Wt,Kt=Object(s["defineComponent"])({props:{hasClientConfiguration:Boolean,isConfigured:Boolean,isClientConfigurable:Boolean,authNonce:String,configNonce:String,startImportNonce:{type:String,required:!0},maxEndDateDesc:String,extraCustomDimensionsField:{type:Object,required:!0},extraCustomDimensionsFieldGa4:{type:Object,required:!0},statuses:{type:Array,required:!0},stopImportNonce:{type:String,required:!0},changeImportEndDateNonce:{type:String,required:!0},resumeImportNonce:{type:String,required:!0},scheduleReImportNonce:{type:String,required:!0},importOptionsUa:{type:Object,required:!0},importOptionsGa4:{type:Object,required:!0},extensions:Array,configureConnectionProps:{type:Object,required:!0}},components:{CommonConnect:Xt,ImportSchedulerGA4:w,ContentBlock:a["ContentBlock"],ClientConfig:Pt,ImportScheduler:A,ImportStatus:Je,ImportSelector:P},data:function(){return{selectedImporter:""}},computed:{importerHelp2Text:function(){var e="https://matomo.org/docs/google-analytics-importer/";return Object(a["translate"])("GoogleAnalyticsImporter_ImporterHelp2",''),"")},importerHelp3Text:function(){return Object(a["translate"])("GoogleAnalyticsImporter_ImporterHelp3","

","")},componentExtensions:function(){var e=this.extensions;return Object(s["markRaw"])(e.map((function(e){return Object(a["useExternalPluginComponent"])(e.plugin,e.component)})))},configConnectProps:function(){return this.configureConnectionProps}}});Kt.render=Yt;var Qt=Kt; /*! * Matomo - free/libre analytics platform *