@srimandir/astrology-common 7.2.0 → 7.2.2

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.
Files changed (42) hide show
  1. package/dist/astrology-common.css +1 -1
  2. package/dist/components/CircularMarquee/CircularMarquee.d.ts +1 -1
  3. package/dist/components/ConsultationSlotSelector/types.d.ts +3 -1
  4. package/dist/components/Consultations/AstrologerCard.d.ts +11 -0
  5. package/dist/components/Consultations/AstrologerList.d.ts +18 -0
  6. package/dist/components/Consultations/AstrologerPhoto.d.ts +9 -0
  7. package/dist/components/Consultations/RecommendedBadge.d.ts +7 -0
  8. package/dist/components/Consultations/icons.d.ts +5 -0
  9. package/dist/components/Consultations/index.d.ts +6 -0
  10. package/dist/components/Consultations/mockAstrologers.d.ts +2 -0
  11. package/dist/components/Consultations/types.d.ts +10 -0
  12. package/dist/components/ContactUsSection/ContactUsSection.d.ts +1 -1
  13. package/dist/components/FAQAccordion/FAQAccordion.d.ts +1 -1
  14. package/dist/components/FooterShell/FooterCTAButton.d.ts +1 -1
  15. package/dist/components/FooterShell/FooterShell.d.ts +1 -1
  16. package/dist/components/FormCheckboxWithHelp/FormCheckboxWithHelp.d.ts +1 -1
  17. package/dist/components/FormContainer/FormContainer.d.ts +1 -1
  18. package/dist/components/FormDateInput/FormDateInput.d.ts +1 -1
  19. package/dist/components/FormField/FormField.d.ts +1 -1
  20. package/dist/components/FormFooterNote/FormFooterNote.d.ts +1 -1
  21. package/dist/components/FormLocationInput/FormLocationInput.d.ts +1 -1
  22. package/dist/components/FormSectionHeader/FormSectionHeader.d.ts +1 -1
  23. package/dist/components/FormSegmentedControl/FormSegmentedControl.d.ts +1 -1
  24. package/dist/components/FormTagPills/FormTagPills.d.ts +1 -1
  25. package/dist/components/FormTextInput/FormTextInput.d.ts +1 -1
  26. package/dist/components/FormTimeInput/FormTimeInput.d.ts +1 -1
  27. package/dist/components/MarqueeStrip/MarqueeStrip.d.ts +1 -1
  28. package/dist/components/PageHeader/PageHeader.d.ts +1 -1
  29. package/dist/components/PhoneNumberInput/PhoneNumberInput.d.ts +27 -0
  30. package/dist/components/PhoneNumberInput/countries.d.ts +13 -0
  31. package/dist/components/PhoneNumberInput/icons.d.ts +3 -0
  32. package/dist/components/PhoneNumberInput/index.d.ts +3 -0
  33. package/dist/components/PhoneNumberInput/usePhoneNumberInput.d.ts +22 -0
  34. package/dist/components/PrivacyBanner/PrivacyBanner.d.ts +1 -1
  35. package/dist/components/UserReviewsSection/UserReviewsSection.d.ts +1 -1
  36. package/dist/index.cjs +1 -14
  37. package/dist/index.cjs.map +1 -1
  38. package/dist/index.d.ts +4 -0
  39. package/dist/index.js +1388 -1517
  40. package/dist/index.js.map +1 -1
  41. package/dist/utils/phoneValidation.d.ts +6 -0
  42. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/jsx-runtime.js","../src/components/UserReviewsSection/UserReviewsSection.tsx","../src/components/FAQAccordion/FAQAccordion.tsx","../src/components/PageHeader/PageHeader.tsx","../src/components/FormContainer/FormContainer.tsx","../src/components/FormSectionHeader/FormSectionHeader.tsx","../src/components/PrivacyBanner/PrivacyBanner.tsx","../src/components/FormField/FormField.tsx","../src/components/FormTextInput/FormTextInput.tsx","../src/components/FormDateInput/FormDateInput.tsx","../src/components/FormTimeInput/FormTimeInput.tsx","../src/components/FormLocationInput/FormLocationInput.tsx","../src/components/FormSegmentedControl/FormSegmentedControl.tsx","../src/components/FormTagPills/FormTagPills.tsx","../src/components/FormCheckboxWithHelp/FormCheckboxWithHelp.tsx","../src/components/FormFooterNote/FormFooterNote.tsx","../src/components/FooterShell/FooterShell.tsx","../src/components/FooterShell/FooterCTAButton.tsx","../src/components/CircularMarquee/CircularMarquee.tsx","../src/components/MarqueeStrip/MarqueeStrip.tsx","../src/components/ContactUsSection/ContactUsSection.tsx","../src/components/ConsultationSlotSelector/slotUtils.ts","../src/components/ConsultationSlotSelector/SlotIcons.tsx","../src/components/ConsultationSlotSelector/PhoneNumberSection.tsx","../src/components/ConsultationSlotSelector/AstrologyProfilesSection.tsx","../src/components/ConsultationSlotSelector/ConsultationSlotSelector.tsx","../src/components/ConsultationSlotSelector/mockSlots.ts"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar React = require('react');\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"<anonymous>\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('<anonymous>')) {\n _frame = _frame.replace('<anonymous>', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%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).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%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)', displayName);\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%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)', displayName);\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n // issue if key is also explicitly declared (ie. <div {...props} key=\"Hi\" />\n // or <div key=\"Hi\" {...props} /> ). We want to deprecate key spread,\n // but as an intermediary step, we will use jsxDEV for everything except\n // <div {...props} key=\"Hi\" />, because we aren't currently able to tell if\n // key is explicitly declared to be undefined or not.\n\n if (maybeKey !== undefined) {\n {\n checkKeyStringCoercion(maybeKey);\n }\n\n key = '' + maybeKey;\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n }\n\n if (hasValidRef(config)) {\n ref = config.ref;\n warnIfStringRefCannotBeAutoConverted(config, self);\n } // Remaining properties are added to a new props object\n\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n}\n\nfunction getDeclarationErrorAddendum() {\n {\n if (ReactCurrentOwner$1.current) {\n var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n }\n\n setCurrentlyValidatingElement$1(element);\n\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n setCurrentlyValidatingElement$1(null);\n }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n {\n if (typeof node !== 'object') {\n return;\n }\n\n if (isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentNameFromType(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentNameFromType(type);\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n setCurrentlyValidatingElement$1(null);\n }\n }\n}\n\nvar didWarnAboutKeySpread = {};\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(source);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n var children = props.children;\n\n if (children !== undefined) {\n if (isStaticChildren) {\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n validateChildKeys(children[i], type);\n }\n\n if (Object.freeze) {\n Object.freeze(children);\n }\n } else {\n error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n }\n } else {\n validateChildKeys(children, type);\n }\n }\n }\n\n {\n if (hasOwnProperty.call(props, 'key')) {\n var componentName = getComponentNameFromType(type);\n var keys = Object.keys(props).filter(function (k) {\n return k !== 'key';\n });\n var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';\n\n if (!didWarnAboutKeySpread[componentName + beforeExample]) {\n var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';\n\n error('A props object containing a \"key\" prop is being spread into JSX:\\n' + ' let props = %s;\\n' + ' <%s {...props} />\\n' + 'React keys must be passed directly to JSX without using spread:\\n' + ' let props = %s;\\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);\n\n didWarnAboutKeySpread[componentName + beforeExample] = true;\n }\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, true);\n }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, false);\n }\n}\n\nvar jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs = jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import { useState, useMemo } from 'react';\nimport styles from './UserReviewsSection.module.scss';\n\nconst DEFAULT_INITIAL_VISIBLE = 3;\nconst MAX_TESTIMONIALS = 15;\n\nexport interface Testimonial {\n quote: string;\n authorName: string;\n authorAvatarUrl?: string;\n rating?: number;\n}\n\nfunction buildTestimonialsFromTranslations(\n t: (key: string) => string\n): Testimonial[] {\n const itemsByIndex = new Map<number, Testimonial>();\n\n for (let i = 1; i <= MAX_TESTIMONIALS; i += 1) {\n const quoteKey = `feedbackTestimonial${i}`;\n const quote = t(quoteKey);\n if (!quote || quote === quoteKey) continue;\n\n const authorKey = `feedbackAuthor${i}`;\n const authorName = (() => {\n const v = t(authorKey);\n return v && v !== authorKey ? v : t('guest');\n })();\n\n const avatarKey = `feedbackAuthor${i}AvatarUrl`;\n const avatar = (() => {\n const v = t(avatarKey);\n return v && v !== avatarKey ? v : undefined;\n })();\n\n itemsByIndex.set(i, {\n quote,\n authorName,\n authorAvatarUrl: avatar,\n rating: 5,\n });\n }\n\n const maleIndices: number[] = [];\n const femaleIndices: number[] = [];\n for (let i = 1; i <= MAX_TESTIMONIALS; i += 1) {\n if (i >= 9) femaleIndices.push(i);\n else maleIndices.push(i);\n }\n\n const mixed: Testimonial[] = [];\n let m = 0;\n let f = 0;\n while (m < maleIndices.length || f < femaleIndices.length) {\n if (f < femaleIndices.length) {\n const idx = femaleIndices[f++];\n const item = itemsByIndex.get(idx);\n if (item) mixed.push(item);\n }\n if (m < maleIndices.length) {\n const idx = maleIndices[m++];\n const item = itemsByIndex.get(idx);\n if (item) mixed.push(item);\n }\n }\n\n return mixed;\n}\n\nexport interface UserReviewsSectionProps {\n /** Translation function; uses keys: feedbackTitle, feedbackRating, feedbackTrust, readMoreReviews, readLess, feedbackTestimonial1-15, feedbackAuthor1-15, guest */\n t: (key: string) => string;\n /** Override testimonials; if not set, built from t() */\n testimonials?: Testimonial[];\n /** Initial number of reviews to show before \"Read more\" */\n initialVisible?: number;\n /** If set, \"Read more\" renders as external link */\n readMoreHref?: string;\n onReadMore?: () => void;\n className?: string;\n /** Optional class name for the section heading (e.g. to use bold in one app and semibold in another) */\n headingClassName?: string;\n}\n\nexport function UserReviewsSection({\n t,\n testimonials: testimonialsProp,\n initialVisible = DEFAULT_INITIAL_VISIBLE,\n readMoreHref,\n onReadMore,\n className = '',\n headingClassName,\n}: UserReviewsSectionProps) {\n const testimonials =\n testimonialsProp ??\n useMemo(() => buildTestimonialsFromTranslations(t), [t]);\n\n const [expanded, setExpanded] = useState(false);\n const hasMore = testimonials.length > initialVisible;\n const visibleTestimonials =\n hasMore && !expanded ? testimonials.slice(0, initialVisible) : testimonials;\n\n const title = t('feedbackTitle');\n const ratingLabel = t('feedbackRating');\n const trustText = t('feedbackTrust');\n const readMoreLabel = t('readMoreReviews');\n const readLessLabel = t('readLess');\n\n return (\n <section\n className={`${styles.section} ${className}`}\n aria-labelledby=\"reviews-heading\"\n > \n <h2\n id=\"reviews-heading\"\n className={[styles.heading, headingClassName].filter(Boolean).join(' ')}\n >\n {title}\n </h2>\n <p className={styles.trustLine}>\n <span className={styles.star} aria-hidden>\n ★\n </span>\n <span className={styles.ratingNum}>{ratingLabel}</span>\n <span className={styles.dot} aria-hidden />\n <span className={styles.trustText}>{trustText}</span>\n </p>\n <ul className={styles.cardList}>\n {visibleTestimonials.map((item, index) => (\n <li key={index} className={styles.card}>\n <p className={styles.quote}>{item.quote}</p>\n <div className={styles.author}>\n {item.authorAvatarUrl ? (\n <img\n src={item.authorAvatarUrl}\n alt=\"\"\n className={styles.avatar}\n width={40}\n height={40}\n />\n ) : (\n <div className={styles.avatarPlaceholder} aria-hidden />\n )}\n <div className={styles.authorInfo}>\n <span className={styles.authorName}>{item.authorName}</span>\n <span className={styles.stars} aria-hidden>\n {'★'.repeat(item.rating ?? 5)}\n </span>\n </div>\n </div>\n </li>\n ))}\n </ul>\n {hasMore && (\n <div className={styles.readMoreWrap}>\n <button\n type=\"button\"\n className={styles.toggleBtn}\n onClick={() => setExpanded((e) => !e)}\n aria-expanded={expanded}\n >\n {expanded ? readLessLabel : readMoreLabel}\n <span className={styles.arrow} aria-hidden>\n ›\n </span>\n </button>\n </div>\n )}\n {(readMoreHref || onReadMore) && !hasMore && (\n <div className={styles.readMoreWrap}>\n {readMoreHref ? (\n <a\n href={readMoreHref}\n className={styles.readMore}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n {readMoreLabel}\n <span className={styles.arrow} aria-hidden>\n ›\n </span>\n </a>\n ) : (\n <button\n type=\"button\"\n className={styles.readMore}\n onClick={() => onReadMore?.()}\n >\n {readMoreLabel}\n <span className={styles.arrow} aria-hidden>\n ›\n </span>\n </button>\n )}\n </div>\n )}\n </section>\n );\n}\n","import { useState, useMemo } from 'react';\nimport styles from './FAQAccordion.module.scss';\n\nexport interface FAQItemKey {\n qKey: string;\n aKey: string;\n}\n\nexport interface FAQAccordionProps {\n /** Translation function; uses keys: faqTitle, and item qKey/aKey (or resolved answer key) */\n t: (key: string) => string;\n /** List of Q&A item keys (translation keys for question and answer) */\n items: FAQItemKey[];\n /** Optional: map answer key to another key (e.g. faqA1 -> faqA1Global) */\n resolveAnswerKey?: (aKey: string) => string;\n /** Index of the item to open by default (-1 = none) */\n defaultOpenIndex?: number;\n /** Called when an item is expanded; receives the question text */\n onItemOpen?: (questionText: string) => void;\n className?: string;\n /** Optional class name for the section heading (e.g. to use bold in one app and semibold in another) */\n headingClassName?: string;\n}\n\nexport function FAQAccordion({\n t,\n items,\n resolveAnswerKey,\n defaultOpenIndex = 0,\n onItemOpen,\n className = '',\n headingClassName,\n}: FAQAccordionProps) {\n const resolvedItems = useMemo(\n () =>\n items.map(({ qKey, aKey }) => ({\n question: t(qKey),\n answer: t(resolveAnswerKey ? resolveAnswerKey(aKey) : aKey),\n })),\n [t, items, resolveAnswerKey]\n );\n\n const [openIndex, setOpenIndex] = useState<number>(defaultOpenIndex);\n const title = t('faqTitle');\n\n return (\n <section\n className={`${styles.section} ${className}`}\n aria-labelledby=\"faq-heading\"\n >\n <h2\n id=\"faq-heading\"\n className={[styles.heading, headingClassName].filter(Boolean).join(' ')}\n >\n {title}\n </h2>\n <div className={styles.accordion} role=\"list\">\n {resolvedItems.map((item, index) => {\n const isOpen = openIndex === index;\n return (\n <div\n key={index}\n className={`${styles.item} ${isOpen ? styles.itemOpen : ''}`}\n role=\"listitem\"\n >\n <button\n type=\"button\"\n className={styles.question}\n onClick={() => {\n const nextOpen = !isOpen;\n setOpenIndex(isOpen ? -1 : index);\n if (nextOpen) onItemOpen?.(item.question);\n }}\n aria-expanded={isOpen}\n aria-controls={`faq-answer-${index}`}\n id={`faq-question-${index}`}\n >\n <span>{item.question}</span>\n <span\n className={`${styles.chevron} ${isOpen ? styles.chevronOpen : ''}`}\n aria-hidden\n >\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n aria-hidden\n focusable=\"false\"\n >\n <path\n d=\"M5.8 8.3a1 1 0 0 1 1.4 0L10 11.09l2.8-2.8a1 1 0 1 1 1.4 1.42l-3.5 3.5a1 1 0 0 1-1.4 0l-3.5-3.5A1 1 0 0 1 5.8 8.3z\"\n fill=\"currentColor\"\n />\n </svg>\n </span>\n </button>\n <div\n id={`faq-answer-${index}`}\n role=\"region\"\n aria-labelledby={`faq-question-${index}`}\n className={`${styles.answerWrap} ${isOpen ? styles.answerOpen : ''}`}\n hidden={!isOpen}\n >\n <p className={styles.answer}>{item.answer}</p>\n </div>\n </div>\n );\n })}\n </div>\n </section>\n );\n}\n","import type { ReactNode } from 'react';\nimport styles from './PageHeader.module.scss';\n\n/** Minimal image component props for optional optimized logo (e.g. next/image). */\nexport interface PageHeaderImageProps {\n src: string;\n alt: string;\n width?: number;\n height?: number;\n className?: string;\n}\n\nexport interface PageHeaderProps {\n /** Translation function; uses keys: sriMandir, ratingText */\n t: (key: string) => string;\n /** Logo image URL; if not set, a placeholder is shown */\n logoUrl?: string;\n /** Optional image component for logo (e.g. next/image adapter) */\n imageComponent?: React.ComponentType<PageHeaderImageProps>;\n /** Optional slot for language selector or other header actions */\n languageSelector?: ReactNode;\n /** Whether to show the languageSelector slot */\n showLanguageSelector?: boolean;\n className?: string;\n}\n\nconst DEFAULT_LOGO_WIDTH = 120;\nconst DEFAULT_LOGO_HEIGHT = 40;\n\nexport function PageHeader({\n t,\n logoUrl,\n imageComponent: ImageComponent,\n languageSelector,\n showLanguageSelector = true,\n className = '',\n}: PageHeaderProps) {\n const showSlot = showLanguageSelector && languageSelector != null;\n const brandName = t('sriMandir');\n const ratingText = t('ratingText');\n\n return (\n <header className={`${styles.header} ${className}`}>\n <div className={styles.brand}>\n <div className={styles.logo}>\n {logoUrl ? (\n ImageComponent ? (\n <ImageComponent\n src={logoUrl}\n alt={brandName}\n className={styles.logoImg}\n width={DEFAULT_LOGO_WIDTH}\n height={DEFAULT_LOGO_HEIGHT}\n />\n ) : (\n <img\n src={logoUrl}\n alt={brandName}\n className={styles.logoImg}\n width={DEFAULT_LOGO_WIDTH}\n height={DEFAULT_LOGO_HEIGHT}\n decoding=\"async\"\n />\n )\n ) : (\n <div className={styles.logoPlaceholder} aria-hidden />\n )}\n </div>\n <div className={styles.brandText}>\n <span className={styles.brandName}>{brandName}</span>\n {ratingText != null && ratingText !== '' && (\n <span className={styles.rating}>\n {ratingText}\n </span>\n )}\n </div>\n </div>\n {showSlot && <div className={styles.langSlot}>{languageSelector}</div>}\n </header>\n );\n}\n","import type { ReactNode } from 'react';\nimport styles from './FormContainer.module.scss';\n\nexport interface FormContainerProps {\n /** Form content (e.g. PrivacyBanner + FormSectionHeader + form fields) */\n children: ReactNode;\n className?: string;\n /** Accessibility label for the section */\n 'aria-label'?: string;\n}\n\nexport function FormContainer({\n children,\n className = '',\n 'aria-label': ariaLabel,\n}: FormContainerProps) {\n return (\n <section\n className={`${styles.wrap} ${className}`}\n aria-label={ariaLabel}\n >\n <div className={styles.card}>\n <div className={styles.cardInner}>{children}</div>\n </div>\n </section>\n );\n}\n","import type { ReactNode } from 'react';\nimport styles from './FormSectionHeader.module.scss';\n\nconst BackIcon = () => (\n <svg\n className={styles.backIcon}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden\n >\n <path\n d=\"M15 18l-6-6 6-6\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n);\n\nexport interface FormSectionHeaderProps {\n /** Form title */\n title: string;\n /** Optional subtitle below title */\n subtitle?: string;\n /** Optional back button; when provided, back button is shown and this is the aria-label */\n onBack?: () => void;\n backAriaLabel?: string;\n className?: string;\n}\n\nexport function FormSectionHeader({\n title,\n subtitle,\n onBack,\n backAriaLabel = 'Back',\n className = '',\n}: FormSectionHeaderProps) {\n return (\n <header className={`${styles.header} ${className}`}>\n <div className={styles.left}>\n {onBack != null && (\n <button\n type=\"button\"\n className={styles.backBtn}\n onClick={onBack}\n aria-label={backAriaLabel}\n >\n <BackIcon />\n </button>\n )}\n <div className={styles.titleWrap}>\n <h1 className={styles.title}>{title}</h1>\n {subtitle != null && subtitle !== '' && (\n <p className={styles.subtitle}>{subtitle}</p>\n )}\n </div>\n </div>\n </header>\n );\n}\n","import styles from './PrivacyBanner.module.scss';\n\nconst DEFAULT_SHIELD_ICON =\n 'https://srm-cdn.a4b.io/yoda/1770707793537.svg';\n\nexport interface PrivacyBannerProps {\n /** Text to show (e.g. \"100% Private & Secure\") */\n text: string;\n /** Optional shield icon URL */\n iconUrl?: string;\n className?: string;\n}\n\nexport function PrivacyBanner({\n text,\n iconUrl = DEFAULT_SHIELD_ICON,\n className = '',\n}: PrivacyBannerProps) {\n return (\n <div className={`${styles.banner} ${className}`} role=\"status\">\n <span className={styles.text}> <img\n src={iconUrl}\n alt=\"\"\n className={styles.icon}\n width={18}\n height={18}\n aria-hidden\n /> {text}</span>\n </div>\n );\n}\n","import type { ReactNode } from 'react';\nimport { useState, useEffect } from 'react';\nimport styles from './FormField.module.scss';\n\nconst DEFAULT_INFO_ICON = 'https://srm-cdn.a4b.io/yoda/1770372066357.svg';\n\nexport interface FormFieldProps {\n /** Field label (e.g. \"Enter Your Name\") */\n label: string;\n /** HTML id for the control (for label association) */\n id: string;\n /** Whether to show required asterisk */\n required?: boolean;\n /** Optional help text below label, above input */\n help?: string;\n /** Optional info tooltip text; when set, shows (i) icon that toggles tooltip */\n infoTooltip?: string;\n infoAriaLabel?: string;\n /** Icon URL for info button (default: common info icon) */\n infoIconUrl?: string;\n /** Control content (input, etc.) */\n children: ReactNode;\n className?: string;\n}\n\nexport function FormField({\n label,\n id,\n required = false,\n help,\n infoTooltip,\n infoAriaLabel = 'Info',\n infoIconUrl = DEFAULT_INFO_ICON,\n children,\n className = '',\n}: FormFieldProps) {\n const [infoOpen, setInfoOpen] = useState(false);\n\n useEffect(() => {\n if (!infoTooltip) return;\n const onDoc = (e: MouseEvent) => {\n const t = e.target as HTMLElement | null;\n if (t?.closest?.('[data-info-tooltip]') != null) return;\n setInfoOpen(false);\n };\n const onKey = (e: KeyboardEvent) => {\n if (e.key === 'Escape') setInfoOpen(false);\n };\n document.addEventListener('mousedown', onDoc);\n document.addEventListener('keydown', onKey);\n return () => {\n document.removeEventListener('mousedown', onDoc);\n document.removeEventListener('keydown', onKey);\n };\n }, [infoTooltip]);\n\n return (\n <div className={`${styles.field} ${className}`}>\n <div className={styles.labelRow}>\n <label className={styles.label} htmlFor={id}>\n {label}\n {required && <span className={styles.req}>*</span>}\n </label>\n {infoTooltip != null && infoTooltip !== '' && (\n <div className={styles.infoWrap} data-info-tooltip>\n <button\n type=\"button\"\n className={styles.infoBtn}\n aria-label={infoAriaLabel}\n aria-expanded={infoOpen}\n onClick={() => setInfoOpen((v) => !v)}\n >\n <img\n className={styles.infoImg}\n src={infoIconUrl}\n alt=\"\"\n aria-hidden\n />\n </button>\n {infoOpen && (\n <div className={styles.tooltip} role=\"tooltip\">\n {infoTooltip}\n <span className={styles.tooltipArrow} aria-hidden />\n </div>\n )}\n </div>\n )}\n </div>\n {help != null && help !== '' && (\n <div className={styles.help}>{help}</div>\n )}\n <div className={styles.inputWrap}>{children}</div>\n </div>\n );\n}\n","import type { InputHTMLAttributes } from 'react';\nimport styles from './FormTextInput.module.scss';\n\nexport interface FormTextInputProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, 'className'> {\n id: string;\n /** Optional icon URL on the right (e.g. location pin) */\n iconUrl?: string;\n iconAlt?: string;\n /** If true, icon is clickable (e.g. open picker) */\n iconInteractive?: boolean;\n onIconClick?: () => void;\n className?: string;\n}\n\nexport function FormTextInput({\n id,\n iconUrl,\n iconAlt = '',\n iconInteractive = false,\n onIconClick,\n className = '',\n ...rest\n}: FormTextInputProps) {\n return (\n <div className={`${styles.wrap} ${className}`}>\n <input\n {...rest}\n id={id}\n className={styles.input}\n type={rest.type ?? 'text'}\n />\n {iconUrl != null && (\n <button\n type=\"button\"\n className={\n iconInteractive\n ? `${styles.iconBtn} ${styles.iconBtnInteractive}`\n : styles.iconBtn\n }\n aria-label={iconAlt || undefined}\n onClick={iconInteractive ? onIconClick : undefined}\n tabIndex={iconInteractive ? 0 : -1}\n >\n <img\n className={styles.iconImg}\n src={iconUrl}\n alt=\"\"\n aria-hidden\n width={22}\n height={22}\n />\n </button>\n )}\n </div>\n );\n}\n","import type { InputHTMLAttributes } from 'react';\nimport { useRef, useMemo } from 'react';\nimport styles from './FormDateInput.module.scss';\n\nconst ICON_DATE = 'https://srm-cdn.a4b.io/yoda/1770372045894.svg';\n\nexport interface FormDateInputProps\n extends Omit<\n InputHTMLAttributes<HTMLInputElement>,\n 'type' | 'className' | 'value' | 'onChange'\n > {\n id: string;\n value: string;\n onChange: (value: string) => void;\n /** Optional: open native picker when icon clicked */\n onIconClick?: () => void;\n className?: string;\n}\n\nexport function FormDateInput({\n id,\n value,\n onChange,\n onIconClick,\n className = '',\n ...rest\n}: FormDateInputProps) {\n const inputRef = useRef<HTMLInputElement>(null);\n const maxDate = useMemo(() => {\n const d = new Date();\n const pad = (n: number) => String(n).padStart(2, '0');\n return `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())}`;\n }, []);\n\n const handleIconClick = () => {\n if (onIconClick) {\n onIconClick();\n return;\n }\n const el = inputRef.current;\n if (\n el &&\n typeof (el as HTMLInputElement & { showPicker?: () => void })\n .showPicker === 'function'\n ) {\n (el as HTMLInputElement & { showPicker: () => void }).showPicker();\n } else {\n el?.focus();\n }\n };\n\n return (\n <div className={`${styles.wrap} ${className}`}>\n <input\n {...rest}\n ref={inputRef}\n id={id}\n type=\"date\"\n className={styles.input}\n value={value}\n max={maxDate}\n onChange={(e) => onChange(e.target.value)}\n />\n <button\n type=\"button\"\n className={`${styles.iconBtn}`}\n aria-label=\"Open date picker\"\n onMouseDown={(e) => e.preventDefault()}\n onClick={(e) => {\n e.preventDefault();\n handleIconClick();\n }}\n >\n <img\n className={styles.iconImg}\n src={ICON_DATE}\n alt=\"\"\n aria-hidden\n width={22}\n height={22}\n />\n </button>\n </div>\n );\n}\n","import styles from './FormTimeInput.module.scss';\n\nconst ICON_TIME = 'https://srm-cdn.a4b.io/yoda/1770372014782.svg';\n\nexport interface FormTimeInputProps {\n id: string;\n value: string;\n onChange: (value: string) => void;\n placeholder?: string;\n disabled?: boolean;\n onIconClick?: () => void;\n className?: string;\n}\n\nexport function FormTimeInput({\n id,\n value,\n onChange,\n placeholder = 'HH:MM AM',\n disabled = false,\n onIconClick,\n className = '',\n}: FormTimeInputProps) {\n return (\n <div className={`${styles.wrap} ${className}`}>\n <input\n id={id}\n type=\"time\"\n className={styles.input}\n value={value}\n onChange={(e) => onChange(e.target.value)}\n placeholder={placeholder}\n disabled={disabled}\n onClick={() => !disabled && onIconClick?.()}\n />\n <button\n type=\"button\"\n className={styles.iconBtn}\n aria-label=\"Open time picker\"\n disabled={disabled}\n onClick={(e) => {\n e.preventDefault();\n if (!disabled) onIconClick?.();\n }}\n >\n <img\n className={styles.iconImg}\n src={ICON_TIME}\n alt=\"\"\n aria-hidden\n width={22}\n height={22}\n />\n </button>\n </div>\n );\n}\n","import type { InputHTMLAttributes } from 'react';\nimport styles from './FormLocationInput.module.scss';\n\nconst ICON_LOCATION = 'https://srm-cdn.a4b.io/yoda/1770372031092.svg';\n\nexport interface FormLocationInputProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, 'className'> {\n id: string;\n iconUrl?: string;\n className?: string;\n}\n\nexport function FormLocationInput({\n id,\n iconUrl = ICON_LOCATION,\n className = '',\n ...rest\n}: FormLocationInputProps) {\n return (\n <div className={`${styles.wrap} ${className}`}>\n <input {...rest} id={id} className={styles.input} type=\"text\" />\n <div className={styles.iconBtn} aria-hidden>\n <img\n className={styles.iconImg}\n src={iconUrl}\n alt=\"\"\n width={22}\n height={22}\n />\n </div>\n </div>\n );\n}\n","import styles from './FormSegmentedControl.module.scss';\n\nexport interface SegmentedOption {\n value: string;\n label: string;\n}\n\nexport interface FormSegmentedControlProps {\n id: string;\n options: SegmentedOption[];\n value: string;\n onChange: (value: string) => void;\n className?: string;\n}\n\nexport function FormSegmentedControl({\n id,\n options,\n value,\n onChange,\n className = '',\n}: FormSegmentedControlProps) {\n return (\n <div\n className={`${styles.segmented} ${className}`}\n role=\"group\"\n aria-labelledby={`${id}-label`}\n >\n {options.map((opt) => (\n <button\n key={opt.value}\n type=\"button\"\n id={opt.value === value ? id : undefined}\n className={`${styles.segmentedOption} ${opt.value === value ? styles.active : ''}`}\n onClick={() => onChange(opt.value)}\n >\n {opt.label}\n </button>\n ))}\n </div>\n );\n}\n","import styles from './FormTagPills.module.scss';\n\nexport interface FormTagPillsProps {\n id: string;\n options: { key: string; label: string }[];\n selected: string[];\n onChange: (selected: string[]) => void;\n className?: string;\n}\n\nexport function FormTagPills({\n id,\n options,\n selected,\n onChange,\n className = '',\n}: FormTagPillsProps) {\n const toggle = (key: string) => {\n if (selected.includes(key)) {\n onChange(selected.filter((k) => k !== key));\n } else {\n onChange([...selected, key]);\n }\n };\n\n return (\n <div\n className={`${styles.pillsWrap} ${className}`}\n role=\"group\"\n aria-labelledby={`${id}-label`}\n >\n {options.map((opt) => (\n <button\n key={opt.key}\n type=\"button\"\n className={`${styles.pill} ${selected.includes(opt.key) ? styles.selected : ''}`}\n onClick={() => toggle(opt.key)}\n >\n {opt.label}\n </button>\n ))}\n </div>\n );\n}\n","import styles from './FormCheckboxWithHelp.module.scss';\n\nexport interface FormCheckboxWithHelpProps {\n id: string;\n checked: boolean;\n onChange: (checked: boolean) => void;\n primaryText: string;\n helpText?: string;\n className?: string;\n}\n\nexport function FormCheckboxWithHelp({\n id,\n checked,\n onChange,\n primaryText,\n helpText,\n className = '',\n}: FormCheckboxWithHelpProps) {\n return (\n <div className={`${styles.wrapper} ${className}`}>\n <div className={styles.checkboxRow}>\n <input\n id={id}\n type=\"checkbox\"\n className={styles.checkbox}\n checked={checked}\n onChange={(e) => onChange(e.target.checked)}\n />\n <label htmlFor={id} className={styles.checkboxText}>\n {primaryText}\n </label>\n </div>\n {helpText != null && helpText !== '' && (\n <p className={styles.checkboxHelp}>{helpText}</p>\n )}\n </div>\n );\n}\n","import type { ReactNode } from 'react';\nimport styles from './FormFooterNote.module.scss';\n\nexport interface FormFooterNoteProps {\n children: ReactNode;\n className?: string;\n}\n\nexport function FormFooterNote({\n children,\n className = '',\n}: FormFooterNoteProps) {\n return <p className={`${styles.footerNote} ${className}`}>{children}</p>;\n}\n","import type { ReactNode } from 'react';\nimport styles from './FooterShell.module.scss';\n\nexport interface FooterShellProps {\n /** Optional circular marquee content (e.g. badges). When provided, marquee is shown. */\n marquee?: ReactNode;\n /** Main footer content (e.g. CTA button or static text) */\n children: ReactNode;\n className?: string;\n}\n\nexport function FooterShell({\n marquee,\n children,\n className = '',\n}: FooterShellProps) {\n return (\n <footer className={`${styles.footer} ${className}`} role=\"contentinfo\">\n <div className={styles.inner}>\n {marquee != null && (\n <div className={styles.badges} aria-hidden>\n {marquee}\n </div>\n )}\n <div className={styles.ctaWrap}>{children}</div>\n </div>\n </footer>\n );\n}\n","import type { ReactNode } from 'react';\nimport styles from './FooterShell.module.scss';\n\nexport interface FooterCTAButtonProps {\n /** Button/link content */\n children: ReactNode;\n /** When set, renders an anchor instead of a button */\n href?: string;\n /** Disabled state; for anchor uses aria-disabled and preventDefault on click */\n disabled?: boolean;\n /** Click handler (used when href is not set) */\n onClick?: (e: React.MouseEvent<HTMLElement>) => void;\n /** When true, render as static div (no button/link) - for \"display only\" CTA like \"Check My Dosha for FREE\" */\n static?: boolean;\n className?: string;\n 'aria-label'?: string;\n}\n\nexport function FooterCTAButton({\n children,\n href,\n disabled = false,\n onClick,\n static: staticOnly = false,\n className = '',\n 'aria-label': ariaLabel,\n}: FooterCTAButtonProps) {\n const buttonClass = `${styles.ctaButton} ${className}`.trim();\n const staticClass = `${styles.ctaStatic} ${className}`.trim();\n const ariaProps = ariaLabel != null ? { 'aria-label': ariaLabel } : {};\n\n if (staticOnly) {\n return (\n <div className={staticClass} role=\"presentation\">\n {children}\n </div>\n );\n }\n\n if (href != null) {\n return (\n <a\n href={href}\n className={buttonClass}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n aria-disabled={disabled}\n onClick={(e) => disabled && e.preventDefault()}\n {...ariaProps}\n >\n {children}\n </a>\n );\n }\n\n return (\n <button\n type=\"button\"\n className={buttonClass}\n disabled={disabled}\n onClick={onClick}\n {...ariaProps}\n >\n {children}\n </button>\n );\n}\n","import type { ReactNode } from 'react';\nimport styles from './CircularMarquee.module.scss';\n\nexport interface CircularMarqueeProps {\n /** Content to scroll (will be duplicated for seamless loop). Use same structure in both places (e.g. a single row of badges). */\n children: ReactNode;\n /** Optional class name for the wrapper */\n className?: string;\n}\n\n/**\n * Horizontal infinite marquee. Duplicates children so the loop is seamless.\n * Use for trust badges, labels, etc. under header or in footer.\n */\nexport function CircularMarquee({ children, className = '' }: CircularMarqueeProps) {\n return (\n <div className={`${styles.wrapper} ${className}`} aria-hidden>\n <div className={styles.track}>\n {children}\n {children}\n </div>\n </div>\n );\n}\n","import type { ReactNode } from 'react';\nimport { CircularMarquee } from '../CircularMarquee/CircularMarquee';\nimport styles from './MarqueeStrip.module.scss';\n\nexport interface MarqueeStripProps {\n /** Content to scroll in the marquee (e.g. a row of badges). Pass a single row; it will be duplicated for the loop. */\n children: ReactNode;\n className?: string;\n}\n\n/**\n * Horizontal bar (e.g. under the header) with the same circular marquee as the footer.\n * Renders a strip with background and border, and CircularMarquee inside.\n */\nexport function MarqueeStrip({ children, className = '' }: MarqueeStripProps) {\n return (\n <div className={`${styles.strip} ${className}`} role=\"region\" aria-label=\"Trust badges\">\n <CircularMarquee>{children}</CircularMarquee>\n </div>\n );\n}\n","import styles from './ContactUsSection.module.scss';\n\nexport interface ContactUsSectionProps {\n /** Section heading (e.g. \"Contact Us\") */\n title: string;\n /** Brand or company name line */\n brandName: string;\n /** WhatsApp contact line (e.g. \"Whatsapp: 8296947757\") */\n whatsAppLine: string;\n /** Email contact line (e.g. \"Email: support@example.com\") */\n emailLine: string;\n className?: string;\n}\n\n/**\n * Generic \"Contact Us\" section: title + brand name + WhatsApp + email.\n * Pass pre-resolved strings so each app can use its own t() and config.\n */\nexport function ContactUsSection({\n title,\n brandName,\n whatsAppLine,\n emailLine,\n className = '',\n}: ContactUsSectionProps) {\n return (\n <section className={`${styles.section} ${className}`} aria-labelledby=\"contact-heading\">\n <h2 id=\"contact-heading\" className={styles.heading}>\n {title}\n </h2>\n <div className={styles.content}>\n <p className={styles.brandName}>{brandName}</p>\n <p className={styles.line}>{whatsAppLine}</p>\n <p className={styles.line}>{emailLine}</p>\n </div>\n </section>\n );\n}\n","import type {\n ConsultationLanguageOption,\n ConsultationSlotDateLabel,\n ConsultationSlotPeriod,\n} from './types';\n\n/**\n * Formats an ISO datetime (e.g. \"2026-08-03T09:00:00+05:30\") into a short\n * label like \"9:00 AM\". Reads the hour/minute directly off the string\n * instead of going through `Date`, so the slot shows the exact wall-clock\n * time the backend sent rather than being reinterpreted in the browser's\n * local timezone.\n */\nexport const formatSlotTime = (isoDateTime: string): string => {\n const match = isoDateTime.match(/T(\\d{2}):(\\d{2})/);\n if (!match) return isoDateTime;\n const hour24 = Number(match[1]);\n const minute = match[2];\n const period = hour24 >= 12 ? 'PM' : 'AM';\n const hour12 = hour24 % 12 || 12;\n return `${hour12}:${minute} ${period}`;\n};\n\n/** Builds a short day-tab label (\"Today\" / \"Tomorrow\" / weekday) + day number for a \"yyyy-MM-dd\" date string. */\nexport const formatSlotDayLabel = (\n isoDate: string,\n referenceDate: Date = new Date()\n): ConsultationSlotDateLabel => {\n const dayNames = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];\n const date = new Date(`${isoDate}T00:00:00`);\n if (Number.isNaN(date.getTime())) {\n return { id: isoDate, dayLabel: isoDate, dayNum: '' };\n }\n\n const startOfDay = (d: Date) =>\n new Date(d.getFullYear(), d.getMonth(), d.getDate()).getTime();\n const diffDays = Math.round(\n (startOfDay(date) - startOfDay(referenceDate)) / (1000 * 60 * 60 * 24)\n );\n\n const dayLabel =\n diffDays === 0 ? 'Today' : diffDays === 1 ? 'Tomorrow' : dayNames[date.getDay()];\n\n return { id: isoDate, dayLabel, dayNum: String(date.getDate()) };\n};\n\nexport const CONSULTATION_PERIOD_ORDER: ConsultationSlotPeriod[] = [\n 'morning',\n 'afternoon',\n 'evening',\n];\n\n/**\n * Default consultation-language dropdown options. Host apps can pass their\n * own list through the `languageOptions` prop — `labelKey` resolves via the\n * `t` prop and falls back to `label`.\n */\nexport const CONSULTATION_LANGUAGE_OPTIONS: ConsultationLanguageOption[] = [\n { code: 'en', labelKey: 'formReportLanguageEnglish', label: 'English' },\n { code: 'hi', labelKey: 'formReportLanguageHindi', label: 'Hindi' },\n { code: 'te', labelKey: 'formReportLanguageTelugu', label: 'Telugu' },\n { code: 'kn', labelKey: 'formReportLanguageKannada', label: 'Kannada' },\n { code: 'gu', labelKey: 'formReportLanguageGujarati', label: 'Gujarati' },\n { code: 'mr', labelKey: 'formReportLanguageMarathi', label: 'Marathi' },\n { code: 'ta', labelKey: 'formReportLanguageTamil', label: 'Tamil' },\n];\n","import React from 'react';\n\n/** Tick shown next to the selected consultation language */\nexport const CheckIcon: React.FC = () => (\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden>\n <path\n d=\"M3.5 8.5l2.5 2.5 6-6\"\n stroke=\"#22c55e\"\n strokeWidth=\"1.8\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n);\n\n/** Down chevron, used by the consultation-language dropdown trigger */\nexport const ChevronDownIcon: React.FC = () => (\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2.2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden\n >\n <path d=\"M6 9l6 6 6-6\" />\n </svg>\n);\n\n/** Sun icon for \"Morning\" period tab */\nexport const MorningIcon: React.FC = () => (\n <img\n src=\"https://srm-cdn.a4b.io/yoda/1785316603029.svg\"\n width={16}\n height={16}\n alt=\"\"\n aria-hidden\n />\n);\n\n/** Sun-cloud icon for \"Afternoon\" period tab */\nexport const AfternoonIcon: React.FC = () => (\n <img\n src=\"https://srm-cdn.a4b.io/yoda/1785316621747.svg\"\n width={16}\n height={16}\n alt=\"\"\n aria-hidden\n />\n);\n\n/** Moon icon for \"Evening\" period tab */\nexport const EveningIcon: React.FC = () => (\n <img\n src=\"https://srm-cdn.a4b.io/yoda/1785316635953.svg\"\n width={16}\n height={16}\n alt=\"\"\n aria-hidden\n />\n);\n\n/** Calendar-with-slash icon for the \"No slots available\" empty state */\nexport const CalendarOffIcon: React.FC = () => (\n <svg width=\"40\" height=\"40\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden>\n <rect x=\"3\" y=\"4.5\" width=\"18\" height=\"16\" rx=\"3\" stroke=\"#D1D5DB\" strokeWidth=\"1.6\" />\n <path d=\"M3 9.5h18\" stroke=\"#D1D5DB\" strokeWidth=\"1.6\" />\n <path d=\"M8 2.5v4M16 2.5v4\" stroke=\"#D1D5DB\" strokeWidth=\"1.6\" strokeLinecap=\"round\" />\n <path d=\"M7.5 20.5L17 6\" stroke=\"#9CA3AF\" strokeWidth=\"1.6\" strokeLinecap=\"round\" />\n </svg>\n);\n","/**\n * PhoneNumberSection — PLACEHOLDER.\n *\n * Dummy stand-in for the \"phone number\" block that sits above the slot\n * picker, so the layout can be reviewed end to end. It renders a static\n * number and an inert \"Change\" affordance; swap it for the real\n * (validated, OTP-backed) implementation before shipping, or replace it\n * wholesale via `ConsultationSlotSelector`'s `phoneNumberSection` prop.\n */\nimport React from 'react';\nimport styles from './PhoneNumberSection.module.scss';\n\nexport interface PhoneNumberSectionProps {\n /** Section title. Wins over `t(\"planPhoneNumberHeading\")`. */\n title?: string;\n /** Dial code shown before the number, e.g. \"+91\" */\n countryCode?: string;\n /** The number itself, e.g. \"98765 43210\" */\n phoneNumber?: string;\n /** Helper line under the number. */\n helperText?: string;\n /** Called when \"Change\" is tapped; the link is hidden when not passed. */\n onEdit?: () => void;\n /** Translation lookup; every string falls back to the English default. */\n t?: (key: string, options?: any) => string | undefined;\n className?: string;\n}\n\nexport const PhoneNumberSection: React.FC<PhoneNumberSectionProps> = ({\n title,\n countryCode = '+91',\n phoneNumber = '98765 43210',\n helperText,\n onEdit,\n t,\n className = '',\n}) => (\n <section className={[styles.section, className].filter(Boolean).join(' ')}>\n <div className={styles.headerRow}>\n <span className={styles.title}>\n {title ?? t?.('planPhoneNumberHeading') ?? 'Your phone number'}\n </span>\n {onEdit && (\n <button type=\"button\" className={styles.changeBtn} onClick={onEdit}>\n {t?.('planPhoneNumberChange') ?? 'Change'}\n </button>\n )}\n </div>\n\n <div className={styles.numberRow}>\n <span className={styles.countryCode}>{countryCode}</span>\n <span className={styles.number}>{phoneNumber}</span>\n </div>\n\n <p className={styles.helper}>\n {helperText ??\n t?.('planPhoneNumberHelper') ??\n 'The astrologer will call you on this number at your booked slot.'}\n </p>\n </section>\n);\n","/**\n * AstrologyProfilesSection — PLACEHOLDER.\n *\n * Dummy stand-in for the \"astrology profiles\" block that sits above the slot\n * picker, so the layout can be reviewed end to end. It renders a horizontal\n * strip of selectable profile cards plus an inert \"Add profile\" tile; swap it\n * for the real (API-backed) implementation before shipping, or replace it\n * wholesale via `ConsultationSlotSelector`'s `astrologyProfilesSection` prop.\n */\nimport React, { useState } from 'react';\nimport styles from './AstrologyProfilesSection.module.scss';\n\nexport interface AstrologyProfile {\n id: string;\n /** Person's name, e.g. \"Aarav Sharma\" */\n name: string;\n /** Free-form birth line, e.g. \"12 Mar 1994 • 06:45 AM\" */\n birthDetails?: string;\n /** Birth place, e.g. \"Bengaluru, India\" */\n birthPlace?: string;\n /** Relation tag shown as a pill, e.g. \"Self\", \"Spouse\" */\n relation?: string;\n}\n\nconst PLACEHOLDER_PROFILES: AstrologyProfile[] = [\n {\n id: 'self',\n name: 'Aarav Sharma',\n birthDetails: '12 Mar 1994 • 06:45 AM',\n birthPlace: 'Bengaluru, India',\n relation: 'Self',\n },\n {\n id: 'spouse',\n name: 'Diya Sharma',\n birthDetails: '04 Sep 1996 • 11:20 PM',\n birthPlace: 'Pune, India',\n relation: 'Spouse',\n },\n];\n\nexport interface AstrologyProfilesSectionProps {\n /** Section title. Wins over `t(\"planAstrologyProfilesHeading\")`. */\n title?: string;\n /** Profiles to show. Defaults to placeholder data. */\n profiles?: AstrologyProfile[];\n /** Selected profile id. Omit to let the component manage it. */\n selectedProfileId?: string;\n onProfileSelect?: (profileId: string) => void;\n /** Called when \"Add profile\" is tapped; the tile is hidden when not passed. */\n onAddProfile?: () => void;\n /** Translation lookup; every string falls back to the English default. */\n t?: (key: string, options?: any) => string | undefined;\n className?: string;\n}\n\nexport const AstrologyProfilesSection: React.FC<AstrologyProfilesSectionProps> = ({\n title,\n profiles = PLACEHOLDER_PROFILES,\n selectedProfileId,\n onProfileSelect,\n onAddProfile,\n t,\n className = '',\n}) => {\n const [internalSelectedId, setInternalSelectedId] = useState(profiles[0]?.id ?? '');\n const activeId = selectedProfileId ?? internalSelectedId;\n\n const handleSelect = (profileId: string) => {\n setInternalSelectedId(profileId);\n onProfileSelect?.(profileId);\n };\n\n return (\n <section className={[styles.section, className].filter(Boolean).join(' ')}>\n <p className={styles.title}>\n {title ?? t?.('planAstrologyProfilesHeading') ?? 'Astrology profile'}\n </p>\n\n <div className={styles.profileRow} role=\"radiogroup\" aria-label=\"Astrology profile\">\n {profiles.map((profile) => {\n const isSelected = profile.id === activeId;\n return (\n <button\n key={profile.id}\n type=\"button\"\n role=\"radio\"\n aria-checked={isSelected}\n className={[styles.profileCard, isSelected ? styles.profileCardSelected : '']\n .filter(Boolean)\n .join(' ')}\n onClick={() => handleSelect(profile.id)}\n >\n <span className={styles.profileTop}>\n <span className={styles.avatar} aria-hidden>\n {profile.name.charAt(0).toUpperCase()}\n </span>\n <span className={styles.profileName}>{profile.name}</span>\n </span>\n {profile.relation && <span className={styles.relationPill}>{profile.relation}</span>}\n {profile.birthDetails && (\n <span className={styles.profileMeta}>{profile.birthDetails}</span>\n )}\n {profile.birthPlace && (\n <span className={styles.profileMeta}>{profile.birthPlace}</span>\n )}\n </button>\n );\n })}\n\n {onAddProfile && (\n <button type=\"button\" className={styles.addCard} onClick={onAddProfile}>\n <span className={styles.addIcon} aria-hidden>\n +\n </span>\n {t?.('planAddAstrologyProfile') ?? 'Add profile'}\n </button>\n )}\n </div>\n </section>\n );\n};\n","/**\n * ConsultationSlotSelector — presentational slot-picker extracted from the\n * kundli-generator consultation modal.\n *\n * It renders only the UI: the consultation-language row and the date /\n * time-of-day / time-slot selection (plus loading, error and empty states),\n * optionally preceded by the phone-number and astrology-profile sections.\n * All fetching, analytics and modal chrome (header, footer CTA, guidance\n * topics) stay in the host app.\n *\n * Selection is controlled-optional: pass `selectedDate` / `selectedPeriod` /\n * `selectedSlotStart` / `selectedLanguage` to drive it from the host, or omit\n * them and the component keeps its own state, defaulting to the first\n * available day / period / slot.\n */\nimport React, { Fragment, useEffect, useMemo, useRef, useState } from 'react';\nimport type {\n ConsultationLanguageOption,\n ConsultationSlot,\n ConsultationSlotDay,\n ConsultationSlotPeriod,\n} from './types';\nimport {\n CONSULTATION_LANGUAGE_OPTIONS,\n CONSULTATION_PERIOD_ORDER,\n formatSlotDayLabel,\n formatSlotTime,\n} from './slotUtils';\nimport {\n AfternoonIcon,\n CalendarOffIcon,\n CheckIcon,\n ChevronDownIcon,\n EveningIcon,\n MorningIcon,\n} from './SlotIcons';\nimport { PhoneNumberSection } from './PhoneNumberSection';\nimport { AstrologyProfilesSection } from './AstrologyProfilesSection';\nimport styles from './ConsultationSlotSelector.module.scss';\n\nexport interface ConsultationSlotSelectorProps {\n /** Availability for the currently selected consultation language. */\n days: ConsultationSlotDay[];\n\n /** Renders the shimmer skeleton instead of the slot grid. */\n loading?: boolean;\n /** Renders the error message (with a Retry button when `onRetry` is given). */\n error?: boolean;\n onRetry?: () => void;\n\n /** Selected date, ISO \"yyyy-MM-dd\". Omit to let the component manage it. */\n selectedDate?: string;\n onDateSelect?: (date: string) => void;\n\n /** Selected time-of-day tab. Omit to let the component manage it. */\n selectedPeriod?: ConsultationSlotPeriod;\n onPeriodSelect?: (period: ConsultationSlotPeriod) => void;\n\n /**\n * `start` of the selected slot. Omit to let the component manage it\n * (defaults to the first slot of the visible period); pass `null` to show\n * nothing as selected.\n */\n selectedSlotStart?: string | null;\n onSlotSelect?: (slot: ConsultationSlot) => void;\n\n /** Hides the whole consultation-language row + its divider. */\n hideLanguageSelector?: boolean;\n languageOptions?: ConsultationLanguageOption[];\n /** Selected language code. Omit to let the component manage it. */\n selectedLanguage?: string;\n onLanguageSelect?: (code: string) => void;\n\n /** Shows the (placeholder) phone-number section above the slot picker. */\n showPhoneNumberSection?: boolean;\n /** Replaces the placeholder phone-number section with your own node. */\n phoneNumberSection?: React.ReactNode;\n\n /** Shows the (placeholder) astrology-profiles section above the slot picker. */\n showAstrologyProfilesSection?: boolean;\n /** Replaces the placeholder astrology-profiles section with your own node. */\n astrologyProfilesSection?: React.ReactNode;\n\n /** Heading above the date tabs. Wins over `t(\"planSelectSlotHeading\")`. */\n heading?: string;\n /** Label on the left of the language dropdown. Wins over `t(...)`. */\n languageLabel?: string;\n /** Replaces the \"Your Report will be ready in 24-48 hours\" banner; `null` hides it. */\n reportReadyNote?: React.ReactNode;\n\n /**\n * International build — labels the evening tab \"Evening/Night\", since slots\n * that late in IST land at night in most timezones global users book from.\n */\n isGlobal?: boolean;\n\n /** Translation lookup; every string falls back to the English default. */\n t?: (key: string, options?: any) => string | undefined;\n\n className?: string;\n}\n\nconst PERIOD_ICONS: Record<ConsultationSlotPeriod, React.FC> = {\n morning: MorningIcon,\n afternoon: AfternoonIcon,\n evening: EveningIcon,\n};\n\nconst PERIOD_LABEL_KEYS: Record<ConsultationSlotPeriod, string> = {\n morning: 'planPeriodMorning',\n afternoon: 'planPeriodAfternoon',\n evening: 'planPeriodEvening',\n};\n\nconst cx = (...classNames: (string | false | undefined)[]) =>\n classNames.filter(Boolean).join(' ');\n\nexport const ConsultationSlotSelector: React.FC<ConsultationSlotSelectorProps> = ({\n days,\n loading = false,\n error = false,\n onRetry,\n selectedDate,\n onDateSelect,\n selectedPeriod,\n onPeriodSelect,\n selectedSlotStart,\n onSlotSelect,\n hideLanguageSelector = false,\n languageOptions = CONSULTATION_LANGUAGE_OPTIONS,\n selectedLanguage,\n onLanguageSelect,\n showPhoneNumberSection = true,\n phoneNumberSection,\n showAstrologyProfilesSection = true,\n astrologyProfilesSection,\n heading,\n languageLabel,\n reportReadyNote,\n isGlobal = true,\n t,\n className = '',\n}) => {\n const availableDays = useMemo(\n () => days.filter((d) => d.has_availability && d.slots.length > 0),\n [days]\n );\n\n // ===== Date =====\n const [internalDate, setInternalDate] = useState('');\n const activeDate = useMemo(() => {\n const candidate = selectedDate ?? internalDate;\n return availableDays.some((d) => d.date === candidate)\n ? candidate\n : (availableDays[0]?.date ?? '');\n }, [selectedDate, internalDate, availableDays]);\n\n const activeDay = useMemo(\n () => availableDays.find((d) => d.date === activeDate) ?? null,\n [availableDays, activeDate]\n );\n\n // ===== Period =====\n const periodsForActiveDay = useMemo(() => {\n if (!activeDay) return [];\n const present = new Set(activeDay.slots.map((s) => s.period));\n return CONSULTATION_PERIOD_ORDER.filter((p) => present.has(p));\n }, [activeDay]);\n\n const [internalPeriod, setInternalPeriod] = useState<ConsultationSlotPeriod | ''>('');\n const activePeriod = useMemo<ConsultationSlotPeriod>(() => {\n const candidate = selectedPeriod ?? internalPeriod;\n return candidate && periodsForActiveDay.includes(candidate)\n ? candidate\n : (periodsForActiveDay[0] ?? 'morning');\n }, [selectedPeriod, internalPeriod, periodsForActiveDay]);\n\n // ===== Slot =====\n const slotsForActivePeriod = useMemo(\n () => (activeDay ? activeDay.slots.filter((s) => s.period === activePeriod) : []),\n [activeDay, activePeriod]\n );\n\n const [internalSlotStart, setInternalSlotStart] = useState('');\n const activeSlotStart = useMemo(() => {\n // `null` is an explicit \"nothing selected\" from the host — don't default.\n if (selectedSlotStart === null) return '';\n const candidate = selectedSlotStart ?? internalSlotStart;\n return slotsForActivePeriod.some((s) => s.start === candidate)\n ? candidate\n : (slotsForActivePeriod[0]?.start ?? '');\n }, [selectedSlotStart, internalSlotStart, slotsForActivePeriod]);\n\n // ===== Language =====\n const [internalLanguage, setInternalLanguage] = useState(\n () => languageOptions[0]?.code ?? 'en'\n );\n const activeLanguage = selectedLanguage ?? internalLanguage;\n const activeLanguageOption =\n languageOptions.find((option) => option.code === activeLanguage) ?? languageOptions[0];\n\n const [isLanguageMenuOpen, setIsLanguageMenuOpen] = useState(false);\n const languageMenuRef = useRef<HTMLDivElement | null>(null);\n\n // Close the language dropdown on outside click.\n useEffect(() => {\n if (!isLanguageMenuOpen) return;\n const handleClickOutside = (event: MouseEvent) => {\n if (languageMenuRef.current && !languageMenuRef.current.contains(event.target as Node)) {\n setIsLanguageMenuOpen(false);\n }\n };\n document.addEventListener('mousedown', handleClickOutside);\n return () => document.removeEventListener('mousedown', handleClickOutside);\n }, [isLanguageMenuOpen]);\n\n // ===== Sliding tab indicators =====\n // Both pills are measured from the actual DOM nodes so they line up exactly\n // regardless of label width/locale or how many tabs are shown, then animated\n // purely via CSS transform/width transitions for a smooth iOS-style switch.\n const dateTabsRef = useRef<HTMLDivElement | null>(null);\n const dateTabRefs = useRef<Partial<Record<string, HTMLButtonElement | null>>>({});\n const [dateIndicatorRect, setDateIndicatorRect] = useState<{\n left: number;\n top: number;\n width: number;\n height: number;\n } | null>(null);\n\n const periodTabsRef = useRef<HTMLDivElement | null>(null);\n const periodTabRefs = useRef<Partial<Record<ConsultationSlotPeriod, HTMLButtonElement | null>>>(\n {}\n );\n const [periodIndicatorRect, setPeriodIndicatorRect] = useState<{\n left: number;\n width: number;\n } | null>(null);\n\n useEffect(() => {\n const measure = () => {\n const container = dateTabsRef.current;\n const activeTab = dateTabRefs.current[activeDate];\n if (!container || !activeTab) {\n setDateIndicatorRect(null);\n return;\n }\n const containerRect = container.getBoundingClientRect();\n const tabRect = activeTab.getBoundingClientRect();\n setDateIndicatorRect({\n left: tabRect.left - containerRect.left,\n top: tabRect.top - containerRect.top,\n width: tabRect.width,\n height: tabRect.height,\n });\n };\n measure();\n window.addEventListener('resize', measure);\n return () => window.removeEventListener('resize', measure);\n }, [activeDate, availableDays, loading, error]);\n\n useEffect(() => {\n const measure = () => {\n const container = periodTabsRef.current;\n const activeTab = periodTabRefs.current[activePeriod];\n if (!container || !activeTab) {\n setPeriodIndicatorRect(null);\n return;\n }\n const containerRect = container.getBoundingClientRect();\n const tabRect = activeTab.getBoundingClientRect();\n setPeriodIndicatorRect({\n left: tabRect.left - containerRect.left,\n width: tabRect.width,\n });\n };\n measure();\n window.addEventListener('resize', measure);\n return () => window.removeEventListener('resize', measure);\n }, [activePeriod, periodsForActiveDay, loading, error]);\n\n // ===== Handlers =====\n const handleDateSelect = (date: string) => {\n setInternalDate(date);\n onDateSelect?.(date);\n };\n\n const handlePeriodSelect = (period: ConsultationSlotPeriod) => {\n setInternalPeriod(period);\n onPeriodSelect?.(period);\n };\n\n const handleSlotSelect = (slot: ConsultationSlot) => {\n setInternalSlotStart(slot.start);\n onSlotSelect?.(slot);\n };\n\n const handleLanguageSelect = (code: string) => {\n setInternalLanguage(code);\n setIsLanguageMenuOpen(false);\n onLanguageSelect?.(code);\n };\n\n return (\n <div className={cx(styles.root, className)}>\n {showPhoneNumberSection && (phoneNumberSection ?? <PhoneNumberSection t={t} />)}\n {showAstrologyProfilesSection &&\n (astrologyProfilesSection ?? <AstrologyProfilesSection t={t} />)}\n\n {/* Consultation language selector — a purely client-side switch over\n availability the host already fetched for every language. */}\n {!hideLanguageSelector && (\n <>\n <div className={styles.languageRow}>\n <span className={styles.languageLabel}>\n {languageLabel ??\n t?.('planConsultationLanguageLabel') ??\n 'Your consultation language'}\n </span>\n <div className={styles.languageDropdown} ref={languageMenuRef}>\n <button\n type=\"button\"\n className={styles.languageDropdownBtn}\n onClick={() => setIsLanguageMenuOpen((prev) => !prev)}\n aria-haspopup=\"listbox\"\n aria-expanded={isLanguageMenuOpen}\n >\n {(activeLanguageOption?.labelKey && t?.(activeLanguageOption.labelKey)) ??\n activeLanguageOption?.label}\n <ChevronDownIcon />\n </button>\n {isLanguageMenuOpen && (\n <ul className={styles.languageMenu} role=\"listbox\">\n {languageOptions.map((option) => {\n const isSelected = option.code === activeLanguage;\n return (\n <li\n key={option.code}\n role=\"option\"\n aria-selected={isSelected}\n className={cx(\n styles.languageMenuItem,\n isSelected && styles.languageMenuItemSelected\n )}\n onClick={() => handleLanguageSelect(option.code)}\n >\n {(option.labelKey && t?.(option.labelKey)) ?? option.label}\n {isSelected && <CheckIcon />}\n </li>\n );\n })}\n </ul>\n )}\n </div>\n </div>\n <hr className={styles.languageDivider} />\n </>\n )}\n\n {/* Date + time slot selection */}\n <p className={styles.sectionHeading}>\n {heading ?? t?.('planSelectSlotHeading') ?? 'Book your preferred consultation slot'}\n </p>\n\n {reportReadyNote === undefined ? (\n <p className={styles.reportReadyBanner}>\n {t?.('planReportReadyPrefix') ?? 'Your Report will be ready in'}{' '}\n <span className={styles.reportReadyDuration}>\n {t?.('planReportReadyDuration') ?? '24-48 hours'}\n </span>{' '}\n {t?.('planReportReadySuffix') ?? 'from today'}\n </p>\n ) : (\n reportReadyNote\n )}\n\n {loading && (\n <div className={styles.loadingWrap} aria-busy=\"true\" aria-live=\"polite\">\n <div className={styles.skeletonDateTabs}>\n {Array.from({ length: 5 }).map((_, idx) => (\n <div key={idx} className={cx(styles.skeletonDateTab, styles.skeletonShimmer)} />\n ))}\n </div>\n <div className={styles.skeletonPeriodTabs}>\n {Array.from({ length: 3 }).map((_, idx) => (\n <div key={idx} className={cx(styles.skeletonPeriodTab, styles.skeletonShimmer)} />\n ))}\n </div>\n <div className={styles.skeletonTimeGrid}>\n {Array.from({ length: 6 }).map((_, idx) => (\n <div key={idx} className={cx(styles.skeletonTimeSlot, styles.skeletonShimmer)} />\n ))}\n </div>\n </div>\n )}\n\n {!loading && error && (\n <div className={styles.stateMessage}>\n {t?.('planSlotsLoadError') ?? \"Couldn't load slots. Please try again.\"}\n {onRetry && (\n <button type=\"button\" className={styles.retryBtn} onClick={onRetry}>\n {t?.('planRetry') ?? 'Retry'}\n </button>\n )}\n </div>\n )}\n\n {!loading && !error && availableDays.length === 0 && (\n <div className={styles.emptyState}>\n <span className={styles.emptyStateIcon}>\n <CalendarOffIcon />\n </span>\n <p className={styles.emptyStateTitle}>\n {t?.('planNoSlotsAvailableTitle') ?? 'No slots available'}\n </p>\n <p className={styles.emptyStateSubtitle}>\n {t?.('planNoSlotsAvailableSubtitle') ??\n 'Try a different consultation language above, or check back soon.'}\n </p>\n </div>\n )}\n\n {!loading && !error && availableDays.length > 0 && (\n <>\n <div\n className={styles.dateTabs}\n ref={dateTabsRef}\n role=\"radiogroup\"\n aria-label=\"Consultation date\"\n >\n {dateIndicatorRect && (\n <span\n className={styles.dateTabIndicator}\n style={{\n transform: `translate(${dateIndicatorRect.left}px, ${dateIndicatorRect.top}px)`,\n width: dateIndicatorRect.width,\n height: dateIndicatorRect.height,\n }}\n aria-hidden=\"true\"\n />\n )}\n {availableDays.map((day) => {\n const isSelected = day.date === activeDate;\n const { dayLabel, dayNum } = formatSlotDayLabel(day.date);\n return (\n <Fragment key={day.date}>\n <button\n type=\"button\"\n ref={(el) => {\n dateTabRefs.current[day.date] = el;\n }}\n className={cx(styles.dateTab, isSelected && styles.dateTabSelected)}\n role=\"radio\"\n aria-checked={isSelected}\n onClick={() => handleDateSelect(day.date)}\n >\n <span className={styles.dateTabLabel}>{t?.(dayLabel) ?? dayLabel}</span>\n <span className={styles.dateTabNum}>{dayNum}</span>\n </button>\n <span className={styles.dateTabDivider} aria-hidden />\n </Fragment>\n );\n })}\n </div>\n\n <div\n className={styles.periodTabs}\n ref={periodTabsRef}\n role=\"tablist\"\n aria-label=\"Time of day\"\n >\n {periodIndicatorRect && (\n <span\n className={styles.periodTabIndicator}\n style={{\n transform: `translateX(${periodIndicatorRect.left}px)`,\n width: periodIndicatorRect.width,\n }}\n aria-hidden=\"true\"\n />\n )}\n {periodsForActiveDay.map((period) => {\n const Icon = PERIOD_ICONS[period];\n const isEveningNight = period === 'evening' && isGlobal;\n const labelKey = isEveningNight\n ? 'planPeriodEveningNight'\n : PERIOD_LABEL_KEYS[period];\n return (\n <button\n key={period}\n ref={(el) => {\n periodTabRefs.current[period] = el;\n }}\n type=\"button\"\n className={cx(\n styles.periodTab,\n period === activePeriod && styles.periodTabSelected\n )}\n role=\"tab\"\n aria-selected={period === activePeriod}\n onClick={() => handlePeriodSelect(period)}\n >\n <Icon />\n {t?.(labelKey) ??\n (isEveningNight\n ? 'Evening/Night'\n : period.charAt(0).toUpperCase() + period.slice(1))}\n </button>\n );\n })}\n </div>\n\n <div\n key={`${activeDate}-${activePeriod}`}\n className={styles.timeGrid}\n role=\"radiogroup\"\n aria-label=\"Consultation time\"\n >\n {slotsForActivePeriod.map((slot, idx) => (\n <button\n key={`${slot.start}-${idx}`}\n type=\"button\"\n className={cx(\n styles.timeSlot,\n activeSlotStart === slot.start && styles.timeSlotSelected\n )}\n role=\"radio\"\n aria-checked={activeSlotStart === slot.start}\n onClick={() => handleSlotSelect(slot)}\n >\n {formatSlotTime(slot.start)}\n </button>\n ))}\n </div>\n </>\n )}\n </div>\n );\n};\n","/**\n * Dummy availability data for Storybook / local previews.\n *\n * Dates are generated relative to \"today\" so the date tabs always read\n * \"Today\", \"Tomorrow\", then weekday names — exactly like the real API\n * response would.\n */\nimport type { ConsultationSlot, ConsultationSlotDay, ConsultationSlotPeriod } from './types';\n\n/** \"+05:30\" — the mock data is IST, matching what the real API returns. */\nconst OFFSET = '+05:30';\n\nconst toIsoDate = (date: Date): string => {\n const month = String(date.getMonth() + 1).padStart(2, '0');\n const day = String(date.getDate()).padStart(2, '0');\n return `${date.getFullYear()}-${month}-${day}`;\n};\n\nconst makeSlot = (\n isoDate: string,\n hour: number,\n minute: number,\n period: ConsultationSlotPeriod\n): ConsultationSlot => {\n const pad = (n: number) => String(n).padStart(2, '0');\n const endMinute = minute + 30;\n const endHour = hour + Math.floor(endMinute / 60);\n return {\n start: `${isoDate}T${pad(hour)}:${pad(minute)}:00${OFFSET}`,\n end: `${isoDate}T${pad(endHour)}:${pad(endMinute % 60)}:00${OFFSET}`,\n period,\n };\n};\n\n/** Slot start times per period, as [hour, minute] pairs. */\nconst SLOT_TIMES: Record<ConsultationSlotPeriod, [number, number][]> = {\n morning: [\n [9, 0],\n [9, 30],\n [10, 0],\n [10, 30],\n [11, 0],\n [11, 30],\n ],\n afternoon: [\n [12, 30],\n [13, 0],\n [14, 0],\n [15, 30],\n [16, 0],\n ],\n evening: [\n [18, 0],\n [18, 30],\n [19, 0],\n [20, 0],\n ],\n};\n\nconst buildDay = (\n dayOffset: number,\n periods: ConsultationSlotPeriod[]\n): ConsultationSlotDay => {\n const date = new Date();\n date.setDate(date.getDate() + dayOffset);\n const isoDate = toIsoDate(date);\n const slots = periods.flatMap((period) =>\n SLOT_TIMES[period].map(([hour, minute]) => makeSlot(isoDate, hour, minute, period))\n );\n return { date: isoDate, has_availability: slots.length > 0, slots };\n};\n\n/** Five days of availability with a deliberately uneven period mix. */\nexport const MOCK_SLOT_DAYS: ConsultationSlotDay[] = [\n buildDay(0, ['morning', 'afternoon', 'evening']),\n buildDay(1, ['morning', 'afternoon']),\n buildDay(2, ['afternoon', 'evening']),\n buildDay(3, ['morning', 'evening']),\n buildDay(4, ['morning', 'afternoon', 'evening']),\n];\n\n/** Every day sold out — drives the \"No slots available\" empty state. */\nexport const MOCK_SLOT_DAYS_EMPTY: ConsultationSlotDay[] = MOCK_SLOT_DAYS.map((day) => ({\n ...day,\n has_availability: false,\n slots: [],\n}));\n"],"names":["f","require$$0","k","l","m","n","p","q","c","a","b","d","e","h","reactJsxRuntime_production_min","React","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_OFFSCREEN_TYPE","MAYBE_ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","maybeIterator","ReactSharedInternals","error","format","_len2","args","_key2","printWarning","level","ReactDebugCurrentFrame","stack","argsWithFormat","item","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","isValidElementType","type","getWrappedName","outerType","innerType","wrapperName","displayName","functionName","getContextName","getComponentNameFromType","context","provider","outerName","lazyComponent","payload","init","assign","disabledDepth","prevLog","prevInfo","prevWarn","prevError","prevGroup","prevGroupCollapsed","prevGroupEnd","disabledLog","disableLogs","props","reenableLogs","ReactCurrentDispatcher","prefix","describeBuiltInComponentFrame","name","source","ownerFn","x","match","reentry","componentFrameCache","PossiblyWeakMap","describeNativeComponentFrame","fn","construct","frame","control","previousPrepareStackTrace","previousDispatcher","Fake","sample","sampleLines","controlLines","s","_frame","syntheticFrame","describeFunctionComponentFrame","shouldConstruct","Component","prototype","describeUnknownElementTypeFrameInDEV","hasOwnProperty","loggedTypeFailures","setCurrentlyValidatingElement","element","owner","checkPropTypes","typeSpecs","values","location","componentName","has","typeSpecName","error$1","err","ex","isArrayImpl","isArray","typeName","value","hasToStringTag","willCoercionThrow","testStringCoercion","checkKeyStringCoercion","ReactCurrentOwner","RESERVED_PROPS","specialPropKeyWarningShown","specialPropRefWarningShown","hasValidRef","config","getter","hasValidKey","warnIfStringRefCannotBeAutoConverted","self","defineKeyPropWarningGetter","warnAboutAccessingKey","defineRefPropWarningGetter","warnAboutAccessingRef","ReactElement","key","ref","jsxDEV","maybeKey","propName","defaultProps","ReactCurrentOwner$1","ReactDebugCurrentFrame$1","setCurrentlyValidatingElement$1","propTypesMisspellWarningShown","isValidElement","object","getDeclarationErrorAddendum","getSourceInfoErrorAddendum","ownerHasKeyUseWarning","getCurrentComponentErrorInfo","parentType","info","parentName","validateExplicitKey","currentComponentErrorInfo","childOwner","validateChildKeys","node","child","iteratorFn","iterator","step","validatePropTypes","propTypes","_name","validateFragmentProps","fragment","keys","didWarnAboutKeySpread","jsxWithValidation","isStaticChildren","validType","sourceInfo","typeString","children","i","beforeExample","afterExample","jsxWithValidationStatic","jsxWithValidationDynamic","jsx","jsxs","reactJsxRuntime_development","jsxRuntimeModule","require$$1","DEFAULT_INITIAL_VISIBLE","MAX_TESTIMONIALS","buildTestimonialsFromTranslations","t","itemsByIndex","quoteKey","quote","authorKey","authorName","v","avatarKey","avatar","maleIndices","femaleIndices","mixed","idx","UserReviewsSection","testimonialsProp","initialVisible","readMoreHref","onReadMore","className","headingClassName","testimonials","useMemo","expanded","setExpanded","useState","hasMore","visibleTestimonials","title","ratingLabel","trustText","readMoreLabel","readLessLabel","styles","index","FAQAccordion","items","resolveAnswerKey","defaultOpenIndex","onItemOpen","resolvedItems","qKey","aKey","openIndex","setOpenIndex","isOpen","nextOpen","DEFAULT_LOGO_WIDTH","DEFAULT_LOGO_HEIGHT","PageHeader","logoUrl","ImageComponent","languageSelector","showLanguageSelector","showSlot","brandName","ratingText","FormContainer","ariaLabel","BackIcon","FormSectionHeader","subtitle","onBack","backAriaLabel","DEFAULT_SHIELD_ICON","PrivacyBanner","text","iconUrl","DEFAULT_INFO_ICON","FormField","label","id","required","help","infoTooltip","infoAriaLabel","infoIconUrl","infoOpen","setInfoOpen","useEffect","onDoc","onKey","FormTextInput","iconAlt","iconInteractive","onIconClick","rest","ICON_DATE","FormDateInput","onChange","inputRef","useRef","maxDate","pad","handleIconClick","el","ICON_TIME","FormTimeInput","placeholder","disabled","ICON_LOCATION","FormLocationInput","FormSegmentedControl","options","opt","FormTagPills","selected","toggle","FormCheckboxWithHelp","checked","primaryText","helpText","FormFooterNote","FooterShell","marquee","FooterCTAButton","href","onClick","staticOnly","buttonClass","staticClass","ariaProps","CircularMarquee","MarqueeStrip","ContactUsSection","whatsAppLine","emailLine","formatSlotTime","isoDateTime","hour24","minute","period","formatSlotDayLabel","isoDate","referenceDate","dayNames","date","startOfDay","diffDays","dayLabel","CONSULTATION_PERIOD_ORDER","CONSULTATION_LANGUAGE_OPTIONS","CheckIcon","ChevronDownIcon","MorningIcon","AfternoonIcon","EveningIcon","CalendarOffIcon","PhoneNumberSection","countryCode","phoneNumber","helperText","onEdit","PLACEHOLDER_PROFILES","AstrologyProfilesSection","profiles","selectedProfileId","onProfileSelect","onAddProfile","internalSelectedId","setInternalSelectedId","activeId","handleSelect","profileId","profile","isSelected","PERIOD_ICONS","PERIOD_LABEL_KEYS","cx","classNames","ConsultationSlotSelector","days","loading","onRetry","selectedDate","onDateSelect","selectedPeriod","onPeriodSelect","selectedSlotStart","onSlotSelect","hideLanguageSelector","languageOptions","selectedLanguage","onLanguageSelect","showPhoneNumberSection","phoneNumberSection","showAstrologyProfilesSection","astrologyProfilesSection","heading","languageLabel","reportReadyNote","isGlobal","availableDays","internalDate","setInternalDate","activeDate","candidate","activeDay","periodsForActiveDay","present","internalPeriod","setInternalPeriod","activePeriod","slotsForActivePeriod","internalSlotStart","setInternalSlotStart","activeSlotStart","internalLanguage","setInternalLanguage","activeLanguage","activeLanguageOption","option","isLanguageMenuOpen","setIsLanguageMenuOpen","languageMenuRef","handleClickOutside","event","dateTabsRef","dateTabRefs","dateIndicatorRect","setDateIndicatorRect","periodTabsRef","periodTabRefs","periodIndicatorRect","setPeriodIndicatorRect","measure","container","activeTab","containerRect","tabRect","handleDateSelect","handlePeriodSelect","handleSlotSelect","slot","handleLanguageSelect","code","Fragment","prev","_","day","dayNum","Icon","isEveningNight","labelKey","OFFSET","toIsoDate","month","makeSlot","hour","endMinute","endHour","SLOT_TIMES","buildDay","dayOffset","periods","slots","MOCK_SLOT_DAYS","MOCK_SLOT_DAYS_EMPTY"],"mappings":"oMASa,IAAIA,EAAEC,EAAiBC,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,UAAU,eAAeC,EAAEL,EAAE,mDAAmD,kBAAkBM,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,SAAS,EAAE,EAClP,SAASC,EAAEC,EAAEC,EAAE,EAAE,CAAC,IAAIC,EAAEC,EAAE,CAAA,EAAGC,EAAE,KAAKC,EAAE,KAAc,IAAT,SAAaD,EAAE,GAAG,GAAYH,EAAE,MAAX,SAAiBG,EAAE,GAAGH,EAAE,KAAcA,EAAE,MAAX,SAAiBI,EAAEJ,EAAE,KAAK,IAAIC,KAAKD,EAAEL,EAAE,KAAKK,EAAEC,CAAC,GAAG,CAACJ,EAAE,eAAeI,CAAC,IAAIC,EAAED,CAAC,EAAED,EAAEC,CAAC,GAAG,GAAGF,GAAGA,EAAE,aAAa,IAAIE,KAAKD,EAAED,EAAE,aAAaC,EAAWE,EAAED,CAAC,IAAZ,SAAgBC,EAAED,CAAC,EAAED,EAAEC,CAAC,GAAG,MAAM,CAAC,SAASR,EAAE,KAAKM,EAAE,IAAII,EAAE,IAAIC,EAAE,MAAMF,EAAE,OAAON,EAAE,OAAO,CAAC,CAAC,OAAAS,YAAiBX,EAAEW,GAAA,IAAYP,EAAEO,GAAA,KAAaP,qDCEtW,QAAQ,IAAI,WAAa,eAC1B,UAAW,CAGd,IAAIQ,EAAQd,EAMRe,EAAqB,OAAO,IAAI,eAAe,EAC/CC,EAAoB,OAAO,IAAI,cAAc,EAC7CC,EAAsB,OAAO,IAAI,gBAAg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,EAAE,IAAI,CAAC,CAACqH,EAAMtH,CAAM,IAAMqH,GAASlH,EAASmH,EAAMtH,EAAQC,CAAM,CAAC,CAAA,EAEpF,MAAO,CAAE,KAAME,EAAS,iBAAkB0H,EAAM,OAAS,EAAG,MAAAA,CAAA,CAC9D,EAGaC,GAAwC,CACnDJ,GAAS,EAAG,CAAC,UAAW,YAAa,SAAS,CAAC,EAC/CA,GAAS,EAAG,CAAC,UAAW,WAAW,CAAC,EACpCA,GAAS,EAAG,CAAC,YAAa,SAAS,CAAC,EACpCA,GAAS,EAAG,CAAC,UAAW,SAAS,CAAC,EAClCA,GAAS,EAAG,CAAC,UAAW,YAAa,SAAS,CAAC,CACjD,EAGaK,GAA8CD,GAAe,IAAKjB,IAAS,CACtF,GAAGA,EACH,iBAAkB,GAClB,MAAO,CAAA,CACT,EAAE","x_google_ignoreList":[0,1,2]}
