@srimandir/kundli-matching-generator 7.0.2 → 7.0.3
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/analytics-DOxGfyuB.js +74 -0
- package/dist/analytics-DOxGfyuB.js.map +1 -0
- package/dist/analytics.d.ts +149 -0
- package/dist/components/BenefitsSection/BenefitsSection.d.ts +6 -0
- package/dist/components/BenefitsSection/index.d.ts +2 -0
- package/dist/components/FAQSection/FAQSection.d.ts +7 -0
- package/dist/components/FAQSection/index.d.ts +2 -0
- package/dist/components/FeaturesSection/FeaturesSection.d.ts +6 -0
- package/dist/components/FeaturesSection/index.d.ts +2 -0
- package/dist/components/HeroSection/HeroSection.d.ts +13 -0
- package/dist/components/HeroSection/index.d.ts +2 -0
- package/dist/components/HowItWorksSection/HowItWorksSection.d.ts +6 -0
- package/dist/components/HowItWorksSection/index.d.ts +2 -0
- package/dist/components/KundliMatchingFormSection/KundliMatchingFormSection.d.ts +31 -0
- package/dist/components/KundliMatchingFormSection/LanguageSelector.d.ts +10 -0
- package/dist/components/KundliMatchingFormSection/PersonFormSection.d.ts +14 -0
- package/dist/components/KundliMatchingFormSection/constants.d.ts +209 -0
- package/dist/components/KundliMatchingFormSection/index.d.ts +2 -0
- package/dist/components/KundliMatchingFormSection/useGooglePlacesAutocomplete.d.ts +32 -0
- package/dist/components/KundliMatchingHeader/KundliMatchingHeader.d.ts +10 -0
- package/dist/components/KundliMatchingHeader/index.d.ts +2 -0
- package/dist/components/KundliMatchingPage/KundliMatchingContext.d.ts +37 -0
- package/dist/components/KundliMatchingPage/KundliMatchingPage.d.ts +34 -0
- package/dist/components/KundliMatchingPage/index.d.ts +4 -0
- package/dist/components/KundliMatchingPlanBottomSheet/AstrologerCard.d.ts +11 -0
- package/dist/components/KundliMatchingPlanBottomSheet/AstrologerDetails.d.ts +19 -0
- package/dist/components/KundliMatchingPlanBottomSheet/KundliMatchingPlanBottomSheet.d.ts +22 -0
- package/dist/components/KundliMatchingPlanBottomSheet/MostPopularBadge.d.ts +5 -0
- package/dist/components/KundliMatchingPlanBottomSheet/PlanCard.d.ts +12 -0
- package/dist/components/KundliMatchingPlanBottomSheet/PlanFeatureList.d.ts +11 -0
- package/dist/components/KundliMatchingPlanBottomSheet/PlanIcons.d.ts +7 -0
- package/dist/components/KundliMatchingPlanBottomSheet/PlanSheetHeader.d.ts +10 -0
- package/dist/components/KundliMatchingPlanBottomSheet/index.d.ts +4 -0
- package/dist/components/KundliMatchingPlanBottomSheet/planDefaults.d.ts +2 -0
- package/dist/components/KundliMatchingPlanBottomSheet/types.d.ts +20 -0
- package/dist/components/ProceedFooter/ProceedFooter.d.ts +15 -0
- package/dist/components/ProceedFooter/index.d.ts +2 -0
- package/dist/components/SneakPeekSection/SneakPeekSection.d.ts +8 -0
- package/dist/components/SneakPeekSection/index.d.ts +2 -0
- package/dist/components/TestimonialsSection/TestimonialsSection.d.ts +15 -0
- package/dist/components/TestimonialsSection/index.d.ts +2 -0
- package/dist/components/ViewSampleReportButton/SampleReportModal.d.ts +8 -0
- package/dist/components/ViewSampleReportButton/ViewSampleReportButton.d.ts +11 -0
- package/dist/components/ViewSampleReportButton/index.d.ts +2 -0
- package/dist/components/WhyUsSection/WhyUsSection.d.ts +6 -0
- package/dist/components/WhyUsSection/index.d.ts +2 -0
- package/dist/components/index.d.ts +8 -0
- package/dist/constants/criticalCss.d.ts +12 -0
- package/dist/criticalCss-C2t1JWCr.js +1572 -0
- package/dist/criticalCss-C2t1JWCr.js.map +1 -0
- package/dist/dev/main.d.ts +0 -0
- package/dist/form-entry.d.ts +13 -0
- package/dist/form-entry.js +16 -0
- package/dist/form-entry.js.map +1 -0
- package/dist/i18n/I18nContext.d.ts +13 -0
- package/dist/i18n/index.d.ts +2 -0
- package/dist/i18n/translations.d.ts +7 -0
- package/dist/image-L58ynFKN.js +2064 -0
- package/dist/image-L58ynFKN.js.map +1 -0
- package/dist/index.d.ts +32 -0
- package/dist/kundli-matching-generator.js +43 -0
- package/dist/kundli-matching-generator.js.map +1 -0
- package/dist/page-entry.d.ts +15 -0
- package/dist/page-entry.js +18 -0
- package/dist/page-entry.js.map +1 -0
- package/dist/style.css +1 -0
- package/dist/styles.d.ts +0 -0
- package/dist/styles.js +2 -0
- package/dist/styles.js.map +1 -0
- package/dist/types/image.d.ts +18 -0
- package/package.json +2 -2
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
// Page view events
|
|
3
|
+
kundli_matching_page_view: "kundli_matching_page_view",
|
|
4
|
+
kundli_matching_form_view: "kundli_matching_form_view",
|
|
5
|
+
// Banner & CTA events
|
|
6
|
+
banner_clicked_fe: "banner_clicked_fe",
|
|
7
|
+
primary_cta_clicked_fe: "primary_cta_clicked_fe",
|
|
8
|
+
// Language events
|
|
9
|
+
language_changed_fe: "language_changed_fe",
|
|
10
|
+
language_clicked_fe: "language_clicked_fe",
|
|
11
|
+
// Sample report events
|
|
12
|
+
view_sample_report_clicked: "view_sample_report_clicked",
|
|
13
|
+
view_sample_report_closed: "view_sample_report_closed",
|
|
14
|
+
// Info icon events
|
|
15
|
+
info_icon_clicked: "info_icon_clicked",
|
|
16
|
+
// Boy's form events
|
|
17
|
+
boy_name_section_clicked: "boy_name_section_clicked",
|
|
18
|
+
boy_name_section_filled: "boy_name_section_filled",
|
|
19
|
+
boy_dob_clicked: "boy_dob_clicked",
|
|
20
|
+
boy_dob_filled: "boy_dob_filled",
|
|
21
|
+
boy_time_clicked: "boy_time_clicked",
|
|
22
|
+
boy_time_filled: "boy_time_filled",
|
|
23
|
+
boy_time_checkbox_clicked: "boy_time_checkbox_clicked",
|
|
24
|
+
boy_place_of_birth_clicked: "boy_place_of_birth_clicked",
|
|
25
|
+
boy_place_of_birth_chosen: "boy_place_of_birth_chosen",
|
|
26
|
+
// Girl's form events
|
|
27
|
+
girl_name_section_clicked: "girl_name_section_clicked",
|
|
28
|
+
girl_name_section_filled: "girl_name_section_filled",
|
|
29
|
+
girl_dob_clicked: "girl_dob_clicked",
|
|
30
|
+
girl_dob_filled: "girl_dob_filled",
|
|
31
|
+
girl_time_clicked: "girl_time_clicked",
|
|
32
|
+
girl_time_filled: "girl_time_filled",
|
|
33
|
+
girl_time_checkbox_clicked: "girl_time_checkbox_clicked",
|
|
34
|
+
girl_place_of_birth_clicked: "girl_place_of_birth_clicked",
|
|
35
|
+
girl_place_of_birth_chosen: "girl_place_of_birth_chosen",
|
|
36
|
+
// Report language events
|
|
37
|
+
language_of_report_clicked: "language_of_report_clicked",
|
|
38
|
+
language_of_report_selected: "language_of_report_selected",
|
|
39
|
+
// Contact info events
|
|
40
|
+
phone_section_clicked: "phone_section_clicked",
|
|
41
|
+
phone_section_filled: "phone_section_filled",
|
|
42
|
+
email_section_clicked: "email_section_clicked",
|
|
43
|
+
email_section_filled: "email_section_filled",
|
|
44
|
+
// Primary CTA L0 (footer button)
|
|
45
|
+
kundli_matching_l0_cta_click: "kundli_matching_l0_cta_click",
|
|
46
|
+
// Primary CTA L1 (form submission)
|
|
47
|
+
primary_cta_clicked_l1: "primary_cta_clicked_l1",
|
|
48
|
+
// Plan selection events
|
|
49
|
+
kundli_matching_plan_page_viewed: "kundli_matching_plan_page_viewed",
|
|
50
|
+
kundli_matching_plan_selected: "kundli_matching_plan_selected",
|
|
51
|
+
kundli_matching_plan_proceed_clicked: "kundli_matching_plan_proceed_clicked",
|
|
52
|
+
kundli_matching_plan_page_closed: "kundli_matching_plan_page_closed",
|
|
53
|
+
// Payment events
|
|
54
|
+
payment_partner_page_opened: "payment_partner_page_opened",
|
|
55
|
+
retry_payment: "retry_payment",
|
|
56
|
+
// Section impression events
|
|
57
|
+
hero_section_viewed: "hero_section_viewed",
|
|
58
|
+
features_section_viewed: "features_section_viewed",
|
|
59
|
+
sneak_peek_section_viewed: "sneak_peek_section_viewed",
|
|
60
|
+
testimonials_section_viewed: "testimonials_section_viewed",
|
|
61
|
+
benefits_section_viewed: "benefits_section_viewed",
|
|
62
|
+
form_section_viewed: "form_section_viewed",
|
|
63
|
+
how_it_works_section_viewed: "how_it_works_section_viewed",
|
|
64
|
+
why_us_section_viewed: "why_us_section_viewed",
|
|
65
|
+
faq_section_viewed: "faq_section_viewed",
|
|
66
|
+
// Sneak peek card tracking
|
|
67
|
+
sneak_peek_card_viewed: "sneak_peek_card_viewed",
|
|
68
|
+
// Testimonial scroll tracking
|
|
69
|
+
testimonial_scrolled: "testimonial_scrolled"
|
|
70
|
+
};
|
|
71
|
+
export {
|
|
72
|
+
e as K
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=analytics-DOxGfyuB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analytics-DOxGfyuB.js","sources":["../src/analytics.ts"],"sourcesContent":["/**\n * Event names for Kundli Matching Generator analytics (Mixpanel).\n * Host app should use these when calling logEvent.\n */\nexport const KUNDLI_MATCHING_ANALYTICS_EVENT_NAMES = {\n // Page view events\n kundli_matching_page_view: 'kundli_matching_page_view',\n kundli_matching_form_view: 'kundli_matching_form_view',\n \n // Banner & CTA events\n banner_clicked_fe: 'banner_clicked_fe',\n primary_cta_clicked_fe: 'primary_cta_clicked_fe',\n \n // Language events\n language_changed_fe: 'language_changed_fe',\n language_clicked_fe: 'language_clicked_fe',\n \n // Sample report events\n view_sample_report_clicked: 'view_sample_report_clicked',\n view_sample_report_closed: 'view_sample_report_closed',\n \n // Info icon events\n info_icon_clicked: 'info_icon_clicked',\n\n // Boy's form events\n boy_name_section_clicked: 'boy_name_section_clicked',\n boy_name_section_filled: 'boy_name_section_filled',\n boy_dob_clicked: 'boy_dob_clicked',\n boy_dob_filled: 'boy_dob_filled',\n boy_time_clicked: 'boy_time_clicked',\n boy_time_filled: 'boy_time_filled',\n boy_time_checkbox_clicked: 'boy_time_checkbox_clicked',\n boy_place_of_birth_clicked: 'boy_place_of_birth_clicked',\n boy_place_of_birth_chosen: 'boy_place_of_birth_chosen',\n \n // Girl's form events\n girl_name_section_clicked: 'girl_name_section_clicked',\n girl_name_section_filled: 'girl_name_section_filled',\n girl_dob_clicked: 'girl_dob_clicked',\n girl_dob_filled: 'girl_dob_filled',\n girl_time_clicked: 'girl_time_clicked',\n girl_time_filled: 'girl_time_filled',\n girl_time_checkbox_clicked: 'girl_time_checkbox_clicked',\n girl_place_of_birth_clicked: 'girl_place_of_birth_clicked',\n girl_place_of_birth_chosen: 'girl_place_of_birth_chosen',\n \n // Report language events\n language_of_report_clicked: 'language_of_report_clicked',\n language_of_report_selected: 'language_of_report_selected',\n \n // Contact info events\n phone_section_clicked: 'phone_section_clicked',\n phone_section_filled: 'phone_section_filled',\n email_section_clicked: 'email_section_clicked',\n email_section_filled: 'email_section_filled',\n \n // Primary CTA L0 (footer button)\n kundli_matching_l0_cta_click: 'kundli_matching_l0_cta_click',\n \n // Primary CTA L1 (form submission)\n primary_cta_clicked_l1: 'primary_cta_clicked_l1',\n \n // Plan selection events\n kundli_matching_plan_page_viewed: 'kundli_matching_plan_page_viewed',\n kundli_matching_plan_selected: 'kundli_matching_plan_selected',\n kundli_matching_plan_proceed_clicked: 'kundli_matching_plan_proceed_clicked',\n kundli_matching_plan_page_closed: 'kundli_matching_plan_page_closed',\n \n // Payment events\n payment_partner_page_opened: 'payment_partner_page_opened',\n retry_payment: 'retry_payment',\n \n // Section impression events\n hero_section_viewed: 'hero_section_viewed',\n features_section_viewed: 'features_section_viewed',\n sneak_peek_section_viewed: 'sneak_peek_section_viewed',\n testimonials_section_viewed: 'testimonials_section_viewed',\n benefits_section_viewed: 'benefits_section_viewed',\n form_section_viewed: 'form_section_viewed',\n how_it_works_section_viewed: 'how_it_works_section_viewed',\n why_us_section_viewed: 'why_us_section_viewed',\n faq_section_viewed: 'faq_section_viewed',\n \n // Sneak peek card tracking\n sneak_peek_card_viewed: 'sneak_peek_card_viewed',\n \n // Testimonial scroll tracking\n testimonial_scrolled: 'testimonial_scrolled',\n} as const;\n\nexport type KundliMatchingAnalyticsEventName =\n (typeof KUNDLI_MATCHING_ANALYTICS_EVENT_NAMES)[keyof typeof KUNDLI_MATCHING_ANALYTICS_EVENT_NAMES];\n\n/**\n * Optional analytics implementation for Kundli Matching Generator.\n * Pass from host to track events.\n */\nexport interface KundliMatchingAnalytics {\n // Page view tracking\n trackKundliMatchingPageView?(): void;\n trackKundliMatchingFormView?(): void;\n \n // Banner & CTA tracking\n trackBannerClicked?(): void;\n trackPrimaryCtaClickedFe?(params: { ctaText?: string }): void;\n \n // Language tracking\n trackLanguageChangedFe?(params: { newLanguage: string }): void;\n trackLanguageClickedFe?(params: { language: string }): void;\n \n // Sample report tracking\n trackViewSampleReportClicked?(): void;\n trackViewSampleReportClosed?(): void;\n \n // Info icon tracking\n trackInfoIconClicked?(params: { fieldName: string }): void;\n \n // Boy's form tracking\n trackBoyNameSectionClicked?(): void;\n trackBoyNameSectionFilled?(): void;\n trackBoyDobClicked?(): void;\n trackBoyDobFilled?(): void;\n trackBoyTimeClicked?(): void;\n trackBoyTimeFilled?(): void;\n trackBoyTimeCheckboxClicked?(): void;\n trackBoyPlaceOfBirthClicked?(): void;\n trackBoyPlaceOfBirthChosen?(): void;\n \n // Girl's form tracking\n trackGirlNameSectionClicked?(): void;\n trackGirlNameSectionFilled?(): void;\n trackGirlDobClicked?(): void;\n trackGirlDobFilled?(): void;\n trackGirlTimeClicked?(): void;\n trackGirlTimeFilled?(): void;\n trackGirlTimeCheckboxClicked?(): void;\n trackGirlPlaceOfBirthClicked?(): void;\n trackGirlPlaceOfBirthChosen?(): void;\n \n // Report language tracking\n trackLanguageOfReportClicked?(): void;\n trackLanguageOfReportSelected?(params: { language: string }): void;\n \n // Contact info tracking\n trackPhoneSectionClicked?(): void;\n trackPhoneSectionFilled?(): void;\n trackEmailSectionClicked?(): void;\n trackEmailSectionFilled?(): void;\n \n // CTA tracking\n trackKundliMatchingL0CtaClick?(params: { ctaText: string; isFormComplete: boolean }): void;\n \n // Form submission tracking\n trackPrimaryCtaClickedL1?(params: { avenue?: string }): void;\n \n // Plan selection tracking\n trackPlanPageViewed?(): void;\n trackPlanSelected?(params: { planId: string; planName: string }): void;\n trackPlanProceedClicked?(params: { planId: string; planName: string }): void;\n trackPlanPageClosed?(): void;\n \n // Payment tracking\n trackPaymentPartnerPageOpened?(params: { planId: string; planName: string; price: string }): void;\n trackRetryPayment?(): void;\n \n // Section impression tracking\n trackHeroSectionViewed?(): void;\n trackFeaturesSectionViewed?(): void;\n trackSneakPeekSectionViewed?(): void;\n trackTestimonialsSectionViewed?(): void;\n trackBenefitsSectionViewed?(): void;\n trackFormSectionViewed?(): void;\n trackHowItWorksSectionViewed?(): void;\n trackWhyUsSectionViewed?(): void;\n trackFaqSectionViewed?(): void;\n \n // Sneak peek card tracking\n trackSneakPeekCardViewed?(params: { cardNumber: number; cardTitle: string }): void;\n \n // Testimonial scroll tracking\n trackTestimonialScrolled?(params: { reviewIndex: number; reviewerName: string; isManualScroll: boolean }): void;\n}\n\n\n"],"names":["KUNDLI_MATCHING_ANALYTICS_EVENT_NAMES"],"mappings":"AAIO,MAAMA,IAAwC;AAAA;AAAA,EAEnD,2BAA2B;AAAA,EAC3B,2BAA2B;AAAA;AAAA,EAG3B,mBAAmB;AAAA,EACnB,wBAAwB;AAAA;AAAA,EAGxB,qBAAqB;AAAA,EACrB,qBAAqB;AAAA;AAAA,EAGrB,4BAA4B;AAAA,EAC5B,2BAA2B;AAAA;AAAA,EAG3B,mBAAmB;AAAA;AAAA,EAGnB,0BAA0B;AAAA,EAC1B,yBAAyB;AAAA,EACzB,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,2BAA2B;AAAA,EAC3B,4BAA4B;AAAA,EAC5B,2BAA2B;AAAA;AAAA,EAG3B,2BAA2B;AAAA,EAC3B,0BAA0B;AAAA,EAC1B,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,mBAAmB;AAAA,EACnB,kBAAkB;AAAA,EAClB,4BAA4B;AAAA,EAC5B,6BAA6B;AAAA,EAC7B,4BAA4B;AAAA;AAAA,EAG5B,4BAA4B;AAAA,EAC5B,6BAA6B;AAAA;AAAA,EAG7B,uBAAuB;AAAA,EACvB,sBAAsB;AAAA,EACtB,uBAAuB;AAAA,EACvB,sBAAsB;AAAA;AAAA,EAGtB,8BAA8B;AAAA;AAAA,EAG9B,wBAAwB;AAAA;AAAA,EAGxB,kCAAkC;AAAA,EAClC,+BAA+B;AAAA,EAC/B,sCAAsC;AAAA,EACtC,kCAAkC;AAAA;AAAA,EAGlC,6BAA6B;AAAA,EAC7B,eAAe;AAAA;AAAA,EAGf,qBAAqB;AAAA,EACrB,yBAAyB;AAAA,EACzB,2BAA2B;AAAA,EAC3B,6BAA6B;AAAA,EAC7B,yBAAyB;AAAA,EACzB,qBAAqB;AAAA,EACrB,6BAA6B;AAAA,EAC7B,uBAAuB;AAAA,EACvB,oBAAoB;AAAA;AAAA,EAGpB,wBAAwB;AAAA;AAAA,EAGxB,sBAAsB;AACxB;"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Event names for Kundli Matching Generator analytics (Mixpanel).
|
|
3
|
+
* Host app should use these when calling logEvent.
|
|
4
|
+
*/
|
|
5
|
+
export declare const KUNDLI_MATCHING_ANALYTICS_EVENT_NAMES: {
|
|
6
|
+
readonly kundli_matching_page_view: "kundli_matching_page_view";
|
|
7
|
+
readonly kundli_matching_form_view: "kundli_matching_form_view";
|
|
8
|
+
readonly banner_clicked_fe: "banner_clicked_fe";
|
|
9
|
+
readonly primary_cta_clicked_fe: "primary_cta_clicked_fe";
|
|
10
|
+
readonly language_changed_fe: "language_changed_fe";
|
|
11
|
+
readonly language_clicked_fe: "language_clicked_fe";
|
|
12
|
+
readonly view_sample_report_clicked: "view_sample_report_clicked";
|
|
13
|
+
readonly view_sample_report_closed: "view_sample_report_closed";
|
|
14
|
+
readonly info_icon_clicked: "info_icon_clicked";
|
|
15
|
+
readonly boy_name_section_clicked: "boy_name_section_clicked";
|
|
16
|
+
readonly boy_name_section_filled: "boy_name_section_filled";
|
|
17
|
+
readonly boy_dob_clicked: "boy_dob_clicked";
|
|
18
|
+
readonly boy_dob_filled: "boy_dob_filled";
|
|
19
|
+
readonly boy_time_clicked: "boy_time_clicked";
|
|
20
|
+
readonly boy_time_filled: "boy_time_filled";
|
|
21
|
+
readonly boy_time_checkbox_clicked: "boy_time_checkbox_clicked";
|
|
22
|
+
readonly boy_place_of_birth_clicked: "boy_place_of_birth_clicked";
|
|
23
|
+
readonly boy_place_of_birth_chosen: "boy_place_of_birth_chosen";
|
|
24
|
+
readonly girl_name_section_clicked: "girl_name_section_clicked";
|
|
25
|
+
readonly girl_name_section_filled: "girl_name_section_filled";
|
|
26
|
+
readonly girl_dob_clicked: "girl_dob_clicked";
|
|
27
|
+
readonly girl_dob_filled: "girl_dob_filled";
|
|
28
|
+
readonly girl_time_clicked: "girl_time_clicked";
|
|
29
|
+
readonly girl_time_filled: "girl_time_filled";
|
|
30
|
+
readonly girl_time_checkbox_clicked: "girl_time_checkbox_clicked";
|
|
31
|
+
readonly girl_place_of_birth_clicked: "girl_place_of_birth_clicked";
|
|
32
|
+
readonly girl_place_of_birth_chosen: "girl_place_of_birth_chosen";
|
|
33
|
+
readonly language_of_report_clicked: "language_of_report_clicked";
|
|
34
|
+
readonly language_of_report_selected: "language_of_report_selected";
|
|
35
|
+
readonly phone_section_clicked: "phone_section_clicked";
|
|
36
|
+
readonly phone_section_filled: "phone_section_filled";
|
|
37
|
+
readonly email_section_clicked: "email_section_clicked";
|
|
38
|
+
readonly email_section_filled: "email_section_filled";
|
|
39
|
+
readonly kundli_matching_l0_cta_click: "kundli_matching_l0_cta_click";
|
|
40
|
+
readonly primary_cta_clicked_l1: "primary_cta_clicked_l1";
|
|
41
|
+
readonly kundli_matching_plan_page_viewed: "kundli_matching_plan_page_viewed";
|
|
42
|
+
readonly kundli_matching_plan_selected: "kundli_matching_plan_selected";
|
|
43
|
+
readonly kundli_matching_plan_proceed_clicked: "kundli_matching_plan_proceed_clicked";
|
|
44
|
+
readonly kundli_matching_plan_page_closed: "kundli_matching_plan_page_closed";
|
|
45
|
+
readonly payment_partner_page_opened: "payment_partner_page_opened";
|
|
46
|
+
readonly retry_payment: "retry_payment";
|
|
47
|
+
readonly hero_section_viewed: "hero_section_viewed";
|
|
48
|
+
readonly features_section_viewed: "features_section_viewed";
|
|
49
|
+
readonly sneak_peek_section_viewed: "sneak_peek_section_viewed";
|
|
50
|
+
readonly testimonials_section_viewed: "testimonials_section_viewed";
|
|
51
|
+
readonly benefits_section_viewed: "benefits_section_viewed";
|
|
52
|
+
readonly form_section_viewed: "form_section_viewed";
|
|
53
|
+
readonly how_it_works_section_viewed: "how_it_works_section_viewed";
|
|
54
|
+
readonly why_us_section_viewed: "why_us_section_viewed";
|
|
55
|
+
readonly faq_section_viewed: "faq_section_viewed";
|
|
56
|
+
readonly sneak_peek_card_viewed: "sneak_peek_card_viewed";
|
|
57
|
+
readonly testimonial_scrolled: "testimonial_scrolled";
|
|
58
|
+
};
|
|
59
|
+
export type KundliMatchingAnalyticsEventName = (typeof KUNDLI_MATCHING_ANALYTICS_EVENT_NAMES)[keyof typeof KUNDLI_MATCHING_ANALYTICS_EVENT_NAMES];
|
|
60
|
+
/**
|
|
61
|
+
* Optional analytics implementation for Kundli Matching Generator.
|
|
62
|
+
* Pass from host to track events.
|
|
63
|
+
*/
|
|
64
|
+
export interface KundliMatchingAnalytics {
|
|
65
|
+
trackKundliMatchingPageView?(): void;
|
|
66
|
+
trackKundliMatchingFormView?(): void;
|
|
67
|
+
trackBannerClicked?(): void;
|
|
68
|
+
trackPrimaryCtaClickedFe?(params: {
|
|
69
|
+
ctaText?: string;
|
|
70
|
+
}): void;
|
|
71
|
+
trackLanguageChangedFe?(params: {
|
|
72
|
+
newLanguage: string;
|
|
73
|
+
}): void;
|
|
74
|
+
trackLanguageClickedFe?(params: {
|
|
75
|
+
language: string;
|
|
76
|
+
}): void;
|
|
77
|
+
trackViewSampleReportClicked?(): void;
|
|
78
|
+
trackViewSampleReportClosed?(): void;
|
|
79
|
+
trackInfoIconClicked?(params: {
|
|
80
|
+
fieldName: string;
|
|
81
|
+
}): void;
|
|
82
|
+
trackBoyNameSectionClicked?(): void;
|
|
83
|
+
trackBoyNameSectionFilled?(): void;
|
|
84
|
+
trackBoyDobClicked?(): void;
|
|
85
|
+
trackBoyDobFilled?(): void;
|
|
86
|
+
trackBoyTimeClicked?(): void;
|
|
87
|
+
trackBoyTimeFilled?(): void;
|
|
88
|
+
trackBoyTimeCheckboxClicked?(): void;
|
|
89
|
+
trackBoyPlaceOfBirthClicked?(): void;
|
|
90
|
+
trackBoyPlaceOfBirthChosen?(): void;
|
|
91
|
+
trackGirlNameSectionClicked?(): void;
|
|
92
|
+
trackGirlNameSectionFilled?(): void;
|
|
93
|
+
trackGirlDobClicked?(): void;
|
|
94
|
+
trackGirlDobFilled?(): void;
|
|
95
|
+
trackGirlTimeClicked?(): void;
|
|
96
|
+
trackGirlTimeFilled?(): void;
|
|
97
|
+
trackGirlTimeCheckboxClicked?(): void;
|
|
98
|
+
trackGirlPlaceOfBirthClicked?(): void;
|
|
99
|
+
trackGirlPlaceOfBirthChosen?(): void;
|
|
100
|
+
trackLanguageOfReportClicked?(): void;
|
|
101
|
+
trackLanguageOfReportSelected?(params: {
|
|
102
|
+
language: string;
|
|
103
|
+
}): void;
|
|
104
|
+
trackPhoneSectionClicked?(): void;
|
|
105
|
+
trackPhoneSectionFilled?(): void;
|
|
106
|
+
trackEmailSectionClicked?(): void;
|
|
107
|
+
trackEmailSectionFilled?(): void;
|
|
108
|
+
trackKundliMatchingL0CtaClick?(params: {
|
|
109
|
+
ctaText: string;
|
|
110
|
+
isFormComplete: boolean;
|
|
111
|
+
}): void;
|
|
112
|
+
trackPrimaryCtaClickedL1?(params: {
|
|
113
|
+
avenue?: string;
|
|
114
|
+
}): void;
|
|
115
|
+
trackPlanPageViewed?(): void;
|
|
116
|
+
trackPlanSelected?(params: {
|
|
117
|
+
planId: string;
|
|
118
|
+
planName: string;
|
|
119
|
+
}): void;
|
|
120
|
+
trackPlanProceedClicked?(params: {
|
|
121
|
+
planId: string;
|
|
122
|
+
planName: string;
|
|
123
|
+
}): void;
|
|
124
|
+
trackPlanPageClosed?(): void;
|
|
125
|
+
trackPaymentPartnerPageOpened?(params: {
|
|
126
|
+
planId: string;
|
|
127
|
+
planName: string;
|
|
128
|
+
price: string;
|
|
129
|
+
}): void;
|
|
130
|
+
trackRetryPayment?(): void;
|
|
131
|
+
trackHeroSectionViewed?(): void;
|
|
132
|
+
trackFeaturesSectionViewed?(): void;
|
|
133
|
+
trackSneakPeekSectionViewed?(): void;
|
|
134
|
+
trackTestimonialsSectionViewed?(): void;
|
|
135
|
+
trackBenefitsSectionViewed?(): void;
|
|
136
|
+
trackFormSectionViewed?(): void;
|
|
137
|
+
trackHowItWorksSectionViewed?(): void;
|
|
138
|
+
trackWhyUsSectionViewed?(): void;
|
|
139
|
+
trackFaqSectionViewed?(): void;
|
|
140
|
+
trackSneakPeekCardViewed?(params: {
|
|
141
|
+
cardNumber: number;
|
|
142
|
+
cardTitle: string;
|
|
143
|
+
}): void;
|
|
144
|
+
trackTestimonialScrolled?(params: {
|
|
145
|
+
reviewIndex: number;
|
|
146
|
+
reviewerName: string;
|
|
147
|
+
isManualScroll: boolean;
|
|
148
|
+
}): void;
|
|
149
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Hero image URL - exported so host apps can preload this resource in document head for better performance (LCP):
|
|
4
|
+
* <link rel="preload" as="image" href={HERO_IMAGE_URL} />
|
|
5
|
+
*/
|
|
6
|
+
export declare const HERO_IMAGE_URL = "https://srm-cdn.a4b.io/yoda/1774511296258.webp";
|
|
7
|
+
export interface HeroSectionProps {
|
|
8
|
+
t: (key: string) => string;
|
|
9
|
+
className?: string;
|
|
10
|
+
/** When true, hero image loads with priority (for LCP). Default true. */
|
|
11
|
+
heroImagePriority?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const HeroSection: React.FC<HeroSectionProps>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { KundliMatchingAnalytics } from '../../analytics';
|
|
3
|
+
export interface PersonFormValues {
|
|
4
|
+
fullName: string;
|
|
5
|
+
dateOfBirth: string;
|
|
6
|
+
birthTime: string;
|
|
7
|
+
birthTimeUnknown: boolean;
|
|
8
|
+
birthPlace: string;
|
|
9
|
+
}
|
|
10
|
+
export interface KundliMatchingFormValues {
|
|
11
|
+
boy: PersonFormValues;
|
|
12
|
+
girl: PersonFormValues;
|
|
13
|
+
phone: string;
|
|
14
|
+
/** ISD/country code for `phone` (e.g. "+1", "+91"). Prefilled from a `country_code` query param for international users; defaults to "+91"/"+1" based on `isGlobal` when absent or invalid. */
|
|
15
|
+
phoneCountryCode?: string;
|
|
16
|
+
email: string;
|
|
17
|
+
reportLanguage: string;
|
|
18
|
+
}
|
|
19
|
+
export interface KundliMatchingFormSectionProps {
|
|
20
|
+
t: (key: string) => string;
|
|
21
|
+
values: KundliMatchingFormValues;
|
|
22
|
+
onUpdate: (values: Partial<KundliMatchingFormValues>) => void;
|
|
23
|
+
googleMapsApiKey?: string;
|
|
24
|
+
isGlobal?: boolean;
|
|
25
|
+
analytics?: KundliMatchingAnalytics;
|
|
26
|
+
className?: string;
|
|
27
|
+
phoneIsdCode: string;
|
|
28
|
+
onPhoneIsdCodeChange: (code: string) => void;
|
|
29
|
+
}
|
|
30
|
+
export declare const KundliMatchingFormSection: React.FC<KundliMatchingFormSectionProps>;
|
|
31
|
+
export declare const getDefaultMatchingFormValues: () => KundliMatchingFormValues;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { KundliMatchingAnalytics } from '../../analytics';
|
|
3
|
+
export interface LanguageSelectorProps {
|
|
4
|
+
t: (key: string) => string;
|
|
5
|
+
selectedLanguage: string;
|
|
6
|
+
onChange: (language: string) => void;
|
|
7
|
+
analytics?: KundliMatchingAnalytics;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const LanguageSelector: React.FC<LanguageSelectorProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PersonFormValues } from './KundliMatchingFormSection';
|
|
3
|
+
import { KundliMatchingAnalytics } from '../../analytics';
|
|
4
|
+
export interface PersonFormSectionProps {
|
|
5
|
+
t: (key: string) => string;
|
|
6
|
+
values: PersonFormValues;
|
|
7
|
+
onChange: (values: PersonFormValues) => void;
|
|
8
|
+
personType: 'boy' | 'girl';
|
|
9
|
+
googleMapsApiKey?: string;
|
|
10
|
+
isGlobal?: boolean;
|
|
11
|
+
analytics?: KundliMatchingAnalytics;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const PersonFormSection: React.FC<PersonFormSectionProps>;
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
export declare const ISD_COUNTRY_OPTIONS: readonly [{
|
|
2
|
+
readonly code: "+1";
|
|
3
|
+
readonly country: "USA / Canada";
|
|
4
|
+
}, {
|
|
5
|
+
readonly code: "+7";
|
|
6
|
+
readonly country: "Russia / Kazakhstan";
|
|
7
|
+
}, {
|
|
8
|
+
readonly code: "+20";
|
|
9
|
+
readonly country: "Egypt";
|
|
10
|
+
}, {
|
|
11
|
+
readonly code: "+27";
|
|
12
|
+
readonly country: "South Africa";
|
|
13
|
+
}, {
|
|
14
|
+
readonly code: "+30";
|
|
15
|
+
readonly country: "Greece";
|
|
16
|
+
}, {
|
|
17
|
+
readonly code: "+31";
|
|
18
|
+
readonly country: "Netherlands";
|
|
19
|
+
}, {
|
|
20
|
+
readonly code: "+32";
|
|
21
|
+
readonly country: "Belgium";
|
|
22
|
+
}, {
|
|
23
|
+
readonly code: "+33";
|
|
24
|
+
readonly country: "France";
|
|
25
|
+
}, {
|
|
26
|
+
readonly code: "+34";
|
|
27
|
+
readonly country: "Spain";
|
|
28
|
+
}, {
|
|
29
|
+
readonly code: "+36";
|
|
30
|
+
readonly country: "Hungary";
|
|
31
|
+
}, {
|
|
32
|
+
readonly code: "+39";
|
|
33
|
+
readonly country: "Italy";
|
|
34
|
+
}, {
|
|
35
|
+
readonly code: "+40";
|
|
36
|
+
readonly country: "Romania";
|
|
37
|
+
}, {
|
|
38
|
+
readonly code: "+41";
|
|
39
|
+
readonly country: "Switzerland";
|
|
40
|
+
}, {
|
|
41
|
+
readonly code: "+43";
|
|
42
|
+
readonly country: "Austria";
|
|
43
|
+
}, {
|
|
44
|
+
readonly code: "+44";
|
|
45
|
+
readonly country: "United Kingdom";
|
|
46
|
+
}, {
|
|
47
|
+
readonly code: "+45";
|
|
48
|
+
readonly country: "Denmark";
|
|
49
|
+
}, {
|
|
50
|
+
readonly code: "+46";
|
|
51
|
+
readonly country: "Sweden";
|
|
52
|
+
}, {
|
|
53
|
+
readonly code: "+47";
|
|
54
|
+
readonly country: "Norway";
|
|
55
|
+
}, {
|
|
56
|
+
readonly code: "+48";
|
|
57
|
+
readonly country: "Poland";
|
|
58
|
+
}, {
|
|
59
|
+
readonly code: "+49";
|
|
60
|
+
readonly country: "Germany";
|
|
61
|
+
}, {
|
|
62
|
+
readonly code: "+51";
|
|
63
|
+
readonly country: "Peru";
|
|
64
|
+
}, {
|
|
65
|
+
readonly code: "+52";
|
|
66
|
+
readonly country: "Mexico";
|
|
67
|
+
}, {
|
|
68
|
+
readonly code: "+53";
|
|
69
|
+
readonly country: "Cuba";
|
|
70
|
+
}, {
|
|
71
|
+
readonly code: "+54";
|
|
72
|
+
readonly country: "Argentina";
|
|
73
|
+
}, {
|
|
74
|
+
readonly code: "+55";
|
|
75
|
+
readonly country: "Brazil";
|
|
76
|
+
}, {
|
|
77
|
+
readonly code: "+56";
|
|
78
|
+
readonly country: "Chile";
|
|
79
|
+
}, {
|
|
80
|
+
readonly code: "+57";
|
|
81
|
+
readonly country: "Colombia";
|
|
82
|
+
}, {
|
|
83
|
+
readonly code: "+60";
|
|
84
|
+
readonly country: "Malaysia";
|
|
85
|
+
}, {
|
|
86
|
+
readonly code: "+61";
|
|
87
|
+
readonly country: "Australia";
|
|
88
|
+
}, {
|
|
89
|
+
readonly code: "+62";
|
|
90
|
+
readonly country: "Indonesia";
|
|
91
|
+
}, {
|
|
92
|
+
readonly code: "+63";
|
|
93
|
+
readonly country: "Philippines";
|
|
94
|
+
}, {
|
|
95
|
+
readonly code: "+64";
|
|
96
|
+
readonly country: "New Zealand";
|
|
97
|
+
}, {
|
|
98
|
+
readonly code: "+65";
|
|
99
|
+
readonly country: "Singapore";
|
|
100
|
+
}, {
|
|
101
|
+
readonly code: "+66";
|
|
102
|
+
readonly country: "Thailand";
|
|
103
|
+
}, {
|
|
104
|
+
readonly code: "+81";
|
|
105
|
+
readonly country: "Japan";
|
|
106
|
+
}, {
|
|
107
|
+
readonly code: "+82";
|
|
108
|
+
readonly country: "South Korea";
|
|
109
|
+
}, {
|
|
110
|
+
readonly code: "+84";
|
|
111
|
+
readonly country: "Vietnam";
|
|
112
|
+
}, {
|
|
113
|
+
readonly code: "+86";
|
|
114
|
+
readonly country: "China";
|
|
115
|
+
}, {
|
|
116
|
+
readonly code: "+90";
|
|
117
|
+
readonly country: "Turkey";
|
|
118
|
+
}, {
|
|
119
|
+
readonly code: "+91";
|
|
120
|
+
readonly country: "India";
|
|
121
|
+
}, {
|
|
122
|
+
readonly code: "+92";
|
|
123
|
+
readonly country: "Pakistan";
|
|
124
|
+
}, {
|
|
125
|
+
readonly code: "+93";
|
|
126
|
+
readonly country: "Afghanistan";
|
|
127
|
+
}, {
|
|
128
|
+
readonly code: "+94";
|
|
129
|
+
readonly country: "Sri Lanka";
|
|
130
|
+
}, {
|
|
131
|
+
readonly code: "+95";
|
|
132
|
+
readonly country: "Myanmar";
|
|
133
|
+
}, {
|
|
134
|
+
readonly code: "+98";
|
|
135
|
+
readonly country: "Iran";
|
|
136
|
+
}, {
|
|
137
|
+
readonly code: "+211";
|
|
138
|
+
readonly country: "South Sudan";
|
|
139
|
+
}, {
|
|
140
|
+
readonly code: "+212";
|
|
141
|
+
readonly country: "Morocco";
|
|
142
|
+
}, {
|
|
143
|
+
readonly code: "+213";
|
|
144
|
+
readonly country: "Algeria";
|
|
145
|
+
}, {
|
|
146
|
+
readonly code: "+216";
|
|
147
|
+
readonly country: "Tunisia";
|
|
148
|
+
}, {
|
|
149
|
+
readonly code: "+218";
|
|
150
|
+
readonly country: "Libya";
|
|
151
|
+
}, {
|
|
152
|
+
readonly code: "+220";
|
|
153
|
+
readonly country: "Gambia";
|
|
154
|
+
}, {
|
|
155
|
+
readonly code: "+221";
|
|
156
|
+
readonly country: "Senegal";
|
|
157
|
+
}, {
|
|
158
|
+
readonly code: "+234";
|
|
159
|
+
readonly country: "Nigeria";
|
|
160
|
+
}, {
|
|
161
|
+
readonly code: "+254";
|
|
162
|
+
readonly country: "Kenya";
|
|
163
|
+
}, {
|
|
164
|
+
readonly code: "+255";
|
|
165
|
+
readonly country: "Tanzania";
|
|
166
|
+
}, {
|
|
167
|
+
readonly code: "+256";
|
|
168
|
+
readonly country: "Uganda";
|
|
169
|
+
}, {
|
|
170
|
+
readonly code: "+260";
|
|
171
|
+
readonly country: "Zambia";
|
|
172
|
+
}, {
|
|
173
|
+
readonly code: "+263";
|
|
174
|
+
readonly country: "Zimbabwe";
|
|
175
|
+
}, {
|
|
176
|
+
readonly code: "+264";
|
|
177
|
+
readonly country: "Namibia";
|
|
178
|
+
}, {
|
|
179
|
+
readonly code: "+265";
|
|
180
|
+
readonly country: "Malawi";
|
|
181
|
+
}, {
|
|
182
|
+
readonly code: "+880";
|
|
183
|
+
readonly country: "Bangladesh";
|
|
184
|
+
}, {
|
|
185
|
+
readonly code: "+886";
|
|
186
|
+
readonly country: "Taiwan";
|
|
187
|
+
}, {
|
|
188
|
+
readonly code: "+971";
|
|
189
|
+
readonly country: "United Arab Emirates";
|
|
190
|
+
}, {
|
|
191
|
+
readonly code: "+972";
|
|
192
|
+
readonly country: "Israel";
|
|
193
|
+
}, {
|
|
194
|
+
readonly code: "+973";
|
|
195
|
+
readonly country: "Bahrain";
|
|
196
|
+
}, {
|
|
197
|
+
readonly code: "+974";
|
|
198
|
+
readonly country: "Qatar";
|
|
199
|
+
}, {
|
|
200
|
+
readonly code: "+975";
|
|
201
|
+
readonly country: "Bhutan";
|
|
202
|
+
}, {
|
|
203
|
+
readonly code: "+976";
|
|
204
|
+
readonly country: "Mongolia";
|
|
205
|
+
}, {
|
|
206
|
+
readonly code: "+977";
|
|
207
|
+
readonly country: "Nepal";
|
|
208
|
+
}];
|
|
209
|
+
export declare const ISD_OPTIONS: ("+1" | "+7" | "+20" | "+27" | "+30" | "+31" | "+32" | "+33" | "+34" | "+36" | "+39" | "+40" | "+41" | "+43" | "+44" | "+45" | "+46" | "+47" | "+48" | "+49" | "+51" | "+52" | "+53" | "+54" | "+55" | "+56" | "+57" | "+60" | "+61" | "+62" | "+63" | "+64" | "+65" | "+66" | "+81" | "+82" | "+84" | "+86" | "+90" | "+91" | "+92" | "+93" | "+94" | "+95" | "+98" | "+211" | "+212" | "+213" | "+216" | "+218" | "+220" | "+221" | "+234" | "+254" | "+255" | "+256" | "+260" | "+263" | "+264" | "+265" | "+880" | "+886" | "+971" | "+972" | "+973" | "+974" | "+975" | "+976" | "+977")[];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface PlacePrediction {
|
|
2
|
+
place_id: string;
|
|
3
|
+
description: string;
|
|
4
|
+
structured_formatting: {
|
|
5
|
+
main_text: string;
|
|
6
|
+
secondary_text: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export interface PlaceDetails {
|
|
10
|
+
display_name: string;
|
|
11
|
+
lat: number;
|
|
12
|
+
lng: number;
|
|
13
|
+
city?: string;
|
|
14
|
+
state?: string;
|
|
15
|
+
country?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const useGooglePlacesAutocomplete: (params: {
|
|
18
|
+
apiKey?: string;
|
|
19
|
+
language?: string;
|
|
20
|
+
restrictCountry?: string;
|
|
21
|
+
/** If true, defer loading until explicitly triggered (default: false) */
|
|
22
|
+
deferLoad?: boolean;
|
|
23
|
+
}) => {
|
|
24
|
+
isLoaded: boolean;
|
|
25
|
+
predictions: PlacePrediction[];
|
|
26
|
+
isSearching: boolean;
|
|
27
|
+
loadError: string | null;
|
|
28
|
+
searchPlaces: (query: string) => Promise<void>;
|
|
29
|
+
getPlaceDetails: (placeId: string) => Promise<PlaceDetails | null>;
|
|
30
|
+
clearPredictions: () => void;
|
|
31
|
+
triggerLoad: () => void;
|
|
32
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface KundliMatchingHeaderProps {
|
|
3
|
+
t: (key: string) => string;
|
|
4
|
+
languageSelector?: React.ReactNode;
|
|
5
|
+
logoUrl?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
isGlobal?: boolean;
|
|
8
|
+
imageComponent?: React.ComponentType<any>;
|
|
9
|
+
}
|
|
10
|
+
export declare const KundliMatchingHeader: React.FC<KundliMatchingHeaderProps>;
|