@scayle/omnichannel-nuxt 1.1.19 → 2.0.0
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/CHANGELOG.md +28 -0
- package/README.md +23 -35
- package/dist/chunks/createOmnichannelHandler.mjs +790 -0
- package/dist/index.d.mts +40 -0
- package/dist/index.d.ts +40 -9
- package/dist/index.mjs +96 -0
- package/dist/module.cjs +5 -0
- package/dist/module.d.mts +6 -0
- package/dist/module.d.ts +6 -0
- package/dist/module.json +4 -0
- package/dist/module.mjs +36 -0
- package/dist/runtime/composables/useStoreLocator.d.ts +9 -0
- package/dist/runtime/composables/useStoreLocator.mjs +18 -0
- package/dist/{composables → runtime/composables}/useStoreVariantById.d.ts +1 -2
- package/dist/runtime/composables/useStoreVariantById.mjs +20 -0
- package/dist/runtime/composables/useStores.d.ts +6 -0
- package/dist/runtime/composables/useStores.mjs +14 -0
- package/dist/runtime/composables/useVariantStores.d.ts +6 -0
- package/dist/runtime/composables/useVariantStores.mjs +14 -0
- package/dist/{constants → runtime/constants}/httpStatus.d.ts +1 -2
- package/dist/runtime/constants/httpStatus.mjs +629 -0
- package/dist/runtime/constants/index.d.ts +1 -0
- package/dist/runtime/constants/index.mjs +1 -0
- package/dist/{error → runtime/error}/errorHandler.d.ts +0 -1
- package/dist/runtime/error/errorHandler.mjs +20 -0
- package/dist/runtime/handler.d.ts +2 -0
- package/dist/runtime/handler.mjs +48 -0
- package/dist/runtime/lib/init.d.ts +26 -0
- package/dist/runtime/lib/init.mjs +72 -0
- package/dist/{rpc → runtime/rpc}/storeLocator.d.ts +4 -11
- package/dist/runtime/rpc/storeLocator.mjs +32 -0
- package/dist/{types/omnichannel.d.ts → shared/omnichannel-nuxt.9b492196.d.mts} +25 -24
- package/dist/shared/omnichannel-nuxt.9b492196.d.ts +146 -0
- package/dist/types.d.mts +8 -0
- package/dist/types.d.ts +8 -0
- package/package.json +42 -17
- package/dist/composables/sharedRef.d.ts +0 -3
- package/dist/composables/sharedRef.d.ts.map +0 -1
- package/dist/composables/sharedRef.js +0 -16
- package/dist/composables/sharedRef.js.map +0 -1
- package/dist/composables/useGeocode.d.ts +0 -7
- package/dist/composables/useGeocode.d.ts.map +0 -1
- package/dist/composables/useGeocode.js +0 -17
- package/dist/composables/useGeocode.js.map +0 -1
- package/dist/composables/useStoreLocator.d.ts +0 -10
- package/dist/composables/useStoreLocator.d.ts.map +0 -1
- package/dist/composables/useStoreLocator.js +0 -17
- package/dist/composables/useStoreLocator.js.map +0 -1
- package/dist/composables/useStoreVariantById.d.ts.map +0 -1
- package/dist/composables/useStoreVariantById.js +0 -20
- package/dist/composables/useStoreVariantById.js.map +0 -1
- package/dist/composables/useStores.d.ts +0 -7
- package/dist/composables/useStores.d.ts.map +0 -1
- package/dist/composables/useStores.js +0 -17
- package/dist/composables/useStores.js.map +0 -1
- package/dist/composables/useVariantStores.d.ts +0 -7
- package/dist/composables/useVariantStores.d.ts.map +0 -1
- package/dist/composables/useVariantStores.js +0 -17
- package/dist/composables/useVariantStores.js.map +0 -1
- package/dist/constants/httpStatus.d.ts.map +0 -1
- package/dist/constants/httpStatus.js +0 -634
- package/dist/constants/httpStatus.js.map +0 -1
- package/dist/constants/index.d.ts +0 -2
- package/dist/constants/index.d.ts.map +0 -1
- package/dist/constants/index.js +0 -5
- package/dist/constants/index.js.map +0 -1
- package/dist/constants/omnichannel.d.ts +0 -12
- package/dist/constants/omnichannel.d.ts.map +0 -1
- package/dist/constants/omnichannel.js +0 -13
- package/dist/constants/omnichannel.js.map +0 -1
- package/dist/error/errorHandler.d.ts.map +0 -1
- package/dist/error/errorHandler.js +0 -27
- package/dist/error/errorHandler.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -18
- package/dist/index.js.map +0 -1
- package/dist/lib/init.d.ts +0 -11
- package/dist/lib/init.d.ts.map +0 -1
- package/dist/lib/init.js +0 -49
- package/dist/lib/init.js.map +0 -1
- package/dist/module/createOmnichannelHandler.d.ts +0 -3
- package/dist/module/createOmnichannelHandler.d.ts.map +0 -1
- package/dist/module/createOmnichannelHandler.js +0 -56
- package/dist/module/createOmnichannelHandler.js.map +0 -1
- package/dist/module/register.d.ts +0 -6
- package/dist/module/register.d.ts.map +0 -1
- package/dist/module/register.js +0 -12
- package/dist/module/register.js.map +0 -1
- package/dist/rpc/geocode.d.ts +0 -23
- package/dist/rpc/geocode.d.ts.map +0 -1
- package/dist/rpc/geocode.js +0 -46
- package/dist/rpc/geocode.js.map +0 -1
- package/dist/rpc/index.d.ts +0 -3
- package/dist/rpc/index.d.ts.map +0 -1
- package/dist/rpc/index.js +0 -6
- package/dist/rpc/index.js.map +0 -1
- package/dist/rpc/storeLocator.d.ts.map +0 -1
- package/dist/rpc/storeLocator.js +0 -69
- package/dist/rpc/storeLocator.js.map +0 -1
- package/dist/types/geocode.d.ts +0 -8
- package/dist/types/geocode.d.ts.map +0 -1
- package/dist/types/geocode.js +0 -3
- package/dist/types/geocode.js.map +0 -1
- package/dist/types/index.d.ts +0 -3
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -6
- package/dist/types/index.js.map +0 -1
- package/dist/types/omnichannel.d.ts.map +0 -1
- package/dist/types/omnichannel.js +0 -3
- package/dist/types/omnichannel.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"omnichannel.d.ts","sourceRoot":"","sources":["../../src/constants/omnichannel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE1C,eAAO,MAAM,WAAW;;;;;;;;CAQd,CAAA;AAGV,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OpeningTime = void 0;
|
|
4
|
-
exports.OpeningTime = {
|
|
5
|
-
MONDAY: 'mon',
|
|
6
|
-
TUESDAY: 'tue',
|
|
7
|
-
WEDNESDAY: 'wed',
|
|
8
|
-
THURSDAY: 'thu',
|
|
9
|
-
FRIDAY: 'fri',
|
|
10
|
-
SATURDAY: 'sat',
|
|
11
|
-
SUNDAY: 'sun',
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=omnichannel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"omnichannel.js","sourceRoot":"","sources":["../../src/constants/omnichannel.ts"],"names":[],"mappings":";;;AAEa,QAAA,WAAW,GAAG;IACzB,MAAM,EAAE,KAAK;IACb,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,KAAK;IACb,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,KAAK;CACL,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errorHandler.d.ts","sourceRoot":"","sources":["../../src/error/errorHandler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAE3E,QAAA,MAAM,cAAc,UACX,OAAO,KACb;IAAE,UAAU,EAAE,cAAc,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAoB7D,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.parseErrorData = void 0;
|
|
4
|
-
const axios_1 = require("axios");
|
|
5
|
-
const httpStatus_1 = require("../constants/httpStatus");
|
|
6
|
-
const parseErrorData = (error) => {
|
|
7
|
-
var _a, _b;
|
|
8
|
-
if (error instanceof axios_1.AxiosError) {
|
|
9
|
-
return {
|
|
10
|
-
statusCode: ((_a = error.response) === null || _a === void 0 ? void 0 : _a.data.code) || httpStatus_1.HttpStatusCode.INTERNAL_SERVER_ERROR,
|
|
11
|
-
message: ((_b = error.response) === null || _b === void 0 ? void 0 : _b.data.message) || httpStatus_1.HttpStatusMessage.INTERNAL_SERVER_ERROR,
|
|
12
|
-
url: error.config.url,
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
else if (error instanceof Error) {
|
|
16
|
-
return {
|
|
17
|
-
statusCode: httpStatus_1.HttpStatusCode.INTERNAL_SERVER_ERROR,
|
|
18
|
-
message: error.message || httpStatus_1.HttpStatusMessage.INTERNAL_SERVER_ERROR,
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
return {
|
|
22
|
-
statusCode: httpStatus_1.HttpStatusCode.INTERNAL_SERVER_ERROR,
|
|
23
|
-
message: httpStatus_1.HttpStatusMessage.INTERNAL_SERVER_ERROR,
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
exports.parseErrorData = parseErrorData;
|
|
27
|
-
//# sourceMappingURL=errorHandler.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errorHandler.js","sourceRoot":"","sources":["../../src/error/errorHandler.ts"],"names":[],"mappings":";;;AAAA,iCAAkC;AAClC,wDAA2E;AAE3E,MAAM,cAAc,GAAG,CACrB,KAAc,EACiD,EAAE;;IACjE,IAAI,KAAK,YAAY,kBAAU,EAAE;QAC/B,OAAO;YACL,UAAU,EACR,CAAA,MAAA,KAAK,CAAC,QAAQ,0CAAE,IAAI,CAAC,IAAI,KAAI,2BAAc,CAAC,qBAAqB;YACnE,OAAO,EACL,CAAA,MAAA,KAAK,CAAC,QAAQ,0CAAE,IAAI,CAAC,OAAO,KAAI,8BAAiB,CAAC,qBAAqB;YACzE,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG;SACtB,CAAA;KACF;SAAM,IAAI,KAAK,YAAY,KAAK,EAAE;QACjC,OAAO;YACL,UAAU,EAAE,2BAAc,CAAC,qBAAqB;YAChD,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,8BAAiB,CAAC,qBAAqB;SAClE,CAAA;KACF;IAED,OAAO;QACL,UAAU,EAAE,2BAAc,CAAC,qBAAqB;QAChD,OAAO,EAAE,8BAAiB,CAAC,qBAAqB;KACjD,CAAA;AACH,CAAC,CAAA;AAEQ,wCAAc"}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AAClF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AAC5E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC1E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAEhE,cAAc,mBAAmB,CAAA;AACjC,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
|
package/dist/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useGeocode = exports.useStoreLocator = exports.useVariantStores = exports.useStoreVariantById = exports.useStores = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
var useStores_1 = require("./composables/useStores");
|
|
6
|
-
Object.defineProperty(exports, "useStores", { enumerable: true, get: function () { return tslib_1.__importDefault(useStores_1).default; } });
|
|
7
|
-
var useStoreVariantById_1 = require("./composables/useStoreVariantById");
|
|
8
|
-
Object.defineProperty(exports, "useStoreVariantById", { enumerable: true, get: function () { return tslib_1.__importDefault(useStoreVariantById_1).default; } });
|
|
9
|
-
var useVariantStores_1 = require("./composables/useVariantStores");
|
|
10
|
-
Object.defineProperty(exports, "useVariantStores", { enumerable: true, get: function () { return tslib_1.__importDefault(useVariantStores_1).default; } });
|
|
11
|
-
var useStoreLocator_1 = require("./composables/useStoreLocator");
|
|
12
|
-
Object.defineProperty(exports, "useStoreLocator", { enumerable: true, get: function () { return tslib_1.__importDefault(useStoreLocator_1).default; } });
|
|
13
|
-
var useGeocode_1 = require("./composables/useGeocode");
|
|
14
|
-
Object.defineProperty(exports, "useGeocode", { enumerable: true, get: function () { return tslib_1.__importDefault(useGeocode_1).default; } });
|
|
15
|
-
tslib_1.__exportStar(require("./constants/index"), exports);
|
|
16
|
-
tslib_1.__exportStar(require("./rpc/index"), exports);
|
|
17
|
-
tslib_1.__exportStar(require("./types/index"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,qDAA8D;AAArD,+HAAA,OAAO,OAAa;AAC7B,yEAAkF;AAAzE,mJAAA,OAAO,OAAuB;AACvC,mEAA4E;AAAnE,6IAAA,OAAO,OAAoB;AACpC,iEAA0E;AAAjE,2IAAA,OAAO,OAAmB;AACnC,uDAAgE;AAAvD,iIAAA,OAAO,OAAc;AAE9B,4DAAiC;AACjC,sDAA2B;AAC3B,wDAA6B"}
|
package/dist/lib/init.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { StoreLocatorConfig } from '../types';
|
|
2
|
-
export declare class OmnichannelClient {
|
|
3
|
-
private readonly host;
|
|
4
|
-
private readonly token;
|
|
5
|
-
constructor(host: string, token: string);
|
|
6
|
-
get(endpoint?: string, params?: any, signal?: AbortSignal): Promise<any>;
|
|
7
|
-
private createClient;
|
|
8
|
-
private handleError;
|
|
9
|
-
}
|
|
10
|
-
export declare const init: (config?: StoreLocatorConfig) => OmnichannelClient | null;
|
|
11
|
-
//# sourceMappingURL=init.d.ts.map
|
package/dist/lib/init.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/lib/init.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAE7C,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAQ;IAC7B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAQ;gBAElB,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAK1B,GAAG,CACd,QAAQ,GAAE,MAAW,EACrB,MAAM,CAAC,EAAE,GAAG,EACZ,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,GAAG,CAAC;IAUf,OAAO,CAAC,YAAY;IAgBpB,OAAO,CAAC,WAAW;CAIpB;AAED,eAAO,MAAM,IAAI,YAAa,kBAAkB,6BAM/C,CAAA"}
|
package/dist/lib/init.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.init = exports.OmnichannelClient = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
6
|
-
class OmnichannelClient {
|
|
7
|
-
constructor(host, token) {
|
|
8
|
-
this.host = host;
|
|
9
|
-
this.token = token;
|
|
10
|
-
}
|
|
11
|
-
async get(endpoint = '', params, signal) {
|
|
12
|
-
try {
|
|
13
|
-
const client = this.createClient();
|
|
14
|
-
const response = await client.get(endpoint, { ...params, signal });
|
|
15
|
-
return response.data;
|
|
16
|
-
}
|
|
17
|
-
catch (error) {
|
|
18
|
-
this.handleError(error);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
createClient() {
|
|
22
|
-
const config = {
|
|
23
|
-
baseURL: this.host,
|
|
24
|
-
headers: {
|
|
25
|
-
Accept: 'application/json',
|
|
26
|
-
'Content-Type': 'application/json',
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
if (this.token) {
|
|
30
|
-
config.headers = {
|
|
31
|
-
Authorization: `Bearer ${this.token}`,
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
return axios_1.default.create(config);
|
|
35
|
-
}
|
|
36
|
-
handleError(error) {
|
|
37
|
-
// TODO: add better error handling
|
|
38
|
-
throw error;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.OmnichannelClient = OmnichannelClient;
|
|
42
|
-
const init = (config) => {
|
|
43
|
-
if (config) {
|
|
44
|
-
return new OmnichannelClient(config.host, config.token);
|
|
45
|
-
}
|
|
46
|
-
return null;
|
|
47
|
-
};
|
|
48
|
-
exports.init = init;
|
|
49
|
-
//# sourceMappingURL=init.js.map
|
package/dist/lib/init.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/lib/init.ts"],"names":[],"mappings":";;;;AAAA,0DAAgE;AAGhE,MAAa,iBAAiB;IAI5B,YAAY,IAAY,EAAE,KAAa;QACrC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACpB,CAAC;IAEM,KAAK,CAAC,GAAG,CACd,WAAmB,EAAE,EACrB,MAAY,EACZ,MAAoB;QAEpB,IAAI;YACF,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,EAAE,CAAA;YAClC,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;YAClE,OAAO,QAAQ,CAAC,IAAI,CAAA;SACrB;QAAC,OAAO,KAAU,EAAE;YACnB,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAA;SACxB;IACH,CAAC;IAEO,YAAY;QAClB,MAAM,MAAM,GAAuB;YACjC,OAAO,EAAE,IAAI,CAAC,IAAI;YAClB,OAAO,EAAE;gBACP,MAAM,EAAE,kBAAkB;gBAC1B,cAAc,EAAE,kBAAkB;aACnC;SACF,CAAA;QACD,IAAI,IAAI,CAAC,KAAK,EAAE;YACd,MAAM,CAAC,OAAO,GAAG;gBACf,aAAa,EAAE,UAAU,IAAI,CAAC,KAAK,EAAE;aACtC,CAAA;SACF;QACD,OAAO,eAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IAC7B,CAAC;IAEO,WAAW,CAAC,KAAU;QAC5B,kCAAkC;QAClC,MAAM,KAAK,CAAA;IACb,CAAC;CACF;AA3CD,8CA2CC;AAEM,MAAM,IAAI,GAAG,CAAC,MAA2B,EAAE,EAAE;IAClD,IAAI,MAAM,EAAE;QACV,OAAO,IAAI,iBAAiB,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAA;KACxD;IAED,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AANY,QAAA,IAAI,QAMhB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createOmnichannelHandler.d.ts","sourceRoot":"","sources":["../../src/module/createOmnichannelHandler.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAW7C,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,+CAmD3E"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const express_1 = tslib_1.__importDefault(require("express"));
|
|
5
|
-
const body_parser_1 = tslib_1.__importDefault(require("body-parser"));
|
|
6
|
-
const storeLocator_1 = require("../rpc/storeLocator");
|
|
7
|
-
const geocode_1 = require("../rpc/geocode");
|
|
8
|
-
const errorHandler_1 = require("../error/errorHandler");
|
|
9
|
-
function createOmnichannelHandler(options) {
|
|
10
|
-
const app = (0, express_1.default)();
|
|
11
|
-
app.use(body_parser_1.default.urlencoded({ extended: false }));
|
|
12
|
-
app.use(body_parser_1.default.json());
|
|
13
|
-
app.post(`/stores`, async (req, res) => {
|
|
14
|
-
try {
|
|
15
|
-
const response = await (0, storeLocator_1.getStores)(req.body, options);
|
|
16
|
-
res.json(response);
|
|
17
|
-
}
|
|
18
|
-
catch (e) {
|
|
19
|
-
const parsedError = (0, errorHandler_1.parseErrorData)(e);
|
|
20
|
-
res.status(parsedError.statusCode).json({ ...parsedError });
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
app.post(`/storeVariantById`, async (req, res) => {
|
|
24
|
-
try {
|
|
25
|
-
const response = await (0, storeLocator_1.getStoreVariantById)(req.body, options);
|
|
26
|
-
res.json(response);
|
|
27
|
-
}
|
|
28
|
-
catch (e) {
|
|
29
|
-
const parsedError = (0, errorHandler_1.parseErrorData)(e);
|
|
30
|
-
res.status(parsedError.statusCode).json({ ...parsedError });
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
app.post(`/variantStores`, async (req, res) => {
|
|
34
|
-
try {
|
|
35
|
-
const response = await (0, storeLocator_1.getStoresForVariant)(req.body, options);
|
|
36
|
-
res.json(response);
|
|
37
|
-
}
|
|
38
|
-
catch (e) {
|
|
39
|
-
const parsedError = (0, errorHandler_1.parseErrorData)(e);
|
|
40
|
-
res.status(parsedError.statusCode).json({ ...parsedError });
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
app.post(`/geocode`, async (req, res) => {
|
|
44
|
-
try {
|
|
45
|
-
const response = await (0, geocode_1.getGeocoder)(req.body, options);
|
|
46
|
-
res.json(response);
|
|
47
|
-
}
|
|
48
|
-
catch (e) {
|
|
49
|
-
const parsedError = (0, errorHandler_1.parseErrorData)(e);
|
|
50
|
-
res.status(parsedError.statusCode).json({ ...parsedError });
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
return app;
|
|
54
|
-
}
|
|
55
|
-
exports.default = createOmnichannelHandler;
|
|
56
|
-
//# sourceMappingURL=createOmnichannelHandler.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createOmnichannelHandler.js","sourceRoot":"","sources":["../../src/module/createOmnichannelHandler.ts"],"names":[],"mappings":";;;AAAA,8DAA6B;AAC7B,sEAAoC;AAGpC,sDAI4B;AAE5B,4CAA4C;AAE5C,wDAAsD;AAEtD,SAAwB,wBAAwB,CAAC,OAA2B;IAC1E,MAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAA;IAErB,GAAG,CAAC,GAAG,CAAC,qBAAU,CAAC,UAAU,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,CAAA;IACnD,GAAG,CAAC,GAAG,CAAC,qBAAU,CAAC,IAAI,EAAE,CAAC,CAAA;IAE1B,GAAG,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE;QACrC,IAAI;YACF,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAS,EAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;YAEnD,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;SACnB;QAAC,OAAO,CAAC,EAAE;YACV,MAAM,WAAW,GAAG,IAAA,6BAAc,EAAC,CAAC,CAAC,CAAA;YACrC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,EAAE,GAAG,WAAW,EAAE,CAAC,CAAA;SAC5D;IACH,CAAC,CAAC,CAAA;IAEF,GAAG,CAAC,IAAI,CAAC,mBAAmB,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE;QAC/C,IAAI;YACF,MAAM,QAAQ,GAAG,MAAM,IAAA,kCAAmB,EAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;YAE7D,GAAG,CAAC,IAAI,CAAC,QAAQ,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|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/module/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAG7C,KAAK,aAAa,GAAG,kBAAkB,CAAA;AACvC,QAAA,MAAM,iBAAiB,EAAE,MAAM,CAAC,aAAa,CAO5C,CAAA;AAED,eAAe,iBAAiB,CAAA"}
|
package/dist/module/register.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const createOmnichannelHandler_1 = tslib_1.__importDefault(require("./createOmnichannelHandler"));
|
|
5
|
-
const omnichannelModule = function (moduleOptions) {
|
|
6
|
-
this.addServerMiddleware({
|
|
7
|
-
path: '/api/omnichannel',
|
|
8
|
-
handler: (0, createOmnichannelHandler_1.default)(moduleOptions),
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
exports.default = omnichannelModule;
|
|
12
|
-
//# sourceMappingURL=register.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"register.js","sourceRoot":"","sources":["../../src/module/register.ts"],"names":[],"mappings":";;;AAEA,kGAAiE;AAGjE,MAAM,iBAAiB,GAA0B,UAC/C,aAA4B;IAE5B,IAAI,CAAC,mBAAmB,CAAC;QACvB,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE,IAAA,kCAAwB,EAAC,aAAa,CAAC;KACjD,CAAC,CAAA;AACJ,CAAC,CAAA;AAED,kBAAe,iBAAiB,CAAA"}
|
package/dist/rpc/geocode.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { StoreLocatorConfig } from '../types';
|
|
2
|
-
export type GeocodeParams = {
|
|
3
|
-
/**
|
|
4
|
-
* Latitude in degrees. Values will be clamped to the range [-90, 90]. This
|
|
5
|
-
* means that if the value specified is less than -90, it will be set to
|
|
6
|
-
* -90. And if the value is greater than 90, it will be set to 90.
|
|
7
|
-
*/
|
|
8
|
-
lat: number;
|
|
9
|
-
/**
|
|
10
|
-
* Longitude in degrees. Values outside the range [-180, 180] will be
|
|
11
|
-
* wrapped so that they fall within the range. For example, a value of -190
|
|
12
|
-
* will be converted to 170. A value of 190 will be converted to -170. This
|
|
13
|
-
* reflects the fact that longitudes wrap around the globe.
|
|
14
|
-
*/
|
|
15
|
-
lng: number;
|
|
16
|
-
};
|
|
17
|
-
type SearchParams = {
|
|
18
|
-
search: string | number;
|
|
19
|
-
};
|
|
20
|
-
export declare function isObject<T>(input: unknown): input is T;
|
|
21
|
-
export declare const getGeocoder: (content: GeocodeParams | SearchParams, storeLocator: StoreLocatorConfig) => Promise<any>;
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=geocode.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"geocode.d.ts","sourceRoot":"","sources":["../../src/rpc/geocode.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAE7C,MAAM,MAAM,aAAa,GAAG;IAC1B;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;;;;OAKG;IACH,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,KAAK,YAAY,GAAG;IAClB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;CACxB,CAAA;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,CAAC,CAEtD;AACD,eAAO,MAAM,WAAW,YACb,aAAa,GAAG,YAAY,gBACvB,kBAAkB,iBAqCjC,CAAA"}
|
package/dist/rpc/geocode.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getGeocoder = exports.isObject = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
6
|
-
function isObject(input) {
|
|
7
|
-
return true;
|
|
8
|
-
}
|
|
9
|
-
exports.isObject = isObject;
|
|
10
|
-
const getGeocoder = async function getGeocoder(content, storeLocator) {
|
|
11
|
-
if (!storeLocator.googleApiKey) {
|
|
12
|
-
return Promise.reject(new Error('Missing Google API Key'));
|
|
13
|
-
}
|
|
14
|
-
const url = new URL('https://maps.googleapis.com/maps/api/geocode/json');
|
|
15
|
-
if (isObject(content) && content.search) {
|
|
16
|
-
if (typeof content.search === 'number') {
|
|
17
|
-
url.searchParams.set('components', `postal_code:${content.search}`);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
url.searchParams.set('address', content.search.trim());
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
else if (isObject(content)) {
|
|
24
|
-
url.searchParams.set('latlng', `${content.lat},${content.lng}`);
|
|
25
|
-
}
|
|
26
|
-
url.searchParams.set('key', storeLocator.googleApiKey);
|
|
27
|
-
return await (0, axios_1.default)({
|
|
28
|
-
method: 'get',
|
|
29
|
-
url: url.toString(),
|
|
30
|
-
})
|
|
31
|
-
.then((response) => {
|
|
32
|
-
return response.data;
|
|
33
|
-
})
|
|
34
|
-
.catch((error) => {
|
|
35
|
-
console.log('[ERROR] getGeocoder:', {
|
|
36
|
-
message: error.message,
|
|
37
|
-
params: content,
|
|
38
|
-
});
|
|
39
|
-
return {
|
|
40
|
-
results: [],
|
|
41
|
-
status: 'ZERO_RESULTS',
|
|
42
|
-
};
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
exports.getGeocoder = getGeocoder;
|
|
46
|
-
//# sourceMappingURL=geocode.js.map
|
package/dist/rpc/geocode.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"geocode.js","s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CAAC,CAAC,KAAK,EAAE,EAAE;QACf,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE;YAClC,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,MAAM,EAAE,OAAO;SAChB,CAAC,CAAA;QAEF,OAAO;YACL,OAAO,EAAE,EAAE;YACX,MAAM,EAAE,cAAc;SACvB,CAAA;IACH,CAAC,CAAC,CAAA;AACN,CAAC,CAAA;AAvCY,QAAA,WAAW,eAuCvB"}
|
package/dist/rpc/index.d.ts
DELETED
package/dist/rpc/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rpc/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA"}
|
package/dist/rpc/index.js
DELETED
package/dist/rpc/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rpc/index.ts"],"names":[],"mappings":";;;AAAA,yDAA8B;AAC9B,oDAAyB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storeLocator.d.ts","sourceRoot":"","sources":["../../src/rpc/storeLocator.ts"],"names":[],"mappings":"AACA,OAAO,EACL,sBAAsB,EAEtB,aAAa,EAEb,kBAAkB,EAClB,wBAAwB,EACxB,eAAe,EAEhB,MAAM,UAAU,CAAA;AAGjB,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE;QACP,OAAO,EAAE,MAAM,CAAA;QACf,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;IACD,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE;QACP,OAAO,EAAE,MAAM,CAAA;QACf,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;IACD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;CAChB;AAID,eAAO,MAAM,SAAS,YACX,wBAAwB,gBACnB,kBAAkB;;;EAoBjC,CAAA;AAED,eAAO,MAAM,mBAAmB,YACrB,2BAA2B,gBACtB,kBAAkB;;;EA4BjC,CAAA;AAED,eAAO,MAAM,mBAAmB,YACrB,2BAA2B,gBACtB,kBAAkB,oCAYjC,CAAA"}
|
package/dist/rpc/storeLocator.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getStoreVariantById = exports.getStoresForVariant = exports.getStores = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const qs_1 = tslib_1.__importDefault(require("qs"));
|
|
6
|
-
const init_1 = require("../lib/init");
|
|
7
|
-
const noClientMessage = 'Client not configured';
|
|
8
|
-
const getStores = async function getStores(options, storeLocator) {
|
|
9
|
-
const omnichannelClient = (0, init_1.init)(storeLocator);
|
|
10
|
-
if (!omnichannelClient) {
|
|
11
|
-
throw new Error(noClientMessage);
|
|
12
|
-
}
|
|
13
|
-
return await omnichannelClient
|
|
14
|
-
.get(`/stores/locator`, {
|
|
15
|
-
params: options,
|
|
16
|
-
paramsSerializer: (params) => {
|
|
17
|
-
return qs_1.default.stringify(params, { arrayFormat: 'brackets' });
|
|
18
|
-
},
|
|
19
|
-
})
|
|
20
|
-
.then((response) => {
|
|
21
|
-
return {
|
|
22
|
-
data: response.data,
|
|
23
|
-
nextPage: null,
|
|
24
|
-
};
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
exports.getStores = getStores;
|
|
28
|
-
const getStoresForVariant = async function getStoresForVariant(options, storeLocator) {
|
|
29
|
-
var _a;
|
|
30
|
-
const fetchOptions = {
|
|
31
|
-
filters: {
|
|
32
|
-
address: options.filters.address,
|
|
33
|
-
radius: (_a = options.filters.radius) !== null && _a !== void 0 ? _a : 10000,
|
|
34
|
-
},
|
|
35
|
-
variantId: options.variantId,
|
|
36
|
-
perPage: 10,
|
|
37
|
-
};
|
|
38
|
-
const omnichannelClient = (0, init_1.init)(storeLocator);
|
|
39
|
-
if (!omnichannelClient) {
|
|
40
|
-
throw new Error(noClientMessage);
|
|
41
|
-
}
|
|
42
|
-
return await omnichannelClient
|
|
43
|
-
.get(`/variants/locator`, {
|
|
44
|
-
params: fetchOptions,
|
|
45
|
-
paramsSerializer: (params) => {
|
|
46
|
-
return qs_1.default.stringify(params, { arrayFormat: 'brackets' });
|
|
47
|
-
},
|
|
48
|
-
})
|
|
49
|
-
.then((response) => {
|
|
50
|
-
return {
|
|
51
|
-
data: response.data,
|
|
52
|
-
nextPage: null,
|
|
53
|
-
};
|
|
54
|
-
});
|
|
55
|
-
};
|
|
56
|
-
exports.getStoresForVariant = getStoresForVariant;
|
|
57
|
-
const getStoreVariantById = async function getStoreVariantById(options, storeLocator) {
|
|
58
|
-
const omnichannelClient = (0, init_1.init)(storeLocator);
|
|
59
|
-
if (!omnichannelClient) {
|
|
60
|
-
throw new Error(noClientMessage);
|
|
61
|
-
}
|
|
62
|
-
return await omnichannelClient
|
|
63
|
-
.get(`/stores/${options.storeId}/variants/${options.variantId}`)
|
|
64
|
-
.then((response) => {
|
|
65
|
-
return response.data;
|
|
66
|
-
});
|
|
67
|
-
};
|
|
68
|
-
exports.getStoreVariantById = getStoreVariantById;
|
|
69
|
-
//# sourceMappingURL=storeLocator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storeLocator.js","sourceRoot":"","sources":["../../src/rpc/storeLocator.ts"],"names":[],"mappings":";;;;AAAA,oDAAmB;AAWnB,sCAAkC;AAyBlC,MAAM,eAAe,GAAW,uBAAuB,CAAA;AAEhD,MAAM,SAAS,GAAG,KAAK,UAAU,SAAS,CAC/C,OAAiC,E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EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC,CAAA;QAC1D,CAAC;KACF,CAAC;SACD,IAAI,CAAC,CAAC,QAAiC,EAAE,EAAE;QAC1C,OAAO;YACL,IAAI,EAAE,QAAQ,CAAC,IAAuB;YACtC,QAAQ,EAAE,IAAI;SACf,CAAA;IACH,CAAC,CAAC,CAAA;AACN,CAAC,CAAA;AA9BY,QAAA,mBAAmB,uBA8B/B;AAEM,MAAM,mBAAmB,GAAG,KAAK,UAAU,mBAAmB,CACnE,OAAoC,EACpC,YAAgC;IAEhC,MAAM,iBAAiB,GAAG,IAAA,WAAI,EAAC,YAAY,CAAC,CAAA;IAC5C,IAAI,CAAC,iBAAiB,EAAE;QACtB,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAA;KACjC;IAED,OAAO,MAAM,iBAAiB;SAC3B,GAAG,CAAC,WAAW,OAAO,CAAC,OAAO,aAAa,OAAO,CAAC,SAAS,EAAE,CAAC;SAC/D,IAAI,CAAC,CAAC,QAAwC,EAAE,EAAE;QACjD,OAAO,QAAQ,CAAC,IAA8B,CAAA;IAChD,CAAC,CAAC,CAAA;AACN,CAAC,CAAA;AAdY,QAAA,mBAAmB,uBAc/B"}
|
package/dist/types/geocode.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"geocode.d.ts","sourceRoot":"","sources":["../../src/types/geocode.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAAG;IACrC,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;CACxB,CAAA"}
|
package/dist/types/geocode.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"geocode.js","sourceRoot":"","sources":["../../src/types/geocode.ts"],"names":[],"mappings":""}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA"}
|
package/dist/types/index.js
DELETED
package/dist/types/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;AAAA,wDAA6B;AAC7B,oDAAyB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"omnichannel.d.ts","sourceRoot":"","sources":["../../src/types/omnichannel.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,GAAG,QAAQ,CAAA;IAChC,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB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