@everymatrix/helper-filters 0.0.3 → 0.1.2

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,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-7f951fa0.js');
3
+ const index = require('./index-979fa60b.js');
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v2.17.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  const patchBrowser = () => {
9
9
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('helper-filters.cjs.js', document.baseURI).href));
@@ -15,5 +15,5 @@ const patchBrowser = () => {
15
15
  };
16
16
 
17
17
  patchBrowser().then(options => {
18
- return index.bootstrapLazy([["helper-filters.cjs",[[1,"helper-filters",{"showFilterId":[4,"show-filter-id"],"activateTicketSearch":[4,"activate-ticket-search"],"gameId":[1,"game-id"],"playerId":[1,"player-id"],"session":[1],"postMessage":[4,"post-message"],"language":[1],"showFilterModal":[32],"showClearButton":[32],"filterData":[32],"filterDataReset":[32]},[[0,"modalCloseEvent","modalCloseEvent"]]]]]], options);
18
+ return index.bootstrapLazy([["helper-filters_2.cjs",[[1,"helper-filters",{"showFilterId":[4,"show-filter-id"],"activateTicketSearch":[4,"activate-ticket-search"],"gameId":[1,"game-id"],"playerId":[1,"player-id"],"session":[1],"postMessage":[4,"post-message"],"language":[1],"showFilterModal":[32],"showClearButton":[32],"filterData":[32],"filterDataReset":[32]},[[0,"modalCloseEvent","modalCloseEvent"]]],[1,"helper-modal",{"titleModal":[1,"title-modal"],"visible":[1540]}]]]], options);
19
19
  });
@@ -2,8 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-7f951fa0.js');
6
- require('@everymatrix/helper-modal');
5
+ const index = require('./index-979fa60b.js');
7
6
 
8
7
  const DEFAULT_LANGUAGE = 'en';
9
8
  const SUPPORTED_LANGUAGES = ['ro', 'en'];
@@ -22316,4 +22315,42 @@ const HelperFilters = class {
22316
22315
  };
22317
22316
  HelperFilters.style = helperFiltersCss;
22318
22317
 
22318
+ /**
22319
+ * @name isMobile
22320
+ * @description A method that returns if the browser used to access the app is from a mobile device or not
22321
+ * @param {String} userAgent window.navigator.userAgent
22322
+ * @returns {Boolean} true or false
22323
+ */
22324
+ const isMobile = (userAgent) => {
22325
+ return !!(userAgent.toLowerCase().match(/android/i) ||
22326
+ userAgent.toLowerCase().match(/blackberry|bb/i) ||
22327
+ userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
22328
+ userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
22329
+ };
22330
+
22331
+ const helperModalCss = ":host{display:block}.HelperModalWrapper{position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.7);opacity:0;visibility:hidden;transform:scale(1.1);transition:visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;z-index:1}.HelperModalVisible{opacity:1;visibility:visible;transform:scale(1);transition:visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s}.HelperModalContent{position:relative;border:solid 1px #848e97;box-shadow:2px 2px 2px rgba(0, 0, 0, 0.007);font-size:14px;padding:10px 10px 5px 10px;background-color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);border-radius:4px;width:600px;max-height:600px;overflow-y:scroll}.HelperModalMobileContent{background:#FFF;top:50%;left:50%;transform:translate(-50%, -50%);border-radius:4px;width:80%;max-height:350px}.HelperModalClose{cursor:pointer;position:absolute;top:15px;right:15px;font-size:20px;color:#000}.HelperModalMobileClose{position:absolute;top:15px;right:15px;font-size:20px;color:#000}";
22332
+
22333
+ const HelperModal = class {
22334
+ constructor(hostRef) {
22335
+ index.registerInstance(this, hostRef);
22336
+ this.cancel = index.createEvent(this, "modalCloseEvent", 7);
22337
+ /**
22338
+ * Toggles if the helper is visible or not
22339
+ */
22340
+ this.visible = true;
22341
+ this.userAgent = window.navigator.userAgent;
22342
+ }
22343
+ handleHelperModalClose() {
22344
+ this.visible = false;
22345
+ this.cancel.emit();
22346
+ }
22347
+ ;
22348
+ render() {
22349
+ return ((this.visible &&
22350
+ index.h("div", { class: this.visible ? "HelperModalWrapper HelperModalVisible" : "HelperModalWrapper" }, index.h("div", { class: "HelperModalWrapper HelperModalVisible" }, index.h("div", { class: "HelperModalContent" + (isMobile(this.userAgent) ? ' HelperModalMobileContent' : '') }, index.h("span", { class: "HelperModalClose" + (isMobile(this.userAgent) ? ' HelperModalMobileClose' : ''), onClick: this.handleHelperModalClose.bind(this) }, "X"), index.h("slot", null))))));
22351
+ }
22352
+ };
22353
+ HelperModal.style = helperModalCss;
22354
+
22319
22355
  exports.helper_filters = HelperFilters;
22356
+ exports.helper_modal = HelperModal;
@@ -105,7 +105,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
105
105
  };
