@maggioli-design-system/mds-accordion-timer 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/cjs/{index-dc0bb58e.js → index-7df03a1a.js} +27 -1
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/mds-accordion-timer.cjs.entry.js +3 -3
  4. package/dist/cjs/mds-accordion-timer.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.js +2 -2
  7. package/dist/collection/components/mds-accordion-timer/test/mds-accordion-timer.stories.js +24 -7
  8. package/dist/collection/dictionary/floating-ui.js +19 -0
  9. package/dist/collection/dictionary/icon.js +2 -2
  10. package/dist/collection/dictionary/typography.js +7 -1
  11. package/dist/collection/dictionary/variant.js +1 -0
  12. package/dist/collection/types/floating-ui.js +1 -0
  13. package/dist/{custom-elements → components}/index.d.ts +2 -21
  14. package/dist/components/index.js +1 -0
  15. package/dist/components/mds-accordion-timer.d.ts +11 -0
  16. package/dist/{custom-elements/index.js → components/mds-accordion-timer.js} +23 -18
  17. package/dist/esm/{index-468ab090.js → index-606863a9.js} +27 -1
  18. package/dist/esm/loader.js +2 -2
  19. package/dist/esm/mds-accordion-timer.entry.js +3 -3
  20. package/dist/esm/mds-accordion-timer.js +2 -2
  21. package/dist/esm/polyfills/css-shim.js +1 -1
  22. package/dist/esm-es5/index-606863a9.js +1 -0
  23. package/dist/esm-es5/loader.js +1 -1
  24. package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
  25. package/dist/esm-es5/mds-accordion-timer.js +1 -1
  26. package/dist/mds-accordion-timer/mds-accordion-timer.esm.js +1 -1
  27. package/dist/mds-accordion-timer/mds-accordion-timer.js +1 -1
  28. package/dist/mds-accordion-timer/p-0858b7b2.entry.js +1 -0
  29. package/dist/mds-accordion-timer/{p-74539cca.system.js → p-5ba97e5e.system.js} +1 -1
  30. package/dist/mds-accordion-timer/p-601a7453.system.js +1 -0
  31. package/dist/mds-accordion-timer/{p-104355eb.system.entry.js → p-b88ff19a.system.entry.js} +1 -1
  32. package/dist/mds-accordion-timer/p-e8b186ed.js +1 -0
  33. package/dist/stats.json +50 -42
  34. package/dist/types/dictionary/floating-ui.d.ts +3 -0
  35. package/dist/types/dictionary/typography.d.ts +2 -1
  36. package/dist/types/stencil-public-runtime.d.ts +6 -4
  37. package/dist/types/types/floating-ui.d.ts +2 -0
  38. package/dist/types/types/typography.d.ts +3 -2
  39. package/dist/types/types/variant.d.ts +1 -1
  40. package/package.json +5 -5
  41. package/readme.md +1 -1
  42. package/src/components/mds-accordion-timer/.gitlab-ci.yml +18 -0
  43. package/src/components/mds-accordion-timer/mds-accordion-timer.tsx +1 -1
  44. package/src/components/mds-accordion-timer/readme.md +1 -1
  45. package/src/components/mds-accordion-timer/test/mds-accordion-timer.e2e.ts +2 -1
  46. package/src/components/mds-accordion-timer/test/mds-accordion-timer.spec.tsx +8 -7
  47. package/src/components/mds-accordion-timer/test/mds-accordion-timer.stories.js +24 -7
  48. package/src/dictionary/floating-ui.ts +25 -0
  49. package/src/dictionary/icon.ts +2 -2
  50. package/src/dictionary/typography.ts +8 -0
  51. package/src/dictionary/variant.ts +1 -0
  52. package/src/fixtures/icons.json +62 -0
  53. package/src/tailwind/components.css +14 -0
  54. package/src/types/floating-ui.ts +17 -0
  55. package/src/types/typography.ts +6 -0
  56. package/src/types/variant.ts +2 -1
  57. package/www/build/mds-accordion-timer.esm.js +1 -1
  58. package/www/build/mds-accordion-timer.js +1 -1
  59. package/www/build/p-0858b7b2.entry.js +1 -0
  60. package/www/build/{p-74539cca.system.js → p-5ba97e5e.system.js} +1 -1
  61. package/www/build/p-601a7453.system.js +1 -0
  62. package/www/build/{p-104355eb.system.entry.js → p-b88ff19a.system.entry.js} +1 -1
  63. package/www/build/p-e8b186ed.js +1 -0
  64. package/dist/esm-es5/index-468ab090.js +0 -1
  65. package/dist/mds-accordion-timer/p-2c75936b.entry.js +0 -1
  66. package/dist/mds-accordion-timer/p-a652c8b3.system.js +0 -1
  67. package/dist/mds-accordion-timer/p-ac3fdd27.js +0 -1
  68. package/www/build/p-2c75936b.entry.js +0 -1
  69. package/www/build/p-a652c8b3.system.js +0 -1
  70. package/www/build/p-ac3fdd27.js +0 -1
@@ -568,6 +568,29 @@ const then = (promise, thenFn) => {
568
568
  };
569
569
  const addHydratedFlag = (elm) => elm.classList.add('hydrated')
570
570
  ;
