adp-web-components 0.0.37 → 0.0.40
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 +31 -13
- package/dist/cjs/dynamic-claim_6.cjs.entry.js +73 -37
- package/dist/cjs/dynamic-redeem.cjs.entry.js +2 -2
- package/dist/cjs/{get-local-language-2acb5afc.js → get-local-language-507f6989.js} +5 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/part-lookup.cjs.entry.js +30 -21
- package/dist/cjs/shift-components.cjs.js +1 -1
- package/dist/cjs/vehicle-lookup.cjs.entry.js +78 -51
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +57 -4
- package/dist/collection/components/part-lookup/distributor-lookup.js +51 -4
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +51 -4
- package/dist/collection/components/part-lookup/part-lookup.js +51 -80
- package/dist/collection/components/vehicle-lookup/dynamic-claim.css +1 -1
- package/dist/collection/components/vehicle-lookup/dynamic-claim.js +59 -6
- package/dist/collection/components/vehicle-lookup/dynamic-redeem.css +1 -1
- package/dist/collection/components/vehicle-lookup/paint-thickness.css +1 -1
- package/dist/collection/components/vehicle-lookup/paint-thickness.js +59 -6
- package/dist/collection/components/vehicle-lookup/service-history.css +1 -1
- package/dist/collection/components/vehicle-lookup/service-history.js +57 -4
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +59 -6
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +104 -78
- package/dist/collection/components/vehicle-lookup/vehicle-specification.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-specification.js +57 -4
- package/dist/collection/components/vehicle-lookup/warranty-details.css +1 -1
- package/dist/collection/components/vehicle-lookup/warranty-details.js +57 -5
- package/dist/collection/global/types/locales/error-schema.js +4 -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/manufacturer-lookup.js +1 -1
- package/dist/components/p-160dece9.js +5 -0
- package/dist/components/p-2340ecf4.js +5 -0
- package/dist/components/p-2e125a1d.js +5 -0
- package/dist/components/p-79893631.js +5 -0
- package/dist/components/{p-c20e4190.js → p-85a6b136.js} +1 -1
- package/dist/components/p-85d97144.js +5 -0
- package/dist/components/p-922ff52c.js +5 -0
- package/dist/components/{p-cb6dc5c3.js → p-b3de5ff6.js} +1 -1
- package/dist/components/p-ca930569.js +5 -0
- package/dist/components/p-e4d1afba.js +5 -0
- package/dist/components/p-f37f379d.js +5 -0
- package/dist/components/p-f3dd066f.js +5 -0
- package/dist/components/paint-thickness.js +1 -1
- package/dist/components/part-lookup.js +1 -1
- 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 +31 -13
- package/dist/esm/dynamic-claim_6.entry.js +73 -37
- package/dist/esm/dynamic-redeem.entry.js +2 -2
- package/dist/esm/{get-local-language-883f9a8a.js → get-local-language-fdcb49f6.js} +5 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/part-lookup.entry.js +30 -21
- package/dist/esm/shift-components.js +1 -1
- package/dist/esm/vehicle-lookup.entry.js +78 -51
- package/dist/locales/ar.json +5 -1
- package/dist/locales/en.json +5 -1
- package/dist/locales/ku.json +6 -2
- package/dist/locales/ru.json +109 -105
- package/dist/shift-components/{p-5f0b9f41.entry.js → p-363c7e29.entry.js} +1 -1
- package/dist/shift-components/p-42575b3f.entry.js +5 -0
- package/dist/shift-components/p-52102bc7.entry.js +5 -0
- package/dist/shift-components/p-a066b3b3.entry.js +5 -0
- package/dist/shift-components/p-cd766b0f.entry.js +5 -0
- package/dist/shift-components/p-e9ccc7a9.js +5 -0
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/components/part-lookup/dead-stock-lookup.d.ts +2 -0
- package/dist/types/components/part-lookup/distributor-lookup.d.ts +2 -0
- package/dist/types/components/part-lookup/manufacturer-lookup.d.ts +2 -0
- package/dist/types/components/part-lookup/part-lookup.d.ts +7 -7
- package/dist/types/components/vehicle-lookup/dynamic-claim.d.ts +2 -0
- package/dist/types/components/vehicle-lookup/paint-thickness.d.ts +2 -0
- package/dist/types/components/vehicle-lookup/service-history.d.ts +2 -0
- package/dist/types/components/vehicle-lookup/vehicle-accessories.d.ts +2 -0
- package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +25 -15
- package/dist/types/components/vehicle-lookup/vehicle-specification.d.ts +2 -0
- package/dist/types/components/vehicle-lookup/warranty-details.d.ts +2 -0
- package/dist/types/components.d.ts +36 -11
- package/dist/types/global/types/locales/error-schema.d.ts +8 -0
- package/dist/types/global/types/locales/index.d.ts +8 -0
- package/package.json +1 -1
- package/dist/components/p-09dd6de2.js +0 -5
- package/dist/components/p-21dfafba.js +0 -5
- package/dist/components/p-2f02d063.js +0 -5
- package/dist/components/p-58a3bbc5.js +0 -5
- package/dist/components/p-5e80276a.js +0 -5
- package/dist/components/p-acbea376.js +0 -5
- package/dist/components/p-bfddfd50.js +0 -5
- package/dist/components/p-c41b74ea.js +0 -5
- package/dist/components/p-c7747b68.js +0 -5
- package/dist/components/p-f312b879.js +0 -5
- package/dist/shift-components/p-45cc348b.entry.js +0 -5
- package/dist/shift-components/p-5e46843c.entry.js +0 -5
- package/dist/shift-components/p-954859b9.entry.js +0 -5
- package/dist/shift-components/p-c44fe649.js +0 -5
- package/dist/shift-components/p-dc33c5ac.entry.js +0 -5
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-33ae6859.js';
|
|
6
|
-
import { l as localeSchema, g as getLocaleLanguage } from './get-local-language-
|
|
6
|
+
import { l as localeSchema, g as getLocaleLanguage } from './get-local-language-fdcb49f6.js';
|
|
7
7
|
import { c as cn } from './cn-cc419b94.js';
|
|
8
8
|
import { L as Loading } from './Loading-f4d666ee.js';
|
|
9
9
|
import './index.esm-46e0cdad.js';
|
|
@@ -47,6 +47,7 @@ const DeadStockLookup = class {
|
|
|
47
47
|
this.isDev = false;
|
|
48
48
|
this.queryString = '';
|
|
49
49
|
this.language = 'en';
|
|
50
|
+
this.errorCallback = undefined;
|
|
50
51
|
this.loadingStateChange = undefined;
|
|
51
52
|
this.loadedResponse = undefined;
|
|
52
53
|
this.state = 'idle';
|
|
@@ -99,12 +100,17 @@ const DeadStockLookup = class {
|
|
|
99
100
|
catch (error) {
|
|
100
101
|
if (error && (error === null || error === void 0 ? void 0 : error.name) === 'AbortError')
|
|
101
102
|
return;
|
|
103
|
+
if (this.errorCallback)
|
|
104
|
+
this.errorCallback(error.message);
|
|
102
105
|
console.error(error);
|
|
103
|
-
this.
|
|
104
|
-
this.partInformation = null;
|
|
105
|
-
this.errorMessage = error.message;
|
|
106
|
+
this.setErrorMessage(error.message);
|
|
106
107
|
}
|
|
107
108
|
}
|
|
109
|
+
async setErrorMessage(message) {
|
|
110
|
+
this.state = 'error';
|
|
111
|
+
this.partInformation = null;
|
|
112
|
+
this.errorMessage = message;
|
|
113
|
+
}
|
|
108
114
|
async fetchData(partNumber = this.externalPartNumber, headers = {}) {
|
|
109
115
|
await this.setData(partNumber, headers);
|
|
110
116
|
}
|
|
@@ -135,7 +141,7 @@ const DeadStockLookup = class {
|
|
|
135
141
|
render() {
|
|
136
142
|
var _a, _b;
|
|
137
143
|
const texts = this.locale.partLookup.deadStock;
|
|
138
|
-
return (h(Host, { key: '
|
|
144
|
+
return (h(Host, { key: '8e90f1998fe2184d555e7213065147e2e2403dd1' }, h("div", { key: '774bea05f92f91784c3a96d3f34c332428d3dfb3', dir: this.locale.direction, class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: '9a391c96e4f96281d992282871c7538a3d31e42f' }, h(Loading, { key: 'b62445ae1983828a74a62a9ee15cd07a159a9bb1', isLoading: this.state.includes('loading') }), h("div", { key: '939df7c5ee00c70bf0cd2ce6e83cb19eb83c7b5e', 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: 'aeeeb9df8f126abcb5bd654a200f6170843ca25f', class: "py-[16px] min-h-[100px] flex items-center" }, h("div", { key: '746fc041eae5db843e6e0d167ee84571f7b22432', 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: '3e5a6e9ed98698da6ea563e632ba5088f736ea94' }, h("div", { key: 'a292f6441da3999bdb28293bc81b216ad83b6311', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '6a21112d4bd30a512e93668ed1d58c520eeb3f9d', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, texts.deadStock), (_b = (_a = this.partInformation) === null || _a === void 0 ? void 0 : _a.deadStock) === null || _b === void 0 ? void 0 :
|
|
139
145
|
_b.map(deadStock => (h("div", { key: deadStock.companyIntegrationID, class: "py-[10px] px-[20px]" }, h("div", { "aria-expanded": "false", style: { height: closedAccordionHeight }, class: "border shadow transition-all duration-500 overflow-hidden rounded-md mb-[10px] border-[#d6d8dc]" }, h("button", { onClick: this.toggleAccordion, style: { height: closedAccordionHeight }, class: "w-full flex px-[10px] justify-between items-center text-slate-800" }, h("strong", null, deadStock.companyName), h("span", { class: "icon text-slate-800 transition-transform duration-500" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "currentColor", class: "size-[22px]" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.78 9.78a.75.75 0 0 1-1.06 0L8 7.06 5.28 9.78a.75.75 0 0 1-1.06-1.06l3.25-3.25a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1 0 1.06Z" })))), h("div", { class: "content" }, h("table", { class: "w-full overflow-auto relative border-collapse" }, h("thead", null, h("tr", null, h("th", { class: "py-[20px] px-[10px] text-start whitespace-nowrap border-b border-[#d6d8dc]" }, texts.branch), h("th", { class: "py-[20px] px-[10px] text-start whitespace-nowrap border-b border-[#d6d8dc]" }, texts.availableQuantity))), h("tbody", null, deadStock === null || deadStock === void 0 ? void 0 : deadStock.branchDeadStock.map(branchDeadStock => (h("tr", { class: "transition-colors border-b border-[#d6d8dc] last:border-none duration-100 hover:bg-slate-100", key: branchDeadStock.companyBranchIntegrationID }, h("td", { class: cn('py-[20px] px-[10px] text-start whitespace-nowrap') }, branchDeadStock.companyBranchName), h("td", { class: cn('py-[20px] px-[10px] text-start whitespace-nowrap') }, h("strong", null, branchDeadStock.quantity))))))))))))))))))));
|
|
140
146
|
}
|
|
141
147
|
get el() { return getElement(this); }
|
|
@@ -159,6 +165,7 @@ const DistributorLookup = class {
|
|
|
159
165
|
this.hiddenFields = '';
|
|
160
166
|
this.language = 'en';
|
|
161
167
|
this.localizationName = '';
|
|
168
|
+
this.errorCallback = undefined;
|
|
162
169
|
this.loadingStateChange = undefined;
|
|
163
170
|
this.loadedResponse = undefined;
|
|
164
171
|
this.state = 'idle';
|
|
@@ -211,12 +218,17 @@ const DistributorLookup = class {
|
|
|
211
218
|
catch (error) {
|
|
212
219
|
if (error && (error === null || error === void 0 ? void 0 : error.name) === 'AbortError')
|
|
213
220
|
return;
|
|
221
|
+
if (this.errorCallback)
|
|
222
|
+
this.errorCallback(error.message);
|
|
214
223
|
console.error(error);
|
|
215
|
-
this.
|
|
216
|
-
this.partInformation = null;
|
|
217
|
-
this.errorMessage = error.message;
|
|
224
|
+
this.setErrorMessage(error.message);
|
|
218
225
|
}
|
|
219
226
|
}
|
|
227
|
+
async setErrorMessage(message) {
|
|
228
|
+
this.state = 'error';
|
|
229
|
+
this.partInformation = null;
|
|
230
|
+
this.errorMessage = message;
|
|
231
|
+
}
|
|
220
232
|
async fetchData(partNumber = this.externalPartNumber, headers = {}) {
|
|
221
233
|
await this.setData(partNumber, headers);
|
|
222
234
|
}
|
|
@@ -251,7 +263,7 @@ const DistributorLookup = class {
|
|
|
251
263
|
const displayDistributer = this.partInformation
|
|
252
264
|
? !this.partInformation.stockParts.some(({ quantityLookUpResult }) => quantityLookUpResult === 'LookupIsSkipped' || quantityLookUpResult === 'QuantityNotWithinLookupThreshold')
|
|
253
265
|
: false;
|
|
254
|
-
return (h(Host, { key: '
|
|
266
|
+
return (h(Host, { key: 'dfc3c07bae01155268a071ae0f19fb4530dc6d20' }, h("div", { key: 'dc644b6897f5a6b0f097f7b9be229fbee9a3e572', dir: this.locale.direction, class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: '0746775729b4a25b8ede7d6bb41c0dbc728a097f' }, h(Loading, { key: '6883aedd91e745b701aecce993e5be98783096b9', isLoading: this.state.includes('loading') }), h("div", { key: '32f514d0acb4642378430384b3d18b3871e1cb9a', 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: '8b261761a5bc1ec3a0b202b48eaabc843be0bcef', class: "py-[16px] min-h-[100px] flex items-center" }, h("div", { key: '9424a160f60d16092caf024f65b383b8bbbb60d9', 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: '2eb2d5a1cb1374650acdac024fda304bb48bf288' }, h("div", { key: 'd8fdd4f615bc201636e3a85d40c71eb651a41f4d', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '2463ab849a17485a676c095cbb85b7f7b5c4cf79', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, texts.info), h("div", { key: '611cecf0f6cc7ec5e96f51421f39b7987e0901a5', class: "py-[10px] px-[30px] flex flex-col gap-[15px]" }, h("div", { key: '47f00102b72741e633e5238f9dc8ae8c37d6c784', class: "grid grid-cols-3 gap-[50px]" }, displayedFields.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))))))), displayDistributer && (h("div", { key: '4a098c48395263c9ea051d172aa1a1191da22f28', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '86bf538ef1e51bacc2584bbc8d10a51a6e9fc3c7', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, texts.distributorStock), h("div", { key: '30edc53951986417fb89fb1683cf47d42b621a44', class: "flex flex-col gap-[15px]" }, h("table", { key: '8c1e4806387b36e696245451378f7dbf90cdba1f', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: '501de449dc19791bc1b4b8d1ba7757b34dd5e0c7', class: "top-0 font-bold sticky bg-white" }, h("tr", { key: '5e16d48cf313467d8bbabba7fe8fe32ce3fda2ce' }, [texts.location, texts.availability].map(title => (h("th", { key: title, class: "px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, title))))), h("tbody", { key: 'afe0f26778d5ab571a0aedaee78ed5ee26eac4bd' }, (_c = this.partInformation) === null || _c === void 0 ? void 0 : _c.stockParts.map(stock => (h("tr", { class: "transition-colors duration-100 border-b border-[#d6d8dc] last:border-none hover:bg-slate-100", key: stock.locationID }, h("td", { class: cn('px-[10px] py-[20px] text-center whitespace-nowrap') }, stock.locationName), h("td", { class: cn('px-[10px] py-[20px] text-center whitespace-nowrap') }, h("div", { class: cn('text-[red]', {
|
|
255
267
|
'text-[green]': stock.quantityLookUpResult === 'Available',
|
|
256
268
|
'text-[orange]': stock.quantityLookUpResult === 'PartiallyAvailable',
|
|
257
269
|
}) }, h("strong", null, stock.quantityLookUpResult === 'Available'
|
|
@@ -282,6 +294,7 @@ const ManufacturerLookup = class {
|
|
|
282
294
|
this.language = 'en';
|
|
283
295
|
this.localizationName = '';
|
|
284
296
|
this.headerTitle = 'Manufacturer';
|
|
297
|
+
this.errorCallback = undefined;
|
|
285
298
|
this.loadingStateChange = undefined;
|
|
286
299
|
this.loadedResponse = undefined;
|
|
287
300
|
this.state = 'idle';
|
|
@@ -334,12 +347,17 @@ const ManufacturerLookup = class {
|
|
|
334
347
|
catch (error) {
|
|
335
348
|
if (error && (error === null || error === void 0 ? void 0 : error.name) === 'AbortError')
|
|
336
349
|
return;
|
|
350
|
+
if (this.errorCallback)
|
|
351
|
+
this.errorCallback(error.message);
|
|
337
352
|
console.error(error);
|
|
338
|
-
this.
|
|
339
|
-
this.partInformation = null;
|
|
340
|
-
this.errorMessage = error.message;
|
|
353
|
+
this.setErrorMessage(error.message);
|
|
341
354
|
}
|
|
342
355
|
}
|
|
356
|
+
async setErrorMessage(message) {
|
|
357
|
+
this.state = 'error';
|
|
358
|
+
this.partInformation = null;
|
|
359
|
+
this.errorMessage = message;
|
|
360
|
+
}
|
|
343
361
|
async fetchData(partNumber = this.externalPartNumber, headers = {}) {
|
|
344
362
|
await this.setData(partNumber, headers);
|
|
345
363
|
}
|
|
@@ -375,7 +393,7 @@ const ManufacturerLookup = class {
|
|
|
375
393
|
]
|
|
376
394
|
: [];
|
|
377
395
|
const displayedManufacturerData = manufacturerData.filter(part => !hiddenFields.includes(part.key));
|
|
378
|
-
return (h(Host, { key: '
|
|
396
|
+
return (h(Host, { key: 'e7a268a4871e4c93e6cfeab933f25709705f7cba' }, h("div", { key: '7439a3fd0d521268c42925d0ecfd19bae55153d2', dir: this.locale.direction, class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: 'ae5f9644c3dc0ee8c2da994ce2225968d6858663' }, h(Loading, { key: '89cccb47ca737afe725660fe0864af7d055d655e', isLoading: this.state.includes('loading') }), h("div", { key: '7f0f5096f6d1679c74b396660d2855ea53bb9d53', 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: '8e231bbe51763a87a9cf04cf9e2c1de223cfbf0b', class: "py-[16px] min-h-[100px] flex items-center" }, h("div", { key: '57cf99f515a6efcbac913452c4e342f5a5c9432a', 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: 'de201e56f0bf0b8b14bfac50099c85a6dc9f19e1' }, h("div", { key: '7af41614f6e78d7583f6b00aec6f93b91e3118e5', class: "flex mt-[12px] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '5e64e23bce7be7ab329a4808143730c08a297522', 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: '2aa1fb1cad61eb48ab89258f7d1d3a34d50925a6', class: "px-[30px] py-[10px] flex flex-col gap-[15px]" }, h("div", { key: 'd888b93b3230c58106bbd1c132600f3cba3c090b', 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))))))))))))));
|
|
379
397
|
}
|
|
380
398
|
get el() { return getElement(this); }
|
|
381
399
|
static get watchers() { return {
|