@3t-transform/threeteeui 0.1.8 → 0.1.10

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.
Files changed (57) hide show
  1. package/dist/cjs/{index-8ba406f6.js → index-dc6cc829.js} +82 -89
  2. package/dist/cjs/loader.cjs.js +3 -4
  3. package/dist/cjs/tttx-button.cjs.entry.js +1 -1
  4. package/dist/cjs/tttx-filter.cjs.entry.js +162 -0
  5. package/dist/cjs/tttx-form.cjs.entry.js +1 -1
  6. package/dist/cjs/tttx-icon.cjs.entry.js +1 -1
  7. package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +4 -3
  8. package/dist/cjs/tttx-list.cjs.entry.js +1 -1
  9. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +1 -1
  10. package/dist/cjs/tttx-standalone-input.cjs.entry.js +1 -1
  11. package/dist/cjs/tttx-toolbar.cjs.entry.js +1 -1
  12. package/dist/cjs/tttx.cjs.js +3 -7
  13. package/dist/collection/collection-manifest.json +3 -2
  14. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.css +4 -0
  15. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +2 -1
  16. package/dist/collection/components/molecules/tttx-filter/tttx-filter.css +215 -0
  17. package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +325 -0
  18. package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +118 -0
  19. package/dist/components/index.d.ts +1 -9
  20. package/dist/components/index.js +2 -1
  21. package/dist/components/tttx-filter.d.ts +11 -0
  22. package/dist/components/tttx-filter.js +195 -0
  23. package/dist/components/tttx-keyvalue-block.js +3 -2
  24. package/dist/esm/{index-5f9b72ff.js → index-86faeaab.js} +82 -89
  25. package/dist/esm/loader.js +3 -4
  26. package/dist/esm/polyfills/css-shim.js +1 -1
  27. package/dist/esm/tttx-button.entry.js +1 -1
  28. package/dist/esm/tttx-filter.entry.js +158 -0
  29. package/dist/esm/tttx-form.entry.js +1 -1
  30. package/dist/esm/tttx-icon.entry.js +1 -1
  31. package/dist/esm/tttx-keyvalue-block.entry.js +4 -3
  32. package/dist/esm/tttx-list.entry.js +1 -1
  33. package/dist/esm/tttx-loading-spinner.entry.js +1 -1
  34. package/dist/esm/tttx-standalone-input.entry.js +1 -1
  35. package/dist/esm/tttx-toolbar.entry.js +1 -1
  36. package/dist/esm/tttx.js +3 -4
  37. package/dist/tttx/p-12fc0b16.entry.js +3 -0
  38. package/dist/tttx/p-52a47b7c.js +2 -0
  39. package/dist/tttx/p-603f6ebe.entry.js +1 -0
  40. package/dist/tttx/{p-435c62b3.entry.js → p-8f3badad.entry.js} +1 -1
  41. package/dist/tttx/{p-0342cc46.entry.js → p-ae48fe5a.entry.js} +1 -1
  42. package/dist/tttx/{p-9cff9c64.entry.js → p-b0eedc78.entry.js} +1 -1
  43. package/dist/tttx/{p-405219b2.entry.js → p-bdb054b2.entry.js} +1 -1
  44. package/dist/tttx/p-dcd78796.entry.js +1 -0
  45. package/dist/tttx/{p-adf35f58.entry.js → p-e25d5fe2.entry.js} +1 -1
  46. package/dist/tttx/{p-4ecc9e8b.entry.js → p-f1d7eb35.entry.js} +1 -1
  47. package/dist/tttx/tttx.esm.js +1 -1
  48. package/dist/types/components/molecules/tttx-filter/tttx-filter.d.ts +37 -0
  49. package/dist/types/components/molecules/tttx-filter/tttx-filter.stories.d.ts +43 -0
  50. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +6 -6
  51. package/dist/types/components.d.ts +33 -0
  52. package/dist/types/stencil-public-runtime.d.ts +3 -59
  53. package/loader/index.d.ts +0 -9
  54. package/package.json +1 -1
  55. package/dist/tttx/p-1290dcd7.entry.js +0 -3
  56. package/dist/tttx/p-1b394414.entry.js +0 -1
  57. package/dist/tttx/p-c4b803fc.js +0 -2
@@ -41,18 +41,6 @@ const isComplexType = (o) => {
41
41
  o = typeof o;
42
42
  return o === 'object' || o === 'function';
43
43
  };
44
- /**
45
- * Helper method for querying a `meta` tag that contains a nonce value
46
- * out of a DOM's head.
47
- *
48
- * @param doc The DOM containing the `head` to query against
49
- * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
50
- * exists or the tag has no content.
51
- */
52
- function queryNonceMetaTagContent(doc) {
53
- var _a, _b, _c;
54
- return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
55
- }
56
44
  /**
57
45
  * Production h() function based on Preact by
58
46
  * Jason Miller (@developit)
@@ -61,10 +49,12 @@ function queryNonceMetaTagContent(doc) {
61
49
  *
62
50
  * Modified for Stencil's compiler and vdom
63
51
  */
52
+ // const stack: any[] = [];
64
53
  // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
65
54
  // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
