adp-web-components 0.0.12 → 0.0.15

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 (131) hide show
  1. package/dist/cjs/{loader-baf2418b.js → Loading-20e4ef35.js} +9 -0
  2. package/dist/cjs/dead-stock-lookup.cjs.entry.js +24 -13
  3. package/dist/cjs/distributor-lookup.cjs.entry.js +27 -18
  4. package/dist/cjs/dynamic-claim_6.cjs.entry.js +1046 -0
  5. package/dist/cjs/dynamic-redeem.cjs.entry.js +5 -5
  6. package/dist/cjs/form-input.cjs.entry.js +2 -2
  7. package/dist/cjs/general-inquiry-form.cjs.entry.js +2 -2
  8. package/dist/cjs/{index-d4b5214c.js → index-97b8da6d.js} +289 -8
  9. package/dist/cjs/loader.cjs.js +2 -2
  10. package/dist/cjs/manufacturer-lookup.cjs.entry.js +4 -18
  11. package/dist/cjs/shift-components.cjs.js +2 -2
  12. package/dist/cjs/vehicle-lookup.cjs.entry.js +133 -0
  13. package/dist/collection/collection-manifest.json +6 -5
  14. package/dist/collection/components/dynamic-claim/dynamic-claim.css +1 -1
  15. package/dist/collection/components/dynamic-claim/dynamic-claim.js +2 -2
  16. package/dist/collection/components/dynamic-redeem/dynamic-redeem.css +1 -1
  17. package/dist/collection/components/dynamic-redeem/dynamic-redeem.js +3 -3
  18. package/dist/collection/components/form-input/form-input.js +1 -1
  19. package/dist/collection/components/general-inquiry-form/general-inquiry-form.js +1 -1
  20. package/dist/collection/components/paint-thickness/paint-thickness.css +1 -1
  21. package/dist/collection/components/paint-thickness/paint-thickness.js +3 -16
  22. package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -1
  23. package/dist/collection/components/part-lookup/dead-stock-lookup.js +34 -23
  24. package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
  25. package/dist/collection/components/part-lookup/distributor-lookup.js +24 -14
  26. package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -1
  27. package/dist/collection/components/part-lookup/manufacturer-lookup.js +1 -14
  28. package/dist/collection/components/service-history/service-history.css +1 -1
  29. package/dist/collection/components/service-history/service-history.js +1 -14
  30. package/dist/collection/components/vehicle-accessories/vehicle-accessories.css +1 -1
  31. package/dist/collection/components/vehicle-accessories/vehicle-accessories.js +3 -16
  32. package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -0
  33. package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +244 -0
  34. package/dist/collection/components/vehicle-specification/vehicle-specification.css +1 -1
  35. package/dist/collection/components/vehicle-specification/vehicle-specification.js +1 -14
  36. package/dist/collection/components/warranty-details/warranty-details.css +1 -1
  37. package/dist/collection/components/warranty-details/warranty-details.js +7 -34
  38. package/dist/collection/global/lib/validate-vin.js +62 -0
  39. package/dist/collection/templates/vehicle-lookup.js +163 -96
  40. package/dist/components/dead-stock-lookup.js +1 -1
  41. package/dist/components/distributor-lookup.js +1 -1
  42. package/dist/components/dynamic-claim.js +1 -1
  43. package/dist/components/dynamic-redeem.js +1 -1
  44. package/dist/components/form-input.js +1 -1
  45. package/dist/components/general-inquiry-form.js +1 -1
  46. package/dist/components/index.js +1 -1
  47. package/dist/components/manufacturer-lookup.js +1 -1
  48. package/dist/components/p-05871c28.js +5 -0
  49. package/dist/components/p-23551e81.js +5 -0
  50. package/dist/components/p-325b6857.js +5 -0
  51. package/dist/components/{p-50f73226.js → p-3bf0339d.js} +1 -1
  52. package/dist/components/p-514c4736.js +5 -0
  53. package/dist/components/{p-2b0cc0c6.js → p-8385e385.js} +1 -1
  54. package/dist/components/p-be0a5ab5.js +5 -0
  55. package/dist/components/p-c8eef708.js +5 -0
  56. package/dist/components/p-da533bd7.js +5 -0
  57. package/dist/components/p-e46b126e.js +5 -0
  58. package/dist/components/p-f1ffc23d.js +5 -0
  59. package/dist/components/paint-thickness.js +1 -1
  60. package/dist/components/service-history.js +1 -1
  61. package/dist/components/vehicle-accessories.js +1 -1
  62. package/dist/components/vehicle-lookup.d.ts +11 -0
  63. package/dist/components/vehicle-lookup.js +5 -0
  64. package/dist/components/vehicle-specification.js +1 -1
  65. package/dist/components/warranty-details.js +1 -1
  66. package/dist/esm/{loader-027b88af.js → Loading-d050617c.js} +9 -1
  67. package/dist/esm/dead-stock-lookup.entry.js +24 -13
  68. package/dist/esm/distributor-lookup.entry.js +27 -18
  69. package/dist/esm/dynamic-claim_6.entry.js +1037 -0
  70. package/dist/esm/dynamic-redeem.entry.js +5 -5
  71. package/dist/esm/form-input.entry.js +2 -2
  72. package/dist/esm/general-inquiry-form.entry.js +2 -2
  73. package/dist/esm/{index-ef54644b.js → index-ff1dab22.js} +289 -8
  74. package/dist/esm/loader.js +3 -3
  75. package/dist/esm/manufacturer-lookup.entry.js +4 -18
  76. package/dist/esm/shift-components.js +3 -3
  77. package/dist/esm/vehicle-lookup.entry.js +129 -0
  78. package/dist/shift-components/{p-894e7518.entry.js → p-15e82b1a.entry.js} +1 -1
  79. package/dist/shift-components/p-1a727cfd.entry.js +5 -0
  80. package/dist/shift-components/p-2bb4415e.entry.js +5 -0
  81. package/dist/shift-components/p-3f3b41b4.entry.js +5 -0
  82. package/dist/shift-components/{p-8e818568.entry.js → p-4c3f2850.entry.js} +1 -1
  83. package/dist/shift-components/p-4ca95c3d.entry.js +5 -0
  84. package/dist/shift-components/p-65939a2f.js +5 -0
  85. package/dist/shift-components/p-8b198a04.entry.js +5 -0
  86. package/dist/shift-components/p-d577db71.entry.js +5 -0
  87. package/dist/shift-components/p-f37b60d5.js +6 -0
  88. package/dist/shift-components/shift-components.esm.js +1 -1
  89. package/dist/types/components/part-lookup/dead-stock-lookup.d.ts +2 -3
  90. package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +23 -0
  91. package/dist/types/components/warranty-details/warranty-details.d.ts +1 -2
  92. package/dist/types/components.d.ts +37 -0
  93. package/dist/types/global/lib/validate-vin.d.ts +1 -0
  94. package/package.json +1 -1
  95. package/readme.md +2 -91
  96. package/dist/cjs/Loading-ee1a2ceb.js +0 -16
  97. package/dist/cjs/dynamic-claim.cjs.entry.js +0 -306
  98. package/dist/cjs/image-expansion-a9c9c6f7.js +0 -77
  99. package/dist/cjs/paint-thickness.cjs.entry.js +0 -131
  100. package/dist/cjs/service-history.cjs.entry.js +0 -116
  101. package/dist/cjs/vehicle-accessories.cjs.entry.js +0 -135
  102. package/dist/cjs/vehicle-specification.cjs.entry.js +0 -111
  103. package/dist/cjs/vehicleInformation-35c470fc.js +0 -52
  104. package/dist/cjs/warranty-details.cjs.entry.js +0 -281
  105. package/dist/components/p-4dc47f5f.js +0 -5
  106. package/dist/components/p-8375923d.js +0 -5
  107. package/dist/components/p-a454210b.js +0 -5
  108. package/dist/esm/Loading-61648252.js +0 -14
  109. package/dist/esm/dynamic-claim.entry.js +0 -302
  110. package/dist/esm/image-expansion-08c4bf0d.js +0 -73
  111. package/dist/esm/paint-thickness.entry.js +0 -127
  112. package/dist/esm/service-history.entry.js +0 -112
  113. package/dist/esm/vehicle-accessories.entry.js +0 -131
  114. package/dist/esm/vehicle-specification.entry.js +0 -107
  115. package/dist/esm/vehicleInformation-f7290628.js +0 -50
  116. package/dist/esm/warranty-details.entry.js +0 -277
  117. package/dist/shift-components/p-2e3e8e97.entry.js +0 -5
  118. package/dist/shift-components/p-3bfafc40.entry.js +0 -5
  119. package/dist/shift-components/p-65e6ab8e.js +0 -5
  120. package/dist/shift-components/p-75ea0e53.entry.js +0 -5
  121. package/dist/shift-components/p-91eff216.entry.js +0 -5
  122. package/dist/shift-components/p-a21e2e2e.js +0 -5
  123. package/dist/shift-components/p-c274f4ba.entry.js +0 -5
  124. package/dist/shift-components/p-c4fad245.js +0 -5
  125. package/dist/shift-components/p-ca1e2e5b.entry.js +0 -5
  126. package/dist/shift-components/p-d5ff7544.js +0 -5
  127. package/dist/shift-components/p-e97316d2.js +0 -6
  128. package/dist/shift-components/p-ec9302fb.entry.js +0 -5
  129. package/dist/shift-components/p-f21722ce.entry.js +0 -5
  130. package/dist/shift-components/p-f95c7501.entry.js +0 -5
  131. package/dist/shift-components/p-feb3df85.entry.js +0 -5
