@roxyapi/ui-react 0.5.0 → 0.6.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 +1 -1
- package/dist/components/ashtakavarga-grid.js +1 -90
- package/dist/components/ashtakavarga-grid.js.map +3 -3
- package/dist/components/biorhythm-chart.js +1 -90
- package/dist/components/biorhythm-chart.js.map +3 -3
- package/dist/components/choghadiya-grid.js +1 -90
- package/dist/components/choghadiya-grid.js.map +3 -3
- package/dist/components/compatibility-card.js +1 -90
- package/dist/components/compatibility-card.js.map +3 -3
- package/dist/components/dasha-timeline.js +1 -90
- package/dist/components/dasha-timeline.js.map +3 -3
- package/dist/components/data.js +1 -84
- package/dist/components/data.js.map +3 -3
- package/dist/components/divisional-chart.js +1 -90
- package/dist/components/divisional-chart.js.map +3 -3
- package/dist/components/dosha-card.js +1 -90
- package/dist/components/dosha-card.js.map +3 -3
- package/dist/components/endpoint-form.js +1 -108
- package/dist/components/endpoint-form.js.map +3 -3
- package/dist/components/guna-milan.js +1 -90
- package/dist/components/guna-milan.js.map +3 -3
- package/dist/components/hexagram.js +1 -90
- package/dist/components/hexagram.js.map +3 -3
- package/dist/components/horoscope-card.js +1 -90
- package/dist/components/horoscope-card.js.map +3 -3
- package/dist/components/kp-chart.js +1 -90
- package/dist/components/kp-chart.js.map +3 -3
- package/dist/components/kp-planets-table.js +1 -90
- package/dist/components/kp-planets-table.js.map +3 -3
- package/dist/components/kp-ruling-planets.js +1 -90
- package/dist/components/kp-ruling-planets.js.map +3 -3
- package/dist/components/location-search.js +1 -100
- package/dist/components/location-search.js.map +3 -3
- package/dist/components/moon-phase.js +1 -90
- package/dist/components/moon-phase.js.map +3 -3
- package/dist/components/nakshatra-card.js +1 -90
- package/dist/components/nakshatra-card.js.map +3 -3
- package/dist/components/natal-chart.js +1 -90
- package/dist/components/natal-chart.js.map +3 -3
- package/dist/components/numerology-card.js +1 -90
- package/dist/components/numerology-card.js.map +3 -3
- package/dist/components/panchang-table.js +1 -90
- package/dist/components/panchang-table.js.map +3 -3
- package/dist/components/shadbala-table.js +1 -90
- package/dist/components/shadbala-table.js.map +3 -3
- package/dist/components/synastry-chart.js +1 -90
- package/dist/components/synastry-chart.js.map +3 -3
- package/dist/components/tarot-card.js +1 -90
- package/dist/components/tarot-card.js.map +3 -3
- package/dist/components/tarot-spread.js +1 -90
- package/dist/components/tarot-spread.js.map +3 -3
- package/dist/components/transits-table.js +1 -90
- package/dist/components/transits-table.js.map +3 -3
- package/dist/components/vedic-kundli.js +1 -90
- package/dist/components/vedic-kundli.js.map +3 -3
- package/dist/components/vedic-planets-table.js +1 -90
- package/dist/components/vedic-planets-table.js.map +3 -3
- package/dist/components/western-planets-table.js +1 -90
- package/dist/components/western-planets-table.js.map +3 -3
- package/dist/components/yoga-list.js +1 -90
- package/dist/components/yoga-list.js.map +3 -3
- package/dist/index.cjs +1 -1509
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +1 -1476
- package/dist/index.js.map +3 -3
- package/dist/load-ui.d.ts +1 -1
- package/dist/load-ui.js +1 -46
- package/dist/load-ui.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,1477 +1,2 @@
|
|
|
1
|
-
// packages/ui-react/src/load-ui.ts
|
|
2
|
-
var SCRIPT_ID = "roxyapi-ui-loader";
|
|
3
|
-
var CDN_BASE_LATEST = "https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn";
|
|
4
|
-
var CDN_BASE_PREFIX = "https://cdn.jsdelivr.net/npm/@roxyapi/ui@";
|
|
5
|
-
var CDN_BASE_SUFFIX = "/dist/cdn";
|
|
6
|
-
var loaded = null;
|
|
7
|
-
function buildBase(version) {
|
|
8
|
-
if (!version || version === "latest") return CDN_BASE_LATEST;
|
|
9
|
-
return `${CDN_BASE_PREFIX}${version}${CDN_BASE_SUFFIX}`;
|
|
10
|
-
}
|
|
11
|
-
function ensureScriptLoaded(version = "latest") {
|
|
12
|
-
if (typeof document === "undefined") return Promise.resolve();
|
|
13
|
-
if (loaded) return loaded;
|
|
14
|
-
loaded = new Promise((resolve, reject) => {
|
|
15
|
-
const url = `${buildBase(version)}/roxy-ui.js`;
|
|
16
|
-
let existing = document.getElementById(SCRIPT_ID);
|
|
17
|
-
if (existing) {
|
|
18
|
-
if (existing.dataset.loaded === "true") {
|
|
19
|
-
resolve();
|
|
20
|
-
} else {
|
|
21
|
-
existing.addEventListener("load", () => resolve());
|
|
22
|
-
existing.addEventListener("error", () => reject(new Error("roxy-ui load failed")));
|
|
23
|
-
}
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
existing = document.createElement("script");
|
|
27
|
-
existing.id = SCRIPT_ID;
|
|
28
|
-
existing.src = url;
|
|
29
|
-
existing.async = true;
|
|
30
|
-
existing.crossOrigin = "anonymous";
|
|
31
|
-
existing.addEventListener("load", () => {
|
|
32
|
-
existing.dataset.loaded = "true";
|
|
33
|
-
resolve();
|
|
34
|
-
});
|
|
35
|
-
existing.addEventListener("error", () => reject(new Error("roxy-ui load failed")));
|
|
36
|
-
document.head.appendChild(existing);
|
|
37
|
-
});
|
|
38
|
-
return loaded;
|
|
39
|
-
}
|
|
40
|
-
var ROXY_UI_VERSION = "0.5.0";
|
|
41
|
-
|
|
42
|
-
// packages/ui-react/src/components/natal-chart.tsx
|
|
43
|
-
import * as React from "react";
|
|
44
|
-
var RoxyNatalChart = React.forwardRef(
|
|
45
|
-
function RoxyNatalChart2({ data, className, style, ...rest }, ref) {
|
|
46
|
-
const internal = React.useRef(null);
|
|
47
|
-
React.useImperativeHandle(
|
|
48
|
-
ref,
|
|
49
|
-
() => internal.current,
|
|
50
|
-
[]
|
|
51
|
-
);
|
|
52
|
-
const [loaded2, setLoaded] = React.useState(false);
|
|
53
|
-
const [error, setError] = React.useState(null);
|
|
54
|
-
React.useEffect(() => {
|
|
55
|
-
let active = true;
|
|
56
|
-
ensureScriptLoaded().then(() => {
|
|
57
|
-
if (active) setLoaded(true);
|
|
58
|
-
}).catch((err) => {
|
|
59
|
-
if (!active) return;
|
|
60
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
61
|
-
});
|
|
62
|
-
return () => {
|
|
63
|
-
active = false;
|
|
64
|
-
};
|
|
65
|
-
}, []);
|
|
66
|
-
React.useEffect(() => {
|
|
67
|
-
const el = internal.current;
|
|
68
|
-
if (el && data !== void 0) {
|
|
69
|
-
el.data = data;
|
|
70
|
-
}
|
|
71
|
-
}, [data, loaded2]);
|
|
72
|
-
if (error) {
|
|
73
|
-
return React.createElement(
|
|
74
|
-
"div",
|
|
75
|
-
{ role: "alert", className, style },
|
|
76
|
-
`Roxy UI script load failed: ${error.message}`
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
return React.createElement("roxy-natal-chart", {
|
|
80
|
-
ref: internal,
|
|
81
|
-
className,
|
|
82
|
-
style,
|
|
83
|
-
...rest
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
);
|
|
87
|
-
|
|
88
|
-
// packages/ui-react/src/components/synastry-chart.tsx
|
|
89
|
-
import * as React2 from "react";
|
|
90
|
-
var RoxySynastryChart = React2.forwardRef(
|
|
91
|
-
function RoxySynastryChart2({ data, className, style, ...rest }, ref) {
|
|
92
|
-
const internal = React2.useRef(null);
|
|
93
|
-
React2.useImperativeHandle(
|
|
94
|
-
ref,
|
|
95
|
-
() => internal.current,
|
|
96
|
-
[]
|
|
97
|
-
);
|
|
98
|
-
const [loaded2, setLoaded] = React2.useState(false);
|
|
99
|
-
const [error, setError] = React2.useState(null);
|
|
100
|
-
React2.useEffect(() => {
|
|
101
|
-
let active = true;
|
|
102
|
-
ensureScriptLoaded().then(() => {
|
|
103
|
-
if (active) setLoaded(true);
|
|
104
|
-
}).catch((err) => {
|
|
105
|
-
if (!active) return;
|
|
106
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
107
|
-
});
|
|
108
|
-
return () => {
|
|
109
|
-
active = false;
|
|
110
|
-
};
|
|
111
|
-
}, []);
|
|
112
|
-
React2.useEffect(() => {
|
|
113
|
-
const el = internal.current;
|
|
114
|
-
if (el && data !== void 0) {
|
|
115
|
-
el.data = data;
|
|
116
|
-
}
|
|
117
|
-
}, [data, loaded2]);
|
|
118
|
-
if (error) {
|
|
119
|
-
return React2.createElement(
|
|
120
|
-
"div",
|
|
121
|
-
{ role: "alert", className, style },
|
|
122
|
-
`Roxy UI script load failed: ${error.message}`
|
|
123
|
-
);
|
|
124
|
-
}
|
|
125
|
-
return React2.createElement("roxy-synastry-chart", {
|
|
126
|
-
ref: internal,
|
|
127
|
-
className,
|
|
128
|
-
style,
|
|
129
|
-
...rest
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
);
|
|
133
|
-
|
|
134
|
-
// packages/ui-react/src/components/western-planets-table.tsx
|
|
135
|
-
import * as React3 from "react";
|
|
136
|
-
var RoxyWesternPlanetsTable = React3.forwardRef(
|
|
137
|
-
function RoxyWesternPlanetsTable2({ data, className, style, ...rest }, ref) {
|
|
138
|
-
const internal = React3.useRef(null);
|
|
139
|
-
React3.useImperativeHandle(
|
|
140
|
-
ref,
|
|
141
|
-
() => internal.current,
|
|
142
|
-
[]
|
|
143
|
-
);
|
|
144
|
-
const [loaded2, setLoaded] = React3.useState(false);
|
|
145
|
-
const [error, setError] = React3.useState(null);
|
|
146
|
-
React3.useEffect(() => {
|
|
147
|
-
let active = true;
|
|
148
|
-
ensureScriptLoaded().then(() => {
|
|
149
|
-
if (active) setLoaded(true);
|
|
150
|
-
}).catch((err) => {
|
|
151
|
-
if (!active) return;
|
|
152
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
153
|
-
});
|
|
154
|
-
return () => {
|
|
155
|
-
active = false;
|
|
156
|
-
};
|
|
157
|
-
}, []);
|
|
158
|
-
React3.useEffect(() => {
|
|
159
|
-
const el = internal.current;
|
|
160
|
-
if (el && data !== void 0) {
|
|
161
|
-
el.data = data;
|
|
162
|
-
}
|
|
163
|
-
}, [data, loaded2]);
|
|
164
|
-
if (error) {
|
|
165
|
-
return React3.createElement(
|
|
166
|
-
"div",
|
|
167
|
-
{ role: "alert", className, style },
|
|
168
|
-
`Roxy UI script load failed: ${error.message}`
|
|
169
|
-
);
|
|
170
|
-
}
|
|
171
|
-
return React3.createElement("roxy-western-planets-table", {
|
|
172
|
-
ref: internal,
|
|
173
|
-
className,
|
|
174
|
-
style,
|
|
175
|
-
...rest
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
);
|
|
179
|
-
|
|
180
|
-
// packages/ui-react/src/components/transits-table.tsx
|
|
181
|
-
import * as React4 from "react";
|
|
182
|
-
var RoxyTransitsTable = React4.forwardRef(
|
|
183
|
-
function RoxyTransitsTable2({ data, className, style, ...rest }, ref) {
|
|
184
|
-
const internal = React4.useRef(null);
|
|
185
|
-
React4.useImperativeHandle(
|
|
186
|
-
ref,
|
|
187
|
-
() => internal.current,
|
|
188
|
-
[]
|
|
189
|
-
);
|
|
190
|
-
const [loaded2, setLoaded] = React4.useState(false);
|
|
191
|
-
const [error, setError] = React4.useState(null);
|
|
192
|
-
React4.useEffect(() => {
|
|
193
|
-
let active = true;
|
|
194
|
-
ensureScriptLoaded().then(() => {
|
|
195
|
-
if (active) setLoaded(true);
|
|
196
|
-
}).catch((err) => {
|
|
197
|
-
if (!active) return;
|
|
198
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
199
|
-
});
|
|
200
|
-
return () => {
|
|
201
|
-
active = false;
|
|
202
|
-
};
|
|
203
|
-
}, []);
|
|
204
|
-
React4.useEffect(() => {
|
|
205
|
-
const el = internal.current;
|
|
206
|
-
if (el && data !== void 0) {
|
|
207
|
-
el.data = data;
|
|
208
|
-
}
|
|
209
|
-
}, [data, loaded2]);
|
|
210
|
-
if (error) {
|
|
211
|
-
return React4.createElement(
|
|
212
|
-
"div",
|
|
213
|
-
{ role: "alert", className, style },
|
|
214
|
-
`Roxy UI script load failed: ${error.message}`
|
|
215
|
-
);
|
|
216
|
-
}
|
|
217
|
-
return React4.createElement("roxy-transits-table", {
|
|
218
|
-
ref: internal,
|
|
219
|
-
className,
|
|
220
|
-
style,
|
|
221
|
-
...rest
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
);
|
|
225
|
-
|
|
226
|
-
// packages/ui-react/src/components/moon-phase.tsx
|
|
227
|
-
import * as React5 from "react";
|
|
228
|
-
var RoxyMoonPhase = React5.forwardRef(
|
|
229
|
-
function RoxyMoonPhase2({ data, className, style, ...rest }, ref) {
|
|
230
|
-
const internal = React5.useRef(null);
|
|
231
|
-
React5.useImperativeHandle(
|
|
232
|
-
ref,
|
|
233
|
-
() => internal.current,
|
|
234
|
-
[]
|
|
235
|
-
);
|
|
236
|
-
const [loaded2, setLoaded] = React5.useState(false);
|
|
237
|
-
const [error, setError] = React5.useState(null);
|
|
238
|
-
React5.useEffect(() => {
|
|
239
|
-
let active = true;
|
|
240
|
-
ensureScriptLoaded().then(() => {
|
|
241
|
-
if (active) setLoaded(true);
|
|
242
|
-
}).catch((err) => {
|
|
243
|
-
if (!active) return;
|
|
244
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
245
|
-
});
|
|
246
|
-
return () => {
|
|
247
|
-
active = false;
|
|
248
|
-
};
|
|
249
|
-
}, []);
|
|
250
|
-
React5.useEffect(() => {
|
|
251
|
-
const el = internal.current;
|
|
252
|
-
if (el && data !== void 0) {
|
|
253
|
-
el.data = data;
|
|
254
|
-
}
|
|
255
|
-
}, [data, loaded2]);
|
|
256
|
-
if (error) {
|
|
257
|
-
return React5.createElement(
|
|
258
|
-
"div",
|
|
259
|
-
{ role: "alert", className, style },
|
|
260
|
-
`Roxy UI script load failed: ${error.message}`
|
|
261
|
-
);
|
|
262
|
-
}
|
|
263
|
-
return React5.createElement("roxy-moon-phase", {
|
|
264
|
-
ref: internal,
|
|
265
|
-
className,
|
|
266
|
-
style,
|
|
267
|
-
...rest
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
);
|
|
271
|
-
|
|
272
|
-
// packages/ui-react/src/components/horoscope-card.tsx
|
|
273
|
-
import * as React6 from "react";
|
|
274
|
-
var RoxyHoroscopeCard = React6.forwardRef(
|
|
275
|
-
function RoxyHoroscopeCard2({ data, className, style, ...rest }, ref) {
|
|
276
|
-
const internal = React6.useRef(null);
|
|
277
|
-
React6.useImperativeHandle(
|
|
278
|
-
ref,
|
|
279
|
-
() => internal.current,
|
|
280
|
-
[]
|
|
281
|
-
);
|
|
282
|
-
const [loaded2, setLoaded] = React6.useState(false);
|
|
283
|
-
const [error, setError] = React6.useState(null);
|
|
284
|
-
React6.useEffect(() => {
|
|
285
|
-
let active = true;
|
|
286
|
-
ensureScriptLoaded().then(() => {
|
|
287
|
-
if (active) setLoaded(true);
|
|
288
|
-
}).catch((err) => {
|
|
289
|
-
if (!active) return;
|
|
290
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
291
|
-
});
|
|
292
|
-
return () => {
|
|
293
|
-
active = false;
|
|
294
|
-
};
|
|
295
|
-
}, []);
|
|
296
|
-
React6.useEffect(() => {
|
|
297
|
-
const el = internal.current;
|
|
298
|
-
if (el && data !== void 0) {
|
|
299
|
-
el.data = data;
|
|
300
|
-
}
|
|
301
|
-
}, [data, loaded2]);
|
|
302
|
-
if (error) {
|
|
303
|
-
return React6.createElement(
|
|
304
|
-
"div",
|
|
305
|
-
{ role: "alert", className, style },
|
|
306
|
-
`Roxy UI script load failed: ${error.message}`
|
|
307
|
-
);
|
|
308
|
-
}
|
|
309
|
-
return React6.createElement("roxy-horoscope-card", {
|
|
310
|
-
ref: internal,
|
|
311
|
-
className,
|
|
312
|
-
style,
|
|
313
|
-
...rest
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
);
|
|
317
|
-
|
|
318
|
-
// packages/ui-react/src/components/compatibility-card.tsx
|
|
319
|
-
import * as React7 from "react";
|
|
320
|
-
var RoxyCompatibilityCard = React7.forwardRef(
|
|
321
|
-
function RoxyCompatibilityCard2({ data, className, style, ...rest }, ref) {
|
|
322
|
-
const internal = React7.useRef(null);
|
|
323
|
-
React7.useImperativeHandle(
|
|
324
|
-
ref,
|
|
325
|
-
() => internal.current,
|
|
326
|
-
[]
|
|
327
|
-
);
|
|
328
|
-
const [loaded2, setLoaded] = React7.useState(false);
|
|
329
|
-
const [error, setError] = React7.useState(null);
|
|
330
|
-
React7.useEffect(() => {
|
|
331
|
-
let active = true;
|
|
332
|
-
ensureScriptLoaded().then(() => {
|
|
333
|
-
if (active) setLoaded(true);
|
|
334
|
-
}).catch((err) => {
|
|
335
|
-
if (!active) return;
|
|
336
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
337
|
-
});
|
|
338
|
-
return () => {
|
|
339
|
-
active = false;
|
|
340
|
-
};
|
|
341
|
-
}, []);
|
|
342
|
-
React7.useEffect(() => {
|
|
343
|
-
const el = internal.current;
|
|
344
|
-
if (el && data !== void 0) {
|
|
345
|
-
el.data = data;
|
|
346
|
-
}
|
|
347
|
-
}, [data, loaded2]);
|
|
348
|
-
if (error) {
|
|
349
|
-
return React7.createElement(
|
|
350
|
-
"div",
|
|
351
|
-
{ role: "alert", className, style },
|
|
352
|
-
`Roxy UI script load failed: ${error.message}`
|
|
353
|
-
);
|
|
354
|
-
}
|
|
355
|
-
return React7.createElement("roxy-compatibility-card", {
|
|
356
|
-
ref: internal,
|
|
357
|
-
className,
|
|
358
|
-
style,
|
|
359
|
-
...rest
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
);
|
|
363
|
-
|
|
364
|
-
// packages/ui-react/src/components/vedic-kundli.tsx
|
|
365
|
-
import * as React8 from "react";
|
|
366
|
-
var RoxyVedicKundli = React8.forwardRef(
|
|
367
|
-
function RoxyVedicKundli2({ data, className, style, ...rest }, ref) {
|
|
368
|
-
const internal = React8.useRef(null);
|
|
369
|
-
React8.useImperativeHandle(
|
|
370
|
-
ref,
|
|
371
|
-
() => internal.current,
|
|
372
|
-
[]
|
|
373
|
-
);
|
|
374
|
-
const [loaded2, setLoaded] = React8.useState(false);
|
|
375
|
-
const [error, setError] = React8.useState(null);
|
|
376
|
-
React8.useEffect(() => {
|
|
377
|
-
let active = true;
|
|
378
|
-
ensureScriptLoaded().then(() => {
|
|
379
|
-
if (active) setLoaded(true);
|
|
380
|
-
}).catch((err) => {
|
|
381
|
-
if (!active) return;
|
|
382
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
383
|
-
});
|
|
384
|
-
return () => {
|
|
385
|
-
active = false;
|
|
386
|
-
};
|
|
387
|
-
}, []);
|
|
388
|
-
React8.useEffect(() => {
|
|
389
|
-
const el = internal.current;
|
|
390
|
-
if (el && data !== void 0) {
|
|
391
|
-
el.data = data;
|
|
392
|
-
}
|
|
393
|
-
}, [data, loaded2]);
|
|
394
|
-
if (error) {
|
|
395
|
-
return React8.createElement(
|
|
396
|
-
"div",
|
|
397
|
-
{ role: "alert", className, style },
|
|
398
|
-
`Roxy UI script load failed: ${error.message}`
|
|
399
|
-
);
|
|
400
|
-
}
|
|
401
|
-
return React8.createElement("roxy-vedic-kundli", {
|
|
402
|
-
ref: internal,
|
|
403
|
-
className,
|
|
404
|
-
style,
|
|
405
|
-
...rest
|
|
406
|
-
});
|
|
407
|
-
}
|
|
408
|
-
);
|
|
409
|
-
|
|
410
|
-
// packages/ui-react/src/components/divisional-chart.tsx
|
|
411
|
-
import * as React9 from "react";
|
|
412
|
-
var RoxyDivisionalChart = React9.forwardRef(
|
|
413
|
-
function RoxyDivisionalChart2({ data, className, style, ...rest }, ref) {
|
|
414
|
-
const internal = React9.useRef(null);
|
|
415
|
-
React9.useImperativeHandle(
|
|
416
|
-
ref,
|
|
417
|
-
() => internal.current,
|
|
418
|
-
[]
|
|
419
|
-
);
|
|
420
|
-
const [loaded2, setLoaded] = React9.useState(false);
|
|
421
|
-
const [error, setError] = React9.useState(null);
|
|
422
|
-
React9.useEffect(() => {
|
|
423
|
-
let active = true;
|
|
424
|
-
ensureScriptLoaded().then(() => {
|
|
425
|
-
if (active) setLoaded(true);
|
|
426
|
-
}).catch((err) => {
|
|
427
|
-
if (!active) return;
|
|
428
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
429
|
-
});
|
|
430
|
-
return () => {
|
|
431
|
-
active = false;
|
|
432
|
-
};
|
|
433
|
-
}, []);
|
|
434
|
-
React9.useEffect(() => {
|
|
435
|
-
const el = internal.current;
|
|
436
|
-
if (el && data !== void 0) {
|
|
437
|
-
el.data = data;
|
|
438
|
-
}
|
|
439
|
-
}, [data, loaded2]);
|
|
440
|
-
if (error) {
|
|
441
|
-
return React9.createElement(
|
|
442
|
-
"div",
|
|
443
|
-
{ role: "alert", className, style },
|
|
444
|
-
`Roxy UI script load failed: ${error.message}`
|
|
445
|
-
);
|
|
446
|
-
}
|
|
447
|
-
return React9.createElement("roxy-divisional-chart", {
|
|
448
|
-
ref: internal,
|
|
449
|
-
className,
|
|
450
|
-
style,
|
|
451
|
-
...rest
|
|
452
|
-
});
|
|
453
|
-
}
|
|
454
|
-
);
|
|
455
|
-
|
|
456
|
-
// packages/ui-react/src/components/kp-chart.tsx
|
|
457
|
-
import * as React10 from "react";
|
|
458
|
-
var RoxyKpChart = React10.forwardRef(
|
|
459
|
-
function RoxyKpChart2({ data, className, style, ...rest }, ref) {
|
|
460
|
-
const internal = React10.useRef(null);
|
|
461
|
-
React10.useImperativeHandle(
|
|
462
|
-
ref,
|
|
463
|
-
() => internal.current,
|
|
464
|
-
[]
|
|
465
|
-
);
|
|
466
|
-
const [loaded2, setLoaded] = React10.useState(false);
|
|
467
|
-
const [error, setError] = React10.useState(null);
|
|
468
|
-
React10.useEffect(() => {
|
|
469
|
-
let active = true;
|
|
470
|
-
ensureScriptLoaded().then(() => {
|
|
471
|
-
if (active) setLoaded(true);
|
|
472
|
-
}).catch((err) => {
|
|
473
|
-
if (!active) return;
|
|
474
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
475
|
-
});
|
|
476
|
-
return () => {
|
|
477
|
-
active = false;
|
|
478
|
-
};
|
|
479
|
-
}, []);
|
|
480
|
-
React10.useEffect(() => {
|
|
481
|
-
const el = internal.current;
|
|
482
|
-
if (el && data !== void 0) {
|
|
483
|
-
el.data = data;
|
|
484
|
-
}
|
|
485
|
-
}, [data, loaded2]);
|
|
486
|
-
if (error) {
|
|
487
|
-
return React10.createElement(
|
|
488
|
-
"div",
|
|
489
|
-
{ role: "alert", className, style },
|
|
490
|
-
`Roxy UI script load failed: ${error.message}`
|
|
491
|
-
);
|
|
492
|
-
}
|
|
493
|
-
return React10.createElement("roxy-kp-chart", {
|
|
494
|
-
ref: internal,
|
|
495
|
-
className,
|
|
496
|
-
style,
|
|
497
|
-
...rest
|
|
498
|
-
});
|
|
499
|
-
}
|
|
500
|
-
);
|
|
501
|
-
|
|
502
|
-
// packages/ui-react/src/components/vedic-planets-table.tsx
|
|
503
|
-
import * as React11 from "react";
|
|
504
|
-
var RoxyVedicPlanetsTable = React11.forwardRef(
|
|
505
|
-
function RoxyVedicPlanetsTable2({ data, className, style, ...rest }, ref) {
|
|
506
|
-
const internal = React11.useRef(null);
|
|
507
|
-
React11.useImperativeHandle(
|
|
508
|
-
ref,
|
|
509
|
-
() => internal.current,
|
|
510
|
-
[]
|
|
511
|
-
);
|
|
512
|
-
const [loaded2, setLoaded] = React11.useState(false);
|
|
513
|
-
const [error, setError] = React11.useState(null);
|
|
514
|
-
React11.useEffect(() => {
|
|
515
|
-
let active = true;
|
|
516
|
-
ensureScriptLoaded().then(() => {
|
|
517
|
-
if (active) setLoaded(true);
|
|
518
|
-
}).catch((err) => {
|
|
519
|
-
if (!active) return;
|
|
520
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
521
|
-
});
|
|
522
|
-
return () => {
|
|
523
|
-
active = false;
|
|
524
|
-
};
|
|
525
|
-
}, []);
|
|
526
|
-
React11.useEffect(() => {
|
|
527
|
-
const el = internal.current;
|
|
528
|
-
if (el && data !== void 0) {
|
|
529
|
-
el.data = data;
|
|
530
|
-
}
|
|
531
|
-
}, [data, loaded2]);
|
|
532
|
-
if (error) {
|
|
533
|
-
return React11.createElement(
|
|
534
|
-
"div",
|
|
535
|
-
{ role: "alert", className, style },
|
|
536
|
-
`Roxy UI script load failed: ${error.message}`
|
|
537
|
-
);
|
|
538
|
-
}
|
|
539
|
-
return React11.createElement("roxy-vedic-planets-table", {
|
|
540
|
-
ref: internal,
|
|
541
|
-
className,
|
|
542
|
-
style,
|
|
543
|
-
...rest
|
|
544
|
-
});
|
|
545
|
-
}
|
|
546
|
-
);
|
|
547
|
-
|
|
548
|
-
// packages/ui-react/src/components/kp-planets-table.tsx
|
|
549
|
-
import * as React12 from "react";
|
|
550
|
-
var RoxyKpPlanetsTable = React12.forwardRef(
|
|
551
|
-
function RoxyKpPlanetsTable2({ data, className, style, ...rest }, ref) {
|
|
552
|
-
const internal = React12.useRef(null);
|
|
553
|
-
React12.useImperativeHandle(
|
|
554
|
-
ref,
|
|
555
|
-
() => internal.current,
|
|
556
|
-
[]
|
|
557
|
-
);
|
|
558
|
-
const [loaded2, setLoaded] = React12.useState(false);
|
|
559
|
-
const [error, setError] = React12.useState(null);
|
|
560
|
-
React12.useEffect(() => {
|
|
561
|
-
let active = true;
|
|
562
|
-
ensureScriptLoaded().then(() => {
|
|
563
|
-
if (active) setLoaded(true);
|
|
564
|
-
}).catch((err) => {
|
|
565
|
-
if (!active) return;
|
|
566
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
567
|
-
});
|
|
568
|
-
return () => {
|
|
569
|
-
active = false;
|
|
570
|
-
};
|
|
571
|
-
}, []);
|
|
572
|
-
React12.useEffect(() => {
|
|
573
|
-
const el = internal.current;
|
|
574
|
-
if (el && data !== void 0) {
|
|
575
|
-
el.data = data;
|
|
576
|
-
}
|
|
577
|
-
}, [data, loaded2]);
|
|
578
|
-
if (error) {
|
|
579
|
-
return React12.createElement(
|
|
580
|
-
"div",
|
|
581
|
-
{ role: "alert", className, style },
|
|
582
|
-
`Roxy UI script load failed: ${error.message}`
|
|
583
|
-
);
|
|
584
|
-
}
|
|
585
|
-
return React12.createElement("roxy-kp-planets-table", {
|
|
586
|
-
ref: internal,
|
|
587
|
-
className,
|
|
588
|
-
style,
|
|
589
|
-
...rest
|
|
590
|
-
});
|
|
591
|
-
}
|
|
592
|
-
);
|
|
593
|
-
|
|
594
|
-
// packages/ui-react/src/components/kp-ruling-planets.tsx
|
|
595
|
-
import * as React13 from "react";
|
|
596
|
-
var RoxyKpRulingPlanets = React13.forwardRef(
|
|
597
|
-
function RoxyKpRulingPlanets2({ data, className, style, ...rest }, ref) {
|
|
598
|
-
const internal = React13.useRef(null);
|
|
599
|
-
React13.useImperativeHandle(
|
|
600
|
-
ref,
|
|
601
|
-
() => internal.current,
|
|
602
|
-
[]
|
|
603
|
-
);
|
|
604
|
-
const [loaded2, setLoaded] = React13.useState(false);
|
|
605
|
-
const [error, setError] = React13.useState(null);
|
|
606
|
-
React13.useEffect(() => {
|
|
607
|
-
let active = true;
|
|
608
|
-
ensureScriptLoaded().then(() => {
|
|
609
|
-
if (active) setLoaded(true);
|
|
610
|
-
}).catch((err) => {
|
|
611
|
-
if (!active) return;
|
|
612
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
613
|
-
});
|
|
614
|
-
return () => {
|
|
615
|
-
active = false;
|
|
616
|
-
};
|
|
617
|
-
}, []);
|
|
618
|
-
React13.useEffect(() => {
|
|
619
|
-
const el = internal.current;
|
|
620
|
-
if (el && data !== void 0) {
|
|
621
|
-
el.data = data;
|
|
622
|
-
}
|
|
623
|
-
}, [data, loaded2]);
|
|
624
|
-
if (error) {
|
|
625
|
-
return React13.createElement(
|
|
626
|
-
"div",
|
|
627
|
-
{ role: "alert", className, style },
|
|
628
|
-
`Roxy UI script load failed: ${error.message}`
|
|
629
|
-
);
|
|
630
|
-
}
|
|
631
|
-
return React13.createElement("roxy-kp-ruling-planets", {
|
|
632
|
-
ref: internal,
|
|
633
|
-
className,
|
|
634
|
-
style,
|
|
635
|
-
...rest
|
|
636
|
-
});
|
|
637
|
-
}
|
|
638
|
-
);
|
|
639
|
-
|
|
640
|
-
// packages/ui-react/src/components/ashtakavarga-grid.tsx
|
|
641
|
-
import * as React14 from "react";
|
|
642
|
-
var RoxyAshtakavargaGrid = React14.forwardRef(
|
|
643
|
-
function RoxyAshtakavargaGrid2({ data, className, style, ...rest }, ref) {
|
|
644
|
-
const internal = React14.useRef(null);
|
|
645
|
-
React14.useImperativeHandle(
|
|
646
|
-
ref,
|
|
647
|
-
() => internal.current,
|
|
648
|
-
[]
|
|
649
|
-
);
|
|
650
|
-
const [loaded2, setLoaded] = React14.useState(false);
|
|
651
|
-
const [error, setError] = React14.useState(null);
|
|
652
|
-
React14.useEffect(() => {
|
|
653
|
-
let active = true;
|
|
654
|
-
ensureScriptLoaded().then(() => {
|
|
655
|
-
if (active) setLoaded(true);
|
|
656
|
-
}).catch((err) => {
|
|
657
|
-
if (!active) return;
|
|
658
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
659
|
-
});
|
|
660
|
-
return () => {
|
|
661
|
-
active = false;
|
|
662
|
-
};
|
|
663
|
-
}, []);
|
|
664
|
-
React14.useEffect(() => {
|
|
665
|
-
const el = internal.current;
|
|
666
|
-
if (el && data !== void 0) {
|
|
667
|
-
el.data = data;
|
|
668
|
-
}
|
|
669
|
-
}, [data, loaded2]);
|
|
670
|
-
if (error) {
|
|
671
|
-
return React14.createElement(
|
|
672
|
-
"div",
|
|
673
|
-
{ role: "alert", className, style },
|
|
674
|
-
`Roxy UI script load failed: ${error.message}`
|
|
675
|
-
);
|
|
676
|
-
}
|
|
677
|
-
return React14.createElement("roxy-ashtakavarga-grid", {
|
|
678
|
-
ref: internal,
|
|
679
|
-
className,
|
|
680
|
-
style,
|
|
681
|
-
...rest
|
|
682
|
-
});
|
|
683
|
-
}
|
|
684
|
-
);
|
|
685
|
-
|
|
686
|
-
// packages/ui-react/src/components/shadbala-table.tsx
|
|
687
|
-
import * as React15 from "react";
|
|
688
|
-
var RoxyShadbalaTable = React15.forwardRef(
|
|
689
|
-
function RoxyShadbalaTable2({ data, className, style, ...rest }, ref) {
|
|
690
|
-
const internal = React15.useRef(null);
|
|
691
|
-
React15.useImperativeHandle(
|
|
692
|
-
ref,
|
|
693
|
-
() => internal.current,
|
|
694
|
-
[]
|
|
695
|
-
);
|
|
696
|
-
const [loaded2, setLoaded] = React15.useState(false);
|
|
697
|
-
const [error, setError] = React15.useState(null);
|
|
698
|
-
React15.useEffect(() => {
|
|
699
|
-
let active = true;
|
|
700
|
-
ensureScriptLoaded().then(() => {
|
|
701
|
-
if (active) setLoaded(true);
|
|
702
|
-
}).catch((err) => {
|
|
703
|
-
if (!active) return;
|
|
704
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
705
|
-
});
|
|
706
|
-
return () => {
|
|
707
|
-
active = false;
|
|
708
|
-
};
|
|
709
|
-
}, []);
|
|
710
|
-
React15.useEffect(() => {
|
|
711
|
-
const el = internal.current;
|
|
712
|
-
if (el && data !== void 0) {
|
|
713
|
-
el.data = data;
|
|
714
|
-
}
|
|
715
|
-
}, [data, loaded2]);
|
|
716
|
-
if (error) {
|
|
717
|
-
return React15.createElement(
|
|
718
|
-
"div",
|
|
719
|
-
{ role: "alert", className, style },
|
|
720
|
-
`Roxy UI script load failed: ${error.message}`
|
|
721
|
-
);
|
|
722
|
-
}
|
|
723
|
-
return React15.createElement("roxy-shadbala-table", {
|
|
724
|
-
ref: internal,
|
|
725
|
-
className,
|
|
726
|
-
style,
|
|
727
|
-
...rest
|
|
728
|
-
});
|
|
729
|
-
}
|
|
730
|
-
);
|
|
731
|
-
|
|
732
|
-
// packages/ui-react/src/components/dasha-timeline.tsx
|
|
733
|
-
import * as React16 from "react";
|
|
734
|
-
var RoxyDashaTimeline = React16.forwardRef(
|
|
735
|
-
function RoxyDashaTimeline2({ data, className, style, ...rest }, ref) {
|
|
736
|
-
const internal = React16.useRef(null);
|
|
737
|
-
React16.useImperativeHandle(
|
|
738
|
-
ref,
|
|
739
|
-
() => internal.current,
|
|
740
|
-
[]
|
|
741
|
-
);
|
|
742
|
-
const [loaded2, setLoaded] = React16.useState(false);
|
|
743
|
-
const [error, setError] = React16.useState(null);
|
|
744
|
-
React16.useEffect(() => {
|
|
745
|
-
let active = true;
|
|
746
|
-
ensureScriptLoaded().then(() => {
|
|
747
|
-
if (active) setLoaded(true);
|
|
748
|
-
}).catch((err) => {
|
|
749
|
-
if (!active) return;
|
|
750
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
751
|
-
});
|
|
752
|
-
return () => {
|
|
753
|
-
active = false;
|
|
754
|
-
};
|
|
755
|
-
}, []);
|
|
756
|
-
React16.useEffect(() => {
|
|
757
|
-
const el = internal.current;
|
|
758
|
-
if (el && data !== void 0) {
|
|
759
|
-
el.data = data;
|
|
760
|
-
}
|
|
761
|
-
}, [data, loaded2]);
|
|
762
|
-
if (error) {
|
|
763
|
-
return React16.createElement(
|
|
764
|
-
"div",
|
|
765
|
-
{ role: "alert", className, style },
|
|
766
|
-
`Roxy UI script load failed: ${error.message}`
|
|
767
|
-
);
|
|
768
|
-
}
|
|
769
|
-
return React16.createElement("roxy-dasha-timeline", {
|
|
770
|
-
ref: internal,
|
|
771
|
-
className,
|
|
772
|
-
style,
|
|
773
|
-
...rest
|
|
774
|
-
});
|
|
775
|
-
}
|
|
776
|
-
);
|
|
777
|
-
|
|
778
|
-
// packages/ui-react/src/components/guna-milan.tsx
|
|
779
|
-
import * as React17 from "react";
|
|
780
|
-
var RoxyGunaMilan = React17.forwardRef(
|
|
781
|
-
function RoxyGunaMilan2({ data, className, style, ...rest }, ref) {
|
|
782
|
-
const internal = React17.useRef(null);
|
|
783
|
-
React17.useImperativeHandle(
|
|
784
|
-
ref,
|
|
785
|
-
() => internal.current,
|
|
786
|
-
[]
|
|
787
|
-
);
|
|
788
|
-
const [loaded2, setLoaded] = React17.useState(false);
|
|
789
|
-
const [error, setError] = React17.useState(null);
|
|
790
|
-
React17.useEffect(() => {
|
|
791
|
-
let active = true;
|
|
792
|
-
ensureScriptLoaded().then(() => {
|
|
793
|
-
if (active) setLoaded(true);
|
|
794
|
-
}).catch((err) => {
|
|
795
|
-
if (!active) return;
|
|
796
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
797
|
-
});
|
|
798
|
-
return () => {
|
|
799
|
-
active = false;
|
|
800
|
-
};
|
|
801
|
-
}, []);
|
|
802
|
-
React17.useEffect(() => {
|
|
803
|
-
const el = internal.current;
|
|
804
|
-
if (el && data !== void 0) {
|
|
805
|
-
el.data = data;
|
|
806
|
-
}
|
|
807
|
-
}, [data, loaded2]);
|
|
808
|
-
if (error) {
|
|
809
|
-
return React17.createElement(
|
|
810
|
-
"div",
|
|
811
|
-
{ role: "alert", className, style },
|
|
812
|
-
`Roxy UI script load failed: ${error.message}`
|
|
813
|
-
);
|
|
814
|
-
}
|
|
815
|
-
return React17.createElement("roxy-guna-milan", {
|
|
816
|
-
ref: internal,
|
|
817
|
-
className,
|
|
818
|
-
style,
|
|
819
|
-
...rest
|
|
820
|
-
});
|
|
821
|
-
}
|
|
822
|
-
);
|
|
823
|
-
|
|
824
|
-
// packages/ui-react/src/components/panchang-table.tsx
|
|
825
|
-
import * as React18 from "react";
|
|
826
|
-
var RoxyPanchangTable = React18.forwardRef(
|
|
827
|
-
function RoxyPanchangTable2({ data, className, style, ...rest }, ref) {
|
|
828
|
-
const internal = React18.useRef(null);
|
|
829
|
-
React18.useImperativeHandle(
|
|
830
|
-
ref,
|
|
831
|
-
() => internal.current,
|
|
832
|
-
[]
|
|
833
|
-
);
|
|
834
|
-
const [loaded2, setLoaded] = React18.useState(false);
|
|
835
|
-
const [error, setError] = React18.useState(null);
|
|
836
|
-
React18.useEffect(() => {
|
|
837
|
-
let active = true;
|
|
838
|
-
ensureScriptLoaded().then(() => {
|
|
839
|
-
if (active) setLoaded(true);
|
|
840
|
-
}).catch((err) => {
|
|
841
|
-
if (!active) return;
|
|
842
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
843
|
-
});
|
|
844
|
-
return () => {
|
|
845
|
-
active = false;
|
|
846
|
-
};
|
|
847
|
-
}, []);
|
|
848
|
-
React18.useEffect(() => {
|
|
849
|
-
const el = internal.current;
|
|
850
|
-
if (el && data !== void 0) {
|
|
851
|
-
el.data = data;
|
|
852
|
-
}
|
|
853
|
-
}, [data, loaded2]);
|
|
854
|
-
if (error) {
|
|
855
|
-
return React18.createElement(
|
|
856
|
-
"div",
|
|
857
|
-
{ role: "alert", className, style },
|
|
858
|
-
`Roxy UI script load failed: ${error.message}`
|
|
859
|
-
);
|
|
860
|
-
}
|
|
861
|
-
return React18.createElement("roxy-panchang-table", {
|
|
862
|
-
ref: internal,
|
|
863
|
-
className,
|
|
864
|
-
style,
|
|
865
|
-
...rest
|
|
866
|
-
});
|
|
867
|
-
}
|
|
868
|
-
);
|
|
869
|
-
|
|
870
|
-
// packages/ui-react/src/components/choghadiya-grid.tsx
|
|
871
|
-
import * as React19 from "react";
|
|
872
|
-
var RoxyChoghadiyaGrid = React19.forwardRef(
|
|
873
|
-
function RoxyChoghadiyaGrid2({ data, className, style, ...rest }, ref) {
|
|
874
|
-
const internal = React19.useRef(null);
|
|
875
|
-
React19.useImperativeHandle(
|
|
876
|
-
ref,
|
|
877
|
-
() => internal.current,
|
|
878
|
-
[]
|
|
879
|
-
);
|
|
880
|
-
const [loaded2, setLoaded] = React19.useState(false);
|
|
881
|
-
const [error, setError] = React19.useState(null);
|
|
882
|
-
React19.useEffect(() => {
|
|
883
|
-
let active = true;
|
|
884
|
-
ensureScriptLoaded().then(() => {
|
|
885
|
-
if (active) setLoaded(true);
|
|
886
|
-
}).catch((err) => {
|
|
887
|
-
if (!active) return;
|
|
888
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
889
|
-
});
|
|
890
|
-
return () => {
|
|
891
|
-
active = false;
|
|
892
|
-
};
|
|
893
|
-
}, []);
|
|
894
|
-
React19.useEffect(() => {
|
|
895
|
-
const el = internal.current;
|
|
896
|
-
if (el && data !== void 0) {
|
|
897
|
-
el.data = data;
|
|
898
|
-
}
|
|
899
|
-
}, [data, loaded2]);
|
|
900
|
-
if (error) {
|
|
901
|
-
return React19.createElement(
|
|
902
|
-
"div",
|
|
903
|
-
{ role: "alert", className, style },
|
|
904
|
-
`Roxy UI script load failed: ${error.message}`
|
|
905
|
-
);
|
|
906
|
-
}
|
|
907
|
-
return React19.createElement("roxy-choghadiya-grid", {
|
|
908
|
-
ref: internal,
|
|
909
|
-
className,
|
|
910
|
-
style,
|
|
911
|
-
...rest
|
|
912
|
-
});
|
|
913
|
-
}
|
|
914
|
-
);
|
|
915
|
-
|
|
916
|
-
// packages/ui-react/src/components/yoga-list.tsx
|
|
917
|
-
import * as React20 from "react";
|
|
918
|
-
var RoxyYogaList = React20.forwardRef(
|
|
919
|
-
function RoxyYogaList2({ data, className, style, ...rest }, ref) {
|
|
920
|
-
const internal = React20.useRef(null);
|
|
921
|
-
React20.useImperativeHandle(
|
|
922
|
-
ref,
|
|
923
|
-
() => internal.current,
|
|
924
|
-
[]
|
|
925
|
-
);
|
|
926
|
-
const [loaded2, setLoaded] = React20.useState(false);
|
|
927
|
-
const [error, setError] = React20.useState(null);
|
|
928
|
-
React20.useEffect(() => {
|
|
929
|
-
let active = true;
|
|
930
|
-
ensureScriptLoaded().then(() => {
|
|
931
|
-
if (active) setLoaded(true);
|
|
932
|
-
}).catch((err) => {
|
|
933
|
-
if (!active) return;
|
|
934
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
935
|
-
});
|
|
936
|
-
return () => {
|
|
937
|
-
active = false;
|
|
938
|
-
};
|
|
939
|
-
}, []);
|
|
940
|
-
React20.useEffect(() => {
|
|
941
|
-
const el = internal.current;
|
|
942
|
-
if (el && data !== void 0) {
|
|
943
|
-
el.data = data;
|
|
944
|
-
}
|
|
945
|
-
}, [data, loaded2]);
|
|
946
|
-
if (error) {
|
|
947
|
-
return React20.createElement(
|
|
948
|
-
"div",
|
|
949
|
-
{ role: "alert", className, style },
|
|
950
|
-
`Roxy UI script load failed: ${error.message}`
|
|
951
|
-
);
|
|
952
|
-
}
|
|
953
|
-
return React20.createElement("roxy-yoga-list", {
|
|
954
|
-
ref: internal,
|
|
955
|
-
className,
|
|
956
|
-
style,
|
|
957
|
-
...rest
|
|
958
|
-
});
|
|
959
|
-
}
|
|
960
|
-
);
|
|
961
|
-
|
|
962
|
-
// packages/ui-react/src/components/nakshatra-card.tsx
|
|
963
|
-
import * as React21 from "react";
|
|
964
|
-
var RoxyNakshatraCard = React21.forwardRef(
|
|
965
|
-
function RoxyNakshatraCard2({ data, className, style, ...rest }, ref) {
|
|
966
|
-
const internal = React21.useRef(null);
|
|
967
|
-
React21.useImperativeHandle(
|
|
968
|
-
ref,
|
|
969
|
-
() => internal.current,
|
|
970
|
-
[]
|
|
971
|
-
);
|
|
972
|
-
const [loaded2, setLoaded] = React21.useState(false);
|
|
973
|
-
const [error, setError] = React21.useState(null);
|
|
974
|
-
React21.useEffect(() => {
|
|
975
|
-
let active = true;
|
|
976
|
-
ensureScriptLoaded().then(() => {
|
|
977
|
-
if (active) setLoaded(true);
|
|
978
|
-
}).catch((err) => {
|
|
979
|
-
if (!active) return;
|
|
980
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
981
|
-
});
|
|
982
|
-
return () => {
|
|
983
|
-
active = false;
|
|
984
|
-
};
|
|
985
|
-
}, []);
|
|
986
|
-
React21.useEffect(() => {
|
|
987
|
-
const el = internal.current;
|
|
988
|
-
if (el && data !== void 0) {
|
|
989
|
-
el.data = data;
|
|
990
|
-
}
|
|
991
|
-
}, [data, loaded2]);
|
|
992
|
-
if (error) {
|
|
993
|
-
return React21.createElement(
|
|
994
|
-
"div",
|
|
995
|
-
{ role: "alert", className, style },
|
|
996
|
-
`Roxy UI script load failed: ${error.message}`
|
|
997
|
-
);
|
|
998
|
-
}
|
|
999
|
-
return React21.createElement("roxy-nakshatra-card", {
|
|
1000
|
-
ref: internal,
|
|
1001
|
-
className,
|
|
1002
|
-
style,
|
|
1003
|
-
...rest
|
|
1004
|
-
});
|
|
1005
|
-
}
|
|
1006
|
-
);
|
|
1007
|
-
|
|
1008
|
-
// packages/ui-react/src/components/dosha-card.tsx
|
|
1009
|
-
import * as React22 from "react";
|
|
1010
|
-
var RoxyDoshaCard = React22.forwardRef(
|
|
1011
|
-
function RoxyDoshaCard2({ data, className, style, ...rest }, ref) {
|
|
1012
|
-
const internal = React22.useRef(null);
|
|
1013
|
-
React22.useImperativeHandle(
|
|
1014
|
-
ref,
|
|
1015
|
-
() => internal.current,
|
|
1016
|
-
[]
|
|
1017
|
-
);
|
|
1018
|
-
const [loaded2, setLoaded] = React22.useState(false);
|
|
1019
|
-
const [error, setError] = React22.useState(null);
|
|
1020
|
-
React22.useEffect(() => {
|
|
1021
|
-
let active = true;
|
|
1022
|
-
ensureScriptLoaded().then(() => {
|
|
1023
|
-
if (active) setLoaded(true);
|
|
1024
|
-
}).catch((err) => {
|
|
1025
|
-
if (!active) return;
|
|
1026
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
1027
|
-
});
|
|
1028
|
-
return () => {
|
|
1029
|
-
active = false;
|
|
1030
|
-
};
|
|
1031
|
-
}, []);
|
|
1032
|
-
React22.useEffect(() => {
|
|
1033
|
-
const el = internal.current;
|
|
1034
|
-
if (el && data !== void 0) {
|
|
1035
|
-
el.data = data;
|
|
1036
|
-
}
|
|
1037
|
-
}, [data, loaded2]);
|
|
1038
|
-
if (error) {
|
|
1039
|
-
return React22.createElement(
|
|
1040
|
-
"div",
|
|
1041
|
-
{ role: "alert", className, style },
|
|
1042
|
-
`Roxy UI script load failed: ${error.message}`
|
|
1043
|
-
);
|
|
1044
|
-
}
|
|
1045
|
-
return React22.createElement("roxy-dosha-card", {
|
|
1046
|
-
ref: internal,
|
|
1047
|
-
className,
|
|
1048
|
-
style,
|
|
1049
|
-
...rest
|
|
1050
|
-
});
|
|
1051
|
-
}
|
|
1052
|
-
);
|
|
1053
|
-
|
|
1054
|
-
// packages/ui-react/src/components/numerology-card.tsx
|
|
1055
|
-
import * as React23 from "react";
|
|
1056
|
-
var RoxyNumerologyCard = React23.forwardRef(
|
|
1057
|
-
function RoxyNumerologyCard2({ data, className, style, ...rest }, ref) {
|
|
1058
|
-
const internal = React23.useRef(null);
|
|
1059
|
-
React23.useImperativeHandle(
|
|
1060
|
-
ref,
|
|
1061
|
-
() => internal.current,
|
|
1062
|
-
[]
|
|
1063
|
-
);
|
|
1064
|
-
const [loaded2, setLoaded] = React23.useState(false);
|
|
1065
|
-
const [error, setError] = React23.useState(null);
|
|
1066
|
-
React23.useEffect(() => {
|
|
1067
|
-
let active = true;
|
|
1068
|
-
ensureScriptLoaded().then(() => {
|
|
1069
|
-
if (active) setLoaded(true);
|
|
1070
|
-
}).catch((err) => {
|
|
1071
|
-
if (!active) return;
|
|
1072
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
1073
|
-
});
|
|
1074
|
-
return () => {
|
|
1075
|
-
active = false;
|
|
1076
|
-
};
|
|
1077
|
-
}, []);
|
|
1078
|
-
React23.useEffect(() => {
|
|
1079
|
-
const el = internal.current;
|
|
1080
|
-
if (el && data !== void 0) {
|
|
1081
|
-
el.data = data;
|
|
1082
|
-
}
|
|
1083
|
-
}, [data, loaded2]);
|
|
1084
|
-
if (error) {
|
|
1085
|
-
return React23.createElement(
|
|
1086
|
-
"div",
|
|
1087
|
-
{ role: "alert", className, style },
|
|
1088
|
-
`Roxy UI script load failed: ${error.message}`
|
|
1089
|
-
);
|
|
1090
|
-
}
|
|
1091
|
-
return React23.createElement("roxy-numerology-card", {
|
|
1092
|
-
ref: internal,
|
|
1093
|
-
className,
|
|
1094
|
-
style,
|
|
1095
|
-
...rest
|
|
1096
|
-
});
|
|
1097
|
-
}
|
|
1098
|
-
);
|
|
1099
|
-
|
|
1100
|
-
// packages/ui-react/src/components/tarot-card.tsx
|
|
1101
|
-
import * as React24 from "react";
|
|
1102
|
-
var RoxyTarotCard = React24.forwardRef(
|
|
1103
|
-
function RoxyTarotCard2({ data, className, style, ...rest }, ref) {
|
|
1104
|
-
const internal = React24.useRef(null);
|
|
1105
|
-
React24.useImperativeHandle(
|
|
1106
|
-
ref,
|
|
1107
|
-
() => internal.current,
|
|
1108
|
-
[]
|
|
1109
|
-
);
|
|
1110
|
-
const [loaded2, setLoaded] = React24.useState(false);
|
|
1111
|
-
const [error, setError] = React24.useState(null);
|
|
1112
|
-
React24.useEffect(() => {
|
|
1113
|
-
let active = true;
|
|
1114
|
-
ensureScriptLoaded().then(() => {
|
|
1115
|
-
if (active) setLoaded(true);
|
|
1116
|
-
}).catch((err) => {
|
|
1117
|
-
if (!active) return;
|
|
1118
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
1119
|
-
});
|
|
1120
|
-
return () => {
|
|
1121
|
-
active = false;
|
|
1122
|
-
};
|
|
1123
|
-
}, []);
|
|
1124
|
-
React24.useEffect(() => {
|
|
1125
|
-
const el = internal.current;
|
|
1126
|
-
if (el && data !== void 0) {
|
|
1127
|
-
el.data = data;
|
|
1128
|
-
}
|
|
1129
|
-
}, [data, loaded2]);
|
|
1130
|
-
if (error) {
|
|
1131
|
-
return React24.createElement(
|
|
1132
|
-
"div",
|
|
1133
|
-
{ role: "alert", className, style },
|
|
1134
|
-
`Roxy UI script load failed: ${error.message}`
|
|
1135
|
-
);
|
|
1136
|
-
}
|
|
1137
|
-
return React24.createElement("roxy-tarot-card", {
|
|
1138
|
-
ref: internal,
|
|
1139
|
-
className,
|
|
1140
|
-
style,
|
|
1141
|
-
...rest
|
|
1142
|
-
});
|
|
1143
|
-
}
|
|
1144
|
-
);
|
|
1145
|
-
|
|
1146
|
-
// packages/ui-react/src/components/tarot-spread.tsx
|
|
1147
|
-
import * as React25 from "react";
|
|
1148
|
-
var RoxyTarotSpread = React25.forwardRef(
|
|
1149
|
-
function RoxyTarotSpread2({ data, className, style, ...rest }, ref) {
|
|
1150
|
-
const internal = React25.useRef(null);
|
|
1151
|
-
React25.useImperativeHandle(
|
|
1152
|
-
ref,
|
|
1153
|
-
() => internal.current,
|
|
1154
|
-
[]
|
|
1155
|
-
);
|
|
1156
|
-
const [loaded2, setLoaded] = React25.useState(false);
|
|
1157
|
-
const [error, setError] = React25.useState(null);
|
|
1158
|
-
React25.useEffect(() => {
|
|
1159
|
-
let active = true;
|
|
1160
|
-
ensureScriptLoaded().then(() => {
|
|
1161
|
-
if (active) setLoaded(true);
|
|
1162
|
-
}).catch((err) => {
|
|
1163
|
-
if (!active) return;
|
|
1164
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
1165
|
-
});
|
|
1166
|
-
return () => {
|
|
1167
|
-
active = false;
|
|
1168
|
-
};
|
|
1169
|
-
}, []);
|
|
1170
|
-
React25.useEffect(() => {
|
|
1171
|
-
const el = internal.current;
|
|
1172
|
-
if (el && data !== void 0) {
|
|
1173
|
-
el.data = data;
|
|
1174
|
-
}
|
|
1175
|
-
}, [data, loaded2]);
|
|
1176
|
-
if (error) {
|
|
1177
|
-
return React25.createElement(
|
|
1178
|
-
"div",
|
|
1179
|
-
{ role: "alert", className, style },
|
|
1180
|
-
`Roxy UI script load failed: ${error.message}`
|
|
1181
|
-
);
|
|
1182
|
-
}
|
|
1183
|
-
return React25.createElement("roxy-tarot-spread", {
|
|
1184
|
-
ref: internal,
|
|
1185
|
-
className,
|
|
1186
|
-
style,
|
|
1187
|
-
...rest
|
|
1188
|
-
});
|
|
1189
|
-
}
|
|
1190
|
-
);
|
|
1191
|
-
|
|
1192
|
-
// packages/ui-react/src/components/biorhythm-chart.tsx
|
|
1193
|
-
import * as React26 from "react";
|
|
1194
|
-
var RoxyBiorhythmChart = React26.forwardRef(
|
|
1195
|
-
function RoxyBiorhythmChart2({ data, className, style, ...rest }, ref) {
|
|
1196
|
-
const internal = React26.useRef(null);
|
|
1197
|
-
React26.useImperativeHandle(
|
|
1198
|
-
ref,
|
|
1199
|
-
() => internal.current,
|
|
1200
|
-
[]
|
|
1201
|
-
);
|
|
1202
|
-
const [loaded2, setLoaded] = React26.useState(false);
|
|
1203
|
-
const [error, setError] = React26.useState(null);
|
|
1204
|
-
React26.useEffect(() => {
|
|
1205
|
-
let active = true;
|
|
1206
|
-
ensureScriptLoaded().then(() => {
|
|
1207
|
-
if (active) setLoaded(true);
|
|
1208
|
-
}).catch((err) => {
|
|
1209
|
-
if (!active) return;
|
|
1210
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
1211
|
-
});
|
|
1212
|
-
return () => {
|
|
1213
|
-
active = false;
|
|
1214
|
-
};
|
|
1215
|
-
}, []);
|
|
1216
|
-
React26.useEffect(() => {
|
|
1217
|
-
const el = internal.current;
|
|
1218
|
-
if (el && data !== void 0) {
|
|
1219
|
-
el.data = data;
|
|
1220
|
-
}
|
|
1221
|
-
}, [data, loaded2]);
|
|
1222
|
-
if (error) {
|
|
1223
|
-
return React26.createElement(
|
|
1224
|
-
"div",
|
|
1225
|
-
{ role: "alert", className, style },
|
|
1226
|
-
`Roxy UI script load failed: ${error.message}`
|
|
1227
|
-
);
|
|
1228
|
-
}
|
|
1229
|
-
return React26.createElement("roxy-biorhythm-chart", {
|
|
1230
|
-
ref: internal,
|
|
1231
|
-
className,
|
|
1232
|
-
style,
|
|
1233
|
-
...rest
|
|
1234
|
-
});
|
|
1235
|
-
}
|
|
1236
|
-
);
|
|
1237
|
-
|
|
1238
|
-
// packages/ui-react/src/components/hexagram.tsx
|
|
1239
|
-
import * as React27 from "react";
|
|
1240
|
-
var RoxyHexagram = React27.forwardRef(
|
|
1241
|
-
function RoxyHexagram2({ data, className, style, ...rest }, ref) {
|
|
1242
|
-
const internal = React27.useRef(null);
|
|
1243
|
-
React27.useImperativeHandle(
|
|
1244
|
-
ref,
|
|
1245
|
-
() => internal.current,
|
|
1246
|
-
[]
|
|
1247
|
-
);
|
|
1248
|
-
const [loaded2, setLoaded] = React27.useState(false);
|
|
1249
|
-
const [error, setError] = React27.useState(null);
|
|
1250
|
-
React27.useEffect(() => {
|
|
1251
|
-
let active = true;
|
|
1252
|
-
ensureScriptLoaded().then(() => {
|
|
1253
|
-
if (active) setLoaded(true);
|
|
1254
|
-
}).catch((err) => {
|
|
1255
|
-
if (!active) return;
|
|
1256
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
1257
|
-
});
|
|
1258
|
-
return () => {
|
|
1259
|
-
active = false;
|
|
1260
|
-
};
|
|
1261
|
-
}, []);
|
|
1262
|
-
React27.useEffect(() => {
|
|
1263
|
-
const el = internal.current;
|
|
1264
|
-
if (el && data !== void 0) {
|
|
1265
|
-
el.data = data;
|
|
1266
|
-
}
|
|
1267
|
-
}, [data, loaded2]);
|
|
1268
|
-
if (error) {
|
|
1269
|
-
return React27.createElement(
|
|
1270
|
-
"div",
|
|
1271
|
-
{ role: "alert", className, style },
|
|
1272
|
-
`Roxy UI script load failed: ${error.message}`
|
|
1273
|
-
);
|
|
1274
|
-
}
|
|
1275
|
-
return React27.createElement("roxy-hexagram", {
|
|
1276
|
-
ref: internal,
|
|
1277
|
-
className,
|
|
1278
|
-
style,
|
|
1279
|
-
...rest
|
|
1280
|
-
});
|
|
1281
|
-
}
|
|
1282
|
-
);
|
|
1283
|
-
|
|
1284
|
-
// packages/ui-react/src/components/endpoint-form.tsx
|
|
1285
|
-
import * as React28 from "react";
|
|
1286
|
-
var RoxyEndpointForm = React28.forwardRef(
|
|
1287
|
-
function RoxyEndpointForm2({ className, style, onRoxySubmit, onRoxyValidationError, onRoxySpecError, ...rest }, ref) {
|
|
1288
|
-
const internal = React28.useRef(null);
|
|
1289
|
-
React28.useImperativeHandle(
|
|
1290
|
-
ref,
|
|
1291
|
-
() => internal.current,
|
|
1292
|
-
[]
|
|
1293
|
-
);
|
|
1294
|
-
const [loaded2, setLoaded] = React28.useState(false);
|
|
1295
|
-
const [error, setError] = React28.useState(null);
|
|
1296
|
-
React28.useEffect(() => {
|
|
1297
|
-
let active = true;
|
|
1298
|
-
ensureScriptLoaded().then(() => {
|
|
1299
|
-
if (active) setLoaded(true);
|
|
1300
|
-
}).catch((err) => {
|
|
1301
|
-
if (!active) return;
|
|
1302
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
1303
|
-
});
|
|
1304
|
-
return () => {
|
|
1305
|
-
active = false;
|
|
1306
|
-
};
|
|
1307
|
-
}, []);
|
|
1308
|
-
React28.useEffect(() => {
|
|
1309
|
-
const el = internal.current;
|
|
1310
|
-
const handler = onRoxySubmit;
|
|
1311
|
-
if (!el || !handler) return;
|
|
1312
|
-
const listener = (event) => handler(event);
|
|
1313
|
-
el.addEventListener("roxy-submit", listener);
|
|
1314
|
-
return () => el.removeEventListener("roxy-submit", listener);
|
|
1315
|
-
}, [onRoxySubmit, loaded2]);
|
|
1316
|
-
React28.useEffect(() => {
|
|
1317
|
-
const el = internal.current;
|
|
1318
|
-
const handler = onRoxyValidationError;
|
|
1319
|
-
if (!el || !handler) return;
|
|
1320
|
-
const listener = (event) => handler(event);
|
|
1321
|
-
el.addEventListener("roxy-validation-error", listener);
|
|
1322
|
-
return () => el.removeEventListener("roxy-validation-error", listener);
|
|
1323
|
-
}, [onRoxyValidationError, loaded2]);
|
|
1324
|
-
React28.useEffect(() => {
|
|
1325
|
-
const el = internal.current;
|
|
1326
|
-
const handler = onRoxySpecError;
|
|
1327
|
-
if (!el || !handler) return;
|
|
1328
|
-
const listener = (event) => handler(event);
|
|
1329
|
-
el.addEventListener("roxy-spec-error", listener);
|
|
1330
|
-
return () => el.removeEventListener("roxy-spec-error", listener);
|
|
1331
|
-
}, [onRoxySpecError, loaded2]);
|
|
1332
|
-
if (error) {
|
|
1333
|
-
return React28.createElement(
|
|
1334
|
-
"div",
|
|
1335
|
-
{ role: "alert", className, style },
|
|
1336
|
-
`Roxy UI script load failed: ${error.message}`
|
|
1337
|
-
);
|
|
1338
|
-
}
|
|
1339
|
-
return React28.createElement("roxy-endpoint-form", {
|
|
1340
|
-
ref: internal,
|
|
1341
|
-
className,
|
|
1342
|
-
style,
|
|
1343
|
-
...rest
|
|
1344
|
-
});
|
|
1345
|
-
}
|
|
1346
|
-
);
|
|
1347
|
-
|
|
1348
|
-
// packages/ui-react/src/components/location-search.tsx
|
|
1349
|
-
import * as React29 from "react";
|
|
1350
|
-
var RoxyLocationSearch = React29.forwardRef(
|
|
1351
|
-
function RoxyLocationSearch2({ className, style, onRoxyLocationSelect, onRoxyValidationError, ...rest }, ref) {
|
|
1352
|
-
const internal = React29.useRef(null);
|
|
1353
|
-
React29.useImperativeHandle(
|
|
1354
|
-
ref,
|
|
1355
|
-
() => internal.current,
|
|
1356
|
-
[]
|
|
1357
|
-
);
|
|
1358
|
-
const [loaded2, setLoaded] = React29.useState(false);
|
|
1359
|
-
const [error, setError] = React29.useState(null);
|
|
1360
|
-
React29.useEffect(() => {
|
|
1361
|
-
let active = true;
|
|
1362
|
-
ensureScriptLoaded().then(() => {
|
|
1363
|
-
if (active) setLoaded(true);
|
|
1364
|
-
}).catch((err) => {
|
|
1365
|
-
if (!active) return;
|
|
1366
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
1367
|
-
});
|
|
1368
|
-
return () => {
|
|
1369
|
-
active = false;
|
|
1370
|
-
};
|
|
1371
|
-
}, []);
|
|
1372
|
-
React29.useEffect(() => {
|
|
1373
|
-
const el = internal.current;
|
|
1374
|
-
const handler = onRoxyLocationSelect;
|
|
1375
|
-
if (!el || !handler) return;
|
|
1376
|
-
const listener = (event) => handler(event);
|
|
1377
|
-
el.addEventListener("roxy-location-select", listener);
|
|
1378
|
-
return () => el.removeEventListener("roxy-location-select", listener);
|
|
1379
|
-
}, [onRoxyLocationSelect, loaded2]);
|
|
1380
|
-
React29.useEffect(() => {
|
|
1381
|
-
const el = internal.current;
|
|
1382
|
-
const handler = onRoxyValidationError;
|
|
1383
|
-
if (!el || !handler) return;
|
|
1384
|
-
const listener = (event) => handler(event);
|
|
1385
|
-
el.addEventListener("roxy-validation-error", listener);
|
|
1386
|
-
return () => el.removeEventListener("roxy-validation-error", listener);
|
|
1387
|
-
}, [onRoxyValidationError, loaded2]);
|
|
1388
|
-
if (error) {
|
|
1389
|
-
return React29.createElement(
|
|
1390
|
-
"div",
|
|
1391
|
-
{ role: "alert", className, style },
|
|
1392
|
-
`Roxy UI script load failed: ${error.message}`
|
|
1393
|
-
);
|
|
1394
|
-
}
|
|
1395
|
-
return React29.createElement("roxy-location-search", {
|
|
1396
|
-
ref: internal,
|
|
1397
|
-
className,
|
|
1398
|
-
style,
|
|
1399
|
-
...rest
|
|
1400
|
-
});
|
|
1401
|
-
}
|
|
1402
|
-
);
|
|
1403
|
-
|
|
1404
|
-
// packages/ui-react/src/components/data.tsx
|
|
1405
|
-
import * as React30 from "react";
|
|
1406
|
-
var RoxyData = React30.forwardRef(
|
|
1407
|
-
function RoxyData2({ className, style, ...rest }, ref) {
|
|
1408
|
-
const internal = React30.useRef(null);
|
|
1409
|
-
React30.useImperativeHandle(
|
|
1410
|
-
ref,
|
|
1411
|
-
() => internal.current,
|
|
1412
|
-
[]
|
|
1413
|
-
);
|
|
1414
|
-
const [loaded2, setLoaded] = React30.useState(false);
|
|
1415
|
-
const [error, setError] = React30.useState(null);
|
|
1416
|
-
React30.useEffect(() => {
|
|
1417
|
-
let active = true;
|
|
1418
|
-
ensureScriptLoaded().then(() => {
|
|
1419
|
-
if (active) setLoaded(true);
|
|
1420
|
-
}).catch((err) => {
|
|
1421
|
-
if (!active) return;
|
|
1422
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
1423
|
-
});
|
|
1424
|
-
return () => {
|
|
1425
|
-
active = false;
|
|
1426
|
-
};
|
|
1427
|
-
}, []);
|
|
1428
|
-
if (error) {
|
|
1429
|
-
return React30.createElement(
|
|
1430
|
-
"div",
|
|
1431
|
-
{ role: "alert", className, style },
|
|
1432
|
-
`Roxy UI script load failed: ${error.message}`
|
|
1433
|
-
);
|
|
1434
|
-
}
|
|
1435
|
-
return React30.createElement("roxy-data", {
|
|
1436
|
-
ref: internal,
|
|
1437
|
-
className,
|
|
1438
|
-
style,
|
|
1439
|
-
...rest
|
|
1440
|
-
});
|
|
1441
|
-
}
|
|
1442
|
-
);
|
|
1443
|
-
export {
|
|
1444
|
-
ROXY_UI_VERSION,
|
|
1445
|
-
RoxyAshtakavargaGrid,
|
|
1446
|
-
RoxyBiorhythmChart,
|
|
1447
|
-
RoxyChoghadiyaGrid,
|
|
1448
|
-
RoxyCompatibilityCard,
|
|
1449
|
-
RoxyDashaTimeline,
|
|
1450
|
-
RoxyData,
|
|
1451
|
-
RoxyDivisionalChart,
|
|
1452
|
-
RoxyDoshaCard,
|
|
1453
|
-
RoxyEndpointForm,
|
|
1454
|
-
RoxyGunaMilan,
|
|
1455
|
-
RoxyHexagram,
|
|
1456
|
-
RoxyHoroscopeCard,
|
|
1457
|
-
RoxyKpChart,
|
|
1458
|
-
RoxyKpPlanetsTable,
|
|
1459
|
-
RoxyKpRulingPlanets,
|
|
1460
|
-
RoxyLocationSearch,
|
|
1461
|
-
RoxyMoonPhase,
|
|
1462
|
-
RoxyNakshatraCard,
|
|
1463
|
-
RoxyNatalChart,
|
|
1464
|
-
RoxyNumerologyCard,
|
|
1465
|
-
RoxyPanchangTable,
|
|
1466
|
-
RoxyShadbalaTable,
|
|
1467
|
-
RoxySynastryChart,
|
|
1468
|
-
RoxyTarotCard,
|
|
1469
|
-
RoxyTarotSpread,
|
|
1470
|
-
RoxyTransitsTable,
|
|
1471
|
-
RoxyVedicKundli,
|
|
1472
|
-
RoxyVedicPlanetsTable,
|
|
1473
|
-
RoxyWesternPlanetsTable,
|
|
1474
|
-
RoxyYogaList,
|
|
1475
|
-
ensureScriptLoaded
|
|
1476
|
-
};
|
|
1
|
+
var z="roxyapi-ui-loader",q="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",J="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",Q="/dist/cdn",X=null;function Z(d){return!d||d==="latest"?q:`${J}${d}${Q}`}function p(d="latest"){return typeof document>"u"?Promise.resolve():X||(X=new Promise((r,a)=>{let o=`${Z(d)}/roxy-ui.js`,l=document.getElementById(z);if(l){l.dataset.loaded==="true"?r():(l.addEventListener("load",()=>r()),l.addEventListener("error",()=>a(new Error("roxy-ui load failed"))));return}l=document.createElement("script"),l.id=z,l.src=o,l.async=!0,l.crossOrigin="anonymous",l.addEventListener("load",()=>{l.dataset.loaded="true",r()}),l.addEventListener("error",()=>a(new Error("roxy-ui load failed"))),document.head.appendChild(l)}),X)}var ee="0.6.0";import*as x from"react";var te=x.forwardRef(function({data:r,className:a,style:o,...l},R){let n=x.useRef(null);x.useImperativeHandle(R,()=>n.current,[]);let[c,i]=x.useState(!1),[s,u]=x.useState(null);return x.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),x.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?x.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):x.createElement("roxy-natal-chart",{ref:n,className:a,style:o,...l})});import*as h from"react";var re=h.forwardRef(function({data:r,className:a,style:o,...l},R){let n=h.useRef(null);h.useImperativeHandle(R,()=>n.current,[]);let[c,i]=h.useState(!1),[s,u]=h.useState(null);return h.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),h.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?h.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):h.createElement("roxy-synastry-chart",{ref:n,className:a,style:o,...l})});import*as L from"react";var ne=L.forwardRef(function({data:r,className:a,style:o,...l},R){let n=L.useRef(null);L.useImperativeHandle(R,()=>n.current,[]);let[c,i]=L.useState(!1),[s,u]=L.useState(null);return L.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),L.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?L.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):L.createElement("roxy-western-planets-table",{ref:n,className:a,style:o,...l})});import*as T from"react";var ae=T.forwardRef(function({data:r,className:a,style:o,...l},R){let n=T.useRef(null);T.useImperativeHandle(R,()=>n.current,[]);let[c,i]=T.useState(!1),[s,u]=T.useState(null);return T.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),T.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?T.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):T.createElement("roxy-transits-table",{ref:n,className:a,style:o,...l})});import*as H from"react";var oe=H.forwardRef(function({data:r,className:a,style:o,...l},R){let n=H.useRef(null);H.useImperativeHandle(R,()=>n.current,[]);let[c,i]=H.useState(!1),[s,u]=H.useState(null);return H.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),H.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?H.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):H.createElement("roxy-moon-phase",{ref:n,className:a,style:o,...l})});import*as S from"react";var se=S.forwardRef(function({data:r,className:a,style:o,...l},R){let n=S.useRef(null);S.useImperativeHandle(R,()=>n.current,[]);let[c,i]=S.useState(!1),[s,u]=S.useState(null);return S.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),S.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?S.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):S.createElement("roxy-horoscope-card",{ref:n,className:a,style:o,...l})});import*as g from"react";var le=g.forwardRef(function({data:r,className:a,style:o,...l},R){let n=g.useRef(null);g.useImperativeHandle(R,()=>n.current,[]);let[c,i]=g.useState(!1),[s,u]=g.useState(null);return g.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),g.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?g.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):g.createElement("roxy-compatibility-card",{ref:n,className:a,style:o,...l})});import*as M from"react";var ie=M.forwardRef(function({data:r,className:a,style:o,...l},R){let n=M.useRef(null);M.useImperativeHandle(R,()=>n.current,[]);let[c,i]=M.useState(!1),[s,u]=M.useState(null);return M.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),M.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?M.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):M.createElement("roxy-vedic-kundli",{ref:n,className:a,style:o,...l})});import*as C from"react";var ce=C.forwardRef(function({data:r,className:a,style:o,...l},R){let n=C.useRef(null);C.useImperativeHandle(R,()=>n.current,[]);let[c,i]=C.useState(!1),[s,u]=C.useState(null);return C.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),C.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?C.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):C.createElement("roxy-divisional-chart",{ref:n,className:a,style:o,...l})});import*as P from"react";var ue=P.forwardRef(function({data:r,className:a,style:o,...l},R){let n=P.useRef(null);P.useImperativeHandle(R,()=>n.current,[]);let[c,i]=P.useState(!1),[s,u]=P.useState(null);return P.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),P.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?P.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):P.createElement("roxy-kp-chart",{ref:n,className:a,style:o,...l})});import*as v from"react";var Re=v.forwardRef(function({data:r,className:a,style:o,...l},R){let n=v.useRef(null);v.useImperativeHandle(R,()=>n.current,[]);let[c,i]=v.useState(!1),[s,u]=v.useState(null);return v.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),v.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?v.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):v.createElement("roxy-vedic-planets-table",{ref:n,className:a,style:o,...l})});import*as w from"react";var pe=w.forwardRef(function({data:r,className:a,style:o,...l},R){let n=w.useRef(null);w.useImperativeHandle(R,()=>n.current,[]);let[c,i]=w.useState(!1),[s,u]=w.useState(null);return w.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),w.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?w.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):w.createElement("roxy-kp-planets-table",{ref:n,className:a,style:o,...l})});import*as k from"react";var de=k.forwardRef(function({data:r,className:a,style:o,...l},R){let n=k.useRef(null);k.useImperativeHandle(R,()=>n.current,[]);let[c,i]=k.useState(!1),[s,u]=k.useState(null);return k.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),k.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?k.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):k.createElement("roxy-kp-ruling-planets",{ref:n,className:a,style:o,...l})});import*as b from"react";var fe=b.forwardRef(function({data:r,className:a,style:o,...l},R){let n=b.useRef(null);b.useImperativeHandle(R,()=>n.current,[]);let[c,i]=b.useState(!1),[s,u]=b.useState(null);return b.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),b.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?b.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):b.createElement("roxy-ashtakavarga-grid",{ref:n,className:a,style:o,...l})});import*as A from"react";var me=A.forwardRef(function({data:r,className:a,style:o,...l},R){let n=A.useRef(null);A.useImperativeHandle(R,()=>n.current,[]);let[c,i]=A.useState(!1),[s,u]=A.useState(null);return A.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),A.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?A.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):A.createElement("roxy-shadbala-table",{ref:n,className:a,style:o,...l})});import*as I from"react";var Ee=I.forwardRef(function({data:r,className:a,style:o,...l},R){let n=I.useRef(null);I.useImperativeHandle(R,()=>n.current,[]);let[c,i]=I.useState(!1),[s,u]=I.useState(null);return I.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),I.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?I.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):I.createElement("roxy-dasha-timeline",{ref:n,className:a,style:o,...l})});import*as G from"react";var ye=G.forwardRef(function({data:r,className:a,style:o,...l},R){let n=G.useRef(null);G.useImperativeHandle(R,()=>n.current,[]);let[c,i]=G.useState(!1),[s,u]=G.useState(null);return G.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),G.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?G.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):G.createElement("roxy-guna-milan",{ref:n,className:a,style:o,...l})});import*as D from"react";var xe=D.forwardRef(function({data:r,className:a,style:o,...l},R){let n=D.useRef(null);D.useImperativeHandle(R,()=>n.current,[]);let[c,i]=D.useState(!1),[s,u]=D.useState(null);return D.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),D.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?D.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):D.createElement("roxy-panchang-table",{ref:n,className:a,style:o,...l})});import*as N from"react";var he=N.forwardRef(function({data:r,className:a,style:o,...l},R){let n=N.useRef(null);N.useImperativeHandle(R,()=>n.current,[]);let[c,i]=N.useState(!1),[s,u]=N.useState(null);return N.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),N.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?N.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):N.createElement("roxy-choghadiya-grid",{ref:n,className:a,style:o,...l})});import*as O from"react";var Le=O.forwardRef(function({data:r,className:a,style:o,...l},R){let n=O.useRef(null);O.useImperativeHandle(R,()=>n.current,[]);let[c,i]=O.useState(!1),[s,u]=O.useState(null);return O.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),O.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?O.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):O.createElement("roxy-yoga-list",{ref:n,className:a,style:o,...l})});import*as U from"react";var Te=U.forwardRef(function({data:r,className:a,style:o,...l},R){let n=U.useRef(null);U.useImperativeHandle(R,()=>n.current,[]);let[c,i]=U.useState(!1),[s,u]=U.useState(null);return U.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),U.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?U.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):U.createElement("roxy-nakshatra-card",{ref:n,className:a,style:o,...l})});import*as $ from"react";var He=$.forwardRef(function({data:r,className:a,style:o,...l},R){let n=$.useRef(null);$.useImperativeHandle(R,()=>n.current,[]);let[c,i]=$.useState(!1),[s,u]=$.useState(null);return $.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),$.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?$.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):$.createElement("roxy-dosha-card",{ref:n,className:a,style:o,...l})});import*as K from"react";var Se=K.forwardRef(function({data:r,className:a,style:o,...l},R){let n=K.useRef(null);K.useImperativeHandle(R,()=>n.current,[]);let[c,i]=K.useState(!1),[s,u]=K.useState(null);return K.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),K.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?K.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):K.createElement("roxy-numerology-card",{ref:n,className:a,style:o,...l})});import*as B from"react";var ge=B.forwardRef(function({data:r,className:a,style:o,...l},R){let n=B.useRef(null);B.useImperativeHandle(R,()=>n.current,[]);let[c,i]=B.useState(!1),[s,u]=B.useState(null);return B.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),B.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?B.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):B.createElement("roxy-tarot-card",{ref:n,className:a,style:o,...l})});import*as Y from"react";var Me=Y.forwardRef(function({data:r,className:a,style:o,...l},R){let n=Y.useRef(null);Y.useImperativeHandle(R,()=>n.current,[]);let[c,i]=Y.useState(!1),[s,u]=Y.useState(null);return Y.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),Y.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?Y.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):Y.createElement("roxy-tarot-spread",{ref:n,className:a,style:o,...l})});import*as V from"react";var Ce=V.forwardRef(function({data:r,className:a,style:o,...l},R){let n=V.useRef(null);V.useImperativeHandle(R,()=>n.current,[]);let[c,i]=V.useState(!1),[s,u]=V.useState(null);return V.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),V.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?V.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):V.createElement("roxy-biorhythm-chart",{ref:n,className:a,style:o,...l})});import*as F from"react";var Pe=F.forwardRef(function({data:r,className:a,style:o,...l},R){let n=F.useRef(null);F.useImperativeHandle(R,()=>n.current,[]);let[c,i]=F.useState(!1),[s,u]=F.useState(null);return F.useEffect(()=>{let e=!0;return p().then(()=>{e&&i(!0)}).catch(t=>{e&&u(t instanceof Error?t:new Error(String(t)))}),()=>{e=!1}},[]),F.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.data=r)},[r,c]),s?F.createElement("div",{role:"alert",className:a,style:o},`Roxy UI script load failed: ${s.message}`):F.createElement("roxy-hexagram",{ref:n,className:a,style:o,...l})});import*as E from"react";var ve=E.forwardRef(function({className:r,style:a,onRoxySubmit:o,onRoxyValidationError:l,onRoxySpecError:R,...n},c){let i=E.useRef(null);E.useImperativeHandle(c,()=>i.current,[]);let[s,u]=E.useState(!1),[e,t]=E.useState(null);return E.useEffect(()=>{let f=!0;return p().then(()=>{f&&u(!0)}).catch(m=>{f&&t(m instanceof Error?m:new Error(String(m)))}),()=>{f=!1}},[]),E.useEffect(()=>{let f=i.current,m=o;if(!f||!m)return;let W=j=>m(j);return f.addEventListener("roxy-submit",W),()=>f.removeEventListener("roxy-submit",W)},[o,s]),E.useEffect(()=>{let f=i.current,m=l;if(!f||!m)return;let W=j=>m(j);return f.addEventListener("roxy-validation-error",W),()=>f.removeEventListener("roxy-validation-error",W)},[l,s]),E.useEffect(()=>{let f=i.current,m=R;if(!f||!m)return;let W=j=>m(j);return f.addEventListener("roxy-spec-error",W),()=>f.removeEventListener("roxy-spec-error",W)},[R,s]),e?E.createElement("div",{role:"alert",className:r,style:a},`Roxy UI script load failed: ${e.message}`):E.createElement("roxy-endpoint-form",{ref:i,className:r,style:a,...n})});import*as y from"react";var we=y.forwardRef(function({className:r,style:a,onRoxyLocationSelect:o,onRoxyValidationError:l,...R},n){let c=y.useRef(null);y.useImperativeHandle(n,()=>c.current,[]);let[i,s]=y.useState(!1),[u,e]=y.useState(null);return y.useEffect(()=>{let t=!0;return p().then(()=>{t&&s(!0)}).catch(f=>{t&&e(f instanceof Error?f:new Error(String(f)))}),()=>{t=!1}},[]),y.useEffect(()=>{let t=c.current,f=o;if(!t||!f)return;let m=W=>f(W);return t.addEventListener("roxy-location-select",m),()=>t.removeEventListener("roxy-location-select",m)},[o,i]),y.useEffect(()=>{let t=c.current,f=l;if(!t||!f)return;let m=W=>f(W);return t.addEventListener("roxy-validation-error",m),()=>t.removeEventListener("roxy-validation-error",m)},[l,i]),u?y.createElement("div",{role:"alert",className:r,style:a},`Roxy UI script load failed: ${u.message}`):y.createElement("roxy-location-search",{ref:c,className:r,style:a,...R})});import*as _ from"react";var ke=_.forwardRef(function({className:r,style:a,...o},l){let R=_.useRef(null);_.useImperativeHandle(l,()=>R.current,[]);let[n,c]=_.useState(!1),[i,s]=_.useState(null);return _.useEffect(()=>{let u=!0;return p().then(()=>{u&&c(!0)}).catch(e=>{u&&s(e instanceof Error?e:new Error(String(e)))}),()=>{u=!1}},[]),i?_.createElement("div",{role:"alert",className:r,style:a},`Roxy UI script load failed: ${i.message}`):_.createElement("roxy-data",{ref:R,className:r,style:a,...o})});export{ee as ROXY_UI_VERSION,fe as RoxyAshtakavargaGrid,Ce as RoxyBiorhythmChart,he as RoxyChoghadiyaGrid,le as RoxyCompatibilityCard,Ee as RoxyDashaTimeline,ke as RoxyData,ce as RoxyDivisionalChart,He as RoxyDoshaCard,ve as RoxyEndpointForm,ye as RoxyGunaMilan,Pe as RoxyHexagram,se as RoxyHoroscopeCard,ue as RoxyKpChart,pe as RoxyKpPlanetsTable,de as RoxyKpRulingPlanets,we as RoxyLocationSearch,oe as RoxyMoonPhase,Te as RoxyNakshatraCard,te as RoxyNatalChart,Se as RoxyNumerologyCard,xe as RoxyPanchangTable,me as RoxyShadbalaTable,re as RoxySynastryChart,ge as RoxyTarotCard,Me as RoxyTarotSpread,ae as RoxyTransitsTable,ie as RoxyVedicKundli,Re as RoxyVedicPlanetsTable,ne as RoxyWesternPlanetsTable,Le as RoxyYogaList,p as ensureScriptLoaded};
|
|
1477
2
|
//# sourceMappingURL=index.js.map
|