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.
- package/dist/cjs/{loader-baf2418b.js → Loading-20e4ef35.js} +9 -0
- package/dist/cjs/dead-stock-lookup.cjs.entry.js +24 -13
- package/dist/cjs/distributor-lookup.cjs.entry.js +27 -18
- 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 +4 -18
- 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 -16
- package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -1
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +34 -23
- package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
- package/dist/collection/components/part-lookup/distributor-lookup.js +24 -14
- package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -1
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +1 -14
- package/dist/collection/components/service-history/service-history.css +1 -1
- package/dist/collection/components/service-history/service-history.js +1 -14
- package/dist/collection/components/vehicle-accessories/vehicle-accessories.css +1 -1
- package/dist/collection/components/vehicle-accessories/vehicle-accessories.js +3 -16
- 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 -14
- package/dist/collection/components/warranty-details/warranty-details.css +1 -1
- package/dist/collection/components/warranty-details/warranty-details.js +7 -34
- package/dist/collection/global/lib/validate-vin.js +62 -0
- package/dist/collection/templates/vehicle-lookup.js +163 -96
- 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 +24 -13
- package/dist/esm/distributor-lookup.entry.js +27 -18
- 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 +4 -18
- 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/part-lookup/dead-stock-lookup.d.ts +2 -3
- package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +23 -0
- package/dist/types/components/warranty-details/warranty-details.d.ts +1 -2
- 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 -131
- package/dist/cjs/service-history.cjs.entry.js +0 -116
- package/dist/cjs/vehicle-accessories.cjs.entry.js +0 -135
- package/dist/cjs/vehicle-specification.cjs.entry.js +0 -111
- package/dist/cjs/vehicleInformation-35c470fc.js +0 -52
- package/dist/cjs/warranty-details.cjs.entry.js +0 -281
- 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 -127
- package/dist/esm/service-history.entry.js +0 -112
- package/dist/esm/vehicle-accessories.entry.js +0 -131
- package/dist/esm/vehicle-specification.entry.js +0 -107
- package/dist/esm/vehicleInformation-f7290628.js +0 -50
- package/dist/esm/warranty-details.entry.js +0 -277
- package/dist/shift-components/p-2e3e8e97.entry.js +0 -5
- package/dist/shift-components/p-3bfafc40.entry.js +0 -5
- package/dist/shift-components/p-65e6ab8e.js +0 -5
- package/dist/shift-components/p-75ea0e53.entry.js +0 -5
- package/dist/shift-components/p-91eff216.entry.js +0 -5
- package/dist/shift-components/p-a21e2e2e.js +0 -5
- package/dist/shift-components/p-c274f4ba.entry.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-d5ff7544.js +0 -5
- package/dist/shift-components/p-e97316d2.js +0 -6
- package/dist/shift-components/p-ec9302fb.entry.js +0 -5
- package/dist/shift-components/p-f21722ce.entry.js +0 -5
- package/dist/shift-components/p-f95c7501.entry.js +0 -5
- package/dist/shift-components/p-feb3df85.entry.js +0 -5
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
5
|
const NAMESPACE = 'shift-components';
|
|
6
|
-
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:
|
|
6
|
+
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 };
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
9
|
Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
@@ -207,6 +207,7 @@ var uniqueTime = (key, measureText) => {
|
|
|
207
207
|
var h = (nodeName, vnodeData, ...children) => {
|
|
208
208
|
let child = null;
|
|
209
209
|
let key = null;
|
|
210
|
+
let slotName = null;
|
|
210
211
|
let simple = false;
|
|
211
212
|
let lastSimple = false;
|
|
212
213
|
const vNodeChildren = [];
|
|
@@ -233,6 +234,9 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
233
234
|
if (vnodeData.key) {
|
|
234
235
|
key = vnodeData.key;
|
|
235
236
|
}
|
|
237
|
+
if (vnodeData.name) {
|
|
238
|
+
slotName = vnodeData.name;
|
|
239
|
+
}
|
|
236
240
|
{
|
|
237
241
|
const classData = vnodeData.className || vnodeData.class;
|
|
238
242
|
if (classData) {
|
|
@@ -255,6 +259,9 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
255
259
|
{
|
|
256
260
|
vnode.$key$ = key;
|
|
257
261
|
}
|
|
262
|
+
{
|
|
263
|
+
vnode.$name$ = slotName;
|
|
264
|
+
}
|
|
258
265
|
return vnode;
|
|
259
266
|
};
|
|
260
267
|
var newVNode = (tag, text) => {
|
|
@@ -271,6 +278,9 @@ var newVNode = (tag, text) => {
|
|
|
271
278
|
{
|
|
272
279
|
vnode.$key$ = null;
|
|
273
280
|
}
|
|
281
|
+
{
|
|
282
|
+
vnode.$name$ = null;
|
|
283
|
+
}
|
|
274
284
|
return vnode;
|
|
275
285
|
};
|
|
276
286
|
var Host = {};
|
|
@@ -561,16 +571,41 @@ function sortedAttrNames(attrNames) {
|
|
|
561
571
|
|
|
562
572
|
// src/runtime/vdom/vdom-render.ts
|
|
563
573
|
var scopeId;
|
|
574
|
+
var contentRef;
|
|
564
575
|
var hostTagName;
|
|
565
576
|
var useNativeShadowDom = false;
|
|
577
|
+
var checkSlotFallbackVisibility = false;
|
|
578
|
+
var checkSlotRelocate = false;
|
|
566
579
|
var isSvgMode = false;
|
|
567
580
|
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
581
|
+
var _a;
|
|
568
582
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
569
583
|
let i2 = 0;
|
|
570
584
|
let elm;
|
|
571
585
|
let childNode;
|
|
586
|
+
let oldVNode;
|
|
587
|
+
if (!useNativeShadowDom) {
|
|
588
|
+
checkSlotRelocate = true;
|
|
589
|
+
if (newVNode2.$tag$ === "slot") {
|
|
590
|
+
if (scopeId) {
|
|
591
|
+
parentElm.classList.add(scopeId + "-s");
|
|
592
|
+
}
|
|
593
|
+
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
|
594
|
+
// slot element has fallback content
|
|
595
|
+
// still create an element that "mocks" the slot element
|
|
596
|
+
2 /* isSlotFallback */
|
|
597
|
+
) : (
|
|
598
|
+
// slot element does not have fallback content
|
|
599
|
+
// create an html comment we'll use to always reference
|
|
600
|
+
// where actual slot content should sit next to
|
|
601
|
+
1 /* isSlotReference */
|
|
602
|
+
);
|
|
603
|
+
}
|
|
604
|
+
}
|
|
572
605
|
if (newVNode2.$text$ !== null) {
|
|
573
606
|
elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
|
|
607
|
+
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
608
|
+
elm = newVNode2.$elm$ = doc.createTextNode("");
|
|
574
609
|
} else {
|
|
575
610
|
if (!isSvgMode) {
|
|
576
611
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
@@ -592,7 +627,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
592
627
|
}
|
|
593
628
|
if (newVNode2.$children$) {
|
|
594
629
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
595
|
-
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
630
|
+
childNode = createElm(oldParentVNode, newVNode2, i2, elm);
|
|
596
631
|
if (childNode) {
|
|
597
632
|
elm.appendChild(childNode);
|
|
598
633
|
}
|
|
@@ -607,20 +642,60 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
607
642
|
}
|
|
608
643
|
}
|
|
609
644
|
elm["s-hn"] = hostTagName;
|
|
645
|
+
{
|
|
646
|
+
if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
647
|
+
elm["s-sr"] = true;
|
|
648
|
+
elm["s-cr"] = contentRef;
|
|
649
|
+
elm["s-sn"] = newVNode2.$name$ || "";
|
|
650
|
+
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
651
|
+
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
652
|
+
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
653
|
+
{
|
|
654
|
+
putBackInOriginalLocation(oldParentVNode.$elm$, false);
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
}
|
|
610
659
|
return elm;
|
|
611
660
|
};
|
|
661
|
+
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
662
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
663
|
+
const oldSlotChildNodes = Array.from(parentElm.childNodes);
|
|
664
|
+
if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
|
|
665
|
+
let node = parentElm;
|
|
666
|
+
while (node = node.nextSibling) {
|
|
667
|
+
if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
|
|
668
|
+
oldSlotChildNodes.push(node);
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
673
|
+
const childNode = oldSlotChildNodes[i2];
|
|
674
|
+
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
675
|
+
insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
|
|
676
|
+
childNode["s-ol"].remove();
|
|
677
|
+
childNode["s-ol"] = void 0;
|
|
678
|
+
childNode["s-sh"] = void 0;
|
|
679
|
+
checkSlotRelocate = true;
|
|
680
|
+
}
|
|
681
|
+
if (recursive) {
|
|
682
|
+
putBackInOriginalLocation(childNode, recursive);
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
686
|
+
};
|
|
612
687
|
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
613
|
-
let containerElm = parentElm;
|
|
688
|
+
let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
614
689
|
let childNode;
|
|
615
690
|
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
616
691
|
containerElm = containerElm.shadowRoot;
|
|
617
692
|
}
|
|
618
693
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
619
694
|
if (vnodes[startIdx]) {
|
|
620
|
-
childNode = createElm(null, parentVNode, startIdx);
|
|
695
|
+
childNode = createElm(null, parentVNode, startIdx, parentElm);
|
|
621
696
|
if (childNode) {
|
|
622
697
|
vnodes[startIdx].$elm$ = childNode;
|
|
623
|
-
insertBefore(containerElm, childNode, before);
|
|
698
|
+
insertBefore(containerElm, childNode, referenceNode(before) );
|
|
624
699
|
}
|
|
625
700
|
}
|
|
626
701
|
}
|
|
@@ -632,6 +707,14 @@ var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
|
632
707
|
const elm = vnode.$elm$;
|
|
633
708
|
nullifyVNodeRefs(vnode);
|
|
634
709
|
if (elm) {
|
|
710
|
+
{
|
|
711
|
+
checkSlotFallbackVisibility = true;
|
|
712
|
+
if (elm["s-ol"]) {
|
|
713
|
+
elm["s-ol"].remove();
|
|
714
|
+
} else {
|
|
715
|
+
putBackInOriginalLocation(elm, true);
|
|
716
|
+
}
|
|
717
|
+
}
|
|
635
718
|
elm.remove();
|
|
636
719
|
}
|
|
637
720
|
}
|
|
@@ -668,11 +751,17 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
668
751
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
669
752
|
newEndVnode = newCh[--newEndIdx];
|
|
670
753
|
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
754
|
+
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
755
|
+
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
756
|
+
}
|
|
671
757
|
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
672
758
|
insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
673
759
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
674
760
|
newEndVnode = newCh[--newEndIdx];
|
|
675
761
|
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
762
|
+
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
763
|
+
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
764
|
+
}
|
|
676
765
|
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
677
766
|
insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
678
767
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
@@ -690,7 +779,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
690
779
|
if (idxInOld >= 0) {
|
|
691
780
|
elmToMove = oldCh[idxInOld];
|
|
692
781
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
693
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
782
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
|
|
694
783
|
} else {
|
|
695
784
|
patch(elmToMove, newStartVnode, isInitialRender);
|
|
696
785
|
oldCh[idxInOld] = void 0;
|
|
@@ -698,12 +787,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
698
787
|
}
|
|
699
788
|
newStartVnode = newCh[++newStartIdx];
|
|
700
789
|
} else {
|
|
701
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
790
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
|
|
702
791
|
newStartVnode = newCh[++newStartIdx];
|
|
703
792
|
}
|
|
704
793
|
if (node) {
|
|
705
794
|
{
|
|
706
|
-
insertBefore(oldStartVnode.$elm
|
|
795
|
+
insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
|
|
707
796
|
}
|
|
708
797
|
}
|
|
709
798
|
}
|
|
@@ -723,6 +812,18 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
723
812
|
};
|
|
724
813
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
725
814
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
815
|
+
if (leftVNode.$tag$ === "slot") {
|
|
816
|
+
if (
|
|
817
|
+
// The component gets hydrated and no VDOM has been initialized.
|
|
818
|
+
// Here the comparison can't happen as $name$ property is not set for `leftNode`.
|
|
819
|
+
"$nodeId$" in leftVNode && isInitialRender && // `leftNode` is not from type HTMLComment which would cause many
|
|
820
|
+
// hydration comments to be removed
|
|
821
|
+
leftVNode.$elm$.nodeType !== 8
|
|
822
|
+
) {
|
|
823
|
+
return false;
|
|
824
|
+
}
|
|
825
|
+
return leftVNode.$name$ === rightVNode.$name$;
|
|
826
|
+
}
|
|
726
827
|
if (!isInitialRender) {
|
|
727
828
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
728
829
|
}
|
|
@@ -730,12 +831,17 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
730
831
|
}
|
|
731
832
|
return false;
|
|
732
833
|
};
|
|
834
|
+
var referenceNode = (node) => {
|
|
835
|
+
return node && node["s-ol"] || node;
|
|
836
|
+
};
|
|
837
|
+
var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
|
|
733
838
|
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
734
839
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
735
840
|
const oldChildren = oldVNode.$children$;
|
|
736
841
|
const newChildren = newVNode2.$children$;
|
|
737
842
|
const tag = newVNode2.$tag$;
|
|
738
843
|
const text = newVNode2.$text$;
|
|
844
|
+
let defaultHolder;
|
|
739
845
|
if (text === null) {
|
|
740
846
|
{
|
|
741
847
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
@@ -761,10 +867,103 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
761
867
|
if (isSvgMode && tag === "svg") {
|
|
762
868
|
isSvgMode = false;
|
|
763
869
|
}
|
|
870
|
+
} else if ((defaultHolder = elm["s-cr"])) {
|
|
871
|
+
defaultHolder.parentNode.textContent = text;
|
|
764
872
|
} else if (oldVNode.$text$ !== text) {
|
|
765
873
|
elm.data = text;
|
|
766
874
|
}
|
|
767
875
|
};
|
|
876
|
+
var updateFallbackSlotVisibility = (elm) => {
|
|
877
|
+
const childNodes = elm.childNodes;
|
|
878
|
+
for (const childNode of childNodes) {
|
|
879
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
880
|
+
if (childNode["s-sr"]) {
|
|
881
|
+
const slotName = childNode["s-sn"];
|
|
882
|
+
childNode.hidden = false;
|
|
883
|
+
for (const siblingNode of childNodes) {
|
|
884
|
+
if (siblingNode !== childNode) {
|
|
885
|
+
if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
|
|
886
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
|
|
887
|
+
childNode.hidden = true;
|
|
888
|
+
break;
|
|
889
|
+
}
|
|
890
|
+
} else {
|
|
891
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
|
|
892
|
+
childNode.hidden = true;
|
|
893
|
+
break;
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
updateFallbackSlotVisibility(childNode);
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
};
|
|
903
|
+
var relocateNodes = [];
|
|
904
|
+
var markSlotContentForRelocation = (elm) => {
|
|
905
|
+
let node;
|
|
906
|
+
let hostContentNodes;
|
|
907
|
+
let j;
|
|
908
|
+
for (const childNode of elm.childNodes) {
|
|
909
|
+
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
910
|
+
hostContentNodes = node.parentNode.childNodes;
|
|
911
|
+
const slotName = childNode["s-sn"];
|
|
912
|
+
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
913
|
+
node = hostContentNodes[j];
|
|
914
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!BUILD.experimentalSlotFixes )) {
|
|
915
|
+
if (isNodeLocatedInSlot(node, slotName)) {
|
|
916
|
+
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
917
|
+
checkSlotFallbackVisibility = true;
|
|
918
|
+
node["s-sn"] = node["s-sn"] || slotName;
|
|
919
|
+
if (relocateNodeData) {
|
|
920
|
+
relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
|
|
921
|
+
relocateNodeData.$slotRefNode$ = childNode;
|
|
922
|
+
} else {
|
|
923
|
+
node["s-sh"] = childNode["s-hn"];
|
|
924
|
+
relocateNodes.push({
|
|
925
|
+
$slotRefNode$: childNode,
|
|
926
|
+
$nodeToRelocate$: node
|
|
927
|
+
});
|
|
928
|
+
}
|
|
929
|
+
if (node["s-sr"]) {
|
|
930
|
+
relocateNodes.map((relocateNode) => {
|
|
931
|
+
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
|
|
932
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
933
|
+
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
934
|
+
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
});
|
|
938
|
+
}
|
|
939
|
+
} else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
940
|
+
relocateNodes.push({
|
|
941
|
+
$nodeToRelocate$: node
|
|
942
|
+
});
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
948
|
+
markSlotContentForRelocation(childNode);
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
};
|
|
952
|
+
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
953
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
954
|
+
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
955
|
+
return true;
|
|
956
|
+
}
|
|
957
|
+
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
958
|
+
return true;
|
|
959
|
+
}
|
|
960
|
+
return false;
|
|
961
|
+
}
|
|
962
|
+
if (nodeToRelocate["s-sn"] === slotName) {
|
|
963
|
+
return true;
|
|
964
|
+
}
|
|
965
|
+
return slotName === "";
|
|
966
|
+
};
|
|
768
967
|
var nullifyVNodeRefs = (vNode) => {
|
|
769
968
|
{
|
|
770
969
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
@@ -776,6 +975,7 @@ var insertBefore = (parent, newNode, reference) => {
|
|
|
776
975
|
return inserted;
|
|
777
976
|
};
|
|
778
977
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
978
|
+
var _a, _b, _c, _d;
|
|
779
979
|
const hostElm = hostRef.$hostElement$;
|
|
780
980
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
781
981
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
@@ -796,7 +996,75 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
796
996
|
scopeId = hostElm["s-sc"];
|
|
797
997
|
}
|
|
798
998
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
999
|
+
{
|
|
1000
|
+
contentRef = hostElm["s-cr"];
|
|
1001
|
+
checkSlotFallbackVisibility = false;
|
|
1002
|
+
}
|
|
799
1003
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
1004
|
+
{
|
|
1005
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1006
|
+
if (checkSlotRelocate) {
|
|
1007
|
+
markSlotContentForRelocation(rootVnode.$elm$);
|
|
1008
|
+
for (const relocateData of relocateNodes) {
|
|
1009
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1010
|
+
if (!nodeToRelocate["s-ol"]) {
|
|
1011
|
+
const orgLocationNode = doc.createTextNode("");
|
|
1012
|
+
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
1013
|
+
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
for (const relocateData of relocateNodes) {
|
|
1017
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1018
|
+
const slotRefNode = relocateData.$slotRefNode$;
|
|
1019
|
+
if (slotRefNode) {
|
|
1020
|
+
const parentNodeRef = slotRefNode.parentNode;
|
|
1021
|
+
let insertBeforeNode = slotRefNode.nextSibling;
|
|
1022
|
+
{
|
|
1023
|
+
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
|
1024
|
+
while (orgLocationNode) {
|
|
1025
|
+
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
|
1026
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
|
|
1027
|
+
refNode = refNode.nextSibling;
|
|
1028
|
+
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
1029
|
+
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
1030
|
+
}
|
|
1031
|
+
if (!refNode || !refNode["s-nr"]) {
|
|
1032
|
+
insertBeforeNode = refNode;
|
|
1033
|
+
break;
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
orgLocationNode = orgLocationNode.previousSibling;
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
1040
|
+
if (nodeToRelocate !== insertBeforeNode) {
|
|
1041
|
+
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
|
1042
|
+
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
|
1043
|
+
}
|
|
1044
|
+
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
1045
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1046
|
+
nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](nodeToRelocate);
|
|
1051
|
+
} else {
|
|
1052
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1053
|
+
if (isInitialLoad) {
|
|
1054
|
+
nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
|
|
1055
|
+
}
|
|
1056
|
+
nodeToRelocate.hidden = true;
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
if (checkSlotFallbackVisibility) {
|
|
1062
|
+
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
1063
|
+
}
|
|
1064
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1065
|
+
relocateNodes.length = 0;
|
|
1066
|
+
}
|
|
1067
|
+
contentRef = void 0;
|
|
800
1068
|
};
|
|
801
1069
|
|
|
802
1070
|
// src/runtime/update-component.ts
|
|
@@ -1139,6 +1407,12 @@ var connectedCallback = (elm) => {
|
|
|
1139
1407
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
1140
1408
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
1141
1409
|
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
1410
|
+
{
|
|
1411
|
+
if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
1412
|
+
cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
|
|
1413
|
+
setContentReference(elm);
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1142
1416
|
{
|
|
1143
1417
|
let ancestorComponent = elm;
|
|
1144
1418
|
while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
|
|
@@ -1168,6 +1442,13 @@ var connectedCallback = (elm) => {
|
|
|
1168
1442
|
endConnected();
|
|
1169
1443
|
}
|
|
1170
1444
|
};
|
|
1445
|
+
var setContentReference = (elm) => {
|
|
1446
|
+
const contentRefElm = elm["s-cr"] = doc.createComment(
|
|
1447
|
+
""
|
|
1448
|
+
);
|
|
1449
|
+
contentRefElm["s-cn"] = true;
|
|
1450
|
+
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
1451
|
+
};
|
|
1171
1452
|
var disconnectInstance = (instance) => {
|
|
1172
1453
|
};
|
|
1173
1454
|
var disconnectedCallback = async (elm) => {
|
package/dist/esm/loader.js
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* Built by ShiftSoftware
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
|
-
import { b as bootstrapLazy } from './index-
|
|
6
|
-
export { s as setNonce } from './index-
|
|
5
|
+
import { b as bootstrapLazy } from './index-ff1dab22.js';
|
|
6
|
+
export { s as setNonce } from './index-ff1dab22.js';
|
|
7
7
|
import { g as globalScripts } from './app-globals-8befa224.js';
|
|
8
8
|
|
|
9
9
|
const defineCustomElements = async (win, options) => {
|
|
10
10
|
if (typeof window === 'undefined') return undefined;
|
|
11
11
|
await globalScripts();
|
|
12
|
-
return bootstrapLazy([["
|
|
12
|
+
return bootstrapLazy([["vehicle-lookup",[[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",[[1,"general-inquiry-form",{"isLoading":[32],"renderControl":[32]}]]],["dead-stock-lookup",[[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",[[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",[[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",[[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",[[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",[[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);
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export { defineCustomElements };
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
* Built by ShiftSoftware
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
6
|
-
import { L as Loading } from './Loading-
|
|
5
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-ff1dab22.js';
|
|
6
|
+
import { L as Loading } from './Loading-d050617c.js';
|
|
7
7
|
import { c as cn } from './cn-cc419b94.js';
|
|
8
8
|
import { g as getPartInformation } from './partInformation-096a8f55.js';
|
|
9
|
-
import './loader-027b88af.js';
|
|
10
9
|
|
|
11
|
-
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}.
|
|
10
|
+
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}";
|
|
12
11
|
const ManufacturerLookupStyle0 = manufacturerLookupCss;
|
|
13
12
|
|
|
14
13
|
let mockData = {};
|
|
@@ -40,7 +39,6 @@ const ManufacturerLookup = class {
|
|
|
40
39
|
this.externalPartNumber = partNumber;
|
|
41
40
|
try {
|
|
42
41
|
if (!partNumber || partNumber.trim().length === 0) {
|
|
43
|
-
//this.componentHeight = '0px';
|
|
44
42
|
this.state = 'idle';
|
|
45
43
|
return;
|
|
46
44
|
}
|
|
@@ -73,19 +71,7 @@ const ManufacturerLookup = class {
|
|
|
73
71
|
async fetchData(partNumber = this.externalPartNumber, headers = {}) {
|
|
74
72
|
await this.setData(partNumber, headers);
|
|
75
73
|
}
|
|
76
|
-
//calculateHeight(componentState: string) {
|
|
77
|
-
// if (componentState.includes('loading') && this.componentHeight === '0px') {
|
|
78
|
-
// this.componentHeight = '100px';
|
|
79
|
-
// } else if (componentState !== 'idle') {
|
|
80
|
-
// setTimeout(() => {
|
|
81
|
-
// this.componentHeight = `${this.wrapperRef.clientHeight}px`;
|
|
82
|
-
// }, 50);
|
|
83
|
-
// } else {
|
|
84
|
-
// this.componentHeight = '0px';
|
|
85
|
-
// }
|
|
86
|
-
//}
|
|
87
74
|
async loadingListener() {
|
|
88
|
-
//this.calculateHeight(newState);
|
|
89
75
|
if (this.loadingStateChange)
|
|
90
76
|
this.loadingStateChange(this.state.includes('loading'));
|
|
91
77
|
}
|
|
@@ -93,7 +79,7 @@ const ManufacturerLookup = class {
|
|
|
93
79
|
mockData = newMockData;
|
|
94
80
|
}
|
|
95
81
|
render() {
|
|
96
|
-
return (h(Host, { key: '
|
|
82
|
+
return (h(Host, { key: '2796ee666656f17a5f8003e3aef0eccc375f9a1e' }, h("div", { key: 'ffc13581fe7c55099237df50eb59dcff361cd309', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: 'bdd73d42532770c55ba77ea2f36ee050188682fd' }, h(Loading, { key: '0ed5c3a8a69d7b598ab2e8748884de8383b1a2a6', isLoading: this.state.includes('loading') }), h("div", { key: '2262bcf4726e9ceaea6c99135fd7cf20c4512bed', class: 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) && (h("div", { key: 'ccfcf127f404ecc6013f80d22ec90aadfb4a49e4', class: "py-[16px]" }, 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) && (h("div", { key: '1af79d581ecd24f5cb02d347640d60320a72e322' }, h("div", { key: '47d2f26bb14a60837aea54d5cb4b5524e4bd7f7c', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, 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), h("div", { key: 'ab4b39b5f189604a00610717c12b64f7c9376785', class: "px-[30px] py-[10px] flex flex-col gap-[15px]" }, h("div", { key: 'd8663ed569051635bd5c6e661acaca67effe01a4', class: "flex gap-[50px]" }, h("div", { key: '3daf1a7ea0ce5650dc0fccacc24073546b5cba0f', class: "flex flex-col flex-1" }, h("strong", { key: '3d3c0920eb5b6fc0be35e30b567a5c4809054676', class: "py-[10px] border-b border-b-[grey]" }, "Description"), h("div", { key: 'fec76ebc8d7bd61e96236ad81ee2cb6a181d43bf', class: "py-[10px]" }, this.partInformation.tmcPart.partDescription)), h("div", { key: '9c65eeb1afe501d20b3c74b24f3cfe11f0cccc4a', class: "flex flex-col flex-1" }, h("strong", { key: 'adf74255acbc1437a291b4782e00c977a9fb4a50', class: "py-[10px] border-b border-b-[grey]" }, "Product Group"), h("div", { key: 'b98db7431c781d3bdf122b5b4b89eed1b8af8d3e', class: "py-[10px]" }, this.partInformation.tmcPart.group)), h("div", { key: '5c1ccd95bfeb9ce0963c27a509bdef054a538e8e', class: "flex-1" })))))))))));
|
|
97
83
|
}
|
|
98
84
|
get el() { return getElement(this); }
|
|
99
85
|
static get watchers() { return {
|