From 51958e869961c29f86abe8f32110b05d7bf42f31 Mon Sep 17 00:00:00 2001 From: sgiehl Date: Sun, 17 Sep 2023 11:35:38 +0200 Subject: [PATCH 1/6] Adjustments for new no data page layout --- .../GoogleAnalyticsImporter.php | 22 +++++++++++------- images/ga-icon.svg | 5 ++++ images/google-analytics.png | Bin 6198 -> 0 bytes lang/en.json | 5 +++- stylesheets/styles.less | 2 +- templates/gaImportNoData.twig | 5 ++-- 6 files changed, 26 insertions(+), 13 deletions(-) create mode 100644 images/ga-icon.svg delete mode 100644 images/google-analytics.png diff --git a/SiteContentDetection/GoogleAnalyticsImporter.php b/SiteContentDetection/GoogleAnalyticsImporter.php index 99b857bf9..c5a89ace2 100644 --- a/SiteContentDetection/GoogleAnalyticsImporter.php +++ b/SiteContentDetection/GoogleAnalyticsImporter.php @@ -28,7 +28,12 @@ public static function getName(): string return Piwik::translate('GoogleAnalyticsImporter_AdminMenuTitle'); } - public static function getContentType(): string + public static function getIcon(): string + { + return './plugins/GoogleAnalyticsImporter/images/ga-icon.svg'; + } + + public static function getContentType(): int { return self::TYPE_OTHER; } @@ -43,16 +48,18 @@ public function isDetected(?string $data = null, ?array $headers = null): bool return false; } - public function shouldShowInstructionTab(SiteContentDetector $detector = null): bool + public function isRecommended(SiteContentDetector $detector): bool { - return Piwik::hasUserSuperUserAccess() && ( - $detector->wasDetected(GoogleAnalytics3::getId()) || $detector->wasDetected(GoogleAnalytics4::getId()) - ); + return $detector->wasDetected(GoogleAnalytics3::getId()) || $detector->wasDetected(GoogleAnalytics4::getId()); } - public function shouldHighlightTabIfShown(): bool + public function getRecommendationDetails(SiteContentDetector $detector): array { - return true; + return [ + 'title' => Piwik::translate('GoogleAnalyticsImporter_RecommendationTitle'), + 'text' => Piwik::translate('GoogleAnalyticsImporter_RecommendationText'), + 'button' => Piwik::translate('GoogleAnalyticsImporter_RecommendationButton'), + ]; } public function renderInstructionsTab(SiteContentDetector $detector): string @@ -71,7 +78,6 @@ public function renderInstructionsTab(SiteContentDetector $detector): string $view->extensions = Controller::getComponentExtensions(true); $view->hasClientConfiguration = $authorization->hasClientConfiguration(); $view->isConfigured = $authorization->hasAccessToken(); - $view->isNoDataPage = true; return $view->render(); } diff --git a/images/ga-icon.svg b/images/ga-icon.svg new file mode 100644 index 000000000..aa4d1970f --- /dev/null +++ b/images/ga-icon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/images/google-analytics.png b/images/google-analytics.png deleted file mode 100644 index 7c742d71079c1e274e957e2336124782ffaceb1c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6198 zcma)hXFObA)U`;Is6j+GY9dP1XoEp8`0GNnXrqKAqSrApL>GhTogqZ@mLM5XN7U%O zMDH~i%$R39&&T)6`{n-b@7{a%U3ZF|KN>?rbcRu2yOf9pZY{nli7;7 zs%70Zr`B^G2?>d>&4MSv{^UL;PHNXN`Wk8)8WpP%cFYmo6!>3aR2}Z=0O}4g?|uZ~ zn*2JrLyU^!WCeeMjU)?Nw8CwLT;~wu(T||q9b$oD7vdqP7TijX-y=Y!&XX#giE}cg z3->iN(7Bq*Wf^o#K@2S8?^izf{YjDv8T)S-L4Z&(T%KBUy&O%g zKPDD8I1B{sD+Xnnc?qM}7}+i%%sC}~Ff97^>n}en;DW0g=zx(3JMY+q3y2gNQmS}EjMyFLbT_IU(29)#etoNbvkA~(|jHVPRo3*SGR*<5Tb9QczG#zw&| zj=F+A>|G2ml#0i>L0~%6Y-lyj1SabY^_)`K~!#@3pFLp4gxXPPHPLOuq z948Q00-4C2bbxUO_SOFlAuzfrzm6Ug1F>pMii18!TnztzhCnjF=BDP7kCt{Kp>iEV zgM&2j%)s}U1krC;?BpKMc@cKr`CCRWFJR{~1p5fz97}jDOz#d zi2|flSF4k2n5t%VVyXe-Wq|w zgvXz4;AAs&#;yd2pY{fww=N5LlM^TrZUT6i_pz$b2^_wXKK7ydIC$j&@nYaiX1crQ z@(su{K!~ym`*FClm>M2wJqXGsj}O z()>hm*R(q!SYtYjL~4)FP=BIhM`yB*jmy9YCf!==T+>(TC-lmVNgUy+#Y-+N!7 zIb7@DhEH_-*{I;d(`PP2gRRdd?wvp)%?&{NN+|sNRvLHPJ47TgrGmWA=5)s_G?-TL zoY$haoX@$ENvfeTpr0m#B!qJEneM`%g|K{=QjFEwFY7_I$BW{dJ~j+D6IH5B{eylxd<&w|+;FSdykau6*&GEh~~f zc6m0fhJcu!=pvz2bvYxl#Uzm&qYv|7GC}hsRaF zPNo}-7v;^|l&NNlT?4!Pw78`nk@xz18gV==b^ZLSoJ`kjq<|(N%a;1o-|K7TT?c4+BksspRdE@${eDiXuBq&$W zd-@B}2VT!_e+>!oSR5tQ$ioSU(kzBCor=>us0=Dz&rGIErnxTOF>^EHs%F_4&MCO3 zIL_oCp8{{Fe%ntcm;&o>m{zXV)>&3sRg4=E9!zxYz%a)|2RM8sp8hh4_~7>GZq|po z_fZFTel;Yf4rd0vOftzh={j0js4Jmf)1<3ZJ)1xXbo8tJg#$gA4J-moap^6jqHk|s z2|ldm)lA*sQ*JP{_~OPD-uqWX!|B zX^dDQS1*LCRgjEA=ewSv`SS#lab1B`Vs);ZY90udT(@VBr3kg~WHG;Ftam)G7s4EG zij8_FG~~3(Qqm|rlz*pEDnKVj`BHrdA}eZTv8I%*e#AS|RWSyjLkzXH8|RJagWAEh z4^7-+zx4ExNB59wGH-#?>5lCIMu2q&;Dr*tJ|Akb5J>;b zyEyJ0W#6xD0l)0A>94<)dTb38TiAw8e;(mXNoykx4{Rs4k2R!HTU31sS{9li&45Vn zp?-zDYNWhlBDuBOvnJ`Mh-o(EgyIaW|K5MSZ_Xa?<9vRCgJq!5%G3wtKA0XuAIAHP{s~X> zDK?`^s?tfk*|)$ARLEq~`$&mlr>`7Qw@43ZDCLd;@Y_6TYD-?e|CR25Z5ZH!yRv@A z*0C=;tpCvR_cBTvHVGxnrt1DYXsO}$v(Z=^`D^l9VLIrnKBfC9NzyWl&Q=M)qoPj8 zmg~}-@Azd$e+m?3b#EM@p8r0aP50uTc)Tbbs{VF(DrZV+T4&yfIsN^tH?3`tt8bx# zo)rPS^h*j{FNn53Wu#Z?1Y}u#mAp2T7gz$%xtLksm!+&uI?ywI|9YroQYYKH;lO^k zIZRNp*$*$2L8(XKR#Wt@N_$;v2c{OPKnteDmAcZrkhal#HX&=@Y4LCg{3dKjHi^Mr z)n+DL8PB18J>?_ebR8HOQx$Z7`beGQ2-f-Vw--DP=Gh!Bk{!RlFV_0q{Vq4~TddUX9JVx2r1si6 z!tJ?mP9j^5g>T+mRSny@we}a{Y!xfMvEpClt}vaC{71+)>r|b6QT*A) z;{1`c$p$6K`0EAF&E`f0OIDYO-T5k*-~%sUzMxY+g(w4V86>Tt`uEQZ^52;b2J?I( zldBGsnC_pivFD5TS(|qom+Z0OQIwzr^*ZllFg&mn&Ru@o%Q(aq>DgMF$rM0z(-VXN z)}Fqce(1;tqUL%Isy#F0bCrQU4BW9)<5cuPzrGNkjMs8Npnb$~Mh?`O37i?>fa0== zqy=GtUpc%#5GvSKbYdAbfCXrj%aQ&ZRglF6S$gOV533&F z<7hfEXCo9*)R>(~6-jS^L(n3c9V<{*YSN*rp=g{8q+!h&t9I-e550+fpr||KdI3SI6EZ{Kb z^|9+bqV|MNt~*ZAHEO0&fGlV9>3JxT1(kcT0z&YnX?g=HgZ$~Pd>d!|oUa4x(B- zV_$3Aqh@iAWZx4j#S=S9{M%=kMJvb67cow$&V7ZV+X(G6LPt#BmdNy=Y};hLY=JLc=!NYUiQ#ENHqj zo>^Efe&-^kzYSrurmN={yHswtLX?Ki#83JQnEqFnano5E;-Xseyjl7~3#Y^!4n|7L z3S^u?W#x*pBO7!nq@Tly23B+--`Cd(h-s=>fgPndrKfFtBe$3$ z%tGuoIN&pQ*qHf4B2SMM_usyh^g6(J{0s9q-o%Qo^0%OMiyX>sVb?X`bKye$j++&Y z2ss{bp|M>FZtW0Hr?I&qO7+r^!(SmP>pGv_=f2zbxPfUzHGSWcCa7LLpt#3r2^`Sd zJ?f{o`YEG<^gv>$4N)tf&Ed`Dz%MIY+heQm($0O8azy~gPxnF^Wq*Ingefa~ogsHE znaA_CV-lnbUdXX6EYVNJoId(Pno|~;}eMx`G4DBcCA!Hy1GN8yeanQqP0VKqa7%E8;#kE z`-j{W8_4{4+(Zx(tT{2>)s)8=2D4p)%Bpr~@4%7G)U%Eu>jWv!WUg%O(h~{d z#V0cmfC^{--L9a$po~@TIi8*)KphfzEk&(g{BOm7CMJ%11OZ%z109nmqU^q53$nEC z%v!CsNOEj{mk#F3aqk{~D-Dv4C4`0Mik-FArp7(zB(WLfX3G5n2p*rcV5CTv$9 zER;5^=D|iEC4cS8L(ZqXd8g~U=xAx6Uqx>pKmMJwaeoiObx~8Um$qTl;2md=l&A3u zZgV!xF2}HxVd%h=hfcak$C@z%XmvENU5odV;`r`Fpn&8Axf_U#jTW6G_2gQe8a2wQ z19(kNK0(}mY$Vc80(3(G8f?=b8nAxF@h34BG3Nyf3KD)A?wP$;By@cc#sl;m{sF_D z?HWdRj6(9;q(pdu{}DUdW`Gh2zeN_ zUGc_!IB9G*Nu6~zEL3U=WZ}P?aSh&wSig?(FE#8?@N}Odd3Ip{asu~Dr(Wm1sp`rc;m^I(Q}MWHfzOZhMYCW zFAno(9L0@6y*10aM#k{a4se9MNnDcFA!L7|Y_~S*E_1RUI`!yEajYjBmKG0@#>Qm90g626^}O$XBTh?K|G zWYHy^sk%X>A%u#sxbHeLq)4j#ASEVwQa_VGYZYr{y=iw@y01<+=N4b~Kb~~<6Dd%8 z*kTThg>?qYNPFo{kh#GTM&cmpzs;EGq4Mke)Mhnpb3rFJSpUoYuWs~Kjj5vU%!%rT z>ucT4l4mPwKiZU|`$@ei{rJ- z4`9%1#@v{Qi<-L()TlpimYU>UMGPo&6T(D`RA_~^+DfUQl}gL2a&l7=cWip<%=pX2 z5Ie0DMojE1^&ofm81r3QUo)+VA`GYel!SQxlV~gGMyMW||J#s zR;194laq^m=SB@`888bbA%<|-CHw^Y>ExC=tA_G4a_U}dt^4~PSdz;2bHsnQaww%9 zZdxsY>VO>Xj)`eN*a8;wAXWD%e?4;~qaYTuI@n;^Px2cUa%7TwdH)1C?7aG?eVmk` zmsP~*FS_E~=5_Hkroxy{KRD)McvFPU9`*f*%4tt(E-SE6tm+z0#N z6+!R?eGTui%>W(WtT!Gf7 zv}C|70@N5dHUB~Vf;`RBpNKrEQo#ScHS|ktIX&u2zr=Za1NDx%fFO3Nu(46e|5FJn z&r~h0BG~gvP`|lzzah_Kw3t+XMyxQg&anSg85ntYJp4z>lOFdC-WuG|^m>dM1u9aq zb3x{XWvQyg26C7xQ?*86e&R1L*jZ{Ec{7WK9Iws7slEkJp5?kd9eQ>3$_ENulo8lxiT<69 zHWK&6{f}*wv@yR3&STM7D0PRKuMyUaNKwTuq&4U^{DGTgV-lBR5hyY)7k^0fRC|*i yKeHnqG3>=kaCxba1Yhm{vDT3U=Y0@=>!Ni&@0FsJ2H}4Ik(RoiTBWLO=>GsRuwADB diff --git a/lang/en.json b/lang/en.json index 0d8c5b820..6bfd0cd0e 100644 --- a/lang/en.json +++ b/lang/en.json @@ -154,6 +154,9 @@ "UploadSuccessful": "Upload successful!", "StreamId": "Stream ID", "StreamIdFilter": "Filter by Stream ID (optional)", - "StreamIdFilterHelpText": "The Stream ID for which you want to import data. %1$sLearn more.%2$s %3$sNote:%4$s Leave this field blank to import data from all streams." + "StreamIdFilterHelpText": "The Stream ID for which you want to import data. %1$sLearn more.%2$s %3$sNote:%4$s Leave this field blank to import data from all streams.", + "RecommendationTitle": "Import Google Analytics data to Matomo (recommended for you)", + "RecommendationText": "We have detected Google Analytics on your site, so you can set up Matomo by importing your Google Analytics data.", + "RecommendationButton": "Import data" } } diff --git a/stylesheets/styles.less b/stylesheets/styles.less index a66f1d7b7..de5104864 100644 --- a/stylesheets/styles.less +++ b/stylesheets/styles.less @@ -17,7 +17,7 @@ } #site-without-data { - #googleanalyticsimporter { + #start-tracking-details[data-method=GoogleAnalyticsImporter] { .form-group.row { margin-top: -0.5rem; margin-bottom: unset; diff --git a/templates/gaImportNoData.twig b/templates/gaImportNoData.twig index 958d61e76..88cfb851e 100644 --- a/templates/gaImportNoData.twig +++ b/templates/gaImportNoData.twig @@ -1,12 +1,11 @@ +

{{ 'SitesManager_StepByStepGuide'|translate }}

+ {% if isGA3 %}
{{ 'GoogleAnalyticsImporter_ConfigureTheImporterHelpNewDate'|translate('', '')|raw }}
{% endif %} -
- -

{{ 'GoogleAnalyticsImporter_NoDataScreenIntro'|translate }}


{% if isConnectAccountsActivated %} From 7b0072c9aed27973f6d2aee98dcd1bf1fbe1b509 Mon Sep 17 00:00:00 2001 From: sgiehl Date: Sun, 17 Sep 2023 13:55:13 +0200 Subject: [PATCH 2/6] improve/fix list-layout --- stylesheets/styles.less | 10 +- vue/dist/GoogleAnalyticsImporter.umd.js | 109 ++++++++++---------- vue/dist/GoogleAnalyticsImporter.umd.min.js | 2 +- vue/src/Configure/ConfigureConnection.vue | 4 +- 4 files changed, 65 insertions(+), 60 deletions(-) diff --git a/stylesheets/styles.less b/stylesheets/styles.less index de5104864..0d5be3523 100644 --- a/stylesheets/styles.less +++ b/stylesheets/styles.less @@ -18,9 +18,18 @@ #site-without-data { #start-tracking-details[data-method=GoogleAnalyticsImporter] { + .list-style-decimal { + list-style-position: outside; + margin-left: 1em; + } + .form-group.row { margin-top: -0.5rem; margin-bottom: unset; + + .col { + padding-left: 0; + } } .ga-import-warning { @@ -37,7 +46,6 @@ } .btn-quick-connect, .advance-upload-button, .btn-forward-to-Oauth { - margin-left: 1.5rem; margin-top: 1rem; margin-bottom: 1.2rem; } diff --git a/vue/dist/GoogleAnalyticsImporter.umd.js b/vue/dist/GoogleAnalyticsImporter.umd.js index 1c8885eb7..39a2e620d 100644 --- a/vue/dist/GoogleAnalyticsImporter.umd.js +++ b/vue/dist/GoogleAnalyticsImporter.umd.js @@ -1280,88 +1280,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=38565042 +// 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=35df7e23 -var ConfigureConnectionvue_type_template_id_38565042_hoisted_1 = { +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_1 = { key: 0, class: "form-group row" }; -var ConfigureConnectionvue_type_template_id_38565042_hoisted_2 = { +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_2 = { class: "col s12 m6" }; -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_35df7e23_hoisted_3 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("br", null, null, -1); -var ConfigureConnectionvue_type_template_id_38565042_hoisted_4 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_38565042_hoisted_5 = { +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_4 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_5 = { class: "col s12 m6" }; -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 = { +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_6 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_7 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_8 = ["textContent"]; +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_9 = { class: "form-group row" }; -var ConfigureConnectionvue_type_template_id_38565042_hoisted_10 = ["action"]; -var ConfigureConnectionvue_type_template_id_38565042_hoisted_11 = { +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_10 = ["action"]; +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_11 = { key: 0, type: "hidden", name: "isNoDataPage", value: "1" }; -var ConfigureConnectionvue_type_template_id_38565042_hoisted_12 = ["value"]; -var ConfigureConnectionvue_type_template_id_38565042_hoisted_13 = ["disabled"]; +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_12 = ["value"]; +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_13 = ["disabled"]; -var ConfigureConnectionvue_type_template_id_38565042_hoisted_14 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_14 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { class: "icon-upload" }, null, -1); -var ConfigureConnectionvue_type_template_id_38565042_hoisted_15 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_15 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { class: "icon-upload" }, null, -1); -var ConfigureConnectionvue_type_template_id_38565042_hoisted_16 = { +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_16 = { key: 1, class: "system-success connected-message-successful" }; -var ConfigureConnectionvue_type_template_id_38565042_hoisted_17 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_17 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { class: "icon-ok" }, null, -1); -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 = { +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_18 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_19 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_20 = ["action"]; +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_21 = ["value"]; +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_22 = ["disabled", "textContent"]; +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_23 = { key: 0, class: "system-success connected-message-successful" }; -var ConfigureConnectionvue_type_template_id_38565042_hoisted_24 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_24 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { class: "icon-ok" }, null, -1); -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", { +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_25 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_26 = ["textContent"]; +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_27 = ["textContent"]; +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_28 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_29 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_30 = ["textContent"]; +function ConfigureConnectionvue_type_template_id_35df7e23_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_35df7e23_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ConfigureConnectionvue_type_template_id_35df7e23_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_35df7e23_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", { + }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_hoisted_4)])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ConfigureConnectionvue_type_template_id_35df7e23_hoisted_5, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", { class: "form-help", 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", { + }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_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_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", { + }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_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_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", { + }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_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_35df7e23_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", @@ -1379,28 +1379,25 @@ function ConfigureConnectionvue_type_template_id_38565042_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_38565042_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_35df7e23_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_38565042_hoisted_12), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("button", { + }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_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_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", { + }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", null, [ConfigureConnectionvue_type_template_id_35df7e23_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_35df7e23_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_35df7e23_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_35df7e23_hoisted_16, [ConfigureConnectionvue_type_template_id_35df7e23_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_35df7e23_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_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", { + }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_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_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", { + }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_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", @@ -1409,32 +1406,32 @@ function ConfigureConnectionvue_type_template_id_38565042_render(_ctx, _cache, $ type: "hidden", name: "auth_nonce", value: _ctx.forwardToAuthNonce - }, null, 8, ConfigureConnectionvue_type_template_id_38565042_hoisted_21), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("button", { + }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_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_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", { + }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_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_35df7e23_hoisted_23, [ConfigureConnectionvue_type_template_id_35df7e23_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_35df7e23_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_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", { + }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_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_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", { + }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_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_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", { + }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_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_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", { + }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_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_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", { + }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_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_38565042_hoisted_30)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64); + }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_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=38565042 +// CONCATENATED MODULE: ./plugins/GoogleAnalyticsImporter/vue/src/Configure/ConfigureConnection.vue?vue&type=template&id=35df7e23 // 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 @@ -1517,7 +1514,7 @@ function ConfigureConnectionvue_type_template_id_38565042_render(_ctx, _cache, $ return this.translate('GoogleAnalyticsImporter_GAImportNoDataScreenStep05', ""), ''); }, getAdvanceConnectStep07Text: function getAdvanceConnectStep07Text() { - return "".concat(this.translate('GoogleAnalyticsImporter_GAImportNoDataScreenStep07', this.translate('GoogleAnalyticsImporter_Start')), "
").concat(this.translate('GoogleAnalyticsImporter_GAImportNoDataScreenStep07Note', '', '', this.translate('GoogleAnalyticsImporter_Start')), "
"); + return "".concat(this.translate('GoogleAnalyticsImporter_GAImportNoDataScreenStep07', this.translate('GoogleAnalyticsImporter_Start')), "
").concat(this.translate('GoogleAnalyticsImporter_GAImportNoDataScreenStep07Note', '', '', this.translate('GoogleAnalyticsImporter_Start')), "
"); }, getAdvanceConnectStep08Text: function getAdvanceConnectStep08Text() { return this.translate('GoogleAnalyticsImporter_GAImportNoDataScreenStep08', ""), ''); @@ -1554,7 +1551,7 @@ function ConfigureConnectionvue_type_template_id_38565042_render(_ctx, _cache, $ -ConfigureConnectionvue_type_script_lang_ts.render = ConfigureConnectionvue_type_template_id_38565042_render +ConfigureConnectionvue_type_script_lang_ts.render = ConfigureConnectionvue_type_template_id_35df7e23_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 e26ade9d8..c269bd00e 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 M})),n.d(t,"ImportSelector",(function(){return P})),n.d(t,"ImportStatus",(function(){return We})),n.d(t,"ConfigureConnection",(function(){return St})),n.d(t,"ClientConfig",(function(){return Pt})),n.d(t,"AdminPage",(function(){return Zt})),n.d(t,"Connect",(function(){return Kt})),"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(),d=!(r.getTime()>p[1].getTime()||i.getTime()
'.concat(u,"
");c(n).find(".card-content>div").append(g)}}}}));var s=n("8bbf"),m={name:"startDate"},p={name:"endDate"},d={name:"propertyId"},u={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",d,[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",u,[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:"streamIds"},k={name:"isMobileAppGA4"},G={name:"timezoneGA4"},_={name:"extraCustomDimensionsGA4"},v={name:"forceIgnoreOutOfCustomDimSlotErrorGA4"},x={name:"isVerboseLoggingEnabledGA4"},B=["disabled"];function T(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:"multituple",name:"streamIds",modelValue:e.streamIds,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.streamIds=t}),title:e.translate("GoogleAnalyticsImporter_StreamIdFilter"),"inline-help":e.streamIdsFilterHelp,"ui-control-attributes":e.streamIdsField},null,8,["modelValue","title","inline-help","ui-control-attributes"])]),Object(s["createElementVNode"])("div",k,[Object(s["createVNode"])(l,{uicontrol:"checkbox",name:"isMobileAppGA4",modelValue:e.isMobileAppGA4,"onUpdate:modelValue":t[4]||(t[4]=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",G,[Object(s["createVNode"])(l,{uicontrol:"text",name:"timezoneGA4",modelValue:e.timezoneGA4,"onUpdate:modelValue":t[5]||(t[5]=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",_,[Object(s["createVNode"])(l,{uicontrol:"multituple",name:"extraCustomDimensionsGA4",modelValue:e.extraCustomDimensionsGA4,"onUpdate:modelValue":t[6]||(t[6]=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",v,[Object(s["createVNode"])(l,{uicontrol:"checkbox",name:"forceIgnoreOutOfCustomDimSlotErrorGA4",modelValue:e.ignoreCustomDimensionSlotCheckGA4,"onUpdate:modelValue":t[7]||(t[7]=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",x,[Object(s["createVNode"])(l,{uicontrol:"checkbox",name:"isVerboseLoggingEnabledGA4",modelValue:e.isVerboseLoggingEnabledGA4,"onUpdate:modelValue":t[8]||(t[8]=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[9]||(t[9]=function(t){return e.startImportGA4()}),disabled:e.isStartingImport},Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Start")),9,B)])}var w=Object(s["defineComponent"])({props:{startImportNonce:{type:String,required:!0},maxEndDateDesc:String,extraCustomDimensionsField:{type:Object,required:!0},streamIdsField:{type:Object,required:!0}},components:{Field:C["Field"]},data:function(){return{isStartingImport:!1,extraCustomDimensionsGA4:[],streamIds:[],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,streamIds:this.streamIds,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",''),"")},streamIdsFilterHelp:function(){var e="https://matomo.org/faq/what-is-data-stream-in-google-analytics-4/";return Object(a["translate"])("GoogleAnalyticsImporter_StreamIdFilterHelpText",''),"","

","")},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")}}});w.render=T;var M=w;function U(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 H=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:""}}});H.render=U;var P=H,F={ref:"root"},L={class:"entityTable importStatusesTable"},z={class:"modal",id:"openScheduleReimportModal"},R={class:"modal-content"},q={class:"modal-footer"},Y={class:"modal",id:"editImportEndDate"},$={class:"modal-content"},J={class:"modal-footer"};function W(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",F,[Object(s["createElementVNode"])("table",L,[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",z,[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",q,[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",Y,[Object(s["createElementVNode"])("div",$,[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",J,[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 X=["data-idsite"],K={class:"sitename"},Q=["href"],Z={key:1,style:{"text-transform":"uppercase"}},ee=Object(s["createElementVNode"])("br",null,null,-1),te=["innerHTML"],ne={class:"status"},oe={key:0},re=["title"],ae=Object(s["createElementVNode"])("br",null,null,-1),le={key:0},ie={key:1},ce=["title"],se=Object(s["createElementVNode"])("br",null,null,-1),me={key:0},pe={key:2},de=["title"],ue={key:3},ge=["title"],be={key:4},Oe=Object(s["createElementVNode"])("br",null,null,-1),je=["innerHTML"],fe={key:5},he=["title"],ye=Object(s["createElementVNode"])("br",null,null,-1),Ie={class:"last-date-imported"},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=Object(s["createElementVNode"])("br",null,null,-1),Ee={key:0},Se={class:"scheduled-reimports"},ke={key:0},Ge={key:1},_e={class:"import-start-finish-times"},ve=Object(s["createElementVNode"])("br",null,null,-1),xe=Object(s["createElementVNode"])("br",null,null,-1),Be={key:0},Te={key:1},we={key:0},Me={key:1},Ue={key:2},He={key:3},Pe={class:"actions"},Fe=["title"],Le=["title"];function ze(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",K,[e.status.site?(Object(s["openBlock"])(),Object(s["createElementBlock"])("a",{key:0,target:"_blank",href:e.siteUrl},Object(s["toDisplayString"])(e.siteName),9,Q)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Z,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_SiteDeleted")),1)),ee,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,te),Object(s["createElementVNode"])("td",ne,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.status.status)+" ",1),"rate_limited"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",oe,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_RateLimitHelp")},null,8,re),ae,e.status.days_finished_since_rate_limit?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",le,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",ie,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.status.error},null,8,ce),se,e.status.days_finished_since_rate_limit?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",me,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",pe,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_RateLimitHourlyHelp")},null,8,de)])):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,ge)])):"errored"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",be,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ErrorMessage"))+": "+Object(s["toDisplayString"])(e.status.error||"no message")+" ",1),Oe,Object(s["createElementVNode"])("span",{innerHTML:e.$sanitize(e.errorMessageBugReportRequest)},null,8,je)])):"killed"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",fe,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_KilledStatusHelp")},null,8,he),ye,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",Ie,[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),Ce,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_LastDayArchived"))+": "+Object(s["toDisplayString"])(e.status.last_day_archived||e.noneText),1),De,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImportStartDate"))+": "+Object(s["toDisplayString"])(e.status.import_range_start||e.websiteCreationTime)+" ",1),Ae,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImportEndDate"))+": "+Object(s["toDisplayString"])(e.status.import_range_end||e.noneText)+" ",1),Ve,Ne]),"finished"!==e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",Ee,[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",Se,[null!==(l=e.status.reimport_ranges)&&void 0!==l&&l.length?(Object(s["openBlock"])(),Object(s["createElementBlock"])("ul",ke,[(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",Ge,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_None")),1))]),Object(s["createElementVNode"])("td",_e,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImportStartTime"))+": "+Object(s["toDisplayString"])(e.status.import_start_time||e.noneText),1),ve,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_LastResumeTime"))+": "+Object(s["toDisplayString"])(e.status.last_job_start_time||e.noneText),1),xe,"finished"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Be,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",Te,[e.thisJobShouldFinishToday?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",we,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ThisJobShouldFinishToday")),1)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Me,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",Ue,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_JobWillRunUntilManuallyCancelled")),1)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",He,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,Fe),-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,Le)):Object(s["createCommentVNode"])("",!0)])],8,X)}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=ze;var qe=Re,Ye=window,$e=Ye.$,Je=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:qe},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,$e("#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,$e("#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=$e(this).attr("title")||"";return window.vueSanitize(e.replace(/\n/g,"
"))}}}});Je.render=W;var We=Je,Xe={key:0,class:"form-group row"},Ke={class:"col s12 m6"},Qe=Object(s["createElementVNode"])("br",null,null,-1),Ze=["innerHTML"],et={class:"col s12 m6"},tt=["innerHTML"],nt=["innerHTML"],ot=["textContent"],rt={class:"form-group row"},at=["action"],lt={key:0,type:"hidden",name:"isNoDataPage",value:"1"},it=["value"],ct=["disabled"],st=Object(s["createElementVNode"])("span",{class:"icon-upload"},null,-1),mt=Object(s["createElementVNode"])("span",{class:"icon-upload"},null,-1),pt={key:1,class:"system-success connected-message-successful"},dt=Object(s["createElementVNode"])("span",{class:"icon-ok"},null,-1),ut=["innerHTML"],gt=["innerHTML"],bt=["action"],Ot=["value"],jt=["disabled","textContent"],ft={key:0,class:"system-success connected-message-successful"},ht=Object(s["createElementVNode"])("span",{class:"icon-ok"},null,-1),yt=["innerHTML"],It=["textContent"],Ct=["textContent"],Dt=["innerHTML"],At=["innerHTML"],Vt=["textContent"];function Nt(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",Xe,[Object(s["createElementVNode"])("div",Ke,[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),Qe,Object(s["createElementVNode"])("span",{innerHTML:e.$sanitize(e.setupGoogleAnalyticsImportFaq)},null,8,Ze)])]),Object(s["createElementVNode"])("div",et,[Object(s["createElementVNode"])("div",{class:"form-help",innerHTML:e.$sanitize(e.translate("GoogleAnalyticsImporter_ConfigureTheImporterHelpNewDate","",""))},null,8,tt)])])),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:1,innerHTML:e.$sanitize(e.getAdvanceConnectStep01Text)},null,8,nt)):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,ot)):Object(s["createCommentVNode"])("",!0),Object(s["createElementVNode"])("div",rt,[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",lt)):Object(s["createCommentVNode"])("",!0),Object(s["createElementVNode"])("input",{type:"hidden",name:"config_nonce",value:e.manualConfigNonce},null,8,it),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,[st,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("General_Upload")),1)],512),[[s["vShow"],!e.isUploadButtonDisabled]]),Object(s["withDirectives"])(Object(s["createElementVNode"])("span",null,[mt,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Uploading")),1)],512),[[s["vShow"],e.isUploadButtonDisabled]])],8,ct),e.isNoDataPage&&e.hasClientConfiguration?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",pt,[dt,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_UploadSuccessful")),1)])):Object(s["createCommentVNode"])("",!0)],8,at)],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,gt)):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,Ot),Object(s["createElementVNode"])("button",{disabled:!1===e.hasClientConfiguration,textContent:Object(s["toDisplayString"])(e.getAuthorizeText),type:"submit",class:"btn btn-forward-to-Oauth"},null,8,jt),e.isNoDataPage&&e.hasClientConfiguration&&e.isConfigured?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",ft,[ht,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_AccountsConnectedSuccessfully")),1)])):Object(s["createCommentVNode"])("",!0)],8,bt)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:6,innerHTML:e.$sanitize(e.getAdvanceConnectStep04Text)},null,8,yt)):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,It)):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,Ct)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:9,innerHTML:e.$sanitize(e.getAdvanceConnectStep07Text)},null,8,Dt)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:10,innerHTML:e.$sanitize(e.getAdvanceConnectStep08Text)},null,8,At)):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,Vt)):Object(s["createCommentVNode"])("",!0)],64)}var Et=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}});Et.render=Nt;var St=Et,kt=["action"],Gt=["value"],_t={key:0},vt={type:"submit",class:"btn"},xt={key:1},Bt={type:"submit",class:"btn"},Tt=["action"],wt=["value"],Mt={type:"submit",class:"btn"};function Ut(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,Gt),e.isConfigured?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",_t,[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImporterIsConfigured")),1),Object(s["createElementVNode"])("button",vt,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ReAuthorize")),1)])):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",xt,[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ClientConfigSuccessfullyUpdated")),1),Object(s["createElementVNode"])("button",Bt,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Authorize")),1)]))],8,kt)]})),_: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,wt),Object(s["createElementVNode"])("button",Mt,Object(s["toDisplayString"])(e.translate("General_Remove")),1)],8,Tt)]})),_:1},8,["content-title"])):Object(s["createCommentVNode"])("",!0)])}var Ht=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"})))}}});Ht.render=Ut;var Pt=Ht,Ft={class:"hide-import-main-div ga-import-main-div ua-main-div"},Lt={class:"hide-import-main-div ga-import-main-div ga4-main-div"},zt={key:0},Rt={key:3,class:"ui-confirm",id:"confirmCancelJob"},qt=["value"],Yt=["value"];function $t(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"),d=Object(s["resolveComponent"])("ContentBlock"),u=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"])(d,{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",Ft,[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",Lt,[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,"stream-ids-field":e.streamIdsFieldGa4},null,8,["start-import-nonce","max-end-date-desc","extra-custom-dimensions-field","stream-ids-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"])(d,{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",zt,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ThereAreNoImportJobs")),1)),null!==(n=e.statuses)&&void 0!==n&&n.length?(Object(s["openBlock"])(),Object(s["createBlock"])(u,{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,qt),Object(s["createElementVNode"])("input",{role:"no",type:"button",value:e.translate("General_No")},null,8,Yt)])):Object(s["createCommentVNode"])("",!0)])}var Jt={key:1};function Wt(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",Jt,[(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 Xt=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}}});Xt.render=Wt;var Kt=Xt,Qt=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},streamIdsFieldGa4:{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:Kt,ImportSchedulerGA4:M,ContentBlock:a["ContentBlock"],ClientConfig:Pt,ImportScheduler:A,ImportStatus:We,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}}});Qt.render=$t;var Zt=Qt; +(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 M})),n.d(t,"ImportSelector",(function(){return P})),n.d(t,"ImportStatus",(function(){return We})),n.d(t,"ConfigureConnection",(function(){return St})),n.d(t,"ClientConfig",(function(){return Pt})),n.d(t,"AdminPage",(function(){return Zt})),n.d(t,"Connect",(function(){return Kt})),"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(),d=!(r.getTime()>p[1].getTime()||i.getTime()
'.concat(u,"
");c(n).find(".card-content>div").append(g)}}}}));var s=n("8bbf"),m={name:"startDate"},p={name:"endDate"},d={name:"propertyId"},u={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",d,[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",u,[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:"streamIds"},k={name:"isMobileAppGA4"},G={name:"timezoneGA4"},_={name:"extraCustomDimensionsGA4"},v={name:"forceIgnoreOutOfCustomDimSlotErrorGA4"},x={name:"isVerboseLoggingEnabledGA4"},B=["disabled"];function T(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:"multituple",name:"streamIds",modelValue:e.streamIds,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.streamIds=t}),title:e.translate("GoogleAnalyticsImporter_StreamIdFilter"),"inline-help":e.streamIdsFilterHelp,"ui-control-attributes":e.streamIdsField},null,8,["modelValue","title","inline-help","ui-control-attributes"])]),Object(s["createElementVNode"])("div",k,[Object(s["createVNode"])(l,{uicontrol:"checkbox",name:"isMobileAppGA4",modelValue:e.isMobileAppGA4,"onUpdate:modelValue":t[4]||(t[4]=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",G,[Object(s["createVNode"])(l,{uicontrol:"text",name:"timezoneGA4",modelValue:e.timezoneGA4,"onUpdate:modelValue":t[5]||(t[5]=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",_,[Object(s["createVNode"])(l,{uicontrol:"multituple",name:"extraCustomDimensionsGA4",modelValue:e.extraCustomDimensionsGA4,"onUpdate:modelValue":t[6]||(t[6]=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",v,[Object(s["createVNode"])(l,{uicontrol:"checkbox",name:"forceIgnoreOutOfCustomDimSlotErrorGA4",modelValue:e.ignoreCustomDimensionSlotCheckGA4,"onUpdate:modelValue":t[7]||(t[7]=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",x,[Object(s["createVNode"])(l,{uicontrol:"checkbox",name:"isVerboseLoggingEnabledGA4",modelValue:e.isVerboseLoggingEnabledGA4,"onUpdate:modelValue":t[8]||(t[8]=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[9]||(t[9]=function(t){return e.startImportGA4()}),disabled:e.isStartingImport},Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Start")),9,B)])}var w=Object(s["defineComponent"])({props:{startImportNonce:{type:String,required:!0},maxEndDateDesc:String,extraCustomDimensionsField:{type:Object,required:!0},streamIdsField:{type:Object,required:!0}},components:{Field:C["Field"]},data:function(){return{isStartingImport:!1,extraCustomDimensionsGA4:[],streamIds:[],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,streamIds:this.streamIds,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",''),"")},streamIdsFilterHelp:function(){var e="https://matomo.org/faq/what-is-data-stream-in-google-analytics-4/";return Object(a["translate"])("GoogleAnalyticsImporter_StreamIdFilterHelpText",''),"","

","")},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")}}});w.render=T;var M=w;function U(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 H=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:""}}});H.render=U;var P=H,F={ref:"root"},L={class:"entityTable importStatusesTable"},z={class:"modal",id:"openScheduleReimportModal"},R={class:"modal-content"},q={class:"modal-footer"},Y={class:"modal",id:"editImportEndDate"},$={class:"modal-content"},J={class:"modal-footer"};function W(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",F,[Object(s["createElementVNode"])("table",L,[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",z,[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",q,[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",Y,[Object(s["createElementVNode"])("div",$,[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",J,[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 X=["data-idsite"],K={class:"sitename"},Q=["href"],Z={key:1,style:{"text-transform":"uppercase"}},ee=Object(s["createElementVNode"])("br",null,null,-1),te=["innerHTML"],ne={class:"status"},oe={key:0},re=["title"],ae=Object(s["createElementVNode"])("br",null,null,-1),le={key:0},ie={key:1},ce=["title"],se=Object(s["createElementVNode"])("br",null,null,-1),me={key:0},pe={key:2},de=["title"],ue={key:3},ge=["title"],be={key:4},Oe=Object(s["createElementVNode"])("br",null,null,-1),je=["innerHTML"],fe={key:5},he=["title"],ye=Object(s["createElementVNode"])("br",null,null,-1),Ie={class:"last-date-imported"},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=Object(s["createElementVNode"])("br",null,null,-1),Ee={key:0},Se={class:"scheduled-reimports"},ke={key:0},Ge={key:1},_e={class:"import-start-finish-times"},ve=Object(s["createElementVNode"])("br",null,null,-1),xe=Object(s["createElementVNode"])("br",null,null,-1),Be={key:0},Te={key:1},we={key:0},Me={key:1},Ue={key:2},He={key:3},Pe={class:"actions"},Fe=["title"],Le=["title"];function ze(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",K,[e.status.site?(Object(s["openBlock"])(),Object(s["createElementBlock"])("a",{key:0,target:"_blank",href:e.siteUrl},Object(s["toDisplayString"])(e.siteName),9,Q)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Z,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_SiteDeleted")),1)),ee,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,te),Object(s["createElementVNode"])("td",ne,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.status.status)+" ",1),"rate_limited"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",oe,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_RateLimitHelp")},null,8,re),ae,e.status.days_finished_since_rate_limit?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",le,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",ie,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.status.error},null,8,ce),se,e.status.days_finished_since_rate_limit?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",me,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",pe,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_RateLimitHourlyHelp")},null,8,de)])):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,ge)])):"errored"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",be,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ErrorMessage"))+": "+Object(s["toDisplayString"])(e.status.error||"no message")+" ",1),Oe,Object(s["createElementVNode"])("span",{innerHTML:e.$sanitize(e.errorMessageBugReportRequest)},null,8,je)])):"killed"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",fe,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_KilledStatusHelp")},null,8,he),ye,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",Ie,[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),Ce,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_LastDayArchived"))+": "+Object(s["toDisplayString"])(e.status.last_day_archived||e.noneText),1),De,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImportStartDate"))+": "+Object(s["toDisplayString"])(e.status.import_range_start||e.websiteCreationTime)+" ",1),Ae,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImportEndDate"))+": "+Object(s["toDisplayString"])(e.status.import_range_end||e.noneText)+" ",1),Ve,Ne]),"finished"!==e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",Ee,[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",Se,[null!==(l=e.status.reimport_ranges)&&void 0!==l&&l.length?(Object(s["openBlock"])(),Object(s["createElementBlock"])("ul",ke,[(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",Ge,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_None")),1))]),Object(s["createElementVNode"])("td",_e,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImportStartTime"))+": "+Object(s["toDisplayString"])(e.status.import_start_time||e.noneText),1),ve,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_LastResumeTime"))+": "+Object(s["toDisplayString"])(e.status.last_job_start_time||e.noneText),1),xe,"finished"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Be,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",Te,[e.thisJobShouldFinishToday?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",we,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ThisJobShouldFinishToday")),1)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Me,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",Ue,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_JobWillRunUntilManuallyCancelled")),1)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",He,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,Fe),-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,Le)):Object(s["createCommentVNode"])("",!0)])],8,X)}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=ze;var qe=Re,Ye=window,$e=Ye.$,Je=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:qe},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,$e("#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,$e("#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=$e(this).attr("title")||"";return window.vueSanitize(e.replace(/\n/g,"
"))}}}});Je.render=W;var We=Je,Xe={key:0,class:"form-group row"},Ke={class:"col s12 m6"},Qe=Object(s["createElementVNode"])("br",null,null,-1),Ze=["innerHTML"],et={class:"col s12 m6"},tt=["innerHTML"],nt=["innerHTML"],ot=["textContent"],rt={class:"form-group row"},at=["action"],lt={key:0,type:"hidden",name:"isNoDataPage",value:"1"},it=["value"],ct=["disabled"],st=Object(s["createElementVNode"])("span",{class:"icon-upload"},null,-1),mt=Object(s["createElementVNode"])("span",{class:"icon-upload"},null,-1),pt={key:1,class:"system-success connected-message-successful"},dt=Object(s["createElementVNode"])("span",{class:"icon-ok"},null,-1),ut=["innerHTML"],gt=["innerHTML"],bt=["action"],Ot=["value"],jt=["disabled","textContent"],ft={key:0,class:"system-success connected-message-successful"},ht=Object(s["createElementVNode"])("span",{class:"icon-ok"},null,-1),yt=["innerHTML"],It=["textContent"],Ct=["textContent"],Dt=["innerHTML"],At=["innerHTML"],Vt=["textContent"];function Nt(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",Xe,[Object(s["createElementVNode"])("div",Ke,[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),Qe,Object(s["createElementVNode"])("span",{innerHTML:e.$sanitize(e.setupGoogleAnalyticsImportFaq)},null,8,Ze)])]),Object(s["createElementVNode"])("div",et,[Object(s["createElementVNode"])("div",{class:"form-help",innerHTML:e.$sanitize(e.translate("GoogleAnalyticsImporter_ConfigureTheImporterHelpNewDate","",""))},null,8,tt)])])),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:1,innerHTML:e.$sanitize(e.getAdvanceConnectStep01Text)},null,8,nt)):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,ot)):Object(s["createCommentVNode"])("",!0),Object(s["createElementVNode"])("div",rt,[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",lt)):Object(s["createCommentVNode"])("",!0),Object(s["createElementVNode"])("input",{type:"hidden",name:"config_nonce",value:e.manualConfigNonce},null,8,it),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,[st,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("General_Upload")),1)],512),[[s["vShow"],!e.isUploadButtonDisabled]]),Object(s["withDirectives"])(Object(s["createElementVNode"])("span",null,[mt,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Uploading")),1)],512),[[s["vShow"],e.isUploadButtonDisabled]])],8,ct),e.isNoDataPage&&e.hasClientConfiguration?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",pt,[dt,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_UploadSuccessful")),1)])):Object(s["createCommentVNode"])("",!0)],8,at)],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,class:"complete-note-warning",innerHTML:e.$sanitize(e.getOauthCompleteWarningMessage)},null,8,gt)):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,Ot),Object(s["createElementVNode"])("button",{disabled:!1===e.hasClientConfiguration,textContent:Object(s["toDisplayString"])(e.getAuthorizeText),type:"submit",class:"btn btn-forward-to-Oauth"},null,8,jt),e.isNoDataPage&&e.hasClientConfiguration&&e.isConfigured?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",ft,[ht,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_AccountsConnectedSuccessfully")),1)])):Object(s["createCommentVNode"])("",!0)],8,bt)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:6,innerHTML:e.$sanitize(e.getAdvanceConnectStep04Text)},null,8,yt)):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,It)):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,Ct)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:9,innerHTML:e.$sanitize(e.getAdvanceConnectStep07Text)},null,8,Dt)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:10,innerHTML:e.$sanitize(e.getAdvanceConnectStep08Text)},null,8,At)):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,Vt)):Object(s["createCommentVNode"])("",!0)],64)}var Et=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}});Et.render=Nt;var St=Et,kt=["action"],Gt=["value"],_t={key:0},vt={type:"submit",class:"btn"},xt={key:1},Bt={type:"submit",class:"btn"},Tt=["action"],wt=["value"],Mt={type:"submit",class:"btn"};function Ut(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,Gt),e.isConfigured?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",_t,[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImporterIsConfigured")),1),Object(s["createElementVNode"])("button",vt,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ReAuthorize")),1)])):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",xt,[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ClientConfigSuccessfullyUpdated")),1),Object(s["createElementVNode"])("button",Bt,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Authorize")),1)]))],8,kt)]})),_: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,wt),Object(s["createElementVNode"])("button",Mt,Object(s["toDisplayString"])(e.translate("General_Remove")),1)],8,Tt)]})),_:1},8,["content-title"])):Object(s["createCommentVNode"])("",!0)])}var Ht=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"})))}}});Ht.render=Ut;var Pt=Ht,Ft={class:"hide-import-main-div ga-import-main-div ua-main-div"},Lt={class:"hide-import-main-div ga-import-main-div ga4-main-div"},zt={key:0},Rt={key:3,class:"ui-confirm",id:"confirmCancelJob"},qt=["value"],Yt=["value"];function $t(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"),d=Object(s["resolveComponent"])("ContentBlock"),u=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"])(d,{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",Ft,[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",Lt,[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,"stream-ids-field":e.streamIdsFieldGa4},null,8,["start-import-nonce","max-end-date-desc","extra-custom-dimensions-field","stream-ids-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"])(d,{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",zt,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ThereAreNoImportJobs")),1)),null!==(n=e.statuses)&&void 0!==n&&n.length?(Object(s["openBlock"])(),Object(s["createBlock"])(u,{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,qt),Object(s["createElementVNode"])("input",{role:"no",type:"button",value:e.translate("General_No")},null,8,Yt)])):Object(s["createCommentVNode"])("",!0)])}var Jt={key:1};function Wt(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",Jt,[(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 Xt=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}}});Xt.render=Wt;var Kt=Xt,Qt=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},streamIdsFieldGa4:{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:Kt,ImportSchedulerGA4:M,ContentBlock:a["ContentBlock"],ClientConfig:Pt,ImportScheduler:A,ImportStatus:We,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}}});Qt.render=$t;var Zt=Qt; /*! * Matomo - free/libre analytics platform * diff --git a/vue/src/Configure/ConfigureConnection.vue b/vue/src/Configure/ConfigureConnection.vue index 32fa7ffa3..baa85e581 100644 --- a/vue/src/Configure/ConfigureConnection.vue +++ b/vue/src/Configure/ConfigureConnection.vue @@ -53,7 +53,7 @@
  • -
    @@ -187,7 +187,7 @@ export default defineComponent({ return `${this.translate( 'GoogleAnalyticsImporter_GAImportNoDataScreenStep07', this.translate('GoogleAnalyticsImporter_Start'), - )}
    ${this.translate('GoogleAnalyticsImporter_GAImportNoDataScreenStep07Note', '', '', this.translate('GoogleAnalyticsImporter_Start'))}
    `; + )}
    ${this.translate('GoogleAnalyticsImporter_GAImportNoDataScreenStep07Note', '', '', this.translate('GoogleAnalyticsImporter_Start'))}
    `; }, getAdvanceConnectStep08Text() { return this.translate( From 8a086986952fd4a194b1776acb0502d3868cbada Mon Sep 17 00:00:00 2001 From: sgiehl Date: Sun, 17 Sep 2023 15:07:03 +0200 Subject: [PATCH 3/6] Adjust html structure so global list style can be used --- stylesheets/styles.less | 5 - templates/gaImportNoData.twig | 4 +- vue/dist/GoogleAnalyticsImporter.umd.js | 199 ++++++++++---------- vue/dist/GoogleAnalyticsImporter.umd.min.js | 2 +- vue/src/AdminPage/CommonConnect.vue | 8 +- vue/src/Configure/ConfigureConnection.vue | 40 ++-- 6 files changed, 129 insertions(+), 129 deletions(-) diff --git a/stylesheets/styles.less b/stylesheets/styles.less index 0d5be3523..b0737621c 100644 --- a/stylesheets/styles.less +++ b/stylesheets/styles.less @@ -18,11 +18,6 @@ #site-without-data { #start-tracking-details[data-method=GoogleAnalyticsImporter] { - .list-style-decimal { - list-style-position: outside; - margin-left: 1em; - } - .form-group.row { margin-top: -0.5rem; margin-bottom: unset; diff --git a/templates/gaImportNoData.twig b/templates/gaImportNoData.twig index 88cfb851e..44986c23b 100644 --- a/templates/gaImportNoData.twig +++ b/templates/gaImportNoData.twig @@ -14,8 +14,7 @@ {% else %}

    {{ 'GoogleAnalyticsImporter_NoDataScreenFollowThisSteps'|translate }}

    {% endif %} -
      -
      -

    {{ 'GoogleAnalyticsImporter_NoDataScreenFollowStepComplete'|translate('', '', '', '')|raw }}

    diff --git a/vue/dist/GoogleAnalyticsImporter.umd.js b/vue/dist/GoogleAnalyticsImporter.umd.js index 39a2e620d..a973668e3 100644 --- a/vue/dist/GoogleAnalyticsImporter.umd.js +++ b/vue/dist/GoogleAnalyticsImporter.umd.js @@ -1280,125 +1280,130 @@ 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=35df7e23 +// 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=61ec9d02 -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_1 = { +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_1 = { key: 0, class: "form-group row" }; -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_2 = { +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_2 = { class: "col s12 m6" }; -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_3 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("br", null, null, -1); +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_3 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("br", null, null, -1); -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_4 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_5 = { +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_4 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_5 = { class: "col s12 m6" }; -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_6 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_7 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_8 = ["textContent"]; -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_9 = { +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_6 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_7 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_8 = ["textContent"]; +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_9 = { class: "form-group row" }; -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_10 = ["action"]; -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_11 = { +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_10 = ["action"]; +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_11 = { key: 0, type: "hidden", name: "isNoDataPage", value: "1" }; -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_12 = ["value"]; -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_13 = ["disabled"]; +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_12 = ["value"]; +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_13 = ["disabled"]; -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_14 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_14 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { class: "icon-upload" }, null, -1); -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_15 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_15 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { class: "icon-upload" }, null, -1); -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_16 = { +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_16 = { key: 1, class: "system-success connected-message-successful" }; -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_17 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_17 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { class: "icon-ok" }, null, -1); -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_18 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_19 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_20 = ["action"]; -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_21 = ["value"]; -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_22 = ["disabled", "textContent"]; -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_23 = { +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_18 = { + key: 2 +}; +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_19 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_20 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_21 = ["action"]; +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_22 = ["value"]; +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_23 = ["disabled", "textContent"]; +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_24 = { key: 0, class: "system-success connected-message-successful" }; -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_24 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_25 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { class: "icon-ok" }, null, -1); -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_25 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_26 = ["textContent"]; -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_27 = ["textContent"]; -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_28 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_29 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_35df7e23_hoisted_30 = ["textContent"]; -function ConfigureConnectionvue_type_template_id_35df7e23_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_35df7e23_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ConfigureConnectionvue_type_template_id_35df7e23_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_35df7e23_hoisted_3, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_26 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_27 = ["textContent"]; +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_28 = ["textContent"]; +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_29 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_30 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_31 = ["textContent"]; +function ConfigureConnectionvue_type_template_id_61ec9d02_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_61ec9d02_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ConfigureConnectionvue_type_template_id_61ec9d02_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_61ec9d02_hoisted_3, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { innerHTML: _ctx.$sanitize(_ctx.setupGoogleAnalyticsImportFaq) - }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_hoisted_4)])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ConfigureConnectionvue_type_template_id_35df7e23_hoisted_5, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", { + }, null, 8, ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_4)])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_5, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", { class: "form-help", innerHTML: _ctx.$sanitize(_ctx.translate('GoogleAnalyticsImporter_ConfigureTheImporterHelpNewDate', '', '')) - }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_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", { + }, null, 8, ConfigureConnectionvue_type_template_id_61ec9d02_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_35df7e23_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_35df7e23_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_35df7e23_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", - action: _ctx.manualActionUrl, - method: "POST", - enctype: "multipart/form-data" - }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", { - type: "file", - id: "clientfile", - name: "clientfile", - accept: ".json", - onChange: _cache[0] || (_cache[0] = function () { - return _ctx.processFileChange && _ctx.processFileChange.apply(_ctx, arguments); - }), - 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_35df7e23_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_35df7e23_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(); + }, null, 8, ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_7)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDynamicComponent"])(_ctx.isNoDataPage ? 'li' : 'div'), null, { + default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () { + return [_ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", { + key: 0, + textContent: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_GAImportNoDataScreenStep02')) + }, null, 8, ConfigureConnectionvue_type_template_id_61ec9d02_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_61ec9d02_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", + action: _ctx.manualActionUrl, + method: "POST", + enctype: "multipart/form-data" + }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", { + type: "file", + id: "clientfile", + name: "clientfile", + accept: ".json", + onChange: _cache[0] || (_cache[0] = function () { + return _ctx.processFileChange && _ctx.processFileChange.apply(_ctx, arguments); + }), + 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_61ec9d02_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_61ec9d02_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_61ec9d02_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_61ec9d02_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_61ec9d02_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_61ec9d02_hoisted_16, [ConfigureConnectionvue_type_template_id_61ec9d02_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_61ec9d02_hoisted_10)], 2)])]; }), - 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_35df7e23_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_35df7e23_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_35df7e23_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_35df7e23_hoisted_16, [ConfigureConnectionvue_type_template_id_35df7e23_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_35df7e23_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, + _: 1 + })), _ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("li", ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_18, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { innerHTML: _ctx.$sanitize(_ctx.getAdvanceConnectStep03Text) - }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_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, + }, null, 8, ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_19), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", { class: "complete-note-warning", innerHTML: _ctx.$sanitize(_ctx.getOauthCompleteWarningMessage) - }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_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, + }, null, 8, ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_20), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("form", { target: "_blank", method: "post", action: _ctx.authorizeUrl @@ -1406,32 +1411,32 @@ function ConfigureConnectionvue_type_template_id_35df7e23_render(_ctx, _cache, $ type: "hidden", name: "auth_nonce", value: _ctx.forwardToAuthNonce - }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_hoisted_21), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("button", { + }, null, 8, ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_22), 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_35df7e23_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_35df7e23_hoisted_23, [ConfigureConnectionvue_type_template_id_35df7e23_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_35df7e23_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, + }, null, 8, ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_23), _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_61ec9d02_hoisted_24, [ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_25, 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_61ec9d02_hoisted_21)])) : 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: 3, innerHTML: _ctx.$sanitize(_ctx.getAdvanceConnectStep04Text) - }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_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, + }, null, 8, ConfigureConnectionvue_type_template_id_61ec9d02_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: 4, textContent: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_GAImportNoDataScreenStep05')) - }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_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, + }, null, 8, ConfigureConnectionvue_type_template_id_61ec9d02_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: 5, textContent: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_GAImportNoDataScreenStep06')) - }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_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, + }, null, 8, ConfigureConnectionvue_type_template_id_61ec9d02_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: 6, innerHTML: _ctx.$sanitize(_ctx.getAdvanceConnectStep07Text) - }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_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, + }, null, 8, ConfigureConnectionvue_type_template_id_61ec9d02_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: 7, innerHTML: _ctx.$sanitize(_ctx.getAdvanceConnectStep08Text) - }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_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, + }, null, 8, ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_30)) : 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_GAImportNoDataScreenStep09')) - }, null, 8, ConfigureConnectionvue_type_template_id_35df7e23_hoisted_30)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64); + }, null, 8, ConfigureConnectionvue_type_template_id_61ec9d02_hoisted_31)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64); } -// CONCATENATED MODULE: ./plugins/GoogleAnalyticsImporter/vue/src/Configure/ConfigureConnection.vue?vue&type=template&id=35df7e23 +// CONCATENATED MODULE: ./plugins/GoogleAnalyticsImporter/vue/src/Configure/ConfigureConnection.vue?vue&type=template&id=61ec9d02 // 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 @@ -1551,7 +1556,7 @@ function ConfigureConnectionvue_type_template_id_35df7e23_render(_ctx, _cache, $ -ConfigureConnectionvue_type_script_lang_ts.render = ConfigureConnectionvue_type_template_id_35df7e23_render +ConfigureConnectionvue_type_script_lang_ts.render = ConfigureConnectionvue_type_template_id_61ec9d02_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 @@ -1766,16 +1771,13 @@ function AdminPagevue_type_template_id_3ac4f3aa_render(_ctx, _cache, $props, $se } // CONCATENATED MODULE: ./plugins/GoogleAnalyticsImporter/vue/src/AdminPage/AdminPage.vue?vue&type=template&id=3ac4f3aa -// 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/AdminPage/CommonConnect.vue?vue&type=template&id=1f302a8a +// 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/AdminPage/CommonConnect.vue?vue&type=template&id=a5479d76 -var CommonConnectvue_type_template_id_1f302a8a_hoisted_1 = { - key: 1 -}; -function CommonConnectvue_type_template_id_1f302a8a_render(_ctx, _cache, $props, $setup, $data, $options) { +function CommonConnectvue_type_template_id_a5479d76_render(_ctx, _cache, $props, $setup, $data, $options) { var _component_ContentBlock = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ContentBlock"); return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.componentExtensions, function (refComponent, index) { - return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", { + return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], { key: index }, [!_ctx.isNoDataPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_ContentBlock, { key: 0, @@ -1807,7 +1809,8 @@ function CommonConnectvue_type_template_id_1f302a8a_render(_ctx, _cache, $props, }, 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"])) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", CommonConnectvue_type_template_id_1f302a8a_hoisted_1, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDynamicComponent"])(refComponent), { + }, 1032, ["content-title"])) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDynamicComponent"])(refComponent), { + key: 1, "manual-config-nonce": _ctx.configConnectProps.manualConfigNonce, "base-domain": _ctx.configConnectProps.baseDomain, "base-url": _ctx.configConnectProps.baseUrl, @@ -1829,10 +1832,10 @@ function CommonConnectvue_type_template_id_1f302a8a_render(_ctx, _cache, $props, "is-configured": _ctx.isConfigured, "strategy-to-use": _ctx.strategyToUse, "additional-help-text": _ctx.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"]))]))]); + }, 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"]))], 64); }), 128); } -// CONCATENATED MODULE: ./plugins/GoogleAnalyticsImporter/vue/src/AdminPage/CommonConnect.vue?vue&type=template&id=1f302a8a +// CONCATENATED MODULE: ./plugins/GoogleAnalyticsImporter/vue/src/AdminPage/CommonConnect.vue?vue&type=template&id=a5479d76 // 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/AdminPage/CommonConnect.vue?vue&type=script&lang=ts @@ -1874,7 +1877,7 @@ function CommonConnectvue_type_template_id_1f302a8a_render(_ctx, _cache, $props, -CommonConnectvue_type_script_lang_ts.render = CommonConnectvue_type_template_id_1f302a8a_render +CommonConnectvue_type_script_lang_ts.render = CommonConnectvue_type_template_id_a5479d76_render /* harmony default export */ var CommonConnect = (CommonConnectvue_type_script_lang_ts); // CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/GoogleAnalyticsImporter/vue/src/AdminPage/AdminPage.vue?vue&type=script&lang=ts diff --git a/vue/dist/GoogleAnalyticsImporter.umd.min.js b/vue/dist/GoogleAnalyticsImporter.umd.min.js index c269bd00e..aa818126b 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 M})),n.d(t,"ImportSelector",(function(){return P})),n.d(t,"ImportStatus",(function(){return We})),n.d(t,"ConfigureConnection",(function(){return St})),n.d(t,"ClientConfig",(function(){return Pt})),n.d(t,"AdminPage",(function(){return Zt})),n.d(t,"Connect",(function(){return Kt})),"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(),d=!(r.getTime()>p[1].getTime()||i.getTime()
    '.concat(u,"
    ");c(n).find(".card-content>div").append(g)}}}}));var s=n("8bbf"),m={name:"startDate"},p={name:"endDate"},d={name:"propertyId"},u={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",d,[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",u,[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:"streamIds"},k={name:"isMobileAppGA4"},G={name:"timezoneGA4"},_={name:"extraCustomDimensionsGA4"},v={name:"forceIgnoreOutOfCustomDimSlotErrorGA4"},x={name:"isVerboseLoggingEnabledGA4"},B=["disabled"];function T(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:"multituple",name:"streamIds",modelValue:e.streamIds,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.streamIds=t}),title:e.translate("GoogleAnalyticsImporter_StreamIdFilter"),"inline-help":e.streamIdsFilterHelp,"ui-control-attributes":e.streamIdsField},null,8,["modelValue","title","inline-help","ui-control-attributes"])]),Object(s["createElementVNode"])("div",k,[Object(s["createVNode"])(l,{uicontrol:"checkbox",name:"isMobileAppGA4",modelValue:e.isMobileAppGA4,"onUpdate:modelValue":t[4]||(t[4]=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",G,[Object(s["createVNode"])(l,{uicontrol:"text",name:"timezoneGA4",modelValue:e.timezoneGA4,"onUpdate:modelValue":t[5]||(t[5]=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",_,[Object(s["createVNode"])(l,{uicontrol:"multituple",name:"extraCustomDimensionsGA4",modelValue:e.extraCustomDimensionsGA4,"onUpdate:modelValue":t[6]||(t[6]=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",v,[Object(s["createVNode"])(l,{uicontrol:"checkbox",name:"forceIgnoreOutOfCustomDimSlotErrorGA4",modelValue:e.ignoreCustomDimensionSlotCheckGA4,"onUpdate:modelValue":t[7]||(t[7]=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",x,[Object(s["createVNode"])(l,{uicontrol:"checkbox",name:"isVerboseLoggingEnabledGA4",modelValue:e.isVerboseLoggingEnabledGA4,"onUpdate:modelValue":t[8]||(t[8]=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[9]||(t[9]=function(t){return e.startImportGA4()}),disabled:e.isStartingImport},Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Start")),9,B)])}var w=Object(s["defineComponent"])({props:{startImportNonce:{type:String,required:!0},maxEndDateDesc:String,extraCustomDimensionsField:{type:Object,required:!0},streamIdsField:{type:Object,required:!0}},components:{Field:C["Field"]},data:function(){return{isStartingImport:!1,extraCustomDimensionsGA4:[],streamIds:[],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,streamIds:this.streamIds,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",''),"")},streamIdsFilterHelp:function(){var e="https://matomo.org/faq/what-is-data-stream-in-google-analytics-4/";return Object(a["translate"])("GoogleAnalyticsImporter_StreamIdFilterHelpText",''),"","

    ","")},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")}}});w.render=T;var M=w;function U(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 H=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:""}}});H.render=U;var P=H,F={ref:"root"},L={class:"entityTable importStatusesTable"},z={class:"modal",id:"openScheduleReimportModal"},R={class:"modal-content"},q={class:"modal-footer"},Y={class:"modal",id:"editImportEndDate"},$={class:"modal-content"},J={class:"modal-footer"};function W(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",F,[Object(s["createElementVNode"])("table",L,[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",z,[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",q,[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",Y,[Object(s["createElementVNode"])("div",$,[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",J,[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 X=["data-idsite"],K={class:"sitename"},Q=["href"],Z={key:1,style:{"text-transform":"uppercase"}},ee=Object(s["createElementVNode"])("br",null,null,-1),te=["innerHTML"],ne={class:"status"},oe={key:0},re=["title"],ae=Object(s["createElementVNode"])("br",null,null,-1),le={key:0},ie={key:1},ce=["title"],se=Object(s["createElementVNode"])("br",null,null,-1),me={key:0},pe={key:2},de=["title"],ue={key:3},ge=["title"],be={key:4},Oe=Object(s["createElementVNode"])("br",null,null,-1),je=["innerHTML"],fe={key:5},he=["title"],ye=Object(s["createElementVNode"])("br",null,null,-1),Ie={class:"last-date-imported"},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=Object(s["createElementVNode"])("br",null,null,-1),Ee={key:0},Se={class:"scheduled-reimports"},ke={key:0},Ge={key:1},_e={class:"import-start-finish-times"},ve=Object(s["createElementVNode"])("br",null,null,-1),xe=Object(s["createElementVNode"])("br",null,null,-1),Be={key:0},Te={key:1},we={key:0},Me={key:1},Ue={key:2},He={key:3},Pe={class:"actions"},Fe=["title"],Le=["title"];function ze(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",K,[e.status.site?(Object(s["openBlock"])(),Object(s["createElementBlock"])("a",{key:0,target:"_blank",href:e.siteUrl},Object(s["toDisplayString"])(e.siteName),9,Q)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Z,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_SiteDeleted")),1)),ee,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,te),Object(s["createElementVNode"])("td",ne,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.status.status)+" ",1),"rate_limited"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",oe,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_RateLimitHelp")},null,8,re),ae,e.status.days_finished_since_rate_limit?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",le,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",ie,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.status.error},null,8,ce),se,e.status.days_finished_since_rate_limit?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",me,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",pe,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_RateLimitHourlyHelp")},null,8,de)])):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,ge)])):"errored"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",be,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ErrorMessage"))+": "+Object(s["toDisplayString"])(e.status.error||"no message")+" ",1),Oe,Object(s["createElementVNode"])("span",{innerHTML:e.$sanitize(e.errorMessageBugReportRequest)},null,8,je)])):"killed"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",fe,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_KilledStatusHelp")},null,8,he),ye,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",Ie,[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),Ce,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_LastDayArchived"))+": "+Object(s["toDisplayString"])(e.status.last_day_archived||e.noneText),1),De,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImportStartDate"))+": "+Object(s["toDisplayString"])(e.status.import_range_start||e.websiteCreationTime)+" ",1),Ae,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImportEndDate"))+": "+Object(s["toDisplayString"])(e.status.import_range_end||e.noneText)+" ",1),Ve,Ne]),"finished"!==e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",Ee,[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",Se,[null!==(l=e.status.reimport_ranges)&&void 0!==l&&l.length?(Object(s["openBlock"])(),Object(s["createElementBlock"])("ul",ke,[(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",Ge,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_None")),1))]),Object(s["createElementVNode"])("td",_e,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImportStartTime"))+": "+Object(s["toDisplayString"])(e.status.import_start_time||e.noneText),1),ve,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_LastResumeTime"))+": "+Object(s["toDisplayString"])(e.status.last_job_start_time||e.noneText),1),xe,"finished"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Be,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",Te,[e.thisJobShouldFinishToday?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",we,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ThisJobShouldFinishToday")),1)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Me,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",Ue,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_JobWillRunUntilManuallyCancelled")),1)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",He,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,Fe),-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,Le)):Object(s["createCommentVNode"])("",!0)])],8,X)}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=ze;var qe=Re,Ye=window,$e=Ye.$,Je=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:qe},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,$e("#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,$e("#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=$e(this).attr("title")||"";return window.vueSanitize(e.replace(/\n/g,"
    "))}}}});Je.render=W;var We=Je,Xe={key:0,class:"form-group row"},Ke={class:"col s12 m6"},Qe=Object(s["createElementVNode"])("br",null,null,-1),Ze=["innerHTML"],et={class:"col s12 m6"},tt=["innerHTML"],nt=["innerHTML"],ot=["textContent"],rt={class:"form-group row"},at=["action"],lt={key:0,type:"hidden",name:"isNoDataPage",value:"1"},it=["value"],ct=["disabled"],st=Object(s["createElementVNode"])("span",{class:"icon-upload"},null,-1),mt=Object(s["createElementVNode"])("span",{class:"icon-upload"},null,-1),pt={key:1,class:"system-success connected-message-successful"},dt=Object(s["createElementVNode"])("span",{class:"icon-ok"},null,-1),ut=["innerHTML"],gt=["innerHTML"],bt=["action"],Ot=["value"],jt=["disabled","textContent"],ft={key:0,class:"system-success connected-message-successful"},ht=Object(s["createElementVNode"])("span",{class:"icon-ok"},null,-1),yt=["innerHTML"],It=["textContent"],Ct=["textContent"],Dt=["innerHTML"],At=["innerHTML"],Vt=["textContent"];function Nt(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",Xe,[Object(s["createElementVNode"])("div",Ke,[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),Qe,Object(s["createElementVNode"])("span",{innerHTML:e.$sanitize(e.setupGoogleAnalyticsImportFaq)},null,8,Ze)])]),Object(s["createElementVNode"])("div",et,[Object(s["createElementVNode"])("div",{class:"form-help",innerHTML:e.$sanitize(e.translate("GoogleAnalyticsImporter_ConfigureTheImporterHelpNewDate","",""))},null,8,tt)])])),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:1,innerHTML:e.$sanitize(e.getAdvanceConnectStep01Text)},null,8,nt)):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,ot)):Object(s["createCommentVNode"])("",!0),Object(s["createElementVNode"])("div",rt,[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",lt)):Object(s["createCommentVNode"])("",!0),Object(s["createElementVNode"])("input",{type:"hidden",name:"config_nonce",value:e.manualConfigNonce},null,8,it),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,[st,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("General_Upload")),1)],512),[[s["vShow"],!e.isUploadButtonDisabled]]),Object(s["withDirectives"])(Object(s["createElementVNode"])("span",null,[mt,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Uploading")),1)],512),[[s["vShow"],e.isUploadButtonDisabled]])],8,ct),e.isNoDataPage&&e.hasClientConfiguration?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",pt,[dt,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_UploadSuccessful")),1)])):Object(s["createCommentVNode"])("",!0)],8,at)],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,class:"complete-note-warning",innerHTML:e.$sanitize(e.getOauthCompleteWarningMessage)},null,8,gt)):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,Ot),Object(s["createElementVNode"])("button",{disabled:!1===e.hasClientConfiguration,textContent:Object(s["toDisplayString"])(e.getAuthorizeText),type:"submit",class:"btn btn-forward-to-Oauth"},null,8,jt),e.isNoDataPage&&e.hasClientConfiguration&&e.isConfigured?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",ft,[ht,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_AccountsConnectedSuccessfully")),1)])):Object(s["createCommentVNode"])("",!0)],8,bt)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:6,innerHTML:e.$sanitize(e.getAdvanceConnectStep04Text)},null,8,yt)):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,It)):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,Ct)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:9,innerHTML:e.$sanitize(e.getAdvanceConnectStep07Text)},null,8,Dt)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:10,innerHTML:e.$sanitize(e.getAdvanceConnectStep08Text)},null,8,At)):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,Vt)):Object(s["createCommentVNode"])("",!0)],64)}var Et=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}});Et.render=Nt;var St=Et,kt=["action"],Gt=["value"],_t={key:0},vt={type:"submit",class:"btn"},xt={key:1},Bt={type:"submit",class:"btn"},Tt=["action"],wt=["value"],Mt={type:"submit",class:"btn"};function Ut(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,Gt),e.isConfigured?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",_t,[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImporterIsConfigured")),1),Object(s["createElementVNode"])("button",vt,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ReAuthorize")),1)])):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",xt,[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ClientConfigSuccessfullyUpdated")),1),Object(s["createElementVNode"])("button",Bt,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Authorize")),1)]))],8,kt)]})),_: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,wt),Object(s["createElementVNode"])("button",Mt,Object(s["toDisplayString"])(e.translate("General_Remove")),1)],8,Tt)]})),_:1},8,["content-title"])):Object(s["createCommentVNode"])("",!0)])}var Ht=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"})))}}});Ht.render=Ut;var Pt=Ht,Ft={class:"hide-import-main-div ga-import-main-div ua-main-div"},Lt={class:"hide-import-main-div ga-import-main-div ga4-main-div"},zt={key:0},Rt={key:3,class:"ui-confirm",id:"confirmCancelJob"},qt=["value"],Yt=["value"];function $t(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"),d=Object(s["resolveComponent"])("ContentBlock"),u=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"])(d,{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",Ft,[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",Lt,[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,"stream-ids-field":e.streamIdsFieldGa4},null,8,["start-import-nonce","max-end-date-desc","extra-custom-dimensions-field","stream-ids-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"])(d,{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",zt,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ThereAreNoImportJobs")),1)),null!==(n=e.statuses)&&void 0!==n&&n.length?(Object(s["openBlock"])(),Object(s["createBlock"])(u,{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,qt),Object(s["createElementVNode"])("input",{role:"no",type:"button",value:e.translate("General_No")},null,8,Yt)])):Object(s["createCommentVNode"])("",!0)])}var Jt={key:1};function Wt(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",Jt,[(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 Xt=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}}});Xt.render=Wt;var Kt=Xt,Qt=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},streamIdsFieldGa4:{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:Kt,ImportSchedulerGA4:M,ContentBlock:a["ContentBlock"],ClientConfig:Pt,ImportScheduler:A,ImportStatus:We,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}}});Qt.render=$t;var Zt=Qt; +(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 M})),n.d(t,"ImportSelector",(function(){return P})),n.d(t,"ImportStatus",(function(){return We})),n.d(t,"ConfigureConnection",(function(){return Gt})),n.d(t,"ClientConfig",(function(){return Ft})),n.d(t,"AdminPage",(function(){return Zt})),n.d(t,"Connect",(function(){return Kt})),"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:"streamIds"},G={name:"isMobileAppGA4"},k={name:"timezoneGA4"},_={name:"extraCustomDimensionsGA4"},v={name:"forceIgnoreOutOfCustomDimSlotErrorGA4"},x={name:"isVerboseLoggingEnabledGA4"},B=["disabled"];function T(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:"multituple",name:"streamIds",modelValue:e.streamIds,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.streamIds=t}),title:e.translate("GoogleAnalyticsImporter_StreamIdFilter"),"inline-help":e.streamIdsFilterHelp,"ui-control-attributes":e.streamIdsField},null,8,["modelValue","title","inline-help","ui-control-attributes"])]),Object(s["createElementVNode"])("div",G,[Object(s["createVNode"])(l,{uicontrol:"checkbox",name:"isMobileAppGA4",modelValue:e.isMobileAppGA4,"onUpdate:modelValue":t[4]||(t[4]=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[5]||(t[5]=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",_,[Object(s["createVNode"])(l,{uicontrol:"multituple",name:"extraCustomDimensionsGA4",modelValue:e.extraCustomDimensionsGA4,"onUpdate:modelValue":t[6]||(t[6]=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",v,[Object(s["createVNode"])(l,{uicontrol:"checkbox",name:"forceIgnoreOutOfCustomDimSlotErrorGA4",modelValue:e.ignoreCustomDimensionSlotCheckGA4,"onUpdate:modelValue":t[7]||(t[7]=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",x,[Object(s["createVNode"])(l,{uicontrol:"checkbox",name:"isVerboseLoggingEnabledGA4",modelValue:e.isVerboseLoggingEnabledGA4,"onUpdate:modelValue":t[8]||(t[8]=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[9]||(t[9]=function(t){return e.startImportGA4()}),disabled:e.isStartingImport},Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Start")),9,B)])}var w=Object(s["defineComponent"])({props:{startImportNonce:{type:String,required:!0},maxEndDateDesc:String,extraCustomDimensionsField:{type:Object,required:!0},streamIdsField:{type:Object,required:!0}},components:{Field:C["Field"]},data:function(){return{isStartingImport:!1,extraCustomDimensionsGA4:[],streamIds:[],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,streamIds:this.streamIds,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",''),"")},streamIdsFilterHelp:function(){var e="https://matomo.org/faq/what-is-data-stream-in-google-analytics-4/";return Object(a["translate"])("GoogleAnalyticsImporter_StreamIdFilterHelpText",''),"","

    ","")},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")}}});w.render=T;var M=w;function U(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 H=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:""}}});H.render=U;var P=H,F={ref:"root"},L={class:"entityTable importStatusesTable"},z={class:"modal",id:"openScheduleReimportModal"},R={class:"modal-content"},q={class:"modal-footer"},Y={class:"modal",id:"editImportEndDate"},$={class:"modal-content"},J={class:"modal-footer"};function W(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",F,[Object(s["createElementVNode"])("table",L,[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",z,[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",q,[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",Y,[Object(s["createElementVNode"])("div",$,[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",J,[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 X=["data-idsite"],K={class:"sitename"},Q=["href"],Z={key:1,style:{"text-transform":"uppercase"}},ee=Object(s["createElementVNode"])("br",null,null,-1),te=["innerHTML"],ne={class:"status"},oe={key:0},re=["title"],ae=Object(s["createElementVNode"])("br",null,null,-1),le={key:0},ie={key:1},ce=["title"],se=Object(s["createElementVNode"])("br",null,null,-1),me={key:0},pe={key:2},ue=["title"],de={key:3},ge=["title"],be={key:4},Oe=Object(s["createElementVNode"])("br",null,null,-1),je=["innerHTML"],fe={key:5},he=["title"],ye=Object(s["createElementVNode"])("br",null,null,-1),Ie={class:"last-date-imported"},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=Object(s["createElementVNode"])("br",null,null,-1),Ee={key:0},Se={class:"scheduled-reimports"},Ge={key:0},ke={key:1},_e={class:"import-start-finish-times"},ve=Object(s["createElementVNode"])("br",null,null,-1),xe=Object(s["createElementVNode"])("br",null,null,-1),Be={key:0},Te={key:1},we={key:0},Me={key:1},Ue={key:2},He={key:3},Pe={class:"actions"},Fe=["title"],Le=["title"];function ze(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",K,[e.status.site?(Object(s["openBlock"])(),Object(s["createElementBlock"])("a",{key:0,target:"_blank",href:e.siteUrl},Object(s["toDisplayString"])(e.siteName),9,Q)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Z,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_SiteDeleted")),1)),ee,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,te),Object(s["createElementVNode"])("td",ne,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.status.status)+" ",1),"rate_limited"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",oe,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_RateLimitHelp")},null,8,re),ae,e.status.days_finished_since_rate_limit?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",le,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",ie,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.status.error},null,8,ce),se,e.status.days_finished_since_rate_limit?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",me,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",pe,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_RateLimitHourlyHelp")},null,8,ue)])):Object(s["createCommentVNode"])("",!0),"future_date_import_pending"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",de,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_FutureDateHelp",e.status.future_resume_date)},null,8,ge)])):"errored"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",be,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ErrorMessage"))+": "+Object(s["toDisplayString"])(e.status.error||"no message")+" ",1),Oe,Object(s["createElementVNode"])("span",{innerHTML:e.$sanitize(e.errorMessageBugReportRequest)},null,8,je)])):"killed"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",fe,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_KilledStatusHelp")},null,8,he),ye,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",Ie,[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),Ce,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_LastDayArchived"))+": "+Object(s["toDisplayString"])(e.status.last_day_archived||e.noneText),1),De,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImportStartDate"))+": "+Object(s["toDisplayString"])(e.status.import_range_start||e.websiteCreationTime)+" ",1),Ae,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImportEndDate"))+": "+Object(s["toDisplayString"])(e.status.import_range_end||e.noneText)+" ",1),Ve,Ne]),"finished"!==e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",Ee,[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",Se,[null!==(l=e.status.reimport_ranges)&&void 0!==l&&l.length?(Object(s["openBlock"])(),Object(s["createElementBlock"])("ul",Ge,[(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",_e,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImportStartTime"))+": "+Object(s["toDisplayString"])(e.status.import_start_time||e.noneText),1),ve,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_LastResumeTime"))+": "+Object(s["toDisplayString"])(e.status.last_job_start_time||e.noneText),1),xe,"finished"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Be,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",Te,[e.thisJobShouldFinishToday?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",we,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ThisJobShouldFinishToday")),1)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Me,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",Ue,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_JobWillRunUntilManuallyCancelled")),1)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",He,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,Fe),-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,Le)):Object(s["createCommentVNode"])("",!0)])],8,X)}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=ze;var qe=Re,Ye=window,$e=Ye.$,Je=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:qe},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,$e("#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,$e("#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=$e(this).attr("title")||"";return window.vueSanitize(e.replace(/\n/g,"
    "))}}}});Je.render=W;var We=Je,Xe={key:0,class:"form-group row"},Ke={class:"col s12 m6"},Qe=Object(s["createElementVNode"])("br",null,null,-1),Ze=["innerHTML"],et={class:"col s12 m6"},tt=["innerHTML"],nt=["innerHTML"],ot=["textContent"],rt={class:"form-group row"},at=["action"],lt={key:0,type:"hidden",name:"isNoDataPage",value:"1"},it=["value"],ct=["disabled"],st=Object(s["createElementVNode"])("span",{class:"icon-upload"},null,-1),mt=Object(s["createElementVNode"])("span",{class:"icon-upload"},null,-1),pt={key:1,class:"system-success connected-message-successful"},ut=Object(s["createElementVNode"])("span",{class:"icon-ok"},null,-1),dt={key:2},gt=["innerHTML"],bt=["innerHTML"],Ot=["action"],jt=["value"],ft=["disabled","textContent"],ht={key:0,class:"system-success connected-message-successful"},yt=Object(s["createElementVNode"])("span",{class:"icon-ok"},null,-1),It=["innerHTML"],Ct=["textContent"],Dt=["textContent"],At=["innerHTML"],Vt=["innerHTML"],Nt=["textContent"];function Et(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",Xe,[Object(s["createElementVNode"])("div",Ke,[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),Qe,Object(s["createElementVNode"])("span",{innerHTML:e.$sanitize(e.setupGoogleAnalyticsImportFaq)},null,8,Ze)])]),Object(s["createElementVNode"])("div",et,[Object(s["createElementVNode"])("div",{class:"form-help",innerHTML:e.$sanitize(e.translate("GoogleAnalyticsImporter_ConfigureTheImporterHelpNewDate","",""))},null,8,tt)])])),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:1,innerHTML:e.$sanitize(e.getAdvanceConnectStep01Text)},null,8,nt)):Object(s["createCommentVNode"])("",!0),(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.isNoDataPage?"li":"div"),null,{default:Object(s["withCtx"])((function(){return[e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:0,textContent:Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep02"))},null,8,ot)):Object(s["createCommentVNode"])("",!0),Object(s["createElementVNode"])("div",rt,[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",lt)):Object(s["createCommentVNode"])("",!0),Object(s["createElementVNode"])("input",{type:"hidden",name:"config_nonce",value:e.manualConfigNonce},null,8,it),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,[st,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("General_Upload")),1)],512),[[s["vShow"],!e.isUploadButtonDisabled]]),Object(s["withDirectives"])(Object(s["createElementVNode"])("span",null,[mt,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Uploading")),1)],512),[[s["vShow"],e.isUploadButtonDisabled]])],8,ct),e.isNoDataPage&&e.hasClientConfiguration?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",pt,[ut,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_UploadSuccessful")),1)])):Object(s["createCommentVNode"])("",!0)],8,at)],2)])]})),_:1})),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",dt,[Object(s["createElementVNode"])("span",{innerHTML:e.$sanitize(e.getAdvanceConnectStep03Text)},null,8,gt),Object(s["createElementVNode"])("div",{class:"complete-note-warning",innerHTML:e.$sanitize(e.getOauthCompleteWarningMessage)},null,8,bt),Object(s["createElementVNode"])("form",{target:"_blank",method:"post",action:e.authorizeUrl},[Object(s["createElementVNode"])("input",{type:"hidden",name:"auth_nonce",value:e.forwardToAuthNonce},null,8,jt),Object(s["createElementVNode"])("button",{disabled:!1===e.hasClientConfiguration,textContent:Object(s["toDisplayString"])(e.getAuthorizeText),type:"submit",class:"btn btn-forward-to-Oauth"},null,8,ft),e.isNoDataPage&&e.hasClientConfiguration&&e.isConfigured?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",ht,[yt,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_AccountsConnectedSuccessfully")),1)])):Object(s["createCommentVNode"])("",!0)],8,Ot)])):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:3,innerHTML:e.$sanitize(e.getAdvanceConnectStep04Text)},null,8,It)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:4,textContent:Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep05"))},null,8,Ct)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:5,textContent:Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep06"))},null,8,Dt)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:6,innerHTML:e.$sanitize(e.getAdvanceConnectStep07Text)},null,8,At)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:7,innerHTML:e.$sanitize(e.getAdvanceConnectStep08Text)},null,8,Vt)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:8,textContent:Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep09"))},null,8,Nt)):Object(s["createCommentVNode"])("",!0)],64)}var St=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}});St.render=Et;var Gt=St,kt=["action"],_t=["value"],vt={key:0},xt={type:"submit",class:"btn"},Bt={key:1},Tt={type:"submit",class:"btn"},wt=["action"],Mt=["value"],Ut={type:"submit",class:"btn"};function Ht(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,_t),e.isConfigured?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",vt,[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImporterIsConfigured")),1),Object(s["createElementVNode"])("button",xt,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ReAuthorize")),1)])):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Bt,[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ClientConfigSuccessfullyUpdated")),1),Object(s["createElementVNode"])("button",Tt,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Authorize")),1)]))],8,kt)]})),_: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,Mt),Object(s["createElementVNode"])("button",Ut,Object(s["toDisplayString"])(e.translate("General_Remove")),1)],8,wt)]})),_:1},8,["content-title"])):Object(s["createCommentVNode"])("",!0)])}var Pt=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"})))}}});Pt.render=Ht;var Ft=Pt,Lt={class:"hide-import-main-div ga-import-main-div ua-main-div"},zt={class:"hide-import-main-div ga-import-main-div ga4-main-div"},Rt={key:0},qt={key:3,class:"ui-confirm",id:"confirmCancelJob"},Yt=["value"],$t=["value"];function Jt(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",Lt,[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",zt,[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,"stream-ids-field":e.streamIdsFieldGa4},null,8,["start-import-nonce","max-end-date-desc","extra-custom-dimensions-field","stream-ids-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",Rt,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",qt,[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,Yt),Object(s["createElementVNode"])("input",{role:"no",type:"button",value:e.translate("General_No")},null,8,$t)])):Object(s["createCommentVNode"])("",!0)])}function Wt(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"])(s["Fragment"],{key:n},[e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(t),{key:1,"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"]))],64)})),128)}var Xt=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}}});Xt.render=Wt;var Kt=Xt,Qt=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},streamIdsFieldGa4:{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:Kt,ImportSchedulerGA4:M,ContentBlock:a["ContentBlock"],ClientConfig:Ft,ImportScheduler:A,ImportStatus:We,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}}});Qt.render=Jt;var Zt=Qt; /*! * Matomo - free/libre analytics platform * diff --git a/vue/src/AdminPage/CommonConnect.vue b/vue/src/AdminPage/CommonConnect.vue index 0329c6c65..1b75f9ede 100644 --- a/vue/src/AdminPage/CommonConnect.vue +++ b/vue/src/AdminPage/CommonConnect.vue @@ -1,5 +1,5 @@