@srimandir/astrology-common 7.1.0 → 7.1.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 (41) hide show
  1. package/dist/astrology-common.css +1 -1
  2. package/dist/components/CircularMarquee/CircularMarquee.d.ts +1 -1
  3. package/dist/components/Consultations/AstrologerCard.d.ts +11 -0
  4. package/dist/components/Consultations/AstrologerList.d.ts +18 -0
  5. package/dist/components/Consultations/AstrologerPhoto.d.ts +9 -0
  6. package/dist/components/Consultations/RecommendedBadge.d.ts +7 -0
  7. package/dist/components/Consultations/icons.d.ts +5 -0
  8. package/dist/components/Consultations/index.d.ts +6 -0
  9. package/dist/components/Consultations/mockAstrologers.d.ts +2 -0
  10. package/dist/components/Consultations/types.d.ts +10 -0
  11. package/dist/components/ContactUsSection/ContactUsSection.d.ts +1 -1
  12. package/dist/components/FAQAccordion/FAQAccordion.d.ts +1 -1
  13. package/dist/components/FooterShell/FooterCTAButton.d.ts +1 -1
  14. package/dist/components/FooterShell/FooterShell.d.ts +1 -1
  15. package/dist/components/FormCheckboxWithHelp/FormCheckboxWithHelp.d.ts +1 -1
  16. package/dist/components/FormContainer/FormContainer.d.ts +1 -1
  17. package/dist/components/FormDateInput/FormDateInput.d.ts +1 -1
  18. package/dist/components/FormField/FormField.d.ts +1 -1
  19. package/dist/components/FormFooterNote/FormFooterNote.d.ts +1 -1
  20. package/dist/components/FormLocationInput/FormLocationInput.d.ts +1 -1
  21. package/dist/components/FormSectionHeader/FormSectionHeader.d.ts +1 -1
  22. package/dist/components/FormSegmentedControl/FormSegmentedControl.d.ts +1 -1
  23. package/dist/components/FormTagPills/FormTagPills.d.ts +1 -1
  24. package/dist/components/FormTextInput/FormTextInput.d.ts +1 -1
  25. package/dist/components/FormTimeInput/FormTimeInput.d.ts +1 -1
  26. package/dist/components/MarqueeStrip/MarqueeStrip.d.ts +1 -1
  27. package/dist/components/PageHeader/PageHeader.d.ts +1 -1
  28. package/dist/components/PhoneNumberInput/PhoneNumberInput.d.ts +27 -0
  29. package/dist/components/PhoneNumberInput/countries.d.ts +13 -0
  30. package/dist/components/PhoneNumberInput/icons.d.ts +3 -0
  31. package/dist/components/PhoneNumberInput/index.d.ts +3 -0
  32. package/dist/components/PhoneNumberInput/usePhoneNumberInput.d.ts +22 -0
  33. package/dist/components/PrivacyBanner/PrivacyBanner.d.ts +1 -1
  34. package/dist/components/UserReviewsSection/UserReviewsSection.d.ts +1 -1
  35. package/dist/index.cjs +8 -8
  36. package/dist/index.cjs.map +1 -1
  37. package/dist/index.d.ts +4 -0
  38. package/dist/index.js +1754 -1277
  39. package/dist/index.js.map +1 -1
  40. package/dist/utils/phoneValidation.d.ts +6 -0
  41. package/package.json +2 -2
