@loczer/storefront-sdk 0.210.0 → 0.211.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/components/AdminFloatingButton/AdminFloatingButton.d.ts +7 -0
  2. package/dist/components/AdminFloatingButton/AdminFloatingButton.d.ts.map +1 -0
  3. package/dist/components/AdminFloatingButton/AdminFloatingButton.js +36 -0
  4. package/dist/components/AdminFloatingButton/index.d.ts +3 -0
  5. package/dist/components/AdminFloatingButton/index.d.ts.map +1 -0
  6. package/dist/components/AdminFloatingButton/index.js +2 -0
  7. package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts.map +1 -1
  8. package/dist/components/BookingPeriodSelector/useBookingPeriodController.js +213 -213
  9. package/dist/components/ContactSection/index.d.ts.map +1 -1
  10. package/dist/components/ContactSection/index.js +4 -7
  11. package/dist/components/Header/index.js +1 -0
  12. package/dist/components/PlaygroundDevFloatingButton/index.d.ts.map +1 -1
  13. package/dist/components/PlaygroundDevFloatingButton/index.js +121 -100
  14. package/dist/components/WhatsAppFloatingButton/useWhatsAppFloatingButton.d.ts +2 -3
  15. package/dist/components/WhatsAppFloatingButton/useWhatsAppFloatingButton.d.ts.map +1 -1
  16. package/dist/components/WhatsAppFloatingButton/useWhatsAppFloatingButton.js +7 -81
  17. package/dist/i18n/en.d.ts +0 -1
  18. package/dist/i18n/en.d.ts.map +1 -1
  19. package/dist/i18n/en.js +0 -1
  20. package/dist/i18n/fr.d.ts +0 -1
  21. package/dist/i18n/fr.d.ts.map +1 -1
  22. package/dist/i18n/fr.js +0 -1
  23. package/dist/index.d.ts +8 -3
  24. package/dist/index.js +22 -20
  25. package/dist/lib/floatingButtonCollision.d.ts +20 -0
  26. package/dist/lib/floatingButtonCollision.d.ts.map +1 -0
  27. package/dist/lib/floatingButtonCollision.js +72 -0
  28. package/dist/lib/useDraggableFloatingButton.d.ts +7 -0
  29. package/dist/lib/useDraggableFloatingButton.d.ts.map +1 -0
  30. package/dist/lib/useDraggableFloatingButton.js +107 -0
  31. package/dist/pages/CheckoutPage.d.ts.map +1 -1
  32. package/dist/pages/CheckoutPage.js +244 -243
  33. package/dist/storefront.css +1 -1
  34. package/dist/ui/day-picker.js +1 -1
  35. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -60,31 +60,33 @@ import { Textarea as Ir } from "./ui/textarea.js";
60
60
  import { ContactSection as Lr } from "./components/ContactSection/index.js";
61
61
  import { TestimonialsSection as Rr } from "./components/TestimonialsSection/index.js";
62
62
  import { AboutSection as zr } from "./components/AboutSection/index.js";
63
- import { ItineraryListItem as Br } from "./components/Itineraries/ItineraryListItem.js";
64
- import { ItineraryRouteMap as Vr } from "./components/Itineraries/ItineraryRouteMap.js";
65
- import { ItinerariesSection as Hr } from "./components/Itineraries/ItinerariesSection.js";
63
+ import { AdminFloatingButton as Br } from "./components/AdminFloatingButton/AdminFloatingButton.js";
64
+ import "./components/AdminFloatingButton/index.js";
65
+ import { ItineraryListItem as Vr } from "./components/Itineraries/ItineraryListItem.js";
66
+ import { ItineraryRouteMap as Hr } from "./components/Itineraries/ItineraryRouteMap.js";
67
+ import { ItinerariesSection as Ur } from "./components/Itineraries/ItinerariesSection.js";
66
68
  import "./components/Itineraries/index.js";
67
- import { StepSectionTitle as Ur } from "./components/StepSectionTitle/index.js";
68
- import { Card as Wr, CardAction as Gr, CardContent as Kr, CardDescription as qr, CardFooter as Jr, CardHeader as Yr, CardTitle as Xr } from "./ui/card.js";
69
- import { ProductWarningNotice as Zr } from "./components/ProductWarningNotice/index.js";
70
- import { StorefrontCartPanel as Qr } from "./components/StorefrontCartPanel/index.js";
71
- import { ProductPriceBadge as $r } from "./components/ProductPriceBadge/index.js";
72
- import { ContractSaleDocument as ei } from "./components/ContractSaleDocument/Invoice.js";
69
+ import { StepSectionTitle as Wr } from "./components/StepSectionTitle/index.js";
70
+ import { Card as Gr, CardAction as Kr, CardContent as qr, CardDescription as Jr, CardFooter as Yr, CardHeader as Xr, CardTitle as Zr } from "./ui/card.js";
71
+ import { ProductWarningNotice as Qr } from "./components/ProductWarningNotice/index.js";
72
+ import { StorefrontCartPanel as $r } from "./components/StorefrontCartPanel/index.js";
73
+ import { ProductPriceBadge as ei } from "./components/ProductPriceBadge/index.js";
74
+ import { ContractSaleDocument as ti } from "./components/ContractSaleDocument/Invoice.js";
73
75
  import "./components/ContractSaleDocument/index.js";
74
- import { RadioGroup as ti, RadioGroupItem as ni } from "./ui/radio-group.js";
76
+ import { RadioGroup as ni, RadioGroupItem as ri } from "./ui/radio-group.js";
75
77
  import "./pages/HomePage.js";
76
78
  import "./pages/BookingPage.js";
77
79
  import "./pages/ProductPage.js";
78
- import ri from "./pages/ItinerariesPage.js";
79
- import ii, { loader as ai } from "./pages/ItineraryDetailsPage.js";
80
+ import ii from "./pages/ItinerariesPage.js";
81
+ import ai, { loader as oi } from "./pages/ItineraryDetailsPage.js";
80
82
  import "./pages/CheckoutPage.js";
81
83
  import "./pages/CheckoutSuccessPage.js";
82
84
  import "./pages/NotFoundPage.js";
