adp-web-components 0.0.13 → 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.
- package/dist/cjs/{loader-baf2418b.js → Loading-20e4ef35.js} +9 -0
- package/dist/cjs/dead-stock-lookup.cjs.entry.js +3 -4
- package/dist/cjs/distributor-lookup.cjs.entry.js +3 -4
- package/dist/cjs/dynamic-claim_6.cjs.entry.js +1046 -0
- package/dist/cjs/dynamic-redeem.cjs.entry.js +5 -5
- package/dist/cjs/form-input.cjs.entry.js +2 -2
- package/dist/cjs/general-inquiry-form.cjs.entry.js +2 -2
- package/dist/cjs/{index-d4b5214c.js → index-97b8da6d.js} +289 -8
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/manufacturer-lookup.cjs.entry.js +3 -4
- package/dist/cjs/shift-components.cjs.js +2 -2
- package/dist/cjs/vehicle-lookup.cjs.entry.js +133 -0
- package/dist/collection/collection-manifest.json +6 -5
- package/dist/collection/components/dynamic-claim/dynamic-claim.css +1 -1
- package/dist/collection/components/dynamic-claim/dynamic-claim.js +2 -2
- package/dist/collection/components/dynamic-redeem/dynamic-redeem.css +1 -1
- package/dist/collection/components/dynamic-redeem/dynamic-redeem.js +3 -3
- package/dist/collection/components/form-input/form-input.js +1 -1
- package/dist/collection/components/general-inquiry-form/general-inquiry-form.js +1 -1
- package/dist/collection/components/paint-thickness/paint-thickness.css +1 -1
- package/dist/collection/components/paint-thickness/paint-thickness.js +3 -3
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +1 -1
- package/dist/collection/components/part-lookup/distributor-lookup.js +1 -1
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +1 -1
- package/dist/collection/components/service-history/service-history.css +1 -1
- package/dist/collection/components/service-history/service-history.js +1 -1
- package/dist/collection/components/vehicle-accessories/vehicle-accessories.css +1 -1
- package/dist/collection/components/vehicle-accessories/vehicle-accessories.js +3 -3
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -0
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +244 -0
- package/dist/collection/components/vehicle-specification/vehicle-specification.css +1 -1
- package/dist/collection/components/vehicle-specification/vehicle-specification.js +1 -1
- package/dist/collection/components/warranty-details/warranty-details.css +1 -1
- package/dist/collection/components/warranty-details/warranty-details.js +1 -1
- package/dist/collection/global/lib/validate-vin.js +62 -0
- package/dist/components/dead-stock-lookup.js +1 -1
- package/dist/components/distributor-lookup.js +1 -1
- package/dist/components/dynamic-claim.js +1 -1
- package/dist/components/dynamic-redeem.js +1 -1
- package/dist/components/form-input.js +1 -1
- package/dist/components/general-inquiry-form.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/manufacturer-lookup.js +1 -1
- package/dist/components/p-05871c28.js +5 -0
- package/dist/components/p-23551e81.js +5 -0
- package/dist/components/p-325b6857.js +5 -0
- package/dist/components/{p-50f73226.js → p-3bf0339d.js} +1 -1
- package/dist/components/p-514c4736.js +5 -0
- package/dist/components/{p-2b0cc0c6.js → p-8385e385.js} +1 -1
- package/dist/components/p-be0a5ab5.js +5 -0
- package/dist/components/p-c8eef708.js +5 -0
- package/dist/components/p-da533bd7.js +5 -0
- package/dist/components/p-e46b126e.js +5 -0
- package/dist/components/p-f1ffc23d.js +5 -0
- package/dist/components/paint-thickness.js +1 -1
- package/dist/components/service-history.js +1 -1
- package/dist/components/vehicle-accessories.js +1 -1
- package/dist/components/vehicle-lookup.d.ts +11 -0
- package/dist/components/vehicle-lookup.js +5 -0
- package/dist/components/vehicle-specification.js +1 -1
- package/dist/components/warranty-details.js +1 -1
- package/dist/esm/{loader-027b88af.js → Loading-d050617c.js} +9 -1
- package/dist/esm/dead-stock-lookup.entry.js +3 -4
- package/dist/esm/distributor-lookup.entry.js +3 -4
- package/dist/esm/dynamic-claim_6.entry.js +1037 -0
- package/dist/esm/dynamic-redeem.entry.js +5 -5
- package/dist/esm/form-input.entry.js +2 -2
- package/dist/esm/general-inquiry-form.entry.js +2 -2
- package/dist/esm/{index-ef54644b.js → index-ff1dab22.js} +289 -8
- package/dist/esm/loader.js +3 -3
- package/dist/esm/manufacturer-lookup.entry.js +3 -4
- package/dist/esm/shift-components.js +3 -3
- package/dist/esm/vehicle-lookup.entry.js +129 -0
- package/dist/shift-components/{p-894e7518.entry.js → p-15e82b1a.entry.js} +1 -1
- package/dist/shift-components/p-1a727cfd.entry.js +5 -0
- package/dist/shift-components/p-2bb4415e.entry.js +5 -0
- package/dist/shift-components/p-3f3b41b4.entry.js +5 -0
- package/dist/shift-components/{p-8e818568.entry.js → p-4c3f2850.entry.js} +1 -1
- package/dist/shift-components/p-4ca95c3d.entry.js +5 -0
- package/dist/shift-components/p-65939a2f.js +5 -0
- package/dist/shift-components/p-8b198a04.entry.js +5 -0
- package/dist/shift-components/p-d577db71.entry.js +5 -0
- package/dist/shift-components/p-f37b60d5.js +6 -0
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +23 -0
- package/dist/types/components.d.ts +37 -0
- package/dist/types/global/lib/validate-vin.d.ts +1 -0
- package/package.json +1 -1
- package/readme.md +2 -91
- package/dist/cjs/Loading-ee1a2ceb.js +0 -16
- package/dist/cjs/dynamic-claim.cjs.entry.js +0 -306
- package/dist/cjs/image-expansion-a9c9c6f7.js +0 -77
- package/dist/cjs/paint-thickness.cjs.entry.js +0 -118
- package/dist/cjs/service-history.cjs.entry.js +0 -103
- package/dist/cjs/vehicle-accessories.cjs.entry.js +0 -122
- package/dist/cjs/vehicle-specification.cjs.entry.js +0 -98
- package/dist/cjs/vehicleInformation-35c470fc.js +0 -52
- package/dist/cjs/warranty-details.cjs.entry.js +0 -257
- package/dist/components/p-4dc47f5f.js +0 -5
- package/dist/components/p-8375923d.js +0 -5
- package/dist/components/p-a454210b.js +0 -5
- package/dist/esm/Loading-61648252.js +0 -14
- package/dist/esm/dynamic-claim.entry.js +0 -302
- package/dist/esm/image-expansion-08c4bf0d.js +0 -73
- package/dist/esm/paint-thickness.entry.js +0 -114
- package/dist/esm/service-history.entry.js +0 -99
- package/dist/esm/vehicle-accessories.entry.js +0 -118
- package/dist/esm/vehicle-specification.entry.js +0 -94
- package/dist/esm/vehicleInformation-f7290628.js +0 -50
- package/dist/esm/warranty-details.entry.js +0 -253
- package/dist/shift-components/p-65e6ab8e.js +0 -5
- package/dist/shift-components/p-6b21ce2d.entry.js +0 -5
- package/dist/shift-components/p-7d85e912.entry.js +0 -5
- package/dist/shift-components/p-7f258017.entry.js +0 -5
- package/dist/shift-components/p-9653e992.entry.js +0 -5
- package/dist/shift-components/p-a21e2e2e.js +0 -5
- package/dist/shift-components/p-c4fad245.js +0 -5
- package/dist/shift-components/p-ca1e2e5b.entry.js +0 -5
- package/dist/shift-components/p-d1b9cd93.entry.js +0 -5
- package/dist/shift-components/p-d5ff7544.js +0 -5
- package/dist/shift-components/p-d6f40c8d.entry.js +0 -5
- package/dist/shift-components/p-e05acce1.entry.js +0 -5
- package/dist/shift-components/p-e97316d2.js +0 -6
- package/dist/shift-components/p-faa8070a.entry.js +0 -5
- 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:
|
|
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
|
|
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) => {
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
|
-
const index = require('./index-
|
|
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([["
|
|
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,11 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
|
-
const index = require('./index-
|
|
10
|
-
const Loading = require('./Loading-
|
|
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
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;
|
|
@@ -84,7 +83,7 @@ const ManufacturerLookup = class {
|
|
|
84
83
|
mockData = newMockData;
|
|
85
84
|
}
|
|
86
85
|
render() {
|
|
87
|
-
return (index.h(index.Host, { key: '
|
|
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" })))))))))));
|
|
88
87
|
}
|
|
89
88
|
get el() { return index.getElement(this); }
|
|
90
89
|
static get watchers() { return {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
|
-
const index = require('./index-
|
|
9
|
+
const index = require('./index-97b8da6d.js');
|
|
10
10
|
const appGlobals = require('./app-globals-3813fb46.js');
|
|
11
11
|
|
|
12
12
|
/*
|
|
@@ -23,7 +23,7 @@ var patchBrowser = () => {
|
|
|
23
23
|
|
|
24
24
|
patchBrowser().then(async (options) => {
|
|
25
25
|
await appGlobals.globalScripts();
|
|
26
|
-
return index.bootstrapLazy([["
|
|
26
|
+
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);
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
exports.setNonce = index.setNonce;
|