diff --git a/Commands/ImportReports.php b/Commands/ImportReports.php index 06b353df2..b98911b57 100644 --- a/Commands/ImportReports.php +++ b/Commands/ImportReports.php @@ -53,6 +53,8 @@ protected function configure() */ protected function doExecute() : int { + $this->getOutput()->writeln("GA3 Import disabled"); + return self::FAILURE; try { return $this->executeImpl(); } catch (ImportWasCancelledException $ex) { diff --git a/Controller.php b/Controller.php index 5a385fe93..92abbf134 100644 --- a/Controller.php +++ b/Controller.php @@ -247,68 +247,7 @@ public function changeImportEndDate() Notification\Manager::notify('GoogleAnalyticsImporter_changeImportEndDate_failure', $notification); } } - public function startImport() - { - Piwik::checkUserHasSuperUserAccess(); - $this->checkTokenInUrl(); - Json::sendHeaderJSON(); - try { - Nonce::checkNonce('GoogleAnalyticsImporter.startImportNonce', Common::getRequestVar('nonce')); - $startDate = trim(Common::getRequestVar('startDate', '')); - if (!empty($startDate)) { - $startDate = Date::factory($startDate . ' 00:00:00'); - } - $endDate = trim(Common::getRequestVar('endDate', '')); - $inputEndDate = StaticContainer::get(EndDate::class); - $endDate = $inputEndDate->limitMaxEndDateIfNeeded($endDate); - if (!empty($endDate)) { - $endDate = Date::factory($endDate)->getStartOfDay(); - } - // set credentials in google client - $googleAuth = StaticContainer::get(Authorization::class); - $googleAuth->getConfiguredClient(); - /** @var Importer $importer */ - $importer = StaticContainer::get(\Piwik\Plugins\GoogleAnalyticsImporter\Importer::class); - $propertyId = trim(Common::getRequestVar('propertyId')); - $viewId = trim(Common::getRequestVar('viewId')); - $accountId = trim(Common::getRequestVar('accountId', \false)); - $account = $accountId ?: ImportReports::guessAccountFromProperty($propertyId); - $isMobileApp = Common::getRequestVar('isMobileApp', 0, 'int') == 1; - $timezone = trim(Common::getRequestVar('timezone', '', 'string')); - $extraCustomDimensions = Common::getRequestVar('extraCustomDimensions', [], $type = 'array'); - $isVerboseLoggingEnabled = Common::getRequestVar('isVerboseLoggingEnabled', 0, $type = 'int') == 1; - $forceCustomDimensionSlotCheck = Common::getRequestVar('forceCustomDimensionSlotCheck', 1, $type = 'int') == 1; - $idSite = $importer->makeSite($account, $propertyId, $viewId, $timezone, $isMobileApp ? Type::ID : \Piwik\Plugins\WebsiteMeasurable\Type::ID, $extraCustomDimensions, $forceCustomDimensionSlotCheck); - try { - if (empty($idSite)) { - throw new \Exception("Unable to import site entity."); - // sanity check - } - /** @var ImportStatus $importStatus */ - $importStatus = StaticContainer::get(\Piwik\Plugins\GoogleAnalyticsImporter\ImportStatus::class); - if (!empty($startDate) || !empty($endDate)) { - // we set the last imported date to one day before the start date - $importStatus->setImportDateRange($idSite, $startDate ?: null, $endDate ?: null); - } - if ($isVerboseLoggingEnabled) { - $importStatus->setIsVerboseLoggingEnabled($idSite, $isVerboseLoggingEnabled); - } - // start import now since the scheduled task may not run until tomorrow - \Piwik\Plugins\GoogleAnalyticsImporter\Tasks::startImport($importStatus->getImportStatus($idSite)); - } catch (\Exception $ex) { - $importStatus->erroredImport($idSite, $ex->getMessage()); - throw $ex; - } - echo json_encode(['result' => 'ok']); - } catch (\Exception $ex) { - $this->logException($ex, __FUNCTION__); - $notification = new Notification($this->getNotificationExceptionText($ex)); - $notification->type = Notification::TYPE_TRANSIENT; - $notification->context = Notification::CONTEXT_ERROR; - $notification->title = Piwik::translate('General_Error'); - Notification\Manager::notify('GoogleAnalyticsImporter_startImport_failure', $notification); - } - } + public function startImportGA4() { Piwik::checkUserHasSuperUserAccess(); @@ -393,8 +332,6 @@ public function resumeImport() } if ($isGA4) { \Piwik\Plugins\GoogleAnalyticsImporter\Tasks::startImportGA4($status); - } else { - \Piwik\Plugins\GoogleAnalyticsImporter\Tasks::startImport($status); } echo json_encode(['result' => 'ok']); } catch (\Exception $ex) { @@ -437,8 +374,6 @@ public function scheduleReImport() // start import now since the scheduled task may not run until tomorrow if ($isGA4) { \Piwik\Plugins\GoogleAnalyticsImporter\Tasks::startImportGA4($importStatus->getImportStatus($idSite)); - } else { - \Piwik\Plugins\GoogleAnalyticsImporter\Tasks::startImport($importStatus->getImportStatus($idSite)); } echo json_encode(['result' => 'ok']); } catch (\Exception $ex) { @@ -492,7 +427,7 @@ public function displayConfigureImportNotification() } if (empty($status)) { $siteContentDetector = new \Piwik\SiteContentDetector(); - $siteContentDetector->detectContent([GoogleAnalytics3::getId(), GoogleAnalytics4::getId()], $currentIdSite); + $siteContentDetector->detectContent([GoogleAnalytics4::getId()], $currentIdSite); if ($siteContentDetector->wasDetected(GoogleAnalytics3::getId()) || $siteContentDetector->wasDetected(GoogleAnalytics4::getId())) { $showNotification = \true; $settingsUrl = SettingsPiwik::getPiwikUrl() . 'index.php?' . Url::getQueryStringFromParameters(['idSite' => $currentIdSite, 'module' => 'GoogleAnalyticsImporter', 'action' => 'index']); diff --git a/GoogleAnalyticsImporter.php b/GoogleAnalyticsImporter.php index 6540e2a9b..505b22f52 100644 --- a/GoogleAnalyticsImporter.php +++ b/GoogleAnalyticsImporter.php @@ -223,7 +223,7 @@ public function getClientSideTranslationKeys(&$translationKeys) $translationKeys[] = 'GoogleAnalyticsImporter_GAImportNoDataScreenStep03'; $translationKeys[] = 'GoogleAnalyticsImporter_GAImportNoDataScreenStep04'; $translationKeys[] = 'GoogleAnalyticsImporter_GAImportNoDataScreenStep05'; - $translationKeys[] = 'GoogleAnalyticsImporter_GAImportNoDataScreenStep06'; + $translationKeys[] = 'GoogleAnalyticsImporter_GAImportNoDataScreenStep06GA4'; $translationKeys[] = 'GoogleAnalyticsImporter_GAImportNoDataScreenStep07'; $translationKeys[] = 'GoogleAnalyticsImporter_GAImportNoDataScreenStep07Note'; $translationKeys[] = 'GoogleAnalyticsImporter_GAImportNoDataScreenStep08'; diff --git a/SiteContentDetection/GoogleAnalyticsImporter.php b/SiteContentDetection/GoogleAnalyticsImporter.php index f9122d659..bf77cbda2 100644 --- a/SiteContentDetection/GoogleAnalyticsImporter.php +++ b/SiteContentDetection/GoogleAnalyticsImporter.php @@ -65,7 +65,7 @@ public function renderInstructionsTab(SiteContentDetector $detector) : string $view->auth_nonce = Nonce::getNonce('gaimport.auth', 1200); $view->isConnectAccountsActivated = $isConnectAccountsPluginActivated; $view->strategy = $isConnectAccountsPluginActivated && GoogleConnect::isStrategyActive() ? GoogleConnect::getStrategyName() : 'CUSTOM'; - $view->isGA3 = $detector->wasDetected(GoogleAnalytics3::getId()); + $view->isGA3 = false; $view->configureConnectionProps = \Piwik\Plugins\GoogleAnalyticsImporter\GoogleAnalyticsImporter::getConfigureConnectProps($nonce); $view->extensions = Controller::getComponentExtensions(\true); $view->hasClientConfiguration = $authorization->hasClientConfiguration(); diff --git a/TESTING.md b/TESTING.md index 53ccd4834..32758c323 100644 --- a/TESTING.md +++ b/TESTING.md @@ -1,4 +1,4 @@ -## Testing +## Testing (Deprecated) This document outlines how to run the automated tests for the Google Analytics Importer plugin - GA3(Universal Analytics). diff --git a/Tasks.php b/Tasks.php index 622ab55be..b2fc555b7 100644 --- a/Tasks.php +++ b/Tasks.php @@ -58,8 +58,6 @@ public function resumeScheduledImports() } if (!empty($status['isGA4'])) { self::startImportGA4($status); - } else { - self::startImport($status); } } $logger->info('Done scheduling imports.'); @@ -74,44 +72,6 @@ public function archiveImportedReports() } $logger->info('Done running archive commands.'); } - public static function startImport($status) - { - if (\Piwik\Plugins\GoogleAnalyticsImporter\ImportStatus::isImportRunning($status)) { - return; - } - $logToSingleFile = StaticContainer::get('GoogleAnalyticsImporter.logToSingleFile'); - $idSite = $status['idSite']; - $isVerboseLoggingEnabled = !empty($status['is_verbose_logging_enabled']); - $hostname = SettingsPiwik::getPiwikInstanceId(); - $importLogFile = self::getImportLogFile($idSite, $hostname, $logToSingleFile); - if (!is_writable($importLogFile) && !is_writable(dirname($importLogFile))) { - $importLogFile = '/dev/null'; - } - $cliPhp = new CliPhp(); - $phpBinary = $cliPhp->findPhpBinary() ?: 'php'; - $pathToConsole = '/console'; - if (defined('PIWIK_TEST_MODE')) { - $pathToConsole = '/tests/PHPUnit/proxy/console'; - } - $nohup = self::getNohupCommandIfPresent(); - $command = "{$nohup} {$phpBinary} " . PIWIK_INCLUDE_PATH . $pathToConsole . ' '; - if (!empty($hostname)) { - $command .= '--matomo-domain=' . escapeshellarg($hostname) . ' '; - } - $command .= 'googleanalyticsimporter:import-reports --idsite=' . (int) $idSite; - if ($isVerboseLoggingEnabled) { - $command .= ' -vvv'; - } - if ($logToSingleFile || !$isVerboseLoggingEnabled) { - $command .= ' >> '; - } else { - $command .= ' > '; - } - $command .= $importLogFile . ' 2>&1 &'; - $logger = StaticContainer::get(LoggerInterface::class); - $logger->debug("Import command: {command}", ['command' => $command]); - static::exec($shouldUsePassthru = \false, $command); - } public static function startImportGA4($status) { if (\Piwik\Plugins\GoogleAnalyticsImporter\ImportStatus::isImportRunning($status)) { diff --git a/lang/en.json b/lang/en.json index 6bfd0cd0e..63a5b267e 100644 --- a/lang/en.json +++ b/lang/en.json @@ -145,6 +145,7 @@ "GAImportNoDataScreenStep04": "Navigate to the %1$sGoogle Analytics Import admin page%2$s. %3$sLearn more%4$s.", "GAImportNoDataScreenStep05": "Select the Import type.", "GAImportNoDataScreenStep06": "Fill out the Schedule an Import form.", + "GAImportNoDataScreenStep06GA4": "Fill out the Schedule an Import for Google Analytics 4 (GA4) form.", "GAImportNoDataScreenStep07": "Click \"%1$s\".", "GAImportNoDataScreenStep07Note": "%1$sNote:%2$s Once you click \"%3$s\", Matomo will automatically create a new Matomo website for each selected property.", "GAImportNoDataScreenStep08": "Importing data takes time, %1$sclick here to monitor the status of your data import%2$s.", diff --git a/tests/Integration/TasksTest.php b/tests/Integration/TasksTest.php index 7bec6c309..26474ec60 100644 --- a/tests/Integration/TasksTest.php +++ b/tests/Integration/TasksTest.php @@ -70,47 +70,7 @@ public function test_resumeScheduledImports_runANormalStatusCommandCorrectly() Option::set(ImportStatus::OPTION_NAME_PREFIX . 1, json_encode(['idSite' => 1, 'status' => ImportStatus::STATUS_STARTED])); $tasks = new \Piwik\Plugins\GoogleAnalyticsImporter\tests\Integration\TasksWithMockExec(); $tasks->resumeScheduledImports(); - $this->assertEquals([ - // nohup /home/travis/.phpenv/versions/7.2.27/bin/php -q /home/travis/build/matomo-org/plugin-GoogleAnalyticsImporter/matomo/tests/PHPUnit/proxy/console --matomo-domain='localhost' googleanalyticsimporter:import-reports --idsite=1 >> /home/travis/build/matomo-org/plugin-GoogleAnalyticsImporter/matomo/tmp/logs/gaimportlog.1.localhost.log 2>&1 & - [\false, 'nohup ' . $this->getPhpBinary() . ' ' . PIWIK_INCLUDE_PATH . "/tests/PHPUnit/proxy/console{$this->getCommandHostOption()} googleanalyticsimporter:import-reports --idsite=1 >> " . $this->tmpPath . '/logs/gaimportlog.1.' . SettingsPiwik::getPiwikInstanceId() . '.log 2>&1 &'], - ], \Piwik\Plugins\GoogleAnalyticsImporter\tests\Integration\TasksWithMockExec::$commandsRun); - } - public function test_resumeScheduledImports_runAStatusWithVerboseLoggingCorrectly() - { - Option::set(ImportStatus::OPTION_NAME_PREFIX . 1, json_encode(['idSite' => 1, 'is_verbose_logging_enabled' => 1, 'status' => ImportStatus::STATUS_STARTED])); - $tasks = new \Piwik\Plugins\GoogleAnalyticsImporter\tests\Integration\TasksWithMockExec(); - $tasks->resumeScheduledImports(); - $this->assertEquals([[\false, 'nohup ' . $this->getPhpBinary() . ' ' . PIWIK_INCLUDE_PATH . "/tests/PHPUnit/proxy/console{$this->getCommandHostOption()} googleanalyticsimporter:import-reports --idsite=1 -vvv > " . $this->tmpPath . '/logs/gaimportlog.1.' . SettingsPiwik::getPiwikInstanceId() . '.log 2>&1 &']], \Piwik\Plugins\GoogleAnalyticsImporter\tests\Integration\TasksWithMockExec::$commandsRun); - } - public function test_resumeScheduledImports_runAStatusWithVerboseLoggingCorrectlyWithInstanceIdUpdated() - { - $oldValue = GeneralConfig::getConfigValue('instance_id'); - GeneralConfig::setConfigValue('instance_id', 'touch /tmp/success'); - Option::set(ImportStatus::OPTION_NAME_PREFIX . 1, json_encode(['idSite' => 1, 'is_verbose_logging_enabled' => 1, 'status' => ImportStatus::STATUS_STARTED])); - $tasks = new \Piwik\Plugins\GoogleAnalyticsImporter\tests\Integration\TasksWithMockExec(); - $tasks->resumeScheduledImports(); - $expected = 'nohup ' . $this->getPhpBinary() . ' ' . PIWIK_INCLUDE_PATH . "/tests/PHPUnit/proxy/console{$this->getCommandHostOption()} googleanalyticsimporter:import-reports --idsite=1 -vvv > /dev/null 2>&1 &"; - //since instance id is now sanitized in Matomo 5.x - if (version_compare(Version::VERSION, '5.0.0-b1', '>=')) { - $expected = 'nohup ' . $this->getPhpBinary() . ' ' . PIWIK_INCLUDE_PATH . "/tests/PHPUnit/proxy/console{$this->getCommandHostOption()} googleanalyticsimporter:import-reports --idsite=1 -vvv > " . PIWIK_INCLUDE_PATH . '/tmp/logs/gaimportlog.1.touchtmpsuccess.log' . " 2>&1 &"; - } - $this->assertEquals([[\false, $expected]], \Piwik\Plugins\GoogleAnalyticsImporter\tests\Integration\TasksWithMockExec::$commandsRun); - GeneralConfig::setConfigValue('instance_id', $oldValue); - } - public function test_resumeScheduledImports_runAStatusWithVerboseLoggingCorrectlyWithInstanceIdUpdated_1() - { - $oldValue = GeneralConfig::getConfigValue('instance_id'); - GeneralConfig::setConfigValue('instance_id', 'test; rm -rf .'); - Option::set(ImportStatus::OPTION_NAME_PREFIX . 1, json_encode(['idSite' => 1, 'is_verbose_logging_enabled' => 1, 'status' => ImportStatus::STATUS_STARTED])); - $tasks = new \Piwik\Plugins\GoogleAnalyticsImporter\tests\Integration\TasksWithMockExec(); - $tasks->resumeScheduledImports(); - $expected = 'nohup ' . $this->getPhpBinary() . ' ' . PIWIK_INCLUDE_PATH . "/tests/PHPUnit/proxy/console{$this->getCommandHostOption()} googleanalyticsimporter:import-reports --idsite=1 -vvv > " . $this->tmpPath . '/logs/gaimportlog.1.test\\; rm -rf ..log 2>&1 &'; - //since instance id is now sanitized in Matomo 5.x - if (version_compare(Version::VERSION, '5.0.0-b1', '>=')) { - $expected = 'nohup ' . $this->getPhpBinary() . ' ' . PIWIK_INCLUDE_PATH . "/tests/PHPUnit/proxy/console{$this->getCommandHostOption()} googleanalyticsimporter:import-reports --idsite=1 -vvv > " . $this->tmpPath . '/logs/gaimportlog.1.testrm-rf..log 2>&1 &'; - } - $this->assertEquals([[\false, $expected]], \Piwik\Plugins\GoogleAnalyticsImporter\tests\Integration\TasksWithMockExec::$commandsRun); - GeneralConfig::setConfigValue('instance_id', $oldValue); + $this->assertEquals([], \Piwik\Plugins\GoogleAnalyticsImporter\tests\Integration\TasksWithMockExec::$commandsRun); } public function test_archiveImportedReports_shouldSkipBrokenStatusEntries_ImportsThatHaveNotImportedAnything_OrLastArchivedDateIsEqualOrGreaterToLastImportedDate() { diff --git a/tests/System/ImportTest.php b/tests/System/ImportTest.php deleted file mode 100644 index 2452c7563..000000000 --- a/tests/System/ImportTest.php +++ /dev/null @@ -1,159 +0,0 @@ -markTestSkipped('Skipping tests for lower version'); - } - if (version_compare(Version::VERSION, '5.2.0-alpha', '<') && is_array($api) && in_array('Goals.get', $api)) { - $keyToDelete = array_search('Goals.get', $api); - unset($api[$keyToDelete]); - } - $this->runApiTests($api, $params); - } - public function getApiTestsToRun() - { - $apiToTest = []; - $apiNotToTest = $secondaryApiToTest = ['Actions.getPageUrls', 'Actions.getEntryPageUrls', 'Actions.getExitPageUrls', 'Actions.getPageTitles', 'Actions.getEntryPageTitles', 'Actions.getExitPageTitles', 'DevicesDetection.getType', 'DevicesDetection.getBrand', 'DevicesDetection.getModel', 'DevicesDetection.getOsFamilies', 'DevicesDetection.getOsVersions', 'DevicesDetection.getBrowsers', 'DevicesDetection.getBrowserVersions', 'DevicesDetection.getBrowserEngines', 'Goals.get', 'Goals.getMetrics', 'Goals.getDaysToConversion', 'Goals.getVisitsUntilConversion', 'Referrers.getReferrerType', 'Resolution.getResolution', 'Resolution.getConfiguration', 'UserCountry.getCountry', 'UserCountry.getContinent', 'UserCountry.getRegion', 'UserCountry.getCity', 'UserLanguage.getLanguage', 'UserLanguage.getLanguageCode', 'VisitFrequency.get', 'VisitTime.getVisitInformationPerLocalTime', 'VisitTime.getVisitInformationPerServerTime', 'VisitTime.getByDayOfWeek', 'Actions.getSiteSearchKeywords', 'VisitsSummary.get', 'VisitsSummary.getVisitsConverted', 'VisitsSummary.getSumVisitsLength']; - // This one needs a little extra handling - $apiNotToTest[] = 'Goals.getGoals'; - $config = (require PIWIK_INCLUDE_PATH . '/plugins/GoogleAnalyticsImporter/config/config.php'); - $recordImporterClasses = $config['GoogleAnalyticsImporter.recordImporters']; - foreach ($recordImporterClasses as $class) { - if ($class::PLUGIN_NAME == 'MarketingCampaignsReporting') { - continue; - } - $apiToTest[] = $class::PLUGIN_NAME; - } - if (version_compare(Version::VERSION, '4.6.0', '<')) { - $apiNotToTest[] = 'DevicesDetection.getBrowserEngines'; - } - - if (version_compare(Version::VERSION, '5.1.0-rc1') <= 0) { - $apiNotToTest[] = 'CustomDimensions.getConfiguredCustomDimensions'; - } - - return [ - [$apiToTest, ['idSite' => self::$fixture->idSite, 'date' => self::$fixture->dateTime, 'periods' => ['day', 'week', 'month', 'year'], 'apiNotToCall' => $apiNotToTest]], - [$secondaryApiToTest, ['idSite' => self::$fixture->idSite, 'date' => self::$fixture->dateTime, 'periods' => ['day', 'week', 'month']]], - [array_merge($secondaryApiToTest, ['Goals.getGoals']), ['idSite' => self::$fixture->idSite, 'date' => self::$fixture->dateTime, 'periods' => ['year'], 'testSuffix' => version_compare(Version::VERSION, '5.0.0-b1', '<=') ? '_5b1' : '']], - [['Goals.getDaysToConversion', 'Goals.getVisitsUntilConversion'], ['idSite' => self::$fixture->idSite, 'date' => self::$fixture->dateTime, 'periods' => ['day', 'week', 'month', 'year'], 'idGoal' => 'ecommerceOrder', 'testSuffix' => '_ecommerceOrder']], - // custom dimensions - ['CustomDimensions.getCustomDimension', ['idSite' => self::$fixture->idSite, 'date' => self::$fixture->dateTime, 'periods' => ['day', 'week', 'month', 'year'], 'testSuffix' => '_action', 'otherRequestParameters' => ['idDimension' => '6']]], - ['CustomDimensions.getCustomDimension', ['idSite' => self::$fixture->idSite, 'date' => self::$fixture->dateTime, 'periods' => ['day', 'week', 'month', 'year'], 'testSuffix' => '_visit', 'otherRequestParameters' => ['idDimension' => '4']]], - ['CustomDimensions.getCustomDimension', ['idSite' => self::$fixture->idSite, 'date' => self::$fixture->dateTime, 'periods' => ['day', 'week', 'month', 'year'], 'testSuffix' => '_extraCustomDim', 'otherRequestParameters' => ['idDimension' => '7']]], - // flattened - [['Referrers.getSearchEngines'], ['idSite' => self::$fixture->idSite, 'date' => self::$fixture->dateTime, 'periods' => ['day'], 'testSuffix' => '_flat', 'otherRequestParameters' => ['flat' => '1']]], - ['MarketingCampaignsReporting', ['idSite' => self::$fixture->campaignIdSite, 'date' => self::$fixture->campaignDataDateTime, 'periods' => ['day', 'week', 'month', 'year']]], - // test aggregated w/ real visit - ['VisitsSummary.get', ['idSite' => self::$fixture->idSite, 'date' => '2019-07-03', 'periods' => 'week', 'testSuffix' => '_aggregatedWithTrackedVisit' . (version_compare(Version::VERSION, '5.0.0-b1', '<=') ? '_5b1' : '')]], - ]; - } - /** - * @dataProvider getTestDataForTestApiColumns - */ - public function testApiColumns($method, $columns) - { - $this->markTestSkipped("skipping for now, this test never really worked anyway"); - $expectedApiColumns = self::getExpectedApiColumns(); - if (!isset($expectedApiColumns[$method])) { - throw new \Exception("No expected columns for {$method}"); - } - $expectedColumns = $expectedApiColumns[$method]; - $expectedColumns = array_values($expectedColumns); - $columns = array_values($columns); - sort($expectedColumns); - sort($columns); - $this->assertEquals($expectedColumns, $columns); - } - public static function getOutputPrefix() - { - return ''; - } - public static function getPathToTestDirectory() - { - return dirname(__FILE__); - } - public function getTestDataForTestApiColumns() - { - $tests = []; - $checkedApiMethods = []; - $expectedPath = PIWIK_INCLUDE_PATH . '/plugins/GoogleAnalyticsImporter/tests/System/expected'; - $contents = scandir($expectedPath); - foreach ($contents as $filename) { - if (!preg_match('/([^_]+)_year.xml$/', $filename, $matches)) { - continue; - } - $method = $matches[1]; - if (!empty($checkedApiMethods[$method])) { - continue; - } - if (preg_match('/^VisitorInterest\\./', $method)) { - continue; - } - $importedPath = $expectedPath . '/' . $filename; - $columns = $this->getColumnsFromXml($importedPath); - if (empty($columns)) { - continue; - } - $tests[] = [$method, $columns]; - } - return $tests; - } - private function getColumnsFromXml($importedPath) - { - $contents = file_get_contents($importedPath); - $element = new \SimpleXMLElement($contents); - if (empty($element->row) || empty($element->row[0])) { - return null; - } - $tagNames = []; - for ($j = 0; $j != $element->children()->count(); ++$j) { - $row = $element->row[$j]; - $children = $row->children(); - for ($i = 0; $i != $children->count(); ++$i) { - $tagName = $children[$i]->getName(); - if ($tagName == 'segment' || $tagName == 'subtable' || $tagName == 'label') { - continue; - } - $tagNames[] = $tagName; - } - } - return array_unique($tagNames); - } - private static function getExpectedApiColumns() - { - return ['Referrers.getWebsites' => self::$CONVERSION_AWARE_VISIT_METRICS, 'Referrers.getReferrerType' => self::$CONVERSION_AWARE_VISIT_METRICS, 'Referrers.getAll' => array_merge(self::$CONVERSION_AWARE_VISIT_METRICS, ['referer_type', 'logo', 'url']), 'Referrers.getKeywords' => self::$CONVERSION_AWARE_VISIT_METRICS, 'Referrers.getKeywordsForPageUrl' => [], 'Referrers.getKeywordsForPageTitle' => [], 'Referrers.getSearchEnginesFromKeywordId' => self::$CONVERSION_AWARE_VISIT_METRICS, 'Referrers.getSearchEngines' => array_merge(self::$CONVERSION_AWARE_VISIT_METRICS, ['url', 'logo']), 'Referrers.getCampaigns' => self::$CONVERSION_AWARE_VISIT_METRICS, 'Referrers.getKeywordsFromCampaignId' => self::$CONVERSION_AWARE_VISIT_METRICS, 'Referrers.getUrlsFromWebsiteId' => self::$CONVERSION_AWARE_VISIT_METRICS, 'Referrers.getSocials' => array_merge(self::$CONVERSION_AWARE_VISIT_METRICS, ['url', 'logo']), 'Referrers.getUrlsForSocial' => array_merge(self::$CONVERSION_AWARE_VISIT_METRICS, ['url']), 'Actions.getPageTitles' => self::$ACTION_METRICS, 'Actions.getPageUrls' => array_merge(self::$ACTION_METRICS, ['url']), 'Actions.getExitPageTitles' => self::$ACTION_METRICS, 'Actions.getExitPageUrls' => array_merge(self::$ACTION_METRICS, ['url']), 'Actions.getEntryPageTitles' => self::$ACTION_METRICS, 'Actions.getEntryPageUrls' => array_merge(self::$ACTION_METRICS, ['url']), 'Actions.getSiteSearchKeywords' => self::$SITESEARCH_METRICS, 'Actions.getSiteSearchCategories' => ['nb_visits', 'nb_actions', 'sum_visit_length', 'bounce_count', 'nb_visits_converted', 'nb_conversions', 'revenue', 'nb_hits', 'sum_daily_nb_uniq_visitors', 'nb_pages_per_search'], 'VisitTime.getByDayOfWeek' => array_merge(self::$VISIT_TIME_METRICS, ['day_of_week']), 'UserLanguage.getLanguage' => self::$CONVERSION_AWARE_VISIT_METRICS, 'UserLanguage.getLanguageCode' => self::$CONVERSION_AWARE_VISIT_METRICS, 'UserCountry.getContinent' => array_merge(self::$CONVERSION_AWARE_VISIT_METRICS, ['code']), 'UserCountry.getRegion' => array_merge(self::$CONVERSION_AWARE_VISIT_METRICS, ['country', 'country_name', 'region', 'region_name', 'logo']), 'UserCountry.getCountry' => array_merge(self::$CONVERSION_AWARE_VISIT_METRICS, ['code', 'logo', 'logoHeight']), 'UserCountry.getCity' => array_merge(self::$CONVERSION_AWARE_VISIT_METRICS, ['city', 'city_name', 'country', 'country_name', 'region', 'region_name', 'logo', 'lat', 'long']), 'Resolution.getResolution' => self::$CONVERSION_AWARE_VISIT_METRICS, 'Resolution.getConfiguration' => self::$CONVERSION_AWARE_VISIT_METRICS, 'Goals.getItemsSku' => self::$ECOMMERCE_ITEM_METRICS, 'Goals.getItemsName' => self::$ECOMMERCE_ITEM_METRICS, 'Goals.getItemsCategory' => self::$ECOMMERCE_ITEM_METRICS, 'Events.getName' => array_merge(self::$CONVERSION_AWARE_VISIT_METRICS, ['avg_event_value']), 'Events.getCategory' => array_merge(self::$CONVERSION_AWARE_VISIT_METRICS, ['avg_event_value']), 'Events.getAction' => array_merge(self::$CONVERSION_AWARE_VISIT_METRICS, ['avg_event_value']), 'VisitTime.getVisitInformationPerLocalTime' => self::$CONVERSION_AWARE_VISIT_METRICS, 'DevicesDetection.getType' => array_merge(self::$CONVERSION_AWARE_VISIT_METRICS, ['logo']), 'DevicesDetection.getOsVersions' => array_merge(self::$CONVERSION_AWARE_VISIT_METRICS, ['logo']), 'DevicesDetection.getOsFamilies' => array_merge(self::$CONVERSION_AWARE_VISIT_METRICS, ['logo']), 'DevicesDetection.getModel' => self::$CONVERSION_AWARE_VISIT_METRICS, 'DevicesDetection.getBrowsers' => array_merge(self::$CONVERSION_AWARE_VISIT_METRICS, ['logo']), 'DevicesDetection.getBrowserVersions' => array_merge(self::$CONVERSION_AWARE_VISIT_METRICS, ['logo']), 'DevicesDetection.getBrowserFamilies' => array_merge(self::$CONVERSION_AWARE_VISIT_METRICS, ['logo']), 'DevicesDetection.getBrand' => array_merge(self::$CONVERSION_AWARE_VISIT_METRICS, ['logo'])]; - } -} -\Piwik\Plugins\GoogleAnalyticsImporter\tests\System\ImportTest::$fixture = new ImportedFromGoogle(); diff --git a/tests/UI/EmptySite_GA_spec.js b/tests/UI/EmptySite_GA_spec.js index 2ff57f93e..255ea6b74 100644 --- a/tests/UI/EmptySite_GA_spec.js +++ b/tests/UI/EmptySite_GA_spec.js @@ -27,7 +27,7 @@ describe("EmptySite_GA", function () { testEnvironment.save(); }); - it('should show no data screen with GA import recommended', async function () { + it('should not show no data screen with GA3 import recommended', async function () { testEnvironment.detectedContentDetections = ['GoogleAnalytics3', 'Cloudflare']; testEnvironment.connectedConsentManagers = []; testEnvironment.save(); @@ -39,13 +39,6 @@ describe("EmptySite_GA", function () { expect(await pageElement.screenshot()).to.matchImage('list'); }); - it('should show import details with ga3 offset banner', async function () { - await page.evaluate(() => $('#start-tracking-detection a[href="#googleanalyticsimporter"]')[0].click()); - - const pageElement = await page.$('.page'); - expect(await pageElement.screenshot()).to.matchImage('details_ga3'); - }); - it('should show no data screen with GA import recommended', async function () { testEnvironment.detectedContentDetections = ['GoogleAnalytics4', 'Cloudflare']; testEnvironment.connectedConsentManagers = []; diff --git a/tests/UI/GoogleAnalyticsImporter_spec.js b/tests/UI/GoogleAnalyticsImporter_spec.js deleted file mode 100644 index 6bf7ec6b1..000000000 --- a/tests/UI/GoogleAnalyticsImporter_spec.js +++ /dev/null @@ -1,140 +0,0 @@ -/*! - * Piwik - free/libre analytics platform - * - * GA importer tests - * - * @link http://piwik.org - * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */ - -describe("GoogleAnalyticsImporter", function () { - this.timeout(0); - - this.fixture = 'Piwik\\Plugins\\GoogleAnalyticsImporter\\tests\\Fixtures\\MockApiResponses'; - - var url = "?module=GoogleAnalyticsImporter&action=index&idSite=1&period=day&date=yesterday"; - - async function removeStartResumeFinishTime() { - await page.evaluate(() => $('td.import-start-finish-times').html('')); - } - - async function updateStatusToStartedIfOnGoing() { - await page.evaluate(() => { - var status = $('.importStatusesTable tbody td.status:first').text(); - if (status && status.trim() === 'ongoing') { - $('.importStatusesTable tbody td.status:first').html('started'); - } - }); - } - - it("should load the settings correctly", async function () { - await page.goto(url); - - const content = await page.$('.pageWrap'); - expect(await content.screenshot()).to.matchImage('load'); - }); - - it("should load the settings correctly with UA option selected", async function () { - await page.goto(url); - - const content = await page.$('.pageWrap'); - await page.evaluate(() => $('input:radio[name=selectedImporter]').val('ua').change()); - expect(await content.screenshot()).to.matchImage('load_ua'); - }); - - it("should start an import properly", async function () { - await page.type('input#startDate', '2019-06-27'); - await page.type('input#endDate', '2019-07-02'); - await page.type('input#propertyId', 'UA-12345-6 '); // whitespace on purpose to test trim - await page.type('input#accountId', ' 12345'); // whitespace on purpose to test trim - await page.type('input#viewId', '1234567'); - await page.evaluate(() => $('div[name=extraCustomDimensions] input.control_text').val('ga:networkLocation').change()); - await page.evaluate(() => $('div[name=extraCustomDimensions] select:eq(0)').val('string:visit').change()); - await page.click('[name=isVerboseLoggingEnabled] label'); - - await page.click('#startImportSubmit'); - await page.waitForNetworkIdle(); - await page.waitForSelector('.pageWrap'); - - await removeStartResumeFinishTime(); - await updateStatusToStartedIfOnGoing(); - - const content = await page.$('.pageWrap'); - expect(await content.screenshot()).to.matchImage('start_import'); - }); - - it('should show the error in the UI when an import fails', async function () { - await page.waitForTimeout(70000); - - await page.reload({ timeout: 0 }); - await page.waitForSelector('.pageWrap'); - - await removeStartResumeFinishTime(); - - const content = await page.$('.pageWrap'); - expect(await content.screenshot()).to.matchImage('errored_import'); - }); - - it('should manually resume an import when the resume button is clicked', async function () { - await page.click('td.actions > a.icon-play'); - await page.waitForNetworkIdle(); - await page.waitForSelector('.pageWrap'); - - await removeStartResumeFinishTime(); - - const content = await page.$('.pageWrap'); - expect(await content.screenshot()).to.matchImage('resumed_import'); - }); - - - - it("should show that the import finished when the import finishes", async function () { - let totalTime = 0; - while (true) { // wait until import finishes - await page.waitForTimeout(30000); - - await page.reload(); - await page.waitForSelector('.pageWrap'); - - const elem = await page.$('td.actions > a.icon-delete'); - if (elem) { - break; - } - - console.log('waiting...'); - - totalTime += 30; - - if (totalTime > 60 * 7) { - throw new Error('timeout waiting for import to finish...'); - } - } - - await removeStartResumeFinishTime(); - - const content = await page.$('.pageWrap'); - expect(await content.screenshot()).to.matchImage('finished_import'); - }); - - it('should remove the status when the trash icon is clicked', async function () { - await page.click('td.actions > a.icon-delete'); - await page.waitForNetworkIdle(); - await page.waitForSelector('.pageWrap'); - - await removeStartResumeFinishTime(); - - const content = await page.$('.pageWrap'); - expect(await content.screenshot()).to.matchImage('removed_import'); - }); - - it('should remove client configuration when the button is pressed', async function () { - await page.click('#removeConfigForm button[type=submit]'); - await page.waitForNetworkIdle(); - await page.waitForSelector('.pageWrap'); - - await removeStartResumeFinishTime(); - - const content = await page.$('.pageWrap'); - expect(await content.screenshot()).to.matchImage('removed_client_config'); - }); -}); diff --git a/tests/UI/expected-ui-screenshots/EmptySite_GA_details_ga4.png b/tests/UI/expected-ui-screenshots/EmptySite_GA_details_ga4.png index 1af170a8c..435d96bcb 100644 Binary files a/tests/UI/expected-ui-screenshots/EmptySite_GA_details_ga4.png and b/tests/UI/expected-ui-screenshots/EmptySite_GA_details_ga4.png differ diff --git a/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_errored_import.png b/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_errored_import.png index fced166fb..8c3c9adee 100644 Binary files a/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_errored_import.png and b/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_errored_import.png differ diff --git a/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_finished_import.png b/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_finished_import.png index 8279760a8..6854d72c8 100644 Binary files a/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_finished_import.png and b/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_finished_import.png differ diff --git a/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_load.png b/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_load.png index 5b0bf0892..8c6e5a691 100644 Binary files a/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_load.png and b/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_load.png differ diff --git a/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_load_ga4.png b/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_load_ga4.png index e57aebe15..8c6e5a691 100644 Binary files a/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_load_ga4.png and b/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_load_ga4.png differ diff --git a/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_reimport_range.png b/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_reimport_range.png index 058cb54c8..65c5d218a 100644 Binary files a/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_reimport_range.png and b/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_reimport_range.png differ diff --git a/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_removed_import.png b/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_removed_import.png index 5b0bf0892..8c6e5a691 100644 Binary files a/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_removed_import.png and b/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_removed_import.png differ diff --git a/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_resumed_import.png b/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_resumed_import.png index b5f9d3061..508c768ce 100644 Binary files a/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_resumed_import.png and b/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_resumed_import.png differ diff --git a/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_start_import.png b/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_start_import.png index 481e6bf0d..a94abdad4 100644 Binary files a/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_start_import.png and b/tests/UI/expected-ui-screenshots/GoogleAnalyticsImporterGA4_start_import.png differ diff --git a/vue/dist/GoogleAnalyticsImporter.umd.js b/vue/dist/GoogleAnalyticsImporter.umd.js index d29b3d9c3..72967925c 100644 --- a/vue/dist/GoogleAnalyticsImporter.umd.js +++ b/vue/dist/GoogleAnalyticsImporter.umd.js @@ -125,9 +125,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_a5a2__; __webpack_require__.r(__webpack_exports__); // EXPORTS -__webpack_require__.d(__webpack_exports__, "ImportScheduler", function() { return /* reexport */ ImportScheduler; }); __webpack_require__.d(__webpack_exports__, "ImportSchedulerGA4", function() { return /* reexport */ ImportSchedulerGA4; }); -__webpack_require__.d(__webpack_exports__, "ImportSelector", function() { return /* reexport */ ImportSelector; }); __webpack_require__.d(__webpack_exports__, "ImportStatus", function() { return /* reexport */ ImportStatus; }); __webpack_require__.d(__webpack_exports__, "ConfigureConnection", function() { return /* reexport */ ConfigureConnection; }); __webpack_require__.d(__webpack_exports__, "ClientConfig", function() { return /* reexport */ ClientConfig; }); @@ -199,295 +197,40 @@ external_CoreHome_["Matomo"].on('widget:loaded', function (_ref) { // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"} var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf"); -// 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/ImportScheduler/ImportScheduler.vue?vue&type=template&id=3f3025d8 +// 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/ImportScheduler/ImportSchedulerGA4.vue?vue&type=template&id=8da8e6d8 var _hoisted_1 = { - name: "startDate" + name: "startDateGA4" }; var _hoisted_2 = { - name: "endDate" + name: "endDateGA4" }; var _hoisted_3 = { - name: "propertyId" + name: "propertyIdGA4" }; var _hoisted_4 = { - name: "accountId" + name: "streamIds" }; var _hoisted_5 = { - name: "viewId" + name: "isMobileAppGA4" }; var _hoisted_6 = { - name: "isMobileApp" + name: "timezoneGA4" }; var _hoisted_7 = { - name: "timezone" + name: "extraCustomDimensionsGA4" }; var _hoisted_8 = { - name: "extraCustomDimensions" + name: "forceIgnoreOutOfCustomDimSlotErrorGA4" }; var _hoisted_9 = { - name: "forceIgnoreOutOfCustomDimSlotError" -}; -var _hoisted_10 = { - name: "isVerboseLoggingEnabled" + name: "isVerboseLoggingEnabledGA4" }; -var _hoisted_11 = ["disabled"]; +var _hoisted_10 = ["disabled"]; function render(_ctx, _cache, $props, $setup, $data, $options) { var _component_Field = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("Field"); return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("p", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_ScheduleImportDescription')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { - uicontrol: "text", - name: "startDate", - modelValue: _ctx.startDate, - "onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) { - return _ctx.startDate = $event; - }), - title: _ctx.translate('GoogleAnalyticsImporter_StartDate'), - placeholder: "".concat(_ctx.translate('GoogleAnalyticsImporter_CreationDate'), " (YYYY-MM-DD)"), - "inline-help": _ctx.translate('GoogleAnalyticsImporter_StartDateHelp') - }, null, 8, ["modelValue", "title", "placeholder", "inline-help"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_2, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { - uicontrol: "text", - name: "endDate", - modelValue: _ctx.endDate, - "onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) { - return _ctx.endDate = $event; - }), - title: _ctx.translate('GoogleAnalyticsImporter_EndDate'), - placeholder: _ctx.translate('GoogleAnalyticsImporter_None'), - "inline-help": _ctx.endDateHelp - }, null, 8, ["modelValue", "title", "placeholder", "inline-help"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_3, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { - uicontrol: "text", - name: "propertyId", - modelValue: _ctx.propertyId, - "onUpdate:modelValue": _cache[2] || (_cache[2] = function ($event) { - return _ctx.propertyId = $event; - }), - placeholder: "eg. UA-XXXXX-X", - title: _ctx.translate('GoogleAnalyticsImporter_PropertyId'), - "inline-help": _ctx.translate('GoogleAnalyticsImporter_PropertyIdHelp') - }, null, 8, ["modelValue", "title", "inline-help"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_4, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { - uicontrol: "text", - name: "accountId", - placeholder: "eg. 1234567", - modelValue: _ctx.accountId, - "onUpdate:modelValue": _cache[3] || (_cache[3] = function ($event) { - return _ctx.accountId = $event; - }), - title: _ctx.translate('GoogleAnalyticsImporter_AccountId'), - "inline-help": _ctx.translate('GoogleAnalyticsImporter_AccountIdHelp') - }, null, 8, ["modelValue", "title", "inline-help"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_5, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { - uicontrol: "text", - name: "viewId", - placeholder: "eg. 1234567", - modelValue: _ctx.viewId, - "onUpdate:modelValue": _cache[4] || (_cache[4] = function ($event) { - return _ctx.viewId = $event; - }), - title: _ctx.translate('GoogleAnalyticsImporter_ViewId'), - "inline-help": _ctx.translate('GoogleAnalyticsImporter_ViewIdHelp') - }, null, 8, ["modelValue", "title", "inline-help"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_6, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { - uicontrol: "checkbox", - name: "isMobileApp", - modelValue: _ctx.isMobileApp, - "onUpdate:modelValue": _cache[5] || (_cache[5] = function ($event) { - return _ctx.isMobileApp = $event; - }), - title: _ctx.translate('GoogleAnalyticsImporter_IsMobileApp'), - "inline-help": _ctx.translate('GoogleAnalyticsImporter_IsMobileAppHelp') - }, null, 8, ["modelValue", "title", "inline-help"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_7, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { - uicontrol: "text", - name: "timezone", - modelValue: _ctx.timezone, - "onUpdate:modelValue": _cache[6] || (_cache[6] = function ($event) { - return _ctx.timezone = $event; - }), - title: _ctx.translate('GoogleAnalyticsImporter_Timezone'), - placeholder: _ctx.translate('GoogleAnalyticsImporter_Optional'), - "inline-help": _ctx.timezoneHelp - }, null, 8, ["modelValue", "title", "placeholder", "inline-help"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_8, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { - uicontrol: "multituple", - name: "extraCustomDimensions", - modelValue: _ctx.extraCustomDimensions, - "onUpdate:modelValue": _cache[7] || (_cache[7] = function ($event) { - return _ctx.extraCustomDimensions = $event; - }), - title: _ctx.translate('GoogleAnalyticsImporter_ExtraCustomDimensions'), - "inline-help": _ctx.extraCustomDimensionsHelp, - "ui-control-attributes": _ctx.extraCustomDimensionsField - }, null, 8, ["modelValue", "title", "inline-help", "ui-control-attributes"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_9, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { - uicontrol: "checkbox", - name: "forceIgnoreOutOfCustomDimSlotError", - modelValue: _ctx.ignoreCustomDimensionSlotCheck, - "onUpdate:modelValue": _cache[8] || (_cache[8] = function ($event) { - return _ctx.ignoreCustomDimensionSlotCheck = $event; - }), - title: _ctx.translate('GoogleAnalyticsImporter_ForceCustomDimensionSlotCheck'), - "inline-help": _ctx.forceIgnoreOutOfCustomDimSlotErrorHelp - }, null, 8, ["modelValue", "title", "inline-help"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h3", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_Troubleshooting')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_10, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { - uicontrol: "checkbox", - name: "isVerboseLoggingEnabled", - modelValue: _ctx.isVerboseLoggingEnabled, - "onUpdate:modelValue": _cache[9] || (_cache[9] = function ($event) { - return _ctx.isVerboseLoggingEnabled = $event; - }), - title: _ctx.translate('GoogleAnalyticsImporter_IsVerboseLoggingEnabled'), - "inline-help": _ctx.isVerboseLoggingEnabledHelp - }, null, 8, ["modelValue", "title", "inline-help"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("button", { - type: "submit", - id: "startImportSubmit", - class: "btn", - onClick: _cache[10] || (_cache[10] = function ($event) { - return _ctx.startImport(); - }), - disabled: _ctx.isStartingImport - }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_Start')), 9, _hoisted_11)]); -} -// CONCATENATED MODULE: ./plugins/GoogleAnalyticsImporter/vue/src/ImportScheduler/ImportScheduler.vue?vue&type=template&id=3f3025d8 - -// EXTERNAL MODULE: external "CorePluginsAdmin" -var external_CorePluginsAdmin_ = __webpack_require__("a5a2"); - -// 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/ImportScheduler/ImportScheduler.vue?vue&type=script&lang=ts - - - -/* harmony default export */ var ImportSchedulervue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({ - props: { - startImportNonce: { - type: String, - required: true - }, - maxEndDateDesc: String, - extraCustomDimensionsField: { - type: Object, - required: true - } - }, - components: { - Field: external_CorePluginsAdmin_["Field"] - }, - data: function data() { - return { - isStartingImport: false, - extraCustomDimensions: [], - isVerboseLoggingEnabled: false, - ignoreCustomDimensionSlotCheck: false, - startDate: '', - endDate: '', - propertyId: '', - accountId: '', - viewId: '', - isMobileApp: false, - timezone: '' - }; - }, - created: function created() { - return this; - }, - methods: { - startImport: function startImport() { - if (this.startDate) { - try { - Object(external_CoreHome_["parseDate"])(this.startDate); - } catch (e) { - var instanceId = external_CoreHome_["NotificationsStore"].show({ - message: Object(external_CoreHome_["translate"])('GoogleAnalyticsImporter_InvalidDateFormat', ['YYYY-MM-DD']), - context: 'error', - type: 'transient' - }); - external_CoreHome_["NotificationsStore"].scrollToNotification(instanceId); - return undefined; - } - } - - this.isStartingImport = true; - var forceCustomDimensionSlotCheck = !this.ignoreCustomDimensionSlotCheck; - return external_CoreHome_["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: forceCustomDimensionSlotCheck ? '1' : '0' - }, {}, { - withTokenInUrl: true - }).finally(function () { - window.location.reload(); - }); - } - }, - computed: { - endDateHelp: function endDateHelp() { - var endDateHelp = Object(external_CoreHome_["translate"])('GoogleAnalyticsImporter_EndDateHelpText'); - var maxEndDateDesc = this.maxEndDateDesc && Object(external_CoreHome_["translate"])('

GoogleAnalyticsImporter_MaxEndDateHelp', this.maxEndDateDesc); - return "".concat(endDateHelp, " ").concat(maxEndDateDesc || ''); - }, - timezoneHelp: function timezoneHelp() { - var url = 'https://www.php.net/manual/en/timezones.php'; - return Object(external_CoreHome_["translate"])('GoogleAnalyticsImporter_TimezoneHelp', ""), ''); - }, - extraCustomDimensionsHelp: function extraCustomDimensionsHelp() { - var link = 'https://ga-dev-tools.appspot.com/dimensions-metrics-explorer/'; - return Object(external_CoreHome_["translate"])('GoogleAnalyticsImporter_ExtraCustomDimensionsHelp', ""), ''); - }, - forceIgnoreOutOfCustomDimSlotErrorHelp: function forceIgnoreOutOfCustomDimSlotErrorHelp() { - return Object(external_CoreHome_["translate"])('GoogleAnalyticsImporter_ForceCustomDimensionSlotCheckHelp', Object(external_CoreHome_["externalLink"])('https://matomo.org/docs/custom-dimensions/'), ''); - }, - isVerboseLoggingEnabledHelp: function isVerboseLoggingEnabledHelp() { - return Object(external_CoreHome_["translate"])('GoogleAnalyticsImporter_IsVerboseLoggingEnabledHelp', '/path/to/matomo/tmp/logs/', 'gaimportlog.$idSite.$matomoDomain.log'); - } - } -})); -// CONCATENATED MODULE: ./plugins/GoogleAnalyticsImporter/vue/src/ImportScheduler/ImportScheduler.vue?vue&type=script&lang=ts - -// CONCATENATED MODULE: ./plugins/GoogleAnalyticsImporter/vue/src/ImportScheduler/ImportScheduler.vue - - - -ImportSchedulervue_type_script_lang_ts.render = render - -/* harmony default export */ var ImportScheduler = (ImportSchedulervue_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/ImportScheduler/ImportSchedulerGA4.vue?vue&type=template&id=8da8e6d8 - -var ImportSchedulerGA4vue_type_template_id_8da8e6d8_hoisted_1 = { - name: "startDateGA4" -}; -var ImportSchedulerGA4vue_type_template_id_8da8e6d8_hoisted_2 = { - name: "endDateGA4" -}; -var ImportSchedulerGA4vue_type_template_id_8da8e6d8_hoisted_3 = { - name: "propertyIdGA4" -}; -var ImportSchedulerGA4vue_type_template_id_8da8e6d8_hoisted_4 = { - name: "streamIds" -}; -var ImportSchedulerGA4vue_type_template_id_8da8e6d8_hoisted_5 = { - name: "isMobileAppGA4" -}; -var ImportSchedulerGA4vue_type_template_id_8da8e6d8_hoisted_6 = { - name: "timezoneGA4" -}; -var ImportSchedulerGA4vue_type_template_id_8da8e6d8_hoisted_7 = { - name: "extraCustomDimensionsGA4" -}; -var ImportSchedulerGA4vue_type_template_id_8da8e6d8_hoisted_8 = { - name: "forceIgnoreOutOfCustomDimSlotErrorGA4" -}; -var ImportSchedulerGA4vue_type_template_id_8da8e6d8_hoisted_9 = { - name: "isVerboseLoggingEnabledGA4" -}; -var ImportSchedulerGA4vue_type_template_id_8da8e6d8_hoisted_10 = ["disabled"]; -function ImportSchedulerGA4vue_type_template_id_8da8e6d8_render(_ctx, _cache, $props, $setup, $data, $options) { - var _component_Field = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("Field"); - - return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("p", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_ScheduleImportDescription')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ImportSchedulerGA4vue_type_template_id_8da8e6d8_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { uicontrol: "text", name: "startDateGA4", modelValue: _ctx.startDateGA4, @@ -497,7 +240,7 @@ function ImportSchedulerGA4vue_type_template_id_8da8e6d8_render(_ctx, _cache, $p title: _ctx.translate('GoogleAnalyticsImporter_StartDate'), placeholder: "".concat(_ctx.translate('GoogleAnalyticsImporter_CreationDate'), " (YYYY-MM-DD)"), "inline-help": _ctx.translate('GoogleAnalyticsImporter_StartDateHelp') - }, null, 8, ["modelValue", "title", "placeholder", "inline-help"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ImportSchedulerGA4vue_type_template_id_8da8e6d8_hoisted_2, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { + }, null, 8, ["modelValue", "title", "placeholder", "inline-help"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_2, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { uicontrol: "text", name: "endDateGA4", modelValue: _ctx.endDateGA4, @@ -507,7 +250,7 @@ function ImportSchedulerGA4vue_type_template_id_8da8e6d8_render(_ctx, _cache, $p title: _ctx.translate('GoogleAnalyticsImporter_EndDate'), placeholder: _ctx.translate('GoogleAnalyticsImporter_None'), "inline-help": _ctx.endDateHelp - }, null, 8, ["modelValue", "title", "placeholder", "inline-help"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ImportSchedulerGA4vue_type_template_id_8da8e6d8_hoisted_3, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { + }, null, 8, ["modelValue", "title", "placeholder", "inline-help"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_3, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { uicontrol: "text", name: "propertyIdGA4", modelValue: _ctx.propertyIdGA4, @@ -517,7 +260,7 @@ function ImportSchedulerGA4vue_type_template_id_8da8e6d8_render(_ctx, _cache, $p placeholder: "eg. properties/{PROPERTY_ID}", title: _ctx.translate('GoogleAnalyticsImporter_PropertyIdGA4'), "inline-help": _ctx.translate('GoogleAnalyticsImporter_PropertyIdGA4Help') - }, null, 8, ["modelValue", "title", "inline-help"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ImportSchedulerGA4vue_type_template_id_8da8e6d8_hoisted_4, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { + }, null, 8, ["modelValue", "title", "inline-help"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_4, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { uicontrol: "multituple", name: "streamIds", modelValue: _ctx.streamIds, @@ -527,7 +270,7 @@ function ImportSchedulerGA4vue_type_template_id_8da8e6d8_render(_ctx, _cache, $p title: _ctx.translate('GoogleAnalyticsImporter_StreamIdFilter'), "inline-help": _ctx.streamIdsFilterHelp, "ui-control-attributes": _ctx.streamIdsField - }, null, 8, ["modelValue", "title", "inline-help", "ui-control-attributes"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ImportSchedulerGA4vue_type_template_id_8da8e6d8_hoisted_5, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { + }, null, 8, ["modelValue", "title", "inline-help", "ui-control-attributes"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_5, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { uicontrol: "checkbox", name: "isMobileAppGA4", modelValue: _ctx.isMobileAppGA4, @@ -536,7 +279,7 @@ function ImportSchedulerGA4vue_type_template_id_8da8e6d8_render(_ctx, _cache, $p }), title: _ctx.translate('GoogleAnalyticsImporter_IsMobileApp'), "inline-help": _ctx.translate('GoogleAnalyticsImporter_IsMobileAppHelp') - }, null, 8, ["modelValue", "title", "inline-help"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ImportSchedulerGA4vue_type_template_id_8da8e6d8_hoisted_6, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { + }, null, 8, ["modelValue", "title", "inline-help"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_6, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { uicontrol: "text", name: "timezoneGA4", modelValue: _ctx.timezoneGA4, @@ -546,7 +289,7 @@ function ImportSchedulerGA4vue_type_template_id_8da8e6d8_render(_ctx, _cache, $p title: _ctx.translate('GoogleAnalyticsImporter_Timezone'), placeholder: _ctx.translate('GoogleAnalyticsImporter_Optional'), "inline-help": _ctx.timezoneHelp - }, null, 8, ["modelValue", "title", "placeholder", "inline-help"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ImportSchedulerGA4vue_type_template_id_8da8e6d8_hoisted_7, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { + }, null, 8, ["modelValue", "title", "placeholder", "inline-help"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_7, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { uicontrol: "multituple", name: "extraCustomDimensionsGA4", modelValue: _ctx.extraCustomDimensionsGA4, @@ -556,7 +299,7 @@ function ImportSchedulerGA4vue_type_template_id_8da8e6d8_render(_ctx, _cache, $p title: _ctx.translate('GoogleAnalyticsImporter_ExtraCustomDimensions'), "inline-help": _ctx.extraCustomDimensionsHelp, "ui-control-attributes": _ctx.extraCustomDimensionsField - }, null, 8, ["modelValue", "title", "inline-help", "ui-control-attributes"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ImportSchedulerGA4vue_type_template_id_8da8e6d8_hoisted_8, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { + }, null, 8, ["modelValue", "title", "inline-help", "ui-control-attributes"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_8, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { uicontrol: "checkbox", name: "forceIgnoreOutOfCustomDimSlotErrorGA4", modelValue: _ctx.ignoreCustomDimensionSlotCheckGA4, @@ -565,7 +308,7 @@ function ImportSchedulerGA4vue_type_template_id_8da8e6d8_render(_ctx, _cache, $p }), title: _ctx.translate('GoogleAnalyticsImporter_ForceCustomDimensionSlotCheck'), "inline-help": _ctx.forceIgnoreOutOfCustomDimSlotErrorHelp - }, null, 8, ["modelValue", "title", "inline-help"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h3", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_Troubleshooting')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ImportSchedulerGA4vue_type_template_id_8da8e6d8_hoisted_9, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { + }, null, 8, ["modelValue", "title", "inline-help"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h3", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_Troubleshooting')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_9, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { uicontrol: "checkbox", name: "isVerboseLoggingEnabledGA4", modelValue: _ctx.isVerboseLoggingEnabledGA4, @@ -582,10 +325,13 @@ function ImportSchedulerGA4vue_type_template_id_8da8e6d8_render(_ctx, _cache, $p return _ctx.startImportGA4(); }), disabled: _ctx.isStartingImport - }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_Start')), 9, ImportSchedulerGA4vue_type_template_id_8da8e6d8_hoisted_10)]); + }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_Start')), 9, _hoisted_10)]); } // CONCATENATED MODULE: ./plugins/GoogleAnalyticsImporter/vue/src/ImportScheduler/ImportSchedulerGA4.vue?vue&type=template&id=8da8e6d8 +// EXTERNAL MODULE: external "CorePluginsAdmin" +var external_CorePluginsAdmin_ = __webpack_require__("a5a2"); + // 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/ImportScheduler/ImportSchedulerGA4.vue?vue&type=script&lang=ts @@ -700,79 +446,9 @@ function ImportSchedulerGA4vue_type_template_id_8da8e6d8_render(_ctx, _cache, $p -ImportSchedulerGA4vue_type_script_lang_ts.render = ImportSchedulerGA4vue_type_template_id_8da8e6d8_render +ImportSchedulerGA4vue_type_script_lang_ts.render = render /* harmony default export */ var ImportSchedulerGA4 = (ImportSchedulerGA4vue_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/ImportScheduler/ImportSelector.vue?vue&type=template&id=302319fd - -function ImportSelectorvue_type_template_id_302319fd_render(_ctx, _cache, $props, $setup, $data, $options) { - var _component_Field = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("Field"); - - var _directive_form = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDirective"])("form"); - - return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])((Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { - uicontrol: "radio", - name: "selectedImporter", - modelValue: _ctx.selectedImporter, - "onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) { - return _ctx.selectedImporter = $event; - }), - options: _ctx.importOptionsUa, - "inline-help": _ctx.translate('GoogleAnalyticsImporter_SelectImporterUAInlineHelpText') - }, null, 8, ["modelValue", "options", "inline-help"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_Field, { - uicontrol: "radio", - name: "selectedImporter", - modelValue: _ctx.selectedImporter, - "onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) { - return _ctx.selectedImporter = $event; - }), - options: _ctx.importOptionsGa4, - "inline-help": _ctx.translate('GoogleAnalyticsImporter_SelectImporterGA4InlineHelpText') - }, null, 8, ["modelValue", "options", "inline-help"])])], 512)), [[_directive_form]]); -} -// CONCATENATED MODULE: ./plugins/GoogleAnalyticsImporter/vue/src/ImportScheduler/ImportSelector.vue?vue&type=template&id=302319fd - -// 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/ImportScheduler/ImportSelector.vue?vue&type=script&lang=ts - - -/* harmony default export */ var ImportSelectorvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({ - props: { - importOptionsUa: { - type: Object, - required: true - }, - importOptionsGa4: { - type: Object, - required: true - } - }, - components: { - Field: external_CorePluginsAdmin_["Field"] - }, - directives: { - Form: external_CorePluginsAdmin_["Form"] - }, - emits: ['update:selectedImporter'], - watch: { - selectedImporter: function selectedImporter(newVal) { - this.$emit('update:selectedImporter', newVal); - } - }, - data: function data() { - return { - selectedImporter: '' - }; - } -})); -// CONCATENATED MODULE: ./plugins/GoogleAnalyticsImporter/vue/src/ImportScheduler/ImportSelector.vue?vue&type=script&lang=ts - -// CONCATENATED MODULE: ./plugins/GoogleAnalyticsImporter/vue/src/ImportScheduler/ImportSelector.vue - - - -ImportSelectorvue_type_script_lang_ts.render = ImportSelectorvue_type_template_id_302319fd_render - -/* harmony default export */ var ImportSelector = (ImportSelectorvue_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/ImportStatus/ImportStatus.vue?vue&type=template&id=985a7fca var ImportStatusvue_type_template_id_985a7fca_hoisted_1 = { @@ -913,7 +589,7 @@ var ImportStatusRowvue_type_template_id_68a359df_hoisted_9 = ["title"]; var ImportStatusRowvue_type_template_id_68a359df_hoisted_10 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("br", null, null, -1); -var ImportStatusRowvue_type_template_id_68a359df_hoisted_11 = { +var _hoisted_11 = { key: 0 }; var _hoisted_12 = { @@ -1020,7 +696,7 @@ function ImportStatusRowvue_type_template_id_68a359df_render(_ctx, _cache, $prop }, null, 8, ImportStatusRowvue_type_template_id_68a359df_hoisted_6), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("td", ImportStatusRowvue_type_template_id_68a359df_hoisted_7, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.status.status) + " ", 1), _ctx.status.status === 'rate_limited' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", ImportStatusRowvue_type_template_id_68a359df_hoisted_8, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { class: "icon icon-help", title: _ctx.translate('GoogleAnalyticsImporter_RateLimitHelp') - }, null, 8, ImportStatusRowvue_type_template_id_68a359df_hoisted_9), ImportStatusRowvue_type_template_id_68a359df_hoisted_10, _ctx.status.days_finished_since_rate_limit ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", ImportStatusRowvue_type_template_id_68a359df_hoisted_11, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_FinishedImportingDaysWaiting', _ctx.status.days_finished_since_rate_limit)), 1)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.status.status === 'cloud_rate_limited' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", _hoisted_12, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { + }, null, 8, ImportStatusRowvue_type_template_id_68a359df_hoisted_9), ImportStatusRowvue_type_template_id_68a359df_hoisted_10, _ctx.status.days_finished_since_rate_limit ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", _hoisted_11, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_FinishedImportingDaysWaiting', _ctx.status.days_finished_since_rate_limit)), 1)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.status.status === 'cloud_rate_limited' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", _hoisted_12, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { class: "icon icon-help", title: _ctx.status.error }, null, 8, _hoisted_13), _hoisted_14, _ctx.status.days_finished_since_rate_limit ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", _hoisted_15, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_FinishedImportingDaysWaiting', _ctx.status.days_finished_since_rate_limit)), 1)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.status.status === 'rate_limited_hourly' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", _hoisted_16, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { @@ -1279,93 +955,92 @@ 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=4819839c +// 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=f623de7a -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_1 = { +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_1 = { key: 0, class: "form-group row" }; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_2 = { +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_2 = { class: "col s12 m6" }; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_3 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("br", null, null, -1); +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_3 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("br", null, null, -1); -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_4 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_5 = { +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_4 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_5 = { class: "col s12 m6" }; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_6 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_7 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_8 = ["textContent"]; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_9 = { +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_6 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_7 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_8 = ["textContent"]; +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_9 = { class: "form-group row" }; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_10 = ["action"]; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_11 = { +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_10 = ["action"]; +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_11 = { key: 0, type: "hidden", name: "isNoDataPage", value: "1" }; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_12 = ["value"]; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_13 = ["disabled"]; +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_12 = ["value"]; +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_13 = ["disabled"]; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_14 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_14 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { class: "icon-upload" }, null, -1); -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_15 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_15 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { class: "icon-upload" }, null, -1); -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_16 = { +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_16 = { key: 1, class: "system-success connected-message-successful" }; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_17 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_17 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { class: "icon-ok" }, null, -1); -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_18 = { +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_18 = { key: 2 }; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_19 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_20 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_21 = ["action"]; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_22 = ["value"]; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_23 = ["disabled", "textContent"]; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_24 = { +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_19 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_20 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_21 = ["action"]; +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_22 = ["value"]; +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_23 = ["disabled", "textContent"]; +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_24 = { key: 0, class: "system-success connected-message-successful" }; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_25 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_25 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { class: "icon-ok" }, null, -1); -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_26 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_27 = ["textContent"]; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_28 = ["textContent"]; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_29 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_30 = ["innerHTML"]; -var ConfigureConnectionvue_type_template_id_4819839c_hoisted_31 = ["textContent"]; -function ConfigureConnectionvue_type_template_id_4819839c_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_4819839c_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ConfigureConnectionvue_type_template_id_4819839c_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_4819839c_hoisted_3, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_26 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_27 = ["textContent"]; +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_28 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_29 = ["innerHTML"]; +var ConfigureConnectionvue_type_template_id_f623de7a_hoisted_30 = ["textContent"]; +function ConfigureConnectionvue_type_template_id_f623de7a_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_f623de7a_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ConfigureConnectionvue_type_template_id_f623de7a_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_f623de7a_hoisted_3, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { innerHTML: _ctx.$sanitize(_ctx.setupGoogleAnalyticsImportFaq) - }, null, 8, ConfigureConnectionvue_type_template_id_4819839c_hoisted_4)])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ConfigureConnectionvue_type_template_id_4819839c_hoisted_5, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", { + }, null, 8, ConfigureConnectionvue_type_template_id_f623de7a_hoisted_4)])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ConfigureConnectionvue_type_template_id_f623de7a_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_4819839c_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_f623de7a_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_4819839c_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, { + }, null, 8, ConfigureConnectionvue_type_template_id_f623de7a_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_4819839c_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_4819839c_hoisted_9, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", { + }, null, 8, ConfigureConnectionvue_type_template_id_f623de7a_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_f623de7a_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", @@ -1383,26 +1058,26 @@ function ConfigureConnectionvue_type_template_id_4819839c_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_4819839c_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_f623de7a_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_4819839c_hoisted_12), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("button", { + }, null, 8, ConfigureConnectionvue_type_template_id_f623de7a_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_4819839c_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_4819839c_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_4819839c_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_4819839c_hoisted_16, [ConfigureConnectionvue_type_template_id_4819839c_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_4819839c_hoisted_10)], 2)])]; + }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", null, [ConfigureConnectionvue_type_template_id_f623de7a_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_f623de7a_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_f623de7a_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_f623de7a_hoisted_16, [ConfigureConnectionvue_type_template_id_f623de7a_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_f623de7a_hoisted_10)], 2)])]; }), _: 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_4819839c_hoisted_18, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { + })), _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_f623de7a_hoisted_18, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { innerHTML: _ctx.$sanitize(_ctx.getAdvanceConnectStep03Text) - }, null, 8, ConfigureConnectionvue_type_template_id_4819839c_hoisted_19), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", { + }, null, 8, ConfigureConnectionvue_type_template_id_f623de7a_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_4819839c_hoisted_20), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("form", { + }, null, 8, ConfigureConnectionvue_type_template_id_f623de7a_hoisted_20), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("form", { target: "_blank", method: "post", action: _ctx.authorizeUrl @@ -1410,32 +1085,29 @@ function ConfigureConnectionvue_type_template_id_4819839c_render(_ctx, _cache, $ type: "hidden", name: "auth_nonce", value: _ctx.forwardToAuthNonce - }, null, 8, ConfigureConnectionvue_type_template_id_4819839c_hoisted_22), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("button", { + }, null, 8, ConfigureConnectionvue_type_template_id_f623de7a_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_4819839c_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_4819839c_hoisted_24, [ConfigureConnectionvue_type_template_id_4819839c_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_4819839c_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", { + }, null, 8, ConfigureConnectionvue_type_template_id_f623de7a_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_f623de7a_hoisted_24, [ConfigureConnectionvue_type_template_id_f623de7a_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_f623de7a_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_4819839c_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_f623de7a_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_4819839c_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", { + textContent: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_GAImportNoDataScreenStep06GA4')) + }, null, 8, ConfigureConnectionvue_type_template_id_f623de7a_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_4819839c_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_4819839c_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, + }, null, 8, ConfigureConnectionvue_type_template_id_f623de7a_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.getAdvanceConnectStep08Text) - }, null, 8, ConfigureConnectionvue_type_template_id_4819839c_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, + }, null, 8, ConfigureConnectionvue_type_template_id_f623de7a_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, textContent: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_GAImportNoDataScreenStep09')) - }, null, 8, ConfigureConnectionvue_type_template_id_4819839c_hoisted_31)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64); + }, null, 8, ConfigureConnectionvue_type_template_id_f623de7a_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=4819839c +// CONCATENATED MODULE: ./plugins/GoogleAnalyticsImporter/vue/src/Configure/ConfigureConnection.vue?vue&type=template&id=f623de7a // 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 @@ -1555,7 +1227,7 @@ function ConfigureConnectionvue_type_template_id_4819839c_render(_ctx, _cache, $ -ConfigureConnectionvue_type_script_lang_ts.render = ConfigureConnectionvue_type_template_id_4819839c_render +ConfigureConnectionvue_type_script_lang_ts.render = ConfigureConnectionvue_type_template_id_f623de7a_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 @@ -1672,33 +1344,26 @@ function ClientConfigvue_type_template_id_3d935500_render(_ctx, _cache, $props, ClientConfigvue_type_script_lang_ts.render = ClientConfigvue_type_template_id_3d935500_render /* harmony default export */ var ClientConfig = (ClientConfigvue_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/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/AdminPage.vue?vue&type=template&id=89ec9138 -var AdminPagevue_type_template_id_3ac4f3aa_hoisted_1 = { - class: "hide-import-main-div ga-import-main-div ua-main-div" -}; -var AdminPagevue_type_template_id_3ac4f3aa_hoisted_2 = { +var AdminPagevue_type_template_id_89ec9138_hoisted_1 = { class: "hide-import-main-div ga-import-main-div ga4-main-div" }; -var AdminPagevue_type_template_id_3ac4f3aa_hoisted_3 = { +var AdminPagevue_type_template_id_89ec9138_hoisted_2 = { key: 0 }; -var AdminPagevue_type_template_id_3ac4f3aa_hoisted_4 = { +var AdminPagevue_type_template_id_89ec9138_hoisted_3 = { key: 3, class: "ui-confirm", id: "confirmCancelJob" }; -var AdminPagevue_type_template_id_3ac4f3aa_hoisted_5 = ["value"]; -var AdminPagevue_type_template_id_3ac4f3aa_hoisted_6 = ["value"]; -function AdminPagevue_type_template_id_3ac4f3aa_render(_ctx, _cache, $props, $setup, $data, $options) { +var AdminPagevue_type_template_id_89ec9138_hoisted_4 = ["value"]; +var AdminPagevue_type_template_id_89ec9138_hoisted_5 = ["value"]; +function AdminPagevue_type_template_id_89ec9138_render(_ctx, _cache, $props, $setup, $data, $options) { var _component_CommonConnect = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CommonConnect"); var _component_ClientConfig = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ClientConfig"); - var _component_ImportSelector = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ImportSelector"); - - var _component_ImportScheduler = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ImportScheduler"); - var _component_ImportSchedulerGA4 = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ImportSchedulerGA4"); var _component_ContentBlock = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ContentBlock"); @@ -1715,32 +1380,18 @@ function AdminPagevue_type_template_id_3ac4f3aa_render(_ctx, _cache, $props, $se "auth-nonce": _ctx.authNonce, "config-nonce": _ctx.configNonce }, null, 8, ["has-client-configuration", "is-configured", "auth-nonce", "config-nonce"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.hasClientConfiguration && _ctx.isConfigured ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_ContentBlock, { - key: 1, - "content-title": _ctx.translate('GoogleAnalyticsImporter_SelectImporter') + key: 1 }, { default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () { - return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("p", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_SelectImporterSelection')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ImportSelector, { - "import-options-ua": _ctx.importOptionsUa, - "import-options-ga4": _ctx.importOptionsGa4, - "onUpdate:selectedImporter": _cache[0] || (_cache[0] = function ($event) { - return _ctx.selectedImporter = $event; - }) - }, null, 8, ["import-options-ua", "import-options-ga4"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", AdminPagevue_type_template_id_3ac4f3aa_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h3", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_ScheduleAnImport')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ImportScheduler, { - "vue-entry": "GoogleAnalyticsImporter.ImportScheduler", - "has-client-configuration": _ctx.hasClientConfiguration, - "is-configured": _ctx.isConfigured, - "start-import-nonce": _ctx.startImportNonce, - "max-end-date-desc": _ctx.maxEndDateDesc, - "extra-custom-dimensions-field": _ctx.extraCustomDimensionsField - }, null, 8, ["has-client-configuration", "is-configured", "start-import-nonce", "max-end-date-desc", "extra-custom-dimensions-field"])], 512), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.selectedImporter === 'ua']]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", AdminPagevue_type_template_id_3ac4f3aa_hoisted_2, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h3", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_ScheduleAnImportGA4')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ImportSchedulerGA4, { + return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", AdminPagevue_type_template_id_89ec9138_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h2", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_ScheduleAnImportGA4')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ImportSchedulerGA4, { "start-import-nonce": _ctx.startImportNonce, "max-end-date-desc": _ctx.maxEndDateDesc, "extra-custom-dimensions-field": _ctx.extraCustomDimensionsFieldGa4, "stream-ids-field": _ctx.streamIdsFieldGa4 - }, null, 8, ["start-import-nonce", "max-end-date-desc", "extra-custom-dimensions-field", "stream-ids-field"])], 512), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.selectedImporter === 'ga4']])]; + }, null, 8, ["start-import-nonce", "max-end-date-desc", "extra-custom-dimensions-field", "stream-ids-field"])])]; }), _: 1 - }, 8, ["content-title"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.hasClientConfiguration && _ctx.isConfigured ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_ContentBlock, { + })) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.hasClientConfiguration && _ctx.isConfigured ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_ContentBlock, { key: 2, id: "importStatusContainer", "content-title": _ctx.translate('GoogleAnalyticsImporter_ImportJobs') @@ -1748,7 +1399,7 @@ function AdminPagevue_type_template_id_3ac4f3aa_render(_ctx, _cache, $props, $se default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () { var _ctx$statuses, _ctx$statuses2; - return [!((_ctx$statuses = _ctx.statuses) !== null && _ctx$statuses !== void 0 && _ctx$statuses.length) ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("p", AdminPagevue_type_template_id_3ac4f3aa_hoisted_3, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_ThereAreNoImportJobs')), 1)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), (_ctx$statuses2 = _ctx.statuses) !== null && _ctx$statuses2 !== void 0 && _ctx$statuses2.length ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_ImportStatus, { + return [!((_ctx$statuses = _ctx.statuses) !== null && _ctx$statuses !== void 0 && _ctx$statuses.length) ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("p", AdminPagevue_type_template_id_89ec9138_hoisted_2, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_ThereAreNoImportJobs')), 1)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), (_ctx$statuses2 = _ctx.statuses) !== null && _ctx$statuses2 !== void 0 && _ctx$statuses2.length ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_ImportStatus, { key: 1, statuses: _ctx.statuses, "stop-import-nonce": _ctx.stopImportNonce, @@ -1758,17 +1409,17 @@ function AdminPagevue_type_template_id_3ac4f3aa_render(_ctx, _cache, $props, $se }, null, 8, ["statuses", "stop-import-nonce", "change-import-end-date-nonce", "resume-import-nonce", "schedule-re-import-nonce"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)]; }), _: 1 - }, 8, ["content-title"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.hasClientConfiguration && _ctx.isConfigured ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", AdminPagevue_type_template_id_3ac4f3aa_hoisted_4, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h2", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_CancelJobConfirm')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", { + }, 8, ["content-title"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.hasClientConfiguration && _ctx.isConfigured ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", AdminPagevue_type_template_id_89ec9138_hoisted_3, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h2", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('GoogleAnalyticsImporter_CancelJobConfirm')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", { role: "yes", type: "button", value: _ctx.translate('General_Yes') - }, null, 8, AdminPagevue_type_template_id_3ac4f3aa_hoisted_5), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", { + }, null, 8, AdminPagevue_type_template_id_89ec9138_hoisted_4), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", { role: "no", type: "button", value: _ctx.translate('General_No') - }, null, 8, AdminPagevue_type_template_id_3ac4f3aa_hoisted_6)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)]); + }, null, 8, AdminPagevue_type_template_id_89ec9138_hoisted_5)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)]); } -// CONCATENATED MODULE: ./plugins/GoogleAnalyticsImporter/vue/src/AdminPage/AdminPage.vue?vue&type=template&id=3ac4f3aa +// CONCATENATED MODULE: ./plugins/GoogleAnalyticsImporter/vue/src/AdminPage/AdminPage.vue?vue&type=template&id=89ec9138 // 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 @@ -1886,8 +1537,6 @@ CommonConnectvue_type_script_lang_ts.render = CommonConnectvue_type_template_id_ - - /* harmony default export */ var AdminPagevue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({ props: { hasClientConfiguration: Boolean, @@ -1951,9 +1600,7 @@ CommonConnectvue_type_script_lang_ts.render = CommonConnectvue_type_template_id_ ImportSchedulerGA4: ImportSchedulerGA4, ContentBlock: external_CoreHome_["ContentBlock"], ClientConfig: ClientConfig, - ImportScheduler: ImportScheduler, - ImportStatus: ImportStatus, - ImportSelector: ImportSelector + ImportStatus: ImportStatus }, data: function data() { return { @@ -1985,7 +1632,7 @@ CommonConnectvue_type_script_lang_ts.render = CommonConnectvue_type_template_id_ -AdminPagevue_type_script_lang_ts.render = AdminPagevue_type_template_id_3ac4f3aa_render +AdminPagevue_type_script_lang_ts.render = AdminPagevue_type_template_id_89ec9138_render /* harmony default export */ var AdminPage = (AdminPagevue_type_script_lang_ts); // CONCATENATED MODULE: ./plugins/GoogleAnalyticsImporter/vue/src/index.ts @@ -2002,8 +1649,6 @@ AdminPagevue_type_script_lang_ts.render = AdminPagevue_type_template_id_3ac4f3aa - - // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js diff --git a/vue/dist/GoogleAnalyticsImporter.umd.min.js b/vue/dist/GoogleAnalyticsImporter.umd.min.js index edd1682af..d2d1e6366 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 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(b)}}}}));var s=n("8bbf"),m={name:"startDate"},p={name:"endDate"},u={name:"propertyId"},d={name:"accountId"},b={name:"viewId"},g={name:"isMobileApp"},O={name:"timezone"},j={name:"extraCustomDimensions"},f={name:"forceIgnoreOutOfCustomDimSlotError"},y={name:"isVerboseLoggingEnabled"},h=["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",b,[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",g,[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",y,[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,h)])}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(){return Object(a["translate"])("GoogleAnalyticsImporter_ForceCustomDimensionSlotCheckHelp",Object(a["externalLink"])("https://matomo.org/docs/custom-dimensions/"),"")},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(){return Object(a["translate"])("GoogleAnalyticsImporter_ForceCustomDimensionSlotCheckHelp",Object(a["externalLink"])("https://matomo.org/docs/custom-dimensions/"),"")},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},be=["title"],ge={key:4},Oe=Object(s["createElementVNode"])("br",null,null,-1),je=["innerHTML"],fe={key:5},ye=["title"],he=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,be)])):"errored"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",ge,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ErrorMessage"))+": "+Object(s["toDisplayString"])(e.status.error||"no message")+" ",1),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,ye),he,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ErrorMessage"))+": "+Object(s["toDisplayString"])(e.status.error||"no message"),1)])):Object(s["createCommentVNode"])("",!0)]),Object(s["createElementVNode"])("td",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,[e.status.isGA4?(Object(s["openBlock"])(),Object(s["createElementBlock"])("a",{key:0,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["createCommentVNode"])("",!0)])]),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",Object(a["externalLink"])("https://forum.matomo.org/"),"")},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},bt=["innerHTML"],gt=["innerHTML"],Ot=["action"],jt=["value"],ft=["disabled","textContent"],yt={key:0,class:"system-success connected-message-successful"},ht=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,bt),Object(s["createElementVNode"])("div",{class:"complete-note-warning",innerHTML:e.$sanitize(e.getOauthCompleteWarningMessage)},null,8,gt),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",yt,[ht,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:{type:String,required:!0},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(){return Object(a["translate"])("GoogleAnalyticsImporter_ConfigureTheImporterLabel3",Object(a["externalLink"])("https://matomo.org/faq/general/set-up-google-analytics-import/"),"")},isUploadButtonDisabled:function(){return this.isSelectingFile||this.isUploading},getAdvanceConnectStep01Text:function(){return this.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep01",Object(a["externalLink"])("https://matomo.org/faq/general/set-up-google-analytics-import/"),"")},getAdvanceConnectStep03Text:function(){return this.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep03",this.translate("GoogleAnalyticsImporter_Authorize"))},getAdvanceConnectStep04Text:function(){return this.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep04",''),"",Object(a["externalLink"])("https://matomo.org/faq/general/running-the-google-analytics-import/"),"")},getAdvanceConnectStep05Text:function(){return this.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep05",Object(a["externalLink"])(this.indexActionUrl),"")},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; +(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,"ImportSchedulerGA4",(function(){return I})),n.d(t,"ImportStatus",(function(){return ve})),n.d(t,"ConfigureConnection",(function(){return ut})),n.d(t,"ClientConfig",(function(){return It})),n.d(t,"AdminPage",(function(){return Bt})),n.d(t,"Connect",(function(){return vt})),"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,u=a["Periods"].parse(s,m).getDateRange(),d=!(r.getTime()>u[1].getTime()||i.getTime()
'.concat(p,"
");c(n).find(".card-content>div").append(b)}}}}));var s=n("8bbf"),m={name:"startDateGA4"},u={name:"endDateGA4"},d={name:"propertyIdGA4"},p={name:"streamIds"},b={name:"isMobileAppGA4"},g={name:"timezoneGA4"},O={name:"extraCustomDimensionsGA4"},j={name:"forceIgnoreOutOfCustomDimSlotErrorGA4"},f={name:"isVerboseLoggingEnabledGA4"},y=["disabled"];function h(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:"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",u,[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",d,[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",p,[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",b,[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",O,[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",j,[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",f,[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,y)])}var C=n("a5a2"),A=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(){return Object(a["translate"])("GoogleAnalyticsImporter_ForceCustomDimensionSlotCheckHelp",Object(a["externalLink"])("https://matomo.org/docs/custom-dimensions/"),"")},isVerboseLoggingEnabledHelp:function(){return Object(a["translate"])("GoogleAnalyticsImporter_IsVerboseLoggingEnabledHelp","/path/to/matomo/tmp/logs/","gaimportlog.$idSite.$matomoDomain.log")}}});A.render=h;var I=A,D={ref:"root"},N={class:"entityTable importStatusesTable"},k={class:"modal",id:"openScheduleReimportModal"},E={class:"modal-content"},S={class:"modal-footer"},G={class:"modal",id:"editImportEndDate"},V={class:"modal-content"},_={class:"modal-footer"};function v(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",D,[Object(s["createElementVNode"])("table",N,[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",k,[Object(s["createElementVNode"])("div",E,[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",S,[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",G,[Object(s["createElementVNode"])("div",V,[Object(s["createElementVNode"])("h3",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_EnterImportEndDate")),1),Object(s["createElementVNode"])("p",null,[Object(s["createElementVNode"])("em",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_LeaveEmptyToRemove")),1)]),Object(s["createElementVNode"])("div",null,[Object(s["createVNode"])(i,{name:"new-import-end-date",uicontrol:"text",modelValue:e.newImportEndDate,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.newImportEndDate=t}),placeholder:"".concat(e.translate("GoogleAnalyticsImporter_EndDate")," (YYYY-MM-DD)")},null,8,["modelValue","placeholder"])])]),Object(s["createElementVNode"])("div",_,[Object(s["createElementVNode"])("a",{href:"",class:"modal-action modal-close btn",onClick:t[5]||(t[5]=function(t){return e.changeImportEndDateModal()}),style:{"margin-right":"3.5px"}},Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Change")),1),Object(s["createElementVNode"])("a",{href:"",class:"modal-action modal-close modal-no",onClick:t[6]||(t[6]=function(t){return e.cancelEditImportEndDateModal()})},Object(s["toDisplayString"])(e.translate("General_Cancel")),1)])])],512)),[[c,{content:e.tooltipContent,delay:500,duration:200}]])}var x=["data-idsite"],B={class:"sitename"},T=["href"],w={key:1,style:{"text-transform":"uppercase"}},M=Object(s["createElementVNode"])("br",null,null,-1),P=["innerHTML"],U={class:"status"},F={key:0},H=["title"],L=Object(s["createElementVNode"])("br",null,null,-1),R={key:0},q={key:1},z=["title"],Y=Object(s["createElementVNode"])("br",null,null,-1),$={key:0},J={key:2},W=["title"],K={key:3},Q=["title"],X={key:4},Z=Object(s["createElementVNode"])("br",null,null,-1),ee=["innerHTML"],te={key:5},ne=["title"],oe=Object(s["createElementVNode"])("br",null,null,-1),re={class:"last-date-imported"},ae=Object(s["createElementVNode"])("br",null,null,-1),le=Object(s["createElementVNode"])("br",null,null,-1),ie=Object(s["createElementVNode"])("br",null,null,-1),ce=Object(s["createElementVNode"])("br",null,null,-1),se=Object(s["createElementVNode"])("br",null,null,-1),me={key:0},ue={class:"scheduled-reimports"},de={key:0},pe={key:1},be={class:"import-start-finish-times"},ge=Object(s["createElementVNode"])("br",null,null,-1),Oe=Object(s["createElementVNode"])("br",null,null,-1),je={key:0},fe={key:1},ye={key:0},he={key:1},Ce={key:2},Ae={key:3},Ie={class:"actions"},De=["title"],Ne=["title"];function ke(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",B,[e.status.site?(Object(s["openBlock"])(),Object(s["createElementBlock"])("a",{key:0,target:"_blank",href:e.siteUrl},Object(s["toDisplayString"])(e.siteName),9,T)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",w,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_SiteDeleted")),1)),M,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,P),Object(s["createElementVNode"])("td",U,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.status.status)+" ",1),"rate_limited"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",F,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_RateLimitHelp")},null,8,H),L,e.status.days_finished_since_rate_limit?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",R,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",q,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.status.error},null,8,z),Y,e.status.days_finished_since_rate_limit?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",$,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",J,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_RateLimitHourlyHelp")},null,8,W)])):Object(s["createCommentVNode"])("",!0),"future_date_import_pending"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",K,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_FutureDateHelp",e.status.future_resume_date)},null,8,Q)])):"errored"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",X,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ErrorMessage"))+": "+Object(s["toDisplayString"])(e.status.error||"no message")+" ",1),Z,Object(s["createElementVNode"])("span",{innerHTML:e.$sanitize(e.errorMessageBugReportRequest)},null,8,ee)])):"killed"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",te,[Object(s["createElementVNode"])("span",{class:"icon icon-help",title:e.translate("GoogleAnalyticsImporter_KilledStatusHelp")},null,8,ne),oe,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",re,[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),ae,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_LastDayArchived"))+": "+Object(s["toDisplayString"])(e.status.last_day_archived||e.noneText),1),le,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImportStartDate"))+": "+Object(s["toDisplayString"])(e.status.import_range_start||e.websiteCreationTime)+" ",1),ie,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImportEndDate"))+": "+Object(s["toDisplayString"])(e.status.import_range_end||e.noneText)+" ",1),ce,se]),"finished"!==e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",me,[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,[e.status.isGA4?(Object(s["openBlock"])(),Object(s["createElementBlock"])("a",{key:0,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["createCommentVNode"])("",!0)])]),Object(s["createElementVNode"])("td",ue,[null!==(l=e.status.reimport_ranges)&&void 0!==l&&l.length?(Object(s["openBlock"])(),Object(s["createElementBlock"])("ul",de,[(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",pe,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_None")),1))]),Object(s["createElementVNode"])("td",be,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImportStartTime"))+": "+Object(s["toDisplayString"])(e.status.import_start_time||e.noneText),1),ge,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_LastResumeTime"))+": "+Object(s["toDisplayString"])(e.status.last_job_start_time||e.noneText),1),Oe,"finished"===e.status.status?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",je,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",fe,[e.thisJobShouldFinishToday?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",ye,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ThisJobShouldFinishToday")),1)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",he,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",Ce,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_JobWillRunUntilManuallyCancelled")),1)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Ae,Object(s["toDisplayString"])(e.translate("General_Unknown")),1))]),Object(s["createElementVNode"])("td",Ie,[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,De),-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,Ne)):Object(s["createCommentVNode"])("",!0)])],8,x)}var Ee=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",Object(a["externalLink"])("https://forum.matomo.org/"),"")},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")}}});Ee.render=ke;var Se=Ee,Ge=window,Ve=Ge.$,_e=Object(s["defineComponent"])({props:{statuses:{type:Array,required:!0},stopImportNonce:{type:String,required:!0},changeImportEndDateNonce:{type:String,required:!0},resumeImportNonce:{type:String,required:!0},scheduleReImportNonce:{type:String,required:!0}},components:{Field:C["Field"],ImportStatusRow:Se},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,Ve("#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,Ve("#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=Ve(this).attr("title")||"";return window.vueSanitize(e.replace(/\n/g,"
"))}}}});_e.render=v;var ve=_e,xe={key:0,class:"form-group row"},Be={class:"col s12 m6"},Te=Object(s["createElementVNode"])("br",null,null,-1),we=["innerHTML"],Me={class:"col s12 m6"},Pe=["innerHTML"],Ue=["innerHTML"],Fe=["textContent"],He={class:"form-group row"},Le=["action"],Re={key:0,type:"hidden",name:"isNoDataPage",value:"1"},qe=["value"],ze=["disabled"],Ye=Object(s["createElementVNode"])("span",{class:"icon-upload"},null,-1),$e=Object(s["createElementVNode"])("span",{class:"icon-upload"},null,-1),Je={key:1,class:"system-success connected-message-successful"},We=Object(s["createElementVNode"])("span",{class:"icon-ok"},null,-1),Ke={key:2},Qe=["innerHTML"],Xe=["innerHTML"],Ze=["action"],et=["value"],tt=["disabled","textContent"],nt={key:0,class:"system-success connected-message-successful"},ot=Object(s["createElementVNode"])("span",{class:"icon-ok"},null,-1),rt=["innerHTML"],at=["textContent"],lt=["innerHTML"],it=["innerHTML"],ct=["textContent"];function st(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",Be,[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),Te,Object(s["createElementVNode"])("span",{innerHTML:e.$sanitize(e.setupGoogleAnalyticsImportFaq)},null,8,we)])]),Object(s["createElementVNode"])("div",Me,[Object(s["createElementVNode"])("div",{class:"form-help",innerHTML:e.$sanitize(e.translate("GoogleAnalyticsImporter_ConfigureTheImporterHelpNewDate","",""))},null,8,Pe)])])),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:1,innerHTML:e.$sanitize(e.getAdvanceConnectStep01Text)},null,8,Ue)):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,Fe)):Object(s["createCommentVNode"])("",!0),Object(s["createElementVNode"])("div",He,[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",Re)):Object(s["createCommentVNode"])("",!0),Object(s["createElementVNode"])("input",{type:"hidden",name:"config_nonce",value:e.manualConfigNonce},null,8,qe),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,[Ye,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("General_Upload")),1)],512),[[s["vShow"],!e.isUploadButtonDisabled]]),Object(s["withDirectives"])(Object(s["createElementVNode"])("span",null,[$e,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Uploading")),1)],512),[[s["vShow"],e.isUploadButtonDisabled]])],8,ze),e.isNoDataPage&&e.hasClientConfiguration?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Je,[We,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_UploadSuccessful")),1)])):Object(s["createCommentVNode"])("",!0)],8,Le)],2)])]})),_:1})),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",Ke,[Object(s["createElementVNode"])("span",{innerHTML:e.$sanitize(e.getAdvanceConnectStep03Text)},null,8,Qe),Object(s["createElementVNode"])("div",{class:"complete-note-warning",innerHTML:e.$sanitize(e.getOauthCompleteWarningMessage)},null,8,Xe),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,et),Object(s["createElementVNode"])("button",{disabled:!1===e.hasClientConfiguration,textContent:Object(s["toDisplayString"])(e.getAuthorizeText),type:"submit",class:"btn btn-forward-to-Oauth"},null,8,tt),e.isNoDataPage&&e.hasClientConfiguration&&e.isConfigured?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",nt,[ot,Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_AccountsConnectedSuccessfully")),1)])):Object(s["createCommentVNode"])("",!0)],8,Ze)])):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:3,innerHTML:e.$sanitize(e.getAdvanceConnectStep04Text)},null,8,rt)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:4,textContent:Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep06GA4"))},null,8,at)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:5,innerHTML:e.$sanitize(e.getAdvanceConnectStep07Text)},null,8,lt)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:6,innerHTML:e.$sanitize(e.getAdvanceConnectStep08Text)},null,8,it)):Object(s["createCommentVNode"])("",!0),e.isNoDataPage?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:7,textContent:Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep09"))},null,8,ct)):Object(s["createCommentVNode"])("",!0)],64)}var mt=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:{type:String,required:!0},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(){return Object(a["translate"])("GoogleAnalyticsImporter_ConfigureTheImporterLabel3",Object(a["externalLink"])("https://matomo.org/faq/general/set-up-google-analytics-import/"),"")},isUploadButtonDisabled:function(){return this.isSelectingFile||this.isUploading},getAdvanceConnectStep01Text:function(){return this.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep01",Object(a["externalLink"])("https://matomo.org/faq/general/set-up-google-analytics-import/"),"")},getAdvanceConnectStep03Text:function(){return this.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep03",this.translate("GoogleAnalyticsImporter_Authorize"))},getAdvanceConnectStep04Text:function(){return this.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep04",''),"",Object(a["externalLink"])("https://matomo.org/faq/general/running-the-google-analytics-import/"),"")},getAdvanceConnectStep05Text:function(){return this.translate("GoogleAnalyticsImporter_GAImportNoDataScreenStep05",Object(a["externalLink"])(this.indexActionUrl),"")},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}});mt.render=st;var ut=mt,dt=["action"],pt=["value"],bt={key:0},gt={type:"submit",class:"btn"},Ot={key:1},jt={type:"submit",class:"btn"},ft=["action"],yt=["value"],ht={type:"submit",class:"btn"};function Ct(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,pt),e.isConfigured?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",bt,[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ImporterIsConfigured")),1),Object(s["createElementVNode"])("button",gt,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ReAuthorize")),1)])):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Ot,[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ClientConfigSuccessfullyUpdated")),1),Object(s["createElementVNode"])("button",jt,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_Authorize")),1)]))],8,dt)]})),_: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,yt),Object(s["createElementVNode"])("button",ht,Object(s["toDisplayString"])(e.translate("General_Remove")),1)],8,ft)]})),_:1},8,["content-title"])):Object(s["createCommentVNode"])("",!0)])}var At=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"})))}}});At.render=Ct;var It=At,Dt={class:"hide-import-main-div ga-import-main-div ga4-main-div"},Nt={key:0},kt={key:3,class:"ui-confirm",id:"confirmCancelJob"},Et=["value"],St=["value"];function Gt(e,t,n,o,r,a){var l=Object(s["resolveComponent"])("CommonConnect"),i=Object(s["resolveComponent"])("ClientConfig"),c=Object(s["resolveComponent"])("ImportSchedulerGA4"),m=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"])(m,{key:1},{default:Object(s["withCtx"])((function(){return[Object(s["createElementVNode"])("div",Dt,[Object(s["createElementVNode"])("h2",null,Object(s["toDisplayString"])(e.translate("GoogleAnalyticsImporter_ScheduleAnImportGA4")),1),Object(s["createVNode"])(c,{"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"])])]})),_:1})):Object(s["createCommentVNode"])("",!0),e.hasClientConfiguration&&e.isConfigured?(Object(s["openBlock"])(),Object(s["createBlock"])(m,{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",Nt,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",kt,[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,Et),Object(s["createElementVNode"])("input",{role:"no",type:"button",value:e.translate("General_No")},null,8,St)])):Object(s["createCommentVNode"])("",!0)])}function Vt(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 _t=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}}});_t.render=Vt;var vt=_t,xt=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:vt,ImportSchedulerGA4:I,ContentBlock:a["ContentBlock"],ClientConfig:It,ImportStatus:ve},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}}});xt.render=Gt;var Bt=xt; /*! * Matomo - free/libre analytics platform * diff --git a/vue/src/AdminPage/AdminPage.vue b/vue/src/AdminPage/AdminPage.vue index 4a459c988..38d375279 100644 --- a/vue/src/AdminPage/AdminPage.vue +++ b/vue/src/AdminPage/AdminPage.vue @@ -21,36 +21,12 @@ -

{{ translate('GoogleAnalyticsImporter_SelectImporterSelection') }}

- - - -
-

{{ translate('GoogleAnalyticsImporter_ScheduleAnImport') }}

- -
-

{{ translate('GoogleAnalyticsImporter_ScheduleAnImportGA4') }}

+

{{ translate('GoogleAnalyticsImporter_ScheduleAnImportGA4') }}

  • -
  • -
  • + v-text="translate('GoogleAnalyticsImporter_GAImportNoDataScreenStep06GA4')">
  • diff --git a/vue/src/ImportScheduler/ImportScheduler.vue b/vue/src/ImportScheduler/ImportScheduler.vue deleted file mode 100644 index f5258f234..000000000 --- a/vue/src/ImportScheduler/ImportScheduler.vue +++ /dev/null @@ -1,271 +0,0 @@ - - - - - diff --git a/vue/src/ImportScheduler/ImportSelector.vue b/vue/src/ImportScheduler/ImportSelector.vue deleted file mode 100644 index fc7c187a7..000000000 --- a/vue/src/ImportScheduler/ImportSelector.vue +++ /dev/null @@ -1,60 +0,0 @@ - - diff --git a/vue/src/index.ts b/vue/src/index.ts index 08f3c3362..83a2ea0ed 100644 --- a/vue/src/index.ts +++ b/vue/src/index.ts @@ -7,9 +7,7 @@ import './onWidgetLoaded'; -export { default as ImportScheduler } from './ImportScheduler/ImportScheduler.vue'; export { default as ImportSchedulerGA4 } from './ImportScheduler/ImportSchedulerGA4.vue'; -export { default as ImportSelector } from './ImportScheduler/ImportSelector.vue'; export { default as ImportStatus } from './ImportStatus/ImportStatus.vue'; export { default as ConfigureConnection } from './Configure/ConfigureConnection.vue'; export { default as ClientConfig } from './ClientConfig/ClientConfig.vue';