66
55
  const h = (nodeName, vnodeData, ...children) => {
67
56
  let child = null;
57
+ let key = null;
68
58
  let simple = false;
69
59
  let lastSimple = false;
70
60
  const vNodeChildren = [];
@@ -92,6 +82,10 @@ const h = (nodeName, vnodeData, ...children) => {
92
82
  };
93
83
  walk(children);
94
84
  if (vnodeData) {
85
+ // normalize class / classname attributes
86
+ if (vnodeData.key) {
87
+ key = vnodeData.key;
88
+ }
95
89
  {
96
90
  const classData = vnodeData.className || vnodeData.class;
97
91
  if (classData) {
@@ -109,16 +103,11 @@ const h = (nodeName, vnodeData, ...children) => {
109
103
  if (vNodeChildren.length > 0) {
110
104
  vnode.$children$ = vNodeChildren;
111
105
  }
106
+ {
107
+ vnode.$key$ = key;
108
+ }
112
109
  return vnode;
113
110
  };
114
- /**
115
- * A utility function for creating a virtual DOM node from a tag and some
116
- * possible text content.
117
- *
118
- * @param tag the tag for this element
119
- * @param text possible text content for the node
120
- * @returns a newly-minted virtual DOM node
121
- */
122
111
  const newVNode = (tag, text) => {
123
112
  const vnode = {
124
113
  $flags$: 0,
@@ -130,15 +119,12 @@ const newVNode = (tag, text) => {
130
119
  {
131
120
  vnode.$attrs$ = null;
132
121
  }
122
+ {
123
+ vnode.$key$ = null;
124
+ }
133
125
  return vnode;
134
126
  };
135
127
  const Host = {};
136
- /**
137
- * Check whether a given node is a Host node or not
138
- *
139
- * @param node the virtual DOM node to check
140
- * @returns whether it's a Host node or not
141
- */
142
128
  const isHost = (node) => node && node.$tag$ === Host;
143
129
  /**
144
130
  * Parse a new property value for a given property type.
@@ -227,7 +213,6 @@ const registerStyle = (scopeId, cssText, allowCS) => {
227
213
  styles.set(scopeId, style);
228
214
  };
229
215
  const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
230
- var _a;
231
216
  let scopeId = getScopeId(cmpMeta);
232
217
  const style = styles.get(scopeId);
233
218
  // if an element is NOT connected then getRootNode() will return the wrong root node
@@ -247,11 +232,6 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
247
232
  styleElm = doc.createElement('style');
248
233
  styleElm.innerHTML = style;
249
234
  }
250
- // Apply CSP nonce to the style tag if it exists
251
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
252
- if (nonce != null) {
253
- styleElm.setAttribute('nonce', nonce);
254
- }
255
235
  styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
256
236
  }
257
237
  if (appliedStyles) {
@@ -307,6 +287,33 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
307
287
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
308
288
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
309
289
  }
290
+ else if (memberName === 'style') {
291
+ // update style attribute, css properties and values
292
+ {
293
+ for (const prop in oldValue) {
294
+ if (!newValue || newValue[prop] == null) {
295
+ if (prop.includes('-')) {
296
+ elm.style.removeProperty(prop);
297
+ }
298
+ else {
299
+ elm.style[prop] = '';
300
+ }
301
+ }
302
+ }
303
+ }
304
+ for (const prop in newValue) {
305
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
306
+ if (prop.includes('-')) {
307
+ elm.style.setProperty(prop, newValue[prop]);
308
+ }
309
+ else {
310
+ elm.style[prop] = newValue[prop];
311
+ }
312
+ }
313
+ }
314
+ }
315
+ else if (memberName === 'key')
316
+ ;
310
317
  else if (memberName === 'ref') {
311
318
  // minifier will clean this up
312
319
  if (newValue) {
@@ -459,21 +466,6 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
459
466
  }
460
467
  return elm;
461
468
  };
462
- /**
463
- * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
464
- * add them to the DOM in the appropriate place.
465
- *
466
- * @param parentElm the DOM node which should be used as a parent for the new
467
- * DOM nodes
468
- * @param before a child of the `parentElm` which the new children should be
469
- * inserted before (optional)
470
- * @param parentVNode the parent virtual DOM node
471
- * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
472
- * @param startIdx the index in the child virtual DOM nodes at which to start
473
- * creating DOM nodes (inclusive)
474
- * @param endIdx the index in the child virtual DOM nodes at which to stop
475
- * creating DOM nodes (inclusive)
476
- */
477
469
  const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
478
470
  let containerElm = (parentElm);
479
471
  let childNode;
@@ -490,19 +482,6 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
490
482
  }
491
483
  }
492
484
  };
493
- /**
494
- * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
495
- * This can be used to, for instance, clean up after a list of children which
496
- * should no longer be shown.
497
- *
498
- * This function also handles some of Stencil's slot relocation logic.
499
- *
500
- * @param vnodes a list of virtual DOM nodes to remove
501
- * @param startIdx the index at which to start removing nodes (inclusive)
502
- * @param endIdx the index at which to stop removing nodes (inclusive)
503
- * @param vnode a VNode
504
- * @param elm an element
505
- */
506
485
  const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
507
486
  for (; startIdx <= endIdx; ++startIdx) {
508
487
  if ((vnode = vnodes[startIdx])) {
@@ -584,6 +563,8 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
584
563
  const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
585
564
  let oldStartIdx = 0;
586
565
  let newStartIdx = 0;
566
+ let idxInOld = 0;
567
+ let i = 0;
587
568
  let oldEndIdx = oldCh.length - 1;
588
569
  let oldStartVnode = oldCh[0];
589
570
  let oldEndVnode = oldCh[oldEndIdx];
@@ -591,6 +572,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
591
572
  let newStartVnode = newCh[0];
592
573
  let newEndVnode = newCh[newEndIdx];
593
574
  let node;
575
+ let elmToMove;
594
576
  while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
595
577
  if (oldStartVnode == null) {
596
578
  // VNode might have been moved left
@@ -657,7 +639,41 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
657
639
  newStartVnode = newCh[++newStartIdx];
658
640
  }
659
641
  else {
642
+ // Here we do some checks to match up old and new nodes based on the
643
+ // `$key$` attribute, which is set by putting a `key="my-key"` attribute
644
+ // in the JSX for a DOM element in the implementation of a Stencil
645
+ // component.
646
+ //
647
+ // First we check to see if there are any nodes in the array of old
648
+ // children which have the same key as the first node in the new
649
+ // children.
650
+ idxInOld = -1;
660
651
  {
652
+ for (i = oldStartIdx; i <= oldEndIdx; ++i) {
653
+ if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
654
+ idxInOld = i;
655
+ break;
656
+ }
657
+ }
658
+ }
659
+ if (idxInOld >= 0) {
660
+ // We found a node in the old children which matches up with the first
661
+ // node in the new children! So let's deal with that
662
+ elmToMove = oldCh[idxInOld];
663
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
664
+ // the tag doesn't match so we'll need a new DOM element
665
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
666
+ }
667
+ else {
668
+ patch(elmToMove, newStartVnode);
669
+ // invalidate the matching old node so that we won't try to update it
670
+ // again later on
671
+ oldCh[idxInOld] = undefined;
672
+ node = elmToMove.$elm$;
673
+ }
674
+ newStartVnode = newCh[++newStartIdx];
675
+ }
676
+ else {
661
677
  // We either didn't find an element in the old children that matches
662
678
  // the key of the first new child OR the build is not using `key`
663
679
  // attributes at all. In either case we need to create a new element
@@ -695,8 +711,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
695
711
  *
696
712
  * So, in other words, if `key` attrs are not set on VNodes which may be
697
713
  * changing order within a `children` array or something along those lines then
698
- * we could obtain a false negative and then have to do needless re-rendering
699
- * (i.e. we'd say two VNodes aren't equal when in fact they should be).
714
+ * we could obtain a false positive and then have to do needless re-rendering.
700
715
  *
701
716
  * @param leftVNode the first VNode to check
702
717
  * @param rightVNode the second VNode to check
@@ -706,7 +721,10 @@ const isSameVnode = (leftVNode, rightVNode) => {
706
721
  // compare if two vnode to see if they're "technically" the same
707
722
  // need to have the same element tag, and same key to be the same
708
723
  if (leftVNode.$tag$ === rightVNode.$tag$) {
709
- return true;
724
+ // this will be set if components in the build have `key` attrs set on them
725
+ {
726
+ return leftVNode.$key$ === rightVNode.$key$;
727
+ }
710
728
  }
711
729
  return false;
712
730
  };
@@ -766,18 +784,6 @@ const callNodeRefs = (vNode) => {
766
784
  vNode.$children$ && vNode.$children$.map(callNodeRefs);
767
785
  }
768
786
  };
769
- /**
770
- * The main entry point for Stencil's virtual DOM-based rendering engine
771
- *
772
- * Given a {@link d.HostRef} container and some virtual DOM nodes, this
773
- * function will handle creating a virtual DOM tree with a single root, patching
774
- * the current virtual DOM tree onto an old one (if any), dealing with slot
775
- * relocation, and reflecting attributes.
776
- *
777
- * @param hostRef data needed to root and render the virtual DOM tree, such as
778
- * the DOM node into which it should be rendered.
779
- * @param renderFnResults the virtual DOM nodes to be rendered
780
- */
781
787
  const renderVdom = (hostRef, renderFnResults) => {
782
788
  const hostElm = hostRef.$hostElement$;
783
789
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -1224,7 +1230,6 @@ const disconnectedCallback = (elm) => {
1224
1230
  }
1225
1231
  };
1226
1232
  const bootstrapLazy = (lazyBundles, options = {}) => {
1227
- var _a;
1228
1233
  const endBootstrap = createTime();
1229
1234
  const cmpTags = [];
1230
1235
  const exclude = options.exclude || [];
@@ -1303,11 +1308,6 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1303
1308
  {
1304
1309
  visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1305
1310
  visibilityStyle.setAttribute('data-styles', '');
1306
- // Apply CSP nonce to the style tag if it exists
1307
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1308
- if (nonce != null) {
1309
- visibilityStyle.setAttribute('nonce', nonce);
1310
- }
1311
1311
  head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1312
1312
  }
1313
1313
  // Process deferred connectedCallbacks now all components have been registered
@@ -1323,13 +1323,6 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1323
1323
  // Fallback appLoad event
1324
1324
  endBootstrap();
1325
1325
  };
1326
- /**
1327
- * Assigns the given value to the nonce property on the runtime platform object.
1328
- * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
1329
- * @param nonce The value to be assigned to the platform nonce property.
1330
- * @returns void
1331
- */
1332
- const setNonce = (nonce) => (plt.$nonce$ = nonce);
1333
1326
  const hostRefs = /*@__PURE__*/ new WeakMap();
1334
1327
  const getHostRef = (ref) => hostRefs.get(ref);
1335
1328
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
@@ -1436,4 +1429,4 @@ const flush = () => {
1436
1429
  const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1437
1430
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1438
1431
 
1439
- export { Host as H, bootstrapLazy as b, createEvent as c, h, promiseResolve as p, registerInstance as r, setNonce as s };
1432
+ export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r };
@@ -1,8 +1,7 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-5f9b72ff.js';
2
- export { s as setNonce } from './index-5f9b72ff.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-86faeaab.js';
3
2
 
4
3
  /*
5
- Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Patch Esm v2.20.0 | MIT Licensed | https://stenciljs.com
6
5
  */
7
6
  const patchEsm = () => {
8
7
  return promiseResolve();
@@ -11,7 +10,7 @@ const patchEsm = () => {
11
10
  const defineCustomElements = (win, options) => {
12
11
  if (typeof window === 'undefined') return Promise.resolve();
13
12
  return patchEsm().then(() => {
14
- return bootstrapLazy([["tttx-button",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}]]],["tttx-list",[[1,"tttx-list",{"data":[1025],"name":[1]}]]],["tttx-standalone-input",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"showerrorbubble":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"inputicon":[1],"inline":[4],"inputAutocapitalize":[1,"input-autocapitalize"],"inputAutofocus":[4,"input-autofocus"],"inputKeyhint":[1,"input-keyhint"],"inputIndex":[8,"input-index"],"inputTitle":[1,"input-title"],"autocomplete":[1],"checked":[4],"disabled":[4],"max":[8],"maxlength":[8],"min":[8],"minlength":[8],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[8],"required":[4],"step":[8],"type":[1],"value":[1032]}]]],["tttx-form",[[1,"tttx-form",{"formschema":[1032],"submitValue":[1032,"submit-value"]}]]],["tttx-keyvalue-block",[[1,"tttx-keyvalue-block",{"keyvalues":[8],"horizontal":[4]}]]],["tttx-loading-spinner",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-toolbar",[[1,"tttx-toolbar",{"border":[4]}]]],["tttx-icon",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
13
+ return bootstrapLazy([["tttx-button",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}]]],["tttx-filter",[[1,"tttx-filter",{"filterKey":[1,"filter-key"],"filterOptions":[16],"showSelectAll":[4,"show-select-all"],"showSearchField":[4,"show-search-field"],"showOptionIcons":[4,"show-option-icons"],"filterButtonStyle":[1,"filter-button-style"],"filterHeader":[1,"filter-header"],"showPopover":[32],"selectedFilters":[32],"filterSearchTerm":[32],"displayedFilterSettings":[32],"allSelected":[32]}]]],["tttx-list",[[1,"tttx-list",{"data":[1025],"name":[1]}]]],["tttx-standalone-input",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"showerrorbubble":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"inputicon":[1],"inline":[4],"inputAutocapitalize":[1,"input-autocapitalize"],"inputAutofocus":[4,"input-autofocus"],"inputKeyhint":[1,"input-keyhint"],"inputIndex":[8,"input-index"],"inputTitle":[1,"input-title"],"autocomplete":[1],"checked":[4],"disabled":[4],"max":[8],"maxlength":[8],"min":[8],"minlength":[8],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[8],"required":[4],"step":[8],"type":[1],"value":[1032]}]]],["tttx-form",[[1,"tttx-form",{"formschema":[1032],"submitValue":[1032,"submit-value"]}]]],["tttx-keyvalue-block",[[1,"tttx-keyvalue-block",{"keyvalues":[8],"horizontal":[4]}]]],["tttx-loading-spinner",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-toolbar",[[1,"tttx-toolbar",{"border":[4]}]]],["tttx-icon",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
15
14
  });
16
15
  };
