gap-nodejs-sdk 1.0.365 → 1.0.366

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.
Files changed (82) hide show
  1. package/dist/api/appointment_api/1.0.0/models/appointment.d.ts.map +1 -1
  2. package/dist/api/appointment_api/1.0.0/models/appointment.js +2 -9
  3. package/dist/api/appointment_api/1.0.0/types/response/appointment.d.ts +0 -7
  4. package/dist/api/appointment_api/1.0.0/types/response/appointment.d.ts.map +1 -1
  5. package/dist/api/go_check_in_api/1.0.0/api/checkin.d.ts +0 -8
  6. package/dist/api/go_check_in_api/1.0.0/api/checkin.d.ts.map +1 -1
  7. package/dist/api/go_check_in_api/1.0.0/api/checkin.js +0 -72
  8. package/dist/api/go_check_in_api/1.0.0/api/index.d.ts +0 -1
  9. package/dist/api/go_check_in_api/1.0.0/api/index.d.ts.map +1 -1
  10. package/dist/api/go_check_in_api/1.0.0/api/index.js +0 -1
  11. package/dist/api/go_check_in_api/1.0.0/api/service.d.ts +0 -1
  12. package/dist/api/go_check_in_api/1.0.0/api/service.d.ts.map +1 -1
  13. package/dist/api/go_check_in_api/1.0.0/api/service.js +0 -10
  14. package/dist/api/go_check_in_api/1.0.0/endpoints/checkin.d.ts +0 -7
  15. package/dist/api/go_check_in_api/1.0.0/endpoints/checkin.d.ts.map +1 -1
  16. package/dist/api/go_check_in_api/1.0.0/endpoints/checkin.js +0 -7
  17. package/dist/api/go_check_in_api/1.0.0/endpoints/index.d.ts +0 -1
  18. package/dist/api/go_check_in_api/1.0.0/endpoints/index.d.ts.map +1 -1
  19. package/dist/api/go_check_in_api/1.0.0/endpoints/index.js +0 -1
  20. package/dist/api/go_check_in_api/1.0.0/endpoints/service.d.ts +0 -1
  21. package/dist/api/go_check_in_api/1.0.0/endpoints/service.d.ts.map +1 -1
  22. package/dist/api/go_check_in_api/1.0.0/endpoints/service.js +0 -1
  23. package/dist/api/go_check_in_api/1.0.0/models/checkin.d.ts +0 -251
  24. package/dist/api/go_check_in_api/1.0.0/models/checkin.d.ts.map +1 -1
  25. package/dist/api/go_check_in_api/1.0.0/models/checkin.js +7 -285
  26. package/dist/api/go_check_in_api/1.0.0/models/index.d.ts +0 -1
  27. package/dist/api/go_check_in_api/1.0.0/models/index.d.ts.map +1 -1
  28. package/dist/api/go_check_in_api/1.0.0/models/index.js +0 -1
  29. package/dist/api/go_check_in_api/1.0.0/models/service.d.ts +0 -25
  30. package/dist/api/go_check_in_api/1.0.0/models/service.d.ts.map +1 -1
  31. package/dist/api/go_check_in_api/1.0.0/models/service.js +0 -32
  32. package/dist/api/go_check_in_api/1.0.0/types/request/checkin.d.ts +0 -43
  33. package/dist/api/go_check_in_api/1.0.0/types/request/checkin.d.ts.map +1 -1
  34. package/dist/api/go_check_in_api/1.0.0/types/request/index.d.ts +0 -1
  35. package/dist/api/go_check_in_api/1.0.0/types/request/index.d.ts.map +1 -1
  36. package/dist/api/go_check_in_api/1.0.0/types/request/index.js +0 -1
  37. package/dist/api/go_check_in_api/1.0.0/types/request/service.d.ts +0 -3
  38. package/dist/api/go_check_in_api/1.0.0/types/request/service.d.ts.map +1 -1
  39. package/dist/api/go_check_in_api/1.0.0/types/response/checkin.d.ts +1 -176
  40. package/dist/api/go_check_in_api/1.0.0/types/response/checkin.d.ts.map +1 -1
  41. package/dist/api/go_check_in_api/1.0.0/types/response/index.d.ts +0 -1
  42. package/dist/api/go_check_in_api/1.0.0/types/response/index.d.ts.map +1 -1
  43. package/dist/api/go_check_in_api/1.0.0/types/response/index.js +0 -1
  44. package/dist/api/go_check_in_api/1.0.0/types/response/service.d.ts +0 -26
  45. package/dist/api/go_check_in_api/1.0.0/types/response/service.d.ts.map +1 -1
  46. package/dist/api/go_check_in_api/index.d.ts +0 -1
  47. package/dist/api/go_check_in_api/index.d.ts.map +1 -1
  48. package/dist/api/go_check_in_api/index.js +0 -1
  49. package/dist/api/pos_client_api/1.0.0/api/check_out.d.ts +0 -1
  50. package/dist/api/pos_client_api/1.0.0/api/check_out.d.ts.map +1 -1
  51. package/dist/api/pos_client_api/1.0.0/api/check_out.js +0 -10
  52. package/dist/api/pos_client_api/1.0.0/endpoints/check_out.d.ts +0 -1
  53. package/dist/api/pos_client_api/1.0.0/endpoints/check_out.d.ts.map +1 -1
  54. package/dist/api/pos_client_api/1.0.0/endpoints/check_out.js +0 -1
  55. package/dist/api/settings_api/1.0.0/types/request/checkout.d.ts +1 -1
  56. package/dist/api/settings_api/1.0.0/types/request/checkout.d.ts.map +1 -1
  57. package/dist/clover/CloverPayment.d.ts +2 -1
  58. package/dist/clover/CloverPayment.d.ts.map +1 -1
  59. package/dist/clover/types.d.ts +4 -0
  60. package/dist/clover/types.d.ts.map +1 -1
  61. package/dist/gap-sdk.js +1 -1
  62. package/dist/payment/payment_interface.d.ts +2 -1
  63. package/dist/payment/payment_interface.d.ts.map +1 -1
  64. package/package.json +1 -1
  65. package/dist/api/go_check_in_api/1.0.0/api/invoice.d.ts +0 -10
  66. package/dist/api/go_check_in_api/1.0.0/api/invoice.d.ts.map +0 -1
  67. package/dist/api/go_check_in_api/1.0.0/api/invoice.js +0 -18
  68. package/dist/api/go_check_in_api/1.0.0/endpoints/invoice.d.ts +0 -5
  69. package/dist/api/go_check_in_api/1.0.0/endpoints/invoice.d.ts.map +0 -1
  70. package/dist/api/go_check_in_api/1.0.0/endpoints/invoice.js +0 -3
  71. package/dist/api/go_check_in_api/1.0.0/interfaces/invoice.d.ts +0 -1
  72. package/dist/api/go_check_in_api/1.0.0/interfaces/invoice.d.ts.map +0 -1
  73. package/dist/api/go_check_in_api/1.0.0/interfaces/invoice.js +0 -0
  74. package/dist/api/go_check_in_api/1.0.0/models/invoice.d.ts +0 -24
  75. package/dist/api/go_check_in_api/1.0.0/models/invoice.d.ts.map +0 -1
  76. package/dist/api/go_check_in_api/1.0.0/models/invoice.js +0 -56
  77. package/dist/api/go_check_in_api/1.0.0/types/request/invoice.d.ts +0 -5
  78. package/dist/api/go_check_in_api/1.0.0/types/request/invoice.d.ts.map +0 -1
  79. package/dist/api/go_check_in_api/1.0.0/types/request/invoice.js +0 -1
  80. package/dist/api/go_check_in_api/1.0.0/types/response/invoice.d.ts +0 -51
  81. package/dist/api/go_check_in_api/1.0.0/types/response/invoice.d.ts.map +0 -1
  82. package/dist/api/go_check_in_api/1.0.0/types/response/invoice.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import { clover } from "src/clover/CloverPaymentObject";
