@srimandir/astro-consultation 1.1.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/dist/astro-consultation.js +1059 -0
- package/dist/astro-consultation.js.map +1 -0
- package/dist/astro-consultation.umd.cjs +15 -0
- package/dist/astro-consultation.umd.cjs.map +1 -0
- package/dist/components/AstrologerCard/AstrologerCard.d.ts +27 -0
- package/dist/components/AstrologerCard/CardIcons.d.ts +9 -0
- package/dist/components/AstrologerCard/currency.d.ts +9 -0
- package/dist/components/AstrologerCard/index.d.ts +3 -0
- package/dist/components/AstrologerCard/types.d.ts +57 -0
- package/dist/components/ConsultationSlotSheet/ConsultationSlotSheet.d.ts +45 -0
- package/dist/components/ConsultationSlotSheet/index.d.ts +1 -0
- package/dist/components/PaymentResult/PaymentIcons.d.ts +9 -0
- package/dist/components/PaymentResult/PaymentResult.d.ts +51 -0
- package/dist/components/PaymentResult/index.d.ts +2 -0
- package/dist/index.d.ts +16 -0
- package/dist/style.css +1 -0
- package/package.json +58 -0
|
@@ -0,0 +1,1059 @@
|
|
|
1
|
+
import We from "react";
|
|
2
|
+
import { BottomSheet as pt } from "@srimandir/common";
|
|
3
|
+
import { ConsultationSlotSelector as vt } from "@srimandir/astrology-common";
|
|
4
|
+
var re = { exports: {} }, z = {};
|
|
5
|
+
var De;
|
|
6
|
+
function mt() {
|
|
7
|
+
if (De) return z;
|
|
8
|
+
De = 1;
|
|
9
|
+
var h = We, _ = /* @__PURE__ */ Symbol.for("react.element"), A = /* @__PURE__ */ Symbol.for("react.fragment"), T = Object.prototype.hasOwnProperty, b = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, C = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
10
|
+
function x(j, f, y) {
|
|
11
|
+
var p, c = {}, R = null, S = null;
|
|
12
|
+
y !== void 0 && (R = "" + y), f.key !== void 0 && (R = "" + f.key), f.ref !== void 0 && (S = f.ref);
|
|
13
|
+
for (p in f) T.call(f, p) && !C.hasOwnProperty(p) && (c[p] = f[p]);
|
|
14
|
+
if (j && j.defaultProps) for (p in f = j.defaultProps, f) c[p] === void 0 && (c[p] = f[p]);
|
|
15
|
+
return { $$typeof: _, type: j, key: R, ref: S, props: c, _owner: b.current };
|
|
16
|
+
}
|
|
17
|
+
return z.Fragment = A, z.jsx = x, z.jsxs = x, z;
|
|
18
|
+
}
|
|
19
|
+
var G = {};
|
|
20
|
+
var qe;
|
|
21
|
+
function bt() {
|
|
22
|
+
return qe || (qe = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
23
|
+
var h = We, _ = /* @__PURE__ */ Symbol.for("react.element"), A = /* @__PURE__ */ Symbol.for("react.portal"), T = /* @__PURE__ */ Symbol.for("react.fragment"), b = /* @__PURE__ */ Symbol.for("react.strict_mode"), C = /* @__PURE__ */ Symbol.for("react.profiler"), x = /* @__PURE__ */ Symbol.for("react.provider"), j = /* @__PURE__ */ Symbol.for("react.context"), f = /* @__PURE__ */ Symbol.for("react.forward_ref"), y = /* @__PURE__ */ Symbol.for("react.suspense"), p = /* @__PURE__ */ Symbol.for("react.suspense_list"), c = /* @__PURE__ */ Symbol.for("react.memo"), R = /* @__PURE__ */ Symbol.for("react.lazy"), S = /* @__PURE__ */ Symbol.for("react.offscreen"), N = Symbol.iterator, P = "@@iterator";
|
|
24
|
+
function $(e) {
|
|
25
|
+
if (e === null || typeof e != "object")
|
|
26
|
+
return null;
|
|
27
|
+
var r = N && e[N] || e[P];
|
|
28
|
+
return typeof r == "function" ? r : null;
|
|
29
|
+
}
|
|
30
|
+
var O = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
31
|
+
function g(e) {
|
|
32
|
+
{
|
|
33
|
+
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
34
|
+
a[n - 1] = arguments[n];
|
|
35
|
+
M("error", e, a);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function M(e, r, a) {
|
|
39
|
+
{
|
|
40
|
+
var n = O.ReactDebugCurrentFrame, l = n.getStackAddendum();
|
|
41
|
+
l !== "" && (r += "%s", a = a.concat([l]));
|
|
42
|
+
var u = a.map(function(i) {
|
|
43
|
+
return String(i);
|
|
44
|
+
});
|
|
45
|
+
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
var D = !1, q = !1, Y = !1, I = !1, ae = !1, V;
|
|
49
|
+
V = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
50
|
+
function X(e) {
|
|
51
|
+
return !!(typeof e == "string" || typeof e == "function" || e === T || e === C || ae || e === b || e === y || e === p || I || e === S || D || q || Y || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === c || e.$$typeof === x || e.$$typeof === j || e.$$typeof === f || // This needs to include all possible module reference object
|
|
52
|
+
// types supported by any Flight configuration anywhere since
|
|
53
|
+
// we don't know which Flight build this will end up being used
|
|
54
|
+
// with.
|
|
55
|
+
e.$$typeof === V || e.getModuleId !== void 0));
|
|
56
|
+
}
|
|
57
|
+
function $e(e, r, a) {
|
|
58
|
+
var n = e.displayName;
|
|
59
|
+
if (n)
|
|
60
|
+
return n;
|
|
61
|
+
var l = r.displayName || r.name || "";
|
|
62
|
+
return l !== "" ? a + "(" + l + ")" : a;
|
|
63
|
+
}
|
|
64
|
+
function fe(e) {
|
|
65
|
+
return e.displayName || "Context";
|
|
66
|
+
}
|
|
67
|
+
function F(e) {
|
|
68
|
+
if (e == null)
|
|
69
|
+
return null;
|
|
70
|
+
if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
71
|
+
return e.displayName || e.name || null;
|
|
72
|
+
if (typeof e == "string")
|
|
73
|
+
return e;
|
|
74
|
+
switch (e) {
|
|
75
|
+
case T:
|
|
76
|
+
return "Fragment";
|
|
77
|
+
case A:
|
|
78
|
+
return "Portal";
|
|
79
|
+
case C:
|
|
80
|
+
return "Profiler";
|
|
81
|
+
case b:
|
|
82
|
+
return "StrictMode";
|
|
83
|
+
case y:
|
|
84
|
+
return "Suspense";
|
|
85
|
+
case p:
|
|
86
|
+
return "SuspenseList";
|
|
87
|
+
}
|
|
88
|
+
if (typeof e == "object")
|
|
89
|
+
switch (e.$$typeof) {
|
|
90
|
+
case j:
|
|
91
|
+
var r = e;
|
|
92
|
+
return fe(r) + ".Consumer";
|
|
93
|
+
case x:
|
|
94
|
+
var a = e;
|
|
95
|
+
return fe(a._context) + ".Provider";
|
|
96
|
+
case f:
|
|
97
|
+
return $e(e, e.render, "ForwardRef");
|
|
98
|
+
case c:
|
|
99
|
+
var n = e.displayName || null;
|
|
100
|
+
return n !== null ? n : F(e.type) || "Memo";
|
|
101
|
+
case R: {
|
|
102
|
+
var l = e, u = l._payload, i = l._init;
|
|
103
|
+
try {
|
|
104
|
+
return F(i(u));
|
|
105
|
+
} catch {
|
|
106
|
+
return null;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
var L = Object.assign, H = 0, _e, he, pe, ve, me, be, ge;
|
|
113
|
+
function xe() {
|
|
114
|
+
}
|
|
115
|
+
xe.__reactDisabledLog = !0;
|
|
116
|
+
function Me() {
|
|
117
|
+
{
|
|
118
|
+
if (H === 0) {
|
|
119
|
+
_e = console.log, he = console.info, pe = console.warn, ve = console.error, me = console.group, be = console.groupCollapsed, ge = console.groupEnd;
|
|
120
|
+
var e = {
|
|
121
|
+
configurable: !0,
|
|
122
|
+
enumerable: !0,
|
|
123
|
+
value: xe,
|
|
124
|
+
writable: !0
|
|
125
|
+
};
|
|
126
|
+
Object.defineProperties(console, {
|
|
127
|
+
info: e,
|
|
128
|
+
log: e,
|
|
129
|
+
warn: e,
|
|
130
|
+
error: e,
|
|
131
|
+
group: e,
|
|
132
|
+
groupCollapsed: e,
|
|
133
|
+
groupEnd: e
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
H++;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
function Ye() {
|
|
140
|
+
{
|
|
141
|
+
if (H--, H === 0) {
|
|
142
|
+
var e = {
|
|
143
|
+
configurable: !0,
|
|
144
|
+
enumerable: !0,
|
|
145
|
+
writable: !0
|
|
146
|
+
};
|
|
147
|
+
Object.defineProperties(console, {
|
|
148
|
+
log: L({}, e, {
|
|
149
|
+
value: _e
|
|
150
|
+
}),
|
|
151
|
+
info: L({}, e, {
|
|
152
|
+
value: he
|
|
153
|
+
}),
|
|
154
|
+
warn: L({}, e, {
|
|
155
|
+
value: pe
|
|
156
|
+
}),
|
|
157
|
+
error: L({}, e, {
|
|
158
|
+
value: ve
|
|
159
|
+
}),
|
|
160
|
+
group: L({}, e, {
|
|
161
|
+
value: me
|
|
162
|
+
}),
|
|
163
|
+
groupCollapsed: L({}, e, {
|
|
164
|
+
value: be
|
|
165
|
+
}),
|
|
166
|
+
groupEnd: L({}, e, {
|
|
167
|
+
value: ge
|
|
168
|
+
})
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
H < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
var ne = O.ReactCurrentDispatcher, oe;
|
|
175
|
+
function Z(e, r, a) {
|
|
176
|
+
{
|
|
177
|
+
if (oe === void 0)
|
|
178
|
+
try {
|
|
179
|
+
throw Error();
|
|
180
|
+
} catch (l) {
|
|
181
|
+
var n = l.stack.trim().match(/\n( *(at )?)/);
|
|
182
|
+
oe = n && n[1] || "";
|
|
183
|
+
}
|
|
184
|
+
return `
|
|
185
|
+
` + oe + e;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
var se = !1, Q;
|
|
189
|
+
{
|
|
190
|
+
var Ve = typeof WeakMap == "function" ? WeakMap : Map;
|
|
191
|
+
Q = new Ve();
|
|
192
|
+
}
|
|
193
|
+
function je(e, r) {
|
|
194
|
+
if (!e || se)
|
|
195
|
+
return "";
|
|
196
|
+
{
|
|
197
|
+
var a = Q.get(e);
|
|
198
|
+
if (a !== void 0)
|
|
199
|
+
return a;
|
|
200
|
+
}
|
|
201
|
+
var n;
|
|
202
|
+
se = !0;
|
|
203
|
+
var l = Error.prepareStackTrace;
|
|
204
|
+
Error.prepareStackTrace = void 0;
|
|
205
|
+
var u;
|
|
206
|
+
u = ne.current, ne.current = null, Me();
|
|
207
|
+
try {
|
|
208
|
+
if (r) {
|
|
209
|
+
var i = function() {
|
|
210
|
+
throw Error();
|
|
211
|
+
};
|
|
212
|
+
if (Object.defineProperty(i.prototype, "props", {
|
|
213
|
+
set: function() {
|
|
214
|
+
throw Error();
|
|
215
|
+
}
|
|
216
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
217
|
+
try {
|
|
218
|
+
Reflect.construct(i, []);
|
|
219
|
+
} catch (E) {
|
|
220
|
+
n = E;
|
|
221
|
+
}
|
|
222
|
+
Reflect.construct(e, [], i);
|
|
223
|
+
} else {
|
|
224
|
+
try {
|
|
225
|
+
i.call();
|
|
226
|
+
} catch (E) {
|
|
227
|
+
n = E;
|
|
228
|
+
}
|
|
229
|
+
e.call(i.prototype);
|
|
230
|
+
}
|
|
231
|
+
} else {
|
|
232
|
+
try {
|
|
233
|
+
throw Error();
|
|
234
|
+
} catch (E) {
|
|
235
|
+
n = E;
|
|
236
|
+
}
|
|
237
|
+
e();
|
|
238
|
+
}
|
|
239
|
+
} catch (E) {
|
|
240
|
+
if (E && n && typeof E.stack == "string") {
|
|
241
|
+
for (var s = E.stack.split(`
|
|
242
|
+
`), k = n.stack.split(`
|
|
243
|
+
`), v = s.length - 1, m = k.length - 1; v >= 1 && m >= 0 && s[v] !== k[m]; )
|
|
244
|
+
m--;
|
|
245
|
+
for (; v >= 1 && m >= 0; v--, m--)
|
|
246
|
+
if (s[v] !== k[m]) {
|
|
247
|
+
if (v !== 1 || m !== 1)
|
|
248
|
+
do
|
|
249
|
+
if (v--, m--, m < 0 || s[v] !== k[m]) {
|
|
250
|
+
var w = `
|
|
251
|
+
` + s[v].replace(" at new ", " at ");
|
|
252
|
+
return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && Q.set(e, w), w;
|
|
253
|
+
}
|
|
254
|
+
while (v >= 1 && m >= 0);
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
} finally {
|
|
259
|
+
se = !1, ne.current = u, Ye(), Error.prepareStackTrace = l;
|
|
260
|
+
}
|
|
261
|
+
var J = e ? e.displayName || e.name : "", W = J ? Z(J) : "";
|
|
262
|
+
return typeof e == "function" && Q.set(e, W), W;
|
|
263
|
+
}
|
|
264
|
+
function Ue(e, r, a) {
|
|
265
|
+
return je(e, !1);
|
|
266
|
+
}
|
|
267
|
+
function Je(e) {
|
|
268
|
+
var r = e.prototype;
|
|
269
|
+
return !!(r && r.isReactComponent);
|
|
270
|
+
}
|
|
271
|
+
function ee(e, r, a) {
|
|
272
|
+
if (e == null)
|
|
273
|
+
return "";
|
|
274
|
+
if (typeof e == "function")
|
|
275
|
+
return je(e, Je(e));
|
|
276
|
+
if (typeof e == "string")
|
|
277
|
+
return Z(e);
|
|
278
|
+
switch (e) {
|
|
279
|
+
case y:
|
|
280
|
+
return Z("Suspense");
|
|
281
|
+
case p:
|
|
282
|
+
return Z("SuspenseList");
|
|
283
|
+
}
|
|
284
|
+
if (typeof e == "object")
|
|
285
|
+
switch (e.$$typeof) {
|
|
286
|
+
case f:
|
|
287
|
+
return Ue(e.render);
|
|
288
|
+
case c:
|
|
289
|
+
return ee(e.type, r, a);
|
|
290
|
+
case R: {
|
|
291
|
+
var n = e, l = n._payload, u = n._init;
|
|
292
|
+
try {
|
|
293
|
+
return ee(u(l), r, a);
|
|
294
|
+
} catch {
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
return "";
|
|
299
|
+
}
|
|
300
|
+
var K = Object.prototype.hasOwnProperty, ye = {}, ke = O.ReactDebugCurrentFrame;
|
|
301
|
+
function te(e) {
|
|
302
|
+
if (e) {
|
|
303
|
+
var r = e._owner, a = ee(e.type, e._source, r ? r.type : null);
|
|
304
|
+
ke.setExtraStackFrame(a);
|
|
305
|
+
} else
|
|
306
|
+
ke.setExtraStackFrame(null);
|
|
307
|
+
}
|
|
308
|
+
function He(e, r, a, n, l) {
|
|
309
|
+
{
|
|
310
|
+
var u = Function.call.bind(K);
|
|
311
|
+
for (var i in e)
|
|
312
|
+
if (u(e, i)) {
|
|
313
|
+
var s = void 0;
|
|
314
|
+
try {
|
|
315
|
+
if (typeof e[i] != "function") {
|
|
316
|
+
var k = Error((n || "React class") + ": " + a + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
317
|
+
throw k.name = "Invariant Violation", k;
|
|
318
|
+
}
|
|
319
|
+
s = e[i](r, i, n, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
320
|
+
} catch (v) {
|
|
321
|
+
s = v;
|
|
322
|
+
}
|
|
323
|
+
s && !(s instanceof Error) && (te(l), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", a, i, typeof s), te(null)), s instanceof Error && !(s.message in ye) && (ye[s.message] = !0, te(l), g("Failed %s type: %s", a, s.message), te(null));
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
var Ke = Array.isArray;
|
|
328
|
+
function ie(e) {
|
|
329
|
+
return Ke(e);
|
|
330
|
+
}
|
|
331
|
+
function ze(e) {
|
|
332
|
+
{
|
|
333
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, a = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
334
|
+
return a;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
function Ge(e) {
|
|
338
|
+
try {
|
|
339
|
+
return Re(e), !1;
|
|
340
|
+
} catch {
|
|
341
|
+
return !0;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
function Re(e) {
|
|
345
|
+
return "" + e;
|
|
346
|
+
}
|
|
347
|
+
function Se(e) {
|
|
348
|
+
if (Ge(e))
|
|
349
|
+
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ze(e)), Re(e);
|
|
350
|
+
}
|
|
351
|
+
var Ee = O.ReactCurrentOwner, Xe = {
|
|
352
|
+
key: !0,
|
|
353
|
+
ref: !0,
|
|
354
|
+
__self: !0,
|
|
355
|
+
__source: !0
|
|
356
|
+
}, Ne, Te;
|
|
357
|
+
function Ze(e) {
|
|
358
|
+
if (K.call(e, "ref")) {
|
|
359
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
360
|
+
if (r && r.isReactWarning)
|
|
361
|
+
return !1;
|
|
362
|
+
}
|
|
363
|
+
return e.ref !== void 0;
|
|
364
|
+
}
|
|
365
|
+
function Qe(e) {
|
|
366
|
+
if (K.call(e, "key")) {
|
|
367
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
368
|
+
if (r && r.isReactWarning)
|
|
369
|
+
return !1;
|
|
370
|
+
}
|
|
371
|
+
return e.key !== void 0;
|
|
372
|
+
}
|
|
373
|
+
function et(e, r) {
|
|
374
|
+
typeof e.ref == "string" && Ee.current;
|
|
375
|
+
}
|
|
376
|
+
function tt(e, r) {
|
|
377
|
+
{
|
|
378
|
+
var a = function() {
|
|
379
|
+
Ne || (Ne = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
380
|
+
};
|
|
381
|
+
a.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
382
|
+
get: a,
|
|
383
|
+
configurable: !0
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
function rt(e, r) {
|
|
388
|
+
{
|
|
389
|
+
var a = function() {
|
|
390
|
+
Te || (Te = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
391
|
+
};
|
|
392
|
+
a.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
393
|
+
get: a,
|
|
394
|
+
configurable: !0
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
var at = function(e, r, a, n, l, u, i) {
|
|
399
|
+
var s = {
|
|
400
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
401
|
+
$$typeof: _,
|
|
402
|
+
// Built-in properties that belong on the element
|
|
403
|
+
type: e,
|
|
404
|
+
key: r,
|
|
405
|
+
ref: a,
|
|
406
|
+
props: i,
|
|
407
|
+
// Record the component responsible for creating this element.
|
|
408
|
+
_owner: u
|
|
409
|
+
};
|
|
410
|
+
return s._store = {}, Object.defineProperty(s._store, "validated", {
|
|
411
|
+
configurable: !1,
|
|
412
|
+
enumerable: !1,
|
|
413
|
+
writable: !0,
|
|
414
|
+
value: !1
|
|
415
|
+
}), Object.defineProperty(s, "_self", {
|
|
416
|
+
configurable: !1,
|
|
417
|
+
enumerable: !1,
|
|
418
|
+
writable: !1,
|
|
419
|
+
value: n
|
|
420
|
+
}), Object.defineProperty(s, "_source", {
|
|
421
|
+
configurable: !1,
|
|
422
|
+
enumerable: !1,
|
|
423
|
+
writable: !1,
|
|
424
|
+
value: l
|
|
425
|
+
}), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
|
|
426
|
+
};
|
|
427
|
+
function nt(e, r, a, n, l) {
|
|
428
|
+
{
|
|
429
|
+
var u, i = {}, s = null, k = null;
|
|
430
|
+
a !== void 0 && (Se(a), s = "" + a), Qe(r) && (Se(r.key), s = "" + r.key), Ze(r) && (k = r.ref, et(r, l));
|
|
431
|
+
for (u in r)
|
|
432
|
+
K.call(r, u) && !Xe.hasOwnProperty(u) && (i[u] = r[u]);
|
|
433
|
+
if (e && e.defaultProps) {
|
|
434
|
+
var v = e.defaultProps;
|
|
435
|
+
for (u in v)
|
|
436
|
+
i[u] === void 0 && (i[u] = v[u]);
|
|
437
|
+
}
|
|
438
|
+
if (s || k) {
|
|
439
|
+
var m = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
440
|
+
s && tt(i, m), k && rt(i, m);
|
|
441
|
+
}
|
|
442
|
+
return at(e, s, k, l, n, Ee.current, i);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
var le = O.ReactCurrentOwner, we = O.ReactDebugCurrentFrame;
|
|
446
|
+
function U(e) {
|
|
447
|
+
if (e) {
|
|
448
|
+
var r = e._owner, a = ee(e.type, e._source, r ? r.type : null);
|
|
449
|
+
we.setExtraStackFrame(a);
|
|
450
|
+
} else
|
|
451
|
+
we.setExtraStackFrame(null);
|
|
452
|
+
}
|
|
453
|
+
var ce;
|
|
454
|
+
ce = !1;
|
|
455
|
+
function ue(e) {
|
|
456
|
+
return typeof e == "object" && e !== null && e.$$typeof === _;
|
|
457
|
+
}
|
|
458
|
+
function Ce() {
|
|
459
|
+
{
|
|
460
|
+
if (le.current) {
|
|
461
|
+
var e = F(le.current.type);
|
|
462
|
+
if (e)
|
|
463
|
+
return `
|
|
464
|
+
|
|
465
|
+
Check the render method of \`` + e + "`.";
|
|
466
|
+
}
|
|
467
|
+
return "";
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
function ot(e) {
|
|
471
|
+
return "";
|
|
472
|
+
}
|
|
473
|
+
var Pe = {};
|
|
474
|
+
function st(e) {
|
|
475
|
+
{
|
|
476
|
+
var r = Ce();
|
|
477
|
+
if (!r) {
|
|
478
|
+
var a = typeof e == "string" ? e : e.displayName || e.name;
|
|
479
|
+
a && (r = `
|
|
480
|
+
|
|
481
|
+
Check the top-level render call using <` + a + ">.");
|
|
482
|
+
}
|
|
483
|
+
return r;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
function Oe(e, r) {
|
|
487
|
+
{
|
|
488
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
489
|
+
return;
|
|
490
|
+
e._store.validated = !0;
|
|
491
|
+
var a = st(r);
|
|
492
|
+
if (Pe[a])
|
|
493
|
+
return;
|
|
494
|
+
Pe[a] = !0;
|
|
495
|
+
var n = "";
|
|
496
|
+
e && e._owner && e._owner !== le.current && (n = " It was passed a child from " + F(e._owner.type) + "."), U(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, n), U(null);
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
function Be(e, r) {
|
|
500
|
+
{
|
|
501
|
+
if (typeof e != "object")
|
|
502
|
+
return;
|
|
503
|
+
if (ie(e))
|
|
504
|
+
for (var a = 0; a < e.length; a++) {
|
|
505
|
+
var n = e[a];
|
|
506
|
+
ue(n) && Oe(n, r);
|
|
507
|
+
}
|
|
508
|
+
else if (ue(e))
|
|
509
|
+
e._store && (e._store.validated = !0);
|
|
510
|
+
else if (e) {
|
|
511
|
+
var l = $(e);
|
|
512
|
+
if (typeof l == "function" && l !== e.entries)
|
|
513
|
+
for (var u = l.call(e), i; !(i = u.next()).done; )
|
|
514
|
+
ue(i.value) && Oe(i.value, r);
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
function it(e) {
|
|
519
|
+
{
|
|
520
|
+
var r = e.type;
|
|
521
|
+
if (r == null || typeof r == "string")
|
|
522
|
+
return;
|
|
523
|
+
var a;
|
|
524
|
+
if (typeof r == "function")
|
|
525
|
+
a = r.propTypes;
|
|
526
|
+
else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
|
|
527
|
+
// Inner props are checked in the reconciler.
|
|
528
|
+
r.$$typeof === c))
|
|
529
|
+
a = r.propTypes;
|
|
530
|
+
else
|
|
531
|
+
return;
|
|
532
|
+
if (a) {
|
|
533
|
+
var n = F(r);
|
|
534
|
+
He(a, e.props, "prop", n, e);
|
|
535
|
+
} else if (r.PropTypes !== void 0 && !ce) {
|
|
536
|
+
ce = !0;
|
|
537
|
+
var l = F(r);
|
|
538
|
+
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", l || "Unknown");
|
|
539
|
+
}
|
|
540
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
function lt(e) {
|
|
544
|
+
{
|
|
545
|
+
for (var r = Object.keys(e.props), a = 0; a < r.length; a++) {
|
|
546
|
+
var n = r[a];
|
|
547
|
+
if (n !== "children" && n !== "key") {
|
|
548
|
+
U(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), U(null);
|
|
549
|
+
break;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
e.ref !== null && (U(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), U(null));
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
var Ae = {};
|
|
556
|
+
function Fe(e, r, a, n, l, u) {
|
|
557
|
+
{
|
|
558
|
+
var i = X(e);
|
|
559
|
+
if (!i) {
|
|
560
|
+
var s = "";
|
|
561
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (s += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
562
|
+
var k = ot();
|
|
563
|
+
k ? s += k : s += Ce();
|
|
564
|
+
var v;
|
|
565
|
+
e === null ? v = "null" : ie(e) ? v = "array" : e !== void 0 && e.$$typeof === _ ? (v = "<" + (F(e.type) || "Unknown") + " />", s = " Did you accidentally export a JSX literal instead of a component?") : v = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", v, s);
|
|
566
|
+
}
|
|
567
|
+
var m = nt(e, r, a, l, u);
|
|
568
|
+
if (m == null)
|
|
569
|
+
return m;
|
|
570
|
+
if (i) {
|
|
571
|
+
var w = r.children;
|
|
572
|
+
if (w !== void 0)
|
|
573
|
+
if (n)
|
|
574
|
+
if (ie(w)) {
|
|
575
|
+
for (var J = 0; J < w.length; J++)
|
|
576
|
+
Be(w[J], e);
|
|
577
|
+
Object.freeze && Object.freeze(w);
|
|
578
|
+
} else
|
|
579
|
+
g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
580
|
+
else
|
|
581
|
+
Be(w, e);
|
|
582
|
+
}
|
|
583
|
+
if (K.call(r, "key")) {
|
|
584
|
+
var W = F(e), E = Object.keys(r).filter(function(ht) {
|
|
585
|
+
return ht !== "key";
|
|
586
|
+
}), de = E.length > 0 ? "{key: someKey, " + E.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
587
|
+
if (!Ae[W + de]) {
|
|
588
|
+
var _t = E.length > 0 ? "{" + E.join(": ..., ") + ": ...}" : "{}";
|
|
589
|
+
g(`A props object containing a "key" prop is being spread into JSX:
|
|
590
|
+
let props = %s;
|
|
591
|
+
<%s {...props} />
|
|
592
|
+
React keys must be passed directly to JSX without using spread:
|
|
593
|
+
let props = %s;
|
|
594
|
+
<%s key={someKey} {...props} />`, de, W, _t, W), Ae[W + de] = !0;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
return e === T ? lt(m) : it(m), m;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
function ct(e, r, a) {
|
|
601
|
+
return Fe(e, r, a, !0);
|
|
602
|
+
}
|
|
603
|
+
function ut(e, r, a) {
|
|
604
|
+
return Fe(e, r, a, !1);
|
|
605
|
+
}
|
|
606
|
+
var dt = ut, ft = ct;
|
|
607
|
+
G.Fragment = T, G.jsx = dt, G.jsxs = ft;
|
|
608
|
+
})()), G;
|
|
609
|
+
}
|
|
610
|
+
var Ie;
|
|
611
|
+
function gt() {
|
|
612
|
+
return Ie || (Ie = 1, process.env.NODE_ENV === "production" ? re.exports = mt() : re.exports = bt()), re.exports;
|
|
613
|
+
}
|
|
614
|
+
var t = gt();
|
|
615
|
+
const xt = (h) => {
|
|
616
|
+
switch (h?.toUpperCase()) {
|
|
617
|
+
case "INR":
|
|
618
|
+
return "₹";
|
|
619
|
+
case "USD":
|
|
620
|
+
return "$";
|
|
621
|
+
default:
|
|
622
|
+
return "$";
|
|
623
|
+
}
|
|
624
|
+
}, jt = ({
|
|
625
|
+
size: h = 14,
|
|
626
|
+
className: _
|
|
627
|
+
}) => /* @__PURE__ */ t.jsx(
|
|
628
|
+
"svg",
|
|
629
|
+
{
|
|
630
|
+
width: h,
|
|
631
|
+
height: h,
|
|
632
|
+
viewBox: "0 0 14 14",
|
|
633
|
+
fill: "none",
|
|
634
|
+
"aria-hidden": "true",
|
|
635
|
+
focusable: "false",
|
|
636
|
+
className: _,
|
|
637
|
+
children: /* @__PURE__ */ t.jsx(
|
|
638
|
+
"path",
|
|
639
|
+
{
|
|
640
|
+
d: "M7 1.167l1.72 3.485 3.846.561-2.783 2.713.657 3.83L7 9.95l-3.44 1.806.657-3.83L1.434 5.213l3.846-.561L7 1.167z",
|
|
641
|
+
fill: "#ffc627",
|
|
642
|
+
stroke: "#ffc627",
|
|
643
|
+
strokeWidth: "1",
|
|
644
|
+
strokeLinejoin: "round"
|
|
645
|
+
}
|
|
646
|
+
)
|
|
647
|
+
}
|
|
648
|
+
), yt = "_plate_1xb7t_9", kt = "_ribbon_1xb7t_17", Rt = "_card_1xb7t_30", St = "_topSection_1xb7t_45", Et = "_photoWrap_1xb7t_56", Nt = "_photo_1xb7t_56", Tt = "_photoFallback_1xb7t_73", wt = "_ratingBadge_1xb7t_87", Ct = "_ratingStar_1xb7t_105", Pt = "_details_1xb7t_110", Ot = "_identity_1xb7t_118", Bt = "_name_1xb7t_125", At = "_experience_1xb7t_134", Ft = "_languages_1xb7t_142", Dt = "_tagsRow_1xb7t_153", qt = "_tag_1xb7t_153", It = "_divider_1xb7t_174", Lt = "_bottomSection_1xb7t_183", Wt = "_priceArea_1xb7t_190", $t = "_discountRow_1xb7t_197", Mt = "_mrp_1xb7t_203", Yt = "_discount_1xb7t_197", Vt = "_price_1xb7t_190", Ut = "_actionArea_1xb7t_227", Jt = "_ctaBtn_1xb7t_231", d = {
|
|
649
|
+
plate: yt,
|
|
650
|
+
ribbon: kt,
|
|
651
|
+
card: Rt,
|
|
652
|
+
topSection: St,
|
|
653
|
+
photoWrap: Et,
|
|
654
|
+
photo: Nt,
|
|
655
|
+
photoFallback: Tt,
|
|
656
|
+
ratingBadge: wt,
|
|
657
|
+
ratingStar: Ct,
|
|
658
|
+
details: Pt,
|
|
659
|
+
identity: Ot,
|
|
660
|
+
name: Bt,
|
|
661
|
+
experience: At,
|
|
662
|
+
languages: Ft,
|
|
663
|
+
tagsRow: Dt,
|
|
664
|
+
tag: qt,
|
|
665
|
+
divider: It,
|
|
666
|
+
bottomSection: Lt,
|
|
667
|
+
priceArea: Wt,
|
|
668
|
+
discountRow: $t,
|
|
669
|
+
mrp: Mt,
|
|
670
|
+
discount: Yt,
|
|
671
|
+
price: Vt,
|
|
672
|
+
actionArea: Ut,
|
|
673
|
+
ctaBtn: Jt
|
|
674
|
+
}, Le = (...h) => h.filter(Boolean).join(" "), Ht = (h) => h.toFixed(1), Gr = ({
|
|
675
|
+
astrologer: h,
|
|
676
|
+
pricing: _,
|
|
677
|
+
currencySymbol: A,
|
|
678
|
+
onSelectSlot: T,
|
|
679
|
+
disabled: b = !1,
|
|
680
|
+
ctaLabel: C,
|
|
681
|
+
t: x,
|
|
682
|
+
className: j = "",
|
|
683
|
+
innerRef: f
|
|
684
|
+
}) => {
|
|
685
|
+
const {
|
|
686
|
+
name: y,
|
|
687
|
+
photoUrl: p,
|
|
688
|
+
languages: c,
|
|
689
|
+
specialties: R,
|
|
690
|
+
experienceYears: S,
|
|
691
|
+
rating: N,
|
|
692
|
+
isPreviouslyConsulted: P = !1
|
|
693
|
+
} = h, $ = A ?? xt(_?.currencyCode), O = typeof N == "number" && N > 0, g = typeof S == "number" && S > 0, M = c?.length ? c.join(", ") : "", D = R?.filter(Boolean) ?? [], q = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
694
|
+
/* @__PURE__ */ t.jsxs("div", { className: d.topSection, children: [
|
|
695
|
+
/* @__PURE__ */ t.jsxs("div", { className: d.photoWrap, children: [
|
|
696
|
+
p ? /* @__PURE__ */ t.jsx("img", { className: d.photo, src: p, alt: y, loading: "lazy" }) : /* @__PURE__ */ t.jsx("div", { className: d.photoFallback, "aria-hidden": "true", children: y?.trim().charAt(0).toUpperCase() || "?" }),
|
|
697
|
+
O && /* @__PURE__ */ t.jsxs("span", { className: d.ratingBadge, children: [
|
|
698
|
+
Ht(N),
|
|
699
|
+
/* @__PURE__ */ t.jsx(jt, { className: d.ratingStar })
|
|
700
|
+
] })
|
|
701
|
+
] }),
|
|
702
|
+
/* @__PURE__ */ t.jsxs("div", { className: d.details, children: [
|
|
703
|
+
/* @__PURE__ */ t.jsxs("div", { className: d.identity, children: [
|
|
704
|
+
/* @__PURE__ */ t.jsx("p", { className: d.name, children: y }),
|
|
705
|
+
g && /* @__PURE__ */ t.jsx("p", { className: d.experience, children: x?.("consultationYearsOfExperience", { count: S }) ?? `${S}+ years of experience` }),
|
|
706
|
+
M && /* @__PURE__ */ t.jsx("p", { className: d.languages, children: M })
|
|
707
|
+
] }),
|
|
708
|
+
D.length > 0 && /* @__PURE__ */ t.jsx("div", { className: d.tagsRow, children: D.map((Y) => /* @__PURE__ */ t.jsx("span", { className: d.tag, children: Y }, Y)) })
|
|
709
|
+
] })
|
|
710
|
+
] }),
|
|
711
|
+
/* @__PURE__ */ t.jsx("hr", { className: d.divider }),
|
|
712
|
+
/* @__PURE__ */ t.jsxs("div", { className: d.bottomSection, children: [
|
|
713
|
+
_ && /* @__PURE__ */ t.jsxs("div", { className: d.priceArea, children: [
|
|
714
|
+
(_.mrp != null || _.discountPercent != null) && /* @__PURE__ */ t.jsxs("div", { className: d.discountRow, children: [
|
|
715
|
+
_.mrp != null && /* @__PURE__ */ t.jsxs("span", { className: d.mrp, children: [
|
|
716
|
+
$,
|
|
717
|
+
_.mrp
|
|
718
|
+
] }),
|
|
719
|
+
_.discountPercent != null && /* @__PURE__ */ t.jsx("span", { className: d.discount, children: x?.("consultationPercentOff", { percent: _.discountPercent }) ?? `${_.discountPercent}% Off` })
|
|
720
|
+
] }),
|
|
721
|
+
/* @__PURE__ */ t.jsxs("span", { className: d.price, children: [
|
|
722
|
+
$,
|
|
723
|
+
_.price
|
|
724
|
+
] })
|
|
725
|
+
] }),
|
|
726
|
+
/* @__PURE__ */ t.jsx("div", { className: d.actionArea, children: /* @__PURE__ */ t.jsx(
|
|
727
|
+
"button",
|
|
728
|
+
{
|
|
729
|
+
type: "button",
|
|
730
|
+
className: d.ctaBtn,
|
|
731
|
+
disabled: b,
|
|
732
|
+
onClick: () => T?.(h),
|
|
733
|
+
children: C ?? x?.("consultationSelectSlot") ?? "Select Slot"
|
|
734
|
+
}
|
|
735
|
+
) })
|
|
736
|
+
] })
|
|
737
|
+
] });
|
|
738
|
+
return P ? /* @__PURE__ */ t.jsxs("div", { ref: f, className: Le(d.plate, j), children: [
|
|
739
|
+
/* @__PURE__ */ t.jsx("div", { className: d.card, children: q }),
|
|
740
|
+
/* @__PURE__ */ t.jsx("div", { className: d.ribbon, children: x?.("consultationPreviouslyConsulted") ?? "Previously Consulted" })
|
|
741
|
+
] }) : /* @__PURE__ */ t.jsx("div", { ref: f, className: Le(d.card, j), children: q });
|
|
742
|
+
}, Kt = "_iconBadge_rli31_15", zt = "_header_rli31_52", Gt = "_headerNoIcon_rli31_59", Xt = "_title_rli31_63", Zt = "_headerDivider_rli31_71", Qt = "_bodyInner_rli31_80", er = "_phoneSection_rli31_85", tr = "_footerInner_rli31_90", rr = "_ctaBtn_rli31_95", ar = "_errorText_rli31_118", B = {
|
|
743
|
+
iconBadge: Kt,
|
|
744
|
+
header: zt,
|
|
745
|
+
headerNoIcon: Gt,
|
|
746
|
+
title: Xt,
|
|
747
|
+
headerDivider: Zt,
|
|
748
|
+
bodyInner: Qt,
|
|
749
|
+
phoneSection: er,
|
|
750
|
+
footerInner: tr,
|
|
751
|
+
ctaBtn: rr,
|
|
752
|
+
errorText: ar
|
|
753
|
+
}, Xr = ({
|
|
754
|
+
isOpen: h,
|
|
755
|
+
onClose: _,
|
|
756
|
+
days: A,
|
|
757
|
+
loading: T = !1,
|
|
758
|
+
error: b = !1,
|
|
759
|
+
onRetry: C,
|
|
760
|
+
selectedDate: x,
|
|
761
|
+
onDateSelect: j,
|
|
762
|
+
selectedPeriod: f,
|
|
763
|
+
onPeriodSelect: y,
|
|
764
|
+
selectedSlotStart: p,
|
|
765
|
+
onSlotSelect: c,
|
|
766
|
+
phoneNumberSection: R,
|
|
767
|
+
title: S,
|
|
768
|
+
heading: N,
|
|
769
|
+
iconUrl: P,
|
|
770
|
+
icon: $,
|
|
771
|
+
ctaLabel: O,
|
|
772
|
+
onCtaClick: g,
|
|
773
|
+
ctaDisabled: M = !1,
|
|
774
|
+
isProcessing: D = !1,
|
|
775
|
+
errorMessage: q,
|
|
776
|
+
isGlobal: Y = !0,
|
|
777
|
+
t: I,
|
|
778
|
+
className: ae = ""
|
|
779
|
+
}) => {
|
|
780
|
+
const V = $ ?? (P ? /* @__PURE__ */ t.jsx("img", { src: P, alt: "" }) : null), X = S ?? I?.("consultationSheetTitle") ?? "Schedule your call";
|
|
781
|
+
return /* @__PURE__ */ t.jsx(
|
|
782
|
+
pt,
|
|
783
|
+
{
|
|
784
|
+
isOpen: h,
|
|
785
|
+
onClose: _,
|
|
786
|
+
ariaLabel: X,
|
|
787
|
+
className: ae,
|
|
788
|
+
header: /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
789
|
+
V && /* @__PURE__ */ t.jsx("div", { className: B.iconBadge, children: V }),
|
|
790
|
+
/* @__PURE__ */ t.jsx(
|
|
791
|
+
"div",
|
|
792
|
+
{
|
|
793
|
+
className: [B.header, !V && B.headerNoIcon].filter(Boolean).join(" "),
|
|
794
|
+
children: /* @__PURE__ */ t.jsx("p", { className: B.title, children: X })
|
|
795
|
+
}
|
|
796
|
+
),
|
|
797
|
+
/* @__PURE__ */ t.jsx("hr", { className: B.headerDivider })
|
|
798
|
+
] }),
|
|
799
|
+
footer: /* @__PURE__ */ t.jsxs("div", { className: B.footerInner, children: [
|
|
800
|
+
/* @__PURE__ */ t.jsx(
|
|
801
|
+
"button",
|
|
802
|
+
{
|
|
803
|
+
type: "button",
|
|
804
|
+
className: B.ctaBtn,
|
|
805
|
+
disabled: M || D,
|
|
806
|
+
onClick: g,
|
|
807
|
+
children: D ? I?.("consultationScheduling") ?? "Scheduling…" : O ?? I?.("consultationScheduleCall") ?? "Schedule call"
|
|
808
|
+
}
|
|
809
|
+
),
|
|
810
|
+
q && /* @__PURE__ */ t.jsx("p", { className: B.errorText, children: q })
|
|
811
|
+
] }),
|
|
812
|
+
children: /* @__PURE__ */ t.jsxs("div", { className: B.bodyInner, children: [
|
|
813
|
+
R && /* @__PURE__ */ t.jsx("div", { className: B.phoneSection, children: R }),
|
|
814
|
+
/* @__PURE__ */ t.jsx(
|
|
815
|
+
vt,
|
|
816
|
+
{
|
|
817
|
+
days: A,
|
|
818
|
+
loading: T,
|
|
819
|
+
error: b,
|
|
820
|
+
onRetry: C,
|
|
821
|
+
selectedDate: x,
|
|
822
|
+
onDateSelect: j,
|
|
823
|
+
selectedPeriod: f,
|
|
824
|
+
onPeriodSelect: y,
|
|
825
|
+
selectedSlotStart: p,
|
|
826
|
+
onSlotSelect: c,
|
|
827
|
+
heading: N ?? I?.("consultationSelectTimeSlot") ?? "Select a time slot.",
|
|
828
|
+
showAstrologyProfilesSection: !1,
|
|
829
|
+
hideLanguageSelector: !0,
|
|
830
|
+
showPhoneNumberSection: !1,
|
|
831
|
+
reportReadyNote: null,
|
|
832
|
+
isGlobal: Y,
|
|
833
|
+
t: I
|
|
834
|
+
}
|
|
835
|
+
)
|
|
836
|
+
] })
|
|
837
|
+
}
|
|
838
|
+
);
|
|
839
|
+
}, nr = () => /* @__PURE__ */ t.jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ t.jsx(
|
|
840
|
+
"path",
|
|
841
|
+
{
|
|
842
|
+
d: "M12.5 15.833 6.667 10 12.5 4.167",
|
|
843
|
+
stroke: "currentColor",
|
|
844
|
+
strokeWidth: "1.6",
|
|
845
|
+
strokeLinecap: "round",
|
|
846
|
+
strokeLinejoin: "round"
|
|
847
|
+
}
|
|
848
|
+
) }), or = () => /* @__PURE__ */ t.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ t.jsx(
|
|
849
|
+
"path",
|
|
850
|
+
{
|
|
851
|
+
d: "M8 1.333l1.966 3.983 4.395.64-3.18 3.1.75 4.377L8 11.37l-3.931 2.064.75-4.378-3.18-3.1 4.395-.639L8 1.333z",
|
|
852
|
+
fill: "#ffc627",
|
|
853
|
+
stroke: "#ffc627",
|
|
854
|
+
strokeWidth: "1",
|
|
855
|
+
strokeLinejoin: "round"
|
|
856
|
+
}
|
|
857
|
+
) }), sr = () => /* @__PURE__ */ t.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: [
|
|
858
|
+
/* @__PURE__ */ t.jsx(
|
|
859
|
+
"path",
|
|
860
|
+
{
|
|
861
|
+
d: "M5.333 1.333v2M10.667 1.333v2M2 6h9.5M14 8.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z",
|
|
862
|
+
stroke: "#374151",
|
|
863
|
+
strokeWidth: "1.2",
|
|
864
|
+
strokeLinecap: "round"
|
|
865
|
+
}
|
|
866
|
+
),
|
|
867
|
+
/* @__PURE__ */ t.jsx(
|
|
868
|
+
"path",
|
|
869
|
+
{
|
|
870
|
+
d: "M11.5 7.5v1.25l.75.75",
|
|
871
|
+
stroke: "#374151",
|
|
872
|
+
strokeWidth: "1.2",
|
|
873
|
+
strokeLinecap: "round"
|
|
874
|
+
}
|
|
875
|
+
),
|
|
876
|
+
/* @__PURE__ */ t.jsx(
|
|
877
|
+
"path",
|
|
878
|
+
{
|
|
879
|
+
d: "M5.5 13.5H3.333A1.333 1.333 0 0 1 2 12.167V4.667a1.333 1.333 0 0 1 1.333-1.334h9.334A1.333 1.333 0 0 1 14 4.667V6",
|
|
880
|
+
stroke: "#374151",
|
|
881
|
+
strokeWidth: "1.2",
|
|
882
|
+
strokeLinecap: "round"
|
|
883
|
+
}
|
|
884
|
+
)
|
|
885
|
+
] }), ir = () => /* @__PURE__ */ t.jsx("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ t.jsx(
|
|
886
|
+
"path",
|
|
887
|
+
{
|
|
888
|
+
d: "M16.5 12.69v2.25a1.5 1.5 0 0 1-1.635 1.5 14.85 14.85 0 0 1-6.472-2.303 14.63 14.63 0 0 1-4.5-4.5A14.85 14.85 0 0 1 1.59 3.135 1.5 1.5 0 0 1 3.083 1.5h2.25a1.5 1.5 0 0 1 1.5 1.29c.095.72.271 1.427.525 2.107a1.5 1.5 0 0 1-.337 1.583l-.953.952a12 12 0 0 0 4.5 4.5l.953-.952a1.5 1.5 0 0 1 1.582-.338c.68.254 1.387.43 2.108.525a1.5 1.5 0 0 1 1.29 1.523Z",
|
|
889
|
+
stroke: "currentColor",
|
|
890
|
+
strokeWidth: "1.5",
|
|
891
|
+
strokeLinecap: "round",
|
|
892
|
+
strokeLinejoin: "round"
|
|
893
|
+
}
|
|
894
|
+
) }), lr = "_root_io71q_3", cr = "_header_io71q_14", ur = "_backBtn_io71q_21", dr = "_headerTitle_io71q_34", fr = "_helpBtn_io71q_41", _r = "_hero_io71q_58", hr = "_tick_io71q_70", pr = "_heroTitle_io71q_84", vr = "_statRow_io71q_95", mr = "_stat_io71q_95", br = "_statLabel_io71q_118", gr = "_statValue_io71q_126", xr = "_statDivider_io71q_137", jr = "_body_io71q_145", yr = "_section_io71q_149", kr = "_bookedHeading_io71q_157", Rr = "_bookedTitle_io71q_165", Sr = "_bookedSubtitle_io71q_173", Er = "_astrologerCard_io71q_180", Nr = "_astrologerRow_io71q_193", Tr = "_photo_io71q_199", wr = "_photoFallback_io71q_208", Cr = "_astrologerMeta_io71q_222", Pr = "_astrologerName_io71q_230", Or = "_astrologerSubRow_io71q_239", Br = "_languages_io71q_245", Ar = "_metaDivider_io71q_251", Fr = "_rating_io71q_257", Dr = "_slotPill_io71q_267", qr = "_slotPillText_io71q_280", Ir = "_failedCard_io71q_289", Lr = "_failedTitle_io71q_302", Wr = "_failedSubtitle_io71q_310", $r = "_ctaBtn_io71q_318", Mr = "_footnote_io71q_345", Yr = "_skeleton_io71q_356", Vr = "_skeletonLine_io71q_363", Ur = "_skeletonCta_io71q_373", o = {
|
|
895
|
+
root: lr,
|
|
896
|
+
header: cr,
|
|
897
|
+
backBtn: ur,
|
|
898
|
+
headerTitle: dr,
|
|
899
|
+
helpBtn: fr,
|
|
900
|
+
hero: _r,
|
|
901
|
+
tick: hr,
|
|
902
|
+
heroTitle: pr,
|
|
903
|
+
statRow: vr,
|
|
904
|
+
stat: mr,
|
|
905
|
+
statLabel: br,
|
|
906
|
+
statValue: gr,
|
|
907
|
+
statDivider: xr,
|
|
908
|
+
body: jr,
|
|
909
|
+
section: yr,
|
|
910
|
+
bookedHeading: kr,
|
|
911
|
+
bookedTitle: Rr,
|
|
912
|
+
bookedSubtitle: Sr,
|
|
913
|
+
astrologerCard: Er,
|
|
914
|
+
astrologerRow: Nr,
|
|
915
|
+
photo: Tr,
|
|
916
|
+
photoFallback: wr,
|
|
917
|
+
astrologerMeta: Cr,
|
|
918
|
+
astrologerName: Pr,
|
|
919
|
+
astrologerSubRow: Or,
|
|
920
|
+
languages: Br,
|
|
921
|
+
metaDivider: Ar,
|
|
922
|
+
rating: Fr,
|
|
923
|
+
slotPill: Dr,
|
|
924
|
+
slotPillText: qr,
|
|
925
|
+
failedCard: Ir,
|
|
926
|
+
failedTitle: Lr,
|
|
927
|
+
failedSubtitle: Wr,
|
|
928
|
+
ctaBtn: $r,
|
|
929
|
+
footnote: Mr,
|
|
930
|
+
skeleton: Yr,
|
|
931
|
+
skeletonLine: Vr,
|
|
932
|
+
skeletonCta: Ur
|
|
933
|
+
}, Jr = (...h) => h.filter(Boolean).join(" "), Zr = ({
|
|
934
|
+
status: h,
|
|
935
|
+
amount: _,
|
|
936
|
+
currencySymbol: A = "₹",
|
|
937
|
+
bookingId: T,
|
|
938
|
+
astrologer: b,
|
|
939
|
+
slotLabel: C,
|
|
940
|
+
isLoading: x = !1,
|
|
941
|
+
onBack: j,
|
|
942
|
+
onHelp: f,
|
|
943
|
+
onJoinCall: y,
|
|
944
|
+
onBookSlotAgain: p,
|
|
945
|
+
t: c,
|
|
946
|
+
className: R = ""
|
|
947
|
+
}) => {
|
|
948
|
+
const S = h === "booked", N = b.languages?.length ? b.languages.join(", ") : "", P = typeof b.rating == "number" && b.rating > 0;
|
|
949
|
+
return /* @__PURE__ */ t.jsxs("div", { className: Jr(o.root, R), "data-testid": "payment-result", children: [
|
|
950
|
+
/* @__PURE__ */ t.jsxs("div", { className: o.header, children: [
|
|
951
|
+
j && /* @__PURE__ */ t.jsx(
|
|
952
|
+
"button",
|
|
953
|
+
{
|
|
954
|
+
type: "button",
|
|
955
|
+
className: o.backBtn,
|
|
956
|
+
onClick: j,
|
|
957
|
+
"aria-label": c?.("back") ?? "Back",
|
|
958
|
+
children: /* @__PURE__ */ t.jsx(nr, {})
|
|
959
|
+
}
|
|
960
|
+
),
|
|
961
|
+
/* @__PURE__ */ t.jsx("span", { className: o.headerTitle, children: c?.("bookingConfirmationTitle") ?? "Booking Confirmation" }),
|
|
962
|
+
f && /* @__PURE__ */ t.jsx("button", { type: "button", className: o.helpBtn, onClick: f, children: c?.("help") ?? "Help" })
|
|
963
|
+
] }),
|
|
964
|
+
/* @__PURE__ */ t.jsxs("div", { className: o.hero, children: [
|
|
965
|
+
/* @__PURE__ */ t.jsx("div", { className: o.tick, "aria-hidden": "true", children: "✓" }),
|
|
966
|
+
/* @__PURE__ */ t.jsx("p", { className: o.heroTitle, children: c?.("paymentSuccessful") ?? "Payment Successful 🎉" }),
|
|
967
|
+
/* @__PURE__ */ t.jsxs("div", { className: o.statRow, children: [
|
|
968
|
+
/* @__PURE__ */ t.jsxs("div", { className: o.stat, children: [
|
|
969
|
+
/* @__PURE__ */ t.jsx("span", { className: o.statLabel, children: c?.("paid") ?? "Paid" }),
|
|
970
|
+
/* @__PURE__ */ t.jsxs("span", { className: o.statValue, children: [
|
|
971
|
+
A,
|
|
972
|
+
_
|
|
973
|
+
] })
|
|
974
|
+
] }),
|
|
975
|
+
/* @__PURE__ */ t.jsx("div", { className: o.statDivider }),
|
|
976
|
+
/* @__PURE__ */ t.jsxs("div", { className: o.stat, children: [
|
|
977
|
+
/* @__PURE__ */ t.jsx("span", { className: o.statLabel, children: c?.("booking") ?? "Booking" }),
|
|
978
|
+
/* @__PURE__ */ t.jsx("span", { className: o.statValue, children: T || "-" })
|
|
979
|
+
] })
|
|
980
|
+
] })
|
|
981
|
+
] }),
|
|
982
|
+
/* @__PURE__ */ t.jsxs("div", { className: o.body, children: [
|
|
983
|
+
x && /* @__PURE__ */ t.jsxs("div", { className: o.skeleton, "aria-busy": "true", "aria-live": "polite", children: [
|
|
984
|
+
/* @__PURE__ */ t.jsx("div", { className: o.skeletonLine, style: { width: "60%" } }),
|
|
985
|
+
/* @__PURE__ */ t.jsx("div", { className: o.skeletonLine, style: { width: "85%" } }),
|
|
986
|
+
/* @__PURE__ */ t.jsx("div", { className: o.skeletonCta })
|
|
987
|
+
] }),
|
|
988
|
+
!x && S && /* @__PURE__ */ t.jsxs("div", { className: o.section, children: [
|
|
989
|
+
/* @__PURE__ */ t.jsxs("div", { className: o.bookedHeading, children: [
|
|
990
|
+
/* @__PURE__ */ t.jsx("p", { className: o.bookedTitle, children: c?.("consultationSlotBookedTitle") ?? "Consultation Slot Booked!" }),
|
|
991
|
+
/* @__PURE__ */ t.jsx("p", { className: o.bookedSubtitle, children: c?.("consultationSlotBookedSubtitle") ?? "Your 30 minutes call with our Certified Vedic Astrologer is booked" })
|
|
992
|
+
] }),
|
|
993
|
+
/* @__PURE__ */ t.jsxs("div", { className: o.astrologerCard, children: [
|
|
994
|
+
/* @__PURE__ */ t.jsxs("div", { className: o.astrologerRow, children: [
|
|
995
|
+
b.photoUrl ? /* @__PURE__ */ t.jsx(
|
|
996
|
+
"img",
|
|
997
|
+
{
|
|
998
|
+
className: o.photo,
|
|
999
|
+
src: b.photoUrl,
|
|
1000
|
+
alt: b.name
|
|
1001
|
+
}
|
|
1002
|
+
) : /* @__PURE__ */ t.jsx("div", { className: o.photoFallback, "aria-hidden": "true", children: b.name?.trim().charAt(0).toUpperCase() || "?" }),
|
|
1003
|
+
/* @__PURE__ */ t.jsxs("div", { className: o.astrologerMeta, children: [
|
|
1004
|
+
/* @__PURE__ */ t.jsx("p", { className: o.astrologerName, children: b.name }),
|
|
1005
|
+
(N || P) && /* @__PURE__ */ t.jsxs("div", { className: o.astrologerSubRow, children: [
|
|
1006
|
+
N && /* @__PURE__ */ t.jsx("span", { className: o.languages, children: N }),
|
|
1007
|
+
N && P && /* @__PURE__ */ t.jsx("span", { className: o.metaDivider }),
|
|
1008
|
+
P && /* @__PURE__ */ t.jsxs("span", { className: o.rating, children: [
|
|
1009
|
+
b.rating.toFixed(1),
|
|
1010
|
+
/* @__PURE__ */ t.jsx(or, {})
|
|
1011
|
+
] })
|
|
1012
|
+
] })
|
|
1013
|
+
] })
|
|
1014
|
+
] }),
|
|
1015
|
+
C && /* @__PURE__ */ t.jsxs("div", { className: o.slotPill, children: [
|
|
1016
|
+
/* @__PURE__ */ t.jsx(sr, {}),
|
|
1017
|
+
/* @__PURE__ */ t.jsx("span", { className: o.slotPillText, children: C })
|
|
1018
|
+
] })
|
|
1019
|
+
] }),
|
|
1020
|
+
y && /* @__PURE__ */ t.jsxs(
|
|
1021
|
+
"button",
|
|
1022
|
+
{
|
|
1023
|
+
type: "button",
|
|
1024
|
+
className: o.ctaBtn,
|
|
1025
|
+
onClick: y,
|
|
1026
|
+
children: [
|
|
1027
|
+
/* @__PURE__ */ t.jsx(ir, {}),
|
|
1028
|
+
c?.("joinCall") ?? "Join Call"
|
|
1029
|
+
]
|
|
1030
|
+
}
|
|
1031
|
+
),
|
|
1032
|
+
/* @__PURE__ */ t.jsx("p", { className: o.footnote, children: c?.("consultationWhatsappUpdate") ?? "All updates will be sent to your WhatsApp" })
|
|
1033
|
+
] }),
|
|
1034
|
+
!x && !S && /* @__PURE__ */ t.jsxs("div", { className: o.section, children: [
|
|
1035
|
+
/* @__PURE__ */ t.jsxs("div", { className: o.failedCard, children: [
|
|
1036
|
+
/* @__PURE__ */ t.jsx("p", { className: o.failedTitle, children: c?.("consultationSlotFailedTitle") ?? "Consultation Slot Failed!" }),
|
|
1037
|
+
/* @__PURE__ */ t.jsx("p", { className: o.failedSubtitle, children: c?.("consultationSlotFailedSubtitle") ?? "We ran into some problem while booking your slot. Please schedule your slot again" })
|
|
1038
|
+
] }),
|
|
1039
|
+
p && /* @__PURE__ */ t.jsx(
|
|
1040
|
+
"button",
|
|
1041
|
+
{
|
|
1042
|
+
type: "button",
|
|
1043
|
+
className: o.ctaBtn,
|
|
1044
|
+
onClick: p,
|
|
1045
|
+
children: c?.("consultationBookSlotAgain") ?? "Book slot again →"
|
|
1046
|
+
}
|
|
1047
|
+
),
|
|
1048
|
+
/* @__PURE__ */ t.jsx("p", { className: o.footnote, children: c?.("consultationWhatsappUpdate") ?? "All updates will be sent to your WhatsApp" })
|
|
1049
|
+
] })
|
|
1050
|
+
] })
|
|
1051
|
+
] });
|
|
1052
|
+
};
|
|
1053
|
+
export {
|
|
1054
|
+
Gr as AstrologerCard,
|
|
1055
|
+
Xr as ConsultationSlotSheet,
|
|
1056
|
+
Zr as PaymentResult,
|
|
1057
|
+
xt as getAstrologerPriceSymbol
|
|
1058
|
+
};
|
|
1059
|
+
//# sourceMappingURL=astro-consultation.js.map
|