@srimandir/astrology-common 6.0.1 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/astrology-common.css +1 -1
- package/dist/components/CircularMarquee/CircularMarquee.d.ts +1 -1
- package/dist/components/ConsultationSlotSelector/AstrologyProfilesSection.d.ts +27 -0
- package/dist/components/ConsultationSlotSelector/ConsultationSlotSelector.d.ts +53 -0
- package/dist/components/ConsultationSlotSelector/PhoneNumberSection.d.ts +17 -0
- package/dist/components/ConsultationSlotSelector/SlotIcons.d.ts +13 -0
- package/dist/components/ConsultationSlotSelector/index.d.ts +6 -0
- package/dist/components/ConsultationSlotSelector/mockSlots.d.ts +5 -0
- package/dist/components/ConsultationSlotSelector/slotUtils.d.ts +18 -0
- package/dist/components/ConsultationSlotSelector/types.d.ts +32 -0
- package/dist/components/ContactUsSection/ContactUsSection.d.ts +1 -1
- package/dist/components/FAQAccordion/FAQAccordion.d.ts +1 -1
- package/dist/components/FooterShell/FooterCTAButton.d.ts +1 -1
- package/dist/components/FooterShell/FooterShell.d.ts +1 -1
- package/dist/components/FormCheckboxWithHelp/FormCheckboxWithHelp.d.ts +1 -1
- package/dist/components/FormContainer/FormContainer.d.ts +1 -1
- package/dist/components/FormDateInput/FormDateInput.d.ts +1 -1
- package/dist/components/FormField/FormField.d.ts +1 -1
- package/dist/components/FormFooterNote/FormFooterNote.d.ts +1 -1
- package/dist/components/FormLocationInput/FormLocationInput.d.ts +1 -1
- package/dist/components/FormSectionHeader/FormSectionHeader.d.ts +1 -1
- package/dist/components/FormSegmentedControl/FormSegmentedControl.d.ts +1 -1
- package/dist/components/FormTagPills/FormTagPills.d.ts +1 -1
- package/dist/components/FormTextInput/FormTextInput.d.ts +1 -1
- package/dist/components/FormTimeInput/FormTimeInput.d.ts +1 -1
- package/dist/components/MarqueeStrip/MarqueeStrip.d.ts +1 -1
- package/dist/components/PageHeader/PageHeader.d.ts +1 -1
- package/dist/components/PrivacyBanner/PrivacyBanner.d.ts +1 -1
- package/dist/components/UserReviewsSection/UserReviewsSection.d.ts +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1399 -824
- package/dist/index.js.map +1 -1
- package/package.json +12 -3
package/dist/index.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./styles.js");const
|
|
2
|
-
`+
|
|
3
|
-
`),
|
|
4
|
-
`),
|
|
5
|
-
`+
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./styles.js");const j=require("react");var Me={exports:{}},Se={};var ut;function Ht(){if(ut)return Se;ut=1;var a=j,r=Symbol.for("react.element"),s=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,l=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function _(d,f,g){var v,h={},w=null,k=null;g!==void 0&&(w=""+g),f.key!==void 0&&(w=""+f.key),f.ref!==void 0&&(k=f.ref);for(v in f)c.call(f,v)&&!u.hasOwnProperty(v)&&(h[v]=f[v]);if(d&&d.defaultProps)for(v in f=d.defaultProps,f)h[v]===void 0&&(h[v]=f[v]);return{$$typeof:r,type:d,key:w,ref:k,props:h,_owner:l.current}}return Se.Fragment=s,Se.jsx=_,Se.jsxs=_,Se}var Te={};var _t;function Kt(){return _t||(_t=1,process.env.NODE_ENV!=="production"&&(function(){var a=j,r=Symbol.for("react.element"),s=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),E=Symbol.iterator,Z="@@iterator";function ge(e){if(e===null||typeof e!="object")return null;var n=E&&e[E]||e[Z];return typeof n=="function"?n:null}var O=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function $(e){{for(var n=arguments.length,i=new Array(n>1?n-1:0),m=1;m<n;m++)i[m-1]=arguments[m];qe("error",e,i)}}function qe(e,n,i){{var m=O.ReactDebugCurrentFrame,N=m.getStackAddendum();N!==""&&(n+="%s",i=i.concat([N]));var S=i.map(function(y){return String(y)});S.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,S)}}var Ie=!1,We=!1,C=!1,Ye=!1,q=!1,be;be=Symbol.for("react.module.reference");function Ue(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===u||q||e===l||e===g||e===v||Ye||e===k||Ie||We||C||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===h||e.$$typeof===_||e.$$typeof===d||e.$$typeof===f||e.$$typeof===be||e.getModuleId!==void 0))}function J(e,n,i){var m=e.displayName;if(m)return m;var N=n.displayName||n.name||"";return N!==""?i+"("+N+")":i}function V(e){return e.displayName||"Context"}function L(e){if(e==null)return null;if(typeof e.tag=="number"&&$("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case s:return"Portal";case u:return"Profiler";case l:return"StrictMode";case g:return"Suspense";case v:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case d:var n=e;return V(n)+".Consumer";case _:var i=e;return V(i._context)+".Provider";case f:return J(e,e.render,"ForwardRef");case h:var m=e.displayName||null;return m!==null?m:L(e.type)||"Memo";case w:{var N=e,S=N._payload,y=N._init;try{return L(y(S))}catch{return null}}}return null}var U=Object.assign,ee=0,H,te,ve,$e,xe,Ee,Ce;function ye(){}ye.__reactDisabledLog=!0;function je(){{if(ee===0){H=console.log,te=console.info,ve=console.warn,$e=console.error,xe=console.group,Ee=console.groupCollapsed,Ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ye,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ee++}}function de(){{if(ee--,ee===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U({},e,{value:H}),info:U({},e,{value:te}),warn:U({},e,{value:ve}),error:U({},e,{value:$e}),group:U({},e,{value:xe}),groupCollapsed:U({},e,{value:Ee}),groupEnd:U({},e,{value:Ce})})}ee<0&&$("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ne=O.ReactCurrentDispatcher,ae;function re(e,n,i){{if(ae===void 0)try{throw Error()}catch(N){var m=N.stack.trim().match(/\n( *(at )?)/);ae=m&&m[1]||""}return`
|
|
2
|
+
`+ae+e}}var ue=!1,K;{var Oe=typeof WeakMap=="function"?WeakMap:Map;K=new Oe}function we(e,n){if(!e||ue)return"";{var i=K.get(e);if(i!==void 0)return i}var m;ue=!0;var N=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var S;S=ne.current,ne.current=null,je();try{if(n){var y=function(){throw Error()};if(Object.defineProperty(y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(y,[])}catch(M){m=M}Reflect.construct(e,[],y)}else{try{y.call()}catch(M){m=M}e.call(y.prototype)}}else{try{throw Error()}catch(M){m=M}e()}}catch(M){if(M&&m&&typeof M.stack=="string"){for(var b=M.stack.split(`
|
|
3
|
+
`),P=m.stack.split(`
|
|
4
|
+
`),R=b.length-1,I=P.length-1;R>=1&&I>=0&&b[R]!==P[I];)I--;for(;R>=1&&I>=0;R--,I--)if(b[R]!==P[I]){if(R!==1||I!==1)do if(R--,I--,I<0||b[R]!==P[I]){var F=`
|
|
5
|
+
`+b[R].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),typeof e=="function"&&K.set(e,F),F}while(R>=1&&I>=0);break}}}finally{ue=!1,ne.current=S,de(),Error.prepareStackTrace=N}var he=e?e.displayName||e.name:"",ie=he?re(he):"";return typeof e=="function"&&K.set(e,ie),ie}function De(e,n,i){return we(e,!1)}function Ne(e){var n=e.prototype;return!!(n&&n.isReactComponent)}function oe(e,n,i){if(e==null)return"";if(typeof e=="function")return we(e,Ne(e));if(typeof e=="string")return re(e);switch(e){case g:return re("Suspense");case v:return re("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return De(e.render);case h:return oe(e.type,n,i);case w:{var m=e,N=m._payload,S=m._init;try{return oe(S(N),n,i)}catch{}}}return""}var se=Object.prototype.hasOwnProperty,Pe={},Le=O.ReactDebugCurrentFrame;function _e(e){if(e){var n=e._owner,i=oe(e.type,e._source,n?n.type:null);Le.setExtraStackFrame(i)}else Le.setExtraStackFrame(null)}function o(e,n,i,m,N){{var S=Function.call.bind(se);for(var y in e)if(S(e,y)){var b=void 0;try{if(typeof e[y]!="function"){var P=Error((m||"React class")+": "+i+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw P.name="Invariant Violation",P}b=e[y](n,y,m,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(R){b=R}b&&!(b instanceof Error)&&(_e(N),$("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",m||"React class",i,y,typeof b),_e(null)),b instanceof Error&&!(b.message in Pe)&&(Pe[b.message]=!0,_e(N),$("Failed %s type: %s",i,b.message),_e(null))}}}var x=Array.isArray;function D(e){return x(e)}function z(e){{var n=typeof Symbol=="function"&&Symbol.toStringTag,i=n&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function A(e){try{return Ze(e),!1}catch{return!0}}function Ze(e){return""+e}function et(e){if(A(e))return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",z(e)),Ze(e)}var tt=O.ReactCurrentOwner,kt={key:!0,ref:!0,__self:!0,__source:!0},nt,at;function Rt(e){if(se.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return e.ref!==void 0}function It(e){if(se.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return e.key!==void 0}function $t(e,n){typeof e.ref=="string"&&tt.current}function Et(e,n){{var i=function(){nt||(nt=!0,$("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}}function Ct(e,n){{var i=function(){at||(at=!0,$("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}}var Ot=function(e,n,i,m,N,S,y){var b={$$typeof:r,type:e,key:n,ref:i,props:y,_owner:S};return b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(b,"_self",{configurable:!1,enumerable:!1,writable:!1,value:m}),Object.defineProperty(b,"_source",{configurable:!1,enumerable:!1,writable:!1,value:N}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b};function Dt(e,n,i,m,N){{var S,y={},b=null,P=null;i!==void 0&&(et(i),b=""+i),It(n)&&(et(n.key),b=""+n.key),Rt(n)&&(P=n.ref,$t(n,N));for(S in n)se.call(n,S)&&!kt.hasOwnProperty(S)&&(y[S]=n[S]);if(e&&e.defaultProps){var R=e.defaultProps;for(S in R)y[S]===void 0&&(y[S]=R[S])}if(b||P){var I=typeof e=="function"?e.displayName||e.name||"Unknown":e;b&&Et(y,I),P&&Ct(y,I)}return Ot(e,b,P,N,m,tt.current,y)}}var He=O.ReactCurrentOwner,rt=O.ReactDebugCurrentFrame;function fe(e){if(e){var n=e._owner,i=oe(e.type,e._source,n?n.type:null);rt.setExtraStackFrame(i)}else rt.setExtraStackFrame(null)}var Ke;Ke=!1;function ze(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function ot(){{if(He.current){var e=L(He.current.type);if(e)return`
|
|
6
6
|
|
|
7
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
7
|
+
Check the render method of \``+e+"`."}return""}}function Pt(e){return""}var st={};function Lt(e){{var n=ot();if(!n){var i=typeof e=="string"?e:e.displayName||e.name;i&&(n=`
|
|
8
8
|
|
|
9
|
-
Check the top-level render call using <`+
|
|
9
|
+
Check the top-level render call using <`+i+">.")}return n}}function it(e,n){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=Lt(n);if(st[i])return;st[i]=!0;var m="";e&&e._owner&&e._owner!==He.current&&(m=" It was passed a child from "+L(e._owner.type)+"."),fe(e),$('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',i,m),fe(null)}}function ct(e,n){{if(typeof e!="object")return;if(D(e))for(var i=0;i<e.length;i++){var m=e[i];ze(m)&&it(m,n)}else if(ze(e))e._store&&(e._store.validated=!0);else if(e){var N=ge(e);if(typeof N=="function"&&N!==e.entries)for(var S=N.call(e),y;!(y=S.next()).done;)ze(y.value)&&it(y.value,n)}}}function Mt(e){{var n=e.type;if(n==null||typeof n=="string")return;var i;if(typeof n=="function")i=n.propTypes;else if(typeof n=="object"&&(n.$$typeof===f||n.$$typeof===h))i=n.propTypes;else return;if(i){var m=L(n);o(i,e.props,"prop",m,e)}else if(n.PropTypes!==void 0&&!Ke){Ke=!0;var N=L(n);$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",N||"Unknown")}typeof n.getDefaultProps=="function"&&!n.getDefaultProps.isReactClassApproved&&$("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function At(e){{for(var n=Object.keys(e.props),i=0;i<n.length;i++){var m=n[i];if(m!=="children"&&m!=="key"){fe(e),$("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",m),fe(null);break}}e.ref!==null&&(fe(e),$("Invalid attribute `ref` supplied to `React.Fragment`."),fe(null))}}var lt={};function dt(e,n,i,m,N,S){{var y=Ue(e);if(!y){var b="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(b+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var P=Pt();P?b+=P:b+=ot();var R;e===null?R="null":D(e)?R="array":e!==void 0&&e.$$typeof===r?(R="<"+(L(e.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):R=typeof e,$("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",R,b)}var I=Dt(e,n,i,N,S);if(I==null)return I;if(y){var F=n.children;if(F!==void 0)if(m)if(D(F)){for(var he=0;he<F.length;he++)ct(F[he],e);Object.freeze&&Object.freeze(F)}else $("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ct(F,e)}if(se.call(n,"key")){var ie=L(e),M=Object.keys(n).filter(function(Ut){return Ut!=="key"}),Ge=M.length>0?"{key: someKey, "+M.join(": ..., ")+": ...}":"{key: someKey}";if(!lt[ie+Ge]){var Yt=M.length>0?"{"+M.join(": ..., ")+": ...}":"{}";$(`A props object containing a "key" prop is being spread into JSX:
|
|
10
10
|
let props = %s;
|
|
11
11
|
<%s {...props} />
|
|
12
12
|
React keys must be passed directly to JSX without using spread:
|
|
13
13
|
let props = %s;
|
|
14
|
-
<%s key={someKey} {...props} />`,_e,B,It,B),Le[B+_e]=!0}}return e===i?$t($):Nt($),$}}function Et(e,r,n){return Me(e,r,n,!0)}function Rt(e,r,n){return Me(e,r,n,!1)}var kt=Rt,Tt=Et;G.Fragment=i,G.jsx=kt,G.jsxs=Tt})()),G}var ze;function Pt(){return ze||(ze=1,process.env.NODE_ENV==="production"?te.exports=Ct():te.exports=St()),te.exports}var t=Pt();const Ft="_section_1fboo_1",qt="_heading_1fboo_5",At="_trustLine_1fboo_9",Bt="_star_1fboo_13",Dt="_ratingNum_1fboo_17",Wt="_trustText_1fboo_21",Lt="_cardList_1fboo_25",Mt="_card_1fboo_25",Ut="_quote_1fboo_37",Yt="_author_1fboo_41",zt="_avatar_1fboo_45",Ht="_avatarPlaceholder_1fboo_49",Vt="_authorInfo_1fboo_54",Jt="_authorName_1fboo_58",Gt="_stars_1fboo_62",Kt="_readMoreWrap_1fboo_66",Xt="_toggleBtn_1fboo_70",Qt="_readMore_1fboo_66",Zt="_arrow_1fboo_89",er="_dot_1fboo_93",j={section:Ft,heading:qt,trustLine:At,star:Bt,ratingNum:Dt,trustText:Wt,cardList:Lt,card:Mt,quote:Ut,author:Yt,avatar:zt,avatarPlaceholder:Ht,authorInfo:Vt,authorName:Jt,stars:Gt,readMoreWrap:Kt,toggleBtn:Xt,readMore:Qt,arrow:Zt,dot:er},tr=3,He=15;function rr(a){const o=new Map;for(let c=1;c<=He;c+=1){const d=`feedbackTestimonial${c}`,h=a(d);if(!h||h===d)continue;const v=`feedbackAuthor${c}`,x=(()=>{const R=a(v);return R&&R!==v?R:a("guest")})(),y=`feedbackAuthor${c}AvatarUrl`,N=(()=>{const R=a(y);return R&&R!==y?R:void 0})();o.set(c,{quote:h,authorName:x,authorAvatarUrl:N,rating:5})}const s=[],i=[];for(let c=1;c<=He;c+=1)c>=9?i.push(c):s.push(c);const u=[];let _=0,f=0;for(;_<s.length||f<i.length;){if(f<i.length){const c=i[f++],d=o.get(c);d&&u.push(d)}if(_<s.length){const c=s[_++],d=o.get(c);d&&u.push(d)}}return u}function nr({t:a,testimonials:o,initialVisible:s=tr,readMoreHref:i,onReadMore:u,className:_="",headingClassName:f}){const c=o??F.useMemo(()=>rr(a),[a]),[d,h]=F.useState(!1),v=c.length>s,x=v&&!d?c.slice(0,s):c,y=a("feedbackTitle"),N=a("feedbackRating"),R=a("feedbackTrust"),z=a("readMoreReviews"),oe=a("readLess");return t.jsxs("section",{className:`${j.section} ${_}`,"aria-labelledby":"reviews-heading",children:[t.jsx("h2",{id:"reviews-heading",className:[j.heading,f].filter(Boolean).join(" "),children:y}),t.jsxs("p",{className:j.trustLine,children:[t.jsx("span",{className:j.star,"aria-hidden":!0,children:"★"}),t.jsx("span",{className:j.ratingNum,children:N}),t.jsx("span",{className:j.dot,"aria-hidden":!0}),t.jsx("span",{className:j.trustText,children:R})]}),t.jsx("ul",{className:j.cardList,children:x.map((T,E)=>t.jsxs("li",{className:j.card,children:[t.jsx("p",{className:j.quote,children:T.quote}),t.jsxs("div",{className:j.author,children:[T.authorAvatarUrl?t.jsx("img",{src:T.authorAvatarUrl,alt:"",className:j.avatar,width:40,height:40}):t.jsx("div",{className:j.avatarPlaceholder,"aria-hidden":!0}),t.jsxs("div",{className:j.authorInfo,children:[t.jsx("span",{className:j.authorName,children:T.authorName}),t.jsx("span",{className:j.stars,"aria-hidden":!0,children:"★".repeat(T.rating??5)})]})]})]},E))}),v&&t.jsx("div",{className:j.readMoreWrap,children:t.jsxs("button",{type:"button",className:j.toggleBtn,onClick:()=>h(T=>!T),"aria-expanded":d,children:[d?oe:z,t.jsx("span",{className:j.arrow,"aria-hidden":!0,children:"›"})]})}),(i||u)&&!v&&t.jsx("div",{className:j.readMoreWrap,children:i?t.jsxs("a",{href:i,className:j.readMore,target:"_blank",rel:"noopener noreferrer",children:[z,t.jsx("span",{className:j.arrow,"aria-hidden":!0,children:"›"})]}):t.jsxs("button",{type:"button",className:j.readMore,onClick:()=>u?.(),children:[z,t.jsx("span",{className:j.arrow,"aria-hidden":!0,children:"›"})]})})]})}const ar="_section_4dc65_1",or="_heading_4dc65_5",sr="_accordion_4dc65_9",ir="_item_4dc65_13",cr="_itemOpen_4dc65_17",lr="_question_4dc65_22",ur="_chevron_4dc65_30",dr="_chevronOpen_4dc65_34",fr="_answerWrap_4dc65_38",_r="_answerOpen_4dc65_42",pr="_answer_4dc65_38",C={section:ar,heading:or,accordion:sr,item:ir,itemOpen:cr,question:lr,chevron:ur,chevronOpen:dr,answerWrap:fr,answerOpen:_r,answer:pr};function hr({t:a,items:o,resolveAnswerKey:s,defaultOpenIndex:i=0,onItemOpen:u,className:_="",headingClassName:f}){const c=F.useMemo(()=>o.map(({qKey:x,aKey:y})=>({question:a(x),answer:a(s?s(y):y)})),[a,o,s]),[d,h]=F.useState(i),v=a("faqTitle");return t.jsxs("section",{className:`${C.section} ${_}`,"aria-labelledby":"faq-heading",children:[t.jsx("h2",{id:"faq-heading",className:[C.heading,f].filter(Boolean).join(" "),children:v}),t.jsx("div",{className:C.accordion,role:"list",children:c.map((x,y)=>{const N=d===y;return t.jsxs("div",{className:`${C.item} ${N?C.itemOpen:""}`,role:"listitem",children:[t.jsxs("button",{type:"button",className:C.question,onClick:()=>{const R=!N;h(N?-1:y),R&&u?.(x.question)},"aria-expanded":N,"aria-controls":`faq-answer-${y}`,id:`faq-question-${y}`,children:[t.jsx("span",{children:x.question}),t.jsx("span",{className:`${C.chevron} ${N?C.chevronOpen:""}`,"aria-hidden":!0,children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none","aria-hidden":!0,focusable:"false",children:t.jsx("path",{d:"M5.8 8.3a1 1 0 0 1 1.4 0L10 11.09l2.8-2.8a1 1 0 1 1 1.4 1.42l-3.5 3.5a1 1 0 0 1-1.4 0l-3.5-3.5A1 1 0 0 1 5.8 8.3z",fill:"currentColor"})})})]}),t.jsx("div",{id:`faq-answer-${y}`,role:"region","aria-labelledby":`faq-question-${y}`,className:`${C.answerWrap} ${N?C.answerOpen:""}`,hidden:!N,children:t.jsx("p",{className:C.answer,children:x.answer})})]},y)})})]})}const mr="_header_dbx4y_1",vr="_brand_dbx4y_7",br="_logo_dbx4y_11",gr="_logoImg_dbx4y_15",xr="_logoPlaceholder_dbx4y_21",yr="_brandText_dbx4y_29",jr="_brandName_dbx4y_33",wr="_rating_dbx4y_38",Nr="_langSlot_dbx4y_49",P={header:mr,brand:vr,logo:br,logoImg:gr,logoPlaceholder:xr,brandText:yr,brandName:jr,rating:wr,langSlot:Nr},Ve=120,Je=40;function $r({t:a,logoUrl:o,imageComponent:s,languageSelector:i,showLanguageSelector:u=!0,className:_=""}){const f=u&&i!=null,c=a("sriMandir"),d=a("ratingText");return t.jsxs("header",{className:`${P.header} ${_}`,children:[t.jsxs("div",{className:P.brand,children:[t.jsx("div",{className:P.logo,children:o?s?t.jsx(s,{src:o,alt:c,className:P.logoImg,width:Ve,height:Je}):t.jsx("img",{src:o,alt:c,className:P.logoImg,width:Ve,height:Je,decoding:"async"}):t.jsx("div",{className:P.logoPlaceholder,"aria-hidden":!0})}),t.jsxs("div",{className:P.brandText,children:[t.jsx("span",{className:P.brandName,children:c}),d!=null&&d!==""&&t.jsx("span",{className:P.rating,children:d})]})]}),f&&t.jsx("div",{className:P.langSlot,children:i})]})}const Er="_wrap_1vbpd_1",Rr="_card_1vbpd_5",kr="_cardInner_1vbpd_10",pe={wrap:Er,card:Rr,cardInner:kr};function Tr({children:a,className:o="","aria-label":s}){return t.jsx("section",{className:`${pe.wrap} ${o}`,"aria-label":s,children:t.jsx("div",{className:pe.card,children:t.jsx("div",{className:pe.cardInner,children:a})})})}const Ir="_header_a05ni_1",Or="_left_a05ni_7",Cr="_backBtn_a05ni_11",Sr="_titleWrap_a05ni_21",Pr="_title_a05ni_21",Fr="_subtitle_a05ni_31",qr="_backIcon_a05ni_37",D={header:Ir,left:Or,backBtn:Cr,titleWrap:Sr,title:Pr,subtitle:Fr,backIcon:qr},Ar=()=>t.jsx("svg",{className:D.backIcon,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:t.jsx("path",{d:"M15 18l-6-6 6-6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});function Br({title:a,subtitle:o,onBack:s,backAriaLabel:i="Back",className:u=""}){return t.jsx("header",{className:`${D.header} ${u}`,children:t.jsxs("div",{className:D.left,children:[s!=null&&t.jsx("button",{type:"button",className:D.backBtn,onClick:s,"aria-label":i,children:t.jsx(Ar,{})}),t.jsxs("div",{className:D.titleWrap,children:[t.jsx("h1",{className:D.title,children:a}),o!=null&&o!==""&&t.jsx("p",{className:D.subtitle,children:o})]})]})})}const Dr="_banner_1jco0_1",Wr="_icon_1jco0_12",Lr="_text_1jco0_16",he={banner:Dr,icon:Wr,text:Lr},Mr="https://srm-cdn.a4b.io/yoda/1770707793537.svg";function Ur({text:a,iconUrl:o=Mr,className:s=""}){return t.jsx("div",{className:`${he.banner} ${s}`,role:"status",children:t.jsxs("span",{className:he.text,children:[" ",t.jsx("img",{src:o,alt:"",className:he.icon,width:18,height:18,"aria-hidden":!0})," ",a]})})}const Yr="_field_eqt7q_1",zr="_labelRow_eqt7q_5",Hr="_label_eqt7q_5",Vr="_req_eqt7q_14",Jr="_help_eqt7q_18",Gr="_infoBtn_eqt7q_22",Kr="_infoImg_eqt7q_30",Xr="_infoWrap_eqt7q_34",Qr="_tooltip_eqt7q_38",Zr="_tooltipArrow_eqt7q_45",en="_inputWrap_eqt7q_50",S={field:Yr,labelRow:zr,label:Hr,req:Vr,help:Jr,infoBtn:Gr,infoImg:Kr,infoWrap:Xr,tooltip:Qr,tooltipArrow:Zr,inputWrap:en},tn="https://srm-cdn.a4b.io/yoda/1770372066357.svg";function rn({label:a,id:o,required:s=!1,help:i,infoTooltip:u,infoAriaLabel:_="Info",infoIconUrl:f=tn,children:c,className:d=""}){const[h,v]=F.useState(!1);return F.useEffect(()=>{if(!u)return;const x=N=>{N.target?.closest?.("[data-info-tooltip]")==null&&v(!1)},y=N=>{N.key==="Escape"&&v(!1)};return document.addEventListener("mousedown",x),document.addEventListener("keydown",y),()=>{document.removeEventListener("mousedown",x),document.removeEventListener("keydown",y)}},[u]),t.jsxs("div",{className:`${S.field} ${d}`,children:[t.jsxs("div",{className:S.labelRow,children:[t.jsxs("label",{className:S.label,htmlFor:o,children:[a,s&&t.jsx("span",{className:S.req,children:"*"})]}),u!=null&&u!==""&&t.jsxs("div",{className:S.infoWrap,"data-info-tooltip":!0,children:[t.jsx("button",{type:"button",className:S.infoBtn,"aria-label":_,"aria-expanded":h,onClick:()=>v(x=>!x),children:t.jsx("img",{className:S.infoImg,src:f,alt:"","aria-hidden":!0})}),h&&t.jsxs("div",{className:S.tooltip,role:"tooltip",children:[u,t.jsx("span",{className:S.tooltipArrow,"aria-hidden":!0})]})]})]}),i!=null&&i!==""&&t.jsx("div",{className:S.help,children:i}),t.jsx("div",{className:S.inputWrap,children:c})]})}const nn="_wrap_1uy4o_1",an="_input_1uy4o_5",on="_iconBtn_1uy4o_21",sn="_iconBtnInteractive_1uy4o_25",cn="_iconImg_1uy4o_39",U={wrap:nn,input:an,iconBtn:on,iconBtnInteractive:sn,iconImg:cn};function ln({id:a,iconUrl:o,iconAlt:s="",iconInteractive:i=!1,onIconClick:u,className:_="",...f}){return t.jsxs("div",{className:`${U.wrap} ${_}`,children:[t.jsx("input",{...f,id:a,className:U.input,type:f.type??"text"}),o!=null&&t.jsx("button",{type:"button",className:i?`${U.iconBtn} ${U.iconBtnInteractive}`:U.iconBtn,"aria-label":s||void 0,onClick:i?u:void 0,tabIndex:i?0:-1,children:t.jsx("img",{className:U.iconImg,src:o,alt:"","aria-hidden":!0,width:22,height:22})})]})}const un="_wrap_t646o_1",dn="_input_t646o_5",fn="_iconBtn_t646o_28",_n="_iconImg_t646o_42",re={wrap:un,input:dn,iconBtn:fn,iconImg:_n},pn="https://srm-cdn.a4b.io/yoda/1770372045894.svg";function hn({id:a,value:o,onChange:s,onIconClick:i,className:u="",..._}){const f=F.useRef(null),c=F.useMemo(()=>{const h=new Date,v=x=>String(x).padStart(2,"0");return`${h.getFullYear()}-${v(h.getMonth()+1)}-${v(h.getDate())}`},[]),d=()=>{if(i){i();return}const h=f.current;h&&typeof h.showPicker=="function"?h.showPicker():h?.focus()};return t.jsxs("div",{className:`${re.wrap} ${u}`,children:[t.jsx("input",{..._,ref:f,id:a,type:"date",className:re.input,value:o,max:c,onChange:h=>s(h.target.value)}),t.jsx("button",{type:"button",className:`${re.iconBtn}`,"aria-label":"Open date picker",onMouseDown:h=>h.preventDefault(),onClick:h=>{h.preventDefault(),d()},children:t.jsx("img",{className:re.iconImg,src:pn,alt:"","aria-hidden":!0,width:22,height:22})})]})}const mn="_wrap_1jdg7_1",vn="_input_1jdg7_5",bn="_iconBtn_1jdg7_34",gn="_iconImg_1jdg7_48",ne={wrap:mn,input:vn,iconBtn:bn,iconImg:gn},xn="https://srm-cdn.a4b.io/yoda/1770372014782.svg";function yn({id:a,value:o,onChange:s,placeholder:i="HH:MM AM",disabled:u=!1,onIconClick:_,className:f=""}){return t.jsxs("div",{className:`${ne.wrap} ${f}`,children:[t.jsx("input",{id:a,type:"time",className:ne.input,value:o,onChange:c=>s(c.target.value),placeholder:i,disabled:u,onClick:()=>!u&&_?.()}),t.jsx("button",{type:"button",className:ne.iconBtn,"aria-label":"Open time picker",disabled:u,onClick:c=>{c.preventDefault(),u||_?.()},children:t.jsx("img",{className:ne.iconImg,src:xn,alt:"","aria-hidden":!0,width:22,height:22})})]})}const jn="_wrap_1bb6o_1",wn="_input_1bb6o_5",Nn="_iconBtn_1bb6o_21",$n="_iconImg_1bb6o_25",ae={wrap:jn,input:wn,iconBtn:Nn,iconImg:$n},En="https://srm-cdn.a4b.io/yoda/1770372031092.svg";function Rn({id:a,iconUrl:o=En,className:s="",...i}){return t.jsxs("div",{className:`${ae.wrap} ${s}`,children:[t.jsx("input",{...i,id:a,className:ae.input,type:"text"}),t.jsx("div",{className:ae.iconBtn,"aria-hidden":!0,children:t.jsx("img",{className:ae.iconImg,src:o,alt:"",width:22,height:22})})]})}const kn="_segmented_3sa9v_1",Tn="_segmentedOption_3sa9v_6",In="_active_3sa9v_15",me={segmented:kn,segmentedOption:Tn,active:In};function On({id:a,options:o,value:s,onChange:i,className:u=""}){return t.jsx("div",{className:`${me.segmented} ${u}`,role:"group","aria-labelledby":`${a}-label`,children:o.map(_=>t.jsx("button",{type:"button",id:_.value===s?a:void 0,className:`${me.segmentedOption} ${_.value===s?me.active:""}`,onClick:()=>i(_.value),children:_.label},_.value))})}const Cn="_pillsWrap_z1kui_1",Sn="_pill_z1kui_1",Pn="_selected_z1kui_17",ve={pillsWrap:Cn,pill:Sn,selected:Pn};function Fn({id:a,options:o,selected:s,onChange:i,className:u=""}){const _=f=>{s.includes(f)?i(s.filter(c=>c!==f)):i([...s,f])};return t.jsx("div",{className:`${ve.pillsWrap} ${u}`,role:"group","aria-labelledby":`${a}-label`,children:o.map(f=>t.jsx("button",{type:"button",className:`${ve.pill} ${s.includes(f.key)?ve.selected:""}`,onClick:()=>_(f.key),children:f.label},f.key))})}const qn="_wrapper_i6a5b_2",An="_checkboxRow_i6a5b_6",Bn="_checkbox_i6a5b_6",Dn="_checkboxText_i6a5b_31",Wn="_checkboxHelp_i6a5b_37",K={wrapper:qn,checkboxRow:An,checkbox:Bn,checkboxText:Dn,checkboxHelp:Wn};function Ln({id:a,checked:o,onChange:s,primaryText:i,helpText:u,className:_=""}){return t.jsxs("div",{className:`${K.wrapper} ${_}`,children:[t.jsxs("div",{className:K.checkboxRow,children:[t.jsx("input",{id:a,type:"checkbox",className:K.checkbox,checked:o,onChange:f=>s(f.target.checked)}),t.jsx("label",{htmlFor:a,className:K.checkboxText,children:i})]}),u!=null&&u!==""&&t.jsx("p",{className:K.checkboxHelp,children:u})]})}const Mn="_footerNote_laev3_1",Un={footerNote:Mn};function Yn({children:a,className:o=""}){return t.jsx("p",{className:`${Un.footerNote} ${o}`,children:a})}const zn="_footer_86zxt_1",Hn="_inner_86zxt_8",Vn="_badges_86zxt_12",Jn="_marqueeContent_86zxt_20",Gn="_badge_86zxt_12",Kn="_badgeIcon_86zxt_35",Xn="_ctaWrap_86zxt_39",Qn="_ctaStruck_86zxt_43",Zn="_ctaButton_86zxt_49",ea="_offerRow_86zxt_69",ta="_pill_86zxt_76",ra="_ctaStatic_86zxt_85",W={footer:zn,inner:Hn,badges:Vn,marqueeContent:Jn,badge:Gn,badgeIcon:Kn,ctaWrap:Xn,ctaStruck:Qn,ctaButton:Zn,offerRow:ea,pill:ta,ctaStatic:ra};function na({marquee:a,children:o,className:s=""}){return t.jsx("footer",{className:`${W.footer} ${s}`,role:"contentinfo",children:t.jsxs("div",{className:W.inner,children:[a!=null&&t.jsx("div",{className:W.badges,"aria-hidden":!0,children:a}),t.jsx("div",{className:W.ctaWrap,children:o})]})})}function aa({children:a,href:o,disabled:s=!1,onClick:i,static:u=!1,className:_="","aria-label":f}){const c=`${W.ctaButton} ${_}`.trim(),d=`${W.ctaStatic} ${_}`.trim(),h=f!=null?{"aria-label":f}:{};return u?t.jsx("div",{className:d,role:"presentation",children:a}):o!=null?t.jsx("a",{href:o,className:c,target:"_blank",rel:"noopener noreferrer","aria-disabled":s,onClick:v=>s&&v.preventDefault(),...h,children:a}):t.jsx("button",{type:"button",className:c,disabled:s,onClick:i,...h,children:a})}const oa="_wrapper_wxjzs_1",sa="_track_wxjzs_7",Ge={wrapper:oa,track:sa};function Ke({children:a,className:o=""}){return t.jsx("div",{className:`${Ge.wrapper} ${o}`,"aria-hidden":!0,children:t.jsxs("div",{className:Ge.track,children:[a,a]})})}const ia="_strip_2838b_1",ca={strip:ia};function la({children:a,className:o=""}){return t.jsx("div",{className:`${ca.strip} ${o}`,role:"region","aria-label":"Trust badges",children:t.jsx(Ke,{children:a})})}const ua="_section_8y3x9_1",da="_heading_8y3x9_6",fa="_content_8y3x9_11",_a="_line_8y3x9_16",pa="_brandName_8y3x9_20",Y={section:ua,heading:da,content:fa,line:_a,brandName:pa};function ha({title:a,brandName:o,whatsAppLine:s,emailLine:i,className:u=""}){return t.jsxs("section",{className:`${Y.section} ${u}`,"aria-labelledby":"contact-heading",children:[t.jsx("h2",{id:"contact-heading",className:Y.heading,children:a}),t.jsxs("div",{className:Y.content,children:[t.jsx("p",{className:Y.brandName,children:o}),t.jsx("p",{className:Y.line,children:s}),t.jsx("p",{className:Y.line,children:i})]})]})}exports.CircularMarquee=Ke;exports.ContactUsSection=ha;exports.FAQAccordion=hr;exports.FooterCTAButton=aa;exports.FooterShell=na;exports.FormCheckboxWithHelp=Ln;exports.FormContainer=Tr;exports.FormDateInput=hn;exports.FormField=rn;exports.FormFooterNote=Yn;exports.FormLocationInput=Rn;exports.FormSectionHeader=Br;exports.FormSegmentedControl=On;exports.FormTagPills=Fn;exports.FormTextInput=ln;exports.FormTimeInput=yn;exports.MarqueeStrip=la;exports.PageHeader=$r;exports.PrivacyBanner=Ur;exports.UserReviewsSection=nr;exports.footerShellStyles=W;
|
|
14
|
+
<%s key={someKey} {...props} />`,Ge,ie,Yt,ie),lt[ie+Ge]=!0}}return e===c?At(I):Mt(I),I}}function Bt(e,n,i){return dt(e,n,i,!0)}function Ft(e,n,i){return dt(e,n,i,!1)}var qt=Ft,Wt=Bt;Te.Fragment=c,Te.jsx=qt,Te.jsxs=Wt})()),Te}var ft;function zt(){return ft||(ft=1,process.env.NODE_ENV==="production"?Me.exports=Ht():Me.exports=Kt()),Me.exports}var t=zt();const Gt="_section_1fboo_1",Vt="_heading_1fboo_5",Jt="_trustLine_1fboo_9",Xt="_star_1fboo_13",Qt="_ratingNum_1fboo_17",Zt="_trustText_1fboo_21",en="_cardList_1fboo_25",tn="_card_1fboo_25",nn="_quote_1fboo_37",an="_author_1fboo_41",rn="_avatar_1fboo_45",on="_avatarPlaceholder_1fboo_49",sn="_authorInfo_1fboo_54",cn="_authorName_1fboo_58",ln="_stars_1fboo_62",dn="_readMoreWrap_1fboo_66",un="_toggleBtn_1fboo_70",_n="_readMore_1fboo_66",fn="_arrow_1fboo_89",hn="_dot_1fboo_93",T={section:Gt,heading:Vt,trustLine:Jt,star:Xt,ratingNum:Qt,trustText:Zt,cardList:en,card:tn,quote:nn,author:an,avatar:rn,avatarPlaceholder:on,authorInfo:sn,authorName:cn,stars:ln,readMoreWrap:dn,toggleBtn:un,readMore:_n,arrow:fn,dot:hn},mn=3,ht=15;function pn(a){const r=new Map;for(let d=1;d<=ht;d+=1){const f=`feedbackTestimonial${d}`,g=a(f);if(!g||g===f)continue;const v=`feedbackAuthor${d}`,h=(()=>{const E=a(v);return E&&E!==v?E:a("guest")})(),w=`feedbackAuthor${d}AvatarUrl`,k=(()=>{const E=a(w);return E&&E!==w?E:void 0})();r.set(d,{quote:g,authorName:h,authorAvatarUrl:k,rating:5})}const s=[],c=[];for(let d=1;d<=ht;d+=1)d>=9?c.push(d):s.push(d);const l=[];let u=0,_=0;for(;u<s.length||_<c.length;){if(_<c.length){const d=c[_++],f=r.get(d);f&&l.push(f)}if(u<s.length){const d=s[u++],f=r.get(d);f&&l.push(f)}}return l}function gn({t:a,testimonials:r,initialVisible:s=mn,readMoreHref:c,onReadMore:l,className:u="",headingClassName:_}){const d=r??j.useMemo(()=>pn(a),[a]),[f,g]=j.useState(!1),v=d.length>s,h=v&&!f?d.slice(0,s):d,w=a("feedbackTitle"),k=a("feedbackRating"),E=a("feedbackTrust"),Z=a("readMoreReviews"),ge=a("readLess");return t.jsxs("section",{className:`${T.section} ${u}`,"aria-labelledby":"reviews-heading",children:[t.jsx("h2",{id:"reviews-heading",className:[T.heading,_].filter(Boolean).join(" "),children:w}),t.jsxs("p",{className:T.trustLine,children:[t.jsx("span",{className:T.star,"aria-hidden":!0,children:"★"}),t.jsx("span",{className:T.ratingNum,children:k}),t.jsx("span",{className:T.dot,"aria-hidden":!0}),t.jsx("span",{className:T.trustText,children:E})]}),t.jsx("ul",{className:T.cardList,children:h.map((O,$)=>t.jsxs("li",{className:T.card,children:[t.jsx("p",{className:T.quote,children:O.quote}),t.jsxs("div",{className:T.author,children:[O.authorAvatarUrl?t.jsx("img",{src:O.authorAvatarUrl,alt:"",className:T.avatar,width:40,height:40}):t.jsx("div",{className:T.avatarPlaceholder,"aria-hidden":!0}),t.jsxs("div",{className:T.authorInfo,children:[t.jsx("span",{className:T.authorName,children:O.authorName}),t.jsx("span",{className:T.stars,"aria-hidden":!0,children:"★".repeat(O.rating??5)})]})]})]},$))}),v&&t.jsx("div",{className:T.readMoreWrap,children:t.jsxs("button",{type:"button",className:T.toggleBtn,onClick:()=>g(O=>!O),"aria-expanded":f,children:[f?ge:Z,t.jsx("span",{className:T.arrow,"aria-hidden":!0,children:"›"})]})}),(c||l)&&!v&&t.jsx("div",{className:T.readMoreWrap,children:c?t.jsxs("a",{href:c,className:T.readMore,target:"_blank",rel:"noopener noreferrer",children:[Z,t.jsx("span",{className:T.arrow,"aria-hidden":!0,children:"›"})]}):t.jsxs("button",{type:"button",className:T.readMore,onClick:()=>l?.(),children:[Z,t.jsx("span",{className:T.arrow,"aria-hidden":!0,children:"›"})]})})]})}const bn="_section_4dc65_1",vn="_heading_4dc65_5",xn="_accordion_4dc65_9",yn="_item_4dc65_13",jn="_itemOpen_4dc65_17",wn="_question_4dc65_22",Nn="_chevron_4dc65_30",Sn="_chevronOpen_4dc65_34",Tn="_answerWrap_4dc65_38",kn="_answerOpen_4dc65_42",Rn="_answer_4dc65_38",W={section:bn,heading:vn,accordion:xn,item:yn,itemOpen:jn,question:wn,chevron:Nn,chevronOpen:Sn,answerWrap:Tn,answerOpen:kn,answer:Rn};function In({t:a,items:r,resolveAnswerKey:s,defaultOpenIndex:c=0,onItemOpen:l,className:u="",headingClassName:_}){const d=j.useMemo(()=>r.map(({qKey:h,aKey:w})=>({question:a(h),answer:a(s?s(w):w)})),[a,r,s]),[f,g]=j.useState(c),v=a("faqTitle");return t.jsxs("section",{className:`${W.section} ${u}`,"aria-labelledby":"faq-heading",children:[t.jsx("h2",{id:"faq-heading",className:[W.heading,_].filter(Boolean).join(" "),children:v}),t.jsx("div",{className:W.accordion,role:"list",children:d.map((h,w)=>{const k=f===w;return t.jsxs("div",{className:`${W.item} ${k?W.itemOpen:""}`,role:"listitem",children:[t.jsxs("button",{type:"button",className:W.question,onClick:()=>{const E=!k;g(k?-1:w),E&&l?.(h.question)},"aria-expanded":k,"aria-controls":`faq-answer-${w}`,id:`faq-question-${w}`,children:[t.jsx("span",{children:h.question}),t.jsx("span",{className:`${W.chevron} ${k?W.chevronOpen:""}`,"aria-hidden":!0,children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none","aria-hidden":!0,focusable:"false",children:t.jsx("path",{d:"M5.8 8.3a1 1 0 0 1 1.4 0L10 11.09l2.8-2.8a1 1 0 1 1 1.4 1.42l-3.5 3.5a1 1 0 0 1-1.4 0l-3.5-3.5A1 1 0 0 1 5.8 8.3z",fill:"currentColor"})})})]}),t.jsx("div",{id:`faq-answer-${w}`,role:"region","aria-labelledby":`faq-question-${w}`,className:`${W.answerWrap} ${k?W.answerOpen:""}`,hidden:!k,children:t.jsx("p",{className:W.answer,children:h.answer})})]},w)})})]})}const $n="_header_dbx4y_1",En="_brand_dbx4y_7",Cn="_logo_dbx4y_11",On="_logoImg_dbx4y_15",Dn="_logoPlaceholder_dbx4y_21",Pn="_brandText_dbx4y_29",Ln="_brandName_dbx4y_33",Mn="_rating_dbx4y_38",An="_langSlot_dbx4y_49",G={header:$n,brand:En,logo:Cn,logoImg:On,logoPlaceholder:Dn,brandText:Pn,brandName:Ln,rating:Mn,langSlot:An},mt=120,pt=40;function Bn({t:a,logoUrl:r,imageComponent:s,languageSelector:c,showLanguageSelector:l=!0,className:u=""}){const _=l&&c!=null,d=a("sriMandir"),f=a("ratingText");return t.jsxs("header",{className:`${G.header} ${u}`,children:[t.jsxs("div",{className:G.brand,children:[t.jsx("div",{className:G.logo,children:r?s?t.jsx(s,{src:r,alt:d,className:G.logoImg,width:mt,height:pt}):t.jsx("img",{src:r,alt:d,className:G.logoImg,width:mt,height:pt,decoding:"async"}):t.jsx("div",{className:G.logoPlaceholder,"aria-hidden":!0})}),t.jsxs("div",{className:G.brandText,children:[t.jsx("span",{className:G.brandName,children:d}),f!=null&&f!==""&&t.jsx("span",{className:G.rating,children:f})]})]}),_&&t.jsx("div",{className:G.langSlot,children:c})]})}const Fn="_wrap_1vbpd_1",qn="_card_1vbpd_5",Wn="_cardInner_1vbpd_10",Ve={wrap:Fn,card:qn,cardInner:Wn};function Yn({children:a,className:r="","aria-label":s}){return t.jsx("section",{className:`${Ve.wrap} ${r}`,"aria-label":s,children:t.jsx("div",{className:Ve.card,children:t.jsx("div",{className:Ve.cardInner,children:a})})})}const Un="_header_a05ni_1",Hn="_left_a05ni_7",Kn="_backBtn_a05ni_11",zn="_titleWrap_a05ni_21",Gn="_title_a05ni_21",Vn="_subtitle_a05ni_31",Jn="_backIcon_a05ni_37",ce={header:Un,left:Hn,backBtn:Kn,titleWrap:zn,title:Gn,subtitle:Vn,backIcon:Jn},Xn=()=>t.jsx("svg",{className:ce.backIcon,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:t.jsx("path",{d:"M15 18l-6-6 6-6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});function Qn({title:a,subtitle:r,onBack:s,backAriaLabel:c="Back",className:l=""}){return t.jsx("header",{className:`${ce.header} ${l}`,children:t.jsxs("div",{className:ce.left,children:[s!=null&&t.jsx("button",{type:"button",className:ce.backBtn,onClick:s,"aria-label":c,children:t.jsx(Xn,{})}),t.jsxs("div",{className:ce.titleWrap,children:[t.jsx("h1",{className:ce.title,children:a}),r!=null&&r!==""&&t.jsx("p",{className:ce.subtitle,children:r})]})]})})}const Zn="_banner_1jco0_1",ea="_icon_1jco0_12",ta="_text_1jco0_16",Je={banner:Zn,icon:ea,text:ta},na="https://srm-cdn.a4b.io/yoda/1770707793537.svg";function aa({text:a,iconUrl:r=na,className:s=""}){return t.jsx("div",{className:`${Je.banner} ${s}`,role:"status",children:t.jsxs("span",{className:Je.text,children:[" ",t.jsx("img",{src:r,alt:"",className:Je.icon,width:18,height:18,"aria-hidden":!0})," ",a]})})}const ra="_field_eqt7q_1",oa="_labelRow_eqt7q_5",sa="_label_eqt7q_5",ia="_req_eqt7q_14",ca="_help_eqt7q_18",la="_infoBtn_eqt7q_22",da="_infoImg_eqt7q_30",ua="_infoWrap_eqt7q_34",_a="_tooltip_eqt7q_38",fa="_tooltipArrow_eqt7q_45",ha="_inputWrap_eqt7q_50",Y={field:ra,labelRow:oa,label:sa,req:ia,help:ca,infoBtn:la,infoImg:da,infoWrap:ua,tooltip:_a,tooltipArrow:fa,inputWrap:ha},ma="https://srm-cdn.a4b.io/yoda/1770372066357.svg";function pa({label:a,id:r,required:s=!1,help:c,infoTooltip:l,infoAriaLabel:u="Info",infoIconUrl:_=ma,children:d,className:f=""}){const[g,v]=j.useState(!1);return j.useEffect(()=>{if(!l)return;const h=k=>{k.target?.closest?.("[data-info-tooltip]")==null&&v(!1)},w=k=>{k.key==="Escape"&&v(!1)};return document.addEventListener("mousedown",h),document.addEventListener("keydown",w),()=>{document.removeEventListener("mousedown",h),document.removeEventListener("keydown",w)}},[l]),t.jsxs("div",{className:`${Y.field} ${f}`,children:[t.jsxs("div",{className:Y.labelRow,children:[t.jsxs("label",{className:Y.label,htmlFor:r,children:[a,s&&t.jsx("span",{className:Y.req,children:"*"})]}),l!=null&&l!==""&&t.jsxs("div",{className:Y.infoWrap,"data-info-tooltip":!0,children:[t.jsx("button",{type:"button",className:Y.infoBtn,"aria-label":u,"aria-expanded":g,onClick:()=>v(h=>!h),children:t.jsx("img",{className:Y.infoImg,src:_,alt:"","aria-hidden":!0})}),g&&t.jsxs("div",{className:Y.tooltip,role:"tooltip",children:[l,t.jsx("span",{className:Y.tooltipArrow,"aria-hidden":!0})]})]})]}),c!=null&&c!==""&&t.jsx("div",{className:Y.help,children:c}),t.jsx("div",{className:Y.inputWrap,children:d})]})}const ga="_wrap_1uy4o_1",ba="_input_1uy4o_5",va="_iconBtn_1uy4o_21",xa="_iconBtnInteractive_1uy4o_25",ya="_iconImg_1uy4o_39",me={wrap:ga,input:ba,iconBtn:va,iconBtnInteractive:xa,iconImg:ya};function ja({id:a,iconUrl:r,iconAlt:s="",iconInteractive:c=!1,onIconClick:l,className:u="",..._}){return t.jsxs("div",{className:`${me.wrap} ${u}`,children:[t.jsx("input",{..._,id:a,className:me.input,type:_.type??"text"}),r!=null&&t.jsx("button",{type:"button",className:c?`${me.iconBtn} ${me.iconBtnInteractive}`:me.iconBtn,"aria-label":s||void 0,onClick:c?l:void 0,tabIndex:c?0:-1,children:t.jsx("img",{className:me.iconImg,src:r,alt:"","aria-hidden":!0,width:22,height:22})})]})}const wa="_wrap_t646o_1",Na="_input_t646o_5",Sa="_iconBtn_t646o_28",Ta="_iconImg_t646o_42",Ae={wrap:wa,input:Na,iconBtn:Sa,iconImg:Ta},ka="https://srm-cdn.a4b.io/yoda/1770372045894.svg";function Ra({id:a,value:r,onChange:s,onIconClick:c,className:l="",...u}){const _=j.useRef(null),d=j.useMemo(()=>{const g=new Date,v=h=>String(h).padStart(2,"0");return`${g.getFullYear()}-${v(g.getMonth()+1)}-${v(g.getDate())}`},[]),f=()=>{if(c){c();return}const g=_.current;g&&typeof g.showPicker=="function"?g.showPicker():g?.focus()};return t.jsxs("div",{className:`${Ae.wrap} ${l}`,children:[t.jsx("input",{...u,ref:_,id:a,type:"date",className:Ae.input,value:r,max:d,onChange:g=>s(g.target.value)}),t.jsx("button",{type:"button",className:`${Ae.iconBtn}`,"aria-label":"Open date picker",onMouseDown:g=>g.preventDefault(),onClick:g=>{g.preventDefault(),f()},children:t.jsx("img",{className:Ae.iconImg,src:ka,alt:"","aria-hidden":!0,width:22,height:22})})]})}const Ia="_wrap_1jdg7_1",$a="_input_1jdg7_5",Ea="_iconBtn_1jdg7_34",Ca="_iconImg_1jdg7_48",Be={wrap:Ia,input:$a,iconBtn:Ea,iconImg:Ca},Oa="https://srm-cdn.a4b.io/yoda/1770372014782.svg";function Da({id:a,value:r,onChange:s,placeholder:c="HH:MM AM",disabled:l=!1,onIconClick:u,className:_=""}){return t.jsxs("div",{className:`${Be.wrap} ${_}`,children:[t.jsx("input",{id:a,type:"time",className:Be.input,value:r,onChange:d=>s(d.target.value),placeholder:c,disabled:l,onClick:()=>!l&&u?.()}),t.jsx("button",{type:"button",className:Be.iconBtn,"aria-label":"Open time picker",disabled:l,onClick:d=>{d.preventDefault(),l||u?.()},children:t.jsx("img",{className:Be.iconImg,src:Oa,alt:"","aria-hidden":!0,width:22,height:22})})]})}const Pa="_wrap_1bb6o_1",La="_input_1bb6o_5",Ma="_iconBtn_1bb6o_21",Aa="_iconImg_1bb6o_25",Fe={wrap:Pa,input:La,iconBtn:Ma,iconImg:Aa},Ba="https://srm-cdn.a4b.io/yoda/1770372031092.svg";function Fa({id:a,iconUrl:r=Ba,className:s="",...c}){return t.jsxs("div",{className:`${Fe.wrap} ${s}`,children:[t.jsx("input",{...c,id:a,className:Fe.input,type:"text"}),t.jsx("div",{className:Fe.iconBtn,"aria-hidden":!0,children:t.jsx("img",{className:Fe.iconImg,src:r,alt:"",width:22,height:22})})]})}const qa="_segmented_3sa9v_1",Wa="_segmentedOption_3sa9v_6",Ya="_active_3sa9v_15",Xe={segmented:qa,segmentedOption:Wa,active:Ya};function Ua({id:a,options:r,value:s,onChange:c,className:l=""}){return t.jsx("div",{className:`${Xe.segmented} ${l}`,role:"group","aria-labelledby":`${a}-label`,children:r.map(u=>t.jsx("button",{type:"button",id:u.value===s?a:void 0,className:`${Xe.segmentedOption} ${u.value===s?Xe.active:""}`,onClick:()=>c(u.value),children:u.label},u.value))})}const Ha="_pillsWrap_z1kui_1",Ka="_pill_z1kui_1",za="_selected_z1kui_17",Qe={pillsWrap:Ha,pill:Ka,selected:za};function Ga({id:a,options:r,selected:s,onChange:c,className:l=""}){const u=_=>{s.includes(_)?c(s.filter(d=>d!==_)):c([...s,_])};return t.jsx("div",{className:`${Qe.pillsWrap} ${l}`,role:"group","aria-labelledby":`${a}-label`,children:r.map(_=>t.jsx("button",{type:"button",className:`${Qe.pill} ${s.includes(_.key)?Qe.selected:""}`,onClick:()=>u(_.key),children:_.label},_.key))})}const Va="_wrapper_i6a5b_2",Ja="_checkboxRow_i6a5b_6",Xa="_checkbox_i6a5b_6",Qa="_checkboxText_i6a5b_31",Za="_checkboxHelp_i6a5b_37",ke={wrapper:Va,checkboxRow:Ja,checkbox:Xa,checkboxText:Qa,checkboxHelp:Za};function er({id:a,checked:r,onChange:s,primaryText:c,helpText:l,className:u=""}){return t.jsxs("div",{className:`${ke.wrapper} ${u}`,children:[t.jsxs("div",{className:ke.checkboxRow,children:[t.jsx("input",{id:a,type:"checkbox",className:ke.checkbox,checked:r,onChange:_=>s(_.target.checked)}),t.jsx("label",{htmlFor:a,className:ke.checkboxText,children:c})]}),l!=null&&l!==""&&t.jsx("p",{className:ke.checkboxHelp,children:l})]})}const tr="_footerNote_laev3_1",nr={footerNote:tr};function ar({children:a,className:r=""}){return t.jsx("p",{className:`${nr.footerNote} ${r}`,children:a})}const rr="_footer_86zxt_1",or="_inner_86zxt_8",sr="_badges_86zxt_12",ir="_marqueeContent_86zxt_20",cr="_badge_86zxt_12",lr="_badgeIcon_86zxt_35",dr="_ctaWrap_86zxt_39",ur="_ctaStruck_86zxt_43",_r="_ctaButton_86zxt_49",fr="_offerRow_86zxt_69",hr="_pill_86zxt_76",mr="_ctaStatic_86zxt_85",le={footer:rr,inner:or,badges:sr,marqueeContent:ir,badge:cr,badgeIcon:lr,ctaWrap:dr,ctaStruck:ur,ctaButton:_r,offerRow:fr,pill:hr,ctaStatic:mr};function pr({marquee:a,children:r,className:s=""}){return t.jsx("footer",{className:`${le.footer} ${s}`,role:"contentinfo",children:t.jsxs("div",{className:le.inner,children:[a!=null&&t.jsx("div",{className:le.badges,"aria-hidden":!0,children:a}),t.jsx("div",{className:le.ctaWrap,children:r})]})})}function gr({children:a,href:r,disabled:s=!1,onClick:c,static:l=!1,className:u="","aria-label":_}){const d=`${le.ctaButton} ${u}`.trim(),f=`${le.ctaStatic} ${u}`.trim(),g=_!=null?{"aria-label":_}:{};return l?t.jsx("div",{className:f,role:"presentation",children:a}):r!=null?t.jsx("a",{href:r,className:d,target:"_blank",rel:"noopener noreferrer","aria-disabled":s,onClick:v=>s&&v.preventDefault(),...g,children:a}):t.jsx("button",{type:"button",className:d,disabled:s,onClick:c,...g,children:a})}const br="_wrapper_wxjzs_1",vr="_track_wxjzs_7",gt={wrapper:br,track:vr};function vt({children:a,className:r=""}){return t.jsx("div",{className:`${gt.wrapper} ${r}`,"aria-hidden":!0,children:t.jsxs("div",{className:gt.track,children:[a,a]})})}const xr="_strip_2838b_1",yr={strip:xr};function jr({children:a,className:r=""}){return t.jsx("div",{className:`${yr.strip} ${r}`,role:"region","aria-label":"Trust badges",children:t.jsx(vt,{children:a})})}const wr="_section_8y3x9_1",Nr="_heading_8y3x9_6",Sr="_content_8y3x9_11",Tr="_line_8y3x9_16",kr="_brandName_8y3x9_20",pe={section:wr,heading:Nr,content:Sr,line:Tr,brandName:kr};function Rr({title:a,brandName:r,whatsAppLine:s,emailLine:c,className:l=""}){return t.jsxs("section",{className:`${pe.section} ${l}`,"aria-labelledby":"contact-heading",children:[t.jsx("h2",{id:"contact-heading",className:pe.heading,children:a}),t.jsxs("div",{className:pe.content,children:[t.jsx("p",{className:pe.brandName,children:r}),t.jsx("p",{className:pe.line,children:s}),t.jsx("p",{className:pe.line,children:c})]})]})}const xt=a=>{const r=a.match(/T(\d{2}):(\d{2})/);if(!r)return a;const s=Number(r[1]),c=r[2],l=s>=12?"PM":"AM";return`${s%12||12}:${c} ${l}`},yt=(a,r=new Date)=>{const s=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],c=new Date(`${a}T00:00:00`);if(Number.isNaN(c.getTime()))return{id:a,dayLabel:a,dayNum:""};const l=d=>new Date(d.getFullYear(),d.getMonth(),d.getDate()).getTime(),u=Math.round((l(c)-l(r))/(1e3*60*60*24)),_=u===0?"Today":u===1?"Tomorrow":s[c.getDay()];return{id:a,dayLabel:_,dayNum:String(c.getDate())}},jt=["morning","afternoon","evening"],wt=[{code:"en",labelKey:"formReportLanguageEnglish",label:"English"},{code:"hi",labelKey:"formReportLanguageHindi",label:"Hindi"},{code:"te",labelKey:"formReportLanguageTelugu",label:"Telugu"},{code:"kn",labelKey:"formReportLanguageKannada",label:"Kannada"},{code:"gu",labelKey:"formReportLanguageGujarati",label:"Gujarati"},{code:"mr",labelKey:"formReportLanguageMarathi",label:"Marathi"},{code:"ta",labelKey:"formReportLanguageTamil",label:"Tamil"}],Ir=()=>t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,children:t.jsx("path",{d:"M3.5 8.5l2.5 2.5 6-6",stroke:"#22c55e",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}),$r=()=>t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:t.jsx("path",{d:"M6 9l6 6 6-6"})}),Er=()=>t.jsx("img",{src:"https://srm-cdn.a4b.io/yoda/1785316603029.svg",width:16,height:16,alt:"","aria-hidden":!0}),Cr=()=>t.jsx("img",{src:"https://srm-cdn.a4b.io/yoda/1785316621747.svg",width:16,height:16,alt:"","aria-hidden":!0}),Or=()=>t.jsx("img",{src:"https://srm-cdn.a4b.io/yoda/1785316635953.svg",width:16,height:16,alt:"","aria-hidden":!0}),Dr=()=>t.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:[t.jsx("rect",{x:"3",y:"4.5",width:"18",height:"16",rx:"3",stroke:"#D1D5DB",strokeWidth:"1.6"}),t.jsx("path",{d:"M3 9.5h18",stroke:"#D1D5DB",strokeWidth:"1.6"}),t.jsx("path",{d:"M8 2.5v4M16 2.5v4",stroke:"#D1D5DB",strokeWidth:"1.6",strokeLinecap:"round"}),t.jsx("path",{d:"M7.5 20.5L17 6",stroke:"#9CA3AF",strokeWidth:"1.6",strokeLinecap:"round"})]}),Pr="_section_1ltqn_2",Lr="_headerRow_1ltqn_10",Mr="_title_1ltqn_18",Ar="_changeBtn_1ltqn_24",Br="_numberRow_1ltqn_35",Fr="_countryCode_1ltqn_44",qr="_number_1ltqn_35",Wr="_helper_1ltqn_59",X={section:Pr,headerRow:Lr,title:Mr,changeBtn:Ar,numberRow:Br,countryCode:Fr,number:qr,helper:Wr},Nt=({title:a,countryCode:r="+91",phoneNumber:s="98765 43210",helperText:c,onEdit:l,t:u,className:_=""})=>t.jsxs("section",{className:[X.section,_].filter(Boolean).join(" "),children:[t.jsxs("div",{className:X.headerRow,children:[t.jsx("span",{className:X.title,children:a??u?.("planPhoneNumberHeading")??"Your phone number"}),l&&t.jsx("button",{type:"button",className:X.changeBtn,onClick:l,children:u?.("planPhoneNumberChange")??"Change"})]}),t.jsxs("div",{className:X.numberRow,children:[t.jsx("span",{className:X.countryCode,children:r}),t.jsx("span",{className:X.number,children:s})]}),t.jsx("p",{className:X.helper,children:c??u?.("planPhoneNumberHelper")??"The astrologer will call you on this number at your booked slot."})]}),Yr="_section_12hk9_2",Ur="_title_12hk9_6",Hr="_profileRow_12hk9_13",Kr="_profileCard_12hk9_26",zr="_profileCardSelected_12hk9_47",Gr="_profileTop_12hk9_52",Vr="_avatar_12hk9_60",Jr="_profileName_12hk9_74",Xr="_relationPill_12hk9_84",Qr="_profileMeta_12hk9_98",Zr="_addCard_12hk9_108",eo="_addIcon_12hk9_127",B={section:Yr,title:Ur,profileRow:Hr,profileCard:Kr,profileCardSelected:zr,profileTop:Gr,avatar:Vr,profileName:Jr,relationPill:Xr,profileMeta:Qr,addCard:Zr,addIcon:eo},to=[{id:"self",name:"Aarav Sharma",birthDetails:"12 Mar 1994 • 06:45 AM",birthPlace:"Bengaluru, India",relation:"Self"},{id:"spouse",name:"Diya Sharma",birthDetails:"04 Sep 1996 • 11:20 PM",birthPlace:"Pune, India",relation:"Spouse"}],St=({title:a,profiles:r=to,selectedProfileId:s,onProfileSelect:c,onAddProfile:l,t:u,className:_=""})=>{const[d,f]=j.useState(r[0]?.id??""),g=s??d,v=h=>{f(h),c?.(h)};return t.jsxs("section",{className:[B.section,_].filter(Boolean).join(" "),children:[t.jsx("p",{className:B.title,children:a??u?.("planAstrologyProfilesHeading")??"Astrology profile"}),t.jsxs("div",{className:B.profileRow,role:"radiogroup","aria-label":"Astrology profile",children:[r.map(h=>{const w=h.id===g;return t.jsxs("button",{type:"button",role:"radio","aria-checked":w,className:[B.profileCard,w?B.profileCardSelected:""].filter(Boolean).join(" "),onClick:()=>v(h.id),children:[t.jsxs("span",{className:B.profileTop,children:[t.jsx("span",{className:B.avatar,"aria-hidden":!0,children:h.name.charAt(0).toUpperCase()}),t.jsx("span",{className:B.profileName,children:h.name})]}),h.relation&&t.jsx("span",{className:B.relationPill,children:h.relation}),h.birthDetails&&t.jsx("span",{className:B.profileMeta,children:h.birthDetails}),h.birthPlace&&t.jsx("span",{className:B.profileMeta,children:h.birthPlace})]},h.id)}),l&&t.jsxs("button",{type:"button",className:B.addCard,onClick:l,children:[t.jsx("span",{className:B.addIcon,"aria-hidden":!0,children:"+"}),u?.("planAddAstrologyProfile")??"Add profile"]})]})]})},no="_root_1ywut_6",ao="_languageRow_1ywut_19",ro="_languageLabel_1ywut_27",oo="_languageDropdown_1ywut_33",so="_languageDropdownBtn_1ywut_37",io="_languageMenu_1ywut_52",co="_languageMenuItem_1ywut_69",lo="_languageMenuItemSelected_1ywut_83",uo="_languageDivider_1ywut_89",_o="_sectionHeading_1ywut_96",fo="_reportReadyBanner_1ywut_104",ho="_reportReadyDuration_1ywut_113",mo="_dateTabs_1ywut_119",po="_dateTabIndicator_1ywut_131",go="_dateTab_1ywut_119",bo="_dateTabDivider_1ywut_165",vo="_dateTabSelected_1ywut_175",xo="_dateTabLabel_1ywut_180",yo="_dateTabNum_1ywut_187",jo="_periodTabs_1ywut_201",wo="_periodTabIndicator_1ywut_129",No="_periodTab_1ywut_129",So="_periodTabSelected_1ywut_248",To="_timeGrid_1ywut_253",ko="_emptyState_1ywut_280",Ro="_timeSlot_1ywut_284",Io="_timeSlotSelected_1ywut_300",$o="_stateMessage_1ywut_308",Eo="_retryBtn_1ywut_315",Co="_emptyStateIcon_1ywut_341",Oo="_emptyStateTitle_1ywut_352",Do="_emptyStateSubtitle_1ywut_359",Po="_loadingWrap_1ywut_368",Lo="_skeletonShimmer_1ywut_373",Mo="_skeletonDateTabs_1ywut_387",Ao="_skeletonDateTab_1ywut_387",Bo="_skeletonPeriodTabs_1ywut_401",Fo="_skeletonPeriodTab_1ywut_401",qo="_skeletonTimeGrid_1ywut_416",Wo="_skeletonTimeSlot_1ywut_422",p={root:no,languageRow:ao,languageLabel:ro,languageDropdown:oo,languageDropdownBtn:so,languageMenu:io,languageMenuItem:co,languageMenuItemSelected:lo,languageDivider:uo,sectionHeading:_o,reportReadyBanner:fo,reportReadyDuration:ho,dateTabs:mo,dateTabIndicator:po,dateTab:go,dateTabDivider:bo,dateTabSelected:vo,dateTabLabel:xo,dateTabNum:yo,periodTabs:jo,periodTabIndicator:wo,periodTab:No,periodTabSelected:So,timeGrid:To,emptyState:ko,timeSlot:Ro,timeSlotSelected:Io,stateMessage:$o,retryBtn:Eo,emptyStateIcon:Co,emptyStateTitle:Oo,emptyStateSubtitle:Do,loadingWrap:Po,skeletonShimmer:Lo,skeletonDateTabs:Mo,skeletonDateTab:Ao,skeletonPeriodTabs:Bo,skeletonPeriodTab:Fo,skeletonTimeGrid:qo,skeletonTimeSlot:Wo},Yo={morning:Er,afternoon:Cr,evening:Or},Uo={morning:"planPeriodMorning",afternoon:"planPeriodAfternoon",evening:"planPeriodEvening"},Q=(...a)=>a.filter(Boolean).join(" "),Ho=({days:a,loading:r=!1,error:s=!1,onRetry:c,selectedDate:l,onDateSelect:u,selectedPeriod:_,onPeriodSelect:d,selectedSlotStart:f,onSlotSelect:g,hideLanguageSelector:v=!1,languageOptions:h=wt,selectedLanguage:w,onLanguageSelect:k,showPhoneNumberSection:E=!0,phoneNumberSection:Z,showAstrologyProfilesSection:ge=!0,astrologyProfilesSection:O,heading:$,languageLabel:qe,reportReadyNote:Ie,isGlobal:We=!0,t:C,className:Ye=""})=>{const q=j.useMemo(()=>a.filter(o=>o.has_availability&&o.slots.length>0),[a]),[be,Ue]=j.useState(""),J=j.useMemo(()=>{const o=l??be;return q.some(x=>x.date===o)?o:q[0]?.date??""},[l,be,q]),V=j.useMemo(()=>q.find(o=>o.date===J)??null,[q,J]),L=j.useMemo(()=>{if(!V)return[];const o=new Set(V.slots.map(x=>x.period));return jt.filter(x=>o.has(x))},[V]),[U,ee]=j.useState(""),H=j.useMemo(()=>{const o=_??U;return o&&L.includes(o)?o:L[0]??"morning"},[_,U,L]),te=j.useMemo(()=>V?V.slots.filter(o=>o.period===H):[],[V,H]),[ve,$e]=j.useState(""),xe=j.useMemo(()=>{if(f===null)return"";const o=f??ve;return te.some(x=>x.start===o)?o:te[0]?.start??""},[f,ve,te]),[Ee,Ce]=j.useState(()=>h[0]?.code??"en"),ye=w??Ee,je=h.find(o=>o.code===ye)??h[0],[de,ne]=j.useState(!1),ae=j.useRef(null);j.useEffect(()=>{if(!de)return;const o=x=>{ae.current&&!ae.current.contains(x.target)&&ne(!1)};return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[de]);const re=j.useRef(null),ue=j.useRef({}),[K,Oe]=j.useState(null),we=j.useRef(null),De=j.useRef({}),[Ne,oe]=j.useState(null);j.useEffect(()=>{const o=()=>{const x=re.current,D=ue.current[J];if(!x||!D){Oe(null);return}const z=x.getBoundingClientRect(),A=D.getBoundingClientRect();Oe({left:A.left-z.left,top:A.top-z.top,width:A.width,height:A.height})};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[J,q,r,s]),j.useEffect(()=>{const o=()=>{const x=we.current,D=De.current[H];if(!x||!D){oe(null);return}const z=x.getBoundingClientRect(),A=D.getBoundingClientRect();oe({left:A.left-z.left,width:A.width})};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[H,L,r,s]);const se=o=>{Ue(o),u?.(o)},Pe=o=>{ee(o),d?.(o)},Le=o=>{$e(o.start),g?.(o)},_e=o=>{Ce(o),ne(!1),k?.(o)};return t.jsxs("div",{className:Q(p.root,Ye),children:[E&&(Z??t.jsx(Nt,{t:C})),ge&&(O??t.jsx(St,{t:C})),!v&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:p.languageRow,children:[t.jsx("span",{className:p.languageLabel,children:qe??C?.("planConsultationLanguageLabel")??"Your consultation language"}),t.jsxs("div",{className:p.languageDropdown,ref:ae,children:[t.jsxs("button",{type:"button",className:p.languageDropdownBtn,onClick:()=>ne(o=>!o),"aria-haspopup":"listbox","aria-expanded":de,children:[(je?.labelKey&&C?.(je.labelKey))??je?.label,t.jsx($r,{})]}),de&&t.jsx("ul",{className:p.languageMenu,role:"listbox",children:h.map(o=>{const x=o.code===ye;return t.jsxs("li",{role:"option","aria-selected":x,className:Q(p.languageMenuItem,x&&p.languageMenuItemSelected),onClick:()=>_e(o.code),children:[(o.labelKey&&C?.(o.labelKey))??o.label,x&&t.jsx(Ir,{})]},o.code)})})]})]}),t.jsx("hr",{className:p.languageDivider})]}),t.jsx("p",{className:p.sectionHeading,children:$??C?.("planSelectSlotHeading")??"Book your preferred consultation slot"}),Ie===void 0?t.jsxs("p",{className:p.reportReadyBanner,children:[C?.("planReportReadyPrefix")??"Your Report will be ready in"," ",t.jsx("span",{className:p.reportReadyDuration,children:C?.("planReportReadyDuration")??"24-48 hours"})," ",C?.("planReportReadySuffix")??"from today"]}):Ie,r&&t.jsxs("div",{className:p.loadingWrap,"aria-busy":"true","aria-live":"polite",children:[t.jsx("div",{className:p.skeletonDateTabs,children:Array.from({length:5}).map((o,x)=>t.jsx("div",{className:Q(p.skeletonDateTab,p.skeletonShimmer)},x))}),t.jsx("div",{className:p.skeletonPeriodTabs,children:Array.from({length:3}).map((o,x)=>t.jsx("div",{className:Q(p.skeletonPeriodTab,p.skeletonShimmer)},x))}),t.jsx("div",{className:p.skeletonTimeGrid,children:Array.from({length:6}).map((o,x)=>t.jsx("div",{className:Q(p.skeletonTimeSlot,p.skeletonShimmer)},x))})]}),!r&&s&&t.jsxs("div",{className:p.stateMessage,children:[C?.("planSlotsLoadError")??"Couldn't load slots. Please try again.",c&&t.jsx("button",{type:"button",className:p.retryBtn,onClick:c,children:C?.("planRetry")??"Retry"})]}),!r&&!s&&q.length===0&&t.jsxs("div",{className:p.emptyState,children:[t.jsx("span",{className:p.emptyStateIcon,children:t.jsx(Dr,{})}),t.jsx("p",{className:p.emptyStateTitle,children:C?.("planNoSlotsAvailableTitle")??"No slots available"}),t.jsx("p",{className:p.emptyStateSubtitle,children:C?.("planNoSlotsAvailableSubtitle")??"Try a different consultation language above, or check back soon."})]}),!r&&!s&&q.length>0&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:p.dateTabs,ref:re,role:"radiogroup","aria-label":"Consultation date",children:[K&&t.jsx("span",{className:p.dateTabIndicator,style:{transform:`translate(${K.left}px, ${K.top}px)`,width:K.width,height:K.height},"aria-hidden":"true"}),q.map(o=>{const x=o.date===J,{dayLabel:D,dayNum:z}=yt(o.date);return t.jsxs(j.Fragment,{children:[t.jsxs("button",{type:"button",ref:A=>{ue.current[o.date]=A},className:Q(p.dateTab,x&&p.dateTabSelected),role:"radio","aria-checked":x,onClick:()=>se(o.date),children:[t.jsx("span",{className:p.dateTabLabel,children:C?.(D)??D}),t.jsx("span",{className:p.dateTabNum,children:z})]}),t.jsx("span",{className:p.dateTabDivider,"aria-hidden":!0})]},o.date)})]}),t.jsxs("div",{className:p.periodTabs,ref:we,role:"tablist","aria-label":"Time of day",children:[Ne&&t.jsx("span",{className:p.periodTabIndicator,style:{transform:`translateX(${Ne.left}px)`,width:Ne.width},"aria-hidden":"true"}),L.map(o=>{const x=Yo[o],D=o==="evening"&&We,z=D?"planPeriodEveningNight":Uo[o];return t.jsxs("button",{ref:A=>{De.current[o]=A},type:"button",className:Q(p.periodTab,o===H&&p.periodTabSelected),role:"tab","aria-selected":o===H,onClick:()=>Pe(o),children:[t.jsx(x,{}),C?.(z)??(D?"Evening/Night":o.charAt(0).toUpperCase()+o.slice(1))]},o)})]}),t.jsx("div",{className:p.timeGrid,role:"radiogroup","aria-label":"Consultation time",children:te.map((o,x)=>t.jsx("button",{type:"button",className:Q(p.timeSlot,xe===o.start&&p.timeSlotSelected),role:"radio","aria-checked":xe===o.start,onClick:()=>Le(o),children:xt(o.start)},`${o.start}-${x}`))},`${J}-${H}`)]})]})},bt="+05:30",Ko=a=>{const r=String(a.getMonth()+1).padStart(2,"0"),s=String(a.getDate()).padStart(2,"0");return`${a.getFullYear()}-${r}-${s}`},zo=(a,r,s,c)=>{const l=d=>String(d).padStart(2,"0"),u=s+30,_=r+Math.floor(u/60);return{start:`${a}T${l(r)}:${l(s)}:00${bt}`,end:`${a}T${l(_)}:${l(u%60)}:00${bt}`,period:c}},Go={morning:[[9,0],[9,30],[10,0],[10,30],[11,0],[11,30]],afternoon:[[12,30],[13,0],[14,0],[15,30],[16,0]],evening:[[18,0],[18,30],[19,0],[20,0]]},Re=(a,r)=>{const s=new Date;s.setDate(s.getDate()+a);const c=Ko(s),l=r.flatMap(u=>Go[u].map(([_,d])=>zo(c,_,d,u)));return{date:c,has_availability:l.length>0,slots:l}},Tt=[Re(0,["morning","afternoon","evening"]),Re(1,["morning","afternoon"]),Re(2,["afternoon","evening"]),Re(3,["morning","evening"]),Re(4,["morning","afternoon","evening"])],Vo=Tt.map(a=>({...a,has_availability:!1,slots:[]}));exports.AstrologyProfilesSection=St;exports.CONSULTATION_LANGUAGE_OPTIONS=wt;exports.CONSULTATION_PERIOD_ORDER=jt;exports.CircularMarquee=vt;exports.ConsultationSlotSelector=Ho;exports.ContactUsSection=Rr;exports.FAQAccordion=In;exports.FooterCTAButton=gr;exports.FooterShell=pr;exports.FormCheckboxWithHelp=er;exports.FormContainer=Yn;exports.FormDateInput=Ra;exports.FormField=pa;exports.FormFooterNote=ar;exports.FormLocationInput=Fa;exports.FormSectionHeader=Qn;exports.FormSegmentedControl=Ua;exports.FormTagPills=Ga;exports.FormTextInput=ja;exports.FormTimeInput=Da;exports.MOCK_SLOT_DAYS=Tt;exports.MOCK_SLOT_DAYS_EMPTY=Vo;exports.MarqueeStrip=jr;exports.PageHeader=Bn;exports.PhoneNumberSection=Nt;exports.PrivacyBanner=aa;exports.UserReviewsSection=gn;exports.footerShellStyles=le;exports.formatSlotDayLabel=yt;exports.formatSlotTime=xt;
|
|
15
15
|
//# sourceMappingURL=index.cjs.map
|