@srimandir/astrology-common 1.0.6 → 1.0.7
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/components/FAQAccordion/FAQAccordion.d.ts +3 -1
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +244 -240
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -11,6 +11,8 @@ export interface FAQAccordionProps {
|
|
|
11
11
|
resolveAnswerKey?: (aKey: string) => string;
|
|
12
12
|
/** Index of the item to open by default (-1 = none) */
|
|
13
13
|
defaultOpenIndex?: number;
|
|
14
|
+
/** Called when an item is expanded; receives the question text */
|
|
15
|
+
onItemOpen?: (questionText: string) => void;
|
|
14
16
|
className?: string;
|
|
15
17
|
}
|
|
16
|
-
export declare function FAQAccordion({ t, items, resolveAnswerKey, defaultOpenIndex, className, }: FAQAccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function FAQAccordion({ t, items, resolveAnswerKey, defaultOpenIndex, onItemOpen, className, }: FAQAccordionProps): 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"});const F=require("react");var ee={exports:{}},J={};var Ue;function It(){if(Ue)return J;Ue=1;var a=F,s=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,u=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
2
|
-
`+ie+e}}var ce=!1,X;{var st=typeof WeakMap=="function"?WeakMap:Map;X=new st}function Re(e,
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("react");var ee={exports:{}},J={};var Ue;function It(){if(Ue)return J;Ue=1;var a=F,s=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,u=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_={key:!0,ref:!0,__self:!0,__source:!0};function d(c,h,f){var v,b={},j=null,R=null;f!==void 0&&(j=""+f),h.key!==void 0&&(j=""+h.key),h.ref!==void 0&&(R=h.ref);for(v in h)i.call(h,v)&&!_.hasOwnProperty(v)&&(b[v]=h[v]);if(c&&c.defaultProps)for(v in h=c.defaultProps,h)b[v]===void 0&&(b[v]=h[v]);return{$$typeof:s,type:c,key:j,ref:R,props:b,_owner:u.current}}return J.Fragment=o,J.jsx=d,J.jsxs=d,J}var K={};var Ye;function Ot(){return Ye||(Ye=1,process.env.NODE_ENV!=="production"&&(function(){var a=F,s=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),c=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),k=Symbol.iterator,se="@@iterator";function P(e){if(e===null||typeof e!="object")return null;var n=k&&e[k]||e[se];return typeof n=="function"?n:null}var A=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function $(e){{for(var n=arguments.length,r=new Array(n>1?n-1:0),l=1;l<n;l++)r[l-1]=arguments[l];Ke("error",e,r)}}function Ke(e,n,r){{var l=A.ReactDebugCurrentFrame,g=l.getStackAddendum();g!==""&&(n+="%s",r=r.concat([g]));var x=r.map(function(m){return String(m)});x.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,x)}}var Ge=!1,Xe=!1,Qe=!1,Ze=!1,et=!1,be;be=Symbol.for("react.module.reference");function tt(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===_||et||e===u||e===f||e===v||Ze||e===R||Ge||Xe||Qe||typeof e=="object"&&e!==null&&(e.$$typeof===j||e.$$typeof===b||e.$$typeof===d||e.$$typeof===c||e.$$typeof===h||e.$$typeof===be||e.getModuleId!==void 0))}function nt(e,n,r){var l=e.displayName;if(l)return l;var g=n.displayName||n.name||"";return g!==""?r+"("+g+")":r}function ge(e){return e.displayName||"Context"}function B(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 i:return"Fragment";case o:return"Portal";case _:return"Profiler";case u:return"StrictMode";case f:return"Suspense";case v:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case c:var n=e;return ge(n)+".Consumer";case d:var r=e;return ge(r._context)+".Provider";case h:return nt(e,e.render,"ForwardRef");case b:var l=e.displayName||null;return l!==null?l:B(e.type)||"Memo";case j:{var g=e,x=g._payload,m=g._init;try{return B(m(x))}catch{return null}}}return null}var W=Object.assign,H=0,xe,ye,je,Ne,we,ke,$e;function Ee(){}Ee.__reactDisabledLog=!0;function rt(){{if(H===0){xe=console.log,ye=console.info,je=console.warn,Ne=console.error,we=console.group,ke=console.groupCollapsed,$e=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ee,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}H++}}function at(){{if(H--,H===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:W({},e,{value:xe}),info:W({},e,{value:ye}),warn:W({},e,{value:je}),error:W({},e,{value:Ne}),group:W({},e,{value:we}),groupCollapsed:W({},e,{value:ke}),groupEnd:W({},e,{value:$e})})}H<0&&$("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var oe=A.ReactCurrentDispatcher,ie;function G(e,n,r){{if(ie===void 0)try{throw Error()}catch(g){var l=g.stack.trim().match(/\n( *(at )?)/);ie=l&&l[1]||""}return`
|
|
2
|
+
`+ie+e}}var ce=!1,X;{var st=typeof WeakMap=="function"?WeakMap:Map;X=new st}function Re(e,n){if(!e||ce)return"";{var r=X.get(e);if(r!==void 0)return r}var l;ce=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var x;x=oe.current,oe.current=null,rt();try{if(n){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(T){l=T}Reflect.construct(e,[],m)}else{try{m.call()}catch(T){l=T}e.call(m.prototype)}}else{try{throw Error()}catch(T){l=T}e()}}catch(T){if(T&&l&&typeof T.stack=="string"){for(var p=T.stack.split(`
|
|
3
3
|
`),E=l.stack.split(`
|
|
4
|
-
`),
|
|
5
|
-
`+
|
|
4
|
+
`),N=p.length-1,w=E.length-1;N>=1&&w>=0&&p[N]!==E[w];)w--;for(;N>=1&&w>=0;N--,w--)if(p[N]!==E[w]){if(N!==1||w!==1)do if(N--,w--,w<0||p[N]!==E[w]){var I=`
|
|
5
|
+
`+p[N].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),typeof e=="function"&&X.set(e,I),I}while(N>=1&&w>=0);break}}}finally{ce=!1,oe.current=x,at(),Error.prepareStackTrace=g}var U=e?e.displayName||e.name:"",D=U?G(U):"";return typeof e=="function"&&X.set(e,D),D}function ot(e,n,r){return Re(e,!1)}function it(e){var n=e.prototype;return!!(n&&n.isReactComponent)}function Q(e,n,r){if(e==null)return"";if(typeof e=="function")return Re(e,it(e));if(typeof e=="string")return G(e);switch(e){case f:return G("Suspense");case v:return G("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case h:return ot(e.render);case b:return Q(e.type,n,r);case j:{var l=e,g=l._payload,x=l._init;try{return Q(x(g),n,r)}catch{}}}return""}var z=Object.prototype.hasOwnProperty,Te={},Ie=A.ReactDebugCurrentFrame;function Z(e){if(e){var n=e._owner,r=Q(e.type,e._source,n?n.type:null);Ie.setExtraStackFrame(r)}else Ie.setExtraStackFrame(null)}function ct(e,n,r,l,g){{var x=Function.call.bind(z);for(var m in e)if(x(e,m)){var p=void 0;try{if(typeof e[m]!="function"){var E=Error((l||"React class")+": "+r+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw E.name="Invariant Violation",E}p=e[m](n,m,l,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(N){p=N}p&&!(p instanceof Error)&&(Z(g),$("%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).",l||"React class",r,m,typeof p),Z(null)),p instanceof Error&&!(p.message in Te)&&(Te[p.message]=!0,Z(g),$("Failed %s type: %s",r,p.message),Z(null))}}}var lt=Array.isArray;function le(e){return lt(e)}function ut(e){{var n=typeof Symbol=="function"&&Symbol.toStringTag,r=n&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r}}function dt(e){try{return Oe(e),!1}catch{return!0}}function Oe(e){return""+e}function Ce(e){if(dt(e))return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ut(e)),Oe(e)}var Se=A.ReactCurrentOwner,ft={key:!0,ref:!0,__self:!0,__source:!0},Pe,Fe;function _t(e){if(z.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return e.ref!==void 0}function pt(e){if(z.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return e.key!==void 0}function ht(e,n){typeof e.ref=="string"&&Se.current}function mt(e,n){{var r=function(){Pe||(Pe=!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))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}}function vt(e,n){{var r=function(){Fe||(Fe=!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))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}}var bt=function(e,n,r,l,g,x,m){var p={$$typeof:s,type:e,key:n,ref:r,props:m,_owner:x};return p._store={},Object.defineProperty(p._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(p,"_self",{configurable:!1,enumerable:!1,writable:!1,value:l}),Object.defineProperty(p,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(p.props),Object.freeze(p)),p};function gt(e,n,r,l,g){{var x,m={},p=null,E=null;r!==void 0&&(Ce(r),p=""+r),pt(n)&&(Ce(n.key),p=""+n.key),_t(n)&&(E=n.ref,ht(n,g));for(x in n)z.call(n,x)&&!ft.hasOwnProperty(x)&&(m[x]=n[x]);if(e&&e.defaultProps){var N=e.defaultProps;for(x in N)m[x]===void 0&&(m[x]=N[x])}if(p||E){var w=typeof e=="function"?e.displayName||e.name||"Unknown":e;p&&mt(m,w),E&&vt(m,w)}return bt(e,p,E,g,l,Se.current,m)}}var ue=A.ReactCurrentOwner,Ae=A.ReactDebugCurrentFrame;function q(e){if(e){var n=e._owner,r=Q(e.type,e._source,n?n.type:null);Ae.setExtraStackFrame(r)}else Ae.setExtraStackFrame(null)}var de;de=!1;function fe(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function Be(){{if(ue.current){var e=B(ue.current.type);if(e)return`
|
|
6
6
|
|
|
7
|
-
Check the render method of \``+e+"`."}return""}}function xt(e){return""}var We={};function yt(e){{var
|
|
7
|
+
Check the render method of \``+e+"`."}return""}}function xt(e){return""}var We={};function yt(e){{var n=Be();if(!n){var r=typeof e=="string"?e:e.displayName||e.name;r&&(n=`
|
|
8
8
|
|
|
9
|
-
Check the top-level render call using <`+
|
|
9
|
+
Check the top-level render call using <`+r+">.")}return n}}function De(e,n){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=yt(n);if(We[r])return;We[r]=!0;var l="";e&&e._owner&&e._owner!==ue.current&&(l=" It was passed a child from "+B(e._owner.type)+"."),q(e),$('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,l),q(null)}}function Le(e,n){{if(typeof e!="object")return;if(le(e))for(var r=0;r<e.length;r++){var l=e[r];fe(l)&&De(l,n)}else if(fe(e))e._store&&(e._store.validated=!0);else if(e){var g=P(e);if(typeof g=="function"&&g!==e.entries)for(var x=g.call(e),m;!(m=x.next()).done;)fe(m.value)&&De(m.value,n)}}}function jt(e){{var n=e.type;if(n==null||typeof n=="string")return;var r;if(typeof n=="function")r=n.propTypes;else if(typeof n=="object"&&(n.$$typeof===h||n.$$typeof===b))r=n.propTypes;else return;if(r){var l=B(n);ct(r,e.props,"prop",l,e)}else if(n.PropTypes!==void 0&&!de){de=!0;var g=B(n);$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"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 Nt(e){{for(var n=Object.keys(e.props),r=0;r<n.length;r++){var l=n[r];if(l!=="children"&&l!=="key"){q(e),$("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",l),q(null);break}}e.ref!==null&&(q(e),$("Invalid attribute `ref` supplied to `React.Fragment`."),q(null))}}var Me={};function qe(e,n,r,l,g,x){{var m=tt(e);if(!m){var p="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(p+=" 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 E=xt();E?p+=E:p+=Be();var N;e===null?N="null":le(e)?N="array":e!==void 0&&e.$$typeof===s?(N="<"+(B(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):N=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",N,p)}var w=gt(e,n,r,g,x);if(w==null)return w;if(m){var I=n.children;if(I!==void 0)if(l)if(le(I)){for(var U=0;U<I.length;U++)Le(I[U],e);Object.freeze&&Object.freeze(I)}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 Le(I,e)}if(z.call(n,"key")){var D=B(e),T=Object.keys(n).filter(function(Tt){return Tt!=="key"}),_e=T.length>0?"{key: someKey, "+T.join(": ..., ")+": ...}":"{key: someKey}";if(!Me[D+_e]){var Rt=T.length>0?"{"+T.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,D,Rt,D),Me[D+_e]=!0}}return e===i?Nt(N):jt(N),N}}function wt(e,r,n){return qe(e,r,n,!0)}function kt(e,r,n){return qe(e,r,n,!1)}var $t=kt,Et=wt;K.Fragment=i,K.jsx=$t,K.jsxs=Et})()),K}var Ve;function Ot(){return Ve||(Ve=1,process.env.NODE_ENV==="production"?ee.exports=It():ee.exports=Ct()),ee.exports}var t=Ot();const St="_section_1fboo_1",Pt="_heading_1fboo_5",Ft="_trustLine_1fboo_9",At="_star_1fboo_13",Bt="_ratingNum_1fboo_17",Wt="_trustText_1fboo_21",Dt="_cardList_1fboo_25",Lt="_card_1fboo_25",Mt="_quote_1fboo_37",qt="_author_1fboo_41",Ut="_avatar_1fboo_45",Yt="_avatarPlaceholder_1fboo_49",Vt="_authorInfo_1fboo_54",Ht="_authorName_1fboo_58",zt="_stars_1fboo_62",Jt="_readMoreWrap_1fboo_66",Kt="_toggleBtn_1fboo_70",Gt="_readMore_1fboo_66",Xt="_arrow_1fboo_89",Qt="_dot_1fboo_93",y={section:St,heading:Pt,trustLine:Ft,star:At,ratingNum:Bt,trustText:Wt,cardList:Dt,card:Lt,quote:Mt,author:qt,avatar:Ut,avatarPlaceholder:Yt,authorInfo:Vt,authorName:Ht,stars:zt,readMoreWrap:Jt,toggleBtn:Kt,readMore:Gt,arrow:Xt,dot:Qt},Zt=3,He=15;function er(a){const s=new Map;for(let c=1;c<=He;c+=1){const m=`feedbackTestimonial${c}`,f=a(m);if(!f||f===m)continue;const _=`feedbackAuthor${c}`,g=(()=>{const k=a(_);return k&&k!==_?k:a("guest")})(),w=`feedbackAuthor${c}AvatarUrl`,T=(()=>{const k=a(w);return k&&k!==w?k:void 0})();s.set(c,{quote:f,authorName:g,authorAvatarUrl:T,rating:5})}const o=[],i=[];for(let c=1;c<=He;c+=1)c>=9?i.push(c):o.push(c);const u=[];let p=0,d=0;for(;p<o.length||d<i.length;){if(d<i.length){const c=i[d++],m=s.get(c);m&&u.push(m)}if(p<o.length){const c=o[p++],m=s.get(c);m&&u.push(m)}}return u}function tr({t:a,testimonials:s,initialVisible:o=Zt,readMoreHref:i,onReadMore:u,className:p=""}){const d=s??F.useMemo(()=>er(a),[a]),[c,m]=F.useState(!1),f=d.length>o,_=f&&!c?d.slice(0,o):d,g=a("feedbackTitle"),w=a("feedbackRating"),T=a("feedbackTrust"),k=a("readMoreReviews"),se=a("readLess");return t.jsxs("section",{className:`${y.section} ${p}`,"aria-labelledby":"reviews-heading",children:[t.jsx("h2",{id:"reviews-heading",className:y.heading,children:g}),t.jsxs("p",{className:y.trustLine,children:[t.jsx("span",{className:y.star,"aria-hidden":!0,children:"★"}),t.jsx("span",{className:y.ratingNum,children:w}),t.jsx("span",{className:y.dot,"aria-hidden":!0}),t.jsx("span",{className:y.trustText,children:T})]}),t.jsx("ul",{className:y.cardList,children:_.map((P,A)=>t.jsxs("li",{className:y.card,children:[t.jsx("p",{className:y.quote,children:P.quote}),t.jsxs("div",{className:y.author,children:[P.authorAvatarUrl?t.jsx("img",{src:P.authorAvatarUrl,alt:"",className:y.avatar,width:40,height:40}):t.jsx("div",{className:y.avatarPlaceholder,"aria-hidden":!0}),t.jsxs("div",{className:y.authorInfo,children:[t.jsx("span",{className:y.authorName,children:P.authorName}),t.jsx("span",{className:y.stars,"aria-hidden":!0,children:"★".repeat(P.rating??5)})]})]})]},A))}),f&&t.jsx("div",{className:y.readMoreWrap,children:t.jsxs("button",{type:"button",className:y.toggleBtn,onClick:()=>m(P=>!P),"aria-expanded":c,children:[c?se:k,t.jsx("span",{className:y.arrow,"aria-hidden":!0,children:"›"})]})}),(i||u)&&!f&&t.jsx("div",{className:y.readMoreWrap,children:i?t.jsxs("a",{href:i,className:y.readMore,target:"_blank",rel:"noopener noreferrer",children:[k,t.jsx("span",{className:y.arrow,"aria-hidden":!0,children:"›"})]}):t.jsxs("button",{type:"button",className:y.readMore,onClick:()=>u?.(),children:[k,t.jsx("span",{className:y.arrow,"aria-hidden":!0,children:"›"})]})})]})}const rr="_section_4dc65_1",nr="_heading_4dc65_5",ar="_accordion_4dc65_9",sr="_item_4dc65_13",or="_itemOpen_4dc65_17",ir="_question_4dc65_22",cr="_chevron_4dc65_30",lr="_chevronOpen_4dc65_34",ur="_answerWrap_4dc65_38",dr="_answerOpen_4dc65_42",fr="_answer_4dc65_38",C={section:rr,heading:nr,accordion:ar,item:sr,itemOpen:or,question:ir,chevron:cr,chevronOpen:lr,answerWrap:ur,answerOpen:dr,answer:fr};function _r({t:a,items:s,resolveAnswerKey:o,defaultOpenIndex:i=0,className:u=""}){const p=F.useMemo(()=>s.map(({qKey:f,aKey:_})=>({question:a(f),answer:a(o?o(_):_)})),[a,s,o]),[d,c]=F.useState(i),m=a("faqTitle");return t.jsxs("section",{className:`${C.section} ${u}`,"aria-labelledby":"faq-heading",children:[t.jsx("h2",{id:"faq-heading",className:C.heading,children:m}),t.jsx("div",{className:C.accordion,role:"list",children:p.map((f,_)=>{const g=d===_;return t.jsxs("div",{className:`${C.item} ${g?C.itemOpen:""}`,role:"listitem",children:[t.jsxs("button",{type:"button",className:C.question,onClick:()=>c(g?-1:_),"aria-expanded":g,"aria-controls":`faq-answer-${_}`,id:`faq-question-${_}`,children:[t.jsx("span",{children:f.question}),t.jsx("span",{className:`${C.chevron} ${g?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-${_}`,role:"region","aria-labelledby":`faq-question-${_}`,className:`${C.answerWrap} ${g?C.answerOpen:""}`,hidden:!g,children:t.jsx("p",{className:C.answer,children:f.answer})})]},_)})})]})}const pr="_header_dbx4y_1",hr="_brand_dbx4y_7",mr="_logo_dbx4y_11",vr="_logoImg_dbx4y_15",br="_logoPlaceholder_dbx4y_21",gr="_brandText_dbx4y_29",xr="_brandName_dbx4y_33",yr="_rating_dbx4y_38",jr="_stars_dbx4y_44",Nr="_langSlot_dbx4y_49",S={header:pr,brand:hr,logo:mr,logoImg:vr,logoPlaceholder:br,brandText:gr,brandName:xr,rating:yr,stars:jr,langSlot:Nr};function wr({t:a,logoUrl:s,languageSelector:o,showLanguageSelector:i=!0,className:u=""}){const p=i&&o!=null,d=a("sriMandir"),c=a("ratingText");return t.jsxs("header",{className:`${S.header} ${u}`,children:[t.jsxs("div",{className:S.brand,children:[t.jsx("div",{className:S.logo,children:s?t.jsx("img",{src:s,alt:d,className:S.logoImg}):t.jsx("div",{className:S.logoPlaceholder,"aria-hidden":!0})}),t.jsxs("div",{className:S.brandText,children:[t.jsx("span",{className:S.brandName,children:d}),c!=null&&c!==""&&t.jsxs("span",{className:S.rating,children:[t.jsx("span",{className:S.stars,"aria-hidden":!0,children:"★"}),c]})]})]}),p&&t.jsx("div",{className:S.langSlot,children:o})]})}const kr="_wrap_136bw_1",$r="_card_136bw_5",Er="_cardInner_136bw_10",pe={wrap:kr,card:$r,cardInner:Er};function Rr({children:a,className:s="","aria-label":o}){return t.jsx("section",{className:`${pe.wrap} ${s}`,"aria-label":o,children:t.jsx("div",{className:pe.card,children:t.jsx("div",{className:pe.cardInner,children:a})})})}const Tr="_header_a05ni_1",Ir="_left_a05ni_7",Cr="_backBtn_a05ni_11",Or="_titleWrap_a05ni_21",Sr="_title_a05ni_21",Pr="_subtitle_a05ni_31",Fr="_backIcon_a05ni_37",L={header:Tr,left:Ir,backBtn:Cr,titleWrap:Or,title:Sr,subtitle:Pr,backIcon:Fr},Ar=()=>t.jsx("svg",{className:L.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:s,onBack:o,backAriaLabel:i="Back",className:u=""}){return t.jsx("header",{className:`${L.header} ${u}`,children:t.jsxs("div",{className:L.left,children:[o!=null&&t.jsx("button",{type:"button",className:L.backBtn,onClick:o,"aria-label":i,children:t.jsx(Ar,{})}),t.jsxs("div",{className:L.titleWrap,children:[t.jsx("h1",{className:L.title,children:a}),s!=null&&s!==""&&t.jsx("p",{className:L.subtitle,children:s})]})]})})}const Wr="_banner_1jco0_1",Dr="_icon_1jco0_12",Lr="_text_1jco0_16",he={banner:Wr,icon:Dr,text:Lr},Mr="https://srm-cdn.a4b.io/yoda/1770707793537.svg";function qr({text:a,iconUrl:s=Mr,className:o=""}){return t.jsx("div",{className:`${he.banner} ${o}`,role:"status",children:t.jsxs("span",{className:he.text,children:[" ",t.jsx("img",{src:s,alt:"",className:he.icon,width:18,height:18,"aria-hidden":!0})," ",a]})})}const Ur="_field_1kmsy_1",Yr="_labelRow_1kmsy_5",Vr="_label_1kmsy_5",Hr="_req_1kmsy_13",zr="_help_1kmsy_17",Jr="_infoBtn_1kmsy_21",Kr="_infoImg_1kmsy_29",Gr="_infoWrap_1kmsy_33",Xr="_tooltip_1kmsy_37",Qr="_tooltipArrow_1kmsy_44",Zr="_inputWrap_1kmsy_49",O={field:Ur,labelRow:Yr,label:Vr,req:Hr,help:zr,infoBtn:Jr,infoImg:Kr,infoWrap:Gr,tooltip:Xr,tooltipArrow:Qr,inputWrap:Zr},en="https://srm-cdn.a4b.io/yoda/1770372066357.svg";function tn({label:a,id:s,required:o=!1,help:i,infoTooltip:u,infoAriaLabel:p="Info",infoIconUrl:d=en,children:c,className:m=""}){const[f,_]=F.useState(!1);return F.useEffect(()=>{if(!u)return;const g=T=>{T.target?.closest?.("[data-info-tooltip]")==null&&_(!1)},w=T=>{T.key==="Escape"&&_(!1)};return document.addEventListener("mousedown",g),document.addEventListener("keydown",w),()=>{document.removeEventListener("mousedown",g),document.removeEventListener("keydown",w)}},[u]),t.jsxs("div",{className:`${O.field} ${m}`,children:[t.jsxs("div",{className:O.labelRow,children:[t.jsxs("label",{className:O.label,htmlFor:s,children:[a,o&&t.jsx("span",{className:O.req,children:"*"})]}),u!=null&&u!==""&&t.jsxs("div",{className:O.infoWrap,"data-info-tooltip":!0,children:[t.jsx("button",{type:"button",className:O.infoBtn,"aria-label":p,"aria-expanded":f,onClick:()=>_(g=>!g),children:t.jsx("img",{className:O.infoImg,src:d,alt:"","aria-hidden":!0})}),f&&t.jsxs("div",{className:O.tooltip,role:"tooltip",children:[u,t.jsx("span",{className:O.tooltipArrow,"aria-hidden":!0})]})]})]}),i!=null&&i!==""&&t.jsx("div",{className:O.help,children:i}),t.jsx("div",{className:O.inputWrap,children:c})]})}const rn="_wrap_9tsug_1",nn="_input_9tsug_5",an="_iconBtn_9tsug_21",sn="_iconBtnInteractive_9tsug_25",on="_iconImg_9tsug_39",Y={wrap:rn,input:nn,iconBtn:an,iconBtnInteractive:sn,iconImg:on};function cn({id:a,iconUrl:s,iconAlt:o="",iconInteractive:i=!1,onIconClick:u,className:p="",...d}){return t.jsxs("div",{className:`${Y.wrap} ${p}`,children:[t.jsx("input",{...d,id:a,className:Y.input,type:d.type??"text"}),s!=null&&t.jsx("button",{type:"button",className:i?`${Y.iconBtn} ${Y.iconBtnInteractive}`:Y.iconBtn,"aria-label":o||void 0,onClick:i?u:void 0,tabIndex:i?0:-1,children:t.jsx("img",{className:Y.iconImg,src:s,alt:"","aria-hidden":!0,width:22,height:22})})]})}const ln="_wrap_pkduc_1",un="_input_pkduc_5",dn="_iconBtn_pkduc_28",fn="_iconImg_pkduc_42",te={wrap:ln,input:un,iconBtn:dn,iconImg:fn},_n="https://srm-cdn.a4b.io/yoda/1770372045894.svg";function pn({id:a,value:s,onChange:o,onIconClick:i,className:u="",...p}){const d=F.useRef(null),c=(()=>{const f=new Date,_=g=>String(g).padStart(2,"0");return`${f.getFullYear()}-${_(f.getMonth()+1)}-${_(f.getDate())}`})(),m=()=>{if(i){i();return}const f=d.current;f&&typeof f.showPicker=="function"?f.showPicker():f?.focus()};return t.jsxs("div",{className:`${te.wrap} ${u}`,children:[t.jsx("input",{...p,ref:d,id:a,type:"date",className:te.input,value:s,max:c,onChange:f=>o(f.target.value)}),t.jsx("button",{type:"button",className:`${te.iconBtn}`,"aria-label":"Open date picker",onMouseDown:f=>f.preventDefault(),onClick:f=>{f.preventDefault(),m()},children:t.jsx("img",{className:te.iconImg,src:_n,alt:"","aria-hidden":!0,width:22,height:22})})]})}const hn="_wrap_n0xus_1",mn="_input_n0xus_5",vn="_iconBtn_n0xus_34",bn="_iconImg_n0xus_48",re={wrap:hn,input:mn,iconBtn:vn,iconImg:bn},gn="https://srm-cdn.a4b.io/yoda/1770372014782.svg";function xn({id:a,value:s,onChange:o,placeholder:i="HH:MM AM",disabled:u=!1,onIconClick:p,className:d=""}){return t.jsxs("div",{className:`${re.wrap} ${d}`,children:[t.jsx("input",{id:a,type:"time",className:re.input,value:s,onChange:c=>o(c.target.value),placeholder:i,disabled:u,onClick:()=>!u&&p?.()}),t.jsx("button",{type:"button",className:re.iconBtn,"aria-label":"Open time picker",disabled:u,onClick:c=>{c.preventDefault(),u||p?.()},children:t.jsx("img",{className:re.iconImg,src:gn,alt:"","aria-hidden":!0,width:22,height:22})})]})}const yn="_wrap_1czki_1",jn="_input_1czki_5",Nn="_iconBtn_1czki_21",wn="_iconImg_1czki_25",ne={wrap:yn,input:jn,iconBtn:Nn,iconImg:wn},kn="https://srm-cdn.a4b.io/yoda/1770372031092.svg";function $n({id:a,iconUrl:s=kn,className:o="",...i}){return t.jsxs("div",{className:`${ne.wrap} ${o}`,children:[t.jsx("input",{...i,id:a,className:ne.input,type:"text"}),t.jsx("div",{className:ne.iconBtn,"aria-hidden":!0,children:t.jsx("img",{className:ne.iconImg,src:s,alt:"",width:22,height:22})})]})}const En="_segmented_55mcr_1",Rn="_segmentedOption_55mcr_6",Tn="_active_55mcr_14",me={segmented:En,segmentedOption:Rn,active:Tn};function In({id:a,options:s,value:o,onChange:i,className:u=""}){return t.jsx("div",{className:`${me.segmented} ${u}`,role:"group","aria-labelledby":`${a}-label`,children:s.map(p=>t.jsx("button",{type:"button",id:p.value===o?a:void 0,className:`${me.segmentedOption} ${p.value===o?me.active:""}`,onClick:()=>i(p.value),children:p.label},p.value))})}const Cn="_pillsWrap_l8u3p_1",On="_pill_l8u3p_1",Sn="_selected_l8u3p_16",ve={pillsWrap:Cn,pill:On,selected:Sn};function Pn({id:a,options:s,selected:o,onChange:i,className:u=""}){const p=d=>{o.includes(d)?i(o.filter(c=>c!==d)):i([...o,d])};return t.jsx("div",{className:`${ve.pillsWrap} ${u}`,role:"group","aria-labelledby":`${a}-label`,children:s.map(d=>t.jsx("button",{type:"button",className:`${ve.pill} ${o.includes(d.key)?ve.selected:""}`,onClick:()=>p(d.key),children:d.label},d.key))})}const Fn="_checkboxRow_8fijg_1",An="_checkbox_8fijg_1",Bn="_checkboxText_8fijg_30",Wn="_checkboxHelp_8fijg_34",ae={checkboxRow:Fn,checkbox:An,checkboxText:Bn,checkboxHelp:Wn};function Dn({id:a,checked:s,onChange:o,primaryText:i,helpText:u,className:p=""}){return t.jsxs("div",{className:`${ae.checkboxRow} ${p}`,children:[t.jsx("input",{id:a,type:"checkbox",className:ae.checkbox,checked:s,onChange:d=>o(d.target.checked)}),t.jsxs("label",{htmlFor:a,className:ae.checkboxText,children:[i,u!=null&&u!==""&&t.jsx("span",{className:ae.checkboxHelp,children:u})]})]})}const Ln="_footerNote_laev3_1",Mn={footerNote:Ln};function qn({children:a,className:s=""}){return t.jsx("p",{className:`${Mn.footerNote} ${s}`,children:a})}const Un="_footer_1u9dc_1",Yn="_inner_1u9dc_9",Vn="_badges_1u9dc_13",Hn="_marqueeContent_1u9dc_21",zn="_badge_1u9dc_13",Jn="_badgeIcon_1u9dc_36",Kn="_ctaWrap_1u9dc_40",Gn="_ctaStruck_1u9dc_44",Xn="_ctaButton_1u9dc_50",Qn="_offerRow_1u9dc_70",Zn="_pill_1u9dc_77",ea="_ctaStatic_1u9dc_86",M={footer:Un,inner:Yn,badges:Vn,marqueeContent:Hn,badge:zn,badgeIcon:Jn,ctaWrap:Kn,ctaStruck:Gn,ctaButton:Xn,offerRow:Qn,pill:Zn,ctaStatic:ea};function ta({marquee:a,children:s,className:o=""}){return t.jsx("footer",{className:`${M.footer} ${o}`,role:"contentinfo",children:t.jsxs("div",{className:M.inner,children:[a!=null&&t.jsx("div",{className:M.badges,"aria-hidden":!0,children:a}),t.jsx("div",{className:M.ctaWrap,children:s})]})})}function ra({children:a,href:s,disabled:o=!1,onClick:i,static:u=!1,className:p="","aria-label":d}){const c=`${M.ctaButton} ${p}`.trim(),m=`${M.ctaStatic} ${p}`.trim(),f=d!=null?{"aria-label":d}:{};return u?t.jsx("div",{className:m,role:"presentation",children:a}):s!=null?t.jsx("a",{href:s,className:c,target:"_blank",rel:"noopener noreferrer","aria-disabled":o,onClick:_=>o&&_.preventDefault(),...f,children:a}):t.jsx("button",{type:"button",className:c,disabled:o,onClick:i,...f,children:a})}const na="_wrapper_wxjzs_1",aa="_track_wxjzs_7",ze={wrapper:na,track:aa};function Je({children:a,className:s=""}){return t.jsx("div",{className:`${ze.wrapper} ${s}`,"aria-hidden":!0,children:t.jsxs("div",{className:ze.track,children:[a,a]})})}const sa="_strip_2838b_1",oa={strip:sa};function ia({children:a,className:s=""}){return t.jsx("div",{className:`${oa.strip} ${s}`,role:"region","aria-label":"Trust badges",children:t.jsx(Je,{children:a})})}const ca="_section_8y3x9_1",la="_heading_8y3x9_6",ua="_content_8y3x9_11",da="_line_8y3x9_16",fa="_brandName_8y3x9_20",V={section:ca,heading:la,content:ua,line:da,brandName:fa};function _a({title:a,brandName:s,whatsAppLine:o,emailLine:i,className:u=""}){return t.jsxs("section",{className:`${V.section} ${u}`,"aria-labelledby":"contact-heading",children:[t.jsx("h2",{id:"contact-heading",className:V.heading,children:a}),t.jsxs("div",{className:V.content,children:[t.jsx("p",{className:V.brandName,children:s}),t.jsx("p",{className:V.line,children:o}),t.jsx("p",{className:V.line,children:i})]})]})}exports.CircularMarquee=Je;exports.ContactUsSection=_a;exports.FAQAccordion=_r;exports.FooterCTAButton=ra;exports.FooterShell=ta;exports.FormCheckboxWithHelp=Dn;exports.FormContainer=Rr;exports.FormDateInput=pn;exports.FormField=tn;exports.FormFooterNote=qn;exports.FormLocationInput=$n;exports.FormSectionHeader=Br;exports.FormSegmentedControl=In;exports.FormTagPills=Pn;exports.FormTextInput=cn;exports.FormTimeInput=xn;exports.MarqueeStrip=ia;exports.PageHeader=wr;exports.PrivacyBanner=qr;exports.UserReviewsSection=tr;exports.footerShellStyles=M;
|
|
14
|
+
<%s key={someKey} {...props} />`,_e,D,Rt,D),Me[D+_e]=!0}}return e===i?Nt(w):jt(w),w}}function wt(e,n,r){return qe(e,n,r,!0)}function kt(e,n,r){return qe(e,n,r,!1)}var $t=kt,Et=wt;K.Fragment=i,K.jsx=$t,K.jsxs=Et})()),K}var Ve;function Ct(){return Ve||(Ve=1,process.env.NODE_ENV==="production"?ee.exports=It():ee.exports=Ot()),ee.exports}var t=Ct();const St="_section_1fboo_1",Pt="_heading_1fboo_5",Ft="_trustLine_1fboo_9",At="_star_1fboo_13",Bt="_ratingNum_1fboo_17",Wt="_trustText_1fboo_21",Dt="_cardList_1fboo_25",Lt="_card_1fboo_25",Mt="_quote_1fboo_37",qt="_author_1fboo_41",Ut="_avatar_1fboo_45",Yt="_avatarPlaceholder_1fboo_49",Vt="_authorInfo_1fboo_54",Ht="_authorName_1fboo_58",zt="_stars_1fboo_62",Jt="_readMoreWrap_1fboo_66",Kt="_toggleBtn_1fboo_70",Gt="_readMore_1fboo_66",Xt="_arrow_1fboo_89",Qt="_dot_1fboo_93",y={section:St,heading:Pt,trustLine:Ft,star:At,ratingNum:Bt,trustText:Wt,cardList:Dt,card:Lt,quote:Mt,author:qt,avatar:Ut,avatarPlaceholder:Yt,authorInfo:Vt,authorName:Ht,stars:zt,readMoreWrap:Jt,toggleBtn:Kt,readMore:Gt,arrow:Xt,dot:Qt},Zt=3,He=15;function en(a){const s=new Map;for(let c=1;c<=He;c+=1){const h=`feedbackTestimonial${c}`,f=a(h);if(!f||f===h)continue;const v=`feedbackAuthor${c}`,b=(()=>{const k=a(v);return k&&k!==v?k:a("guest")})(),j=`feedbackAuthor${c}AvatarUrl`,R=(()=>{const k=a(j);return k&&k!==j?k:void 0})();s.set(c,{quote:f,authorName:b,authorAvatarUrl:R,rating:5})}const o=[],i=[];for(let c=1;c<=He;c+=1)c>=9?i.push(c):o.push(c);const u=[];let _=0,d=0;for(;_<o.length||d<i.length;){if(d<i.length){const c=i[d++],h=s.get(c);h&&u.push(h)}if(_<o.length){const c=o[_++],h=s.get(c);h&&u.push(h)}}return u}function tn({t:a,testimonials:s,initialVisible:o=Zt,readMoreHref:i,onReadMore:u,className:_=""}){const d=s??F.useMemo(()=>en(a),[a]),[c,h]=F.useState(!1),f=d.length>o,v=f&&!c?d.slice(0,o):d,b=a("feedbackTitle"),j=a("feedbackRating"),R=a("feedbackTrust"),k=a("readMoreReviews"),se=a("readLess");return t.jsxs("section",{className:`${y.section} ${_}`,"aria-labelledby":"reviews-heading",children:[t.jsx("h2",{id:"reviews-heading",className:y.heading,children:b}),t.jsxs("p",{className:y.trustLine,children:[t.jsx("span",{className:y.star,"aria-hidden":!0,children:"★"}),t.jsx("span",{className:y.ratingNum,children:j}),t.jsx("span",{className:y.dot,"aria-hidden":!0}),t.jsx("span",{className:y.trustText,children:R})]}),t.jsx("ul",{className:y.cardList,children:v.map((P,A)=>t.jsxs("li",{className:y.card,children:[t.jsx("p",{className:y.quote,children:P.quote}),t.jsxs("div",{className:y.author,children:[P.authorAvatarUrl?t.jsx("img",{src:P.authorAvatarUrl,alt:"",className:y.avatar,width:40,height:40}):t.jsx("div",{className:y.avatarPlaceholder,"aria-hidden":!0}),t.jsxs("div",{className:y.authorInfo,children:[t.jsx("span",{className:y.authorName,children:P.authorName}),t.jsx("span",{className:y.stars,"aria-hidden":!0,children:"★".repeat(P.rating??5)})]})]})]},A))}),f&&t.jsx("div",{className:y.readMoreWrap,children:t.jsxs("button",{type:"button",className:y.toggleBtn,onClick:()=>h(P=>!P),"aria-expanded":c,children:[c?se:k,t.jsx("span",{className:y.arrow,"aria-hidden":!0,children:"›"})]})}),(i||u)&&!f&&t.jsx("div",{className:y.readMoreWrap,children:i?t.jsxs("a",{href:i,className:y.readMore,target:"_blank",rel:"noopener noreferrer",children:[k,t.jsx("span",{className:y.arrow,"aria-hidden":!0,children:"›"})]}):t.jsxs("button",{type:"button",className:y.readMore,onClick:()=>u?.(),children:[k,t.jsx("span",{className:y.arrow,"aria-hidden":!0,children:"›"})]})})]})}const nn="_section_4dc65_1",rn="_heading_4dc65_5",an="_accordion_4dc65_9",sn="_item_4dc65_13",on="_itemOpen_4dc65_17",cn="_question_4dc65_22",ln="_chevron_4dc65_30",un="_chevronOpen_4dc65_34",dn="_answerWrap_4dc65_38",fn="_answerOpen_4dc65_42",_n="_answer_4dc65_38",O={section:nn,heading:rn,accordion:an,item:sn,itemOpen:on,question:cn,chevron:ln,chevronOpen:un,answerWrap:dn,answerOpen:fn,answer:_n};function pn({t:a,items:s,resolveAnswerKey:o,defaultOpenIndex:i=0,onItemOpen:u,className:_=""}){const d=F.useMemo(()=>s.map(({qKey:v,aKey:b})=>({question:a(v),answer:a(o?o(b):b)})),[a,s,o]),[c,h]=F.useState(i),f=a("faqTitle");return t.jsxs("section",{className:`${O.section} ${_}`,"aria-labelledby":"faq-heading",children:[t.jsx("h2",{id:"faq-heading",className:O.heading,children:f}),t.jsx("div",{className:O.accordion,role:"list",children:d.map((v,b)=>{const j=c===b;return t.jsxs("div",{className:`${O.item} ${j?O.itemOpen:""}`,role:"listitem",children:[t.jsxs("button",{type:"button",className:O.question,onClick:()=>{const R=!j;h(j?-1:b),R&&u?.(v.question)},"aria-expanded":j,"aria-controls":`faq-answer-${b}`,id:`faq-question-${b}`,children:[t.jsx("span",{children:v.question}),t.jsx("span",{className:`${O.chevron} ${j?O.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-${b}`,role:"region","aria-labelledby":`faq-question-${b}`,className:`${O.answerWrap} ${j?O.answerOpen:""}`,hidden:!j,children:t.jsx("p",{className:O.answer,children:v.answer})})]},b)})})]})}const hn="_header_dbx4y_1",mn="_brand_dbx4y_7",vn="_logo_dbx4y_11",bn="_logoImg_dbx4y_15",gn="_logoPlaceholder_dbx4y_21",xn="_brandText_dbx4y_29",yn="_brandName_dbx4y_33",jn="_rating_dbx4y_38",Nn="_stars_dbx4y_44",wn="_langSlot_dbx4y_49",S={header:hn,brand:mn,logo:vn,logoImg:bn,logoPlaceholder:gn,brandText:xn,brandName:yn,rating:jn,stars:Nn,langSlot:wn};function kn({t:a,logoUrl:s,languageSelector:o,showLanguageSelector:i=!0,className:u=""}){const _=i&&o!=null,d=a("sriMandir"),c=a("ratingText");return t.jsxs("header",{className:`${S.header} ${u}`,children:[t.jsxs("div",{className:S.brand,children:[t.jsx("div",{className:S.logo,children:s?t.jsx("img",{src:s,alt:d,className:S.logoImg}):t.jsx("div",{className:S.logoPlaceholder,"aria-hidden":!0})}),t.jsxs("div",{className:S.brandText,children:[t.jsx("span",{className:S.brandName,children:d}),c!=null&&c!==""&&t.jsxs("span",{className:S.rating,children:[t.jsx("span",{className:S.stars,"aria-hidden":!0,children:"★"}),c]})]})]}),_&&t.jsx("div",{className:S.langSlot,children:o})]})}const $n="_wrap_136bw_1",En="_card_136bw_5",Rn="_cardInner_136bw_10",pe={wrap:$n,card:En,cardInner:Rn};function Tn({children:a,className:s="","aria-label":o}){return t.jsx("section",{className:`${pe.wrap} ${s}`,"aria-label":o,children:t.jsx("div",{className:pe.card,children:t.jsx("div",{className:pe.cardInner,children:a})})})}const In="_header_a05ni_1",On="_left_a05ni_7",Cn="_backBtn_a05ni_11",Sn="_titleWrap_a05ni_21",Pn="_title_a05ni_21",Fn="_subtitle_a05ni_31",An="_backIcon_a05ni_37",L={header:In,left:On,backBtn:Cn,titleWrap:Sn,title:Pn,subtitle:Fn,backIcon:An},Bn=()=>t.jsx("svg",{className:L.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 Wn({title:a,subtitle:s,onBack:o,backAriaLabel:i="Back",className:u=""}){return t.jsx("header",{className:`${L.header} ${u}`,children:t.jsxs("div",{className:L.left,children:[o!=null&&t.jsx("button",{type:"button",className:L.backBtn,onClick:o,"aria-label":i,children:t.jsx(Bn,{})}),t.jsxs("div",{className:L.titleWrap,children:[t.jsx("h1",{className:L.title,children:a}),s!=null&&s!==""&&t.jsx("p",{className:L.subtitle,children:s})]})]})})}const Dn="_banner_1jco0_1",Ln="_icon_1jco0_12",Mn="_text_1jco0_16",he={banner:Dn,icon:Ln,text:Mn},qn="https://srm-cdn.a4b.io/yoda/1770707793537.svg";function Un({text:a,iconUrl:s=qn,className:o=""}){return t.jsx("div",{className:`${he.banner} ${o}`,role:"status",children:t.jsxs("span",{className:he.text,children:[" ",t.jsx("img",{src:s,alt:"",className:he.icon,width:18,height:18,"aria-hidden":!0})," ",a]})})}const Yn="_field_1kmsy_1",Vn="_labelRow_1kmsy_5",Hn="_label_1kmsy_5",zn="_req_1kmsy_13",Jn="_help_1kmsy_17",Kn="_infoBtn_1kmsy_21",Gn="_infoImg_1kmsy_29",Xn="_infoWrap_1kmsy_33",Qn="_tooltip_1kmsy_37",Zn="_tooltipArrow_1kmsy_44",er="_inputWrap_1kmsy_49",C={field:Yn,labelRow:Vn,label:Hn,req:zn,help:Jn,infoBtn:Kn,infoImg:Gn,infoWrap:Xn,tooltip:Qn,tooltipArrow:Zn,inputWrap:er},tr="https://srm-cdn.a4b.io/yoda/1770372066357.svg";function nr({label:a,id:s,required:o=!1,help:i,infoTooltip:u,infoAriaLabel:_="Info",infoIconUrl:d=tr,children:c,className:h=""}){const[f,v]=F.useState(!1);return F.useEffect(()=>{if(!u)return;const b=R=>{R.target?.closest?.("[data-info-tooltip]")==null&&v(!1)},j=R=>{R.key==="Escape"&&v(!1)};return document.addEventListener("mousedown",b),document.addEventListener("keydown",j),()=>{document.removeEventListener("mousedown",b),document.removeEventListener("keydown",j)}},[u]),t.jsxs("div",{className:`${C.field} ${h}`,children:[t.jsxs("div",{className:C.labelRow,children:[t.jsxs("label",{className:C.label,htmlFor:s,children:[a,o&&t.jsx("span",{className:C.req,children:"*"})]}),u!=null&&u!==""&&t.jsxs("div",{className:C.infoWrap,"data-info-tooltip":!0,children:[t.jsx("button",{type:"button",className:C.infoBtn,"aria-label":_,"aria-expanded":f,onClick:()=>v(b=>!b),children:t.jsx("img",{className:C.infoImg,src:d,alt:"","aria-hidden":!0})}),f&&t.jsxs("div",{className:C.tooltip,role:"tooltip",children:[u,t.jsx("span",{className:C.tooltipArrow,"aria-hidden":!0})]})]})]}),i!=null&&i!==""&&t.jsx("div",{className:C.help,children:i}),t.jsx("div",{className:C.inputWrap,children:c})]})}const rr="_wrap_9tsug_1",ar="_input_9tsug_5",sr="_iconBtn_9tsug_21",or="_iconBtnInteractive_9tsug_25",ir="_iconImg_9tsug_39",Y={wrap:rr,input:ar,iconBtn:sr,iconBtnInteractive:or,iconImg:ir};function cr({id:a,iconUrl:s,iconAlt:o="",iconInteractive:i=!1,onIconClick:u,className:_="",...d}){return t.jsxs("div",{className:`${Y.wrap} ${_}`,children:[t.jsx("input",{...d,id:a,className:Y.input,type:d.type??"text"}),s!=null&&t.jsx("button",{type:"button",className:i?`${Y.iconBtn} ${Y.iconBtnInteractive}`:Y.iconBtn,"aria-label":o||void 0,onClick:i?u:void 0,tabIndex:i?0:-1,children:t.jsx("img",{className:Y.iconImg,src:s,alt:"","aria-hidden":!0,width:22,height:22})})]})}const lr="_wrap_pkduc_1",ur="_input_pkduc_5",dr="_iconBtn_pkduc_28",fr="_iconImg_pkduc_42",te={wrap:lr,input:ur,iconBtn:dr,iconImg:fr},_r="https://srm-cdn.a4b.io/yoda/1770372045894.svg";function pr({id:a,value:s,onChange:o,onIconClick:i,className:u="",..._}){const d=F.useRef(null),c=(()=>{const f=new Date,v=b=>String(b).padStart(2,"0");return`${f.getFullYear()}-${v(f.getMonth()+1)}-${v(f.getDate())}`})(),h=()=>{if(i){i();return}const f=d.current;f&&typeof f.showPicker=="function"?f.showPicker():f?.focus()};return t.jsxs("div",{className:`${te.wrap} ${u}`,children:[t.jsx("input",{..._,ref:d,id:a,type:"date",className:te.input,value:s,max:c,onChange:f=>o(f.target.value)}),t.jsx("button",{type:"button",className:`${te.iconBtn}`,"aria-label":"Open date picker",onMouseDown:f=>f.preventDefault(),onClick:f=>{f.preventDefault(),h()},children:t.jsx("img",{className:te.iconImg,src:_r,alt:"","aria-hidden":!0,width:22,height:22})})]})}const hr="_wrap_n0xus_1",mr="_input_n0xus_5",vr="_iconBtn_n0xus_34",br="_iconImg_n0xus_48",ne={wrap:hr,input:mr,iconBtn:vr,iconImg:br},gr="https://srm-cdn.a4b.io/yoda/1770372014782.svg";function xr({id:a,value:s,onChange:o,placeholder:i="HH:MM AM",disabled:u=!1,onIconClick:_,className:d=""}){return t.jsxs("div",{className:`${ne.wrap} ${d}`,children:[t.jsx("input",{id:a,type:"time",className:ne.input,value:s,onChange:c=>o(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:gr,alt:"","aria-hidden":!0,width:22,height:22})})]})}const yr="_wrap_1czki_1",jr="_input_1czki_5",Nr="_iconBtn_1czki_21",wr="_iconImg_1czki_25",re={wrap:yr,input:jr,iconBtn:Nr,iconImg:wr},kr="https://srm-cdn.a4b.io/yoda/1770372031092.svg";function $r({id:a,iconUrl:s=kr,className:o="",...i}){return t.jsxs("div",{className:`${re.wrap} ${o}`,children:[t.jsx("input",{...i,id:a,className:re.input,type:"text"}),t.jsx("div",{className:re.iconBtn,"aria-hidden":!0,children:t.jsx("img",{className:re.iconImg,src:s,alt:"",width:22,height:22})})]})}const Er="_segmented_55mcr_1",Rr="_segmentedOption_55mcr_6",Tr="_active_55mcr_14",me={segmented:Er,segmentedOption:Rr,active:Tr};function Ir({id:a,options:s,value:o,onChange:i,className:u=""}){return t.jsx("div",{className:`${me.segmented} ${u}`,role:"group","aria-labelledby":`${a}-label`,children:s.map(_=>t.jsx("button",{type:"button",id:_.value===o?a:void 0,className:`${me.segmentedOption} ${_.value===o?me.active:""}`,onClick:()=>i(_.value),children:_.label},_.value))})}const Or="_pillsWrap_l8u3p_1",Cr="_pill_l8u3p_1",Sr="_selected_l8u3p_16",ve={pillsWrap:Or,pill:Cr,selected:Sr};function Pr({id:a,options:s,selected:o,onChange:i,className:u=""}){const _=d=>{o.includes(d)?i(o.filter(c=>c!==d)):i([...o,d])};return t.jsx("div",{className:`${ve.pillsWrap} ${u}`,role:"group","aria-labelledby":`${a}-label`,children:s.map(d=>t.jsx("button",{type:"button",className:`${ve.pill} ${o.includes(d.key)?ve.selected:""}`,onClick:()=>_(d.key),children:d.label},d.key))})}const Fr="_checkboxRow_8fijg_1",Ar="_checkbox_8fijg_1",Br="_checkboxText_8fijg_30",Wr="_checkboxHelp_8fijg_34",ae={checkboxRow:Fr,checkbox:Ar,checkboxText:Br,checkboxHelp:Wr};function Dr({id:a,checked:s,onChange:o,primaryText:i,helpText:u,className:_=""}){return t.jsxs("div",{className:`${ae.checkboxRow} ${_}`,children:[t.jsx("input",{id:a,type:"checkbox",className:ae.checkbox,checked:s,onChange:d=>o(d.target.checked)}),t.jsxs("label",{htmlFor:a,className:ae.checkboxText,children:[i,u!=null&&u!==""&&t.jsx("span",{className:ae.checkboxHelp,children:u})]})]})}const Lr="_footerNote_laev3_1",Mr={footerNote:Lr};function qr({children:a,className:s=""}){return t.jsx("p",{className:`${Mr.footerNote} ${s}`,children:a})}const Ur="_footer_1u9dc_1",Yr="_inner_1u9dc_9",Vr="_badges_1u9dc_13",Hr="_marqueeContent_1u9dc_21",zr="_badge_1u9dc_13",Jr="_badgeIcon_1u9dc_36",Kr="_ctaWrap_1u9dc_40",Gr="_ctaStruck_1u9dc_44",Xr="_ctaButton_1u9dc_50",Qr="_offerRow_1u9dc_70",Zr="_pill_1u9dc_77",ea="_ctaStatic_1u9dc_86",M={footer:Ur,inner:Yr,badges:Vr,marqueeContent:Hr,badge:zr,badgeIcon:Jr,ctaWrap:Kr,ctaStruck:Gr,ctaButton:Xr,offerRow:Qr,pill:Zr,ctaStatic:ea};function ta({marquee:a,children:s,className:o=""}){return t.jsx("footer",{className:`${M.footer} ${o}`,role:"contentinfo",children:t.jsxs("div",{className:M.inner,children:[a!=null&&t.jsx("div",{className:M.badges,"aria-hidden":!0,children:a}),t.jsx("div",{className:M.ctaWrap,children:s})]})})}function na({children:a,href:s,disabled:o=!1,onClick:i,static:u=!1,className:_="","aria-label":d}){const c=`${M.ctaButton} ${_}`.trim(),h=`${M.ctaStatic} ${_}`.trim(),f=d!=null?{"aria-label":d}:{};return u?t.jsx("div",{className:h,role:"presentation",children:a}):s!=null?t.jsx("a",{href:s,className:c,target:"_blank",rel:"noopener noreferrer","aria-disabled":o,onClick:v=>o&&v.preventDefault(),...f,children:a}):t.jsx("button",{type:"button",className:c,disabled:o,onClick:i,...f,children:a})}const ra="_wrapper_wxjzs_1",aa="_track_wxjzs_7",ze={wrapper:ra,track:aa};function Je({children:a,className:s=""}){return t.jsx("div",{className:`${ze.wrapper} ${s}`,"aria-hidden":!0,children:t.jsxs("div",{className:ze.track,children:[a,a]})})}const sa="_strip_2838b_1",oa={strip:sa};function ia({children:a,className:s=""}){return t.jsx("div",{className:`${oa.strip} ${s}`,role:"region","aria-label":"Trust badges",children:t.jsx(Je,{children:a})})}const ca="_section_8y3x9_1",la="_heading_8y3x9_6",ua="_content_8y3x9_11",da="_line_8y3x9_16",fa="_brandName_8y3x9_20",V={section:ca,heading:la,content:ua,line:da,brandName:fa};function _a({title:a,brandName:s,whatsAppLine:o,emailLine:i,className:u=""}){return t.jsxs("section",{className:`${V.section} ${u}`,"aria-labelledby":"contact-heading",children:[t.jsx("h2",{id:"contact-heading",className:V.heading,children:a}),t.jsxs("div",{className:V.content,children:[t.jsx("p",{className:V.brandName,children:s}),t.jsx("p",{className:V.line,children:o}),t.jsx("p",{className:V.line,children:i})]})]})}exports.CircularMarquee=Je;exports.ContactUsSection=_a;exports.FAQAccordion=pn;exports.FooterCTAButton=na;exports.FooterShell=ta;exports.FormCheckboxWithHelp=Dr;exports.FormContainer=Tn;exports.FormDateInput=pr;exports.FormField=nr;exports.FormFooterNote=qr;exports.FormLocationInput=$r;exports.FormSectionHeader=Wn;exports.FormSegmentedControl=Ir;exports.FormTagPills=Pr;exports.FormTextInput=cr;exports.FormTimeInput=xr;exports.MarqueeStrip=ia;exports.PageHeader=kn;exports.PrivacyBanner=Un;exports.UserReviewsSection=tn;exports.footerShellStyles=M;
|
|
15
15
|
//# sourceMappingURL=index.cjs.map
|