@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
|
@@ -1,1305 +0,0 @@
|
|
|
1
|
-
import { m as e, p as t } from "./sizing-B7ixYndz.js";
|
|
2
|
-
import { B as n, H as r, J as i, K as a, N as o, P as s, _ as c, a as l, d as u, f as d, h as f, i as p, n as m, s as h, t as g } from "./datetime-C_dBn97N.js";
|
|
3
|
-
import { t as _ } from "./ArrowLeftIcon-CezkuCvg.js";
|
|
4
|
-
import { L as v, _ as y, f as b, h as x, i as S, t as C, u as w } from "./defaultLabels-tC8zM7_V.js";
|
|
5
|
-
import { t as T } from "./Button-VUB2WJ88.js";
|
|
6
|
-
import { m as E, v as D } from "./client-SmFkruvn.js";
|
|
7
|
-
import { n as O, r as k, t as A } from "./adapter-BPpmiFWD.js";
|
|
8
|
-
import { t as j } from "./EmptyState-CMFePII9.js";
|
|
9
|
-
import { a as M, b as N, i as ee, p as P, y as F } from "./navigation-Cochv2HZ.js";
|
|
10
|
-
import { n as I, t as L } from "./event-transform-Cp_h6-Ot.js";
|
|
11
|
-
import { a as te, i as R, n as z, o as B, t as ne } from "./to-event-card-props-q8vFqxkX.js";
|
|
12
|
-
import { t as re } from "./cta-BpblR0dm.js";
|
|
13
|
-
import { s as ie } from "./checkoutState-wrwq9TD7.js";
|
|
14
|
-
import "svelte/internal/disclose-version";
|
|
15
|
-
import * as V from "svelte/internal/client";
|
|
16
|
-
import { mount as H, unmount as ae } from "svelte";
|
|
17
|
-
//#region src/lib/browse-widgets/show-price.ts
|
|
18
|
-
var U = { kind: "none" };
|
|
19
|
-
function W(e, { allIn: t }) {
|
|
20
|
-
let n = e.filter((e) => !e.soldOut);
|
|
21
|
-
if (n.length === 0) return U;
|
|
22
|
-
let r = n.filter((e) => !e.payWhatYouWant);
|
|
23
|
-
if (r.length === 0) return { kind: "pwyw" };
|
|
24
|
-
if (r.some((e) => e.price === 0)) return { kind: "free" };
|
|
25
|
-
let i = r.map((e) => ({
|
|
26
|
-
amount: t ? f(e) : e.price,
|
|
27
|
-
fee: e.fee ?? null
|
|
28
|
-
})).filter((e) => e.amount !== null && e.amount > 0);
|
|
29
|
-
if (i.length === 0) return U;
|
|
30
|
-
let a = Math.min(...i.map((e) => e.amount));
|
|
31
|
-
if (new Set(i.map((e) => e.amount)).size > 1 || r.length < n.length) return {
|
|
32
|
-
kind: "from",
|
|
33
|
-
amount: a
|
|
34
|
-
};
|
|
35
|
-
let o = i[0].fee;
|
|
36
|
-
return {
|
|
37
|
-
kind: "one",
|
|
38
|
-
amount: a,
|
|
39
|
-
fee: t && o !== null && o > 0 ? o : null
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
function oe(e, t) {
|
|
43
|
-
return W(e.filter((e) => se(e)).flatMap((e) => e.tickets ?? []), t);
|
|
44
|
-
}
|
|
45
|
-
function se(e) {
|
|
46
|
-
let t = R(e)?.type;
|
|
47
|
-
return !t || t === "scarcity";
|
|
48
|
-
}
|
|
49
|
-
function ce(e, t = C) {
|
|
50
|
-
switch (e.kind) {
|
|
51
|
-
case "none": return null;
|
|
52
|
-
case "free": return {
|
|
53
|
-
text: t.free || "Free",
|
|
54
|
-
fee: null
|
|
55
|
-
};
|
|
56
|
-
case "pwyw": return {
|
|
57
|
-
text: t.payWhatYouWant || "Pay what you want",
|
|
58
|
-
fee: null
|
|
59
|
-
};
|
|
60
|
-
case "from": return {
|
|
61
|
-
text: (t.fromPrice || "From {price}").replace("{price}", d(e.amount)),
|
|
62
|
-
fee: null
|
|
63
|
-
};
|
|
64
|
-
case "one": return {
|
|
65
|
-
text: d(e.amount),
|
|
66
|
-
fee: e.fee === null ? null : (t.inclFee || "incl. {fee} fee").replace("{fee}", d(e.fee))
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
//#endregion
|
|
71
|
-
//#region src/lib/browse-widgets/show-action.ts
|
|
72
|
-
function le(e, t = C) {
|
|
73
|
-
let { status: n, badge: r, price: i } = e, a = (e = !1) => ({
|
|
74
|
-
badge: r,
|
|
75
|
-
button: null,
|
|
76
|
-
buttonText: null,
|
|
77
|
-
showPrice: !1,
|
|
78
|
-
dim: e
|
|
79
|
-
}), o = (e = !1) => ({
|
|
80
|
-
...a(e),
|
|
81
|
-
button: "details",
|
|
82
|
-
buttonText: t.eventDetails || "Event details"
|
|
83
|
-
});
|
|
84
|
-
switch (n) {
|
|
85
|
-
case "cancelled": return o(!0);
|
|
86
|
-
case "postponed": return o();
|
|
87
|
-
case "sales_ended":
|
|
88
|
-
case "past": return a();
|
|
89
|
-
case "sold_out": return e.waitlist ? {
|
|
90
|
-
...a(),
|
|
91
|
-
button: "waitlist",
|
|
92
|
-
buttonText: t.joinWaitlist || "Join waitlist"
|
|
93
|
-
} : o();
|
|
94
|
-
case "coming_soon": return {
|
|
95
|
-
...a(),
|
|
96
|
-
badge: {
|
|
97
|
-
text: e.onSaleDate ? (t.onSaleOn || "On sale {date}").replace("{date}", e.onSaleDate) : t.statusComingSoon || "Coming soon",
|
|
98
|
-
variant: z("coming_soon")
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
if (i.kind === "none") return e.ticketsUnlisted ? {
|
|
103
|
-
...a(),
|
|
104
|
-
button: "get-tickets",
|
|
105
|
-
buttonText: t.getTickets || "Get tickets"
|
|
106
|
-
} : e.doorTickets ? {
|
|
107
|
-
...a(),
|
|
108
|
-
badge: {
|
|
109
|
-
text: t.ticketsAtTheDoor || "Tickets at the door",
|
|
110
|
-
variant: "neutral"
|
|
111
|
-
}
|
|
112
|
-
} : a();
|
|
113
|
-
let s = i.kind === "free";
|
|
114
|
-
return {
|
|
115
|
-
badge: r,
|
|
116
|
-
button: s ? "reserve" : "get-tickets",
|
|
117
|
-
buttonText: s ? t.reserveASpot || "Reserve a spot" : t.getTickets || "Get tickets",
|
|
118
|
-
showPrice: !0,
|
|
119
|
-
dim: !1
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
function ue(e, t) {
|
|
123
|
-
return e.button ? t || e.button === "waitlist" || e.button === "details" : !1;
|
|
124
|
-
}
|
|
125
|
-
//#endregion
|
|
126
|
-
//#region src/lib/browse-widgets/look-show.ts
|
|
127
|
-
function de(e) {
|
|
128
|
-
return N(e ?? [], {
|
|
129
|
-
excludeDoorOnly: !0,
|
|
130
|
-
publicOnly: !0
|
|
131
|
-
}).map((e) => ({
|
|
132
|
-
price: u(e.price),
|
|
133
|
-
fee: u(e.fee),
|
|
134
|
-
soldOut: e.remainingCapacity != null && e.remainingCapacity <= 0,
|
|
135
|
-
payWhatYouWant: ie(e)
|
|
136
|
-
}));
|
|
137
|
-
}
|
|
138
|
-
function G(e, t = !0) {
|
|
139
|
-
if (t === !1) return;
|
|
140
|
-
let n;
|
|
141
|
-
for (let t of N(e ?? [], {
|
|
142
|
-
excludeDoorOnly: !0,
|
|
143
|
-
publicOnly: !0
|
|
144
|
-
})) {
|
|
145
|
-
let e = F(t);
|
|
146
|
-
if (e === "scheduled" || e === "sales_ended" || !((u(t.price) ?? 0) > 0)) continue;
|
|
147
|
-
let r = t.remainingCapacity ?? 0, i = t.totalCapacity ?? t.quantity ?? t.remainingCapacity ?? 0, a = c(r, i);
|
|
148
|
-
(a === "urgent" || a === "low") && (!n || a === "urgent" && !n.urgent) && (n = {
|
|
149
|
-
pool: {
|
|
150
|
-
remaining: r,
|
|
151
|
-
total: i
|
|
152
|
-
},
|
|
153
|
-
urgent: a === "urgent"
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
return n?.pool;
|
|
157
|
-
}
|
|
158
|
-
function K(e, t) {
|
|
159
|
-
let n = y(t);
|
|
160
|
-
if (n) return N(e ?? [], {
|
|
161
|
-
excludeDoorOnly: !0,
|
|
162
|
-
publicOnly: !0
|
|
163
|
-
}).map((e) => e.effectiveSalesBegin || e.salesBegin).filter((e) => typeof e == "string" && e.length > 0).filter((e) => {
|
|
164
|
-
let t = y(e);
|
|
165
|
-
return t !== null && b(t, n) > 0;
|
|
166
|
-
}).sort()[0];
|
|
167
|
-
}
|
|
168
|
-
function q(e, t) {
|
|
169
|
-
if (!t || e !== "on_sale") return e;
|
|
170
|
-
let { reason: n } = re(t, t.availableTickets);
|
|
171
|
-
return n === "coming_soon" ? "coming_soon" : n === "sales_ended" ? "sales_ended" : e;
|
|
172
|
-
}
|
|
173
|
-
function fe(e, t = x()) {
|
|
174
|
-
let n = new Map(e.map((e) => [e.id, e]));
|
|
175
|
-
return A(e.map((e) => I(e, { mode: L.BROWSE }))).map((e) => {
|
|
176
|
-
let r = n.get(e.eventID);
|
|
177
|
-
return {
|
|
178
|
-
...e,
|
|
179
|
-
status: q(e.status, r),
|
|
180
|
-
tickets: de(r?.availableTickets),
|
|
181
|
-
scarcestTicket: G(r?.availableTickets, r?.displayTicketsLeft),
|
|
182
|
-
waitlist: r?.waitlistEnabled === !0 || r?.waitlistOpen === !0,
|
|
183
|
-
ticketsUnlisted: !Array.isArray(r?.availableTickets),
|
|
184
|
-
doorTickets: r?.hasDoorTickets === !0,
|
|
185
|
-
onSaleAt: K(r?.availableTickets, t)
|
|
186
|
-
};
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
function pe({ show: e, showTimes: t, parts: n, layout: r, labels: i, locale: a }) {
|
|
190
|
-
let o = [];
|
|
191
|
-
e.stageName && (n.doors || n.time) && r !== "tile" && o.push(e.stageName);
|
|
192
|
-
let s = n.doors ? p(e.doorsOpenTime, e.timeZone, a) : "";
|
|
193
|
-
return s && o.push((i.doorsAtTime || "Doors {time}").replace("{time}", s)), n.time && r !== "board" && t.forEach((e, t) => o.push(t === 0 ? (i.showAtTime || "Show {time}").replace("{time}", e) : e)), o;
|
|
194
|
-
}
|
|
195
|
-
//#endregion
|
|
196
|
-
//#region src/lib/browse-widgets/LookCard.svelte
|
|
197
|
-
var me = V.from_html("<span><!></span>"), he = V.from_html("<span aria-hidden=\"true\"><span class=\"look-card__poster-blank-text svelte-1qztns5\"> </span></span>"), ge = V.from_html("<div class=\"look-card__poster svelte-1qztns5\"><!> <!></div>"), _e = V.from_html("<h3><a class=\"look-card__link svelte-1qztns5\"> </a></h3>"), ve = V.from_html("<span class=\"look-card__fact svelte-1qztns5\"> </span>"), ye = V.from_html("<p></p>"), J = V.from_html("<p> </p>"), be = V.from_html("<!> <!>", 1), xe = V.from_html("<span> </span>"), Se = V.from_html("<p class=\"look-card__price m-0 svelte-1qztns5\"><span> </span> <!></p>"), Ce = V.from_html("<span class=\"look-card__button svelte-1qztns5\"><!></span>"), we = V.from_html("<div class=\"look-card__buy svelte-1qztns5\"><!> <!></div>"), Te = V.from_html("<div class=\"look-card__body svelte-1qztns5\"><!> <p> </p> <!> <!> <!></div> <!>", 1), Ee = V.from_html("<p class=\"look-card__when m-0 svelte-1qztns5\"><span> </span> <span> </span> <span> </span></p>"), De = V.from_html("<!> <!> <div class=\"look-card__body svelte-1qztns5\"><!> <!> <!></div> <!>", 1), Oe = V.from_html("<p> <!></p>"), ke = V.from_html("<!> <!> <div class=\"look-card__body svelte-1qztns5\"><!> <!> <!> <!> <!></div> <!>", 1), Ae = V.from_html("<span class=\"look-card__tile-time svelte-1qztns5\"> </span>"), je = V.from_html("<span class=\"look-card__tile-times tone-secondary svelte-1qztns5\"></span>"), Me = V.from_html("<a class=\"look-card__tile-action tone-brand svelte-1qztns5\"> </a>"), Ne = V.from_html("<!> <!> <p><!> <a class=\"look-card__link look-card__tile-title tone-primary svelte-1qztns5\"> </a> <!></p>", 1), Pe = V.from_html("<!> <div class=\"look-card__body svelte-1qztns5\"><!> <!> <!> <!> <!></div> <!>", 1), Fe = V.from_html("<article class=\"look-card svelte-1qztns5\"><div class=\"look-card__frame svelte-1qztns5\"><!></div></article>"), Ie = {
|
|
198
|
-
hash: "svelte-1qztns5",
|
|
199
|
-
code: ".look-card.svelte-1qztns5 {\n /* Local stacking: the stretched title link covers the card, the button\n and badge sit above it so their own clicks land. */--look-z-link: 1;--look-z-above: 2;--look-pad: 1rem;--look-gap: 0.5rem;--look-thumb: 6rem;container-type:inline-size;position:relative;min-width:0;height:100%;overflow:hidden;color:hsl(var(--text-primary));background-color:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:var(--radius-card);transition:border-color var(--motion-fast);}.look-card.svelte-1qztns5:hover {border-color:hsl(var(--text-secondary));}.look-card[data-size='S'].svelte-1qztns5 {--look-pad: 0.75rem;--look-gap: 0.25rem;--look-thumb: 4.5rem;}.look-card[data-size='L'].svelte-1qztns5 {--look-pad: 1.5rem;--look-gap: 0.625rem;--look-thumb: 8rem;}.look-card[data-dim='true'].svelte-1qztns5 .look-card__poster:where(.svelte-1qztns5),\n .look-card[data-dim='true'].svelte-1qztns5 .look-card__title:where(.svelte-1qztns5) {opacity:0.55;}.look-card__frame.svelte-1qztns5 {display:flex;flex-direction:column;height:100%;}.look-card__body.svelte-1qztns5 {display:flex;flex:1;flex-direction:column;gap:var(--look-gap);min-width:0;}\n\n /* === Title: wraps as far as it needs, never clipped === */.look-card__title.svelte-1qztns5 {overflow-wrap:anywhere;hyphens:auto;}.look-card__link.svelte-1qztns5 {color:inherit;text-decoration:none;}.look-card__link.svelte-1qztns5::before {content:'';position:absolute;inset:0;z-index:var(--look-z-link);}.look-card__link.svelte-1qztns5:focus-visible {outline:none;}.look-card.svelte-1qztns5:has(.look-card__link:where(.svelte-1qztns5):focus-visible) {outline:2px solid var(--color-focus-ring, hsl(var(--brand-primary)));outline-offset:2px;}\n\n /* === Facts: wrap between facts, never inside one === */.look-card__facts.svelte-1qztns5 {display:flex;flex-wrap:wrap;gap:0 0.75rem;}.look-card__fact.svelte-1qztns5 {white-space:nowrap;}\n\n /* A narrow card gives each fact its own line, by rule, not only once the\n line runs out of room. */\n @container (width < 22.5rem) {.look-card__facts.svelte-1qztns5 {flex-direction:column;}\n\n /* On its own line a long fact (\"Hannah Jones, Live!\") wraps instead of\n running past the card's edge. */.look-card__fact.svelte-1qztns5 {white-space:normal;}\n }.look-card__who.svelte-1qztns5 {overflow-wrap:anywhere;}.look-card__desc.svelte-1qztns5 {display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;}\n\n /* === Badge: own row, or the poster's corner === */.look-card__badge.svelte-1qztns5 {display:flex;}.look-card__badge--poster.svelte-1qztns5 {position:absolute;top:0.5rem;left:0.5rem;z-index:var(--look-z-above);}\n\n /* === Poster === */.look-card__poster.svelte-1qztns5 {position:relative;flex:none;aspect-ratio:16 / 9;overflow:hidden;background-color:hsl(var(--muted));}.look-card__poster .look-card__poster-fill {width:100%;height:100%;}\n\n /* The name stops at three lines with an ellipsis, EventCard's fallback\n rule. The box is 16:9 at any width, so the type scales with the box's\n width (cqw) until three lines always fit its height: 3 lines at\n 1.25 × 11cqw is 41.25cqw of a 56.25cqw-tall box. */.look-card__poster-blank.svelte-1qztns5 {container-type:inline-size;display:flex;align-items:center;justify-content:center;height:100%;text-align:center;overflow-wrap:anywhere;background-color:color-mix(\n in srgb,\n hsl(var(--brand-primary)) 14%,\n hsl(var(--bg-tertiary))\n );}.look-card__poster-blank-text.svelte-1qztns5 {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;padding-inline:min(0.75rem, 6cqw);font-size:min(1em, 11cqw);line-height:1.25;}\n\n /* === Price and button: side by side while they fit, then stacked === */.look-card__buy.svelte-1qztns5 {position:relative;z-index:var(--look-z-above);display:flex;flex-wrap:wrap;gap:0.75rem 1rem;align-items:center;justify-content:space-between;pointer-events:none;}.look-card__buy.svelte-1qztns5 > :where(.svelte-1qztns5) {pointer-events:auto;}.look-card__price.svelte-1qztns5 {display:flex;flex-direction:column;min-width:0;}.look-card__price.svelte-1qztns5 span:where(.svelte-1qztns5):first-child {line-height:1.1;}.look-card__fee.svelte-1qztns5 {white-space:nowrap;}.look-card__button.svelte-1qztns5 {display:flex;flex:none;}\n\n /* The label is one line: the button is as wide as its words, and the buy\n row stacks before it would squeeze them. */.look-card__button.svelte-1qztns5 a {white-space:nowrap;}\n\n /* ---------- stack: poster on top ---------- */.look-card[data-layout='stack'].svelte-1qztns5 .look-card__body:where(.svelte-1qztns5) {padding:var(--look-pad) var(--look-pad) 0;}.look-card[data-layout='stack'].svelte-1qztns5 .look-card__buy:where(.svelte-1qztns5) {margin-top:auto;padding:var(--look-gap) var(--look-pad) var(--look-pad);}.look-card[data-layout='stack'].svelte-1qztns5 .look-card__body:where(.svelte-1qztns5):last-child {padding-bottom:var(--look-pad);}\n\n @container (width < 15rem) {.look-card[data-layout='stack'].svelte-1qztns5 .look-card__button:where(.svelte-1qztns5) {flex:1 1 100%;}.look-card[data-layout='stack'].svelte-1qztns5 .look-card__button:where(.svelte-1qztns5) a {flex:1;}\n }\n\n /* An L card wide enough puts the poster beside the words. */\n @container (width >= 40rem) {.look-card[data-layout='stack'][data-size='L'][data-poster='true'].svelte-1qztns5\n .look-card__frame:where(.svelte-1qztns5) {display:grid;grid-template-rows:auto 1fr;grid-template-columns:minmax(0, 1.1fr) minmax(0, 1fr);}.look-card[data-layout='stack'][data-size='L'][data-poster='true'].svelte-1qztns5\n .look-card__poster:where(.svelte-1qztns5) {grid-row:1 / span 2;align-self:start;}.look-card[data-layout='stack'][data-size='L'][data-poster='true'].svelte-1qztns5\n .look-card__buy:where(.svelte-1qztns5) {grid-column:2;}\n }\n\n /* ---------- row: poster left, buy column right ---------- */.look-card[data-layout='row'].svelte-1qztns5 .look-card__frame:where(.svelte-1qztns5) {display:grid;grid-template-columns:auto minmax(0, 1fr);gap:var(--look-gap) calc(var(--look-gap) * 2);align-items:center;padding:calc(var(--look-pad) * 0.75);}.look-card[data-layout='row'][data-poster='false'].svelte-1qztns5 .look-card__frame:where(.svelte-1qztns5) {grid-template-columns:minmax(0, 1fr);}.look-card[data-layout='row'].svelte-1qztns5 .look-card__poster:where(.svelte-1qztns5) {align-self:start;width:var(--look-thumb);border-radius:0.5rem;}.look-card[data-layout='row'].svelte-1qztns5 .look-card__buy:where(.svelte-1qztns5) {grid-column:1 / -1;}\n\n @container (width >= 34rem) {.look-card[data-layout='row'].svelte-1qztns5 .look-card__frame:where(.svelte-1qztns5) {grid-template-columns:auto minmax(0, 1fr) auto;}.look-card[data-layout='row'][data-poster='false'].svelte-1qztns5 .look-card__frame:where(.svelte-1qztns5) {grid-template-columns:minmax(0, 1fr) auto;}.look-card[data-layout='row'].svelte-1qztns5 .look-card__buy:where(.svelte-1qztns5) {grid-column:auto;flex-direction:column;align-items:flex-end;text-align:right;}.look-card[data-layout='row'].svelte-1qztns5 .look-card__price:where(.svelte-1qztns5) {align-items:flex-end;}\n }\n\n @container (width < 22rem) {\n /* A large thumb would leave the text a sliver beside it. */.look-card[data-layout='row'].svelte-1qztns5 .look-card__poster:where(.svelte-1qztns5) {width:min(var(--look-thumb), 5rem);}.look-card[data-layout='row'].svelte-1qztns5 .look-card__button:where(.svelte-1qztns5) {flex:1 1 100%;}.look-card[data-layout='row'].svelte-1qztns5 .look-card__button:where(.svelte-1qztns5) a {flex:1;}\n }\n\n /* ---------- board: the time leads ----------\n Narrow: the time on its own line, poster and words side by side, price\n and button below them with the button full width. Wide: one row, each\n part in its own named column, so a part switched off leaves no empty\n column for the next part to slide into. */.look-card[data-layout='board'].svelte-1qztns5 .look-card__frame:where(.svelte-1qztns5) {display:grid;grid-template-columns:auto minmax(0, 1fr);grid-template-areas:'time time'\n 'poster body'\n 'buy buy';gap:var(--look-gap) calc(var(--look-gap) * 2);align-items:center;padding:var(--look-pad);}.look-card[data-layout='board'][data-poster='false'].svelte-1qztns5 .look-card__frame:where(.svelte-1qztns5) {grid-template-columns:minmax(0, 1fr);grid-template-areas:'time'\n 'body'\n 'buy';}.look-card[data-layout='board'].svelte-1qztns5 .look-card__time:where(.svelte-1qztns5) {grid-area:time;white-space:nowrap;}.look-card[data-layout='board'].svelte-1qztns5 .look-card__poster:where(.svelte-1qztns5) {grid-area:poster;align-self:start;width:var(--look-thumb);border-radius:0.5rem;}.look-card[data-layout='board'].svelte-1qztns5 .look-card__body:where(.svelte-1qztns5) {grid-area:body;}.look-card[data-layout='board'].svelte-1qztns5 .look-card__buy:where(.svelte-1qztns5) {grid-area:buy;}.look-card[data-layout='board'].svelte-1qztns5 .look-card__button:where(.svelte-1qztns5) {flex:1 1 100%;}.look-card[data-layout='board'].svelte-1qztns5 .look-card__button:where(.svelte-1qztns5) a {flex:1;}.look-card__period.svelte-1qztns5 {margin-left:0.25rem;}\n\n /* One row once the words keep a real column beside the time, poster and\n buy column; an L card needs more room for its larger parts. */\n @container (width >= 36rem) {.look-card[data-layout='board'].svelte-1qztns5:not([data-size='L']) .look-card__frame:where(.svelte-1qztns5) {grid-template-columns:var(--board-cols);grid-template-areas:var(--board-areas);}\n }\n\n @container (width >= 46rem) {.look-card[data-layout='board'][data-size='L'].svelte-1qztns5 .look-card__frame:where(.svelte-1qztns5) {grid-template-columns:var(--board-cols);grid-template-areas:var(--board-areas);}\n }.look-card[data-layout='board'].svelte-1qztns5 {--board-cols: 7.5rem auto minmax(0, 1fr) auto;--board-areas: 'time poster body buy';}.look-card[data-layout='board'][data-time='false'].svelte-1qztns5 {--board-cols: auto minmax(0, 1fr) auto;--board-areas: 'poster body buy';}.look-card[data-layout='board'][data-poster='false'].svelte-1qztns5 {--board-cols: 7.5rem minmax(0, 1fr) auto;--board-areas: 'time body buy';}.look-card[data-layout='board'][data-poster='false'][data-time='false'].svelte-1qztns5 {--board-cols: minmax(0, 1fr) auto;--board-areas: 'body buy';}\n\n @container (width >= 36rem) {.look-card[data-layout='board'].svelte-1qztns5:not([data-size='L']) .look-card__buy:where(.svelte-1qztns5) {flex-direction:column;align-items:flex-end;}.look-card[data-layout='board'].svelte-1qztns5:not([data-size='L']) .look-card__button:where(.svelte-1qztns5) {flex:none;}\n }\n\n @container (width >= 46rem) {.look-card[data-layout='board'][data-size='L'].svelte-1qztns5 .look-card__buy:where(.svelte-1qztns5) {flex-direction:column;align-items:flex-end;}.look-card[data-layout='board'][data-size='L'].svelte-1qztns5 .look-card__button:where(.svelte-1qztns5) {flex:none;}\n }\n\n /* ---------- ticket: the date set big ---------- */.look-card[data-layout='ticket'].svelte-1qztns5 .look-card__frame:where(.svelte-1qztns5) {gap:1rem;padding:calc(var(--look-pad) * 1.25);}.look-card[data-layout='ticket'].svelte-1qztns5 .look-card__bigdate:where(.svelte-1qztns5) {overflow-wrap:anywhere;}.look-card[data-layout='ticket'].svelte-1qztns5 .look-card__buy:where(.svelte-1qztns5) {padding-top:1rem;border-top:1px solid hsl(var(--border));}\n\n @container (width < 24rem) {.look-card[data-layout='ticket'].svelte-1qztns5 .look-card__button:where(.svelte-1qztns5) {flex:1 1 100%;}.look-card[data-layout='ticket'].svelte-1qztns5 .look-card__button:where(.svelte-1qztns5) a {flex:1;}\n }\n\n /* ---------- strip: one line ---------- */.look-card[data-layout='strip'].svelte-1qztns5 .look-card__frame:where(.svelte-1qztns5) {display:flex;flex-flow:row wrap;gap:0.75rem 1rem;align-items:center;padding:0.75rem;}.look-card[data-layout='strip'].svelte-1qztns5 .look-card__when:where(.svelte-1qztns5) {display:flex;flex:none;flex-direction:column;align-items:center;min-width:3.5rem;line-height:1.1;}.look-card[data-layout='strip'].svelte-1qztns5 .look-card__poster:where(.svelte-1qztns5) {width:5.5rem;border-radius:0.375rem;}.look-card[data-layout='strip'].svelte-1qztns5 .look-card__body:where(.svelte-1qztns5) {flex:1 1 12rem;}\n\n /* Narrow: the poster shrinks to a thumb rather than leaving. */\n @container (width < 30rem) {.look-card[data-layout='strip'].svelte-1qztns5 .look-card__poster:where(.svelte-1qztns5) {width:3.5rem;}\n }\n\n @container (width < 20rem) {.look-card[data-layout='strip'].svelte-1qztns5 .look-card__buy:where(.svelte-1qztns5),\n .look-card[data-layout='strip'].svelte-1qztns5 .look-card__button:where(.svelte-1qztns5) {flex:1 1 100%;}.look-card[data-layout='strip'].svelte-1qztns5 .look-card__button:where(.svelte-1qztns5) a {flex:1;}\n }\n\n /* ---------- tile: a show inside a calendar day ---------- */.look-card[data-layout='tile'].svelte-1qztns5 {border-radius:0.375rem;}.look-card[data-layout='tile'].svelte-1qztns5 .look-card__frame:where(.svelte-1qztns5) {gap:0.25rem;padding:0.25rem;}.look-card[data-layout='tile'].svelte-1qztns5 .look-card__poster:where(.svelte-1qztns5) {border-radius:0.25rem;}.look-card__tile-text.svelte-1qztns5 {display:flex;flex-direction:column;gap:0.125rem;overflow-wrap:anywhere;}.look-card__tile-action.svelte-1qztns5 {position:relative;z-index:var(--look-z-above);text-decoration:underline;}.look-card__tile-title.svelte-1qztns5 {font-weight:600;}\n\n /* A day square is always narrow: each fact on its own line, as on a card\n under 22.5rem. */.look-card__tile-times.svelte-1qztns5 {display:flex;flex-direction:column;}.look-card__tile-time.svelte-1qztns5 {white-space:nowrap;}\n\n @media (prefers-reduced-motion: reduce) {.look-card.svelte-1qztns5 {transition:none;}\n }"
|
|
200
|
-
};
|
|
201
|
-
function Y(n, r) {
|
|
202
|
-
V.push(r, !0), V.append_styles(n, Ie);
|
|
203
|
-
let i = (e, t) => {
|
|
204
|
-
let n = V.derived_safe_equal(() => V.fallback(t?.(), !1));
|
|
205
|
-
var r = V.comment(), i = V.first_child(r), a = (e) => {
|
|
206
|
-
var t = me();
|
|
207
|
-
let r;
|
|
208
|
-
var i = V.child(t);
|
|
209
|
-
S(i, {
|
|
210
|
-
as: "span",
|
|
211
|
-
get variant() {
|
|
212
|
-
return V.get(D).badge.variant;
|
|
213
|
-
},
|
|
214
|
-
size: "sm",
|
|
215
|
-
children: (e, t) => {
|
|
216
|
-
V.next();
|
|
217
|
-
var n = V.text();
|
|
218
|
-
V.template_effect(() => V.set_text(n, V.get(D).badge.text)), V.append(e, n);
|
|
219
|
-
},
|
|
220
|
-
$$slots: { default: !0 }
|
|
221
|
-
}), V.reset(t), V.template_effect(() => r = V.set_class(t, 1, "look-card__badge svelte-1qztns5", null, r, { "look-card__badge--poster": V.get(n) })), V.append(e, t);
|
|
222
|
-
};
|
|
223
|
-
V.if(i, (e) => {
|
|
224
|
-
V.get(D).badge && e(a);
|
|
225
|
-
}), V.append(e, r);
|
|
226
|
-
}, a = (t) => {
|
|
227
|
-
var n = V.comment(), r = V.first_child(n), a = (t) => {
|
|
228
|
-
var n = ge(), r = V.child(n), a = (e) => {
|
|
229
|
-
v(e, {
|
|
230
|
-
get src() {
|
|
231
|
-
return V.get(w).imageUrl;
|
|
232
|
-
},
|
|
233
|
-
alt: "",
|
|
234
|
-
fit: "blur-backdrop",
|
|
235
|
-
branded: !1,
|
|
236
|
-
class: "look-card__poster-fill h-full"
|
|
237
|
-
});
|
|
238
|
-
}, o = (t) => {
|
|
239
|
-
var n = he(), r = V.child(n), i = V.child(r, !0);
|
|
240
|
-
V.reset(r), V.reset(n), V.template_effect(() => {
|
|
241
|
-
V.set_class(n, 1, `look-card__poster-blank ${e.label ?? ""} tone-primary`, "svelte-1qztns5"), V.set_text(i, V.get(w).title);
|
|
242
|
-
}), V.append(t, n);
|
|
243
|
-
};
|
|
244
|
-
V.if(r, (e) => {
|
|
245
|
-
V.get(w).imageUrl ? e(a) : e(o, -1);
|
|
246
|
-
});
|
|
247
|
-
var s = V.sibling(r, 2), c = (e) => {
|
|
248
|
-
i(e, () => !0);
|
|
249
|
-
};
|
|
250
|
-
V.if(s, (e) => {
|
|
251
|
-
V.get(z) && e(c);
|
|
252
|
-
}), V.reset(n), V.append(t, n);
|
|
253
|
-
};
|
|
254
|
-
V.if(r, (e) => {
|
|
255
|
-
V.get(L) && e(a);
|
|
256
|
-
}), V.append(t, n);
|
|
257
|
-
}, o = (e, t = V.noop) => {
|
|
258
|
-
var n = _e(), i = V.child(n), a = V.child(i, !0);
|
|
259
|
-
V.reset(i), V.reset(n), V.template_effect(() => {
|
|
260
|
-
V.set_class(n, 1, `look-card__title ${t() ?? ""} tone-primary m-0`, "svelte-1qztns5"), V.set_attribute(i, "href", V.get(A)), V.set_attribute(i, "target", r.target), V.set_attribute(i, "rel", r.target === "_blank" ? "noopener external" : "external"), V.set_attribute(i, "aria-label", V.get(w).ariaLabel), V.set_text(a, V.get(w).title);
|
|
261
|
-
}), V.delegated("click", i, G), V.append(e, n);
|
|
262
|
-
}, s = (e) => {
|
|
263
|
-
var t = V.comment(), n = V.first_child(t), r = (e) => {
|
|
264
|
-
var t = ye();
|
|
265
|
-
V.each(t, 21, () => V.get(N), V.index, (e, t) => {
|
|
266
|
-
var n = ve(), r = V.child(n, !0);
|
|
267
|
-
V.reset(n), V.template_effect(() => V.set_text(r, V.get(t))), V.append(e, n);
|
|
268
|
-
}), V.reset(t), V.template_effect(() => V.set_class(t, 1, `look-card__facts ${W[d()] ?? ""} tone-secondary m-0`, "svelte-1qztns5")), V.append(e, t);
|
|
269
|
-
};
|
|
270
|
-
V.if(n, (e) => {
|
|
271
|
-
V.get(N).length && e(r);
|
|
272
|
-
}), V.append(e, t);
|
|
273
|
-
}, c = (e) => {
|
|
274
|
-
var t = be(), n = V.first_child(t), r = (e) => {
|
|
275
|
-
var t = J(), n = V.child(t, !0);
|
|
276
|
-
V.reset(t), V.template_effect(() => {
|
|
277
|
-
V.set_class(t, 1, `look-card__who ${W[d()] ?? ""} tone-primary m-0`, "svelte-1qztns5"), V.set_text(n, V.get(I));
|
|
278
|
-
}), V.append(e, t);
|
|
279
|
-
};
|
|
280
|
-
V.if(n, (e) => {
|
|
281
|
-
V.get(I) && e(r);
|
|
282
|
-
});
|
|
283
|
-
var i = V.sibling(n, 2), a = (e) => {
|
|
284
|
-
var t = J(), n = V.child(t, !0);
|
|
285
|
-
V.reset(t), V.template_effect(() => {
|
|
286
|
-
V.set_class(t, 1, `look-card__desc ${W[d()] ?? ""} tone-secondary m-0`, "svelte-1qztns5"), V.set_text(n, V.get(F));
|
|
287
|
-
}), V.append(e, t);
|
|
288
|
-
};
|
|
289
|
-
V.if(i, (e) => {
|
|
290
|
-
V.get(F) && e(a);
|
|
291
|
-
}), V.append(e, t);
|
|
292
|
-
}, u = (t) => {
|
|
293
|
-
let n = V.derived(() => ue(V.get(D), r.parts.button));
|
|
294
|
-
var i = V.comment(), a = V.first_child(i), o = (t) => {
|
|
295
|
-
var r = we(), i = V.child(r), a = (t) => {
|
|
296
|
-
var n = Se(), r = V.child(n), i = V.child(r, !0);
|
|
297
|
-
V.reset(r);
|
|
298
|
-
var a = V.sibling(r, 2), o = (t) => {
|
|
299
|
-
var n = xe(), r = V.child(n, !0);
|
|
300
|
-
V.reset(n), V.template_effect(() => {
|
|
301
|
-
V.set_class(n, 1, `look-card__fee ${e.caption ?? ""} tone-secondary`, "svelte-1qztns5"), V.set_text(r, V.get(O).fee);
|
|
302
|
-
}), V.append(t, n);
|
|
303
|
-
};
|
|
304
|
-
V.if(a, (e) => {
|
|
305
|
-
V.get(O).fee && e(o);
|
|
306
|
-
}), V.reset(n), V.template_effect(() => {
|
|
307
|
-
V.set_class(r, 1, `${se[d()] ?? ""} tone-primary`, "svelte-1qztns5"), V.set_text(i, V.get(O).text);
|
|
308
|
-
}), V.append(t, n);
|
|
309
|
-
};
|
|
310
|
-
V.if(i, (e) => {
|
|
311
|
-
V.get(O) && e(a);
|
|
312
|
-
});
|
|
313
|
-
var o = V.sibling(i, 2), s = (e) => {
|
|
314
|
-
var t = Ce(), n = V.child(t);
|
|
315
|
-
{
|
|
316
|
-
let e = V.derived(() => V.get(D).button === "get-tickets" || V.get(D).button === "reserve" ? "default" : "outline");
|
|
317
|
-
T(n, {
|
|
318
|
-
get href() {
|
|
319
|
-
return V.get(A);
|
|
320
|
-
},
|
|
321
|
-
get variant() {
|
|
322
|
-
return V.get(e);
|
|
323
|
-
},
|
|
324
|
-
get size() {
|
|
325
|
-
return de[d()];
|
|
326
|
-
},
|
|
327
|
-
onclick: G,
|
|
328
|
-
get "aria-label"() {
|
|
329
|
-
return `${V.get(D).buttonText ?? ""}: ${V.get(w).title ?? ""}`;
|
|
330
|
-
},
|
|
331
|
-
children: (e, t) => {
|
|
332
|
-
V.next();
|
|
333
|
-
var n = V.text();
|
|
334
|
-
V.template_effect(() => V.set_text(n, V.get(D).buttonText)), V.append(e, n);
|
|
335
|
-
},
|
|
336
|
-
$$slots: { default: !0 }
|
|
337
|
-
});
|
|
338
|
-
}
|
|
339
|
-
V.reset(t), V.append(e, t);
|
|
340
|
-
};
|
|
341
|
-
V.if(o, (e) => {
|
|
342
|
-
V.get(n) && e(s);
|
|
343
|
-
}), V.reset(r), V.append(t, r);
|
|
344
|
-
};
|
|
345
|
-
V.if(a, (e) => {
|
|
346
|
-
(V.get(O) || V.get(n)) && e(o);
|
|
347
|
-
}), V.append(t, i);
|
|
348
|
-
}, d = V.prop(r, "size", 3, "M"), f = V.prop(r, "layout", 3, "stack"), p = V.prop(r, "badgeOnPoster", 3, !0), m = V.prop(r, "allIn", 3, !0), _ = V.prop(r, "labels", 3, C), y = V.derived(() => r.instances?.length ? r.instances : [r.show]), b = V.derived(() => V.get(y).length > 1), x = V.derived(() => V.get(b) ? te(V.get(y), _()) : R(r.show, _())), w = V.derived(() => ne({
|
|
349
|
-
event: r.show,
|
|
350
|
-
instances: V.get(y),
|
|
351
|
-
isSeries: V.get(b)
|
|
352
|
-
}, _(), r.locale, {
|
|
353
|
-
poster: r.parts.poster,
|
|
354
|
-
date: r.parts.date,
|
|
355
|
-
description: r.parts.description
|
|
356
|
-
})), E = V.derived(() => oe(V.get(y), { allIn: m() })), D = V.derived(() => le({
|
|
357
|
-
status: V.get(x)?.type ?? null,
|
|
358
|
-
badge: V.get(w).badge,
|
|
359
|
-
price: V.get(E),
|
|
360
|
-
waitlist: r.show.waitlist,
|
|
361
|
-
doorTickets: r.show.doorTickets,
|
|
362
|
-
ticketsUnlisted: r.show.ticketsUnlisted,
|
|
363
|
-
onSaleDate: r.show.onSaleAt ? g(r.show.onSaleAt, r.show.timeZone, r.locale) : null
|
|
364
|
-
}, _())), O = V.derived(() => r.parts.price && V.get(D).showPrice ? ce(V.get(E), _()) : null), A = V.derived(() => r.href ?? (r.onopen && P() ? M(r.show.eventID, r.show.slug ?? null) : ee(r.show.eventID, r.show.slug ?? null))), j = V.derived(() => r.show.displayStartTime === !1 ? [] : V.get(y).map((e) => h(e.startDateTime, e.timeZone, r.locale)).filter(Boolean)), N = V.derived(() => pe({
|
|
365
|
-
show: r.show,
|
|
366
|
-
showTimes: V.get(j),
|
|
367
|
-
parts: r.parts,
|
|
368
|
-
layout: f(),
|
|
369
|
-
labels: _(),
|
|
370
|
-
locale: r.locale
|
|
371
|
-
})), F = V.derived(() => {
|
|
372
|
-
let e = k(V.get(w).description, ae);
|
|
373
|
-
return e && e !== V.get(w).title.trim() ? e : "";
|
|
374
|
-
}), I = V.derived(() => r.parts.performers && r.show.performerNames?.length ? r.show.performerNames.join(", ") : ""), L = V.derived(() => r.parts.poster && f() !== "ticket"), z = V.derived(() => p() && V.get(L) && f() === "stack"), B = V.derived(() => f() === "board" && r.parts.time && V.get(j).length > 0), re = (e) => l(e.startDateTime, e.timeZone, {
|
|
375
|
-
weekday: "long",
|
|
376
|
-
month: "short",
|
|
377
|
-
day: "numeric"
|
|
378
|
-
}, r.locale), ie = (e) => ({
|
|
379
|
-
weekday: l(e.startDateTime, e.timeZone, { weekday: "short" }, r.locale),
|
|
380
|
-
day: l(e.startDateTime, e.timeZone, { day: "numeric" }, r.locale),
|
|
381
|
-
month: l(e.startDateTime, e.timeZone, { month: "short" }, r.locale)
|
|
382
|
-
}), H = V.derived(() => {
|
|
383
|
-
let e = V.get(j)[0] ?? "", t = e.match(/^(.*\d)\s*(\D+)$/);
|
|
384
|
-
return t ? {
|
|
385
|
-
main: t[1],
|
|
386
|
-
period: t[2]
|
|
387
|
-
} : {
|
|
388
|
-
main: e,
|
|
389
|
-
period: ""
|
|
390
|
-
};
|
|
391
|
-
}), ae = 220, U = {
|
|
392
|
-
S: `${e.label} ${t.strong}`,
|
|
393
|
-
M: e.subheading,
|
|
394
|
-
L: e.heading
|
|
395
|
-
}, W = {
|
|
396
|
-
S: e.caption,
|
|
397
|
-
M: e.body,
|
|
398
|
-
L: e.bodyLarge
|
|
399
|
-
}, se = {
|
|
400
|
-
S: e.subheading,
|
|
401
|
-
M: e.heading,
|
|
402
|
-
L: e.title
|
|
403
|
-
}, de = {
|
|
404
|
-
S: "sm",
|
|
405
|
-
M: "md",
|
|
406
|
-
L: "lg"
|
|
407
|
-
};
|
|
408
|
-
function G(e) {
|
|
409
|
-
e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (r.onopen ? (e.preventDefault(), r.onopen(r.show)) : r.target === "_blank" && (e.preventDefault(), window.open(V.get(A), "_blank", "noopener")));
|
|
410
|
-
}
|
|
411
|
-
var K = Fe(), q = V.child(K), fe = V.child(q), Y = (t) => {
|
|
412
|
-
var n = Te(), a = V.first_child(n), l = V.child(a);
|
|
413
|
-
i(l);
|
|
414
|
-
var d = V.sibling(l, 2), f = V.child(d, !0);
|
|
415
|
-
V.reset(d);
|
|
416
|
-
var p = V.sibling(d, 2);
|
|
417
|
-
o(p, () => e.subheading);
|
|
418
|
-
var m = V.sibling(p, 2);
|
|
419
|
-
s(m);
|
|
420
|
-
var h = V.sibling(m, 2);
|
|
421
|
-
c(h), V.reset(a);
|
|
422
|
-
var g = V.sibling(a, 2);
|
|
423
|
-
u(g), V.template_effect((t) => {
|
|
424
|
-
V.set_class(d, 1, `look-card__bigdate ${e.headline ?? ""} tone-primary m-0`, "svelte-1qztns5"), V.set_text(f, t);
|
|
425
|
-
}, [() => re(r.show)]), V.append(t, n);
|
|
426
|
-
}, Le = (t) => {
|
|
427
|
-
var n = De(), c = V.first_child(n), l = (t) => {
|
|
428
|
-
let n = V.derived(() => ie(r.show));
|
|
429
|
-
var i = Ee(), a = V.child(i), o = V.child(a, !0);
|
|
430
|
-
V.reset(a);
|
|
431
|
-
var s = V.sibling(a, 2), c = V.child(s, !0);
|
|
432
|
-
V.reset(s);
|
|
433
|
-
var l = V.sibling(s, 2), u = V.child(l, !0);
|
|
434
|
-
V.reset(l), V.reset(i), V.template_effect(() => {
|
|
435
|
-
V.set_class(a, 1, `${e.eyebrow ?? ""} tone-brand`, "svelte-1qztns5"), V.set_text(o, V.get(n).weekday), V.set_class(s, 1, `${e.title ?? ""} tone-primary`, "svelte-1qztns5"), V.set_text(c, V.get(n).day), V.set_class(l, 1, `${e.caption ?? ""} tone-secondary`, "svelte-1qztns5"), V.set_text(u, V.get(n).month);
|
|
436
|
-
}), V.append(t, i);
|
|
437
|
-
};
|
|
438
|
-
V.if(c, (e) => {
|
|
439
|
-
r.parts.date && e(l);
|
|
440
|
-
});
|
|
441
|
-
var f = V.sibling(c, 2);
|
|
442
|
-
a(f);
|
|
443
|
-
var p = V.sibling(f, 2), m = V.child(p);
|
|
444
|
-
i(m);
|
|
445
|
-
var h = V.sibling(m, 2);
|
|
446
|
-
o(h, () => U[d()]);
|
|
447
|
-
var g = V.sibling(h, 2);
|
|
448
|
-
s(g), V.reset(p);
|
|
449
|
-
var _ = V.sibling(p, 2);
|
|
450
|
-
u(_), V.append(t, n);
|
|
451
|
-
}, Re = (t) => {
|
|
452
|
-
var n = ke(), l = V.first_child(n), f = (t) => {
|
|
453
|
-
var n = Oe(), r = V.child(n, !0), i = V.sibling(r), a = (t) => {
|
|
454
|
-
var n = xe(), r = V.child(n, !0);
|
|
455
|
-
V.reset(n), V.template_effect(() => {
|
|
456
|
-
V.set_class(n, 1, `look-card__period ${e.label ?? ""} tone-secondary`, "svelte-1qztns5"), V.set_text(r, V.get(H).period);
|
|
457
|
-
}), V.append(t, n);
|
|
458
|
-
};
|
|
459
|
-
V.if(i, (e) => {
|
|
460
|
-
V.get(H).period && e(a);
|
|
461
|
-
}), V.reset(n), V.template_effect(() => {
|
|
462
|
-
V.set_class(n, 1, `look-card__time ${(d() === "S" ? e.title : e.headline) ?? ""} tone-primary m-0`, "svelte-1qztns5"), V.set_text(r, V.get(H).main);
|
|
463
|
-
}), V.append(t, n);
|
|
464
|
-
};
|
|
465
|
-
V.if(l, (e) => {
|
|
466
|
-
V.get(B) && e(f);
|
|
467
|
-
});
|
|
468
|
-
var p = V.sibling(l, 2);
|
|
469
|
-
a(p);
|
|
470
|
-
var m = V.sibling(p, 2), h = V.child(m);
|
|
471
|
-
i(h);
|
|
472
|
-
var g = V.sibling(h, 2);
|
|
473
|
-
o(g, () => U[d()]);
|
|
474
|
-
var _ = V.sibling(g, 2), v = (e) => {
|
|
475
|
-
var t = J(), n = V.child(t, !0);
|
|
476
|
-
V.reset(t), V.template_effect(() => {
|
|
477
|
-
V.set_class(t, 1, `${W[d()] ?? ""} tone-secondary m-0`, "svelte-1qztns5"), V.set_text(n, V.get(w).dateLabel);
|
|
478
|
-
}), V.append(e, t);
|
|
479
|
-
};
|
|
480
|
-
V.if(_, (e) => {
|
|
481
|
-
r.parts.date && V.get(w).dateLabel && e(v);
|
|
482
|
-
});
|
|
483
|
-
var y = V.sibling(_, 2);
|
|
484
|
-
s(y);
|
|
485
|
-
var b = V.sibling(y, 2);
|
|
486
|
-
c(b), V.reset(m);
|
|
487
|
-
var x = V.sibling(m, 2);
|
|
488
|
-
u(x), V.append(t, n);
|
|
489
|
-
}, ze = (t) => {
|
|
490
|
-
var n = Ne(), o = V.first_child(n);
|
|
491
|
-
a(o);
|
|
492
|
-
var s = V.sibling(o, 2);
|
|
493
|
-
i(s);
|
|
494
|
-
var c = V.sibling(s, 2), l = V.child(c), u = (e) => {
|
|
495
|
-
var t = je();
|
|
496
|
-
V.each(t, 21, () => V.get(N), V.index, (e, t) => {
|
|
497
|
-
var n = Ae(), r = V.child(n, !0);
|
|
498
|
-
V.reset(n), V.template_effect(() => V.set_text(r, V.get(t))), V.append(e, n);
|
|
499
|
-
}), V.reset(t), V.append(e, t);
|
|
500
|
-
};
|
|
501
|
-
V.if(l, (e) => {
|
|
502
|
-
V.get(N).length && e(u);
|
|
503
|
-
});
|
|
504
|
-
var d = V.sibling(l, 2), f = V.child(d, !0);
|
|
505
|
-
V.reset(d);
|
|
506
|
-
var p = V.sibling(d, 2), m = (e) => {
|
|
507
|
-
var t = Me(), n = V.child(t, !0);
|
|
508
|
-
V.reset(t), V.template_effect(() => {
|
|
509
|
-
V.set_attribute(t, "href", V.get(A)), V.set_attribute(t, "target", r.target), V.set_attribute(t, "rel", r.target === "_blank" ? "noopener external" : "external"), V.set_attribute(t, "aria-label", `${V.get(D).buttonText ?? ""}: ${V.get(w).title ?? ""}`), V.set_text(n, V.get(D).buttonText);
|
|
510
|
-
}), V.delegated("click", t, G), V.append(e, t);
|
|
511
|
-
}, h = V.derived(() => ue(V.get(D), !1));
|
|
512
|
-
V.if(p, (e) => {
|
|
513
|
-
V.get(h) && e(m);
|
|
514
|
-
}), V.reset(c), V.template_effect(() => {
|
|
515
|
-
V.set_class(c, 1, `look-card__tile-text ${e.caption ?? ""} m-0`, "svelte-1qztns5"), V.set_attribute(d, "href", V.get(A)), V.set_attribute(d, "target", r.target), V.set_attribute(d, "rel", r.target === "_blank" ? "noopener external" : "external"), V.set_attribute(d, "aria-label", V.get(w).ariaLabel), V.set_text(f, V.get(w).title);
|
|
516
|
-
}), V.delegated("click", d, G), V.append(t, n);
|
|
517
|
-
}, X = (t) => {
|
|
518
|
-
var n = Pe(), r = V.first_child(n);
|
|
519
|
-
a(r);
|
|
520
|
-
var l = V.sibling(r, 2), f = V.child(l), p = (e) => {
|
|
521
|
-
i(e);
|
|
522
|
-
};
|
|
523
|
-
V.if(f, (e) => {
|
|
524
|
-
V.get(z) || e(p);
|
|
525
|
-
});
|
|
526
|
-
var m = V.sibling(f, 2), h = (t) => {
|
|
527
|
-
var n = J(), r = V.child(n, !0);
|
|
528
|
-
V.reset(n), V.template_effect(() => {
|
|
529
|
-
V.set_class(n, 1, `look-card__date ${e.eyebrow ?? ""} tone-secondary m-0`, "svelte-1qztns5"), V.set_text(r, V.get(w).dateLabel);
|
|
530
|
-
}), V.append(t, n);
|
|
531
|
-
};
|
|
532
|
-
V.if(m, (e) => {
|
|
533
|
-
V.get(w).dateLabel && e(h);
|
|
534
|
-
});
|
|
535
|
-
var g = V.sibling(m, 2);
|
|
536
|
-
o(g, () => U[d()]);
|
|
537
|
-
var _ = V.sibling(g, 2);
|
|
538
|
-
s(_);
|
|
539
|
-
var v = V.sibling(_, 2);
|
|
540
|
-
c(v), V.reset(l);
|
|
541
|
-
var y = V.sibling(l, 2);
|
|
542
|
-
u(y), V.append(t, n);
|
|
543
|
-
};
|
|
544
|
-
V.if(fe, (e) => {
|
|
545
|
-
f() === "ticket" ? e(Y) : f() === "strip" ? e(Le, 1) : f() === "board" ? e(Re, 2) : f() === "tile" ? e(ze, 3) : e(X, -1);
|
|
546
|
-
}), V.reset(q), V.reset(K), V.template_effect(() => {
|
|
547
|
-
V.set_attribute(K, "data-layout", f()), V.set_attribute(K, "data-size", d()), V.set_attribute(K, "data-dim", V.get(D).dim), V.set_attribute(K, "data-poster", V.get(L)), V.set_attribute(K, "data-time", V.get(B));
|
|
548
|
-
}), V.append(n, K), V.pop();
|
|
549
|
-
}
|
|
550
|
-
V.delegate(["click"]);
|
|
551
|
-
//#endregion
|
|
552
|
-
//#region src/lib/browse-widgets/LookMonth.svelte
|
|
553
|
-
var Le = V.from_html("<div class=\"look-month__agenda-day svelte-2vsog9\"><h3> </h3> <!></div>"), Re = V.from_html("<!> ", 1), ze = V.from_html("<div class=\"look-month__open svelte-2vsog9\"><span><!></span> <!></div>"), X = V.from_html("<p> </p>"), Be = V.from_html("<span><!></span>"), Ve = V.from_html("<p> </p> <!> <!>", 1), He = V.from_html("<div class=\"look-month__cell svelte-2vsog9\"><!></div>"), Ue = V.from_html("<div class=\"look-month svelte-2vsog9\"><div class=\"pt-1.5 pr-1.5\"><!></div> <!> <div class=\"look-month__grid svelte-2vsog9\" role=\"grid\"><!> <!></div> <div class=\"look-month__agenda svelte-2vsog9\"></div></div>"), We = {
|
|
554
|
-
hash: "svelte-2vsog9",
|
|
555
|
-
code: ".look-month.svelte-2vsog9 {display:grid;gap:0.75rem;}.look-month__grid.svelte-2vsog9 {display:grid;grid-template-columns:repeat(7, minmax(0, 1fr));overflow:hidden;border:1px solid hsl(var(--border));border-radius:var(--radius-card);}.look-month__weekday.svelte-2vsog9 {padding:0.5rem;border-bottom:1px solid hsl(var(--border));}.look-month__cell.svelte-2vsog9 {display:grid;gap:0.375rem;align-content:start;min-width:0;min-height:7rem;\n /* Tight enough that \"Show 8:30 PM\" fits a square at tablet width inside\n the look's gutter. */padding:0.25rem;border-right:1px solid hsl(var(--border));border-bottom:1px solid hsl(var(--border));}.look-month__cell.svelte-2vsog9:nth-of-type(7n) {border-right:0;}\n\n /* Days before today and outside the month are quiet: no fill, a muted\n number, past shows faded — the shipped Calendar's past day. */.look-month__day.svelte-2vsog9 {color:hsl(var(--text-secondary));}.look-month__cell[data-past='true'].svelte-2vsog9 .look-month__day:where(.svelte-2vsog9) {color:hsl(var(--text-tertiary));}.look-month__cell[data-past='true'].svelte-2vsog9 .look-card {opacity:0.5;}.look-month__cell[data-today='true'].svelte-2vsog9 .look-month__day:where(.svelte-2vsog9) {color:hsl(var(--brand-primary));}.look-month__agenda.svelte-2vsog9 {display:none;gap:1rem;}.look-month__open.svelte-2vsog9 {display:grid;gap:0.75rem;justify-items:start;}.look-month__open.svelte-2vsog9 > .look-month__agenda-day:where(.svelte-2vsog9) {justify-self:stretch;}.look-month__grid[data-hidden='true'].svelte-2vsog9 {display:none;}.look-month__agenda-day.svelte-2vsog9 {display:grid;gap:0.5rem;}.look-month__agenda-day.svelte-2vsog9 h3[data-today='true']:where(.svelte-2vsog9) {color:hsl(var(--brand-primary));}\n\n /* Too narrow for seven readable squares: the month as a list. */\n @container (width < 40rem) {.look-month__grid.svelte-2vsog9,\n .look-month__open.svelte-2vsog9 {display:none;}.look-month__agenda.svelte-2vsog9 {display:grid;}\n }"
|
|
556
|
-
};
|
|
557
|
-
function Ge(t, c) {
|
|
558
|
-
V.push(c, !0), V.append_styles(t, We);
|
|
559
|
-
let u = V.prop(c, "allIn", 3, !0), d = V.prop(c, "labels", 3, C), f = V.prop(c, "today", 3, !1), p = V.derived(() => c.shows[0]?.timeZone ?? "America/Chicago"), h = V.derived(() => m(c.nowIso, V.get(p))), g = V.state(0), v = V.state(null), y = V.derived(() => {
|
|
560
|
-
let [e, t] = V.get(h).split("-").map(Number);
|
|
561
|
-
return n(e, t - 1 + V.get(g), 1);
|
|
562
|
-
}), b = V.derived(() => V.get(y).getFullYear()), x = V.derived(() => V.get(y).getMonth()), S = V.derived(() => {
|
|
563
|
-
let e = {};
|
|
564
|
-
for (let t of c.shows) (e[t.date] ??= []).push(t);
|
|
565
|
-
return e;
|
|
566
|
-
}), w = V.derived(() => o(V.get(b), V.get(x)).map(({ day: e, inMonth: t }) => {
|
|
567
|
-
let n = r(e);
|
|
568
|
-
return {
|
|
569
|
-
key: n,
|
|
570
|
-
day: e.getDate(),
|
|
571
|
-
inMonth: t,
|
|
572
|
-
isPast: n < V.get(h),
|
|
573
|
-
isToday: n === V.get(h),
|
|
574
|
-
groups: t ? B(V.get(S)[n] ?? []).map((e) => ({
|
|
575
|
-
show: e.event,
|
|
576
|
-
instances: e.instances
|
|
577
|
-
})) : []
|
|
578
|
-
};
|
|
579
|
-
})), E = V.derived(() => V.get(w).filter((e) => e.inMonth && !e.isPast && e.groups.length).slice(0, c.maxDays ?? V.get(w).length)), D = V.derived(() => V.get(w).find((e) => e.key === V.get(v) && e.inMonth && e.groups.length)), k = V.derived(() => s(a()).map((e) => i(e, { weekday: "short" }, c.locale))), A = (e) => ({
|
|
580
|
-
...e,
|
|
581
|
-
date: !1
|
|
582
|
-
}), j = (e) => l(e.startDateTime, e.timeZone, {
|
|
583
|
-
weekday: "long",
|
|
584
|
-
month: "short",
|
|
585
|
-
day: "numeric"
|
|
586
|
-
}, c.locale);
|
|
587
|
-
var M = Ue();
|
|
588
|
-
{
|
|
589
|
-
let t = (t, n = V.noop) => {
|
|
590
|
-
var r = Le(), i = V.child(r), a = V.child(i, !0);
|
|
591
|
-
V.reset(i);
|
|
592
|
-
var o = V.sibling(i, 2);
|
|
593
|
-
V.each(o, 17, () => n().groups, (e) => e.show.eventID, (e, t) => {
|
|
594
|
-
{
|
|
595
|
-
let n = V.derived(() => A(c.parts));
|
|
596
|
-
Y(e, {
|
|
597
|
-
get show() {
|
|
598
|
-
return V.get(t).show;
|
|
599
|
-
},
|
|
600
|
-
get instances() {
|
|
601
|
-
return V.get(t).instances;
|
|
602
|
-
},
|
|
603
|
-
get parts() {
|
|
604
|
-
return V.get(n);
|
|
605
|
-
},
|
|
606
|
-
size: "S",
|
|
607
|
-
layout: "row",
|
|
608
|
-
get allIn() {
|
|
609
|
-
return u();
|
|
610
|
-
},
|
|
611
|
-
get target() {
|
|
612
|
-
return c.target;
|
|
613
|
-
},
|
|
614
|
-
get onopen() {
|
|
615
|
-
return c.onopen;
|
|
616
|
-
},
|
|
617
|
-
get labels() {
|
|
618
|
-
return d();
|
|
619
|
-
},
|
|
620
|
-
get locale() {
|
|
621
|
-
return c.locale;
|
|
622
|
-
}
|
|
623
|
-
});
|
|
624
|
-
}
|
|
625
|
-
}), V.reset(r), V.template_effect((t) => {
|
|
626
|
-
V.set_class(i, 1, `${e.label ?? ""} tone-primary m-0`, "svelte-2vsog9"), V.set_attribute(i, "data-today", n().isToday), V.set_text(a, t);
|
|
627
|
-
}, [() => n().isToday ? d().tonight || "Tonight" : j(n().groups[0].show)]), V.append(t, r);
|
|
628
|
-
};
|
|
629
|
-
var N = V.child(M), ee = V.child(N);
|
|
630
|
-
{
|
|
631
|
-
let e = V.derived(() => V.get(g) <= 0);
|
|
632
|
-
O(ee, {
|
|
633
|
-
get currentYear() {
|
|
634
|
-
return V.get(b);
|
|
635
|
-
},
|
|
636
|
-
get currentMonth() {
|
|
637
|
-
return V.get(x);
|
|
638
|
-
},
|
|
639
|
-
handlePrev: () => (V.set(g, V.get(g) - 1), V.set(v, null)),
|
|
640
|
-
handleNext: () => (V.set(g, V.get(g) + 1), V.set(v, null)),
|
|
641
|
-
handleToday: () => (V.set(g, 0), V.set(v, null)),
|
|
642
|
-
get disablePastNavigation() {
|
|
643
|
-
return V.get(e);
|
|
644
|
-
},
|
|
645
|
-
get labels() {
|
|
646
|
-
return d();
|
|
647
|
-
}
|
|
648
|
-
});
|
|
649
|
-
}
|
|
650
|
-
V.reset(N);
|
|
651
|
-
var P = V.sibling(N, 2), F = (e) => {
|
|
652
|
-
var n = ze(), r = V.child(n), i = V.child(r);
|
|
653
|
-
{
|
|
654
|
-
let e = V.derived(() => d().goBackToCalendar || "Go back to calendar");
|
|
655
|
-
T(i, {
|
|
656
|
-
variant: "ghost",
|
|
657
|
-
size: "xs",
|
|
658
|
-
onclick: () => V.set(v, null),
|
|
659
|
-
get "aria-label"() {
|
|
660
|
-
return V.get(e);
|
|
661
|
-
},
|
|
662
|
-
children: (e, t) => {
|
|
663
|
-
var n = Re(), r = V.first_child(n);
|
|
664
|
-
_(r, { class: "size-4" });
|
|
665
|
-
var i = V.sibling(r);
|
|
666
|
-
V.template_effect(() => V.set_text(i, ` ${(d().goBack || "Go back") ?? ""}`)), V.append(e, n);
|
|
667
|
-
},
|
|
668
|
-
$$slots: { default: !0 }
|
|
669
|
-
});
|
|
670
|
-
}
|
|
671
|
-
V.reset(r);
|
|
672
|
-
var a = V.sibling(r, 2);
|
|
673
|
-
t(a, () => V.get(D)), V.reset(n), V.append(e, n);
|
|
674
|
-
};
|
|
675
|
-
V.if(P, (e) => {
|
|
676
|
-
V.get(D) && e(F);
|
|
677
|
-
});
|
|
678
|
-
var I = V.sibling(P, 2), L = V.child(I);
|
|
679
|
-
V.each(L, 16, () => V.get(k), (e) => e, (t, n) => {
|
|
680
|
-
var r = X(), i = V.child(r, !0);
|
|
681
|
-
V.reset(r), V.template_effect(() => {
|
|
682
|
-
V.set_class(r, 1, `look-month__weekday ${e.eyebrow ?? ""} tone-secondary m-0`, "svelte-2vsog9"), V.set_text(i, n);
|
|
683
|
-
}), V.append(t, r);
|
|
684
|
-
});
|
|
685
|
-
var te = V.sibling(L, 2);
|
|
686
|
-
V.each(te, 17, () => V.get(w), (e) => e.key, (t, n) => {
|
|
687
|
-
var r = He(), i = V.child(r), a = (t) => {
|
|
688
|
-
var r = Ve(), i = V.first_child(r), a = V.child(i, !0);
|
|
689
|
-
V.reset(i);
|
|
690
|
-
var o = V.sibling(i, 2);
|
|
691
|
-
V.each(o, 17, () => V.get(n).groups.slice(0, 2), (e) => e.show.eventID, (e, t) => {
|
|
692
|
-
{
|
|
693
|
-
let n = V.derived(() => A(c.parts));
|
|
694
|
-
Y(e, {
|
|
695
|
-
get show() {
|
|
696
|
-
return V.get(t).show;
|
|
697
|
-
},
|
|
698
|
-
get instances() {
|
|
699
|
-
return V.get(t).instances;
|
|
700
|
-
},
|
|
701
|
-
get parts() {
|
|
702
|
-
return V.get(n);
|
|
703
|
-
},
|
|
704
|
-
size: "S",
|
|
705
|
-
layout: "tile",
|
|
706
|
-
get allIn() {
|
|
707
|
-
return u();
|
|
708
|
-
},
|
|
709
|
-
get target() {
|
|
710
|
-
return c.target;
|
|
711
|
-
},
|
|
712
|
-
get onopen() {
|
|
713
|
-
return c.onopen;
|
|
714
|
-
},
|
|
715
|
-
get labels() {
|
|
716
|
-
return d();
|
|
717
|
-
},
|
|
718
|
-
get locale() {
|
|
719
|
-
return c.locale;
|
|
720
|
-
}
|
|
721
|
-
});
|
|
722
|
-
}
|
|
723
|
-
});
|
|
724
|
-
var s = V.sibling(o, 2), l = (e) => {
|
|
725
|
-
var t = Be(), r = V.child(t);
|
|
726
|
-
{
|
|
727
|
-
let e = V.derived(() => (d().nMore || "{n} more").replace("{n}", String(V.get(n).groups.length - 2)));
|
|
728
|
-
T(r, {
|
|
729
|
-
variant: "ghost",
|
|
730
|
-
size: "xs",
|
|
731
|
-
onclick: () => V.set(v, V.get(n).key, !0),
|
|
732
|
-
get "aria-label"() {
|
|
733
|
-
return V.get(e);
|
|
734
|
-
},
|
|
735
|
-
children: (e, t) => {
|
|
736
|
-
V.next();
|
|
737
|
-
var r = V.text();
|
|
738
|
-
V.template_effect(() => V.set_text(r, `+${V.get(n).groups.length - 2}`)), V.append(e, r);
|
|
739
|
-
},
|
|
740
|
-
$$slots: { default: !0 }
|
|
741
|
-
});
|
|
742
|
-
}
|
|
743
|
-
V.reset(t), V.append(e, t);
|
|
744
|
-
};
|
|
745
|
-
V.if(s, (e) => {
|
|
746
|
-
V.get(n).groups.length > 2 && e(l);
|
|
747
|
-
}), V.template_effect(() => {
|
|
748
|
-
V.set_class(i, 1, `look-month__day ${e.label ?? ""} m-0`, "svelte-2vsog9"), V.set_text(a, V.get(n).day);
|
|
749
|
-
}), V.append(t, r);
|
|
750
|
-
};
|
|
751
|
-
V.if(i, (e) => {
|
|
752
|
-
V.get(n).inMonth && e(a);
|
|
753
|
-
}), V.reset(r), V.template_effect(() => {
|
|
754
|
-
V.set_attribute(r, "data-outside", !V.get(n).inMonth), V.set_attribute(r, "data-past", V.get(n).isPast), V.set_attribute(r, "data-today", V.get(n).isToday);
|
|
755
|
-
}), V.append(t, r);
|
|
756
|
-
}), V.reset(I);
|
|
757
|
-
var R = V.sibling(I, 2);
|
|
758
|
-
V.each(R, 21, () => V.get(E), (e) => e.key, (e, n) => {
|
|
759
|
-
t(e, () => V.get(n));
|
|
760
|
-
}, (t) => {
|
|
761
|
-
var n = X(), r = V.child(n, !0);
|
|
762
|
-
V.reset(n), V.template_effect(() => {
|
|
763
|
-
V.set_class(n, 1, `${e.body ?? ""} tone-secondary m-0`, "svelte-2vsog9"), V.set_text(r, f() ? d().noShowsTonight || "No shows tonight" : d().noUpcomingEvents || "No upcoming events");
|
|
764
|
-
}), V.append(t, n);
|
|
765
|
-
}), V.reset(R), V.reset(M), V.template_effect((e) => {
|
|
766
|
-
V.set_attribute(I, "data-hidden", !!V.get(D)), V.set_attribute(I, "aria-label", e);
|
|
767
|
-
}, [() => i(V.get(y), {
|
|
768
|
-
month: "long",
|
|
769
|
-
year: "numeric"
|
|
770
|
-
}, c.locale)]);
|
|
771
|
-
}
|
|
772
|
-
V.append(t, M), V.pop();
|
|
773
|
-
}
|
|
774
|
-
//#endregion
|
|
775
|
-
//#region src/lib/browse-widgets/looks.ts
|
|
776
|
-
var Z = [
|
|
777
|
-
"poster",
|
|
778
|
-
"date",
|
|
779
|
-
"doors",
|
|
780
|
-
"time",
|
|
781
|
-
"description",
|
|
782
|
-
"performers",
|
|
783
|
-
"price",
|
|
784
|
-
"button"
|
|
785
|
-
], Q = (e) => Object.fromEntries(Z.map((t) => [t, e.includes(t)])), $ = [
|
|
786
|
-
{
|
|
787
|
-
id: "featured",
|
|
788
|
-
name: "Featured",
|
|
789
|
-
structure: "one",
|
|
790
|
-
style: "featured",
|
|
791
|
-
size: "L",
|
|
792
|
-
parts: Q([
|
|
793
|
-
"poster",
|
|
794
|
-
"date",
|
|
795
|
-
"doors",
|
|
796
|
-
"time",
|
|
797
|
-
"description",
|
|
798
|
-
"price",
|
|
799
|
-
"button"
|
|
800
|
-
])
|
|
801
|
-
},
|
|
802
|
-
{
|
|
803
|
-
id: "ticket",
|
|
804
|
-
name: "Ticket card",
|
|
805
|
-
structure: "one",
|
|
806
|
-
style: "ticket",
|
|
807
|
-
size: "L",
|
|
808
|
-
parts: Q([
|
|
809
|
-
"date",
|
|
810
|
-
"doors",
|
|
811
|
-
"time",
|
|
812
|
-
"price",
|
|
813
|
-
"button"
|
|
814
|
-
])
|
|
815
|
-
},
|
|
816
|
-
{
|
|
817
|
-
id: "strip",
|
|
818
|
-
name: "Strip",
|
|
819
|
-
structure: "one",
|
|
820
|
-
style: "strip",
|
|
821
|
-
size: "S",
|
|
822
|
-
parts: Q([
|
|
823
|
-
"poster",
|
|
824
|
-
"date",
|
|
825
|
-
"time",
|
|
826
|
-
"price",
|
|
827
|
-
"button"
|
|
828
|
-
])
|
|
829
|
-
},
|
|
830
|
-
{
|
|
831
|
-
id: "list",
|
|
832
|
-
name: "List",
|
|
833
|
-
structure: "list",
|
|
834
|
-
style: "day",
|
|
835
|
-
size: "M",
|
|
836
|
-
parts: Q([
|
|
837
|
-
"poster",
|
|
838
|
-
"time",
|
|
839
|
-
"price",
|
|
840
|
-
"button"
|
|
841
|
-
])
|
|
842
|
-
},
|
|
843
|
-
{
|
|
844
|
-
id: "board",
|
|
845
|
-
name: "Board",
|
|
846
|
-
structure: "list",
|
|
847
|
-
style: "board",
|
|
848
|
-
size: "M",
|
|
849
|
-
parts: Q([
|
|
850
|
-
"poster",
|
|
851
|
-
"time",
|
|
852
|
-
"performers",
|
|
853
|
-
"price",
|
|
854
|
-
"button"
|
|
855
|
-
])
|
|
856
|
-
},
|
|
857
|
-
{
|
|
858
|
-
id: "grid",
|
|
859
|
-
name: "Grid",
|
|
860
|
-
structure: "grid",
|
|
861
|
-
style: "cards",
|
|
862
|
-
size: "M",
|
|
863
|
-
parts: Q([
|
|
864
|
-
"poster",
|
|
865
|
-
"date",
|
|
866
|
-
"time",
|
|
867
|
-
"price",
|
|
868
|
-
"button"
|
|
869
|
-
])
|
|
870
|
-
},
|
|
871
|
-
{
|
|
872
|
-
id: "posters",
|
|
873
|
-
name: "Poster wall",
|
|
874
|
-
structure: "grid",
|
|
875
|
-
style: "posters",
|
|
876
|
-
size: "S",
|
|
877
|
-
parts: Q([
|
|
878
|
-
"poster",
|
|
879
|
-
"date",
|
|
880
|
-
"price"
|
|
881
|
-
])
|
|
882
|
-
},
|
|
883
|
-
{
|
|
884
|
-
id: "calendar",
|
|
885
|
-
name: "Calendar",
|
|
886
|
-
structure: "calendar",
|
|
887
|
-
style: "month",
|
|
888
|
-
size: "M",
|
|
889
|
-
parts: Q(["poster", "time"])
|
|
890
|
-
}
|
|
891
|
-
];
|
|
892
|
-
function Ke(e) {
|
|
893
|
-
let t = Object.fromEntries(Z.map((e) => [e, { ok: !0 }]));
|
|
894
|
-
if (e === "month") {
|
|
895
|
-
let e = "A day square has no room for it; the show page has it";
|
|
896
|
-
t.date = {
|
|
897
|
-
ok: !1,
|
|
898
|
-
reason: "The month grid already shows the day"
|
|
899
|
-
}, t.description = {
|
|
900
|
-
ok: !1,
|
|
901
|
-
reason: e
|
|
902
|
-
}, t.performers = {
|
|
903
|
-
ok: !1,
|
|
904
|
-
reason: e
|
|
905
|
-
}, t.price = {
|
|
906
|
-
ok: !1,
|
|
907
|
-
reason: e
|
|
908
|
-
}, t.button = {
|
|
909
|
-
ok: !1,
|
|
910
|
-
reason: e
|
|
911
|
-
};
|
|
912
|
-
}
|
|
913
|
-
return e === "day" && (t.date = {
|
|
914
|
-
ok: !1,
|
|
915
|
-
reason: "The list already shows the day beside each group"
|
|
916
|
-
}), e === "ticket" && (t.poster = {
|
|
917
|
-
ok: !1,
|
|
918
|
-
reason: "The ticket card sets the date where the poster would go"
|
|
919
|
-
}, t.date = {
|
|
920
|
-
ok: !1,
|
|
921
|
-
reason: "The ticket card is the date"
|
|
922
|
-
}), e === "strip" && (t.description = {
|
|
923
|
-
ok: !1,
|
|
924
|
-
reason: "A strip is one line"
|
|
925
|
-
}, t.performers = {
|
|
926
|
-
ok: !1,
|
|
927
|
-
reason: "A strip is one line"
|
|
928
|
-
}), t;
|
|
929
|
-
}
|
|
930
|
-
function qe(e, t) {
|
|
931
|
-
let n = Ke(e);
|
|
932
|
-
return Object.fromEntries(Z.map((e) => [e, t[e] && n[e].ok]));
|
|
933
|
-
}
|
|
934
|
-
function Je(e, t = x()) {
|
|
935
|
-
return e.filter((e) => e.date >= m(t, e.timeZone)).sort((e, t) => e.startDateTime.localeCompare(t.startDateTime));
|
|
936
|
-
}
|
|
937
|
-
var Ye = (e) => `look-${e.id}`;
|
|
938
|
-
$.map(Ye);
|
|
939
|
-
function Xe(e) {
|
|
940
|
-
let t = String(e ?? "").toLowerCase();
|
|
941
|
-
return t === "tonight" ? $.find((e) => e.id === "board") : $.find((e) => Ye(e) === t);
|
|
942
|
-
}
|
|
943
|
-
var Ze = {
|
|
944
|
-
poster: "poster",
|
|
945
|
-
date: "date",
|
|
946
|
-
doors: "doorsTime",
|
|
947
|
-
time: "showTime",
|
|
948
|
-
description: "description",
|
|
949
|
-
performers: "performers",
|
|
950
|
-
price: "price",
|
|
951
|
-
button: "button"
|
|
952
|
-
}, Qe = /* @__PURE__ */ new Set([
|
|
953
|
-
"poster",
|
|
954
|
-
"date",
|
|
955
|
-
"description"
|
|
956
|
-
]);
|
|
957
|
-
function $e(e, t) {
|
|
958
|
-
let n = t ?? {};
|
|
959
|
-
return Object.fromEntries(Z.map((t) => {
|
|
960
|
-
let r = n[Ze[t]];
|
|
961
|
-
return r === !1 ? [t, !1] : r === !0 && !Qe.has(t) ? [t, !0] : [t, e.parts[t]];
|
|
962
|
-
}));
|
|
963
|
-
}
|
|
964
|
-
var et = /* @__PURE__ */ new Set([
|
|
965
|
-
"day",
|
|
966
|
-
"board",
|
|
967
|
-
"cards",
|
|
968
|
-
"posters"
|
|
969
|
-
]);
|
|
970
|
-
function tt(e, t) {
|
|
971
|
-
if (et.has(e.style)) return t != null && t > 0 ? t : e.style === "day" ? 20 : void 0;
|
|
972
|
-
}
|
|
973
|
-
//#endregion
|
|
974
|
-
//#region src/lib/browse-widgets/LookWidget.svelte
|
|
975
|
-
var nt = V.from_html("<div class=\"look-widget__one svelte-1uisg1j\"><!></div>"), rt = V.from_html("<h3> </h3>"), it = V.from_html("<li><!></li>"), at = V.from_html("<div class=\"look-widget__board-day svelte-1uisg1j\"><!> <h3> <span class=\"tone-secondary svelte-1uisg1j\"> </span></h3> <ul class=\"look-widget__stack svelte-1uisg1j\"></ul></div>"), ot = V.from_html("<div class=\"look-widget__board svelte-1uisg1j\"></div>"), st = V.from_html("<div class=\"look-widget__day svelte-1uisg1j\"><p class=\"look-widget__rail m-0 svelte-1uisg1j\"><span> </span> <span> </span> <span> </span></p> <ul class=\"look-widget__stack svelte-1uisg1j\"></ul></div>"), ct = V.from_html("<div class=\"look-widget__list svelte-1uisg1j\"></div>"), lt = V.from_html("<ul class=\"look-widget__grid svelte-1uisg1j\"></ul>"), ut = V.from_html("<section class=\"look-widget px-4 svelte-1uisg1j\"><!></section>"), dt = {
|
|
976
|
-
hash: "svelte-1uisg1j",
|
|
977
|
-
code: ".look-widget.svelte-1uisg1j {container-type:inline-size;box-sizing:border-box;width:100%;}.look-widget.svelte-1uisg1j ul:where(.svelte-1uisg1j) {margin:0;padding:0;list-style:none;}.look-widget__stack.svelte-1uisg1j {display:grid;gap:0.5rem;}\n\n /* One show: an L card stays readable on a wide page. */.look-widget__one.svelte-1uisg1j {max-width:48rem;}.look-widget[data-look='strip'].svelte-1uisg1j .look-widget__one:where(.svelte-1uisg1j) {max-width:none;}\n\n /* List: the day rail beside each day's cards, above them when narrow. */.look-widget__list.svelte-1uisg1j {display:grid;}.look-widget__day.svelte-1uisg1j {display:grid;grid-template-columns:3.5rem minmax(0, 1fr);gap:0.75rem;padding:0.875rem 0;border-top:1px solid hsl(var(--border));}.look-widget__day.svelte-1uisg1j:first-child {border-top:0;}.look-widget__rail.svelte-1uisg1j {display:flex;flex-direction:column;align-items:center;padding-top:0.25rem;line-height:1.1;}.look-widget__rail-day.svelte-1uisg1j {color:hsl(var(--text-primary));}.look-widget__rail[data-today='true'].svelte-1uisg1j .look-widget__rail-day:where(.svelte-1uisg1j) {color:hsl(var(--brand-primary));}\n\n @container (width < 22rem) {.look-widget__day.svelte-1uisg1j {grid-template-columns:minmax(0, 1fr);gap:0.5rem;}.look-widget__rail.svelte-1uisg1j {flex-direction:row;gap:0.375rem;align-items:baseline;}\n }\n\n /* Board: the first day leads, the rest follow under \"Coming up\". */.look-widget__board.svelte-1uisg1j {display:grid;gap:1.25rem;}.look-widget__board-day.svelte-1uisg1j {display:grid;gap:0.5rem;}.look-widget__day-title.svelte-1uisg1j span:where(.svelte-1uisg1j) {margin-left:0.375rem;font-weight:500;}.look-widget__coming.svelte-1uisg1j {margin-top:0.5rem;}\n\n /* Grid: as many columns as fit at the card size. */.look-widget__grid.svelte-1uisg1j {display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--look-col), 1fr));gap:0.875rem;}.look-widget[data-size='S'].svelte-1uisg1j .look-widget__grid:where(.svelte-1uisg1j) {--look-col: 10rem;}.look-widget[data-size='M'].svelte-1uisg1j .look-widget__grid:where(.svelte-1uisg1j) {--look-col: 14rem;}.look-widget[data-size='L'].svelte-1uisg1j .look-widget__grid:where(.svelte-1uisg1j) {--look-col: 19rem;}\n\n /* Phone-width: one card across, a poster wall keeps two. */\n @container (width < 22rem) {.look-widget[data-size].svelte-1uisg1j .look-widget__grid:where(.svelte-1uisg1j) {--look-col: 100%;}.look-widget[data-size='S'].svelte-1uisg1j .look-widget__grid:where(.svelte-1uisg1j) {--look-col: 8rem;}\n\n /* A button's label never wraps, and an 8rem card is narrower than\n \"Reserve a spot\": with buttons on, two across only at 10rem each. */.look-widget[data-size='S'][data-button='true'].svelte-1uisg1j .look-widget__grid:where(.svelte-1uisg1j) {--look-col: 10rem;}\n }"
|
|
978
|
-
};
|
|
979
|
-
function ft(t, n) {
|
|
980
|
-
V.push(n, !0), V.append_styles(t, dt);
|
|
981
|
-
let r = V.prop(n, "size", 3, "M"), i = V.prop(n, "today", 3, !1), a = V.prop(n, "allIn", 3, !0), o = V.prop(n, "labels", 3, C), s = V.prop(n, "nowIso", 19, x), c = V.derived(() => qe(n.lookStyle, n.parts)), u = V.derived(() => i() ? Je(n.shows, s()).filter((e) => e.date === m(s(), e.timeZone)) : Je(n.shows, s())), d = V.derived(() => {
|
|
982
|
-
let e = B(V.get(u)).map((e) => ({
|
|
983
|
-
show: e.event,
|
|
984
|
-
instances: e.instances
|
|
985
|
-
}));
|
|
986
|
-
return n.maxItems ? e.slice(0, n.maxItems) : e;
|
|
987
|
-
});
|
|
988
|
-
function f(e) {
|
|
989
|
-
let t = [];
|
|
990
|
-
for (let n of e) {
|
|
991
|
-
let e = t.at(-1);
|
|
992
|
-
e && e.date === n.show.date ? e.items.push(n) : t.push({
|
|
993
|
-
date: n.show.date,
|
|
994
|
-
items: [n]
|
|
995
|
-
});
|
|
996
|
-
}
|
|
997
|
-
return t;
|
|
998
|
-
}
|
|
999
|
-
let p = V.derived(() => f((n.maxItems ? V.get(u).slice(0, n.maxItems) : V.get(u)).map((e) => ({
|
|
1000
|
-
show: e,
|
|
1001
|
-
instances: [e]
|
|
1002
|
-
})))), h = (e) => ({
|
|
1003
|
-
weekday: l(e.startDateTime, e.timeZone, { weekday: "short" }, n.locale),
|
|
1004
|
-
day: l(e.startDateTime, e.timeZone, { day: "numeric" }, n.locale),
|
|
1005
|
-
month: l(e.startDateTime, e.timeZone, { month: "short" }, n.locale)
|
|
1006
|
-
}), g = (e) => w(e.startDateTime, e.timeZone ?? "America/Chicago"), _ = (e) => g(e) ? o().tonight || "Tonight" : l(e.startDateTime, e.timeZone, { weekday: "long" }, n.locale), v = (e) => l(e.startDateTime, e.timeZone, {
|
|
1007
|
-
month: "short",
|
|
1008
|
-
day: "numeric"
|
|
1009
|
-
}, n.locale);
|
|
1010
|
-
var y = ut(), b = V.child(y), S = (e) => {
|
|
1011
|
-
Ge(e, {
|
|
1012
|
-
get shows() {
|
|
1013
|
-
return n.shows;
|
|
1014
|
-
},
|
|
1015
|
-
get parts() {
|
|
1016
|
-
return V.get(c);
|
|
1017
|
-
},
|
|
1018
|
-
get allIn() {
|
|
1019
|
-
return a();
|
|
1020
|
-
},
|
|
1021
|
-
get target() {
|
|
1022
|
-
return n.target;
|
|
1023
|
-
},
|
|
1024
|
-
get onopen() {
|
|
1025
|
-
return n.onopen;
|
|
1026
|
-
},
|
|
1027
|
-
get labels() {
|
|
1028
|
-
return o();
|
|
1029
|
-
},
|
|
1030
|
-
get locale() {
|
|
1031
|
-
return n.locale;
|
|
1032
|
-
},
|
|
1033
|
-
get nowIso() {
|
|
1034
|
-
return s();
|
|
1035
|
-
},
|
|
1036
|
-
get today() {
|
|
1037
|
-
return i();
|
|
1038
|
-
},
|
|
1039
|
-
get maxDays() {
|
|
1040
|
-
return n.maxItems;
|
|
1041
|
-
}
|
|
1042
|
-
});
|
|
1043
|
-
}, T = (e) => {
|
|
1044
|
-
{
|
|
1045
|
-
let t = V.derived(() => i() ? o().noShowsTonight || "No shows tonight" : o().noUpcomingEvents || "No upcoming events");
|
|
1046
|
-
j(e, { get message() {
|
|
1047
|
-
return V.get(t);
|
|
1048
|
-
} });
|
|
1049
|
-
}
|
|
1050
|
-
}, E = (e) => {
|
|
1051
|
-
let t = V.derived(() => V.get(d)[0]);
|
|
1052
|
-
var i = nt(), s = V.child(i);
|
|
1053
|
-
{
|
|
1054
|
-
let e = V.derived(() => n.lookStyle === "ticket" ? "ticket" : n.lookStyle === "strip" ? "strip" : "stack");
|
|
1055
|
-
Y(s, {
|
|
1056
|
-
get show() {
|
|
1057
|
-
return V.get(t).show;
|
|
1058
|
-
},
|
|
1059
|
-
get instances() {
|
|
1060
|
-
return V.get(t).instances;
|
|
1061
|
-
},
|
|
1062
|
-
get parts() {
|
|
1063
|
-
return V.get(c);
|
|
1064
|
-
},
|
|
1065
|
-
get size() {
|
|
1066
|
-
return r();
|
|
1067
|
-
},
|
|
1068
|
-
get layout() {
|
|
1069
|
-
return V.get(e);
|
|
1070
|
-
},
|
|
1071
|
-
get allIn() {
|
|
1072
|
-
return a();
|
|
1073
|
-
},
|
|
1074
|
-
get target() {
|
|
1075
|
-
return n.target;
|
|
1076
|
-
},
|
|
1077
|
-
get onopen() {
|
|
1078
|
-
return n.onopen;
|
|
1079
|
-
},
|
|
1080
|
-
get labels() {
|
|
1081
|
-
return o();
|
|
1082
|
-
},
|
|
1083
|
-
get locale() {
|
|
1084
|
-
return n.locale;
|
|
1085
|
-
}
|
|
1086
|
-
});
|
|
1087
|
-
}
|
|
1088
|
-
V.reset(i), V.append(e, i);
|
|
1089
|
-
}, D = (t) => {
|
|
1090
|
-
var i = ot();
|
|
1091
|
-
V.each(i, 23, () => V.get(p), (e) => e.date, (t, i, s) => {
|
|
1092
|
-
var l = at(), u = V.child(l), d = (t) => {
|
|
1093
|
-
var n = rt(), r = V.child(n, !0);
|
|
1094
|
-
V.reset(n), V.template_effect(() => {
|
|
1095
|
-
V.set_class(n, 1, `look-widget__coming ${e.eyebrow ?? ""} tone-secondary m-0`, "svelte-1uisg1j"), V.set_text(r, o().comingUp || "Coming up");
|
|
1096
|
-
}), V.append(t, n);
|
|
1097
|
-
};
|
|
1098
|
-
V.if(u, (e) => {
|
|
1099
|
-
V.get(s) === 1 && e(d);
|
|
1100
|
-
});
|
|
1101
|
-
var f = V.sibling(u, 2), p = V.child(f), m = V.sibling(p), h = V.child(m, !0);
|
|
1102
|
-
V.reset(m), V.reset(f);
|
|
1103
|
-
var g = V.sibling(f, 2);
|
|
1104
|
-
V.each(g, 21, () => V.get(i).items, (e) => e.show.eventID, (e, t) => {
|
|
1105
|
-
var i = it(), l = V.child(i);
|
|
1106
|
-
{
|
|
1107
|
-
let e = V.derived(() => V.get(s) === 0 ? V.get(c) : {
|
|
1108
|
-
...V.get(c),
|
|
1109
|
-
poster: !1,
|
|
1110
|
-
description: !1,
|
|
1111
|
-
performers: !1
|
|
1112
|
-
}), i = V.derived(() => V.get(s) === 0 ? r() : "S");
|
|
1113
|
-
Y(l, {
|
|
1114
|
-
get show() {
|
|
1115
|
-
return V.get(t).show;
|
|
1116
|
-
},
|
|
1117
|
-
get parts() {
|
|
1118
|
-
return V.get(e);
|
|
1119
|
-
},
|
|
1120
|
-
get size() {
|
|
1121
|
-
return V.get(i);
|
|
1122
|
-
},
|
|
1123
|
-
layout: "board",
|
|
1124
|
-
get allIn() {
|
|
1125
|
-
return a();
|
|
1126
|
-
},
|
|
1127
|
-
get target() {
|
|
1128
|
-
return n.target;
|
|
1129
|
-
},
|
|
1130
|
-
get onopen() {
|
|
1131
|
-
return n.onopen;
|
|
1132
|
-
},
|
|
1133
|
-
get labels() {
|
|
1134
|
-
return o();
|
|
1135
|
-
},
|
|
1136
|
-
get locale() {
|
|
1137
|
-
return n.locale;
|
|
1138
|
-
}
|
|
1139
|
-
});
|
|
1140
|
-
}
|
|
1141
|
-
V.reset(i), V.append(e, i);
|
|
1142
|
-
}), V.reset(g), V.reset(l), V.template_effect((t, n) => {
|
|
1143
|
-
V.set_attribute(l, "data-lead", V.get(s) === 0), V.set_class(f, 1, `look-widget__day-title ${(V.get(s) === 0 ? e.heading : e.label) ?? ""} tone-primary m-0`, "svelte-1uisg1j"), V.set_text(p, `${t ?? ""} `), V.set_text(h, n);
|
|
1144
|
-
}, [() => _(V.get(i).items[0].show), () => v(V.get(i).items[0].show)]), V.append(t, l);
|
|
1145
|
-
}), V.reset(i), V.append(t, i);
|
|
1146
|
-
}, O = (t) => {
|
|
1147
|
-
var i = ct();
|
|
1148
|
-
V.each(i, 21, () => f(V.get(d)), (e) => e.date, (t, i) => {
|
|
1149
|
-
let s = V.derived(() => h(V.get(i).items[0].show));
|
|
1150
|
-
var l = st(), u = V.child(l), d = V.child(u), f = V.child(d, !0);
|
|
1151
|
-
V.reset(d);
|
|
1152
|
-
var p = V.sibling(d, 2), m = V.child(p, !0);
|
|
1153
|
-
V.reset(p);
|
|
1154
|
-
var _ = V.sibling(p, 2), v = V.child(_, !0);
|
|
1155
|
-
V.reset(_), V.reset(u);
|
|
1156
|
-
var y = V.sibling(u, 2);
|
|
1157
|
-
V.each(y, 21, () => V.get(i).items, (e) => e.show.eventID, (e, t) => {
|
|
1158
|
-
var i = it();
|
|
1159
|
-
Y(V.child(i), {
|
|
1160
|
-
get show() {
|
|
1161
|
-
return V.get(t).show;
|
|
1162
|
-
},
|
|
1163
|
-
get instances() {
|
|
1164
|
-
return V.get(t).instances;
|
|
1165
|
-
},
|
|
1166
|
-
get parts() {
|
|
1167
|
-
return V.get(c);
|
|
1168
|
-
},
|
|
1169
|
-
get size() {
|
|
1170
|
-
return r();
|
|
1171
|
-
},
|
|
1172
|
-
layout: "row",
|
|
1173
|
-
get allIn() {
|
|
1174
|
-
return a();
|
|
1175
|
-
},
|
|
1176
|
-
get target() {
|
|
1177
|
-
return n.target;
|
|
1178
|
-
},
|
|
1179
|
-
get onopen() {
|
|
1180
|
-
return n.onopen;
|
|
1181
|
-
},
|
|
1182
|
-
get labels() {
|
|
1183
|
-
return o();
|
|
1184
|
-
},
|
|
1185
|
-
get locale() {
|
|
1186
|
-
return n.locale;
|
|
1187
|
-
}
|
|
1188
|
-
}), V.reset(i), V.append(e, i);
|
|
1189
|
-
}), V.reset(y), V.reset(l), V.template_effect((t) => {
|
|
1190
|
-
V.set_attribute(u, "data-today", t), V.set_class(d, 1, `${e.eyebrow ?? ""} tone-secondary`, "svelte-1uisg1j"), V.set_text(f, V.get(s).weekday), V.set_class(p, 1, `look-widget__rail-day ${e.title ?? ""}`, "svelte-1uisg1j"), V.set_text(m, V.get(s).day), V.set_class(_, 1, `${e.caption ?? ""} tone-secondary`, "svelte-1uisg1j"), V.set_text(v, V.get(s).month);
|
|
1191
|
-
}, [() => g(V.get(i).items[0].show)]), V.append(t, l);
|
|
1192
|
-
}), V.reset(i), V.append(t, i);
|
|
1193
|
-
}, k = (e) => {
|
|
1194
|
-
var t = lt();
|
|
1195
|
-
V.each(t, 21, () => V.get(d), (e) => e.show.eventID, (e, t) => {
|
|
1196
|
-
var i = it(), s = V.child(i);
|
|
1197
|
-
{
|
|
1198
|
-
let e = V.derived(() => n.lookStyle !== "posters");
|
|
1199
|
-
Y(s, {
|
|
1200
|
-
get show() {
|
|
1201
|
-
return V.get(t).show;
|
|
1202
|
-
},
|
|
1203
|
-
get instances() {
|
|
1204
|
-
return V.get(t).instances;
|
|
1205
|
-
},
|
|
1206
|
-
get parts() {
|
|
1207
|
-
return V.get(c);
|
|
1208
|
-
},
|
|
1209
|
-
get size() {
|
|
1210
|
-
return r();
|
|
1211
|
-
},
|
|
1212
|
-
layout: "stack",
|
|
1213
|
-
get badgeOnPoster() {
|
|
1214
|
-
return V.get(e);
|
|
1215
|
-
},
|
|
1216
|
-
get allIn() {
|
|
1217
|
-
return a();
|
|
1218
|
-
},
|
|
1219
|
-
get target() {
|
|
1220
|
-
return n.target;
|
|
1221
|
-
},
|
|
1222
|
-
get onopen() {
|
|
1223
|
-
return n.onopen;
|
|
1224
|
-
},
|
|
1225
|
-
get labels() {
|
|
1226
|
-
return o();
|
|
1227
|
-
},
|
|
1228
|
-
get locale() {
|
|
1229
|
-
return n.locale;
|
|
1230
|
-
}
|
|
1231
|
-
});
|
|
1232
|
-
}
|
|
1233
|
-
V.reset(i), V.append(e, i);
|
|
1234
|
-
}), V.reset(t), V.append(e, t);
|
|
1235
|
-
};
|
|
1236
|
-
V.if(b, (e) => {
|
|
1237
|
-
n.structure === "calendar" ? e(S) : V.get(d).length === 0 ? e(T, 1) : n.structure === "one" ? e(E, 2) : n.structure === "list" && n.lookStyle === "board" ? e(D, 3) : n.structure === "list" ? e(O, 4) : n.structure === "grid" && e(k, 5);
|
|
1238
|
-
}), V.reset(y), V.template_effect(() => {
|
|
1239
|
-
V.set_attribute(y, "data-structure", n.structure), V.set_attribute(y, "data-look", n.lookStyle), V.set_attribute(y, "data-size", r()), V.set_attribute(y, "data-button", V.get(c).button);
|
|
1240
|
-
}), V.append(t, y), V.pop();
|
|
1241
|
-
}
|
|
1242
|
-
//#endregion
|
|
1243
|
-
//#region src/lib/browse-widgets/LookView.svelte
|
|
1244
|
-
var pt = /* @__PURE__ */ new Set([
|
|
1245
|
-
"$$slots",
|
|
1246
|
-
"$$events",
|
|
1247
|
-
"$$legacy",
|
|
1248
|
-
"view",
|
|
1249
|
-
"feed",
|
|
1250
|
-
"eventDetails",
|
|
1251
|
-
"maxItems"
|
|
1252
|
-
]);
|
|
1253
|
-
function mt(e, t) {
|
|
1254
|
-
V.push(t, !0);
|
|
1255
|
-
let n = V.rest_props(t, pt), r = V.derived(() => Xe(t.view)), i = V.derived(() => V.get(r) ? fe(t.feed) : []);
|
|
1256
|
-
var a = V.comment(), o = V.first_child(a), s = (e) => {
|
|
1257
|
-
{
|
|
1258
|
-
let a = V.derived(() => $e(V.get(r), t.eventDetails)), o = V.derived(() => tt(V.get(r), t.maxItems));
|
|
1259
|
-
ft(e, V.spread_props({
|
|
1260
|
-
get shows() {
|
|
1261
|
-
return V.get(i);
|
|
1262
|
-
},
|
|
1263
|
-
get structure() {
|
|
1264
|
-
return V.get(r).structure;
|
|
1265
|
-
},
|
|
1266
|
-
get lookStyle() {
|
|
1267
|
-
return V.get(r).style;
|
|
1268
|
-
},
|
|
1269
|
-
get parts() {
|
|
1270
|
-
return V.get(a);
|
|
1271
|
-
},
|
|
1272
|
-
get maxItems() {
|
|
1273
|
-
return V.get(o);
|
|
1274
|
-
}
|
|
1275
|
-
}, () => n));
|
|
1276
|
-
}
|
|
1277
|
-
};
|
|
1278
|
-
V.if(o, (e) => {
|
|
1279
|
-
V.get(r) && e(s);
|
|
1280
|
-
}), V.append(e, a), V.pop();
|
|
1281
|
-
}
|
|
1282
|
-
//#endregion
|
|
1283
|
-
//#region src/lib/browse-widgets/look-island.svelte.js
|
|
1284
|
-
function ht(e, t, n = {}) {
|
|
1285
|
-
n.siteOrigin && E() !== n.siteOrigin && D(n.siteOrigin);
|
|
1286
|
-
let r = V.state(t), i = {};
|
|
1287
|
-
for (let e of Object.keys(t)) Object.defineProperty(i, e, {
|
|
1288
|
-
enumerable: !0,
|
|
1289
|
-
get: () => V.get(r)[e]
|
|
1290
|
-
});
|
|
1291
|
-
let a = H(mt, {
|
|
1292
|
-
target: e,
|
|
1293
|
-
props: i
|
|
1294
|
-
});
|
|
1295
|
-
return {
|
|
1296
|
-
update(e) {
|
|
1297
|
-
V.set(r, e);
|
|
1298
|
-
},
|
|
1299
|
-
destroy() {
|
|
1300
|
-
ae(a);
|
|
1301
|
-
}
|
|
1302
|
-
};
|
|
1303
|
-
}
|
|
1304
|
-
//#endregion
|
|
1305
|
-
export { ht as mountLook };
|