@getmicdrop/venue-calendar 4.3.136 → 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-Ck_b8lsf.js → AddOnCard-DEAC26HA.js} +102 -105
- 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/{BlockPlaceholder-Cjbm5hoG.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-DCLzgpBo.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-BjPbytbt.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-DzYupNUI.js → CheckoutTimer-mjcYR3XU.js} +9 -11
- package/dist/{ChevronDownIcon-O-Q8C_Qg.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-Dp529P99.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-BHnHfeO-.js → Event-vlu8IAxh.js} +1181 -1187
- package/dist/{EventCard-DIFJADV7.js → EventCard-puoh3xag.js} +15 -15
- package/dist/{EventPage-DGrkeBd_.js → EventPage-DycxjX5Z.js} +391 -446
- 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-BG9DbwUe.js → Input-BQk4itex.js} +43 -43
- package/dist/LiveRegion-Ds0mjIVj.js +17 -0
- package/dist/{LocationIcon-BEx96ng8.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-BQdpZ9HL.js → PasswordInput-C65GqxdF.js} +11 -13
- package/dist/{PhoneInput-5l-M5ykF.js → PhoneInput-Dj1I3bEn.js} +80 -89
- package/dist/{RecommendationsRail-BRthm1Iu.js → RecommendationsRail-DC5qX1ei.js} +145 -159
- package/dist/RequiredIndicator-CRZ_coyR.js +16 -0
- package/dist/{ScarcityBadge-Dt0r5r2M.js → ScarcityBadge-BAaV2CIY.js} +37 -41
- package/dist/Search-BE64QcmK.js +82 -0
- package/dist/SearchIcon-BzOhoKm8.js +24 -0
- package/dist/{SeriesPage-0sHD6hcq.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-e-Mg0Eyb.js → Spinner-Bj4dr9kO.js} +7 -7
- package/dist/Stack-Ck1wrJ0l.js +34 -0
- package/dist/{Success-DWdMk7gp.js → Success-D3CrUeka.js} +273 -305
- package/dist/{TagIcon-BIJYPXYq.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-CjH3N_VJ.js → ViewTicketsEmbed-DzUCgtA3.js} +227 -244
- package/dist/{WarningCircleIcon-Uuc8KHJN.js → WarningCircleIcon-jC3nXehu.js} +4 -7
- package/dist/{WarningTriIcon-SX24XObM.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-ZuPjzr6t.js → allowlist-Bt1BHhNd.js} +244 -315
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +213 -227
- package/dist/api/cta.d.ts +4 -0
- package/dist/api/events.d.ts +13 -0
- package/dist/api-CRHFSJDI.js +502 -0
- package/dist/avatar-picker-field-CSF5okeM.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/calendar-Cdu8fCIt.js +111 -0
- package/dist/checkout-libs/4.3.138/phone.js +6 -0
- package/dist/checkout-libs/{4.3.136 → 4.3.138}/qrcode.js +3 -3
- 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/{constants-D_7LswXe.js → constants-DrFV2oht.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/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-DC0pKC1H.js → de-CUrE_4a4.js} +1 -2
- package/dist/{de-BbjhLBzm.js → de-vKpbo9Zl.js} +1 -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-38yS4d3G.js → es-8qe0Mo-8.js} +1 -2
- package/dist/{es-DxoJfXOC.js → es-B2-z2Kft.js} +1 -2
- package/dist/{event-DXsgCbu0.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-LivMhlfx.js → fr-BmpShjUG.js} +1 -2
- package/dist/{fr-DCdoZpLm.js → fr-CiePVIlj.js} +1 -2
- 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-Xwod-PFp.js → i18n-B_TWnExv.js} +148 -150
- package/dist/i18n-CSaUFnlD.js +26 -0
- package/dist/iconWeight-BRXEDAh2.js +12 -0
- package/dist/{id-XuEVsPu6.js → id-Ttw95_7t.js} +1 -2
- package/dist/{id-BvOr8-aw.js → id-_6GFAYBn.js} +1 -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-RdUTxnO5.js → it-CBbXcFY1.js} +1 -2
- package/dist/{it-mzikQJIm.js → it-Dc-H_PdY.js} +1 -2
- package/dist/{ja-DgVJimHs.js → ja-B2Tag7J3.js} +1 -2
- package/dist/{ja-D9PSUNMd.js → ja-Cobhk-xH.js} +1 -2
- package/dist/keyboard-Dk2PfrEz.js +28 -0
- package/dist/{ko-CcPM8_aU.js → ko-CcTn4lAi.js} +1 -2
- package/dist/{ko-DEgW43V6.js → ko-CyTlg6vA.js} +1 -2
- package/dist/labels-CjSrA6gx.js +9 -0
- package/dist/{labels-BGvfcm36.js → labels-D8LN8lY7.js} +1 -2
- package/dist/{lazyOnce-CCfEO1xG.js → lazyOnce-jG8k1apa.js} +1 -2
- package/dist/loaders.static-Bw9asjrm.js +3 -0
- 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-D6W4anEV.js → navigation-DpqP-ahJ.js} +28 -32
- package/dist/{nl-DjFukZvI.js → nl-BObQMscG.js} +1 -2
- package/dist/{nl-DdxH5fLm.js → nl-DeIqgjIs.js} +1 -2
- 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-DlWC17He.js → phoneShape-VqbamHOn.js} +1 -2
- package/dist/{phoneUtils-CL8tIxoM.js → phoneUtils-BhOvrS4S.js} +133 -193
- package/dist/{pixels-DO7kbZa_.js → pixels-BXXzmoCb.js} +12 -18
- package/dist/{pl-B99nQZCh.js → pl-Bm2FcD5y.js} +1 -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-_KntrgGE.js → pt-br-CpmhafxS.js} +1 -2
- package/dist/{pt-br-jT56QM8s.js → pt-br-XS1Lsa6z.js} +1 -2
- 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-D5UTR7zF.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-8IIuKwpQ.js → tr-CN8DGCc-.js} +1 -2
- package/dist/{tr-B5sI__p7.js → tr-zKAbMfgi.js} +1 -2
- 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-S6mZHEaC.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 +1636 -1802
- package/dist/venue-calendar.iife.js +24 -39
- package/dist/venue-calendar.umd.js +68 -76
- package/dist/{widget-key-context-Xn6MT23x.js → widget-key-context-BrWW0fyM.js} +28 -43
- package/dist/{zh-apNTBV5B.js → zh-BaZ_hYJV.js} +1 -2
- package/dist/{zh-DLwlt3JO.js → zh-DHfgJplH.js} +1 -2
- package/package.json +14 -14
- package/src/lib/theme.js +222 -222
- 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/Checkout-C_Dn_RZI.js +0 -1878
- package/dist/Checkout-JdT81S88.js +0 -1082
- package/dist/CloseIcon-40klpaYz.js +0 -35
- package/dist/CropImage-D1M-bKxG.js +0 -548
- package/dist/Grid-kuP6V0GW.js +0 -89
- package/dist/ModalFooter-Cru7v0io.js +0 -394
- package/dist/ModalHeader-CpgkuttK.js +0 -18
- 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-cI0EPfvw.js +0 -28
- package/dist/imageOptimizer-Gew5vPWh.js +0 -224
- package/dist/keyboard-DhCcdIyh.js +0 -55
- package/dist/loaders.static-xwcJwfk2.js +0 -4
- 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/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/locales/{4.3.136 → 4.3.138}/flow/de.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.138}/flow/es.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.138}/flow/fr.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.138}/flow/id.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.138}/flow/it.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.138}/flow/ja.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.138}/flow/ko.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.138}/flow/nl.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.138}/flow/pl.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.138}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.138}/flow/tr.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.138}/flow/zh.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.138}/main/de.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.138}/main/es.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.138}/main/fr.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.138}/main/id.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.138}/main/it.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.138}/main/ja.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.138}/main/ko.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.138}/main/nl.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.138}/main/pl.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.138}/main/pt-br.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.138}/main/tr.js +0 -0
- /package/dist/locales/{4.3.136 → 4.3.138}/main/zh.js +0 -0
- /package/dist/looks/{4.3.136 → 4.3.138}/micdrop-wordmark-BYMG6vLR.svg +0 -0
- /package/dist/looks/{4.3.136 → 4.3.138}/microphone-Ccv4r-kd.webp +0 -0
- /package/dist/looks/{4.3.136 → 4.3.138}/superuser-CZF6a5gO.webp +0 -0
- /package/dist/looks/{4.3.136 → 4.3.138}/treasury-DUE7lZzT.webp +0 -0
- /package/dist/looks/{4.3.136 → 4.3.138}/user-image-yuS4errP.svg +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, i, o, s) => {
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
|
+
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, i, o, s) => {
|
|
3
3
|
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
4
4
|
get: ((e) => i[e]).bind(null, d),
|
|
5
5
|
enumerable: !(s = n(i, d)) || s.enumerable
|
|
@@ -9,5 +9,4 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
9
9
|
value: n,
|
|
10
10
|
enumerable: !0
|
|
11
11
|
}) : o, n));
|
|
12
|
-
//#endregion
|
|
13
12
|
export { c as n, o as t };
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { t as e } from "./Search-BE64QcmK.js";
|
|
2
|
+
import { a as t } from "./allowlist-Bt1BHhNd.js";
|
|
3
|
+
import { i as n } from "./typography-CKwYSv07.js";
|
|
4
|
+
import { d as r } from "./field-rules-CKFFB16Q.js";
|
|
5
|
+
import { t as i } from "./Badge-CmYqIClC.js";
|
|
6
|
+
import { t as a } from "./foundryRuntime-DKyfdkUY.js";
|
|
7
|
+
import { r as o, y as s } from "./CalendarFoundryView-DbxZNmY7.js";
|
|
8
|
+
import "svelte/internal/disclose-version";
|
|
9
|
+
import * as c from "svelte/internal/client";
|
|
10
|
+
// node_modules/@getmicdrop/svelte-components/dist/foundry/blocks/fields/searchable-select-field.svelte
|
|
11
|
+
var l = c.from_html("<span> </span>"), u = c.from_html("<span class=\"flex min-w-0 flex-col\"><span> </span> <!></span>"), d = c.from_html("<div class=\"flex items-center gap-3 px-3 py-2 hover:bg-muted\"><!> <div class=\"min-w-0 flex-1\"><!></div> <!></div>"), f = c.from_html("<p> </p>"), p = c.from_html("<div><!> <div class=\"max-h-72 overflow-y-auto rounded-lg border border-stroke-primary bg-bg-secondary\"><!> <!></div></div>");
|
|
12
|
+
function m(m, h) {
|
|
13
|
+
let g = c.props_id();
|
|
14
|
+
c.push(h, !0);
|
|
15
|
+
let _ = a().i18n, v = c.state(""), y = c.derived(() => `${g}-${h.field.key}`), b = c.derived(() => r(h.field)), x = c.derived(() => String(h.values[h.field.key] ?? "")), S = c.derived(() => h.disabled === !0), C = c.derived(() => {
|
|
16
|
+
let e = c.get(v).trim().toLowerCase();
|
|
17
|
+
return e ? c.get(b).filter((t) => `${t.label} ${t.description ?? ""}`.toLowerCase().includes(e)) : c.get(b);
|
|
18
|
+
});
|
|
19
|
+
var w = p();
|
|
20
|
+
c.attribute_effect(w, (e) => ({
|
|
21
|
+
class: "flex flex-col gap-3",
|
|
22
|
+
...e
|
|
23
|
+
}), [() => o(h.field, h.wiring)]);
|
|
24
|
+
var T = c.child(w);
|
|
25
|
+
{
|
|
26
|
+
let t = c.derived(() => h.controlId ?? h.field.key), n = c.derived(() => h.testId ?? h.controlId ?? h.field.key), r = c.derived(() => _.common_search());
|
|
27
|
+
e(T, {
|
|
28
|
+
get id() {
|
|
29
|
+
return `${c.get(t) ?? ""}-search`;
|
|
30
|
+
},
|
|
31
|
+
get "data-testid"() {
|
|
32
|
+
return `${c.get(n) ?? ""}-search`;
|
|
33
|
+
},
|
|
34
|
+
get value() {
|
|
35
|
+
return c.get(v);
|
|
36
|
+
},
|
|
37
|
+
get placeholder() {
|
|
38
|
+
return c.get(r);
|
|
39
|
+
},
|
|
40
|
+
get disabled() {
|
|
41
|
+
return c.get(S);
|
|
42
|
+
},
|
|
43
|
+
oninput: (e) => c.set(v, e.currentTarget.value, !0)
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
var E = c.sibling(T, 2), D = c.child(E);
|
|
47
|
+
c.each(D, 19, () => c.get(C), (e, t) => `${t}:${e.value}`, (e, r) => {
|
|
48
|
+
var a = d(), o = c.child(a), f = (e) => {
|
|
49
|
+
t(e, {
|
|
50
|
+
get src() {
|
|
51
|
+
return c.get(r).image;
|
|
52
|
+
},
|
|
53
|
+
alt: "",
|
|
54
|
+
size: "sm"
|
|
55
|
+
});
|
|
56
|
+
}, p = (e) => {
|
|
57
|
+
{
|
|
58
|
+
let n = c.derived(() => c.get(r).label.slice(0, 2));
|
|
59
|
+
t(e, {
|
|
60
|
+
get initials() {
|
|
61
|
+
return c.get(n);
|
|
62
|
+
},
|
|
63
|
+
size: "sm"
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
c.if(o, (e) => {
|
|
68
|
+
c.get(r).image ? e(f) : e(p, -1);
|
|
69
|
+
});
|
|
70
|
+
var m = c.sibling(o, 2), g = c.child(m);
|
|
71
|
+
{
|
|
72
|
+
let e = c.derived(() => c.get(x) === c.get(r).value), t = c.derived(() => c.get(S) || c.get(r).disabled === !0);
|
|
73
|
+
s(g, {
|
|
74
|
+
get name() {
|
|
75
|
+
return c.get(y);
|
|
76
|
+
},
|
|
77
|
+
get value() {
|
|
78
|
+
return c.get(r).value;
|
|
79
|
+
},
|
|
80
|
+
get checked() {
|
|
81
|
+
return c.get(e);
|
|
82
|
+
},
|
|
83
|
+
get disabled() {
|
|
84
|
+
return c.get(t);
|
|
85
|
+
},
|
|
86
|
+
onchange: () => h.set(h.field.key, c.get(r).value),
|
|
87
|
+
children: (e, t) => {
|
|
88
|
+
var i = u(), a = c.child(i), o = c.only_child(a, !0), s = c.sibling(a, 2), d = (e) => {
|
|
89
|
+
var t = l(), i = c.only_child(t, !0);
|
|
90
|
+
c.template_effect(() => {
|
|
91
|
+
c.set_class(t, 1, `${n.caption ?? ""} tone-muted`), c.set_text(i, c.get(r).description);
|
|
92
|
+
}), c.append(e, t);
|
|
93
|
+
};
|
|
94
|
+
c.if(s, (e) => {
|
|
95
|
+
c.get(r).description && e(d);
|
|
96
|
+
}), c.reset(i), c.template_effect(() => {
|
|
97
|
+
c.set_class(a, 1, c.clsx(n.label)), c.set_text(o, c.get(r).label);
|
|
98
|
+
}), c.append(e, i);
|
|
99
|
+
},
|
|
100
|
+
$$slots: { default: !0 }
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
c.reset(m);
|
|
104
|
+
var _ = c.sibling(m, 2), v = (e) => {
|
|
105
|
+
{
|
|
106
|
+
let t = c.derived(() => c.get(r).badge.variant ?? "neutral"), n = c.derived(() => c.get(r).badge.dot ?? !1);
|
|
107
|
+
i(e, {
|
|
108
|
+
get variant() {
|
|
109
|
+
return c.get(t);
|
|
110
|
+
},
|
|
111
|
+
size: "small",
|
|
112
|
+
get showDot() {
|
|
113
|
+
return c.get(n);
|
|
114
|
+
},
|
|
115
|
+
children: (e, t) => {
|
|
116
|
+
c.next();
|
|
117
|
+
var n = c.text();
|
|
118
|
+
c.template_effect(() => c.set_text(n, c.get(r).badge.label)), c.append(e, n);
|
|
119
|
+
},
|
|
120
|
+
$$slots: { default: !0 }
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
c.if(_, (e) => {
|
|
125
|
+
c.get(r).badge && e(v);
|
|
126
|
+
}), c.reset(a), c.append(e, a);
|
|
127
|
+
});
|
|
128
|
+
var O = c.sibling(D, 2), k = (e) => {
|
|
129
|
+
var t = f(), r = c.only_child(t, !0);
|
|
130
|
+
c.template_effect((e) => {
|
|
131
|
+
c.set_class(t, 1, `${n.caption ?? ""} px-3 py-4 tone-muted`), c.set_text(r, e);
|
|
132
|
+
}, [() => _.common_no_data()]), c.append(e, t);
|
|
133
|
+
};
|
|
134
|
+
c.if(O, (e) => {
|
|
135
|
+
c.get(C).length === 0 && e(k);
|
|
136
|
+
}), c.reset(E), c.reset(w), c.append(m, w), c.pop();
|
|
137
|
+
}
|
|
138
|
+
export { m as default };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { d as e, o as t } from "./field-rules-CKFFB16Q.js";
|
|
2
|
+
import { t as n } from "./foundryRuntime-DKyfdkUY.js";
|
|
3
|
+
import { b as r, n as i } from "./CalendarFoundryView-DbxZNmY7.js";
|
|
4
|
+
import "svelte/internal/disclose-version";
|
|
5
|
+
import * as a from "svelte/internal/client";
|
|
6
|
+
// node_modules/@getmicdrop/svelte-components/dist/foundry/blocks/fields/select-field.svelte
|
|
7
|
+
var o = a.from_html("<!> <!>", 1);
|
|
8
|
+
function s(s, c) {
|
|
9
|
+
a.push(c, !0);
|
|
10
|
+
let l = n().i18n;
|
|
11
|
+
var u = o(), d = a.first_child(u);
|
|
12
|
+
{
|
|
13
|
+
let n = a.derived(() => c.controlId ?? c.field.key), i = a.derived(() => c.testId ?? c.controlId ?? c.field.key), o = a.derived(() => String(c.values[c.field.key] ?? "")), s = a.derived(() => e(c.field).map((e) => ({
|
|
14
|
+
value: e.value,
|
|
15
|
+
name: e.label,
|
|
16
|
+
lang: e.lang
|
|
17
|
+
}))), u = a.derived(() => c.disabled === !0 || t(c.field, c.values)), f = a.derived(() => c.field.select?.placeholder ?? ""), p = a.derived(() => c.field.select?.clearable === !0), m = a.derived(() => ({ clearAll: l.comp_multiselect_clear_all() }));
|
|
18
|
+
r(d, {
|
|
19
|
+
get id() {
|
|
20
|
+
return a.get(n);
|
|
21
|
+
},
|
|
22
|
+
get wiring() {
|
|
23
|
+
return c.wiring;
|
|
24
|
+
},
|
|
25
|
+
get "data-testid"() {
|
|
26
|
+
return a.get(i);
|
|
27
|
+
},
|
|
28
|
+
get value() {
|
|
29
|
+
return a.get(o);
|
|
30
|
+
},
|
|
31
|
+
get items() {
|
|
32
|
+
return a.get(s);
|
|
33
|
+
},
|
|
34
|
+
get required() {
|
|
35
|
+
return c.field.required;
|
|
36
|
+
},
|
|
37
|
+
get disabled() {
|
|
38
|
+
return a.get(u);
|
|
39
|
+
},
|
|
40
|
+
get placeholder() {
|
|
41
|
+
return a.get(f);
|
|
42
|
+
},
|
|
43
|
+
get clearable() {
|
|
44
|
+
return a.get(p);
|
|
45
|
+
},
|
|
46
|
+
get labels() {
|
|
47
|
+
return a.get(m);
|
|
48
|
+
},
|
|
49
|
+
onchange: (e) => c.set(c.field.key, e.value)
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
var f = a.sibling(d, 2);
|
|
53
|
+
{
|
|
54
|
+
let e = a.derived(() => c.disabled === !0 || t(c.field, c.values));
|
|
55
|
+
i(f, {
|
|
56
|
+
get field() {
|
|
57
|
+
return c.field;
|
|
58
|
+
},
|
|
59
|
+
get value() {
|
|
60
|
+
return c.values[c.field.key];
|
|
61
|
+
},
|
|
62
|
+
get onaction() {
|
|
63
|
+
return c.onaction;
|
|
64
|
+
},
|
|
65
|
+
get disabled() {
|
|
66
|
+
return a.get(e);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
a.append(s, u), a.pop();
|
|
71
|
+
}
|
|
72
|
+
export { s as default };
|
package/dist/seo/seo.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});function e(){return`America/Los_Angeles`}var t=/<\/(?:p|div|h[1-6]|li|ul|ol|blockquote|tr)>/gi,n=/<br\s*\/?>/gi,r=/<[^>]*>/g,i={"&":`&`,"<":`<`,">":`>`,""":`"`,"'":`'`,"'":`'`," ":` `};function a(e){return e.replace(/&#x([0-9a-f]+);/gi,(e,t)=>o(parseInt(t,16))).replace(/&#(\d+);/g,(e,t)=>o(Number(t))).replace(/&[a-z0-9]+;/gi,e=>i[e.toLowerCase()]??e)}function o(e){return Number.isFinite(e)&&e>0&&e<=1114111?String.fromCodePoint(e):``}function s(e,i){if(!e)return``;let o=String(e).replace(n,` `).replace(t,` `).replace(r,``);if(o=a(o).replace(/\s+/g,` `).trim(),i&&i>0&&o.length>i){let e=o.slice(0,i),t=e.lastIndexOf(` `);o=(t>40?e.slice(0,t):e).trimEnd()+`…`}return o}function c(){return new Date}var l=class extends Error{constructor(e,t,n={}){super(e),this.name=`AppError`,this.code=t,this.status=n.status??500,this.details=n.details,this.timestamp=c(),this.recoverable=n.recoverable??!0,this.cause=n.cause,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toJSON(){return{name:this.name,code:this.code,message:this.message,status:this.status,details:this.details,timestamp:this.timestamp.toISOString(),recoverable:this.recoverable,stack:this.stack,cause:this.cause?.message}}getUserMessage(e){return this.message}isRetryable(){return this.recoverable}},u=class extends l{constructor(e,t,n={}){super(e,t,{status:422,recoverable:!1,...n}),this.name=`ValueGuardError`}},d=class extends u{constructor(e,t,n){super(e,t,{details:n}),this.name=`DateTimeError`}},f;(function(e){e.INVALID_TIMEZONE=`INVALID_TIMEZONE`,e.INVALID_ISO_STRING=`INVALID_ISO_STRING`,e.INVALID_DATE=`INVALID_DATE`,e.INVALID_TIME=`INVALID_TIME`,e.MISSING_TIMEZONE=`MISSING_TIMEZONE`,e.PARSE_ERROR=`PARSE_ERROR`})(f||={});function p(e,t,n,r=0,i=0,a=0){let o=new Date(Date.UTC(e,t-1,n,r,i,a));return e>=0&&e<=99&&o.setUTCFullYear(e),o}var m=/^(\d{4})-(\d{2})-(\d{2})(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d{1,9})?)?(?:Z|[+-]\d{2}:\d{2}))?$/,h=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(?::\d{2}(?:\.\d{1,9})?)?$/;function g(e,t,n){let r=p(e,t,n);return r.getUTCFullYear()===e&&r.getUTCMonth()===t-1&&r.getUTCDate()===n}var _=/^(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,9}))? ?([+-])(\d{2}):?(\d{2})(?: [A-Za-z][A-Za-z0-9_/+-]*)?(?: m=[+-][\d.]+)?$/,v=p(1,1,1).getTime();function y(e){let t=m.exec(e);if(t){let[,n,r,i]=t;return{iso:e,year:+n,month:+r,day:+i}}let n=_.exec(e);if(n){let[,e,t,r,i,a,o,s,c,l,u]=n;return{iso:`${e}-${t}-${r}T${i}:${a}:${o}${s?`.${s.slice(0,3).padEnd(3,`0`)}`:``}${c}${l}:${u}`,year:+e,month:+t,day:+r}}return null}function b(e){if(typeof e==`number`){if(!Number.isFinite(e))return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:t}if(typeof e!=`string`)return null;let t=y(e.trim());if(!t||!g(t.year,t.month,t.day))return null;let n=new Date(t.iso);return Number.isNaN(n.getTime())?null:n}function x(e){let t=b(e);return t!==null&&t.getTime()===v}function S(e,t){if(e.getTime()===v)throw new d(`toInstant: ${JSON.stringify(t)} is the backend's UNSET marker (Go's zero time.Time), not a moment — the field was never filled in. toInstant is the REQUIRED-timestamp door, so an unset value here is a bug: returning the year-1 instant it names would sort this row ahead of every real date and answer "yes" to "has this started?". If the field is allowed to be unset, read it with toInstantOrNull (null), ask isAbsentTimestamp why it is missing, and order it with compareWireInstants.`,f.INVALID_ISO_STRING,{value:t})}function C(e,t){if(!(e instanceof Date)||Number.isNaN(e.getTime()))throw new d(`${t} must be a valid Date`,f.INVALID_DATE,{value:e})}function w(e,t){return C(e,`compareInstants(a)`),C(t,`compareInstants(b)`),e.getTime()-t.getTime()}function T(e){if(typeof e==`number`){if(!Number.isFinite(e))throw new d(`toInstant: epoch milliseconds must be a finite number, got ${e}`,f.INVALID_DATE,{value:e});let t=new Date(e);return C(t,`toInstant(value)`),S(t,e),t}if(typeof e!=`string`||e.trim()===``)throw new d(`toInstant: a UTC ISO timestamp or epoch ms is required, got ${JSON.stringify(e)}`,typeof e==`string`?f.INVALID_ISO_STRING:f.INVALID_DATE,{value:e});let t=y(e);if(!t)throw h.test(e)?new d(`toInstant: ${JSON.stringify(e)} carries a time but no timezone, so it is not an instant — it would resolve on the viewer's clock and land on a different calendar day for a viewer in Los Angeles than one in London. Send a UTC wire timestamp (2026-06-09T20:00:00Z) or an explicit offset (2026-06-09T13:00:00-07:00). If this is a local wall-clock value, it belongs in datetime/local or parseLocalToUTC(value, timezone), not here.`,f.MISSING_TIMEZONE,{value:e}):new d(`toInstant: not an ISO-8601 timestamp: ${JSON.stringify(e)}`,f.INVALID_ISO_STRING,{value:e});let{year:n,month:r,day:i}=t;if(!g(n,r,i))throw new d(`toInstant: ${n}-${r}-${i} is not a real calendar date: ${JSON.stringify(e)}`,f.INVALID_ISO_STRING,{value:e});let a=new Date(t.iso);if(Number.isNaN(a.getTime()))throw new d(`toInstant: ISO-8601 shaped but not a real instant: ${JSON.stringify(e)}`,f.INVALID_ISO_STRING,{value:e});return S(a,e),a}function E(e){if(e==null||typeof e==`string`&&e.trim()===``||x(e))return null;try{return T(e)}catch{return null}}function D(e){return Math.round((e+2**-52)*100)/100}function O(e){if(e==null)return null;let t=Number(e);return Number.isFinite(t)?t:null}function k(e){let t=O(e?.price);return t===null?null:t===0?0:D(t+(O(e?.fee)??0))}var A={VISIBLE:0,HIDDEN:1,PROMO_ONLY:2};function j(e){return e.replace(/</g,`\\u003c`).replace(/>/g,`\\u003e`).replace(/&/g,`\\u0026`)}function M(t,n){if(!t)return null;let r=new Date(t);if(isNaN(r.getTime()))return null;let i={year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1,timeZoneName:`shortOffset`},a;try{a=new Intl.DateTimeFormat(`en-US`,{...i,timeZone:n})}catch{a=new Intl.DateTimeFormat(`en-US`,{...i,timeZone:e()})}let o=a.formatToParts(r),s=e=>o.find(t=>t.type===e)?.value||``,c=s(`year`),l=s(`month`),u=s(`day`),d=s(`hour`),f=s(`minute`),p=s(`second`),m=s(`timeZoneName`),h=`+00:00`;if(m){let e=m.match(/GMT([+-])(\d+)(?::(\d+))?/);e&&(h=`${e[1]}${e[2].padStart(2,`0`)}:${e[3]||`00`}`)}return`${c}-${l}-${u}T${d}:${f}:${p}${h}`}function N(e){if(!e)return null;let t=e.split(`,`).map(e=>e.trim());if(t.length<2)return{"@type":`PostalAddress`,streetAddress:e,addressCountry:`US`};let n=t[t.length-1].match(/^([A-Z]{2})\s+(\d{5}(?:-\d{4})?)$/);return n&&t.length>=3?{"@type":`PostalAddress`,streetAddress:t.slice(0,-2).join(`, `),addressLocality:t[t.length-2],addressRegion:n[1],postalCode:n[2],addressCountry:`US`}:{"@type":`PostalAddress`,streetAddress:t[0],addressLocality:t.slice(1).join(`, `),addressCountry:`US`}}function P(e,t){if(e&&(e.city||e.state||e.postalCode)){let t={"@type":`PostalAddress`};return e.address&&(t.streetAddress=e.address),e.city&&(t.addressLocality=e.city),e.state&&(t.addressRegion=e.state),e.postalCode&&(t.postalCode=e.postalCode),t.addressCountry=e.country||`US`,t}return N(e&&e.address||t||null)}function F(e){if(!e)return`https://schema.org/EventScheduled`;let t=e.toLowerCase();return t===`cancelled`||t===`canceled`?`https://schema.org/EventCancelled`:t===`postponed`?`https://schema.org/EventPostponed`:t===`rescheduled`?`https://schema.org/EventRescheduled`:`https://schema.org/EventScheduled`}function I(e){if((e.remainingCapacity??e.quantityRemaining??e.quantity)===0||e.soldOut)return`https://schema.org/SoldOut`;let t=c(),n=E(e.salesBegin||e.salesStart||e.saleBegin||e.onSaleStart),r=E(e.salesEnd||e.saleEnd||e.onSaleEnd);return n&&w(n,t)>0?`https://schema.org/PreOrder`:r&&w(r,t)<0?`https://schema.org/SoldOut`:`https://schema.org/InStock`}function L(e,t,n,r={}){return e===t?{"@type":`Offer`,price:e,priceCurrency:`USD`,availability:n,...r}:{"@type":`AggregateOffer`,lowPrice:e,highPrice:t,priceCurrency:`USD`,availability:n,...r}}function R(e,t){if(!e||e.length===0)return null;let n=e.filter(e=>{let t=(e.visibility??0)<A.HIDDEN,n=e.salesChannel!==2;return t&&n});if(n.length===0)return null;let r=n.map(e=>k({price:e.price,fee:e.fee})).filter(e=>e!=null);if(r.length===0)return null;let i=Math.min(...r),a=Math.max(...r),o=n[0];return L(i,a,I(o),{url:t||void 0,validFrom:o?.salesBegin||o?.salesStart||void 0})}function z(e){if(!e||e.length===0)return null;let t=e.filter(e=>{let t=e.acceptedState===2,n=!e.shouldBeHidden,r=e.RosterPerformer?.User?.performerProfile,i=r?.firstName||r?.lastName||r?.displayName;return t&&n&&i});return t.length===0?null:t.map(e=>{let t=e.RosterPerformer?.User?.performerProfile;return{"@type":`PerformingGroup`,name:t?.displayName||[t?.firstName,t?.lastName].filter(Boolean).join(` `)}})}function B(t){let{event:n,venue:r,venueTimeZone:i=e(),eventUrl:a,organizer:o}=t;if(!n)return null;let c=M(n.startDateTime,i);if(!n.name||!c||!r?.name)return null;let l=P(r,r?.googleLocationNameCache),u={"@type":`Place`,name:r.name};l&&(u.address=l);let d={"@context":`https://schema.org`,"@type":`Event`,name:n.name,startDate:c,eventStatus:F(n.status),eventAttendanceMode:`https://schema.org/OfflineEventAttendanceMode`,location:u},f=M(n.endDateTime,i);f&&(d.endDate=f);let p=s(n.description)||n.eventSummary;p&&(d.description=p);let m=n.image||n.coverImage||n.ShowImage;m&&(d.image=[m]);let h=R(n.availableTickets,a);h&&(d.offers=h);let g=z(n.performers);if(g&&g.length>0&&(d.performer=g),o?.name){let e={"@type":`Organization`,name:o.name};o.url&&(e.url=o.url),d.organizer=e}return a&&(d.url=a),d}function V(e){switch(e){case`available`:return`https://schema.org/InStock`;case`sold_out`:return`https://schema.org/SoldOut`;case`coming_soon`:return`https://schema.org/PreOrder`;case`ended`:return`https://schema.org/SoldOut`;default:return`https://schema.org/InStock`}}function H(e,t){if(!e||e.length===0)return null;let n=e.filter(e=>e.status!==`sold_out`&&e.status!==`ended`);if(n.length===0){let t=e.map(e=>e.price).filter(e=>!isNaN(e));return t.length===0?null:L(Math.min(...t),Math.max(...t),`https://schema.org/SoldOut`)}let r=n.map(e=>e.price).filter(e=>!isNaN(e));return r.length===0?null:L(Math.min(...r),Math.max(...r),V(n[0].status))}function U(e){let{series:t,baseEventUrl:n}=e;if(!t.title||!t.occurrences||t.occurrences.length===0||!t.venue?.name)return null;let r=P(t.venue,t.venue.googleLocationNameCache),i={"@type":`Place`,name:t.venue.name};r&&(i.address=r);let a={"@context":`https://schema.org`,"@type":`EventSeries`,name:t.title,location:i},o=s(t.description)||t.eventSummary;o&&(a.description=o),t.image&&(a.image=[t.image]);let c=t.performers?.filter(e=>e.displayName);c&&c.length>0&&(a.performer=c.map(e=>({"@type":`PerformingGroup`,name:e.displayName})));let l=[];for(let e of t.occurrences){let r=M(e.startDateTime,t.timeZone);if(!r)continue;let a={"@type":`Event`,name:e.title,startDate:r,eventStatus:F(e.status),location:i};n&&(a[`@id`]=`${n}/${e.id}-${e.slug}`);let o=M(e.endDateTime,t.timeZone);o&&(a.endDate=o);let s=H(e.tickets,e.status);s&&(a.offers=s),l.push(a)}return l.length===0?null:(a.subEvent=l,a)}function W(e){let{collection:t,baseEventUrl:n}=e;if(!t.collectionTitle||!t.events||t.events.length===0)return null;let r=[];for(let e of t.events){if(!e.title)continue;let t={"@type":`ListItem`,position:r.length+1,name:e.title};n&&(t.url=e.slug?`${n}/${e.id}-${e.slug}`:`${n}/${e.id}`),r.push(t)}if(r.length===0)return null;let i={"@context":`https://schema.org`,"@type":`CollectionPage`,name:t.collectionTitle},a=s(t.description)||t.summary;return a&&(i.description=a),t.coverImage&&(i.image=[t.coverImage]),i.mainEntity={"@type":`ItemList`,numberOfItems:r.length,itemListElement:r},i}var G=70;function K(e){return e.normalize(`NFKD`).replace(/[\u0300-\u036f]/g,``).toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``).slice(0,G).replace(/-+$/g,``)}var q=class t{static _activeInstance=null;static shared(e){let n=t._activeInstance;return n?(n._holders+=1,n):new t(e)}_state=`idle`;_holders=1;_venueName;_venueAddress;_venueTimeZone;_baseUrl;_publicSiteOrigin;_originals=null;_originalsSaved=!1;_events=[];constructor(n){typeof document>`u`||(t._activeInstance&&t._activeInstance!==this&&t._activeInstance._teardown(),this._venueName=n.venueName,this._venueAddress=n.venueAddress,this._venueTimeZone=n.venueTimeZone||e(),this._baseUrl=n.baseUrl||window.location.origin+window.location.pathname,this._publicSiteOrigin=(n.publicSiteOrigin||``).replace(/\/+$/,``),this._saveOriginals(),t._activeInstance=this)}_saveOriginals(){if(this._originalsSaved)return;let e=document.querySelector(`link[rel="canonical"]`),t=document.querySelector(`meta[property="og:title"]`),n=document.querySelector(`meta[property="og:description"]`),r=document.querySelector(`meta[property="og:image"]`),i=document.querySelector(`meta[property="og:url"]`),a=document.querySelector(`meta[property="og:type"]`),o=document.querySelector(`meta[name="description"]`);this._originals={title:document.title,canonicalHref:e?.getAttribute(`href`)??null,ogTitle:t?.getAttribute(`content`)??null,ogDescription:n?.getAttribute(`content`)??null,ogImage:r?.getAttribute(`content`)??null,ogUrl:i?.getAttribute(`content`)??null,ogType:a?.getAttribute(`content`)??null,metaDescription:o?.getAttribute(`content`)??null},this._originalsSaved=!0}_injectJsonLd(e){if(typeof document>`u`)return;document.querySelectorAll(`script[data-micdrop="jsonld"]`).forEach(e=>e.remove());let t=document.createElement(`script`);t.setAttribute(`type`,`application/ld+json`),t.setAttribute(`data-micdrop`,`jsonld`),t.textContent=JSON.stringify(e),document.head.appendChild(t)}_setMeta(e,t){if(!(typeof document>`u`)){if(e.startsWith(`og:`)){let n=document.querySelector(`meta[property="${e}"]`);n?n.setAttribute(`content`,t):(n=document.createElement(`meta`),n.setAttribute(`property`,e),n.setAttribute(`content`,t),n.setAttribute(`data-micdrop`,`og`),document.head.appendChild(n))}else{let n=document.querySelector(`meta[name="${e}"]`);n?n.setAttribute(`content`,t):(n=document.createElement(`meta`),n.setAttribute(`name`,e),n.setAttribute(`content`,t),n.setAttribute(`data-micdrop`,`meta`),document.head.appendChild(n))}}}_setCanonical(e){if(typeof document>`u`)return;let t=document.querySelector(`link[rel="canonical"]`);t?t.setAttribute(`href`,e):(t=document.createElement(`link`),t.setAttribute(`rel`,`canonical`),t.setAttribute(`href`,e),t.setAttribute(`data-micdrop`,`canonical`),document.head.appendChild(t))}_setEntityCanonical(){this._originals?.canonicalHref||this._setCanonical(this._baseUrl)}_removeAllInjected(){typeof document>`u`||document.querySelectorAll(`[data-micdrop]`).forEach(e=>e.remove())}_restoreOriginals(){if(!(typeof document>`u`||!this._originals)){if(document.title=this._originals.title,this._originals.canonicalHref!==null){let e=document.querySelector(`link[rel="canonical"]`);e&&e.setAttribute(`href`,this._originals.canonicalHref)}this._restoreMetaProperty(`og:title`,this._originals.ogTitle),this._restoreMetaProperty(`og:description`,this._originals.ogDescription),this._restoreMetaProperty(`og:image`,this._originals.ogImage),this._restoreMetaProperty(`og:url`,this._originals.ogUrl),this._restoreMetaProperty(`og:type`,this._originals.ogType),this._restoreMetaName(`description`,this._originals.metaDescription),this._originalsSaved=!1}}_restoreMetaProperty(e,t){let n=document.querySelector(`meta[property="${e}"]`);t!==null&&n?n.setAttribute(`content`,t):t===null&&n?.hasAttribute(`data-micdrop`)&&n.remove()}_restoreMetaName(e,t){let n=document.querySelector(`meta[name="${e}"]`);t!==null&&n?n.setAttribute(`content`,t):t===null&&n?.hasAttribute(`data-micdrop`)&&n.remove()}_showPageUrl(e,t){return this._publicSiteOrigin?t?`${this._publicSiteOrigin}/e/${e}-${t}`:`${this._publicSiteOrigin}/e/${e}`:this._entityDeepLink(e,t)}_entityDeepLink(e,t){return`${this._baseUrl}#${e}${t?`-${t}`:``}`}_buildItemList(e){return{"@context":`https://schema.org`,"@type":`ItemList`,itemListElement:e.map((e,t)=>{let n=e.slug||K(e.name||``),r=this._showPageUrl(e.id,n),i=B({event:{name:e.name,startDateTime:e.startDateTime||``,endDateTime:e.endDateTime,status:e.status,description:e.description,eventSummary:e.eventSummary,image:e.image,availableTickets:e.availableTickets},...this._venueFor(e,e.timeZone),eventUrl:r});if(!i)return{"@type":`ListItem`,position:t+1,url:r};let{"@context":a,...o}=i;return{"@type":`ListItem`,position:t+1,url:r,item:o}})}}_venueFor(e,t){let n=e.showVenue?.name?e.showVenue:void 0;return{venue:n?{name:n.name,googleLocationNameCache:n.address||void 0}:{name:this._venueName,googleLocationNameCache:this._venueAddress},venueTimeZone:t||n?.timeZone||this._venueTimeZone}}_buildEntityUrl(e,t,n){return e===`event`?this._showPageUrl(t,n):this._entityDeepLink(t,n)}onEventsLoaded(e,t){if(typeof document>`u`||this._state===`destroyed`)return;if(t){this._venueName=t.name||this._venueName,this._venueAddress=t.address||t.googleLocationNameCache||this._venueAddress;let e=t.timeZone||t.timezone;e&&(this._venueTimeZone=e)}this._events=e;let n=this._buildItemList(e);this._injectJsonLd(n),this._state=`listing`}onEntitySelected(e,t,n){if(typeof document>`u`||this._state===`destroyed`)return;if(this._saveOriginals(),n){this._venueName=n.name||this._venueName,this._venueAddress=n.address||n.googleLocationNameCache||this._venueAddress;let e=n.timeZone||n.timezone;e&&(this._venueTimeZone=e)}let r=null,i=``,a=``,o=``,c=``,l=``,u=this._venueName;if(e===`event`){let e=t.slug||K(t.name||``);l=this._buildEntityUrl(`event`,t.id||t.eventID||``,e);let n=this._venueFor(t);r=B({event:t,...n,eventUrl:l}),u=n.venue.name,i=t.name||``,a=t.description||``,o=t.eventSummary||``,c=t.image||t.coverImage||t.ShowImage||``}else if(e===`series`){let e=t.slug||K(t.title||``);l=this._buildEntityUrl(`series`,t.id||``,e),r=U({series:{...t,venue:{name:this._venueName,googleLocationNameCache:this._venueAddress},timeZone:this._venueTimeZone},baseEventUrl:l}),i=t.title||``,a=t.description||``,o=t.eventSummary||``,c=t.image||``}else if(e===`collection`){let e=t.slug||K(t.collectionTitle||``);l=this._buildEntityUrl(`collection`,t.id||``,e),r=W({collection:t,baseEventUrl:l,defaultTimeZone:this._venueTimeZone}),i=t.collectionTitle||``,a=t.description||``,o=t.summary||``,c=t.coverImage||``}r&&this._injectJsonLd(r),this._setEntityCanonical(),i&&this._setMeta(`og:title`,i);let d=s(a,160)||s(o,160);d?this._setMeta(`og:description`,d):this._restoreMetaProperty(`og:description`,this._originals?.ogDescription??null),c&&this._setMeta(`og:image`,c),l&&this._setMeta(`og:url`,l),this._setMeta(`og:type`,`website`),this._setMeta(`twitter:card`,`summary_large_image`),d?this._setMeta(`description`,d):this._restoreMetaName(`description`,this._originals?.metaDescription??null),i&&(document.title=`${i} | ${u}`),this._state=`entity`}onBackToListing(){if(!(typeof document>`u`)&&this._state!==`destroyed`){if(this._restoreOriginals(),this._removeAllInjected(),this._events.length>0){let e=this._buildItemList(this._events);this._injectJsonLd(e)}this._saveOriginals(),this._state=`listing`}}destroy(){if(this._holders>1){--this._holders;return}this._teardown()}_teardown(){typeof document>`u`||this._state!==`destroyed`&&(this._removeAllInjected(),this._restoreOriginals(),t._activeInstance===this&&(t._activeInstance=null),this._state=`destroyed`)}};exports.HostSeoController=q,exports.buildCollectionJsonLd=W,exports.buildEventJsonLd=B,exports.buildOffers=R,exports.buildPerformers=z,exports.buildPostalAddress=P,exports.buildSeriesJsonLd=U,exports.escapeJsonLdForScript=j,exports.formatDateTimeWithOffset=M,exports.getEventStatus=F,exports.getTicketAvailability=I,exports.parseAddressToPostal=N;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});function e(){return`America/Los_Angeles`}var t=/<\/(?:p|div|h[1-6]|li|ul|ol|blockquote|tr)>/gi,n=/<br\s*\/?>/gi,r=/<[^>]*>/g,i={"&":`&`,"<":`<`,">":`>`,""":`"`,"'":`'`,"'":`'`," ":` `};function a(e){return e.replace(/&#x([0-9a-f]+);/gi,(e,t)=>o(parseInt(t,16))).replace(/&#(\d+);/g,(e,t)=>o(Number(t))).replace(/&[a-z0-9]+;/gi,e=>i[e.toLowerCase()]??e)}function o(e){return Number.isFinite(e)&&e>0&&e<=1114111?String.fromCodePoint(e):``}function s(e,i){if(!e)return``;let o=String(e).replace(n,` `).replace(t,` `).replace(r,``);if(o=a(o).replace(/\s+/g,` `).trim(),i&&i>0&&o.length>i){let e=o.slice(0,i),t=e.lastIndexOf(` `);o=(t>40?e.slice(0,t):e).trimEnd()+`…`}return o}function c(){return new Date}var l=class extends Error{constructor(e,t,n={}){super(e),this.name=`AppError`,this.code=t,this.status=n.status??500,this.details=n.details,this.timestamp=c(),this.recoverable=n.recoverable??!0,this.cause=n.cause,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toJSON(){return{name:this.name,code:this.code,message:this.message,status:this.status,details:this.details,timestamp:this.timestamp.toISOString(),recoverable:this.recoverable,stack:this.stack,cause:this.cause?.message}}getUserMessage(e){return this.message}isRetryable(){return this.recoverable}},u=class extends l{constructor(e,t,n={}){super(e,t,{status:422,recoverable:!1,...n}),this.name=`ValueGuardError`}},d=class extends u{constructor(e,t,n){super(e,t,{details:n}),this.name=`DateTimeError`}},f;(function(e){e.INVALID_TIMEZONE=`INVALID_TIMEZONE`,e.INVALID_ISO_STRING=`INVALID_ISO_STRING`,e.INVALID_DATE=`INVALID_DATE`,e.INVALID_TIME=`INVALID_TIME`,e.MISSING_TIMEZONE=`MISSING_TIMEZONE`,e.PARSE_ERROR=`PARSE_ERROR`})(f||={});function p(e,t,n,r=0,i=0,a=0){let o=new Date(Date.UTC(e,t-1,n,r,i,a));return e>=0&&e<=99&&o.setUTCFullYear(e),o}var m=/^(\d{4})-(\d{2})-(\d{2})(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d{1,9})?)?(?:Z|[+-]\d{2}:\d{2}))?$/,h=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(?::\d{2}(?:\.\d{1,9})?)?$/;function g(e,t,n){let r=p(e,t,n);return r.getUTCFullYear()===e&&r.getUTCMonth()===t-1&&r.getUTCDate()===n}var _=/^(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,9}))? ?([+-])(\d{2}):?(\d{2})(?: [A-Za-z][A-Za-z0-9_/+-]*)?(?: m=[+-][\d.]+)?$/,v=p(1,1,1).getTime();function y(e){let t=m.exec(e);if(t){let[,n,r,i]=t;return{iso:e,year:+n,month:+r,day:+i}}let n=_.exec(e);if(n){let[,e,t,r,i,a,o,s,c,l,u]=n;return{iso:`${e}-${t}-${r}T${i}:${a}:${o}${s?`.${s.slice(0,3).padEnd(3,`0`)}`:``}${c}${l}:${u}`,year:+e,month:+t,day:+r}}return null}function b(e){if(typeof e==`number`){if(!Number.isFinite(e))return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:t}if(typeof e!=`string`)return null;let t=y(e.trim());if(!t||!g(t.year,t.month,t.day))return null;let n=new Date(t.iso);return Number.isNaN(n.getTime())?null:n}function x(e){let t=b(e);return t!==null&&t.getTime()===v}function S(e,t){if(e.getTime()===v)throw new d(`toInstant: ${JSON.stringify(t)} is the backend's UNSET marker (Go's zero time.Time), not a moment — the field was never filled in. toInstant is the REQUIRED-timestamp door, so an unset value here is a bug: returning the year-1 instant it names would sort this row ahead of every real date and answer "yes" to "has this started?". If the field is allowed to be unset, read it with toInstantOrNull (null), ask isAbsentTimestamp why it is missing, and order it with compareWireInstants.`,f.INVALID_ISO_STRING,{value:t})}function C(e,t){if(!(e instanceof Date)||Number.isNaN(e.getTime()))throw new d(`${t} must be a valid Date`,f.INVALID_DATE,{value:e})}function w(e,t){return C(e,`compareInstants(a)`),C(t,`compareInstants(b)`),e.getTime()-t.getTime()}function T(e){if(typeof e==`number`){if(!Number.isFinite(e))throw new d(`toInstant: epoch milliseconds must be a finite number, got ${e}`,f.INVALID_DATE,{value:e});let t=new Date(e);return C(t,`toInstant(value)`),S(t,e),t}if(typeof e!=`string`||e.trim()===``)throw new d(`toInstant: a UTC ISO timestamp or epoch ms is required, got ${JSON.stringify(e)}`,typeof e==`string`?f.INVALID_ISO_STRING:f.INVALID_DATE,{value:e});let t=y(e);if(!t)throw h.test(e)?new d(`toInstant: ${JSON.stringify(e)} carries a time but no timezone, so it is not an instant — it would resolve on the viewer's clock and land on a different calendar day for a viewer in Los Angeles than one in London. Send a UTC wire timestamp (2026-06-09T20:00:00Z) or an explicit offset (2026-06-09T13:00:00-07:00). If this is a local wall-clock value, it belongs in datetime/local or parseLocalToUTC(value, timezone), not here.`,f.MISSING_TIMEZONE,{value:e}):new d(`toInstant: not an ISO-8601 timestamp: ${JSON.stringify(e)}`,f.INVALID_ISO_STRING,{value:e});let{year:n,month:r,day:i}=t;if(!g(n,r,i))throw new d(`toInstant: ${n}-${r}-${i} is not a real calendar date: ${JSON.stringify(e)}`,f.INVALID_ISO_STRING,{value:e});let a=new Date(t.iso);if(Number.isNaN(a.getTime()))throw new d(`toInstant: ISO-8601 shaped but not a real instant: ${JSON.stringify(e)}`,f.INVALID_ISO_STRING,{value:e});return S(a,e),a}function E(e){if(e==null||typeof e==`string`&&e.trim()===``||x(e))return null;try{return T(e)}catch{return null}}function D(e){return Math.round((e+2**-52)*100)/100}function O(e){if(e==null)return null;let t=Number(e);return Number.isFinite(t)?t:null}function k(e){let t=O(e?.price);return t===null?null:t===0?0:D(t+(O(e?.fee)??0))}var A={VISIBLE:0,HIDDEN:1,PROMO_ONLY:2};function j(e){return e.replace(/</g,`\\u003c`).replace(/>/g,`\\u003e`).replace(/&/g,`\\u0026`)}function M(t,n){if(!t)return null;let r=new Date(t);if(isNaN(r.getTime()))return null;let i={year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1,timeZoneName:`shortOffset`},a;try{a=new Intl.DateTimeFormat(`en-US`,{...i,timeZone:n})}catch{a=new Intl.DateTimeFormat(`en-US`,{...i,timeZone:e()})}let o=a.formatToParts(r),s=e=>o.find(t=>t.type===e)?.value||``,c=s(`year`),l=s(`month`),u=s(`day`),d=s(`hour`),f=s(`minute`),p=s(`second`),m=s(`timeZoneName`),h=`+00:00`;if(m){let e=m.match(/GMT([+-])(\d+)(?::(\d+))?/);e&&(h=`${e[1]}${e[2].padStart(2,`0`)}:${e[3]||`00`}`)}return`${c}-${l}-${u}T${d}:${f}:${p}${h}`}function N(e){if(!e)return null;let t=e.split(`,`).map(e=>e.trim());if(t.length<2)return{"@type":`PostalAddress`,streetAddress:e,addressCountry:`US`};let n=t[t.length-1].match(/^([A-Z]{2})\s+(\d{5}(?:-\d{4})?)$/);return n&&t.length>=3?{"@type":`PostalAddress`,streetAddress:t.slice(0,-2).join(`, `),addressLocality:t[t.length-2],addressRegion:n[1],postalCode:n[2],addressCountry:`US`}:{"@type":`PostalAddress`,streetAddress:t[0],addressLocality:t.slice(1).join(`, `),addressCountry:`US`}}function P(e,t){if(e&&(e.city||e.state||e.postalCode)){let t={"@type":`PostalAddress`};return e.address&&(t.streetAddress=e.address),e.city&&(t.addressLocality=e.city),e.state&&(t.addressRegion=e.state),e.postalCode&&(t.postalCode=e.postalCode),t.addressCountry=e.country||`US`,t}return N(e&&e.address||t||null)}function F(e){if(!e)return`https://schema.org/EventScheduled`;let t=e.toLowerCase();return t===`cancelled`||t===`canceled`?`https://schema.org/EventCancelled`:t===`postponed`?`https://schema.org/EventPostponed`:t===`rescheduled`?`https://schema.org/EventRescheduled`:`https://schema.org/EventScheduled`}function I(e){if((e.remainingCapacity??e.quantityRemaining??e.quantity)===0||e.soldOut)return`https://schema.org/SoldOut`;let t=c(),n=E(e.salesBegin||e.salesStart||e.saleBegin||e.onSaleStart),r=E(e.salesEnd||e.saleEnd||e.onSaleEnd);return n&&w(n,t)>0?`https://schema.org/PreOrder`:r&&w(r,t)<0?`https://schema.org/SoldOut`:`https://schema.org/InStock`}function L(e,t,n,r={}){return e===t?{"@type":`Offer`,price:e,priceCurrency:`USD`,availability:n,...r}:{"@type":`AggregateOffer`,lowPrice:e,highPrice:t,priceCurrency:`USD`,availability:n,...r}}function R(e,t){if(!e||e.length===0)return null;let n=e.filter(e=>{let t=(e.visibility??0)<A.HIDDEN,n=e.salesChannel!==2;return t&&n});if(n.length===0)return null;let r=n.map(e=>k({price:e.price,fee:e.fee})).filter(e=>e!=null);if(r.length===0)return null;let i=Math.min(...r),a=Math.max(...r),o=n[0];return L(i,a,I(o),{url:t||void 0,validFrom:o?.salesBegin||o?.salesStart||void 0})}function z(e){if(!e||e.length===0)return null;let t=e.filter(e=>{let t=e.acceptedState===2,n=!e.shouldBeHidden,r=e.RosterPerformer?.User?.performerProfile,i=r?.firstName||r?.lastName||r?.displayName;return t&&n&&i});return t.length===0?null:t.map(e=>{let t=e.RosterPerformer?.User?.performerProfile;return{"@type":`PerformingGroup`,name:t?.displayName||[t?.firstName,t?.lastName].filter(Boolean).join(` `)}})}function B(t){let{event:n,venue:r,venueTimeZone:i=e(),eventUrl:a,organizer:o}=t;if(!n)return null;let c=M(n.startDateTime,i);if(!n.name||!c||!r?.name)return null;let l=P(r,r?.googleLocationNameCache),u={"@type":`Place`,name:r.name};l&&(u.address=l);let d={"@context":`https://schema.org`,"@type":`Event`,name:n.name,startDate:c,eventStatus:F(n.status),eventAttendanceMode:`https://schema.org/OfflineEventAttendanceMode`,location:u},f=M(n.endDateTime,i);f&&(d.endDate=f);let p=s(n.description)||n.eventSummary;p&&(d.description=p);let m=n.image||n.coverImage||n.ShowImage;m&&(d.image=[m]);let h=R(n.availableTickets,a);h&&(d.offers=h);let g=z(n.performers);if(g&&g.length>0&&(d.performer=g),o?.name){let e={"@type":`Organization`,name:o.name};o.url&&(e.url=o.url),d.organizer=e}return a&&(d.url=a),d}function V(e){switch(e){case`available`:return`https://schema.org/InStock`;case`sold_out`:return`https://schema.org/SoldOut`;case`coming_soon`:return`https://schema.org/PreOrder`;case`ended`:return`https://schema.org/SoldOut`;default:return`https://schema.org/InStock`}}function H(e,t){if(!e||e.length===0)return null;let n=e.filter(e=>e.status!==`sold_out`&&e.status!==`ended`);if(n.length===0){let t=e.map(e=>e.price).filter(e=>!isNaN(e));return t.length===0?null:L(Math.min(...t),Math.max(...t),`https://schema.org/SoldOut`)}let r=n.map(e=>e.price).filter(e=>!isNaN(e));return r.length===0?null:L(Math.min(...r),Math.max(...r),V(n[0].status))}function U(e){let{series:t,baseEventUrl:n}=e;if(!t.title||!t.occurrences||t.occurrences.length===0||!t.venue?.name)return null;let r=P(t.venue,t.venue.googleLocationNameCache),i={"@type":`Place`,name:t.venue.name};r&&(i.address=r);let a={"@context":`https://schema.org`,"@type":`EventSeries`,name:t.title,location:i},o=s(t.description)||t.eventSummary;o&&(a.description=o),t.image&&(a.image=[t.image]);let c=t.performers?.filter(e=>e.displayName);c&&c.length>0&&(a.performer=c.map(e=>({"@type":`PerformingGroup`,name:e.displayName})));let l=[];for(let e of t.occurrences){let r=M(e.startDateTime,t.timeZone);if(!r)continue;let a={"@type":`Event`,name:e.title,startDate:r,eventStatus:F(e.status),location:i};n&&(a[`@id`]=`${n}/${e.id}-${e.slug}`);let o=M(e.endDateTime,t.timeZone);o&&(a.endDate=o);let s=H(e.tickets,e.status);s&&(a.offers=s),l.push(a)}return l.length===0?null:(a.subEvent=l,a)}function W(e){let{collection:t,baseEventUrl:n}=e;if(!t.collectionTitle||!t.events||t.events.length===0)return null;let r=[];for(let e of t.events){if(!e.title)continue;let t={"@type":`ListItem`,position:r.length+1,name:e.title};n&&(t.url=e.slug?`${n}/${e.id}-${e.slug}`:`${n}/${e.id}`),r.push(t)}if(r.length===0)return null;let i={"@context":`https://schema.org`,"@type":`CollectionPage`,name:t.collectionTitle},a=s(t.description)||t.summary;return a&&(i.description=a),t.coverImage&&(i.image=[t.coverImage]),i.mainEntity={"@type":`ItemList`,numberOfItems:r.length,itemListElement:r},i}var G=70;function K(e){return e.normalize(`NFKD`).replace(/[\u0300-\u036f]/g,``).toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``).slice(0,G).replace(/-+$/g,``)}var q=class t{static _activeInstance=null;static shared(e){let n=t._activeInstance;return n?(n._holders+=1,n):new t(e)}_state=`idle`;_holders=1;_venueName;_venueAddress;_venueTimeZone;_baseUrl;_publicSiteOrigin;_originals=null;_originalsSaved=!1;_events=[];constructor(n){typeof document<`u`&&(t._activeInstance&&t._activeInstance!==this&&t._activeInstance._teardown(),this._venueName=n.venueName,this._venueAddress=n.venueAddress,this._venueTimeZone=n.venueTimeZone||e(),this._baseUrl=n.baseUrl||window.location.origin+window.location.pathname,this._publicSiteOrigin=n.publicSiteOrigin||``,this._saveOriginals(),t._activeInstance=this)}_saveOriginals(){if(this._originalsSaved)return;let e=document.querySelector(`link[rel="canonical"]`),t=document.querySelector(`meta[property="og:title"]`),n=document.querySelector(`meta[property="og:description"]`),r=document.querySelector(`meta[property="og:image"]`),i=document.querySelector(`meta[property="og:url"]`),a=document.querySelector(`meta[property="og:type"]`),o=document.querySelector(`meta[name="description"]`);this._originals={title:document.title,canonicalHref:e?.getAttribute(`href`)??null,ogTitle:t?.getAttribute(`content`)??null,ogDescription:n?.getAttribute(`content`)??null,ogImage:r?.getAttribute(`content`)??null,ogUrl:i?.getAttribute(`content`)??null,ogType:a?.getAttribute(`content`)??null,metaDescription:o?.getAttribute(`content`)??null},this._originalsSaved=!0}_injectJsonLd(e){if(typeof document>`u`)return;document.querySelectorAll(`script[data-micdrop="jsonld"]`).forEach(e=>e.remove());let t=document.createElement(`script`);t.setAttribute(`type`,`application/ld+json`),t.setAttribute(`data-micdrop`,`jsonld`),t.textContent=JSON.stringify(e),document.head.appendChild(t)}_setMeta(e,t){if(typeof document<`u`){if(e.startsWith(`og:`)){let n=document.querySelector(`meta[property="${e}"]`);n?n.setAttribute(`content`,t):(n=document.createElement(`meta`),n.setAttribute(`property`,e),n.setAttribute(`content`,t),n.setAttribute(`data-micdrop`,`og`),document.head.appendChild(n))}else{let n=document.querySelector(`meta[name="${e}"]`);n?n.setAttribute(`content`,t):(n=document.createElement(`meta`),n.setAttribute(`name`,e),n.setAttribute(`content`,t),n.setAttribute(`data-micdrop`,`meta`),document.head.appendChild(n))}}}_setCanonical(e){if(typeof document>`u`)return;let t=document.querySelector(`link[rel="canonical"]`);t?t.setAttribute(`href`,e):(t=document.createElement(`link`),t.setAttribute(`rel`,`canonical`),t.setAttribute(`href`,e),t.setAttribute(`data-micdrop`,`canonical`),document.head.appendChild(t))}_setEntityCanonical(){this._originals?.canonicalHref||this._setCanonical(this._baseUrl)}_removeAllInjected(){typeof document<`u`&&document.querySelectorAll(`[data-micdrop]`).forEach(e=>e.remove())}_restoreOriginals(){if(typeof document<`u`&&this._originals){if(document.title=this._originals.title,this._originals.canonicalHref!==null){let e=document.querySelector(`link[rel="canonical"]`);e&&e.setAttribute(`href`,this._originals.canonicalHref)}this._restoreMetaProperty(`og:title`,this._originals.ogTitle),this._restoreMetaProperty(`og:description`,this._originals.ogDescription),this._restoreMetaProperty(`og:image`,this._originals.ogImage),this._restoreMetaProperty(`og:url`,this._originals.ogUrl),this._restoreMetaProperty(`og:type`,this._originals.ogType),this._restoreMetaName(`description`,this._originals.metaDescription),this._originalsSaved=!1}}_restoreMetaProperty(e,t){let n=document.querySelector(`meta[property="${e}"]`);t!==null&&n?n.setAttribute(`content`,t):t===null&&n?.hasAttribute(`data-micdrop`)&&n.remove()}_restoreMetaName(e,t){let n=document.querySelector(`meta[name="${e}"]`);t!==null&&n?n.setAttribute(`content`,t):t===null&&n?.hasAttribute(`data-micdrop`)&&n.remove()}_showPageUrl(e,t){let n=((typeof this._publicSiteOrigin==`function`?this._publicSiteOrigin():this._publicSiteOrigin)||``).replace(/\/+$/,``);return n?t?`${n}/e/${e}-${t}`:`${n}/e/${e}`:this._entityDeepLink(e,t)}_entityDeepLink(e,t){return`${this._baseUrl}#${e}${t?`-${t}`:``}`}_buildItemList(e){return{"@context":`https://schema.org`,"@type":`ItemList`,itemListElement:e.map((e,t)=>{let n=e.slug||K(e.name||``),r=this._showPageUrl(e.id,n),i=B({event:{name:e.name,startDateTime:e.startDateTime||``,endDateTime:e.endDateTime,status:e.status,description:e.description,eventSummary:e.eventSummary,image:e.image,availableTickets:e.availableTickets},...this._venueFor(e,e.timeZone),eventUrl:r});if(!i)return{"@type":`ListItem`,position:t+1,url:r};let{"@context":a,...o}=i;return{"@type":`ListItem`,position:t+1,url:r,item:o}})}}_venueFor(e,t){let n=e.showVenue?.name?e.showVenue:void 0;return{venue:n?{name:n.name,googleLocationNameCache:n.address||void 0}:{name:this._venueName,googleLocationNameCache:this._venueAddress},venueTimeZone:t||n?.timeZone||this._venueTimeZone}}_buildEntityUrl(e,t,n){return e===`event`?this._showPageUrl(t,n):this._entityDeepLink(t,n)}onEventsLoaded(e,t){if(typeof document>`u`||this._state===`destroyed`)return;if(t){this._venueName=t.name||this._venueName,this._venueAddress=t.address||t.googleLocationNameCache||this._venueAddress;let e=t.timeZone||t.timezone;e&&(this._venueTimeZone=e)}this._events=e;let n=this._buildItemList(e);this._injectJsonLd(n),this._state=`listing`}onEntitySelected(e,t,n){if(typeof document>`u`||this._state===`destroyed`)return;if(this._saveOriginals(),n){this._venueName=n.name||this._venueName,this._venueAddress=n.address||n.googleLocationNameCache||this._venueAddress;let e=n.timeZone||n.timezone;e&&(this._venueTimeZone=e)}let r=null,i=``,a=``,o=``,c=``,l=``,u=this._venueName;if(e===`event`){let e=t.slug||K(t.name||``);l=this._buildEntityUrl(`event`,t.id||t.eventID||``,e);let n=this._venueFor(t);r=B({event:t,...n,eventUrl:l}),u=n.venue.name,i=t.name||``,a=t.description||``,o=t.eventSummary||``,c=t.image||t.coverImage||t.ShowImage||``}else if(e===`series`){let e=t.slug||K(t.title||``);l=this._buildEntityUrl(`series`,t.id||``,e),r=U({series:{...t,venue:{name:this._venueName,googleLocationNameCache:this._venueAddress},timeZone:this._venueTimeZone},baseEventUrl:l}),i=t.title||``,a=t.description||``,o=t.eventSummary||``,c=t.image||``}else if(e===`collection`){let e=t.slug||K(t.collectionTitle||``);l=this._buildEntityUrl(`collection`,t.id||``,e),r=W({collection:t,baseEventUrl:l,defaultTimeZone:this._venueTimeZone}),i=t.collectionTitle||``,a=t.description||``,o=t.summary||``,c=t.coverImage||``}r&&this._injectJsonLd(r),this._setEntityCanonical(),i&&this._setMeta(`og:title`,i);let d=s(a,160)||s(o,160);d?this._setMeta(`og:description`,d):this._restoreMetaProperty(`og:description`,this._originals?.ogDescription??null),c&&this._setMeta(`og:image`,c),l&&this._setMeta(`og:url`,l),this._setMeta(`og:type`,`website`),this._setMeta(`twitter:card`,`summary_large_image`),d?this._setMeta(`description`,d):this._restoreMetaName(`description`,this._originals?.metaDescription??null),i&&(document.title=`${i} | ${u}`),this._state=`entity`}onBackToListing(){if(typeof document<`u`&&this._state!==`destroyed`){if(this._restoreOriginals(),this._removeAllInjected(),this._events.length>0){let e=this._buildItemList(this._events);this._injectJsonLd(e)}this._saveOriginals(),this._state=`listing`}}destroy(){this._holders>1?--this._holders:this._teardown()}_teardown(){typeof document<`u`&&this._state!==`destroyed`&&(this._removeAllInjected(),this._restoreOriginals(),t._activeInstance===this&&(t._activeInstance=null),this._state=`destroyed`)}};exports.HostSeoController=q,exports.buildCollectionJsonLd=W,exports.buildEventJsonLd=B,exports.buildOffers=R,exports.buildPerformers=z,exports.buildPostalAddress=P,exports.buildSeriesJsonLd=U,exports.escapeJsonLdForScript=j,exports.formatDateTimeWithOffset=M,exports.getEventStatus=F,exports.getTicketAvailability=I,exports.parseAddressToPostal=N;
|
package/dist/seo/seo.mjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
// node_modules/@getmicdrop/svelte-components/dist/utils/timezones.js
|
|
2
2
|
function e() {
|
|
3
3
|
return "America/Los_Angeles";
|
|
4
4
|
}
|
|
5
|
-
|
|
6
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/richtext/index.js
|
|
5
|
+
// node_modules/@getmicdrop/svelte-components/dist/richtext/index.js
|
|
7
6
|
var t = /<\/(?:p|div|h[1-6]|li|ul|ol|blockquote|tr)>/gi, n = /<br\s*\/?>/gi, r = /<[^>]*>/g, i = {
|
|
8
7
|
"&": "&",
|
|
9
8
|
"<": "<",
|
|
@@ -28,13 +27,11 @@ function s(e, i) {
|
|
|
28
27
|
}
|
|
29
28
|
return o;
|
|
30
29
|
}
|
|
31
|
-
|
|
32
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/datetime/now.js
|
|
30
|
+
// node_modules/@getmicdrop/svelte-components/dist/datetime/now.js
|
|
33
31
|
function c() {
|
|
34
32
|
return /* @__PURE__ */ new Date();
|
|
35
33
|
}
|
|
36
|
-
|
|
37
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/errors/classes/AppError.js
|
|
34
|
+
// node_modules/@getmicdrop/svelte-components/dist/errors/classes/AppError.js
|
|
38
35
|
var l = class extends Error {
|
|
39
36
|
constructor(e, t, n = {}) {
|
|
40
37
|
super(e), this.name = "AppError", this.code = t, this.status = n.status ?? 500, this.details = n.details, this.timestamp = c(), this.recoverable = n.recoverable ?? !0, this.cause = n.cause, Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
|
|
@@ -74,14 +71,12 @@ var l = class extends Error {
|
|
|
74
71
|
(function(e) {
|
|
75
72
|
e.INVALID_TIMEZONE = "INVALID_TIMEZONE", e.INVALID_ISO_STRING = "INVALID_ISO_STRING", e.INVALID_DATE = "INVALID_DATE", e.INVALID_TIME = "INVALID_TIME", e.MISSING_TIMEZONE = "MISSING_TIMEZONE", e.PARSE_ERROR = "PARSE_ERROR";
|
|
76
73
|
})(f ||= {});
|
|
77
|
-
|
|
78
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/types/brands.js
|
|
74
|
+
// node_modules/@getmicdrop/svelte-components/dist/types/brands.js
|
|
79
75
|
function p(e, t, n, r = 0, i = 0, a = 0) {
|
|
80
76
|
let o = new Date(Date.UTC(e, t - 1, n, r, i, a));
|
|
81
77
|
return e >= 0 && e <= 99 && o.setUTCFullYear(e), o;
|
|
82
78
|
}
|
|
83
|
-
|
|
84
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/datetime/instant.js
|
|
79
|
+
// node_modules/@getmicdrop/svelte-components/dist/datetime/instant.js
|
|
85
80
|
var m = /^(\d{4})-(\d{2})-(\d{2})(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d{1,9})?)?(?:Z|[+-]\d{2}:\d{2}))?$/, h = /^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(?::\d{2}(?:\.\d{1,9})?)?$/;
|
|
86
81
|
function g(e, t, n) {
|
|
87
82
|
let r = p(e, t, n);
|
|
@@ -159,13 +154,11 @@ function E(e) {
|
|
|
159
154
|
return null;
|
|
160
155
|
}
|
|
161
156
|
}
|
|
162
|
-
|
|
163
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/utils/formatters.js
|
|
157
|
+
// node_modules/@getmicdrop/svelte-components/dist/utils/formatters.js
|
|
164
158
|
function D(e) {
|
|
165
159
|
return Math.round((e + 2 ** -52) * 100) / 100;
|
|
166
160
|
}
|
|
167
|
-
|
|
168
|
-
//#region src/lib/core/datetime.js
|
|
161
|
+
// src/lib/core/datetime.js
|
|
169
162
|
function O(e) {
|
|
170
163
|
if (e == null) return null;
|
|
171
164
|
let t = Number(e);
|
|
@@ -175,15 +168,13 @@ function k(e) {
|
|
|
175
168
|
let t = O(e?.price);
|
|
176
169
|
return t === null ? null : t === 0 ? 0 : D(t + (O(e?.fee) ?? 0));
|
|
177
170
|
}
|
|
178
|
-
|
|
179
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/transforms/ticket.js
|
|
171
|
+
// node_modules/@getmicdrop/svelte-components/dist/transforms/ticket.js
|
|
180
172
|
var A = {
|
|
181
173
|
VISIBLE: 0,
|
|
182
174
|
HIDDEN: 1,
|
|
183
175
|
PROMO_ONLY: 2
|
|
184
176
|
};
|
|
185
|
-
|
|
186
|
-
//#region src/lib/seo/helpers.ts
|
|
177
|
+
// src/lib/seo/helpers.ts
|
|
187
178
|
function j(e) {
|
|
188
179
|
return e.replace(/</g, "\\u003c").replace(/>/g, "\\u003e").replace(/&/g, "\\u0026");
|
|
189
180
|
}
|
|
@@ -307,8 +298,7 @@ function z(e) {
|
|
|
307
298
|
};
|
|
308
299
|
});
|
|
309
300
|
}
|
|
310
|
-
|
|
311
|
-
//#region src/lib/seo/buildEventJsonLd.ts
|
|
301
|
+
// src/lib/seo/buildEventJsonLd.ts
|
|
312
302
|
function B(t) {
|
|
313
303
|
let { event: n, venue: r, venueTimeZone: i = e(), eventUrl: a, organizer: o } = t;
|
|
314
304
|
if (!n) return null;
|
|
@@ -345,8 +335,7 @@ function B(t) {
|
|
|
345
335
|
}
|
|
346
336
|
return a && (d.url = a), d;
|
|
347
337
|
}
|
|
348
|
-
|
|
349
|
-
//#region src/lib/seo/buildSeriesJsonLd.ts
|
|
338
|
+
// src/lib/seo/buildSeriesJsonLd.ts
|
|
350
339
|
function V(e) {
|
|
351
340
|
switch (e) {
|
|
352
341
|
case "available": return "https://schema.org/InStock";
|
|
@@ -405,8 +394,7 @@ function U(e) {
|
|
|
405
394
|
}
|
|
406
395
|
return l.length === 0 ? null : (a.subEvent = l, a);
|
|
407
396
|
}
|
|
408
|
-
|
|
409
|
-
//#region src/lib/seo/buildCollectionJsonLd.ts
|
|
397
|
+
// src/lib/seo/buildCollectionJsonLd.ts
|
|
410
398
|
function W(e) {
|
|
411
399
|
let { collection: t, baseEventUrl: n } = e;
|
|
412
400
|
if (!t.collectionTitle || !t.events || t.events.length === 0) return null;
|
|
@@ -432,14 +420,12 @@ function W(e) {
|
|
|
432
420
|
itemListElement: r
|
|
433
421
|
}, i;
|
|
434
422
|
}
|
|
435
|
-
|
|
436
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/routing/slug.js
|
|
423
|
+
// node_modules/@getmicdrop/svelte-components/dist/routing/slug.js
|
|
437
424
|
var G = 70;
|
|
438
425
|
function K(e) {
|
|
439
426
|
return e.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "").slice(0, G).replace(/-+$/g, "");
|
|
440
427
|
}
|
|
441
|
-
|
|
442
|
-
//#region src/lib/seo/HostSeoController.ts
|
|
428
|
+
// src/lib/seo/HostSeoController.ts
|
|
443
429
|
var q = class t {
|
|
444
430
|
static _activeInstance = null;
|
|
445
431
|
static shared(e) {
|
|
@@ -457,7 +443,7 @@ var q = class t {
|
|
|
457
443
|
_originalsSaved = !1;
|
|
458
444
|
_events = [];
|
|
459
445
|
constructor(n) {
|
|
460
|
-
typeof document
|
|
446
|
+
typeof document < "u" && (t._activeInstance && t._activeInstance !== this && t._activeInstance._teardown(), this._venueName = n.venueName, this._venueAddress = n.venueAddress, this._venueTimeZone = n.venueTimeZone || e(), this._baseUrl = n.baseUrl || window.location.origin + window.location.pathname, this._publicSiteOrigin = n.publicSiteOrigin || "", this._saveOriginals(), t._activeInstance = this);
|
|
461
447
|
}
|
|
462
448
|
_saveOriginals() {
|
|
463
449
|
if (this._originalsSaved) return;
|
|
@@ -480,7 +466,7 @@ var q = class t {
|
|
|
480
466
|
t.setAttribute("type", "application/ld+json"), t.setAttribute("data-micdrop", "jsonld"), t.textContent = JSON.stringify(e), document.head.appendChild(t);
|
|
481
467
|
}
|
|
482
468
|
_setMeta(e, t) {
|
|
483
|
-
if (
|
|
469
|
+
if (typeof document < "u") {
|
|
484
470
|
if (e.startsWith("og:")) {
|
|
485
471
|
let n = document.querySelector(`meta[property="${e}"]`);
|
|
486
472
|
n ? n.setAttribute("content", t) : (n = document.createElement("meta"), n.setAttribute("property", e), n.setAttribute("content", t), n.setAttribute("data-micdrop", "og"), document.head.appendChild(n));
|
|
@@ -499,10 +485,10 @@ var q = class t {
|
|
|
499
485
|
this._originals?.canonicalHref || this._setCanonical(this._baseUrl);
|
|
500
486
|
}
|
|
501
487
|
_removeAllInjected() {
|
|
502
|
-
typeof document
|
|
488
|
+
typeof document < "u" && document.querySelectorAll("[data-micdrop]").forEach((e) => e.remove());
|
|
503
489
|
}
|
|
504
490
|
_restoreOriginals() {
|
|
505
|
-
if (
|
|
491
|
+
if (typeof document < "u" && this._originals) {
|
|
506
492
|
if (document.title = this._originals.title, this._originals.canonicalHref !== null) {
|
|
507
493
|
let e = document.querySelector("link[rel=\"canonical\"]");
|
|
508
494
|
e && e.setAttribute("href", this._originals.canonicalHref);
|
|
@@ -519,7 +505,8 @@ var q = class t {
|
|
|
519
505
|
t !== null && n ? n.setAttribute("content", t) : t === null && n?.hasAttribute("data-micdrop") && n.remove();
|
|
520
506
|
}
|
|
521
507
|
_showPageUrl(e, t) {
|
|
522
|
-
|
|
508
|
+
let n = ((typeof this._publicSiteOrigin == "function" ? this._publicSiteOrigin() : this._publicSiteOrigin) || "").replace(/\/+$/, "");
|
|
509
|
+
return n ? t ? `${n}/e/${e}-${t}` : `${n}/e/${e}` : this._entityDeepLink(e, t);
|
|
523
510
|
}
|
|
524
511
|
_entityDeepLink(e, t) {
|
|
525
512
|
return `${this._baseUrl}#${e}${t ? `-${t}` : ""}`;
|
|
@@ -628,7 +615,7 @@ var q = class t {
|
|
|
628
615
|
d ? this._setMeta("og:description", d) : this._restoreMetaProperty("og:description", this._originals?.ogDescription ?? null), c && this._setMeta("og:image", c), l && this._setMeta("og:url", l), this._setMeta("og:type", "website"), this._setMeta("twitter:card", "summary_large_image"), d ? this._setMeta("description", d) : this._restoreMetaName("description", this._originals?.metaDescription ?? null), i && (document.title = `${i} | ${u}`), this._state = "entity";
|
|
629
616
|
}
|
|
630
617
|
onBackToListing() {
|
|
631
|
-
if (
|
|
618
|
+
if (typeof document < "u" && this._state !== "destroyed") {
|
|
632
619
|
if (this._restoreOriginals(), this._removeAllInjected(), this._events.length > 0) {
|
|
633
620
|
let e = this._buildItemList(this._events);
|
|
634
621
|
this._injectJsonLd(e);
|
|
@@ -637,15 +624,10 @@ var q = class t {
|
|
|
637
624
|
}
|
|
638
625
|
}
|
|
639
626
|
destroy() {
|
|
640
|
-
|
|
641
|
-
--this._holders;
|
|
642
|
-
return;
|
|
643
|
-
}
|
|
644
|
-
this._teardown();
|
|
627
|
+
this._holders > 1 ? --this._holders : this._teardown();
|
|
645
628
|
}
|
|
646
629
|
_teardown() {
|
|
647
|
-
typeof document
|
|
630
|
+
typeof document < "u" && this._state !== "destroyed" && (this._removeAllInjected(), this._restoreOriginals(), t._activeInstance === this && (t._activeInstance = null), this._state = "destroyed");
|
|
648
631
|
}
|
|
649
632
|
};
|
|
650
|
-
//#endregion
|
|
651
633
|
export { q as HostSeoController, W as buildCollectionJsonLd, B as buildEventJsonLd, R as buildOffers, z as buildPerformers, P as buildPostalAddress, U as buildSeriesJsonLd, j as escapeJsonLdForScript, M as formatDateTimeWithOffset, F as getEventStatus, I as getTicketAvailability, N as parseAddressToPostal };
|
package/dist/seo/types.d.ts
CHANGED
|
@@ -122,8 +122,11 @@ export interface HostSeoControllerOptions {
|
|
|
122
122
|
*
|
|
123
123
|
* Unset falls back to the host page's in-place deep link — today's behaviour,
|
|
124
124
|
* and the right degradation: a guessed origin would publish 404s.
|
|
125
|
+
*
|
|
126
|
+
* A function is read each time a show URL is built, so an embed whose
|
|
127
|
+
* origin arrives with a later widget's config still moves the URLs.
|
|
125
128
|
*/
|
|
126
|
-
publicSiteOrigin?: string;
|
|
129
|
+
publicSiteOrigin?: string | (() => string);
|
|
127
130
|
}
|
|
128
131
|
/** What buildCollectionJsonLd expects. */
|
|
129
132
|
export interface CollectionJsonLdInput {
|