diff --git a/plugins/Marketplace/vue/dist/Marketplace.umd.js b/plugins/Marketplace/vue/dist/Marketplace.umd.js index 0116bd50ab31..de1307f84220 100644 --- a/plugins/Marketplace/vue/dist/Marketplace.umd.js +++ b/plugins/Marketplace/vue/dist/Marketplace.umd.js @@ -1407,115 +1407,115 @@ var StartFreeTrialvue_type_script_lang_ts_window = window, StartFreeTrialvue_type_script_lang_ts.render = StartFreeTrialvue_type_template_id_7f27ea4f_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=687a9eb5 +// 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=b8d9fdb2 -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_1 = { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_1 = { ref: "root", class: "modal", id: "pluginDetailsModal" }; -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_2 = { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_2 = { class: "modal-content__header" }; -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_3 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_3 = /*#__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_687a9eb5_hoisted_4 = { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_4 = { key: 0, class: "plugin-metadata-part1" }; -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_5 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h3", { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_5 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h3", { class: "sr-only" }, "Plugin details — part 1", -1); -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_6 = { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_6 = { key: 0, class: "pair" }; -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_7 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("img", { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_7 = /*#__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_687a9eb5_hoisted_8 = { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_8 = { key: 1, class: "pair" }; -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_9 = { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_9 = { key: 2, class: "pair" }; -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_10 = { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_10 = { key: 3, class: "pair" }; -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_11 = { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_11 = { key: 4, class: "pair" }; -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_12 = { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_12 = { class: "modal-content__main" }; -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_13 = { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_13 = { class: "plugin-description" }; -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_14 = { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_14 = { key: 1, class: "alert alert-warning" }; -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_15 = { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_15 = { key: 2, class: "alert alert-warning" }; -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_16 = { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_16 = { key: 3, class: "alert alert-danger" }; -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_17 = { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_17 = { key: 4, class: "alert alert-warning" }; -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_18 = ["innerHTML"]; -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_19 = { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_18 = ["innerHTML"]; +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_19 = { class: "plugin-metadata-part2" }; -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_20 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("hr", null, null, -1); +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_20 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("hr", null, null, -1); -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_21 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h3", { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_21 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h3", { class: "sr-only" }, "Plugin details — part 2", -1); -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_22 = { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_22 = { key: 0, class: "pair" }; -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_23 = { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_23 = { key: 1, class: "pair" }; -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_24 = { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_24 = { class: "pair" }; -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_25 = ["href"]; -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_26 = ["href"]; -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_27 = { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_25 = ["href"]; +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_26 = ["href"]; +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_27 = { key: 2 }; -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_28 = { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_28 = { key: 3 }; -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_29 = { +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_29 = { class: "pair" }; -var PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_30 = ["href"]; +var PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_30 = ["href"]; var _hoisted_31 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(", "); @@ -1595,7 +1595,7 @@ var _hoisted_60 = { "aria-label": "Matomo plugin", alt: "" }; -function PluginDetailsModalvue_type_template_id_687a9eb5_render(_ctx, _cache, $props, $setup, $data, $options) { +function PluginDetailsModalvue_type_template_id_b8d9fdb2_render(_ctx, _cache, $props, $setup, $data, $options) { var _ctx$pluginActivity, _ctx$pluginActivity2, _ctx$pluginLatestVers, @@ -1608,23 +1608,23 @@ function PluginDetailsModalvue_type_template_id_687a9eb5_render(_ctx, _cache, $p 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_687a9eb5_hoisted_1, [!_ctx.isLoading ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", { + return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_1, [!_ctx.isLoading ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", { key: 0, class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])(["modal-content", { 'modal-content--simple-header': !_ctx.hasHeaderMetadata }]) - }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_2, [PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_3, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h2", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.plugin && _ctx.plugin.displayName ? _ctx.plugin.displayName : 'Plugin details'), 1), _ctx.hasHeaderMetadata ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_4, [PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_5, 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_687a9eb5_hoisted_6, [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_687a9eb5_hoisted_7, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("a", { + }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_2, [PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_3, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h2", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.plugin && _ctx.plugin.displayName ? _ctx.plugin.displayName : 'Plugin details'), 1), _ctx.hasHeaderMetadata ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_4, [PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_5, 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_b8d9fdb2_hoisted_6, [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_b8d9fdb2_hoisted_7, 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_687a9eb5_hoisted_8, [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_687a9eb5_hoisted_9, [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_687a9eb5_hoisted_10, [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_687a9eb5_hoisted_11, [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_["createCommentVNode"])("", true)]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_12, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_13, [_ctx.showMissingRequirementsNoticeIfApplicable ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_MissingReqsNotice, { + }, 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_b8d9fdb2_hoisted_8, [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_b8d9fdb2_hoisted_9, [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_b8d9fdb2_hoisted_10, [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_b8d9fdb2_hoisted_11, [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_["createCommentVNode"])("", true)]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_12, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_13, [_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_687a9eb5_hoisted_14, 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_687a9eb5_hoisted_15, 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_687a9eb5_hoisted_16, 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_687a9eb5_hoisted_17, 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", { + }, 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_b8d9fdb2_hoisted_14, 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_b8d9fdb2_hoisted_15, 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_b8d9fdb2_hoisted_16, 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_b8d9fdb2_hoisted_17, 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_687a9eb5_hoisted_18)]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_19, [PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_20, PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_21, 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_687a9eb5_hoisted_22, [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_687a9eb5_hoisted_23, [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"], { + }, null, 8, PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_18)]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_19, [PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_20, PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_21, 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_b8d9fdb2_hoisted_22, [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_b8d9fdb2_hoisted_23, [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_687a9eb5_hoisted_24, [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) { + }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_24, [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", { @@ -1632,16 +1632,16 @@ function PluginDetailsModalvue_type_template_id_687a9eb5_render(_ctx, _cache, $p target: "_blank", rel: "noreferrer noopener", href: author.homepage - }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(author.name), 9, PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_25)) : 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", { + }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(author.name), 9, PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_25)) : 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, PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_26)) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_27, 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", PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_28, ", ")) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64); - }), 128))])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_29, [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", { + }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(author.name), 9, PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_26)) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_27, 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", PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_28, ", ")) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64); + }), 128))])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_29, [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, PluginDetailsModalvue_type_template_id_687a9eb5_hoisted_30)) : 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"], { + }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Marketplace_PluginWebsite')), 9, PluginDetailsModalvue_type_template_id_b8d9fdb2_hoisted_30)) : 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 @@ -1723,7 +1723,7 @@ function PluginDetailsModalvue_type_template_id_687a9eb5_render(_ctx, _cache, $p }) }, 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"])]), '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_60)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)])], 2)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 512); } -// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/PluginDetailsModal/PluginDetailsModal.vue?vue&type=template&id=687a9eb5 +// CONCATENATED MODULE: ./plugins/Marketplace/vue/src/PluginDetailsModal/PluginDetailsModal.vue?vue&type=template&id=b8d9fdb2 // 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 @@ -2012,11 +2012,36 @@ var PluginDetailsModalvue_type_script_lang_ts_window = window, _this4.$emit(eventName, plugin); }, 250); }, + enablePageScroll: function enablePageScroll() { + PluginDetailsModalvue_type_script_lang_ts_$('html').css({ + overflow: '', + 'margin-right': '' + }); + }, + disablePageScroll: function disablePageScroll() { + var $html = PluginDetailsModalvue_type_script_lang_ts_$('html'); + var initialDocWidth = $html.width() || 0; + $html.css({ + overflow: 'hidden' + }); + var noScrollDocWidth = $html.width() || 0; // set margin-right value equal to width of the scrollbar + + var scrollbarWidth = Math.max(0, noScrollDocWidth - initialDocWidth); + + if (scrollbarWidth) { + $html.css({ + 'margin-right': "".concat(scrollbarWidth, "px") + }); + } + }, showPluginDetailsDialog: function showPluginDetailsDialog() { var _this5 = this; PluginDetailsModalvue_type_script_lang_ts_$('#pluginDetailsModal').modal({ dismissible: true, + onOpenStart: function onOpenStart() { + _this5.disablePageScroll(); + }, onCloseEnd: function onCloseEnd() { external_CoreHome_["MatomoUrl"].updateHash(Object.assign(Object.assign({}, external_CoreHome_["MatomoUrl"].hashParsed.value), {}, { showPlugin: null @@ -2025,6 +2050,8 @@ var PluginDetailsModalvue_type_script_lang_ts_window = window, _this5.$emit('update:modelValue', null); _this5.isLoading = true; + + _this5.enablePageScroll(); } }).modal('open'); setTimeout(function () { @@ -2039,7 +2066,7 @@ var PluginDetailsModalvue_type_script_lang_ts_window = window, -PluginDetailsModalvue_type_script_lang_ts.render = PluginDetailsModalvue_type_template_id_687a9eb5_render +PluginDetailsModalvue_type_script_lang_ts.render = PluginDetailsModalvue_type_template_id_b8d9fdb2_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 diff --git a/plugins/Marketplace/vue/dist/Marketplace.umd.min.js b/plugins/Marketplace/vue/dist/Marketplace.umd.min.js index c06d5be2381f..bfd5cb864c3b 100644 --- a/plugins/Marketplace/vue/dist/Marketplace.umd.min.js +++ b/plugins/Marketplace/vue/dist/Marketplace.umd.min.js @@ -10,7 +10,7 @@ * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */var Re=window,Ie=Re.piwik,Ke=Re.broadcast,He=Re.piwikHelper;Ie.helper=He,Ie.broadcast=Ke,Ie.updateDateInTitle=function(e,t){if($(".top_controls #periodString").length&&(Pe=Pe||document.title,0===Pe.indexOf(Ie.siteName))){var n=" - ".concat(De.parse(t,e).getPrettyString()," ");document.title="".concat(Ie.siteName).concat(n).concat(Pe.slice(Ie.siteName.length))}},Ie.hasUserCapability=function(e){return Array.isArray(Ie.userCapabilities)&&-1!==Ie.userCapabilities.indexOf(e)},Ie.on=function(e,t){function n(e){t.apply(void 0,Le(e.detail))}t.wrapper=n,window.addEventListener(e,n)},Ie.off=function(e,t){t.wrapper&&window.removeEventListener(e,t.wrapper)},Ie.postEvent=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a","",this.plugin.displayName),this.startFreeTrial()):(this.trialStartSuccessNotificationTitle=Object(b["translate"])("CorePluginsAdmin_PluginFreeTrialStartedAccountCreatedTitle"),this.trialStartSuccessNotificationMessage=Object(b["translate"])("CorePluginsAdmin_PluginFreeTrialStartedAccountCreatedMessage",this.plugin.displayName),this.showLicenseDialog(!1)))}},computed:{plugin:function(){return this.modelValue},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(){pt("#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",null)):(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";pt(e).focus(),pt(e).off("keypress").keypress(n)},onCloseEnd:function(){t.createAccountError=null,t.trialStartInProgress||t.$emit("update:modelValue",null)}};e&&(a.inDuration=0),pt("#startFreeTrial").modal(a).modal("open")},showErrorModal:function(e){var t=this;this.trialStartError||(this.trialStartError=e,pt("#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,pt("#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.plugin.name},{createErrorNotification:!1}).then((function(){e.loadingModalCloseCallback=e.startFreeTrialSuccess,e.closeModal()})).catch((function(t){e.showErrorModal(ze.helper.htmlDecode(t.message)),e.trialStartInProgress=!1})).finally((function(){e.$emit("update:modelValue",null)}))},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")}}});mt.render=ut;var bt=mt,gt={ref:"root",class:"modal",id:"pluginDetailsModal"},Ot={class:"modal-content__header"},jt=Object(i["createElementVNode"])("span",{class:"btn-close modal-close"},[Object(i["createElementVNode"])("i",{class:"icon-close"})],-1),ht={key:0,class:"plugin-metadata-part1"},kt=Object(i["createElementVNode"])("h3",{class:"sr-only"},"Plugin details — part 1",-1),vt={key:0,class:"pair"},yt=Object(i["createElementVNode"])("img",{class:"star-icon reviews-icon",src:"plugins/Marketplace/images/star.svg",alt:""},null,-1),ft={key:1,class:"pair"},Nt={key:2,class:"pair"},Vt={key:3,class:"pair"},Et={key:4,class:"pair"},St={class:"modal-content__main"},Bt={class:"plugin-description"},Mt={key:1,class:"alert alert-warning"},wt={key:2,class:"alert alert-warning"},Tt={key:3,class:"alert alert-danger"},Ct={key:4,class:"alert alert-warning"},Pt=["innerHTML"],At={class:"plugin-metadata-part2"},Dt=Object(i["createElementVNode"])("hr",null,null,-1),Lt=Object(i["createElementVNode"])("h3",{class:"sr-only"},"Plugin details — part 2",-1),_t={key:0,class:"pair"},Ut={key:1,class:"pair"},xt={class:"pair"},qt=["href"],Ft=["href"],Rt={key:2},It={key:3},Kt={class:"pair"},Ht=["href"],$t=Object(i["createTextVNode"])(", "),zt=["href"],Gt=Object(i["createTextVNode"])(", "),Wt=["href"],Qt={key:0,class:"pair"},Yt={key:1,class:"pair"},Jt=["href"],Zt={key:1},Xt=["innerHTML"],en={key:0},tn=["href"],nn={key:1},an=["href"],ln=["innerHTML"],rn={key:0,class:"plugin-screenshots"},on=Object(i["createElementVNode"])("hr",null,null,-1),cn={class:"thumbnails"},sn=["src"],un={key:1,class:"plugin-documentation"},dn=Object(i["createElementVNode"])("hr",null,null,-1),pn=["innerHTML"],mn={key:2,class:"plugin-faq"},bn=Object(i["createElementVNode"])("hr",null,null,-1),gn=["innerHTML"],On={key:3,class:"plugin-reviews",id:"reviews"},jn=Object(i["createElementVNode"])("hr",null,null,-1),hn=["id","src"],kn={class:"modal-content__footer"},vn={class:"cta-container"},yn={key:0,class:"matomo-badge matomo-badge-modal",src:"plugins/Marketplace/images/matomo-badge.png","aria-label":"Matomo plugin",alt:""};function fn(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",gt,[e.isLoading?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:0,class:Object(i["normalizeClass"])(["modal-content",{"modal-content--simple-header":!e.hasHeaderMetadata}])},[Object(i["createElementVNode"])("div",Ot,[jt,Object(i["createElementVNode"])("h2",null,Object(i["toDisplayString"])(e.plugin&&e.plugin.displayName?e.plugin.displayName:"Plugin details"),1),e.hasHeaderMetadata?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",ht,[kt,Object(i["createElementVNode"])("dl",null,[e.showReviews?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",vt,[Object(i["createElementVNode"])("dt",null,Object(i["toDisplayString"])(e.translate("Marketplace_Reviews")),1),Object(i["createElementVNode"])("dd",null,[yt,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",ft,[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",Nt,[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",Vt,[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",Et,[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["createCommentVNode"])("",!0)]),Object(i["createElementVNode"])("div",St,[Object(i["createElementVNode"])("div",Bt,[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",Mt,Object(i["toDisplayString"])(e.translate("Marketplace_MultiServerEnvironmentWarning")),1)):e.isAutoUpdatePossible?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",wt,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",Tt,Object(i["toDisplayString"])(e.translate("Marketplace_PluginLicenseMissingDescription")),1)):e.showExceededLicenseDescription?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Ct,Object(i["toDisplayString"])(e.translate("Marketplace_PluginLicenseExceededDescription")),1)):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("div",{innerHTML:e.$sanitize(e.pluginDescription)},null,8,Pt)]),Object(i["createElementVNode"])("div",At,[Dt,Lt,Object(i["createElementVNode"])("dl",null,[e.plugin.isBundle?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",_t,[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",Ut,[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",xt,[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,qt)):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,Ft)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Rt,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",Yt,[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,Jt)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Zt,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,Xt),m.isValidHttpUrl(t.value)?(Object(i["openBlock"])(),Object(i["createElementBlock"])("dd",en,[Object(i["createElementVNode"])("a",{target:"_blank",rel:"noreferrer noopener",href:e.externalRawLink(e.$sanitize(t.value))},Object(i["toDisplayString"])(e.$sanitize(t.value)),9,tn)])):m.isValidEmail(t.value)?(Object(i["openBlock"])(),Object(i["createElementBlock"])("dd",nn,[Object(i["createElementVNode"])("a",{href:"mailto:".concat(encodeURIComponent(t.value))},Object(i["toDisplayString"])(e.$sanitize(t.value)),9,an)])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("dd",{key:2,innerHTML:e.$sanitize(t.value)},null,8,ln))],64)):Object(i["createCommentVNode"])("",!0)])})),128)):Object(i["createCommentVNode"])("",!0)],64))])]),e.pluginScreenshots.length?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",rn,[on,Object(i["createElementVNode"])("h3",null,Object(i["toDisplayString"])(e.translate("Marketplace_Screenshots")),1),Object(i["createElementVNode"])("div",cn,[(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,sn),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",un,[dn,Object(i["createElementVNode"])("h3",null,Object(i["toDisplayString"])(e.translate("General_Documentation")),1),Object(i["createElementVNode"])("div",{innerHTML:e.$sanitize(e.pluginDocumentation)},null,8,pn)])):Object(i["createCommentVNode"])("",!0),e.pluginFaq?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",mn,[bn,Object(i["createElementVNode"])("h3",null,Object(i["toDisplayString"])(e.translate("General_Faq")),1),Object(i["createElementVNode"])("div",{innerHTML:e.$sanitize(e.pluginFaq)},null,8,gn)])):Object(i["createCommentVNode"])("",!0),e.showReviews?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",On,[jn,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,hn)])):Object(i["createCommentVNode"])("",!0)]),Object(i["createElementVNode"])("div",kn,[Object(i["createElementVNode"])("div",vn,[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,onRequestTrial:t[1]||(t[1]=function(t){return e.emitTrialEvent("requestTrial")}),onStartFreeTrial:t[2]||(t[2]=function(t){return e.emitTrialEvent("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"])]),"piwik"==e.plugin.owner||"matomo-org"==e.plugin.owner?(Object(i["openBlock"])(),Object(i["createElementBlock"])("img",yn)):Object(i["createCommentVNode"])("",!0)])],2))],512)}function Nn(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 Vn=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))}}});Vn.render=Nn;var En=Vn,Sn=window,Bn=Sn.$,Mn=Object(i["defineComponent"])({components:{MissingReqsNotice:En,CTAContainer:Ne},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}},emits:["requestTrial","startFreeTrial","update:modelValue"],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},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||[]},hasHeaderMetadata:function(){return this.showReviews||!this.plugin.isBundle||(this.plugin.numDownloads||0)>0||this.plugin.lastUpdated&&!this.plugin.isBundle}},methods:{applyExternalTarget:function(){var e=this;setTimeout((function(){var t=e.$refs.root;Bn(".modal-content__main a",t).each((function(e,t){var n=Bn(t).attr("href");n&&0===n.indexOf("http")&&Bn(t).attr("target","_blank")}))}))},scrollElementIntoView:function(e){var t=this;setTimeout((function(){var n=t.$refs.root,a=Bn(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&&Bn((function(){for(var t=Bn("#pluginDetailsModal iframe.reviewIframe"),a=0;ae.length)&&(t=e.length);for(var n=0,a=new Array(t);n=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){Un(e.target).closest("a:not(.card-title-link)").length||(e.stopPropagation(),this.openDetailsModal(t))},openDetailsModal:function(e){this.showPluginDetailsForPlugin=e},scrollPluginCardIntoView:function(e){var t=Un('.pluginListContainer .card-title:contains("'.concat(e.displayName,'")'));if(1===t.length){var n=t.parents(".card");1===n.length&&n[0].scrollIntoView&&n[0].scrollIntoView({block:"start",behavior:"smooth"})}}}});xn.render=D;var qn=xn,Fn=function(e){return"".concat(e[0].toLowerCase()).concat(e.substring(1))},Rn=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:qn,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=Fn(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}}});Rn.render=m;var In=Rn,Kn={class:"marketplace-max-width"},Hn={class:"marketplace-paid-intro"},$n={key:0},zn={key:0},Gn=Object(i["createElementVNode"])("br",null,null,-1),Wn={class:"licenseToolbar valign-wrapper"},Qn=["href"],Yn={key:0},Jn={class:"ui-confirm",id:"installAllPaidPluginsAtOnce",ref:"installAllPaidPluginsAtOnce"},Zn=Object(i["createElementVNode"])("br",null,null,-1),Xn=Object(i["createElementVNode"])("br",null,null,-1),ea=["data-href","value"],ta=["value"],na={key:1},aa={key:0},la=["innerHTML"],ia=Object(i["createElementVNode"])("br",null,null,-1),ra={class:"licenseToolbar valign-wrapper"},oa={key:1},ca=["innerHTML"],sa={class:"ui-confirm",id:"confirmRemoveLicense",ref:"confirmRemoveLicense"},ua=["value"],da=["value"];function pa(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",Kn,[Object(i["createElementVNode"])("div",Hn,[e.isValidConsumer?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",$n,[e.isSuperUser?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",zn,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("Marketplace_PaidPluginsWithLicenseKeyIntro",""))+" ",1),Gn,Object(i["createElementVNode"])("div",Wn,[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,Qn),e.showInstallAllPaidPlugins?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Yn,[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",Jn,[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),Zn,Xn]),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,ea),Object(i["createElementVNode"])("input",{role:"cancel",type:"button",value:e.translate("General_Cancel")},null,8,ta)])],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",na,[e.isSuperUser?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",aa,[Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.noLicenseKeyIntroText)},null,8,la),ia,Object(i["createElementVNode"])("div",ra,[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",oa,[Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.noLicenseKeyIntroNoSuperUserAccessText)},null,8,ca)]))]))]),Object(i["createElementVNode"])("div",sa,[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,ua),Object(i["createElementVNode"])("input",{role:"no",type:"button",value:e.translate("General_No")},null,8,da)],512)])}var ma={class:"valign licenseKeyText"};function ba(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",ma,[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 ga=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")}}});ga.render=ba;var Oa=ga,ja=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:Oa},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}}});ja.render=pa;var ha=ja,ka=["innerHTML"],va={class:"manage-license-key-input"},ya={class:"ui-confirm",id:"confirmRemoveLicense",ref:"confirmRemoveLicense"},fa=["value"],Na=["value"];function Va(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,ka),Object(i["createElementVNode"])("div",va,[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",ya,[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,fa),Object(i["createElementVNode"])("input",{role:"no",type:"button",value:e.translate("General_No")},null,8,Na)],512)],64)}var Ea=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")}}});Ea.render=Va;var Sa=Ea,Ba={class:"getNewPlugins"},Ma={class:"row"},wa={class:"pluginName"},Ta=Object(i["createElementVNode"])("br",null,null,-1),Ca={key:0},Pa=Object(i["createElementVNode"])("br",null,null,-1),Aa=Object(i["createElementVNode"])("br",null,null,-1),Da=[Pa,Aa],La={class:"widgetBody"},_a=["href"];function Ua(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",Ma,[(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",wa,[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),Ta,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)}}});dl.render=ul;var pl=dl,ml={key:0},bl={key:1},gl=["innerHTML"],Ol={key:2},jl=["innerHTML"],hl=["innerHTML"];function kl(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",bl,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("CorePluginsAdmin_ThemesDescription"))+" ",1),Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.installingNewThemeText)},null,8,gl)])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Ol,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("CorePluginsAdmin_PluginsExtendPiwik"))+" ",1),Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.installingNewPluginText)},null,8,jl)])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",ml,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,hl)):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 vl=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:ha,Marketplace:In},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")}}});vl.render=kl;var yl=vl,fl={key:0},Nl=["href"],Vl=Object(i["createElementVNode"])("br",null,null,-1),El=Object(i["createElementVNode"])("br",null,null,-1),Sl=["innerHTML"],Bl=Object(i["createElementVNode"])("br",null,null,-1),Ml={class:"subscriptionName"},wl=["href"],Tl={key:1},Cl={class:"subscriptionType"},Pl=["title"],Al={key:0,class:"icon-error"},Dl={key:1,class:"icon-warning"},Ll={key:2,class:"icon-ok"},_l=["title"],Ul=Object(i["createElementVNode"])("span",{class:"icon-error"},null,-1),xl={key:0},ql={colspan:"6"},Fl={class:"tableActionBar"},Rl=["href"],Il=Object(i["createElementVNode"])("span",{class:"icon-table"},null,-1),Kl={key:1},Hl=["innerHTML"];function $l(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",fl,[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,Nl)):Object(i["createCommentVNode"])("",!0),Vl,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("Marketplace_OverviewPluginSubscriptionsMissingInfo"))+" ",1),El,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,Sl)]),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",Ml,[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,wl)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Tl,Object(i["toDisplayString"])(t.plugin.displayName),1))]),Object(i["createElementVNode"])("td",Cl,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",Dl)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Ll)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Al)),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")},[Ul,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("Marketplace_Exceeded")),1)],8,_l)):Object(i["createCommentVNode"])("",!0)],8,Pl),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",xl,[Object(i["createElementVNode"])("td",ql,Object(i["toDisplayString"])(e.translate("Marketplace_NoSubscriptionsFound")),1)]))])],512),[[c]]),Object(i["createElementVNode"])("div",Fl,[Object(i["createElementVNode"])("a",{href:e.marketplaceOverviewLink,class:""},[Il,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("Marketplace_BrowseMarketplace")),1)],8,Rl)])])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Kl,[Object(i["createElementVNode"])("p",{innerHTML:e.$sanitize(e.missingLicenseText)},null,8,Hl)]))]})),_:1},8,["content-title"])}var zl=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",''),"")}}});zl.render=$l;var Gl=zl,Wl={class:"richMarketplaceMenuButton"},Ql=Object(i["createElementVNode"])("hr",null,null,-1),Yl={class:"intro"},Jl={class:"cta"},Zl=Object(i["createElementVNode"])("span",{class:"icon-marketplace"}," ",-1);function Xl(e,t,n,a,l,r){return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Wl,[Ql,Object(i["createElementVNode"])("p",Yl,Object(i["toDisplayString"])(e.translate("Marketplace_RichMenuIntro")),1),Object(i["createElementVNode"])("p",Jl,[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"]))},[Zl,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("Marketplace_Marketplace")),1)],32)])])}var ei=Object(i["defineComponent"])({});ei.render=Xl;var ti=ei; + */var Re=window,Ie=Re.piwik,Ke=Re.broadcast,He=Re.piwikHelper;Ie.helper=He,Ie.broadcast=Ke,Ie.updateDateInTitle=function(e,t){if($(".top_controls #periodString").length&&(Pe=Pe||document.title,0===Pe.indexOf(Ie.siteName))){var n=" - ".concat(De.parse(t,e).getPrettyString()," ");document.title="".concat(Ie.siteName).concat(n).concat(Pe.slice(Ie.siteName.length))}},Ie.hasUserCapability=function(e){return Array.isArray(Ie.userCapabilities)&&-1!==Ie.userCapabilities.indexOf(e)},Ie.on=function(e,t){function n(e){t.apply(void 0,Le(e.detail))}t.wrapper=n,window.addEventListener(e,n)},Ie.off=function(e,t){t.wrapper&&window.removeEventListener(e,t.wrapper)},Ie.postEvent=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a","",this.plugin.displayName),this.startFreeTrial()):(this.trialStartSuccessNotificationTitle=Object(b["translate"])("CorePluginsAdmin_PluginFreeTrialStartedAccountCreatedTitle"),this.trialStartSuccessNotificationMessage=Object(b["translate"])("CorePluginsAdmin_PluginFreeTrialStartedAccountCreatedMessage",this.plugin.displayName),this.showLicenseDialog(!1)))}},computed:{plugin:function(){return this.modelValue},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(){pt("#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",null)):(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";pt(e).focus(),pt(e).off("keypress").keypress(n)},onCloseEnd:function(){t.createAccountError=null,t.trialStartInProgress||t.$emit("update:modelValue",null)}};e&&(a.inDuration=0),pt("#startFreeTrial").modal(a).modal("open")},showErrorModal:function(e){var t=this;this.trialStartError||(this.trialStartError=e,pt("#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,pt("#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.plugin.name},{createErrorNotification:!1}).then((function(){e.loadingModalCloseCallback=e.startFreeTrialSuccess,e.closeModal()})).catch((function(t){e.showErrorModal(ze.helper.htmlDecode(t.message)),e.trialStartInProgress=!1})).finally((function(){e.$emit("update:modelValue",null)}))},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")}}});mt.render=ut;var bt=mt,gt={ref:"root",class:"modal",id:"pluginDetailsModal"},Ot={class:"modal-content__header"},jt=Object(i["createElementVNode"])("span",{class:"btn-close modal-close"},[Object(i["createElementVNode"])("i",{class:"icon-close"})],-1),ht={key:0,class:"plugin-metadata-part1"},kt=Object(i["createElementVNode"])("h3",{class:"sr-only"},"Plugin details — part 1",-1),vt={key:0,class:"pair"},yt=Object(i["createElementVNode"])("img",{class:"star-icon reviews-icon",src:"plugins/Marketplace/images/star.svg",alt:""},null,-1),ft={key:1,class:"pair"},Nt={key:2,class:"pair"},Vt={key:3,class:"pair"},Et={key:4,class:"pair"},St={class:"modal-content__main"},Bt={class:"plugin-description"},Mt={key:1,class:"alert alert-warning"},wt={key:2,class:"alert alert-warning"},Tt={key:3,class:"alert alert-danger"},Ct={key:4,class:"alert alert-warning"},Pt=["innerHTML"],At={class:"plugin-metadata-part2"},Dt=Object(i["createElementVNode"])("hr",null,null,-1),Lt=Object(i["createElementVNode"])("h3",{class:"sr-only"},"Plugin details — part 2",-1),_t={key:0,class:"pair"},Ut={key:1,class:"pair"},xt={class:"pair"},qt=["href"],Ft=["href"],Rt={key:2},It={key:3},Kt={class:"pair"},Ht=["href"],$t=Object(i["createTextVNode"])(", "),zt=["href"],Gt=Object(i["createTextVNode"])(", "),Wt=["href"],Qt={key:0,class:"pair"},Yt={key:1,class:"pair"},Jt=["href"],Zt={key:1},Xt=["innerHTML"],en={key:0},tn=["href"],nn={key:1},an=["href"],ln=["innerHTML"],rn={key:0,class:"plugin-screenshots"},on=Object(i["createElementVNode"])("hr",null,null,-1),cn={class:"thumbnails"},sn=["src"],un={key:1,class:"plugin-documentation"},dn=Object(i["createElementVNode"])("hr",null,null,-1),pn=["innerHTML"],mn={key:2,class:"plugin-faq"},bn=Object(i["createElementVNode"])("hr",null,null,-1),gn=["innerHTML"],On={key:3,class:"plugin-reviews",id:"reviews"},jn=Object(i["createElementVNode"])("hr",null,null,-1),hn=["id","src"],kn={class:"modal-content__footer"},vn={class:"cta-container"},yn={key:0,class:"matomo-badge matomo-badge-modal",src:"plugins/Marketplace/images/matomo-badge.png","aria-label":"Matomo plugin",alt:""};function fn(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",gt,[e.isLoading?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:0,class:Object(i["normalizeClass"])(["modal-content",{"modal-content--simple-header":!e.hasHeaderMetadata}])},[Object(i["createElementVNode"])("div",Ot,[jt,Object(i["createElementVNode"])("h2",null,Object(i["toDisplayString"])(e.plugin&&e.plugin.displayName?e.plugin.displayName:"Plugin details"),1),e.hasHeaderMetadata?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",ht,[kt,Object(i["createElementVNode"])("dl",null,[e.showReviews?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",vt,[Object(i["createElementVNode"])("dt",null,Object(i["toDisplayString"])(e.translate("Marketplace_Reviews")),1),Object(i["createElementVNode"])("dd",null,[yt,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",ft,[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",Nt,[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",Vt,[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",Et,[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["createCommentVNode"])("",!0)]),Object(i["createElementVNode"])("div",St,[Object(i["createElementVNode"])("div",Bt,[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",Mt,Object(i["toDisplayString"])(e.translate("Marketplace_MultiServerEnvironmentWarning")),1)):e.isAutoUpdatePossible?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",wt,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",Tt,Object(i["toDisplayString"])(e.translate("Marketplace_PluginLicenseMissingDescription")),1)):e.showExceededLicenseDescription?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Ct,Object(i["toDisplayString"])(e.translate("Marketplace_PluginLicenseExceededDescription")),1)):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("div",{innerHTML:e.$sanitize(e.pluginDescription)},null,8,Pt)]),Object(i["createElementVNode"])("div",At,[Dt,Lt,Object(i["createElementVNode"])("dl",null,[e.plugin.isBundle?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",_t,[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",Ut,[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",xt,[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,qt)):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,Ft)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Rt,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",Yt,[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,Jt)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Zt,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,Xt),m.isValidHttpUrl(t.value)?(Object(i["openBlock"])(),Object(i["createElementBlock"])("dd",en,[Object(i["createElementVNode"])("a",{target:"_blank",rel:"noreferrer noopener",href:e.externalRawLink(e.$sanitize(t.value))},Object(i["toDisplayString"])(e.$sanitize(t.value)),9,tn)])):m.isValidEmail(t.value)?(Object(i["openBlock"])(),Object(i["createElementBlock"])("dd",nn,[Object(i["createElementVNode"])("a",{href:"mailto:".concat(encodeURIComponent(t.value))},Object(i["toDisplayString"])(e.$sanitize(t.value)),9,an)])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("dd",{key:2,innerHTML:e.$sanitize(t.value)},null,8,ln))],64)):Object(i["createCommentVNode"])("",!0)])})),128)):Object(i["createCommentVNode"])("",!0)],64))])]),e.pluginScreenshots.length?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",rn,[on,Object(i["createElementVNode"])("h3",null,Object(i["toDisplayString"])(e.translate("Marketplace_Screenshots")),1),Object(i["createElementVNode"])("div",cn,[(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,sn),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",un,[dn,Object(i["createElementVNode"])("h3",null,Object(i["toDisplayString"])(e.translate("General_Documentation")),1),Object(i["createElementVNode"])("div",{innerHTML:e.$sanitize(e.pluginDocumentation)},null,8,pn)])):Object(i["createCommentVNode"])("",!0),e.pluginFaq?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",mn,[bn,Object(i["createElementVNode"])("h3",null,Object(i["toDisplayString"])(e.translate("General_Faq")),1),Object(i["createElementVNode"])("div",{innerHTML:e.$sanitize(e.pluginFaq)},null,8,gn)])):Object(i["createCommentVNode"])("",!0),e.showReviews?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",On,[jn,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,hn)])):Object(i["createCommentVNode"])("",!0)]),Object(i["createElementVNode"])("div",kn,[Object(i["createElementVNode"])("div",vn,[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,onRequestTrial:t[1]||(t[1]=function(t){return e.emitTrialEvent("requestTrial")}),onStartFreeTrial:t[2]||(t[2]=function(t){return e.emitTrialEvent("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"])]),"piwik"==e.plugin.owner||"matomo-org"==e.plugin.owner?(Object(i["openBlock"])(),Object(i["createElementBlock"])("img",yn)):Object(i["createCommentVNode"])("",!0)])],2))],512)}function Nn(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 Vn=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))}}});Vn.render=Nn;var En=Vn,Sn=window,Bn=Sn.$,Mn=Object(i["defineComponent"])({components:{MissingReqsNotice:En,CTAContainer:Ne},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}},emits:["requestTrial","startFreeTrial","update:modelValue"],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},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||[]},hasHeaderMetadata:function(){return this.showReviews||!this.plugin.isBundle||(this.plugin.numDownloads||0)>0||this.plugin.lastUpdated&&!this.plugin.isBundle}},methods:{applyExternalTarget:function(){var e=this;setTimeout((function(){var t=e.$refs.root;Bn(".modal-content__main a",t).each((function(e,t){var n=Bn(t).attr("href");n&&0===n.indexOf("http")&&Bn(t).attr("target","_blank")}))}))},scrollElementIntoView:function(e){var t=this;setTimeout((function(){var n=t.$refs.root,a=Bn(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&&Bn((function(){for(var t=Bn("#pluginDetailsModal iframe.reviewIframe"),a=0;ae.length)&&(t=e.length);for(var n=0,a=new Array(t);n=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){Un(e.target).closest("a:not(.card-title-link)").length||(e.stopPropagation(),this.openDetailsModal(t))},openDetailsModal:function(e){this.showPluginDetailsForPlugin=e},scrollPluginCardIntoView:function(e){var t=Un('.pluginListContainer .card-title:contains("'.concat(e.displayName,'")'));if(1===t.length){var n=t.parents(".card");1===n.length&&n[0].scrollIntoView&&n[0].scrollIntoView({block:"start",behavior:"smooth"})}}}});xn.render=D;var qn=xn,Fn=function(e){return"".concat(e[0].toLowerCase()).concat(e.substring(1))},Rn=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:qn,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=Fn(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}}});Rn.render=m;var In=Rn,Kn={class:"marketplace-max-width"},Hn={class:"marketplace-paid-intro"},$n={key:0},zn={key:0},Gn=Object(i["createElementVNode"])("br",null,null,-1),Wn={class:"licenseToolbar valign-wrapper"},Qn=["href"],Yn={key:0},Jn={class:"ui-confirm",id:"installAllPaidPluginsAtOnce",ref:"installAllPaidPluginsAtOnce"},Zn=Object(i["createElementVNode"])("br",null,null,-1),Xn=Object(i["createElementVNode"])("br",null,null,-1),ea=["data-href","value"],ta=["value"],na={key:1},aa={key:0},la=["innerHTML"],ia=Object(i["createElementVNode"])("br",null,null,-1),ra={class:"licenseToolbar valign-wrapper"},oa={key:1},ca=["innerHTML"],sa={class:"ui-confirm",id:"confirmRemoveLicense",ref:"confirmRemoveLicense"},ua=["value"],da=["value"];function pa(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",Kn,[Object(i["createElementVNode"])("div",Hn,[e.isValidConsumer?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",$n,[e.isSuperUser?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",zn,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("Marketplace_PaidPluginsWithLicenseKeyIntro",""))+" ",1),Gn,Object(i["createElementVNode"])("div",Wn,[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,Qn),e.showInstallAllPaidPlugins?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Yn,[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",Jn,[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),Zn,Xn]),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,ea),Object(i["createElementVNode"])("input",{role:"cancel",type:"button",value:e.translate("General_Cancel")},null,8,ta)])],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",na,[e.isSuperUser?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",aa,[Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.noLicenseKeyIntroText)},null,8,la),ia,Object(i["createElementVNode"])("div",ra,[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",oa,[Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.noLicenseKeyIntroNoSuperUserAccessText)},null,8,ca)]))]))]),Object(i["createElementVNode"])("div",sa,[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,ua),Object(i["createElementVNode"])("input",{role:"no",type:"button",value:e.translate("General_No")},null,8,da)],512)])}var ma={class:"valign licenseKeyText"};function ba(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",ma,[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 ga=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")}}});ga.render=ba;var Oa=ga,ja=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:Oa},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}}});ja.render=pa;var ha=ja,ka=["innerHTML"],va={class:"manage-license-key-input"},ya={class:"ui-confirm",id:"confirmRemoveLicense",ref:"confirmRemoveLicense"},fa=["value"],Na=["value"];function Va(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,ka),Object(i["createElementVNode"])("div",va,[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",ya,[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,fa),Object(i["createElementVNode"])("input",{role:"no",type:"button",value:e.translate("General_No")},null,8,Na)],512)],64)}var Ea=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")}}});Ea.render=Va;var Sa=Ea,Ba={class:"getNewPlugins"},Ma={class:"row"},wa={class:"pluginName"},Ta=Object(i["createElementVNode"])("br",null,null,-1),Ca={key:0},Pa=Object(i["createElementVNode"])("br",null,null,-1),Aa=Object(i["createElementVNode"])("br",null,null,-1),Da=[Pa,Aa],La={class:"widgetBody"},_a=["href"];function Ua(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",Ma,[(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",wa,[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),Ta,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)}}});dl.render=ul;var pl=dl,ml={key:0},bl={key:1},gl=["innerHTML"],Ol={key:2},jl=["innerHTML"],hl=["innerHTML"];function kl(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",bl,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("CorePluginsAdmin_ThemesDescription"))+" ",1),Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.installingNewThemeText)},null,8,gl)])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Ol,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("CorePluginsAdmin_PluginsExtendPiwik"))+" ",1),Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.installingNewPluginText)},null,8,jl)])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",ml,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,hl)):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 vl=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:ha,Marketplace:In},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")}}});vl.render=kl;var yl=vl,fl={key:0},Nl=["href"],Vl=Object(i["createElementVNode"])("br",null,null,-1),El=Object(i["createElementVNode"])("br",null,null,-1),Sl=["innerHTML"],Bl=Object(i["createElementVNode"])("br",null,null,-1),Ml={class:"subscriptionName"},wl=["href"],Tl={key:1},Cl={class:"subscriptionType"},Pl=["title"],Al={key:0,class:"icon-error"},Dl={key:1,class:"icon-warning"},Ll={key:2,class:"icon-ok"},_l=["title"],Ul=Object(i["createElementVNode"])("span",{class:"icon-error"},null,-1),xl={key:0},ql={colspan:"6"},Fl={class:"tableActionBar"},Rl=["href"],Il=Object(i["createElementVNode"])("span",{class:"icon-table"},null,-1),Kl={key:1},Hl=["innerHTML"];function $l(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",fl,[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,Nl)):Object(i["createCommentVNode"])("",!0),Vl,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("Marketplace_OverviewPluginSubscriptionsMissingInfo"))+" ",1),El,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,Sl)]),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",Ml,[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,wl)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Tl,Object(i["toDisplayString"])(t.plugin.displayName),1))]),Object(i["createElementVNode"])("td",Cl,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",Dl)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Ll)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Al)),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")},[Ul,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("Marketplace_Exceeded")),1)],8,_l)):Object(i["createCommentVNode"])("",!0)],8,Pl),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",xl,[Object(i["createElementVNode"])("td",ql,Object(i["toDisplayString"])(e.translate("Marketplace_NoSubscriptionsFound")),1)]))])],512),[[c]]),Object(i["createElementVNode"])("div",Fl,[Object(i["createElementVNode"])("a",{href:e.marketplaceOverviewLink,class:""},[Il,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("Marketplace_BrowseMarketplace")),1)],8,Rl)])])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Kl,[Object(i["createElementVNode"])("p",{innerHTML:e.$sanitize(e.missingLicenseText)},null,8,Hl)]))]})),_:1},8,["content-title"])}var zl=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",''),"")}}});zl.render=$l;var Gl=zl,Wl={class:"richMarketplaceMenuButton"},Ql=Object(i["createElementVNode"])("hr",null,null,-1),Yl={class:"intro"},Jl={class:"cta"},Zl=Object(i["createElementVNode"])("span",{class:"icon-marketplace"}," ",-1);function Xl(e,t,n,a,l,r){return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Wl,[Ql,Object(i["createElementVNode"])("p",Yl,Object(i["toDisplayString"])(e.translate("Marketplace_RichMenuIntro")),1),Object(i["createElementVNode"])("p",Jl,[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"]))},[Zl,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("Marketplace_Marketplace")),1)],32)])])}var ei=Object(i["defineComponent"])({});ei.render=Xl;var ti=ei; /*! * Matomo - free/libre analytics platform * diff --git a/plugins/Marketplace/vue/src/PluginDetailsModal/PluginDetailsModal.vue b/plugins/Marketplace/vue/src/PluginDetailsModal/PluginDetailsModal.vue index cec10471fa50..1c1b82e13deb 100644 --- a/plugins/Marketplace/vue/src/PluginDetailsModal/PluginDetailsModal.vue +++ b/plugins/Marketplace/vue/src/PluginDetailsModal/PluginDetailsModal.vue @@ -508,9 +508,29 @@ export default defineComponent({ this.$emit(eventName, plugin); }, 250); }, + enablePageScroll() { + $('html').css({ overflow: '', 'margin-right': '' }); + }, + disablePageScroll() { + const $html = $('html'); + const initialDocWidth = $html.width() || 0; + + $html.css({ overflow: 'hidden' }); + + const noScrollDocWidth = $html.width() || 0; + + // set margin-right value equal to width of the scrollbar + const scrollbarWidth = Math.max(0, noScrollDocWidth - initialDocWidth); + if (scrollbarWidth) { + $html.css({ 'margin-right': `${scrollbarWidth}px` }); + } + }, showPluginDetailsDialog() { $('#pluginDetailsModal').modal({ dismissible: true, + onOpenStart: () => { + this.disablePageScroll(); + }, onCloseEnd: () => { MatomoUrl.updateHash({ ...MatomoUrl.hashParsed.value, @@ -518,6 +538,7 @@ export default defineComponent({ }); this.$emit('update:modelValue', null); this.isLoading = true; + this.enablePageScroll(); }, }).modal('open');