@@ -25,7 +25,7 @@ function _interopNamespace(e) {
25
25
  }
26
26
 
27
27
  const NAMESPACE = 'shift-components';
28
- const BUILD = /* shift-components */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
28
+ const BUILD = /* shift-components */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
29
29
 
30
30
  /*
31
31
  Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
@@ -229,6 +229,7 @@ var uniqueTime = (key, measureText) => {
229
229
  var h = (nodeName, vnodeData, ...children) => {
230
230
  let child = null;
231
231
  let key = null;
232
+ let slotName = null;
232
233
  let simple = false;
233
234
  let lastSimple = false;
234
235
  const vNodeChildren = [];
@@ -255,6 +256,9 @@ var h = (nodeName, vnodeData, ...children) => {
255
256
  if (vnodeData.key) {
256
257
  key = vnodeData.key;
257
258
  }
259
+ if (vnodeData.name) {
260
+ slotName = vnodeData.name;
261
+ }
258
262
  {
259
263
  const classData = vnodeData.className || vnodeData.class;
260
264
  if (classData) {
@@ -277,6 +281,9 @@ var h = (nodeName, vnodeData, ...children) => {
277
281
  {
278
282
  vnode.$key$ = key;
279
283
  }
284
+ {
285
+ vnode.$name$ = slotName;
286
+ }
280
287
  return vnode;
281
288
  };
282
289
  var newVNode = (tag, text) => {
@@ -293,6 +300,9 @@ var newVNode = (tag, text) => {
293
300
  {
294
301
  vnode.$key$ = null;
295
302
  }
303
+ {
304
+ vnode.$name$ = null;
305
+ }
296
306
  return vnode;
297
307
  };
298
308
  var Host = {};
@@ -583,16 +593,41 @@ function sortedAttrNames(attrNames) {
583
593
 
584
594
  // src/runtime/vdom/vdom-render.ts
585
595
  var scopeId;
596
+ var contentRef;
586
597
  var hostTagName;
587
598
  var useNativeShadowDom = false;
599
+ var checkSlotFallbackVisibility = false;
600
+ var checkSlotRelocate = false;
588
601
  var isSvgMode = false;
589
602
  var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
603
+ var _a;
590
604
  const newVNode2 = newParentVNode.$children$[childIndex];
591
605
  let i2 = 0;
592
606
  let elm;
593
607
  let childNode;
608
+ let oldVNode;
609
+ if (!useNativeShadowDom) {
610
+ checkSlotRelocate = true;
611
+ if (newVNode2.$tag$ === "slot") {
612
+ if (scopeId) {
613
+ parentElm.classList.add(scopeId + "-s");
614
+ }
615
+ newVNode2.$flags$ |= newVNode2.$children$ ? (
616
+ // slot element has fallback content
617
+ // still create an element that "mocks" the slot element
618
+ 2 /* isSlotFallback */
619
+ ) : (
620
+ // slot element does not have fallback content
621
+ // create an html comment we'll use to always reference
622
+ // where actual slot content should sit next to
623
+ 1 /* isSlotReference */
624
+ );
625
+ }
626
+ }
594
627
  if (newVNode2.$text$ !== null) {
595
628
  elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
629
+ } else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
630
+ elm = newVNode2.$elm$ = doc.createTextNode("");
596
631
  } else {
597
632
  if (!isSvgMode) {
598
633
  isSvgMode = newVNode2.$tag$ === "svg";
@@ -614,7 +649,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
614
649
  }
615
650
  if (newVNode2.$children$) {
616
651
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
617
- childNode = createElm(oldParentVNode, newVNode2, i2);
652
+ childNode = createElm(oldParentVNode, newVNode2, i2, elm);
618
653
  if (childNode) {
619
654
  elm.appendChild(childNode);
620
655
  }
@@ -629,20 +664,60 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
629
664
  }
630
665
  }
