@ptcwebops/ptcw-design 0.2.3 → 0.2.4

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 (128) hide show
  1. package/dist/cjs/icon-asset.cjs.entry.js +64 -0
  2. package/dist/cjs/{index-ac192914.js → index-0b899fc6.js} +158 -87
  3. package/dist/cjs/list-item.cjs.entry.js +2 -2
  4. package/dist/cjs/loader.cjs.js +3 -3
  5. package/dist/cjs/lottie-player.cjs.entry.js +2 -2
  6. package/dist/cjs/my-component.cjs.entry.js +3 -3
  7. package/dist/cjs/ptc-announcement.cjs.entry.js +35 -0
  8. package/dist/cjs/ptc-avatar.cjs.entry.js +2 -2
  9. package/dist/cjs/ptc-button_2.cjs.entry.js +97 -0
  10. package/dist/cjs/ptc-card.cjs.entry.js +2 -2
  11. package/dist/cjs/ptc-countdown.cjs.entry.js +2 -2
  12. package/dist/cjs/ptc-date.cjs.entry.js +2 -2
  13. package/dist/cjs/ptc-footer.cjs.entry.js +2 -2
  14. package/dist/cjs/ptc-form_3.cjs.entry.js +171 -0
  15. package/dist/cjs/ptc-img.cjs.entry.js +2 -2
  16. package/dist/cjs/ptc-link.cjs.entry.js +2 -2
  17. package/dist/cjs/ptc-list.cjs.entry.js +2 -2
  18. package/dist/cjs/ptc-lottie.cjs.entry.js +2 -2
  19. package/dist/cjs/ptc-nav-item.cjs.entry.js +2 -2
  20. package/dist/cjs/ptc-nav.cjs.entry.js +2 -2
  21. package/dist/cjs/ptc-overlay.cjs.entry.js +2 -2
  22. package/dist/cjs/ptc-para.cjs.entry.js +40 -0
  23. package/dist/cjs/ptc-picture.cjs.entry.js +2 -2
  24. package/dist/cjs/ptc-spacer.cjs.entry.js +2 -2
  25. package/dist/cjs/ptc-span.cjs.entry.js +2 -2
  26. package/dist/cjs/ptc-title.cjs.entry.js +3 -3
  27. package/dist/cjs/ptcw-design.cjs.js +3 -3
  28. package/dist/collection/collection-manifest.json +5 -2
  29. package/dist/collection/components/my-component/my-component.js +2 -3
  30. package/dist/collection/components/ptc-button/ptc-button.js +2 -2
  31. package/dist/collection/components/ptc-form/ptc-form.css +3 -0
  32. package/dist/collection/components/ptc-form/ptc-form.js +118 -0
  33. package/dist/collection/components/ptc-form/validation/FormValidation.full.min.js +1 -0
  34. package/dist/collection/components/ptc-form/validation/FormValidation.js +4234 -0
  35. package/dist/collection/components/ptc-input/ptc-input.css +47 -0
  36. package/dist/collection/components/ptc-input/ptc-input.js +133 -80
  37. package/dist/collection/components/ptc-select/ptc-select.css +22 -0
  38. package/dist/collection/components/ptc-select/ptc-select.js +105 -0
  39. package/dist/collection/components/ptc-title/ptc-title.js +1 -1
  40. package/dist/custom-elements/index.d.ts +19 -1
  41. package/dist/custom-elements/index.js +219 -49
  42. package/dist/esm/icon-asset.entry.js +60 -0
  43. package/dist/esm/{index-7a3883ee.js → index-eb8ce23d.js} +159 -88
  44. package/dist/esm/list-item.entry.js +2 -2
  45. package/dist/esm/loader.js +3 -3
  46. package/dist/esm/lottie-player.entry.js +2 -2
  47. package/dist/esm/my-component.entry.js +3 -3
  48. package/dist/esm/ptc-announcement.entry.js +31 -0
  49. package/dist/esm/ptc-avatar.entry.js +2 -2
  50. package/dist/esm/ptc-button_2.entry.js +92 -0
  51. package/dist/esm/ptc-card.entry.js +2 -2
  52. package/dist/esm/ptc-countdown.entry.js +2 -2
  53. package/dist/esm/ptc-date.entry.js +2 -2
  54. package/dist/esm/ptc-footer.entry.js +2 -2
  55. package/dist/esm/ptc-form_3.entry.js +165 -0
  56. package/dist/esm/ptc-img.entry.js +2 -2
  57. package/dist/esm/ptc-link.entry.js +2 -2
  58. package/dist/esm/ptc-list.entry.js +2 -2
  59. package/dist/esm/ptc-lottie.entry.js +2 -2
  60. package/dist/esm/ptc-nav-item.entry.js +2 -2
  61. package/dist/esm/ptc-nav.entry.js +2 -2
  62. package/dist/esm/ptc-overlay.entry.js +2 -2
  63. package/dist/esm/ptc-para.entry.js +36 -0
  64. package/dist/esm/ptc-picture.entry.js +2 -2
  65. package/dist/esm/ptc-spacer.entry.js +2 -2
  66. package/dist/esm/ptc-span.entry.js +2 -2
  67. package/dist/esm/ptc-title.entry.js +3 -3
  68. package/dist/esm/ptcw-design.js +3 -3
  69. package/dist/ptcw-design/p-01243ce4.entry.js +1 -0
  70. package/dist/ptcw-design/p-01f4bf71.entry.js +1 -0
  71. package/dist/ptcw-design/p-1b3b0193.entry.js +1 -0
  72. package/dist/ptcw-design/p-22fd400f.entry.js +1 -0
  73. package/dist/ptcw-design/p-23d07898.entry.js +1 -0
  74. package/dist/ptcw-design/p-2b59ce7a.entry.js +1 -0
  75. package/dist/ptcw-design/p-2ca3c085.js +1 -0
  76. package/dist/ptcw-design/p-389a5670.entry.js +1 -0
  77. package/dist/ptcw-design/p-3f42afb6.entry.js +1 -0
  78. package/dist/ptcw-design/p-51443fbb.entry.js +1 -0
  79. package/dist/ptcw-design/p-54794e45.entry.js +1 -0
  80. package/dist/ptcw-design/p-5ae43421.entry.js +1 -0
  81. package/dist/ptcw-design/p-63b55aba.entry.js +1 -0
  82. package/dist/ptcw-design/p-6b5c0d9d.entry.js +1 -0
  83. package/dist/ptcw-design/p-7076b32f.entry.js +1 -0
  84. package/dist/ptcw-design/{p-51a3e9e6.entry.js → p-75dc7328.entry.js} +1 -1
  85. package/dist/ptcw-design/p-945f5a15.entry.js +1 -0
  86. package/dist/ptcw-design/p-a86452af.entry.js +1 -0
  87. package/dist/ptcw-design/p-cf3d92e0.entry.js +1 -0
  88. package/dist/ptcw-design/p-d3f9852f.entry.js +1 -0
  89. package/dist/ptcw-design/p-d80b24c9.entry.js +1 -0
  90. package/dist/ptcw-design/p-e4b96b46.entry.js +1 -0
  91. package/dist/ptcw-design/p-eda0500f.entry.js +1 -0
  92. package/dist/ptcw-design/p-ef6acb81.entry.js +1 -0
  93. package/dist/ptcw-design/p-fd29d9dd.entry.js +1 -0
  94. package/dist/ptcw-design/ptcw-design.css +1 -1
  95. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  96. package/dist/ptcw-design/validation/FormValidation.full.min.js +1 -0
  97. package/dist/ptcw-design/validation/FormValidation.js +4234 -0
  98. package/dist/types/components/ptc-form/ptc-form.d.ts +11 -0
  99. package/dist/types/components/ptc-input/ptc-input.d.ts +19 -0
  100. package/dist/types/components/ptc-select/ptc-select.d.ts +9 -0
  101. package/dist/types/components.d.ts +63 -0
  102. package/dist/types/global.d.ts +1072 -0
  103. package/dist/types/stencil-public-runtime.d.ts +189 -186
  104. package/loader/index.d.ts +0 -1
  105. package/package.json +6 -2
  106. package/readme.md +1 -1
  107. package/dist/cjs/icon-asset_5.cjs.entry.js +0 -218
  108. package/dist/esm/icon-asset_5.entry.js +0 -210
  109. package/dist/ptcw-design/p-0c8df906.entry.js +0 -1
  110. package/dist/ptcw-design/p-186beb2c.entry.js +0 -1
  111. package/dist/ptcw-design/p-2d5f8cff.entry.js +0 -1
  112. package/dist/ptcw-design/p-50923c9a.js +0 -1
  113. package/dist/ptcw-design/p-62706e4e.entry.js +0 -1
  114. package/dist/ptcw-design/p-66ffa30c.entry.js +0 -1
  115. package/dist/ptcw-design/p-6b1a35e1.entry.js +0 -1
  116. package/dist/ptcw-design/p-73e2418e.entry.js +0 -1
  117. package/dist/ptcw-design/p-796b8287.entry.js +0 -1
  118. package/dist/ptcw-design/p-8edac972.entry.js +0 -1
  119. package/dist/ptcw-design/p-90402319.entry.js +0 -1
  120. package/dist/ptcw-design/p-919311d2.entry.js +0 -1
  121. package/dist/ptcw-design/p-ac449734.entry.js +0 -1
  122. package/dist/ptcw-design/p-c436c879.entry.js +0 -1
  123. package/dist/ptcw-design/p-d17b386a.entry.js +0 -1
  124. package/dist/ptcw-design/p-d6553853.entry.js +0 -1
  125. package/dist/ptcw-design/p-ef250898.entry.js +0 -1
  126. package/dist/ptcw-design/p-f694e46a.entry.js +0 -1
  127. package/dist/ptcw-design/p-f80152dc.entry.js +0 -1
  128. package/dist/ptcw-design/p-ff28ce2d.entry.js +0 -1
