@srimandir/astrology-common 1.0.34 → 1.0.37
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.
|
@@ -14,5 +14,7 @@ export interface FAQAccordionProps {
|
|
|
14
14
|
/** Called when an item is expanded; receives the question text */
|
|
15
15
|
onItemOpen?: (questionText: string) => void;
|
|
16
16
|
className?: string;
|
|
17
|
+
/** Optional class name for the section heading (e.g. to use bold in one app and semibold in another) */
|
|
18
|
+
headingClassName?: string;
|
|
17
19
|
}
|
|
18
|
-
export declare function FAQAccordion({ t, items, resolveAnswerKey, defaultOpenIndex, onItemOpen, className, }: FAQAccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function FAQAccordion({ t, items, resolveAnswerKey, defaultOpenIndex, onItemOpen, className, headingClassName, }: FAQAccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -15,5 +15,7 @@ export interface UserReviewsSectionProps {
|
|
|
15
15
|
readMoreHref?: string;
|
|
16
16
|
onReadMore?: () => void;
|
|
17
17
|
className?: string;
|
|
18
|
+
/** Optional class name for the section heading (e.g. to use bold in one app and semibold in another) */
|
|
19
|
+
headingClassName?: string;
|
|
18
20
|
}
|
|
19
|
-
export declare function UserReviewsSection({ t, testimonials: testimonialsProp, initialVisible, readMoreHref, onReadMore, className, }: UserReviewsSectionProps): import("react/jsx-runtime").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"});const
|
|
2
|
-
`+ie+e}}var ce=!1,X;{var st=typeof WeakMap=="function"?WeakMap:Map;X=new st}function Re(e,r){if(!e||ce)return"";{var n=X.get(e);if(n!==void 0)return n}var
|
|
3
|
-
`),
|
|
4
|
-
`),N=p.length-1,
|
|
5
|
-
`+p[N].replace(" at new "," at ");return e.displayName&&
|
|
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,f={key:!0,ref:!0,__self:!0,__source:!0};function d(c,_,h){var v,x={},y=null,w=null;h!==void 0&&(y=""+h),_.key!==void 0&&(y=""+_.key),_.ref!==void 0&&(w=_.ref);for(v in _)i.call(_,v)&&!f.hasOwnProperty(v)&&(x[v]=_[v]);if(c&&c.defaultProps)for(v in _=c.defaultProps,_)x[v]===void 0&&(x[v]=_[v]);return{$$typeof:s,type:c,key:y,ref:w,props:x,_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"),f=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),c=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),E=Symbol.iterator,V="@@iterator";function se(e){if(e===null||typeof e!="object")return null;var r=E&&e[E]||e[V];return typeof r=="function"?r:null}var T=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function $(e){{for(var r=arguments.length,n=new Array(r>1?r-1:0),l=1;l<r;l++)n[l-1]=arguments[l];Ke("error",e,n)}}function Ke(e,r,n){{var l=T.ReactDebugCurrentFrame,b=l.getStackAddendum();b!==""&&(r+="%s",n=n.concat([b]));var g=n.map(function(m){return String(m)});g.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,g)}}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===f||et||e===u||e===h||e===v||Ze||e===w||Ge||Xe||Qe||typeof e=="object"&&e!==null&&(e.$$typeof===y||e.$$typeof===x||e.$$typeof===d||e.$$typeof===c||e.$$typeof===_||e.$$typeof===be||e.getModuleId!==void 0))}function rt(e,r,n){var l=e.displayName;if(l)return l;var b=r.displayName||r.name||"";return b!==""?n+"("+b+")":n}function ge(e){return e.displayName||"Context"}function A(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 f:return"Profiler";case u:return"StrictMode";case h:return"Suspense";case v:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case c:var r=e;return ge(r)+".Consumer";case d:var n=e;return ge(n._context)+".Provider";case _:return rt(e,e.render,"ForwardRef");case x:var l=e.displayName||null;return l!==null?l:A(e.type)||"Memo";case y:{var b=e,g=b._payload,m=b._init;try{return A(m(g))}catch{return null}}}return null}var B=Object.assign,H=0,xe,ye,je,Ne,we,ke,$e;function Ee(){}Ee.__reactDisabledLog=!0;function nt(){{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:B({},e,{value:xe}),info:B({},e,{value:ye}),warn:B({},e,{value:je}),error:B({},e,{value:Ne}),group:B({},e,{value:we}),groupCollapsed:B({},e,{value:ke}),groupEnd:B({},e,{value:$e})})}H<0&&$("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var oe=T.ReactCurrentDispatcher,ie;function G(e,r,n){{if(ie===void 0)try{throw Error()}catch(b){var l=b.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,r){if(!e||ce)return"";{var n=X.get(e);if(n!==void 0)return n}var l;ce=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=oe.current,oe.current=null,nt();try{if(r){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(I){l=I}Reflect.construct(e,[],m)}else{try{m.call()}catch(I){l=I}e.call(m.prototype)}}else{try{throw Error()}catch(I){l=I}e()}}catch(I){if(I&&l&&typeof I.stack=="string"){for(var p=I.stack.split(`
|
|
3
|
+
`),R=l.stack.split(`
|
|
4
|
+
`),N=p.length-1,k=R.length-1;N>=1&&k>=0&&p[N]!==R[k];)k--;for(;N>=1&&k>=0;N--,k--)if(p[N]!==R[k]){if(N!==1||k!==1)do if(N--,k--,k<0||p[N]!==R[k]){var O=`
|
|
5
|
+
`+p[N].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),typeof e=="function"&&X.set(e,O),O}while(N>=1&&k>=0);break}}}finally{ce=!1,oe.current=g,at(),Error.prepareStackTrace=b}var q=e?e.displayName||e.name:"",W=q?G(q):"";return typeof e=="function"&&X.set(e,W),W}function ot(e,r,n){return Re(e,!1)}function it(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function Q(e,r,n){if(e==null)return"";if(typeof e=="function")return Re(e,it(e));if(typeof e=="string")return G(e);switch(e){case h:return G("Suspense");case v:return G("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case _:return ot(e.render);case x:return Q(e.type,r,n);case y:{var l=e,b=l._payload,g=l._init;try{return Q(g(b),r,n)}catch{}}}return""}var z=Object.prototype.hasOwnProperty,Te={},Ie=T.ReactDebugCurrentFrame;function Z(e){if(e){var r=e._owner,n=Q(e.type,e._source,r?r.type:null);Ie.setExtraStackFrame(n)}else Ie.setExtraStackFrame(null)}function ct(e,r,n,l,b){{var g=Function.call.bind(z);for(var m in e)if(g(e,m)){var p=void 0;try{if(typeof e[m]!="function"){var R=Error((l||"React class")+": "+n+" 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 R.name="Invariant Violation",R}p=e[m](r,m,l,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(N){p=N}p&&!(p instanceof Error)&&(Z(b),$("%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",n,m,typeof p),Z(null)),p instanceof Error&&!(p.message in Te)&&(Te[p.message]=!0,Z(b),$("Failed %s type: %s",n,p.message),Z(null))}}}var lt=Array.isArray;function le(e){return lt(e)}function ut(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,n=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}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=T.ReactCurrentOwner,ft={key:!0,ref:!0,__self:!0,__source:!0},Pe,Fe;function _t(e){if(z.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function pt(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function ht(e,r){typeof e.ref=="string"&&Se.current}function mt(e,r){{var n=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)",r))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function vt(e,r){{var n=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)",r))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var bt=function(e,r,n,l,b,g,m){var p={$$typeof:s,type:e,key:r,ref:n,props:m,_owner:g};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:b}),Object.freeze&&(Object.freeze(p.props),Object.freeze(p)),p};function gt(e,r,n,l,b){{var g,m={},p=null,R=null;n!==void 0&&(Ce(n),p=""+n),pt(r)&&(Ce(r.key),p=""+r.key),_t(r)&&(R=r.ref,ht(r,b));for(g in r)z.call(r,g)&&!ft.hasOwnProperty(g)&&(m[g]=r[g]);if(e&&e.defaultProps){var N=e.defaultProps;for(g in N)m[g]===void 0&&(m[g]=N[g])}if(p||R){var k=typeof e=="function"?e.displayName||e.name||"Unknown":e;p&&mt(m,k),R&&vt(m,k)}return bt(e,p,R,b,l,Se.current,m)}}var ue=T.ReactCurrentOwner,Ae=T.ReactDebugCurrentFrame;function M(e){if(e){var r=e._owner,n=Q(e.type,e._source,r?r.type:null);Ae.setExtraStackFrame(n)}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=A(ue.current.type);if(e)return`
|
|
6
6
|
|
|
7
7
|
Check the render method of \``+e+"`."}return""}}function xt(e){return""}var We={};function yt(e){{var r=Be();if(!r){var n=typeof e=="string"?e:e.displayName||e.name;n&&(r=`
|
|
8
8
|
|
|
9
|
-
Check the top-level render call using <`+n+">.")}return r}}function De(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=yt(r);if(We[n])return;We[n]=!0;var
|
|
9
|
+
Check the top-level render call using <`+n+">.")}return r}}function De(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=yt(r);if(We[n])return;We[n]=!0;var l="";e&&e._owner&&e._owner!==ue.current&&(l=" It was passed a child from "+A(e._owner.type)+"."),M(e),$('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,l),M(null)}}function Le(e,r){{if(typeof e!="object")return;if(le(e))for(var n=0;n<e.length;n++){var l=e[n];fe(l)&&De(l,r)}else if(fe(e))e._store&&(e._store.validated=!0);else if(e){var b=se(e);if(typeof b=="function"&&b!==e.entries)for(var g=b.call(e),m;!(m=g.next()).done;)fe(m.value)&&De(m.value,r)}}}function jt(e){{var r=e.type;if(r==null||typeof r=="string")return;var n;if(typeof r=="function")n=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===_||r.$$typeof===x))n=r.propTypes;else return;if(n){var l=A(r);ct(n,e.props,"prop",l,e)}else if(r.PropTypes!==void 0&&!de){de=!0;var b=A(r);$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&$("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Nt(e){{for(var r=Object.keys(e.props),n=0;n<r.length;n++){var l=r[n];if(l!=="children"&&l!=="key"){M(e),$("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",l),M(null);break}}e.ref!==null&&(M(e),$("Invalid attribute `ref` supplied to `React.Fragment`."),M(null))}}var Me={};function qe(e,r,n,l,b,g){{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 R=xt();R?p+=R:p+=Be();var N;e===null?N="null":le(e)?N="array":e!==void 0&&e.$$typeof===s?(N="<"+(A(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 k=gt(e,r,n,b,g);if(k==null)return k;if(m){var O=r.children;if(O!==void 0)if(l)if(le(O)){for(var q=0;q<O.length;q++)Le(O[q],e);Object.freeze&&Object.freeze(O)}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(O,e)}if(z.call(r,"key")){var W=A(e),I=Object.keys(r).filter(function(Tt){return Tt!=="key"}),_e=I.length>0?"{key: someKey, "+I.join(": ..., ")+": ...}":"{key: someKey}";if(!Me[W+_e]){var Rt=I.length>0?"{"+I.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),qe[D+_e]=!0}}return e===c?Nt(w):jt(w),w}}function wt(e,r,n){return Me(e,r,n,!0)}function kt(e,r,n){return Me(e,r,n,!1)}var $t=kt,Et=wt;K.Fragment=c,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",qt="_quote_1fboo_37",Mt="_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:qt,author:Mt,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 i=1;i<=He;i+=1){const h=`feedbackTestimonial${i}`,f=a(h);if(!f||f===h)continue;const v=`feedbackAuthor${i}`,b=(()=>{const k=a(v);return k&&k!==v?k:a("guest")})(),j=`feedbackAuthor${i}AvatarUrl`,R=(()=>{const k=a(j);return k&&k!==j?k:void 0})();s.set(i,{quote:f,authorName:b,authorAvatarUrl:R,rating:5})}const o=[],c=[];for(let i=1;i<=He;i+=1)i>=9?c.push(i):o.push(i);const l=[];let _=0,d=0;for(;_<o.length||d<c.length;){if(d<c.length){const i=c[d++],h=s.get(i);h&&l.push(h)}if(_<o.length){const i=o[_++],h=s.get(i);h&&l.push(h)}}return l}function tr({t:a,testimonials:s,initialVisible:o=Zt,readMoreHref:c,onReadMore:l,className:_=""}){const d=P.useMemo(()=>s??er(a),[s,a]),[i,h]=P.useState(!1),f=d.length>o,v=f&&!i?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((F,A)=>t.jsxs("li",{className:y.card,children:[t.jsx("p",{className:y.quote,children:F.quote}),t.jsxs("div",{className:y.author,children:[F.authorAvatarUrl?t.jsx("img",{src:F.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:F.authorName}),t.jsx("span",{className:y.stars,"aria-hidden":!0,children:"★".repeat(F.rating??5)})]})]})]},A))}),f&&t.jsx("div",{className:y.readMoreWrap,children:t.jsxs("button",{type:"button",className:y.toggleBtn,onClick:()=>{i||l?.(),h(F=>!F)},"aria-expanded":i,children:[i?se:k,t.jsx("span",{className:y.arrow,"aria-hidden":!0,children:"›"})]})}),(c||l)&&!f&&t.jsx("div",{className:y.readMoreWrap,children:c?t.jsxs("a",{href:c,className:y.readMore,target:"_blank",rel:"noopener noreferrer",onClick:()=>l?.(),children:[k,t.jsx("span",{className:y.arrow,"aria-hidden":!0,children:"›"})]}):t.jsxs("button",{type:"button",className:y.readMore,onClick:()=>l?.(),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:c=0,onItemOpen:l,className:_=""}){const d=P.useMemo(()=>s.map(({qKey:v,aKey:b})=>({question:a(v),answer:a(o?o(b):b)})),[a,s,o]),[i,h]=P.useState(c),f=a("faqTitle");return t.jsxs("section",{className:`${C.section} ${_}`,"aria-labelledby":"faq-heading",children:[t.jsx("h2",{id:"faq-heading",className:C.heading,children:f}),t.jsx("div",{className:C.accordion,role:"list",children:d.map((v,b)=>{const j=i===b;return t.jsxs("div",{className:`${C.item} ${j?C.itemOpen:""}`,role:"listitem",children:[t.jsxs("button",{type:"button",className:C.question,onClick:()=>{const R=!j;h(j?-1:b),R&&l?.(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:`${C.chevron} ${j?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-${b}`,role:"region","aria-labelledby":`faq-question-${b}`,className:`${C.answerWrap} ${j?C.answerOpen:""}`,hidden:!j,children:t.jsx("p",{className:C.answer,children:v.answer})})]},b)})})]})}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:c=!0,className:l=""}){const _=c&&o!=null,d=a("sriMandir"),i=a("ratingText");return t.jsxs("header",{className:`${S.header} ${l}`,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}),i!=null&&i!==""&&t.jsxs("span",{className:S.rating,children:[t.jsx("span",{className:S.stars,"aria-hidden":!0,children:"★"}),i]})]})]}),_&&t.jsx("div",{className:S.langSlot,children:o})]})}const kr="_wrap_1vbpd_1",$r="_card_1vbpd_5",Er="_cardInner_1vbpd_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:c="Back",className:l=""}){return t.jsx("header",{className:`${L.header} ${l}`,children:t.jsxs("div",{className:L.left,children:[o!=null&&t.jsx("button",{type:"button",className:L.backBtn,onClick:o,"aria-label":c,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},qr="https://srm-cdn.a4b.io/yoda/1770707793537.svg";function Mr({text:a,iconUrl:s=qr,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:c,infoTooltip:l,infoAriaLabel:_="Info",infoIconUrl:d=en,children:i,className:h=""}){const[f,v]=P.useState(!1);return P.useEffect(()=>{if(!l)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)}},[l]),t.jsxs("div",{className:`${O.field} ${h}`,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:"*"})]}),l!=null&&l!==""&&t.jsxs("div",{className:O.infoWrap,"data-info-tooltip":!0,children:[t.jsx("button",{type:"button",className:O.infoBtn,"aria-label":_,"aria-expanded":f,onClick:()=>v(b=>!b),children:t.jsx("img",{className:O.infoImg,src:d,alt:"","aria-hidden":!0})}),f&&t.jsxs("div",{className:O.tooltip,role:"tooltip",children:[l,t.jsx("span",{className:O.tooltipArrow,"aria-hidden":!0})]})]})]}),c!=null&&c!==""&&t.jsx("div",{className:O.help,children:c}),t.jsx("div",{className:O.inputWrap,children:i})]})}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:c=!1,onIconClick:l,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:c?`${Y.iconBtn} ${Y.iconBtnInteractive}`:Y.iconBtn,"aria-label":o||void 0,onClick:c?l:void 0,tabIndex:c?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:c,className:l="",..._}){const d=P.useRef(null),i=P.useMemo(()=>{const f=new Date,v=b=>String(b).padStart(2,"0");return`${f.getFullYear()}-${v(f.getMonth()+1)}-${v(f.getDate())}`},[]),h=()=>{if(c){c();return}const f=d.current;f&&typeof f.showPicker=="function"?f.showPicker():f?.focus()};return t.jsxs("div",{className:`${te.wrap} ${l}`,children:[t.jsx("input",{..._,ref:d,id:a,type:"date",className:te.input,value:s,max:i,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:_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:c="HH:MM AM",disabled:l=!1,onIconClick:_,className:d=""}){return t.jsxs("div",{className:`${re.wrap} ${d}`,children:[t.jsx("input",{id:a,type:"time",className:re.input,value:s,onChange:i=>o(i.target.value),placeholder:c,disabled:l,onClick:()=>!l&&_?.()}),t.jsx("button",{type:"button",className:re.iconBtn,"aria-label":"Open time picker",disabled:l,onClick:i=>{i.preventDefault(),l||_?.()},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="",...c}){return t.jsxs("div",{className:`${ne.wrap} ${o}`,children:[t.jsx("input",{...c,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:c,className:l=""}){return t.jsx("div",{className:`${me.segmented} ${l}`,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:()=>c(_.value),children:_.label},_.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:c,className:l=""}){const _=d=>{o.includes(d)?c(o.filter(i=>i!==d)):c([...o,d])};return t.jsx("div",{className:`${ve.pillsWrap} ${l}`,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 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:c,helpText:l,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:[c,l!=null&&l!==""&&t.jsx("span",{className:ae.checkboxHelp,children:l})]})]})}const Ln="_footerNote_laev3_1",qn={footerNote:Ln};function Mn({children:a,className:s=""}){return t.jsx("p",{className:`${qn.footerNote} ${s}`,children:a})}const Un="_footer_1r53u_1",Yn="_inner_1r53u_8",Vn="_badges_1r53u_12",Hn="_marqueeContent_1r53u_20",zn="_badge_1r53u_12",Jn="_badgeIcon_1r53u_35",Kn="_ctaWrap_1r53u_39",Gn="_ctaStruck_1r53u_43",Xn="_ctaButton_1r53u_49",Qn="_offerRow_1r53u_69",Zn="_pill_1r53u_76",ea="_ctaStatic_1r53u_85",q={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:`${q.footer} ${o}`,role:"contentinfo",children:t.jsxs("div",{className:q.inner,children:[a!=null&&t.jsx("div",{className:q.badges,"aria-hidden":!0,children:a}),t.jsx("div",{className:q.ctaWrap,children:s})]})})}function ra({children:a,href:s,disabled:o=!1,onClick:c,static:l=!1,className:_="","aria-label":d}){const i=`${q.ctaButton} ${_}`.trim(),h=`${q.ctaStatic} ${_}`.trim(),f=d!=null?{"aria-label":d}:{};return l?t.jsx("div",{className:h,role:"presentation",children:a}):s!=null?t.jsx("a",{href:s,className:i,target:"_blank",rel:"noopener noreferrer","aria-disabled":o,onClick:v=>o&&v.preventDefault(),...f,children:a}):t.jsx("button",{type:"button",className:i,disabled:o,onClick:c,...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:c,className:l=""}){return t.jsxs("section",{className:`${V.section} ${l}`,"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:c})]})]})}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=Mn;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=Mr;exports.UserReviewsSection=tr;exports.footerShellStyles=q;
|
|
14
|
+
<%s key={someKey} {...props} />`,_e,W,Rt,W),Me[W+_e]=!0}}return e===i?Nt(k):jt(k),k}}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 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",j={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 _=`feedbackTestimonial${c}`,h=a(_);if(!h||h===_)continue;const v=`feedbackAuthor${c}`,x=(()=>{const E=a(v);return E&&E!==v?E:a("guest")})(),y=`feedbackAuthor${c}AvatarUrl`,w=(()=>{const E=a(y);return E&&E!==y?E:void 0})();s.set(c,{quote:h,authorName:x,authorAvatarUrl:w,rating:5})}const o=[],i=[];for(let c=1;c<=He;c+=1)c>=9?i.push(c):o.push(c);const u=[];let f=0,d=0;for(;f<o.length||d<i.length;){if(d<i.length){const c=i[d++],_=s.get(c);_&&u.push(_)}if(f<o.length){const c=o[f++],_=s.get(c);_&&u.push(_)}}return u}function tr({t:a,testimonials:s,initialVisible:o=Zt,readMoreHref:i,onReadMore:u,className:f="",headingClassName:d}){const c=s??F.useMemo(()=>er(a),[a]),[_,h]=F.useState(!1),v=c.length>o,x=v&&!_?c.slice(0,o):c,y=a("feedbackTitle"),w=a("feedbackRating"),E=a("feedbackTrust"),V=a("readMoreReviews"),se=a("readLess");return t.jsxs("section",{className:`${j.section} ${f}`,"aria-labelledby":"reviews-heading",children:[t.jsx("h2",{id:"reviews-heading",className:[j.heading,d].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:w}),t.jsx("span",{className:j.dot,"aria-hidden":!0}),t.jsx("span",{className:j.trustText,children:E})]}),t.jsx("ul",{className:j.cardList,children:x.map((T,$)=>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)})]})]})]},$))}),v&&t.jsx("div",{className:j.readMoreWrap,children:t.jsxs("button",{type:"button",className:j.toggleBtn,onClick:()=>h(T=>!T),"aria-expanded":_,children:[_?se:V,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:[V,t.jsx("span",{className:j.arrow,"aria-hidden":!0,children:"›"})]}):t.jsxs("button",{type:"button",className:j.readMore,onClick:()=>u?.(),children:[V,t.jsx("span",{className:j.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,onItemOpen:u,className:f="",headingClassName:d}){const c=F.useMemo(()=>s.map(({qKey:x,aKey:y})=>({question:a(x),answer:a(o?o(y):y)})),[a,s,o]),[_,h]=F.useState(i),v=a("faqTitle");return t.jsxs("section",{className:`${C.section} ${f}`,"aria-labelledby":"faq-heading",children:[t.jsx("h2",{id:"faq-heading",className:[C.heading,d].filter(Boolean).join(" "),children:v}),t.jsx("div",{className:C.accordion,role:"list",children:c.map((x,y)=>{const w=_===y;return t.jsxs("div",{className:`${C.item} ${w?C.itemOpen:""}`,role:"listitem",children:[t.jsxs("button",{type:"button",className:C.question,onClick:()=>{const E=!w;h(w?-1:y),E&&u?.(x.question)},"aria-expanded":w,"aria-controls":`faq-answer-${y}`,id:`faq-question-${y}`,children:[t.jsx("span",{children:x.question}),t.jsx("span",{className:`${C.chevron} ${w?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} ${w?C.answerOpen:""}`,hidden:!w,children:t.jsx("p",{className:C.answer,children:x.answer})})]},y)})})]})}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",P={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 f=i&&o!=null,d=a("sriMandir"),c=a("ratingText");return t.jsxs("header",{className:`${P.header} ${u}`,children:[t.jsxs("div",{className:P.brand,children:[t.jsx("div",{className:P.logo,children:s?t.jsx("img",{src:s,alt:d,className:P.logoImg}):t.jsx("div",{className:P.logoPlaceholder,"aria-hidden":!0})}),t.jsxs("div",{className:P.brandText,children:[t.jsx("span",{className:P.brandName,children:d}),c!=null&&c!==""&&t.jsxs("span",{className:P.rating,children:[t.jsx("span",{className:P.stars,"aria-hidden":!0,children:"★"}),c]})]})]}),f&&t.jsx("div",{className:P.langSlot,children:o})]})}const kr="_wrap_1vbpd_1",$r="_card_1vbpd_5",Er="_cardInner_1vbpd_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",Or="_backBtn_a05ni_11",Cr="_titleWrap_a05ni_21",Sr="_title_a05ni_21",Pr="_subtitle_a05ni_31",Fr="_backIcon_a05ni_37",D={header:Tr,left:Ir,backBtn:Or,titleWrap:Cr,title:Sr,subtitle:Pr,backIcon:Fr},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:s,onBack:o,backAriaLabel:i="Back",className:u=""}){return t.jsx("header",{className:`${D.header} ${u}`,children:t.jsxs("div",{className:D.left,children:[o!=null&&t.jsx("button",{type:"button",className:D.backBtn,onClick:o,"aria-label":i,children:t.jsx(Ar,{})}),t.jsxs("div",{className:D.titleWrap,children:[t.jsx("h1",{className:D.title,children:a}),s!=null&&s!==""&&t.jsx("p",{className:D.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",S={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:f="Info",infoIconUrl:d=en,children:c,className:_=""}){const[h,v]=F.useState(!1);return F.useEffect(()=>{if(!u)return;const x=w=>{w.target?.closest?.("[data-info-tooltip]")==null&&v(!1)},y=w=>{w.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} ${_}`,children:[t.jsxs("div",{className:S.labelRow,children:[t.jsxs("label",{className:S.label,htmlFor:s,children:[a,o&&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":f,"aria-expanded":h,onClick:()=>v(x=>!x),children:t.jsx("img",{className:S.infoImg,src:d,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 rn="_wrap_9tsug_1",nn="_input_9tsug_5",an="_iconBtn_9tsug_21",sn="_iconBtnInteractive_9tsug_25",on="_iconImg_9tsug_39",U={wrap:rn,input:nn,iconBtn:an,iconBtnInteractive:sn,iconImg:on};function cn({id:a,iconUrl:s,iconAlt:o="",iconInteractive:i=!1,onIconClick:u,className:f="",...d}){return t.jsxs("div",{className:`${U.wrap} ${f}`,children:[t.jsx("input",{...d,id:a,className:U.input,type:d.type??"text"}),s!=null&&t.jsx("button",{type:"button",className:i?`${U.iconBtn} ${U.iconBtnInteractive}`:U.iconBtn,"aria-label":o||void 0,onClick:i?u:void 0,tabIndex:i?0:-1,children:t.jsx("img",{className:U.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="",...f}){const d=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())}`},[]),_=()=>{if(i){i();return}const h=d.current;h&&typeof h.showPicker=="function"?h.showPicker():h?.focus()};return t.jsxs("div",{className:`${te.wrap} ${u}`,children:[t.jsx("input",{...f,ref:d,id:a,type:"date",className:te.input,value:s,max:c,onChange:h=>o(h.target.value)}),t.jsx("button",{type:"button",className:`${te.iconBtn}`,"aria-label":"Open date picker",onMouseDown:h=>h.preventDefault(),onClick:h=>{h.preventDefault(),_()},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:f,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&&f?.()}),t.jsx("button",{type:"button",className:re.iconBtn,"aria-label":"Open time picker",disabled:u,onClick:c=>{c.preventDefault(),u||f?.()},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(f=>t.jsx("button",{type:"button",id:f.value===o?a:void 0,className:`${me.segmentedOption} ${f.value===o?me.active:""}`,onClick:()=>i(f.value),children:f.label},f.value))})}const On="_pillsWrap_l8u3p_1",Cn="_pill_l8u3p_1",Sn="_selected_l8u3p_16",ve={pillsWrap:On,pill:Cn,selected:Sn};function Pn({id:a,options:s,selected:o,onChange:i,className:u=""}){const f=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:()=>f(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:f=""}){return t.jsxs("div",{className:`${ae.checkboxRow} ${f}`,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_1r53u_1",Yn="_inner_1r53u_8",Vn="_badges_1r53u_12",Hn="_marqueeContent_1r53u_20",zn="_badge_1r53u_12",Jn="_badgeIcon_1r53u_35",Kn="_ctaWrap_1r53u_39",Gn="_ctaStruck_1r53u_43",Xn="_ctaButton_1r53u_49",Qn="_offerRow_1r53u_69",Zn="_pill_1r53u_76",ea="_ctaStatic_1r53u_85",L={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:`${L.footer} ${o}`,role:"contentinfo",children:t.jsxs("div",{className:L.inner,children:[a!=null&&t.jsx("div",{className:L.badges,"aria-hidden":!0,children:a}),t.jsx("div",{className:L.ctaWrap,children:s})]})})}function ra({children:a,href:s,disabled:o=!1,onClick:i,static:u=!1,className:f="","aria-label":d}){const c=`${L.ctaButton} ${f}`.trim(),_=`${L.ctaStatic} ${f}`.trim(),h=d!=null?{"aria-label":d}:{};return u?t.jsx("div",{className:_,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(),...h,children:a}):t.jsx("button",{type:"button",className:c,disabled:o,onClick:i,...h,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",Y={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:`${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:s}),t.jsx("p",{className:Y.line,children:o}),t.jsx("p",{className:Y.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=L;
|
|
15
15
|
//# sourceMappingURL=index.cjs.map
|