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
|
@@ -6,12 +6,14 @@ import { Host, h } from "@stencil/core";
|
|
|
6
6
|
import generalSchema from "../../locales/general/type";
|
|
7
7
|
import { getLocaleLanguage, getSharedLocal, sharedLocalesSchema } from "../../features/multi-lingual/index";
|
|
8
8
|
import { renderStructure } from "../../features/form-hook/index";
|
|
9
|
+
import cn from "../../global/lib/cn";
|
|
9
10
|
export class FormStructure {
|
|
10
11
|
constructor() {
|
|
11
12
|
// #region Localization
|
|
12
13
|
this.formLocale = {};
|
|
13
14
|
this.language = 'en';
|
|
14
15
|
this.locale = Object.assign({ sharedLocales: sharedLocalesSchema.getDefault() }, generalSchema.getDefault());
|
|
16
|
+
this.currentStep = 1;
|
|
15
17
|
}
|
|
16
18
|
async componentWillLoad() {
|
|
17
19
|
this.form.formStructure = this;
|
|
@@ -29,7 +31,7 @@ export class FormStructure {
|
|
|
29
31
|
}, 300);
|
|
30
32
|
}
|
|
31
33
|
render() {
|
|
32
|
-
var _a;
|
|
34
|
+
var _a, _b, _c, _d;
|
|
33
35
|
const [locale] = this.form.getFormLocale();
|
|
34
36
|
const generalProps = {
|
|
35
37
|
form: this.form,
|
|
@@ -41,7 +43,13 @@ export class FormStructure {
|
|
|
41
43
|
if (!this.structure)
|
|
42
44
|
return h("form-structure-error", { language: this.language });
|
|
43
45
|
const { formController, resetFormErrorMessage } = this.form;
|
|
44
|
-
return (h(Host, null, h("form", Object.assign({ id: this.formId, class: "relative", dir: this.locale.sharedLocales.direction }, formController), h("form-dialog", { dialogClosed: resetFormErrorMessage, isError: !!this.errorMessage, closeText: (_a = locale === null || locale === void 0 ? void 0 : locale.sharedFormLocales) === null || _a === void 0 ? void 0 : _a.close, form: this.form, message: this.errorMessage }, h("div", { class: "form-success-container" }, h("svg", { fill: "none", "stroke-width": "2", viewBox: "0 0 24 24", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", xmlns: "http://www.w3.org/2000/svg", class: "size-[70px] stroke-green-700" }, h("path", { d: "M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z" }), h("path", { d: "m9 12 2 2 4-4" })), this.successMessage)), h("div",
|
|
46
|
+
return (h(Host, null, h("form", Object.assign({ id: this.formId, class: "relative", dir: this.locale.sharedLocales.direction }, formController), h("form-dialog", { dialogClosed: resetFormErrorMessage, isError: !!this.errorMessage, closeText: (_a = locale === null || locale === void 0 ? void 0 : locale.sharedFormLocales) === null || _a === void 0 ? void 0 : _a.close, form: this.form, message: this.errorMessage }, h("div", { class: "form-success-container" }, h("svg", { fill: "none", "stroke-width": "2", viewBox: "0 0 24 24", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", xmlns: "http://www.w3.org/2000/svg", class: "size-[70px] stroke-green-700" }, h("path", { d: "M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z" }), h("path", { d: "m9 12 2 2 4-4" })), this.successMessage)), h("div", { class: "relative overflow-hidden grid grid-cols-1 grid-rows-1" }, !((_b = this === null || this === void 0 ? void 0 : this.structure) === null || _b === void 0 ? void 0 : _b.steps) && renderStructure(this.structure, this.formElementMapper, generalProps, this.fields, this.currentStep), !!((_c = this === null || this === void 0 ? void 0 : this.structure) === null || _c === void 0 ? void 0 : _c.steps) &&
|
|
47
|
+
((_d = this === null || this === void 0 ? void 0 : this.structure) === null || _d === void 0 ? void 0 : _d.steps.map((_, i) => (h("div", { class: cn('col-start-1 row-start-1 transition-all !duration-700', {
|
|
48
|
+
'pointer-events-none! *:pointer-events-none!': this.currentStep !== i + 1,
|
|
49
|
+
'translate-x-full rtl:-translate-x-full opacity-0': this.currentStep < i + 1,
|
|
50
|
+
'translate-x-0 opacity-100': this.currentStep === i + 1,
|
|
51
|
+
'-translate-x-full rtl:translate-x-full opacity-0': this.currentStep > i + 1,
|
|
52
|
+
}) }, renderStructure(this.structure, this.formElementMapper, generalProps, this.fields, i + 1)))))), h("button", { formnovalidate: true, type: "submit", class: "hidden" }))));
|
|
45
53
|
}
|
|
46
54
|
static get is() { return "form-structure"; }
|
|
47
55
|
static get originalStyleUrls() {
|
|
@@ -226,7 +234,7 @@ export class FormStructure {
|
|
|
226
234
|
"mutable": false,
|
|
227
235
|
"complexType": {
|
|
228
236
|
"original": "FormElementStructure<any>",
|
|
229
|
-
"resolved": "{ data?: Record<string, any>; requiredContext?: Record<string, boolean>; } & { id?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: any[]; } & { tag: string; name?: any; } | { data?: Record<string, any>; requiredContext?: Record<string, boolean>; } & { id?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: any[]; } & { tag?: string; name: any; }",
|
|
237
|
+
"resolved": "{ steps?: Record<LanguageKeys, Step>[]; data?: Record<string, any>; requiredContext?: Record<string, boolean>; } & { id?: string; step?: number; type?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: any[]; } & { tag: string; name?: any; } | { steps?: Record<LanguageKeys, Step>[]; data?: Record<string, any>; requiredContext?: Record<string, boolean>; } & { id?: string; step?: number; type?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: any[]; } & { tag?: string; name: any; }",
|
|
230
238
|
"references": {
|
|
231
239
|
"FormElementStructure": {
|
|
232
240
|
"location": "import",
|
|
@@ -273,7 +281,8 @@ export class FormStructure {
|
|
|
273
281
|
static get states() {
|
|
274
282
|
return {
|
|
275
283
|
"locale": {},
|
|
276
|
-
"formContent": {}
|
|
284
|
+
"formContent": {},
|
|
285
|
+
"currentStep": {}
|
|
277
286
|
};
|
|
278
287
|
}
|
|
279
288
|
static get watchers() {
|
|
@@ -23,9 +23,9 @@ export class FormSubmit {
|
|
|
23
23
|
var _a, _b;
|
|
24
24
|
const [locale, language] = this.form.getFormLocale();
|
|
25
25
|
const submitText = ((_b = (_a = this.localization) === null || _a === void 0 ? void 0 : _a[language]) === null || _b === void 0 ? void 0 : _b.label) || getNestedValue(locale, this.submitTextKey) || getNestedValue(locale, 'sharedFormLocales.submit') || 'Submit';
|
|
26
|
-
return (h("button", { key: '
|
|
26
|
+
return (h("button", { key: '6c0babdded1ae5057221f60a55ea36d34472e8be', type: "submit", formnovalidate: true, part: buttonSubscriberKey, disabled: this.isLoading, class: cn('form-submit', {
|
|
27
27
|
loading: this.isLoading,
|
|
28
|
-
}) }, h("div", { key: '
|
|
28
|
+
}) }, h("div", { key: '18be88443c65059f1660ff66b0921c81d4b00061', part: "form-submit-text", class: "opacity-0 form-submit-text-style" }, submitText), h("div", { key: '5ee6a9d9a31f5bd152c75653b63165dd352bc41c', part: "form-submit-text", class: "form-submit-text-style form-submit-text-position" }, submitText), h("div", { key: 'ecaee019da090c5a8dbc55069527b8f4ae30a090', part: "form-submit-loading-container", class: "form-submit-loading-container" }, h("img", { key: 'a626e6ecb56d5e6648a56ec0435f7dd76f5a853a', part: "form-submit-loading-icon", class: "form-submit-loading-icon", src: Loader }))));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "form-submit"; }
|
|
31
31
|
static get originalStyleUrls() {
|
|
@@ -28,7 +28,7 @@ export class FormSwitch {
|
|
|
28
28
|
render() {
|
|
29
29
|
const { disabled, meta, errorMessage, isError } = this.form.getInputState(this.name);
|
|
30
30
|
const { label, errorTextMessage } = getInputLocalization(this, meta, errorMessage);
|
|
31
|
-
return (h(Host, { key: '
|
|
31
|
+
return (h(Host, { key: '6532223fcdbc020d0cb50597c9d278b54331ba2a' }, h("div", { key: '64f6d0756f758f3772a0ba9d744bc6119e079deb', part: `${this.name}`, id: this.wrapperId, class: cn('form-input-label-container', this.wrapperClass, disabled) }, h("div", { key: 'd5836f1707fa495c1f2a25e1b036d09bedcc11bb', part: `${this.name}-container form-input-container`, class: "form-input-container" }, h("shift-switch", { key: 'f18e548987b94f4ef4c5dcac128fa0fe68223640', name: this.name, label: label, class: "form-switch" })), h(FormErrorMessage, { key: '498a4178eedd90abc09ad4dabfeecd75bc0ae8ad', name: this.name, isError: isError, errorMessage: errorTextMessage }))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "form-switch"; }
|
|
34
34
|
static get originalStyleUrls() {
|
|
@@ -40,9 +40,9 @@ export class FormTextArea {
|
|
|
40
40
|
const { disabled, isRequired, meta, isError, errorMessage } = this.form.getInputState(this.name);
|
|
41
41
|
const { label, placeholder, errorTextMessage } = getInputLocalization(this, meta, errorMessage);
|
|
42
42
|
const isDisabled = disabled || this.isLoading || !!this.staticValue || this.isDisabled;
|
|
43
|
-
return (h(Host, { key: '
|
|
43
|
+
return (h(Host, { key: '25d338c4d007e177f32a9aca4e5b79277d8fc1bf' }, h("label", { key: '99e72449e79bfa13f639f50395feb330758cd041', part: `form-textarea ${this.name}`, id: this.wrapperId, class: cn('form-input-label-container', this.wrapperClass, { disabled: isDisabled }) }, h(FormInputLabel, { key: '95faa4295bfd7da486e1bf7917a8e5d2f04c13f4', name: this.name, isRequired: isRequired, label: label }), h("div", { key: '385013d6cda348752110e400370a5af65ec876af', part: `${this.name}-container form-input-container`, class: "form-input-container" }, h("textarea", { key: '36c92728aa1ab230a52fca245dd5d43489290e0d', name: this.name, disabled: isDisabled, placeholder: placeholder, part: `${this.name}-textarea form-input-textarea`, class: cn('form-input-style form-input-textarea-style', partKeyPrefix + this.name, {
|
|
44
44
|
'form-input-error-style': isError,
|
|
45
|
-
}) }, this.defaultValue)), h("div", { key: '
|
|
45
|
+
}) }, this.defaultValue)), h("div", { key: '71d74743769f550d1173ab981f6ecb1d50e84704', class: "-mt-1" }, h(FormErrorMessage, { key: '6bfc59c04b1c03fd4584eae544096c835517bc05', name: this.name, isError: isError, errorMessage: errorTextMessage })))));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "form-text-area"; }
|
|
48
48
|
static get originalStyleUrls() {
|
|
@@ -133,22 +133,22 @@ export class FormTimePicker {
|
|
|
133
133
|
const step = this.minuteStep || 1;
|
|
134
134
|
const hours = Array.from({ length: 24 }, (_, i) => i);
|
|
135
135
|
const minutes = Array.from({ length: Math.ceil(60 / step) }, (_, i) => i * step);
|
|
136
|
-
return (h(Host, { key: '
|
|
136
|
+
return (h(Host, { key: '6bb395aa80c55ed42349ae54a2c8fe80720097e8' }, h("label", { key: '46237f459fcf1d257063bf81967cb56a261780c4', part: this.name, id: this.wrapperId, class: cn('form-input-label-container', this.wrapperClass, { disabled: isDisabled }) }, h(FormInputLabel, { key: 'cd4c702c543e4434f9a702704a6d3aca9ffb80e7', isRequired: isRequired, label: label }), h("form-shadow-input", { key: '49b8b2be00be7ded1c24ff78c72fdc027891291d', name: this.name, form: this.form, value: this.selectedValue }), h("div", { key: 'ee765bca38085f4b480351f500a320ab7831fe16', part: `${this.name}-container form-input-container`, class: cn('form-input-container', { open: this.isOpen }) }, h("input", { key: '05f8706cafd330f2b2c85d7214499f87d75d9d5c', type: "text", readOnly: true, disabled: isDisabled, value: this.selectedValue, onClick: this.toggleDropdown, part: `${this.name}-input form-input`, placeholder: placeholder || (meta === null || meta === void 0 ? void 0 : meta.placeholder), class: cn('form-input-style form-input-select', {
|
|
137
137
|
'form-input-error-style': isError,
|
|
138
|
-
}) }), h("span", { key: '
|
|
138
|
+
}) }), h("span", { key: '1cd7d111f3960d3afe5c794dd98b2381c6e115d4', part: `${this.name}-icon form-time-picker-icon`, class: "form-input-icon form-input-icon-end" }, h("svg", { key: 'd2cca338ce36c8a6b4315d10775ed9d55a868b2b', "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "size-full" }, h("circle", { key: '08c27a1894c484a88798cb3df72bdb1fbdb2fd34', cx: "12", cy: "12", r: "10" }), h("polyline", { key: 'b9fa78fb5952509356073347c3939882a246992a', points: "12 6 12 12 16 14" }))), h("div", { key: '4fe84cefc23de47de14f9bdd2b153af70b6d6c0c', part: `${this.name}-dropdown form-time-picker-dropdown`, class: cn('form-picker-dropdown', {
|
|
139
139
|
upwards: this.openUpwards,
|
|
140
140
|
downwards: !this.openUpwards,
|
|
141
|
-
}) }, h("div", { key: '
|
|
141
|
+
}) }, h("div", { key: 'c4e77dd75e396bd9243784f154544b2e08969c9e', class: "form-time-picker-columns" }, h("div", { key: 'aa0c2cf38a0a558e04ce52a4b09230ec786e1ac8', class: "form-time-picker-column form-time-picker-hours" }, h("div", { key: 'e56babd3bd98531828a1fecd3afddf28c0c0fe33', class: "form-time-picker-column-header" }, "HH"), hours.map(hour => {
|
|
142
142
|
const hourDisabled = this.isHourDisabled(hour);
|
|
143
143
|
return (h("button", { type: "button", disabled: hourDisabled, onClick: () => this.selectHour(hour), part: cn('form-time-picker-option', { 'form-time-picker-option-selected': hour === selectedHour }), class: cn('form-time-picker-option', {
|
|
144
144
|
selected: hour === selectedHour,
|
|
145
145
|
}) }, String(hour).padStart(2, '0')));
|
|
146
|
-
})), h("div", { key: '
|
|
146
|
+
})), h("div", { key: '228759852fb08dcda55e0eca20b8c4a470258ceb', class: "form-time-picker-column form-time-picker-minutes" }, h("div", { key: '70505b645d08d64327da02c4339e206f4873970b', class: "form-time-picker-column-header" }, "MM"), minutes.map(minute => {
|
|
147
147
|
const minuteDisabled = selectedHour >= 0 ? this.isMinuteDisabled(selectedHour, minute) : false;
|
|
148
148
|
return (h("button", { type: "button", disabled: minuteDisabled, onClick: () => this.selectMinute(minute), part: cn('form-time-picker-option', { 'form-time-picker-option-selected': minute === selectedMinute }), class: cn('form-time-picker-option', {
|
|
149
149
|
selected: minute === selectedMinute,
|
|
150
150
|
}) }, String(minute).padStart(2, '0')));
|
|
151
|
-
}))))), h(FormErrorMessage, { key: '
|
|
151
|
+
}))))), h(FormErrorMessage, { key: 'fa968f4a57a55591fe330f535eba20ea566089ea', name: this.name, isError: isError, errorMessage: locale[errorMessage] || errorMessage }))));
|
|
152
152
|
}
|
|
153
153
|
static get is() { return "form-time-picker"; }
|
|
154
154
|
static get originalStyleUrls() {
|
|
@@ -52,9 +52,9 @@ export class FormVinInput {
|
|
|
52
52
|
const { label, placeholder, errorTextMessage } = getInputLocalization(this, meta, errorMessage);
|
|
53
53
|
const isDisabled = disabled || this.isLoading || !!this.staticValue || this.isDisabled;
|
|
54
54
|
const extractorTitle = ((_b = (_a = this.localization) === null || _a === void 0 ? void 0 : _a[language]) === null || _b === void 0 ? void 0 : _b.scan) || ((_j = (_g = (_f = (_e = (_d = (_c = this.form) === null || _c === void 0 ? void 0 : _c.context) === null || _d === void 0 ? void 0 : _d.structure) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.localization) === null || _g === void 0 ? void 0 : _g[(_h = this.form.context) === null || _h === void 0 ? void 0 : _h.language]) === null || _j === void 0 ? void 0 : _j['vin-scan']) || 'Scan Your VIN';
|
|
55
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: 'bd1fd8e6c87e3e9abb1e2dc17990ecbb65beb662' }, h("label", { key: 'ee832844db1d09c8aa4edf37e489465e1ec44a0d', part: this.name, id: this.wrapperId, class: cn('form-input-label-container', this.wrapperClass, { disabled: isDisabled }) }, h(FormInputLabel, { key: 'd32032c849295466d5e0717563bd605856b41757', isRequired: isRequired, label: label }), h("div", { key: '8ee4a1644f42224dbebd531a87936ea7b1c4231d', part: `${this.name}-container form-input-container`, class: "form-input-container" }, h(FormInputPrefix, { key: 'da01cd2329b03e0641a652dcb88cf688abc5e80c', name: this.name, direction: (_k = locale === null || locale === void 0 ? void 0 : locale.sharedFormLocales) === null || _k === void 0 ? void 0 : _k.direction, prefix: this.inputPrefix }), h("input", Object.assign({ key: '060b7676b9d947f2e104b6cf7f1ac020a85acc43' }, this.inputProps, { name: this.name, disabled: isDisabled, defaultValue: this.defaultValue, part: `${this.name}-input form-input`, placeholder: placeholder || (meta === null || meta === void 0 ? void 0 : meta.placeholder), style: Object.assign({}, (this.prefixWidth ? { [((_l = locale === null || locale === void 0 ? void 0 : locale.sharedFormLocales) === null || _l === void 0 ? void 0 : _l.direction) === 'rtl' ? 'paddingRight' : 'paddingLeft']: `${this.prefixWidth}px` } : {})), class: cn('form-input-style !uppercase', part, {
|
|
56
56
|
'form-input-error-style': isError,
|
|
57
|
-
}) })), !!this.scannerIcon && (this.useOcr || this.readSticker) && (h("button", { key: '
|
|
57
|
+
}) })), !!this.scannerIcon && (this.useOcr || this.readSticker) && (h("button", { key: '2231cb8c49d60a42e800d517545c6eebd4c22a3c', type: "button", disabled: isDisabled, part: cn('vin-validator', part + '-vin'), onClick: () => { var _a; return (_a = this === null || this === void 0 ? void 0 : this.el.getElementsByTagName('vin-extractor')[0]) === null || _a === void 0 ? void 0 : _a.open(); }, class: "absolute transition-all duration-500 disabled:!pointer-events-none disabled:!opacity-0 flex justify-center items-center end-3.5 !text-[#576675] enabled:hover:!text-black/85 aspect-square h-[70%] top-1/2 -translate-y-1/2" }, this.scannerIcon === 'qr-code' && h(QrCodeScanIcon, { key: '81abcee962204c97374507f7182b9695beccae43', class: "size-[90%] text-inherit" }), this.scannerIcon === 'camera' && h(CameraIcon, { key: '0c174dddeb5ca73526a838dd81c385a5e9a95ac5', class: "size-[90%] text-inherit" })))), h(FormErrorMessage, { key: 'e41bbe4f4c81e0ba3798ad6a4ab9ba1ddc19b7fd', name: this.name, isError: isError, errorMessage: errorTextMessage })), (this.useOcr || this.readSticker) && (h("div", { key: '9b2e4997dca4fd82c6f821616f3c78a355f1f873', class: "absolute" }, h("vin-extractor", { key: 'fe2371fd6184a21c9602736fa99301e442d8a580', verbose: true, manualCapture: true, useOcr: this.useOcr, title: extractorTitle, skipValidation: false, readSticker: this.readSticker, ocrEndpoint: this.ocrEndpoint, onExtract: newVin => {
|
|
58
58
|
var _a, _b;
|
|
59
59
|
this.inputRef.value = newVin;
|
|
60
60
|
(_a = this.form) === null || _a === void 0 ? void 0 : _a.validateInput(this === null || this === void 0 ? void 0 : this.name);
|
|
@@ -9,11 +9,11 @@ import { CalendarDaysIcon } from "../../../global/assets/calendar-days-icon";
|
|
|
9
9
|
import { format, isBefore, isEqual } from "date-fns";
|
|
10
10
|
import { decodeTimeOffset } from "../../../global/lib/decode-time-offset";
|
|
11
11
|
import { populateItems } from "../../../global/lib/populate-items";
|
|
12
|
-
export const getFormMappers = (stateObject, extraMappers = {}) => (Object.assign({ submit: ({ props }) => h("form-submit", Object.assign({}, props)), name: ({ props }) => h("form-input", Object.assign({}, props)), lastName: ({ props }) => h("form-input", Object.assign({}, props)), email: ({ props }) => h("form-input", Object.assign({ type: "email" }, props)), message: ({ props }) => h("form-text-area", Object.assign({}, props)), vin: ({ props }) => h("form-vin-input", Object.assign({}, props)), vehicleImage: ({ form }) => h(VehicleImageViewer, { form: form }), phone: ({ props, isLoading }) => {
|
|
12
|
+
export const getFormMappers = (stateObject, extraMappers = {}) => (Object.assign({ submit: ({ props }) => h("form-submit", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props)), stepperSubmit: ({ props }) => 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 }) => h("form-input", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props)), lastName: ({ props }) => h("form-input", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props)), email: ({ props }) => h("form-input", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name, type: "email" }, props)), message: ({ props }) => h("form-text-area", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props)), vin: ({ props }) => h("form-vin-input", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props)), vehicleImage: ({ form }) => h(VehicleImageViewer, { form: form }), phone: ({ props, isLoading }) => {
|
|
13
13
|
if (!stateObject.phoneValidator) {
|
|
14
14
|
stateObject.phoneValidator = getPhoneValidator((props === null || props === void 0 ? void 0 : props.countryCode) || '');
|
|
15
15
|
}
|
|
16
|
-
return h("form-phone-number", Object.assign({ defaultValue: stateObject.phoneValidator.default }, props, { isLoading: isLoading, validator: stateObject.phoneValidator }));
|
|
16
|
+
return 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 }));
|
|
17
17
|
}, vehicle: ({ language, props }) => {
|
|
18
18
|
const fetcher = async ({ signal, context }) => {
|
|
19
19
|
var _a, _b;
|
|
@@ -69,7 +69,7 @@ export const getFormMappers = (stateObject, extraMappers = {}) => (Object.assign
|
|
|
69
69
|
context.defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue;
|
|
70
70
|
return options;
|
|
71
71
|
};
|
|
72
|
-
return h("form-select", Object.assign({}, props, { searchable: true, fetcher: fetcher, language: language }));
|
|
72
|
+
return h("form-select", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props, { searchable: true, fetcher: fetcher, language: language }));
|
|
73
73
|
}, companyBranchId: ({ language, props }) => {
|
|
74
74
|
const fetcher = async ({ signal }) => {
|
|
75
75
|
const dealerEndpoint = props === null || props === void 0 ? void 0 : props.branchApi;
|
|
@@ -81,7 +81,7 @@ export const getFormMappers = (stateObject, extraMappers = {}) => (Object.assign
|
|
|
81
81
|
}));
|
|
82
82
|
return options;
|
|
83
83
|
};
|
|
84
|
-
return h("form-select", Object.assign({}, props, { clearable: true, searchable: true, fetcher: fetcher, language: language }));
|
|
84
|
+
return h("form-select", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props, { clearable: true, searchable: true, fetcher: fetcher, language: language }));
|
|
85
85
|
}, cityId: ({ language, props }) => {
|
|
86
86
|
const fetcher = async ({ signal }) => {
|
|
87
87
|
const dealerEndpoint = props === null || props === void 0 ? void 0 : props.cityApi;
|
|
@@ -93,7 +93,7 @@ export const getFormMappers = (stateObject, extraMappers = {}) => (Object.assign
|
|
|
93
93
|
}));
|
|
94
94
|
return options;
|
|
95
95
|
};
|
|
96
|
-
return h("form-select", Object.assign({}, props, { clearable: true, searchable: true, fetcher: fetcher, language: language }));
|
|
96
|
+
return h("form-select", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props, { clearable: true, searchable: true, fetcher: fetcher, language: language }));
|
|
97
97
|
}, date: ({ props }) => h("form-picker-input", Object.assign({ type: "date" }, props, { icon: h(CalendarDaysIcon, null) })), time: ({ language, props }) => {
|
|
98
98
|
const fetcher = async () => {
|
|
99
99
|
const options = [];
|
|
@@ -110,7 +110,7 @@ export const getFormMappers = (stateObject, extraMappers = {}) => (Object.assign
|
|
|
110
110
|
}
|
|
111
111
|
return options;
|
|
112
112
|
};
|
|
113
|
-
return h("form-select", Object.assign({}, props, { clearable: true, fetcher: fetcher, language: language }));
|
|
113
|
+
return h("form-select", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props, { clearable: true, fetcher: fetcher, language: language }));
|
|
114
114
|
}, currentVehicleBrand: ({ form, language, props, locale }) => {
|
|
115
115
|
const fetcher = async ({ signal }) => {
|
|
116
116
|
var _a;
|
|
@@ -129,7 +129,7 @@ export const getFormMappers = (stateObject, extraMappers = {}) => (Object.assign
|
|
|
129
129
|
},
|
|
130
130
|
];
|
|
131
131
|
};
|
|
132
|
-
return h("form-select", Object.assign({}, props, { searchable: true, fetcher: fetcher, language: language }));
|
|
132
|
+
return h("form-select", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props, { searchable: true, fetcher: fetcher, language: language }));
|
|
133
133
|
}, currentVehicleModel: ({ form, language, props, locale }) => {
|
|
134
134
|
form.addWatcher('currentVehicleBrand');
|
|
135
135
|
const currentVehicleBrand = form === null || form === void 0 ? void 0 : form.getValue('currentVehicleBrand');
|
|
@@ -148,7 +148,7 @@ export const getFormMappers = (stateObject, extraMappers = {}) => (Object.assign
|
|
|
148
148
|
},
|
|
149
149
|
];
|
|
150
150
|
};
|
|
151
|
-
return (h("form-select", Object.assign({}, props, { searchable: true, fetcher: fetcher, language: language, resetKey: currentVehicleBrand, fetcherKey: currentVehicleBrand, isRequired: currentVehicleBrand !== 'Other', isDisabled: !currentVehicleBrand || currentVehicleBrand === 'Other' })));
|
|
151
|
+
return (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' })));
|
|
152
152
|
}, ownVehicle: ({ language, props }) => {
|
|
153
153
|
const fetcher = async ({}) => {
|
|
154
154
|
var _a, _b, _c, _d;
|
|
@@ -163,7 +163,7 @@ export const getFormMappers = (stateObject, extraMappers = {}) => (Object.assign
|
|
|
163
163
|
},
|
|
164
164
|
];
|
|
165
165
|
};
|
|
166
|
-
return h("form-select", Object.assign({}, props, { fetcher: fetcher, language: language }));
|
|
166
|
+
return h("form-select", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props, { fetcher: fetcher, language: language }));
|
|
167
167
|
}, conditionalCurrentVehicleBrand: ({ form, language, props, locale }) => {
|
|
168
168
|
form.addWatcher('ownVehicle');
|
|
169
169
|
const ownVehicle = (form === null || form === void 0 ? void 0 : form.getValue('ownVehicle')) === 'yes';
|
|
@@ -183,7 +183,7 @@ export const getFormMappers = (stateObject, extraMappers = {}) => (Object.assign
|
|
|
183
183
|
},
|
|
184
184
|
];
|
|
185
185
|
};
|
|
186
|
-
return h("form-select", Object.assign({}, props, { searchable: true, fetcher: fetcher, language: language, resetKey: ownVehicle, isRequired: ownVehicle, isDisabled: !ownVehicle }));
|
|
186
|
+
return 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 }));
|
|
187
187
|
}, conditionalCurrentVehicleModel: ({ form, language, props, locale }) => {
|
|
188
188
|
form.addWatcher('ownVehicle');
|
|
189
189
|
form.addWatcher('conditionalCurrentVehicleBrand');
|
|
@@ -204,5 +204,5 @@ export const getFormMappers = (stateObject, extraMappers = {}) => (Object.assign
|
|
|
204
204
|
},
|
|
205
205
|
];
|
|
206
206
|
};
|
|
207
|
-
return (h("form-select", Object.assign({}, props, { searchable: true, fetcher: fetcher, language: language, resetKey: currentVehicleBrand, fetcherKey: currentVehicleBrand, isRequired: ownVehicle && currentVehicleBrand !== 'Other', isDisabled: !currentVehicleBrand || currentVehicleBrand === 'Other' })));
|
|
207
|
+
return (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' })));
|
|
208
208
|
} }, extraMappers));
|
|
@@ -75,9 +75,9 @@ export class GeneralInquiryForm {
|
|
|
75
75
|
// #endregion
|
|
76
76
|
render() {
|
|
77
77
|
var _a, _b;
|
|
78
|
-
return (h(Host, { key: '
|
|
78
|
+
return (h(Host, { key: '192dc4b9a764ea3dc9df6727391d963b0a015a4e' }, h("div", { key: '6e767ca421ee08a1c2c0487d2cb768133fe788f3', part: 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) }, h("div", { key: '4a4cf85b3b0d227e9262eff4f28f9168e3686498', part: "form-container", class: "relative min-h-[150px]" }, h("div", { key: 'dbfe2a97074332b8a059c07be060a1473fd0b133', part: "form-loader-container", class: 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', {
|
|
79
79
|
'opacity-0': this.structureRendered,
|
|
80
|
-
}) }, h(LoaderIcon, { key: '
|
|
80
|
+
}) }, h(LoaderIcon, { key: '1ff8a1c5c6d68b02c4d78523331c3c28191e364a', part: "form-loader-icon", class: "img" })), h("flexible-container", { key: '858bba3ffb0ac528a6b77fdf080068f8113b0418', onlyForMounting: true, isOpened: this.structureRendered }, !!this.form && (h("form-structure", { key: '7e119ee3aeed1484a7344e72e43c22653da44363', 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.' }, h("slot", { key: '339f747bcc7d42e5036183efb28bc670e533de6a' }))))))));
|
|
81
81
|
}
|
|
82
82
|
static get is() { return "general-inquiry-form"; }
|
|
83
83
|
static get encapsulation() { return "shadow"; }
|
|
@@ -246,13 +246,31 @@ export class GeneralInquiryForm {
|
|
|
246
246
|
"getter": false,
|
|
247
247
|
"setter": false
|
|
248
248
|
},
|
|
249
|
+
"stepChangeCallback": {
|
|
250
|
+
"type": "unknown",
|
|
251
|
+
"attribute": "step-change-callback",
|
|
252
|
+
"mutable": false,
|
|
253
|
+
"complexType": {
|
|
254
|
+
"original": "(step: number, currentForm?: any) => void",
|
|
255
|
+
"resolved": "(step: number, currentForm?: any) => void",
|
|
256
|
+
"references": {}
|
|
257
|
+
},
|
|
258
|
+
"required": false,
|
|
259
|
+
"optional": true,
|
|
260
|
+
"docs": {
|
|
261
|
+
"tags": [],
|
|
262
|
+
"text": ""
|
|
263
|
+
},
|
|
264
|
+
"getter": false,
|
|
265
|
+
"setter": false
|
|
266
|
+
},
|
|
249
267
|
"structure": {
|
|
250
268
|
"type": "unknown",
|
|
251
269
|
"attribute": "structure",
|
|
252
270
|
"mutable": true,
|
|
253
271
|
"complexType": {
|
|
254
272
|
"original": "FormElementStructure<any> | undefined",
|
|
255
|
-
"resolved": "{ data?: Record<string, any>; requiredContext?: Record<string, boolean>; } & { id?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: any[]; } & { tag: string; name?: any; } | { data?: Record<string, any>; requiredContext?: Record<string, boolean>; } & { id?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: any[]; } & { tag?: string; name: any; }",
|
|
273
|
+
"resolved": "{ steps?: Record<LanguageKeys, Step>[]; data?: Record<string, any>; requiredContext?: Record<string, boolean>; } & { id?: string; step?: number; type?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: any[]; } & { tag: string; name?: any; } | { steps?: Record<LanguageKeys, Step>[]; data?: Record<string, any>; requiredContext?: Record<string, boolean>; } & { id?: string; step?: number; type?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: any[]; } & { tag?: string; name: any; }",
|
|
256
274
|
"references": {
|
|
257
275
|
"FormElementStructure": {
|
|
258
276
|
"location": "import",
|
|
@@ -58,9 +58,9 @@ export class ServiceBookingForm {
|
|
|
58
58
|
// #endregion
|
|
59
59
|
render() {
|
|
60
60
|
var _a, _b;
|
|
61
|
-
return (h(Host, { key: '
|
|
61
|
+
return (h(Host, { key: '2af991ae0e4fa193e3a097083d870e413e7b05ef' }, h("div", { key: '1675b47849c9452ab45e6c79dc7c401fc04c5de9', part: 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) }, h("div", { key: '0444c90e057429e3811b85b6ef9fde1ba7c39f1e', part: "form-container", class: "relative min-h-[150px]" }, h("div", { key: 'f71c4fcd02faa857a547b26d3658f016d6930496', part: "form-loader-container", class: 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', {
|
|
62
62
|
'opacity-0': this.structureRendered,
|
|
63
|
-
}) }, h(LoaderIcon, { key: '
|
|
63
|
+
}) }, h(LoaderIcon, { key: '6720a4bc6e2994fcf5ad85f86dafa66f637037ea', part: "form-loader-icon", class: "img" })), h("flexible-container", { key: '7bbac23f91a77e216cc86a1c03cfd2159da2f79d', onlyForMounting: true, isOpened: this.structureRendered }, !!this.form && (h("form-structure", { key: '119d13ebaf8d7bf07840f8af27eeee92961a6acc', 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.' }, h("slot", { key: '292dcb2f8240493ad088bac3b995771048c58d37' }))))))));
|
|
64
64
|
}
|
|
65
65
|
static get is() { return "service-booking-form"; }
|
|
66
66
|
static get encapsulation() { return "shadow"; }
|
|
@@ -229,13 +229,31 @@ export class ServiceBookingForm {
|
|
|
229
229
|
"getter": false,
|
|
230
230
|
"setter": false
|
|
231
231
|
},
|
|
232
|
+
"stepChangeCallback": {
|
|
233
|
+
"type": "unknown",
|
|
234
|
+
"attribute": "step-change-callback",
|
|
235
|
+
"mutable": false,
|
|
236
|
+
"complexType": {
|
|
237
|
+
"original": "(step: number, currentForm?: any) => void",
|
|
238
|
+
"resolved": "(step: number, currentForm?: any) => void",
|
|
239
|
+
"references": {}
|
|
240
|
+
},
|
|
241
|
+
"required": false,
|
|
242
|
+
"optional": true,
|
|
243
|
+
"docs": {
|
|
244
|
+
"tags": [],
|
|
245
|
+
"text": ""
|
|
246
|
+
},
|
|
247
|
+
"getter": false,
|
|
248
|
+
"setter": false
|
|
249
|
+
},
|
|
232
250
|
"structure": {
|
|
233
251
|
"type": "unknown",
|
|
234
252
|
"attribute": "structure",
|
|
235
253
|
"mutable": true,
|
|
236
254
|
"complexType": {
|
|
237
255
|
"original": "FormElementStructure<any> | undefined",
|
|
238
|
-
"resolved": "{ data?: Record<string, any>; requiredContext?: Record<string, boolean>; } & { id?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: any[]; } & { tag: string; name?: any; } | { data?: Record<string, any>; requiredContext?: Record<string, boolean>; } & { id?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: any[]; } & { tag?: string; name: any; }",
|
|
256
|
+
"resolved": "{ steps?: Record<LanguageKeys, Step>[]; data?: Record<string, any>; requiredContext?: Record<string, boolean>; } & { id?: string; step?: number; type?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: any[]; } & { tag: string; name?: any; } | { steps?: Record<LanguageKeys, Step>[]; data?: Record<string, any>; requiredContext?: Record<string, boolean>; } & { id?: string; step?: number; type?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: any[]; } & { tag?: string; name: any; }",
|
|
239
257
|
"references": {
|
|
240
258
|
"FormElementStructure": {
|
|
241
259
|
"location": "import",
|
|
@@ -69,9 +69,9 @@ export class SSCLookupForm {
|
|
|
69
69
|
// #endregion
|
|
70
70
|
render() {
|
|
71
71
|
var _a, _b;
|
|
72
|
-
return (h(Host, { key: '
|
|
72
|
+
return (h(Host, { key: 'ec3fdab595b43966f1f50d555708492d1edd402b' }, h("div", { key: 'ff3319025a62a4535e103bf42b48079de2fe4864', part: 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) }, h("div", { key: 'd708e16968cad0d2c991091444588939cf4a8068', part: "form-container", class: "relative min-h-[150px]" }, h("div", { key: '40311bfc56b69cebbe3d70e75b1abdf5ac4a87bd', part: "form-loader-container", class: 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', {
|
|
73
73
|
'opacity-0': this.structureRendered,
|
|
74
|
-
}) }, h(LoaderIcon, { key: '
|
|
74
|
+
}) }, h(LoaderIcon, { key: '98b35afbac62b677c5b03c3ab71222fa2d80fd72', part: "form-loader-icon", class: "img" })), h("flexible-container", { key: 'af134e0d41bb519c982cb16d65ce51d82cf7406c', onlyForMounting: true, isOpened: this.structureRendered }, !!this.form && (h("form-structure", { key: '5e7acaffe1b5f5567ead8e9eb0f09d85fd16c438', 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.' }, h("slot", { key: '47a12dca08ee749c10e6d73c4bfab009ced14c89' }))))))));
|
|
75
75
|
}
|
|
76
76
|
static get is() { return "ssc-lookup-form"; }
|
|
77
77
|
static get encapsulation() { return "shadow"; }
|
|
@@ -240,13 +240,31 @@ export class SSCLookupForm {
|
|
|
240
240
|
"getter": false,
|
|
241
241
|
"setter": false
|
|
242
242
|
},
|
|
243
|
+
"stepChangeCallback": {
|
|
244
|
+
"type": "unknown",
|
|
245
|
+
"attribute": "step-change-callback",
|
|
246
|
+
"mutable": false,
|
|
247
|
+
"complexType": {
|
|
248
|
+
"original": "(step: number, currentForm?: any) => void",
|
|
249
|
+
"resolved": "(step: number, currentForm?: any) => void",
|
|
250
|
+
"references": {}
|
|
251
|
+
},
|
|
252
|
+
"required": false,
|
|
253
|
+
"optional": true,
|
|
254
|
+
"docs": {
|
|
255
|
+
"tags": [],
|
|
256
|
+
"text": ""
|
|
257
|
+
},
|
|
258
|
+
"getter": false,
|
|
259
|
+
"setter": false
|
|
260
|
+
},
|
|
243
261
|
"structure": {
|
|
244
262
|
"type": "unknown",
|
|
245
263
|
"attribute": "structure",
|
|
246
264
|
"mutable": true,
|
|
247
265
|
"complexType": {
|
|
248
266
|
"original": "FormElementStructure<any> | undefined",
|
|
249
|
-
"resolved": "{ data?: Record<string, any>; requiredContext?: Record<string, boolean>; } & { id?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: any[]; } & { tag: string; name?: any; } | { data?: Record<string, any>; requiredContext?: Record<string, boolean>; } & { id?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: any[]; } & { tag?: string; name: any; }",
|
|
267
|
+
"resolved": "{ steps?: Record<LanguageKeys, Step>[]; data?: Record<string, any>; requiredContext?: Record<string, boolean>; } & { id?: string; step?: number; type?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: any[]; } & { tag: string; name?: any; } | { steps?: Record<LanguageKeys, Step>[]; data?: Record<string, any>; requiredContext?: Record<string, boolean>; } & { id?: string; step?: number; type?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: any[]; } & { tag?: string; name: any; }",
|
|
250
268
|
"references": {
|
|
251
269
|
"FormElementStructure": {
|
|
252
270
|
"location": "import",
|
|
@@ -58,9 +58,9 @@ export class TestDriveForm {
|
|
|
58
58
|
// #endregion
|
|
59
59
|
render() {
|
|
60
60
|
var _a, _b;
|
|
61
|
-
return (h(Host, { key: '
|
|
61
|
+
return (h(Host, { key: 'fab49ec7cbc4969dd4511b0939d553f736522cb1' }, h("div", { key: '506afbb9bbad45d22a03b0dcdcd1d5564338a568', part: 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) }, h("div", { key: '6c2052eff11adb5b8317299f4c9a65ca0a4356c5', part: "form-container", class: "relative min-h-[150px]" }, h("div", { key: '4a34ab6f134bdaeddf34ba1426ffd273c74a50c2', part: "form-loader-container", class: 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', {
|
|
62
62
|
'opacity-0': this.structureRendered,
|
|
63
|
-
}) }, h(LoaderIcon, { key: '
|
|
63
|
+
}) }, h(LoaderIcon, { key: '781356c6d37992f18a0f11306a0f661401033473', part: "form-loader-icon", class: "img" })), h("flexible-container", { key: '8985547d2568fc1315ab5d1e2607093063140bf0', onlyForMounting: true, isOpened: this.structureRendered }, !!this.form && (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.' }, h("slot", { key: '76920b66289cd0cf6086ff8b88a138f93cc71560' }))))))));
|
|
64
64
|
}
|
|
65
65
|
static get is() { return "test-drive-form"; }
|
|
66
66
|
static get encapsulation() { return "shadow"; }
|
|
@@ -229,13 +229,31 @@ export class TestDriveForm {
|
|
|
229
229
|
"getter": false,
|
|
230
230
|
"setter": false
|
|
231
231
|
},
|
|
232
|
+
"stepChangeCallback": {
|
|
233
|
+
"type": "unknown",
|
|
234
|
+
"attribute": "step-change-callback",
|
|
235
|
+
"mutable": false,
|
|
236
|
+
"complexType": {
|
|
237
|
+
"original": "(step: number, currentForm?: any) => void",
|
|
238
|
+
"resolved": "(step: number, currentForm?: any) => void",
|
|
239
|
+
"references": {}
|
|
240
|
+
},
|
|
241
|
+
"required": false,
|
|
242
|
+
"optional": true,
|
|
243
|
+
"docs": {
|
|
244
|
+
"tags": [],
|
|
245
|
+
"text": ""
|
|
246
|
+
},
|
|
247
|
+
"getter": false,
|
|
248
|
+
"setter": false
|
|
249
|
+
},
|
|
232
250
|
"structure": {
|
|
233
251
|
"type": "unknown",
|
|
234
252
|
"attribute": "structure",
|
|
235
253
|
"mutable": true,
|
|
236
254
|
"complexType": {
|
|
237
255
|
"original": "FormElementStructure<any> | undefined",
|
|
238
|
-
"resolved": "{ data?: Record<string, any>; requiredContext?: Record<string, boolean>; } & { id?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: any[]; } & { tag: string; name?: any; } | { data?: Record<string, any>; requiredContext?: Record<string, boolean>; } & { id?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: any[]; } & { tag?: string; name: any; }",
|
|
256
|
+
"resolved": "{ steps?: Record<LanguageKeys, Step>[]; data?: Record<string, any>; requiredContext?: Record<string, boolean>; } & { id?: string; step?: number; type?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: any[]; } & { tag: string; name?: any; } | { steps?: Record<LanguageKeys, Step>[]; data?: Record<string, any>; requiredContext?: Record<string, boolean>; } & { id?: string; step?: number; type?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: any[]; } & { tag?: string; name: any; }",
|
|
239
257
|
"references": {
|
|
240
258
|
"FormElementStructure": {
|
|
241
259
|
"location": "import",
|
|
@@ -148,9 +148,9 @@ export class VehicleQuotationForm {
|
|
|
148
148
|
// #endregion
|
|
149
149
|
render() {
|
|
150
150
|
var _a, _b;
|
|
151
|
-
return (h(Host, { key: '
|
|
151
|
+
return (h(Host, { key: '9acb7e79cb87c434aecf3ff28e3ef086ab042ddf' }, 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}` }, h("div", { key: 'f8fd9fb854edcde5792064070f59bacdc04f9f40', part: "form-container", class: "relative min-h-[150px]" }, h("div", { key: '636c542bcf82f91e8e9556fa75842bdadd821a15', part: "form-loader-container", class: 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', {
|
|
152
152
|
'opacity-0': this.structureRendered,
|
|
153
|
-
}) }, h(LoaderIcon, { key: '
|
|
153
|
+
}) }, h(LoaderIcon, { key: 'ffc62355f0d550b34838b6beb87e025fd101e0c7', part: "form-loader-icon", class: "img" })), h("flexible-container", { key: '1abd678991ad23b63e6874fd201f847fc3202f45', onlyForMounting: true, isOpened: this.structureRendered }, !!this.form && (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.'] }, h("slot", { key: 'ec6aaf3fcd5115433071faaf64f311b3f0c6d056' }))))))));
|
|
154
154
|
}
|
|
155
155
|
static get is() { return "vehicle-quotation-form"; }
|
|
156
156
|
static get encapsulation() { return "shadow"; }
|
|
@@ -325,7 +325,7 @@ export class VehicleQuotationForm {
|
|
|
325
325
|
"mutable": true,
|
|
326
326
|
"complexType": {
|
|
327
327
|
"original": "FormElementStructure<vehicleQuotationElementNames> | undefined",
|
|
328
|
-
"resolved": "{ data?: Record<string, any>; requiredContext?: Record<string, boolean>; } & { id?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: (OptionalKeys<{ vehicle: string; name: string; phone: string; dealer: string; city: string; paymentType: string; contactTime: string; ownVehicle: string; currentVehicleBrand: string; currentVehicleModel: string; }> | AdditionalFields | FormElementStructureComponents<OptionalKeys<{ vehicle: string; name: string; phone: string; dealer: string; city: string; paymentType: string; contactTime: string; ownVehicle: string; currentVehicleBrand: string; currentVehicleModel: string; }> | AdditionalFields>)[]; } & { tag: string; name?: OptionalKeys<{ vehicle: string; name: string; phone: string; dealer: string; city: string; paymentType: string; contactTime: string; ownVehicle: string; currentVehicleBrand: string; currentVehicleModel: string; }> | AdditionalFields; } | { data?: Record<string, any>; requiredContext?: Record<string, boolean>; } & { id?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: (OptionalKeys<{ vehicle: string; name: string; phone: string; dealer: string; city: string; paymentType: string; contactTime: string; ownVehicle: string; currentVehicleBrand: string; currentVehicleModel: string; }> | AdditionalFields | FormElementStructureComponents<OptionalKeys<{ vehicle: string; name: string; phone: string; dealer: string; city: string; paymentType: string; contactTime: string; ownVehicle: string; currentVehicleBrand: string; currentVehicleModel: string; }> | AdditionalFields>)[]; } & { tag?: string; name: OptionalKeys<{ vehicle: string; name: string; phone: string; dealer: string; city: string; paymentType: string; contactTime: string; ownVehicle: string; currentVehicleBrand: string; currentVehicleModel: string; }> | AdditionalFields; }",
|
|
328
|
+
"resolved": "{ steps?: Record<LanguageKeys, Step>[]; data?: Record<string, any>; requiredContext?: Record<string, boolean>; } & { id?: string; step?: number; type?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: (OptionalKeys<{ vehicle: string; name: string; phone: string; dealer: string; city: string; paymentType: string; contactTime: string; ownVehicle: string; currentVehicleBrand: string; currentVehicleModel: string; }> | AdditionalFields | FormElementStructureComponents<OptionalKeys<{ vehicle: string; name: string; phone: string; dealer: string; city: string; paymentType: string; contactTime: string; ownVehicle: string; currentVehicleBrand: string; currentVehicleModel: string; }> | AdditionalFields>)[]; } & { tag: string; name?: OptionalKeys<{ vehicle: string; name: string; phone: string; dealer: string; city: string; paymentType: string; contactTime: string; ownVehicle: string; currentVehicleBrand: string; currentVehicleModel: string; }> | AdditionalFields; } | { steps?: Record<LanguageKeys, Step>[]; data?: Record<string, any>; requiredContext?: Record<string, boolean>; } & { id?: string; step?: number; type?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: (OptionalKeys<{ vehicle: string; name: string; phone: string; dealer: string; city: string; paymentType: string; contactTime: string; ownVehicle: string; currentVehicleBrand: string; currentVehicleModel: string; }> | AdditionalFields | FormElementStructureComponents<OptionalKeys<{ vehicle: string; name: string; phone: string; dealer: string; city: string; paymentType: string; contactTime: string; ownVehicle: string; currentVehicleBrand: string; currentVehicleModel: string; }> | AdditionalFields>)[]; } & { tag?: string; name: OptionalKeys<{ vehicle: string; name: string; phone: string; dealer: string; city: string; paymentType: string; contactTime: string; ownVehicle: string; currentVehicleBrand: string; currentVehicleModel: string; }> | AdditionalFields; }",
|
|
329
329
|
"references": {
|
|
330
330
|
"FormElementStructure": {
|
|
331
331
|
"location": "import",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
*,: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-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--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;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;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-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--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;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | 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}.\!pointer-events-none{pointer-events:none!important}.collapse{visibility:collapse}.absolute{position:absolute}.\!relative{position:relative!important}.relative{position:relative}.left-0{left:0}.top-0{top:0}.z-10{z-index:10}.block{display:block}.flex{display:flex}.hidden{display:none}.flex-shrink{flex-shrink:1}.border-collapse{border-collapse:collapse}.origin-left{transform-origin:left}.rotate-0{--tw-rotate:0deg}.rotate-0,.transform{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))}.cursor-default{cursor:default}.\!overflow-hidden{overflow:hidden!important}.rounded-\[4px\]{border-radius:4px}.border{border-width:1px}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.shift-skeleton{border-radius:4px;position:relative!important}.loading .shift-skeleton,.loading.shift-skeleton{border-style:none!important;overflow:hidden!important;pointer-events:none!important;position:relative!important}.shift-skeleton:after{background:linear-gradient(-45deg,#d4d8de,#e2e5e9,#d4d8de);background-size:300% 300%;border-radius:inherit!important;content:"";height:100%;left:0;opacity:0;pointer-events:none;position:absolute;top:0;transform-origin:left;transition-duration:.5s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);width:100%;z-index:10}.loading .shift-skeleton:after,.loading.shift-skeleton:after{--tw-scale-x:1;animation:shimmer 2s ease-in-out infinite;opacity:1;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))}@keyframes shimmer{0%{background-position:100% 0}50%{background-position:0 100%}to{background-position:100% 0}}.dead-stock-item{border:1px solid #d6d8dc;border-radius:6px;overflow:hidden}.dead-stock-item>.button{align-items:center;display:flex;gap:50px;height:50px;justify-content:space-between;padding:0 16px;transition-duration:.5s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);width:100%}.dead-stock-item>.button.cursor-default{cursor:default}.dead-stock-item>.button.bg-slate-100{background-color:#f1f5f9}.dead-stock-item .header{flex-shrink:0;font-size:20px;font-weight:700;text-align:start}.dead-stock-item .icon-container{align-items:center;display:flex;flex-shrink:0;height:30px;justify-content:center;transform:rotate(180deg);transition-duration:.5s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);width:30px}.dead-stock-item .icon-container.rotate-0{transform:rotate(0deg)}.dead-stock-item .dead-stock-table{border-collapse:collapse;overflow:auto;padding:20px;width:100%}.dead-stock-item .dead-stock-table-header{border-bottom:1px solid #d6d8dc;padding:20px 10px;text-align:start;white-space:nowrap}.dead-stock-item .dead-stock-table-row{border-bottom:1px solid #d6d8dc;transition-duration:.1s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.dead-stock-item .dead-stock-table-row:last-child{border:none}.dead-stock-item .dead-stock-table-row:hover{background-color:#f1f5f9}.dead-stock-item .dead-stock-table-row td{padding:20px 10px;text-align:start;white-space:nowrap}@keyframes showAfterDelay{0%{opacity:0}99.9%{opacity:0}to{opacity:1}}.show-after-delay{animation:showAfterDelay .5s forwards;opacity:0}.vehicle-info-container{background-color:#fdfdfd;border:1px solid #dcdcdc;border-radius:5px;box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 hsla(0,0%,100%,.1);overflow:hidden;padding:0;position:relative;transition-duration:.5s;transition-property:all}::-webkit-scrollbar{height:10px;width:10px}::-webkit-scrollbar-track{background:#f6f6f6;border-radius:5px;border-top:1px solid #dcdcdc;border-top-left-radius:0;border-top-right-radius:0}::-webkit-scrollbar-thumb{background:#c5c5c5;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:#a1a1a1}.hide-scroll ::-webkit-scrollbar-thumb,.hide-scroll::-webkit-scrollbar-thumb,.loading ::-webkit-scrollbar-thumb{background:transparent}.vehicle-info-body{display:flex;flex-direction:column;overflow:hidden;position:relative;transition-duration:.5s;transition-property:all;transition-timing-function:ease-in-out}.vehicle-info-content{transition-duration:.5s;transition-property:all;width:100%}.vehicle-info-header{align-items:center;background-color:#f6f6f6;border:1px solid #ededed;display:flex;height:54px;justify-content:center;text-align:center}.vehicle-info-header-vin{display:inline-block;font-size:16px;transition-duration:.5s;transition-property:all}.vehicle-info-header-vin span{color:#ef4444}.loading .vehicle-info-header-vin{opacity:0;transform:scale(1.5);visibility:hidden}:host{all:initial!important;display:block;font-family:inherit!important;font-family:Noto Kufi Arabic,Nunito,Roboto,Arial,sans-serif!important}*,:host *{font-family:inherit!important}.static{position:static}.h-\[200px\]{height:200px}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.text-\[26px\]{font-size:26px}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.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)}.flex-col{flex-direction:column}.gap-\[16px\]{gap:16px}.p-\[16px\]{padding:16px}.pb-\[16px\]{padding-bottom:16px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.mx-auto{margin-left:auto;margin-right:auto}.me-2{margin-inline-end:.5rem}.ml-1{margin-left:.25rem}.mt-2{margin-top:.5rem}.mt-\[32px\]{margin-top:32px}.inline-flex{display:inline-flex}.h-\[50px\]{height:50px}.w-fit{width:fit-content}.max-w-full{max-width:100%}.flex-wrap{flex-wrap:wrap}.items-stretch{align-items:stretch}.gap-\[8px\]{gap:8px}.overflow-auto{overflow:auto}.overflow-x-auto{overflow-x:auto}.rounded-lg{border-radius:.5rem}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity,1))}.bg-\[\#f6f6f6\]{--tw-bg-opacity:1;background-color:rgb(246 246 246/var(--tw-bg-opacity,1))}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.p-\[2px\]{padding:2px}.px-3{padding-left:.75rem;padding-right:.75rem}.px-\[16px\]{padding-left:16px;padding-right:16px}.py-1{padding-bottom:.25rem;padding-top:.25rem}.text-\[16px\]{font-size:16px}.text-\[18px\]{font-size:18px}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-\[green\]{--tw-text-opacity:1;color:rgb(0 128 0/var(--tw-text-opacity,1))}.text-\[orange\]{--tw-text-opacity:1;color:rgb(255 165 0/var(--tw-text-opacity,1))}.text-\[red\]{--tw-text-opacity:1;color:rgb(255 0 0/var(--tw-text-opacity,1))}.text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}@media (min-width:768px){.md\:justify-between{justify-content:space-between}}.\[\&\>div\]\:grow>div{flex-grow:1}.me-1{margin-inline-end:.25rem}.mb-\[12px\]{margin-bottom:12px}.w-\[500px\]{width:500px}.max-w-\[250px\]{max-width:250px}.max-w-\[96vw\]{max-width:96vw}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.gap-2{gap:.5rem}.gap-\[32px\]{gap:32px}.rounded-md{border-radius:.375rem}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.py-\[10px\]{padding-bottom:10px;padding-top:10px}.py-\[12px\]{padding-bottom:12px}.pt-\[12px\],.py-\[12px\]{padding-top:12px}.pt-\[32px\]{padding-top:32px}.pt-\[8px\]{padding-top:8px}.text-center{text-align:center}.text-\[20px\]{font-size:20px}.text-xl{font-size:1.25rem;line-height:1.75rem}.even\:bg-slate-100:nth-child(2n){--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.hover\:bg-sky-100\/50:hover{background-color:rgba(224,242,254,.5)}.\!w-full{width:100%!important}.translate-x-\[-200\%\]{--tw-translate-x:-200%}.translate-x-\[-200\%\],.translate-y-\[200\%\]{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))}.translate-y-\[200\%\]{--tw-translate-y:200%}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.\!duration-0{transition-duration:0s!important}.\[\&_\*\]\:\!pointer-events-none *{pointer-events:none!important}.\!h-auto{height:auto!important}.min-w-full{min-width:100%}.resize{resize:both}.overflow-hidden{overflow:hidden}.\!transition-none{transition-property:none!important}.\!duration-500{transition-duration:.5s!important}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.my-auto{margin-bottom:auto;margin-top:auto}.grid{display:grid}.size-\[28px\]{height:28px;width:28px}.size-\[32px\]{height:32px;width:32px}.size-full{height:100%;width:100%}.min-w-0{min-width:0}.rotate-180{--tw-rotate:180deg;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))}.cursor-pointer{cursor:pointer}.place-items-center{place-items:center}.rounded{border-radius:.25rem}.bg-sky-100{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity,1))}.bg-sky-200{--tw-bg-opacity:1;background-color:rgb(186 230 253/var(--tw-bg-opacity,1))}.bg-slate-200\/70{background-color:rgba(226,232,240,.7)}.px-\[12px\]{padding-left:12px;padding-right:12px}.px-\[6px\]{padding-left:6px;padding-right:6px}.px-\[8px\]{padding-left:8px;padding-right:8px}.py-\[16px\]{padding-bottom:16px;padding-top:16px}.text-\[13px\]{font-size:13px}.text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity,1))}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.last\:border-b-0:last-child{border-bottom-width:0}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:bg-sky-200:hover{--tw-bg-opacity:1;background-color:rgb(186 230 253/var(--tw-bg-opacity,1))}.hover\:bg-slate-200\/70:hover{background-color:rgba(226,232,240,.7)}.table{display:table}
|
|
1
|
+
*,: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-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--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;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;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-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--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;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | 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}.\!pointer-events-none{pointer-events:none!important}.collapse{visibility:collapse}.absolute{position:absolute}.\!relative{position:relative!important}.relative{position:relative}.left-0{left:0}.top-0{top:0}.z-10{z-index:10}.block{display:block}.flex{display:flex}.hidden{display:none}.flex-shrink{flex-shrink:1}.border-collapse{border-collapse:collapse}.origin-left{transform-origin:left}.rotate-0{--tw-rotate:0deg}.rotate-0,.transform{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))}.cursor-default{cursor:default}.\!overflow-hidden{overflow:hidden!important}.rounded-\[4px\]{border-radius:4px}.border{border-width:1px}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.shift-skeleton{border-radius:4px;position:relative!important}.loading .shift-skeleton,.loading.shift-skeleton{border-style:none!important;overflow:hidden!important;pointer-events:none!important;position:relative!important}.shift-skeleton:after{background:linear-gradient(-45deg,#d4d8de,#e2e5e9,#d4d8de);background-size:300% 300%;border-radius:inherit!important;content:"";height:100%;left:0;opacity:0;pointer-events:none;position:absolute;top:0;transform-origin:left;transition-duration:.5s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);width:100%;z-index:10}.loading .shift-skeleton:after,.loading.shift-skeleton:after{--tw-scale-x:1;animation:shimmer 2s ease-in-out infinite;opacity:1;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))}@keyframes shimmer{0%{background-position:100% 0}50%{background-position:0 100%}to{background-position:100% 0}}.dead-stock-item{border:1px solid #d6d8dc;border-radius:6px;overflow:hidden}.dead-stock-item>.button{align-items:center;display:flex;gap:50px;height:50px;justify-content:space-between;padding:0 16px;transition-duration:.5s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);width:100%}.dead-stock-item>.button.cursor-default{cursor:default}.dead-stock-item>.button.bg-slate-100{background-color:#f1f5f9}.dead-stock-item .header{flex-shrink:0;font-size:20px;font-weight:700;text-align:start}.dead-stock-item .icon-container{align-items:center;display:flex;flex-shrink:0;height:30px;justify-content:center;transform:rotate(180deg);transition-duration:.5s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);width:30px}.dead-stock-item .icon-container.rotate-0{transform:rotate(0deg)}.dead-stock-item .dead-stock-table{border-collapse:collapse;overflow:auto;padding:20px;width:100%}.dead-stock-item .dead-stock-table-header{border-bottom:1px solid #d6d8dc;padding:20px 10px;text-align:start;white-space:nowrap}.dead-stock-item .dead-stock-table-row{border-bottom:1px solid #d6d8dc;transition-duration:.1s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.dead-stock-item .dead-stock-table-row:last-child{border:none}.dead-stock-item .dead-stock-table-row:hover{background-color:#f1f5f9}.dead-stock-item .dead-stock-table-row td{padding:20px 10px;text-align:start;white-space:nowrap}@keyframes showAfterDelay{0%{opacity:0}99.9%{opacity:0}to{opacity:1}}.show-after-delay{animation:showAfterDelay .5s forwards;opacity:0}.vehicle-info-container{background-color:#fdfdfd;border:1px solid #dcdcdc;border-radius:5px;box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 hsla(0,0%,100%,.1);overflow:hidden;padding:0;position:relative;transition-duration:.5s;transition-property:all}::-webkit-scrollbar{height:10px;width:10px}::-webkit-scrollbar-track{background:#f6f6f6;border-radius:5px;border-top:1px solid #dcdcdc;border-top-left-radius:0;border-top-right-radius:0}::-webkit-scrollbar-thumb{background:#c5c5c5;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:#a1a1a1}.hide-scroll ::-webkit-scrollbar-thumb,.hide-scroll::-webkit-scrollbar-thumb,.loading ::-webkit-scrollbar-thumb{background:transparent}.vehicle-info-body{display:flex;flex-direction:column;overflow:hidden;position:relative;transition-duration:.5s;transition-property:all;transition-timing-function:ease-in-out}.vehicle-info-content{transition-duration:.5s;transition-property:all;width:100%}.vehicle-info-header{align-items:center;background-color:#f6f6f6;border:1px solid #ededed;display:flex;height:54px;justify-content:center;text-align:center}.vehicle-info-header-vin{display:inline-block;font-size:16px;transition-duration:.5s;transition-property:all}.vehicle-info-header-vin span{color:#ef4444}.loading .vehicle-info-header-vin{opacity:0;transform:scale(1.5);visibility:hidden}:host{all:initial!important;display:block;font-family:inherit!important;font-family:Noto Kufi Arabic,Nunito,Roboto,Arial,sans-serif!important}*,:host *{font-family:inherit!important}.static{position:static}.flex-col{flex-direction:column}.gap-\[16px\]{gap:16px}.p-\[16px\]{padding:16px}.pb-\[16px\]{padding-bottom:16px}.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)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.table{display:table}.flex-1{flex:1 1 0%}.h-\[200px\]{height:200px}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.text-\[26px\]{font-size:26px}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.mx-auto{margin-left:auto;margin-right:auto}.me-2{margin-inline-end:.5rem}.ml-1{margin-left:.25rem}.mt-2{margin-top:.5rem}.mt-\[32px\]{margin-top:32px}.inline-flex{display:inline-flex}.h-\[50px\]{height:50px}.w-fit{width:fit-content}.max-w-full{max-width:100%}.flex-wrap{flex-wrap:wrap}.items-stretch{align-items:stretch}.gap-\[8px\]{gap:8px}.overflow-auto{overflow:auto}.overflow-x-auto{overflow-x:auto}.rounded-lg{border-radius:.5rem}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity,1))}.bg-\[\#f6f6f6\]{--tw-bg-opacity:1;background-color:rgb(246 246 246/var(--tw-bg-opacity,1))}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.p-\[2px\]{padding:2px}.px-3{padding-left:.75rem;padding-right:.75rem}.px-\[16px\]{padding-left:16px;padding-right:16px}.py-1{padding-bottom:.25rem;padding-top:.25rem}.text-\[16px\]{font-size:16px}.text-\[18px\]{font-size:18px}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-\[green\]{--tw-text-opacity:1;color:rgb(0 128 0/var(--tw-text-opacity,1))}.text-\[orange\]{--tw-text-opacity:1;color:rgb(255 165 0/var(--tw-text-opacity,1))}.text-\[red\]{--tw-text-opacity:1;color:rgb(255 0 0/var(--tw-text-opacity,1))}.text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}@media (min-width:768px){.md\:justify-between{justify-content:space-between}}.\[\&\>div\]\:grow>div{flex-grow:1}.me-1{margin-inline-end:.25rem}.mb-\[12px\]{margin-bottom:12px}.w-\[500px\]{width:500px}.max-w-\[250px\]{max-width:250px}.max-w-\[96vw\]{max-width:96vw}.shrink-0{flex-shrink:0}.gap-2{gap:.5rem}.gap-\[32px\]{gap:32px}.rounded-md{border-radius:.375rem}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.py-\[10px\]{padding-bottom:10px;padding-top:10px}.py-\[12px\]{padding-bottom:12px}.pt-\[12px\],.py-\[12px\]{padding-top:12px}.pt-\[32px\]{padding-top:32px}.pt-\[8px\]{padding-top:8px}.text-center{text-align:center}.text-\[20px\]{font-size:20px}.text-xl{font-size:1.25rem;line-height:1.75rem}.even\:bg-slate-100:nth-child(2n){--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.hover\:bg-sky-100\/50:hover{background-color:rgba(224,242,254,.5)}
|