PageSourceSearch

https://tinyurl.com/js/chunks/dashboard.7fd5a716502e6235.js

js tinyurl.com collected 2026-09-24 05:18:04 UTC 83,068 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktinyurl=self.webpackChunktinyurl||[]).push([[3,190,770,810,945,2204,2965,3159,3218,4584,5069,5507,6456,6673,7086,7120,7245,7332,7704,8683,8888],{77757(t,e,a){a.d(e,{A:()=>f});var i=a(95353),r=a(33428),n=a(10616),s=a(84193),o=a.n(s),l=a(2543);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,i)}return a}function d(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?u(Object(a),!0).forEach(function(e){h(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}function h(t,e,a){return(e=function(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var i=a.call(t,e||"default");if("object"!=c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const f={mixins:[r.A],components:{vChart:n.VueECharts},data:function(){return{isChartLoading:!1,isChartReady:!1,ECharts:null,VueECharts:null,debouncedGetData:null,defaultOptions:{forBackend:!0}}},computed:d(d({},(0,i.L8)(["statsUrls","statsTags","statsDatetime","urlsFilter"])),{},{statsType:function(){return this.statsUrls.length>1||this.statsTags.length>0?"urls":1===this.statsUrls.length?"url":"dashboard"}}),methods:{buildAnalyticsUrl:function(t,e){return o()(t).addSearch(this.buildAnalyticsPayload(e))},getAnalytics:function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{DISABLE_ERROR_INTERCEPTORS:!0};return axios.get(this.buildAnalyticsUrl(t,e),a)},buildAnalyticsPayload:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l.defaults(t,this.defaultOptions);var e={};(void 0!==this.urlsFilter&&("available"==this.urlsFilter.state.action?e.archived=!1:e.archived=!0),this.statsUrls.length>0)&&(e[t.forBackend?"alias[]":"alias"]=this.statsUrls);this.statsTags.length>0&&(e[t.forBackend?"tag[]":"tag"]=this.statsTags);return this.statsDatetime.start&&(e.from=this.statsDatetime.start.toISOString(!0)),this.statsDatetime.end&&(e.to=this.statsDatetime.end.toISOString(!0)),e},triggerChartsLoading:function(){var t=this,e=function(e){t.$refs.hasOwnProperty(e)&&l.endsWith(e,"-chart")?t.isChartLoading?t.$refs[e].showLoading():t.$refs[e].hideLoading():setTimeout(function(){return t.triggerChartsLoading(e)},10)};for(var a in this.$refs)e(a)},getData:function(){var t=this;void 0!==this.loadData&&(this.isChartLoading=!0,this.loadData().finally(function(){t.isChartLoading=!1}))},handleResize:function(){l.forOwn(this.$refs,function(t,e){l.endsWith(e,"-chart")&&t.resize()})}},watch:{statsDatetime:function(){this.debouncedGetData()},statsTags:function(){this.debouncedGetData()},statsUrls:function(){this.debouncedGetData()},isChartLoading:function(){this.triggerChartsLoading()}},created:function(){this.debouncedGetData=l.debounce(this.getData,200),Bus.$on("refreshStats",this.debouncedGetData),this.ECharts=n.ECharts,this.VueECharts=n.VueECharts,this.isChartReady=!0},mounted:function(){window.addEventListener("resize",this.handleResize)},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize),Bus.$off("refreshStats",this.debouncedGetData)}}},10616(t,e,a){a.r(e),a.d(e,{ECharts:()=>r.a,VueECharts:()=>s.a});a(24823),a(67770),a(63886),a(59608),a(61029),a(39554),a(25120),a(17164),a(53571),a(4194);var i=a(89231),r=a.n(i),n=a(61834),s=a.n(n)},37332(t,e,a){a.r(e),a.d(e,{default:()=>r});const i={name:"Favicon",props:{hostname:{type:String,default:""},size:{type:String,default:"32px"},url:{type:String,required:!0},useRawUrl:{type:Boolean,required:!1}},data:function(){return{useInitial:!1}},computed:{faviconLink:function(){return"https://icons.duckduckgo.com/ip3/".concat(this.hostname,".ico")},urlInitial:function(){return this.url.charAt(0).toUpperCase()},style:function(){return{height:this.size,width:this.size,"min-width":this.size,flex:"0 0 ".concat(this.size)}}},watch:{hostname:function(){this.verifyHostname()}},created:function(){this.verifyHostname()},methods:{verifyHostname:function(){this.useInitial=""===this.hostname}}};const r=(0,a(14486).A)(i,function(){var t=this,e=t._self._c;return t.useInitial?e("div",{staticClass:"bg-dark text-white border rounded-circle font-weight-bold flex-center-center",style:t.style},[t._v("\n  "+t._s(t.urlInitial)+"\n")]):e("img",{style:t.style,attrs:{src:t.faviconLink,loading:"lazy",alt:t.hostname+" logo"},on:{error:function(e){t.useInitial=!0}}})},[],!1,null,null,null).exports},32965(t,e,a){a.r(e),a.d(e,{default:()=>s});var i=a(36913),r=a(6864);const n={name:"FreetrialStatus",components:{VueCountdown:a.n(r)()},mixins:[i.A],computed:{isDanger:function(){return this.remainingTrialDays<=1},isWarning:function(){var t=this.remainingTrialDays;return t>1&&t<=7},isInfo:function(){return this.remainingTrialDays>7},isVisible:function(){var t;return!("help"===this.$route.name||this.billableHasPaymentMethod||null===(t=this.getUserCurrentSubscription)||void 0===t||!t.isOnTrial)&&this.isTrialBannerReminderVisible},remainingTrialDays:function(){var t;return(null===(t=this.getUserCurrentSubscription)||void 0===t?void 0:t.remainingTrialDays)||0},translatedRemainingTrialDays:function(){var t=Math.round(this.remainingTrialDays),e=$t("day",{count:t});return"".concat(t," ").concat(e)}},methods:{close:function(){this.$set(this,"isTrialBannerReminderVisible",!1)}}};const s=(0,a(14486).A)(n,function(){var t=this,e=t._self._c;return t.isVisible?e("div",{staticClass:"flex-center-center position-relative p-4 text-center text-sm",class:{"bg-green-30":t.isInfo,"bg-red-80":t.isDanger||t.isWarning},staticStyle:{"min-height":"90px"}},[t.isDanger?e("p",{staticClass:"m-0 text-white"},[e("span",{staticClass:"font-weight-bold"},[t._v("\n      Your free trial ends in\n      "),e("vue-countdown",{attrs:{time:t.trialDayCountdown,transform:t.countdownAddLeadingZero},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.hours,i=e.minutes,r=e.seconds;return[t._v(t._s(a)+":"+t._s(i)+":"+t._s(r))]}}],null,!1,3417824625)}),t._v(".\n    ")],1),t._v(" "),e("span",{staticClass:"font-weight-seminormal"},[t._v("Wanna keep full access to our features?")]),t._v(" "),e("router-link",{staticClass:"font-weight-bold text-white text-underline",attrs:{to:{name:"settings.paymentMethod"}}},[t._v("\n      Add your payment details now!\n    ")])],1):t.isWarning?e("p",{staticClass:"m-0 text-white"},[e("span",{staticClass:"font-weight-bold"},[t._v("\n      "+t._s(t.translatedRemainingTrialDays)+" left in your free trial.\n    ")]),t._v(" "),e("span",{staticClass:"font-weight-seminormal"},[t._v("Wanna keep full access to our features?")]),t._v(" "),e("router-link",{staticClass:"font-weight-bold text-white text-underline",attrs:{to:{name:"settings.paymentMethod"}}},[t._v("\n      Add your payment details now!\n    ")])],1):t.isInfo?e("p",{staticClass:"font-weight-bold m-0"},[e("span",[t._v("Wanna keep your subscription going after your free trial?")]),t._v(" "),e("router-link",{staticClass:"text-black text-underline",attrs:{to:{name:"settings.paymentMethod"}}},[t._v("\n      Add your payment details now!\n    ")])],1):t._e(),t._v(" "),e("button",{staticClass:"close position-absolute text-base",class:{"text-dark":t.isInfo,"text-white":t.isDanger||t.isWarning}
1,staticStyle:{top:"8px",right:"12px",opacity:"1"},attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"},on:{click:t.close}},[e("i",{staticClass:"fa fa-close"})])]):t._e()},[],!1,null,null,null).exports},83218(t,e,a){a.r(e),a.d(e,{default:()=>d});var i=a(95353),r=a(32965),n=a(22269);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function o(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,i)}return a}function l(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?o(Object(a),!0).forEach(function(e){c(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}function c(t,e,a){return(e=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var i=a.call(t,e||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const u={name:"SettingsPage",components:{BannerFreeTrialStatus:r.default,Popover:n.default},computed:l(l({},(0,i.L8)(["teamMode","isUserLoggedIn"])),{},{detectBillableType:function(){return this.teamMode?"team":"user"}}),created:function(){this.isUserLoggedIn&&"shopping-cart.orders"!==this.$route.name&&this.loadUserOrders()},methods:l({},(0,i.i0)(["loadUserOrders"]))};const d=(0,a(14486).A)(u,function(){var t=this,e=t._self._c;return e("section",{staticClass:"row no-gutters takerow"},[e("Popover",[e("RouterView",{attrs:{name:"right"}})],1),t._v(" "),e("div",{staticClass:"bg-gray-200 col-md-auto d-none d-md-block overflow-y-a",staticStyle:{width:"260px"}},[e("RouterView",{attrs:{name:"menu"}})],1),t._v(" "),e("div",{staticClass:"col-12 col-md bg-gray-100 overflow-y-a"},[e("BannerFreeTrialStatus"),t._v(" "),e("RouterView",{attrs:{name:"main"}})],1)],1)},[],!1,null,null,null).exports},58888(t,e,a){a.r(e),a.d(e,{default:()=>s});var i=a(77757),r=a(91212);const n={name:"StatsDaily",mixins:[i.A],props:{hash:{type:String,required:!1,default:""}},data:function(){return{weekDayLoading:!1,weekDayData:[]}},computed:{weekdayChartOptions:function(){return{title:{show:!1,text:this.$t("chart.title.popularity_weekday")},grid:{left:"14%",top:"6%",right:"2%",bottom:"10%"},tooltip:{trigger:"axis",axisPointer:{type:"none"}},toolbox:{show:!0,feature:{saveAsImage:{show:!0,title:this.$t("chart.save_as_image")}}},xAxis:[{type:"category",axisLabel:{interval:0,fontWeight:"bolder"},axisLine:{show:!1},axisTick:{show:!1},data:[this.$t("calendar.mon"),this.$t("calendar.tue"),this.$t("calendar.wed"),this.$t("calendar.thu"),this.$t("calendar.fri"),this.$t("calendar.sat"),this.$t("calendar.sun")]}],yAxis:[{type:"value",splitNumber:3,axisLine:{show:!1},axisTick:{show:!1}}],series:[{id:"weekday_clicks",type:"bar",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},name:this.$t("chart.clicks"),data:this.weekDayData,label:{normal:{show:!0,color:"#000000",fontWeight:"bolder"}},itemStyle:{color:"#9bc225"}}]}}},mounted:function(){this.getData()},methods:{loadData:function(){var t=this;this.weekDayLoading=!0;var e=this.getUserTeamApiUrl("analytics/{hash}/popularity/weekday",{hash:this.hash||""}),a=this.getAnalytics(e).then(function(e){var a=e.data;t.weekDayData=a.dataset.map(function(t,e){return[e,t]})}).catch(function(){t.weekDayData=[],(0,r.FF)("Failed to load weekday popularity chart data.")}).finally(function(){t.weekDayLoading=!1});return Promise.all([a])}}};const s=(0,a(14486).A)(n,function(){var t=this,e=t._self._c;return e("div",{staticClass:"card card-body",attrs:{"data-test-id":"stats_popular_daily_card"}},[e("h4",{staticClass:"chart-title mb-2"},[t._v("\n    "+t._s(t.$t("chart.title.popularity_weekday"))+"\n  ")]),t._v(" "),t.isChartReady?e("v-chart",{ref:"popularity-weekday-chart",staticStyle:{width:"100%",height:"200px"},attrs:{options:t.weekdayChartOptions}}):e("Spinner")],1)},[],!1,null,null,null).exports},67086(t,e,a){a.r(e),a.d(e,{default:()=>u});var i=a(23722),r=a.n(i),n=a(77757),s=a(9887),o=a(91212),l=a(2543);const c={name:"StatsGeneral",components:{FormSwitch:s.default},mixins:[n.A],props:{hash:{type:String,required:!1,default:""}},data:function(){return{data:{browser:[],os:[],device:[]},total:0,dataTypeBrowsers:!1,dataTypeOs:!1,dataTypeDevices:!1,chartOptionsBrowser:{},chartOptionsOs:{},chartOptionsDevices:{}}},watch:{dataTypeBrowsers:function(t,e){localStorage.setItem("dataTypeBrowsers",t),this.setupBrowser()},dataTypeOs:function(t,e){localStorage.setItem("dataTypeOs",t),this.setupOs()},dataTypeDevices:function(t,e){localStorage.setItem("dataTypeDevices",t),this.setupDevices()}},mounted:function(){this.getData()},methods:{formatTooltip:function(t){var e=t.treePathInfo,a=e[0].value;if(1===e.length)return"";var i=e[1].name;return 3===e.length&&(i+=" <b>"+e[2].name+"</b>"),(":name:<br>"+this.$t("chart.clicks")+": :value: (:percent:%)").replace(":name:",i).replace(":value:",t.value).replace(":percent:",l.round(t.value/a*100,2))},dec2hex:function(t){var e="ABCDEF",a=(t=parseInt(t))/16,i=t%16;return a=(a-=i/16)>=0&&a<=9?a:e.charAt(a-10),i>=0&&i<=9?a+""+i:a+""+e.charAt(i-10)},hsl2color:function(t,e,a){var i=r()(t,e,a);return"#"+this.dec2hex(i[0])+this.dec2hex(i[1])+this.dec2hex(i[2])},hsl2brightness:function(t,e,a){var i=r()(t,e,a);return.2126*i[0]+.7152*i[1]+.0722*i[2]},addColors:function(t){var e=Math.floor(360/t.length),a=0;for(var i in t){if(t[i].itemStyle={color:this.hsl2color(a,.5,.4),borderColor:this.hsl2color(a,.5,.8)},t[i].children){var r=.6/t[i].children.length,n=.4;for(var s in t[i].children){var o=this.hsl2color(a,.85,n),l=this.hsl2brightness(a,.85,n);t[i].children[s].itemStyle={color:o,borderColor:o},t[i].children[s].label={color:l>120?"#000000":"#FFFFFF"},n+=r}}a+=e}return t},loadData:function(){var t=this,e=this.getUserTeamApiUrl("analytics/{hash}/general",{hash:this.hash||""});return this.getAnalytics(e).then(function(e){var a=e.data;t.data={browser:a.dataset.browser||[],os:a.dataset.os||[],device:a.dataset.device||[]},t.total=a.total,t.setupTogglers(),t.setupBrowser(),t.setupOs(),t.setupDevices(),setTimeout(function(){t.setupTogglers(),t.setupBrowser(),t.setupOs(),t.setupDevices()},100)}).catch(function(){t.total=0,t.data={browser:[],os:[],device:[]},(0,o.FF)("Failed to load general chart data.")})},setupTogglers:function(){var t=JSON.parse(localStorage.getItem("dataTypeBrowsers")),e=JSON.parse(localStorage.getItem("dataTypeOs")),a=JSON.parse(localStorage.getItem("dataTypeDevices"));t&&(this.dataTypeBrowsers=t),e&&(this.dataTypeOs=e),a&&(this.dataTypeDevices=a)},setupBrowser:function(){var t=this;this.chartOptionsBrowser={title:{text:this.$t("chart.title.browsers"),left:"center",top:"top",show:!1},tooltip:{trigger:"item",formatter:function(e){return t.formatTooltip(e)}},toolbox:{show:!1,feature:{saveAsImage:{show:!0,title:this.$t("chart.save_as_image")}}},series:[{type:"treemap",top:"0%",bottom:"0%",left:"0%",right:"0%",height:"100%",width:"100%",upperLabel:{show:!0,height:36,borderColor:"auto",fontWeight:"500",fontSize:16,color:"#000",padding:[0,6,0,6],emphasis:{color:"#222"},fontFamily:"'Montserrat'",rich:{fontM:{color:"#000",height:36,fontSize:16,fontWeight:500,fontFamily:"'Montserrat'",padding:[0,6,0,3],emphasis:{color:"#222"}}},formatter:function(e){var a=e.treePathInfo[0].value,i=l.round(e.value/a*100,0),r=e.name.toString().toLowerCase(),n="click"==(t.dataTypeBrowsers?"click":"percentage")?"".concat(e.value," click(s)"):"".concat(i,"%");switch(r){case"chrome":case"firefox":case"internet explorer":case"opera":case"safari":case"microsoft edge":return"{fontM|".concat(e.name," | ").concat(n,"}");default:return e.name}}},roam:!1,breadcrumb:!1,nodeClick:!1,label:{fontWeight:"bold",fontSize:14},levels:[{upperLabel:{show:!1},gapWidth:4,itemStyle:{borderWidth:6,gapWidth:4},label:{fontSize:16,fontFamily:"'Montserrat'"},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}},{label:{fontWeight:"bold",fontSize:14},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}],data:this.addColors(this.data.browser||[])}]}},setupOs:function(){var t=this;this.chartOptionsOs={title:{text:this.$t("chart.title.os"),left:"center",top:"top",show:!1},tooltip:{trigger:"item",formatter:function(e){return t.formatTooltip(e)}},toolbox:{show:!1,feature:{saveAsImage:{show:!0,title:this.$t("chart.save_as_image")}}},series:[{type:"treemap",top:"0%",bottom:"0%",left:"0%",right:"0%",height:"100%",width:"100%",upperLabel:{show:!0,height:36,borderColor:"auto",fontWeight:"500",fontSize:16,color:"#000",padding:[0,6,0,6],emphasis:{color:"#222"},fontFamily:"'Montserrat'",rich:{fontM:{color:"#000",height:36,fontSize:16,fontWeight:500,fontFamily:"'Montserrat'",padding:[0,6,0,3],emphasis:{color:"#222"}}},formatter:function(e){var a=e.treePathInfo[0].value,i=l.round(e.value/a*100,0),r=e.name.toString().toLowerCase(),n="click"==(t.dataTypeOs?"click":"percentage")?"".concat(e.value," click(s)"):"".concat(i,"%");switch(r){case"windows":case"mac":case"ios":case"linux":case"android":return"{fontM|".concat(e.name," | ").concat(n,"}");default:return e.name}}},roam:!1,breadcrumb:!1,nodeClick:!1,label:{fontWeight:"bold",fontSize:14},levels:[{upperLabel:{show:!1},gapWidth:4,itemStyle:{borderWidth:6,gapWidth:4},label:{fontSize:16,fontFamily:"'Montserrat'"},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}},{label:{fontWeight:"bold",fontSize:14},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}],data:this.addColors(this.data.os||[])}]}},setupDevices:function(){this.chartOptionsDevices={title:{text:this.$t("chart.title.devices"),left:"center",top:"top",show:!1},tooltip:{trigger:"item",formatter:"{b}: {c} ({d} %)"},toolbox:{show:!1,feature:{saveAsImage:{show:!0,title:this.$t("chart.save_as_image")}}},legend:{orient:"vertical",left:10},series:[{type:"pie",startAngle:0,radius:["20%","80%"],center:["50%","50%"],clockwise:!0,label:{position:"inner",formatter:"".concat(this.dataTypeDevices?"{c} click(s)":"{d}%"),fontWeight:"bold",fontSize:16,rotate:"radial"},itemStyle:{color:"#ddd",borderWidth:0},data:this.addColors(this.data.device||[])}]}}}};const u=(0,a(14486).A)(c,function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-xl-4 col-lg-6"},[e("div",{staticClass:"card card-body",attrs:{"data-test-id":"stats_top_browsers_card"}},[e("div",{staticClass:"flex-center-between py-2 px-2"},[e("h4",{staticClass:"chart-title mb-0"},[t._v("\n          Top Browsers\n        ")]),t._v(" "),e("FormSwitch",{attrs:{"accessibility-label":"Top Browsers Toggler","input-id":"fa-browser"},model:{value:t.dataTypeBrowsers,callback:function(e){t.dataTypeBrowsers=e},expression:"dataTypeBrowsers"}})],1),t._v(" "),e("div",{staticClass:"pt-0"},[t.isChartReady?e("div",[e("v-chart",{ref:"browser-chart",staticStyle:{width:"100%","min-height":"200px"},attrs:{options:t.chartOptionsBrowser}}
1)],1):e("Spinner")],1)])]),t._v(" "),e("div",{staticClass:"col-xl-4 col-lg-6"},[e("div",{staticClass:"card card-body",attrs:{"data-test-id":"stats_top_os_card"}},[e("div",{staticClass:"flex-center-between py-2 px-2"},[e("h4",{staticClass:"chart-title mb-0"},[t._v("\n          Top OS\n        ")]),t._v(" "),e("FormSwitch",{attrs:{"accessibility-label":"Top Operating System Toggler","input-id":"fa-os"},model:{value:t.dataTypeOs,callback:function(e){t.dataTypeOs=e},expression:"dataTypeOs"}})],1),t._v(" "),e("div",{staticClass:"pt-0"},[t.isChartReady?e("div",[e("v-chart",{ref:"os-chart",staticStyle:{width:"100%","min-height":"200px"},attrs:{options:t.chartOptionsOs}})],1):e("Spinner")],1)])]),t._v(" "),e("div",{staticClass:"col-xl-4 col-lg-6"},[e("div",{staticClass:"card card-body",attrs:{"data-test-id":"stats_top_devices_card"}},[e("div",{staticClass:"flex-center-between py-2 px-2"},[e("h4",{staticClass:"chart-title mb-0"},[t._v("\n          Top Devices\n        ")]),t._v(" "),e("FormSwitch",{attrs:{"accessibility-label":"Top Devices Toggler","input-id":"fa-devices"},model:{value:t.dataTypeDevices,callback:function(e){t.dataTypeDevices=e},expression:"dataTypeDevices"}})],1),t._v(" "),e("div",{staticClass:"pt-0"},[t.isChartReady?e("div",[e("v-chart",{ref:"device-chart",staticStyle:{width:"100%","min-height":"200px","max-height":"400px"},attrs:{options:t.chartOptionsDevices}})],1):e("Spinner")],1)])])])},[],!1,null,null,null).exports},96673(t,e,a){a.r(e),a.d(e,{default:()=>l});var i=a(77757),r=a(91212),n=a(95093),s=a(2543);const o={name:"StatsHourly",mixins:[i.A],props:{hash:{type:String,required:!1,default:""}},data:function(){return{hourLoading:!1,hourData:[]}},computed:{hourChartOptions:function(){return{title:{text:this.$t("chart.title.popularity_hour"),show:!1},grid:{left:"14%",top:"4%",right:"2%",bottom:"10%"},tooltip:{trigger:"axis",axisPointer:{type:"none"},formatter:function(t){for(var e=n().set("hour",s.first(t).value[0]).format("LT").replace(/[:.e][0-9]{2}/,""),a=0;a<t.length;a++)e+="<br>"+t[a].marker+t[a].seriesName+": "+t[a].value[1].toLocaleString();return e}},toolbox:{show:!0,feature:{saveAsImage:{show:!0,title:this.$t("chart.save_as_image")}}},xAxis:[{type:"category",max:23,axisLabel:{fontWeight:"bolder",formatter:function(t){return n().set("hour",t).format("LT").replace(/[:.e][0-9]{2}/,"")}},axisLine:{show:!1}}],yAxis:[{type:"value",splitNumber:3,axisLine:{show:!1},axisTick:{show:!1}}],series:[{id:"hour_clicks",type:"bar",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:2,shadowColor:"rgba(0, 0, 0, 0.4)"}},name:this.$t("chart.clicks"),data:this.hourData,itemStyle:{color:"#9bc225"}}]}}},mounted:function(){this.getData()},methods:{loadData:function(){var t=this;this.hourLoading=!0;var e=this.getUserTeamApiUrl("analytics/{hash}/popularity/hour",{hash:this.hash||""});return this.getAnalytics(e).then(function(e){var a=e.data;t.hourData=a.dataset.map(function(t,e){return[e,t]})}).catch(function(){t.hourData=[],(0,r.FF)("Failed to load hourly popularity chart data.")}).finally(function(){t.hourLoading=!1})}}};const l=(0,a(14486).A)(o,function(){var t=this,e=t._self._c;return e("div",{staticClass:"card card-body",attrs:{"data-test-id":"stats_popular_times_card"}},[e("h4",{staticClass:"chart-title mb-2"},[t._v("\n    "+t._s(t.$t("chart.title.popularity_hour"))+"\n  ")]),t._v(" "),t.isChartReady?e("v-chart",{ref:"popularity-hour-chart",staticStyle:{width:"100%",height:"200px"},attrs:{options:t.hourChartOptions}}):e("Spinner")],1)},[],!1,null,null,null).exports},54584(t,e,a){a.r(e),a.d(e,{default:()=>c});var i=a(77757),r=a(91212),n=a(2543);function s(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var a={}.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=Array(e);a<e;a++)i[a]=t[a];return i}const l={name:"StatsLanguages",mixins:[i.A],props:{hash:{type:String,required:!1,default:""}},data:function(){return{total:0,topLanguages:[],topLanguagesCat:[]}},computed:{languagesOptions:function(){var t=this;return{title:{text:this.$t("chart.title.top_languages"),left:"center",top:"top",show:!1},toolbox:{show:!0,feature:{saveAsImage:{show:!0,title:this.$t("chart.save_as_image")}}},grid:{left:"15",top:"0",right:"15",bottom:"24"},tooltip:{trigger:"axis",axisPointer:{type:"none"},formatter:function(e){var a=Math.round(100*(100*e[0].data.value/t.total||0))/100,i=parseInt(e[0].data.value).toLocaleStr
1ing();return e[0].name+"<br/>"+t.$t("chart.clicks")+": ".concat(i," ( ").concat(a," % )")}},xAxis:[{inverse:!0,type:"value",max:this.total,axisTick:{show:!0},axisLine:{show:!1},splitLine:!1,axisLabel:{fontWeight:"bold",formatter:function(e){var a=e/t.total*100;return a=a||0,Math.round(100*a/100).toLocaleString()+"%"}}}],yAxis:[{type:"category",data:this.topLanguagesCat,splitLine:{show:!0},axisTick:{show:!1},axisLabel:{show:!0,inside:!0,fontWeight:"bold"},axisLine:{show:!1}}],series:[{id:"source_clicks",type:"bar",barCategoryGap:"0%",name:this.$t("chart.clicks"),itemStyle:{normal:{color:"rgba(51, 152, 219, 0.2)"},emphasis:{color:"rgba(51, 152, 219, 0.4)"}},label:{normal:{show:!0,color:"rgb(51, 138, 207)",fontWeight:"bold",position:"insideRight",formatter:function(e){var a=e.value/t.total*100;return a=a||0,(Math.round(100*a)/100).toLocaleString()+"%"},fontSize:14}},data:this.topLanguages||[]}]}}},created:function(){this.getData()},methods:{loadData:function(){var t=this,e=this.getUserTeamApiUrl("analytics/{hash}/languages/top",{hash:this.hash||""});return this.getAnalytics(e).then(function(e){var a=e.data;t.total=a.total;var i=n.sortBy(a.dataset.map(function(t){return{source:t.language,value:t.hits}}),"value");t.topLanguages=[{source:t.$t("chart.otherLanguages"),value:t.total-a.none-n.sumBy(i,"value")}].concat(s(i),[{source:t.$t("chart.noLanguage"),value:a.none}]),0===t.topLanguages[0].value&&t.topLanguages.shift(),t.topLanguagesCat=n.map(t.topLanguages,function(e,a){return t.$t("languages:"+e.source)})}).catch(function(){t.total=0,t.languagesData=[],t.topLanguages=[],t.topLanguagesCat=[],(0,r.FF)("Failed to load top languages chart data.")})}}};const c=(0,a(14486).A)(l,function(){var t=this,e=t._self._c;return e("div",{staticClass:"card card-body",attrs:{"data-test-id":"stats_top_languages_card"}},[e("h4",{staticClass:"chart-title mb-2"},[t._v("\n    "+t._s(t.$t("chart.title.top_languages"))+"\n  ")]),t._v(" "),t.isChartReady?e("v-chart",{ref:"top-languages-chart",staticStyle:{width:"100%",height:"300px"},attrs:{options:t.languagesOptions}}):e("Spinner")],1)},[],!1,null,null,null).exports},25069(t,e,a){a.r(e),a.d(e,{default:()=>u});var i=a(77757),r=a(77063),n=a(2543);function s(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var a={}.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=Array(e);a<e;a++)i[a]=t[a];return i}const l={name:"StatsMap",mixins:[i.A],props:{hash:{type:String,required:!1,default:""}},setup:function(){return{notifyError:(0,r.A)().notifyError}},data:function(){return{mapType:"",loaded:[],data:[],topData:[],total:0,minValue:0,maxValue:0,hasDetails:["au","ca","cn","in","ru","ua","us"],countryList:[]}},computed:{_:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){return n}),title:function(){var t=this.$t("countries:country."+this.mapType.toUpperCase(),{returnObjects:!0,defaultValue:this.mapType});return this.$t("chart.title.users_map",{type:Array.isArray(t)?t.pop():t})},mapOptions:function(){var t=this;return this.mapType?{toolbox:{show:!0,left:"left",feature:{myHome:{show:"world"!==this.mapType,title:this.$t("chart.back_to_world"),icon:"image:///images/globe.png",onclick:function(){t.setMap("world")}},saveAsImage:{show:!0,title:this.$t("chart.save_as_image")}}},tooltip:{trigger:"item",formatter:function(e){var a=Math.round(100*(100*e.value/t.total||0))/100;return t.trans(e.name)+"<br/>"+t.$t("chart.clicks")+": "+parseInt(e.value||0).toLocaleString()+" ( "+a+" % )"}},visualMap:{min:this.minValue,max:this.maxValue,text:[this.$t("chart.high"),this.$t("chart.low")],calculable:!0,realtime:!1,inRange:{color:["rgb(255, 255, 217)","rgb(189, 229, 181)","rgb(42, 154, 192)","rgb(28, 48, 131)"]}},series:[{type:"map",mapType:this.mapType,roam:!1,aspectScale:.75,zoom:1.3,label:{normal:{show:!1},emphasis:{show:!1}},itemStyle:{normal:{borderColor:"rgba(0, 0, 0, 0.2)"},emphasis:{areaColor:null,shadowOffsetX:0,shadowOffsetY:0,shadowBlur:10,borderWidth:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},data:this.data||[]}]}:{}}
1,chartOptions:function(){var t=this;return{title:{text:this.$t("chart.title.top_sources"),left:"center",top:"top",show:!1},toolbox:{show:!1,feature:{saveAsImage:{show:!0,title:this.$t("chart.save_as_image")}}},grid:{left:"10%",top:"0",right:"10%",bottom:"6%"},tooltip:{trigger:"axis",axisPointer:{type:"none"},formatter:function(e){var a=Math.round(100*(100*e[0].value/t.total||0))/100;return t.trans(e[0].name)+"<br/>"+t.$t("chart.clicks")+": "+parseInt(e[0].value).toLocaleString()+" ( "+a+" % )"}},xAxis:[{inverse:!0,type:"value",axisTick:{show:!1},axisLine:{show:!1},splitNumber:3,axisLabel:{fontWeight:"bold",formatter:function(e){var a=e/t.total*100;return a=a||0,Math.round(100*a/100).toLocaleString()+"%"}}}],yAxis:[{type:"category",data:this.countryList,axisTick:{show:!1},axisLabel:{show:!0,inside:!0,fontWeight:"bold"},axisLine:{show:!1}}],series:[{id:"clicks",type:"bar",name:this.$t("chart.clicks"),itemStyle:{normal:{color:"rgba(51, 152, 219, 0.2)"},emphasis:{color:"rgba(51, 152, 219, 0.4)"}},label:{normal:{show:!0,color:"rgb(51, 138, 207)",fontWeight:"bold",position:"insideRight",formatter:function(e){var a=e.value/t.total*100;return a=a||0,(Math.round(100*a)/100).toLocaleString()+"%"},fontSize:14}},data:this.topData||[]}]}}},watch:{mapType:function(){this.getData()},data:function(t){if(t.length>0){this.minValue=this.maxValue=t[0].value;for(var e=1;e<t.length;e++){var a=t[e].value;this.minValue=Math.min(this.minValue,a),this.maxValue=Math.max(this.maxValue,a)}this.minValue>0&&this.minValue===this.maxValue&&(this.minValue=0)}else this.minValue=0,this.maxValue=this.total},isChartReady:function(){this.setMap("world")}},methods:{trans:function(t){var e="countries:"+("world"===this.mapType?"country":"state."+this.mapType)+"."+t.toUpperCase(),a=("world"===this.mapType?"":this.mapType+"-")+t,i=this.$t(e,{returnObjects:!0,defaultValue:a});return Array.isArray(i)?i.pop():i},mapClicked:function(t){"world"===this.mapType&&t.name&&this.hasDetails.includes(t.name)&&this.setMap(t.name)},loadData:function(){var t=this,e=this.getUserTeamApiUrl("analytics/{hash}/location/{mapType}",{hash:this.hash||"",mapType:this.mapType});return this.getAnalytics(e).then(function(e){var a=e.data;if(t.total=a.total,t.data=n.orderBy(a.dataset,["value"],["asc"]),t.data.length>10){var i=t.data.slice(t.data.length-9,t.data.length),r=n.sumBy(i,"value"),o={value:t.total-r,name:"other"};t.topData=[o].concat(s(i))}else t.topData=t.data;t.countryList=n.map(t.topData,function(t,e){return t.name.toUpperCase()})}).catch(function(){t.total=0,t.data=[],t.notifyError({text:t.$t("chart.no_location",{type:t.trans(t.mapType)})})})},setMap:function(t){var e=this;!this.loaded[t]&&this.isChartReady?(this.isChartLoading=!0,axios.get("/maps/"+t+".json").then(function(a){var i=a.data;e.VueECharts.registerMap(t,i),e.loaded[t]=!0,e.mapType=t}).catch(function(){e.notifyError({text:e.$t("chart.map_not_found",{map:t})})}).finally(function(){e.isChartLoading=!1})):this.mapType=t}}},c=l;const u=(0,a(14486).A)(c,function(){var t=this,e=t._self._c;return e("div",{staticClass:"card card-body",attrs:{"data-test-id":"stats_traffic_card"}},[e("h4",{staticClass:"chart-title mb-2"},[t._v("\n    "+t._s(t.title)+"\n  ")]),t._v(" "),e("div",{staticClass:"row no-gutters"},[e("div",{class:{"col-lg-9":!t._.isEmpty(t.topData),"col-lg-12":t._.isEmpty(t.topData)}},[t.isChartReady?e("v-chart",{ref:"locations-map-chart",staticStyle:{width:"100%","min-height":"300px"},attrs:{options:t.mapOptions},on:{click:t.mapClicked}}):e("div",[t._v("\n        Error!\n      ")])],1),t._v(" "),t._.isEmpty(t.topData)?t._e():e("div",{staticClass:"col-lg-3"},[e("v-chart",{ref:"locations-chart",staticStyle:{width:"100%","min-height":"300px"},attrs:{options:t.chartOptions},on:{click:t.mapClicked}})],1)])])},[],!1,null,null,null).exports},46456(t,e,a){a.r(e),a.d(e,{default:()=>d});var i=a(95353),r=a(77757),n=a(10741);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function o(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,i)}return a}function l(t,e,a){return(e=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var i=a.call(t,e||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==s(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const c={name:"StatsQuick",mixins:[r.A],props:{quick:{type:Object,default:null}},setup:function(){return{toCompactNumber:n.o1}},computed:function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?o(Object(a),!0).forEach(function(e){l(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}({},(0,i.L8)(["canDownloadLogs","locale"]))},u=c;const d=(0,a(14486).A)(u,function(){var t=this,e=t._self._c;return null!==t.quick?e("div",[e("div",{staticClass:"d-flex justify-content-between mx-n3 my-3 flex-wrap-reverse stats-summary"},["url"!==t.statsType?e("div",{staticClass:"flex-grow-1 mx-3 my-2"},[e("div",{staticClass:"card p-2 mb-2 text-center _summary-tile"},[e("p",{staticClass:"mb-0"},[t._v("\n          Clicked Links\n        ")]),t._v(" "),e("h3",{staticClass:"font-weight-semibold mb-0 _clicked-links-count"},[t._v("\n          "+t._s(t.toCompactNumber(t.quick.active_links,t.locale))+"\n        ")])])]):t._e(),t._v(" "),e("div",{staticClass:"flex-grow-1 mx-3 my-2"},[e("div",{staticClass:"card p-2 mb-2 text-center _summary-tile",attrs:{"data-test-id":"stats_total_human_clicks_card"}},[e("p",{staticClass:"mb-0",attrs:{"data-test-id":"stats_total_human_clicks_text"}},[t._v("\n          Likely Human Clicks\n        ")]),t._v(" "),e("h3",{staticClass:"font-weight-semibold mb-0",attrs:{"data-test-id":"stats_total_human_clicks_count"}},[t._v("\n          "+t._s(t.toCompactNumber(t.quick.human_hits,t.locale))+"\n        ")])])]),t._v(" "),e("div",{staticClass:"flex-grow-1 mx-3 my-2"},[e("div",{staticClass:"card p-2 mb-2 text-center _summary-tile",attrs:{id:"stats_unique_clicks_card"}},[e("p",{staticClass:"mb-0",attrs:{id:"stats_unique_clicks_text"}},[t._v("\n          Unique Clicks\n        ")]),t._v(" "),e("h3",{staticClass:"font-weight-semibold mb-0",attrs:{id:"stats_unique_clicks_count"}},[t._v("\n          "+t._s(t.toCompactNumber(t.quick.unique_hits,t.locale))+"\n        ")])])]),t._v(" "),"url"!==t.statsType?e("div",{staticClass:"flex-grow-1 mx-3 my-2"},[e("div",{staticClass:"card p-2 mb-2 text-center _summary-tile"},[e("p",{staticClass:"mb-0"},[t._v("\n          Unique Visitors\n        ")]),t._v(" "),e("h3",{staticClass:"font-weight-semibold mb-0 _unique-visitors-count"},[t._v("\n          "+t._s(t.toCompactNumber(t.quick.unique_visitors,t.locale))+"\n        ")])])]):t._e()])]):t._e()},[],!1,null,null,null).exports},27704(t,e,a){a.r(e),a.d(e,{default:()=>c});var i=a(77757),r=a(91212),n=a(2543);function s(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var a={}.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=Array(e);a<e;a++)i[a]=t[a];return i}const l={name:"StatsSources",mixins:[i.A],props:{hash:{type:String,required:!1,default:""}},data:function(){return{topReferrers:[],topRefersCat:[],total:0}},computed:{showChart:function(){return!(this.total<1)},referersOptions:function(){var t=this;return{title:{text:this.$t("chart.title.top_sources"),left:"center",top:"top",show:!1},toolbox:{show:!0,feature:{saveAsImage:{show:!0,title:this.$t("chart.save_as_image")}}},grid:{left:"15",top:"0",right:"15",bottom:"24"},tooltip:{trigger:"axis",axisPointer:{type:"none"},formatter:function(e){var a=Math.round(100*(100*e[0].data.value/t.total||0))/100,i=parseInt(e[0].data.value).toLocaleStr
1ing();return e[0].name+"<br/>"+t.$t("chart.clicks")+": ".concat(i," ( ").concat(a," % )")}},xAxis:[{inverse:!0,type:"value",max:this.total,axisLine:{show:!1},splitLine:!1,axisLabel:{fontWeight:"bold",formatter:function(e){var a=e/t.total*100;return a=a||0,Math.round(100*a/100).toLocaleString()+"%"}}}],yAxis:[{type:"category",data:this.topRefersCat,splitLine:{show:!0},axisTick:{show:!1},axisLabel:{show:!0,inside:!0,fontWeight:"bold"},axisLine:{show:!1}}],series:[{id:"source_clicks",type:"bar",barCategoryGap:"0%",name:this.$t("chart.clicks"),itemStyle:{normal:{color:"rgba(51, 152, 219, 0.2)"},emphasis:{color:"rgba(51, 152, 219, 0.4)"}},label:{normal:{show:!0,color:"rgb(51, 138, 207)",fontWeight:"bold",position:"insideRight",formatter:function(e){var a=e.value/t.total*100;return a=a||0,(Math.round(100*a)/100).toLocaleString()+"%"},fontSize:14}},data:this.topReferrers||[]}]}}},created:function(){this.getData()},methods:{modifySources:function(t){var e=n.sortBy(t.dataset.map(function(t){return{source:t.source,value:t.hits}}),"value"),a=e.find(function(t){return"m.facebook.com"==t.source}),i=e.find(function(t){return"lm.facebook.com"==t.source});return a&&i&&(e.push({source:"facebook.com",value:a.value+i.value}),e=e.filter(function(t){return!["m.facebook.com","lm.facebook.com"].includes(t.source)})),e},loadData:function(){var t=this,e=this.getUserTeamApiUrl("analytics/{hash}/sources/top",{hash:this.hash||""});return this.getAnalytics(e).then(function(e){var a=e.data;t.total=a.total;var i=t.modifySources(a);t.topReferrers=[{source:"Other Domains",value:t.total-a.direct-n.sumBy(i,"value")}].concat(s(i),[{source:"Direct, Email, Sms",value:a.direct}]),0===t.topReferrers[0].value&&t.topReferrers.shift(),t.topRefersCat=n.map(t.topReferrers,function(t){return t.source})}).catch(function(){t.total=0,t.topRefersCat=[],t.topReferrers=[],(0,r.FF)("Failed to load top referrers chart data.")})}}};const c=(0,a(14486).A)(l,function(){var t=this,e=t._self._c;return e("div",{staticClass:"card card-body",attrs:{"data-test-id":"stats_top_referrer_card"}},[e("h4",{staticClass:"chart-title mb-2"},[t._v("\n    "+t._s(t.$t("chart.title.top_referrer"))+"\n  ")]),t._v(" "),t.isChartReady?e("v-chart",{ref:"top-refers-chart",staticStyle:{width:"100%",height:"300px"},attrs:{options:t.referersOptions}}):e("Spinner")],1)},[],!1,null,null,null).exports},43159(t,e,a){a.r(e),a.d(e,{default:()=>l});var i=a(77757),r=a(91212),n=a(95093),s=a(2543);const o={name:"StatsTimeline",mixins:[i.A],props:{hash:{type:String,required:!1,default:""}},data:function(){return{clicks:[],interval:"hour"}},computed:{datetimeFormat:function(){return"minute"===this.interval?{short:"h:mm a",long:"MMM Do h:mm a"}:"hour"===this.interval?{short:"h a",long:"MMM Do h a"}:"day"===this.interval?{short:"MMM Do",long:"MMM Do YYYY"}:"week"===this.interval?{short:"YYY Wo",long:"MMM YYYY, Wo"}:"month"===this.interval?{short:"YYY Mo",long:"MMM YYYY"}:{short:"Y-MM-DD HH:mm",long:"Y-MM-DD HH:mm"}},dateTimeFormatAxis:function(t,e){var a=this.datetimeFormat;return function(t,e){var i=n(t).format(a.short);return void 0!==e&&0!==e||(i=n(t).format(a.long)),i}},timelineX:function(){var t=this;return{legend:{top:"0"},dataZoom:[{type:"slider",minSpan:20}],grid:{left:"6%",top:"8%",right:"2%",bottom:"0",containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},backgroundColor:"rgba(240,240,240,0.8)",formatter:function(e){var a=n(s.first(e).value[0]).format(t.datetimeFormat.long),i="<div class='p-2 text-dark'>";return i+="<h4 class='mb-1'>".concat(a,"</h4>"),i+="<p class='mb-1 font-weight-semibold'>".concat(t.$t("chart.total_clicks"),": ").concat(e[0].data[1],"</p>"),i+="<p class='mb-1'>".concat(e[2].marker," ").concat(e[2].seriesName,": ").concat(e[0].value[2],"</p>"),i+="<p class='mb-1'>".concat(t.$t("chart.human_clicks"),": ").concat(e[0].data[3],"</p>"),i+="<p class='mb-1'>".concat(e[1].marker," ").concat(e[1].seriesName,": ").concat(e[0].value[5],"</p>"),i+="<p  class='mb-1'>".concat(e[0].marker," ").concat(e[0].seriesName,": ").concat(e[0].value[4],"</p>"),i+="</div>"}},toolbox:{show:!0,feature:{restore:{show:!0,title:this.$t("chart.restore")},saveAsImage:{show:!0,title:this.$t("chart.save_as_image")}}},dataset:{source:this.clicks,dimensions:["date","total","bots","humans","unique","nonUnique"]},xAxis:[{type:"time",axisLabel:{formatter:this.dateTimeFormatAxis,rotate:45},splitLine:{show:!1}
1,axisLine:{show:!1},axisTick:{length:10},minorTick:{show:!0,length:4}}],yAxis:[{type:"value",axisLine:{show:!1},axisTick:{show:!1}}],series:[{id:"unique_clicks",type:"bar",stack:"one",areaStyle:{opacity:.3},itemStyle:{color:"#002a61"},name:this.$t("chart.unique_clicks"),encode:{x:"date",y:"unique"}},{id:"nonunique_clicks",type:"bar",stack:"one",areaStyle:{opacity:.3},name:this.$t("chart.nonunique_clicks"),itemStyle:{color:"#9bc225"},encode:{x:"date",y:"nonUnique"}},{id:"bot_clicks",type:"bar",stack:"one",areaStyle:{opacity:.3},name:this.$t("chart.bot_clicks"),itemStyle:{color:"#def1d5"},encode:{x:"date",y:"bots"}}]}}},mounted:function(){this.getData()},methods:{loadData:function(){var t=this,e=this.getUserTeamApiUrl("analytics/{hash}/timeline",{hash:this.hash||""});return this.getAnalytics(e,{useBots:!0}).then(function(e){var a=e.data;t.interval=a.interval,t.clicks=a.dataset.map(function(t){var e=t.human-t.unique,a=e>0?e:0,i=t.total-t.human,r=i>0?i:0;return[n(t.datetime).format(),t.total,r,t.human,t.unique,a]})}).catch(function(){t.clicks=[],(0,r.FF)("Failed to load timeline chart data.")})}}};const l=(0,a(14486).A)(o,function(){var t=this,e=t._self._c;return e("div",{staticClass:"card card-body",attrs:{"data-test-id":"stats_timeline_card"}},[e("h4",{staticClass:"chart-title mb-2"},[t._v("\n    "+t._s(t.$t("chart.title.timeline"))+"\n  ")]),t._v(" "),t.isChartReady?e("v-chart",{ref:"timeline-chart",staticStyle:{width:"100%","min-height":"200px","max-height":"300px"},attrs:{options:t.timelineX}}):e("Spinner")],1)},[],!1,null,null,null).exports},48683(t,e,a){a.r(e),a.d(e,{default:()=>_});var i=a(95353),r=a(77757),n=a(46456),s=a(43159),o=a(25069),l=a(96673),c=a(58888),u=a(27704),d=a(54584),h=a(67086),f=a(77063),p=a(2543);function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function v(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,i)}return a}function y(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?v(Object(a),!0).forEach(function(e){g(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):v(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}function g(t,e,a){return(e=function(t){var e=function(t,e){if("object"!=m(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var i=a.call(t,e||"default");if("object"!=m(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==m(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const b={name:"AllStats",components:{StatsQuick:n.default,StatsTimeline:s.default,StatsMap:o.default,StatsHourly:l.default,StatsDaily:c.default,StatsSources:u.default,StatsLanguages:d.default,StatsGeneral:h.default},mixins:[r.A],setup:function(){return{notifyError:(0,f.A)().notifyError}},data:function(){return{quick:null,hasError:!1,error:void 0}},computed:y(y(y({},(0,i.L8)({getStatsUrls:"statsUrls",getStatsTags:"statsTags"})),(0,i.L8)(["user","urls","statsDatetime"])),{},{hash:function(){return this.$route.params.hash},hasAnalytics:function(){return null!==this.quick&&p.some(this.quick,function(t){return t>0})},aliasList:{get:function(){return this.getStatsUrls},set:function(t){this.setStatsUrls(t)}},tagsList:{get:function(){return this.getStatsTags},set:function(t){this.setStatsTags(t)}}}),watch:{$route:function(t,e){window.dispatchEvent(new Event("resize")),!0!==t.params.keepQuery||p.isEmpty(e.query)?this.queryToVuex(t.query):this.$router.replace({query:e.query,params:{keepQuery:!1}})},teamMode:function(){0===this.aliasList.length&&0===this.tagsList.length&&Bus.$emit("refreshStats")},team:function(){0===this.aliasList.length&&0===this.tagsList.length&&Bus.$emit("refreshStats")}},mounted:function(){this.loadData()},created:function(){this.queryToVuex(this.$route.query)},methods:y(y({},(0,i.PY)({setStatsUrls:"statsUrls",setStatsTags:"statsTags"})),{},{safeSet:function(t,e){p.isEqual(this[t],e)||(this[t]=e)},queryToVuex:function(t){void 0!==t.alias?this.safeSet("aliasList",[t.alias].flat()):this.safeSet("aliasList",[]),void 0!==t.tags?this.safeSet("tagsList",[t.tags].flat()):this.safeSet("tagsList",[])}
1,loadData:function(){var t=this;return this.getAnalytics(this.getUserTeamApiUrl("analytics/{hash}/summary",{hash:this.hash||""})).then(function(e){var a=e.data;t.quick=a.dataset,t.hasError=!1,t.error=void 0}).catch(function(e){t.quick=null,t.notifyError({text:t.$t("chart.cant_load_data")}),t.hasError=!0,t.error=e})}})};const _=(0,a(14486).A)(b,function(){var t=this,e=t._self._c;return t.hasAnalytics?e("div",{staticClass:"stats-container"},[e("StatsQuick",{attrs:{quick:t.quick}}),t._v(" "),e("div",{staticClass:"row dashboard-stats"},[e("div",{staticClass:"col-12"},[e("StatsTimeline",{attrs:{hash:t.hash}})],1),t._v(" "),e("div",{staticClass:"col-12"},[e("StatsMap",{attrs:{hash:t.hash}})],1),t._v(" "),e("div",{staticClass:"col-lg-6"},[e("StatsHourly",{attrs:{hash:t.hash}})],1),t._v(" "),e("div",{staticClass:"col-lg-6"},[e("StatsDaily",{attrs:{hash:t.hash}})],1),t._v(" "),e("div",{staticClass:"col-lg-6"},[e("StatsSources",{attrs:{hash:t.hash}})],1),t._v(" "),e("div",{staticClass:"col-lg-6"},[e("StatsLanguages",{attrs:{hash:t.hash}})],1),t._v(" "),e("div",{staticClass:"col-lg-12"},[e("StatsGeneral",{attrs:{hash:t.hash}})],1)])],1):t.isChartLoading?e("div",{staticClass:"flex-center-center h-100"},[e("Spinner")],1):t.hasError?e("div",{staticClass:"flex-center flex-column flex-grow-1 text-center my-3"},[e("h5",{staticClass:"text-muted mb-0"},[t._v("\n    Error\n  ")]),t._v(" "),e("h2",{staticClass:"text-dark"},[t._v("\n    Loading analytics failed\n  ")]),t._v(" "),e("p",{staticClass:"text-dark"},[t._v("\n    We are currently experiencing issues with analytics. Please try again\n    later. If the issue persists please\n    "),e("router-link",{attrs:{to:{name:"freescout"},target:"_blank"}},[e("span",[t._v("contact support")])]),t._v(".\n  ")],1),t._v(" "),e("div",{staticClass:"dashboard-no-stats-figure w-100",staticStyle:{"background-image":"url(/images/analytics/block3.png)"}})]):e("div",{staticClass:"flex-center flex-column flex-grow-1 text-center my-3"},[e("h5",{staticClass:"text-muted mb-0",attrs:{"data-test-id":"stats_notice_no_clicks_for_period"}},[t._v("\n    No one clicked\n  ")]),t._v(" "),e("h2",{staticClass:"text-dark",attrs:{"data-test-id":"stats_notice_no_clicks_for_period_select_time"}},[t._v("\n    Select a different time period\n  ")]),t._v(" "),e("p",{staticClass:"text-dark",attrs:{"data-test-id":"stats_notice_no_clicks_for_period_text"}},[t._v("\n    You have not had any clicks for "+t._s(t.statsDatetime.label)+". Please try a\n    different time period.\n  ")]),t._v(" "),e("div",{staticClass:"dashboard-no-stats-figure w-100",staticStyle:{"background-image":"url(/images/analytics/block3.png)"}})])},[],!1,null,null,null).exports},85507(t,e,a){a.r(e),a.d(e,{default:()=>h});var i=a(95353),r=a(9887),n=a(62204),s=a(77063);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function l(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,i)}return a}function c(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?l(Object(a),!0).forEach(function(e){u(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}function u(t,e,a){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var i=a.call(t,e||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const d={name:"AffiliateOptionPop",components:{FormSwitch:r.default,PopoverContent:n.default},setup:function(){return{notifySuccess:(0,s.A)().notifySuccess}},data:function(){return{initializing:!0,showSwitcher:!1,affiliate:!0,form:new SparkForm({no_affiliate:!1})}},computed:c({},(0,i.L8)(["isUserLoggedIn","userStatusNoAffiliate"])),watch:{affiliate:function(){this.initializing||this.save()}},created:function(){var t=this;this.form.no_affiliate=this.userStatusNoAffiliate,this.showSwitcher=this.userStatusNoAffiliate,this.affiliate=!this.userStatusNoAffiliate,this.$nextTick(function(){t.initializing=!1})},methods:c(c({},(0,i.i0)(["refreshState"])),{},{toggleSwitcher:function(){this.isUserLoggedIn?this.showSwitcher=!this.showSwitcher:this.$router.push({name:"register"})},close:function(){this.form.busy||this.$router.replace({name:"homepage"})},save:function(){var t=this;this.form.no_affiliate=!this.affiliate;var e=this.$apiUrl("settings/profile/status");Spark.patch(e,this.form).then(function(){t.refreshState(),t.notifySuccess({text:t.$t("tinyurl_affiliated_saved")})}).catch(function(){t.affiliate=!t.affiliate})}})};const h=(0,a(14486).A)(d,function(){var t=this,e=t._self._c;return e("PopoverContent",{attrs:{close:t.close,"enable-footer":!1,width:"w-450"},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n    "+t._s(t.$t("title.affiliate_link_disclosure"))+"\n  ")]},proxy:!0}])},[t._v(" "),e("div",{staticClass:"font-weight-normal p-3 text-sm _affiliate-disclosure"},[e("p",[t._v("\n      TinyURL has partnered with\n      "),e("a",{staticClass:"_sovrn-l
1ink",attrs:{href:"https://www.sovrn.com/",target:"_blank"}},[t._v("Sovrn Commerce")]),t._v(" to\n      automatically affiliate commercial links on our site.\n    ")]),t._v(" "),e("p",[t._v("\n      When someone using a free plan creates a TinyURL link that links to a\n      website affiliated with Sovrn Commerce, we tag that link as an affiliate\n      link that TinyURL may receive a commission for.\n    ")]),t._v(" "),e("p",[t._v("\n      This helps TinyURL cover the costs of running the free portion of our\n      service and ensures that short links made for free using our site never\n      expire.\n    ")]),t._v(" "),e("p",{staticClass:"font-weight-bold"},[t._v("\n      Affiliated TinyURL links redirect to their intended destination pages.\n    ")]),t._v(" "),e("p",{staticClass:"mb-4"},[t._v("\n      To prevent your free, short links from being automatically affiliated,\n      you can\n      "),e("router-link",{staticClass:"_affiliate-pricing-link",attrs:{to:{name:"signup.pricing"}}},[t._v("\n        purchase a TinyURL subscription\n      ")]),t._v("\n      or\n      "),e("a",{staticClass:"_affiliate-disable-link",attrs:{href:""},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.toggleSwitcher()}}},[t._v("disable it using the button below")]),t._v(".\n    ")],1),t._v(" "),t.showSwitcher?[e("div",{staticClass:"flex-center-center mb-2"},[e("span",{staticClass:"text-dark font-weight-seminormal"},[t._v("\n          Affiliate TinyURLs\n        ")]),t._v(" "),e("FormSwitch",{staticClass:"px-2 _affiliate-switch",attrs:{"accessibility-label":"Affiliate TinyURL Toggler","input-id":"affiliateSwitcher"},model:{value:t.affiliate,callback:function(e){t.affiliate=e},expression:"affiliate"}}),t._v(" "),e("label",{staticClass:"text-dark font-weight-seminormal m-0 _affiliate-state",attrs:{for:"affiliateSwitcher"}},[t._v("\n          "+t._s(t.affiliate?"Enabled":"Disabled")+"\n        ")])],1),t._v(" "),t.affiliate?t._e():e("div",{staticClass:"offset-2 alert alert-success m-4 _affiliate-support"},[t._v("\n        Please consider supporting TinyURL by\n        "),e("router-link",{staticClass:"_affiliate-subscribing-link",attrs:{to:{name:"signup.pricing"}}},[t._v("\n          subscribing to one of our subscriptions\n        ")])],1)]:t._e()],2)])},[],!1,null,null,null).exports},90810(t,e,a){a.r(e),a.d(e,{default:()=>r});const i={name:"ConfirmClearHistoryPop",components:{PopoverContent:a(62204).default},data:function(){return{form:new SparkForm({})}},methods:{clearHistory:function(){var t=this;Spark.delete(this.$apiUrl("urls/history"),this.form).then(function(){t.$router.replace({name:"my-urls"})})},close:function(t,e){this.form.busy||this.$router.replace({name:e?"homepage":"my-urls"})}}};const r=(0,a(14486).A)(i,function(){var t=this,e=t._self._c;return e("PopoverContent",{attrs:{close:t.close,"enable-footer":!1,width:"w-450"}},[e("h3",{staticClass:"m-3 font-weight-semibold title text-dark"},[t._v("\n    "+t._s(t.$t("title.clear_history"))+"\n  ")]),t._v(" "),e("div",{staticClass:"m-3 small"},[e("p",[t._v("\n      Once deleted, your TinyURL can no longer be associated with an account\n      and can not be changed nor edited.\n    ")]),t._v(" "),e("p",{staticClass:"small text-muted"},[t._v("\n      Clearing recent TinyURLs list is a permanent action cannot be reversed\n    ")])]),t._v(" "),e("div",{staticClass:"text-center"},[e("button",{staticClass:"btn btn-danger w-75 mt-3",on:{click:t.clearHistory}},[t.form.busy?e("i",{staticClass:"fa fa-spinner fa-spin"}):t._e(),t._v("\n      Clear History\n    ")])])])},[],!1,null,null,null).exports},87245(t,e,a){a.r(e),a.d(e,{default:()=>m});var i=a(95353),r=a(32252),n=a.n(r),s=a(33428),o=a(62204),l=a(30770);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,i)}return a}function d(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};
1e%2?u(Object(a),!0).forEach(function(e){h(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}function h(t,e,a){return(e=function(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var i=a.call(t,e||"default");if("object"!=c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const f={name:"ListPop",metaInfo:function(){return{title:"My URLs | TinyURL: The Original Link Shortener",meta:[{vmid:"description",name:"description",content:"View the links stored since your last session and track your link clicks."},{vmid:"robots",name:"robots",content:"nofollow"}]}},components:{PopoverContent:o.default,UrlListItem:l.default,InfiniteLoading:n()},mixins:[s.A],data:function(){return{infiniteId:0,isInfiniteLoading:!1,total:0,allowed:!1}},computed:d(d({},(0,i.L8)(["canUseAnalytics","getUrlsCurrentPage","urls","user","isUserLoggedIn"])),{},{urlsLimited:function(){var t=this.urls.length;return t>=this.allowed&&t<this.total},hasUrls:function(){return this.urls.length>0},urlsListRequestUrl:function(){return this.getUserTeamApiUrl("urls?page={pageId}",{pageId:this.getUrlsCurrentPage+1})}}),watch:{user:function(){this.reloadList()},teamMode:function(){this.reloadList()},team:function(t,e){this.teamMode&&t.id!==e.id&&this.reloadList()},canUseAnalytics:function(){this.canUseAnalytics&&this.$router.replace({name:"homepage",query:{}})}},created:function(){Bus.$on("tinyurl-created",this.reloadList),Bus.$on("tinyurl-archived",this.reloadList)},mounted:function(){this.reloadList()},beforeDestroy:function(){Bus.$off("tinyurl-created"),Bus.$off("tinyurl-archived")},methods:d(d({},(0,i.PY)(["RESET_URLS","ADD_URLS","SET_URLS_CURRENT_PAGE"])),{},{infiniteHandler:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{loaded:function(){},complete:function(){},error:function(){}};this.isInfiniteLoading?setTimeout(function(){e.loaded()},20):(this.isInfiniteLoading=!0,axios.get(this.urlsListRequestUrl).then(function(a){var i=a.data;t.total=i.total,t.allowed=i.allowed,t.SET_URLS_CURRENT_PAGE(i.currentPage),t.ADD_URLS(i.data),(i.hasMore||i.data.length>0)&&e.loaded(),i.hasMore||e.complete()}).catch(function(){e.error()}).finally(function(){t.isInfiniteLoading=!1}))},reloadList:function(){this.RESET_URLS(),this.infiniteId++},close:function(t){this.$router.push({name:"homepage",params:{keepQuery:!0}})},clearHistory:function(){this.$router.push({name:"clear-history"})}})},p=f;const m=(0,a(14486).A)(p,function(){var t=this,e=t._self._c;return e("PopoverContent",{attrs:{"data-test-id":"myurls_section",close:t.close,"enable-footer":!1,width:"w-650"},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n    "+t._s(t.$t("title.recent_tinuyrls"))+"\n  ")]},proxy:!0}])},[t._v(" "),e("div",{staticClass:"m-3"},[e("router-link",{staticClass:"btn btn-block btn-outline-blue btn-sm",attrs:{id:"home_panelURLs_button_allstats",to:{name:"signup.pricing",params:{keepQuery:!0}}}},[t._v("\n      Get Full Detailed Stats\n    ")])],1),t._v(" "),t.hasUrls?t._l(t.urls,function(t,a){return e("UrlListItem",{key:a,staticClass:"mb-3",attrs:{index:a}})}):t._e(),t._v(" "),e("InfiniteLoading",{attrs:{spinner:"circles",identifier:t.infiniteId},on:{infinite:t.infiniteHandler}},[e("div",{directives:[{name:"show",rawName:"v-show",value:!t.hasUrls,expression:"!hasUrls"}],attrs:{slot:"no-results"},slot:"no-results"},[e("span",{staticClass:"font-weight-semibold p-3 text-center"},[t._v("\n        "+t._s(t.$t("no_urls_in_history"))+"\n      ")])]),t._v(" "),e("div",{staticClass:"flex-center-between text-left mx-3",attrs:{slot:"no-more"},slot:"no-more"},[e("p",{staticClass:"font-weight-semibold mb-0",attrs:{"data-test-id":"myurls_section_limit_history_msg"}},[t.urlsLimited?[t._v("\n          "+t._s(t.$t("no_more_allowed_urls_in_history",{loaded:t.urls.length,total:t.total}))+"\n          "),e("router-link",{staticClass:"text-blue",attrs:{"data-test-id":"register_link_myurls_page",to:{name:"register"}}},[t._v("\n            Register Now\n          ")]),t._v("\n          to show all your links.\n        ")]:[t._v("\n          "+t._s(t.$t("no_more_urls_in_history"))+"\n        ")]],2),t._v(" "),t.isUserLoggedIn?t._e():e("button",{staticClass:"btn btn-sm btn-teal text-nowrap",attrs:{"data-test-id":"myurls_section_clear_history_btn"},on:{click:t.clearHistory}},[t._v("\n        Clear History\n      ")]),t._v(" "),e("button",{staticClass:"d-none",attrs:{tabindex:"-1"}},[t._v("\n        For sr-only only. See KBOARD-206\n      ")])]),t._v(" "),e("div",{staticClass:"p-2 font-weight-semibold",attrs:{slot:"error"},slot:"error"},[t._v("\n      "+t._s(t.$t("something_went_wrong"))+"\n    ")])])],2)},[],!1,null,null,null).exports},30770(t,e,a){a.r(e),a.d(e,{default:()=>b});var i=a(95353),r=a(1954),n=a(50317),s=a(11018),o=a(75903),l=a(40783),c=a(73159),u=a(37332),d=a(20190),h=a(10741),f=a(2543);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function m(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,i)}return a}function v(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};
1e%2?m(Object(a),!0).forEach(function(e){y(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):m(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}function y(t,e,a){return(e=function(t){var e=function(t,e){if("object"!=p(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var i=a.call(t,e||"default");if("object"!=p(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==p(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const g={components:{VClamp:r.A,VisitTinyurl:s.default,QRDropdown:o.default,ShareDropdown:l.default,CopyTinyurl:c.default,Favicon:u.default},mixins:[n.A],props:{index:{type:Number,default:0}},setup:function(){return{toRelativeTime:h.d6}},data:function(){return{isRenaming:!1,isTagsUpdating:!1,updateAliasForm:new SparkForm({domain:"",alias:"",new_alias:""})}},computed:v(v({},(0,i.L8)(["isOnMobile","urls","user","isUserLoggedIn","userVerified","locale"])),{},{currentUrl:function(){return f.get(this.urls,this.index)},mainAliasData:function(){return f.find(this.currentUrl.aliases,function(t){return t.is_main})},mainAliasUri:function(){return decodeURI(this.mainAliasData.tiny_url)},alias:function(){return this.mainAliasData.alias?this.mainAliasData.alias:this.currentUrl.hash},isAliasAffiliated:function(){return this.mainAliasData.affiliates},shareUrl:function(){return"https://"+this.mainAliasData.domain+"/"+this.mainAliasData.alias},renameInputId:function(){return"alias-rename-"+this.index},canRename:function(){return this.isUserLoggedIn&&this.userVerified},editTooltip:function(){return{content:"Please purchase a subscription to edit the destination URL",trigger:this.isOnMobile?"click":"focus hover"}},renameTooltip:function(){return{content:this.isUserLoggedIn?this.userVerified?"Change your shortened URL":"Please verify your email to change your shortened URL":"Please login to change your shortened URL",trigger:this.isOnMobile?"click":"focus hover"}}}),created:function(){Bus.$on("tinyurl-created",this.cancelRenaming),Bus.$on("url-updating",this.cancelRenaming),Bus.$on("url-updated",this.cancelRenaming)},beforeDestroy:function(){Bus.$off("tinyurl-created"),Bus.$off("url-updating"),Bus.$off("url-updated")},methods:v(v({},(0,i.PY)(["UPDATE_URL"])),{},{archiveAlias:function(t){this.userVerified?Bus.$emit("showModal",d.default,{aliasData:t}):this.$router.push({name:"email_verify"})},cancelRenaming:function(){this.updateAliasForm.errors.forget(),this.isRenaming=!1},keyboardRenameHandler:function(t){"Enter"===t.key?this.renameTinyurl():"Escape"===t.key&&this.cancelRenaming()},renameTinyurl:function(){var t=this;f.isEmpty(this.updateAliasForm.new_alias)&&this.updateAliasForm.setErrors({new_alias:[this.$t("new_alias_required")]}),Spark.post(this.$apiUrl("update"),this.updateAliasForm).then(function(e){var a=e.data;t.UPDATE_URL({index:t.index,aliases:a.aliases}),Bus.$emit("url-updated",t.index)})},startRenaming:function(){var t=this;this.isRenaming||(this.isUserLoggedIn?this.userVerified?(Bus.$emit("url-updating",this.index),this.updateAliasForm.errors.forget(),this.updateAliasForm.domain=this.mainAliasData.domain,this.updateAliasForm.alias=this.alias,this.updateAliasForm.new_alias=this.alias,this.isRenaming=!0,this.$nextTick(function(){document.getElementById(t.renameInputId).select()})):this.$router.push({name:"email_verify"}):this.$router.push({name:"register"}))}})};const b=(0,a(14486).A)(g,function(){var t=this,e=t._self._c;return e("div",{staticClass:"border d-flex mx-3 p-3",attrs:{"data-test-id":"homepage_tinyurl_list_item"}},[e("div",{staticClass:"d-none d-sm-block mr-2"},[e("Favicon",{attrs:{hostname:t.currentUrl.host,size:"32px",url:t.currentUrl.url}})],1),t._v(" "),e("div",{staticClass:"flex-grow-1"},[e("div",{staticClass:"position-relative"},[t.isAliasAffiliated?e("div",{staticClass:"d-flex mt-1 ml-2",staticStyle:{float:"right"}},[e("router-link",{staticClass:"text-dark text-xs text-nowrap",attrs:{to:{name:"affiliateOptionPop"}}},[t._v("\n          Affiliate link\n        ")]),t._v(" "),e("i",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:t.$t("tinyurl_affiliated_notice"),trigger:t.isOnMobile?"click":"focus hover"},expression:"{\n            content: $t('tinyurl_affiliated_notice'),\n            trigger: isOnMobile ? 'click' : 'focus hover',\n          }"}],staticClass:"fa fa-info-circle ml-1 text-blue",attrs:{tabindex:"0"}})],1):t._e(),t._v(" "),t.isRenaming?e("div",{staticClass:"input-group flex-grow-0 flex-shrink-1 d-flex",attrs:{"data-test-id":"tinyurl_rename_section"}},[e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text",attrs:{"data-test-id":"tinyurl_rename_new_domain"}},[t._v("\n            "+t._s(t.mainAliasData.tiny_url.replace(t.mainAliasData.alias,""))+"\n          ")])]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.updateAliasForm.new_alias,expression:"updateAliasForm.new_alias"}
1],staticClass:"form-control",class:{"is-invalid":t.updateAliasForm.errors.hasErrors()},attrs:{id:t.renameInputId,type:"text","aria-label":"New alias"},domProps:{value:t.updateAliasForm.new_alias},on:{keydown:t.keyboardRenameHandler,input:function(e){e.target.composing||t.$set(t.updateAliasForm,"new_alias",e.target.value)}}}),t._v(" "),e("div",{staticClass:"input-group-append"},[e("button",{staticClass:"btn btn-outline-green",attrs:{"data-test-id":"tinyurl_rename_save_btn","aria-label":"Save changes"},on:{click:t.renameTinyurl}},[e("i",{staticClass:"fa fa-check"})]),t._v(" "),e("button",{staticClass:"btn btn-outline-danger rounded-right",attrs:{"data-test-id":"tinyurl_rename_cancel_btn","aria-label":"Cancel renaming"},on:{click:t.cancelRenaming}},[e("i",{staticClass:"fas fa-times"})])]),t._v(" "),e("div",{staticClass:"invalid-feedback",attrs:{role:"alert"}},[t._v("\n          "+t._s(t.updateAliasForm.errors.flatten()[0])+"\n        ")])]):e("div",{staticClass:"font-weight-semibold text-break",attrs:{"data-test-id":"homepage_tinyurl_list_item_link_short"}},[t._v("\n        "+t._s(t.mainAliasData.domain+"/"+t.mainAliasData.alias)+"\n      ")])]),t._v(" "),e("div",{staticClass:"small text-lime-dark"},[e("v-clamp",{staticStyle:{position:"relative","word-break":"break-all"},attrs:{"data-test-id":"homepage_tinyurl_list_item_link_long",autoresize:"","max-lines":2},scopedSlots:t._u([{key:"after",fn:function(a){var i=a.toggle,r=a.clamped,n=a.expanded;return e("div",{staticClass:"v-clamp-toggler-1"},[r||n?e("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:"".concat(r?"Expand":"Collapse"," long URL"),placement:"top",trigger:t.isOnMobile?"click":"focus hover"},expression:"{\n              content: `${clamped ? 'Expand' : 'Collapse'} long URL`,\n              placement: 'top',\n              trigger: isOnMobile ? 'click' : 'focus hover',\n            }"}],staticClass:"v-clamp-toggler-1--clicker",class:{"cursor-pointer":r||n},attrs:{tabindex:"0"},on:{click:i}}):t._e()])}}])},[t._v("\n        "+t._s(t.currentUrl.url)+"\n\n        ")])],1),t._v(" "),e("div",{staticClass:"flex-center-between flex-wrap"},[e("div",{staticClass:"w-100 text-left"},[t.mainAliasData.created_at?e("small",{staticClass:"text-muted text-right flex-shrink-0",attrs:{id:"homepage_tinyurl_list_item_timestamp"}},[t._v("\n          "+t._s(t.toRelativeTime(t.mainAliasData.created_at))+"\n        ")]):t._e()]),t._v(" "),e("div",{staticClass:"d-flex flex-wrap mt-1"},[e("VisitTinyurl",{attrs:{prefix:"homepage",url:t.mainAliasUri,size:"sm"}}),t._v(" "),e("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.renameTooltip,expression:"renameTooltip"}],staticClass:"btn btn-sm btn-teal text-nowrap mr-1 mb-1",class:{opac:!t.canRename},attrs:{"data-test-id":"homepage_tinyurl_list_item_rename_btn",disabled:t.isRenaming},on:{click:t.startRenaming}},[t._v("\n          "+t._s(t.$t("rename"))+"\n        ")]),t._v(" "),e("router-link",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.editTooltip,expression:"editTooltip"}],staticClass:"btn btn-sm btn-teal text-nowrap mr-1 mb-1 opac",attrs:{to:{name:"signup.pricing"},"data-test-id":"homepage_tinyurl_list_item_edit_btn"}},[t._v("\n          "+t._s(t.$t("edit"))+"\n        ")]),t._v(" "),e("QRDropdown",{attrs:{prefix:"homepage",url:t.mainAliasUri,size:"sm"}}),t._v(" "),e("ShareDropdown",{attrs:{prefix:"homepage",url:t.mainAliasUri,size:"sm"}}),t._v(" "),e("CopyTinyurl",{attrs:{prefix:"homepage",url:t.mainAliasUri,size:"sm"}}),t._v(" "),t.isUserLoggedIn?e("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:"Remove from list",trigger:t.isOnMobile?"click":"focus hover"},expression:"{\n            content: 'Remove from list',\n            trigger: isOnMobile ? 'click' : 'focus hover',\n          }"}],staticClass:"btn btn-sm btn-outline-danger mr-1 mb-1",attrs:{"data-test-id":"homepage_tinyurl_list_item_remove_btn"},on:{click:function(e){return t.archiveAlias(t.mainAliasData)}}},[e("i",{staticClass:"fa-solid fa-trash"})]):t._e()],1)])])])},[],!1,null,null,null).exports},20190(t,e,a){a.r(e),a.d(e,{default:()=>n});const i={name:"ConfirmArchiveFreeTinyurl",mixins:[a(33428).A],props:{aliasData:{type:Object,required:!0}},data:function(){return{form:new SparkForm({domain:"",alias:""})}},methods:{close:function(){this.form.busy||this.$emit("close")},deleteAlias:function(){var t=this;this.form.domain=this.aliasData.domain,this.form.alias=this.aliasData.alias;var e=this.getUserTeamApiUrl("archive");Spark.patch(e,this.form).then(function(t){var e=t.data;Bus.$emit("tinyurl-archived",e)}).finally(function(){t.close()})}}};var r=(0,a(14486).A)(i,function(){var t=this,e=t._self._c;return e("focus-trap",[e("div",{staticClass:"modal d-block",attrs:{tabindex:"-1"},on:{click:function(e){return e.target!==e.currentTarget?null:t.close.apply(null,arguments)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.close.apply(null,arguments)}}},[e("div",{staticClass:"modal-dialog modal-dialog-centered modal
1-557px"},[e("div",{staticClass:"modal-content"},[e("div",{staticClass:"modal-header"},[e("h5",{staticClass:"modal-title font-weight-bold"},[t._v("\n            Remove TinyURL from List\n          ")])]),t._v(" "),e("div",{staticClass:"modal-body"},[e("p",[t._v("\n            Removing a TinyURL will make the URL not show up in your list of\n            TinyURLs, but the TinyURL will still function.\n          ")]),t._v(" "),e("p",{staticClass:"mb-0"},[t._v("\n            This action cannot be undone.\n          ")])]),t._v(" "),e("div",{staticClass:"modal-footer"},[e("button",{staticClass:"btn btn-default",attrs:{type:"button"},on:{click:t.close}},[t._v("\n            No, Go Back\n          ")]),t._v(" "),e("button",{staticClass:"btn btn-danger",attrs:{type:"button",disabled:t.form.busy},on:{click:t.deleteAlias}},[t.form.busy?e("span",[e("i",{staticClass:"fa fa-btn fa-spinner fa-spin"}),t._v(" Removing\n            ")]):e("span",[t._v("Remove from list")])])])])])])])},[],!1,null,null,null);const n=r.exports},62204(t,e,a){a.r(e),a.d(e,{default:()=>o});var i=a(99499),r=a(2543);const n={name:"PopOverContent",mixins:[i.co],props:{close:{type:Function,default:null},closeIcon:{type:String,default:"fa-times"},enableFooter:{type:Boolean,default:!0},width:{type:String,default:"w-650"}},data:function(){return{load:!1}},created:function(){Bus.$emit("closePopover2"),Bus.$on("closePopover1",this.closePopover)},beforeDestroy:function(){Bus.$off("closePopover1")},methods:{clickAwayClose:function(t){var e=t.path||t.composedPath&&t.composedPath(),a=r.findIndex(e,function(t){return"HEADER"===t.nodeName})>-1,i=r.findIndex(e,function(t){return"vue-notification-group"===t.className})>-1,n=r.findIndex(e,function(t){return"modal"===t.className||"v--modal-background-click"===t.className})>-1;a||n||i||this.closePopover(t,!0)},closePopover:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];null===this.close?this.$router.push({name:"homepage",params:{keepQuery:!0}}):this.close(t,e)},contentVisible:function(){var t=this;this.$nextTick(function(){t.$refs.popover.focus()})}}},s=n;const o=(0,a(14486).A)(s,function(){var t=this,e=t._self._c;return e("focus-trap",[e("div",{staticClass:"pop-content",attrs:{role:"document"}},[e("div",{staticClass:"pop-content-backdrop",on:{click:t.clickAwayClose}},[e("span",{staticClass:"sr-only"},[t._v("Popover Backdrop")])]),t._v(" "),e("div",{staticClass:"pop-content-data",class:t.width},[e("div",{staticClass:"border-bottom p-3"},[t._t("actions",function(){return[e("div",{staticClass:"flex-center-between"},[t.$slots.title?e("h5",{staticClass:"font-weight-semibold mb-0 _popover-title"},[t._t("title")],2):t._e(),t._v(" "),e("button",{staticClass:"btn btn-outline-dark ml-auto _popover-close",staticStyle:{padding:"9px 12px"},attrs:{"aria-label":"Close"},on:{click:t.closePopover}},[e("i",{staticClass:"fa fa-lg",class:[t.closeIcon]})])])]})],2),t._v(" "),e("transition",{attrs:{name:"fade",appear:"",mode:"out-in"},on:{enter:t.contentVisible}},[e("div",{ref:"popover",staticClass:"flex-grow-1 overflow-y-a",attrs:{tabindex:"-1"}},[t._t("default",function(){return[e("div",{staticClass:"container-fluid my-5"},[e("div",{staticClass:"my-4"},[e("h5",{staticClass:"text-muted"},[t._v("\n                  Page could not be found\n                ")]),t._v(" "),e("h2",{staticClass:"text-dark"},[t._v("\n                  404\n                ")])]),t._v(" "),e("p",[t._v("Please try a different page")])])]})],2)]),t._v(" "),t.enableFooter?e("div",{staticClass:"flex-grow"},[t._t("footer",function(){return[e("div",{staticClass:"bg-light"},[e("nav",{staticClass:"container-fluid py-1 d-flex justify-content-between justify-content-md-end",attrs:{role:"navigation"}},[e("router-link",{staticClass:"mr-3 py-1 text-dark",attrs:{to:{name:"terms"}}},[t._v("\n                Terms\n              ")]),t._v(" "),e("router-link",{staticClass:"mr-3 py-1 text-dark",attrs:{to:{name:"privacy"}}},[t._v("\n                Privacy Policy\n              ")])],1)])]})],2):t._e()],1)])])},[],!1,null,null,null).exports},77120(t,e,a){a.r(e),a.d(e,{default:()=>p});var i=a(95353),r=a(89730),n=a(62204),s=a(10741);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function l(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var a={}.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?c(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=Array(e);a<e;a++)i[a]=t[a];return i}function u(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,i)}return a}function d(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};
1e%2?u(Object(a),!0).forEach(function(e){h(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}function h(t,e,a){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var i=a.call(t,e||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const f={name:"NotificationsPop",components:{FormCheckbox:r.default,PopoverContent:n.default},setup:function(){return{toRelativeTime:s.d6}},computed:d(d({},(0,i.L8)(["isOnMobile","loadingNotifications","notifications","announcements","unreadNotificationsCount","unreadAnnouncementsCount","hasUnreadNotifications","hasUnreadAnnouncements"])),{},{combined:function(){var t=[];return this.notifications.length&&t.push.apply(t,l(this.notifications.map(function(t){return d(d({},t),{},{type:"notification"})}))),this.announcements.length&&t.push.apply(t,l(this.announcements.map(function(t){return d(d({},t),{},{type:"announcement"})}))),t.sort(function(t,e){return new Date(e.created_at)-new Date(t.created_at)}),t}}),created:function(){this.updateLastReadAnnouncementsTimestamp()},methods:d(d({},(0,i.i0)(["updateLastReadAnnouncementsTimestamp","markNotificationAsRead"])),{},{isIcon:function(t){return t.includes("fa-")}})};const p=(0,a(14486).A)(f,function(){var t=this,e=t._self._c;return t.loadingNotifications?t._e():e("PopoverContent",{attrs:{"enable-footer":!1,width:"w-450"},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n    Notifications\n  ")]},proxy:!0}],null,!1,2744434467)},[t._v(" "),t.combined.length?e("div",{staticClass:"notif"},[t._l(t.combined,function(a){return["notification"===a.type?[e("div",{key:a.id,staticClass:"notif-item _notification-item",class:{opac:a.read}},[e("div",{staticClass:"icon"},[e("span",{staticClass:"flex-center-center h-100 w-100"},[t.isIcon(a.icon)?e("i",{class:["fa-solid","fa-2x","fa-inverse",a.icon]}):e("img",{staticClass:"rounded-0",attrs:{src:"/images/promos/bfcm2023/"+a.icon}})])]),t._v(" "),e("div",{staticClass:"content"},[e("div",{staticClass:"flex-start-between mt-1 mb-3"},[e("div",{staticClass:"flex-center-between flex-wrap w-100"},[e("h5",{staticClass:"font-weight-bold mb-0"},[a.creator?e("span",[t._v(t._s(a.creator.name))]):e("span",[t._v("TinyURL")])]),t._v(" "),e("div",[t._v(t._s(t.toRelativeTime(a.created_at)))])]),t._v(" "),e("FormCheckbox",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:!a.read&&"Mark as read",trigger:t.isOnMobile?"click":"focus hover"},expression:"{\n                  content: !d.read ? 'Mark as read' : false,\n                  trigger: isOnMobile ? 'click' : 'focus hover',\n                }"}],staticClass:"ml-3 mr-n2 w-auto",attrs:{id:"ntf"+a.id,tabindex:"0",label:"",value:a.read,"is-checked":a.read,"is-disabled":a.read},on:{change:function(e){return t.markNotificationAsRead(a.id)}}})],1),t._v(" "),e("div",{staticClass:"body _notification-body",domProps:{innerHTML:t._s(a.parsed_body)}}),t._v(" "),a.action_text?["string"==typeof a.action_url?e("a",{staticClass:"btn btn-blue _notification-action",staticStyle:{"min-width":"218px"},attrs:{href:a.action_url,target:a.is_action_target_blank?"_blank":""}},[t._v("\n                "+t._s(a.action_text)+"\n              ")]):e("router-link",{staticClass:"btn btn-blue _notification-action",staticStyle:{"min-width":"218px"},attrs:{to:a.action_url}},[t._v("\n                "+t._s(a.action_text)+"\n              ")])]:t._e()],2)])]:t._e(),t._v(" "),"announcement"===a.type?[e("div",{key:a.id,staticClass:"notif-item"},[e("div",{staticClass:"icon"},[e("img",{attrs:{src:a.creator.photo_url}})]),t._v(" "),e("div",{staticClass:"content"},[e("div",{staticClass:"flex-start-between mt-1 mb-3"},[e("div",{staticClass:"flex-center-between flex-wrap w-100"},[e("h5",{staticClass:"font-weight-bold mb-0"},[t._v("\n                  "+t._s(a.creator.name)+"\n                ")]),t._v(" "),e("div",[t._v(t._s(t.toRelativeTime(a.created_at)))])])]),t._v(" "),e("div",{staticClass:"body",domProps:{innerHTML:t._s(a.parsed_body)}}),t._v(" "),a.action_text?["string"==typeof a.action_url?e("a",{staticClass:"btn btn-blue",staticStyle:{"min-width":"218px"},attrs:{href:a.action_url}},[t._v("\n                "+t._s(a.action_text)+"\n              ")]):e("router-link",{staticClass:"btn btn-blue",staticStyle:{"min-width":"218px"},attrs:{to:a.action_url}},[t._v("\n                "+t._s(a.action_text)+"\n              ")])]:t._e()],2)])]:t._e()]})],2):e("div",{staticClass:"alert alert-info alert-heading small mt-3 mx-3"},[t._v("\n    We don't have anything to show you right now! But when we do, we'll be\n    sure to let you know. Talk to you soon!\n  ")])])},[],!1,null,null,null).exports}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.