@srimandir/astrology-common 7.1.2 → 7.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1120 -1730
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,15 +1,2 @@
|
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
let props = %s;
|
|
11
|
-
<%s {...props} />
|
|
12
|
-
React keys must be passed directly to JSX without using spread:
|
|
13
|
-
let props = %s;
|
|
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;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./styles.js");const e=require("react/jsx-runtime"),u=require("react"),at="_section_1fboo_1",ot="_heading_1fboo_5",st="_trustLine_1fboo_9",rt="_star_1fboo_13",it="_ratingNum_1fboo_17",ct="_trustText_1fboo_21",lt="_cardList_1fboo_25",dt="_card_1fboo_25",mt="_quote_1fboo_37",ut="_author_1fboo_41",_t="_avatar_1fboo_45",ht="_avatarPlaceholder_1fboo_49",pt="_authorInfo_1fboo_54",gt="_authorName_1fboo_58",bt="_stars_1fboo_62",xt="_readMoreWrap_1fboo_66",ft="_toggleBtn_1fboo_70",Nt="_readMore_1fboo_66",jt="_arrow_1fboo_89",wt="_dot_1fboo_93",f={section:at,heading:ot,trustLine:st,star:rt,ratingNum:it,trustText:ct,cardList:lt,card:dt,quote:mt,author:ut,avatar:_t,avatarPlaceholder:ht,authorInfo:pt,authorName:gt,stars:bt,readMoreWrap:xt,toggleBtn:ft,readMore:Nt,arrow:jt,dot:wt},yt=3,Ie=15;function vt(t){const n=new Map;for(let c=1;c<=Ie;c+=1){const h=`feedbackTestimonial${c}`,_=t(h);if(!_||_===h)continue;const x=`feedbackAuthor${c}`,d=(()=>{const j=t(x);return j&&j!==x?j:t("guest")})(),g=`feedbackAuthor${c}AvatarUrl`,b=(()=>{const j=t(g);return j&&j!==g?j:void 0})();n.set(c,{quote:_,authorName:d,authorAvatarUrl:b,rating:5})}const a=[],s=[];for(let c=1;c<=Ie;c+=1)c>=9?s.push(c):a.push(c);const r=[];let i=0,l=0;for(;i<a.length||l<s.length;){if(l<s.length){const c=s[l++],h=n.get(c);h&&r.push(h)}if(i<a.length){const c=a[i++],h=n.get(c);h&&r.push(h)}}return r}function St({t,testimonials:n,initialVisible:a=yt,readMoreHref:s,onReadMore:r,className:i="",headingClassName:l}){const c=n??u.useMemo(()=>vt(t),[t]),[h,_]=u.useState(!1),x=c.length>a,d=x&&!h?c.slice(0,a):c,g=t("feedbackTitle"),b=t("feedbackRating"),j=t("feedbackTrust"),A=t("readMoreReviews"),y=t("readLess");return e.jsxs("section",{className:`${f.section} ${i}`,"aria-labelledby":"reviews-heading",children:[e.jsx("h2",{id:"reviews-heading",className:[f.heading,l].filter(Boolean).join(" "),children:g}),e.jsxs("p",{className:f.trustLine,children:[e.jsx("span",{className:f.star,"aria-hidden":!0,children:"★"}),e.jsx("span",{className:f.ratingNum,children:b}),e.jsx("span",{className:f.dot,"aria-hidden":!0}),e.jsx("span",{className:f.trustText,children:j})]}),e.jsx("ul",{className:f.cardList,children:d.map((T,B)=>e.jsxs("li",{className:f.card,children:[e.jsx("p",{className:f.quote,children:T.quote}),e.jsxs("div",{className:f.author,children:[T.authorAvatarUrl?e.jsx("img",{src:T.authorAvatarUrl,alt:"",className:f.avatar,width:40,height:40}):e.jsx("div",{className:f.avatarPlaceholder,"aria-hidden":!0}),e.jsxs("div",{className:f.authorInfo,children:[e.jsx("span",{className:f.authorName,children:T.authorName}),e.jsx("span",{className:f.stars,"aria-hidden":!0,children:"★".repeat(T.rating??5)})]})]})]},B))}),x&&e.jsx("div",{className:f.readMoreWrap,children:e.jsxs("button",{type:"button",className:f.toggleBtn,onClick:()=>_(T=>!T),"aria-expanded":h,children:[h?y:A,e.jsx("span",{className:f.arrow,"aria-hidden":!0,children:"›"})]})}),(s||r)&&!x&&e.jsx("div",{className:f.readMoreWrap,children:s?e.jsxs("a",{href:s,className:f.readMore,target:"_blank",rel:"noopener noreferrer",children:[A,e.jsx("span",{className:f.arrow,"aria-hidden":!0,children:"›"})]}):e.jsxs("button",{type:"button",className:f.readMore,onClick:()=>r?.(),children:[A,e.jsx("span",{className:f.arrow,"aria-hidden":!0,children:"›"})]})})]})}const Tt="_section_4dc65_1",kt="_heading_4dc65_5",It="_accordion_4dc65_9",$t="_item_4dc65_13",Lt="_itemOpen_4dc65_17",Ct="_question_4dc65_22",Dt="_chevron_4dc65_30",Mt="_chevronOpen_4dc65_34",Bt="_answerWrap_4dc65_38",Rt="_answerOpen_4dc65_42",At="_answer_4dc65_38",D={section:Tt,heading:kt,accordion:It,item:$t,itemOpen:Lt,question:Ct,chevron:Dt,chevronOpen:Mt,answerWrap:Bt,answerOpen:Rt,answer:At};function Pt({t,items:n,resolveAnswerKey:a,defaultOpenIndex:s=0,onItemOpen:r,className:i="",headingClassName:l}){const c=u.useMemo(()=>n.map(({qKey:d,aKey:g})=>({question:t(d),answer:t(a?a(g):g)})),[t,n,a]),[h,_]=u.useState(s),x=t("faqTitle");return e.jsxs("section",{className:`${D.section} ${i}`,"aria-labelledby":"faq-heading",children:[e.jsx("h2",{id:"faq-heading",className:[D.heading,l].filter(Boolean).join(" "),children:x}),e.jsx("div",{className:D.accordion,role:"list",children:c.map((d,g)=>{const b=h===g;return e.jsxs("div",{className:`${D.item} ${b?D.itemOpen:""}`,role:"listitem",children:[e.jsxs("button",{type:"button",className:D.question,onClick:()=>{const j=!b;_(b?-1:g),j&&r?.(d.question)},"aria-expanded":b,"aria-controls":`faq-answer-${g}`,id:`faq-question-${g}`,children:[e.jsx("span",{children:d.question}),e.jsx("span",{className:`${D.chevron} ${b?D.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-${g}`,role:"region","aria-labelledby":`faq-question-${g}`,className:`${D.answerWrap} ${b?D.answerOpen:""}`,hidden:!b,children:e.jsx("p",{className:D.answer,children:d.answer})})]},g)})})]})}const Et="_header_dbx4y_1",Ot="_brand_dbx4y_7",Ft="_logo_dbx4y_11",qt="_logoImg_dbx4y_15",Wt="_logoPlaceholder_dbx4y_21",Ht="_brandText_dbx4y_29",Ut="_brandName_dbx4y_33",Kt="_rating_dbx4y_38",zt="_langSlot_dbx4y_49",R={header:Et,brand:Ot,logo:Ft,logoImg:qt,logoPlaceholder:Wt,brandText:Ht,brandName:Ut,rating:Kt,langSlot:zt},$e=120,Le=40;function Gt({t,logoUrl:n,imageComponent:a,languageSelector:s,showLanguageSelector:r=!0,className:i=""}){const l=r&&s!=null,c=t("sriMandir"),h=t("ratingText");return e.jsxs("header",{className:`${R.header} ${i}`,children:[e.jsxs("div",{className:R.brand,children:[e.jsx("div",{className:R.logo,children:n?a?e.jsx(a,{src:n,alt:c,className:R.logoImg,width:$e,height:Le}):e.jsx("img",{src:n,alt:c,className:R.logoImg,width:$e,height:Le,decoding:"async"}):e.jsx("div",{className:R.logoPlaceholder,"aria-hidden":!0})}),e.jsxs("div",{className:R.brandText,children:[e.jsx("span",{className:R.brandName,children:c}),h!=null&&h!==""&&e.jsx("span",{className:R.rating,children:h})]})]}),l&&e.jsx("div",{className:R.langSlot,children:s})]})}const Yt="_wrap_1vbpd_1",Vt="_card_1vbpd_5",Jt="_cardInner_1vbpd_10",_e={wrap:Yt,card:Vt,cardInner:Jt};function Zt({children:t,className:n="","aria-label":a}){return e.jsx("section",{className:`${_e.wrap} ${n}`,"aria-label":a,children:e.jsx("div",{className:_e.card,children:e.jsx("div",{className:_e.cardInner,children:t})})})}const Qt="_header_a05ni_1",Xt="_left_a05ni_7",en="_backBtn_a05ni_11",tn="_titleWrap_a05ni_21",nn="_title_a05ni_21",an="_subtitle_a05ni_31",on="_backIcon_a05ni_37",K={header:Qt,left:Xt,backBtn:en,titleWrap:tn,title:nn,subtitle:an,backIcon:on},sn=()=>e.jsx("svg",{className:K.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 rn({title:t,subtitle:n,onBack:a,backAriaLabel:s="Back",className:r=""}){return e.jsx("header",{className:`${K.header} ${r}`,children:e.jsxs("div",{className:K.left,children:[a!=null&&e.jsx("button",{type:"button",className:K.backBtn,onClick:a,"aria-label":s,children:e.jsx(sn,{})}),e.jsxs("div",{className:K.titleWrap,children:[e.jsx("h1",{className:K.title,children:t}),n!=null&&n!==""&&e.jsx("p",{className:K.subtitle,children:n})]})]})})}const cn="_banner_1jco0_1",ln="_icon_1jco0_12",dn="_text_1jco0_16",he={banner:cn,icon:ln,text:dn},mn="https://srm-cdn.a4b.io/yoda/1770707793537.svg";function un({text:t,iconUrl:n=mn,className:a=""}){return e.jsx("div",{className:`${he.banner} ${a}`,role:"status",children:e.jsxs("span",{className:he.text,children:[" ",e.jsx("img",{src:n,alt:"",className:he.icon,width:18,height:18,"aria-hidden":!0})," ",t]})})}const _n="_field_eqt7q_1",hn="_labelRow_eqt7q_5",pn="_label_eqt7q_5",gn="_req_eqt7q_14",bn="_help_eqt7q_18",xn="_infoBtn_eqt7q_22",fn="_infoImg_eqt7q_30",Nn="_infoWrap_eqt7q_34",jn="_tooltip_eqt7q_38",wn="_tooltipArrow_eqt7q_45",yn="_inputWrap_eqt7q_50",M={field:_n,labelRow:hn,label:pn,req:gn,help:bn,infoBtn:xn,infoImg:fn,infoWrap:Nn,tooltip:jn,tooltipArrow:wn,inputWrap:yn},vn="https://srm-cdn.a4b.io/yoda/1770372066357.svg";function Sn({label:t,id:n,required:a=!1,help:s,infoTooltip:r,infoAriaLabel:i="Info",infoIconUrl:l=vn,children:c,className:h=""}){const[_,x]=u.useState(!1);return u.useEffect(()=>{if(!r)return;const d=b=>{b.target?.closest?.("[data-info-tooltip]")==null&&x(!1)},g=b=>{b.key==="Escape"&&x(!1)};return document.addEventListener("mousedown",d),document.addEventListener("keydown",g),()=>{document.removeEventListener("mousedown",d),document.removeEventListener("keydown",g)}},[r]),e.jsxs("div",{className:`${M.field} ${h}`,children:[e.jsxs("div",{className:M.labelRow,children:[e.jsxs("label",{className:M.label,htmlFor:n,children:[t,a&&e.jsx("span",{className:M.req,children:"*"})]}),r!=null&&r!==""&&e.jsxs("div",{className:M.infoWrap,"data-info-tooltip":!0,children:[e.jsx("button",{type:"button",className:M.infoBtn,"aria-label":i,"aria-expanded":_,onClick:()=>x(d=>!d),children:e.jsx("img",{className:M.infoImg,src:l,alt:"","aria-hidden":!0})}),_&&e.jsxs("div",{className:M.tooltip,role:"tooltip",children:[r,e.jsx("span",{className:M.tooltipArrow,"aria-hidden":!0})]})]})]}),s!=null&&s!==""&&e.jsx("div",{className:M.help,children:s}),e.jsx("div",{className:M.inputWrap,children:c})]})}const Tn="_wrap_1uy4o_1",kn="_input_1uy4o_5",In="_iconBtn_1uy4o_21",$n="_iconBtnInteractive_1uy4o_25",Ln="_iconImg_1uy4o_39",Y={wrap:Tn,input:kn,iconBtn:In,iconBtnInteractive:$n,iconImg:Ln};function Cn({id:t,iconUrl:n,iconAlt:a="",iconInteractive:s=!1,onIconClick:r,className:i="",...l}){return e.jsxs("div",{className:`${Y.wrap} ${i}`,children:[e.jsx("input",{...l,id:t,className:Y.input,type:l.type??"text"}),n!=null&&e.jsx("button",{type:"button",className:s?`${Y.iconBtn} ${Y.iconBtnInteractive}`:Y.iconBtn,"aria-label":a||void 0,onClick:s?r:void 0,tabIndex:s?0:-1,children:e.jsx("img",{className:Y.iconImg,src:n,alt:"","aria-hidden":!0,width:22,height:22})})]})}const Dn="_wrap_t646o_1",Mn="_input_t646o_5",Bn="_iconBtn_t646o_28",Rn="_iconImg_t646o_42",se={wrap:Dn,input:Mn,iconBtn:Bn,iconImg:Rn},An="https://srm-cdn.a4b.io/yoda/1770372045894.svg";function Pn({id:t,value:n,onChange:a,onIconClick:s,className:r="",...i}){const l=u.useRef(null),c=u.useMemo(()=>{const _=new Date,x=d=>String(d).padStart(2,"0");return`${_.getFullYear()}-${x(_.getMonth()+1)}-${x(_.getDate())}`},[]),h=()=>{if(s){s();return}const _=l.current;_&&typeof _.showPicker=="function"?_.showPicker():_?.focus()};return e.jsxs("div",{className:`${se.wrap} ${r}`,children:[e.jsx("input",{...i,ref:l,id:t,type:"date",className:se.input,value:n,max:c,onChange:_=>a(_.target.value)}),e.jsx("button",{type:"button",className:`${se.iconBtn}`,"aria-label":"Open date picker",onMouseDown:_=>_.preventDefault(),onClick:_=>{_.preventDefault(),h()},children:e.jsx("img",{className:se.iconImg,src:An,alt:"","aria-hidden":!0,width:22,height:22})})]})}const En="_wrap_1jdg7_1",On="_input_1jdg7_5",Fn="_iconBtn_1jdg7_34",qn="_iconImg_1jdg7_48",re={wrap:En,input:On,iconBtn:Fn,iconImg:qn},Wn="https://srm-cdn.a4b.io/yoda/1770372014782.svg";function Hn({id:t,value:n,onChange:a,placeholder:s="HH:MM AM",disabled:r=!1,onIconClick:i,className:l=""}){return e.jsxs("div",{className:`${re.wrap} ${l}`,children:[e.jsx("input",{id:t,type:"time",className:re.input,value:n,onChange:c=>a(c.target.value),placeholder:s,disabled:r,onClick:()=>!r&&i?.()}),e.jsx("button",{type:"button",className:re.iconBtn,"aria-label":"Open time picker",disabled:r,onClick:c=>{c.preventDefault(),r||i?.()},children:e.jsx("img",{className:re.iconImg,src:Wn,alt:"","aria-hidden":!0,width:22,height:22})})]})}const Un="_wrap_1bb6o_1",Kn="_input_1bb6o_5",zn="_iconBtn_1bb6o_21",Gn="_iconImg_1bb6o_25",ie={wrap:Un,input:Kn,iconBtn:zn,iconImg:Gn},Yn="https://srm-cdn.a4b.io/yoda/1770372031092.svg";function Vn({id:t,iconUrl:n=Yn,className:a="",...s}){return e.jsxs("div",{className:`${ie.wrap} ${a}`,children:[e.jsx("input",{...s,id:t,className:ie.input,type:"text"}),e.jsx("div",{className:ie.iconBtn,"aria-hidden":!0,children:e.jsx("img",{className:ie.iconImg,src:n,alt:"",width:22,height:22})})]})}const Jn="_segmented_3sa9v_1",Zn="_segmentedOption_3sa9v_6",Qn="_active_3sa9v_15",pe={segmented:Jn,segmentedOption:Zn,active:Qn};function Xn({id:t,options:n,value:a,onChange:s,className:r=""}){return e.jsx("div",{className:`${pe.segmented} ${r}`,role:"group","aria-labelledby":`${t}-label`,children:n.map(i=>e.jsx("button",{type:"button",id:i.value===a?t:void 0,className:`${pe.segmentedOption} ${i.value===a?pe.active:""}`,onClick:()=>s(i.value),children:i.label},i.value))})}const ea="_pillsWrap_z1kui_1",ta="_pill_z1kui_1",na="_selected_z1kui_17",ge={pillsWrap:ea,pill:ta,selected:na};function aa({id:t,options:n,selected:a,onChange:s,className:r=""}){const i=l=>{a.includes(l)?s(a.filter(c=>c!==l)):s([...a,l])};return e.jsx("div",{className:`${ge.pillsWrap} ${r}`,role:"group","aria-labelledby":`${t}-label`,children:n.map(l=>e.jsx("button",{type:"button",className:`${ge.pill} ${a.includes(l.key)?ge.selected:""}`,onClick:()=>i(l.key),children:l.label},l.key))})}const oa="_wrapper_i6a5b_2",sa="_checkboxRow_i6a5b_6",ra="_checkbox_i6a5b_6",ia="_checkboxText_i6a5b_31",ca="_checkboxHelp_i6a5b_37",ee={wrapper:oa,checkboxRow:sa,checkbox:ra,checkboxText:ia,checkboxHelp:ca};function la({id:t,checked:n,onChange:a,primaryText:s,helpText:r,className:i=""}){return e.jsxs("div",{className:`${ee.wrapper} ${i}`,children:[e.jsxs("div",{className:ee.checkboxRow,children:[e.jsx("input",{id:t,type:"checkbox",className:ee.checkbox,checked:n,onChange:l=>a(l.target.checked)}),e.jsx("label",{htmlFor:t,className:ee.checkboxText,children:s})]}),r!=null&&r!==""&&e.jsx("p",{className:ee.checkboxHelp,children:r})]})}const da="_footerNote_laev3_1",ma={footerNote:da};function ua({children:t,className:n=""}){return e.jsx("p",{className:`${ma.footerNote} ${n}`,children:t})}const _a="_footer_86zxt_1",ha="_inner_86zxt_8",pa="_badges_86zxt_12",ga="_marqueeContent_86zxt_20",ba="_badge_86zxt_12",xa="_badgeIcon_86zxt_35",fa="_ctaWrap_86zxt_39",Na="_ctaStruck_86zxt_43",ja="_ctaButton_86zxt_49",wa="_offerRow_86zxt_69",ya="_pill_86zxt_76",va="_ctaStatic_86zxt_85",z={footer:_a,inner:ha,badges:pa,marqueeContent:ga,badge:ba,badgeIcon:xa,ctaWrap:fa,ctaStruck:Na,ctaButton:ja,offerRow:wa,pill:ya,ctaStatic:va};function Sa({marquee:t,children:n,className:a=""}){return e.jsx("footer",{className:`${z.footer} ${a}`,role:"contentinfo",children:e.jsxs("div",{className:z.inner,children:[t!=null&&e.jsx("div",{className:z.badges,"aria-hidden":!0,children:t}),e.jsx("div",{className:z.ctaWrap,children:n})]})})}function Ta({children:t,href:n,disabled:a=!1,onClick:s,static:r=!1,className:i="","aria-label":l}){const c=`${z.ctaButton} ${i}`.trim(),h=`${z.ctaStatic} ${i}`.trim(),_=l!=null?{"aria-label":l}:{};return r?e.jsx("div",{className:h,role:"presentation",children:t}):n!=null?e.jsx("a",{href:n,className:c,target:"_blank",rel:"noopener noreferrer","aria-disabled":a,onClick:x=>a&&x.preventDefault(),..._,children:t}):e.jsx("button",{type:"button",className:c,disabled:a,onClick:s,..._,children:t})}const ka="_wrapper_wxjzs_1",Ia="_track_wxjzs_7",Ce={wrapper:ka,track:Ia};function Re({children:t,className:n=""}){return e.jsx("div",{className:`${Ce.wrapper} ${n}`,"aria-hidden":!0,children:e.jsxs("div",{className:Ce.track,children:[t,t]})})}const $a="_strip_2838b_1",La={strip:$a};function Ca({children:t,className:n=""}){return e.jsx("div",{className:`${La.strip} ${n}`,role:"region","aria-label":"Trust badges",children:e.jsx(Re,{children:t})})}const Da="_section_8y3x9_1",Ma="_heading_8y3x9_6",Ba="_content_8y3x9_11",Ra="_line_8y3x9_16",Aa="_brandName_8y3x9_20",V={section:Da,heading:Ma,content:Ba,line:Ra,brandName:Aa};function Pa({title:t,brandName:n,whatsAppLine:a,emailLine:s,className:r=""}){return e.jsxs("section",{className:`${V.section} ${r}`,"aria-labelledby":"contact-heading",children:[e.jsx("h2",{id:"contact-heading",className:V.heading,children:t}),e.jsxs("div",{className:V.content,children:[e.jsx("p",{className:V.brandName,children:n}),e.jsx("p",{className:V.line,children:a}),e.jsx("p",{className:V.line,children:s})]})]})}const Ae=t=>{const n=t.match(/T(\d{2}):(\d{2})/);if(!n)return t;const a=Number(n[1]),s=n[2],r=a>=12?"PM":"AM";return`${a%12||12}:${s} ${r}`},Pe=(t,n=new Date)=>{const a=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],s=new Date(`${t}T00:00:00`);if(Number.isNaN(s.getTime()))return{id:t,dayLabel:t,dayNum:""};const r=c=>new Date(c.getFullYear(),c.getMonth(),c.getDate()).getTime(),i=Math.round((r(s)-r(n))/(1e3*60*60*24)),l=i===0?"Today":i===1?"Tomorrow":a[s.getDay()];return{id:t,dayLabel:l,dayNum:String(s.getDate())}},Ee=["morning","afternoon","evening"],Oe=[{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"}],Ea=()=>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"})}),Oa=()=>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"})}),Fa=()=>e.jsx("img",{src:"https://srm-cdn.a4b.io/yoda/1785316603029.svg",width:16,height:16,alt:"","aria-hidden":!0}),qa=()=>e.jsx("img",{src:"https://srm-cdn.a4b.io/yoda/1785316621747.svg",width:16,height:16,alt:"","aria-hidden":!0}),Wa=()=>e.jsx("img",{src:"https://srm-cdn.a4b.io/yoda/1785316635953.svg",width:16,height:16,alt:"","aria-hidden":!0}),Ha=()=>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"})]}),Ua="_section_1ltqn_2",Ka="_headerRow_1ltqn_10",za="_title_1ltqn_18",Ga="_changeBtn_1ltqn_24",Ya="_numberRow_1ltqn_35",Va="_countryCode_1ltqn_44",Ja="_number_1ltqn_35",Za="_helper_1ltqn_59",q={section:Ua,headerRow:Ka,title:za,changeBtn:Ga,numberRow:Ya,countryCode:Va,number:Ja,helper:Za},Fe=({title:t,countryCode:n="+91",phoneNumber:a="98765 43210",helperText:s,onEdit:r,t:i,className:l=""})=>e.jsxs("section",{className:[q.section,l].filter(Boolean).join(" "),children:[e.jsxs("div",{className:q.headerRow,children:[e.jsx("span",{className:q.title,children:t??i?.("planPhoneNumberHeading")??"Your phone number"}),r&&e.jsx("button",{type:"button",className:q.changeBtn,onClick:r,children:i?.("planPhoneNumberChange")??"Change"})]}),e.jsxs("div",{className:q.numberRow,children:[e.jsx("span",{className:q.countryCode,children:n}),e.jsx("span",{className:q.number,children:a})]}),e.jsx("p",{className:q.helper,children:s??i?.("planPhoneNumberHelper")??"The astrologer will call you on this number at your booked slot."})]}),Qa="_section_12hk9_2",Xa="_title_12hk9_6",eo="_profileRow_12hk9_13",to="_profileCard_12hk9_26",no="_profileCardSelected_12hk9_47",ao="_profileTop_12hk9_52",oo="_avatar_12hk9_60",so="_profileName_12hk9_74",ro="_relationPill_12hk9_84",io="_profileMeta_12hk9_98",co="_addCard_12hk9_108",lo="_addIcon_12hk9_127",I={section:Qa,title:Xa,profileRow:eo,profileCard:to,profileCardSelected:no,profileTop:ao,avatar:oo,profileName:so,relationPill:ro,profileMeta:io,addCard:co,addIcon:lo},mo=[{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"}],qe=({title:t,profiles:n=mo,selectedProfileId:a,onProfileSelect:s,onAddProfile:r,t:i,className:l=""})=>{const[c,h]=u.useState(n[0]?.id??""),_=a??c,x=d=>{h(d),s?.(d)};return e.jsxs("section",{className:[I.section,l].filter(Boolean).join(" "),children:[e.jsx("p",{className:I.title,children:t??i?.("planAstrologyProfilesHeading")??"Astrology profile"}),e.jsxs("div",{className:I.profileRow,role:"radiogroup","aria-label":"Astrology profile",children:[n.map(d=>{const g=d.id===_;return e.jsxs("button",{type:"button",role:"radio","aria-checked":g,className:[I.profileCard,g?I.profileCardSelected:""].filter(Boolean).join(" "),onClick:()=>x(d.id),children:[e.jsxs("span",{className:I.profileTop,children:[e.jsx("span",{className:I.avatar,"aria-hidden":!0,children:d.name.charAt(0).toUpperCase()}),e.jsx("span",{className:I.profileName,children:d.name})]}),d.relation&&e.jsx("span",{className:I.relationPill,children:d.relation}),d.birthDetails&&e.jsx("span",{className:I.profileMeta,children:d.birthDetails}),d.birthPlace&&e.jsx("span",{className:I.profileMeta,children:d.birthPlace})]},d.id)}),r&&e.jsxs("button",{type:"button",className:I.addCard,onClick:r,children:[e.jsx("span",{className:I.addIcon,"aria-hidden":!0,children:"+"}),i?.("planAddAstrologyProfile")??"Add profile"]})]})]})},uo="_root_1ywut_6",_o="_languageRow_1ywut_19",ho="_languageLabel_1ywut_27",po="_languageDropdown_1ywut_33",go="_languageDropdownBtn_1ywut_37",bo="_languageMenu_1ywut_52",xo="_languageMenuItem_1ywut_69",fo="_languageMenuItemSelected_1ywut_83",No="_languageDivider_1ywut_89",jo="_sectionHeading_1ywut_96",wo="_reportReadyBanner_1ywut_104",yo="_reportReadyDuration_1ywut_113",vo="_dateTabs_1ywut_119",So="_dateTabIndicator_1ywut_131",To="_dateTab_1ywut_119",ko="_dateTabDivider_1ywut_165",Io="_dateTabSelected_1ywut_175",$o="_dateTabLabel_1ywut_180",Lo="_dateTabNum_1ywut_187",Co="_periodTabs_1ywut_201",Do="_periodTabIndicator_1ywut_129",Mo="_periodTab_1ywut_129",Bo="_periodTabSelected_1ywut_248",Ro="_timeGrid_1ywut_253",Ao="_emptyState_1ywut_280",Po="_timeSlot_1ywut_284",Eo="_timeSlotSelected_1ywut_300",Oo="_stateMessage_1ywut_308",Fo="_retryBtn_1ywut_315",qo="_emptyStateIcon_1ywut_341",Wo="_emptyStateTitle_1ywut_352",Ho="_emptyStateSubtitle_1ywut_359",Uo="_loadingWrap_1ywut_368",Ko="_skeletonShimmer_1ywut_373",zo="_skeletonDateTabs_1ywut_387",Go="_skeletonDateTab_1ywut_387",Yo="_skeletonPeriodTabs_1ywut_401",Vo="_skeletonPeriodTab_1ywut_401",Jo="_skeletonTimeGrid_1ywut_416",Zo="_skeletonTimeSlot_1ywut_422",m={root:uo,languageRow:_o,languageLabel:ho,languageDropdown:po,languageDropdownBtn:go,languageMenu:bo,languageMenuItem:xo,languageMenuItemSelected:fo,languageDivider:No,sectionHeading:jo,reportReadyBanner:wo,reportReadyDuration:yo,dateTabs:vo,dateTabIndicator:So,dateTab:To,dateTabDivider:ko,dateTabSelected:Io,dateTabLabel:$o,dateTabNum:Lo,periodTabs:Co,periodTabIndicator:Do,periodTab:Mo,periodTabSelected:Bo,timeGrid:Ro,emptyState:Ao,timeSlot:Po,timeSlotSelected:Eo,stateMessage:Oo,retryBtn:Fo,emptyStateIcon:qo,emptyStateTitle:Wo,emptyStateSubtitle:Ho,loadingWrap:Uo,skeletonShimmer:Ko,skeletonDateTabs:zo,skeletonDateTab:Go,skeletonPeriodTabs:Yo,skeletonPeriodTab:Vo,skeletonTimeGrid:Jo,skeletonTimeSlot:Zo},Qo={morning:Fa,afternoon:qa,evening:Wa},Xo={morning:"planPeriodMorning",afternoon:"planPeriodAfternoon",evening:"planPeriodEvening"},W=(...t)=>t.filter(Boolean).join(" "),es=({days:t,loading:n=!1,error:a=!1,onRetry:s,selectedDate:r,onDateSelect:i,selectedPeriod:l,onPeriodSelect:c,selectedSlotStart:h,onSlotSelect:_,hideLanguageSelector:x=!1,languageOptions:d=Oe,selectedLanguage:g,onLanguageSelect:b,showPhoneNumberSection:j=!0,phoneNumberSection:A,showAstrologyProfilesSection:y=!0,astrologyProfilesSection:T,heading:B,languageLabel:J,reportReadyNote:H,isGlobal:Z=!0,t:w,className:G=""})=>{const $=u.useMemo(()=>t.filter(o=>o.has_availability&&o.slots.length>0),[t]),[ae,ce]=u.useState(""),P=u.useMemo(()=>{const o=r??ae;return $.some(p=>p.date===o)?o:$[0]?.date??""},[r,ae,$]),E=u.useMemo(()=>$.find(o=>o.date===P)??null,[$,P]),O=u.useMemo(()=>{if(!E)return[];const o=new Set(E.slots.map(p=>p.period));return Ee.filter(p=>o.has(p))},[E]),[Q,N]=u.useState(""),k=u.useMemo(()=>{const o=l??Q;return o&&O.includes(o)?o:O[0]??"morning"},[l,Q,O]),U=u.useMemo(()=>E?E.slots.filter(o=>o.period===k):[],[E,k]),[fe,Je]=u.useState(""),Ne=u.useMemo(()=>{if(h===null)return"";const o=h??fe;return U.some(p=>p.start===o)?o:U[0]?.start??""},[h,fe,U]),[Ze,Qe]=u.useState(()=>d[0]?.code??"en"),je=g??Ze,le=d.find(o=>o.code===je)??d[0],[oe,de]=u.useState(!1),me=u.useRef(null);u.useEffect(()=>{if(!oe)return;const o=p=>{me.current&&!me.current.contains(p.target)&&de(!1)};return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[oe]);const we=u.useRef(null),ye=u.useRef({}),[X,ve]=u.useState(null),Se=u.useRef(null),Te=u.useRef({}),[ue,ke]=u.useState(null);u.useEffect(()=>{const o=()=>{const p=we.current,L=ye.current[P];if(!p||!L){ve(null);return}const F=p.getBoundingClientRect(),C=L.getBoundingClientRect();ve({left:C.left-F.left,top:C.top-F.top,width:C.width,height:C.height})};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[P,$,n,a]),u.useEffect(()=>{const o=()=>{const p=Se.current,L=Te.current[k];if(!p||!L){ke(null);return}const F=p.getBoundingClientRect(),C=L.getBoundingClientRect();ke({left:C.left-F.left,width:C.width})};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[k,O,n,a]);const Xe=o=>{ce(o),i?.(o)},et=o=>{N(o),c?.(o)},tt=o=>{Je(o.start),_?.(o)},nt=o=>{Qe(o),de(!1),b?.(o)};return e.jsxs("div",{className:W(m.root,G),children:[j&&(A??e.jsx(Fe,{t:w})),y&&(T??e.jsx(qe,{t:w})),!x&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:m.languageRow,children:[e.jsx("span",{className:m.languageLabel,children:J??w?.("planConsultationLanguageLabel")??"Your consultation language"}),e.jsxs("div",{className:m.languageDropdown,ref:me,children:[e.jsxs("button",{type:"button",className:m.languageDropdownBtn,onClick:()=>de(o=>!o),"aria-haspopup":"listbox","aria-expanded":oe,children:[(le?.labelKey&&w?.(le.labelKey))??le?.label,e.jsx(Oa,{})]}),oe&&e.jsx("ul",{className:m.languageMenu,role:"listbox",children:d.map(o=>{const p=o.code===je;return e.jsxs("li",{role:"option","aria-selected":p,className:W(m.languageMenuItem,p&&m.languageMenuItemSelected),onClick:()=>nt(o.code),children:[(o.labelKey&&w?.(o.labelKey))??o.label,p&&e.jsx(Ea,{})]},o.code)})})]})]}),e.jsx("hr",{className:m.languageDivider})]}),e.jsx("p",{className:m.sectionHeading,children:B??w?.("planSelectSlotHeading")??"Book your preferred consultation slot"}),H===void 0?e.jsxs("p",{className:m.reportReadyBanner,children:[w?.("planReportReadyPrefix")??"Your Report will be ready in"," ",e.jsx("span",{className:m.reportReadyDuration,children:w?.("planReportReadyDuration")??"24-48 hours"})," ",w?.("planReportReadySuffix")??"from today"]}):H,n&&e.jsxs("div",{className:m.loadingWrap,"aria-busy":"true","aria-live":"polite",children:[e.jsx("div",{className:m.skeletonDateTabs,children:Array.from({length:5}).map((o,p)=>e.jsx("div",{className:W(m.skeletonDateTab,m.skeletonShimmer)},p))}),e.jsx("div",{className:m.skeletonPeriodTabs,children:Array.from({length:3}).map((o,p)=>e.jsx("div",{className:W(m.skeletonPeriodTab,m.skeletonShimmer)},p))}),e.jsx("div",{className:m.skeletonTimeGrid,children:Array.from({length:6}).map((o,p)=>e.jsx("div",{className:W(m.skeletonTimeSlot,m.skeletonShimmer)},p))})]}),!n&&a&&e.jsxs("div",{className:m.stateMessage,children:[w?.("planSlotsLoadError")??"Couldn't load slots. Please try again.",s&&e.jsx("button",{type:"button",className:m.retryBtn,onClick:s,children:w?.("planRetry")??"Retry"})]}),!n&&!a&&$.length===0&&e.jsxs("div",{className:m.emptyState,children:[e.jsx("span",{className:m.emptyStateIcon,children:e.jsx(Ha,{})}),e.jsx("p",{className:m.emptyStateTitle,children:w?.("planNoSlotsAvailableTitle")??"No slots available"}),e.jsx("p",{className:m.emptyStateSubtitle,children:w?.("planNoSlotsAvailableSubtitle")??"Try a different consultation language above, or check back soon."})]}),!n&&!a&&$.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:m.dateTabs,ref:we,role:"radiogroup","aria-label":"Consultation date",children:[X&&e.jsx("span",{className:m.dateTabIndicator,style:{transform:`translate(${X.left}px, ${X.top}px)`,width:X.width,height:X.height},"aria-hidden":"true"}),$.map(o=>{const p=o.date===P,{dayLabel:L,dayNum:F}=Pe(o.date);return e.jsxs(u.Fragment,{children:[e.jsxs("button",{type:"button",ref:C=>{ye.current[o.date]=C},className:W(m.dateTab,p&&m.dateTabSelected),role:"radio","aria-checked":p,onClick:()=>Xe(o.date),children:[e.jsx("span",{className:m.dateTabLabel,children:w?.(L)??L}),e.jsx("span",{className:m.dateTabNum,children:F})]}),e.jsx("span",{className:m.dateTabDivider,"aria-hidden":!0})]},o.date)})]}),e.jsxs("div",{className:m.periodTabs,ref:Se,role:"tablist","aria-label":"Time of day",children:[ue&&e.jsx("span",{className:m.periodTabIndicator,style:{transform:`translateX(${ue.left}px)`,width:ue.width},"aria-hidden":"true"}),O.map(o=>{const p=Qo[o],L=o==="evening"&&Z,F=L?"planPeriodEveningNight":Xo[o];return e.jsxs("button",{ref:C=>{Te.current[o]=C},type:"button",className:W(m.periodTab,o===k&&m.periodTabSelected),role:"tab","aria-selected":o===k,onClick:()=>et(o),children:[e.jsx(p,{}),w?.(F)??(L?"Evening/Night":o.charAt(0).toUpperCase()+o.slice(1))]},o)})]}),e.jsx("div",{className:m.timeGrid,role:"radiogroup","aria-label":"Consultation time",children:U.map((o,p)=>e.jsx("button",{type:"button",className:W(m.timeSlot,Ne===o.start&&m.timeSlotSelected),role:"radio","aria-checked":Ne===o.start,onClick:()=>tt(o),children:Ae(o.start)},`${o.start}-${p}`))},`${P}-${k}`)]})]})},De="+05:30",ts=t=>{const n=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0");return`${t.getFullYear()}-${n}-${a}`},ns=(t,n,a,s)=>{const r=c=>String(c).padStart(2,"0"),i=a+30,l=n+Math.floor(i/60);return{start:`${t}T${r(n)}:${r(a)}:00${De}`,end:`${t}T${r(l)}:${r(i%60)}:00${De}`,period:s}},as={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]]},te=(t,n)=>{const a=new Date;a.setDate(a.getDate()+t);const s=ts(a),r=n.flatMap(i=>as[i].map(([l,c])=>ns(s,l,c,i)));return{date:s,has_availability:r.length>0,slots:r}},We=[te(0,["morning","afternoon","evening"]),te(1,["morning","afternoon"]),te(2,["afternoon","evening"]),te(3,["morning","evening"]),te(4,["morning","afternoon","evening"])],os=We.map(t=>({...t,has_availability:!1,slots:[]})),ss=()=>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"})}),He=[{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"}],Ue=t=>{if(!t||t.length!==2)return"🏳️";const n=t.toUpperCase().split("").map(a=>127397+a.charCodeAt(0));return String.fromCodePoint(...n)},Ke={"+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"}},ze={pattern:/^\d{6,15}$/,maxLength:15,description:"6-15 digits"},be=(t,n)=>{if(!t)return{isValid:!0,error:""};const a=Ke[n]||ze;return a.pattern.test(t)?{isValid:!0,error:""}:{isValid:!1,error:`Please enter a valid phone number (${a.description})`}},xe=t=>(Ke[t]||ze).maxLength,rs=({countryCode:t,contactNumber:n,countries:a,onCountryCodeChange:s,onPhoneNumberChange:r,onValidationChange:i,onDropdownFocus:l,onInputFocus:c})=>{const[h,_]=u.useState(!1),x=a.find(y=>y.code===t)??a[0],d=xe(t),g=u.useCallback(y=>{if(s(y.code,y.name),_(!1),n&&i){const{isValid:T,error:B}=be(n,y.code);i(T,B)}},[n,s,i]),b=u.useCallback(y=>{const B=y.target.value.replace(/[^\d]/g,"").slice(0,xe(t));if(r(B),i){const{isValid:J,error:H}=be(B,t);i(J,H)}},[t,r,i]),j=u.useCallback(()=>{_(y=>(y||l?.(t),!y))},[t,l]),A=u.useCallback(()=>{_(!1),c?.(t)},[t,c]);return{isDropdownOpen:h,selectedCountry:x,maxLength:d,handleCountrySelect:g,handlePhoneChange:b,handleDropdownToggle:j,handlePhoneFocus:A,closeDropdown:()=>_(!1)}},is="_root_3ywyc_2",cs="_label_3ywyc_9",ls="_row_3ywyc_17",ds="_dropdownWrap_3ywyc_23",ms="_dropdownBtn_3ywyc_29",us="_dropdownMenu_3ywyc_50",_s="_dropdownItem_3ywyc_64",hs="_dropdownItemCode_3ywyc_80",ps="_dropdownItemName_3ywyc_85",gs="_flagImg_3ywyc_93",bs="_flagEmoji_3ywyc_97",xs="_input_3ywyc_102",fs="_inputError_3ywyc_121",Ns="_helper_3ywyc_129",js="_error_3ywyc_137",v={root:is,label:cs,row:ls,dropdownWrap:ds,dropdownBtn:ms,dropdownMenu:us,dropdownItem:_s,dropdownItemCode:hs,dropdownItemName:ps,flagImg:gs,flagEmoji:bs,input:xs,inputError:fs,helper:Ns,error:js},Me=(...t)=>t.filter(Boolean).join(" "),ws=({countryCode:t,contactNumber:n,error:a,label:s,helperText:r,countries:i=He,getFlagUrl:l,onCountryCodeChange:c,onPhoneNumberChange:h,onValidationChange:_,onDropdownFocus:x,onInputFocus:d,inputRef:g,t:b,className:j=""})=>{const[A,y]=u.useState(i[0]?.code??"+91"),[T,B]=u.useState(""),J=t??A,H=n??T,Z=u.useRef(null),{isDropdownOpen:w,selectedCountry:G,maxLength:$,handleCountrySelect:ae,handlePhoneChange:ce,handleDropdownToggle:P,handlePhoneFocus:E,closeDropdown:O}=rs({countryCode:J,contactNumber:H,countries:i,onCountryCodeChange:(N,k)=>{y(N),c?.(N,k)},onPhoneNumberChange:N=>{B(N),h?.(N)},onValidationChange:_,onDropdownFocus:x,onInputFocus:d});u.useEffect(()=>{const N=k=>{Z.current&&!Z.current.contains(k.target)&&O()};return w&&document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[w,O]);const Q=(N,k)=>{const U=N?l?.(N):null;return U?e.jsx("img",{src:U,alt:k,width:20,height:14,className:v.flagImg}):e.jsx("span",{className:v.flagEmoji,"aria-hidden":!0,children:Ue(N)})};return e.jsxs("div",{className:Me(v.root,j),children:[s&&e.jsx("div",{className:v.label,children:s}),e.jsxs("div",{className:v.row,children:[e.jsxs("div",{className:v.dropdownWrap,ref:Z,children:[e.jsxs("button",{type:"button",className:v.dropdownBtn,onClick:P,children:[Q(G?.iso,G?.name??"Flag"),e.jsx("span",{children:G?.code??"+91"}),e.jsx(ss,{})]}),w&&e.jsx("div",{className:v.dropdownMenu,role:"listbox",children:i.map(N=>e.jsxs("button",{type:"button",role:"option","aria-selected":N.code===G?.code,className:v.dropdownItem,onClick:()=>ae(N),children:[Q(N.iso,N.name),e.jsx("span",{className:v.dropdownItemCode,children:N.code}),e.jsx("span",{className:v.dropdownItemName,children:N.name})]},`${N.code}-${N.iso}`))})]}),e.jsx("input",{type:"tel",inputMode:"numeric",autoComplete:"off",value:H,maxLength:$,ref:g,className:Me(v.input,a&&v.inputError),placeholder:b?.("planPhoneNumberPlaceholder")??"0000000000",onChange:ce,onFocus:E})]}),r&&e.jsx("div",{className:v.helper,children:r}),a&&e.jsx("p",{className:v.error,children:a})]})},ys=()=>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"})}),vs=()=>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"})}),Ss="_card_1ytv6_2",Ts="_cardSelected_1ytv6_24",ks="_photoWrap_1ytv6_31",Is="_photoFrame_1ytv6_37",$s="_photoImg_1ytv6_45",Ls="_ratingPill_1ytv6_51",Cs="_ratingValue_1ytv6_66",Ds="_info_1ytv6_74",Ms="_name_1ytv6_84",Bs="_meta_1ytv6_95",Rs="_languages_1ytv6_103",As="_consultationCount_1ytv6_113",Ps="_checkIcon_1ytv6_121",Es="_recommendedBadge_1ytv6_126",Os="_recommendedLabel_1ytv6_138",S={card:Ss,cardSelected:Ts,photoWrap:ks,photoFrame:Is,photoImg:$s,ratingPill:Ls,ratingValue:Cs,info:Ds,name:Ms,meta:Bs,languages:Rs,consultationCount:As,checkIcon:Ps,recommendedBadge:Es,recommendedLabel:Os},Fs="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>",Ge=({photoUrl:t,name:n,rating:a,fallbackPhotoUrl:s=Fs})=>e.jsxs("div",{className:S.photoWrap,children:[e.jsx("div",{className:S.photoFrame,children:e.jsx("img",{src:t||s,alt:n,width:64,height:78,className:S.photoImg,onError:r=>{r.target.src=s}})}),e.jsxs("div",{className:S.ratingPill,children:[e.jsx("span",{className:S.ratingValue,children:a}),e.jsx(ys,{})]})]}),Ye=({label:t,t:n})=>e.jsx("div",{className:S.recommendedBadge,children:e.jsx("span",{className:S.recommendedLabel,children:t??n?.("planRecommendedAstrologer")??"Recommended"})}),qs=(...t)=>t.filter(Boolean).join(" "),Ws=t=>{if(t>=1e3){const n=t/1e3;return`${Number.isInteger(n)?n:n.toFixed(1)}K consultations`}return`${t} consultations`},Ve=({astrologer:t,isSelected:n=!1,onClick:a,fallbackPhotoUrl:s,formatConsultationCount:r=Ws})=>e.jsxs("button",{type:"button",onClick:()=>a?.(t),className:qs(S.card,n&&S.cardSelected),children:[e.jsx(Ge,{photoUrl:t.photo_url,name:t.name,rating:t.rating,fallbackPhotoUrl:s}),e.jsxs("div",{className:S.info,children:[e.jsx("span",{className:S.name,children:t.name}),e.jsxs("div",{className:S.meta,children:[e.jsx("span",{className:S.languages,children:t.languages.join(", ")}),e.jsx("span",{className:S.consultationCount,children:r(t.consultation_count)})]})]}),n&&e.jsx("div",{className:S.checkIcon,children:e.jsx(vs,{})}),t.is_recommended&&e.jsx(Ye,{})]}),Hs="_section_jbaga_2",Us="_title_jbaga_6",Ks="_row_jbaga_13",zs="_skeletonCard_jbaga_26",Gs="_skeletonShimmer_jbaga_33",ne={section:Hs,title:Us,row:Ks,skeletonCard:zs,skeletonShimmer:Gs},Be=(...t)=>t.filter(Boolean).join(" "),Ys=({astrologers:t,loading:n=!1,selectedAstrologerId:a,onAstrologerSelect:s,title:r,fallbackPhotoUrl:i,formatConsultationCount:l,t:c,className:h=""})=>{const[_,x]=u.useState(""),d=a??_,g=b=>{x(b.astrologer_id),s?.(b)};return e.jsxs("section",{className:Be(ne.section,h),children:[e.jsx("p",{className:ne.title,children:r??c?.("planSelectAstrologerHeading")??"Select an astrologer"}),e.jsx("div",{className:ne.row,role:"radiogroup","aria-label":"Astrologer",children:n?Array.from({length:2}).map((b,j)=>e.jsx("div",{className:Be(ne.skeletonCard,ne.skeletonShimmer)},j)):t.map(b=>e.jsx(Ve,{astrologer:b,isSelected:b.astrologer_id===d,onClick:g,fallbackPhotoUrl:i,formatConsultationCount:l},b.astrologer_id))})]})},Vs=[{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=Ve;exports.AstrologerList=Ys;exports.AstrologerPhoto=Ge;exports.AstrologyProfilesSection=qe;exports.CONSULTATION_LANGUAGE_OPTIONS=Oe;exports.CONSULTATION_PERIOD_ORDER=Ee;exports.CircularMarquee=Re;exports.ConsultationSlotSelector=es;exports.ContactUsSection=Pa;exports.DEFAULT_COUNTRIES=He;exports.FAQAccordion=Pt;exports.FooterCTAButton=Ta;exports.FooterShell=Sa;exports.FormCheckboxWithHelp=la;exports.FormContainer=Zt;exports.FormDateInput=Pn;exports.FormField=Sn;exports.FormFooterNote=ua;exports.FormLocationInput=Vn;exports.FormSectionHeader=rn;exports.FormSegmentedControl=Xn;exports.FormTagPills=aa;exports.FormTextInput=Cn;exports.FormTimeInput=Hn;exports.MOCK_ASTROLOGERS=Vs;exports.MOCK_SLOT_DAYS=We;exports.MOCK_SLOT_DAYS_EMPTY=os;exports.MarqueeStrip=Ca;exports.PageHeader=Gt;exports.PhoneNumberInput=ws;exports.PhoneNumberSection=Fe;exports.PrivacyBanner=un;exports.RecommendedBadge=Ye;exports.UserReviewsSection=St;exports.footerShellStyles=z;exports.formatSlotDayLabel=Pe;exports.formatSlotTime=Ae;exports.getFlagEmoji=Ue;exports.getMaxLengthForCountry=xe;exports.validatePhoneByCountryCode=be;
|
|
15
2
|
//# sourceMappingURL=index.cjs.map
|