@getmicdrop/venue-calendar 4.3.135 → 4.3.138
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AddOnCard-DEAC26HA.js +348 -0
- package/dist/AppError-t1LnBwj_.js +30 -0
- package/dist/{ArrowLeftIcon-CezkuCvg.js → ArrowLeftIcon-P8BRVhVl.js} +2 -3
- package/dist/Badge-CmYqIClC.js +51 -0
- package/dist/{BlockPlaceholder-BBrehfrB.js → BlockPlaceholder-BKfoE795.js} +30 -23
- package/dist/BottomSheet-D27k0B05.js +154 -0
- package/dist/Button-B1cBhdtC.js +234 -0
- package/dist/Button-B_gbGd63.js +149 -0
- package/dist/Calendar-9xskvKUf.js +395 -0
- package/dist/CalendarFoundryView-DbxZNmY7.js +16356 -0
- package/dist/{CalendarIcon-Y6_CP1BO.js → CalendarIcon-MAVEqtql.js} +2 -3
- package/dist/{CloseOutline-qpVa62mu.js → CalendarOutline-CApIWx8i.js} +2 -3
- package/dist/CartView-DMINN6bY.js +2200 -0
- package/dist/{ChartBlock-SYOAO1s_.js → ChartBlock-DcsCXfX8.js} +85 -112
- package/dist/{CheckIcon-BFlrM9LP.js → CheckIcon-BH9EAoee.js} +2 -3
- package/dist/{Checkbox-BtJwg_CF.js → Checkbox-sObkYRdj.js} +2 -3
- package/dist/Checkout-H9RGBU9D.js +1071 -0
- package/dist/Checkout-VnochAZE.js +1967 -0
- package/dist/{CheckoutTimer-CfGllYB_.js → CheckoutTimer-mjcYR3XU.js} +9 -11
- package/dist/{ChevronDownIcon-CmTx77Iz.js → ChevronDownIcon-Bkts84qA.js} +2 -3
- package/dist/{ChevronDownOutline-D7YDiKBF.js → ChevronDownOutline-kFgRY2cg.js} +1 -2
- package/dist/{ChevronRightOutline-CiG8UHni.js → ChevronRightOutline-D-5Qw6-Y.js} +2 -4
- package/dist/CloseIcon-DRlYvIPc.js +24 -0
- package/dist/{CollectionView-CKVGypsb.js → CollectionView-C0vDg5oJ.js} +48 -58
- package/dist/CropImage-BWYeQXXA.js +547 -0
- package/dist/DatePicker-v-4ijT8N.js +650 -0
- package/dist/{EmptyState-CMFePII9.js → EmptyState-BhK78ogy.js} +10 -12
- package/dist/{Event-C2BfY4hq.js → Event-vlu8IAxh.js} +1241 -1220
- package/dist/{EventCard-uMW7-Yc7.js → EventCard-puoh3xag.js} +15 -15
- package/dist/EventPage-DycxjX5Z.js +1301 -0
- package/dist/{ExclamationCircleOutline-D3XbhOwM.js → ExclamationCircleOutline-CPelT1Bu.js} +1 -2
- package/dist/FilterChipGroup-DUGvOaRI.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-CKrf5amy.js +1050 -0
- package/dist/{Input-C0BCVQQ5.js → Input-BQk4itex.js} +124 -140
- package/dist/LiveRegion-Ds0mjIVj.js +17 -0
- package/dist/{LocationIcon-Ct8LQDag.js → LocationIcon-BNPEzWv2.js} +3 -5
- package/dist/{Modal-rt9KVfYa.js → Modal-DOpDiAwN.js} +3 -4
- package/dist/ModalFooter-gFaDKsfj.js +299 -0
- package/dist/ModalTitle-CS5AGwrU.js +26 -0
- package/dist/{PasswordInput-DpeH_g-Z.js → PasswordInput-C65GqxdF.js} +11 -13
- package/dist/{PhoneInput-5l-M5ykF.js → PhoneInput-Dj1I3bEn.js} +80 -89
- package/dist/{RecommendationsRail-DL03xY8R.js → RecommendationsRail-DC5qX1ei.js} +145 -159
- package/dist/RequiredIndicator-CRZ_coyR.js +16 -0
- package/dist/{ScarcityBadge-BB4ZD_8N.js → ScarcityBadge-BAaV2CIY.js} +37 -41
- package/dist/Search-BE64QcmK.js +82 -0
- package/dist/SearchIcon-BzOhoKm8.js +24 -0
- package/dist/{SeriesPage-lhbMdwIi.js → SeriesPage-Cx89s2B6.js} +6 -7
- package/dist/SheetHandle-CCfYCPbY.js +66 -0
- package/dist/Skeleton-B6qB_udJ.js +31 -0
- package/dist/SkeletonLoader-DfW0N9R3.js +121 -0
- package/dist/{Spinner-DNaDFSCe.js → Spinner-Bj4dr9kO.js} +7 -7
- package/dist/Stack-Ck1wrJ0l.js +34 -0
- package/dist/Success-D3CrUeka.js +1022 -0
- package/dist/{TagIcon-MVcV8ylU.js → TagIcon-Dp7n6eKU.js} +2 -3
- package/dist/{Textarea-Cymhixzd.js → Textarea-BDcuBI13.js} +11 -11
- package/dist/TimePicker-HYzPI_Dc.js +215 -0
- package/dist/ValidationError-BxKB_SVA.js +48 -0
- package/dist/ViewTicketsEmbed-DzUCgtA3.js +641 -0
- package/dist/{WarningCircleIcon-ch-94kEe.js → WarningCircleIcon-jC3nXehu.js} +4 -7
- package/dist/{WarningTriIcon-DFjb-boV.js → WarningTriIcon-BMa-jcUr.js} +2 -3
- package/dist/{__SKIP_NAVIGATION__-AOx8SI54.js → __SKIP_NAVIGATION__-Znm_vYcG.js} +1 -2
- package/dist/{__SKIP_PATHS__-C0ixDSSm.js → __SKIP_PATHS__-Bzzrca_a.js} +1 -2
- package/dist/address-field-BwGHcMKY.js +295 -0
- package/dist/{href-q4ZIwqKC.js → allowlist-Bt1BHhNd.js} +244 -315
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +214 -227
- package/dist/api/cta.d.ts +4 -0
- package/dist/api/events.d.ts +13 -0
- package/dist/api/types.d.ts +2 -0
- package/dist/api-CRHFSJDI.js +502 -0
- package/dist/avatar-picker-field-CSF5okeM.js +115 -0
- package/dist/{browser-DxdP6IWt.js → browser-DEUBVMmV.js} +9 -9
- package/dist/bundle-mjs-COnlheJX.js +1776 -0
- package/dist/{buyerEmail-BfCq-gDt.js → buyerEmail-CvPpEiON.js} +2 -3
- package/dist/calendar-Cdu8fCIt.js +111 -0
- package/dist/checkout-libs/4.3.138/phone.js +6 -0
- package/dist/checkout-libs/4.3.138/qrcode.js +8 -0
- package/dist/{checkoutState-wrwq9TD7.js → checkoutState-BDNjJRMG.js} +7 -10
- package/dist/classNames-CPSQ9uy4.js +25 -0
- package/dist/clickOutside-D448uRpo.js +22 -0
- package/dist/{client-SmFkruvn.js → client-BIN_q-of.js} +4 -7
- package/dist/colors-CdP193E5.js +106 -0
- package/dist/colors-D67OMr_8.js +22 -0
- package/dist/{Text-CqjLjIF8.js → constants-DrFV2oht.js} +19 -14
- package/dist/controlAria-Do9QK0WI.js +13 -0
- package/dist/{copyToClipboard-Cy_-50GG.js → copyToClipboard-CjNjDZeW.js} +3 -5
- package/dist/createErrorGate.svelte-DUXI6Yor.js +82 -0
- package/dist/cta-qbcIt5Gh.js +116 -0
- package/dist/date-field-3tgOYbzF.js +88 -0
- package/dist/date-range-field-D0Aq9me9.js +163 -0
- package/dist/datetime-BlEsN_-8.js +176 -0
- package/dist/{de-lc43hoya.js → de-CUrE_4a4.js} +2 -3
- package/dist/{de-DyiE1KNg.js → de-vKpbo9Zl.js} +2 -2
- package/dist/defaultLabels-CybwJCNn.js +563 -0
- package/dist/defaults-B5wyre5O.js +148 -0
- package/dist/deprecation-BCjqE5lW.js +4 -0
- package/dist/{dist-bwbfGPKR.js → dist-Dptst9ym.js} +2 -4
- package/dist/{es-DhoitI_1.js → es-8qe0Mo-8.js} +2 -2
- package/dist/{es-B0uSu40a.js → es-B2-z2Kft.js} +2 -3
- package/dist/{event-9wBbeiK2.js → event-CEg17hts.js} +3 -4
- package/dist/event-transform-DqFigNQg.js +250 -0
- package/dist/{eventStatusStream-JWP2AXnQ.js → eventStatusStream-DK5fWCTB.js} +4 -7
- package/dist/field-rules-CKFFB16Q.js +416 -0
- package/dist/file-field-2mPz4Da-.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-CypC4vWs.js +1587 -0
- package/dist/formatters-CzKNRUwz.js +113 -0
- package/dist/foundryRuntime-DKyfdkUY.js +13 -0
- package/dist/{fr-DB--_n56.js → fr-BmpShjUG.js} +2 -2
- package/dist/{fr-CzTFVHUe.js → fr-CiePVIlj.js} +2 -3
- package/dist/{gate-password-cache-oOcDm9Ki.js → gate-password-cache-zIbewXQ2.js} +1 -2
- package/dist/heic-to-BoLfsr3l.js +70 -0
- package/dist/hexToHsl-D-BPy03y.js +24 -0
- package/dist/href-DpbLXQ4c.js +18 -0
- package/dist/{i18n-DUMRUvVc.js → i18n-B_TWnExv.js} +148 -150
- package/dist/i18n-CSaUFnlD.js +26 -0
- package/dist/iconWeight-BRXEDAh2.js +12 -0
- package/dist/{id-BGqV9_gI.js → id-Ttw95_7t.js} +2 -3
- package/dist/{id-CMQRjMxp.js → id-_6GFAYBn.js} +2 -2
- package/dist/image-field-B8x0WQ2j.js +139 -0
- package/dist/{imageUrl-xyMedKrE.js → imageUrl-iAS2Xo17.js} +1 -2
- package/dist/instant-BkZCSGDm.js +162 -0
- package/dist/{it-B_BQgPWl.js → it-CBbXcFY1.js} +2 -3
- package/dist/{it-hBxsIHz2.js → it-Dc-H_PdY.js} +2 -2
- package/dist/{ja-BGWo7WDj.js → ja-B2Tag7J3.js} +2 -3
- package/dist/{ja-D1vfwJgB.js → ja-Cobhk-xH.js} +2 -2
- package/dist/keyboard-Dk2PfrEz.js +28 -0
- package/dist/{ko-FKSzdHrm.js → ko-CcTn4lAi.js} +2 -3
- package/dist/{ko-CRTegEJ4.js → ko-CyTlg6vA.js} +2 -2
- package/dist/labels-CjSrA6gx.js +9 -0
- package/dist/{constants-D4yEpZuQ.js → labels-D8LN8lY7.js} +4 -4
- package/dist/{lazyOnce-CCfEO1xG.js → lazyOnce-jG8k1apa.js} +1 -2
- package/dist/loaders.static-Bw9asjrm.js +3 -0
- package/dist/locales/{4.3.135 → 4.3.138}/flow/de.js +1 -1
- package/dist/locales/{4.3.135 → 4.3.138}/flow/es.js +1 -1
- package/dist/locales/{4.3.135 → 4.3.138}/flow/fr.js +1 -1
- package/dist/locales/{4.3.135 → 4.3.138}/flow/id.js +1 -1
- package/dist/locales/{4.3.135 → 4.3.138}/flow/it.js +1 -1
- package/dist/locales/{4.3.135 → 4.3.138}/flow/ja.js +1 -1
- package/dist/locales/{4.3.135 → 4.3.138}/flow/ko.js +1 -1
- package/dist/locales/{4.3.135 → 4.3.138}/flow/nl.js +1 -1
- package/dist/locales/{4.3.135 → 4.3.138}/flow/pl.js +1 -1
- package/dist/locales/{4.3.135 → 4.3.138}/flow/pt-br.js +1 -1
- package/dist/locales/{4.3.135 → 4.3.138}/flow/tr.js +1 -1
- package/dist/locales/{4.3.135 → 4.3.138}/flow/zh.js +1 -1
- package/dist/locales/{4.3.135 → 4.3.138}/main/de.js +1 -1
- package/dist/locales/{4.3.135 → 4.3.138}/main/es.js +1 -1
- package/dist/locales/{4.3.135 → 4.3.138}/main/fr.js +1 -1
- package/dist/locales/{4.3.135 → 4.3.138}/main/id.js +1 -1
- package/dist/locales/{4.3.135 → 4.3.138}/main/it.js +1 -1
- package/dist/locales/{4.3.135 → 4.3.138}/main/ja.js +1 -1
- package/dist/locales/{4.3.135 → 4.3.138}/main/ko.js +1 -1
- package/dist/locales/{4.3.135 → 4.3.138}/main/nl.js +1 -1
- package/dist/locales/{4.3.135 → 4.3.138}/main/pl.js +1 -1
- package/dist/locales/{4.3.135 → 4.3.138}/main/pt-br.js +1 -1
- package/dist/locales/{4.3.135 → 4.3.138}/main/tr.js +1 -1
- package/dist/locales/{4.3.135 → 4.3.138}/main/zh.js +1 -1
- package/dist/logger-DM8WW61-.js +89 -0
- package/dist/look-island.svelte-B7UH_QVv.js +1270 -0
- package/dist/look-names-JI6GE-Zj.js +175 -0
- package/dist/looks/4.3.138/looks.js +248 -0
- package/dist/media-field-HieD0ye0.js +65 -0
- package/dist/modalManager.svelte-BvyrTI6p.js +51 -0
- package/dist/multiselect-field-CJ4lUJyS.js +61 -0
- package/dist/{navigation-Cochv2HZ.js → navigation-DpqP-ahJ.js} +28 -32
- package/dist/{nl-DhUZIqb8.js → nl-BObQMscG.js} +2 -2
- package/dist/{nl-Dhr_CNfS.js → nl-DeIqgjIs.js} +2 -3
- package/dist/{normalizers-CqGXhPZo.js → normalizers-WYh8Nr3V.js} +3 -5
- package/dist/number-field-D5GkkGLB.js +126 -0
- package/dist/numeric-filter-field-CRWZFu_P.js +131 -0
- package/dist/password-field-DdOHXEOo.js +157 -0
- package/dist/phone-CVYVhLn8.js +5 -0
- package/dist/phone-field-BaYmp56f.js +129 -0
- package/dist/phoneShape-VqbamHOn.js +20 -0
- package/dist/{phoneUtils-CL8tIxoM.js → phoneUtils-BhOvrS4S.js} +133 -193
- package/dist/{pixels-D_on_5fc.js → pixels-BXXzmoCb.js} +12 -18
- package/dist/{pl-vklyp95-.js → pl-Bm2FcD5y.js} +2 -3
- package/dist/{pl-D4bvrh0U.js → pl-_Sbz4Ou-.js} +2 -2
- package/dist/portal-BSuo4flQ.js +64 -0
- package/dist/portalContainment-DSZUw-No.js +78 -0
- package/dist/{pt-br-C8yaXBBu.js → pt-br-CpmhafxS.js} +2 -2
- package/dist/{pt-br-BcKTBYBf.js → pt-br-XS1Lsa6z.js} +2 -3
- package/dist/qrcode-By7ce_6K.js +5 -0
- package/dist/repeating-field-B4OhsaGB.js +488 -0
- package/dist/richtext-field-KmUytgBW.js +212 -0
- package/dist/{rolldown-runtime-DtPi1Y-2.js → rolldown-runtime-CYdcPHCu.js} +2 -3
- package/dist/searchable-select-field-DettZRav.js +138 -0
- package/dist/select-field-Wc4gAtou.js +72 -0
- package/dist/seo/seo.cjs +1 -1
- package/dist/seo/seo.mjs +24 -42
- package/dist/seo/types.d.ts +4 -1
- package/dist/serverTotals-COsx7Mc5.js +950 -0
- package/dist/{showcase-state-options-B5GUg7wk.js → showcase-state-options-CHGUaZtl.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-CnxZcziR.js +53 -0
- package/dist/to-event-card-props-C9v9dspT.js +245 -0
- package/dist/{tr-C73ecvz8.js → tr-CN8DGCc-.js} +2 -2
- package/dist/{tr-B4gKhpQA.js → tr-zKAbMfgi.js} +2 -3
- package/dist/transitions-DST-mWoo.js +201 -0
- package/dist/tree-picker-field-aqux58EQ.js +344 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/typography-CKwYSv07.js +57 -0
- package/dist/{utils-CNwfP0zV.js → utils-AIszIHUb.js} +8 -11
- package/dist/variants-B46fK2iV.js +63 -0
- package/dist/{venue-BBoZBuhu.js → venue-DLkL7xdj.js} +1 -2
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +1697 -1827
- package/dist/venue-calendar.iife.js +24 -55
- package/dist/venue-calendar.umd.js +68 -76
- package/dist/{widget-key-context-DxoB6BR0.js → widget-key-context-BrWW0fyM.js} +28 -43
- package/dist/{zh-DWi3x7FQ.js → zh-BaZ_hYJV.js} +2 -2
- package/dist/{zh-CxcIisjW.js → zh-DHfgJplH.js} +2 -3
- package/package.json +16 -16
- package/src/lib/theme.js +222 -222
- package/dist/AddOnCard-_OX1BqWV.js +0 -340
- package/dist/Button-B58iYo_t.js +0 -1951
- package/dist/Button-VUB2WJ88.js +0 -178
- package/dist/Calendar-BV1XCdju.js +0 -466
- package/dist/CalendarFoundryView-CbAqIB4K.js +0 -21608
- package/dist/CartView-DtgNCACZ.js +0 -2299
- package/dist/Checkout-BnI2UqNd.js +0 -1082
- package/dist/Checkout-DpyT_TuS.js +0 -1872
- package/dist/CloseIcon--8LjBB63.js +0 -35
- package/dist/CropImage-D1M-bKxG.js +0 -548
- package/dist/EventPage-Bd3VBdhn.js +0 -1345
- package/dist/Grid-kuP6V0GW.js +0 -89
- package/dist/ModalFooter-Cru7v0io.js +0 -394
- package/dist/ModalHeader-CpgkuttK.js +0 -18
- package/dist/Success-LFYYWMod.js +0 -985
- package/dist/ViewTicketsEmbed-ClMXL5iX.js +0 -651
- package/dist/action-test-id-7RXdHucW.js +0 -145
- package/dist/adapter-BPpmiFWD.js +0 -164
- package/dist/api-C02BQT4E.js +0 -489
- package/dist/controlAria-CGb-KeRn.js +0 -30
- package/dist/createErrorGate.svelte-Qp6j3EME.js +0 -114
- package/dist/cta-BpblR0dm.js +0 -116
- package/dist/datetime-C_dBn97N.js +0 -410
- package/dist/defaultLabels-tC8zM7_V.js +0 -2558
- package/dist/defaults-Bv4F-cYY.js +0 -98
- package/dist/event-transform-Cp_h6-Ot.js +0 -353
- package/dist/i18n-s5MzdFwq.js +0 -28
- package/dist/imageOptimizer-Gew5vPWh.js +0 -224
- package/dist/keyboard-DhCcdIyh.js +0 -55
- package/dist/look-island.svelte-C27bvwqP.js +0 -1305
- package/dist/looks/4.3.135/looks.js +0 -242
- package/dist/modalManager.svelte-Cz_6x1Qd.js +0 -37
- package/dist/portal-D-oaEWsY.js +0 -43
- package/dist/portalContainment-CeAVqIb-.js +0 -281
- package/dist/serverTotals-2i39gy_x.js +0 -712
- package/dist/sizing-B7ixYndz.js +0 -216
- package/dist/to-event-card-props-q8vFqxkX.js +0 -205
- /package/dist/looks/{4.3.135 → 4.3.138}/micdrop-wordmark-BYMG6vLR.svg +0 -0
- /package/dist/looks/{4.3.135 → 4.3.138}/microphone-Ccv4r-kd.webp +0 -0
- /package/dist/looks/{4.3.135 → 4.3.138}/superuser-CZF6a5gO.webp +0 -0
- /package/dist/looks/{4.3.135 → 4.3.138}/treasury-DUE7lZzT.webp +0 -0
- /package/dist/looks/{4.3.135 → 4.3.138}/user-image-yuS4errP.svg +0 -0
package/dist/cta-BpblR0dm.js
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { J as e } from "./datetime-C_dBn97N.js";
|
|
2
|
-
import { _ as t, a as n, b as r, f as i, o as a, s as o, v as s } from "./defaultLabels-tC8zM7_V.js";
|
|
3
|
-
import { r as c } from "./Button-VUB2WJ88.js";
|
|
4
|
-
import { _ as l, g as u } from "./navigation-Cochv2HZ.js";
|
|
5
|
-
//#region src/lib/api/cta.ts
|
|
6
|
-
function d(e, n, a = {}) {
|
|
7
|
-
let { cancelled: o = !1, isRegistration: s = !1, waitlistEnabled: d = !1 } = a, p = c();
|
|
8
|
-
if (o) return {
|
|
9
|
-
text: "Canceled",
|
|
10
|
-
disabled: !0,
|
|
11
|
-
reason: "cancelled"
|
|
12
|
-
};
|
|
13
|
-
if ((e?.status || "").trim().toLowerCase() === "postponed") return {
|
|
14
|
-
text: "Postponed",
|
|
15
|
-
disabled: !0,
|
|
16
|
-
reason: "postponed"
|
|
17
|
-
};
|
|
18
|
-
let m = t(e.endDateTime || e.startDateTime);
|
|
19
|
-
if (m && i(m, p) < 0) return {
|
|
20
|
-
text: "Sales ended",
|
|
21
|
-
disabled: !0,
|
|
22
|
-
reason: "event_past"
|
|
23
|
-
};
|
|
24
|
-
let h = (e?.salesStatus || "").trim().toLowerCase(), g = h === "not_started";
|
|
25
|
-
if (h === "paused") return {
|
|
26
|
-
text: "Sales paused",
|
|
27
|
-
disabled: !0,
|
|
28
|
-
reason: "sales_paused"
|
|
29
|
-
};
|
|
30
|
-
if (h === "ended") return {
|
|
31
|
-
text: "Sales ended",
|
|
32
|
-
disabled: !0,
|
|
33
|
-
reason: "sales_ended"
|
|
34
|
-
};
|
|
35
|
-
let _ = e?.hasPurchasableHiddenTickets === !0 || Array.isArray(n) && n.some(u), v = () => _ ? {
|
|
36
|
-
text: s ? "Reserve a spot" : "Get tickets",
|
|
37
|
-
disabled: !1,
|
|
38
|
-
reason: "hidden_only"
|
|
39
|
-
} : d ? {
|
|
40
|
-
text: "Join Waitlist",
|
|
41
|
-
disabled: !1,
|
|
42
|
-
reason: "sold_out_waitlist"
|
|
43
|
-
} : {
|
|
44
|
-
text: "Sold out",
|
|
45
|
-
disabled: !0,
|
|
46
|
-
reason: "sold_out"
|
|
47
|
-
};
|
|
48
|
-
if (h === "sold_out") return v();
|
|
49
|
-
let y = (n || []).filter((e) => e.salesChannel !== 2 && !e.isHidden && !(typeof e.visibility == "number" && e.visibility >= l.HIDDEN));
|
|
50
|
-
if (y.length === 0) return _ ? {
|
|
51
|
-
text: s ? "Reserve a spot" : "Get tickets",
|
|
52
|
-
disabled: !1,
|
|
53
|
-
reason: "hidden_only"
|
|
54
|
-
} : {
|
|
55
|
-
text: "No tickets available",
|
|
56
|
-
disabled: !0,
|
|
57
|
-
reason: "no_tickets"
|
|
58
|
-
};
|
|
59
|
-
let b = !1, x = !0, S = !0, C = null;
|
|
60
|
-
for (let e of y) {
|
|
61
|
-
let n = t(e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart), r = t(e.salesEnd || e.saleEnd || e.onSaleEnd), a = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity, o = e.soldOut || a != null && a <= 0, s = n ? i(n, p) > 0 : !1, c = r ? i(r, p) < 0 : !1;
|
|
62
|
-
!o && !s && !c && (b = !0), o || (x = !1), s || (S = !1), s && n && !o && !c && (!C || i(n, C) < 0) && (C = n);
|
|
63
|
-
}
|
|
64
|
-
return g && b ? _ ? {
|
|
65
|
-
text: s ? "Reserve a spot" : "Get tickets",
|
|
66
|
-
disabled: !1,
|
|
67
|
-
reason: "hidden_only"
|
|
68
|
-
} : {
|
|
69
|
-
text: "On sale soon",
|
|
70
|
-
disabled: !0,
|
|
71
|
-
reason: "coming_soon"
|
|
72
|
-
} : b ? {
|
|
73
|
-
text: s ? "Reserve a spot" : "Get tickets",
|
|
74
|
-
disabled: !1,
|
|
75
|
-
reason: "available"
|
|
76
|
-
} : S && C ? _ ? {
|
|
77
|
-
text: s ? "Reserve a spot" : "Get tickets",
|
|
78
|
-
disabled: !1,
|
|
79
|
-
reason: "hidden_only"
|
|
80
|
-
} : {
|
|
81
|
-
text: `On sale ${f(C, i(C, p), [e.timezone, e.timeZone].find((e) => !!e && r(e)))}`,
|
|
82
|
-
disabled: !0,
|
|
83
|
-
reason: "coming_soon"
|
|
84
|
-
} : x ? v() : _ ? {
|
|
85
|
-
text: s ? "Reserve a spot" : "Get tickets",
|
|
86
|
-
disabled: !1,
|
|
87
|
-
reason: "hidden_only"
|
|
88
|
-
} : {
|
|
89
|
-
text: "Sales ended",
|
|
90
|
-
disabled: !0,
|
|
91
|
-
reason: "sales_ended"
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
function f(t, r, i) {
|
|
95
|
-
let c = r / 36e5, l = r / 864e5;
|
|
96
|
-
if (i) {
|
|
97
|
-
let e = t.toISOString(), r = s(i, t), u = `${o(e, i)} ${r}`;
|
|
98
|
-
return c < 24 ? u : l <= 7 ? `${n(e, i, !0)} ${u}` : `${a(e, i, { includeYear: !1 })} ${u}`;
|
|
99
|
-
}
|
|
100
|
-
let u = (t) => e(t, {
|
|
101
|
-
hour: "numeric",
|
|
102
|
-
minute: "2-digit",
|
|
103
|
-
hour12: !0
|
|
104
|
-
}, "en-US");
|
|
105
|
-
return c < 24 ? u(t) : l <= 7 ? e(t, {
|
|
106
|
-
weekday: "short",
|
|
107
|
-
hour: "numeric",
|
|
108
|
-
minute: "2-digit",
|
|
109
|
-
hour12: !0
|
|
110
|
-
}, "en-US") : `${e(t, {
|
|
111
|
-
month: "short",
|
|
112
|
-
day: "numeric"
|
|
113
|
-
}, "en-US")} ${u(t)}`;
|
|
114
|
-
}
|
|
115
|
-
//#endregion
|
|
116
|
-
export { d as t };
|
|
@@ -1,410 +0,0 @@
|
|
|
1
|
-
import { C as e, P as t, S as n, _ as r, d as i, f as a, l as o, r as s, t as c, w as l, x as u } from "./defaultLabels-tC8zM7_V.js";
|
|
2
|
-
import { r as d } from "./Button-VUB2WJ88.js";
|
|
3
|
-
import { getContext as f, setContext as p } from "svelte";
|
|
4
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/iconWeight.js
|
|
5
|
-
var m = Symbol("mds-icon-weight");
|
|
6
|
-
function h(e) {
|
|
7
|
-
p(m, { get weight() {
|
|
8
|
-
return e();
|
|
9
|
-
} });
|
|
10
|
-
}
|
|
11
|
-
function g() {
|
|
12
|
-
return f(m);
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/datetime/local.js
|
|
16
|
-
function _(e) {
|
|
17
|
-
return e < 10 ? `0${e}` : String(e);
|
|
18
|
-
}
|
|
19
|
-
function v(e) {
|
|
20
|
-
return `${e.getFullYear()}-${_(e.getMonth() + 1)}-${_(e.getDate())}`;
|
|
21
|
-
}
|
|
22
|
-
function ee(e, t, n = "en-US") {
|
|
23
|
-
return new Intl.DateTimeFormat(n, t).format(e);
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/datetime/calendar.js
|
|
27
|
-
function y(e, t, n) {
|
|
28
|
-
return new Date(e, t, n);
|
|
29
|
-
}
|
|
30
|
-
function b(e) {
|
|
31
|
-
return Date.UTC(e.getFullYear(), e.getMonth(), e.getDate());
|
|
32
|
-
}
|
|
33
|
-
function x(t, r) {
|
|
34
|
-
if (typeof t != "number" || !Number.isInteger(t)) throw new n(`${r} must be an integer, got ${JSON.stringify(t)}`, e.INVALID_DATE, { value: t });
|
|
35
|
-
}
|
|
36
|
-
function S(e) {
|
|
37
|
-
return i(e, "toLocalDay(date)"), y(e.getFullYear(), e.getMonth(), e.getDate());
|
|
38
|
-
}
|
|
39
|
-
function C(t, r, i) {
|
|
40
|
-
if (x(t, "localDayFromParts(year)"), x(r, "localDayFromParts(monthIndex)"), x(i, "localDayFromParts(day)"), r < 0 || r > 11) throw new n(`localDayFromParts(monthIndex) must be 0-11 (0 = January), got ${r}`, e.INVALID_DATE, {
|
|
41
|
-
year: t,
|
|
42
|
-
monthIndex: r,
|
|
43
|
-
day: i
|
|
44
|
-
});
|
|
45
|
-
let a = y(t, r, i);
|
|
46
|
-
if (a.getFullYear() !== t || a.getMonth() !== r || a.getDate() !== i || Number.isNaN(a.getTime())) throw new n(`localDayFromParts: ${t}-${r + 1}-${i} is not a real calendar date`, e.INVALID_DATE, {
|
|
47
|
-
year: t,
|
|
48
|
-
monthIndex: r,
|
|
49
|
-
day: i
|
|
50
|
-
});
|
|
51
|
-
return a;
|
|
52
|
-
}
|
|
53
|
-
function w(t) {
|
|
54
|
-
if (typeof t != "string" || !/^\d{4}-\d{2}-\d{2}$/.test(t)) throw new n(`localDayFromYMD expects a YYYY-MM-DD date, got ${JSON.stringify(t)}`, e.INVALID_DATE, { value: t });
|
|
55
|
-
let [r, i, a] = t.split("-").map(Number);
|
|
56
|
-
return C(r, i - 1, a);
|
|
57
|
-
}
|
|
58
|
-
function T() {
|
|
59
|
-
return S(d());
|
|
60
|
-
}
|
|
61
|
-
function te(e) {
|
|
62
|
-
return i(e, "localDayYMD(day)"), t(v(e));
|
|
63
|
-
}
|
|
64
|
-
function E(e) {
|
|
65
|
-
return i(e, "localWeekday(day)"), e.getDay();
|
|
66
|
-
}
|
|
67
|
-
function D(e, t) {
|
|
68
|
-
return C(e, t, 1), y(e, t + 1, 0).getDate();
|
|
69
|
-
}
|
|
70
|
-
function O(e, t) {
|
|
71
|
-
return i(e, "addLocalDays(day)"), x(t, "addLocalDays(n)"), y(e.getFullYear(), e.getMonth(), e.getDate() + t);
|
|
72
|
-
}
|
|
73
|
-
function ne(e, t) {
|
|
74
|
-
i(e, "addLocalMonths(day)"), x(t, "addLocalMonths(n)");
|
|
75
|
-
let n = y(e.getFullYear(), e.getMonth() + t, 1), r = n.getFullYear(), a = n.getMonth(), o = y(r, a + 1, 0).getDate();
|
|
76
|
-
return y(r, a, Math.min(e.getDate(), o));
|
|
77
|
-
}
|
|
78
|
-
function re(e) {
|
|
79
|
-
return i(e, "startOfLocalMonth(day)"), y(e.getFullYear(), e.getMonth(), 1);
|
|
80
|
-
}
|
|
81
|
-
function ie(e, t) {
|
|
82
|
-
return i(e, "wholeDaysBetween(a)"), i(t, "wholeDaysBetween(b)"), (b(t) - b(e)) / 864e5;
|
|
83
|
-
}
|
|
84
|
-
function k(e, t) {
|
|
85
|
-
return i(e, "isSameLocalDay(a)"), i(t, "isSameLocalDay(b)"), b(e) === b(t);
|
|
86
|
-
}
|
|
87
|
-
function A(e, t) {
|
|
88
|
-
return a(e, t) < 0;
|
|
89
|
-
}
|
|
90
|
-
function j(e, t) {
|
|
91
|
-
return a(e, t) > 0;
|
|
92
|
-
}
|
|
93
|
-
function ae(e) {
|
|
94
|
-
return A(e, T());
|
|
95
|
-
}
|
|
96
|
-
function oe(e, t, n = {}) {
|
|
97
|
-
let { weekStartsOn: r = 0, fillAdjacent: i = !0 } = n, a = C(e, t, 1), o = D(e, t), s = T(), c = [], l = (e, t) => {
|
|
98
|
-
c.push({
|
|
99
|
-
day: e,
|
|
100
|
-
inMonth: t,
|
|
101
|
-
isToday: k(e, s)
|
|
102
|
-
});
|
|
103
|
-
};
|
|
104
|
-
if (i) {
|
|
105
|
-
let e = (E(a) - r + 7) % 7;
|
|
106
|
-
for (let t = e; t > 0; t--) l(O(a, -t), !1);
|
|
107
|
-
}
|
|
108
|
-
for (let e = 0; e < o; e++) l(O(a, e), !0);
|
|
109
|
-
if (i) {
|
|
110
|
-
let e = (7 - c.length % 7) % 7, t = O(a, o - 1);
|
|
111
|
-
for (let n = 1; n <= e; n++) l(O(t, n), !1);
|
|
112
|
-
}
|
|
113
|
-
return c;
|
|
114
|
-
}
|
|
115
|
-
function M(e, t = {}) {
|
|
116
|
-
let { weekStartsOn: n = 0 } = t, r = O(e, -((E(e) - n + 7) % 7));
|
|
117
|
-
return Array.from({ length: 7 }, (e, t) => O(r, t));
|
|
118
|
-
}
|
|
119
|
-
function se(e, t = {}) {
|
|
120
|
-
i(e, "isLocalDayDisabled(day)");
|
|
121
|
-
let { min: n, max: r, disablePast: a = !1, allowedWeekdays: o } = t;
|
|
122
|
-
return !!(a && ae(e) || n && A(e, n) || r && j(e, r) || o && !o.includes(E(e)));
|
|
123
|
-
}
|
|
124
|
-
//#endregion
|
|
125
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/utils/formatters.js
|
|
126
|
-
function N(e) {
|
|
127
|
-
return Math.round((e + 2 ** -52) * 100) / 100;
|
|
128
|
-
}
|
|
129
|
-
function ce(e) {
|
|
130
|
-
return e.toFixed(2);
|
|
131
|
-
}
|
|
132
|
-
function le(e, t, n = "en-US") {
|
|
133
|
-
if (e == null) return "";
|
|
134
|
-
let r = e / 100, { signed: i, ...a } = t ?? {};
|
|
135
|
-
return i && r !== 0 ? `${r > 0 ? "+" : "-"}${P(Math.abs(r), a, n)}` : P(r, a, n);
|
|
136
|
-
}
|
|
137
|
-
function P(e, t, n = "en-US") {
|
|
138
|
-
if (e == null) return "";
|
|
139
|
-
let r;
|
|
140
|
-
return r = typeof t == "string" ? {
|
|
141
|
-
style: "currency",
|
|
142
|
-
currency: t
|
|
143
|
-
} : t && typeof t == "object" ? {
|
|
144
|
-
style: "currency",
|
|
145
|
-
currency: t.currency ?? "USD",
|
|
146
|
-
...t
|
|
147
|
-
} : {
|
|
148
|
-
style: "currency",
|
|
149
|
-
currency: "USD"
|
|
150
|
-
}, new Intl.NumberFormat(n, r).format(e);
|
|
151
|
-
}
|
|
152
|
-
function ue(e) {
|
|
153
|
-
if (e == null) return "";
|
|
154
|
-
let t = e;
|
|
155
|
-
return Number.isFinite(t) ? (t / 100).toFixed(2) : "";
|
|
156
|
-
}
|
|
157
|
-
function de(e) {
|
|
158
|
-
return e == null ? null : e instanceof Date ? isNaN(e.getTime()) ? null : e : r(e);
|
|
159
|
-
}
|
|
160
|
-
function F(e, t) {
|
|
161
|
-
return new Intl.DateTimeFormat("en-US", {
|
|
162
|
-
hour: "numeric",
|
|
163
|
-
minute: "2-digit",
|
|
164
|
-
timeZone: t
|
|
165
|
-
}).format(e);
|
|
166
|
-
}
|
|
167
|
-
function fe(t, r = {}) {
|
|
168
|
-
let i = r.timeZone;
|
|
169
|
-
if (i !== void 0 && !u(i)) throw new n(`Invalid timezone: ${i}`, e.INVALID_TIMEZONE, { timezone: i });
|
|
170
|
-
let a = de(t);
|
|
171
|
-
if (!a) return "";
|
|
172
|
-
let s = d(), c = a.getTime() - s.getTime(), l = Math.round(c / 6e4), f = c / 36e5, p = r.locale || "en-US";
|
|
173
|
-
if (l > 0 && l < 60) {
|
|
174
|
-
let e = Math.max(1, l);
|
|
175
|
-
return (e === 1 ? r.inNMinute || "in {n} minute" : r.inNMinutes || "in {n} minutes").replace("{n}", String(e));
|
|
176
|
-
}
|
|
177
|
-
if (f > 0 && f < 24) {
|
|
178
|
-
let e = Math.max(1, Math.round(f));
|
|
179
|
-
return (e === 1 ? r.inNHour || "in {n} hour" : r.inNHours || "in {n} hours").replace("{n}", String(e));
|
|
180
|
-
}
|
|
181
|
-
let m = (e) => {
|
|
182
|
-
if (i === void 0) return S(e);
|
|
183
|
-
let t = o(e.toISOString(), i);
|
|
184
|
-
return t === null ? null : w(t);
|
|
185
|
-
}, h = m(a), g = m(s);
|
|
186
|
-
if (h && g && k(h, O(g, 1))) {
|
|
187
|
-
let e = F(a, i);
|
|
188
|
-
return (r.tomorrowAtTime || "tomorrow at {time}").replace("{time}", e);
|
|
189
|
-
}
|
|
190
|
-
let _ = c / 864e5;
|
|
191
|
-
if (_ > 0 && _ <= 7) {
|
|
192
|
-
let e = new Intl.DateTimeFormat(p, {
|
|
193
|
-
weekday: "long",
|
|
194
|
-
timeZone: i
|
|
195
|
-
}).format(a), t = F(a, i);
|
|
196
|
-
return (r.onDayAtTime || "on {day} at {time}").replace("{day}", e).replace("{time}", t);
|
|
197
|
-
}
|
|
198
|
-
let v = new Intl.DateTimeFormat(p, {
|
|
199
|
-
month: "short",
|
|
200
|
-
day: "numeric",
|
|
201
|
-
timeZone: i
|
|
202
|
-
}).format(a);
|
|
203
|
-
return (r.onDate || "on {date}").replace("{date}", v);
|
|
204
|
-
}
|
|
205
|
-
function pe(e, t, n = "en-US") {
|
|
206
|
-
if (e == null) return "";
|
|
207
|
-
let r = typeof t == "string";
|
|
208
|
-
return new Intl.NumberFormat(r ? t : n, {
|
|
209
|
-
useGrouping: !0,
|
|
210
|
-
minimumFractionDigits: 0,
|
|
211
|
-
maximumFractionDigits: 0,
|
|
212
|
-
...r ? void 0 : t
|
|
213
|
-
}).format(e);
|
|
214
|
-
}
|
|
215
|
-
function I(e, t) {
|
|
216
|
-
let n = e?.trim() || "", r = t?.trim() || "";
|
|
217
|
-
return n && r ? `${n} ${r}` : n || r || "";
|
|
218
|
-
}
|
|
219
|
-
function L(e) {
|
|
220
|
-
return e.replace(/\D/g, "").replace(/(.{4})/g, "$1 ").trim();
|
|
221
|
-
}
|
|
222
|
-
function R(e) {
|
|
223
|
-
switch (e) {
|
|
224
|
-
case "flat":
|
|
225
|
-
case "cents": return console.warn(`[normalizeChargeType] Legacy serviceFeeChargeType "${e}" received -- use "fixed"`), "fixed";
|
|
226
|
-
case "percent": return console.warn(`[normalizeChargeType] Legacy serviceFeeChargeType "${e}" received -- use "percentage"`), "percentage";
|
|
227
|
-
case "fixed":
|
|
228
|
-
case "percentage":
|
|
229
|
-
case "both": return e;
|
|
230
|
-
default: return "both";
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
//#endregion
|
|
234
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/routing/slug.js
|
|
235
|
-
var z = 70;
|
|
236
|
-
function B(e) {
|
|
237
|
-
return e.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "").slice(0, z).replace(/-+$/g, "");
|
|
238
|
-
}
|
|
239
|
-
//#endregion
|
|
240
|
-
//#region src/lib/url-manager/params.ts
|
|
241
|
-
function me(e) {
|
|
242
|
-
let t = e.indexOf("-"), n = t === -1 ? e : e.substring(0, t);
|
|
243
|
-
return /^\d+$/.test(n) ? {
|
|
244
|
-
id: n,
|
|
245
|
-
slug: t === -1 ? "" : e.substring(t + 1)
|
|
246
|
-
} : null;
|
|
247
|
-
}
|
|
248
|
-
function he(e) {
|
|
249
|
-
let t = e.id || e.eventID || 0, n = e.slug || B(e.name || "");
|
|
250
|
-
return `#${t}${n ? "-" + n : ""}`;
|
|
251
|
-
}
|
|
252
|
-
//#endregion
|
|
253
|
-
//#region src/lib/constants/scarcity.ts
|
|
254
|
-
var V = {
|
|
255
|
-
URGENT_PCT: 10,
|
|
256
|
-
LOW_PCT: 20,
|
|
257
|
-
MAX_EXACT_COUNT: 20,
|
|
258
|
-
ABSOLUTE_FLOOR: 5,
|
|
259
|
-
LOW_ABSOLUTE_FLOOR: 6,
|
|
260
|
-
ABSOLUTE_CAP: 30
|
|
261
|
-
}, H = { CLAIM_ON_UNTOUCHED_POOL: !0 };
|
|
262
|
-
function U(e, t, n) {
|
|
263
|
-
let { ABSOLUTE_CAP: r } = V, i = r / t * 100, a = n / t * 100;
|
|
264
|
-
return Math.max(Math.min(e, i), a);
|
|
265
|
-
}
|
|
266
|
-
function ge(e, t, n = H) {
|
|
267
|
-
if (t <= 0) return "plenty";
|
|
268
|
-
if (e <= 0) return "sold-out";
|
|
269
|
-
if (!n.CLAIM_ON_UNTOUCHED_POOL && e >= t) return "plenty";
|
|
270
|
-
let r = e / t * 100, { URGENT_PCT: i, LOW_PCT: a, MAX_EXACT_COUNT: o, ABSOLUTE_FLOOR: s, LOW_ABSOLUTE_FLOOR: c } = V, l = U(i, t, s), u = U(a, t, c);
|
|
271
|
-
return r <= l && e <= o ? "urgent" : r <= u ? "low" : "plenty";
|
|
272
|
-
}
|
|
273
|
-
//#endregion
|
|
274
|
-
//#region src/lib/core/datetime.js
|
|
275
|
-
var W = /* @__PURE__ */ new Map(), _e = 64;
|
|
276
|
-
function G(e, t) {
|
|
277
|
-
let n = `${e}|${JSON.stringify(t)}`, r = W.get(n);
|
|
278
|
-
return r ? (W.delete(n), W.set(n, r), r) : (r = new Intl.DateTimeFormat(e, t), W.set(n, r), W.size > _e && W.delete(W.keys().next().value), r);
|
|
279
|
-
}
|
|
280
|
-
function K(e) {
|
|
281
|
-
if (e == null) return null;
|
|
282
|
-
let t = Number(e);
|
|
283
|
-
return Number.isFinite(t) ? t : null;
|
|
284
|
-
}
|
|
285
|
-
function q(e) {
|
|
286
|
-
let t = K(e?.price);
|
|
287
|
-
return t === null ? null : t === 0 ? 0 : N(t + (K(e?.fee) ?? 0));
|
|
288
|
-
}
|
|
289
|
-
function ve(e, t = c) {
|
|
290
|
-
return J(q(e), t);
|
|
291
|
-
}
|
|
292
|
-
function ye(e) {
|
|
293
|
-
return P(e, {
|
|
294
|
-
minimumFractionDigits: Number.isInteger(e) ? 0 : 2,
|
|
295
|
-
maximumFractionDigits: 2
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
function J(e, t = c) {
|
|
299
|
-
return e == null ? "—" : e <= 0 ? t.free || "Free" : P(e);
|
|
300
|
-
}
|
|
301
|
-
function Y(e, t = l) {
|
|
302
|
-
return e && s(e) ? e : t;
|
|
303
|
-
}
|
|
304
|
-
function X(e) {
|
|
305
|
-
if (e == null || e === "" || typeof e != "string" && typeof e != "number" && !(e instanceof Date)) return null;
|
|
306
|
-
let t = new Date(e);
|
|
307
|
-
return isNaN(t.getTime()) ? null : t;
|
|
308
|
-
}
|
|
309
|
-
function Z(e, t, n, r) {
|
|
310
|
-
let i = X(e);
|
|
311
|
-
if (!i) return "";
|
|
312
|
-
let a = Y(t);
|
|
313
|
-
return G(r || "en-US", {
|
|
314
|
-
...n,
|
|
315
|
-
timeZone: a
|
|
316
|
-
}).format(i);
|
|
317
|
-
}
|
|
318
|
-
function Q(e, t) {
|
|
319
|
-
return Z(e, t, {
|
|
320
|
-
year: "numeric",
|
|
321
|
-
month: "2-digit",
|
|
322
|
-
day: "2-digit"
|
|
323
|
-
}, "en-CA");
|
|
324
|
-
}
|
|
325
|
-
function $(e, t, n) {
|
|
326
|
-
return Z(e, t, {
|
|
327
|
-
hour: "numeric",
|
|
328
|
-
minute: "2-digit",
|
|
329
|
-
hour12: !0
|
|
330
|
-
}, n);
|
|
331
|
-
}
|
|
332
|
-
function be(e, t, n, r) {
|
|
333
|
-
let i = $(e, n, r);
|
|
334
|
-
if (!t) return i;
|
|
335
|
-
let a = $(t, n, r);
|
|
336
|
-
return i && a ? `${i} - ${a}` : i;
|
|
337
|
-
}
|
|
338
|
-
function xe(e, t, n) {
|
|
339
|
-
if (!X(e)) return {
|
|
340
|
-
day: "",
|
|
341
|
-
month: "",
|
|
342
|
-
date: 0,
|
|
343
|
-
year: 0
|
|
344
|
-
};
|
|
345
|
-
let r = Y(t);
|
|
346
|
-
return {
|
|
347
|
-
day: Z(e, r, { weekday: "short" }, n),
|
|
348
|
-
month: Z(e, r, { month: "short" }, n),
|
|
349
|
-
date: parseInt(Z(e, r, { day: "numeric" }, "en-US"), 10),
|
|
350
|
-
year: parseInt(Z(e, r, { year: "numeric" }, "en-US"), 10)
|
|
351
|
-
};
|
|
352
|
-
}
|
|
353
|
-
function Se(e, t, n) {
|
|
354
|
-
return Z(e, t, {
|
|
355
|
-
weekday: "short",
|
|
356
|
-
month: "short",
|
|
357
|
-
day: "numeric"
|
|
358
|
-
}, n);
|
|
359
|
-
}
|
|
360
|
-
function Ce(e, t, n) {
|
|
361
|
-
return Z(e, t, {
|
|
362
|
-
weekday: "long",
|
|
363
|
-
year: "numeric",
|
|
364
|
-
month: "long",
|
|
365
|
-
day: "numeric"
|
|
366
|
-
}, n);
|
|
367
|
-
}
|
|
368
|
-
function we(e, t, n) {
|
|
369
|
-
return e == null || e === "" ? "" : typeof e == "string" && /^\d{1,2}:\d{2}\s*(AM|PM)$/i.test(e) ? e : $(e, t, n) || (typeof e == "string" ? e : "");
|
|
370
|
-
}
|
|
371
|
-
function Te(e, t, n, r) {
|
|
372
|
-
let i = X(e);
|
|
373
|
-
if (!i) return "";
|
|
374
|
-
let a = X(t);
|
|
375
|
-
if (!a || a.getTime() <= i.getTime()) return $(e, n, r);
|
|
376
|
-
if (Q(e, n) !== Q(t, n)) return `${$(e, n, r)} – ${$(t, n, r)}`;
|
|
377
|
-
let o = {
|
|
378
|
-
hour: "numeric",
|
|
379
|
-
minute: "2-digit",
|
|
380
|
-
hour12: !0,
|
|
381
|
-
timeZone: Y(n)
|
|
382
|
-
}, s = G(r || "en-US", o);
|
|
383
|
-
if (s.format(i) !== s.format(a)) return s.formatRange(i, a);
|
|
384
|
-
let c = G(r || "en-US", {
|
|
385
|
-
...o,
|
|
386
|
-
timeZoneName: "short"
|
|
387
|
-
});
|
|
388
|
-
return `${c.format(i)} – ${c.format(a)}`;
|
|
389
|
-
}
|
|
390
|
-
function Ee(e, t, n) {
|
|
391
|
-
let r = Y(t), i = (e || []).map((e) => {
|
|
392
|
-
let t = typeof e == "string" ? e : e?.startDateTime, n = typeof e == "string" ? void 0 : e?.timezone, i = X(t);
|
|
393
|
-
return i && {
|
|
394
|
-
date: i,
|
|
395
|
-
tz: Y(n, r)
|
|
396
|
-
};
|
|
397
|
-
}).filter(Boolean).sort((e, t) => e.date.getTime() - t.date.getTime());
|
|
398
|
-
if (i.length === 0) return "";
|
|
399
|
-
let a = i[0], o = i[i.length - 1], s = (e) => G(n || "en-US", {
|
|
400
|
-
month: "short",
|
|
401
|
-
day: "numeric",
|
|
402
|
-
timeZone: e
|
|
403
|
-
}), c = (e) => G(n || "en-US", {
|
|
404
|
-
year: "numeric",
|
|
405
|
-
timeZone: e
|
|
406
|
-
}), l = s(a.tz).format(a.date), u = s(o.tz).format(o.date);
|
|
407
|
-
return a.tz !== o.tz || c(a.tz).format(a.date) !== c(o.tz).format(o.date) ? l === u ? l : `${l} – ${u}` : s(a.tz).formatRange(a.date, o.date);
|
|
408
|
-
}
|
|
409
|
-
//#endregion
|
|
410
|
-
export { N as A, C as B, pe as C, I as D, ce as E, D as F, S as G, te as H, j as I, ee as J, T as K, A as L, ne as M, oe as N, fe as O, M as P, se as R, ue as S, P as T, E as U, w as V, re as W, g as X, h as Y, ge as _, Z as a, B as b, Ce as c, K as d, ye as f, V as g, q as h, we as i, O as j, R as k, be as l, ve as m, Q as n, Te as o, J as p, ie as q, Ee as r, $ as s, Se as t, xe as u, he as v, L as w, le as x, me as y, k as z };
|