83
- import { accessories as oi } from "./data/accessories.js";
84
- import si from "./data/bikes.js";
85
- import { contractSaleDocumentAcceptanceLevelSchema as ci, contractSaleDocumentAcceptanceRecordSchema as li, contractSaleDocumentAcceptanceSchema as ui, contractSaleDocumentAddressSchema as di, contractSaleDocumentAppendixKindSchema as fi, contractSaleDocumentAppendixSchema as pi, contractSaleDocumentContactSchema as mi, contractSaleDocumentKindSchema as hi, contractSaleDocumentLanguageCodeSchema as gi, contractSaleDocumentLanguageSchema as _i, contractSaleDocumentLineItemSchema as vi, contractSaleDocumentRentalSchema as yi, contractSaleDocumentSchema as bi, contractSaleDocumentSignatureSchema as xi } from "./lib/contractSaleDocument.js";
86
- import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as Si, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as Ci, GET_CONTRACT_SALE_DOCUMENT_ROUTE as wi, acceptContractSaleDocumentRequestSchema as Ti, acceptContractSaleDocumentResponseSchema as Ei, contractSaleDocumentAcceptanceInputSchema as Di, contractSaleDocumentAcceptanceRecordInputSchema as Oi, contractSaleDocumentApiAcceptanceRecordSchema as ki, contractSaleDocumentApiAcceptanceSchema as Ai, contractSaleDocumentApiSchema as ji, contractSaleDocumentApiSignatureSchema as Mi, contractSaleDocumentReferenceSchema as Ni, contractSaleDocumentReferenceTypeSchema as Pi, contractSaleDocumentSignatureInputSchema as Fi, downloadContractSaleDocumentPdfRequestSchema as Ii, getContractSaleDocumentRequestSchema as Li, getContractSaleDocumentResponseSchema as Ri } from "./lib/contractSaleDocumentApi.js";
87
- import zi from "./routes.js";
88
- import { loader as Bi } from "./StorefrontProvider.js";
89
- import { Select as Vi, SelectContent as Hi, SelectGroup as Ui, SelectIcon as Wi, SelectItem as Gi, SelectItemIndicator as Ki, SelectItemText as qi, SelectLabel as Ji, SelectScrollDownButton as Yi, SelectScrollUpButton as Xi, SelectSeparator as Zi, SelectTrigger as Qi, SelectValue as $i } from "./ui/select.js";
90
- export { Si as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, zr as AboutSection, Ne as BOOKING_SEARCH_KEYS, Kn as Badge, br as BookingEndDateField, xr as BookingEndTimeField, Tr as BookingFlowSteps, Cr as BookingMobileDateDrawer, hr as BookingPeriodProvider, wr as BookingPeriodSelector, vr as BookingStartDateField, yr as BookingStartTimeField, Sr as BookingTimeSlotsStatus, Jn as Button, Qe as CATALOG_PRODUCT_BASE_RATE_UNSET, Wr as Card, Gr as CardAction, Kr as CardContent, qr as CardDescription, Jr as CardFooter, Yr as CardHeader, Xr as CardTitle, Lr as ContactSection, ei as ContractSaleDocument, Y as DEFAULT_BOOKING_DELIVERY_OPTION, B as DEFAULT_CANCELLATION_POLICY, V as DEFAULT_PAYMENT_POLICIES, p as DEFAULT_PRODUCT_KIND, Ci as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, pr as DelayedPlaceholder, mr as DelayedReveal, Dr as DeliveryAddressSelector, Gn as Footer, Or as Form, kr as FormControl, Ar as FormDescription, jr as FormField, Mr as FormItem, Nr as FormLabel, Pr as FormMessage, wi as GET_CONTRACT_SALE_DOCUMENT_ROUTE, ar as Header, Er as Input, ri as ItinerariesPage, Hr as ItinerariesSection, ii as ItineraryDetailsPage, Br as ItineraryListItem, Vr as ItineraryRouteMap, _r as Label, fr as Layout, m as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, h as PRODUCT_VARIANT_CODE_MAX_LENGTH, lr as PlatformFooter, cr as PoweredByLoczerBadge, $r as ProductPriceBadge, Zr as ProductWarningNotice, Mt as ROUTE, ti as RadioGroup, ni as RadioGroupItem, wn as STOREFRONT_AVAILABILITY_ROUTE, sn as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, ge as STOREFRONT_HERO_MODES, Ln as STOREFRONT_IMAGE_ROUTE, Rt as STOREFRONT_ITINERARIES_FEATURED_ROUTE, zt as STOREFRONT_ITINERARIES_LIST_ROUTE, Bt as STOREFRONT_ITINERARY_DETAIL_ROUTE, pn as STOREFRONT_PRODUCTS_ROUTE, Bn as STOREFRONT_TIME_SLOTS_ROUTE, Vi as Select, Hi as SelectContent, Ui as SelectGroup, Wi as SelectIcon, Gi as SelectItem, Ki as SelectItemIndicator, qi as SelectItemText, Ji as SelectLabel, Yi as SelectScrollDownButton, Xi as SelectScrollUpButton, Zi as SelectSeparator, Qi as SelectTrigger, $i as SelectValue, Ur as StepSectionTitle, Qr as StorefrontCartPanel, _t as StorefrontCartProvider, Zn as StorefrontContext, Pe as TIME_OPTIONS, Rr as TestimonialsSection, Ir as Textarea, dr as WhatsAppFloatingButton, Ti as acceptContractSaleDocumentRequestSchema, Ei as acceptContractSaleDocumentResponseSchema, oi as accessories, g as accessoryProductSchema, Fe as applyBookingParamsToSearch, ue as assetIdSchema, qn as badgeVariants, de as baseAssetSchema, fe as baseAssetStatusSchema, pe as baseBookingItemSchema, me as baseBookingSchema, he as baseBookingStateSchema, _ as bikeProductSchema, si as bikes, X as bookingCustomerInputSchema, Z as bookingDeliveryOptionSchema, ie as bookingInsuranceConsentSourceSchema, ae as bookingInsuranceItemSnapshotSchema, oe as bookingInsuranceSnapshotSchema, Q as bookingScheduleInputSchema, se as buildBookingInsuranceSnapshot, wt as buildPriceTierLabels, Tt as buildRentalPriceRows, Tn as buildStorefrontAvailabilityKey, jt as buildStorefrontCartSummary, Rn as buildStorefrontImageUrl, $e as buildStorefrontProductSlug, et as buildVariantStorefrontProductId, rn as buildWhatsAppHref, Yn as buttonVariants, Et as calculateBookingRentalUnitSummary, ce as calculateInsuranceCalendarDays, Dt as calculateRentalPriceForQuantity, H as cancellationPolicySchema, U as cancellationPolicyTierSchema, $ as cartItemInputSchema, bt as cn, tt as compareCatalogProducts, nt as compareStorefrontAccessoryProducts, rt as compareStorefrontBikeProducts, Di as contractSaleDocumentAcceptanceInputSchema, ci as contractSaleDocumentAcceptanceLevelSchema, Oi as contractSaleDocumentAcceptanceRecordInputSchema, li as contractSaleDocumentAcceptanceRecordSchema, ui as contractSaleDocumentAcceptanceSchema, di as contractSaleDocumentAddressSchema, ki as contractSaleDocumentApiAcceptanceRecordSchema, Ai as contractSaleDocumentApiAcceptanceSchema, ji as contractSaleDocumentApiSchema, Mi as contractSaleDocumentApiSignatureSchema, fi as contractSaleDocumentAppendixKindSchema, pi as contractSaleDocumentAppendixSchema, mi as contractSaleDocumentContactSchema, hi as contractSaleDocumentKindSchema, gi as contractSaleDocumentLanguageCodeSchema, _i as contractSaleDocumentLanguageSchema, vi as contractSaleDocumentLineItemSchema, Ni as contractSaleDocumentReferenceSchema, Pi as contractSaleDocumentReferenceTypeSchema, yi as contractSaleDocumentRentalSchema, bi as contractSaleDocumentSchema, Fi as contractSaleDocumentSignatureInputSchema, xi as contractSaleDocumentSignatureSchema, ee as createBookingInputBaseSchema, te as createBookingInputSchema, Ie as createBookingPeriodConfigFromBookingEngineConfiguration, Le as createBookingPeriodConfigFromShopConfiguration, Re as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, En as doesStorefrontAvailabilityDisplaySoldOut, Ii as downloadContractSaleDocumentPdfRequestSchema, v as eBikeProductSchema, it as findStorefrontProduct, at as findStorefrontProductBySlug, xt as formatPriceMinor, Ot as formatRentalUnitQuantity, Ft as formatStorefrontPhoneDisplay, kt as formatStorefrontPriceMinor, G as fulfillmentModeSchema, St as getAvailabilityVariant, ze as getBookingParamsFromSearch, Be as getBookingSessionStorageKey, ot as getCatalogProductBaseRateMinor, st as getCatalogProductPaginationSort, ct as getCatalogProductSortFieldForPriceUnit, Li as getContractSaleDocumentRequestSchema, Ri as getContractSaleDocumentResponseSchema, Ve as getDefaultBookingParams, He as getDefaultBookingParamsForStorefrontConfiguration, Xe as getLocalizedEntry, t as getLocalizedStringValue, Ze as getLocalizedValue, Ct as getMinDayPriceMinor, At as getPricingUnitLabel, Dn as getStorefrontAvailabilityIssue, On as getStorefrontAvailabilityStatus, lt as getStorefrontBaseDailyRateMinor, ut as getStorefrontCheckoutProductId, dt as getStorefrontProductSelectionDisplayName, ft as getStorefrontRepresentedVariantId, le as insuranceProviderSchema, y as isProductVariantCodeIdentifierKind, kn as isStorefrontAvailabilityInsufficient, j as isoDateSchema, ai as itineraryDetailsLoader, Bi as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, W as paymentPoliciesSchema, Ue as pickBookingSearchParams, d as priceSchema, f as priceUnitSchema, b as productInsuranceSchema, x as productKindSchema, S as productSchema, C as productStorefrontDisplayModeSchema, w as productVariantAttributeSchema, T as productVariantCodeSchema, E as productVariantIdentifierSchema, D as productVariantSchema, An as publicAvailabilityDisplayModeSchema, K as publicBookingEngineConfigurationSchema, q as publicCheckoutConfigurationSchema, J as publicCheckoutDynamicOptionsSchema, We as readBookingSearchParamsFromSessionStorage, Ge as readBookingSearchParamsFromStorage, Nt as requestSchema, ne as resolveBookingDeliveryOption, Ke as resolveBookingSearchParams, qe as resolveBookingSearchParamsFromSessionStorage, vt as resolveStorefrontCartItemProduct, It as resolveStorefrontMapsHref, Lt as resolveStorefrontPhoneContact, an as resolveStorefrontWhatsAppContact, on as resolveStorefrontWhatsAppHref, Pt as responseSchema, O as richTextJsonDocSchema, k as richTextSchema, A as richTextVersionSchema, M as shopConfigurationSchema, N as shopExtraTimeSlotRuleSchema, P as shopOpeningDayIndexSchema, F as shopOpeningDaySchema, I as shopOpeningHoursOverrideSchema, L as shopOpeningHoursPeriodSchema, R as shopOpeningSlotSchema, Nn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, Pn as storefrontAvailabilityProductSchema, jn as storefrontAvailabilityRequestSchema, Mn as storefrontAvailabilityResponseSchema, Fn as storefrontAvailabilityScheduleSchema, Xn as storefrontButtonRadiusClassName, _e as storefrontCheckoutModeSchema, un as storefrontCheckoutSubmitDeliveryRefinement, ln as storefrontCheckoutSubmitItemSchema, cn as storefrontCheckoutSubmitRequestBaseSchema, dn as storefrontCheckoutSubmitRequestSchema, fn as storefrontCheckoutSubmitResponseSchema, ve as storefrontConfigurationSchema, ye as storefrontContentSchema, or as storefrontEn, be as storefrontFaqItemSchema, xe as storefrontFaqSchema, sr as storefrontFr, Se as storefrontFulfillmentModeSchema, Ce as storefrontHeroModeSchema, zn as storefrontImageRequestSchema, Vt as storefrontItinerariesFeaturedRequestSchema, Ht as storefrontItinerariesFeaturedResponseSchema, Ut as storefrontItinerariesListRequestSchema, Wt as storefrontItinerariesListResponseSchema, Gt as storefrontItineraryBoundsSchema, Kt as storefrontItineraryCoordinateSchema, qt as storefrontItineraryDetailRequestSchema, Jt as storefrontItineraryDetailResponseSchema, Yt as storefrontItineraryDetailSchema, Xt as storefrontItineraryDifficultySchema, Zt as storefrontItineraryLocalizedStringSchema, Qt as storefrontItineraryMetricsSchema, $t as storefrontItineraryPreviewSchema, en as storefrontItineraryStepSchema, tn as storefrontItinerarySummarySchema, nn as storefrontItineraryTripTypeSchema, we as storefrontLocalizedRichTextSchema, Te as storefrontModalMessageSchema, Ee as storefrontModulesSchema, mn as storefrontProductsRequestSchema, hn as storefrontProductsResponseSchema, gn as storefrontPublicAccessoryProductSchema, In as storefrontPublicAvailabilityRecordSchema, _n as storefrontPublicBikeAvailabilityStatusSchema, vn as storefrontPublicBikeProductSchema, yn as storefrontPublicProductDisplayModeSchema, bn as storefrontPublicProductPriceSchema, xn as storefrontPublicProductVariantAttributeSchema, Sn as storefrontPublicProductVariantIdentifierSchema, Cn as storefrontPublicProductVariantSchema, De as storefrontReviewsModuleSchema, Oe as storefrontRichTextSchema, zi as storefrontRoutes, ke as storefrontSettingsSchema, Ae as storefrontShopSchema, je as storefrontStatusSchema, Wn as storefrontTimeSlotJourneySchema, Un as storefrontTimeSlotSchema, Vn as storefrontTimeSlotsRequestSchema, Hn as storefrontTimeSlotsResponseSchema, Me as storefrontWorkspaceSchema, z as timeOfDaySchema, pt as toStorefrontAccessoryProducts, mt as toStorefrontBikeProducts, ht as toStorefrontBookingProducts, gt as toStorefrontBookingProductsCollections, gr as useBookingPeriod, Fr as useFormField, Qn as useOptionalStorefront, $n as useStorefront, er as useStorefrontBookingProducts, yt as useStorefrontCart, tr as useStorefrontConfig, nr as useStorefrontItineraries, rr as useStorefrontProducts, ir as useStorefrontWorkspaceLanguage, ur as useWhatsAppFloatingButton, re as validateBookingDeliveryAddress, Je as writeBookingSearchParamsToSessionStorage, Ye as writeBookingSearchParamsToStorage };
85
+ import { accessories as si } from "./data/accessories.js";
86
+ import ci from "./data/bikes.js";
87
+ import { contractSaleDocumentAcceptanceLevelSchema as li, contractSaleDocumentAcceptanceRecordSchema as ui, contractSaleDocumentAcceptanceSchema as di, contractSaleDocumentAddressSchema as fi, contractSaleDocumentAppendixKindSchema as pi, contractSaleDocumentAppendixSchema as mi, contractSaleDocumentContactSchema as hi, contractSaleDocumentKindSchema as gi, contractSaleDocumentLanguageCodeSchema as _i, contractSaleDocumentLanguageSchema as vi, contractSaleDocumentLineItemSchema as yi, contractSaleDocumentRentalSchema as bi, contractSaleDocumentSchema as xi, contractSaleDocumentSignatureSchema as Si } from "./lib/contractSaleDocument.js";
88
+ import { ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE as Ci, DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE as wi, GET_CONTRACT_SALE_DOCUMENT_ROUTE as Ti, acceptContractSaleDocumentRequestSchema as Ei, acceptContractSaleDocumentResponseSchema as Di, contractSaleDocumentAcceptanceInputSchema as Oi, contractSaleDocumentAcceptanceRecordInputSchema as ki, contractSaleDocumentApiAcceptanceRecordSchema as Ai, contractSaleDocumentApiAcceptanceSchema as ji, contractSaleDocumentApiSchema as Mi, contractSaleDocumentApiSignatureSchema as Ni, contractSaleDocumentReferenceSchema as Pi, contractSaleDocumentReferenceTypeSchema as Fi, contractSaleDocumentSignatureInputSchema as Ii, downloadContractSaleDocumentPdfRequestSchema as Li, getContractSaleDocumentRequestSchema as Ri, getContractSaleDocumentResponseSchema as zi } from "./lib/contractSaleDocumentApi.js";
89
+ import Bi from "./routes.js";
90
+ import { loader as Vi } from "./StorefrontProvider.js";
91
+ import { Select as Hi, SelectContent as Ui, SelectGroup as Wi, SelectIcon as Gi, SelectItem as Ki, SelectItemIndicator as qi, SelectItemText as Ji, SelectLabel as Yi, SelectScrollDownButton as Xi, SelectScrollUpButton as Zi, SelectSeparator as Qi, SelectTrigger as $i, SelectValue as ea } from "./ui/select.js";
92
+ export { Ci as ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE, zr as AboutSection, Br as AdminFloatingButton, Ne as BOOKING_SEARCH_KEYS, Kn as Badge, br as BookingEndDateField, xr as BookingEndTimeField, Tr as BookingFlowSteps, Cr as BookingMobileDateDrawer, hr as BookingPeriodProvider, wr as BookingPeriodSelector, vr as BookingStartDateField, yr as BookingStartTimeField, Sr as BookingTimeSlotsStatus, Jn as Button, Qe as CATALOG_PRODUCT_BASE_RATE_UNSET, Gr as Card, Kr as CardAction, qr as CardContent, Jr as CardDescription, Yr as CardFooter, Xr as CardHeader, Zr as CardTitle, Lr as ContactSection, ti as ContractSaleDocument, Y as DEFAULT_BOOKING_DELIVERY_OPTION, B as DEFAULT_CANCELLATION_POLICY, V as DEFAULT_PAYMENT_POLICIES, p as DEFAULT_PRODUCT_KIND, wi as DOWNLOAD_CONTRACT_SALE_DOCUMENT_PDF_ROUTE, pr as DelayedPlaceholder, mr as DelayedReveal, Dr as DeliveryAddressSelector, Gn as Footer, Or as Form, kr as FormControl, Ar as FormDescription, jr as FormField, Mr as FormItem, Nr as FormLabel, Pr as FormMessage, Ti as GET_CONTRACT_SALE_DOCUMENT_ROUTE, ar as Header, Er as Input, ii as ItinerariesPage, Ur as ItinerariesSection, ai as ItineraryDetailsPage, Vr as ItineraryListItem, Hr as ItineraryRouteMap, _r as Label, fr as Layout, m as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, h as PRODUCT_VARIANT_CODE_MAX_LENGTH, lr as PlatformFooter, cr as PoweredByLoczerBadge, ei as ProductPriceBadge, Qr as ProductWarningNotice, Mt as ROUTE, ni as RadioGroup, ri as RadioGroupItem, wn as STOREFRONT_AVAILABILITY_ROUTE, sn as STOREFRONT_CHECKOUT_SUBMIT_ROUTE, ge as STOREFRONT_HERO_MODES, Ln as STOREFRONT_IMAGE_ROUTE, Rt as STOREFRONT_ITINERARIES_FEATURED_ROUTE, zt as STOREFRONT_ITINERARIES_LIST_ROUTE, Bt as STOREFRONT_ITINERARY_DETAIL_ROUTE, pn as STOREFRONT_PRODUCTS_ROUTE, Bn as STOREFRONT_TIME_SLOTS_ROUTE, Hi as Select, Ui as SelectContent, Wi as SelectGroup, Gi as SelectIcon, Ki as SelectItem, qi as SelectItemIndicator, Ji as SelectItemText, Yi as SelectLabel, Xi as SelectScrollDownButton, Zi as SelectScrollUpButton, Qi as SelectSeparator, $i as SelectTrigger, ea as SelectValue, Wr as StepSectionTitle, $r as StorefrontCartPanel, _t as StorefrontCartProvider, Zn as StorefrontContext, Pe as TIME_OPTIONS, Rr as TestimonialsSection, Ir as Textarea, dr as WhatsAppFloatingButton, Ei as acceptContractSaleDocumentRequestSchema, Di as acceptContractSaleDocumentResponseSchema, si as accessories, g as accessoryProductSchema, Fe as applyBookingParamsToSearch, ue as assetIdSchema, qn as badgeVariants, de as baseAssetSchema, fe as baseAssetStatusSchema, pe as baseBookingItemSchema, me as baseBookingSchema, he as baseBookingStateSchema, _ as bikeProductSchema, ci as bikes, X as bookingCustomerInputSchema, Z as bookingDeliveryOptionSchema, ie as bookingInsuranceConsentSourceSchema, ae as bookingInsuranceItemSnapshotSchema, oe as bookingInsuranceSnapshotSchema, Q as bookingScheduleInputSchema, se as buildBookingInsuranceSnapshot, wt as buildPriceTierLabels, Tt as buildRentalPriceRows, Tn as buildStorefrontAvailabilityKey, jt as buildStorefrontCartSummary, Rn as buildStorefrontImageUrl, $e as buildStorefrontProductSlug, et as buildVariantStorefrontProductId, rn as buildWhatsAppHref, Yn as buttonVariants, Et as calculateBookingRentalUnitSummary, ce as calculateInsuranceCalendarDays, Dt as calculateRentalPriceForQuantity, H as cancellationPolicySchema, U as cancellationPolicyTierSchema, $ as cartItemInputSchema, bt as cn, tt as compareCatalogProducts, nt as compareStorefrontAccessoryProducts, rt as compareStorefrontBikeProducts, Oi as contractSaleDocumentAcceptanceInputSchema, li as contractSaleDocumentAcceptanceLevelSchema, ki as contractSaleDocumentAcceptanceRecordInputSchema, ui as contractSaleDocumentAcceptanceRecordSchema, di as contractSaleDocumentAcceptanceSchema, fi as contractSaleDocumentAddressSchema, Ai as contractSaleDocumentApiAcceptanceRecordSchema, ji as contractSaleDocumentApiAcceptanceSchema, Mi as contractSaleDocumentApiSchema, Ni as contractSaleDocumentApiSignatureSchema, pi as contractSaleDocumentAppendixKindSchema, mi as contractSaleDocumentAppendixSchema, hi as contractSaleDocumentContactSchema, gi as contractSaleDocumentKindSchema, _i as contractSaleDocumentLanguageCodeSchema, vi as contractSaleDocumentLanguageSchema, yi as contractSaleDocumentLineItemSchema, Pi as contractSaleDocumentReferenceSchema, Fi as contractSaleDocumentReferenceTypeSchema, bi as contractSaleDocumentRentalSchema, xi as contractSaleDocumentSchema, Ii as contractSaleDocumentSignatureInputSchema, Si as contractSaleDocumentSignatureSchema, ee as createBookingInputBaseSchema, te as createBookingInputSchema, Ie as createBookingPeriodConfigFromBookingEngineConfiguration, Le as createBookingPeriodConfigFromShopConfiguration, Re as createBookingPeriodConfigFromStorefrontConfiguration, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, En as doesStorefrontAvailabilityDisplaySoldOut, Li as downloadContractSaleDocumentPdfRequestSchema, v as eBikeProductSchema, it as findStorefrontProduct, at as findStorefrontProductBySlug, xt as formatPriceMinor, Ot as formatRentalUnitQuantity, Ft as formatStorefrontPhoneDisplay, kt as formatStorefrontPriceMinor, G as fulfillmentModeSchema, St as getAvailabilityVariant, ze as getBookingParamsFromSearch, Be as getBookingSessionStorageKey, ot as getCatalogProductBaseRateMinor, st as getCatalogProductPaginationSort, ct as getCatalogProductSortFieldForPriceUnit, Ri as getContractSaleDocumentRequestSchema, zi as getContractSaleDocumentResponseSchema, Ve as getDefaultBookingParams, He as getDefaultBookingParamsForStorefrontConfiguration, Xe as getLocalizedEntry, t as getLocalizedStringValue, Ze as getLocalizedValue, Ct as getMinDayPriceMinor, At as getPricingUnitLabel, Dn as getStorefrontAvailabilityIssue, On as getStorefrontAvailabilityStatus, lt as getStorefrontBaseDailyRateMinor, ut as getStorefrontCheckoutProductId, dt as getStorefrontProductSelectionDisplayName, ft as getStorefrontRepresentedVariantId, le as insuranceProviderSchema, y as isProductVariantCodeIdentifierKind, kn as isStorefrontAvailabilityInsufficient, j as isoDateSchema, oi as itineraryDetailsLoader, Vi as loader, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, W as paymentPoliciesSchema, Ue as pickBookingSearchParams, d as priceSchema, f as priceUnitSchema, b as productInsuranceSchema, x as productKindSchema, S as productSchema, C as productStorefrontDisplayModeSchema, w as productVariantAttributeSchema, T as productVariantCodeSchema, E as productVariantIdentifierSchema, D as productVariantSchema, An as publicAvailabilityDisplayModeSchema, K as publicBookingEngineConfigurationSchema, q as publicCheckoutConfigurationSchema, J as publicCheckoutDynamicOptionsSchema, We as readBookingSearchParamsFromSessionStorage, Ge as readBookingSearchParamsFromStorage, Nt as requestSchema, ne as resolveBookingDeliveryOption, Ke as resolveBookingSearchParams, qe as resolveBookingSearchParamsFromSessionStorage, vt as resolveStorefrontCartItemProduct, It as resolveStorefrontMapsHref, Lt as resolveStorefrontPhoneContact, an as resolveStorefrontWhatsAppContact, on as resolveStorefrontWhatsAppHref, Pt as responseSchema, O as richTextJsonDocSchema, k as richTextSchema, A as richTextVersionSchema, M as shopConfigurationSchema, N as shopExtraTimeSlotRuleSchema, P as shopOpeningDayIndexSchema, F as shopOpeningDaySchema, I as shopOpeningHoursOverrideSchema, L as shopOpeningHoursPeriodSchema, R as shopOpeningSlotSchema, Nn as shouldBlockStorefrontUnavailableItem, u as signedMoneyMinorSchema, Pn as storefrontAvailabilityProductSchema, jn as storefrontAvailabilityRequestSchema, Mn as storefrontAvailabilityResponseSchema, Fn as storefrontAvailabilityScheduleSchema, Xn as storefrontButtonRadiusClassName, _e as storefrontCheckoutModeSchema, un as storefrontCheckoutSubmitDeliveryRefinement, ln as storefrontCheckoutSubmitItemSchema, cn as storefrontCheckoutSubmitRequestBaseSchema, dn as storefrontCheckoutSubmitRequestSchema, fn as storefrontCheckoutSubmitResponseSchema, ve as storefrontConfigurationSchema, ye as storefrontContentSchema, or as storefrontEn, be as storefrontFaqItemSchema, xe as storefrontFaqSchema, sr as storefrontFr, Se as storefrontFulfillmentModeSchema, Ce as storefrontHeroModeSchema, zn as storefrontImageRequestSchema, Vt as storefrontItinerariesFeaturedRequestSchema, Ht as storefrontItinerariesFeaturedResponseSchema, Ut as storefrontItinerariesListRequestSchema, Wt as storefrontItinerariesListResponseSchema, Gt as storefrontItineraryBoundsSchema, Kt as storefrontItineraryCoordinateSchema, qt as storefrontItineraryDetailRequestSchema, Jt as storefrontItineraryDetailResponseSchema, Yt as storefrontItineraryDetailSchema, Xt as storefrontItineraryDifficultySchema, Zt as storefrontItineraryLocalizedStringSchema, Qt as storefrontItineraryMetricsSchema, $t as storefrontItineraryPreviewSchema, en as storefrontItineraryStepSchema, tn as storefrontItinerarySummarySchema, nn as storefrontItineraryTripTypeSchema, we as storefrontLocalizedRichTextSchema, Te as storefrontModalMessageSchema, Ee as storefrontModulesSchema, mn as storefrontProductsRequestSchema, hn as storefrontProductsResponseSchema, gn as storefrontPublicAccessoryProductSchema, In as storefrontPublicAvailabilityRecordSchema, _n as storefrontPublicBikeAvailabilityStatusSchema, vn as storefrontPublicBikeProductSchema, yn as storefrontPublicProductDisplayModeSchema, bn as storefrontPublicProductPriceSchema, xn as storefrontPublicProductVariantAttributeSchema, Sn as storefrontPublicProductVariantIdentifierSchema, Cn as storefrontPublicProductVariantSchema, De as storefrontReviewsModuleSchema, Oe as storefrontRichTextSchema, Bi as storefrontRoutes, ke as storefrontSettingsSchema, Ae as storefrontShopSchema, je as storefrontStatusSchema, Wn as storefrontTimeSlotJourneySchema, Un as storefrontTimeSlotSchema, Vn as storefrontTimeSlotsRequestSchema, Hn as storefrontTimeSlotsResponseSchema, Me as storefrontWorkspaceSchema, z as timeOfDaySchema, pt as toStorefrontAccessoryProducts, mt as toStorefrontBikeProducts, ht as toStorefrontBookingProducts, gt as toStorefrontBookingProductsCollections, gr as useBookingPeriod, Fr as useFormField, Qn as useOptionalStorefront, $n as useStorefront, er as useStorefrontBookingProducts, yt as useStorefrontCart, tr as useStorefrontConfig, nr as useStorefrontItineraries, rr as useStorefrontProducts, ir as useStorefrontWorkspaceLanguage, ur as useWhatsAppFloatingButton, re as validateBookingDeliveryAddress, Je as writeBookingSearchParamsToSessionStorage, Ye as writeBookingSearchParamsToStorage };
@@ -0,0 +1,20 @@
1
+ interface CollisionVelocity {
2
+ velocityX: number;
3
+ velocityY: number;
4
+ }
5
+ interface MoveResult {
6
+ x: number;
7
+ y: number;
8
+ }
9
+ interface FloatingButtonCollisionParticipant {
10
+ id: string;
11
+ getRect: () => DOMRect | null;
12
+ isDragging: () => boolean;
13
+ moveBy: (dx: number, dy: number) => MoveResult;
14
+ cancelMotion: () => void;
15
+ kick: (velocityX: number, velocityY: number) => void;
16
+ }
17
+ export declare const registerFloatingButtonCollisionParticipant: (participant: FloatingButtonCollisionParticipant) => () => void;
18
+ export declare const resolveFloatingButtonCollisions: (activeId: string, velocity?: Partial<CollisionVelocity>) => void;
19
+ export {};
20
+ //# sourceMappingURL=floatingButtonCollision.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"floatingButtonCollision.d.ts","sourceRoot":"","sources":["../../src/lib/floatingButtonCollision.ts"],"names":[],"mappings":"AAAA,UAAU,iBAAiB;IACzB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,UAAU,UAAU;IAClB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV;AAED,UAAU,kCAAkC;IAC1C,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,OAAO,GAAG,IAAI,CAAA;IAC7B,UAAU,EAAE,MAAM,OAAO,CAAA;IACzB,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,UAAU,CAAA;IAC9C,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CACrD;AAsHD,eAAO,MAAM,0CAA0C,GACrD,aAAa,kCAAkC,eAWhD,CAAA;AAED,eAAO,MAAM,+BAA+B,GAC1C,UAAU,MAAM,EAChB,WAAW,OAAO,CAAC,iBAAiB,CAAC,SAuDtC,CAAA"}
@@ -0,0 +1,72 @@
1
+ //#region src/lib/floatingButtonCollision.ts
2
+ var e = .45, t = .001, n = globalThis, r = n.__LOCZER_STOREFRONT_FLOATING_BUTTON_COLLISIONS__ ?? {
3
+ participants: /* @__PURE__ */ new Map(),
4
+ activePairs: /* @__PURE__ */ new Set()
5
+ };
6
+ n.__LOCZER_STOREFRONT_FLOATING_BUTTON_COLLISIONS__ = r;
7
+ var { participants: i, activePairs: a } = r, o = (e, t) => [e, t].sort().join("\0"), s = (e, t) => e.split("\0").includes(t), c = (e) => ({
8
+ x: e.left + e.width / 2,
9
+ y: e.top + e.height / 2
10
+ }), l = (e) => Math.min(e.width, e.height) / 2, u = (e) => {
11
+ let t = e?.velocityX, n = e?.velocityY;
12
+ return {
13
+ velocityX: typeof t == "number" && Number.isFinite(t) ? t : 0,
14
+ velocityY: typeof n == "number" && Number.isFinite(n) ? n : 0
15
+ };
16
+ }, d = (e, n, r) => {
17
+ let i = Math.hypot(r.velocityX, r.velocityY);
18
+ if (i > t) return {
19
+ x: r.velocityX / i,
20
+ y: r.velocityY / i
21
+ };
22
+ let a = c(e), o = c(n), s = o.x - a.x, l = o.y - a.y, u = Math.hypot(s, l);
23
+ return u > t ? {
24
+ x: s / u,
25
+ y: l / u
26
+ } : {
27
+ x: 1,
28
+ y: 0
29
+ };
30
+ }, f = (e, n, r) => {
31
+ let i = c(e), a = c(n), o = a.x - i.x, s = a.y - i.y, u = Math.hypot(o, s), f = l(e) + l(n);
32
+ if (u >= f) return null;
33
+ if (u <= t) {
34
+ let t = d(e, n, r);
35
+ o = t.x, s = t.y, u = 1;
36
+ }
37
+ return {
38
+ normalX: o / u,
39
+ normalY: s / u,
40
+ overlap: f - u
41
+ };
42
+ }, p = (e) => {
43
+ for (let t of a) s(t, e) && a.delete(t);
44
+ }, m = (e) => (p(e.id), i.set(e.id, e), () => {
45
+ i.get(e.id) === e && (i.delete(e.id), p(e.id));
46
+ }), h = (n, r) => {
47
+ let c = i.get(n), l = c?.getRect();
48
+ if (!c || !l) return;
49
+ let d = u(r), p = /* @__PURE__ */ new Set();
50
+ for (let r of i.values()) {
51
+ if (r.id === n) continue;
52
+ let i = r.getRect();
53
+ if (!i) continue;
54
+ let s = f(l, i, d);
55
+ if (!s) continue;
56
+ let u = o(n, r.id), m = !a.has(u);
57
+ p.add(u), a.add(u), m && !r.isDragging() && r.cancelMotion();
58
+ let h = r.isDragging() ? {
59
+ x: 0,
60
+ y: 0
61
+ } : r.moveBy(s.normalX * s.overlap, s.normalY * s.overlap), g = h.x * s.normalX + h.y * s.normalY, _ = s.overlap - Math.max(g, 0);
62
+ _ > t && c.moveBy(-s.normalX * _, -s.normalY * _);
63
+ let v = Math.hypot(d.velocityX, d.velocityY);
64
+ if (m && v >= 30 && !r.isDragging()) {
65
+ let t = Math.max(v * (1 - e), 80);
66
+ r.kick(d.velocityX * e + s.normalX * t, d.velocityY * e + s.normalY * t);
67
+ }
68
+ }
69
+ for (let e of a) s(e, n) && !p.has(e) && a.delete(e);
70
+ };
71
+ //#endregion
72
+ export { m as registerFloatingButtonCollisionParticipant, h as resolveFloatingButtonCollisions };
@@ -0,0 +1,7 @@
1
+ import { MouseEventHandler } from 'react';
2
+ export declare function useDraggableFloatingButton(participantId: string): {
3
+ containerRef: import('react').RefObject<HTMLDivElement | null>;
4
+ bubbleRef: import('react').RefObject<HTMLDivElement | null>;
5
+ onLinkClick: MouseEventHandler<HTMLAnchorElement>;
6
+ };
7
+ //# sourceMappingURL=useDraggableFloatingButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDraggableFloatingButton.d.ts","sourceRoot":"","sources":["../../src/lib/useDraggableFloatingButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAqBjE,wBAAgB,0BAA0B,CAAC,aAAa,EAAE,MAAM;;;;EA2N/D"}
@@ -0,0 +1,107 @@
1
+ import { registerFloatingButtonCollisionParticipant as e, resolveFloatingButtonCollisions as t } from "./floatingButtonCollision.js";
2
+ import { useEffect as n, useRef as r } from "react";
3
+ import i from "interactjs";
4
+ //#region src/lib/useDraggableFloatingButton.ts
5
+ function a(a) {
6
+ let o = r(null), s = r(null), c = r(!1), l = r(!1), u = r(!1), d = r(null), f = r({
7
+ x: 0,
8
+ y: 0
9
+ }), p = r(null), m = r(null);
10
+ return n(() => {
11
+ let n = s.current;
12
+ if (!n || typeof window > "u") return;
13
+ let r = n.getBoundingClientRect();
14
+ p.current = {
15
+ left: r.left,
16
+ top: r.top,
17
+ width: r.width,
18
+ height: r.height
19
+ };
20
+ let o = () => {
21
+ if (!p.current) return f.current;
22
+ let { left: e, top: t, width: n, height: r } = p.current, i = 8 - e, a = 8 - t, o = window.innerWidth - 8 - n - e, s = window.innerHeight - 8 - r - t, c = Math.min(Math.max(f.current.x, i), o), l = Math.min(Math.max(f.current.y, a), s);
23
+ return f.current = {
24
+ x: c,
25
+ y: l
26
+ }, {
27
+ x: c,
28
+ y: l,
29
+ minX: i,
30
+ minY: a,
31
+ maxX: o,
32
+ maxY: s
33
+ };
34
+ }, h = () => {
35
+ let { x: e, y: t } = o();
36
+ n.style.transform = `translate3d(${e}px, ${t}px, 0)`;
37
+ }, g = (e, t) => {
38
+ let n = f.current.x, r = f.current.y;
39
+ return f.current.x += e, f.current.y += t, h(), {
40
+ x: f.current.x - n,
41
+ y: f.current.y - r
42
+ };
43
+ }, _ = () => {
44
+ m.current != null && (cancelAnimationFrame(m.current), m.current = null), l.current = !1;
45
+ }, v = window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches, y = (e = 0, n = 0) => {
46
+ t(a, {
47
+ velocityX: e,
48
+ velocityY: n
49
+ });
50
+ }, b = (e, t) => {
51
+ if (v) {
52
+ h(), y(e, t), l.current = !1;
53
+ return;
54
+ }
55
+ let r = performance.now();
56
+ l.current = !0;
57
+ let i = .92, a = .7, s = (c) => {
58
+ let l = (c - r) / 1e3;
59
+ r = c, f.current.x += e * l, f.current.y += t * l;
60
+ let { minX: u, minY: d, maxX: p, maxY: h } = o();
61
+ if (f.current.x <= u + .001 && e < 0 ? (f.current.x = u, e = -e * a) : f.current.x >= p - .001 && e > 0 && (f.current.x = p, e = -e * a), f.current.y <= d + .001 && t < 0 ? (f.current.y = d, t = -t * a) : f.current.y >= h - .001 && t > 0 && (f.current.y = h, t = -t * a), e *= i, t *= i, n.style.transform = `translate3d(${f.current.x}px, ${f.current.y}px, 0)`, y(e, t), Math.hypot(e, t) < 20) {
62
+ _();
63
+ return;
64
+ }
65
+ m.current = requestAnimationFrame(s);
66
+ };
67
+ m.current = requestAnimationFrame(s);
68
+ }, x = e({
69
+ id: a,
70
+ getRect: () => n.getBoundingClientRect(),
71
+ isDragging: () => c.current,
72
+ moveBy: g,
73
+ cancelMotion: _,
74
+ kick: b
75
+ }), S = i(n).draggable({ inertia: !1 }).styleCursor(!1).on("dragstart", () => {
76
+ _(), c.current = !0, u.current = !1, d.current != null && (window.clearTimeout(d.current), d.current = null);
77
+ }).on("dragmove", (e) => {
78
+ f.current.x += e.dx, f.current.y += e.dy, u.current = !0, h();
79
+ let t = Number.isFinite(e.velocityX) ? e.velocityX : 0, n = Number.isFinite(e.velocityY) ? e.velocityY : 0;
80
+ y(t, n);
81
+ }).on("dragend", (e) => {
82
+ let t = Number.isFinite(e.velocityX) ? e.velocityX : 0, n = Number.isFinite(e.velocityY) ? e.velocityY : 0;
83
+ c.current = !1, d.current = window.setTimeout(() => {
84
+ u.current = !1, d.current = null;
85
+ }, 0), Math.hypot(t, n) >= 10 ? b(t, n) : (h(), y(t, n));
86
+ }), C = () => {
87
+ let e = n.getBoundingClientRect();
88
+ p.current = {
89
+ left: e.left - f.current.x,
90
+ top: e.top - f.current.y,
91
+ width: e.width,
92
+ height: e.height
93
+ }, h(), y();
94
+ };
95
+ return window.addEventListener("resize", C), h(), y(), () => {
96
+ x(), S.unset(), _(), d.current != null && (window.clearTimeout(d.current), d.current = null), window.removeEventListener("resize", C);
97
+ };
98
+ }, [a]), {
99
+ containerRef: o,
100
+ bubbleRef: s,
101
+ onLinkClick: (e) => {
102
+ (u.current || c.current || l.current) && (e.preventDefault(), e.stopPropagation(), u.current = !1);
103
+ }
104
+ };
105
+ }
106
+ //#endregion
107
+ export { a as useDraggableFloatingButton };
@@ -1 +1 @@
1
- {"version":3,"file":"CheckoutPage.d.ts","sourceRoot":"","sources":["../../src/pages/CheckoutPage.tsx"],"names":[],"mappings":"AAuGA,MAAM,CAAC,OAAO,UAAU,YAAY,4CA+sBnC"}
1
+ {"version":3,"file":"CheckoutPage.d.ts","sourceRoot":"","sources":["../../src/pages/CheckoutPage.tsx"],"names":[],"mappings":"AAuGA,MAAM,CAAC,OAAO,UAAU,YAAY,4CAutBnC"}