@everymatrix/user-actions 1.54.6 → 1.54.9

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.
@@ -24,7 +24,7 @@ const NAMESPACE = 'user-actions';
24
24
  const BUILD = /* user-actions */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: false, vdomClass: false, vdomFunctional: false, vdomKey: false, vdomListener: false, vdomPropOrAttr: false, vdomRef: false, vdomRender: false, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: false };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.25.3 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
@@ -498,9 +498,6 @@ var postUpdateComponent = (hostRef) => {
498
498
  }
499
499
  };
500
500
  var appDidLoad = (who) => {
501
- {
502
- addHydratedFlag(doc.documentElement);
503
- }
504
501
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
505
502
  };
506
503
  var safeCall = (instance, method, arg, elm) => {
@@ -669,7 +666,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
669
666
  let Cstr;
670
667
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
671
668
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
672
- {
669
+ const bundleId = cmpMeta.$lazyBundleId$;
670
+ if (bundleId) {
673
671
  const CstrImport = loadModule(cmpMeta, hostRef);
674
672
  if (CstrImport && "then" in CstrImport) {
675
673
  const endLoad = uniqueTime();
@@ -698,6 +696,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
698
696
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
699
697
  }
700
698
  endNewInstance();
699
+ } else {
700
+ Cstr = elm.constructor;
701
+ const cmpTag = elm.localName;
702
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
701
703
  }
702
704
  if (Cstr && Cstr.style) {
703
705
  let style;
@@ -862,6 +864,10 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
862
864
  plt.raf(() => {
863
865
  var _a3;
864
866
  const hostRef = getHostRef(this);
867
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
868
+ if (i2 > -1) {
869
+ deferredConnectedCallbacks.splice(i2, 1);
870
+ }
865
871
  if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
866
872
  delete hostRef.$vnode$.$elm$;
867
873
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-72c8101f.js');
5
+ const index = require('./index-f34de0f7.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-72c8101f.js');
5
+ const index = require('./index-f34de0f7.js');
6
6
 
7
7
  const actionsMapping = {
8
8
  "verification-popup": {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-72c8101f.js');
5
+ const index = require('./index-f34de0f7.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.25.1 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.25.3 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('user-actions.cjs.js', document.baseURI).href));
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.25.1",
7
+ "version": "4.25.3",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],
@@ -2,7 +2,7 @@ const NAMESPACE = 'user-actions';
2
2
  const BUILD = /* user-actions */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: false, vdomClass: false, vdomFunctional: false, vdomKey: false, vdomListener: false, vdomPropOrAttr: false, vdomRef: false, vdomRender: false, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: false };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.25.3 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
@@ -476,9 +476,6 @@ var postUpdateComponent = (hostRef) => {
476
476
  }
477
477
  };
478
478
  var appDidLoad = (who) => {
479
- {
480
- addHydratedFlag(doc.documentElement);
481
- }
482
479
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
483
480
  };
484
481
  var safeCall = (instance, method, arg, elm) => {
@@ -647,7 +644,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
647
644
  let Cstr;
648
645
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
649
646
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
650
- {
647
+ const bundleId = cmpMeta.$lazyBundleId$;
648
+ if (bundleId) {
651
649
  const CstrImport = loadModule(cmpMeta, hostRef);
652
650
  if (CstrImport && "then" in CstrImport) {
653
651
  const endLoad = uniqueTime();
@@ -676,6 +674,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
676
674
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
677
675
  }
678
676
  endNewInstance();
677
+ } else {
678
+ Cstr = elm.constructor;
679
+ const cmpTag = elm.localName;
680
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
679
681
  }
680
682
  if (Cstr && Cstr.style) {
681
683
  let style;
@@ -840,6 +842,10 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
840
842
  plt.raf(() => {
841
843
  var _a3;
842
844
  const hostRef = getHostRef(this);
845
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
846
+ if (i2 > -1) {
847
+ deferredConnectedCallbacks.splice(i2, 1);
848
+ }
843
849
  if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
844
850
  delete hostRef.$vnode$.$elm$;
845
851
  }
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-138b914e.js';
2
- export { s as setNonce } from './index-138b914e.js';
1
+ import { b as bootstrapLazy } from './index-6673d11a.js';
2
+ export { s as setNonce } from './index-6673d11a.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance } from './index-138b914e.js';
1
+ import { r as registerInstance } from './index-6673d11a.js';
2
2
 
3
3
  const actionsMapping = {
4
4
  "verification-popup": {
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-138b914e.js';
2
- export { s as setNonce } from './index-138b914e.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-6673d11a.js';
2
+ export { s as setNonce } from './index-6673d11a.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.25.1 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.25.3 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -1 +1 @@
1
- import{r as i}from"./p-4246ca99.js";const o={"verification-popup":{emit:"openKycVerificationModal",listen:"closeKycVerificationModal"},"get-temporary-account-consents":{emit:"openTemporaryConsentsModal",listen:"closeTemporaryConsentsModal"},"limits-popup":{emit:"openLugasPopup",listen:"closeLugasPopup"},"video-verification-popup":{emit:"openKycVerificationModal",listen:"closeKycVerificationModal"},"unverified-phone-number":{emit:"openSmsVerificationModal",listen:"closeSmsVerificationModal"},"expired-consents":{emit:"openExpiredConsentsModal",listen:"closeExpiredConsentsModal"}},e=class{constructor(e){i(this,e),this.actionStack=[],this.emitCurrentActionEvent=()=>{window.postMessage({type:o[this.actionStack[0].action].emit})},this.shiftActionStack=()=>{this.actionStack=this.actionStack.slice(1)}}handleEvent(i){var e,t;(null===(t=o[null===(e=this.actionStack[0])||void 0===e?void 0:e.action])||void 0===t?void 0:t.listen)===i.data.type&&(this.shiftActionStack(),this.actionStack.length>0&&this.emitCurrentActionEvent())}fetchUserActions(){const i=new URL(`${this.endpoint}/v1/player/${this.userid}/legislation/actions`);return fetch(i.href).then((i=>i.json())).then((i=>{this.actionStack=i.actions.filter((i=>o[i.action])),this.actionStack.length>0&&this.emitCurrentActionEvent()}))}componentWillLoad(){return this.fetchUserActions()}render(){}};e.style=":host{display:block}";export{e as user_actions}
1
+ import{r as i}from"./p-d3ab6990.js";const o={"verification-popup":{emit:"openKycVerificationModal",listen:"closeKycVerificationModal"},"get-temporary-account-consents":{emit:"openTemporaryConsentsModal",listen:"closeTemporaryConsentsModal"},"limits-popup":{emit:"openLugasPopup",listen:"closeLugasPopup"},"video-verification-popup":{emit:"openKycVerificationModal",listen:"closeKycVerificationModal"},"unverified-phone-number":{emit:"openSmsVerificationModal",listen:"closeSmsVerificationModal"},"expired-consents":{emit:"openExpiredConsentsModal",listen:"closeExpiredConsentsModal"}},e=class{constructor(e){i(this,e),this.actionStack=[],this.emitCurrentActionEvent=()=>{window.postMessage({type:o[this.actionStack[0].action].emit})},this.shiftActionStack=()=>{this.actionStack=this.actionStack.slice(1)}}handleEvent(i){var e,t;(null===(t=o[null===(e=this.actionStack[0])||void 0===e?void 0:e.action])||void 0===t?void 0:t.listen)===i.data.type&&(this.shiftActionStack(),this.actionStack.length>0&&this.emitCurrentActionEvent())}fetchUserActions(){const i=new URL(`${this.endpoint}/v1/player/${this.userid}/legislation/actions`);return fetch(i.href).then((i=>i.json())).then((i=>{this.actionStack=i.actions.filter((i=>o[i.action])),this.actionStack.length>0&&this.emitCurrentActionEvent()}))}componentWillLoad(){return this.fetchUserActions()}render(){}};e.style=":host{display:block}";export{e as user_actions}
@@ -0,0 +1,2 @@
1
+ var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>{e.set(n.t=t,n)},s=(t,e)=>(0,console.error)(t,e),i=new Map,r=new Map,l="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},a=c.document||{head:{}},u={o:0,i:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),f=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),d=!1,m=[],p=[],v=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&u.o?b(w):u.raf(w))},y=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},w=()=>{y(m),y(p),(d=m.length>0)&&u.raf(w)},b=t=>h().then(t),$=v(p,!0);function S(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>j,map:()=>E,ok:()=>g,unwrap:()=>O,unwrapErr:()=>k});var g=t=>({isOk:!0,isErr:!1,value:t}),j=t=>({isOk:!1,isErr:!0,value:t});function E(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>g(t))):g(n)}if(t.isErr)return j(t.value);throw"should never get here"}var O=t=>{if(t.isOk)return t.value;throw t.value},k=t=>{if(t.isErr)return t.value;throw t.value},C=(t,e)=>null==t||(t=>"object"==(t=typeof t)||"function"===t)(t)?t:1&e?t+"":t,M=new WeakMap,P=t=>"sc-"+t.l,x=(t,e)=>{if(e&&!t.u&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.u=()=>{e["s-p"].splice(n-1,1),o()})))}},A=(t,e)=>{if(t.o|=16,!(4&t.o))return x(t,t.h),$((()=>H(t,e)));t.o|=512},H=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let s;return e&&(t.o|=256,t.m&&(t.m.map((([t,e])=>W(o,t,e,n))),t.m=void 0),s=W(o,"componentWillLoad",void 0,n)),N(s,(()=>D(t,o,e)))},N=(t,e)=>T(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),T=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,D=async(t,e,n)=>{var o;const s=t.$hostElement$,i=s["s-rc"];n&&(t=>{const e=t.p,n=t.$hostElement$,o=e.o,s=((t,e)=>{var n;const o=P(e),s=r.get(o);if(t=11===t.nodeType?t:a,s)if("string"==typeof s){let i,r=M.get(t=t.head||t);if(r||M.set(t,r=new Set),!r.has(o)){{i=document.querySelector(`[sty-id="${o}"]`)||a.createElement("style"),i.innerHTML=s;const r=null!=(n=u.v)?n:S(a);if(null!=r&&i.setAttribute("nonce",r),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(i,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(f){const e=new CSSStyleSheet;e.replaceSync(s),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=s+e.innerHTML:t.prepend(i)}else t.append(i);1&e.o&&"HEAD"!==t.nodeName&&t.insertBefore(i,null)}4&e.o&&(i.innerHTML+=l),r&&r.add(o)}}else t.adoptedStyleSheets.includes(s)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,s]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&2&o&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);L(t,e,s),i&&(i.map((t=>t())),s["s-rc"]=void 0);{const e=null!=(o=s["s-p"])?o:[],n=()=>R(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},L=(t,e,n)=>{try{e=e.render(),t.o&=-17,t.o|=2,1&t.p.o?n.shadowRoot.textContent=e:n.textContent=e}catch(e){s(e,t.$hostElement$)}return null},R=t=>{const e=t.$hostElement$,n=t.h;64&t.o||(t.o|=64,F(e),t.$(e),n||U()),t.u&&(t.u(),t.u=void 0),512&t.o&&b((()=>A(t,!1))),t.o&=-517},U=()=>{b((()=>(t=>{const e=u.ce("appload",{detail:{namespace:"user-actions"}});return t.dispatchEvent(e),e})(c)))},W=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,o)}},F=t=>t.classList.add("hydrated"),q=(t,e,o,s)=>{const i=n(t);if(!i)throw Error(`Couldn't find host element for "${s.l}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.S.get(e),l=i.o,c=i.t;o=C(o,s.j[e][0]),8&l&&void 0!==r||o===r||Number.isNaN(r)&&Number.isNaN(o)||(i.S.set(e,o),c&&2==(18&l)&&A(i,!1))},G=(t,e,o)=>{var s,i;const r=t.prototype;if(e.j){const l=Object.entries(null!=(s=e.j)?s:{});if(l.map((([t,[s]])=>{if(31&s||2&o&&32&s){const{get:i,set:l}=Object.getOwnPropertyDescriptor(r,t)||{};i&&(e.j[t][0]|=2048),l&&(e.j[t][0]|=4096),(1&o||!i)&&Object.defineProperty(r,t,{get(){{if(!(2048&e.j[t][0]))return((t,e)=>n(this).S.get(e))(0,t);const o=n(this),s=o?o.t:r;if(!s)return;return s[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,t,{set(i){const r=n(this);if(l){const n=32&s?this[t]:r.$hostElement$[t];return void 0===n&&r.S.get(t)?i=r.S.get(t):!r.S.get(t)&&n&&r.S.set(t,n),l.call(this,C(i,s)),void q(this,t,i=32&s?this[t]:r.$hostElement$[t],e)}{if(!(1&o&&4096&e.j[t][0]))return q(this,t,i,e),void(1&o&&!r.t&&r.O.then((()=>{4096&e.j[t][0]&&r.t[t]!==r.S.get(t)&&(r.t[t]=i)})));const n=()=>{const n=r.t[t];!r.S.get(t)&&n&&r.S.set(t,n),r.t[t]=C(i,s),q(this,t,r.t[t],e)};r.t?n():r.O.then((()=>n()))}}})}})),1&o){const o=new Map;r.attributeChangedCallback=function(t,s,i){u.jmp((()=>{var l;const c=o.get(t);if(this.hasOwnProperty(c))i=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==i)return;if(null==c){const o=n(this),r=null==o?void 0:o.o;if(r&&!(8&r)&&128&r&&i!==s){const n=o.t,r=null==(l=e.k)?void 0:l[t];null==r||r.forEach((e=>{null!=n[e]&&n[e].call(n,i,s,t)}))}return}}const a=Object.getOwnPropertyDescriptor(r,c);(i=(null!==i||"boolean"!=typeof this[c])&&i)===this[c]||a.get&&!a.set||(this[c]=i)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=e.k)?i:{}),...l.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},V=(t,o={})=>{var h;const d=[],m=o.exclude||[],p=c.customElements,v=a.head,y=v.querySelector("meta[charset]"),w=a.createElement("style"),b=[];let $,g=!0;Object.assign(u,o),u.i=new URL(o.resourcesUrl||"./",a.baseURI).href;let j=!1;if(t.map((t=>{t[1].map((o=>{const l={o:o[0],l:o[1],j:o[2],C:o[3]};4&l.o&&(j=!0),l.j=o[2],l.C=o[3];const c=l.l,a=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,p:n,S:new Map};o.O=new Promise((t=>o.$=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,l),1&l.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.l}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,_(this,t,l.C)),$&&(clearTimeout($),$=null),g?b.push(this):u.jmp((()=>(t=>{if(!(1&u.o)){const e=n(t),o=e.p,l=()=>{};if(1&e.o)_(t,e,o.C),(null==e?void 0:e.t)||(null==e?void 0:e.O)&&e.O.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){x(e,e.h=n);break}}o.j&&Object.entries(o.j).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.M){const r=((t,e)=>{const n=t.l.replace(/-/g,"_"),o=t.M;if(!o)return;const r=i.get(o);return r?r[n]:import(`./${o}.entry.js`).then((t=>(i.set(o,t),t[n])),(t=>{s(t,e.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(r&&"then"in r){const t=()=>{};o=await r,t()}else o=r;if(!o)throw Error(`Constructor for "${n.l}#${e.P}" was not found`);o.isProxied||(G(o,n,2),o.isProxied=!0);const l=()=>{};e.o|=8;try{new o(e)}catch(e){s(e,t)}e.o&=-9,l()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=P(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);f&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.h,c=()=>A(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){u.jmp((()=>(async t=>{if(!(1&u.o)){const e=n(t);e.A&&(e.A.map((t=>t())),e.A=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.O)&&e.O.then((()=>{}))}M.has(t)&&M.delete(t),t.shadowRoot&&M.has(t.shadowRoot)&&M.delete(t.shadowRoot)})(this))),u.raf((()=>{var t;const e=n(this),o=b.findIndex((t=>t===this));o>-1&&b.splice(o,1),(null==(t=null==e?void 0:e.H)?void 0:t.N)instanceof Node&&!e.H.N.isConnected&&delete e.H.N}))}componentOnReady(){return n(this).O}};l.M=t[0],m.includes(c)||p.get(c)||(d.push(c),p.define(c,G(a,l,1)))}))})),d.length>0&&(j&&(w.textContent+=l),w.textContent+=d.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const t=null!=(h=u.v)?h:S(a);null!=t&&w.setAttribute("nonce",t),v.insertBefore(w,y?y.nextSibling:v.firstChild)}g=!1,b.length?b.map((t=>t.connectedCallback())):u.jmp((()=>$=setTimeout(U,30)))},_=(t,e,n)=>{n&&n.map((([n,o,s])=>{const i=B(t,n),r=z(e,s),l=I(n);u.ael(i,o,r,l),(e.A=e.A||[]).push((()=>u.rel(i,o,r,l)))}))},z=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.m=t.m||[]).push([e,n])}catch(e){s(e,t.$hostElement$)}},B=(t,e)=>8&e?c:t,I=t=>({passive:!!(1&t),capture:!!(2&t)}),J=t=>u.v=t;export{V as b,h as p,o as r,J as s}
@@ -1 +1 @@
1
- import{p as a,b as e}from"./p-4246ca99.js";export{s as setNonce}from"./p-4246ca99.js";import{g as t}from"./p-e1255160.js";(()=>{const s=import.meta.url,e={};return""!==s&&(e.resourcesUrl=new URL(".",s).href),a(e)})().then((async a=>(await t(),e([["p-e3fbacd3",[[1,"user-actions",{endpoint:[1],userid:[1],actionStack:[32]},[[8,"message","handleEvent"]]]]]],a))));
1
+ import{p as a,b as e}from"./p-d3ab6990.js";export{s as setNonce}from"./p-d3ab6990.js";import{g as t}from"./p-e1255160.js";(()=>{const s=import.meta.url,e={};return""!==s&&(e.resourcesUrl=new URL(".",s).href),a(e)})().then((async s=>(await t(),e([["p-b8e78f4c",[[1,"user-actions",{endpoint:[1],userid:[1],actionStack:[32]},[[8,"message","handleEvent"]]]]]],s))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/user-actions",
3
- "version": "1.54.6",
3
+ "version": "1.54.9",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1,2 +0,0 @@
1
- var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>{e.set(n.t=t,n)},s=(t,e)=>(0,console.error)(t,e),i=new Map,r=new Map,l="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},a=c.document||{head:{}},u={o:0,i:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),f=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),d=!1,p=[],m=[],v=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&u.o?b(w):u.raf(w))},y=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},w=()=>{y(p),y(m),(d=p.length>0)&&u.raf(w)},b=t=>h().then(t),$=v(m,!0);function S(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>j,map:()=>E,ok:()=>g,unwrap:()=>O,unwrapErr:()=>k});var g=t=>({isOk:!0,isErr:!1,value:t}),j=t=>({isOk:!1,isErr:!0,value:t});function E(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>g(t))):g(n)}if(t.isErr)return j(t.value);throw"should never get here"}var O=t=>{if(t.isOk)return t.value;throw t.value},k=t=>{if(t.isErr)return t.value;throw t.value},C=(t,e)=>null==t||(t=>"object"==(t=typeof t)||"function"===t)(t)?t:1&e?t+"":t,M=new WeakMap,P=t=>"sc-"+t.l,x=(t,e)=>{if(e&&!t.u&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.u=()=>{e["s-p"].splice(n-1,1),o()})))}},A=(t,e)=>{if(t.o|=16,!(4&t.o))return x(t,t.h),$((()=>H(t,e)));t.o|=512},H=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let s;return e&&(t.o|=256,t.p&&(t.p.map((([t,e])=>W(o,t,e,n))),t.p=void 0),s=W(o,"componentWillLoad",void 0,n)),N(s,(()=>D(t,o,e)))},N=(t,e)=>T(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),T=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,D=async(t,e,n)=>{var o;const s=t.$hostElement$,i=s["s-rc"];n&&(t=>{const e=t.m,n=t.$hostElement$,o=e.o,s=((t,e)=>{var n;const o=P(e),s=r.get(o);if(t=11===t.nodeType?t:a,s)if("string"==typeof s){let i,r=M.get(t=t.head||t);if(r||M.set(t,r=new Set),!r.has(o)){{i=document.querySelector(`[sty-id="${o}"]`)||a.createElement("style"),i.innerHTML=s;const r=null!=(n=u.v)?n:S(a);if(null!=r&&i.setAttribute("nonce",r),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(i,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(f){const e=new CSSStyleSheet;e.replaceSync(s),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=s+e.innerHTML:t.prepend(i)}else t.append(i);1&e.o&&"HEAD"!==t.nodeName&&t.insertBefore(i,null)}4&e.o&&(i.innerHTML+=l),r&&r.add(o)}}else t.adoptedStyleSheets.includes(s)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,s]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&2&o&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);L(t,e,s),i&&(i.map((t=>t())),s["s-rc"]=void 0);{const e=null!=(o=s["s-p"])?o:[],n=()=>R(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},L=(t,e,n)=>{try{e=e.render(),t.o&=-17,t.o|=2,1&t.m.o?n.shadowRoot.textContent=e:n.textContent=e}catch(e){s(e,t.$hostElement$)}return null},R=t=>{const e=t.$hostElement$,n=t.h;64&t.o||(t.o|=64,F(e),t.$(e),n||U()),t.u&&(t.u(),t.u=void 0),512&t.o&&b((()=>A(t,!1))),t.o&=-517},U=()=>{F(a.documentElement),b((()=>(t=>{const e=u.ce("appload",{detail:{namespace:"user-actions"}});return t.dispatchEvent(e),e})(c)))},W=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,o)}},F=t=>t.classList.add("hydrated"),q=(t,e,o,s)=>{const i=n(t);if(!i)throw Error(`Couldn't find host element for "${s.l}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.S.get(e),l=i.o,c=i.t;o=C(o,s.j[e][0]),8&l&&void 0!==r||o===r||Number.isNaN(r)&&Number.isNaN(o)||(i.S.set(e,o),c&&2==(18&l)&&A(i,!1))},G=(t,e,o)=>{var s,i;const r=t.prototype;if(e.j){const l=Object.entries(null!=(s=e.j)?s:{});if(l.map((([t,[s]])=>{if(31&s||2&o&&32&s){const{get:i,set:l}=Object.getOwnPropertyDescriptor(r,t)||{};i&&(e.j[t][0]|=2048),l&&(e.j[t][0]|=4096),(1&o||!i)&&Object.defineProperty(r,t,{get(){{if(!(2048&e.j[t][0]))return((t,e)=>n(this).S.get(e))(0,t);const o=n(this),s=o?o.t:r;if(!s)return;return s[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,t,{set(i){const r=n(this);if(l){const n=32&s?this[t]:r.$hostElement$[t];return void 0===n&&r.S.get(t)?i=r.S.get(t):!r.S.get(t)&&n&&r.S.set(t,n),l.call(this,C(i,s)),void q(this,t,i=32&s?this[t]:r.$hostElement$[t],e)}{if(!(1&o&&4096&e.j[t][0]))return q(this,t,i,e),void(1&o&&!r.t&&r.O.then((()=>{4096&e.j[t][0]&&r.t[t]!==r.S.get(t)&&(r.t[t]=i)})));const n=()=>{const n=r.t[t];!r.S.get(t)&&n&&r.S.set(t,n),r.t[t]=C(i,s),q(this,t,r.t[t],e)};r.t?n():r.O.then((()=>n()))}}})}})),1&o){const o=new Map;r.attributeChangedCallback=function(t,s,i){u.jmp((()=>{var l;const c=o.get(t);if(this.hasOwnProperty(c))i=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==i)return;if(null==c){const o=n(this),r=null==o?void 0:o.o;if(r&&!(8&r)&&128&r&&i!==s){const n=o.t,r=null==(l=e.k)?void 0:l[t];null==r||r.forEach((e=>{null!=n[e]&&n[e].call(n,i,s,t)}))}return}}const a=Object.getOwnPropertyDescriptor(r,c);(i=(null!==i||"boolean"!=typeof this[c])&&i)===this[c]||a.get&&!a.set||(this[c]=i)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=e.k)?i:{}),...l.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},V=(t,o={})=>{var h;const d=[],p=o.exclude||[],m=c.customElements,v=a.head,y=v.querySelector("meta[charset]"),w=a.createElement("style"),b=[];let $,g=!0;Object.assign(u,o),u.i=new URL(o.resourcesUrl||"./",a.baseURI).href;let j=!1;if(t.map((t=>{t[1].map((o=>{const l={o:o[0],l:o[1],j:o[2],C:o[3]};4&l.o&&(j=!0),l.j=o[2],l.C=o[3];const c=l.l,a=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,m:n,S:new Map};o.O=new Promise((t=>o.$=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,l),1&l.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.l}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,_(this,t,l.C)),$&&(clearTimeout($),$=null),g?b.push(this):u.jmp((()=>(t=>{if(!(1&u.o)){const e=n(t),o=e.m,l=()=>{};if(1&e.o)_(t,e,o.C),(null==e?void 0:e.t)||(null==e?void 0:e.O)&&e.O.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){x(e,e.h=n);break}}o.j&&Object.entries(o.j).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){e.o|=32;{const r=((t,e)=>{const n=t.l.replace(/-/g,"_"),o=t.M;if(!o)return;const r=i.get(o);return r?r[n]:import(`./${o}.entry.js`).then((t=>(i.set(o,t),t[n])),(t=>{s(t,e.$hostElement$)}))
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(r&&"then"in r){const t=()=>{};o=await r,t()}else o=r;if(!o)throw Error(`Constructor for "${n.l}#${e.P}" was not found`);o.isProxied||(G(o,n,2),o.isProxied=!0);const l=()=>{};e.o|=8;try{new o(e)}catch(e){s(e,t)}e.o&=-9,l()}if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=P(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);f&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.h,c=()=>A(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){u.jmp((()=>(async t=>{if(!(1&u.o)){const e=n(t);e.A&&(e.A.map((t=>t())),e.A=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.O)&&e.O.then((()=>{}))}M.has(t)&&M.delete(t),t.shadowRoot&&M.has(t.shadowRoot)&&M.delete(t.shadowRoot)})(this))),u.raf((()=>{var t;const e=n(this);(null==(t=null==e?void 0:e.H)?void 0:t.N)instanceof Node&&!e.H.N.isConnected&&delete e.H.N}))}componentOnReady(){return n(this).O}};l.M=t[0],p.includes(c)||m.get(c)||(d.push(c),m.define(c,G(a,l,1)))}))})),d.length>0&&(j&&(w.textContent+=l),w.textContent+=d.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const t=null!=(h=u.v)?h:S(a);null!=t&&w.setAttribute("nonce",t),v.insertBefore(w,y?y.nextSibling:v.firstChild)}g=!1,b.length?b.map((t=>t.connectedCallback())):u.jmp((()=>$=setTimeout(U,30)))},_=(t,e,n)=>{n&&n.map((([n,o,s])=>{const i=B(t,n),r=z(e,s),l=I(n);u.ael(i,o,r,l),(e.A=e.A||[]).push((()=>u.rel(i,o,r,l)))}))},z=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.p=t.p||[]).push([e,n])}catch(e){s(e,t.$hostElement$)}},B=(t,e)=>8&e?c:t,I=t=>({passive:!!(1&t),capture:!!(2&t)}),J=t=>u.v=t;export{V as b,h as p,o as r,J as s}