631
666
  elm["s-hn"] = hostTagName;
667
+ {
668
+ if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
669
+ elm["s-sr"] = true;
670
+ elm["s-cr"] = contentRef;
671
+ elm["s-sn"] = newVNode2.$name$ || "";
672
+ elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
673
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
674
+ if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
675
+ {
676
+ putBackInOriginalLocation(oldParentVNode.$elm$, false);
677
+ }
678
+ }
679
+ }
680
+ }
632
681
  return elm;
633
682
  };
683
+ var putBackInOriginalLocation = (parentElm, recursive) => {
684
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
685
+ const oldSlotChildNodes = Array.from(parentElm.childNodes);
686
+ if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
687
+ let node = parentElm;
688
+ while (node = node.nextSibling) {
689
+ if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
690
+ oldSlotChildNodes.push(node);
691
+ }
692
+ }
693
+ }
694
+ for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
695
+ const childNode = oldSlotChildNodes[i2];
696
+ if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
697
+ insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
698
+ childNode["s-ol"].remove();
699
+ childNode["s-ol"] = void 0;
700
+ childNode["s-sh"] = void 0;
701
+ checkSlotRelocate = true;
702
+ }
703
+ if (recursive) {
704
+ putBackInOriginalLocation(childNode, recursive);
705
+ }
706
+ }
707
+ plt.$flags$ &= ~1 /* isTmpDisconnected */;
708
+ };
634
709
  var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
635
- let containerElm = parentElm;
710
+ let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
636
711
  let childNode;
637
712
  if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
638
713
  containerElm = containerElm.shadowRoot;
639
714
  }
640
715
  for (; startIdx <= endIdx; ++startIdx) {
641
716
  if (vnodes[startIdx]) {
642
- childNode = createElm(null, parentVNode, startIdx);
717
+ childNode = createElm(null, parentVNode, startIdx, parentElm);
643
718
  if (childNode) {
644
719
  vnodes[startIdx].$elm$ = childNode;
645
- insertBefore(containerElm, childNode, before);
720
+ insertBefore(containerElm, childNode, referenceNode(before) );
646
721
  }
647
722
  }
648
723
  }
@@ -654,6 +729,14 @@ var removeVnodes = (vnodes, startIdx, endIdx) => {
654
729
  const elm = vnode.$elm$;
655
730
  nullifyVNodeRefs(vnode);
656
731
  if (elm) {
732
+ {
733
+ checkSlotFallbackVisibility = true;
734
+ if (elm["s-ol"]) {
735
+ elm["s-ol"].remove();
736
+ } else {
737
+ putBackInOriginalLocation(elm, true);
738
+ }
739
+ }
657
740
  elm.remove();
658
741
  }
659
742
  }
@@ -690,11 +773,17 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
690
773
  oldEndVnode = oldCh[--oldEndIdx];
691
774
  newEndVnode = newCh[--newEndIdx];
692
775
  } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
776
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
777
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
778
+ }
693
779
  patch(oldStartVnode, newEndVnode, isInitialRender);
694
780
  insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
695
781
  oldStartVnode = oldCh[++oldStartIdx];
696
782
  newEndVnode = newCh[--newEndIdx];
697
783
  } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
784
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
785
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
786
+ }
698
787
  patch(oldEndVnode, newStartVnode, isInitialRender);
699
788
  insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
700
789
  oldEndVnode = oldCh[--oldEndIdx];
@@ -712,7 +801,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
712
801
  if (idxInOld >= 0) {
713
802
  elmToMove = oldCh[idxInOld];
714
803
  if (elmToMove.$tag$ !== newStartVnode.$tag$) {
715
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
804
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
716
805
  } else {
717
806
  patch(elmToMove, newStartVnode, isInitialRender);
718
807
  oldCh[idxInOld] = void 0;
@@ -720,12 +809,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
720
809
  }
721
810
  newStartVnode = newCh[++newStartIdx];
722
811
  } else {
723
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
812
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
724
813
  newStartVnode = newCh[++newStartIdx];
725
814
  }
726
815
  if (node) {
727
816
  {
728
- insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
817
+ insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
729
818
  }
730
819
  }
731
820
  }