2
2
  import { PaymentResponseModel } from "../clover/payment_response_model";
3
- import { AdjustInput, Order, PaymentInput, PrintRequest, RefundInput, RetrieveInput, ShowDialogInput, ShowTextBoxInput, VoidInput } from "../clover/types";
3
+ import { AdjustInput, DoScanInput, Order, PaymentInput, PrintRequest, RefundInput, RetrieveInput, ShowDialogInput, ShowTextBoxInput, VoidInput } from "../clover/types";
4
4
  import { GapPaymentClientConfiguration } from "./type";
5
5
  export interface PaymentInterface {
6
6
  paymentClientConfiguration: GapPaymentClientConfiguration;
@@ -27,5 +27,6 @@ export interface PaymentInterface {
27
27
  doPrint: (printRequest: PrintRequest | clover.remotepay.PrintRequest) => void;
28
28
  doShowDialog: (showDialogInput: ShowDialogInput) => Promise<PaymentResponseModel>;
29
29
  doShowTextBox: (showTextBoxInput: ShowTextBoxInput) => Promise<PaymentResponseModel>;
30
+ doScan: (doScanInput: DoScanInput) => Promise<PaymentResponseModel>;
30
31
  }
31
32
  //# sourceMappingURL=payment_interface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"payment_interface.d.ts","sourceRoot":"","sources":["../../src/payment/payment_interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AA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
  "name": "gap-nodejs-sdk",
3
- "version": "1.0.365",
3
+ "version": "1.0.366",
4
4
  "description": "GCI App Platform Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,10 +0,0 @@
1
- import CategoryAbstractClass from "../interfaces/category";
2
- import Base from "../../../../base/Base";
3
- import { GapApiVersion } from "../../../../base_type";
4
- import * as Request from "../types/request";
5
- import * as Response from "../types/response";
6
- export default class Invoice extends Base implements CategoryAbstractClass {
7
- static API_VERSION: GapApiVersion;
8
- static getListByCustomer(query: Request.GetListByCustomerRequest): Promise<Response.GetListByCustomerResponse>;
9
- }
10
- //# sourceMappingURL=invoice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invoice.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/api/invoice.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,IAAI,MAAM,uBAAuB,CAAC;AACzC,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,IAAK,YAAW,qBAAqB;IACtE,OAAc,WAAW,gBAAoB;WAEzB,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;CAS9H"}
@@ -1,18 +0,0 @@
1
- import { __awaiter } from "tslib";
2
- import { invoice } from "../endpoints";
3
- import Base from "../../../../base/Base";
4
- import { GapApiVersion } from "../../../../base_type";
5
- import * as Model from "../models";
6
- export default class Invoice extends Base {
7
- static getListByCustomer(query) {
8
- var _a, _b;
9
- return __awaiter(this, void 0, void 0, function* () {
10
- const response = yield this.client.get({
11
- path: invoice.GET_LIST_BY_CUSTOMER,
12
- query: query
13
- });
14
- return (((_b = (_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.items) || []).map(item => Model.ListByCustomerModel(item));
15
- });
16
- }
17
- }
18
- Invoice.API_VERSION = GapApiVersion.V1;
@@ -1,5 +0,0 @@
1
- declare const _default: {
2
- GET_LIST_BY_CUSTOMER: string;
3
- };
4
- export default _default;
5
- //# sourceMappingURL=invoice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invoice.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/endpoints/invoice.ts"],"names":[],"mappings":";;;AAAA,wBAEC"}
@@ -1,3 +0,0 @@
1
- export default {
2
- GET_LIST_BY_CUSTOMER: 'v1/gocheckin/invoice/site/list-by-customer',
3
- };
@@ -1 +0,0 @@
1
- //# sourceMappingURL=invoice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invoice.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/interfaces/invoice.ts"],"names":[],"mappings":""}
@@ -1,24 +0,0 @@
1
- export declare const ListByCustomerModel: (data: any) => {
2
- id: any;
3
- checkout_id: any;
4
- customer_id: any;
5
- customer_name: any;
6
- customer_phone: any;
7
- promotion_code: any;
8
- redeem_id: any;
9
- total_discount: any;
10
- has_tax: any;
11
- tax_price: any;
12
- total_before_discount: any;
13
- total_after_discount: any;
14
- total_after_tax: any;
15
- payment_method: any;
16
- employee_id: any;
17
- employee_name: any;
18
- status: any;
19
- created_at: any;
20
- updated_at: any;
21
- type: any;
22
- invoice_details: any;
23
- };
24
- //# sourceMappingURL=invoice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invoice.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/models/invoice.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,SAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;CAwB5C,CAAA"}
@@ -1,56 +0,0 @@
1
- export const ListByCustomerModel = (data) => {
2
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
3
- return {
4
- id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
5
- checkout_id: (_b = data === null || data === void 0 ? void 0 : data.checkout_id) !== null && _b !== void 0 ? _b : null,
6
- customer_id: (_c = data === null || data === void 0 ? void 0 : data.customer_id) !== null && _c !== void 0 ? _c : null,
7
- customer_name: (_d = data === null || data === void 0 ? void 0 : data.customer_name) !== null && _d !== void 0 ? _d : null,
8
- customer_phone: (_e = data === null || data === void 0 ? void 0 : data.customer_phone) !== null && _e !== void 0 ? _e : null,
9
- promotion_code: (_f = data === null || data === void 0 ? void 0 : data.promotion_code) !== null && _f !== void 0 ? _f : null,
10
- redeem_id: (_g = data === null || data === void 0 ? void 0 : data.redeem_id) !== null && _g !== void 0 ? _g : null,
11
- total_discount: (_h = data === null || data === void 0 ? void 0 : data.total_discount) !== null && _h !== void 0 ? _h : null,
12
- has_tax: (_j = data === null || data === void 0 ? void 0 : data.has_tax) !== null && _j !== void 0 ? _j : null,
13
- tax_price: (_k = data === null || data === void 0 ? void 0 : data.tax_price) !== null && _k !== void 0 ? _k : null,
14
- total_before_discount: (_l = data === null || data === void 0 ? void 0 : data.total_before_discount) !== null && _l !== void 0 ? _l : null,
15
- total_after_discount: (_m = data === null || data === void 0 ? void 0 : data.total_after_discount) !== null && _m !== void 0 ? _m : null,
16
- total_after_tax: (_o = data === null || data === void 0 ? void 0 : data.total_after_tax) !== null && _o !== void 0 ? _o : null,
17
- payment_method: (_p = data === null || data === void 0 ? void 0 : data.payment_method) !== null && _p !== void 0 ? _p : null,
18
- employee_id: (_q = data === null || data === void 0 ? void 0 : data.employee_id) !== null && _q !== void 0 ? _q : null,
19
- employee_name: (_r = data === null || data === void 0 ? void 0 : data.employee_name) !== null && _r !== void 0 ? _r : null,
20
- status: (_s = data === null || data === void 0 ? void 0 : data.status) !== null && _s !== void 0 ? _s : null,
21
- created_at: (_t = data === null || data === void 0 ? void 0 : data.created_at) !== null && _t !== void 0 ? _t : null,
22
- updated_at: (_u = data === null || data === void 0 ? void 0 : data.updated_at) !== null && _u !== void 0 ? _u : null,
23
- type: (_v = data === null || data === void 0 ? void 0 : data.type) !== null && _v !== void 0 ? _v : null,
24
- invoice_details: InvoiceDetail(data === null || data === void 0 ? void 0 : data.invoice_details)
25
- };
26
- };
27
- const InvoiceDetail = (data) => {
28
- return (data || []).map((item) => {
29
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
30
- return {
31
- id: (_a = item === null || item === void 0 ? void 0 : item.id) !== null && _a !== void 0 ? _a : null,
32
- invoice_id: (_b = item === null || item === void 0 ? void 0 : item.invoice_id) !== null && _b !== void 0 ? _b : null,
33
- product_type: (_c = item === null || item === void 0 ? void 0 : item.product_type) !== null && _c !== void 0 ? _c : null,
34
- product_id: (_d = item === null || item === void 0 ? void 0 : item.product_id) !== null && _d !== void 0 ? _d : null,
35
- product_name: (_e = item === null || item === void 0 ? void 0 : item.product_name) !== null && _e !== void 0 ? _e : null,
36
- description: (_f = item === null || item === void 0 ? void 0 : item.description) !== null && _f !== void 0 ? _f : null,
37
- duration: (_g = item === null || item === void 0 ? void 0 : item.duration) !== null && _g !== void 0 ? _g : null,
38
- product_price: (_h = item === null || item === void 0 ? void 0 : item.product_price) !== null && _h !== void 0 ? _h : null,
39
- quantity: (_j = item === null || item === void 0 ? void 0 : item.quantity) !== null && _j !== void 0 ? _j : null,
40
- promotion_code: (_k = item === null || item === void 0 ? void 0 : item.promotion_code) !== null && _k !== void 0 ? _k : null,
41
- discount_price: (_l = item === null || item === void 0 ? void 0 : item.discount_price) !== null && _l !== void 0 ? _l : null,
42
- has_tax: (_m = item === null || item === void 0 ? void 0 : item.has_tax) !== null && _m !== void 0 ? _m : null,
43
- tax_price: (_o = item === null || item === void 0 ? void 0 : item.tax_price) !== null && _o !== void 0 ? _o : null,
44
- total_after_tax: (_p = item === null || item === void 0 ? void 0 : item.total_after_tax) !== null && _p !== void 0 ? _p : null,
45
- total_before_discount: (_q = item === null || item === void 0 ? void 0 : item.total_before_discount) !== null && _q !== void 0 ? _q : null,
46
- total_after_discount: (_r = item === null || item === void 0 ? void 0 : item.total_after_discount) !== null && _r !== void 0 ? _r : null,
47
- detail: (_s = item === null || item === void 0 ? void 0 : item.detail) !== null && _s !== void 0 ? _s : null,
48
- payment_method: (_t = item === null || item === void 0 ? void 0 : item.payment_method) !== null && _t !== void 0 ? _t : null,
49
- employee_id: (_u = item === null || item === void 0 ? void 0 : item.employee_id) !== null && _u !== void 0 ? _u : null,
50
- employee_name: (_v = item === null || item === void 0 ? void 0 : item.employee_name) !== null && _v !== void 0 ? _v : null,
51
- status: (_w = item === null || item === void 0 ? void 0 : item.status) !== null && _w !== void 0 ? _w : null,
52
- created_at: (_x = item === null || item === void 0 ? void 0 : item.created_at) !== null && _x !== void 0 ? _x : null,
53
- updated_at: (_y = item === null || item === void 0 ? void 0 : item.updated_at) !== null && _y !== void 0 ? _y : null,
54
- };
55
- });
56
- };
@@ -1,5 +0,0 @@
1
- export type GetListByCustomerRequest = {
2
- id: number;
3
- 'per-page': number;
4
- };
5
- //# sourceMappingURL=invoice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invoice.d.ts","sourceRoot":"","sources":["../../../../../../src/api/go_check_in_api/1.0.0/types/request/invoice.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,MAAM,CAAA;CACrB,CAAA"}
@@ -1,51 +0,0 @@
1
- import { Nullable } from "src/base_type";
2
- export type GetListByCustomerResponse = Nullable<{
3
- id: number;
4
- checkout_id: number;
5
- customer_id: number;
6
- customer_name: string;
7
- customer_phone: string;
8
- promotion_code: any;
9
- redeem_id: any;
10
- total_discount: number;
11
- has_tax: number;
12
- tax_price: number;
13
- total_before_discount: number;
14
- total_after_discount: number;
15
- total_after_tax: number;
16
- payment_method: any;
17
- employee_id: any;
18
- employee_name: any;
19
- status: number;
20
- created_at: string;
21
- updated_at: string;
22
- type: string;
23
- invoice_details: InvoiceDetail[];
24
- }>;
25
- type InvoiceDetail = Nullable<{
26
- id: number;
27
- invoice_id: number;
28
- product_type: string;
29
- product_id: number;
30
- product_name: string;
31
- description: any;
32
- duration: number;
33
- product_price: number;
34
- quantity: number;
35
- promotion_code: any;
36
- discount_price: number;
37
- has_tax: number;
38
- tax_price: number;
39
- total_after_tax: number;
40
- total_before_discount: number;
41
- total_after_discount: number;
42
- detail: string;
43
- payment_method: any;
44
- employee_id: number;
45
- employee_name: string;
46
- status: number;
47
- created_at: string;
48
- updated_at: any;
49
- }>;
50
- export {};
51
- //# sourceMappingURL=invoice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invoice.d.ts","sourceRoot":"","sources":["../../../../../../src/api/go_check_in_api/1.0.0/types/response/invoice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,MAAM,yBAAyB,GAAG,QAAQ,CAAC;IAC7C,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,cAAc,EAAE,MAAM,CAAA;IACtB,cAAc,EAAE,GAAG,CAAA;IACnB,SAAS,EAAE,GAAG,CAAA;IACd,cAAc,EAAE,MAAM,CAAA;IACtB,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,qBAAqB,EAAE,MAAM,CAAA;IAC7B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,eAAe,EAAE,MAAM,CAAA;IACvB,cAAc,EAAE,GAAG,CAAA;IACnB,WAAW,EAAE,GAA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