@@ -0,0 +1,64 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-0b899fc6.js');
6
+
7
+ const iconAssetCss = "/*!\n * Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n */.svg-inline--fa,svg:not(:root).svg-inline--fa{overflow:visible}.svg-inline--fa{display:inline-block;font-size:inherit;height:1em;vertical-align:-.125em}.svg-inline--fa.fa-lg{vertical-align:-.225em}.svg-inline--fa.fa-w-1{width:.0625em}.svg-inline--fa.fa-w-2{width:.125em}.svg-inline--fa.fa-w-3{width:.1875em}.svg-inline--fa.fa-w-4{width:.25em}.svg-inline--fa.fa-w-5{width:.3125em}.svg-inline--fa.fa-w-6{width:.375em}.svg-inline--fa.fa-w-7{width:.4375em}.svg-inline--fa.fa-w-8{width:.5em}.svg-inline--fa.fa-w-9{width:.5625em}.svg-inline--fa.fa-w-10{width:.625em}.svg-inline--fa.fa-w-11{width:.6875em}.svg-inline--fa.fa-w-12{width:.75em}.svg-inline--fa.fa-w-13{width:.8125em}.svg-inline--fa.fa-w-14{width:.875em}.svg-inline--fa.fa-w-15{width:.9375em}.svg-inline--fa.fa-w-16{width:1em}.svg-inline--fa.fa-w-17{width:1.0625em}.svg-inline--fa.fa-w-18{width:1.125em}.svg-inline--fa.fa-w-19{width:1.1875em}.svg-inline--fa.fa-w-20{width:1.25em}.svg-inline--fa.fa-pull-left{margin-right:.3em;width:auto}.svg-inline--fa.fa-pull-right{margin-left:.3em;width:auto}.svg-inline--fa.fa-border{height:1.5em}.svg-inline--fa.fa-li{width:2em}.svg-inline--fa.fa-fw{width:1.25em}.fa-layers svg.svg-inline--fa{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.fa-layers{display:inline-block;height:1em;position:relative;text-align:center;vertical-align:-.125em;width:1em}.fa-layers svg.svg-inline--fa{-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter,.fa-layers-text{display:inline-block;position:absolute;text-align:center}.fa-layers-text{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter{background-color:#ff253a;border-radius:1em;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;height:1.5em;line-height:1;max-width:5em;min-width:1.5em;overflow:hidden;padding:.25em;right:0;text-overflow:ellipsis;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-bottom-right{bottom:0;right:0;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom right;transform-origin:bottom right}.fa-layers-bottom-left{bottom:0;left:0;right:auto;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom left;transform-origin:bottom left}.fa-layers-top-right{right:0;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-top-left{left:0;right:auto;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top left;transform-origin:top left}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\"}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1);transform:scale(-1)}:root .fa-flip-both,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{-webkit-filter:none;filter:none}.fa-stack{display:inline-block;height:2em;position:relative;width:2.5em}.fa-stack-1x,.fa-stack-2x{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.svg-inline--fa.fa-stack-1x{height:1em;width:1.25em}.svg-inline--fa.fa-stack-2x{height:2em;width:2.5em}.fa-inverse{color:#fff}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.svg-inline--fa .fa-primary{fill:var(--fa-primary-color,currentColor);opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa .fa-secondary{fill:var(--fa-secondary-color,currentColor)}.svg-inline--fa .fa-secondary,.svg-inline--fa.fa-swap-opacity .fa-primary{opacity:.4;opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-secondary{opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa mask .fa-primary,.svg-inline--fa mask .fa-secondary{fill:#000}.fad.fa-inverse{color:#fff}icon-asset{vertical-align:middle}svg.x-small{width:var(--ptc-font-size-x-small);height:var(--ptc-font-size-x-small)}svg.small{width:var(--ptc-font-size-small);height:var(--ptc-font-size-small)}svg.large{width:var(--ptc-font-size-large);height:var(--ptc-font-size-large)}svg.xx-large{width:var(--ptc-font-size-xx-large);height:var(--ptc-font-size-xx-large)}svg.white{fill:var(--color-white)}svg.black{fill:var(--color-black)}svg.ptc-green{fill:var(--color-primary-green)}svg.inherit{fill:inherit}";
8
+
9
+ let IconAsset = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ /**
13
+ * Icon Size
14
+ */
15
+ this.size = 'small';
16
+ /**
17
+ * Icon Type
18
+ */
19
+ this.type = 'regular';
20
+ /**
21
+ * Icon Spin Animation (not valid for ptc type)
22
+ */
23
+ this.spin = '';
24
+ /**
25
+ * Icon Pulse Animation (not valid for ptc type)
26
+ */
27
+ this.pulse = '';
28
+ /**
29
+ * Icon Color
30
+ */
31
+ this.color = 'default';
32
+ this.regularSprite = index.getAssetPath('./media/regular.svg');
33
+ this.solidSprite = index.getAssetPath('./media/solid.svg');
34
+ this.brandSprite = index.getAssetPath('./media/brands.svg');
35
+ this.ptcSprite = index.getAssetPath('./media/designer.svg');
36
+ }
37
+ render() {
38
+ const classMap = this.getCssClassMap();
39
+ if (this.type == 'brands') {
40
+ return (index.h(index.Host, null, index.h("svg", { class: classMap }, index.h("use", { href: `${this.brandSprite}#${this.name}` }))));
41
+ }
42
+ else if (this.type == 'solid') {
43
+ return (index.h(index.Host, null, index.h("svg", { class: classMap }, index.h("use", { href: `${this.solidSprite}#${this.name}` }))));
44
+ }
45
+ else if (this.type == 'ptc') {
46
+ return (index.h(index.Host, null, index.h("svg", { class: classMap }, index.h("use", { href: `${this.ptcSprite}#${this.name}` }))));
47
+ }
48
+ else {
49
+ return (index.h(index.Host, null, index.h("svg", { class: classMap }, index.h("use", { href: `${this.regularSprite}#${this.name}` }))));
50
+ }
51
+ }
52
+ getCssClassMap() {
53
+ return {
54
+ [this.size]: true,
55
+ [this.spin]: true,
56
+ [this.pulse]: true,
57
+ [this.color]: true,
58
+ };
59
+ }
60
+ static get assetsDirs() { return ["media"]; }
61
+ };
62
+ IconAsset.style = iconAssetCss;
63
+
64
+ exports.icon_asset = IconAsset;
@@ -35,8 +35,8 @@ const doc = win.document || { head: {} };
35
35
  const plt = {
36
36
  $flags$: 0,
37
37
  $resourcesUrl$: '',
38
- jmp: h => h(),
39
- raf: h => requestAnimationFrame(h),
38
+ jmp: (h) => h(),
39
+ raf: (h) => requestAnimationFrame(h),
40
40
  ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
41
41
  rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
42
42
  ce: (eventName, opts) => new CustomEvent(eventName, opts),
@@ -45,7 +45,7 @@ const promiseResolve = (v) => Promise.resolve(v);
45
45
  const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
46
46
  try {
47
47
  new CSSStyleSheet();
48
- return typeof (new CSSStyleSheet()).replace === 'function';
48
+ return typeof new CSSStyleSheet().replace === 'function';
49
49
  }
50
50
  catch (e) { }
51
51
  return false;
@@ -162,6 +162,9 @@ const attachStyles = (hostRef) => {
162
162
  // DOM WRITE!!
163
163
  elm['s-sc'] = scopeId;
164
164
  elm.classList.add(scopeId + '-h');
165
+ if (flags & 2 /* scopedCssEncapsulation */) {
166
+ elm.classList.add(scopeId + '-s');
167
+ }
165
168
  }
166
169
  endAttachStyles();
167
170
  };
