adp-web-components 0.0.34 → 0.0.36
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 +394 -0
- package/dist/cjs/dynamic-claim_6.cjs.entry.js +12 -12
- package/dist/cjs/dynamic-redeem.cjs.entry.js +4 -4
- package/dist/cjs/form-input.cjs.entry.js +2 -2
- package/dist/cjs/general-inquiry-form.cjs.entry.js +2 -2
- package/dist/cjs/{get-local-language-b48b2f48.js → get-local-language-b38fe7ca.js} +51 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/part-lookup.cjs.entry.js +119 -0
- package/dist/cjs/shift-components.cjs.js +1 -1
- package/dist/cjs/vehicle-lookup.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +5 -4
- package/dist/collection/components/form-input/form-input.css +1 -1
- package/dist/collection/components/form-input/form-input.js +1 -1
- package/dist/collection/components/general-inquiry-form/general-inquiry-form.css +1 -1
- package/dist/collection/components/general-inquiry-form/general-inquiry-form.js +1 -1
- package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -1
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +4 -3
- package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
- package/dist/collection/components/part-lookup/distributor-lookup.js +17 -13
- package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -1
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +18 -18
- package/dist/collection/components/part-lookup/part-lookup.css +1 -0
- package/dist/collection/components/part-lookup/part-lookup.js +403 -0
- package/dist/collection/components/vehicle-lookup/dynamic-claim.js +3 -3
- package/dist/collection/components/vehicle-lookup/dynamic-redeem.js +4 -4
- package/dist/collection/components/vehicle-lookup/paint-thickness.js +4 -4
- package/dist/collection/components/vehicle-lookup/service-history.js +2 -2
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +4 -4
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +2 -2
- package/dist/collection/components/vehicle-lookup/vehicle-specification.js +2 -2
- package/dist/collection/components/vehicle-lookup/warranty-details.js +2 -2
- package/dist/collection/global/types/locales/index.js +4 -0
- package/dist/collection/global/types/locales/part-lookup/dead-stock-schema.js +10 -0
- package/dist/collection/global/types/locales/part-lookup/distributor-schema.js +21 -0
- package/dist/collection/global/types/locales/part-lookup/index.js +13 -0
- package/dist/collection/global/types/locales/part-lookup/manufacturer-schema.js +22 -0
- package/dist/components/dead-stock-lookup.js +1 -1
- package/dist/components/distributor-lookup.js +1 -1
- package/dist/components/dynamic-claim.js +1 -1
- package/dist/components/dynamic-redeem.js +1 -1
- package/dist/components/form-input.js +1 -1
- package/dist/components/general-inquiry-form.js +1 -1
- package/dist/components/manufacturer-lookup.js +1 -1
- package/dist/components/{p-2882d59a.js → p-1a7f780a.js} +1 -1
- package/dist/components/{p-093b1fb7.js → p-1ec25f3c.js} +1 -1
- package/dist/components/p-2de97517.js +5 -0
- package/dist/components/p-3b5ef7f5.js +5 -0
- package/dist/components/p-5cf87534.js +5 -0
- package/dist/components/{p-e5d74a15.js → p-6d9cb126.js} +1 -1
- package/dist/components/p-7cc65883.js +5 -0
- package/dist/components/{p-0cfd2522.js → p-889526d8.js} +1 -1
- package/dist/components/{p-1ca0dc4b.js → p-a865dff3.js} +1 -1
- package/dist/components/{p-f001d15b.js → p-e37ce417.js} +1 -1
- package/dist/components/{p-f6b68cb6.js → p-ee84cf70.js} +1 -1
- package/dist/components/p-f3de80cd.js +5 -0
- package/dist/components/{p-5adec8c4.js → p-f7b3a33c.js} +1 -1
- package/dist/components/paint-thickness.js +1 -1
- package/dist/components/part-lookup.d.ts +11 -0
- package/dist/components/part-lookup.js +5 -0
- package/dist/components/service-history.js +1 -1
- package/dist/components/vehicle-accessories.js +1 -1
- package/dist/components/vehicle-lookup.js +1 -1
- package/dist/components/vehicle-specification.js +1 -1
- package/dist/components/warranty-details.js +1 -1
- package/dist/esm/dead-stock-lookup_3.entry.js +388 -0
- package/dist/esm/dynamic-claim_6.entry.js +12 -12
- package/dist/esm/dynamic-redeem.entry.js +4 -4
- package/dist/esm/form-input.entry.js +2 -2
- package/dist/esm/general-inquiry-form.entry.js +2 -2
- package/dist/esm/{get-local-language-fff1db0a.js → get-local-language-5f8f9df5.js} +51 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/part-lookup.entry.js +115 -0
- package/dist/esm/shift-components.js +1 -1
- package/dist/esm/vehicle-lookup.entry.js +1 -1
- package/dist/locales/ar.json +40 -0
- package/dist/locales/en.json +40 -0
- package/dist/locales/ku.json +40 -0
- package/dist/locales/ru.json +137 -0
- package/dist/shift-components/p-36f29bde.js +5 -0
- package/dist/shift-components/p-43f14c26.entry.js +5 -0
- package/dist/shift-components/{p-3a4e5325.entry.js → p-50a1ccc9.entry.js} +1 -1
- package/dist/shift-components/{p-691f64cf.entry.js → p-5bb328fd.entry.js} +1 -1
- package/dist/shift-components/{p-832fd942.entry.js → p-6553e467.entry.js} +1 -1
- package/dist/shift-components/p-8b97a91f.entry.js +5 -0
- package/dist/shift-components/{p-9120c049.entry.js → p-dc33c5ac.entry.js} +1 -1
- package/dist/shift-components/{p-496a721b.entry.js → p-ddffc71b.entry.js} +1 -1
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/components/part-lookup/part-lookup.d.ts +43 -0
- package/dist/types/components.d.ts +43 -5
- package/dist/types/global/types/locales/index.d.ts +84 -2
- package/dist/types/global/types/locales/part-lookup/dead-stock-schema.d.ts +9 -0
- package/dist/types/global/types/locales/part-lookup/distributor-schema.d.ts +31 -0
- package/dist/types/global/types/locales/part-lookup/index.d.ts +79 -0
- package/dist/types/global/types/locales/part-lookup/manufacturer-schema.d.ts +33 -0
- package/dist/types/global/types/locales/vehicle-lookup/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/dead-stock-lookup.cjs.entry.js +0 -126
- package/dist/cjs/distributor-lookup.cjs.entry.js +0 -134
- package/dist/cjs/general-a1e72036.js +0 -13
- package/dist/cjs/manufacturer-lookup.cjs.entry.js +0 -133
- package/dist/cjs/partInformation-16ea1f8e.js +0 -34
- package/dist/components/p-1344d377.js +0 -5
- package/dist/components/p-50896586.js +0 -5
- package/dist/components/p-62a22efb.js +0 -5
- package/dist/esm/dead-stock-lookup.entry.js +0 -122
- package/dist/esm/distributor-lookup.entry.js +0 -130
- package/dist/esm/general-b630a7db.js +0 -11
- package/dist/esm/manufacturer-lookup.entry.js +0 -129
- package/dist/esm/partInformation-ba1470e1.js +0 -32
- package/dist/shift-components/p-0b5958a0.entry.js +0 -5
- package/dist/shift-components/p-1344d377.js +0 -5
- package/dist/shift-components/p-cbd2ce5c.entry.js +0 -5
- package/dist/shift-components/p-e0ea03e8.js +0 -5
- package/dist/shift-components/p-eb229fab.entry.js +0 -5
- package/dist/shift-components/p-f99c8b2f.js +0 -5
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Host, h } from "@stencil/core";
|
|
6
6
|
import cn from "../../global/lib/cn";
|
|
7
|
-
import { capitalize } from "../../global/lib/general";
|
|
8
7
|
import { getLocaleLanguage } from "../../global/lib/get-local-language";
|
|
9
8
|
import { localeSchema } from "../../global/types/locales/index";
|
|
10
9
|
import Loading from "../components/Loading";
|
|
@@ -89,29 +88,30 @@ export class ManufacturerLookup {
|
|
|
89
88
|
}
|
|
90
89
|
render() {
|
|
91
90
|
var _a, _b, _c;
|
|
91
|
+
const texts = this.locale.partLookup.manufacturer;
|
|
92
92
|
const localName = this.partInformation ? this.localizationName || 'russian' : 'russian';
|
|
93
93
|
const hiddenFields = this.partInformation ? this.hiddenFields.split(',').map(field => field.trim()) || [] : [];
|
|
94
94
|
const manufacturerData = this.partInformation
|
|
95
95
|
? [
|
|
96
|
-
{ label:
|
|
97
|
-
{ label:
|
|
98
|
-
{ label:
|
|
99
|
-
{ label:
|
|
100
|
-
{ label:
|
|
101
|
-
{ label:
|
|
102
|
-
{ label:
|
|
103
|
-
{ label:
|
|
104
|
-
{ label:
|
|
105
|
-
{ label:
|
|
106
|
-
{ label:
|
|
107
|
-
{ label:
|
|
108
|
-
{ label:
|
|
109
|
-
{ label:
|
|
110
|
-
{ label:
|
|
96
|
+
{ label: texts.origin, key: 'origin', value: this.partInformation.tmcPart.origin },
|
|
97
|
+
{ label: texts.warrantyPrice, key: 'warrantyPrice', value: (_a = this.partInformation.tmcPart.warrantyPrice) === null || _a === void 0 ? void 0 : _a.toFixed(2) },
|
|
98
|
+
{ label: texts.specialPrice, key: 'specialPrice', value: (_b = this.partInformation.tmcPart.specialPrice) === null || _b === void 0 ? void 0 : _b.toFixed(2) },
|
|
99
|
+
{ label: texts.wholesalesPrice, key: 'salesPrice', value: (_c = this.partInformation.tmcPart.salesPrice) === null || _c === void 0 ? void 0 : _c.toFixed(2) },
|
|
100
|
+
{ label: texts.pnc, key: 'pnc', value: this.partInformation.tmcPart.pnc },
|
|
101
|
+
{ label: texts.pncName.replace('$', localName), key: 'pncLocalName', value: this.partInformation.tmcPart.pncLocalName },
|
|
102
|
+
{ label: texts.binCode, key: 'binCode', value: this.partInformation.tmcPart.binCode },
|
|
103
|
+
{ label: texts.dimension1, key: 'dimension1', value: this.partInformation.tmcPart.dimension1 },
|
|
104
|
+
{ label: texts.dimension2, key: 'dimension2', value: this.partInformation.tmcPart.dimension2 },
|
|
105
|
+
{ label: texts.dimension3, key: 'dimension3', value: this.partInformation.tmcPart.dimension3 },
|
|
106
|
+
{ label: texts.netWeight, key: 'netWeight', value: this.partInformation.tmcPart.netWeight },
|
|
107
|
+
{ label: texts.grossWeight, key: 'grossWeight', value: this.partInformation.tmcPart.grossWeight },
|
|
108
|
+
{ label: texts.cubicMeasure, key: 'cubicMeasure', value: this.partInformation.tmcPart.cubicMeasure },
|
|
109
|
+
{ label: texts.hsCode, key: 'hsCode', value: this.partInformation.tmcPart.hsCode },
|
|
110
|
+
{ label: texts.uzHsCode, key: 'uzHsCode', value: this.partInformation.tmcPart.uzHsCode },
|
|
111
111
|
]
|
|
112
112
|
: [];
|
|
113
113
|
const displayedManufacturerData = manufacturerData.filter(part => !hiddenFields.includes(part.key));
|
|
114
|
-
return (h(Host, { key: '
|
|
114
|
+
return (h(Host, { key: '5c69b7b8b7733d418494240dae97f6012502486c' }, h("div", { key: '8b4149c370dad858347fc9f213d55f56486bd542', dir: this.locale.direction, class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: 'eeed9658490a9a6612c02a06212e5e47ec92024d' }, h(Loading, { key: '1be320615f026ad166785553b8350bb023e3fc69', isLoading: this.state.includes('loading') }), h("div", { key: '30675b4ea68fc52a436a6b440a8a46188e8c43b1', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, ['error', 'error-loading'].includes(this.state) && (h("div", { key: '42317591e1ddf90a9a66bfb764986ea3c9a3f203', class: "py-[16px]" }, h("div", { key: 'b7318900ef3e39feb04617b455c827efa6dd8819', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.locale.errors[this.errorMessage] || this.locale.errors.wildCard))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: 'fe116aa9e6cb2b8f0e927e6da55d68f067af594d' }, h("div", { key: 'ff4ee3b9d935ed761897b86418b54962eb16078e', class: "flex mt-[12px] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '2cf379164e1c82898c0e48565a59f0afa8577f5b', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, this.headerTitle), h("div", { key: '3df9b6ca96d45fd01c44a6b227f0c01d1b23016e', class: "px-[30px] py-[10px] flex flex-col gap-[15px]" }, h("div", { key: '167ea852d54d1e1a60d568dba20330775c5be95e', class: "grid grid-cols-3 gap-[50px]" }, displayedManufacturerData.map(({ label, value, key }) => (h("div", { key: key, class: "flex flex-col flex-1" }, h("strong", { class: "py-[10px] px-0 border-b-[gray] border-b" }, label), h("div", { class: "py-[10px] px-0" }, value))))))))))))));
|
|
115
115
|
}
|
|
116
116
|
static get is() { return "manufacturer-lookup"; }
|
|
117
117
|
static get encapsulation() { return "shadow"; }
|
|
@@ -204,7 +204,7 @@ export class ManufacturerLookup {
|
|
|
204
204
|
"mutable": false,
|
|
205
205
|
"complexType": {
|
|
206
206
|
"original": "LanguageKeys",
|
|
207
|
-
"resolved": "\"ar\" | \"en\" | \"ku\"",
|
|
207
|
+
"resolved": "\"ar\" | \"en\" | \"ku\" | \"ru\"",
|
|
208
208
|
"references": {
|
|
209
209
|
"LanguageKeys": {
|
|
210
210
|
"location": "import",
|
|
@@ -0,0 +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.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}:host{display:block}.static{position:static}.hidden{display:none}.w-full{width:100%}
|
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
import { Host, h } from "@stencil/core";
|
|
6
|
+
import cn from "../../global/lib/cn";
|
|
7
|
+
const DEAD_STOCK_TAG = 'dead-stock-lookup';
|
|
8
|
+
const DISTRIBUTOR_TAG = 'distributor-lookup';
|
|
9
|
+
const MANUFACTURER_TAG = 'manufacturer-lookup';
|
|
10
|
+
const componentTags = {
|
|
11
|
+
deadStock: DEAD_STOCK_TAG,
|
|
12
|
+
distributor: DISTRIBUTOR_TAG,
|
|
13
|
+
manufacturer: MANUFACTURER_TAG,
|
|
14
|
+
};
|
|
15
|
+
export class PartLookup {
|
|
16
|
+
constructor() {
|
|
17
|
+
this.loadingStateChangingMiddleware = (newState) => {
|
|
18
|
+
if (this.loadingStateChanged)
|
|
19
|
+
this.loadingStateChanged(newState);
|
|
20
|
+
if (this.blazorRef && this.blazorOnLoadingStateChange)
|
|
21
|
+
this.blazorRef.invokeMethodAsync(this.blazorOnLoadingStateChange, newState);
|
|
22
|
+
};
|
|
23
|
+
this.baseUrl = '';
|
|
24
|
+
this.isDev = false;
|
|
25
|
+
this.queryString = '';
|
|
26
|
+
this.language = 'en';
|
|
27
|
+
this.blazorErrorStateListener = '';
|
|
28
|
+
this.blazorOnLoadingStateChange = '';
|
|
29
|
+
this.childeProps = '';
|
|
30
|
+
this.activeElement = '';
|
|
31
|
+
this.errorStateListener = undefined;
|
|
32
|
+
this.loadingStateChanged = undefined;
|
|
33
|
+
this.wrapperErrorState = '';
|
|
34
|
+
this.blazorRef = undefined;
|
|
35
|
+
}
|
|
36
|
+
async componentDidLoad() {
|
|
37
|
+
const deadStockLookup = this.el.getElementsByTagName('dead-stock-lookup')[0];
|
|
38
|
+
const distributerLookup = this.el.getElementsByTagName('distributor-lookup')[0];
|
|
39
|
+
const manufacturerLookup = this.el.getElementsByTagName('manufacturer-lookup')[0];
|
|
40
|
+
this.componentsList = {
|
|
41
|
+
[componentTags.deadStock]: deadStockLookup,
|
|
42
|
+
[componentTags.distributor]: distributerLookup,
|
|
43
|
+
[componentTags.manufacturer]: manufacturerLookup,
|
|
44
|
+
};
|
|
45
|
+
Object.values(this.componentsList).forEach(element => {
|
|
46
|
+
if (!element)
|
|
47
|
+
return;
|
|
48
|
+
if (this.loadingStateChanged)
|
|
49
|
+
element.loadingStateChange = this.loadingStateChangingMiddleware;
|
|
50
|
+
element.loadedResponse = newResponse => this.handleLoadData(newResponse, element);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
async errorListener(newState) {
|
|
54
|
+
if (this.errorStateListener)
|
|
55
|
+
this.errorStateListener(newState);
|
|
56
|
+
if (this.blazorRef && this.blazorErrorStateListener)
|
|
57
|
+
this.blazorRef.invokeMethodAsync(this.blazorErrorStateListener, newState);
|
|
58
|
+
}
|
|
59
|
+
async setBlazorRef(newBlazorRef) {
|
|
60
|
+
this.blazorRef = newBlazorRef;
|
|
61
|
+
}
|
|
62
|
+
async fetchPartNumber(partNumber, quantity, headers = {}) {
|
|
63
|
+
const activeElement = this.componentsList[this.activeElement] || null;
|
|
64
|
+
this.wrapperErrorState = '';
|
|
65
|
+
if (!activeElement)
|
|
66
|
+
return;
|
|
67
|
+
if (partNumber == '')
|
|
68
|
+
return (this.wrapperErrorState = 'Part Number is Required');
|
|
69
|
+
const searchingText = quantity.trim() || quantity.trim() === '0' ? `${partNumber.trim()}/${quantity.trim()}` : partNumber.trim();
|
|
70
|
+
activeElement.fetchData(searchingText, headers);
|
|
71
|
+
}
|
|
72
|
+
async getPageContext() {
|
|
73
|
+
return { componentsList: this.componentsList };
|
|
74
|
+
}
|
|
75
|
+
handleLoadData(newResponse, activeElement) {
|
|
76
|
+
Object.values(this.componentsList).forEach(element => {
|
|
77
|
+
if (element !== null && element !== activeElement && newResponse)
|
|
78
|
+
element.setData(newResponse);
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
render() {
|
|
82
|
+
const props = {
|
|
83
|
+
[componentTags.deadStock]: {},
|
|
84
|
+
[componentTags.distributor]: {},
|
|
85
|
+
[componentTags.manufacturer]: {},
|
|
86
|
+
};
|
|
87
|
+
try {
|
|
88
|
+
if (this.childeProps) {
|
|
89
|
+
let parsedProps = {};
|
|
90
|
+
if (typeof this.childeProps === 'string')
|
|
91
|
+
parsedProps = JSON.parse(this.childeProps);
|
|
92
|
+
else if (typeof this.childeProps === 'object')
|
|
93
|
+
parsedProps = this.childeProps;
|
|
94
|
+
Object.keys(props).forEach(key => {
|
|
95
|
+
if (typeof parsedProps[key] === 'object')
|
|
96
|
+
props[key] = parsedProps[key];
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
catch (error) { }
|
|
101
|
+
return (h(Host, { key: 'a554793f6c6a50497040418950ebf219bf0c1b1f' }, h("div", { key: '724b36d16b670ba2b7a45ee0383f3f21f88f390e', class: cn('w-full', { hidden: this.activeElement !== componentTags.deadStock }) }, h("dead-stock-lookup", Object.assign({ key: 'd17b37b5135cd2c24c406262d7e4294ba3b89946', isDev: this.isDev, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString }, props[componentTags.deadStock]))), h("div", { key: 'c8f91d9965da875178a19fd8c527ea9064f75fcb', class: cn('w-full', { hidden: this.activeElement !== componentTags.distributor }) }, h("distributor-lookup", Object.assign({ key: '2e96d5cd271c7a5eaae837b992343b1a6ead8b66', isDev: this.isDev, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString }, props[componentTags.distributor]))), h("div", { key: 'f51b0fbb705a52c19a72509df00bedd13d3bee07', class: cn('w-full', { hidden: this.activeElement !== componentTags.manufacturer }) }, h("manufacturer-lookup", Object.assign({ key: '30f8e622d74b3b31d0dc4d348a29b6702fe2dc89', isDev: this.isDev, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString }, props[componentTags.manufacturer]))), h("slot", { key: 'ef5858c30d094e3f7b0a9eb2ae6b748a48e3c8d3' })));
|
|
102
|
+
}
|
|
103
|
+
static get is() { return "part-lookup"; }
|
|
104
|
+
static get originalStyleUrls() {
|
|
105
|
+
return {
|
|
106
|
+
"$": ["part-lookup.css"]
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
static get styleUrls() {
|
|
110
|
+
return {
|
|
111
|
+
"$": ["part-lookup.css"]
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
static get properties() {
|
|
115
|
+
return {
|
|
116
|
+
"baseUrl": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"mutable": false,
|
|
119
|
+
"complexType": {
|
|
120
|
+
"original": "string",
|
|
121
|
+
"resolved": "string",
|
|
122
|
+
"references": {}
|
|
123
|
+
},
|
|
124
|
+
"required": false,
|
|
125
|
+
"optional": false,
|
|
126
|
+
"docs": {
|
|
127
|
+
"tags": [],
|
|
128
|
+
"text": ""
|
|
129
|
+
},
|
|
130
|
+
"attribute": "base-url",
|
|
131
|
+
"reflect": false,
|
|
132
|
+
"defaultValue": "''"
|
|
133
|
+
},
|
|
134
|
+
"isDev": {
|
|
135
|
+
"type": "boolean",
|
|
136
|
+
"mutable": false,
|
|
137
|
+
"complexType": {
|
|
138
|
+
"original": "boolean",
|
|
139
|
+
"resolved": "boolean",
|
|
140
|
+
"references": {}
|
|
141
|
+
},
|
|
142
|
+
"required": false,
|
|
143
|
+
"optional": false,
|
|
144
|
+
"docs": {
|
|
145
|
+
"tags": [],
|
|
146
|
+
"text": ""
|
|
147
|
+
},
|
|
148
|
+
"attribute": "is-dev",
|
|
149
|
+
"reflect": false,
|
|
150
|
+
"defaultValue": "false"
|
|
151
|
+
},
|
|
152
|
+
"queryString": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"mutable": false,
|
|
155
|
+
"complexType": {
|
|
156
|
+
"original": "string",
|
|
157
|
+
"resolved": "string",
|
|
158
|
+
"references": {}
|
|
159
|
+
},
|
|
160
|
+
"required": false,
|
|
161
|
+
"optional": false,
|
|
162
|
+
"docs": {
|
|
163
|
+
"tags": [],
|
|
164
|
+
"text": ""
|
|
165
|
+
},
|
|
166
|
+
"attribute": "query-string",
|
|
167
|
+
"reflect": false,
|
|
168
|
+
"defaultValue": "''"
|
|
169
|
+
},
|
|
170
|
+
"language": {
|
|
171
|
+
"type": "string",
|
|
172
|
+
"mutable": false,
|
|
173
|
+
"complexType": {
|
|
174
|
+
"original": "LanguageKeys",
|
|
175
|
+
"resolved": "\"ar\" | \"en\" | \"ku\" | \"ru\"",
|
|
176
|
+
"references": {
|
|
177
|
+
"LanguageKeys": {
|
|
178
|
+
"location": "import",
|
|
179
|
+
"path": "~types/locales",
|
|
180
|
+
"id": "src/global/types/locales/index.ts::LanguageKeys"
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"required": false,
|
|
185
|
+
"optional": false,
|
|
186
|
+
"docs": {
|
|
187
|
+
"tags": [],
|
|
188
|
+
"text": ""
|
|
189
|
+
},
|
|
190
|
+
"attribute": "language",
|
|
191
|
+
"reflect": false,
|
|
192
|
+
"defaultValue": "'en'"
|
|
193
|
+
},
|
|
194
|
+
"blazorErrorStateListener": {
|
|
195
|
+
"type": "string",
|
|
196
|
+
"mutable": false,
|
|
197
|
+
"complexType": {
|
|
198
|
+
"original": "string",
|
|
199
|
+
"resolved": "string",
|
|
200
|
+
"references": {}
|
|
201
|
+
},
|
|
202
|
+
"required": false,
|
|
203
|
+
"optional": false,
|
|
204
|
+
"docs": {
|
|
205
|
+
"tags": [],
|
|
206
|
+
"text": ""
|
|
207
|
+
},
|
|
208
|
+
"attribute": "blazor-error-state-listener",
|
|
209
|
+
"reflect": false,
|
|
210
|
+
"defaultValue": "''"
|
|
211
|
+
},
|
|
212
|
+
"blazorOnLoadingStateChange": {
|
|
213
|
+
"type": "string",
|
|
214
|
+
"mutable": false,
|
|
215
|
+
"complexType": {
|
|
216
|
+
"original": "string",
|
|
217
|
+
"resolved": "string",
|
|
218
|
+
"references": {}
|
|
219
|
+
},
|
|
220
|
+
"required": false,
|
|
221
|
+
"optional": false,
|
|
222
|
+
"docs": {
|
|
223
|
+
"tags": [],
|
|
224
|
+
"text": ""
|
|
225
|
+
},
|
|
226
|
+
"attribute": "blazor-on-loading-state-change",
|
|
227
|
+
"reflect": false,
|
|
228
|
+
"defaultValue": "''"
|
|
229
|
+
},
|
|
230
|
+
"childeProps": {
|
|
231
|
+
"type": "string",
|
|
232
|
+
"mutable": false,
|
|
233
|
+
"complexType": {
|
|
234
|
+
"original": "string | Object",
|
|
235
|
+
"resolved": "Object | string",
|
|
236
|
+
"references": {
|
|
237
|
+
"Object": {
|
|
238
|
+
"location": "global",
|
|
239
|
+
"id": "global::Object"
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"required": false,
|
|
244
|
+
"optional": true,
|
|
245
|
+
"docs": {
|
|
246
|
+
"tags": [],
|
|
247
|
+
"text": ""
|
|
248
|
+
},
|
|
249
|
+
"attribute": "childe-props",
|
|
250
|
+
"reflect": false,
|
|
251
|
+
"defaultValue": "''"
|
|
252
|
+
},
|
|
253
|
+
"activeElement": {
|
|
254
|
+
"type": "string",
|
|
255
|
+
"mutable": false,
|
|
256
|
+
"complexType": {
|
|
257
|
+
"original": "ActiveElement",
|
|
258
|
+
"resolved": "\"\" | \"dead-stock-lookup\" | \"distributor-lookup\" | \"manufacturer-lookup\"",
|
|
259
|
+
"references": {
|
|
260
|
+
"ActiveElement": {
|
|
261
|
+
"location": "local",
|
|
262
|
+
"path": "/home/vsts/work/1/s/src/components/part-lookup/part-lookup.tsx",
|
|
263
|
+
"id": "src/components/part-lookup/part-lookup.tsx::ActiveElement"
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"required": false,
|
|
268
|
+
"optional": true,
|
|
269
|
+
"docs": {
|
|
270
|
+
"tags": [],
|
|
271
|
+
"text": ""
|
|
272
|
+
},
|
|
273
|
+
"attribute": "active-element",
|
|
274
|
+
"reflect": false,
|
|
275
|
+
"defaultValue": "''"
|
|
276
|
+
},
|
|
277
|
+
"errorStateListener": {
|
|
278
|
+
"type": "unknown",
|
|
279
|
+
"mutable": false,
|
|
280
|
+
"complexType": {
|
|
281
|
+
"original": "(newError: string) => void",
|
|
282
|
+
"resolved": "(newError: string) => void",
|
|
283
|
+
"references": {}
|
|
284
|
+
},
|
|
285
|
+
"required": false,
|
|
286
|
+
"optional": true,
|
|
287
|
+
"docs": {
|
|
288
|
+
"tags": [],
|
|
289
|
+
"text": ""
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"loadingStateChanged": {
|
|
293
|
+
"type": "unknown",
|
|
294
|
+
"mutable": false,
|
|
295
|
+
"complexType": {
|
|
296
|
+
"original": "(isLoading: boolean) => void",
|
|
297
|
+
"resolved": "(isLoading: boolean) => void",
|
|
298
|
+
"references": {}
|
|
299
|
+
},
|
|
300
|
+
"required": false,
|
|
301
|
+
"optional": true,
|
|
302
|
+
"docs": {
|
|
303
|
+
"tags": [],
|
|
304
|
+
"text": ""
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
static get states() {
|
|
310
|
+
return {
|
|
311
|
+
"wrapperErrorState": {},
|
|
312
|
+
"blazorRef": {}
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
static get methods() {
|
|
316
|
+
return {
|
|
317
|
+
"setBlazorRef": {
|
|
318
|
+
"complexType": {
|
|
319
|
+
"signature": "(newBlazorRef: DotNetObjectReference) => Promise<void>",
|
|
320
|
+
"parameters": [{
|
|
321
|
+
"name": "newBlazorRef",
|
|
322
|
+
"type": "{ invokeMethodAsync: (methodName: string, ...args: any[]) => Promise<any>; }",
|
|
323
|
+
"docs": ""
|
|
324
|
+
}],
|
|
325
|
+
"references": {
|
|
326
|
+
"Promise": {
|
|
327
|
+
"location": "global",
|
|
328
|
+
"id": "global::Promise"
|
|
329
|
+
},
|
|
330
|
+
"DotNetObjectReference": {
|
|
331
|
+
"location": "import",
|
|
332
|
+
"path": "~types/components",
|
|
333
|
+
"id": "src/global/types/components.ts::DotNetObjectReference"
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
"return": "Promise<void>"
|
|
337
|
+
},
|
|
338
|
+
"docs": {
|
|
339
|
+
"text": "",
|
|
340
|
+
"tags": []
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"fetchPartNumber": {
|
|
344
|
+
"complexType": {
|
|
345
|
+
"signature": "(partNumber: string, quantity: string, headers?: any) => Promise<string>",
|
|
346
|
+
"parameters": [{
|
|
347
|
+
"name": "partNumber",
|
|
348
|
+
"type": "string",
|
|
349
|
+
"docs": ""
|
|
350
|
+
}, {
|
|
351
|
+
"name": "quantity",
|
|
352
|
+
"type": "string",
|
|
353
|
+
"docs": ""
|
|
354
|
+
}, {
|
|
355
|
+
"name": "headers",
|
|
356
|
+
"type": "any",
|
|
357
|
+
"docs": ""
|
|
358
|
+
}],
|
|
359
|
+
"references": {
|
|
360
|
+
"Promise": {
|
|
361
|
+
"location": "global",
|
|
362
|
+
"id": "global::Promise"
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
"return": "Promise<string>"
|
|
366
|
+
},
|
|
367
|
+
"docs": {
|
|
368
|
+
"text": "",
|
|
369
|
+
"tags": []
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"getPageContext": {
|
|
373
|
+
"complexType": {
|
|
374
|
+
"signature": "() => Promise<{ componentsList: ComponentMap; }>",
|
|
375
|
+
"parameters": [],
|
|
376
|
+
"references": {
|
|
377
|
+
"Promise": {
|
|
378
|
+
"location": "global",
|
|
379
|
+
"id": "global::Promise"
|
|
380
|
+
},
|
|
381
|
+
"ComponentMap": {
|
|
382
|
+
"location": "local",
|
|
383
|
+
"path": "/home/vsts/work/1/s/src/components/part-lookup/part-lookup.tsx",
|
|
384
|
+
"id": "src/components/part-lookup/part-lookup.tsx::ComponentMap"
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
"return": "Promise<{ componentsList: ComponentMap; }>"
|
|
388
|
+
},
|
|
389
|
+
"docs": {
|
|
390
|
+
"text": "",
|
|
391
|
+
"tags": []
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
static get elementRef() { return "el"; }
|
|
397
|
+
static get watchers() {
|
|
398
|
+
return [{
|
|
399
|
+
"propName": "wrapperErrorState",
|
|
400
|
+
"methodName": "errorListener"
|
|
401
|
+
}];
|
|
402
|
+
}
|
|
403
|
+
}
|
|
@@ -283,7 +283,7 @@ export class DynamicClaim {
|
|
|
283
283
|
var _a, _b;
|
|
284
284
|
const serviceItems = ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceItems) || [];
|
|
285
285
|
const texts = this.locale.vehicleLookup.dynamicClaim;
|
|
286
|
-
return (h(Host, { key: '
|
|
286
|
+
return (h(Host, { key: '2af691f7c6ffafa3b84a7981ce9d986c5b21c1f3' }, h("dynamic-redeem", { key: '0b1c8179e3b1cc7a6d4140209cf678bb12c1b4f8', language: this.language, id: "dynamic-redeem" }), h("div", { key: '6b15e6f206f127ee7385e94e4e1da482297e90cb', class: cn('dynamic-claim-wrapper', { loading: this.isLoading, idle: this.isIdle }) }, h("div", { key: 'd228d274d0b96cff2109b37f02929227066617dc', class: "dynamic-claim-header" }, h("strong", { key: '4f9345e71eac1cb2a33847fd37ca5943eee13a89', onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-header-vin load-animation" }, this.errorMessage && (h("span", { key: 'a3993b80232d30a896b62724df3d22d1e8493414', dir: this.locale.direction, style: { color: 'red' } }, this.locale.errors[this.errorMessage] || this.locale.errors.wildCard)), !this.errorMessage && ((_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.vin))), h("div", { key: '83f813a45ac139da18d6409989a2175e5949b16a', class: "dynamic-claim-body" }, h("div", { key: '94b34411638f21b1c8fe75236708fcf6a064254c', class: "loading-lane" }, h("div", { key: 'a102f0f2798190f9cbefa60edbfa3607916e6ceb', class: "dynamic-claim-loading-slider" }, h("div", { key: 'd13c65732d480313cea205478e850ce33e3f07ca', class: "dynamic-claim-loading-slider-line" }), h("div", { key: '8063bbef60d231c5c9069bbd9cb09ae65a957a1e', class: "dynamic-claim-loading-slider-subline dynamic-claim-inc" }), h("div", { key: '8b0119234750c2d2ad58af63c9d284c6a9cd56a5', class: "dynamic-claim-loading-slider-subline dynamic-claim-dec" }))), h("div", { key: 'efbf9252ed01e25fb68e49811ede858208a6c3bc', class: "dynamic-claim-progress-lane" }, serviceItems.map((item, idx) => {
|
|
287
287
|
let statusClass = '';
|
|
288
288
|
if (item.status === 'pending') {
|
|
289
289
|
if (serviceItems.findIndex(i => i.status === 'pending') === idx)
|
|
@@ -292,7 +292,7 @@ export class DynamicClaim {
|
|
|
292
292
|
else
|
|
293
293
|
statusClass = item.status;
|
|
294
294
|
return (h("div", { key: item.name, class: cn('dynamic-claim-item', statusClass), onMouseLeave: this.onMouseLeave }, h("div", { onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-item-header load-animation", onMouseEnter: event => this.onMouseEnter(event.target, idx) }, h("img", { src: icons[item.status], alt: "status icon" }), h("span", null, texts[item.status]), this.activePopupIndex === idx && this.createPopup(item)), h("div", { onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-item-circle load-animation" }), h("p", { onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-item-footer load-animation" }, item.name)));
|
|
295
|
-
}), h("div", { key: '
|
|
295
|
+
}), h("div", { key: '4992b48f37e59d6cb8400267e0498a83ccdc82bd', class: "dynamic-claim-progress-bar" }))))));
|
|
296
296
|
}
|
|
297
297
|
static get is() { return "dynamic-claim"; }
|
|
298
298
|
static get encapsulation() { return "shadow"; }
|
|
@@ -366,7 +366,7 @@ export class DynamicClaim {
|
|
|
366
366
|
"mutable": false,
|
|
367
367
|
"complexType": {
|
|
368
368
|
"original": "LanguageKeys",
|
|
369
|
-
"resolved": "\"ar\" | \"en\" | \"ku\"",
|
|
369
|
+
"resolved": "\"ar\" | \"en\" | \"ku\" | \"ru\"",
|
|
370
370
|
"references": {
|
|
371
371
|
"LanguageKeys": {
|
|
372
372
|
"location": "import",
|
|
@@ -127,11 +127,11 @@ export class DynamicRedeem {
|
|
|
127
127
|
const disableInput = !this.confirmServiceCancellation || !this.confirmUnInvoicedTBPVehicles;
|
|
128
128
|
if (!disableInput)
|
|
129
129
|
this.focusInput();
|
|
130
|
-
return (h(Host, { key: '
|
|
130
|
+
return (h(Host, { key: '9e0834b0d015a04c78e222d1dace141e587b05f0' }, h("div", { key: 'b04217257d133377bbd9da346d2fd1b68afe4aeb', dir: this.locale.direction, class: cn('dynamic-claim-processor', (this === null || this === void 0 ? void 0 : this.isOpened) && 'active') }, h("svg", { key: '93161c65789e759bd6ba991b3ba27f309756d8c9', id: "dynamic-claim-processor-close-icon", onClick: this.closeModal, viewBox: "-0.5 0 25 25", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: '29005414c93ce4c8c987eeef9505cba880015884', id: "SVGRepo_bgCarrier", "stroke-width": "0" }), h("g", { key: 'a8254bf76b1cd0f4cc8489601cf79a5f46992f7d', id: "SVGRepo_tracerCarrier", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", { key: '044c23d1eec52b8913139be277a92a0f27bc56ec', id: "SVGRepo_iconCarrier" }, h("path", { key: '2071bb9933395f25a048e70a4aa65548ca9ca68d', d: "M3 21.32L21 3.32001", stroke: "#000000", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { key: '4926e90429e8517cd68667b445eb12aa6f3c5a7f', d: "M3 3.32001L21 21.32", stroke: "#000000", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), h("div", { key: '350b073abe9ee9a3f58cc075d6a6002a6f09017e', class: "dynamic-claim-processor-wrapper" }, h("div", { key: '07c0205b788cf6d9c19c49b6f60e0fa16aaa8594', class: "dynamic-claim-processor-info-box" }, h("div", { key: 'cb13978e075f2551aba2d8fd503f747c0f823657', class: "dynamic-claim-processor-info-box-header" }, h("strong", { key: '0233b8a791add6908038d1a2bb71f7b14e0516c9', class: "dynamic-claim-header-vin" }, this === null || this === void 0 ? void 0 : this.internalVin)), h("div", { key: 'da9f9be90ced72ca4f7b83032ea45ed89bd3a356', class: "dynamic-claim-processor-info-box-body" }, h("table", { key: '785cf2ca8fbfab6ac15f380d9dfc599a2facb3c8', class: "border-separate" }, h("tr", { key: '1d51d2355d2cf7035a43b8ef8a58db0b7c57700b' }, h("th", { key: '99d65eea1a5bf369733720bdf32ad209b4ec588d' }, texts.serviceType), h("td", { key: '7d889cf118c6decea02919cfc7ff47e09e3682b3' }, (_a = this === null || this === void 0 ? void 0 : this.internalItem) === null || _a === void 0 ? void 0 : _a.type), h("th", { key: '92b5480c9127f5e3a6e350978ba4b40551fc8877' }, texts.name), h("td", { key: '6bb3baac3650047be60ef1cf49978cbbfbd39018' }, (_b = this === null || this === void 0 ? void 0 : this.internalItem) === null || _b === void 0 ? void 0 : _b.name)), h("tr", { key: '8ca114e0cec800fd12d829d61eb3908db5da6243' }, h("th", { key: '20328b30ab84c5d19d468ba3daf25585344d87de' }, texts.activationDate), h("td", { key: '02be56dadcb39e5740225b133a0a1ffbd15fd977' }, (_c = this === null || this === void 0 ? void 0 : this.internalItem) === null || _c === void 0 ? void 0 : _c.activatedAt), h("th", { key: 'a3e92f01ea2ddb2bfbb8fc2c93354c06387acf05' }, texts.expireDate), h("td", { key: '858160e2a08b1ea41f658bdb15ec87addd31ba4c' }, (_d = this === null || this === void 0 ? void 0 : this.internalItem) === null || _d === void 0 ? void 0 : _d.expiresAt)), h("tr", { key: 'b27e1732f0dcab87f0748fbff6af3aa0ee77dba8' }, h("th", { key: '58cca2e1dfc2ba9e2352ffc151bb7ab412dc2dc6' }, texts.menuCode), h("td", { key: '3f44350813014c12cd6ec8be98ff6575b09fc3b7' }, (_e = this === null || this === void 0 ? void 0 : this.internalItem) === null || _e === void 0 ? void 0 : _e.menuCode))))), h("div", { key: '9098ec6ae9fe1cb7e86837c04c4bd56b0c0ed7eb', style: { flex: '1', width: '100%', display: 'flex', flexDirection: 'column', justifyContent: 'space-evenly' } }, (this === null || this === void 0 ? void 0 : this.internalCanceledItem) && Array.isArray(this.internalCanceledItem) && !!this.internalCanceledItem.length && (h("div", { key: '48ffcf275d946607e0f633d8c0da648614bd019c', class: "admonition warning" }, h("p", { key: '53146d545919d962832b26af141a5d41de325ba7', class: "admonition-title" }, texts.warning), h("div", { key: 'eef812d4dd53e1fab99808f8fb2a08e0c041746b', style: { padding: '0 30px' } }, h("p", { key: '8c7c8bc6210d50aa49a4ab29a54d432efe56e828', class: "my-4" }, texts.skipServicesWarning), h("ul", { key: 'f10734a0bc4cc53f545ce52728e7930e8cc46937', class: "dynamic-claim-processor-to-be-cancelled-list warning-ul my-4 list-disc" }, this.internalCanceledItem.map(({ name }) => (h("li", { id: name }, name)))), h("div", { key: '6929ed41212f6b6cc03961d451ad9f53fe524e4a', class: "cancel-confirmation-box" }, h("label", { key: '8e929d414396739e84e59c8038eb92b40d673a98' }, h("input", { key: '7f2c07215d29459461e558c6d7f3a61019856e40', type: "checkbox", class: "confirm-cancellation-input m-[3px] ml-1", onChange: () => {
|
|
131
131
|
this.confirmServiceCancellation = !this.confirmServiceCancellation;
|
|
132
|
-
} }), texts.confirmSkipServices))))), true && this.unInvoicedByBrokerName && (h("div", { key: '
|
|
132
|
+
} }), texts.confirmSkipServices))))), true && this.unInvoicedByBrokerName && (h("div", { key: '9c7874ac49eae55fb544589e242ce97ce715a819', class: "admonition warning" }, h("p", { key: '9c5fec7622bcacff06f1b5b7329585022a21d767', class: "admonition-title" }, texts.warning), h("div", { key: 'a9f4612b6abe3672309dfedb9f96aea05230cf44', style: { padding: '0 30px' } }, h("p", { key: '2e34407ccc5dc666c14b7a3b6a30252a3e873e7e', class: "my-4" }, texts.notInvoiced), h("div", { key: '0c974e3bdc0084e0c2861c9fb6488c306e33738a' }, h("strong", { key: '7e38f7433805d69931daa2eff5b8d7885cf9e42d' }, this.unInvoicedByBrokerName)), h("div", { key: '6b7ef5ad872b4d5a54aad31279cb097229f63b35', class: "cancel-confirmation-box" }, h("label", { key: '5b4c78d1cd554ed8eb7360e17de8196423a7304e' }, h("input", { key: '287a6fcdf32f3065f2b0cf3ed87e7c2b8af3fe85', type: "checkbox", class: "confirm-cancellation-input m-[3px] ml-1", onChange: () => {
|
|
133
133
|
this.confirmUnInvoicedTBPVehicles = !this.confirmUnInvoicedTBPVehicles;
|
|
134
|
-
} }), texts.confirmNotInvoiced))))), h("div", { key: '
|
|
134
|
+
} }), texts.confirmNotInvoiced))))), h("div", { key: '23317721daac926aea70551f3ba51c9d124ab317', class: cn('dynamic-claim-processor-progress', (!this.confirmServiceCancellation || !this.confirmUnInvoicedTBPVehicles) && 'disabled') }, h("div", { key: 'f9601d0cabeef18b467ec95cc9a34061d13b6f4a', id: "scan-invoice-step", class: cn('dynamic-claim-processor-progress-step', this.isLoading && 'processing') }, h("div", { key: '328e694b35d26cc55cc415ec17e7118ede8e79df', style: { position: 'relative', width: '130px', height: '130px', display: 'block', margin: 'auto', marginTop: '15px' } }, h("div", { key: 'abd41fc29d4c6592a403936fa8bb1670f1cd98e2', style: { position: 'absolute' }, class: "scan-invoice-wrapper flex flex-col gap-1 justify-center items-center" }, h("svg", { key: 'f68e70e19472d48425f235a16bcf3c1327cb9271', fill: "#3071a9", height: "100px", width: "100px", version: "1.1", id: "Layer_1", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", stroke: "#ffffff" }, h("g", { key: 'b24c370dccfab6192523cfb8063102da3c874839', id: "SVGRepo_bgCarrier", "stroke-width": "0" }), h("g", { key: '747a333d8557a5362eca428029a2bb808905ce34', id: "SVGRepo_tracerCarrier", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", { key: 'a8beddf4148d7efcdee587cb6d597fe5c3d3977e', id: "SVGRepo_iconCarrier" }, h("g", { key: '91505a088ab4913a575aabb4a57130c47f4e13e0' }, h("g", { key: 'ce23d10dc5fabba0963bc436d6492350ce77ac41' }, h("path", { key: '8a433d73c362aae2924216da9e7f30047aacc620', d: "M354.338,34.205h-61.71c-3.354-9.93-12.752-17.102-23.8-17.102h-17.547C243.359,6.451,230.813,0,217.521,0 s-25.839,6.451-33.76,17.102h-17.547c-11.048,0-20.446,7.172-23.8,17.102H80.701c-18.566,0-33.67,15.105-33.67,33.67v359.148 c0,18.566,15.105,33.67,33.67,33.67h171.023c4.427,0,8.017-3.589,8.017-8.017c0-4.427-3.589-8.017-8.017-8.017H80.701 c-9.725,0-17.637-7.912-17.637-17.637V67.875c0-9.725,7.912-17.637,17.637-17.637h60.394v26.188c0,4.427,3.589,8.017,8.017,8.017 H285.93c4.427,0,8.017-3.589,8.017-8.017V50.238h60.391c9.725,0,17.637,7.912,17.637,17.637v230.881 c0,4.427,3.589,8.017,8.017,8.017c4.427,0,8.017-3.589,8.017-8.017V67.875C388.008,49.309,372.904,34.205,354.338,34.205z M277.914,68.409H157.129V42.252c0-0.011,0.001-0.02,0.001-0.031c0-0.005-0.001-0.011-0.001-0.015 c0.009-5.004,4.08-9.071,9.085-9.071h21.846c2.854,0,5.493-1.517,6.929-3.985c4.781-8.213,13.204-13.117,22.532-13.117 s17.751,4.904,22.532,13.117c1.435,2.467,4.075,3.985,6.929,3.985h21.846c4.999,0,9.067,4.059,9.085,9.055 c0,0.011-0.001,0.02-0.001,0.031c0,0.021,0.003,0.041,0.003,0.062V68.409z" }))), h("g", { key: '47666523cf9347e0f8e155d4610faa685a786e8b' }, h("g", { key: '0f09c5e47bb86983cb31c562e2d7a02c9fe6283b' }, h("path", { key: 'a260800a437176787738fd576ca2223de6e53914', d: "M251.722,410.455H97.269V84.443h17.64c4.427,0,8.017-3.589,8.017-8.017s-3.589-8.017-8.017-8.017H89.253 c-4.427,0-8.017,3.589-8.017,8.017v342.046c0,4.427,3.589,8.017,8.017,8.017h162.47c4.427,0,8.017-3.589,8.017-8.017 C259.739,414.044,256.15,410.455,251.722,410.455z" }))), h("g", { key: 'ae63d4b16681efb4887155e817826ef7a7fe745c' }, h("g", { key: 'c4f6de16ea2bad437253945ccd18140a08ea5584' }, h("path", { key: '8f2134dc62e9f386dc1034d562e1464030486618', d: "M345.787,68.409h-25.653c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h17.637v214.311 c0,4.427,3.589,8.017,8.017,8.017s8.017-3.589,8.017-8.017V76.426C353.804,71.999,350.214,68.409,345.787,68.409z" }))), h("g", { key: '74df7261104bff1da50252bb223a8d08ad5fdfe5' }, h("g", { key: '53ef53041c9f8dc7b8f6eecff10703baa1bee6db' }, h("path", { key: 'cda1f0a75e612da7943bfb10d1edebb7055898e9', d: "M371.44,324.944c-51.572,0-93.528,41.956-93.528,93.528S319.869,512,371.44,512s93.528-41.956,93.528-93.528 S423.012,324.944,371.44,324.944z M371.44,495.967c-42.731,0-77.495-34.764-77.495-77.495s34.764-77.495,77.495-77.495 s77.495,34.764,77.495,77.495S414.172,495.967,371.44,495.967z" }))), h("g", { key: '0e21a4915d6ab6e58991db5e37da2c6911c63b4d' }, h("g", { key: 'a65c9fe8a4629c90fd973c64b25541cd8f28976e' }, h("path", { key: '3777e4081c25ccfcaacf0d9f689ee31114496bbd', d: "M217.607,34.205h-0.086c-4.427,0-7.974,3.589-7.974,8.017c0,4.427,3.631,8.017,8.059,8.017 c4.427,0,8.017-3.589,8.017-8.017C225.624,37.794,222.035,34.205,217.607,34.205z" }))), h("g", { key: '94160dab1c0c48766e0fbc9c4c982eb1359b782b' }, h("g", { key: 'b0c239c6bb69573c10cf3c1ffd3953c9c6b6614c' }, h("path", { key: '8d4509d9aad59197e606acf2bb12fdb413501e2f', d: "M419.865,387.15c-3.13-3.131-8.207-3.131-11.337,0l-54.19,54.19l-28.536-28.536c-3.131-3.131-8.207-3.131-11.337,0 c-3.131,3.131-3.131,8.207,0,11.337l34.205,34.205c1.565,1.565,3.617,2.348,5.668,2.348s4.103-0.782,5.668-2.348l59.858-59.858 C422.995,395.356,422.995,390.28,419.865,387.15z" }))), h("g", { key: '90ae14fd2295e3ccda79cd1d5144a3c9037e7ef2' }, h("g", { key: '05f92bf017c5a9672bfb9b80fe1b3924d0fb60c1' }, h("path", { key: '117eda012c52c0471264be0b112d512db1a1b38d', d: "M182.781,177.309v-32.338c11.295,1.934,18.171,7.688,18.171,11.889c0,4.427,3.589,8.017,8.017,8.017 s8.017-3.589,8.017-8.017c0-14.171-14.492-25.621-34.205-28.092v-1.036c0-4.427-3.589-8.017-8.017-8.017s-8.017,3.589-8.017,8.017 v1.036c-19.713,2.47-34.205,13.92-34.205,28.092c0,20.074,18.829,27.788,34.205,32.461v32.338 c-11.295-1.934-18.171-7.688-18.171-11.889c0-4.427-3.589-8.017-8.017-8.017s-8.017,3.589-8.017,8.017 c0,14.171,14.492,25.621,34.205,28.092v1.036c0,4.427,3.589,8.017,8.017,8.017s8.017-3.589,8.017-8.017v-1.036 c19.713-2.47,34.205-13.92,34.205-28.092C216.985,189.697,198.157,181.982,182.781,177.309z M166.747,172.411 c-13.524-4.713-18.171-8.963-18.171-15.551c0-2.535,2.236-5.335,6.134-7.68c3.294-1.982,7.473-3.415,12.037-4.198V172.411z M194.818,217.45c-3.294,1.982-7.473,3.415-12.037,4.198v-27.429c13.524,4.713,18.171,8.963,18.171,15.551 C200.952,212.306,198.716,215.105,194.818,217.45z" }))), h("g", { key: '0bbe9e8a65c3deba1a997653a6a212fc218807cc' }, h("g", { key: '8ae8e29d7d460e8e6b6a8287489d26986a3ab821' }, h("path", { key: 'ba99c674627522ac33d70ea6100c5958e562d620', d: "M294.48,136.818h-42.756c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h42.756 c4.427,0,8.017-3.589,8.017-8.017S298.908,136.818,294.48,136.818z" }))), h("g", { key: '5b9e09a12f0def9cf011d7fe8909d8f2086c04b5' }, h("g", { key: '1ce72824285a08151b3f33737129ced2b63333d7' }, h("path", { key: 'fb939c8b4fb336bd949d719271bbc2dca1840da0', d: "M277.378,171.023h-25.653c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h25.653 c4.427,0,8.017-3.589,8.017-8.017S281.805,171.023,277.378,171.023z" }))), h("g", { key: '1c23413c8ac1fe1b1d6d4bb1c804f948a2fe22cc' }, h("g", { key: '3ccdfde33bf588f2fa038a610848bc0dbfa68c1f' }, h("path", { key: '0adda5a28bebea44b33c5cf887b11b28972f9eef', d: "M294.48,205.228h-42.756c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h42.756 c4.427,0,8.017-3.589,8.017-8.017S298.908,205.228,294.48,205.228z" }))), h("g", { key: '5f1f9eb4e3287e7dde6daa8db7dec6c699a8b5d0' }, h("g", { key: '704aab9638bd52411156cbbc76b1baa1a25b19e5' }, h("path", { key: 'f572ff85113a92c45d9d8155f1f68a79ad747d4a', d: "M157.662,282.188H140.56c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h17.102 c4.427,0,8.017-3.589,8.017-8.017S162.089,282.188,157.662,282.188z" }))), h("g", { key: 'f02f77ea7ca0ca2d0eb882fe81d053b0248f1725' }, h("g", { key: 'a6ab10765e363f2e25502539e53ee610a8b7aafd' }, h("path", { key: '9f59014caeca9072039da437d8c10afe5574197d', d: "M157.662,350.597H140.56c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h17.102 c4.427,0,8.017-3.589,8.017-8.017S162.089,350.597,157.662,350.597z" }))), h("g", { key: '682b60122feea993d88be043bc51f442b56a4e76' }, h("g", { key: 'be949e227811b8af7241c07cfc7e611e218df31f' }, h("path", { key: '58f4a85b9039f0bf839e0dda88f64cba1a90b80f', d: "M157.662,316.393H140.56c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h17.102 c4.427,0,8.017-3.589,8.017-8.017S162.089,316.393,157.662,316.393z" }))), h("g", { key: 'f4b6babd17e88e8507d011dda0311616b1bb2202' }, h("g", { key: '59eea65f697e7ac2df5f95ed1cc9f67fd5abcf36' }, h("path", { key: '386481692bae2bca8fb12e70219ef79be1ae8c4f', d: "M294.48,282.188H191.866c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017H294.48 c4.427,0,8.017-3.589,8.017-8.017S298.908,282.188,294.48,282.188z" }))), h("g", { key: 'f4703c204d3d521fb5ab07c0d233008bf18e99b1' }, h("g", { key: 'e8a0825ece9d2707d1754e7d61eaca2021d5ddde' }, h("path", { key: '3f26f62d79ce8f8f44b42f1d4cf03066abf7ea68', d: "M268.827,350.597h-76.96c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h76.96 c4.427,0,8.017-3.589,8.017-8.017S273.254,350.597,268.827,350.597z" }))), h("g", { key: 'acbf002a7902cb06e31d218621d4c7d3f40ce88d' }, h("g", { key: '585dd449d363add070a696b43ce76a06e9204f85' }, h("path", { key: 'd2352b417a9a25b82d17bbffc3d58dffede07fb0', d: "M294.48,316.393H191.866c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017H294.48 c4.427,0,8.017-3.589,8.017-8.017S298.908,316.393,294.48,316.393z" }))))), h("div", { key: 'c14059cf2cc7ec1c6f6469ff6b98503fe3b7bc12' }, texts.scanTheInvoice)), h("div", { key: '794225f0cb388ae74fd28eeb1b6d68b4f7d93470', style: { position: 'absolute' }, class: "loading-wrapper" }, h("div", { key: '7a58e7359cfb906115e717a04e033504ad5a1e83', class: cn('lds-ripple', this.isLoading && 'active') }, h("div", { key: 'bfe2f78e944fb2ac4ea0de9e0953605da08a8428' }), h("div", { key: 'ff2403222c9510e8eaee20c56494bce1701cdda1' })), h("div", { key: 'e9a811ec65baabb5a6dc8ec224484f49dbf20a7b', class: cn('lds-ripple-loading', this.isLoading && 'active') }, texts.processing))), h("input", { key: '639d18db01761b74522153bcf32689fe38801f49', dir: "ltr", class: "qr-input", spellcheck: "false", onInput: this.onValueChanges, onKeyDown: this.qrCodeKeyDown, onBlur: () => this.input.focus(), autocomplete: "off", disabled: disableInput, placeholder: "", autofocus: true, style: { marginTop: '20px', padding: '10px 0px', fontSize: '16px' } }))))))));
|
|
135
135
|
}
|
|
136
136
|
static get is() { return "dynamic-redeem"; }
|
|
137
137
|
static get encapsulation() { return "shadow"; }
|
|
@@ -192,7 +192,7 @@ export class DynamicRedeem {
|
|
|
192
192
|
"mutable": false,
|
|
193
193
|
"complexType": {
|
|
194
194
|
"original": "LanguageKeys",
|
|
195
|
-
"resolved": "\"ar\" | \"en\" | \"ku\"",
|
|
195
|
+
"resolved": "\"ar\" | \"en\" | \"ku\" | \"ru\"",
|
|
196
196
|
"references": {
|
|
197
197
|
"LanguageKeys": {
|
|
198
198
|
"location": "import",
|