diff --git a/plugins/Marketplace/vue/dist/Marketplace.umd.js b/plugins/Marketplace/vue/dist/Marketplace.umd.js index f2f7e5861bee..7dbebf0879fb 100644 --- a/plugins/Marketplace/vue/dist/Marketplace.umd.js +++ b/plugins/Marketplace/vue/dist/Marketplace.umd.js @@ -156,7 +156,7 @@ if (typeof window !== 'undefined') { // 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/Marketplace/vue/src/Marketplace/Marketplace.vue?vue&type=template&id=3d6ddffa +// 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/Marketplace/vue/src/Marketplace/Marketplace.vue?vue&type=template&id=16f1c1c3 var _hoisted_1 = { class: "row marketplaceActions", @@ -221,6 +221,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { "is-auto-update-possible": _ctx.isAutoUpdatePossible, "is-super-user": _ctx.isSuperUser, "is-multi-server-environment": _ctx.isMultiServerEnvironment, + "has-some-admin-access": _ctx.hasSomeAdminAccess, "is-plugins-admin-enabled": _ctx.isPluginsAdminEnabled, "is-valid-consumer": _ctx.isValidConsumer, "deactivate-nonce": _ctx.deactivateNonce, @@ -230,7 +231,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { onTriggerUpdate: _cache[0] || (_cache[0] = function ($event) { return _this.fetchPlugins(); }) - }, null, 8, ["plugins-to-show", "current-user-email", "is-auto-update-possible", "is-super-user", "is-multi-server-environment", "is-plugins-admin-enabled", "is-valid-consumer", "deactivate-nonce", "activate-nonce", "install-nonce", "update-nonce"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), !_ctx.loading && _ctx.pluginsToShow.length == 0 ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_ContentBlock, { + }, null, 8, ["plugins-to-show", "current-user-email", "is-auto-update-possible", "is-super-user", "is-multi-server-environment", "has-some-admin-access", "is-plugins-admin-enabled", "is-valid-consumer", "deactivate-nonce", "activate-nonce", "install-nonce", "update-nonce"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), !_ctx.loading && _ctx.pluginsToShow.length == 0 ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_ContentBlock, { key: 1 }, { default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () { @@ -249,7 +250,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { _: 1 })) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64); } -// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/Marketplace/Marketplace.vue?vue&type=template&id=3d6ddffa +// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/Marketplace/Marketplace.vue?vue&type=template&id=16f1c1c3 // EXTERNAL MODULE: external "CoreHome" var external_CoreHome_ = __webpack_require__("19dc"); @@ -257,81 +258,78 @@ var external_CoreHome_ = __webpack_require__("19dc"); // EXTERNAL MODULE: external "CorePluginsAdmin" var external_CorePluginsAdmin_ = __webpack_require__("a5a2"); -// 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/Marketplace/vue/src/PluginList/PluginList.vue?vue&type=template&id=7a241061 +// 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/Marketplace/vue/src/PluginList/PluginList.vue?vue&type=template&id=3404bfd4 -var PluginListvue_type_template_id_7a241061_hoisted_1 = { +var PluginListvue_type_template_id_3404bfd4_hoisted_1 = { key: 0, class: "pluginListContainer row" }; -var PluginListvue_type_template_id_7a241061_hoisted_2 = { +var PluginListvue_type_template_id_3404bfd4_hoisted_2 = ["onClick"]; +var PluginListvue_type_template_id_3404bfd4_hoisted_3 = { class: "card" }; -var PluginListvue_type_template_id_7a241061_hoisted_3 = { +var PluginListvue_type_template_id_3404bfd4_hoisted_4 = { class: "card-content" }; -var PluginListvue_type_template_id_7a241061_hoisted_4 = ["src"]; -var PluginListvue_type_template_id_7a241061_hoisted_5 = { +var PluginListvue_type_template_id_3404bfd4_hoisted_5 = ["src"]; +var PluginListvue_type_template_id_3404bfd4_hoisted_6 = { class: "content-container" }; -var PluginListvue_type_template_id_7a241061_hoisted_6 = { +var PluginListvue_type_template_id_3404bfd4_hoisted_7 = { class: "card-content-top" }; -var PluginListvue_type_template_id_7a241061_hoisted_7 = { +var _hoisted_8 = { key: 0, class: "matomo-badge matomo-badge-top", src: "plugins/Marketplace/images/matomo-badge.png", "aria-label": "Matomo plugin", alt: "" }; -var _hoisted_8 = { - class: "price" -}; var _hoisted_9 = { - class: "card-title-link", - href: "#", - tabindex: "7" + class: "price" }; +var _hoisted_10 = ["onClick"]; -var _hoisted_10 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", { +var _hoisted_11 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", { class: "card-focus" }, null, -1); -var _hoisted_11 = { +var _hoisted_12 = { class: "card-title" }; -var _hoisted_12 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { +var _hoisted_13 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { class: "card-title-chevron" }, " ›", -1); -var _hoisted_13 = { +var _hoisted_14 = { class: "card-description" }; -var _hoisted_14 = { +var _hoisted_15 = { class: "card-content-bottom" }; -var _hoisted_15 = { +var _hoisted_16 = { key: 0, class: "downloads" }; -var _hoisted_16 = { +var _hoisted_17 = { class: "cta-container" }; -var _hoisted_17 = { +var _hoisted_18 = { key: 1, class: "matomo-badge matomo-badge-bottom", src: "plugins/Marketplace/images/matomo-badge.png", "aria-label": "Matomo plugin", alt: "" }; -function PluginListvue_type_template_id_7a241061_render(_ctx, _cache, $props, $setup, $data, $options) { +function PluginListvue_type_template_id_3404bfd4_render(_ctx, _cache, $props, $setup, $data, $options) { var _this = this; var _component_StartFreeTrial = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("StartFreeTrial"); - var _component_CTAContainer = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CTAContainer"); + var _component_PluginDetailsModal = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("PluginDetailsModal"); - var _directive_plugin_name = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDirective"])("plugin-name"); + var _component_CTAContainer = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CTAContainer"); 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, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_StartFreeTrial, { "current-user-email": _ctx.currentUserEmail, @@ -341,28 +339,51 @@ function PluginListvue_type_template_id_7a241061_render(_ctx, _cache, $props, $s return _ctx.showStartFreeTrialForPlugin = $event; }), onTrialStarted: _cache[1] || (_cache[1] = function ($event) { - return _this.$emit('triggerUpdate'); + return _ctx.$emit('triggerUpdate'); + }) + }, null, 8, ["current-user-email", "is-valid-consumer", "modelValue"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_PluginDetailsModal, { + modelValue: _ctx.showPluginDetailsForPlugin, + "onUpdate:modelValue": _cache[2] || (_cache[2] = function ($event) { + return _ctx.showPluginDetailsForPlugin = $event; + }), + "is-super-user": _ctx.isSuperUser, + "is-plugins-admin-enabled": _ctx.isPluginsAdminEnabled, + "is-multi-server-environment": _ctx.isMultiServerEnvironment, + "is-valid-consumer": _ctx.isValidConsumer, + "is-auto-update-possible": _ctx.isAutoUpdatePossible, + "has-some-admin-access": _ctx.hasSomeAdminAccess, + "deactivate-nonce": _ctx.deactivateNonce, + "activate-nonce": _ctx.activateNonce, + "install-nonce": _ctx.installNonce, + "update-nonce": _ctx.updateNonce, + onStartFreeTrial: _cache[3] || (_cache[3] = function ($event) { + return _this.showStartFreeTrialForPlugin = $event; }) - }, null, 8, ["current-user-email", "is-valid-consumer", "modelValue"]), _ctx.pluginsToShow.length > 0 ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", PluginListvue_type_template_id_7a241061_hoisted_1, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.pluginsToShow, function (plugin) { + }, null, 8, ["modelValue", "is-super-user", "is-plugins-admin-enabled", "is-multi-server-environment", "is-valid-consumer", "is-auto-update-possible", "has-some-admin-access", "deactivate-nonce", "activate-nonce", "install-nonce", "update-nonce"]), _ctx.pluginsToShow.length > 0 ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", PluginListvue_type_template_id_3404bfd4_hoisted_1, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.pluginsToShow, function (plugin) { return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", { class: "col s12 m6 l4", key: plugin.name }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", { class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])("card-holder ".concat(plugin.numDownloads > 0 ? 'card-with-downloads' : '')), - onClick: _cache[2] || (_cache[2] = function () { - return _ctx.clickCard && _ctx.clickCard.apply(_ctx, arguments); - }) - }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginListvue_type_template_id_7a241061_hoisted_2, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginListvue_type_template_id_7a241061_hoisted_3, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("img", { + onClick: function onClick($event) { + return _ctx.clickCard($event, plugin); + } + }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginListvue_type_template_id_3404bfd4_hoisted_3, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginListvue_type_template_id_3404bfd4_hoisted_4, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("img", { src: "".concat(plugin.coverImage, "?w=880&h=480"), alt: "", class: "cover-image" - }, null, 8, PluginListvue_type_template_id_7a241061_hoisted_4), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginListvue_type_template_id_7a241061_hoisted_5, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginListvue_type_template_id_7a241061_hoisted_6, ['piwik' == plugin.owner || 'matomo-org' == plugin.owner ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("img", PluginListvue_type_template_id_7a241061_hoisted_7)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_8, [plugin.priceFrom ? (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, 8, PluginListvue_type_template_id_3404bfd4_hoisted_5), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginListvue_type_template_id_3404bfd4_hoisted_6, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginListvue_type_template_id_3404bfd4_hoisted_7, ['piwik' == plugin.owner || 'matomo-org' == plugin.owner ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("img", _hoisted_8)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_9, [plugin.priceFrom ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], { key: 0 }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_PriceFromPerPeriod', plugin.priceFrom.prettyPrice, plugin.priceFrom.period)), 1)], 64)) : plugin.isFree ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], { key: 1 - }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_Free')), 1)], 64)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("a", _hoisted_9, [_hoisted_10, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h2", _hoisted_11, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(plugin.displayName), 1), _hoisted_12])], 512), [[_directive_plugin_name, { - pluginName: plugin.name - }]]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_13, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(plugin.description), 1)]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_14, [plugin.numDownloads > 0 ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", _hoisted_15, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(plugin.numDownloadsPretty) + " " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('General_Downloads').toLowerCase()), 1)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_16, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CTAContainer, { + }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_Free')), 1)], 64)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("a", { + onClick: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withModifiers"])(function ($event) { + return _ctx.clickCard($event, plugin); + }, ["prevent"]), + class: "card-title-link", + href: "#", + tabindex: "7" + }, [_hoisted_11, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h2", _hoisted_12, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(plugin.displayName), 1), _hoisted_13])], 8, _hoisted_10), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_14, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(plugin.description), 1)]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_15, [plugin.numDownloads > 0 ? (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_["toDisplayString"])(plugin.numDownloadsPretty) + " " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('General_Downloads').toLowerCase()), 1)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_17, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CTAContainer, { "is-super-user": _ctx.isSuperUser, "is-plugins-admin-enabled": _ctx.isPluginsAdminEnabled, "is-multi-server-environment": _ctx.isMultiServerEnvironment, @@ -373,71 +394,77 @@ function PluginListvue_type_template_id_7a241061_render(_ctx, _cache, $props, $s "install-nonce": _ctx.installNonce, "update-nonce": _ctx.updateNonce, plugin: plugin, + "in-modal": false, onStartFreeTrial: function onStartFreeTrial($event) { return _ctx.showStartFreeTrialForPlugin = plugin.name; + }, + onOpenDetailsModal: function onOpenDetailsModal($event) { + return _this.openDetailsModal(plugin); } - }, null, 8, ["is-super-user", "is-plugins-admin-enabled", "is-multi-server-environment", "is-valid-consumer", "is-auto-update-possible", "activate-nonce", "deactivate-nonce", "install-nonce", "update-nonce", "plugin", "onStartFreeTrial"])]), 'piwik' == plugin.owner || 'matomo-org' == plugin.owner ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("img", _hoisted_17)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)])])])])], 2)]); + }, null, 8, ["is-super-user", "is-plugins-admin-enabled", "is-multi-server-environment", "is-valid-consumer", "is-auto-update-possible", "activate-nonce", "deactivate-nonce", "install-nonce", "update-nonce", "plugin", "onStartFreeTrial", "onOpenDetailsModal"])]), 'piwik' == plugin.owner || 'matomo-org' == plugin.owner ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("img", _hoisted_18)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)])])])])], 10, PluginListvue_type_template_id_3404bfd4_hoisted_2)]); }), 128))])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64); } -// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/PluginList/PluginList.vue?vue&type=template&id=7a241061 +// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/PluginList/PluginList.vue?vue&type=template&id=3404bfd4 -// 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/Marketplace/vue/src/PluginList/CTAContainer.vue?vue&type=template&id=1a5b8f3b +// 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/Marketplace/vue/src/PluginList/CTAContainer.vue?vue&type=template&id=aa0e994c -var CTAContainervue_type_template_id_1a5b8f3b_hoisted_1 = { +var CTAContainervue_type_template_id_aa0e994c_hoisted_1 = { key: 0, class: "alert alert-danger alert-no-background" }; -var CTAContainervue_type_template_id_1a5b8f3b_hoisted_2 = { +var CTAContainervue_type_template_id_aa0e994c_hoisted_2 = { + key: 0, style: { "white-space": "nowrap" } }; -var CTAContainervue_type_template_id_1a5b8f3b_hoisted_3 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])("("); +var CTAContainervue_type_template_id_aa0e994c_hoisted_3 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])("("); -var CTAContainervue_type_template_id_1a5b8f3b_hoisted_4 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(")"); +var CTAContainervue_type_template_id_aa0e994c_hoisted_4 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(")"); -var CTAContainervue_type_template_id_1a5b8f3b_hoisted_5 = { +var CTAContainervue_type_template_id_aa0e994c_hoisted_5 = { key: 1, class: "alert alert-danger alert-no-background" }; -var CTAContainervue_type_template_id_1a5b8f3b_hoisted_6 = { +var CTAContainervue_type_template_id_aa0e994c_hoisted_6 = { + key: 0, style: { "white-space": "nowrap" } }; -var CTAContainervue_type_template_id_1a5b8f3b_hoisted_7 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])("("); +var CTAContainervue_type_template_id_aa0e994c_hoisted_7 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])("("); -var CTAContainervue_type_template_id_1a5b8f3b_hoisted_8 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(")"); +var CTAContainervue_type_template_id_aa0e994c_hoisted_8 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(")"); -var CTAContainervue_type_template_id_1a5b8f3b_hoisted_9 = ["href"]; -var CTAContainervue_type_template_id_1a5b8f3b_hoisted_10 = { +var CTAContainervue_type_template_id_aa0e994c_hoisted_9 = ["href"]; +var CTAContainervue_type_template_id_aa0e994c_hoisted_10 = { key: 1, class: "alert alert-warning alert-no-background" }; -var CTAContainervue_type_template_id_1a5b8f3b_hoisted_11 = { +var CTAContainervue_type_template_id_aa0e994c_hoisted_11 = { style: { "white-space": "nowrap" } }; -var CTAContainervue_type_template_id_1a5b8f3b_hoisted_12 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])("("); +var CTAContainervue_type_template_id_aa0e994c_hoisted_12 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])("("); -var CTAContainervue_type_template_id_1a5b8f3b_hoisted_13 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(")"); +var CTAContainervue_type_template_id_aa0e994c_hoisted_13 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(")"); -var CTAContainervue_type_template_id_1a5b8f3b_hoisted_14 = { +var CTAContainervue_type_template_id_aa0e994c_hoisted_14 = { key: 3, class: "alert alert-success alert-no-background" }; -var CTAContainervue_type_template_id_1a5b8f3b_hoisted_15 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" ("); +var CTAContainervue_type_template_id_aa0e994c_hoisted_15 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" ("); -var CTAContainervue_type_template_id_1a5b8f3b_hoisted_16 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(") "); +var CTAContainervue_type_template_id_aa0e994c_hoisted_16 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(") "); -var CTAContainervue_type_template_id_1a5b8f3b_hoisted_17 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" ("); +var CTAContainervue_type_template_id_aa0e994c_hoisted_17 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" ("); -var _hoisted_18 = ["href"]; +var CTAContainervue_type_template_id_aa0e994c_hoisted_18 = ["href"]; var _hoisted_19 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" - "); @@ -461,47 +488,50 @@ var _hoisted_25 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_V var _hoisted_26 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(")"); var _hoisted_27 = ["href"]; -function CTAContainervue_type_template_id_1a5b8f3b_render(_ctx, _cache, $props, $setup, $data, $options) { - var _this = this; - - var _component_HelpLink = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("HelpLink"); +function CTAContainervue_type_template_id_aa0e994c_render(_ctx, _cache, $props, $setup, $data, $options) { + var _component_MoreDetailsAction = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("MoreDetailsAction"); var _component_DownloadButton = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("DownloadButton"); - var _component_MoreDetailsButton = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("MoreDetailsButton"); - return _ctx.isSuperUser ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], { key: 0 - }, [_ctx.plugin.isMissingLicense ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", CTAContainervue_type_template_id_1a5b8f3b_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_LicenseMissing')) + " ", 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", CTAContainervue_type_template_id_1a5b8f3b_hoisted_2, [CTAContainervue_type_template_id_1a5b8f3b_hoisted_3, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_HelpLink, { - "plugin-name": _ctx.plugin.name - }, null, 8, ["plugin-name"]), CTAContainervue_type_template_id_1a5b8f3b_hoisted_4])])) : _ctx.plugin.hasExceededLicense ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", CTAContainervue_type_template_id_1a5b8f3b_hoisted_5, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_LicenseExceeded')) + " ", 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", CTAContainervue_type_template_id_1a5b8f3b_hoisted_6, [CTAContainervue_type_template_id_1a5b8f3b_hoisted_7, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_HelpLink, { - "plugin-name": _ctx.plugin.name - }, null, 8, ["plugin-name"]), CTAContainervue_type_template_id_1a5b8f3b_hoisted_8])])) : _ctx.plugin.canBeUpdated && 0 == _ctx.plugin.missingRequirements.length ? (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"], { + }, [_ctx.plugin.isMissingLicense ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", CTAContainervue_type_template_id_aa0e994c_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_LicenseMissing')) + " ", 1), !_ctx.inModal ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", CTAContainervue_type_template_id_aa0e994c_hoisted_2, [CTAContainervue_type_template_id_aa0e994c_hoisted_3, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_MoreDetailsAction, { + onAction: _cache[0] || (_cache[0] = function ($event) { + return _ctx.$emit('openDetailsModal'); + }) + }), CTAContainervue_type_template_id_aa0e994c_hoisted_4])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)])) : _ctx.plugin.hasExceededLicense ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", CTAContainervue_type_template_id_aa0e994c_hoisted_5, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_LicenseExceeded')) + " ", 1), !_ctx.inModal ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", CTAContainervue_type_template_id_aa0e994c_hoisted_6, [CTAContainervue_type_template_id_aa0e994c_hoisted_7, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_MoreDetailsAction, { + onAction: _cache[1] || (_cache[1] = function ($event) { + return _ctx.$emit('openDetailsModal'); + }) + }), CTAContainervue_type_template_id_aa0e994c_hoisted_8])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)])) : _ctx.plugin.canBeUpdated && 0 == _ctx.plugin.missingRequirements.length ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], { key: 2 }, [_ctx.isAutoUpdatePossible ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("a", { key: 0, tabindex: "7", class: "btn btn-block", href: _ctx.linkToUpdate(_ctx.plugin.name) - }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('CoreUpdater_UpdateTitle')), 9, CTAContainervue_type_template_id_1a5b8f3b_hoisted_9)) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", CTAContainervue_type_template_id_1a5b8f3b_hoisted_10, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_CannotUpdate')) + " ", 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", CTAContainervue_type_template_id_1a5b8f3b_hoisted_11, [CTAContainervue_type_template_id_1a5b8f3b_hoisted_12, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_HelpLink, { - "plugin-name": _ctx.plugin.name - }, null, 8, ["plugin-name"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_DownloadButton, { + }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('CoreUpdater_UpdateTitle')), 9, CTAContainervue_type_template_id_aa0e994c_hoisted_9)) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", CTAContainervue_type_template_id_aa0e994c_hoisted_10, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_CannotUpdate')) + " ", 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", CTAContainervue_type_template_id_aa0e994c_hoisted_11, [CTAContainervue_type_template_id_aa0e994c_hoisted_12, !_ctx.inModal ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_MoreDetailsAction, { + key: 0, + onAction: _cache[2] || (_cache[2] = function ($event) { + return _ctx.$emit('openDetailsModal'); + }) + })) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_DownloadButton, { plugin: _ctx.plugin, "show-or": true, "is-auto-update-possible": _ctx.isAutoUpdatePossible - }, null, 8, ["plugin", "is-auto-update-possible"]), CTAContainervue_type_template_id_1a5b8f3b_hoisted_13])]))], 64)) : _ctx.plugin.isInstalled ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", CTAContainervue_type_template_id_1a5b8f3b_hoisted_14, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('General_Installed')) + " ", 1), _ctx.plugin.missingRequirements.length > 0 || !_ctx.isAutoUpdatePossible ? (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, 8, ["plugin", "is-auto-update-possible"]), CTAContainervue_type_template_id_aa0e994c_hoisted_13])]))], 64)) : _ctx.plugin.isInstalled ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", CTAContainervue_type_template_id_aa0e994c_hoisted_14, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('General_Installed')) + " ", 1), _ctx.plugin.missingRequirements.length > 0 || !_ctx.isAutoUpdatePossible ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], { key: 0 - }, [CTAContainervue_type_template_id_1a5b8f3b_hoisted_15, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_DownloadButton, { + }, [CTAContainervue_type_template_id_aa0e994c_hoisted_15, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_DownloadButton, { plugin: _ctx.plugin, "show-or": false, "is-auto-update-possible": _ctx.isAutoUpdatePossible - }, null, 8, ["plugin", "is-auto-update-possible"]), CTAContainervue_type_template_id_1a5b8f3b_hoisted_16], 64)) : !_ctx.plugin.isInvalid && !_ctx.isMultiServerEnvironment && _ctx.isPluginsAdminEnabled ? (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, 8, ["plugin", "is-auto-update-possible"]), CTAContainervue_type_template_id_aa0e994c_hoisted_16], 64)) : !_ctx.plugin.isInvalid && !_ctx.isMultiServerEnvironment && _ctx.isPluginsAdminEnabled ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], { key: 1 - }, [CTAContainervue_type_template_id_1a5b8f3b_hoisted_17, _ctx.plugin.isActivated ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("a", { + }, [CTAContainervue_type_template_id_aa0e994c_hoisted_17, _ctx.plugin.isActivated ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("a", { key: 0, tabindex: "7", href: _ctx.linkToDeactivate(_ctx.plugin.name) - }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('CorePluginsAdmin_Deactivate')), 9, _hoisted_18)) : _ctx.plugin.missingRequirements.length > 0 ? (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"], { + }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('CorePluginsAdmin_Deactivate')), 9, CTAContainervue_type_template_id_aa0e994c_hoisted_18)) : _ctx.plugin.missingRequirements.length > 0 ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], { key: 1 }, [_hoisted_19], 64)) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("a", { key: 2, @@ -512,16 +542,26 @@ function CTAContainervue_type_template_id_1a5b8f3b_render(_ctx, _cache, $props, tabindex: "7", class: "btn btn-block purchaseable", href: "", - onClick: _cache[0] || (_cache[0] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withModifiers"])(function ($event) { - _this.$emit('startFreeTrial'); + onClick: _cache[3] || (_cache[3] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withModifiers"])(function ($event) { + _ctx.$emit('startFreeTrial'); }, ["prevent"])), + onKeyup: _cache[4] || (_cache[4] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withKeys"])(function ($event) { + return _ctx.$emit('startFreeTrial'); + }, ["enter"])), title: _ctx.translate('Marketplace_StartFreeTrial') - }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_StartFreeTrial')), 9, _hoisted_22)) : !_ctx.plugin.isDownloadable && (_ctx.plugin.isPaid || _ctx.plugin.missingRequirements.length > 0 || !_ctx.isAutoUpdatePossible) ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_MoreDetailsButton, { + }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_StartFreeTrial')), 41, _hoisted_22)) : !_ctx.inModal && !_ctx.plugin.isDownloadable && (_ctx.plugin.isPaid || _ctx.plugin.missingRequirements.length > 0 || !_ctx.isAutoUpdatePossible) ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_MoreDetailsAction, { key: 5, - "plugin-name": _ctx.plugin.name - }, null, 8, ["plugin-name"])) : _ctx.plugin.missingRequirements.length > 0 || !_ctx.isAutoUpdatePossible ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", _hoisted_23, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_CannotInstall')) + " ", 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", _hoisted_24, [_hoisted_25, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_HelpLink, { - "plugin-name": _ctx.plugin.name - }, null, 8, ["plugin-name"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_DownloadButton, { + "show-as-button": true, + label: _ctx.translate('General_MoreDetails'), + onAction: _cache[5] || (_cache[5] = function ($event) { + return _ctx.$emit('openDetailsModal'); + }) + }, null, 8, ["label"])) : _ctx.plugin.missingRequirements.length > 0 || !_ctx.isAutoUpdatePossible ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", _hoisted_23, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_CannotInstall')) + " ", 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", _hoisted_24, [_hoisted_25, !_ctx.inModal ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_MoreDetailsAction, { + key: 0, + onAction: _cache[6] || (_cache[6] = function ($event) { + return _ctx.$emit('openDetailsModal'); + }) + })) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_DownloadButton, { plugin: _ctx.plugin, "show-or": true, "is-auto-update-possible": _ctx.isAutoUpdatePossible @@ -530,12 +570,18 @@ function CTAContainervue_type_template_id_1a5b8f3b_render(_ctx, _cache, $props, tabindex: "7", href: _ctx.linkToInstall(_ctx.plugin.name), class: "btn btn-block" - }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_ActionInstall')), 9, _hoisted_27))], 64)) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_MoreDetailsButton, { - key: 1, - "plugin-name": _ctx.plugin.name - }, null, 8, ["plugin-name"])); + }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_ActionInstall')), 9, _hoisted_27))], 64)) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], { + key: 1 + }, [!_ctx.inModal ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_MoreDetailsAction, { + key: 0, + "show-as-button": true, + label: _ctx.translate('General_MoreDetails'), + onAction: _cache[7] || (_cache[7] = function ($event) { + return _ctx.$emit('openDetailsModal'); + }) + }, null, 8, ["label"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64)); } -// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/PluginList/CTAContainer.vue?vue&type=template&id=1a5b8f3b +// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/PluginList/CTAContainer.vue?vue&type=template&id=aa0e994c // 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/Marketplace/vue/src/PluginList/DownloadButton.vue?vue&type=template&id=201a6490 @@ -593,93 +639,58 @@ function DownloadButtonvue_type_template_id_201a6490_render(_ctx, _cache, $props DownloadButtonvue_type_script_lang_ts.render = DownloadButtonvue_type_template_id_201a6490_render /* harmony default export */ var DownloadButton = (DownloadButtonvue_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/Marketplace/vue/src/PluginList/HelpLink.vue?vue&type=template&id=23319ff8 - -var HelpLinkvue_type_template_id_23319ff8_hoisted_1 = ["title"]; -function HelpLinkvue_type_template_id_23319ff8_render(_ctx, _cache, $props, $setup, $data, $options) { - var _directive_plugin_name = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDirective"])("plugin-name"); +// 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/Marketplace/vue/src/PluginList/MoreDetailsAction.vue?vue&type=template&id=3596d57c - 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"])("a", { +var MoreDetailsActionvue_type_template_id_3596d57c_hoisted_1 = ["title"]; +function MoreDetailsActionvue_type_template_id_3596d57c_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"])("a", { tabindex: "7", - class: "plugin-details", - href: "#", - title: _ctx.translate('General_MoreDetails') - }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('General_Help')), 1)], 8, HelpLinkvue_type_template_id_23319ff8_hoisted_1)), [[_directive_plugin_name, { - pluginName: _ctx.pluginName - }]]); -} -// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/PluginList/HelpLink.vue?vue&type=template&id=23319ff8 - -// 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/Marketplace/vue/src/PluginList/HelpLink.vue?vue&type=script&lang=ts - - -/* harmony default export */ var HelpLinkvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({ - props: { - pluginName: { - type: String, - required: true - } - }, - directives: { - PluginName: external_CorePluginsAdmin_["PluginName"] - } -})); -// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/PluginList/HelpLink.vue?vue&type=script&lang=ts - -// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/PluginList/HelpLink.vue - - - -HelpLinkvue_type_script_lang_ts.render = HelpLinkvue_type_template_id_23319ff8_render - -/* harmony default export */ var HelpLink = (HelpLinkvue_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/Marketplace/vue/src/PluginList/MoreDetailsButton.vue?vue&type=template&id=1aea9c26 - -var MoreDetailsButtonvue_type_template_id_1aea9c26_hoisted_1 = ["title"]; -function MoreDetailsButtonvue_type_template_id_1aea9c26_render(_ctx, _cache, $props, $setup, $data, $options) { - var _directive_plugin_name = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDirective"])("plugin-name"); - - 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"])("a", { - tabindex: "7", - class: "btn btn-block", - href: "#", - title: _ctx.translate('General_MoreDetails') - }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('General_MoreDetails')), 1)], 8, MoreDetailsButtonvue_type_template_id_1aea9c26_hoisted_1)), [[_directive_plugin_name, { - pluginName: _ctx.pluginName - }]]); + class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])({ + 'btn btn-block': _ctx.showAsButton + }), + href: "", + title: _ctx.translate('General_MoreDetails'), + onClick: _cache[0] || (_cache[0] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withModifiers"])(function ($event) { + return _ctx.$emit('action'); + }, ["prevent"])), + onKeyup: _cache[1] || (_cache[1] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withKeys"])(function ($event) { + return _ctx.$emit('action'); + }, ["enter"])) + }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.label ? _ctx.label : _ctx.translate('General_Help')), 43, MoreDetailsActionvue_type_template_id_3596d57c_hoisted_1); } -// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/PluginList/MoreDetailsButton.vue?vue&type=template&id=1aea9c26 - -// 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/Marketplace/vue/src/PluginList/MoreDetailsButton.vue?vue&type=script&lang=ts +// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/PluginList/MoreDetailsAction.vue?vue&type=template&id=3596d57c +// 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/Marketplace/vue/src/PluginList/MoreDetailsAction.vue?vue&type=script&lang=ts -/* harmony default export */ var MoreDetailsButtonvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({ +/* harmony default export */ var MoreDetailsActionvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({ props: { - pluginName: { + showAsButton: { + type: Boolean, + required: false, + default: false + }, + label: { type: String, - required: true + required: false } }, - directives: { - PluginName: external_CorePluginsAdmin_["PluginName"] - } + emits: ['action'] })); -// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/PluginList/MoreDetailsButton.vue?vue&type=script&lang=ts +// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/PluginList/MoreDetailsAction.vue?vue&type=script&lang=ts -// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/PluginList/MoreDetailsButton.vue +// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/PluginList/MoreDetailsAction.vue -MoreDetailsButtonvue_type_script_lang_ts.render = MoreDetailsButtonvue_type_template_id_1aea9c26_render +MoreDetailsActionvue_type_script_lang_ts.render = MoreDetailsActionvue_type_template_id_3596d57c_render -/* harmony default export */ var MoreDetailsButton = (MoreDetailsButtonvue_type_script_lang_ts); +/* harmony default export */ var MoreDetailsAction = (MoreDetailsActionvue_type_script_lang_ts); // CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/Marketplace/vue/src/PluginList/CTAContainer.vue?vue&type=script&lang=ts - /* harmony default export */ var CTAContainervue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({ props: { plugin: { @@ -721,13 +732,16 @@ MoreDetailsButtonvue_type_script_lang_ts.render = MoreDetailsButtonvue_type_temp isSuperUser: { type: Boolean, required: true + }, + inModal: { + type: Boolean, + required: true } }, - emits: ['startFreeTrial'], + emits: ['startFreeTrial', 'openDetailsModal'], components: { - DownloadButton: DownloadButton, - HelpLink: HelpLink, - MoreDetailsButton: MoreDetailsButton + MoreDetailsAction: MoreDetailsAction, + DownloadButton: DownloadButton }, directives: { PluginName: external_CorePluginsAdmin_["PluginName"] @@ -778,7 +792,7 @@ MoreDetailsButtonvue_type_script_lang_ts.render = MoreDetailsButtonvue_type_temp -CTAContainervue_type_script_lang_ts.render = CTAContainervue_type_template_id_1a5b8f3b_render +CTAContainervue_type_script_lang_ts.render = CTAContainervue_type_template_id_aa0e994c_render /* harmony default export */ var CTAContainer = (CTAContainervue_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/Marketplace/vue/src/StartFreeTrial/StartFreeTrial.vue?vue&type=template&id=74682556 @@ -1252,11 +1266,646 @@ var StartFreeTrialvue_type_script_lang_ts_window = window, StartFreeTrialvue_type_script_lang_ts.render = StartFreeTrialvue_type_template_id_74682556_render /* harmony default export */ var StartFreeTrial = (StartFreeTrialvue_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/Marketplace/vue/src/PluginDetailsModal/PluginDetailsModal.vue?vue&type=template&id=2a5d1a74 + +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_1 = { + ref: "root", + class: "modal", + id: "pluginDetailsModal" +}; +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_2 = { + key: 0, + class: "modal-content" +}; +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_3 = { + class: "modal-content__header" +}; + +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_4 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { + class: "btn-close modal-close" +}, [/*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("i", { + class: "icon-close" +})], -1); + +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_5 = ["title"]; +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_6 = { + class: "plugin-metadata-part1" +}; + +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_7 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h3", { + class: "sr-only" +}, "Plugin details — part 1", -1); + +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_8 = { + key: 0, + class: "pair" +}; + +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_9 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("img", { + class: "star-icon reviews-icon", + src: "plugins/Marketplace/images/star.svg", + alt: "" +}, null, -1); + +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_10 = { + key: 1, + class: "pair" +}; +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_11 = { + key: 2, + class: "pair" +}; +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_12 = { + key: 3, + class: "pair" +}; +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_13 = { + key: 4, + class: "pair" +}; +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_14 = { + class: "modal-content__main" +}; +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_15 = { + class: "plugin-description" +}; +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_16 = { + key: 1, + class: "alert alert-warning" +}; +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_17 = { + key: 2, + class: "alert alert-warning" +}; +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_18 = { + key: 3, + class: "alert alert-danger" +}; +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_19 = { + key: 4, + class: "alert alert-warning" +}; +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_20 = ["innerHTML"]; +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_21 = { + class: "plugin-metadata-part2" +}; + +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_22 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("hr", null, null, -1); + +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_23 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h3", { + class: "sr-only" +}, "Plugin details — part 2", -1); + +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_24 = { + key: 0, + class: "pair" +}; +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_25 = { + key: 1, + class: "pair" +}; +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_26 = { + class: "pair" +}; +var PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_27 = ["href"]; +var _hoisted_28 = ["href"]; +var _hoisted_29 = { + key: 2 +}; +var _hoisted_30 = { + key: 3 +}; +var _hoisted_31 = { + class: "pair" +}; +var _hoisted_32 = ["href"]; + +var _hoisted_33 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(", "); + +var _hoisted_34 = ["href"]; + +var _hoisted_35 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(", "); + +var _hoisted_36 = ["href"]; +var _hoisted_37 = { + key: 0, + class: "pair" +}; +var _hoisted_38 = { + key: 1, + class: "pair" +}; +var _hoisted_39 = ["href"]; +var _hoisted_40 = { + key: 1 +}; +var _hoisted_41 = ["innerHTML"]; +var _hoisted_42 = { + key: 0 +}; +var _hoisted_43 = ["href"]; +var _hoisted_44 = { + key: 1 +}; +var _hoisted_45 = ["href"]; +var _hoisted_46 = ["innerHTML"]; +var _hoisted_47 = { + key: 0, + class: "plugin-screenshots" +}; + +var _hoisted_48 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("hr", null, null, -1); + +var _hoisted_49 = { + class: "thumbnails" +}; +var _hoisted_50 = ["src"]; +var _hoisted_51 = { + key: 1, + class: "plugin-documentation" +}; + +var _hoisted_52 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("hr", null, null, -1); + +var _hoisted_53 = ["innerHTML"]; +var _hoisted_54 = { + key: 2, + class: "plugin-faq" +}; + +var _hoisted_55 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("hr", null, null, -1); + +var _hoisted_56 = ["innerHTML"]; +var _hoisted_57 = { + key: 3, + class: "plugin-reviews", + id: "reviews" +}; + +var _hoisted_58 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("hr", null, null, -1); + +var _hoisted_59 = ["id", "src"]; +var _hoisted_60 = { + class: "modal-content__footer" +}; +var _hoisted_61 = { + class: "cta-container" +}; +var _hoisted_62 = { + key: 0, + class: "matomo-badge matomo-badge-modal", + src: "plugins/Marketplace/images/matomo-badge.png", + "aria-label": "Matomo plugin", + alt: "" +}; +function PluginDetailsModalvue_type_template_id_2a5d1a74_render(_ctx, _cache, $props, $setup, $data, $options) { + var _ctx$pluginActivity, + _ctx$pluginActivity2, + _ctx$pluginLatestVers, + _ctx$pluginLatestVers2, + _ctx$pluginLatestVers3, + _ctx$pluginLatestVers4, + _this = this; + + var _component_MissingReqsNotice = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("MissingReqsNotice"); + + var _component_CTAContainer = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CTAContainer"); + + return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_1, [!_ctx.isLoading ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_2, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_3, [PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_4, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h2", null, [_ctx.plugin.featured ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("img", { + key: 0, + class: "star-icon featured-icon", + title: _ctx.translate('Marketplace_FeaturedPlugin'), + src: "plugins/Marketplace/images/star.svg", + alt: "" + }, null, 8, PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_5)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.plugin && _ctx.plugin.displayName ? _ctx.plugin.displayName : 'Plugin details'), 1)]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_6, [PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_7, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dl", null, [_ctx.showReviews ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_8, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dt", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_Reviews')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dd", null, [PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_9, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("a", { + onClick: _cache[0] || (_cache[0] = function ($event) { + return _ctx.scrollElementIntoView('#reviews'); + }) + }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.pluginReviews.averageRating), 1)])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), !_ctx.plugin.isBundle ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_10, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dt", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('CorePluginsAdmin_Version')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dd", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.plugin.latestVersion), 1)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.plugin.numDownloads > 0 ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_11, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dt", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('General_Downloads')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dd", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.plugin.numDownloadsPretty), 1)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.plugin.lastUpdated && !_ctx.plugin.isBundle ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_12, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dt", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_LastUpdated')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dd", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.plugin.lastUpdated), 1)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), !_ctx.plugin.isBundle ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_13, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dt", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_Developer')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dd", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.pluginOwner), 1)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)])])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_14, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_15, [_ctx.showMissingRequirementsNoticeIfApplicable ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_MissingReqsNotice, { + key: 0, + plugin: _ctx.plugin + }, null, 8, ["plugin"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.isMultiServerEnvironment ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_16, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_MultiServerEnvironmentWarning')), 1)) : !_ctx.isAutoUpdatePossible ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_17, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_AutoUpdateDisabledWarning', '\'[General]enable_auto_update=1\'', '\'config/config.ini.php\'')), 1)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.showMissingLicenseDescription ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_18, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_PluginLicenseMissingDescription')), 1)) : _ctx.showExceededLicenseDescription ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_19, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_PluginLicenseExceededDescription')), 1)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", { + innerHTML: _ctx.$sanitize(_ctx.pluginDescription) + }, null, 8, PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_20)]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_21, [PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_22, PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_23, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dl", null, [!_ctx.plugin.isBundle ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_24, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dt", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('CorePluginsAdmin_Version')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dd", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.plugin.latestVersion), 1)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.pluginKeywords ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_25, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dt", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_PluginKeywords')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dd", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.pluginKeywords.join(', ')), 1)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), !_ctx.plugin.isBundle ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], { + key: 2 + }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_26, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dt", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_Authors')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dd", null, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.pluginAuthors, function (author, index) { + return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], { + key: "author-".concat(index) + }, [author.homepage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("a", { + key: 0, + target: "_blank", + rel: "noreferrer noopener", + href: author.homepage + }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(author.name), 9, PluginDetailsModalvue_type_template_id_2a5d1a74_hoisted_27)) : author.email && _ctx.isValidEmail(author.email) ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("a", { + key: 1, + href: "mailto:".concat(encodeURIComponent(author.email)) + }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(author.name), 9, _hoisted_28)) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", _hoisted_29, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(author.name), 1)), index < _ctx.pluginAuthors.length - 1 ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", _hoisted_30, ", ")) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64); + }), 128))])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_31, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dt", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('CorePluginsAdmin_Websites')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dd", null, [_ctx.plugin.homepage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("a", { + key: 0, + target: "_blank", + rel: "noreferrer noopener", + href: _ctx.plugin.homepage + }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_PluginWebsite')), 9, _hoisted_32)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.pluginChangelogUrl ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], { + key: 1 + }, [_ctx.plugin.homepage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], { + key: 0 + }, [_hoisted_33], 64)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("a", { + target: "_blank", + rel: "noreferrer noopener", + href: _ctx.externalRawLink(_ctx.pluginChangelogUrl) + }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('CorePluginsAdmin_Changelog')), 9, _hoisted_34)], 64)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.plugin.repositoryUrl ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], { + key: 2 + }, [_ctx.plugin.homepage || _ctx.pluginChangelogUrl ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], { + key: 0 + }, [_hoisted_35], 64)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("a", { + target: "_blank", + rel: "noreferrer noopener", + href: _ctx.externalRawLink(_ctx.plugin.repositoryUrl) + }, "GitHub", 8, _hoisted_36)], 64)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)])]), _ctx.pluginActivity && _ctx.pluginActivity.numCommits ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", _hoisted_37, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dt", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('CorePluginsAdmin_Activity')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dd", null, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.plugin.activity.numCommits) + " commits ", 1), ((_ctx$pluginActivity = _ctx.pluginActivity) === null || _ctx$pluginActivity === void 0 ? void 0 : _ctx$pluginActivity.numContributors) > 1 ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], { + key: 0 + }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(' ' + _ctx.translate('Marketplace_ByXDevelopers', _ctx.pluginActivity.numContributors)), 1)], 64)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), (_ctx$pluginActivity2 = _ctx.pluginActivity) !== null && _ctx$pluginActivity2 !== void 0 && _ctx$pluginActivity2.lastCommitDate ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], { + key: 1 + }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(' ' + _ctx.translate('Marketplace_LastCommitTime', _ctx.pluginActivity.lastCommitDate)), 1)], 64)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.showLicenseName ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", _hoisted_38, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dt", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_License')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dd", null, [(_ctx$pluginLatestVers = _ctx.pluginLatestVersion.license) !== null && _ctx$pluginLatestVers !== void 0 && _ctx$pluginLatestVers.url ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("a", { + key: 0, + rel: "noreferrer noopener", + href: (_ctx$pluginLatestVers2 = _ctx.pluginLatestVersion.license) === null || _ctx$pluginLatestVers2 === void 0 ? void 0 : _ctx$pluginLatestVers2.url, + target: "_blank" + }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])((_ctx$pluginLatestVers3 = _ctx.pluginLatestVersion.license) === null || _ctx$pluginLatestVers3 === void 0 ? void 0 : _ctx$pluginLatestVers3.name), 9, _hoisted_39)) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", _hoisted_40, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])((_ctx$pluginLatestVers4 = _ctx.pluginLatestVersion.license) === null || _ctx$pluginLatestVers4 === void 0 ? void 0 : _ctx$pluginLatestVers4.name), 1))])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.pluginSupport.length ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], { + key: 2 + }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.pluginSupport, function (support, index) { + return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", { + class: "pair", + key: "support-".concat(index) + }, [support.name && support.value ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], { + key: 0 + }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("dt", { + innerHTML: _ctx.$sanitize(support.name) + }, null, 8, _hoisted_41), _this.isValidHttpUrl(support.value) ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("dd", _hoisted_42, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("a", { + target: "_blank", + rel: "noreferrer noopener", + href: _ctx.externalRawLink(_ctx.$sanitize(support.value)) + }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.$sanitize(support.value)), 9, _hoisted_43)])) : _this.isValidEmail(support.value) ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("dd", _hoisted_44, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("a", { + href: "mailto:".concat(encodeURIComponent(support.value)) + }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.$sanitize(support.value)), 9, _hoisted_45)])) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("dd", { + key: 2, + innerHTML: _ctx.$sanitize(support.value) + }, null, 8, _hoisted_46))], 64)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)]); + }), 128)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)])]), _ctx.pluginScreenshots.length ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", _hoisted_47, [_hoisted_48, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h3", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_Screenshots')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_49, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.pluginScreenshots, function (screenshot) { + return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("figure", { + key: "screenshot-".concat(screenshot) + }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("img", { + src: "".concat(screenshot, "?w=800"), + width: "800", + alt: "" + }, null, 8, _hoisted_50), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("figcaption", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_this.getScreenshotBaseName(screenshot)), 1)]); + }), 128))])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.pluginDocumentation ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", _hoisted_51, [_hoisted_52, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h3", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('General_Documentation')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", { + innerHTML: _ctx.$sanitize(_ctx.pluginDocumentation) + }, null, 8, _hoisted_53)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.pluginFaq ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", _hoisted_54, [_hoisted_55, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h3", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('General_Faq')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", { + innerHTML: _ctx.$sanitize(_ctx.pluginFaq) + }, null, 8, _hoisted_56)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.showReviews ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", _hoisted_57, [_hoisted_58, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h3", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_Reviews')), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("iframe", { + class: "reviewIframe", + style: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeStyle"])(_ctx.pluginReviews.height ? "height: ".concat(_ctx.pluginReviews.height, "px;") : ''), + id: _ctx.pluginReviews.embedUrl.replace(/[\W_]+/g, ' '), + src: _ctx.pluginReviews.embedUrl + }, null, 12, _hoisted_59)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_60, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_61, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_CTAContainer, { + "is-super-user": _ctx.isSuperUser, + "is-plugins-admin-enabled": _ctx.isPluginsAdminEnabled, + "is-multi-server-environment": _ctx.isMultiServerEnvironment, + "is-valid-consumer": _ctx.isValidConsumer, + "is-auto-update-possible": _ctx.isAutoUpdatePossible, + "activate-nonce": _ctx.activateNonce, + "deactivate-nonce": _ctx.deactivateNonce, + "install-nonce": _ctx.installNonce, + "update-nonce": _ctx.updateNonce, + plugin: _ctx.plugin, + "in-modal": true, + onStartFreeTrial: _ctx.startFreeTrial + }, null, 8, ["is-super-user", "is-plugins-admin-enabled", "is-multi-server-environment", "is-valid-consumer", "is-auto-update-possible", "activate-nonce", "deactivate-nonce", "install-nonce", "update-nonce", "plugin", "onStartFreeTrial"])]), 'piwik' == _ctx.plugin.owner || 'matomo-org' == _ctx.plugin.owner ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("img", _hoisted_62)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 512); +} +// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/PluginDetailsModal/PluginDetailsModal.vue?vue&type=template&id=2a5d1a74 + +// 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/Marketplace/vue/src/MissingReqsNotice/MissingReqsNotice.vue?vue&type=template&id=8508486a + +function MissingReqsNoticevue_type_template_id_8508486a_render(_ctx, _cache, $props, $setup, $data, $options) { + return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.plugin.missingRequirements || [], function (req, index) { + return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", { + key: index, + class: "alert alert-danger" + }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('CorePluginsAdmin_MissingRequirementsNotice', _ctx.requirement(req.requirement), req.actualVersion, req.requiredVersion)), 1); + }), 128); +} +// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/MissingReqsNotice/MissingReqsNotice.vue?vue&type=template&id=8508486a + +// 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/Marketplace/vue/src/MissingReqsNotice/MissingReqsNotice.vue?vue&type=script&lang=ts + +/* harmony default export */ var MissingReqsNoticevue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({ + props: { + plugin: { + type: Object, + required: true + } + }, + methods: { + requirement: function requirement(req) { + if (req === 'php') { + return 'PHP'; + } + + return "".concat(req[0].toUpperCase()).concat(req.substr(1)); + } + } +})); +// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/MissingReqsNotice/MissingReqsNotice.vue?vue&type=script&lang=ts + +// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/MissingReqsNotice/MissingReqsNotice.vue + + + +MissingReqsNoticevue_type_script_lang_ts.render = MissingReqsNoticevue_type_template_id_8508486a_render + +/* harmony default export */ var MissingReqsNotice = (MissingReqsNoticevue_type_script_lang_ts); +// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/Marketplace/vue/src/PluginDetailsModal/PluginDetailsModal.vue?vue&type=script&lang=ts + + + +var PluginDetailsModalvue_type_script_lang_ts_window = window, + PluginDetailsModalvue_type_script_lang_ts_$ = PluginDetailsModalvue_type_script_lang_ts_window.$; +/* harmony default export */ var PluginDetailsModalvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({ + components: { + MissingReqsNotice: MissingReqsNotice, + CTAContainer: CTAContainer + }, + props: { + modelValue: { + type: Object, + default: function _default() { + return {}; + } + }, + activateNonce: { + type: String, + required: true + }, + deactivateNonce: { + type: String, + required: true + }, + installNonce: { + type: String, + required: true + }, + updateNonce: { + type: String, + required: true + }, + isAutoUpdatePossible: { + type: Boolean, + required: true + }, + isValidConsumer: { + type: Boolean, + required: true + }, + isMultiServerEnvironment: { + type: Boolean, + required: true + }, + isPluginsAdminEnabled: { + type: Boolean, + required: true + }, + isSuperUser: { + type: Boolean, + required: true + }, + hasSomeAdminAccess: { + type: Boolean, + required: true + } + }, + data: function data() { + return { + isLoading: true, + pluginDetails: '', + fetchRequest: null, + fetchRequestAbortController: null + }; + }, + emits: ['update:modelValue', 'startFreeTrial'], + watch: { + modelValue: function modelValue(newValue) { + if (newValue) { + this.showPluginDetailsDialog(); + } + }, + isLoading: function isLoading(newValue) { + if (newValue === false) { + this.applyExternalTarget(); + this.applyIframeResize(); + } + } + }, + computed: { + plugin: function plugin() { + return this.modelValue; + }, + pluginLatestVersion: function pluginLatestVersion() { + var versions = this.plugin.versions || [{}]; + return versions[versions.length - 1]; + }, + pluginReadmeHtml: function pluginReadmeHtml() { + var _this$pluginLatestVer; + + return ((_this$pluginLatestVer = this.pluginLatestVersion) === null || _this$pluginLatestVer === void 0 ? void 0 : _this$pluginLatestVer.readmeHtml) || {}; + }, + pluginDescription: function pluginDescription() { + var _this$pluginReadmeHtm; + + return ((_this$pluginReadmeHtm = this.pluginReadmeHtml) === null || _this$pluginReadmeHtm === void 0 ? void 0 : _this$pluginReadmeHtm.description) || ''; + }, + pluginDocumentation: function pluginDocumentation() { + var _this$pluginReadmeHtm2; + + return ((_this$pluginReadmeHtm2 = this.pluginReadmeHtml) === null || _this$pluginReadmeHtm2 === void 0 ? void 0 : _this$pluginReadmeHtm2.documentation) || ''; + }, + pluginFaq: function pluginFaq() { + var _this$pluginReadmeHtm3; + + return ((_this$pluginReadmeHtm3 = this.pluginReadmeHtml) === null || _this$pluginReadmeHtm3 === void 0 ? void 0 : _this$pluginReadmeHtm3.faq) || ''; + }, + pluginShop: function pluginShop() { + return this.plugin.shop; + }, + pluginShopVariations: function pluginShopVariations() { + var _this$pluginShop; + + return ((_this$pluginShop = this.pluginShop) === null || _this$pluginShop === void 0 ? void 0 : _this$pluginShop.variations) || []; + }, + pluginReviews: function pluginReviews() { + var _this$pluginShop2; + + return ((_this$pluginShop2 = this.pluginShop) === null || _this$pluginShop2 === void 0 ? void 0 : _this$pluginShop2.reviews) || {}; + }, + pluginKeywords: function pluginKeywords() { + var _this$plugin; + + return ((_this$plugin = this.plugin) === null || _this$plugin === void 0 ? void 0 : _this$plugin.keywords) || []; + }, + pluginAuthors: function pluginAuthors() { + var authors = this.plugin.authors || []; + return authors.filter(function (author) { + return author.name; + }); + }, + pluginActivity: function pluginActivity() { + return this.plugin.activity || {}; + }, + pluginChangelogUrl: function pluginChangelogUrl() { + return this.plugin.changelog.url || ''; + }, + pluginSupport: function pluginSupport() { + return this.plugin.support || []; + }, + isMatomoPlugin: function isMatomoPlugin() { + return ['piwik', 'matomo-org'].includes(this.plugin.owner); + }, + pluginOwner: function pluginOwner() { + return this.isMatomoPlugin ? 'Matomo' : this.plugin.owner; + }, + showReviews: function showReviews() { + return this.pluginReviews && this.pluginReviews.embedUrl && this.pluginReviews.averageRating; + }, + showMissingLicenseDescription: function showMissingLicenseDescription() { + return this.hasSomeAdminAccess && this.plugin.isMissingLicense; + }, + showExceededLicenseDescription: function showExceededLicenseDescription() { + return this.hasSomeAdminAccess && this.plugin.hasExceededLicense; + }, + showMissingRequirementsNoticeIfApplicable: function showMissingRequirementsNoticeIfApplicable() { + return this.isSuperUser && (this.plugin.isDownloadable || this.plugin.isInstalled); + }, + showLicenseName: function showLicenseName() { + var _this$pluginLatestVer2; + + var license = ((_this$pluginLatestVer2 = this.pluginLatestVersion) === null || _this$pluginLatestVer2 === void 0 ? void 0 : _this$pluginLatestVer2.license) || {}; + return !!license.name; + }, + pluginScreenshots: function pluginScreenshots() { + return this.plugin.screenshots || []; + } + }, + methods: { + applyExternalTarget: function applyExternalTarget() { + var _this = this; + + setTimeout(function () { + var root = _this.$refs.root; + PluginDetailsModalvue_type_script_lang_ts_$('.modal-content__main a', root).each(function (index, a) { + var link = PluginDetailsModalvue_type_script_lang_ts_$(a).attr('href'); + + if (link && link.indexOf('http') === 0) { + PluginDetailsModalvue_type_script_lang_ts_$(a).attr('target', '_blank'); + } + }); + }); + }, + scrollElementIntoView: function scrollElementIntoView(selector) { + var _this2 = this; + + setTimeout(function () { + var root = _this2.$refs.root; + var elements = PluginDetailsModalvue_type_script_lang_ts_$(selector, root); + + if (elements.length && elements[0] && elements[0].scrollIntoView) { + elements[0].scrollIntoView({ + block: 'nearest', + behavior: 'smooth' + }); + } + }); + }, + isValidEmail: function isValidEmail(email) { + // regex from https://stackoverflow.com/a/46181 + // eslint-disable-next-line max-len + return email.match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|.(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/); + }, + isValidHttpUrl: function isValidHttpUrl(input) { + try { + var url = new URL(input); + return url.protocol === 'http:' || url.protocol === 'https:'; + } catch (err) { + return false; + } + }, + getProtocolAndDomain: function getProtocolAndDomain(url) { + var urlObj = new URL(url); + return "".concat(urlObj.protocol, "//").concat(urlObj.hostname); + }, + applyIframeResize: function applyIframeResize() { + var _this3 = this; + + setTimeout(function () { + var _window2 = window, + iFrameResize = _window2.iFrameResize; + + if (_this3.pluginReviews) { + PluginDetailsModalvue_type_script_lang_ts_$(function () { + var $iFrames = PluginDetailsModalvue_type_script_lang_ts_$('#pluginDetailsModal iframe.reviewIframe'); + + for (var i = 0; i < $iFrames.length; i += 1) { + // eslint-disable-next-line max-len + iFrameResize({ + checkOrigin: [_this3.getProtocolAndDomain(_this3.pluginReviews.embedUrl)] + }, $iFrames[i]); + } + }); + } + }); + }, + getScreenshotBaseName: function getScreenshotBaseName(screenshot) { + var filename = screenshot.split('/').pop() || ''; + return filename.substring(0, filename.lastIndexOf('.')).split('_').join(' '); + }, + showPluginDetailsDialog: function showPluginDetailsDialog() { + var _this4 = this; + + PluginDetailsModalvue_type_script_lang_ts_$('#pluginDetailsModal').modal({ + dismissible: true, + onCloseEnd: function onCloseEnd() { + _this4.$emit('update:modelValue', null); + + _this4.isLoading = true; + } + }).modal('open'); + setTimeout(function () { + _this4.isLoading = false; + }, 10); // just to prevent showing the modal when the plugin data are not yet passed in + }, + startFreeTrial: function startFreeTrial() { + var _this5 = this; + + PluginDetailsModalvue_type_script_lang_ts_$('#pluginDetailsModal').modal('close'); + setTimeout(function () { + _this5.$emit('startFreeTrial', _this5.plugin.name); + }, 250); + } + } +})); +// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/PluginDetailsModal/PluginDetailsModal.vue?vue&type=script&lang=ts + +// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/PluginDetailsModal/PluginDetailsModal.vue + + + +PluginDetailsModalvue_type_script_lang_ts.render = PluginDetailsModalvue_type_template_id_2a5d1a74_render + +/* harmony default export */ var PluginDetailsModal = (PluginDetailsModalvue_type_script_lang_ts); // CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/Marketplace/vue/src/PluginList/PluginList.vue?vue&type=script&lang=ts + var PluginListvue_type_script_lang_ts_window = window, PluginListvue_type_script_lang_ts_$ = PluginListvue_type_script_lang_ts_window.$; /* harmony default export */ var PluginListvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({ @@ -1286,6 +1935,10 @@ var PluginListvue_type_script_lang_ts_window = window, type: Boolean, required: true }, + hasSomeAdminAccess: { + type: Boolean, + required: true + }, activateNonce: { type: String, required: true @@ -1305,10 +1958,12 @@ var PluginListvue_type_script_lang_ts_window = window, }, data: function data() { return { - showStartFreeTrialForPlugin: '' + showStartFreeTrialForPlugin: '', + showPluginDetailsForPlugin: null }; }, components: { + PluginDetailsModal: PluginDetailsModal, CTAContainer: CTAContainer, StartFreeTrial: StartFreeTrial }, @@ -1404,24 +2059,21 @@ var PluginListvue_type_script_lang_ts_window = window, } }); }, - clickCard: function clickCard(event) { + clickCard: function clickCard(event, plugin) { // check if the target is a link or is a descendant of a link // to skip direct clicks on links within the card, we want those honoured - if (PluginListvue_type_script_lang_ts_$(event.target).closest('a').length) { + if (PluginListvue_type_script_lang_ts_$(event.target).closest('a:not(.card-title-link)').length) { return; } - var titleLink = PluginListvue_type_script_lang_ts_$(event.target).closest('.card-holder').find('a.card-title-link').get(0); - - if (titleLink) { - event.stopPropagation(); // jQuery dispatching can result in the new event having the .card-holder - // as the event target, resulting in an endless dispatch cycle - // Using a native event without bubbling circumvents this issue - - titleLink.dispatchEvent(new Event('click', { - bubbles: false - })); - } + event.stopPropagation(); + this.openDetailsModal(plugin); + }, + openDetailsModal: function openDetailsModal(plugin) { + this.showPluginDetailsForPlugin = plugin; + }, + startTrialFromDetailsModal: function startTrialFromDetailsModal(pluginName) { + this.showStartFreeTrialForPlugin = pluginName; } } })); @@ -1431,7 +2083,7 @@ var PluginListvue_type_script_lang_ts_window = window, -PluginListvue_type_script_lang_ts.render = PluginListvue_type_template_id_7a241061_render +PluginListvue_type_script_lang_ts.render = PluginListvue_type_template_id_3404bfd4_render /* harmony default export */ var PluginList = (PluginListvue_type_script_lang_ts); // CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-2!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/Marketplace/vue/src/Marketplace/Marketplace.vue?vue&type=script&lang=ts @@ -1468,6 +2120,7 @@ var lcfirst = function lcfirst(s) { isAutoUpdatePossible: Boolean, isPluginsAdminEnabled: Boolean, isMultiServerEnvironment: Boolean, + hasSomeAdminAccess: Boolean, installNonce: { type: String, required: true @@ -2390,61 +3043,21 @@ function GetPremiumFeaturesvue_type_template_id_0ec62128_render(_ctx, _cache, $p GetPremiumFeaturesvue_type_script_lang_ts.render = GetPremiumFeaturesvue_type_template_id_0ec62128_render /* harmony default export */ var GetPremiumFeatures = (GetPremiumFeaturesvue_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/Marketplace/vue/src/MissingReqsNotice/MissingReqsNotice.vue?vue&type=template&id=8508486a - -function MissingReqsNoticevue_type_template_id_8508486a_render(_ctx, _cache, $props, $setup, $data, $options) { - return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.plugin.missingRequirements || [], function (req, index) { - return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", { - key: index, - class: "alert alert-danger" - }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('CorePluginsAdmin_MissingRequirementsNotice', _ctx.requirement(req.requirement), req.actualVersion, req.requiredVersion)), 1); - }), 128); -} -// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/MissingReqsNotice/MissingReqsNotice.vue?vue&type=template&id=8508486a +// 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/Marketplace/vue/src/OverviewIntro/OverviewIntro.vue?vue&type=template&id=b739a192 -// 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/Marketplace/vue/src/MissingReqsNotice/MissingReqsNotice.vue?vue&type=script&lang=ts - -/* harmony default export */ var MissingReqsNoticevue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({ - props: { - plugin: { - type: Object, - required: true - } - }, - methods: { - requirement: function requirement(req) { - if (req === 'php') { - return 'PHP'; - } - - return "".concat(req[0].toUpperCase()).concat(req.substr(1)); - } - } -})); -// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/MissingReqsNotice/MissingReqsNotice.vue?vue&type=script&lang=ts - -// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/MissingReqsNotice/MissingReqsNotice.vue - - - -MissingReqsNoticevue_type_script_lang_ts.render = MissingReqsNoticevue_type_template_id_8508486a_render - -/* harmony default export */ var MissingReqsNotice = (MissingReqsNoticevue_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/Marketplace/vue/src/OverviewIntro/OverviewIntro.vue?vue&type=template&id=55f163d2 - -var OverviewIntrovue_type_template_id_55f163d2_hoisted_1 = { +var OverviewIntrovue_type_template_id_b739a192_hoisted_1 = { key: 0 }; -var OverviewIntrovue_type_template_id_55f163d2_hoisted_2 = { +var OverviewIntrovue_type_template_id_b739a192_hoisted_2 = { key: 1 }; -var OverviewIntrovue_type_template_id_55f163d2_hoisted_3 = ["innerHTML"]; -var OverviewIntrovue_type_template_id_55f163d2_hoisted_4 = { +var OverviewIntrovue_type_template_id_b739a192_hoisted_3 = ["innerHTML"]; +var OverviewIntrovue_type_template_id_b739a192_hoisted_4 = { key: 2 }; -var OverviewIntrovue_type_template_id_55f163d2_hoisted_5 = ["innerHTML"]; -var OverviewIntrovue_type_template_id_55f163d2_hoisted_6 = ["innerHTML"]; -function OverviewIntrovue_type_template_id_55f163d2_render(_ctx, _cache, $props, $setup, $data, $options) { +var OverviewIntrovue_type_template_id_b739a192_hoisted_5 = ["innerHTML"]; +var OverviewIntrovue_type_template_id_b739a192_hoisted_6 = ["innerHTML"]; +function OverviewIntrovue_type_template_id_b739a192_render(_ctx, _cache, $props, $setup, $data, $options) { var _component_EnrichedHeadline = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("EnrichedHeadline"); var _component_LicenseKey = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("LicenseKey"); @@ -2462,15 +3075,15 @@ function OverviewIntrovue_type_template_id_55f163d2_render(_ctx, _cache, $props, return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_Marketplace')), 1)]; }), _: 1 - }, 8, ["feature-name"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("p", null, [!_ctx.isSuperUser ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", OverviewIntrovue_type_template_id_55f163d2_hoisted_1, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.restrictedMessage), 1)) : _ctx.showThemes ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", OverviewIntrovue_type_template_id_55f163d2_hoisted_2, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('CorePluginsAdmin_ThemesDescription')) + " ", 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { + }, 8, ["feature-name"])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("p", null, [!_ctx.isSuperUser ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", OverviewIntrovue_type_template_id_b739a192_hoisted_1, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.restrictedMessage), 1)) : _ctx.showThemes ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", OverviewIntrovue_type_template_id_b739a192_hoisted_2, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('CorePluginsAdmin_ThemesDescription')) + " ", 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { innerHTML: _ctx.$sanitize(_ctx.installingNewThemeText) - }, null, 8, OverviewIntrovue_type_template_id_55f163d2_hoisted_3)])) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", OverviewIntrovue_type_template_id_55f163d2_hoisted_4, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('CorePluginsAdmin_PluginsExtendPiwik')) + " ", 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { + }, null, 8, OverviewIntrovue_type_template_id_b739a192_hoisted_3)])) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", OverviewIntrovue_type_template_id_b739a192_hoisted_4, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('CorePluginsAdmin_PluginsExtendPiwik')) + " ", 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { innerHTML: _ctx.$sanitize(_ctx.installingNewPluginText) - }, null, 8, OverviewIntrovue_type_template_id_55f163d2_hoisted_5)])), _ctx.isSuperUser && _ctx.inReportingMenu ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", { + }, null, 8, OverviewIntrovue_type_template_id_b739a192_hoisted_5)])), _ctx.isSuperUser && _ctx.inReportingMenu ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", { key: 3, ref: "noticeRemoveMarketplaceFromMenu", innerHTML: _ctx.$sanitize(_ctx.noticeRemoveMarketplaceFromMenuText) - }, null, 8, OverviewIntrovue_type_template_id_55f163d2_hoisted_6)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_LicenseKey, { + }, null, 8, OverviewIntrovue_type_template_id_b739a192_hoisted_6)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_LicenseKey, { "is-valid-consumer": _ctx.isValidConsumer, "is-super-user": _ctx.isSuperUser, "is-auto-update-possible": _ctx.isAutoUpdatePossible, @@ -2496,10 +3109,11 @@ function OverviewIntrovue_type_template_id_55f163d2_render(_ctx, _cache, $props, "deactivate-nonce": _ctx.deactivateNonce, "activate-nonce": _ctx.activateNonce, "install-nonce": _ctx.installNonce, - "update-nonce": _ctx.updateNonce - }, null, 8, ["plugin-type-options", "default-sort", "plugin-sort-options", "num-available-plugins-by-type", "current-user-email", "is-auto-update-possible", "is-super-user", "is-multi-server-environment", "is-plugins-admin-enabled", "is-valid-consumer", "deactivate-nonce", "activate-nonce", "install-nonce", "update-nonce"])], 512)), [[_directive_content_intro]]); + "update-nonce": _ctx.updateNonce, + "has-some-admin-access": _ctx.hasSomeAdminAccess + }, null, 8, ["plugin-type-options", "default-sort", "plugin-sort-options", "num-available-plugins-by-type", "current-user-email", "is-auto-update-possible", "is-super-user", "is-multi-server-environment", "is-plugins-admin-enabled", "is-valid-consumer", "deactivate-nonce", "activate-nonce", "install-nonce", "update-nonce", "has-some-admin-access"])], 512)), [[_directive_content_intro]]); } -// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/OverviewIntro/OverviewIntro.vue?vue&type=template&id=55f163d2 +// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/OverviewIntro/OverviewIntro.vue?vue&type=template&id=b739a192 // 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/Marketplace/vue/src/OverviewIntro/OverviewIntro.vue?vue&type=script&lang=ts @@ -2516,6 +3130,7 @@ function OverviewIntrovue_type_template_id_55f163d2_render(_ctx, _cache, $props, isAutoUpdatePossible: Boolean, isPluginsAdminEnabled: Boolean, isMultiServerEnvironment: Boolean, + hasSomeAdminAccess: Boolean, hasLicenseKey: Boolean, paidPluginsToInstallAtOnce: { type: Array, @@ -2618,7 +3233,7 @@ function OverviewIntrovue_type_template_id_55f163d2_render(_ctx, _cache, $props, -OverviewIntrovue_type_script_lang_ts.render = OverviewIntrovue_type_template_id_55f163d2_render +OverviewIntrovue_type_script_lang_ts.render = OverviewIntrovue_type_template_id_b739a192_render /* harmony default export */ var OverviewIntro = (OverviewIntrovue_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/Marketplace/vue/src/SubscriptionOverview/SubscriptionOverview.vue?vue&type=template&id=21b40b13 diff --git a/plugins/Marketplace/vue/dist/Marketplace.umd.min.js b/plugins/Marketplace/vue/dist/Marketplace.umd.min.js index efe29452fb55..336406bd62f4 100644 --- a/plugins/Marketplace/vue/dist/Marketplace.umd.min.js +++ b/plugins/Marketplace/vue/dist/Marketplace.umd.min.js @@ -1,16 +1,16 @@ -(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["Marketplace"]=t(require("CoreHome"),require("vue"),require("CorePluginsAdmin")):e["Marketplace"]=t(e["CoreHome"],e["Vue"],e["CorePluginsAdmin"])})("undefined"!==typeof self?self:this,(function(e,t,n){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var l=t[a]={i:a,l:!1,exports:{}};return e[a].call(l.exports,l,l.exports,n),l.l=!0,l.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)n.d(a,l,function(t){return e[t]}.bind(null,l));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="plugins/Marketplace/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,"Marketplace",(function(){return gt})),n.d(t,"LicenseKey",(function(){return $t})),n.d(t,"ManageLicenseKey",(function(){return Zt})),n.d(t,"GetNewPlugins",(function(){return mn})),n.d(t,"GetNewPluginsAdmin",(function(){return En})),n.d(t,"GetPremiumFeatures",(function(){return qn})),n.d(t,"MissingReqsNotice",(function(){return Hn})),n.d(t,"OverviewIntro",(function(){return Xn})),n.d(t,"SubscriptionOverview",(function(){return Va})),n.d(t,"RichMenuButton",(function(){return Ca})),n.d(t,"PluginList",(function(){return pt})),"undefined"!==typeof window){var a=window.document.currentScript,l=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);l&&(n.p=l[1])}var r=n("8bbf"),i={class:"row marketplaceActions",ref:"root"},o={class:"col s12 m6 l4"},c={class:"col s12 m6 l4"},s={key:0,class:"col s12 m12 l4 "},u={class:"plugin-search"},d=Object(r["createElementVNode"])("span",{class:"icon-search"},null,-1),p=["alt"];function m(e,t,n,a,l,m){var b,g=this,O=Object(r["resolveComponent"])("Field"),j=Object(r["resolveComponent"])("PluginList"),v=Object(r["resolveComponent"])("ContentBlock");return Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],null,[Object(r["createElementVNode"])("div",i,[Object(r["createElementVNode"])("div",o,[Object(r["createVNode"])(O,{uicontrol:"select",name:"plugin_type","model-value":e.pluginTypeFilter,"onUpdate:modelValue":e.updateType,title:e.translate("Marketplace_Show"),"full-width":!0,options:e.pluginTypeOptions},null,8,["model-value","onUpdate:modelValue","title","options"])]),Object(r["createElementVNode"])("div",c,[Object(r["createVNode"])(O,{uicontrol:"select",name:"plugin_sort","model-value":e.pluginSort,"onUpdate:modelValue":e.updateSort,title:e.translate("Marketplace_Sort"),"full-width":!0,options:e.pluginSortOptions},null,8,["model-value","onUpdate:modelValue","title","options"])]),(null===(b=e.pluginsToShow)||void 0===b?void 0:b.length)>20||e.searchQuery?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",s,[Object(r["createElementVNode"])("div",u,[Object(r["createElementVNode"])("div",null,[Object(r["createVNode"])(O,{uicontrol:"text",name:"query",title:e.queryInputTitle,"full-width":!0,"model-value":e.searchQuery,"onUpdate:modelValue":e.updateQuery},null,8,["title","model-value","onUpdate:modelValue"])]),d])])):Object(r["createCommentVNode"])("",!0)],512),!e.loading&&e.pluginsToShow.length>0?(Object(r["openBlock"])(),Object(r["createBlock"])(j,{key:0,"plugins-to-show":e.pluginsToShow,"current-user-email":e.currentUserEmail,"is-auto-update-possible":e.isAutoUpdatePossible,"is-super-user":e.isSuperUser,"is-multi-server-environment":e.isMultiServerEnvironment,"is-plugins-admin-enabled":e.isPluginsAdminEnabled,"is-valid-consumer":e.isValidConsumer,"deactivate-nonce":e.deactivateNonce,"activate-nonce":e.activateNonce,"install-nonce":e.installNonce,"update-nonce":e.updateNonce,onTriggerUpdate:t[0]||(t[0]=function(e){return g.fetchPlugins()})},null,8,["plugins-to-show","current-user-email","is-auto-update-possible","is-super-user","is-multi-server-environment","is-plugins-admin-enabled","is-valid-consumer","deactivate-nonce","activate-nonce","install-nonce","update-nonce"])):Object(r["createCommentVNode"])("",!0),e.loading||0!=e.pluginsToShow.length?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(v,{key:1},{default:Object(r["withCtx"])((function(){return[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate(e.showThemes?"Marketplace_NoThemesFound":"Marketplace_NoPluginsFound")),1)]})),_:1})),e.loading?(Object(r["openBlock"])(),Object(r["createBlock"])(v,{key:2},{default:Object(r["withCtx"])((function(){return[Object(r["createElementVNode"])("img",{src:"plugins/Morpheus/images/loading-blue.gif",alt:e.translate("General_LoadingData")},null,8,p),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.loadingMessage),1)]})),_:1})):Object(r["createCommentVNode"])("",!0)],64)}var b=n("19dc"),g=n("a5a2"),O={key:0,class:"pluginListContainer row"},j={class:"card"},v={class:"card-content"},k=["src"],h={class:"content-container"},y={class:"card-content-top"},f={key:0,class:"matomo-badge matomo-badge-top",src:"plugins/Marketplace/images/matomo-badge.png","aria-label":"Matomo plugin",alt:""},N={class:"price"},V={class:"card-title-link",href:"#",tabindex:"7"},E=Object(r["createElementVNode"])("div",{class:"card-focus"},null,-1),S={class:"card-title"},M=Object(r["createElementVNode"])("span",{class:"card-title-chevron"}," ›",-1),B={class:"card-description"},T={class:"card-content-bottom"},P={key:0,class:"downloads"},w={class:"cta-container"},C={key:1,class:"matomo-badge matomo-badge-bottom",src:"plugins/Marketplace/images/matomo-badge.png","aria-label":"Matomo plugin",alt:""};function L(e,t,n,a,l,i){var o=this,c=Object(r["resolveComponent"])("StartFreeTrial"),s=Object(r["resolveComponent"])("CTAContainer"),u=Object(r["resolveDirective"])("plugin-name");return Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],null,[Object(r["createVNode"])(c,{"current-user-email":e.currentUserEmail,"is-valid-consumer":e.isValidConsumer,modelValue:e.showStartFreeTrialForPlugin,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.showStartFreeTrialForPlugin=t}),onTrialStarted:t[1]||(t[1]=function(e){return o.$emit("triggerUpdate")})},null,8,["current-user-email","is-valid-consumer","modelValue"]),e.pluginsToShow.length>0?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",O,[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(e.pluginsToShow,(function(n){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:"col s12 m6 l4",key:n.name},[Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])("card-holder ".concat(n.numDownloads>0?"card-with-downloads":"")),onClick:t[2]||(t[2]=function(){return e.clickCard&&e.clickCard.apply(e,arguments)})},[Object(r["createElementVNode"])("div",j,[Object(r["createElementVNode"])("div",v,[Object(r["createElementVNode"])("img",{src:"".concat(n.coverImage,"?w=880&h=480"),alt:"",class:"cover-image"},null,8,k),Object(r["createElementVNode"])("div",h,[Object(r["createElementVNode"])("div",y,["piwik"==n.owner||"matomo-org"==n.owner?(Object(r["openBlock"])(),Object(r["createElementBlock"])("img",f)):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("div",N,[n.priceFrom?(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:0},[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("Marketplace_PriceFromPerPeriod",n.priceFrom.prettyPrice,n.priceFrom.period)),1)],64)):n.isFree?(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("Marketplace_Free")),1)],64)):Object(r["createCommentVNode"])("",!0)]),Object(r["withDirectives"])(Object(r["createElementVNode"])("a",V,[E,Object(r["createElementVNode"])("h2",S,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(n.displayName),1),M])],512),[[u,{pluginName:n.name}]]),Object(r["createElementVNode"])("div",B,Object(r["toDisplayString"])(n.description),1)]),Object(r["createElementVNode"])("div",T,[n.numDownloads>0?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",P,Object(r["toDisplayString"])(n.numDownloadsPretty)+" "+Object(r["toDisplayString"])(e.translate("General_Downloads").toLowerCase()),1)):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("div",w,[Object(r["createVNode"])(s,{"is-super-user":e.isSuperUser,"is-plugins-admin-enabled":e.isPluginsAdminEnabled,"is-multi-server-environment":e.isMultiServerEnvironment,"is-valid-consumer":e.isValidConsumer,"is-auto-update-possible":e.isAutoUpdatePossible,"activate-nonce":e.activateNonce,"deactivate-nonce":e.deactivateNonce,"install-nonce":e.installNonce,"update-nonce":e.updateNonce,plugin:n,onStartFreeTrial:function(t){return e.showStartFreeTrialForPlugin=n.name}},null,8,["is-super-user","is-plugins-admin-enabled","is-multi-server-environment","is-valid-consumer","is-auto-update-possible","activate-nonce","deactivate-nonce","install-nonce","update-nonce","plugin","onStartFreeTrial"])]),"piwik"==n.owner||"matomo-org"==n.owner?(Object(r["openBlock"])(),Object(r["createElementBlock"])("img",C)):Object(r["createCommentVNode"])("",!0)])])])])],2)])})),128))])):Object(r["createCommentVNode"])("",!0)],64)}var A={key:0,class:"alert alert-danger alert-no-background"},_={style:{"white-space":"nowrap"}},D=Object(r["createTextVNode"])("("),U=Object(r["createTextVNode"])(")"),x={key:1,class:"alert alert-danger alert-no-background"},F={style:{"white-space":"nowrap"}},q=Object(r["createTextVNode"])("("),K=Object(r["createTextVNode"])(")"),I=["href"],H={key:1,class:"alert alert-warning alert-no-background"},R={style:{"white-space":"nowrap"}},G=Object(r["createTextVNode"])("("),z=Object(r["createTextVNode"])(")"),Q={key:3,class:"alert alert-success alert-no-background"},W=Object(r["createTextVNode"])(" ("),J=Object(r["createTextVNode"])(") "),Y=Object(r["createTextVNode"])(" ("),X=["href"],Z=Object(r["createTextVNode"])(" - "),ee=["href"],te=Object(r["createTextVNode"])(") "),ne=["title"],ae={key:6,class:"alert alert-warning alert-no-background"},le={style:{"white-space":"nowrap"}},re=Object(r["createTextVNode"])("("),ie=Object(r["createTextVNode"])(")"),oe=["href"];function ce(e,t,n,a,l,i){var o=this,c=Object(r["resolveComponent"])("HelpLink"),s=Object(r["resolveComponent"])("DownloadButton"),u=Object(r["resolveComponent"])("MoreDetailsButton");return e.isSuperUser?(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:0},[e.plugin.isMissingLicense?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",A,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("Marketplace_LicenseMissing"))+" ",1),Object(r["createElementVNode"])("span",_,[D,Object(r["createVNode"])(c,{"plugin-name":e.plugin.name},null,8,["plugin-name"]),U])])):e.plugin.hasExceededLicense?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",x,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("Marketplace_LicenseExceeded"))+" ",1),Object(r["createElementVNode"])("span",F,[q,Object(r["createVNode"])(c,{"plugin-name":e.plugin.name},null,8,["plugin-name"]),K])])):e.plugin.canBeUpdated&&0==e.plugin.missingRequirements.length?(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:2},[e.isAutoUpdatePossible?(Object(r["openBlock"])(),Object(r["createElementBlock"])("a",{key:0,tabindex:"7",class:"btn btn-block",href:e.linkToUpdate(e.plugin.name)},Object(r["toDisplayString"])(e.translate("CoreUpdater_UpdateTitle")),9,I)):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",H,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("Marketplace_CannotUpdate"))+" ",1),Object(r["createElementVNode"])("span",R,[G,Object(r["createVNode"])(c,{"plugin-name":e.plugin.name},null,8,["plugin-name"]),Object(r["createVNode"])(s,{plugin:e.plugin,"show-or":!0,"is-auto-update-possible":e.isAutoUpdatePossible},null,8,["plugin","is-auto-update-possible"]),z])]))],64)):e.plugin.isInstalled?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",Q,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("General_Installed"))+" ",1),e.plugin.missingRequirements.length>0||!e.isAutoUpdatePossible?(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:0},[W,Object(r["createVNode"])(s,{plugin:e.plugin,"show-or":!1,"is-auto-update-possible":e.isAutoUpdatePossible},null,8,["plugin","is-auto-update-possible"]),J],64)):e.plugin.isInvalid||e.isMultiServerEnvironment||!e.isPluginsAdminEnabled?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Y,e.plugin.isActivated?(Object(r["openBlock"])(),Object(r["createElementBlock"])("a",{key:0,tabindex:"7",href:e.linkToDeactivate(e.plugin.name)},Object(r["toDisplayString"])(e.translate("CorePluginsAdmin_Deactivate")),9,X)):e.plugin.missingRequirements.length>0?(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Z],64)):(Object(r["openBlock"])(),Object(r["createElementBlock"])("a",{key:2,tabindex:"7",href:e.linkToActivate(e.plugin.name)},Object(r["toDisplayString"])(e.translate("CorePluginsAdmin_Activate")),9,ee)),te],64))])):e.plugin.isEligibleForFreeTrial?(Object(r["openBlock"])(),Object(r["createElementBlock"])("a",{key:4,tabindex:"7",class:"btn btn-block purchaseable",href:"",onClick:t[0]||(t[0]=Object(r["withModifiers"])((function(e){o.$emit("startFreeTrial")}),["prevent"])),title:e.translate("Marketplace_StartFreeTrial")},Object(r["toDisplayString"])(e.translate("Marketplace_StartFreeTrial")),9,ne)):e.plugin.isDownloadable||!(e.plugin.isPaid||e.plugin.missingRequirements.length>0)&&e.isAutoUpdatePossible?e.plugin.missingRequirements.length>0||!e.isAutoUpdatePossible?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",ae,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("Marketplace_CannotInstall"))+" ",1),Object(r["createElementVNode"])("span",le,[re,Object(r["createVNode"])(c,{"plugin-name":e.plugin.name},null,8,["plugin-name"]),Object(r["createVNode"])(s,{plugin:e.plugin,"show-or":!0,"is-auto-update-possible":e.isAutoUpdatePossible},null,8,["plugin","is-auto-update-possible"]),ie])])):(Object(r["openBlock"])(),Object(r["createElementBlock"])("a",{key:7,tabindex:"7",href:e.linkToInstall(e.plugin.name),class:"btn btn-block"},Object(r["toDisplayString"])(e.translate("Marketplace_ActionInstall")),9,oe)):(Object(r["openBlock"])(),Object(r["createBlock"])(u,{key:5,"plugin-name":e.plugin.name},null,8,["plugin-name"]))],64)):(Object(r["openBlock"])(),Object(r["createBlock"])(u,{key:1,"plugin-name":e.plugin.name},null,8,["plugin-name"]))}var se={key:0,onclick:"$(this).css('display', 'none')"},ue=["href"];function de(e,t,n,a,l,i){return 0===e.plugin.missingRequirements.length&&e.plugin.isDownloadable&&!e.isAutoUpdatePossible?(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",se,[e.showOr?(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:0},[Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("General_Or"))+" ",1)],64)):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("a",{tabindex:"7",class:"plugin-details download",href:e.linkTo({module:"Marketplace",action:"download",pluginName:e.plugin.name,nonce:e.plugin.downloadNonce})},Object(r["toDisplayString"])(e.translate("General_Download")),9,ue)])):Object(r["createCommentVNode"])("",!0)}var pe=Object(r["defineComponent"])({props:{plugin:{type:Object,required:!0},showOr:{type:Boolean,default:!1},isAutoUpdatePossible:{type:Boolean,required:!0}},methods:{linkTo:function(e){return"?".concat(b["MatomoUrl"].stringify(Object.assign(Object.assign({},b["MatomoUrl"].urlParsed.value),e)))}}});pe.render=de;var me=pe,be=["title"];function ge(e,t,n,a,l,i){var o=Object(r["resolveDirective"])("plugin-name");return Object(r["withDirectives"])((Object(r["openBlock"])(),Object(r["createElementBlock"])("a",{tabindex:"7",class:"plugin-details",href:"#",title:e.translate("General_MoreDetails")},[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("General_Help")),1)],8,be)),[[o,{pluginName:e.pluginName}]])}var Oe=Object(r["defineComponent"])({props:{pluginName:{type:String,required:!0}},directives:{PluginName:g["PluginName"]}});Oe.render=ge;var je=Oe,ve=["title"];function ke(e,t,n,a,l,i){var o=Object(r["resolveDirective"])("plugin-name");return Object(r["withDirectives"])((Object(r["openBlock"])(),Object(r["createElementBlock"])("a",{tabindex:"7",class:"btn btn-block",href:"#",title:e.translate("General_MoreDetails")},[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("General_MoreDetails")),1)],8,ve)),[[o,{pluginName:e.pluginName}]])}var he=Object(r["defineComponent"])({props:{pluginName:{type:String,required:!0}},directives:{PluginName:g["PluginName"]}});he.render=ke;var ye=he,fe=Object(r["defineComponent"])({props:{plugin:{type:Object,required:!0},activateNonce:{type:String,required:!0},deactivateNonce:{type:String,required:!0},installNonce:{type:String,required:!0},updateNonce:{type:String,required:!0},isAutoUpdatePossible:{type:Boolean,required:!0},isValidConsumer:{type:Boolean,required:!0},isMultiServerEnvironment:{type:Boolean,required:!0},isPluginsAdminEnabled:{type:Boolean,required:!0},isSuperUser:{type:Boolean,required:!0}},emits:["startFreeTrial"],components:{DownloadButton:me,HelpLink:je,MoreDetailsButton:ye},directives:{PluginName:g["PluginName"]},methods:{linkToActivate:function(e){return this.linkTo({module:"CorePluginsAdmin",action:"activate",redirectTo:"referrer",nonce:this.activateNonce,pluginName:e})},linkToDeactivate:function(e){return this.linkTo({module:"CorePluginsAdmin",action:"deactivate",redirectTo:"referrer",nonce:this.deactivateNonce,pluginName:e})},linkToInstall:function(e){return this.linkTo({module:"Marketplace",action:"installPlugin",nonce:this.installNonce,pluginName:e})},linkToUpdate:function(e){return this.linkTo({module:"Marketplace",action:"updatePlugin",nonce:this.updateNonce,pluginName:e})},linkTo:function(e){return"?".concat(b["MatomoUrl"].stringify(Object.assign(Object.assign({},b["MatomoUrl"].urlParsed.value),e)))}}});fe.render=ce;var Ne=fe,Ve={class:"modal",id:"startFreeTrial"},Ee={key:0,class:"btn-close modal-close"},Se=Object(r["createElementVNode"])("i",{class:"icon-close"},null,-1),Me=[Se],Be={key:1,class:"modal-content trial-start-in-progress"},Te={class:"Piwik_Popover_Loading"},Pe={class:"Piwik_Popover_Loading_Name"},we={key:2,class:"modal-content trial-start-error"},Ce={class:"modal-text"},Le={key:3,class:"modal-content trial-start-no-license"},Ae={class:"modal-text"},_e=["innerHTML"],De=["innerHTML"],Ue=["disabled"],xe=["innerHTML"];function Fe(e,t,n,a,l,i){var o=Object(r["resolveComponent"])("Field");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",Ve,[e.trialStartInProgress?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("p",Ee,Me)),e.trialStartInProgress?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",Be,[Object(r["createElementVNode"])("div",Te,[Object(r["createElementVNode"])("div",Pe,[Object(r["createElementVNode"])("h2",null,Object(r["toDisplayString"])(e.translate("Marketplace_TrialStartInProgressTitle")),1),Object(r["createElementVNode"])("p",null,Object(r["toDisplayString"])(e.translate("Marketplace_TrialStartInProgressText")),1)])])])):e.trialStartError?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",we,[Object(r["createElementVNode"])("div",Ce,[Object(r["createElementVNode"])("h2",null,Object(r["toDisplayString"])(e.translate("Marketplace_TrialStartErrorTitle")),1),Object(r["createElementVNode"])("p",null,Object(r["toDisplayString"])(e.trialStartError),1),Object(r["createElementVNode"])("p",null,Object(r["toDisplayString"])(e.translate("Marketplace_TrialStartErrorSupport")),1)])])):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",Le,[Object(r["createElementVNode"])("div",Ae,[Object(r["createElementVNode"])("h2",null,Object(r["toDisplayString"])(e.translate("Marketplace_TrialStartNoLicenseTitle")),1),Object(r["createElementVNode"])("p",null,Object(r["toDisplayString"])(e.translate("Marketplace_TrialStartNoLicenseText")),1),Object(r["createVNode"])(o,{uicontrol:"text",name:"email",modelValue:e.createAccountEmail,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.createAccountEmail=t}),"full-width":!0,title:e.translate("UsersManager_Email")},null,8,["modelValue","title"]),e.createAccountError?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:0,class:"alert alert-danger",innerHTML:e.$sanitize(e.createAccountError)},null,8,_e)):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("p",{class:"trial-start-legal-hint",innerHTML:e.$sanitize(e.trialStartNoLicenseLegalHintText)},null,8,De),Object(r["createElementVNode"])("p",null,[Object(r["createElementVNode"])("button",{class:"btn",disabled:!e.createAccountEmail,onClick:t[1]||(t[1]=function(t){return e.createAccountAndStartFreeTrial()})},Object(r["toDisplayString"])(e.translate("Marketplace_TrialStartNoLicenseCreateAccount")),9,Ue)]),Object(r["createElementVNode"])("p",{class:"add-existing-license",innerHTML:e.$sanitize(e.trialStartNoLicenseAddHereText)},null,8,xe)])]))])}function qe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ke(e,t){for(var n=0;n20||e.searchQuery?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",s,[Object(i["createElementVNode"])("div",u,[Object(i["createElementVNode"])("div",null,[Object(i["createVNode"])(O,{uicontrol:"text",name:"query",title:e.queryInputTitle,"full-width":!0,"model-value":e.searchQuery,"onUpdate:modelValue":e.updateQuery},null,8,["title","model-value","onUpdate:modelValue"])]),d])])):Object(i["createCommentVNode"])("",!0)],512),!e.loading&&e.pluginsToShow.length>0?(Object(i["openBlock"])(),Object(i["createBlock"])(j,{key:0,"plugins-to-show":e.pluginsToShow,"current-user-email":e.currentUserEmail,"is-auto-update-possible":e.isAutoUpdatePossible,"is-super-user":e.isSuperUser,"is-multi-server-environment":e.isMultiServerEnvironment,"has-some-admin-access":e.hasSomeAdminAccess,"is-plugins-admin-enabled":e.isPluginsAdminEnabled,"is-valid-consumer":e.isValidConsumer,"deactivate-nonce":e.deactivateNonce,"activate-nonce":e.activateNonce,"install-nonce":e.installNonce,"update-nonce":e.updateNonce,onTriggerUpdate:t[0]||(t[0]=function(e){return g.fetchPlugins()})},null,8,["plugins-to-show","current-user-email","is-auto-update-possible","is-super-user","is-multi-server-environment","has-some-admin-access","is-plugins-admin-enabled","is-valid-consumer","deactivate-nonce","activate-nonce","install-nonce","update-nonce"])):Object(i["createCommentVNode"])("",!0),e.loading||0!=e.pluginsToShow.length?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(k,{key:1},{default:Object(i["withCtx"])((function(){return[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate(e.showThemes?"Marketplace_NoThemesFound":"Marketplace_NoPluginsFound")),1)]})),_:1})),e.loading?(Object(i["openBlock"])(),Object(i["createBlock"])(k,{key:2},{default:Object(i["withCtx"])((function(){return[Object(i["createElementVNode"])("img",{src:"plugins/Morpheus/images/loading-blue.gif",alt:e.translate("General_LoadingData")},null,8,p),Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.loadingMessage),1)]})),_:1})):Object(i["createCommentVNode"])("",!0)],64)}var b=n("19dc"),g=n("a5a2"),O={key:0,class:"pluginListContainer row"},j=["onClick"],k={class:"card"},v={class:"card-content"},h=["src"],y={class:"content-container"},f={class:"card-content-top"},N={key:0,class:"matomo-badge matomo-badge-top",src:"plugins/Marketplace/images/matomo-badge.png","aria-label":"Matomo plugin",alt:""},V={class:"price"},E=["onClick"],S=Object(i["createElementVNode"])("div",{class:"card-focus"},null,-1),B={class:"card-title"},M=Object(i["createElementVNode"])("span",{class:"card-title-chevron"}," ›",-1),w={class:"card-description"},T={class:"card-content-bottom"},C={key:0,class:"downloads"},P={class:"cta-container"},A={key:1,class:"matomo-badge matomo-badge-bottom",src:"plugins/Marketplace/images/matomo-badge.png","aria-label":"Matomo plugin",alt:""};function D(e,t,n,a,l,r){var o=this,c=Object(i["resolveComponent"])("StartFreeTrial"),s=Object(i["resolveComponent"])("PluginDetailsModal"),u=Object(i["resolveComponent"])("CTAContainer");return Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],null,[Object(i["createVNode"])(c,{"current-user-email":e.currentUserEmail,"is-valid-consumer":e.isValidConsumer,modelValue:e.showStartFreeTrialForPlugin,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.showStartFreeTrialForPlugin=t}),onTrialStarted:t[1]||(t[1]=function(t){return e.$emit("triggerUpdate")})},null,8,["current-user-email","is-valid-consumer","modelValue"]),Object(i["createVNode"])(s,{modelValue:e.showPluginDetailsForPlugin,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.showPluginDetailsForPlugin=t}),"is-super-user":e.isSuperUser,"is-plugins-admin-enabled":e.isPluginsAdminEnabled,"is-multi-server-environment":e.isMultiServerEnvironment,"is-valid-consumer":e.isValidConsumer,"is-auto-update-possible":e.isAutoUpdatePossible,"has-some-admin-access":e.hasSomeAdminAccess,"deactivate-nonce":e.deactivateNonce,"activate-nonce":e.activateNonce,"install-nonce":e.installNonce,"update-nonce":e.updateNonce,onStartFreeTrial:t[3]||(t[3]=function(e){return o.showStartFreeTrialForPlugin=e})},null,8,["modelValue","is-super-user","is-plugins-admin-enabled","is-multi-server-environment","is-valid-consumer","is-auto-update-possible","has-some-admin-access","deactivate-nonce","activate-nonce","install-nonce","update-nonce"]),e.pluginsToShow.length>0?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",O,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.pluginsToShow,(function(t){return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:"col s12 m6 l4",key:t.name},[Object(i["createElementVNode"])("div",{class:Object(i["normalizeClass"])("card-holder ".concat(t.numDownloads>0?"card-with-downloads":"")),onClick:function(n){return e.clickCard(n,t)}},[Object(i["createElementVNode"])("div",k,[Object(i["createElementVNode"])("div",v,[Object(i["createElementVNode"])("img",{src:"".concat(t.coverImage,"?w=880&h=480"),alt:"",class:"cover-image"},null,8,h),Object(i["createElementVNode"])("div",y,[Object(i["createElementVNode"])("div",f,["piwik"==t.owner||"matomo-org"==t.owner?(Object(i["openBlock"])(),Object(i["createElementBlock"])("img",N)):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("div",V,[t.priceFrom?(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:0},[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("Marketplace_PriceFromPerPeriod",t.priceFrom.prettyPrice,t.priceFrom.period)),1)],64)):t.isFree?(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:1},[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("Marketplace_Free")),1)],64)):Object(i["createCommentVNode"])("",!0)]),Object(i["createElementVNode"])("a",{onClick:Object(i["withModifiers"])((function(n){return e.clickCard(n,t)}),["prevent"]),class:"card-title-link",href:"#",tabindex:"7"},[S,Object(i["createElementVNode"])("h2",B,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(t.displayName),1),M])],8,E),Object(i["createElementVNode"])("div",w,Object(i["toDisplayString"])(t.description),1)]),Object(i["createElementVNode"])("div",T,[t.numDownloads>0?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",C,Object(i["toDisplayString"])(t.numDownloadsPretty)+" "+Object(i["toDisplayString"])(e.translate("General_Downloads").toLowerCase()),1)):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("div",P,[Object(i["createVNode"])(u,{"is-super-user":e.isSuperUser,"is-plugins-admin-enabled":e.isPluginsAdminEnabled,"is-multi-server-environment":e.isMultiServerEnvironment,"is-valid-consumer":e.isValidConsumer,"is-auto-update-possible":e.isAutoUpdatePossible,"activate-nonce":e.activateNonce,"deactivate-nonce":e.deactivateNonce,"install-nonce":e.installNonce,"update-nonce":e.updateNonce,plugin:t,"in-modal":!1,onStartFreeTrial:function(n){return e.showStartFreeTrialForPlugin=t.name},onOpenDetailsModal:function(e){return o.openDetailsModal(t)}},null,8,["is-super-user","is-plugins-admin-enabled","is-multi-server-environment","is-valid-consumer","is-auto-update-possible","activate-nonce","deactivate-nonce","install-nonce","update-nonce","plugin","onStartFreeTrial","onOpenDetailsModal"])]),"piwik"==t.owner||"matomo-org"==t.owner?(Object(i["openBlock"])(),Object(i["createElementBlock"])("img",A)):Object(i["createCommentVNode"])("",!0)])])])])],10,j)])})),128))])):Object(i["createCommentVNode"])("",!0)],64)}var L={key:0,class:"alert alert-danger alert-no-background"},_={key:0,style:{"white-space":"nowrap"}},U=Object(i["createTextVNode"])("("),x=Object(i["createTextVNode"])(")"),F={key:1,class:"alert alert-danger alert-no-background"},q={key:0,style:{"white-space":"nowrap"}},I=Object(i["createTextVNode"])("("),K=Object(i["createTextVNode"])(")"),R=["href"],H={key:1,class:"alert alert-warning alert-no-background"},z={style:{"white-space":"nowrap"}},G=Object(i["createTextVNode"])("("),W=Object(i["createTextVNode"])(")"),Q={key:3,class:"alert alert-success alert-no-background"},J=Object(i["createTextVNode"])(" ("),Y=Object(i["createTextVNode"])(") "),Z=Object(i["createTextVNode"])(" ("),X=["href"],ee=Object(i["createTextVNode"])(" - "),te=["href"],ne=Object(i["createTextVNode"])(") "),ae=["title"],le={key:6,class:"alert alert-warning alert-no-background"},ie={style:{"white-space":"nowrap"}},re=Object(i["createTextVNode"])("("),oe=Object(i["createTextVNode"])(")"),ce=["href"];function se(e,t,n,a,l,r){var o=Object(i["resolveComponent"])("MoreDetailsAction"),c=Object(i["resolveComponent"])("DownloadButton");return e.isSuperUser?(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:0},[e.plugin.isMissingLicense?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",L,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("Marketplace_LicenseMissing"))+" ",1),e.inModal?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",_,[U,Object(i["createVNode"])(o,{onAction:t[0]||(t[0]=function(t){return e.$emit("openDetailsModal")})}),x]))])):e.plugin.hasExceededLicense?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",F,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("Marketplace_LicenseExceeded"))+" ",1),e.inModal?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",q,[I,Object(i["createVNode"])(o,{onAction:t[1]||(t[1]=function(t){return e.$emit("openDetailsModal")})}),K]))])):e.plugin.canBeUpdated&&0==e.plugin.missingRequirements.length?(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:2},[e.isAutoUpdatePossible?(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:0,tabindex:"7",class:"btn btn-block",href:e.linkToUpdate(e.plugin.name)},Object(i["toDisplayString"])(e.translate("CoreUpdater_UpdateTitle")),9,R)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",H,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("Marketplace_CannotUpdate"))+" ",1),Object(i["createElementVNode"])("span",z,[G,e.inModal?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(o,{key:0,onAction:t[2]||(t[2]=function(t){return e.$emit("openDetailsModal")})})),Object(i["createVNode"])(c,{plugin:e.plugin,"show-or":!0,"is-auto-update-possible":e.isAutoUpdatePossible},null,8,["plugin","is-auto-update-possible"]),W])]))],64)):e.plugin.isInstalled?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Q,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("General_Installed"))+" ",1),e.plugin.missingRequirements.length>0||!e.isAutoUpdatePossible?(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:0},[J,Object(i["createVNode"])(c,{plugin:e.plugin,"show-or":!1,"is-auto-update-possible":e.isAutoUpdatePossible},null,8,["plugin","is-auto-update-possible"]),Y],64)):e.plugin.isInvalid||e.isMultiServerEnvironment||!e.isPluginsAdminEnabled?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:1},[Z,e.plugin.isActivated?(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:0,tabindex:"7",href:e.linkToDeactivate(e.plugin.name)},Object(i["toDisplayString"])(e.translate("CorePluginsAdmin_Deactivate")),9,X)):e.plugin.missingRequirements.length>0?(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:1},[ee],64)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:2,tabindex:"7",href:e.linkToActivate(e.plugin.name)},Object(i["toDisplayString"])(e.translate("CorePluginsAdmin_Activate")),9,te)),ne],64))])):e.plugin.isEligibleForFreeTrial?(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:4,tabindex:"7",class:"btn btn-block purchaseable",href:"",onClick:t[3]||(t[3]=Object(i["withModifiers"])((function(t){e.$emit("startFreeTrial")}),["prevent"])),onKeyup:t[4]||(t[4]=Object(i["withKeys"])((function(t){return e.$emit("startFreeTrial")}),["enter"])),title:e.translate("Marketplace_StartFreeTrial")},Object(i["toDisplayString"])(e.translate("Marketplace_StartFreeTrial")),41,ae)):e.inModal||e.plugin.isDownloadable||!(e.plugin.isPaid||e.plugin.missingRequirements.length>0)&&e.isAutoUpdatePossible?e.plugin.missingRequirements.length>0||!e.isAutoUpdatePossible?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",le,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("Marketplace_CannotInstall"))+" ",1),Object(i["createElementVNode"])("span",ie,[re,e.inModal?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(o,{key:0,onAction:t[6]||(t[6]=function(t){return e.$emit("openDetailsModal")})})),Object(i["createVNode"])(c,{plugin:e.plugin,"show-or":!0,"is-auto-update-possible":e.isAutoUpdatePossible},null,8,["plugin","is-auto-update-possible"]),oe])])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:7,tabindex:"7",href:e.linkToInstall(e.plugin.name),class:"btn btn-block"},Object(i["toDisplayString"])(e.translate("Marketplace_ActionInstall")),9,ce)):(Object(i["openBlock"])(),Object(i["createBlock"])(o,{key:5,"show-as-button":!0,label:e.translate("General_MoreDetails"),onAction:t[5]||(t[5]=function(t){return e.$emit("openDetailsModal")})},null,8,["label"]))],64)):(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:1},[e.inModal?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(o,{key:0,"show-as-button":!0,label:e.translate("General_MoreDetails"),onAction:t[7]||(t[7]=function(t){return e.$emit("openDetailsModal")})},null,8,["label"]))],64))}var ue={key:0,onclick:"$(this).css('display', 'none')"},de=["href"];function pe(e,t,n,a,l,r){return 0===e.plugin.missingRequirements.length&&e.plugin.isDownloadable&&!e.isAutoUpdatePossible?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",ue,[e.showOr?(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:0},[Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("General_Or"))+" ",1)],64)):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("a",{tabindex:"7",class:"plugin-details download",href:e.linkTo({module:"Marketplace",action:"download",pluginName:e.plugin.name,nonce:e.plugin.downloadNonce})},Object(i["toDisplayString"])(e.translate("General_Download")),9,de)])):Object(i["createCommentVNode"])("",!0)}var me=Object(i["defineComponent"])({props:{plugin:{type:Object,required:!0},showOr:{type:Boolean,default:!1},isAutoUpdatePossible:{type:Boolean,required:!0}},methods:{linkTo:function(e){return"?".concat(b["MatomoUrl"].stringify(Object.assign(Object.assign({},b["MatomoUrl"].urlParsed.value),e)))}}});me.render=pe;var be=me,ge=["title"];function Oe(e,t,n,a,l,r){return Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{tabindex:"7",class:Object(i["normalizeClass"])({"btn btn-block":e.showAsButton}),href:"",title:e.translate("General_MoreDetails"),onClick:t[0]||(t[0]=Object(i["withModifiers"])((function(t){return e.$emit("action")}),["prevent"])),onKeyup:t[1]||(t[1]=Object(i["withKeys"])((function(t){return e.$emit("action")}),["enter"]))},Object(i["toDisplayString"])(e.label?e.label:e.translate("General_Help")),43,ge)}var je=Object(i["defineComponent"])({props:{showAsButton:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1}},emits:["action"]});je.render=Oe;var ke=je,ve=Object(i["defineComponent"])({props:{plugin:{type:Object,required:!0},activateNonce:{type:String,required:!0},deactivateNonce:{type:String,required:!0},installNonce:{type:String,required:!0},updateNonce:{type:String,required:!0},isAutoUpdatePossible:{type:Boolean,required:!0},isValidConsumer:{type:Boolean,required:!0},isMultiServerEnvironment:{type:Boolean,required:!0},isPluginsAdminEnabled:{type:Boolean,required:!0},isSuperUser:{type:Boolean,required:!0},inModal:{type:Boolean,required:!0}},emits:["startFreeTrial","openDetailsModal"],components:{MoreDetailsAction:ke,DownloadButton:be},directives:{PluginName:g["PluginName"]},methods:{linkToActivate:function(e){return this.linkTo({module:"CorePluginsAdmin",action:"activate",redirectTo:"referrer",nonce:this.activateNonce,pluginName:e})},linkToDeactivate:function(e){return this.linkTo({module:"CorePluginsAdmin",action:"deactivate",redirectTo:"referrer",nonce:this.deactivateNonce,pluginName:e})},linkToInstall:function(e){return this.linkTo({module:"Marketplace",action:"installPlugin",nonce:this.installNonce,pluginName:e})},linkToUpdate:function(e){return this.linkTo({module:"Marketplace",action:"updatePlugin",nonce:this.updateNonce,pluginName:e})},linkTo:function(e){return"?".concat(b["MatomoUrl"].stringify(Object.assign(Object.assign({},b["MatomoUrl"].urlParsed.value),e)))}}});ve.render=se;var he=ve,ye={class:"modal",id:"startFreeTrial"},fe={key:0,class:"btn-close modal-close"},Ne=Object(i["createElementVNode"])("i",{class:"icon-close"},null,-1),Ve=[Ne],Ee={key:1,class:"modal-content trial-start-in-progress"},Se={class:"Piwik_Popover_Loading"},Be={class:"Piwik_Popover_Loading_Name"},Me={key:2,class:"modal-content trial-start-error"},we={class:"modal-text"},Te={key:3,class:"modal-content trial-start-no-license"},Ce={class:"modal-text"},Pe=["innerHTML"],Ae=["innerHTML"],De=["disabled"],Le=["innerHTML"];function _e(e,t,n,a,l,r){var o=Object(i["resolveComponent"])("Field");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",ye,[e.trialStartInProgress?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("p",fe,Ve)),e.trialStartInProgress?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Ee,[Object(i["createElementVNode"])("div",Se,[Object(i["createElementVNode"])("div",Be,[Object(i["createElementVNode"])("h2",null,Object(i["toDisplayString"])(e.translate("Marketplace_TrialStartInProgressTitle")),1),Object(i["createElementVNode"])("p",null,Object(i["toDisplayString"])(e.translate("Marketplace_TrialStartInProgressText")),1)])])])):e.trialStartError?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Me,[Object(i["createElementVNode"])("div",we,[Object(i["createElementVNode"])("h2",null,Object(i["toDisplayString"])(e.translate("Marketplace_TrialStartErrorTitle")),1),Object(i["createElementVNode"])("p",null,Object(i["toDisplayString"])(e.trialStartError),1),Object(i["createElementVNode"])("p",null,Object(i["toDisplayString"])(e.translate("Marketplace_TrialStartErrorSupport")),1)])])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Te,[Object(i["createElementVNode"])("div",Ce,[Object(i["createElementVNode"])("h2",null,Object(i["toDisplayString"])(e.translate("Marketplace_TrialStartNoLicenseTitle")),1),Object(i["createElementVNode"])("p",null,Object(i["toDisplayString"])(e.translate("Marketplace_TrialStartNoLicenseText")),1),Object(i["createVNode"])(o,{uicontrol:"text",name:"email",modelValue:e.createAccountEmail,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.createAccountEmail=t}),"full-width":!0,title:e.translate("UsersManager_Email")},null,8,["modelValue","title"]),e.createAccountError?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:0,class:"alert alert-danger",innerHTML:e.$sanitize(e.createAccountError)},null,8,Pe)):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("p",{class:"trial-start-legal-hint",innerHTML:e.$sanitize(e.trialStartNoLicenseLegalHintText)},null,8,Ae),Object(i["createElementVNode"])("p",null,[Object(i["createElementVNode"])("button",{class:"btn",disabled:!e.createAccountEmail,onClick:t[1]||(t[1]=function(t){return e.createAccountAndStartFreeTrial()})},Object(i["toDisplayString"])(e.translate("Marketplace_TrialStartNoLicenseCreateAccount")),9,De)]),Object(i["createElementVNode"])("p",{class:"add-existing-license",innerHTML:e.$sanitize(e.trialStartNoLicenseAddHereText)},null,8,Le)])]))])}function Ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,a=new Array(t);ne.length)&&(t=e.length);for(var n=0,a=new Array(t);n1?t-1:0),a=1;a","",e),this.startFreeTrial()):(this.trialStartSuccessNotificationTitle=Object(b["translate"])("CorePluginsAdmin_PluginFreeTrialStartedAccountCreatedTitle"),this.trialStartSuccessNotificationMessage=Object(b["translate"])("CorePluginsAdmin_PluginFreeTrialStartedAccountCreatedMessage",e),this.showLicenseDialog(!1)))}},computed:{trialStartNoLicenseAddHereText:function(){var e="?".concat(b["MatomoUrl"].stringify({module:"Marketplace",action:"manageLicenseKey"}));return Object(b["translate"])("Marketplace_TrialStartNoLicenseAddHere",''),"")},trialStartNoLicenseLegalHintText:function(){return Object(b["translate"])("Marketplace_TrialStartNoLicenseLegalHint",Object(b["externalLink"])("https://shop.matomo.org/terms-conditions/"),"",Object(b["externalLink"])("https://matomo.org/privacy-policy/"),"")}},methods:{closeModal:function(){it("#startFreeTrial").modal("close")},createAccountAndStartFreeTrial:function(){var e=this;this.createAccountEmail&&(this.showLoadingModal(!0),b["AjaxHelper"].post({module:"API",method:"Marketplace.createAccount"},{email:this.createAccountEmail},{createErrorNotification:!1}).then((function(){e.startFreeTrial()})).catch((function(t){t.message.startsWith("Marketplace_CreateAccountError")?(e.showErrorModal(Object(b["translate"])(t.message)),e.trialStartInProgress=!1,e.$emit("update:modelValue","")):(e.createAccountError=t.message,e.trialStartInProgress=!1,e.showLicenseDialog(!0))})))},showLicenseDialog:function(e){var t=this,n=function(e){var n=e.keyCode?e.keyCode:e.which;13===n&&(t.closeModal(),t.createAccountAndStartFreeTrial())},a={dismissible:!0,onOpenEnd:function(){var e=".modal.open #email";it(e).focus(),it(e).off("keypress").keypress(n)},onCloseEnd:function(){t.createAccountError=null,t.trialStartInProgress||t.$emit("update:modelValue","")}};e&&(a.inDuration=0),it("#startFreeTrial").modal(a).modal("open")},showErrorModal:function(e){var t=this;this.trialStartError||(this.trialStartError=e,it("#startFreeTrial").modal({dismissible:!0,inDuration:0,onCloseEnd:function(){t.trialStartError=null}}).modal("open"))},showLoadingModal:function(e){var t=this;this.trialStartInProgress||(this.trialStartInProgress=!0,this.loadingModalCloseCallback=void 0,it("#startFreeTrial").modal({dismissible:!1,inDuration:e?0:void 0,onCloseEnd:function(){t.loadingModalCloseCallback&&(t.loadingModalCloseCallback(),t.loadingModalCloseCallback=void 0)}}).modal("open"))},startFreeTrial:function(){var e=this;this.showLoadingModal(!1),b["AjaxHelper"].post({module:"API",method:"Marketplace.startFreeTrial"},{pluginName:this.modelValue},{createErrorNotification:!1}).then((function(){e.loadingModalCloseCallback=e.startFreeTrialSuccess,e.closeModal()})).catch((function(t){e.showErrorModal(lt.helper.htmlDecode(t.message)),e.trialStartInProgress=!1})).finally((function(){e.$emit("update:modelValue","")}))},startFreeTrialSuccess:function(){var e=b["NotificationsStore"].show({message:this.trialStartSuccessNotificationMessage,title:this.trialStartSuccessNotificationTitle,context:"success",id:"startTrialSuccess",placeat:"#notificationContainer",type:"transient"});b["NotificationsStore"].scrollToNotification(e),this.trialStartInProgress=!1,this.$emit("trialStarted")}}});ot.render=Fe;var ct=ot,st=window,ut=st.$,dt=Object(r["defineComponent"])({props:{currentUserEmail:String,pluginsToShow:{type:Array,required:!0},isAutoUpdatePossible:{type:Boolean,required:!0},isSuperUser:{type:Boolean,required:!0},isValidConsumer:{type:Boolean,required:!0},isMultiServerEnvironment:{type:Boolean,required:!0},isPluginsAdminEnabled:{type:Boolean,required:!0},activateNonce:{type:String,required:!0},deactivateNonce:{type:String,required:!0},installNonce:{type:String,required:!0},updateNonce:{type:String,required:!0}},data:function(){return{showStartFreeTrialForPlugin:""}},components:{CTAContainer:Ne,StartFreeTrial:ct},directives:{PluginName:g["PluginName"]},emits:["triggerUpdate"],watch:{pluginsToShow:function(e,t){e&&e!==t&&this.shrinkDescriptionIfMultilineTitle()}},mounted:function(){var e=this;ut(window).resize((function(){e.shrinkDescriptionIfMultilineTitle()}))},methods:{shrinkDescriptionIfMultilineTitle:function(){var e=ut(".marketplace .card-holder");e&&e.length&&e.each((function(e,t){var n=ut(t),a=n.find(".card-title"),l=n.find(".card-content-bottom .alert"),r=n.hasClass("card-with-downloads"),i=1;if(a.length){var o,c=+a.height(),s=+a.css("line-height").replace("px","");if(s)i=null!==(o=Math.ceil(c/s))&&void 0!==o?o:1}var u=0;if(l.length){var d,p=+l.height(),m=+l.css("line-height").replace("px","");if(m)u=null!==(d=Math.ceil(p/m))&&void 0!==d?d:1}var b=n.find(".card-description");if(b.length){var g=b[0],O=0;r?((i>=2||u>2||i+u>=4)&&(O=2),i+u>=5&&(O=1)):i+u>=5&&(O=2),O?g.setAttribute("data-clamp","".concat(O)):g.removeAttribute("data-clamp")}}))},clickCard:function(e){if(!ut(e.target).closest("a").length){var t=ut(e.target).closest(".card-holder").find("a.card-title-link").get(0);t&&(e.stopPropagation(),t.dispatchEvent(new Event("click",{bubbles:!1})))}}}});dt.render=L;var pt=dt,mt=function(e){return"".concat(e[0].toLowerCase()).concat(e.substring(1))},bt=Object(r["defineComponent"])({props:{pluginTypeOptions:{type:Object,required:!0},defaultSort:{type:String,required:!0},pluginSortOptions:{type:Object,required:!0},numAvailablePluginsByType:{type:Object,required:!0},currentUserEmail:String,isValidConsumer:Boolean,isSuperUser:Boolean,isAutoUpdatePossible:Boolean,isPluginsAdminEnabled:Boolean,isMultiServerEnvironment:Boolean,installNonce:{type:String,required:!0},activateNonce:{type:String,required:!0},deactivateNonce:{type:String,required:!0},updateNonce:{type:String,required:!0}},components:{ContentBlock:b["ContentBlock"],PluginList:pt,Field:g["Field"]},data:function(){return{loading:!1,fetchRequest:null,fetchRequestAbortController:null,pluginSort:this.defaultSort,pluginTypeFilter:"plugins",searchQuery:"",pluginsToShow:[]}},mounted:function(){var e=this;b["Matomo"].postEvent("Marketplace.Marketplace.mounted",{element:this.$refs.root}),Object(r["watch"])((function(){return b["MatomoUrl"].hashParsed.value}),(function(){e.updateValuesFromHash(!1)})),this.updateValuesFromHash(!0)},unmounted:function(){b["Matomo"].postEvent("Marketplace.Marketplace.unmounted",{element:this.$refs.root})},methods:{updateValuesFromHash:function(e){var t=e,n=b["MatomoUrl"].hashParsed.value.query||"",a=b["MatomoUrl"].hashParsed.value.sort||"",l=b["MatomoUrl"].hashParsed.value.pluginType||"";(n||this.searchQuery)&&(t=t||n!==this.searchQuery,this.searchQuery=n),a&&(t=t||a!==this.pluginSort,this.pluginSort=a),l&&(t=t||l!==this.pluginTypeFilter,this.pluginTypeFilter=l),t&&this.fetchPlugins()},updateQuery:function(e){b["MatomoUrl"].updateHash(Object.assign(Object.assign({},b["MatomoUrl"].hashParsed.value),{},{query:e}))},updateType:function(e){b["MatomoUrl"].updateHash(Object.assign(Object.assign({},b["MatomoUrl"].hashParsed.value),{},{pluginType:e}))},updateSort:function(e){b["MatomoUrl"].updateHash(Object.assign(Object.assign({},b["MatomoUrl"].hashParsed.value),{},{sort:e}))},fetchPlugins:function(){var e=this;this.loading=!0,this.pluginsToShow=[],this.fetchRequestAbortController&&(this.fetchRequestAbortController.abort(),this.fetchRequestAbortController=null),this.fetchRequestAbortController=new AbortController,this.fetchRequest=b["AjaxHelper"].post({module:"Marketplace",action:"searchPlugins",format:"JSON"},{query:this.searchQuery,sort:this.pluginSort,themesOnly:this.showThemes,purchaseType:"premium"===this.pluginTypeFilter?"paid":""},{withTokenInUrl:!0,abortController:this.fetchRequestAbortController}).then((function(t){e.pluginsToShow=t})).finally((function(){e.loading=!1,e.fetchRequestAbortController=null}))}},computed:{queryInputTitle:function(){var e=mt(Object(b["translate"])("General_Plugins")),t=this.numAvailablePluginsByType[this.pluginTypeFilter]||0;return"".concat(Object(b["translate"])("General_Search")," ").concat(t," ").concat(e,"...")},loadingMessage:function(){return Object(b["translate"])("Mobile_LoadingReport",Object(b["translate"])(this.showThemes?"CorePluginsAdmin_Themes":"General_Plugins"))},showThemes:function(){return"themes"===this.pluginTypeFilter}}});bt.render=m;var gt=bt,Ot={class:"marketplace-max-width"},jt={class:"marketplace-paid-intro"},vt={key:0},kt={key:0},ht=Object(r["createElementVNode"])("br",null,null,-1),yt={class:"licenseToolbar valign-wrapper"},ft=["href"],Nt={key:0},Vt={class:"ui-confirm",id:"installAllPaidPluginsAtOnce",ref:"installAllPaidPluginsAtOnce"},Et=Object(r["createElementVNode"])("br",null,null,-1),St=Object(r["createElementVNode"])("br",null,null,-1),Mt=["data-href","value"],Bt=["value"],Tt={key:1},Pt={key:0},wt=["innerHTML"],Ct=Object(r["createElementVNode"])("br",null,null,-1),Lt={class:"licenseToolbar valign-wrapper"},At={key:1},_t=["innerHTML"],Dt={class:"ui-confirm",id:"confirmRemoveLicense",ref:"confirmRemoveLicense"},Ut=["value"],xt=["value"];function Ft(e,t,n,a,l,i){var o=Object(r["resolveComponent"])("DefaultLicenseKeyFields"),c=Object(r["resolveComponent"])("SaveButton"),s=Object(r["resolveComponent"])("ActivityIndicator");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",Ot,[Object(r["createElementVNode"])("div",jt,[e.isValidConsumer?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",vt,[e.isSuperUser?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",kt,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("Marketplace_PaidPluginsWithLicenseKeyIntro",""))+" ",1),ht,Object(r["createElementVNode"])("div",yt,[Object(r["createVNode"])(o,{"model-value":e.licenseKey,"onUpdate:modelValue":t[0]||(t[0]=function(t){e.licenseKey=t,e.updatedLicenseKey()}),onConfirm:t[1]||(t[1]=function(t){return e.updateLicense()}),"has-license-key":e.hasLicenseKey,"is-valid-consumer":e.isValidConsumer,"enable-update":e.enableUpdate},null,8,["model-value","has-license-key","is-valid-consumer","enable-update"]),Object(r["createVNode"])(c,{class:"valign",id:"remove_license_key",onConfirm:t[2]||(t[2]=function(t){return e.removeLicense()}),value:e.translate("Marketplace_RemoveLicenseKey")},null,8,["value"]),Object(r["createElementVNode"])("a",{class:"btn valign",href:e.subscriptionOverviewLink},Object(r["toDisplayString"])(e.translate("Marketplace_ViewSubscriptions")),9,ft),e.showInstallAllPaidPlugins?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",Nt,[Object(r["createElementVNode"])("a",{href:"",class:"btn installAllPaidPlugins valign",onClick:t[3]||(t[3]=Object(r["withModifiers"])((function(t){return e.onInstallAllPaidPlugins()}),["prevent"]))},Object(r["toDisplayString"])(e.translate("Marketplace_InstallPurchasedPlugins")),1),Object(r["createElementVNode"])("div",Vt,[Object(r["createElementVNode"])("h2",null,Object(r["toDisplayString"])(e.translate("Marketplace_InstallAllPurchasedPlugins")),1),Object(r["createElementVNode"])("p",null,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("Marketplace_InstallThesePlugins"))+" ",1),Et,St]),Object(r["createElementVNode"])("ul",null,[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(e.paidPluginsToInstallAtOnce,(function(e){return Object(r["openBlock"])(),Object(r["createElementBlock"])("li",{key:e},Object(r["toDisplayString"])(e),1)})),128))]),Object(r["createElementVNode"])("p",null,[Object(r["createElementVNode"])("input",{role:"install",type:"button","data-href":e.installAllPaidPluginsLink,value:e.translate("Marketplace_InstallAllPurchasedPluginsAction",e.paidPluginsToInstallAtOnce.length)},null,8,Mt),Object(r["createElementVNode"])("input",{role:"cancel",type:"button",value:e.translate("General_Cancel")},null,8,Bt)])],512)])):Object(r["createCommentVNode"])("",!0)]),Object(r["createVNode"])(s,{loading:e.isUpdating},null,8,["loading"])])):Object(r["createCommentVNode"])("",!0)])):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",Tt,[e.isSuperUser?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",Pt,[Object(r["createElementVNode"])("span",{innerHTML:e.$sanitize(e.noLicenseKeyIntroText)},null,8,wt),Ct,Object(r["createElementVNode"])("div",Lt,[Object(r["createVNode"])(o,{"model-value":e.licenseKey,"onUpdate:modelValue":t[4]||(t[4]=function(t){e.licenseKey=t,e.updatedLicenseKey()}),onConfirm:t[5]||(t[5]=function(t){return e.updateLicense()}),"has-license-key":e.hasLicenseKey,"is-valid-consumer":e.isValidConsumer,"enable-update":e.enableUpdate},null,8,["model-value","has-license-key","is-valid-consumer","enable-update"])]),Object(r["createVNode"])(s,{loading:e.isUpdating},null,8,["loading"])])):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",At,[Object(r["createElementVNode"])("span",{innerHTML:e.$sanitize(e.noLicenseKeyIntroNoSuperUserAccessText)},null,8,_t)]))]))]),Object(r["createElementVNode"])("div",Dt,[Object(r["createElementVNode"])("h2",null,Object(r["toDisplayString"])(e.translate("Marketplace_ConfirmRemoveLicense")),1),Object(r["createElementVNode"])("input",{role:"yes",type:"button",value:e.translate("General_Yes")},null,8,Ut),Object(r["createElementVNode"])("input",{role:"no",type:"button",value:e.translate("General_No")},null,8,xt)],512)])}var qt={class:"valign licenseKeyText"};function Kt(e,t,n,a,l,i){var o=Object(r["resolveComponent"])("Field"),c=Object(r["resolveComponent"])("SaveButton");return Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],null,[Object(r["createElementVNode"])("div",qt,[Object(r["createVNode"])(o,{uicontrol:"text",name:"license_key","full-width":!0,"model-value":e.modelValue,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.$emit("update:modelValue",t)}),placeholder:e.licenseKeyPlaceholder},null,8,["model-value","placeholder"])]),Object(r["createVNode"])(c,{class:"valign",onConfirm:t[1]||(t[1]=function(t){return e.$emit("confirm")}),disabled:!e.enableUpdate,value:e.saveButtonText,id:"submit_license_key"},null,8,["disabled","value"])],64)}var It=Object(r["defineComponent"])({props:{modelValue:String,isValidConsumer:Boolean,hasLicenseKey:Boolean,enableUpdate:Boolean},emits:["update:modelValue","confirm"],components:{Field:g["Field"],SaveButton:g["SaveButton"]},computed:{licenseKeyPlaceholder:function(){return this.isValidConsumer?Object(b["translate"])("Marketplace_LicenseKeyIsValidShort"):Object(b["translate"])("Marketplace_LicenseKey")},saveButtonText:function(){return this.hasLicenseKey?Object(b["translate"])("CoreUpdater_UpdateTitle"):Object(b["translate"])("Marketplace_ActivateLicenseKey")}}});It.render=Kt;var Ht=It,Rt=Object(r["defineComponent"])({props:{isValidConsumer:Boolean,isSuperUser:Boolean,isAutoUpdatePossible:Boolean,isPluginsAdminEnabled:Boolean,hasLicenseKey:Boolean,paidPluginsToInstallAtOnce:{type:Array,required:!0},installNonce:{type:String,required:!0}},components:{SaveButton:g["SaveButton"],ActivityIndicator:b["ActivityIndicator"],DefaultLicenseKeyFields:Ht},data:function(){return{licenseKey:"",enableUpdate:!1,isUpdating:!1}},methods:{onInstallAllPaidPlugins:function(){b["Matomo"].helper.modalConfirm(this.$refs.installAllPaidPluginsAtOnce)},updateLicenseKey:function(e,t,n){var a=this;b["AjaxHelper"].post({module:"API",method:"Marketplace.".concat(e),format:"JSON"},{licenseKey:this.licenseKey},{withTokenInUrl:!0}).then((function(e){a.isUpdating=!1,e&&e.value&&(b["NotificationsStore"].show({message:n,context:"success",type:"transient"}),b["Matomo"].helper.redirect())}),(function(){a.isUpdating=!1}))},removeLicense:function(){var e=this;b["Matomo"].helper.modalConfirm(this.$refs.confirmRemoveLicense,{yes:function(){e.enableUpdate=!1,e.isUpdating=!0,e.updateLicenseKey("deleteLicenseKey","",Object(b["translate"])("Marketplace_LicenseKeyDeletedSuccess"))}})},updatedLicenseKey:function(){this.enableUpdate=!!this.licenseKey},updateLicense:function(){this.enableUpdate=!1,this.isUpdating=!0,this.updateLicenseKey("saveLicenseKey",this.licenseKey,Object(b["translate"])("Marketplace_LicenseKeyActivatedSuccess"))}},computed:{subscriptionOverviewLink:function(){return"?".concat(b["MatomoUrl"].stringify(Object.assign(Object.assign({},b["MatomoUrl"].urlParsed.value),{},{module:"Marketplace",action:"subscriptionOverview"})))},noLicenseKeyIntroText:function(){return Object(b["translate"])("Marketplace_PaidPluginsNoLicenseKeyIntro",Object(b["externalLink"])("https://matomo.org/recommends/premium-plugins/"),"")},noLicenseKeyIntroNoSuperUserAccessText:function(){return Object(b["translate"])("Marketplace_PaidPluginsNoLicenseKeyIntroNoSuperUserAccess",Object(b["externalLink"])("https://matomo.org/recommends/premium-plugins/"),"")},installAllPaidPluginsLink:function(){return"?".concat(b["MatomoUrl"].stringify(Object.assign(Object.assign({},b["MatomoUrl"].urlParsed.value),{},{module:"Marketplace",action:"installAllPaidPlugins",nonce:this.installNonce})))},showInstallAllPaidPlugins:function(){return this.isAutoUpdatePossible&&this.isPluginsAdminEnabled&&this.paidPluginsToInstallAtOnce.length}}});Rt.render=Ft;var $t=Rt,Gt=["innerHTML"],zt={class:"manage-license-key-input"},Qt={class:"ui-confirm",id:"confirmRemoveLicense",ref:"confirmRemoveLicense"},Wt=["value"],Jt=["value"];function Yt(e,t,n,a,l,i){var o=Object(r["resolveComponent"])("Field"),c=Object(r["resolveComponent"])("SaveButton"),s=Object(r["resolveComponent"])("ActivityIndicator"),u=Object(r["resolveComponent"])("ContentBlock");return Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],null,[Object(r["createVNode"])(u,{"content-title":e.translate("Marketplace_LicenseKey"),class:"manage-license-key"},{default:Object(r["withCtx"])((function(){return[Object(r["createElementVNode"])("div",{class:"manage-license-key-intro",innerHTML:e.$sanitize(e.manageLicenseKeyIntro)},null,8,Gt),Object(r["createElementVNode"])("div",zt,[Object(r["createVNode"])(o,{uicontrol:"text",name:"license_key",modelValue:e.licenseKey,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.licenseKey=t}),placeholder:e.licenseKeyPlaceholder,"full-width":!0},null,8,["modelValue","placeholder"])]),Object(r["createVNode"])(c,{onConfirm:t[1]||(t[1]=function(t){return e.updateLicense()}),value:e.saveButtonText,disabled:!e.licenseKey||e.isUpdating,id:"submit_license_key"},null,8,["value","disabled"]),e.hasValidLicense?(Object(r["openBlock"])(),Object(r["createBlock"])(c,{key:0,id:"remove_license_key",onConfirm:t[2]||(t[2]=function(t){return e.removeLicense()}),disabled:e.isUpdating,value:e.translate("General_Remove")},null,8,["disabled","value"])):Object(r["createCommentVNode"])("",!0),Object(r["createVNode"])(s,{loading:e.isUpdating},null,8,["loading"])]})),_:1},8,["content-title"]),Object(r["createElementVNode"])("div",Qt,[Object(r["createElementVNode"])("h2",null,Object(r["toDisplayString"])(e.translate("Marketplace_ConfirmRemoveLicense")),1),Object(r["createElementVNode"])("input",{role:"yes",type:"button",value:e.translate("General_Yes")},null,8,Wt),Object(r["createElementVNode"])("input",{role:"no",type:"button",value:e.translate("General_No")},null,8,Jt)],512)],64)}var Xt=Object(r["defineComponent"])({props:{hasValidLicenseKey:Boolean},components:{Field:g["Field"],ContentBlock:b["ContentBlock"],SaveButton:g["SaveButton"],ActivityIndicator:b["ActivityIndicator"]},data:function(){return{licenseKey:"",hasValidLicense:this.hasValidLicenseKey,isUpdating:!1}},methods:{updateLicenseKey:function(e,t,n){var a=this;b["NotificationsStore"].remove("ManageLicenseKeySuccess"),b["AjaxHelper"].post({module:"API",method:"Marketplace.".concat(e),format:"JSON"},{licenseKey:this.licenseKey},{withTokenInUrl:!0}).then((function(t){a.isUpdating=!1,t&&t.value&&(b["NotificationsStore"].show({id:"ManageLicenseKeySuccess",message:n,context:"success",type:"toast"}),a.hasValidLicense="deleteLicenseKey"!==e,a.licenseKey="")}),(function(){a.isUpdating=!1}))},removeLicense:function(){var e=this;b["Matomo"].helper.modalConfirm(this.$refs.confirmRemoveLicense,{yes:function(){e.isUpdating=!0,e.updateLicenseKey("deleteLicenseKey","",Object(b["translate"])("Marketplace_LicenseKeyDeletedSuccess"))}})},updateLicense:function(){this.isUpdating=!0,this.updateLicenseKey("saveLicenseKey",this.licenseKey,Object(b["translate"])("Marketplace_LicenseKeyActivatedSuccess"))}},computed:{manageLicenseKeyIntro:function(){var e="?".concat(b["MatomoUrl"].stringify(Object.assign(Object.assign({},b["MatomoUrl"].urlParsed.value),{},{module:"Marketplace",action:"overview"})));return Object(b["translate"])("Marketplace_ManageLicenseKeyIntro",''),"",Object(b["externalLink"])("https://shop.matomo.org/my-account"),"")},licenseKeyPlaceholder:function(){return this.hasValidLicense?Object(b["translate"])("Marketplace_LicenseKeyIsValidShort"):Object(b["translate"])("Marketplace_LicenseKey")},saveButtonText:function(){return this.hasValidLicense?Object(b["translate"])("CoreUpdater_UpdateTitle"):Object(b["translate"])("Marketplace_ActivateLicenseKey")}}});Xt.render=Yt;var Zt=Xt,en={class:"getNewPlugins"},tn={class:"row"},nn={class:"pluginName"},an=Object(r["createElementVNode"])("br",null,null,-1),ln={key:0},rn=Object(r["createElementVNode"])("br",null,null,-1),on=Object(r["createElementVNode"])("br",null,null,-1),cn=[rn,on],sn={class:"widgetBody"},un=["href"];function dn(e,t,n,a,l,i){var o=Object(r["resolveDirective"])("plugin-name");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",en,[Object(r["createElementVNode"])("div",tn,[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(e.plugins,(function(t,n){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:"col s12",key:t.name},[Object(r["withDirectives"])(Object(r["createElementVNode"])("h3",nn,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(t.displayName),1)],512),[[o,{pluginName:t.name}]]),Object(r["createElementVNode"])("span",null,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(t.description)+" ",1),an,Object(r["withDirectives"])(Object(r["createElementVNode"])("a",null,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("General_MoreDetails")),1)],512),[[o,{pluginName:t.name}]])]),n'),"")},pluginRows:function(){var e=[];return this.plugins.forEach((function(t,n){var a=Math.floor(n/3);e[a]=e[a]||[],e[a].push(t)})),e},overviewLink:function(){var e=b["MatomoUrl"].stringify({module:"Marketplace",action:"overview"}),t=b["MatomoUrl"].stringify({pluginType:"premium"});return"?".concat(e,"#?").concat(t)}}});Fn.render=xn;var qn=Fn;function Kn(e,t,n,a,l,i){return Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(e.plugin.missingRequirements||[],(function(t,n){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:n,class:"alert alert-danger"},Object(r["toDisplayString"])(e.translate("CorePluginsAdmin_MissingRequirementsNotice",e.requirement(t.requirement),t.actualVersion,t.requiredVersion)),1)})),128)}var In=Object(r["defineComponent"])({props:{plugin:{type:Object,required:!0}},methods:{requirement:function(e){return"php"===e?"PHP":"".concat(e[0].toUpperCase()).concat(e.substr(1))}}});In.render=Kn;var Hn=In,Rn={key:0},$n={key:1},Gn=["innerHTML"],zn={key:2},Qn=["innerHTML"],Wn=["innerHTML"];function Jn(e,t,n,a,l,i){var o=Object(r["resolveComponent"])("EnrichedHeadline"),c=Object(r["resolveComponent"])("LicenseKey"),s=Object(r["resolveComponent"])("UploadPluginDialog"),u=Object(r["resolveComponent"])("Marketplace"),d=Object(r["resolveDirective"])("content-intro");return Object(r["withDirectives"])((Object(r["openBlock"])(),Object(r["createElementBlock"])("div",null,[Object(r["createElementVNode"])("h2",null,[Object(r["createVNode"])(o,{"feature-name":e.translate("CorePluginsAdmin_Marketplace")},{default:Object(r["withCtx"])((function(){return[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("Marketplace_Marketplace")),1)]})),_:1},8,["feature-name"])]),Object(r["createElementVNode"])("p",null,[e.isSuperUser?e.showThemes?(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",$n,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("CorePluginsAdmin_ThemesDescription"))+" ",1),Object(r["createElementVNode"])("span",{innerHTML:e.$sanitize(e.installingNewThemeText)},null,8,Gn)])):(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",zn,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("CorePluginsAdmin_PluginsExtendPiwik"))+" ",1),Object(r["createElementVNode"])("span",{innerHTML:e.$sanitize(e.installingNewPluginText)},null,8,Qn)])):(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",Rn,Object(r["toDisplayString"])(e.restrictedMessage),1)),e.isSuperUser&&e.inReportingMenu?(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",{key:3,ref:"noticeRemoveMarketplaceFromMenu",innerHTML:e.$sanitize(e.noticeRemoveMarketplaceFromMenuText)},null,8,Wn)):Object(r["createCommentVNode"])("",!0)]),Object(r["createVNode"])(c,{"is-valid-consumer":e.isValidConsumer,"is-super-user":e.isSuperUser,"is-auto-update-possible":e.isAutoUpdatePossible,"is-plugins-admin-enabled":e.isPluginsAdminEnabled,"has-license-key":e.hasLicenseKey,"paid-plugins-to-install-at-once":e.paidPluginsToInstallAtOnce,"install-nonce":e.installNonce},null,8,["is-valid-consumer","is-super-user","is-auto-update-possible","is-plugins-admin-enabled","has-license-key","paid-plugins-to-install-at-once","install-nonce"]),Object(r["createVNode"])(s,{"is-plugin-upload-enabled":e.isPluginUploadEnabled,"upload-limit":e.uploadLimit,"install-nonce":e.installNonce},null,8,["is-plugin-upload-enabled","upload-limit","install-nonce"]),Object(r["createVNode"])(u,{"plugin-type-options":e.pluginTypeOptions,"default-sort":e.defaultSort,"plugin-sort-options":e.pluginSortOptions,"num-available-plugins-by-type":e.numAvailablePluginsByType,"current-user-email":e.currentUserEmail,"is-auto-update-possible":e.isAutoUpdatePossible,"is-super-user":e.isSuperUser,"is-multi-server-environment":e.isMultiServerEnvironment,"is-plugins-admin-enabled":e.isPluginsAdminEnabled,"is-valid-consumer":e.isValidConsumer,"deactivate-nonce":e.deactivateNonce,"activate-nonce":e.activateNonce,"install-nonce":e.installNonce,"update-nonce":e.updateNonce},null,8,["plugin-type-options","default-sort","plugin-sort-options","num-available-plugins-by-type","current-user-email","is-auto-update-possible","is-super-user","is-multi-server-environment","is-plugins-admin-enabled","is-valid-consumer","deactivate-nonce","activate-nonce","install-nonce","update-nonce"])],512)),[[d]])}var Yn=Object(r["defineComponent"])({props:{currentUserEmail:String,inReportingMenu:Boolean,isValidConsumer:Boolean,isSuperUser:Boolean,isAutoUpdatePossible:Boolean,isPluginsAdminEnabled:Boolean,isMultiServerEnvironment:Boolean,hasLicenseKey:Boolean,paidPluginsToInstallAtOnce:{type:Array,required:!0},installNonce:{type:String,required:!0},activateNonce:{type:String,required:!0},deactivateNonce:{type:String,required:!0},updateNonce:{type:String,required:!0},isPluginUploadEnabled:Boolean,uploadLimit:[String,Number],pluginTypeOptions:{type:Object,required:!0},defaultSort:{type:String,required:!0},pluginSortOptions:{type:Object,required:!0},numAvailablePluginsByType:{type:Object,required:!0}},components:{EnrichedHeadline:b["EnrichedHeadline"],UploadPluginDialog:g["UploadPluginDialog"],LicenseKey:$t,Marketplace:gt},directives:{ContentIntro:b["ContentIntro"],PluginName:g["PluginName"]},mounted:function(){if(this.$refs.noticeRemoveMarketplaceFromMenu){var e=this.$refs.noticeRemoveMarketplaceFromMenu.querySelector("[matomo-plugin-name]");g["PluginName"].mounted(e,{dir:{},instance:null,modifiers:{},oldValue:null,value:{pluginName:"WhiteLabel"}})}},beforeUnmount:function(){if(this.$refs.noticeRemoveMarketplaceFromMenu){var e=this.$refs.noticeRemoveMarketplaceFromMenu.querySelector("[matomo-plugin-name]");g["PluginName"].unmounted(e,{dir:{},instance:null,modifiers:{},oldValue:null,value:{pluginName:"WhiteLabel"}})}},computed:{installingNewThemeText:function(){return Object(b["translate"])("Marketplace_InstallingNewThemesViaMarketplaceOrUpload",'',"")},installingNewPluginText:function(){return Object(b["translate"])("Marketplace_InstallingNewPluginsViaMarketplaceOrUpload",'',"")},noticeRemoveMarketplaceFromMenuText:function(){return Object(b["translate"])("Marketplace_NoticeRemoveMarketplaceFromReportingMenu",'',"")},showThemes:function(){return"themes"===b["MatomoUrl"].hashParsed.value.pluginType},restrictedMessage:function(){return this.showThemes?Object(b["translate"])("Marketplace_NotAllowedToBrowseMarketplaceThemes"):Object(b["translate"])("Marketplace_NotAllowedToBrowseMarketplacePlugins")}}});Yn.render=Jn;var Xn=Yn,Zn={key:0},ea=["href"],ta=Object(r["createElementVNode"])("br",null,null,-1),na=Object(r["createElementVNode"])("br",null,null,-1),aa=["innerHTML"],la=Object(r["createElementVNode"])("br",null,null,-1),ra={class:"subscriptionName"},ia=["href"],oa={key:1},ca={class:"subscriptionType"},sa=["title"],ua={key:0,class:"icon-error"},da={key:1,class:"icon-warning"},pa={key:2,class:"icon-ok"},ma=["title"],ba=Object(r["createElementVNode"])("span",{class:"icon-error"},null,-1),ga={key:0},Oa={colspan:"6"},ja={class:"tableActionBar"},va=["href"],ka=Object(r["createElementVNode"])("span",{class:"icon-table"},null,-1),ha={key:1},ya=["innerHTML"];function fa(e,t,n,a,l,i){var o=Object(r["resolveComponent"])("ContentBlock"),c=Object(r["resolveDirective"])("content-table");return Object(r["openBlock"])(),Object(r["createBlock"])(o,{"content-title":e.translate("Marketplace_OverviewPluginSubscriptions"),class:"subscriptionOverview"},{default:Object(r["withCtx"])((function(){return[e.hasLicenseKey?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",Zn,[Object(r["createElementVNode"])("p",null,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("Marketplace_PluginSubscriptionsList"))+" ",1),e.loginUrl?(Object(r["openBlock"])(),Object(r["createElementBlock"])("a",{key:0,target:"_blank",rel:"noreferrer noopener",href:e.loginUrl},Object(r["toDisplayString"])(e.translate("Marketplace_OverviewPluginSubscriptionsAllDetails")),9,ea)):Object(r["createCommentVNode"])("",!0),ta,Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("Marketplace_OverviewPluginSubscriptionsMissingInfo"))+" ",1),na,Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("Marketplace_NoValidSubscriptionNoUpdates"))+" ",1),Object(r["createElementVNode"])("span",{innerHTML:e.$sanitize(e.translate("Marketplace_CurrentNumPiwikUsers","".concat(e.numUsers,"")))},null,8,aa)]),la,Object(r["withDirectives"])(Object(r["createElementVNode"])("table",null,[Object(r["createElementVNode"])("thead",null,[Object(r["createElementVNode"])("tr",null,[Object(r["createElementVNode"])("th",null,Object(r["toDisplayString"])(e.translate("General_Name")),1),Object(r["createElementVNode"])("th",null,Object(r["toDisplayString"])(e.translate("Marketplace_SubscriptionType")),1),Object(r["createElementVNode"])("th",null,Object(r["toDisplayString"])(e.translate("CorePluginsAdmin_Status")),1),Object(r["createElementVNode"])("th",null,Object(r["toDisplayString"])(e.translate("Marketplace_SubscriptionStartDate")),1),Object(r["createElementVNode"])("th",null,Object(r["toDisplayString"])(e.translate("Marketplace_SubscriptionEndDate")),1),Object(r["createElementVNode"])("th",null,Object(r["toDisplayString"])(e.translate("Marketplace_SubscriptionNextPaymentDate")),1)])]),Object(r["createElementVNode"])("tbody",null,[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(e.subscriptions||[],(function(t,n){return Object(r["openBlock"])(),Object(r["createElementBlock"])("tr",{key:n},[Object(r["createElementVNode"])("td",ra,[t.plugin.htmlUrl?(Object(r["openBlock"])(),Object(r["createElementBlock"])("a",{key:0,href:t.plugin.htmlUrl,rel:"noreferrer noopener",target:"_blank"},Object(r["toDisplayString"])(t.plugin.displayName),9,ia)):(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",oa,Object(r["toDisplayString"])(t.plugin.displayName),1))]),Object(r["createElementVNode"])("td",ca,Object(r["toDisplayString"])(t.productType),1),Object(r["createElementVNode"])("td",{class:"subscriptionStatus",title:e.getSubscriptionStatusTitle(t)},[t.isValid?t.isExpiredSoon?(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",da)):(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",pa)):(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",ua)),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(t.status)+" ",1),t.isExceeded?(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",{key:3,class:"errorMessage",title:e.translate("Marketplace_LicenseExceededPossibleCause")},[ba,Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("Marketplace_Exceeded")),1)],8,ma)):Object(r["createCommentVNode"])("",!0)],8,sa),Object(r["createElementVNode"])("td",null,Object(r["toDisplayString"])(t.start),1),Object(r["createElementVNode"])("td",null,Object(r["toDisplayString"])(t.isValid&&t.nextPayment?e.translate("Marketplace_LicenseRenewsNextPaymentDate"):t.end),1),Object(r["createElementVNode"])("td",null,Object(r["toDisplayString"])(t.nextPayment),1)])})),128)),e.subscriptions.length?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("tr",ga,[Object(r["createElementVNode"])("td",Oa,Object(r["toDisplayString"])(e.translate("Marketplace_NoSubscriptionsFound")),1)]))])],512),[[c]]),Object(r["createElementVNode"])("div",ja,[Object(r["createElementVNode"])("a",{href:e.marketplaceOverviewLink,class:""},[ka,Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("Marketplace_BrowseMarketplace")),1)],8,va)])])):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",ha,[Object(r["createElementVNode"])("p",{innerHTML:e.$sanitize(e.missingLicenseText)},null,8,ya)]))]})),_:1},8,["content-title"])}var Na=Object(r["defineComponent"])({props:{loginUrl:{type:String,required:!0},numUsers:{type:Number,required:!0},hasLicenseKey:Boolean,subscriptions:{type:Array,required:!0}},components:{ContentBlock:b["ContentBlock"]},directives:{ContentTable:b["ContentTable"]},methods:{getSubscriptionStatusTitle:function(e){return e.isValid?e.isExpiredSoon?Object(b["translate"])("Marketplace_SubscriptionExpiresSoon"):void 0:Object(b["translate"])("Marketplace_SubscriptionInvalid")}},computed:{marketplaceOverviewLink:function(){return"?".concat(b["MatomoUrl"].stringify({module:"Marketplace",action:"overview"}))},missingLicenseText:function(){return Object(b["translate"])("Marketplace_OverviewPluginSubscriptionsMissingLicense",''),"")}}});Na.render=fa;var Va=Na,Ea={class:"richMarketplaceMenuButton"},Sa=Object(r["createElementVNode"])("hr",null,null,-1),Ma={class:"intro"},Ba={class:"cta"},Ta=Object(r["createElementVNode"])("span",{class:"icon-marketplace"}," ",-1);function Pa(e,t,n,a,l,i){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",Ea,[Sa,Object(r["createElementVNode"])("p",Ma,Object(r["toDisplayString"])(e.translate("Marketplace_RichMenuIntro")),1),Object(r["createElementVNode"])("p",Ba,[Object(r["createElementVNode"])("a",{class:"btn btn-outline",tabindex:"5",href:"",onClick:t[0]||(t[0]=Object(r["withModifiers"])((function(t){return e.$emit("action")}),["prevent"])),onKeyup:t[1]||(t[1]=Object(r["withKeys"])((function(t){return e.$emit("action")}),["enter"]))},[Ta,Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("Marketplace_Marketplace")),1)],32)])])}var wa=Object(r["defineComponent"])({});wa.render=Pa;var Ca=wa; + */var Je=window,Ye=Je.piwik,Ze=Je.broadcast,Xe=Je.piwikHelper;Ye.helper=Xe,Ye.broadcast=Ze,Ye.updateDateInTitle=function(e,t){if($(".top_controls #periodString").length&&(Ie=Ie||document.title,0===Ie.indexOf(Ye.siteName))){var n=" - ".concat(Re.parse(t,e).getPrettyString()," ");document.title="".concat(Ye.siteName).concat(n).concat(Ie.slice(Ye.siteName.length))}},Ye.hasUserCapability=function(e){return Array.isArray(Ye.userCapabilities)&&-1!==Ye.userCapabilities.indexOf(e)},Ye.on=function(e,t){function n(e){t.apply(void 0,He(e.detail))}t.wrapper=n,window.addEventListener(e,n)},Ye.off=function(e,t){t.wrapper&&window.removeEventListener(e,t.wrapper)},Ye.postEvent=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a","",e),this.startFreeTrial()):(this.trialStartSuccessNotificationTitle=Object(b["translate"])("CorePluginsAdmin_PluginFreeTrialStartedAccountCreatedTitle"),this.trialStartSuccessNotificationMessage=Object(b["translate"])("CorePluginsAdmin_PluginFreeTrialStartedAccountCreatedMessage",e),this.showLicenseDialog(!1)))}},computed:{trialStartNoLicenseAddHereText:function(){var e="?".concat(b["MatomoUrl"].stringify({module:"Marketplace",action:"manageLicenseKey"}));return Object(b["translate"])("Marketplace_TrialStartNoLicenseAddHere",''),"")},trialStartNoLicenseLegalHintText:function(){return Object(b["translate"])("Marketplace_TrialStartNoLicenseLegalHint",Object(b["externalLink"])("https://shop.matomo.org/terms-conditions/"),"",Object(b["externalLink"])("https://matomo.org/privacy-policy/"),"")}},methods:{closeModal:function(){at("#startFreeTrial").modal("close")},createAccountAndStartFreeTrial:function(){var e=this;this.createAccountEmail&&(this.showLoadingModal(!0),b["AjaxHelper"].post({module:"API",method:"Marketplace.createAccount"},{email:this.createAccountEmail},{createErrorNotification:!1}).then((function(){e.startFreeTrial()})).catch((function(t){t.message.startsWith("Marketplace_CreateAccountError")?(e.showErrorModal(Object(b["translate"])(t.message)),e.trialStartInProgress=!1,e.$emit("update:modelValue","")):(e.createAccountError=t.message,e.trialStartInProgress=!1,e.showLicenseDialog(!0))})))},showLicenseDialog:function(e){var t=this,n=function(e){var n=e.keyCode?e.keyCode:e.which;13===n&&(t.closeModal(),t.createAccountAndStartFreeTrial())},a={dismissible:!0,onOpenEnd:function(){var e=".modal.open #email";at(e).focus(),at(e).off("keypress").keypress(n)},onCloseEnd:function(){t.createAccountError=null,t.trialStartInProgress||t.$emit("update:modelValue","")}};e&&(a.inDuration=0),at("#startFreeTrial").modal(a).modal("open")},showErrorModal:function(e){var t=this;this.trialStartError||(this.trialStartError=e,at("#startFreeTrial").modal({dismissible:!0,inDuration:0,onCloseEnd:function(){t.trialStartError=null}}).modal("open"))},showLoadingModal:function(e){var t=this;this.trialStartInProgress||(this.trialStartInProgress=!0,this.loadingModalCloseCallback=void 0,at("#startFreeTrial").modal({dismissible:!1,inDuration:e?0:void 0,onCloseEnd:function(){t.loadingModalCloseCallback&&(t.loadingModalCloseCallback(),t.loadingModalCloseCallback=void 0)}}).modal("open"))},startFreeTrial:function(){var e=this;this.showLoadingModal(!1),b["AjaxHelper"].post({module:"API",method:"Marketplace.startFreeTrial"},{pluginName:this.modelValue},{createErrorNotification:!1}).then((function(){e.loadingModalCloseCallback=e.startFreeTrialSuccess,e.closeModal()})).catch((function(t){e.showErrorModal(tt.helper.htmlDecode(t.message)),e.trialStartInProgress=!1})).finally((function(){e.$emit("update:modelValue","")}))},startFreeTrialSuccess:function(){var e=b["NotificationsStore"].show({message:this.trialStartSuccessNotificationMessage,title:this.trialStartSuccessNotificationTitle,context:"success",id:"startTrialSuccess",placeat:"#notificationContainer",type:"transient"});b["NotificationsStore"].scrollToNotification(e),this.trialStartInProgress=!1,this.$emit("trialStarted")}}});lt.render=_e;var it=lt,rt={ref:"root",class:"modal",id:"pluginDetailsModal"},ot={key:0,class:"modal-content"},ct={class:"modal-content__header"},st=Object(i["createElementVNode"])("span",{class:"btn-close modal-close"},[Object(i["createElementVNode"])("i",{class:"icon-close"})],-1),ut=["title"],dt={class:"plugin-metadata-part1"},pt=Object(i["createElementVNode"])("h3",{class:"sr-only"},"Plugin details — part 1",-1),mt={key:0,class:"pair"},bt=Object(i["createElementVNode"])("img",{class:"star-icon reviews-icon",src:"plugins/Marketplace/images/star.svg",alt:""},null,-1),gt={key:1,class:"pair"},Ot={key:2,class:"pair"},jt={key:3,class:"pair"},kt={key:4,class:"pair"},vt={class:"modal-content__main"},ht={class:"plugin-description"},yt={key:1,class:"alert alert-warning"},ft={key:2,class:"alert alert-warning"},Nt={key:3,class:"alert alert-danger"},Vt={key:4,class:"alert alert-warning"},Et=["innerHTML"],St={class:"plugin-metadata-part2"},Bt=Object(i["createElementVNode"])("hr",null,null,-1),Mt=Object(i["createElementVNode"])("h3",{class:"sr-only"},"Plugin details — part 2",-1),wt={key:0,class:"pair"},Tt={key:1,class:"pair"},Ct={class:"pair"},Pt=["href"],At=["href"],Dt={key:2},Lt={key:3},_t={class:"pair"},Ut=["href"],xt=Object(i["createTextVNode"])(", "),Ft=["href"],qt=Object(i["createTextVNode"])(", "),It=["href"],Kt={key:0,class:"pair"},Rt={key:1,class:"pair"},Ht=["href"],$t={key:1},zt=["innerHTML"],Gt={key:0},Wt=["href"],Qt={key:1},Jt=["href"],Yt=["innerHTML"],Zt={key:0,class:"plugin-screenshots"},Xt=Object(i["createElementVNode"])("hr",null,null,-1),en={class:"thumbnails"},tn=["src"],nn={key:1,class:"plugin-documentation"},an=Object(i["createElementVNode"])("hr",null,null,-1),ln=["innerHTML"],rn={key:2,class:"plugin-faq"},on=Object(i["createElementVNode"])("hr",null,null,-1),cn=["innerHTML"],sn={key:3,class:"plugin-reviews",id:"reviews"},un=Object(i["createElementVNode"])("hr",null,null,-1),dn=["id","src"],pn={class:"modal-content__footer"},mn={class:"cta-container"},bn={key:0,class:"matomo-badge matomo-badge-modal",src:"plugins/Marketplace/images/matomo-badge.png","aria-label":"Matomo plugin",alt:""};function gn(e,t,n,a,l,r){var o,c,s,u,d,p,m=this,b=Object(i["resolveComponent"])("MissingReqsNotice"),g=Object(i["resolveComponent"])("CTAContainer");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",rt,[e.isLoading?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",ot,[Object(i["createElementVNode"])("div",ct,[st,Object(i["createElementVNode"])("h2",null,[e.plugin.featured?(Object(i["openBlock"])(),Object(i["createElementBlock"])("img",{key:0,class:"star-icon featured-icon",title:e.translate("Marketplace_FeaturedPlugin"),src:"plugins/Marketplace/images/star.svg",alt:""},null,8,ut)):Object(i["createCommentVNode"])("",!0),Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.plugin&&e.plugin.displayName?e.plugin.displayName:"Plugin details"),1)]),Object(i["createElementVNode"])("div",dt,[pt,Object(i["createElementVNode"])("dl",null,[e.showReviews?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",mt,[Object(i["createElementVNode"])("dt",null,Object(i["toDisplayString"])(e.translate("Marketplace_Reviews")),1),Object(i["createElementVNode"])("dd",null,[bt,Object(i["createElementVNode"])("a",{onClick:t[0]||(t[0]=function(t){return e.scrollElementIntoView("#reviews")})},Object(i["toDisplayString"])(e.pluginReviews.averageRating),1)])])):Object(i["createCommentVNode"])("",!0),e.plugin.isBundle?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",gt,[Object(i["createElementVNode"])("dt",null,Object(i["toDisplayString"])(e.translate("CorePluginsAdmin_Version")),1),Object(i["createElementVNode"])("dd",null,Object(i["toDisplayString"])(e.plugin.latestVersion),1)])),e.plugin.numDownloads>0?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Ot,[Object(i["createElementVNode"])("dt",null,Object(i["toDisplayString"])(e.translate("General_Downloads")),1),Object(i["createElementVNode"])("dd",null,Object(i["toDisplayString"])(e.plugin.numDownloadsPretty),1)])):Object(i["createCommentVNode"])("",!0),e.plugin.lastUpdated&&!e.plugin.isBundle?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",jt,[Object(i["createElementVNode"])("dt",null,Object(i["toDisplayString"])(e.translate("Marketplace_LastUpdated")),1),Object(i["createElementVNode"])("dd",null,Object(i["toDisplayString"])(e.plugin.lastUpdated),1)])):Object(i["createCommentVNode"])("",!0),e.plugin.isBundle?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",kt,[Object(i["createElementVNode"])("dt",null,Object(i["toDisplayString"])(e.translate("Marketplace_Developer")),1),Object(i["createElementVNode"])("dd",null,Object(i["toDisplayString"])(e.pluginOwner),1)]))])])]),Object(i["createElementVNode"])("div",vt,[Object(i["createElementVNode"])("div",ht,[e.showMissingRequirementsNoticeIfApplicable?(Object(i["openBlock"])(),Object(i["createBlock"])(b,{key:0,plugin:e.plugin},null,8,["plugin"])):Object(i["createCommentVNode"])("",!0),e.isMultiServerEnvironment?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",yt,Object(i["toDisplayString"])(e.translate("Marketplace_MultiServerEnvironmentWarning")),1)):e.isAutoUpdatePossible?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",ft,Object(i["toDisplayString"])(e.translate("Marketplace_AutoUpdateDisabledWarning","'[General]enable_auto_update=1'","'config/config.ini.php'")),1)),e.showMissingLicenseDescription?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Nt,Object(i["toDisplayString"])(e.translate("Marketplace_PluginLicenseMissingDescription")),1)):e.showExceededLicenseDescription?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Vt,Object(i["toDisplayString"])(e.translate("Marketplace_PluginLicenseExceededDescription")),1)):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("div",{innerHTML:e.$sanitize(e.pluginDescription)},null,8,Et)]),Object(i["createElementVNode"])("div",St,[Bt,Mt,Object(i["createElementVNode"])("dl",null,[e.plugin.isBundle?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",wt,[Object(i["createElementVNode"])("dt",null,Object(i["toDisplayString"])(e.translate("CorePluginsAdmin_Version")),1),Object(i["createElementVNode"])("dd",null,Object(i["toDisplayString"])(e.plugin.latestVersion),1)])),e.pluginKeywords?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Tt,[Object(i["createElementVNode"])("dt",null,Object(i["toDisplayString"])(e.translate("Marketplace_PluginKeywords")),1),Object(i["createElementVNode"])("dd",null,Object(i["toDisplayString"])(e.pluginKeywords.join(", ")),1)])):Object(i["createCommentVNode"])("",!0),e.plugin.isBundle?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:2},[Object(i["createElementVNode"])("div",Ct,[Object(i["createElementVNode"])("dt",null,Object(i["toDisplayString"])(e.translate("Marketplace_Authors")),1),Object(i["createElementVNode"])("dd",null,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.pluginAuthors,(function(t,n){return Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:"author-".concat(n)},[t.homepage?(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:0,target:"_blank",rel:"noreferrer noopener",href:t.homepage},Object(i["toDisplayString"])(t.name),9,Pt)):t.email&&e.isValidEmail(t.email)?(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:1,href:"mailto:".concat(encodeURIComponent(t.email))},Object(i["toDisplayString"])(t.name),9,At)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Dt,Object(i["toDisplayString"])(t.name),1)),n1?(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:0},[Object(i["createTextVNode"])(Object(i["toDisplayString"])(" "+e.translate("Marketplace_ByXDevelopers",e.pluginActivity.numContributors)),1)],64)):Object(i["createCommentVNode"])("",!0),null!==(c=e.pluginActivity)&&void 0!==c&&c.lastCommitDate?(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:1},[Object(i["createTextVNode"])(Object(i["toDisplayString"])(" "+e.translate("Marketplace_LastCommitTime",e.pluginActivity.lastCommitDate)),1)],64)):Object(i["createCommentVNode"])("",!0)])])):Object(i["createCommentVNode"])("",!0),e.showLicenseName?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Rt,[Object(i["createElementVNode"])("dt",null,Object(i["toDisplayString"])(e.translate("Marketplace_License")),1),Object(i["createElementVNode"])("dd",null,[null!==(s=e.pluginLatestVersion.license)&&void 0!==s&&s.url?(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:0,rel:"noreferrer noopener",href:null===(u=e.pluginLatestVersion.license)||void 0===u?void 0:u.url,target:"_blank"},Object(i["toDisplayString"])(null===(d=e.pluginLatestVersion.license)||void 0===d?void 0:d.name),9,Ht)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",$t,Object(i["toDisplayString"])(null===(p=e.pluginLatestVersion.license)||void 0===p?void 0:p.name),1))])])):Object(i["createCommentVNode"])("",!0),e.pluginSupport.length?(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],{key:2},Object(i["renderList"])(e.pluginSupport,(function(t,n){return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:"pair",key:"support-".concat(n)},[t.name&&t.value?(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:0},[Object(i["createElementVNode"])("dt",{innerHTML:e.$sanitize(t.name)},null,8,zt),m.isValidHttpUrl(t.value)?(Object(i["openBlock"])(),Object(i["createElementBlock"])("dd",Gt,[Object(i["createElementVNode"])("a",{target:"_blank",rel:"noreferrer noopener",href:e.externalRawLink(e.$sanitize(t.value))},Object(i["toDisplayString"])(e.$sanitize(t.value)),9,Wt)])):m.isValidEmail(t.value)?(Object(i["openBlock"])(),Object(i["createElementBlock"])("dd",Qt,[Object(i["createElementVNode"])("a",{href:"mailto:".concat(encodeURIComponent(t.value))},Object(i["toDisplayString"])(e.$sanitize(t.value)),9,Jt)])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("dd",{key:2,innerHTML:e.$sanitize(t.value)},null,8,Yt))],64)):Object(i["createCommentVNode"])("",!0)])})),128)):Object(i["createCommentVNode"])("",!0)],64))])]),e.pluginScreenshots.length?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Zt,[Xt,Object(i["createElementVNode"])("h3",null,Object(i["toDisplayString"])(e.translate("Marketplace_Screenshots")),1),Object(i["createElementVNode"])("div",en,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.pluginScreenshots,(function(e){return Object(i["openBlock"])(),Object(i["createElementBlock"])("figure",{key:"screenshot-".concat(e)},[Object(i["createElementVNode"])("img",{src:"".concat(e,"?w=800"),width:"800",alt:""},null,8,tn),Object(i["createElementVNode"])("figcaption",null,Object(i["toDisplayString"])(m.getScreenshotBaseName(e)),1)])})),128))])])):Object(i["createCommentVNode"])("",!0),e.pluginDocumentation?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",nn,[an,Object(i["createElementVNode"])("h3",null,Object(i["toDisplayString"])(e.translate("General_Documentation")),1),Object(i["createElementVNode"])("div",{innerHTML:e.$sanitize(e.pluginDocumentation)},null,8,ln)])):Object(i["createCommentVNode"])("",!0),e.pluginFaq?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",rn,[on,Object(i["createElementVNode"])("h3",null,Object(i["toDisplayString"])(e.translate("General_Faq")),1),Object(i["createElementVNode"])("div",{innerHTML:e.$sanitize(e.pluginFaq)},null,8,cn)])):Object(i["createCommentVNode"])("",!0),e.showReviews?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",sn,[un,Object(i["createElementVNode"])("h3",null,Object(i["toDisplayString"])(e.translate("Marketplace_Reviews")),1),Object(i["createElementVNode"])("iframe",{class:"reviewIframe",style:Object(i["normalizeStyle"])(e.pluginReviews.height?"height: ".concat(e.pluginReviews.height,"px;"):""),id:e.pluginReviews.embedUrl.replace(/[\W_]+/g," "),src:e.pluginReviews.embedUrl},null,12,dn)])):Object(i["createCommentVNode"])("",!0)]),Object(i["createElementVNode"])("div",pn,[Object(i["createElementVNode"])("div",mn,[Object(i["createVNode"])(g,{"is-super-user":e.isSuperUser,"is-plugins-admin-enabled":e.isPluginsAdminEnabled,"is-multi-server-environment":e.isMultiServerEnvironment,"is-valid-consumer":e.isValidConsumer,"is-auto-update-possible":e.isAutoUpdatePossible,"activate-nonce":e.activateNonce,"deactivate-nonce":e.deactivateNonce,"install-nonce":e.installNonce,"update-nonce":e.updateNonce,plugin:e.plugin,"in-modal":!0,onStartFreeTrial:e.startFreeTrial},null,8,["is-super-user","is-plugins-admin-enabled","is-multi-server-environment","is-valid-consumer","is-auto-update-possible","activate-nonce","deactivate-nonce","install-nonce","update-nonce","plugin","onStartFreeTrial"])]),"piwik"==e.plugin.owner||"matomo-org"==e.plugin.owner?(Object(i["openBlock"])(),Object(i["createElementBlock"])("img",bn)):Object(i["createCommentVNode"])("",!0)])]))],512)}function On(e,t,n,a,l,r){return Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.plugin.missingRequirements||[],(function(t,n){return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:n,class:"alert alert-danger"},Object(i["toDisplayString"])(e.translate("CorePluginsAdmin_MissingRequirementsNotice",e.requirement(t.requirement),t.actualVersion,t.requiredVersion)),1)})),128)}var jn=Object(i["defineComponent"])({props:{plugin:{type:Object,required:!0}},methods:{requirement:function(e){return"php"===e?"PHP":"".concat(e[0].toUpperCase()).concat(e.substr(1))}}});jn.render=On;var kn=jn,vn=window,hn=vn.$,yn=Object(i["defineComponent"])({components:{MissingReqsNotice:kn,CTAContainer:he},props:{modelValue:{type:Object,default:function(){return{}}},activateNonce:{type:String,required:!0},deactivateNonce:{type:String,required:!0},installNonce:{type:String,required:!0},updateNonce:{type:String,required:!0},isAutoUpdatePossible:{type:Boolean,required:!0},isValidConsumer:{type:Boolean,required:!0},isMultiServerEnvironment:{type:Boolean,required:!0},isPluginsAdminEnabled:{type:Boolean,required:!0},isSuperUser:{type:Boolean,required:!0},hasSomeAdminAccess:{type:Boolean,required:!0}},data:function(){return{isLoading:!0,pluginDetails:"",fetchRequest:null,fetchRequestAbortController:null}},emits:["update:modelValue","startFreeTrial"],watch:{modelValue:function(e){e&&this.showPluginDetailsDialog()},isLoading:function(e){!1===e&&(this.applyExternalTarget(),this.applyIframeResize())}},computed:{plugin:function(){return this.modelValue},pluginLatestVersion:function(){var e=this.plugin.versions||[{}];return e[e.length-1]},pluginReadmeHtml:function(){var e;return(null===(e=this.pluginLatestVersion)||void 0===e?void 0:e.readmeHtml)||{}},pluginDescription:function(){var e;return(null===(e=this.pluginReadmeHtml)||void 0===e?void 0:e.description)||""},pluginDocumentation:function(){var e;return(null===(e=this.pluginReadmeHtml)||void 0===e?void 0:e.documentation)||""},pluginFaq:function(){var e;return(null===(e=this.pluginReadmeHtml)||void 0===e?void 0:e.faq)||""},pluginShop:function(){return this.plugin.shop},pluginShopVariations:function(){var e;return(null===(e=this.pluginShop)||void 0===e?void 0:e.variations)||[]},pluginReviews:function(){var e;return(null===(e=this.pluginShop)||void 0===e?void 0:e.reviews)||{}},pluginKeywords:function(){var e;return(null===(e=this.plugin)||void 0===e?void 0:e.keywords)||[]},pluginAuthors:function(){var e=this.plugin.authors||[];return e.filter((function(e){return e.name}))},pluginActivity:function(){return this.plugin.activity||{}},pluginChangelogUrl:function(){return this.plugin.changelog.url||""},pluginSupport:function(){return this.plugin.support||[]},isMatomoPlugin:function(){return["piwik","matomo-org"].includes(this.plugin.owner)},pluginOwner:function(){return this.isMatomoPlugin?"Matomo":this.plugin.owner},showReviews:function(){return this.pluginReviews&&this.pluginReviews.embedUrl&&this.pluginReviews.averageRating},showMissingLicenseDescription:function(){return this.hasSomeAdminAccess&&this.plugin.isMissingLicense},showExceededLicenseDescription:function(){return this.hasSomeAdminAccess&&this.plugin.hasExceededLicense},showMissingRequirementsNoticeIfApplicable:function(){return this.isSuperUser&&(this.plugin.isDownloadable||this.plugin.isInstalled)},showLicenseName:function(){var e,t=(null===(e=this.pluginLatestVersion)||void 0===e?void 0:e.license)||{};return!!t.name},pluginScreenshots:function(){return this.plugin.screenshots||[]}},methods:{applyExternalTarget:function(){var e=this;setTimeout((function(){var t=e.$refs.root;hn(".modal-content__main a",t).each((function(e,t){var n=hn(t).attr("href");n&&0===n.indexOf("http")&&hn(t).attr("target","_blank")}))}))},scrollElementIntoView:function(e){var t=this;setTimeout((function(){var n=t.$refs.root,a=hn(e,n);a.length&&a[0]&&a[0].scrollIntoView&&a[0].scrollIntoView({block:"nearest",behavior:"smooth"})}))},isValidEmail:function(e){return e.match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|.(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)},isValidHttpUrl:function(e){try{var t=new URL(e);return"http:"===t.protocol||"https:"===t.protocol}catch(n){return!1}},getProtocolAndDomain:function(e){var t=new URL(e);return"".concat(t.protocol,"//").concat(t.hostname)},applyIframeResize:function(){var e=this;setTimeout((function(){var t=window,n=t.iFrameResize;e.pluginReviews&&hn((function(){for(var t=hn("#pluginDetailsModal iframe.reviewIframe"),a=0;a=2||u>2||r+u>=4)&&(O=2),r+u>=5&&(O=1)):r+u>=5&&(O=2),O?g.setAttribute("data-clamp","".concat(O)):g.removeAttribute("data-clamp")}}))},clickCard:function(e,t){Vn(e.target).closest("a:not(.card-title-link)").length||(e.stopPropagation(),this.openDetailsModal(t))},openDetailsModal:function(e){this.showPluginDetailsForPlugin=e},startTrialFromDetailsModal:function(e){this.showStartFreeTrialForPlugin=e}}});En.render=D;var Sn=En,Bn=function(e){return"".concat(e[0].toLowerCase()).concat(e.substring(1))},Mn=Object(i["defineComponent"])({props:{pluginTypeOptions:{type:Object,required:!0},defaultSort:{type:String,required:!0},pluginSortOptions:{type:Object,required:!0},numAvailablePluginsByType:{type:Object,required:!0},currentUserEmail:String,isValidConsumer:Boolean,isSuperUser:Boolean,isAutoUpdatePossible:Boolean,isPluginsAdminEnabled:Boolean,isMultiServerEnvironment:Boolean,hasSomeAdminAccess:Boolean,installNonce:{type:String,required:!0},activateNonce:{type:String,required:!0},deactivateNonce:{type:String,required:!0},updateNonce:{type:String,required:!0}},components:{ContentBlock:b["ContentBlock"],PluginList:Sn,Field:g["Field"]},data:function(){return{loading:!1,fetchRequest:null,fetchRequestAbortController:null,pluginSort:this.defaultSort,pluginTypeFilter:"plugins",searchQuery:"",pluginsToShow:[]}},mounted:function(){var e=this;b["Matomo"].postEvent("Marketplace.Marketplace.mounted",{element:this.$refs.root}),Object(i["watch"])((function(){return b["MatomoUrl"].hashParsed.value}),(function(){e.updateValuesFromHash(!1)})),this.updateValuesFromHash(!0)},unmounted:function(){b["Matomo"].postEvent("Marketplace.Marketplace.unmounted",{element:this.$refs.root})},methods:{updateValuesFromHash:function(e){var t=e,n=b["MatomoUrl"].hashParsed.value.query||"",a=b["MatomoUrl"].hashParsed.value.sort||"",l=b["MatomoUrl"].hashParsed.value.pluginType||"";(n||this.searchQuery)&&(t=t||n!==this.searchQuery,this.searchQuery=n),a&&(t=t||a!==this.pluginSort,this.pluginSort=a),l&&(t=t||l!==this.pluginTypeFilter,this.pluginTypeFilter=l),t&&this.fetchPlugins()},updateQuery:function(e){b["MatomoUrl"].updateHash(Object.assign(Object.assign({},b["MatomoUrl"].hashParsed.value),{},{query:e}))},updateType:function(e){b["MatomoUrl"].updateHash(Object.assign(Object.assign({},b["MatomoUrl"].hashParsed.value),{},{pluginType:e}))},updateSort:function(e){b["MatomoUrl"].updateHash(Object.assign(Object.assign({},b["MatomoUrl"].hashParsed.value),{},{sort:e}))},fetchPlugins:function(){var e=this;this.loading=!0,this.pluginsToShow=[],this.fetchRequestAbortController&&(this.fetchRequestAbortController.abort(),this.fetchRequestAbortController=null),this.fetchRequestAbortController=new AbortController,this.fetchRequest=b["AjaxHelper"].post({module:"Marketplace",action:"searchPlugins",format:"JSON"},{query:this.searchQuery,sort:this.pluginSort,themesOnly:this.showThemes,purchaseType:"premium"===this.pluginTypeFilter?"paid":""},{withTokenInUrl:!0,abortController:this.fetchRequestAbortController}).then((function(t){e.pluginsToShow=t})).finally((function(){e.loading=!1,e.fetchRequestAbortController=null}))}},computed:{queryInputTitle:function(){var e=Bn(Object(b["translate"])("General_Plugins")),t=this.numAvailablePluginsByType[this.pluginTypeFilter]||0;return"".concat(Object(b["translate"])("General_Search")," ").concat(t," ").concat(e,"...")},loadingMessage:function(){return Object(b["translate"])("Mobile_LoadingReport",Object(b["translate"])(this.showThemes?"CorePluginsAdmin_Themes":"General_Plugins"))},showThemes:function(){return"themes"===this.pluginTypeFilter}}});Mn.render=m;var wn=Mn,Tn={class:"marketplace-max-width"},Cn={class:"marketplace-paid-intro"},Pn={key:0},An={key:0},Dn=Object(i["createElementVNode"])("br",null,null,-1),Ln={class:"licenseToolbar valign-wrapper"},_n=["href"],Un={key:0},xn={class:"ui-confirm",id:"installAllPaidPluginsAtOnce",ref:"installAllPaidPluginsAtOnce"},Fn=Object(i["createElementVNode"])("br",null,null,-1),qn=Object(i["createElementVNode"])("br",null,null,-1),In=["data-href","value"],Kn=["value"],Rn={key:1},Hn={key:0},$n=["innerHTML"],zn=Object(i["createElementVNode"])("br",null,null,-1),Gn={class:"licenseToolbar valign-wrapper"},Wn={key:1},Qn=["innerHTML"],Jn={class:"ui-confirm",id:"confirmRemoveLicense",ref:"confirmRemoveLicense"},Yn=["value"],Zn=["value"];function Xn(e,t,n,a,l,r){var o=Object(i["resolveComponent"])("DefaultLicenseKeyFields"),c=Object(i["resolveComponent"])("SaveButton"),s=Object(i["resolveComponent"])("ActivityIndicator");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Tn,[Object(i["createElementVNode"])("div",Cn,[e.isValidConsumer?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Pn,[e.isSuperUser?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",An,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("Marketplace_PaidPluginsWithLicenseKeyIntro",""))+" ",1),Dn,Object(i["createElementVNode"])("div",Ln,[Object(i["createVNode"])(o,{"model-value":e.licenseKey,"onUpdate:modelValue":t[0]||(t[0]=function(t){e.licenseKey=t,e.updatedLicenseKey()}),onConfirm:t[1]||(t[1]=function(t){return e.updateLicense()}),"has-license-key":e.hasLicenseKey,"is-valid-consumer":e.isValidConsumer,"enable-update":e.enableUpdate},null,8,["model-value","has-license-key","is-valid-consumer","enable-update"]),Object(i["createVNode"])(c,{class:"valign",id:"remove_license_key",onConfirm:t[2]||(t[2]=function(t){return e.removeLicense()}),value:e.translate("Marketplace_RemoveLicenseKey")},null,8,["value"]),Object(i["createElementVNode"])("a",{class:"btn valign",href:e.subscriptionOverviewLink},Object(i["toDisplayString"])(e.translate("Marketplace_ViewSubscriptions")),9,_n),e.showInstallAllPaidPlugins?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Un,[Object(i["createElementVNode"])("a",{href:"",class:"btn installAllPaidPlugins valign",onClick:t[3]||(t[3]=Object(i["withModifiers"])((function(t){return e.onInstallAllPaidPlugins()}),["prevent"]))},Object(i["toDisplayString"])(e.translate("Marketplace_InstallPurchasedPlugins")),1),Object(i["createElementVNode"])("div",xn,[Object(i["createElementVNode"])("h2",null,Object(i["toDisplayString"])(e.translate("Marketplace_InstallAllPurchasedPlugins")),1),Object(i["createElementVNode"])("p",null,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("Marketplace_InstallThesePlugins"))+" ",1),Fn,qn]),Object(i["createElementVNode"])("ul",null,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.paidPluginsToInstallAtOnce,(function(e){return Object(i["openBlock"])(),Object(i["createElementBlock"])("li",{key:e},Object(i["toDisplayString"])(e),1)})),128))]),Object(i["createElementVNode"])("p",null,[Object(i["createElementVNode"])("input",{role:"install",type:"button","data-href":e.installAllPaidPluginsLink,value:e.translate("Marketplace_InstallAllPurchasedPluginsAction",e.paidPluginsToInstallAtOnce.length)},null,8,In),Object(i["createElementVNode"])("input",{role:"cancel",type:"button",value:e.translate("General_Cancel")},null,8,Kn)])],512)])):Object(i["createCommentVNode"])("",!0)]),Object(i["createVNode"])(s,{loading:e.isUpdating},null,8,["loading"])])):Object(i["createCommentVNode"])("",!0)])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Rn,[e.isSuperUser?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Hn,[Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.noLicenseKeyIntroText)},null,8,$n),zn,Object(i["createElementVNode"])("div",Gn,[Object(i["createVNode"])(o,{"model-value":e.licenseKey,"onUpdate:modelValue":t[4]||(t[4]=function(t){e.licenseKey=t,e.updatedLicenseKey()}),onConfirm:t[5]||(t[5]=function(t){return e.updateLicense()}),"has-license-key":e.hasLicenseKey,"is-valid-consumer":e.isValidConsumer,"enable-update":e.enableUpdate},null,8,["model-value","has-license-key","is-valid-consumer","enable-update"])]),Object(i["createVNode"])(s,{loading:e.isUpdating},null,8,["loading"])])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Wn,[Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.noLicenseKeyIntroNoSuperUserAccessText)},null,8,Qn)]))]))]),Object(i["createElementVNode"])("div",Jn,[Object(i["createElementVNode"])("h2",null,Object(i["toDisplayString"])(e.translate("Marketplace_ConfirmRemoveLicense")),1),Object(i["createElementVNode"])("input",{role:"yes",type:"button",value:e.translate("General_Yes")},null,8,Yn),Object(i["createElementVNode"])("input",{role:"no",type:"button",value:e.translate("General_No")},null,8,Zn)],512)])}var ea={class:"valign licenseKeyText"};function ta(e,t,n,a,l,r){var o=Object(i["resolveComponent"])("Field"),c=Object(i["resolveComponent"])("SaveButton");return Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],null,[Object(i["createElementVNode"])("div",ea,[Object(i["createVNode"])(o,{uicontrol:"text",name:"license_key","full-width":!0,"model-value":e.modelValue,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.$emit("update:modelValue",t)}),placeholder:e.licenseKeyPlaceholder},null,8,["model-value","placeholder"])]),Object(i["createVNode"])(c,{class:"valign",onConfirm:t[1]||(t[1]=function(t){return e.$emit("confirm")}),disabled:!e.enableUpdate,value:e.saveButtonText,id:"submit_license_key"},null,8,["disabled","value"])],64)}var na=Object(i["defineComponent"])({props:{modelValue:String,isValidConsumer:Boolean,hasLicenseKey:Boolean,enableUpdate:Boolean},emits:["update:modelValue","confirm"],components:{Field:g["Field"],SaveButton:g["SaveButton"]},computed:{licenseKeyPlaceholder:function(){return this.isValidConsumer?Object(b["translate"])("Marketplace_LicenseKeyIsValidShort"):Object(b["translate"])("Marketplace_LicenseKey")},saveButtonText:function(){return this.hasLicenseKey?Object(b["translate"])("CoreUpdater_UpdateTitle"):Object(b["translate"])("Marketplace_ActivateLicenseKey")}}});na.render=ta;var aa=na,la=Object(i["defineComponent"])({props:{isValidConsumer:Boolean,isSuperUser:Boolean,isAutoUpdatePossible:Boolean,isPluginsAdminEnabled:Boolean,hasLicenseKey:Boolean,paidPluginsToInstallAtOnce:{type:Array,required:!0},installNonce:{type:String,required:!0}},components:{SaveButton:g["SaveButton"],ActivityIndicator:b["ActivityIndicator"],DefaultLicenseKeyFields:aa},data:function(){return{licenseKey:"",enableUpdate:!1,isUpdating:!1}},methods:{onInstallAllPaidPlugins:function(){b["Matomo"].helper.modalConfirm(this.$refs.installAllPaidPluginsAtOnce)},updateLicenseKey:function(e,t,n){var a=this;b["AjaxHelper"].post({module:"API",method:"Marketplace.".concat(e),format:"JSON"},{licenseKey:this.licenseKey},{withTokenInUrl:!0}).then((function(e){a.isUpdating=!1,e&&e.value&&(b["NotificationsStore"].show({message:n,context:"success",type:"transient"}),b["Matomo"].helper.redirect())}),(function(){a.isUpdating=!1}))},removeLicense:function(){var e=this;b["Matomo"].helper.modalConfirm(this.$refs.confirmRemoveLicense,{yes:function(){e.enableUpdate=!1,e.isUpdating=!0,e.updateLicenseKey("deleteLicenseKey","",Object(b["translate"])("Marketplace_LicenseKeyDeletedSuccess"))}})},updatedLicenseKey:function(){this.enableUpdate=!!this.licenseKey},updateLicense:function(){this.enableUpdate=!1,this.isUpdating=!0,this.updateLicenseKey("saveLicenseKey",this.licenseKey,Object(b["translate"])("Marketplace_LicenseKeyActivatedSuccess"))}},computed:{subscriptionOverviewLink:function(){return"?".concat(b["MatomoUrl"].stringify(Object.assign(Object.assign({},b["MatomoUrl"].urlParsed.value),{},{module:"Marketplace",action:"subscriptionOverview"})))},noLicenseKeyIntroText:function(){return Object(b["translate"])("Marketplace_PaidPluginsNoLicenseKeyIntro",Object(b["externalLink"])("https://matomo.org/recommends/premium-plugins/"),"")},noLicenseKeyIntroNoSuperUserAccessText:function(){return Object(b["translate"])("Marketplace_PaidPluginsNoLicenseKeyIntroNoSuperUserAccess",Object(b["externalLink"])("https://matomo.org/recommends/premium-plugins/"),"")},installAllPaidPluginsLink:function(){return"?".concat(b["MatomoUrl"].stringify(Object.assign(Object.assign({},b["MatomoUrl"].urlParsed.value),{},{module:"Marketplace",action:"installAllPaidPlugins",nonce:this.installNonce})))},showInstallAllPaidPlugins:function(){return this.isAutoUpdatePossible&&this.isPluginsAdminEnabled&&this.paidPluginsToInstallAtOnce.length}}});la.render=Xn;var ia=la,ra=["innerHTML"],oa={class:"manage-license-key-input"},ca={class:"ui-confirm",id:"confirmRemoveLicense",ref:"confirmRemoveLicense"},sa=["value"],ua=["value"];function da(e,t,n,a,l,r){var o=Object(i["resolveComponent"])("Field"),c=Object(i["resolveComponent"])("SaveButton"),s=Object(i["resolveComponent"])("ActivityIndicator"),u=Object(i["resolveComponent"])("ContentBlock");return Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],null,[Object(i["createVNode"])(u,{"content-title":e.translate("Marketplace_LicenseKey"),class:"manage-license-key"},{default:Object(i["withCtx"])((function(){return[Object(i["createElementVNode"])("div",{class:"manage-license-key-intro",innerHTML:e.$sanitize(e.manageLicenseKeyIntro)},null,8,ra),Object(i["createElementVNode"])("div",oa,[Object(i["createVNode"])(o,{uicontrol:"text",name:"license_key",modelValue:e.licenseKey,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.licenseKey=t}),placeholder:e.licenseKeyPlaceholder,"full-width":!0},null,8,["modelValue","placeholder"])]),Object(i["createVNode"])(c,{onConfirm:t[1]||(t[1]=function(t){return e.updateLicense()}),value:e.saveButtonText,disabled:!e.licenseKey||e.isUpdating,id:"submit_license_key"},null,8,["value","disabled"]),e.hasValidLicense?(Object(i["openBlock"])(),Object(i["createBlock"])(c,{key:0,id:"remove_license_key",onConfirm:t[2]||(t[2]=function(t){return e.removeLicense()}),disabled:e.isUpdating,value:e.translate("General_Remove")},null,8,["disabled","value"])):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(s,{loading:e.isUpdating},null,8,["loading"])]})),_:1},8,["content-title"]),Object(i["createElementVNode"])("div",ca,[Object(i["createElementVNode"])("h2",null,Object(i["toDisplayString"])(e.translate("Marketplace_ConfirmRemoveLicense")),1),Object(i["createElementVNode"])("input",{role:"yes",type:"button",value:e.translate("General_Yes")},null,8,sa),Object(i["createElementVNode"])("input",{role:"no",type:"button",value:e.translate("General_No")},null,8,ua)],512)],64)}var pa=Object(i["defineComponent"])({props:{hasValidLicenseKey:Boolean},components:{Field:g["Field"],ContentBlock:b["ContentBlock"],SaveButton:g["SaveButton"],ActivityIndicator:b["ActivityIndicator"]},data:function(){return{licenseKey:"",hasValidLicense:this.hasValidLicenseKey,isUpdating:!1}},methods:{updateLicenseKey:function(e,t,n){var a=this;b["NotificationsStore"].remove("ManageLicenseKeySuccess"),b["AjaxHelper"].post({module:"API",method:"Marketplace.".concat(e),format:"JSON"},{licenseKey:this.licenseKey},{withTokenInUrl:!0}).then((function(t){a.isUpdating=!1,t&&t.value&&(b["NotificationsStore"].show({id:"ManageLicenseKeySuccess",message:n,context:"success",type:"toast"}),a.hasValidLicense="deleteLicenseKey"!==e,a.licenseKey="")}),(function(){a.isUpdating=!1}))},removeLicense:function(){var e=this;b["Matomo"].helper.modalConfirm(this.$refs.confirmRemoveLicense,{yes:function(){e.isUpdating=!0,e.updateLicenseKey("deleteLicenseKey","",Object(b["translate"])("Marketplace_LicenseKeyDeletedSuccess"))}})},updateLicense:function(){this.isUpdating=!0,this.updateLicenseKey("saveLicenseKey",this.licenseKey,Object(b["translate"])("Marketplace_LicenseKeyActivatedSuccess"))}},computed:{manageLicenseKeyIntro:function(){var e="?".concat(b["MatomoUrl"].stringify(Object.assign(Object.assign({},b["MatomoUrl"].urlParsed.value),{},{module:"Marketplace",action:"overview"})));return Object(b["translate"])("Marketplace_ManageLicenseKeyIntro",''),"",Object(b["externalLink"])("https://shop.matomo.org/my-account"),"")},licenseKeyPlaceholder:function(){return this.hasValidLicense?Object(b["translate"])("Marketplace_LicenseKeyIsValidShort"):Object(b["translate"])("Marketplace_LicenseKey")},saveButtonText:function(){return this.hasValidLicense?Object(b["translate"])("CoreUpdater_UpdateTitle"):Object(b["translate"])("Marketplace_ActivateLicenseKey")}}});pa.render=da;var ma=pa,ba={class:"getNewPlugins"},ga={class:"row"},Oa={class:"pluginName"},ja=Object(i["createElementVNode"])("br",null,null,-1),ka={key:0},va=Object(i["createElementVNode"])("br",null,null,-1),ha=Object(i["createElementVNode"])("br",null,null,-1),ya=[va,ha],fa={class:"widgetBody"},Na=["href"];function Va(e,t,n,a,l,r){var o=Object(i["resolveDirective"])("plugin-name");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",ba,[Object(i["createElementVNode"])("div",ga,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.plugins,(function(t,n){return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:"col s12",key:t.name},[Object(i["withDirectives"])(Object(i["createElementVNode"])("h3",Oa,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(t.displayName),1)],512),[[o,{pluginName:t.name}]]),Object(i["createElementVNode"])("span",null,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(t.description)+" ",1),ja,Object(i["withDirectives"])(Object(i["createElementVNode"])("a",null,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("General_MoreDetails")),1)],512),[[o,{pluginName:t.name}]])]),n'),"")},pluginRows:function(){var e=[];return this.plugins.forEach((function(t,n){var a=Math.floor(n/3);e[a]=e[a]||[],e[a].push(t)})),e},overviewLink:function(){var e=b["MatomoUrl"].stringify({module:"Marketplace",action:"overview"}),t=b["MatomoUrl"].stringify({pluginType:"premium"});return"?".concat(e,"#?").concat(t)}}});Za.render=Ya;var Xa=Za,el={key:0},tl={key:1},nl=["innerHTML"],al={key:2},ll=["innerHTML"],il=["innerHTML"];function rl(e,t,n,a,l,r){var o=Object(i["resolveComponent"])("EnrichedHeadline"),c=Object(i["resolveComponent"])("LicenseKey"),s=Object(i["resolveComponent"])("UploadPluginDialog"),u=Object(i["resolveComponent"])("Marketplace"),d=Object(i["resolveDirective"])("content-intro");return Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("div",null,[Object(i["createElementVNode"])("h2",null,[Object(i["createVNode"])(o,{"feature-name":e.translate("CorePluginsAdmin_Marketplace")},{default:Object(i["withCtx"])((function(){return[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("Marketplace_Marketplace")),1)]})),_:1},8,["feature-name"])]),Object(i["createElementVNode"])("p",null,[e.isSuperUser?e.showThemes?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",tl,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("CorePluginsAdmin_ThemesDescription"))+" ",1),Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.installingNewThemeText)},null,8,nl)])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",al,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("CorePluginsAdmin_PluginsExtendPiwik"))+" ",1),Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.installingNewPluginText)},null,8,ll)])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",el,Object(i["toDisplayString"])(e.restrictedMessage),1)),e.isSuperUser&&e.inReportingMenu?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:3,ref:"noticeRemoveMarketplaceFromMenu",innerHTML:e.$sanitize(e.noticeRemoveMarketplaceFromMenuText)},null,8,il)):Object(i["createCommentVNode"])("",!0)]),Object(i["createVNode"])(c,{"is-valid-consumer":e.isValidConsumer,"is-super-user":e.isSuperUser,"is-auto-update-possible":e.isAutoUpdatePossible,"is-plugins-admin-enabled":e.isPluginsAdminEnabled,"has-license-key":e.hasLicenseKey,"paid-plugins-to-install-at-once":e.paidPluginsToInstallAtOnce,"install-nonce":e.installNonce},null,8,["is-valid-consumer","is-super-user","is-auto-update-possible","is-plugins-admin-enabled","has-license-key","paid-plugins-to-install-at-once","install-nonce"]),Object(i["createVNode"])(s,{"is-plugin-upload-enabled":e.isPluginUploadEnabled,"upload-limit":e.uploadLimit,"install-nonce":e.installNonce},null,8,["is-plugin-upload-enabled","upload-limit","install-nonce"]),Object(i["createVNode"])(u,{"plugin-type-options":e.pluginTypeOptions,"default-sort":e.defaultSort,"plugin-sort-options":e.pluginSortOptions,"num-available-plugins-by-type":e.numAvailablePluginsByType,"current-user-email":e.currentUserEmail,"is-auto-update-possible":e.isAutoUpdatePossible,"is-super-user":e.isSuperUser,"is-multi-server-environment":e.isMultiServerEnvironment,"is-plugins-admin-enabled":e.isPluginsAdminEnabled,"is-valid-consumer":e.isValidConsumer,"deactivate-nonce":e.deactivateNonce,"activate-nonce":e.activateNonce,"install-nonce":e.installNonce,"update-nonce":e.updateNonce,"has-some-admin-access":e.hasSomeAdminAccess},null,8,["plugin-type-options","default-sort","plugin-sort-options","num-available-plugins-by-type","current-user-email","is-auto-update-possible","is-super-user","is-multi-server-environment","is-plugins-admin-enabled","is-valid-consumer","deactivate-nonce","activate-nonce","install-nonce","update-nonce","has-some-admin-access"])],512)),[[d]])}var ol=Object(i["defineComponent"])({props:{currentUserEmail:String,inReportingMenu:Boolean,isValidConsumer:Boolean,isSuperUser:Boolean,isAutoUpdatePossible:Boolean,isPluginsAdminEnabled:Boolean,isMultiServerEnvironment:Boolean,hasSomeAdminAccess:Boolean,hasLicenseKey:Boolean,paidPluginsToInstallAtOnce:{type:Array,required:!0},installNonce:{type:String,required:!0},activateNonce:{type:String,required:!0},deactivateNonce:{type:String,required:!0},updateNonce:{type:String,required:!0},isPluginUploadEnabled:Boolean,uploadLimit:[String,Number],pluginTypeOptions:{type:Object,required:!0},defaultSort:{type:String,required:!0},pluginSortOptions:{type:Object,required:!0},numAvailablePluginsByType:{type:Object,required:!0}},components:{EnrichedHeadline:b["EnrichedHeadline"],UploadPluginDialog:g["UploadPluginDialog"],LicenseKey:ia,Marketplace:wn},directives:{ContentIntro:b["ContentIntro"],PluginName:g["PluginName"]},mounted:function(){if(this.$refs.noticeRemoveMarketplaceFromMenu){var e=this.$refs.noticeRemoveMarketplaceFromMenu.querySelector("[matomo-plugin-name]");g["PluginName"].mounted(e,{dir:{},instance:null,modifiers:{},oldValue:null,value:{pluginName:"WhiteLabel"}})}},beforeUnmount:function(){if(this.$refs.noticeRemoveMarketplaceFromMenu){var e=this.$refs.noticeRemoveMarketplaceFromMenu.querySelector("[matomo-plugin-name]");g["PluginName"].unmounted(e,{dir:{},instance:null,modifiers:{},oldValue:null,value:{pluginName:"WhiteLabel"}})}},computed:{installingNewThemeText:function(){return Object(b["translate"])("Marketplace_InstallingNewThemesViaMarketplaceOrUpload",'',"")},installingNewPluginText:function(){return Object(b["translate"])("Marketplace_InstallingNewPluginsViaMarketplaceOrUpload",'',"")},noticeRemoveMarketplaceFromMenuText:function(){return Object(b["translate"])("Marketplace_NoticeRemoveMarketplaceFromReportingMenu",'',"")},showThemes:function(){return"themes"===b["MatomoUrl"].hashParsed.value.pluginType},restrictedMessage:function(){return this.showThemes?Object(b["translate"])("Marketplace_NotAllowedToBrowseMarketplaceThemes"):Object(b["translate"])("Marketplace_NotAllowedToBrowseMarketplacePlugins")}}});ol.render=rl;var cl=ol,sl={key:0},ul=["href"],dl=Object(i["createElementVNode"])("br",null,null,-1),pl=Object(i["createElementVNode"])("br",null,null,-1),ml=["innerHTML"],bl=Object(i["createElementVNode"])("br",null,null,-1),gl={class:"subscriptionName"},Ol=["href"],jl={key:1},kl={class:"subscriptionType"},vl=["title"],hl={key:0,class:"icon-error"},yl={key:1,class:"icon-warning"},fl={key:2,class:"icon-ok"},Nl=["title"],Vl=Object(i["createElementVNode"])("span",{class:"icon-error"},null,-1),El={key:0},Sl={colspan:"6"},Bl={class:"tableActionBar"},Ml=["href"],wl=Object(i["createElementVNode"])("span",{class:"icon-table"},null,-1),Tl={key:1},Cl=["innerHTML"];function Pl(e,t,n,a,l,r){var o=Object(i["resolveComponent"])("ContentBlock"),c=Object(i["resolveDirective"])("content-table");return Object(i["openBlock"])(),Object(i["createBlock"])(o,{"content-title":e.translate("Marketplace_OverviewPluginSubscriptions"),class:"subscriptionOverview"},{default:Object(i["withCtx"])((function(){return[e.hasLicenseKey?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",sl,[Object(i["createElementVNode"])("p",null,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("Marketplace_PluginSubscriptionsList"))+" ",1),e.loginUrl?(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:0,target:"_blank",rel:"noreferrer noopener",href:e.loginUrl},Object(i["toDisplayString"])(e.translate("Marketplace_OverviewPluginSubscriptionsAllDetails")),9,ul)):Object(i["createCommentVNode"])("",!0),dl,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("Marketplace_OverviewPluginSubscriptionsMissingInfo"))+" ",1),pl,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("Marketplace_NoValidSubscriptionNoUpdates"))+" ",1),Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.translate("Marketplace_CurrentNumPiwikUsers","".concat(e.numUsers,"")))},null,8,ml)]),bl,Object(i["withDirectives"])(Object(i["createElementVNode"])("table",null,[Object(i["createElementVNode"])("thead",null,[Object(i["createElementVNode"])("tr",null,[Object(i["createElementVNode"])("th",null,Object(i["toDisplayString"])(e.translate("General_Name")),1),Object(i["createElementVNode"])("th",null,Object(i["toDisplayString"])(e.translate("Marketplace_SubscriptionType")),1),Object(i["createElementVNode"])("th",null,Object(i["toDisplayString"])(e.translate("CorePluginsAdmin_Status")),1),Object(i["createElementVNode"])("th",null,Object(i["toDisplayString"])(e.translate("Marketplace_SubscriptionStartDate")),1),Object(i["createElementVNode"])("th",null,Object(i["toDisplayString"])(e.translate("Marketplace_SubscriptionEndDate")),1),Object(i["createElementVNode"])("th",null,Object(i["toDisplayString"])(e.translate("Marketplace_SubscriptionNextPaymentDate")),1)])]),Object(i["createElementVNode"])("tbody",null,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.subscriptions||[],(function(t,n){return Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",{key:n},[Object(i["createElementVNode"])("td",gl,[t.plugin.htmlUrl?(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:0,href:t.plugin.htmlUrl,rel:"noreferrer noopener",target:"_blank"},Object(i["toDisplayString"])(t.plugin.displayName),9,Ol)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",jl,Object(i["toDisplayString"])(t.plugin.displayName),1))]),Object(i["createElementVNode"])("td",kl,Object(i["toDisplayString"])(t.productType),1),Object(i["createElementVNode"])("td",{class:"subscriptionStatus",title:e.getSubscriptionStatusTitle(t)},[t.isValid?t.isExpiredSoon?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",yl)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",fl)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",hl)),Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(t.status)+" ",1),t.isExceeded?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:3,class:"errorMessage",title:e.translate("Marketplace_LicenseExceededPossibleCause")},[Vl,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("Marketplace_Exceeded")),1)],8,Nl)):Object(i["createCommentVNode"])("",!0)],8,vl),Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(t.start),1),Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(t.isValid&&t.nextPayment?e.translate("Marketplace_LicenseRenewsNextPaymentDate"):t.end),1),Object(i["createElementVNode"])("td",null,Object(i["toDisplayString"])(t.nextPayment),1)])})),128)),e.subscriptions.length?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",El,[Object(i["createElementVNode"])("td",Sl,Object(i["toDisplayString"])(e.translate("Marketplace_NoSubscriptionsFound")),1)]))])],512),[[c]]),Object(i["createElementVNode"])("div",Bl,[Object(i["createElementVNode"])("a",{href:e.marketplaceOverviewLink,class:""},[wl,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("Marketplace_BrowseMarketplace")),1)],8,Ml)])])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Tl,[Object(i["createElementVNode"])("p",{innerHTML:e.$sanitize(e.missingLicenseText)},null,8,Cl)]))]})),_:1},8,["content-title"])}var Al=Object(i["defineComponent"])({props:{loginUrl:{type:String,required:!0},numUsers:{type:Number,required:!0},hasLicenseKey:Boolean,subscriptions:{type:Array,required:!0}},components:{ContentBlock:b["ContentBlock"]},directives:{ContentTable:b["ContentTable"]},methods:{getSubscriptionStatusTitle:function(e){return e.isValid?e.isExpiredSoon?Object(b["translate"])("Marketplace_SubscriptionExpiresSoon"):void 0:Object(b["translate"])("Marketplace_SubscriptionInvalid")}},computed:{marketplaceOverviewLink:function(){return"?".concat(b["MatomoUrl"].stringify({module:"Marketplace",action:"overview"}))},missingLicenseText:function(){return Object(b["translate"])("Marketplace_OverviewPluginSubscriptionsMissingLicense",''),"")}}});Al.render=Pl;var Dl=Al,Ll={class:"richMarketplaceMenuButton"},_l=Object(i["createElementVNode"])("hr",null,null,-1),Ul={class:"intro"},xl={class:"cta"},Fl=Object(i["createElementVNode"])("span",{class:"icon-marketplace"}," ",-1);function ql(e,t,n,a,l,r){return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Ll,[_l,Object(i["createElementVNode"])("p",Ul,Object(i["toDisplayString"])(e.translate("Marketplace_RichMenuIntro")),1),Object(i["createElementVNode"])("p",xl,[Object(i["createElementVNode"])("a",{class:"btn btn-outline",tabindex:"5",href:"",onClick:t[0]||(t[0]=Object(i["withModifiers"])((function(t){return e.$emit("action")}),["prevent"])),onKeyup:t[1]||(t[1]=Object(i["withKeys"])((function(t){return e.$emit("action")}),["enter"]))},[Fl,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("Marketplace_Marketplace")),1)],32)])])}var Il=Object(i["defineComponent"])({});Il.render=ql;var Kl=Il; /*! * Matomo - free/libre analytics platform *