@@ -241,7 +244,7 @@ const h = (nodeName, vnodeData, ...children) => {
241
244
  typeof classData !== 'object'
242
245
  ? classData
243
246
  : Object.keys(classData)
244
- .filter(k => classData[k])
247
+ .filter((k) => classData[k])
245
248
  .join(' ');
246
249
  }
247
250
  }
@@ -330,8 +333,8 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
330
333
  const classList = elm.classList;
331
334
  const oldClasses = parseClassList(oldValue);
332
335
  const newClasses = parseClassList(newValue);
333
- classList.remove(...oldClasses.filter(c => c && !newClasses.includes(c)));
334
- classList.add(...newClasses.filter(c => c && !oldClasses.includes(c)));
336
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
337
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
335
338
  }
336
339
  else if (memberName === 'style') {
337
340
  // update style attribute, css properties and values
@@ -366,7 +369,9 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
366
369
  newValue(elm);
367
370
  }
368
371
  }
369
- else if ((!isProp ) && memberName[0] === 'o' && memberName[1] === 'n') {
372
+ else if ((!isProp ) &&
373
+ memberName[0] === 'o' &&
374
+ memberName[1] === 'n') {
370
375
  // Event Handlers
371
376
  // so if the member name starts with "on" and the 3rd characters is
372
377
  // a capital letter, and it's not already a member on the element,
@@ -413,7 +418,6 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
413
418
  // Workaround for Safari, moving the <input> caret when re-assigning the same valued
414
419
  if (memberName === 'list') {
415
420
  isProp = false;
416
- // tslint:disable-next-line: triple-equals
417
421
  }
418
422
  else if (oldValue == null || elm[memberName] != n) {
419
423
  elm[memberName] = n;
@@ -467,7 +471,9 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
467
471
  // if the element passed in is a shadow root, which is a document fragment
468
472
  // then we want to be adding attrs/props to the shadow root's "host" element
469
473
  // if it's not a shadow root, then we add attrs/props to the same element
470
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
474
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
475
+ ? newVnode.$elm$.host
476
+ : newVnode.$elm$;
471
477
  const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
472
478
  const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
473
479
  {
@@ -511,14 +517,17 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
511
517
  }
512
518
  else if (newVNode.$flags$ & 1 /* isSlotReference */) {
513
519
  // create a slot reference node
514
- elm = newVNode.$elm$ = doc.createTextNode('');
520
+ elm = newVNode.$elm$ =
521
+ doc.createTextNode('');
515
522
  }
516
523
  else {
517
524
  if (!isSvgMode) {
518
525
  isSvgMode = newVNode.$tag$ === 'svg';
519
526
  }
520
527
  // create element
521
- elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */ ? 'slot-fb' : newVNode.$tag$)
528
+ elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
529
+ ? 'slot-fb'
530
+ : newVNode.$tag$)
522
531
  );
523
532
  if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
524
533
  isSvgMode = false;
@@ -885,7 +894,7 @@ const relocateSlotContent = (elm) => {
885
894
  // that is suppose to always represent the original content location
886
895
  if (isNodeLocatedInSlot(node, slotNameAttr)) {
887
896
  // it's possible we've already decided to relocate this node
888
- relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
897
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
889
898
  // made some changes to slots
890
899
  // let's make sure we also double check
891
900
  // fallbacks are correctly hidden or shown
@@ -904,9 +913,9 @@ const relocateSlotContent = (elm) => {
904
913
  });
905
914
  }
906
915
  if (node['s-sr']) {
907
- relocateNodes.map(relocateNode => {
916
+ relocateNodes.map((relocateNode) => {
908
917
  if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
909
- relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
918
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
910
919
  if (relocateNodeData && !relocateNode.$slotRefNode$) {
911
920
  relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
912
921
  }
@@ -914,7 +923,7 @@ const relocateSlotContent = (elm) => {
914
923
  });
915
924
  }
916
925
  }
917
- else if (!relocateNodes.some(r => r.$nodeToRelocate$ === node)) {
926
+ else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
918
927
  // so far this element does not have a slot home, not setting slotRefNode on purpose
919
928
  // if we never find a home for this element then we'll need to hide it
920
929
  relocateNodes.push({
@@ -994,7 +1003,8 @@ const renderVdom = (hostRef, renderFnResults) => {
994
1003
  if (!nodeToRelocate['s-ol']) {
995
1004
  // add a reference node marking this node's original location
996
1005
  // keep a reference to this node for later lookups
997
- orgLocationNode = doc.createTextNode('');
1006
+ orgLocationNode =
1007
+ doc.createTextNode('');
998
1008
  orgLocationNode['s-nr'] = nodeToRelocate;
999
1009
  nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
1000
1010
  }
@@ -1018,7 +1028,8 @@ const renderVdom = (hostRef, renderFnResults) => {
1018
1028
  }
1019
1029
  }
1020
1030
  }
1021
- if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) || nodeToRelocate.nextSibling !== insertBeforeNode) {
1031
+ if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1032
+ nodeToRelocate.nextSibling !== insertBeforeNode) {
1022
1033
  // we've checked that it's worth while to relocate
1023
1034
  // since that the node to relocate
1024
1035
  // has a different next sibling or parent relocated
@@ -1064,6 +1075,13 @@ const createEvent = (ref, name, flags) => {
1064
1075
  },
1065
1076
  };
1066
1077
  };
1078
+ /**
1079
+ * Helper function to create & dispatch a custom Event on a provided target
1080
+ * @param elm the target of the Event
1081
+ * @param name the name to give the custom Event
1082
+ * @param opts options for configuring a custom Event
1083
+ * @returns the custom Event
1084
+ */
1067
1085
  const emitEvent = (elm, name, opts) => {
1068
1086
  const ev = plt.ce(name, opts);
1069
1087
  elm.dispatchEvent(ev);
@@ -1071,7 +1089,7 @@ const emitEvent = (elm, name, opts) => {
1071
1089
  };
1072
1090
  const attachToAncestor = (hostRef, ancestorComponent) => {
1073
1091
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1074
- ancestorComponent['s-p'].push(new Promise(r => (hostRef.$onRenderResolve$ = r)));
1092
+ ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1075
1093
  }
1076
1094
  };
1077
1095
  const scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -1101,6 +1119,9 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
1101
1119
  hostRef.$queuedListeners$ = null;
1102
1120
  }
1103
1121
  }
