adp-web-components 0.1.71 → 0.1.72
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/dead-stock-lookup_3.cjs.entry.js +8 -8
- package/dist/cjs/flexible-container.cjs.entry.js +1 -1
- package/dist/cjs/form-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/form-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/{form-dialog_8.cjs.entry.js → form-dialog_9.cjs.entry.js} +67 -28
- package/dist/cjs/form-input_4.cjs.entry.js +8 -10
- package/dist/cjs/form-stepper-control.cjs.entry.js +37 -0
- package/dist/cjs/form-switch.cjs.entry.js +2 -2
- package/dist/cjs/form-time-picker.cjs.entry.js +6 -6
- package/dist/cjs/general-inquiry-form.cjs.entry.js +6 -6
- package/dist/cjs/{get-language-from-url-DSzX4HQt.js → get-language-from-url-BDxORAGO.js} +32 -2
- package/dist/cjs/{get-local-language-CrGMNJyx.js → get-local-language-BHgGjV5c.js} +1 -1
- package/dist/cjs/information-table.cjs.entry.js +1 -1
- package/dist/cjs/{loader-icon-BTRe-EkU.js → loader-icon-C4vy1OWp.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/manufacturer-part-lookup.cjs.entry.js +4 -4
- package/dist/cjs/part-lookup.cjs.entry.js +2 -2
- package/dist/cjs/service-booking-form.cjs.entry.js +6 -6
- package/dist/cjs/shift-components.cjs.js +1 -1
- package/dist/cjs/shift-tab-content.cjs.entry.js +1 -1
- package/dist/cjs/shift-tabs_2.cjs.entry.js +9 -9
- package/dist/cjs/ssc-lookup-form.cjs.entry.js +6 -6
- package/dist/cjs/{state-object-DC2JjJcf.js → state-object-Cgz5J2Ur.js} +12 -12
- package/dist/cjs/test-drive-form.cjs.entry.js +6 -6
- package/dist/cjs/vehicle-accessories_7.cjs.entry.js +23 -16
- package/dist/cjs/vehicle-lookup.cjs.entry.js +9 -8
- package/dist/cjs/vehicle-quotation-form.cjs.entry.js +5 -5
- package/dist/cjs/white-loader-55klC_ZH.js +21 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/components/flexible-container.css +1 -1
- package/dist/collection/components/components/information-table.css +1 -1
- package/dist/collection/components/components/shift-tab-content.css +1 -1
- package/dist/collection/components/components/shift-tabs.css +1 -1
- package/dist/collection/components/form-elements/form-inputs.css +1 -1
- package/dist/collection/components/form-elements/form-step-control.js +207 -0
- package/dist/collection/components/form-elements/form-stepper-submit.js +210 -0
- package/dist/collection/components/form-elements/form-structure-error.js +1 -1
- package/dist/collection/components/form-elements/form-structure.js +13 -4
- package/dist/collection/components/form-elements/form-submit.js +2 -2
- package/dist/collection/components/form-elements/form-switch.js +1 -1
- package/dist/collection/components/form-elements/form-text-area.js +2 -2
- package/dist/collection/components/form-elements/form-time-picker-legacy.js +5 -5
- package/dist/collection/components/form-elements/form-vin-input.js +2 -2
- package/dist/collection/components/forms/defaults/mappers.js +11 -11
- package/dist/collection/components/forms/general-inquiry.js +21 -3
- package/dist/collection/components/forms/service-booking.js +21 -3
- package/dist/collection/components/forms/ssc-lookup.js +21 -3
- package/dist/collection/components/forms/test-drive.js +21 -3
- package/dist/collection/components/forms/vehicle-quotation.js +3 -3
- package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -1
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +2 -2
- package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
- package/dist/collection/components/part-lookup/distributor-lookup.js +2 -2
- package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -1
- package/dist/collection/components/part-lookup/manufacturer-part-lookup.css +1 -1
- package/dist/collection/components/part-lookup/manufacturer-part-lookup.js +1 -1
- package/dist/collection/components/part-lookup/part-lookup.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +23 -2
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.js +25 -4
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.js +8 -8
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +28 -7
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.js +21 -0
- package/dist/collection/components/vehicle-lookup/vehicle-sale-information.js +23 -2
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.js +22 -1
- package/dist/collection/components/vehicle-lookup/vehicle-specification.js +22 -1
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.js +25 -4
- package/dist/collection/components/vin-extractor/vin-extractor.js +1 -1
- package/dist/collection/features/form-hook/form-hook.js +32 -2
- package/dist/collection/features/form-hook/render-structure.js +8 -5
- package/dist/collection/features/vehicle-lookup-component/vehicle-lookup-api-integration.js +1 -1
- package/dist/components/dead-stock-lookup.js +1 -1
- package/dist/components/distributor-lookup.js +1 -1
- package/dist/components/flexible-container.js +1 -1
- package/dist/components/form-checkbox.js +1 -1
- package/dist/components/form-date-picker.js +1 -1
- package/dist/components/form-dialog.js +1 -1
- package/dist/components/form-input.js +1 -1
- package/dist/components/form-phone-number.js +1 -1
- package/dist/components/form-picker-input.js +1 -1
- package/dist/components/form-select.js +1 -1
- package/dist/components/form-shadow-input.js +1 -1
- package/dist/components/form-stepper-control.d.ts +11 -0
- package/dist/components/form-stepper-control.js +5 -0
- package/dist/components/form-stepper-submit.d.ts +11 -0
- package/dist/components/form-stepper-submit.js +5 -0
- package/dist/components/form-structure-error.js +1 -1
- package/dist/components/form-structure.js +1 -1
- package/dist/components/form-submit.js +1 -1
- package/dist/components/form-switch.js +1 -1
- package/dist/components/form-text-area.js +1 -1
- package/dist/components/form-time-picker.js +1 -1
- package/dist/components/form-vin-input.js +1 -1
- package/dist/components/general-inquiry-form.js +1 -1
- package/dist/components/information-table.js +1 -1
- package/dist/components/manufacturer-lookup.js +1 -1
- package/dist/components/manufacturer-part-lookup.js +1 -1
- package/dist/components/{p-Db4o0Qpx.js → p--jlw5opz.js} +1 -1
- package/dist/components/{p-DWuvZsGI.js → p-41x6KvGr.js} +1 -1
- package/dist/components/p-6cUFg2fc.js +5 -0
- package/dist/components/{p-DWWN4ooP.js → p-7KNE1-Ri.js} +1 -1
- package/dist/components/p-ArbH-E30.js +5 -0
- package/dist/components/p-B72Jlkwt.js +5 -0
- package/dist/components/{p-B9DO0698.js → p-BGq7d7YN.js} +1 -1
- package/dist/components/p-BOVPfFLJ.js +5 -0
- package/dist/components/{p-CWVjZ_Vg.js → p-BWbMTRSS.js} +1 -1
- package/dist/components/{p-CVR4TrpD.js → p-Bb9raR6p.js} +1 -1
- package/dist/components/{p-0xcR950E.js → p-BcI0oj-h.js} +1 -1
- package/dist/components/{p-CEOpVFS4.js → p-BcmcPyEi.js} +1 -1
- package/dist/components/p-BoER4BnX.js +5 -0
- package/dist/components/{p-DpbkJnGN.js → p-BvLuD0Kf.js} +1 -1
- package/dist/components/{p-DRqirHEl.js → p-BvnhLOCg.js} +1 -1
- package/dist/components/{p-TR2srg3G.js → p-C-bOO9_K.js} +1 -1
- package/dist/components/{p-DTSxLKHX.js → p-CF8TtBlc.js} +1 -1
- package/dist/components/p-CGDBCNyc.js +5 -0
- package/dist/components/p-CjJcK_hB.js +5 -0
- package/dist/components/{p-D5TUOBeG.js → p-CrouRVEx.js} +1 -1
- package/dist/components/p-CthTWUyd.js +5 -0
- package/dist/components/p-CxmOqH7E.js +5 -0
- package/dist/components/p-DJReNlr5.js +5 -0
- package/dist/components/{p-BmyNDE_E.js → p-DOvlk8Mh.js} +1 -1
- package/dist/components/p-DRkoUgc-.js +5 -0
- package/dist/components/{p-h28ATSQb.js → p-DRypfOfG.js} +1 -1
- package/dist/components/{p-BlGKvTMT.js → p-DThFNBwH.js} +1 -1
- package/dist/components/{p-Uit3uqMQ.js → p-DWUC1sOH.js} +1 -1
- package/dist/components/p-DdT53TtQ.js +5 -0
- package/dist/components/p-Dolx9bDW.js +5 -0
- package/dist/components/{p-c05QCGD9.js → p-Donjg6jl.js} +1 -1
- package/dist/components/p-IDZdaLqR.js +5 -0
- package/dist/components/p-RsS4xQTn.js +5 -0
- package/dist/components/p-S8knoRzN.js +5 -0
- package/dist/components/p-bjIWj3pr.js +5 -0
- package/dist/components/{p-2CMkowBx.js → p-vub3oOr-.js} +1 -1
- package/dist/components/part-lookup.js +1 -1
- package/dist/components/service-booking-form.js +1 -1
- package/dist/components/shift-accordion.js +1 -1
- package/dist/components/shift-slider.js +1 -1
- package/dist/components/shift-tab-content.js +1 -1
- package/dist/components/shift-tabs.js +1 -1
- package/dist/components/ssc-lookup-form.js +1 -1
- package/dist/components/test-drive-form.js +1 -1
- package/dist/components/vehicle-accessories.js +1 -1
- package/dist/components/vehicle-claimable-items.js +1 -1
- package/dist/components/vehicle-item-claim-form.js +1 -1
- package/dist/components/vehicle-lookup.js +1 -1
- package/dist/components/vehicle-paint-thickness.js +1 -1
- package/dist/components/vehicle-quotation-form.js +1 -1
- package/dist/components/vehicle-sale-information.js +1 -1
- package/dist/components/vehicle-service-history.js +1 -1
- package/dist/components/vehicle-specification.js +1 -1
- package/dist/components/vehicle-warranty-details.js +1 -1
- package/dist/components/vin-extractor.js +1 -1
- package/dist/esm/dead-stock-lookup_3.entry.js +8 -8
- package/dist/esm/flexible-container.entry.js +1 -1
- package/dist/esm/form-checkbox.entry.js +1 -1
- package/dist/esm/form-date-picker.entry.js +1 -1
- package/dist/esm/{form-dialog_8.entry.js → form-dialog_9.entry.js} +65 -27
- package/dist/esm/form-input_4.entry.js +7 -9
- package/dist/esm/form-stepper-control.entry.js +35 -0
- package/dist/esm/form-switch.entry.js +2 -2
- package/dist/esm/form-time-picker.entry.js +6 -6
- package/dist/esm/general-inquiry-form.entry.js +6 -6
- package/dist/esm/{get-language-from-url-WEiw5juk.js → get-language-from-url-CZmiCAsd.js} +32 -2
- package/dist/esm/{get-local-language-CDa5dIz4.js → get-local-language-BF0xL8aw.js} +1 -1
- package/dist/esm/information-table.entry.js +1 -1
- package/dist/esm/{loader-icon-DEUB-nef.js → loader-icon-DibQkdwl.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/manufacturer-part-lookup.entry.js +4 -4
- package/dist/esm/part-lookup.entry.js +2 -2
- package/dist/esm/service-booking-form.entry.js +6 -6
- package/dist/esm/shift-components.js +1 -1
- package/dist/esm/shift-tab-content.entry.js +1 -1
- package/dist/esm/shift-tabs_2.entry.js +9 -9
- package/dist/esm/ssc-lookup-form.entry.js +6 -6
- package/dist/esm/{state-object-Ogxin4e1.js → state-object-5qgRIr3a.js} +12 -12
- package/dist/esm/test-drive-form.entry.js +6 -6
- package/dist/esm/vehicle-accessories_7.entry.js +23 -16
- package/dist/esm/vehicle-lookup.entry.js +9 -8
- package/dist/esm/vehicle-quotation-form.entry.js +5 -5
- package/dist/esm/white-loader-BpnYQ3A6.js +18 -0
- package/dist/shift-components/p-0de56f81.entry.js +5 -0
- package/dist/shift-components/p-35f3ee2d.entry.js +5 -0
- package/dist/shift-components/{p-b90e8298.entry.js → p-41d29e7e.entry.js} +1 -1
- package/dist/shift-components/p-42fd030e.entry.js +5 -0
- package/dist/shift-components/p-5398e145.entry.js +5 -0
- package/dist/shift-components/{p-c342b9d1.entry.js → p-56ca3239.entry.js} +1 -1
- package/dist/shift-components/{p-ba2b46c2.entry.js → p-597791f0.entry.js} +1 -1
- package/dist/shift-components/p-5e1fc9f1.entry.js +5 -0
- package/dist/shift-components/p-78478bd7.entry.js +5 -0
- package/dist/shift-components/p-96aec9cb.entry.js +5 -0
- package/dist/shift-components/{p-4238fe6e.entry.js → p-96fcaa2f.entry.js} +1 -1
- package/dist/shift-components/{p-rMLckxTx.js → p-CLiT06E6.js} +1 -1
- package/dist/shift-components/p-CyHfimfF.js +5 -0
- package/dist/shift-components/p-DcKddZmi.js +5 -0
- package/dist/shift-components/p-DzDhhYba.js +5 -0
- package/dist/shift-components/{p-CpPMv1bM.js → p-RWnI27dq.js} +1 -1
- package/dist/shift-components/{p-e962f341.entry.js → p-a0439790.entry.js} +1 -1
- package/dist/shift-components/{p-15e10305.entry.js → p-a516df62.entry.js} +1 -1
- package/dist/shift-components/{p-76fe6d18.entry.js → p-a91a7901.entry.js} +1 -1
- package/dist/shift-components/p-aba8e38a.entry.js +5 -0
- package/dist/shift-components/{p-d637c69b.entry.js → p-b1b6c27b.entry.js} +1 -1
- package/dist/shift-components/p-ba1c87fe.entry.js +5 -0
- package/dist/shift-components/{p-623d5c3d.entry.js → p-cf55db99.entry.js} +1 -1
- package/dist/shift-components/{p-b2721d2b.entry.js → p-cf92576f.entry.js} +1 -1
- package/dist/shift-components/p-dfcdbab3.entry.js +5 -0
- package/dist/shift-components/{p-66ef506a.entry.js → p-f7abcdc8.entry.js} +1 -1
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/components/form-elements/form-step-control.d.ts +15 -0
- package/dist/types/components/form-elements/form-stepper-submit.d.ts +15 -0
- package/dist/types/components/form-elements/form-structure.d.ts +1 -0
- package/dist/types/components/forms/defaults/mappers.d.ts +3 -0
- package/dist/types/components/forms/general-inquiry.d.ts +1 -0
- package/dist/types/components/forms/service-booking.d.ts +1 -0
- package/dist/types/components/forms/ssc-lookup.d.ts +1 -0
- package/dist/types/components/forms/test-drive.d.ts +1 -0
- package/dist/types/components/vehicle-lookup/vehicle-accessories.d.ts +1 -0
- package/dist/types/components/vehicle-lookup/vehicle-claimable-items.d.ts +1 -0
- package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +1 -0
- package/dist/types/components/vehicle-lookup/vehicle-paint-thickness.d.ts +1 -0
- package/dist/types/components/vehicle-lookup/vehicle-sale-information.d.ts +1 -0
- package/dist/types/components/vehicle-lookup/vehicle-service-history.d.ts +1 -0
- package/dist/types/components/vehicle-lookup/vehicle-specification.d.ts +1 -0
- package/dist/types/components/vehicle-lookup/vehicle-warranty-details.d.ts +1 -0
- package/dist/types/components.d.ts +154 -0
- package/dist/types/features/form-hook/form-hook.d.ts +3 -1
- package/dist/types/features/form-hook/interface.d.ts +11 -0
- package/dist/types/features/form-hook/render-structure.d.ts +1 -1
- package/dist/types/features/vehicle-lookup-component/interface.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/form-input-prefix-RFgXEC1Q.js +0 -18
- package/dist/components/p-B5f2dpEy.js +0 -5
- package/dist/components/p-BBYPaQBK.js +0 -5
- package/dist/components/p-BGzp0k11.js +0 -5
- package/dist/components/p-BLFDdJWV.js +0 -5
- package/dist/components/p-Bw_VvuFc.js +0 -5
- package/dist/components/p-BxuggWJc.js +0 -5
- package/dist/components/p-CDTvzwTY.js +0 -5
- package/dist/components/p-CZzCbI9_.js +0 -5
- package/dist/components/p-C_xCz80J.js +0 -5
- package/dist/components/p-CnU-FAvr.js +0 -5
- package/dist/components/p-Ctn6qJSb.js +0 -5
- package/dist/components/p-DL1ZwCZy.js +0 -5
- package/dist/components/p-DbcLXe18.js +0 -5
- package/dist/components/p-DiqiT5wD.js +0 -5
- package/dist/components/p-DyNlA71C.js +0 -5
- package/dist/esm/form-input-prefix-C48SfAOK.js +0 -16
- package/dist/shift-components/p-0e27b251.entry.js +0 -5
- package/dist/shift-components/p-2c5165b8.entry.js +0 -5
- package/dist/shift-components/p-398ca2dd.entry.js +0 -5
- package/dist/shift-components/p-4461d611.entry.js +0 -5
- package/dist/shift-components/p-6433c2ae.entry.js +0 -5
- package/dist/shift-components/p-C5yZUyec.js +0 -5
- package/dist/shift-components/p-DXZTo2xz.js +0 -5
- package/dist/shift-components/p-ad9a34aa.entry.js +0 -5
- package/dist/shift-components/p-c0758cce.entry.js +0 -5
- package/dist/shift-components/p-c2f8916b.entry.js +0 -5
- package/dist/shift-components/p-da9862ea.entry.js +0 -5
- package/dist/shift-components/p-no7IC1jn.js +0 -5
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
var index = require('./index-CmK48vN3.js');
|
|
8
8
|
require('./types-B3WMBBhs.js');
|
|
9
9
|
var index$1 = require('./index-D5c513Xn.js');
|
|
10
|
-
var loaderIcon = require('./loader-icon-
|
|
10
|
+
var loaderIcon = require('./loader-icon-C4vy1OWp.js');
|
|
11
11
|
var cn = require('./cn-BHnqYtun.js');
|
|
12
12
|
var calendarDaysIcon = require('./calendar-days-icon-C2lFWgOC.js');
|
|
13
13
|
var decodeTimeOffset = require('./decode-time-offset-DqzP0mck.js');
|
|
@@ -79,11 +79,11 @@ const populateItems = (data, setup, hasMeta) => {
|
|
|
79
79
|
return options;
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
const getFormMappers = (stateObject, extraMappers = {}) => (Object.assign({ submit: ({ props }) => index.h("form-submit", Object.assign({}, props)), name: ({ props }) => index.h("form-input", Object.assign({}, props)), lastName: ({ props }) => index.h("form-input", Object.assign({}, props)), email: ({ props }) => index.h("form-input", Object.assign({ type: "email" }, props)), message: ({ props }) => index.h("form-text-area", Object.assign({}, props)), vin: ({ props }) => index.h("form-vin-input", Object.assign({}, props)), vehicleImage: ({ form }) => index.h(VehicleImageViewer, { form: form }), phone: ({ props, isLoading }) => {
|
|
82
|
+
const getFormMappers = (stateObject, extraMappers = {}) => (Object.assign({ submit: ({ props }) => index.h("form-submit", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props)), stepperSubmit: ({ props }) => index.h("form-stepper-submit", Object.assign({ key: (props === null || props === void 0 ? void 0 : props.step) || (props === null || props === void 0 ? void 0 : props.name) }, props)), name: ({ props }) => index.h("form-input", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props)), lastName: ({ props }) => index.h("form-input", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props)), email: ({ props }) => index.h("form-input", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name, type: "email" }, props)), message: ({ props }) => index.h("form-text-area", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props)), vin: ({ props }) => index.h("form-vin-input", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props)), vehicleImage: ({ form }) => index.h(VehicleImageViewer, { form: form }), phone: ({ props, isLoading }) => {
|
|
83
83
|
if (!stateObject.phoneValidator) {
|
|
84
84
|
stateObject.phoneValidator = loaderIcon.getPhoneValidator((props === null || props === void 0 ? void 0 : props.countryCode) || '');
|
|
85
85
|
}
|
|
86
|
-
return index.h("form-phone-number", Object.assign({ defaultValue: stateObject.phoneValidator.default }, props, { isLoading: isLoading, validator: stateObject.phoneValidator }));
|
|
86
|
+
return index.h("form-phone-number", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name, defaultValue: stateObject.phoneValidator.default }, props, { isLoading: isLoading, validator: stateObject.phoneValidator }));
|
|
87
87
|
}, vehicle: ({ language, props }) => {
|
|
88
88
|
const fetcher = async ({ signal, context }) => {
|
|
89
89
|
var _a, _b;
|
|
@@ -139,7 +139,7 @@ const getFormMappers = (stateObject, extraMappers = {}) => (Object.assign({ subm
|
|
|
139
139
|
context.defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue;
|
|
140
140
|
return options;
|
|
141
141
|
};
|
|
142
|
-
return index.h("form-select", Object.assign({}, props, { searchable: true, fetcher: fetcher, language: language }));
|
|
142
|
+
return index.h("form-select", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props, { searchable: true, fetcher: fetcher, language: language }));
|
|
143
143
|
}, companyBranchId: ({ language, props }) => {
|
|
144
144
|
const fetcher = async ({ signal }) => {
|
|
145
145
|
const dealerEndpoint = props === null || props === void 0 ? void 0 : props.branchApi;
|
|
@@ -151,7 +151,7 @@ const getFormMappers = (stateObject, extraMappers = {}) => (Object.assign({ subm
|
|
|
151
151
|
}));
|
|
152
152
|
return options;
|
|
153
153
|
};
|
|
154
|
-
return index.h("form-select", Object.assign({}, props, { clearable: true, searchable: true, fetcher: fetcher, language: language }));
|
|
154
|
+
return index.h("form-select", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props, { clearable: true, searchable: true, fetcher: fetcher, language: language }));
|
|
155
155
|
}, cityId: ({ language, props }) => {
|
|
156
156
|
const fetcher = async ({ signal }) => {
|
|
157
157
|
const dealerEndpoint = props === null || props === void 0 ? void 0 : props.cityApi;
|
|
@@ -163,7 +163,7 @@ const getFormMappers = (stateObject, extraMappers = {}) => (Object.assign({ subm
|
|
|
163
163
|
}));
|
|
164
164
|
return options;
|
|
165
165
|
};
|
|
166
|
-
return index.h("form-select", Object.assign({}, props, { clearable: true, searchable: true, fetcher: fetcher, language: language }));
|
|
166
|
+
return index.h("form-select", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props, { clearable: true, searchable: true, fetcher: fetcher, language: language }));
|
|
167
167
|
}, date: ({ props }) => index.h("form-picker-input", Object.assign({ type: "date" }, props, { icon: index.h(calendarDaysIcon.CalendarDaysIcon, null) })), time: ({ language, props }) => {
|
|
168
168
|
const fetcher = async () => {
|
|
169
169
|
const options = [];
|
|
@@ -180,7 +180,7 @@ const getFormMappers = (stateObject, extraMappers = {}) => (Object.assign({ subm
|
|
|
180
180
|
}
|
|
181
181
|
return options;
|
|
182
182
|
};
|
|
183
|
-
return index.h("form-select", Object.assign({}, props, { clearable: true, fetcher: fetcher, language: language }));
|
|
183
|
+
return index.h("form-select", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props, { clearable: true, fetcher: fetcher, language: language }));
|
|
184
184
|
}, currentVehicleBrand: ({ form, language, props, locale }) => {
|
|
185
185
|
const fetcher = async ({ signal }) => {
|
|
186
186
|
var _a;
|
|
@@ -199,7 +199,7 @@ const getFormMappers = (stateObject, extraMappers = {}) => (Object.assign({ subm
|
|
|
199
199
|
},
|
|
200
200
|
];
|
|
201
201
|
};
|
|
202
|
-
return index.h("form-select", Object.assign({}, props, { searchable: true, fetcher: fetcher, language: language }));
|
|
202
|
+
return index.h("form-select", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props, { searchable: true, fetcher: fetcher, language: language }));
|
|
203
203
|
}, currentVehicleModel: ({ form, language, props, locale }) => {
|
|
204
204
|
form.addWatcher('currentVehicleBrand');
|
|
205
205
|
const currentVehicleBrand = form === null || form === void 0 ? void 0 : form.getValue('currentVehicleBrand');
|
|
@@ -218,7 +218,7 @@ const getFormMappers = (stateObject, extraMappers = {}) => (Object.assign({ subm
|
|
|
218
218
|
},
|
|
219
219
|
];
|
|
220
220
|
};
|
|
221
|
-
return (index.h("form-select", Object.assign({}, props, { searchable: true, fetcher: fetcher, language: language, resetKey: currentVehicleBrand, fetcherKey: currentVehicleBrand, isRequired: currentVehicleBrand !== 'Other', isDisabled: !currentVehicleBrand || currentVehicleBrand === 'Other' })));
|
|
221
|
+
return (index.h("form-select", Object.assign({}, props, { searchable: true, key: props === null || props === void 0 ? void 0 : props.name, fetcher: fetcher, language: language, resetKey: currentVehicleBrand, fetcherKey: currentVehicleBrand, isRequired: currentVehicleBrand !== 'Other', isDisabled: !currentVehicleBrand || currentVehicleBrand === 'Other' })));
|
|
222
222
|
}, ownVehicle: ({ language, props }) => {
|
|
223
223
|
const fetcher = async ({}) => {
|
|
224
224
|
var _a, _b, _c, _d;
|
|
@@ -233,7 +233,7 @@ const getFormMappers = (stateObject, extraMappers = {}) => (Object.assign({ subm
|
|
|
233
233
|
},
|
|
234
234
|
];
|
|
235
235
|
};
|
|
236
|
-
return index.h("form-select", Object.assign({}, props, { fetcher: fetcher, language: language }));
|
|
236
|
+
return index.h("form-select", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props, { fetcher: fetcher, language: language }));
|
|
237
237
|
}, conditionalCurrentVehicleBrand: ({ form, language, props, locale }) => {
|
|
238
238
|
form.addWatcher('ownVehicle');
|
|
239
239
|
const ownVehicle = (form === null || form === void 0 ? void 0 : form.getValue('ownVehicle')) === 'yes';
|
|
@@ -253,7 +253,7 @@ const getFormMappers = (stateObject, extraMappers = {}) => (Object.assign({ subm
|
|
|
253
253
|
},
|
|
254
254
|
];
|
|
255
255
|
};
|
|
256
|
-
return index.h("form-select", Object.assign({}, props, { searchable: true, fetcher: fetcher, language: language, resetKey: ownVehicle, isRequired: ownVehicle, isDisabled: !ownVehicle }));
|
|
256
|
+
return index.h("form-select", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props, { searchable: true, fetcher: fetcher, language: language, resetKey: ownVehicle, isRequired: ownVehicle, isDisabled: !ownVehicle }));
|
|
257
257
|
}, conditionalCurrentVehicleModel: ({ form, language, props, locale }) => {
|
|
258
258
|
form.addWatcher('ownVehicle');
|
|
259
259
|
form.addWatcher('conditionalCurrentVehicleBrand');
|
|
@@ -274,7 +274,7 @@ const getFormMappers = (stateObject, extraMappers = {}) => (Object.assign({ subm
|
|
|
274
274
|
},
|
|
275
275
|
];
|
|
276
276
|
};
|
|
277
|
-
return (index.h("form-select", Object.assign({}, props, { searchable: true, fetcher: fetcher, language: language, resetKey: currentVehicleBrand, fetcherKey: currentVehicleBrand, isRequired: ownVehicle && currentVehicleBrand !== 'Other', isDisabled: !currentVehicleBrand || currentVehicleBrand === 'Other' })));
|
|
277
|
+
return (index.h("form-select", Object.assign({}, props, { searchable: true, fetcher: fetcher, key: props === null || props === void 0 ? void 0 : props.name, language: language, resetKey: currentVehicleBrand, fetcherKey: currentVehicleBrand, isRequired: ownVehicle && currentVehicleBrand !== 'Other', isDisabled: !currentVehicleBrand || currentVehicleBrand === 'Other' })));
|
|
278
278
|
} }, extraMappers));
|
|
279
279
|
|
|
280
280
|
const getDefaultStateObject = () => ({ phoneValidator: undefined });
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
'use strict';
|
|
6
6
|
|
|
7
7
|
var index = require('./index-CmK48vN3.js');
|
|
8
|
-
var loaderIcon = require('./loader-icon-
|
|
8
|
+
var loaderIcon = require('./loader-icon-C4vy1OWp.js');
|
|
9
9
|
var cn = require('./cn-BHnqYtun.js');
|
|
10
10
|
var validation$1 = require('./validation-DEdJb-KL.js');
|
|
11
11
|
var types = require('./types-B3WMBBhs.js');
|
|
12
|
-
var getLanguageFromUrl = require('./get-language-from-url-
|
|
13
|
-
var stateObject$1 = require('./state-object-
|
|
14
|
-
require('./get-local-language-
|
|
12
|
+
var getLanguageFromUrl = require('./get-language-from-url-BDxORAGO.js');
|
|
13
|
+
var stateObject$1 = require('./state-object-Cgz5J2Ur.js');
|
|
14
|
+
require('./get-local-language-BHgGjV5c.js');
|
|
15
15
|
require('./index-D5c513Xn.js');
|
|
16
16
|
require('./validate-vin-CJDIXpJO.js');
|
|
17
17
|
require('./calendar-days-icon-C2lFWgOC.js');
|
|
@@ -68,9 +68,9 @@ const TestDriveForm = class {
|
|
|
68
68
|
// #endregion
|
|
69
69
|
render() {
|
|
70
70
|
var _a, _b;
|
|
71
|
-
return (index.h(index.Host, { key: '
|
|
71
|
+
return (index.h(index.Host, { key: 'fab49ec7cbc4969dd4511b0939d553f736522cb1' }, index.h("div", { key: '506afbb9bbad45d22a03b0dcdcd1d5564338a568', part: cn.cn('shift-form', (_b = (_a = this.structure) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.theme, this.theme) }, index.h("div", { key: '6c2052eff11adb5b8317299f4c9a65ca0a4356c5', part: "form-container", class: "relative min-h-[150px]" }, index.h("div", { key: '4a34ab6f134bdaeddf34ba1426ffd273c74a50c2', part: "form-loader-container", class: cn.cn('form-loader-container absolute top-0 left-0 w-full h-full pointer-events-none flex justify-center items-center transition-opacity duration-500', {
|
|
72
72
|
'opacity-0': this.structureRendered,
|
|
73
|
-
}) }, index.h(loaderIcon.LoaderIcon, { key: '
|
|
73
|
+
}) }, index.h(loaderIcon.LoaderIcon, { key: '781356c6d37992f18a0f11306a0f661401033473', part: "form-loader-icon", class: "img" })), index.h("flexible-container", { key: '8985547d2568fc1315ab5d1e2607093063140bf0', onlyForMounting: true, isOpened: this.structureRendered }, !!this.form && (index.h("form-structure", { key: '6574311073efb3ab665e9282667abd9431c52336', form: this.form, fields: this.fields, formId: this.formId, formLocale: this.locale, structure: this.structure, isLoading: this.isLoading, language: this.localeLanguage, errorMessage: this.errorMessage, formElementMapper: elementMapper, successMessage: this.locale['Form submitted successfully.'] || 'Form submitted successfully.' }, index.h("slot", { key: '76920b66289cd0cf6086ff8b88a138f93cc71560' }))))))));
|
|
74
74
|
}
|
|
75
75
|
get el() { return index.getElement(this); }
|
|
76
76
|
static get watchers() { return {
|
|
@@ -11,7 +11,7 @@ var vehicleInfoLayout = require('./vehicle-info-layout-D0rI_Rfz.js');
|
|
|
11
11
|
var smartInvokable = require('./smart-invokable-BdyCLX9_.js');
|
|
12
12
|
var validateVin = require('./validate-vin-CJDIXpJO.js');
|
|
13
13
|
var types = require('./types-B3WMBBhs.js');
|
|
14
|
-
var getLocalLanguage = require('./get-local-language-
|
|
14
|
+
var getLocalLanguage = require('./get-local-language-BHgGjV5c.js');
|
|
15
15
|
var cn = require('./cn-BHnqYtun.js');
|
|
16
16
|
var emptyTableIcon = require('./empty-table-icon-QLsRUBY_.js');
|
|
17
17
|
var calendarDaysIcon = require('./calendar-days-icon-C2lFWgOC.js');
|
|
@@ -57,7 +57,7 @@ const setVehicleLookupData = async (context, newData, headers = {}, { beforeAssi
|
|
|
57
57
|
context.vehicleLookup = undefined;
|
|
58
58
|
throw new Error('vinNumberRequired');
|
|
59
59
|
}
|
|
60
|
-
if (!validateVin.validateVin(vin) && !(context === null || context === void 0 ? void 0 : context.isDev))
|
|
60
|
+
if (!validateVin.validateVin(vin) && !(context === null || context === void 0 ? void 0 : context.isDev) && !(context === null || context === void 0 ? void 0 : context.disableVinValidation))
|
|
61
61
|
throw new Error('invalidVin');
|
|
62
62
|
const vehicleResponse = isVinRequest ? await getVehicleLookup(context, { scopedTimeoutRef, vin }, headers) : newData;
|
|
63
63
|
if (context.networkTimeoutRef === scopedTimeoutRef) {
|
|
@@ -129,6 +129,7 @@ const VehicleAccessories = class {
|
|
|
129
129
|
// #endregion
|
|
130
130
|
// #region Image Viewer Logic
|
|
131
131
|
this.expandedImage = '';
|
|
132
|
+
this.disableVinValidation = false;
|
|
132
133
|
this.headers = {};
|
|
133
134
|
this.queryString = '';
|
|
134
135
|
this.isError = false;
|
|
@@ -184,9 +185,9 @@ const VehicleAccessories = class {
|
|
|
184
185
|
image: () => (index.h("div", { class: "size-[100px] flex mx-auto items-center justify-center" }, index.h("button", { onClick: ({ target }) => printIcon.openImageViewer.bind(this)(target, accessory === null || accessory === void 0 ? void 0 : accessory.image), class: "shrink-0 relative ring-0 outline-none w-fit mx-auto [&_img]:hover:shadow-lg [&_div]:hover:!opacity-100 cursor-pointer" }, index.h("div", { class: "absolute flex-col justify-center gap-[4px] size-full flex items-center pointer-events-none hover:opacity-100 rounded-lg opacity-0 bg-black/40 transition-all duration-300" }, index.h("img", { src: printIcon.eyeSvg }), index.h("span", { class: "text-white" }, texts.expand)), index.h("img", { class: "w-auto h-auto max-w-[100px] max-h-[100px] cursor-pointer shadow-sm rounded-lg transition-all duration-300", src: accessory === null || accessory === void 0 ? void 0 : accessory.image })))),
|
|
185
186
|
}));
|
|
186
187
|
const templateRow = {
|
|
187
|
-
image: () => index.h("div", { key: '
|
|
188
|
+
image: () => index.h("div", { key: '9e3449c662aacec2d733e102c9448eb7d8a6f0fd', class: "size-[100px] flex mx-auto items-center justify-center" }, "\u00A0"),
|
|
188
189
|
};
|
|
189
|
-
return (index.h(index.Host, { key: '
|
|
190
|
+
return (index.h(index.Host, { key: '3bff6a397080ea86ac1579c8648c49503181e2af' }, index.h(printIcon.ImageViewer, { key: 'fa8d7e628a8c044437243dd860833c041a125991', closeImageViewer: () => printIcon.closeImageViewer.bind(this)(), expandedImage: this.expandedImage }), index.h(vehicleInfoLayout.VehicleInfoLayout, { key: '464efd75b6888368bb09d12257d9005414354edb', isError: this.isError, isLoading: this.isLoading, coreOnly: this.coreOnly, header: (_c = this.vehicleLookup) === null || _c === void 0 ? void 0 : _c.vin, direction: this.locale.sharedLocales.direction, errorMessage: this.locale.sharedLocales.errors[this.errorMessage] || this.locale.sharedLocales.errors.wildCard }, index.h("div", { key: '35e6560fb42dbe6a798bc07f4364d75e919dde31', class: "overflow-x-auto" }, index.h("information-table", { key: '0aab5dab4e2aca63e7f04b4b339bbc2ea0430d5d', templateRow: templateRow, rows: rows, headers: tableHeaders, isLoading: this.isLoading })))));
|
|
190
191
|
}
|
|
191
192
|
get el() { return index.getElement(this); }
|
|
192
193
|
static get watchers() { return {
|
|
@@ -333,6 +334,7 @@ const VehicleClaimableItems = class {
|
|
|
333
334
|
// #endregion
|
|
334
335
|
// #region Vehicle info layout prop
|
|
335
336
|
this.coreOnly = false;
|
|
337
|
+
this.disableVinValidation = false;
|
|
336
338
|
this.headers = {};
|
|
337
339
|
this.queryString = '';
|
|
338
340
|
this.uploadMultipleDocumentsAtTheForm = true;
|
|
@@ -643,13 +645,13 @@ const VehicleClaimableItems = class {
|
|
|
643
645
|
const hideTabs = this.isLoading || this.isError || !this.tabs.length || !serviceItems.length;
|
|
644
646
|
const tabs = this.tabs.map(group => group.name);
|
|
645
647
|
const hasInactiveItems = (_c = (_b = (_a = this.vehicleLookup) === null || _a === void 0 ? void 0 : _a.warranty) === null || _b === void 0 ? void 0 : _b.activationIsRequired) !== null && _c !== void 0 ? _c : false;
|
|
646
|
-
return (index.h(index.Host, { key: '
|
|
648
|
+
return (index.h(index.Host, { key: '42b6816c4ed93313592824aa1b76c33104aa89ae' }, index.h("vehicle-item-claim-form", { key: 'bbb0d893277dbd7090d7829a8681656111c3e9d4', class: "vehicle-item-claim-form", maximumDocumentFileSizeInMb: this.maximumDocumentFileSizeInMb, uploadMultipleDocuments: this.uploadMultipleDocumentsAtTheForm, locale: Object.assign({ sharedLocales: this.locale.sharedLocales }, this.locale.claimForm) }), index.h(ClaimableItemPopover, { key: 'ef48c79097730f7eef8eed6697e68e48273beeaf', locale: this.locale, claim: this.claim.bind(this), item: this.selectedClaimItem, showPopover: this.showClaimableItemPopover, targetLocation: this.popoverTargetLocation }), index.h(vehicleInfoLayout.VehicleInfoLayout, { key: 'fda74238f6eb8e868b00e6e833c6436fc9f42891', isError: this.isError, coreOnly: this.coreOnly, header: (_d = this.vehicleLookup) === null || _d === void 0 ? void 0 : _d.vin, direction: this.locale.sharedLocales.direction, isLoading: this.isLoading || this.tabAnimationLoading, errorMessage: this.locale.sharedLocales.errors[this.errorMessage] || this.locale.sharedLocales.errors.wildCard }, index.h("div", { key: '61814462b075be7ded33821b14e2110575e890a0', dir: "ltr", class: cn.cn('relative flex items-center h-[320px] transition-all duration-300', { loading: this.isLoading || this.tabAnimationLoading }) }, index.h("div", { key: 'd66bf5c76656773a8a386aaca745902ba8604dc7', dir: this.locale.sharedLocales.direction, class: "absolute top-0 z-10 w-full pt-[16px]" }, index.h("div", { key: '6aca28da7d780bf65b2080e387f5dd4057d27f5c', class: cn.cn('duration-300', { 'translate-y-[-50%] opacity-0': hideTabs }) }, index.h("shift-tabs", { key: '10b4b26cd9523f4205b9470d5d9d62d86922b263', activeTabLabel: this.activeTab, changeActiveTab: this.onActiveTabChange, tabs: tabs }))), index.h("div", { key: '4319f5ad100b73c4e82290fe01968a771eda9b70', class: cn.cn('absolute w-[calc(100%-60px)] left-[30px] progress-container-style opacity-0', { 'opacity-100': this.isLoading || this.tabAnimationLoading }) }, index.h("div", { key: '62ed6991e75219a91f4f77595e5110e5e05e5d4a', class: "w-full h-full rounded-[4px] overflow-x-hidden absolute left-0 top-0" }, index.h("div", { key: '2584ddd44b7a43a66e691f441717c7c8686b960c', class: "absolute opacity-0 bg-[#1a1a1a] w-[150%] h-full" }), index.h("div", { key: '53f4a3dfe2300819dfaec8fd71a3ebc41e653e1b', class: "absolute h-full bg-[linear-gradient(to_bottom,_#428bca_0%,_#3071a9_100%)] lane-inc" }), index.h("div", { key: 'fbd507df16c722deb3bb3870a5f1f7cd46df7254', class: "absolute h-full bg-[linear-gradient(to_bottom,_#428bca_0%,_#3071a9_100%)] lane-dec" }))), index.h("div", { key: '1e151e18a38c599971a05869c143d5b4dc7a76ac', dir: this.locale.sharedLocales.direction, class: cn.cn('absolute w-[90%] z-10 pointer-events-none border opacity-0 translate-y-[-5px] scale-[70%] text-[#8a6d3b] bg-[#fcf8e3] border-[#faebcc] p-[25px] text-[16px] rounded-[6px] flex items-center justify-between left-1/2 -translate-x-1/2 h-10 bottom-[40px] transition duration-500', {
|
|
647
649
|
'opacity-100 pointer-events-auto translate-y-0 scale-100': !this.isLoading && this.vehicleLookup && !this.tabAnimationLoading && (hasInactiveItems || this.showPrintBox),
|
|
648
|
-
}) }, index.h("span", { key: '
|
|
650
|
+
}) }, index.h("span", { key: 'd650fba0cf25c0cbf69106bcf90ccc29f9fd08f9', class: "font-semibold" }, this.showPrintBox ? this.locale.successFulClaimMessage : this.locale.warrantyAndServicesNotActivated), index.h("button", { key: 'a7f5c06544d1accd56cac709eea1b4ec417cd837', class: "claim-button", onClick: this.showPrintBox ? this.printLastClaimResponse : this.activateClaimItem }, this.showPrintBox ? index.h(printIcon.PrintIcon, { class: "size-[30px] duration-200" }) : index.h(printIcon.ActivationIcon, { class: "size-[30px] duration-200" }), index.h("span", { key: 'd037daedacf1f635f5b2bb2c4a8f5f887f1971b4' }, this.showPrintBox ? this.locale.print : this.locale.activateNow))), index.h("div", { key: '15c941f884c3c8f68e9eb4e8b49153f530882269', class: "claimable-items-box px-[30px] min-w-full relative overflow-x-scroll h-full overflow-y-hidden" }, index.h("div", { key: 'e59e15da8b6cacbfbc7b5b4f981672a3d5a6ef8b', class: "flex relative w-fit min-w-full items-center h-full [&_*]:shrink-0 gap-[250px] justify-between" }, index.h("div", { key: '5058ed1c325c25f004a9af71ecfbafc282f56be5', class: cn.cn('progress-container-style progress-lane absolute overflow-hidden w-[calc(100%-0px)] translate-y-0 opacity-100', {
|
|
649
651
|
'opacity-0': this.isLoading || this.tabAnimationLoading || isNoServicesAvailable || !this.vehicleLookup,
|
|
650
|
-
}) }, index.h("div", { key: '
|
|
652
|
+
}) }, index.h("div", { key: '969c3affd17f2a26d273790990aa21a455c42103', part: "progress-bar", class: "progress-bar transition-all w-1/2 h-full bg-[linear-gradient(to_bottom,_#428bca_0%,_#3071a9_100%)]" })), index.h("div", { key: '85eebf39ddfde58384517a29a80370e4885ab20c', class: "ml-[-125px]" }), serviceItems.map((item, idx) => (index.h(ClaimableItem, { item: item, locale: this.locale, setClaimableItemPopover: this.setClaimableItemPopover, addStatusClass: item.status !== 'pending' || serviceItems.findIndex(i => i.status === 'pending') === idx }))), index.h("div", { key: '4090c9195219eea5b6521d38a89120f8036cdbc1', class: "ml-[-125px]" })), index.h("div", { key: '14eff7dce91c70c7115a91ed7184dfab38c96838', dir: this.locale.sharedLocales.direction, class: cn.cn('absolute top-0 left-0 pointer-events-none size-full box-content flex flex-col justify-center opacity-0 transition duration-500 items-center text-slate-700', {
|
|
651
653
|
'opacity-100 scale-100': isNoServicesAvailable,
|
|
652
|
-
}) }, index.h(emptyTableIcon.EmptyTableIcon, { key: '
|
|
654
|
+
}) }, index.h(emptyTableIcon.EmptyTableIcon, { key: 'e13a84ec3942cd38b22ee0b99e7652e50b32d308', class: "size-[90px]" }), index.h("div", { key: '3df86e5f78480a98d43ff15e5db2281da73f215b', class: "text-[22px]" }, this.locale.sharedLocales.errors.noServiceAvailable)))))));
|
|
653
655
|
}
|
|
654
656
|
get el() { return index.getElement(this); }
|
|
655
657
|
static get watchers() { return {
|
|
@@ -674,6 +676,7 @@ const VehiclePaintThickness = class {
|
|
|
674
676
|
// #endregion
|
|
675
677
|
// #region Image Viewer Logic
|
|
676
678
|
this.expandedImage = '';
|
|
679
|
+
this.disableVinValidation = false;
|
|
677
680
|
this.headers = {};
|
|
678
681
|
this.queryString = '';
|
|
679
682
|
this.isError = false;
|
|
@@ -812,6 +815,7 @@ const VehicleSaleInformation = class {
|
|
|
812
815
|
// #endregion
|
|
813
816
|
// #region Vehicle info layout prop
|
|
814
817
|
this.coreOnly = false;
|
|
818
|
+
this.disableVinValidation = false;
|
|
815
819
|
this.headers = {};
|
|
816
820
|
this.queryString = '';
|
|
817
821
|
this.isError = false;
|
|
@@ -938,11 +942,11 @@ const VehicleSaleInformation = class {
|
|
|
938
942
|
];
|
|
939
943
|
const filteredFields = FIELDS.filter(field => !hiddenFields.includes(field.fieldName));
|
|
940
944
|
const filteredEndCustomerFields = END_CUSTOMER_FIELDS.filter(field => !hiddenFields.includes(field.fieldName));
|
|
941
|
-
return (index.h(index.Host, { key: '
|
|
945
|
+
return (index.h(index.Host, { key: '1792db8359fb482cd9402307c8ea3b965e967c2b' }, index.h(vehicleInfoLayout.VehicleInfoLayout, { key: '1301f626e8b221fd189ef9d5872a7d26fe6aa08b', isError: this.isError, coreOnly: this.coreOnly, isLoading: this.isLoading, header: (_m = this.vehicleLookup) === null || _m === void 0 ? void 0 : _m.vin, direction: this.locale.sharedLocales.direction, errorMessage: this.locale.sharedLocales.errors[this.errorMessage] || this.locale.sharedLocales.errors.wildCard }, index.h("flexible-container", { key: '29d448a1fde8622d58e38b94b84805a63bffbbd8' }, index.h("flexible-container", { key: '0e06fbb1d419efcf5ae4fc1dcd6d61a5b13cdd0f', classes: cn.cn({ loading: this.isLoading || this.isError || !this.vehicleLookup }), isOpened: !!this.vehicleLookup && !this.isError }, index.h("div", { key: '5b1aabd4b1fb05f29b80b24266d3f7c1e848c441', class: "p-[16px] mx-auto !pb-0 max-w-[520px]" }, index.h("div", { key: 'd87d0bdcd14e050c115c5cfd4a750e5ff99e23ed', class: cn.cn('relative shift-skeleton !rounded-[12px] shift-card', { 'shift-card-warning': !hasEndCustomer }) }, index.h("div", { key: 'aded893bc8dcce34b667c1335b8aaf056baffaa9', class: cn.cn('absolute flex size-full left-0 top-0 px-[12px] items-center justify-center p-[12px] transition-opacity', !hasEndCustomer ? 'opacity-100' : 'opacity-0 pointer-events-none select-none') }, index.h("div", { key: '310f7fef4b58444796d45599239672a4a447efeb', class: "w-full max-w-[460px] rounded-[14px] px-[14px] py-[12px]" }, index.h("div", { key: '78c8c795a11789be2c2e92c8f37ed233d95eb466', class: "size-full flex flex-col justify-start gap-[12px] items-center" }, index.h("span", { key: 'd360df4b6b9c1d6b30d01b610ad8a1346858d42a', class: "shift-card-icon", "aria-hidden": "true" }, index.h(TriangleAlertIcon, { key: '178100a9bba082d07062f807cb64d54838907b86' })), index.h("p", { key: 'b62d2ae4246c8028b33769a9ad88f1586d2b5c9e', class: "mt-[4px] text-[13.5px] text-center text-amber-900/90 leading-[1.35]" }, texts['Vehicle has no end customer.'] || '')))), index.h("div", { key: '2b0d7a818bbad3dc39a4a1ab827eaa8a35cf7d55', class: cn.cn('transition-opacity', !hasEndCustomer ? 'opacity-0 pointer-events-none select-none' : 'opacity-100') }, index.h("h2", { key: '5381cb5ed01ce112fe7c2dc2903452db0d01d98a', class: "shift-card-header" }, texts.customerInformation), index.h("div", { key: 'af03fffa1d7d00cff4cacca30e056957679151a5', class: "flex flex-col gap-[2px]" }, filteredEndCustomerFields.map(field => {
|
|
942
946
|
const value = field.value || '';
|
|
943
947
|
const Icon = field.Icon;
|
|
944
948
|
return (index.h("div", { class: "flex gap-[12px] items-start" }, index.h("span", { class: "shift-card-icon", "aria-hidden": "true" }, index.h(Icon, null)), index.h("div", { class: "flex flex-col translate-y-[-4px]" }, index.h("div", { class: "shift-card-seconary-text" }, field.title, ":"), index.h("div", { class: cn.cn('shift-card-primary-text translate-y-[-4px]', { 'shift-card-empty-text': !value }) }, value || '—'))));
|
|
945
|
-
})))))), index.h("div", { key: '
|
|
949
|
+
})))))), index.h("div", { key: '6a4ba29d1514264830536770e55f79dbc1df0b46', class: "flex p-[16px] [&>div]:grow overflow-auto gap-[16px] items-stretch justify-center md:justify-between flex-wrap" }, filteredFields.map(field => (index.h(materialCard.MaterialCard, { title: field.title, desc: field.value, minWidth: "250px" }))))))));
|
|
946
950
|
}
|
|
947
951
|
get el() { return index.getElement(this); }
|
|
948
952
|
static get watchers() { return {
|
|
@@ -993,6 +997,7 @@ const VehicleServiceHistory = class {
|
|
|
993
997
|
// #endregion
|
|
994
998
|
// #region Vehicle info layout prop
|
|
995
999
|
this.coreOnly = false;
|
|
1000
|
+
this.disableVinValidation = false;
|
|
996
1001
|
this.headers = {};
|
|
997
1002
|
this.queryString = '';
|
|
998
1003
|
this.isError = false;
|
|
@@ -1055,7 +1060,7 @@ const VehicleServiceHistory = class {
|
|
|
1055
1060
|
label: this.locale.odometer,
|
|
1056
1061
|
},
|
|
1057
1062
|
];
|
|
1058
|
-
return (index.h(index.Host, { key: '
|
|
1063
|
+
return (index.h(index.Host, { key: '0dacd0b8cc5b61bf80d8a7b0dd06462cd4659a4e' }, index.h(vehicleInfoLayout.VehicleInfoLayout, { key: '62e2df88b68e958173d133eb5d4fa04430dafde4', isError: this.isError, coreOnly: this.coreOnly, isLoading: this.isLoading, header: (_a = this.vehicleLookup) === null || _a === void 0 ? void 0 : _a.vin, direction: this.locale.sharedLocales.direction, errorMessage: this.locale.sharedLocales.errors[this.errorMessage] || this.locale.sharedLocales.errors.wildCard }, index.h("div", { key: 'a7fe94878f5423aa06b91af9da9a8ea771c03bfd', class: "overflow-x-auto" }, index.h("information-table", { key: '90f0dec8face331a94eaee75259086da583bab8f', expandUsingEntireRow: true, allowMultipleExpanded: true, headers: tableHeaders, isLoading: this.isLoading, rows: ((_b = this.vehicleLookup) === null || _b === void 0 ? void 0 : _b.serviceHistory) || [], subRowRenderer: (row) => index.h(ServiceHistorySubRow, { row: row, locale: this.locale }) })))));
|
|
1059
1064
|
}
|
|
1060
1065
|
get el() { return index.getElement(this); }
|
|
1061
1066
|
static get watchers() { return {
|
|
@@ -1076,6 +1081,7 @@ const VehicleSpecification = class {
|
|
|
1076
1081
|
// #endregion
|
|
1077
1082
|
// #region Vehicle info layout prop
|
|
1078
1083
|
this.coreOnly = false;
|
|
1084
|
+
this.disableVinValidation = false;
|
|
1079
1085
|
this.headers = {};
|
|
1080
1086
|
this.queryString = '';
|
|
1081
1087
|
this.isError = false;
|
|
@@ -1120,7 +1126,7 @@ const VehicleSpecification = class {
|
|
|
1120
1126
|
catch (error) {
|
|
1121
1127
|
productionDate = null;
|
|
1122
1128
|
}
|
|
1123
|
-
return (index.h(index.Host, { key: '
|
|
1129
|
+
return (index.h(index.Host, { key: '8c5dca562c2826e1248edebdc97fdb95dc854385' }, index.h(vehicleInfoLayout.VehicleInfoLayout, { key: 'f00362dbe4928f50a3e17c453ecd202caffb6cc6', isError: this.isError, coreOnly: this.coreOnly, isLoading: this.isLoading, header: (_e = this.vehicleLookup) === null || _e === void 0 ? void 0 : _e.vin, direction: this.locale.sharedLocales.direction, errorMessage: this.locale.sharedLocales.errors[this.errorMessage] || this.locale.sharedLocales.errors.wildCard }, index.h("flexible-container", { key: '3d8656a2a321fc59b178e1c55819da23a0eeab2e' }, index.h("div", { key: '886ca9ac98d86c73b6e75bd291ca2b1b4febaf2b', class: "flex p-[16px] [&>div]:grow overflow-auto gap-[16px] items-stretch justify-center md:justify-between flex-wrap" }, index.h(materialCard.MaterialCard, { key: '0774eda8e1134c45e978571f5f2f48c5a64ecf55', class: "grow", title: texts === null || texts === void 0 ? void 0 : texts.model, minWidth: "300px" }, index.h(materialCard.MaterialCardChildren, { key: '4ab9ea61f992251f494f19f0b57c36c6e952f56d', class: "text-center", hidden: !((_h = (_g = (_f = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _f === void 0 ? void 0 : _f.vehicleVariantInfo) === null || _g === void 0 ? void 0 : _g.modelCode) === null || _h === void 0 ? void 0 : _h.trim()) && !((_l = (_k = (_j = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _j === void 0 ? void 0 : _j.vehicleSpecification) === null || _k === void 0 ? void 0 : _k.modelDescription) === null || _l === void 0 ? void 0 : _l.trim()) }, ((_p = (_o = (_m = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _m === void 0 ? void 0 : _m.vehicleVariantInfo) === null || _o === void 0 ? void 0 : _o.modelCode) === null || _p === void 0 ? void 0 : _p.trim()) || '', " ", index.h("br", { key: 'fdec8723785d02d85b07f77b09fa2090ed93743a', class: "my-2" }), ((_s = (_r = (_q = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _q === void 0 ? void 0 : _q.vehicleSpecification) === null || _r === void 0 ? void 0 : _r.modelDescription) === null || _s === void 0 ? void 0 : _s.trim()) || '')), index.h(materialCard.MaterialCard, { key: '0d4e8247c8cbb757cbaee3d1eda901453be18743', class: "grow", title: texts === null || texts === void 0 ? void 0 : texts.variant, minWidth: "300px" }, index.h(materialCard.MaterialCardChildren, { key: 'f4b55cb0081b938a6d8b8c6366aec8554dca9d13', class: "text-center", hidden: !((_v = (_u = (_t = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _t === void 0 ? void 0 : _t.identifiers) === null || _u === void 0 ? void 0 : _u.variant) === null || _v === void 0 ? void 0 : _v.trim()) && !((_y = (_x = (_w = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _w === void 0 ? void 0 : _w.vehicleSpecification) === null || _x === void 0 ? void 0 : _x.variantDescription) === null || _y === void 0 ? void 0 : _y.trim()) }, ((_1 = (_0 = (_z = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _z === void 0 ? void 0 : _z.identifiers) === null || _0 === void 0 ? void 0 : _0.variant) === null || _1 === void 0 ? void 0 : _1.trim()) || '', " ", index.h("br", { key: '54268c1e00d19d5fec31da7f973012d12f87b4c8' }), ((_4 = (_3 = (_2 = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _2 === void 0 ? void 0 : _2.vehicleSpecification) === null || _3 === void 0 ? void 0 : _3.variantDescription) === null || _4 === void 0 ? void 0 : _4.trim()) || '')), index.h(materialCard.MaterialCard, { key: '0d051dc747e0e209ad8391620854ebcc35b83c38', desc: ((_7 = (_6 = (_5 = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _5 === void 0 ? void 0 : _5.identifiers) === null || _6 === void 0 ? void 0 : _6.katashiki) === null || _7 === void 0 ? void 0 : _7.trim()) || '', title: texts === null || texts === void 0 ? void 0 : texts.katashiki, minWidth: "250px" }), index.h(materialCard.MaterialCard, { key: '8610bdade3fca840b1206325ef3327fa6c0512e6', desc: ((_11 = (_10 = (_9 = (_8 = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _8 === void 0 ? void 0 : _8.vehicleVariantInfo) === null || _9 === void 0 ? void 0 : _9.modelYear) === null || _10 === void 0 ? void 0 : _10.toString()) === null || _11 === void 0 ? void 0 : _11.trim()) || '', title: texts === null || texts === void 0 ? void 0 : texts.modelYear, minWidth: "250px" }), index.h(materialCard.MaterialCard, { key: 'c7ee11bde32c6a40a52da1534061532fa1baa1d9', desc: !!productionDate ? productionDate : '', title: texts === null || texts === void 0 ? void 0 : texts.productionDate, minWidth: "250px" }), index.h(materialCard.MaterialCard, { key: '071d67873ababef3da11e032c08301463698279d', desc: ((_14 = (_13 = (_12 = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _12 === void 0 ? void 0 : _12.vehicleVariantInfo) === null || _13 === void 0 ? void 0 : _13.sfx) === null || _14 === void 0 ? void 0 : _14.trim()) || '', title: texts === null || texts === void 0 ? void 0 : texts.sfx, minWidth: "250px" }))))));
|
|
1124
1130
|
}
|
|
1125
1131
|
get el() { return index.getElement(this); }
|
|
1126
1132
|
static get watchers() { return {
|
|
@@ -1196,6 +1202,7 @@ const VehicleWarrantyDetails = class {
|
|
|
1196
1202
|
// #endregion
|
|
1197
1203
|
// #region Vehicle info layout prop
|
|
1198
1204
|
this.coreOnly = false;
|
|
1205
|
+
this.disableVinValidation = false;
|
|
1199
1206
|
this.headers = {};
|
|
1200
1207
|
this.queryString = '';
|
|
1201
1208
|
this.isError = false;
|
|
@@ -1412,11 +1419,11 @@ const VehicleWarrantyDetails = class {
|
|
|
1412
1419
|
: '...')),
|
|
1413
1420
|
}));
|
|
1414
1421
|
const templateRow = {
|
|
1415
|
-
sscTableOPCode: () => index.h("div", { key: '
|
|
1416
|
-
sscTablePartNumber: () => index.h("div", { key: '
|
|
1417
|
-
sscTableRepairStatus: () => index.h("div", { key: '
|
|
1422
|
+
sscTableOPCode: () => index.h("div", { key: '0f594a93bb57e9701d3c9ef48196b3b180521453', class: "h-[25px]" }),
|
|
1423
|
+
sscTablePartNumber: () => index.h("div", { key: '0f693418636f5fbb43cb82b457e777aae8ede256', class: "h-[25px]" }),
|
|
1424
|
+
sscTableRepairStatus: () => index.h("div", { key: 'f912fd275f189281e386db08df2c1df5ff089e2f', class: "h-[25px]" }),
|
|
1418
1425
|
};
|
|
1419
|
-
return (index.h(index.Host, { key: '
|
|
1426
|
+
return (index.h(index.Host, { key: '5c203dec4d8ff899e39a16d5dcdadffa82378e3f' }, index.h(vehicleInfoLayout.VehicleInfoLayout, { key: '994a309000e795347320a196958a262f5c8f89ac', isError: this.isError, coreOnly: this.coreOnly, isLoading: this.isLoading, header: (_c = this.vehicleLookup) === null || _c === void 0 ? void 0 : _c.vin, direction: this.locale.sharedLocales.direction, errorMessage: this.locale.sharedLocales.errors[this.errorMessage] || this.locale.sharedLocales.errors.wildCard }, index.h("div", { key: '71232fa6456af6736b0583d25130ca385e8e6b05', class: "p-[16px]" }, this.showWarranty && (index.h(CardsContainer, { key: '884fc20a832ad641771b3204c0a8db956dc23d91', isLoading: this.isLoading, warrantyLocale: this.locale, vehicleInformation: this.vehicleLookup, isAuthorized: (_d = this.vehicleLookup) === null || _d === void 0 ? void 0 : _d.isAuthorized, unInvoicedByBrokerName: this.unInvoicedByBrokerName })), index.h("div", { key: '7cc300642d687eba3b7da4c179c53d72b452d38b', class: "h-[8px]" }), index.h("flexible-container", { key: '5f805d3fa83482026c9a186d4bc0144512d244d5', isOpened: this.showRecaptcha, classes: cn.cn('w-fit mx-auto shift-skeleton', { loading: !this.showRecaptcha || this.isLoading }) }, index.h("div", { key: '7d3709ddf528445a104d6c62336884155b9b5b32', style: { height: 'auto' }, class: "recaptcha-container" }, index.h("div", { key: 'c0e543408d7ec003b94e028d509de24d751b6640', ref: el => (this.recaptchaPlaceholderRef = el), style: { minWidth: '302px', minHeight: '76px' } })), this.recaptchaRes && (index.h("div", { key: '91725072934ace20e725406f1e25e09ec6c128ec', class: cn.cn('recaptcha-response', ((_e = this.recaptchaRes) === null || _e === void 0 ? void 0 : _e.status) === 'recallExists' ? 'reject-card ' : (((_f = this.recaptchaRes) === null || _f === void 0 ? void 0 : _f.status) === 'noRecall' ? 'success-card ' : 'warning-card ')) }, this.locale[(_g = this.recaptchaRes) === null || _g === void 0 ? void 0 : _g.status])))), index.h("flexible-container", { key: 'c5fbfdc87a45a37fef26584dd3f9ea106b065e37', isOpened: this.checkingUnauthorizedSSC, classes: "w-fit mx-auto" }, index.h("div", { key: 'c7cfcbeabde7fb7ba660ba44516651e9a120da64', class: "pt-[16px]" }, index.h("div", { key: '4c587133bba7c13b017e094ac00e5e3bb27583b1', class: "flex shift-skeleton flex-col gap-[8px]" }, index.h("strong", { key: 'f9753621e9518c8703f1256969ed003f03dd3bf9' }, this.locale.checkingTMC), index.h("div", { key: '93b39075a681369e91e9dc092613b1b3e2828479', class: "relative pt-[40px]" }, index.h("loading-spinner", { key: 'eaba439ebdb903576867bb4ef63f21a09581573e', isLoading: this.checkingUnauthorizedSSC }))))), index.h("div", { key: '9189f503b3505956059b2e0ee35f9cdcf05c8597', class: "mt-[32px] mx-auto w-fit max-w-full" }, index.h("div", { key: 'f65bd794f153ed5180a40e3d649660741d72062d', class: "bg-[#f6f6f6] h-[50px] flex items-center justify-center px-[16px] font-bold text-[18px]" }, this.locale.sscCampings), index.h("div", { key: '6c2af31696b01ed7e480398f5a7448448f179b74', class: "overflow-x-auto" }, index.h("information-table", { key: '6d1b59d89c46da69d0f6a57649bed703ff534e35', isLoading: this.isLoading, templateRow: templateRow, rows: rows, headers: tableHeaders }))))));
|
|
1420
1427
|
}
|
|
1421
1428
|
get el() { return index.getElement(this); }
|
|
1422
1429
|
static get watchers() { return {
|
|
@@ -8,7 +8,7 @@ var index = require('./index-CmK48vN3.js');
|
|
|
8
8
|
var types = require('./types-B3WMBBhs.js');
|
|
9
9
|
var type = require('./type-CFTS0FUJ.js');
|
|
10
10
|
var vehicleInfoLayout = require('./vehicle-info-layout-D0rI_Rfz.js');
|
|
11
|
-
var getLocalLanguage = require('./get-local-language-
|
|
11
|
+
var getLocalLanguage = require('./get-local-language-BHgGjV5c.js');
|
|
12
12
|
require('./cn-BHnqYtun.js');
|
|
13
13
|
|
|
14
14
|
const vehicleLookupWrapperSchema = types.create$3({
|
|
@@ -42,6 +42,7 @@ const VehicleLookup = class {
|
|
|
42
42
|
this.activeElement = '';
|
|
43
43
|
this.baseUrl = '';
|
|
44
44
|
this.isDev = false;
|
|
45
|
+
this.disableVinValidation = false;
|
|
45
46
|
this.queryString = '';
|
|
46
47
|
this.blazorErrorStateListener = '';
|
|
47
48
|
this.blazorOnLoadingStateChange = '';
|
|
@@ -163,13 +164,13 @@ const VehicleLookup = class {
|
|
|
163
164
|
if (!Object.values(componentTags).includes(this.activeElement))
|
|
164
165
|
return index.h("div", { class: "w-full h-[200px] text-[26px] text-red-600 flex items-center justify-center" }, "Invalid tag");
|
|
165
166
|
const componentList = {
|
|
166
|
-
'vehicle-specification': (index.h("vehicle-specification", Object.assign({ coreOnly: true, isDev: this.isDev, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehicleSpecification }, props[componentTags.vehicleSpecification]))),
|
|
167
|
-
'vehicle-accessories': (index.h("vehicle-accessories", Object.assign({ coreOnly: true, isDev: this.isDev, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehicleAccessories }, props[componentTags.vehicleAccessories]))),
|
|
168
|
-
'vehicle-sale-information': (index.h("vehicle-sale-information", Object.assign({ coreOnly: true, isDev: this.isDev, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehicleSaleInformation }, props[componentTags.vehicleSaleInformation]))),
|
|
169
|
-
'vehicle-warranty-details': (index.h("vehicle-warranty-details", Object.assign({ coreOnly: true, "show-ssc": "true", isDev: this.isDev, "show-warranty": "true", "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehicleWarrantyDetails }, props[componentTags.vehicleWarrantyDetails]))),
|
|
170
|
-
'vehicle-service-history': (index.h("vehicle-service-history", Object.assign({ coreOnly: true, isDev: this.isDev, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehicleServiceHistory }, props[componentTags.vehicleServiceHistory]))),
|
|
171
|
-
'vehicle-paint-thickness': (index.h("vehicle-paint-thickness", Object.assign({ coreOnly: true, isDev: this.isDev, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehiclePaintThickness }, props[componentTags.vehiclePaintThickness]))),
|
|
172
|
-
'vehicle-claimable-items': (index.h("vehicle-claimable-items", Object.assign({ coreOnly: true, isDev: this.isDev, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehicleClaimableItems }, props[componentTags.vehicleClaimableItems]))),
|
|
167
|
+
'vehicle-specification': (index.h("vehicle-specification", Object.assign({ coreOnly: true, isDev: this.isDev, disableVinValidation: this.disableVinValidation, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehicleSpecification }, props[componentTags.vehicleSpecification]))),
|
|
168
|
+
'vehicle-accessories': (index.h("vehicle-accessories", Object.assign({ coreOnly: true, isDev: this.isDev, disableVinValidation: this.disableVinValidation, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehicleAccessories }, props[componentTags.vehicleAccessories]))),
|
|
169
|
+
'vehicle-sale-information': (index.h("vehicle-sale-information", Object.assign({ coreOnly: true, isDev: this.isDev, disableVinValidation: this.disableVinValidation, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehicleSaleInformation }, props[componentTags.vehicleSaleInformation]))),
|
|
170
|
+
'vehicle-warranty-details': (index.h("vehicle-warranty-details", Object.assign({ coreOnly: true, "show-ssc": "true", isDev: this.isDev, disableVinValidation: this.disableVinValidation, "show-warranty": "true", "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehicleWarrantyDetails }, props[componentTags.vehicleWarrantyDetails]))),
|
|
171
|
+
'vehicle-service-history': (index.h("vehicle-service-history", Object.assign({ coreOnly: true, isDev: this.isDev, disableVinValidation: this.disableVinValidation, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehicleServiceHistory }, props[componentTags.vehicleServiceHistory]))),
|
|
172
|
+
'vehicle-paint-thickness': (index.h("vehicle-paint-thickness", Object.assign({ coreOnly: true, isDev: this.isDev, disableVinValidation: this.disableVinValidation, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehiclePaintThickness }, props[componentTags.vehiclePaintThickness]))),
|
|
173
|
+
'vehicle-claimable-items': (index.h("vehicle-claimable-items", Object.assign({ coreOnly: true, isDev: this.isDev, disableVinValidation: this.disableVinValidation, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehicleClaimableItems }, props[componentTags.vehicleClaimableItems]))),
|
|
173
174
|
};
|
|
174
175
|
return (index.h(index.Host, null, index.h(vehicleInfoLayout.VehicleInfoLayout, { isError: this.isError, header: this.currentVin, isLoading: this.isLoading, direction: this.locale.direction, errorMessage: this.errorMessage || this.locale.errors.wildCard }, index.h("shift-tab-content", { components: componentList, activeComponent: this.activeElement }))));
|
|
175
176
|
}
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
var index = require('./index-CmK48vN3.js');
|
|
8
8
|
var types = require('./types-B3WMBBhs.js');
|
|
9
|
-
var loaderIcon = require('./loader-icon-
|
|
9
|
+
var loaderIcon = require('./loader-icon-C4vy1OWp.js');
|
|
10
10
|
var cn = require('./cn-BHnqYtun.js');
|
|
11
|
-
var getLanguageFromUrl = require('./get-language-from-url-
|
|
12
|
-
require('./get-local-language-
|
|
11
|
+
var getLanguageFromUrl = require('./get-language-from-url-BDxORAGO.js');
|
|
12
|
+
require('./get-local-language-BHgGjV5c.js');
|
|
13
13
|
require('./index-D5c513Xn.js');
|
|
14
14
|
|
|
15
15
|
const cachedImages = {};
|
|
@@ -436,9 +436,9 @@ const VehicleQuotationForm = class {
|
|
|
436
436
|
// #endregion
|
|
437
437
|
render() {
|
|
438
438
|
var _a, _b;
|
|
439
|
-
return (index.h(index.Host, { key: '
|
|
439
|
+
return (index.h(index.Host, { key: '9acb7e79cb87c434aecf3ff28e3ef086ab042ddf' }, index.h("div", { key: 'd56142fcb6fc8d6fda2099630ba3938269e61f9d', part: `vehicle-quotation-${(_b = (_a = this.structure) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.theme}` }, index.h("div", { key: 'f8fd9fb854edcde5792064070f59bacdc04f9f40', part: "form-container", class: "relative min-h-[150px]" }, index.h("div", { key: '636c542bcf82f91e8e9556fa75842bdadd821a15', part: "form-loader-container", class: cn.cn('form-loader-container absolute top-0 left-0 w-full h-full pointer-events-none flex justify-center items-center transition-opacity duration-500', {
|
|
440
440
|
'opacity-0': this.structureRendered,
|
|
441
|
-
}) }, index.h(loaderIcon.LoaderIcon, { key: '
|
|
441
|
+
}) }, index.h(loaderIcon.LoaderIcon, { key: 'ffc62355f0d550b34838b6beb87e025fd101e0c7', part: "form-loader-icon", class: "img" })), index.h("flexible-container", { key: '1abd678991ad23b63e6874fd201f847fc3202f45', onlyForMounting: true, isOpened: this.structureRendered }, !!this.form && (index.h("form-structure", { key: '34db9a091eec0bbd222222d9bb9286f37c4411bf', form: this.form, fields: this.fields, formId: this.formId, formLocale: this.locale, structure: this.structure, isLoading: this.isLoading, language: this.localeLanguage, errorMessage: this.errorMessage, formElementMapper: vehicleQuotationElements, successMessage: this.locale['Form submitted successfully.'] }, index.h("slot", { key: 'ec6aaf3fcd5115433071faaf64f311b3f0c6d056' }))))))));
|
|
442
442
|
}
|
|
443
443
|
get el() { return index.getElement(this); }
|
|
444
444
|
static get watchers() { return {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
var index = require('./index-CmK48vN3.js');
|
|
8
|
+
var cn = require('./cn-BHnqYtun.js');
|
|
9
|
+
|
|
10
|
+
const FormInputPrefix = ({ direction, prefix, name }) => {
|
|
11
|
+
if (!prefix)
|
|
12
|
+
return false;
|
|
13
|
+
return (index.h("div", { dir: direction, class: "form-input-prefix", part: cn.cn('form-input-prefix', {
|
|
14
|
+
[`${name}-prefix`]: !!name,
|
|
15
|
+
}) }, prefix));
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const whiteLoaderSvg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IndoaXRlIgogICAgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWxvYWRlciI+CiAgICA8cGF0aCBkPSJNMTIgMnY0IiAvPgogICAgPHBhdGggZD0ibTE2LjIgNy44IDIuOS0yLjkiIC8+CiAgICA8cGF0aCBkPSJNMTggMTJoNCIgLz4KICAgIDxwYXRoIGQ9Im0xNi4yIDE2LjIgMi45IDIuOSIgLz4KICAgIDxwYXRoIGQ9Ik0xMiAxOHY0IiAvPgogICAgPHBhdGggZD0ibTQuOSAxOS4xIDIuOS0yLjkiIC8+CiAgICA8cGF0aCBkPSJNMiAxMmg0IiAvPgogICAgPHBhdGggZD0ibTQuOSA0LjkgMi45IDIuOSIgLz4KPC9zdmc+';
|
|
19
|
+
|
|
20
|
+
exports.FormInputPrefix = FormInputPrefix;
|
|
21
|
+
exports.whiteLoaderSvg = whiteLoaderSvg;
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
"components/form-elements/form-phone-number.js",
|
|
19
19
|
"components/form-elements/form-picker-input.js",
|
|
20
20
|
"components/form-elements/form-shadow-input.js",
|
|
21
|
+
"components/form-elements/form-step-control.js",
|
|
22
|
+
"components/form-elements/form-stepper-submit.js",
|
|
21
23
|
"components/form-elements/form-structure-error.js",
|
|
22
24
|
"components/form-elements/form-submit.js",
|
|
23
25
|
"components/form-elements/form-switch.js",
|