1
+ {"version":3,"file":"index.cjs","sources":["../src/components/UserReviewsSection/UserReviewsSection.tsx","../src/components/FAQAccordion/FAQAccordion.tsx","../src/components/PageHeader/PageHeader.tsx","../src/components/FormContainer/FormContainer.tsx","../src/components/FormSectionHeader/FormSectionHeader.tsx","../src/components/PrivacyBanner/PrivacyBanner.tsx","../src/components/FormField/FormField.tsx","../src/components/FormTextInput/FormTextInput.tsx","../src/components/FormDateInput/FormDateInput.tsx","../src/components/FormTimeInput/FormTimeInput.tsx","../src/components/FormLocationInput/FormLocationInput.tsx","../src/components/FormSegmentedControl/FormSegmentedControl.tsx","../src/components/FormTagPills/FormTagPills.tsx","../src/components/FormCheckboxWithHelp/FormCheckboxWithHelp.tsx","../src/components/FormFooterNote/FormFooterNote.tsx","../src/components/FooterShell/FooterShell.tsx","../src/components/FooterShell/FooterCTAButton.tsx","../src/components/CircularMarquee/CircularMarquee.tsx","../src/components/MarqueeStrip/MarqueeStrip.tsx","../src/components/ContactUsSection/ContactUsSection.tsx","../src/components/ConsultationSlotSelector/slotUtils.ts","../src/components/ConsultationSlotSelector/SlotIcons.tsx","../src/components/ConsultationSlotSelector/PhoneNumberSection.tsx","../src/components/ConsultationSlotSelector/AstrologyProfilesSection.tsx","../src/components/ConsultationSlotSelector/ConsultationSlotSelector.tsx","../src/components/ConsultationSlotSelector/mockSlots.ts","../src/components/PhoneNumberInput/icons.tsx","../src/components/PhoneNumberInput/countries.ts","../src/utils/phoneValidation.ts","../src/components/PhoneNumberInput/usePhoneNumberInput.ts","../src/components/PhoneNumberInput/PhoneNumberInput.tsx","../src/components/Consultations/icons.tsx","../src/components/Consultations/AstrologerPhoto.tsx","../src/components/Consultations/RecommendedBadge.tsx","../src/components/Consultations/AstrologerCard.tsx","../src/components/Consultations/AstrologerList.tsx","../src/components/Consultations/mockAstrologers.ts"],"sourcesContent":["import { useState, useMemo } from 'react';\nimport styles from './UserReviewsSection.module.scss';\n\nconst DEFAULT_INITIAL_VISIBLE = 3;\nconst MAX_TESTIMONIALS = 15;\n\nexport interface Testimonial {\n quote: string;\n authorName: string;\n authorAvatarUrl?: string;\n rating?: number;\n}\n\nfunction buildTestimonialsFromTranslations(\n t: (key: string) => string\n): Testimonial[] {\n const itemsByIndex = new Map<number, Testimonial>();\n\n for (let i = 1; i <= MAX_TESTIMONIALS; i += 1) {\n const quoteKey = `feedbackTestimonial${i}`;\n const quote = t(quoteKey);\n if (!quote || quote === quoteKey) continue;\n\n const authorKey = `feedbackAuthor${i}`;\n const authorName = (() => {\n const v = t(authorKey);\n return v && v !== authorKey ? v : t('guest');\n })();\n\n const avatarKey = `feedbackAuthor${i}AvatarUrl`;\n const avatar = (() => {\n const v = t(avatarKey);\n return v && v !== avatarKey ? v : undefined;\n })();\n\n itemsByIndex.set(i, {\n quote,\n authorName,\n authorAvatarUrl: avatar,\n rating: 5,\n });\n }\n\n const maleIndices: number[] = [];\n const femaleIndices: number[] = [];\n for (let i = 1; i <= MAX_TESTIMONIALS; i += 1) {\n if (i >= 9) femaleIndices.push(i);\n else maleIndices.push(i);\n }\n\n const mixed: Testimonial[] = [];\n let m = 0;\n let f = 0;\n while (m < maleIndices.length || f < femaleIndices.length) {\n if (f < femaleIndices.length) {\n const idx = femaleIndices[f++];\n const item = itemsByIndex.get(idx);\n if (item) mixed.push(item);\n }\n if (m < maleIndices.length) {\n const idx = maleIndices[m++];\n const item = itemsByIndex.get(idx);\n if (item) mixed.push(item);\n }\n }\n\n return mixed;\n}\n\nexport interface UserReviewsSectionProps {\n /** Translation function; uses keys: feedbackTitle, feedbackRating, feedbackTrust, readMoreReviews, readLess, feedbackTestimonial1-15, feedbackAuthor1-15, guest */\n t: (key: string) => string;\n /** Override testimonials; if not set, built from t() */\n testimonials?: Testimonial[];\n /** Initial number of reviews to show before \"Read more\" */\n initialVisible?: number;\n /** If set, \"Read more\" renders as external link */\n readMoreHref?: string;\n onReadMore?: () => void;\n className?: string;\n /** Optional class name for the section heading (e.g. to use bold in one app and semibold in another) */\n headingClassName?: string;\n}\n\nexport function UserReviewsSection({\n t,\n testimonials: testimonialsProp,\n initialVisible = DEFAULT_INITIAL_VISIBLE,\n readMoreHref,\n onReadMore,\n className = '',\n headingClassName,\n}: UserReviewsSectionProps) {\n const testimonials =\n testimonialsProp ??\n useMemo(() => buildTestimonialsFromTranslations(t), [t]);\n\n const [expanded, setExpanded] = useState(false);\n const hasMore = testimonials.length > initialVisible;\n const visibleTestimonials =\n hasMore && !expanded ? testimonials.slice(0, initialVisible) : testimonials;\n\n const title = t('feedbackTitle');\n const ratingLabel = t('feedbackRating');\n const trustText = t('feedbackTrust');\n const readMoreLabel = t('readMoreReviews');\n const readLessLabel = t('readLess');\n\n return (\n <section\n className={`${styles.section} ${className}`}\n aria-labelledby=\"reviews-heading\"\n > \n <h2\n id=\"reviews-heading\"\n className={[styles.heading, headingClassName].filter(Boolean).join(' ')}\n >\n {title}\n </h2>\n <p className={styles.trustLine}>\n <span className={styles.star} aria-hidden>\n ★\n </span>\n <span className={styles.ratingNum}>{ratingLabel}</span>\n <span className={styles.dot} aria-hidden />\n <span className={styles.trustText}>{trustText}</span>\n </p>\n <ul className={styles.cardList}>\n {visibleTestimonials.map((item, index) => (\n <li key={index} className={styles.card}>\n <p className={styles.quote}>{item.quote}</p>\n <div className={styles.author}>\n {item.authorAvatarUrl ? (\n <img\n src={item.authorAvatarUrl}\n alt=\"\"\n className={styles.avatar}\n width={40}\n height={40}\n />\n ) : (\n <div className={styles.avatarPlaceholder} aria-hidden />\n )}\n <div className={styles.authorInfo}>\n <span className={styles.authorName}>{item.authorName}</span>\n <span className={styles.stars} aria-hidden>\n {'★'.repeat(item.rating ?? 5)}\n </span>\n </div>\n </div>\n </li>\n ))}\n </ul>\n {hasMore && (\n <div className={styles.readMoreWrap}>\n <button\n type=\"button\"\n className={styles.toggleBtn}\n onClick={() => setExpanded((e) => !e)}\n aria-expanded={expanded}\n >\n {expanded ? readLessLabel : readMoreLabel}\n <span className={styles.arrow} aria-hidden>\n ›\n </span>\n </button>\n </div>\n )}\n {(readMoreHref || onReadMore) && !hasMore && (\n <div className={styles.readMoreWrap}>\n {readMoreHref ? (\n <a\n href={readMoreHref}\n className={styles.readMore}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n {readMoreLabel}\n <span className={styles.arrow} aria-hidden>\n ›\n </span>\n </a>\n ) : (\n <button\n type=\"button\"\n className={styles.readMore}\n onClick={() => onReadMore?.()}\n >\n {readMoreLabel}\n <span className={styles.arrow} aria-hidden>\n ›\n </span>\n </button>\n )}\n </div>\n )}\n </section>\n );\n}\n","import { useState, useMemo } from 'react';\nimport styles from './FAQAccordion.module.scss';\n\nexport interface FAQItemKey {\n qKey: string;\n aKey: string;\n}\n\nexport interface FAQAccordionProps {\n /** Translation function; uses keys: faqTitle, and item qKey/aKey (or resolved answer key) */\n t: (key: string) => string;\n /** List of Q&A item keys (translation keys for question and answer) */\n items: FAQItemKey[];\n /** Optional: map answer key to another key (e.g. faqA1 -> faqA1Global) */\n resolveAnswerKey?: (aKey: string) => string;\n /** Index of the item to open by default (-1 = none) */\n defaultOpenIndex?: number;\n /** Called when an item is expanded; receives the question text */\n onItemOpen?: (questionText: string) => void;\n className?: string;\n /** Optional class name for the section heading (e.g. to use bold in one app and semibold in another) */\n headingClassName?: string;\n}\n\nexport function FAQAccordion({\n t,\n items,\n resolveAnswerKey,\n defaultOpenIndex = 0,\n onItemOpen,\n className = '',\n headingClassName,\n}: FAQAccordionProps) {\n const resolvedItems = useMemo(\n () =>\n items.map(({ qKey, aKey }) => ({\n question: t(qKey),\n answer: t(resolveAnswerKey ? resolveAnswerKey(aKey) : aKey),\n })),\n [t, items, resolveAnswerKey]\n );\n\n const [openIndex, setOpenIndex] = useState<number>(defaultOpenIndex);\n const title = t('faqTitle');\n\n return (\n <section\n className={`${styles.section} ${className}`}\n aria-labelledby=\"faq-heading\"\n >\n <h2\n id=\"faq-heading\"\n className={[styles.heading, headingClassName].filter(Boolean).join(' ')}\n >\n {title}\n </h2>\n <div className={styles.accordion} role=\"list\">\n {resolvedItems.map((item, index) => {\n const isOpen = openIndex === index;\n return (\n <div\n key={index}\n className={`${styles.item} ${isOpen ? styles.itemOpen : ''}`}\n role=\"listitem\"\n >\n <button\n type=\"button\"\n className={styles.question}\n onClick={() => {\n const nextOpen = !isOpen;\n setOpenIndex(isOpen ? -1 : index);\n if (nextOpen) onItemOpen?.(item.question);\n }}\n aria-expanded={isOpen}\n aria-controls={`faq-answer-${index}`}\n id={`faq-question-${index}`}\n >\n <span>{item.question}</span>\n <span\n className={`${styles.chevron} ${isOpen ? styles.chevronOpen : ''}`}\n aria-hidden\n >\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n aria-hidden\n focusable=\"false\"\n >\n <path\n d=\"M5.8 8.3a1 1 0 0 1 1.4 0L10 11.09l2.8-2.8a1 1 0 1 1 1.4 1.42l-3.5 3.5a1 1 0 0 1-1.4 0l-3.5-3.5A1 1 0 0 1 5.8 8.3z\"\n fill=\"currentColor\"\n />\n </svg>\n </span>\n </button>\n <div\n id={`faq-answer-${index}`}\n role=\"region\"\n aria-labelledby={`faq-question-${index}`}\n className={`${styles.answerWrap} ${isOpen ? styles.answerOpen : ''}`}\n hidden={!isOpen}\n >\n <p className={styles.answer}>{item.answer}</p>\n </div>\n </div>\n );\n })}\n </div>\n </section>\n );\n}\n","import type { ReactNode } from 'react';\nimport styles from './PageHeader.module.scss';\n\n/** Minimal image component props for optional optimized logo (e.g. next/image). */\nexport interface PageHeaderImageProps {\n src: string;\n alt: string;\n width?: number;\n height?: number;\n className?: string;\n}\n\nexport interface PageHeaderProps {\n /** Translation function; uses keys: sriMandir, ratingText */\n t: (key: string) => string;\n /** Logo image URL; if not set, a placeholder is shown */\n logoUrl?: string;\n /** Optional image component for logo (e.g. next/image adapter) */\n imageComponent?: React.ComponentType<PageHeaderImageProps>;\n /** Optional slot for language selector or other header actions */\n languageSelector?: ReactNode;\n /** Whether to show the languageSelector slot */\n showLanguageSelector?: boolean;\n className?: string;\n}\n\nconst DEFAULT_LOGO_WIDTH = 120;\nconst DEFAULT_LOGO_HEIGHT = 40;\n\nexport function PageHeader({\n t,\n logoUrl,\n imageComponent: ImageComponent,\n languageSelector,\n showLanguageSelector = true,\n className = '',\n}: PageHeaderProps) {\n const showSlot = showLanguageSelector && languageSelector != null;\n const brandName = t('sriMandir');\n const ratingText = t('ratingText');\n\n return (\n <header className={`${styles.header} ${className}`}>\n <div className={styles.brand}>\n <div className={styles.logo}>\n {logoUrl ? (\n ImageComponent ? (\n <ImageComponent\n src={logoUrl}\n alt={brandName}\n className={styles.logoImg}\n width={DEFAULT_LOGO_WIDTH}\n height={DEFAULT_LOGO_HEIGHT}\n />\n ) : (\n <img\n src={logoUrl}\n alt={brandName}\n className={styles.logoImg}\n width={DEFAULT_LOGO_WIDTH}\n height={DEFAULT_LOGO_HEIGHT}\n decoding=\"async\"\n />\n )\n ) : (\n <div className={styles.logoPlaceholder} aria-hidden />\n )}\n </div>\n <div className={styles.brandText}>\n <span className={styles.brandName}>{brandName}</span>\n {ratingText != null && ratingText !== '' && (\n <span className={styles.rating}>\n {ratingText}\n </span>\n )}\n </div>\n </div>\n {showSlot && <div className={styles.langSlot}>{languageSelector}</div>}\n </header>\n );\n}\n","import type { ReactNode } from 'react';\nimport styles from './FormContainer.module.scss';\n\nexport interface FormContainerProps {\n /** Form content (e.g. PrivacyBanner + FormSectionHeader + form fields) */\n children: ReactNode;\n className?: string;\n /** Accessibility label for the section */\n 'aria-label'?: string;\n}\n\nexport function FormContainer({\n children,\n className = '',\n 'aria-label': ariaLabel,\n}: FormContainerProps) {\n return (\n <section\n className={`${styles.wrap} ${className}`}\n aria-label={ariaLabel}\n >\n <div className={styles.card}>\n <div className={styles.cardInner}>{children}</div>\n </div>\n </section>\n );\n}\n","import type { ReactNode } from 'react';\nimport styles from './FormSectionHeader.module.scss';\n\nconst BackIcon = () => (\n <svg\n className={styles.backIcon}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden\n >\n <path\n d=\"M15 18l-6-6 6-6\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n);\n\nexport interface FormSectionHeaderProps {\n /** Form title */\n title: string;\n /** Optional subtitle below title */\n subtitle?: string;\n /** Optional back button; when provided, back button is shown and this is the aria-label */\n onBack?: () => void;\n backAriaLabel?: string;\n className?: string;\n}\n\nexport function FormSectionHeader({\n title,\n subtitle,\n onBack,\n backAriaLabel = 'Back',\n className = '',\n}: FormSectionHeaderProps) {\n return (\n <header className={`${styles.header} ${className}`}>\n <div className={styles.left}>\n {onBack != null && (\n <button\n type=\"button\"\n className={styles.backBtn}\n onClick={onBack}\n aria-label={backAriaLabel}\n >\n <BackIcon />\n </button>\n )}\n <div className={styles.titleWrap}>\n <h1 className={styles.title}>{title}</h1>\n {subtitle != null && subtitle !== '' && (\n <p className={styles.subtitle}>{subtitle}</p>\n )}\n </div>\n </div>\n </header>\n );\n}\n","import styles from './PrivacyBanner.module.scss';\n\nconst DEFAULT_SHIELD_ICON =\n 'https://srm-cdn.a4b.io/yoda/1770707793537.svg';\n\nexport interface PrivacyBannerProps {\n /** Text to show (e.g. \"100% Private & Secure\") */\n text: string;\n /** Optional shield icon URL */\n iconUrl?: string;\n className?: string;\n}\n\nexport function PrivacyBanner({\n text,\n iconUrl = DEFAULT_SHIELD_ICON,\n className = '',\n}: PrivacyBannerProps) {\n return (\n <div className={`${styles.banner} ${className}`} role=\"status\">\n <span className={styles.text}> <img\n src={iconUrl}\n alt=\"\"\n className={styles.icon}\n width={18}\n height={18}\n aria-hidden\n /> {text}</span>\n </div>\n );\n}\n","import type { ReactNode } from 'react';\nimport { useState, useEffect } from 'react';\nimport styles from './FormField.module.scss';\n\nconst DEFAULT_INFO_ICON = 'https://srm-cdn.a4b.io/yoda/1770372066357.svg';\n\nexport interface FormFieldProps {\n /** Field label (e.g. \"Enter Your Name\") */\n label: string;\n /** HTML id for the control (for label association) */\n id: string;\n /** Whether to show required asterisk */\n required?: boolean;\n /** Optional help text below label, above input */\n help?: string;\n /** Optional info tooltip text; when set, shows (i) icon that toggles tooltip */\n infoTooltip?: string;\n infoAriaLabel?: string;\n /** Icon URL for info button (default: common info icon) */\n infoIconUrl?: string;\n /** Control content (input, etc.) */\n children: ReactNode;\n className?: string;\n}\n\nexport function FormField({\n label,\n id,\n required = false,\n help,\n infoTooltip,\n infoAriaLabel = 'Info',\n infoIconUrl = DEFAULT_INFO_ICON,\n children,\n className = '',\n}: FormFieldProps) {\n const [infoOpen, setInfoOpen] = useState(false);\n\n useEffect(() => {\n if (!infoTooltip) return;\n const onDoc = (e: MouseEvent) => {\n const t = e.target as HTMLElement | null;\n if (t?.closest?.('[data-info-tooltip]') != null) return;\n setInfoOpen(false);\n };\n const onKey = (e: KeyboardEvent) => {\n if (e.key === 'Escape') setInfoOpen(false);\n };\n document.addEventListener('mousedown', onDoc);\n document.addEventListener('keydown', onKey);\n return () => {\n document.removeEventListener('mousedown', onDoc);\n document.removeEventListener('keydown', onKey);\n };\n }, [infoTooltip]);\n\n return (\n <div className={`${styles.field} ${className}`}>\n <div className={styles.labelRow}>\n <label className={styles.label} htmlFor={id}>\n {label}\n {required && <span className={styles.req}>*</span>}\n </label>\n {infoTooltip != null && infoTooltip !== '' && (\n <div className={styles.infoWrap} data-info-tooltip>\n <button\n type=\"button\"\n className={styles.infoBtn}\n aria-label={infoAriaLabel}\n aria-expanded={infoOpen}\n onClick={() => setInfoOpen((v) => !v)}\n >\n <img\n className={styles.infoImg}\n src={infoIconUrl}\n alt=\"\"\n aria-hidden\n />\n </button>\n {infoOpen && (\n <div className={styles.tooltip} role=\"tooltip\">\n {infoTooltip}\n <span className={styles.tooltipArrow} aria-hidden />\n </div>\n )}\n </div>\n )}\n </div>\n {help != null && help !== '' && (\n <div className={styles.help}>{help}</div>\n )}\n <div className={styles.inputWrap}>{children}</div>\n </div>\n );\n}\n","import type { InputHTMLAttributes } from 'react';\nimport styles from './FormTextInput.module.scss';\n\nexport interface FormTextInputProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, 'className'> {\n id: string;\n /** Optional icon URL on the right (e.g. location pin) */\n iconUrl?: string;\n iconAlt?: string;\n /** If true, icon is clickable (e.g. open picker) */\n iconInteractive?: boolean;\n onIconClick?: () => void;\n className?: string;\n}\n\nexport function FormTextInput({\n id,\n iconUrl,\n iconAlt = '',\n iconInteractive = false,\n onIconClick,\n className = '',\n ...rest\n}: FormTextInputProps) {\n return (\n <div className={`${styles.wrap} ${className}`}>\n <input\n {...rest}\n id={id}\n className={styles.input}\n type={rest.type ?? 'text'}\n />\n {iconUrl != null && (\n <button\n type=\"button\"\n className={\n iconInteractive\n ? `${styles.iconBtn} ${styles.iconBtnInteractive}`\n : styles.iconBtn\n }\n aria-label={iconAlt || undefined}\n onClick={iconInteractive ? onIconClick : undefined}\n tabIndex={iconInteractive ? 0 : -1}\n >\n <img\n className={styles.iconImg}\n src={iconUrl}\n alt=\"\"\n aria-hidden\n width={22}\n height={22}\n />\n </button>\n )}\n </div>\n );\n}\n","import type { InputHTMLAttributes } from 'react';\nimport { useRef, useMemo } from 'react';\nimport styles from './FormDateInput.module.scss';\n\nconst ICON_DATE = 'https://srm-cdn.a4b.io/yoda/1770372045894.svg';\n\nexport interface FormDateInputProps\n extends Omit<\n InputHTMLAttributes<HTMLInputElement>,\n 'type' | 'className' | 'value' | 'onChange'\n > {\n id: string;\n value: string;\n onChange: (value: string) => void;\n /** Optional: open native picker when icon clicked */\n onIconClick?: () => void;\n className?: string;\n}\n\nexport function FormDateInput({\n id,\n value,\n onChange,\n onIconClick,\n className = '',\n ...rest\n}: FormDateInputProps) {\n const inputRef = useRef<HTMLInputElement>(null);\n const maxDate = useMemo(() => {\n const d = new Date();\n const pad = (n: number) => String(n).padStart(2, '0');\n return `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())}`;\n }, []);\n\n const handleIconClick = () => {\n if (onIconClick) {\n onIconClick();\n return;\n }\n const el = inputRef.current;\n if (\n el &&\n typeof (el as HTMLInputElement & { showPicker?: () => void })\n .showPicker === 'function'\n ) {\n (el as HTMLInputElement & { showPicker: () => void }).showPicker();\n } else {\n el?.focus();\n }\n };\n\n return (\n <div className={`${styles.wrap} ${className}`}>\n <input\n {...rest}\n ref={inputRef}\n id={id}\n type=\"date\"\n className={styles.input}\n value={value}\n max={maxDate}\n onChange={(e) => onChange(e.target.value)}\n />\n <button\n type=\"button\"\n className={`${styles.iconBtn}`}\n aria-label=\"Open date picker\"\n onMouseDown={(e) => e.preventDefault()}\n onClick={(e) => {\n e.preventDefault();\n handleIconClick();\n }}\n >\n <img\n className={styles.iconImg}\n src={ICON_DATE}\n alt=\"\"\n aria-hidden\n width={22}\n height={22}\n />\n </button>\n </div>\n );\n}\n","import styles from './FormTimeInput.module.scss';\n\nconst ICON_TIME = 'https://srm-cdn.a4b.io/yoda/1770372014782.svg';\n\nexport interface FormTimeInputProps {\n id: string;\n value: string;\n onChange: (value: string) => void;\n placeholder?: string;\n disabled?: boolean;\n onIconClick?: () => void;\n className?: string;\n}\n\nexport function FormTimeInput({\n id,\n value,\n onChange,\n placeholder = 'HH:MM AM',\n disabled = false,\n onIconClick,\n className = '',\n}: FormTimeInputProps) {\n return (\n <div className={`${styles.wrap} ${className}`}>\n <input\n id={id}\n type=\"time\"\n className={styles.input}\n value={value}\n onChange={(e) => onChange(e.target.value)}\n placeholder={placeholder}\n disabled={disabled}\n onClick={() => !disabled && onIconClick?.()}\n />\n <button\n type=\"button\"\n className={styles.iconBtn}\n aria-label=\"Open time picker\"\n disabled={disabled}\n onClick={(e) => {\n e.preventDefault();\n if (!disabled) onIconClick?.();\n }}\n >\n <img\n className={styles.iconImg}\n src={ICON_TIME}\n alt=\"\"\n aria-hidden\n width={22}\n height={22}\n />\n </button>\n </div>\n );\n}\n","import type { InputHTMLAttributes } from 'react';\nimport styles from './FormLocationInput.module.scss';\n\nconst ICON_LOCATION = 'https://srm-cdn.a4b.io/yoda/1770372031092.svg';\n\nexport interface FormLocationInputProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, 'className'> {\n id: string;\n iconUrl?: string;\n className?: string;\n}\n\nexport function FormLocationInput({\n id,\n iconUrl = ICON_LOCATION,\n className = '',\n ...rest\n}: FormLocationInputProps) {\n return (\n <div className={`${styles.wrap} ${className}`}>\n <input {...rest} id={id} className={styles.input} type=\"text\" />\n <div className={styles.iconBtn} aria-hidden>\n <img\n className={styles.iconImg}\n src={iconUrl}\n alt=\"\"\n width={22}\n height={22}\n />\n </div>\n </div>\n );\n}\n","import styles from './FormSegmentedControl.module.scss';\n\nexport interface SegmentedOption {\n value: string;\n label: string;\n}\n\nexport interface FormSegmentedControlProps {\n id: string;\n options: SegmentedOption[];\n value: string;\n onChange: (value: string) => void;\n className?: string;\n}\n\nexport function FormSegmentedControl({\n id,\n options,\n value,\n onChange,\n className = '',\n}: FormSegmentedControlProps) {\n return (\n <div\n className={`${styles.segmented} ${className}`}\n role=\"group\"\n aria-labelledby={`${id}-label`}\n >\n {options.map((opt) => (\n <button\n key={opt.value}\n type=\"button\"\n id={opt.value === value ? id : undefined}\n className={`${styles.segmentedOption} ${opt.value === value ? styles.active : ''}`}\n onClick={() => onChange(opt.value)}\n >\n {opt.label}\n </button>\n ))}\n </div>\n );\n}\n","import styles from './FormTagPills.module.scss';\n\nexport interface FormTagPillsProps {\n id: string;\n options: { key: string; label: string }[];\n selected: string[];\n onChange: (selected: string[]) => void;\n className?: string;\n}\n\nexport function FormTagPills({\n id,\n options,\n selected,\n onChange,\n className = '',\n}: FormTagPillsProps) {\n const toggle = (key: string) => {\n if (selected.includes(key)) {\n onChange(selected.filter((k) => k !== key));\n } else {\n onChange([...selected, key]);\n }\n };\n\n return (\n <div\n className={`${styles.pillsWrap} ${className}`}\n role=\"group\"\n aria-labelledby={`${id}-label`}\n >\n {options.map((opt) => (\n <button\n key={opt.key}\n type=\"button\"\n className={`${styles.pill} ${selected.includes(opt.key) ? styles.selected : ''}`}\n onClick={() => toggle(opt.key)}\n >\n {opt.label}\n </button>\n ))}\n </div>\n );\n}\n","import styles from './FormCheckboxWithHelp.module.scss';\n\nexport interface FormCheckboxWithHelpProps {\n id: string;\n checked: boolean;\n onChange: (checked: boolean) => void;\n primaryText: string;\n helpText?: string;\n className?: string;\n}\n\nexport function FormCheckboxWithHelp({\n id,\n checked,\n onChange,\n primaryText,\n helpText,\n className = '',\n}: FormCheckboxWithHelpProps) {\n return (\n <div className={`${styles.wrapper} ${className}`}>\n <div className={styles.checkboxRow}>\n <input\n id={id}\n type=\"checkbox\"\n className={styles.checkbox}\n checked={checked}\n onChange={(e) => onChange(e.target.checked)}\n />\n <label htmlFor={id} className={styles.checkboxText}>\n {primaryText}\n </label>\n </div>\n {helpText != null && helpText !== '' && (\n <p className={styles.checkboxHelp}>{helpText}</p>\n )}\n </div>\n );\n}\n","import type { ReactNode } from 'react';\nimport styles from './FormFooterNote.module.scss';\n\nexport interface FormFooterNoteProps {\n children: ReactNode;\n className?: string;\n}\n\nexport function FormFooterNote({\n children,\n className = '',\n}: FormFooterNoteProps) {\n return <p className={`${styles.footerNote} ${className}`}>{children}</p>;\n}\n","import type { ReactNode } from 'react';\nimport styles from './FooterShell.module.scss';\n\nexport interface FooterShellProps {\n /** Optional circular marquee content (e.g. badges). When provided, marquee is shown. */\n marquee?: ReactNode;\n /** Main footer content (e.g. CTA button or static text) */\n children: ReactNode;\n className?: string;\n}\n\nexport function FooterShell({\n marquee,\n children,\n className = '',\n}: FooterShellProps) {\n return (\n <footer className={`${styles.footer} ${className}`} role=\"contentinfo\">\n <div className={styles.inner}>\n {marquee != null && (\n <div className={styles.badges} aria-hidden>\n {marquee}\n </div>\n )}\n <div className={styles.ctaWrap}>{children}</div>\n </div>\n </footer>\n );\n}\n","import type { ReactNode } from 'react';\nimport styles from './FooterShell.module.scss';\n\nexport interface FooterCTAButtonProps {\n /** Button/link content */\n children: ReactNode;\n /** When set, renders an anchor instead of a button */\n href?: string;\n /** Disabled state; for anchor uses aria-disabled and preventDefault on click */\n disabled?: boolean;\n /** Click handler (used when href is not set) */\n onClick?: (e: React.MouseEvent<HTMLElement>) => void;\n /** When true, render as static div (no button/link) - for \"display only\" CTA like \"Check My Dosha for FREE\" */\n static?: boolean;\n className?: string;\n 'aria-label'?: string;\n}\n\nexport function FooterCTAButton({\n children,\n href,\n disabled = false,\n onClick,\n static: staticOnly = false,\n className = '',\n 'aria-label': ariaLabel,\n}: FooterCTAButtonProps) {\n const buttonClass = `${styles.ctaButton} ${className}`.trim();\n const staticClass = `${styles.ctaStatic} ${className}`.trim();\n const ariaProps = ariaLabel != null ? { 'aria-label': ariaLabel } : {};\n\n if (staticOnly) {\n return (\n <div className={staticClass} role=\"presentation\">\n {children}\n </div>\n );\n }\n\n if (href != null) {\n return (\n <a\n href={href}\n className={buttonClass}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n aria-disabled={disabled}\n onClick={(e) => disabled && e.preventDefault()}\n {...ariaProps}\n >\n {children}\n </a>\n );\n }\n\n return (\n <button\n type=\"button\"\n className={buttonClass}\n disabled={disabled}\n onClick={onClick}\n {...ariaProps}\n >\n {children}\n </button>\n );\n}\n","import type { ReactNode } from 'react';\nimport styles from './CircularMarquee.module.scss';\n\nexport interface CircularMarqueeProps {\n /** Content to scroll (will be duplicated for seamless loop). Use same structure in both places (e.g. a single row of badges). */\n children: ReactNode;\n /** Optional class name for the wrapper */\n className?: string;\n}\n\n/**\n * Horizontal infinite marquee. Duplicates children so the loop is seamless.\n * Use for trust badges, labels, etc. under header or in footer.\n */\nexport function CircularMarquee({ children, className = '' }: CircularMarqueeProps) {\n return (\n <div className={`${styles.wrapper} ${className}`} aria-hidden>\n <div className={styles.track}>\n {children}\n {children}\n </div>\n </div>\n );\n}\n","import type { ReactNode } from 'react';\nimport { CircularMarquee } from '../CircularMarquee/CircularMarquee';\nimport styles from './MarqueeStrip.module.scss';\n\nexport interface MarqueeStripProps {\n /** Content to scroll in the marquee (e.g. a row of badges). Pass a single row; it will be duplicated for the loop. */\n children: ReactNode;\n className?: string;\n}\n\n/**\n * Horizontal bar (e.g. under the header) with the same circular marquee as the footer.\n * Renders a strip with background and border, and CircularMarquee inside.\n */\nexport function MarqueeStrip({ children, className = '' }: MarqueeStripProps) {\n return (\n <div className={`${styles.strip} ${className}`} role=\"region\" aria-label=\"Trust badges\">\n <CircularMarquee>{children}</CircularMarquee>\n </div>\n );\n}\n","import styles from './ContactUsSection.module.scss';\n\nexport interface ContactUsSectionProps {\n /** Section heading (e.g. \"Contact Us\") */\n title: string;\n /** Brand or company name line */\n brandName: string;\n /** WhatsApp contact line (e.g. \"Whatsapp: 8296947757\") */\n whatsAppLine: string;\n /** Email contact line (e.g. \"Email: support@example.com\") */\n emailLine: string;\n className?: string;\n}\n\n/**\n * Generic \"Contact Us\" section: title + brand name + WhatsApp + email.\n * Pass pre-resolved strings so each app can use its own t() and config.\n */\nexport function ContactUsSection({\n title,\n brandName,\n whatsAppLine,\n emailLine,\n className = '',\n}: ContactUsSectionProps) {\n return (\n <section className={`${styles.section} ${className}`} aria-labelledby=\"contact-heading\">\n <h2 id=\"contact-heading\" className={styles.heading}>\n {title}\n </h2>\n <div className={styles.content}>\n <p className={styles.brandName}>{brandName}</p>\n <p className={styles.line}>{whatsAppLine}</p>\n <p className={styles.line}>{emailLine}</p>\n </div>\n </section>\n );\n}\n","import type {\n ConsultationLanguageOption,\n ConsultationSlotDateLabel,\n ConsultationSlotPeriod,\n} from './types';\n\n/**\n * Formats an ISO datetime (e.g. \"2026-08-03T09:00:00+05:30\") into a short\n * label like \"9:00 AM\". Reads the hour/minute directly off the string\n * instead of going through `Date`, so the slot shows the exact wall-clock\n * time the backend sent rather than being reinterpreted in the browser's\n * local timezone.\n */\nexport const formatSlotTime = (isoDateTime: string): string => {\n const match = isoDateTime.match(/T(\\d{2}):(\\d{2})/);\n if (!match) return isoDateTime;\n const hour24 = Number(match[1]);\n const minute = match[2];\n const period = hour24 >= 12 ? 'PM' : 'AM';\n const hour12 = hour24 % 12 || 12;\n return `${hour12}:${minute} ${period}`;\n};\n\n/** Builds a short day-tab label (\"Today\" / \"Tomorrow\" / weekday) + day number for a \"yyyy-MM-dd\" date string. */\nexport const formatSlotDayLabel = (\n isoDate: string,\n referenceDate: Date = new Date()\n): ConsultationSlotDateLabel => {\n const dayNames = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];\n const date = new Date(`${isoDate}T00:00:00`);\n if (Number.isNaN(date.getTime())) {\n return { id: isoDate, dayLabel: isoDate, dayNum: '' };\n }\n\n const startOfDay = (d: Date) =>\n new Date(d.getFullYear(), d.getMonth(), d.getDate()).getTime();\n const diffDays = Math.round(\n (startOfDay(date) - startOfDay(referenceDate)) / (1000 * 60 * 60 * 24)\n );\n\n const dayLabel =\n diffDays === 0 ? 'Today' : diffDays === 1 ? 'Tomorrow' : dayNames[date.getDay()];\n\n return { id: isoDate, dayLabel, dayNum: String(date.getDate()) };\n};\n\nexport const CONSULTATION_PERIOD_ORDER: ConsultationSlotPeriod[] = [\n 'morning',\n 'afternoon',\n 'evening',\n];\n\n/**\n * Default consultation-language dropdown options. Host apps can pass their\n * own list through the `languageOptions` prop — `labelKey` resolves via the\n * `t` prop and falls back to `label`.\n */\nexport const CONSULTATION_LANGUAGE_OPTIONS: ConsultationLanguageOption[] = [\n { code: 'en', labelKey: 'formReportLanguageEnglish', label: 'English' },\n { code: 'hi', labelKey: 'formReportLanguageHindi', label: 'Hindi' },\n { code: 'te', labelKey: 'formReportLanguageTelugu', label: 'Telugu' },\n { code: 'kn', labelKey: 'formReportLanguageKannada', label: 'Kannada' },\n { code: 'gu', labelKey: 'formReportLanguageGujarati', label: 'Gujarati' },\n { code: 'mr', labelKey: 'formReportLanguageMarathi', label: 'Marathi' },\n { code: 'ta', labelKey: 'formReportLanguageTamil', label: 'Tamil' },\n];\n","import React from 'react';\n\n/** Tick shown next to the selected consultation language */\nexport const CheckIcon: React.FC = () => (\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden>\n <path\n d=\"M3.5 8.5l2.5 2.5 6-6\"\n stroke=\"#22c55e\"\n strokeWidth=\"1.8\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n);\n\n/** Down chevron, used by the consultation-language dropdown trigger */\nexport const ChevronDownIcon: React.FC = () => (\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2.2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden\n >\n <path d=\"M6 9l6 6 6-6\" />\n </svg>\n);\n\n/** Sun icon for \"Morning\" period tab */\nexport const MorningIcon: React.FC = () => (\n <img\n src=\"https://srm-cdn.a4b.io/yoda/1785316603029.svg\"\n width={16}\n height={16}\n alt=\"\"\n aria-hidden\n />\n);\n\n/** Sun-cloud icon for \"Afternoon\" period tab */\nexport const AfternoonIcon: React.FC = () => (\n <img\n src=\"https://srm-cdn.a4b.io/yoda/1785316621747.svg\"\n width={16}\n height={16}\n alt=\"\"\n aria-hidden\n />\n);\n\n/** Moon icon for \"Evening\" period tab */\nexport const EveningIcon: React.FC = () => (\n <img\n src=\"https://srm-cdn.a4b.io/yoda/1785316635953.svg\"\n width={16}\n height={16}\n alt=\"\"\n aria-hidden\n />\n);\n\n/** Calendar-with-slash icon for the \"No slots available\" empty state */\nexport const CalendarOffIcon: React.FC = () => (\n <svg width=\"40\" height=\"40\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden>\n <rect x=\"3\" y=\"4.5\" width=\"18\" height=\"16\" rx=\"3\" stroke=\"#D1D5DB\" strokeWidth=\"1.6\" />\n <path d=\"M3 9.5h18\" stroke=\"#D1D5DB\" strokeWidth=\"1.6\" />\n <path d=\"M8 2.5v4M16 2.5v4\" stroke=\"#D1D5DB\" strokeWidth=\"1.6\" strokeLinecap=\"round\" />\n <path d=\"M7.5 20.5L17 6\" stroke=\"#9CA3AF\" strokeWidth=\"1.6\" strokeLinecap=\"round\" />\n </svg>\n);\n\n","/**\n * PhoneNumberSection — PLACEHOLDER.\n *\n * Dummy stand-in for the \"phone number\" block that sits above the slot\n * picker, so the layout can be reviewed end to end. It renders a static\n * number and an inert \"Change\" affordance; swap it for the real\n * (validated, OTP-backed) implementation before shipping, or replace it\n * wholesale via `ConsultationSlotSelector`'s `phoneNumberSection` prop.\n */\nimport React from 'react';\nimport styles from './PhoneNumberSection.module.scss';\n\nexport interface PhoneNumberSectionProps {\n /** Section title. Wins over `t(\"planPhoneNumberHeading\")`. */\n title?: string;\n /** Dial code shown before the number, e.g. \"+91\" */\n countryCode?: string;\n /** The number itself, e.g. \"98765 43210\" */\n phoneNumber?: string;\n /** Helper line under the number. */\n helperText?: string;\n /** Called when \"Change\" is tapped; the link is hidden when not passed. */\n onEdit?: () => void;\n /** Translation lookup; every string falls back to the English default. */\n t?: (key: string, options?: any) => string | undefined;\n className?: string;\n}\n\nexport const PhoneNumberSection: React.FC<PhoneNumberSectionProps> = ({\n title,\n countryCode = '+91',\n phoneNumber = '98765 43210',\n helperText,\n onEdit,\n t,\n className = '',\n}) => (\n <section className={[styles.section, className].filter(Boolean).join(' ')}>\n <div className={styles.headerRow}>\n <span className={styles.title}>\n {title ?? t?.('planPhoneNumberHeading') ?? 'Your phone number'}\n </span>\n {onEdit && (\n <button type=\"button\" className={styles.changeBtn} onClick={onEdit}>\n {t?.('planPhoneNumberChange') ?? 'Change'}\n </button>\n )}\n </div>\n\n <div className={styles.numberRow}>\n <span className={styles.countryCode}>{countryCode}</span>\n <span className={styles.number}>{phoneNumber}</span>\n </div>\n\n <p className={styles.helper}>\n {helperText ??\n t?.('planPhoneNumberHelper') ??\n 'The astrologer will call you on this number at your booked slot.'}\n </p>\n </section>\n);\n","/**\n * AstrologyProfilesSection — PLACEHOLDER.\n *\n * Dummy stand-in for the \"astrology profiles\" block that sits above the slot\n * picker, so the layout can be reviewed end to end. It renders a horizontal\n * strip of selectable profile cards plus an inert \"Add profile\" tile; swap it\n * for the real (API-backed) implementation before shipping, or replace it\n * wholesale via `ConsultationSlotSelector`'s `astrologyProfilesSection` prop.\n */\nimport React, { useState } from 'react';\nimport styles from './AstrologyProfilesSection.module.scss';\n\nexport interface AstrologyProfile {\n id: string;\n /** Person's name, e.g. \"Aarav Sharma\" */\n name: string;\n /** Free-form birth line, e.g. \"12 Mar 1994 • 06:45 AM\" */\n birthDetails?: string;\n /** Birth place, e.g. \"Bengaluru, India\" */\n birthPlace?: string;\n /** Relation tag shown as a pill, e.g. \"Self\", \"Spouse\" */\n relation?: string;\n}\n\nconst PLACEHOLDER_PROFILES: AstrologyProfile[] = [\n {\n id: 'self',\n name: 'Aarav Sharma',\n birthDetails: '12 Mar 1994 • 06:45 AM',\n birthPlace: 'Bengaluru, India',\n relation: 'Self',\n },\n {\n id: 'spouse',\n name: 'Diya Sharma',\n birthDetails: '04 Sep 1996 • 11:20 PM',\n birthPlace: 'Pune, India',\n relation: 'Spouse',\n },\n];\n\nexport interface AstrologyProfilesSectionProps {\n /** Section title. Wins over `t(\"planAstrologyProfilesHeading\")`. */\n title?: string;\n /** Profiles to show. Defaults to placeholder data. */\n profiles?: AstrologyProfile[];\n /** Selected profile id. Omit to let the component manage it. */\n selectedProfileId?: string;\n onProfileSelect?: (profileId: string) => void;\n /** Called when \"Add profile\" is tapped; the tile is hidden when not passed. */\n onAddProfile?: () => void;\n /** Translation lookup; every string falls back to the English default. */\n t?: (key: string, options?: any) => string | undefined;\n className?: string;\n}\n\nexport const AstrologyProfilesSection: React.FC<AstrologyProfilesSectionProps> = ({\n title,\n profiles = PLACEHOLDER_PROFILES,\n selectedProfileId,\n onProfileSelect,\n onAddProfile,\n t,\n className = '',\n}) => {\n const [internalSelectedId, setInternalSelectedId] = useState(profiles[0]?.id ?? '');\n const activeId = selectedProfileId ?? internalSelectedId;\n\n const handleSelect = (profileId: string) => {\n setInternalSelectedId(profileId);\n onProfileSelect?.(profileId);\n };\n\n return (\n <section className={[styles.section, className].filter(Boolean).join(' ')}>\n <p className={styles.title}>\n {title ?? t?.('planAstrologyProfilesHeading') ?? 'Astrology profile'}\n </p>\n\n <div className={styles.profileRow} role=\"radiogroup\" aria-label=\"Astrology profile\">\n {profiles.map((profile) => {\n const isSelected = profile.id === activeId;\n return (\n <button\n key={profile.id}\n type=\"button\"\n role=\"radio\"\n aria-checked={isSelected}\n className={[styles.profileCard, isSelected ? styles.profileCardSelected : '']\n .filter(Boolean)\n .join(' ')}\n onClick={() => handleSelect(profile.id)}\n >\n <span className={styles.profileTop}>\n <span className={styles.avatar} aria-hidden>\n {profile.name.charAt(0).toUpperCase()}\n </span>\n <span className={styles.profileName}>{profile.name}</span>\n </span>\n {profile.relation && <span className={styles.relationPill}>{profile.relation}</span>}\n {profile.birthDetails && (\n <span className={styles.profileMeta}>{profile.birthDetails}</span>\n )}\n {profile.birthPlace && (\n <span className={styles.profileMeta}>{profile.birthPlace}</span>\n )}\n </button>\n );\n })}\n\n {onAddProfile && (\n <button type=\"button\" className={styles.addCard} onClick={onAddProfile}>\n <span className={styles.addIcon} aria-hidden>\n +\n </span>\n {t?.('planAddAstrologyProfile') ?? 'Add profile'}\n </button>\n )}\n </div>\n </section>\n );\n};\n","/**\n * ConsultationSlotSelector — presentational slot-picker extracted from the\n * kundli-generator consultation modal.\n *\n * It renders only the UI: the consultation-language row and the date /\n * time-of-day / time-slot selection (plus loading, error and empty states),\n * optionally preceded by the phone-number and astrology-profile sections.\n * All fetching, analytics and modal chrome (header, footer CTA, guidance\n * topics) stay in the host app.\n *\n * Selection is controlled-optional: pass `selectedDate` / `selectedPeriod` /\n * `selectedSlotStart` / `selectedLanguage` to drive it from the host, or omit\n * them and the component keeps its own state, defaulting to the first\n * available day / period / slot.\n */\nimport React, { Fragment, useEffect, useMemo, useRef, useState } from 'react';\nimport type {\n ConsultationLanguageOption,\n ConsultationSlot,\n ConsultationSlotDay,\n ConsultationSlotPeriod,\n} from './types';\nimport {\n CONSULTATION_LANGUAGE_OPTIONS,\n CONSULTATION_PERIOD_ORDER,\n formatSlotDayLabel,\n formatSlotTime,\n} from './slotUtils';\nimport {\n AfternoonIcon,\n CalendarOffIcon,\n CheckIcon,\n ChevronDownIcon,\n EveningIcon,\n MorningIcon,\n} from './SlotIcons';\nimport { PhoneNumberSection } from './PhoneNumberSection';\nimport { AstrologyProfilesSection } from './AstrologyProfilesSection';\nimport styles from './ConsultationSlotSelector.module.scss';\n\nexport interface ConsultationSlotSelectorProps {\n /** Availability for the currently selected consultation language. */\n days: ConsultationSlotDay[];\n\n /** Renders the shimmer skeleton instead of the slot grid. */\n loading?: boolean;\n /** Renders the error message (with a Retry button when `onRetry` is given). */\n error?: boolean;\n onRetry?: () => void;\n\n /** Selected date, ISO \"yyyy-MM-dd\". Omit to let the component manage it. */\n selectedDate?: string;\n onDateSelect?: (date: string) => void;\n\n /** Selected time-of-day tab. Omit to let the component manage it. */\n selectedPeriod?: ConsultationSlotPeriod;\n onPeriodSelect?: (period: ConsultationSlotPeriod) => void;\n\n /**\n * `start` of the selected slot. Omit to let the component manage it\n * (defaults to the first slot of the visible period); pass `null` to show\n * nothing as selected.\n */\n selectedSlotStart?: string | null;\n onSlotSelect?: (slot: ConsultationSlot) => void;\n\n /** Hides the whole consultation-language row + its divider. */\n hideLanguageSelector?: boolean;\n languageOptions?: ConsultationLanguageOption[];\n /** Selected language code. Omit to let the component manage it. */\n selectedLanguage?: string;\n onLanguageSelect?: (code: string) => void;\n\n /** Shows the (placeholder) phone-number section above the slot picker. */\n showPhoneNumberSection?: boolean;\n /** Replaces the placeholder phone-number section with your own node. */\n phoneNumberSection?: React.ReactNode;\n\n /** Shows the (placeholder) astrology-profiles section above the slot picker. */\n showAstrologyProfilesSection?: boolean;\n /** Replaces the placeholder astrology-profiles section with your own node. */\n astrologyProfilesSection?: React.ReactNode;\n\n /** Heading above the date tabs. Wins over `t(\"planSelectSlotHeading\")`. */\n heading?: string;\n /** Label on the left of the language dropdown. Wins over `t(...)`. */\n languageLabel?: string;\n /** Replaces the \"Your Report will be ready in 24-48 hours\" banner; `null` hides it. */\n reportReadyNote?: React.ReactNode;\n\n /**\n * International build — labels the evening tab \"Evening/Night\", since slots\n * that late in IST land at night in most timezones global users book from.\n */\n isGlobal?: boolean;\n\n /** Translation lookup; every string falls back to the English default. */\n t?: (key: string, options?: any) => string | undefined;\n\n className?: string;\n}\n\nconst PERIOD_ICONS: Record<ConsultationSlotPeriod, React.FC> = {\n morning: MorningIcon,\n afternoon: AfternoonIcon,\n evening: EveningIcon,\n};\n\nconst PERIOD_LABEL_KEYS: Record<ConsultationSlotPeriod, string> = {\n morning: 'planPeriodMorning',\n afternoon: 'planPeriodAfternoon',\n evening: 'planPeriodEvening',\n};\n\nconst cx = (...classNames: (string | false | undefined)[]) =>\n classNames.filter(Boolean).join(' ');\n\nexport const ConsultationSlotSelector: React.FC<ConsultationSlotSelectorProps> = ({\n days,\n loading = false,\n error = false,\n onRetry,\n selectedDate,\n onDateSelect,\n selectedPeriod,\n onPeriodSelect,\n selectedSlotStart,\n onSlotSelect,\n hideLanguageSelector = false,\n languageOptions = CONSULTATION_LANGUAGE_OPTIONS,\n selectedLanguage,\n onLanguageSelect,\n showPhoneNumberSection = true,\n phoneNumberSection,\n showAstrologyProfilesSection = true,\n astrologyProfilesSection,\n heading,\n languageLabel,\n reportReadyNote,\n isGlobal = true,\n t,\n className = '',\n}) => {\n const availableDays = useMemo(\n () => days.filter((d) => d.has_availability && d.slots.length > 0),\n [days]\n );\n\n // ===== Date =====\n const [internalDate, setInternalDate] = useState('');\n const activeDate = useMemo(() => {\n const candidate = selectedDate ?? internalDate;\n return availableDays.some((d) => d.date === candidate)\n ? candidate\n : (availableDays[0]?.date ?? '');\n }, [selectedDate, internalDate, availableDays]);\n\n const activeDay = useMemo(\n () => availableDays.find((d) => d.date === activeDate) ?? null,\n [availableDays, activeDate]\n );\n\n // ===== Period =====\n const periodsForActiveDay = useMemo(() => {\n if (!activeDay) return [];\n const present = new Set(activeDay.slots.map((s) => s.period));\n return CONSULTATION_PERIOD_ORDER.filter((p) => present.has(p));\n }, [activeDay]);\n\n const [internalPeriod, setInternalPeriod] = useState<ConsultationSlotPeriod | ''>('');\n const activePeriod = useMemo<ConsultationSlotPeriod>(() => {\n const candidate = selectedPeriod ?? internalPeriod;\n return candidate && periodsForActiveDay.includes(candidate)\n ? candidate\n : (periodsForActiveDay[0] ?? 'morning');\n }, [selectedPeriod, internalPeriod, periodsForActiveDay]);\n\n // ===== Slot =====\n const slotsForActivePeriod = useMemo(\n () => (activeDay ? activeDay.slots.filter((s) => s.period === activePeriod) : []),\n [activeDay, activePeriod]\n );\n\n const [internalSlotStart, setInternalSlotStart] = useState('');\n const activeSlotStart = useMemo(() => {\n // `null` is an explicit \"nothing selected\" from the host — don't default.\n if (selectedSlotStart === null) return '';\n const candidate = selectedSlotStart ?? internalSlotStart;\n return slotsForActivePeriod.some((s) => s.start === candidate)\n ? candidate\n : (slotsForActivePeriod[0]?.start ?? '');\n }, [selectedSlotStart, internalSlotStart, slotsForActivePeriod]);\n\n // ===== Language =====\n const [internalLanguage, setInternalLanguage] = useState(\n () => languageOptions[0]?.code ?? 'en'\n );\n const activeLanguage = selectedLanguage ?? internalLanguage;\n const activeLanguageOption =\n languageOptions.find((option) => option.code === activeLanguage) ?? languageOptions[0];\n\n const [isLanguageMenuOpen, setIsLanguageMenuOpen] = useState(false);\n const languageMenuRef = useRef<HTMLDivElement | null>(null);\n\n // Close the language dropdown on outside click.\n useEffect(() => {\n if (!isLanguageMenuOpen) return;\n const handleClickOutside = (event: MouseEvent) => {\n if (languageMenuRef.current && !languageMenuRef.current.contains(event.target as Node)) {\n setIsLanguageMenuOpen(false);\n }\n };\n document.addEventListener('mousedown', handleClickOutside);\n return () => document.removeEventListener('mousedown', handleClickOutside);\n }, [isLanguageMenuOpen]);\n\n // ===== Sliding tab indicators =====\n // Both pills are measured from the actual DOM nodes so they line up exactly\n // regardless of label width/locale or how many tabs are shown, then animated\n // purely via CSS transform/width transitions for a smooth iOS-style switch.\n const dateTabsRef = useRef<HTMLDivElement | null>(null);\n const dateTabRefs = useRef<Partial<Record<string, HTMLButtonElement | null>>>({});\n const [dateIndicatorRect, setDateIndicatorRect] = useState<{\n left: number;\n top: number;\n width: number;\n height: number;\n } | null>(null);\n\n const periodTabsRef = useRef<HTMLDivElement | null>(null);\n const periodTabRefs = useRef<Partial<Record<ConsultationSlotPeriod, HTMLButtonElement | null>>>(\n {}\n );\n const [periodIndicatorRect, setPeriodIndicatorRect] = useState<{\n left: number;\n width: number;\n } | null>(null);\n\n useEffect(() => {\n const measure = () => {\n const container = dateTabsRef.current;\n const activeTab = dateTabRefs.current[activeDate];\n if (!container || !activeTab) {\n setDateIndicatorRect(null);\n return;\n }\n const containerRect = container.getBoundingClientRect();\n const tabRect = activeTab.getBoundingClientRect();\n setDateIndicatorRect({\n left: tabRect.left - containerRect.left,\n top: tabRect.top - containerRect.top,\n width: tabRect.width,\n height: tabRect.height,\n });\n };\n measure();\n window.addEventListener('resize', measure);\n return () => window.removeEventListener('resize', measure);\n }, [activeDate, availableDays, loading, error]);\n\n useEffect(() => {\n const measure = () => {\n const container = periodTabsRef.current;\n const activeTab = periodTabRefs.current[activePeriod];\n if (!container || !activeTab) {\n setPeriodIndicatorRect(null);\n return;\n }\n const containerRect = container.getBoundingClientRect();\n const tabRect = activeTab.getBoundingClientRect();\n setPeriodIndicatorRect({\n left: tabRect.left - containerRect.left,\n width: tabRect.width,\n });\n };\n measure();\n window.addEventListener('resize', measure);\n return () => window.removeEventListener('resize', measure);\n }, [activePeriod, periodsForActiveDay, loading, error]);\n\n // ===== Handlers =====\n const handleDateSelect = (date: string) => {\n setInternalDate(date);\n onDateSelect?.(date);\n };\n\n const handlePeriodSelect = (period: ConsultationSlotPeriod) => {\n setInternalPeriod(period);\n onPeriodSelect?.(period);\n };\n\n const handleSlotSelect = (slot: ConsultationSlot) => {\n setInternalSlotStart(slot.start);\n onSlotSelect?.(slot);\n };\n\n const handleLanguageSelect = (code: string) => {\n setInternalLanguage(code);\n setIsLanguageMenuOpen(false);\n onLanguageSelect?.(code);\n };\n\n return (\n <div className={cx(styles.root, className)}>\n {showPhoneNumberSection && (phoneNumberSection ?? <PhoneNumberSection t={t} />)}\n {showAstrologyProfilesSection &&\n (astrologyProfilesSection ?? <AstrologyProfilesSection t={t} />)}\n\n {/* Consultation language selector — a purely client-side switch over\n availability the host already fetched for every language. */}\n {!hideLanguageSelector && (\n <>\n <div className={styles.languageRow}>\n <span className={styles.languageLabel}>\n {languageLabel ??\n t?.('planConsultationLanguageLabel') ??\n 'Your consultation language'}\n </span>\n <div className={styles.languageDropdown} ref={languageMenuRef}>\n <button\n type=\"button\"\n className={styles.languageDropdownBtn}\n onClick={() => setIsLanguageMenuOpen((prev) => !prev)}\n aria-haspopup=\"listbox\"\n aria-expanded={isLanguageMenuOpen}\n >\n {(activeLanguageOption?.labelKey && t?.(activeLanguageOption.labelKey)) ??\n activeLanguageOption?.label}\n <ChevronDownIcon />\n </button>\n {isLanguageMenuOpen && (\n <ul className={styles.languageMenu} role=\"listbox\">\n {languageOptions.map((option) => {\n const isSelected = option.code === activeLanguage;\n return (\n <li\n key={option.code}\n role=\"option\"\n aria-selected={isSelected}\n className={cx(\n styles.languageMenuItem,\n isSelected && styles.languageMenuItemSelected\n )}\n onClick={() => handleLanguageSelect(option.code)}\n >\n {(option.labelKey && t?.(option.labelKey)) ?? option.label}\n {isSelected && <CheckIcon />}\n </li>\n );\n })}\n </ul>\n )}\n </div>\n </div>\n <hr className={styles.languageDivider} />\n </>\n )}\n\n {/* Date + time slot selection */}\n <p className={styles.sectionHeading}>\n {heading ?? t?.('planSelectSlotHeading') ?? 'Book your preferred consultation slot'}\n </p>\n\n {reportReadyNote === undefined ? (\n <p className={styles.reportReadyBanner}>\n {t?.('planReportReadyPrefix') ?? 'Your Report will be ready in'}{' '}\n <span className={styles.reportReadyDuration}>\n {t?.('planReportReadyDuration') ?? '24-48 hours'}\n </span>{' '}\n {t?.('planReportReadySuffix') ?? 'from today'}\n </p>\n ) : (\n reportReadyNote\n )}\n\n {loading && (\n <div className={styles.loadingWrap} aria-busy=\"true\" aria-live=\"polite\">\n <div className={styles.skeletonDateTabs}>\n {Array.from({ length: 5 }).map((_, idx) => (\n <div key={idx} className={cx(styles.skeletonDateTab, styles.skeletonShimmer)} />\n ))}\n </div>\n <div className={styles.skeletonPeriodTabs}>\n {Array.from({ length: 3 }).map((_, idx) => (\n <div key={idx} className={cx(styles.skeletonPeriodTab, styles.skeletonShimmer)} />\n ))}\n </div>\n <div className={styles.skeletonTimeGrid}>\n {Array.from({ length: 6 }).map((_, idx) => (\n <div key={idx} className={cx(styles.skeletonTimeSlot, styles.skeletonShimmer)} />\n ))}\n </div>\n </div>\n )}\n\n {!loading && error && (\n <div className={styles.stateMessage}>\n {t?.('planSlotsLoadError') ?? \"Couldn't load slots. Please try again.\"}\n {onRetry && (\n <button type=\"button\" className={styles.retryBtn} onClick={onRetry}>\n {t?.('planRetry') ?? 'Retry'}\n </button>\n )}\n </div>\n )}\n\n {!loading && !error && availableDays.length === 0 && (\n <div className={styles.emptyState}>\n <span className={styles.emptyStateIcon}>\n <CalendarOffIcon />\n </span>\n <p className={styles.emptyStateTitle}>\n {t?.('planNoSlotsAvailableTitle') ?? 'No slots available'}\n </p>\n <p className={styles.emptyStateSubtitle}>\n {t?.('planNoSlotsAvailableSubtitle') ??\n 'Try a different consultation language above, or check back soon.'}\n </p>\n </div>\n )}\n\n {!loading && !error && availableDays.length > 0 && (\n <>\n <div\n className={styles.dateTabs}\n ref={dateTabsRef}\n role=\"radiogroup\"\n aria-label=\"Consultation date\"\n >\n {dateIndicatorRect && (\n <span\n className={styles.dateTabIndicator}\n style={{\n transform: `translate(${dateIndicatorRect.left}px, ${dateIndicatorRect.top}px)`,\n width: dateIndicatorRect.width,\n height: dateIndicatorRect.height,\n }}\n aria-hidden=\"true\"\n />\n )}\n {availableDays.map((day) => {\n const isSelected = day.date === activeDate;\n const { dayLabel, dayNum } = formatSlotDayLabel(day.date);\n return (\n <Fragment key={day.date}>\n <button\n type=\"button\"\n ref={(el) => {\n dateTabRefs.current[day.date] = el;\n }}\n className={cx(styles.dateTab, isSelected && styles.dateTabSelected)}\n role=\"radio\"\n aria-checked={isSelected}\n onClick={() => handleDateSelect(day.date)}\n >\n <span className={styles.dateTabLabel}>{t?.(dayLabel) ?? dayLabel}</span>\n <span className={styles.dateTabNum}>{dayNum}</span>\n </button>\n <span className={styles.dateTabDivider} aria-hidden />\n </Fragment>\n );\n })}\n </div>\n\n <div\n className={styles.periodTabs}\n ref={periodTabsRef}\n role=\"tablist\"\n aria-label=\"Time of day\"\n >\n {periodIndicatorRect && (\n <span\n className={styles.periodTabIndicator}\n style={{\n transform: `translateX(${periodIndicatorRect.left}px)`,\n width: periodIndicatorRect.width,\n }}\n aria-hidden=\"true\"\n />\n )}\n {periodsForActiveDay.map((period) => {\n const Icon = PERIOD_ICONS[period];\n const isEveningNight = period === 'evening' && isGlobal;\n const labelKey = isEveningNight\n ? 'planPeriodEveningNight'\n : PERIOD_LABEL_KEYS[period];\n return (\n <button\n key={period}\n ref={(el) => {\n periodTabRefs.current[period] = el;\n }}\n type=\"button\"\n className={cx(\n styles.periodTab,\n period === activePeriod && styles.periodTabSelected\n )}\n role=\"tab\"\n aria-selected={period === activePeriod}\n onClick={() => handlePeriodSelect(period)}\n >\n <Icon />\n {t?.(labelKey) ??\n (isEveningNight\n ? 'Evening/Night'\n : period.charAt(0).toUpperCase() + period.slice(1))}\n </button>\n );\n })}\n </div>\n\n <div\n key={`${activeDate}-${activePeriod}`}\n className={styles.timeGrid}\n role=\"radiogroup\"\n aria-label=\"Consultation time\"\n >\n {slotsForActivePeriod.map((slot, idx) => (\n <button\n key={`${slot.start}-${idx}`}\n type=\"button\"\n className={cx(\n styles.timeSlot,\n activeSlotStart === slot.start && styles.timeSlotSelected,\n slot.disabled && styles.timeSlotDisabled\n )}\n role=\"radio\"\n aria-checked={activeSlotStart === slot.start}\n aria-disabled={slot.disabled || undefined}\n disabled={slot.disabled}\n onClick={() => !slot.disabled && handleSlotSelect(slot)}\n >\n {formatSlotTime(slot.start)}\n </button>\n ))}\n </div>\n </>\n )}\n </div>\n );\n};\n","/**\n * Dummy availability data for Storybook / local previews.\n *\n * Dates are generated relative to \"today\" so the date tabs always read\n * \"Today\", \"Tomorrow\", then weekday names — exactly like the real API\n * response would.\n */\nimport type { ConsultationSlot, ConsultationSlotDay, ConsultationSlotPeriod } from './types';\n\n/** \"+05:30\" — the mock data is IST, matching what the real API returns. */\nconst OFFSET = '+05:30';\n\nconst toIsoDate = (date: Date): string => {\n const month = String(date.getMonth() + 1).padStart(2, '0');\n const day = String(date.getDate()).padStart(2, '0');\n return `${date.getFullYear()}-${month}-${day}`;\n};\n\nconst makeSlot = (\n isoDate: string,\n hour: number,\n minute: number,\n period: ConsultationSlotPeriod\n): ConsultationSlot => {\n const pad = (n: number) => String(n).padStart(2, '0');\n const endMinute = minute + 30;\n const endHour = hour + Math.floor(endMinute / 60);\n return {\n start: `${isoDate}T${pad(hour)}:${pad(minute)}:00${OFFSET}`,\n end: `${isoDate}T${pad(endHour)}:${pad(endMinute % 60)}:00${OFFSET}`,\n period,\n };\n};\n\n/** Slot start times per period, as [hour, minute] pairs. */\nconst SLOT_TIMES: Record<ConsultationSlotPeriod, [number, number][]> = {\n morning: [\n [9, 0],\n [9, 30],\n [10, 0],\n [10, 30],\n [11, 0],\n [11, 30],\n ],\n afternoon: [\n [12, 30],\n [13, 0],\n [14, 0],\n [15, 30],\n [16, 0],\n ],\n evening: [\n [18, 0],\n [18, 30],\n [19, 0],\n [20, 0],\n ],\n};\n\nconst buildDay = (\n dayOffset: number,\n periods: ConsultationSlotPeriod[]\n): ConsultationSlotDay => {\n const date = new Date();\n date.setDate(date.getDate() + dayOffset);\n const isoDate = toIsoDate(date);\n const slots = periods.flatMap((period) =>\n SLOT_TIMES[period].map(([hour, minute]) => makeSlot(isoDate, hour, minute, period))\n );\n return { date: isoDate, has_availability: slots.length > 0, slots };\n};\n\n/** Five days of availability with a deliberately uneven period mix. */\nexport const MOCK_SLOT_DAYS: ConsultationSlotDay[] = [\n buildDay(0, ['morning', 'afternoon', 'evening']),\n buildDay(1, ['morning', 'afternoon']),\n buildDay(2, ['afternoon', 'evening']),\n buildDay(3, ['morning', 'evening']),\n buildDay(4, ['morning', 'afternoon', 'evening']),\n];\n\n/** Every day sold out — drives the \"No slots available\" empty state. */\nexport const MOCK_SLOT_DAYS_EMPTY: ConsultationSlotDay[] = MOCK_SLOT_DAYS.map((day) => ({\n ...day,\n has_availability: false,\n slots: [],\n}));\n","import React from 'react';\n\n/** Down chevron, used by the phone-input country-code dropdown trigger */\nexport const ChevronDownIcon: React.FC = () => (\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2.2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden\n >\n <path d=\"M6 9l6 6 6-6\" />\n </svg>\n);\n","/** Dial-code country list + flag helper for `PhoneNumberInput`. */\n\nexport interface Country {\n name: string;\n code: string;\n iso: string;\n}\n\nexport const DEFAULT_COUNTRIES: Country[] = [\n { name: 'United States', code: '+1', iso: 'US' },\n { name: 'United Kingdom', code: '+44', iso: 'GB' },\n { name: 'Australia', code: '+61', iso: 'AU' },\n { name: 'Canada', code: '+1', iso: 'CA' },\n { name: 'United Arab Emirates', code: '+971', iso: 'AE' },\n { name: 'Singapore', code: '+65', iso: 'SG' },\n { name: 'New Zealand', code: '+64', iso: 'NZ' },\n { name: 'Mauritius', code: '+230', iso: 'MU' },\n { name: 'Netherlands', code: '+31', iso: 'NL' },\n { name: 'Malaysia', code: '+60', iso: 'MY' },\n { name: 'Germany', code: '+49', iso: 'DE' },\n { name: 'South Africa', code: '+27', iso: 'ZA' },\n { name: 'Qatar', code: '+974', iso: 'QA' },\n { name: 'Ireland', code: '+353', iso: 'IE' },\n { name: 'Oman', code: '+968', iso: 'OM' },\n { name: 'Saudi Arabia', code: '+966', iso: 'SA' },\n { name: 'Hong Kong', code: '+852', iso: 'HK' },\n { name: 'France', code: '+33', iso: 'FR' },\n { name: 'Switzerland', code: '+41', iso: 'CH' },\n { name: 'Bahrain', code: '+973', iso: 'BH' },\n { name: 'Trinidad and Tobago', code: '+1-868', iso: 'TT' },\n { name: 'Kuwait', code: '+965', iso: 'KW' },\n { name: 'Belgium', code: '+32', iso: 'BE' },\n { name: 'Japan', code: '+81', iso: 'JP' },\n { name: 'Italy', code: '+39', iso: 'IT' },\n { name: 'Spain', code: '+34', iso: 'ES' },\n { name: 'Norway', code: '+47', iso: 'NO' },\n { name: 'Sweden', code: '+46', iso: 'SE' },\n { name: 'Portugal', code: '+351', iso: 'PT' },\n { name: 'Poland', code: '+48', iso: 'PL' },\n { name: 'Denmark', code: '+45', iso: 'DK' },\n { name: 'Nepal', code: '+977', iso: 'NP' },\n { name: 'Bangladesh', code: '+880', iso: 'BD' },\n { name: 'Kenya', code: '+254', iso: 'KE' },\n { name: 'Mexico', code: '+52', iso: 'MX' },\n { name: 'Czechia', code: '+420', iso: 'CZ' },\n { name: 'Indonesia', code: '+62', iso: 'ID' },\n { name: 'Taiwan', code: '+886', iso: 'TW' },\n { name: 'Fiji', code: '+679', iso: 'FJ' },\n { name: 'Guyana', code: '+592', iso: 'GY' },\n { name: 'Finland', code: '+358', iso: 'FI' },\n { name: 'Nigeria', code: '+234', iso: 'NG' },\n { name: 'Jamaica', code: '+1-876', iso: 'JM' },\n { name: 'Sri Lanka', code: '+94', iso: 'LK' },\n { name: 'Thailand', code: '+66', iso: 'TH' },\n { name: 'Hungary', code: '+36', iso: 'HU' },\n { name: 'Tanzania', code: '+255', iso: 'TZ' },\n { name: 'Sint Maarten', code: '+1-721', iso: 'SX' },\n { name: 'Philippines', code: '+63', iso: 'PH' },\n { name: 'Estonia', code: '+372', iso: 'EE' },\n { name: 'Ukraine', code: '+380', iso: 'UA' },\n { name: 'Austria', code: '+43', iso: 'AT' },\n { name: 'Réunion', code: '+262', iso: 'RE' },\n { name: 'India', code: '+91', iso: 'IN' },\n];\n\n/**\n * Renders a flag purely from the ISO alpha-2 code via Unicode regional\n * indicator symbols — no image assets/CDN needed. Pass `getFlagUrl` to\n * `PhoneNumberInput` instead if the host wants real flag images.\n */\nexport const getFlagEmoji = (iso: string | undefined): string => {\n if (!iso || iso.length !== 2) return '🏳️';\n const codePoints = iso\n .toUpperCase()\n .split('')\n .map((char) => 127397 + char.charCodeAt(0));\n return String.fromCodePoint(...codePoints);\n};\n","/** Phone validation patterns by dial code, used by `PhoneNumberInput`. */\nconst PHONE_PATTERNS: Record<\n string,\n { pattern: RegExp; minLength: number; maxLength: number; description: string }\n> = {\n '+1': {\n pattern: /^[2-9]\\d{9}$/,\n minLength: 10,\n maxLength: 10,\n description: '10 digits, cannot start with 0 or 1',\n },\n '+44': {\n pattern: /^\\d{10}$/,\n minLength: 10,\n maxLength: 10,\n description: '10 digits',\n },\n '+61': {\n pattern: /^\\d{9}$/,\n minLength: 9,\n maxLength: 9,\n description: '9 digits',\n },\n '+971': {\n pattern: /^\\d{8,9}$/,\n minLength: 8,\n maxLength: 9,\n description: '8-9 digits',\n },\n '+65': {\n pattern: /^\\d{8}$/,\n minLength: 8,\n maxLength: 8,\n description: '8 digits',\n },\n '+49': {\n pattern: /^\\d{10,11}$/,\n minLength: 10,\n maxLength: 11,\n description: '10-11 digits',\n },\n '+91': {\n pattern: /^[6-9]\\d{9}$/,\n minLength: 10,\n maxLength: 10,\n description: '10 digits, must start with 6-9',\n },\n '+974': {\n pattern: /^\\d{8}$/,\n minLength: 8,\n maxLength: 8,\n description: '8 digits',\n },\n '+60': {\n pattern: /^\\d{9,10}$/,\n minLength: 9,\n maxLength: 10,\n description: '9-10 digits',\n },\n '+27': {\n pattern: /^\\d{9}$/,\n minLength: 9,\n maxLength: 9,\n description: '9 digits',\n },\n '+64': {\n pattern: /^\\d{8,10}$/,\n minLength: 8,\n maxLength: 10,\n description: '8-10 digits',\n },\n '+230': {\n pattern: /^\\d{7,8}$/,\n minLength: 7,\n maxLength: 8,\n description: '7-8 digits',\n },\n};\n\nconst DEFAULT_PATTERN = {\n pattern: /^\\d{6,15}$/,\n minLength: 6,\n maxLength: 15,\n description: '6-15 digits',\n};\n\n/** Phone number is treated as optional — an empty string is always valid. */\nexport const validatePhoneByCountryCode = (\n phoneNumber: string,\n countryCode: string\n): { isValid: boolean; error: string } => {\n if (!phoneNumber) {\n return { isValid: true, error: '' };\n }\n\n const validation = PHONE_PATTERNS[countryCode] || DEFAULT_PATTERN;\n const isValid = validation.pattern.test(phoneNumber);\n\n if (!isValid) {\n return {\n isValid: false,\n error: `Please enter a valid phone number (${validation.description})`,\n };\n }\n\n return { isValid: true, error: '' };\n};\n\nexport const getMaxLengthForCountry = (countryCode: string): number => {\n const validation = PHONE_PATTERNS[countryCode] || DEFAULT_PATTERN;\n return validation.maxLength;\n};\n","import { useCallback, useState } from 'react';\nimport type { Country } from './countries';\nimport { validatePhoneByCountryCode, getMaxLengthForCountry } from '../../utils/phoneValidation';\n\ninterface UsePhoneNumberInputOptions {\n countryCode: string;\n contactNumber: string;\n countries: Country[];\n onCountryCodeChange: (code: string, countryName: string) => void;\n onPhoneNumberChange: (value: string) => void;\n onValidationChange?: (isValid: boolean, error: string) => void;\n onDropdownFocus?: (countryCode: string) => void;\n onInputFocus?: (countryCode: string) => void;\n}\n\nexport const usePhoneNumberInput = ({\n countryCode,\n contactNumber,\n countries,\n onCountryCodeChange,\n onPhoneNumberChange,\n onValidationChange,\n onDropdownFocus,\n onInputFocus,\n}: UsePhoneNumberInputOptions) => {\n const [isDropdownOpen, setIsDropdownOpen] = useState(false);\n\n const selectedCountry = countries.find((c) => c.code === countryCode) ?? countries[0];\n const maxLength = getMaxLengthForCountry(countryCode);\n\n const handleCountrySelect = useCallback(\n (country: Country) => {\n onCountryCodeChange(country.code, country.name);\n setIsDropdownOpen(false);\n\n if (contactNumber && onValidationChange) {\n const { isValid, error } = validatePhoneByCountryCode(contactNumber, country.code);\n onValidationChange(isValid, error);\n }\n },\n [contactNumber, onCountryCodeChange, onValidationChange]\n );\n\n const handlePhoneChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n const value = e.target.value.replace(/[^\\d]/g, '');\n const trimmedValue = value.slice(0, getMaxLengthForCountry(countryCode));\n onPhoneNumberChange(trimmedValue);\n\n if (onValidationChange) {\n const { isValid, error } = validatePhoneByCountryCode(trimmedValue, countryCode);\n onValidationChange(isValid, error);\n }\n },\n [countryCode, onPhoneNumberChange, onValidationChange]\n );\n\n const handleDropdownToggle = useCallback(() => {\n setIsDropdownOpen((prev) => {\n if (!prev) onDropdownFocus?.(countryCode);\n return !prev;\n });\n }, [countryCode, onDropdownFocus]);\n\n const handlePhoneFocus = useCallback(() => {\n setIsDropdownOpen(false);\n onInputFocus?.(countryCode);\n }, [countryCode, onInputFocus]);\n\n return {\n isDropdownOpen,\n selectedCountry,\n maxLength,\n handleCountrySelect,\n handlePhoneChange,\n handleDropdownToggle,\n handlePhoneFocus,\n closeDropdown: () => setIsDropdownOpen(false),\n };\n};\n","/**\n * PhoneNumberInput — country-code + number entry, extracted from the\n * hanuman app's `PhoneInput` (src/components/inputs/phone-input) so\n * consultation-booking hosts get a real, validated implementation instead\n * of the `PhoneNumberSection` placeholder. Renders flags as Unicode emoji\n * by default (no image assets/CDN needed) — pass `getFlagUrl` for real\n * flag images instead.\n *\n * Controlled-optional: pass `countryCode`/`contactNumber` + their `on*Change`\n * pairs to drive it from the host, or omit them and it manages its own state.\n */\nimport React, { useEffect, useRef, useState } from 'react';\nimport { ChevronDownIcon } from './icons';\nimport { DEFAULT_COUNTRIES, getFlagEmoji, type Country } from './countries';\nimport { usePhoneNumberInput } from './usePhoneNumberInput';\nimport { validatePhoneByCountryCode, getMaxLengthForCountry } from '../../utils/phoneValidation';\nimport styles from './PhoneNumberInput.module.scss';\n\nexport { validatePhoneByCountryCode, getMaxLengthForCountry };\n\nconst cx = (...classNames: (string | false | undefined)[]) =>\n classNames.filter(Boolean).join(' ');\n\nexport interface PhoneNumberInputProps {\n /** Dial code, e.g. \"+91\". Omit to let the component manage it. */\n countryCode?: string;\n /** The number itself, digits only. Omit to let the component manage it. */\n contactNumber?: string;\n error?: string;\n label?: React.ReactNode;\n helperText?: React.ReactNode;\n /** Defaults to `DEFAULT_COUNTRIES`. */\n countries?: Country[];\n /** Returns a flag image URL for an ISO code; falls back to an emoji flag when omitted/null. */\n getFlagUrl?: (iso: string) => string | null | undefined;\n onCountryCodeChange?: (code: string, countryName: string) => void;\n onPhoneNumberChange?: (value: string) => void;\n onValidationChange?: (isValid: boolean, error: string) => void;\n onDropdownFocus?: (countryCode: string) => void;\n onInputFocus?: (countryCode: string) => void;\n inputRef?: (ele: HTMLInputElement | null) => void;\n /** Translation lookup; every string falls back to the English default. */\n t?: (key: string, options?: any) => string | undefined;\n className?: string;\n}\n\nexport const PhoneNumberInput: React.FC<PhoneNumberInputProps> = ({\n countryCode,\n contactNumber,\n error,\n label,\n helperText,\n countries = DEFAULT_COUNTRIES,\n getFlagUrl,\n onCountryCodeChange,\n onPhoneNumberChange,\n onValidationChange,\n onDropdownFocus,\n onInputFocus,\n inputRef,\n t,\n className = '',\n}) => {\n const [internalCountryCode, setInternalCountryCode] = useState(countries[0]?.code ?? '+91');\n const [internalNumber, setInternalNumber] = useState('');\n const activeCountryCode = countryCode ?? internalCountryCode;\n const activeNumber = contactNumber ?? internalNumber;\n\n const dropdownRef = useRef<HTMLDivElement>(null);\n\n const {\n isDropdownOpen,\n selectedCountry,\n maxLength,\n handleCountrySelect,\n handlePhoneChange,\n handleDropdownToggle,\n handlePhoneFocus,\n closeDropdown,\n } = usePhoneNumberInput({\n countryCode: activeCountryCode,\n contactNumber: activeNumber,\n countries,\n onCountryCodeChange: (code, name) => {\n setInternalCountryCode(code);\n onCountryCodeChange?.(code, name);\n },\n onPhoneNumberChange: (value) => {\n setInternalNumber(value);\n onPhoneNumberChange?.(value);\n },\n onValidationChange,\n onDropdownFocus,\n onInputFocus,\n });\n\n useEffect(() => {\n const handleClickOutside = (event: MouseEvent) => {\n if (dropdownRef.current && !dropdownRef.current.contains(event.target as Node)) {\n closeDropdown();\n }\n };\n if (isDropdownOpen) {\n document.addEventListener('mousedown', handleClickOutside);\n }\n return () => document.removeEventListener('mousedown', handleClickOutside);\n }, [isDropdownOpen, closeDropdown]);\n\n const renderFlag = (iso: string | undefined, alt: string) => {\n const flagUrl = iso ? getFlagUrl?.(iso) : null;\n if (flagUrl) {\n return <img src={flagUrl} alt={alt} width={20} height={14} className={styles.flagImg} />;\n }\n return (\n <span className={styles.flagEmoji} aria-hidden>\n {getFlagEmoji(iso)}\n </span>\n );\n };\n\n return (\n <div className={cx(styles.root, className)}>\n {label && <div className={styles.label}>{label}</div>}\n\n <div className={styles.row}>\n <div className={styles.dropdownWrap} ref={dropdownRef}>\n <button type=\"button\" className={styles.dropdownBtn} onClick={handleDropdownToggle}>\n {renderFlag(selectedCountry?.iso, selectedCountry?.name ?? 'Flag')}\n <span>{selectedCountry?.code ?? '+91'}</span>\n <ChevronDownIcon />\n </button>\n\n {isDropdownOpen && (\n <div className={styles.dropdownMenu} role=\"listbox\">\n {countries.map((country) => (\n <button\n key={`${country.code}-${country.iso}`}\n type=\"button\"\n role=\"option\"\n aria-selected={country.code === selectedCountry?.code}\n className={styles.dropdownItem}\n onClick={() => handleCountrySelect(country)}\n >\n {renderFlag(country.iso, country.name)}\n <span className={styles.dropdownItemCode}>{country.code}</span>\n <span className={styles.dropdownItemName}>{country.name}</span>\n </button>\n ))}\n </div>\n )}\n </div>\n\n <input\n type=\"tel\"\n inputMode=\"numeric\"\n autoComplete=\"off\"\n value={activeNumber}\n maxLength={maxLength}\n ref={inputRef}\n className={cx(styles.input, error && styles.inputError)}\n placeholder={t?.('planPhoneNumberPlaceholder') ?? '0000000000'}\n onChange={handlePhoneChange}\n onFocus={handlePhoneFocus}\n />\n </div>\n\n {helperText && <div className={styles.helper}>{helperText}</div>}\n {error && <p className={styles.error}>{error}</p>}\n </div>\n );\n};\n","import React from 'react';\n\n/** Star rating icon shown on `AstrologerPhoto`'s rating pill */\nexport const StarIcon: React.FC = () => (\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden>\n <path\n d=\"M8 1.33337L10.06 5.50671L14.6667 6.18004L11.3333 9.42671L12.12 14.0134L8 11.8467L3.88 14.0134L4.66667 9.42671L1.33333 6.18004L5.94 5.50671L8 1.33337Z\"\n fill=\"#F59E0B\"\n stroke=\"#F59E0B\"\n strokeWidth=\"1.2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n);\n\n/** Filled check-circle shown on a selected `AstrologerCard` */\nexport const CheckCircleIcon: React.FC = () => (\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" aria-hidden>\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z\"\n fill=\"#F97316\"\n />\n </svg>\n);\n","import React from 'react';\nimport { StarIcon } from './icons';\nimport styles from './AstrologerCard.module.scss';\n\n/** Neutral, dependency-free placeholder avatar (gray circle + person glyph). */\nconst DEFAULT_FALLBACK_PHOTO =\n \"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='78' viewBox='0 0 64 78'><rect width='64' height='78' fill='%23F3F4F6'/><circle cx='32' cy='30' r='12' fill='%23D1D5DB'/><path d='M12 70c2-14 12-22 20-22s18 8 20 22' fill='%23D1D5DB'/></svg>\";\n\nexport interface AstrologerPhotoProps {\n photoUrl: string;\n name: string;\n rating: number;\n /** Shown when `photoUrl` is empty or fails to load. Defaults to a neutral avatar glyph. */\n fallbackPhotoUrl?: string;\n}\n\nexport const AstrologerPhoto: React.FC<AstrologerPhotoProps> = ({\n photoUrl,\n name,\n rating,\n fallbackPhotoUrl = DEFAULT_FALLBACK_PHOTO,\n}) => (\n <div className={styles.photoWrap}>\n <div className={styles.photoFrame}>\n <img\n src={photoUrl || fallbackPhotoUrl}\n alt={name}\n width={64}\n height={78}\n className={styles.photoImg}\n onError={(event) => {\n (event.target as HTMLImageElement).src = fallbackPhotoUrl;\n }}\n />\n </div>\n <div className={styles.ratingPill}>\n <span className={styles.ratingValue}>{rating}</span>\n <StarIcon />\n </div>\n </div>\n);\n","import React from 'react';\nimport styles from './AstrologerCard.module.scss';\n\nexport interface RecommendedBadgeProps {\n /** Wins over `t(\"planRecommendedAstrologer\")`. */\n label?: string;\n t?: (key: string, options?: any) => string | undefined;\n}\n\nexport const RecommendedBadge: React.FC<RecommendedBadgeProps> = ({ label, t }) => (\n <div className={styles.recommendedBadge}>\n <span className={styles.recommendedLabel}>\n {label ?? t?.('planRecommendedAstrologer') ?? 'Recommended'}\n </span>\n </div>\n);\n","import React from 'react';\nimport type { AstrologerListItem } from './types';\nimport { AstrologerPhoto } from './AstrologerPhoto';\nimport { RecommendedBadge } from './RecommendedBadge';\nimport { CheckCircleIcon } from './icons';\nimport styles from './AstrologerCard.module.scss';\n\nconst cx = (...classNames: (string | false | undefined)[]) =>\n classNames.filter(Boolean).join(' ');\n\n/** e.g. 1200 → \"1.2K consultations\" */\nconst defaultFormatConsultationCount = (count: number): string => {\n if (count >= 1000) {\n const k = count / 1000;\n return `${Number.isInteger(k) ? k : k.toFixed(1)}K consultations`;\n }\n return `${count} consultations`;\n};\n\nexport interface AstrologerCardProps {\n astrologer: AstrologerListItem;\n isSelected?: boolean;\n onClick?: (astrologer: AstrologerListItem) => void;\n /** Passed through to `AstrologerPhoto`. */\n fallbackPhotoUrl?: string;\n formatConsultationCount?: (count: number) => string;\n}\n\nexport const AstrologerCard: React.FC<AstrologerCardProps> = ({\n astrologer,\n isSelected = false,\n onClick,\n fallbackPhotoUrl,\n formatConsultationCount = defaultFormatConsultationCount,\n}) => (\n <button\n type=\"button\"\n onClick={() => onClick?.(astrologer)}\n className={cx(styles.card, isSelected && styles.cardSelected)}\n >\n <AstrologerPhoto\n photoUrl={astrologer.photo_url}\n name={astrologer.name}\n rating={astrologer.rating}\n fallbackPhotoUrl={fallbackPhotoUrl}\n />\n\n <div className={styles.info}>\n <span className={styles.name}>{astrologer.name}</span>\n <div className={styles.meta}>\n <span className={styles.languages}>{astrologer.languages.join(', ')}</span>\n <span className={styles.consultationCount}>\n {formatConsultationCount(astrologer.consultation_count)}\n </span>\n </div>\n </div>\n\n {isSelected && (\n <div className={styles.checkIcon}>\n <CheckCircleIcon />\n </div>\n )}\n\n {astrologer.is_recommended && <RecommendedBadge />}\n </button>\n);\n","/**\n * AstrologerList — horizontally scrollable astrologer picker, extracted from\n * the hanuman app's astro-consultation slot-selection sheet\n * (src/features/epuja/order-details/components/astro-consultation/slot-selection-sheet)\n * so consultation-booking hosts get a real astrologer picker instead of the\n * generic `AstrologyProfilesSection` placeholder.\n *\n * Controlled-optional: pass `selectedAstrologerId` + `onAstrologerSelect` to\n * drive it from the host, or omit them and it manages its own state.\n */\nimport React, { useState } from 'react';\nimport type { AstrologerListItem } from './types';\nimport { AstrologerCard } from './AstrologerCard';\nimport styles from './AstrologerList.module.scss';\n\nconst cx = (...classNames: (string | false | undefined)[]) =>\n classNames.filter(Boolean).join(' ');\n\nexport interface AstrologerListProps {\n astrologers: AstrologerListItem[];\n /** Renders shimmer skeleton cards instead of the astrologer list. */\n loading?: boolean;\n /** Selected astrologer id. Omit to let the component manage it. */\n selectedAstrologerId?: string;\n onAstrologerSelect?: (astrologer: AstrologerListItem) => void;\n /** Section title. Wins over `t(\"planSelectAstrologerHeading\")`. */\n title?: string;\n fallbackPhotoUrl?: string;\n formatConsultationCount?: (count: number) => string;\n /** Translation lookup; every string falls back to the English default. */\n t?: (key: string, options?: any) => string | undefined;\n className?: string;\n}\n\nexport const AstrologerList: React.FC<AstrologerListProps> = ({\n astrologers,\n loading = false,\n selectedAstrologerId,\n onAstrologerSelect,\n title,\n fallbackPhotoUrl,\n formatConsultationCount,\n t,\n className = '',\n}) => {\n const [internalSelectedId, setInternalSelectedId] = useState('');\n const activeId = selectedAstrologerId ?? internalSelectedId;\n\n const handleSelect = (astrologer: AstrologerListItem) => {\n setInternalSelectedId(astrologer.astrologer_id);\n onAstrologerSelect?.(astrologer);\n };\n\n return (\n <section className={cx(styles.section, className)}>\n <p className={styles.title}>\n {title ?? t?.('planSelectAstrologerHeading') ?? 'Select an astrologer'}\n </p>\n\n <div className={styles.row} role=\"radiogroup\" aria-label=\"Astrologer\">\n {loading\n ? Array.from({ length: 2 }).map((_, idx) => (\n <div key={idx} className={cx(styles.skeletonCard, styles.skeletonShimmer)} />\n ))\n : astrologers.map((astrologer) => (\n <AstrologerCard\n key={astrologer.astrologer_id}\n astrologer={astrologer}\n isSelected={astrologer.astrologer_id === activeId}\n onClick={handleSelect}\n fallbackPhotoUrl={fallbackPhotoUrl}\n formatConsultationCount={formatConsultationCount}\n />\n ))}\n </div>\n </section>\n );\n};\n","/** Dummy astrologer data for Storybook / local previews. */\nimport type { AstrologerListItem } from './types';\n\nexport const MOCK_ASTROLOGERS: AstrologerListItem[] = [\n {\n astrologer_id: 'astro-1',\n name: 'Pandit Ramesh Sharma',\n photo_url: '',\n languages: ['Hindi', 'English'],\n rating: 4.8,\n consultation_count: 12500,\n is_recommended: true,\n },\n {\n astrologer_id: 'astro-2',\n name: 'Dr. Anjali Mehta',\n photo_url: '',\n languages: ['English', 'Gujarati'],\n rating: 4.6,\n consultation_count: 870,\n },\n {\n astrologer_id: 'astro-3',\n name: 'Acharya Vivek Joshi',\n photo_url: '',\n languages: ['Hindi', 'Marathi', 'English'],\n rating: 4.9,\n consultation_count: 3400,\n },\n];\n"],"names":["DEFAULT_INITIAL_VISIBLE","MAX_TESTIMONIALS","buildTestimonialsFromTranslations","itemsByIndex","i","quoteKey","quote","authorKey","authorName","v","avatarKey","avatar","maleIndices","femaleIndices","mixed","m","f","idx","item","UserReviewsSection","testimonialsProp","initialVisible","readMoreHref","onReadMore","className","headingClassName","testimonials","useMemo","expanded","setExpanded","useState","hasMore","visibleTestimonials","title","ratingLabel","trustText","readMoreLabel","readLessLabel","jsxs","styles","jsx","index","e","FAQAccordion","items","resolveAnswerKey","defaultOpenIndex","onItemOpen","resolvedItems","qKey","aKey","openIndex","setOpenIndex","isOpen","nextOpen","DEFAULT_LOGO_WIDTH","DEFAULT_LOGO_HEIGHT","PageHeader","logoUrl","ImageComponent","languageSelector","showLanguageSelector","showSlot","brandName","ratingText","FormContainer","children","ariaLabel","BackIcon","FormSectionHeader","subtitle","onBack","backAriaLabel","DEFAULT_SHIELD_ICON","PrivacyBanner","text","iconUrl","DEFAULT_INFO_ICON","FormField","label","id","required","help","infoTooltip","infoAriaLabel","infoIconUrl","infoOpen","setInfoOpen","useEffect","onDoc","onKey","FormTextInput","iconAlt","iconInteractive","onIconClick","rest","ICON_DATE","FormDateInput","value","onChange","inputRef","useRef","maxDate","d","pad","n","handleIconClick","el","ICON_TIME","FormTimeInput","placeholder","disabled","ICON_LOCATION","FormLocationInput","FormSegmentedControl","options","opt","FormTagPills","selected","toggle","key","k","FormCheckboxWithHelp","checked","primaryText","helpText","FormFooterNote","FooterShell","marquee","FooterCTAButton","href","onClick","staticOnly","buttonClass","staticClass","ariaProps","CircularMarquee","MarqueeStrip","ContactUsSection","whatsAppLine","emailLine","formatSlotTime","isoDateTime","match","hour24","minute","period","formatSlotDayLabel","isoDate","referenceDate","dayNames","date","startOfDay","diffDays","dayLabel","CONSULTATION_PERIOD_ORDER","CONSULTATION_LANGUAGE_OPTIONS","CheckIcon","ChevronDownIcon","MorningIcon","AfternoonIcon","EveningIcon","CalendarOffIcon","PhoneNumberSection","countryCode","phoneNumber","helperText","onEdit","t","PLACEHOLDER_PROFILES","AstrologyProfilesSection","profiles","selectedProfileId","onProfileSelect","onAddProfile","internalSelectedId","setInternalSelectedId","activeId","handleSelect","profileId","profile","isSelected","PERIOD_ICONS","PERIOD_LABEL_KEYS","cx","classNames","ConsultationSlotSelector","days","loading","error","onRetry","selectedDate","onDateSelect","selectedPeriod","onPeriodSelect","selectedSlotStart","onSlotSelect","hideLanguageSelector","languageOptions","selectedLanguage","onLanguageSelect","showPhoneNumberSection","phoneNumberSection","showAstrologyProfilesSection","astrologyProfilesSection","heading","languageLabel","reportReadyNote","isGlobal","availableDays","internalDate","setInternalDate","activeDate","candidate","activeDay","periodsForActiveDay","present","s","p","internalPeriod","setInternalPeriod","activePeriod","slotsForActivePeriod","internalSlotStart","setInternalSlotStart","activeSlotStart","internalLanguage","setInternalLanguage","activeLanguage","activeLanguageOption","option","isLanguageMenuOpen","setIsLanguageMenuOpen","languageMenuRef","handleClickOutside","event","dateTabsRef","dateTabRefs","dateIndicatorRect","setDateIndicatorRect","periodTabsRef","periodTabRefs","periodIndicatorRect","setPeriodIndicatorRect","measure","container","activeTab","containerRect","tabRect","handleDateSelect","handlePeriodSelect","handleSlotSelect","slot","handleLanguageSelect","code","Fragment","prev","_","day","dayNum","Icon","isEveningNight","labelKey","OFFSET","toIsoDate","month","makeSlot","hour","endMinute","endHour","SLOT_TIMES","buildDay","dayOffset","periods","slots","MOCK_SLOT_DAYS","MOCK_SLOT_DAYS_EMPTY","DEFAULT_COUNTRIES","getFlagEmoji","iso","codePoints","char","PHONE_PATTERNS","DEFAULT_PATTERN","validatePhoneByCountryCode","validation","getMaxLengthForCountry","usePhoneNumberInput","contactNumber","countries","onCountryCodeChange","onPhoneNumberChange","onValidationChange","onDropdownFocus","onInputFocus","isDropdownOpen","setIsDropdownOpen","selectedCountry","c","maxLength","handleCountrySelect","useCallback","country","isValid","handlePhoneChange","trimmedValue","handleDropdownToggle","handlePhoneFocus","PhoneNumberInput","getFlagUrl","internalCountryCode","setInternalCountryCode","internalNumber","setInternalNumber","activeCountryCode","activeNumber","dropdownRef","closeDropdown","name","renderFlag","alt","flagUrl","StarIcon","CheckCircleIcon","DEFAULT_FALLBACK_PHOTO","AstrologerPhoto","photoUrl","rating","fallbackPhotoUrl","RecommendedBadge","defaultFormatConsultationCount","count","AstrologerCard","astrologer","formatConsultationCount","AstrologerList","astrologers","selectedAstrologerId","onAstrologerSelect","MOCK_ASTROLOGERS"],"mappings":"k2BAGMA,GAA0B,EAC1BC,GAAmB,GASzB,SAASC,GACP,EACe,CACf,MAAMC,MAAmB,IAEzB,QAASC,EAAI,EAAGA,GAAKH,GAAkBG,GAAK,EAAG,CAC7C,MAAMC,EAAW,sBAAsBD,CAAC,GAClCE,EAAQ,EAAED,CAAQ,EACxB,GAAI,CAACC,GAASA,IAAUD,EAAU,SAElC,MAAME,EAAY,iBAAiBH,CAAC,GAC9BI,GAAc,IAAM,CACxB,MAAMC,EAAI,EAAEF,CAAS,EACrB,OAAOE,GAAKA,IAAMF,EAAYE,EAAI,EAAE,OAAO,CAC7C,GAAA,EAEMC,EAAY,iBAAiBN,CAAC,YAC9B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