1122
+ {
1123
+ promise = safeCall(instance, 'componentWillLoad');
1124
+ }
1104
1125
  }
1105
1126
  else {
1106
1127
  {
@@ -1130,7 +1151,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1130
1151
  // ok, so turns out there are some child host elements
1131
1152
  // waiting on this parent element to load
1132
1153
  // let's fire off all update callbacks waiting
1133
- rc.map(cb => cb());
1154
+ rc.map((cb) => cb());
1134
1155
  elm['s-rc'] = undefined;
1135
1156
  }
1136
1157
  endRender();
@@ -1240,7 +1261,8 @@ const safeCall = (instance, method, arg) => {
1240
1261
  const then = (promise, thenFn) => {
1241
1262
  return promise && promise.then ? promise.then(thenFn) : thenFn();
1242
1263
  };
1243
- const addHydratedFlag = (elm) => (elm.classList.add('hydrated') );
1264
+ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1265
+ ;
1244
1266
  const parsePropertyValue = (propValue, propType) => {
1245
1267
  // ensure this value is of the correct prop type
1246
1268
  if (propValue != null && !isComplexType(propValue)) {
@@ -1284,7 +1306,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1284
1306
  const watchMethods = cmpMeta.$watchers$[propName];
1285
1307
  if (watchMethods) {
1286
1308
  // this instance is watching for when this property changed
1287
- watchMethods.map(watchMethodName => {
1309
+ watchMethods.map((watchMethodName) => {
1288
1310
  try {
1289
1311
  // fire off each of the watch methods that are watching this property
1290
1312
  instance[watchMethodName](newVal, oldVal, propName);
@@ -1314,7 +1336,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1314
1336
  const members = Object.entries(cmpMeta.$members$);
1315
1337
  const prototype = Cstr.prototype;
1316
1338
  members.map(([memberName, [memberFlags]]) => {
1317
- if ((memberFlags & 31 /* Prop */ || ((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
1339
+ if ((memberFlags & 31 /* Prop */ ||
1340
+ ((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
1318
1341
  // proxyComponent - prop
1319
1342
  Object.defineProperty(prototype, memberName, {
1320
1343
  get() {
@@ -1329,7 +1352,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1329
1352
  enumerable: true,
1330
1353
  });
1331
1354
  }
1332
- else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1355
+ else if (flags & 1 /* isElementConstructor */ &&
1356
+ memberFlags & 64 /* Method */) {
1333
1357
  // proxyComponent - method
1334
1358
  Object.defineProperty(prototype, memberName, {
1335
1359
  value(...args) {
@@ -1344,6 +1368,51 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1344
1368
  prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1345
1369
  plt.jmp(() => {
1346
1370
  const propName = attrNameToPropName.get(attrName);
1371
+ // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1372
+ // in the case where an attribute was set inline.
1373
+ // ```html
1374
+ // <my-component some-attribute="some-value"></my-component>
1375
+ // ```
1376
+ //
1377
+ // There is an edge case where a developer sets the attribute inline on a custom element and then
1378
+ // programmatically changes it before it has been upgraded as shown below:
1379
+ //
1380
+ // ```html
1381
+ // <!-- this component has _not_ been upgraded yet -->
1382
+ // <my-component id="test" some-attribute="some-value"></my-component>
1383
+ // <script>
1384
+ // // grab non-upgraded component
1385
+ // el = document.querySelector("#test");
1386
+ // el.someAttribute = "another-value";
1387
+ // // upgrade component
1388
+ // customElements.define('my-component', MyComponent);
1389
+ // </script>
1390
+ // ```
1391
+ // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1392
+ // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1393
+ // to the value that was set inline i.e. "some-value" from above example. When
1394
+ // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1395
+ //
1396
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1397
+ // by connectedCallback as this attributeChangedCallback will not fire.
1398
+ //
1399
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1400
+ //
1401
+ // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1402
+ // properties here given that this goes against best practices outlined here
1403
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1404
+ if (this.hasOwnProperty(propName)) {
1405
+ newValue = this[propName];
1406
+ delete this[propName];
1407
+ }
1408
+ else if (prototype.hasOwnProperty(propName) &&
1409
+ typeof this[propName] === 'number' &&
1410
+ this[propName] == newValue) {
1411
+ // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1412
+ // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1413
+ // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1414
+ return;
1415
+ }
1347
1416
  this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1348
1417
  });
1349
1418
  };
@@ -1380,7 +1449,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1380
1449
  endLoad();
1381
1450
  }
1382
1451
  if (!Cstr.isProxied) {
1383
- // we'eve never proxied this Constructor before
1452
+ // we've never proxied this Constructor before
1384
1453
  // let's add the getters/setters to its prototype before
1385
1454
  // the first time we create an instance of the implementation
1386
1455
  {
@@ -1429,7 +1498,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1429
1498
  const ancestorComponent = hostRef.$ancestorComponent$;
1430
1499
  const schedule = () => scheduleUpdate(hostRef, true);
1431
1500
  if (ancestorComponent && ancestorComponent['s-rc']) {
1432
- // this is the intial load and this component it has an ancestor component
1501
+ // this is the initial load and this component it has an ancestor component
1433
1502
  // but the ancestor component has NOT fired its will update lifecycle yet
1434
1503
  // so let's just cool our jets and wait for the ancestor to continue first
1435
1504
  // this will get fired off when the ancestor component
@@ -1513,7 +1582,7 @@ const disconnectedCallback = (elm) => {
1513
1582
  const hostRef = getHostRef(elm);
1514
1583
  {
1515
1584
  if (hostRef.$rmListeners$) {
1516
- hostRef.$rmListeners$.map(rmListener => rmListener());
1585
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
1517
1586
  hostRef.$rmListeners$ = undefined;
1518
1587
  }
1519
1588
  }
@@ -1532,71 +1601,73 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1532
1601
  let isBootstrapping = true;
1533
1602
  Object.assign(plt, options);
1534
1603
  plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1535
- lazyBundles.map(lazyBundle => lazyBundle[1].map(compactMeta => {
1536
- const cmpMeta = {
1537
- $flags$: compactMeta[0],
1538
- $tagName$: compactMeta[1],
1539
- $members$: compactMeta[2],
1540
- $listeners$: compactMeta[3],
1541
- };
1542
- {
1543
- cmpMeta.$members$ = compactMeta[2];
1544
- }
1545
- {
1546
- cmpMeta.$listeners$ = compactMeta[3];
1547
- }
1548
- {
1549
- cmpMeta.$attrsToReflect$ = [];
1550
- }
1551
- {
1552
- cmpMeta.$watchers$ = {};
1553
- }
1554
- const tagName = cmpMeta.$tagName$;
1555
- const HostElement = class extends HTMLElement {
1556
- // StencilLazyHost
1557
- constructor(self) {
1558
- // @ts-ignore
1559
- super(self);
1560
- self = this;
1561
- registerHost(self, cmpMeta);
1562
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1563
- // this component is using shadow dom
1564
- // and this browser supports shadow dom
1565
- // add the read-only property "shadowRoot" to the host element
1566
- // adding the shadow root build conditionals to minimize runtime
1567
- {
1604
+ lazyBundles.map((lazyBundle) => {
1605
+ lazyBundle[1].map((compactMeta) => {
1606
+ const cmpMeta = {
1607
+ $flags$: compactMeta[0],
1608
+ $tagName$: compactMeta[1],
1609
+ $members$: compactMeta[2],
1610
+ $listeners$: compactMeta[3],
1611
+ };
1612
+ {
1613
+ cmpMeta.$members$ = compactMeta[2];
1614
+ }
1615
+ {
1616
+ cmpMeta.$listeners$ = compactMeta[3];
1617
+ }
1618
+ {
1619
+ cmpMeta.$attrsToReflect$ = [];
1620
+ }
1621
+ {
1622
+ cmpMeta.$watchers$ = {};
1623
+ }
1624
+ const tagName = cmpMeta.$tagName$;
1625
+ const HostElement = class extends HTMLElement {
1626
+ // StencilLazyHost
1627
+ constructor(self) {
1628
+ // @ts-ignore
1629
+ super(self);
1630
+ self = this;
1631
+ registerHost(self, cmpMeta);
1632
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1633
+ // this component is using shadow dom
1634
+ // and this browser supports shadow dom
1635
+ // add the read-only property "shadowRoot" to the host element
1636
+ // adding the shadow root build conditionals to minimize runtime
1568
1637
  {
1569
- self.attachShadow({ mode: 'open' });
1638
+ {
1639
+ self.attachShadow({ mode: 'open' });
1640
+ }
1570
1641
  }
1571
1642
  }
1572
1643
  }
1573
- }
1574
- connectedCallback() {
1575
- if (appLoadFallback) {
1576
- clearTimeout(appLoadFallback);
1577
- appLoadFallback = null;
1644
+ connectedCallback() {
1645
+ if (appLoadFallback) {
1646
+ clearTimeout(appLoadFallback);
1647
+ appLoadFallback = null;
1648
+ }
1649
+ if (isBootstrapping) {
1650
+ // connectedCallback will be processed once all components have been registered
1651
+ deferredConnectedCallbacks.push(this);
1652
+ }
1653
+ else {
1654
+ plt.jmp(() => connectedCallback(this));
1655
+ }
1578
1656
  }
1579
- if (isBootstrapping) {
1580
- // connectedCallback will be processed once all components have been registered
1581
- deferredConnectedCallbacks.push(this);
1657
+ disconnectedCallback() {
1658
+ plt.jmp(() => disconnectedCallback(this));
1582
1659
  }
1583
- else {
1584
- plt.jmp(() => connectedCallback(this));
1660
+ componentOnReady() {
1661
+ return getHostRef(this).$onReadyPromise$;
1585
1662
  }
1663
+ };
1664
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1665
+ if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1666
+ cmpTags.push(tagName);
1667
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
1586
1668
  }
1587
- disconnectedCallback() {
1588
- plt.jmp(() => disconnectedCallback(this));
1589
- }
1590
- componentOnReady() {
1591
- return getHostRef(this).$onReadyPromise$;
1592
- }
1593
- };
1594
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
1595
- if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1596
- cmpTags.push(tagName);
1597
- customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
1598
- }
1599
- }));
1669
+ });
1670
+ });
1600
1671
  {
1601
1672
  visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1602
1673
  visibilityStyle.setAttribute('data-styles', '');
@@ -1605,7 +1676,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1605
1676
  // Process deferred connectedCallbacks now all components have been registered
1606
1677
  isBootstrapping = false;
1607
1678
  if (deferredConnectedCallbacks.length) {
1608
- deferredConnectedCallbacks.map(host => host.connectedCallback());
1679
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1609
1680
  }
1610
1681
  else {
1611
1682
  {
@@ -1630,10 +1701,10 @@ const registerHost = (elm, cmpMeta) => {
1630
1701
  $instanceValues$: new Map(),
1631
1702
  };
1632
1703
  {
1633
- hostRef.$onInstancePromise$ = new Promise(r => (hostRef.$onInstanceResolve$ = r));
1704
+ hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
1634
1705
  }
1635
1706
  {
1636
- hostRef.$onReadyPromise$ = new Promise(r => (hostRef.$onReadyResolve$ = r));
1707
+ hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1637
1708
  elm['s-p'] = [];
1638
1709
  elm['s-rc'] = [];
1639
1710
  }
@@ -1655,7 +1726,7 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1655
1726
  /* webpackInclude: /\.entry\.js$/ */
1656
1727
  /* webpackExclude: /\.system\.entry\.js$/ */
1657
1728
  /* webpackMode: "lazy" */
1658
- `./${bundleId}.entry.js${''}`)); }).then(importedModule => {
1729
+ `./${bundleId}.entry.js${''}`)); }).then((importedModule) => {
1659
1730
  {
1660
1731
  cmpModules.set(bundleId, importedModule);
1661
1732
  }
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-ac192914.js');
5
+ const index = require('./index-0b899fc6.js');
6
6
 
7
7
  const listItemCss = ":host{display:block}";
8
8
 
9
- const ListItem = class {
9
+ let ListItem = class {
10
10
  constructor(hostRef) {
11
11
  index.registerInstance(this, hostRef);
12
12
  this.listType = 'para-list';
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-ac192914.js');
5
+ const index = require('./index-0b899fc6.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Esm v2.6.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Esm v2.13.0 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchEsm = () => {
11
11
  return index.promiseResolve();
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["ptc-card.cjs",[[1,"ptc-card",{"cardType":[1,"card-type"],"cardHref":[1,"card-href"],"target":[1],"rel":[1],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"],"heading":[1],"cardDate":[1,"card-date"],"styles":[1]}]]],["ptc-link.cjs",[[1,"ptc-link",{"disabled":[516],"external":[516],"href":[1],"target":[1],"linkTitle":[1,"link-title"],"theme":[1],"uppercase":[4],"fontSize":[1,"font-size"]}]]],["ptc-lottie.cjs",[[1,"ptc-lottie",{"jsonSrc":[1025,"json-src"],"speed":[1026]}]]],["list-item.cjs",[[4,"list-item",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["my-component.cjs",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["ptc-avatar.cjs",[[1,"ptc-avatar"]]],["ptc-countdown.cjs",[[1,"ptc-countdown"]]],["ptc-footer.cjs",[[1,"ptc-footer"]]],["ptc-img.cjs",[[0,"ptc-img",{"sizeXs":[1025,"size-xs"],"sizeSm":[1025,"size-sm"],"sizeMd":[1025,"size-md"],"sizeLg":[1025,"size-lg"],"imgUrl":[1,"img-url"],"imageType":[1,"image-type"],"borderRadius":[1,"border-radius"],"loadMode":[1,"load-mode"]},[[9,"resize","WindowResize"]]]]],["ptc-list.cjs",[[0,"ptc-list",{"listType":[1,"list-type"],"listItems":[16]}]]],["ptc-nav.cjs",[[1,"ptc-nav"]]],["ptc-nav-item.cjs",[[1,"ptc-nav-item",{"url":[1025],"label":[1025],"ariaExpanded":[1028,"aria-expanded"],"depth":[1538],"hasChildren":[1028,"has-children"],"parentExpanded":[1540,"parent-expanded"],"navType":[1,"nav-type"]},[[0,"handleClick","handleClick"],[9,"resize","handleResize"]]]]],["ptc-overlay.cjs",[[4,"ptc-overlay"]]],["ptc-picture.cjs",[[1,"ptc-picture",{"src":[1],"alt":[1],"sizeXs":[1025,"size-xs"],"sizeSm":[1025,"size-sm"],"sizeMd":[1025,"size-md"],"sizeLg":[1025,"size-lg"],"borderRadius":[1,"border-radius"],"height":[1],"width":[1],"objectFit":[1,"object-fit"],"styles":[1],"oldSrc":[32]},[[9,"resize","WindowResize"]]]]],["ptc-spacer.cjs",[[1,"ptc-spacer",{"breakpoint":[1],"size":[1],"direction":[1]}]]],["ptc-span.cjs",[[1,"ptc-span",{"spanStyle":[1,"span-style"],"display":[1],"styles":[1]}]]],["ptc-title.cjs",[[1,"ptc-title",{"type":[1],"textAlign":[1,"text-align"],"upperline":[1]}]]],["lottie-player.cjs",[[1,"lottie-player",{"mode":[1],"autoplay":[4],"background":[513],"controls":[4],"count":[2],"direction":[2],"hover":[4],"loop":[516],"renderer":[1],"speed":[2],"src":[1],"currentState":[1,"current-state"],"seeker":[8],"intermission":[2],"play":[64],"pause":[64],"stop":[64],"seek":[64],"getLottie":[64],"setSpeed":[64],"setDirection":[64],"setLooping":[64],"togglePlay":[64],"toggleLooping":[64]}]]],["ptc-date.cjs",[[1,"ptc-date",{"year":[2],"month":[2],"day":[2],"country":[1],"dateString":[1,"date-string"],"dateStyles":[1,"date-styles"]}]]],["icon-asset_5.cjs",[[1,"ptc-announcement",{"btnText":[513,"btn-text"],"visible":[1540],"btnLink":[513,"btn-link"],"tempContainer":[4,"temp-container"]}],[1,"ptc-para",{"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"paraStyle":[1,"para-style"],"paraMargin":[1,"para-margin"]}],[1,"ptc-button",{"disabled":[516],"type":[1],"color":[1],"iconAnimation":[1,"icon-animation"],"iconPosition":[1,"icon-position"],"linkHref":[1,"link-href"],"target":[1],"rel":[1],"tabNav":[2,"tab-nav"],"styles":[1]}],[1,"ptc-svg-btn",{"svgName":[1,"svg-name"]}],[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]]], options);
17
+ return index.bootstrapLazy([["ptc-announcement.cjs",[[1,"ptc-announcement",{"btnText":[513,"btn-text"],"visible":[1540],"btnLink":[513,"btn-link"],"tempContainer":[4,"temp-container"]}]]],["ptc-card.cjs",[[1,"ptc-card",{"cardType":[1,"card-type"],"cardHref":[1,"card-href"],"target":[1],"rel":[1],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"],"heading":[1],"cardDate":[1,"card-date"],"styles":[1]}]]],["ptc-link.cjs",[[1,"ptc-link",{"disabled":[516],"external":[516],"href":[1],"target":[1],"linkTitle":[1,"link-title"],"theme":[1],"uppercase":[4],"fontSize":[1,"font-size"]}]]],["ptc-lottie.cjs",[[1,"ptc-lottie",{"jsonSrc":[1025,"json-src"],"speed":[1026]}]]],["ptc-form_3.cjs",[[6,"ptc-form",{"value":[32],"inputValue":[32],"selectValue":[32]}],[6,"ptc-input",{"type":[1],"dataEloquaName":[1,"data-eloqua-name"],"inputId":[1,"input-id"],"inputName":[1,"input-name"],"focused":[32]}],[6,"ptc-select",{"dataEloquaName":[1,"data-eloqua-name"],"selectId":[1,"select-id"],"name":[1],"valueOptions":[1040]}]]],["list-item.cjs",[[4,"list-item",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["my-component.cjs",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["ptc-avatar.cjs",[[1,"ptc-avatar"]]],["ptc-countdown.cjs",[[1,"ptc-countdown"]]],["ptc-footer.cjs",[[1,"ptc-footer"]]],["ptc-img.cjs",[[0,"ptc-img",{"sizeXs":[1025,"size-xs"],"sizeSm":[1025,"size-sm"],"sizeMd":[1025,"size-md"],"sizeLg":[1025,"size-lg"],"imgUrl":[1,"img-url"],"imageType":[1,"image-type"],"borderRadius":[1,"border-radius"],"loadMode":[1,"load-mode"]},[[9,"resize","WindowResize"]]]]],["ptc-list.cjs",[[0,"ptc-list",{"listType":[1,"list-type"],"listItems":[16]}]]],["ptc-nav.cjs",[[1,"ptc-nav"]]],["ptc-nav-item.cjs",[[1,"ptc-nav-item",{"url":[1025],"label":[1025],"ariaExpanded":[1028,"aria-expanded"],"depth":[1538],"hasChildren":[1028,"has-children"],"parentExpanded":[1540,"parent-expanded"],"navType":[1,"nav-type"]},[[0,"handleClick","handleClick"],[9,"resize","handleResize"]]]]],["ptc-overlay.cjs",[[4,"ptc-overlay"]]],["ptc-para.cjs",[[1,"ptc-para",{"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"paraStyle":[1,"para-style"],"paraMargin":[1,"para-margin"]}]]],["ptc-picture.cjs",[[1,"ptc-picture",{"src":[1],"alt":[1],"sizeXs":[1025,"size-xs"],"sizeSm":[1025,"size-sm"],"sizeMd":[1025,"size-md"],"sizeLg":[1025,"size-lg"],"borderRadius":[1,"border-radius"],"height":[1],"width":[1],"objectFit":[1,"object-fit"],"styles":[1],"oldSrc":[32]},[[9,"resize","WindowResize"]]]]],["ptc-spacer.cjs",[[1,"ptc-spacer",{"breakpoint":[1],"size":[1],"direction":[1]}]]],["ptc-span.cjs",[[1,"ptc-span",{"spanStyle":[1,"span-style"],"display":[1],"styles":[1]}]]],["ptc-title.cjs",[[6,"ptc-title",{"type":[1],"textAlign":[1,"text-align"],"upperline":[1]}]]],["lottie-player.cjs",[[1,"lottie-player",{"mode":[1],"autoplay":[4],"background":[513],"controls":[4],"count":[2],"direction":[2],"hover":[4],"loop":[516],"renderer":[1],"speed":[2],"src":[1],"currentState":[1,"current-state"],"seeker":[8],"intermission":[2],"play":[64],"pause":[64],"stop":[64],"seek":[64],"getLottie":[64],"setSpeed":[64],"setDirection":[64],"setLooping":[64],"togglePlay":[64],"toggleLooping":[64]}]]],["ptc-date.cjs",[[1,"ptc-date",{"year":[2],"month":[2],"day":[2],"country":[1],"dateString":[1,"date-string"],"dateStyles":[1,"date-styles"]}]]],["ptc-button_2.cjs",[[1,"ptc-button",{"disabled":[516],"type":[1],"color":[1],"iconAnimation":[1,"icon-animation"],"iconPosition":[1,"icon-position"],"linkHref":[1,"link-href"],"target":[1],"rel":[1],"tabNav":[2,"tab-nav"],"styles":[1]}],[1,"ptc-svg-btn",{"svgName":[1,"svg-name"]}]]],["icon-asset.cjs",[[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]]], options);
18
18
  });
19
19
  };
20
20
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-ac192914.js');
5
+ const index = require('./index-0b899fc6.js');
6
6
 
7
7
  function createCommonjsModule(fn, basedir, module) {
8
8
  return module = {
@@ -13117,7 +13117,7 @@ var PlayMode;
13117
13117
 
13118
13118
  const lottiePlayerCss = ":host{--lottie-player-toolbar-height:35px;--lottie-player-toolbar-background-color:transparent;--lottie-player-toolbar-icon-color:#999;--lottie-player-toolbar-icon-hover-color:#222;--lottie-player-toolbar-icon-active-color:#555;--lottie-player-seeker-track-color:#CCC;--lottie-player-seeker-thumb-color:rgba(0, 107, 120, 0.8);display:block;width:100%;height:100%}.main{box-sizing:border-box;display:inline-grid;grid-auto-columns:auto;grid-template-rows:auto;position:relative;height:inherit;width:inherit}.main.controls{grid-template-rows:1fr var(--lottie-player-toolbar-height)}.animation{overflow:hidden;height:calc(1fr - var(--lottie-player-toolbar-height))}.toolbar{display:grid;grid-template-columns:32px 32px 1fr 32px 32px;align-items:center;justify-items:center;background-color:var(--lottie-player-toolbar-background-color)}.toolbar button{cursor:pointer;fill:var(--lottie-player-toolbar-icon-color);display:flex;background:none;border:0;padding:0;outline:none;height:100%}.toolbar button:hover{fill:var(--lottie-player-toolbar-icon-hover-color)}.toolbar button.active{fill:var(--lottie-player-toolbar-icon-active-color)}.toolbar button.disabled svg{display:none}.toolbar a{filter:grayscale(100%);display:flex;transition:filter .5s, opacity 0.5s;opacity:0.4;height:100%;align-items:center}.toolbar a:hover{filter:none;display:flex;opacity:1}.seeker{-webkit-appearance:none;width:95%;outline:none}.seeker::-webkit-slider-runnable-track{width:100%;height:5px;cursor:pointer;background:var(--lottie-player-seeker-track-color);border-radius:3px}.seeker::-webkit-slider-thumb{height:15px;width:15px;border-radius:50%;background:var(--lottie-player-seeker-thumb-color);cursor:pointer;-webkit-appearance:none;margin-top:-5px}.seeker:focus::-webkit-slider-runnable-track{background:#999}.seeker::-moz-range-track{width:100%;height:5px;cursor:pointer;background:var(--lottie-player-seeker-track-color);border-radius:3px}.seeker::-moz-range-thumb{height:15px;width:15px;border-radius:50%;background:var(--lottie-player-seeker-thumb-color);cursor:pointer}.seeker::-ms-track{width:100%;height:5px;cursor:pointer;background:transparent;border-color:transparent;color:transparent}.seeker::-ms-fill-lower{background:var(--lottie-player-seeker-track-color);border-radius:3px}.seeker::-ms-fill-upper{background:var(--lottie-player-seeker-track-color);border-radius:3px}.seeker::-ms-thumb{border:0;height:15px;width:15px;border-radius:50%;background:var(--lottie-player-seeker-thumb-color);cursor:pointer}.seeker:focus::-ms-fill-lower{background:var(--lottie-player-seeker-track-color)}.seeker:focus::-ms-fill-upper{background:var(--lottie-player-seeker-track-color)}.error{display:flex;justify-content:center;height:100%;align-items:center}";
13119
13119
 
13120
- const LottiePlayer = class {
13120
+ let LottiePlayer = class {
13121
13121
  constructor(hostRef) {
13122
13122
  index.registerInstance(this, hostRef);
13123
13123
  this.error = index.createEvent(this, "error", 7);