Ubuntu

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("CoreHome"),require("vue"),require("CorePluginsAdmin")):"function"===typeof define&&define.amd?define(["CoreHome",,"CorePluginsAdmin"],t):"object"===typeof exports?exports["Marketplace"]=t(require("CoreHome"),require("vue"),require("CorePluginsAdmin")):e["Marketplace"]=t(e["CoreHome"],e["Vue"],e["CorePluginsAdmin"])})("undefined"!==typeof self?self:this,(function(e,t,n){return function(e){var t={};function n(l){if(t[l])return t[l].exports;var a=t[l]={i:l,l:!1,exports:{}};return e[l].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,l){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(n.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(l,a,function(t){return e[t]}.bind(null,a));return l},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="plugins/Marketplace/vue/dist/",n(n.s="fae3")}({"19dc":function(t,n){t.exports=e},"8bbf":function(e,n){e.exports=t},a5a2:function(e,t){e.exports=n},fae3:function(e,t,n){"use strict";if(n.r(t),n.d(t,"Marketplace",(function(){return on})),n.d(t,"ManageLicenseKey",(function(){return gn})),n.d(t,"GetNewPlugins",(function(){return fn})),n.d(t,"GetNewPluginsAdmin",(function(){return Fn})),n.d(t,"GetPremiumFeatures",(function(){return tl})),n.d(t,"MissingReqsNotice",(function(){return Yt})),n.d(t,"OverviewIntro",(function(){return cl})),n.d(t,"SubscriptionOverview",(function(){return Ll})),n.d(t,"RichMenuButton",(function(){return Il})),n.d(t,"PluginList",(function(){return ln})),"undefined"!==typeof window){var l=window.document.currentScript,a=l&&l.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(n.p=a[1])}var i=n("8bbf");const r={class:"row marketplaceActions",ref:"root"},o={class:"col s12 m6 l4"},c={class:"col s12 m6 l4"},s={key:0,class:"col s12 m12 l4"},u={class:"plugin-search"},d=Object(i["createElementVNode"])("span",{class:"icon-search"},null,-1);function p(e,t,n,l,a,p){var m;const b=Object(i["resolveComponent"])("Field"),g=Object(i["resolveComponent"])("PluginList"),O=Object(i["resolveComponent"])("ContentBlock"),j=Object(i["resolveComponent"])("MatomoLoader");return Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],null,[Object(i["createElementVNode"])("div",r,[Object(i["createElementVNode"])("div",o,[Object(i["createVNode"])(b,{uicontrol:"select",name:"plugin_type","model-value":e.pluginTypeFilter,"onUpdate:modelValue":e.updateType,title:e.translate("Marketplace_Show"),"full-width":!0,options:e.pluginTypeOptions},null,8,["model-value","onUpdate:modelValue","title","options"])]),Object(i["createElementVNode"])("div",c,[Object(i["createVNode"])(b,{uicontrol:"select",name:"plugin_sort","model-value":e.pluginSort,"onUpdate:modelValue":e.updateSort,title:e.translate("Marketplace_Sort"),"full-width":!0,options:e.pluginSortOptions},null,8,["model-value","onUpdate:modelValue","title","options"])]),(null===(m=e.pluginsToShow)||void 0===m?void 0:m.length)>20||e.searchQuery?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",s,[Object(i["createElementVNode"])("div",u,[Object(i["createElementVNode"])("div",null,[Object(i["createVNode"])(b,{uicontrol:"text",name:"query",title:e.queryInputTitle,"full-width":!0,"model-value":e.searchQuery,"onUpdate:modelValue":e.updateQuery},null,8,["title","model-value","onUpdate:modelValue"])]),d])])):Object(i["createCommentVNode"])("",!0)],512),!e.loading&&e.pluginsToShow.length>0?(Object(i["openBlock"])(),Object(i["createBlock"])(g,{key:0,"plugins-to-show":e.pluginsToShow,"current-user-email":e.currentUserEmail,"is-auto-update-possible":e.isAutoUpdatePossible,"is-super-user":e.isSuperUser,"is-multi-server-environment":e.isMultiServerEnvironment,"has-some-admin-access":e.hasSomeAdminAccess,"is-plugins-admin-enabled":e.isPluginsAdminEnabled,"is-valid-consumer":e.isValidConsumer,"deactivate-nonce":e.deactivateNonce,"activate-nonce":e.activateNonce,"install-nonce":e.installNonce,"update-nonce":e.updateNonce,"num-users":e.numUsers,onTriggerUpdate:t[0]||(t[0]=e=>this.updateMarketplace()),onStartTrialStart:t[1]||(t[1]=e=>this.$emit("startTrialStart")),onStartTrialStop:t[2]||(t[2]=e=>this.$emit("startTrialStop"))},null,8,["plugins-to-show","current-user-email","is-auto-update-possible","is-super-user","is-multi-server-environment","has-some-admin-access","is-plugins-admin-enabled","is-valid-consumer","deactivate-nonce","activate-nonce","install-nonce","update-nonce","num-users"])):Object(i["createCommentVNode"])("",!0),e.loading||0!=e.pluginsToShow.length?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(O,{key:1},{default:Object(i["withCtx"])(()=>[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate(e.showThemes?"Marketplace_NoThemesFound":"Marketplace_NoPluginsFound")),1)]),_:1})),e.loading?(Object(i["openBlock"])(),Object(i["createBlock"])(O,{key:2},{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(j),Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.loadingMessage),1)]),_:1})):Object(i["createCommentVNode"])("",!0)],64)}var m=n("19dc"),b=n("a5a2");const g={key:0,class:"pluginListContainer row"},O=["onClick"],j={class:"card"},h={class:"card-content"},k=["src"],v={class:"content-container"},y={class:"card-content-top"},N={key:0,class:"matomo-badge matomo-badge-top",src:"plugins/Marketplace/images/matomo-badge.png","aria-label":"Matomo plugin",alt:""},V={class:"price"},S=["onClick"],E=Object(i["createElementVNode"])("div",{class:"card-focus"},null,-1),B={class:"card-title"},M=Object(i["createElementVNode"])("span",{class:"card-title-chevron"}," ›",-1),f={class:"card-description"},T={class:"card-content-bottom"},w={key:0,class:"downloads"},C={class:"owner"},P={key:0},D={key:1},A={class:"cta-container"},L={key:1,class:"matomo-badge matomo-badge-bottom",src:"plugins/Marketplace/images/matomo-badge.png","aria-label":"Matomo plugin",alt:""};function _(e,t,n,l,a,r){const o=Object(i["resolveComponent"])("RequestTrial"),c=Object(i["resolveComponent"])("StartFreeTrial"),s=Object(i["resolveComponent"])("PluginDetailsModal"),u=Object(i["resolveComponent"])("CTAContainer");return Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],null,[Object(i["createVNode"])(o,{modelValue:e.showRequestTrialForPlugin,"onUpdate:modelValue":t[0]||(t[0]=t=>e.showRequestTrialForPlugin=t),onTrialRequested:t[1]||(t[1]=e=>this.$emit("triggerUpdate"))},null,8,["modelValue"]),Object(i["createVNode"])(c,{"current-user-email":e.currentUserEmail,"is-valid-consumer":e.isValidConsumer,modelValue:e.showStartFreeTrialForPlugin,"onUpdate:modelValue":t[2]||(t[2]=t=>e.showStartFreeTrialForPlugin=t),onTrialStarted:t[3]||(t[3]=e=>{this.$emit("triggerUpdate")}),onStartTrialStart:t[4]||(t[4]=e=>{this.$emit("startTrialStart")}),onStartTrialStop:t[5]||(t[5]=e=>{this.$emit("startTrialStop")})},null,8,["current-user-email","is-valid-consumer","modelValue"]),Object(i["createVNode"])(s,{modelValue:e.showPluginDetailsForPlugin,"onUpdate:modelValue":t[6]||(t[6]=t=>e.showPluginDetailsForPlugin=t),"is-super-user":e.isSuperUser,"is-plugins-admin-enabled":e.isPluginsAdminEnabled,"is-multi-server-environment":e.isMultiServerEnvironment,"is-valid-consumer":e.isValidConsumer,"is-auto-update-possible":e.isAutoUpdatePossible,"has-some-admin-access":e.hasSomeAdminAccess,"deactivate-nonce":e.deactivateNonce,"activate-nonce":e.activateNonce,"install-nonce":e.installNonce,"update-nonce":e.updateNonce,"num-users":e.numUsers,onRequestTrial:t[7]||(t[7]=e=>this.requestTrial(e)),onStartFreeTrial:t[8]||(t[8]=e=>this.startFreeTrial(e))},null,8,["modelValue","is-super-user","is-plugins-admin-enabled","is-multi-server-environment","is-valid-consumer","is-auto-update-possible","has-some-admin-access","deactivate-nonce","activate-nonce","install-nonce","update-nonce","num-users"]),e.pluginsToShow.length>0?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",g,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.pluginsToShow,t=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:"col s12 m6 l4",key:t.name},[Object(i["createElementVNode"])("div",{class:Object(i["normalizeClass"])("card-holder "+(t.numDownloads>0?"card-with-downloads":"")),onClick:n=>e.clickCard(n,t)},[Object(i["createElementVNode"])("div",j,[Object(i["createElementVNode"])("div",h,[Object(i["createElementVNode"])("img",{src:t.coverImage+"?w=880&h=480",alt:"",class:"cover-image"},null,8,k),Object(i["createElementVNode"])("div",v,[Object(i["createElementVNode"])("div",y,["piwik"==t.owner||"matomo-org"==t.owner?(Object(i["openBlock"])(),Object(i["createElementBlock"])("img",N)):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("div",V,[t.priceFrom?(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:0},[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("Marketplace_PriceFromPerPeriod",t.priceFrom.prettyPrice,t.priceFrom.period)),1)],64)):t.isFree?(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:1},[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("Marketplace_Free")),1)],64)):Object(i["createCommentVNode"])("",!0)]),Object(i["createElementVNode"])("a",{onClick:Object(i["withModifiers"])(n=>e.clickCard(n,t),["prevent"]),class:"card-title-link",href:"#",tabindex:"7"},[E,Object(i["createElementVNode"])("h2",B,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(t.displayName),1),M])],8,S),Object(i["createElementVNode"])("div",f,Object(i["toDisplayString"])(t.description),1)]),Object(i["createElementVNode"])("div",T,[t.numDownloads>0?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",w,Object(i["toDisplayString"])(t.numDownloadsPretty)+" "+Object(i["toDisplayString"])(e.translate("General_Downloads").toLowerCase()),1)):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("div",C,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("Marketplace_CreatedBy"))+" ",1),"piwik"===t.owner||"matomo-org"===t.owner?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",P," Matomo")):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",D,Object(i["toDisplayString"])(t.owner),1))]),Object(i["createElementVNode"])("div",A,[Object(i["createVNode"])(u,{"is-super-user":e.isSuperUser,"is-plugins-admin-enabled":e.isPluginsAdminEnabled,"is-multi-server-environment":e.isMultiServerEnvironment,"is-valid-consumer":e.isValidConsumer,"is-auto-update-possible":e.isAutoUpdatePossible,"activate-nonce":e.activateNonce,"deactivate-nonce":e.deactivateNonce,"install-nonce":e.installNonce,"update-nonce":e.updateNonce,plugin:t,"in-modal":!1,onOpenDetailsModal:e=>this.openDetailsModal(t),onRequestTrial:e=>this.requestTrial(t),onStartFreeTrial:e=>this.startFreeTrial(t)},null,8,["is-super-user","is-plugins-admin-enabled","is-multi-server-environment","is-valid-consumer","is-auto-update-possible","activate-nonce","deactivate-nonce","install-nonce","update-nonce","plugin","onOpenDetailsModal","onRequestTrial","onStartFreeTrial"])]),"piwik"==t.owner||"matomo-org"==t.owner?(Object(i["openBlock"])(),Object(i["createElementBlock"])("img",L)):Object(i["createCommentVNode"])("",!0)])])])])],10,O)]))),128))])):Object(i["createCommentVNode"])("",!0)],64)}const U={key:0,class:"alert alert-danger alert-no-background"},q={key:0,style:{"white-space":"nowrap"}},x=["href"],F={key:2,class:"alert alert-danger alert-no-background"},R={key:0,style:{"white-space":"nowrap"}},$=["href"],I={key:1,class:"alert alert-warning alert-no-background"},H={key:0,style:{"white-space":"nowrap"}},K={key:4,class:"alert alert-success alert-no-background"},z=["href"],G=["href"],Q=["title"],W=["title","href"],J={key:8,class:"alert alert-warning alert-no-background"},Y={key:0,style:{"white-space":"nowrap"}},Z=["href"],X=["title"],ee=["title"];function te(e,t,n,l,a,r){const o=Object(i["resolveComponent"])("MoreDetailsAction"),c=Object(i["resolveComponent"])("DownloadButton");return e.isSuperUser?(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:0},[e.plugin.isMissingLicense?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",U,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("Marketplace_LicenseMissing"))+" ",1),e.inModal?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",q,[Object(i["createTextVNode"])("("),Object(i["createVNode"])(o,{onAction:t[0]||(t[0]=t=>e.$emit("openDetailsModal"))}),Object(i["createTextVNode"])(")")]))])):e.inModal&&e.plugin.hasExceededLicense&&e.plugin.consumer.loginUrl?(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:1,class:"btn btn-block",tabindex:"7",target:"_blank",rel:"noreferrer noopener",href:e.externalRawLink(e.plugin.consumer.loginUrl)},Object(i["toDisplayString"])(e.translate("Marketplace_UpgradeSubscription")),9,x)):e.plugin.hasExceededLicense?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",F,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("Marketplace_LicenseExceeded"))+" ",1),e.inModal?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",R,[Object(i["createTextVNode"])("("),Object(i["createVNode"])(o,{onAction:t[1]||(t[1]=t=>e.$emit("openDetailsModal"))}),Object(i["createTextVNode"])(")")]))])):e.plugin.canBeUpdated&&0==e.plugin.missingRequirements.length?(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:3},[e.isAutoUpdatePossible&&e.isPluginsAdminEnabled?(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:0,tabindex:"7",class:"btn btn-block",href:e.linkToUpdate(e.plugin.name)},Object(i["toDisplayString"])(e.translate("CoreUpdater_UpdateTitle")),9,$)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",I,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("Marketplace_CannotUpdate"))+" ",1),!e.inModal||0===e.plugin.missingRequirements.length&&e.plugin.isDownloadable&&!e.isAutoUpdatePossible?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",H,[Object(i["createTextVNode"])("("),e.inModal?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(o,{key:0,onAction:t[2]||(t[2]=t=>e.$emit("openDetailsModal"))})),Object(i["createVNode"])(c,{plugin:e.plugin,"show-or":!e.inModal,"is-auto-update-possible":e.isAutoUpdatePossible},null,8,["plugin","show-or","is-auto-update-possible"]),Object(i["createTextVNode"])(")")])):Object(i["createCommentVNode"])("",!0)]))],64)):e.plugin.isInstalled?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",K,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("General_Installed"))+" ",1),e.plugin.missingRequirements.length>0||!e.isAutoUpdatePossible?(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:0},[Object(i["createTextVNode"])(" ("),Object(i["createVNode"])(c,{plugin:e.plugin,"show-or":!1,"is-auto-update-possible":e.isAutoUpdatePossible},null,8,["plugin","is-auto-update-possible"]),Object(i["createTextVNode"])(") ")],64)):e.plugin.isInvalid||e.isMultiServerEnvironment||!e.isPluginsAdminEnabled?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:1},[Object(i["createTextVNode"])(" ("),e.plugin.isActivated?(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:0,tabindex:"7",href:e.linkToDeactivate(e.plugin.name)},Object(i["toDisplayString"])(e.translate("CorePluginsAdmin_Deactivate")),9,z)):e.plugin.missingRequirements.length>0?(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:1},[Object(i["createTextVNode"])(" - ")],64)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:2,tabindex:"7",href:e.linkToActivate(e.plugin.name)},Object(i["toDisplayString"])(e.translate("CorePluginsAdmin_Activate")),9,G)),Object(i["createTextVNode"])(") ")],64))])):e.plugin.isEligibleForFreeTrial&&!e.inModal&&e.isPluginsAdminEnabled?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:5,class:"btn btn-block purchaseable",title:e.translate("Marketplace_StartFreeTrial")},Object(i["toDisplayString"])(e.translate("Marketplace_StartFreeTrial")),9,Q)):e.plugin.isEligibleForFreeTrial&&e.inModal?(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:6,class:"btn btn-block addToCartLink",target:"_blank",title:e.translate("Marketplace_ClickToCompletePurchase"),rel:"noreferrer noopener",href:e.shopVariationUrl},Object(i["toDisplayString"])(e.translate("Marketplace_AddToCart")),9,W)):e.inModal||e.plugin.isDownloadable||!(e.plugin.isPaid||e.plugin.missingRequirements.length>0)&&e.isAutoUpdatePossible?e.plugin.missingRequirements.length>0||!e.isAutoUpdatePossible?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",J,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("Marketplace_CannotInstall"))+" ",1),!e.inModal||0===e.plugin.missingRequirements.length&&e.plugin.isDownloadable&&!e.isAutoUpdatePossible?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Y,[Object(i["createTextVNode"])("("),e.inModal?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(o,{key:0,onAction:t[4]||(t[4]=t=>e.$emit("openDetailsModal"))})),Object(i["createVNode"])(c,{plugin:e.plugin,"show-or":!e.inModal,"is-auto-update-possible":e.isAutoUpdatePossible},null,8,["plugin","show-or","is-auto-update-possible"]),Object(i["createTextVNode"])(")")])):Object(i["createCommentVNode"])("",!0)])):e.isPluginsAdminEnabled&&e.plugin.hasDownloadLink?(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:9,tabindex:"7",href:e.linkToInstall(e.plugin.name),class:"btn btn-block"},Object(i["toDisplayString"])(e.translate("Marketplace_ActionInstall")),9,Z)):(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:10},[e.inModal?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(o,{key:0,"show-as-button":!0,label:e.translate("General_MoreDetails"),onAction:t[5]||(t[5]=t=>e.$emit("openDetailsModal"))},null,8,["label"]))],64)):(Object(i["openBlock"])(),Object(i["createBlock"])(o,{key:7,"show-as-button":!0,label:e.translate("General_MoreDetails"),onAction:t[3]||(t[3]=t=>e.$emit("openDetailsModal"))},null,8,["label"]))],64)):e.plugin.isTrialRequested?(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:1,tabindex:"7",class:"btn btn-block purchaseable disabled",href:"",title:e.translate("Marketplace_TrialRequested")},Object(i["toDisplayString"])(e.translate("Marketplace_TrialRequested")),9,X)):e.plugin.canTrialBeRequested&&!e.plugin.isMissingLicense?(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:2,tabindex:"7",class:"btn btn-block purchaseable",href:"",onClick:t[6]||(t[6]=Object(i["withModifiers"])(e=>{this.$emit("requestTrial")},["prevent"])),title:e.translate("Marketplace_RequestTrial")},Object(i["toDisplayString"])(e.translate("Marketplace_RequestTrial")),9,ee)):(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:3},[e.inModal?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(o,{key:0,"show-as-button":!0,label:e.translate("General_MoreDetails"),onAction:t[7]||(t[7]=t=>e.$emit("openDetailsModal"))},null,8,["label"]))],64))}const ne={key:0,onclick:"$(this).css('display', 'none')"},le=["href"];function ae(e,t,n,l,a,r){return 0===e.plugin.missingRequirements.length&&e.plugin.isDownloadable&&!e.isAutoUpdatePossible?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",ne,[e.showOr?(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:0},[Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("General_Or"))+" ",1)],64)):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("a",{tabindex:"7",class:"plugin-details download",href:e.linkTo({module:"Marketplace",action:"download",pluginName:e.plugin.name,nonce:e.plugin.downloadNonce})},Object(i["toDisplayString"])(e.translate("General_Download")),9,le)])):Object(i["createCommentVNode"])("",!0)}var ie=Object(i["defineComponent"])({props:{plugin:{type:Object,required:!0},showOr:{type:Boolean,default:!1},isAutoUpdatePossible:{type:Boolean,required:!0}},methods:{linkTo(e){return"?"+m["MatomoUrl"].stringify(Object.assign(Object.assign({},m["MatomoUrl"].urlParsed.value),e))}}});ie.render=ae;var re=ie;const oe=["title"];function ce(e,t,n,l,a,r){return Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{tabindex:"7",class:Object(i["normalizeClass"])({"btn btn-block":e.showAsButton}),href:"",title:e.translate("General_MoreDetails"),onClick:t[0]||(t[0]=Object(i["withModifiers"])(t=>e.$emit("action"),["prevent"])),onKeyup:t[1]||(t[1]=Object(i["withKeys"])(t=>e.$emit("action"),["enter"]))},Object(i["toDisplayString"])(e.label?e.label:e.translate("General_Help")),43,oe)}var se=Object(i["defineComponent"])({props:{showAsButton:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1}},emits:["action"]});se.render=ce;var ue=se,de=Object(i["defineComponent"])({props:{plugin:{type:Object,required:!0},activateNonce:{type:String,required:!0},deactivateNonce:{type:String,required:!0},installNonce:{type:String,required:!0},updateNonce:{type:String,required:!0},isAutoUpdatePossible:{type:Boolean,required:!0},isValidConsumer:{type:Boolean,required:!0},isMultiServerEnvironment:{type:Boolean,required:!0},isPluginsAdminEnabled:{type:Boolean,required:!0},isSuperUser:{type:Boolean,required:!0},inModal:{type:Boolean,required:!0},shopVariationUrl:{type:String,required:!1,default:""}},emits:["openDetailsModal","requestTrial","startFreeTrial"],components:{MoreDetailsAction:ue,DownloadButton:re},methods:{linkToActivate(e){return this.linkTo({module:"CorePluginsAdmin",action:"activate",redirectTo:"referrer",nonce:this.activateNonce,pluginName:e})},linkToDeactivate(e){return this.linkTo({module:"CorePluginsAdmin",action:"deactivate",redirectTo:"referrer",nonce:this.deactivateNonce,pluginName:e})},linkToInstall(e){return this.linkTo({module:"Marketplace",action:"installPlugin",nonce:this.installNonce,pluginName:e})},linkToUpdate(e){return this.linkTo({module:"Marketplace",action:"updatePlugin",nonce:this.updateNonce,pluginName:e})},linkTo(e){return"?"+m["MatomoUrl"].stringify(Object.assign(Object.assign({},m["MatomoUrl"].urlParsed.value),e))}}});de.render=te;var pe=de;const me={class:"ui-confirm",ref:"confirm"},be=["value"],ge=["value"];function Oe(e,t,n,l,a,r){var o;return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",me,[Object(i["createElementVNode"])("h2",null,Object(i["toDisplayString"])(e.translate("Marketplace_RequestTrialConfirmTitle",null===(o=e.plugin)||void 0===o?void 0:o.displayName)),1),Object(i["createElementVNode"])("p",null,Object(i["toDisplayString"])(e.translate("Marketplace_RequestTrialConfirmEmailWarning")),1),Object(i["createElementVNode"])("input",{role:"yes",type:"button",value:e.translate("General_Yes")},null,8,be),Object(i["createElementVNode"])("input",{role:"no",type:"button",value:e.translate("General_No")},null,8,ge)],512)}var je=Object(i["defineComponent"])({props:{modelValue:{type:Object,default:()=>({})}},emits:["update:modelValue","trialRequested"],watch:{modelValue(e){e&&m["Matomo"].helper.modalConfirm(this.$refs.confirm,{yes:()=>{this.requestTrial(e)}},{onCloseEnd:()=>{this.$emit("update:modelValue",null)}})}},computed:{plugin(){return this.modelValue}},methods:{requestTrial(e){m["AjaxHelper"].post({module:"API",method:"Marketplace.requestTrial"},{pluginName:e.name}).then(()=>{const t=m["NotificationsStore"].show({message:Object(m["translate"])("Marketplace_RequestTrialSubmitted",e.displayName),context:"success",id:"requestTrialSuccess",placeat:"#notificationContainer",type:"transient"});m["NotificationsStore"].scrollToNotification(t),this.$emit("trialRequested")})}}});je.render=Oe;var he=je;const ke={class:"modal",id:"startFreeTrial"},ve={key:0,class:"btn-close modal-close"},ye=Object(i["createElementVNode"])("i",{class:"icon-close"},null,-1),Ne=[ye],Ve={key:1,class:"modal-content trial-start-in-progress"},Se={class:"Piwik_Popover_Loading"},Ee={class:"Piwik_Popover_Loading_Name"},Be={key:2,class:"modal-content trial-start-error"},Me={class:"modal-text"},fe={key:3,class:"modal-content trial-start-no-license"},Te={class:"modal-text"},we=["innerHTML"],Ce=["innerHTML"],Pe=["disabled"],De=["innerHTML"];function Ae(e,t,n,l,a,r){const o=Object(i["resolveComponent"])("Field");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",ke,[e.trialStartInProgress?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("p",ve,Ne)),e.trialStartInProgress?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Ve,[Object(i["createElementVNode"])("div",Se,[Object(i["createElementVNode"])("div",Ee,[Object(i["createElementVNode"])("h2",null,Object(i["toDisplayString"])(e.translate("Marketplace_TrialStartInProgressTitle")),1),Object(i["createElementVNode"])("p",null,Object(i["toDisplayString"])(e.translate("Marketplace_TrialStartInProgressText")),1)])])])):e.trialStartError?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Be,[Object(i["createElementVNode"])("div",Me,[Object(i["createElementVNode"])("h2",null,Object(i["toDisplayString"])(e.translate("Marketplace_TrialStartErrorTitle")),1),Object(i["createElementVNode"])("p",null,Object(i["toDisplayString"])(e.trialStartError),1),Object(i["createElementVNode"])("p",null,Object(i["toDisplayString"])(e.translate("Marketplace_TrialStartErrorSupport")),1)])])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",fe,[Object(i["createElementVNode"])("div",Te,[Object(i["createElementVNode"])("h2",null,Object(i["toDisplayString"])(e.translate("Marketplace_TrialStartNoLicenseTitle")),1),Object(i["createElementVNode"])("p",null,Object(i["toDisplayString"])(e.translate("Marketplace_TrialStartNoLicenseText")),1),Object(i["createVNode"])(o,{uicontrol:"text",name:"email",modelValue:e.createAccountEmail,"onUpdate:modelValue":t[0]||(t[0]=t=>e.createAccountEmail=t),"full-width":!0,title:e.translate("UsersManager_Email")},null,8,["modelValue","title"]),e.createAccountError?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:0,class:"alert alert-danger",innerHTML:e.$sanitize(e.createAccountError)},null,8,we)):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("p",{class:"trial-start-legal-hint",innerHTML:e.$sanitize(e.trialStartNoLicenseLegalHintText)},null,8,Ce),Object(i["createElementVNode"])("p",null,[Object(i["createElementVNode"])("button",{class:"btn",disabled:!e.createAccountEmail,onClick:t[1]||(t[1]=t=>e.createAccountAndStartFreeTrial())},Object(i["toDisplayString"])(e.translate("Marketplace_TrialStartNoLicenseCreateAccount")),9,Pe)]),Object(i["createElementVNode"])("p",{class:"add-existing-license",innerHTML:e.$sanitize(e.trialStartNoLicenseAddHereText)},null,8,De)])]))])}const{$:Le}=window;var _e=Object(i["defineComponent"])({components:{Field:b["Field"]},props:{modelValue:{type:Object,default:()=>({})},currentUserEmail:String,isValidConsumer:Boolean},data(){return{createAccountEmail:this.currentUserEmail||"",createAccountError:null,trialStartError:null,loadingModalCloseCallback:void 0,trialStartInProgress:!1,trialStartSuccessNotificationMessage:"",trialStartSuccessNotificationTitle:""}},emits:["update:modelValue","trialStarted","startTrialStart","startTrialStop"],watch:{modelValue(e){e&&(this.isValidConsumer?(this.trialStartSuccessNotificationMessage=Object(m["translate"])("CorePluginsAdmin_PluginFreeTrialStarted","","",this.plugin.displayName),this.startFreeTrial()):(this.trialStartSuccessNotificationTitle=Object(m["translate"])("CorePluginsAdmin_PluginFreeTrialStartedAccountCreatedTitle"),this.trialStartSuccessNotificationMessage=Object(m["translate"])("CorePluginsAdmin_PluginFreeTrialStartedAccountCreatedMessage",this.plugin.displayName),this.showLicenseDialog(!1)))}},computed:{plugin(){return this.modelValue},trialStartNoLicenseAddHereText(){const e="?"+m["MatomoUrl"].stringify({module:"Marketplace",action:"manageLicenseKey"});return Object(m["translate"])("Marketplace_TrialStartNoLicenseAddHere",``,"")},trialStartNoLicenseLegalHintText(){return Object(m["translate"])("Marketplace_TrialStartNoLicenseLegalHint",Object(m["externalLink"])("https://shop.matomo.org/terms-conditions/"),"",Object(m["externalLink"])("https://matomo.org/privacy-policy/"),"")}},methods:{closeModal(){Le("#startFreeTrial").modal("close")},createAccountAndStartFreeTrial(){this.createAccountEmail&&(this.showLoadingModal(!0),m["AjaxHelper"].post({module:"API",method:"Marketplace.createAccount"},{email:this.createAccountEmail},{createErrorNotification:!1}).then(()=>{this.startFreeTrial()}).catch(e=>{e.message.startsWith("Marketplace_CreateAccountError")?(this.showErrorModal(Object(m["translate"])(e.message)),this.trialStartInProgress=!1,this.$emit("update:modelValue",null)):(this.createAccountError=e.message,this.trialStartInProgress=!1,this.showLicenseDialog(!0))}))},showLicenseDialog(e){const t=e=>{const t=e.keyCode?e.keyCode:e.which;13===t&&(this.closeModal(),this.createAccountAndStartFreeTrial())},n={dismissible:!0,onOpenEnd:()=>{const e=".modal.open #email";Le(e).focus(),Le(e).off("keypress").keypress(t)},onCloseEnd:()=>{this.createAccountError=null,this.trialStartInProgress||this.$emit("update:modelValue",null)}};e&&(n.inDuration=0),Le("#startFreeTrial").modal(n).modal("open")},showErrorModal(e){this.trialStartError||(this.trialStartError=e,Le("#startFreeTrial").modal({dismissible:!0,inDuration:0,onCloseEnd:()=>{this.trialStartError=null}}).modal("open"))},showLoadingModal(e){this.trialStartInProgress||(this.trialStartInProgress=!0,this.loadingModalCloseCallback=void 0,Le("#startFreeTrial").modal({dismissible:!1,inDuration:e?0:void 0,onCloseEnd:()=>{this.loadingModalCloseCallback&&(this.loadingModalCloseCallback(),this.loadingModalCloseCallback=void 0)}}).modal("open"))},startFreeTrial(){this.showLoadingModal(!1),this.$emit("startTrialStart"),m["AjaxHelper"].post({module:"API",method:"Marketplace.startFreeTrial"},{pluginName:this.plugin.name},{createErrorNotification:!1}).then(()=>{this.loadingModalCloseCallback=this.startFreeTrialSuccess,this.closeModal()}).catch(e=>{this.showErrorModal(m["Matomo"].helper.htmlDecode(e.message)),this.trialStartInProgress=!1,this.$emit("startTrialStop")}).finally(()=>{this.$emit("update:modelValue",null)})},startFreeTrialSuccess(){const e=m["NotificationsStore"].show({message:this.trialStartSuccessNotificationMessage,title:this.trialStartSuccessNotificationTitle,context:"success",id:"startTrialSuccess",placeat:"#notificationContainer",type:"transient"});m["NotificationsStore"].scrollToNotification(e),this.trialStartInProgress=!1,this.$emit("trialStarted")}}});_e.render=Ae;var Ue=_e;const qe={ref:"root",class:"modal",id:"pluginDetailsModal"},xe={class:"modal-content__header"},Fe=Object(i["createElementVNode"])("span",{class:"btn-close modal-close"},[Object(i["createElementVNode"])("i",{class:"icon-close"})],-1),Re={key:0,class:"plugin-metadata-part1"},$e=Object(i["createElementVNode"])("h3",{class:"sr-only"},"Plugin details — part 1",-1),Ie={key:0,class:"pair"},He=Object(i["createElementVNode"])("img",{class:"star-icon reviews-icon",src:"plugins/Marketplace/images/star.svg",alt:""},null,-1),Ke={key:1,class:"pair"},ze={key:2,class:"pair"},Ge={key:3,class:"pair"},Qe={key:4,class:"pair"},We={class:"plugin-description"},Je={key:1,class:"alert alert-warning"},Ye={key:2,class:"alert alert-warning"},Ze={key:3,class:"alert alert-danger"},Xe={key:4,class:"alert alert-warning"},et=["innerHTML"],tt=["innerHTML"],nt=["innerHTML"],lt=["innerHTML"],at={class:"plugin-metadata-part2"},it=Object(i["createElementVNode"])("hr",null,null,-1),rt=Object(i["createElementVNode"])("h3",{class:"sr-only"},"Plugin details — part 2",-1),ot={key:0,class:"pair"},ct={key:1,class:"pair"},st={class:"pair"},ut=["href"],dt=["href"],pt={key:2},mt={key:3},bt={class:"pair"},gt=["href"],Ot=["href"],jt=["href"],ht={key:0,class:"pair"},kt={key:1,class:"pair"},vt=["href"],yt={key:1},Nt=["innerHTML"],Vt={key:0},St=["href"],Et={key:1},Bt=["href"],Mt=["innerHTML"],ft={key:0,class:"plugin-screenshots"},Tt=Object(i["createElementVNode"])("hr",null,null,-1),wt={class:"thumbnails"},Ct=["src"],Pt={key:1,class:"plugin-documentation"},Dt=Object(i["createElementVNode"])("hr",null,null,-1),At=["innerHTML"],Lt={key:2,class:"plugin-faq"},_t=Object(i["createElementVNode"])("hr",null,null,-1),Ut=["innerHTML"],qt={key:3,class:"plugin-reviews",id:"reviews"},xt=Object(i["createElementVNode"])("hr",null,null,-1),Ft=["id","src"],Rt={key:0,class:"matomo-badge matomo-badge-modal",src:"plugins/Marketplace/images/matomo-badge.png","aria-label":"Matomo plugin",alt:""},$t={class:"cta-container cta-container-modal"},It={key:0,class:"free-trial"},Ht={class:"free-trial-lead-in"},Kt=["title"],zt=["value","title"],Gt={key:1,class:"matomo-badge matomo-badge-modal",src:"plugins/Marketplace/images/matomo-badge.png","aria-label":"Matomo plugin",alt:""};function Qt(e,t,n,l,a,r){var o,c,s,u,d,p;const m=Object(i["resolveComponent"])("MissingReqsNotice"),b=Object(i["resolveComponent"])("CTAContainer");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",qe,[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",xe,[Fe,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",Re,[$e,Object(i["createElementVNode"])("dl",null,[e.showReviews?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Ie,[Object(i["createElementVNode"])("dt",null,Object(i["toDisplayString"])(e.translate("Marketplace_Reviews")),1),Object(i["createElementVNode"])("dd",null,[He,Object(i["createElementVNode"])("a",{onClick:t[0]||(t[0]=t=>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",Ke,[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",ze,[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",Ge,[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",Qe,[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",{class:Object(i["normalizeClass"])(["modal-content__main",{"modal-content__main--with-free-trial":e.showFreeTrialDropdown}])},[Object(i["createElementVNode"])("div",We,[e.showMissingRequirementsNoticeIfApplicable?(Object(i["openBlock"])(),Object(i["createBlock"])(m,{key:0,plugin:e.plugin},null,8,["plugin"])):Object(i["createCommentVNode"])("",!0),e.isMultiServerEnvironment?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Je,Object(i["toDisplayString"])(e.translate("Marketplace_MultiServerEnvironmentWarning")),1)):e.isAutoUpdatePossible?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Ye,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",Ze,Object(i["toDisplayString"])(e.translate("Marketplace_PluginLicenseMissingDescription")),1)):e.showExceededLicenseDescription?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Xe,Object(i["toDisplayString"])(e.translate("Marketplace_PluginLicenseExceededDescription")),1)):"Pending"!==e.plugin.licenseStatus||e.isMultiServerEnvironment?"Cancelled"!==e.plugin.licenseStatus||e.isMultiServerEnvironment?e.plugin.hasDownloadLink||e.isMultiServerEnvironment||!e.plugin.licenseStatus&&e.plugin.isPaid?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:7,class:"alert alert-warning",innerHTML:e.$sanitize(e.getDownloadLinkMissingHelpText(e.plugin.displayName))},null,8,nt)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:6,class:"alert alert-warning",innerHTML:e.$sanitize(e.getCancelledLicenseHelpText(e.plugin.displayName))},null,8,tt)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:5,class:"alert alert-warning",innerHTML:e.$sanitize(e.getPendingLicenseHelpText(e.plugin.displayName))},null,8,et)),Object(i["createElementVNode"])("div",{innerHTML:e.$sanitize(e.pluginDescription)},null,8,lt)]),Object(i["createElementVNode"])("div",at,[it,rt,Object(i["createElementVNode"])("dl",null,[e.plugin.isBundle?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",ot,[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",ct,[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",st,[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,(t,n)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],{key:"author-"+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,ut)):t.email&&e.isValidEmail(t.email)?(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:1,href:"mailto:"+encodeURIComponent(t.email)},Object(i["toDisplayString"])(t.name),9,dt)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",pt,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",kt,[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,vt)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",yt,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,(t,n)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:"pair",key:"support-"+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,Nt),this.isValidHttpUrl(t.value)?(Object(i["openBlock"])(),Object(i["createElementBlock"])("dd",Vt,[Object(i["createElementVNode"])("a",{target:"_blank",rel:"noreferrer noopener",href:e.externalRawLink(e.$sanitize(t.value))},Object(i["toDisplayString"])(e.$sanitize(t.value)),9,St)])):this.isValidEmail(t.value)?(Object(i["openBlock"])(),Object(i["createElementBlock"])("dd",Et,[Object(i["createElementVNode"])("a",{href:"mailto:"+encodeURIComponent(t.value)},Object(i["toDisplayString"])(e.$sanitize(t.value)),9,Bt)])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("dd",{key:2,innerHTML:e.$sanitize(t.value)},null,8,Mt))],64)):Object(i["createCommentVNode"])("",!0)]))),128)):Object(i["createCommentVNode"])("",!0)],64))])]),e.pluginScreenshots.length?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",ft,[Tt,Object(i["createElementVNode"])("h3",null,Object(i["toDisplayString"])(e.translate("Marketplace_Screenshots")),1),Object(i["createElementVNode"])("div",wt,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.pluginScreenshots,e=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("figure",{key:"screenshot-"+e},[Object(i["createElementVNode"])("img",{src:e+"?w=800",width:"800",alt:""},null,8,Ct),Object(i["createElementVNode"])("figcaption",null,Object(i["toDisplayString"])(this.getScreenshotBaseName(e)),1)]))),128))])])):Object(i["createCommentVNode"])("",!0),e.pluginDocumentation?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Pt,[Dt,Object(i["createElementVNode"])("h3",null,Object(i["toDisplayString"])(e.translate("General_Documentation")),1),Object(i["createElementVNode"])("div",{innerHTML:e.$sanitize(e.pluginDocumentation)},null,8,At)])):Object(i["createCommentVNode"])("",!0),e.pluginFaq?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Lt,[_t,Object(i["createElementVNode"])("h3",null,Object(i["toDisplayString"])(e.translate("General_Faq")),1),Object(i["createElementVNode"])("div",{innerHTML:e.$sanitize(e.pluginFaq)},null,8,Ut)])):Object(i["createCommentVNode"])("",!0),e.showReviews?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",qt,[xt,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: ${e.pluginReviews.height}px;`:""),id:e.pluginReviews.embedUrl.replace(/[\W_]+/g," "),src:e.pluginReviews.embedUrl},null,12,Ft)])):Object(i["createCommentVNode"])("",!0)],2),Object(i["createElementVNode"])("div",{class:Object(i["normalizeClass"])(["modal-content__footer",{"modal-content__footer--with-free-trial":e.showFreeTrialDropdown}])},[e.showFreeTrialDropdown&&e.isMatomoPlugin?(Object(i["openBlock"])(),Object(i["createElementBlock"])("img",Rt)):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("div",$t,[e.showFreeTrialDropdown?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",It,[Object(i["createElementVNode"])("div",Ht,Object(i["toDisplayString"])(e.translate("Marketplace_TryFreeTrialTitle")),1),Object(i["withDirectives"])(Object(i["createElementVNode"])("select",{class:"free-trial-dropdown",title:`${e.translate("Marketplace_ShownPriceIsExclTax")} ${e.translate("Marketplace_CurrentNumPiwikUsers",e.numUsers)}`,"onUpdate:modelValue":t[1]||(t[1]=t=>e.selectedPluginShopVariationUrl=t),onChange:t[2]||(t[2]=(...t)=>e.changeSelectedPluginShopVariationUrl&&e.changeSelectedPluginShopVariationUrl(...t))},[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.plugin.shop.variations,(t,n)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("option",{key:"var-"+n,value:t.addToCartUrl,title:`${e.translate("Marketplace_PriceExclTax",t.price,t.currency)} ${e.translate("Marketplace_CurrentNumPiwikUsers",e.numUsers)}`},Object(i["toDisplayString"])(t.name)+" - "+Object(i["toDisplayString"])(t.prettyPrice)+" / "+Object(i["toDisplayString"])(t.period),9,zt))),128))],40,Kt),[[i["vModelSelect"],e.selectedPluginShopVariationUrl]])])):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(b,{"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,"shop-variation-url":e.selectedShopVariationUrl,onRequestTrial:t[3]||(t[3]=t=>e.emitTrialEvent("requestTrial")),onStartFreeTrial:t[4]||(t[4]=t=>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","shop-variation-url"])]),!e.showFreeTrialDropdown&&e.isMatomoPlugin?(Object(i["openBlock"])(),Object(i["createElementBlock"])("img",Gt)):Object(i["createCommentVNode"])("",!0)],2)],2))],512)}function Wt(e,t,n,l,a,r){return Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.plugin.missingRequirements||[],(t,n)=>(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 Jt=Object(i["defineComponent"])({props:{plugin:{type:Object,required:!0}},methods:{requirement(e){return"php"===e?"PHP":`${e[0].toUpperCase()}${e.substr(1)}`}}});Jt.render=Wt;var Yt=Jt;const{$:Zt}=window;var Xt=Object(i["defineComponent"])({components:{MissingReqsNotice:Yt,CTAContainer:pe},props:{modelValue:{type:Object,default:()=>({})},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},numUsers:{type:Number,required:!0}},data(){return{isLoading:!0,currentPluginShopVariationUrl:""}},emits:["requestTrial","startFreeTrial","update:modelValue"],watch:{modelValue(e){e&&this.showPluginDetailsDialog()},isLoading(e){!1===e&&(this.applyExternalTarget(),this.applyIframeResize())}},computed:{plugin(){return this.modelValue},pluginLatestVersion(){const e=this.plugin.versions||[{}];return e[e.length-1]},pluginReadmeHtml(){var e;return(null===(e=this.pluginLatestVersion)||void 0===e?void 0:e.readmeHtml)||{}},pluginDescription(){var e;return(null===(e=this.pluginReadmeHtml)||void 0===e?void 0:e.description)||""},pluginDocumentation(){var e;return(null===(e=this.pluginReadmeHtml)||void 0===e?void 0:e.documentation)||""},pluginFaq(){var e;return(null===(e=this.pluginReadmeHtml)||void 0===e?void 0:e.faq)||""},pluginShop(){return this.plugin.shop},pluginShopVariations(){var e;return(null===(e=this.pluginShop)||void 0===e?void 0:e.variations)||[]},pluginReviews(){var e;return(null===(e=this.pluginShop)||void 0===e?void 0:e.reviews)||{}},pluginKeywords(){var e;return(null===(e=this.plugin)||void 0===e?void 0:e.keywords)||[]},pluginAuthors(){const e=this.plugin.authors||[];return e.filter(e=>e.name)},pluginActivity(){return this.plugin.activity||{}},pluginChangelogUrl(){return this.plugin.changelog.url||""},pluginSupport(){return this.plugin.support||[]},isMatomoPlugin(){return["piwik","matomo-org"].includes(this.plugin.owner)},pluginOwner(){return this.isMatomoPlugin?"Matomo":this.plugin.owner},showReviews(){return this.pluginReviews&&this.pluginReviews.embedUrl&&this.pluginReviews.averageRating},showMissingLicenseDescription(){return this.hasSomeAdminAccess&&this.plugin.isMissingLicense},showExceededLicenseDescription(){return this.hasSomeAdminAccess&&this.plugin.hasExceededLicense},showMissingRequirementsNoticeIfApplicable(){return this.isSuperUser&&(this.plugin.isDownloadable||this.plugin.isInstalled)},showLicenseName(){var e;const t=(null===(e=this.pluginLatestVersion)||void 0===e?void 0:e.license)||{};return!!t.name},showFreeTrialDropdown(){return this.isSuperUser&&!this.plugin.isMissingLicense&&!this.plugin.isInstalled&&!this.plugin.hasExceededLicense&&this.plugin.isEligibleForFreeTrial},pluginScreenshots(){return this.plugin.screenshots||[]},hasHeaderMetadata(){return this.showReviews||!this.plugin.isBundle||(this.plugin.numDownloads||0)>0||this.plugin.lastUpdated&&!this.plugin.isBundle},pluginShopVariationsPretty(){return this.pluginShopVariations.map(e=>`${e.name} - ${e.prettyPrice} / ${e.period}`)},pluginShopRecommendedVariation(){const e=this.pluginShopVariations.filter(e=>e.recommended),t=this.pluginShopVariations.length?this.pluginShopVariations[0]:null;return e.length?e[0]:t},selectedPluginShopVariationUrl(){var e;return this.currentPluginShopVariationUrl?this.currentPluginShopVariationUrl:(null===(e=this.pluginShopRecommendedVariation)||void 0===e?void 0:e.addToCartUrl)||""},selectedShopVariationUrl(){return this.selectedPluginShopVariationUrl||""}},methods:{changeSelectedPluginShopVariationUrl(e){e&&(this.currentPluginShopVariationUrl=e.target.value)},applyExternalTarget(){setTimeout(()=>{const e=this.$refs.root;Zt(".modal-content__main a",e).each((e,t)=>{const n=Zt(t).attr("href");n&&0===n.indexOf("http")&&Zt(t).attr("target","_blank")})})},scrollElementIntoView(e){setTimeout(()=>{const t=this.$refs.root,n=Zt(e,t);n.length&&n[0]&&n[0].scrollIntoView&&n[0].scrollIntoView({block:"nearest",behavior:"smooth"})})},isValidEmail(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(e){try{const t=new URL(e);return"http:"===t.protocol||"https:"===t.protocol}catch(t){return!1}},getProtocolAndDomain(e){const t=new URL(e);return`${t.protocol}//${t.hostname}`},applyIframeResize(){setTimeout(()=>{const{iFrameResize:e}=window;this.pluginReviews&&Zt(()=>{const t=Zt("#pluginDetailsModal iframe.reviewIframe");for(let n=0;n{this.$emit(e,t)},250)},showPluginDetailsDialog(){Zt("#pluginDetailsModal").modal({dismissible:!0,onCloseEnd:()=>{m["MatomoUrl"].updateHash(Object.assign(Object.assign({},m["MatomoUrl"].hashParsed.value),{},{showPlugin:null})),this.$emit("update:modelValue",null),this.isLoading=!0}}).modal("open"),setTimeout(()=>{this.isLoading=!1},10)},getPendingLicenseHelpText(e){return Object(m["translate"])("Marketplace_PluginLicenseStatusPending",e,Object(m["externalLink"])("https://shop.matomo.org/my-account/"),"")},getCancelledLicenseHelpText(e){return Object(m["translate"])("Marketplace_PluginLicenseStatusCancelled",e,Object(m["externalLink"])("https://shop.matomo.org/my-account/"),"")},getDownloadLinkMissingHelpText(e){return Object(m["translate"])("Marketplace_PluginDownloadLinkMissingDescription",e,Object(m["externalLink"])("https://matomo.org/faq/plugins/faq_21/"),"")}}});Xt.render=Qt;var en=Xt;const{$:tn}=window;var nn=Object(i["defineComponent"])({props:{currentUserEmail:String,pluginsToShow:{type:Array,required:!0},isAutoUpdatePossible:{type:Boolean,required:!0},isSuperUser:{type:Boolean,required:!0},isValidConsumer:{type:Boolean,required:!0},isMultiServerEnvironment:{type:Boolean,required:!0},isPluginsAdminEnabled:{type:Boolean,required:!0},hasSomeAdminAccess:{type:Boolean,required:!0},activateNonce:{type:String,required:!0},deactivateNonce:{type:String,required:!0},installNonce:{type:String,required:!0},updateNonce:{type:String,required:!0},numUsers:{type:Number,required:!0}},data(){return{showRequestTrialForPlugin:null,showStartFreeTrialForPlugin:null,showPluginDetailsForPlugin:null}},components:{PluginDetailsModal:en,CTAContainer:pe,RequestTrial:he,StartFreeTrial:Ue},emits:["triggerUpdate","startTrialStart","startTrialStop"],watch:{pluginsToShow(e,t){e&&e!==t&&(this.shrinkDescriptionIfMultilineTitle(),this.parseShowPluginParameter())}},mounted(){tn(window).resize(()=>{this.shrinkDescriptionIfMultilineTitle()}),Object(i["watch"])(()=>m["MatomoUrl"].hashParsed.value.showPlugin,(e,t)=>{e&&e!==t&&this.parseShowPluginParameter()}),this.parseShowPluginParameter()},methods:{parseShowPluginParameter(){const{showPlugin:e,pluginType:t,query:n}=m["MatomoUrl"].hashParsed.value;if(!e)return;const l=this.pluginsToShow.filter(t=>t.name===e);if(1===l.length){const[e]=l;this.openDetailsModal(e),this.scrollPluginCardIntoView(e)}else""===t&&""===n||m["MatomoUrl"].updateHash(Object.assign(Object.assign({},m["MatomoUrl"].hashParsed.value),{},{pluginType:"plugins",query:null}))},shrinkDescriptionIfMultilineTitle(){const e=tn(".marketplace .card-holder");e&&e.length&&e.each((e,t)=>{const n=tn(t),l=n.find(".card-title"),a=n.find(".card-content-bottom .alert"),i=n.hasClass("card-with-downloads");let r=1;if(l.length){const e=+l.height(),t=+l.css("line-height").replace("px","");var o;if(t)r=null!==(o=Math.ceil(e/t))&&void 0!==o?o:1}let c=0;if(a.length){const e=+a.height(),t=+a.css("line-height").replace("px","");var s;if(t)c=null!==(s=Math.ceil(e/t))&&void 0!==s?s:1}const u=n.find(".card-description");if(u.length){const e=u[0];let t=0;i?((r>=2||c>2||r+c>=4)&&(t=2),r+c>=5&&(t=1)):r+c>=5&&(t=2),t?e.setAttribute("data-clamp",""+t):e.removeAttribute("data-clamp")}})},clickCard(e,t){tn(e.target).closest("a:not(.card-title-link)").length||(e.stopPropagation(),this.openDetailsModal(t))},openDetailsModal(e){this.showPluginDetailsForPlugin=e},scrollPluginCardIntoView(e){const t=tn(`.pluginListContainer .card-title:contains("${e.displayName}")`);if(1!==t.length)return;const n=t.parents(".card");1===n.length&&n[0].scrollIntoView&&n[0].scrollIntoView({block:"start",behavior:"smooth"})},requestTrial(e){this.showRequestTrialForPlugin=e},startFreeTrial(e){this.showStartFreeTrialForPlugin=e}}});nn.render=_;var ln=nn;const an=e=>`${e[0].toLowerCase()}${e.substring(1)}`;var rn=Object(i["defineComponent"])({props:{pluginTypeOptions:{type:Object,required:!0},defaultSort:{type:String,required:!0},pluginSortOptions:{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},numUsers:{type:Number,required:!0}},components:{ContentBlock:m["ContentBlock"],Field:b["Field"],MatomoLoader:m["MatomoLoader"],PluginList:ln},data(){return{loading:!1,fetchRequest:null,fetchRequestAbortController:null,pluginSort:this.defaultSort,pluginTypeFilter:"plugins",searchQuery:"",pluginsToShow:[]}},emits:["triggerUpdate","startTrialStart","startTrialStop"],mounted(){m["Matomo"].postEvent("Marketplace.Marketplace.mounted",{element:this.$refs.root}),Object(i["watch"])(()=>m["MatomoUrl"].hashParsed.value,()=>{this.updateValuesFromHash(!1)}),this.updateValuesFromHash(!0)},unmounted(){m["Matomo"].postEvent("Marketplace.Marketplace.unmounted",{element:this.$refs.root})},methods:{updateValuesFromHash(e){let t=e;const n=m["MatomoUrl"].hashParsed.value.query||"",l=m["MatomoUrl"].hashParsed.value.sort||"",a=m["MatomoUrl"].hashParsed.value.pluginType||"";(n||this.searchQuery)&&(t=t||n!==this.searchQuery,this.searchQuery=n),l&&(t=t||l!==this.pluginSort,this.pluginSort=l),a&&(t=t||a!==this.pluginTypeFilter,this.pluginTypeFilter=a),t&&this.fetchPlugins()},updateQuery(e){m["MatomoUrl"].updateHash(Object.assign(Object.assign({},m["MatomoUrl"].hashParsed.value),{},{query:e}))},updateType(e){m["MatomoUrl"].updateHash(Object.assign(Object.assign({},m["MatomoUrl"].hashParsed.value),{},{pluginType:e}))},updateSort(e){m["MatomoUrl"].updateHash(Object.assign(Object.assign({},m["MatomoUrl"].hashParsed.value),{},{sort:e}))},updateMarketplace(){this.fetchPlugins(()=>this.$emit("triggerUpdate"))},fetchPlugins(e){this.loading=!0,this.pluginsToShow=[],this.fetchRequestAbortController&&(this.fetchRequestAbortController.abort(),this.fetchRequestAbortController=null),this.fetchRequestAbortController=new AbortController,this.fetchRequest=m["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(t=>{this.pluginsToShow=t,"function"===typeof e&&e()}).finally(()=>{this.loading=!1,this.fetchRequestAbortController=null})}},computed:{queryInputTitle(){const e=an(Object(m["translate"])("General_Plugins"));return`${Object(m["translate"])("General_Search")} ${e}...`},loadingMessage(){return Object(m["translate"])("Mobile_LoadingReport",Object(m["translate"])(this.showThemes?"CorePluginsAdmin_Themes":"General_Plugins"))},showThemes(){return"themes"===this.pluginTypeFilter}}});rn.render=p;var on=rn;const cn=["innerHTML"],sn={class:"manage-license-key-input"},un={class:"ui-confirm",id:"confirmRemoveLicense",ref:"confirmRemoveLicense"},dn=["value"],pn=["value"];function mn(e,t,n,l,a,r){const o=Object(i["resolveComponent"])("InstallAllPaidPluginsButton"),c=Object(i["resolveComponent"])("Field"),s=Object(i["resolveComponent"])("SaveButton"),u=Object(i["resolveComponent"])("ActivityIndicator"),d=Object(i["resolveComponent"])("ContentBlock");return Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],null,[Object(i["createVNode"])(d,{"content-title":e.translate("Marketplace_LicenseKey"),class:"manage-license-key"},{default:Object(i["withCtx"])(()=>[Object(i["createElementVNode"])("div",{class:"manage-license-key-intro",innerHTML:e.$sanitize(e.manageLicenseKeyIntro)},null,8,cn),Object(i["createVNode"])(o,{disabled:e.isUpdating},null,8,["disabled"]),Object(i["createElementVNode"])("div",sn,[Object(i["createVNode"])(c,{uicontrol:"text",name:"license_key",modelValue:e.licenseKey,"onUpdate:modelValue":t[0]||(t[0]=t=>e.licenseKey=t),placeholder:e.licenseKeyPlaceholder,"full-width":!0},null,8,["modelValue","placeholder"])]),Object(i["createVNode"])(s,{onConfirm:t[1]||(t[1]=t=>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"])(s,{key:0,id:"remove_license_key",onConfirm:t[2]||(t[2]=t=>e.removeLicense()),disabled:e.isUpdating,value:e.translate("General_Remove")},null,8,["disabled","value"])):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(u,{loading:e.isUpdating},null,8,["loading"])]),_:1},8,["content-title"]),Object(i["createElementVNode"])("div",un,[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,dn),Object(i["createElementVNode"])("input",{role:"no",type:"button",value:e.translate("General_No")},null,8,pn)],512)],64)}var bn=Object(i["defineComponent"])({props:{hasValidLicenseKey:Boolean},components:{Field:b["Field"],ContentBlock:m["ContentBlock"],SaveButton:b["SaveButton"],ActivityIndicator:m["ActivityIndicator"],InstallAllPaidPluginsButton:b["InstallAllPaidPluginsButton"]},data(){return{licenseKey:"",hasValidLicense:this.hasValidLicenseKey,isUpdating:!1}},methods:{updateLicenseKey(e,t,n){m["NotificationsStore"].remove("ManageLicenseKeySuccess"),m["AjaxHelper"].post({module:"API",method:"Marketplace."+e,format:"JSON"},{licenseKey:this.licenseKey},{withTokenInUrl:!0}).then(t=>{this.isUpdating=!1,t&&t.value&&(m["NotificationsStore"].show({id:"ManageLicenseKeySuccess",message:n,context:"success",type:"toast"}),this.hasValidLicense="deleteLicenseKey"!==e,this.licenseKey="")},()=>{this.isUpdating=!1})},removeLicense(){m["Matomo"].helper.modalConfirm(this.$refs.confirmRemoveLicense,{yes:()=>{this.isUpdating=!0,this.updateLicenseKey("deleteLicenseKey","",Object(m["translate"])("Marketplace_LicenseKeyDeletedSuccess"))}})},updateLicense(){this.isUpdating=!0,this.updateLicenseKey("saveLicenseKey",this.licenseKey,Object(m["translate"])("Marketplace_LicenseKeyActivatedSuccess"))}},computed:{manageLicenseKeyIntro(){const e="?"+m["MatomoUrl"].stringify(Object.assign(Object.assign({},m["MatomoUrl"].urlParsed.value),{},{module:"Marketplace",action:"overview"}));return Object(m["translate"])("Marketplace_ManageLicenseKeyIntro",``,"",Object(m["externalLink"])("https://shop.matomo.org/my-account"),"")},licenseKeyPlaceholder(){return this.hasValidLicense?Object(m["translate"])("Marketplace_LicenseKeyIsValidShort"):Object(m["translate"])("Marketplace_LicenseKey")},saveButtonText(){return this.hasValidLicense?Object(m["translate"])("CoreUpdater_UpdateTitle"):Object(m["translate"])("Marketplace_ActivateLicenseKey")}}});bn.render=mn;var gn=bn;const On={class:"getNewPlugins"},jn={class:"row"},hn={class:"pluginName"},kn=Object(i["createElementVNode"])("br",null,null,-1),vn={key:0},yn=Object(i["createElementVNode"])("br",null,null,-1),Nn=Object(i["createElementVNode"])("br",null,null,-1),Vn=[yn,Nn],Sn={class:"widgetBody"},En=["href"];function Bn(e,t,n,l,a,r){const o=Object(i["resolveDirective"])("plugin-name");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",On,[Object(i["createElementVNode"])("div",jn,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.plugins,(t,n)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:"col s12",key:t.name},[Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("h3",hn,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(t.displayName),1)])),[[o,{pluginName:t.name}]]),Object(i["createElementVNode"])("span",null,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(t.description)+" ",1),kn,Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("a",null,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("General_MoreDetails")),1)])),[[o,{pluginName:t.name}]])]),n{var t;return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:"col s12 m4",key:e.name},[Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("h3",{class:"pluginName",title:e.description},[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.displayName),1)],8,Cn)),[[o,{pluginName:e.name}]]),Object(i["createElementVNode"])("p",{class:"description",title:e.description},Object(i["toDisplayString"])(e.description),9,Pn),null!==(t=e.screenshots)&&void 0!==t&&t.length?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Dn,[An,Object(i["withDirectives"])(Object(i["createElementVNode"])("img",{class:"screenshot",src:e.screenshots[0]+"?w=600",style:{width:"100%"},alt:""},null,8,Ln),[[o,{pluginName:e.name}]])])):Object(i["createCommentVNode"])("",!0)])}),128))]),Object(i["createElementVNode"])("div",_n,[Object(i["createElementVNode"])("a",{href:e.marketplaceOverviewLink},Object(i["toDisplayString"])(e.translate("CorePluginsAdmin_ViewAllMarketplacePlugins")),9,Un)])],512)}var xn=Object(i["defineComponent"])({props:{plugins:{type:Array,required:!0}},directives:{PluginName:b["PluginName"]},computed:{marketplaceOverviewLink(){return"?"+m["MatomoUrl"].stringify({module:"Marketplace",action:"overview"})}}});xn.render=qn;var Fn=xn;const Rn={class:"getNewPlugins getPremiumFeatures widgetBody"},$n={key:0,class:"col s12 m12"},In=["innerHTML"],Hn={style:{"margin-bottom":"28px",color:"#5bb75b"}},Kn=Object(i["createElementVNode"])("i",{class:"icon-heart red-text"},null,-1),zn={class:"pluginName"},Gn={key:0,class:"pluginSubtitle"},Qn={class:"pluginBody"},Wn=Object(i["createElementVNode"])("br",null,null,-1),Jn={class:"pluginMoreDetails"},Yn={class:"widgetBody"},Zn=["href"];function Xn(e,t,n,l,a,r){const o=Object(i["resolveDirective"])("plugin-name");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Rn,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.pluginRows,(t,n)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:"row",key:n},[0===n?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",$n,[Object(i["createElementVNode"])("h3",{style:{"font-weight":"bold",color:"#5bb75b"},innerHTML:e.$sanitize(e.trialHintsText)},null,8,In),Object(i["createElementVNode"])("h3",Hn,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("Marketplace_SupportMatomoThankYou"))+" ",1),Kn])])):Object(i["createCommentVNode"])("",!0),(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(t,t=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:"col s12 m4",key:t.name},[Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("h3",zn,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(t.displayName),1)])),[[o,{pluginName:t.name}]]),t.specialOffer?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Gn,[Object(i["createElementVNode"])("span",null,Object(i["toDisplayString"])(e.translate("Marketplace_SpecialOffer"))+":",1),Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(t.specialOffer),1)])):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("span",Qn,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(t.isBundle?e.translate("Marketplace_SpecialOffer")+": ":"")+Object(i["toDisplayString"])(t.description)+" ",1),Wn,Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("a",Jn,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("General_MoreDetails")),1)])),[[o,{pluginName:t.name}]])])]))),128))]))),128)),Object(i["createElementVNode"])("div",Yn,[Object(i["createElementVNode"])("a",{href:e.overviewLink},Object(i["toDisplayString"])(e.translate("CorePluginsAdmin_ViewAllMarketplacePlugins")),9,Zn)])])}var el=Object(i["defineComponent"])({props:{plugins:{type:Array,required:!0}},directives:{PluginName:b["PluginName"]},computed:{trialHintsText(){const e=Object(m["externalRawLink"])("https://shop.matomo.org/free-trial/"),t="color:#5bb75b;text-decoration: underline;";return Object(m["translate"])("Marketplace_TrialHints",``,"")},pluginRows(){const e=[];return this.plugins.forEach((t,n)=>{const l=Math.floor(n/3);e[l]=e[l]||[],e[l].push(t)}),e},overviewLink(){const e=m["MatomoUrl"].stringify({module:"Marketplace",action:"overview"}),t=m["MatomoUrl"].stringify({pluginType:"premium"});return`?${e}#?${t}`}}});el.render=Xn;var tl=el;const nl={class:"marketplaceIntro"},ll={key:0},al={key:1},il={key:0,class:"installAllPaidPlugins"};function rl(e,t,n,l,a,r){const o=Object(i["resolveComponent"])("EnrichedHeadline"),c=Object(i["resolveComponent"])("InstallAllPaidPluginsButton"),s=Object(i["resolveComponent"])("Marketplace"),u=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"])(()=>[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("Marketplace_Marketplace")),1)]),_:1},8,["feature-name"])]),Object(i["createElementVNode"])("div",nl,[e.isSuperUser?(Object(i["openBlock"])(),Object(i["createElementBlock"])("p",al,Object(i["toDisplayString"])(e.translate("Marketplace_IntroSuperUser")),1)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("p",ll,Object(i["toDisplayString"])(e.translate("Marketplace_Intro")),1))]),e.installAllPaidPluginsVisible?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",il,[Object(i["createVNode"])(c,{disabled:e.installDisabled},null,8,["disabled"])])):Object(i["createCommentVNode"])("",!0),Object(i["createVNode"])(s,{"plugin-type-options":e.pluginTypeOptions,"default-sort":e.defaultSort,"plugin-sort-options":e.pluginSortOptions,"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.getIsValidConsumer,"deactivate-nonce":e.deactivateNonce,"activate-nonce":e.activateNonce,"install-nonce":e.installNonce,"update-nonce":e.updateNonce,"has-some-admin-access":e.hasSomeAdminAccess,"num-users":e.numUsers,onTriggerUpdate:t[0]||(t[0]=e=>this.updateOverviewData()),onStartTrialStart:t[1]||(t[1]=e=>this.disableInstallAllPlugins(!0)),onStartTrialStop:t[2]||(t[2]=e=>this.disableInstallAllPlugins(!1))},null,8,["plugin-type-options","default-sort","plugin-sort-options","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","num-users"])])),[[u]])}var ol=Object(i["defineComponent"])({props:{currentUserEmail:String,inReportingMenu:Boolean,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},isPluginUploadEnabled:Boolean,uploadLimit:[String,Number],pluginTypeOptions:{type:Object,required:!0},defaultSort:{type:String,required:!0},pluginSortOptions:{type:Object,required:!0},numUsers:{type:Number,required:!0}},components:{InstallAllPaidPluginsButton:b["InstallAllPaidPluginsButton"],EnrichedHeadline:m["EnrichedHeadline"],Marketplace:on},directives:{ContentIntro:m["ContentIntro"]},data(){return{updating:!1,fetchRequest:null,fetchRequestAbortController:null,updateData:null,installDisabled:!1,installLoading:!1}},computed:{getIsValidConsumer(){return this.updateData&&"undefined"!==typeof this.updateData.isValidConsumer?this.updateData.isValidConsumer:this.isValidConsumer},installAllPaidPluginsVisible(){return this.getIsValidConsumer&&this.isSuperUser&&this.isAutoUpdatePossible&&this.isPluginsAdminEnabled||this.installDisabled&&this.installLoading},showThemes(){return"themes"===m["MatomoUrl"].hashParsed.value.pluginType}},methods:{disableInstallAllPlugins(e){this.installDisabled=!0,this.installLoading=e},enableInstallAllPlugins(){this.installDisabled=!1,this.installLoading=!1},updateOverviewData(){this.updating=!0,this.isSuperUser&&this.disableInstallAllPlugins(!0),this.fetchRequestAbortController&&(this.fetchRequestAbortController.abort(),this.fetchRequestAbortController=null),this.fetchRequestAbortController=new AbortController,this.fetchRequest=m["AjaxHelper"].post({module:"Marketplace",action:"updateOverview",format:"JSON"},{},{withTokenInUrl:!0,abortController:this.fetchRequestAbortController}).then(e=>{this.updateData=e}).finally(()=>{this.updating=!1,this.fetchRequestAbortController=null,this.enableInstallAllPlugins()})}}});ol.render=rl;var cl=ol;const sl={key:0},ul=["href"],dl=Object(i["createElementVNode"])("br",null,null,-1),pl=Object(i["createElementVNode"])("br",null,null,-1),ml=["innerHTML"],bl=Object(i["createElementVNode"])("br",null,null,-1),gl={class:"subscriptionName"},Ol=["href"],jl={key:1},hl={class:"subscriptionType"},kl=["title"],vl={key:0,class:"icon-error"},yl={key:1,class:"icon-warning"},Nl={key:2,class:"icon-error"},Vl={key:3,class:"icon-ok"},Sl=["title"],El=Object(i["createElementVNode"])("span",{class:"icon-error"},null,-1),Bl={key:0},Ml={colspan:"6"},fl={class:"tableActionBar"},Tl=["href"],wl=Object(i["createElementVNode"])("span",{class:"icon-table"},null,-1),Cl={key:1},Pl=["innerHTML"];function Dl(e,t,n,l,a,r){const 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"])(()=>[e.hasLicenseKey?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",sl,[Object(i["createElementVNode"])("p",null,[Object(i["createTextVNode"])(Object(i["toDisplayString"])(e.translate("Marketplace_PluginSubscriptionsList"))+" ",1),e.loginUrl?(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:0,target:"_blank",rel:"noreferrer noopener",href:e.loginUrl},Object(i["toDisplayString"])(e.translate("Marketplace_OverviewPluginSubscriptionsAllDetails")),9,ul)):Object(i["createCommentVNode"])("",!0),dl,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("Marketplace_OverviewPluginSubscriptionsMissingInfo"))+" ",1),pl,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("Marketplace_NoValidSubscriptionNoUpdates"))+" ",1),Object(i["createElementVNode"])("span",{innerHTML:e.$sanitize(e.translate("Marketplace_CurrentNumPiwikUsers",`${e.numUsers}`))},null,8,ml)]),bl,Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("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||[],(t,n)=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("tr",{key:n},[Object(i["createElementVNode"])("td",gl,[t.plugin.htmlUrl?(Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{key:0,href:t.plugin.htmlUrl,rel:"noreferrer noopener",target:"_blank"},Object(i["toDisplayString"])(t.plugin.displayName),9,Ol)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",jl,Object(i["toDisplayString"])(t.plugin.displayName),1))]),Object(i["createElementVNode"])("td",hl,Object(i["toDisplayString"])(t.productType),1),Object(i["createElementVNode"])("td",{class:"subscriptionStatus",title:e.getSubscriptionStatusTitle(t)},[t.isValid?t.isExpiredSoon?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",yl)):""!==t.status&&"Active"!==t.status?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Nl)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",Vl)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",vl)),Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(t.status)+" ",1),t.isExceeded?(Object(i["openBlock"])(),Object(i["createElementBlock"])("span",{key:4,class:"errorMessage",title:e.translate("Marketplace_LicenseExceededPossibleCause")},[El,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("Marketplace_Exceeded")),1)],8,Sl)):Object(i["createCommentVNode"])("",!0)],8,kl),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",Bl,[Object(i["createElementVNode"])("td",Ml,Object(i["toDisplayString"])(e.translate("Marketplace_NoSubscriptionsFound")),1)]))])])),[[c]]),Object(i["createElementVNode"])("div",fl,[Object(i["createElementVNode"])("a",{href:e.marketplaceOverviewLink,class:""},[wl,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("Marketplace_BrowseMarketplace")),1)],8,Tl)])])):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",Cl,[Object(i["createElementVNode"])("p",{innerHTML:e.$sanitize(e.missingLicenseText)},null,8,Pl)]))]),_:1},8,["content-title"])}var Al=Object(i["defineComponent"])({props:{loginUrl:{type:String,required:!0},numUsers:{type:Number,required:!0},hasLicenseKey:Boolean,subscriptions:{type:Array,required:!0}},components:{ContentBlock:m["ContentBlock"]},directives:{ContentTable:m["ContentTable"]},methods:{getSubscriptionStatusTitle(e){return e.isValid?e.isExpiredSoon?Object(m["translate"])("Marketplace_SubscriptionExpiresSoon"):void 0:Object(m["translate"])("Marketplace_SubscriptionInvalid")}},computed:{marketplaceOverviewLink(){return"?"+m["MatomoUrl"].stringify({module:"Marketplace",action:"overview"})},licenseKeyLink(){return"?"+m["MatomoUrl"].stringify({module:"Marketplace",action:"manageLicenseKey"})},missingLicenseText(){return Object(m["translate"])("Marketplace_OverviewPluginSubscriptionsMissingLicenseMessage",``,"",``,"")}}});Al.render=Dl;var Ll=Al;const _l={class:"richMarketplaceMenuButton"},Ul=Object(i["createElementVNode"])("hr",null,null,-1),ql={class:"intro"},xl={class:"cta"},Fl=Object(i["createElementVNode"])("span",{class:"icon-marketplace"}," ",-1);function Rl(e,t,n,l,a,r){return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",_l,[Ul,Object(i["createElementVNode"])("p",ql,Object(i["toDisplayString"])(e.translate("Marketplace_RichMenuIntro")),1),Object(i["createElementVNode"])("p",xl,[Object(i["createElementVNode"])("a",{class:"btn btn-outline",tabindex:"5",href:"",onClick:t[0]||(t[0]=Object(i["withModifiers"])(t=>e.$emit("action"),["prevent"])),onKeyup:t[1]||(t[1]=Object(i["withKeys"])(t=>e.$emit("action"),["enter"]))},[Fl,Object(i["createTextVNode"])(" "+Object(i["toDisplayString"])(e.translate("Marketplace_Marketplace")),1)],32)])])}var $l=Object(i["defineComponent"])({});$l.render=Rl;var Il=$l; /*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */}})})); //# sourceMappingURL=Marketplace.umd.min.js.map