@srimandir/astrology-common 1.0.38 → 1.0.40
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/PageHeader/PageHeader.d.ts +11 -1
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +415 -402
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
/** Minimal image component props for optional optimized logo (e.g. next/image). */
|
|
3
|
+
export interface PageHeaderImageProps {
|
|
4
|
+
src: string;
|
|
5
|
+
alt: string;
|
|
6
|
+
width?: number;
|
|
7
|
+
height?: number;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
2
10
|
export interface PageHeaderProps {
|
|
3
11
|
/** Translation function; uses keys: sriMandir, ratingText */
|
|
4
12
|
t: (key: string) => string;
|
|
5
13
|
/** Logo image URL; if not set, a placeholder is shown */
|
|
6
14
|
logoUrl?: string;
|
|
15
|
+
/** Optional image component for logo (e.g. next/image adapter) */
|
|
16
|
+
imageComponent?: React.ComponentType<PageHeaderImageProps>;
|
|
7
17
|
/** Optional slot for language selector or other header actions */
|
|
8
18
|
languageSelector?: ReactNode;
|
|
9
19
|
/** Whether to show the languageSelector slot */
|
|
10
20
|
showLanguageSelector?: boolean;
|
|
11
21
|
className?: string;
|
|
12
22
|
}
|
|
13
|
-
export declare function PageHeader({ t, logoUrl, languageSelector, showLanguageSelector, className, }: PageHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare function PageHeader({ t, logoUrl, imageComponent: ImageComponent, languageSelector, showLanguageSelector, className, }: PageHeaderProps): 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
|
|
2
|
-
`+ie+e}}var ce=!1,X;{var
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("react");var ee={exports:{}},J={};var Ue;function Ct(){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 f(c,d,h){var v,x={},y=null,w=null;h!==void 0&&(y=""+h),d.key!==void 0&&(y=""+d.key),d.ref!==void 0&&(w=d.ref);for(v in d)i.call(d,v)&&!_.hasOwnProperty(v)&&(x[v]=d[v]);if(c&&c.defaultProps)for(v in d=c.defaultProps,d)x[v]===void 0&&(x[v]=d[v]);return{$$typeof:s,type:c,key:y,ref:w,props:x,_owner:u.current}}return J.Fragment=o,J.jsx=f,J.jsxs=f,J}var G={};var Ye;function St(){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"),f=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=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,H="@@iterator";function se(e){if(e===null||typeof e!="object")return null;var r=E&&e[E]||e[H];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];Xe("error",e,n)}}function Xe(e,r,n){{var l=T.ReactDebugCurrentFrame,g=l.getStackAddendum();g!==""&&(r+="%s",n=n.concat([g]));var b=n.map(function(m){return String(m)});b.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,b)}}var Qe=!1,Ze=!1,et=!1,tt=!1,rt=!1,ge;ge=Symbol.for("react.module.reference");function nt(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===_||rt||e===u||e===h||e===v||tt||e===w||Qe||Ze||et||typeof e=="object"&&e!==null&&(e.$$typeof===y||e.$$typeof===x||e.$$typeof===f||e.$$typeof===c||e.$$typeof===d||e.$$typeof===ge||e.getModuleId!==void 0))}function at(e,r,n){var l=e.displayName;if(l)return l;var g=r.displayName||r.name||"";return g!==""?n+"("+g+")":n}function be(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 _: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 be(r)+".Consumer";case f:var n=e;return be(n._context)+".Provider";case d:return at(e,e.render,"ForwardRef");case x:var l=e.displayName||null;return l!==null?l:A(e.type)||"Memo";case y:{var g=e,b=g._payload,m=g._init;try{return A(m(b))}catch{return null}}}return null}var B=Object.assign,V=0,xe,ye,je,Ne,we,ke,$e;function Ee(){}Ee.__reactDisabledLog=!0;function st(){{if(V===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})}V++}}function ot(){{if(V--,V===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})})}V<0&&$("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var oe=T.ReactCurrentDispatcher,ie;function K(e,r,n){{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 it=typeof WeakMap=="function"?WeakMap:Map;X=new it}function Re(e,r){if(!e||ce)return"";{var n=X.get(e);if(n!==void 0)return n}var l;ce=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var b;b=oe.current,oe.current=null,st();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
3
|
`),R=l.stack.split(`
|
|
4
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=
|
|
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=b,ot(),Error.prepareStackTrace=g}var q=e?e.displayName||e.name:"",D=q?K(q):"";return typeof e=="function"&&X.set(e,D),D}function ct(e,r,n){return Re(e,!1)}function lt(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,lt(e));if(typeof e=="string")return K(e);switch(e){case h:return K("Suspense");case v:return K("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return ct(e.render);case x:return Q(e.type,r,n);case y:{var l=e,g=l._payload,b=l._init;try{return Q(b(g),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 ut(e,r,n,l,g){{var b=Function.call.bind(z);for(var m in e)if(b(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(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",n,m,typeof p),Z(null)),p instanceof Error&&!(p.message in Te)&&(Te[p.message]=!0,Z(g),$("Failed %s type: %s",n,p.message),Z(null))}}}var dt=Array.isArray;function le(e){return dt(e)}function ft(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,n=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function _t(e){try{return Oe(e),!1}catch{return!0}}function Oe(e){return""+e}function Ce(e){if(_t(e))return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ft(e)),Oe(e)}var Se=T.ReactCurrentOwner,pt={key:!0,ref:!0,__self:!0,__source:!0},Pe,Fe;function ht(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 mt(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 vt(e,r){typeof e.ref=="string"&&Se.current}function gt(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 bt(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 xt=function(e,r,n,l,g,b,m){var p={$$typeof:s,type:e,key:r,ref:n,props:m,_owner:b};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 yt(e,r,n,l,g){{var b,m={},p=null,R=null;n!==void 0&&(Ce(n),p=""+n),mt(r)&&(Ce(r.key),p=""+r.key),ht(r)&&(R=r.ref,vt(r,g));for(b in r)z.call(r,b)&&!pt.hasOwnProperty(b)&&(m[b]=r[b]);if(e&&e.defaultProps){var N=e.defaultProps;for(b in N)m[b]===void 0&&(m[b]=N[b])}if(p||R){var k=typeof e=="function"?e.displayName||e.name||"Unknown":e;p&>(m,k),R&&bt(m,k)}return xt(e,p,R,g,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
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
7
|
+
Check the render method of \``+e+"`."}return""}}function jt(e){return""}var De={};function Nt(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
|
|
9
|
+
Check the top-level render call using <`+n+">.")}return r}}function We(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=Nt(r);if(De[n])return;De[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)&&We(l,r)}else if(fe(e))e._store&&(e._store.validated=!0);else if(e){var g=se(e);if(typeof g=="function"&&g!==e.entries)for(var b=g.call(e),m;!(m=b.next()).done;)fe(m.value)&&We(m.value,r)}}}function wt(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===d||r.$$typeof===x))n=r.propTypes;else return;if(n){var l=A(r);ut(n,e.props,"prop",l,e)}else if(r.PropTypes!==void 0&&!de){de=!0;var g=A(r);$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"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 kt(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,g,b){{var m=nt(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=jt();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=yt(e,r,n,g,b);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 D=A(e),I=Object.keys(r).filter(function(Ot){return Ot!=="key"}),_e=I.length>0?"{key: someKey, "+I.join(": ..., ")+": ...}":"{key: someKey}";if(!Me[D+_e]){var It=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,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;
|
|
14
|
+
<%s key={someKey} {...props} />`,_e,D,It,D),Me[D+_e]=!0}}return e===i?kt(k):wt(k),k}}function $t(e,r,n){return qe(e,r,n,!0)}function Et(e,r,n){return qe(e,r,n,!1)}var Rt=Et,Tt=$t;G.Fragment=i,G.jsx=Rt,G.jsxs=Tt})()),G}var He;function Pt(){return He||(He=1,process.env.NODE_ENV==="production"?ee.exports=Ct():ee.exports=St()),ee.exports}var t=Pt();const Ft="_section_1fboo_1",At="_heading_1fboo_5",Bt="_trustLine_1fboo_9",Dt="_star_1fboo_13",Wt="_ratingNum_1fboo_17",Lt="_trustText_1fboo_21",Mt="_cardList_1fboo_25",qt="_card_1fboo_25",Ut="_quote_1fboo_37",Yt="_author_1fboo_41",Ht="_avatar_1fboo_45",Vt="_avatarPlaceholder_1fboo_49",zt="_authorInfo_1fboo_54",Jt="_authorName_1fboo_58",Gt="_stars_1fboo_62",Kt="_readMoreWrap_1fboo_66",Xt="_toggleBtn_1fboo_70",Qt="_readMore_1fboo_66",Zt="_arrow_1fboo_89",er="_dot_1fboo_93",j={section:Ft,heading:At,trustLine:Bt,star:Dt,ratingNum:Wt,trustText:Lt,cardList:Mt,card:qt,quote:Ut,author:Yt,avatar:Ht,avatarPlaceholder:Vt,authorInfo:zt,authorName:Jt,stars:Gt,readMoreWrap:Kt,toggleBtn:Xt,readMore:Qt,arrow:Zt,dot:er},tr=3,Ve=15;function rr(a){const s=new Map;for(let c=1;c<=Ve;c+=1){const d=`feedbackTestimonial${c}`,h=a(d);if(!h||h===d)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<=Ve;c+=1)c>=9?i.push(c):o.push(c);const u=[];let _=0,f=0;for(;_<o.length||f<i.length;){if(f<i.length){const c=i[f++],d=s.get(c);d&&u.push(d)}if(_<o.length){const c=o[_++],d=s.get(c);d&&u.push(d)}}return u}function nr({t:a,testimonials:s,initialVisible:o=tr,readMoreHref:i,onReadMore:u,className:_="",headingClassName:f}){const c=s??F.useMemo(()=>rr(a),[a]),[d,h]=F.useState(!1),v=c.length>o,x=v&&!d?c.slice(0,o):c,y=a("feedbackTitle"),w=a("feedbackRating"),E=a("feedbackTrust"),H=a("readMoreReviews"),se=a("readLess");return t.jsxs("section",{className:`${j.section} ${_}`,"aria-labelledby":"reviews-heading",children:[t.jsx("h2",{id:"reviews-heading",className:[j.heading,f].filter(Boolean).join(" "),children:y}),t.jsxs("p",{className:j.trustLine,children:[t.jsx("span",{className:j.star,"aria-hidden":!0,children:"★"}),t.jsx("span",{className:j.ratingNum,children: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":d,children:[d?se:H,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:[H,t.jsx("span",{className:j.arrow,"aria-hidden":!0,children:"›"})]}):t.jsxs("button",{type:"button",className:j.readMore,onClick:()=>u?.(),children:[H,t.jsx("span",{className:j.arrow,"aria-hidden":!0,children:"›"})]})})]})}const ar="_section_4dc65_1",sr="_heading_4dc65_5",or="_accordion_4dc65_9",ir="_item_4dc65_13",cr="_itemOpen_4dc65_17",lr="_question_4dc65_22",ur="_chevron_4dc65_30",dr="_chevronOpen_4dc65_34",fr="_answerWrap_4dc65_38",_r="_answerOpen_4dc65_42",pr="_answer_4dc65_38",C={section:ar,heading:sr,accordion:or,item:ir,itemOpen:cr,question:lr,chevron:ur,chevronOpen:dr,answerWrap:fr,answerOpen:_r,answer:pr};function hr({t:a,items:s,resolveAnswerKey:o,defaultOpenIndex:i=0,onItemOpen:u,className:_="",headingClassName:f}){const c=F.useMemo(()=>s.map(({qKey:x,aKey:y})=>({question:a(x),answer:a(o?o(y):y)})),[a,s,o]),[d,h]=F.useState(i),v=a("faqTitle");return t.jsxs("section",{className:`${C.section} ${_}`,"aria-labelledby":"faq-heading",children:[t.jsx("h2",{id:"faq-heading",className:[C.heading,f].filter(Boolean).join(" "),children:v}),t.jsx("div",{className:C.accordion,role:"list",children:c.map((x,y)=>{const w=d===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 mr="_header_dbx4y_1",vr="_brand_dbx4y_7",gr="_logo_dbx4y_11",br="_logoImg_dbx4y_15",xr="_logoPlaceholder_dbx4y_21",yr="_brandText_dbx4y_29",jr="_brandName_dbx4y_33",Nr="_rating_dbx4y_38",wr="_stars_dbx4y_44",kr="_langSlot_dbx4y_49",S={header:mr,brand:vr,logo:gr,logoImg:br,logoPlaceholder:xr,brandText:yr,brandName:jr,rating:Nr,stars:wr,langSlot:kr},ze=120,Je=40;function $r({t:a,logoUrl:s,imageComponent:o,languageSelector:i,showLanguageSelector:u=!0,className:_=""}){const f=u&&i!=null,c=a("sriMandir"),d=a("ratingText");return t.jsxs("header",{className:`${S.header} ${_}`,children:[t.jsxs("div",{className:S.brand,children:[t.jsx("div",{className:S.logo,children:s?o?t.jsx(o,{src:s,alt:c,className:S.logoImg,width:ze,height:Je}):t.jsx("img",{src:s,alt:c,className:S.logoImg,width:ze,height:Je,decoding:"async"}):t.jsx("div",{className:S.logoPlaceholder,"aria-hidden":!0})}),t.jsxs("div",{className:S.brandText,children:[t.jsx("span",{className:S.brandName,children:c}),d!=null&&d!==""&&t.jsxs("span",{className:S.rating,children:[t.jsx("span",{className:S.stars,"aria-hidden":!0,children:"★"}),d]})]})]}),f&&t.jsx("div",{className:S.langSlot,children:i})]})}const Er="_wrap_1vbpd_1",Rr="_card_1vbpd_5",Tr="_cardInner_1vbpd_10",pe={wrap:Er,card:Rr,cardInner:Tr};function Ir({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 Or="_header_a05ni_1",Cr="_left_a05ni_7",Sr="_backBtn_a05ni_11",Pr="_titleWrap_a05ni_21",Fr="_title_a05ni_21",Ar="_subtitle_a05ni_31",Br="_backIcon_a05ni_37",W={header:Or,left:Cr,backBtn:Sr,titleWrap:Pr,title:Fr,subtitle:Ar,backIcon:Br},Dr=()=>t.jsx("svg",{className:W.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 Wr({title:a,subtitle:s,onBack:o,backAriaLabel:i="Back",className:u=""}){return t.jsx("header",{className:`${W.header} ${u}`,children:t.jsxs("div",{className:W.left,children:[o!=null&&t.jsx("button",{type:"button",className:W.backBtn,onClick:o,"aria-label":i,children:t.jsx(Dr,{})}),t.jsxs("div",{className:W.titleWrap,children:[t.jsx("h1",{className:W.title,children:a}),s!=null&&s!==""&&t.jsx("p",{className:W.subtitle,children:s})]})]})})}const Lr="_banner_1jco0_1",Mr="_icon_1jco0_12",qr="_text_1jco0_16",he={banner:Lr,icon:Mr,text:qr},Ur="https://srm-cdn.a4b.io/yoda/1770707793537.svg";function Yr({text:a,iconUrl:s=Ur,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 Hr="_field_1kmsy_1",Vr="_labelRow_1kmsy_5",zr="_label_1kmsy_5",Jr="_req_1kmsy_13",Gr="_help_1kmsy_17",Kr="_infoBtn_1kmsy_21",Xr="_infoImg_1kmsy_29",Qr="_infoWrap_1kmsy_33",Zr="_tooltip_1kmsy_37",en="_tooltipArrow_1kmsy_44",tn="_inputWrap_1kmsy_49",P={field:Hr,labelRow:Vr,label:zr,req:Jr,help:Gr,infoBtn:Kr,infoImg:Xr,infoWrap:Qr,tooltip:Zr,tooltipArrow:en,inputWrap:tn},rn="https://srm-cdn.a4b.io/yoda/1770372066357.svg";function nn({label:a,id:s,required:o=!1,help:i,infoTooltip:u,infoAriaLabel:_="Info",infoIconUrl:f=rn,children:c,className:d=""}){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:`${P.field} ${d}`,children:[t.jsxs("div",{className:P.labelRow,children:[t.jsxs("label",{className:P.label,htmlFor:s,children:[a,o&&t.jsx("span",{className:P.req,children:"*"})]}),u!=null&&u!==""&&t.jsxs("div",{className:P.infoWrap,"data-info-tooltip":!0,children:[t.jsx("button",{type:"button",className:P.infoBtn,"aria-label":_,"aria-expanded":h,onClick:()=>v(x=>!x),children:t.jsx("img",{className:P.infoImg,src:f,alt:"","aria-hidden":!0})}),h&&t.jsxs("div",{className:P.tooltip,role:"tooltip",children:[u,t.jsx("span",{className:P.tooltipArrow,"aria-hidden":!0})]})]})]}),i!=null&&i!==""&&t.jsx("div",{className:P.help,children:i}),t.jsx("div",{className:P.inputWrap,children:c})]})}const an="_wrap_9tsug_1",sn="_input_9tsug_5",on="_iconBtn_9tsug_21",cn="_iconBtnInteractive_9tsug_25",ln="_iconImg_9tsug_39",U={wrap:an,input:sn,iconBtn:on,iconBtnInteractive:cn,iconImg:ln};function un({id:a,iconUrl:s,iconAlt:o="",iconInteractive:i=!1,onIconClick:u,className:_="",...f}){return t.jsxs("div",{className:`${U.wrap} ${_}`,children:[t.jsx("input",{...f,id:a,className:U.input,type:f.type??"text"}),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 dn="_wrap_pkduc_1",fn="_input_pkduc_5",_n="_iconBtn_pkduc_28",pn="_iconImg_pkduc_42",te={wrap:dn,input:fn,iconBtn:_n,iconImg:pn},hn="https://srm-cdn.a4b.io/yoda/1770372045894.svg";function mn({id:a,value:s,onChange:o,onIconClick:i,className:u="",..._}){const f=F.useRef(null),c=F.useMemo(()=>{const h=new Date,v=x=>String(x).padStart(2,"0");return`${h.getFullYear()}-${v(h.getMonth()+1)}-${v(h.getDate())}`},[]),d=()=>{if(i){i();return}const h=f.current;h&&typeof h.showPicker=="function"?h.showPicker():h?.focus()};return t.jsxs("div",{className:`${te.wrap} ${u}`,children:[t.jsx("input",{..._,ref:f,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(),d()},children:t.jsx("img",{className:te.iconImg,src:hn,alt:"","aria-hidden":!0,width:22,height:22})})]})}const vn="_wrap_n0xus_1",gn="_input_n0xus_5",bn="_iconBtn_n0xus_34",xn="_iconImg_n0xus_48",re={wrap:vn,input:gn,iconBtn:bn,iconImg:xn},yn="https://srm-cdn.a4b.io/yoda/1770372014782.svg";function jn({id:a,value:s,onChange:o,placeholder:i="HH:MM AM",disabled:u=!1,onIconClick:_,className:f=""}){return t.jsxs("div",{className:`${re.wrap} ${f}`,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&&_?.()}),t.jsx("button",{type:"button",className:re.iconBtn,"aria-label":"Open time picker",disabled:u,onClick:c=>{c.preventDefault(),u||_?.()},children:t.jsx("img",{className:re.iconImg,src:yn,alt:"","aria-hidden":!0,width:22,height:22})})]})}const Nn="_wrap_1czki_1",wn="_input_1czki_5",kn="_iconBtn_1czki_21",$n="_iconImg_1czki_25",ne={wrap:Nn,input:wn,iconBtn:kn,iconImg:$n},En="https://srm-cdn.a4b.io/yoda/1770372031092.svg";function Rn({id:a,iconUrl:s=En,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 Tn="_segmented_55mcr_1",In="_segmentedOption_55mcr_6",On="_active_55mcr_14",me={segmented:Tn,segmentedOption:In,active:On};function Cn({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 Sn="_pillsWrap_l8u3p_1",Pn="_pill_l8u3p_1",Fn="_selected_l8u3p_16",ve={pillsWrap:Sn,pill:Pn,selected:Fn};function An({id:a,options:s,selected:o,onChange:i,className:u=""}){const _=f=>{o.includes(f)?i(o.filter(c=>c!==f)):i([...o,f])};return t.jsx("div",{className:`${ve.pillsWrap} ${u}`,role:"group","aria-labelledby":`${a}-label`,children:s.map(f=>t.jsx("button",{type:"button",className:`${ve.pill} ${o.includes(f.key)?ve.selected:""}`,onClick:()=>_(f.key),children:f.label},f.key))})}const Bn="_checkboxRow_8fijg_1",Dn="_checkbox_8fijg_1",Wn="_checkboxText_8fijg_30",Ln="_checkboxHelp_8fijg_34",ae={checkboxRow:Bn,checkbox:Dn,checkboxText:Wn,checkboxHelp:Ln};function Mn({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:f=>o(f.target.checked)}),t.jsxs("label",{htmlFor:a,className:ae.checkboxText,children:[i,u!=null&&u!==""&&t.jsx("span",{className:ae.checkboxHelp,children:u})]})]})}const qn="_footerNote_laev3_1",Un={footerNote:qn};function Yn({children:a,className:s=""}){return t.jsx("p",{className:`${Un.footerNote} ${s}`,children:a})}const Hn="_footer_1r53u_1",Vn="_inner_1r53u_8",zn="_badges_1r53u_12",Jn="_marqueeContent_1r53u_20",Gn="_badge_1r53u_12",Kn="_badgeIcon_1r53u_35",Xn="_ctaWrap_1r53u_39",Qn="_ctaStruck_1r53u_43",Zn="_ctaButton_1r53u_49",ea="_offerRow_1r53u_69",ta="_pill_1r53u_76",ra="_ctaStatic_1r53u_85",L={footer:Hn,inner:Vn,badges:zn,marqueeContent:Jn,badge:Gn,badgeIcon:Kn,ctaWrap:Xn,ctaStruck:Qn,ctaButton:Zn,offerRow:ea,pill:ta,ctaStatic:ra};function na({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 aa({children:a,href:s,disabled:o=!1,onClick:i,static:u=!1,className:_="","aria-label":f}){const c=`${L.ctaButton} ${_}`.trim(),d=`${L.ctaStatic} ${_}`.trim(),h=f!=null?{"aria-label":f}:{};return u?t.jsx("div",{className:d,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 sa="_wrapper_wxjzs_1",oa="_track_wxjzs_7",Ge={wrapper:sa,track:oa};function Ke({children:a,className:s=""}){return t.jsx("div",{className:`${Ge.wrapper} ${s}`,"aria-hidden":!0,children:t.jsxs("div",{className:Ge.track,children:[a,a]})})}const ia="_strip_2838b_1",ca={strip:ia};function la({children:a,className:s=""}){return t.jsx("div",{className:`${ca.strip} ${s}`,role:"region","aria-label":"Trust badges",children:t.jsx(Ke,{children:a})})}const ua="_section_8y3x9_1",da="_heading_8y3x9_6",fa="_content_8y3x9_11",_a="_line_8y3x9_16",pa="_brandName_8y3x9_20",Y={section:ua,heading:da,content:fa,line:_a,brandName:pa};function ha({title:a,brandName: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=Ke;exports.ContactUsSection=ha;exports.FAQAccordion=hr;exports.FooterCTAButton=aa;exports.FooterShell=na;exports.FormCheckboxWithHelp=Mn;exports.FormContainer=Ir;exports.FormDateInput=mn;exports.FormField=nn;exports.FormFooterNote=Yn;exports.FormLocationInput=Rn;exports.FormSectionHeader=Wr;exports.FormSegmentedControl=Cn;exports.FormTagPills=An;exports.FormTextInput=un;exports.FormTimeInput=jn;exports.MarqueeStrip=la;exports.PageHeader=$r;exports.PrivacyBanner=Yr;exports.UserReviewsSection=nr;exports.footerShellStyles=L;
|
|
15
15
|
//# sourceMappingURL=index.cjs.map
|