@srimandir/pitru-paksh-common 2.2.5 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/PujaDetailsForm/PujaDetailsForm.types.d.ts +3 -4
- package/dist/components/SelectorCard/SelectorCard.d.ts +4 -13
- package/dist/pitru-paksh-common.js +996 -1007
- package/dist/pitru-paksh-common.umd.cjs +7 -7
- package/dist/style.css +1 -1
- package/package.json +4 -3
- package/dist/pitru-paksh-common.d.ts +0 -82
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
(function(p,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("@srimandir/common"),require("react"),require("class-variance-authority"),require("react-player")):typeof define=="function"&&define.amd?define(["exports","@srimandir/common","react","class-variance-authority","react-player"],l):(p=typeof globalThis<"u"?globalThis:p||self,l(p.PitruPakshCommon={},p.SrimandirCommon,p.React,p.classVarianceAuthority,p.ReactPlayer))})(this,(function(p,l,v,la
|
|
2
|
-
`+
|
|
1
|
+
(function(p,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("@srimandir/common"),require("react"),require("class-variance-authority"),require("react-player")):typeof define=="function"&&define.amd?define(["exports","@srimandir/common","react","class-variance-authority","react-player"],l):(p=typeof globalThis<"u"?globalThis:p||self,l(p.PitruPakshCommon={},p.SrimandirCommon,p.React,p.classVarianceAuthority,p.ReactPlayer))})(this,(function(p,l,v,na,la){"use strict";function ia(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const n=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(r,s,n.get?n:{enumerable:!0,get:()=>t[s]})}}return r.default=t,Object.freeze(r)}const oa=ia(v);var he={exports:{}},ce={};var et;function ca(){if(et)return ce;et=1;var t=v,r=Symbol.for("react.element"),s=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(x,f,g){var h,d={},y=null,j=null;g!==void 0&&(y=""+g),f.key!==void 0&&(y=""+f.key),f.ref!==void 0&&(j=f.ref);for(h in f)n.call(f,h)&&!c.hasOwnProperty(h)&&(d[h]=f[h]);if(x&&x.defaultProps)for(h in f=x.defaultProps,f)d[h]===void 0&&(d[h]=f[h]);return{$$typeof:r,type:x,key:y,ref:j,props:d,_owner:o.current}}return ce.Fragment=s,ce.jsx=u,ce.jsxs=u,ce}var de={};var tt;function da(){return tt||(tt=1,process.env.NODE_ENV!=="production"&&(function(){var t=v,r=Symbol.for("react.element"),s=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),x=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),N=Symbol.iterator,S="@@iterator";function _(a){if(a===null||typeof a!="object")return null;var i=N&&a[N]||a[S];return typeof i=="function"?i:null}var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function k(a){{for(var i=arguments.length,b=new Array(i>1?i-1:0),C=1;C<i;C++)b[C-1]=arguments[C];T("error",a,b)}}function T(a,i,b){{var C=w.ReactDebugCurrentFrame,O=C.getStackAddendum();O!==""&&(i+="%s",b=b.concat([O]));var F=b.map(function(E){return String(E)});F.unshift("Warning: "+i),Function.prototype.apply.call(console[a],console,F)}}var m=!1,z=!1,H=!1,I=!1,Y=!1,ae;ae=Symbol.for("react.module.reference");function M(a){return!!(typeof a=="string"||typeof a=="function"||a===n||a===c||Y||a===o||a===g||a===h||I||a===j||m||z||H||typeof a=="object"&&a!==null&&(a.$$typeof===y||a.$$typeof===d||a.$$typeof===u||a.$$typeof===x||a.$$typeof===f||a.$$typeof===ae||a.getModuleId!==void 0))}function W(a,i,b){var C=a.displayName;if(C)return C;var O=i.displayName||i.name||"";return O!==""?b+"("+O+")":b}function K(a){return a.displayName||"Context"}function $(a){if(a==null)return null;if(typeof a.tag=="number"&&k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case n:return"Fragment";case s:return"Portal";case c:return"Profiler";case o:return"StrictMode";case g:return"Suspense";case h:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case x:var i=a;return K(i)+".Consumer";case u:var b=a;return K(b._context)+".Provider";case f:return W(a,a.render,"ForwardRef");case d:var C=a.displayName||null;return C!==null?C:$(a.type)||"Memo";case y:{var O=a,F=O._payload,E=O._init;try{return $(E(F))}catch{return null}}}return null}var G=Object.assign,te=0,Z,J,Q,re,ye,Ne,we;function ke(){}ke.__reactDisabledLog=!0;function qe(){{if(te===0){Z=console.log,J=console.info,Q=console.warn,re=console.error,ye=console.group,Ne=console.groupCollapsed,we=console.groupEnd;var a={configurable:!0,enumerable:!0,value:ke,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}te++}}function L(){{if(te--,te===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:G({},a,{value:Z}),info:G({},a,{value:J}),warn:G({},a,{value:Q}),error:G({},a,{value:re}),group:G({},a,{value:ye}),groupCollapsed:G({},a,{value:Ne}),groupEnd:G({},a,{value:we})})}te<0&&k("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var R=w.ReactCurrentDispatcher,X;function Ce(a,i,b){{if(X===void 0)try{throw Error()}catch(O){var C=O.stack.trim().match(/\n( *(at )?)/);X=C&&C[1]||""}return`
|
|
2
|
+
`+X+a}}var Ye=!1,_e;{var kr=typeof WeakMap=="function"?WeakMap:Map;_e=new kr}function Ht(a,i){if(!a||Ye)return"";{var b=_e.get(a);if(b!==void 0)return b}var C;Ye=!0;var O=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var F;F=R.current,R.current=null,qe();try{if(i){var E=function(){throw Error()};if(Object.defineProperty(E.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(E,[])}catch(q){C=q}Reflect.construct(a,[],E)}else{try{E.call()}catch(q){C=q}a.call(E.prototype)}}else{try{throw Error()}catch(q){C=q}a()}}catch(q){if(q&&C&&typeof q.stack=="string"){for(var P=q.stack.split(`
|
|
3
3
|
`),U=C.stack.split(`
|
|
4
|
-
`),
|
|
5
|
-
`+P[
|
|
4
|
+
`),B=P.length-1,D=U.length-1;B>=1&&D>=0&&P[B]!==U[D];)D--;for(;B>=1&&D>=0;B--,D--)if(P[B]!==U[D]){if(B!==1||D!==1)do if(B--,D--,D<0||P[B]!==U[D]){var ee=`
|
|
5
|
+
`+P[B].replace(" at new "," at ");return a.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",a.displayName)),typeof a=="function"&&_e.set(a,ee),ee}while(B>=1&&D>=0);break}}}finally{Ye=!1,R.current=F,L(),Error.prepareStackTrace=O}var oe=a?a.displayName||a.name:"",ne=oe?Ce(oe):"";return typeof a=="function"&&_e.set(a,ne),ne}function Cr(a,i,b){return Ht(a,!1)}function _r(a){var i=a.prototype;return!!(i&&i.isReactComponent)}function Le(a,i,b){if(a==null)return"";if(typeof a=="function")return Ht(a,_r(a));if(typeof a=="string")return Ce(a);switch(a){case g:return Ce("Suspense");case h:return Ce("SuspenseList")}if(typeof a=="object")switch(a.$$typeof){case f:return Cr(a.render);case d:return Le(a.type,i,b);case y:{var C=a,O=C._payload,F=C._init;try{return Le(F(O),i,b)}catch{}}}return""}var xe=Object.prototype.hasOwnProperty,Wt={},Gt=w.ReactDebugCurrentFrame;function Se(a){if(a){var i=a._owner,b=Le(a.type,a._source,i?i.type:null);Gt.setExtraStackFrame(b)}else Gt.setExtraStackFrame(null)}function Lr(a,i,b,C,O){{var F=Function.call.bind(xe);for(var E in a)if(F(a,E)){var P=void 0;try{if(typeof a[E]!="function"){var U=Error((C||"React class")+": "+b+" type `"+E+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[E]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw U.name="Invariant Violation",U}P=a[E](i,E,C,b,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(B){P=B}P&&!(P instanceof Error)&&(Se(O),k("%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).",C||"React class",b,E,typeof P),Se(null)),P instanceof Error&&!(P.message in Wt)&&(Wt[P.message]=!0,Se(O),k("Failed %s type: %s",b,P.message),Se(null))}}}var Sr=Array.isArray;function Ke(a){return Sr(a)}function Pr(a){{var i=typeof Symbol=="function"&&Symbol.toStringTag,b=i&&a[Symbol.toStringTag]||a.constructor.name||"Object";return b}}function Er(a){try{return qt(a),!1}catch{return!0}}function qt(a){return""+a}function Yt(a){if(Er(a))return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Pr(a)),qt(a)}var Kt=w.ReactCurrentOwner,Tr={key:!0,ref:!0,__self:!0,__source:!0},Zt,Jt;function Or(a){if(xe.call(a,"ref")){var i=Object.getOwnPropertyDescriptor(a,"ref").get;if(i&&i.isReactWarning)return!1}return a.ref!==void 0}function Ar(a){if(xe.call(a,"key")){var i=Object.getOwnPropertyDescriptor(a,"key").get;if(i&&i.isReactWarning)return!1}return a.key!==void 0}function zr(a,i){typeof a.ref=="string"&&Kt.current}function Fr(a,i){{var b=function(){Zt||(Zt=!0,k("%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)",i))};b.isReactWarning=!0,Object.defineProperty(a,"key",{get:b,configurable:!0})}}function Br(a,i){{var b=function(){Jt||(Jt=!0,k("%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)",i))};b.isReactWarning=!0,Object.defineProperty(a,"ref",{get:b,configurable:!0})}}var Dr=function(a,i,b,C,O,F,E){var P={$$typeof:r,type:a,key:i,ref:b,props:E,_owner:F};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:C}),Object.defineProperty(P,"_source",{configurable:!1,enumerable:!1,writable:!1,value:O}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P};function Ir(a,i,b,C,O){{var F,E={},P=null,U=null;b!==void 0&&(Yt(b),P=""+b),Ar(i)&&(Yt(i.key),P=""+i.key),Or(i)&&(U=i.ref,zr(i,O));for(F in i)xe.call(i,F)&&!Tr.hasOwnProperty(F)&&(E[F]=i[F]);if(a&&a.defaultProps){var B=a.defaultProps;for(F in B)E[F]===void 0&&(E[F]=B[F])}if(P||U){var D=typeof a=="function"?a.displayName||a.name||"Unknown":a;P&&Fr(E,D),U&&Br(E,D)}return Dr(a,P,U,O,C,Kt.current,E)}}var Ze=w.ReactCurrentOwner,Qt=w.ReactDebugCurrentFrame;function ie(a){if(a){var i=a._owner,b=Le(a.type,a._source,i?i.type:null);Qt.setExtraStackFrame(b)}else Qt.setExtraStackFrame(null)}var Je;Je=!1;function Qe(a){return typeof a=="object"&&a!==null&&a.$$typeof===r}function Xt(){{if(Ze.current){var a=$(Ze.current.type);if(a)return`
|
|
6
6
|
|
|
7
|
-
Check the render method of \``+a+"`."}return""}}function
|
|
7
|
+
Check the render method of \``+a+"`."}return""}}function Rr(a){return""}var ea={};function Mr(a){{var i=Xt();if(!i){var b=typeof a=="string"?a:a.displayName||a.name;b&&(i=`
|
|
8
8
|
|
|
9
|
-
Check the top-level render call using <`+b+">.")}return i}}function
|
|
9
|
+
Check the top-level render call using <`+b+">.")}return i}}function ta(a,i){{if(!a._store||a._store.validated||a.key!=null)return;a._store.validated=!0;var b=Mr(i);if(ea[b])return;ea[b]=!0;var C="";a&&a._owner&&a._owner!==Ze.current&&(C=" It was passed a child from "+$(a._owner.type)+"."),ie(a),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',b,C),ie(null)}}function aa(a,i){{if(typeof a!="object")return;if(Ke(a))for(var b=0;b<a.length;b++){var C=a[b];Qe(C)&&ta(C,i)}else if(Qe(a))a._store&&(a._store.validated=!0);else if(a){var O=_(a);if(typeof O=="function"&&O!==a.entries)for(var F=O.call(a),E;!(E=F.next()).done;)Qe(E.value)&&ta(E.value,i)}}}function $r(a){{var i=a.type;if(i==null||typeof i=="string")return;var b;if(typeof i=="function")b=i.propTypes;else if(typeof i=="object"&&(i.$$typeof===f||i.$$typeof===d))b=i.propTypes;else return;if(b){var C=$(i);Lr(b,a.props,"prop",C,a)}else if(i.PropTypes!==void 0&&!Je){Je=!0;var O=$(i);k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",O||"Unknown")}typeof i.getDefaultProps=="function"&&!i.getDefaultProps.isReactClassApproved&&k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Vr(a){{for(var i=Object.keys(a.props),b=0;b<i.length;b++){var C=i[b];if(C!=="children"&&C!=="key"){ie(a),k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",C),ie(null);break}}a.ref!==null&&(ie(a),k("Invalid attribute `ref` supplied to `React.Fragment`."),ie(null))}}var ra={};function sa(a,i,b,C,O,F){{var E=M(a);if(!E){var P="";(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).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 U=Rr();U?P+=U:P+=Xt();var B;a===null?B="null":Ke(a)?B="array":a!==void 0&&a.$$typeof===r?(B="<"+($(a.type)||"Unknown")+" />",P=" Did you accidentally export a JSX literal instead of a component?"):B=typeof a,k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",B,P)}var D=Ir(a,i,b,O,F);if(D==null)return D;if(E){var ee=i.children;if(ee!==void 0)if(C)if(Ke(ee)){for(var oe=0;oe<ee.length;oe++)aa(ee[oe],a);Object.freeze&&Object.freeze(ee)}else k("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 aa(ee,a)}if(xe.call(i,"key")){var ne=$(a),q=Object.keys(i).filter(function(Yr){return Yr!=="key"}),Xe=q.length>0?"{key: someKey, "+q.join(": ..., ")+": ...}":"{key: someKey}";if(!ra[ne+Xe]){var qr=q.length>0?"{"+q.join(": ..., ")+": ...}":"{}";k(`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} />`,et,le,Yr,le),sa[le+et]=!0}}return a===n?Vr(B):Wr(B),B}}function Ur(a,i,b){return na(a,i,b,!0)}function Hr(a,i,b){return na(a,i,b,!1)}var Gr=Hr,qr=Ur;ue.Fragment=n,ue.jsx=Gr,ue.jsxs=qr})()),ue}var rt;function fa(){return rt||(rt=1,process.env.NODE_ENV==="production"?pe.exports=da():pe.exports=ua()),pe.exports}var e=fa(),st={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},nt=v.createContext&&v.createContext(st),xa=["attr","size","title"];function ha(t,r){if(t==null)return{};var s,n,o=pa(t,r);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(n=0;n<c.length;n++)s=c[n],r.indexOf(s)===-1&&{}.propertyIsEnumerable.call(t,s)&&(o[s]=t[s])}return o}function pa(t,r){if(t==null)return{};var s={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(r.indexOf(n)!==-1)continue;s[n]=t[n]}return s}function me(){return me=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var s=arguments[r];for(var n in s)({}).hasOwnProperty.call(s,n)&&(t[n]=s[n])}return t},me.apply(null,arguments)}function lt(t,r){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),s.push.apply(s,n)}return s}function be(t){for(var r=1;r<arguments.length;r++){var s=arguments[r]!=null?arguments[r]:{};r%2?lt(Object(s),!0).forEach(function(n){ma(t,n,s[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):lt(Object(s)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(s,n))})}return t}function ma(t,r,s){return(r=ba(r))in t?Object.defineProperty(t,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[r]=s,t}function ba(t){var r=ga(t,"string");return typeof r=="symbol"?r:r+""}function ga(t,r){if(typeof t!="object"||!t)return t;var s=t[Symbol.toPrimitive];if(s!==void 0){var n=s.call(t,r);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function it(t){return t&&t.map((r,s)=>v.createElement(r.tag,be({key:s},r.attr),it(r.child)))}function A(t){return r=>v.createElement(va,me({attr:be({},t.attr)},r),it(t.child))}function va(t){var r=s=>{var n=t.attr,o=t.size,c=t.title,u=ha(t,xa),x=o||s.size||"1em",f;return s.className&&(f=s.className),t.className&&(f=(f?f+" ":"")+t.className),v.createElement("svg",me({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},s.attr,n,u,{className:f,style:be(be({color:t.color||s.color},s.style),t.style),height:x,width:x,xmlns:"http://www.w3.org/2000/svg"}),c&&v.createElement("title",null,c),t.children)};return nt!==void 0?v.createElement(nt.Consumer,null,s=>r(s)):r(st)}function ja(t){return A({attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M16 8c-0.020-1.045-0.247-2.086-0.665-3.038-0.417-0.953-1.023-1.817-1.766-2.53s-1.624-1.278-2.578-1.651c-0.953-0.374-1.978-0.552-2.991-0.531-1.013 0.020-2.021 0.24-2.943 0.646-0.923 0.405-1.758 0.992-2.449 1.712s-1.237 1.574-1.597 2.497c-0.361 0.923-0.533 1.914-0.512 2.895 0.020 0.981 0.234 1.955 0.627 2.847 0.392 0.892 0.961 1.7 1.658 2.368s1.523 1.195 2.416 1.543c0.892 0.348 1.851 0.514 2.799 0.493 0.949-0.020 1.89-0.227 2.751-0.608 0.862-0.379 1.642-0.929 2.287-1.604s1.154-1.472 1.488-2.335c0.204-0.523 0.342-1.069 0.415-1.622 0.019 0.001 0.039 0.002 0.059 0.002 0.552 0 1-0.448 1-1 0-0.028-0.001-0.056-0.004-0.083h0.004zM14.411 10.655c-0.367 0.831-0.898 1.584-1.55 2.206s-1.422 1.112-2.254 1.434c-0.832 0.323-1.723 0.476-2.608 0.454-0.884-0.020-1.759-0.215-2.56-0.57-0.801-0.354-1.526-0.867-2.125-1.495s-1.071-1.371-1.38-2.173c-0.31-0.801-0.457-1.66-0.435-2.512s0.208-1.694 0.551-2.464c0.342-0.77 0.836-1.468 1.441-2.044s1.321-1.029 2.092-1.326c0.771-0.298 1.596-0.438 2.416-0.416s1.629 0.202 2.368 0.532c0.74 0.329 1.41 0.805 1.963 1.387s0.988 1.27 1.272 2.011c0.285 0.74 0.418 1.532 0.397 2.32h0.004c-0.002 0.027-0.004 0.055-0.004 0.083 0 0.516 0.39 0.94 0.892 0.994-0.097 0.544-0.258 1.075-0.481 1.578z"},child:[]}]})(t)}const ot=la.cva("group appearance-none inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg font-semibold transition-colors disabled:pointer-events-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#f75e22] focus-visible:ring-offset-2",{variants:{variant:{primary:"border-0 bg-gradient-to-b from-[#f97e4e] to-[#f75e22] text-white hover:opacity-90 disabled:bg-none disabled:bg-[#9ca3af]",secondary:"border border-[#f75e22] bg-white text-[#f75e22] hover:bg-orange-50 disabled:opacity-50",outline:"border border-gray-300 bg-transparent text-gray-900 hover:bg-gray-50 disabled:opacity-50",ghost:"border-0 bg-transparent text-gray-900 hover:bg-gray-100 disabled:opacity-50"},size:{xs:"h-6 px-2 text-xs",sm:"h-8 px-3 text-sm",md:"h-10 px-4 text-sm",lg:"h-12 px-5 text-base",xl:"h-14 px-6 text-base"},iconOnly:{true:"rounded-full p-0",false:""}},compoundVariants:[{iconOnly:!0,size:"xs",className:"w-6"},{iconOnly:!0,size:"sm",className:"w-8"},{iconOnly:!0,size:"md",className:"w-10"},{iconOnly:!0,size:"lg",className:"w-12"},{iconOnly:!0,size:"xl",className:"w-14"}],defaultVariants:{variant:"primary",size:"lg",iconOnly:!1}}),V=ca.forwardRef(({className:t,variant:r,size:s,iconOnly:n,loading:o=!1,disabled:c,leftIcon:u,rightIcon:x,children:f,type:g="button",...h},d)=>{const j=(r??"primary")==="primary";return e.jsx("button",{ref:d,type:g,disabled:c||o,className:l.cn(ot({variant:r,size:s,iconOnly:n}),t),...h,children:o?e.jsx(ja,{className:"animate-spin","aria-hidden":!0}):e.jsxs("span",{className:l.cn("inline-flex items-center gap-2",j&&"group-disabled:opacity-50"),children:[u,f,x]})})});V.displayName="Button";function ge(t){return t.isOpen?e.jsx("div",{className:"fixed inset-0 z-[1100] mx-auto w-full max-w-md",style:{transform:"translateZ(0)"},children:e.jsx(l.BottomSheet,{...t})}):null}function ya(t){return A({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zm233.32-51.08c-11.17-7.33-26.18-4.24-33.51 6.95-7.34 11.17-4.22 26.18 6.95 33.51 66.27 43.49 105.82 116.6 105.82 195.58 0 78.98-39.55 152.09-105.82 195.58-11.17 7.32-14.29 22.34-6.95 33.5 7.04 10.71 21.93 14.56 33.51 6.95C528.27 439.58 576 351.33 576 256S528.27 72.43 448.35 19.97zM480 256c0-63.53-32.06-121.94-85.77-156.24-11.19-7.14-26.03-3.82-33.12 7.46s-3.78 26.21 7.41 33.36C408.27 165.97 432 209.11 432 256s-23.73 90.03-63.48 115.42c-11.19 7.14-14.5 22.07-7.41 33.36 6.51 10.36 21.12 15.14 33.12 7.46C447.94 377.94 480 319.54 480 256zm-141.77-76.87c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.86z"},child:[]}]})(t)}function Na(t){return A({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zM461.64 256l45.64-45.64c6.3-6.3 6.3-16.52 0-22.82l-22.82-22.82c-6.3-6.3-16.52-6.3-22.82 0L416 210.36l-45.64-45.64c-6.3-6.3-16.52-6.3-22.82 0l-22.82 22.82c-6.3 6.3-6.3 16.52 0 22.82L370.36 256l-45.63 45.63c-6.3 6.3-6.3 16.52 0 22.82l22.82 22.82c6.3 6.3 16.52 6.3 22.82 0L416 301.64l45.64 45.64c6.3 6.3 16.52 6.3 22.82 0l22.82-22.82c6.3-6.3 6.3-16.52 0-22.82L461.64 256z"},child:[]}]})(t)}function wa(t){return A({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"},child:[]}]})(t)}function ct(t){return A({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"},child:[]}]})(t)}function dt(t){return A({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"},child:[]}]})(t)}function ka(t){return A({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"},child:[]}]})(t)}const Ca=({quote:t,authorName:r,authorAvatarUrl:s,meta:n,rating:o=5,className:c="",...u})=>e.jsxs("div",{className:l.cn("flex flex-col gap-3 rounded-lg bg-[#fef5e9] px-4 py-3.75",c),...u,children:[e.jsx("p",{className:"w-full wrap-break-word text-xs font-normal text-[#1d2125]",children:t}),e.jsxs("div",{className:"flex w-full items-start gap-x-2.5",children:[s?e.jsx("img",{src:s,alt:"",className:"size-8 shrink-0 rounded-full object-cover"}):e.jsx("div",{className:"size-8 shrink-0 rounded-full",style:{background:"linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%)"},"aria-hidden":!0}),e.jsxs("div",{className:"flex flex-col min-w-0 flex-1 gap-0.5",children:[e.jsxs("div",{className:"flex items-center gap-1.75",children:[e.jsx("span",{className:"truncate text-sm font-bold text-[#1d2125]",children:r}),e.jsx("span",{className:"flex items-center gap-1 text-amber-500","aria-hidden":!0,children:Array.from({length:Math.max(0,Math.min(5,o))},(x,f)=>e.jsx(ct,{size:14},f))})]}),e.jsx("p",{className:"text-xs font-medium text-gray-500",children:n})]})]})]});function _a(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(t)}function La(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"},child:[]}]})(t)}function ut(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"5",x2:"12",y2:"19"},child:[]},{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]}]})(t)}function Sa(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]}]})(t)}function fe(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12.01",y2:"8"},child:[]}]})(t)}function ft(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"},child:[]}]})(t)}function Pa(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"18 15 12 9 6 15"},child:[]}]})(t)}function Ea(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"9 18 15 12 9 6"},child:[]}]})(t)}function ie(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"6 9 12 15 18 9"},child:[]}]})(t)}function Ee(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"20 6 9 17 4 12"},child:[]}]})(t)}function Ta(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"9 11 12 14 22 4"},child:[]},{tag:"path",attr:{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"},child:[]}]})(t)}function Oa(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"16",y1:"2",x2:"16",y2:"6"},child:[]},{tag:"line",attr:{x1:"8",y1:"2",x2:"8",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"10",x2:"21",y2:"10"},child:[]}]})(t)}function Te(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]},{tag:"polyline",attr:{points:"12 5 19 12 12 19"},child:[]}]})(t)}function Oe(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"19",y1:"12",x2:"5",y2:"12"},child:[]},{tag:"polyline",attr:{points:"12 19 5 12 12 5"},child:[]}]})(t)}const xt=({title:t="अक्सर पूछे जाने वाले प्रश्न",items:r,initialVisibleCount:s=6,showCta:n=!0,defaultExpanded:o=!1,ctaExpandLabel:c="और देखें",ctaCollapseLabel:u="कम देखें",defaultOpenIndex:x=-1,className:f=""})=>{const[g,h]=v.useState(o),[d,j]=v.useState(x),y=n&&r.length>s,w=y&&!g?r.slice(0,s):r;return e.jsxs("div",{className:l.cn("flex flex-col items-center gap-5 bg-white px-4 py-6",f),children:[e.jsx("h2",{className:"px-4 text-center text-base font-bold text-[#1d2125]",children:t}),e.jsx("div",{className:"flex w-full flex-col gap-3",children:w.map((L,_)=>{const k=d===_;return e.jsxs("div",{className:"w-full overflow-hidden rounded-lg border border-[#f3f4f6]",children:[e.jsxs("button",{type:"button",className:l.cn("flex w-full items-center justify-between gap-2 p-3 text-left",k?"bg-[#f7f8f9]":"bg-white"),onClick:()=>j(k?-1:_),"aria-expanded":k,"aria-controls":`faq-answer-${_}`,id:`faq-question-${_}`,children:[e.jsx("span",{className:"flex-1 text-sm font-medium text-[#22272b]",children:L.question}),e.jsx(ie,{size:24,className:l.cn("shrink-0 transition-transform duration-200",k?"rotate-180":""),"aria-hidden":!0})]}),e.jsx("div",{id:`faq-answer-${_}`,role:"region","aria-labelledby":`faq-question-${_}`,hidden:!k,className:"bg-white p-3",children:e.jsx("p",{className:"text-sm text-[#374151]",children:L.answer})})]},_)})}),y&&e.jsx(V,{variant:"secondary",size:"lg",className:"w-full",onClick:()=>h(L=>!L),"aria-expanded":g,rightIcon:e.jsx(ie,{size:24,className:l.cn("shrink-0 transition-transform duration-200",g?"rotate-180":""),"aria-hidden":!0}),children:g?u:c})]})},Aa=({title:t="Frequently Asked Questions",showTitleAccent:r=!0,items:s,initialVisibleCount:n=6,showCta:o=!0,defaultExpanded:c=!1,ctaExpandLabel:u="See more",ctaCollapseLabel:x="See less",defaultOpenIndex:f=-1,className:g=""})=>{const[h,d]=v.useState(c),[j,y]=v.useState(f),w=o&&s.length>n,L=w&&!h?s.slice(0,n):s;return e.jsxs("div",{className:l.cn("flex flex-col gap-3 bg-white px-4 py-6",g),children:[e.jsxs("h2",{className:"flex items-center gap-2 text-sm font-bold text-[#374151]",children:[r&&e.jsx("span",{"aria-hidden":!0,className:"block h-[18px] w-[3px] shrink-0 bg-[#f75e22]"}),t]}),e.jsx("div",{className:"flex w-full flex-col",children:L.map((_,k)=>{const N=j===k,T=N?Pa:ie;return e.jsxs("div",{className:"w-full border-b border-[#f3f4f6] py-3 last:border-b-0",children:[e.jsxs("button",{type:"button",className:"flex w-full items-center justify-between gap-2 text-left",onClick:()=>y(N?-1:k),"aria-expanded":N,"aria-controls":`faq-accordion-answer-${k}`,id:`faq-accordion-question-${k}`,children:[e.jsx("span",{className:"flex-1 text-sm font-semibold text-[#22272b]",children:_.question}),e.jsx(T,{size:24,className:"shrink-0 text-[#f75e22]","aria-hidden":!0})]}),e.jsx("div",{id:`faq-accordion-answer-${k}`,role:"region","aria-labelledby":`faq-accordion-question-${k}`,hidden:!N,children:e.jsx("p",{className:"mt-2 text-xs text-[#374151]",children:_.answer})})]},k)})}),w&&e.jsx(V,{variant:"secondary",size:"lg",className:"w-full",onClick:()=>d(_=>!_),"aria-expanded":h,rightIcon:e.jsx(ie,{size:24,className:l.cn("shrink-0 transition-transform duration-200",h?"rotate-180":""),"aria-hidden":!0}),children:h?x:u})]})},ht=v.forwardRef(({src:t,poster:r,className:s="",rounded:n=!0,width:o,height:c},u)=>{const[x,f]=v.useState(!1),[g,h]=v.useState(!0),[d,j]=v.useState(!1),[y,w]=v.useState(0),[L,_]=v.useState(0),k=v.useRef(null),N=o!==void 0||c!==void 0,T=l.cn("block w-full",N&&"h-full object-cover"),m=z=>{const $=Number(z.target.value);w($),k.current&&(k.current.currentTime=$)};return e.jsx("div",{ref:u,style:{width:o,height:c},className:l.cn("relative w-full overflow-hidden",n&&"rounded-2xl",s),children:x?e.jsxs(e.Fragment,{children:[e.jsx(ia,{ref:k,src:t,poster:r,playing:g,muted:d,width:o,height:c,className:T,onTimeUpdate:z=>w(z.currentTarget.currentTime),onDurationChange:z=>_(z.currentTarget.duration),onEnded:()=>h(!1)}),e.jsx(V,{variant:"ghost",iconOnly:!0,size:"lg","aria-label":g?"Pause":"Play",className:"absolute inset-0 m-auto border border-white/20 bg-black/40 text-white backdrop-blur-sm hover:bg-black/50",onClick:()=>h(z=>!z),children:g?e.jsx(ka,{size:16}):e.jsx(dt,{size:16,className:"translate-x-0.5"})}),e.jsx(V,{variant:"ghost",iconOnly:!0,size:"sm","aria-label":d?"Unmute":"Mute",className:"absolute left-2 top-2 text-white hover:bg-white/10",onClick:()=>j(z=>!z),children:d?e.jsx(Na,{size:14}):e.jsx(ya,{size:14})}),e.jsx("input",{type:"range",min:0,max:L||0,step:.1,value:y,onChange:m,"aria-label":"Seek",className:"absolute bottom-4 left-5 right-5 h-1 accent-white"})]}):e.jsxs(e.Fragment,{children:[e.jsx("img",{src:r,alt:"",className:T}),e.jsx("div",{className:"absolute inset-0 bg-linear-to-b from-black/0 to-black/60"}),e.jsx(V,{variant:"ghost",iconOnly:!0,size:"lg","aria-label":"Play video",className:"absolute inset-0 m-auto border border-white/20 bg-black/40 text-white backdrop-blur-sm hover:bg-black/50",onClick:()=>f(!0),children:e.jsx(dt,{size:16,className:"translate-x-0.5"})})]})})});ht.displayName="VideoPlayer";const za=()=>e.jsx("img",{src:"https://srm-cdn.a4b.io/yoda/1788163707447.svg",alt:"",width:24,height:24}),Ae=v.forwardRef(({options:t,value:r,onChange:s,defaultOpen:n=!1,open:o,onOpenChange:c,className:u="",triggerClassName:x="",menuClassName:f="",...g},h)=>{const[d,j]=v.useState(n),y=o!==void 0,w=y?o:d,L=v.useCallback(N=>{y||j(N),c?.(N)},[y,c]),_=v.useRef(null);v.useImperativeHandle(h,()=>_.current),v.useEffect(()=>{if(!w)return;const N=m=>{_.current?.contains(m.target)||L(!1)},T=m=>{m.key==="Escape"&&L(!1)};return document.addEventListener("mousedown",N),document.addEventListener("keydown",T),()=>{document.removeEventListener("mousedown",N),document.removeEventListener("keydown",T)}},[w,L]);const k=N=>{s?.(N.value),L(!1)};return e.jsxs("div",{ref:_,className:l.cn("relative inline-block",u),...g,children:[e.jsxs("button",{type:"button",onClick:()=>L(!w),"aria-label":"Switch language","aria-haspopup":"listbox","aria-expanded":w,className:l.cn("inline-flex items-center gap-1 rounded-full border border-gray-200 bg-white px-2 py-1",x),children:[e.jsx(za,{}),e.jsx(ie,{size:24,className:l.cn("transition-transform duration-200",w?"rotate-180":""),"aria-hidden":!0})]}),w&&e.jsx("ul",{role:"listbox",className:l.cn("absolute left-0 top-full z-10 mt-2 min-w-35 overflow-hidden rounded-lg border border-gray-200 bg-white py-1 shadow-lg",f),children:t.map(N=>{const T=N.value===r;return e.jsx("li",{role:"option","aria-selected":T,children:e.jsx("button",{type:"button",onClick:()=>k(N),className:l.cn("block w-full px-3 py-2 text-left text-sm hover:bg-gray-50",T?"font-medium text-[#f75e22]":"text-[#1d2125]"),children:N.label})},N.value)})})]})});Ae.displayName="LanguageSwitcher";function Fa({onBackClick:t,backButtonAriaLabel:r="Go back",locale:s,localeOptions:n,onLocaleChange:o,className:c}){return e.jsxs("div",{className:l.cn("mx-auto flex w-full max-w-md items-center justify-between px-4 py-3",c),children:[e.jsx("button",{type:"button",onClick:t,"aria-label":r,className:"flex size-8 shrink-0 items-center justify-center rounded-lg border-0 bg-transparent p-0 drop-shadow-[0px_0px_5px_rgba(0,0,0,0.1)]",children:e.jsx(Oe,{className:"size-6 text-[#1d2125]","aria-hidden":!0})}),e.jsx(Ae,{options:n,value:s,onChange:o,menuClassName:"left-auto right-0"})]})}const pt=v.forwardRef(({label:t,selected:r=!1,onClick:s,icon:n,className:o,type:c="button",...u},x)=>e.jsxs("button",{ref:x,type:c,onClick:s,"aria-pressed":r,className:l.cn("inline-flex shrink-0 items-center justify-center gap-1 rounded-full border text-[12px] leading-[16px] font-semibold whitespace-nowrap transition-colors",r?"border-[#f38415] bg-[#f38415] px-4 py-1.5 text-white":"border-[#fccf9a] bg-[#ffffff66] px-3 py-1.5 text-[#374151] hover:bg-white/70",o),...u,children:[n,t]}));pt.displayName="Chip";const Da=({quote:t,currentStep:r,totalSteps:s,className:n,...o})=>{const c=s>0?Math.min(100,Math.max(0,r/s*100)):0;return e.jsxs("div",{className:l.cn("step-progress-header",n),...o,children:[e.jsxs("div",{className:"step-progress-header__column",children:[e.jsx("p",{className:"step-progress-header__quote",children:t}),e.jsxs("div",{className:"step-progress-header__track",children:[e.jsx("div",{className:"step-progress-header__track-fill",style:{width:`${c}%`}}),e.jsx("div",{className:"step-progress-header__track-marker",style:{left:`${c}%`},children:e.jsx("img",{src:"https://srm-cdn.a4b.io/yoda/1788163246556.svg",alt:"",width:21,height:21})})]})]}),e.jsxs("p",{className:"step-progress-header__count",children:[r,"/",s]})]})};function Ba(t){return A({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.553 3.064A.75.75 0 0 1 12 3.75v16.5a.75.75 0 0 1-1.255.555L5.46 16H2.75A1.75 1.75 0 0 1 1 14.25v-4.5C1 8.784 1.784 8 2.75 8h2.71l5.285-4.805a.752.752 0 0 1 .808-.13ZM10.5 5.445l-4.245 3.86a.748.748 0 0 1-.505.195h-3a.25.25 0 0 0-.25.25v4.5c0 .138.112.25.25.25h3c.187 0 .367.069.505.195l4.245 3.86Zm8.218-1.223a.75.75 0 0 1 1.06 0c4.296 4.296 4.296 11.26 0 15.556a.75.75 0 0 1-1.06-1.06 9.5 9.5 0 0 0 0-13.436.75.75 0 0 1 0-1.06Z"},child:[]},{tag:"path",attr:{d:"M16.243 7.757a.75.75 0 1 0-1.061 1.061 4.5 4.5 0 0 1 0 6.364.75.75 0 0 0 1.06 1.06 6 6 0 0 0 0-8.485Z"},child:[]}]})(t)}function Ra(t){return A({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 3.75v16.5a.75.75 0 0 1-1.255.555L5.46 16H2.75A1.75 1.75 0 0 1 1 14.25v-4.5C1 8.784 1.784 8 2.75 8h2.71l5.285-4.805A.75.75 0 0 1 12 3.75ZM6.255 9.305a.748.748 0 0 1-.505.195h-3a.25.25 0 0 0-.25.25v4.5c0 .138.112.25.25.25h3c.187 0 .367.069.505.195l4.245 3.86V5.445ZM16.28 8.22a.75.75 0 1 0-1.06 1.06L17.94 12l-2.72 2.72a.75.75 0 1 0 1.06 1.06L19 13.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L20.06 12l2.72-2.72a.75.75 0 0 0-1.06-1.06L19 10.94l-2.72-2.72Z"},child:[]}]})(t)}const mt=1.25,bt=[{x:11.02,y:6.38,height:5.28},{x:16.3,y:6.38,height:5.28},{x:8.36,y:3.8,height:10.44},{x:13.68,y:4.8,height:8.4},{x:5.73,y:2.84,height:12.32},{x:3.07,y:6,height:6.03},{x:.45,y:7.29,height:3.37}],Ia=({animate:t,iconIndex:r})=>e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",children:bt.map((s,n)=>e.jsx("rect",{x:s.x,y:s.y,width:mt,height:s.height,rx:mt/2,fill:"#6B7280",className:t?"wave-bar-anim":"",style:{animationDelay:`${(r*bt.length+n)*60}ms`}},n))}),Ma=({avatarUrl:t,question:r,description:s,audioSrc:n,className:o,...c})=>{const u=v.useRef(null),x=v.useRef(!1),[f,g]=v.useState(!1),[h,d]=v.useState(!1);v.useEffect(()=>{!n||x.current||(x.current=!0,u.current?.play().catch(()=>{}))},[n]);const j=()=>{const y=u.current;y&&(y.muted=!y.muted,g(y.muted))};return e.jsxs("div",{className:l.cn("flex w-full items-start gap-3 px-4 pb-6",o),...c,children:[e.jsxs("div",{className:"relative size-16 shrink-0 overflow-hidden rounded-[12.8px] bg-linear-to-b from-[#fef5e9] to-[#fccf9a]",children:[e.jsx("img",{src:"https://srm-cdn.a4b.io/yoda/1788163138113.svg",alt:"",className:"absolute"}),e.jsx("img",{src:t,alt:"",className:"absolute top-1 size-[73.92px] object-contain"})]}),e.jsxs("div",{className:"flex min-w-0 flex-1 items-start",children:[e.jsx("svg",{viewBox:"0 0 18.7767 32.5742",fill:"none","aria-hidden":!0,className:"h-[32.574px] w-[18.777px] shrink-0 -mr-2",children:e.jsx("path",{d:"M0 16.2871L14.0826 7.37821L14.0826 25.196L0 16.2871Z",fill:"white"})}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-2 rounded-2xl bg-white p-4 drop-shadow-[-2px_2px_5px_rgba(252,207,154,0.3)]",children:[e.jsx("p",{className:"text-base",children:r}),e.jsx("p",{className:"text-[10px]",children:s}),n&&e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("audio",{ref:u,src:n,onPlay:()=>d(!0),onPause:()=>d(!1),onEnded:()=>d(!1)}),e.jsx("button",{type:"button",onClick:j,"aria-label":f?"Unmute":"Mute","aria-pressed":f,className:"flex size-4.5 shrink-0 items-center justify-center border-0 bg-transparent p-0",children:f?e.jsx(Ra,{size:18,className:"text-[#f75e22]"}):e.jsx(Ba,{size:18,className:"text-[#f75e22]"})}),e.jsx("div",{className:"flex items-center gap-[1.5px]",children:[0,1,2].map(y=>e.jsx(Ia,{animate:h&&!f,iconIndex:y},y))})]})]})]})]})},$a={sm:"size-9",md:"size-11",lg:"size-16"},xe=v.forwardRef(({icon:t,avatarUrl:r,alt:s="",size:n="md",className:o,...c},u)=>e.jsx("div",{ref:u,className:l.cn("flex shrink-0 items-center justify-center overflow-hidden rounded-full",$a[n],!r&&"bg-gradient-to-b from-[#fef5e9] to-[#fde3c2] text-[#f38415]",o),"aria-hidden":r?void 0:!0,...c,children:r?e.jsx("img",{src:r,alt:s,className:"size-full object-cover"}):t}));xe.displayName="IconBadge";const ze=v.forwardRef(({selected:t=!1,onSelect:r,icon:s,avatarUrl:n,iconSize:o="md",iconClassName:c,title:u,description:x,badge:f,showRadio:g=!0,radioVariant:h="dot",radioClassName:d,tag:j,tagClassName:y,children:w,note:L,noteClassName:_,className:k,disabled:N,type:T="button",...m},z)=>{const $=e.jsxs("div",{className:l.cn("relative overflow-visible rounded-2xl border transition-colors",t?"border-[#f38415] bg-[#FEF5E9]":"border-gray-200 bg-white",N&&"opacity-50",L&&"z-10",k),children:[j&&e.jsx("span",{className:l.cn("absolute -top-2.5 left-4 z-10 inline-flex items-center rounded-full bg-[#6d5bd0] px-2.5 py-1 text-[11px] font-semibold whitespace-nowrap text-white",y),children:j}),e.jsxs("button",{ref:z,type:T,role:"radio","aria-checked":t,disabled:N,onClick:r,className:l.cn("flex w-full items-center gap-3 overflow-hidden rounded-2xl px-3 pt-3 pb-3 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#f75e22] focus-visible:ring-offset-2 disabled:cursor-not-allowed",j&&"pt-7"),...m,children:[(s||n)&&e.jsx(xe,{icon:s,avatarUrl:n,size:o,className:c}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-[14px] leading-5 font-bold text-[#1d2125]",children:u}),x&&!w&&e.jsx("p",{className:"mt-0.5 text-[13px] leading-4.5 text-gray-500",children:x})]}),f&&e.jsx("span",{className:"shrink-0",children:f}),g&&e.jsxs("span",{"aria-hidden":!0,className:l.cn("inline-flex size-6 shrink-0 items-center justify-center rounded-full border-2 transition-colors",t?h==="check"?l.cn("border-transparent bg-linear-to-b from-[#f97e4e] to-[#f75e22] text-white",d):"border-[#f75e22]":"border-gray-300"),children:[t&&h==="dot"&&e.jsx("span",{className:l.cn("size-3.5 rounded-full bg-linear-to-b from-[#f97e4e] to-[#f75e22]",d)}),t&&h==="check"&&e.jsx(Ee,{size:14,"aria-hidden":!0})]})]}),w]});return L?e.jsxs("div",{className:"relative",children:[$,e.jsx("div",{className:l.cn("mt-3 rounded-b-2xl px-4 pt-4 pb-3 text-left text-[#632e06]",_),children:L})]}):$});ze.displayName="SelectorCard";const Wa=({value:t,onClick:r,className:s,...n})=>e.jsxs("div",{role:r?"button":void 0,tabIndex:r?0:void 0,onClick:r,className:l.cn("mx-3 mb-3 flex items-center gap-2.5 rounded-xl border border-gray-200 bg-white px-3.5 py-3",r&&"cursor-pointer",s),...n,children:[e.jsx(ft,{size:16,className:"shrink-0 text-gray-900","aria-hidden":!0}),e.jsx("span",{className:"truncate text-[15px] font-medium text-gray-900",children:t})]}),Va=({value:t,onInfoClick:r,infoLabel:s="More info",className:n,...o})=>e.jsxs("div",{className:l.cn("mx-3 mb-3 flex items-center justify-between gap-2.5 rounded-xl border border-gray-200 bg-white px-3.5 py-3",n),...o,children:[e.jsx("span",{className:"truncate text-[15px] font-medium text-gray-900",children:t}),r?e.jsx("button",{type:"button",onClick:r,"aria-label":s,className:"shrink-0 border-0 bg-transparent p-0 text-gray-700",children:e.jsx(fe,{size:18,"aria-hidden":!0})}):e.jsx(fe,{size:18,className:"shrink-0 text-gray-700","aria-hidden":!0})]}),gt=({value:t,className:r,...s})=>e.jsx("span",{className:l.cn("inline-flex items-center rounded-full bg-white px-3 py-1 text-sm font-semibold text-[#159169]",r),...s,children:t}),vt=({className:t,children:r,...s})=>e.jsx("div",{className:l.cn("rounded-b-2xl bg-[#f38415]/15 px-4 py-2.5 text-center text-[13px] font-medium text-[#632e06]",t),...s,children:r}),Ua=({value:t,onIncrement:r,onDecrement:s,min:n=0,max:o,addLabel:c="Add",className:u})=>t<=n?e.jsxs("button",{type:"button",onClick:r,className:l.cn("inline-flex h-10 w-22 cursor-pointer items-center justify-center gap-2.5 rounded-lg bg-linear-to-b from-[#5eb98e] to-[#087955] text-base font-bold text-white",u),children:[e.jsx(ut,{size:20,"aria-hidden":!0}),c]}):e.jsxs("div",{className:l.cn("inline-flex h-10 w-22 items-center justify-between rounded-lg border border-[#159169] bg-linear-to-b from-white to-[#edf5f2] px-3 text-[#087955] shadow-md",u),children:[e.jsx("button",{type:"button",onClick:s,"aria-label":"Decrease quantity",className:"inline-flex size-6 cursor-pointer items-center justify-center rounded-full transition-colors ",children:e.jsx(Sa,{size:18,"aria-hidden":!0})}),e.jsx("span",{className:"min-w-[1ch] text-center text-base font-bold",children:t}),e.jsx("button",{type:"button",onClick:r,disabled:o!==void 0&&t>=o,"aria-label":"Increase quantity",className:"inline-flex size-6 cursor-pointer items-center justify-center rounded-full transition-colors disabled:pointer-events-none disabled:opacity-40",children:e.jsx(ut,{size:18,"aria-hidden":!0})})]}),jt={en:{headerTitle:"Review your booking",addonsTitle:"Add services for all ancestors",addonsDescription:"These pujas will be performed on the day of Sarva Pitru Amavasya",addedLabel:"Added",addLabel:"Add",mandapTitle:"Temple and Mandap Charges",mandapDescription:"This fee covers the temple space, mandap, and other arrangements needed for the puja.",checkoutProceedLabel:"Proceed to fill details",checkoutRitualSingular:"Ritual",checkoutRitualPlural:"Rituals"},hi:{headerTitle:"अपनी बुकिंग की समीक्षा करें",addonsTitle:"सभी पितरों के लिए सेवाएं जोड़ें",addonsDescription:"ये पूजाएं सर्वोपित्र अमावस्या के दिन सम्पन्न की जाएंगी",addedLabel:"जोड़ा गया",addLabel:"जोड़ें",mandapTitle:"मंदिर और मंडप शुल्क",mandapDescription:"पूजा के लिए मंदिर में स्थान, मंडप और आवश्यक पूजा व्यवस्था सुनिश्चित करने के लिए यह शुल्क लिया जाता है",checkoutProceedLabel:"आगे बढ़ें, और डिटेल्स भरें",checkoutRitualSingular:"पूजा-विधि",checkoutRitualPlural:"पूजा-विधि"}},ve=t=>jt[t]??jt.en,Fe=({title:t,description:r,price:s,originalPrice:n,action:o,className:c,...u})=>e.jsx("div",{className:l.cn("rounded-2xl border border-gray-200 bg-white p-4",c),...u,children:e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-[15px] leading-5 font-bold text-[#1d2125]",children:t}),r&&e.jsx("p",{className:"mt-1 text-sm leading-5 text-gray-500",children:r})]}),e.jsxs("div",{className:"flex shrink-0 flex-col items-end gap-2",children:[e.jsxs("div",{className:"flex items-baseline gap-1.5 whitespace-nowrap",children:[n&&e.jsx("span",{className:"text-sm text-gray-400 line-through",children:n}),e.jsx("span",{className:"text-[15px] font-bold text-[#1d2125]",children:s})]}),o]})]})}),yt=({locale:t="en",...r})=>{const{mandapTitle:s,mandapDescription:n}=ve(t);return e.jsx(Fe,{title:s,description:n,...r})},Ha=({children:t="Change",className:r,type:s="button",...n})=>e.jsxs("button",{type:s,className:l.cn("inline-flex items-center gap-1.5 rounded-full border border-gray-300 px-3 py-1.5 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-50",r),...n,children:[e.jsx(ft,{size:14,"aria-hidden":!0}),t]}),Ga=({locale:t="en",isAdded:r=!0,children:s,className:n,type:o="button",...c})=>e.jsxs("button",{type:o,className:l.cn("inline-flex items-center gap-1.5 rounded-full border border-emerald-500 px-3 py-1.5 text-sm font-semibold text-emerald-600 transition-colors hover:bg-emerald-50",n),...c,children:[r&&e.jsx(Ee,{size:14,"aria-hidden":!0}),s??(r?ve(t).addedLabel:ve(t).addLabel)]}),Z={card:"_card_3r5af_11",tag:"_tag_3r5af_19",content:"_content_3r5af_33",info:"_info_3r5af_39",title:"_title_3r5af_46",description:"_description_3r5af_53",priceRow:"_priceRow_3r5af_60",price:"_price_3r5af_60",originalPrice:"_originalPrice_3r5af_75",imageWrap:"_imageWrap_3r5af_81",image:"_image_3r5af_81",actionWrap:"_actionWrap_3r5af_95"},Nt=({image:t,imageAlt:r="",title:s,description:n,price:o,originalPrice:c,tag:u,tagClassName:x,action:f,className:g,...h})=>e.jsxs("div",{className:l.cn(Z.card,g),...h,children:[u&&e.jsx("div",{className:l.cn(Z.tag,x),children:u}),e.jsxs("div",{className:Z.content,children:[e.jsxs("div",{className:Z.info,children:[e.jsx("p",{className:Z.title,children:s}),n&&e.jsx("p",{className:Z.description,children:n}),e.jsxs("div",{className:Z.priceRow,children:[e.jsx("span",{className:Z.price,children:o}),c&&e.jsx("span",{className:Z.originalPrice,children:c})]})]}),e.jsxs("div",{className:Z.imageWrap,children:[e.jsx("img",{src:t,alt:r,className:Z.image}),f&&e.jsx("div",{className:Z.actionWrap,children:f})]})]})]});function wt(t){return A({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M12.136.326A1.5 1.5 0 0 1 14 1.78V3h.5A1.5 1.5 0 0 1 16 4.5v9a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 0 13.5v-9a1.5 1.5 0 0 1 1.432-1.499zM5.562 3H13V1.78a.5.5 0 0 0-.621-.484zM1.5 4a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5z"},child:[]}]})(t)}function kt(t){return A({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5.338 1.59a61 61 0 0 0-2.837.856.48.48 0 0 0-.328.39c-.554 4.157.726 7.19 2.253 9.188a10.7 10.7 0 0 0 2.287 2.233c.346.244.652.42.893.533q.18.085.293.118a1 1 0 0 0 .101.025 1 1 0 0 0 .1-.025q.114-.034.294-.118c.24-.113.547-.29.893-.533a10.7 10.7 0 0 0 2.287-2.233c1.527-1.997 2.807-5.031 2.253-9.188a.48.48 0 0 0-.328-.39c-.651-.213-1.75-.56-2.837-.855C9.552 1.29 8.531 1.067 8 1.067c-.53 0-1.552.223-2.662.524zM5.072.56C6.157.265 7.31 0 8 0s1.843.265 2.928.56c1.11.3 2.229.655 2.887.87a1.54 1.54 0 0 1 1.044 1.262c.596 4.477-.787 7.795-2.465 9.99a11.8 11.8 0 0 1-2.517 2.453 7 7 0 0 1-1.048.625c-.28.132-.581.24-.829.24s-.548-.108-.829-.24a7 7 0 0 1-1.048-.625 11.8 11.8 0 0 1-2.517-2.453C1.928 10.487.545 7.169 1.141 2.692A1.54 1.54 0 0 1 2.185 1.43 63 63 0 0 1 5.072.56"},child:[]},{tag:"path",attr:{d:"M10.854 5.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 7.793l2.646-2.647a.5.5 0 0 1 .708 0"},child:[]}]})(t)}function Ct(t){return A({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8.515 1.019A7 7 0 0 0 8 1V0a8 8 0 0 1 .589.022zm2.004.45a7 7 0 0 0-.985-.299l.219-.976q.576.129 1.126.342zm1.37.71a7 7 0 0 0-.439-.27l.493-.87a8 8 0 0 1 .979.654l-.615.789a7 7 0 0 0-.418-.302zm1.834 1.79a7 7 0 0 0-.653-.796l.724-.69q.406.429.747.91zm.744 1.352a7 7 0 0 0-.214-.468l.893-.45a8 8 0 0 1 .45 1.088l-.95.313a7 7 0 0 0-.179-.483m.53 2.507a7 7 0 0 0-.1-1.025l.985-.17q.1.58.116 1.17zm-.131 1.538q.05-.254.081-.51l.993.123a8 8 0 0 1-.23 1.155l-.964-.267q.069-.247.12-.501m-.952 2.379q.276-.436.486-.908l.914.405q-.24.54-.555 1.038zm-.964 1.205q.183-.183.35-.378l.758.653a8 8 0 0 1-.401.432z"},child:[]},{tag:"path",attr:{d:"M8 1a7 7 0 1 0 4.95 11.95l.707.707A8.001 8.001 0 1 1 8 0z"},child:[]},{tag:"path",attr:{d:"M7.5 3a.5.5 0 0 1 .5.5v5.21l3.248 1.856a.5.5 0 0 1-.496.868l-3.5-2A.5.5 0 0 1 7 9V3.5a.5.5 0 0 1 .5-.5"},child:[]}]})(t)}const qa=[{id:"money-back",icon:e.jsx(kt,{"aria-hidden":!0}),label:"100% Money Back Guarantee"},{id:"no-hidden-cost",icon:e.jsx(wt,{"aria-hidden":!0}),label:"No Hidden Cost"},{id:"24x7-support",icon:e.jsx(Ct,{"aria-hidden":!0}),label:"24x7 Support"}],_t=(t,r,s)=>e.jsxs("span",{className:l.cn("inline-flex shrink-0 items-center gap-2 text-sm font-semibold text-gray-700",s,t.className),children:[e.jsx("span",{className:"shrink-0 text-base text-gray-700","aria-hidden":!0,children:t.icon}),t.label]},r),Lt=({badges:t=qa,badgeClassName:r,marquee:s=!0,marqueeDurationSeconds:n=14,className:o,...c})=>s?e.jsx("div",{className:l.cn("overflow-hidden bg-[#f3f5f7] px-4 py-3",o),...c,children:e.jsx("div",{className:"flex w-max items-center gap-5 whitespace-nowrap motion-reduce:animate-none",style:{animation:`pitru-paksh-trust-badges-marquee ${n}s linear infinite`},children:[...t,...t].map((u,x)=>_t(u,`${u.id}-${x}`,r))})}):e.jsx("div",{className:l.cn("flex items-center gap-5 overflow-x-auto bg-[#f3f5f7] px-4 py-3 whitespace-nowrap","scrollbar-none [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",o),...c,children:t.map(u=>_t(u,u.id,r))}),De={en:{proceedLabel:"Proceed"},hi:{proceedLabel:"आगे बढ़ें"},te:{proceedLabel:"ముందుకు సాగండి"}},St=t=>De[t]??De.en,je=({locale:t="en",amount:r,amountClassName:s,subtitle:n,subtitleClassName:o,showInfoIcon:c=!0,onInfoClick:u,infoIconClassName:x,proceedLabel:f,proceedIcon:g=e.jsx(Te,{"aria-hidden":!0}),onProceed:h,proceedButtonProps:d,buttonWrapperClassName:j,className:y,...w})=>e.jsxs("div",{className:l.cn("flex items-center gap-3 rounded-t-3xl bg-white px-4 py-4 shadow-[0_-2px_12px_rgba(0,0,0,0.08)]",y),...w,children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:l.cn("text-xl font-extrabold text-[#1d2125]",s),children:r}),c&&e.jsx("button",{type:"button",onClick:u,"aria-label":"View bill details",className:l.cn("inline-flex shrink-0 items-center justify-center text-[#f75e22]",!u&&"pointer-events-none",x),children:e.jsx(fe,{size:18,"aria-hidden":!0})})]}),n&&e.jsx("p",{className:l.cn("mt-1 text-sm text-gray-500",o),children:n})]}),e.jsx("div",{className:l.cn("shrink-0",j),children:e.jsxs(V,{variant:"primary",size:"xl",onClick:h,...d,className:l.cn("min-w-40 justify-center gap-2 bg-linear-to-b from-[#5eb98e] to-[#159169] focus-visible:ring-[#159169]",d?.className),children:[f??St(t).proceedLabel,g]})})]}),Be={en:{title:"Select the number of people performing the Puja (Karta)",description:"Performing the puja together with the whole family brings ancestors’ blessings and family prosperity",benefits:["Panditji will pronounce the names and gotra of the ancestors and the performers","Our experienced Pandits will conduct the Puja with correct vedic rituals","A video of the entire Puja will be shared with you on WhatsApp and the Srimandir app"],trustBadgeLabels:{moneyBack:"100% Money Back Guarantee",noHiddenCost:"No Hidden Cost",support:"24x7 Support"}},hi:{title:"पूजा करवाने वाले (कर्ता) लोगो की संख्या चुनें",description:"पूरे परिवार के साथ मिलकर पूजा करने से पितरों का आशीर्वाद मिलता है और परिवार की सुख-समृद्धि बढ़ती है",benefits:["पंडितजी द्वारा पितृजन और कर्ता का नाम-गोत्र उच्चारण होगा","हमारे अनुभवी पुरोहित पूरे विधि-विधान से पूजा कराएंगे","पूरी पूजा का वीडियो आपको WhatsApp और श्रीमंदिर ऐप पर शेयर किया जाएगा"],trustBadgeLabels:{moneyBack:"100% पैसा वापसी की गारंटी",noHiddenCost:"कोई छुपी हुई लागत नहीं",support:"24x7 सहायता"}},te:{title:"పూజ చేసే వ్యక్తుల సంఖ్యను ఎంచుకోండి (కర్త)",description:"కుటుంబమంతా కలిసి పూజ చేస్తే పితృదేవతల ఆశీర్వాదం, కుటుంబ సుఖసమృద్ధి లభిస్తాయి",benefits:["పండితుడు పితృదేవతల మరియు కర్తల పేర్లు, గోత్రాలు చెప్తారు","మా అనుభవం గల పండితులు సరైన వేద విధులతో పూజ చేస్తారు","పూర్తి పూజా వీడియో వాట్సాప్ మరియు శ్రీమందిర్ యాప్ లో పంపబడుతుంది"],trustBadgeLabels:{moneyBack:"100% డబ్బు తిరిగి హామీ",noHiddenCost:"దాచిన ఖర్చులు లేవు",support:"కస్టమర్ సపోర్ట్"}}},Pt=t=>Be[t]??Be.en,Ya=({locale:t="en",title:r,description:s,benefits:n,options:o,value:c,onChange:u,radioVariant:x="dot",radiogroupLabel:f,className:g,headerClassName:h,benefitsClassName:d,optionsClassName:j,trustBadges:y,checkout:w,stickyFooter:L=!0,footerClassName:_})=>{const k=Pt(t),N=r??k.title,T=s??k.description,m=n??k.benefits,z=y??{badges:[{id:"money-back",icon:e.jsx(kt,{"aria-hidden":!0}),label:k.trustBadgeLabels.moneyBack},{id:"no-hidden-cost",icon:e.jsx(wt,{"aria-hidden":!0}),label:k.trustBadgeLabels.noHiddenCost},{id:"24x7-support",icon:e.jsx(Ct,{"aria-hidden":!0}),label:k.trustBadgeLabels.support}]};return e.jsxs("div",{className:l.cn("w-full",g),children:[e.jsxs("div",{className:l.cn("px-4 pt-5 pb-4",h),children:[e.jsx("p",{className:"text-[20px] leading-6.5 font-extrabold text-[#1d2125]",children:N}),T&&e.jsx("p",{className:"mt-2 text-[14px] leading-5.5 text-gray-500",children:T})]}),m&&m.length>0&&e.jsx("div",{className:l.cn("flex flex-col gap-3.5 bg-[#f3f5f7] px-4 py-5",d),children:m.map(($,R)=>e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(Ee,{size:18,className:"mt-0.5 shrink-0 text-emerald-600","aria-hidden":!0}),e.jsx("span",{className:"text-[14px] leading-5.5 text-gray-600",children:$})]},R))}),e.jsx("div",{role:"radiogroup","aria-label":f??(typeof N=="string"?N:void 0),className:l.cn("flex flex-col gap-3 p-4",j),children:o.map($=>{const{id:R,price:Y,free:re,badge:M,priceBadgeProps:H,note:K,noteProps:W,children:G,iconClassName:ae,radioVariant:J,...Q}=$,X=c===R,se=M??(Y==null?void 0:re?e.jsx("span",{className:l.cn("text-sm font-medium text-gray-400",H?.className),...H,children:Y}):e.jsx(gt,{value:Y,...H}));return e.jsx(ze,{...Q,iconClassName:l.cn("size-10",ae),radioVariant:J??x,badge:se,selected:X,onSelect:()=>u(R),children:G??(X&&K&&e.jsx(vt,{...W,children:K}))},R)})}),(z||w)&&e.jsxs("div",{className:l.cn(L&&"sticky bottom-0 z-10",_),children:[z&&e.jsx(Lt,{...z}),w&&e.jsx(je,{...w})]})]})},Re={en:{title:"Pitru Paksha Special Rituals",ancestorsLabel:"Ancestors",ritualsLabel:"Rituals",performersLabel:"Performers"},hi:{title:"पितृ पक्ष विशेष अनुष्ठान",ancestorsLabel:"पितृजन",ritualsLabel:"पूजा विधि",performersLabel:"कर्ता"}},Et=t=>Re[t]??Re.en,Tt=({locale:t="en",icon:r=e.jsx(ct,{"aria-hidden":!0}),iconClassName:s,title:n,titleClassName:o,subtitle:c,subtitleItems:u,stats:x,subtitleClassName:f,cardClassName:g,className:h,...d})=>{const j=Et(t),y=n??j.title,w=u??(x&&[`${x.ancestors} ${j.ancestorsLabel}`,`${x.rituals} ${j.ritualsLabel}`,`${x.performers} ${j.performersLabel}`]);return e.jsx("div",{className:l.cn("bg-gradient-to-b from-[#fce7f3] to-white px-4 pt-4 pb-6",h),...d,children:e.jsxs("div",{className:l.cn("rounded-2xl bg-white p-4 shadow-sm",g),children:[e.jsxs("p",{className:l.cn("flex items-center gap-2 text-sm font-bold text-[#db2777]",o),children:[r&&e.jsx("span",{className:l.cn("shrink-0 text-sm",s),children:r}),y]}),(c||w&&w.length>0)&&e.jsx("p",{className:l.cn("mt-2 text-[15px] font-semibold text-[#1d2125]",f),children:w&&w.length>0?w.map((L,_)=>e.jsxs(v.Fragment,{children:[_>0&&e.jsx("span",{className:"mx-1.5 text-gray-400",children:"•"}),L]},_)):c})]})})},Ot={en:{title:"Bill Details",totalLabel:"Total Amount"},hi:{title:"बिल विवरण",totalLabel:"कुल राशि"}},Ka=t=>Ot[t]??Ot.en,At=({locale:t="en",titleClassName:r,rows:s,rowClassName:n,showTitleAccent:o=!0,totalValue:c,totalClassName:u,className:x,...f})=>{const{title:g,totalLabel:h}=Ka(t);return e.jsxs("div",{className:l.cn("bg-white px-4 py-6",x),...f,children:[e.jsxs("h2",{className:l.cn("mb-4 flex items-center gap-2 text-lg font-bold text-[#1d2125]",r),children:[o&&e.jsx("span",{"aria-hidden":!0,className:"block h-5 w-1 shrink-0 rounded-full bg-[#f75e22]"}),g]}),e.jsx("div",{className:"flex flex-col gap-4",children:s.map(d=>e.jsxs("div",{className:l.cn("flex items-start justify-between gap-3",n),children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:l.cn("text-sm text-[#1d2125]",d.labelClassName),children:d.label}),d.subLabel&&e.jsx("p",{className:l.cn("mt-0.5 text-xs text-gray-400",d.subLabelClassName),children:d.subLabel})]}),e.jsxs("div",{className:"flex shrink-0 items-baseline gap-1.5 whitespace-nowrap text-sm",children:[d.note&&e.jsx("span",{className:"text-gray-400",children:d.note}),d.originalValue&&e.jsx("span",{className:"text-gray-400 line-through",children:d.originalValue}),e.jsx("span",{className:l.cn("font-medium text-[#1d2125]",d.valueClassName),children:d.value})]})]},d.id))}),c!==void 0&&e.jsxs("div",{className:l.cn("mt-4 flex items-center justify-between border-t border-dashed border-gray-300 pt-4",u),children:[e.jsx("span",{className:"text-base font-bold text-[#1d2125]",children:h}),e.jsx("span",{className:"text-base font-bold text-emerald-600",children:c})]})]})},Za=({locale:t="en",onBack:r,backButtonAriaLabel:s="Go back",headerClassName:n,backButtonClassName:o,headerTitleClassName:c,summary:u,items:x,itemsClassName:f,itemClassName:g,addons:h,addonsSectionClassName:d,addonsHeaderClassName:j,addonsTitleClassName:y,addonsDescriptionClassName:w,addonsClassName:L,addonClassName:_,billDetails:k,faq:N,checkout:T,className:m,children:z,...$})=>{const{headerTitle:R,addonsTitle:Y,addonsDescription:re,checkoutProceedLabel:M,checkoutRitualSingular:H,checkoutRitualPlural:K}=ve(t),{price:W,ritualCount:G,...ae}=T??{};return e.jsxs("div",{className:l.cn("flex min-h-screen flex-col bg-white",m),...$,children:[e.jsxs("div",{className:"flex flex-1 flex-col",children:[e.jsxs("div",{className:l.cn("flex items-center gap-3 px-4 py-3",n),children:[r&&e.jsx("button",{type:"button",onClick:r,"aria-label":s,className:l.cn("flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-lg border-0 bg-transparent p-0",o),children:e.jsx(Oe,{className:"size-6 text-[#1d2125]","aria-hidden":!0})}),e.jsx("h1",{className:l.cn("text-lg font-bold text-[#1d2125]",c),children:R})]}),u&&e.jsx(Tt,{...u}),x&&x.length>0&&e.jsx("div",{className:l.cn("flex flex-col gap-3 bg-white px-4 py-4",f),children:x.map(({id:J,className:Q,isMandapCharge:X,...se})=>X?e.jsx(yt,{locale:t,className:l.cn(g,Q),...se},J):e.jsx(Fe,{className:l.cn(g,Q),...se},J))}),h&&h.length>0&&e.jsxs("div",{className:l.cn("flex flex-col gap-4 bg-gray-50 px-4 py-6",d),children:[e.jsxs("div",{className:j,children:[e.jsx("h2",{className:l.cn("text-base font-bold text-gray-700",y),children:Y}),e.jsx("p",{className:l.cn("mt-1 text-sm text-gray-500",w),children:re})]}),e.jsx("div",{className:l.cn("flex flex-col gap-4",L),children:h.map(({id:J,className:Q,...X})=>e.jsx(Nt,{className:l.cn(_,Q),...X},J))})]}),k&&e.jsx(At,{...k,locale:t}),N&&e.jsx(xt,{...N}),z]}),T&&e.jsx("div",{className:"sticky bottom-0",children:e.jsx(je,{...ae,locale:t,amount:W,subtitle:`${G} ${G===1?H:K}`,proceedLabel:M})})]})},ne=v.forwardRef(({label:t,value:r,onChange:s,prefix:n,showCharCount:o=!1,supportingText:c,error:u=!1,className:x,containerClassName:f,wrapperClassName:g,maxLength:h,id:d,...j},y)=>{const w=v.useId(),L=d??w,_=c??(o?`${r.length}${h?`/${h}`:""}`:void 0);return e.jsxs("div",{className:l.cn("flex w-full flex-col gap-2",f),children:[t&&e.jsx("label",{htmlFor:L,className:"text-[14px] leading-5 font-semibold text-[#6b7280]",children:t}),e.jsxs("div",{className:"flex w-full flex-col gap-1",children:[e.jsxs("div",{className:l.cn("flex w-full items-center gap-1.5 rounded-lg border bg-white p-3 focus-within:ring-2 focus-within:ring-[#f75e22]/40",u?"border-[#ef4444]":"border-[#d1d5db]",g),children:[n&&e.jsx("span",{className:"shrink-0 text-[16px] leading-5.5 font-medium text-[#6b7280]",children:n}),e.jsx("input",{ref:y,id:L,value:r,maxLength:h,onChange:k=>s(k.target.value),"aria-invalid":u,className:l.cn("w-full min-w-0 flex-1 border-0 bg-transparent p-0 text-[16px] leading-5.5 font-medium text-[#1f2937] placeholder:text-[#9ca3af] focus:outline-none focus:ring-0",x),...j})]}),_&&e.jsx("p",{className:"text-[12px] leading-4 font-medium text-[#9ca3af]",children:_})]})]})});ne.displayName="TextField";function Ja({isOpen:t,onClose:r,avatarUrl:s,heading:n,tithis:o,confirmLabel:c,onConfirm:u,initialTithi:x}){const[f,g]=v.useState(x),h=()=>{f&&u(f)};return e.jsx(l.BottomSheet,{isOpen:t,onClose:r,showDragHandle:!0,showCloseButton:!1,ariaLabel:n,header:e.jsxs("div",{className:"flex w-full flex-col items-center gap-3 px-5 pt-2",children:[e.jsxs("div",{className:"flex w-full items-center gap-3",children:[e.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-full bg-[#fff9e9]",children:e.jsx("img",{src:s,alt:"",className:"size-full object-cover"})}),e.jsx("p",{className:"flex-1 text-[16px] leading-5.5 font-semibold text-[#374151]",children:n})]}),e.jsx("div",{className:"h-px w-full bg-[rgba(28,27,27,0.05)]"})]}),footer:e.jsxs("div",{className:"flex w-full flex-col items-center gap-4 px-5 pb-2",children:[e.jsx("div",{className:"h-px w-full bg-[rgba(28,27,27,0.05)]"}),e.jsx(V,{variant:"primary",size:"md",className:"w-full rounded-xl",disabled:!f,onClick:h,children:c})]}),children:e.jsx("div",{className:"grid w-full grid-cols-4 gap-x-2 gap-y-4 px-5 py-4",children:o.map(d=>{const j=f===d;return e.jsx("button",{type:"button",onClick:()=>g(d),className:`flex items-center justify-center rounded-full border px-3 py-1.5 text-[10px] leading-3.5 font-semibold whitespace-nowrap ${j?"border-[#f38415] bg-[#f38415] text-white":"border-[#fccf9a] bg-white/40 text-[#374151]"}`,children:d},d)})})})}const ye=48;function Ie({options:t,selectedIndex:r,onChange:s}){const n=v.useRef(null),o=v.useRef(!1);v.useEffect(()=>{o.current||!n.current||(o.current=!0,n.current.scrollTop=r*ye)},[]);const c=()=>{if(!n.current)return;const u=Math.round(n.current.scrollTop/ye),x=Math.max(0,Math.min(t.length-1,u));x!==r&&s(x)};return e.jsxs("div",{className:"relative h-36 w-full",children:[e.jsxs("div",{ref:n,onScroll:c,className:"h-36 snap-y snap-mandatory overflow-y-auto [&::-webkit-scrollbar]:hidden",style:{scrollbarWidth:"none"},children:[e.jsx("div",{style:{height:ye},"aria-hidden":!0}),t.map((u,x)=>e.jsx("div",{className:`flex h-12 snap-center items-center justify-center whitespace-nowrap text-[20px] leading-7 ${x===r?"font-bold text-[#f75e22]":"font-semibold text-[#d1d5db]"}`,children:u},u)),e.jsx("div",{style:{height:ye},"aria-hidden":!0})]}),e.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-12 h-px bg-[#e5e7eb]"}),e.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-24 h-px bg-[#e5e7eb]"})]})}const Me=Array.from({length:31},(t,r)=>r+1);function Qa({isOpen:t,onClose:r,avatarUrl:s,heading:n,monthLabels:o,confirmLabel:c,onConfirm:u,timezoneLabel:x,initialDate:f,minYear:g,maxYear:h=new Date().getFullYear()}){const d=v.useMemo(()=>{const T=g??h-120;return Array.from({length:h-T+1},(m,z)=>T+z)},[g,h]),[j,y]=v.useState(()=>f?f.day-1:Math.floor(Me.length/2)),[w,L]=v.useState(()=>f?f.month-1:0),[_,k]=v.useState(()=>f?Math.max(0,d.indexOf(f.year)):Math.floor(d.length/2)),N=()=>{u({day:Me[j],month:w+1,year:d[_]})};return e.jsx(l.BottomSheet,{isOpen:t,onClose:r,showDragHandle:!0,showCloseButton:!1,ariaLabel:n,header:e.jsxs("div",{className:"flex w-full flex-col items-center gap-3 px-5 pt-2",children:[e.jsxs("div",{className:"flex w-full items-center gap-3",children:[e.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-full bg-[#fff9e9]",children:e.jsx("img",{src:s,alt:"",className:"size-full object-cover"})}),e.jsx("p",{className:"flex-1 text-[16px] leading-5.5 font-semibold text-[#374151]",children:n})]}),e.jsx("div",{className:"h-px w-full bg-[rgba(28,27,27,0.05)]"})]}),footer:e.jsxs("div",{className:"flex w-full flex-col items-center gap-4 px-5 pb-2",children:[e.jsx("div",{className:"h-px w-full bg-[rgba(28,27,27,0.05)]"}),e.jsxs("div",{className:"flex w-full items-center gap-6",children:[x&&e.jsx("p",{className:"shrink-0 text-[12px] leading-4 font-semibold whitespace-nowrap text-[#6b7280]",children:x}),e.jsx(V,{variant:"primary",size:"md",className:"flex-1 rounded-xl",onClick:N,children:c})]})]}),children:e.jsxs("div",{className:"flex w-full items-center justify-center gap-11 px-5 py-4",children:[e.jsx(Ie,{options:Me.map(String),selectedIndex:j,onChange:y}),e.jsx(Ie,{options:o,selectedIndex:w,onChange:L}),e.jsx(Ie,{options:d.map(String),selectedIndex:_,onChange:k})]})})}function Xa({isOpen:t,onClose:r,heading:s,subtext:n,confirmLabel:o,onConfirm:c,initialValue:u="",countries:x=l.DEFAULT_COUNTRIES,initialCountryIso:f="IN"}){const[g,h]=v.useState(()=>x.find(m=>m.iso===f)??x[0]),[d,j]=v.useState(u),[y,w]=v.useState(!1),L=v.useRef(null);v.useEffect(()=>{if(!y)return;const m=z=>{L.current&&!L.current.contains(z.target)&&w(!1)};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[y]);const _=l.getMaxLengthForCountry(g.code),k=l.validatePhoneByCountryCode(d,g.code).isValid&&d.length>0,N=m=>{h(m),w(!1),j(z=>z.slice(0,l.getMaxLengthForCountry(m.code)))},T=()=>{k&&c(d,g)};return e.jsx(ge,{isOpen:t,onClose:r,showDragHandle:!0,closeButtonOutside:!0,ariaLabel:s,footer:e.jsx("div",{className:"px-4 pt-3 pb-5",children:e.jsx(V,{variant:"primary",size:"xl",className:"w-full rounded-xl bg-linear-to-b from-[#5eb98e] to-[#159169] focus-visible:ring-[#159169]",rightIcon:e.jsx(Te,{"aria-hidden":!0}),disabled:!k,onClick:T,children:o})}),children:e.jsxs("div",{className:"flex w-full flex-col gap-2 px-4 py-3",children:[e.jsx("p",{className:"text-[14px] leading-5 font-bold text-[#232323]",children:s}),n&&e.jsx("p",{className:"text-[12px] leading-4 font-medium text-[#6b7280]",children:n}),e.jsxs("div",{className:"mt-2 flex w-full items-start gap-2",children:[e.jsxs("div",{ref:L,className:"relative shrink-0",children:[e.jsxs("button",{type:"button",onClick:()=>w(m=>!m),"aria-expanded":y,"aria-haspopup":"listbox",className:"flex h-14 items-center gap-1 rounded-xl border border-[#d1d5db] bg-white pl-3 pr-2",children:[e.jsx("span",{className:"text-[20px] leading-7","aria-hidden":!0,children:l.getFlagEmoji(g.iso)}),e.jsx("span",{className:"text-[18px] leading-6 font-medium text-[#1d2125]",children:g.code}),e.jsx(ie,{size:24,className:"text-[#1d2125]","aria-hidden":!0})]}),y&&e.jsx("div",{role:"listbox",className:"absolute top-[calc(100%+4px)] left-0 z-10 max-h-60 w-64 overflow-y-auto rounded-xl border border-[#e5e7eb] bg-white py-1 shadow-lg",children:x.map(m=>e.jsxs("button",{type:"button",role:"option","aria-selected":m.iso===g.iso,onClick:()=>N(m),className:`flex w-full items-center gap-2 px-3 py-2 text-left hover:bg-[#f9fafb] ${m.iso===g.iso?"bg-[#fff9e9]":""}`,children:[e.jsx("span",{className:"text-[16px]","aria-hidden":!0,children:l.getFlagEmoji(m.iso)}),e.jsx("span",{className:"text-[14px] font-medium text-[#1d2125]",children:m.code}),e.jsx("span",{className:"truncate text-[12px] text-[#6b7280]",children:m.name})]},`${m.iso}-${m.code}`))})]}),e.jsx(ne,{type:"tel",inputMode:"numeric",value:d,maxLength:_,onChange:m=>j(m.replace(/\D/g,"").slice(0,_)),containerClassName:"w-auto flex-1 gap-0",wrapperClassName:"h-14 rounded-xl px-4",className:"text-[18px]"})]})]})})}const er=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function tr({isOpen:t,onClose:r,heading:s,subtext:n,confirmLabel:o,onConfirm:c,initialValue:u="",errorText:x="Please enter a valid email"}){const[f,g]=v.useState(u),[h,d]=v.useState(!1),j=f.trim(),y=er.test(j),w=h&&j.length>0&&!y,L=()=>{y&&c(j)};return e.jsx(l.BottomSheet,{isOpen:t,onClose:r,showDragHandle:!0,ariaLabel:s,footer:e.jsx("div",{className:"px-4 pt-3 pb-5",children:e.jsx(V,{variant:"primary",size:"xl",className:"w-full rounded-xl",rightIcon:e.jsx(Te,{"aria-hidden":!0}),disabled:!y,onClick:L,children:o})}),children:e.jsxs("div",{className:"flex w-full flex-col gap-2 px-4 py-3",children:[e.jsx("p",{className:"text-[14px] leading-5 font-bold text-[#232323]",children:s}),n&&e.jsx("p",{className:"text-[12px] leading-4 font-medium text-[#6b7280]",children:n}),e.jsx(ne,{type:"email",inputMode:"email",autoFocus:!0,value:f,placeholder:"you@example.com",error:w,supportingText:w?x:void 0,onChange:g,onBlur:()=>d(!0),containerClassName:"mt-2",wrapperClassName:"h-14 rounded-xl px-4",className:"text-[18px]"})]})})}function ar(t){return A({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"},child:[]}]})(t)}function rr(t){return A({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"},child:[]}]})(t)}const sr="https://srm-cdn.a4b.io/yoda/1788253585577.svg";function nr({chipNumber:t,chipLabel:r,isAdded:s,onEditClick:n,editButtonAriaLabel:o="Edit",onExpandClick:c,expandButtonAriaLabel:u="Expand",imageUrl:x,imageAlt:f,imageComponent:g,ratingLabel:h,bookedLabel:d,title:j,description:y,learnMoreLabel:w,onLearnMoreClick:L,learnMoreHref:_,dateLabel:k,locationLabel:N,priceInfoLabel:T,onPriceInfoClick:m,price:z,cta:$,className:R=""}){const[Y,re]=v.useState(!1),M=s||Y,H=M&&(h!=null||d!=null),K=M&&(k!=null||N!=null);return e.jsxs("div",{className:`flex w-full flex-col items-center overflow-hidden rounded-[20px] border border-[#e5e3fd] bg-white px-3 pb-4 ${M?"gap-3 shadow-[0px_0px_20px_0px_rgba(215,99,28,0.05)]":"gap-4 shadow-[0px_0px_20px_0px_rgba(215,99,28,0.12)]"} ${R}`,children:[e.jsxs("div",{className:`flex w-full items-center justify-between gap-1 px-3 ${M?"py-4":"pt-4"}`,children:[e.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-1.5 rounded-2xl px-3 py-1.5",style:{background:"linear-gradient(90deg, #fcccdf -29.79%, #fef5e9 50.11%, rgba(254, 245, 233, 0) 100%)"},children:[e.jsx("span",{className:"flex size-5 shrink-0 items-center justify-center rounded-[10px] bg-white text-[11.5px] font-semibold text-gray-700",children:t}),e.jsx("p",{className:"min-w-0 flex-1 text-xs font-semibold leading-4 text-[#632E06]",children:r})]}),e.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[n&&e.jsx("button",{type:"button",className:"flex size-8 shrink-0 items-center justify-center rounded-full border border-gray-200 bg-white p-0",onClick:n,"aria-label":o,children:e.jsx(ar,{"aria-hidden":!0,className:"size-[18px] text-[#1D2125]"})}),!s&&e.jsx("button",{type:"button",className:"flex size-8 shrink-0 items-center justify-center border-0 bg-transparent p-0",onClick:()=>{re(W=>!W),c?.()},"aria-label":u,"aria-expanded":Y,children:e.jsx(rr,{"aria-hidden":!0,className:`size-8 text-[#1D2125] ${Y?"":"-scale-y-100"}`})})]})]}),M&&x!=null&&e.jsx("div",{className:"-mx-3 h-35 self-stretch overflow-hidden",children:g?e.jsx(g,{src:x,alt:f??"",className:"size-full object-cover"}):e.jsx("img",{src:x,alt:f,className:"size-full object-cover"})}),H&&e.jsxs("div",{className:"-mx-3 -mt-3 flex items-center gap-2.5 self-stretch px-4 py-1",style:{background:"linear-gradient(to right, #f3f5e9 74.24%, rgba(241, 247, 255, 0) 100%)"},children:[h!=null&&e.jsx("p",{className:"whitespace-nowrap text-[10px] font-medium leading-[14px] text-[#4b5513]",children:h}),h!=null&&d!=null&&e.jsx("span",{className:"size-1.5 shrink-0 rounded-full bg-[#4b5513]","aria-hidden":!0}),d!=null&&e.jsx("p",{className:"whitespace-nowrap text-[10px] font-medium leading-[14px] text-[#4b5513]",children:d})]}),e.jsxs("div",{className:`flex w-full flex-col items-start gap-3 ${M&&x!=null?"mt-1":""}`,children:[e.jsxs("div",{className:"flex w-full flex-col items-start gap-1",children:[e.jsx("h3",{className:"text-base font-bold leading-[22px] text-[#361407]",children:j}),M&&y!=null&&e.jsx("p",{className:"w-full text-xs font-normal leading-4 text-gray-500",children:y})]}),M&&w!=null&&e.jsxs("a",{href:_,className:"inline-flex items-center gap-0.5 text-xs font-medium leading-4 text-[#F75E22] underline",onClick:L,children:[w,e.jsx(Ea,{"aria-hidden":!0,className:"size-3.5 text-[#F75E22]"})]}),K&&e.jsxs(e.Fragment,{children:[e.jsx("hr",{className:"w-full border-t border-gray-100"}),e.jsxs("div",{className:"flex w-full flex-col items-start gap-2",children:[k!=null&&e.jsxs("div",{className:"flex w-full items-center gap-2",children:[e.jsx(Oa,{"aria-hidden":!0,className:"size-3.5 shrink-0 text-gray-700"}),e.jsx("p",{className:"text-xs font-medium leading-4 text-gray-700",children:k})]}),N!=null&&e.jsxs("div",{className:"flex w-full items-center gap-2",children:[e.jsx("img",{src:sr,alt:"","aria-hidden":!0,className:"size-3.5 shrink-0"}),e.jsx("p",{className:"text-xs font-medium leading-4 text-gray-700",children:N})]})]})]}),e.jsx("hr",{className:"w-full border-t border-gray-100"}),e.jsxs("div",{className:"flex w-full items-center justify-between",children:[e.jsxs("div",{className:"flex flex-col items-start gap-0.5",children:[T!=null&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("p",{className:"whitespace-nowrap text-[10px] font-medium leading-[14px] text-gray-500",children:T}),m&&e.jsx("button",{type:"button",className:"flex size-4 shrink-0 items-center justify-center border-0 bg-transparent p-0",onClick:m,"aria-label":"More info",children:e.jsx(fe,{"aria-hidden":!0,className:"size-4 text-[#1D2125]"})})]}),e.jsx("p",{className:"whitespace-nowrap text-lg font-bold leading-6 text-[#159169]",children:z})]}),e.jsx("div",{className:"shrink-0",children:$})]})]})]})}const lr={primary:"border border-transparent pl-3 pr-4 text-white",secondary:"border border-[#159169] px-3 text-[#159169]",accent:"border border-transparent px-4 text-white"},ir={md:"h-10 gap-2 rounded-lg text-xs font-semibold leading-4",lg:"h-12 gap-2 rounded-xl text-base font-bold leading-[22px]"},or={primary:{backgroundImage:"linear-gradient(to bottom, #5eb98e, #159169)"},secondary:{backgroundImage:"linear-gradient(to bottom, #ffffff, #edf5f2)"},accent:{backgroundImage:"linear-gradient(to bottom, #f97e4e, #f75e22)"}};function cr({variant:t="primary",size:r="md",leftIcon:s,children:n,className:o="",style:c,type:u="button",...x}){return e.jsxs("button",{type:u,className:`inline-flex items-center justify-center py-2 disabled:cursor-not-allowed disabled:opacity-50 ${ir[r]} ${lr[t]} ${o}`,style:{...or[t],...c},...x,children:[s,n]})}function dr({className:t="size-5"}){return e.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":!0,className:t,xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M10 1.75C10.4142 1.75 10.75 2.08579 10.75 2.5V9.25H17.5C17.9142 9.25 18.25 9.58579 18.25 10C18.25 10.4142 17.9142 10.75 17.5 10.75H10.75V17.5C10.75 17.9142 10.4142 18.25 10 18.25C9.58579 18.25 9.25 17.9142 9.25 17.5V10.75H2.5C2.08579 10.75 1.75 10.4142 1.75 10C1.75 9.58579 2.08579 9.25 2.5 9.25H9.25V2.5C9.25 2.08579 9.58579 1.75 10 1.75Z",fill:"currentColor"})})}function ur({className:t="size-5"}){return e.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":!0,className:t,xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M16.1361 4.88627C16.4289 4.59345 16.9037 4.59355 17.1966 4.88627C17.4895 5.17916 17.4895 5.65394 17.1966 5.94682L8.03059 15.1138C7.89003 15.2544 7.6991 15.3334 7.50032 15.3335C7.30158 15.3335 7.11066 15.2542 6.97004 15.1138L2.80305 10.9468C2.51016 10.6539 2.51016 10.1792 2.80305 9.88627C3.09595 9.59339 3.57071 9.59338 3.8636 9.88627L7.49934 13.522L16.1361 4.88627Z",fill:"currentColor"})})}const $e={en:{heading:"Check the details to book your puja procedure",subtext:"These names and gotra will be taken by the priest",ancestorsLabel:"Names of the ancestors:",performerLabel:"Name of the performer:",gotraLabel:"Gotra",whatsappLabel:"Whatsapp number",editDetailsLabel:"Edit Details",payButtonTemplate:"Pay {amount}"},hi:{heading:"अपनी पूजा-विधि बुक करने के लिए जानकारी की जांच करें",subtext:"ये नाम और गोत्र पंडित जी द्वारा लिए जाएंगे",ancestorsLabel:"पितृजन के नाम:",performerLabel:"कर्ता के नाम:",gotraLabel:"गोत्र",whatsappLabel:"Whatsapp नंबर",editDetailsLabel:"जानकारी बदले",payButtonTemplate:"{amount} भुगतान करें"},te:{heading:"మీ పూజ విధి బుక్ చేయడానికి వివరాలు తనిఖీ చేయండి",subtext:"ఈ పేర్లు మరియు గోత్రాన్ని పండితులు చదువుతారు",ancestorsLabel:"పితరుల పేర్లు:",performerLabel:"పూజ చేసే వారి పేరు:",gotraLabel:"గోత్రం",whatsappLabel:"WhatsApp నంబర్",editDetailsLabel:"మార్చండి",payButtonTemplate:"{amount} చెల్లించండి"}},zt=t=>$e[t]??$e.en;function Ft({children:t}){return e.jsx("div",{className:"inline-flex shrink-0 items-center gap-1 rounded-full border border-[#e5e3fd] bg-[#f6f5ff] px-3 py-0.5",children:t})}function Dt({isOpen:t,onClose:r,locale:s="en",ancestors:n,kartaNames:o,gotra:c,whatsappNumber:u,amount:x,onEditDetailsClick:f,onProceedPayment:g,className:h}){const d=zt(s),j=d.payButtonTemplate.replace("{amount}",x);return e.jsx(ge,{isOpen:t,onClose:r,showDragHandle:!1,closeButtonOutside:!0,ariaLabel:d.heading,className:l.cn("rounded-t-[20px] bg-[#f7f8f9]",h),header:e.jsxs("div",{className:"flex w-full flex-col items-center gap-0.5 px-4 pt-4",children:[e.jsx("p",{className:"text-center text-[18px] leading-6 font-bold text-[#22272b]",children:d.heading}),e.jsx("p",{className:"text-center text-[14px] leading-5 font-normal text-[#6b7280]",children:d.subtext})]}),footer:e.jsxs("div",{className:"flex w-full items-center gap-3 px-4 pb-4",children:[e.jsx(V,{variant:"outline",size:"lg",className:"h-12 shrink-0 rounded-xl border-[#141414] text-[#1d2125] hover:bg-gray-50",onClick:f,children:d.editDetailsLabel}),e.jsx(V,{variant:"primary",size:"lg",className:"h-12 flex-1 rounded-xl border-0 bg-linear-to-b from-[#5eb98e] to-[#159169] focus-visible:ring-[#159169]",onClick:g,children:j})]}),children:e.jsx("div",{className:"flex w-full flex-col gap-4 px-4 py-3",children:e.jsxs("div",{className:"flex w-full flex-col gap-3 rounded-lg bg-white py-3",children:[e.jsxs("div",{className:"flex w-full flex-col gap-3 px-3",children:[e.jsx("p",{className:"text-[14px] leading-5 font-bold text-[#374151]",children:d.ancestorsLabel}),e.jsx("div",{className:"flex w-full flex-wrap items-center gap-2",children:n.map(y=>e.jsxs(Ft,{children:[e.jsx("span",{className:"text-[12px] leading-4 font-semibold text-[#374151]",children:y.value}),y.label&&e.jsxs("span",{className:"text-[10px] leading-3.5 font-medium text-[#6b7280]",children:["(",y.label,")"]})]},y.id))})]}),e.jsx("div",{className:"h-px w-full bg-[#e5e7eb]"}),e.jsxs("div",{className:"flex w-full flex-col gap-3 px-3",children:[e.jsx("p",{className:"text-[14px] leading-5 font-bold text-[#374151]",children:d.performerLabel}),e.jsx("div",{className:"flex w-full flex-wrap items-center gap-2",children:o.map((y,w)=>e.jsx(Ft,{children:e.jsxs("span",{className:"text-[12px] leading-4 font-semibold text-[#374151]",children:[w+1,". ",y]})},w))})]}),e.jsx("div",{className:"h-px w-full bg-[#e5e7eb]"}),e.jsxs("div",{className:"flex w-full flex-col gap-2 px-3",children:[e.jsxs("div",{className:"flex w-full items-start gap-1",children:[e.jsx("span",{className:"flex-1 text-[12px] leading-4 font-semibold text-[#374151]",children:d.gotraLabel}),e.jsx("span",{className:"shrink-0 text-[12px] leading-4 font-semibold text-[#374151]",children:c})]}),e.jsxs("div",{className:"flex w-full items-start gap-1",children:[e.jsx("span",{className:"flex-1 text-[12px] leading-4 font-semibold text-[#374151]",children:d.whatsappLabel}),e.jsx("span",{className:"shrink-0 text-[12px] leading-4 font-semibold text-[#374151]",children:u})]})]})]})})})}const We={en:{heading:"I do not know my Lineage(Gotra), what should I do?",body:"If you do not know your lineage (gotra), in this situation, you can consider your lineage as Kshyapa because Rishi Kshyapa is a sage whose descendants can be found in every caste. Therefore, he is considered a revered sage. The priest will chant these details during the worship.",okayLabel:"Okay",closeButtonAriaLabel:"Close"},hi:{heading:"मुझे अपना गोत्र नहीं पता, मुझे क्या करना चाहिए?",body:"अगर आप अपना गोत्र नहीं जानते हैं, तो ऐसी स्थिति में आप अपना गोत्र कश्यप मान सकते हैं, क्योंकि ऋषि कश्यप एक ऐसे ऋषि थे, जिनके वंशज हर जाति में पाए जाते हैं। इसलिए, उन्हें एक पूजनीय ऋषि माना जाता है। पूजा के दौरान पंडित जी कश्यप गोत्र का ही उच्चारण करेंगे।",okayLabel:"ठीक है",closeButtonAriaLabel:"बंद करें"},te:{heading:"నాకు నా గోత్రం తెలియదు, నేను ఏమి చేయాలి?",body:"మీకు మీ గోత్రం తెలియకపోతే, ఈ పరిస్థితిలో మీరు మీ గోత్రాన్ని కశ్యపగా భావించవచ్చు, ఎందుకంటే కశ్యప ఋషి వంశస్థులు ప్రతి కులంలో కనిపిస్తారు. అందువల్ల, ఆయనను ఒక పూజనీయ ఋషిగా భావిస్తారు. పూజ సమయంలో పండితుడు ఈ వివరాలను కశ్యప గోత్రంగానే ఉచ్చరిస్తారు.",okayLabel:"సరే",closeButtonAriaLabel:"మూసివేయండి"}},Ve=t=>We[t]??We.en;function Bt({isOpen:t,onClose:r,locale:s="en",className:n}){const o=Ve(s);return e.jsx(ge,{isOpen:t,onClose:r,showCloseButton:!1,showDragHandle:!1,ariaLabel:o.heading,className:l.cn("rounded-t-[20px]",n),header:e.jsxs("div",{className:"flex w-full items-start gap-3 px-4 pt-5 pb-3",children:[e.jsx("p",{className:"flex-1 text-[18px] leading-6 font-bold text-[#22272b]",children:o.heading}),e.jsx("button",{type:"button",onClick:r,"aria-label":o.closeButtonAriaLabel,className:"flex size-6 shrink-0 items-center justify-center border-0 bg-transparent p-0 text-[#22272b]",children:e.jsx(_a,{size:24,"aria-hidden":!0})})]}),footer:e.jsx("div",{className:"w-full px-4 pb-5",children:e.jsx(V,{variant:"primary",size:"xl",className:"w-full rounded-xl border-0 bg-linear-to-b from-[#5eb98e] to-[#159169] focus-visible:ring-[#159169]",onClick:r,children:o.okayLabel})}),children:e.jsx("p",{className:"w-full px-4 pb-3 text-[14px] leading-5.5 font-normal text-[#6b7280]",children:o.body})})}const Ue={en:{topBarTitle:"Fill in necessary details for Puja",backButtonAriaLabel:"Go back",whatsappNumberLabel:"Add your WhatsApp number",whatsappNumberPlaceholder:"0000000000",whatsappNumberHelperText:"Puja updates will be sent to this number",emailLabel:"Add your email",emailPlaceholder:"Enter your email",emailHelperText:"Puja updates will be sent to this email",kartaNameSectionTitle:"Enter the name of the people performing the puja for their ancestors (Karta)",kartaNameLabel:"Karta's name",kartaNameOptionalSuffix:"(optional)",kartaNamePlaceholder:"Name to be taken in the Puja",gotraFieldLabel:"Enter Karta’s Gotra (person performing puja)*",gotraFieldPlaceholder:"Enter Karta’s Gotra (if known)",gotraUnknownCheckboxLabel:"If you don’t know your Gotra, select this",gotraUnknownHelperText:"As per scriptures, the Sankalp can be taken with Kashyap Gotra, allowing you to receive the full benefit of the puja",ancestorNameSectionTitle:"Who is this puja for?",ancestorNameSectionSubtitle:"Enter the name of your ancestors",ancestorNameFieldSuffix:"name",sarvaPitruSectionSubtitle:"Your ancestors",sarvaPitruFieldValue:"For all ancestors",sarvaPitruHelperText:"This will be recited by the Pandit during puja",latePrefixLabel:"Late",proceedCtaLabel:"Proceed to fill details",kashyapGotraLabel:"Kashyap"},hi:{topBarTitle:"पूजा के लिए ज़रूरी विवरण भरे",backButtonAriaLabel:"वापस जाएं",whatsappNumberLabel:"अपना व्हाट्सएप नंबर जोड़ें",whatsappNumberPlaceholder:"0000000000",whatsappNumberHelperText:"पूजा से जुड़ी जानकारी इस नंबर पर भेजी जाएगी",emailLabel:"अपना ईमेल जोड़ें",emailPlaceholder:"अपना ईमेल दर्ज करें",emailHelperText:"पूजा से जुड़ी जानकारी इस ईमेल पर भेजी जाएगी",kartaNameSectionTitle:"पितरों के लिए पूजा करने वाले व्यक्ति का नाम भरे (कर्ता)",kartaNameLabel:"कर्ता का नाम",kartaNameOptionalSuffix:"(वैकल्पिक)",kartaNamePlaceholder:"पूजा में लिया जाने वाला नाम",gotraFieldLabel:"कर्ता का गोत्र भरें (पूजा करने वाले व्यक्ति का)*",gotraFieldPlaceholder:"कर्ता का गोत्र भरें (यदि ज्ञात हो)",gotraUnknownCheckboxLabel:"अगर आपको गोत्र नहीं पता तो इसे चुनें",gotraUnknownHelperText:"शास्त्रों के अनुसार कश्यप गोत्र से पूजा में संकल्प लिया जा सकता है इससे आपको पूजा का पूर्ण लाभ प्राप्त होता है",ancestorNameSectionTitle:"पूजा-विधि किन पितृ के लिए बुक कर रहे है?",ancestorNameSectionSubtitle:"पितृजन का नाम भरें",ancestorNameFieldSuffix:"का नाम",sarvaPitruSectionSubtitle:"पितृजन का नाम",sarvaPitruFieldValue:"सर्वपितृ के लिए",sarvaPitruHelperText:"यह पूजा-विधि के दौरान पंडित द्वारा उच्चारित किया जाएगा",latePrefixLabel:"स्व.",proceedCtaLabel:"आगे बढ़ें, और डिटेल्स भरें",kashyapGotraLabel:"कश्यप"},te:{topBarTitle:"పూజ కోసం అవసరమైన వివరాలు నమోదు చేయండి",backButtonAriaLabel:"వెనక్కి వెళ్ళండి",whatsappNumberLabel:"మీ వాట్సాప్ నంబర్ జోడించండి",whatsappNumberPlaceholder:"0000000000",whatsappNumberHelperText:"పూజ నవీకరణలు ఈ నంబర్కు పంపబడతాయి",emailLabel:"మీ ఇమెయిల్ జోడించండి",emailPlaceholder:"మీ ఇమెయిల్ నమోదు చేయండి",emailHelperText:"పూజ నవీకరణలు ఈ ఇమెయిల్కు పంపబడతాయి",kartaNameSectionTitle:"పితరుల కోసం పూజ చేసే వ్యక్తుల పేరు నమోదు చేయండి (కర్త)",kartaNameLabel:"కర్త పేరు",kartaNameOptionalSuffix:"(ఐచ్ఛికం)",kartaNamePlaceholder:"పూజలో తీసుకోవలసిన పేరు",gotraFieldLabel:"*కర్త గోత్రం నమోదు చేయండి (పూజ చేసే వ్యక్తి)",gotraFieldPlaceholder:"కర్త గోత్రం నమోదు చేయండి (తెలిస్తే)",gotraUnknownCheckboxLabel:"మీ గోత్రం తెలియకపోతే, ఇది ఎంచుకోండి",gotraUnknownHelperText:"శాస్త్రాల ప్రకారం, సంకల్పం కశ్యప గోత్రంతో చేయవచ్చు, ఇది పూజ యొక్క పూర్తి ఫలం పొందడానికి అనుమతిస్తుంది",ancestorNameSectionTitle:"ఈ పూజ ఎవరి కోసం?",ancestorNameSectionSubtitle:"మీ పితరుల పేరు నమోదు చేయండి",ancestorNameFieldSuffix:"పేరు",sarvaPitruSectionSubtitle:"మీ పితరులు",sarvaPitruFieldValue:"సర్వ పితరుల కోసం",sarvaPitruHelperText:"ఇది పూజ సమయంలో పండితుడు ఉచ్చరిస్తారు",latePrefixLabel:"దివంగత",proceedCtaLabel:"వివరాలు నమోదు చేయండి",kashyapGotraLabel:"కశ్యప"}},Rt=t=>Ue[t]??Ue.en,It={en:["1st","2nd","3rd","4th","5th","6th","7th","8th","9th","10th"],hi:["पहले","दूसरे","तीसरे","चौथे","पांचवें","छठे","सातवें","आठवें","नौवें","दसवें"],te:["1వ","2వ","3వ","4వ","5వ","6వ","7వ","8వ","9వ","10వ"]},fr={en:"th",hi:"वें",te:"వ"},Mt=(t,r)=>{const s=r in It?r:"en";return It[s][t-1]??`${t}${fr[s]}`},He=40,Ge="+91",xr=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function hr({locale:t="en",values:r,onValuesChange:s,isGlobal:n=!1,gotraOptions:o=[],isSarvaPitru:c=!1,onBackClick:u,amount:x,ritualsCountLabel:f,onPriceInfoClick:g,showPriceInfoIcon:h=!0,canProceed:d,proceedCtaLabel:j,proceedButtonProps:y,onProceedPayment:w,className:L}){const[_,k]=v.useState(!1),[N,T]=v.useState(!1),m=Rt(t),z=Ve(t),$=S=>{const I=Mt(S+1,t);return S===0?`*${I} ${m.kartaNameLabel}`:`${I} ${m.kartaNameLabel} ${m.kartaNameOptionalSuffix}`},R=S=>s({...r,...S}),Y=(S,I)=>{const ee=[...r.kartaNames];ee[S]=I,R({kartaNames:ee})},re=(S,I)=>{R({ancestors:r.ancestors.map(ee=>ee.id===S?{...ee,value:I}:ee)})},[M,H]=v.useState(!1),K=v.useRef(null);v.useEffect(()=>{if(!M)return;const S=I=>{K.current&&!K.current.contains(I.target)&&H(!1)};return document.addEventListener("mousedown",S),()=>document.removeEventListener("mousedown",S)},[M]);const W=o.filter(S=>S.toLowerCase().includes(r.gotra.trim().toLowerCase())),G=S=>{R({gotra:S}),H(!1)},ae=()=>{const S=!r.isGotraUnknown;R({isGotraUnknown:S,gotra:S?m.kashyapGotraLabel:r.gotra})},J=l.getMaxLengthForCountry(Ge),Q=l.validatePhoneByCountryCode(r.whatsappNumber,Ge).isValid,X=xr.test(r.email),se=r.whatsappNumber.length>0&&!Q,Ne=r.email.length>0&&!X,we=(n?X:r.whatsappNumber.trim().length>0&&Q)&&r.kartaNames[0].trim().length>0&&r.gotra.trim().length>0&&r.ancestors.every(S=>S.value.trim().length>0),ke=d??we,Ce=r.gotra.trim().length>0?r.gotra:m.kashyapGotraLabel,Ye=n?r.email:r.whatsappNumber;return e.jsxs("div",{className:l.cn("flex min-h-screen w-full flex-col bg-linear-to-b from-[5.546%] from-[#fbe9f0] to-[12.146%] to-[#f7f8f9]",L),children:[e.jsxs("div",{className:"flex w-full items-center gap-3 border-b border-[#f3f4f6] bg-white px-4 py-3 drop-shadow-[0px_0px_5px_rgba(0,0,0,0.08)] ",children:[e.jsx("button",{type:"button",onClick:u,"aria-label":m.backButtonAriaLabel,className:"flex size-8 shrink-0 items-center justify-center rounded-lg border-0 bg-transparent p-0 drop-shadow-[0px_0px_5px_rgba(0,0,0,0.1)]",children:e.jsx(Oe,{className:"size-6 text-[#1d2125]","aria-hidden":!0})}),e.jsx("p",{className:"text-[18px] leading-5 font-bold text-[#1d2125]",children:m.topBarTitle})]}),e.jsx("div",{className:"flex w-full flex-1 flex-col items-center gap-4 px-4 py-4",children:e.jsxs("div",{className:"flex w-full max-w-md flex-col gap-4",children:[e.jsxs("div",{className:"flex w-full flex-col gap-2 rounded-2xl border border-[#f3f4f6] bg-white p-3",children:[e.jsx("p",{className:"text-[14px] leading-5 font-semibold text-[#1d2125]",children:n?m.emailLabel:m.whatsappNumberLabel}),n?e.jsx(ne,{type:"email",inputMode:"email",value:r.email,placeholder:m.emailPlaceholder,error:Ne,onChange:S=>R({email:S}),containerClassName:"w-full gap-0",wrapperClassName:"h-14 rounded-xl px-4",className:"text-[18px]"}):e.jsxs("div",{className:"flex w-full items-start gap-1",children:[e.jsxs("div",{className:"flex h-14 shrink-0 items-center gap-1 rounded-xl border border-[#d1d5db] bg-white pl-3 pr-2",children:[e.jsx("span",{className:"text-[20px] leading-7","aria-hidden":!0,children:l.getFlagEmoji("IN")}),e.jsx("span",{className:"text-[18px] leading-6 font-medium text-[#1d2125]",children:Ge})]}),e.jsx(ne,{type:"tel",inputMode:"numeric",value:r.whatsappNumber,placeholder:m.whatsappNumberPlaceholder,maxLength:J,error:se,onChange:S=>R({whatsappNumber:S.replace(/\D/g,"").slice(0,J)}),containerClassName:"w-auto flex-1 gap-0",wrapperClassName:"h-14 rounded-xl px-4",className:"text-[18px]"})]}),e.jsx("p",{className:"px-3 text-[12px] leading-4 font-medium text-[#6b7280]",children:n?m.emailHelperText:m.whatsappNumberHelperText})]}),e.jsxs("div",{className:"flex w-full flex-col gap-6 rounded-2xl border border-[#f3f4f6] bg-white p-3",children:[e.jsx("p",{className:"text-[16px] leading-[22px] font-bold text-[#22272b]",children:m.kartaNameSectionTitle}),e.jsx("div",{className:"flex w-full flex-col gap-2.5",children:r.kartaNames.map((S,I)=>e.jsx(ne,{label:$(I),placeholder:m.kartaNamePlaceholder,value:S,maxLength:He,showCharCount:!0,wrapperClassName:l.cn("h-12 rounded-xl",I===0&&"bg-[#f3f4f6]"),onChange:ee=>Y(I,ee)},I))})]}),e.jsxs("div",{className:"flex w-full flex-col gap-6 rounded-2xl border border-[#f3f4f6] bg-white p-3",children:[e.jsxs("div",{ref:K,className:"relative flex w-full flex-col gap-2",children:[e.jsx("label",{htmlFor:"karta-gotra",className:"text-[14px] leading-5 font-semibold text-[#1d2125]",children:m.gotraFieldLabel}),e.jsxs("div",{className:"flex h-12 w-full items-center gap-2 rounded-xl border border-[#d1d5db] bg-white px-3 focus-within:ring-2 focus-within:ring-[#f75e22]/40",children:[e.jsx("input",{id:"karta-gotra",value:r.gotra,placeholder:m.gotraFieldPlaceholder,maxLength:He,autoComplete:"off",onFocus:()=>H(!0),onChange:S=>{R({gotra:S.target.value}),H(!0)},className:"w-full min-w-0 flex-1 border-0 bg-transparent p-0 text-[16px] leading-5.5 font-medium text-[#374151] placeholder:text-[#ced1d7] focus:outline-none focus:ring-0"}),e.jsx("button",{type:"button",onClick:()=>T(!0),"aria-label":z.heading,className:"flex size-6 shrink-0 items-center justify-center border-0 bg-transparent p-0 text-[#9ca3af]",children:e.jsx(fe,{size:24,"aria-hidden":!0})})]}),M&&W.length>0&&e.jsx("div",{role:"listbox",className:"absolute top-[calc(100%+4px)] left-0 z-10 max-h-60 w-full overflow-y-auto rounded-xl border border-[#e5e7eb] bg-white py-1 shadow-lg",children:W.map(S=>e.jsx("button",{type:"button",role:"option","aria-selected":S===r.gotra,onClick:()=>G(S),className:l.cn("flex w-full items-center px-3 py-2 text-left text-[14px] font-medium text-[#1d2125] hover:bg-[#f9fafb]",S===r.gotra&&"bg-[#fff9e9]"),children:S},S))})]}),e.jsxs("div",{className:"flex w-full flex-col gap-1",children:[e.jsxs("button",{type:"button",onClick:ae,"aria-pressed":r.isGotraUnknown,className:"flex items-center gap-1 border-0 bg-transparent p-0",children:[r.isGotraUnknown?e.jsx(Ta,{size:24,className:"shrink-0 text-[#f75e22]","aria-hidden":!0}):e.jsx(La,{size:24,className:"shrink-0 text-[#d1d5db]","aria-hidden":!0}),e.jsx("span",{className:"text-[12px] leading-4 font-semibold text-[#374151]",children:m.gotraUnknownCheckboxLabel})]}),e.jsx("p",{className:"text-[10px] leading-[14px] font-medium text-[#6b7280]",children:m.gotraUnknownHelperText})]})]}),e.jsxs("div",{className:"flex w-full flex-col gap-2 rounded-2xl border border-[#f3f4f6] bg-white",children:[e.jsxs("div",{className:"flex w-full items-center gap-2.5 px-3 pt-3 pb-2",children:[e.jsx(xe,{size:"sm",icon:e.jsx(wa,{size:20,className:"text-[#f38415]","aria-hidden":!0})}),e.jsxs("div",{className:"flex flex-1 flex-col",children:[e.jsx("p",{className:"text-[16px] leading-[22px] font-bold text-[#22272b]",children:m.ancestorNameSectionTitle}),e.jsx("p",{className:"text-[14px] leading-5 font-normal text-[#6b7280]",children:c?m.sarvaPitruSectionSubtitle:m.ancestorNameSectionSubtitle})]})]}),e.jsxs("div",{className:"flex w-full flex-col gap-2.5 p-3 pt-0",children:[c&&e.jsxs("div",{className:"flex w-full flex-col items-start gap-1",children:[e.jsx("div",{className:"flex h-12 w-full items-center rounded-xl border border-[#d1d5db] bg-[#f3f4f6] px-3",children:e.jsx("span",{className:"text-[16px] leading-5.5 font-medium text-[#374151]",children:m.sarvaPitruFieldValue})}),e.jsx("p",{className:"px-3 text-[12px] leading-4 font-medium text-[#6b7280]",children:m.sarvaPitruHelperText})]}),r.ancestors.map(S=>e.jsx(ne,{label:`*${S.label} ${m.ancestorNameFieldSuffix}`,value:S.value,prefix:m.latePrefixLabel,placeholder:m.kartaNamePlaceholder,maxLength:He,showCharCount:!0,wrapperClassName:"h-12 rounded-xl",onChange:I=>re(S.id,I)},S.id))]})]})]})}),e.jsx("div",{className:"sticky bottom-0 w-full",children:e.jsx(je,{amount:x,subtitle:f,onInfoClick:g,showInfoIcon:h,proceedLabel:j??m.proceedCtaLabel,onProceed:()=>k(!0),proceedButtonProps:{disabled:!ke,...y}})}),e.jsx(Dt,{isOpen:_,onClose:()=>k(!1),onEditDetailsClick:()=>k(!1),locale:t,ancestors:c?[{id:"sarva-pitru",label:"",value:m.sarvaPitruFieldValue},...r.ancestors]:r.ancestors,kartaNames:r.kartaNames,gotra:Ce,whatsappNumber:Ye,amount:x,onProceedPayment:()=>{k(!1),w()}}),e.jsx(Bt,{isOpen:N,onClose:()=>T(!1),locale:t})]})}function pr(t=3,r=[]){return{whatsappNumber:"",email:"",kartaNames:Array.from({length:Math.max(1,t)},()=>""),gotra:"",isGotraUnknown:!1,ancestors:r}}const $t="https://srm-cdn.a4b.io/yoda/1788256892735.svg",mr="https://srm-cdn.a4b.io/yoda/1788256910547.svg",br="https://srm-cdn.a4b.io/yoda/1788256867970.svg",gr="https://srm-cdn.a4b.io/yoda/1788256921651.svg",vr="https://srm-cdn.a4b.io/yoda/1788256935709.svg",jr="https://srm-cdn.a4b.io/yoda/1788256949665.svg";function yr({variant:t}){return e.jsxs("div",{className:"relative size-10 shrink-0 overflow-clip rounded-full",children:[t==="pandits"&&e.jsxs(e.Fragment,{children:[e.jsx("img",{src:$t,alt:"","aria-hidden":!0,className:"absolute left-[-6px] top-[12.2px] size-[25.6px]"}),e.jsx("img",{src:$t,alt:"","aria-hidden":!0,className:"absolute left-[21px] top-[12.2px] size-[25.6px]"}),e.jsx("img",{src:mr,alt:"","aria-hidden":!0,className:"absolute left-[1.98px] top-[5.98px] size-[36.045px]"})]}),t==="gotra"&&e.jsxs("div",{className:"absolute left-[7.83px] top-[7.83px] size-[23.94px] overflow-clip",children:[e.jsx("div",{className:"absolute inset-[31.43%_30.92%_20.12%_20.62%] bg-[#28345a]"}),e.jsx("div",{className:"absolute inset-[0_9.1%_0_9.07%]",children:e.jsx("img",{src:br,alt:"","aria-hidden":!0,className:"absolute inset-0 size-full"})})]}),t==="video"&&e.jsxs("div",{className:"absolute left-[5.58px] top-[5.58px] size-[28.836px] overflow-clip",children:[e.jsx("div",{className:"absolute inset-[9.31%_4.02%_27.36%_4.17%]",children:e.jsx("img",{src:gr,alt:"","aria-hidden":!0,className:"absolute inset-0 size-full"})}),e.jsx("div",{className:"absolute inset-[30.03%_39.59%_48.06%_40.83%]",children:e.jsx("img",{src:vr,alt:"","aria-hidden":!0,className:"absolute inset-0 size-full"})}),e.jsx("div",{className:"absolute inset-[80%_4.16%_9.17%_5.42%]",children:e.jsx("img",{src:jr,alt:"","aria-hidden":!0,className:"absolute inset-0 size-full"})})]})]})}const Nr="https://srm-cdn.a4b.io/yoda/1788256961374.svg",Wt="https://srm-cdn.a4b.io/yoda/1788256971870.svg";function wr({badgeLabel:t,headingPrefix:r,ritualCount:s,ritualCountLabel:n,headingSuffix:o,trustItems:c}){return e.jsxs("section",{className:"flex w-full flex-col items-center gap-3 rounded-b-[32px] border-b-2 border-[#FCCF9A] bg-linear-to-b from-white to-[#FFEFDB] px-5 py-4",children:[e.jsxs("div",{className:"flex flex-col items-center gap-2",children:[e.jsxs("div",{className:"relative flex size-14 items-center justify-center",children:[e.jsx("img",{src:Wt,alt:"","aria-hidden":!0,className:"pointer-events-none absolute inset-0 size-full",style:{maskImage:"linear-gradient(to bottom, black 0%, black 45%, transparent 70%)",WebkitMaskImage:"linear-gradient(to bottom, black 0%, black 45%, transparent 70%)"}}),e.jsx("img",{src:Wt,alt:"","aria-hidden":!0,className:"pointer-events-none absolute inset-0 size-full blur-sm",style:{maskImage:"linear-gradient(to bottom, transparent 45%, black 70%, black 100%)",WebkitMaskImage:"linear-gradient(to bottom, transparent 45%, black 70%, black 100%)"}}),e.jsx("img",{src:Nr,alt:"Sri Mandir",className:"relative z-10 h-[53px] w-auto object-contain"})]}),e.jsxs("p",{className:"text-xs font-semibold text-[#d51f68]",children:["✦ ",t," ✦"]})]}),e.jsxs("p",{className:"px-4 text-center text-[18px] font-bold leading-6 text-[#22272b]",children:[r,s," ",n," ",o]}),e.jsx("div",{className:"flex w-full items-start justify-center gap-3",children:c.map(u=>e.jsxs("div",{className:"flex w-25 flex-col items-center gap-1 py-2",children:[e.jsx(yr,{variant:u.variant}),e.jsx("p",{className:"w-full text-center text-[10px] font-medium leading-3.5 text-[#AD540A]",children:u.text})]},u.variant))})]})}function kr(t){return A({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M64.12,147.8a4,4,0,0,1-4,4.2H16a8,8,0,0,1-7.8-6.17,8.35,8.35,0,0,1,1.62-6.93A67.79,67.79,0,0,1,37,117.51a40,40,0,1,1,66.46-35.8,3.94,3.94,0,0,1-2.27,4.18A64.08,64.08,0,0,0,64,144C64,145.28,64,146.54,64.12,147.8Zm182-8.91A67.76,67.76,0,0,0,219,117.51a40,40,0,1,0-66.46-35.8,3.94,3.94,0,0,0,2.27,4.18A64.08,64.08,0,0,1,192,144c0,1.28,0,2.54-.12,3.8a4,4,0,0,0,4,4.2H240a8,8,0,0,0,7.8-6.17A8.33,8.33,0,0,0,246.17,138.89Zm-89,43.18a48,48,0,1,0-58.37,0A72.13,72.13,0,0,0,65.07,212,8,8,0,0,0,72,224H184a8,8,0,0,0,6.93-12A72.15,72.15,0,0,0,157.19,182.07Z"},child:[]}]})(t)}const qe={en:{title:"Who is this puja for?",subtitle:"Your ancestors",value:"For all ancestors",helperText:"This will be recited by the Pandit during puja"},hi:{title:"पूजा-विधि किन पितृ के लिए बुक कर रहे है?",subtitle:"पितृजन का नाम",value:"सर्वपितृ के लिए",helperText:"यह पूजा-विधि के दौरान पंडित द्वारा उच्चारित किया जाएगा"}},Vt=t=>qe[t]??qe.en,Ut=v.forwardRef(({locale:t="en",title:r,subtitle:s,value:n,helperText:o,icon:c,className:u,headerClassName:x,valueBoxClassName:f,helperTextClassName:g,...h},d)=>{const j=Vt(t);return e.jsxs("div",{ref:d,className:l.cn("rounded-2xl border border-gray-100 bg-white p-4 shadow-sm",u),...h,children:[e.jsxs("div",{className:l.cn("flex items-center gap-3",x),children:[e.jsx(xe,{icon:c??e.jsx(kr,{size:22,"aria-hidden":!0}),size:"lg"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-lg leading-6 font-bold text-[#1d2125]",children:r??j.title}),e.jsx("p",{className:"mt-0.5 text-base leading-5 text-gray-500",children:s??j.subtitle})]})]}),e.jsx("div",{className:l.cn("mt-4 rounded-xl border border-gray-200 bg-gray-50 px-3.5 py-3.5",f),children:e.jsx("span",{className:"text-lg leading-6 font-medium text-gray-700",children:n??j.value})}),e.jsx("p",{className:l.cn("mt-3 text-sm leading-4.5 text-gray-500",g),children:o??j.helperText})]})});Ut.displayName="SarvaPitruCard",Object.defineProperty(p,"cn",{enumerable:!0,get:()=>l.cn}),p.AudioQuestionCard=Ma,p.BOOKING_SUMMARY_BANNER_DEFAULT_COPY=Re,p.BillDetails=At,p.BookingSummaryBanner=Tt,p.Button=V,p.CHECKOUT_BAR_DEFAULT_COPY=De,p.CONFIRM_PUJA_DETAILS_MODAL_DEFAULT_COPY=$e,p.CartReviewAddedBadge=Ga,p.CartReviewChangeButton=Ha,p.CartReviewItem=Fe,p.CartReviewMandapItem=yt,p.CartView=Za,p.CheckIcon=ur,p.CheckoutBar=je,p.Chip=pt,p.ConfinedBottomSheet=ge,p.ConfirmPujaDetailsModal=Dt,p.DatePickerSheet=Qa,p.EmailSheet=tr,p.FAQAccordion=Aa,p.FAQSection=xt,p.GOTRA_INFO_MODAL_DEFAULT_COPY=We,p.GotraInfoModal=Bt,p.IconBadge=xe,p.L2Card=nr,p.LanguageSwitcher=Ae,p.OutcomeButton=cr,p.OutcomeSummary=wr,p.PACKAGE_SELECT_DEFAULT_COPY=Be,p.PUJA_DETAILS_FORM_DEFAULT_COPY=Ue,p.PackageSelect=Ya,p.PhoneNumberSheet=Xa,p.PlusIcon=dr,p.PujaDetailsForm=hr,p.QuantityStepper=Ua,p.SARVA_PITRU_CARD_DEFAULT_COPY=qe,p.SarvaPitruCard=Ut,p.SelectorCard=ze,p.SelectorCardEditableField=Wa,p.SelectorCardInfoRow=Va,p.SelectorCardNote=vt,p.SelectorCardPriceBadge=gt,p.ServiceOfferCard=Nt,p.StepProgressHeader=Da,p.TestimonialCard=Ca,p.TextField=ne,p.TithiPickerSheet=Ja,p.TopBar=Fa,p.TrustBadgesBar=Lt,p.VideoPlayer=ht,p.buttonVariants=ot,p.createEmptyPujaDetailsFormValues=pr,p.getBookingSummaryBannerDefaultCopy=Et,p.getCheckoutBarDefaultCopy=St,p.getConfirmPujaDetailsModalDefaultCopy=zt,p.getGotraInfoModalDefaultCopy=Ve,p.getKartaOrdinalLabel=Mt,p.getPackageSelectDefaultCopy=Pt,p.getPujaDetailsFormDefaultCopy=Rt,p.getSarvaPitruCardDefaultCopy=Vt,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})}));
|
|
14
|
+
<%s key={someKey} {...props} />`,Xe,ne,qr,ne),ra[ne+Xe]=!0}}return a===n?Vr(D):$r(D),D}}function Ur(a,i,b){return sa(a,i,b,!0)}function Hr(a,i,b){return sa(a,i,b,!1)}var Wr=Hr,Gr=Ur;de.Fragment=n,de.jsx=Wr,de.jsxs=Gr})()),de}var at;function ua(){return at||(at=1,process.env.NODE_ENV==="production"?he.exports=ca():he.exports=da()),he.exports}var e=ua(),rt={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},st=v.createContext&&v.createContext(rt),fa=["attr","size","title"];function xa(t,r){if(t==null)return{};var s,n,o=ha(t,r);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(n=0;n<c.length;n++)s=c[n],r.indexOf(s)===-1&&{}.propertyIsEnumerable.call(t,s)&&(o[s]=t[s])}return o}function ha(t,r){if(t==null)return{};var s={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(r.indexOf(n)!==-1)continue;s[n]=t[n]}return s}function pe(){return pe=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var s=arguments[r];for(var n in s)({}).hasOwnProperty.call(s,n)&&(t[n]=s[n])}return t},pe.apply(null,arguments)}function nt(t,r){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),s.push.apply(s,n)}return s}function me(t){for(var r=1;r<arguments.length;r++){var s=arguments[r]!=null?arguments[r]:{};r%2?nt(Object(s),!0).forEach(function(n){pa(t,n,s[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):nt(Object(s)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(s,n))})}return t}function pa(t,r,s){return(r=ma(r))in t?Object.defineProperty(t,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[r]=s,t}function ma(t){var r=ba(t,"string");return typeof r=="symbol"?r:r+""}function ba(t,r){if(typeof t!="object"||!t)return t;var s=t[Symbol.toPrimitive];if(s!==void 0){var n=s.call(t,r);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function lt(t){return t&&t.map((r,s)=>v.createElement(r.tag,me({key:s},r.attr),lt(r.child)))}function A(t){return r=>v.createElement(ga,pe({attr:me({},t.attr)},r),lt(t.child))}function ga(t){var r=s=>{var n=t.attr,o=t.size,c=t.title,u=xa(t,fa),x=o||s.size||"1em",f;return s.className&&(f=s.className),t.className&&(f=(f?f+" ":"")+t.className),v.createElement("svg",pe({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},s.attr,n,u,{className:f,style:me(me({color:t.color||s.color},s.style),t.style),height:x,width:x,xmlns:"http://www.w3.org/2000/svg"}),c&&v.createElement("title",null,c),t.children)};return st!==void 0?v.createElement(st.Consumer,null,s=>r(s)):r(rt)}function va(t){return A({attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M16 8c-0.020-1.045-0.247-2.086-0.665-3.038-0.417-0.953-1.023-1.817-1.766-2.53s-1.624-1.278-2.578-1.651c-0.953-0.374-1.978-0.552-2.991-0.531-1.013 0.020-2.021 0.24-2.943 0.646-0.923 0.405-1.758 0.992-2.449 1.712s-1.237 1.574-1.597 2.497c-0.361 0.923-0.533 1.914-0.512 2.895 0.020 0.981 0.234 1.955 0.627 2.847 0.392 0.892 0.961 1.7 1.658 2.368s1.523 1.195 2.416 1.543c0.892 0.348 1.851 0.514 2.799 0.493 0.949-0.020 1.89-0.227 2.751-0.608 0.862-0.379 1.642-0.929 2.287-1.604s1.154-1.472 1.488-2.335c0.204-0.523 0.342-1.069 0.415-1.622 0.019 0.001 0.039 0.002 0.059 0.002 0.552 0 1-0.448 1-1 0-0.028-0.001-0.056-0.004-0.083h0.004zM14.411 10.655c-0.367 0.831-0.898 1.584-1.55 2.206s-1.422 1.112-2.254 1.434c-0.832 0.323-1.723 0.476-2.608 0.454-0.884-0.020-1.759-0.215-2.56-0.57-0.801-0.354-1.526-0.867-2.125-1.495s-1.071-1.371-1.38-2.173c-0.31-0.801-0.457-1.66-0.435-2.512s0.208-1.694 0.551-2.464c0.342-0.77 0.836-1.468 1.441-2.044s1.321-1.029 2.092-1.326c0.771-0.298 1.596-0.438 2.416-0.416s1.629 0.202 2.368 0.532c0.74 0.329 1.41 0.805 1.963 1.387s0.988 1.27 1.272 2.011c0.285 0.74 0.418 1.532 0.397 2.32h0.004c-0.002 0.027-0.004 0.055-0.004 0.083 0 0.516 0.39 0.94 0.892 0.994-0.097 0.544-0.258 1.075-0.481 1.578z"},child:[]}]})(t)}const it=na.cva("appearance-none inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg font-semibold transition-colors disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#f75e22] focus-visible:ring-offset-2",{variants:{variant:{primary:"border-0 bg-gradient-to-b from-[#f97e4e] to-[#f75e22] text-white hover:opacity-90",secondary:"border border-[#f75e22] bg-white text-[#f75e22] hover:bg-orange-50",outline:"border border-gray-300 bg-transparent text-gray-900 hover:bg-gray-50",ghost:"border-0 bg-transparent text-gray-900 hover:bg-gray-100"},size:{xs:"h-6 px-2 text-xs",sm:"h-8 px-3 text-sm",md:"h-10 px-4 text-sm",lg:"h-12 px-5 text-base",xl:"h-14 px-6 text-base"},iconOnly:{true:"rounded-full p-0",false:""}},compoundVariants:[{iconOnly:!0,size:"xs",className:"w-6"},{iconOnly:!0,size:"sm",className:"w-8"},{iconOnly:!0,size:"md",className:"w-10"},{iconOnly:!0,size:"lg",className:"w-12"},{iconOnly:!0,size:"xl",className:"w-14"}],defaultVariants:{variant:"primary",size:"lg",iconOnly:!1}}),V=oa.forwardRef(({className:t,variant:r,size:s,iconOnly:n,loading:o=!1,disabled:c,leftIcon:u,rightIcon:x,children:f,type:g="button",...h},d)=>e.jsx("button",{ref:d,type:g,disabled:c||o,className:l.cn(it({variant:r,size:s,iconOnly:n}),t),...h,children:o?e.jsx(va,{className:"animate-spin","aria-hidden":!0}):e.jsxs(e.Fragment,{children:[u,f,x]})}));V.displayName="Button";function be(t){return t.isOpen?e.jsx("div",{className:"fixed inset-0 z-[1100] mx-auto w-full max-w-md",style:{transform:"translateZ(0)"},children:e.jsx(l.BottomSheet,{...t})}):null}function ja(t){return A({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zm233.32-51.08c-11.17-7.33-26.18-4.24-33.51 6.95-7.34 11.17-4.22 26.18 6.95 33.51 66.27 43.49 105.82 116.6 105.82 195.58 0 78.98-39.55 152.09-105.82 195.58-11.17 7.32-14.29 22.34-6.95 33.5 7.04 10.71 21.93 14.56 33.51 6.95C528.27 439.58 576 351.33 576 256S528.27 72.43 448.35 19.97zM480 256c0-63.53-32.06-121.94-85.77-156.24-11.19-7.14-26.03-3.82-33.12 7.46s-3.78 26.21 7.41 33.36C408.27 165.97 432 209.11 432 256s-23.73 90.03-63.48 115.42c-11.19 7.14-14.5 22.07-7.41 33.36 6.51 10.36 21.12 15.14 33.12 7.46C447.94 377.94 480 319.54 480 256zm-141.77-76.87c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.86z"},child:[]}]})(t)}function ya(t){return A({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zM461.64 256l45.64-45.64c6.3-6.3 6.3-16.52 0-22.82l-22.82-22.82c-6.3-6.3-16.52-6.3-22.82 0L416 210.36l-45.64-45.64c-6.3-6.3-16.52-6.3-22.82 0l-22.82 22.82c-6.3 6.3-6.3 16.52 0 22.82L370.36 256l-45.63 45.63c-6.3 6.3-6.3 16.52 0 22.82l22.82 22.82c6.3 6.3 16.52 6.3 22.82 0L416 301.64l45.64 45.64c6.3 6.3 16.52 6.3 22.82 0l22.82-22.82c6.3-6.3 6.3-16.52 0-22.82L461.64 256z"},child:[]}]})(t)}function Na(t){return A({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"},child:[]}]})(t)}function ot(t){return A({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"},child:[]}]})(t)}function ct(t){return A({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"},child:[]}]})(t)}function wa(t){return A({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"},child:[]}]})(t)}const ka=({quote:t,authorName:r,authorAvatarUrl:s,meta:n,rating:o=5,className:c="",...u})=>e.jsxs("div",{className:l.cn("flex flex-col gap-3 rounded-lg bg-[#fef5e9] px-4 py-3.75",c),...u,children:[e.jsx("p",{className:"w-full wrap-break-word text-xs font-normal text-[#1d2125]",children:t}),e.jsxs("div",{className:"flex w-full items-start gap-x-2.5",children:[s?e.jsx("img",{src:s,alt:"",className:"size-8 shrink-0 rounded-full object-cover"}):e.jsx("div",{className:"size-8 shrink-0 rounded-full",style:{background:"linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%)"},"aria-hidden":!0}),e.jsxs("div",{className:"flex flex-col min-w-0 flex-1 gap-0.5",children:[e.jsxs("div",{className:"flex items-center gap-1.75",children:[e.jsx("span",{className:"truncate text-sm font-bold text-[#1d2125]",children:r}),e.jsx("span",{className:"flex items-center gap-1 text-amber-500","aria-hidden":!0,children:Array.from({length:Math.max(0,Math.min(5,o))},(x,f)=>e.jsx(ot,{size:14},f))})]}),e.jsx("p",{className:"text-xs font-medium text-gray-500",children:n})]})]})]});function Ca(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(t)}function _a(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"},child:[]}]})(t)}function dt(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"5",x2:"12",y2:"19"},child:[]},{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]}]})(t)}function La(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]}]})(t)}function ue(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12.01",y2:"8"},child:[]}]})(t)}function ut(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"},child:[]}]})(t)}function Sa(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"18 15 12 9 6 15"},child:[]}]})(t)}function Pa(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"9 18 15 12 9 6"},child:[]}]})(t)}function le(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"6 9 12 15 18 9"},child:[]}]})(t)}function Pe(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"20 6 9 17 4 12"},child:[]}]})(t)}function Ea(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"9 11 12 14 22 4"},child:[]},{tag:"path",attr:{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"},child:[]}]})(t)}function Ta(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"16",y1:"2",x2:"16",y2:"6"},child:[]},{tag:"line",attr:{x1:"8",y1:"2",x2:"8",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"10",x2:"21",y2:"10"},child:[]}]})(t)}function Ee(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]},{tag:"polyline",attr:{points:"12 5 19 12 12 19"},child:[]}]})(t)}function Te(t){return A({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"19",y1:"12",x2:"5",y2:"12"},child:[]},{tag:"polyline",attr:{points:"12 19 5 12 12 5"},child:[]}]})(t)}const ft=({title:t="अक्सर पूछे जाने वाले प्रश्न",items:r,initialVisibleCount:s=6,showCta:n=!0,defaultExpanded:o=!1,ctaExpandLabel:c="और देखें",ctaCollapseLabel:u="कम देखें",defaultOpenIndex:x=-1,className:f=""})=>{const[g,h]=v.useState(o),[d,y]=v.useState(x),j=n&&r.length>s,N=j&&!g?r.slice(0,s):r;return e.jsxs("div",{className:l.cn("flex flex-col items-center gap-5 bg-white px-4 py-6",f),children:[e.jsx("h2",{className:"px-4 text-center text-base font-bold text-[#1d2125]",children:t}),e.jsx("div",{className:"flex w-full flex-col gap-3",children:N.map((S,_)=>{const w=d===_;return e.jsxs("div",{className:"w-full overflow-hidden rounded-lg border border-[#f3f4f6]",children:[e.jsxs("button",{type:"button",className:l.cn("flex w-full items-center justify-between gap-2 p-3 text-left",w?"bg-[#f7f8f9]":"bg-white"),onClick:()=>y(w?-1:_),"aria-expanded":w,"aria-controls":`faq-answer-${_}`,id:`faq-question-${_}`,children:[e.jsx("span",{className:"flex-1 text-sm font-medium text-[#22272b]",children:S.question}),e.jsx(le,{size:24,className:l.cn("shrink-0 transition-transform duration-200",w?"rotate-180":""),"aria-hidden":!0})]}),e.jsx("div",{id:`faq-answer-${_}`,role:"region","aria-labelledby":`faq-question-${_}`,hidden:!w,className:"bg-white p-3",children:e.jsx("p",{className:"text-sm text-[#374151]",children:S.answer})})]},_)})}),j&&e.jsx(V,{variant:"secondary",size:"lg",className:"w-full",onClick:()=>h(S=>!S),"aria-expanded":g,rightIcon:e.jsx(le,{size:24,className:l.cn("shrink-0 transition-transform duration-200",g?"rotate-180":""),"aria-hidden":!0}),children:g?u:c})]})},Oa=({title:t="Frequently Asked Questions",showTitleAccent:r=!0,items:s,initialVisibleCount:n=6,showCta:o=!0,defaultExpanded:c=!1,ctaExpandLabel:u="See more",ctaCollapseLabel:x="See less",defaultOpenIndex:f=-1,className:g=""})=>{const[h,d]=v.useState(c),[y,j]=v.useState(f),N=o&&s.length>n,S=N&&!h?s.slice(0,n):s;return e.jsxs("div",{className:l.cn("flex flex-col gap-3 bg-white px-4 py-6",g),children:[e.jsxs("h2",{className:"flex items-center gap-2 text-sm font-bold text-[#374151]",children:[r&&e.jsx("span",{"aria-hidden":!0,className:"block h-[18px] w-[3px] shrink-0 bg-[#f75e22]"}),t]}),e.jsx("div",{className:"flex w-full flex-col",children:S.map((_,w)=>{const k=y===w,T=k?Sa:le;return e.jsxs("div",{className:"w-full border-b border-[#f3f4f6] py-3 last:border-b-0",children:[e.jsxs("button",{type:"button",className:"flex w-full items-center justify-between gap-2 text-left",onClick:()=>j(k?-1:w),"aria-expanded":k,"aria-controls":`faq-accordion-answer-${w}`,id:`faq-accordion-question-${w}`,children:[e.jsx("span",{className:"flex-1 text-sm font-semibold text-[#22272b]",children:_.question}),e.jsx(T,{size:24,className:"shrink-0 text-[#f75e22]","aria-hidden":!0})]}),e.jsx("div",{id:`faq-accordion-answer-${w}`,role:"region","aria-labelledby":`faq-accordion-question-${w}`,hidden:!k,children:e.jsx("p",{className:"mt-2 text-xs text-[#374151]",children:_.answer})})]},w)})}),N&&e.jsx(V,{variant:"secondary",size:"lg",className:"w-full",onClick:()=>d(_=>!_),"aria-expanded":h,rightIcon:e.jsx(le,{size:24,className:l.cn("shrink-0 transition-transform duration-200",h?"rotate-180":""),"aria-hidden":!0}),children:h?x:u})]})},xt=v.forwardRef(({src:t,poster:r,className:s="",rounded:n=!0,width:o,height:c},u)=>{const[x,f]=v.useState(!1),[g,h]=v.useState(!0),[d,y]=v.useState(!1),[j,N]=v.useState(0),[S,_]=v.useState(0),w=v.useRef(null),k=o!==void 0||c!==void 0,T=l.cn("block w-full",k&&"h-full object-cover"),m=z=>{const H=Number(z.target.value);N(H),w.current&&(w.current.currentTime=H)};return e.jsx("div",{ref:u,style:{width:o,height:c},className:l.cn("relative w-full overflow-hidden",n&&"rounded-2xl",s),children:x?e.jsxs(e.Fragment,{children:[e.jsx(la,{ref:w,src:t,poster:r,playing:g,muted:d,width:o,height:c,className:T,onTimeUpdate:z=>N(z.currentTarget.currentTime),onDurationChange:z=>_(z.currentTarget.duration),onEnded:()=>h(!1)}),e.jsx(V,{variant:"ghost",iconOnly:!0,size:"lg","aria-label":g?"Pause":"Play",className:"absolute inset-0 m-auto border border-white/20 bg-black/40 text-white backdrop-blur-sm hover:bg-black/50",onClick:()=>h(z=>!z),children:g?e.jsx(wa,{size:16}):e.jsx(ct,{size:16,className:"translate-x-0.5"})}),e.jsx(V,{variant:"ghost",iconOnly:!0,size:"sm","aria-label":d?"Unmute":"Mute",className:"absolute left-2 top-2 text-white hover:bg-white/10",onClick:()=>y(z=>!z),children:d?e.jsx(ya,{size:14}):e.jsx(ja,{size:14})}),e.jsx("input",{type:"range",min:0,max:S||0,step:.1,value:j,onChange:m,"aria-label":"Seek",className:"absolute bottom-4 left-5 right-5 h-1 accent-white"})]}):e.jsxs(e.Fragment,{children:[e.jsx("img",{src:r,alt:"",className:T}),e.jsx("div",{className:"absolute inset-0 bg-linear-to-b from-black/0 to-black/60"}),e.jsx(V,{variant:"ghost",iconOnly:!0,size:"lg","aria-label":"Play video",className:"absolute inset-0 m-auto border border-white/20 bg-black/40 text-white backdrop-blur-sm hover:bg-black/50",onClick:()=>f(!0),children:e.jsx(ct,{size:16,className:"translate-x-0.5"})})]})})});xt.displayName="VideoPlayer";const Aa=()=>e.jsx("img",{src:"https://srm-cdn.a4b.io/yoda/1788163707447.svg",alt:"",width:24,height:24}),Oe=v.forwardRef(({options:t,value:r,onChange:s,defaultOpen:n=!1,open:o,onOpenChange:c,className:u="",triggerClassName:x="",menuClassName:f="",...g},h)=>{const[d,y]=v.useState(n),j=o!==void 0,N=j?o:d,S=v.useCallback(k=>{j||y(k),c?.(k)},[j,c]),_=v.useRef(null);v.useImperativeHandle(h,()=>_.current),v.useEffect(()=>{if(!N)return;const k=m=>{_.current?.contains(m.target)||S(!1)},T=m=>{m.key==="Escape"&&S(!1)};return document.addEventListener("mousedown",k),document.addEventListener("keydown",T),()=>{document.removeEventListener("mousedown",k),document.removeEventListener("keydown",T)}},[N,S]);const w=k=>{s?.(k.value),S(!1)};return e.jsxs("div",{ref:_,className:l.cn("relative inline-block",u),...g,children:[e.jsxs("button",{type:"button",onClick:()=>S(!N),"aria-label":"Switch language","aria-haspopup":"listbox","aria-expanded":N,className:l.cn("inline-flex items-center gap-1 rounded-full border border-gray-200 bg-white px-2 py-1",x),children:[e.jsx(Aa,{}),e.jsx(le,{size:24,className:l.cn("transition-transform duration-200",N?"rotate-180":""),"aria-hidden":!0})]}),N&&e.jsx("ul",{role:"listbox",className:l.cn("absolute left-0 top-full z-10 mt-2 min-w-35 overflow-hidden rounded-lg border border-gray-200 bg-white py-1 shadow-lg",f),children:t.map(k=>{const T=k.value===r;return e.jsx("li",{role:"option","aria-selected":T,children:e.jsx("button",{type:"button",onClick:()=>w(k),className:l.cn("block w-full px-3 py-2 text-left text-sm hover:bg-gray-50",T?"font-medium text-[#f75e22]":"text-[#1d2125]"),children:k.label})},k.value)})})]})});Oe.displayName="LanguageSwitcher";function za({onBackClick:t,backButtonAriaLabel:r="Go back",locale:s,localeOptions:n,onLocaleChange:o,className:c}){return e.jsxs("div",{className:l.cn("mx-auto flex w-full max-w-md items-center justify-between px-4 py-3",c),children:[e.jsx("button",{type:"button",onClick:t,"aria-label":r,className:"flex size-8 shrink-0 items-center justify-center rounded-lg border-0 bg-transparent p-0 drop-shadow-[0px_0px_5px_rgba(0,0,0,0.1)]",children:e.jsx(Te,{className:"size-6 text-[#1d2125]","aria-hidden":!0})}),e.jsx(Oe,{options:n,value:s,onChange:o,menuClassName:"left-auto right-0"})]})}const ht=v.forwardRef(({label:t,selected:r=!1,onClick:s,icon:n,className:o,type:c="button",...u},x)=>e.jsxs("button",{ref:x,type:c,onClick:s,"aria-pressed":r,className:l.cn("inline-flex shrink-0 items-center justify-center gap-1 rounded-full border text-[12px] leading-[16px] font-semibold whitespace-nowrap transition-colors",r?"border-[#f38415] bg-[#f38415] px-4 py-1.5 text-white":"border-[#fccf9a] bg-[#ffffff66] px-3 py-1.5 text-[#374151] hover:bg-white/70",o),...u,children:[n,t]}));ht.displayName="Chip";const Fa=({quote:t,currentStep:r,totalSteps:s,className:n,...o})=>{const c=s>0?Math.min(100,Math.max(0,r/s*100)):0;return e.jsxs("div",{className:l.cn("step-progress-header",n),...o,children:[e.jsxs("div",{className:"step-progress-header__column",children:[e.jsx("p",{className:"step-progress-header__quote",children:t}),e.jsxs("div",{className:"step-progress-header__track",children:[e.jsx("div",{className:"step-progress-header__track-fill",style:{width:`${c}%`}}),e.jsx("div",{className:"step-progress-header__track-marker",style:{left:`${c}%`},children:e.jsx("img",{src:"https://srm-cdn.a4b.io/yoda/1788163246556.svg",alt:"",width:21,height:21})})]})]}),e.jsxs("p",{className:"step-progress-header__count",children:[r,"/",s]})]})};function Ba(t){return A({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.553 3.064A.75.75 0 0 1 12 3.75v16.5a.75.75 0 0 1-1.255.555L5.46 16H2.75A1.75 1.75 0 0 1 1 14.25v-4.5C1 8.784 1.784 8 2.75 8h2.71l5.285-4.805a.752.752 0 0 1 .808-.13ZM10.5 5.445l-4.245 3.86a.748.748 0 0 1-.505.195h-3a.25.25 0 0 0-.25.25v4.5c0 .138.112.25.25.25h3c.187 0 .367.069.505.195l4.245 3.86Zm8.218-1.223a.75.75 0 0 1 1.06 0c4.296 4.296 4.296 11.26 0 15.556a.75.75 0 0 1-1.06-1.06 9.5 9.5 0 0 0 0-13.436.75.75 0 0 1 0-1.06Z"},child:[]},{tag:"path",attr:{d:"M16.243 7.757a.75.75 0 1 0-1.061 1.061 4.5 4.5 0 0 1 0 6.364.75.75 0 0 0 1.06 1.06 6 6 0 0 0 0-8.485Z"},child:[]}]})(t)}function Da(t){return A({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 3.75v16.5a.75.75 0 0 1-1.255.555L5.46 16H2.75A1.75 1.75 0 0 1 1 14.25v-4.5C1 8.784 1.784 8 2.75 8h2.71l5.285-4.805A.75.75 0 0 1 12 3.75ZM6.255 9.305a.748.748 0 0 1-.505.195h-3a.25.25 0 0 0-.25.25v4.5c0 .138.112.25.25.25h3c.187 0 .367.069.505.195l4.245 3.86V5.445ZM16.28 8.22a.75.75 0 1 0-1.06 1.06L17.94 12l-2.72 2.72a.75.75 0 1 0 1.06 1.06L19 13.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L20.06 12l2.72-2.72a.75.75 0 0 0-1.06-1.06L19 10.94l-2.72-2.72Z"},child:[]}]})(t)}const pt=1.25,mt=[{x:11.02,y:6.38,height:5.28},{x:16.3,y:6.38,height:5.28},{x:8.36,y:3.8,height:10.44},{x:13.68,y:4.8,height:8.4},{x:5.73,y:2.84,height:12.32},{x:3.07,y:6,height:6.03},{x:.45,y:7.29,height:3.37}],Ia=({animate:t,iconIndex:r})=>e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",children:mt.map((s,n)=>e.jsx("rect",{x:s.x,y:s.y,width:pt,height:s.height,rx:pt/2,fill:"#6B7280",className:t?"wave-bar-anim":"",style:{animationDelay:`${(r*mt.length+n)*60}ms`}},n))}),Ra=({avatarUrl:t,question:r,description:s,audioSrc:n,className:o,...c})=>{const u=v.useRef(null),x=v.useRef(!1),[f,g]=v.useState(!1),[h,d]=v.useState(!1);v.useEffect(()=>{!n||x.current||(x.current=!0,u.current?.play().catch(()=>{}))},[n]);const y=()=>{const j=u.current;j&&(j.muted=!j.muted,g(j.muted))};return e.jsxs("div",{className:l.cn("flex w-full items-start gap-3 px-4 pb-6",o),...c,children:[e.jsxs("div",{className:"relative size-16 shrink-0 overflow-hidden rounded-[12.8px] bg-linear-to-b from-[#fef5e9] to-[#fccf9a]",children:[e.jsx("img",{src:"https://srm-cdn.a4b.io/yoda/1788163138113.svg",alt:"",className:"absolute"}),e.jsx("img",{src:t,alt:"",className:"absolute top-1 size-[73.92px] object-contain"})]}),e.jsxs("div",{className:"flex min-w-0 flex-1 items-start",children:[e.jsx("svg",{viewBox:"0 0 18.7767 32.5742",fill:"none","aria-hidden":!0,className:"h-[32.574px] w-[18.777px] shrink-0 -mr-2",children:e.jsx("path",{d:"M0 16.2871L14.0826 7.37821L14.0826 25.196L0 16.2871Z",fill:"white"})}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-2 rounded-2xl bg-white p-4 drop-shadow-[-2px_2px_5px_rgba(252,207,154,0.3)]",children:[r,s,n&&e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("audio",{ref:u,src:n,onPlay:()=>d(!0),onPause:()=>d(!1),onEnded:()=>d(!1)}),e.jsx("button",{type:"button",onClick:y,"aria-label":f?"Unmute":"Mute","aria-pressed":f,className:"flex size-4.5 shrink-0 items-center justify-center border-0 bg-transparent p-0",children:f?e.jsx(Da,{size:18,className:"text-[#f75e22]"}):e.jsx(Ba,{size:18,className:"text-[#f75e22]"})}),e.jsx("div",{className:"flex items-center gap-[1.5px]",children:[0,1,2].map(j=>e.jsx(Ia,{animate:h&&!f,iconIndex:j},j))})]})]})]})]})},Ma={sm:"size-9",md:"size-11",lg:"size-16"},fe=v.forwardRef(({icon:t,avatarUrl:r,alt:s="",size:n="md",className:o,...c},u)=>e.jsx("div",{ref:u,className:l.cn("flex shrink-0 items-center justify-center overflow-hidden rounded-full",Ma[n],!r&&"bg-gradient-to-b from-[#fef5e9] to-[#fde3c2] text-[#f38415]",o),"aria-hidden":r?void 0:!0,...c,children:r?e.jsx("img",{src:r,alt:s,className:"size-full object-cover"}):t}));fe.displayName="IconBadge";const Ae=v.forwardRef(({selected:t=!1,onSelect:r,icon:s,avatarUrl:n,iconSize:o="md",iconClassName:c,title:u,description:x,badge:f,showRadio:g=!0,radioVariant:h="dot",radioClassName:d,tag:y,tagClassName:j,children:N,className:S,disabled:_,type:w="button",...k},T)=>e.jsxs("div",{className:l.cn("relative overflow-visible rounded-2xl border transition-colors",t?"border-[#f38415] bg-[#FEF5E9]":"border-gray-200 bg-white",_&&"opacity-50",S),children:[y&&e.jsx("span",{className:l.cn("absolute -top-2.5 left-4 z-10 inline-flex items-center rounded-full bg-[#6d5bd0] px-2.5 py-1 text-[11px] font-semibold whitespace-nowrap text-white",j),children:y}),e.jsxs("button",{ref:T,type:w,role:"radio","aria-checked":t,disabled:_,onClick:r,className:l.cn("flex w-full items-center gap-3 overflow-hidden rounded-2xl px-3 pt-3 pb-3 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#f75e22] focus-visible:ring-offset-2 disabled:cursor-not-allowed",y&&"pt-7"),...k,children:[(s||n)&&e.jsx(fe,{icon:s,avatarUrl:n,size:o,className:c}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-[14px] leading-5 font-bold text-[#1d2125]",children:u}),x&&!N&&e.jsx("p",{className:"mt-0.5 text-[13px] leading-4.5 text-gray-500",children:x})]}),f&&e.jsx("span",{className:"shrink-0",children:f}),g&&e.jsxs("span",{"aria-hidden":!0,className:l.cn("inline-flex size-6 shrink-0 items-center justify-center rounded-full border-2 transition-colors",t?h==="check"?l.cn("border-transparent bg-linear-to-b from-[#f97e4e] to-[#f75e22] text-white",d):"border-[#f75e22]":"border-gray-300"),children:[t&&h==="dot"&&e.jsx("span",{className:l.cn("size-3.5 rounded-full bg-linear-to-b from-[#f97e4e] to-[#f75e22]",d)}),t&&h==="check"&&e.jsx(Pe,{size:14,"aria-hidden":!0})]})]}),N]}));Ae.displayName="SelectorCard";const $a=({value:t,onClick:r,className:s,...n})=>e.jsxs("div",{role:r?"button":void 0,tabIndex:r?0:void 0,onClick:r,className:l.cn("mx-3 mb-3 flex items-center gap-2.5 rounded-xl border border-gray-200 bg-white px-3.5 py-3",r&&"cursor-pointer",s),...n,children:[e.jsx(ut,{size:16,className:"shrink-0 text-gray-900","aria-hidden":!0}),e.jsx("span",{className:"truncate text-[15px] font-medium text-gray-900",children:t})]}),Va=({value:t,onInfoClick:r,infoLabel:s="More info",className:n,...o})=>e.jsxs("div",{className:l.cn("mx-3 mb-3 flex items-center justify-between gap-2.5 rounded-xl border border-gray-200 bg-white px-3.5 py-3",n),...o,children:[e.jsx("span",{className:"truncate text-[15px] font-medium text-gray-900",children:t}),r?e.jsx("button",{type:"button",onClick:r,"aria-label":s,className:"shrink-0 border-0 bg-transparent p-0 text-gray-700",children:e.jsx(ue,{size:18,"aria-hidden":!0})}):e.jsx(ue,{size:18,className:"shrink-0 text-gray-700","aria-hidden":!0})]}),bt=({value:t,className:r,...s})=>e.jsx("span",{className:l.cn("inline-flex items-center rounded-full bg-white px-3 py-1 text-sm font-semibold text-emerald-600",r),...s,children:t}),gt=({className:t,children:r,...s})=>e.jsx("div",{className:l.cn("rounded-b-2xl bg-[#f38415]/15 px-4 py-2.5 text-center text-[13px] font-medium text-[#b45309]",t),...s,children:r}),Ua=({value:t,onIncrement:r,onDecrement:s,min:n=0,max:o,addLabel:c="Add",className:u})=>t<=n?e.jsxs("button",{type:"button",onClick:r,className:l.cn("inline-flex h-10 w-22 cursor-pointer items-center justify-center gap-2.5 rounded-lg bg-linear-to-b from-[#5eb98e] to-[#087955] text-base font-bold text-white",u),children:[e.jsx(dt,{size:20,"aria-hidden":!0}),c]}):e.jsxs("div",{className:l.cn("inline-flex h-10 w-22 items-center justify-between rounded-lg border border-[#159169] bg-linear-to-b from-white to-[#edf5f2] px-3 text-[#087955] shadow-md",u),children:[e.jsx("button",{type:"button",onClick:s,"aria-label":"Decrease quantity",className:"inline-flex size-6 cursor-pointer items-center justify-center rounded-full transition-colors ",children:e.jsx(La,{size:18,"aria-hidden":!0})}),e.jsx("span",{className:"min-w-[1ch] text-center text-base font-bold",children:t}),e.jsx("button",{type:"button",onClick:r,disabled:o!==void 0&&t>=o,"aria-label":"Increase quantity",className:"inline-flex size-6 cursor-pointer items-center justify-center rounded-full transition-colors disabled:pointer-events-none disabled:opacity-40",children:e.jsx(dt,{size:18,"aria-hidden":!0})})]}),vt={en:{headerTitle:"Review your booking",addonsTitle:"Add services for all ancestors",addonsDescription:"These pujas will be performed on the day of Sarva Pitru Amavasya",addedLabel:"Added",addLabel:"Add",mandapTitle:"Temple and Mandap Charges",mandapDescription:"This fee covers the temple space, mandap, and other arrangements needed for the puja.",checkoutProceedLabel:"Proceed to fill details",checkoutRitualSingular:"Ritual",checkoutRitualPlural:"Rituals"},hi:{headerTitle:"अपनी बुकिंग की समीक्षा करें",addonsTitle:"सभी पितरों के लिए सेवाएं जोड़ें",addonsDescription:"ये पूजाएं सर्वोपित्र अमावस्या के दिन सम्पन्न की जाएंगी",addedLabel:"जोड़ा गया",addLabel:"जोड़ें",mandapTitle:"मंदिर और मंडप शुल्क",mandapDescription:"पूजा के लिए मंदिर में स्थान, मंडप और आवश्यक पूजा व्यवस्था सुनिश्चित करने के लिए यह शुल्क लिया जाता है",checkoutProceedLabel:"आगे बढ़ें, और डिटेल्स भरें",checkoutRitualSingular:"पूजा-विधि",checkoutRitualPlural:"पूजा-विधि"}},ge=t=>vt[t]??vt.en,ze=({title:t,description:r,price:s,originalPrice:n,action:o,className:c,...u})=>e.jsx("div",{className:l.cn("rounded-2xl border border-gray-200 bg-white p-4",c),...u,children:e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-[15px] leading-5 font-bold text-[#1d2125]",children:t}),r&&e.jsx("p",{className:"mt-1 text-sm leading-5 text-gray-500",children:r})]}),e.jsxs("div",{className:"flex shrink-0 flex-col items-end gap-2",children:[e.jsxs("div",{className:"flex items-baseline gap-1.5 whitespace-nowrap",children:[n&&e.jsx("span",{className:"text-sm text-gray-400 line-through",children:n}),e.jsx("span",{className:"text-[15px] font-bold text-[#1d2125]",children:s})]}),o]})]})}),jt=({locale:t="en",...r})=>{const{mandapTitle:s,mandapDescription:n}=ge(t);return e.jsx(ze,{title:s,description:n,...r})},Ha=({children:t="Change",className:r,type:s="button",...n})=>e.jsxs("button",{type:s,className:l.cn("inline-flex items-center gap-1.5 rounded-full border border-gray-300 px-3 py-1.5 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-50",r),...n,children:[e.jsx(ut,{size:14,"aria-hidden":!0}),t]}),Wa=({locale:t="en",isAdded:r=!0,children:s,className:n,type:o="button",...c})=>e.jsxs("button",{type:o,className:l.cn("inline-flex items-center gap-1.5 rounded-full border border-emerald-500 px-3 py-1.5 text-sm font-semibold text-emerald-600 transition-colors hover:bg-emerald-50",n),...c,children:[r&&e.jsx(Pe,{size:14,"aria-hidden":!0}),s??(r?ge(t).addedLabel:ge(t).addLabel)]}),yt=({image:t,imageAlt:r="",title:s,description:n,price:o,originalPrice:c,tag:u,tagClassName:x,action:f,className:g,...h})=>e.jsxs("div",{className:l.cn("overflow-hidden rounded-2xl border border-gray-100 bg-white shadow-sm",g),...h,children:[u&&e.jsx("div",{className:l.cn("inline-flex items-center gap-1.5 rounded-tl-2xl rounded-br-2xl bg-emerald-800 px-3 py-1.5 text-xs font-semibold text-white",x),children:u}),e.jsxs("div",{className:"flex gap-3 p-3",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[e.jsx("p",{className:"text-sm leading-5 font-bold text-[#232323]",children:s}),n&&e.jsx("p",{className:"mt-1 text-xs leading-4 text-[#6B7280]",children:n}),e.jsxs("div",{className:"mt-auto flex items-baseline gap-1.5 whitespace-nowrap pt-3",children:[e.jsx("span",{className:"text-[18px] font-semibold text-emerald-600",children:o}),c&&e.jsx("span",{className:"text-sm text-gray-400 line-through",children:c})]})]}),e.jsxs("div",{className:"relative w-30 h-34.25 shrink-0",children:[e.jsx("img",{src:t,alt:r,className:"size-30 rounded-2xl object-cover"}),f&&e.jsx("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2",children:f})]})]})]});function Nt(t){return A({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M12.136.326A1.5 1.5 0 0 1 14 1.78V3h.5A1.5 1.5 0 0 1 16 4.5v9a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 0 13.5v-9a1.5 1.5 0 0 1 1.432-1.499zM5.562 3H13V1.78a.5.5 0 0 0-.621-.484zM1.5 4a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5z"},child:[]}]})(t)}function wt(t){return A({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5.338 1.59a61 61 0 0 0-2.837.856.48.48 0 0 0-.328.39c-.554 4.157.726 7.19 2.253 9.188a10.7 10.7 0 0 0 2.287 2.233c.346.244.652.42.893.533q.18.085.293.118a1 1 0 0 0 .101.025 1 1 0 0 0 .1-.025q.114-.034.294-.118c.24-.113.547-.29.893-.533a10.7 10.7 0 0 0 2.287-2.233c1.527-1.997 2.807-5.031 2.253-9.188a.48.48 0 0 0-.328-.39c-.651-.213-1.75-.56-2.837-.855C9.552 1.29 8.531 1.067 8 1.067c-.53 0-1.552.223-2.662.524zM5.072.56C6.157.265 7.31 0 8 0s1.843.265 2.928.56c1.11.3 2.229.655 2.887.87a1.54 1.54 0 0 1 1.044 1.262c.596 4.477-.787 7.795-2.465 9.99a11.8 11.8 0 0 1-2.517 2.453 7 7 0 0 1-1.048.625c-.28.132-.581.24-.829.24s-.548-.108-.829-.24a7 7 0 0 1-1.048-.625 11.8 11.8 0 0 1-2.517-2.453C1.928 10.487.545 7.169 1.141 2.692A1.54 1.54 0 0 1 2.185 1.43 63 63 0 0 1 5.072.56"},child:[]},{tag:"path",attr:{d:"M10.854 5.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 7.793l2.646-2.647a.5.5 0 0 1 .708 0"},child:[]}]})(t)}function kt(t){return A({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8.515 1.019A7 7 0 0 0 8 1V0a8 8 0 0 1 .589.022zm2.004.45a7 7 0 0 0-.985-.299l.219-.976q.576.129 1.126.342zm1.37.71a7 7 0 0 0-.439-.27l.493-.87a8 8 0 0 1 .979.654l-.615.789a7 7 0 0 0-.418-.302zm1.834 1.79a7 7 0 0 0-.653-.796l.724-.69q.406.429.747.91zm.744 1.352a7 7 0 0 0-.214-.468l.893-.45a8 8 0 0 1 .45 1.088l-.95.313a7 7 0 0 0-.179-.483m.53 2.507a7 7 0 0 0-.1-1.025l.985-.17q.1.58.116 1.17zm-.131 1.538q.05-.254.081-.51l.993.123a8 8 0 0 1-.23 1.155l-.964-.267q.069-.247.12-.501m-.952 2.379q.276-.436.486-.908l.914.405q-.24.54-.555 1.038zm-.964 1.205q.183-.183.35-.378l.758.653a8 8 0 0 1-.401.432z"},child:[]},{tag:"path",attr:{d:"M8 1a7 7 0 1 0 4.95 11.95l.707.707A8.001 8.001 0 1 1 8 0z"},child:[]},{tag:"path",attr:{d:"M7.5 3a.5.5 0 0 1 .5.5v5.21l3.248 1.856a.5.5 0 0 1-.496.868l-3.5-2A.5.5 0 0 1 7 9V3.5a.5.5 0 0 1 .5-.5"},child:[]}]})(t)}const Ga=[{id:"money-back",icon:e.jsx(wt,{"aria-hidden":!0}),label:"100% Money Back Guarantee"},{id:"no-hidden-cost",icon:e.jsx(Nt,{"aria-hidden":!0}),label:"No Hidden Cost"},{id:"24x7-support",icon:e.jsx(kt,{"aria-hidden":!0}),label:"24x7 Support"}],Ct=(t,r,s)=>e.jsxs("span",{className:l.cn("inline-flex shrink-0 items-center gap-2 text-sm font-semibold text-gray-700",s,t.className),children:[e.jsx("span",{className:"shrink-0 text-base text-gray-700","aria-hidden":!0,children:t.icon}),t.label]},r),_t=({badges:t=Ga,badgeClassName:r,marquee:s=!0,marqueeDurationSeconds:n=14,className:o,...c})=>s?e.jsx("div",{className:l.cn("overflow-hidden bg-[#f3f5f7] px-4 py-3",o),...c,children:e.jsx("div",{className:"flex w-max items-center gap-5 whitespace-nowrap motion-reduce:animate-none",style:{animation:`pitru-paksh-trust-badges-marquee ${n}s linear infinite`},children:[...t,...t].map((u,x)=>Ct(u,`${u.id}-${x}`,r))})}):e.jsx("div",{className:l.cn("flex items-center gap-5 overflow-x-auto bg-[#f3f5f7] px-4 py-3 whitespace-nowrap","scrollbar-none [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",o),...c,children:t.map(u=>Ct(u,u.id,r))}),Fe={en:{proceedLabel:"Proceed"},hi:{proceedLabel:"आगे बढ़ें"},te:{proceedLabel:"ముందుకు సాగండి"}},Lt=t=>Fe[t]??Fe.en,ve=({locale:t="en",amount:r,amountClassName:s,subtitle:n,subtitleClassName:o,showInfoIcon:c=!0,onInfoClick:u,infoIconClassName:x,proceedLabel:f,proceedIcon:g=e.jsx(Ee,{"aria-hidden":!0}),onProceed:h,proceedButtonProps:d,buttonWrapperClassName:y,className:j,...N})=>e.jsxs("div",{className:l.cn("flex items-center gap-3 rounded-t-3xl bg-white px-4 py-4 shadow-[0_-2px_12px_rgba(0,0,0,0.08)]",j),...N,children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:l.cn("text-xl font-extrabold text-[#1d2125]",s),children:r}),c&&e.jsx("button",{type:"button",onClick:u,"aria-label":"View bill details",className:l.cn("inline-flex shrink-0 items-center justify-center text-[#f75e22]",!u&&"pointer-events-none",x),children:e.jsx(ue,{size:18,"aria-hidden":!0})})]}),n&&e.jsx("p",{className:l.cn("mt-1 text-sm text-gray-500",o),children:n})]}),e.jsx("div",{className:l.cn("shrink-0",y),children:e.jsxs(V,{variant:"primary",size:"xl",onClick:h,...d,className:l.cn("min-w-40 justify-center gap-2 bg-linear-to-b from-[#5eb98e] to-[#159169] focus-visible:ring-[#159169]",d?.className),children:[f??Lt(t).proceedLabel,g]})})]}),Be={en:{title:"Select the number of people performing the Puja (Karta)",description:"Performing the puja together with the whole family brings ancestors’ blessings and family prosperity",benefits:["Panditji will pronounce the names and gotra of the ancestors and the performers","Our experienced Pandits will conduct the Puja with correct vedic rituals","A video of the entire Puja will be shared with you on WhatsApp and the Srimandir app"],trustBadgeLabels:{moneyBack:"100% Money Back Guarantee",noHiddenCost:"No Hidden Cost",support:"24x7 Support"}},hi:{title:"पूजा करवाने वाले (कर्ता) लोगो की संख्या चुनें",description:"पूरे परिवार के साथ मिलकर पूजा करने से पितरों का आशीर्वाद मिलता है और परिवार की सुख-समृद्धि बढ़ती है",benefits:["पंडितजी द्वारा पितृजन और कर्ता का नाम-गोत्र उच्चारण होगा","हमारे अनुभवी पुरोहित पूरे विधि-विधान से पूजा कराएंगे","पूरी पूजा का वीडियो आपको WhatsApp और श्रीमंदिर ऐप पर शेयर किया जाएगा"],trustBadgeLabels:{moneyBack:"100% पैसा वापसी की गारंटी",noHiddenCost:"कोई छुपी हुई लागत नहीं",support:"24x7 सहायता"}},te:{title:"పూజ చేసే వ్యక్తుల సంఖ్యను ఎంచుకోండి (కర్త)",description:"కుటుంబమంతా కలిసి పూజ చేస్తే పితృదేవతల ఆశీర్వాదం, కుటుంబ సుఖసమృద్ధి లభిస్తాయి",benefits:["పండితుడు పితృదేవతల మరియు కర్తల పేర్లు, గోత్రాలు చెప్తారు","మా అనుభవం గల పండితులు సరైన వేద విధులతో పూజ చేస్తారు","పూర్తి పూజా వీడియో వాట్సాప్ మరియు శ్రీమందిర్ యాప్ లో పంపబడుతుంది"],trustBadgeLabels:{moneyBack:"100% డబ్బు తిరిగి హామీ",noHiddenCost:"దాచిన ఖర్చులు లేవు",support:"కస్టమర్ సపోర్ట్"}}},St=t=>Be[t]??Be.en,qa=({locale:t="en",title:r,description:s,benefits:n,options:o,value:c,onChange:u,radioVariant:x="dot",radiogroupLabel:f,className:g,headerClassName:h,benefitsClassName:d,optionsClassName:y,trustBadges:j,checkout:N,stickyFooter:S=!0,footerClassName:_})=>{const w=St(t),k=r??w.title,T=s??w.description,m=n??w.benefits,z=j??{badges:[{id:"money-back",icon:e.jsx(wt,{"aria-hidden":!0}),label:w.trustBadgeLabels.moneyBack},{id:"no-hidden-cost",icon:e.jsx(Nt,{"aria-hidden":!0}),label:w.trustBadgeLabels.noHiddenCost},{id:"24x7-support",icon:e.jsx(kt,{"aria-hidden":!0}),label:w.trustBadgeLabels.support}]};return e.jsxs("div",{className:l.cn("w-full",g),children:[e.jsxs("div",{className:l.cn("px-4 pt-5 pb-4",h),children:[e.jsx("p",{className:"text-[20px] leading-6.5 font-extrabold text-[#1d2125]",children:k}),T&&e.jsx("p",{className:"mt-2 text-[14px] leading-5.5 text-gray-500",children:T})]}),m&&m.length>0&&e.jsx("div",{className:l.cn("flex flex-col gap-3.5 bg-[#f3f5f7] px-4 py-5",d),children:m.map((H,I)=>e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(Pe,{size:18,className:"mt-0.5 shrink-0 text-emerald-600","aria-hidden":!0}),e.jsx("span",{className:"text-[14px] leading-5.5 text-gray-600",children:H})]},I))}),e.jsx("div",{role:"radiogroup","aria-label":f??(typeof k=="string"?k:void 0),className:l.cn("flex flex-col gap-3 p-4",y),children:o.map(H=>{const{id:I,price:Y,free:ae,badge:M,priceBadgeProps:W,note:K,noteProps:$,children:G,iconClassName:te,radioVariant:Z,...J}=H,Q=c===I,re=M??(Y==null?void 0:ae?e.jsx("span",{className:l.cn("text-sm font-medium text-gray-400",W?.className),...W,children:Y}):e.jsx(bt,{value:Y,...W}));return e.jsx(Ae,{...J,iconClassName:l.cn("size-10",te),radioVariant:Z??x,badge:re,selected:Q,onSelect:()=>u(I),children:G??(Q&&K&&e.jsx(gt,{...$,children:K}))},I)})}),(z||N)&&e.jsxs("div",{className:l.cn(S&&"sticky bottom-0 z-10",_),children:[z&&e.jsx(_t,{...z}),N&&e.jsx(ve,{...N})]})]})},De={en:{title:"Pitru Paksha Special Rituals",ancestorsLabel:"Ancestors",ritualsLabel:"Rituals",performersLabel:"Performers"},hi:{title:"पितृ पक्ष विशेष अनुष्ठान",ancestorsLabel:"पितृजन",ritualsLabel:"पूजा विधि",performersLabel:"कर्ता"}},Pt=t=>De[t]??De.en,Et=({locale:t="en",icon:r=e.jsx(ot,{"aria-hidden":!0}),iconClassName:s,title:n,titleClassName:o,subtitle:c,subtitleItems:u,stats:x,subtitleClassName:f,cardClassName:g,className:h,...d})=>{const y=Pt(t),j=n??y.title,N=u??(x&&[`${x.ancestors} ${y.ancestorsLabel}`,`${x.rituals} ${y.ritualsLabel}`,`${x.performers} ${y.performersLabel}`]);return e.jsx("div",{className:l.cn("bg-gradient-to-b from-[#fce7f3] to-white px-4 pt-4 pb-6",h),...d,children:e.jsxs("div",{className:l.cn("rounded-2xl bg-white p-4 shadow-sm",g),children:[e.jsxs("p",{className:l.cn("flex items-center gap-2 text-sm font-bold text-[#db2777]",o),children:[r&&e.jsx("span",{className:l.cn("shrink-0 text-sm",s),children:r}),j]}),(c||N&&N.length>0)&&e.jsx("p",{className:l.cn("mt-2 text-[15px] font-semibold text-[#1d2125]",f),children:N&&N.length>0?N.map((S,_)=>e.jsxs(v.Fragment,{children:[_>0&&e.jsx("span",{className:"mx-1.5 text-gray-400",children:"•"}),S]},_)):c})]})})},Tt={en:{title:"Bill Details",totalLabel:"Total Amount"},hi:{title:"बिल विवरण",totalLabel:"कुल राशि"}},Ya=t=>Tt[t]??Tt.en,Ot=({locale:t="en",titleClassName:r,rows:s,rowClassName:n,showTitleAccent:o=!0,totalValue:c,totalClassName:u,className:x,...f})=>{const{title:g,totalLabel:h}=Ya(t);return e.jsxs("div",{className:l.cn("bg-white px-4 py-6",x),...f,children:[e.jsxs("h2",{className:l.cn("mb-4 flex items-center gap-2 text-lg font-bold text-[#1d2125]",r),children:[o&&e.jsx("span",{"aria-hidden":!0,className:"block h-5 w-1 shrink-0 rounded-full bg-[#f75e22]"}),g]}),e.jsx("div",{className:"flex flex-col gap-4",children:s.map(d=>e.jsxs("div",{className:l.cn("flex items-start justify-between gap-3",n),children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:l.cn("text-sm text-[#1d2125]",d.labelClassName),children:d.label}),d.subLabel&&e.jsx("p",{className:l.cn("mt-0.5 text-xs text-gray-400",d.subLabelClassName),children:d.subLabel})]}),e.jsxs("div",{className:"flex shrink-0 items-baseline gap-1.5 whitespace-nowrap text-sm",children:[d.note&&e.jsx("span",{className:"text-gray-400",children:d.note}),d.originalValue&&e.jsx("span",{className:"text-gray-400 line-through",children:d.originalValue}),e.jsx("span",{className:l.cn("font-medium text-[#1d2125]",d.valueClassName),children:d.value})]})]},d.id))}),c!==void 0&&e.jsxs("div",{className:l.cn("mt-4 flex items-center justify-between border-t border-dashed border-gray-300 pt-4",u),children:[e.jsx("span",{className:"text-base font-bold text-[#1d2125]",children:h}),e.jsx("span",{className:"text-base font-bold text-emerald-600",children:c})]})]})},Ka=({locale:t="en",onBack:r,backButtonAriaLabel:s="Go back",headerClassName:n,backButtonClassName:o,headerTitleClassName:c,summary:u,items:x,itemsClassName:f,itemClassName:g,addons:h,addonsSectionClassName:d,addonsHeaderClassName:y,addonsTitleClassName:j,addonsDescriptionClassName:N,addonsClassName:S,addonClassName:_,billDetails:w,faq:k,checkout:T,className:m,children:z,...H})=>{const{headerTitle:I,addonsTitle:Y,addonsDescription:ae,checkoutProceedLabel:M,checkoutRitualSingular:W,checkoutRitualPlural:K}=ge(t),{price:$,ritualCount:G,...te}=T??{};return e.jsxs("div",{className:l.cn("flex min-h-screen flex-col bg-white",m),...H,children:[e.jsxs("div",{className:"flex flex-1 flex-col",children:[e.jsxs("div",{className:l.cn("flex items-center gap-3 px-4 py-3",n),children:[r&&e.jsx("button",{type:"button",onClick:r,"aria-label":s,className:l.cn("flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-lg border-0 bg-transparent p-0",o),children:e.jsx(Te,{className:"size-6 text-[#1d2125]","aria-hidden":!0})}),e.jsx("h1",{className:l.cn("text-lg font-bold text-[#1d2125]",c),children:I})]}),u&&e.jsx(Et,{...u}),x&&x.length>0&&e.jsx("div",{className:l.cn("flex flex-col gap-3 bg-white px-4 py-4",f),children:x.map(({id:Z,className:J,isMandapCharge:Q,...re})=>Q?e.jsx(jt,{locale:t,className:l.cn(g,J),...re},Z):e.jsx(ze,{className:l.cn(g,J),...re},Z))}),h&&h.length>0&&e.jsxs("div",{className:l.cn("flex flex-col gap-4 bg-gray-50 px-4 py-6",d),children:[e.jsxs("div",{className:y,children:[e.jsx("h2",{className:l.cn("text-base font-bold text-gray-700",j),children:Y}),e.jsx("p",{className:l.cn("mt-1 text-sm text-gray-500",N),children:ae})]}),e.jsx("div",{className:l.cn("flex flex-col gap-4",S),children:h.map(({id:Z,className:J,...Q})=>e.jsx(yt,{className:l.cn(_,J),...Q},Z))})]}),w&&e.jsx(Ot,{...w,locale:t}),k&&e.jsx(ft,{...k}),z]}),T&&e.jsx("div",{className:"sticky bottom-0",children:e.jsx(ve,{...te,locale:t,amount:$,subtitle:`${G} ${G===1?W:K}`,proceedLabel:M})})]})},se=v.forwardRef(({label:t,value:r,onChange:s,prefix:n,showCharCount:o=!1,supportingText:c,error:u=!1,className:x,containerClassName:f,wrapperClassName:g,maxLength:h,id:d,...y},j)=>{const N=v.useId(),S=d??N,_=c??(o?`${r.length}${h?`/${h}`:""}`:void 0);return e.jsxs("div",{className:l.cn("flex w-full flex-col gap-2",f),children:[t&&e.jsx("label",{htmlFor:S,className:"text-[14px] leading-5 font-semibold text-[#6b7280]",children:t}),e.jsxs("div",{className:"flex w-full flex-col gap-1",children:[e.jsxs("div",{className:l.cn("flex w-full items-center gap-1.5 rounded-lg border bg-white p-3 focus-within:ring-2 focus-within:ring-[#f75e22]/40",u?"border-[#ef4444]":"border-[#d1d5db]",g),children:[n&&e.jsx("span",{className:"shrink-0 text-[16px] leading-5.5 font-medium text-[#6b7280]",children:n}),e.jsx("input",{ref:j,id:S,value:r,maxLength:h,onChange:w=>s(w.target.value),"aria-invalid":u,className:l.cn("w-full min-w-0 flex-1 border-0 bg-transparent p-0 text-[16px] leading-5.5 font-medium text-[#1f2937] placeholder:text-[#9ca3af] focus:outline-none focus:ring-0",x),...y})]}),_&&e.jsx("p",{className:"text-[12px] leading-4 font-medium text-[#9ca3af]",children:_})]})]})});se.displayName="TextField";function Za({isOpen:t,onClose:r,avatarUrl:s,heading:n,tithis:o,confirmLabel:c,onConfirm:u,initialTithi:x}){const[f,g]=v.useState(x),h=()=>{f&&u(f)};return e.jsx(l.BottomSheet,{isOpen:t,onClose:r,showDragHandle:!0,closeButtonOutside:!0,ariaLabel:n,header:e.jsxs("div",{className:"flex w-full flex-col items-center gap-3 px-5 pt-2",children:[e.jsxs("div",{className:"flex w-full items-center gap-3",children:[e.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-full bg-[#fff9e9]",children:e.jsx("img",{src:s,alt:"",className:"size-full object-cover"})}),e.jsx("p",{className:"flex-1 text-[16px] leading-5.5 font-semibold text-[#374151]",children:n})]}),e.jsx("div",{className:"h-px w-full bg-[rgba(28,27,27,0.05)]"})]}),footer:e.jsxs("div",{className:"flex w-full flex-col items-center gap-4 px-5 pb-2",children:[e.jsx("div",{className:"h-px w-full bg-[rgba(28,27,27,0.05)]"}),e.jsx(V,{variant:"primary",size:"md",className:"w-full rounded-xl",disabled:!f,onClick:h,children:c})]}),children:e.jsx("div",{className:"grid w-full grid-cols-4 gap-x-2 gap-y-4 px-5 py-4",children:o.map(d=>{const y=f===d;return e.jsx("button",{type:"button",onClick:()=>g(d),className:`flex items-center justify-center rounded-full border px-3 py-1.5 text-[10px] leading-3.5 font-semibold whitespace-nowrap ${y?"border-[#f38415] bg-[#f38415] text-white":"border-[#fccf9a] bg-white/40 text-[#374151]"}`,children:d},d)})})})}const je=48;function Ie({options:t,selectedIndex:r,onChange:s}){const n=v.useRef(null),o=v.useRef(!1);v.useEffect(()=>{o.current||!n.current||(o.current=!0,n.current.scrollTop=r*je)},[]);const c=()=>{if(!n.current)return;const u=Math.round(n.current.scrollTop/je),x=Math.max(0,Math.min(t.length-1,u));x!==r&&s(x)};return e.jsxs("div",{className:"relative h-36 w-full",children:[e.jsxs("div",{ref:n,onScroll:c,className:"h-36 snap-y snap-mandatory overflow-y-auto [&::-webkit-scrollbar]:hidden",style:{scrollbarWidth:"none"},children:[e.jsx("div",{style:{height:je},"aria-hidden":!0}),t.map((u,x)=>e.jsx("div",{className:`flex h-12 snap-center items-center justify-center whitespace-nowrap text-[20px] leading-7 ${x===r?"font-bold text-[#f75e22]":"font-semibold text-[#d1d5db]"}`,children:u},u)),e.jsx("div",{style:{height:je},"aria-hidden":!0})]}),e.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-12 h-px bg-[#e5e7eb]"}),e.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-24 h-px bg-[#e5e7eb]"})]})}const Re=Array.from({length:31},(t,r)=>r+1);function Ja({isOpen:t,onClose:r,avatarUrl:s,heading:n,monthLabels:o,confirmLabel:c,onConfirm:u,timezoneLabel:x,initialDate:f,minYear:g,maxYear:h=new Date().getFullYear()}){const d=v.useMemo(()=>{const T=g??h-120;return Array.from({length:h-T+1},(m,z)=>T+z)},[g,h]),[y,j]=v.useState(()=>f?f.day-1:Math.floor(Re.length/2)),[N,S]=v.useState(()=>f?f.month-1:0),[_,w]=v.useState(()=>f?Math.max(0,d.indexOf(f.year)):Math.floor(d.length/2)),k=()=>{u({day:Re[y],month:N+1,year:d[_]})};return e.jsx(l.BottomSheet,{isOpen:t,onClose:r,showDragHandle:!0,closeButtonOutside:!0,ariaLabel:n,header:e.jsxs("div",{className:"flex w-full flex-col items-center gap-3 px-5 pt-2",children:[e.jsxs("div",{className:"flex w-full items-center gap-3",children:[e.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-full bg-[#fff9e9]",children:e.jsx("img",{src:s,alt:"",className:"size-full object-cover"})}),e.jsx("p",{className:"flex-1 text-[16px] leading-5.5 font-semibold text-[#374151]",children:n})]}),e.jsx("div",{className:"h-px w-full bg-[rgba(28,27,27,0.05)]"})]}),footer:e.jsxs("div",{className:"flex w-full flex-col items-center gap-4 px-5 pb-2",children:[e.jsx("div",{className:"h-px w-full bg-[rgba(28,27,27,0.05)]"}),e.jsxs("div",{className:"flex w-full items-center gap-6",children:[x&&e.jsx("p",{className:"shrink-0 text-[12px] leading-4 font-semibold whitespace-nowrap text-[#6b7280]",children:x}),e.jsx(V,{variant:"primary",size:"md",className:"flex-1 rounded-xl",onClick:k,children:c})]})]}),children:e.jsxs("div",{className:"flex w-full items-center justify-center gap-11 px-5 py-4",children:[e.jsx(Ie,{options:Re.map(String),selectedIndex:y,onChange:j}),e.jsx(Ie,{options:o,selectedIndex:N,onChange:S}),e.jsx(Ie,{options:d.map(String),selectedIndex:_,onChange:w})]})})}function Qa({isOpen:t,onClose:r,heading:s,subtext:n,confirmLabel:o,onConfirm:c,initialValue:u="",countries:x=l.DEFAULT_COUNTRIES,initialCountryIso:f="IN"}){const[g,h]=v.useState(()=>x.find(m=>m.iso===f)??x[0]),[d,y]=v.useState(u),[j,N]=v.useState(!1),S=v.useRef(null);v.useEffect(()=>{if(!j)return;const m=z=>{S.current&&!S.current.contains(z.target)&&N(!1)};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[j]);const _=l.getMaxLengthForCountry(g.code),w=l.validatePhoneByCountryCode(d,g.code).isValid&&d.length>0,k=m=>{h(m),N(!1),y(z=>z.slice(0,l.getMaxLengthForCountry(m.code)))},T=()=>{w&&c(d,g)};return e.jsx(be,{isOpen:t,onClose:r,showDragHandle:!0,closeButtonOutside:!0,ariaLabel:s,footer:e.jsx("div",{className:"px-4 pt-3 pb-5",children:e.jsx(V,{variant:"primary",size:"xl",className:"w-full rounded-xl bg-linear-to-b from-[#5eb98e] to-[#159169] focus-visible:ring-[#159169]",rightIcon:e.jsx(Ee,{"aria-hidden":!0}),disabled:!w,onClick:T,children:o})}),children:e.jsxs("div",{className:"flex w-full flex-col gap-2 px-4 py-3",children:[e.jsx("p",{className:"text-[14px] leading-5 font-bold text-[#232323]",children:s}),n&&e.jsx("p",{className:"text-[12px] leading-4 font-medium text-[#6b7280]",children:n}),e.jsxs("div",{className:"mt-2 flex w-full items-start gap-2",children:[e.jsxs("div",{ref:S,className:"relative shrink-0",children:[e.jsxs("button",{type:"button",onClick:()=>N(m=>!m),"aria-expanded":j,"aria-haspopup":"listbox",className:"flex h-14 items-center gap-1 rounded-xl border border-[#d1d5db] bg-white pl-3 pr-2",children:[e.jsx("span",{className:"text-[20px] leading-7","aria-hidden":!0,children:l.getFlagEmoji(g.iso)}),e.jsx("span",{className:"text-[18px] leading-6 font-medium text-[#1d2125]",children:g.code}),e.jsx(le,{size:24,className:"text-[#1d2125]","aria-hidden":!0})]}),j&&e.jsx("div",{role:"listbox",className:"absolute top-[calc(100%+4px)] left-0 z-10 max-h-60 w-64 overflow-y-auto rounded-xl border border-[#e5e7eb] bg-white py-1 shadow-lg",children:x.map(m=>e.jsxs("button",{type:"button",role:"option","aria-selected":m.iso===g.iso,onClick:()=>k(m),className:`flex w-full items-center gap-2 px-3 py-2 text-left hover:bg-[#f9fafb] ${m.iso===g.iso?"bg-[#fff9e9]":""}`,children:[e.jsx("span",{className:"text-[16px]","aria-hidden":!0,children:l.getFlagEmoji(m.iso)}),e.jsx("span",{className:"text-[14px] font-medium text-[#1d2125]",children:m.code}),e.jsx("span",{className:"truncate text-[12px] text-[#6b7280]",children:m.name})]},`${m.iso}-${m.code}`))})]}),e.jsx(se,{type:"tel",inputMode:"numeric",value:d,maxLength:_,onChange:m=>y(m.replace(/\D/g,"").slice(0,_)),containerClassName:"w-auto flex-1 gap-0",wrapperClassName:"h-14 rounded-xl px-4",className:"text-[18px]"})]})]})})}const Xa=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function er({isOpen:t,onClose:r,heading:s,subtext:n,confirmLabel:o,onConfirm:c,initialValue:u="",errorText:x="Please enter a valid email"}){const[f,g]=v.useState(u),[h,d]=v.useState(!1),y=f.trim(),j=Xa.test(y),N=h&&y.length>0&&!j,S=()=>{j&&c(y)};return e.jsx(l.BottomSheet,{isOpen:t,onClose:r,showDragHandle:!0,ariaLabel:s,footer:e.jsx("div",{className:"px-4 pt-3 pb-5",children:e.jsx(V,{variant:"primary",size:"xl",className:"w-full rounded-xl",rightIcon:e.jsx(Ee,{"aria-hidden":!0}),disabled:!j,onClick:S,children:o})}),children:e.jsxs("div",{className:"flex w-full flex-col gap-2 px-4 py-3",children:[e.jsx("p",{className:"text-[14px] leading-5 font-bold text-[#232323]",children:s}),n&&e.jsx("p",{className:"text-[12px] leading-4 font-medium text-[#6b7280]",children:n}),e.jsx(se,{type:"email",inputMode:"email",autoFocus:!0,value:f,placeholder:"you@example.com",error:N,supportingText:N?x:void 0,onChange:g,onBlur:()=>d(!0),containerClassName:"mt-2",wrapperClassName:"h-14 rounded-xl px-4",className:"text-[18px]"})]})})}function tr(t){return A({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"},child:[]}]})(t)}function ar(t){return A({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"},child:[]}]})(t)}const rr="https://srm-cdn.a4b.io/yoda/1788253585577.svg";function sr({chipNumber:t,chipLabel:r,isAdded:s,onEditClick:n,editButtonAriaLabel:o="Edit",onExpandClick:c,expandButtonAriaLabel:u="Expand",imageUrl:x,imageAlt:f,imageComponent:g,ratingLabel:h,bookedLabel:d,title:y,description:j,learnMoreLabel:N,onLearnMoreClick:S,learnMoreHref:_,dateLabel:w,locationLabel:k,priceInfoLabel:T,onPriceInfoClick:m,price:z,cta:H,className:I=""}){const[Y,ae]=v.useState(!1),M=s||Y,W=M&&(h!=null||d!=null),K=M&&(w!=null||k!=null);return e.jsxs("div",{className:`flex w-full flex-col items-center overflow-hidden rounded-[20px] border border-[#e5e3fd] bg-white px-4 pb-4 ${M?"gap-3 shadow-[0px_0px_20px_0px_rgba(215,99,28,0.05)]":"gap-4 shadow-[0px_0px_20px_0px_rgba(215,99,28,0.12)]"} ${I}`,children:[e.jsxs("div",{className:`flex w-full items-center justify-between gap-1 px-3 ${M?"py-4":"pt-4"}`,children:[e.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-1.5 rounded-2xl py-1.5 pl-1.5",style:{background:"linear-gradient(90deg, #fcccdf -29.79%, #fef5e9 50.11%, rgba(254, 245, 233, 0) 100%)"},children:[e.jsx("span",{className:"flex size-5 shrink-0 items-center justify-center rounded-[10px] bg-white text-[11.5px] font-semibold text-gray-700",children:t}),e.jsx("p",{className:"min-w-0 flex-1 text-xs font-semibold leading-4 text-[#632E06]",children:r})]}),e.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[n&&e.jsx("button",{type:"button",className:"flex size-8 shrink-0 items-center justify-center rounded-full border border-gray-200 bg-white p-0",onClick:n,"aria-label":o,children:e.jsx(tr,{"aria-hidden":!0,className:"size-[18px] text-[#1D2125]"})}),!s&&e.jsx("button",{type:"button",className:"flex size-8 shrink-0 items-center justify-center border-0 bg-transparent p-0",onClick:()=>{ae($=>!$),c?.()},"aria-label":u,"aria-expanded":Y,children:e.jsx(ar,{"aria-hidden":!0,className:`size-8 text-[#1D2125] ${Y?"":"-scale-y-100"}`})})]})]}),M&&x!=null&&e.jsx("div",{className:"h-[140px] w-full overflow-hidden rounded-xl",children:g?e.jsx(g,{src:x,alt:f??"",className:"size-full object-cover"}):e.jsx("img",{src:x,alt:f,className:"size-full object-cover"})}),W&&e.jsxs("div",{className:"-mt-3 flex w-full items-center gap-2.5 rounded-b-xl px-4 py-1",style:{background:"linear-gradient(to right, #f3f5e9 74.24%, rgba(241, 247, 255, 0) 100%)"},children:[h!=null&&e.jsx("p",{className:"whitespace-nowrap text-[10px] font-medium leading-[14px] text-[#4b5513]",children:h}),h!=null&&d!=null&&e.jsx("span",{className:"size-1.5 shrink-0 rounded-full bg-[#4b5513]","aria-hidden":!0}),d!=null&&e.jsx("p",{className:"whitespace-nowrap text-[10px] font-medium leading-[14px] text-[#4b5513]",children:d})]}),e.jsxs("div",{className:"flex w-full flex-col items-start gap-3",children:[e.jsxs("div",{className:"flex w-full flex-col items-start gap-1",children:[e.jsx("h3",{className:"text-base font-bold leading-[22px] text-[#361407]",children:y}),M&&j!=null&&e.jsx("p",{className:"w-full text-xs font-normal leading-4 text-gray-500",children:j})]}),M&&N!=null&&e.jsxs("a",{href:_,className:"inline-flex items-center gap-0.5 text-xs font-medium leading-4 text-[#F75E22] underline",onClick:S,children:[N,e.jsx(Pa,{"aria-hidden":!0,className:"size-3.5 text-[#F75E22]"})]}),K&&e.jsxs(e.Fragment,{children:[e.jsx("hr",{className:"w-full border-t border-gray-100"}),e.jsxs("div",{className:"flex w-full flex-col items-start gap-2",children:[w!=null&&e.jsxs("div",{className:"flex w-full items-center gap-2",children:[e.jsx(Ta,{"aria-hidden":!0,className:"size-3.5 shrink-0 text-gray-700"}),e.jsx("p",{className:"text-xs font-medium leading-4 text-gray-700",children:w})]}),k!=null&&e.jsxs("div",{className:"flex w-full items-center gap-2",children:[e.jsx("img",{src:rr,alt:"","aria-hidden":!0,className:"size-3.5 shrink-0"}),e.jsx("p",{className:"text-xs font-medium leading-4 text-gray-700",children:k})]})]})]}),e.jsx("hr",{className:"w-full border-t border-gray-100"}),e.jsxs("div",{className:"flex w-full items-center justify-between",children:[e.jsxs("div",{className:"flex flex-col items-start gap-0.5",children:[T!=null&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("p",{className:"whitespace-nowrap text-[10px] font-medium leading-[14px] text-gray-500",children:T}),m&&e.jsx("button",{type:"button",className:"flex size-4 shrink-0 items-center justify-center border-0 bg-transparent p-0",onClick:m,"aria-label":"More info",children:e.jsx(ue,{"aria-hidden":!0,className:"size-4 text-[#1D2125]"})})]}),e.jsx("p",{className:"whitespace-nowrap text-lg font-bold leading-6 text-[#159169]",children:z})]}),e.jsx("div",{className:"shrink-0",children:H})]})]})]})}const nr={primary:"border border-transparent pl-3 pr-4 text-white",secondary:"border border-[#159169] px-3 text-[#159169]",accent:"border border-transparent px-4 text-white"},lr={md:"h-10 gap-2 rounded-lg text-xs font-semibold leading-4",lg:"h-12 gap-2 rounded-xl text-base font-bold leading-[22px]"},ir={primary:{backgroundImage:"linear-gradient(to bottom, #5eb98e, #159169)"},secondary:{backgroundImage:"linear-gradient(to bottom, #ffffff, #edf5f2)"},accent:{backgroundImage:"linear-gradient(to bottom, #f97e4e, #f75e22)"}};function or({variant:t="primary",size:r="md",leftIcon:s,children:n,className:o="",style:c,type:u="button",...x}){return e.jsxs("button",{type:u,className:`inline-flex items-center justify-center py-2 disabled:cursor-not-allowed disabled:opacity-50 ${lr[r]} ${nr[t]} ${o}`,style:{...ir[t],...c},...x,children:[s,n]})}function cr({className:t="size-5"}){return e.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":!0,className:t,xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M10 1.75C10.4142 1.75 10.75 2.08579 10.75 2.5V9.25H17.5C17.9142 9.25 18.25 9.58579 18.25 10C18.25 10.4142 17.9142 10.75 17.5 10.75H10.75V17.5C10.75 17.9142 10.4142 18.25 10 18.25C9.58579 18.25 9.25 17.9142 9.25 17.5V10.75H2.5C2.08579 10.75 1.75 10.4142 1.75 10C1.75 9.58579 2.08579 9.25 2.5 9.25H9.25V2.5C9.25 2.08579 9.58579 1.75 10 1.75Z",fill:"currentColor"})})}function dr({className:t="size-5"}){return e.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":!0,className:t,xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M16.1361 4.88627C16.4289 4.59345 16.9037 4.59355 17.1966 4.88627C17.4895 5.17916 17.4895 5.65394 17.1966 5.94682L8.03059 15.1138C7.89003 15.2544 7.6991 15.3334 7.50032 15.3335C7.30158 15.3335 7.11066 15.2542 6.97004 15.1138L2.80305 10.9468C2.51016 10.6539 2.51016 10.1792 2.80305 9.88627C3.09595 9.59339 3.57071 9.59338 3.8636 9.88627L7.49934 13.522L16.1361 4.88627Z",fill:"currentColor"})})}const Me={en:{heading:"Check the details to book your puja procedure",subtext:"These names and gotra will be taken by the priest",ancestorsLabel:"Names of the ancestors:",performerLabel:"Name of the performer:",gotraLabel:"Gotra",whatsappLabel:"Whatsapp number",editDetailsLabel:"Edit Details",payButtonTemplate:"Pay {amount}"},hi:{heading:"अपनी पूजा-विधि बुक करने के लिए जानकारी की जांच करें",subtext:"ये नाम और गोत्र पंडित जी द्वारा लिए जाएंगे",ancestorsLabel:"पितृजन के नाम:",performerLabel:"कर्ता के नाम:",gotraLabel:"गोत्र",whatsappLabel:"Whatsapp नंबर",editDetailsLabel:"जानकारी बदले",payButtonTemplate:"{amount} भुगतान करें"},te:{heading:"మీ పూజ విధి బుక్ చేయడానికి వివరాలు తనిఖీ చేయండి",subtext:"ఈ పేర్లు మరియు గోత్రాన్ని పండితులు చదువుతారు",ancestorsLabel:"పితరుల పేర్లు:",performerLabel:"పూజ చేసే వారి పేరు:",gotraLabel:"గోత్రం",whatsappLabel:"WhatsApp నంబర్",editDetailsLabel:"మార్చండి",payButtonTemplate:"{amount} చెల్లించండి"}},At=t=>Me[t]??Me.en;function zt({children:t}){return e.jsx("div",{className:"inline-flex shrink-0 items-center gap-1 rounded-full border border-[#e5e3fd] bg-[#f6f5ff] px-3 py-0.5",children:t})}function Ft({isOpen:t,onClose:r,locale:s="en",ancestors:n,kartaNames:o,gotra:c,whatsappNumber:u,amount:x,onEditDetailsClick:f,onProceedPayment:g,className:h}){const d=At(s),y=d.payButtonTemplate.replace("{amount}",x);return e.jsx(be,{isOpen:t,onClose:r,showDragHandle:!1,closeButtonOutside:!0,ariaLabel:d.heading,className:l.cn("rounded-t-[20px] bg-[#f7f8f9]",h),header:e.jsxs("div",{className:"flex w-full flex-col items-center gap-0.5 px-4 pt-4",children:[e.jsx("p",{className:"text-center text-[18px] leading-6 font-bold text-[#22272b]",children:d.heading}),e.jsx("p",{className:"text-center text-[14px] leading-5 font-normal text-[#6b7280]",children:d.subtext})]}),footer:e.jsxs("div",{className:"flex w-full items-center gap-3 px-4 pb-4",children:[e.jsx(V,{variant:"outline",size:"lg",className:"h-12 shrink-0 rounded-xl border-[#141414] text-[#1d2125] hover:bg-gray-50",onClick:f,children:d.editDetailsLabel}),e.jsx(V,{variant:"primary",size:"lg",className:"h-12 flex-1 rounded-xl border-0 bg-linear-to-b from-[#5eb98e] to-[#159169] focus-visible:ring-[#159169]",onClick:g,children:y})]}),children:e.jsx("div",{className:"flex w-full flex-col gap-4 px-4 py-3",children:e.jsxs("div",{className:"flex w-full flex-col gap-3 rounded-lg bg-white py-3",children:[e.jsxs("div",{className:"flex w-full flex-col gap-3 px-3",children:[e.jsx("p",{className:"text-[14px] leading-5 font-bold text-[#374151]",children:d.ancestorsLabel}),e.jsx("div",{className:"flex w-full flex-wrap items-center gap-2",children:n.map(j=>e.jsxs(zt,{children:[e.jsx("span",{className:"text-[12px] leading-4 font-semibold text-[#374151]",children:j.value}),j.label&&e.jsxs("span",{className:"text-[10px] leading-3.5 font-medium text-[#6b7280]",children:["(",j.label,")"]})]},j.id))})]}),e.jsx("div",{className:"h-px w-full bg-[#e5e7eb]"}),e.jsxs("div",{className:"flex w-full flex-col gap-3 px-3",children:[e.jsx("p",{className:"text-[14px] leading-5 font-bold text-[#374151]",children:d.performerLabel}),e.jsx("div",{className:"flex w-full flex-wrap items-center gap-2",children:o.map((j,N)=>e.jsx(zt,{children:e.jsxs("span",{className:"text-[12px] leading-4 font-semibold text-[#374151]",children:[N+1,". ",j]})},N))})]}),e.jsx("div",{className:"h-px w-full bg-[#e5e7eb]"}),e.jsxs("div",{className:"flex w-full flex-col gap-2 px-3",children:[e.jsxs("div",{className:"flex w-full items-start gap-1",children:[e.jsx("span",{className:"flex-1 text-[12px] leading-4 font-semibold text-[#374151]",children:d.gotraLabel}),e.jsx("span",{className:"shrink-0 text-[12px] leading-4 font-semibold text-[#374151]",children:c})]}),e.jsxs("div",{className:"flex w-full items-start gap-1",children:[e.jsx("span",{className:"flex-1 text-[12px] leading-4 font-semibold text-[#374151]",children:d.whatsappLabel}),e.jsx("span",{className:"shrink-0 text-[12px] leading-4 font-semibold text-[#374151]",children:u})]})]})]})})})}const $e={en:{heading:"I do not know my Lineage(Gotra), what should I do?",body:"If you do not know your lineage (gotra), in this situation, you can consider your lineage as Kshyapa because Rishi Kshyapa is a sage whose descendants can be found in every caste. Therefore, he is considered a revered sage. The priest will chant these details during the worship.",okayLabel:"Okay",closeButtonAriaLabel:"Close"},hi:{heading:"मुझे अपना गोत्र नहीं पता, मुझे क्या करना चाहिए?",body:"अगर आप अपना गोत्र नहीं जानते हैं, तो ऐसी स्थिति में आप अपना गोत्र कश्यप मान सकते हैं, क्योंकि ऋषि कश्यप एक ऐसे ऋषि थे, जिनके वंशज हर जाति में पाए जाते हैं। इसलिए, उन्हें एक पूजनीय ऋषि माना जाता है। पूजा के दौरान पंडित जी कश्यप गोत्र का ही उच्चारण करेंगे।",okayLabel:"ठीक है",closeButtonAriaLabel:"बंद करें"},te:{heading:"నాకు నా గోత్రం తెలియదు, నేను ఏమి చేయాలి?",body:"మీకు మీ గోత్రం తెలియకపోతే, ఈ పరిస్థితిలో మీరు మీ గోత్రాన్ని కశ్యపగా భావించవచ్చు, ఎందుకంటే కశ్యప ఋషి వంశస్థులు ప్రతి కులంలో కనిపిస్తారు. అందువల్ల, ఆయనను ఒక పూజనీయ ఋషిగా భావిస్తారు. పూజ సమయంలో పండితుడు ఈ వివరాలను కశ్యప గోత్రంగానే ఉచ్చరిస్తారు.",okayLabel:"సరే",closeButtonAriaLabel:"మూసివేయండి"}},Ve=t=>$e[t]??$e.en;function Bt({isOpen:t,onClose:r,locale:s="en",className:n}){const o=Ve(s);return e.jsx(be,{isOpen:t,onClose:r,showCloseButton:!1,showDragHandle:!1,ariaLabel:o.heading,className:l.cn("rounded-t-[20px]",n),header:e.jsxs("div",{className:"flex w-full items-start gap-3 px-4 pt-5 pb-3",children:[e.jsx("p",{className:"flex-1 text-[18px] leading-6 font-bold text-[#22272b]",children:o.heading}),e.jsx("button",{type:"button",onClick:r,"aria-label":o.closeButtonAriaLabel,className:"flex size-6 shrink-0 items-center justify-center border-0 bg-transparent p-0 text-[#22272b]",children:e.jsx(Ca,{size:24,"aria-hidden":!0})})]}),footer:e.jsx("div",{className:"w-full px-4 pb-5",children:e.jsx(V,{variant:"primary",size:"xl",className:"w-full rounded-xl border-0 bg-linear-to-b from-[#5eb98e] to-[#159169] focus-visible:ring-[#159169]",onClick:r,children:o.okayLabel})}),children:e.jsx("p",{className:"w-full px-4 pb-3 text-[14px] leading-5.5 font-normal text-[#6b7280]",children:o.body})})}const Ue={en:{topBarTitle:"Fill in necessary details for Puja",backButtonAriaLabel:"Go back",whatsappNumberLabel:"Add your WhatsApp number",whatsappNumberPlaceholder:"0000000000",whatsappNumberHelperText:"Puja updates will be sent to this number",emailLabel:"Add your email",emailPlaceholder:"Enter your email",emailHelperText:"Puja updates will be sent to this email",kartaNameSectionTitle:"Enter the name of the people performing the puja for their ancestors (Karta)",kartaNameLabel:"Karta's name",kartaNameOptionalSuffix:"(optional)",kartaNamePlaceholder:"Name to be taken in the Puja",gotraFieldLabel:"Enter Karta’s Gotra (person performing puja)*",gotraFieldPlaceholder:"Enter Karta’s Gotra (if known)",gotraUnknownCheckboxLabel:"If you don’t know your Gotra, select this",gotraUnknownHelperText:"As per scriptures, the Sankalp can be taken with Kashyap Gotra, allowing you to receive the full benefit of the puja",ancestorNameSectionTitle:"Who is this puja for?",ancestorNameSectionSubtitle:"Enter the name of your ancestors",ancestorNameFieldSuffix:"name",sarvaPitruSectionSubtitle:"Your ancestors",sarvaPitruFieldValue:"For all ancestors",sarvaPitruHelperText:"This will be recited by the Pandit during puja",latePrefixLabel:"Late",proceedCtaLabel:"Proceed to fill details",kashyapGotraLabel:"Kashyap"},hi:{topBarTitle:"पूजा के लिए ज़रूरी विवरण भरे",backButtonAriaLabel:"वापस जाएं",whatsappNumberLabel:"अपना व्हाट्सएप नंबर जोड़ें",whatsappNumberPlaceholder:"0000000000",whatsappNumberHelperText:"पूजा से जुड़ी जानकारी इस नंबर पर भेजी जाएगी",emailLabel:"अपना ईमेल जोड़ें",emailPlaceholder:"अपना ईमेल दर्ज करें",emailHelperText:"पूजा से जुड़ी जानकारी इस ईमेल पर भेजी जाएगी",kartaNameSectionTitle:"पितरों के लिए पूजा करने वाले व्यक्ति का नाम भरे (कर्ता)",kartaNameLabel:"कर्ता का नाम",kartaNameOptionalSuffix:"(वैकल्पिक)",kartaNamePlaceholder:"पूजा में लिया जाने वाला नाम",gotraFieldLabel:"कर्ता का गोत्र भरें (पूजा करने वाले व्यक्ति का)*",gotraFieldPlaceholder:"कर्ता का गोत्र भरें (यदि ज्ञात हो)",gotraUnknownCheckboxLabel:"अगर आपको गोत्र नहीं पता तो इसे चुनें",gotraUnknownHelperText:"शास्त्रों के अनुसार कश्यप गोत्र से पूजा में संकल्प लिया जा सकता है इससे आपको पूजा का पूर्ण लाभ प्राप्त होता है",ancestorNameSectionTitle:"पूजा-विधि किन पितृ के लिए बुक कर रहे है?",ancestorNameSectionSubtitle:"पितृजन का नाम भरें",ancestorNameFieldSuffix:"का नाम",sarvaPitruSectionSubtitle:"पितृजन का नाम",sarvaPitruFieldValue:"सर्वपितृ के लिए",sarvaPitruHelperText:"यह पूजा-विधि के दौरान पंडित द्वारा उच्चारित किया जाएगा",latePrefixLabel:"स्व.",proceedCtaLabel:"आगे बढ़ें, और डिटेल्स भरें",kashyapGotraLabel:"कश्यप"},te:{topBarTitle:"పూజ కోసం అవసరమైన వివరాలు నమోదు చేయండి",backButtonAriaLabel:"వెనక్కి వెళ్ళండి",whatsappNumberLabel:"మీ వాట్సాప్ నంబర్ జోడించండి",whatsappNumberPlaceholder:"0000000000",whatsappNumberHelperText:"పూజ నవీకరణలు ఈ నంబర్కు పంపబడతాయి",emailLabel:"మీ ఇమెయిల్ జోడించండి",emailPlaceholder:"మీ ఇమెయిల్ నమోదు చేయండి",emailHelperText:"పూజ నవీకరణలు ఈ ఇమెయిల్కు పంపబడతాయి",kartaNameSectionTitle:"పితరుల కోసం పూజ చేసే వ్యక్తుల పేరు నమోదు చేయండి (కర్త)",kartaNameLabel:"కర్త పేరు",kartaNameOptionalSuffix:"(ఐచ్ఛికం)",kartaNamePlaceholder:"పూజలో తీసుకోవలసిన పేరు",gotraFieldLabel:"*కర్త గోత్రం నమోదు చేయండి (పూజ చేసే వ్యక్తి)",gotraFieldPlaceholder:"కర్త గోత్రం నమోదు చేయండి (తెలిస్తే)",gotraUnknownCheckboxLabel:"మీ గోత్రం తెలియకపోతే, ఇది ఎంచుకోండి",gotraUnknownHelperText:"శాస్త్రాల ప్రకారం, సంకల్పం కశ్యప గోత్రంతో చేయవచ్చు, ఇది పూజ యొక్క పూర్తి ఫలం పొందడానికి అనుమతిస్తుంది",ancestorNameSectionTitle:"ఈ పూజ ఎవరి కోసం?",ancestorNameSectionSubtitle:"మీ పితరుల పేరు నమోదు చేయండి",ancestorNameFieldSuffix:"పేరు",sarvaPitruSectionSubtitle:"మీ పితరులు",sarvaPitruFieldValue:"సర్వ పితరుల కోసం",sarvaPitruHelperText:"ఇది పూజ సమయంలో పండితుడు ఉచ్చరిస్తారు",latePrefixLabel:"దివంగత",proceedCtaLabel:"వివరాలు నమోదు చేయండి",kashyapGotraLabel:"కశ్యప"}},Dt=t=>Ue[t]??Ue.en,It={en:["1st","2nd","3rd","4th","5th","6th","7th","8th","9th","10th"],hi:["पहले","दूसरे","तीसरे","चौथे","पांचवें","छठे","सातवें","आठवें","नौवें","दसवें"],te:["1వ","2వ","3వ","4వ","5వ","6వ","7వ","8వ","9వ","10వ"]},ur={en:"th",hi:"वें",te:"వ"},Rt=(t,r)=>{const s=r in It?r:"en";return It[s][t-1]??`${t}${ur[s]}`},He=40,We="+91",fr=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function xr({locale:t="en",values:r,onValuesChange:s,isGlobal:n=!1,gotraOptions:o=[],isSarvaPitru:c=!1,onBackClick:u,amount:x,ritualsCountLabel:f,onPriceInfoClick:g,showPriceInfoIcon:h=!0,canProceed:d,proceedCtaLabel:y,proceedButtonProps:j,onProceedPayment:N,className:S}){const[_,w]=v.useState(!1),[k,T]=v.useState(!1),m=Dt(t),z=Ve(t),H=L=>{const R=Rt(L+1,t);return L===0?`*${R} ${m.kartaNameLabel}`:`${R} ${m.kartaNameLabel} ${m.kartaNameOptionalSuffix}`},I=L=>s({...r,...L}),Y=(L,R)=>{const X=[...r.kartaNames];X[L]=R,I({kartaNames:X})},ae=(L,R)=>{I({ancestors:r.ancestors.map(X=>X.id===L?{...X,value:R}:X)})},[M,W]=v.useState(!1),K=v.useRef(null);v.useEffect(()=>{if(!M)return;const L=R=>{K.current&&!K.current.contains(R.target)&&W(!1)};return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[M]);const $=o.filter(L=>L.toLowerCase().includes(r.gotra.trim().toLowerCase())),G=L=>{I({gotra:L}),W(!1)},te=()=>{const L=!r.isGotraUnknown;I({isGotraUnknown:L,gotra:L?m.kashyapGotraLabel:r.gotra})},Z=l.getMaxLengthForCountry(We),J=l.validatePhoneByCountryCode(r.whatsappNumber,We).isValid,Q=fr.test(r.email),re=r.whatsappNumber.length>0&&!J,ye=r.email.length>0&&!Q,Ne=(n?Q:J)&&r.kartaNames[0].trim().length>0&&r.gotra.trim().length>0&&(c||r.ancestors.every(L=>L.value.trim().length>0)),we=d??Ne,ke=r.gotra.trim().length>0?r.gotra:m.kashyapGotraLabel,qe=n?r.email:r.whatsappNumber;return e.jsxs("div",{className:l.cn("flex min-h-screen w-full flex-col bg-linear-to-b from-[5.546%] from-[#fbe9f0] to-[12.146%] to-[#f7f8f9]",S),children:[e.jsxs("div",{className:"flex w-full items-center gap-3 border-b border-[#f3f4f6] bg-white px-4 py-3 drop-shadow-[0px_0px_5px_rgba(0,0,0,0.08)] ",children:[e.jsx("button",{type:"button",onClick:u,"aria-label":m.backButtonAriaLabel,className:"flex size-8 shrink-0 items-center justify-center rounded-lg border-0 bg-transparent p-0 drop-shadow-[0px_0px_5px_rgba(0,0,0,0.1)]",children:e.jsx(Te,{className:"size-6 text-[#1d2125]","aria-hidden":!0})}),e.jsx("p",{className:"text-[18px] leading-5 font-bold text-[#1d2125]",children:m.topBarTitle})]}),e.jsx("div",{className:"flex w-full flex-1 flex-col items-center gap-4 px-4 py-4",children:e.jsxs("div",{className:"flex w-full max-w-md flex-col gap-4",children:[e.jsxs("div",{className:"flex w-full flex-col gap-2 rounded-2xl border border-[#f3f4f6] bg-white p-3",children:[e.jsx("p",{className:"text-[14px] leading-5 font-semibold text-[#1d2125]",children:n?m.emailLabel:m.whatsappNumberLabel}),n?e.jsx(se,{type:"email",inputMode:"email",value:r.email,placeholder:m.emailPlaceholder,error:ye,onChange:L=>I({email:L}),containerClassName:"w-full gap-0",wrapperClassName:"h-14 rounded-xl px-4",className:"text-[18px]"}):e.jsxs("div",{className:"flex w-full items-start gap-1",children:[e.jsxs("div",{className:"flex h-14 shrink-0 items-center gap-1 rounded-xl border border-[#d1d5db] bg-white pl-3 pr-2",children:[e.jsx("span",{className:"text-[20px] leading-7","aria-hidden":!0,children:l.getFlagEmoji("IN")}),e.jsx("span",{className:"text-[18px] leading-6 font-medium text-[#1d2125]",children:We})]}),e.jsx(se,{type:"tel",inputMode:"numeric",value:r.whatsappNumber,placeholder:m.whatsappNumberPlaceholder,maxLength:Z,error:re,onChange:L=>I({whatsappNumber:L.replace(/\D/g,"").slice(0,Z)}),containerClassName:"w-auto flex-1 gap-0",wrapperClassName:"h-14 rounded-xl px-4",className:"text-[18px]"})]}),e.jsx("p",{className:"px-3 text-[12px] leading-4 font-medium text-[#6b7280]",children:n?m.emailHelperText:m.whatsappNumberHelperText})]}),e.jsxs("div",{className:"flex w-full flex-col gap-6 rounded-2xl border border-[#f3f4f6] bg-white p-3",children:[e.jsx("p",{className:"text-[16px] leading-[22px] font-bold text-[#22272b]",children:m.kartaNameSectionTitle}),e.jsx("div",{className:"flex w-full flex-col gap-2.5",children:r.kartaNames.map((L,R)=>e.jsx(se,{label:H(R),placeholder:m.kartaNamePlaceholder,value:L,maxLength:He,showCharCount:!0,wrapperClassName:l.cn("h-12 rounded-xl",R===0&&"bg-[#f3f4f6]"),onChange:X=>Y(R,X)},R))})]}),e.jsxs("div",{className:"flex w-full flex-col gap-6 rounded-2xl border border-[#f3f4f6] bg-white p-3",children:[e.jsxs("div",{ref:K,className:"relative flex w-full flex-col gap-2",children:[e.jsx("label",{htmlFor:"karta-gotra",className:"text-[14px] leading-5 font-semibold text-[#1d2125]",children:m.gotraFieldLabel}),e.jsxs("div",{className:"flex h-12 w-full items-center gap-2 rounded-xl border border-[#d1d5db] bg-white px-3 focus-within:ring-2 focus-within:ring-[#f75e22]/40",children:[e.jsx("input",{id:"karta-gotra",value:r.gotra,placeholder:m.gotraFieldPlaceholder,maxLength:He,autoComplete:"off",onFocus:()=>W(!0),onChange:L=>{I({gotra:L.target.value}),W(!0)},className:"w-full min-w-0 flex-1 border-0 bg-transparent p-0 text-[16px] leading-5.5 font-medium text-[#374151] placeholder:text-[#ced1d7] focus:outline-none focus:ring-0"}),e.jsx("button",{type:"button",onClick:()=>T(!0),"aria-label":z.heading,className:"flex size-6 shrink-0 items-center justify-center border-0 bg-transparent p-0 text-[#9ca3af]",children:e.jsx(ue,{size:24,"aria-hidden":!0})})]}),M&&$.length>0&&e.jsx("div",{role:"listbox",className:"absolute top-[calc(100%+4px)] left-0 z-10 max-h-60 w-full overflow-y-auto rounded-xl border border-[#e5e7eb] bg-white py-1 shadow-lg",children:$.map(L=>e.jsx("button",{type:"button",role:"option","aria-selected":L===r.gotra,onClick:()=>G(L),className:l.cn("flex w-full items-center px-3 py-2 text-left text-[14px] font-medium text-[#1d2125] hover:bg-[#f9fafb]",L===r.gotra&&"bg-[#fff9e9]"),children:L},L))})]}),e.jsxs("div",{className:"flex w-full flex-col gap-1",children:[e.jsxs("button",{type:"button",onClick:te,"aria-pressed":r.isGotraUnknown,className:"flex items-center gap-1 border-0 bg-transparent p-0",children:[r.isGotraUnknown?e.jsx(Ea,{size:24,className:"shrink-0 text-[#f75e22]","aria-hidden":!0}):e.jsx(_a,{size:24,className:"shrink-0 text-[#d1d5db]","aria-hidden":!0}),e.jsx("span",{className:"text-[12px] leading-4 font-semibold text-[#374151]",children:m.gotraUnknownCheckboxLabel})]}),e.jsx("p",{className:"text-[10px] leading-[14px] font-medium text-[#6b7280]",children:m.gotraUnknownHelperText})]})]}),e.jsxs("div",{className:"flex w-full flex-col gap-2 rounded-2xl border border-[#f3f4f6] bg-white",children:[e.jsxs("div",{className:"flex w-full items-center gap-2.5 px-3 pt-3 pb-2",children:[e.jsx(fe,{size:"sm",icon:e.jsx(Na,{size:20,className:"text-[#f38415]","aria-hidden":!0})}),e.jsxs("div",{className:"flex flex-1 flex-col",children:[e.jsx("p",{className:"text-[16px] leading-[22px] font-bold text-[#22272b]",children:m.ancestorNameSectionTitle}),e.jsx("p",{className:"text-[14px] leading-5 font-normal text-[#6b7280]",children:c?m.sarvaPitruSectionSubtitle:m.ancestorNameSectionSubtitle})]})]}),c?e.jsxs("div",{className:"flex w-full flex-col items-start gap-1 p-3 pt-0",children:[e.jsx("div",{className:"flex h-12 w-full items-center rounded-xl border border-[#d1d5db] bg-[#f3f4f6] px-3",children:e.jsx("span",{className:"text-[16px] leading-5.5 font-medium text-[#374151]",children:m.sarvaPitruFieldValue})}),e.jsx("p",{className:"px-3 text-[12px] leading-4 font-medium text-[#6b7280]",children:m.sarvaPitruHelperText})]}):e.jsx("div",{className:"flex w-full flex-col gap-2.5 p-3 pt-0",children:r.ancestors.map(L=>e.jsx(se,{label:`*${L.label} ${m.ancestorNameFieldSuffix}`,value:L.value,prefix:m.latePrefixLabel,placeholder:m.kartaNamePlaceholder,maxLength:He,showCharCount:!0,wrapperClassName:"h-12 rounded-xl",onChange:R=>ae(L.id,R)},L.id))})]})]})}),e.jsx("div",{className:"sticky bottom-0 w-full",children:e.jsx(ve,{amount:x,subtitle:f,onInfoClick:g,showInfoIcon:h,proceedLabel:y??m.proceedCtaLabel,onProceed:()=>w(!0),proceedButtonProps:{disabled:!we,...j}})}),e.jsx(Ft,{isOpen:_,onClose:()=>w(!1),onEditDetailsClick:()=>w(!1),locale:t,ancestors:c?[{id:"sarva-pitru",label:"",value:m.sarvaPitruFieldValue}]:r.ancestors,kartaNames:r.kartaNames,gotra:ke,whatsappNumber:qe,amount:x,onProceedPayment:()=>{w(!1),N()}}),e.jsx(Bt,{isOpen:k,onClose:()=>T(!1),locale:t})]})}function hr(t=3,r=[]){return{whatsappNumber:"",email:"",kartaNames:Array.from({length:Math.max(1,t)},()=>""),gotra:"",isGotraUnknown:!1,ancestors:r}}const Mt="https://srm-cdn.a4b.io/yoda/1788256892735.svg",pr="https://srm-cdn.a4b.io/yoda/1788256910547.svg",mr="https://srm-cdn.a4b.io/yoda/1788256867970.svg",br="https://srm-cdn.a4b.io/yoda/1788256921651.svg",gr="https://srm-cdn.a4b.io/yoda/1788256935709.svg",vr="https://srm-cdn.a4b.io/yoda/1788256949665.svg";function jr({variant:t}){return e.jsxs("div",{className:"relative size-10 shrink-0 overflow-clip rounded-full",children:[t==="pandits"&&e.jsxs(e.Fragment,{children:[e.jsx("img",{src:Mt,alt:"","aria-hidden":!0,className:"absolute left-[-6px] top-[12.2px] size-[25.6px]"}),e.jsx("img",{src:Mt,alt:"","aria-hidden":!0,className:"absolute left-[21px] top-[12.2px] size-[25.6px]"}),e.jsx("img",{src:pr,alt:"","aria-hidden":!0,className:"absolute left-[1.98px] top-[5.98px] size-[36.045px]"})]}),t==="gotra"&&e.jsxs("div",{className:"absolute left-[7.83px] top-[7.83px] size-[23.94px] overflow-clip",children:[e.jsx("div",{className:"absolute inset-[31.43%_30.92%_20.12%_20.62%] bg-[#28345a]"}),e.jsx("div",{className:"absolute inset-[0_9.1%_0_9.07%]",children:e.jsx("img",{src:mr,alt:"","aria-hidden":!0,className:"absolute inset-0 size-full"})})]}),t==="video"&&e.jsxs("div",{className:"absolute left-[5.58px] top-[5.58px] size-[28.836px] overflow-clip",children:[e.jsx("div",{className:"absolute inset-[9.31%_4.02%_27.36%_4.17%]",children:e.jsx("img",{src:br,alt:"","aria-hidden":!0,className:"absolute inset-0 size-full"})}),e.jsx("div",{className:"absolute inset-[30.03%_39.59%_48.06%_40.83%]",children:e.jsx("img",{src:gr,alt:"","aria-hidden":!0,className:"absolute inset-0 size-full"})}),e.jsx("div",{className:"absolute inset-[80%_4.16%_9.17%_5.42%]",children:e.jsx("img",{src:vr,alt:"","aria-hidden":!0,className:"absolute inset-0 size-full"})})]})]})}const yr="https://srm-cdn.a4b.io/yoda/1788256961374.svg",$t="https://srm-cdn.a4b.io/yoda/1788256971870.svg";function Nr({badgeLabel:t,headingPrefix:r,ritualCount:s,ritualCountLabel:n,headingSuffix:o,trustItems:c}){return e.jsxs("section",{className:"flex w-full flex-col items-center gap-3 rounded-b-[32px] border-b-2 border-[#FCCF9A] bg-linear-to-b from-white to-[#FFEFDB] px-5 py-4",children:[e.jsxs("div",{className:"flex flex-col items-center gap-2",children:[e.jsxs("div",{className:"relative flex size-14 items-center justify-center",children:[e.jsx("img",{src:$t,alt:"","aria-hidden":!0,className:"pointer-events-none absolute inset-0 size-full",style:{maskImage:"linear-gradient(to bottom, black 0%, black 45%, transparent 70%)",WebkitMaskImage:"linear-gradient(to bottom, black 0%, black 45%, transparent 70%)"}}),e.jsx("img",{src:$t,alt:"","aria-hidden":!0,className:"pointer-events-none absolute inset-0 size-full blur-sm",style:{maskImage:"linear-gradient(to bottom, transparent 45%, black 70%, black 100%)",WebkitMaskImage:"linear-gradient(to bottom, transparent 45%, black 70%, black 100%)"}}),e.jsx("img",{src:yr,alt:"Sri Mandir",className:"relative z-10 h-[53px] w-auto object-contain"})]}),e.jsxs("p",{className:"text-xs font-semibold text-[#d51f68]",children:["✦ ",t," ✦"]})]}),e.jsxs("p",{className:"px-4 text-center text-[18px] font-bold leading-6 text-[#22272b]",children:[r,s," ",n," ",o]}),e.jsx("div",{className:"flex w-full items-start justify-center gap-3",children:c.map(u=>e.jsxs("div",{className:"flex w-25 flex-col items-center gap-1 py-2",children:[e.jsx(jr,{variant:u.variant}),e.jsx("p",{className:"w-full text-center text-[10px] font-medium leading-3.5 text-[#AD540A]",children:u.text})]},u.variant))})]})}function wr(t){return A({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M64.12,147.8a4,4,0,0,1-4,4.2H16a8,8,0,0,1-7.8-6.17,8.35,8.35,0,0,1,1.62-6.93A67.79,67.79,0,0,1,37,117.51a40,40,0,1,1,66.46-35.8,3.94,3.94,0,0,1-2.27,4.18A64.08,64.08,0,0,0,64,144C64,145.28,64,146.54,64.12,147.8Zm182-8.91A67.76,67.76,0,0,0,219,117.51a40,40,0,1,0-66.46-35.8,3.94,3.94,0,0,0,2.27,4.18A64.08,64.08,0,0,1,192,144c0,1.28,0,2.54-.12,3.8a4,4,0,0,0,4,4.2H240a8,8,0,0,0,7.8-6.17A8.33,8.33,0,0,0,246.17,138.89Zm-89,43.18a48,48,0,1,0-58.37,0A72.13,72.13,0,0,0,65.07,212,8,8,0,0,0,72,224H184a8,8,0,0,0,6.93-12A72.15,72.15,0,0,0,157.19,182.07Z"},child:[]}]})(t)}const Ge={en:{title:"Who is this puja for?",subtitle:"Your ancestors",value:"For all ancestors",helperText:"This will be recited by the Pandit during puja"},hi:{title:"पूजा-विधि किन पितृ के लिए बुक कर रहे है?",subtitle:"पितृजन का नाम",value:"सर्वपितृ के लिए",helperText:"यह पूजा-विधि के दौरान पंडित द्वारा उच्चारित किया जाएगा"}},Vt=t=>Ge[t]??Ge.en,Ut=v.forwardRef(({locale:t="en",title:r,subtitle:s,value:n,helperText:o,icon:c,className:u,headerClassName:x,valueBoxClassName:f,helperTextClassName:g,...h},d)=>{const y=Vt(t);return e.jsxs("div",{ref:d,className:l.cn("rounded-2xl border border-gray-100 bg-white p-4 shadow-sm",u),...h,children:[e.jsxs("div",{className:l.cn("flex items-center gap-3",x),children:[e.jsx(fe,{icon:c??e.jsx(wr,{size:22,"aria-hidden":!0}),size:"lg"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-lg leading-6 font-bold text-[#1d2125]",children:r??y.title}),e.jsx("p",{className:"mt-0.5 text-base leading-5 text-gray-500",children:s??y.subtitle})]})]}),e.jsx("div",{className:l.cn("mt-4 rounded-xl border border-gray-200 bg-gray-50 px-3.5 py-3.5",f),children:e.jsx("span",{className:"text-lg leading-6 font-medium text-gray-700",children:n??y.value})}),e.jsx("p",{className:l.cn("mt-3 text-sm leading-4.5 text-gray-500",g),children:o??y.helperText})]})});Ut.displayName="SarvaPitruCard",Object.defineProperty(p,"cn",{enumerable:!0,get:()=>l.cn}),p.AudioQuestionCard=Ra,p.BOOKING_SUMMARY_BANNER_DEFAULT_COPY=De,p.BillDetails=Ot,p.BookingSummaryBanner=Et,p.Button=V,p.CHECKOUT_BAR_DEFAULT_COPY=Fe,p.CONFIRM_PUJA_DETAILS_MODAL_DEFAULT_COPY=Me,p.CartReviewAddedBadge=Wa,p.CartReviewChangeButton=Ha,p.CartReviewItem=ze,p.CartReviewMandapItem=jt,p.CartView=Ka,p.CheckIcon=dr,p.CheckoutBar=ve,p.Chip=ht,p.ConfinedBottomSheet=be,p.ConfirmPujaDetailsModal=Ft,p.DatePickerSheet=Ja,p.EmailSheet=er,p.FAQAccordion=Oa,p.FAQSection=ft,p.GOTRA_INFO_MODAL_DEFAULT_COPY=$e,p.GotraInfoModal=Bt,p.IconBadge=fe,p.L2Card=sr,p.LanguageSwitcher=Oe,p.OutcomeButton=or,p.OutcomeSummary=Nr,p.PACKAGE_SELECT_DEFAULT_COPY=Be,p.PUJA_DETAILS_FORM_DEFAULT_COPY=Ue,p.PackageSelect=qa,p.PhoneNumberSheet=Qa,p.PlusIcon=cr,p.PujaDetailsForm=xr,p.QuantityStepper=Ua,p.SARVA_PITRU_CARD_DEFAULT_COPY=Ge,p.SarvaPitruCard=Ut,p.SelectorCard=Ae,p.SelectorCardEditableField=$a,p.SelectorCardInfoRow=Va,p.SelectorCardNote=gt,p.SelectorCardPriceBadge=bt,p.ServiceOfferCard=yt,p.StepProgressHeader=Fa,p.TestimonialCard=ka,p.TextField=se,p.TithiPickerSheet=Za,p.TopBar=za,p.TrustBadgesBar=_t,p.VideoPlayer=xt,p.buttonVariants=it,p.createEmptyPujaDetailsFormValues=hr,p.getBookingSummaryBannerDefaultCopy=Pt,p.getCheckoutBarDefaultCopy=Lt,p.getConfirmPujaDetailsModalDefaultCopy=At,p.getGotraInfoModalDefaultCopy=Ve,p.getKartaOrdinalLabel=Rt,p.getPackageSelectDefaultCopy=St,p.getPujaDetailsFormDefaultCopy=Dt,p.getSarvaPitruCardDefaultCopy=Vt,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})}));
|