Files
WEBtomaste/Atomaste Reference/public_html/wp-content/plugins/burst-statistics/settings/build/415.d45f875fd81402b51dae.js

1 line
86 KiB
JavaScript
Raw Normal View History

2025-12-10 12:17:30 -05:00
"use strict";(globalThis.webpackChunkburst_statistics=globalThis.webpackChunkburst_statistics||[]).push([[415],{5963:(e,t,s)=>{s.d(t,{A:()=>d});var a=s(6087),r=s(453),l=s(6964),c=s(1019),i=s(8552),n=s(6392),o=s(7723),u=s(9072),m=s(3443);const d=({filter:e,filterValue:t,label:s,children:d,startDate:g,endDate:h})=>{const b=(0,r.c)((e=>e.setFilters)),C=(0,r.c)((e=>e.setAnimate)),p=(0,l.V)((e=>e.goalFields)),f=(0,c.G)((e=>e.setMetrics)),v=(0,c.G)((e=>e.getMetrics())),_=(0,i.S)((e=>e.setStartDate)),w=(0,i.S)((e=>e.setEndDate)),E=(0,i.S)((e=>e.setRange)),M=s?(0,o.__)("Click to filter by:","burst-statistics")+" "+s:(0,o.__)("Click to filter","burst-statistics");return e&&t?(0,a.createElement)(n.A,{content:M},(0,a.createElement)("span",{onClick:async s=>{window.location.href="#statistics","goal_id"===e?(p[t]&&p[t].goal_specific_page&&p[t].goal_specific_page.value?(b("page_url",p[t].goal_specific_page.value),b(e,t),u.toast.info((0,o.__)("Filtering by goal & goal specific page","burst-statistics"))):(b(e,t),u.toast.info((0,o.__)("Filtering by goal","burst-statistics"))),v.includes("conversions")||f([...v,"conversions"])):(b(e,""),await new Promise((e=>setTimeout(e,10))),b(e,t,!0),await(async e=>{try{const t=await((e,t=3e3)=>{const s=Date.now();return new Promise(((a,r)=>{const l=setInterval((()=>{const c=document.querySelector(e),i=Date.now()-s;c?(clearInterval(l),a(c)):i>t&&(clearInterval(l),r(new Error(`Element not found: ${e}`)))}),100)}))})(".burst-data-filter--animate"),s=window.getComputedStyle(t),a=t.offsetParent?t.offsetParent.offsetLeft:0,r=t.offsetParent?t.offsetParent.offsetTop:0,l=parseInt(s.marginLeft),c=parseInt(s.marginTop),i=t.offsetWidth,n=t.offsetHeight,o=e.clientX-i+window.scrollX-a-l,u=e.clientY-4*n+window.scrollY-r-c;t.style.transformOrigin="50% 50%",t.style.opacity=0,t.style.transform=`translateX(${o}px) translateY(${u}px)`,await new Promise((e=>setTimeout(e,50))),t.style.transition="transform 0.2s ease, opacity 0.2s ease-out",t.style.transform=`translateX(${o}px) translateY(${u}px) scale(1)`,t.style.opacity=1,t.style.transition="transform 0.5s ease-in-out, opacity 0.2s ease-out",t.style.transform="translateX(0) translateY(0)"}catch(e){console.error(e.message)}})(s),C(!1)),(()=>{let e="",t="";if(/^\d+$/.test(g)){const t=10===g.toString().length?1e3*g:g;e=new Date(t).toISOString().split("T")[0]}else/\d{4}-\d{2}-\d{2}/.test(g)&&(e=g);if(h)if(/^\d+$/.test(h)){const e=10===h.toString().length?1e3*h:h;t=new Date(e).toISOString().split("T")[0]}else/\d{4}-\d{2}-\d{2}/.test(h)&&(t=h);else t=(new Date).toISOString().split("T")[0];(0,m.vd)(e)&&(0,m.vd)(t)&&(_(e),w(t),E("custom"))})()},className:"burst-click-to-filter"},d)):(0,a.createElement)(a.Fragment,null,d)}},2168:(e,t,s)=>{s.d(t,{A:()=>l});var a=s(6087),r=s(7723);const l=()=>(0,a.createElement)("span",{className:"burst-pill burst-pill--green"},(0,r.__)("Pro","burst-statistics"))},46:(e,t,s)=>{s.d(t,{A:()=>i});var a=s(6087),r=s(9823),l=s(4937),c=s(7723);const i=({children:e,className:t,onClick:s,show:i=!1,title:n,subtitle:o,bulletPoints:u=[],primaryButtonUrl:m,secondaryButtonUrl:d})=>{const[g,h]=(0,a.useState)(!1);return(0,a.createElement)(r.bL,{open:g,onOpenChange:h},(0,a.createElement)(r.l9,{className:"burst-pro-popover-trigger "+t,onMouseEnter:()=>h(!0)},e),(0,a.createElement)(r.ZL,null,(0,a.createElement)(r.UC,{className:"burst burst-pro-popover",align:"start",sideOffset:10,arrowPadding:10,style:{zIndex:9999}},(0,a.createElement)("span",{className:"burst-pro-popover__arrow"}),(0,a.createElement)("div",{className:"burst-pro-popover__header"},(0,a.createElement)(r.bm,{className:"burst-pro-popover__close"},(0,a.createElement)(l.A,{name:"times"})),(0,a.createElement)("h5",null,n),(0,a.createElement)("h6",null,o)),(0,a.createElement)("div",{className:"burst-pro-popover__bullet-list"},(0,a.createElement)("p",{className:"burst-small-text"},(0,c.__)("Pro features include:","burst-statistics")),u.map((({text:e,icon:t})=>(0,a.createElement)("span",{key:e},(0,a.createElement)(l.A,{name:t}),(0,a.createElement)("p",null,e))))),(0,a.createElement)("div",{className:"burst-pr