kundli-generator 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +92 -0
- package/dist/components/KundliPage/KundliPage.d.ts +15 -0
- package/dist/components/KundliPage/index.d.ts +2 -0
- package/dist/dev/main.d.ts +1 -0
- package/dist/i18n/I18nContext.d.ts +13 -0
- package/dist/i18n/index.d.ts +2 -0
- package/dist/i18n/translations.d.ts +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/kundli-generator.js +766 -0
- package/dist/kundli-generator.js.map +1 -0
- package/dist/kundli-generator.umd.cjs +32 -0
- package/dist/kundli-generator.umd.cjs.map +1 -0
- package/dist/style.css +1 -0
- package/package.json +58 -0
|
@@ -0,0 +1,766 @@
|
|
|
1
|
+
import xe, { createContext as vr, useContext as pr, useState as hr } from "react";
|
|
2
|
+
var Z = { exports: {} }, I = {};
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-jsx-runtime.production.min.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var Ce;
|
|
13
|
+
function _r() {
|
|
14
|
+
if (Ce) return I;
|
|
15
|
+
Ce = 1;
|
|
16
|
+
var R = xe, b = Symbol.for("react.element"), S = Symbol.for("react.fragment"), T = Object.prototype.hasOwnProperty, C = R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, E = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function P(j, f, x) {
|
|
18
|
+
var l, y = {}, v = null, Y = null;
|
|
19
|
+
x !== void 0 && (v = "" + x), f.key !== void 0 && (v = "" + f.key), f.ref !== void 0 && (Y = f.ref);
|
|
20
|
+
for (l in f) T.call(f, l) && !E.hasOwnProperty(l) && (y[l] = f[l]);
|
|
21
|
+
if (j && j.defaultProps) for (l in f = j.defaultProps, f) y[l] === void 0 && (y[l] = f[l]);
|
|
22
|
+
return { $$typeof: b, type: j, key: v, ref: Y, props: y, _owner: C.current };
|
|
23
|
+
}
|
|
24
|
+
return I.Fragment = S, I.jsx = P, I.jsxs = P, I;
|
|
25
|
+
}
|
|
26
|
+
var $ = {};
|
|
27
|
+
/**
|
|
28
|
+
* @license React
|
|
29
|
+
* react-jsx-runtime.development.js
|
|
30
|
+
*
|
|
31
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
32
|
+
*
|
|
33
|
+
* This source code is licensed under the MIT license found in the
|
|
34
|
+
* LICENSE file in the root directory of this source tree.
|
|
35
|
+
*/
|
|
36
|
+
var je;
|
|
37
|
+
function gr() {
|
|
38
|
+
return je || (je = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
+
var R = xe, b = Symbol.for("react.element"), S = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), P = Symbol.for("react.provider"), j = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), Q = Symbol.iterator, we = "@@iterator";
|
|
40
|
+
function ke(e) {
|
|
41
|
+
if (e === null || typeof e != "object")
|
|
42
|
+
return null;
|
|
43
|
+
var r = Q && e[Q] || e[we];
|
|
44
|
+
return typeof r == "function" ? r : null;
|
|
45
|
+
}
|
|
46
|
+
var D = R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
+
function p(e) {
|
|
48
|
+
{
|
|
49
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
50
|
+
t[a - 1] = arguments[a];
|
|
51
|
+
De("error", e, t);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function De(e, r, t) {
|
|
55
|
+
{
|
|
56
|
+
var a = D.ReactDebugCurrentFrame, o = a.getStackAddendum();
|
|
57
|
+
o !== "" && (r += "%s", t = t.concat([o]));
|
|
58
|
+
var s = t.map(function(i) {
|
|
59
|
+
return String(i);
|
|
60
|
+
});
|
|
61
|
+
s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
var Fe = !1, Ae = !1, Le = !1, Ne = !1, Ie = !1, ee;
|
|
65
|
+
ee = Symbol.for("react.module.reference");
|
|
66
|
+
function $e(e) {
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === T || e === E || Ie || e === C || e === x || e === l || Ne || e === Y || Fe || Ae || Le || typeof e == "object" && e !== null && (e.$$typeof === v || e.$$typeof === y || e.$$typeof === P || e.$$typeof === j || e.$$typeof === f || // This needs to include all possible module reference object
|
|
68
|
+
// types supported by any Flight configuration anywhere since
|
|
69
|
+
// we don't know which Flight build this will end up being used
|
|
70
|
+
// with.
|
|
71
|
+
e.$$typeof === ee || e.getModuleId !== void 0));
|
|
72
|
+
}
|
|
73
|
+
function Ye(e, r, t) {
|
|
74
|
+
var a = e.displayName;
|
|
75
|
+
if (a)
|
|
76
|
+
return a;
|
|
77
|
+
var o = r.displayName || r.name || "";
|
|
78
|
+
return o !== "" ? t + "(" + o + ")" : t;
|
|
79
|
+
}
|
|
80
|
+
function re(e) {
|
|
81
|
+
return e.displayName || "Context";
|
|
82
|
+
}
|
|
83
|
+
function O(e) {
|
|
84
|
+
if (e == null)
|
|
85
|
+
return null;
|
|
86
|
+
if (typeof e.tag == "number" && p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
87
|
+
return e.displayName || e.name || null;
|
|
88
|
+
if (typeof e == "string")
|
|
89
|
+
return e;
|
|
90
|
+
switch (e) {
|
|
91
|
+
case T:
|
|
92
|
+
return "Fragment";
|
|
93
|
+
case S:
|
|
94
|
+
return "Portal";
|
|
95
|
+
case E:
|
|
96
|
+
return "Profiler";
|
|
97
|
+
case C:
|
|
98
|
+
return "StrictMode";
|
|
99
|
+
case x:
|
|
100
|
+
return "Suspense";
|
|
101
|
+
case l:
|
|
102
|
+
return "SuspenseList";
|
|
103
|
+
}
|
|
104
|
+
if (typeof e == "object")
|
|
105
|
+
switch (e.$$typeof) {
|
|
106
|
+
case j:
|
|
107
|
+
var r = e;
|
|
108
|
+
return re(r) + ".Consumer";
|
|
109
|
+
case P:
|
|
110
|
+
var t = e;
|
|
111
|
+
return re(t._context) + ".Provider";
|
|
112
|
+
case f:
|
|
113
|
+
return Ye(e, e.render, "ForwardRef");
|
|
114
|
+
case y:
|
|
115
|
+
var a = e.displayName || null;
|
|
116
|
+
return a !== null ? a : O(e.type) || "Memo";
|
|
117
|
+
case v: {
|
|
118
|
+
var o = e, s = o._payload, i = o._init;
|
|
119
|
+
try {
|
|
120
|
+
return O(i(s));
|
|
121
|
+
} catch {
|
|
122
|
+
return null;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
var w = Object.assign, L = 0, te, ae, ne, ie, oe, se, le;
|
|
129
|
+
function ue() {
|
|
130
|
+
}
|
|
131
|
+
ue.__reactDisabledLog = !0;
|
|
132
|
+
function We() {
|
|
133
|
+
{
|
|
134
|
+
if (L === 0) {
|
|
135
|
+
te = console.log, ae = console.info, ne = console.warn, ie = console.error, oe = console.group, se = console.groupCollapsed, le = console.groupEnd;
|
|
136
|
+
var e = {
|
|
137
|
+
configurable: !0,
|
|
138
|
+
enumerable: !0,
|
|
139
|
+
value: ue,
|
|
140
|
+
writable: !0
|
|
141
|
+
};
|
|
142
|
+
Object.defineProperties(console, {
|
|
143
|
+
info: e,
|
|
144
|
+
log: e,
|
|
145
|
+
warn: e,
|
|
146
|
+
error: e,
|
|
147
|
+
group: e,
|
|
148
|
+
groupCollapsed: e,
|
|
149
|
+
groupEnd: e
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
L++;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
function Ue() {
|
|
156
|
+
{
|
|
157
|
+
if (L--, L === 0) {
|
|
158
|
+
var e = {
|
|
159
|
+
configurable: !0,
|
|
160
|
+
enumerable: !0,
|
|
161
|
+
writable: !0
|
|
162
|
+
};
|
|
163
|
+
Object.defineProperties(console, {
|
|
164
|
+
log: w({}, e, {
|
|
165
|
+
value: te
|
|
166
|
+
}),
|
|
167
|
+
info: w({}, e, {
|
|
168
|
+
value: ae
|
|
169
|
+
}),
|
|
170
|
+
warn: w({}, e, {
|
|
171
|
+
value: ne
|
|
172
|
+
}),
|
|
173
|
+
error: w({}, e, {
|
|
174
|
+
value: ie
|
|
175
|
+
}),
|
|
176
|
+
group: w({}, e, {
|
|
177
|
+
value: oe
|
|
178
|
+
}),
|
|
179
|
+
groupCollapsed: w({}, e, {
|
|
180
|
+
value: se
|
|
181
|
+
}),
|
|
182
|
+
groupEnd: w({}, e, {
|
|
183
|
+
value: le
|
|
184
|
+
})
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
L < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
var B = D.ReactCurrentDispatcher, K;
|
|
191
|
+
function W(e, r, t) {
|
|
192
|
+
{
|
|
193
|
+
if (K === void 0)
|
|
194
|
+
try {
|
|
195
|
+
throw Error();
|
|
196
|
+
} catch (o) {
|
|
197
|
+
var a = o.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
+
K = a && a[1] || "";
|
|
199
|
+
}
|
|
200
|
+
return `
|
|
201
|
+
` + K + e;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
var J = !1, U;
|
|
205
|
+
{
|
|
206
|
+
var Ve = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
+
U = new Ve();
|
|
208
|
+
}
|
|
209
|
+
function ce(e, r) {
|
|
210
|
+
if (!e || J)
|
|
211
|
+
return "";
|
|
212
|
+
{
|
|
213
|
+
var t = U.get(e);
|
|
214
|
+
if (t !== void 0)
|
|
215
|
+
return t;
|
|
216
|
+
}
|
|
217
|
+
var a;
|
|
218
|
+
J = !0;
|
|
219
|
+
var o = Error.prepareStackTrace;
|
|
220
|
+
Error.prepareStackTrace = void 0;
|
|
221
|
+
var s;
|
|
222
|
+
s = B.current, B.current = null, We();
|
|
223
|
+
try {
|
|
224
|
+
if (r) {
|
|
225
|
+
var i = function() {
|
|
226
|
+
throw Error();
|
|
227
|
+
};
|
|
228
|
+
if (Object.defineProperty(i.prototype, "props", {
|
|
229
|
+
set: function() {
|
|
230
|
+
throw Error();
|
|
231
|
+
}
|
|
232
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
|
+
try {
|
|
234
|
+
Reflect.construct(i, []);
|
|
235
|
+
} catch (g) {
|
|
236
|
+
a = g;
|
|
237
|
+
}
|
|
238
|
+
Reflect.construct(e, [], i);
|
|
239
|
+
} else {
|
|
240
|
+
try {
|
|
241
|
+
i.call();
|
|
242
|
+
} catch (g) {
|
|
243
|
+
a = g;
|
|
244
|
+
}
|
|
245
|
+
e.call(i.prototype);
|
|
246
|
+
}
|
|
247
|
+
} else {
|
|
248
|
+
try {
|
|
249
|
+
throw Error();
|
|
250
|
+
} catch (g) {
|
|
251
|
+
a = g;
|
|
252
|
+
}
|
|
253
|
+
e();
|
|
254
|
+
}
|
|
255
|
+
} catch (g) {
|
|
256
|
+
if (g && a && typeof g.stack == "string") {
|
|
257
|
+
for (var n = g.stack.split(`
|
|
258
|
+
`), h = a.stack.split(`
|
|
259
|
+
`), u = n.length - 1, c = h.length - 1; u >= 1 && c >= 0 && n[u] !== h[c]; )
|
|
260
|
+
c--;
|
|
261
|
+
for (; u >= 1 && c >= 0; u--, c--)
|
|
262
|
+
if (n[u] !== h[c]) {
|
|
263
|
+
if (u !== 1 || c !== 1)
|
|
264
|
+
do
|
|
265
|
+
if (u--, c--, c < 0 || n[u] !== h[c]) {
|
|
266
|
+
var m = `
|
|
267
|
+
` + n[u].replace(" at new ", " at ");
|
|
268
|
+
return e.displayName && m.includes("<anonymous>") && (m = m.replace("<anonymous>", e.displayName)), typeof e == "function" && U.set(e, m), m;
|
|
269
|
+
}
|
|
270
|
+
while (u >= 1 && c >= 0);
|
|
271
|
+
break;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
} finally {
|
|
275
|
+
J = !1, B.current = s, Ue(), Error.prepareStackTrace = o;
|
|
276
|
+
}
|
|
277
|
+
var A = e ? e.displayName || e.name : "", k = A ? W(A) : "";
|
|
278
|
+
return typeof e == "function" && U.set(e, k), k;
|
|
279
|
+
}
|
|
280
|
+
function Me(e, r, t) {
|
|
281
|
+
return ce(e, !1);
|
|
282
|
+
}
|
|
283
|
+
function Be(e) {
|
|
284
|
+
var r = e.prototype;
|
|
285
|
+
return !!(r && r.isReactComponent);
|
|
286
|
+
}
|
|
287
|
+
function V(e, r, t) {
|
|
288
|
+
if (e == null)
|
|
289
|
+
return "";
|
|
290
|
+
if (typeof e == "function")
|
|
291
|
+
return ce(e, Be(e));
|
|
292
|
+
if (typeof e == "string")
|
|
293
|
+
return W(e);
|
|
294
|
+
switch (e) {
|
|
295
|
+
case x:
|
|
296
|
+
return W("Suspense");
|
|
297
|
+
case l:
|
|
298
|
+
return W("SuspenseList");
|
|
299
|
+
}
|
|
300
|
+
if (typeof e == "object")
|
|
301
|
+
switch (e.$$typeof) {
|
|
302
|
+
case f:
|
|
303
|
+
return Me(e.render);
|
|
304
|
+
case y:
|
|
305
|
+
return V(e.type, r, t);
|
|
306
|
+
case v: {
|
|
307
|
+
var a = e, o = a._payload, s = a._init;
|
|
308
|
+
try {
|
|
309
|
+
return V(s(o), r, t);
|
|
310
|
+
} catch {
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
return "";
|
|
315
|
+
}
|
|
316
|
+
var N = Object.prototype.hasOwnProperty, fe = {}, de = D.ReactDebugCurrentFrame;
|
|
317
|
+
function M(e) {
|
|
318
|
+
if (e) {
|
|
319
|
+
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
|
|
320
|
+
de.setExtraStackFrame(t);
|
|
321
|
+
} else
|
|
322
|
+
de.setExtraStackFrame(null);
|
|
323
|
+
}
|
|
324
|
+
function Ke(e, r, t, a, o) {
|
|
325
|
+
{
|
|
326
|
+
var s = Function.call.bind(N);
|
|
327
|
+
for (var i in e)
|
|
328
|
+
if (s(e, i)) {
|
|
329
|
+
var n = void 0;
|
|
330
|
+
try {
|
|
331
|
+
if (typeof e[i] != "function") {
|
|
332
|
+
var h = Error((a || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
+
throw h.name = "Invariant Violation", h;
|
|
334
|
+
}
|
|
335
|
+
n = e[i](r, i, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
+
} catch (u) {
|
|
337
|
+
n = u;
|
|
338
|
+
}
|
|
339
|
+
n && !(n instanceof Error) && (M(o), p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", t, i, typeof n), M(null)), n instanceof Error && !(n.message in fe) && (fe[n.message] = !0, M(o), p("Failed %s type: %s", t, n.message), M(null));
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
var Je = Array.isArray;
|
|
344
|
+
function q(e) {
|
|
345
|
+
return Je(e);
|
|
346
|
+
}
|
|
347
|
+
function qe(e) {
|
|
348
|
+
{
|
|
349
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
|
+
return t;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
function Ge(e) {
|
|
354
|
+
try {
|
|
355
|
+
return ve(e), !1;
|
|
356
|
+
} catch {
|
|
357
|
+
return !0;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
function ve(e) {
|
|
361
|
+
return "" + e;
|
|
362
|
+
}
|
|
363
|
+
function pe(e) {
|
|
364
|
+
if (Ge(e))
|
|
365
|
+
return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), ve(e);
|
|
366
|
+
}
|
|
367
|
+
var he = D.ReactCurrentOwner, ze = {
|
|
368
|
+
key: !0,
|
|
369
|
+
ref: !0,
|
|
370
|
+
__self: !0,
|
|
371
|
+
__source: !0
|
|
372
|
+
}, _e, ge;
|
|
373
|
+
function Xe(e) {
|
|
374
|
+
if (N.call(e, "ref")) {
|
|
375
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
|
+
if (r && r.isReactWarning)
|
|
377
|
+
return !1;
|
|
378
|
+
}
|
|
379
|
+
return e.ref !== void 0;
|
|
380
|
+
}
|
|
381
|
+
function He(e) {
|
|
382
|
+
if (N.call(e, "key")) {
|
|
383
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
|
+
if (r && r.isReactWarning)
|
|
385
|
+
return !1;
|
|
386
|
+
}
|
|
387
|
+
return e.key !== void 0;
|
|
388
|
+
}
|
|
389
|
+
function Ze(e, r) {
|
|
390
|
+
typeof e.ref == "string" && he.current;
|
|
391
|
+
}
|
|
392
|
+
function Qe(e, r) {
|
|
393
|
+
{
|
|
394
|
+
var t = function() {
|
|
395
|
+
_e || (_e = !0, p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
396
|
+
};
|
|
397
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
398
|
+
get: t,
|
|
399
|
+
configurable: !0
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
function er(e, r) {
|
|
404
|
+
{
|
|
405
|
+
var t = function() {
|
|
406
|
+
ge || (ge = !0, p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
407
|
+
};
|
|
408
|
+
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
409
|
+
get: t,
|
|
410
|
+
configurable: !0
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
var rr = function(e, r, t, a, o, s, i) {
|
|
415
|
+
var n = {
|
|
416
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
417
|
+
$$typeof: b,
|
|
418
|
+
// Built-in properties that belong on the element
|
|
419
|
+
type: e,
|
|
420
|
+
key: r,
|
|
421
|
+
ref: t,
|
|
422
|
+
props: i,
|
|
423
|
+
// Record the component responsible for creating this element.
|
|
424
|
+
_owner: s
|
|
425
|
+
};
|
|
426
|
+
return n._store = {}, Object.defineProperty(n._store, "validated", {
|
|
427
|
+
configurable: !1,
|
|
428
|
+
enumerable: !1,
|
|
429
|
+
writable: !0,
|
|
430
|
+
value: !1
|
|
431
|
+
}), Object.defineProperty(n, "_self", {
|
|
432
|
+
configurable: !1,
|
|
433
|
+
enumerable: !1,
|
|
434
|
+
writable: !1,
|
|
435
|
+
value: a
|
|
436
|
+
}), Object.defineProperty(n, "_source", {
|
|
437
|
+
configurable: !1,
|
|
438
|
+
enumerable: !1,
|
|
439
|
+
writable: !1,
|
|
440
|
+
value: o
|
|
441
|
+
}), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
|
|
442
|
+
};
|
|
443
|
+
function tr(e, r, t, a, o) {
|
|
444
|
+
{
|
|
445
|
+
var s, i = {}, n = null, h = null;
|
|
446
|
+
t !== void 0 && (pe(t), n = "" + t), He(r) && (pe(r.key), n = "" + r.key), Xe(r) && (h = r.ref, Ze(r, o));
|
|
447
|
+
for (s in r)
|
|
448
|
+
N.call(r, s) && !ze.hasOwnProperty(s) && (i[s] = r[s]);
|
|
449
|
+
if (e && e.defaultProps) {
|
|
450
|
+
var u = e.defaultProps;
|
|
451
|
+
for (s in u)
|
|
452
|
+
i[s] === void 0 && (i[s] = u[s]);
|
|
453
|
+
}
|
|
454
|
+
if (n || h) {
|
|
455
|
+
var c = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
+
n && Qe(i, c), h && er(i, c);
|
|
457
|
+
}
|
|
458
|
+
return rr(e, n, h, o, a, he.current, i);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
var G = D.ReactCurrentOwner, be = D.ReactDebugCurrentFrame;
|
|
462
|
+
function F(e) {
|
|
463
|
+
if (e) {
|
|
464
|
+
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
|
|
465
|
+
be.setExtraStackFrame(t);
|
|
466
|
+
} else
|
|
467
|
+
be.setExtraStackFrame(null);
|
|
468
|
+
}
|
|
469
|
+
var z;
|
|
470
|
+
z = !1;
|
|
471
|
+
function X(e) {
|
|
472
|
+
return typeof e == "object" && e !== null && e.$$typeof === b;
|
|
473
|
+
}
|
|
474
|
+
function me() {
|
|
475
|
+
{
|
|
476
|
+
if (G.current) {
|
|
477
|
+
var e = O(G.current.type);
|
|
478
|
+
if (e)
|
|
479
|
+
return `
|
|
480
|
+
|
|
481
|
+
Check the render method of \`` + e + "`.";
|
|
482
|
+
}
|
|
483
|
+
return "";
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
function ar(e) {
|
|
487
|
+
return "";
|
|
488
|
+
}
|
|
489
|
+
var Ee = {};
|
|
490
|
+
function nr(e) {
|
|
491
|
+
{
|
|
492
|
+
var r = me();
|
|
493
|
+
if (!r) {
|
|
494
|
+
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
495
|
+
t && (r = `
|
|
496
|
+
|
|
497
|
+
Check the top-level render call using <` + t + ">.");
|
|
498
|
+
}
|
|
499
|
+
return r;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
function ye(e, r) {
|
|
503
|
+
{
|
|
504
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
505
|
+
return;
|
|
506
|
+
e._store.validated = !0;
|
|
507
|
+
var t = nr(r);
|
|
508
|
+
if (Ee[t])
|
|
509
|
+
return;
|
|
510
|
+
Ee[t] = !0;
|
|
511
|
+
var a = "";
|
|
512
|
+
e && e._owner && e._owner !== G.current && (a = " It was passed a child from " + O(e._owner.type) + "."), F(e), p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), F(null);
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
function Re(e, r) {
|
|
516
|
+
{
|
|
517
|
+
if (typeof e != "object")
|
|
518
|
+
return;
|
|
519
|
+
if (q(e))
|
|
520
|
+
for (var t = 0; t < e.length; t++) {
|
|
521
|
+
var a = e[t];
|
|
522
|
+
X(a) && ye(a, r);
|
|
523
|
+
}
|
|
524
|
+
else if (X(e))
|
|
525
|
+
e._store && (e._store.validated = !0);
|
|
526
|
+
else if (e) {
|
|
527
|
+
var o = ke(e);
|
|
528
|
+
if (typeof o == "function" && o !== e.entries)
|
|
529
|
+
for (var s = o.call(e), i; !(i = s.next()).done; )
|
|
530
|
+
X(i.value) && ye(i.value, r);
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
function ir(e) {
|
|
535
|
+
{
|
|
536
|
+
var r = e.type;
|
|
537
|
+
if (r == null || typeof r == "string")
|
|
538
|
+
return;
|
|
539
|
+
var t;
|
|
540
|
+
if (typeof r == "function")
|
|
541
|
+
t = r.propTypes;
|
|
542
|
+
else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
|
|
543
|
+
// Inner props are checked in the reconciler.
|
|
544
|
+
r.$$typeof === y))
|
|
545
|
+
t = r.propTypes;
|
|
546
|
+
else
|
|
547
|
+
return;
|
|
548
|
+
if (t) {
|
|
549
|
+
var a = O(r);
|
|
550
|
+
Ke(t, e.props, "prop", a, e);
|
|
551
|
+
} else if (r.PropTypes !== void 0 && !z) {
|
|
552
|
+
z = !0;
|
|
553
|
+
var o = O(r);
|
|
554
|
+
p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
|
|
555
|
+
}
|
|
556
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
function or(e) {
|
|
560
|
+
{
|
|
561
|
+
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
562
|
+
var a = r[t];
|
|
563
|
+
if (a !== "children" && a !== "key") {
|
|
564
|
+
F(e), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), F(null);
|
|
565
|
+
break;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
e.ref !== null && (F(e), p("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
var Te = {};
|
|
572
|
+
function Se(e, r, t, a, o, s) {
|
|
573
|
+
{
|
|
574
|
+
var i = $e(e);
|
|
575
|
+
if (!i) {
|
|
576
|
+
var n = "";
|
|
577
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (n += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
578
|
+
var h = ar();
|
|
579
|
+
h ? n += h : n += me();
|
|
580
|
+
var u;
|
|
581
|
+
e === null ? u = "null" : q(e) ? u = "array" : e !== void 0 && e.$$typeof === b ? (u = "<" + (O(e.type) || "Unknown") + " />", n = " Did you accidentally export a JSX literal instead of a component?") : u = typeof e, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", u, n);
|
|
582
|
+
}
|
|
583
|
+
var c = tr(e, r, t, o, s);
|
|
584
|
+
if (c == null)
|
|
585
|
+
return c;
|
|
586
|
+
if (i) {
|
|
587
|
+
var m = r.children;
|
|
588
|
+
if (m !== void 0)
|
|
589
|
+
if (a)
|
|
590
|
+
if (q(m)) {
|
|
591
|
+
for (var A = 0; A < m.length; A++)
|
|
592
|
+
Re(m[A], e);
|
|
593
|
+
Object.freeze && Object.freeze(m);
|
|
594
|
+
} else
|
|
595
|
+
p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
|
+
else
|
|
597
|
+
Re(m, e);
|
|
598
|
+
}
|
|
599
|
+
if (N.call(r, "key")) {
|
|
600
|
+
var k = O(e), g = Object.keys(r).filter(function(dr) {
|
|
601
|
+
return dr !== "key";
|
|
602
|
+
}), H = g.length > 0 ? "{key: someKey, " + g.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
+
if (!Te[k + H]) {
|
|
604
|
+
var fr = g.length > 0 ? "{" + g.join(": ..., ") + ": ...}" : "{}";
|
|
605
|
+
p(`A props object containing a "key" prop is being spread into JSX:
|
|
606
|
+
let props = %s;
|
|
607
|
+
<%s {...props} />
|
|
608
|
+
React keys must be passed directly to JSX without using spread:
|
|
609
|
+
let props = %s;
|
|
610
|
+
<%s key={someKey} {...props} />`, H, k, fr, k), Te[k + H] = !0;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
return e === T ? or(c) : ir(c), c;
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
function sr(e, r, t) {
|
|
617
|
+
return Se(e, r, t, !0);
|
|
618
|
+
}
|
|
619
|
+
function lr(e, r, t) {
|
|
620
|
+
return Se(e, r, t, !1);
|
|
621
|
+
}
|
|
622
|
+
var ur = lr, cr = sr;
|
|
623
|
+
$.Fragment = T, $.jsx = ur, $.jsxs = cr;
|
|
624
|
+
}()), $;
|
|
625
|
+
}
|
|
626
|
+
process.env.NODE_ENV === "production" ? Z.exports = _r() : Z.exports = gr();
|
|
627
|
+
var d = Z.exports;
|
|
628
|
+
const br = "_container_1taau_1", mr = "_header_1taau_6", Er = "_langSelector_1taau_10", yr = "_langLabel_1taau_14", Rr = "_langSelect_1taau_10", Tr = "_title_1taau_22", Sr = "_subtitle_1taau_26", Cr = "_content_1taau_30", jr = "_card_1taau_34", xr = "_cardTitle_1taau_38", Or = "_detail_1taau_42", Pr = "_description_1taau_46", wr = "_label_1taau_50", _ = {
|
|
629
|
+
container: br,
|
|
630
|
+
header: mr,
|
|
631
|
+
langSelector: Er,
|
|
632
|
+
langLabel: yr,
|
|
633
|
+
langSelect: Rr,
|
|
634
|
+
title: Tr,
|
|
635
|
+
subtitle: Sr,
|
|
636
|
+
content: Cr,
|
|
637
|
+
card: jr,
|
|
638
|
+
cardTitle: xr,
|
|
639
|
+
detail: Or,
|
|
640
|
+
description: Pr,
|
|
641
|
+
label: wr
|
|
642
|
+
}, kr = ["en", "hi", "ta", "te"], Dr = {
|
|
643
|
+
en: "English",
|
|
644
|
+
hi: "हिन्दी",
|
|
645
|
+
ta: "தமிழ்",
|
|
646
|
+
te: "తెలుగు"
|
|
647
|
+
}, Oe = {
|
|
648
|
+
en: {
|
|
649
|
+
kundli: "Kundli",
|
|
650
|
+
birthChart: "Birth Chart",
|
|
651
|
+
details: "Details",
|
|
652
|
+
name: "Name",
|
|
653
|
+
birthDate: "Birth Date",
|
|
654
|
+
guest: "Guest",
|
|
655
|
+
description: "Your birth chart reveals planetary positions at the time of your birth and their influence on your life.",
|
|
656
|
+
lagna: "Lagna",
|
|
657
|
+
rashi: "Rashi",
|
|
658
|
+
nakshatra: "Nakshatra"
|
|
659
|
+
},
|
|
660
|
+
hi: {
|
|
661
|
+
kundli: "कुंडली",
|
|
662
|
+
birthChart: "जन्म कुंडली",
|
|
663
|
+
details: "विवरण",
|
|
664
|
+
name: "नाम",
|
|
665
|
+
birthDate: "जन्म तिथि",
|
|
666
|
+
guest: "अतिथि",
|
|
667
|
+
description: "आपकी जन्म कुंडली आपके जन्म के समय ग्रहों की स्थिति और आपके जीवन पर उनके प्रभाव को दर्शाती है।",
|
|
668
|
+
lagna: "लग्न",
|
|
669
|
+
rashi: "राशि",
|
|
670
|
+
nakshatra: "नक्षत्र"
|
|
671
|
+
},
|
|
672
|
+
ta: {
|
|
673
|
+
kundli: "குந்தலி",
|
|
674
|
+
birthChart: "பிறவி சார்ட்",
|
|
675
|
+
details: "விவரங்கள்",
|
|
676
|
+
name: "பெயர்",
|
|
677
|
+
birthDate: "பிறந்த தேதி",
|
|
678
|
+
guest: "விருந்தினர்",
|
|
679
|
+
description: "உங்கள் பிறப்பு சார்ட் உங்கள் பிறப்பு நேரத்தில் கிரகங்களின் நிலையையும் உங்கள் வாழ்க்கையில் அவற்றின் செல்வாக்கையும் வெளிப்படுத்துகிறது.",
|
|
680
|
+
lagna: "லக்னம்",
|
|
681
|
+
rashi: "ராசி",
|
|
682
|
+
nakshatra: "நட்சத்திரம்"
|
|
683
|
+
},
|
|
684
|
+
te: {
|
|
685
|
+
kundli: "కుండలి",
|
|
686
|
+
birthChart: "జన్మ చార్ట్",
|
|
687
|
+
details: "వివరాలు",
|
|
688
|
+
name: "పేరు",
|
|
689
|
+
birthDate: "జన్మ తేదీ",
|
|
690
|
+
guest: "అతిథి",
|
|
691
|
+
description: "మీ జన్మ చార్ట్ మీ జన్మ సమయంలో గ్రహాల స్థానాలను మరియు మీ జీవితంపై వాటి ప్రభావాన్ని వెల్లడిస్తుంది.",
|
|
692
|
+
lagna: "లగ్నం",
|
|
693
|
+
rashi: "రాశి",
|
|
694
|
+
nakshatra: "నక్షత్రం"
|
|
695
|
+
}
|
|
696
|
+
}, Pe = vr(null), Nr = ({
|
|
697
|
+
locale: R,
|
|
698
|
+
children: b
|
|
699
|
+
}) => {
|
|
700
|
+
const T = { locale: R, t: (C) => {
|
|
701
|
+
var E;
|
|
702
|
+
return ((E = Oe[R]) == null ? void 0 : E[C]) ?? C;
|
|
703
|
+
} };
|
|
704
|
+
return /* @__PURE__ */ d.jsx(Pe.Provider, { value: T, children: b });
|
|
705
|
+
};
|
|
706
|
+
function Fr() {
|
|
707
|
+
return pr(Pe);
|
|
708
|
+
}
|
|
709
|
+
const Ar = (R, b) => {
|
|
710
|
+
var S;
|
|
711
|
+
return ((S = Oe[R]) == null ? void 0 : S[b]) ?? b;
|
|
712
|
+
}, Ir = ({
|
|
713
|
+
name: R,
|
|
714
|
+
birthDate: b,
|
|
715
|
+
className: S = "",
|
|
716
|
+
locale: T,
|
|
717
|
+
showLanguageSelector: C = !0
|
|
718
|
+
}) => {
|
|
719
|
+
const E = Fr(), P = T ?? (E == null ? void 0 : E.locale) ?? "en", [j, f] = hr(P), x = j, l = (v) => Ar(x, v), y = R ?? l("guest");
|
|
720
|
+
return /* @__PURE__ */ d.jsxs("div", { className: `${_.container} ${S}`, children: [
|
|
721
|
+
/* @__PURE__ */ d.jsxs("div", { className: _.header, children: [
|
|
722
|
+
C && /* @__PURE__ */ d.jsxs("div", { className: _.langSelector, children: [
|
|
723
|
+
/* @__PURE__ */ d.jsx("label", { htmlFor: "kundli-lang", className: _.langLabel, children: "Language" }),
|
|
724
|
+
/* @__PURE__ */ d.jsx(
|
|
725
|
+
"select",
|
|
726
|
+
{
|
|
727
|
+
id: "kundli-lang",
|
|
728
|
+
value: x,
|
|
729
|
+
onChange: (v) => f(v.target.value),
|
|
730
|
+
className: _.langSelect,
|
|
731
|
+
children: kr.map((v) => /* @__PURE__ */ d.jsx("option", { value: v, children: Dr[v] }, v))
|
|
732
|
+
}
|
|
733
|
+
)
|
|
734
|
+
] }),
|
|
735
|
+
/* @__PURE__ */ d.jsx("h1", { className: _.title, children: l("kundli") }),
|
|
736
|
+
/* @__PURE__ */ d.jsx("p", { className: _.subtitle, children: l("birthChart") })
|
|
737
|
+
] }),
|
|
738
|
+
/* @__PURE__ */ d.jsx("div", { className: _.content, children: /* @__PURE__ */ d.jsxs("div", { className: _.card, children: [
|
|
739
|
+
/* @__PURE__ */ d.jsx("h2", { className: _.cardTitle, children: l("details") }),
|
|
740
|
+
/* @__PURE__ */ d.jsxs("p", { className: _.detail, children: [
|
|
741
|
+
/* @__PURE__ */ d.jsxs("span", { className: _.label, children: [
|
|
742
|
+
l("name"),
|
|
743
|
+
":"
|
|
744
|
+
] }),
|
|
745
|
+
" ",
|
|
746
|
+
y
|
|
747
|
+
] }),
|
|
748
|
+
b && /* @__PURE__ */ d.jsxs("p", { className: _.detail, children: [
|
|
749
|
+
/* @__PURE__ */ d.jsxs("span", { className: _.label, children: [
|
|
750
|
+
l("birthDate"),
|
|
751
|
+
":"
|
|
752
|
+
] }),
|
|
753
|
+
" ",
|
|
754
|
+
b
|
|
755
|
+
] }),
|
|
756
|
+
/* @__PURE__ */ d.jsx("p", { className: _.description, children: l("description") })
|
|
757
|
+
] }) })
|
|
758
|
+
] });
|
|
759
|
+
};
|
|
760
|
+
export {
|
|
761
|
+
Nr as I18nProvider,
|
|
762
|
+
Ir as KundliPage,
|
|
763
|
+
kr as SUPPORTED_LOCALES,
|
|
764
|
+
Fr as useI18n
|
|
765
|
+
};
|
|
766
|
+
//# sourceMappingURL=kundli-generator.js.map
|