1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="218e7865-bd13-48ae-b566-a990c9352ca7",e._sentryDebugIdIdentifier="sentry-dbid-218e7865-bd13-48ae-b566-a990c9352ca7")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2416],{58994:function(e,t,n){"use strict";n.d(t,{$u:function(){return ei},Aj:function(){return T},Aq:function(){return k},B:function(){return g},C1:function(){return P},Cc:function(){return et},GG:function(){return x},HI:function(){return U},KH:function(){return ed},OE:function(){return G},Ob:function(){return a},Oh:function(){return O},Pu:function(){return E},QK:function(){return er},SM:function(){return R},Si:function(){return Q},Us:function(){return w},WK:function(){return en},Z3:function(){return Z},Z7:function(){return el},aI:function(){return W},af:function(){return V},e$:function(){return b},et:function(){return D},gI:function(){return z},gJ:function(){return F},gb:function(){return J},j:function(){return I},kK:function(){return C},lJ:function(){return v},mu:function(){return eu},ne:function(){return es},nu:function(){return q},oP:function(){return K},ox:function(){return j},pt:function(){return ec},rd:function(){return y},sN:function(){return f},sq:function(){return X},sw:function(){return e_},u8:function(){return H},ux:function(){return em},v2:function(){return eo},w:function(){return s},wV:function(){return ep},x$:function(){return ee},zK:function(){return Y}});var i,r,a,s,o=n(54110),c=n(82405),l=n(72397),u=n(31317),_=n(37350);let d="myor_current_screen",m="NA",p=null;function y(e){var t;p!==e&&(m=null!==(t=(0,u.YX)(d))&&void 0!==t?t:"NA",(0,u.nz)(d,e),p=e)}function f(){return m}let h="myor_entry_source",A=null;function g(e){if(A)return;let t=(0,u.YX)(h);if(t){A=t;return}A=function(e){var t,n;let i=null===(t=Array.isArray(e.utm_medium)?e.utm_medium[0]:e.utm_medium)||void 0===t?void 0:t.toLowerCase(),r=null===(n=Array.isArray(e.utm_source)?e.utm_source[0]:e.utm_source)||void 0===n?void 0:n.toLowerCase();return(Array.isArray(e.deeplink)?e.deeplink[0]:e.deeplink)?"deeplink":i&&["cpc","paid","ppc","ad"].includes(i)?"ad":i&&["push","notification"].includes(i)?"notification":"feed"===i?"feed":r||i?"organic":"direct"}(e),(0,u.nz)(h,A)}function v(){return null!=A?A:"direct"}(i=a||(a={})).page_entry="MYOR_Page_Entry",i.page_impression="MYOR_Page_Impression",i.page_exit="MYOR_Page_Exit",i.page_failed="MYOR_Page_Failed",i.page_swipe="MYOR_Page_Swipe",i.page_click="MYOR_Page_Click",i.card_impression="MYOR_Card_Impression",i.card_click="MYOR_Card_Click",i.bottomsheet_impression="MYOR_Bottomsheet_Impression",i.bottomsheet_click="MYOR_Bottomsheet_Click",i.bottomsheet_dismiss="MYOR_Bottomsheet_Dismiss",i.bottomsheet_swipe="MYOR_Bottomsheet_Swipe",i.widget_click="MYOR_Widget_Click",i.back_click="MYOR_Back_Click",i.section_click="MYOR_Section_Click",i.popup_impression="MYOR_Popup_Impression",i.popup_click="MYOR_Popup_Click",i.popup_dismiss="MYOR_Popup_Dismiss",i.package_impression="MYOR_Package_Impression",i.package_interaction="MYOR_Package_Interaction",i.package_click="MYOR_Package_Click",i.package_dismiss="MYOR_Package_Dismiss",i.cart_page_impression="MYORCart_Page_Impression",i.cart_item_impression="MYORCart_Item_Impression",i.cart_item_click="MYORCart_Item_Click",i.cart_page_swipe="MYORCart_Page_Swipe",i.cart_back_click="MYORCart_Back_Click",i.cart_cta_click="MYORCart_CartCTA_Click",i.cart_form_impression="MYORCart_Form_Impression",i.cart_form_click="MYORCart_Form_Click",i.cart_form_cta_click="MYORCart_FormCTA_Click",i.cart_bottomsheet_impression="MYORCart_Bottomsheet_Impression",i.cart_bottomsheet_click="MYORCart_Bottomsheet_Click",i.cart_bottomsheet_dismiss="MYORCart_Bottomsheet_Dismiss",i.payment_initiated="Payment_Initiated",(r=s||(s={})).PUJA="puja",r.CHADHAVA="chadhava";let R="make_your_own_ritual",P=20,I=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Object.entries({...n,variant:(0,_.An)(),previous_screen:m});i.length;let r=Object.fromEntries(i.slice(0,P).map((e,t)=>
1{let[n,i]=e;return["attr".concat(t+1),{type:n,value:i}]}));try{(0,c.ZP)({source:R,event:e,sub_type:t,event_type:o.Ze.USER,...r})}catch(e){}},S=e=>"ritual"===e.ritualType?"puja":"chadhava",O=e=>e.some(e=>e.type===l.Z$.SEVA)?"puja":"chadhava",T=e=>{let t=null!=e?e:[];return JSON.stringify({selected_rituals_count:t.length,selected_ritual_names:t.map(e=>e.ritual_name).join(", "),selected_store_id:t.map(e=>e.id).join(", "),total_selected_price:t.reduce((e,t)=>e+t.price,0)})},C=e=>Object.values(e).some(e=>Object.values(e.deathTithiMethodByAncestor).some(e=>"tithi"===e||"date"===e))?"punya_tithi":"all_amavasya",M=e=>{var t,n,i;return JSON.stringify({store_id:e.id,ritual_name:e.ritual_name,ritual_type:e.ritualType,price:e.price,dates:"NA",place:null!==(t=e.locationLabel)&&void 0!==t?t:"",relation:"NA",tithi:"NA",rating:null!==(n=e.rating)&&void 0!==n?n:"",bookings_shown:null!==(i=e.bookings)&&void 0!==i?i:""})},B=e=>JSON.stringify({ritual_count:e}),N=()=>({ritual_selection_id:"NA",entry_source:v(),selected_pitru:"",selected_pitru_count:"0",selected_tithi:"all_amavasya"});function k(e,t){I("MYOR_Page_Entry",o._L.EMPTY,{element_type:"Page",element_name:"MYOR_Ritual_Selection",current_screen:"MYOR_Ritual_Selection",myor_details:T(t),element_details:B(e),...N()})}function Y(e,t,n){I("MYOR_Page_Impression",o._L.IMPRESSION,{element_type:"Page",element_name:"MYOR_Ritual_Selection",element_position:"NA",section_name:"Page",section_position:"NA",current_screen:"MYOR_Ritual_Selection",page_load_time_ms:e,service_type:O(n),myor_details:T(n),element_details:B(t),...N()})}function w(e){I("MYOR_Page_Failed",o._L.FAILURE,{element_type:"Page",element_name:"MYOR_Ritual_Selection",current_screen:"MYOR_Ritual_Selection",failure_reason:e})}function E(e,t,n){I("MYOR_Page_Exit",o._L.EMPTY,{element_type:"Page",element_name:"MYOR_Ritual_Selection",element_position:"0",section_name:"NA",section_position:"NA",current_screen:"MYOR_Ritual_Selection",service_type:O(n),myor_details:T(n),element_details:B(t),exit_type:e,...N()})}function b(e){I("MYOR_Page_Swipe",o._L.SCROLL,{element_type:"NA",element_name:"page_scroll",current_screen:"MYOR_Ritual_Selection",myor_details:T(e.selectedRituals),element_details:B(e.totalRituals),swipe_percentage:e.swipePercentage,swipe_count:e.swipeCount,swipe_direction:e.swipeDirection,...N()})}function j(e){I("MYOR_Page_Click",o._L.CLICK,{element_type:"Widget",element_name:"Language",section_name:"Header",current_screen:"MYOR_Ritual_Selection",element_details:JSON.stringify({selected_language:e.selectedLanguage,language_flag:e.languageFlag,default_language:e.defaultLanguage})})}let L=e=>JSON.stringify({actual_price:e.price,discounted_price:e.price});function D(e,t,n){I("MYOR_Card_Impression",o._L.IMPRESSION,{element_id:e.id,element_type:"Card",element_name:e.ritual_name,element_position:t,section_name:"Ritual_list",section_position:"NA",current_screen:"MYOR_Ritual_Selection",service_type:S(e),myor_details:T(n),ritual_details:M(e),ritual_flag:"NA",price_details:L(e),...N(),ritual_selection_id:e.id})}function V(e){let{ritual:t,position:n,clickType:i,selectedRituals:r}=e;I("MYOR_Card_Click",o._L.CLICK,{element_id:t.id,element_type:"ritual_info"===i?"Widget":"Card/Checkbox",element_name:t.ritual_name,element_position:n,section_name:"Ritual_list",section_position:"NA",current_screen:"MYOR_Ritual_Selection",service_type:S(t),click_type:i,myor_details:T(r),ritual_details:M(t),ritual_flag:"NA",price_details:L(t),element_details:JSON.stringify({store_id:t.id,ritual_name:t.ritual_name,ancestor_group:"NA"}),...N(),ritual_selection_id:t.id})}function J(e,t){I("MYOR_Bottomsheet_Impression",o._L.IMPRESSION,{element_id:e.id,element_type:"Bottomsheet",element_name:"About_ritual",section_name:"About_ritual_bottomsheet",section_position:"NA",current_screen:"MYOR_Ritual_Selection",service_type:S(e),myor_details:T(t),ritual_details:M(e),ritual_flag:"NA",price_details:L(e),...N(),ritual_selection_id:e.id})}function H(e,t,n){I("MYOR_Bottomsheet_Dismiss",o._L.EMPTY,{element_id:e.id,element_type:"Dismiss",element_name:"About_ritual",section_name:"About_ritual_bottomsheet",section_position:"NA",current_screen:"MYOR_Ritual_Selection",service_type:S(e),dismiss_type:t,myor_details:T(n),ritual_details:M(e),ritual_flag:"NA",price_details:L(e),...N(),ritual_selection_id:e.id})}function x(e){let{ritual:t,selectedRituals:n}=e;I("MYOR_Bottomsheet_Swipe",o._L.SCROLL,{element_id:t.id,element_type:"Widget",element_name:"image_carousel",section_name:"About_ritual_bottomsheet",section_position:"NA",current_screen:"MYOR_Ritual_Selection",service_type:S(t),click_type:"carousel_swipe",swipe_percentage:e.swipePercentage,swipe_count:e.swipeCount,swipe_direction:e.swipeDirection,myor_details:T(n),ritual_details:M(t),ritual_flag:"NA",price_details:L(t),...N(),ritual_selection_id:t.
1id})}function K(e){I("MYOR_Widget_Click",o._L.CLICK,{element_type:"CTA",element_name:"Proceed",section_name:"sticky_widget",current_screen:"MYOR_Ritual_Selection",myor_details:T(e)})}function U(e){I("MYOR_Page_Entry",o._L.EMPTY,{element_type:"Page",element_name:"Pitru_Selection",element_position:"NA",section_name:"NA",section_position:"NA",current_screen:"Pitru_Selection",service_type:O(e),step_index:"1/3",myor_details:T(e),element_details:JSON.stringify({ritual_flag:"NA"}),...N()})}function W(e){I("MYOR_Page_Impression",o._L.IMPRESSION,{element_type:"Page",element_name:"Page",element_position:"NA",section_name:"pitru_selection",section_position:1,current_screen:"Pitru_Selection",service_type:O(e.selectedRituals),current_ritual:e.currentRitual,ritual_position:e.ritualPosition,step_index:"1/3",myor_details:T(e.selectedRituals),...N(),ritual_selection_id:e.pujaId})}function G(e){I("MYOR_Back_Click",o._L.CLICK,{element_type:"Icon",element_name:"Back",element_position:"0",section_name:"Header",current_screen:e.currentScreen,click_type:"back",current_ritual:e.currentRitual,ritual_selection_id:e.pujaId,step_index:e.stepIndex,myor_details:T(e.selectedRituals)})}function Z(e){I("MYOR_Section_Click",o._L.CLICK,{element_type:"Widget/chip",element_name:e.elementName,section_name:"ritual/pitru_selection",current_screen:"Pitru_Selection",step_index:"1/3",ritual_selection_id:e.pujaId,myor_details:T(e.selectedRituals),member_details_json:"NA",element_details:JSON.stringify({current_ritual:e.currentRitual,click_type:e.clickType,selected_relations:e.selectedRelations.join(", "),selected_count:e.selectedRelations.length})})}let $="Pitru_Selection";function z(e,t){I("MYOR_Bottomsheet_Impression",o._L.IMPRESSION,{element_type:"Bottomsheet",element_name:"Contact_details",section_name:"Contact_details",current_screen:$,contact_variant:e,myor_details:T(t)})}function F(e){let t="phone"===e.identityType?"domestic":"international";I("MYOR_Bottomsheet_Click",o._L.CLICK,{element_type:"Widget",element_name:"Save",section_name:"Contact_details",current_screen:$,contact_variant:t,click_type:"save",myor_details:T(e.selectedRituals)})}function Q(e){I("MYOR_Bottomsheet_Dismiss",o._L.EMPTY,{element_type:"Dismiss",element_name:"Contact_details",section_name:"Contact_details",current_screen:$,contact_variant:e.contactVariant,myor_details:T(e.selectedRituals),dismiss_type:e.dismissType})}function X(e){I("MYOR_Bottomsheet_Impression",o._L.IMPRESSION,{element_type:"Bottomsheet",element_name:"Ancestor_name_add",section_name:"Ancestor_name_add",current_screen:"Pitru_Selection",current_ritual:e.currentRitual,ritual_selection_id:e.pujaId,myor_details:T(e.selectedRituals)})}function q(e){I("MYOR_Bottomsheet_Click",o._L.CLICK,{element_type:"Widget",element_name:"Save",section_name:"Ancestor_name_add",current_screen:"Pitru_Selection",current_ritual:e.currentRitual,ritual_selection_id:e.pujaId,member_details_json:JSON.stringify(e.names),myor_details:T(e.selectedRituals)})}function ee(e){I("MYOR_Bottomsheet_Dismiss",o._L.EMPTY,{element_type:"Dismiss",element_name:"Ancestor_name_add",section_name:"Ancestor_name_add",current_screen:"Pitru_Selection",current_ritual:e.currentRitual,ritual_selection_id:e.pujaId,myor_details:T(e.selectedRituals),dismiss_type:e.dismissType})}function et(e){I("MYOR_Widget_Click",o._L.CLICK,{element_type:"CTA",element_name:e.isLastRitual?"Proceed":"Proceed_Selection",section_name:"pitru_selection",section_position:1,current_screen:"Pitru_Selection",current_ritual:e.currentRitual,ritual_selection_id:e.pujaId,is_last_ritual:String(e.isLastRitual),myor_details:T(e.selectedRituals),element_details:JSON.stringify({total_ancestors:e.totalAncestors})})}function en(e){I("MYOR_Bottomsheet_Impression",o._L.IMPRESSION,{element_type:"Bottomsheet",element_name:"Tithi_decision",section_name:"Tithi_decision",section_position:2,current_screen:"Punya_tithi_Selection",myor_details:T(e)})}function ei(e,t){I("MYOR_Bottomsheet_Click",o._L.CLICK,{element_type:"Widget/CTA",element_name:e,section_name:"Tithi_decision",current_screen:"Punya_tithi_Selection",myor_details:T(t),element_details:JSON.stringify({selected_tithi:e,default_tithi:"all_amavasya"})})}function er(e,t){I("MYOR_Bottomsheet_Dismiss",o._L.EMPTY,{element_type:"Dismiss",element_name:"Tithi_decision",section_name:"Tithi_decision",current_screen:"Punya_tithi_Selection",myor_details:T(e),dismiss_type:t})}let ea=(e,t,n,i)=>({current_ancestor:e,ancestor_position:"".concat(t,"/").concat(n),step_index:"3/3",myor_details:T(i)});function es(e){I("MYOR_Page_Impression",o._L.IMPRESSION,{element_type:"Page",element_name:"Page",section_name:"tithi_selection",current_screen:"Punya_tithi_Selection",...ea(e.ancestorName,e.ancestorPosition,e.ancestorCount,e.selectedRituals)})}function eo(e){I("MYOR_Section_Click",o._L.CLICK,{element_type:"Widget",element_name:e.method,section_name:"date_selection/Pitru_section",current_screen:"Punya_tithi_Selection",...ea(e.ancestorName,e.ancestorPosition,e.ancestorCount,e.selectedRituals),element_details:JSON.stringify({click_type:"select",selected_option:e.method,input_mode:"neither"===e.method?"default_amavasya":e.method,default_applied:"neither"===e.method?"Amavasya":void 0})})}function ec(e){I("MYOR_Bottomsheet_Impression",o._L.IMPRESSION,{element_type:"Bottomsheet",element_name:"tithi"===e.pickerType?"tithi_picker":"date_picker",section_name:"tithi"===e.pickerType?"tithi_selection":"date_selection",current_screen:"Punya_tithi_Selection",...ea(e.ancestorName,e.ancestorPosition,e.ancestorCount,e.selectedRituals),element_details:JSON.stringify({picker_type:e.pickerType})})}function el(e){I("MYOR_Bottomsheet_Click",o._L.CLICK,{element_type:"Widget",element_name:"tithi"===e.pickerType?"tithi":"date",section_name:"tithi"===e.pickerType?"tithi_selection":"date_selection",section_position:3,current_screen:"Punya_tithi_Selection",...ea(e.ancestorName,e.ancestorPosition,e.ancestorCount,e.selectedRituals),element_details:JSON.stringify({picker_type:e.pickerType,["tithi"===e.pickerType?"selected_tithi":"selected_date"]:e.value})})}function eu(e){I("MYOR_Bottomsheet_Dismiss",o._L.EMPTY,{element_type:"Dismiss",element_name:"tithi"===e.pickerType?"tithi_picker":"date_picker",section_name:"tithi"===e.pickerType?"tithi_selection":"date_selection",section_position:3,current_screen:"Punya_tithi_Selection",...ea(e.ancestorName,e.ancestorPosition,e.ancestorCount,e.selectedRituals),element_details:JSON.stringify({picker_type:e.pickerType,dismiss_type:e.dismissType})})}function e_(e){I("MYOR_Popup_Impression",o._L.IMPRESSION,{element_type:"Popup",element_name:"Date_passed_amavasya",section_name:"Date_passed_amavasya",current_screen:"Punya_tithi_Selection",...ea(e.ancestorName,e.ancestorPosition,e.ancestorCount,e.selectedRituals),element_details:JSON.stringify({suggested:"sarvapitru_amavasya"})})}function ed(e){I("MYOR_Popup_Click",o._L.CLICK,{element_type:"Widget",element_name:"Proceed",section_name:"Date_passed_amavasya",current_screen:"Punya_tithi_Selection",...ea(e.ancestorName,e.ancestorPosition,e.ancestorCount,e.selectedRituals),element_details:JSON.stringify({fallback_applied:"sarvapitru_amavasya"})})}function em(e){I("MYOR_Popup_Dismiss",o._L.EMPTY,{element_type:"Dismiss",element_name:"Date_passed_amavasya",section_name:"Date_passed_amavasya",current_screen:"Punya_tithi_Selection",...ea(e.ancestorName,e.ancestorPosition,e.ancestorCount,e.selectedRituals),dismiss_type:e.dismissType})}function ep(e){I("MYOR_Widget_Click",o._L.CLICK,{element_type:"CTA",element_name:e.isLastAncestor?"Proceed":"Next_ancestor",section_name:"tithi_selection",current_screen:"Punya_tithi_Selection",...ea(e.ancestorName,e.ancestorPosition,e.ancestorCount,e.selectedRituals),element_details:JSON.stringify({total_ancestors:e.ancestorCount})})}},72397:function(e,t,n){"use strict";n.d(t,{NZ:function(){return a},Z$:function(){return i},qX:function(){return r}});let i={SEVA:"seva",CHADAVA:"chadava"},r={PUJA_SERVICE:"puja-service",YODA_ONLY:"yoda-only",MIXED:"mixed"},a={AMAVASYA:"amavasya",DEATH_ANNIVERSARY:"death-anniversary"}},63945:function(e,t,n){"use strict";var i=n(85893),r=n(67294),a=n(81850),s=n(79269),o=n(39669),c=n(96349),l=n(15365),u=n(3875);t.Z=e=>{let{children:t,language:n}=e;return(0,l.O)(),(0,r.useEffect)(()=>{(0,u._)().then(e=>{e&&window.location.reload()})},[]),(0,c.ZP)(),(0,o.Z)(),(0,i.jsx)(a.Z,{pageKey:s.ZP.pageKeys.make_your_own_ritual,language:n,showHeader:!1,showfooter:!1,showmWebBottomNav:!1,children:(0,i.jsx)("div",{className:"app-screen bg-white",children:t})})}},37350:function(e,t,n){"use strict";n.d(t,{An:function(){return r},oB:function(){return s},z5:function(){return a}});let i=[["elementType","element_type"],["elementName","element_name"],["elementPosition","element_position"],["sectionName","section_name"],["sectionPosition","section_position"],["currentScreen","current_screen"],["previousScreen","previous_screen"],["serviceType","service_type"],["pageLoadTimeMs","page_load_time_ms"],["variant","variant"]],r=()=>new URLSearchParams(window.location.search).get("pitruVariant")||"";function a(e){var t;let n={...e,variant:null!==(t=e.variant)&&void 0!==t?t:r()};return i.map(e=>{var t;let[i,r]=e;return{type:r,value:null!==(t=n[i])&&void 0!==t?t:""}})}function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let i={},r=1;for(let e of t)for(let t of e)i["attr".concat(r)]={type:t.type,value:""===t.value?"NA":t.value},r+=1;return i}},32444:function(e,t,n){"use strict";n.d(t,{G:function(){return l},a:function(){return p}});var i=n(31993),r=n(27353),a=n(10001),s=n(91100);let o=()=>({selectedAncestors:[],customAncestorNames:[]}),c=()=>({deathTithiMethodByAncestor:{},deathTithiValueByAncestor:{},deathDateByAncestor:{},tithiPreviewByAncestor:{},tithiValidityByAncestor:{},currentDeathTithiAncestorIndex:0}),l=e=>e.selectedRitual.map(e=>e.id),u=(e,t)=>
1{let n=l(e),i=n.filter(n=>e.ancestorsByPuja[n].selectedAncestors.includes(t));return Array.from(new Set([n[0],...i]))},_=(e,t,n)=>{var i;if(null==n)return e;let r=null!==(i=e[t])&&void 0!==i?i:[];return r.includes(n)?e:{...e,[t]:[...r,n]}},d=(e,t,n)=>{let i={...e.deathTithiByPuja};return t.forEach(e=>{i[e]=n(i[e])}),i},m=(0,a.ZU)(),p=(0,i.U)(e=>{var t,n,i,a;return{selectedRitual:[],ancestorsByPuja:null!==(t=null==m?void 0:m.ancestorsByPuja)&&void 0!==t?t:{},deathTithiByPuja:null!==(n=null==m?void 0:m.deathTithiByPuja)&&void 0!==n?n:{},attachedAncestorsByPuja:null!==(i=null==m?void 0:m.attachedAncestorsByPuja)&&void 0!==i?i:{},commitAttachedAncestors:()=>e(e=>({attachedAncestorsByPuja:Object.fromEntries(Object.entries(e.ancestorsByPuja).map(e=>{let[t,n]=e;return[t,n.selectedAncestors]}))})),phoneNumber:(null==m?void 0:m.phone)?{number:m.phone,dialCode:m.countryCode}:null,email:null!==(a=null==m?void 0:m.email)&&void 0!==a?a:null,setEmail:t=>e({email:t}),currentPujaId:"",currentStep:1,totalSteps:2,setSelectedRitual:t=>e(e=>{var n;let i=l({selectedRitual:t}),r={},a={},s={};return i.forEach(t=>{var n,i,l;r[t]=null!==(n=e.ancestorsByPuja[t])&&void 0!==n?n:o(),a[t]=null!==(i=e.deathTithiByPuja[t])&&void 0!==i?i:c(),s[t]=null!==(l=e.attachedAncestorsByPuja[t])&&void 0!==l?l:[]}),{selectedRitual:t,ancestorsByPuja:r,deathTithiByPuja:a,attachedAncestorsByPuja:s,currentPujaId:i.includes(e.currentPujaId)?e.currentPujaId:null!==(n=i[0])&&void 0!==n?n:""}}),restoreAttachedAncestors:t=>e(e=>{var n;return{ancestorsByPuja:{...e.ancestorsByPuja,[t]:{...e.ancestorsByPuja[t],selectedAncestors:null!==(n=e.attachedAncestorsByPuja[t])&&void 0!==n?n:[]}}}}),mutate:t=>{switch(t.type){case"TOGGLE_ANCESTOR":{let{pujaId:n,ancestor:i}=t.payload;e(e=>{let t;let a=e.ancestorsByPuja[n],s=a.selectedAncestors.includes(i);return t=i===r.jC?s?[]:[r.jC]:s?a.selectedAncestors.filter(e=>e!==i):[...a.selectedAncestors.filter(e=>e!==r.jC),i],{ancestorsByPuja:{...e.ancestorsByPuja,[n]:{...a,selectedAncestors:t}},attachedAncestorsByPuja:_(e.attachedAncestorsByPuja,n,s?null:i)}});return}case"ADD_CUSTOM_ANCESTORS":{let{pujaId:n,names:i}=t.payload;e(e=>{let t=e.ancestorsByPuja[n],a=i.filter(e=>!t.customAncestorNames.includes(e));return{ancestorsByPuja:{...e.ancestorsByPuja,[n]:{customAncestorNames:[...t.customAncestorNames,...a],selectedAncestors:[...t.selectedAncestors.filter(e=>e!==r.jC),...a]}},attachedAncestorsByPuja:a.reduce((e,t)=>_(e,n,t),e.attachedAncestorsByPuja)}});return}case"SET_PHONE_NUMBER":e({phoneNumber:t.payload});return;case"SET_CURRENT_PUJA_ID":e({currentPujaId:t.payload});return;case"SET_STEP":e({currentStep:t.payload.currentStep,totalSteps:t.payload.totalSteps});return;case"SET_DEATH_TITHI_METHOD":{let{ancestorKey:n,method:i}=t.payload;e(e=>({deathTithiByPuja:d(e,u(e,n),e=>({...e,deathTithiMethodByAncestor:{...e.deathTithiMethodByAncestor,[n]:i}}))}));return}case"SET_DEATH_TITHI_VALUE":{let{ancestorKey:n,tithi:i}=t.payload;e(e=>({deathTithiByPuja:d(e,u(e,n),e=>({...e,deathTithiValueByAncestor:{...e.deathTithiValueByAncestor,[n]:i}}))}));return}case"SET_DEATH_DATE":{let{ancestorKey:n,date:i}=t.payload;e(e=>({deathTithiByPuja:d(e,u(e,n),e=>({...e,deathDateByAncestor:{...e.deathDateByAncestor,[n]:i}}))}));return}case"SET_TITHI_PREVIEW":{let{ancestorKey:n,preview:i}=t.payload;e(e=>({deathTithiByPuja:d(e,u(e,n),e=>{let t={...e.tithiPreviewByAncestor};return i?t[n]=i:delete t[n],{...e,tithiPreviewByAncestor:t}})}));return}case"SET_TITHI_VALIDITY":{let{ancestorKey:n,validity:i}=t.payload;e(e=>({deathTithiByPuja:d(e,u(e,n),e=>{let t={...e.tithiValidityByAncestor};return i?t[n]=i:delete t[n],{...e,tithiValidityByAncestor:t}})}));return}case"ADVANCE_DEATH_TITHI_ANCESTOR":e(e=>({deathTithiByPuja:d(e,l(e),e=>({...e,currentDeathTithiAncestorIndex:e.currentDeathTithiAncestorIndex+1}))}));return;default:return}}}});p.subscribe(e=>{var t,n,i,r;(0,a.f0)({schemaVersion:s.bI,updatedAt:Date.now(),phone:null!==(i=null===(t=e.phoneNumber)||void 0===t?void 0:t.number)&&void 0!==i?i:null,email:e.email,countryCode:null!==(r=null===(n=e.phoneNumber)||void 0===n?void 0:n.dialCode)&&void 0!==r?r:"+91",ancestorsByPuja:e.ancestorsByPuja,deathTithiByPuja:e.deathTithiByPuja,attachedAncestorsByPuja:e.attachedAncestorsByPuja})})},21823:function(e,t,n){"use strict";n.d(t,{Eb:function(){return r},av:function(){return d},f7:function(){return _},GI:function(){return a.G},xS:function(){return y},a2:function(){return a.a},Ge:function(){return m},NM:function(){return p}});var i,r,a=n(32444),s=n(31993),o=n(11163),c=n.n(o);(i=r||(r={}))[i.LANDING=1]="LANDING",i[i.ANCESTORS=2]="ANCESTORS",i[i.DEATH_TITHI=3]="DEATH_TITHI",i[i.OUTCOME=4]="OUTCOME";let l="/make-your-own-ritual/collection",u={[r.LANDING]:"/make-your-own-ritual",[r.ANCESTORS]:"".concat(l,"?step=ancestors"),[r.DEATH_TITHI]:"".concat(l,"?step=death_tithi"),[r.OUTCOME]:"/make-your-own-ritual/outcome"},_={ancestors:r.ANCESTORS,death_tithi:r.DEATH_TITHI},d={ANY:"any",AMAVASYA:"amavasya"},m=(0,s.U)(e=>({step:r.LANDING,applyStep:t=>e({step:t}),variantType:null,setVariantType:t=>e({variantType:t===d.AMAVASYA?d.AMAVASYA:d.ANY}),setStep:(t,n)=>{var i;e({step:t});let r=(null==n?void 0:n.replace)?c().replace:c().push,[a,s]=u[t].split("?");r({pathname:a,query:{...c().query,...Object.fromEntries(new URLSearchParams(s))}},void 0,{locale:null!==(i=null==n?void 0:n.locale)&&void 0!==i?i:c().locale})}})),p=(0,s.U)(e=>({rituals:[],selectedRituals:new Map,setRituals:t=>e(e=>{if(0===e.selectedRituals.size)return{rituals:t};let n=new Map(t.map(e=>[e.id,e]));return{rituals:t,selectedRituals:new Map(Array.from(e.selectedRituals.keys()).flatMap(e=>{let t=n.get(e);return t?[[e,{id:t.id,ritual_name:t.ritual_name,ritual_description:t.description,cutoff_hour:t.cutoff_hour,cutoff_minute:t.cutoff_minute,price:t.price,type:"ritual"===t.ritualType?"seva":"chadava"}]]:[]}))}}),storeInfo:null,packages:[],rawAddOns:[],rawTemples:[],rawCartAddon:null,setCatalogExtras:t=>{let{storeInfo:n,packages:i,rawAddOns:r,rawTemples:a,rawCartAddon:s=null}=t;return e({storeInfo:n,packages:i,rawAddOns:r,rawTemples:a,rawCartAddon:s})},yodaInventoryProducts:null,yodaInventoryStoreId:null,setYodaInventoryProducts:(t,n)=>e({yodaInventoryProducts:n,yodaInventoryStoreId:t}),l2DetailsByStoreId:{},setL2Details:(t,n)=>e(e=>({l2DetailsByStoreId:{...e.l2DetailsByStoreId,[t]:n}})),mutate:t=>{"SET_SELECTED_RITUALS"===t.type&&e({selectedRituals:new Map(t.payload.map(e=>[e.id,e]))})}})),y=(0,s.U)(e=>({isAddedById:{},setItemAdded:(t,n)=>e(e=>({isAddedById:{...e.isAddedById,[t]:n}})),cartAddedItems:[],addCartItem:t=>e(e=>e.cartAddedItems.some(e=>e.id===t.id)?e:{cartAddedItems:[...e.cartAddedItems,t]}),cartIsAddedById:{},setCartItemAdded:(t,n)=>e(e=>({cartIsAddedById:{...e.cartIsAddedById,[t]:n}})),itemQuantityById:{},setItemQuantity:(t,n)=>e(e=>({itemQuantityById:{...e.itemQuantityById,[t]:Math.max(0,n)}})),selectedPackageId:null,setSelectedPackageId:t=>e({selectedPackageId:t}),billingResponse:null,setBillingResponse:t=>e({billingResponse:t}),resetCartOverrides:()=>e({cartAddedItems:[],cartIsAddedById:{},itemQuantityById:{}})}))},91100:function(e,t,n){"use strict";n.d(t,{Jr:function(){return a},QI:function(){return u},UG:function(){return c},VI:function(){return s},bI:function(){return i},kY:function(){return r},lB:function(){return o},ss:function(){return l}});let i=1,r="myor_ancestor_details",a="myor_ancestor_details",s=65536,o=250,c=1500,l="+91",u=/^[^\s@]+@[^\s@]+\.[^\s@]+$/},39395:function(e,t,n){"use strict";n.d(t,{EI:function(){return l},Sc:function(){return _},hv:function(){return c},x8:function(){return a}});var i=n(90699),r=n(91100);let a=()=>r.Jr,s=(e,t)=>{if(!e||e.includes("@"))return null;let n=(t||r.ss).replace(/-/g,""),a=(0,i.GA)(n,e);if(!a||a===n)return null;let s=a.slice(n.length);return(0,i.hL)(s,n)?a:null},o=e=>{if(!e)return null;let t=e.trim().toLowerCase();return r.QI.test(t)?t:null},c=e=>{let{phone:t,email:n,countryCode:i}=e;return[s(t,i),o(n)].filter(e=>null!==e)},l=e=>{var t;return null!==(t=c(e)[0])&&void 0!==t?t:null}
1,u=(e,t,n)=>{if(!e||!t)return!0;let i=n(e),r=n(t);return null!==i&&i===r},_=(e,t)=>!!e&&u(e.phone,t.phone,t=>s(t,e.countryCode))&&u(e.email,t.email,o)},10001:function(e,t,n){"use strict";n.d(t,{M3:function(){return d},ZU:function(){return o},f0:function(){return _}});var i=n(88340),r=n(91100),a=n(39395),s=n(54757);let o=e=>{let t;let n=(0,i.fp)((0,a.x8)());if(!n)return null;try{t=JSON.parse(n)}catch(e){return null}let r=(0,s.RH)(t);return r&&(!e||(0,a.Sc)(r,e))?r:null},c=e=>{try{(0,i._m)((0,a.x8)(),JSON.stringify(e))}catch(e){}},l=null,u=null,_=e=>{u=e,l||(l=setTimeout(()=>{l=null,u&&c(u),u=null},r.lB))},d=()=>{l&&(clearTimeout(l),l=null),u&&(c(u),u=null)}},54757:function(e,t,n){"use strict";n.d(t,{RH:function(){return v},W3:function(){return R}});var i=n(91100);let r=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),a=(e,t)=>"number"==typeof e&&Number.isFinite(e)?e:t,s=e=>"string"==typeof e&&e?e:null,o=e=>Array.isArray(e)&&e.every(e=>"string"==typeof e),c=e=>r(e)&&Object.values(e).every(e=>"string"==typeof e),l=["tithi","date","unknown"],u=e=>r(e)&&Object.values(e).every(e=>l.includes(e)),_=e=>r(e)&&"string"==typeof e.tithiKey&&"string"==typeof e.date?{tithiKey:e.tithiKey,date:e.date}:null,d=e=>r(e)&&"boolean"==typeof e.active&&"string"==typeof e.date?{active:e.active,date:e.date}:null,m=(e,t)=>{if(!r(e))return{};let n={};for(let[i,r]of Object.entries(e)){let e=t(r);null!==e&&(n[i]=e)}return n},p=e=>r(e)&&o(e.selectedAncestors)&&o(e.customAncestorNames)?{selectedAncestors:e.selectedAncestors,customAncestorNames:e.customAncestorNames}:null,y=e=>r(e)?{deathTithiMethodByAncestor:u(e.deathTithiMethodByAncestor)?e.deathTithiMethodByAncestor:{},deathTithiValueByAncestor:c(e.deathTithiValueByAncestor)?e.deathTithiValueByAncestor:{},deathDateByAncestor:c(e.deathDateByAncestor)?e.deathDateByAncestor:{},tithiPreviewByAncestor:m(e.tithiPreviewByAncestor,_),tithiValidityByAncestor:m(e.tithiValidityByAncestor,d),currentDeathTithiAncestorIndex:a(e.currentDeathTithiAncestorIndex,0)}:null,f=e=>m(e,p),h=e=>m(e,y),A=e=>{if(!r(e))return{};let t={};for(let[n,i]of Object.entries(e))o(i)&&(t[n]=i);return t},g=e=>a(e.schemaVersion,0)===i.bI?e:(i.bI,null),v=e=>{if(!r(e))return null;let t=g(e);return t?{schemaVersion:i.bI,updatedAt:a(t.updatedAt,0),phone:s(t.phone),email:s(t.email),countryCode:"string"==typeof t.countryCode&&t.countryCode?t.countryCode:i.ss,ancestorsByPuja:f(t.ancestorsByPuja),deathTithiByPuja:h(t.deathTithiByPuja),attachedAncestorsByPuja:A(t.attachedAncestorsByPuja)}:null},R=e=>JSON.stringify({...e,updatedAt:0})},3875:function(e,t,n){"use strict";n.d(t,{_:function(){return c}});var i=n(88340),r=n(82165),a=n(12530);let s=e=>{let t=String(null!=e?e:"").trim();for(let e=0;e<3&&t.startsWith("{");e+=1)try{var n,i;t=String(null!==(i=null===(n=JSON.parse(t))||void 0===n?void 0:n.access_token)&&void 0!==i?i:"").trim()}catch(e){return""}return t.startsWith("{")?"":t.replace(/^Bearer\s+/i,"").trim()},o=async()=>{var e,t;let n=null===(t=window.webkit)||void 0===t?void 0:null===(e=t.messageHandlers)||void 0===e?void 0:e.getAccessToken;try{if(!(null==n?void 0:n.postMessage))return"";let e=await n.postMessage(null);return s(e)}catch(e){return""}},c=async()=>{let e=await o(),t=(0,i.fp)("auth_data_access_token");if(!e||t===e)return!1;let n=(0,a.T)(e);return null!=n&&!!n.sub&&((0,i._m)("auth_data",JSON.stringify({access_token:e})),(0,i._m)("auth_data_access_token",e),(0,i._m)("user_data",JSON.stringify({userId:n.sub,isGuest:!1,nativeStub:!0})),(0,r.d8)("Authorization",e),(0,r.d8)("x-afb-r-uid",n.sub,{path:"/",secure:!0}),!0)}},15365:function(e,t,n){"use strict";n.d(t,{O:function(){return c}});var i=n(88340),r=n(82165),a=n(12530);let s=e=>{let t=String(null!=e?e:"").trim();for(let e=0;e<3&&t.startsWith("{");e+=1)try{var n,i;t=String(null!==(i=null===(n=JSON.parse(t))||void 0===n?void 0:n.access_token)&&void 0!==i?i:"").trim()}catch(e){return""}return t.startsWith("{")?"":t.replace(/^Bearer\s+/i,"").trim()},o=()=>{let e=window.Android;try{var t;return s(null==e?void 0:null===(t=e.getAccessToken)||void 0===t?void 0:t.call(e))}catch(e){return""}},c=()=>{let e=o();if(!e)return!1;if((0,i.fp)("auth_data_access_token")===e)return!0;let t=(0,a.T)(e);return null!=t&&!!t.sub&&((0,i._m)("auth_data",JSON.stringify({access_token:e})),(0,i._m)("auth_data_access_token",e),(0,i._m)("user_data",JSON.stringify({userId:t.sub,isGuest:!1,nativeStub:!0})),(0,r.d8)("Authorization",e),(0,r.d8)("x-afb-r-uid",t.sub,{path:"/",secure:!0}),!0)}},39669:function(e,t,n){"use strict";var i=n(67294);let r=e=>!!e&&("INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||e.
1isContentEditable),a=e=>{let t=window.visualViewport,n=t?t.offsetTop+t.height:window.innerHeight;return Math.round(e.getBoundingClientRect().bottom+16-n)},s=e=>{0>=a(e)||(e.scrollIntoView({block:"center",behavior:"smooth"}),window.setTimeout(()=>{let t=a(e);t>0&&window.scrollBy({top:t,behavior:"smooth"})},300))};t.Z=()=>{(0,i.useEffect)(()=>{var e;let t=null,n=e=>{let n=e.target;r(n)&&(t=n,window.setTimeout(()=>{t===n&&s(n)},300))},i=()=>{t=null},a=()=>{t&&s(t)};return document.addEventListener("focusin",n),document.addEventListener("focusout",i),null===(e=window.visualViewport)||void 0===e||e.addEventListener("resize",a),()=>{var e;document.removeEventListener("focusin",n),document.removeEventListener("focusout",i),null===(e=window.visualViewport)||void 0===e||e.removeEventListener("resize",a)}},[])}},90699:function(e,t,n){"use strict";n.d(t,{GA:function(){return a},KX:function(){return r},hL:function(){return o},jc:function(){return i}});let i=e=>e.trim().replace(/-/g,""),r=e=>{let t=String(null!=e?e:"").trim();return""===t||"undefined"===t||"null"===t?"":t.startsWith("+91")?t:"+91".concat(t)},a=(e,t)=>{if(!t)return"";let n=t;e&&n.startsWith(e)&&(n=n.slice(e.length)),n=(n=n.replace(/[-\s]/g,"").replace(/^\+\d+/,"")).replace(/[^\d]/g,"");let i=e.replace(/-/g,"");return"".concat(i).concat(n)},s={"+1":{pattern:/^[2-9]\d{9}$/,digits:"10",description:"10 digits, cannot start with 0 or 1"},"+44":{pattern:/^\d{10}$/,digits:"10",description:"10 digits"},"+61":{pattern:/^\d{9}$/,digits:"9",description:"9 digits"},"+971":{pattern:/^\d{8,9}$/,digits:"8-9",description:"8-9 digits"},"+65":{pattern:/^\d{8}$/,digits:"8",description:"8 digits"},"+49":{pattern:/^\d{10,11}$/,digits:"10-11",description:"10-11 digits"},"+91":{pattern:/^[6-9]\d{9}$/,digits:"10",description:"10 digits, must start with 6-9"},default:{pattern:/^\d{6,15}$/,digits:"6-15",description:"6-15 digits"}},o=(e,t)=>{let n=e.replace(/[\s-]/g,"");return(s[t]||s.default).pattern.test(n)}},31317:function(e,t,n){"use strict";n.d(t,{BA:function(){return i},YX:function(){return a},nz:function(){return s},ph:function(){return r}});let i=e=>{try{return"1"===window.sessionStorage.getItem(e)}catch(e){return!1}},r=e=>{try{window.sessionStorage.setItem(e,"1")}catch(e){}},a=e=>{try{return window.sessionStorage.getItem(e)}catch(e){return null}},s=(e,t)=>{try{window.sessionStorage.setItem(e,t)}catch(e){}}},40488:function(){},57356:function(){}}]); 2//# sourceMappingURL=2416-ea19ee4b52817d27.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.