@letscooee/web-sdk 14.1.11 → 14.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
1
  import { B, M, N as Nn } from './main.min.js';
2
- import { $ as $b, o as of, a, b as bE, i as iD, B as Bo, w as wD, I as ID, V as Vo, M as Mf, u as uv, c as ud, _ as _D, g as ge, d as Iv, X as Xa, W as Wf, T as Tv, e as _f, f as _v, Y as Yg } from './widgets-By0Ht5M7-Sfm_ntym.js';
2
+ import { U as Ub, o as of, a, b as bE, i as iD, V as Vo, w as wD, I as ID, H as Ho, M as Mf, u as uv, c as ud, _ as _D, g as ge, d as Iv, X as Xa, W as Wf, T as Tv, e as _f, f as _v, Y as Yg } from './widgets-C7lA7XGj-BrnR9z4Y.js';
3
3
 
4
- function P(i,t){if(i&1&&(Bo(0,`li`)(1,`span`,1),uv(2),Iv(3,`date`),Vo(),uv(4,`\xA0 `),Xa(5,`span`,2),Iv(6,`safeHtml`),Vo()),i&2){let e=t.$implicit;ud(2),Wf(Tv(3,2,e.time,`hh:mm:ss a`)),ud(3),_f(`innerHTML`,_v(6,5,e.message),Yg);}}var _=class i{logs=$b.required();constructor(){}async shareLogs(){let t=this.logs().map(o=>`[${new Date(o.time).toLocaleString(`en-US`,{year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,fractionalSecondDigits:3,hour12:false,timeZoneName:`short`})}] ${o.message}`).join(`
4
+ function P(i,t){if(i&1&&(Vo(0,`li`)(1,`span`,1),uv(2),Iv(3,`date`),Ho(),uv(4,`\xA0 `),Xa(5,`span`,2),Iv(6,`safeHtml`),Ho()),i&2){let e=t.$implicit;ud(2),Wf(Tv(3,2,e.time,`hh:mm:ss a`)),ud(3),_f(`innerHTML`,_v(6,5,e.message),Yg);}}var _=class i{logs=Ub.required();constructor(){}async shareLogs(){let t=this.logs().map(o=>`[${new Date(o.time).toLocaleString(`en-US`,{year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,fractionalSecondDigits:3,hour12:false,timeZoneName:`short`})}] ${o.message}`).join(`
5
5
  `);t=t.replaceAll(`\xA0`,` `);let e=B();if(e&&(t+=`
6
6
 
7
7
  \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 API Resource Metrics (Raw) \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
8
- `+e),M()&&navigator.share){navigator.share({text:t});return}navigator.clipboard.writeText(t),Nn(`Copied to your clipboard`);}static ɵfac=function(e){return new(e||i)};static ɵcmp=of({type:i,selectors:[[`cooee-debugger`]],inputs:{logs:[1,`logs`]},features:[iD([ge])],decls:5,vars:0,consts:[[1,`btn-copy`,3,`click`],[2,`color`,`rgb(100, 116, 139)`],[3,`innerHTML`]],template:function(e,o){e&1&&(Bo(0,`ol`),wD(1,P,7,7,`li`,null,ID),Vo(),Bo(3,`button`,0),Mf(`click`,function(){return o.shareLogs()}),uv(4,`Copy`),Vo()),e&2&&(ud(),_D(o.logs()));},dependencies:[a,bE],styles:[`:host{display:block;position:fixed;top:calc(100vh - 90px);left:10px;right:10px;width:auto;max-width:100%;min-width:calc(100vw - 20px);height:80px;background:#fff;z-index:111111111111;overflow-y:auto;font-size:13px;line-height:1.5;padding:5px;font-family:Arial,"sans-serif";font-weight:500;border:2px solid rgb(245,28,143);border-radius:6px;resize:both;-webkit-user-select:auto;user-select:auto;box-shadow:#0000001a 0 10px 15px -3px,#0000001a 0 4px 6px -4px}@media(min-width:768px){:host{width:600px;min-width:auto}}ol{margin:0;padding:0 0 0 28px}.btn-copy{position:absolute;top:5px;right:5px;background:#f51c8f;border:none;cursor:pointer;padding:6px 8px;font-size:12px;font-weight:500;border-radius:6px;color:#fff}
8
+ `+e),M()&&navigator.share){navigator.share({text:t});return}navigator.clipboard.writeText(t),Nn(`Copied to your clipboard`);}static ɵfac=function(e){return new(e||i)};static ɵcmp=of({type:i,selectors:[[`cooee-debugger`]],inputs:{logs:[1,`logs`]},features:[iD([ge])],decls:5,vars:0,consts:[[1,`btn-copy`,3,`click`],[2,`color`,`rgb(100, 116, 139)`],[3,`innerHTML`]],template:function(e,o){e&1&&(Vo(0,`ol`),wD(1,P,7,7,`li`,null,ID),Ho(),Vo(3,`button`,0),Mf(`click`,function(){return o.shareLogs()}),uv(4,`Copy`),Ho()),e&2&&(ud(),_D(o.logs()));},dependencies:[a,bE],styles:[`:host{display:block;position:fixed;top:calc(100vh - 90px);left:10px;right:10px;width:auto;max-width:100%;min-width:calc(100vw - 20px);height:80px;background:#fff;z-index:111111111111;overflow-y:auto;font-size:13px;line-height:1.5;padding:5px;font-family:Arial,"sans-serif";font-weight:500;border:2px solid rgb(245,28,143);border-radius:6px;resize:both;-webkit-user-select:auto;user-select:auto;box-shadow:#0000001a 0 10px 15px -3px,#0000001a 0 4px 6px -4px}@media(min-width:768px){:host{width:600px;min-width:auto}}ol{margin:0;padding:0 0 0 28px}.btn-copy{position:absolute;top:5px;right:5px;background:#f51c8f;border:none;cursor:pointer;padding:6px 8px;font-size:12px;font-weight:500;border-radius:6px;color:#fff}
9
9
  `],encapsulation:3})};
10
10
 
11
11
  export { _ as DebuggerComponent };
@@ -1,4 +1,4 @@
1
- import { s as r, v as s, L as u, O as w } from './main.min.js';
1
+ import { s as r, t as s, J as u, K as w } from './main.min.js';
2
2
 
3
3
  var T=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__;var x=globalThis;var ut=`9.42.0`;function Ve(){return fn(x),x}function fn(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||ut,t[ut]=t[ut]||{}}function Qt(e,t,n=x){let r=n.__SENTRY__=n.__SENTRY__||{},o=r[ut]=r[ut]||{};return o[e]||(o[e]=t())}var Mn=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],tg=`Sentry Logger `,ar={};function Be(e){if(!(`console`in x))return e();let t=x.console,n={},r=Object.keys(ar);r.forEach(o=>{let i=ar[o];n[o]=t[o],t[o]=i;});try{return e()}finally{r.forEach(o=>{t[o]=n[o];});}}function ng(){ma().enabled=true;}function rg(){ma().enabled=false;}function Tl(){return ma().enabled}function og(...e){pa(`log`,...e);}function ig(...e){pa(`warn`,...e);}function sg(...e){pa(`error`,...e);}function pa(e,...t){T&&Tl()&&Be(()=>{x.console[e](`${tg}[${e}]:`,...t);});}function ma(){return T?Qt(`loggerSettings`,()=>({enabled:false})):{enabled:false}}var g={enable:ng,disable:rg,isEnabled:Tl,log:og,warn:ig,error:sg};var Il=/\(error: (.*)\)/,vl=/captureMessage|captureException/;function ti(...e){let t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return (n,r=0,o=0)=>{let i=[],s=n.split(`
4
4
  `);for(let a=r;a<s.length;a++){let c=s[a];if(c.length>1024)continue;let u=Il.test(c)?c.replace(Il,`$1`):c;if(!u.match(/\S*Error: /)){for(let d of t){let l=d(u);if(l){i.push(l);break}}if(i.length>=50+o)break}}return wl(i.slice(o))}}function wl(e){if(!e.length)return [];let t=Array.from(e);return /sentryWrapped/.test(ei(t).function||``)&&t.pop(),t.reverse(),vl.test(ei(t).function||``)&&(t.pop(),vl.test(ei(t).function||``)&&t.pop()),t.slice(0,50).map(n=>s(r({},n),{filename:n.filename||ei(t).filename,function:n.function||`?`}))}function ei(e){return e[e.length-1]||{}}var ha=`<anonymous>`;function tt(e){try{return !e||typeof e!=`function`?ha:e.name||ha}catch{return ha}}function cr(e){let t=e.exception;if(t){let n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames);}),n}catch{return}}}var ni={},Rl={};function He(e,t){ni[e]=ni[e]||[],ni[e].push(t);}function $e(e,t){if(!Rl[e]){Rl[e]=true;try{t();}catch(n){T&&g.error(`Error while instrumenting ${e}`,n);}}}function xe(e,t){let n=e&&ni[e];if(n)for(let r of n)try{r(t);}catch(o){T&&g.error(`Error while triggering instrumentation handler.