571
+ /**
572
+ * Parse a new property value for a given property type.
573
+ *
574
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
575
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
576
+ * 1. `any`, the type given to `propValue` in the function signature
577
+ * 2. the type stored from `propType`.
578
+ *
579
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
580
+ *
581
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
582
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
583
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
584
+ * ```tsx
585
+ * <my-cmp prop-val={0}></my-cmp>
586
+ * ```
587
+ *
588
+ * HTML prop values on the other hand, will always a string
589
+ *
590
+ * @param propValue the new value to coerce to some type
591
+ * @param propType the type of the prop, expressed as a binary number
592
+ * @returns the parsed/coerced value
593
+ */
571
594
  const parsePropertyValue = (propValue, propType) => {
572
595
  // ensure this value is of the correct prop type
573
596
  if (propValue != null && !isComplexType(propValue)) {
@@ -590,7 +613,10 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
590
613
  const flags = hostRef.$flags$;
591
614
  const instance = hostRef.$lazyInstance$ ;
592
615
  newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
593
- if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && newVal !== oldVal) {
616
+ // explicitly check for NaN on both sides, as `NaN === NaN` is always false
617
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
618
+ const didValueChange = newVal !== oldVal && !areBothNaN;
619
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && didValueChange) {
594
620
  // gadzooks! the property's value has changed!!
595
621
  // set our new value!
596
622
  hostRef.$instanceValues$.set(propName, newVal);
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-dc0bb58e.js');
5
+ const index = require('./index-7df03a1a.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Esm v2.10.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Esm v2.15.1 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchEsm = () => {
11
11
  return index.promiseResolve();
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-dc0bb58e.js');
5
+ const index = require('./index-7df03a1a.js');
6
6
 
7
7
  const mdsAccordionTimerCss = ":host{display:block}";
8
8
 
9
- let MdsAccordionTimer = class {
9
+ const MdsAccordionTimer = class {
10
10
  constructor(hostRef) {
11
11
  index.registerInstance(this, hostRef);
12
12
  this.itemActivated = index.createEvent(this, "itemActivated", 7);
@@ -14,7 +14,7 @@ let MdsAccordionTimer = class {
14
14
  /**
15
15
  * Sets the duration of the single accordion item
16
16
  */
17
- this.duration = 5000;
17
+ this.duration = 10000;
18
18
  this.clearIntervals = () => {
19
19
  window.clearInterval(this.timer);
20
20
  window.clearInterval(this.timeChecker);
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-dc0bb58e.js');
3
+ const index = require('./index-7df03a1a.js');
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v2.10.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v2.15.1 | 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('mds-accordion-timer.cjs.js', document.baseURI).href));
@@ -4,8 +4,8 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "2.10.0",
8
- "typescriptVersion": "4.3.5"
7
+ "version": "2.15.1",
8
+ "typescriptVersion": "4.5.4"
9
9
  },
10
10
  "collections": [],
11
11
  "bundles": []
@@ -5,7 +5,7 @@ export class MdsAccordionTimer {
5
5
  /**
6
6
  * Sets the duration of the single accordion item
7
7
  */
8
- this.duration = 5000;
8
+ this.duration = 10000;
9
9
  this.clearIntervals = () => {
10
10
  window.clearInterval(this.timer);
11
11
  window.clearInterval(this.timeChecker);
@@ -139,7 +139,7 @@ export class MdsAccordionTimer {
139
139
  },
140
140
  "attribute": "duration",
141
141
  "reflect": false,
142
- "defaultValue": "5000"
142
+ "defaultValue": "10000"
143
143
  }
144
144
  }; }
145
145
  static get states() { return {
@@ -1,13 +1,13 @@
1
1
  import React from 'react'
2
2
  import MdsAccordionTimer from '@component/mds-accordion-timer/mds-accordion-timer'
3
- import faker from 'faker'
3
+ import { lokiDisabled } from '@test/loki-disabled'
4
4
 
5
5
  export default {
6
6
  title: 'UI / Accordion Timer',
7
7
  component: MdsAccordionTimer,
8
8
  argTypes: {
9
9
  duration: {
10
- type: { name: 'number', required: false },
10
+ type: { name: 'number' },
11
11
  description: 'Sets the duration of the single accordion item',
12
12
  },
13
13
  },
@@ -16,17 +16,34 @@ export default {
16
16
  const Template = args =>
17
17
  <div>
18
18
  <mds-accordion-timer {...args}>
19
- <mds-accordion-timer-item active description={ faker.lorem.sentence() }><mds-text>{ faker.lorem.paragraphs(2) }</mds-text></mds-accordion-timer-item>
20
- <mds-accordion-timer-item description={ faker.lorem.sentence() }><mds-text>{ faker.lorem.paragraphs(2) }</mds-text></mds-accordion-timer-item>
21
- <mds-accordion-timer-item description={ faker.lorem.sentence() }><mds-text>{ faker.lorem.paragraphs(2) }</mds-text></mds-accordion-timer-item>
22
- <mds-accordion-timer-item description={ faker.lorem.sentence() }><mds-text>{ faker.lorem.paragraphs(2) }</mds-text></mds-accordion-timer-item>
23
- <mds-accordion-timer-item description={ faker.lorem.sentence() }><mds-text>{ faker.lorem.paragraphs(2) }</mds-text></mds-accordion-timer-item>
19
+ <mds-accordion-timer-item active description="Blipbug">
20
+ <mds-text>Blipbug presenta delle fattezze riconducibili agli insetti nello stadio pre-crisalide. Il suo corpo si sviluppa in lunghezza, ed è formato principalmente da tre parti: la sua grande testa, il suo collo (molto simile ad un collare), e il corpo vero e proprio. La prima di queste è suddivisa in una parte color crema e una parte color denim; dello stesso colore sono le appenidici a forma di "V" che si trovano sopra e ai lati della testa. I suoi occhi sono enormi e grigi, ed hanno delle sottilissime sopracciglia sopra di essi. Il suo "collare", anch'esso color denim, presenta delle "setole" giallo sabbia, con le quali percepisce i segnali esterni: stesso colore si presenta nel segmento centrale della sua parte inferiore, dove sono presenti un primo paio di zampe crema. Il segmento superiore del corpo è bianco e ospita delle zampe anteriori color crema, ed infine, la parte finale, o la "coda", è color denim e finisce con un'appendice a "V" un po' piú grossa.</mds-text>
21
+ </mds-accordion-timer-item>
22
+ <mds-accordion-timer-item description="Drednaw">
23
+ <mds-text>Drednaw è un Pokémon quadrupede simile ad una tartaruga alligatore. Il corpo è principalmente di colore turchese così come le zampe cilindriche e tozze, le quali terminano con tre unghie allungate e bianche. Sulle zampe anteriori, circa sulla loro metà, spuntanto delle protuberanze simili a scaglie di roccia color marroncino, ricorrenti anche nel resto del corpo: ad esempio, sul muso c'è una protuberanza a zig-zag che ospita le sue narici; sulla coda sono alternate delle scaglie e attorno al guscio c'è una cornice dello stesso colore; anche le placche superiori sembrano essere fatte di roccia, ma sono di un colore marrone scuro, invece che chiaro. Queste parti rocciose sembrano essere frastagliate, per niente levigate. Il suo volto presenta occhi bassi e imbronciati, con delle guance arancioni e sporgenti ed una bocca a zig-zag, la cui parte inferiore è simile al beige, colore presente anche nelle placche del guscio inferiori, che stavolta fanno vedere la pelle a volte grinzosa del Pokémon (in particolare attorno al collo e sulle zampe). Le sue scaglie di roccia sono spesso rivolte verso di dietro, dando l'idea di una roccia grezza e non liscia e lavorata.</mds-text>
24
+ </mds-accordion-timer-item>
25
+ <mds-accordion-timer-item description="Orbeetle">
26
+ <mds-text>Orbeetle presenta aspetti comuni ad una coccinella ormai matura. Il suo corpo si sviluppa attorno al guscio che è di forma semisferica ed è metallizzato in grigio (lo si può vedere in particolare dalla parte inferiore di esso): la sua scocca è rossa, con dei pois denim sopra di essa; è bisezionata per permettere di aprirsi e attaccare con degli strani poteri. All'estremità del taglio intermedio è incastonato il volto di Orbeetle, il quale presenta delle guance bianche con occhi imbronciati celesti, aventi sclere concentriche; sopra di essi ci sono due lunghe sopracciglia dorate a forma di "V" e ad incorniciare la faccia del Pokémon è una cornice grigia, che finisce, con delle striature, sul naso dello stesso. La bocca, assieme alle ginocchia e alla pancia, è rossa. Il suo corpo è piccolo ed è costituito da una vita stretta con una bacino largo, da dove si sviluppano due cosce secche ed esili per poi finire con appuntiti gambali dorati; le sue braccia sono magre e biforcute, come se avessero artigli.</mds-text>
27
+ </mds-accordion-timer-item>
28
+ <mds-accordion-timer-item description="Dottler">
29
+ <mds-text>Dottler può essere considerato la "crisalide" della linea evolutiva di Blipbug, vista la sua forma e il suo comportamento. Presenta un guscio di forma poligonale (molto simile a quella di un radar Doppler o di un radome) di color giallo sabbia, con dei pois blu scuro sugli spigoli; leggermente in basso è presente la sua faccia di color arancione chiaro, sulla quale ci sono degli occhi celesti attorniati da un contorno arancione, da linee sottili e nere e da delle appendici blu simili a quelle dei Blipbug. Il Pokémon non sembra essere dedito a muoversi se non fosse per le quattro zampette blu scuro su cui cammina.</mds-text>
30
+ </mds-accordion-timer-item>
31
+ <mds-accordion-timer-item description="Centiskorch">
32
+ <mds-text>Con l'evoluzione Sizzlipede diventa più aggressivo, soprattutto grazie alla sua stazza più grande e al suo enorme potenziale. Il corpo diventa più lungo e si "seziona" in dodici parti, anche qui un'estremità è la "coda" e l'altra è la testa, queste due parti, assieme all'intera parte inferiore del corpo sono del rosso mattone presente nella sua pre-evo, mentre le "parti" comprese tra la coda e la testa restano marroni/bordeaux; questa volte, dello stesso colore della "schiena" sono le zampe, le quali son diventate più minacciose e uncinate, questa volta sono dieci per ogni lato; marrone/bordeaux sono anche delle tenaglie. presenti in paia, sulla coda e sulla testa; su queste estremità son presenti quattro sbuffi o "baffi" di fuoco. Sulla testa è presente un simbolo arancione chiaro a forma di punto esclamativo; stessa gamma cromatica è presente nei segni circolari situati nella zona inferiore del corpo, i quali son formati, però, anche da un anello e da un cerchio, più interno, di colore giallo sabbia; non sono altro che i punti che Sizzlipede riscalda per attaccare e scottare le prede. I suoi occhi sono giallo elettrico con pupille triangolari color marrone e rovesciati.</mds-text>
33
+ </mds-accordion-timer-item>
24
34
  </mds-accordion-timer>
25
35
  </div>
26
36
 
27
37
  export const Default = Template.bind({})
38
+ Default.story = lokiDisabled
28
39
 
29
40
  export const Duration = Template.bind({})
30
41
  Duration.args = {
31
42
  duration: 1000,
32
43
  }
44
+ Duration.story = lokiDisabled
45
+
46
+ export const LokiTest = Template.bind({})
47
+ LokiTest.args = {
48
+ duration: 0,
49
+ }
@@ -0,0 +1,19 @@
1
+ const floatingUIPlacementDictionary = [
2
+ 'bottom',
3
+ 'bottom-end',
4
+ 'bottom-start',
5
+ 'left',
6
+ 'left-end',
7
+ 'left-start',
8
+ 'right',
9
+ 'right-end',
10
+ 'right-start',
11
+ 'top',
12
+ 'top-end',
13
+ 'top-start',
14
+ ];
15
+ const floatingUIStrategyDictionary = [
16
+ 'absolute',
17
+ 'fixed',
18
+ ];
19
+ export { floatingUIPlacementDictionary, floatingUIStrategyDictionary, };
@@ -1,3 +1,3 @@
1
- import mggIconsDictionary from '@maggioli-design-system/icons/original/dictionary.json';
2
- const iconsDictionary = Object.keys(mggIconsDictionary).sort();
1
+ import jsonIconsDictionary from '../fixtures/icons.json';
2
+ const iconsDictionary = jsonIconsDictionary;
3
3
  export { iconsDictionary, };
@@ -13,6 +13,7 @@ const typographyDictionary = [
13
13
  'label',
14
14
  'option',
15
15
  'paragraph',
16
+ 'tip',
16
17
  ];
17
18
  const typographyMonoDictionary = [
18
19
  'code',
@@ -33,5 +34,10 @@ const typographySecondaryDictionary = [
33
34
  'label',
34
35
  'option',
35
36
  'paragraph',
37
+ 'tip',
36
38
  ];
37
- export { typographyDictionary, typographyMonoDictionary, typographyPrimaryDictionary, typographySecondaryDictionary, };
39
+ const typographySmallerDictionary = [
40
+ 'option',
41
+ 'tip',
42
+ ];
43
+ export { typographyDictionary, typographyMonoDictionary, typographyPrimaryDictionary, typographySecondaryDictionary, typographySmallerDictionary, };
@@ -3,6 +3,7 @@ const themeVariantDictionary = [
3
3
  'error',
4
4
  'info',
5
5
  'light',
6
+ 'primary',
6
7
  'success',
7
8
  'warning',
8
9
  ];
@@ -0,0 +1 @@
1
+ export {};
@@ -1,25 +1,7 @@
1
- /* MdsAccordionTimer custom elements bundle */
1
+ /* MdsAccordionTimer custom elements */
2
2
 
3
3
  import type { Components, JSX } from "../types/components";
4
4
 
5
- interface MdsAccordionTimer extends Components.MdsAccordionTimer, HTMLElement {}
6
- export const MdsAccordionTimer: {
7
- prototype: MdsAccordionTimer;
8
- new (): MdsAccordionTimer;
9
- };
10
-
11
- /**
12
- * Utility to define all custom elements within this package using the tag name provided in the component's source.
13
- * When defining each custom element, it will also check it's safe to define by:
14
- *
15
- * 1. Ensuring the "customElements" registry is available in the global context (window).
16
- * 2. The component tag name is not already defined.
17
- *
18
- * Use the standard [customElements.define()](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define)
19
- * method instead to define custom elements individually, or to provide a different tag name.
20
- */
21
- export declare const defineCustomElements: (opts?: any) => void;
22
-
23
5
  /**
24
6
  * Used to manually set the base path where assets can be found.
25
7
  * If the script is used as "module", it's recommended to use "import.meta.url",
@@ -27,7 +9,7 @@ export declare const defineCustomElements: (opts?: any) => void;
27
9
  * "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
28
10
  * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
29
11
  * But do note that this configuration depends on how your script is bundled, or lack of
30
- * bunding, and where your assets can be loaded from. Additionally custom bundling
12
+ * bundling, and where your assets can be loaded from. Additionally custom bundling
31
13
  * will have to ensure the static assets are copied to its build directory.
32
14
  */
33
15
  export declare const setAssetPath: (path: string) => void;
@@ -36,7 +18,6 @@ export interface SetPlatformOptions {
36
18
  raf?: (c: FrameRequestCallback) => number;
37
19
  ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
38
20
  rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
39
- ce?: (eventName: string, opts?: any) => CustomEvent;
40
21
  }
41
22
  export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
42
23
 
@@ -0,0 +1 @@
1
+ export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface MdsAccordionTimer extends Components.MdsAccordionTimer, HTMLElement {}
4
+ export const MdsAccordionTimer: {
5
+ prototype: MdsAccordionTimer;
6
+ new (): MdsAccordionTimer;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -1,9 +1,8 @@
1
- import { createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
2
- export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
3
2
 
4
3
  const mdsAccordionTimerCss = ":host{display:block}";
5
4
 
6
- let MdsAccordionTimer$1 = class extends HTMLElement {
5
+ const MdsAccordionTimer$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
6
  constructor() {
8
7
  super();
9
8
  this.__registerHost();
@@ -13,7 +12,7 @@ let MdsAccordionTimer$1 = class extends HTMLElement {
13
12
  /**
14
13
  * Sets the duration of the single accordion item
15
14
  */
16
- this.duration = 5000;
15
+ this.duration = 10000;
17
16
  this.clearIntervals = () => {
18
17
  window.clearInterval(this.timer);
19
18
  window.clearInterval(this.timeChecker);
@@ -123,19 +122,25 @@ let MdsAccordionTimer$1 = class extends HTMLElement {
123
122
  }
124
123
  get element() { return this; }
125
124
  static get style() { return mdsAccordionTimerCss; }
126
- };
127
-
128
- const MdsAccordionTimer = /*@__PURE__*/proxyCustomElement(MdsAccordionTimer$1, [1,"mds-accordion-timer",{"duration":[2],"time":[32]},[[0,"clickActive","onClickActive"],[0,"mouseEnterActive","onMouseEnterActive"],[0,"mouseLeaveActive","onMouseLeaveActive"]]]);
129
- const defineCustomElements = (opts) => {
130
- if (typeof customElements !== 'undefined') {
131
- [
132
- MdsAccordionTimer
133
- ].forEach(cmp => {
134
- if (!customElements.get(cmp.is)) {
135
- customElements.define(cmp.is, cmp, opts);
136
- }
137
- });
125
+ }, [1, "mds-accordion-timer", {
126
+ "duration": [2],
127
+ "time": [32]
128
+ }, [[0, "clickActive", "onClickActive"], [0, "mouseEnterActive", "onMouseEnterActive"], [0, "mouseLeaveActive", "onMouseLeaveActive"]]]);
129
+ function defineCustomElement$1() {
130
+ if (typeof customElements === "undefined") {
131
+ return;
138
132
  }
139
- };
133
+ const components = ["mds-accordion-timer"];
134
+ components.forEach(tagName => { switch (tagName) {
135
+ case "mds-accordion-timer":
136
+ if (!customElements.get(tagName)) {
137
+ customElements.define(tagName, MdsAccordionTimer$1);
138
+ }
139
+ break;
140
+ } });
141
+ }
142
+
143
+ const MdsAccordionTimer = MdsAccordionTimer$1;
144
+ const defineCustomElement = defineCustomElement$1;
140
145
 
141
- export { MdsAccordionTimer, defineCustomElements };
146
+ export { MdsAccordionTimer, defineCustomElement };
@@ -546,6 +546,29 @@ const then = (promise, thenFn) => {
546
546
  };
547
547
  const addHydratedFlag = (elm) => elm.classList.add('hydrated')
548
548
  ;
549
+ /**
550
+ * Parse a new property value for a given property type.
551
+ *
552
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
553
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
554
+ * 1. `any`, the type given to `propValue` in the function signature
555
+ * 2. the type stored from `propType`.
556
+ *
557
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
558
+ *
559
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
560
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
561
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
562
+ * ```tsx
563
+ * <my-cmp prop-val={0}></my-cmp>
564
+ * ```
565
+ *
566
+ * HTML prop values on the other hand, will always a string
567
+ *
568
+ * @param propValue the new value to coerce to some type
569
+ * @param propType the type of the prop, expressed as a binary number
570
+ * @returns the parsed/coerced value
571
+ */
549
572
  const parsePropertyValue = (propValue, propType) => {
550
573
  // ensure this value is of the correct prop type
551
574
  if (propValue != null && !isComplexType(propValue)) {
@@ -568,7 +591,10 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
568
591
  const flags = hostRef.$flags$;
569
592
  const instance = hostRef.$lazyInstance$ ;
570
593
  newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
571
- if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && newVal !== oldVal) {
594
+ // explicitly check for NaN on both sides, as `NaN === NaN` is always false
595
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
596
+ const didValueChange = newVal !== oldVal && !areBothNaN;
597
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && didValueChange) {
572
598
  // gadzooks! the property's value has changed!!
573
599
  // set our new value!
574
600
  hostRef.$instanceValues$.set(propName, newVal);
@@ -1,7 +1,7 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-468ab090.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-606863a9.js';
2
2
 
3
3
  /*
4
- Stencil Client Patch Esm v2.10.0 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Patch Esm v2.15.1 | MIT Licensed | https://stenciljs.com
5
5
  */
6
6
  const patchEsm = () => {
7
7
  return promiseResolve();
@@ -1,8 +1,8 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-468ab090.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-606863a9.js';
2
2
 
3
3
  const mdsAccordionTimerCss = ":host{display:block}";
4
4
 
5
- let MdsAccordionTimer = class {
5
+ const MdsAccordionTimer = class {
6
6
  constructor(hostRef) {
7
7
  registerInstance(this, hostRef);
8
8
  this.itemActivated = createEvent(this, "itemActivated", 7);
@@ -10,7 +10,7 @@ let MdsAccordionTimer = class {
10
10
  /**
11
11
  * Sets the duration of the single accordion item
12
12
  */
13
- this.duration = 5000;
13
+ this.duration = 10000;
14
14
  this.clearIntervals = () => {
15
15
  window.clearInterval(this.timer);
16
16
  window.clearInterval(this.timeChecker);
@@ -1,7 +1,7 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-468ab090.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-606863a9.js';
2
2
 
3
3
  /*
4
- Stencil Client Patch Browser v2.10.0 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Patch Browser v2.15.1 | MIT Licensed | https://stenciljs.com
5
5
  */
6
6
  const patchBrowser = () => {
7
7
  const importMeta = import.meta.url;
@@ -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}).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="@";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}var VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;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.substr(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,"\\."+t,"."+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=s.scopeId+"-"+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="@";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}var VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;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);
@@ -0,0 +1 @@
1
+ var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(e,t,n,r){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function i(e){try{l(r["throw"](e))}catch(e){o(e)}}function l(e){e.done?n(e.value):a(e.value).then(s,i)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,s;return s={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function i(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,a&&(o=s[0]&2?a["return"]:s[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,s[1])).done)return o;if(a=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;a=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];a=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,o;r<a;r++){if(o||!(r in t)){if(!o)o=Array.prototype.slice.call(t,0,r);o[r]=t[r]}}return e.concat(o||Array.prototype.slice.call(t))};var NAMESPACE="mds-accordion-timer";var scopeId;var hostTagName;var queuePending=false;var win=typeof window!=="undefined"?window:{};var doc=win.document||{head:{}};var plt={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,n,r){return e.addEventListener(t,n,r)},rel:function(e,t,n,r){return e.removeEventListener(t,n,r)},ce:function(e,t){return new CustomEvent(e,t)}};var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructibleStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replace==="function"}catch(e){}return false}();var addHostEventListeners=function(e,t,n,r){if(n){n.map((function(n){var r=n[0],a=n[1],o=n[2];var s=e;var i=hostListenerProxy(t,o);var l=hostListenerOpts(r);plt.ael(s,a,i,l);(t.$rmListeners$=t.$rmListeners$||[]).push((function(){return plt.rel(s,a,i,l)}))}))}};var hostListenerProxy=function(e,t){return function(n){try{{if(e.$flags$&256){e.$lazyInstance$[t](n)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}}}catch(e){consoleError(e)}}};var hostListenerOpts=function(e){return(e&2)!==0};var HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}";var createTime=function(e,t){if(t===void 0){t=""}{return function(){return}}};var uniqueTime=function(e,t){{return function(){return}}};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,t,n){var r=styles.get(e);if(supportsConstructibleStylesheets&&n){r=r||new CSSStyleSheet;r.replace(t)}else{r=t}styles.set(e,r)};var addStyle=function(e,t,n,r){var a=getScopeId(t);var o=styles.get(a);e=e.nodeType===11?e:doc;if(o){if(typeof o==="string"){e=e.head||e;var s=rootAppliedStyles.get(e);var i=void 0;if(!s){rootAppliedStyles.set(e,s=new Set)}if(!s.has(a)){{{i=doc.createElement("style");i.innerHTML=o}e.insertBefore(i,e.querySelector("link"))}if(s){s.add(a)}}}else if(!e.adoptedStyleSheets.includes(o)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[o],false)}}return a};var attachStyles=function(e){var t=e.$cmpMeta$;var n=e.$hostElement$;var r=t.$flags$;var a=createTime("attachStyles",t.$tagName$);var o=addStyle(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=o;n.classList.add(o+"-h")}a()};var getScopeId=function(e,t){return"sc-"+e.$tagName$};var isDef=function(e){return e!=null};var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};var h=function(e,t){var n=[];for(var r=2;r<arguments.length;r++){n[r-2]=arguments[r]}var a=null;var o=false;var s=false;var i=[];var l=function(t){for(var n=0;n<t.length;n++){a=t[n];if(Array.isArray(a)){l(a)}else if(a!=null&&typeof a!=="boolean"){if(o=typeof e!=="function"&&!isComplexType(a)){a=String(a)}if(o&&s){i[i.length-1].$text$+=a}else{i.push(o?newVNode(null,a):a)}s=o}}};l(n);var u=newVNode(e,null);u.$attrs$=t;if(i.length>0){u.$children$=i}return u};var newVNode=function(e,t){var n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n};var Host={};var isHost=function(e){return e&&e.$tag$===Host};var createElm=function(e,t,n,r){var a=t.$children$[n];var o=0;var s;var i;{s=a.$elm$=doc.createElement(a.$tag$);if(isDef(scopeId)&&s["s-si"]!==scopeId){s.classList.add(s["s-si"]=scopeId)}if(a.$children$){for(o=0;o<a.$children$.length;++o){i=createElm(e,a,o);if(i){s.appendChild(i)}}}}return s};var addVnodes=function(e,t,n,r,a,o){var s=e;var i;if(s.shadowRoot&&s.tagName===hostTagName){s=s.shadowRoot}for(;a<=o;++a){if(r[a]){i=createElm(null,n,a);if(i){r[a].$elm$=i;s.insertBefore(i,t)}}}};var removeVnodes=function(e,t,n,r,a){for(;t<=n;++t){if(r=e[t]){a=r.$elm$;a.remove()}}};var updateChildren=function(e,t,n,r){var a=0;var o=0;var s=t.length-1;var i=t[0];var l=t[s];var u=r.length-1;var c=r[0];var f=r[u];var $;while(a<=s&&o<=u){if(i==null){i=t[++a]}else if(l==null){l=t[--s]}else if(c==null){c=r[++o]}else if(f==null){f=r[--u]}else if(isSameVnode(i,c)){patch(i,c);i=t[++a];c=r[++o]}else if(isSameVnode(l,f)){patch(l,f);l=t[--s];f=r[--u]}else if(isSameVnode(i,f)){patch(i,f);e.insertBefore(i.$elm$,l.$elm$.nextSibling);i=t[++a];f=r[--u]}else if(isSameVnode(l,c)){patch(l,c);e.insertBefore(l.$elm$,i.$elm$);l=t[--s];c=r[++o]}else{{$=createElm(t&&t[o],n,o);c=r[++o]}if($){{i.$elm$.parentNode.insertBefore($,i.$elm$)}}}}if(a>s){addVnodes(e,r[u+1]==null?null:r[u+1].$elm$,n,r,o,u)}else if(o>u){removeVnodes(t,a,s)}};var isSameVnode=function(e,t){if(e.$tag$===t.$tag$){return true}return false};var patch=function(e,t){var n=t.$elm$=e.$elm$;var r=e.$children$;var a=t.$children$;{if(r!==null&&a!==null){updateChildren(n,r,t,a)}else if(a!==null){addVnodes(n,null,t,a,0,a.length-1)}else if(r!==null){removeVnodes(r,0,r.length-1)}}};var renderVdom=function(e,t){var n=e.$hostElement$;var r=e.$vnode$||newVNode(null,null);var a=isHost(t)?t:h(null,null,t);hostTagName=n.tagName;a.$tag$=null;a.$flags$|=4;e.$vnode$=a;a.$elm$=r.$elm$=n.shadowRoot||n;{scopeId=n["s-sc"]}patch(r,a)};var getElement=function(e){return getHostRef(e).$hostElement$};var createEvent=function(e,t,n){var r=getElement(e);return{emit:function(e){return emitEvent(r,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}}};var emitEvent=function(e,t,n){var r=plt.ce(t,n);e.dispatchEvent(r);return r};var attachToAncestor=function(e,t){if(t&&!e.$onRenderResolve$&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))}};var scheduleUpdate=function(e,t){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}attachToAncestor(e,e.$ancestorComponent$);var n=function(){return dispatchHooks(e,t)};return writeTask(n)};var dispatchHooks=function(e,t){var n=createTime("scheduleUpdate",e.$cmpMeta$.$tagName$);var r=e.$lazyInstance$;var a;if(t){{e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var t=e[0],n=e[1];return safeCall(r,t,n)}));e.$queuedListeners$=null}}}n();return then(a,(function(){return updateComponent(e,r,t)}))};var updateComponent=function(e,t,n){return __awaiter(void 0,void 0,void 0,(function(){var r,a,o,s,i,l;return __generator(this,(function(u){r=e.$hostElement$;a=createTime("update",e.$cmpMeta$.$tagName$);o=r["s-rc"];if(n){attachStyles(e)}s=createTime("render",e.$cmpMeta$.$tagName$);{callRender(e,t)}if(o){o.map((function(e){return e()}));r["s-rc"]=undefined}s();a();{i=r["s-p"];l=function(){return postUpdateComponent(e)};if(i.length===0){l()}else{Promise.all(i).then(l);e.$flags$|=4;i.length=0}}return[2]}))}))};var callRender=function(e,t,n){try{t=t.render();{e.$flags$&=~16}{e.$flags$|=2}{{{renderVdom(e,t)}}}}catch(t){consoleError(t,e.$hostElement$)}return null};var postUpdateComponent=function(e){var t=e.$cmpMeta$.$tagName$;var n=e.$hostElement$;var r=createTime("postUpdate",t);var a=e.$lazyInstance$;var o=e.$ancestorComponent$;if(!(e.$flags$&64)){e.$flags$|=64;{addHydratedFlag(n)}{safeCall(a,"componentDidLoad")}r();{e.$onReadyResolve$(n);if(!o){appDidLoad()}}}else{r()}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.$flags$&=~(4|512)}};var appDidLoad=function(e){{addHydratedFlag(doc.documentElement)}nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,t,n){if(e&&e[t]){try{return e[t](n)}catch(e){consoleError(e)}}return undefined};var then=function(e,t){return e&&e.then?e.then(t):t()};var addHydratedFlag=function(e){return e.classList.add("hydrated")};var parsePropertyValue=function(e,t){if(e!=null&&!isComplexType(e)){if(t&2){return parseFloat(e)}return e}return e};var getValue=function(e,t){return getHostRef(e).$instanceValues$.get(t)};var setValue=function(e,t,n,r){var a=getHostRef(e);var o=a.$instanceValues$.get(t);var s=a.$flags$;var i=a.$lazyInstance$;n=parsePropertyValue(n,r.$members$[t][0]);var l=Number.isNaN(o)&&Number.isNaN(n);var u=n!==o&&!l;if((!(s&8)||o===undefined)&&u){a.$instanceValues$.set(t,n);if(i){if((s&(2|16))===2){scheduleUpdate(a,false)}}}};var proxyComponent=function(e,t,n){if(t.$members$){var r=Object.entries(t.$members$);var a=e.prototype;r.map((function(e){var r=e[0],o=e[1][0];if(o&31||n&2&&o&32){Object.defineProperty(a,r,{get:function(){return getValue(this,r)},set:function(e){setValue(this,r,e,t)},configurable:true,enumerable:true})}}));if(n&1){var o=new Map;a.attributeChangedCallback=function(e,t,n){var r=this;plt.jmp((function(){var t=o.get(e);if(r.hasOwnProperty(t)){n=r[t];delete r[t]}else if(a.hasOwnProperty(t)&&typeof r[t]==="number"&&r[t]==n){return}r[t]=n===null&&typeof r[t]==="boolean"?false:n}))};e.observedAttributes=r.filter((function(e){var t=e[0],n=e[1];return n[0]&15})).map((function(e){var t=e[0],n=e[1];var r=n[1]||t;o.set(r,t);return r}))}}return e};var initializeComponent=function(e,t,n,r,a){return __awaiter(void 0,void 0,void 0,(function(){var e,r,o,s,i,l,u;return __generator(this,(function(c){switch(c.label){case 0:if(!((t.$flags$&32)===0))return[3,3];t.$flags$|=32;a=loadModule(n);if(!a.then)return[3,2];e=uniqueTime();return[4,a];case 1:a=c.sent();e();c.label=2;case 2:if(!a.isProxied){proxyComponent(a,n,2);a.isProxied=true}r=createTime("createInstance",n.$tagName$);{t.$flags$|=8}try{new a(t)}catch(e){consoleError(e)}{t.$flags$&=~8}r();fireConnectedCallback(t.$lazyInstance$);if(a.style){o=a.style;s=getScopeId(n);if(!styles.has(s)){i=createTime("registerStyles",n.$tagName$);registerStyle(s,o,!!(n.$flags$&1));i()}}c.label=3;case 3:l=t.$ancestorComponent$;u=function(){return scheduleUpdate(t,true)};if(l&&l["s-rc"]){l["s-rc"].push(u)}else{u()}return[2]}}))}))};var fireConnectedCallback=function(e){{safeCall(e,"connectedCallback")}};var connectedCallback=function(e){if((plt.$flags$&1)===0){var t=getHostRef(e);var n=t.$cmpMeta$;var r=createTime("connectedCallback",n.$tagName$);if(!(t.$flags$&1)){t.$flags$|=1;{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){attachToAncestor(t,t.$ancestorComponent$=a);break}}}if(n.$members$){Object.entries(n.$members$).map((function(t){var n=t[0],r=t[1][0];if(r&31&&e.hasOwnProperty(n)){var a=e[n];delete e[n];e[n]=a}}))}{initializeComponent(e,t,n)}}else{addHostEventListeners(e,t,n.$listeners$);fireConnectedCallback(t.$lazyInstance$)}r()}};var disconnectedCallback=function(e){if((plt.$flags$&1)===0){var t=getHostRef(e);var n=t.$lazyInstance$;{if(t.$rmListeners$){t.$rmListeners$.map((function(e){return e()}));t.$rmListeners$=undefined}}{safeCall(n,"disconnectedCallback")}}};var bootstrapLazy=function(e,t){if(t===void 0){t={}}var n=createTime();var r=[];var a=t.exclude||[];var o=win.customElements;var s=doc.head;var i=s.querySelector("meta[charset]");var l=doc.createElement("style");var u=[];var c;var f=true;Object.assign(plt,t);plt.$resourcesUrl$=new URL(t.resourcesUrl||"./",doc.baseURI).href;e.map((function(e){e[1].map((function(t){var n={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};{n.$members$=t[2]}{n.$listeners$=t[3]}var s=n.$tagName$;var i=function(e){__extends(t,e);function t(t){var r=e.call(this,t)||this;t=r;registerHost(t,n);if(n.$flags$&1){{{t.attachShadow({mode:"open"})}}}return r}t.prototype.connectedCallback=function(){var e=this;if(c){clearTimeout(c);c=null}if(f){u.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))};t.prototype.componentOnReady=function(){return getHostRef(this).$onReadyPromise$};return t}(HTMLElement);n.$lazyBundleId$=e[0];if(!a.includes(s)&&!o.get(s)){r.push(s);o.define(s,proxyComponent(i,n,1))}}))}));{l.innerHTML=r+HYDRATED_CSS;l.setAttribute("data-styles","");s.insertBefore(l,i?i.nextSibling:s.firstChild)}f=false;if(u.length){u.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return c=setTimeout(appDidLoad,30)}))}}n()};var hostRefs=new WeakMap;var getHostRef=function(e){return hostRefs.get(e)};var registerInstance=function(e,t){return hostRefs.set(t.$lazyInstance$=e,t)};var registerHost=function(e,t){var n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};{n.$onReadyPromise$=new Promise((function(e){return n.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}addHostEventListeners(e,n,t.$listeners$);return hostRefs.set(e,n)};var consoleError=function(e,t){return(0,console.error)(e,t)};var cmpModules=new Map;var loadModule=function(e,t,n){var r=e.$tagName$.replace(/-/g,"_");var a=e.$lazyBundleId$;var o=cmpModules.get(a);if(o){return o[r]}return import("./".concat(a,".entry.js").concat("")).then((function(e){{cmpModules.set(a,e)}return e[r]}),consoleError)};var styles=new Map;var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,t){return function(n){e.push(n);if(!queuePending){queuePending=true;if(t&&plt.$flags$&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);export{Host as H,bootstrapLazy as b,createEvent as c,getElement as g,h,promiseResolve as p,registerInstance as r};
@@ -1 +1 @@
1
- import{p as promiseResolve,b as bootstrapLazy}from"./index-468ab090.js";var patchEsm=function(){return promiseResolve()};var defineCustomElements=function(e,t){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){return bootstrapLazy([["mds-accordion-timer",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"clickActive","onClickActive"],[0,"mouseEnterActive","onMouseEnterActive"],[0,"mouseLeaveActive","onMouseLeaveActive"]]]]]],t)}))};export{defineCustomElements};
1
+ import{p as promiseResolve,b as bootstrapLazy}from"./index-606863a9.js";var patchEsm=function(){return promiseResolve()};var defineCustomElements=function(e,t){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){return bootstrapLazy([["mds-accordion-timer",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"clickActive","onClickActive"],[0,"mouseEnterActive","onMouseEnterActive"],[0,"mouseLeaveActive","onMouseLeaveActive"]]]]]],t)}))};export{defineCustomElements};
@@ -1 +1 @@
1
- import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-468ab090.js";var mdsAccordionTimerCss=":host{display:block}";var MdsAccordionTimer=function(){function e(e){var t=this;registerInstance(this,e);this.itemActivated=createEvent(this,"itemActivated",7);this.time=0;this.duration=5e3;this.clearIntervals=function(){window.clearInterval(t.timer);window.clearInterval(t.timeChecker);t.timer=null;t.timeChecker=null};this.progress=function(){return Math.abs(t.remainingTime()/t.duration-1)};this.addTimeListener=function(){t.timeChecker=window.setInterval((function(){var e=t.progress();if(t.activeItem!==undefined){t.activeItem.progress=e}if(e===1){t.activeItem.progress=0;t.startNext()}}),100)};this.beginningTime=function(){t.timeStarted=(new Date).getTime();return t.timeStarted};this.remainingTime=function(){var e=t.activeItemDurationTime-((new Date).getTime()-t.timeStarted);return e>=0?e:0};this.setActiveItem=function(e){t.children.forEach((function(i,n){if(n===e){i.active=true;t.activeItem=i;t.itemActivated.emit(e)}else{i.active=false}}))};this.startNext=function(){var e=t.activeItem.uuid+1>t.children.length-1?0:t.activeItem.uuid+1;t.setActiveItem(e);t.startTimer()};this.startTimer=function(){t.clearIntervals();t.time=t.beginningTime();t.activeItemDurationTime=t.duration;t.addTimeListener()};this.playTimer=function(){t.beginningTime();t.addTimeListener()};this.pauseTimer=function(){t.clearIntervals();t.activeItemDurationTime=t.remainingTime()};this.stopTimer=function(){t.clearIntervals();t.time=null}}e.prototype.componentDidLoad=function(){var e=this;this.children=this.element.querySelectorAll("mds-accordion-timer-item");this.children.forEach((function(t,i){t.uuid=i;if(t.active){e.activeItem=t}}))};e.prototype.connectedCallback=function(){this.startTimer()};e.prototype.disconnectedCallback=function(){this.stopTimer();this.clearIntervals()};e.prototype.onClickActive=function(e){if(e.detail===this.activeItem.description){return}var t;this.children.forEach((function(i){i.progress=0;if(i.description===e.detail){t=i.uuid}}));this.setActiveItem(t);this.startTimer();this.pauseTimer()};e.prototype.onMouseEnterActive=function(){this.pauseTimer()};e.prototype.onMouseLeaveActive=function(){if(this.timeChecker===null){this.playTimer()}};e.prototype.render=function(){return h(Host,null,h("slot",null))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();MdsAccordionTimer.style=mdsAccordionTimerCss;export{MdsAccordionTimer as mds_accordion_timer};
1
+ import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-606863a9.js";var mdsAccordionTimerCss=":host{display:block}";var MdsAccordionTimer=function(){function e(e){var t=this;registerInstance(this,e);this.itemActivated=createEvent(this,"itemActivated",7);this.time=0;this.duration=1e4;this.clearIntervals=function(){window.clearInterval(t.timer);window.clearInterval(t.timeChecker);t.timer=null;t.timeChecker=null};this.progress=function(){return Math.abs(t.remainingTime()/t.duration-1)};this.addTimeListener=function(){t.timeChecker=window.setInterval((function(){var e=t.progress();if(t.activeItem!==undefined){t.activeItem.progress=e}if(e===1){t.activeItem.progress=0;t.startNext()}}),100)};this.beginningTime=function(){t.timeStarted=(new Date).getTime();return t.timeStarted};this.remainingTime=function(){var e=t.activeItemDurationTime-((new Date).getTime()-t.timeStarted);return e>=0?e:0};this.setActiveItem=function(e){t.children.forEach((function(i,n){if(n===e){i.active=true;t.activeItem=i;t.itemActivated.emit(e)}else{i.active=false}}))};this.startNext=function(){var e=t.activeItem.uuid+1>t.children.length-1?0:t.activeItem.uuid+1;t.setActiveItem(e);t.startTimer()};this.startTimer=function(){t.clearIntervals();t.time=t.beginningTime();t.activeItemDurationTime=t.duration;t.addTimeListener()};this.playTimer=function(){t.beginningTime();t.addTimeListener()};this.pauseTimer=function(){t.clearIntervals();t.activeItemDurationTime=t.remainingTime()};this.stopTimer=function(){t.clearIntervals();t.time=null}}e.prototype.componentDidLoad=function(){var e=this;this.children=this.element.querySelectorAll("mds-accordion-timer-item");this.children.forEach((function(t,i){t.uuid=i;if(t.active){e.activeItem=t}}))};e.prototype.connectedCallback=function(){this.startTimer()};e.prototype.disconnectedCallback=function(){this.stopTimer();this.clearIntervals()};e.prototype.onClickActive=function(e){if(e.detail===this.activeItem.description){return}var t;this.children.forEach((function(i){i.progress=0;if(i.description===e.detail){t=i.uuid}}));this.setActiveItem(t);this.startTimer();this.pauseTimer()};e.prototype.onMouseEnterActive=function(){this.pauseTimer()};e.prototype.onMouseLeaveActive=function(){if(this.timeChecker===null){this.playTimer()}};e.prototype.render=function(){return h(Host,null,h("slot",null))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();MdsAccordionTimer.style=mdsAccordionTimerCss;export{MdsAccordionTimer as mds_accordion_timer};
@@ -1 +1 @@
1
- import{p as promiseResolve,b as bootstrapLazy}from"./index-468ab090.js";var patchBrowser=function(){var e=import.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return promiseResolve(r)};patchBrowser().then((function(e){return bootstrapLazy([["mds-accordion-timer",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"clickActive","onClickActive"],[0,"mouseEnterActive","onMouseEnterActive"],[0,"mouseLeaveActive","onMouseLeaveActive"]]]]]],e)}));
1
+ import{p as promiseResolve,b as bootstrapLazy}from"./index-606863a9.js";var patchBrowser=function(){var e=import.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return promiseResolve(r)};patchBrowser().then((function(e){return bootstrapLazy([["mds-accordion-timer",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"clickActive","onClickActive"],[0,"mouseEnterActive","onMouseEnterActive"],[0,"mouseLeaveActive","onMouseLeaveActive"]]]]]],e)}));
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-ac3fdd27.js";(()=>{const t=import.meta.url,c={};return""!==t&&(c.resourcesUrl=new URL(".",t).href),e(c)})().then((e=>t([["p-2c75936b",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"clickActive","onClickActive"],[0,"mouseEnterActive","onMouseEnterActive"],[0,"mouseLeaveActive","onMouseLeaveActive"]]]]]],e)));
1
+ import{p as e,b as t}from"./p-e8b186ed.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((e=>t([["p-0858b7b2",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"clickActive","onClickActive"],[0,"mouseEnterActive","onMouseEnterActive"],[0,"mouseLeaveActive","onMouseLeaveActive"]]]]]],e)));
@@ -114,7 +114,7 @@ DOMTokenList
114
114
 