@@ -745,6 +834,18 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
745
834
  };
746
835
  var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
747
836
  if (leftVNode.$tag$ === rightVNode.$tag$) {
837
+ if (leftVNode.$tag$ === "slot") {
838
+ if (
839
+ // The component gets hydrated and no VDOM has been initialized.
840
+ // Here the comparison can't happen as $name$ property is not set for `leftNode`.
841
+ "$nodeId$" in leftVNode && isInitialRender && // `leftNode` is not from type HTMLComment which would cause many
842
+ // hydration comments to be removed
843
+ leftVNode.$elm$.nodeType !== 8
844
+ ) {
845
+ return false;
846
+ }
847
+ return leftVNode.$name$ === rightVNode.$name$;
848
+ }
748
849
  if (!isInitialRender) {
749
850
  return leftVNode.$key$ === rightVNode.$key$;
750
851
  }
@@ -752,12 +853,17 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
752
853
  }
753
854
  return false;
754
855
  };
856
+ var referenceNode = (node) => {
857
+ return node && node["s-ol"] || node;
858
+ };
859
+ var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
755
860
  var patch = (oldVNode, newVNode2, isInitialRender = false) => {
756
861
  const elm = newVNode2.$elm$ = oldVNode.$elm$;
757
862
  const oldChildren = oldVNode.$children$;
758
863
  const newChildren = newVNode2.$children$;
759
864
  const tag = newVNode2.$tag$;
760
865
  const text = newVNode2.$text$;
866
+ let defaultHolder;
761
867
  if (text === null) {
762
868
  {
763
869
  isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
@@ -783,10 +889,103 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
783
889
  if (isSvgMode && tag === "svg") {
784
890
  isSvgMode = false;
785
891
  }
892
+ } else if ((defaultHolder = elm["s-cr"])) {
893
+ defaultHolder.parentNode.textContent = text;
786
894
  } else if (oldVNode.$text$ !== text) {
787
895
  elm.data = text;
788
896
  }
789
897
  };
898
+ var updateFallbackSlotVisibility = (elm) => {
899
+ const childNodes = elm.childNodes;
900
+ for (const childNode of childNodes) {
901
+ if (childNode.nodeType === 1 /* ElementNode */) {
902
+ if (childNode["s-sr"]) {
903
+ const slotName = childNode["s-sn"];
904
+ childNode.hidden = false;
905
+ for (const siblingNode of childNodes) {
906
+ if (siblingNode !== childNode) {
907
+ if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
908
+ if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
909
+ childNode.hidden = true;
910
+ break;
911
+ }
912
+ } else {
913
+ if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
914
+ childNode.hidden = true;
915
+ break;
916
+ }
917
+ }
918
+ }
919
+ }
920
+ }
921
+ updateFallbackSlotVisibility(childNode);
922
+ }
923
+ }
924
+ };
925
+ var relocateNodes = [];
926
+ var markSlotContentForRelocation = (elm) => {
927
+ let node;
928
+ let hostContentNodes;
929
+ let j;
930
+ for (const childNode of elm.childNodes) {
931
+ if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
932
+ hostContentNodes = node.parentNode.childNodes;
933
+ const slotName = childNode["s-sn"];
934
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
935
+ node = hostContentNodes[j];
936
+ if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!BUILD.experimentalSlotFixes )) {
937
+ if (isNodeLocatedInSlot(node, slotName)) {
938
+ let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
939
+ checkSlotFallbackVisibility = true;
940
+ node["s-sn"] = node["s-sn"] || slotName;
941
+ if (relocateNodeData) {
942
+ relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
943
+ relocateNodeData.$slotRefNode$ = childNode;
944
+ } else {
945
+ node["s-sh"] = childNode["s-hn"];
946
+ relocateNodes.push({
947
+ $slotRefNode$: childNode,
948
+ $nodeToRelocate$: node
949
+ });
950
+ }
951
+ if (node["s-sr"]) {
952
+ relocateNodes.map((relocateNode) => {
953
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
954
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
955
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
956
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
957
+ }
958
+ }
959
+ });
960
+ }
961
+ } else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
962
+ relocateNodes.push({
963
+ $nodeToRelocate$: node
964
+ });
965
+ }
966
+ }
967
+ }
968
+ }
969
+ if (childNode.nodeType === 1 /* ElementNode */) {
970
+ markSlotContentForRelocation(childNode);
971
+ }
972
+ }
973
+ };
974
+ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
975
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
976
+ if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
977
+ return true;
978
+ }
979
+ if (nodeToRelocate.getAttribute("slot") === slotName) {
980
+ return true;
981
+ }
982
+ return false;
983
+ }
984
+ if (nodeToRelocate["s-sn"] === slotName) {
985
+ return true;
986
+ }
987
+ return slotName === "";
988
+ };
790
989
  var nullifyVNodeRefs = (vNode) => {
791
990
  {
792
991
  vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
@@ -798,6 +997,7 @@ var insertBefore = (parent, newNode, reference) => {
798
997
  return inserted;
799
998
  };
800
999
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1000
+ var _a, _b, _c, _d;
801
1001
  const hostElm = hostRef.$hostElement$;
802
1002
  const cmpMeta = hostRef.$cmpMeta$;
803
1003
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -818,7 +1018,75 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
818
1018
  scopeId = hostElm["s-sc"];
819
1019
  }
820
1020
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
1021
+ {
1022
+ contentRef = hostElm["s-cr"];
1023
+ checkSlotFallbackVisibility = false;
1024
+ }
821
1025
  patch(oldVNode, rootVnode, isInitialLoad);
1026
+ {
1027
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
1028
+ if (checkSlotRelocate) {
1029
+ markSlotContentForRelocation(rootVnode.$elm$);
1030
+ for (const relocateData of relocateNodes) {
1031
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
1032
+ if (!nodeToRelocate["s-ol"]) {
1033
+ const orgLocationNode = doc.createTextNode("");
1034
+ orgLocationNode["s-nr"] = nodeToRelocate;
1035
+ insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
1036
+ }
1037
+ }
1038
+ for (const relocateData of relocateNodes) {
1039
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
1040
+ const slotRefNode = relocateData.$slotRefNode$;
1041
+ if (slotRefNode) {
1042
+ const parentNodeRef = slotRefNode.parentNode;
1043
+ let insertBeforeNode = slotRefNode.nextSibling;
1044
+ {
1045
+ let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
1046
+ while (orgLocationNode) {
1047
+ let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
1048
+ if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
1049
+ refNode = refNode.nextSibling;
1050
+ while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
1051
+ refNode = refNode == null ? void 0 : refNode.nextSibling;
1052
+ }
1053
+ if (!refNode || !refNode["s-nr"]) {
1054
+ insertBeforeNode = refNode;
1055
+ break;
1056
+ }
1057
+ }
1058
+ orgLocationNode = orgLocationNode.previousSibling;
1059
+ }
1060
+ }
1061
+ if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
1062
+ if (nodeToRelocate !== insertBeforeNode) {
1063
+ if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
1064
+ nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
1065
+ }
1066
+ insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
1067
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1068
+ nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
1069
+ }
1070
+ }
1071
+ }
1072
+ nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](nodeToRelocate);
1073
+ } else {
1074
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1075
+ if (isInitialLoad) {
1076
+ nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
1077
+ }
1078
+ nodeToRelocate.hidden = true;
1079
+ }
1080
+ }
1081
+ }
1082
+ }
1083
+ if (checkSlotFallbackVisibility) {
1084
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1085
+ }
1086
+ plt.$flags$ &= ~1 /* isTmpDisconnected */;
1087
+ relocateNodes.length = 0;
1088
+ }
1089
+ contentRef = void 0;
822
1090
  };
