jk-vue-comps 0.2.2 → 0.2.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/chunks/index-CHtnAuFs.js +174 -0
- package/dist/components/GoogleAuth.d.ts +55 -71
- package/dist/components/GoogleAuth.js +41 -35
- package/dist/components/TelegramAuth.d.ts +47 -55
- package/dist/components/TelegramAuth.js +45 -40
- package/dist/index.d.ts +80 -102
- package/dist/index.js +52 -46
- package/dist/utils/index.js +54 -48
- package/dist/utils/math.d.ts +6 -0
- package/dist/utils/math.js +213 -206
- package/dist/utils/vuePropTypes.d.ts +9 -51
- package/dist/utils/vuePropTypes.js +23 -21
- package/package.json +15 -15
- package/dist/chunks/index-CAW2nf5W.js +0 -168
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { a as w } from "../chunks/index-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
function s(t, a) {
|
|
1
|
+
import { defineComponent as f, computed as p, onMounted as g, createVNode as h } from "vue";
|
|
2
|
+
import { a as w } from "../chunks/index-CHtnAuFs.js";
|
|
3
|
+
import { withInstall as b } from "../utils/withInstall.js";
|
|
4
|
+
import { isInMobileBrowser as l } from "../utils/is.js";
|
|
5
|
+
function u(t, a) {
|
|
7
6
|
if (!t || !a) return;
|
|
8
7
|
const c = encodeURIComponent(w()), r = encodeURIComponent(a), n = `https://oauth.telegram.org/auth?bot_id=${t}&origin=${c}&embed=1&request_access=write&return_to=${c}${r}`;
|
|
9
8
|
window.location.href = n;
|
|
10
9
|
}
|
|
11
|
-
function
|
|
10
|
+
function C() {
|
|
12
11
|
const t = /[#\?\&]tgAuthResult=([A-Za-z0-9\-_=]*)$/;
|
|
13
12
|
try {
|
|
14
13
|
const a = window.location.hash.toString(), c = a.match(t);
|
|
@@ -22,83 +21,89 @@ function _() {
|
|
|
22
21
|
return null;
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
|
-
const
|
|
26
|
-
botId:
|
|
27
|
-
toPath:
|
|
28
|
-
defaultLoad:
|
|
29
|
-
getPopupContainer:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
const _ = {
|
|
25
|
+
botId: Number,
|
|
26
|
+
toPath: String,
|
|
27
|
+
defaultLoad: Boolean,
|
|
28
|
+
getPopupContainer: {
|
|
29
|
+
type: Function
|
|
30
|
+
},
|
|
31
|
+
onCallback: {
|
|
32
|
+
type: Function
|
|
33
|
+
},
|
|
34
|
+
onRejectCallback: {
|
|
35
|
+
type: Function
|
|
36
|
+
}
|
|
37
|
+
}, y = /* @__PURE__ */ f({
|
|
33
38
|
name: "TelegramAuth",
|
|
34
|
-
toTelegramAuth:
|
|
35
|
-
getTelegramAuthUrlParams:
|
|
36
|
-
props:
|
|
39
|
+
toTelegramAuth: u,
|
|
40
|
+
getTelegramAuthUrlParams: C,
|
|
41
|
+
props: _,
|
|
37
42
|
slots: Object,
|
|
38
43
|
setup(t, {
|
|
39
44
|
slots: a,
|
|
40
45
|
expose: c
|
|
41
46
|
}) {
|
|
42
|
-
const r =
|
|
47
|
+
const r = p(() => ({
|
|
43
48
|
id: t.botId,
|
|
44
49
|
path: t.toPath
|
|
45
50
|
}));
|
|
46
51
|
function n() {
|
|
47
52
|
return window?.Telegram?.Login?.auth;
|
|
48
53
|
}
|
|
49
|
-
function
|
|
54
|
+
function m() {
|
|
50
55
|
return t.getPopupContainer?.() || document.body;
|
|
51
56
|
}
|
|
52
|
-
function
|
|
57
|
+
function s() {
|
|
53
58
|
return new Promise((o) => {
|
|
54
59
|
if (!document) {
|
|
55
60
|
o(!1);
|
|
56
61
|
return;
|
|
57
62
|
}
|
|
58
|
-
if (
|
|
63
|
+
if (l() || n()) {
|
|
59
64
|
o(!0);
|
|
60
65
|
return;
|
|
61
66
|
}
|
|
62
67
|
const e = document.createElement("script");
|
|
63
|
-
e.async = !0, e.defer = !0, e.src = "https://telegram.org/js/telegram-widget.js",
|
|
68
|
+
e.async = !0, e.defer = !0, e.src = "https://telegram.org/js/telegram-widget.js", m()?.appendChild?.(e), e.onload = () => {
|
|
64
69
|
o(!!n());
|
|
65
70
|
}, e.onerror = () => {
|
|
66
71
|
e.remove(), o(!1);
|
|
67
72
|
};
|
|
68
73
|
});
|
|
69
74
|
}
|
|
70
|
-
async function
|
|
75
|
+
async function d() {
|
|
71
76
|
const {
|
|
72
77
|
id: o,
|
|
73
78
|
path: e
|
|
74
79
|
} = r.value;
|
|
75
|
-
if (!
|
|
76
|
-
|
|
80
|
+
if (!l() && !await s()) {
|
|
81
|
+
u(o || 0, e || "");
|
|
77
82
|
return;
|
|
78
83
|
}
|
|
79
|
-
if (
|
|
80
|
-
|
|
84
|
+
if (l() || !n()) {
|
|
85
|
+
u(o || 0, e || "");
|
|
81
86
|
return;
|
|
82
87
|
}
|
|
83
88
|
n()?.({
|
|
84
89
|
bot_id: o,
|
|
85
90
|
request_access: !0
|
|
86
|
-
}, (
|
|
87
|
-
|
|
91
|
+
}, (i) => {
|
|
92
|
+
i ? t.onCallback?.(i) : t.onRejectCallback?.();
|
|
88
93
|
});
|
|
89
94
|
}
|
|
90
|
-
return
|
|
91
|
-
t.defaultLoad &&
|
|
95
|
+
return g(() => {
|
|
96
|
+
t.defaultLoad && s();
|
|
92
97
|
}), c({
|
|
93
|
-
startCheck:
|
|
94
|
-
}), () =>
|
|
95
|
-
startCheck:
|
|
98
|
+
startCheck: d
|
|
99
|
+
}), () => h("div", null, [a.default?.({
|
|
100
|
+
startCheck: d
|
|
96
101
|
})]);
|
|
97
102
|
}
|
|
98
|
-
}),
|
|
103
|
+
}), U = b(y);
|
|
99
104
|
export {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
105
|
+
U as TelegramAuth,
|
|
106
|
+
U as default,
|
|
107
|
+
C as getTelegramAuthUrlParams,
|
|
108
|
+
u as toTelegramAuth
|
|
104
109
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -82,6 +82,12 @@ declare const JKVUEComps: {
|
|
|
82
82
|
DOWN: 1;
|
|
83
83
|
UP: 0;
|
|
84
84
|
BigNumber: typeof BigNumber;
|
|
85
|
+
gt: typeof Utils.isGreaterThan;
|
|
86
|
+
gte: typeof Utils.isGreaterThanOrEqualTo;
|
|
87
|
+
lt: typeof Utils.isLessThan;
|
|
88
|
+
lte: typeof Utils.isLessThanOrEqualTo;
|
|
89
|
+
eq: typeof Utils.isEqualTo;
|
|
90
|
+
isNan: typeof Utils.isNanValue;
|
|
85
91
|
propTypes: typeof import("./utils/vuePropTypes").default;
|
|
86
92
|
timeZoneOptions: Utils.TimeZoneItem[];
|
|
87
93
|
withInstall<T>(component: T, alias?: string): T & import("vue").Plugin;
|
|
@@ -97,147 +103,119 @@ declare const JKVUEComps: {
|
|
|
97
103
|
useMemo<T>(getValue: () => T, condition: (import("vue").WatchSource<unknown> | object)[], shouldUpdate?: (prev: any[], next: any[]) => boolean): import("vue").Ref<T, T>;
|
|
98
104
|
toGoogleAuth(clientId: string, redirectUri: string): void;
|
|
99
105
|
GoogleAuth: {
|
|
100
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
101
|
-
clientId:
|
|
102
|
-
|
|
106
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<Partial<import("vue").ExtractPropTypes<{
|
|
107
|
+
clientId: StringConstructor;
|
|
108
|
+
redirectUri: StringConstructor;
|
|
109
|
+
defaultLoad: BooleanConstructor;
|
|
110
|
+
getPopupContainer: {
|
|
111
|
+
type: import("vue").PropType<() => HTMLElement | Element>;
|
|
103
112
|
};
|
|
104
|
-
|
|
105
|
-
|
|
113
|
+
onCallback: {
|
|
114
|
+
type: import("vue").PropType<(data: {
|
|
115
|
+
code: string;
|
|
116
|
+
}) => void>;
|
|
106
117
|
};
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
onCallback: import("vue-types").VueTypeValidableDef<(data: {
|
|
110
|
-
code: string;
|
|
111
|
-
}) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(data: {
|
|
112
|
-
code: string;
|
|
113
|
-
}) => void>>;
|
|
114
|
-
onRejectCallback: import("vue-types").VueTypeValidableDef<(error: any) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(error: any) => void>>;
|
|
115
|
-
}>> & Readonly<{}>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
116
|
-
clientId: string;
|
|
117
|
-
redirectUri: string;
|
|
118
|
-
}, true, {}, import("vue").SlotsType<{
|
|
119
|
-
default: {
|
|
120
|
-
startCheck: () => void;
|
|
118
|
+
onRejectCallback: {
|
|
119
|
+
type: import("vue").PropType<(error: any) => void>;
|
|
121
120
|
};
|
|
122
|
-
}>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
121
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
123
122
|
P: {};
|
|
124
123
|
B: {};
|
|
125
124
|
D: {};
|
|
126
125
|
C: {};
|
|
127
126
|
M: {};
|
|
128
127
|
Defaults: {};
|
|
129
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
130
|
-
clientId:
|
|
131
|
-
|
|
128
|
+
}, Readonly<Partial<import("vue").ExtractPropTypes<{
|
|
129
|
+
clientId: StringConstructor;
|
|
130
|
+
redirectUri: StringConstructor;
|
|
131
|
+
defaultLoad: BooleanConstructor;
|
|
132
|
+
getPopupContainer: {
|
|
133
|
+
type: import("vue").PropType<() => HTMLElement | Element>;
|
|
132
134
|
};
|
|
133
|
-
|
|
134
|
-
|
|
135
|
+
onCallback: {
|
|
136
|
+
type: import("vue").PropType<(data: {
|
|
137
|
+
code: string;
|
|
138
|
+
}) => void>;
|
|
135
139
|
};
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(data: {
|
|
141
|
-
code: string;
|
|
142
|
-
}) => void>>;
|
|
143
|
-
onRejectCallback: import("vue-types").VueTypeValidableDef<(error: any) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(error: any) => void>>;
|
|
144
|
-
}>> & Readonly<{}>, () => JSX.Element, {}, {}, {}, {
|
|
145
|
-
clientId: string;
|
|
146
|
-
redirectUri: string;
|
|
147
|
-
}>;
|
|
140
|
+
onRejectCallback: {
|
|
141
|
+
type: import("vue").PropType<(error: any) => void>;
|
|
142
|
+
};
|
|
143
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
148
144
|
__isFragment?: never;
|
|
149
145
|
__isTeleport?: never;
|
|
150
146
|
__isSuspense?: never;
|
|
151
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
152
|
-
clientId:
|
|
153
|
-
|
|
147
|
+
} & import("vue").ComponentOptionsBase<Readonly<Partial<import("vue").ExtractPropTypes<{
|
|
148
|
+
clientId: StringConstructor;
|
|
149
|
+
redirectUri: StringConstructor;
|
|
150
|
+
defaultLoad: BooleanConstructor;
|
|
151
|
+
getPopupContainer: {
|
|
152
|
+
type: import("vue").PropType<() => HTMLElement | Element>;
|
|
154
153
|
};
|
|
155
|
-
|
|
156
|
-
|
|
154
|
+
onCallback: {
|
|
155
|
+
type: import("vue").PropType<(data: {
|
|
156
|
+
code: string;
|
|
157
|
+
}) => void>;
|
|
157
158
|
};
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
onCallback: import("vue-types").VueTypeValidableDef<(data: {
|
|
161
|
-
code: string;
|
|
162
|
-
}) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(data: {
|
|
163
|
-
code: string;
|
|
164
|
-
}) => void>>;
|
|
165
|
-
onRejectCallback: import("vue-types").VueTypeValidableDef<(error: any) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(error: any) => void>>;
|
|
166
|
-
}>> & Readonly<{}>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
167
|
-
clientId: string;
|
|
168
|
-
redirectUri: string;
|
|
169
|
-
}, {}, string, import("vue").SlotsType<{
|
|
170
|
-
default: {
|
|
171
|
-
startCheck: () => void;
|
|
159
|
+
onRejectCallback: {
|
|
160
|
+
type: import("vue").PropType<(error: any) => void>;
|
|
172
161
|
};
|
|
173
|
-
}>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
162
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
174
163
|
readonly toGoogleAuth: typeof Comps.toGoogleAuth;
|
|
175
164
|
} & import("vue").Plugin;
|
|
176
165
|
toTelegramAuth(botId: number, toPath: string): void;
|
|
177
166
|
getTelegramAuthUrlParams(): Comps.TgUserData | null;
|
|
178
167
|
TelegramAuth: {
|
|
179
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
180
|
-
botId:
|
|
181
|
-
|
|
168
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<Partial<import("vue").ExtractPropTypes<{
|
|
169
|
+
botId: NumberConstructor;
|
|
170
|
+
toPath: StringConstructor;
|
|
171
|
+
defaultLoad: BooleanConstructor;
|
|
172
|
+
getPopupContainer: {
|
|
173
|
+
type: import("vue").PropType<() => HTMLElement | Element>;
|
|
182
174
|
};
|
|
183
|
-
|
|
184
|
-
|
|
175
|
+
onCallback: {
|
|
176
|
+
type: import("vue").PropType<(user: Comps.TgUserData) => void>;
|
|
185
177
|
};
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
onCallback: import("vue-types").VueTypeValidableDef<(user: Comps.TgUserData) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(user: Comps.TgUserData) => void>>;
|
|
189
|
-
onRejectCallback: import("vue-types").VueTypeValidableDef<() => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => void>>;
|
|
190
|
-
}>> & Readonly<{}>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
191
|
-
botId: number;
|
|
192
|
-
toPath: string;
|
|
193
|
-
}, true, {}, import("vue").SlotsType<{
|
|
194
|
-
default: {
|
|
195
|
-
startCheck: () => void;
|
|
178
|
+
onRejectCallback: {
|
|
179
|
+
type: import("vue").PropType<() => void>;
|
|
196
180
|
};
|
|
197
|
-
}>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
181
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
198
182
|
P: {};
|
|
199
183
|
B: {};
|
|
200
184
|
D: {};
|
|
201
185
|
C: {};
|
|
202
186
|
M: {};
|
|
203
187
|
Defaults: {};
|
|
204
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
205
|
-
botId:
|
|
206
|
-
|
|
188
|
+
}, Readonly<Partial<import("vue").ExtractPropTypes<{
|
|
189
|
+
botId: NumberConstructor;
|
|
190
|
+
toPath: StringConstructor;
|
|
191
|
+
defaultLoad: BooleanConstructor;
|
|
192
|
+
getPopupContainer: {
|
|
193
|
+
type: import("vue").PropType<() => HTMLElement | Element>;
|
|
194
|
+
};
|
|
195
|
+
onCallback: {
|
|
196
|
+
type: import("vue").PropType<(user: Comps.TgUserData) => void>;
|
|
207
197
|
};
|
|
208
|
-
|
|
209
|
-
|
|
198
|
+
onRejectCallback: {
|
|
199
|
+
type: import("vue").PropType<() => void>;
|
|
210
200
|
};
|
|
211
|
-
|
|
212
|
-
getPopupContainer: import("vue-types").VueTypeValidableDef<() => HTMLElement | Element, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => HTMLElement | Element>>;
|
|
213
|
-
onCallback: import("vue-types").VueTypeValidableDef<(user: Comps.TgUserData) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(user: Comps.TgUserData) => void>>;
|
|
214
|
-
onRejectCallback: import("vue-types").VueTypeValidableDef<() => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => void>>;
|
|
215
|
-
}>> & Readonly<{}>, () => JSX.Element, {}, {}, {}, {
|
|
216
|
-
botId: number;
|
|
217
|
-
toPath: string;
|
|
218
|
-
}>;
|
|
201
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
219
202
|
__isFragment?: never;
|
|
220
203
|
__isTeleport?: never;
|
|
221
204
|
__isSuspense?: never;
|
|
222
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
223
|
-
botId:
|
|
224
|
-
|
|
205
|
+
} & import("vue").ComponentOptionsBase<Readonly<Partial<import("vue").ExtractPropTypes<{
|
|
206
|
+
botId: NumberConstructor;
|
|
207
|
+
toPath: StringConstructor;
|
|
208
|
+
defaultLoad: BooleanConstructor;
|
|
209
|
+
getPopupContainer: {
|
|
210
|
+
type: import("vue").PropType<() => HTMLElement | Element>;
|
|
225
211
|
};
|
|
226
|
-
|
|
227
|
-
|
|
212
|
+
onCallback: {
|
|
213
|
+
type: import("vue").PropType<(user: Comps.TgUserData) => void>;
|
|
228
214
|
};
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
onCallback: import("vue-types").VueTypeValidableDef<(user: Comps.TgUserData) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(user: Comps.TgUserData) => void>>;
|
|
232
|
-
onRejectCallback: import("vue-types").VueTypeValidableDef<() => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => void>>;
|
|
233
|
-
}>> & Readonly<{}>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
234
|
-
botId: number;
|
|
235
|
-
toPath: string;
|
|
236
|
-
}, {}, string, import("vue").SlotsType<{
|
|
237
|
-
default: {
|
|
238
|
-
startCheck: () => void;
|
|
215
|
+
onRejectCallback: {
|
|
216
|
+
type: import("vue").PropType<() => void>;
|
|
239
217
|
};
|
|
240
|
-
}>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
218
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
241
219
|
readonly toTelegramAuth: typeof Comps.toTelegramAuth;
|
|
242
220
|
readonly getTelegramAuthUrlParams: typeof Comps.getTelegramAuthUrlParams;
|
|
243
221
|
} & import("vue").Plugin;
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { C as e } from "./chunks/index-DyiqKziC.js";
|
|
2
2
|
import { H as s } from "./chunks/index-BXoUaF-m.js";
|
|
3
|
-
import { U as
|
|
4
|
-
import { d as n, h as p, e as u, f, g, b as d, a as h, c as
|
|
3
|
+
import { U as t } from "./chunks/index-CHtnAuFs.js";
|
|
4
|
+
import { d as n, h as p, e as u, f, g, b as d, a as h, c as N, r as x, i as T, t as b } from "./chunks/index-CHtnAuFs.js";
|
|
5
5
|
import { GoogleAuth as U, toGoogleAuth as E } from "./components/GoogleAuth.js";
|
|
6
6
|
import { TelegramAuth as P, getTelegramAuthUrlParams as S, toTelegramAuth as A } from "./components/TelegramAuth.js";
|
|
7
7
|
import { copyTextToClipboard as C, useCopyToClipboard as D } from "./hooks/useCopyToClipboard.js";
|
|
8
8
|
import { useFormKeypressEnter as O } from "./hooks/useFormKeypressEnter.js";
|
|
9
9
|
import { useMemo as F } from "./hooks/useMemo.js";
|
|
10
|
-
import { is as
|
|
11
|
-
import { BigNumber as fe, DOWN as ge, UP as de, add as he, divide as xe, formatRate as
|
|
12
|
-
import { propTypes as
|
|
13
|
-
import { timeZoneOptions as
|
|
14
|
-
import { withInstall as
|
|
15
|
-
const a = { ...e, ...s, ...
|
|
10
|
+
import { is as q, isArray as v, isBoolean as G, isClient as H, isDate as M, isDef as R, isEdgeBrowser as W, isElement as V, isEmail as j, isEmpty as k, isFunction as K, isHtmlStr as Z, isInMobileBrowser as z, isIp as J, isMap as Q, isNull as X, isNullAndUnDef as Y, isNullOrUnDef as _, isNumber as $, isObject as ee, isPromise as se, isPromiseLink as te, isRegExp as re, isServer as oe, isString as ie, isUnDef as ae, isUrl as me, isValidPhoneNumber as le, isWindow as ne, isZhLang as pe } from "./utils/is.js";
|
|
11
|
+
import { BigNumber as fe, DOWN as ge, UP as de, add as he, divide as Ne, eq as xe, formatRate as Te, gt as be, gte as ce, helper as Ue, isBigNum as Ee, isBool as ye, isEqualTo as Pe, isGreaterThan as Se, isGreaterThanOrEqualTo as Ae, isInt as Be, isLessThan as Ce, isLessThanOrEqualTo as De, isNan as Ie, isNanValue as Oe, isNum as we, lt as Fe, lte as Le, multiply as qe, power as ve, subtract as Ge, toBigNum as He, toDecimalPlaces as Me, toInt as Re, toLocaleString as We, toNum as Ve, toString as je, unFormatRate as ke } from "./utils/math.js";
|
|
12
|
+
import { propTypes as Ze } from "./utils/vuePropTypes.js";
|
|
13
|
+
import { timeZoneOptions as Je } from "./utils/timeZone.js";
|
|
14
|
+
import { withInstall as Xe } from "./utils/withInstall.js";
|
|
15
|
+
const a = { ...e, ...s, ...t, Comps: e, Hooks: s, Utils: t };
|
|
16
16
|
export {
|
|
17
17
|
fe as BigNumber,
|
|
18
18
|
ge as DOWN,
|
|
@@ -24,75 +24,81 @@ export {
|
|
|
24
24
|
n as deepMerge,
|
|
25
25
|
a as default,
|
|
26
26
|
p as desensitization,
|
|
27
|
-
|
|
27
|
+
Ne as divide,
|
|
28
|
+
xe as eq,
|
|
28
29
|
u as evalPro,
|
|
29
30
|
f as filterInputNum,
|
|
30
|
-
|
|
31
|
+
Te as formatRate,
|
|
31
32
|
g as generateFilterInputNumFn,
|
|
32
33
|
d as getRouterParams,
|
|
33
34
|
S as getTelegramAuthUrlParams,
|
|
34
35
|
h as getWebsiteUrl,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
36
|
+
be as gt,
|
|
37
|
+
ce as gte,
|
|
38
|
+
Ue as helper,
|
|
39
|
+
q as is,
|
|
40
|
+
v as isArray,
|
|
41
|
+
Ee as isBigNum,
|
|
42
|
+
ye as isBool,
|
|
43
|
+
G as isBoolean,
|
|
44
|
+
H as isClient,
|
|
45
|
+
M as isDate,
|
|
46
|
+
R as isDef,
|
|
47
|
+
W as isEdgeBrowser,
|
|
45
48
|
V as isElement,
|
|
46
49
|
j as isEmail,
|
|
47
50
|
k as isEmpty,
|
|
48
|
-
|
|
51
|
+
Pe as isEqualTo,
|
|
49
52
|
K as isFunction,
|
|
50
|
-
|
|
51
|
-
|
|
53
|
+
Se as isGreaterThan,
|
|
54
|
+
Ae as isGreaterThanOrEqualTo,
|
|
52
55
|
Z as isHtmlStr,
|
|
53
56
|
z as isInMobileBrowser,
|
|
54
|
-
|
|
57
|
+
Be as isInt,
|
|
55
58
|
J as isIp,
|
|
56
|
-
|
|
57
|
-
|
|
59
|
+
Ce as isLessThan,
|
|
60
|
+
De as isLessThanOrEqualTo,
|
|
58
61
|
Q as isMap,
|
|
59
|
-
|
|
62
|
+
Ie as isNan,
|
|
63
|
+
Oe as isNanValue,
|
|
60
64
|
X as isNull,
|
|
61
65
|
Y as isNullAndUnDef,
|
|
62
66
|
_ as isNullOrUnDef,
|
|
63
|
-
|
|
67
|
+
we as isNum,
|
|
64
68
|
$ as isNumber,
|
|
65
69
|
ee as isObject,
|
|
66
70
|
se as isPromise,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
71
|
+
te as isPromiseLink,
|
|
72
|
+
re as isRegExp,
|
|
73
|
+
oe as isServer,
|
|
70
74
|
ie as isString,
|
|
71
75
|
ae as isUnDef,
|
|
72
76
|
me as isUrl,
|
|
73
77
|
le as isValidPhoneNumber,
|
|
74
78
|
ne as isWindow,
|
|
75
79
|
pe as isZhLang,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
Fe as lt,
|
|
81
|
+
Le as lte,
|
|
82
|
+
qe as multiply,
|
|
83
|
+
ve as power,
|
|
84
|
+
Ze as propTypes,
|
|
85
|
+
N as removeWhitespace,
|
|
86
|
+
x as renderHtmlStr,
|
|
87
|
+
Ge as subtract,
|
|
88
|
+
Je as timeZoneOptions,
|
|
89
|
+
He as toBigNum,
|
|
90
|
+
Me as toDecimalPlaces,
|
|
85
91
|
E as toGoogleAuth,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
92
|
+
Re as toInt,
|
|
93
|
+
We as toLocaleString,
|
|
94
|
+
Ve as toNum,
|
|
95
|
+
je as toString,
|
|
90
96
|
T as toStyleObject,
|
|
91
97
|
b as toStyleUnit,
|
|
92
98
|
A as toTelegramAuth,
|
|
93
|
-
|
|
99
|
+
ke as unFormatRate,
|
|
94
100
|
D as useCopyToClipboard,
|
|
95
101
|
O as useFormKeypressEnter,
|
|
96
102
|
F as useMemo,
|
|
97
|
-
|
|
103
|
+
Xe as withInstall
|
|
98
104
|
};
|