115
115
  var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
116
116
  var start = function() {
117
- var url = new URL('./p-74539cca.system.js', new URL(resourcesUrl, window.location.origin));
117
+ var url = new URL('./p-5ba97e5e.system.js', new URL(resourcesUrl, window.location.origin));
118
118
  System.import(url.href);
119
119
  };
120
120
 
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,H as h,g as e}from"./p-e8b186ed.js";const n=class{constructor(s){t(this,s),this.itemActivated=i(this,"itemActivated",7),this.time=0,this.duration=1e4,this.clearIntervals=()=>{window.clearInterval(this.timer),window.clearInterval(this.timeChecker),this.timer=null,this.timeChecker=null},this.progress=()=>Math.abs(this.remainingTime()/this.duration-1),this.addTimeListener=()=>{this.timeChecker=window.setInterval((()=>{const t=this.progress();void 0!==this.activeItem&&(this.activeItem.progress=t),1===t&&(this.activeItem.progress=0,this.startNext())}),100)},this.beginningTime=()=>(this.timeStarted=(new Date).getTime(),this.timeStarted),this.remainingTime=()=>{const t=this.activeItemDurationTime-((new Date).getTime()-this.timeStarted);return t>=0?t:0},this.setActiveItem=t=>{this.children.forEach(((i,s)=>{s===t?(i.active=!0,this.activeItem=i,this.itemActivated.emit(t)):i.active=!1}))},this.startNext=()=>{this.setActiveItem(this.activeItem.uuid+1>this.children.length-1?0:this.activeItem.uuid+1),this.startTimer()},this.startTimer=()=>{this.clearIntervals(),this.time=this.beginningTime(),this.activeItemDurationTime=this.duration,this.addTimeListener()},this.playTimer=()=>{this.beginningTime(),this.addTimeListener()},this.pauseTimer=()=>{this.clearIntervals(),this.activeItemDurationTime=this.remainingTime()},this.stopTimer=()=>{this.clearIntervals(),this.time=null}}componentDidLoad(){this.children=this.element.querySelectorAll("mds-accordion-timer-item"),this.children.forEach(((t,i)=>{t.uuid=i,t.active&&(this.activeItem=t)}))}connectedCallback(){this.startTimer()}disconnectedCallback(){this.stopTimer(),this.clearIntervals()}onClickActive(t){if(t.detail===this.activeItem.description)return;let i;this.children.forEach((s=>{s.progress=0,s.description===t.detail&&(i=s.uuid)})),this.setActiveItem(i),this.startTimer(),this.pauseTimer()}onMouseEnterActive(){this.pauseTimer()}onMouseLeaveActive(){null===this.timeChecker&&this.playTimer()}render(){return s(h,null,s("slot",null))}get element(){return e(this)}};n.style=":host{display:block}";export{n as mds_accordion_timer}
@@ -1 +1 @@
1
- System.register(["./p-a652c8b3.system.js"],(function(e,t){"use strict";var r,n;return{setters:[function(e){r=e.p;n=e.b}],execute:function(){var e=function(){var e=t.meta.url;var n={};if(e!==""){n.resourcesUrl=new URL(".",e).href}return r(n)};e().then((function(e){return n([["p-104355eb.system",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"clickActive","onClickActive"],[0,"mouseEnterActive","onMouseEnterActive"],[0,"mouseLeaveActive","onMouseLeaveActive"]]]]]],e)}))}}}));
1
+ System.register(["./p-601a7453.system.js"],(function(e,t){"use strict";var r,n;return{setters:[function(e){r=e.p;n=e.b}],execute:function(){var e=function(){var e=t.meta.url;var n={};if(e!==""){n.resourcesUrl=new URL(".",e).href}return r(n)};e().then((function(e){return n([["p-b88ff19a.system",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"clickActive","onClickActive"],[0,"mouseEnterActive","onMouseEnterActive"],[0,"mouseLeaveActive","onMouseLeaveActive"]]]]]],e)}))}}}));