17
16
 
@@ -1 +1 @@
1
- var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},__assign.apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@",VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.slice(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);
1
+ var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@",VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.slice(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, H as Host } from './index-5f9b72ff.js';
1
+ import { r as registerInstance, h, H as Host } from './index-86faeaab.js';
2
2
 
3
3
  const tttxButtonCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.button{font-family:Roboto, serif;box-sizing:border-box;height:36px;min-width:36px;padding:0;margin:0;background:transparent;color:#212121;border:1px solid #c8c8c8;border-radius:4px;text-transform:uppercase;display:flex;justify-content:left;align-items:center;font-size:14px;font-weight:400}.button-content{display:block;padding:0 16px}.icon-left,.icon-right{margin-top:4px}.iconleft{padding-left:8px}.iconleft .button-content{padding-left:4px}.iconright{padding-right:8px}.iconright .button-content{padding-right:4px}.notext{padding:0 6px}.button:hover{background:rgba(17, 17, 17, 0.1);border:1px solid #D5D5D5}.button:active{background:rgba(17, 17, 17, 0.2);border:1px solid #D5D5D5}.primary{background:#1479c6;border:1px solid #1479c6;color:white}.primary:hover{background:#146EB3;border:1px solid #146EB3}.primary:active{background:#1464A2;border:1px solid #1464A2}.borderless{background:transparent;border:none;color:#212121}.borderless:hover{background:rgba(17, 17, 17, 0.1);border:none}.borderless:active{background:rgba(17, 17, 17, 0.2);border:none}.danger{background:#DC0000;border:1px solid #DC0000;color:white}.danger:hover{background:#C60000;border:1px solid #C60000}.danger:active{background:#B00000;border:1px solid #B00000}.disabled{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:hover{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:active{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}:host{display:inline-block}button{cursor:pointer}tttx-icon{cursor:inherit}.spacingleft{margin-left:8px}";
4
4
 
@@ -0,0 +1,158 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-86faeaab.js';
2
+
3
+ const tttxFilterCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.filter-container .filter-button{display:inline-flex;justify-content:center;align-items:center;font-size:14px;font-weight:400;font-family:\"Roboto\", serif;text-transform:uppercase;color:#212121;border:1px solid #d5d5d5;border-radius:4px;background:transparent;height:36px;width:95px;margin:0;padding-right:16px}.filter-container .filter-button .filter-icon{padding-left:8px;padding-right:4px}.filter-container .filter-button.--list-icon{font-size:0;width:36px;height:36px;padding:0}.filter-container .filter-button.--list-icon .filter-icon{padding:0}.filter-container .filter-button.--list-icon:hover{background:#e3e3e3}.filter-container .filter-button.--table-icon{font-size:0;width:36px;height:36px;padding:0;border:none}.filter-container .filter-button.--table-icon .filter-icon{padding:0;width:24px;height:24px}.filter-container .filter-button.--table-icon:hover{background:#e3e3e3;border-radius:50%;width:36px;height:36px}.filter-container .filter-button:hover{background:#e3e3e3}.filter-container .filter-popover-container{display:block;width:196px;border-radius:4px;box-shadow:0px 1px 5px #1111114D;position:absolute}.filter-container .filter-popover-container .filter-header{color:#757575;text-transform:uppercase;font-size:14px;font-weight:500;font-family:\"Roboto\", serif;padding-left:16px;padding-top:12px;padding-bottom:12px;margin:0}.filter-container .filter-popover-container .popover-divider{border:none;width:164px;display:flex;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:8px;height:1px;background-color:#d5d5d5}.filter-container .filter-popover-container .filter-option{display:flex;flex-direction:row;align-items:center;height:36px;padding-left:22px;padding-bottom:4px}.filter-container .filter-popover-container .filter-option .select-all-icon{padding-right:6px}.filter-container .filter-popover-container .filter-option .checkbox-icon{padding-right:8px}.filter-container .filter-popover-container .filter-option .filter-label{padding-left:8px;padding-bottom:3px;font-size:16px;font-weight:500;font-family:\"Roboto\", serif}.filter-container .filter-popover-container .filter-option:first-child{margin-top:8px}.filter-container .filter-popover-container .filter-option:last-child{margin-bottom:8px}.filter-container .filter-popover-container .filter-popover-button-container{display:flex;justify-content:flex-end;align-items:center;padding-bottom:8px}.filter-container .filter-popover-container .filter-popover-button-container .close-button{height:36px;width:74px;background-color:white;border:1px solid #d5d5d5;border-radius:4px;text-transform:uppercase;margin-right:8px;font-size:14px;font-weight:400;font-family:\"Roboto\", serif}.filter-container .filter-popover-container .filter-popover-button-container .apply-button{height:36px;width:73px;background-color:#1479c6;color:white;border-radius:4px;border:none;text-transform:uppercase;margin-right:16px;font-size:14px;font-weight:400;font-family:\"Roboto\", serif}.filter-container .filter-popover-container.--with-search-field{width:252px}.filter-container .filter-popover-container.--with-search-field .popover-divider{width:220px}.filter-container .filter-popover-container.--with-search-field .popover-divider:first-child{top:44px}.filter-container .filter-popover-container.--with-search-field .search-field-container{position:relative;color:#d5d5d5;width:220px;height:36px;padding:0 16px}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-icon{position:absolute;top:50%;padding-left:8px;padding-bottom:9.2px;height:17px;width:17px;transform:translateY(-50%)}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input{padding-left:36px;border:1px solid #d5d5d5;border-radius:4px;height:36px;width:220px;font-size:16px;font-family:\"Roboto\", serif;font-weight:500;color:#9e9e9e;box-sizing:border-box}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input:focus-visible,.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input:focus{outline:none;border:1px solid #1479c6}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input::placeholder{color:#9e9e9e;font-size:16px;font-family:\"Roboto\", serif;font-weight:500}.filter-container .filter-popover-container.--with-search-field .search-field-container .popover-divider{margin-top:8px}.filter-container .filter-popover-container.--with-search-field .filter-option:first-child{padding-top:8px}";
4
+
5
+ const TttxFilter = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.filterChangeEvent = createEvent(this, "filterChangeEvent", 7);
9
+ this.filterKey = undefined;
10
+ this.filterOptions = [
11
+ { optionIcon: 'cancel', optionIconColor: 'darkred', optionText: 'Expired' },
12
+ { optionIcon: 'warning', optionIconColor: 'orange', optionText: 'Expiring soon' },
13
+ { optionIcon: 'check_circle', optionIconColor: 'green', optionText: 'Active' },
14
+ ];
15
+ this.showSelectAll = true;
16
+ this.showSearchField = false;
17
+ this.showOptionIcons = true;
18
+ this.filterButtonStyle = 'list filter';
19
+ this.filterHeader = 'Qualification status';
20
+ this.showPopover = false;
21
+ this.selectedFilters = this.filterOptions.map((filterOption) => filterOption.optionText);
22
+ this.filterSearchTerm = '';
23
+ this.displayedFilterSettings = this.filterOptions;
24
+ this.allSelected = true;
25
+ }
26
+ emitFilterEvent() {
27
+ this.filterChangeEvent.emit({
28
+ selectedFilters: this.selectedFilters,
29
+ filterKey: this.filterKey,
30
+ allSelected: this.allSelected,
31
+ });
32
+ }
33
+ onFilterButtonClick() {
34
+ this.togglePopover();
35
+ }
36
+ onCloseButtonClick() {
37
+ this.togglePopover();
38
+ }
39
+ onApplyFilterButtonClick() {
40
+ this.emitFilterEvent();
41
+ this.togglePopover();
42
+ }
43
+ onFilterOptionSelected(selectedOption) {
44
+ this.allSelected = false;
45
+ if (this.selectedFilters.includes(selectedOption)) {
46
+ this.selectedFilters = this.selectedFilters.filter((filter) => filter != selectedOption);
47
+ }
48
+ else {
49
+ this.selectedFilters = [...this.selectedFilters, selectedOption];
50
+ }
51
+ }
52
+ togglePopover() {
53
+ this.showPopover = !this.showPopover;
54
+ // if(!this.showPopover) {
55
+ // // this._focussedElementIndex = -1;
56
+ // }
57
+ }
58
+ // Commented out keyboard interaction for now
59
+ // @Listen('keyup')
60
+ // handleKeyUp(event: KeyboardEvent) {
61
+ // const keyboardEventValue = event.key;
62
+ // if (document.activeElement.id != `filter__${this.filterKey}`) return;
63
+ // if (event.key == " " || event.code == "Space" || event.keyCode == 32) {
64
+ // if (this._focussedElementIndex == 0) {
65
+ // this.onSelectAllClick()
66
+ // } else {
67
+ // const options = this.el.shadowRoot.querySelectorAll('.filter-option') as HTMLElement[];
68
+ // this.onFilterOptionSelected(options[this._focussedElementIndex].textContent)
69
+ // }
70
+ // return;
71
+ // }
72
+ // switch (keyboardEventValue) {
73
+ // case 'Enter':
74
+ // if(!this.showPopover) {
75
+ // this.showPopover=true
76
+ // } else {
77
+ // this.emitFilterEvent()
78
+ // }
79
+ // break;
80
+ // case 'Escape':
81
+ // this.showPopover = false;
82
+ // this._focussedElementIndex = -1;
83
+ // break;
84
+ // case 'ArrowDown':
85
+ // this.showPopover = true;
86
+ // if (this._focussedElementIndex == -1) {
87
+ // this._focussedElementIndex = 0;
88
+ // } else {
89
+ // const options = this.el.shadowRoot.querySelectorAll('.filter-option') as HTMLElement[];
90
+ // const currentOption = options[this._focussedElementIndex] as HTMLElement;
91
+ // currentOption.blur();
92
+ // // options[this._focussedElementIndex].focus();
93
+ // this._focussedElementIndex + 1 < options.length ? this._focussedElementIndex++ : (this._focussedElementIndex = 0);
94
+ // }
95
+ // break;
96
+ // case 'ArrowUp':
97
+ // if (this._focussedElementIndex == -1) {
98
+ // this.showPopover = true;
99
+ // this._focussedElementIndex = 0;
100
+ // } else {
101
+ // const options = this.el.shadowRoot.querySelectorAll('.filter-option') as HTMLElement[];
102
+ // const currentOption = options[this._focussedElementIndex] as HTMLElement;
103
+ // currentOption.blur();
104
+ // // options[this._focussedElementIndex].focus();
105
+ // this._focussedElementIndex > 0 ? this._focussedElementIndex-- : (this._focussedElementIndex = options.length - 1);
106
+ // }
107
+ // break;
108
+ // }
109
+ // }
110
+ handleFilterChange(event) {
111
+ const target = event.target;
112
+ this.filterSearchTerm = target.value;
113
+ const filteredResults = this.filterOptions.filter((filterOption) => {
114
+ const lowercaseOption = filterOption.optionText.toLowerCase();
115
+ const filterTerm = this.filterSearchTerm.toLowerCase();
116
+ return lowercaseOption.includes(filterTerm);
117
+ });
118
+ this.displayedFilterSettings = filteredResults;
119
+ }
120
+ onSelectAllClick() {
121
+ this.allSelected = !this.allSelected;
122
+ if (this.allSelected) {
123
+ this.displayedFilterSettings.forEach((filterSetting) => { this.selectedFilters = [...this.selectedFilters, filterSetting.optionText]; });
124
+ }
125
+ else {
126
+ this.selectedFilters = [];
127
+ }
128
+ }
129
+ getFilterButtonClassName(buttonStyle) {
130
+ switch (buttonStyle) {
131
+ case 'table icon': {
132
+ return '--table-icon';
133
+ }
134
+ case 'list icon': {
135
+ return '--list-icon';
136
+ }
137
+ default: {
138
+ return '';
139
+ }
140
+ }
141
+ }
142
+ render() {
143
+ const filterPopoverContainerClassNameModifier = this.showSearchField ? '--with-search-field' : '';
144
+ const selectAllCheckboxIcon = this.allSelected ? 'check_box' : 'check_box_outline_blank';
145
+ const selectAllCheckboxColor = this.allSelected ? 'blue' : 'grey';
146
+ const buttonStyleClassNameModifier = this.getFilterButtonClassName(this.filterButtonStyle);
147
+ const filterKey = `filter__${this.filterKey}`;
148
+ return (h(Host, { id: filterKey }, h("div", { class: 'filter-container' }, h("button", { class: `filter-button ${buttonStyleClassNameModifier}`, type: 'button', onClick: this.onFilterButtonClick.bind(this) }, h("tttx-icon", { icon: 'filter_list', class: 'filter-icon', color: 'black' }), "Filter"), this.showPopover && (h("div", { class: `filter-popover-container ${filterPopoverContainerClassNameModifier}` }, h("h4", { class: 'filter-header' }, this.filterHeader), h("hr", { class: 'popover-divider' }), this.showSearchField ? (h("div", { class: 'search-field-container' }, h("tttx-icon", { icon: 'search', class: 'search-icon' }), h("input", { type: 'text', class: 'search-input', placeholder: 'Search', value: this.filterSearchTerm, onInput: this.handleFilterChange.bind(this) }), h("hr", { class: 'popover-divider' }))) : (''), h("div", { class: 'filter-options-container' }, this.showSelectAll ? (h("div", { class: 'filter-option', tabIndex: -1, onClick: this.onSelectAllClick.bind(this) }, h("tttx-icon", { icon: selectAllCheckboxIcon, color: selectAllCheckboxColor, class: 'select-all-icon' }), h("label", { class: 'filter-label' }, "Select all"))) : (''), this.displayedFilterSettings.map((option) => {
149
+ const checkboxIcon = this.selectedFilters.includes(option.optionText) ? 'check_box' : 'check_box_outline_blank';
150
+ const checkboxColor = this.selectedFilters.includes(option.optionText) ? 'blue' : 'grey';
151
+ return h("div", { class: 'filter-option', tabIndex: -1, onClick: () => this.onFilterOptionSelected(option.optionText), key: option.optionText }, h("tttx-icon", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), this.showOptionIcons && h("tttx-icon", { icon: option.optionIcon, color: option.optionIconColor }), h("label", { class: 'filter-label' }, option.optionText));
152
+ })), h("hr", { class: 'popover-divider' }), h("div", { class: 'filter-popover-button-container' }, h("button", { type: 'button', class: 'close-button', onClick: this.onCloseButtonClick.bind(this) }, "Close"), h("button", { type: 'button', class: 'apply-button', onClick: this.onApplyFilterButtonClick.bind(this) }, "Apply")))))));
153
+ }
154
+ get el() { return getElement(this); }
155
+ };
156
+ TttxFilter.style = tttxFilterCss;
157
+
158
+ export { TttxFilter as tttx_filter };
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-5f9b72ff.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-86faeaab.js';
2
2
 
