").attr("vue-entry","Widgetize.WidgetPreviewIframe").attr("widget-iframe-html",JSON.stringify(a)).attr("url-iframe",JSON.stringify(o));y(i).append(c),y(t).parent().append(i),g["Matomo"].helper.compileVueEntryComponents(i)}))},getEmbedUrl:function(e,t){var n=Object.assign(Object.assign({},e),{},{moduleToWidgetize:e.module,actionToWidgetize:e.action,module:"Widgetize",action:t,idSite:g["Matomo"].idSite,period:g["Matomo"].period,date:g["MatomoUrl"].urlParsed.value.date,disableLink:1,widget:1}),r=window.location,i=r.protocol,o=r.hostname,a=""===window.location.port?"":":".concat(window.location.port),c=window.location.pathname,l=g["MatomoUrl"].stringify(n);return"".concat(i,"//").concat(o).concat(a).concat(c,"?").concat(l)}}});E.render=v;var N=E,V={class:"widgetize"},S=["innerHTML"],I=["innerHTML"],T=["innerHTML"],x=Object(o["createElementVNode"])("br",null,null,-1),z=["textContent"],M=Object(o["createElementVNode"])("br",null,null,-1),D=["innerHTML"],k=Object(o["createElementVNode"])("br",null,null,-1),C=["textContent"],_=Object(o["createElementVNode"])("br",{class:"clearfix"},null,-1);function H(e,t,n,r,i,a){var c=Object(o["resolveComponent"])("EnrichedHeadline"),l=Object(o["resolveComponent"])("ContentBlock"),d=Object(o["resolveComponent"])("WidgetPreview"),u=Object(o["resolveDirective"])("content-intro"),s=Object(o["resolveDirective"])("select-on-focus");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",V,[Object(o["withDirectives"])(Object(o["createElementVNode"])("div",null,[Object(o["createElementVNode"])("h2",null,[Object(o["createVNode"])(c,null,{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.title),1)]})),_:1})]),Object(o["createElementVNode"])("p",{innerHTML:e.$sanitize(e.intro)},null,8,S)],512),[[u]]),Object(o["createVNode"])(l,{"content-title":"Authentication"},{default:Object(o["withCtx"])((function(){return[Object(o["createElementVNode"])("p",{innerHTML:e.$sanitize(e.viewableAnonymously)},null,8,I)]})),_:1}),Object(o["createVNode"])(l,{"content-title":"Widgetize dashboards"},{default:Object(o["withCtx"])((function(){return[Object(o["createElementVNode"])("div",null,[Object(o["createElementVNode"])("p",null,[Object(o["createElementVNode"])("span",{innerHTML:e.$sanitize(e.displayInIframe)},null,8,T),x]),Object(o["withDirectives"])(Object(o["createElementVNode"])("pre",{textContent:Object(o["toDisplayString"])(e.dashboardCode)},null,8,z),[[s,{}]]),Object(o["createElementVNode"])("p",null,[M,Object(o["createElementVNode"])("span",{innerHTML:e.$sanitize(e.displayInIframeAllSites)},null,8,D),k]),Object(o["withDirectives"])(Object(o["createElementVNode"])("pre",{textContent:Object(o["toDisplayString"])(e.allWebsitesDashboardCode)},null,8,C),[[s,{}]])])]})),_:1}),Object(o["createVNode"])(l,{"content-title":e.translate("Widgetize_Reports")},{default:Object(o["withCtx"])((function(){return[Object(o["createElementVNode"])("div",null,[Object(o["createElementVNode"])("p",null,Object(o["toDisplayString"])(e.translate("Widgetize_SelectAReport")),1),Object(o["createElementVNode"])("div",null,[Object(o["createVNode"])(d)]),_])]})),_:1},8,["content-title"])])}function U(e){var t=e.replace(/"/g,""");return'
'}var L=Object(o["defineComponent"])({props:{title:{type:String,required:!0}},components:{EnrichedHeadline:g["EnrichedHeadline"],ContentBlock:g["ContentBlock"],WidgetPreview:N},directives:{ContentIntro:g["ContentIntro"],SelectOnFocus:g["SelectOnFocus"]},data:function(){var e=""===window.location.port?"":":".concat(window.location.port),t=window.location.pathname,n="".concat(window.location.protocol,"//").concat(window.location.hostname).concat(e).concat(t);return{dashboardUrl:"".concat(n,"?").concat(g["MatomoUrl"].stringify({module:"Widgetize",action:"iframe",moduleToWidgetize:"Dashboard",actionToWidgetize:"index",idSite:g["Matomo"].idSite,period:"week",date:"yesterday"})),allWebsitesDashboardUrl:"".concat(n,"?").concat(g["MatomoUrl"].stringify({module:"Widgetize",action:"iframe",moduleToWidgetize:"MultiSites",actionToWidgetize:"standalone",idSite:g["Matomo"].idSite,period:"week",date:"yesterday"}))}},computed:{dashboardCode:function(){return U(this.dashboardUrl)},allWebsitesDashboardCode:function(){return U(this.allWebsitesDashboardUrl)},intro:function(){return Object(g["translate"])("Widgetize_Intro",'
',"")},viewableAnonymously:function(){return Object(g["translate"])("Widgetize_ViewableAnonymously",'
',"",'
'),"")},displayInIframe:function(){return Object(g["translate"])("Widgetize_DisplayDashboardInIframe",'
'),"")},displayInIframeAllSites:function(){return Object(g["translate"])("Widgetize_DisplayDashboardInIframeAllSites",'
'),"")}},methods:{linkTo:function(e){return"?".concat(g["MatomoUrl"].stringify(Object.assign(Object.assign({},g["MatomoUrl"].urlParsed.value),e)))}}});L.render=H;var P=L;
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/}})}));
//# sourceMappingURL=Widgetize.umd.min.js.map