package/dist/index.cjs CHANGED
@@ -1,15 +1,15 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./styles.js");const j=require("react");var Me={exports:{}},Se={};var ut;function Ht(){if(ut)return Se;ut=1;var a=j,r=Symbol.for("react.element"),s=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,l=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function _(d,f,g){var v,h={},w=null,k=null;g!==void 0&&(w=""+g),f.key!==void 0&&(w=""+f.key),f.ref!==void 0&&(k=f.ref);for(v in f)c.call(f,v)&&!u.hasOwnProperty(v)&&(h[v]=f[v]);if(d&&d.defaultProps)for(v in f=d.defaultProps,f)h[v]===void 0&&(h[v]=f[v]);return{$$typeof:r,type:d,key:w,ref:k,props:h,_owner:l.current}}return Se.Fragment=s,Se.jsx=_,Se.jsxs=_,Se}var Te={};var _t;function Kt(){return _t||(_t=1,process.env.NODE_ENV!=="production"&&(function(){var a=j,r=Symbol.for("react.element"),s=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),E=Symbol.iterator,Z="@@iterator";function ge(e){if(e===null||typeof e!="object")return null;var n=E&&e[E]||e[Z];return typeof n=="function"?n:null}var O=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function $(e){{for(var n=arguments.length,i=new Array(n>1?n-1:0),m=1;m<n;m++)i[m-1]=arguments[m];qe("error",e,i)}}function qe(e,n,i){{var m=O.ReactDebugCurrentFrame,N=m.getStackAddendum();N!==""&&(n+="%s",i=i.concat([N]));var S=i.map(function(y){return String(y)});S.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,S)}}var Ie=!1,We=!1,C=!1,Ye=!1,q=!1,be;be=Symbol.for("react.module.reference");function Ue(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===u||q||e===l||e===g||e===v||Ye||e===k||Ie||We||C||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===h||e.$$typeof===_||e.$$typeof===d||e.$$typeof===f||e.$$typeof===be||e.getModuleId!==void 0))}function J(e,n,i){var m=e.displayName;if(m)return m;var N=n.displayName||n.name||"";return N!==""?i+"("+N+")":i}function V(e){return e.displayName||"Context"}function L(e){if(e==null)return null;if(typeof e.tag=="number"&&$("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case s:return"Portal";case u:return"Profiler";case l:return"StrictMode";case g:return"Suspense";case v:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case d:var n=e;return V(n)+".Consumer";case _:var i=e;return V(i._context)+".Provider";case f:return J(e,e.render,"ForwardRef");case h:var m=e.displayName||null;return m!==null?m:L(e.type)||"Memo";case w:{var N=e,S=N._payload,y=N._init;try{return L(y(S))}catch{return null}}}return null}var U=Object.assign,ee=0,H,te,ve,$e,xe,Ee,Ce;function ye(){}ye.__reactDisabledLog=!0;function je(){{if(ee===0){H=console.log,te=console.info,ve=console.warn,$e=console.error,xe=console.group,Ee=console.groupCollapsed,Ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ye,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ee++}}function de(){{if(ee--,ee===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U({},e,{value:H}),info:U({},e,{value:te}),warn:U({},e,{value:ve}),error:U({},e,{value:$e}),group:U({},e,{value:xe}),groupCollapsed:U({},e,{value:Ee}),groupEnd:U({},e,{value:Ce})})}ee<0&&$("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ne=O.ReactCurrentDispatcher,ae;function re(e,n,i){{if(ae===void 0)try{throw Error()}catch(N){var m=N.stack.trim().match(/\n( *(at )?)/);ae=m&&m[1]||""}return`
2
- `+ae+e}}var ue=!1,K;{var Oe=typeof WeakMap=="function"?WeakMap:Map;K=new Oe}function we(e,n){if(!e||ue)return"";{var i=K.get(e);if(i!==void 0)return i}var m;ue=!0;var N=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var S;S=ne.current,ne.current=null,je();try{if(n){var y=function(){throw Error()};if(Object.defineProperty(y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(y,[])}catch(M){m=M}Reflect.construct(e,[],y)}else{try{y.call()}catch(M){m=M}e.call(y.prototype)}}else{try{throw Error()}catch(M){m=M}e()}}catch(M){if(M&&m&&typeof M.stack=="string"){for(var b=M.stack.split(`
3
- `),P=m.stack.split(`
4
- `),R=b.length-1,I=P.length-1;R>=1&&I>=0&&b[R]!==P[I];)I--;for(;R>=1&&I>=0;R--,I--)if(b[R]!==P[I]){if(R!==1||I!==1)do if(R--,I--,I<0||b[R]!==P[I]){var F=`
5
- `+b[R].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),typeof e=="function"&&K.set(e,F),F}while(R>=1&&I>=0);break}}}finally{ue=!1,ne.current=S,de(),Error.prepareStackTrace=N}var he=e?e.displayName||e.name:"",ie=he?re(he):"";return typeof e=="function"&&K.set(e,ie),ie}function De(e,n,i){return we(e,!1)}function Ne(e){var n=e.prototype;return!!(n&&n.isReactComponent)}function oe(e,n,i){if(e==null)return"";if(typeof e=="function")return we(e,Ne(e));if(typeof e=="string")return re(e);switch(e){case g:return re("Suspense");case v:return re("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return De(e.render);case h:return oe(e.type,n,i);case w:{var m=e,N=m._payload,S=m._init;try{return oe(S(N),n,i)}catch{}}}return""}var se=Object.prototype.hasOwnProperty,Pe={},Le=O.ReactDebugCurrentFrame;function _e(e){if(e){var n=e._owner,i=oe(e.type,e._source,n?n.type:null);Le.setExtraStackFrame(i)}else Le.setExtraStackFrame(null)}function o(e,n,i,m,N){{var S=Function.call.bind(se);for(var y in e)if(S(e,y)){var b=void 0;try{if(typeof e[y]!="function"){var P=Error((m||"React class")+": "+i+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw P.name="Invariant Violation",P}b=e[y](n,y,m,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(R){b=R}b&&!(b instanceof Error)&&(_e(N),$("%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).",m||"React class",i,y,typeof b),_e(null)),b instanceof Error&&!(b.message in Pe)&&(Pe[b.message]=!0,_e(N),$("Failed %s type: %s",i,b.message),_e(null))}}}var x=Array.isArray;function D(e){return x(e)}function z(e){{var n=typeof Symbol=="function"&&Symbol.toStringTag,i=n&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function A(e){try{return Ze(e),!1}catch{return!0}}function Ze(e){return""+e}function et(e){if(A(e))return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",z(e)),Ze(e)}var tt=O.ReactCurrentOwner,kt={key:!0,ref:!0,__self:!0,__source:!0},nt,at;function Rt(e){if(se.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return e.ref!==void 0}function It(e){if(se.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return e.key!==void 0}function $t(e,n){typeof e.ref=="string"&&tt.current}function Et(e,n){{var i=function(){nt||(nt=!0,$("%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)",n))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}}function Ct(e,n){{var i=function(){at||(at=!0,$("%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)",n))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}}var Ot=function(e,n,i,m,N,S,y){var b={$$typeof:r,type:e,key:n,ref:i,props:y,_owner:S};return b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(b,"_self",{configurable:!1,enumerable:!1,writable:!1,value:m}),Object.defineProperty(b,"_source",{configurable:!1,enumerable:!1,writable:!1,value:N}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b};function Dt(e,n,i,m,N){{var S,y={},b=null,P=null;i!==void 0&&(et(i),b=""+i),It(n)&&(et(n.key),b=""+n.key),Rt(n)&&(P=n.ref,$t(n,N));for(S in n)se.call(n,S)&&!kt.hasOwnProperty(S)&&(y[S]=n[S]);if(e&&e.defaultProps){var R=e.defaultProps;for(S in R)y[S]===void 0&&(y[S]=R[S])}if(b||P){var I=typeof e=="function"?e.displayName||e.name||"Unknown":e;b&&Et(y,I),P&&Ct(y,I)}return Ot(e,b,P,N,m,tt.current,y)}}var He=O.ReactCurrentOwner,rt=O.ReactDebugCurrentFrame;function fe(e){if(e){var n=e._owner,i=oe(e.type,e._source,n?n.type:null);rt.setExtraStackFrame(i)}else rt.setExtraStackFrame(null)}var Ke;Ke=!1;function ze(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function ot(){{if(He.current){var e=L(He.current.type);if(e)return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./styles.js");const g=require("react");var He={exports:{}},$e={};var ft;function on(){if(ft)return $e;ft=1;var n=g,a=Symbol.for("react.element"),r=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function m(u,_,p){var v,h={},x=null,w=null;p!==void 0&&(x=""+p),_.key!==void 0&&(x=""+_.key),_.ref!==void 0&&(w=_.ref);for(v in _)s.call(_,v)&&!l.hasOwnProperty(v)&&(h[v]=_[v]);if(u&&u.defaultProps)for(v in _=u.defaultProps,_)h[v]===void 0&&(h[v]=_[v]);return{$$typeof:a,type:u,key:x,ref:w,props:h,_owner:c.current}}return $e.Fragment=r,$e.jsx=m,$e.jsxs=m,$e}var Le={};var gt;function sn(){return gt||(gt=1,process.env.NODE_ENV!=="production"&&(function(){var n=g,a=Symbol.for("react.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),u=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),C=Symbol.iterator,G="@@iterator";function O(t){if(t===null||typeof t!="object")return null;var o=C&&t[C]||t[G];return typeof o=="function"?o:null}var E=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(t){{for(var o=arguments.length,d=new Array(o>1?o-1:0),f=1;f<o;f++)d[f-1]=arguments[f];ie("error",t,d)}}function ie(t,o,d){{var f=E.ReactDebugCurrentFrame,S=f.getStackAddendum();S!==""&&(o+="%s",d=d.concat([S]));var k=d.map(function(N){return String(N)});k.unshift("Warning: "+o),Function.prototype.apply.call(console[t],console,k)}}var ae=!1,ce=!1,$=!1,re=!1,U=!1,le;le=Symbol.for("react.module.reference");function Se(t){return!!(typeof t=="string"||typeof t=="function"||t===s||t===l||U||t===c||t===p||t===v||re||t===w||ae||ce||$||typeof t=="object"&&t!==null&&(t.$$typeof===x||t.$$typeof===h||t.$$typeof===m||t.$$typeof===u||t.$$typeof===_||t.$$typeof===le||t.getModuleId!==void 0))}function Z(t,o,d){var f=t.displayName;if(f)return f;var S=o.displayName||o.name||"";return S!==""?d+"("+S+")":d}function V(t){return t.displayName||"Context"}function D(t){if(t==null)return null;if(typeof t.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case s:return"Fragment";case r:return"Portal";case l:return"Profiler";case c:return"StrictMode";case p:return"Suspense";case v:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case u:var o=t;return V(o)+".Consumer";case m:var d=t;return V(d._context)+".Provider";case _:return Z(t,t.render,"ForwardRef");case h:var f=t.displayName||null;return f!==null?f:D(t.type)||"Memo";case x:{var S=t,k=S._payload,N=S._init;try{return D(N(k))}catch{return null}}}return null}var H=Object.assign,T=0,A,Q,Te,Ae,ke,Me,Be;function Re(){}Re.__reactDisabledLog=!0;function Ie(){{if(T===0){A=console.log,Q=console.info,Te=console.warn,Ae=console.error,ke=console.group,Me=console.groupCollapsed,Be=console.groupEnd;var t={configurable:!0,enumerable:!0,value:Re,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}T++}}function be(){{if(T--,T===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:H({},t,{value:A}),info:H({},t,{value:Q}),warn:H({},t,{value:Te}),error:H({},t,{value:Ae}),group:H({},t,{value:ke}),groupCollapsed:H({},t,{value:Me}),groupEnd:H({},t,{value:Be})})}T<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var de=E.ReactCurrentDispatcher,ue;function me(t,o,d){{if(ue===void 0)try{throw Error()}catch(S){var f=S.stack.trim().match(/\n( *(at )?)/);ue=f&&f[1]||""}return`
2
+ `+ue+t}}var ve=!1,ee;{var Fe=typeof WeakMap=="function"?WeakMap:Map;ee=new Fe}function Ce(t,o){if(!t||ve)return"";{var d=ee.get(t);if(d!==void 0)return d}var f;ve=!0;var S=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var k;k=de.current,de.current=null,Ie();try{if(o){var N=function(){throw Error()};if(Object.defineProperty(N.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(N,[])}catch(q){f=q}Reflect.construct(t,[],N)}else{try{N.call()}catch(q){f=q}t.call(N.prototype)}}else{try{throw Error()}catch(q){f=q}t()}}catch(q){if(q&&f&&typeof q.stack=="string"){for(var y=q.stack.split(`
3
+ `),B=f.stack.split(`
4
+ `),L=y.length-1,P=B.length-1;L>=1&&P>=0&&y[L]!==B[P];)P--;for(;L>=1&&P>=0;L--,P--)if(y[L]!==B[P]){if(L!==1||P!==1)do if(L--,P--,P<0||y[L]!==B[P]){var z=`
5
+ `+y[L].replace(" at new "," at ");return t.displayName&&z.includes("<anonymous>")&&(z=z.replace("<anonymous>",t.displayName)),typeof t=="function"&&ee.set(t,z),z}while(L>=1&&P>=0);break}}}finally{ve=!1,de.current=k,be(),Error.prepareStackTrace=S}var we=t?t.displayName||t.name:"",pe=we?me(we):"";return typeof t=="function"&&ee.set(t,pe),pe}function We(t,o,d){return Ce(t,!1)}function Ee(t){var o=t.prototype;return!!(o&&o.isReactComponent)}function _e(t,o,d){if(t==null)return"";if(typeof t=="function")return Ce(t,Ee(t));if(typeof t=="string")return me(t);switch(t){case p:return me("Suspense");case v:return me("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case _:return We(t.render);case h:return _e(t.type,o,d);case x:{var f=t,S=f._payload,k=f._init;try{return _e(k(S),o,d)}catch{}}}return""}var he=Object.prototype.hasOwnProperty,qe={},Ue=E.ReactDebugCurrentFrame;function xe(t){if(t){var o=t._owner,d=_e(t.type,t._source,o?o.type:null);Ue.setExtraStackFrame(d)}else Ue.setExtraStackFrame(null)}function i(t,o,d,f,S){{var k=Function.call.bind(he);for(var N in t)if(k(t,N)){var y=void 0;try{if(typeof t[N]!="function"){var B=Error((f||"React class")+": "+d+" type `"+N+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[N]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw B.name="Invariant Violation",B}y=t[N](o,N,f,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(L){y=L}y&&!(y instanceof Error)&&(xe(S),R("%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).",f||"React class",d,N,typeof y),xe(null)),y instanceof Error&&!(y.message in qe)&&(qe[y.message]=!0,xe(S),R("Failed %s type: %s",d,y.message),xe(null))}}}var j=Array.isArray;function M(t){return j(t)}function te(t){{var o=typeof Symbol=="function"&&Symbol.toStringTag,d=o&&t[Symbol.toStringTag]||t.constructor.name||"Object";return d}}function K(t){try{return rt(t),!1}catch{return!0}}function rt(t){return""+t}function ot(t){if(K(t))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",te(t)),rt(t)}var st=E.ReactCurrentOwner,Wt={key:!0,ref:!0,__self:!0,__source:!0},it,ct;function qt(t){if(he.call(t,"ref")){var o=Object.getOwnPropertyDescriptor(t,"ref").get;if(o&&o.isReactWarning)return!1}return t.ref!==void 0}function Ut(t){if(he.call(t,"key")){var o=Object.getOwnPropertyDescriptor(t,"key").get;if(o&&o.isReactWarning)return!1}return t.key!==void 0}function Ht(t,o){typeof t.ref=="string"&&st.current}function Kt(t,o){{var d=function(){it||(it=!0,R("%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)",o))};d.isReactWarning=!0,Object.defineProperty(t,"key",{get:d,configurable:!0})}}function Yt(t,o){{var d=function(){ct||(ct=!0,R("%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)",o))};d.isReactWarning=!0,Object.defineProperty(t,"ref",{get:d,configurable:!0})}}var zt=function(t,o,d,f,S,k,N){var y={$$typeof:a,type:t,key:o,ref:d,props:N,_owner:k};return y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(y,"_self",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.defineProperty(y,"_source",{configurable:!1,enumerable:!1,writable:!1,value:S}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y};function Gt(t,o,d,f,S){{var k,N={},y=null,B=null;d!==void 0&&(ot(d),y=""+d),Ut(o)&&(ot(o.key),y=""+o.key),qt(o)&&(B=o.ref,Ht(o,S));for(k in o)he.call(o,k)&&!Wt.hasOwnProperty(k)&&(N[k]=o[k]);if(t&&t.defaultProps){var L=t.defaultProps;for(k in L)N[k]===void 0&&(N[k]=L[k])}if(y||B){var P=typeof t=="function"?t.displayName||t.name||"Unknown":t;y&&Kt(N,P),B&&Yt(N,P)}return zt(t,y,B,S,f,st.current,N)}}var Ge=E.ReactCurrentOwner,lt=E.ReactDebugCurrentFrame;function ye(t){if(t){var o=t._owner,d=_e(t.type,t._source,o?o.type:null);lt.setExtraStackFrame(d)}else lt.setExtraStackFrame(null)}var Ve;Ve=!1;function Je(t){return typeof t=="object"&&t!==null&&t.$$typeof===a}function dt(){{if(Ge.current){var t=D(Ge.current.type);if(t)return`
6
6
 
7
- Check the render method of \``+e+"`."}return""}}function Pt(e){return""}var st={};function Lt(e){{var n=ot();if(!n){var i=typeof e=="string"?e:e.displayName||e.name;i&&(n=`
7
+ Check the render method of \``+t+"`."}return""}}function Vt(t){return""}var ut={};function Jt(t){{var o=dt();if(!o){var d=typeof t=="string"?t:t.displayName||t.name;d&&(o=`
8
8
 
9
- Check the top-level render call using <`+i+">.")}return n}}function it(e,n){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=Lt(n);if(st[i])return;st[i]=!0;var m="";e&&e._owner&&e._owner!==He.current&&(m=" It was passed a child from "+L(e._owner.type)+"."),fe(e),$('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',i,m),fe(null)}}function ct(e,n){{if(typeof e!="object")return;if(D(e))for(var i=0;i<e.length;i++){var m=e[i];ze(m)&&it(m,n)}else if(ze(e))e._store&&(e._store.validated=!0);else if(e){var N=ge(e);if(typeof N=="function"&&N!==e.entries)for(var S=N.call(e),y;!(y=S.next()).done;)ze(y.value)&&it(y.value,n)}}}function Mt(e){{var n=e.type;if(n==null||typeof n=="string")return;var i;if(typeof n=="function")i=n.propTypes;else if(typeof n=="object"&&(n.$$typeof===f||n.$$typeof===h))i=n.propTypes;else return;if(i){var m=L(n);o(i,e.props,"prop",m,e)}else if(n.PropTypes!==void 0&&!Ke){Ke=!0;var N=L(n);$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",N||"Unknown")}typeof n.getDefaultProps=="function"&&!n.getDefaultProps.isReactClassApproved&&$("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function At(e){{for(var n=Object.keys(e.props),i=0;i<n.length;i++){var m=n[i];if(m!=="children"&&m!=="key"){fe(e),$("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",m),fe(null);break}}e.ref!==null&&(fe(e),$("Invalid attribute `ref` supplied to `React.Fragment`."),fe(null))}}var lt={};function dt(e,n,i,m,N,S){{var y=Ue(e);if(!y){var b="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(b+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var P=Pt();P?b+=P:b+=ot();var R;e===null?R="null":D(e)?R="array":e!==void 0&&e.$$typeof===r?(R="<"+(L(e.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):R=typeof e,$("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",R,b)}var I=Dt(e,n,i,N,S);if(I==null)return I;if(y){var F=n.children;if(F!==void 0)if(m)if(D(F)){for(var he=0;he<F.length;he++)ct(F[he],e);Object.freeze&&Object.freeze(F)}else $("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ct(F,e)}if(se.call(n,"key")){var ie=L(e),M=Object.keys(n).filter(function(Ut){return Ut!=="key"}),Ge=M.length>0?"{key: someKey, "+M.join(": ..., ")+": ...}":"{key: someKey}";if(!lt[ie+Ge]){var Yt=M.length>0?"{"+M.join(": ..., ")+": ...}":"{}";$(`A props object containing a "key" prop is being spread into JSX:
9
+ Check the top-level render call using <`+d+">.")}return o}}function mt(t,o){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var d=Jt(o);if(ut[d])return;ut[d]=!0;var f="";t&&t._owner&&t._owner!==Ge.current&&(f=" It was passed a child from "+D(t._owner.type)+"."),ye(t),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',d,f),ye(null)}}function _t(t,o){{if(typeof t!="object")return;if(M(t))for(var d=0;d<t.length;d++){var f=t[d];Je(f)&&mt(f,o)}else if(Je(t))t._store&&(t._store.validated=!0);else if(t){var S=O(t);if(typeof S=="function"&&S!==t.entries)for(var k=S.call(t),N;!(N=k.next()).done;)Je(N.value)&&mt(N.value,o)}}}function Xt(t){{var o=t.type;if(o==null||typeof o=="string")return;var d;if(typeof o=="function")d=o.propTypes;else if(typeof o=="object"&&(o.$$typeof===_||o.$$typeof===h))d=o.propTypes;else return;if(d){var f=D(o);i(d,t.props,"prop",f,t)}else if(o.PropTypes!==void 0&&!Ve){Ve=!0;var S=D(o);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",S||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Zt(t){{for(var o=Object.keys(t.props),d=0;d<o.length;d++){var f=o[d];if(f!=="children"&&f!=="key"){ye(t),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",f),ye(null);break}}t.ref!==null&&(ye(t),R("Invalid attribute `ref` supplied to `React.Fragment`."),ye(null))}}var ht={};function pt(t,o,d,f,S,k){{var N=Se(t);if(!N){var y="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(y+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var B=Vt();B?y+=B:y+=dt();var L;t===null?L="null":M(t)?L="array":t!==void 0&&t.$$typeof===a?(L="<"+(D(t.type)||"Unknown")+" />",y=" Did you accidentally export a JSX literal instead of a component?"):L=typeof t,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",L,y)}var P=Gt(t,o,d,S,k);if(P==null)return P;if(N){var z=o.children;if(z!==void 0)if(f)if(M(z)){for(var we=0;we<z.length;we++)_t(z[we],t);Object.freeze&&Object.freeze(z)}else R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else _t(z,t)}if(he.call(o,"key")){var pe=D(t),q=Object.keys(o).filter(function(rn){return rn!=="key"}),Xe=q.length>0?"{key: someKey, "+q.join(": ..., ")+": ...}":"{key: someKey}";if(!ht[pe+Xe]){var an=q.length>0?"{"+q.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
10
10
  let props = %s;
11
11
  <%s {...props} />
12
12
  React keys must be passed directly to JSX without using spread:
13
13
  let props = %s;
14
- <%s key={someKey} {...props} />`,Ge,ie,Yt,ie),lt[ie+Ge]=!0}}return e===c?At(I):Mt(I),I}}function Bt(e,n,i){return dt(e,n,i,!0)}function Ft(e,n,i){return dt(e,n,i,!1)}var qt=Ft,Wt=Bt;Te.Fragment=c,Te.jsx=qt,Te.jsxs=Wt})()),Te}var ft;function zt(){return ft||(ft=1,process.env.NODE_ENV==="production"?Me.exports=Ht():Me.exports=Kt()),Me.exports}var t=zt();const Gt="_section_1fboo_1",Vt="_heading_1fboo_5",Jt="_trustLine_1fboo_9",Xt="_star_1fboo_13",Qt="_ratingNum_1fboo_17",Zt="_trustText_1fboo_21",en="_cardList_1fboo_25",tn="_card_1fboo_25",nn="_quote_1fboo_37",an="_author_1fboo_41",rn="_avatar_1fboo_45",on="_avatarPlaceholder_1fboo_49",sn="_authorInfo_1fboo_54",cn="_authorName_1fboo_58",ln="_stars_1fboo_62",dn="_readMoreWrap_1fboo_66",un="_toggleBtn_1fboo_70",_n="_readMore_1fboo_66",fn="_arrow_1fboo_89",hn="_dot_1fboo_93",T={section:Gt,heading:Vt,trustLine:Jt,star:Xt,ratingNum:Qt,trustText:Zt,cardList:en,card:tn,quote:nn,author:an,avatar:rn,avatarPlaceholder:on,authorInfo:sn,authorName:cn,stars:ln,readMoreWrap:dn,toggleBtn:un,readMore:_n,arrow:fn,dot:hn},mn=3,ht=15;function pn(a){const r=new Map;for(let d=1;d<=ht;d+=1){const f=`feedbackTestimonial${d}`,g=a(f);if(!g||g===f)continue;const v=`feedbackAuthor${d}`,h=(()=>{const E=a(v);return E&&E!==v?E:a("guest")})(),w=`feedbackAuthor${d}AvatarUrl`,k=(()=>{const E=a(w);return E&&E!==w?E:void 0})();r.set(d,{quote:g,authorName:h,authorAvatarUrl:k,rating:5})}const s=[],c=[];for(let d=1;d<=ht;d+=1)d>=9?c.push(d):s.push(d);const l=[];let u=0,_=0;for(;u<s.length||_<c.length;){if(_<c.length){const d=c[_++],f=r.get(d);f&&l.push(f)}if(u<s.length){const d=s[u++],f=r.get(d);f&&l.push(f)}}return l}function gn({t:a,testimonials:r,initialVisible:s=mn,readMoreHref:c,onReadMore:l,className:u="",headingClassName:_}){const d=r??j.useMemo(()=>pn(a),[a]),[f,g]=j.useState(!1),v=d.length>s,h=v&&!f?d.slice(0,s):d,w=a("feedbackTitle"),k=a("feedbackRating"),E=a("feedbackTrust"),Z=a("readMoreReviews"),ge=a("readLess");return t.jsxs("section",{className:`${T.section} ${u}`,"aria-labelledby":"reviews-heading",children:[t.jsx("h2",{id:"reviews-heading",className:[T.heading,_].filter(Boolean).join(" "),children:w}),t.jsxs("p",{className:T.trustLine,children:[t.jsx("span",{className:T.star,"aria-hidden":!0,children:"★"}),t.jsx("span",{className:T.ratingNum,children:k}),t.jsx("span",{className:T.dot,"aria-hidden":!0}),t.jsx("span",{className:T.trustText,children:E})]}),t.jsx("ul",{className:T.cardList,children:h.map((O,$)=>t.jsxs("li",{className:T.card,children:[t.jsx("p",{className:T.quote,children:O.quote}),t.jsxs("div",{className:T.author,children:[O.authorAvatarUrl?t.jsx("img",{src:O.authorAvatarUrl,alt:"",className:T.avatar,width:40,height:40}):t.jsx("div",{className:T.avatarPlaceholder,"aria-hidden":!0}),t.jsxs("div",{className:T.authorInfo,children:[t.jsx("span",{className:T.authorName,children:O.authorName}),t.jsx("span",{className:T.stars,"aria-hidden":!0,children:"★".repeat(O.rating??5)})]})]})]},$))}),v&&t.jsx("div",{className:T.readMoreWrap,children:t.jsxs("button",{type:"button",className:T.toggleBtn,onClick:()=>g(O=>!O),"aria-expanded":f,children:[f?ge:Z,t.jsx("span",{className:T.arrow,"aria-hidden":!0,children:"›"})]})}),(c||l)&&!v&&t.jsx("div",{className:T.readMoreWrap,children:c?t.jsxs("a",{href:c,className:T.readMore,target:"_blank",rel:"noopener noreferrer",children:[Z,t.jsx("span",{className:T.arrow,"aria-hidden":!0,children:"›"})]}):t.jsxs("button",{type:"button",className:T.readMore,onClick:()=>l?.(),children:[Z,t.jsx("span",{className:T.arrow,"aria-hidden":!0,children:"›"})]})})]})}const bn="_section_4dc65_1",vn="_heading_4dc65_5",xn="_accordion_4dc65_9",yn="_item_4dc65_13",jn="_itemOpen_4dc65_17",wn="_question_4dc65_22",Nn="_chevron_4dc65_30",Sn="_chevronOpen_4dc65_34",Tn="_answerWrap_4dc65_38",kn="_answerOpen_4dc65_42",Rn="_answer_4dc65_38",W={section:bn,heading:vn,accordion:xn,item:yn,itemOpen:jn,question:wn,chevron:Nn,chevronOpen:Sn,answerWrap:Tn,answerOpen:kn,answer:Rn};function In({t:a,items:r,resolveAnswerKey:s,defaultOpenIndex:c=0,onItemOpen:l,className:u="",headingClassName:_}){const d=j.useMemo(()=>r.map(({qKey:h,aKey:w})=>({question:a(h),answer:a(s?s(w):w)})),[a,r,s]),[f,g]=j.useState(c),v=a("faqTitle");return t.jsxs("section",{className:`${W.section} ${u}`,"aria-labelledby":"faq-heading",children:[t.jsx("h2",{id:"faq-heading",className:[W.heading,_].filter(Boolean).join(" "),children:v}),t.jsx("div",{className:W.accordion,role:"list",children:d.map((h,w)=>{const k=f===w;return t.jsxs("div",{className:`${W.item} ${k?W.itemOpen:""}`,role:"listitem",children:[t.jsxs("button",{type:"button",className:W.question,onClick:()=>{const E=!k;g(k?-1:w),E&&l?.(h.question)},"aria-expanded":k,"aria-controls":`faq-answer-${w}`,id:`faq-question-${w}`,children:[t.jsx("span",{children:h.question}),t.jsx("span",{className:`${W.chevron} ${k?W.chevronOpen:""}`,"aria-hidden":!0,children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none","aria-hidden":!0,focusable:"false",children:t.jsx("path",{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",fill:"currentColor"})})})]}),t.jsx("div",{id:`faq-answer-${w}`,role:"region","aria-labelledby":`faq-question-${w}`,className:`${W.answerWrap} ${k?W.answerOpen:""}`,hidden:!k,children:t.jsx("p",{className:W.answer,children:h.answer})})]},w)})})]})}const $n="_header_dbx4y_1",En="_brand_dbx4y_7",Cn="_logo_dbx4y_11",On="_logoImg_dbx4y_15",Dn="_logoPlaceholder_dbx4y_21",Pn="_brandText_dbx4y_29",Ln="_brandName_dbx4y_33",Mn="_rating_dbx4y_38",An="_langSlot_dbx4y_49",G={header:$n,brand:En,logo:Cn,logoImg:On,logoPlaceholder:Dn,brandText:Pn,brandName:Ln,rating:Mn,langSlot:An},mt=120,pt=40;function Bn({t:a,logoUrl:r,imageComponent:s,languageSelector:c,showLanguageSelector:l=!0,className:u=""}){const _=l&&c!=null,d=a("sriMandir"),f=a("ratingText");return t.jsxs("header",{className:`${G.header} ${u}`,children:[t.jsxs("div",{className:G.brand,children:[t.jsx("div",{className:G.logo,children:r?s?t.jsx(s,{src:r,alt:d,className:G.logoImg,width:mt,height:pt}):t.jsx("img",{src:r,alt:d,className:G.logoImg,width:mt,height:pt,decoding:"async"}):t.jsx("div",{className:G.logoPlaceholder,"aria-hidden":!0})}),t.jsxs("div",{className:G.brandText,children:[t.jsx("span",{className:G.brandName,children:d}),f!=null&&f!==""&&t.jsx("span",{className:G.rating,children:f})]})]}),_&&t.jsx("div",{className:G.langSlot,children:c})]})}const Fn="_wrap_1vbpd_1",qn="_card_1vbpd_5",Wn="_cardInner_1vbpd_10",Ve={wrap:Fn,card:qn,cardInner:Wn};function Yn({children:a,className:r="","aria-label":s}){return t.jsx("section",{className:`${Ve.wrap} ${r}`,"aria-label":s,children:t.jsx("div",{className:Ve.card,children:t.jsx("div",{className:Ve.cardInner,children:a})})})}const Un="_header_a05ni_1",Hn="_left_a05ni_7",Kn="_backBtn_a05ni_11",zn="_titleWrap_a05ni_21",Gn="_title_a05ni_21",Vn="_subtitle_a05ni_31",Jn="_backIcon_a05ni_37",ce={header:Un,left:Hn,backBtn:Kn,titleWrap:zn,title:Gn,subtitle:Vn,backIcon:Jn},Xn=()=>t.jsx("svg",{className:ce.backIcon,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:t.jsx("path",{d:"M15 18l-6-6 6-6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});function Qn({title:a,subtitle:r,onBack:s,backAriaLabel:c="Back",className:l=""}){return t.jsx("header",{className:`${ce.header} ${l}`,children:t.jsxs("div",{className:ce.left,children:[s!=null&&t.jsx("button",{type:"button",className:ce.backBtn,onClick:s,"aria-label":c,children:t.jsx(Xn,{})}),t.jsxs("div",{className:ce.titleWrap,children:[t.jsx("h1",{className:ce.title,children:a}),r!=null&&r!==""&&t.jsx("p",{className:ce.subtitle,children:r})]})]})})}const Zn="_banner_1jco0_1",ea="_icon_1jco0_12",ta="_text_1jco0_16",Je={banner:Zn,icon:ea,text:ta},na="https://srm-cdn.a4b.io/yoda/1770707793537.svg";function aa({text:a,iconUrl:r=na,className:s=""}){return t.jsx("div",{className:`${Je.banner} ${s}`,role:"status",children:t.jsxs("span",{className:Je.text,children:[" ",t.jsx("img",{src:r,alt:"",className:Je.icon,width:18,height:18,"aria-hidden":!0})," ",a]})})}const ra="_field_eqt7q_1",oa="_labelRow_eqt7q_5",sa="_label_eqt7q_5",ia="_req_eqt7q_14",ca="_help_eqt7q_18",la="_infoBtn_eqt7q_22",da="_infoImg_eqt7q_30",ua="_infoWrap_eqt7q_34",_a="_tooltip_eqt7q_38",fa="_tooltipArrow_eqt7q_45",ha="_inputWrap_eqt7q_50",Y={field:ra,labelRow:oa,label:sa,req:ia,help:ca,infoBtn:la,infoImg:da,infoWrap:ua,tooltip:_a,tooltipArrow:fa,inputWrap:ha},ma="https://srm-cdn.a4b.io/yoda/1770372066357.svg";function pa({label:a,id:r,required:s=!1,help:c,infoTooltip:l,infoAriaLabel:u="Info",infoIconUrl:_=ma,children:d,className:f=""}){const[g,v]=j.useState(!1);return j.useEffect(()=>{if(!l)return;const h=k=>{k.target?.closest?.("[data-info-tooltip]")==null&&v(!1)},w=k=>{k.key==="Escape"&&v(!1)};return document.addEventListener("mousedown",h),document.addEventListener("keydown",w),()=>{document.removeEventListener("mousedown",h),document.removeEventListener("keydown",w)}},[l]),t.jsxs("div",{className:`${Y.field} ${f}`,children:[t.jsxs("div",{className:Y.labelRow,children:[t.jsxs("label",{className:Y.label,htmlFor:r,children:[a,s&&t.jsx("span",{className:Y.req,children:"*"})]}),l!=null&&l!==""&&t.jsxs("div",{className:Y.infoWrap,"data-info-tooltip":!0,children:[t.jsx("button",{type:"button",className:Y.infoBtn,"aria-label":u,"aria-expanded":g,onClick:()=>v(h=>!h),children:t.jsx("img",{className:Y.infoImg,src:_,alt:"","aria-hidden":!0})}),g&&t.jsxs("div",{className:Y.tooltip,role:"tooltip",children:[l,t.jsx("span",{className:Y.tooltipArrow,"aria-hidden":!0})]})]})]}),c!=null&&c!==""&&t.jsx("div",{className:Y.help,children:c}),t.jsx("div",{className:Y.inputWrap,children:d})]})}const ga="_wrap_1uy4o_1",ba="_input_1uy4o_5",va="_iconBtn_1uy4o_21",xa="_iconBtnInteractive_1uy4o_25",ya="_iconImg_1uy4o_39",me={wrap:ga,input:ba,iconBtn:va,iconBtnInteractive:xa,iconImg:ya};function ja({id:a,iconUrl:r,iconAlt:s="",iconInteractive:c=!1,onIconClick:l,className:u="",..._}){return t.jsxs("div",{className:`${me.wrap} ${u}`,children:[t.jsx("input",{..._,id:a,className:me.input,type:_.type??"text"}),r!=null&&t.jsx("button",{type:"button",className:c?`${me.iconBtn} ${me.iconBtnInteractive}`:me.iconBtn,"aria-label":s||void 0,onClick:c?l:void 0,tabIndex:c?0:-1,children:t.jsx("img",{className:me.iconImg,src:r,alt:"","aria-hidden":!0,width:22,height:22})})]})}const wa="_wrap_t646o_1",Na="_input_t646o_5",Sa="_iconBtn_t646o_28",Ta="_iconImg_t646o_42",Ae={wrap:wa,input:Na,iconBtn:Sa,iconImg:Ta},ka="https://srm-cdn.a4b.io/yoda/1770372045894.svg";function Ra({id:a,value:r,onChange:s,onIconClick:c,className:l="",...u}){const _=j.useRef(null),d=j.useMemo(()=>{const g=new Date,v=h=>String(h).padStart(2,"0");return`${g.getFullYear()}-${v(g.getMonth()+1)}-${v(g.getDate())}`},[]),f=()=>{if(c){c();return}const g=_.current;g&&typeof g.showPicker=="function"?g.showPicker():g?.focus()};return t.jsxs("div",{className:`${Ae.wrap} ${l}`,children:[t.jsx("input",{...u,ref:_,id:a,type:"date",className:Ae.input,value:r,max:d,onChange:g=>s(g.target.value)}),t.jsx("button",{type:"button",className:`${Ae.iconBtn}`,"aria-label":"Open date picker",onMouseDown:g=>g.preventDefault(),onClick:g=>{g.preventDefault(),f()},children:t.jsx("img",{className:Ae.iconImg,src:ka,alt:"","aria-hidden":!0,width:22,height:22})})]})}const Ia="_wrap_1jdg7_1",$a="_input_1jdg7_5",Ea="_iconBtn_1jdg7_34",Ca="_iconImg_1jdg7_48",Be={wrap:Ia,input:$a,iconBtn:Ea,iconImg:Ca},Oa="https://srm-cdn.a4b.io/yoda/1770372014782.svg";function Da({id:a,value:r,onChange:s,placeholder:c="HH:MM AM",disabled:l=!1,onIconClick:u,className:_=""}){return t.jsxs("div",{className:`${Be.wrap} ${_}`,children:[t.jsx("input",{id:a,type:"time",className:Be.input,value:r,onChange:d=>s(d.target.value),placeholder:c,disabled:l,onClick:()=>!l&&u?.()}),t.jsx("button",{type:"button",className:Be.iconBtn,"aria-label":"Open time picker",disabled:l,onClick:d=>{d.preventDefault(),l||u?.()},children:t.jsx("img",{className:Be.iconImg,src:Oa,alt:"","aria-hidden":!0,width:22,height:22})})]})}const Pa="_wrap_1bb6o_1",La="_input_1bb6o_5",Ma="_iconBtn_1bb6o_21",Aa="_iconImg_1bb6o_25",Fe={wrap:Pa,input:La,iconBtn:Ma,iconImg:Aa},Ba="https://srm-cdn.a4b.io/yoda/1770372031092.svg";function Fa({id:a,iconUrl:r=Ba,className:s="",...c}){return t.jsxs("div",{className:`${Fe.wrap} ${s}`,children:[t.jsx("input",{...c,id:a,className:Fe.input,type:"text"}),t.jsx("div",{className:Fe.iconBtn,"aria-hidden":!0,children:t.jsx("img",{className:Fe.iconImg,src:r,alt:"",width:22,height:22})})]})}const qa="_segmented_3sa9v_1",Wa="_segmentedOption_3sa9v_6",Ya="_active_3sa9v_15",Xe={segmented:qa,segmentedOption:Wa,active:Ya};function Ua({id:a,options:r,value:s,onChange:c,className:l=""}){return t.jsx("div",{className:`${Xe.segmented} ${l}`,role:"group","aria-labelledby":`${a}-label`,children:r.map(u=>t.jsx("button",{type:"button",id:u.value===s?a:void 0,className:`${Xe.segmentedOption} ${u.value===s?Xe.active:""}`,onClick:()=>c(u.value),children:u.label},u.value))})}const Ha="_pillsWrap_z1kui_1",Ka="_pill_z1kui_1",za="_selected_z1kui_17",Qe={pillsWrap:Ha,pill:Ka,selected:za};function Ga({id:a,options:r,selected:s,onChange:c,className:l=""}){const u=_=>{s.includes(_)?c(s.filter(d=>d!==_)):c([...s,_])};return t.jsx("div",{className:`${Qe.pillsWrap} ${l}`,role:"group","aria-labelledby":`${a}-label`,children:r.map(_=>t.jsx("button",{type:"button",className:`${Qe.pill} ${s.includes(_.key)?Qe.selected:""}`,onClick:()=>u(_.key),children:_.label},_.key))})}const Va="_wrapper_i6a5b_2",Ja="_checkboxRow_i6a5b_6",Xa="_checkbox_i6a5b_6",Qa="_checkboxText_i6a5b_31",Za="_checkboxHelp_i6a5b_37",ke={wrapper:Va,checkboxRow:Ja,checkbox:Xa,checkboxText:Qa,checkboxHelp:Za};function er({id:a,checked:r,onChange:s,primaryText:c,helpText:l,className:u=""}){return t.jsxs("div",{className:`${ke.wrapper} ${u}`,children:[t.jsxs("div",{className:ke.checkboxRow,children:[t.jsx("input",{id:a,type:"checkbox",className:ke.checkbox,checked:r,onChange:_=>s(_.target.checked)}),t.jsx("label",{htmlFor:a,className:ke.checkboxText,children:c})]}),l!=null&&l!==""&&t.jsx("p",{className:ke.checkboxHelp,children:l})]})}const tr="_footerNote_laev3_1",nr={footerNote:tr};function ar({children:a,className:r=""}){return t.jsx("p",{className:`${nr.footerNote} ${r}`,children:a})}const rr="_footer_86zxt_1",or="_inner_86zxt_8",sr="_badges_86zxt_12",ir="_marqueeContent_86zxt_20",cr="_badge_86zxt_12",lr="_badgeIcon_86zxt_35",dr="_ctaWrap_86zxt_39",ur="_ctaStruck_86zxt_43",_r="_ctaButton_86zxt_49",fr="_offerRow_86zxt_69",hr="_pill_86zxt_76",mr="_ctaStatic_86zxt_85",le={footer:rr,inner:or,badges:sr,marqueeContent:ir,badge:cr,badgeIcon:lr,ctaWrap:dr,ctaStruck:ur,ctaButton:_r,offerRow:fr,pill:hr,ctaStatic:mr};function pr({marquee:a,children:r,className:s=""}){return t.jsx("footer",{className:`${le.footer} ${s}`,role:"contentinfo",children:t.jsxs("div",{className:le.inner,children:[a!=null&&t.jsx("div",{className:le.badges,"aria-hidden":!0,children:a}),t.jsx("div",{className:le.ctaWrap,children:r})]})})}function gr({children:a,href:r,disabled:s=!1,onClick:c,static:l=!1,className:u="","aria-label":_}){const d=`${le.ctaButton} ${u}`.trim(),f=`${le.ctaStatic} ${u}`.trim(),g=_!=null?{"aria-label":_}:{};return l?t.jsx("div",{className:f,role:"presentation",children:a}):r!=null?t.jsx("a",{href:r,className:d,target:"_blank",rel:"noopener noreferrer","aria-disabled":s,onClick:v=>s&&v.preventDefault(),...g,children:a}):t.jsx("button",{type:"button",className:d,disabled:s,onClick:c,...g,children:a})}const br="_wrapper_wxjzs_1",vr="_track_wxjzs_7",gt={wrapper:br,track:vr};function vt({children:a,className:r=""}){return t.jsx("div",{className:`${gt.wrapper} ${r}`,"aria-hidden":!0,children:t.jsxs("div",{className:gt.track,children:[a,a]})})}const xr="_strip_2838b_1",yr={strip:xr};function jr({children:a,className:r=""}){return t.jsx("div",{className:`${yr.strip} ${r}`,role:"region","aria-label":"Trust badges",children:t.jsx(vt,{children:a})})}const wr="_section_8y3x9_1",Nr="_heading_8y3x9_6",Sr="_content_8y3x9_11",Tr="_line_8y3x9_16",kr="_brandName_8y3x9_20",pe={section:wr,heading:Nr,content:Sr,line:Tr,brandName:kr};function Rr({title:a,brandName:r,whatsAppLine:s,emailLine:c,className:l=""}){return t.jsxs("section",{className:`${pe.section} ${l}`,"aria-labelledby":"contact-heading",children:[t.jsx("h2",{id:"contact-heading",className:pe.heading,children:a}),t.jsxs("div",{className:pe.content,children:[t.jsx("p",{className:pe.brandName,children:r}),t.jsx("p",{className:pe.line,children:s}),t.jsx("p",{className:pe.line,children:c})]})]})}const xt=a=>{const r=a.match(/T(\d{2}):(\d{2})/);if(!r)return a;const s=Number(r[1]),c=r[2],l=s>=12?"PM":"AM";return`${s%12||12}:${c} ${l}`},yt=(a,r=new Date)=>{const s=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],c=new Date(`${a}T00:00:00`);if(Number.isNaN(c.getTime()))return{id:a,dayLabel:a,dayNum:""};const l=d=>new Date(d.getFullYear(),d.getMonth(),d.getDate()).getTime(),u=Math.round((l(c)-l(r))/(1e3*60*60*24)),_=u===0?"Today":u===1?"Tomorrow":s[c.getDay()];return{id:a,dayLabel:_,dayNum:String(c.getDate())}},jt=["morning","afternoon","evening"],wt=[{code:"en",labelKey:"formReportLanguageEnglish",label:"English"},{code:"hi",labelKey:"formReportLanguageHindi",label:"Hindi"},{code:"te",labelKey:"formReportLanguageTelugu",label:"Telugu"},{code:"kn",labelKey:"formReportLanguageKannada",label:"Kannada"},{code:"gu",labelKey:"formReportLanguageGujarati",label:"Gujarati"},{code:"mr",labelKey:"formReportLanguageMarathi",label:"Marathi"},{code:"ta",labelKey:"formReportLanguageTamil",label:"Tamil"}],Ir=()=>t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,children:t.jsx("path",{d:"M3.5 8.5l2.5 2.5 6-6",stroke:"#22c55e",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}),$r=()=>t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:t.jsx("path",{d:"M6 9l6 6 6-6"})}),Er=()=>t.jsx("img",{src:"https://srm-cdn.a4b.io/yoda/1785316603029.svg",width:16,height:16,alt:"","aria-hidden":!0}),Cr=()=>t.jsx("img",{src:"https://srm-cdn.a4b.io/yoda/1785316621747.svg",width:16,height:16,alt:"","aria-hidden":!0}),Or=()=>t.jsx("img",{src:"https://srm-cdn.a4b.io/yoda/1785316635953.svg",width:16,height:16,alt:"","aria-hidden":!0}),Dr=()=>t.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:[t.jsx("rect",{x:"3",y:"4.5",width:"18",height:"16",rx:"3",stroke:"#D1D5DB",strokeWidth:"1.6"}),t.jsx("path",{d:"M3 9.5h18",stroke:"#D1D5DB",strokeWidth:"1.6"}),t.jsx("path",{d:"M8 2.5v4M16 2.5v4",stroke:"#D1D5DB",strokeWidth:"1.6",strokeLinecap:"round"}),t.jsx("path",{d:"M7.5 20.5L17 6",stroke:"#9CA3AF",strokeWidth:"1.6",strokeLinecap:"round"})]}),Pr="_section_1ltqn_2",Lr="_headerRow_1ltqn_10",Mr="_title_1ltqn_18",Ar="_changeBtn_1ltqn_24",Br="_numberRow_1ltqn_35",Fr="_countryCode_1ltqn_44",qr="_number_1ltqn_35",Wr="_helper_1ltqn_59",X={section:Pr,headerRow:Lr,title:Mr,changeBtn:Ar,numberRow:Br,countryCode:Fr,number:qr,helper:Wr},Nt=({title:a,countryCode:r="+91",phoneNumber:s="98765 43210",helperText:c,onEdit:l,t:u,className:_=""})=>t.jsxs("section",{className:[X.section,_].filter(Boolean).join(" "),children:[t.jsxs("div",{className:X.headerRow,children:[t.jsx("span",{className:X.title,children:a??u?.("planPhoneNumberHeading")??"Your phone number"}),l&&t.jsx("button",{type:"button",className:X.changeBtn,onClick:l,children:u?.("planPhoneNumberChange")??"Change"})]}),t.jsxs("div",{className:X.numberRow,children:[t.jsx("span",{className:X.countryCode,children:r}),t.jsx("span",{className:X.number,children:s})]}),t.jsx("p",{className:X.helper,children:c??u?.("planPhoneNumberHelper")??"The astrologer will call you on this number at your booked slot."})]}),Yr="_section_12hk9_2",Ur="_title_12hk9_6",Hr="_profileRow_12hk9_13",Kr="_profileCard_12hk9_26",zr="_profileCardSelected_12hk9_47",Gr="_profileTop_12hk9_52",Vr="_avatar_12hk9_60",Jr="_profileName_12hk9_74",Xr="_relationPill_12hk9_84",Qr="_profileMeta_12hk9_98",Zr="_addCard_12hk9_108",eo="_addIcon_12hk9_127",B={section:Yr,title:Ur,profileRow:Hr,profileCard:Kr,profileCardSelected:zr,profileTop:Gr,avatar:Vr,profileName:Jr,relationPill:Xr,profileMeta:Qr,addCard:Zr,addIcon:eo},to=[{id:"self",name:"Aarav Sharma",birthDetails:"12 Mar 1994 • 06:45 AM",birthPlace:"Bengaluru, India",relation:"Self"},{id:"spouse",name:"Diya Sharma",birthDetails:"04 Sep 1996 • 11:20 PM",birthPlace:"Pune, India",relation:"Spouse"}],St=({title:a,profiles:r=to,selectedProfileId:s,onProfileSelect:c,onAddProfile:l,t:u,className:_=""})=>{const[d,f]=j.useState(r[0]?.id??""),g=s??d,v=h=>{f(h),c?.(h)};return t.jsxs("section",{className:[B.section,_].filter(Boolean).join(" "),children:[t.jsx("p",{className:B.title,children:a??u?.("planAstrologyProfilesHeading")??"Astrology profile"}),t.jsxs("div",{className:B.profileRow,role:"radiogroup","aria-label":"Astrology profile",children:[r.map(h=>{const w=h.id===g;return t.jsxs("button",{type:"button",role:"radio","aria-checked":w,className:[B.profileCard,w?B.profileCardSelected:""].filter(Boolean).join(" "),onClick:()=>v(h.id),children:[t.jsxs("span",{className:B.profileTop,children:[t.jsx("span",{className:B.avatar,"aria-hidden":!0,children:h.name.charAt(0).toUpperCase()}),t.jsx("span",{className:B.profileName,children:h.name})]}),h.relation&&t.jsx("span",{className:B.relationPill,children:h.relation}),h.birthDetails&&t.jsx("span",{className:B.profileMeta,children:h.birthDetails}),h.birthPlace&&t.jsx("span",{className:B.profileMeta,children:h.birthPlace})]},h.id)}),l&&t.jsxs("button",{type:"button",className:B.addCard,onClick:l,children:[t.jsx("span",{className:B.addIcon,"aria-hidden":!0,children:"+"}),u?.("planAddAstrologyProfile")??"Add profile"]})]})]})},no="_root_1ywut_6",ao="_languageRow_1ywut_19",ro="_languageLabel_1ywut_27",oo="_languageDropdown_1ywut_33",so="_languageDropdownBtn_1ywut_37",io="_languageMenu_1ywut_52",co="_languageMenuItem_1ywut_69",lo="_languageMenuItemSelected_1ywut_83",uo="_languageDivider_1ywut_89",_o="_sectionHeading_1ywut_96",fo="_reportReadyBanner_1ywut_104",ho="_reportReadyDuration_1ywut_113",mo="_dateTabs_1ywut_119",po="_dateTabIndicator_1ywut_131",go="_dateTab_1ywut_119",bo="_dateTabDivider_1ywut_165",vo="_dateTabSelected_1ywut_175",xo="_dateTabLabel_1ywut_180",yo="_dateTabNum_1ywut_187",jo="_periodTabs_1ywut_201",wo="_periodTabIndicator_1ywut_129",No="_periodTab_1ywut_129",So="_periodTabSelected_1ywut_248",To="_timeGrid_1ywut_253",ko="_emptyState_1ywut_280",Ro="_timeSlot_1ywut_284",Io="_timeSlotSelected_1ywut_300",$o="_stateMessage_1ywut_308",Eo="_retryBtn_1ywut_315",Co="_emptyStateIcon_1ywut_341",Oo="_emptyStateTitle_1ywut_352",Do="_emptyStateSubtitle_1ywut_359",Po="_loadingWrap_1ywut_368",Lo="_skeletonShimmer_1ywut_373",Mo="_skeletonDateTabs_1ywut_387",Ao="_skeletonDateTab_1ywut_387",Bo="_skeletonPeriodTabs_1ywut_401",Fo="_skeletonPeriodTab_1ywut_401",qo="_skeletonTimeGrid_1ywut_416",Wo="_skeletonTimeSlot_1ywut_422",p={root:no,languageRow:ao,languageLabel:ro,languageDropdown:oo,languageDropdownBtn:so,languageMenu:io,languageMenuItem:co,languageMenuItemSelected:lo,languageDivider:uo,sectionHeading:_o,reportReadyBanner:fo,reportReadyDuration:ho,dateTabs:mo,dateTabIndicator:po,dateTab:go,dateTabDivider:bo,dateTabSelected:vo,dateTabLabel:xo,dateTabNum:yo,periodTabs:jo,periodTabIndicator:wo,periodTab:No,periodTabSelected:So,timeGrid:To,emptyState:ko,timeSlot:Ro,timeSlotSelected:Io,stateMessage:$o,retryBtn:Eo,emptyStateIcon:Co,emptyStateTitle:Oo,emptyStateSubtitle:Do,loadingWrap:Po,skeletonShimmer:Lo,skeletonDateTabs:Mo,skeletonDateTab:Ao,skeletonPeriodTabs:Bo,skeletonPeriodTab:Fo,skeletonTimeGrid:qo,skeletonTimeSlot:Wo},Yo={morning:Er,afternoon:Cr,evening:Or},Uo={morning:"planPeriodMorning",afternoon:"planPeriodAfternoon",evening:"planPeriodEvening"},Q=(...a)=>a.filter(Boolean).join(" "),Ho=({days:a,loading:r=!1,error:s=!1,onRetry:c,selectedDate:l,onDateSelect:u,selectedPeriod:_,onPeriodSelect:d,selectedSlotStart:f,onSlotSelect:g,hideLanguageSelector:v=!1,languageOptions:h=wt,selectedLanguage:w,onLanguageSelect:k,showPhoneNumberSection:E=!0,phoneNumberSection:Z,showAstrologyProfilesSection:ge=!0,astrologyProfilesSection:O,heading:$,languageLabel:qe,reportReadyNote:Ie,isGlobal:We=!0,t:C,className:Ye=""})=>{const q=j.useMemo(()=>a.filter(o=>o.has_availability&&o.slots.length>0),[a]),[be,Ue]=j.useState(""),J=j.useMemo(()=>{const o=l??be;return q.some(x=>x.date===o)?o:q[0]?.date??""},[l,be,q]),V=j.useMemo(()=>q.find(o=>o.date===J)??null,[q,J]),L=j.useMemo(()=>{if(!V)return[];const o=new Set(V.slots.map(x=>x.period));return jt.filter(x=>o.has(x))},[V]),[U,ee]=j.useState(""),H=j.useMemo(()=>{const o=_??U;return o&&L.includes(o)?o:L[0]??"morning"},[_,U,L]),te=j.useMemo(()=>V?V.slots.filter(o=>o.period===H):[],[V,H]),[ve,$e]=j.useState(""),xe=j.useMemo(()=>{if(f===null)return"";const o=f??ve;return te.some(x=>x.start===o)?o:te[0]?.start??""},[f,ve,te]),[Ee,Ce]=j.useState(()=>h[0]?.code??"en"),ye=w??Ee,je=h.find(o=>o.code===ye)??h[0],[de,ne]=j.useState(!1),ae=j.useRef(null);j.useEffect(()=>{if(!de)return;const o=x=>{ae.current&&!ae.current.contains(x.target)&&ne(!1)};return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[de]);const re=j.useRef(null),ue=j.useRef({}),[K,Oe]=j.useState(null),we=j.useRef(null),De=j.useRef({}),[Ne,oe]=j.useState(null);j.useEffect(()=>{const o=()=>{const x=re.current,D=ue.current[J];if(!x||!D){Oe(null);return}const z=x.getBoundingClientRect(),A=D.getBoundingClientRect();Oe({left:A.left-z.left,top:A.top-z.top,width:A.width,height:A.height})};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[J,q,r,s]),j.useEffect(()=>{const o=()=>{const x=we.current,D=De.current[H];if(!x||!D){oe(null);return}const z=x.getBoundingClientRect(),A=D.getBoundingClientRect();oe({left:A.left-z.left,width:A.width})};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[H,L,r,s]);const se=o=>{Ue(o),u?.(o)},Pe=o=>{ee(o),d?.(o)},Le=o=>{$e(o.start),g?.(o)},_e=o=>{Ce(o),ne(!1),k?.(o)};return t.jsxs("div",{className:Q(p.root,Ye),children:[E&&(Z??t.jsx(Nt,{t:C})),ge&&(O??t.jsx(St,{t:C})),!v&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:p.languageRow,children:[t.jsx("span",{className:p.languageLabel,children:qe??C?.("planConsultationLanguageLabel")??"Your consultation language"}),t.jsxs("div",{className:p.languageDropdown,ref:ae,children:[t.jsxs("button",{type:"button",className:p.languageDropdownBtn,onClick:()=>ne(o=>!o),"aria-haspopup":"listbox","aria-expanded":de,children:[(je?.labelKey&&C?.(je.labelKey))??je?.label,t.jsx($r,{})]}),de&&t.jsx("ul",{className:p.languageMenu,role:"listbox",children:h.map(o=>{const x=o.code===ye;return t.jsxs("li",{role:"option","aria-selected":x,className:Q(p.languageMenuItem,x&&p.languageMenuItemSelected),onClick:()=>_e(o.code),children:[(o.labelKey&&C?.(o.labelKey))??o.label,x&&t.jsx(Ir,{})]},o.code)})})]})]}),t.jsx("hr",{className:p.languageDivider})]}),t.jsx("p",{className:p.sectionHeading,children:$??C?.("planSelectSlotHeading")??"Book your preferred consultation slot"}),Ie===void 0?t.jsxs("p",{className:p.reportReadyBanner,children:[C?.("planReportReadyPrefix")??"Your Report will be ready in"," ",t.jsx("span",{className:p.reportReadyDuration,children:C?.("planReportReadyDuration")??"24-48 hours"})," ",C?.("planReportReadySuffix")??"from today"]}):Ie,r&&t.jsxs("div",{className:p.loadingWrap,"aria-busy":"true","aria-live":"polite",children:[t.jsx("div",{className:p.skeletonDateTabs,children:Array.from({length:5}).map((o,x)=>t.jsx("div",{className:Q(p.skeletonDateTab,p.skeletonShimmer)},x))}),t.jsx("div",{className:p.skeletonPeriodTabs,children:Array.from({length:3}).map((o,x)=>t.jsx("div",{className:Q(p.skeletonPeriodTab,p.skeletonShimmer)},x))}),t.jsx("div",{className:p.skeletonTimeGrid,children:Array.from({length:6}).map((o,x)=>t.jsx("div",{className:Q(p.skeletonTimeSlot,p.skeletonShimmer)},x))})]}),!r&&s&&t.jsxs("div",{className:p.stateMessage,children:[C?.("planSlotsLoadError")??"Couldn't load slots. Please try again.",c&&t.jsx("button",{type:"button",className:p.retryBtn,onClick:c,children:C?.("planRetry")??"Retry"})]}),!r&&!s&&q.length===0&&t.jsxs("div",{className:p.emptyState,children:[t.jsx("span",{className:p.emptyStateIcon,children:t.jsx(Dr,{})}),t.jsx("p",{className:p.emptyStateTitle,children:C?.("planNoSlotsAvailableTitle")??"No slots available"}),t.jsx("p",{className:p.emptyStateSubtitle,children:C?.("planNoSlotsAvailableSubtitle")??"Try a different consultation language above, or check back soon."})]}),!r&&!s&&q.length>0&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:p.dateTabs,ref:re,role:"radiogroup","aria-label":"Consultation date",children:[K&&t.jsx("span",{className:p.dateTabIndicator,style:{transform:`translate(${K.left}px, ${K.top}px)`,width:K.width,height:K.height},"aria-hidden":"true"}),q.map(o=>{const x=o.date===J,{dayLabel:D,dayNum:z}=yt(o.date);return t.jsxs(j.Fragment,{children:[t.jsxs("button",{type:"button",ref:A=>{ue.current[o.date]=A},className:Q(p.dateTab,x&&p.dateTabSelected),role:"radio","aria-checked":x,onClick:()=>se(o.date),children:[t.jsx("span",{className:p.dateTabLabel,children:C?.(D)??D}),t.jsx("span",{className:p.dateTabNum,children:z})]}),t.jsx("span",{className:p.dateTabDivider,"aria-hidden":!0})]},o.date)})]}),t.jsxs("div",{className:p.periodTabs,ref:we,role:"tablist","aria-label":"Time of day",children:[Ne&&t.jsx("span",{className:p.periodTabIndicator,style:{transform:`translateX(${Ne.left}px)`,width:Ne.width},"aria-hidden":"true"}),L.map(o=>{const x=Yo[o],D=o==="evening"&&We,z=D?"planPeriodEveningNight":Uo[o];return t.jsxs("button",{ref:A=>{De.current[o]=A},type:"button",className:Q(p.periodTab,o===H&&p.periodTabSelected),role:"tab","aria-selected":o===H,onClick:()=>Pe(o),children:[t.jsx(x,{}),C?.(z)??(D?"Evening/Night":o.charAt(0).toUpperCase()+o.slice(1))]},o)})]}),t.jsx("div",{className:p.timeGrid,role:"radiogroup","aria-label":"Consultation time",children:te.map((o,x)=>t.jsx("button",{type:"button",className:Q(p.timeSlot,xe===o.start&&p.timeSlotSelected),role:"radio","aria-checked":xe===o.start,onClick:()=>Le(o),children:xt(o.start)},`${o.start}-${x}`))},`${J}-${H}`)]})]})},bt="+05:30",Ko=a=>{const r=String(a.getMonth()+1).padStart(2,"0"),s=String(a.getDate()).padStart(2,"0");return`${a.getFullYear()}-${r}-${s}`},zo=(a,r,s,c)=>{const l=d=>String(d).padStart(2,"0"),u=s+30,_=r+Math.floor(u/60);return{start:`${a}T${l(r)}:${l(s)}:00${bt}`,end:`${a}T${l(_)}:${l(u%60)}:00${bt}`,period:c}},Go={morning:[[9,0],[9,30],[10,0],[10,30],[11,0],[11,30]],afternoon:[[12,30],[13,0],[14,0],[15,30],[16,0]],evening:[[18,0],[18,30],[19,0],[20,0]]},Re=(a,r)=>{const s=new Date;s.setDate(s.getDate()+a);const c=Ko(s),l=r.flatMap(u=>Go[u].map(([_,d])=>zo(c,_,d,u)));return{date:c,has_availability:l.length>0,slots:l}},Tt=[Re(0,["morning","afternoon","evening"]),Re(1,["morning","afternoon"]),Re(2,["afternoon","evening"]),Re(3,["morning","evening"]),Re(4,["morning","afternoon","evening"])],Vo=Tt.map(a=>({...a,has_availability:!1,slots:[]}));exports.AstrologyProfilesSection=St;exports.CONSULTATION_LANGUAGE_OPTIONS=wt;exports.CONSULTATION_PERIOD_ORDER=jt;exports.CircularMarquee=vt;exports.ConsultationSlotSelector=Ho;exports.ContactUsSection=Rr;exports.FAQAccordion=In;exports.FooterCTAButton=gr;exports.FooterShell=pr;exports.FormCheckboxWithHelp=er;exports.FormContainer=Yn;exports.FormDateInput=Ra;exports.FormField=pa;exports.FormFooterNote=ar;exports.FormLocationInput=Fa;exports.FormSectionHeader=Qn;exports.FormSegmentedControl=Ua;exports.FormTagPills=Ga;exports.FormTextInput=ja;exports.FormTimeInput=Da;exports.MOCK_SLOT_DAYS=Tt;exports.MOCK_SLOT_DAYS_EMPTY=Vo;exports.MarqueeStrip=jr;exports.PageHeader=Bn;exports.PhoneNumberSection=Nt;exports.PrivacyBanner=aa;exports.UserReviewsSection=gn;exports.footerShellStyles=le;exports.formatSlotDayLabel=yt;exports.formatSlotTime=xt;
14
+ <%s key={someKey} {...props} />`,Xe,pe,an,pe),ht[pe+Xe]=!0}}return t===s?Zt(P):Xt(P),P}}function Qt(t,o,d){return pt(t,o,d,!0)}function en(t,o,d){return pt(t,o,d,!1)}var tn=en,nn=Qt;Le.Fragment=s,Le.jsx=tn,Le.jsxs=nn})()),Le}var bt;function cn(){return bt||(bt=1,process.env.NODE_ENV==="production"?He.exports=on():He.exports=sn()),He.exports}var e=cn();const ln="_section_1fboo_1",dn="_heading_1fboo_5",un="_trustLine_1fboo_9",mn="_star_1fboo_13",_n="_ratingNum_1fboo_17",hn="_trustText_1fboo_21",pn="_cardList_1fboo_25",fn="_card_1fboo_25",gn="_quote_1fboo_37",bn="_author_1fboo_41",vn="_avatar_1fboo_45",xn="_avatarPlaceholder_1fboo_49",yn="_authorInfo_1fboo_54",wn="_authorName_1fboo_58",jn="_stars_1fboo_62",Nn="_readMoreWrap_1fboo_66",Sn="_toggleBtn_1fboo_70",Tn="_readMore_1fboo_66",kn="_arrow_1fboo_89",Rn="_dot_1fboo_93",I={section:ln,heading:dn,trustLine:un,star:mn,ratingNum:_n,trustText:hn,cardList:pn,card:fn,quote:gn,author:bn,avatar:vn,avatarPlaceholder:xn,authorInfo:yn,authorName:wn,stars:jn,readMoreWrap:Nn,toggleBtn:Sn,readMore:Tn,arrow:kn,dot:Rn},In=3,vt=15;function Cn(n){const a=new Map;for(let u=1;u<=vt;u+=1){const _=`feedbackTestimonial${u}`,p=n(_);if(!p||p===_)continue;const v=`feedbackAuthor${u}`,h=(()=>{const C=n(v);return C&&C!==v?C:n("guest")})(),x=`feedbackAuthor${u}AvatarUrl`,w=(()=>{const C=n(x);return C&&C!==x?C:void 0})();a.set(u,{quote:p,authorName:h,authorAvatarUrl:w,rating:5})}const r=[],s=[];for(let u=1;u<=vt;u+=1)u>=9?s.push(u):r.push(u);const c=[];let l=0,m=0;for(;l<r.length||m<s.length;){if(m<s.length){const u=s[m++],_=a.get(u);_&&c.push(_)}if(l<r.length){const u=r[l++],_=a.get(u);_&&c.push(_)}}return c}function En({t:n,testimonials:a,initialVisible:r=In,readMoreHref:s,onReadMore:c,className:l="",headingClassName:m}){const u=a??g.useMemo(()=>Cn(n),[n]),[_,p]=g.useState(!1),v=u.length>r,h=v&&!_?u.slice(0,r):u,x=n("feedbackTitle"),w=n("feedbackRating"),C=n("feedbackTrust"),G=n("readMoreReviews"),O=n("readLess");return e.jsxs("section",{className:`${I.section} ${l}`,"aria-labelledby":"reviews-heading",children:[e.jsx("h2",{id:"reviews-heading",className:[I.heading,m].filter(Boolean).join(" "),children:x}),e.jsxs("p",{className:I.trustLine,children:[e.jsx("span",{className:I.star,"aria-hidden":!0,children:"★"}),e.jsx("span",{className:I.ratingNum,children:w}),e.jsx("span",{className:I.dot,"aria-hidden":!0}),e.jsx("span",{className:I.trustText,children:C})]}),e.jsx("ul",{className:I.cardList,children:h.map((E,R)=>e.jsxs("li",{className:I.card,children:[e.jsx("p",{className:I.quote,children:E.quote}),e.jsxs("div",{className:I.author,children:[E.authorAvatarUrl?e.jsx("img",{src:E.authorAvatarUrl,alt:"",className:I.avatar,width:40,height:40}):e.jsx("div",{className:I.avatarPlaceholder,"aria-hidden":!0}),e.jsxs("div",{className:I.authorInfo,children:[e.jsx("span",{className:I.authorName,children:E.authorName}),e.jsx("span",{className:I.stars,"aria-hidden":!0,children:"★".repeat(E.rating??5)})]})]})]},R))}),v&&e.jsx("div",{className:I.readMoreWrap,children:e.jsxs("button",{type:"button",className:I.toggleBtn,onClick:()=>p(E=>!E),"aria-expanded":_,children:[_?O:G,e.jsx("span",{className:I.arrow,"aria-hidden":!0,children:"›"})]})}),(s||c)&&!v&&e.jsx("div",{className:I.readMoreWrap,children:s?e.jsxs("a",{href:s,className:I.readMore,target:"_blank",rel:"noopener noreferrer",children:[G,e.jsx("span",{className:I.arrow,"aria-hidden":!0,children:"›"})]}):e.jsxs("button",{type:"button",className:I.readMore,onClick:()=>c?.(),children:[G,e.jsx("span",{className:I.arrow,"aria-hidden":!0,children:"›"})]})})]})}const $n="_section_4dc65_1",Ln="_heading_4dc65_5",Pn="_accordion_4dc65_9",On="_item_4dc65_13",Dn="_itemOpen_4dc65_17",An="_question_4dc65_22",Mn="_chevron_4dc65_30",Bn="_chevronOpen_4dc65_34",Fn="_answerWrap_4dc65_38",Wn="_answerOpen_4dc65_42",qn="_answer_4dc65_38",J={section:$n,heading:Ln,accordion:Pn,item:On,itemOpen:Dn,question:An,chevron:Mn,chevronOpen:Bn,answerWrap:Fn,answerOpen:Wn,answer:qn};function Un({t:n,items:a,resolveAnswerKey:r,defaultOpenIndex:s=0,onItemOpen:c,className:l="",headingClassName:m}){const u=g.useMemo(()=>a.map(({qKey:h,aKey:x})=>({question:n(h),answer:n(r?r(x):x)})),[n,a,r]),[_,p]=g.useState(s),v=n("faqTitle");return e.jsxs("section",{className:`${J.section} ${l}`,"aria-labelledby":"faq-heading",children:[e.jsx("h2",{id:"faq-heading",className:[J.heading,m].filter(Boolean).join(" "),children:v}),e.jsx("div",{className:J.accordion,role:"list",children:u.map((h,x)=>{const w=_===x;return e.jsxs("div",{className:`${J.item} ${w?J.itemOpen:""}`,role:"listitem",children:[e.jsxs("button",{type:"button",className:J.question,onClick:()=>{const C=!w;p(w?-1:x),C&&c?.(h.question)},"aria-expanded":w,"aria-controls":`faq-answer-${x}`,id:`faq-question-${x}`,children:[e.jsx("span",{children:h.question}),e.jsx("span",{className:`${J.chevron} ${w?J.chevronOpen:""}`,"aria-hidden":!0,children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none","aria-hidden":!0,focusable:"false",children:e.jsx("path",{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",fill:"currentColor"})})})]}),e.jsx("div",{id:`faq-answer-${x}`,role:"region","aria-labelledby":`faq-question-${x}`,className:`${J.answerWrap} ${w?J.answerOpen:""}`,hidden:!w,children:e.jsx("p",{className:J.answer,children:h.answer})})]},x)})})]})}const Hn="_header_dbx4y_1",Kn="_brand_dbx4y_7",Yn="_logo_dbx4y_11",zn="_logoImg_dbx4y_15",Gn="_logoPlaceholder_dbx4y_21",Vn="_brandText_dbx4y_29",Jn="_brandName_dbx4y_33",Xn="_rating_dbx4y_38",Zn="_langSlot_dbx4y_49",ne={header:Hn,brand:Kn,logo:Yn,logoImg:zn,logoPlaceholder:Gn,brandText:Vn,brandName:Jn,rating:Xn,langSlot:Zn},xt=120,yt=40;function Qn({t:n,logoUrl:a,imageComponent:r,languageSelector:s,showLanguageSelector:c=!0,className:l=""}){const m=c&&s!=null,u=n("sriMandir"),_=n("ratingText");return e.jsxs("header",{className:`${ne.header} ${l}`,children:[e.jsxs("div",{className:ne.brand,children:[e.jsx("div",{className:ne.logo,children:a?r?e.jsx(r,{src:a,alt:u,className:ne.logoImg,width:xt,height:yt}):e.jsx("img",{src:a,alt:u,className:ne.logoImg,width:xt,height:yt,decoding:"async"}):e.jsx("div",{className:ne.logoPlaceholder,"aria-hidden":!0})}),e.jsxs("div",{className:ne.brandText,children:[e.jsx("span",{className:ne.brandName,children:u}),_!=null&&_!==""&&e.jsx("span",{className:ne.rating,children:_})]})]}),m&&e.jsx("div",{className:ne.langSlot,children:s})]})}const ea="_wrap_1vbpd_1",ta="_card_1vbpd_5",na="_cardInner_1vbpd_10",Ze={wrap:ea,card:ta,cardInner:na};function aa({children:n,className:a="","aria-label":r}){return e.jsx("section",{className:`${Ze.wrap} ${a}`,"aria-label":r,children:e.jsx("div",{className:Ze.card,children:e.jsx("div",{className:Ze.cardInner,children:n})})})}const ra="_header_a05ni_1",oa="_left_a05ni_7",sa="_backBtn_a05ni_11",ia="_titleWrap_a05ni_21",ca="_title_a05ni_21",la="_subtitle_a05ni_31",da="_backIcon_a05ni_37",fe={header:ra,left:oa,backBtn:sa,titleWrap:ia,title:ca,subtitle:la,backIcon:da},ua=()=>e.jsx("svg",{className:fe.backIcon,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:e.jsx("path",{d:"M15 18l-6-6 6-6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});function ma({title:n,subtitle:a,onBack:r,backAriaLabel:s="Back",className:c=""}){return e.jsx("header",{className:`${fe.header} ${c}`,children:e.jsxs("div",{className:fe.left,children:[r!=null&&e.jsx("button",{type:"button",className:fe.backBtn,onClick:r,"aria-label":s,children:e.jsx(ua,{})}),e.jsxs("div",{className:fe.titleWrap,children:[e.jsx("h1",{className:fe.title,children:n}),a!=null&&a!==""&&e.jsx("p",{className:fe.subtitle,children:a})]})]})})}const _a="_banner_1jco0_1",ha="_icon_1jco0_12",pa="_text_1jco0_16",Qe={banner:_a,icon:ha,text:pa},fa="https://srm-cdn.a4b.io/yoda/1770707793537.svg";function ga({text:n,iconUrl:a=fa,className:r=""}){return e.jsx("div",{className:`${Qe.banner} ${r}`,role:"status",children:e.jsxs("span",{className:Qe.text,children:[" ",e.jsx("img",{src:a,alt:"",className:Qe.icon,width:18,height:18,"aria-hidden":!0})," ",n]})})}const ba="_field_eqt7q_1",va="_labelRow_eqt7q_5",xa="_label_eqt7q_5",ya="_req_eqt7q_14",wa="_help_eqt7q_18",ja="_infoBtn_eqt7q_22",Na="_infoImg_eqt7q_30",Sa="_infoWrap_eqt7q_34",Ta="_tooltip_eqt7q_38",ka="_tooltipArrow_eqt7q_45",Ra="_inputWrap_eqt7q_50",X={field:ba,labelRow:va,label:xa,req:ya,help:wa,infoBtn:ja,infoImg:Na,infoWrap:Sa,tooltip:Ta,tooltipArrow:ka,inputWrap:Ra},Ia="https://srm-cdn.a4b.io/yoda/1770372066357.svg";function Ca({label:n,id:a,required:r=!1,help:s,infoTooltip:c,infoAriaLabel:l="Info",infoIconUrl:m=Ia,children:u,className:_=""}){const[p,v]=g.useState(!1);return g.useEffect(()=>{if(!c)return;const h=w=>{w.target?.closest?.("[data-info-tooltip]")==null&&v(!1)},x=w=>{w.key==="Escape"&&v(!1)};return document.addEventListener("mousedown",h),document.addEventListener("keydown",x),()=>{document.removeEventListener("mousedown",h),document.removeEventListener("keydown",x)}},[c]),e.jsxs("div",{className:`${X.field} ${_}`,children:[e.jsxs("div",{className:X.labelRow,children:[e.jsxs("label",{className:X.label,htmlFor:a,children:[n,r&&e.jsx("span",{className:X.req,children:"*"})]}),c!=null&&c!==""&&e.jsxs("div",{className:X.infoWrap,"data-info-tooltip":!0,children:[e.jsx("button",{type:"button",className:X.infoBtn,"aria-label":l,"aria-expanded":p,onClick:()=>v(h=>!h),children:e.jsx("img",{className:X.infoImg,src:m,alt:"","aria-hidden":!0})}),p&&e.jsxs("div",{className:X.tooltip,role:"tooltip",children:[c,e.jsx("span",{className:X.tooltipArrow,"aria-hidden":!0})]})]})]}),s!=null&&s!==""&&e.jsx("div",{className:X.help,children:s}),e.jsx("div",{className:X.inputWrap,children:u})]})}const Ea="_wrap_1uy4o_1",$a="_input_1uy4o_5",La="_iconBtn_1uy4o_21",Pa="_iconBtnInteractive_1uy4o_25",Oa="_iconImg_1uy4o_39",je={wrap:Ea,input:$a,iconBtn:La,iconBtnInteractive:Pa,iconImg:Oa};function Da({id:n,iconUrl:a,iconAlt:r="",iconInteractive:s=!1,onIconClick:c,className:l="",...m}){return e.jsxs("div",{className:`${je.wrap} ${l}`,children:[e.jsx("input",{...m,id:n,className:je.input,type:m.type??"text"}),a!=null&&e.jsx("button",{type:"button",className:s?`${je.iconBtn} ${je.iconBtnInteractive}`:je.iconBtn,"aria-label":r||void 0,onClick:s?c:void 0,tabIndex:s?0:-1,children:e.jsx("img",{className:je.iconImg,src:a,alt:"","aria-hidden":!0,width:22,height:22})})]})}const Aa="_wrap_t646o_1",Ma="_input_t646o_5",Ba="_iconBtn_t646o_28",Fa="_iconImg_t646o_42",Ke={wrap:Aa,input:Ma,iconBtn:Ba,iconImg:Fa},Wa="https://srm-cdn.a4b.io/yoda/1770372045894.svg";function qa({id:n,value:a,onChange:r,onIconClick:s,className:c="",...l}){const m=g.useRef(null),u=g.useMemo(()=>{const p=new Date,v=h=>String(h).padStart(2,"0");return`${p.getFullYear()}-${v(p.getMonth()+1)}-${v(p.getDate())}`},[]),_=()=>{if(s){s();return}const p=m.current;p&&typeof p.showPicker=="function"?p.showPicker():p?.focus()};return e.jsxs("div",{className:`${Ke.wrap} ${c}`,children:[e.jsx("input",{...l,ref:m,id:n,type:"date",className:Ke.input,value:a,max:u,onChange:p=>r(p.target.value)}),e.jsx("button",{type:"button",className:`${Ke.iconBtn}`,"aria-label":"Open date picker",onMouseDown:p=>p.preventDefault(),onClick:p=>{p.preventDefault(),_()},children:e.jsx("img",{className:Ke.iconImg,src:Wa,alt:"","aria-hidden":!0,width:22,height:22})})]})}const Ua="_wrap_1jdg7_1",Ha="_input_1jdg7_5",Ka="_iconBtn_1jdg7_34",Ya="_iconImg_1jdg7_48",Ye={wrap:Ua,input:Ha,iconBtn:Ka,iconImg:Ya},za="https://srm-cdn.a4b.io/yoda/1770372014782.svg";function Ga({id:n,value:a,onChange:r,placeholder:s="HH:MM AM",disabled:c=!1,onIconClick:l,className:m=""}){return e.jsxs("div",{className:`${Ye.wrap} ${m}`,children:[e.jsx("input",{id:n,type:"time",className:Ye.input,value:a,onChange:u=>r(u.target.value),placeholder:s,disabled:c,onClick:()=>!c&&l?.()}),e.jsx("button",{type:"button",className:Ye.iconBtn,"aria-label":"Open time picker",disabled:c,onClick:u=>{u.preventDefault(),c||l?.()},children:e.jsx("img",{className:Ye.iconImg,src:za,alt:"","aria-hidden":!0,width:22,height:22})})]})}const Va="_wrap_1bb6o_1",Ja="_input_1bb6o_5",Xa="_iconBtn_1bb6o_21",Za="_iconImg_1bb6o_25",ze={wrap:Va,input:Ja,iconBtn:Xa,iconImg:Za},Qa="https://srm-cdn.a4b.io/yoda/1770372031092.svg";function er({id:n,iconUrl:a=Qa,className:r="",...s}){return e.jsxs("div",{className:`${ze.wrap} ${r}`,children:[e.jsx("input",{...s,id:n,className:ze.input,type:"text"}),e.jsx("div",{className:ze.iconBtn,"aria-hidden":!0,children:e.jsx("img",{className:ze.iconImg,src:a,alt:"",width:22,height:22})})]})}const tr="_segmented_3sa9v_1",nr="_segmentedOption_3sa9v_6",ar="_active_3sa9v_15",et={segmented:tr,segmentedOption:nr,active:ar};function rr({id:n,options:a,value:r,onChange:s,className:c=""}){return e.jsx("div",{className:`${et.segmented} ${c}`,role:"group","aria-labelledby":`${n}-label`,children:a.map(l=>e.jsx("button",{type:"button",id:l.value===r?n:void 0,className:`${et.segmentedOption} ${l.value===r?et.active:""}`,onClick:()=>s(l.value),children:l.label},l.value))})}const or="_pillsWrap_z1kui_1",sr="_pill_z1kui_1",ir="_selected_z1kui_17",tt={pillsWrap:or,pill:sr,selected:ir};function cr({id:n,options:a,selected:r,onChange:s,className:c=""}){const l=m=>{r.includes(m)?s(r.filter(u=>u!==m)):s([...r,m])};return e.jsx("div",{className:`${tt.pillsWrap} ${c}`,role:"group","aria-labelledby":`${n}-label`,children:a.map(m=>e.jsx("button",{type:"button",className:`${tt.pill} ${r.includes(m.key)?tt.selected:""}`,onClick:()=>l(m.key),children:m.label},m.key))})}const lr="_wrapper_i6a5b_2",dr="_checkboxRow_i6a5b_6",ur="_checkbox_i6a5b_6",mr="_checkboxText_i6a5b_31",_r="_checkboxHelp_i6a5b_37",Pe={wrapper:lr,checkboxRow:dr,checkbox:ur,checkboxText:mr,checkboxHelp:_r};function hr({id:n,checked:a,onChange:r,primaryText:s,helpText:c,className:l=""}){return e.jsxs("div",{className:`${Pe.wrapper} ${l}`,children:[e.jsxs("div",{className:Pe.checkboxRow,children:[e.jsx("input",{id:n,type:"checkbox",className:Pe.checkbox,checked:a,onChange:m=>r(m.target.checked)}),e.jsx("label",{htmlFor:n,className:Pe.checkboxText,children:s})]}),c!=null&&c!==""&&e.jsx("p",{className:Pe.checkboxHelp,children:c})]})}const pr="_footerNote_laev3_1",fr={footerNote:pr};function gr({children:n,className:a=""}){return e.jsx("p",{className:`${fr.footerNote} ${a}`,children:n})}const br="_footer_86zxt_1",vr="_inner_86zxt_8",xr="_badges_86zxt_12",yr="_marqueeContent_86zxt_20",wr="_badge_86zxt_12",jr="_badgeIcon_86zxt_35",Nr="_ctaWrap_86zxt_39",Sr="_ctaStruck_86zxt_43",Tr="_ctaButton_86zxt_49",kr="_offerRow_86zxt_69",Rr="_pill_86zxt_76",Ir="_ctaStatic_86zxt_85",ge={footer:br,inner:vr,badges:xr,marqueeContent:yr,badge:wr,badgeIcon:jr,ctaWrap:Nr,ctaStruck:Sr,ctaButton:Tr,offerRow:kr,pill:Rr,ctaStatic:Ir};function Cr({marquee:n,children:a,className:r=""}){return e.jsx("footer",{className:`${ge.footer} ${r}`,role:"contentinfo",children:e.jsxs("div",{className:ge.inner,children:[n!=null&&e.jsx("div",{className:ge.badges,"aria-hidden":!0,children:n}),e.jsx("div",{className:ge.ctaWrap,children:a})]})})}function Er({children:n,href:a,disabled:r=!1,onClick:s,static:c=!1,className:l="","aria-label":m}){const u=`${ge.ctaButton} ${l}`.trim(),_=`${ge.ctaStatic} ${l}`.trim(),p=m!=null?{"aria-label":m}:{};return c?e.jsx("div",{className:_,role:"presentation",children:n}):a!=null?e.jsx("a",{href:a,className:u,target:"_blank",rel:"noopener noreferrer","aria-disabled":r,onClick:v=>r&&v.preventDefault(),...p,children:n}):e.jsx("button",{type:"button",className:u,disabled:r,onClick:s,...p,children:n})}const $r="_wrapper_wxjzs_1",Lr="_track_wxjzs_7",wt={wrapper:$r,track:Lr};function Tt({children:n,className:a=""}){return e.jsx("div",{className:`${wt.wrapper} ${a}`,"aria-hidden":!0,children:e.jsxs("div",{className:wt.track,children:[n,n]})})}const Pr="_strip_2838b_1",Or={strip:Pr};function Dr({children:n,className:a=""}){return e.jsx("div",{className:`${Or.strip} ${a}`,role:"region","aria-label":"Trust badges",children:e.jsx(Tt,{children:n})})}const Ar="_section_8y3x9_1",Mr="_heading_8y3x9_6",Br="_content_8y3x9_11",Fr="_line_8y3x9_16",Wr="_brandName_8y3x9_20",Ne={section:Ar,heading:Mr,content:Br,line:Fr,brandName:Wr};function qr({title:n,brandName:a,whatsAppLine:r,emailLine:s,className:c=""}){return e.jsxs("section",{className:`${Ne.section} ${c}`,"aria-labelledby":"contact-heading",children:[e.jsx("h2",{id:"contact-heading",className:Ne.heading,children:n}),e.jsxs("div",{className:Ne.content,children:[e.jsx("p",{className:Ne.brandName,children:a}),e.jsx("p",{className:Ne.line,children:r}),e.jsx("p",{className:Ne.line,children:s})]})]})}const kt=n=>{const a=n.match(/T(\d{2}):(\d{2})/);if(!a)return n;const r=Number(a[1]),s=a[2],c=r>=12?"PM":"AM";return`${r%12||12}:${s} ${c}`},Rt=(n,a=new Date)=>{const r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],s=new Date(`${n}T00:00:00`);if(Number.isNaN(s.getTime()))return{id:n,dayLabel:n,dayNum:""};const c=u=>new Date(u.getFullYear(),u.getMonth(),u.getDate()).getTime(),l=Math.round((c(s)-c(a))/(1e3*60*60*24)),m=l===0?"Today":l===1?"Tomorrow":r[s.getDay()];return{id:n,dayLabel:m,dayNum:String(s.getDate())}},It=["morning","afternoon","evening"],Ct=[{code:"en",labelKey:"formReportLanguageEnglish",label:"English"},{code:"hi",labelKey:"formReportLanguageHindi",label:"Hindi"},{code:"te",labelKey:"formReportLanguageTelugu",label:"Telugu"},{code:"kn",labelKey:"formReportLanguageKannada",label:"Kannada"},{code:"gu",labelKey:"formReportLanguageGujarati",label:"Gujarati"},{code:"mr",labelKey:"formReportLanguageMarathi",label:"Marathi"},{code:"ta",labelKey:"formReportLanguageTamil",label:"Tamil"}],Ur=()=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,children:e.jsx("path",{d:"M3.5 8.5l2.5 2.5 6-6",stroke:"#22c55e",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}),Hr=()=>e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:e.jsx("path",{d:"M6 9l6 6 6-6"})}),Kr=()=>e.jsx("img",{src:"https://srm-cdn.a4b.io/yoda/1785316603029.svg",width:16,height:16,alt:"","aria-hidden":!0}),Yr=()=>e.jsx("img",{src:"https://srm-cdn.a4b.io/yoda/1785316621747.svg",width:16,height:16,alt:"","aria-hidden":!0}),zr=()=>e.jsx("img",{src:"https://srm-cdn.a4b.io/yoda/1785316635953.svg",width:16,height:16,alt:"","aria-hidden":!0}),Gr=()=>e.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:[e.jsx("rect",{x:"3",y:"4.5",width:"18",height:"16",rx:"3",stroke:"#D1D5DB",strokeWidth:"1.6"}),e.jsx("path",{d:"M3 9.5h18",stroke:"#D1D5DB",strokeWidth:"1.6"}),e.jsx("path",{d:"M8 2.5v4M16 2.5v4",stroke:"#D1D5DB",strokeWidth:"1.6",strokeLinecap:"round"}),e.jsx("path",{d:"M7.5 20.5L17 6",stroke:"#9CA3AF",strokeWidth:"1.6",strokeLinecap:"round"})]}),Vr="_section_1ltqn_2",Jr="_headerRow_1ltqn_10",Xr="_title_1ltqn_18",Zr="_changeBtn_1ltqn_24",Qr="_numberRow_1ltqn_35",eo="_countryCode_1ltqn_44",to="_number_1ltqn_35",no="_helper_1ltqn_59",oe={section:Vr,headerRow:Jr,title:Xr,changeBtn:Zr,numberRow:Qr,countryCode:eo,number:to,helper:no},Et=({title:n,countryCode:a="+91",phoneNumber:r="98765 43210",helperText:s,onEdit:c,t:l,className:m=""})=>e.jsxs("section",{className:[oe.section,m].filter(Boolean).join(" "),children:[e.jsxs("div",{className:oe.headerRow,children:[e.jsx("span",{className:oe.title,children:n??l?.("planPhoneNumberHeading")??"Your phone number"}),c&&e.jsx("button",{type:"button",className:oe.changeBtn,onClick:c,children:l?.("planPhoneNumberChange")??"Change"})]}),e.jsxs("div",{className:oe.numberRow,children:[e.jsx("span",{className:oe.countryCode,children:a}),e.jsx("span",{className:oe.number,children:r})]}),e.jsx("p",{className:oe.helper,children:s??l?.("planPhoneNumberHelper")??"The astrologer will call you on this number at your booked slot."})]}),ao="_section_12hk9_2",ro="_title_12hk9_6",oo="_profileRow_12hk9_13",so="_profileCard_12hk9_26",io="_profileCardSelected_12hk9_47",co="_profileTop_12hk9_52",lo="_avatar_12hk9_60",uo="_profileName_12hk9_74",mo="_relationPill_12hk9_84",_o="_profileMeta_12hk9_98",ho="_addCard_12hk9_108",po="_addIcon_12hk9_127",Y={section:ao,title:ro,profileRow:oo,profileCard:so,profileCardSelected:io,profileTop:co,avatar:lo,profileName:uo,relationPill:mo,profileMeta:_o,addCard:ho,addIcon:po},fo=[{id:"self",name:"Aarav Sharma",birthDetails:"12 Mar 1994 • 06:45 AM",birthPlace:"Bengaluru, India",relation:"Self"},{id:"spouse",name:"Diya Sharma",birthDetails:"04 Sep 1996 • 11:20 PM",birthPlace:"Pune, India",relation:"Spouse"}],$t=({title:n,profiles:a=fo,selectedProfileId:r,onProfileSelect:s,onAddProfile:c,t:l,className:m=""})=>{const[u,_]=g.useState(a[0]?.id??""),p=r??u,v=h=>{_(h),s?.(h)};return e.jsxs("section",{className:[Y.section,m].filter(Boolean).join(" "),children:[e.jsx("p",{className:Y.title,children:n??l?.("planAstrologyProfilesHeading")??"Astrology profile"}),e.jsxs("div",{className:Y.profileRow,role:"radiogroup","aria-label":"Astrology profile",children:[a.map(h=>{const x=h.id===p;return e.jsxs("button",{type:"button",role:"radio","aria-checked":x,className:[Y.profileCard,x?Y.profileCardSelected:""].filter(Boolean).join(" "),onClick:()=>v(h.id),children:[e.jsxs("span",{className:Y.profileTop,children:[e.jsx("span",{className:Y.avatar,"aria-hidden":!0,children:h.name.charAt(0).toUpperCase()}),e.jsx("span",{className:Y.profileName,children:h.name})]}),h.relation&&e.jsx("span",{className:Y.relationPill,children:h.relation}),h.birthDetails&&e.jsx("span",{className:Y.profileMeta,children:h.birthDetails}),h.birthPlace&&e.jsx("span",{className:Y.profileMeta,children:h.birthPlace})]},h.id)}),c&&e.jsxs("button",{type:"button",className:Y.addCard,onClick:c,children:[e.jsx("span",{className:Y.addIcon,"aria-hidden":!0,children:"+"}),l?.("planAddAstrologyProfile")??"Add profile"]})]})]})},go="_root_1ywut_6",bo="_languageRow_1ywut_19",vo="_languageLabel_1ywut_27",xo="_languageDropdown_1ywut_33",yo="_languageDropdownBtn_1ywut_37",wo="_languageMenu_1ywut_52",jo="_languageMenuItem_1ywut_69",No="_languageMenuItemSelected_1ywut_83",So="_languageDivider_1ywut_89",To="_sectionHeading_1ywut_96",ko="_reportReadyBanner_1ywut_104",Ro="_reportReadyDuration_1ywut_113",Io="_dateTabs_1ywut_119",Co="_dateTabIndicator_1ywut_131",Eo="_dateTab_1ywut_119",$o="_dateTabDivider_1ywut_165",Lo="_dateTabSelected_1ywut_175",Po="_dateTabLabel_1ywut_180",Oo="_dateTabNum_1ywut_187",Do="_periodTabs_1ywut_201",Ao="_periodTabIndicator_1ywut_129",Mo="_periodTab_1ywut_129",Bo="_periodTabSelected_1ywut_248",Fo="_timeGrid_1ywut_253",Wo="_emptyState_1ywut_280",qo="_timeSlot_1ywut_284",Uo="_timeSlotSelected_1ywut_300",Ho="_stateMessage_1ywut_308",Ko="_retryBtn_1ywut_315",Yo="_emptyStateIcon_1ywut_341",zo="_emptyStateTitle_1ywut_352",Go="_emptyStateSubtitle_1ywut_359",Vo="_loadingWrap_1ywut_368",Jo="_skeletonShimmer_1ywut_373",Xo="_skeletonDateTabs_1ywut_387",Zo="_skeletonDateTab_1ywut_387",Qo="_skeletonPeriodTabs_1ywut_401",es="_skeletonPeriodTab_1ywut_401",ts="_skeletonTimeGrid_1ywut_416",ns="_skeletonTimeSlot_1ywut_422",b={root:go,languageRow:bo,languageLabel:vo,languageDropdown:xo,languageDropdownBtn:yo,languageMenu:wo,languageMenuItem:jo,languageMenuItemSelected:No,languageDivider:So,sectionHeading:To,reportReadyBanner:ko,reportReadyDuration:Ro,dateTabs:Io,dateTabIndicator:Co,dateTab:Eo,dateTabDivider:$o,dateTabSelected:Lo,dateTabLabel:Po,dateTabNum:Oo,periodTabs:Do,periodTabIndicator:Ao,periodTab:Mo,periodTabSelected:Bo,timeGrid:Fo,emptyState:Wo,timeSlot:qo,timeSlotSelected:Uo,stateMessage:Ho,retryBtn:Ko,emptyStateIcon:Yo,emptyStateTitle:zo,emptyStateSubtitle:Go,loadingWrap:Vo,skeletonShimmer:Jo,skeletonDateTabs:Xo,skeletonDateTab:Zo,skeletonPeriodTabs:Qo,skeletonPeriodTab:es,skeletonTimeGrid:ts,skeletonTimeSlot:ns},as={morning:Kr,afternoon:Yr,evening:zr},rs={morning:"planPeriodMorning",afternoon:"planPeriodAfternoon",evening:"planPeriodEvening"},se=(...n)=>n.filter(Boolean).join(" "),os=({days:n,loading:a=!1,error:r=!1,onRetry:s,selectedDate:c,onDateSelect:l,selectedPeriod:m,onPeriodSelect:u,selectedSlotStart:_,onSlotSelect:p,hideLanguageSelector:v=!1,languageOptions:h=Ct,selectedLanguage:x,onLanguageSelect:w,showPhoneNumberSection:C=!0,phoneNumberSection:G,showAstrologyProfilesSection:O=!0,astrologyProfilesSection:E,heading:R,languageLabel:ie,reportReadyNote:ae,isGlobal:ce=!0,t:$,className:re=""})=>{const U=g.useMemo(()=>n.filter(i=>i.has_availability&&i.slots.length>0),[n]),[le,Se]=g.useState(""),Z=g.useMemo(()=>{const i=c??le;return U.some(j=>j.date===i)?i:U[0]?.date??""},[c,le,U]),V=g.useMemo(()=>U.find(i=>i.date===Z)??null,[U,Z]),D=g.useMemo(()=>{if(!V)return[];const i=new Set(V.slots.map(j=>j.period));return It.filter(j=>i.has(j))},[V]),[H,T]=g.useState(""),A=g.useMemo(()=>{const i=m??H;return i&&D.includes(i)?i:D[0]??"morning"},[m,H,D]),Q=g.useMemo(()=>V?V.slots.filter(i=>i.period===A):[],[V,A]),[Te,Ae]=g.useState(""),ke=g.useMemo(()=>{if(_===null)return"";const i=_??Te;return Q.some(j=>j.start===i)?i:Q[0]?.start??""},[_,Te,Q]),[Me,Be]=g.useState(()=>h[0]?.code??"en"),Re=x??Me,Ie=h.find(i=>i.code===Re)??h[0],[be,de]=g.useState(!1),ue=g.useRef(null);g.useEffect(()=>{if(!be)return;const i=j=>{ue.current&&!ue.current.contains(j.target)&&de(!1)};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[be]);const me=g.useRef(null),ve=g.useRef({}),[ee,Fe]=g.useState(null),Ce=g.useRef(null),We=g.useRef({}),[Ee,_e]=g.useState(null);g.useEffect(()=>{const i=()=>{const j=me.current,M=ve.current[Z];if(!j||!M){Fe(null);return}const te=j.getBoundingClientRect(),K=M.getBoundingClientRect();Fe({left:K.left-te.left,top:K.top-te.top,width:K.width,height:K.height})};return i(),window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[Z,U,a,r]),g.useEffect(()=>{const i=()=>{const j=Ce.current,M=We.current[A];if(!j||!M){_e(null);return}const te=j.getBoundingClientRect(),K=M.getBoundingClientRect();_e({left:K.left-te.left,width:K.width})};return i(),window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[A,D,a,r]);const he=i=>{Se(i),l?.(i)},qe=i=>{T(i),u?.(i)},Ue=i=>{Ae(i.start),p?.(i)},xe=i=>{Be(i),de(!1),w?.(i)};return e.jsxs("div",{className:se(b.root,re),children:[C&&(G??e.jsx(Et,{t:$})),O&&(E??e.jsx($t,{t:$})),!v&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:b.languageRow,children:[e.jsx("span",{className:b.languageLabel,children:ie??$?.("planConsultationLanguageLabel")??"Your consultation language"}),e.jsxs("div",{className:b.languageDropdown,ref:ue,children:[e.jsxs("button",{type:"button",className:b.languageDropdownBtn,onClick:()=>de(i=>!i),"aria-haspopup":"listbox","aria-expanded":be,children:[(Ie?.labelKey&&$?.(Ie.labelKey))??Ie?.label,e.jsx(Hr,{})]}),be&&e.jsx("ul",{className:b.languageMenu,role:"listbox",children:h.map(i=>{const j=i.code===Re;return e.jsxs("li",{role:"option","aria-selected":j,className:se(b.languageMenuItem,j&&b.languageMenuItemSelected),onClick:()=>xe(i.code),children:[(i.labelKey&&$?.(i.labelKey))??i.label,j&&e.jsx(Ur,{})]},i.code)})})]})]}),e.jsx("hr",{className:b.languageDivider})]}),e.jsx("p",{className:b.sectionHeading,children:R??$?.("planSelectSlotHeading")??"Book your preferred consultation slot"}),ae===void 0?e.jsxs("p",{className:b.reportReadyBanner,children:[$?.("planReportReadyPrefix")??"Your Report will be ready in"," ",e.jsx("span",{className:b.reportReadyDuration,children:$?.("planReportReadyDuration")??"24-48 hours"})," ",$?.("planReportReadySuffix")??"from today"]}):ae,a&&e.jsxs("div",{className:b.loadingWrap,"aria-busy":"true","aria-live":"polite",children:[e.jsx("div",{className:b.skeletonDateTabs,children:Array.from({length:5}).map((i,j)=>e.jsx("div",{className:se(b.skeletonDateTab,b.skeletonShimmer)},j))}),e.jsx("div",{className:b.skeletonPeriodTabs,children:Array.from({length:3}).map((i,j)=>e.jsx("div",{className:se(b.skeletonPeriodTab,b.skeletonShimmer)},j))}),e.jsx("div",{className:b.skeletonTimeGrid,children:Array.from({length:6}).map((i,j)=>e.jsx("div",{className:se(b.skeletonTimeSlot,b.skeletonShimmer)},j))})]}),!a&&r&&e.jsxs("div",{className:b.stateMessage,children:[$?.("planSlotsLoadError")??"Couldn't load slots. Please try again.",s&&e.jsx("button",{type:"button",className:b.retryBtn,onClick:s,children:$?.("planRetry")??"Retry"})]}),!a&&!r&&U.length===0&&e.jsxs("div",{className:b.emptyState,children:[e.jsx("span",{className:b.emptyStateIcon,children:e.jsx(Gr,{})}),e.jsx("p",{className:b.emptyStateTitle,children:$?.("planNoSlotsAvailableTitle")??"No slots available"}),e.jsx("p",{className:b.emptyStateSubtitle,children:$?.("planNoSlotsAvailableSubtitle")??"Try a different consultation language above, or check back soon."})]}),!a&&!r&&U.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:b.dateTabs,ref:me,role:"radiogroup","aria-label":"Consultation date",children:[ee&&e.jsx("span",{className:b.dateTabIndicator,style:{transform:`translate(${ee.left}px, ${ee.top}px)`,width:ee.width,height:ee.height},"aria-hidden":"true"}),U.map(i=>{const j=i.date===Z,{dayLabel:M,dayNum:te}=Rt(i.date);return e.jsxs(g.Fragment,{children:[e.jsxs("button",{type:"button",ref:K=>{ve.current[i.date]=K},className:se(b.dateTab,j&&b.dateTabSelected),role:"radio","aria-checked":j,onClick:()=>he(i.date),children:[e.jsx("span",{className:b.dateTabLabel,children:$?.(M)??M}),e.jsx("span",{className:b.dateTabNum,children:te})]}),e.jsx("span",{className:b.dateTabDivider,"aria-hidden":!0})]},i.date)})]}),e.jsxs("div",{className:b.periodTabs,ref:Ce,role:"tablist","aria-label":"Time of day",children:[Ee&&e.jsx("span",{className:b.periodTabIndicator,style:{transform:`translateX(${Ee.left}px)`,width:Ee.width},"aria-hidden":"true"}),D.map(i=>{const j=as[i],M=i==="evening"&&ce,te=M?"planPeriodEveningNight":rs[i];return e.jsxs("button",{ref:K=>{We.current[i]=K},type:"button",className:se(b.periodTab,i===A&&b.periodTabSelected),role:"tab","aria-selected":i===A,onClick:()=>qe(i),children:[e.jsx(j,{}),$?.(te)??(M?"Evening/Night":i.charAt(0).toUpperCase()+i.slice(1))]},i)})]}),e.jsx("div",{className:b.timeGrid,role:"radiogroup","aria-label":"Consultation time",children:Q.map((i,j)=>e.jsx("button",{type:"button",className:se(b.timeSlot,ke===i.start&&b.timeSlotSelected),role:"radio","aria-checked":ke===i.start,onClick:()=>Ue(i),children:kt(i.start)},`${i.start}-${j}`))},`${Z}-${A}`)]})]})},jt="+05:30",ss=n=>{const a=String(n.getMonth()+1).padStart(2,"0"),r=String(n.getDate()).padStart(2,"0");return`${n.getFullYear()}-${a}-${r}`},is=(n,a,r,s)=>{const c=u=>String(u).padStart(2,"0"),l=r+30,m=a+Math.floor(l/60);return{start:`${n}T${c(a)}:${c(r)}:00${jt}`,end:`${n}T${c(m)}:${c(l%60)}:00${jt}`,period:s}},cs={morning:[[9,0],[9,30],[10,0],[10,30],[11,0],[11,30]],afternoon:[[12,30],[13,0],[14,0],[15,30],[16,0]],evening:[[18,0],[18,30],[19,0],[20,0]]},Oe=(n,a)=>{const r=new Date;r.setDate(r.getDate()+n);const s=ss(r),c=a.flatMap(l=>cs[l].map(([m,u])=>is(s,m,u,l)));return{date:s,has_availability:c.length>0,slots:c}},Lt=[Oe(0,["morning","afternoon","evening"]),Oe(1,["morning","afternoon"]),Oe(2,["afternoon","evening"]),Oe(3,["morning","evening"]),Oe(4,["morning","afternoon","evening"])],ls=Lt.map(n=>({...n,has_availability:!1,slots:[]})),ds=()=>e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:e.jsx("path",{d:"M6 9l6 6 6-6"})}),Pt=[{name:"United States",code:"+1",iso:"US"},{name:"United Kingdom",code:"+44",iso:"GB"},{name:"Australia",code:"+61",iso:"AU"},{name:"Canada",code:"+1",iso:"CA"},{name:"United Arab Emirates",code:"+971",iso:"AE"},{name:"Singapore",code:"+65",iso:"SG"},{name:"New Zealand",code:"+64",iso:"NZ"},{name:"Mauritius",code:"+230",iso:"MU"},{name:"Netherlands",code:"+31",iso:"NL"},{name:"Malaysia",code:"+60",iso:"MY"},{name:"Germany",code:"+49",iso:"DE"},{name:"South Africa",code:"+27",iso:"ZA"},{name:"Qatar",code:"+974",iso:"QA"},{name:"Ireland",code:"+353",iso:"IE"},{name:"Oman",code:"+968",iso:"OM"},{name:"Saudi Arabia",code:"+966",iso:"SA"},{name:"Hong Kong",code:"+852",iso:"HK"},{name:"France",code:"+33",iso:"FR"},{name:"Switzerland",code:"+41",iso:"CH"},{name:"Bahrain",code:"+973",iso:"BH"},{name:"Trinidad and Tobago",code:"+1-868",iso:"TT"},{name:"Kuwait",code:"+965",iso:"KW"},{name:"Belgium",code:"+32",iso:"BE"},{name:"Japan",code:"+81",iso:"JP"},{name:"Italy",code:"+39",iso:"IT"},{name:"Spain",code:"+34",iso:"ES"},{name:"Norway",code:"+47",iso:"NO"},{name:"Sweden",code:"+46",iso:"SE"},{name:"Portugal",code:"+351",iso:"PT"},{name:"Poland",code:"+48",iso:"PL"},{name:"Denmark",code:"+45",iso:"DK"},{name:"Nepal",code:"+977",iso:"NP"},{name:"Bangladesh",code:"+880",iso:"BD"},{name:"Kenya",code:"+254",iso:"KE"},{name:"Mexico",code:"+52",iso:"MX"},{name:"Czechia",code:"+420",iso:"CZ"},{name:"Indonesia",code:"+62",iso:"ID"},{name:"Taiwan",code:"+886",iso:"TW"},{name:"Fiji",code:"+679",iso:"FJ"},{name:"Guyana",code:"+592",iso:"GY"},{name:"Finland",code:"+358",iso:"FI"},{name:"Nigeria",code:"+234",iso:"NG"},{name:"Jamaica",code:"+1-876",iso:"JM"},{name:"Sri Lanka",code:"+94",iso:"LK"},{name:"Thailand",code:"+66",iso:"TH"},{name:"Hungary",code:"+36",iso:"HU"},{name:"Tanzania",code:"+255",iso:"TZ"},{name:"Sint Maarten",code:"+1-721",iso:"SX"},{name:"Philippines",code:"+63",iso:"PH"},{name:"Estonia",code:"+372",iso:"EE"},{name:"Ukraine",code:"+380",iso:"UA"},{name:"Austria",code:"+43",iso:"AT"},{name:"Réunion",code:"+262",iso:"RE"},{name:"India",code:"+91",iso:"IN"}],Ot=n=>{if(!n||n.length!==2)return"🏳️";const a=n.toUpperCase().split("").map(r=>127397+r.charCodeAt(0));return String.fromCodePoint(...a)},Dt={"+1":{pattern:/^[2-9]\d{9}$/,minLength:10,maxLength:10,description:"10 digits, cannot start with 0 or 1"},"+44":{pattern:/^\d{10}$/,minLength:10,maxLength:10,description:"10 digits"},"+61":{pattern:/^\d{9}$/,minLength:9,maxLength:9,description:"9 digits"},"+971":{pattern:/^\d{8,9}$/,minLength:8,maxLength:9,description:"8-9 digits"},"+65":{pattern:/^\d{8}$/,minLength:8,maxLength:8,description:"8 digits"},"+49":{pattern:/^\d{10,11}$/,minLength:10,maxLength:11,description:"10-11 digits"},"+91":{pattern:/^[6-9]\d{9}$/,minLength:10,maxLength:10,description:"10 digits, must start with 6-9"},"+974":{pattern:/^\d{8}$/,minLength:8,maxLength:8,description:"8 digits"},"+60":{pattern:/^\d{9,10}$/,minLength:9,maxLength:10,description:"9-10 digits"},"+27":{pattern:/^\d{9}$/,minLength:9,maxLength:9,description:"9 digits"},"+64":{pattern:/^\d{8,10}$/,minLength:8,maxLength:10,description:"8-10 digits"},"+230":{pattern:/^\d{7,8}$/,minLength:7,maxLength:8,description:"7-8 digits"}},At={pattern:/^\d{6,15}$/,maxLength:15,description:"6-15 digits"},nt=(n,a)=>{if(!n)return{isValid:!0,error:""};const r=Dt[a]||At;return r.pattern.test(n)?{isValid:!0,error:""}:{isValid:!1,error:`Please enter a valid phone number (${r.description})`}},at=n=>(Dt[n]||At).maxLength,us=({countryCode:n,contactNumber:a,countries:r,onCountryCodeChange:s,onPhoneNumberChange:c,onValidationChange:l,onDropdownFocus:m,onInputFocus:u})=>{const[_,p]=g.useState(!1),v=r.find(O=>O.code===n)??r[0],h=at(n),x=g.useCallback(O=>{if(s(O.code,O.name),p(!1),a&&l){const{isValid:E,error:R}=nt(a,O.code);l(E,R)}},[a,s,l]),w=g.useCallback(O=>{const R=O.target.value.replace(/[^\d]/g,"").slice(0,at(n));if(c(R),l){const{isValid:ie,error:ae}=nt(R,n);l(ie,ae)}},[n,c,l]),C=g.useCallback(()=>{p(O=>(O||m?.(n),!O))},[n,m]),G=g.useCallback(()=>{p(!1),u?.(n)},[n,u]);return{isDropdownOpen:_,selectedCountry:v,maxLength:h,handleCountrySelect:x,handlePhoneChange:w,handleDropdownToggle:C,handlePhoneFocus:G,closeDropdown:()=>p(!1)}},ms="_root_3ywyc_2",_s="_label_3ywyc_9",hs="_row_3ywyc_17",ps="_dropdownWrap_3ywyc_23",fs="_dropdownBtn_3ywyc_29",gs="_dropdownMenu_3ywyc_50",bs="_dropdownItem_3ywyc_64",vs="_dropdownItemCode_3ywyc_80",xs="_dropdownItemName_3ywyc_85",ys="_flagImg_3ywyc_93",ws="_flagEmoji_3ywyc_97",js="_input_3ywyc_102",Ns="_inputError_3ywyc_121",Ss="_helper_3ywyc_129",Ts="_error_3ywyc_137",F={root:ms,label:_s,row:hs,dropdownWrap:ps,dropdownBtn:fs,dropdownMenu:gs,dropdownItem:bs,dropdownItemCode:vs,dropdownItemName:xs,flagImg:ys,flagEmoji:ws,input:js,inputError:Ns,helper:Ss,error:Ts},Nt=(...n)=>n.filter(Boolean).join(" "),ks=({countryCode:n,contactNumber:a,error:r,label:s,helperText:c,countries:l=Pt,getFlagUrl:m,onCountryCodeChange:u,onPhoneNumberChange:_,onValidationChange:p,onDropdownFocus:v,onInputFocus:h,inputRef:x,t:w,className:C=""})=>{const[G,O]=g.useState(l[0]?.code??"+91"),[E,R]=g.useState(""),ie=n??G,ae=a??E,ce=g.useRef(null),{isDropdownOpen:$,selectedCountry:re,maxLength:U,handleCountrySelect:le,handlePhoneChange:Se,handleDropdownToggle:Z,handlePhoneFocus:V,closeDropdown:D}=us({countryCode:ie,contactNumber:ae,countries:l,onCountryCodeChange:(T,A)=>{O(T),u?.(T,A)},onPhoneNumberChange:T=>{R(T),_?.(T)},onValidationChange:p,onDropdownFocus:v,onInputFocus:h});g.useEffect(()=>{const T=A=>{ce.current&&!ce.current.contains(A.target)&&D()};return $&&document.addEventListener("mousedown",T),()=>document.removeEventListener("mousedown",T)},[$,D]);const H=(T,A)=>{const Q=T?m?.(T):null;return Q?e.jsx("img",{src:Q,alt:A,width:20,height:14,className:F.flagImg}):e.jsx("span",{className:F.flagEmoji,"aria-hidden":!0,children:Ot(T)})};return e.jsxs("div",{className:Nt(F.root,C),children:[s&&e.jsx("div",{className:F.label,children:s}),e.jsxs("div",{className:F.row,children:[e.jsxs("div",{className:F.dropdownWrap,ref:ce,children:[e.jsxs("button",{type:"button",className:F.dropdownBtn,onClick:Z,children:[H(re?.iso,re?.name??"Flag"),e.jsx("span",{children:re?.code??"+91"}),e.jsx(ds,{})]}),$&&e.jsx("div",{className:F.dropdownMenu,role:"listbox",children:l.map(T=>e.jsxs("button",{type:"button",role:"option","aria-selected":T.code===re?.code,className:F.dropdownItem,onClick:()=>le(T),children:[H(T.iso,T.name),e.jsx("span",{className:F.dropdownItemCode,children:T.code}),e.jsx("span",{className:F.dropdownItemName,children:T.name})]},`${T.code}-${T.iso}`))})]}),e.jsx("input",{type:"tel",inputMode:"numeric",autoComplete:"off",value:ae,maxLength:U,ref:x,className:Nt(F.input,r&&F.inputError),placeholder:w?.("planPhoneNumberPlaceholder")??"0000000000",onChange:Se,onFocus:V})]}),c&&e.jsx("div",{className:F.helper,children:c}),r&&e.jsx("p",{className:F.error,children:r})]})},Rs=()=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,children:e.jsx("path",{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",fill:"#F59E0B",stroke:"#F59E0B",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})}),Is=()=>e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","aria-hidden":!0,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",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",fill:"#F97316"})}),Cs="_card_1ytv6_2",Es="_cardSelected_1ytv6_24",$s="_photoWrap_1ytv6_31",Ls="_photoFrame_1ytv6_37",Ps="_photoImg_1ytv6_45",Os="_ratingPill_1ytv6_51",Ds="_ratingValue_1ytv6_66",As="_info_1ytv6_74",Ms="_name_1ytv6_84",Bs="_meta_1ytv6_95",Fs="_languages_1ytv6_103",Ws="_consultationCount_1ytv6_113",qs="_checkIcon_1ytv6_121",Us="_recommendedBadge_1ytv6_126",Hs="_recommendedLabel_1ytv6_138",W={card:Cs,cardSelected:Es,photoWrap:$s,photoFrame:Ls,photoImg:Ps,ratingPill:Os,ratingValue:Ds,info:As,name:Ms,meta:Bs,languages:Fs,consultationCount:Ws,checkIcon:qs,recommendedBadge:Us,recommendedLabel:Hs},Ks="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>",Mt=({photoUrl:n,name:a,rating:r,fallbackPhotoUrl:s=Ks})=>e.jsxs("div",{className:W.photoWrap,children:[e.jsx("div",{className:W.photoFrame,children:e.jsx("img",{src:n||s,alt:a,width:64,height:78,className:W.photoImg,onError:c=>{c.target.src=s}})}),e.jsxs("div",{className:W.ratingPill,children:[e.jsx("span",{className:W.ratingValue,children:r}),e.jsx(Rs,{})]})]}),Bt=({label:n,t:a})=>e.jsx("div",{className:W.recommendedBadge,children:e.jsx("span",{className:W.recommendedLabel,children:n??a?.("planRecommendedAstrologer")??"Recommended"})}),Ys=(...n)=>n.filter(Boolean).join(" "),zs=n=>{if(n>=1e3){const a=n/1e3;return`${Number.isInteger(a)?a:a.toFixed(1)}K consultations`}return`${n} consultations`},Ft=({astrologer:n,isSelected:a=!1,onClick:r,fallbackPhotoUrl:s,formatConsultationCount:c=zs})=>e.jsxs("button",{type:"button",onClick:()=>r?.(n),className:Ys(W.card,a&&W.cardSelected),children:[e.jsx(Mt,{photoUrl:n.photo_url,name:n.name,rating:n.rating,fallbackPhotoUrl:s}),e.jsxs("div",{className:W.info,children:[e.jsx("span",{className:W.name,children:n.name}),e.jsxs("div",{className:W.meta,children:[e.jsx("span",{className:W.languages,children:n.languages.join(", ")}),e.jsx("span",{className:W.consultationCount,children:c(n.consultation_count)})]})]}),a&&e.jsx("div",{className:W.checkIcon,children:e.jsx(Is,{})}),n.is_recommended&&e.jsx(Bt,{})]}),Gs="_section_jbaga_2",Vs="_title_jbaga_6",Js="_row_jbaga_13",Xs="_skeletonCard_jbaga_26",Zs="_skeletonShimmer_jbaga_33",De={section:Gs,title:Vs,row:Js,skeletonCard:Xs,skeletonShimmer:Zs},St=(...n)=>n.filter(Boolean).join(" "),Qs=({astrologers:n,loading:a=!1,selectedAstrologerId:r,onAstrologerSelect:s,title:c,fallbackPhotoUrl:l,formatConsultationCount:m,t:u,className:_=""})=>{const[p,v]=g.useState(""),h=r??p,x=w=>{v(w.astrologer_id),s?.(w)};return e.jsxs("section",{className:St(De.section,_),children:[e.jsx("p",{className:De.title,children:c??u?.("planSelectAstrologerHeading")??"Select an astrologer"}),e.jsx("div",{className:De.row,role:"radiogroup","aria-label":"Astrologer",children:a?Array.from({length:2}).map((w,C)=>e.jsx("div",{className:St(De.skeletonCard,De.skeletonShimmer)},C)):n.map(w=>e.jsx(Ft,{astrologer:w,isSelected:w.astrologer_id===h,onClick:x,fallbackPhotoUrl:l,formatConsultationCount:m},w.astrologer_id))})]})},ei=[{astrologer_id:"astro-1",name:"Pandit Ramesh Sharma",photo_url:"",languages:["Hindi","English"],rating:4.8,consultation_count:12500,is_recommended:!0},{astrologer_id:"astro-2",name:"Dr. Anjali Mehta",photo_url:"",languages:["English","Gujarati"],rating:4.6,consultation_count:870},{astrologer_id:"astro-3",name:"Acharya Vivek Joshi",photo_url:"",languages:["Hindi","Marathi","English"],rating:4.9,consultation_count:3400}];exports.AstrologerCard=Ft;exports.AstrologerList=Qs;exports.AstrologerPhoto=Mt;exports.AstrologyProfilesSection=$t;exports.CONSULTATION_LANGUAGE_OPTIONS=Ct;exports.CONSULTATION_PERIOD_ORDER=It;exports.CircularMarquee=Tt;exports.ConsultationSlotSelector=os;exports.ContactUsSection=qr;exports.DEFAULT_COUNTRIES=Pt;exports.FAQAccordion=Un;exports.FooterCTAButton=Er;exports.FooterShell=Cr;exports.FormCheckboxWithHelp=hr;exports.FormContainer=aa;exports.FormDateInput=qa;exports.FormField=Ca;exports.FormFooterNote=gr;exports.FormLocationInput=er;exports.FormSectionHeader=ma;exports.FormSegmentedControl=rr;exports.FormTagPills=cr;exports.FormTextInput=Da;exports.FormTimeInput=Ga;exports.MOCK_ASTROLOGERS=ei;exports.MOCK_SLOT_DAYS=Lt;exports.MOCK_SLOT_DAYS_EMPTY=ls;exports.MarqueeStrip=Dr;exports.PageHeader=Qn;exports.PhoneNumberInput=ks;exports.PhoneNumberSection=Et;exports.PrivacyBanner=ga;exports.RecommendedBadge=Bt;exports.UserReviewsSection=En;exports.footerShellStyles=ge;exports.formatSlotDayLabel=Rt;exports.formatSlotTime=kt;exports.getFlagEmoji=Ot;exports.getMaxLengthForCountry=at;exports.validatePhoneByCountryCode=nt;
15
15
  //# sourceMappingURL=index.cjs.map