3
3
  /**
4
4
  * Validates the input field on focusout event by checking its validity state,
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, H as Host } from './index-5f9b72ff.js';
1
+ import { r as registerInstance, h, H as Host } from './index-86faeaab.js';
2
2
 
3
3
  const tttxIconCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}:host{display:inline-block;cursor:default;user-select:none}.icon-size{width:24px;height:24px}.tooltip{background:#ffffff;color:#343434;font-weight:bold;padding:8px 16px;font-size:13px;border-radius:4px;box-shadow:0 0 5px 1px rgba(0, 0, 0, 0.3);display:none}.tooltip[data-show]{display:block}.arrow,.arrow::before{position:absolute;width:8px;height:8px;background:inherit}.arrow{visibility:hidden}.arrow::before{visibility:visible;content:\"\";transform:rotate(45deg)}.tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}.tooltip[data-popper-placement^=left]>.arrow{right:-4px}.tooltip[data-popper-placement^=right]>.arrow{left:-4px}.red{color:#dc0000}.darkred{color:#A20000}.orange{color:#f59500}.blue{color:#1479c6}.green{color:#a2bb31}.gray{color:#757575}.black{color:#212121}.white{color:white}";
4
4
 
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h, H as Host } from './index-5f9b72ff.js';
1
+ import { r as registerInstance, h, H as Host } from './index-86faeaab.js';
2
2
 
3
- const tttxKeyvalueBlockCss = ":host{display:block}dl{margin:0;padding:0;font-family:\"Roboto\", sans-serif;cursor:default}dt{font-weight:400;line-height:21px;font-size:16px}dt,dt.subTitle{color:#757575}dt.mainTitle{color:#212121}dd{margin:0;font-weight:400;font-size:16px;color:#212121;line-height:21px;margin-bottom:18px}dl.horizontal{display:flex;flex-direction:row;width:100%}dl.horizontal div{flex-grow:1}@media (max-width: 769px){dl.horizontal{flex-wrap:wrap}dl.horizontal div{width:50%}}@media (max-width: 600px){dl.horizontal div{width:100%}}";
3
+ const tttxKeyvalueBlockCss = ":host{display:block}dl{margin:0;padding:0;font-family:\"Roboto\", sans-serif;cursor:default}dt{font-weight:400;line-height:21px;font-size:16px}dt,dt.subTitle{color:#757575}dt.mainTitle{color:#212121}dt,dd{overflow-wrap:anywhere}dd{margin:0;font-weight:400;font-size:16px;color:#212121;line-height:21px;margin-bottom:18px}dl.horizontal{display:flex;flex-direction:row;width:100%}dl.horizontal div{flex-grow:1}@media (max-width: 769px){dl.horizontal{flex-wrap:wrap}dl.horizontal div{width:50%}}@media (max-width: 600px){dl.horizontal div{width:100%}}";
4
4
 
5
5
  const TttxKeyvalueBlock = class {
6
6
  constructor(hostRef) {
@@ -24,10 +24,11 @@ const TttxKeyvalueBlock = class {
24
24
  }
25
25
  renderArrayElements(values) {
26
26
  const elements = [];
27
+ const divSize = (100 / values.length).toString();
27
28
  for (let i = 0; i < values.length; i++) {
28
29
  const value = values[i];
29
30
  if (this.horizontal) {
30
- elements.push(h("div", null, h("dt", { class: 'mainTitle' }, value.title), h("dt", { class: 'subTitle' }, value.subTitle), h("dd", null, value.data)));
31
+ elements.push(h("div", { style: { maxWidth: divSize } }, h("dt", { class: 'mainTitle' }, value.title), h("dt", { class: 'subTitle' }, value.subTitle), h("dd", null, value.data)));
31
32
  }
32
33
  else {
33
34
  elements.push(h("dt", { class: 'mainTitle' }, value.title));
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-5f9b72ff.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-86faeaab.js';
2
2
 
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-5f9b72ff.js';
1
+ import { r as registerInstance, h } from './index-86faeaab.js';
2
2
 
3
3
  const tttxLoadingSpinnerCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.spinner-container{position:absolute}.loading-box{display:flex;align-items:center;justify-content:center}.loading-text{font-size:16px;font-weight:400;padding-top:10px;text-align:center}.spinner{border:solid #1479c6;border-bottom-color:#d5d5d5;border-radius:50%;position:relative;box-sizing:border-box;animation:rotation 1s linear infinite}.spinner.small{height:20px;width:20px;border-width:4px}.spinner.large{height:60px;width:60px;border-width:8px}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
4
4
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-5f9b72ff.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-86faeaab.js';
2
2
 
3
3
  const tttxStandaloneInputCss = ".material-symbols-rounded.sc-tttx-standalone-input{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded.sc-tttx-standalone-input{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.icon-left.sc-tttx-standalone-input,.icon-right.sc-tttx-standalone-input{flex-basis:24px}.icon-left.sc-tttx-standalone-input span.sc-tttx-standalone-input,.icon-right.sc-tttx-standalone-input span.sc-tttx-standalone-input{font-size:24px;line-height:24px;text-align:center;display:block;width:24px;height:24px;margin-top:4px}.icon-left.sc-tttx-standalone-input span.sc-tttx-standalone-input{margin-left:4px}.icon-right.sc-tttx-standalone-input span.sc-tttx-standalone-input{margin-right:4px}.icon-right.sc-tttx-standalone-input{margin-top:5px}.icon-left.sc-tttx-standalone-input{margin-top:5px;margin-left:4px}.iconleft.sc-tttx-standalone-input .input.sc-tttx-standalone-input{padding-left:4px}.iconright.sc-tttx-standalone-input .input.sc-tttx-standalone-input{padding-right:4px}.input-icon.sc-tttx-standalone-input{position:absolute;margin-top:9px;margin-left:4px}.errormsg.sc-tttx-standalone-input{display:flex;justify-content:center;align-items:center;float:left;margin-bottom:16px;box-sizing:border-box;background-color:transparent;height:26px;font-size:14px;border-radius:none;z-index:2;color:#dc0000}.errormsg.sc-tttx-standalone-input .validationicon.sc-tttx-standalone-input{width:16px;height:16px;font-size:16px;margin-right:4px;vertical-align:middle;color:#dc0000}.danger.sc-tttx-standalone-input{color:#dc0000}.optional.sc-tttx-standalone-input{color:#757575;font-weight:normal}label.inputBlock.sc-tttx-standalone-input{display:block;position:relative;line-height:21px}label.inputInline.sc-tttx-standalone-input{display:flex;white-space:nowrap;align-items:center}label.inputInline.sc-tttx-standalone-input .input-container.sc-tttx-standalone-input{margin:0 4px;width:100%;display:flex;align-items:center;gap:4px;position:relative}label.sc-tttx-standalone-input{font-weight:500;font-size:16px}input.sc-tttx-standalone-input:not([type=submit]){font-family:\"Roboto\", serif;box-sizing:border-box;width:100%;height:36px;padding:0 16px;font-size:16px;border:1px solid #d5d5d5;border-radius:4px;margin-top:4px}input[type=date].sc-tttx-standalone-input{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}@media (max-width: 600px){input[type=date].sc-tttx-standalone-input{padding-top:6px}}input.invalid.sc-tttx-standalone-input:invalid,input.standalone.invalid.sc-tttx-standalone-input{border:1px solid #dc0000}.input-icon.sc-tttx-standalone-input~input.sc-tttx-standalone-input{padding:0 32px}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input{min-height:27px;position:relative;font-size:14px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input:not(.visible){visibility:hidden}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input span.sc-tttx-standalone-input{color:#dc0000;font-size:16px;margin-right:4px;height:16px}input.invalid.sc-tttx-standalone-input:invalid~.errorBubble.sc-tttx-standalone-input{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;visibility:visible}input.sc-tttx-standalone-input:focus{border-color:#1479c6}input.sc-tttx-standalone-input:focus-visible{outline:none}.sc-tttx-standalone-input-h{display:block}";
4
4