adp-web-components 0.0.34 → 0.0.37
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/{app-globals-6d543be0.js → app-globals-4aa8f46f.js} +13 -0
- 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 +1 -1
- package/dist/cjs/general-inquiry-form.cjs.entry.js +1 -1
- package/dist/cjs/{get-local-language-b48b2f48.js → get-local-language-2acb5afc.js} +51 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/part-lookup.cjs.entry.js +121 -0
- package/dist/cjs/shift-components.cjs.js +2 -2
- 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.js +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 +405 -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/lib/middleware.js +13 -0
- 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/index.js +1 -1
- package/dist/components/manufacturer-lookup.js +1 -1
- package/dist/components/{p-f6b68cb6.js → p-09dd6de2.js} +1 -1
- package/dist/components/{p-2882d59a.js → p-21dfafba.js} +1 -1
- package/dist/components/{p-5adec8c4.js → p-2f02d063.js} +1 -1
- package/dist/components/{p-f001d15b.js → p-46262302.js} +1 -1
- package/dist/components/{p-e5d74a15.js → p-58a3bbc5.js} +1 -1
- package/dist/components/p-5e80276a.js +5 -0
- package/dist/components/{p-0cfd2522.js → p-acbea376.js} +1 -1
- package/dist/components/p-bfddfd50.js +5 -0
- package/dist/components/{p-62a22efb.js → p-c20e4190.js} +1 -1
- package/dist/components/{p-1ca0dc4b.js → p-c41b74ea.js} +1 -1
- package/dist/components/p-c7747b68.js +5 -0
- package/dist/components/{p-093b1fb7.js → p-cb6dc5c3.js} +1 -1
- package/dist/components/p-f312b879.js +5 -0
- 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/{app-globals-e6576027.js → app-globals-68faa233.js} +13 -0
- 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 +1 -1
- package/dist/esm/general-inquiry-form.entry.js +1 -1
- package/dist/esm/{get-local-language-fff1db0a.js → get-local-language-883f9a8a.js} +51 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/part-lookup.entry.js +117 -0
- package/dist/esm/shift-components.js +2 -2
- 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-42d320e2.js → p-446d908d.js} +1 -1
- package/dist/shift-components/{p-691f64cf.entry.js → p-45cc348b.entry.js} +1 -1
- package/dist/shift-components/{p-832fd942.entry.js → p-4f7a3fd9.entry.js} +1 -1
- package/dist/shift-components/p-5e46843c.entry.js +5 -0
- package/dist/shift-components/{p-3a4e5325.entry.js → p-5f0b9f41.entry.js} +1 -1
- package/dist/shift-components/p-954859b9.entry.js +5 -0
- package/dist/shift-components/p-c44fe649.js +5 -0
- package/dist/shift-components/{p-496a721b.entry.js → p-cde3b164.entry.js} +1 -1
- package/dist/shift-components/{p-9120c049.entry.js → p-dc33c5ac.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/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
|
@@ -0,0 +1,405 @@
|
|
|
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.childrenProps = '';
|
|
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.childrenProps) {
|
|
89
|
+
let parsedProps = {};
|
|
90
|
+
if (typeof this.childrenProps === 'string')
|
|
91
|
+
parsedProps = JSON.parse(this.childrenProps);
|
|
92
|
+
else if (typeof this.childrenProps === 'object')
|
|
93
|
+
parsedProps = this.childrenProps;
|
|
94
|
+
Object.keys(props).forEach(key => {
|
|
95
|
+
if (typeof parsedProps[key] === 'object')
|
|
96
|
+
props[key] = parsedProps[key];
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
catch (error) {
|
|
101
|
+
console.error(error);
|
|
102
|
+
}
|
|
103
|
+
return (h(Host, { key: '4f3606e44577de61a411c91b2f2915b6ee137c29' }, h("div", { key: '0385456c0c3dd4cf121be90db88354f00aa82a9e', class: cn('w-full', { hidden: this.activeElement !== componentTags.deadStock }) }, h("dead-stock-lookup", Object.assign({ key: '37e10684a4e3558b9c296a9b2257be903964608b', isDev: this.isDev, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString }, props[componentTags.deadStock]))), h("div", { key: '3e49f12b1e6ae001f947f4504927bea108c459c3', class: cn('w-full', { hidden: this.activeElement !== componentTags.distributor }) }, h("distributor-lookup", Object.assign({ key: '069b0f6da84c46b4018e8637e0f9fa4cf51bdd38', isDev: this.isDev, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString }, props[componentTags.distributor]))), h("div", { key: '1c7a6506363cfb69f858fbc432a1fa586d367f4a', class: cn('w-full', { hidden: this.activeElement !== componentTags.manufacturer }) }, h("manufacturer-lookup", Object.assign({ key: '2c9afcc2d8e600f676ca642845a0b3774843bd25', isDev: this.isDev, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString }, props[componentTags.manufacturer]))), h("slot", { key: 'a6f0637b2421bdbb458a5d7322e86012bb944c9a' })));
|
|
104
|
+
}
|
|
105
|
+
static get is() { return "part-lookup"; }
|
|
106
|
+
static get originalStyleUrls() {
|
|
107
|
+
return {
|
|
108
|
+
"$": ["part-lookup.css"]
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
static get styleUrls() {
|
|
112
|
+
return {
|
|
113
|
+
"$": ["part-lookup.css"]
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
static get properties() {
|
|
117
|
+
return {
|
|
118
|
+
"baseUrl": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"mutable": false,
|
|
121
|
+
"complexType": {
|
|
122
|
+
"original": "string",
|
|
123
|
+
"resolved": "string",
|
|
124
|
+
"references": {}
|
|
125
|
+
},
|
|
126
|
+
"required": false,
|
|
127
|
+
"optional": false,
|
|
128
|
+
"docs": {
|
|
129
|
+
"tags": [],
|
|
130
|
+
"text": ""
|
|
131
|
+
},
|
|
132
|
+
"attribute": "base-url",
|
|
133
|
+
"reflect": false,
|
|
134
|
+
"defaultValue": "''"
|
|
135
|
+
},
|
|
136
|
+
"isDev": {
|
|
137
|
+
"type": "boolean",
|
|
138
|
+
"mutable": false,
|
|
139
|
+
"complexType": {
|
|
140
|
+
"original": "boolean",
|
|
141
|
+
"resolved": "boolean",
|
|
142
|
+
"references": {}
|
|
143
|
+
},
|
|
144
|
+
"required": false,
|
|
145
|
+
"optional": false,
|
|
146
|
+
"docs": {
|
|
147
|
+
"tags": [],
|
|
148
|
+
"text": ""
|
|
149
|
+
},
|
|
150
|
+
"attribute": "is-dev",
|
|
151
|
+
"reflect": false,
|
|
152
|
+
"defaultValue": "false"
|
|
153
|
+
},
|
|
154
|
+
"queryString": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"mutable": false,
|
|
157
|
+
"complexType": {
|
|
158
|
+
"original": "string",
|
|
159
|
+
"resolved": "string",
|
|
160
|
+
"references": {}
|
|
161
|
+
},
|
|
162
|
+
"required": false,
|
|
163
|
+
"optional": false,
|
|
164
|
+
"docs": {
|
|
165
|
+
"tags": [],
|
|
166
|
+
"text": ""
|
|
167
|
+
},
|
|
168
|
+
"attribute": "query-string",
|
|
169
|
+
"reflect": false,
|
|
170
|
+
"defaultValue": "''"
|
|
171
|
+
},
|
|
172
|
+
"language": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"mutable": false,
|
|
175
|
+
"complexType": {
|
|
176
|
+
"original": "LanguageKeys",
|
|
177
|
+
"resolved": "\"ar\" | \"en\" | \"ku\" | \"ru\"",
|
|
178
|
+
"references": {
|
|
179
|
+
"LanguageKeys": {
|
|
180
|
+
"location": "import",
|
|
181
|
+
"path": "~types/locales",
|
|
182
|
+
"id": "src/global/types/locales/index.ts::LanguageKeys"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"required": false,
|
|
187
|
+
"optional": false,
|
|
188
|
+
"docs": {
|
|
189
|
+
"tags": [],
|
|
190
|
+
"text": ""
|
|
191
|
+
},
|
|
192
|
+
"attribute": "language",
|
|
193
|
+
"reflect": false,
|
|
194
|
+
"defaultValue": "'en'"
|
|
195
|
+
},
|
|
196
|
+
"blazorErrorStateListener": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"mutable": false,
|
|
199
|
+
"complexType": {
|
|
200
|
+
"original": "string",
|
|
201
|
+
"resolved": "string",
|
|
202
|
+
"references": {}
|
|
203
|
+
},
|
|
204
|
+
"required": false,
|
|
205
|
+
"optional": false,
|
|
206
|
+
"docs": {
|
|
207
|
+
"tags": [],
|
|
208
|
+
"text": ""
|
|
209
|
+
},
|
|
210
|
+
"attribute": "blazor-error-state-listener",
|
|
211
|
+
"reflect": false,
|
|
212
|
+
"defaultValue": "''"
|
|
213
|
+
},
|
|
214
|
+
"blazorOnLoadingStateChange": {
|
|
215
|
+
"type": "string",
|
|
216
|
+
"mutable": false,
|
|
217
|
+
"complexType": {
|
|
218
|
+
"original": "string",
|
|
219
|
+
"resolved": "string",
|
|
220
|
+
"references": {}
|
|
221
|
+
},
|
|
222
|
+
"required": false,
|
|
223
|
+
"optional": false,
|
|
224
|
+
"docs": {
|
|
225
|
+
"tags": [],
|
|
226
|
+
"text": ""
|
|
227
|
+
},
|
|
228
|
+
"attribute": "blazor-on-loading-state-change",
|
|
229
|
+
"reflect": false,
|
|
230
|
+
"defaultValue": "''"
|
|
231
|
+
},
|
|
232
|
+
"childrenProps": {
|
|
233
|
+
"type": "string",
|
|
234
|
+
"mutable": false,
|
|
235
|
+
"complexType": {
|
|
236
|
+
"original": "string | Object",
|
|
237
|
+
"resolved": "Object | string",
|
|
238
|
+
"references": {
|
|
239
|
+
"Object": {
|
|
240
|
+
"location": "global",
|
|
241
|
+
"id": "global::Object"
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"required": false,
|
|
246
|
+
"optional": true,
|
|
247
|
+
"docs": {
|
|
248
|
+
"tags": [],
|
|
249
|
+
"text": ""
|
|
250
|
+
},
|
|
251
|
+
"attribute": "children-props",
|
|
252
|
+
"reflect": false,
|
|
253
|
+
"defaultValue": "''"
|
|
254
|
+
},
|
|
255
|
+
"activeElement": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"mutable": false,
|
|
258
|
+
"complexType": {
|
|
259
|
+
"original": "ActiveElement",
|
|
260
|
+
"resolved": "\"\" | \"dead-stock-lookup\" | \"distributor-lookup\" | \"manufacturer-lookup\"",
|
|
261
|
+
"references": {
|
|
262
|
+
"ActiveElement": {
|
|
263
|
+
"location": "local",
|
|
264
|
+
"path": "/home/vsts/work/1/s/src/components/part-lookup/part-lookup.tsx",
|
|
265
|
+
"id": "src/components/part-lookup/part-lookup.tsx::ActiveElement"
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"required": false,
|
|
270
|
+
"optional": true,
|
|
271
|
+
"docs": {
|
|
272
|
+
"tags": [],
|
|
273
|
+
"text": ""
|
|
274
|
+
},
|
|
275
|
+
"attribute": "active-element",
|
|
276
|
+
"reflect": false,
|
|
277
|
+
"defaultValue": "''"
|
|
278
|
+
},
|
|
279
|
+
"errorStateListener": {
|
|
280
|
+
"type": "unknown",
|
|
281
|
+
"mutable": false,
|
|
282
|
+
"complexType": {
|
|
283
|
+
"original": "(newError: string) => void",
|
|
284
|
+
"resolved": "(newError: string) => void",
|
|
285
|
+
"references": {}
|
|
286
|
+
},
|
|
287
|
+
"required": false,
|
|
288
|
+
"optional": true,
|
|
289
|
+
"docs": {
|
|
290
|
+
"tags": [],
|
|
291
|
+
"text": ""
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"loadingStateChanged": {
|
|
295
|
+
"type": "unknown",
|
|
296
|
+
"mutable": false,
|
|
297
|
+
"complexType": {
|
|
298
|
+
"original": "(isLoading: boolean) => void",
|
|
299
|
+
"resolved": "(isLoading: boolean) => void",
|
|
300
|
+
"references": {}
|
|
301
|
+
},
|
|
302
|
+
"required": false,
|
|
303
|
+
"optional": true,
|
|
304
|
+
"docs": {
|
|
305
|
+
"tags": [],
|
|
306
|
+
"text": ""
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
static get states() {
|
|
312
|
+
return {
|
|
313
|
+
"wrapperErrorState": {},
|
|
314
|
+
"blazorRef": {}
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
static get methods() {
|
|
318
|
+
return {
|
|
319
|
+
"setBlazorRef": {
|
|
320
|
+
"complexType": {
|
|
321
|
+
"signature": "(newBlazorRef: DotNetObjectReference) => Promise<void>",
|
|
322
|
+
"parameters": [{
|
|
323
|
+
"name": "newBlazorRef",
|
|
324
|
+
"type": "{ invokeMethodAsync: (methodName: string, ...args: any[]) => Promise<any>; }",
|
|
325
|
+
"docs": ""
|
|
326
|
+
}],
|
|
327
|
+
"references": {
|
|
328
|
+
"Promise": {
|
|
329
|
+
"location": "global",
|
|
330
|
+
"id": "global::Promise"
|
|
331
|
+
},
|
|
332
|
+
"DotNetObjectReference": {
|
|
333
|
+
"location": "import",
|
|
334
|
+
"path": "~types/components",
|
|
335
|
+
"id": "src/global/types/components.ts::DotNetObjectReference"
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"return": "Promise<void>"
|
|
339
|
+
},
|
|
340
|
+
"docs": {
|
|
341
|
+
"text": "",
|
|
342
|
+
"tags": []
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
"fetchPartNumber": {
|
|
346
|
+
"complexType": {
|
|
347
|
+
"signature": "(partNumber: string, quantity?: string, headers?: any) => Promise<string>",
|
|
348
|
+
"parameters": [{
|
|
349
|
+
"name": "partNumber",
|
|
350
|
+
"type": "string",
|
|
351
|
+
"docs": ""
|
|
352
|
+
}, {
|
|
353
|
+
"name": "quantity",
|
|
354
|
+
"type": "string",
|
|
355
|
+
"docs": ""
|
|
356
|
+
}, {
|
|
357
|
+
"name": "headers",
|
|
358
|
+
"type": "any",
|
|
359
|
+
"docs": ""
|
|
360
|
+
}],
|
|
361
|
+
"references": {
|
|
362
|
+
"Promise": {
|
|
363
|
+
"location": "global",
|
|
364
|
+
"id": "global::Promise"
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
"return": "Promise<string>"
|
|
368
|
+
},
|
|
369
|
+
"docs": {
|
|
370
|
+
"text": "",
|
|
371
|
+
"tags": []
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
"getPageContext": {
|
|
375
|
+
"complexType": {
|
|
376
|
+
"signature": "() => Promise<{ componentsList: ComponentMap; }>",
|
|
377
|
+
"parameters": [],
|
|
378
|
+
"references": {
|
|
379
|
+
"Promise": {
|
|
380
|
+
"location": "global",
|
|
381
|
+
"id": "global::Promise"
|
|
382
|
+
},
|
|
383
|
+
"ComponentMap": {
|
|
384
|
+
"location": "local",
|
|
385
|
+
"path": "/home/vsts/work/1/s/src/components/part-lookup/part-lookup.tsx",
|
|
386
|
+
"id": "src/components/part-lookup/part-lookup.tsx::ComponentMap"
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
"return": "Promise<{ componentsList: ComponentMap; }>"
|
|
390
|
+
},
|
|
391
|
+
"docs": {
|
|
392
|
+
"text": "",
|
|
393
|
+
"tags": []
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
static get elementRef() { return "el"; }
|
|
399
|
+
static get watchers() {
|
|
400
|
+
return [{
|
|
401
|
+
"propName": "wrapperErrorState",
|
|
402
|
+
"methodName": "errorListener"
|
|
403
|
+
}];
|
|
404
|
+
}
|
|
405
|
+
}
|
|
@@ -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",
|
|
@@ -105,11 +105,11 @@ export class PaintThickness {
|
|
|
105
105
|
var _a, _b;
|
|
106
106
|
const texts = this.locale.vehicleLookup.paintThickness;
|
|
107
107
|
const { imageGroups, parts } = (this === null || this === void 0 ? void 0 : this.vehicleInformation) ? (_a = this === null || this === void 0 ? void 0 : this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.paintThickness : { imageGroups: [], parts: [] };
|
|
108
|
-
return (h(Host, { key: '
|
|
108
|
+
return (h(Host, { key: '1e382e152870fe6ed781e7bb1a61d0bc513bd33c' }, h("div", { key: '87f754d6e4231fc8ac96a47d38afeceac4961adb', dir: this.locale.direction, class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: 'ed7ec03eb3564e10d9a85158050c31ec4456b854' }, h(Loading, { key: '1b0d996939d7739f98b704230e0976874faab3ed', isLoading: this.state.includes('loading') }), h("div", { key: '466ef3752e44dc70b7feb76de7e209a57094e90d', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, h("div", { key: 'da246e967d6b33c272fc32584e2d7f1e0e83ccd4', class: cn('text-center pt-[4px] text-[20px]', { 'text-red-600': !!this.errorMessage }) }, (_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.vin), ['error', 'error-loading'].includes(this.state) && (h("div", { key: 'e4dcd6efb6dc64098925031c172ebc4827714d12', class: "py-[16px]" }, h("div", { key: '2bb9d510c170a8e270346c0b7f9eda339ad3d576', 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: 'dbeeb65434cc8e359f47aa85d83ec2855b456219', class: "flex mt-[12px] w-full max-h-[70dvh] overflow-hidden mx-auto rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: 'ee456914428711989d06c5b612a05b024224d339', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, texts.paintThickness), h("div", { key: 'b8a3f46ae6e09768cd2151f72d7e6e2a13d8308c', class: "h-0 overflow-auto flex-1" }, !parts.length && h("div", { key: 'db8327f2536be13dd32820898e2651ff08af81fd', class: "h-[50px] px-[30px] flex items-center justify-center text-[18px]" }, texts.noData), !!parts.length && (h("table", { key: 'e107871560c319d6c8830bbe8c9e9753dd7500c1', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: '28a54bb79297574e0f1f4f9db9397ce6d8d06a97', class: "top-0 font-bold sticky bg-white" }, h("tr", { key: '35c688c631187bbbbd2610f5532f949d994d8e86' }, ['part', 'left', 'right'].map(title => (h("th", { key: title, class: "px-[15px] min-w-[100px] py-[15px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, texts[title]))))), h("tbody", { key: '9d925d7ca4bec43400c168492ce6add324eeb74b' }, parts.map((part, idx) => (h("tr", { class: "transition-colors duration-100 hover:bg-slate-100", key: part.part }, ['part', 'left', 'right'].map(key => (h("td", { key: part.part + key, class: cn('px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]', {
|
|
109
109
|
'!border-none': idx === parts.length - 1,
|
|
110
|
-
}) }, part[key] || '...')))))))))))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '
|
|
110
|
+
}) }, part[key] || '...')))))))))))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: 'cba778359895dc949da8172f106f94380dbb7fb3' }, !imageGroups.length && h("div", { key: '4c76413ca2cc94aee048667c87a0541268cda16a', class: "h-[40px] px-[30px] flex text-red-500 items-center justify-center text-[18px]" }, texts.noImageGroups), !!imageGroups.length && (h("div", { key: 'df5b892b8bc8321fc22d90eb648ef1a0973e25dc', class: "py-[16px] gap-[16px] justify-center flex flex-wrap px-[24px] w-full" }, imageGroups.map(imageGroup => (h("div", { class: "shrink-0 rounded-lg shadow-sm border overflow-hidden flex flex-col", key: imageGroup.name }, h("h1", { class: "text-center border-b bg-slate-200 font-semibold p-[6px]" }, imageGroup.name), h("div", { class: "flex p-[12px] gap-[8px]" }, imageGroup.images.map(image => (h("div", { class: "flex gap-[8px]", key: image }, h("button", { onClick: ({ target }) => this.openImage(target, image), class: "shrink-0 relative ring-0 outline-none w-fit mx-auto [&_img]:hover:shadow-lg [&_div]:hover:!opacity-100 cursor-pointer" }, h("div", { class: "absolute flex-col justify-center gap-[4px] size-full flex items-center pointer-events-none hover:opacity-100 rounded-lg opacity-0 bg-black/40 transition-all duration-300" }, h("img", { src: Eye }), h("span", { class: "text-white" }, texts.expand)), h("img", { class: "w-auto h-[150px] cursor-pointer shadow-sm rounded-lg transition-all duration-300", src: image }))))))))), h("div", { key: 'aab963037ccebcc594fcd95f8145eab95b344c4e', onClick: () => this.closeImage(), style: { backdropFilter: this.expandedImage ? 'blur(3px)' : 'blur(0px)' }, class: cn('pointer-events-none w-[100dvw] h-[100dvh] fixed top-0 z-10 left-0 opacity-0 bg-black/40 transition-all duration-400', {
|
|
111
111
|
'pointer-events-auto opacity-100 delay-200': this.expandedImage,
|
|
112
|
-
}) }, h("button", { key: '
|
|
112
|
+
}) }, h("button", { key: 'fa15c8961fea415f14e59d539a64c1446789d5be', class: "flex flex-col mt-[16px] items-center justify-center size-12 float-right mr-[16px]", onClick: () => this.closeImage() }, h("div", { key: 'fd9a22c4c9b0bc3b87dd9831c74467738737f5ea', class: "h-1 w-12 rounded-full rotate-45 absolute bg-white" }), h("div", { key: 'a6a9e793fb57a7afe88bbd80218a9c293e0b24cc', class: "h-1 w-12 rounded-full -rotate-45 absolute bg-white" }))), h("img", { key: 'c6623b738244c8eeee9d0448014539e67d88b5df', alt: "", id: "expanded-image", class: "fixed opacity-0 z-40 transition-all rounded-lg" }))))))))));
|
|
113
113
|
}
|
|
114
114
|
static get is() { return "paint-thickness"; }
|
|
115
115
|
static get encapsulation() { return "shadow"; }
|
|
@@ -184,7 +184,7 @@ export class PaintThickness {
|
|
|
184
184
|
"mutable": false,
|
|
185
185
|
"complexType": {
|
|
186
186
|
"original": "LanguageKeys",
|
|
187
|
-
"resolved": "\"ar\" | \"en\" | \"ku\"",
|
|
187
|
+
"resolved": "\"ar\" | \"en\" | \"ku\" | \"ru\"",
|
|
188
188
|
"references": {
|
|
189
189
|
"LanguageKeys": {
|
|
190
190
|
"location": "import",
|
|
@@ -88,7 +88,7 @@ export class ServiceHistory {
|
|
|
88
88
|
render() {
|
|
89
89
|
var _a, _b, _c, _d;
|
|
90
90
|
const texts = this.locale.vehicleLookup.serviceHistory;
|
|
91
|
-
return (h(Host, { key: '
|
|
91
|
+
return (h(Host, { key: '2979b752e0381f4b40392e2f145207e2fe2494cf' }, h("div", { key: '2874c4f52f522a46eb6e43d65fa07e00f49a8f80', dir: this.locale.direction, class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: '0091ffe170d2ff1cd923a3b095e387a9fd90dea3' }, h(Loading, { key: 'd09927339a44e20d502d662593c940c7f85dd3ec', isLoading: this.state.includes('loading') }), h("div", { key: '937a9a01f833ff5586544e66493c1c52096d9aa3', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, h("div", { key: '07231540ca2c58cb561dd50524a809c4759927b7', class: cn('text-center pt-[4px] text-[20px]', { 'text-red-600': !!this.errorMessage }) }, (_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.vin), ['error', 'error-loading'].includes(this.state) && (h("div", { key: '3887f217d6bb6a29a83ea607134d7cb30a60bc46', class: "py-[16px]" }, h("div", { key: '0206e33c760a9da5cc7bd9cc7d262d40dd5eb0ed', 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: 'e7d14355842f4e96a7e049223e58bc6eb4850999', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: 'd216d2c492765c6136802226ea476f149ab1f89f', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, texts.serviceHistory), h("div", { key: '06d8bbabdb3dd4709376da4dff8c855cc381a28d', class: "h-0 overflow-auto flex-1" }, !((_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.serviceHistory.length) && h("div", { key: 'ef9d65cab3af6bf7bbd77eb3e6359889230117c2', class: "h-[80px] flex items-center justify-center text-[18px]" }, texts.noData), !!((_c = this.vehicleInformation) === null || _c === void 0 ? void 0 : _c.serviceHistory.length) && (h("table", { key: '4036d60fbddc852f055500dc3de7bd9e21ab6975', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: 'a8f78de49055ccb2eb40a5a91479ecb4909deb3a', class: "top-0 font-bold sticky bg-white" }, h("tr", { key: '9b21c419e30de3067ed6c3670afa395b50c26377' }, ['branch', 'dealer', 'invoiceNumber', 'date', 'serviceType', 'odometer'].map(title => (h("th", { key: title, class: "px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, texts[title]))))), h("tbody", { key: 'ec1151d70daae550c8bc36e22c6341cf1a7a867c' }, (_d = this.vehicleInformation) === null || _d === void 0 ? void 0 : _d.serviceHistory.map((service, idx) => (h("tr", { class: "transition-colors duration-100 hover:bg-slate-100", key: service.invoiceNumber }, ['branchName', 'companyName', 'invoiceNumber', 'serviceDate', 'serviceType', 'mileage'].map(serviceType => {
|
|
92
92
|
var _a;
|
|
93
93
|
return (h("td", { key: service.invoiceNumber + serviceType, class: cn('px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]', {
|
|
94
94
|
'!border-none': idx === ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceHistory.length) - 1,
|
|
@@ -168,7 +168,7 @@ export class ServiceHistory {
|
|
|
168
168
|
"mutable": false,
|
|
169
169
|
"complexType": {
|
|
170
170
|
"original": "LanguageKeys",
|
|
171
|
-
"resolved": "\"ar\" | \"en\" | \"ku\"",
|
|
171
|
+
"resolved": "\"ar\" | \"en\" | \"ku\" | \"ru\"",
|
|
172
172
|
"references": {
|
|
173
173
|
"LanguageKeys": {
|
|
174
174
|
"location": "import",
|