106
106
  const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
107
107
  let scopeId = getScopeId(cmpMeta);
108
- const style = styles.get(scopeId);
108
+ let style = styles.get(scopeId);
109
109
  // if an element is NOT connected then getRootNode() will return the wrong root node
110
110
  // so the fallback is to always use the document for the root node in those cases
111
111
  styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
@@ -185,7 +185,7 @@ const h = (nodeName, vnodeData, ...children) => {
185
185
  let child = null;
186
186
  let simple = false;
187
187
  let lastSimple = false;
188
- const vNodeChildren = [];
188
+ let vNodeChildren = [];
189
189
  const walk = (c) => {
190
190
  for (let i = 0; i < c.length; i++) {
191
191
  child = c[i];
@@ -308,7 +308,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
308
308
  if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
309
309
  try {
310
310
  if (!elm.tagName.includes('-')) {
311
- const n = newValue == null ? '' : newValue;
311
+ let n = newValue == null ? '' : newValue;
312
312
  // Workaround for Safari, moving the <input> caret when re-assigning the same valued
313
313
  if (memberName === 'list') {
314
314
  isProp = false;
@@ -365,7 +365,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
365
365
  };
366
366
  const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
367
367
  // tslint:disable-next-line: prefer-const
368
- const newVNode = newParentVNode.$children$[childIndex];
368
+ let newVNode = newParentVNode.$children$[childIndex];
369
369
  let i = 0;
370
370
  let elm;
371
371
  let childNode;
@@ -502,11 +502,14 @@ const patch = (oldVNode, newVNode) => {
502
502
  const elm = (newVNode.$elm$ = oldVNode.$elm$);
503
503
  const oldChildren = oldVNode.$children$;
504
504
  const newChildren = newVNode.$children$;
505
+ const tag = newVNode.$tag$;
505
506
  const text = newVNode.$text$;
506
507
  if (text === null) {
507
508
  // element node
508
509
  {
509
- {
510
+ if (tag === 'slot')
511
+ ;
512
+ else {
510
513
  // either this is the first render of an element OR it's an update
511
514
  // AND we already know it's possible it could have changed
512
515
  // this updates the element's css classes, attrs, props, listeners, etc.
@@ -539,9 +542,14 @@ const patch = (oldVNode, newVNode) => {
539
542
  };
540
543
  const renderVdom = (hostRef, renderFnResults) => {
541
544
  const hostElm = hostRef.$hostElement$;
545
+ const cmpMeta = hostRef.$cmpMeta$;
542
546
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
543
547
  const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
544
548
  hostTagName = hostElm.tagName;
549
+ if (cmpMeta.$attrsToReflect$) {
550
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
551
+ cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
552
+ }
545
553
  rootVnode.$tag$ = null;
546
554
  rootVnode.$flags$ |= 4 /* isHost */;
547
555
  hostRef.$vnode$ = rootVnode;
@@ -888,6 +896,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
888
896
  .map(([propName, m]) => {
889
897
  const attrName = m[1] || propName;
890
898
  attrNameToPropName.set(attrName, propName);
899
+ if (m[0] & 512 /* ReflectAttr */) {
900
+ cmpMeta.$attrsToReflect$.push([propName, attrName]);
901
+ }
891
902
  return attrName;
892
903
  });
893
904
  }
@@ -1048,6 +1059,9 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1048
1059
  {
1049
1060
  cmpMeta.$listeners$ = compactMeta[3];
1050
1061
  }
1062
+ {
1063
+ cmpMeta.$attrsToReflect$ = [];
1064
+ }
1051
1065
  const tagName = cmpMeta.$tagName$;
1052
1066
  const HostElement = class extends HTMLElement {
1053
1067
  // StencilLazyHost
@@ -1142,9 +1156,7 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1142
1156
  if (module) {
1143
1157
  return module[exportName];
1144
1158
  }
1145
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1146
1159
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1147
- /* @vite-ignore */
1148
1160
  /* webpackInclude: /\.entry\.js$/ */
1149
1161
  /* webpackExclude: /\.system\.entry\.js$/ */
1150
1162
  /* webpackMode: "lazy" */
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-7f951fa0.js');
5
+ const index = require('./index-979fa60b.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Esm v2.17.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchEsm = () => {
11
11
  return index.promiseResolve();
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["helper-filters.cjs",[[1,"helper-filters",{"showFilterId":[4,"show-filter-id"],"activateTicketSearch":[4,"activate-ticket-search"],"gameId":[1,"game-id"],"playerId":[1,"player-id"],"session":[1],"postMessage":[4,"post-message"],"language":[1],"showFilterModal":[32],"showClearButton":[32],"filterData":[32],"filterDataReset":[32]},[[0,"modalCloseEvent","modalCloseEvent"]]]]]], options);
17
+ return index.bootstrapLazy([["helper-filters_2.cjs",[[1,"helper-filters",{"showFilterId":[4,"show-filter-id"],"activateTicketSearch":[4,"activate-ticket-search"],"gameId":[1,"game-id"],"playerId":[1,"player-id"],"session":[1],"postMessage":[4,"post-message"],"language":[1],"showFilterModal":[32],"showClearButton":[32],"filterData":[32],"filterDataReset":[32]},[[0,"modalCloseEvent","modalCloseEvent"]]],[1,"helper-modal",{"titleModal":[1,"title-modal"],"visible":[1540]}]]]], options);
18
18
  });
19
19
  };
20
20
 
@@ -4,9 +4,16 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "2.17.0",
7
+ "version": "2.15.2",
8
8
  "typescriptVersion": "4.5.4"
9
9
  },
10
- "collections": [],
10
+ "collections": [
11
+ {
12
+ "name": "@everymatrix/helper-modal",
13
+ "tags": [
14
+ "helper-modal"
15
+ ]
16
+ }
17
+ ],
11
18
  "bundles": []
12
19
  }
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement as HTMLElement$1, createEvent, h as h$2 } from '@stencil/core/internal/client';
2
- import '@everymatrix/helper-modal';
2
+ import { d as defineCustomElement$2 } from './helper-modal2.js';
3
3
 
4
4
  const DEFAULT_LANGUAGE = 'en';
5
5
  const SUPPORTED_LANGUAGES = ['ro', 'en'];
@@ -22329,13 +22329,18 @@ function defineCustomElement$1() {
22329
22329
  if (typeof customElements === "undefined") {
22330
22330
  return;
22331
22331
  }
22332
- const components = ["helper-filters"];
22332
+ const components = ["helper-filters", "helper-modal"];
22333
22333
  components.forEach(tagName => { switch (tagName) {
22334
22334
  case "helper-filters":
22335
22335
  if (!customElements.get(tagName)) {
22336
22336
  customElements.define(tagName, HelperFilters$1);
22337
22337
  }
22338
22338
  break;
22339
+ case "helper-modal":
22340
+ if (!customElements.get(tagName)) {
22341
+ defineCustomElement$2();
22342
+ }
22343
+ break;
22339
22344
  } });
22340
22345
  }
22341
22346
 
@@ -0,0 +1,6 @@
1
+ import { H as HelperModal$1, d as defineCustomElement$1 } from './helper-modal2.js';
2
+
3
+ const HelperModal = HelperModal$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { HelperModal, defineCustomElement };
@@ -0,0 +1,58 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+
3
+ /**
4
+ * @name isMobile
5
+ * @description A method that returns if the browser used to access the app is from a mobile device or not
6
+ * @param {String} userAgent window.navigator.userAgent
7
+ * @returns {Boolean} true or false
8
+ */
9
+ const isMobile = (userAgent) => {
10
+ return !!(userAgent.toLowerCase().match(/android/i) ||
11
+ userAgent.toLowerCase().match(/blackberry|bb/i) ||
12
+ userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
13
+ userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
14
+ };
15
+
16
+ const helperModalCss = ":host{display:block}.HelperModalWrapper{position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.7);opacity:0;visibility:hidden;transform:scale(1.1);transition:visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;z-index:1}.HelperModalVisible{opacity:1;visibility:visible;transform:scale(1);transition:visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s}.HelperModalContent{position:relative;border:solid 1px #848e97;box-shadow:2px 2px 2px rgba(0, 0, 0, 0.007);font-size:14px;padding:10px 10px 5px 10px;background-color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);border-radius:4px;width:600px;max-height:600px;overflow-y:scroll}.HelperModalMobileContent{background:#FFF;top:50%;left:50%;transform:translate(-50%, -50%);border-radius:4px;width:80%;max-height:350px}.HelperModalClose{cursor:pointer;position:absolute;top:15px;right:15px;font-size:20px;color:#000}.HelperModalMobileClose{position:absolute;top:15px;right:15px;font-size:20px;color:#000}";
17
+
18
+ const HelperModal = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
19
+ constructor() {
20
+ super();
21
+ this.__registerHost();
22
+ this.__attachShadow();
23
+ this.cancel = createEvent(this, "modalCloseEvent", 7);
24
+ /**
25
+ * Toggles if the helper is visible or not
26
+ */
27
+ this.visible = true;
28
+ this.userAgent = window.navigator.userAgent;
29
+ }
30
+ handleHelperModalClose() {
31
+ this.visible = false;
32
+ this.cancel.emit();
33
+ }
34
+ ;
35
+ render() {
36
+ return ((this.visible &&
37
+ h("div", { class: this.visible ? "HelperModalWrapper HelperModalVisible" : "HelperModalWrapper" }, h("div", { class: "HelperModalWrapper HelperModalVisible" }, h("div", { class: "HelperModalContent" + (isMobile(this.userAgent) ? ' HelperModalMobileContent' : '') }, h("span", { class: "HelperModalClose" + (isMobile(this.userAgent) ? ' HelperModalMobileClose' : ''), onClick: this.handleHelperModalClose.bind(this) }, "X"), h("slot", null))))));
38
+ }
39
+ static get style() { return helperModalCss; }
40
+ }, [1, "helper-modal", {
41
+ "titleModal": [1, "title-modal"],
42
+ "visible": [1540]
43
+ }]);
44
+ function defineCustomElement() {
45
+ if (typeof customElements === "undefined") {
46
+ return;
47
+ }
48
+ const components = ["helper-modal"];
49
+ components.forEach(tagName => { switch (tagName) {
50
+ case "helper-modal":
51
+ if (!customElements.get(tagName)) {
52
+ customElements.define(tagName, HelperModal);
53
+ }
54
+ break;
55
+ } });
56
+ }
57
+
58
+ export { HelperModal as H, defineCustomElement as d };
@@ -1,5 +1,6 @@
1
1
  /* HelperFilters custom elements */
2
- export { HelperFilters as HelperFilters } from '../types/components/helper-filters/helper-filters';
2
+
3
+ import type { Components, JSX } from "../types/components";
3
4
 
4
5
  /**
5
6
  * Used to manually set the base path where assets can be found.
@@ -19,4 +20,7 @@ export interface SetPlatformOptions {
19
20
  rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
20
21
  }
21
22
  export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
23
+
24
+ export type { Components, JSX };
25
+
22
26
  export * from '../types';
@@ -1,2 +1 @@
1
1
  export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
2
- export { HelperFilters, defineCustomElement as defineCustomElementHelperFilters } from './helper-filters.js';
@@ -1,7 +1,7 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-22b0fa3e.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-af82b143.js';
2
2
 
3
3
  /*
4
- Stencil Client Patch Browser v2.17.0 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
5
5
  */
6
6
  const patchBrowser = () => {
7
7
  const importMeta = import.meta.url;
@@ -13,5 +13,5 @@ const patchBrowser = () => {
13
13
  };
14
14
 
15
15
  patchBrowser().then(options => {
16
- return bootstrapLazy([["helper-filters",[[1,"helper-filters",{"showFilterId":[4,"show-filter-id"],"activateTicketSearch":[4,"activate-ticket-search"],"gameId":[1,"game-id"],"playerId":[1,"player-id"],"session":[1],"postMessage":[4,"post-message"],"language":[1],"showFilterModal":[32],"showClearButton":[32],"filterData":[32],"filterDataReset":[32]},[[0,"modalCloseEvent","modalCloseEvent"]]]]]], options);
16
+ return bootstrapLazy([["helper-filters_2",[[1,"helper-filters",{"showFilterId":[4,"show-filter-id"],"activateTicketSearch":[4,"activate-ticket-search"],"gameId":[1,"game-id"],"playerId":[1,"player-id"],"session":[1],"postMessage":[4,"post-message"],"language":[1],"showFilterModal":[32],"showClearButton":[32],"filterData":[32],"filterDataReset":[32]},[[0,"modalCloseEvent","modalCloseEvent"]]],[1,"helper-modal",{"titleModal":[1,"title-modal"],"visible":[1540]}]]]], options);
17
17
  });
@@ -1,5 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h as h$2 } from './index-22b0fa3e.js';
2
- import '@everymatrix/helper-modal';
1
+ import { r as registerInstance, c as createEvent, h as h$2 } from './index-af82b143.js';
3
2
 
4
3
  const DEFAULT_LANGUAGE = 'en';
5
4
  const SUPPORTED_LANGUAGES = ['ro', 'en'];
@@ -22312,4 +22311,41 @@ const HelperFilters = class {
22312
22311
  };
22313
22312
  HelperFilters.style = helperFiltersCss;
22314
22313
 
22315
- export { HelperFilters as helper_filters };
22314
+ /**
22315
+ * @name isMobile
22316
+ * @description A method that returns if the browser used to access the app is from a mobile device or not
22317
+ * @param {String} userAgent window.navigator.userAgent
22318
+ * @returns {Boolean} true or false
22319
+ */
22320
+ const isMobile = (userAgent) => {
22321
+ return !!(userAgent.toLowerCase().match(/android/i) ||
22322
+ userAgent.toLowerCase().match(/blackberry|bb/i) ||
22323
+ userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
22324
+ userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
22325
+ };
22326
+
22327
+ const helperModalCss = ":host{display:block}.HelperModalWrapper{position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.7);opacity:0;visibility:hidden;transform:scale(1.1);transition:visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;z-index:1}.HelperModalVisible{opacity:1;visibility:visible;transform:scale(1);transition:visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s}.HelperModalContent{position:relative;border:solid 1px #848e97;box-shadow:2px 2px 2px rgba(0, 0, 0, 0.007);font-size:14px;padding:10px 10px 5px 10px;background-color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);border-radius:4px;width:600px;max-height:600px;overflow-y:scroll}.HelperModalMobileContent{background:#FFF;top:50%;left:50%;transform:translate(-50%, -50%);border-radius:4px;width:80%;max-height:350px}.HelperModalClose{cursor:pointer;position:absolute;top:15px;right:15px;font-size:20px;color:#000}.HelperModalMobileClose{position:absolute;top:15px;right:15px;font-size:20px;color:#000}";
22328
+
22329
+ const HelperModal = class {
22330
+ constructor(hostRef) {
22331
+ registerInstance(this, hostRef);
22332
+ this.cancel = createEvent(this, "modalCloseEvent", 7);
22333
+ /**
22334
+ * Toggles if the helper is visible or not
22335
+ */
22336
+ this.visible = true;
22337
+ this.userAgent = window.navigator.userAgent;
22338
+ }
22339
+ handleHelperModalClose() {
22340
+ this.visible = false;
22341
+ this.cancel.emit();
22342
+ }
22343
+ ;
22344
+ render() {
22345
+ return ((this.visible &&
22346
+ h$2("div", { class: this.visible ? "HelperModalWrapper HelperModalVisible" : "HelperModalWrapper" }, h$2("div", { class: "HelperModalWrapper HelperModalVisible" }, h$2("div", { class: "HelperModalContent" + (isMobile(this.userAgent) ? ' HelperModalMobileContent' : '') }, h$2("span", { class: "HelperModalClose" + (isMobile(this.userAgent) ? ' HelperModalMobileClose' : ''), onClick: this.handleHelperModalClose.bind(this) }, "X"), h$2("slot", null))))));
22347
+ }
22348
+ };
22349
+ HelperModal.style = helperModalCss;
22350
+
22351
+ export { HelperFilters as helper_filters, HelperModal as helper_modal };
@@ -83,7 +83,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
83
83
  };
84
84
  const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
85
85
  let scopeId = getScopeId(cmpMeta);
86
- const style = styles.get(scopeId);
86
+ let style = styles.get(scopeId);
87
87
  // if an element is NOT connected then getRootNode() will return the wrong root node
88
88
  // so the fallback is to always use the document for the root node in those cases
89
89
  styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
@@ -163,7 +163,7 @@ const h = (nodeName, vnodeData, ...children) => {
163
163
  let child = null;
164
164
  let simple = false;
165
165
  let lastSimple = false;
166
- const vNodeChildren = [];
166
+ let vNodeChildren = [];
167
167
  const walk = (c) => {
168
168
  for (let i = 0; i < c.length; i++) {
169
169
  child = c[i];
@@ -286,7 +286,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
286
286
  if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
287
287
  try {
288
288
  if (!elm.tagName.includes('-')) {
289
- const n = newValue == null ? '' : newValue;
289
+ let n = newValue == null ? '' : newValue;
290
290
  // Workaround for Safari, moving the <input> caret when re-assigning the same valued
291
291
  if (memberName === 'list') {
292
292
  isProp = false;
@@ -343,7 +343,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
343
343
  };
344
344
  const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
345
345
  // tslint:disable-next-line: prefer-const
346
- const newVNode = newParentVNode.$children$[childIndex];
346
+ let newVNode = newParentVNode.$children$[childIndex];
347
347
  let i = 0;
348
348
  let elm;
349
349
  let childNode;
@@ -480,11 +480,14 @@ const patch = (oldVNode, newVNode) => {
480
480
  const elm = (newVNode.$elm$ = oldVNode.$elm$);
481
481
  const oldChildren = oldVNode.$children$;
482
482
  const newChildren = newVNode.$children$;
483
+ const tag = newVNode.$tag$;
483
484
  const text = newVNode.$text$;
484
485
  if (text === null) {
485
486
  // element node
486
487
  {
487
- {
488
+ if (tag === 'slot')
489
+ ;
490
+ else {
488
491
  // either this is the first render of an element OR it's an update
489
492
  // AND we already know it's possible it could have changed
490
493
  // this updates the element's css classes, attrs, props, listeners, etc.
@@ -517,9 +520,14 @@ const patch = (oldVNode, newVNode) => {
517
520
  };
518
521
  const renderVdom = (hostRef, renderFnResults) => {
519
522
  const hostElm = hostRef.$hostElement$;
523
+ const cmpMeta = hostRef.$cmpMeta$;
520
524
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
521
525
  const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
522
526
  hostTagName = hostElm.tagName;
527
+ if (cmpMeta.$attrsToReflect$) {
528
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
529
+ cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
530
+ }
523
531
  rootVnode.$tag$ = null;
524
532
  rootVnode.$flags$ |= 4 /* isHost */;
525
533
  hostRef.$vnode$ = rootVnode;
@@ -866,6 +874,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
866
874
  .map(([propName, m]) => {
867
875
  const attrName = m[1] || propName;
868
876
  attrNameToPropName.set(attrName, propName);
877
+ if (m[0] & 512 /* ReflectAttr */) {
878
+ cmpMeta.$attrsToReflect$.push([propName, attrName]);
879
+ }
869
880
  return attrName;
870
881
  });
871
882
  }
@@ -1026,6 +1037,9 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1026
1037
  {
1027
1038
  cmpMeta.$listeners$ = compactMeta[3];
1028
1039
  }
1040
+ {
1041
+ cmpMeta.$attrsToReflect$ = [];
1042
+ }
1029
1043
  const tagName = cmpMeta.$tagName$;
1030
1044
  const HostElement = class extends HTMLElement {
1031
1045
  // StencilLazyHost
@@ -1120,9 +1134,7 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1120
1134
  if (module) {
1121
1135
  return module[exportName];
1122
1136
  }
1123
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1124
1137
  return import(
1125
- /* @vite-ignore */
1126
1138
  /* webpackInclude: /\.entry\.js$/ */
1127
1139
  /* webpackExclude: /\.system\.entry\.js$/ */
1128
1140
  /* webpackMode: "lazy" */
@@ -1,7 +1,7 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-22b0fa3e.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-af82b143.js';
2
2
 
3
3
  /*
4
- Stencil Client Patch Esm v2.17.0 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
5
5
  */
6
6
  const patchEsm = () => {
7
7
  return promiseResolve();
@@ -10,7 +10,7 @@ const patchEsm = () => {
10
10
  const defineCustomElements = (win, options) => {
11
11
  if (typeof window === 'undefined') return Promise.resolve();
12
12
  return patchEsm().then(() => {
13
- return bootstrapLazy([["helper-filters",[[1,"helper-filters",{"showFilterId":[4,"show-filter-id"],"activateTicketSearch":[4,"activate-ticket-search"],"gameId":[1,"game-id"],"playerId":[1,"player-id"],"session":[1],"postMessage":[4,"post-message"],"language":[1],"showFilterModal":[32],"showClearButton":[32],"filterData":[32],"filterDataReset":[32]},[[0,"modalCloseEvent","modalCloseEvent"]]]]]], options);
13
+ return bootstrapLazy([["helper-filters_2",[[1,"helper-filters",{"showFilterId":[4,"show-filter-id"],"activateTicketSearch":[4,"activate-ticket-search"],"gameId":[1,"game-id"],"playerId":[1,"player-id"],"session":[1],"postMessage":[4,"post-message"],"language":[1],"showFilterModal":[32],"showClearButton":[32],"filterData":[32],"filterDataReset":[32]},[[0,"modalCloseEvent","modalCloseEvent"]]],[1,"helper-modal",{"titleModal":[1,"title-modal"],"visible":[1540]}]]]], options);
14
14
  });
15
15
  };
16
16
 
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-8ee0f47c.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),e(a)})().then((e=>t([["p-beca45e4",[[1,"helper-filters",{showFilterId:[4,"show-filter-id"],activateTicketSearch:[4,"activate-ticket-search"],gameId:[1,"game-id"],playerId:[1,"player-id"],session:[1],postMessage:[4,"post-message"],language:[1],showFilterModal:[32],showClearButton:[32],filterData:[32],filterDataReset:[32]},[[0,"modalCloseEvent","modalCloseEvent"]]]]]],e)));
1
+ import{p as e,b as t}from"./p-55654a54.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),e(a)})().then((e=>t([["p-3d3f7fda",[[1,"helper-filters",{showFilterId:[4,"show-filter-id"],activateTicketSearch:[4,"activate-ticket-search"],gameId:[1,"game-id"],playerId:[1,"player-id"],session:[1],postMessage:[4,"post-message"],language:[1],showFilterModal:[32],showClearButton:[32],filterData:[32],filterDataReset:[32]},[[0,"modalCloseEvent","modalCloseEvent"]]],[1,"helper-modal",{titleModal:[1,"title-modal"],visible:[1540]}]]]],e)));