r3ui-lib 1.2.4 → 1.2.5
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/r3ui-lib.es.js
CHANGED
|
@@ -29224,7 +29224,36 @@ function ZR(n = 32) {
|
|
|
29224
29224
|
throw new Error("OAuth state length must be between 16 and 128.");
|
|
29225
29225
|
return $d(n);
|
|
29226
29226
|
}
|
|
29227
|
-
|
|
29227
|
+
function XR(n, e, t) {
|
|
29228
|
+
return {
|
|
29229
|
+
current_page: e,
|
|
29230
|
+
data: [],
|
|
29231
|
+
first_page_url: n,
|
|
29232
|
+
from: 0,
|
|
29233
|
+
last_page: 1,
|
|
29234
|
+
last_page_url: n,
|
|
29235
|
+
links: [],
|
|
29236
|
+
next_page_url: null,
|
|
29237
|
+
path: n,
|
|
29238
|
+
per_page: t,
|
|
29239
|
+
prev_page_url: null,
|
|
29240
|
+
to: 0,
|
|
29241
|
+
total: 0
|
|
29242
|
+
};
|
|
29243
|
+
}
|
|
29244
|
+
function eM(n = {}) {
|
|
29245
|
+
return async (e, t, i) => {
|
|
29246
|
+
const r = await fetch(e, t);
|
|
29247
|
+
if (r.status === 401)
|
|
29248
|
+
throw n.onUnauthorized?.(r), r;
|
|
29249
|
+
if (r.status === 404 && n.onNotFound)
|
|
29250
|
+
return n.onNotFound({ url: e, params: i, response: r });
|
|
29251
|
+
if (!r.ok)
|
|
29252
|
+
throw r;
|
|
29253
|
+
return await r.json();
|
|
29254
|
+
};
|
|
29255
|
+
}
|
|
29256
|
+
const tM = (n) => ({
|
|
29228
29257
|
searchCountries: (e = {}) => n("/handbook/overpass/countries", {
|
|
29229
29258
|
method: "GET",
|
|
29230
29259
|
params: e
|
|
@@ -29314,8 +29343,10 @@ export {
|
|
|
29314
29343
|
Wc as chunk,
|
|
29315
29344
|
ud as clamp,
|
|
29316
29345
|
Bd as constants,
|
|
29317
|
-
|
|
29346
|
+
tM as createAddressService,
|
|
29318
29347
|
YR as createColumnHandlers,
|
|
29348
|
+
XR as createEmptyRemotePageResponse,
|
|
29349
|
+
eM as createTableAjaxRequestFunc,
|
|
29319
29350
|
Hc as cutString,
|
|
29320
29351
|
Jr as debounce,
|
|
29321
29352
|
uc as findAll,
|