@dxtmisha/functional-basic 0.11.3 → 0.12.2
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/library.d.ts +211 -45
- package/dist/library.js +232 -153
- package/package.json +3 -2
package/dist/library.d.ts
CHANGED
|
@@ -24,18 +24,19 @@ export declare function anyToString<V>(value: V, isArrayString?: boolean): strin
|
|
|
24
24
|
* Класс для работы с запросами.
|
|
25
25
|
*/
|
|
26
26
|
export declare class Api {
|
|
27
|
-
protected static
|
|
28
|
-
protected static headers: ApiHeaders;
|
|
29
|
-
protected static requestDefault: ApiDefault;
|
|
30
|
-
protected static status: ApiStatus;
|
|
31
|
-
protected static response: ApiResponse;
|
|
32
|
-
protected static preparation: ApiPreparation;
|
|
27
|
+
protected static item: ApiInstance;
|
|
33
28
|
/**
|
|
34
29
|
* Is the server local.
|
|
35
30
|
*
|
|
36
31
|
* Является ли сервер локальный.
|
|
37
32
|
*/
|
|
38
33
|
static isLocalhost(): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Returns the instance of the class.
|
|
36
|
+
*
|
|
37
|
+
* Возвращает инстанс класса.
|
|
38
|
+
*/
|
|
39
|
+
static getItem(): ApiInstance;
|
|
39
40
|
/**
|
|
40
41
|
* Returns the status of the last request.
|
|
41
42
|
*
|
|
@@ -141,45 +142,6 @@ export declare class Api {
|
|
|
141
142
|
* @param request list of parameters/ список параметров
|
|
142
143
|
*/
|
|
143
144
|
static delete<T>(request: ApiFetch): Promise<T>;
|
|
144
|
-
/**
|
|
145
|
-
* To execute a request.
|
|
146
|
-
*
|
|
147
|
-
* Выполнить запрос.
|
|
148
|
-
* @param apiFetch property of the request/ свойство запроса
|
|
149
|
-
*/
|
|
150
|
-
protected static fetch<T>(apiFetch: ApiFetch): Promise<T>;
|
|
151
|
-
/**
|
|
152
|
-
* Reading data from the response.
|
|
153
|
-
*
|
|
154
|
-
* Чтение данных из ответа.
|
|
155
|
-
* @param query response from the server/ ответ от сервера
|
|
156
|
-
* @param queryReturn custom function for reading data/ кастомная функция для чтения данных
|
|
157
|
-
* @param end finalization data/ данные финализации
|
|
158
|
-
*/
|
|
159
|
-
protected static readData<T>(query: Response, queryReturn: ApiFetch['queryReturn'], end: ApiPreparationEnd): Promise<ApiData<T>>;
|
|
160
|
-
/**
|
|
161
|
-
* Executing the request.
|
|
162
|
-
*
|
|
163
|
-
* Выполнение запроса.
|
|
164
|
-
* @param apiFetch property of the request/ свойство запроса
|
|
165
|
-
*/
|
|
166
|
-
protected static makeQuery(apiFetch: ApiFetch): Promise<Response>;
|
|
167
|
-
/**
|
|
168
|
-
* Transforms data if needed.
|
|
169
|
-
*
|
|
170
|
-
* Преобразует данные, если нужно.
|
|
171
|
-
* @param data data for transformation/ данные для преобразования
|
|
172
|
-
* @param toData is it necessary to process the data/ нужно ли обрабатывать данные
|
|
173
|
-
*/
|
|
174
|
-
protected static makeData<T>(data: ApiData<T>, toData: boolean): ApiData<T>;
|
|
175
|
-
/**
|
|
176
|
-
* Appends the status object to the response data if possible.
|
|
177
|
-
*
|
|
178
|
-
* Добавляет объект статуса к данным ответа, если это возможно.
|
|
179
|
-
* @param data response data/ данные ответа
|
|
180
|
-
* @param status status object/ объект статуса
|
|
181
|
-
*/
|
|
182
|
-
protected static makeStatus<T>(data: ApiData<T>, status: ApiStatus): ApiData<T>;
|
|
183
145
|
}
|
|
184
146
|
|
|
185
147
|
/**
|
|
@@ -315,6 +277,180 @@ export declare class ApiHeaders {
|
|
|
315
277
|
set(headers: Record<string, string>): this;
|
|
316
278
|
}
|
|
317
279
|
|
|
280
|
+
/**
|
|
281
|
+
* Class for working with requests.
|
|
282
|
+
*
|
|
283
|
+
* Класс для работы с запросами.
|
|
284
|
+
*/
|
|
285
|
+
export declare class ApiInstance {
|
|
286
|
+
protected url: string;
|
|
287
|
+
/** Headers / Заголовки */
|
|
288
|
+
protected headers: ApiHeaders;
|
|
289
|
+
/** Default request parameters / Параметры запроса по умолчанию */
|
|
290
|
+
protected requestDefault: ApiDefault;
|
|
291
|
+
/** Status of the last request / Статус последнего запроса */
|
|
292
|
+
protected status: ApiStatus;
|
|
293
|
+
/** Response handler / Обработчик ответа */
|
|
294
|
+
protected response: ApiResponse;
|
|
295
|
+
/** Request modification handler / Обработчик модификации запроса */
|
|
296
|
+
protected preparation: ApiPreparation;
|
|
297
|
+
/**
|
|
298
|
+
* Constructor
|
|
299
|
+
* @param url base path to the script/ базовый путь к скрипту
|
|
300
|
+
*/
|
|
301
|
+
constructor(url?: string);
|
|
302
|
+
/**
|
|
303
|
+
* Is the server local.
|
|
304
|
+
*
|
|
305
|
+
* Является ли сервер локальный.
|
|
306
|
+
*/
|
|
307
|
+
isLocalhost(): boolean;
|
|
308
|
+
/**
|
|
309
|
+
* Returns the status of the last request.
|
|
310
|
+
*
|
|
311
|
+
* Возвращает статус последнего запроса.
|
|
312
|
+
*/
|
|
313
|
+
getStatus(): ApiStatus;
|
|
314
|
+
/**
|
|
315
|
+
* Getting the response handler.
|
|
316
|
+
*
|
|
317
|
+
* Получение обработчика ответа.
|
|
318
|
+
*/
|
|
319
|
+
getResponse(): ApiResponse;
|
|
320
|
+
/**
|
|
321
|
+
* Getting the full path to the request script.
|
|
322
|
+
*
|
|
323
|
+
* Получение полного пути к скрипту запроса.
|
|
324
|
+
* @param path path to the script/ путь к скрипту
|
|
325
|
+
* @param api adding a path to the site’s API/ добавление пути к API сайта
|
|
326
|
+
*/
|
|
327
|
+
getUrl(path: string, api?: boolean): string;
|
|
328
|
+
/**
|
|
329
|
+
* Getting data for the body.
|
|
330
|
+
*
|
|
331
|
+
* Получение данных для тела.
|
|
332
|
+
* @param request this request/ данный запрос
|
|
333
|
+
* @param method method for request/ метод запрос
|
|
334
|
+
*/
|
|
335
|
+
getBody(request?: ApiFetch['request'], method?: ApiMethodItem): string | FormData | undefined;
|
|
336
|
+
/**
|
|
337
|
+
* Getting data for the body of the get method.
|
|
338
|
+
*
|
|
339
|
+
* Получение данных для тела метода get.
|
|
340
|
+
* @param request this request/ данный запрос
|
|
341
|
+
* @param path path to request/ путь к запрос
|
|
342
|
+
* @param method method for request/ метод запрос
|
|
343
|
+
*/
|
|
344
|
+
getBodyForGet(request: ApiFetch['request'], path?: string, method?: ApiMethodItem): string;
|
|
345
|
+
/**
|
|
346
|
+
* Modifies the default header data.
|
|
347
|
+
*
|
|
348
|
+
* Изменяет данные заголовка по умолчанию.
|
|
349
|
+
*/
|
|
350
|
+
setHeaders(headers: Record<string, string>): this;
|
|
351
|
+
/**
|
|
352
|
+
* Modifies the default request data.
|
|
353
|
+
*
|
|
354
|
+
* Изменяет данные запроса по умолчанию.
|
|
355
|
+
*/
|
|
356
|
+
setRequestDefault(request: Record<string, any>): this;
|
|
357
|
+
/**
|
|
358
|
+
* Change the base path to the script.
|
|
359
|
+
*
|
|
360
|
+
* Изменить базовый путь к скрипту.
|
|
361
|
+
* @param url path to the script/ путь к скрипту
|
|
362
|
+
*/
|
|
363
|
+
setUrl(url: string): this;
|
|
364
|
+
/**
|
|
365
|
+
* The function is modified for a call before the request.
|
|
366
|
+
*
|
|
367
|
+
* Изменить функцию перед запросом.
|
|
368
|
+
* @param callback function for call/ функция для вызова
|
|
369
|
+
*/
|
|
370
|
+
setPreparation(callback: (apiFetch: ApiFetch) => Promise<void>): this;
|
|
371
|
+
/**
|
|
372
|
+
* Modify the function after the request.
|
|
373
|
+
*
|
|
374
|
+
* Изменить функцию после запроса.
|
|
375
|
+
* @param callback function for call/ функция для вызова
|
|
376
|
+
*/
|
|
377
|
+
setEnd(callback: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>): this;
|
|
378
|
+
/**
|
|
379
|
+
* To execute a request.
|
|
380
|
+
*
|
|
381
|
+
* Выполнить запрос.
|
|
382
|
+
* @param pathRequest query string or list of parameters/ строка запроса или список параметров
|
|
383
|
+
*/
|
|
384
|
+
request<T>(pathRequest: string | ApiFetch): Promise<T>;
|
|
385
|
+
/**
|
|
386
|
+
* Sends a get method request.
|
|
387
|
+
*
|
|
388
|
+
* Отправляет запрос метода get.
|
|
389
|
+
* @param request list of parameters/ список параметров
|
|
390
|
+
*/
|
|
391
|
+
get<T>(request: ApiFetch): Promise<T>;
|
|
392
|
+
/**
|
|
393
|
+
* Sends a post method request.
|
|
394
|
+
*
|
|
395
|
+
* Отправляет запрос метода post.
|
|
396
|
+
* @param request list of parameters/ список параметров
|
|
397
|
+
*/
|
|
398
|
+
post<T>(request: ApiFetch): Promise<T>;
|
|
399
|
+
/**
|
|
400
|
+
* Sends a put method request.
|
|
401
|
+
*
|
|
402
|
+
* Отправляет запрос метода put.
|
|
403
|
+
* @param request list of parameters/ список параметров
|
|
404
|
+
*/
|
|
405
|
+
put<T>(request: ApiFetch): Promise<T>;
|
|
406
|
+
/**
|
|
407
|
+
* Sends a delete method request.
|
|
408
|
+
*
|
|
409
|
+
* Отправляет запрос метода delete.
|
|
410
|
+
* @param request list of parameters/ список параметров
|
|
411
|
+
*/
|
|
412
|
+
delete<T>(request: ApiFetch): Promise<T>;
|
|
413
|
+
/**
|
|
414
|
+
* To execute a request.
|
|
415
|
+
*
|
|
416
|
+
* Выполнить запрос.
|
|
417
|
+
* @param apiFetch property of the request/ свойство запроса
|
|
418
|
+
*/
|
|
419
|
+
protected fetch<T>(apiFetch: ApiFetch): Promise<T>;
|
|
420
|
+
/**
|
|
421
|
+
* Reading data from the response.
|
|
422
|
+
*
|
|
423
|
+
* Чтение данных из ответа.
|
|
424
|
+
* @param query response from the server/ ответ от сервера
|
|
425
|
+
* @param queryReturn custom function for reading data/ кастомная функция для чтения данных
|
|
426
|
+
* @param end finalization data/ данные финализации
|
|
427
|
+
*/
|
|
428
|
+
protected readData<T>(query: Response, queryReturn: ApiFetch['queryReturn'], end: ApiPreparationEnd): Promise<ApiData<T>>;
|
|
429
|
+
/**
|
|
430
|
+
* Executing the request.
|
|
431
|
+
*
|
|
432
|
+
* Выполнение запроса.
|
|
433
|
+
* @param apiFetch property of the request/ свойство запроса
|
|
434
|
+
*/
|
|
435
|
+
protected makeQuery(apiFetch: ApiFetch): Promise<Response>;
|
|
436
|
+
/**
|
|
437
|
+
* Transforms data if needed.
|
|
438
|
+
*
|
|
439
|
+
* Преобразует данные, если нужно.
|
|
440
|
+
* @param data data for transformation/ данные для преобразования
|
|
441
|
+
* @param toData is it necessary to process the data/ нужно ли обрабатывать данные
|
|
442
|
+
*/
|
|
443
|
+
protected makeData<T>(data: ApiData<T>, toData: boolean): ApiData<T>;
|
|
444
|
+
/**
|
|
445
|
+
* Appends the status object to the response data if possible.
|
|
446
|
+
*
|
|
447
|
+
* Добавляет объект статуса к данным ответа, если это возможно.
|
|
448
|
+
* @param data response data/ данные ответа
|
|
449
|
+
* @param status status object/ объект статуса
|
|
450
|
+
*/
|
|
451
|
+
protected makeStatus<T>(data: ApiData<T>, status: ApiStatus): ApiData<T>;
|
|
452
|
+
}
|
|
453
|
+
|
|
318
454
|
/**
|
|
319
455
|
* Supported HTTP methods type/ Тип HTTP-методов
|
|
320
456
|
* (derived from ApiMethodItem enum)/ (получен из перечисления ApiMethodItem)
|
|
@@ -3321,6 +3457,17 @@ export declare function goScrollSmooth<E extends HTMLElement>(element: E, option
|
|
|
3321
3457
|
*/
|
|
3322
3458
|
export declare function goScrollTo(element?: HTMLElement, elementTo?: HTMLElement, behavior?: ScrollBehavior): void;
|
|
3323
3459
|
|
|
3460
|
+
/**
|
|
3461
|
+
* The method invokes the native sharing mechanism of the device as part of the Web Share API.
|
|
3462
|
+
* If the Web Share API is not supported by the browser or the data cannot be shared, the method returns false.
|
|
3463
|
+
*
|
|
3464
|
+
* Метод вызывает встроенный механизм обмена данными мобильного устройства или операционной системы.
|
|
3465
|
+
* Если Web Share API не поддерживается браузером или данные не могут быть переданы, метод возвращает false.
|
|
3466
|
+
* @param data an object containing data to share/ объект, содержащий данные для обмена
|
|
3467
|
+
* @returns true if the data was shared successfully/ true, если данные были успешно переданы
|
|
3468
|
+
*/
|
|
3469
|
+
export declare function handleShare(data: ShareData): Promise<boolean>;
|
|
3470
|
+
|
|
3324
3471
|
/**
|
|
3325
3472
|
* Working with data stored in hash.
|
|
3326
3473
|
*
|
|
@@ -3557,6 +3704,17 @@ export declare function isDomData(): boolean;
|
|
|
3557
3704
|
*/
|
|
3558
3705
|
export declare function isDomRuntime(): boolean;
|
|
3559
3706
|
|
|
3707
|
+
/**
|
|
3708
|
+
* Checks if an element is visible (not hidden by CSS and is in the DOM).
|
|
3709
|
+
* An element can be off-screen and still be considered visible.
|
|
3710
|
+
*
|
|
3711
|
+
* Проверяет, является ли элемент видимым (не скрыт через CSS и находится в DOM).
|
|
3712
|
+
* Элемент может находиться за пределами экрана и при этом считаться видимым.
|
|
3713
|
+
* @param elementSelectors selectors for matching or an Element/ селекторов для сопоставления или Element
|
|
3714
|
+
* @returns true if the element is visible, otherwise false/ true, если элемент является видимым, иначе false
|
|
3715
|
+
*/
|
|
3716
|
+
export declare function isElementVisible<E extends ElementOrWindow>(elementSelectors?: ElementOrString<E>): boolean;
|
|
3717
|
+
|
|
3560
3718
|
/**
|
|
3561
3719
|
* Checks if the pressed key is Enter or Space.
|
|
3562
3720
|
*
|
|
@@ -3666,6 +3824,14 @@ export declare function isSelected<T, S>(value: T, selected: T | T[] | S): boole
|
|
|
3666
3824
|
*/
|
|
3667
3825
|
export declare function isSelectedByList<T>(values: T | T[], selected: T | T[]): boolean;
|
|
3668
3826
|
|
|
3827
|
+
/**
|
|
3828
|
+
* Checks if the Web Share API is supported in the current environment.
|
|
3829
|
+
*
|
|
3830
|
+
* Проверяет, поддерживается ли Web Share API в текущей среде.
|
|
3831
|
+
* @returns true if the Web Share API is supported/ true, если Web Share API поддерживается
|
|
3832
|
+
*/
|
|
3833
|
+
export declare function isShare(): boolean;
|
|
3834
|
+
|
|
3669
3835
|
/**
|
|
3670
3836
|
* Checks if the value is of type string.
|
|
3671
3837
|
*
|
package/dist/library.js
CHANGED
|
@@ -333,7 +333,7 @@ function w(e) {
|
|
|
333
333
|
}
|
|
334
334
|
//#endregion
|
|
335
335
|
//#region src/classes/EventItem.ts
|
|
336
|
-
var
|
|
336
|
+
var ce = class {
|
|
337
337
|
constructor(e, t = ["click"], r, i, a) {
|
|
338
338
|
y(this, "element", void 0), y(this, "elementControl", void 0), y(this, "elementControlEdit", void 0), y(this, "type", void 0), y(this, "listenerRecent", (e) => {
|
|
339
339
|
if (se(this.elementControl)) {
|
|
@@ -425,7 +425,7 @@ var T = class {
|
|
|
425
425
|
}
|
|
426
426
|
return !1;
|
|
427
427
|
}
|
|
428
|
-
},
|
|
428
|
+
}, le, ue = "ui-loading", T = class {
|
|
429
429
|
static is() {
|
|
430
430
|
return this.value > 0;
|
|
431
431
|
}
|
|
@@ -440,7 +440,7 @@ var T = class {
|
|
|
440
440
|
}
|
|
441
441
|
static registrationEvent(e, t) {
|
|
442
442
|
if (d()) {
|
|
443
|
-
let n = new
|
|
443
|
+
let n = new ce(window, ue, e).setElementControl(t).start();
|
|
444
444
|
this.registrationList.push({
|
|
445
445
|
item: n,
|
|
446
446
|
listener: e,
|
|
@@ -456,10 +456,10 @@ var T = class {
|
|
|
456
456
|
(e = this.event) == null || e.dispatch({ loading: this.is() });
|
|
457
457
|
}
|
|
458
458
|
};
|
|
459
|
-
|
|
459
|
+
le = T, y(T, "value", 0), y(T, "event", void 0), y(T, "registrationList", []), d() && (le.event = new ce(window, ue));
|
|
460
460
|
//#endregion
|
|
461
461
|
//#region src/classes/ApiHeaders.ts
|
|
462
|
-
var
|
|
462
|
+
var de = class {
|
|
463
463
|
constructor() {
|
|
464
464
|
y(this, "headers", {});
|
|
465
465
|
}
|
|
@@ -472,9 +472,9 @@ var ue = class {
|
|
|
472
472
|
set(e) {
|
|
473
473
|
return c(e) && (this.headers = e), this;
|
|
474
474
|
}
|
|
475
|
-
},
|
|
475
|
+
}, E = /* @__PURE__ */ function(e) {
|
|
476
476
|
return e.get = "GET", e.post = "POST", e.put = "PUT", e.delete = "DELETE", e;
|
|
477
|
-
}({}),
|
|
477
|
+
}({}), fe = class {
|
|
478
478
|
constructor() {
|
|
479
479
|
y(this, "value", void 0);
|
|
480
480
|
}
|
|
@@ -498,7 +498,7 @@ var ue = class {
|
|
|
498
498
|
addByFormData(e, t) {
|
|
499
499
|
for (let n in t) e.has(n) || e.set(n, t[n]);
|
|
500
500
|
}
|
|
501
|
-
},
|
|
501
|
+
}, D = class {
|
|
502
502
|
constructor() {
|
|
503
503
|
y(this, "value", void 0);
|
|
504
504
|
}
|
|
@@ -556,18 +556,18 @@ var ue = class {
|
|
|
556
556
|
};
|
|
557
557
|
//#endregion
|
|
558
558
|
//#region src/functions/executePromise.ts
|
|
559
|
-
async function
|
|
559
|
+
async function pe(e) {
|
|
560
560
|
let t = g(e);
|
|
561
561
|
return t instanceof Promise ? await t : t;
|
|
562
562
|
}
|
|
563
563
|
//#endregion
|
|
564
564
|
//#region src/functions/random.ts
|
|
565
|
-
function
|
|
565
|
+
function O(e, t) {
|
|
566
566
|
return Math.floor(Math.random() * (t - e + 1) + e);
|
|
567
567
|
}
|
|
568
568
|
//#endregion
|
|
569
569
|
//#region src/classes/ApiResponse.ts
|
|
570
|
-
var
|
|
570
|
+
var me = "d-response-loading", he = class {
|
|
571
571
|
constructor(e) {
|
|
572
572
|
y(this, "first", []), y(this, "response", []), y(this, "loading", void 0), y(this, "devMode", !1), this.requestDefault = e;
|
|
573
573
|
}
|
|
@@ -584,7 +584,7 @@ var pe = "d-response-loading", me = class {
|
|
|
584
584
|
return this.devMode = e, this;
|
|
585
585
|
}
|
|
586
586
|
async emulator(e) {
|
|
587
|
-
let { path: t = "", method: n =
|
|
587
|
+
let { path: t = "", method: n = E.get, global: r = n === E.get, devMode: i = !1 } = e;
|
|
588
588
|
if (r || this.isDevMode(i)) {
|
|
589
589
|
let r = this.requestDefault.request(e.request), a = this.get(t, n, r, i);
|
|
590
590
|
if (a) {
|
|
@@ -611,22 +611,22 @@ var pe = "d-response-loading", me = class {
|
|
|
611
611
|
}
|
|
612
612
|
fetch(e, t) {
|
|
613
613
|
return this.startResponseLoading(), new Promise((n) => {
|
|
614
|
-
|
|
615
|
-
e != null && e.lag ? (
|
|
616
|
-
this.stopResponseLoading(), n(t),
|
|
617
|
-
},
|
|
614
|
+
pe(h(e.response) ? e.response(t) : e.response).then((t) => {
|
|
615
|
+
e != null && e.lag ? (T.show(), setTimeout(() => {
|
|
616
|
+
this.stopResponseLoading(), n(t), T.hide();
|
|
617
|
+
}, O(0, 2e3))) : (this.stopResponseLoading(), n(t));
|
|
618
618
|
});
|
|
619
619
|
});
|
|
620
620
|
}
|
|
621
621
|
startResponseLoading() {
|
|
622
|
-
this.loading && clearTimeout(this.loading), d() && document.body.classList.add(
|
|
622
|
+
this.loading && clearTimeout(this.loading), d() && document.body.classList.add(me);
|
|
623
623
|
}
|
|
624
624
|
stopResponseLoading() {
|
|
625
625
|
this.loading = setTimeout(() => {
|
|
626
|
-
this.loading = void 0, d() && document.body.classList.remove(
|
|
626
|
+
this.loading = void 0, d() && document.body.classList.remove(me);
|
|
627
627
|
}, 1200);
|
|
628
628
|
}
|
|
629
|
-
},
|
|
629
|
+
}, ge = class {
|
|
630
630
|
constructor() {
|
|
631
631
|
y(this, "callback", void 0), y(this, "callbackEnd", void 0), y(this, "loading", !1);
|
|
632
632
|
}
|
|
@@ -654,103 +654,158 @@ var pe = "d-response-loading", me = class {
|
|
|
654
654
|
let n = {};
|
|
655
655
|
return this.callbackEnd && (n = await this.callbackEnd(e, t)), n;
|
|
656
656
|
}
|
|
657
|
-
},
|
|
658
|
-
|
|
657
|
+
}, _e = class {
|
|
658
|
+
constructor(e = "/api/") {
|
|
659
|
+
y(this, "headers", new de()), y(this, "requestDefault", new fe()), y(this, "status", new D()), y(this, "response", new he(this.requestDefault)), y(this, "preparation", new ge()), this.url = e;
|
|
660
|
+
}
|
|
661
|
+
isLocalhost() {
|
|
659
662
|
return typeof location > "u" || location.hostname === "localhost";
|
|
660
663
|
}
|
|
661
|
-
|
|
664
|
+
getStatus() {
|
|
662
665
|
return this.status;
|
|
663
666
|
}
|
|
664
|
-
|
|
667
|
+
getResponse() {
|
|
665
668
|
return this.response;
|
|
666
669
|
}
|
|
667
|
-
|
|
670
|
+
getUrl(e, t = !0) {
|
|
668
671
|
return `${t ? this.url : ""}${e}`.replace("{locale}", S.getLocation()).replace("{country}", S.getCountry()).replace("{language}", S.getLanguage());
|
|
669
672
|
}
|
|
670
|
-
|
|
673
|
+
getBody(e = {}, t = E.get) {
|
|
671
674
|
if (e instanceof FormData) return e;
|
|
672
|
-
if (t !==
|
|
675
|
+
if (t !== E.get && s(e)) return l(e) ? e : JSON.stringify(e);
|
|
673
676
|
}
|
|
674
|
-
|
|
675
|
-
if (n ===
|
|
677
|
+
getBodyForGet(e, t = "", n = E.get) {
|
|
678
|
+
if (n === E.get) {
|
|
676
679
|
let n = t.match(/\?/) ? "&" : "?", r = typeof e == "object" ? i(e) : e;
|
|
677
680
|
if (s(r)) return `${n}${r}`;
|
|
678
681
|
}
|
|
679
682
|
return "";
|
|
680
683
|
}
|
|
681
|
-
|
|
682
|
-
return this.headers.set(
|
|
684
|
+
setHeaders(e) {
|
|
685
|
+
return this.headers.set(e), this;
|
|
683
686
|
}
|
|
684
|
-
|
|
685
|
-
return this.requestDefault.set(
|
|
687
|
+
setRequestDefault(e) {
|
|
688
|
+
return this.requestDefault.set(e), this;
|
|
686
689
|
}
|
|
687
|
-
|
|
688
|
-
return this.url =
|
|
690
|
+
setUrl(e) {
|
|
691
|
+
return this.url = e, this;
|
|
689
692
|
}
|
|
690
|
-
|
|
691
|
-
return this.preparation.set(
|
|
693
|
+
setPreparation(e) {
|
|
694
|
+
return this.preparation.set(e), this;
|
|
692
695
|
}
|
|
693
|
-
|
|
694
|
-
return this.preparation.setEnd(
|
|
696
|
+
setEnd(e) {
|
|
697
|
+
return this.preparation.setEnd(e), this;
|
|
695
698
|
}
|
|
696
|
-
|
|
699
|
+
async request(e) {
|
|
697
700
|
return l(e) ? await this.fetch({ path: e }) : await this.fetch(e);
|
|
698
701
|
}
|
|
699
|
-
|
|
700
|
-
return this.request(t(e, { method:
|
|
702
|
+
get(e) {
|
|
703
|
+
return this.request(t(e, { method: E.get }));
|
|
701
704
|
}
|
|
702
|
-
|
|
703
|
-
return this.request(t(e, { method:
|
|
705
|
+
post(e) {
|
|
706
|
+
return this.request(t(e, { method: E.post }));
|
|
704
707
|
}
|
|
705
|
-
|
|
706
|
-
return this.request(t(e, { method:
|
|
708
|
+
put(e) {
|
|
709
|
+
return this.request(t(e, { method: E.put }));
|
|
707
710
|
}
|
|
708
|
-
|
|
709
|
-
return this.request(t(e, { method:
|
|
711
|
+
delete(e) {
|
|
712
|
+
return this.request(t(e, { method: E.delete }));
|
|
710
713
|
}
|
|
711
|
-
|
|
714
|
+
async fetch(e) {
|
|
712
715
|
let { toData: t = !0, hideError: n = !1, queryReturn: r = void 0, globalPreparation: i = !0, globalEnd: a = !0 } = e, o = await this.response.emulator(e);
|
|
713
716
|
if (o) return o;
|
|
714
|
-
let s = new
|
|
715
|
-
|
|
717
|
+
let s = new D(), c;
|
|
718
|
+
T.show();
|
|
716
719
|
try {
|
|
717
720
|
await this.preparation.make(i, e);
|
|
718
721
|
let t = await this.makeQuery(e), n = await this.preparation.makeEnd(a, t, e);
|
|
719
|
-
if (s.setStatus(t.status, t.statusText), this.status.setStatus(t.status, t.statusText), n != null && n.reset) return
|
|
722
|
+
if (s.setStatus(t.status, t.statusText), this.status.setStatus(t.status, t.statusText), n != null && n.reset) return T.hide(), await this.fetch(e);
|
|
720
723
|
c = await this.readData(t, r, n);
|
|
721
724
|
} catch (e) {
|
|
722
|
-
throw n || console.error("Api: ", e), s.setError(String(e)), this.status.setError(String(e)),
|
|
725
|
+
throw n || console.error("Api: ", e), s.setError(String(e)), this.status.setError(String(e)), T.hide(), e;
|
|
723
726
|
}
|
|
724
|
-
return
|
|
727
|
+
return T.hide(), s.setLastResponse(c), this.status.setLastResponse(c), this.makeStatus(this.makeData(c, t), s);
|
|
725
728
|
}
|
|
726
|
-
|
|
729
|
+
async readData(e, t, n) {
|
|
727
730
|
var r;
|
|
728
731
|
return t ? await t(e) : "data" in n ? n.data : ((r = e.headers.get("Content-Type")) == null ? "" : r).match("application/json") ? await e.json() : { data: await e.text() };
|
|
729
732
|
}
|
|
730
|
-
|
|
731
|
-
let n = this.requestDefault.request(e.request), { api: r = !0, path: i = "", pathFull: a = void 0, method: o =
|
|
733
|
+
async makeQuery(e) {
|
|
734
|
+
let n = this.requestDefault.request(e.request), { api: r = !0, path: i = "", pathFull: a = void 0, method: o = E.get, headers: s = {}, type: c = "application/json;charset=UTF-8", init: l = {}, controller: u = void 0 } = e, d = a == null ? this.getUrl(i, r) : a, f = `${d}${this.getBodyForGet(n, d, o)}`, p = this.headers.get(s, c), m = t(l, {
|
|
732
735
|
method: o,
|
|
733
736
|
body: this.getBody(n, o)
|
|
734
737
|
});
|
|
735
738
|
return p && (m.headers = p), u && (m.signal = u.signal), await fetch(f, m);
|
|
736
739
|
}
|
|
737
|
-
|
|
740
|
+
makeData(e, n) {
|
|
738
741
|
if (!n || !e || !c(e) || !("data" in e)) return e;
|
|
739
742
|
if (e.data !== null && typeof e.data != "object" || a(e.data)) return e.data;
|
|
740
743
|
let r = t(e.data);
|
|
741
744
|
return "success" in e && !("success" in r) && (r.success = e.success), "status" in e && !("status" in r) && (r.status = e.status), "message" in e && !("message" in r) && (r.message = e.message), r;
|
|
742
745
|
}
|
|
743
|
-
|
|
746
|
+
makeStatus(e, t) {
|
|
744
747
|
return e && c(e) ? {
|
|
745
748
|
...e,
|
|
746
749
|
statusObject: t.get()
|
|
747
750
|
} : e;
|
|
748
751
|
}
|
|
752
|
+
}, k = class e {
|
|
753
|
+
static isLocalhost() {
|
|
754
|
+
return this.item.isLocalhost();
|
|
755
|
+
}
|
|
756
|
+
static getItem() {
|
|
757
|
+
return this.item;
|
|
758
|
+
}
|
|
759
|
+
static getStatus() {
|
|
760
|
+
return this.item.getStatus();
|
|
761
|
+
}
|
|
762
|
+
static getResponse() {
|
|
763
|
+
return this.item.getResponse();
|
|
764
|
+
}
|
|
765
|
+
static getUrl(e, t = !0) {
|
|
766
|
+
return this.item.getUrl(e, t);
|
|
767
|
+
}
|
|
768
|
+
static getBody(e = {}, t = E.get) {
|
|
769
|
+
return this.item.getBody(e, t);
|
|
770
|
+
}
|
|
771
|
+
static getBodyForGet(e, t = "", n = E.get) {
|
|
772
|
+
return this.item.getBodyForGet(e, t, n);
|
|
773
|
+
}
|
|
774
|
+
static setHeaders(t) {
|
|
775
|
+
return this.item.setHeaders(t), e;
|
|
776
|
+
}
|
|
777
|
+
static setRequestDefault(t) {
|
|
778
|
+
return this.item.setRequestDefault(t), e;
|
|
779
|
+
}
|
|
780
|
+
static setUrl(t) {
|
|
781
|
+
return this.item.setUrl(t), e;
|
|
782
|
+
}
|
|
783
|
+
static setPreparation(t) {
|
|
784
|
+
return this.item.setPreparation(t), e;
|
|
785
|
+
}
|
|
786
|
+
static setEnd(t) {
|
|
787
|
+
return this.item.setEnd(t), e;
|
|
788
|
+
}
|
|
789
|
+
static async request(e) {
|
|
790
|
+
return this.item.request(e);
|
|
791
|
+
}
|
|
792
|
+
static get(e) {
|
|
793
|
+
return this.item.get(e);
|
|
794
|
+
}
|
|
795
|
+
static post(e) {
|
|
796
|
+
return this.item.post(e);
|
|
797
|
+
}
|
|
798
|
+
static put(e) {
|
|
799
|
+
return this.item.put(e);
|
|
800
|
+
}
|
|
801
|
+
static delete(e) {
|
|
802
|
+
return this.item.delete(e);
|
|
803
|
+
}
|
|
749
804
|
};
|
|
750
|
-
|
|
805
|
+
y(k, "item", new _e());
|
|
751
806
|
//#endregion
|
|
752
807
|
//#region src/classes/BroadcastMessage.ts
|
|
753
|
-
var
|
|
808
|
+
var ve = class {
|
|
754
809
|
constructor(e, t, n) {
|
|
755
810
|
if (y(this, "channel", void 0), y(this, "update", (e) => {
|
|
756
811
|
var t;
|
|
@@ -759,7 +814,7 @@ var _e = class {
|
|
|
759
814
|
var t;
|
|
760
815
|
return (t = this.callbackError) == null || t.call(this, e), this;
|
|
761
816
|
}), this.callback = t, this.callbackError = n, d()) try {
|
|
762
|
-
this.channel = new BroadcastChannel(`${
|
|
817
|
+
this.channel = new BroadcastChannel(`${ye()}__${e}`), this.channel.onmessage = this.update, this.channel.onmessageerror = this.updateError;
|
|
763
818
|
} catch (t) {
|
|
764
819
|
console.error(`BroadcastMessage ${e}:`, t);
|
|
765
820
|
}
|
|
@@ -777,7 +832,7 @@ var _e = class {
|
|
|
777
832
|
setCallbackError(e) {
|
|
778
833
|
return this.callbackError = e, this;
|
|
779
834
|
}
|
|
780
|
-
},
|
|
835
|
+
}, ye = () => new b("__broadcast-name").get(() => `name_${O(1e6, 9999999)}`), be = class {
|
|
781
836
|
constructor(e) {
|
|
782
837
|
y(this, "cache", void 0), y(this, "cacheOld", void 0), y(this, "comparisons", []), this.callback = e;
|
|
783
838
|
}
|
|
@@ -799,7 +854,7 @@ var _e = class {
|
|
|
799
854
|
isUpdate(e) {
|
|
800
855
|
return this.cache === void 0 || this.comparisons.length !== e.length || this.comparisons.findIndex((t, n) => t !== e[n]) >= 0 ? (this.comparisons = [...e], !0) : !1;
|
|
801
856
|
}
|
|
802
|
-
},
|
|
857
|
+
}, xe = class {
|
|
803
858
|
constructor() {
|
|
804
859
|
y(this, "cache", {});
|
|
805
860
|
}
|
|
@@ -810,17 +865,17 @@ var _e = class {
|
|
|
810
865
|
return await this.getCacheItem(e, t).getCacheAsync(n == null ? [] : n);
|
|
811
866
|
}
|
|
812
867
|
getCacheItem(e, t) {
|
|
813
|
-
return e in this.cache || (this.cache[e] = new
|
|
868
|
+
return e in this.cache || (this.cache[e] = new be(t)), this.cache[e];
|
|
814
869
|
}
|
|
815
|
-
},
|
|
870
|
+
}, Se, Ce = class {
|
|
816
871
|
static get(e, t, n) {
|
|
817
872
|
return this.cache.get(e, t, n);
|
|
818
873
|
}
|
|
819
874
|
};
|
|
820
|
-
|
|
875
|
+
Se = Ce, y(Ce, "cache", void 0), Se.cache = new xe();
|
|
821
876
|
//#endregion
|
|
822
877
|
//#region src/functions/transformation.ts
|
|
823
|
-
function
|
|
878
|
+
function we(e, t = !1) {
|
|
824
879
|
if (typeof e == "string") {
|
|
825
880
|
let r = e.trim();
|
|
826
881
|
switch (r) {
|
|
@@ -844,7 +899,7 @@ function Ce(e, t = !1) {
|
|
|
844
899
|
}
|
|
845
900
|
//#endregion
|
|
846
901
|
//#region src/classes/CookieBlock.ts
|
|
847
|
-
var
|
|
902
|
+
var Te = "cookie-block", Ee = class {
|
|
848
903
|
static get() {
|
|
849
904
|
var e;
|
|
850
905
|
return (e = this.storage.get()) == null ? !1 : e;
|
|
@@ -853,13 +908,13 @@ var we = "cookie-block", j = class {
|
|
|
853
908
|
this.storage.set(e);
|
|
854
909
|
}
|
|
855
910
|
};
|
|
856
|
-
y(
|
|
911
|
+
y(Ee, "storage", new b(Te));
|
|
857
912
|
//#endregion
|
|
858
913
|
//#region src/classes/Cookie.ts
|
|
859
|
-
var
|
|
914
|
+
var De, A = {}, Oe = class {
|
|
860
915
|
constructor(e) {
|
|
861
|
-
if (y(this, "value", void 0), y(this, "options", {}), this.name = e, e in
|
|
862
|
-
this.value =
|
|
916
|
+
if (y(this, "value", void 0), y(this, "options", {}), this.name = e, e in j) return j[e];
|
|
917
|
+
this.value = A == null ? void 0 : A[e], j[e] = this;
|
|
863
918
|
}
|
|
864
919
|
get(e, t) {
|
|
865
920
|
return this.value === void 0 && e && this.set(e, t), this.value;
|
|
@@ -875,7 +930,7 @@ var Te, M = {}, Ee = class {
|
|
|
875
930
|
return (e = (t = this.options) == null ? void 0 : t.age) == null ? 10080 * 60 : e;
|
|
876
931
|
}
|
|
877
932
|
update() {
|
|
878
|
-
if (d() && !_() && !
|
|
933
|
+
if (d() && !_() && !Ee.get()) {
|
|
879
934
|
var e, t, n, r, i;
|
|
880
935
|
let a = String((e = this.value) == null ? "" : e);
|
|
881
936
|
document.cookie = [
|
|
@@ -889,15 +944,15 @@ var Te, M = {}, Ee = class {
|
|
|
889
944
|
static updateData() {
|
|
890
945
|
for (let e of document.cookie.split(";")) {
|
|
891
946
|
let [t, n] = e.trim().split("=");
|
|
892
|
-
t && s(n) && (
|
|
947
|
+
t && s(n) && (A[t] = we(n));
|
|
893
948
|
}
|
|
894
949
|
}
|
|
895
950
|
};
|
|
896
|
-
|
|
897
|
-
var
|
|
951
|
+
De = Oe, d() && !_() && De.updateData();
|
|
952
|
+
var j = {};
|
|
898
953
|
//#endregion
|
|
899
954
|
//#region src/functions/toDate.ts
|
|
900
|
-
function
|
|
955
|
+
function M(e) {
|
|
901
956
|
var t, n, r, i, a, s, c, l;
|
|
902
957
|
if (e instanceof Date) return e;
|
|
903
958
|
if (o(e)) return /* @__PURE__ */ new Date();
|
|
@@ -909,20 +964,20 @@ function N(e) {
|
|
|
909
964
|
}
|
|
910
965
|
//#endregion
|
|
911
966
|
//#region src/functions/getColumn.ts
|
|
912
|
-
function
|
|
967
|
+
function ke(e, t) {
|
|
913
968
|
return r(e, (e) => e == null ? void 0 : e[t], !0);
|
|
914
969
|
}
|
|
915
970
|
//#endregion
|
|
916
971
|
//#region src/classes/GeoIntl.ts
|
|
917
|
-
var
|
|
972
|
+
var N = class e {
|
|
918
973
|
static getInstance(t = S.getLocation()) {
|
|
919
974
|
return new e(t);
|
|
920
975
|
}
|
|
921
976
|
constructor(e = S.getLocation()) {
|
|
922
977
|
y(this, "geo", void 0), this.geo = S.find(e);
|
|
923
978
|
let t = this.getLocation();
|
|
924
|
-
if (t in
|
|
925
|
-
|
|
979
|
+
if (t in Ae) return Ae[t];
|
|
980
|
+
Ae[t] = this;
|
|
926
981
|
}
|
|
927
982
|
getLocation() {
|
|
928
983
|
return this.geo.standard;
|
|
@@ -993,7 +1048,7 @@ var P = class e {
|
|
|
993
1048
|
}, i = e.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...e) => (r.currency = String(e[2]).toUpperCase(), String(e[1])));
|
|
994
1049
|
if (n) {
|
|
995
1050
|
let t = this.numberObject(r);
|
|
996
|
-
return t ?
|
|
1051
|
+
return t ? ke(t.formatToParts(p(e)).filter((e) => ["literal", "currency"].indexOf(e.type) === -1), "value").join("") : e.toString();
|
|
997
1052
|
} else if ("currency" in r) return this.number(typeof e == "number" ? e : i, r);
|
|
998
1053
|
else return this.number(typeof e == "number" ? e : i, {
|
|
999
1054
|
...r,
|
|
@@ -1070,18 +1125,18 @@ var P = class e {
|
|
|
1070
1125
|
return `${this.number(a, r)} ${(i = o == null ? void 0 : o[0]) == null ? "" : i}`.trim();
|
|
1071
1126
|
}
|
|
1072
1127
|
date(e, t, n, r) {
|
|
1073
|
-
let i =
|
|
1128
|
+
let i = M(e), a = typeof n == "string", o = this.dateOptions(t, a ? n : "short");
|
|
1074
1129
|
return r && (o.hour12 = !1), a || Object.assign(o, n), i.toLocaleString(this.getLocation(), o);
|
|
1075
1130
|
}
|
|
1076
1131
|
relative(e, t, n) {
|
|
1077
|
-
let r =
|
|
1132
|
+
let r = M(e), i = n || /* @__PURE__ */ new Date(), a = {
|
|
1078
1133
|
numeric: "auto",
|
|
1079
1134
|
...typeof t == "string" ? { style: t } : t || {}
|
|
1080
1135
|
}, o = "second", s = (r.getTime() - i.getTime()) / 1e3;
|
|
1081
1136
|
return Math.abs(s) >= 60 && (o = "minute", s /= 60, Math.abs(s) >= 60 && (o = "hour", s /= 60, Math.abs(s) >= 24 && (o = "day", s /= 24, Math.abs(s) >= 30 && (o = "month", s /= 30, Math.abs(s) >= 12 && (o = "year", s /= 12))))), this.relativeByValue(s, o, a);
|
|
1082
1137
|
}
|
|
1083
1138
|
relativeLimit(e, t, n, r, i, a, o) {
|
|
1084
|
-
let s =
|
|
1139
|
+
let s = M(e), c = n || /* @__PURE__ */ new Date(), l = new Date(c), u = new Date(c);
|
|
1085
1140
|
return l.setDate(c.getDate() - t), u.setDate(c.getDate() + t), s >= l && s <= u ? this.relative(s, r, c) : this.date(s, a, i, o);
|
|
1086
1141
|
}
|
|
1087
1142
|
relativeByValue(e, t, n) {
|
|
@@ -1098,7 +1153,7 @@ var P = class e {
|
|
|
1098
1153
|
}
|
|
1099
1154
|
month(e, t) {
|
|
1100
1155
|
try {
|
|
1101
|
-
if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { month: t || "long" }).format(
|
|
1156
|
+
if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { month: t || "long" }).format(M(e));
|
|
1102
1157
|
} catch (e) {
|
|
1103
1158
|
console.error("month: ", e);
|
|
1104
1159
|
}
|
|
@@ -1124,7 +1179,7 @@ var P = class e {
|
|
|
1124
1179
|
}
|
|
1125
1180
|
weekday(e, t) {
|
|
1126
1181
|
try {
|
|
1127
|
-
if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }).format(
|
|
1182
|
+
if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }).format(M(e));
|
|
1128
1183
|
} catch (e) {
|
|
1129
1184
|
console.error("weekday: ", e);
|
|
1130
1185
|
}
|
|
@@ -1214,12 +1269,12 @@ var P = class e {
|
|
|
1214
1269
|
"second"
|
|
1215
1270
|
].indexOf(e) !== -1 && (n.second = "2-digit")), n;
|
|
1216
1271
|
}
|
|
1217
|
-
},
|
|
1272
|
+
}, Ae = {}, je = class e {
|
|
1218
1273
|
constructor(e, t = "date", n = S.getLocation()) {
|
|
1219
|
-
y(this, "date", void 0), y(this, "hour24", !1), y(this, "watch", void 0), this.type = t, this.code = n, this.date =
|
|
1274
|
+
y(this, "date", void 0), y(this, "hour24", !1), y(this, "watch", void 0), this.type = t, this.code = n, this.date = M(e);
|
|
1220
1275
|
}
|
|
1221
1276
|
getIntl() {
|
|
1222
|
-
return new
|
|
1277
|
+
return new N(this.code);
|
|
1223
1278
|
}
|
|
1224
1279
|
getDate() {
|
|
1225
1280
|
return this.date;
|
|
@@ -1322,7 +1377,7 @@ var P = class e {
|
|
|
1322
1377
|
].indexOf(this.type) !== -1 && (i = n.locale("time"))), `${r.join("-")}${i ? `T${i}${t ? n.getTimeZone() : ""}` : ""}`;
|
|
1323
1378
|
}
|
|
1324
1379
|
setDate(e) {
|
|
1325
|
-
return this.date =
|
|
1380
|
+
return this.date = M(e), this.update(), this;
|
|
1326
1381
|
}
|
|
1327
1382
|
setType(e) {
|
|
1328
1383
|
return this.type = e, this.update(), this;
|
|
@@ -1478,29 +1533,29 @@ var P = class e {
|
|
|
1478
1533
|
};
|
|
1479
1534
|
//#endregion
|
|
1480
1535
|
//#region src/functions/anyToString.ts
|
|
1481
|
-
function
|
|
1536
|
+
function P(e, t = !0) {
|
|
1482
1537
|
var r;
|
|
1483
1538
|
return l(e) ? e.trim() : a(e) && e.findIndex((e) => n(e)) === -1 && t ? e.join(",") : n(e) ? JSON.stringify(e) : e === !0 ? "1" : e === !1 ? "0" : (r = e == null ? void 0 : e.toString()) == null ? "" : r;
|
|
1484
1539
|
}
|
|
1485
1540
|
//#endregion
|
|
1486
1541
|
//#region src/functions/strSplit.ts
|
|
1487
|
-
function
|
|
1488
|
-
let r =
|
|
1542
|
+
function Me(e, t, n) {
|
|
1543
|
+
let r = P(e);
|
|
1489
1544
|
if (!n || n <= 0) return r.split(t);
|
|
1490
1545
|
let i = r.split(t, n), a = r.split(t);
|
|
1491
1546
|
return i.length === a.length ? i : (i.pop(), [...i, a.slice(n - 1).join(t)]);
|
|
1492
1547
|
}
|
|
1493
1548
|
//#endregion
|
|
1494
1549
|
//#region src/functions/getItemByPath.ts
|
|
1495
|
-
function
|
|
1550
|
+
function F(e, t) {
|
|
1496
1551
|
var r;
|
|
1497
1552
|
if (!s(t)) return;
|
|
1498
|
-
let i =
|
|
1499
|
-
return a && e != null && e[a] && n(e[a]) && i != null && i[1] ?
|
|
1553
|
+
let i = Me(t, ".", 2), a = i[0];
|
|
1554
|
+
return a && e != null && e[a] && n(e[a]) && i != null && i[1] ? F(e[a], i[1]) : (r = s(a) && (e == null ? void 0 : e[a])) == null ? void 0 : r;
|
|
1500
1555
|
}
|
|
1501
1556
|
//#endregion
|
|
1502
1557
|
//#region src/functions/toCamelCase.ts
|
|
1503
|
-
function
|
|
1558
|
+
function I(e) {
|
|
1504
1559
|
return e.toString().trim().replace(/[^\w-. ]+/g, "").replace(/[ .]+/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (e) => `${e.toLowerCase()}`).replace(/-+([a-zA-Z0-9])/g, (...e) => `${String(e[1]).toUpperCase()}`).replace(/^([A-Z])/, (e) => `${e.toLowerCase()}`);
|
|
1505
1560
|
}
|
|
1506
1561
|
//#endregion
|
|
@@ -1539,7 +1594,7 @@ var L = /* @__PURE__ */ function(e) {
|
|
|
1539
1594
|
getFormatData(e) {
|
|
1540
1595
|
let t = {};
|
|
1541
1596
|
return r(this.options, (n, r) => {
|
|
1542
|
-
let i = `${
|
|
1597
|
+
let i = `${I(r)}Format`, a = F(e, r);
|
|
1543
1598
|
n != null && n.transformation ? s(a) ? t[i] = n.transformation(a, e, n.options) : t[i] = "" : t[i] = this.transformation(a, e, n.type, n.options);
|
|
1544
1599
|
}), t;
|
|
1545
1600
|
}
|
|
@@ -1557,25 +1612,25 @@ var L = /* @__PURE__ */ function(e) {
|
|
|
1557
1612
|
}
|
|
1558
1613
|
formatCurrency(e, t, n) {
|
|
1559
1614
|
var r;
|
|
1560
|
-
let i = n != null && n.currencyPropName ?
|
|
1561
|
-
return
|
|
1615
|
+
let i = n != null && n.currencyPropName ? F(t, n.currencyPropName) : t == null ? void 0 : t.currency;
|
|
1616
|
+
return N.getInstance().currency(e, (r = n == null ? void 0 : n.options) == null ? i : r, n == null ? void 0 : n.numberOnly);
|
|
1562
1617
|
}
|
|
1563
1618
|
formatDate(e, t) {
|
|
1564
|
-
return
|
|
1619
|
+
return N.getInstance().date(e, t == null ? void 0 : t.type, t == null ? void 0 : t.options, t == null ? void 0 : t.hour24);
|
|
1565
1620
|
}
|
|
1566
1621
|
formatName(e, t) {
|
|
1567
1622
|
var n, r, i;
|
|
1568
|
-
let a =
|
|
1569
|
-
return a && o ?
|
|
1623
|
+
let a = F(e, (n = t == null ? void 0 : t.lastPropName) == null ? "lastName" : n), o = F(e, (r = t == null ? void 0 : t.firstPropName) == null ? "firstName" : r), s = F(e, (i = t == null ? void 0 : t.surname) == null ? "surname" : i);
|
|
1624
|
+
return a && o ? N.getInstance().fullName(a, o, s, t == null ? void 0 : t.short) : "";
|
|
1570
1625
|
}
|
|
1571
1626
|
formatNumber(e, t) {
|
|
1572
|
-
return
|
|
1627
|
+
return N.getInstance().number(e, t == null ? void 0 : t.options);
|
|
1573
1628
|
}
|
|
1574
1629
|
formatPlural(e, t) {
|
|
1575
|
-
return t && t.words ?
|
|
1630
|
+
return t && t.words ? N.getInstance().plural(e, t == null ? void 0 : t.words, t == null ? void 0 : t.options, t == null ? void 0 : t.optionsNumber) : e;
|
|
1576
1631
|
}
|
|
1577
1632
|
formatUnit(e, t) {
|
|
1578
|
-
return t && t.unit ?
|
|
1633
|
+
return t && t.unit ? N.getInstance().unit(e, t.unit) : e;
|
|
1579
1634
|
}
|
|
1580
1635
|
}, Pe = "f", Fe = class e {
|
|
1581
1636
|
constructor(e = S.getLocation()) {
|
|
@@ -1618,7 +1673,7 @@ var L = /* @__PURE__ */ function(e) {
|
|
|
1618
1673
|
return this.code = e, this;
|
|
1619
1674
|
}
|
|
1620
1675
|
getLocation() {
|
|
1621
|
-
return new
|
|
1676
|
+
return new N(this.code);
|
|
1622
1677
|
}
|
|
1623
1678
|
getCodes(t) {
|
|
1624
1679
|
return t == null ? Object.keys(e.flags) : t;
|
|
@@ -2009,7 +2064,7 @@ var B, Ie = class {
|
|
|
2009
2064
|
}
|
|
2010
2065
|
static getLocation() {
|
|
2011
2066
|
let e = {};
|
|
2012
|
-
return location.hash.replace(/([\w-]+)[:=]([^;]+)/gi, (...t) => (e[String(t[1])] =
|
|
2067
|
+
return location.hash.replace(/([\w-]+)[:=]([^;]+)/gi, (...t) => (e[String(t[1])] = we(t[2]), "")), e;
|
|
2013
2068
|
}
|
|
2014
2069
|
static update() {
|
|
2015
2070
|
this.block = !0, history.replaceState(null, "", `#${i(this.hash, "=", ";")}`), requestAnimationFrame(() => {
|
|
@@ -2039,7 +2094,7 @@ var Le, Re = "__UI_ICON", ze = 320, Be = "--LOAD--", U = class {
|
|
|
2039
2094
|
return r(this.icons, (e, t) => t.replace(/^@/, ""));
|
|
2040
2095
|
}
|
|
2041
2096
|
static getUrlGlobal() {
|
|
2042
|
-
return `${
|
|
2097
|
+
return `${k.isLocalhost(), ""}${this.url}`;
|
|
2043
2098
|
}
|
|
2044
2099
|
static add(e, t) {
|
|
2045
2100
|
this.icons[this.getName(e)] = t;
|
|
@@ -2441,8 +2496,8 @@ var nt = class {
|
|
|
2441
2496
|
toFormatItem(e, t) {
|
|
2442
2497
|
let n = {};
|
|
2443
2498
|
return this.columns && this.columns.forEach((r) => {
|
|
2444
|
-
let i = this.getColumnName(r), a =
|
|
2445
|
-
n[i] = s(a) && t ? this.addTag(a) :
|
|
2499
|
+
let i = this.getColumnName(r), a = F(e, r);
|
|
2500
|
+
n[i] = s(a) && t ? this.addTag(a) : P(a);
|
|
2446
2501
|
}), {
|
|
2447
2502
|
...e,
|
|
2448
2503
|
...n,
|
|
@@ -2453,7 +2508,7 @@ var nt = class {
|
|
|
2453
2508
|
return e.replace(/\.([a-z0-9])/gi, (e, t) => t.toUpperCase()) + "Search";
|
|
2454
2509
|
}
|
|
2455
2510
|
addTag(e) {
|
|
2456
|
-
return tt(
|
|
2511
|
+
return tt(P(e), this.item.get(), this.options.getClassName());
|
|
2457
2512
|
}
|
|
2458
2513
|
generateCache() {
|
|
2459
2514
|
if (!this.isList()) return [];
|
|
@@ -2461,8 +2516,8 @@ var nt = class {
|
|
|
2461
2516
|
for (let t of this.list) {
|
|
2462
2517
|
let n = "";
|
|
2463
2518
|
if (this.columns) for (let e of this.columns) {
|
|
2464
|
-
let r =
|
|
2465
|
-
s(r) && (n += ` ${
|
|
2519
|
+
let r = F(t, e);
|
|
2520
|
+
s(r) && (n += ` ${P(r)}`);
|
|
2466
2521
|
}
|
|
2467
2522
|
e.push({
|
|
2468
2523
|
item: t,
|
|
@@ -2677,7 +2732,7 @@ var Q = class e {
|
|
|
2677
2732
|
static async get(e, t) {
|
|
2678
2733
|
var n;
|
|
2679
2734
|
let r = this.getText(e);
|
|
2680
|
-
return r ? this.replacement(r, t) : (
|
|
2735
|
+
return r ? this.replacement(r, t) : (k.isLocalhost() || await this.add(e), this.replacement((n = this.getText(e)) == null ? e : n));
|
|
2681
2736
|
}
|
|
2682
2737
|
static getSync(e, t = !1, n) {
|
|
2683
2738
|
let r = this.getText(e);
|
|
@@ -2717,7 +2772,7 @@ var Q = class e {
|
|
|
2717
2772
|
});
|
|
2718
2773
|
}
|
|
2719
2774
|
static async addNormalOrSync(e) {
|
|
2720
|
-
if (s(e)) if (
|
|
2775
|
+
if (s(e)) if (k.isLocalhost()) this.addSync(e);
|
|
2721
2776
|
else {
|
|
2722
2777
|
let t = Object.keys(e);
|
|
2723
2778
|
t.length > 0 && await this.add(t);
|
|
@@ -2768,7 +2823,7 @@ var Q = class e {
|
|
|
2768
2823
|
}), t;
|
|
2769
2824
|
}
|
|
2770
2825
|
static async getResponse() {
|
|
2771
|
-
let e = await
|
|
2826
|
+
let e = await k.get({
|
|
2772
2827
|
api: !1,
|
|
2773
2828
|
path: this.url,
|
|
2774
2829
|
request: { [this.propsName]: this.cache },
|
|
@@ -2883,11 +2938,11 @@ async function Tt(e) {
|
|
|
2883
2938
|
//#endregion
|
|
2884
2939
|
//#region src/functions/getCurrentDate.ts
|
|
2885
2940
|
function Et(e = "datetime") {
|
|
2886
|
-
return new
|
|
2941
|
+
return new je(void 0, e).standard();
|
|
2887
2942
|
}
|
|
2888
2943
|
//#endregion
|
|
2889
2944
|
//#region src/functions/getElementId.ts
|
|
2890
|
-
var Dt =
|
|
2945
|
+
var Dt = O(1e5, 9e5);
|
|
2891
2946
|
function Ot(e, t) {
|
|
2892
2947
|
let n = C(e);
|
|
2893
2948
|
return n ? (s(n.id) || n.setAttribute("id", `id-${Dt++}`), t ? `#${n.id}${t}`.trim() : n.id) : `id-${Dt++}`;
|
|
@@ -2962,8 +3017,8 @@ function zt(e, t) {
|
|
|
2962
3017
|
//#endregion
|
|
2963
3018
|
//#region src/functions/getRandomText.ts
|
|
2964
3019
|
function Bt(e, t, n = "#", r = 2, i = 12) {
|
|
2965
|
-
let a =
|
|
2966
|
-
for (let e = 0; e < a; e++) o.push(zt(n,
|
|
3020
|
+
let a = O(e, t), o = [];
|
|
3021
|
+
for (let e = 0; e < a; e++) o.push(zt(n, O(r, i)));
|
|
2967
3022
|
return o.join(" ");
|
|
2968
3023
|
}
|
|
2969
3024
|
//#endregion
|
|
@@ -3025,13 +3080,28 @@ function Kt(e, t, n = "smooth") {
|
|
|
3025
3080
|
});
|
|
3026
3081
|
}
|
|
3027
3082
|
//#endregion
|
|
3083
|
+
//#region src/functions/isShare.ts
|
|
3084
|
+
function qt() {
|
|
3085
|
+
return d() && typeof navigator < "u" && !!navigator.share;
|
|
3086
|
+
}
|
|
3087
|
+
//#endregion
|
|
3088
|
+
//#region src/functions/handleShare.ts
|
|
3089
|
+
async function Jt(e) {
|
|
3090
|
+
if (qt() && navigator.canShare && navigator.canShare(e)) try {
|
|
3091
|
+
return await navigator.share(e), !0;
|
|
3092
|
+
} catch (e) {
|
|
3093
|
+
console.error("handleShare error:", e);
|
|
3094
|
+
}
|
|
3095
|
+
return !1;
|
|
3096
|
+
}
|
|
3097
|
+
//#endregion
|
|
3028
3098
|
//#region src/functions/inArray.ts
|
|
3029
|
-
function
|
|
3099
|
+
function Yt(e, t) {
|
|
3030
3100
|
return e.indexOf(t) !== -1;
|
|
3031
3101
|
}
|
|
3032
3102
|
//#endregion
|
|
3033
3103
|
//#region src/functions/initScrollbarOffset.ts
|
|
3034
|
-
async function
|
|
3104
|
+
async function Xt() {
|
|
3035
3105
|
if (d()) {
|
|
3036
3106
|
let e = await Y.get();
|
|
3037
3107
|
document.body.style.setProperty("--sys-scrollbar-offset", `${e}px`);
|
|
@@ -3039,7 +3109,7 @@ async function Jt() {
|
|
|
3039
3109
|
}
|
|
3040
3110
|
//#endregion
|
|
3041
3111
|
//#region src/functions/intersectKey.ts
|
|
3042
|
-
function
|
|
3112
|
+
function Zt(e, t) {
|
|
3043
3113
|
let i = {};
|
|
3044
3114
|
return n(e) && n(t) && r(e, (e, n) => {
|
|
3045
3115
|
n in t && (i[n] = e);
|
|
@@ -3047,30 +3117,39 @@ function Yt(e, t) {
|
|
|
3047
3117
|
}
|
|
3048
3118
|
//#endregion
|
|
3049
3119
|
//#region src/functions/isApiSuccess.ts
|
|
3050
|
-
var
|
|
3120
|
+
var Qt = (e) => {
|
|
3051
3121
|
var t;
|
|
3052
|
-
return a(e) ? !0 : !!(e && c(e) && ((e == null ? void 0 : e.status) === "success" || e != null && e.success || !(e == null || (t = e.statusObject) == null) && t.status && String(e.statusObject.status).match(/^2/) || !("status" in e) && !("success" in e) && !("statusObject" in e) && String(
|
|
3122
|
+
return a(e) ? !0 : !!(e && c(e) && ((e == null ? void 0 : e.status) === "success" || e != null && e.success || !(e == null || (t = e.statusObject) == null) && t.status && String(e.statusObject.status).match(/^2/) || !("status" in e) && !("success" in e) && !("statusObject" in e) && String(k.getStatus().getStatus()).match(/^2/)));
|
|
3053
3123
|
};
|
|
3054
3124
|
//#endregion
|
|
3055
3125
|
//#region src/functions/isDifferent.ts
|
|
3056
|
-
function
|
|
3126
|
+
function $t(e, t) {
|
|
3057
3127
|
let n = Object.keys(e).length !== Object.keys(t).length;
|
|
3058
3128
|
return n || r(e, (e, r) => {
|
|
3059
3129
|
e !== (t == null ? void 0 : t[r]) && (n = !0);
|
|
3060
3130
|
}), n;
|
|
3061
3131
|
}
|
|
3062
3132
|
//#endregion
|
|
3133
|
+
//#region src/functions/isElementVisible.ts
|
|
3134
|
+
function en(e) {
|
|
3135
|
+
if (!d()) return !1;
|
|
3136
|
+
let t = C(e);
|
|
3137
|
+
if (!t || "isConnected" in t && t.isConnected === !1) return !1;
|
|
3138
|
+
let n = window.getComputedStyle(t);
|
|
3139
|
+
return n.display !== "none" && n.visibility !== "hidden" && n.opacity !== "0" && t.offsetWidth !== 0 && t.offsetHeight !== 0;
|
|
3140
|
+
}
|
|
3141
|
+
//#endregion
|
|
3063
3142
|
//#region src/functions/isInput.ts
|
|
3064
|
-
var
|
|
3143
|
+
var tn = (e) => {
|
|
3065
3144
|
if (e instanceof HTMLElement) {
|
|
3066
3145
|
let t = e.tagName.toLowerCase();
|
|
3067
3146
|
return !!(t === "input" || t === "textarea" || t === "select" || e.isContentEditable || e.getAttribute("contenteditable") === "true");
|
|
3068
3147
|
}
|
|
3069
3148
|
return !1;
|
|
3070
|
-
},
|
|
3149
|
+
}, nn = (e, t) => e.code === "Space" || e.code === "Enter" || e.key === " " || e.key === "Spacebar" || e.key === "Enter" || e.keyCode === 13 || e.keyCode === 32 ? t === void 0 ? !tn(e.target) : !t : !1;
|
|
3071
3150
|
//#endregion
|
|
3072
3151
|
//#region src/functions/isFloat.ts
|
|
3073
|
-
function
|
|
3152
|
+
function rn(e) {
|
|
3074
3153
|
switch (typeof e) {
|
|
3075
3154
|
case "number": return !0;
|
|
3076
3155
|
case "string": return !!e.match(/^([0-9]+|[0-9]+\.[0-9]+)$/);
|
|
@@ -3079,18 +3158,18 @@ function en(e) {
|
|
|
3079
3158
|
}
|
|
3080
3159
|
//#endregion
|
|
3081
3160
|
//#region src/functions/isIntegerBetween.ts
|
|
3082
|
-
function
|
|
3161
|
+
function an(e, t) {
|
|
3083
3162
|
let n = Math.floor(t);
|
|
3084
3163
|
return e >= n && e < n + 1;
|
|
3085
3164
|
}
|
|
3086
3165
|
//#endregion
|
|
3087
3166
|
//#region src/functions/isSelectedByList.ts
|
|
3088
|
-
function
|
|
3167
|
+
function on(e, t) {
|
|
3089
3168
|
return Array.isArray(e) ? e.every((e) => m(e, t)) : m(e, t);
|
|
3090
3169
|
}
|
|
3091
3170
|
//#endregion
|
|
3092
3171
|
//#region src/functions/removeCommonPrefix.ts
|
|
3093
|
-
function
|
|
3172
|
+
function sn(e, t) {
|
|
3094
3173
|
if (e.startsWith(t)) return e.slice(t.length).trim();
|
|
3095
3174
|
let n = 0;
|
|
3096
3175
|
for (; e[n] === t[n] && n < e.length && n < t.length;) n++;
|
|
@@ -3098,13 +3177,13 @@ function rn(e, t) {
|
|
|
3098
3177
|
}
|
|
3099
3178
|
//#endregion
|
|
3100
3179
|
//#region src/functions/replaceComponentName.ts
|
|
3101
|
-
var
|
|
3180
|
+
var cn = (e, t, n) => {
|
|
3102
3181
|
var r;
|
|
3103
3182
|
return e == null || (r = e.replace(RegExp(`<${t}`, "ig"), `<${n}`)) == null || (r = r.replace(RegExp(`</${t}`, "ig"), `</${n}`)) == null ? void 0 : r.trim();
|
|
3104
3183
|
};
|
|
3105
3184
|
//#endregion
|
|
3106
3185
|
//#region src/functions/uniqueArray.ts
|
|
3107
|
-
function
|
|
3186
|
+
function ln(e) {
|
|
3108
3187
|
return [...new Set(e)];
|
|
3109
3188
|
}
|
|
3110
3189
|
//#endregion
|
|
@@ -3113,12 +3192,12 @@ function $(e, t, i = !0) {
|
|
|
3113
3192
|
let a = u(e);
|
|
3114
3193
|
return n(e) && n(t) && r(t, (t, r) => {
|
|
3115
3194
|
let o = e == null ? void 0 : e[r];
|
|
3116
|
-
n(o) && n(t) ? i && Array.isArray(o) && Array.isArray(t) ? a[r] = u(
|
|
3195
|
+
n(o) && n(t) ? i && Array.isArray(o) && Array.isArray(t) ? a[r] = u(ln([...o, ...t])) : a[r] = $(Array.isArray(o) ? { ...o } : o, t, i) : a[r] = n(t) ? u(t) : t;
|
|
3117
3196
|
}), a;
|
|
3118
3197
|
}
|
|
3119
3198
|
//#endregion
|
|
3120
3199
|
//#region src/functions/replaceTemplate.ts
|
|
3121
|
-
function
|
|
3200
|
+
function un(e, t) {
|
|
3122
3201
|
let n = e;
|
|
3123
3202
|
return r(t, (e, t) => {
|
|
3124
3203
|
n = n.replace(it(`[${t}]`), g(e));
|
|
@@ -3126,13 +3205,13 @@ function sn(e, t) {
|
|
|
3126
3205
|
}
|
|
3127
3206
|
//#endregion
|
|
3128
3207
|
//#region src/functions/secondToTime.ts
|
|
3129
|
-
function
|
|
3208
|
+
function dn(e) {
|
|
3130
3209
|
let t = p(e);
|
|
3131
3210
|
return t > 0 ? `${String(Math.floor(t / 60)).padStart(2, "0")}:${String(t % 60).padStart(2, "0")}` : "00:00";
|
|
3132
3211
|
}
|
|
3133
3212
|
//#endregion
|
|
3134
3213
|
//#region src/functions/setValues.ts
|
|
3135
|
-
function
|
|
3214
|
+
function fn(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: i = !0, notEmpty: o = !1 }) {
|
|
3136
3215
|
if (n) {
|
|
3137
3216
|
if (a(e)) {
|
|
3138
3217
|
let n = e.indexOf(t), i = [...e];
|
|
@@ -3144,7 +3223,7 @@ function ln(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: i = !0, no
|
|
|
3144
3223
|
}
|
|
3145
3224
|
//#endregion
|
|
3146
3225
|
//#region src/functions/splice.ts
|
|
3147
|
-
function
|
|
3226
|
+
function pn(e, t, i) {
|
|
3148
3227
|
if (n(e) && n(t)) {
|
|
3149
3228
|
if (i) {
|
|
3150
3229
|
let a = {}, o = !1;
|
|
@@ -3158,34 +3237,34 @@ function un(e, t, i) {
|
|
|
3158
3237
|
}
|
|
3159
3238
|
//#endregion
|
|
3160
3239
|
//#region src/functions/toCamelCaseFirst.ts
|
|
3161
|
-
function
|
|
3162
|
-
return
|
|
3240
|
+
function mn(e) {
|
|
3241
|
+
return I(e).replace(/^([a-z])/, (e) => `${e.toUpperCase()}`);
|
|
3163
3242
|
}
|
|
3164
3243
|
//#endregion
|
|
3165
3244
|
//#region src/functions/toKebabCase.ts
|
|
3166
|
-
function
|
|
3245
|
+
function hn(e) {
|
|
3167
3246
|
return e.toString().trim().replace(/[^\w-. ]+/g, "").replace(/[ .]+/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (e) => `${e.toLowerCase()}`).replace(/^[A-Z]/, (e) => e.toLowerCase()).replace(/(?<=[\w ])[A-Z]/g, (e) => `-${e.toLowerCase()}`).replace(/[A-Z]/g, (e) => e.toLowerCase());
|
|
3168
3247
|
}
|
|
3169
3248
|
//#endregion
|
|
3170
3249
|
//#region src/functions/toNumberByMax.ts
|
|
3171
|
-
function
|
|
3250
|
+
function gn(e, t, n, r) {
|
|
3172
3251
|
let i = p(e), a = p(t);
|
|
3173
|
-
return t && a < i ? `${
|
|
3252
|
+
return t && a < i ? `${_n(a, n, r)}+` : _n(i, n, r);
|
|
3174
3253
|
}
|
|
3175
|
-
var
|
|
3254
|
+
var _n = (e, t, n) => t ? new N(n).number(e) : e;
|
|
3176
3255
|
//#endregion
|
|
3177
3256
|
//#region src/functions/toPercent.ts
|
|
3178
|
-
function
|
|
3257
|
+
function vn(e, t) {
|
|
3179
3258
|
return 1 / e * t;
|
|
3180
3259
|
}
|
|
3181
3260
|
//#endregion
|
|
3182
3261
|
//#region src/functions/toPercentBy100.ts
|
|
3183
|
-
function
|
|
3184
|
-
return
|
|
3262
|
+
function yn(e, t) {
|
|
3263
|
+
return vn(e, t) * 100;
|
|
3185
3264
|
}
|
|
3186
3265
|
//#endregion
|
|
3187
3266
|
//#region src/functions/uint8ArrayToBase64.ts
|
|
3188
|
-
function
|
|
3267
|
+
function bn(e) {
|
|
3189
3268
|
let t = "";
|
|
3190
3269
|
for (let n of e) t += String.fromCharCode(n);
|
|
3191
3270
|
if (d()) return window.btoa(t);
|
|
@@ -3197,7 +3276,7 @@ function _n(e) {
|
|
|
3197
3276
|
}
|
|
3198
3277
|
//#endregion
|
|
3199
3278
|
//#region src/functions/writeClipboardData.ts
|
|
3200
|
-
async function
|
|
3279
|
+
async function xn(e) {
|
|
3201
3280
|
if (d()) try {
|
|
3202
3281
|
await navigator.clipboard.writeText(e);
|
|
3203
3282
|
} catch (n) {
|
|
@@ -3206,4 +3285,4 @@ async function vn(e) {
|
|
|
3206
3285
|
}
|
|
3207
3286
|
}
|
|
3208
3287
|
//#endregion
|
|
3209
|
-
export {
|
|
3288
|
+
export { k as Api, fe as ApiDefault, de as ApiHeaders, _e as ApiInstance, E as ApiMethodItem, ge as ApiPreparation, he as ApiResponse, D as ApiStatus, ve as BroadcastMessage, xe as Cache, be as CacheItem, Ce as CacheStatic, Oe as Cookie, Ee as CookieBlock, b as DataStorage, je as Datetime, ce as EventItem, Ne as Formatters, L as FormattersType, Pe as GEO_FLAG_ICON_NAME, S as Geo, Fe as GeoFlag, N as GeoIntl, z as GeoPhone, Ie as Global, H as Hash, U as Icons, T as Loading, $e as Meta, G as MetaManager, Ze as MetaOg, Je as MetaOpenGraphAge, Ke as MetaOpenGraphAvailability, qe as MetaOpenGraphCondition, Ye as MetaOpenGraphGender, q as MetaOpenGraphTag, Ge as MetaOpenGraphType, We as MetaRobots, K as MetaTag, Qe as MetaTwitter, Xe as MetaTwitterCard, J as MetaTwitterTag, Y as ScrollbarWidth, lt as SearchList, nt as SearchListData, rt as SearchListItem, st as SearchListMatcher, ct as SearchListOptions, ft as TRANSLATE_GLOBAL_PREFIX, pt as TRANSLATE_TIME_OUT, Q as Translate, Z as TranslateFile, tt as addTagHighlightMatch, P as anyToString, dt as applyTemplate, mt as arrFill, ht as blobToBase64, u as copyObject, t as copyObjectLite, W as createElement, gt as domQuerySelector, _t as domQuerySelectorAll, Ue as encodeAttribute, xt as ensureMaxSize, X as escapeExp, St as eventStopPropagation, g as executeFunction, pe as executePromise, r as forEach, Ct as frame, wt as getAttributes, Tt as getClipboardData, ke as getColumn, Et as getCurrentDate, C as getElement, Ot as getElementId, vt as getElementImage, Ve as getElementItem, oe as getElementOrWindow, at as getExactSearchExp, it as getExp, F as getItemByPath, kt as getKey, At as getLengthOfAllArray, jt as getMaxLengthAllArray, Mt as getMinLengthAllArray, Ft as getMouseClient, Nt as getMouseClientX, Pt as getMouseClientY, It as getObjectByKeys, Lt as getObjectNoUndefined, Rt as getObjectOrNone, Bt as getRandomText, i as getRequestString, ot as getSearchExp, et as getSeparatingSearchExp, Vt as getStepPercent, Ht as getStepValue, Wt as goScroll, Gt as goScrollSmooth, Kt as goScrollTo, Jt as handleShare, Yt as inArray, Xt as initScrollbarOffset, Zt as intersectKey, Qt as isApiSuccess, a as isArray, $t as isDifferent, _ as isDomData, d as isDomRuntime, en as isElementVisible, nn as isEnter, s as isFilled, rn as isFloat, h as isFunction, se as isInDom, tn as isInput, an as isIntegerBetween, o as isNull, f as isNumber, n as isObject, c as isObjectNotArray, m as isSelected, on as isSelectedByList, qt as isShare, l as isString, ae as isWindow, O as random, sn as removeCommonPrefix, cn as replaceComponentName, $ as replaceRecursive, un as replaceTemplate, bt as resizeImageByMax, dn as secondToTime, He as setElementItem, fn as setValues, pn as splice, zt as strFill, Me as strSplit, w as toArray, I as toCamelCase, mn as toCamelCaseFirst, M as toDate, hn as toKebabCase, p as toNumber, gn as toNumberByMax, vn as toPercent, yn as toPercentBy100, we as transformation, bn as uint8ArrayToBase64, ln as uniqueArray, xn as writeClipboardData };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxtmisha/functional-basic",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.12.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Foundational utility library for modern web development — HTTP client, geolocation, i18n, SEO meta tags, caching, storage, DOM utilities, and more. Framework-agnostic, zero dependencies, TypeScript-first.",
|
|
7
7
|
"keywords": [
|
|
@@ -81,5 +81,6 @@
|
|
|
81
81
|
},
|
|
82
82
|
"peerDependenciesMeta": {},
|
|
83
83
|
"dependencies": {},
|
|
84
|
-
"devDependencies": {}
|
|
84
|
+
"devDependencies": {},
|
|
85
|
+
"sideEffects": false
|
|
85
86
|
}
|