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