@getmicdrop/venue-calendar 4.3.138 → 4.3.139

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/README.md +895 -840
  2. package/dist/AddOnCard-Dlt_4lut.js +475 -0
  3. package/dist/{Button-B_gbGd63.js → Button-Ch5dRGa2.js} +1 -1
  4. package/dist/{Button-B1cBhdtC.js → Button-DpeQSoQ7.js} +58 -45
  5. package/dist/Calendar-CNWS2xiR.js +396 -0
  6. package/dist/CalendarFoundryView-B5puOxH5.js +16431 -0
  7. package/dist/{ChartBlock-DcsCXfX8.js → ChartBlock-vihMKVdW.js} +2 -2
  8. package/dist/Checkout-B2FvX6Af.js +1070 -0
  9. package/dist/Checkout-y0x-v-XH.js +1995 -0
  10. package/dist/{ChevronDownOutline-kFgRY2cg.js → CloseOutline-Bh9UO94v.js} +2 -2
  11. package/dist/{CollectionView-C0vDg5oJ.js → CollectionView-CcLlV-1f.js} +22 -24
  12. package/dist/{CropImage-BWYeQXXA.js → CropImage-DqLAGy5s.js} +6 -6
  13. package/dist/{DatePicker-v-4ijT8N.js → DatePicker-D20Te0JY.js} +222 -215
  14. package/dist/{Event-vlu8IAxh.js → Event-DoIU0o6C.js} +799 -796
  15. package/dist/{EventCard-puoh3xag.js → EventCard-B8MYLyIW.js} +1 -1
  16. package/dist/EventPage-DM4tjCcL.js +1298 -0
  17. package/dist/{FilterChipGroup-DUGvOaRI.js → FilterChipGroup-BCjc7-pE.js} +1 -1
  18. package/dist/{ImageUploader-CKrf5amy.js → ImageUploader-BzxKIyLN.js} +324 -375
  19. package/dist/{Input-BQk4itex.js → Input-Bp5EgI1F.js} +5 -3
  20. package/dist/Modal-C6EXgkuF.js +159 -0
  21. package/dist/{ModalFooter-gFaDKsfj.js → ModalFooter-C4TD3-zP.js} +1 -1
  22. package/dist/{ModalTitle-CS5AGwrU.js → ModalTitle-BP4Bm3sA.js} +1 -1
  23. package/dist/{PasswordInput-C65GqxdF.js → PasswordInput-BlzSrkPs.js} +1 -1
  24. package/dist/{PhoneInput-Dj1I3bEn.js → PhoneInput-_ByjRGQ0.js} +2 -2
  25. package/dist/{RecommendationsRail-DC5qX1ei.js → RecommendationsRail-BDNnbL-p.js} +53 -50
  26. package/dist/{Search-BE64QcmK.js → Search-vhGEpog6.js} +1 -1
  27. package/dist/SeriesPage-YE8czX1M.js +32 -0
  28. package/dist/{SkeletonLoader-DfW0N9R3.js → SkeletonLoader-Beh2izdy.js} +1 -1
  29. package/dist/Spinner-DgubkWKo.js +88 -0
  30. package/dist/{Success-D3CrUeka.js → Success-CN5HB8gN.js} +164 -166
  31. package/dist/{TimePicker-HYzPI_Dc.js → TimePicker-BDuy9Ap8.js} +1 -1
  32. package/dist/{ViewTicketsEmbed-DzUCgtA3.js → ViewTicketsEmbed-DvoMIiKJ.js} +9 -10
  33. package/dist/{address-field-BwGHcMKY.js → address-field-DOalICpt.js} +2 -2
  34. package/dist/{allowlist-Bt1BHhNd.js → allowlist-DinkGF2L.js} +77 -68
  35. package/dist/api/api.cjs +1 -1
  36. package/dist/api/api.mjs +320 -297
  37. package/dist/api/client.d.ts +14 -53
  38. package/dist/api/events.d.ts +15 -1
  39. package/dist/api/result.d.ts +9 -0
  40. package/dist/{api-CRHFSJDI.js → api-CsAx0rmV.js} +150 -145
  41. package/dist/{avatar-picker-field-CSF5okeM.js → avatar-picker-field-CV4vRxTB.js} +14 -14
  42. package/dist/{checkoutState-BDNjJRMG.js → checkoutState-DSx7g3Vy.js} +12 -21
  43. package/dist/{client-BIN_q-of.js → client-SaDt6559.js} +18 -12
  44. package/dist/{constants-DrFV2oht.js → constants-sRRJh0u-.js} +1 -1
  45. package/dist/{date-field-3tgOYbzF.js → date-field-DylJx0y7.js} +9 -9
  46. package/dist/{date-range-field-D0Aq9me9.js → date-range-field-BOV1V2ab.js} +7 -7
  47. package/dist/{de-CUrE_4a4.js → de-CzkX3H3B.js} +1 -0
  48. package/dist/{defaultLabels-CybwJCNn.js → defaultLabels-DLK6rq4q.js} +1 -0
  49. package/dist/{defaults-B5wyre5O.js → defaults-Cbuin1WS.js} +2 -3
  50. package/dist/{es-B2-z2Kft.js → es-BOLzv8eD.js} +1 -0
  51. package/dist/{event-CEg17hts.js → event-ClsLWtR0.js} +1 -1
  52. package/dist/{event-transform-DqFigNQg.js → event-transform-Cs63X0hI.js} +42 -42
  53. package/dist/{eventStatusStream-DK5fWCTB.js → eventStatusStream-BAh5nJP2.js} +1 -1
  54. package/dist/{field-rules-CKFFB16Q.js → field-rules-Yb2JY1qT.js} +1 -1
  55. package/dist/{file-field-2mPz4Da-.js → file-field-Dwo80kDg.js} +4 -4
  56. package/dist/format-CehusdDg.js +1718 -0
  57. package/dist/{formatters-CzKNRUwz.js → formatters-DUWbI_Eg.js} +25 -35
  58. package/dist/{fr-CiePVIlj.js → fr-DYTIBBXo.js} +1 -0
  59. package/dist/{href-DpbLXQ4c.js → href-BXhNawil.js} +1 -1
  60. package/dist/i18n-BNF6a-QA.js +720 -0
  61. package/dist/i18n-F_QOaHVh.js +26 -0
  62. package/dist/{id-Ttw95_7t.js → id-CIyIkGhH.js} +1 -0
  63. package/dist/{image-field-B8x0WQ2j.js → image-field-DeLzsJlz.js} +2 -2
  64. package/dist/{it-CBbXcFY1.js → it-CF4Db_nK.js} +1 -0
  65. package/dist/{ja-B2Tag7J3.js → ja-5-7WNHD1.js} +1 -0
  66. package/dist/{ko-CcTn4lAi.js → ko-huIzHR3W.js} +1 -0
  67. package/dist/locales/4.3.139/main/de.js +1 -0
  68. package/dist/locales/4.3.139/main/es.js +1 -0
  69. package/dist/locales/4.3.139/main/fr.js +1 -0
  70. package/dist/locales/4.3.139/main/id.js +1 -0
  71. package/dist/locales/4.3.139/main/it.js +1 -0
  72. package/dist/locales/4.3.139/main/ja.js +1 -0
  73. package/dist/locales/4.3.139/main/ko.js +1 -0
  74. package/dist/locales/4.3.139/main/nl.js +1 -0
  75. package/dist/locales/4.3.139/main/pl.js +1 -0
  76. package/dist/locales/4.3.139/main/pt-br.js +1 -0
  77. package/dist/locales/4.3.139/main/tr.js +1 -0
  78. package/dist/locales/4.3.139/main/zh.js +1 -0
  79. package/dist/look-island.svelte-D87MvHNy.js +1296 -0
  80. package/dist/{look-names-JI6GE-Zj.js → look-names-B9MywEzX.js} +68 -58
  81. package/dist/looks/4.3.139/AddOnCard-CKdkGcHH.js +1 -0
  82. package/dist/looks/4.3.139/Checkout-D7CaFYTE.js +1 -0
  83. package/dist/looks/4.3.139/Checkout-DuP46PMi.js +3 -0
  84. package/dist/looks/4.3.139/CollectionView-CWm57JCx.js +1 -0
  85. package/dist/looks/4.3.139/Event-ePupb4qY.js +8 -0
  86. package/dist/looks/4.3.139/EventPage-CgexXhEU.js +1 -0
  87. package/dist/looks/4.3.139/RecommendationsRail-Bz-Mj_r4.js +2 -0
  88. package/dist/looks/4.3.139/SeriesPage-DI2uFF0Y.js +1 -0
  89. package/dist/looks/4.3.139/Success-BkMzmgmc.js +3 -0
  90. package/dist/looks/4.3.139/ViewTicketsEmbed-CbEJwRry.js +1 -0
  91. package/dist/looks/4.3.139/_vc-foundry-calendar-stub-BVbAFEK2.js +1 -0
  92. package/dist/looks/4.3.139/buyerEmail-CqCYa9UL.js +1 -0
  93. package/dist/looks/4.3.139/constants-CU_ZgyQu.js +3 -0
  94. package/dist/looks/4.3.139/defaults-B46SFFK4.js +2 -0
  95. package/dist/looks/4.3.139/dist-BWGSqtWN.js +1 -0
  96. package/dist/looks/4.3.139/eventStatusStream-CW5lJwsa.js +10 -0
  97. package/dist/looks/4.3.139/first-core-DrYq9wBy.js +151 -0
  98. package/dist/looks/4.3.139/first-mount.svelte-DFSLaJWm.js +1 -0
  99. package/dist/looks/4.3.139/first-seo-DvHuCXT6.js +1 -0
  100. package/dist/looks/4.3.139/first.js +1 -0
  101. package/dist/looks/4.3.139/full-widget-DDBk3i4U.js +2 -0
  102. package/dist/looks/4.3.139/gate-password-cache-D4Zls6QM.js +1 -0
  103. package/dist/looks/4.3.139/i18n-DRaFNYsQ.js +1 -0
  104. package/dist/looks/4.3.139/listing-BSaRTkxW.js +1 -0
  105. package/dist/looks/4.3.139/loaders.runtime-BNG8O6-A.js +1 -0
  106. package/dist/looks/4.3.139/looks.js +1 -0
  107. package/dist/looks/4.3.139/modalManager.svelte-CqQWYz9Y.js +1 -0
  108. package/dist/looks/4.3.139/rolldown-runtime-4tVxZq34.js +1 -0
  109. package/dist/looks/4.3.139/serverTotals-Bu1fAPLB.js +1 -0
  110. package/dist/looks/4.3.139/showcase-state-options-CpCMAKVD.js +1 -0
  111. package/dist/looks/4.3.139/utils-pGRhH4A-.js +1 -0
  112. package/dist/{media-field-HieD0ye0.js → media-field-PW8ye6EL.js} +2 -2
  113. package/dist/modalManager.svelte-BHE0t9q3.js +79 -0
  114. package/dist/{multiselect-field-CJ4lUJyS.js → multiselect-field-CmocFs5f.js} +2 -2
  115. package/dist/navigation-B8rkS2On.js +348 -0
  116. package/dist/{nl-DeIqgjIs.js → nl-B1dv1lqk.js} +1 -0
  117. package/dist/{number-field-D5GkkGLB.js → number-field-CUD936Ai.js} +3 -3
  118. package/dist/{numeric-filter-field-CRWZFu_P.js → numeric-filter-field-BmgSYhOt.js} +3 -3
  119. package/dist/{password-field-DdOHXEOo.js → password-field-BfvcZUi_.js} +1 -1
  120. package/dist/{phone-field-BaYmp56f.js → phone-field-DO0U_YZ6.js} +17 -18
  121. package/dist/{pixels-BXXzmoCb.js → pixels-ipedGW6i.js} +7 -7
  122. package/dist/{pl-Bm2FcD5y.js → pl-DLlM_IPo.js} +1 -0
  123. package/dist/{pt-br-XS1Lsa6z.js → pt-br-8V3mf7pu.js} +1 -0
  124. package/dist/repeating-field-BwtJ6VS1.js +488 -0
  125. package/dist/{richtext-field-KmUytgBW.js → richtext-field-DvLCxPvq.js} +2 -2
  126. package/dist/{datetime-BlEsN_-8.js → scarcity-DfQvyhJP.js} +74 -85
  127. package/dist/{searchable-select-field-DettZRav.js → searchable-select-field-zuIqfoQM.js} +17 -17
  128. package/dist/{select-field-Wc4gAtou.js → select-field-DNNN-a9q.js} +6 -6
  129. package/dist/seo/HostSeoController.d.ts +13 -0
  130. package/dist/seo/seo.cjs +1 -1
  131. package/dist/seo/seo.mjs +18 -11
  132. package/dist/{serverTotals-COsx7Mc5.js → serverTotals-BprgDwOw.js} +1 -1
  133. package/dist/{showcase-state-options-CHGUaZtl.js → showcase-state-options-bKRf48yz.js} +2 -2
  134. package/dist/{time-field-CnxZcziR.js → time-field-DmPCoppV.js} +2 -2
  135. package/dist/{to-event-card-props-C9v9dspT.js → to-event-card-props-KVcCJ2JF.js} +34 -34
  136. package/dist/{tr-zKAbMfgi.js → tr-DiUEV65j.js} +1 -0
  137. package/dist/{tree-picker-field-aqux58EQ.js → tree-picker-field-BJwSFAqm.js} +8 -8
  138. package/dist/types/index.d.ts +3 -0
  139. package/dist/{utils-AIszIHUb.js → utils-x8YXRKvr.js} +12 -12
  140. package/dist/venue-BjLCg-PW.js +38 -0
  141. package/dist/venue-calendar.css +1 -1
  142. package/dist/venue-calendar.es.js +1655 -1539
  143. package/dist/venue-calendar.iife.js +1 -54
  144. package/dist/venue-calendar.umd.js +69 -63
  145. package/dist/{widget-key-context-BrWW0fyM.js → widget-key-context-dHM9FiuJ.js} +8 -37
  146. package/dist/{zh-DHfgJplH.js → zh-Cej2EPQt.js} +1 -0
  147. package/package.json +2 -2
  148. package/src/lib/constants/scarcity.ts +1 -2
  149. package/dist/AddOnCard-DEAC26HA.js +0 -348
  150. package/dist/BlockPlaceholder-BKfoE795.js +0 -59
  151. package/dist/Calendar-9xskvKUf.js +0 -395
  152. package/dist/CalendarFoundryView-DbxZNmY7.js +0 -16356
  153. package/dist/CartView-DMINN6bY.js +0 -2200
  154. package/dist/Checkbox-sObkYRdj.js +0 -60
  155. package/dist/Checkout-H9RGBU9D.js +0 -1071
  156. package/dist/Checkout-VnochAZE.js +0 -1967
  157. package/dist/CheckoutTimer-mjcYR3XU.js +0 -42
  158. package/dist/EventPage-DycxjX5Z.js +0 -1301
  159. package/dist/Modal-DOpDiAwN.js +0 -102
  160. package/dist/ScarcityBadge-BAaV2CIY.js +0 -141
  161. package/dist/SeriesPage-Cx89s2B6.js +0 -34
  162. package/dist/Skeleton-B6qB_udJ.js +0 -31
  163. package/dist/Spinner-Bj4dr9kO.js +0 -19
  164. package/dist/Textarea-BDcuBI13.js +0 -72
  165. package/dist/__SKIP_NAVIGATION__-Znm_vYcG.js +0 -5
  166. package/dist/__SKIP_PATHS__-Bzzrca_a.js +0 -5
  167. package/dist/calendar-Cdu8fCIt.js +0 -111
  168. package/dist/cta-qbcIt5Gh.js +0 -116
  169. package/dist/format-CypC4vWs.js +0 -1587
  170. package/dist/heic-to-BoLfsr3l.js +0 -70
  171. package/dist/i18n-B_TWnExv.js +0 -495
  172. package/dist/i18n-CSaUFnlD.js +0 -26
  173. package/dist/instant-BkZCSGDm.js +0 -162
  174. package/dist/labels-D8LN8lY7.js +0 -227
  175. package/dist/locales/4.3.138/main/de.js +0 -1
  176. package/dist/locales/4.3.138/main/es.js +0 -1
  177. package/dist/locales/4.3.138/main/fr.js +0 -1
  178. package/dist/locales/4.3.138/main/id.js +0 -1
  179. package/dist/locales/4.3.138/main/it.js +0 -1
  180. package/dist/locales/4.3.138/main/ja.js +0 -1
  181. package/dist/locales/4.3.138/main/ko.js +0 -1
  182. package/dist/locales/4.3.138/main/nl.js +0 -1
  183. package/dist/locales/4.3.138/main/pl.js +0 -1
  184. package/dist/locales/4.3.138/main/pt-br.js +0 -1
  185. package/dist/locales/4.3.138/main/tr.js +0 -1
  186. package/dist/locales/4.3.138/main/zh.js +0 -1
  187. package/dist/look-island.svelte-B7UH_QVv.js +0 -1270
  188. package/dist/looks/4.3.138/looks.js +0 -248
  189. package/dist/modalManager.svelte-BvyrTI6p.js +0 -51
  190. package/dist/navigation-DpqP-ahJ.js +0 -241
  191. package/dist/repeating-field-B4OhsaGB.js +0 -488
  192. package/dist/venue-DLkL7xdj.js +0 -12
  193. /package/dist/checkout-libs/{4.3.138 → 4.3.139}/phone.js +0 -0
  194. /package/dist/checkout-libs/{4.3.138 → 4.3.139}/qrcode.js +0 -0
  195. /package/dist/locales/{4.3.138 → 4.3.139}/flow/de.js +0 -0
  196. /package/dist/locales/{4.3.138 → 4.3.139}/flow/es.js +0 -0
  197. /package/dist/locales/{4.3.138 → 4.3.139}/flow/fr.js +0 -0
  198. /package/dist/locales/{4.3.138 → 4.3.139}/flow/id.js +0 -0
  199. /package/dist/locales/{4.3.138 → 4.3.139}/flow/it.js +0 -0
  200. /package/dist/locales/{4.3.138 → 4.3.139}/flow/ja.js +0 -0
  201. /package/dist/locales/{4.3.138 → 4.3.139}/flow/ko.js +0 -0
  202. /package/dist/locales/{4.3.138 → 4.3.139}/flow/nl.js +0 -0
  203. /package/dist/locales/{4.3.138 → 4.3.139}/flow/pl.js +0 -0
  204. /package/dist/locales/{4.3.138 → 4.3.139}/flow/pt-br.js +0 -0
  205. /package/dist/locales/{4.3.138 → 4.3.139}/flow/tr.js +0 -0
  206. /package/dist/locales/{4.3.138 → 4.3.139}/flow/zh.js +0 -0
  207. /package/dist/looks/{4.3.138 → 4.3.139}/micdrop-wordmark-BYMG6vLR.svg +0 -0
  208. /package/dist/looks/{4.3.138 → 4.3.139}/microphone-Ccv4r-kd.webp +0 -0
  209. /package/dist/looks/{4.3.138 → 4.3.139}/superuser-CZF6a5gO.webp +0 -0
  210. /package/dist/looks/{4.3.138 → 4.3.139}/treasury-DUE7lZzT.webp +0 -0
  211. /package/dist/looks/{4.3.138 → 4.3.139}/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-Yb2JY1qT.js";