823
1091
 
824
1092
  // src/runtime/update-component.ts
@@ -1161,6 +1429,12 @@ var connectedCallback = (elm) => {
1161
1429
  const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1162
1430
  if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1163
1431
  hostRef.$flags$ |= 1 /* hasConnected */;
1432
+ {
1433
+ if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
1434
+ cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
1435
+ setContentReference(elm);
1436
+ }
1437
+ }
1164
1438
  {
1165
1439
  let ancestorComponent = elm;
1166
1440
  while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
@@ -1190,6 +1464,13 @@ var connectedCallback = (elm) => {
1190
1464
  endConnected();
1191
1465
  }
1192
1466
  };
1467
+ var setContentReference = (elm) => {
1468
+ const contentRefElm = elm["s-cr"] = doc.createComment(
1469
+ ""
1470
+ );
1471
+ contentRefElm["s-cn"] = true;
1472
+ insertBefore(elm, contentRefElm, elm.firstChild);
1473
+ };
1193
1474
  var disconnectInstance = (instance) => {
1194
1475
  };
1195
1476
  var disconnectedCallback = async (elm) => {
@@ -6,13 +6,13 @@
6
6
 
7
7
  Object.defineProperty(exports, '__esModule', { value: true });
8
8
 
9
- const index = require('./index-d4b5214c.js');
9
+ const index = require('./index-97b8da6d.js');
10
10
  const appGlobals = require('./app-globals-3813fb46.js');
11
11
 
12
12
  const defineCustomElements = async (win, options) => {
13
13
  if (typeof window === 'undefined') return undefined;
14
14
  await appGlobals.globalScripts();
15
- return index.bootstrapLazy([["dynamic-claim.cjs",[[1,"dynamic-claim",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"isIdle":[32],"popupClasses":[32],"externalVin":[32],"activePopupIndex":[32],"vehicleInformation":[32],"errorMessage":[32],"isLoading":[32],"setMockData":[64],"setData":[64],"fetchData":[64],"completeClaim":[64]},null,{"isLoading":["onLoadingChange"],"vehicleInformation":["resetProgressBar"],"popupClasses":["windowScrollListener"]}]]],["general-inquiry-form.cjs",[[1,"general-inquiry-form",{"isLoading":[32],"renderControl":[32]}]]],["dead-stock-lookup.cjs",[[1,"dead-stock-lookup",{"isDev":[4,"is-dev"],"baseUrl":[1,"base-url"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalPartNumber":[32],"errorMessage":[32],"partInformation":[32],"activeIndex":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}]]],["distributor-lookup.cjs",[[1,"distributor-lookup",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalPartNumber":[32],"errorMessage":[32],"partInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}]]],["manufacturer-lookup.cjs",[[1,"manufacturer-lookup",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"headerTitle":[1,"header-title"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalPartNumber":[32],"errorMessage":[32],"partInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}]]],["paint-thickness.cjs",[[1,"paint-thickness",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalVin":[32],"errorMessage":[32],"expandedImage":[32],"vehicleInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}]]],["service-history.cjs",[[1,"service-history",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalVin":[32],"errorMessage":[32],"vehicleInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}]]],["vehicle-accessories.cjs",[[1,"vehicle-accessories",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalVin":[32],"errorMessage":[32],"expandedImage":[32],"vehicleInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}]]],["vehicle-specification.cjs",[[1,"vehicle-specification",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalVin":[32],"errorMessage":[32],"vehicleInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}]]],["warranty-details.cjs",[[1,"warranty-details",{"baseUrl":[1,"base-url"],"unauthorizedSscLookupBaseUrl":[1,"unauthorized-ssc-lookup-base-url"],"isDev":[4,"is-dev"],"showSsc":[4,"show-ssc"],"queryString":[1,"query-string"],"unauthorizedSscLookupQueryString":[1,"unauthorized-ssc-lookup-query-string"],"recaptchaKey":[1,"recaptcha-key"],"showWarranty":[4,"show-warranty"],"cityId":[1,"city-id"],"cityIntegrationId":[1,"city-integration-id"],"companyId":[1,"company-id"],"companyIntegrationId":[1,"company-integration-id"],"companyBranchId":[1,"company-branch-id"],"companyBranchIntegrationId":[1,"company-branch-integration-id"],"userId":[1,"user-id"],"brandIntegrationId":[1,"brand-integration-id"],"customerName":[1,"customer-name"],"customerPhone":[1,"customer-phone"],"customerEmail":[1,"customer-email"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalVin":[32],"errorMessage":[32],"showRecaptcha":[32],"unInvoicedByBrokerName":[32],"vehicleInformation":[32],"checkingUnauthorizedSSC":[32],"recaptchaRes":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"showSsc":["onShowSscChange"],"showWarranty":["onShowWarrantyChange"],"state":["loadingListener"]}]]],["dynamic-redeem.cjs",[[1,"dynamic-redeem",{"vin":[1],"item":[16],"canceledItems":[16],"unInvoicedByBrokerName":[1,"un-invoiced-by-broker-name"],"handleScanner":[16],"handleQrChanges":[16],"loadingStateChange":[16],"confirmServiceCancellation":[32],"confirmUnInvoicedTBPVehicles":[32],"internalVin":[32],"isOpened":[32],"internalItem":[32],"internalCanceledItem":[32],"isLoading":[32],"quite":[64],"getQrValue":[64]},null,{"isLoading":["onIsLoadingChange"],"canceledItems":["changeInternalCanceledItem"],"unInvoicedByBrokerName":["changeConfirmUnInvoicedTBPVehicles"],"vin":["changeInternalVin"],"item":["changeInternalItem"]}]]],["form-input.cjs",[[0,"form-input",{"name":[1],"label":[1],"class":[1],"isError":[4,"is-error"],"disabled":[4],"labelClass":[1,"label-class"],"errorClass":[1,"error-class"],"errorMessage":[1,"error-message"],"containerClass":[1,"container-class"]}]]]], options);
15
+ return index.bootstrapLazy([["vehicle-lookup.cjs",[[4,"vehicle-lookup",{"activeLookupIndex":[1,"active-lookup-index"],"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"onLoadingStateChanged":[16],"fetchVin":[64],"getPageContext":[64]},null,{"onLoadingStateChanged":["handleLoadingListenerPropChange"]}]]],["general-inquiry-form.cjs",[[1,"general-inquiry-form",{"isLoading":[32],"renderControl":[32]}]]],["dead-stock-lookup.cjs",[[1,"dead-stock-lookup",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalPartNumber":[32],"errorMessage":[32],"partInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}]]],["distributor-lookup.cjs",[[1,"distributor-lookup",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalPartNumber":[32],"errorMessage":[32],"partInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}]]],["manufacturer-lookup.cjs",[[1,"manufacturer-lookup",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"headerTitle":[1,"header-title"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalPartNumber":[32],"errorMessage":[32],"partInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}]]],["form-input.cjs",[[0,"form-input",{"name":[1],"label":[1],"class":[1],"isError":[4,"is-error"],"disabled":[4],"labelClass":[1,"label-class"],"errorClass":[1,"error-class"],"errorMessage":[1,"error-message"],"containerClass":[1,"container-class"]}]]],["dynamic-redeem.cjs",[[1,"dynamic-redeem",{"vin":[1],"item":[16],"canceledItems":[16],"unInvoicedByBrokerName":[1,"un-invoiced-by-broker-name"],"handleScanner":[16],"handleQrChanges":[16],"loadingStateChange":[16],"confirmServiceCancellation":[32],"confirmUnInvoicedTBPVehicles":[32],"internalVin":[32],"isOpened":[32],"internalItem":[32],"internalCanceledItem":[32],"isLoading":[32],"quite":[64],"getQrValue":[64]},null,{"isLoading":["onIsLoadingChange"],"canceledItems":["changeInternalCanceledItem"],"unInvoicedByBrokerName":["changeConfirmUnInvoicedTBPVehicles"],"vin":["changeInternalVin"],"item":["changeInternalItem"]}]]],["dynamic-claim_6.cjs",[[1,"dynamic-claim",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"isIdle":[32],"popupClasses":[32],"externalVin":[32],"activePopupIndex":[32],"vehicleInformation":[32],"errorMessage":[32],"isLoading":[32],"setMockData":[64],"setData":[64],"fetchData":[64],"completeClaim":[64]},null,{"isLoading":["onLoadingChange"],"vehicleInformation":["resetProgressBar"],"popupClasses":["windowScrollListener"]}],[1,"paint-thickness",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalVin":[32],"errorMessage":[32],"expandedImage":[32],"vehicleInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}],[1,"service-history",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalVin":[32],"errorMessage":[32],"vehicleInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}],[1,"vehicle-accessories",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalVin":[32],"errorMessage":[32],"expandedImage":[32],"vehicleInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}],[1,"vehicle-specification",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalVin":[32],"errorMessage":[32],"vehicleInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}],[1,"warranty-details",{"baseUrl":[1,"base-url"],"unauthorizedSscLookupBaseUrl":[1,"unauthorized-ssc-lookup-base-url"],"isDev":[4,"is-dev"],"showSsc":[4,"show-ssc"],"queryString":[1,"query-string"],"unauthorizedSscLookupQueryString":[1,"unauthorized-ssc-lookup-query-string"],"recaptchaKey":[1,"recaptcha-key"],"showWarranty":[4,"show-warranty"],"cityId":[1,"city-id"],"cityIntegrationId":[1,"city-integration-id"],"companyId":[1,"company-id"],"companyIntegrationId":[1,"company-integration-id"],"companyBranchId":[1,"company-branch-id"],"companyBranchIntegrationId":[1,"company-branch-integration-id"],"userId":[1,"user-id"],"brandIntegrationId":[1,"brand-integration-id"],"customerName":[1,"customer-name"],"customerPhone":[1,"customer-phone"],"customerEmail":[1,"customer-email"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalVin":[32],"errorMessage":[32],"showRecaptcha":[32],"unInvoicedByBrokerName":[32],"vehicleInformation":[32],"checkingUnauthorizedSSC":[32],"recaptchaRes":[32],"headers":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}]]]], options);
16
16
  };
17
17
 
18
18
  exports.setNonce = index.setNonce;
@@ -6,13 +6,12 @@
6
6
 
7
7
  Object.defineProperty(exports, '__esModule', { value: true });
8
8
 
9
- const index = require('./index-d4b5214c.js');
10
- const Loading = require('./Loading-ee1a2ceb.js');
9
+ const index = require('./index-97b8da6d.js');
10
+ const Loading = require('./Loading-20e4ef35.js');
11
11
  const cn = require('./cn-f559f9e5.js');
12
12
  const partInformation = require('./partInformation-07651204.js');
13
- require('./loader-baf2418b.js');
14
13
 
15
- const manufacturerLookupCss = "*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:\"\"}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}:host{all:initial!important;display:block}*{font-family:Arial}.success{color:green}.warning{color:orange}.reject{color:red}.static{position:static}.relative{position:relative}.mx-auto{margin-left:auto;margin-right:auto}.mt-\\[12px\\]{margin-top:12px}.flex{display:flex}.h-\\[40px\\]{height:40px}.max-h-\\[70dvh\\]{max-height:70dvh}.min-h-\\[100px\\]{min-height:100px}.w-fit{width:fit-content}.w-full{width:100%}.shrink-0{flex-shrink:0}.scale-0{--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.overflow-hidden{overflow:hidden}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[8px\\]{border-radius:8px}.border{border-width:1px}.border-\\[\\#d6d8dc\\]{--tw-border-opacity:1;border-color:rgb(214 216 220/var(--tw-border-opacity,1))}.bg-\\[\\#e1e3e5\\]{--tw-bg-opacity:1;background-color:rgb(225 227 229/var(--tw-bg-opacity,1))}.px-\\[16px\\]{padding-left:16px;padding-right:16px}.py-\\[16px\\]{padding-bottom:16px;padding-top:16px}.py-\\[8px\\]{padding-bottom:8px;padding-top:8px}.text-center{text-align:center}.text-\\[18px\\]{font-size:18px}.text-\\[20px\\]{font-size:20px}.text-\\[\\#383c43\\]{--tw-text-opacity:1;color:rgb(56 60 67/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.reject-card{background-color:#f7d7d8;border-color:#f2aeb5;color:#58151c}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.z-50{z-index:50}.size-\\[40px\\]{height:40px;width:40px}.size-full{height:100%;width:100%}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin-2s{animation:spin 2s linear infinite}.duration-100{transition-duration:.1s}";
14
+ const manufacturerLookupCss = "*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:\"\"}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}:host{all:initial!important;display:block}*{font-family:Arial}.static{position:static}.relative{position:relative}.mx-auto{margin-left:auto;margin-right:auto}.mt-\\[12px\\]{margin-top:12px}.flex{display:flex}.h-\\[40px\\]{height:40px}.max-h-\\[70dvh\\]{max-height:70dvh}.min-h-\\[100px\\]{min-height:100px}.w-fit{width:fit-content}.w-full{width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.scale-0{--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-\\[15px\\]{gap:15px}.gap-\\[50px\\]{gap:50px}.overflow-hidden{overflow:hidden}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[8px\\]{border-radius:8px}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-\\[\\#d6d8dc\\]{--tw-border-opacity:1;border-color:rgb(214 216 220/var(--tw-border-opacity,1))}.border-b-\\[grey\\]{--tw-border-opacity:1;border-bottom-color:rgb(128 128 128/var(--tw-border-opacity,1))}.bg-\\[\\#e1e3e5\\]{--tw-bg-opacity:1;background-color:rgb(225 227 229/var(--tw-bg-opacity,1))}.px-\\[16px\\]{padding-left:16px;padding-right:16px}.px-\\[30px\\]{padding-left:30px;padding-right:30px}.py-\\[10px\\]{padding-bottom:10px;padding-top:10px}.py-\\[16px\\]{padding-bottom:16px;padding-top:16px}.py-\\[8px\\]{padding-bottom:8px;padding-top:8px}.text-center{text-align:center}.text-\\[18px\\]{font-size:18px}.text-\\[20px\\]{font-size:20px}.text-\\[\\#383c43\\]{--tw-text-opacity:1;color:rgb(56 60 67/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.reject-card{background-color:#f7d7d8;border-color:#f2aeb5;color:#58151c}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.z-50{z-index:50}.size-\\[40px\\]{height:40px;width:40px}.size-full{height:100%;width:100%}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin-2s{animation:spin 2s linear infinite}.duration-100{transition-duration:.1s}";
16
15
  const ManufacturerLookupStyle0 = manufacturerLookupCss;
17
16
 
18
17
  let mockData = {};
@@ -44,7 +43,6 @@ const ManufacturerLookup = class {
44
43
  this.externalPartNumber = partNumber;
45
44
  try {
46
45
  if (!partNumber || partNumber.trim().length === 0) {
47
- //this.componentHeight = '0px';
48
46
  this.state = 'idle';
49
47
  return;
50
48
  }
@@ -77,19 +75,7 @@ const ManufacturerLookup = class {
77
75
  async fetchData(partNumber = this.externalPartNumber, headers = {}) {
78
76
  await this.setData(partNumber, headers);
79
77
  }
80
- //calculateHeight(componentState: string) {
81
- // if (componentState.includes('loading') && this.componentHeight === '0px') {
82
- // this.componentHeight = '100px';
83
- // } else if (componentState !== 'idle') {
84
- // setTimeout(() => {
85
- // this.componentHeight = `${this.wrapperRef.clientHeight}px`;
86
- // }, 50);
87
- // } else {
88
- // this.componentHeight = '0px';
89
- // }
90
- //}
91
78
  async loadingListener() {
92
- //this.calculateHeight(newState);
93
79
  if (this.loadingStateChange)
94
80
  this.loadingStateChange(this.state.includes('loading'));
95
81
  }
@@ -97,7 +83,7 @@ const ManufacturerLookup = class {
97
83
  mockData = newMockData;
98
84
  }
99
85
  render() {
100
- return (index.h(index.Host, { key: 'cfd90dcfbe3be613c1badcf79c09923f79a2eea6' }, index.h("div", { key: '1c6930673bcf7b50e9937ddc8f42e54c2b473ca2', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, index.h("div", { key: 'ed2db39446481defe0ac1f162a4c5346dee315fa' }, index.h(Loading.Loading, { key: '5972c7d753a7555bba05c82deea9f887629ab720', isLoading: this.state.includes('loading') }), index.h("div", { key: 'd5de561df856b0fb26e6ca0145160c96a9790847', class: cn.cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, ['error', 'error-loading'].includes(this.state) && (index.h("div", { key: '9422a2aa8e63cb09d68eaf57ad4c9981ec2a1085', class: "py-[16px]" }, index.h("div", { key: '59a4815a98f4a01518f2b4750a6c4c627f9bf0ae', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (index.h("div", { key: '3f980055e6a3ae355360997d7a014eaf7afca5d4' }, index.h("div", { key: 'e0e30bffb51cd26076420f2719dc0a498404efcd', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, index.h("div", { key: 'ddeb24dd0779a8861c229b0f722debe000cc034c', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, this.headerTitle), index.h("div", { key: 'c1de3e307ed2d6cf2eb33cc477b4e17c6651c0ab', style: { padding: '10px 30px', display: 'flex', flexDirection: 'column', gap: '15px' } }, index.h("div", { key: 'a3e83b3ac55b1759819e8065b5eaede1a7001b44', style: { display: 'flex', gap: '50px' } }, index.h("div", { key: 'a4b1da95397584c6081673df484e7851647aa4fa', style: { display: 'flex', flexDirection: 'column', 'flex': '1' } }, index.h("strong", { key: 'c61412662fd8c418825d1e7cdbcabb08c2c207ec', style: { padding: '10px 0', borderBottom: '1px solid grey', } }, "Description"), index.h("div", { key: 'dcd926214097661e86c8dad9a323f7d68ef30b0b', style: { padding: '10px 0px' } }, this.partInformation.tmcPart.partDescription)), index.h("div", { key: '0f5bdf2566698de09e1eeaacad4c7dcff4146022', style: { display: 'flex', flexDirection: 'column', 'flex': '1' } }, index.h("strong", { key: 'fb4e8ef5bd79548dc31e79792d32b55b090513f1', style: { padding: '10px 0', borderBottom: '1px solid grey', } }, "Product Group"), index.h("div", { key: 'b2e31ce6014013cda2abb9c2f4ef823c493da4c2', style: { padding: '10px 0px' } }, this.partInformation.tmcPart.group)), index.h("div", { key: '75215d7f9a18f7fea6528d11e118fc1dbb50e3b8', style: { display: 'flex', flexDirection: 'column', 'flex': '1' } })))))))))));
86
+ return (index.h(index.Host, { key: '2796ee666656f17a5f8003e3aef0eccc375f9a1e' }, index.h("div", { key: 'ffc13581fe7c55099237df50eb59dcff361cd309', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, index.h("div", { key: 'bdd73d42532770c55ba77ea2f36ee050188682fd' }, index.h(Loading.Loading, { key: '0ed5c3a8a69d7b598ab2e8748884de8383b1a2a6', isLoading: this.state.includes('loading') }), index.h("div", { key: '2262bcf4726e9ceaea6c99135fd7cf20c4512bed', class: cn.cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, ['error', 'error-loading'].includes(this.state) && (index.h("div", { key: 'ccfcf127f404ecc6013f80d22ec90aadfb4a49e4', class: "py-[16px]" }, index.h("div", { key: 'e207d4ddb4cc91175bb6e82ea1604f8a1e5f740b', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (index.h("div", { key: '1af79d581ecd24f5cb02d347640d60320a72e322' }, index.h("div", { key: '47d2f26bb14a60837aea54d5cb4b5524e4bd7f7c', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, index.h("div", { key: '576cfd6e3dd323a2f1504ad794314b5f4bc36bf6', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, this.headerTitle), index.h("div", { key: 'ab4b39b5f189604a00610717c12b64f7c9376785', class: "px-[30px] py-[10px] flex flex-col gap-[15px]" }, index.h("div", { key: 'd8663ed569051635bd5c6e661acaca67effe01a4', class: "flex gap-[50px]" }, index.h("div", { key: '3daf1a7ea0ce5650dc0fccacc24073546b5cba0f', class: "flex flex-col flex-1" }, index.h("strong", { key: '3d3c0920eb5b6fc0be35e30b567a5c4809054676', class: "py-[10px] border-b border-b-[grey]" }, "Description"), index.h("div", { key: 'fec76ebc8d7bd61e96236ad81ee2cb6a181d43bf', class: "py-[10px]" }, this.partInformation.tmcPart.partDescription)), index.h("div", { key: '9c65eeb1afe501d20b3c74b24f3cfe11f0cccc4a', class: "flex flex-col flex-1" }, index.h("strong", { key: 'adf74255acbc1437a291b4782e00c977a9fb4a50', class: "py-[10px] border-b border-b-[grey]" }, "Product Group"), index.h("div", { key: 'b98db7431c781d3bdf122b5b4b89eed1b8af8d3e', class: "py-[10px]" }, this.partInformation.tmcPart.group)), index.h("div", { key: '5c1ccd95bfeb9ce0963c27a509bdef054a538e8e', class: "flex-1" })))))))))));
101
87
  }
102
88
  get el() { return index.getElement(this); }
103
89
  static get watchers() { return {