@getmicdrop/venue-calendar 4.3.136 → 4.3.139
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 +895 -840
- package/dist/AddOnCard-Dlt_4lut.js +475 -0
- package/dist/AppError-t1LnBwj_.js +30 -0
- package/dist/{ArrowLeftIcon-OhmQKtD4.js → ArrowLeftIcon-P8BRVhVl.js} +2 -3
- package/dist/Badge-CmYqIClC.js +51 -0
- package/dist/BottomSheet-D27k0B05.js +154 -0
- package/dist/Button-Ch5dRGa2.js +149 -0
- package/dist/Button-DpeQSoQ7.js +247 -0
- package/dist/Calendar-CNWS2xiR.js +396 -0
- package/dist/CalendarFoundryView-B5puOxH5.js +16431 -0
- package/dist/{CalendarIcon-DCLzgpBo.js → CalendarIcon-MAVEqtql.js} +2 -3
- package/dist/{ChevronDownOutline-D7YDiKBF.js → CalendarOutline-CApIWx8i.js} +2 -3
- package/dist/{ChartBlock-SYOAO1s_.js → ChartBlock-vihMKVdW.js} +85 -112
- package/dist/{CheckIcon-BjPbytbt.js → CheckIcon-BH9EAoee.js} +2 -3
- package/dist/{Checkout-JdT81S88.js → Checkout-B2FvX6Af.js} +356 -368
- package/dist/Checkout-y0x-v-XH.js +1995 -0
- package/dist/{ChevronDownIcon-O-Q8C_Qg.js → ChevronDownIcon-Bkts84qA.js} +2 -3
- package/dist/{ChevronRightOutline-CiG8UHni.js → ChevronRightOutline-D-5Qw6-Y.js} +2 -4
- package/dist/CloseIcon-DRlYvIPc.js +24 -0
- package/dist/{CloseOutline-qpVa62mu.js → CloseOutline-Bh9UO94v.js} +1 -2
- package/dist/CollectionView-CcLlV-1f.js +129 -0
- package/dist/CropImage-DqLAGy5s.js +547 -0
- package/dist/DatePicker-D20Te0JY.js +657 -0
- package/dist/{EmptyState-CMFePII9.js → EmptyState-BhK78ogy.js} +10 -12
- package/dist/{Event-BHnHfeO-.js → Event-DoIU0o6C.js} +1199 -1202
- package/dist/{EventCard-DIFJADV7.js → EventCard-B8MYLyIW.js} +15 -15
- package/dist/EventPage-DM4tjCcL.js +1298 -0
- package/dist/{ExclamationCircleOutline-D3XbhOwM.js → ExclamationCircleOutline-CPelT1Bu.js} +1 -2
- package/dist/FilterChipGroup-BCjc7-pE.js +103 -0
- package/dist/Grid-DRRXcWRE.js +41 -0
- package/dist/{Heading-vOVPxhJF.js → Heading-WcF3Rh3o.js} +4 -6
- package/dist/Image-dhbgrhG-.js +89 -0
- package/dist/ImageUploader-BzxKIyLN.js +999 -0
- package/dist/{Input-BG9DbwUe.js → Input-Bp5EgI1F.js} +47 -45
- package/dist/LiveRegion-Ds0mjIVj.js +17 -0
- package/dist/{LocationIcon-BEx96ng8.js → LocationIcon-BNPEzWv2.js} +3 -5
- package/dist/Modal-C6EXgkuF.js +159 -0
- package/dist/ModalFooter-C4TD3-zP.js +299 -0
- package/dist/ModalTitle-BP4Bm3sA.js +26 -0
- package/dist/{PasswordInput-BQdpZ9HL.js → PasswordInput-BlzSrkPs.js} +11 -13
- package/dist/{PhoneInput-5l-M5ykF.js → PhoneInput-_ByjRGQ0.js} +80 -89
- package/dist/{RecommendationsRail-BRthm1Iu.js → RecommendationsRail-BDNnbL-p.js} +161 -172
- package/dist/RequiredIndicator-CRZ_coyR.js +16 -0
- package/dist/Search-vhGEpog6.js +82 -0
- package/dist/SearchIcon-BzOhoKm8.js +24 -0
- package/dist/SeriesPage-YE8czX1M.js +32 -0
- package/dist/SheetHandle-CCfYCPbY.js +66 -0
- package/dist/SkeletonLoader-Beh2izdy.js +121 -0
- package/dist/Spinner-DgubkWKo.js +88 -0
- package/dist/Stack-Ck1wrJ0l.js +34 -0
- package/dist/{Success-DWdMk7gp.js → Success-CN5HB8gN.js} +271 -305
- package/dist/{TagIcon-BIJYPXYq.js → TagIcon-Dp7n6eKU.js} +2 -3
- package/dist/TimePicker-BDuy9Ap8.js +215 -0
- package/dist/ValidationError-BxKB_SVA.js +48 -0
- package/dist/{ViewTicketsEmbed-CjH3N_VJ.js → ViewTicketsEmbed-DvoMIiKJ.js} +226 -244
- package/dist/{WarningCircleIcon-Uuc8KHJN.js → WarningCircleIcon-jC3nXehu.js} +4 -7
- package/dist/{WarningTriIcon-SX24XObM.js → WarningTriIcon-BMa-jcUr.js} +2 -3
- package/dist/address-field-DOalICpt.js +295 -0
- package/dist/{href-ZuPjzr6t.js → allowlist-DinkGF2L.js} +254 -316
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +331 -322
- package/dist/api/client.d.ts +14 -53
- package/dist/api/cta.d.ts +4 -0
- package/dist/api/events.d.ts +28 -1
- package/dist/api/result.d.ts +9 -0
- package/dist/api-CsAx0rmV.js +507 -0
- package/dist/avatar-picker-field-CV4vRxTB.js +115 -0
- package/dist/{browser-BzcyBbWS.js → browser-DEUBVMmV.js} +8 -9
- package/dist/bundle-mjs-COnlheJX.js +1776 -0
- package/dist/{buyerEmail-BfCq-gDt.js → buyerEmail-CvPpEiON.js} +2 -3
- package/dist/checkout-libs/4.3.139/phone.js +6 -0
- package/dist/checkout-libs/{4.3.136 → 4.3.139}/qrcode.js +3 -3
- package/dist/{checkoutState-wrwq9TD7.js → checkoutState-DSx7g3Vy.js} +18 -30
- package/dist/classNames-CPSQ9uy4.js +25 -0
- package/dist/clickOutside-D448uRpo.js +22 -0
- package/dist/{client-SmFkruvn.js → client-SaDt6559.js} +22 -19
- package/dist/colors-CdP193E5.js +106 -0
- package/dist/colors-D67OMr_8.js +22 -0
- package/dist/{constants-D_7LswXe.js → constants-sRRJh0u-.js} +3 -5
- package/dist/controlAria-Do9QK0WI.js +13 -0
- package/dist/{copyToClipboard-BzoArVPb.js → copyToClipboard-CjNjDZeW.js} +3 -5
- package/dist/createErrorGate.svelte-DUXI6Yor.js +82 -0
- package/dist/date-field-DylJx0y7.js +88 -0
- package/dist/date-range-field-BOV1V2ab.js +163 -0
- package/dist/{de-DC0pKC1H.js → de-CzkX3H3B.js} +2 -2
- package/dist/{de-BbjhLBzm.js → de-vKpbo9Zl.js} +1 -2
- package/dist/defaultLabels-DLK6rq4q.js +564 -0
- package/dist/defaults-Cbuin1WS.js +147 -0
- package/dist/deprecation-BCjqE5lW.js +4 -0
- package/dist/{dist-bwbfGPKR.js → dist-Dptst9ym.js} +2 -4
- package/dist/{es-38yS4d3G.js → es-8qe0Mo-8.js} +1 -2
- package/dist/{es-DxoJfXOC.js → es-BOLzv8eD.js} +2 -2
- package/dist/{event-DXsgCbu0.js → event-ClsLWtR0.js} +3 -4
- package/dist/event-transform-Cs63X0hI.js +250 -0
- package/dist/{eventStatusStream-JWP2AXnQ.js → eventStatusStream-BAh5nJP2.js} +4 -7
- package/dist/field-rules-Yb2JY1qT.js +416 -0
- package/dist/file-field-Dwo80kDg.js +210 -0
- package/dist/{filepond-plugin-file-validate-size-DNnItZ84.js → filepond-plugin-file-validate-size-CuNOjGbP.js} +20 -27
- package/dist/{filepond-plugin-file-validate-type-CUMTkI8X.js → filepond-plugin-file-validate-type-CVtQwdIK.js} +25 -27
- package/dist/{filepond-plugin-image-exif-orientation-GEwHZTBU.js → filepond-plugin-image-exif-orientation-CMPs7yGQ.js} +21 -23
- package/dist/{filepond-plugin-image-preview-DKfgAnVa.js → filepond-plugin-image-preview-DKsOZAGe.js} +12 -27
- package/dist/{floatingPosition-XIv5DYuP.js → floatingPosition-BCUPmGCN.js} +8 -13
- package/dist/format-CehusdDg.js +1718 -0
- package/dist/formatters-DUWbI_Eg.js +103 -0
- package/dist/foundryRuntime-DKyfdkUY.js +13 -0
- package/dist/{fr-LivMhlfx.js → fr-BmpShjUG.js} +1 -2
- package/dist/{fr-DCdoZpLm.js → fr-DYTIBBXo.js} +2 -2
- package/dist/{gate-password-cache-oOcDm9Ki.js → gate-password-cache-zIbewXQ2.js} +1 -2
- package/dist/hexToHsl-D-BPy03y.js +24 -0
- package/dist/href-BXhNawil.js +18 -0
- package/dist/i18n-BNF6a-QA.js +720 -0
- package/dist/i18n-F_QOaHVh.js +26 -0
- package/dist/iconWeight-BRXEDAh2.js +12 -0
- package/dist/{id-XuEVsPu6.js → id-CIyIkGhH.js} +2 -2
- package/dist/{id-BvOr8-aw.js → id-_6GFAYBn.js} +1 -2
- package/dist/image-field-DeLzsJlz.js +139 -0
- package/dist/{imageUrl-xyMedKrE.js → imageUrl-iAS2Xo17.js} +1 -2
- package/dist/{it-RdUTxnO5.js → it-CF4Db_nK.js} +2 -2
- package/dist/{it-mzikQJIm.js → it-Dc-H_PdY.js} +1 -2
- package/dist/{ja-DgVJimHs.js → ja-5-7WNHD1.js} +2 -2
- package/dist/{ja-D9PSUNMd.js → ja-Cobhk-xH.js} +1 -2
- package/dist/keyboard-Dk2PfrEz.js +28 -0
- package/dist/{ko-DEgW43V6.js → ko-CyTlg6vA.js} +1 -2
- package/dist/{ko-CcPM8_aU.js → ko-huIzHR3W.js} +2 -2
- package/dist/labels-CjSrA6gx.js +9 -0
- package/dist/{lazyOnce-CCfEO1xG.js → lazyOnce-jG8k1apa.js} +1 -2
- package/dist/loaders.static-Bw9asjrm.js +3 -0
- package/dist/locales/4.3.139/main/de.js +1 -0
- package/dist/locales/4.3.139/main/es.js +1 -0
- package/dist/locales/4.3.139/main/fr.js +1 -0
- package/dist/locales/4.3.139/main/id.js +1 -0
- package/dist/locales/4.3.139/main/it.js +1 -0
- package/dist/locales/4.3.139/main/ja.js +1 -0
- package/dist/locales/4.3.139/main/ko.js +1 -0
- package/dist/locales/4.3.139/main/nl.js +1 -0
- package/dist/locales/4.3.139/main/pl.js +1 -0
- package/dist/locales/4.3.139/main/pt-br.js +1 -0
- package/dist/locales/4.3.139/main/tr.js +1 -0
- package/dist/locales/4.3.139/main/zh.js +1 -0
- package/dist/logger-DM8WW61-.js +89 -0
- package/dist/look-island.svelte-D87MvHNy.js +1296 -0
- package/dist/look-names-B9MywEzX.js +185 -0
- package/dist/looks/4.3.139/AddOnCard-CKdkGcHH.js +1 -0
- package/dist/looks/4.3.139/Checkout-D7CaFYTE.js +1 -0
- package/dist/looks/4.3.139/Checkout-DuP46PMi.js +3 -0
- package/dist/looks/4.3.139/CollectionView-CWm57JCx.js +1 -0
- package/dist/looks/4.3.139/Event-ePupb4qY.js +8 -0
- package/dist/looks/4.3.139/EventPage-CgexXhEU.js +1 -0
- package/dist/looks/4.3.139/RecommendationsRail-Bz-Mj_r4.js +2 -0
- package/dist/looks/4.3.139/SeriesPage-DI2uFF0Y.js +1 -0
- package/dist/looks/4.3.139/Success-BkMzmgmc.js +3 -0
- package/dist/looks/4.3.139/ViewTicketsEmbed-CbEJwRry.js +1 -0
- package/dist/looks/4.3.139/_vc-foundry-calendar-stub-BVbAFEK2.js +1 -0
- package/dist/looks/4.3.139/buyerEmail-CqCYa9UL.js +1 -0
- package/dist/looks/4.3.139/constants-CU_ZgyQu.js +3 -0
- package/dist/looks/4.3.139/defaults-B46SFFK4.js +2 -0
- package/dist/looks/4.3.139/dist-BWGSqtWN.js +1 -0
- package/dist/looks/4.3.139/eventStatusStream-CW5lJwsa.js +10 -0
- package/dist/looks/4.3.139/first-core-DrYq9wBy.js +151 -0
- package/dist/looks/4.3.139/first-mount.svelte-DFSLaJWm.js +1 -0
- package/dist/looks/4.3.139/first-seo-DvHuCXT6.js +1 -0
- package/dist/looks/4.3.139/first.js +1 -0
- package/dist/looks/4.3.139/full-widget-DDBk3i4U.js +2 -0
- package/dist/looks/4.3.139/gate-password-cache-D4Zls6QM.js +1 -0
- package/dist/looks/4.3.139/i18n-DRaFNYsQ.js +1 -0
- package/dist/looks/4.3.139/listing-BSaRTkxW.js +1 -0
- package/dist/looks/4.3.139/loaders.runtime-BNG8O6-A.js +1 -0
- package/dist/looks/4.3.139/looks.js +1 -0
- package/dist/looks/4.3.139/modalManager.svelte-CqQWYz9Y.js +1 -0
- package/dist/looks/4.3.139/rolldown-runtime-4tVxZq34.js +1 -0
- package/dist/looks/4.3.139/serverTotals-Bu1fAPLB.js +1 -0
- package/dist/looks/4.3.139/showcase-state-options-CpCMAKVD.js +1 -0
- package/dist/looks/4.3.139/utils-pGRhH4A-.js +1 -0
- package/dist/media-field-PW8ye6EL.js +65 -0
- package/dist/modalManager.svelte-BHE0t9q3.js +79 -0
- package/dist/multiselect-field-CmocFs5f.js +61 -0
- package/dist/navigation-B8rkS2On.js +348 -0
- package/dist/{nl-DdxH5fLm.js → nl-B1dv1lqk.js} +2 -2
- package/dist/{nl-DjFukZvI.js → nl-BObQMscG.js} +1 -2
- package/dist/{normalizers-CqGXhPZo.js → normalizers-WYh8Nr3V.js} +3 -5
- package/dist/number-field-CUD936Ai.js +126 -0
- package/dist/numeric-filter-field-BmgSYhOt.js +131 -0
- package/dist/password-field-BfvcZUi_.js +157 -0
- package/dist/phone-CVYVhLn8.js +5 -0
- package/dist/phone-field-DO0U_YZ6.js +128 -0
- package/dist/{phoneShape-DlWC17He.js → phoneShape-VqbamHOn.js} +1 -2
- package/dist/{phoneUtils-CL8tIxoM.js → phoneUtils-BhOvrS4S.js} +133 -193
- package/dist/{pixels-DO7kbZa_.js → pixels-ipedGW6i.js} +18 -24
- package/dist/{pl-B99nQZCh.js → pl-DLlM_IPo.js} +2 -2
- package/dist/{pl-COAiNJDs.js → pl-_Sbz4Ou-.js} +1 -2
- package/dist/portal-BSuo4flQ.js +64 -0
- package/dist/portalContainment-DSZUw-No.js +78 -0
- package/dist/{pt-br-jT56QM8s.js → pt-br-8V3mf7pu.js} +2 -2
- package/dist/{pt-br-_KntrgGE.js → pt-br-CpmhafxS.js} +1 -2
- package/dist/qrcode-By7ce_6K.js +5 -0
- package/dist/repeating-field-BwtJ6VS1.js +488 -0
- package/dist/richtext-field-DvLCxPvq.js +212 -0
- package/dist/{rolldown-runtime-DtPi1Y-2.js → rolldown-runtime-CYdcPHCu.js} +2 -3
- package/dist/scarcity-DfQvyhJP.js +165 -0
- package/dist/searchable-select-field-zuIqfoQM.js +138 -0
- package/dist/select-field-DNNN-a9q.js +72 -0
- package/dist/seo/HostSeoController.d.ts +13 -0
- package/dist/seo/seo.cjs +1 -1
- package/dist/seo/seo.mjs +42 -53
- package/dist/seo/types.d.ts +4 -1
- package/dist/serverTotals-BprgDwOw.js +950 -0
- package/dist/{showcase-state-options-D5UTR7zF.js → showcase-state-options-bKRf48yz.js} +5 -5
- package/dist/sizing-Chy28j6-.js +61 -0
- package/dist/{sortable.esm--ZtTTTPp.js → sortable.esm-Wq6bSSEz.js} +29 -49
- package/dist/spacing-Y1dLegqt.js +48 -0
- package/dist/{src-DZgagYE3.js → src-BpVpi-n3.js} +256 -398
- package/dist/time-field-DmPCoppV.js +53 -0
- package/dist/to-event-card-props-KVcCJ2JF.js +245 -0
- package/dist/{tr-8IIuKwpQ.js → tr-CN8DGCc-.js} +1 -2
- package/dist/{tr-B5sI__p7.js → tr-DiUEV65j.js} +2 -2
- package/dist/transitions-DST-mWoo.js +201 -0
- package/dist/tree-picker-field-BJwSFAqm.js +344 -0
- package/dist/types/index.d.ts +5 -1
- package/dist/typography-CKwYSv07.js +57 -0
- package/dist/{utils-S6mZHEaC.js → utils-x8YXRKvr.js} +16 -19
- package/dist/variants-B46fK2iV.js +63 -0
- package/dist/venue-BjLCg-PW.js +38 -0
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +1822 -1872
- package/dist/venue-calendar.iife.js +1 -69
- package/dist/venue-calendar.umd.js +77 -79
- package/dist/{widget-key-context-Xn6MT23x.js → widget-key-context-dHM9FiuJ.js} +34 -78
- package/dist/{zh-apNTBV5B.js → zh-BaZ_hYJV.js} +1 -2
- package/dist/{zh-DLwlt3JO.js → zh-Cej2EPQt.js} +2 -2
- package/package.json +14 -14
- package/src/lib/constants/scarcity.ts +1 -2
- package/src/lib/theme.js +222 -222
- package/dist/AddOnCard-Ck_b8lsf.js +0 -351
- package/dist/BlockPlaceholder-Cjbm5hoG.js +0 -52
- package/dist/Button-B58iYo_t.js +0 -1951
- package/dist/Button-VUB2WJ88.js +0 -178
- package/dist/Calendar-B6yNPdBl.js +0 -466
- package/dist/CalendarFoundryView-BfGZj-_Z.js +0 -21608
- package/dist/CartView-CA_wZlil.js +0 -2304
- package/dist/Checkbox-BtJwg_CF.js +0 -61
- package/dist/Checkout-C_Dn_RZI.js +0 -1878
- package/dist/CheckoutTimer-DzYupNUI.js +0 -44
- package/dist/CloseIcon-40klpaYz.js +0 -35
- package/dist/CollectionView-Dp529P99.js +0 -141
- package/dist/CropImage-D1M-bKxG.js +0 -548
- package/dist/EventPage-DGrkeBd_.js +0 -1356
- package/dist/Grid-kuP6V0GW.js +0 -89
- package/dist/Modal-rt9KVfYa.js +0 -103
- package/dist/ModalFooter-Cru7v0io.js +0 -394
- package/dist/ModalHeader-CpgkuttK.js +0 -18
- package/dist/ScarcityBadge-Dt0r5r2M.js +0 -145
- package/dist/SeriesPage-0sHD6hcq.js +0 -35
- package/dist/Spinner-e-Mg0Eyb.js +0 -19
- package/dist/Textarea-Cymhixzd.js +0 -72
- package/dist/__SKIP_NAVIGATION__-AOx8SI54.js +0 -6
- package/dist/__SKIP_PATHS__-C0ixDSSm.js +0 -6
- package/dist/action-test-id-7RXdHucW.js +0 -145
- package/dist/adapter-z116JHU0.js +0 -164
- package/dist/api-Dvn2tGdx.js +0 -489
- package/dist/checkout-libs/4.3.136/phone.js +0 -6
- package/dist/controlAria-CGb-KeRn.js +0 -30
- package/dist/createErrorGate.svelte-CZVc_TpX.js +0 -114
- package/dist/cta-CTb57V0F.js +0 -116
- package/dist/datetime-Co_z9IUQ.js +0 -410
- package/dist/defaultLabels-Q5_A1ZrR.js +0 -2558
- package/dist/defaults-BDbx3_c0.js +0 -96
- package/dist/event-transform-iOZIJrTf.js +0 -353
- package/dist/i18n-Xwod-PFp.js +0 -497
- package/dist/i18n-cI0EPfvw.js +0 -28
- package/dist/imageOptimizer-Gew5vPWh.js +0 -224
- package/dist/keyboard-DhCcdIyh.js +0 -55
- package/dist/labels-BGvfcm36.js +0 -228
- package/dist/loaders.static-xwcJwfk2.js +0 -4
- package/dist/locales/4.3.136/main/de.js +0 -1
- package/dist/locales/4.3.136/main/es.js +0 -1
- package/dist/locales/4.3.136/main/fr.js +0 -1
- package/dist/locales/4.3.136/main/id.js +0 -1
- package/dist/locales/4.3.136/main/it.js +0 -1
- package/dist/locales/4.3.136/main/ja.js +0 -1
- package/dist/locales/4.3.136/main/ko.js +0 -1
- package/dist/locales/4.3.136/main/nl.js +0 -1
- package/dist/locales/4.3.136/main/pl.js +0 -1
- package/dist/locales/4.3.136/main/pt-br.js +0 -1
- package/dist/locales/4.3.136/main/tr.js +0 -1
- package/dist/locales/4.3.136/main/zh.js +0 -1
- package/dist/look-island.svelte-BldqMkPS.js +0 -1305
- package/dist/looks/4.3.136/looks.js +0 -242
- package/dist/modalManager.svelte-Cz_6x1Qd.js +0 -37
- package/dist/navigation-D6W4anEV.js +0 -245
- package/dist/phone-D76_-CNi.js +0 -6
- package/dist/portal-D-oaEWsY.js +0 -43
- package/dist/portalContainment-CeAVqIb-.js +0 -281
- package/dist/qrcode-Cehaq1db.js +0 -6
- package/dist/serverTotals-C-S3hONA.js +0 -712
- package/dist/sizing-B7ixYndz.js +0 -216
- package/dist/to-event-card-props-CPYickue.js +0 -205
- package/dist/venue-BBoZBuhu.js +0 -13
- /package/dist/locales/{4.3.136 → 4.3.139}/flow/de.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.139}/flow/es.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.139}/flow/fr.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.139}/flow/id.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.139}/flow/it.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.139}/flow/ja.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.139}/flow/ko.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.139}/flow/nl.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.139}/flow/pl.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.139}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.139}/flow/tr.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.139}/flow/zh.js +0 -0
- /package/dist/looks/{4.3.136 → 4.3.139}/micdrop-wordmark-BYMG6vLR.svg +0 -0
- /package/dist/looks/{4.3.136 → 4.3.139}/microphone-Ccv4r-kd.webp +0 -0
- /package/dist/looks/{4.3.136 → 4.3.139}/superuser-CZF6a5gO.webp +0 -0
- /package/dist/looks/{4.3.136 → 4.3.139}/treasury-DUE7lZzT.webp +0 -0
- /package/dist/looks/{4.3.136 → 4.3.139}/user-image-yuS4errP.svg +0 -0
package/dist/api/client.d.ts
CHANGED
|
@@ -24,12 +24,10 @@ export interface ApiRequestOptions extends RequestInit {
|
|
|
24
24
|
* Skip the global `onError` handler for this call.
|
|
25
25
|
*
|
|
26
26
|
* For endpoints where a non-2xx is an EXPECTED, handled answer rather than a
|
|
27
|
-
* fault
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* in CartView survived (and broke every venue-hosted embed, which cannot
|
|
32
|
-
* reach a URL pinned to our own origin under its own CSP/consent rules).
|
|
27
|
+
* fault. Without this the caller has to bypass the whole api-client with a
|
|
28
|
+
* raw `fetch` just to avoid emitting API-error noise on the happy path — and a
|
|
29
|
+
* raw `fetch` pinned to our own origin breaks every venue-hosted embed, which
|
|
30
|
+
* cannot reach it under its own CSP/consent rules.
|
|
33
31
|
*/
|
|
34
32
|
suppressOnError?: boolean;
|
|
35
33
|
}
|
|
@@ -122,53 +120,6 @@ export declare function apiGet<T>(endpoint: string, options?: ApiRequestOptions)
|
|
|
122
120
|
export declare function apiPost<T>(endpoint: string, body?: unknown, options?: ApiRequestOptions): Promise<ApiResult<T>>;
|
|
123
121
|
export declare function apiPut<T>(endpoint: string, body?: unknown, options?: ApiRequestOptions): Promise<ApiResult<T>>;
|
|
124
122
|
export declare function apiDelete<T>(endpoint: string, options?: ApiRequestOptions): Promise<ApiResult<T>>;
|
|
125
|
-
/** One priced line in a tax quote. `amountCents` is the LINE total, not unit. */
|
|
126
|
-
export interface TaxPreviewLineItem {
|
|
127
|
-
amountCents: number;
|
|
128
|
-
reference: string;
|
|
129
|
-
quantity: number;
|
|
130
|
-
}
|
|
131
|
-
export interface TaxPreviewRequest {
|
|
132
|
-
venueId: number;
|
|
133
|
-
/** WHICH SHOW the quote is for — honours a per-event tax exemption (MIC-2606). */
|
|
134
|
-
eventId?: number;
|
|
135
|
-
lineItems: TaxPreviewLineItem[];
|
|
136
|
-
/** Order-level promo discount in integer cents (MIC-2567). */
|
|
137
|
-
discountCents?: number;
|
|
138
|
-
/** Ask the server for the authoritative service fee alongside the tax. */
|
|
139
|
-
computeServiceFee?: boolean;
|
|
140
|
-
}
|
|
141
|
-
/** Both fields are integer CENTS, and both are contract-optional. */
|
|
142
|
-
export interface TaxPreviewResponse {
|
|
143
|
-
taxTotal?: number;
|
|
144
|
-
serviceFeeCents?: number;
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* Server-authoritative tax (and, optionally, service fee) quote.
|
|
148
|
-
*
|
|
149
|
-
* Exists so the cart summary does not have to bypass this client to get one.
|
|
150
|
-
* The raw `fetch` it replaces hardcoded `https://get-micdrop.com/...`, which is
|
|
151
|
-
* the whole third-party-domain bug in one line: an embed on a venue's own
|
|
152
|
-
* domain could not retarget it at all, so a self-hosted or proxied deployment
|
|
153
|
-
* quoted tax from the wrong origin (or, under a strict CSP, not at all).
|
|
154
|
-
*
|
|
155
|
-
* `suppressOnError` defaults TRUE because a 422 here is a documented, handled
|
|
156
|
-
* answer — "this venue has no address configured for Stripe Tax, show $0" — and
|
|
157
|
-
* routing it through the global onError handler is what made the raw fetch look
|
|
158
|
-
* necessary. Callers still see the 422 in `statusCode` and must apply their own
|
|
159
|
-
* fallback; genuine 5xx/network failures are theirs to log.
|
|
160
|
-
*
|
|
161
|
-
* @param req - the quote request; `lineItems` may be empty, but prefer not
|
|
162
|
-
* calling at all in that case (the server has nothing to price).
|
|
163
|
-
* @param options.signal - abort a superseded quote. An abort comes back as
|
|
164
|
-
* `{ aborted: true }`, NOT as a failure, so a debouncing caller can return
|
|
165
|
-
* early without clobbering the numbers it is still showing.
|
|
166
|
-
*/
|
|
167
|
-
export declare function taxPreview(req: TaxPreviewRequest, options?: {
|
|
168
|
-
signal?: AbortSignal;
|
|
169
|
-
suppressOnError?: boolean;
|
|
170
|
-
widgetKey?: string;
|
|
171
|
-
}): Promise<ApiResult<TaxPreviewResponse>>;
|
|
172
123
|
/**
|
|
173
124
|
* Whether a GET to `url` answers 2xx. Reads no body and reports nothing.
|
|
174
125
|
*
|
|
@@ -187,4 +138,14 @@ export declare function apiResponds(url: string, options?: Pick<ApiRequestOption
|
|
|
187
138
|
* credentials; see the apiRequest comment for why that is the point.
|
|
188
139
|
*/
|
|
189
140
|
export declare function simpleFetch<T>(url: string, options?: RequestInit & Pick<ApiRequestOptions, 'widgetKey'>): Promise<T | null>;
|
|
141
|
+
/**
|
|
142
|
+
* simpleFetch that also hands back the HTTP status of a refused request, so a
|
|
143
|
+
* loader can tell a 403 (this site may not read this calendar) from a network
|
|
144
|
+
* or server failure. `status` is 0 when no response arrived at all.
|
|
145
|
+
*/
|
|
146
|
+
export declare const simpleFetchWithStatus: typeof requestJson;
|
|
147
|
+
declare function requestJson<T>(url: string, options?: RequestInit & Pick<ApiRequestOptions, 'widgetKey'>): Promise<{
|
|
148
|
+
data: T | null;
|
|
149
|
+
status: number;
|
|
150
|
+
}>;
|
|
190
151
|
export {};
|
package/dist/api/cta.d.ts
CHANGED
|
@@ -36,6 +36,10 @@ interface CtaEvent {
|
|
|
36
36
|
}
|
|
37
37
|
interface CtaTicket {
|
|
38
38
|
salesChannel?: number;
|
|
39
|
+
/** The backend-resolved window for a relative-offset ticket; the raw
|
|
40
|
+
* `salesBegin`/`salesEnd` can be stale beside it, so these win. */
|
|
41
|
+
effectiveSalesBegin?: string | null;
|
|
42
|
+
effectiveSalesEnd?: string | null;
|
|
39
43
|
salesBegin?: string | null;
|
|
40
44
|
salesStart?: string | null;
|
|
41
45
|
saleBegin?: string | null;
|
package/dist/api/events.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare function fetchEventDetailsResult(eventId: string | number, custom
|
|
|
21
21
|
* Gets full event information including venue and ticket data.
|
|
22
22
|
*
|
|
23
23
|
* Fail-open adapter over {@link fetchEventDetailsResult}: existing in-widget
|
|
24
|
-
* callers (Checkout,
|
|
24
|
+
* callers (Checkout, EventPage) keep degrading to `null` on any
|
|
25
25
|
* failure. SSR loaders that need to answer 404-vs-503 use the Result variant.
|
|
26
26
|
*
|
|
27
27
|
* @param eventId - The event ID
|
|
@@ -84,6 +84,33 @@ export declare function fetchVenueEvents(venueId: string | number, req?: Pick<Ap
|
|
|
84
84
|
export interface MonthReadOptions {
|
|
85
85
|
fresh?: boolean;
|
|
86
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* Park the first month a widget config carried, so the organization month read
|
|
89
|
+
* that the calendar makes on mount is answered from it (MIC-6380).
|
|
90
|
+
*
|
|
91
|
+
* `firstMonth` is the config's `firstMonth` — `{ year, month, events }`, month
|
|
92
|
+
* 1-12 — and anything else is ignored, which leaves the calendar fetching its
|
|
93
|
+
* month exactly as before. The calendar opens on the visitor's local month; if
|
|
94
|
+
* the API answered a different one (a visitor in another timezone around a
|
|
95
|
+
* month change), the keys differ and nothing is taken from here.
|
|
96
|
+
*
|
|
97
|
+
* Returns whether a month was parked.
|
|
98
|
+
*/
|
|
99
|
+
export declare function primeOrgMonthEvents(orgId: string | number, firstMonth: unknown, req?: Pick<ApiRequestOptions, 'widgetKey'>): boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Park months the embed's first piece already read (src/lib/split), so the full
|
|
102
|
+
* widget it hands over to draws from them instead of asking again.
|
|
103
|
+
*
|
|
104
|
+
* Same hand-off as `primeOrgMonthEvents`, for whichever feed the calendar
|
|
105
|
+
* reads: the organization feed when `organizationId` is set, else the venue
|
|
106
|
+
* feed — CalendarContainer.loadMonthEvents' own rule. Parked at the moment of
|
|
107
|
+
* the hand-over, so the TTL counts from then: the data is exactly as old as the
|
|
108
|
+
* card the visitor is looking at.
|
|
109
|
+
*/
|
|
110
|
+
export declare function primeMonthEvents(feed: {
|
|
111
|
+
organizationId?: string | number;
|
|
112
|
+
venueId?: string | number;
|
|
113
|
+
}, year: number, month: number, events: Event[], req?: Pick<ApiRequestOptions, 'widgetKey'>): boolean;
|
|
87
114
|
export declare function getMonthEventsResult(venueId: string | number, year: number, month: number, options?: MonthReadOptions, req?: Pick<ApiRequestOptions, 'widgetKey'>): Promise<Result<Event[]>>;
|
|
88
115
|
export declare function getMonthEvents(venueId: string | number, year: number, month: number, req?: Pick<ApiRequestOptions, 'widgetKey'>): Promise<Event[]>;
|
|
89
116
|
/**
|
package/dist/api/result.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export type Result<T> = {
|
|
|
29
29
|
ok: false;
|
|
30
30
|
error: string;
|
|
31
31
|
notFound?: boolean;
|
|
32
|
+
forbidden?: boolean;
|
|
32
33
|
};
|
|
33
34
|
/** Wrap a successful value. */
|
|
34
35
|
export declare function ok<T>(data: T): Result<T>;
|
|
@@ -49,6 +50,13 @@ export declare function err(error: string): Result<never>;
|
|
|
49
50
|
* channel exists to prevent (a fetch blip becoming a permanent 404).
|
|
50
51
|
*/
|
|
51
52
|
export declare function errNotFound(error: string): Result<never>;
|
|
53
|
+
/**
|
|
54
|
+
* Wrap a refusal (upstream 403): the API will not answer this caller at all —
|
|
55
|
+
* on the public surface, a widget on a domain the venue has not allowed, or
|
|
56
|
+
* one sent without its key. Retrying cannot help, so a caller shows that the
|
|
57
|
+
* calendar is not enabled for the site rather than a connection error.
|
|
58
|
+
*/
|
|
59
|
+
export declare function errForbidden(error: string): Result<never>;
|
|
52
60
|
/** Narrowing guard — true when the result carries data. */
|
|
53
61
|
export declare function isOk<T>(result: Result<T>): result is {
|
|
54
62
|
ok: true;
|
|
@@ -67,6 +75,7 @@ export declare function isErr<T>(result: Result<T>): result is {
|
|
|
67
75
|
ok: false;
|
|
68
76
|
error: string;
|
|
69
77
|
notFound?: boolean;
|
|
78
|
+
forbidden?: boolean;
|
|
70
79
|
};
|
|
71
80
|
/**
|
|
72
81
|
* Collapse a Result to its data, substituting `fallback` on failure.
|
|
@@ -0,0 +1,507 @@
|
|
|
1
|
+
import { t as e } from "./logger-DM8WW61-.js";
|
|
2
|
+
import { B as t, W as n } from "./format-CehusdDg.js";
|
|
3
|
+
import { t as r } from "./AppError-t1LnBwj_.js";
|
|
4
|
+
import { a as i } from "./formatters-DUWbI_Eg.js";
|
|
5
|
+
import { a, i as o } from "./normalizers-WYh8Nr3V.js";
|
|
6
|
+
import { S as s, u as ee } from "./widget-key-context-dHM9FiuJ.js";
|
|
7
|
+
import { c, d as l, f as u, n as d, r as f, s as p, t as te, u as m } from "./client-SaDt6559.js";
|
|
8
|
+
import { l as h } from "./navigation-B8rkS2On.js";
|
|
9
|
+
// node_modules/@getmicdrop/svelte-components/dist/utils/liveAnnouncer.js
|
|
10
|
+
var g = null;
|
|
11
|
+
function _() {
|
|
12
|
+
return g && document.body.contains(g) || (g = document.createElement("div"), g.id = "a11y-live-region", g.setAttribute("role", "status"), g.setAttribute("aria-live", "polite"), g.setAttribute("aria-atomic", "true"), g.className = "sr-only", Object.assign(g.style, {
|
|
13
|
+
position: "absolute",
|
|
14
|
+
width: "1px",
|
|
15
|
+
height: "1px",
|
|
16
|
+
padding: "0",
|
|
17
|
+
margin: "-1px",
|
|
18
|
+
overflow: "hidden",
|
|
19
|
+
clip: "rect(0, 0, 0, 0)",
|
|
20
|
+
whiteSpace: "nowrap",
|
|
21
|
+
border: "0"
|
|
22
|
+
}), document.body.appendChild(g)), g;
|
|
23
|
+
}
|
|
24
|
+
function v(e, t = {}) {
|
|
25
|
+
if (typeof document > "u") return;
|
|
26
|
+
let { politeness: n = "polite", atomic: r = !0, delay: i = 100 } = t, a = _();
|
|
27
|
+
a.setAttribute("aria-live", n), a.setAttribute("aria-atomic", String(r)), a.textContent = "", setTimeout(() => {
|
|
28
|
+
typeof document < "u" && a.isConnected && (a.textContent = e);
|
|
29
|
+
}, i);
|
|
30
|
+
}
|
|
31
|
+
function y(e = 500) {
|
|
32
|
+
let t = null;
|
|
33
|
+
return (n, r) => {
|
|
34
|
+
t && clearTimeout(t), t = setTimeout(() => {
|
|
35
|
+
v(n, r), t = null;
|
|
36
|
+
}, e);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
// node_modules/@getmicdrop/svelte-components/dist/errors/classes/NotFoundError.js
|
|
40
|
+
var b = class extends r {
|
|
41
|
+
constructor(e, t) {
|
|
42
|
+
let n = t ? `${e} with ID ${t} not found` : `${e} not found`;
|
|
43
|
+
super(n, "NOT_FOUND", {
|
|
44
|
+
status: 404,
|
|
45
|
+
recoverable: !1,
|
|
46
|
+
details: {
|
|
47
|
+
resourceType: e,
|
|
48
|
+
resourceId: t
|
|
49
|
+
}
|
|
50
|
+
}), this.name = "NotFoundError", this.resourceType = e, this.resourceId = t;
|
|
51
|
+
}
|
|
52
|
+
getUserMessage(e) {
|
|
53
|
+
return a(e)?.fromCode?.(this.code) || o(this.resourceType.toLowerCase());
|
|
54
|
+
}
|
|
55
|
+
}, x = e("VC");
|
|
56
|
+
function ne(e, t) {
|
|
57
|
+
if (e === 404) return "Promo code isn't valid.";
|
|
58
|
+
let n = (t ?? "").toLowerCase();
|
|
59
|
+
return e === 400 ? n.includes("not yet active") ? "Promo code doesn't apply." : n.includes("expired") ? "Promo code expired." : n.includes("limit") ? "Promo code has reached its limit." : "Promo code isn't valid." : "Failed to validate code";
|
|
60
|
+
}
|
|
61
|
+
async function re(e, t, n) {
|
|
62
|
+
try {
|
|
63
|
+
if (!t || !t.trim()) return {
|
|
64
|
+
valid: !1,
|
|
65
|
+
error: "Promo code is required"
|
|
66
|
+
};
|
|
67
|
+
let r = encodeURIComponent(t.trim()), i = await d(`/promo-codes/validate/${e}/${r}`, { widgetKey: n?.widgetKey });
|
|
68
|
+
if (!i.success) return {
|
|
69
|
+
valid: !1,
|
|
70
|
+
error: ne(i.statusCode, i.error)
|
|
71
|
+
};
|
|
72
|
+
let a = i.data;
|
|
73
|
+
return {
|
|
74
|
+
valid: a.valid ?? !0,
|
|
75
|
+
revealHiddenTickets: a.revealHiddenTickets,
|
|
76
|
+
revealTicketIds: a.revealTicketIds,
|
|
77
|
+
provideDiscount: a.provideDiscount,
|
|
78
|
+
discountType: a.discountType,
|
|
79
|
+
amount: a.discount ?? a.amount,
|
|
80
|
+
code: a.name || a.code || t,
|
|
81
|
+
appliesToAllTickets: a.appliesToAllTickets,
|
|
82
|
+
applyToTicketIds: a.applyToTicketIds
|
|
83
|
+
};
|
|
84
|
+
} catch (e) {
|
|
85
|
+
return x.error("Error validating promo code:", e), {
|
|
86
|
+
valid: !1,
|
|
87
|
+
error: "Network error validating code"
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
async function ie(e, t, n, r) {
|
|
92
|
+
try {
|
|
93
|
+
let i = { promoCode: t };
|
|
94
|
+
n && Object.keys(n).length > 0 && (i.productQuantities = n);
|
|
95
|
+
let a = await f(`${p()}/cart/${e}/apply-promo`, i, { widgetKey: r?.widgetKey });
|
|
96
|
+
return a.success ? { success: !0 } : {
|
|
97
|
+
success: !1,
|
|
98
|
+
error: a.error || "Failed to apply promo code"
|
|
99
|
+
};
|
|
100
|
+
} catch (e) {
|
|
101
|
+
return x.error("Error applying promo code:", e), {
|
|
102
|
+
success: !1,
|
|
103
|
+
error: "Network error applying code"
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
// src/lib/api/result.ts
|
|
108
|
+
function S(e) {
|
|
109
|
+
return {
|
|
110
|
+
ok: !0,
|
|
111
|
+
data: e
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
function C(e) {
|
|
115
|
+
return {
|
|
116
|
+
ok: !1,
|
|
117
|
+
error: e
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
function w(e) {
|
|
121
|
+
return {
|
|
122
|
+
ok: !1,
|
|
123
|
+
error: e,
|
|
124
|
+
notFound: !0
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
function T(e) {
|
|
128
|
+
return {
|
|
129
|
+
ok: !1,
|
|
130
|
+
error: e,
|
|
131
|
+
forbidden: !0
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
function E(e) {
|
|
135
|
+
return !e.ok;
|
|
136
|
+
}
|
|
137
|
+
function D(e, t) {
|
|
138
|
+
return e.ok ? e.data : t;
|
|
139
|
+
}
|
|
140
|
+
// src/lib/api/route-manifest.ts
|
|
141
|
+
var O = "/api/v2/public", k = "/api/orders/v2/public", A = "/api/orders/v2", j = "00000000-0000-0000-0000-000000000000";
|
|
142
|
+
`${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}`, `${O}`, `${O}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}`, `${O}`, `${O}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}`, `${O}`, `${O}`, `${O}`, `${O}${j}`, `${k}`, `${k}`, `${k}`, `${k}${j}`, `${k}`, `${k}${j}`, `${k}`, `${k}${j}`, `${k}`, `${k}${j}`, `${k}`, `${k}${j}`, `${k}`, `${k}${j}`, `${k}`, `${k}${j}`, `${k}`, `${k}${j}`, `${k}`, `${k}${j}`, `${A}`, `${A}`, `${k}`, `${k}`, `${k}`, `${k}`, `${k}`, `${k}${j}`, `${O}`, `${O}${j}`;
|
|
143
|
+
// src/lib/api/events.ts
|
|
144
|
+
var M = e("VC"), N = /* @__PURE__ */ new Map();
|
|
145
|
+
async function ae(e, t = fetch, n, r) {
|
|
146
|
+
let i = n ? `${e}:pw` : String(e), a = `${r?.widgetKey ?? ""}|${i}`;
|
|
147
|
+
if (t === fetch) {
|
|
148
|
+
let e = N.get(a);
|
|
149
|
+
if (e) return e;
|
|
150
|
+
}
|
|
151
|
+
let o = (async () => {
|
|
152
|
+
try {
|
|
153
|
+
let i = await t(n ? `${c()}/events/${e}?password=${encodeURIComponent(n)}` : `${c()}/events/${e}`, { headers: u(void 0, r?.widgetKey) });
|
|
154
|
+
if (!i.ok) return i.status === 404 ? w("event_not_found") : (M.error(`Failed to fetch event details: ${i.status}`), C("event_fetch_failed"));
|
|
155
|
+
let a = await i.json();
|
|
156
|
+
return a ? S(a) : w("event_not_found");
|
|
157
|
+
} catch (e) {
|
|
158
|
+
return M.error("Error fetching event details:", e), C("event_fetch_failed");
|
|
159
|
+
}
|
|
160
|
+
})();
|
|
161
|
+
return t === fetch && (N.set(a, o), o.finally(() => {
|
|
162
|
+
N.get(a) === o && N.delete(a);
|
|
163
|
+
})), o;
|
|
164
|
+
}
|
|
165
|
+
async function oe(e, t = fetch, n, r) {
|
|
166
|
+
let i = await ae(e, t, n, r);
|
|
167
|
+
return i.ok ? i.data : null;
|
|
168
|
+
}
|
|
169
|
+
async function P(e, t, n = (e) => e, r) {
|
|
170
|
+
try {
|
|
171
|
+
let { data: i, status: a } = await l(e, { widgetKey: r?.widgetKey });
|
|
172
|
+
return a === 403 ? (M.error(`Refused (${t}): this site may not read it`), T(t)) : i ? S(n(i)) : (M.error(`Failed to load (${t}): network or server error`), C(t));
|
|
173
|
+
} catch (e) {
|
|
174
|
+
return M.error(`Error loading (${t}):`, e), C(t);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
function F(e) {
|
|
178
|
+
return Array.isArray(e) ? e : [];
|
|
179
|
+
}
|
|
180
|
+
async function I(e, t, n) {
|
|
181
|
+
let r = t?.trim(), i = r ? `?promoCode=${encodeURIComponent(r)}` : "";
|
|
182
|
+
return P(`${c()}/tickets/event/${e}${i}`, "tickets_fetch_failed", F, n);
|
|
183
|
+
}
|
|
184
|
+
async function L(e, t, n) {
|
|
185
|
+
return D(await I(e, t, n), []);
|
|
186
|
+
}
|
|
187
|
+
async function R(e, t) {
|
|
188
|
+
return e ? P(`${c()}/venues/organization/${e}`, "venues_fetch_failed", F, t) : (M.warn("fetchAllVenues called without orgId"), C("venues_missing_org_id"));
|
|
189
|
+
}
|
|
190
|
+
async function z(e, t) {
|
|
191
|
+
return D(await R(e, t), []);
|
|
192
|
+
}
|
|
193
|
+
function B(e) {
|
|
194
|
+
return Array.isArray(e) ? e : Array.isArray(e.events) ? e.events : [];
|
|
195
|
+
}
|
|
196
|
+
var V = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), U = 3e4;
|
|
197
|
+
function W(e, t) {
|
|
198
|
+
return `${t?.widgetKey ?? ""}|${e}`;
|
|
199
|
+
}
|
|
200
|
+
function G(e, t, n) {
|
|
201
|
+
if (!t || typeof t != "object") return !1;
|
|
202
|
+
let { year: r, month: i, events: a } = t;
|
|
203
|
+
if (!Number.isInteger(r) || !Number.isInteger(i) || i < 1 || i > 12 || !Array.isArray(a)) return !1;
|
|
204
|
+
let o = q(e, r, i);
|
|
205
|
+
return H.set(W(o, n), {
|
|
206
|
+
events: a,
|
|
207
|
+
at: Date.now()
|
|
208
|
+
}), !0;
|
|
209
|
+
}
|
|
210
|
+
function K(e, t, n) {
|
|
211
|
+
return `${c()}/events/venue/${e}/month/${t}/${n}`;
|
|
212
|
+
}
|
|
213
|
+
function q(e, t, n) {
|
|
214
|
+
return `${c()}/events/organization/${e}/month/${t}/${n}`;
|
|
215
|
+
}
|
|
216
|
+
function se(e) {
|
|
217
|
+
let t = H.get(e);
|
|
218
|
+
return !t || (H.delete(e), Date.now() - t.at > U) ? null : t.events;
|
|
219
|
+
}
|
|
220
|
+
function J(e, t, n, r) {
|
|
221
|
+
let i = W(e, r);
|
|
222
|
+
if (n?.fresh) H.delete(i);
|
|
223
|
+
else {
|
|
224
|
+
let e = V.get(i);
|
|
225
|
+
if (e) return e;
|
|
226
|
+
let t = se(i);
|
|
227
|
+
if (t) return Promise.resolve(S(t));
|
|
228
|
+
}
|
|
229
|
+
let a = P(e, t, (e) => B(e), r);
|
|
230
|
+
return V.set(i, a), a.finally(() => {
|
|
231
|
+
V.get(i) === a && V.delete(i);
|
|
232
|
+
}), a;
|
|
233
|
+
}
|
|
234
|
+
async function ce(e, t, n, r, i) {
|
|
235
|
+
return J(K(e, t, n), "month_events_fetch_failed", r, i);
|
|
236
|
+
}
|
|
237
|
+
async function le(e, t, n, r, i) {
|
|
238
|
+
return J(q(e, t, n), "org_month_events_fetch_failed", r, i);
|
|
239
|
+
}
|
|
240
|
+
async function ue(e, t, n) {
|
|
241
|
+
return P(`${c()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed", void 0, n);
|
|
242
|
+
}
|
|
243
|
+
async function de(e, t, n) {
|
|
244
|
+
let r = await ue(e, t, n);
|
|
245
|
+
return r.ok ? r.data : null;
|
|
246
|
+
}
|
|
247
|
+
async function fe(e, t, n) {
|
|
248
|
+
try {
|
|
249
|
+
let r = t ? `?slug=${encodeURIComponent(t)}` : "", i = await m(`${c()}/resolve/${encodeURIComponent(String(e))}${r}`, { widgetKey: n?.widgetKey });
|
|
250
|
+
if (!i || !i.type) throw new b("entity", String(e));
|
|
251
|
+
return i;
|
|
252
|
+
} catch (e) {
|
|
253
|
+
return M.error("Error resolving public entity:", e), null;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
async function pe(e, t, n) {
|
|
257
|
+
try {
|
|
258
|
+
let r = t ? `${c()}/collections/${e}?password=${encodeURIComponent(t)}` : `${c()}/collections/${e}`, i = await m(r, { widgetKey: n?.widgetKey });
|
|
259
|
+
if (!i) throw new b("collection", String(e));
|
|
260
|
+
return i;
|
|
261
|
+
} catch (e) {
|
|
262
|
+
return M.error("Error fetching collection:", e), null;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
async function me(e, t, n) {
|
|
266
|
+
try {
|
|
267
|
+
let r = await m(`${c()}/events/${e}/check-password`, {
|
|
268
|
+
method: "POST",
|
|
269
|
+
headers: { "Content-Type": "application/json" },
|
|
270
|
+
body: JSON.stringify({ password: t }),
|
|
271
|
+
widgetKey: n?.widgetKey
|
|
272
|
+
});
|
|
273
|
+
return typeof r == "boolean" ? { valid: r } : { valid: r?.valid === !0 };
|
|
274
|
+
} catch (e) {
|
|
275
|
+
return M.error("Error checking event password:", e), { valid: !1 };
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
// src/lib/api/venues.ts
|
|
279
|
+
var Y = e("VC");
|
|
280
|
+
async function he(e, t) {
|
|
281
|
+
try {
|
|
282
|
+
if (!e) return Y.warn("getVenue called without venueId"), null;
|
|
283
|
+
let n = await d(`/venues/${e}`, { widgetKey: t?.widgetKey });
|
|
284
|
+
return n.success ? n.data ?? null : (Y.error(`Failed to fetch venue: ${n.statusCode}`), null);
|
|
285
|
+
} catch (e) {
|
|
286
|
+
return Y.error("Error fetching venue:", e), null;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
async function ge(e, t) {
|
|
290
|
+
let n = h(e);
|
|
291
|
+
if (!n) return !1;
|
|
292
|
+
try {
|
|
293
|
+
let e = await d(`/sites/by-host/${encodeURIComponent(new URL(n).host)}`, { widgetKey: t?.widgetKey });
|
|
294
|
+
return !!(e.success && e.data);
|
|
295
|
+
} catch (e) {
|
|
296
|
+
return Y.warn("hasPublishedSite failed:", e), !1;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
// src/lib/api/transformers/giftCard.ts
|
|
300
|
+
function X(e, t) {
|
|
301
|
+
return e == null || t(e);
|
|
302
|
+
}
|
|
303
|
+
function _e(e) {
|
|
304
|
+
if (typeof e != "object" || !e) return !1;
|
|
305
|
+
let t = e;
|
|
306
|
+
return t.valid === !0 && Number.isInteger(t.appliedAmount) && typeof t.remainingTotal == "number" && Number.isFinite(t.remainingTotal) && X(t.giftCardCode, (e) => typeof e == "string") && X(t.giftCardBalance, (e) => typeof e == "number" && Number.isFinite(e)) && X(t.fullyCoveredByCard, (e) => typeof e == "boolean");
|
|
307
|
+
}
|
|
308
|
+
var ve = "We couldn't apply that gift card. Please try again.";
|
|
309
|
+
function ye(e) {
|
|
310
|
+
if (!_e(e)) return {
|
|
311
|
+
valid: !1,
|
|
312
|
+
error: ve
|
|
313
|
+
};
|
|
314
|
+
let r = e, i = t(n(r.appliedAmount)), a = r.remainingTotal, o = r.fullyCoveredByCard ?? a <= 0, s = !o;
|
|
315
|
+
return {
|
|
316
|
+
valid: !0,
|
|
317
|
+
giftCardCode: r.giftCardCode ?? void 0,
|
|
318
|
+
giftCardAmount: i,
|
|
319
|
+
giftCardBalance: r.giftCardBalance ?? void 0,
|
|
320
|
+
paymentType: o ? "gift_card_only" : "split",
|
|
321
|
+
stripeAmount: a,
|
|
322
|
+
orderTotal: i + a,
|
|
323
|
+
requiresStripe: s
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
// src/lib/api/gift-cards.ts
|
|
327
|
+
var Z = e("VC");
|
|
328
|
+
async function be(e, t, n) {
|
|
329
|
+
try {
|
|
330
|
+
let r = await f(`${p()}/cart/${e}/apply-gift-card`, { giftCardCode: t }, { widgetKey: n?.widgetKey });
|
|
331
|
+
if (!r.success) return r.statusCode === 429 ? {
|
|
332
|
+
valid: !1,
|
|
333
|
+
error: "Too many attempts. Please wait a moment and try again."
|
|
334
|
+
} : (Z.error("Apply gift card failed:", r.error), {
|
|
335
|
+
valid: !1,
|
|
336
|
+
error: r.error || "Invalid gift card code"
|
|
337
|
+
});
|
|
338
|
+
let i = ye(r.data);
|
|
339
|
+
return i.valid || Z.error("Apply gift card returned an unusable payload:", r.data), i;
|
|
340
|
+
} catch (e) {
|
|
341
|
+
return Z.error("applyGiftCard error:", e), {
|
|
342
|
+
valid: !1,
|
|
343
|
+
error: "Network error. Please check your connection and try again."
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
async function xe(e, t, n) {
|
|
348
|
+
try {
|
|
349
|
+
let r = t?.giftCardId ? { giftCardId: t.giftCardId } : t?.code ? { giftCardCode: t.code } : null, i = await te(`${p()}/cart/${e}/gift-card`, r ? {
|
|
350
|
+
body: JSON.stringify(r),
|
|
351
|
+
widgetKey: n?.widgetKey
|
|
352
|
+
} : { widgetKey: n?.widgetKey });
|
|
353
|
+
if (!i.success) return Z.error("Remove gift card failed:", i.error), {
|
|
354
|
+
success: !1,
|
|
355
|
+
error: i.error || "Failed to remove gift card"
|
|
356
|
+
};
|
|
357
|
+
let a = i.data ?? {}, o = a.newTotal ?? a.NewTotal;
|
|
358
|
+
return {
|
|
359
|
+
success: !0,
|
|
360
|
+
...typeof o == "number" ? { remainingTotal: o } : {}
|
|
361
|
+
};
|
|
362
|
+
} catch (e) {
|
|
363
|
+
return Z.error("removeGiftCard error:", e), {
|
|
364
|
+
success: !1,
|
|
365
|
+
error: "Network error. Please check your connection and try again."
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
async function Q(e, t, n, r) {
|
|
370
|
+
let a = ee(n);
|
|
371
|
+
try {
|
|
372
|
+
let n = await f(`${p()}/cart/${e}/complete-gift-card-payment`, {
|
|
373
|
+
customerName: i(t.firstName, t.lastName),
|
|
374
|
+
customerEmail: t.email,
|
|
375
|
+
firstName: t.firstName,
|
|
376
|
+
lastName: t.lastName,
|
|
377
|
+
email: t.email,
|
|
378
|
+
phoneNumber: t.phoneNumber || null,
|
|
379
|
+
questionAnswer: t.questionAnswer || "",
|
|
380
|
+
mailingList: t.mailingList || !1,
|
|
381
|
+
attribution: s(),
|
|
382
|
+
...a ? { locale: a } : {}
|
|
383
|
+
}, { widgetKey: r?.widgetKey });
|
|
384
|
+
return n.success ? {
|
|
385
|
+
success: !0,
|
|
386
|
+
orderId: n.data?.orderId,
|
|
387
|
+
confirmationNumber: n.data?.confirmationNumber
|
|
388
|
+
} : (Z.error("Complete gift card payment failed:", n.error), {
|
|
389
|
+
success: !1,
|
|
390
|
+
error: n.error || "Failed to complete payment"
|
|
391
|
+
});
|
|
392
|
+
} catch (e) {
|
|
393
|
+
return Z.error("completeGiftCardPayment error:", e), {
|
|
394
|
+
success: !1,
|
|
395
|
+
error: "Network error. Please check your connection and try again."
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
// src/lib/api/cart-addons.ts
|
|
400
|
+
var Se = e("VC");
|
|
401
|
+
async function Ce(e, t, n) {
|
|
402
|
+
let r = (e) => ({
|
|
403
|
+
success: !1,
|
|
404
|
+
error: e,
|
|
405
|
+
lines: [],
|
|
406
|
+
addOnQuantity: 0,
|
|
407
|
+
repriced: !1
|
|
408
|
+
});
|
|
409
|
+
if (!e) return r(null);
|
|
410
|
+
let i = {};
|
|
411
|
+
for (let [e, n] of Object.entries(t)) {
|
|
412
|
+
let t = typeof e == "number" ? e : parseInt(e, 10);
|
|
413
|
+
!Number.isNaN(t) && n > 0 && (i[t] = n);
|
|
414
|
+
}
|
|
415
|
+
try {
|
|
416
|
+
let t = await f(`${p()}/cart/${e}/add-ons`, { addOnQuantities: i }, { widgetKey: n?.widgetKey });
|
|
417
|
+
if (!t.success) return r(t.error || null);
|
|
418
|
+
let a = t.data || {};
|
|
419
|
+
return {
|
|
420
|
+
success: !0,
|
|
421
|
+
error: null,
|
|
422
|
+
lines: a.addOns || [],
|
|
423
|
+
addOnQuantity: a.addOnQuantity || 0,
|
|
424
|
+
repriced: a.repriced === !0
|
|
425
|
+
};
|
|
426
|
+
} catch (e) {
|
|
427
|
+
return Se.error("updateCartAddOns error:", e), r(null);
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
// src/lib/api/waitlist.ts
|
|
431
|
+
var $ = e("VC");
|
|
432
|
+
async function we(e, t, n = null, r = !1, i) {
|
|
433
|
+
try {
|
|
434
|
+
let a = { email: t };
|
|
435
|
+
n && r && (a.phone = n, a.smsOptIn = !0);
|
|
436
|
+
let o = await f(`/events/${e}/waitlist`, a, { widgetKey: i?.widgetKey });
|
|
437
|
+
return o.success ? {
|
|
438
|
+
success: !0,
|
|
439
|
+
updated: o.data?.updated,
|
|
440
|
+
position: o.data?.position
|
|
441
|
+
} : ($.error("Join waitlist failed:", o.error), {
|
|
442
|
+
success: !1,
|
|
443
|
+
errorCode: o.error || "join_failed"
|
|
444
|
+
});
|
|
445
|
+
} catch (e) {
|
|
446
|
+
return $.error("joinWaitlist error:", e), {
|
|
447
|
+
success: !1,
|
|
448
|
+
errorCode: "network_error"
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
async function Te(e, t, n) {
|
|
453
|
+
try {
|
|
454
|
+
let r = await f(`/checkout/validate-token/${e}`, { email: t }, { widgetKey: n?.widgetKey });
|
|
455
|
+
return r.success ? {
|
|
456
|
+
valid: !0,
|
|
457
|
+
eventId: r.data?.eventId ?? 0,
|
|
458
|
+
expiresAt: r.data?.expiresAt
|
|
459
|
+
} : {
|
|
460
|
+
valid: !1,
|
|
461
|
+
eventId: 0,
|
|
462
|
+
errorCode: r.error
|
|
463
|
+
};
|
|
464
|
+
} catch (e) {
|
|
465
|
+
return $.error("validateWaitlistToken error:", e), {
|
|
466
|
+
valid: !1,
|
|
467
|
+
eventId: 0,
|
|
468
|
+
errorCode: "invalid_token"
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
async function Ee(e, t, n) {
|
|
473
|
+
try {
|
|
474
|
+
let r = await f(`/waitlist/requeue/${e}`, { email: t }, { widgetKey: n?.widgetKey });
|
|
475
|
+
return r.success ? { success: !0 } : {
|
|
476
|
+
success: !1,
|
|
477
|
+
errorCode: r.error
|
|
478
|
+
};
|
|
479
|
+
} catch (e) {
|
|
480
|
+
return $.error("requeueWaitlistToFront error:", e), {
|
|
481
|
+
success: !1,
|
|
482
|
+
errorCode: "internal_error"
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
async function De(e, t) {
|
|
487
|
+
let n = {
|
|
488
|
+
waitlistEnabled: !1,
|
|
489
|
+
soldOut: !1,
|
|
490
|
+
gated: !1
|
|
491
|
+
};
|
|
492
|
+
try {
|
|
493
|
+
let r = await d(`/events/${e}/waitlist/status`, { widgetKey: t?.widgetKey });
|
|
494
|
+
return r.success ? {
|
|
495
|
+
waitlistEnabled: !!r.data?.waitlistEnabled,
|
|
496
|
+
soldOut: !!r.data?.soldOut,
|
|
497
|
+
gated: !!r.data?.gated
|
|
498
|
+
} : n;
|
|
499
|
+
} catch (e) {
|
|
500
|
+
return $.error("getWaitlistStatus error:", e), n;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
function Oe(e) {
|
|
504
|
+
let t = String(e % 60).padStart(2, "0");
|
|
505
|
+
return e >= 3600 ? `${Math.floor(e / 3600)}:${String(Math.floor(e % 3600 / 60)).padStart(2, "0")}:${t}` : `${Math.floor(e / 60)}:${t}`;
|
|
506
|
+
}
|
|
507
|
+
export { E as C, y as D, v as E, fe as S, re as T, pe as _, Te as a, le as b, Q as c, ge as d, me as f, I as g, L as h, Ee as i, xe as l, oe as m, De as n, Ce as o, z as p, we as r, be as s, Oe as t, he as u, de as v, ie as w, G as x, ce as y };
|