@momo-webplatform/mobase-next 1.0.1
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/README.md +136 -0
- package/dist/chunk-7LRQ2WLZ.mjs +1 -0
- package/dist/components/blocks/BlogSection/BlogSection.d.mts +17 -0
- package/dist/components/blocks/BlogSection/BlogSection.mjs +1 -0
- package/dist/components/blocks/BlogSection/BlogSectionTemplate.d.mts +15 -0
- package/dist/components/blocks/BlogSection/BlogSectionTemplate.mjs +1 -0
- package/dist/components/blocks/BlogSection/index.d.mts +14 -0
- package/dist/components/blocks/BlogSection/index.mjs +1 -0
- package/dist/components/blocks/BlogSection/templates/BlogSectionTemplateOne.d.mts +17 -0
- package/dist/components/blocks/BlogSection/templates/BlogSectionTemplateOne.mjs +1 -0
- package/dist/components/blocks/BlogSection/templates/BlogSectionTemplateTwo.d.mts +17 -0
- package/dist/components/blocks/BlogSection/templates/BlogSectionTemplateTwo.mjs +1 -0
- package/dist/components/blocks/BlogSection/utils.d.mts +49 -0
- package/dist/components/blocks/BlogSection/utils.mjs +0 -0
- package/dist/components/blocks/CTASection/CTASection.d.mts +17 -0
- package/dist/components/blocks/CTASection/CTASection.mjs +1 -0
- package/dist/components/blocks/CTASection/CTASectionTemplate.d.mts +18 -0
- package/dist/components/blocks/CTASection/CTASectionTemplate.mjs +1 -0
- package/dist/components/blocks/CTASection/index.d.mts +14 -0
- package/dist/components/blocks/CTASection/index.mjs +1 -0
- package/dist/components/blocks/CTASection/utils.d.mts +60 -0
- package/dist/components/blocks/CTASection/utils.mjs +0 -0
- package/dist/components/blocks/FAQSection/FAQSection.d.mts +17 -0
- package/dist/components/blocks/FAQSection/FAQSection.mjs +1 -0
- package/dist/components/blocks/FAQSection/FAQTemplate.d.mts +18 -0
- package/dist/components/blocks/FAQSection/FAQTemplate.mjs +1 -0
- package/dist/components/blocks/FAQSection/index.d.mts +14 -0
- package/dist/components/blocks/FAQSection/index.mjs +1 -0
- package/dist/components/blocks/FAQSection/utils.d.mts +36 -0
- package/dist/components/blocks/FAQSection/utils.mjs +0 -0
- package/dist/components/blocks/FeatureSection/FeatureSection.d.mts +17 -0
- package/dist/components/blocks/FeatureSection/FeatureSection.mjs +1 -0
- package/dist/components/blocks/FeatureSection/FeatureTemlates.d.mts +29 -0
- package/dist/components/blocks/FeatureSection/FeatureTemlates.mjs +1 -0
- package/dist/components/blocks/FeatureSection/index.d.mts +14 -0
- package/dist/components/blocks/FeatureSection/index.mjs +1 -0
- package/dist/components/blocks/FeatureSection/utils.d.mts +77 -0
- package/dist/components/blocks/FeatureSection/utils.mjs +0 -0
- package/dist/components/blocks/GiftListSection/GiftListSection.d.mts +17 -0
- package/dist/components/blocks/GiftListSection/GiftListSection.mjs +1 -0
- package/dist/components/blocks/GiftListSection/GiftListSectionTemplate.d.mts +17 -0
- package/dist/components/blocks/GiftListSection/GiftListSectionTemplate.mjs +1 -0
- package/dist/components/blocks/GiftListSection/index.d.mts +14 -0
- package/dist/components/blocks/GiftListSection/index.mjs +1 -0
- package/dist/components/blocks/GiftListSection/utils.d.mts +81 -0
- package/dist/components/blocks/GiftListSection/utils.mjs +0 -0
- package/dist/components/blocks/HeroSection/HeroSection.d.mts +18 -0
- package/dist/components/blocks/HeroSection/HeroSection.mjs +1 -0
- package/dist/components/blocks/HeroSection/HeroSectionFeatures.d.mts +31 -0
- package/dist/components/blocks/HeroSection/HeroSectionFeatures.mjs +1 -0
- package/dist/components/blocks/HeroSection/HeroSectionMedia.d.mts +17 -0
- package/dist/components/blocks/HeroSection/HeroSectionMedia.mjs +1 -0
- package/dist/components/blocks/HeroSection/HeroSectionStats.d.mts +19 -0
- package/dist/components/blocks/HeroSection/HeroSectionStats.mjs +1 -0
- package/dist/components/blocks/HeroSection/HeroSectionTemplate.d.mts +19 -0
- package/dist/components/blocks/HeroSection/HeroSectionTemplate.mjs +1 -0
- package/dist/components/blocks/HeroSection/index.d.mts +14 -0
- package/dist/components/blocks/HeroSection/index.mjs +1 -0
- package/dist/components/blocks/HeroSection/utils.d.mts +84 -0
- package/dist/components/blocks/HeroSection/utils.mjs +1 -0
- package/dist/components/blocks/HowItWorksSection/HowItWorksSection.d.mts +17 -0
- package/dist/components/blocks/HowItWorksSection/HowItWorksSection.mjs +1 -0
- package/dist/components/blocks/HowItWorksSection/HowItWorksSectionTemplate.d.mts +19 -0
- package/dist/components/blocks/HowItWorksSection/HowItWorksSectionTemplate.mjs +1 -0
- package/dist/components/blocks/HowItWorksSection/index.d.mts +14 -0
- package/dist/components/blocks/HowItWorksSection/index.mjs +1 -0
- package/dist/components/blocks/HowItWorksSection/utils.d.mts +47 -0
- package/dist/components/blocks/HowItWorksSection/utils.mjs +0 -0
- package/dist/components/blocks/MetricsSection/MetricsSection.d.mts +17 -0
- package/dist/components/blocks/MetricsSection/MetricsSection.mjs +1 -0
- package/dist/components/blocks/MetricsSection/MetricsSectionTemplate.d.mts +15 -0
- package/dist/components/blocks/MetricsSection/MetricsSectionTemplate.mjs +1 -0
- package/dist/components/blocks/MetricsSection/index.d.mts +14 -0
- package/dist/components/blocks/MetricsSection/index.mjs +1 -0
- package/dist/components/blocks/MetricsSection/template/MetricsSectionTemplateOne.d.mts +17 -0
- package/dist/components/blocks/MetricsSection/template/MetricsSectionTemplateOne.mjs +1 -0
- package/dist/components/blocks/MetricsSection/template/MetricsSectionTemplateTwo.d.mts +17 -0
- package/dist/components/blocks/MetricsSection/template/MetricsSectionTemplateTwo.mjs +1 -0
- package/dist/components/blocks/MetricsSection/utils.d.mts +38 -0
- package/dist/components/blocks/MetricsSection/utils.mjs +0 -0
- package/dist/components/blocks/NewsSection/NewsSection.d.mts +17 -0
- package/dist/components/blocks/NewsSection/NewsSection.mjs +1 -0
- package/dist/components/blocks/NewsSection/NewsSectionTemplate.d.mts +17 -0
- package/dist/components/blocks/NewsSection/NewsSectionTemplate.mjs +1 -0
- package/dist/components/blocks/NewsSection/index.d.mts +14 -0
- package/dist/components/blocks/NewsSection/index.mjs +1 -0
- package/dist/components/blocks/NewsSection/utils.d.mts +64 -0
- package/dist/components/blocks/NewsSection/utils.mjs +0 -0
- package/dist/components/blocks/SocialProofSection/SocialProofSection.d.mts +17 -0
- package/dist/components/blocks/SocialProofSection/SocialProofSection.mjs +1 -0
- package/dist/components/blocks/SocialProofSection/SocialProofTemplates.d.mts +17 -0
- package/dist/components/blocks/SocialProofSection/SocialProofTemplates.mjs +1 -0
- package/dist/components/blocks/SocialProofSection/index.d.mts +14 -0
- package/dist/components/blocks/SocialProofSection/index.mjs +1 -0
- package/dist/components/blocks/SocialProofSection/templates/SocialProofTemplate1.d.mts +17 -0
- package/dist/components/blocks/SocialProofSection/templates/SocialProofTemplate1.mjs +1 -0
- package/dist/components/blocks/SocialProofSection/templates/SocialProofTemplate2.d.mts +17 -0
- package/dist/components/blocks/SocialProofSection/templates/SocialProofTemplate2.mjs +1 -0
- package/dist/components/blocks/SocialProofSection/templates/SocialProofTemplate3.d.mts +17 -0
- package/dist/components/blocks/SocialProofSection/templates/SocialProofTemplate3.mjs +1 -0
- package/dist/components/blocks/SocialProofSection/templates/SocialProofTemplate4.d.mts +17 -0
- package/dist/components/blocks/SocialProofSection/templates/SocialProofTemplate4.mjs +18 -0
- package/dist/components/blocks/SocialProofSection/utils.d.mts +31 -0
- package/dist/components/blocks/SocialProofSection/utils.mjs +0 -0
- package/dist/components/blocks/TestimonialSection/TestimonialSection.d.mts +17 -0
- package/dist/components/blocks/TestimonialSection/TestimonialSection.mjs +1 -0
- package/dist/components/blocks/TestimonialSection/index.d.mts +14 -0
- package/dist/components/blocks/TestimonialSection/index.mjs +1 -0
- package/dist/components/blocks/TestimonialSection/shared.d.mts +29 -0
- package/dist/components/blocks/TestimonialSection/shared.mjs +1 -0
- package/dist/components/blocks/TestimonialSection/templates/TestimonialTemplateOne.d.mts +17 -0
- package/dist/components/blocks/TestimonialSection/templates/TestimonialTemplateOne.mjs +1 -0
- package/dist/components/blocks/TestimonialSection/templates/TestimonialTemplateThree.d.mts +17 -0
- package/dist/components/blocks/TestimonialSection/templates/TestimonialTemplateThree.mjs +1 -0
- package/dist/components/blocks/TestimonialSection/templates/TestimonialTemplateTwo.d.mts +17 -0
- package/dist/components/blocks/TestimonialSection/templates/TestimonialTemplateTwo.mjs +5 -0
- package/dist/components/blocks/TestimonialSection/utils.d.mts +37 -0
- package/dist/components/blocks/TestimonialSection/utils.mjs +1 -0
- package/dist/components/blocks/action-button/action-button.d.mts +15 -0
- package/dist/components/blocks/action-button/action-button.mjs +1 -0
- package/dist/components/blocks/action-button/index.d.mts +12 -0
- package/dist/components/blocks/action-button/index.mjs +1 -0
- package/dist/components/blocks/action-button/utils.d.mts +40 -0
- package/dist/components/blocks/action-button/utils.mjs +1 -0
- package/dist/components/blocks/common-blocks/common-blocks.d.mts +18 -0
- package/dist/components/blocks/common-blocks/common-blocks.mjs +1 -0
- package/dist/components/blocks/common-blocks/index.d.mts +13 -0
- package/dist/components/blocks/common-blocks/index.mjs +1 -0
- package/dist/components/blocks/common-blocks/utils.d.mts +90 -0
- package/dist/components/blocks/common-blocks/utils.mjs +0 -0
- package/dist/components/blocks/dialog-qr/DialogQr.d.mts +42 -0
- package/dist/components/blocks/dialog-qr/DialogQr.mjs +70 -0
- package/dist/components/blocks/dialog-qr/index.d.mts +8 -0
- package/dist/components/blocks/dialog-qr/index.mjs +1 -0
- package/dist/components/blocks/footer/defaults.d.mts +39 -0
- package/dist/components/blocks/footer/defaults.mjs +1 -0
- package/dist/components/blocks/footer/footer-content.d.mts +6 -0
- package/dist/components/blocks/footer/footer-content.mjs +5 -0
- package/dist/components/blocks/footer/footer.d.mts +6 -0
- package/dist/components/blocks/footer/footer.mjs +1 -0
- package/dist/components/blocks/footer/index.d.mts +5 -0
- package/dist/components/blocks/footer/index.mjs +1 -0
- package/dist/components/blocks/footer/types.d.mts +27 -0
- package/dist/components/blocks/footer/types.mjs +0 -0
- package/dist/components/blocks/header-navigation/header-navigation.d.mts +7 -0
- package/dist/components/blocks/header-navigation/header-navigation.mjs +5 -0
- package/dist/components/blocks/header-navigation/index.d.mts +4 -0
- package/dist/components/blocks/header-navigation/index.mjs +1 -0
- package/dist/components/blocks/header-navigation/list-item-mobile.d.mts +14 -0
- package/dist/components/blocks/header-navigation/list-item-mobile.mjs +1 -0
- package/dist/components/blocks/header-navigation/list-item.d.mts +14 -0
- package/dist/components/blocks/header-navigation/list-item.mjs +1 -0
- package/dist/components/blocks/header-navigation/mobile-menu.d.mts +11 -0
- package/dist/components/blocks/header-navigation/mobile-menu.mjs +1 -0
- package/dist/components/blocks/header-navigation/nav-items-mobile.d.mts +10 -0
- package/dist/components/blocks/header-navigation/nav-items-mobile.mjs +1 -0
- package/dist/components/blocks/header-navigation/nav-items.d.mts +11 -0
- package/dist/components/blocks/header-navigation/nav-items.mjs +1 -0
- package/dist/components/blocks/header-navigation/types.d.mts +44 -0
- package/dist/components/blocks/header-navigation/types.mjs +0 -0
- package/dist/components/blocks/heading-group/HeadingGroup.d.mts +97 -0
- package/dist/components/blocks/heading-group/HeadingGroup.mjs +1 -0
- package/dist/components/blocks/heading-group/index.d.mts +3 -0
- package/dist/components/blocks/heading-group/index.mjs +1 -0
- package/dist/components/mobase/accordion.d.mts +9 -0
- package/dist/components/mobase/accordion.mjs +1 -0
- package/dist/components/mobase/alert-dialog.d.mts +24 -0
- package/dist/components/mobase/alert-dialog.mjs +1 -0
- package/dist/components/mobase/alert.d.mts +14 -0
- package/dist/components/mobase/alert.mjs +1 -0
- package/dist/components/mobase/aspect-ratio.d.mts +8 -0
- package/dist/components/mobase/aspect-ratio.mjs +1 -0
- package/dist/components/mobase/autocomplete.d.mts +34 -0
- package/dist/components/mobase/autocomplete.mjs +1 -0
- package/dist/components/mobase/avatar.d.mts +14 -0
- package/dist/components/mobase/avatar.mjs +1 -0
- package/dist/components/mobase/badge.d.mts +15 -0
- package/dist/components/mobase/badge.mjs +1 -0
- package/dist/components/mobase/breadcrumb.d.mts +13 -0
- package/dist/components/mobase/breadcrumb.mjs +1 -0
- package/dist/components/mobase/button-group.d.mts +16 -0
- package/dist/components/mobase/button-group.mjs +1 -0
- package/dist/components/mobase/button.d.mts +22 -0
- package/dist/components/mobase/button.mjs +1 -0
- package/dist/components/mobase/calendar.d.mts +16 -0
- package/dist/components/mobase/calendar.mjs +1 -0
- package/dist/components/mobase/card.d.mts +14 -0
- package/dist/components/mobase/card.mjs +1 -0
- package/dist/components/mobase/carousel.d.mts +37 -0
- package/dist/components/mobase/carousel.mjs +1 -0
- package/dist/components/mobase/checkbox.d.mts +7 -0
- package/dist/components/mobase/checkbox.mjs +1 -0
- package/dist/components/mobase/close-button.d.mts +17 -0
- package/dist/components/mobase/close-button.mjs +1 -0
- package/dist/components/mobase/combobox.d.mts +29 -0
- package/dist/components/mobase/combobox.mjs +1 -0
- package/dist/components/mobase/command.d.mts +31 -0
- package/dist/components/mobase/command.mjs +1 -0
- package/dist/components/mobase/date-picker.d.mts +46 -0
- package/dist/components/mobase/date-picker.mjs +1 -0
- package/dist/components/mobase/dialog.d.mts +41 -0
- package/dist/components/mobase/dialog.mjs +1 -0
- package/dist/components/mobase/drawer.d.mts +46 -0
- package/dist/components/mobase/drawer.mjs +1 -0
- package/dist/components/mobase/dropdown-menu.d.mts +33 -0
- package/dist/components/mobase/dropdown-menu.mjs +1 -0
- package/dist/components/mobase/empty.d.mts +20 -0
- package/dist/components/mobase/empty.mjs +1 -0
- package/dist/components/mobase/field.d.mts +30 -0
- package/dist/components/mobase/field.mjs +1 -0
- package/dist/components/mobase/form.d.mts +7 -0
- package/dist/components/mobase/form.mjs +1 -0
- package/dist/components/mobase/hitbox.d.mts +19 -0
- package/dist/components/mobase/hitbox.mjs +1 -0
- package/dist/components/mobase/horizontal-scroll.d.mts +24 -0
- package/dist/components/mobase/horizontal-scroll.mjs +1 -0
- package/dist/components/mobase/infinite-slider.d.mts +19 -0
- package/dist/components/mobase/infinite-slider.mjs +1 -0
- package/dist/components/mobase/input-group.d.mts +27 -0
- package/dist/components/mobase/input-group.mjs +1 -0
- package/dist/components/mobase/input-search.d.mts +8 -0
- package/dist/components/mobase/input-search.mjs +1 -0
- package/dist/components/mobase/input.d.mts +34 -0
- package/dist/components/mobase/input.mjs +1 -0
- package/dist/components/mobase/item.d.mts +27 -0
- package/dist/components/mobase/item.mjs +1 -0
- package/dist/components/mobase/kbd.d.mts +6 -0
- package/dist/components/mobase/kbd.mjs +1 -0
- package/dist/components/mobase/label.d.mts +6 -0
- package/dist/components/mobase/label.mjs +1 -0
- package/dist/components/mobase/logo.d.mts +26 -0
- package/dist/components/mobase/logo.mjs +1 -0
- package/dist/components/mobase/logos-carousel.d.mts +15 -0
- package/dist/components/mobase/logos-carousel.mjs +27 -0
- package/dist/components/mobase/marquee.d.mts +16 -0
- package/dist/components/mobase/marquee.mjs +1 -0
- package/dist/components/mobase/native-select.d.mts +11 -0
- package/dist/components/mobase/native-select.mjs +1 -0
- package/dist/components/mobase/navigation-menu.d.mts +15 -0
- package/dist/components/mobase/navigation-menu.mjs +1 -0
- package/dist/components/mobase/pagination.d.mts +23 -0
- package/dist/components/mobase/pagination.mjs +1 -0
- package/dist/components/mobase/popover.d.mts +12 -0
- package/dist/components/mobase/popover.mjs +1 -0
- package/dist/components/mobase/progress.d.mts +10 -0
- package/dist/components/mobase/progress.mjs +1 -0
- package/dist/components/mobase/radio-group.d.mts +10 -0
- package/dist/components/mobase/radio-group.mjs +1 -0
- package/dist/components/mobase/scroll-area.d.mts +11 -0
- package/dist/components/mobase/scroll-area.mjs +1 -0
- package/dist/components/mobase/select.d.mts +21 -0
- package/dist/components/mobase/select.mjs +1 -0
- package/dist/components/mobase/separator.d.mts +6 -0
- package/dist/components/mobase/separator.mjs +1 -0
- package/dist/components/mobase/skeleton.d.mts +5 -0
- package/dist/components/mobase/skeleton.mjs +1 -0
- package/dist/components/mobase/slider.d.mts +6 -0
- package/dist/components/mobase/slider.mjs +1 -0
- package/dist/components/mobase/sliding-number.d.mts +10 -0
- package/dist/components/mobase/sliding-number.mjs +1 -0
- package/dist/components/mobase/spinner.d.mts +12 -0
- package/dist/components/mobase/spinner.mjs +1 -0
- package/dist/components/mobase/switch.d.mts +8 -0
- package/dist/components/mobase/switch.mjs +1 -0
- package/dist/components/mobase/table.d.mts +13 -0
- package/dist/components/mobase/table.mjs +1 -0
- package/dist/components/mobase/tabs.d.mts +14 -0
- package/dist/components/mobase/tabs.mjs +1 -0
- package/dist/components/mobase/text-effect.d.mts +30 -0
- package/dist/components/mobase/text-effect.mjs +2 -0
- package/dist/components/mobase/textarea.d.mts +10 -0
- package/dist/components/mobase/textarea.mjs +1 -0
- package/dist/components/mobase/toast.d.mts +14 -0
- package/dist/components/mobase/toast.mjs +1 -0
- package/dist/components/mobase/tooltip.d.mts +9 -0
- package/dist/components/mobase/tooltip.mjs +1 -0
- package/dist/hooks/use-click-outside.d.mts +6 -0
- package/dist/hooks/use-click-outside.mjs +1 -0
- package/dist/hooks/use-copy-to-clipboard.d.mts +9 -0
- package/dist/hooks/use-copy-to-clipboard.mjs +1 -0
- package/dist/hooks/use-event-callback.d.mts +19 -0
- package/dist/hooks/use-event-callback.mjs +1 -0
- package/dist/hooks/use-event-listener.d.mts +8 -0
- package/dist/hooks/use-event-listener.mjs +1 -0
- package/dist/hooks/use-is-client.d.mts +3 -0
- package/dist/hooks/use-is-client.mjs +1 -0
- package/dist/hooks/use-is-momo-app.d.mts +3 -0
- package/dist/hooks/use-is-momo-app.mjs +1 -0
- package/dist/hooks/use-is-touch-device.d.mts +7 -0
- package/dist/hooks/use-is-touch-device.mjs +1 -0
- package/dist/hooks/use-isomorphic-layout-effect.d.mts +5 -0
- package/dist/hooks/use-isomorphic-layout-effect.mjs +1 -0
- package/dist/hooks/use-local-storage.d.mts +5 -0
- package/dist/hooks/use-local-storage.mjs +1 -0
- package/dist/hooks/use-mobile.d.mts +3 -0
- package/dist/hooks/use-mobile.mjs +1 -0
- package/dist/hooks/use-window-size.d.mts +11 -0
- package/dist/hooks/use-window-size.mjs +1 -0
- package/dist/index.d.mts +137 -0
- package/dist/index.mjs +1 -0
- package/dist/lib/legacy-button-variant.d.mts +13 -0
- package/dist/lib/legacy-button-variant.mjs +1 -0
- package/dist/lib/media-ratio.d.mts +6 -0
- package/dist/lib/media-ratio.mjs +1 -0
- package/dist/lib/plain-text-from-html.d.mts +6 -0
- package/dist/lib/plain-text-from-html.mjs +1 -0
- package/dist/lib/qr-image-url.d.mts +13 -0
- package/dist/lib/qr-image-url.mjs +1 -0
- package/dist/lib/scroll-to-selector.d.mts +9 -0
- package/dist/lib/scroll-to-selector.mjs +1 -0
- package/dist/lib/testimonial-avatar.d.mts +6 -0
- package/dist/lib/testimonial-avatar.mjs +1 -0
- package/dist/lib/utils.d.mts +5 -0
- package/dist/lib/utils.mjs +1 -0
- package/package.json +68 -0
- package/src/styles/globals.css +456 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a as I,b as u}from"../../../chunk-7LRQ2WLZ.mjs";import{Fragment as f,jsx as s,jsxs as i}from"react/jsx-runtime";import{useState as P}from"react";import{ChevronRightIcon as A}from"lucide-react";import b from"html-react-parser";import{cn as k}from"../../../lib/utils";import{Accordion as j,AccordionContent as D,AccordionItem as R,AccordionTrigger as C}from"../../mobase/accordion";import{AspectRatio as L}from"../../mobase/aspect-ratio";import{Button as _}from"../../mobase/button";import{ButtonsBlock as p,HeadingBlock as N}from"../common-blocks/common-blocks";function x({btnLink:l,btnName:e,newTab:m}){return l?s(_,{variant:"link",size:"sm",onClick:()=>{window.open(l,m?"_blank":"_self","noopener,noreferrer")},suffix:s(A,{className:"h-4 w-4"}),className:"h-auto p-0",children:e||"Xem chi ti\u1EBFt"}):null}function F({dataHeading:l,dataFeatures:e,dataButtons:m}){return i(f,{children:[l?s(N,{tagline:l==null?void 0:l.tagline,title:l==null?void 0:l.title,description:l==null?void 0:l.description,tagHeading:l==null?void 0:l.tagHeading,align:"center",colorScheme:(l==null?void 0:l.colorScheme)||"pink",sizeHeading:l==null?void 0:l.sizeHeading,className:l==null?void 0:l.className}):null,e?s("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:e==null?void 0:e.map((c,o)=>i("div",{className:"feature-item relative flex w-full flex-col text-center",children:[c.image?s("div",{className:"mx-auto h-16 w-16",children:s("img",{src:c.image,alt:c.name,className:"h-full w-full object-contain"})}):null,i("div",{className:"mx-auto mt-4 w-full max-w-xs flex-1 md:max-w-full",children:[i("div",{className:"flex-1",children:[c.name?s("h3",{className:"text-lg font-semibold",children:b(c.name)}):null,c.description?s("div",{className:"text-muted-foreground mt-2 text-base",children:b(c.description)}):null]}),c.btnLink?s("div",{className:"mt-4",children:s(x,{btnLink:c.btnLink,btnName:c.btnName,newTab:c.newTab})}):null]})]},o))}):null,m?s(p,{isFullInMobile:m==null?void 0:m.isFullInMobile,buttons:m==null?void 0:m.buttons,className:m==null?void 0:m.className,align:"center"}):null]})}function E({dataHeading:l,dataFeatures:e,dataButtons:m}){return i(f,{children:[l?s(N,{tagline:l==null?void 0:l.tagline,title:l==null?void 0:l.title,description:l==null?void 0:l.description,tagHeading:l==null?void 0:l.tagHeading,align:"center",colorScheme:(l==null?void 0:l.colorScheme)||"pink",sizeHeading:l==null?void 0:l.sizeHeading,className:l==null?void 0:l.className}):null,e?s("div",{className:"list-features list-features-2 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4",children:e==null?void 0:e.map((c,o)=>i("div",{className:"feature-item border-border relative flex w-full flex-col overflow-hidden rounded-md border p-5 bg-background-1",children:[c.image?s("div",{className:"h-16 w-16",children:s("img",{src:c.image,alt:c.name,className:"h-full w-full object-contain"})}):null,i("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[i("div",{className:"flex-1",children:[c.name?s("h3",{className:"text-lg font-semibold",children:b(c.name)}):null,c.description?s("div",{className:"text-muted-foreground mt-2 text-base",children:b(c.description)}):null]}),c.btnLink?s("div",{className:"mt-4",children:s(x,{btnLink:c.btnLink,btnName:c.btnName,newTab:c.newTab})}):null]})]},o))}):null,m?s(p,{isFullInMobile:m==null?void 0:m.isFullInMobile,buttons:m==null?void 0:m.buttons,className:m==null?void 0:m.className,align:"center"}):null]})}function W({dataHeading:l,dataFeatures:e,dataButtons:m}){return i(f,{children:[l?s(N,{tagline:l==null?void 0:l.tagline,title:l==null?void 0:l.title,description:l==null?void 0:l.description,tagHeading:l==null?void 0:l.tagHeading,align:"center",colorScheme:(l==null?void 0:l.colorScheme)||"pink",sizeHeading:l==null?void 0:l.sizeHeading,className:l==null?void 0:l.className}):null,e?s("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:e==null?void 0:e.map((c,o)=>i("div",{className:"feature-item relative flex w-full flex-col",children:[c.image?s("div",{className:"h-16 w-16",children:s("img",{src:c.image,alt:c.name,className:"h-full w-full object-contain"})}):null,i("div",{className:"mt-4 w-full flex-1",children:[i("div",{className:"flex-1",children:[c.name?s("h3",{className:"text-lg font-semibold",children:b(c.name)}):null,c.description?s("div",{className:"text-muted-foreground mt-2 text-base",children:b(c.description)}):null]}),c.btnLink?s("div",{className:"mt-4",children:s(x,{btnLink:c.btnLink,btnName:c.btnName,newTab:c.newTab})}):null]})]},o))}):null,m?s(p,{isFullInMobile:m==null?void 0:m.isFullInMobile,buttons:m==null?void 0:m.buttons,className:m==null?void 0:m.className,align:"center"}):null]})}function O({dataHeading:l,dataFeatures:e,dataButtons:m}){return i("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[i("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[l?s(N,{tagline:l==null?void 0:l.tagline,title:l==null?void 0:l.title,description:l==null?void 0:l.description,tagHeading:l==null?void 0:l.tagHeading,align:"left",colorScheme:(l==null?void 0:l.colorScheme)||"pink",sizeHeading:l==null?void 0:l.sizeHeading,className:k("text-center lg:mb-0 lg:text-left",l==null?void 0:l.className)}):null,m?s(p,{isFullInMobile:m==null?void 0:m.isFullInMobile,buttons:m==null?void 0:m.buttons,className:`hidden lg:flex ${m==null?void 0:m.className}`,align:"left"}):null]}),i("div",{className:"lg:col-span-6",children:[e?s("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:e==null?void 0:e.map((c,o)=>i("div",{className:"feature-item border-border bg-card relative flex w-full flex-col rounded-lg border p-5",children:[c.image?s("div",{className:"h-16 w-16",children:s("img",{src:c.image,alt:c.name,className:"h-full w-full object-contain"})}):null,i("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[i("div",{className:"flex-1",children:[c.name?s("h3",{className:"text-lg font-semibold",children:b(c.name)}):null,c.description?s("div",{className:"text-muted-foreground mt-2 text-base",children:b(c.description)}):null]}),c.btnLink?s("div",{className:"mt-4",children:s(x,{btnLink:c.btnLink,btnName:c.btnName,newTab:c.newTab})}):null]})]},o))}):null,m?s(p,{isFullInMobile:m==null?void 0:m.isFullInMobile,buttons:m==null?void 0:m.buttons,className:`flex lg:hidden ${m==null?void 0:m.className}`,align:"center"}):null]})]})}function X({dataHeading:l,dataFeatures:e,dataButtons:m}){return i(f,{children:[l?s(N,{tagline:l==null?void 0:l.tagline,title:l==null?void 0:l.title,description:l==null?void 0:l.description,tagHeading:l==null?void 0:l.tagHeading,align:"center",colorScheme:(l==null?void 0:l.colorScheme)||"pink",sizeHeading:l==null?void 0:l.sizeHeading,className:l==null?void 0:l.className}):null,e?s("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:e==null?void 0:e.map((c,o)=>i("div",{className:"feature-item border-border bg-card relative flex w-full flex-col rounded-lg border p-7",children:[c.image?s("div",{className:"h-16 w-16",children:s("img",{src:c.image,alt:c.name,className:"h-full w-full object-contain"})}):null,i("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[i("div",{className:"flex-1",children:[c.name?s("h3",{className:"text-lg font-semibold",children:b(c.name)}):null,c.description?s("div",{className:"text-muted-foreground mt-2 text-base",children:b(c.description)}):null]}),c.btnLink?s("div",{className:"mt-4",children:s(x,{btnLink:c.btnLink,btnName:c.btnName,newTab:c.newTab})}):null]})]},o))}):null,m?s(p,{isFullInMobile:m==null?void 0:m.isFullInMobile,buttons:m==null?void 0:m.buttons,className:m==null?void 0:m.className,align:"center"}):null]})}function $({dataHeading:l,dataFeatures:e,dataButtons:m}){return i(f,{children:[l?s(N,{tagline:l==null?void 0:l.tagline,title:l==null?void 0:l.title,description:l==null?void 0:l.description,tagHeading:l==null?void 0:l.tagHeading,align:"center",colorScheme:(l==null?void 0:l.colorScheme)||"pink",sizeHeading:l==null?void 0:l.sizeHeading,className:l==null?void 0:l.className}):null,e?s("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:e==null?void 0:e.map((c,o)=>i("div",{className:"feature-item relative w-full",children:[c.image?s("div",{className:"h-12 w-12",children:s("img",{src:c.image,alt:c.name,className:"h-full w-full object-contain"})}):null,i("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[i("div",{className:"flex-1",children:[c.name?s("h3",{className:"text-lg font-semibold",children:b(c.name)}):null,c.description?s("div",{className:"text-muted-foreground mt-2 text-sm",children:b(c.description)}):null]}),c.btnLink?s("div",{className:"mt-4",children:s(x,{btnLink:c.btnLink,btnName:c.btnName,newTab:c.newTab})}):null]})]},o))}):null,m?s(p,{isFullInMobile:m==null?void 0:m.isFullInMobile,buttons:m==null?void 0:m.buttons,className:m==null?void 0:m.className,align:"center"}):null]})}function K({dataHeading:l,dataFeatures:e,dataButtons:m}){const c=(e==null?void 0:e.length)||0,o={default:"md:basis-1/5",special:"md:basis-1/4"},w={6:3,7:4,8:4},n=r=>r===6||r===7||r===8,T=c>=1&&c<=4||n(c)?o.special:o.default,v=n(c)?w[c]:-1,h=(r,S)=>{const z=r.btnLink?"a":"div",M=r.btnLink?{href:r.btnLink,target:r.newTab?"_blank":"_self",rel:"noopener noreferrer",title:r.btnName}:{};return s("div",{className:k("basis-1/2 px-2 lg:px-5",T,S===v&&"md:break-after-row",r.btnLink&&"group cursor-pointer"),children:i(z,u(I({},M),{className:"feature-item relative flex w-full flex-col items-center gap-3",children:[r.image?s("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:s("img",{src:r.image,alt:r.name,className:"h-full w-full object-contain",loading:"lazy"})}):null,i("div",{className:"w-full flex-1 text-center",children:[r.name?s("h3",{className:"text-base duration-300 group-hover:text-primary",children:b(r.name)}):null,r.description?s("div",{className:"text-muted-foreground mt-2 text-sm",children:b(r.description)}):null]})]}))},S)};return i(f,{children:[l?s(N,{tagline:l==null?void 0:l.tagline,title:l==null?void 0:l.title,description:l==null?void 0:l.description,tagHeading:l==null?void 0:l.tagHeading,align:"center",colorScheme:(l==null?void 0:l.colorScheme)||"pink",sizeHeading:l==null?void 0:l.sizeHeading,className:l==null?void 0:l.className}):null,e?s("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:e.map((r,S)=>h(r,S))}):null,m?s(p,{isFullInMobile:m==null?void 0:m.isFullInMobile,buttons:m==null?void 0:m.buttons,className:m==null?void 0:m.className,align:"center"}):null]})}function V({dataHeading:l,dataFeatures:e,dataButtons:m}){return i(f,{children:[l?s(N,{tagline:l==null?void 0:l.tagline,title:l==null?void 0:l.title,description:l==null?void 0:l.description,tagHeading:l==null?void 0:l.tagHeading,align:"center",colorScheme:(l==null?void 0:l.colorScheme)||"pink",sizeHeading:l==null?void 0:l.sizeHeading,className:l==null?void 0:l.className}):null,e?s("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:e==null?void 0:e.map((c,o)=>i("div",{className:"feature-item bg-muted relative flex w-full flex-col overflow-hidden rounded-xl",children:[i("div",{className:"flex w-full flex-1 flex-col p-5",children:[i("div",{className:"flex-1",children:[c.name?s("h3",{className:"text-lg font-semibold",children:b(c.name)}):null,c.description?s("div",{className:"text-muted-foreground mt-2 text-base",children:b(c.description)}):null]}),c.btnLink?s("div",{className:"mt-4",children:s(x,{btnLink:c.btnLink,btnName:c.btnName,newTab:c.newTab})}):null]}),c.image?s("div",{className:"w-full",style:{aspectRatio:"347/220"},children:s("img",{src:c.image,alt:c.name,className:"h-full w-full object-contain"})}):null]},o))}):null,m?s(p,{isFullInMobile:m==null?void 0:m.isFullInMobile,buttons:m==null?void 0:m.buttons,className:m==null?void 0:m.className,align:"center"}):null]})}function q({dataHeading:l,dataFeatures:e,dataButtons:m,dataBanner:c}){return i("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[s("div",{className:"flex items-center lg:col-span-6",children:i("div",{className:"w-full",children:[l?s(N,{tagline:l.tagline,title:l.title,description:l.description,tagHeading:l.tagHeading,align:"left",colorScheme:l.colorScheme||"pink",sizeHeading:l.sizeHeading,className:k("text-center lg:text-left",l.className)}):null,e?s("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:e.map((o,w)=>i("div",{className:"feature-item relative flex w-full flex-col",children:[o.image?s("div",{className:"h-10 w-10",children:s("img",{src:o.image,alt:o.name,className:"h-full w-full object-contain"})}):null,i("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[i("div",{className:"flex-1",children:[o.name?s("h3",{className:"text-lg font-semibold",children:b(o.name)}):null,o.description?s("div",{className:"text-muted-foreground mt-2 text-base",children:b(o.description)}):null]}),o.btnLink?s("div",{className:"mt-4",children:s(x,{btnLink:o.btnLink,btnName:o.btnName,newTab:o.newTab})}):null]})]},w))}):null,m?s(p,{isFullInMobile:m.isFullInMobile,buttons:m.buttons,className:m.className,align:"left"}):null]})}),c?s("div",{className:"flex items-center lg:col-span-4",children:s("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:s(L,{ratio:c.ratio||1,className:"w-full",children:s("img",{src:c.src,alt:c.alt,loading:"lazy",className:"h-full w-full object-cover"})})})}):null]})}function G({dataHeading:l,dataFeatures:e,dataBanner:m,dataButtons:c}){return i(f,{children:[l?s(N,{tagline:l==null?void 0:l.tagline,title:l==null?void 0:l.title,description:l==null?void 0:l.description,tagHeading:l==null?void 0:l.tagHeading,align:"center",colorScheme:(l==null?void 0:l.colorScheme)||"pink",sizeHeading:l==null?void 0:l.sizeHeading,className:l==null?void 0:l.className}):null,s("div",{className:k("relative flex items-center",m&&"lg:min-h-[590px]"),children:e?i("div",{className:k("list-features grid grid-cols-1 gap-8 md:grid-cols-2",m?"lg:flex lg:flex-row lg:flex-wrap lg:gap-x-0 lg:gap-y-16":"mx-auto max-w-4xl"),children:[e==null?void 0:e.map((o,w)=>i("div",{className:k("feature-item relative w-full",m&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[o.image?s("div",{className:"h-12 w-12",children:s("img",{src:o.image,alt:o.name,className:"h-full w-full object-contain"})}):null,i("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[i("div",{className:"flex-1",children:[o.name?s("h3",{className:"text-lg font-semibold",children:b(o.name)}):null,o.description?s("div",{className:"text-muted-foreground mt-2",children:b(o.description)}):null]}),o.btnLink?s("div",{className:"mt-4",children:s(x,{btnLink:o.btnLink,btnName:o.btnName,newTab:o.newTab})}):null]})]},w)),m?i("div",{className:"absolute left-1/2 top-1/2 mx-auto hidden w-72 -translate-x-1/2 -translate-y-1/2 lg:flex lg:items-end lg:justify-center lg:p-1.5 xl:p-2",style:{aspectRatio:"352/721"},children:[s("div",{className:"mockup-bg pointer-events-none absolute inset-0 h-full w-full select-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),s("div",{className:"bg-muted h-full w-full overflow-hidden",style:{borderRadius:"30px"},children:s("img",{src:m==null?void 0:m.src,alt:m==null?void 0:m.alt,className:"h-full w-full object-contain"})})]}):null]}):null}),c?s(p,{isFullInMobile:c==null?void 0:c.isFullInMobile,buttons:c==null?void 0:c.buttons,className:c==null?void 0:c.className,align:"center"}):null]})}function J({dataHeading:l,dataFeatures:e,dataButtons:m,dataBanner:c}){var n,y,T;const[o,w]=P(0);return i(f,{children:[l?s(N,{tagline:l==null?void 0:l.tagline,title:l==null?void 0:l.title,description:l==null?void 0:l.description,tagHeading:l==null?void 0:l.tagHeading,align:"center",colorScheme:(l==null?void 0:l.colorScheme)||"pink",sizeHeading:l==null?void 0:l.sizeHeading,className:l==null?void 0:l.className}):null,e?i("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:gap-14",children:[s("div",{children:s("div",{className:"list-features w-full md:border-l-2 md:border-border",children:s(j,{onValueChange:v=>{var r;const h=parseInt((r=v[0])!=null?r:"",10);isNaN(h)||w(h)},value:[o.toString()],children:e==null?void 0:e.map((v,h)=>i(R,{value:h.toString(),className:"feature-item border-border group relative flex w-full flex-col border-y-0 border-b last:border-b-0 md:-ml-0.5 md:border-b-0 md:not-last:border-b-0 md:border-l-2 md:pl-5 md:data-open:border-primary",children:[s(C,{className:"py-3 text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:b(v.name||"")}),i(D,{className:"grid grid-cols-1 gap-y-3 md:group-last:mt-3",children:[v.description?s("div",{className:"text-muted-foreground",children:b(v.description||"")}):null,v.btnLink?s("div",{className:"",children:s(x,{btnLink:v.btnLink,btnName:v.btnName,newTab:v.newTab})}):null,v.image&&!(c!=null&&c.src)?s("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:s(L,{ratio:1,className:"w-full",children:s("img",{src:v.image,alt:v.name,className:"h-full w-full object-contain"})})}):null]})]},h))})})}),s("div",{className:k(c!=null&&c.src?"flex":"hidden md:flex"),children:s("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:c!=null&&c.src?s(L,{ratio:(c==null?void 0:c.ratio)||1,className:"w-full",children:s("img",{src:c==null?void 0:c.src,alt:c==null?void 0:c.alt,loading:"lazy",className:"h-full w-full object-cover"})}):s("div",{className:"hidden md:flex",children:(n=e==null?void 0:e[o])!=null&&n.image?s(L,{ratio:1,className:"w-full",children:s("img",{src:(y=e==null?void 0:e[o])==null?void 0:y.image,alt:(T=e==null?void 0:e[o])==null?void 0:T.name,className:"h-full w-full object-contain",loading:"lazy"})}):s("div",{className:"h-0 w-0"})})})})]}):null,m?s(p,{isFullInMobile:m==null?void 0:m.isFullInMobile,buttons:m==null?void 0:m.buttons,className:m==null?void 0:m.className,align:"center"}):null]})}export{V as FeatureTemplateEight,J as FeatureTemplateElevent,X as FeatureTemplateFive,O as FeatureTemplateFour,q as FeatureTemplateNine,F as FeatureTemplateOne,K as FeatureTemplateSeven,$ as FeatureTemplateSix,G as FeatureTemplateTen,W as FeatureTemplateThree,E as FeatureTemplateTwo};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { FeatureSection } from './FeatureSection.mjs';
|
|
2
|
+
export { FeatureSectionProps } from './utils.mjs';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import '../common-blocks/utils.mjs';
|
|
5
|
+
import '../action-button/utils.mjs';
|
|
6
|
+
import 'react';
|
|
7
|
+
import '../../mobase/button.mjs';
|
|
8
|
+
import 'class-variance-authority/types';
|
|
9
|
+
import '@base-ui/react/button';
|
|
10
|
+
import 'class-variance-authority';
|
|
11
|
+
import '../dialog-qr/DialogQr.mjs';
|
|
12
|
+
import '../../mobase/dialog.mjs';
|
|
13
|
+
import '@base-ui/react/dialog';
|
|
14
|
+
import '@base-ui/react/use-render';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../../../chunk-7LRQ2WLZ.mjs";import{FeatureSection as o}from"./FeatureSection";export{o as FeatureSection};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { SectionBlockProps, HeadingBlockProps, ButtonsBlockProps } from '../common-blocks/utils.mjs';
|
|
2
|
+
import '../action-button/utils.mjs';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '../../mobase/button.mjs';
|
|
5
|
+
import 'react/jsx-runtime';
|
|
6
|
+
import 'class-variance-authority/types';
|
|
7
|
+
import '@base-ui/react/button';
|
|
8
|
+
import 'class-variance-authority';
|
|
9
|
+
import '../dialog-qr/DialogQr.mjs';
|
|
10
|
+
import '../../mobase/dialog.mjs';
|
|
11
|
+
import '@base-ui/react/dialog';
|
|
12
|
+
import '@base-ui/react/use-render';
|
|
13
|
+
|
|
14
|
+
interface BannerData {
|
|
15
|
+
/**
|
|
16
|
+
* The image source.
|
|
17
|
+
*/
|
|
18
|
+
src?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The image alt.
|
|
21
|
+
*/
|
|
22
|
+
alt?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The image ratio.
|
|
25
|
+
*/
|
|
26
|
+
ratio?: number;
|
|
27
|
+
}
|
|
28
|
+
interface FeatureData {
|
|
29
|
+
/**
|
|
30
|
+
* Feature name.
|
|
31
|
+
*/
|
|
32
|
+
name?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Feature description.
|
|
35
|
+
*/
|
|
36
|
+
description?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Feature image.
|
|
39
|
+
*/
|
|
40
|
+
image?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Feature button name.
|
|
43
|
+
*/
|
|
44
|
+
btnName?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Feature button link.
|
|
47
|
+
*/
|
|
48
|
+
btnLink?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Feature button use new tab.
|
|
51
|
+
*/
|
|
52
|
+
newTab?: boolean;
|
|
53
|
+
}
|
|
54
|
+
interface FeatureSectionProps extends SectionBlockProps {
|
|
55
|
+
/**
|
|
56
|
+
* The template of the feature section.
|
|
57
|
+
*/
|
|
58
|
+
template?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
|
|
59
|
+
/**
|
|
60
|
+
* The data heading of the feature section.
|
|
61
|
+
*/
|
|
62
|
+
dataHeading?: HeadingBlockProps;
|
|
63
|
+
/**
|
|
64
|
+
* The array data features of the feature section.
|
|
65
|
+
*/
|
|
66
|
+
dataFeatures?: FeatureData[];
|
|
67
|
+
/**
|
|
68
|
+
* The data buttons of the feature section.
|
|
69
|
+
*/
|
|
70
|
+
dataButtons?: ButtonsBlockProps;
|
|
71
|
+
/**
|
|
72
|
+
* The data banner of the feature section.
|
|
73
|
+
*/
|
|
74
|
+
dataBanner?: BannerData;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type { BannerData, FeatureData, FeatureSectionProps };
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { GiftListSectionProps } from './utils.mjs';
|
|
3
|
+
import '../common-blocks/utils.mjs';
|
|
4
|
+
import '../action-button/utils.mjs';
|
|
5
|
+
import 'react';
|
|
6
|
+
import '../../mobase/button.mjs';
|
|
7
|
+
import 'class-variance-authority/types';
|
|
8
|
+
import '@base-ui/react/button';
|
|
9
|
+
import 'class-variance-authority';
|
|
10
|
+
import '../dialog-qr/DialogQr.mjs';
|
|
11
|
+
import '../../mobase/dialog.mjs';
|
|
12
|
+
import '@base-ui/react/dialog';
|
|
13
|
+
import '@base-ui/react/use-render';
|
|
14
|
+
|
|
15
|
+
declare function GiftListSection({ template, className, idSection, background, dataHeading, dataButtons, dataGiftList, }: GiftListSectionProps): react_jsx_runtime.JSX.Element;
|
|
16
|
+
|
|
17
|
+
export { GiftListSection };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../../../chunk-7LRQ2WLZ.mjs";import{jsx as r}from"react/jsx-runtime";import{cn as f}from"../../../lib/utils";import{SectionBlock as p}from"../common-blocks/common-blocks";import{GiftListTemplateOne as n}from"./GiftListSectionTemplate";const m=({template:e,dataHeading:t,dataButtons:i,dataGiftList:o})=>{switch(e){case 1:return r(n,{dataHeading:t,dataButtons:i,dataGiftList:o});default:return r(n,{dataHeading:t,dataButtons:i,dataGiftList:o})}};function S({template:e=1,className:t,idSection:i,background:o,dataHeading:c,dataButtons:s,dataGiftList:a}){return r(p,{idSection:i,className:f(t),background:o,children:m({template:e,dataHeading:c,dataButtons:s,dataGiftList:a})})}export{S as GiftListSection};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { GiftListSectionProps } from './utils.mjs';
|
|
3
|
+
import '../common-blocks/utils.mjs';
|
|
4
|
+
import '../action-button/utils.mjs';
|
|
5
|
+
import 'react';
|
|
6
|
+
import '../../mobase/button.mjs';
|
|
7
|
+
import 'class-variance-authority/types';
|
|
8
|
+
import '@base-ui/react/button';
|
|
9
|
+
import 'class-variance-authority';
|
|
10
|
+
import '../dialog-qr/DialogQr.mjs';
|
|
11
|
+
import '../../mobase/dialog.mjs';
|
|
12
|
+
import '@base-ui/react/dialog';
|
|
13
|
+
import '@base-ui/react/use-render';
|
|
14
|
+
|
|
15
|
+
declare function GiftListTemplateOne({ dataHeading, dataButtons, dataGiftList }: GiftListSectionProps): react_jsx_runtime.JSX.Element;
|
|
16
|
+
|
|
17
|
+
export { GiftListTemplateOne };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import"../../../chunk-7LRQ2WLZ.mjs";import{jsx as t,jsxs as n}from"react/jsx-runtime";import{useState as x}from"react";import o from"html-react-parser";import{cn as u}from"../../../lib/utils";import{Button as f,buttonVariants as v}from"../../mobase/button";import{AspectRatio as b}from"../../mobase/aspect-ratio";import{ButtonsBlock as N,HeadingBlock as g}from"../common-blocks/common-blocks";import{Dialog as w,DialogContent as k,DialogFooter as y,DialogHeader as C,DialogTitle as D}from"../../mobase/dialog";const h="text-xs font-medium md:text-sm h-auto min-h-0 px-0 py-0";function L({gift:e,onOpenModal:s}){var d;const i=!!e.useModal,l=!!((d=e.btnLink)!=null&&d.trim()),m=e.btnName?o(e.btnName||"Xem chi ti\u1EBFt"):void 0,c=a=>{a.stopPropagation(),s(e)};let r=null;return e.btnName&&m&&(l?r=t("a",{href:e.btnLink,target:e.newTab?"_blank":"_self",rel:"noreferrer",className:u(v({variant:"link",size:"sm"}),h),onClick:a=>{a.stopPropagation()},children:m}):r=t(f,{variant:"link",size:"sm",type:"button",className:h,onClick:c,children:m})),t("div",{className:"w-full px-2.5 md:w-1/2 lg:w-1/3","data-slot":"gift-list-card-wrap",children:n("div",{"data-slot":"gift-list-card",className:u("relative h-full rounded-xl border p-2 transition-all duration-300 bg-card",e.isFeatured?"border-primary":"",i&&"cursor-pointer ring-inset hover:border-primary hover:shadow-lg hover:shadow-primary/20 hover:ring-1 hover:ring-primary"),role:i?"button":void 0,tabIndex:i?0:void 0,onClick:()=>{i&&s(e)},children:[e.tag?n("span",{className:"absolute -top-2 right-2 z-10 inline-flex",children:[t("span",{className:"rounded-bl-md rounded-br-md bg-destructive px-2 py-0.5 text-xs font-semibold uppercase shadow-sm text-white",children:o(e.tag)}),t("span",{"aria-hidden":!0,className:"absolute right-full top-0 h-0 w-0 border-r-8 border-t-8 border-r-red-9 border-t-transparent"})]}):null,n("div",{className:"relative z-10 flex h-full flex-row items-stretch gap-3",children:[e.thumbnail?t("div",{className:"w-28 flex-none shrink-0 md:w-32",children:t(b,{ratio:1,className:"w-full",children:t("img",{src:e.thumbnail,alt:e.title||"Gift image",className:"h-full w-full rounded-md object-contain"})})}):null,n("div",{className:"flex min-w-0 flex-1 flex-col",children:[n("div",{className:"flex-1",children:[e.serviceName?t("span",{className:"mb-1.5 mt-1 block text-xs font-medium text-muted-foreground md:mb-2",children:o(e.serviceName)}):null,t("h3",{className:"text-base font-semibold text-foreground md:text-lg",children:o(e.title)}),e.description?t("p",{className:"line-clamp-2 text-sm text-muted-foreground",children:o(e.description)}):null]}),t("div",{className:"mt-auto flex flex-none justify-end pt-1 md:pt-2",children:r})]})]})]})})}function T({dataHeading:e,dataButtons:s,dataGiftList:i}){const[l,m]=x(null),[c,r]=x(!1),d=a=>{m(a),r(!0)};return n("div",{"data-slot":"gift-list-template-one",children:[e?t(g,{align:e.align||"center",tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}):null,i&&i.length>0?t("div",{className:"-mx-2.5 mt-8 flex flex-wrap justify-center gap-y-5 md:mt-10",children:i.map((a,p)=>t(L,{gift:a,onOpenModal:d},a.title?`${a.title}-${p}`:`gift-${p}`))}):null,s?t(N,{isFullInMobile:s.isFullInMobile,buttons:s.buttons,className:s.className,align:s.align||"center"}):null,t(w,{open:c,onOpenChange:a=>{r(a),a||m(null)},children:n(k,{className:u("top-auto bottom-0 max-h-[min(85dvh,calc(100%-2rem))] w-full max-w-full -translate-x-1/2 translate-y-0 rounded-t-2xl rounded-b-none sm:top-1/2 sm:bottom-auto sm:max-h-[min(90vh,calc(100%-4rem))] sm:max-w-2xl sm:-translate-y-1/2 sm:rounded-4xl"),children:[t(C,{children:t(D,{className:"text-center",children:"Th\xF4ng tin chi ti\u1EBFt th\u1EBB qu\xE0"})}),n("div",{className:"max-h-[50dvh] overflow-y-auto sm:max-h-[min(60vh,32rem)]",children:[n("div",{className:"text-center",children:[l!=null&&l.serviceName?t("span",{className:"mb-1 block text-xs font-medium text-muted-foreground",children:o(l.serviceName)}):null,l!=null&&l.title?t("h3",{className:"text-xl font-bold md:text-2xl",children:o(l.title)}):null,l!=null&&l.description?t("p",{className:"mt-1 text-sm text-foreground",children:o(l.description||"")}):null]}),l!=null&&l.content?t("div",{className:"mt-6 prose prose-sm text-mute-foreground!",children:o(l.content)}):null]}),t(y,{children:t(f,{variant:"default",size:"default",type:"button",onClick:()=>{r(!1)},children:"\u0110\xF3ng"})})]})})]})}export{T as GiftListTemplateOne};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { GiftListSection } from './GiftListSection.mjs';
|
|
2
|
+
export { GiftListItemData, GiftListSectionProps } from './utils.mjs';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import '../common-blocks/utils.mjs';
|
|
5
|
+
import '../action-button/utils.mjs';
|
|
6
|
+
import 'react';
|
|
7
|
+
import '../../mobase/button.mjs';
|
|
8
|
+
import 'class-variance-authority/types';
|
|
9
|
+
import '@base-ui/react/button';
|
|
10
|
+
import 'class-variance-authority';
|
|
11
|
+
import '../dialog-qr/DialogQr.mjs';
|
|
12
|
+
import '../../mobase/dialog.mjs';
|
|
13
|
+
import '@base-ui/react/dialog';
|
|
14
|
+
import '@base-ui/react/use-render';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../../../chunk-7LRQ2WLZ.mjs";import{GiftListSection as o}from"./GiftListSection";export{o as GiftListSection};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { SectionBlockProps, HeadingBlockProps, ButtonsBlockProps } from '../common-blocks/utils.mjs';
|
|
2
|
+
import '../action-button/utils.mjs';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '../../mobase/button.mjs';
|
|
5
|
+
import 'react/jsx-runtime';
|
|
6
|
+
import 'class-variance-authority/types';
|
|
7
|
+
import '@base-ui/react/button';
|
|
8
|
+
import 'class-variance-authority';
|
|
9
|
+
import '../dialog-qr/DialogQr.mjs';
|
|
10
|
+
import '../../mobase/dialog.mjs';
|
|
11
|
+
import '@base-ui/react/dialog';
|
|
12
|
+
import '@base-ui/react/use-render';
|
|
13
|
+
|
|
14
|
+
interface GiftListItemData {
|
|
15
|
+
/**
|
|
16
|
+
* Service name of gift card.
|
|
17
|
+
*/
|
|
18
|
+
serviceName?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Gift card title.
|
|
21
|
+
*/
|
|
22
|
+
title: string;
|
|
23
|
+
/**
|
|
24
|
+
* Short description of gift card.
|
|
25
|
+
*/
|
|
26
|
+
description?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Gift thumbnail url (square image).
|
|
29
|
+
*/
|
|
30
|
+
thumbnail?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Gift tag content.
|
|
33
|
+
*/
|
|
34
|
+
tag?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Mark card as featured item.
|
|
37
|
+
*/
|
|
38
|
+
isFeatured?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Gift action button text.
|
|
41
|
+
*/
|
|
42
|
+
btnName?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Gift action button url. When set (non-empty), the CTA uses a link with this target.
|
|
45
|
+
* When empty or omitted but `btnName` is set, the CTA opens the detail modal instead.
|
|
46
|
+
*/
|
|
47
|
+
btnLink?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Open action button in new tab.
|
|
50
|
+
*/
|
|
51
|
+
newTab?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* When true, clicking the card (outside the CTA) opens the detail modal. Does not affect CTA:
|
|
54
|
+
* CTA follows `btnLink` (navigate) vs no `btnLink` (open modal).
|
|
55
|
+
*/
|
|
56
|
+
useModal?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Short description displayed in modal.
|
|
59
|
+
*/
|
|
60
|
+
content?: string;
|
|
61
|
+
}
|
|
62
|
+
interface GiftListSectionProps extends SectionBlockProps {
|
|
63
|
+
/**
|
|
64
|
+
* The template of the section.
|
|
65
|
+
*/
|
|
66
|
+
template?: 1;
|
|
67
|
+
/**
|
|
68
|
+
* The data heading of the section.
|
|
69
|
+
*/
|
|
70
|
+
dataHeading?: HeadingBlockProps;
|
|
71
|
+
/**
|
|
72
|
+
* The data buttons of the section.
|
|
73
|
+
*/
|
|
74
|
+
dataButtons?: ButtonsBlockProps;
|
|
75
|
+
/**
|
|
76
|
+
* The array data gift list of the section.
|
|
77
|
+
*/
|
|
78
|
+
dataGiftList?: GiftListItemData[];
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type { GiftListItemData, GiftListSectionProps };
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { HeroContentProps } from './utils.mjs';
|
|
3
|
+
import '../common-blocks/utils.mjs';
|
|
4
|
+
import '../action-button/utils.mjs';
|
|
5
|
+
import 'react';
|
|
6
|
+
import '../../mobase/button.mjs';
|
|
7
|
+
import 'class-variance-authority/types';
|
|
8
|
+
import '@base-ui/react/button';
|
|
9
|
+
import 'class-variance-authority';
|
|
10
|
+
import '../dialog-qr/DialogQr.mjs';
|
|
11
|
+
import '../../mobase/dialog.mjs';
|
|
12
|
+
import '@base-ui/react/dialog';
|
|
13
|
+
import '@base-ui/react/use-render';
|
|
14
|
+
|
|
15
|
+
declare const HERO_SECTION_DEFAULT_BACKGROUND: string;
|
|
16
|
+
declare function HeroSection({ template, idSection, dataHeading, dataButtons, dataFeatures, dataStats, dataMedia, className, background, advancedComponent, }: HeroContentProps): react_jsx_runtime.JSX.Element;
|
|
17
|
+
|
|
18
|
+
export { HERO_SECTION_DEFAULT_BACKGROUND, HeroSection };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../../../chunk-7LRQ2WLZ.mjs";import{Fragment as T,jsx as d}from"react/jsx-runtime";import{cn as l}from"../../../lib/utils";import{SectionBlock as g}from"../common-blocks/common-blocks";import{HeroContentTemplateOne as p,HeroContentTemplateThree as u,HeroContentTemplateTwo as C}from"./HeroSectionTemplate";const H=["linear-gradient(38deg, transparent 78%, color-mix(in srgb, var(--background) 70%, white) 100%)","linear-gradient(45deg, var(--background) 10%, transparent 22%)","linear-gradient(0deg, var(--background) 0%, transparent 91%)","linear-gradient(214deg, transparent 0%, color-mix(in srgb, var(--primary) 18%, transparent) 25%, transparent 71%)","linear-gradient(212deg, transparent 51%, color-mix(in srgb, var(--primary) 32%, transparent) 64%, transparent 80%)","var(--background)"].join(", "),S=({template:t,dataHeading:e,dataButtons:a,dataFeatures:n,dataStats:r,dataMedia:o,advancedComponent:i})=>{switch(t){case 1:return d(p,{dataHeading:e,dataButtons:a,dataFeatures:n,dataStats:r,template:t,dataMedia:o,advancedComponent:i});case 2:return d(C,{dataHeading:e,dataButtons:a,dataFeatures:n,dataStats:r,template:t,dataMedia:o,advancedComponent:i});case 3:return d(u,{dataHeading:e,dataButtons:a,dataFeatures:n,dataStats:r,template:t,dataMedia:o,advancedComponent:i});default:return d(p,{dataHeading:e,dataButtons:a,dataFeatures:n,dataStats:r,template:t,dataMedia:o,advancedComponent:i})}};function v({template:t,dataHeading:e,dataButtons:a,dataFeatures:n,dataStats:r,dataMedia:o,advancedComponent:i}){return d(T,{children:S({template:t,dataHeading:e,dataButtons:a,dataFeatures:n,dataStats:r,dataMedia:o,advancedComponent:i})})}function b({template:t=1,idSection:e,dataHeading:a,dataButtons:n,dataFeatures:r,dataStats:o,dataMedia:i,className:c,background:s,advancedComponent:m=null}){return d(g,{className:l(c),background:s!=null?s:H,idSection:e,children:d(v,{dataButtons:n,template:t,dataHeading:a,dataFeatures:r,dataStats:o,dataMedia:i,advancedComponent:m})})}export{H as HERO_SECTION_DEFAULT_BACKGROUND,b as HeroSection};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { HeroContentProps, HeroContentListFeatureProps, HeroContentListStats } from './utils.mjs';
|
|
3
|
+
import '../common-blocks/utils.mjs';
|
|
4
|
+
import '../action-button/utils.mjs';
|
|
5
|
+
import 'react';
|
|
6
|
+
import '../../mobase/button.mjs';
|
|
7
|
+
import 'class-variance-authority/types';
|
|
8
|
+
import '@base-ui/react/button';
|
|
9
|
+
import 'class-variance-authority';
|
|
10
|
+
import '../dialog-qr/DialogQr.mjs';
|
|
11
|
+
import '../../mobase/dialog.mjs';
|
|
12
|
+
import '@base-ui/react/dialog';
|
|
13
|
+
import '@base-ui/react/use-render';
|
|
14
|
+
|
|
15
|
+
declare function SectionHeroItemFeature({ template, name, image, isFeatures, }: {
|
|
16
|
+
template?: HeroContentProps["template"];
|
|
17
|
+
name?: HeroContentListFeatureProps["name"];
|
|
18
|
+
image?: HeroContentListFeatureProps["image"];
|
|
19
|
+
idx: number;
|
|
20
|
+
value?: HeroContentListStats["value"];
|
|
21
|
+
suffix?: HeroContentListStats["suffix"];
|
|
22
|
+
unit?: HeroContentListStats["unit"];
|
|
23
|
+
description?: HeroContentListStats["description"];
|
|
24
|
+
isFeatures?: boolean;
|
|
25
|
+
}): react_jsx_runtime.JSX.Element;
|
|
26
|
+
declare function SectionHeroListFeature({ dataFeatures, template, }: {
|
|
27
|
+
dataFeatures: HeroContentProps["dataFeatures"];
|
|
28
|
+
template: HeroContentProps["template"];
|
|
29
|
+
}): react_jsx_runtime.JSX.Element;
|
|
30
|
+
|
|
31
|
+
export { SectionHeroItemFeature, SectionHeroListFeature };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../../../chunk-7LRQ2WLZ.mjs";import{Fragment as c,jsx as e,jsxs as a}from"react/jsx-runtime";import{cva as p}from"class-variance-authority";import l from"html-react-parser";import{CheckIcon as o}from"lucide-react";import{cn as m}from"../../../lib/utils";const u=p("mt-6 list-inside text-foreground",{variants:{template:{1:"grid grid-cols-1 gap-y-3 ",2:"grid grid-cols-1 gap-y-3 ",3:"mx-auto mt-0 mt-8 grid max-w-5xl grid-cols-1 items-center gap-4 text-left text-sm font-semibold md:mt-12 md:grid-cols-4 md:gap-12"}},defaultVariants:{template:1}});function f({template:t,name:r,image:s,isFeatures:i}){return e(c,{children:(()=>{switch(t){case 1:case 2:return a("li",{className:m("flex space-x-4",!i&&"hidden"),children:[s?e("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:e("img",{src:s,alt:"",className:"max-w-full"})}):e("div",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-primary/15",children:e(o,{className:"h-4 w-4 text-primary"})}),r?e("div",{className:"ml-2 ",children:l(r)}):null]});case 3:return a("li",{className:"flex h-full space-x-4",children:[s?e("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:e("img",{src:s,alt:"",className:"max-w-full"})}):e("div",{className:"flex h-5 w-5 flex-none items-center justify-center rounded-full bg-primary/15 p-1",children:e(o,{className:"h-4 w-4 text-primary"})}),r?e("div",{className:"my-auto ml-2 md:my-0",children:l(r)}):null]});default:return null}})()})}function y({dataFeatures:t,template:r=1}){var s;return e(c,{children:((s=t==null?void 0:t.length)!=null?s:0)>0&&e("ul",{className:m("",u({template:r})),children:t==null?void 0:t.map((i,n)=>e(f,{name:i.name,template:r,image:i.image,idx:n,isFeatures:!0},n))})})}export{f as SectionHeroItemFeature,y as SectionHeroListFeature};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { HeroContentMediaProps } from './utils.mjs';
|
|
3
|
+
import '../common-blocks/utils.mjs';
|
|
4
|
+
import '../action-button/utils.mjs';
|
|
5
|
+
import 'react';
|
|
6
|
+
import '../../mobase/button.mjs';
|
|
7
|
+
import 'class-variance-authority/types';
|
|
8
|
+
import '@base-ui/react/button';
|
|
9
|
+
import 'class-variance-authority';
|
|
10
|
+
import '../dialog-qr/DialogQr.mjs';
|
|
11
|
+
import '../../mobase/dialog.mjs';
|
|
12
|
+
import '@base-ui/react/dialog';
|
|
13
|
+
import '@base-ui/react/use-render';
|
|
14
|
+
|
|
15
|
+
declare function SectionHeroMedia({ type, src, ratio, className, classNameMedia, youtubeId, onClickFC, alt, }: HeroContentMediaProps): react_jsx_runtime.JSX.Element;
|
|
16
|
+
|
|
17
|
+
export { SectionHeroMedia };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import"../../../chunk-7LRQ2WLZ.mjs";import{Fragment as y,jsx as e,jsxs as i}from"react/jsx-runtime";import{Play as u}from"lucide-react";import{cn as c}from"../../../lib/utils";import{CloseButton as g}from"../../mobase/close-button";import{AspectRatio as m}from"../../mobase/aspect-ratio";import{Dialog as f,DialogClose as w,DialogContent as h,DialogTrigger as v}from"../../mobase/dialog";import{convertMediaRatio as p}from"../../../lib/media-ratio";function b({src:l,ratio:a,className:t,classNameMedia:n,youtubeId:r,onClickFC:o,alt:d=""}){const s=p(a);return i(y,{children:[e("div",{className:c("hidden md:block",t),children:i(m,{ratio:s,className:"group relative overflow-hidden rounded-lg",children:[e("img",{src:l,alt:d,className:c("h-full w-full object-cover",n,l?"":"bg-muted")}),r?i(f,{children:[i(v,{"data-slot":"hero-media-play-trigger",className:"absolute inset-0 z-10 hidden cursor-pointer items-center justify-center transition-transform group-hover:scale-105 md:flex",onClick:()=>{o==null||o()},children:[e("span",{className:"sr-only",children:"Play video"}),e("span",{className:"flex size-14 items-center justify-center rounded-full bg-foreground/35 text-primary-foreground shadow-md ring-2 ring-primary-foreground/80 backdrop-blur-xs transition-colors group-hover:bg-foreground/45",children:e(u,{className:"size-7 translate-x-0.5 fill-current","aria-hidden":!0})})]}),e(h,{showCloseButton:!1,"data-slot":"hero-media-youtube-dialog",className:"max-w-4xl border-0 bg-transparent p-4 shadow-none sm:max-w-5xl",children:i("div",{className:"relative",children:[e("div",{className:"aspect-video w-full overflow-hidden rounded-lg",children:e("iframe",{title:r,src:`https://www.youtube.com/embed/${r}?autoplay=1`,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full border-0"})}),e(w,{render:e(g,{size:"sm",className:"absolute -top-2 -right-2 z-10 sm:-right-3","aria-label":"Close video"})})]})})]}):null]})}),r?e("div",{className:"relative aspect-video w-full overflow-hidden rounded-lg md:hidden",children:e("iframe",{title:r,src:`https://www.youtube.com/embed/${r}?controls=1`,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full border-0 object-cover"})}):null]})}function M({type:l=1,src:a,ratio:t,className:n,classNameMedia:r,youtubeId:o,onClickFC:d,alt:s=""}){return e("div",{className:n,"data-slot":"hero-section-media","data-media-type":l,children:o?e(b,{src:a,ratio:t,youtubeId:o,onClickFC:d,alt:s,classNameMedia:r}):e(m,{ratio:p(t),className:"overflow-hidden rounded-lg",children:e("img",{src:a,alt:s,className:c("h-full w-full object-cover",r,a?"":"bg-muted")})})})}export{M as SectionHeroMedia};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { HeroContentProps } from './utils.mjs';
|
|
3
|
+
import '../common-blocks/utils.mjs';
|
|
4
|
+
import '../action-button/utils.mjs';
|
|
5
|
+
import 'react';
|
|
6
|
+
import '../../mobase/button.mjs';
|
|
7
|
+
import 'class-variance-authority/types';
|
|
8
|
+
import '@base-ui/react/button';
|
|
9
|
+
import 'class-variance-authority';
|
|
10
|
+
import '../dialog-qr/DialogQr.mjs';
|
|
11
|
+
import '../../mobase/dialog.mjs';
|
|
12
|
+
import '@base-ui/react/dialog';
|
|
13
|
+
import '@base-ui/react/use-render';
|
|
14
|
+
|
|
15
|
+
declare function SectionHeroStats({ dataStats }: {
|
|
16
|
+
dataStats: HeroContentProps["dataStats"];
|
|
17
|
+
}): react_jsx_runtime.JSX.Element;
|
|
18
|
+
|
|
19
|
+
export { SectionHeroStats };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../../../chunk-7LRQ2WLZ.mjs";import{Fragment as c,jsx as r,jsxs as l}from"react/jsx-runtime";import p from"html-react-parser";import{cn as m}from"../../../lib/utils";function u({value:e,suffix:n,unit:o,description:i}){return l("div",{className:m(""),children:[e?l("div",{className:"line-clamp-2 font-bold text-primary",children:[e,n||o?l("span",{children:[n," ",o]}):null]}):null,i?r("div",{className:"mt-1 text-sm leading-tight text-muted-foreground",children:p(i)}):null]})}function g({dataStats:e}){var n;return r(c,{children:((n=e==null?void 0:e.length)!=null?n:0)>0&&r("ul",{className:m("mt-8 grid w-full auto-cols-[minmax(0,150px)] grid-flow-col gap-3 md:mt-10"),children:e==null?void 0:e.map((o,i)=>r(u,{value:o==null?void 0:o.value,suffix:o==null?void 0:o.suffix,unit:o==null?void 0:o.unit,description:o==null?void 0:o.description},i))})})}export{g as SectionHeroStats};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { HeroContentProps } from './utils.mjs';
|
|
3
|
+
import '../common-blocks/utils.mjs';
|
|
4
|
+
import '../action-button/utils.mjs';
|
|
5
|
+
import 'react';
|
|
6
|
+
import '../../mobase/button.mjs';
|
|
7
|
+
import 'class-variance-authority/types';
|
|
8
|
+
import '@base-ui/react/button';
|
|
9
|
+
import 'class-variance-authority';
|
|
10
|
+
import '../dialog-qr/DialogQr.mjs';
|
|
11
|
+
import '../../mobase/dialog.mjs';
|
|
12
|
+
import '@base-ui/react/dialog';
|
|
13
|
+
import '@base-ui/react/use-render';
|
|
14
|
+
|
|
15
|
+
declare function HeroContentTemplateOne({ dataHeading, dataButtons, dataFeatures, template, dataStats, dataMedia, advancedComponent, }: HeroContentProps): react_jsx_runtime.JSX.Element;
|
|
16
|
+
declare function HeroContentTemplateTwo({ dataHeading, dataButtons, dataFeatures, template, dataStats, dataMedia, advancedComponent, }: HeroContentProps): react_jsx_runtime.JSX.Element;
|
|
17
|
+
declare function HeroContentTemplateThree({ dataHeading, dataButtons, dataFeatures, template, dataStats, dataMedia, advancedComponent, }: HeroContentProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
|
|
19
|
+
export { HeroContentTemplateOne, HeroContentTemplateThree, HeroContentTemplateTwo };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../../../chunk-7LRQ2WLZ.mjs";import{Fragment as I,jsx as s,jsxs as f}from"react/jsx-runtime";import{cn as b}from"../../../lib/utils";import{ButtonsBlock as e,HeadingBlock as y}from"../common-blocks/common-blocks";import{SectionHeroListFeature as N}from"./HeroSectionFeatures";import{SectionHeroMedia as v}from"./HeroSectionMedia";import{SectionHeroStats as S}from"./HeroSectionStats";function w({dataHeading:l,dataButtons:r,dataFeatures:m,template:u,dataStats:p,dataMedia:o,advancedComponent:c}){return f("div",{className:b("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[f("div",{className:"col-span-1 ",children:[s(y,{tagline:l==null?void 0:l.tagline,title:l==null?void 0:l.title,description:l==null?void 0:l.description,tagHeading:(l==null?void 0:l.tagHeading)||"h1",align:"left",sizeHeading:l==null?void 0:l.sizeHeading,colorScheme:(l==null?void 0:l.colorScheme)||"black",className:b("mb-0 md:mb-0",l==null?void 0:l.className)}),s(N,{dataFeatures:m,template:u}),r?s(e,{align:"left",isFullInMobile:r.isFullInMobile,buttons:r.buttons}):null,s(S,{dataStats:p})]}),s("div",{className:"col-span-1 md:pl-10",children:c||s(v,{type:(o==null?void 0:o.type)||1,src:(o==null?void 0:o.src)||"",ratio:o==null?void 0:o.ratio,youtubeId:o==null?void 0:o.youtubeId})})]})}function T({dataHeading:l,dataButtons:r,dataFeatures:m,template:u,dataStats:p,dataMedia:o,advancedComponent:c}){return f("div",{className:b("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[s("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:c||s(v,{type:(o==null?void 0:o.type)||1,src:(o==null?void 0:o.src)||"",ratio:o==null?void 0:o.ratio,youtubeId:o==null?void 0:o.youtubeId})}),f("div",{className:"order-1 col-span-1 md:order-2",children:[s(y,{tagline:l==null?void 0:l.tagline,title:l==null?void 0:l.title,description:l==null?void 0:l.description,tagHeading:(l==null?void 0:l.tagHeading)||"h1",align:"left",sizeHeading:l==null?void 0:l.sizeHeading,colorScheme:(l==null?void 0:l.colorScheme)||"black",className:b("mb-0 md:mb-0",l==null?void 0:l.className)}),s(N,{dataFeatures:m,template:u}),r?s("div",{className:"flex w-full items-center justify-center md:justify-start",children:s(e,{align:"left",isFullInMobile:r.isFullInMobile,buttons:r.buttons})}):null,s(S,{dataStats:p})]})]})}function C({dataHeading:l,dataButtons:r,dataFeatures:m,template:u,dataStats:p,dataMedia:o,advancedComponent:c}){return f(I,{children:[s(y,{tagline:l==null?void 0:l.tagline,title:l==null?void 0:l.title,description:l==null?void 0:l.description,tagHeading:(l==null?void 0:l.tagHeading)||"h1",align:"center",sizeHeading:l==null?void 0:l.sizeHeading,colorScheme:(l==null?void 0:l.colorScheme)||"black",className:b("mb-0 md:mb-0",l==null?void 0:l.className)}),r?s(e,{align:"center",isFullInMobile:r.isFullInMobile,buttons:r.buttons,className:"inline-flex w-full items-center justify-center text-center text-base font-semibold md:w-full"}):null,s(N,{dataFeatures:m,template:u}),s("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:s(S,{dataStats:p})}),c||s(I,{children:o!=null&&o.src?s(v,{type:o.type||1,src:o.src||"",ratio:o.ratio,youtubeId:o.youtubeId,className:"mt-8 md:mt-12",classNameMedia:"rounded-lg"}):null})]})}export{w as HeroContentTemplateOne,C as HeroContentTemplateThree,T as HeroContentTemplateTwo};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { HeroSection } from './HeroSection.mjs';
|
|
2
|
+
export { HeroContentProps } from './utils.mjs';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import '../common-blocks/utils.mjs';
|
|
5
|
+
import '../action-button/utils.mjs';
|
|
6
|
+
import 'react';
|
|
7
|
+
import '../../mobase/button.mjs';
|
|
8
|
+
import 'class-variance-authority/types';
|
|
9
|
+
import '@base-ui/react/button';
|
|
10
|
+
import 'class-variance-authority';
|
|
11
|
+
import '../dialog-qr/DialogQr.mjs';
|
|
12
|
+
import '../../mobase/dialog.mjs';
|
|
13
|
+
import '@base-ui/react/dialog';
|
|
14
|
+
import '@base-ui/react/use-render';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../../../chunk-7LRQ2WLZ.mjs";import{HeroSection as r}from"./HeroSection";export{r as HeroSection};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { SectionBlockProps, HeadingBlockProps, ButtonsBlockProps } from '../common-blocks/utils.mjs';
|
|
2
|
+
import '../action-button/utils.mjs';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '../../mobase/button.mjs';
|
|
5
|
+
import 'react/jsx-runtime';
|
|
6
|
+
import 'class-variance-authority/types';
|
|
7
|
+
import '@base-ui/react/button';
|
|
8
|
+
import 'class-variance-authority';
|
|
9
|
+
import '../dialog-qr/DialogQr.mjs';
|
|
10
|
+
import '../../mobase/dialog.mjs';
|
|
11
|
+
import '@base-ui/react/dialog';
|
|
12
|
+
import '@base-ui/react/use-render';
|
|
13
|
+
|
|
14
|
+
declare const TYPE_MEDIA_IMAGE = 1;
|
|
15
|
+
declare const TYPE_MEDIA_VIDEO = 2;
|
|
16
|
+
interface HeroContentProps extends SectionBlockProps {
|
|
17
|
+
/**
|
|
18
|
+
* The template of the hero section.
|
|
19
|
+
*/
|
|
20
|
+
template?: 1 | 2 | 3;
|
|
21
|
+
/**
|
|
22
|
+
* The data heading of the hero section.
|
|
23
|
+
*/
|
|
24
|
+
dataHeading?: HeadingBlockProps;
|
|
25
|
+
/**
|
|
26
|
+
* The array data features of the hero section.
|
|
27
|
+
*/
|
|
28
|
+
dataFeatures?: HeroContentListFeatureProps[];
|
|
29
|
+
/**
|
|
30
|
+
* The data buttons of the hero section.
|
|
31
|
+
*/
|
|
32
|
+
dataButtons?: ButtonsBlockProps;
|
|
33
|
+
/**
|
|
34
|
+
* The data stats of the hero section.
|
|
35
|
+
*/
|
|
36
|
+
dataStats?: HeroContentListStats[];
|
|
37
|
+
/**
|
|
38
|
+
* The data media of the hero section.
|
|
39
|
+
*/
|
|
40
|
+
dataMedia?: HeroContentMediaProps;
|
|
41
|
+
advancedComponent?: React.ReactNode;
|
|
42
|
+
}
|
|
43
|
+
interface HeroContentTitleProps {
|
|
44
|
+
title?: string;
|
|
45
|
+
className?: string;
|
|
46
|
+
}
|
|
47
|
+
interface HeroContentDescriptionProps {
|
|
48
|
+
description?: string;
|
|
49
|
+
className?: string;
|
|
50
|
+
}
|
|
51
|
+
interface HeroContentListFeatureProps {
|
|
52
|
+
name?: string;
|
|
53
|
+
image?: string;
|
|
54
|
+
}
|
|
55
|
+
interface HeroContentListStats {
|
|
56
|
+
/**
|
|
57
|
+
* Value of the stats.
|
|
58
|
+
*/
|
|
59
|
+
value?: number;
|
|
60
|
+
/**
|
|
61
|
+
* Suffix of the stats.
|
|
62
|
+
*/
|
|
63
|
+
suffix?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Unit of the stats.
|
|
66
|
+
*/
|
|
67
|
+
unit?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Description of the stats.
|
|
70
|
+
*/
|
|
71
|
+
description?: string;
|
|
72
|
+
}
|
|
73
|
+
interface HeroContentMediaProps {
|
|
74
|
+
src: string;
|
|
75
|
+
ratio?: string | number;
|
|
76
|
+
onClickFC?: () => void;
|
|
77
|
+
className?: string;
|
|
78
|
+
classNameMedia?: string;
|
|
79
|
+
youtubeId?: string;
|
|
80
|
+
type?: number | null;
|
|
81
|
+
alt?: string;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export { type HeroContentDescriptionProps, type HeroContentListFeatureProps, type HeroContentListStats, type HeroContentMediaProps, type HeroContentProps, type HeroContentTitleProps, TYPE_MEDIA_IMAGE, TYPE_MEDIA_VIDEO };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../../../chunk-7LRQ2WLZ.mjs";const t=1,e=2;export{t as TYPE_MEDIA_IMAGE,e as TYPE_MEDIA_VIDEO};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { HowItWorksSectionProps } from './utils.mjs';
|
|
3
|
+
import '../common-blocks/utils.mjs';
|
|
4
|
+
import '../action-button/utils.mjs';
|
|
5
|
+
import 'react';
|
|
6
|
+
import '../../mobase/button.mjs';
|
|
7
|
+
import 'class-variance-authority/types';
|
|
8
|
+
import '@base-ui/react/button';
|
|
9
|
+
import 'class-variance-authority';
|
|
10
|
+
import '../dialog-qr/DialogQr.mjs';
|
|
11
|
+
import '../../mobase/dialog.mjs';
|
|
12
|
+
import '@base-ui/react/dialog';
|
|
13
|
+
import '@base-ui/react/use-render';
|
|
14
|
+
|
|
15
|
+
declare function HowItWorksSection({ template, background, className, idSection, dataHeading, dataHowItWorks, dataButtons, }: HowItWorksSectionProps): react_jsx_runtime.JSX.Element;
|
|
16
|
+
|
|
17
|
+
export { HowItWorksSection };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../../../chunk-7LRQ2WLZ.mjs";import{jsx as r}from"react/jsx-runtime";import{SectionBlock as c}from"../common-blocks/common-blocks";import{HowItWorksTemplateOne as k,HowItWorksTemplateThree as p,HowItWorksTemplateTwo as w}from"./HowItWorksSectionTemplate";function H({template:a,dataHeading:o,dataHowItWorks:t,dataButtons:e}){switch(a){case 2:return r(w,{dataHeading:o,dataHowItWorks:t,dataButtons:e});case 3:return r(p,{dataHeading:o,dataHowItWorks:t,dataButtons:e});default:return r(k,{dataHeading:o,dataHowItWorks:t,dataButtons:e})}}function d({template:a=1,background:o,className:t,idSection:e,dataHeading:n,dataHowItWorks:s,dataButtons:i}){return r(c,{className:t,idSection:e,background:o,children:r(H,{template:a,dataHeading:n,dataHowItWorks:s,dataButtons:i})})}export{d as HowItWorksSection};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { HowItWorksSectionProps } from './utils.mjs';
|
|
3
|
+
import '../common-blocks/utils.mjs';
|
|
4
|
+
import '../action-button/utils.mjs';
|
|
5
|
+
import 'react';
|
|
6
|
+
import '../../mobase/button.mjs';
|
|
7
|
+
import 'class-variance-authority/types';
|
|
8
|
+
import '@base-ui/react/button';
|
|
9
|
+
import 'class-variance-authority';
|
|
10
|
+
import '../dialog-qr/DialogQr.mjs';
|
|
11
|
+
import '../../mobase/dialog.mjs';
|
|
12
|
+
import '@base-ui/react/dialog';
|
|
13
|
+
import '@base-ui/react/use-render';
|
|
14
|
+
|
|
15
|
+
declare function HowItWorksTemplateOne({ dataHeading, dataHowItWorks, dataButtons, }: HowItWorksSectionProps): react_jsx_runtime.JSX.Element;
|
|
16
|
+
declare function HowItWorksTemplateTwo({ dataHeading, dataHowItWorks, dataButtons, }: HowItWorksSectionProps): react_jsx_runtime.JSX.Element;
|
|
17
|
+
declare function HowItWorksTemplateThree({ dataHeading, dataHowItWorks, dataButtons, }: HowItWorksSectionProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
|
|
19
|
+
export { HowItWorksTemplateOne, HowItWorksTemplateThree, HowItWorksTemplateTwo };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../../../chunk-7LRQ2WLZ.mjs";import{jsx as l,jsxs as s}from"react/jsx-runtime";import m from"html-react-parser";import{cn as n}from"../../../lib/utils";import{AspectRatio as f}from"../../mobase/aspect-ratio";import{ButtonsBlock as c,HeadingBlock as a}from"../common-blocks/common-blocks";function u(e){return/^https?:\/\//.test(e)}function v({dataHeading:e,dataHowItWorks:r,dataButtons:i}){return s("div",{"data-slot":"how-it-works-template-1",children:[e?l(a,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}):null,r&&r.length>0?l("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:r.map((t,o)=>l("div",{className:n("basis-full px-3.5 md:basis-1/3",r.length===4&&"md:basis-1/2 lg:basis-1/4"),children:s("div",{className:"h-full rounded-lg border border-border bg-card px-6 py-8 text-center shadow-lg md:px-4 lg:px-6",children:[l("div",{className:"mx-auto flex h-9 w-9 items-center justify-center rounded-full bg-primary text-xl font-bold text-primary-foreground",children:o+1}),s("div",{className:"mt-6 w-full",children:[l("div",{className:"w-full text-xl font-semibold",children:m(t.title)}),t.description?l("div",{className:"mt-2 text-base text-muted-foreground",children:m(t.description)}):null]})]})},o))}):null,i?l(c,{isFullInMobile:i.isFullInMobile,buttons:i.buttons,className:i.className,align:"center"}):null]})}function x({dataHeading:e,dataHowItWorks:r,dataButtons:i}){return s("div",{"data-slot":"how-it-works-template-2",children:[e?l(a,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}):null,r&&r.length>0?l("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:r.map((t,o)=>s("div",{className:n("basis-full px-3.5 text-center md:basis-1/3",r.length===4&&"md:basis-1/2 lg:basis-1/4"),children:[s("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[l("div",{className:"absolute -left-4 -top-4 z-10 flex h-12 w-12 items-center justify-center rounded-full border-4 border-background bg-primary text-lg font-bold text-primary-foreground",children:o+1}),t.image?l("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-muted",children:l(f,{ratio:1,children:l("img",{src:t.image,alt:t.title,className:"h-full w-full object-cover"})})}):null]}),s("div",{className:"mt-6 w-full",children:[l("div",{className:"w-full text-xl font-semibold",children:m(t.title)}),t.description?l("div",{className:"mt-2 text-base text-muted-foreground",children:m(t.description)}):null]})]},o))}):null,i?l(c,{isFullInMobile:i.isFullInMobile,buttons:i.buttons,className:i.className,align:"center"}):null]})}function N({dataHeading:e,dataHowItWorks:r,dataButtons:i}){return s("div",{"data-slot":"how-it-works-template-3",children:[e?l(a,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}):null,r&&r.length>0?l("div",{className:"flex flex-col justify-center gap-y-14 md:flex-row md:gap-x-4",children:r.map((t,o)=>s("div",{className:n("relative basis-full text-center","before:contents-['*'] before:absolute before:bg-border first:before:hidden","after:contents-['*'] after:absolute after:bg-border last:after:hidden","before:-top-10 before:start-1/2 before:h-6 before:w-[1px]","md:before:inset-auto md:before:-start-3.5 md:before:top-8 md:before:h-[1px] md:before:w-[calc(50%-2rem)]","after:-bottom-10 after:start-1/2 after:h-6 after:w-[1px]","md:after:inset-auto md:after:-end-3.5 md:after:top-8 md:after:h-[1px] md:after:w-[calc(50%-2rem)]"),children:[t.image?l("span",{className:"mx-auto flex size-12 items-center justify-center rounded-full bg-primary text-primary-foreground md:size-14",children:typeof t.image=="string"?u(t.image)?l("img",{src:t.image,alt:t.title,className:"block object-cover"}):l("span",{className:"[&_svg]:h-6 [&_svg]:w-6 [&_svg]:stroke-current [&_svg]:stroke-2",children:m(t.image.replace(/\n|\r/g,""))}):t.image}):null,s("div",{className:"mt-4 w-full md:mt-6",children:[l("div",{className:"w-full text-xl font-semibold",children:m(t.title)}),t.description?l("div",{className:"mt-2 text-base text-muted-foreground",children:m(t.description)}):null]})]},o))}):null,i?l(c,{isFullInMobile:i.isFullInMobile,buttons:i.buttons,className:i.className,align:"center"}):null]})}export{v as HowItWorksTemplateOne,N as HowItWorksTemplateThree,x as HowItWorksTemplateTwo};
|