@srimandir/astrology-common 6.0.1 → 7.0.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/AstrologerCard/AstrologerCard.d.ts +27 -0
- package/dist/components/AstrologerCard/CardIcons.d.ts +9 -0
- package/dist/components/AstrologerCard/currency.d.ts +9 -0
- package/dist/components/AstrologerCard/index.d.ts +3 -0
- package/dist/components/AstrologerCard/types.d.ts +57 -0
- package/dist/components/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/ConsultationSlotSheet/ConsultationSlotSheet.d.ts +45 -0
- package/dist/components/ConsultationSlotSheet/index.d.ts +1 -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 +6 -0
- package/dist/index.js +1739 -895
- package/dist/index.js.map +1 -1
- package/package.json +12 -3
|
@@ -3,4 +3,4 @@ export interface FormFooterNoteProps {
|
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
className?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare function FormFooterNote({ children, className, }: FormFooterNoteProps): import("react").JSX.Element;
|
|
6
|
+
export declare function FormFooterNote({ children, className, }: FormFooterNoteProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,4 +4,4 @@ export interface FormLocationInputProps extends Omit<InputHTMLAttributes<HTMLInp
|
|
|
4
4
|
iconUrl?: string;
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
7
|
-
export declare function FormLocationInput({ id, iconUrl, className, ...rest }: FormLocationInputProps): import("react").JSX.Element;
|
|
7
|
+
export declare function FormLocationInput({ id, iconUrl, className, ...rest }: FormLocationInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,4 +8,4 @@ export interface FormSectionHeaderProps {
|
|
|
8
8
|
backAriaLabel?: string;
|
|
9
9
|
className?: string;
|
|
10
10
|
}
|
|
11
|
-
export declare function FormSectionHeader({ title, subtitle, onBack, backAriaLabel, className, }: FormSectionHeaderProps): import("react").JSX.Element;
|
|
11
|
+
export declare function FormSectionHeader({ title, subtitle, onBack, backAriaLabel, className, }: FormSectionHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,4 +9,4 @@ export interface FormSegmentedControlProps {
|
|
|
9
9
|
onChange: (value: string) => void;
|
|
10
10
|
className?: string;
|
|
11
11
|
}
|
|
12
|
-
export declare function FormSegmentedControl({ id, options, value, onChange, className, }: FormSegmentedControlProps): import("react").JSX.Element;
|
|
12
|
+
export declare function FormSegmentedControl({ id, options, value, onChange, className, }: FormSegmentedControlProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,4 +8,4 @@ export interface FormTagPillsProps {
|
|
|
8
8
|
onChange: (selected: string[]) => void;
|
|
9
9
|
className?: string;
|
|
10
10
|
}
|
|
11
|
-
export declare function FormTagPills({ id, options, selected, onChange, className, }: FormTagPillsProps): import("react").JSX.Element;
|
|
11
|
+
export declare function FormTagPills({ id, options, selected, onChange, className, }: FormTagPillsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,4 +9,4 @@ export interface FormTextInputProps extends Omit<InputHTMLAttributes<HTMLInputEl
|
|
|
9
9
|
onIconClick?: () => void;
|
|
10
10
|
className?: string;
|
|
11
11
|
}
|
|
12
|
-
export declare function FormTextInput({ id, iconUrl, iconAlt, iconInteractive, onIconClick, className, ...rest }: FormTextInputProps): import("react").JSX.Element;
|
|
12
|
+
export declare function FormTextInput({ id, iconUrl, iconAlt, iconInteractive, onIconClick, className, ...rest }: FormTextInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,4 +7,4 @@ export interface FormTimeInputProps {
|
|
|
7
7
|
onIconClick?: () => void;
|
|
8
8
|
className?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare function FormTimeInput({ id, value, onChange, placeholder, disabled, onIconClick, className, }: FormTimeInputProps): import("react").JSX.Element;
|
|
10
|
+
export declare function FormTimeInput({ id, value, onChange, placeholder, disabled, onIconClick, className, }: FormTimeInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,4 +8,4 @@ export interface MarqueeStripProps {
|
|
|
8
8
|
* Horizontal bar (e.g. under the header) with the same circular marquee as the footer.
|
|
9
9
|
* Renders a strip with background and border, and CircularMarquee inside.
|
|
10
10
|
*/
|
|
11
|
-
export declare function MarqueeStrip({ children, className }: MarqueeStripProps): import("react").JSX.Element;
|
|
11
|
+
export declare function MarqueeStrip({ children, className }: MarqueeStripProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -20,4 +20,4 @@ export interface PageHeaderProps {
|
|
|
20
20
|
showLanguageSelector?: boolean;
|
|
21
21
|
className?: string;
|
|
22
22
|
}
|
|
23
|
-
export declare function PageHeader({ t, logoUrl, imageComponent: ImageComponent, languageSelector, showLanguageSelector, className, }: PageHeaderProps): import("react").JSX.Element;
|
|
23
|
+
export declare function PageHeader({ t, logoUrl, imageComponent: ImageComponent, languageSelector, showLanguageSelector, className, }: PageHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,4 +5,4 @@ export interface PrivacyBannerProps {
|
|
|
5
5
|
iconUrl?: string;
|
|
6
6
|
className?: string;
|
|
7
7
|
}
|
|
8
|
-
export declare function PrivacyBanner({ text, iconUrl, className, }: PrivacyBannerProps): import("react").JSX.Element;
|
|
8
|
+
export declare function PrivacyBanner({ text, iconUrl, className, }: PrivacyBannerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -18,4 +18,4 @@ export interface UserReviewsSectionProps {
|
|
|
18
18
|
/** Optional class name for the section heading (e.g. to use bold in one app and semibold in another) */
|
|
19
19
|
headingClassName?: string;
|
|
20
20
|
}
|
|
21
|
-
export declare function UserReviewsSection({ t, testimonials: testimonialsProp, initialVisible, readMoreHref, onReadMore, className, headingClassName, }: UserReviewsSectionProps): import("react").JSX.Element;
|
|
21
|
+
export declare function UserReviewsSection({ t, testimonials: testimonialsProp, initialVisible, readMoreHref, onReadMore, className, headingClassName, }: UserReviewsSectionProps): import("react/jsx-runtime").JSX.Element;
|
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 y=require("react");var Ye={exports:{}},Ee={};var ht;function Jt(){if(ht)return Ee;ht=1;var n=y,a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function _(d,h,p){var b,f={},v=null,N=null;p!==void 0&&(v=""+p),h.key!==void 0&&(v=""+h.key),h.ref!==void 0&&(N=h.ref);for(b in h)i.call(h,b)&&!u.hasOwnProperty(b)&&(f[b]=h[b]);if(d&&d.defaultProps)for(b in h=d.defaultProps,h)f[b]===void 0&&(f[b]=h[b]);return{$$typeof:a,type:d,key:v,ref:N,props:f,_owner:c.current}}return Ee.Fragment=o,Ee.jsx=_,Ee.jsxs=_,Ee}var Oe={};var ft;function Xt(){return ft||(ft=1,process.env.NODE_ENV!=="production"&&(function(){var n=y,a=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),$=Symbol.iterator,Y="@@iterator";function V(t){if(t===null||typeof t!="object")return null;var r=$&&t[$]||t[Y];return typeof r=="function"?r:null}var O=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(t){{for(var r=arguments.length,l=new Array(r>1?r-1:0),m=1;m<r;m++)l[m-1]=arguments[m];se("error",t,l)}}function se(t,r,l){{var m=O.ReactDebugCurrentFrame,S=m.getStackAddendum();S!==""&&(r+="%s",l=l.concat([S]));var T=l.map(function(w){return String(w)});T.unshift("Warning: "+r),Function.prototype.apply.call(console[t],console,T)}}var J=!1,ae=!1,I=!1,H=!1,M=!1,re;re=Symbol.for("react.module.reference");function oe(t){return!!(typeof t=="string"||typeof t=="function"||t===i||t===u||M||t===c||t===p||t===b||H||t===N||J||ae||I||typeof t=="object"&&t!==null&&(t.$$typeof===v||t.$$typeof===f||t.$$typeof===_||t.$$typeof===d||t.$$typeof===h||t.$$typeof===re||t.getModuleId!==void 0))}function X(t,r,l){var m=t.displayName;if(m)return m;var S=r.displayName||r.name||"";return S!==""?l+"("+S+")":l}function K(t){return t.displayName||"Context"}function B(t){if(t==null)return null;if(typeof t.tag=="number"&&C("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 i:return"Fragment";case o:return"Portal";case u:return"Profiler";case c:return"StrictMode";case p:return"Suspense";case b:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case d:var r=t;return K(r)+".Consumer";case _:var l=t;return K(l._context)+".Provider";case h:return X(t,t.render,"ForwardRef");case f:var m=t.displayName||null;return m!==null?m:B(t.type)||"Memo";case v:{var S=t,T=S._payload,w=S._init;try{return B(w(T))}catch{return null}}}return null}var Q=Object.assign,le=0,Z,de,Te,Le,ke,Be,Ae;function Re(){}Re.__reactDisabledLog=!0;function $e(){{if(le===0){Z=console.log,de=console.info,Te=console.warn,Le=console.error,ke=console.group,Be=console.groupCollapsed,Ae=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})}le++}}function ve(){{if(le--,le===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Q({},t,{value:Z}),info:Q({},t,{value:de}),warn:Q({},t,{value:Te}),error:Q({},t,{value:Le}),group:Q({},t,{value:ke}),groupCollapsed:Q({},t,{value:Be}),groupEnd:Q({},t,{value:Ae})})}le<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=O.ReactCurrentDispatcher,_e;function he(t,r,l){{if(_e===void 0)try{throw Error()}catch(S){var m=S.stack.trim().match(/\n( *(at )?)/);_e=m&&m[1]||""}return`
|
|
2
|
+
`+_e+t}}var xe=!1,ee;{var Me=typeof WeakMap=="function"?WeakMap:Map;ee=new Me}function Ce(t,r){if(!t||xe)return"";{var l=ee.get(t);if(l!==void 0)return l}var m;xe=!0;var S=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var T;T=ue.current,ue.current=null,$e();try{if(r){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(A){m=A}Reflect.construct(t,[],w)}else{try{w.call()}catch(A){m=A}t.call(w.prototype)}}else{try{throw Error()}catch(A){m=A}t()}}catch(A){if(A&&m&&typeof A.stack=="string"){for(var x=A.stack.split(`
|
|
3
|
+
`),L=m.stack.split(`
|
|
4
|
+
`),E=x.length-1,P=L.length-1;E>=1&&P>=0&&x[E]!==L[P];)P--;for(;E>=1&&P>=0;E--,P--)if(x[E]!==L[P]){if(E!==1||P!==1)do if(E--,P--,P<0||x[E]!==L[P]){var U=`
|
|
5
|
+
`+x[E].replace(" at new "," at ");return t.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",t.displayName)),typeof t=="function"&&ee.set(t,U),U}while(E>=1&&P>=0);break}}}finally{xe=!1,ue.current=T,ve(),Error.prepareStackTrace=S}var we=t?t.displayName||t.name:"",pe=we?he(we):"";return typeof t=="function"&&ee.set(t,pe),pe}function Fe(t,r,l){return Ce(t,!1)}function Ie(t){var r=t.prototype;return!!(r&&r.isReactComponent)}function fe(t,r,l){if(t==null)return"";if(typeof t=="function")return Ce(t,Ie(t));if(typeof t=="string")return he(t);switch(t){case p:return he("Suspense");case b:return he("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case h:return Fe(t.render);case f:return fe(t.type,r,l);case v:{var m=t,S=m._payload,T=m._init;try{return fe(T(S),r,l)}catch{}}}return""}var me=Object.prototype.hasOwnProperty,qe={},We=O.ReactDebugCurrentFrame;function ye(t){if(t){var r=t._owner,l=fe(t.type,t._source,r?r.type:null);We.setExtraStackFrame(l)}else We.setExtraStackFrame(null)}function s(t,r,l,m,S){{var T=Function.call.bind(me);for(var w in t)if(T(t,w)){var x=void 0;try{if(typeof t[w]!="function"){var L=Error((m||"React class")+": "+l+" type `"+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[w]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw L.name="Invariant Violation",L}x=t[w](r,w,m,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(E){x=E}x&&!(x instanceof Error)&&(ye(S),C("%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",l,w,typeof x),ye(null)),x instanceof Error&&!(x.message in qe)&&(qe[x.message]=!0,ye(S),C("Failed %s type: %s",l,x.message),ye(null))}}}var j=Array.isArray;function D(t){return j(t)}function te(t){{var r=typeof Symbol=="function"&&Symbol.toStringTag,l=r&&t[Symbol.toStringTag]||t.constructor.name||"Object";return l}}function F(t){try{return tt(t),!1}catch{return!0}}function tt(t){return""+t}function nt(t){if(F(t))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",te(t)),tt(t)}var at=O.ReactCurrentOwner,Et={key:!0,ref:!0,__self:!0,__source:!0},rt,ot;function Ot(t){if(me.call(t,"ref")){var r=Object.getOwnPropertyDescriptor(t,"ref").get;if(r&&r.isReactWarning)return!1}return t.ref!==void 0}function Pt(t){if(me.call(t,"key")){var r=Object.getOwnPropertyDescriptor(t,"key").get;if(r&&r.isReactWarning)return!1}return t.key!==void 0}function Dt(t,r){typeof t.ref=="string"&&at.current}function Lt(t,r){{var l=function(){rt||(rt=!0,C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};l.isReactWarning=!0,Object.defineProperty(t,"key",{get:l,configurable:!0})}}function Bt(t,r){{var l=function(){ot||(ot=!0,C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};l.isReactWarning=!0,Object.defineProperty(t,"ref",{get:l,configurable:!0})}}var At=function(t,r,l,m,S,T,w){var x={$$typeof:a,type:t,key:r,ref:l,props:w,_owner:T};return x._store={},Object.defineProperty(x._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(x,"_self",{configurable:!1,enumerable:!1,writable:!1,value:m}),Object.defineProperty(x,"_source",{configurable:!1,enumerable:!1,writable:!1,value:S}),Object.freeze&&(Object.freeze(x.props),Object.freeze(x)),x};function Mt(t,r,l,m,S){{var T,w={},x=null,L=null;l!==void 0&&(nt(l),x=""+l),Pt(r)&&(nt(r.key),x=""+r.key),Ot(r)&&(L=r.ref,Dt(r,S));for(T in r)me.call(r,T)&&!Et.hasOwnProperty(T)&&(w[T]=r[T]);if(t&&t.defaultProps){var E=t.defaultProps;for(T in E)w[T]===void 0&&(w[T]=E[T])}if(x||L){var P=typeof t=="function"?t.displayName||t.name||"Unknown":t;x&&Lt(w,P),L&&Bt(w,P)}return At(t,x,L,S,m,at.current,w)}}var ze=O.ReactCurrentOwner,st=O.ReactDebugCurrentFrame;function je(t){if(t){var r=t._owner,l=fe(t.type,t._source,r?r.type:null);st.setExtraStackFrame(l)}else st.setExtraStackFrame(null)}var Ge;Ge=!1;function Ve(t){return typeof t=="object"&&t!==null&&t.$$typeof===a}function it(){{if(ze.current){var t=B(ze.current.type);if(t)return`
|
|
6
6
|
|
|
7
|
-
Check the render method of \``+
|
|
7
|
+
Check the render method of \``+t+"`."}return""}}function Ft(t){return""}var ct={};function qt(t){{var r=it();if(!r){var l=typeof t=="string"?t:t.displayName||t.name;l&&(r=`
|
|
8
8
|
|
|
9
|
-
Check the top-level render call using <`+
|
|
9
|
+
Check the top-level render call using <`+l+">.")}return r}}function lt(t,r){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var l=qt(r);if(ct[l])return;ct[l]=!0;var m="";t&&t._owner&&t._owner!==ze.current&&(m=" It was passed a child from "+B(t._owner.type)+"."),je(t),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',l,m),je(null)}}function dt(t,r){{if(typeof t!="object")return;if(D(t))for(var l=0;l<t.length;l++){var m=t[l];Ve(m)&<(m,r)}else if(Ve(t))t._store&&(t._store.validated=!0);else if(t){var S=V(t);if(typeof S=="function"&&S!==t.entries)for(var T=S.call(t),w;!(w=T.next()).done;)Ve(w.value)&<(w.value,r)}}}function Wt(t){{var r=t.type;if(r==null||typeof r=="string")return;var l;if(typeof r=="function")l=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===h||r.$$typeof===f))l=r.propTypes;else return;if(l){var m=B(r);s(l,t.props,"prop",m,t)}else if(r.PropTypes!==void 0&&!Ge){Ge=!0;var S=B(r);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",S||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Yt(t){{for(var r=Object.keys(t.props),l=0;l<r.length;l++){var m=r[l];if(m!=="children"&&m!=="key"){je(t),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",m),je(null);break}}t.ref!==null&&(je(t),C("Invalid attribute `ref` supplied to `React.Fragment`."),je(null))}}var ut={};function _t(t,r,l,m,S,T){{var w=oe(t);if(!w){var x="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(x+=" 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 L=Ft();L?x+=L:x+=it();var E;t===null?E="null":D(t)?E="array":t!==void 0&&t.$$typeof===a?(E="<"+(B(t.type)||"Unknown")+" />",x=" Did you accidentally export a JSX literal instead of a component?"):E=typeof t,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",E,x)}var P=Mt(t,r,l,S,T);if(P==null)return P;if(w){var U=r.children;if(U!==void 0)if(m)if(D(U)){for(var we=0;we<U.length;we++)dt(U[we],t);Object.freeze&&Object.freeze(U)}else C("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 dt(U,t)}if(me.call(r,"key")){var pe=B(t),A=Object.keys(r).filter(function(Vt){return Vt!=="key"}),Je=A.length>0?"{key: someKey, "+A.join(": ..., ")+": ...}":"{key: someKey}";if(!ut[pe+Je]){var Gt=A.length>0?"{"+A.join(": ..., ")+": ...}":"{}";C(`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} />`,Je,pe,Gt,pe),ut[pe+Je]=!0}}return t===i?Yt(P):Wt(P),P}}function Ut(t,r,l){return _t(t,r,l,!0)}function Ht(t,r,l){return _t(t,r,l,!1)}var Kt=Ht,zt=Ut;Oe.Fragment=i,Oe.jsx=Kt,Oe.jsxs=zt})()),Oe}var mt;function Qt(){return mt||(mt=1,process.env.NODE_ENV==="production"?Ye.exports=Jt():Ye.exports=Xt()),Ye.exports}var e=Qt();const Zt="_section_1fboo_1",en="_heading_1fboo_5",tn="_trustLine_1fboo_9",nn="_star_1fboo_13",an="_ratingNum_1fboo_17",rn="_trustText_1fboo_21",on="_cardList_1fboo_25",sn="_card_1fboo_25",cn="_quote_1fboo_37",ln="_author_1fboo_41",dn="_avatar_1fboo_45",un="_avatarPlaceholder_1fboo_49",_n="_authorInfo_1fboo_54",hn="_authorName_1fboo_58",fn="_stars_1fboo_62",mn="_readMoreWrap_1fboo_66",pn="_toggleBtn_1fboo_70",gn="_readMore_1fboo_66",bn="_arrow_1fboo_89",vn="_dot_1fboo_93",R={section:Zt,heading:en,trustLine:tn,star:nn,ratingNum:an,trustText:rn,cardList:on,card:sn,quote:cn,author:ln,avatar:dn,avatarPlaceholder:un,authorInfo:_n,authorName:hn,stars:fn,readMoreWrap:mn,toggleBtn:pn,readMore:gn,arrow:bn,dot:vn},xn=3,pt=15;function yn(n){const a=new Map;for(let d=1;d<=pt;d+=1){const h=`feedbackTestimonial${d}`,p=n(h);if(!p||p===h)continue;const b=`feedbackAuthor${d}`,f=(()=>{const $=n(b);return $&&$!==b?$:n("guest")})(),v=`feedbackAuthor${d}AvatarUrl`,N=(()=>{const $=n(v);return $&&$!==v?$:void 0})();a.set(d,{quote:p,authorName:f,authorAvatarUrl:N,rating:5})}const o=[],i=[];for(let d=1;d<=pt;d+=1)d>=9?i.push(d):o.push(d);const c=[];let u=0,_=0;for(;u<o.length||_<i.length;){if(_<i.length){const d=i[_++],h=a.get(d);h&&c.push(h)}if(u<o.length){const d=o[u++],h=a.get(d);h&&c.push(h)}}return c}function jn({t:n,testimonials:a,initialVisible:o=xn,readMoreHref:i,onReadMore:c,className:u="",headingClassName:_}){const d=a??y.useMemo(()=>yn(n),[n]),[h,p]=y.useState(!1),b=d.length>o,f=b&&!h?d.slice(0,o):d,v=n("feedbackTitle"),N=n("feedbackRating"),$=n("feedbackTrust"),Y=n("readMoreReviews"),V=n("readLess");return e.jsxs("section",{className:`${R.section} ${u}`,"aria-labelledby":"reviews-heading",children:[e.jsx("h2",{id:"reviews-heading",className:[R.heading,_].filter(Boolean).join(" "),children:v}),e.jsxs("p",{className:R.trustLine,children:[e.jsx("span",{className:R.star,"aria-hidden":!0,children:"★"}),e.jsx("span",{className:R.ratingNum,children:N}),e.jsx("span",{className:R.dot,"aria-hidden":!0}),e.jsx("span",{className:R.trustText,children:$})]}),e.jsx("ul",{className:R.cardList,children:f.map((O,C)=>e.jsxs("li",{className:R.card,children:[e.jsx("p",{className:R.quote,children:O.quote}),e.jsxs("div",{className:R.author,children:[O.authorAvatarUrl?e.jsx("img",{src:O.authorAvatarUrl,alt:"",className:R.avatar,width:40,height:40}):e.jsx("div",{className:R.avatarPlaceholder,"aria-hidden":!0}),e.jsxs("div",{className:R.authorInfo,children:[e.jsx("span",{className:R.authorName,children:O.authorName}),e.jsx("span",{className:R.stars,"aria-hidden":!0,children:"★".repeat(O.rating??5)})]})]})]},C))}),b&&e.jsx("div",{className:R.readMoreWrap,children:e.jsxs("button",{type:"button",className:R.toggleBtn,onClick:()=>p(O=>!O),"aria-expanded":h,children:[h?V:Y,e.jsx("span",{className:R.arrow,"aria-hidden":!0,children:"›"})]})}),(i||c)&&!b&&e.jsx("div",{className:R.readMoreWrap,children:i?e.jsxs("a",{href:i,className:R.readMore,target:"_blank",rel:"noopener noreferrer",children:[Y,e.jsx("span",{className:R.arrow,"aria-hidden":!0,children:"›"})]}):e.jsxs("button",{type:"button",className:R.readMore,onClick:()=>c?.(),children:[Y,e.jsx("span",{className:R.arrow,"aria-hidden":!0,children:"›"})]})})]})}const wn="_section_4dc65_1",Nn="_heading_4dc65_5",Sn="_accordion_4dc65_9",Tn="_item_4dc65_13",kn="_itemOpen_4dc65_17",Rn="_question_4dc65_22",$n="_chevron_4dc65_30",Cn="_chevronOpen_4dc65_34",In="_answerWrap_4dc65_38",En="_answerOpen_4dc65_42",On="_answer_4dc65_38",z={section:wn,heading:Nn,accordion:Sn,item:Tn,itemOpen:kn,question:Rn,chevron:$n,chevronOpen:Cn,answerWrap:In,answerOpen:En,answer:On};function Pn({t:n,items:a,resolveAnswerKey:o,defaultOpenIndex:i=0,onItemOpen:c,className:u="",headingClassName:_}){const d=y.useMemo(()=>a.map(({qKey:f,aKey:v})=>({question:n(f),answer:n(o?o(v):v)})),[n,a,o]),[h,p]=y.useState(i),b=n("faqTitle");return e.jsxs("section",{className:`${z.section} ${u}`,"aria-labelledby":"faq-heading",children:[e.jsx("h2",{id:"faq-heading",className:[z.heading,_].filter(Boolean).join(" "),children:b}),e.jsx("div",{className:z.accordion,role:"list",children:d.map((f,v)=>{const N=h===v;return e.jsxs("div",{className:`${z.item} ${N?z.itemOpen:""}`,role:"listitem",children:[e.jsxs("button",{type:"button",className:z.question,onClick:()=>{const $=!N;p(N?-1:v),$&&c?.(f.question)},"aria-expanded":N,"aria-controls":`faq-answer-${v}`,id:`faq-question-${v}`,children:[e.jsx("span",{children:f.question}),e.jsx("span",{className:`${z.chevron} ${N?z.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-${v}`,role:"region","aria-labelledby":`faq-question-${v}`,className:`${z.answerWrap} ${N?z.answerOpen:""}`,hidden:!N,children:e.jsx("p",{className:z.answer,children:f.answer})})]},v)})})]})}const Dn="_header_dbx4y_1",Ln="_brand_dbx4y_7",Bn="_logo_dbx4y_11",An="_logoImg_dbx4y_15",Mn="_logoPlaceholder_dbx4y_21",Fn="_brandText_dbx4y_29",qn="_brandName_dbx4y_33",Wn="_rating_dbx4y_38",Yn="_langSlot_dbx4y_49",ne={header:Dn,brand:Ln,logo:Bn,logoImg:An,logoPlaceholder:Mn,brandText:Fn,brandName:qn,rating:Wn,langSlot:Yn},gt=120,bt=40;function Un({t:n,logoUrl:a,imageComponent:o,languageSelector:i,showLanguageSelector:c=!0,className:u=""}){const _=c&&i!=null,d=n("sriMandir"),h=n("ratingText");return e.jsxs("header",{className:`${ne.header} ${u}`,children:[e.jsxs("div",{className:ne.brand,children:[e.jsx("div",{className:ne.logo,children:a?o?e.jsx(o,{src:a,alt:d,className:ne.logoImg,width:gt,height:bt}):e.jsx("img",{src:a,alt:d,className:ne.logoImg,width:gt,height:bt,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:d}),h!=null&&h!==""&&e.jsx("span",{className:ne.rating,children:h})]})]}),_&&e.jsx("div",{className:ne.langSlot,children:i})]})}const Hn="_wrap_1vbpd_1",Kn="_card_1vbpd_5",zn="_cardInner_1vbpd_10",Xe={wrap:Hn,card:Kn,cardInner:zn};function Gn({children:n,className:a="","aria-label":o}){return e.jsx("section",{className:`${Xe.wrap} ${a}`,"aria-label":o,children:e.jsx("div",{className:Xe.card,children:e.jsx("div",{className:Xe.cardInner,children:n})})})}const Vn="_header_a05ni_1",Jn="_left_a05ni_7",Xn="_backBtn_a05ni_11",Qn="_titleWrap_a05ni_21",Zn="_title_a05ni_21",ea="_subtitle_a05ni_31",ta="_backIcon_a05ni_37",ge={header:Vn,left:Jn,backBtn:Xn,titleWrap:Qn,title:Zn,subtitle:ea,backIcon:ta},na=()=>e.jsx("svg",{className:ge.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 aa({title:n,subtitle:a,onBack:o,backAriaLabel:i="Back",className:c=""}){return e.jsx("header",{className:`${ge.header} ${c}`,children:e.jsxs("div",{className:ge.left,children:[o!=null&&e.jsx("button",{type:"button",className:ge.backBtn,onClick:o,"aria-label":i,children:e.jsx(na,{})}),e.jsxs("div",{className:ge.titleWrap,children:[e.jsx("h1",{className:ge.title,children:n}),a!=null&&a!==""&&e.jsx("p",{className:ge.subtitle,children:a})]})]})})}const ra="_banner_1jco0_1",oa="_icon_1jco0_12",sa="_text_1jco0_16",Qe={banner:ra,icon:oa,text:sa},ia="https://srm-cdn.a4b.io/yoda/1770707793537.svg";function ca({text:n,iconUrl:a=ia,className:o=""}){return e.jsx("div",{className:`${Qe.banner} ${o}`,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 la="_field_eqt7q_1",da="_labelRow_eqt7q_5",ua="_label_eqt7q_5",_a="_req_eqt7q_14",ha="_help_eqt7q_18",fa="_infoBtn_eqt7q_22",ma="_infoImg_eqt7q_30",pa="_infoWrap_eqt7q_34",ga="_tooltip_eqt7q_38",ba="_tooltipArrow_eqt7q_45",va="_inputWrap_eqt7q_50",G={field:la,labelRow:da,label:ua,req:_a,help:ha,infoBtn:fa,infoImg:ma,infoWrap:pa,tooltip:ga,tooltipArrow:ba,inputWrap:va},xa="https://srm-cdn.a4b.io/yoda/1770372066357.svg";function ya({label:n,id:a,required:o=!1,help:i,infoTooltip:c,infoAriaLabel:u="Info",infoIconUrl:_=xa,children:d,className:h=""}){const[p,b]=y.useState(!1);return y.useEffect(()=>{if(!c)return;const f=N=>{N.target?.closest?.("[data-info-tooltip]")==null&&b(!1)},v=N=>{N.key==="Escape"&&b(!1)};return document.addEventListener("mousedown",f),document.addEventListener("keydown",v),()=>{document.removeEventListener("mousedown",f),document.removeEventListener("keydown",v)}},[c]),e.jsxs("div",{className:`${G.field} ${h}`,children:[e.jsxs("div",{className:G.labelRow,children:[e.jsxs("label",{className:G.label,htmlFor:a,children:[n,o&&e.jsx("span",{className:G.req,children:"*"})]}),c!=null&&c!==""&&e.jsxs("div",{className:G.infoWrap,"data-info-tooltip":!0,children:[e.jsx("button",{type:"button",className:G.infoBtn,"aria-label":u,"aria-expanded":p,onClick:()=>b(f=>!f),children:e.jsx("img",{className:G.infoImg,src:_,alt:"","aria-hidden":!0})}),p&&e.jsxs("div",{className:G.tooltip,role:"tooltip",children:[c,e.jsx("span",{className:G.tooltipArrow,"aria-hidden":!0})]})]})]}),i!=null&&i!==""&&e.jsx("div",{className:G.help,children:i}),e.jsx("div",{className:G.inputWrap,children:d})]})}const ja="_wrap_1uy4o_1",wa="_input_1uy4o_5",Na="_iconBtn_1uy4o_21",Sa="_iconBtnInteractive_1uy4o_25",Ta="_iconImg_1uy4o_39",Ne={wrap:ja,input:wa,iconBtn:Na,iconBtnInteractive:Sa,iconImg:Ta};function ka({id:n,iconUrl:a,iconAlt:o="",iconInteractive:i=!1,onIconClick:c,className:u="",..._}){return e.jsxs("div",{className:`${Ne.wrap} ${u}`,children:[e.jsx("input",{..._,id:n,className:Ne.input,type:_.type??"text"}),a!=null&&e.jsx("button",{type:"button",className:i?`${Ne.iconBtn} ${Ne.iconBtnInteractive}`:Ne.iconBtn,"aria-label":o||void 0,onClick:i?c:void 0,tabIndex:i?0:-1,children:e.jsx("img",{className:Ne.iconImg,src:a,alt:"","aria-hidden":!0,width:22,height:22})})]})}const Ra="_wrap_t646o_1",$a="_input_t646o_5",Ca="_iconBtn_t646o_28",Ia="_iconImg_t646o_42",Ue={wrap:Ra,input:$a,iconBtn:Ca,iconImg:Ia},Ea="https://srm-cdn.a4b.io/yoda/1770372045894.svg";function Oa({id:n,value:a,onChange:o,onIconClick:i,className:c="",...u}){const _=y.useRef(null),d=y.useMemo(()=>{const p=new Date,b=f=>String(f).padStart(2,"0");return`${p.getFullYear()}-${b(p.getMonth()+1)}-${b(p.getDate())}`},[]),h=()=>{if(i){i();return}const p=_.current;p&&typeof p.showPicker=="function"?p.showPicker():p?.focus()};return e.jsxs("div",{className:`${Ue.wrap} ${c}`,children:[e.jsx("input",{...u,ref:_,id:n,type:"date",className:Ue.input,value:a,max:d,onChange:p=>o(p.target.value)}),e.jsx("button",{type:"button",className:`${Ue.iconBtn}`,"aria-label":"Open date picker",onMouseDown:p=>p.preventDefault(),onClick:p=>{p.preventDefault(),h()},children:e.jsx("img",{className:Ue.iconImg,src:Ea,alt:"","aria-hidden":!0,width:22,height:22})})]})}const Pa="_wrap_1jdg7_1",Da="_input_1jdg7_5",La="_iconBtn_1jdg7_34",Ba="_iconImg_1jdg7_48",He={wrap:Pa,input:Da,iconBtn:La,iconImg:Ba},Aa="https://srm-cdn.a4b.io/yoda/1770372014782.svg";function Ma({id:n,value:a,onChange:o,placeholder:i="HH:MM AM",disabled:c=!1,onIconClick:u,className:_=""}){return e.jsxs("div",{className:`${He.wrap} ${_}`,children:[e.jsx("input",{id:n,type:"time",className:He.input,value:a,onChange:d=>o(d.target.value),placeholder:i,disabled:c,onClick:()=>!c&&u?.()}),e.jsx("button",{type:"button",className:He.iconBtn,"aria-label":"Open time picker",disabled:c,onClick:d=>{d.preventDefault(),c||u?.()},children:e.jsx("img",{className:He.iconImg,src:Aa,alt:"","aria-hidden":!0,width:22,height:22})})]})}const Fa="_wrap_1bb6o_1",qa="_input_1bb6o_5",Wa="_iconBtn_1bb6o_21",Ya="_iconImg_1bb6o_25",Ke={wrap:Fa,input:qa,iconBtn:Wa,iconImg:Ya},Ua="https://srm-cdn.a4b.io/yoda/1770372031092.svg";function Ha({id:n,iconUrl:a=Ua,className:o="",...i}){return e.jsxs("div",{className:`${Ke.wrap} ${o}`,children:[e.jsx("input",{...i,id:n,className:Ke.input,type:"text"}),e.jsx("div",{className:Ke.iconBtn,"aria-hidden":!0,children:e.jsx("img",{className:Ke.iconImg,src:a,alt:"",width:22,height:22})})]})}const Ka="_segmented_3sa9v_1",za="_segmentedOption_3sa9v_6",Ga="_active_3sa9v_15",Ze={segmented:Ka,segmentedOption:za,active:Ga};function Va({id:n,options:a,value:o,onChange:i,className:c=""}){return e.jsx("div",{className:`${Ze.segmented} ${c}`,role:"group","aria-labelledby":`${n}-label`,children:a.map(u=>e.jsx("button",{type:"button",id:u.value===o?n:void 0,className:`${Ze.segmentedOption} ${u.value===o?Ze.active:""}`,onClick:()=>i(u.value),children:u.label},u.value))})}const Ja="_pillsWrap_z1kui_1",Xa="_pill_z1kui_1",Qa="_selected_z1kui_17",et={pillsWrap:Ja,pill:Xa,selected:Qa};function Za({id:n,options:a,selected:o,onChange:i,className:c=""}){const u=_=>{o.includes(_)?i(o.filter(d=>d!==_)):i([...o,_])};return e.jsx("div",{className:`${et.pillsWrap} ${c}`,role:"group","aria-labelledby":`${n}-label`,children:a.map(_=>e.jsx("button",{type:"button",className:`${et.pill} ${o.includes(_.key)?et.selected:""}`,onClick:()=>u(_.key),children:_.label},_.key))})}const er="_wrapper_i6a5b_2",tr="_checkboxRow_i6a5b_6",nr="_checkbox_i6a5b_6",ar="_checkboxText_i6a5b_31",rr="_checkboxHelp_i6a5b_37",Pe={wrapper:er,checkboxRow:tr,checkbox:nr,checkboxText:ar,checkboxHelp:rr};function or({id:n,checked:a,onChange:o,primaryText:i,helpText:c,className:u=""}){return e.jsxs("div",{className:`${Pe.wrapper} ${u}`,children:[e.jsxs("div",{className:Pe.checkboxRow,children:[e.jsx("input",{id:n,type:"checkbox",className:Pe.checkbox,checked:a,onChange:_=>o(_.target.checked)}),e.jsx("label",{htmlFor:n,className:Pe.checkboxText,children:i})]}),c!=null&&c!==""&&e.jsx("p",{className:Pe.checkboxHelp,children:c})]})}const sr="_footerNote_laev3_1",ir={footerNote:sr};function cr({children:n,className:a=""}){return e.jsx("p",{className:`${ir.footerNote} ${a}`,children:n})}const lr="_footer_86zxt_1",dr="_inner_86zxt_8",ur="_badges_86zxt_12",_r="_marqueeContent_86zxt_20",hr="_badge_86zxt_12",fr="_badgeIcon_86zxt_35",mr="_ctaWrap_86zxt_39",pr="_ctaStruck_86zxt_43",gr="_ctaButton_86zxt_49",br="_offerRow_86zxt_69",vr="_pill_86zxt_76",xr="_ctaStatic_86zxt_85",be={footer:lr,inner:dr,badges:ur,marqueeContent:_r,badge:hr,badgeIcon:fr,ctaWrap:mr,ctaStruck:pr,ctaButton:gr,offerRow:br,pill:vr,ctaStatic:xr};function yr({marquee:n,children:a,className:o=""}){return e.jsx("footer",{className:`${be.footer} ${o}`,role:"contentinfo",children:e.jsxs("div",{className:be.inner,children:[n!=null&&e.jsx("div",{className:be.badges,"aria-hidden":!0,children:n}),e.jsx("div",{className:be.ctaWrap,children:a})]})})}function jr({children:n,href:a,disabled:o=!1,onClick:i,static:c=!1,className:u="","aria-label":_}){const d=`${be.ctaButton} ${u}`.trim(),h=`${be.ctaStatic} ${u}`.trim(),p=_!=null?{"aria-label":_}:{};return c?e.jsx("div",{className:h,role:"presentation",children:n}):a!=null?e.jsx("a",{href:a,className:d,target:"_blank",rel:"noopener noreferrer","aria-disabled":o,onClick:b=>o&&b.preventDefault(),...p,children:n}):e.jsx("button",{type:"button",className:d,disabled:o,onClick:i,...p,children:n})}const wr="_wrapper_wxjzs_1",Nr="_track_wxjzs_7",vt={wrapper:wr,track:Nr};function jt({children:n,className:a=""}){return e.jsx("div",{className:`${vt.wrapper} ${a}`,"aria-hidden":!0,children:e.jsxs("div",{className:vt.track,children:[n,n]})})}const Sr="_strip_2838b_1",Tr={strip:Sr};function kr({children:n,className:a=""}){return e.jsx("div",{className:`${Tr.strip} ${a}`,role:"region","aria-label":"Trust badges",children:e.jsx(jt,{children:n})})}const Rr="_section_8y3x9_1",$r="_heading_8y3x9_6",Cr="_content_8y3x9_11",Ir="_line_8y3x9_16",Er="_brandName_8y3x9_20",Se={section:Rr,heading:$r,content:Cr,line:Ir,brandName:Er};function Or({title:n,brandName:a,whatsAppLine:o,emailLine:i,className:c=""}){return e.jsxs("section",{className:`${Se.section} ${c}`,"aria-labelledby":"contact-heading",children:[e.jsx("h2",{id:"contact-heading",className:Se.heading,children:n}),e.jsxs("div",{className:Se.content,children:[e.jsx("p",{className:Se.brandName,children:a}),e.jsx("p",{className:Se.line,children:o}),e.jsx("p",{className:Se.line,children:i})]})]})}const wt=n=>{const a=n.match(/T(\d{2}):(\d{2})/);if(!a)return n;const o=Number(a[1]),i=a[2],c=o>=12?"PM":"AM";return`${o%12||12}:${i} ${c}`},Nt=(n,a=new Date)=>{const o=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],i=new Date(`${n}T00:00:00`);if(Number.isNaN(i.getTime()))return{id:n,dayLabel:n,dayNum:""};const c=d=>new Date(d.getFullYear(),d.getMonth(),d.getDate()).getTime(),u=Math.round((c(i)-c(a))/(1e3*60*60*24)),_=u===0?"Today":u===1?"Tomorrow":o[i.getDay()];return{id:n,dayLabel:_,dayNum:String(i.getDate())}},St=["morning","afternoon","evening"],Tt=[{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"}],Pr=()=>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"})}),Dr=()=>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"})}),Lr=()=>e.jsx("img",{src:"https://srm-cdn.a4b.io/yoda/1785316603029.svg",width:16,height:16,alt:"","aria-hidden":!0}),Br=()=>e.jsx("img",{src:"https://srm-cdn.a4b.io/yoda/1785316621747.svg",width:16,height:16,alt:"","aria-hidden":!0}),Ar=()=>e.jsx("img",{src:"https://srm-cdn.a4b.io/yoda/1785316635953.svg",width:16,height:16,alt:"","aria-hidden":!0}),Mr=()=>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"})]}),Fr="_section_1ltqn_2",qr="_headerRow_1ltqn_10",Wr="_title_1ltqn_18",Yr="_changeBtn_1ltqn_24",Ur="_numberRow_1ltqn_35",Hr="_countryCode_1ltqn_44",Kr="_number_1ltqn_35",zr="_helper_1ltqn_59",ie={section:Fr,headerRow:qr,title:Wr,changeBtn:Yr,numberRow:Ur,countryCode:Hr,number:Kr,helper:zr},kt=({title:n,countryCode:a="+91",phoneNumber:o="98765 43210",helperText:i,onEdit:c,t:u,className:_=""})=>e.jsxs("section",{className:[ie.section,_].filter(Boolean).join(" "),children:[e.jsxs("div",{className:ie.headerRow,children:[e.jsx("span",{className:ie.title,children:n??u?.("planPhoneNumberHeading")??"Your phone number"}),c&&e.jsx("button",{type:"button",className:ie.changeBtn,onClick:c,children:u?.("planPhoneNumberChange")??"Change"})]}),e.jsxs("div",{className:ie.numberRow,children:[e.jsx("span",{className:ie.countryCode,children:a}),e.jsx("span",{className:ie.number,children:o})]}),e.jsx("p",{className:ie.helper,children:i??u?.("planPhoneNumberHelper")??"The astrologer will call you on this number at your booked slot."})]}),Gr="_section_12hk9_2",Vr="_title_12hk9_6",Jr="_profileRow_12hk9_13",Xr="_profileCard_12hk9_26",Qr="_profileCardSelected_12hk9_47",Zr="_profileTop_12hk9_52",eo="_avatar_12hk9_60",to="_profileName_12hk9_74",no="_relationPill_12hk9_84",ao="_profileMeta_12hk9_98",ro="_addCard_12hk9_108",oo="_addIcon_12hk9_127",q={section:Gr,title:Vr,profileRow:Jr,profileCard:Xr,profileCardSelected:Qr,profileTop:Zr,avatar:eo,profileName:to,relationPill:no,profileMeta:ao,addCard:ro,addIcon:oo},so=[{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"}],Rt=({title:n,profiles:a=so,selectedProfileId:o,onProfileSelect:i,onAddProfile:c,t:u,className:_=""})=>{const[d,h]=y.useState(a[0]?.id??""),p=o??d,b=f=>{h(f),i?.(f)};return e.jsxs("section",{className:[q.section,_].filter(Boolean).join(" "),children:[e.jsx("p",{className:q.title,children:n??u?.("planAstrologyProfilesHeading")??"Astrology profile"}),e.jsxs("div",{className:q.profileRow,role:"radiogroup","aria-label":"Astrology profile",children:[a.map(f=>{const v=f.id===p;return e.jsxs("button",{type:"button",role:"radio","aria-checked":v,className:[q.profileCard,v?q.profileCardSelected:""].filter(Boolean).join(" "),onClick:()=>b(f.id),children:[e.jsxs("span",{className:q.profileTop,children:[e.jsx("span",{className:q.avatar,"aria-hidden":!0,children:f.name.charAt(0).toUpperCase()}),e.jsx("span",{className:q.profileName,children:f.name})]}),f.relation&&e.jsx("span",{className:q.relationPill,children:f.relation}),f.birthDetails&&e.jsx("span",{className:q.profileMeta,children:f.birthDetails}),f.birthPlace&&e.jsx("span",{className:q.profileMeta,children:f.birthPlace})]},f.id)}),c&&e.jsxs("button",{type:"button",className:q.addCard,onClick:c,children:[e.jsx("span",{className:q.addIcon,"aria-hidden":!0,children:"+"}),u?.("planAddAstrologyProfile")??"Add profile"]})]})]})},io="_root_1ywut_6",co="_languageRow_1ywut_19",lo="_languageLabel_1ywut_27",uo="_languageDropdown_1ywut_33",_o="_languageDropdownBtn_1ywut_37",ho="_languageMenu_1ywut_52",fo="_languageMenuItem_1ywut_69",mo="_languageMenuItemSelected_1ywut_83",po="_languageDivider_1ywut_89",go="_sectionHeading_1ywut_96",bo="_reportReadyBanner_1ywut_104",vo="_reportReadyDuration_1ywut_113",xo="_dateTabs_1ywut_119",yo="_dateTabIndicator_1ywut_131",jo="_dateTab_1ywut_119",wo="_dateTabDivider_1ywut_165",No="_dateTabSelected_1ywut_175",So="_dateTabLabel_1ywut_180",To="_dateTabNum_1ywut_187",ko="_periodTabs_1ywut_201",Ro="_periodTabIndicator_1ywut_129",$o="_periodTab_1ywut_129",Co="_periodTabSelected_1ywut_248",Io="_timeGrid_1ywut_253",Eo="_emptyState_1ywut_280",Oo="_timeSlot_1ywut_284",Po="_timeSlotSelected_1ywut_300",Do="_stateMessage_1ywut_308",Lo="_retryBtn_1ywut_315",Bo="_emptyStateIcon_1ywut_341",Ao="_emptyStateTitle_1ywut_352",Mo="_emptyStateSubtitle_1ywut_359",Fo="_loadingWrap_1ywut_368",qo="_skeletonShimmer_1ywut_373",Wo="_skeletonDateTabs_1ywut_387",Yo="_skeletonDateTab_1ywut_387",Uo="_skeletonPeriodTabs_1ywut_401",Ho="_skeletonPeriodTab_1ywut_401",Ko="_skeletonTimeGrid_1ywut_416",zo="_skeletonTimeSlot_1ywut_422",g={root:io,languageRow:co,languageLabel:lo,languageDropdown:uo,languageDropdownBtn:_o,languageMenu:ho,languageMenuItem:fo,languageMenuItemSelected:mo,languageDivider:po,sectionHeading:go,reportReadyBanner:bo,reportReadyDuration:vo,dateTabs:xo,dateTabIndicator:yo,dateTab:jo,dateTabDivider:wo,dateTabSelected:No,dateTabLabel:So,dateTabNum:To,periodTabs:ko,periodTabIndicator:Ro,periodTab:$o,periodTabSelected:Co,timeGrid:Io,emptyState:Eo,timeSlot:Oo,timeSlotSelected:Po,stateMessage:Do,retryBtn:Lo,emptyStateIcon:Bo,emptyStateTitle:Ao,emptyStateSubtitle:Mo,loadingWrap:Fo,skeletonShimmer:qo,skeletonDateTabs:Wo,skeletonDateTab:Yo,skeletonPeriodTabs:Uo,skeletonPeriodTab:Ho,skeletonTimeGrid:Ko,skeletonTimeSlot:zo},Go={morning:Lr,afternoon:Br,evening:Ar},Vo={morning:"planPeriodMorning",afternoon:"planPeriodAfternoon",evening:"planPeriodEvening"},ce=(...n)=>n.filter(Boolean).join(" "),$t=({days:n,loading:a=!1,error:o=!1,onRetry:i,selectedDate:c,onDateSelect:u,selectedPeriod:_,onPeriodSelect:d,selectedSlotStart:h,onSlotSelect:p,hideLanguageSelector:b=!1,languageOptions:f=Tt,selectedLanguage:v,onLanguageSelect:N,showPhoneNumberSection:$=!0,phoneNumberSection:Y,showAstrologyProfilesSection:V=!0,astrologyProfilesSection:O,heading:C,languageLabel:se,reportReadyNote:J,isGlobal:ae=!0,t:I,className:H=""})=>{const M=y.useMemo(()=>n.filter(s=>s.has_availability&&s.slots.length>0),[n]),[re,oe]=y.useState(""),X=y.useMemo(()=>{const s=c??re;return M.some(j=>j.date===s)?s:M[0]?.date??""},[c,re,M]),K=y.useMemo(()=>M.find(s=>s.date===X)??null,[M,X]),B=y.useMemo(()=>{if(!K)return[];const s=new Set(K.slots.map(j=>j.period));return St.filter(j=>s.has(j))},[K]),[Q,le]=y.useState(""),Z=y.useMemo(()=>{const s=_??Q;return s&&B.includes(s)?s:B[0]??"morning"},[_,Q,B]),de=y.useMemo(()=>K?K.slots.filter(s=>s.period===Z):[],[K,Z]),[Te,Le]=y.useState(""),ke=y.useMemo(()=>{if(h===null)return"";const s=h??Te;return de.some(j=>j.start===s)?s:de[0]?.start??""},[h,Te,de]),[Be,Ae]=y.useState(()=>f[0]?.code??"en"),Re=v??Be,$e=f.find(s=>s.code===Re)??f[0],[ve,ue]=y.useState(!1),_e=y.useRef(null);y.useEffect(()=>{if(!ve)return;const s=j=>{_e.current&&!_e.current.contains(j.target)&&ue(!1)};return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[ve]);const he=y.useRef(null),xe=y.useRef({}),[ee,Me]=y.useState(null),Ce=y.useRef(null),Fe=y.useRef({}),[Ie,fe]=y.useState(null);y.useEffect(()=>{const s=()=>{const j=he.current,D=xe.current[X];if(!j||!D){Me(null);return}const te=j.getBoundingClientRect(),F=D.getBoundingClientRect();Me({left:F.left-te.left,top:F.top-te.top,width:F.width,height:F.height})};return s(),window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[X,M,a,o]),y.useEffect(()=>{const s=()=>{const j=Ce.current,D=Fe.current[Z];if(!j||!D){fe(null);return}const te=j.getBoundingClientRect(),F=D.getBoundingClientRect();fe({left:F.left-te.left,width:F.width})};return s(),window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[Z,B,a,o]);const me=s=>{oe(s),u?.(s)},qe=s=>{le(s),d?.(s)},We=s=>{Le(s.start),p?.(s)},ye=s=>{Ae(s),ue(!1),N?.(s)};return e.jsxs("div",{className:ce(g.root,H),children:[$&&(Y??e.jsx(kt,{t:I})),V&&(O??e.jsx(Rt,{t:I})),!b&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:g.languageRow,children:[e.jsx("span",{className:g.languageLabel,children:se??I?.("planConsultationLanguageLabel")??"Your consultation language"}),e.jsxs("div",{className:g.languageDropdown,ref:_e,children:[e.jsxs("button",{type:"button",className:g.languageDropdownBtn,onClick:()=>ue(s=>!s),"aria-haspopup":"listbox","aria-expanded":ve,children:[($e?.labelKey&&I?.($e.labelKey))??$e?.label,e.jsx(Dr,{})]}),ve&&e.jsx("ul",{className:g.languageMenu,role:"listbox",children:f.map(s=>{const j=s.code===Re;return e.jsxs("li",{role:"option","aria-selected":j,className:ce(g.languageMenuItem,j&&g.languageMenuItemSelected),onClick:()=>ye(s.code),children:[(s.labelKey&&I?.(s.labelKey))??s.label,j&&e.jsx(Pr,{})]},s.code)})})]})]}),e.jsx("hr",{className:g.languageDivider})]}),e.jsx("p",{className:g.sectionHeading,children:C??I?.("planSelectSlotHeading")??"Book your preferred consultation slot"}),J===void 0?e.jsxs("p",{className:g.reportReadyBanner,children:[I?.("planReportReadyPrefix")??"Your Report will be ready in"," ",e.jsx("span",{className:g.reportReadyDuration,children:I?.("planReportReadyDuration")??"24-48 hours"})," ",I?.("planReportReadySuffix")??"from today"]}):J,a&&e.jsxs("div",{className:g.loadingWrap,"aria-busy":"true","aria-live":"polite",children:[e.jsx("div",{className:g.skeletonDateTabs,children:Array.from({length:5}).map((s,j)=>e.jsx("div",{className:ce(g.skeletonDateTab,g.skeletonShimmer)},j))}),e.jsx("div",{className:g.skeletonPeriodTabs,children:Array.from({length:3}).map((s,j)=>e.jsx("div",{className:ce(g.skeletonPeriodTab,g.skeletonShimmer)},j))}),e.jsx("div",{className:g.skeletonTimeGrid,children:Array.from({length:6}).map((s,j)=>e.jsx("div",{className:ce(g.skeletonTimeSlot,g.skeletonShimmer)},j))})]}),!a&&o&&e.jsxs("div",{className:g.stateMessage,children:[I?.("planSlotsLoadError")??"Couldn't load slots. Please try again.",i&&e.jsx("button",{type:"button",className:g.retryBtn,onClick:i,children:I?.("planRetry")??"Retry"})]}),!a&&!o&&M.length===0&&e.jsxs("div",{className:g.emptyState,children:[e.jsx("span",{className:g.emptyStateIcon,children:e.jsx(Mr,{})}),e.jsx("p",{className:g.emptyStateTitle,children:I?.("planNoSlotsAvailableTitle")??"No slots available"}),e.jsx("p",{className:g.emptyStateSubtitle,children:I?.("planNoSlotsAvailableSubtitle")??"Try a different consultation language above, or check back soon."})]}),!a&&!o&&M.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:g.dateTabs,ref:he,role:"radiogroup","aria-label":"Consultation date",children:[ee&&e.jsx("span",{className:g.dateTabIndicator,style:{transform:`translate(${ee.left}px, ${ee.top}px)`,width:ee.width,height:ee.height},"aria-hidden":"true"}),M.map(s=>{const j=s.date===X,{dayLabel:D,dayNum:te}=Nt(s.date);return e.jsxs(y.Fragment,{children:[e.jsxs("button",{type:"button",ref:F=>{xe.current[s.date]=F},className:ce(g.dateTab,j&&g.dateTabSelected),role:"radio","aria-checked":j,onClick:()=>me(s.date),children:[e.jsx("span",{className:g.dateTabLabel,children:I?.(D)??D}),e.jsx("span",{className:g.dateTabNum,children:te})]}),e.jsx("span",{className:g.dateTabDivider,"aria-hidden":!0})]},s.date)})]}),e.jsxs("div",{className:g.periodTabs,ref:Ce,role:"tablist","aria-label":"Time of day",children:[Ie&&e.jsx("span",{className:g.periodTabIndicator,style:{transform:`translateX(${Ie.left}px)`,width:Ie.width},"aria-hidden":"true"}),B.map(s=>{const j=Go[s],D=s==="evening"&&ae,te=D?"planPeriodEveningNight":Vo[s];return e.jsxs("button",{ref:F=>{Fe.current[s]=F},type:"button",className:ce(g.periodTab,s===Z&&g.periodTabSelected),role:"tab","aria-selected":s===Z,onClick:()=>qe(s),children:[e.jsx(j,{}),I?.(te)??(D?"Evening/Night":s.charAt(0).toUpperCase()+s.slice(1))]},s)})]}),e.jsx("div",{className:g.timeGrid,role:"radiogroup","aria-label":"Consultation time",children:de.map((s,j)=>e.jsx("button",{type:"button",className:ce(g.timeSlot,ke===s.start&&g.timeSlotSelected),role:"radio","aria-checked":ke===s.start,onClick:()=>We(s),children:wt(s.start)},`${s.start}-${j}`))},`${X}-${Z}`)]})]})},xt="+05:30",Jo=n=>{const a=String(n.getMonth()+1).padStart(2,"0"),o=String(n.getDate()).padStart(2,"0");return`${n.getFullYear()}-${a}-${o}`},Xo=(n,a,o,i)=>{const c=d=>String(d).padStart(2,"0"),u=o+30,_=a+Math.floor(u/60);return{start:`${n}T${c(a)}:${c(o)}:00${xt}`,end:`${n}T${c(_)}:${c(u%60)}:00${xt}`,period:i}},Qo={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]]},De=(n,a)=>{const o=new Date;o.setDate(o.getDate()+n);const i=Jo(o),c=a.flatMap(u=>Qo[u].map(([_,d])=>Xo(i,_,d,u)));return{date:i,has_availability:c.length>0,slots:c}},Ct=[De(0,["morning","afternoon","evening"]),De(1,["morning","afternoon"]),De(2,["afternoon","evening"]),De(3,["morning","evening"]),De(4,["morning","afternoon","evening"])],Zo=Ct.map(n=>({...n,has_availability:!1,slots:[]})),It=n=>{switch(n?.toUpperCase()){case"INR":return"₹";case"USD":return"$";default:return"$"}},es=({size:n=14,className:a})=>e.jsx("svg",{width:n,height:n,viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",focusable:"false",className:a,children:e.jsx("path",{d:"M7 1.167l1.72 3.485 3.846.561-2.783 2.713.657 3.83L7 9.95l-3.44 1.806.657-3.83L1.434 5.213l3.846-.561L7 1.167z",fill:"#ffc627",stroke:"#ffc627",strokeWidth:"1",strokeLinejoin:"round"})}),ts="_plate_1xb7t_9",ns="_ribbon_1xb7t_17",as="_card_1xb7t_30",rs="_topSection_1xb7t_45",os="_photoWrap_1xb7t_56",ss="_photo_1xb7t_56",is="_photoFallback_1xb7t_73",cs="_ratingBadge_1xb7t_87",ls="_ratingStar_1xb7t_105",ds="_details_1xb7t_110",us="_identity_1xb7t_118",_s="_name_1xb7t_125",hs="_experience_1xb7t_134",fs="_languages_1xb7t_142",ms="_tagsRow_1xb7t_153",ps="_tag_1xb7t_153",gs="_divider_1xb7t_174",bs="_bottomSection_1xb7t_183",vs="_priceArea_1xb7t_190",xs="_discountRow_1xb7t_197",ys="_mrp_1xb7t_203",js="_discount_1xb7t_197",ws="_price_1xb7t_190",Ns="_actionArea_1xb7t_227",Ss="_ctaBtn_1xb7t_231",k={plate:ts,ribbon:ns,card:as,topSection:rs,photoWrap:os,photo:ss,photoFallback:is,ratingBadge:cs,ratingStar:ls,details:ds,identity:us,name:_s,experience:hs,languages:fs,tagsRow:ms,tag:ps,divider:gs,bottomSection:bs,priceArea:vs,discountRow:xs,mrp:ys,discount:js,price:ws,actionArea:Ns,ctaBtn:Ss},yt=(...n)=>n.filter(Boolean).join(" "),Ts=n=>n.toFixed(1),ks=({astrologer:n,pricing:a,currencySymbol:o,onSelectSlot:i,disabled:c=!1,ctaLabel:u,t:_,className:d="",innerRef:h})=>{const{name:p,photoUrl:b,languages:f,specialties:v,experienceYears:N,rating:$,isPreviouslyConsulted:Y=!1}=n,V=o??It(a?.currencyCode),O=typeof $=="number"&&$>0,C=typeof N=="number"&&N>0,se=f?.length?f.join(", "):"",J=v?.filter(Boolean)??[],ae=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:k.topSection,children:[e.jsxs("div",{className:k.photoWrap,children:[b?e.jsx("img",{className:k.photo,src:b,alt:p,loading:"lazy"}):e.jsx("div",{className:k.photoFallback,"aria-hidden":"true",children:p?.trim().charAt(0).toUpperCase()||"?"}),O&&e.jsxs("span",{className:k.ratingBadge,children:[Ts($),e.jsx(es,{className:k.ratingStar})]})]}),e.jsxs("div",{className:k.details,children:[e.jsxs("div",{className:k.identity,children:[e.jsx("p",{className:k.name,children:p}),C&&e.jsx("p",{className:k.experience,children:_?.("consultationYearsOfExperience",{count:N})??`${N}+ years of experience`}),se&&e.jsx("p",{className:k.languages,children:se})]}),J.length>0&&e.jsx("div",{className:k.tagsRow,children:J.map(I=>e.jsx("span",{className:k.tag,children:I},I))})]})]}),e.jsx("hr",{className:k.divider}),e.jsxs("div",{className:k.bottomSection,children:[a&&e.jsxs("div",{className:k.priceArea,children:[(a.mrp!=null||a.discountPercent!=null)&&e.jsxs("div",{className:k.discountRow,children:[a.mrp!=null&&e.jsxs("span",{className:k.mrp,children:[V,a.mrp]}),a.discountPercent!=null&&e.jsx("span",{className:k.discount,children:_?.("consultationPercentOff",{percent:a.discountPercent})??`${a.discountPercent}% Off`})]}),e.jsxs("span",{className:k.price,children:[V,a.price]})]}),e.jsx("div",{className:k.actionArea,children:e.jsx("button",{type:"button",className:k.ctaBtn,disabled:c,onClick:()=>i?.(n),children:u??_?.("consultationSelectSlot")??"Select Slot"})})]})]});return Y?e.jsxs("div",{ref:h,className:yt(k.plate,d),children:[e.jsx("div",{className:k.card,children:ae}),e.jsx("div",{className:k.ribbon,children:_?.("consultationPreviouslyConsulted")??"Previously Consulted"})]}):e.jsx("div",{ref:h,className:yt(k.card,d),children:ae})},Rs="_overlay_tw78y_2",$s="_sheet_tw78y_14",Cs="_iconBadge_tw78y_54",Is="_header_tw78y_77",Es="_headerNoIcon_tw78y_84",Os="_title_tw78y_88",Ps="_closeBtn_tw78y_96",Ds="_headerDivider_tw78y_114",Ls="_body_tw78y_124",Bs="_phoneSection_tw78y_132",As="_footer_tw78y_137",Ms="_ctaBtn_tw78y_144",Fs="_errorText_tw78y_167",W={overlay:Rs,sheet:$s,iconBadge:Cs,header:Is,headerNoIcon:Es,title:Os,closeBtn:Ps,headerDivider:Ds,body:Ls,phoneSection:Bs,footer:As,ctaBtn:Ms,errorText:Fs},qs=()=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M12 4L4 12M4 4l8 8",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})}),Ws=({isOpen:n,onClose:a,days:o,loading:i=!1,error:c=!1,onRetry:u,selectedDate:_,onDateSelect:d,selectedPeriod:h,onPeriodSelect:p,selectedSlotStart:b,onSlotSelect:f,phoneNumberSection:v,title:N,heading:$,iconUrl:Y,icon:V,ctaLabel:O,onCtaClick:C,ctaDisabled:se=!1,isProcessing:J=!1,errorMessage:ae,isGlobal:I=!0,t:H,className:M=""})=>{if(y.useEffect(()=>{if(!n)return;const oe=K=>{K.key==="Escape"&&a()};document.addEventListener("keydown",oe);const X=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",oe),document.body.style.overflow=X}},[n,a]),!n)return null;const re=V??(Y?e.jsx("img",{src:Y,alt:""}):null);return e.jsx("div",{className:W.overlay,role:"presentation",onClick:oe=>{oe.target===oe.currentTarget&&a()},children:e.jsxs("div",{className:[W.sheet,M].filter(Boolean).join(" "),role:"dialog","aria-modal":"true","aria-label":N??H?.("consultationSheetTitle")??"Schedule your call",children:[re&&e.jsx("div",{className:W.iconBadge,children:re}),e.jsx("button",{type:"button",className:W.closeBtn,onClick:a,"aria-label":H?.("consultationSheetClose")??"Close",children:e.jsx(qs,{})}),e.jsx("div",{className:[W.header,!re&&W.headerNoIcon].filter(Boolean).join(" "),children:e.jsx("p",{className:W.title,children:N??H?.("consultationSheetTitle")??"Schedule your call"})}),e.jsx("hr",{className:W.headerDivider}),e.jsxs("div",{className:W.body,children:[v&&e.jsx("div",{className:W.phoneSection,children:v}),e.jsx($t,{days:o,loading:i,error:c,onRetry:u,selectedDate:_,onDateSelect:d,selectedPeriod:h,onPeriodSelect:p,selectedSlotStart:b,onSlotSelect:f,heading:$??H?.("consultationSelectTimeSlot")??"Select a time slot.",showAstrologyProfilesSection:!1,hideLanguageSelector:!0,showPhoneNumberSection:!1,reportReadyNote:null,isGlobal:I,t:H})]}),e.jsxs("div",{className:W.footer,children:[e.jsx("button",{type:"button",className:W.ctaBtn,disabled:se||J,onClick:C,children:J?H?.("consultationScheduling")??"Scheduling…":O??H?.("consultationScheduleCall")??"Schedule call"}),ae&&e.jsx("p",{className:W.errorText,children:ae})]})]})})};exports.AstrologerCard=ks;exports.AstrologyProfilesSection=Rt;exports.CONSULTATION_LANGUAGE_OPTIONS=Tt;exports.CONSULTATION_PERIOD_ORDER=St;exports.CircularMarquee=jt;exports.ConsultationSlotSelector=$t;exports.ConsultationSlotSheet=Ws;exports.ContactUsSection=Or;exports.FAQAccordion=Pn;exports.FooterCTAButton=jr;exports.FooterShell=yr;exports.FormCheckboxWithHelp=or;exports.FormContainer=Gn;exports.FormDateInput=Oa;exports.FormField=ya;exports.FormFooterNote=cr;exports.FormLocationInput=Ha;exports.FormSectionHeader=aa;exports.FormSegmentedControl=Va;exports.FormTagPills=Za;exports.FormTextInput=ka;exports.FormTimeInput=Ma;exports.MOCK_SLOT_DAYS=Ct;exports.MOCK_SLOT_DAYS_EMPTY=Zo;exports.MarqueeStrip=kr;exports.PageHeader=Un;exports.PhoneNumberSection=kt;exports.PrivacyBanner=ca;exports.UserReviewsSection=jn;exports.footerShellStyles=be;exports.formatSlotDayLabel=Nt;exports.formatSlotTime=wt;exports.getAstrologerPriceSymbol=It;
|
|
15
15
|
//# sourceMappingURL=index.cjs.map
|