Ubuntu
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("CoreHome"),require("vue")):"function"===typeof define&&define.amd?define(["CoreHome"],t):"object"===typeof exports?exports["Live"]=t(require("CoreHome"),require("vue")):e["Live"]=t(e["CoreHome"],e["Vue"])})("undefined"!==typeof self?self:this,(function(e,t){return function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="plugins/Live/vue/dist/",o(o.s="fae3")}({"19dc":function(t,o){t.exports=e},"8bbf":function(e,o){e.exports=t},fae3:function(e,t,o){"use strict";if(o.r(t),o.d(t,"LiveWidgetRefresh",(function(){return a})),o.d(t,"TotalVisitors",(function(){return L})),o.d(t,"LivePage",(function(){return I})),o.d(t,"IndexHeader",(function(){return U})),o.d(t,"LastVisits",(function(){return G})),"undefined"!==typeof window){var r=window.document.currentScript,n=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);n&&(o.p=n[1])}var i=o("19dc");
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
const{$:l}=window;var a={mounted(e,t){setTimeout(()=>{const o=i["MatomoUrl"].parsed.value.segment;l(e).find("#visitsLive").liveWidget({interval:t.value.liveRefreshAfterMs,onUpdate:()=>{i["AjaxHelper"].fetch({module:"Live",action:"ajaxTotalVisitors",segment:o},{format:"html"}).then(t=>{i["Matomo"].helper.destroyVueComponent(e),l(e).find("#visitsTotal").replaceWith(t),i["Matomo"].helper.compileVueEntryComponents(e)})},maxRows:10,fadeInSpeed:600,dataUrlParams:{module:"Live",action:"getLastVisitsStart",segment:o}})})}},c=o("8bbf");const s={class:"dataTable",cellspacing:"0"},u={id:"label",class:"sortable label first",style:{cursor:"auto"}},d={class:"thDIV"},b=["title"],m={class:"thDIV"},f=["title"],p={class:"thDIV"},v={class:""},j={class:"label column"},O=["title"],g=["title"],y={class:""},V={class:"label column"},h=["title"],E=["title"];function N(e,t,o,r,n,i){return Object(c["openBlock"])(),Object(c["createElementBlock"])("div",null,[Object(c["createElementVNode"])("table",s,[Object(c["createElementVNode"])("thead",null,[Object(c["createElementVNode"])("tr",null,[Object(c["createElementVNode"])("th",u,[Object(c["createElementVNode"])("div",d,Object(c["toDisplayString"])(e.translate("General_Date")),1)]),Object(c["createElementVNode"])("th",{class:"sortable",style:{cursor:"auto"},title:e.translate("General_ColumnNbVisitsDocumentation")},[Object(c["createElementVNode"])("div",m,Object(c["toDisplayString"])(e.translate("General_ColumnNbVisits")),1)],8,b),Object(c["createElementVNode"])("th",{class:"sortable",style:{cursor:"auto"},title:e.translate("General_ColumnNbActionsDocumentation")},[Object(c["createElementVNode"])("div",p,Object(c["toDisplayString"])(e.translate("General_Actions")),1)],8,f)])]),Object(c["createElementVNode"])("tbody",null,[Object(c["createElementVNode"])("tr",v,[Object(c["createElementVNode"])("td",j,Object(c["toDisplayString"])(e.translate("Live_LastHours",24)),1),Object(c["createElementVNode"])("td",{class:"column",title:e.countErrorToday},Object(c["toDisplayString"])(e.visitorsCountToday||0),9,O),Object(c["createElementVNode"])("td",{class:"column",title:e.countErrorToday},Object(c["toDisplayString"])(e.pisToday||0),9,g)]),Object(c["createElementVNode"])("tr",y,[Object(c["createElementVNode"])("td",V,Object(c["toDisplayString"])(e.translate("Live_LastMinutes",30)),1),Object(c["createElementVNode"])("td",{class:"column",title:e.countErrorHalfHour},Object(c["toDisplayString"])(e.visitorsCountHalfHour||0),9,h),Object(c["createElementVNode"])("td",{class:"column",title:e.countErrorHalfHour},Object(c["toDisplayString"])(e.pisHalfhour||0),9,E)])])])])}var C=Object(c["defineComponent"])({props:{countErrorToday:Number,visitorsCountToday:Number,pisToday:Number,countErrorHalfHour:Number,visitorsCountHalfHour:Number,pisHalfhour:Number}});C.render=N;var L=C;const k={class:"visitsLiveFooter"},w=["title"],_=Object(c["createElementVNode"])("img",{id:"pauseImage",border:"0",src:"plugins/Live/images/pause.png",role:"presentation"},null,-1),D=[_],S=["title"],H=Object(c["createElementVNode"])("img",{id:"playImage",style:{display:"none"},border:"0",src:"plugins/Live/images/play.png",role:"presentation"},null,-1),T=[H],P={key:0},x=["href"];function B(e,t,o,r,n,i){const l=Object(c["resolveComponent"])("VueEntryContainer"),a=Object(c["resolveDirective"])("live-widget-refresh");return Object(c["openBlock"])(),Object(c["createElementBlock"])("div",null,[(Object(c["openBlock"])(),Object(c["createBlock"])(Object(c["resolveDynamicComponent"])(e.isWidgetized?"Passthrough":"ContentBlock"),{"content-title":e.isWidgetized?void 0:e.translate("Live_VisitorsInRealTime")},{default:Object(c["withCtx"])(()=>[Object(c["withDirectives"])((Object(c["openBlock"])(),Object(c["createElementBlock"])("div",null,[Object(c["createVNode"])(l,{html:e.initialTotalVisitors},null,8,["html"]),Object(c["createVNode"])(l,{html:e.visitors},null,8,["html"])])),[[a,{liveRefreshAfterMs:e.liveRefreshAfterMs}]]),Object(c["createElementVNode"])("div",k,[Object(c["createElementVNode"])("a",{title:e.translate("Live_OnClickPause",e.translate("Live_VisitorsInRealTime")),onClick:t[0]||(t[0]=Object(c["withModifiers"])(t=>e.onClickPause(),["prevent"]))},D,8,w),Object(c["createElementVNode"])("a",{title:e.translate("Live_OnClickStart",e.translate("Live_VisitorsInRealTime")),onClick:t[1]||(t[1]=t=>{e.onClickPlay()})},T,8,S),e.disableLink?Object(c["createCommentVNode"])("",!0):(Object(c["openBlock"])(),Object(c["createElementBlock"])("span",P,[Object(c["createTextVNode"])(" "),Object(c["createElementVNode"])("a",{class:"rightLink",href:e.visitorLogUrl},Object(c["toDisplayString"])(e.translate("Live_LinkVisitorLog")),9,x)]))])]),_:1},8,["content-title"]))])}var M=Object(c["defineComponent"])({props:{disableLink:Boolean,visitors:String,initialTotalVisitors:String,liveRefreshAfterMs:Number,isWidgetized:Boolean},components:{TotalVisitors:L,VueEntryContainer:i["VueEntryContainer"],ContentBlock:i["ContentBlock"],Passthrough:i["Passthrough"]},directives:{LiveWidgetRefresh:a},computed:{visitorLogUrl(){return"#?"+i["MatomoUrl"].stringify(Object.assign(Object.assign({},i["MatomoUrl"].hashParsed.value),{},{category:"General_Visitors",subcategory:"Live_VisitorLog"}))}},methods:{onClickPause(){window.onClickPause()},onClickPlay(){window.onClickPlay()}}});M.render=B;var I=M;function R(e,t,o,r,n,i){const l=Object(c["resolveComponent"])("EnrichedHeadline"),a=Object(c["resolveDirective"])("content-intro");return Object(c["withDirectives"])((Object(c["openBlock"])(),Object(c["createElementBlock"])("div",null,[Object(c["createElementVNode"])("h2",null,[Object(c["createVNode"])(l,null,{default:Object(c["withCtx"])(()=>[Object(c["createTextVNode"])(Object(c["toDisplayString"])(e.translate("Live_VisitorLog")),1)]),_:1})])])),[[a]])}var A=Object(c["defineComponent"])({components:{EnrichedHeadline:i["EnrichedHeadline"]},directives:{ContentIntro:i["ContentIntro"]}});A.render=R;var U=A;
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/const{$:W}=window;var G={mounted(e){W(e).off("click").on("click",".visits-live-launch-visitor-profile",(function(e){return e.preventDefault(),window.broadcast.propagateNewPopoverParameter("visitorProfile",W(this).attr("data-visitor-id")),!1})).tooltip({track:!0,content(){const e=W(this).attr("title")||"";return window.vueSanitize(e.replace(/\n/g,"
"))},show:{delay:100,duration:0},hide:!1})}};
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/}})}));
//# sourceMappingURL=Live.umd.min.js.map