6
+ import { t as d } from "./Badge-CmYqIClC.js";
7
+ import { t as f } from "./Button-Ch5dRGa2.js";
8
+ import { t as p } from "./Spinner-DgubkWKo.js";
9
+ import { t as m } from "./foundryRuntime-DKyfdkUY.js";
10
+ import { C as h, _ as g, f as _, h as v, i as y, m as b, p as x, r as ee, t as te, x as ne } from "./CalendarFoundryView-B5puOxH5.js";
11
+ import "svelte/internal/disclose-version";
12
+ import * as S from "svelte/internal/client";
13
+ import { SvelteSet as re } from "svelte/reactivity";
14
+ import { tick as ie, untrack as ae } from "svelte";
15
+ // node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/TrashIcon.svelte
16
+ var C = S.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>"), w = S.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), T = S.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
17
+ function E(e, t) {
18
+ S.push(t, !0);
19
+ let r = S.prop(t, "size", 3, "24"), i = S.prop(t, "color", 3, "currentColor"), a = S.prop(t, "class", 3, ""), o = n(), s = S.derived(() => t.weight ?? o?.weight ?? "regular");
20
+ var c = T();
21
+ let l;
22
+ var u = S.child(c), d = (e) => {
23
+ var t = C();
24
+ S.append(e, t);
25
+ }, f = (e) => {
26
+ var t = w();
27
+ S.next(4), S.append(e, t);
28
+ };
29
+ S.if(u, (e) => {
30
+ S.get(s) === "fill" ? e(d) : e(f, -1);
31
+ }), S.reset(c), S.template_effect(() => {
32
+ S.set_class(c, 0, S.clsx(a())), S.set_attribute(c, "width", r()), S.set_attribute(c, "height", r()), l = S.set_style(c, "", l, { color: i() === "currentColor" ? void 0 : i() });
33
+ }), S.append(e, c), S.pop();
34
+ }
35
+ // node_modules/@getmicdrop/svelte-components/dist/foundry/blocks/fields/repeating-field.svelte
36
+ var D = S.from_html("<span> </span>"), oe = S.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>"), se = S.from_html("<!> <!> <!>", 1), ce = S.from_html("<div></div>"), le = S.from_html("<div><!> <!> <!></div>"), ue = S.from_html("<div class=\"max-w-md\"><!> <!></div>"), de = S.from_html("<p> </p>"), fe = S.from_html("<div class=\"flex items-center gap-3\"><!> <!></div>"), pe = S.from_html("<div><!> <!></div> <!>", 1);
37
+ function O(n, C) {
38
+ S.push(C, !0);
39
+ let w = y(), T = m(), O = T.i18n, k = S.derived(() => C.field.repeating), A = S.derived(() => S.get(k)?.fields ?? []), j = S.derived(() => a(C.field, C.values[C.field.key])), M = S.derived(() => C.disabled === !0), me = S.derived(() => new Set(S.get(k)?.busyRows)), N = S.derived(() => S.get(k)?.addBySelection), P = S.derived(() => C.testId ? `${C.testId}.add` : void 0), he = S.derived(() => new Set(S.get(N) ? S.get(j).map((e) => e[S.get(N).field]).filter((e) => typeof e == "string" && e !== "") : [])), ge = S.derived(() => (S.get(N)?.options ?? []).filter((e) => !S.get(he).has(e.value))), _e = S.derived(() => new Map((S.get(N)?.options ?? []).map((e) => [e.value, e.label]))), F = S.derived(() => S.get(k)?.collapsibleRows), I = new re(), ve = (e) => !S.get(F) || I.has(e);
40
+ function ye(e) {
41
+ I.has(e) ? I.delete(e) : I.add(e);
42
+ }
43
+ function L(e) {
44
+ let t = S.get(F)?.summary.titleField;
45
+ if (!t) return "";
46
+ let n = e[t];
47
+ return S.get(N) && t === S.get(N).field && typeof n == "string" ? S.get(_e).get(n) ?? n : typeof n == "string" || typeof n == "number" ? String(n) : "";
48
+ }
49
+ function R(e) {
50
+ let t = S.get(F)?.summary;
51
+ if (!t) return "";
52
+ let n = t.summaryRef;
53
+ if (n && T.rowSummary) try {
54
+ let t = T.rowSummary.summarize({
55
+ reference: n,
56
+ row: e
57
+ });
58
+ if (t) return t;
59
+ } catch {}
60
+ return t.fallback ?? "";
61
+ }
62
+ let z = S.state(-1), B = S.derived(() => typeof S.get(k)?.maxRows == "number" && S.get(j).length >= S.get(k).maxRows), V = S.derived(() => typeof S.get(k)?.minRows == "number" && S.get(j).length <= S.get(k).minRows);
63
+ function H(e) {
64
+ C.set(C.field.key, l(e));
65
+ }
66
+ function be() {
67
+ S.get(M) || S.get(B) || U({});
68
+ }
69
+ function U(e) {
70
+ if (S.get(M) || S.get(B)) return;
71
+ let t = S.get(j).length;
72
+ Q(0), Z = [...Z, we++], H([...S.get(j), e]), S.get(F)?.expandNew && I.add(t);
73
+ }
74
+ function xe(e) {
75
+ S.get(M) || S.get(B) || !S.get(N) || !e || S.get(he).has(e) || U({ [S.get(N).field]: e });
76
+ }
77
+ function W(e) {
78
+ if (S.get(M) || S.get(V)) return;
79
+ let t = S.get(j);
80
+ if (e < 0 || e >= t.length) return;
81
+ let n = S.get(k)?.removeIntent;
82
+ if (n) {
83
+ if (!C.action) return;
84
+ let r = t[e]?.[n.keyField];
85
+ C.action(C.field.key, {
86
+ intent: n.intent,
87
+ label: S.get(k)?.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
+ S.get(k)?.removeConfirm ? S.set(z, e, !0) : W(e);
94
+ }
95
+ function Se(e, t, n) {
96
+ let r = S.get(j);
97
+ if (e < 0 || e >= r.length) return;
98
+ let i = `${C.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: `${C.field.key}.${t}.${e.key}`
108
+ };
109
+ }
110
+ function q(e, t) {
111
+ return C.controlId ? `${C.controlId}.${t}.${e.key}` : K(e, t).key;
112
+ }
113
+ function Ce(e, t) {
114
+ let n = {};
115
+ for (let r of S.get(A)) 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 !== S.get(j).length && (Z = S.get(j).map(() => we++)), Z[e];
125
+ }
126
+ let Te;
127
+ S.user_effect(() => {
128
+ let e = Y?.generation;
129
+ e !== Te && (Te = e, ae(() => {
130
+ X.reset(), Z = [];
131
+ }));
132
+ });
133
+ let Ee = (e, t) => `${Q(t)}:${e.key}`, De = 0;
134
+ S.user_effect(() => {
135
+ let e = Y?.focusRequest;
136
+ e && e.seq !== De && (De = e.seq, e.key === C.field.key && ae(() => Oe()));
137
+ });
138
+ function Oe() {
139
+ for (let [e, t] of S.get(j).entries()) {
140
+ let n = S.get(A).find((e) => c(e, t) && J(e, t) !== "");
141
+ if (n) {
142
+ S.get(F) && !I.has(e) && I.add(e), ie().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 S.get(A)) {
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 = pe(), $ = S.first_child(je);
170
+ S.attribute_effect($, (e) => ({
171
+ class: "flex flex-col gap-3",
172
+ ...e
173
+ }), [() => ee(C.field, C.wiring)]);
174
+ var Me = S.child($);
175
+ S.each(Me, 17, () => S.get(j), S.index, (e, t, n) => {
176
+ let a = S.derived(() => S.get(me).has(n)), o = S.derived(() => ve(n));
177
+ var s = le();
178
+ let l;
179
+ var u = S.child(s), m = (e) => {
180
+ var s = oe(), c = S.child(s), l = S.child(c);
181
+ {
182
+ let e = S.derived(() => S.get(o) ? "" : "-rotate-90");
183
+ r(l, { get class() {
184
+ return `size-4 shrink-0 transition-transform ${S.get(e) ?? ""}`;
185
+ } });
186
+ }
187
+ var u = S.sibling(l, 2), m = (e) => {
188
+ var n = D(), r = S.only_child(n, !0);
189
+ S.template_effect((e) => {
190
+ S.set_class(n, 1, `${i.label ?? ""} tone-primary truncate`), S.set_text(r, e);
191
+ }, [() => L(S.get(t))]), S.append(e, n);
192
+ }, h = S.derived(() => L(S.get(t)));
193
+ S.if(u, (e) => {
194
+ S.get(h) && e(m);
195
+ });
196
+ var g = S.sibling(u, 2), _ = (e) => {
197
+ d(e, {
198
+ size: "sm",
199
+ shape: "pill",
200
+ children: (e, n) => {
201
+ S.next();
202
+ var r = S.text();
203
+ S.template_effect((e) => S.set_text(r, e), [() => R(S.get(t))]), S.append(e, r);
204
+ },
205
+ $$slots: { default: !0 }
206
+ });
207
+ }, v = S.derived(() => R(S.get(t)));
208
+ S.if(g, (e) => {
209
+ S.get(v) && e(_);
210
+ }), S.reset(c);
211
+ var y = S.sibling(c, 2), b = (e) => {
212
+ p(e, { size: "sm" });
213
+ }, x = (e) => {
214
+ {
215
+ let t = S.derived(() => S.get(M) || S.get(V)), r = S.derived(() => S.get(k)?.removeLabel ?? O.common_remove()), i = S.derived(() => w(S.get(k)?.removeIntent?.intent));
216
+ f(e, {
217
+ variant: "alternative",
218
+ size: "sm",
219
+ get disabled() {
220
+ return S.get(t);
221
+ },
222
+ get "aria-label"() {
223
+ return S.get(r);
224
+ },
225
+ get "data-testid"() {
226
+ return S.get(i);
227
+ },
228
+ onclick: () => G(n),
229
+ children: (e, t) => {
230
+ E(e, { class: "size-4" });
231
+ },
232
+ $$slots: { default: !0 }
233
+ });
234
+ }
235
+ };
236
+ S.if(y, (e) => {
237
+ S.get(a) ? e(b) : e(x, -1);
238
+ }), S.reset(s), S.template_effect(() => S.set_attribute(c, "aria-expanded", S.get(o))), S.delegated("click", c, () => ye(n)), S.append(e, s);
239
+ };
240
+ S.if(u, (e) => {
241
+ S.get(F) && e(m);
242
+ });
243
+ var h = S.sibling(u, 2), g = (e) => {
244
+ var r = ce();
245
+ let i;
246
+ S.each(r, 23, () => S.get(A), (e, t) => `${t}:${e.key}`, (e, r) => {
247
+ var i = S.comment(), o = S.first_child(i), s = (e) => {
248
+ let i = S.derived(() => K(S.get(r), n)), o = S.derived(() => te(S.get(i))), s = S.derived(() => ke(S.get(r), S.get(t), n));
249
+ {
250
+ let c = S.derived(() => q(S.get(r), n));
251
+ v(e, {
252
+ get id() {
253
+ return S.get(c);
254
+ },
255
+ get error() {
256
+ return S.get(s);
257
+ },
258
+ children: (e, c) => {
259
+ var l = se(), u = S.first_child(l);
260
+ b(u, {
261
+ children: (e, t) => {
262
+ S.next();
263
+ var n = S.text();
264
+ S.template_effect(() => S.set_text(n, S.get(r).label)), S.append(e, n);
265
+ },
266
+ $$slots: { default: !0 }
267
+ });
268
+ var d = S.sibling(u, 2);
269
+ x(d, {
270
+ children: (e, c) => {
271
+ var l = S.comment(), u = S.first_child(l);
272
+ {
273
+ let e = S.derived(() => q(S.get(r), n)), c = S.derived(() => C.testId ? `${C.testId}.${n}.${S.get(r).key}` : void 0), l = S.derived(() => Ce(S.get(t), n)), d = S.derived(() => S.get(M) || S.get(a)), f = S.derived(() => !!S.get(s));
274
+ S.component(u, () => S.get(o), (t, r) => {
275
+ r(t, {
276
+ get field() {
277
+ return S.get(i);
278
+ },
279
+ get controlId() {
280
+ return S.get(e);
281
+ },
282
+ get testId() {
283
+ return S.get(c);
284
+ },
285
+ get values() {
286
+ return S.get(l);
287
+ },
288
+ get uploads() {
289
+ return C.uploads;
290
+ },
291
+ set: (e, t) => Se(n, e, t),
292
+ get disabled() {
293
+ return S.get(d);
294
+ },
295
+ get invalid() {
296
+ return S.get(f);
297
+ },
298
+ get action() {
299
+ return C.action;
300
+ },
301
+ get onaction() {
302
+ return C.onaction;
303
+ }
304
+ });
305
+ });
306
+ }
307
+ S.append(e, l);
308
+ },
309
+ $$slots: { default: !0 }
310
+ });
311
+ var f = S.sibling(d, 2), p = (e) => {
312
+ _(e, {});
313
+ };
314
+ S.if(f, (e) => {
315
+ S.get(s) && e(p);
316
+ }), S.append(e, l);
317
+ },
318
+ $$slots: { default: !0 }
319
+ });
320
+ }
321
+ }, l = S.derived(() => c(S.get(r), S.get(t)));
322
+ S.if(o, (e) => {
323
+ S.get(l) && e(s);
324
+ }), S.append(e, i);
325
+ }), S.reset(r), S.template_effect(() => i = S.set_class(r, 1, "grid min-w-0 flex-1 gap-3", null, i, { "mt-3": S.get(F) })), S.delegated("focusout", r, (e) => Ae(e, S.get(t), n)), S.append(e, r);
326
+ };
327
+ S.if(h, (e) => {
328
+ S.get(o) && e(g);
329
+ });
330
+ var y = S.sibling(h, 2), ee = (e) => {
331
+ var t = S.comment(), r = S.first_child(t), i = (e) => {
332
+ p(e, { size: "sm" });
333
+ }, o = (e) => {
334
+ {
335
+ let t = S.derived(() => S.get(M) || S.get(V)), r = S.derived(() => S.get(k)?.removeLabel ?? O.common_remove()), i = S.derived(() => w(S.get(k)?.removeIntent?.intent));
336
+ f(e, {
337
+ variant: "alternative",
338
+ size: "sm",
339
+ get disabled() {
340
+ return S.get(t);
341
+ },
342
+ get "aria-label"() {
343
+ return S.get(r);
344
+ },
345
+ get "data-testid"() {
346
+ return S.get(i);
347
+ },
348
+ onclick: () => G(n),
349
+ children: (e, t) => {
350
+ E(e, { class: "size-4" });
351
+ },
352
+ $$slots: { default: !0 }
353
+ });
354
+ }
355
+ };
356
+ S.if(r, (e) => {
357
+ S.get(a) ? e(i) : e(o, -1);
358
+ }), S.append(e, t);
359
+ };
360
+ S.if(y, (e) => {
361
+ S.get(F) || e(ee);
362
+ }), S.reset(s), S.template_effect(() => {
363
+ l = S.set_class(s, 1, "rounded-lg border border-stroke-primary bg-bg-secondary p-3", null, l, {
364
+ flex: !S.get(F),
365
+ "items-start": !S.get(F),
366
+ "gap-3": !S.get(F)
367
+ }), S.set_attribute(s, "aria-busy", S.get(a));
368
+ }), S.append(e, s);
369
+ });
370
+ var Ne = S.sibling(Me, 2), Pe = (e) => {
371
+ var t = S.comment(), n = S.first_child(t), r = (e) => {
372
+ var t = ue(), n = S.child(t), r = (e) => {
373
+ var t = D(), n = S.only_child(t, !0);
374
+ S.template_effect(() => {
375
+ S.set_class(t, 1, `${i.label ?? ""} tone-secondary mb-1.5 block`), S.set_text(n, S.get(j).length > 0 ? S.get(N).addAnotherLabel ?? S.get(N).label : S.get(N).label);
376
+ }), S.append(e, t);
377
+ };
378
+ S.if(n, (e) => {
379
+ (S.get(j).length > 0 ? S.get(N).addAnotherLabel ?? S.get(N).label : S.get(N).label) && e(r);
380
+ });
381
+ var a = S.sibling(n, 2);
382
+ {
383
+ let e = S.derived(() => S.get(ge).map((e) => ({
384
+ value: e.value,
385
+ name: e.label
386
+ }))), t = S.derived(() => S.get(N).placeholder ?? ""), n = S.derived(() => S.get(M) || S.get(B));
387
+ ne(a, {
388
+ value: "",
389
+ get items() {
390
+ return S.get(e);
391
+ },
392
+ get placeholder() {
393
+ return S.get(t);
394
+ },
395
+ get disabled() {
396
+ return S.get(n);
397
+ },
398
+ get "data-testid"() {
399
+ return S.get(P);
400
+ },
401
+ onchange: (e) => xe(e.value)
402
+ });
403
+ }
404
+ S.reset(t), S.append(e, t);
405
+ }, a = (e) => {
406
+ var t = de(), n = S.only_child(t, !0);
407
+ S.template_effect(() => {
408
+ S.set_class(t, 1, `${i.body ?? ""} tone-muted`), S.set_text(n, S.get(N).exhaustedLabel);
409
+ }), S.append(e, t);
410
+ };
411
+ S.if(n, (e) => {
412
+ S.get(ge).length > 0 ? e(r) : S.get(N).exhaustedLabel && e(a, 1);
413
+ }), S.append(e, t);
414
+ }, Fe = (e) => {
415
+ var t = fe(), n = S.child(t);
416
+ {
417
+ let e = S.derived(() => S.get(M) || S.get(B));
418
+ f(n, {
419
+ variant: "alternative",
420
+ size: "sm",
421
+ get disabled() {
422
+ return S.get(e);
423
+ },
424
+ get "data-testid"() {
425
+ return S.get(P);
426
+ },
427
+ onclick: be,
428
+ children: (e, t) => {
429
+ S.next();
430
+ var n = S.text();
431
+ S.template_effect((e) => S.set_text(n, e), [() => S.get(k)?.addLabel ?? O.common_add()]), S.append(e, n);
432
+ },
433
+ $$slots: { default: !0 }
434
+ });
435
+ }
436
+ var r = S.sibling(n, 2), a = (e) => {
437
+ var t = D(), n = S.only_child(t);
438
+ S.template_effect((e) => {
439
+ S.set_class(t, 1, `${i.caption ?? ""} tone-muted`), S.set_text(n, `${e ?? ""}: ${S.get(k)?.maxRows ?? ""}`);
440
+ }, [() => O.common_max()]), S.append(e, t);
441
+ };
442
+ S.if(r, (e) => {
443
+ S.get(B) && e(a);
444
+ }), S.reset(t), S.append(e, t);
445
+ };
446
+ S.if(Ne, (e) => {
447
+ S.get(N) ? e(Pe) : e(Fe, -1);
448
+ }), S.reset($);
449
+ var Ie = S.sibling($, 2), Le = (e) => {
450
+ {
451
+ let t = S.derived(() => S.get(z) >= 0), n = S.derived(() => S.get(k).removeConfirm.danger === !0 ? "danger" : "default"), r = S.derived(() => S.get(k).removeConfirm.confirmLabel ?? O.common_confirm()), i = S.derived(() => S.get(k).removeConfirm.cancelLabel ?? O.common_cancel()), a = S.derived(() => w(S.get(k).removeIntent?.intent && `${S.get(k).removeIntent.intent}.confirm`));
452
+ g(e, {
453
+ get open() {
454
+ return S.get(t);
455
+ },
456
+ get title() {
457
+ return S.get(k).removeConfirm.title;
458
+ },
459
+ get description() {
460
+ return S.get(k).removeConfirm.message;
461
+ },
462
+ get variant() {
463
+ return S.get(n);
464
+ },
465
+ get primaryButtonText() {
466
+ return S.get(r);
467
+ },
468
+ get secondaryButtonText() {
469
+ return S.get(i);
470
+ },
471
+ get confirmTestId() {
472
+ return S.get(a);
473
+ },
474
+ onconfirm: () => {
475
+ let e = S.get(z);
476
+ S.set(z, -1), W(e);
477
+ },
478
+ oncancel: () => S.set(z, -1),
479
+ onclose: () => S.set(z, -1)
480
+ });
481
+ }
482
+ };
483
+ S.if(Ie, (e) => {
484
+ S.get(k)?.removeConfirm && e(Le);
485
+ }), S.append(n, je), S.pop();
486
+ }
487
+ S.delegate(["click", "focusout"]);
488
+ export { O as default };
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./labels-CjSrA6gx.js";
2
- import { t } from "./href-DpbLXQ4c.js";
2
+ import { t } from "./href-BXhNawil.js";
3
3
  import { t as n } from "./foundryRuntime-DKyfdkUY.js";
4
- import { x as r } from "./CalendarFoundryView-DbxZNmY7.js";
4
+ import { S as r } from "./CalendarFoundryView-B5puOxH5.js";
5
5
  import "svelte/internal/disclose-version";
6
6
  import * as i from "svelte/internal/client";
7
7
  // node_modules/@getmicdrop/svelte-components/dist/recipes/RichTextEditor/RichTextEditor.svelte