@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
|
@@ -0,0 +1,488 @@
|
|
|
1
|
+
import { n as e, t } from "./createErrorGate.svelte-DUXI6Yor.js";
|
|
2
|
+
import { n } from "./iconWeight-BRXEDAh2.js";
|
|
3
|
+
import { t as r } from "./ChevronDownIcon-Bkts84qA.js";
|
|
4
|
+
import { i } from "./typography-CKwYSv07.js";
|
|
5
|
+
import { D as a, G as o, f as s, m as c, r as l, y as u } from "./field-rules-CKFFB16Q.js";
|
|
6
|
+
import { t as d } from "./Badge-CmYqIClC.js";
|
|
7
|
+
import { t as f } from "./Button-B_gbGd63.js";
|
|
8
|
+
import { t as p } from "./Spinner-Bj4dr9kO.js";
|
|
9
|
+
import { t as m } from "./foundryRuntime-DKyfdkUY.js";
|
|
10
|
+
import { S as h, _ as g, b as _, f as ee, h as v, i as y, m as b, p as te, r as ne, t as re } from "./CalendarFoundryView-DbxZNmY7.js";
|
|
11
|
+
import "svelte/internal/disclose-version";
|
|
12
|
+
import * as x from "svelte/internal/client";
|
|
13
|
+
import { SvelteSet as ie } from "svelte/reactivity";
|
|
14
|
+
import { tick as ae, untrack as oe } from "svelte";
|
|
15
|
+
// node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/TrashIcon.svelte
|
|
16
|
+
var S = x.from_svg("<path d=\"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z\"></path>"), C = x.from_svg("<line x1=\"216\" y1=\"56\" x2=\"40\" y2=\"56\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></line><line x1=\"104\" y1=\"104\" x2=\"104\" y2=\"168\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></line><line x1=\"152\" y1=\"104\" x2=\"152\" y2=\"168\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></line><path d=\"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></path><path d=\"M168,56V40a16,16,0,0,0-16-16H104A16,16,0,0,0,88,40V56\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></path>", 1), w = x.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
|
|
17
|
+
function T(e, t) {
|
|
18
|
+
x.push(t, !0);
|
|
19
|
+
let r = x.prop(t, "size", 3, "24"), i = x.prop(t, "color", 3, "currentColor"), a = x.prop(t, "class", 3, ""), o = n(), s = x.derived(() => t.weight ?? o?.weight ?? "regular");
|
|
20
|
+
var c = w();
|
|
21
|
+
let l;
|
|
22
|
+
var u = x.child(c), d = (e) => {
|
|
23
|
+
var t = S();
|
|
24
|
+
x.append(e, t);
|
|
25
|
+
}, f = (e) => {
|
|
26
|
+
var t = C();
|
|
27
|
+
x.next(4), x.append(e, t);
|
|
28
|
+
};
|
|
29
|
+
x.if(u, (e) => {
|
|
30
|
+
x.get(s) === "fill" ? e(d) : e(f, -1);
|
|
31
|
+
}), x.reset(c), x.template_effect(() => {
|
|
32
|
+
x.set_class(c, 0, x.clsx(a())), x.set_attribute(c, "width", r()), x.set_attribute(c, "height", r()), l = x.set_style(c, "", l, { color: i() === "currentColor" ? void 0 : i() });
|
|
33
|
+
}), x.append(e, c), x.pop();
|
|
34
|
+
}
|
|
35
|
+
// node_modules/@getmicdrop/svelte-components/dist/foundry/blocks/fields/repeating-field.svelte
|
|
36
|
+
var E = x.from_html("<span> </span>"), se = x.from_html("<div class=\"flex items-center gap-3\"><button type=\"button\" class=\"flex min-w-0 flex-1 items-center gap-2 text-left\"><!> <!> <!></button> <!></div>"), ce = x.from_html("<!> <!> <!>", 1), le = x.from_html("<div></div>"), ue = x.from_html("<div><!> <!> <!></div>"), de = x.from_html("<div class=\"max-w-md\"><!> <!></div>"), fe = x.from_html("<p> </p>"), pe = x.from_html("<div class=\"flex items-center gap-3\"><!> <!></div>"), me = x.from_html("<div><!> <!></div> <!>", 1);
|
|
37
|
+
function D(n, S) {
|
|
38
|
+
x.push(S, !0);
|
|
39
|
+
let C = y(), w = m(), D = w.i18n, O = x.derived(() => S.field.repeating), k = x.derived(() => x.get(O)?.fields ?? []), A = x.derived(() => a(S.field, S.values[S.field.key])), j = x.derived(() => S.disabled === !0), he = x.derived(() => new Set(x.get(O)?.busyRows)), M = x.derived(() => x.get(O)?.addBySelection), N = x.derived(() => S.testId ? `${S.testId}.add` : void 0), P = x.derived(() => new Set(x.get(M) ? x.get(A).map((e) => e[x.get(M).field]).filter((e) => typeof e == "string" && e !== "") : [])), F = x.derived(() => (x.get(M)?.options ?? []).filter((e) => !x.get(P).has(e.value))), ge = x.derived(() => new Map((x.get(M)?.options ?? []).map((e) => [e.value, e.label]))), I = x.derived(() => x.get(O)?.collapsibleRows), L = new ie(), _e = (e) => !x.get(I) || L.has(e);
|
|
40
|
+
function ve(e) {
|
|
41
|
+
L.has(e) ? L.delete(e) : L.add(e);
|
|
42
|
+
}
|
|
43
|
+
function ye(e) {
|
|
44
|
+
let t = x.get(I)?.summary.titleField;
|
|
45
|
+
if (!t) return "";
|
|
46
|
+
let n = e[t];
|
|
47
|
+
return x.get(M) && t === x.get(M).field && typeof n == "string" ? x.get(ge).get(n) ?? n : typeof n == "string" || typeof n == "number" ? String(n) : "";
|
|
48
|
+
}
|
|
49
|
+
function R(e) {
|
|
50
|
+
let t = x.get(I)?.summary;
|
|
51
|
+
if (!t) return "";
|
|
52
|
+
let n = t.summaryRef;
|
|
53
|
+
if (n && w.rowSummary) try {
|
|
54
|
+
let t = w.rowSummary.summarize({
|
|
55
|
+
reference: n,
|
|
56
|
+
row: e
|
|
57
|
+
});
|
|
58
|
+
if (t) return t;
|
|
59
|
+
} catch {}
|
|
60
|
+
return t.fallback ?? "";
|
|
61
|
+
}
|
|
62
|
+
let z = x.state(-1), B = x.derived(() => typeof x.get(O)?.maxRows == "number" && x.get(A).length >= x.get(O).maxRows), V = x.derived(() => typeof x.get(O)?.minRows == "number" && x.get(A).length <= x.get(O).minRows);
|
|
63
|
+
function H(e) {
|
|
64
|
+
S.set(S.field.key, l(e));
|
|
65
|
+
}
|
|
66
|
+
function be() {
|
|
67
|
+
x.get(j) || x.get(B) || U({});
|
|
68
|
+
}
|
|
69
|
+
function U(e) {
|
|
70
|
+
if (x.get(j) || x.get(B)) return;
|
|
71
|
+
let t = x.get(A).length;
|
|
72
|
+
Q(0), Z = [...Z, we++], H([...x.get(A), e]), x.get(I)?.expandNew && L.add(t);
|
|
73
|
+
}
|
|
74
|
+
function xe(e) {
|
|
75
|
+
x.get(j) || x.get(B) || !x.get(M) || !e || x.get(P).has(e) || U({ [x.get(M).field]: e });
|
|
76
|
+
}
|
|
77
|
+
function W(e) {
|
|
78
|
+
if (x.get(j) || x.get(V)) return;
|
|
79
|
+
let t = x.get(A);
|
|
80
|
+
if (e < 0 || e >= t.length) return;
|
|
81
|
+
let n = x.get(O)?.removeIntent;
|
|
82
|
+
if (n) {
|
|
83
|
+
if (!S.action) return;
|
|
84
|
+
let r = t[e]?.[n.keyField];
|
|
85
|
+
S.action(S.field.key, {
|
|
86
|
+
intent: n.intent,
|
|
87
|
+
label: x.get(O)?.removeLabel ?? "Remove",
|
|
88
|
+
target: { id: String(r ?? "") }
|
|
89
|
+
});
|
|
90
|
+
} else Q(0), Z = [...Z.slice(0, e), ...Z.slice(e + 1)], H([...t.slice(0, e), ...t.slice(e + 1)]);
|
|
91
|
+
}
|
|
92
|
+
function G(e) {
|
|
93
|
+
x.get(O)?.removeConfirm ? x.set(z, e, !0) : W(e);
|
|
94
|
+
}
|
|
95
|
+
function Se(e, t, n) {
|
|
96
|
+
let r = x.get(A);
|
|
97
|
+
if (e < 0 || e >= r.length) return;
|
|
98
|
+
let i = `${S.field.key}.${e}.`, a = t.startsWith(i) ? t.slice(i.length) : t;
|
|
99
|
+
H(r.map((t, r) => r === e ? {
|
|
100
|
+
...t,
|
|
101
|
+
[a]: n
|
|
102
|
+
} : t));
|
|
103
|
+
}
|
|
104
|
+
function K(e, t) {
|
|
105
|
+
return {
|
|
106
|
+
...e,
|
|
107
|
+
key: `${S.field.key}.${t}.${e.key}`
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
function q(e, t) {
|
|
111
|
+
return S.controlId ? `${S.controlId}.${t}.${e.key}` : K(e, t).key;
|
|
112
|
+
}
|
|
113
|
+
function Ce(e, t) {
|
|
114
|
+
let n = {};
|
|
115
|
+
for (let r of x.get(k)) n[r.key] = e[r.key], n[K(r, t).key] = e[r.key];
|
|
116
|
+
return n;
|
|
117
|
+
}
|
|
118
|
+
function J(e, t) {
|
|
119
|
+
let n = t[e.key] ?? "";
|
|
120
|
+
return e.required === !0 && u(n) ? o.REQUIRED : s(e, n);
|
|
121
|
+
}
|
|
122
|
+
let Y = e(), X = t(), Z = [], we = 0;
|
|
123
|
+
function Q(e) {
|
|
124
|
+
return Z.length !== x.get(A).length && (Z = x.get(A).map(() => we++)), Z[e];
|
|
125
|
+
}
|
|
126
|
+
let Te;
|
|
127
|
+
x.user_effect(() => {
|
|
128
|
+
let e = Y?.generation;
|
|
129
|
+
e !== Te && (Te = e, oe(() => {
|
|
130
|
+
X.reset(), Z = [];
|
|
131
|
+
}));
|
|
132
|
+
});
|
|
133
|
+
let Ee = (e, t) => `${Q(t)}:${e.key}`, De = 0;
|
|
134
|
+
x.user_effect(() => {
|
|
135
|
+
let e = Y?.focusRequest;
|
|
136
|
+
e && e.seq !== De && (De = e.seq, e.key === S.field.key && oe(() => Oe()));
|
|
137
|
+
});
|
|
138
|
+
function Oe() {
|
|
139
|
+
for (let [e, t] of x.get(A).entries()) {
|
|
140
|
+
let n = x.get(k).find((e) => c(e, t) && J(e, t) !== "");
|
|
141
|
+
if (n) {
|
|
142
|
+
x.get(I) && !L.has(e) && L.add(e), ae().then(() => {
|
|
143
|
+
let t = document.querySelector(`#${CSS.escape(q(n, e))}`);
|
|
144
|
+
if (!t) return;
|
|
145
|
+
let r = t.matches(h) ? t : t.querySelector(h) ?? t;
|
|
146
|
+
r.scrollIntoView?.({
|
|
147
|
+
behavior: "smooth",
|
|
148
|
+
block: "center"
|
|
149
|
+
}), r.focus();
|
|
150
|
+
});
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
function ke(e, t, n) {
|
|
156
|
+
return X.shows(Ee(e, n)) || Y?.attempted === !0 ? J(e, t) : "";
|
|
157
|
+
}
|
|
158
|
+
function Ae(e, t, n) {
|
|
159
|
+
let r = e.target, i = e.relatedTarget;
|
|
160
|
+
if (r instanceof Node) for (let e of x.get(k)) {
|
|
161
|
+
let a = document.querySelector(`#${CSS.escape(q(e, n))}`);
|
|
162
|
+
if (a?.contains(r)) {
|
|
163
|
+
if (i instanceof Node && a.contains(i)) return;
|
|
164
|
+
X.blur(Ee(e, n), J(e, t) !== "");
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
var je = me(), $ = x.first_child(je);
|
|
170
|
+
x.attribute_effect($, (e) => ({
|
|
171
|
+
class: "flex flex-col gap-3",
|
|
172
|
+
...e
|
|
173
|
+
}), [() => ne(S.field, S.wiring)]);
|
|
174
|
+
var Me = x.child($);
|
|
175
|
+
x.each(Me, 17, () => x.get(A), x.index, (e, t, n) => {
|
|
176
|
+
let a = x.derived(() => x.get(he).has(n)), o = x.derived(() => _e(n));
|
|
177
|
+
var s = ue();
|
|
178
|
+
let l;
|
|
179
|
+
var u = x.child(s), m = (e) => {
|
|
180
|
+
var s = se(), c = x.child(s), l = x.child(c);
|
|
181
|
+
{
|
|
182
|
+
let e = x.derived(() => x.get(o) ? "" : "-rotate-90");
|
|
183
|
+
r(l, { get class() {
|
|
184
|
+
return `size-4 shrink-0 transition-transform ${x.get(e) ?? ""}`;
|
|
185
|
+
} });
|
|
186
|
+
}
|
|
187
|
+
var u = x.sibling(l, 2), m = (e) => {
|
|
188
|
+
var n = E(), r = x.only_child(n, !0);
|
|
189
|
+
x.template_effect((e) => {
|
|
190
|
+
x.set_class(n, 1, `${i.label ?? ""} tone-primary truncate`), x.set_text(r, e);
|
|
191
|
+
}, [() => ye(x.get(t))]), x.append(e, n);
|
|
192
|
+
}, h = x.derived(() => ye(x.get(t)));
|
|
193
|
+
x.if(u, (e) => {
|
|
194
|
+
x.get(h) && e(m);
|
|
195
|
+
});
|
|
196
|
+
var g = x.sibling(u, 2), _ = (e) => {
|
|
197
|
+
d(e, {
|
|
198
|
+
size: "sm",
|
|
199
|
+
shape: "pill",
|
|
200
|
+
children: (e, n) => {
|
|
201
|
+
x.next();
|
|
202
|
+
var r = x.text();
|
|
203
|
+
x.template_effect((e) => x.set_text(r, e), [() => R(x.get(t))]), x.append(e, r);
|
|
204
|
+
},
|
|
205
|
+
$$slots: { default: !0 }
|
|
206
|
+
});
|
|
207
|
+
}, ee = x.derived(() => R(x.get(t)));
|
|
208
|
+
x.if(g, (e) => {
|
|
209
|
+
x.get(ee) && e(_);
|
|
210
|
+
}), x.reset(c);
|
|
211
|
+
var v = x.sibling(c, 2), y = (e) => {
|
|
212
|
+
p(e, { size: "sm" });
|
|
213
|
+
}, b = (e) => {
|
|
214
|
+
{
|
|
215
|
+
let t = x.derived(() => x.get(j) || x.get(V)), r = x.derived(() => x.get(O)?.removeLabel ?? D.common_remove()), i = x.derived(() => C(x.get(O)?.removeIntent?.intent));
|
|
216
|
+
f(e, {
|
|
217
|
+
variant: "alternative",
|
|
218
|
+
size: "sm",
|
|
219
|
+
get disabled() {
|
|
220
|
+
return x.get(t);
|
|
221
|
+
},
|
|
222
|
+
get "aria-label"() {
|
|
223
|
+
return x.get(r);
|
|
224
|
+
},
|
|
225
|
+
get "data-testid"() {
|
|
226
|
+
return x.get(i);
|
|
227
|
+
},
|
|
228
|
+
onclick: () => G(n),
|
|
229
|
+
children: (e, t) => {
|
|
230
|
+
T(e, { class: "size-4" });
|
|
231
|
+
},
|
|
232
|
+
$$slots: { default: !0 }
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
x.if(v, (e) => {
|
|
237
|
+
x.get(a) ? e(y) : e(b, -1);
|
|
238
|
+
}), x.reset(s), x.template_effect(() => x.set_attribute(c, "aria-expanded", x.get(o))), x.delegated("click", c, () => ve(n)), x.append(e, s);
|
|
239
|
+
};
|
|
240
|
+
x.if(u, (e) => {
|
|
241
|
+
x.get(I) && e(m);
|
|
242
|
+
});
|
|
243
|
+
var h = x.sibling(u, 2), g = (e) => {
|
|
244
|
+
var r = le();
|
|
245
|
+
let i;
|
|
246
|
+
x.each(r, 23, () => x.get(k), (e, t) => `${t}:${e.key}`, (e, r) => {
|
|
247
|
+
var i = x.comment(), o = x.first_child(i), s = (e) => {
|
|
248
|
+
let i = x.derived(() => K(x.get(r), n)), o = x.derived(() => re(x.get(i))), s = x.derived(() => ke(x.get(r), x.get(t), n));
|
|
249
|
+
{
|
|
250
|
+
let c = x.derived(() => q(x.get(r), n));
|
|
251
|
+
v(e, {
|
|
252
|
+
get id() {
|
|
253
|
+
return x.get(c);
|
|
254
|
+
},
|
|
255
|
+
get error() {
|
|
256
|
+
return x.get(s);
|
|
257
|
+
},
|
|
258
|
+
children: (e, c) => {
|
|
259
|
+
var l = ce(), u = x.first_child(l);
|
|
260
|
+
b(u, {
|
|
261
|
+
children: (e, t) => {
|
|
262
|
+
x.next();
|
|
263
|
+
var n = x.text();
|
|
264
|
+
x.template_effect(() => x.set_text(n, x.get(r).label)), x.append(e, n);
|
|
265
|
+
},
|
|
266
|
+
$$slots: { default: !0 }
|
|
267
|
+
});
|
|
268
|
+
var d = x.sibling(u, 2);
|
|
269
|
+
te(d, {
|
|
270
|
+
children: (e, c) => {
|
|
271
|
+
var l = x.comment(), u = x.first_child(l);
|
|
272
|
+
{
|
|
273
|
+
let e = x.derived(() => q(x.get(r), n)), c = x.derived(() => S.testId ? `${S.testId}.${n}.${x.get(r).key}` : void 0), l = x.derived(() => Ce(x.get(t), n)), d = x.derived(() => x.get(j) || x.get(a)), f = x.derived(() => !!x.get(s));
|
|
274
|
+
x.component(u, () => x.get(o), (t, r) => {
|
|
275
|
+
r(t, {
|
|
276
|
+
get field() {
|
|
277
|
+
return x.get(i);
|
|
278
|
+
},
|
|
279
|
+
get controlId() {
|
|
280
|
+
return x.get(e);
|
|
281
|
+
},
|
|
282
|
+
get testId() {
|
|
283
|
+
return x.get(c);
|
|
284
|
+
},
|
|
285
|
+
get values() {
|
|
286
|
+
return x.get(l);
|
|
287
|
+
},
|
|
288
|
+
get uploads() {
|
|
289
|
+
return S.uploads;
|
|
290
|
+
},
|
|
291
|
+
set: (e, t) => Se(n, e, t),
|
|
292
|
+
get disabled() {
|
|
293
|
+
return x.get(d);
|
|
294
|
+
},
|
|
295
|
+
get invalid() {
|
|
296
|
+
return x.get(f);
|
|
297
|
+
},
|
|
298
|
+
get action() {
|
|
299
|
+
return S.action;
|
|
300
|
+
},
|
|
301
|
+
get onaction() {
|
|
302
|
+
return S.onaction;
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
x.append(e, l);
|
|
308
|
+
},
|
|
309
|
+
$$slots: { default: !0 }
|
|
310
|
+
});
|
|
311
|
+
var f = x.sibling(d, 2), p = (e) => {
|
|
312
|
+
ee(e, {});
|
|
313
|
+
};
|
|
314
|
+
x.if(f, (e) => {
|
|
315
|
+
x.get(s) && e(p);
|
|
316
|
+
}), x.append(e, l);
|
|
317
|
+
},
|
|
318
|
+
$$slots: { default: !0 }
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
}, l = x.derived(() => c(x.get(r), x.get(t)));
|
|
322
|
+
x.if(o, (e) => {
|
|
323
|
+
x.get(l) && e(s);
|
|
324
|
+
}), x.append(e, i);
|
|
325
|
+
}), x.reset(r), x.template_effect(() => i = x.set_class(r, 1, "grid min-w-0 flex-1 gap-3", null, i, { "mt-3": x.get(I) })), x.delegated("focusout", r, (e) => Ae(e, x.get(t), n)), x.append(e, r);
|
|
326
|
+
};
|
|
327
|
+
x.if(h, (e) => {
|
|
328
|
+
x.get(o) && e(g);
|
|
329
|
+
});
|
|
330
|
+
var _ = x.sibling(h, 2), y = (e) => {
|
|
331
|
+
var t = x.comment(), r = x.first_child(t), i = (e) => {
|
|
332
|
+
p(e, { size: "sm" });
|
|
333
|
+
}, o = (e) => {
|
|
334
|
+
{
|
|
335
|
+
let t = x.derived(() => x.get(j) || x.get(V)), r = x.derived(() => x.get(O)?.removeLabel ?? D.common_remove()), i = x.derived(() => C(x.get(O)?.removeIntent?.intent));
|
|
336
|
+
f(e, {
|
|
337
|
+
variant: "alternative",
|
|
338
|
+
size: "sm",
|
|
339
|
+
get disabled() {
|
|
340
|
+
return x.get(t);
|
|
341
|
+
},
|
|
342
|
+
get "aria-label"() {
|
|
343
|
+
return x.get(r);
|
|
344
|
+
},
|
|
345
|
+
get "data-testid"() {
|
|
346
|
+
return x.get(i);
|
|
347
|
+
},
|
|
348
|
+
onclick: () => G(n),
|
|
349
|
+
children: (e, t) => {
|
|
350
|
+
T(e, { class: "size-4" });
|
|
351
|
+
},
|
|
352
|
+
$$slots: { default: !0 }
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
x.if(r, (e) => {
|
|
357
|
+
x.get(a) ? e(i) : e(o, -1);
|
|
358
|
+
}), x.append(e, t);
|
|
359
|
+
};
|
|
360
|
+
x.if(_, (e) => {
|
|
361
|
+
x.get(I) || e(y);
|
|
362
|
+
}), x.reset(s), x.template_effect(() => {
|
|
363
|
+
l = x.set_class(s, 1, "rounded-lg border border-stroke-primary bg-bg-secondary p-3", null, l, {
|
|
364
|
+
flex: !x.get(I),
|
|
365
|
+
"items-start": !x.get(I),
|
|
366
|
+
"gap-3": !x.get(I)
|
|
367
|
+
}), x.set_attribute(s, "aria-busy", x.get(a));
|
|
368
|
+
}), x.append(e, s);
|
|
369
|
+
});
|
|
370
|
+
var Ne = x.sibling(Me, 2), Pe = (e) => {
|
|
371
|
+
var t = x.comment(), n = x.first_child(t), r = (e) => {
|
|
372
|
+
var t = de(), n = x.child(t), r = (e) => {
|
|
373
|
+
var t = E(), n = x.only_child(t, !0);
|
|
374
|
+
x.template_effect(() => {
|
|
375
|
+
x.set_class(t, 1, `${i.label ?? ""} tone-secondary mb-1.5 block`), x.set_text(n, x.get(A).length > 0 ? x.get(M).addAnotherLabel ?? x.get(M).label : x.get(M).label);
|
|
376
|
+
}), x.append(e, t);
|
|
377
|
+
};
|
|
378
|
+
x.if(n, (e) => {
|
|
379
|
+
(x.get(A).length > 0 ? x.get(M).addAnotherLabel ?? x.get(M).label : x.get(M).label) && e(r);
|
|
380
|
+
});
|
|
381
|
+
var a = x.sibling(n, 2);
|
|
382
|
+
{
|
|
383
|
+
let e = x.derived(() => x.get(F).map((e) => ({
|
|
384
|
+
value: e.value,
|
|
385
|
+
name: e.label
|
|
386
|
+
}))), t = x.derived(() => x.get(M).placeholder ?? ""), n = x.derived(() => x.get(j) || x.get(B));
|
|
387
|
+
_(a, {
|
|
388
|
+
value: "",
|
|
389
|
+
get items() {
|
|
390
|
+
return x.get(e);
|
|
391
|
+
},
|
|
392
|
+
get placeholder() {
|
|
393
|
+
return x.get(t);
|
|
394
|
+
},
|
|
395
|
+
get disabled() {
|
|
396
|
+
return x.get(n);
|
|
397
|
+
},
|
|
398
|
+
get "data-testid"() {
|
|
399
|
+
return x.get(N);
|
|
400
|
+
},
|
|
401
|
+
onchange: (e) => xe(e.value)
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
x.reset(t), x.append(e, t);
|
|
405
|
+
}, a = (e) => {
|
|
406
|
+
var t = fe(), n = x.only_child(t, !0);
|
|
407
|
+
x.template_effect(() => {
|
|
408
|
+
x.set_class(t, 1, `${i.body ?? ""} tone-muted`), x.set_text(n, x.get(M).exhaustedLabel);
|
|
409
|
+
}), x.append(e, t);
|
|
410
|
+
};
|
|
411
|
+
x.if(n, (e) => {
|
|
412
|
+
x.get(F).length > 0 ? e(r) : x.get(M).exhaustedLabel && e(a, 1);
|
|
413
|
+
}), x.append(e, t);
|
|
414
|
+
}, Fe = (e) => {
|
|
415
|
+
var t = pe(), n = x.child(t);
|
|
416
|
+
{
|
|
417
|
+
let e = x.derived(() => x.get(j) || x.get(B));
|
|
418
|
+
f(n, {
|
|
419
|
+
variant: "alternative",
|
|
420
|
+
size: "sm",
|
|
421
|
+
get disabled() {
|
|
422
|
+
return x.get(e);
|
|
423
|
+
},
|
|
424
|
+
get "data-testid"() {
|
|
425
|
+
return x.get(N);
|
|
426
|
+
},
|
|
427
|
+
onclick: be,
|
|
428
|
+
children: (e, t) => {
|
|
429
|
+
x.next();
|
|
430
|
+
var n = x.text();
|
|
431
|
+
x.template_effect((e) => x.set_text(n, e), [() => x.get(O)?.addLabel ?? D.common_add()]), x.append(e, n);
|
|
432
|
+
},
|
|
433
|
+
$$slots: { default: !0 }
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
var r = x.sibling(n, 2), a = (e) => {
|
|
437
|
+
var t = E(), n = x.only_child(t);
|
|
438
|
+
x.template_effect((e) => {
|
|
439
|
+
x.set_class(t, 1, `${i.caption ?? ""} tone-muted`), x.set_text(n, `${e ?? ""}: ${x.get(O)?.maxRows ?? ""}`);
|
|
440
|
+
}, [() => D.common_max()]), x.append(e, t);
|
|
441
|
+
};
|
|
442
|
+
x.if(r, (e) => {
|
|
443
|
+
x.get(B) && e(a);
|
|
444
|
+
}), x.reset(t), x.append(e, t);
|
|
445
|
+
};
|
|
446
|
+
x.if(Ne, (e) => {
|
|
447
|
+
x.get(M) ? e(Pe) : e(Fe, -1);
|
|
448
|
+
}), x.reset($);
|
|
449
|
+
var Ie = x.sibling($, 2), Le = (e) => {
|
|
450
|
+
{
|
|
451
|
+
let t = x.derived(() => x.get(z) >= 0), n = x.derived(() => x.get(O).removeConfirm.danger === !0 ? "danger" : "default"), r = x.derived(() => x.get(O).removeConfirm.confirmLabel ?? D.common_confirm()), i = x.derived(() => x.get(O).removeConfirm.cancelLabel ?? D.common_cancel()), a = x.derived(() => C(x.get(O).removeIntent?.intent && `${x.get(O).removeIntent.intent}.confirm`));
|
|
452
|
+
g(e, {
|
|
453
|
+
get open() {
|
|
454
|
+
return x.get(t);
|
|
455
|
+
},
|
|
456
|
+
get title() {
|
|
457
|
+
return x.get(O).removeConfirm.title;
|
|
458
|
+
},
|
|
459
|
+
get description() {
|
|
460
|
+
return x.get(O).removeConfirm.message;
|
|
461
|
+
},
|
|
462
|
+
get variant() {
|
|
463
|
+
return x.get(n);
|
|
464
|
+
},
|
|
465
|
+
get primaryButtonText() {
|
|
466
|
+
return x.get(r);
|
|
467
|
+
},
|
|
468
|
+
get secondaryButtonText() {
|
|
469
|
+
return x.get(i);
|
|
470
|
+
},
|
|
471
|
+
get confirmTestId() {
|
|
472
|
+
return x.get(a);
|
|
473
|
+
},
|
|
474
|
+
onconfirm: () => {
|
|
475
|
+
let e = x.get(z);
|
|
476
|
+
x.set(z, -1), W(e);
|
|
477
|
+
},
|
|
478
|
+
oncancel: () => x.set(z, -1),
|
|
479
|
+
onclose: () => x.set(z, -1)
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
};
|
|
483
|
+
x.if(Ie, (e) => {
|
|
484
|
+
x.get(O)?.removeConfirm && e(Le);
|
|
485
|
+
}), x.append(n, je), x.pop();
|
|
486
|
+
}
|
|
487
|
+
x.delegate(["click", "focusout"]);
|
|
488
|
+
export { D as default };
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { t as e } from "./labels-CjSrA6gx.js";
|
|
2
|
+
import { t } from "./href-DpbLXQ4c.js";
|
|
3
|
+
import { t as n } from "./foundryRuntime-DKyfdkUY.js";
|
|
4
|
+
import { x as r } from "./CalendarFoundryView-DbxZNmY7.js";
|
|
5
|
+
import "svelte/internal/disclose-version";
|
|
6
|
+
import * as i from "svelte/internal/client";
|
|
7
|
+
// node_modules/@getmicdrop/svelte-components/dist/recipes/RichTextEditor/RichTextEditor.svelte
|
|
8
|
+
var a = i.from_html("<button type=\"button\" class=\"rte-btn rounded px-2 py-1 type-label tone-secondary hover:bg-hover-primary disabled:pointer-events-none\"> </button>"), o = i.from_html("<div><div class=\"flex flex-wrap items-center gap-1 border-b border-stroke-primary bg-bg-secondary px-2 py-1\" role=\"toolbar\"></div> <div class=\"rte-content px-3 py-2 tone-primary focus:outline-none svelte-1lzgel3\" role=\"textbox\" aria-multiline=\"true\"></div></div>");
|
|
9
|
+
function s(n, s) {
|
|
10
|
+
i.push(s, !0);
|
|
11
|
+
let c = {
|
|
12
|
+
bold: "B",
|
|
13
|
+
boldTitle: "Bold",
|
|
14
|
+
italic: "I",
|
|
15
|
+
italicTitle: "Italic",
|
|
16
|
+
bulletedList: "• List",
|
|
17
|
+
bulletedListTitle: "Bulleted list",
|
|
18
|
+
numberedList: "1. List",
|
|
19
|
+
numberedListTitle: "Numbered list",
|
|
20
|
+
link: "Link",
|
|
21
|
+
linkTitle: "Insert link",
|
|
22
|
+
linkUrlPrompt: "Link URL",
|
|
23
|
+
toolbarLabel: "Text formatting",
|
|
24
|
+
editorFallbackLabel: "Description"
|
|
25
|
+
}, l = i.prop(s, "value", 15, ""), u = i.prop(s, "placeholder", 3, ""), d = i.prop(s, "minHeight", 3, "160px"), f = i.prop(s, "disabled", 3, !1), p = i.prop(s, "class", 3, ""), m = i.prop(s, "labels", 19, () => ({})), h = i.derived(() => e(c, m())), g = i.state(void 0), _ = i.state(!1), v = {
|
|
26
|
+
P: [],
|
|
27
|
+
BR: [],
|
|
28
|
+
STRONG: [],
|
|
29
|
+
B: [],
|
|
30
|
+
EM: [],
|
|
31
|
+
I: [],
|
|
32
|
+
U: [],
|
|
33
|
+
UL: [],
|
|
34
|
+
OL: [],
|
|
35
|
+
LI: [],
|
|
36
|
+
A: ["href"]
|
|
37
|
+
};
|
|
38
|
+
function y(e, n, r) {
|
|
39
|
+
e.childNodes.forEach((e) => {
|
|
40
|
+
if (e.nodeType === 3) {
|
|
41
|
+
n.appendChild(r.createTextNode(e.textContent ?? ""));
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (e.nodeType !== 1) return;
|
|
45
|
+
let i = e, a = i.tagName;
|
|
46
|
+
if (!(a in v)) {
|
|
47
|
+
y(i, n, r);
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
let o = r.createElement(a.toLowerCase());
|
|
51
|
+
for (let e of v[a]) {
|
|
52
|
+
let n = i.getAttribute(e);
|
|
53
|
+
n != null && (e !== "href" || t(n)) && o.setAttribute(e, n);
|
|
54
|
+
}
|
|
55
|
+
a === "A" && o.getAttribute("href") && (o.setAttribute("target", "_blank"), o.setAttribute("rel", "noopener noreferrer nofollow")), y(i, o, r), n.appendChild(o);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
function b(e) {
|
|
59
|
+
if (typeof document > "u") return "";
|
|
60
|
+
let t = document.createElement("template");
|
|
61
|
+
t.innerHTML = e;
|
|
62
|
+
let n = document.createElement("div");
|
|
63
|
+
return y(t.content, n, document), n.innerHTML;
|
|
64
|
+
}
|
|
65
|
+
function x(e) {
|
|
66
|
+
return /^(?:<br\s*\/?>|<p>(?:\s| |<br\s*\/?>)*<\/p>|\s)*$/i.test(e);
|
|
67
|
+
}
|
|
68
|
+
i.user_effect(() => {
|
|
69
|
+
let e = b(l() || "");
|
|
70
|
+
i.get(g) && !i.get(_) && i.get(g).innerHTML !== e && (i.get(g).innerHTML = e);
|
|
71
|
+
});
|
|
72
|
+
function S() {
|
|
73
|
+
if (!i.get(g)) return;
|
|
74
|
+
let e = b(i.get(g).innerHTML);
|
|
75
|
+
l(x(e) ? "" : e);
|
|
76
|
+
}
|
|
77
|
+
function C(e, t) {
|
|
78
|
+
f() || typeof document > "u" || (i.get(g)?.focus(), document.execCommand(e, !1, t), S());
|
|
79
|
+
}
|
|
80
|
+
function w() {
|
|
81
|
+
if (f()) return;
|
|
82
|
+
let e = typeof window < "u" ? window.prompt(i.get(h).linkUrlPrompt) : null;
|
|
83
|
+
if (e == null) return;
|
|
84
|
+
let t = e.trim();
|
|
85
|
+
t ? C("createLink", /^https?:\/\//i.test(t) ? t : `https://${t}`) : C("unlink");
|
|
86
|
+
}
|
|
87
|
+
function T(e) {
|
|
88
|
+
if (typeof document > "u") return;
|
|
89
|
+
e.preventDefault();
|
|
90
|
+
let t = e.clipboardData?.getData("text/plain") ?? "";
|
|
91
|
+
document.execCommand("insertText", !1, t), S();
|
|
92
|
+
}
|
|
93
|
+
let E = [
|
|
94
|
+
{
|
|
95
|
+
labelKey: "bold",
|
|
96
|
+
titleKey: "boldTitle",
|
|
97
|
+
action: () => C("bold")
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
labelKey: "italic",
|
|
101
|
+
titleKey: "italicTitle",
|
|
102
|
+
action: () => C("italic")
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
labelKey: "bulletedList",
|
|
106
|
+
titleKey: "bulletedListTitle",
|
|
107
|
+
action: () => C("insertUnorderedList")
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
labelKey: "numberedList",
|
|
111
|
+
titleKey: "numberedListTitle",
|
|
112
|
+
action: () => C("insertOrderedList")
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
labelKey: "link",
|
|
116
|
+
titleKey: "linkTitle",
|
|
117
|
+
action: w
|
|
118
|
+
}
|
|
119
|
+
], D = i.proxy([]), O = i.state(0), k = r(() => D.filter(Boolean), {
|
|
120
|
+
orientation: "horizontal",
|
|
121
|
+
loop: !0,
|
|
122
|
+
onSelect: (e) => e.click()
|
|
123
|
+
});
|
|
124
|
+
var A = o(), j = i.child(A);
|
|
125
|
+
i.set_attribute(j, "tabindex", -1), i.each(j, 21, () => E, i.index, (e, t, n) => {
|
|
126
|
+
var r = a(), o = i.only_child(r, !0);
|
|
127
|
+
i.bind_this(r, (e, t) => D[t] = e, (e) => D?.[e], () => [n]), i.template_effect(() => {
|
|
128
|
+
i.set_attribute(r, "title", i.get(h)[i.get(t).titleKey]), i.set_attribute(r, "aria-label", i.get(h)[i.get(t).titleKey]), i.set_attribute(r, "tabindex", n === i.get(O) ? 0 : -1), r.disabled = f(), i.set_text(o, i.get(h)[i.get(t).labelKey]);
|
|
129
|
+
}), i.delegated("mousedown", r, (e) => e.preventDefault()), i.event("focus", r, () => i.set(O, n, !0)), i.delegated("click", r, function(...e) {
|
|
130
|
+
i.get(t).action?.apply(this, e);
|
|
131
|
+
}), i.append(e, r);
|
|
132
|
+
}), i.reset(j);
|
|
133
|
+
var M = i.sibling(j, 2);
|
|
134
|
+
i.bind_this(M, (e) => i.set(g, e), () => i.get(g)), i.reset(A), i.template_effect(() => {
|
|
135
|
+
i.set_class(A, 1, `rte overflow-hidden rounded-lg border border-stroke-primary bg-bg-secondary ${i.get(_) ? "ring-2 ring-brand-primary" : ""} ${f() ? "opacity-60" : ""} ${p() ?? ""}`, "svelte-1lzgel3"), i.set_attribute(j, "aria-label", i.get(h).toolbarLabel), i.set_attribute(M, "id", s.id), i.set_attribute(M, "data-testid", s["data-testid"]), i.set_style(M, `min-height: ${d() ?? ""};`), i.set_attribute(M, "contenteditable", !f()), i.set_attribute(M, "aria-label", u() || i.get(h).editorFallbackLabel), i.set_attribute(M, "data-placeholder", u());
|
|
136
|
+
}), i.delegated("keydown", j, function(...e) {
|
|
137
|
+
k.handleKeydown?.apply(this, e);
|
|
138
|
+
}), i.delegated("input", M, S), i.event("blur", M, () => {
|
|
139
|
+
i.set(_, !1), S();
|
|
140
|
+
}), i.event("focus", M, () => i.set(_, !0)), i.event("paste", M, T), i.append(n, A), i.pop();
|
|
141
|
+
}
|
|
142
|
+
i.delegate([
|
|
143
|
+
"keydown",
|
|
144
|
+
"mousedown",
|
|
145
|
+
"click",
|
|
146
|
+
"input"
|
|
147
|
+
]);
|
|
148
|
+
// node_modules/@getmicdrop/svelte-components/dist/foundry/blocks/fields/richtext-rules.js
|
|
149
|
+
function c(e) {
|
|
150
|
+
return typeof e == "string" ? e : "";
|
|
151
|
+
}
|
|
152
|
+
function l(e, t, n) {
|
|
153
|
+
let r = c(n);
|
|
154
|
+
if (!e || typeof t != "string" || t === "") return r;
|
|
155
|
+
try {
|
|
156
|
+
return e.normalize({
|
|
157
|
+
reference: t,
|
|
158
|
+
value: r
|
|
159
|
+
});
|
|
160
|
+
} catch {
|
|
161
|
+
return r;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
function u(e, t, n, r) {
|
|
165
|
+
if (e && typeof t == "string" && t !== "" && e.equal) try {
|
|
166
|
+
return e.equal({
|
|
167
|
+
reference: t,
|
|
168
|
+
value: c(n)
|
|
169
|
+
}, c(r));
|
|
170
|
+
} catch {}
|
|
171
|
+
return l(e, t, n) === l(e, t, r);
|
|
172
|
+
}
|
|
173
|
+
// node_modules/@getmicdrop/svelte-components/dist/foundry/blocks/fields/richtext-field.svelte
|
|
174
|
+
function d(e, t) {
|
|
175
|
+
i.push(t, !0);
|
|
176
|
+
let r = n().richText, a = i.state(i.proxy(c(t.values[t.field.key]))), o = c(t.values[t.field.key]);
|
|
177
|
+
i.user_effect(() => {
|
|
178
|
+
let e = c(t.values[t.field.key]);
|
|
179
|
+
e !== o && (o = e, u(r, t.field.richTextRef, e, i.get(a)) || i.set(a, e, !0));
|
|
180
|
+
}), i.user_effect(() => {
|
|
181
|
+
let e = l(r, t.field.richTextRef, i.get(a));
|
|
182
|
+
u(r, t.field.richTextRef, t.values[t.field.key], e) || t.set(t.field.key, e);
|
|
183
|
+
});
|
|
184
|
+
{
|
|
185
|
+
let n = i.derived(() => t.controlId ?? t.field.key), r = i.derived(() => t.testId ?? t.controlId ?? t.field.key), o = i.derived(() => t.field.richtext?.placeholder ?? ""), c = i.derived(() => t.field.richtext?.minHeight), l = i.derived(() => t.disabled === !0);
|
|
186
|
+
s(e, {
|
|
187
|
+
get id() {
|
|
188
|
+
return i.get(n);
|
|
189
|
+
},
|
|
190
|
+
get "data-testid"() {
|
|
191
|
+
return i.get(r);
|
|
192
|
+
},
|
|
193
|
+
get placeholder() {
|
|
194
|
+
return i.get(o);
|
|
195
|
+
},
|
|
196
|
+
get minHeight() {
|
|
197
|
+
return i.get(c);
|
|
198
|
+
},
|
|
199
|
+
get disabled() {
|
|
200
|
+
return i.get(l);
|
|
201
|
+
},
|
|
202
|
+
get value() {
|
|
203
|
+
return i.get(a);
|
|
204
|
+
},
|
|
205
|
+
set value(e) {
|
|
206
|
+
i.set(a, e, !0);
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
i.pop();
|
|
211
|
+
}
|
|
212
|
+
export { d as default };
|