@abcagency/hc-ui-components 1.7.2 → 1.7.4
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/_virtual/_rollupPluginBabelHelpers.js +306 -130
- package/dist/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
- package/dist/apis/hcApi.js.map +1 -1
- package/dist/clientToken.js.map +1 -1
- package/dist/components/HireControlMap.js +39 -43
- package/dist/components/HireControlMap.js.map +1 -1
- package/dist/components/containers/accordions/filter-container.js.map +1 -1
- package/dist/components/containers/accordions/filter-item-container.js.map +1 -1
- package/dist/components/containers/accordions/map-accordion-item-container.js.map +1 -1
- package/dist/components/containers/filter/commute-container.js +22 -21
- package/dist/components/containers/filter/commute-container.js.map +1 -1
- package/dist/components/containers/filter/filter-container.js.map +1 -1
- package/dist/components/containers/filter/filter-item-container.js.map +1 -1
- package/dist/components/containers/filter/location-container.js.map +1 -1
- package/dist/components/containers/filter/points-of-interest-container.js.map +1 -1
- package/dist/components/containers/filter/points-of-interest-radio-item-container.js.map +1 -1
- package/dist/components/containers/filter/search-container.js.map +1 -1
- package/dist/components/containers/jobListing/listing-details-container.js.map +1 -1
- package/dist/components/containers/list/item-list-container.js.map +1 -1
- package/dist/components/containers/list/list-item/list-item-container.js.map +1 -1
- package/dist/components/containers/maps/info-window-content-container.js.map +1 -1
- package/dist/components/containers/maps/map-container.js +1 -1
- package/dist/components/containers/maps/map-container.js.map +1 -1
- package/dist/components/containers/maps/map-list-container.js.map +1 -1
- package/dist/components/containers/maps/map-marker-container.js.map +1 -1
- package/dist/components/modules/accordions/MapAccordionItem.js.map +1 -1
- package/dist/components/modules/accordions/default.js.map +1 -1
- package/dist/components/modules/accordions/filterItem.js.map +1 -1
- package/dist/components/modules/accordions/filters.js.map +1 -1
- package/dist/components/modules/buttons/button-group-apply.js.map +1 -1
- package/dist/components/modules/buttons/default.js.map +1 -1
- package/dist/components/modules/buttons/items-pill.js.map +1 -1
- package/dist/components/modules/buttons/pill-wrapper.js.map +1 -1
- package/dist/components/modules/buttons/show-all-button.js.map +1 -1
- package/dist/components/modules/cards/default.js.map +1 -1
- package/dist/components/modules/cards/filter.js.map +1 -1
- package/dist/components/modules/dialogs/apply-dialog.js.map +1 -1
- package/dist/components/modules/filter/commute.js.map +1 -1
- package/dist/components/modules/filter/index.js.map +1 -1
- package/dist/components/modules/filter/item.js.map +1 -1
- package/dist/components/modules/filter/location.js.map +1 -1
- package/dist/components/modules/filter/radio-item.js.map +1 -1
- package/dist/components/modules/filter/search.js.map +1 -1
- package/dist/components/modules/filter/sort.js.map +1 -1
- package/dist/components/modules/grid.js.map +1 -1
- package/dist/components/modules/icon.js.map +1 -1
- package/dist/components/modules/jobListing/listing-details.js.map +1 -1
- package/dist/components/modules/list/field-mapper-desktop.js.map +1 -1
- package/dist/components/modules/list/field-mapper-mobile.js.map +1 -1
- package/dist/components/modules/list/header-item.js.map +1 -1
- package/dist/components/modules/list/header.js.map +1 -1
- package/dist/components/modules/list/item-expand-card/index.js.map +1 -1
- package/dist/components/modules/list/item-list.js.map +1 -1
- package/dist/components/modules/list/list-item/list-item.js.map +1 -1
- package/dist/components/modules/maps/info-window-card.js.map +1 -1
- package/dist/components/modules/maps/info-window-content.js.map +1 -1
- package/dist/components/modules/maps/map-list.js.map +1 -1
- package/dist/components/modules/maps/map-marker.js.map +1 -1
- package/dist/components/modules/maps/map.js +8 -3
- package/dist/components/modules/maps/map.js.map +1 -1
- package/dist/components/modules/maps/place-marker.js.map +1 -1
- package/dist/components/modules/maps/tabs.js.map +1 -1
- package/dist/components/modules/skeleton/map-skeleton.js.map +1 -1
- package/dist/constants/eventTypes.js.map +1 -1
- package/dist/constants/placeTypes.js.map +1 -1
- package/dist/contexts/mapContext.js +14 -8
- package/dist/contexts/mapContext.js.map +1 -1
- package/dist/contexts/mapListContext.js +10 -3
- package/dist/contexts/mapListContext.js.map +1 -1
- package/dist/contexts/placesContext.js +21 -20
- package/dist/contexts/placesContext.js.map +1 -1
- package/dist/contexts/themeContext.js.map +1 -1
- package/dist/contexts/trackEventContext.js +1 -1
- package/dist/contexts/trackEventContext.js.map +1 -1
- package/dist/hooks/useList.js +3 -1
- package/dist/hooks/useList.js.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/node_modules/@algolia/client-common/dist/common.js +6 -3
- package/dist/node_modules/@algolia/client-common/dist/common.js.map +1 -1
- package/dist/node_modules/@algolia/requester-browser-xhr/dist/requester.xhr.js +1 -1
- package/dist/node_modules/@algolia/requester-browser-xhr/dist/requester.xhr.js.map +1 -1
- package/dist/node_modules/algoliasearch/dist/lite/builds/browser.js +2 -2
- package/dist/node_modules/algoliasearch/dist/lite/builds/browser.js.map +1 -1
- package/dist/node_modules/fuse.js/dist/fuse.js +20 -29
- package/dist/node_modules/fuse.js/dist/fuse.js.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +162 -124
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/services/configService.js.map +1 -1
- package/dist/services/googlePlacesNearbyService.js.map +1 -1
- package/dist/services/listingAggregatorService.js.map +1 -1
- package/dist/services/listingEntityService.js.map +1 -1
- package/dist/services/listingService.js.map +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/util/algoliaSearchUtil.js +42 -38
- package/dist/util/algoliaSearchUtil.js.map +1 -1
- package/dist/util/filterUtil.js +52 -48
- package/dist/util/filterUtil.js.map +1 -1
- package/dist/util/loading.js.map +1 -1
- package/dist/util/localStorageUtil.js.map +1 -1
- package/dist/util/mapIconUtil.js.map +1 -1
- package/dist/util/mapUtil.js.map +1 -1
- package/dist/util/sortUtil.js.map +1 -1
- package/dist/util/stringUtils.js.map +1 -1
- package/dist/util/twMerge.js.map +1 -1
- package/dist/util/urlFilterUtil.js +1 -1
- package/dist/util/urlFilterUtil.js.map +1 -1
- package/package.json +1 -1
- package/src/components/HireControlMap.js +13 -19
- package/src/components/modules/maps/map.js +10 -5
- package/src/contexts/mapContext.tsx +12 -6
- package/src/contexts/mapListContext.tsx +8 -2
- package/src/hooks/useList.js +3 -1
- package/src/index.js +1 -2
- package/src/components/modules/skeleton/map-skeleton.js +0 -51
|
@@ -37,7 +37,7 @@ function _asyncToGenerator(n) {
|
|
|
37
37
|
function _createForOfIteratorHelper(r, e) {
|
|
38
38
|
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
39
39
|
if (!t) {
|
|
40
|
-
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) {
|
|
40
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e ) {
|
|
41
41
|
t && (r = t);
|
|
42
42
|
var n = 0,
|
|
43
43
|
F = function () {};
|
|
@@ -45,9 +45,9 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
45
45
|
s: F,
|
|
46
46
|
n: function () {
|
|
47
47
|
return n >= r.length ? {
|
|
48
|
-
done:
|
|
48
|
+
done: !0
|
|
49
49
|
} : {
|
|
50
|
-
done:
|
|
50
|
+
done: !1,
|
|
51
51
|
value: r[n++]
|
|
52
52
|
};
|
|
53
53
|
},
|
|
@@ -60,8 +60,8 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
60
60
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
61
61
|
}
|
|
62
62
|
var o,
|
|
63
|
-
a =
|
|
64
|
-
u =
|
|
63
|
+
a = !0,
|
|
64
|
+
u = !1;
|
|
65
65
|
return {
|
|
66
66
|
s: function () {
|
|
67
67
|
t = t.call(r);
|
|
@@ -71,7 +71,7 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
71
71
|
return a = r.done, r;
|
|
72
72
|
},
|
|
73
73
|
e: function (r) {
|
|
74
|
-
u =
|
|
74
|
+
u = !0, o = r;
|
|
75
75
|
},
|
|
76
76
|
f: function () {
|
|
77
77
|
try {
|
|
@@ -85,9 +85,9 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
85
85
|
function _defineProperty(e, r, t) {
|
|
86
86
|
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
87
87
|
value: t,
|
|
88
|
-
enumerable:
|
|
89
|
-
configurable:
|
|
90
|
-
writable:
|
|
88
|
+
enumerable: !0,
|
|
89
|
+
configurable: !0,
|
|
90
|
+
writable: !0
|
|
91
91
|
}) : e[r] = t, e;
|
|
92
92
|
}
|
|
93
93
|
function _extends() {
|
|
@@ -110,15 +110,15 @@ function _iterableToArrayLimit(r, l) {
|
|
|
110
110
|
i,
|
|
111
111
|
u,
|
|
112
112
|
a = [],
|
|
113
|
-
f =
|
|
114
|
-
o =
|
|
113
|
+
f = !0,
|
|
114
|
+
o = !1;
|
|
115
115
|
try {
|
|
116
116
|
if (i = (t = t.call(r)).next, 0 === l) {
|
|
117
117
|
if (Object(t) !== t) return;
|
|
118
118
|
f = !1;
|
|
119
119
|
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
120
120
|
} catch (r) {
|
|
121
|
-
o =
|
|
121
|
+
o = !0, n = r;
|
|
122
122
|
} finally {
|
|
123
123
|
try {
|
|
124
124
|
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
@@ -148,7 +148,7 @@ function ownKeys(e, r) {
|
|
|
148
148
|
function _objectSpread2(e) {
|
|
149
149
|
for (var r = 1; r < arguments.length; r++) {
|
|
150
150
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
151
|
-
r % 2 ? ownKeys(Object(t),
|
|
151
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
152
152
|
_defineProperty(e, r, t[r]);
|
|
153
153
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
154
154
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
@@ -162,8 +162,8 @@ function _objectWithoutProperties(e, t) {
|
|
|
162
162
|
r,
|
|
163
163
|
i = _objectWithoutPropertiesLoose(e, t);
|
|
164
164
|
if (Object.getOwnPropertySymbols) {
|
|
165
|
-
var
|
|
166
|
-
for (r = 0; r <
|
|
165
|
+
var s = Object.getOwnPropertySymbols(e);
|
|
166
|
+
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
167
167
|
}
|
|
168
168
|
return i;
|
|
169
169
|
}
|
|
@@ -171,135 +171,311 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
171
171
|
if (null == r) return {};
|
|
172
172
|
var t = {};
|
|
173
173
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
174
|
-
if (
|
|
174
|
+
if (e.includes(n)) continue;
|
|
175
175
|
t[n] = r[n];
|
|
176
176
|
}
|
|
177
177
|
return t;
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
228
|
-
i = e;
|
|
229
|
-
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
230
|
-
} catch (t) {
|
|
231
|
-
i = e, c = 1, u = t;
|
|
232
|
-
} finally {
|
|
233
|
-
f = 1;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
return {
|
|
237
|
-
value: t,
|
|
238
|
-
done: y
|
|
239
|
-
};
|
|
179
|
+
function _regeneratorRuntime() {
|
|
180
|
+
_regeneratorRuntime = function () {
|
|
181
|
+
return e;
|
|
182
|
+
};
|
|
183
|
+
var t,
|
|
184
|
+
e = {},
|
|
185
|
+
r = Object.prototype,
|
|
186
|
+
n = r.hasOwnProperty,
|
|
187
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
188
|
+
t[e] = r.value;
|
|
189
|
+
},
|
|
190
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
191
|
+
a = i.iterator || "@@iterator",
|
|
192
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
193
|
+
u = i.toStringTag || "@@toStringTag";
|
|
194
|
+
function define(t, e, r) {
|
|
195
|
+
return Object.defineProperty(t, e, {
|
|
196
|
+
value: r,
|
|
197
|
+
enumerable: !0,
|
|
198
|
+
configurable: !0,
|
|
199
|
+
writable: !0
|
|
200
|
+
}), t[e];
|
|
201
|
+
}
|
|
202
|
+
try {
|
|
203
|
+
define({}, "");
|
|
204
|
+
} catch (t) {
|
|
205
|
+
define = function (t, e, r) {
|
|
206
|
+
return t[e] = r;
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
function wrap(t, e, r, n) {
|
|
210
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
211
|
+
a = Object.create(i.prototype),
|
|
212
|
+
c = new Context(n || []);
|
|
213
|
+
return o(a, "_invoke", {
|
|
214
|
+
value: makeInvokeMethod(t, r, c)
|
|
215
|
+
}), a;
|
|
216
|
+
}
|
|
217
|
+
function tryCatch(t, e, r) {
|
|
218
|
+
try {
|
|
219
|
+
return {
|
|
220
|
+
type: "normal",
|
|
221
|
+
arg: t.call(e, r)
|
|
222
|
+
};
|
|
223
|
+
} catch (t) {
|
|
224
|
+
return {
|
|
225
|
+
type: "throw",
|
|
226
|
+
arg: t
|
|
240
227
|
};
|
|
241
|
-
}
|
|
228
|
+
}
|
|
242
229
|
}
|
|
243
|
-
|
|
230
|
+
e.wrap = wrap;
|
|
231
|
+
var h = "suspendedStart",
|
|
232
|
+
l = "suspendedYield",
|
|
233
|
+
f = "executing",
|
|
234
|
+
s = "completed",
|
|
235
|
+
y = {};
|
|
244
236
|
function Generator() {}
|
|
245
237
|
function GeneratorFunction() {}
|
|
246
238
|
function GeneratorFunctionPrototype() {}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
return this;
|
|
250
|
-
}), t),
|
|
251
|
-
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
252
|
-
function f(e) {
|
|
253
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
254
|
-
}
|
|
255
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
239
|
+
var p = {};
|
|
240
|
+
define(p, a, function () {
|
|
256
241
|
return this;
|
|
257
|
-
})
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
function _regeneratorDefine(e, r, n, t) {
|
|
267
|
-
var i = Object.defineProperty;
|
|
268
|
-
try {
|
|
269
|
-
i({}, "", {});
|
|
270
|
-
} catch (e) {
|
|
271
|
-
i = 0;
|
|
272
|
-
}
|
|
273
|
-
_regeneratorDefine = function (e, r, n, t) {
|
|
274
|
-
function o(r, n) {
|
|
275
|
-
_regeneratorDefine(e, r, function (e) {
|
|
276
|
-
return this._invoke(r, n, e);
|
|
242
|
+
});
|
|
243
|
+
var d = Object.getPrototypeOf,
|
|
244
|
+
v = d && d(d(values([])));
|
|
245
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
246
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
247
|
+
function defineIteratorMethods(t) {
|
|
248
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
249
|
+
define(t, e, function (t) {
|
|
250
|
+
return this._invoke(e, t);
|
|
277
251
|
});
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
function AsyncIterator(t, e) {
|
|
255
|
+
function invoke(r, o, i, a) {
|
|
256
|
+
var c = tryCatch(t[r], t, o);
|
|
257
|
+
if ("throw" !== c.type) {
|
|
258
|
+
var u = c.arg,
|
|
259
|
+
h = u.value;
|
|
260
|
+
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
261
|
+
invoke("next", t, i, a);
|
|
262
|
+
}, function (t) {
|
|
263
|
+
invoke("throw", t, i, a);
|
|
264
|
+
}) : e.resolve(h).then(function (t) {
|
|
265
|
+
u.value = t, i(u);
|
|
266
|
+
}, function (t) {
|
|
267
|
+
return invoke("throw", t, i, a);
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
a(c.arg);
|
|
278
271
|
}
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
272
|
+
var r;
|
|
273
|
+
o(this, "_invoke", {
|
|
274
|
+
value: function (t, n) {
|
|
275
|
+
function callInvokeWithMethodAndArg() {
|
|
276
|
+
return new e(function (e, r) {
|
|
277
|
+
invoke(t, n, e, r);
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
function makeInvokeMethod(e, r, n) {
|
|
285
|
+
var o = h;
|
|
286
|
+
return function (i, a) {
|
|
287
|
+
if (o === f) throw Error("Generator is already running");
|
|
288
|
+
if (o === s) {
|
|
289
|
+
if ("throw" === i) throw a;
|
|
290
|
+
return {
|
|
291
|
+
value: t,
|
|
292
|
+
done: !0
|
|
298
293
|
};
|
|
299
294
|
}
|
|
295
|
+
for (n.method = i, n.arg = a;;) {
|
|
296
|
+
var c = n.delegate;
|
|
297
|
+
if (c) {
|
|
298
|
+
var u = maybeInvokeDelegate(c, n);
|
|
299
|
+
if (u) {
|
|
300
|
+
if (u === y) continue;
|
|
301
|
+
return u;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
305
|
+
if (o === h) throw o = s, n.arg;
|
|
306
|
+
n.dispatchException(n.arg);
|
|
307
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
308
|
+
o = f;
|
|
309
|
+
var p = tryCatch(e, r, n);
|
|
310
|
+
if ("normal" === p.type) {
|
|
311
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
312
|
+
return {
|
|
313
|
+
value: p.arg,
|
|
314
|
+
done: n.done
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
function maybeInvokeDelegate(e, r) {
|
|
322
|
+
var n = r.method,
|
|
323
|
+
o = e.iterator[n];
|
|
324
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
325
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
326
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
327
|
+
var a = i.arg;
|
|
328
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
329
|
+
}
|
|
330
|
+
function pushTryEntry(t) {
|
|
331
|
+
var e = {
|
|
332
|
+
tryLoc: t[0]
|
|
300
333
|
};
|
|
334
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
335
|
+
}
|
|
336
|
+
function resetTryEntry(t) {
|
|
337
|
+
var e = t.completion || {};
|
|
338
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
339
|
+
}
|
|
340
|
+
function Context(t) {
|
|
341
|
+
this.tryEntries = [{
|
|
342
|
+
tryLoc: "root"
|
|
343
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
344
|
+
}
|
|
345
|
+
function values(e) {
|
|
346
|
+
if (e || "" === e) {
|
|
347
|
+
var r = e[a];
|
|
348
|
+
if (r) return r.call(e);
|
|
349
|
+
if ("function" == typeof e.next) return e;
|
|
350
|
+
if (!isNaN(e.length)) {
|
|
351
|
+
var o = -1,
|
|
352
|
+
i = function next() {
|
|
353
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
354
|
+
return next.value = t, next.done = !0, next;
|
|
355
|
+
};
|
|
356
|
+
return i.next = i;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
301
360
|
}
|
|
302
|
-
|
|
361
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
362
|
+
value: GeneratorFunctionPrototype,
|
|
363
|
+
configurable: !0
|
|
364
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
365
|
+
value: GeneratorFunction,
|
|
366
|
+
configurable: !0
|
|
367
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
368
|
+
var e = "function" == typeof t && t.constructor;
|
|
369
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
370
|
+
}, e.mark = function (t) {
|
|
371
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
372
|
+
}, e.awrap = function (t) {
|
|
373
|
+
return {
|
|
374
|
+
__await: t
|
|
375
|
+
};
|
|
376
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
377
|
+
return this;
|
|
378
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
379
|
+
void 0 === i && (i = Promise);
|
|
380
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
381
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
382
|
+
return t.done ? t.value : a.next();
|
|
383
|
+
});
|
|
384
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
385
|
+
return this;
|
|
386
|
+
}), define(g, "toString", function () {
|
|
387
|
+
return "[object Generator]";
|
|
388
|
+
}), e.keys = function (t) {
|
|
389
|
+
var e = Object(t),
|
|
390
|
+
r = [];
|
|
391
|
+
for (var n in e) r.push(n);
|
|
392
|
+
return r.reverse(), function next() {
|
|
393
|
+
for (; r.length;) {
|
|
394
|
+
var t = r.pop();
|
|
395
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
396
|
+
}
|
|
397
|
+
return next.done = !0, next;
|
|
398
|
+
};
|
|
399
|
+
}, e.values = values, Context.prototype = {
|
|
400
|
+
constructor: Context,
|
|
401
|
+
reset: function (e) {
|
|
402
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
403
|
+
},
|
|
404
|
+
stop: function () {
|
|
405
|
+
this.done = !0;
|
|
406
|
+
var t = this.tryEntries[0].completion;
|
|
407
|
+
if ("throw" === t.type) throw t.arg;
|
|
408
|
+
return this.rval;
|
|
409
|
+
},
|
|
410
|
+
dispatchException: function (e) {
|
|
411
|
+
if (this.done) throw e;
|
|
412
|
+
var r = this;
|
|
413
|
+
function handle(n, o) {
|
|
414
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
415
|
+
}
|
|
416
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
417
|
+
var i = this.tryEntries[o],
|
|
418
|
+
a = i.completion;
|
|
419
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
420
|
+
if (i.tryLoc <= this.prev) {
|
|
421
|
+
var c = n.call(i, "catchLoc"),
|
|
422
|
+
u = n.call(i, "finallyLoc");
|
|
423
|
+
if (c && u) {
|
|
424
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
425
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
426
|
+
} else if (c) {
|
|
427
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
428
|
+
} else {
|
|
429
|
+
if (!u) throw Error("try statement without catch or finally");
|
|
430
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
abrupt: function (t, e) {
|
|
436
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
437
|
+
var o = this.tryEntries[r];
|
|
438
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
439
|
+
var i = o;
|
|
440
|
+
break;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
444
|
+
var a = i ? i.completion : {};
|
|
445
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
446
|
+
},
|
|
447
|
+
complete: function (t, e) {
|
|
448
|
+
if ("throw" === t.type) throw t.arg;
|
|
449
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
450
|
+
},
|
|
451
|
+
finish: function (t) {
|
|
452
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
453
|
+
var r = this.tryEntries[e];
|
|
454
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
catch: function (t) {
|
|
458
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
459
|
+
var r = this.tryEntries[e];
|
|
460
|
+
if (r.tryLoc === t) {
|
|
461
|
+
var n = r.completion;
|
|
462
|
+
if ("throw" === n.type) {
|
|
463
|
+
var o = n.arg;
|
|
464
|
+
resetTryEntry(r);
|
|
465
|
+
}
|
|
466
|
+
return o;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
throw Error("illegal catch attempt");
|
|
470
|
+
},
|
|
471
|
+
delegateYield: function (e, r, n) {
|
|
472
|
+
return this.delegate = {
|
|
473
|
+
iterator: values(e),
|
|
474
|
+
resultName: r,
|
|
475
|
+
nextLoc: n
|
|
476
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
477
|
+
}
|
|
478
|
+
}, e;
|
|
303
479
|
}
|
|
304
480
|
function _slicedToArray(r, e) {
|
|
305
481
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
@@ -318,7 +494,7 @@ function _toPrimitive(t, r) {
|
|
|
318
494
|
if ("object" != typeof t || !t) return t;
|
|
319
495
|
var e = t[Symbol.toPrimitive];
|
|
320
496
|
if (void 0 !== e) {
|
|
321
|
-
var i = e.call(t, r);
|
|
497
|
+
var i = e.call(t, r || "default");
|
|
322
498
|
if ("object" != typeof i) return i;
|
|
323
499
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
324
500
|
}
|
|
@@ -345,5 +521,5 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
345
521
|
}
|
|
346
522
|
}
|
|
347
523
|
|
|
348
|
-
export { _arrayLikeToArray as arrayLikeToArray, _arrayWithHoles as arrayWithHoles, _arrayWithoutHoles as arrayWithoutHoles, _asyncToGenerator as asyncToGenerator, _createForOfIteratorHelper as createForOfIteratorHelper, _defineProperty as defineProperty, _extends as extends, _iterableToArray as iterableToArray, _iterableToArrayLimit as iterableToArrayLimit, _nonIterableRest as nonIterableRest, _nonIterableSpread as nonIterableSpread, _objectSpread2 as objectSpread2, _objectWithoutProperties as objectWithoutProperties, _objectWithoutPropertiesLoose as objectWithoutPropertiesLoose,
|
|
524
|
+
export { _arrayLikeToArray as arrayLikeToArray, _arrayWithHoles as arrayWithHoles, _arrayWithoutHoles as arrayWithoutHoles, _asyncToGenerator as asyncToGenerator, _createForOfIteratorHelper as createForOfIteratorHelper, _defineProperty as defineProperty, _extends as extends, _iterableToArray as iterableToArray, _iterableToArrayLimit as iterableToArrayLimit, _nonIterableRest as nonIterableRest, _nonIterableSpread as nonIterableSpread, _objectSpread2 as objectSpread2, _objectWithoutProperties as objectWithoutProperties, _objectWithoutPropertiesLoose as objectWithoutPropertiesLoose, _regeneratorRuntime as regeneratorRuntime, _slicedToArray as slicedToArray, _taggedTemplateLiteral as taggedTemplateLiteral, _toConsumableArray as toConsumableArray, _toPrimitive as toPrimitive, _toPropertyKey as toPropertyKey, _typeof as typeof, _unsupportedIterableToArray as unsupportedIterableToArray };
|
|
349
525
|
//# sourceMappingURL=_rollupPluginBabelHelpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_rollupPluginBabelHelpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"_rollupPluginBabelHelpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/apis/hcApi.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hcApi.js","sources":["../../src/apis/hcApi.ts"],"sourcesContent":["import { getClientAuthKey } from '~/clientToken';\nconst baseURL = process.env.HC_API_BASE_URL as string;\n\ninterface MemoryStorage {\n\tauthToken: string | null;\n\ttokenExpiration: string | null;\n}\n\nconst memoryStorage: MemoryStorage = {\n\tauthToken: null,\n\ttokenExpiration: null\n};\n\nfunction setStorage(key: keyof MemoryStorage, value: string): void {\n\ttry {\n\t\tsessionStorage.setItem(key, value);\n\t} catch (error) {\n\t\tmemoryStorage[key] = value;\n\t}\n}\n\nfunction getStorage(key: keyof MemoryStorage): string | null {\n\ttry {\n\t\treturn sessionStorage.getItem(key) || memoryStorage[key];\n\t} catch (error) {\n\t\treturn memoryStorage[key];\n\t}\n}\n\ninterface AuthResponse {\n\ttoken: string;\n\texpiration: string;\n}\n\nconst login = async (): Promise<AuthResponse> => {\n\tconst clientAuthKey = getClientAuthKey();\n\n\ttry {\n\t\tconst response = await fetch(`${baseURL}/auth/login`, {\n\t\t\tmethod: 'POST',\n\t\t\theaders: {\n\t\t\t\t'Content-Type': 'application/json'\n\t\t\t},\n\t\t\tbody: JSON.stringify({\n\t\t\t\tclientAuthKey: clientAuthKey\n\t\t\t})\n\t\t});\n\n\t\tif (!response.ok) {\n\t\t\tthrow new Error('Login failed');\n\t\t}\n\n\t\tconst data = await response.json();\n\n\t\tif (data.token && data.expiration) {\n\t\t\tsetStorage('authToken', data.token);\n\t\t\tsetStorage('tokenExpiration', data.expiration);\n\t\t\treturn { token: data.token, expiration: data.expiration };\n\t\t} else {\n\t\t\tthrow new Error('Invalid login response');\n\t\t}\n\t} catch (error) {\n\t\tconsole.error('Login failed:', error);\n\t\tthrow error;\n\t}\n};\n\nconst fetchWithAuth = async (url: string, options: RequestInit = {}): Promise<Response> => {\n\tlet token = getStorage('authToken');\n\n\tconst expirationDateTime = getStorage('tokenExpiration');\n\tconst currentTime = new Date();\n\n\tif (!token || !expirationDateTime || new Date(expirationDateTime) <= currentTime) {\n\t\tconst authResponse = await login();\n\t\ttoken = authResponse.token;\n\t}\n\n\tconst headers = new Headers(options.headers || {});\n\theaders.append('Authorization', `Bearer ${token}`);\n\n\tconst finalOptions = {\n\t\t...options,\n\t\theaders\n\t};\n\n\tconst response = await fetch(`${baseURL}${url}`, finalOptions);\n\n\tif (!response.ok) throw new Error('Network response was not ok.');\n\n\treturn response;\n};\n\nexport default {\n\tget: async <T>(url: string): Promise<T> => {\n\t\tconst response = await fetchWithAuth(url);\n\t\treturn await response.json() as T;\n\t},\n\tpost: async <T>(url: string, data: any): Promise<T> => {\n\t\tconst response = await fetchWithAuth(url, {\n\t\t\tmethod: 'POST',\n\t\t\theaders: {\n\t\t\t\t'Content-Type': 'application/json'\n\t\t\t},\n\t\t\tbody: JSON.stringify(data)\n\t\t});\n\t\treturn await response.json() as T;\n\t}\n};\n"],"names":[],"mappings":";;AACA,MAAM,OAAO,GAAG,mCAAqC;
|
|
1
|
+
{"version":3,"file":"hcApi.js","sources":["../../src/apis/hcApi.ts"],"sourcesContent":["import { getClientAuthKey } from '~/clientToken';\nconst baseURL = process.env.HC_API_BASE_URL as string;\n\ninterface MemoryStorage {\n\tauthToken: string | null;\n\ttokenExpiration: string | null;\n}\n\nconst memoryStorage: MemoryStorage = {\n\tauthToken: null,\n\ttokenExpiration: null\n};\n\nfunction setStorage(key: keyof MemoryStorage, value: string): void {\n\ttry {\n\t\tsessionStorage.setItem(key, value);\n\t} catch (error) {\n\t\tmemoryStorage[key] = value;\n\t}\n}\n\nfunction getStorage(key: keyof MemoryStorage): string | null {\n\ttry {\n\t\treturn sessionStorage.getItem(key) || memoryStorage[key];\n\t} catch (error) {\n\t\treturn memoryStorage[key];\n\t}\n}\n\ninterface AuthResponse {\n\ttoken: string;\n\texpiration: string;\n}\n\nconst login = async (): Promise<AuthResponse> => {\n\tconst clientAuthKey = getClientAuthKey();\n\n\ttry {\n\t\tconst response = await fetch(`${baseURL}/auth/login`, {\n\t\t\tmethod: 'POST',\n\t\t\theaders: {\n\t\t\t\t'Content-Type': 'application/json'\n\t\t\t},\n\t\t\tbody: JSON.stringify({\n\t\t\t\tclientAuthKey: clientAuthKey\n\t\t\t})\n\t\t});\n\n\t\tif (!response.ok) {\n\t\t\tthrow new Error('Login failed');\n\t\t}\n\n\t\tconst data = await response.json();\n\n\t\tif (data.token && data.expiration) {\n\t\t\tsetStorage('authToken', data.token);\n\t\t\tsetStorage('tokenExpiration', data.expiration);\n\t\t\treturn { token: data.token, expiration: data.expiration };\n\t\t} else {\n\t\t\tthrow new Error('Invalid login response');\n\t\t}\n\t} catch (error) {\n\t\tconsole.error('Login failed:', error);\n\t\tthrow error;\n\t}\n};\n\nconst fetchWithAuth = async (url: string, options: RequestInit = {}): Promise<Response> => {\n\tlet token = getStorage('authToken');\n\n\tconst expirationDateTime = getStorage('tokenExpiration');\n\tconst currentTime = new Date();\n\n\tif (!token || !expirationDateTime || new Date(expirationDateTime) <= currentTime) {\n\t\tconst authResponse = await login();\n\t\ttoken = authResponse.token;\n\t}\n\n\tconst headers = new Headers(options.headers || {});\n\theaders.append('Authorization', `Bearer ${token}`);\n\n\tconst finalOptions = {\n\t\t...options,\n\t\theaders\n\t};\n\n\tconst response = await fetch(`${baseURL}${url}`, finalOptions);\n\n\tif (!response.ok) throw new Error('Network response was not ok.');\n\n\treturn response;\n};\n\nexport default {\n\tget: async <T>(url: string): Promise<T> => {\n\t\tconst response = await fetchWithAuth(url);\n\t\treturn await response.json() as T;\n\t},\n\tpost: async <T>(url: string, data: any): Promise<T> => {\n\t\tconst response = await fetchWithAuth(url, {\n\t\t\tmethod: 'POST',\n\t\t\theaders: {\n\t\t\t\t'Content-Type': 'application/json'\n\t\t\t},\n\t\t\tbody: JSON.stringify(data)\n\t\t});\n\t\treturn await response.json() as T;\n\t}\n};\n"],"names":[],"mappings":"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"}
|
package/dist/clientToken.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clientToken.js","sources":["../src/clientToken.js"],"sourcesContent":["let clientAuthKey = null;\n\nexport const setClientAuthKey = key => {\n\tclientAuthKey = key;\n};\n\nexport const getClientAuthKey = () => {\n\treturn clientAuthKey;\n};\n"],"names":["clientAuthKey","setClientAuthKey","key","getClientAuthKey"],"mappings":"AAAA,IAAIA,aAAa,GAAG,IAAI;IAEXC,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAGC,GAAG,EAAI;AACtCF,EAAAA,aAAa,GAAGE,GAAG;AACpB;
|
|
1
|
+
{"version":3,"file":"clientToken.js","sources":["../src/clientToken.js"],"sourcesContent":["let clientAuthKey = null;\n\nexport const setClientAuthKey = key => {\n\tclientAuthKey = key;\n};\n\nexport const getClientAuthKey = () => {\n\treturn clientAuthKey;\n};\n"],"names":["clientAuthKey","setClientAuthKey","key","getClientAuthKey"],"mappings":"AAAA,IAAIA,aAAa,GAAG,IAAI,CAAA;IAEXC,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAGC,GAAG,EAAI;AACtCF,EAAAA,aAAa,GAAGE,GAAG,CAAA;AACpB,EAAC;IAEYC,gBAAgB,GAAG,SAAnBA,gBAAgBA,GAAS;AACrC,EAAA,OAAOH,aAAa,CAAA;AACrB;;;;"}
|