@srimandir/astrology-common 1.0.12 → 1.0.13
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/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +536 -529
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
`+
|
|
3
|
-
`)
|
|
4
|
-
`),
|
|
5
|
-
`+
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react");var ee={exports:{}},J={};var Ye;function It(){if(Ye)return J;Ye=1;var a=C,s=Symbol.for("react.element"),o=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,l=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function d(i,p,h){var v,b={},j=null,E=null;h!==void 0&&(j=""+h),p.key!==void 0&&(j=""+p.key),p.ref!==void 0&&(E=p.ref);for(v in p)c.call(p,v)&&!f.hasOwnProperty(v)&&(b[v]=p[v]);if(i&&i.defaultProps)for(v in p=i.defaultProps,p)b[v]===void 0&&(b[v]=p[v]);return{$$typeof:s,type:i,key:j,ref:E,props:b,_owner:l.current}}return J.Fragment=o,J.jsx=d,J.jsxs=d,J}var K={};var Ve;function Ct(){return Ve||(Ve=1,process.env.NODE_ENV!=="production"&&(function(){var a=C,s=Symbol.for("react.element"),o=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),i=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),T=Symbol.iterator,se="@@iterator";function V(e){if(e===null||typeof e!="object")return null;var r=T&&e[T]||e[se];return typeof r=="function"?r:null}var F=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function N(e){{for(var r=arguments.length,n=new Array(r>1?r-1:0),u=1;u<r;u++)n[u-1]=arguments[u];oe("error",e,n)}}function oe(e,r,n){{var u=F.ReactDebugCurrentFrame,g=u.getStackAddendum();g!==""&&(r+="%s",n=n.concat([g]));var x=n.map(function(m){return String(m)});x.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,x)}}var Ge=!1,Xe=!1,Qe=!1,Ze=!1,et=!1,ge;ge=Symbol.for("react.module.reference");function tt(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===f||et||e===l||e===h||e===v||Ze||e===E||Ge||Xe||Qe||typeof e=="object"&&e!==null&&(e.$$typeof===j||e.$$typeof===b||e.$$typeof===d||e.$$typeof===i||e.$$typeof===p||e.$$typeof===ge||e.getModuleId!==void 0))}function rt(e,r,n){var u=e.displayName;if(u)return u;var g=r.displayName||r.name||"";return g!==""?n+"("+g+")":n}function xe(e){return e.displayName||"Context"}function A(e){if(e==null)return null;if(typeof e.tag=="number"&&N("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case o:return"Portal";case f:return"Profiler";case l:return"StrictMode";case h:return"Suspense";case v:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case i:var r=e;return xe(r)+".Consumer";case d:var n=e;return xe(n._context)+".Provider";case p:return rt(e,e.render,"ForwardRef");case b:var u=e.displayName||null;return u!==null?u:A(e.type)||"Memo";case j:{var g=e,x=g._payload,m=g._init;try{return A(m(x))}catch{return null}}}return null}var B=Object.assign,H=0,ye,je,Ne,we,ke,$e,Ee;function Re(){}Re.__reactDisabledLog=!0;function nt(){{if(H===0){ye=console.log,je=console.info,Ne=console.warn,we=console.error,ke=console.group,$e=console.groupCollapsed,Ee=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Re,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:ye}),info:B({},e,{value:je}),warn:B({},e,{value:Ne}),error:B({},e,{value:we}),group:B({},e,{value:ke}),groupCollapsed:B({},e,{value:$e}),groupEnd:B({},e,{value:Ee})})}H<0&&N("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ie=F.ReactCurrentDispatcher,ce;function G(e,r,n){{if(ce===void 0)try{throw Error()}catch(g){var u=g.stack.trim().match(/\n( *(at )?)/);ce=u&&u[1]||""}return`
|
|
2
|
+
`+ce+e}}var le=!1,X;{var st=typeof WeakMap=="function"?WeakMap:Map;X=new st}function Te(e,r){if(!e||le)return"";{var n=X.get(e);if(n!==void 0)return n}var u;le=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var x;x=ie.current,ie.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(R){u=R}Reflect.construct(e,[],m)}else{try{m.call()}catch(R){u=R}e.call(m.prototype)}}else{try{throw Error()}catch(R){u=R}e()}}catch(R){if(R&&u&&typeof R.stack=="string"){for(var _=R.stack.split(`
|
|
3
|
+
`),$=u.stack.split(`
|
|
4
|
+
`),w=_.length-1,k=$.length-1;w>=1&&k>=0&&_[w]!==$[k];)k--;for(;w>=1&&k>=0;w--,k--)if(_[w]!==$[k]){if(w!==1||k!==1)do if(w--,k--,k<0||_[w]!==$[k]){var I=`
|
|
5
|
+
`+_[w].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),typeof e=="function"&&X.set(e,I),I}while(w>=1&&k>=0);break}}}finally{le=!1,ie.current=x,at(),Error.prepareStackTrace=g}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 Te(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 Te(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 p:return ot(e.render);case b:return Q(e.type,r,n);case j:{var u=e,g=u._payload,x=u._init;try{return Q(x(g),r,n)}catch{}}}return""}var z=Object.prototype.hasOwnProperty,Ie={},Ce=F.ReactDebugCurrentFrame;function Z(e){if(e){var r=e._owner,n=Q(e.type,e._source,r?r.type:null);Ce.setExtraStackFrame(n)}else Ce.setExtraStackFrame(null)}function ct(e,r,n,u,g){{var x=Function.call.bind(z);for(var m in e)if(x(e,m)){var _=void 0;try{if(typeof e[m]!="function"){var $=Error((u||"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 $.name="Invariant Violation",$}_=e[m](r,m,u,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(w){_=w}_&&!(_ instanceof Error)&&(Z(g),N("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",n,m,typeof _),Z(null)),_ instanceof Error&&!(_.message in Ie)&&(Ie[_.message]=!0,Z(g),N("Failed %s type: %s",n,_.message),Z(null))}}}var lt=Array.isArray;function ue(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 Se(e){if(dt(e))return N("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 Pe=F.ReactCurrentOwner,ft={key:!0,ref:!0,__self:!0,__source:!0},Fe,Ae;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"&&Pe.current}function mt(e,r){{var n=function(){Fe||(Fe=!0,N("%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(){Ae||(Ae=!0,N("%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,u,g,x,m){var _={$$typeof:s,type:e,key:r,ref:n,props:m,_owner:x};return _._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(_,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(_,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_};function gt(e,r,n,u,g){{var x,m={},_=null,$=null;n!==void 0&&(Se(n),_=""+n),pt(r)&&(Se(r.key),_=""+r.key),_t(r)&&($=r.ref,ht(r,g));for(x in r)z.call(r,x)&&!ft.hasOwnProperty(x)&&(m[x]=r[x]);if(e&&e.defaultProps){var w=e.defaultProps;for(x in w)m[x]===void 0&&(m[x]=w[x])}if(_||$){var k=typeof e=="function"?e.displayName||e.name||"Unknown":e;_&&mt(m,k),$&&vt(m,k)}return bt(e,_,$,g,u,Pe.current,m)}}var de=F.ReactCurrentOwner,Be=F.ReactDebugCurrentFrame;function M(e){if(e){var r=e._owner,n=Q(e.type,e._source,r?r.type:null);Be.setExtraStackFrame(n)}else Be.setExtraStackFrame(null)}var fe;fe=!1;function _e(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function We(){{if(de.current){var e=A(de.current.type);if(e)return`
|
|
6
6
|
|
|
7
|
-
Check the render method of \``+e+"`."}return""}}function xt(e){return""}var
|
|
7
|
+
Check the render method of \``+e+"`."}return""}}function xt(e){return""}var De={};function yt(e){{var r=We();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 Le(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=yt(r);if(De[n])return;De[n]=!0;var u="";e&&e._owner&&e._owner!==de.current&&(u=" It was passed a child from "+A(e._owner.type)+"."),M(e),N('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,u),M(null)}}function Me(e,r){{if(typeof e!="object")return;if(ue(e))for(var n=0;n<e.length;n++){var u=e[n];_e(u)&&Le(u,r)}else if(_e(e))e._store&&(e._store.validated=!0);else if(e){var g=V(e);if(typeof g=="function"&&g!==e.entries)for(var x=g.call(e),m;!(m=x.next()).done;)_e(m.value)&&Le(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===p||r.$$typeof===b))n=r.propTypes;else return;if(n){var u=A(r);ct(n,e.props,"prop",u,e)}else if(r.PropTypes!==void 0&&!fe){fe=!0;var g=A(r);N("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&N("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 u=r[n];if(u!=="children"&&u!=="key"){M(e),N("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),M(null);break}}e.ref!==null&&(M(e),N("Invalid attribute `ref` supplied to `React.Fragment`."),M(null))}}var qe={};function Ue(e,r,n,u,g,x){{var m=tt(e);if(!m){var _="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(_+=" 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 $=xt();$?_+=$:_+=We();var w;e===null?w="null":ue(e)?w="array":e!==void 0&&e.$$typeof===s?(w="<"+(A(e.type)||"Unknown")+" />",_=" Did you accidentally export a JSX literal instead of a component?"):w=typeof e,N("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",w,_)}var k=gt(e,r,n,g,x);if(k==null)return k;if(m){var I=r.children;if(I!==void 0)if(u)if(ue(I)){for(var q=0;q<I.length;q++)Me(I[q],e);Object.freeze&&Object.freeze(I)}else N("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 Me(I,e)}if(z.call(r,"key")){var W=A(e),R=Object.keys(r).filter(function(Tt){return Tt!=="key"}),pe=R.length>0?"{key: someKey, "+R.join(": ..., ")+": ...}":"{key: someKey}";if(!qe[W+pe]){var Rt=R.length>0?"{"+R.join(": ..., ")+": ...}":"{}";N(`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=s??F.useMemo(()=>er(a),[a]),[i,h]=F.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((P,A)=>t.jsxs("li",{className:y.card,children:[t.jsx("p",{className:y.quote,children:P.quote}),t.jsxs("div",{className:y.author,children:[P.authorAvatarUrl?t.jsx("img",{src:P.authorAvatarUrl,alt:"",className:y.avatar,width:40,height:40}):t.jsx("div",{className:y.avatarPlaceholder,"aria-hidden":!0}),t.jsxs("div",{className:y.authorInfo,children:[t.jsx("span",{className:y.authorName,children:P.authorName}),t.jsx("span",{className:y.stars,"aria-hidden":!0,children:"★".repeat(P.rating??5)})]})]})]},A))}),f&&t.jsx("div",{className:y.readMoreWrap,children:t.jsxs("button",{type:"button",className:y.toggleBtn,onClick:()=>{i||l?.(),h(P=>!P)},"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=F.useMemo(()=>s.map(({qKey:v,aKey:b})=>({question:a(v),answer:a(o?o(b):b)})),[a,s,o]),[i,h]=F.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_136bw_1",$r="_card_136bw_5",Er="_cardInner_136bw_10",pe={wrap:kr,card:$r,cardInner:Er};function Rr({children:a,className:s="","aria-label":o}){return t.jsx("section",{className:`${pe.wrap} ${s}`,"aria-label":o,children:t.jsx("div",{className:pe.card,children:t.jsx("div",{className:pe.cardInner,children:a})})})}const Tr="_header_a05ni_1",Ir="_left_a05ni_7",Cr="_backBtn_a05ni_11",Or="_titleWrap_a05ni_21",Sr="_title_a05ni_21",Pr="_subtitle_a05ni_31",Fr="_backIcon_a05ni_37",L={header:Tr,left:Ir,backBtn:Cr,titleWrap:Or,title:Sr,subtitle:Pr,backIcon:Fr},Ar=()=>t.jsx("svg",{className:L.backIcon,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:t.jsx("path",{d:"M15 18l-6-6 6-6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});function Br({title:a,subtitle:s,onBack:o,backAriaLabel: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]=F.useState(!1);return F.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=F.useRef(null),i=(()=>{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} />`,pe,W,Rt,W),qe[W+pe]=!0}}return e===c?Nt(k):jt(k),k}}function wt(e,r,n){return Ue(e,r,n,!0)}function kt(e,r,n){return Ue(e,r,n,!1)}var $t=kt,Et=wt;K.Fragment=c,K.jsx=$t,K.jsxs=Et})()),K}var He;function Ot(){return He||(He=1,process.env.NODE_ENV==="production"?ee.exports=It():ee.exports=Ct()),ee.exports}var t=Ot();const St="_section_1fboo_1",Pt="_heading_1fboo_5",Ft="_trustLine_1fboo_9",At="_star_1fboo_13",Bt="_ratingNum_1fboo_17",Wt="_trustText_1fboo_21",Dt="_cardList_1fboo_25",Lt="_card_1fboo_25",Mt="_quote_1fboo_37",qt="_author_1fboo_41",Ut="_avatar_1fboo_45",Yt="_avatarPlaceholder_1fboo_49",Vt="_authorInfo_1fboo_54",Ht="_authorName_1fboo_58",zt="_stars_1fboo_62",Jt="_readMoreWrap_1fboo_66",Kt="_toggleBtn_1fboo_70",Gt="_readMore_1fboo_66",Xt="_arrow_1fboo_89",Qt="_dot_1fboo_93",y={section:St,heading:Pt,trustLine:Ft,star:At,ratingNum:Bt,trustText:Wt,cardList:Dt,card:Lt,quote:Mt,author:qt,avatar:Ut,avatarPlaceholder:Yt,authorInfo:Vt,authorName:Ht,stars:zt,readMoreWrap:Jt,toggleBtn:Kt,readMore:Gt,arrow:Xt,dot:Qt},Zt=3,ze=15;function er(a){const s=new Map;for(let i=1;i<=ze;i+=1){const p=`feedbackTestimonial${i}`,h=a(p);if(!h||h===p)continue;const v=`feedbackAuthor${i}`,b=(()=>{const T=a(v);return T&&T!==v?T:a("guest")})(),j=`feedbackAuthor${i}AvatarUrl`,E=(()=>{const T=a(j);return T&&T!==j?T:void 0})();s.set(i,{quote:h,authorName:b,authorAvatarUrl:E,rating:5})}const o=[],c=[];for(let i=1;i<=ze;i+=1)i>=9?c.push(i):o.push(i);const l=[];let f=0,d=0;for(;f<o.length||d<c.length;){if(d<c.length){const i=c[d++],p=s.get(i);p&&l.push(p)}if(f<o.length){const i=o[f++],p=s.get(i);p&&l.push(p)}}return l}function tr({t:a,testimonials:s,initialVisible:o=Zt,readMoreHref:c,onReadMore:l,className:f=""}){const d=C.useMemo(()=>s??er(a),[s,a]),[i,p]=C.useState(!1),[h,v]=C.useState(!1);C.useEffect(()=>{v(!0)},[]);const b=d.length>o,j=b&&!i?d.slice(0,o):d,E=a("feedbackTitle"),T=a("feedbackRating"),se=a("feedbackTrust"),V=a("readMoreReviews"),F=a("readLess");return t.jsxs("section",{className:`${y.section} ${f}`,"aria-labelledby":"reviews-heading",children:[t.jsx("h2",{id:"reviews-heading",className:y.heading,children:E}),t.jsxs("p",{className:y.trustLine,children:[t.jsx("span",{className:y.star,"aria-hidden":!0,children:"★"}),t.jsx("span",{className:y.ratingNum,children:T}),t.jsx("span",{className:y.dot,"aria-hidden":!0}),t.jsx("span",{className:y.trustText,children:se})]}),t.jsx("ul",{className:y.cardList,children:j.map((N,oe)=>t.jsxs("li",{className:y.card,children:[t.jsx("p",{className:y.quote,children:N.quote}),t.jsxs("div",{className:y.author,children:[N.authorAvatarUrl?t.jsx("img",{src:N.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:N.authorName}),t.jsx("span",{className:y.stars,"aria-hidden":!0,children:"★".repeat(N.rating??5)})]})]})]},oe))}),b&&t.jsx("div",{className:y.readMoreWrap,children:t.jsxs("button",{type:"button",className:y.toggleBtn,onClick:()=>{i||l?.(),p(N=>!N)},"aria-expanded":i,children:[i?F:V,t.jsx("span",{className:y.arrow,"aria-hidden":!0,children:"›"})]})}),(c||l)&&!b&&t.jsx("div",{className:y.readMoreWrap,children:c?t.jsxs("a",{href:c,className:y.readMore,target:"_blank",rel:"noopener noreferrer",onClick:()=>l?.(),children:[V,t.jsx("span",{className:y.arrow,"aria-hidden":!0,children:"›"})]}):t.jsxs("button",{type:"button",className:y.readMore,onClick:()=>l?.(),children:[V,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",O={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:f=""}){const d=C.useMemo(()=>s.map(({qKey:v,aKey:b})=>({question:a(v),answer:a(o?o(b):b)})),[a,s,o]),[i,p]=C.useState(c),h=a("faqTitle");return t.jsxs("section",{className:`${O.section} ${f}`,"aria-labelledby":"faq-heading",children:[t.jsx("h2",{id:"faq-heading",className:O.heading,children:h}),t.jsx("div",{className:O.accordion,role:"list",children:d.map((v,b)=>{const j=i===b;return t.jsxs("div",{className:`${O.item} ${j?O.itemOpen:""}`,role:"listitem",children:[t.jsxs("button",{type:"button",className:O.question,onClick:()=>{const E=!j;p(j?-1:b),E&&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:`${O.chevron} ${j?O.chevronOpen:""}`,"aria-hidden":!0,children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none","aria-hidden":!0,focusable:"false",children:t.jsx("path",{d:"M5.8 8.3a1 1 0 0 1 1.4 0L10 11.09l2.8-2.8a1 1 0 1 1 1.4 1.42l-3.5 3.5a1 1 0 0 1-1.4 0l-3.5-3.5A1 1 0 0 1 5.8 8.3z",fill:"currentColor"})})})]}),t.jsx("div",{id:`faq-answer-${b}`,role:"region","aria-labelledby":`faq-question-${b}`,className:`${O.answerWrap} ${j?O.answerOpen:""}`,hidden:!j,children:t.jsx("p",{className:O.answer,children:v.answer})})]},b)})})]})}const 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:c=!0,className:l=""}){const f=c&&o!=null,d=a("sriMandir"),i=a("ratingText");return t.jsxs("header",{className:`${P.header} ${l}`,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}),i!=null&&i!==""&&t.jsxs("span",{className:P.rating,children:[t.jsx("span",{className:P.stars,"aria-hidden":!0,children:"★"}),i]})]})]}),f&&t.jsx("div",{className:P.langSlot,children:o})]})}const kr="_wrap_136bw_1",$r="_card_136bw_5",Er="_cardInner_136bw_10",he={wrap:kr,card:$r,cardInner:Er};function Rr({children:a,className:s="","aria-label":o}){return t.jsx("section",{className:`${he.wrap} ${s}`,"aria-label":o,children:t.jsx("div",{className:he.card,children:t.jsx("div",{className:he.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",D={header:Tr,left:Ir,backBtn:Cr,titleWrap:Or,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:c="Back",className:l=""}){return t.jsx("header",{className:`${D.header} ${l}`,children:t.jsxs("div",{className:D.left,children:[o!=null&&t.jsx("button",{type:"button",className:D.backBtn,onClick:o,"aria-label":c,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",me={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:`${me.banner} ${o}`,role:"status",children:t.jsxs("span",{className:me.text,children:[" ",t.jsx("img",{src:s,alt:"",className:me.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:c,infoTooltip:l,infoAriaLabel:f="Info",infoIconUrl:d=en,children:i,className:p=""}){const[h,v]=C.useState(!1);return C.useEffect(()=>{if(!l)return;const b=E=>{E.target?.closest?.("[data-info-tooltip]")==null&&v(!1)},j=E=>{E.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:`${S.field} ${p}`,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:"*"})]}),l!=null&&l!==""&&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(b=>!b),children:t.jsx("img",{className:S.infoImg,src:d,alt:"","aria-hidden":!0})}),h&&t.jsxs("div",{className:S.tooltip,role:"tooltip",children:[l,t.jsx("span",{className:S.tooltipArrow,"aria-hidden":!0})]})]})]}),c!=null&&c!==""&&t.jsx("div",{className:S.help,children:c}),t.jsx("div",{className:S.inputWrap,children:i})]})}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:c=!1,onIconClick:l,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:c?`${U.iconBtn} ${U.iconBtnInteractive}`:U.iconBtn,"aria-label":o||void 0,onClick:c?l:void 0,tabIndex:c?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:c,className:l="",...f}){const d=C.useRef(null),i=C.useMemo(()=>{const h=new Date,v=b=>String(b).padStart(2,"0");return`${h.getFullYear()}-${v(h.getMonth()+1)}-${v(h.getDate())}`},[]),p=()=>{if(c){c();return}const h=d.current;h&&typeof h.showPicker=="function"?h.showPicker():h?.focus()};return t.jsxs("div",{className:`${te.wrap} ${l}`,children:[t.jsx("input",{...f,ref:d,id:a,type:"date",className:te.input,value:s,max:i,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(),p()},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: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:i=>o(i.target.value),placeholder:c,disabled:l,onClick:()=>!l&&f?.()}),t.jsx("button",{type:"button",className:re.iconBtn,"aria-label":"Open time picker",disabled:l,onClick:i=>{i.preventDefault(),l||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="",...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",ve={segmented:En,segmentedOption:Rn,active:Tn};function In({id:a,options:s,value:o,onChange:c,className:l=""}){return t.jsx("div",{className:`${ve.segmented} ${l}`,role:"group","aria-labelledby":`${a}-label`,children:s.map(f=>t.jsx("button",{type:"button",id:f.value===o?a:void 0,className:`${ve.segmentedOption} ${f.value===o?ve.active:""}`,onClick:()=>c(f.value),children:f.label},f.value))})}const Cn="_pillsWrap_l8u3p_1",On="_pill_l8u3p_1",Sn="_selected_l8u3p_16",be={pillsWrap:Cn,pill:On,selected:Sn};function Pn({id:a,options:s,selected:o,onChange:c,className:l=""}){const f=d=>{o.includes(d)?c(o.filter(i=>i!==d)):c([...o,d])};return t.jsx("div",{className:`${be.pillsWrap} ${l}`,role:"group","aria-labelledby":`${a}-label`,children:s.map(d=>t.jsx("button",{type:"button",className:`${be.pill} ${o.includes(d.key)?be.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:c,helpText:l,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:[c,l!=null&&l!==""&&t.jsx("span",{className:ae.checkboxHelp,children:l})]})]})}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:c,static:l=!1,className:f="","aria-label":d}){const i=`${L.ctaButton} ${f}`.trim(),p=`${L.ctaStatic} ${f}`.trim(),h=d!=null?{"aria-label":d}:{};return l?t.jsx("div",{className:p,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(),...h,children:a}):t.jsx("button",{type:"button",className:i,disabled:o,onClick:c,...h,children:a})}const na="_wrapper_wxjzs_1",aa="_track_wxjzs_7",Je={wrapper:na,track:aa};function Ke({children:a,className:s=""}){return t.jsx("div",{className:`${Je.wrapper} ${s}`,"aria-hidden":!0,children:t.jsxs("div",{className:Je.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(Ke,{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:c,className:l=""}){return t.jsxs("section",{className:`${Y.section} ${l}`,"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:c})]})]})}exports.CircularMarquee=Ke;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
|