@getmicdrop/venue-calendar 4.3.136 → 4.3.138

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. package/dist/{AddOnCard-Ck_b8lsf.js → AddOnCard-DEAC26HA.js} +102 -105
  2. package/dist/AppError-t1LnBwj_.js +30 -0
  3. package/dist/{ArrowLeftIcon-OhmQKtD4.js → ArrowLeftIcon-P8BRVhVl.js} +2 -3
  4. package/dist/Badge-CmYqIClC.js +51 -0
  5. package/dist/{BlockPlaceholder-Cjbm5hoG.js → BlockPlaceholder-BKfoE795.js} +30 -23
  6. package/dist/BottomSheet-D27k0B05.js +154 -0
  7. package/dist/Button-B1cBhdtC.js +234 -0
  8. package/dist/Button-B_gbGd63.js +149 -0
  9. package/dist/Calendar-9xskvKUf.js +395 -0
  10. package/dist/CalendarFoundryView-DbxZNmY7.js +16356 -0
  11. package/dist/{CalendarIcon-DCLzgpBo.js → CalendarIcon-MAVEqtql.js} +2 -3
  12. package/dist/{CloseOutline-qpVa62mu.js → CalendarOutline-CApIWx8i.js} +2 -3
  13. package/dist/CartView-DMINN6bY.js +2200 -0
  14. package/dist/{ChartBlock-SYOAO1s_.js → ChartBlock-DcsCXfX8.js} +85 -112
  15. package/dist/{CheckIcon-BjPbytbt.js → CheckIcon-BH9EAoee.js} +2 -3
  16. package/dist/{Checkbox-BtJwg_CF.js → Checkbox-sObkYRdj.js} +2 -3
  17. package/dist/Checkout-H9RGBU9D.js +1071 -0
  18. package/dist/Checkout-VnochAZE.js +1967 -0
  19. package/dist/{CheckoutTimer-DzYupNUI.js → CheckoutTimer-mjcYR3XU.js} +9 -11
  20. package/dist/{ChevronDownIcon-O-Q8C_Qg.js → ChevronDownIcon-Bkts84qA.js} +2 -3
  21. package/dist/{ChevronDownOutline-D7YDiKBF.js → ChevronDownOutline-kFgRY2cg.js} +1 -2
  22. package/dist/{ChevronRightOutline-CiG8UHni.js → ChevronRightOutline-D-5Qw6-Y.js} +2 -4
  23. package/dist/CloseIcon-DRlYvIPc.js +24 -0
  24. package/dist/{CollectionView-Dp529P99.js → CollectionView-C0vDg5oJ.js} +48 -58
  25. package/dist/CropImage-BWYeQXXA.js +547 -0
  26. package/dist/DatePicker-v-4ijT8N.js +650 -0
  27. package/dist/{EmptyState-CMFePII9.js → EmptyState-BhK78ogy.js} +10 -12
  28. package/dist/{Event-BHnHfeO-.js → Event-vlu8IAxh.js} +1181 -1187
  29. package/dist/{EventCard-DIFJADV7.js → EventCard-puoh3xag.js} +15 -15
  30. package/dist/{EventPage-DGrkeBd_.js → EventPage-DycxjX5Z.js} +391 -446
  31. package/dist/{ExclamationCircleOutline-D3XbhOwM.js → ExclamationCircleOutline-CPelT1Bu.js} +1 -2
  32. package/dist/FilterChipGroup-DUGvOaRI.js +103 -0
  33. package/dist/Grid-DRRXcWRE.js +41 -0
  34. package/dist/{Heading-vOVPxhJF.js → Heading-WcF3Rh3o.js} +4 -6
  35. package/dist/Image-dhbgrhG-.js +89 -0
  36. package/dist/ImageUploader-CKrf5amy.js +1050 -0
  37. package/dist/{Input-BG9DbwUe.js → Input-BQk4itex.js} +43 -43
  38. package/dist/LiveRegion-Ds0mjIVj.js +17 -0
  39. package/dist/{LocationIcon-BEx96ng8.js → LocationIcon-BNPEzWv2.js} +3 -5
  40. package/dist/{Modal-rt9KVfYa.js → Modal-DOpDiAwN.js} +3 -4
  41. package/dist/ModalFooter-gFaDKsfj.js +299 -0
  42. package/dist/ModalTitle-CS5AGwrU.js +26 -0
  43. package/dist/{PasswordInput-BQdpZ9HL.js → PasswordInput-C65GqxdF.js} +11 -13
  44. package/dist/{PhoneInput-5l-M5ykF.js → PhoneInput-Dj1I3bEn.js} +80 -89
  45. package/dist/{RecommendationsRail-BRthm1Iu.js → RecommendationsRail-DC5qX1ei.js} +145 -159
  46. package/dist/RequiredIndicator-CRZ_coyR.js +16 -0
  47. package/dist/{ScarcityBadge-Dt0r5r2M.js → ScarcityBadge-BAaV2CIY.js} +37 -41
  48. package/dist/Search-BE64QcmK.js +82 -0
  49. package/dist/SearchIcon-BzOhoKm8.js +24 -0
  50. package/dist/{SeriesPage-0sHD6hcq.js → SeriesPage-Cx89s2B6.js} +6 -7
  51. package/dist/SheetHandle-CCfYCPbY.js +66 -0
  52. package/dist/Skeleton-B6qB_udJ.js +31 -0
  53. package/dist/SkeletonLoader-DfW0N9R3.js +121 -0
  54. package/dist/{Spinner-e-Mg0Eyb.js → Spinner-Bj4dr9kO.js} +7 -7
  55. package/dist/Stack-Ck1wrJ0l.js +34 -0
  56. package/dist/{Success-DWdMk7gp.js → Success-D3CrUeka.js} +273 -305
  57. package/dist/{TagIcon-BIJYPXYq.js → TagIcon-Dp7n6eKU.js} +2 -3
  58. package/dist/{Textarea-Cymhixzd.js → Textarea-BDcuBI13.js} +11 -11
  59. package/dist/TimePicker-HYzPI_Dc.js +215 -0
  60. package/dist/ValidationError-BxKB_SVA.js +48 -0
  61. package/dist/{ViewTicketsEmbed-CjH3N_VJ.js → ViewTicketsEmbed-DzUCgtA3.js} +227 -244
  62. package/dist/{WarningCircleIcon-Uuc8KHJN.js → WarningCircleIcon-jC3nXehu.js} +4 -7
  63. package/dist/{WarningTriIcon-SX24XObM.js → WarningTriIcon-BMa-jcUr.js} +2 -3
  64. package/dist/{__SKIP_NAVIGATION__-AOx8SI54.js → __SKIP_NAVIGATION__-Znm_vYcG.js} +1 -2
  65. package/dist/{__SKIP_PATHS__-C0ixDSSm.js → __SKIP_PATHS__-Bzzrca_a.js} +1 -2
  66. package/dist/address-field-BwGHcMKY.js +295 -0
  67. package/dist/{href-ZuPjzr6t.js → allowlist-Bt1BHhNd.js} +244 -315
  68. package/dist/api/api.cjs +1 -1
  69. package/dist/api/api.mjs +213 -227
  70. package/dist/api/cta.d.ts +4 -0
  71. package/dist/api/events.d.ts +13 -0
  72. package/dist/api-CRHFSJDI.js +502 -0
  73. package/dist/avatar-picker-field-CSF5okeM.js +115 -0
  74. package/dist/{browser-BzcyBbWS.js → browser-DEUBVMmV.js} +8 -9
  75. package/dist/bundle-mjs-COnlheJX.js +1776 -0
  76. package/dist/{buyerEmail-BfCq-gDt.js → buyerEmail-CvPpEiON.js} +2 -3
  77. package/dist/calendar-Cdu8fCIt.js +111 -0
  78. package/dist/checkout-libs/4.3.138/phone.js +6 -0
  79. package/dist/checkout-libs/{4.3.136 → 4.3.138}/qrcode.js +3 -3
  80. package/dist/{checkoutState-wrwq9TD7.js → checkoutState-BDNjJRMG.js} +7 -10
  81. package/dist/classNames-CPSQ9uy4.js +25 -0
  82. package/dist/clickOutside-D448uRpo.js +22 -0
  83. package/dist/{client-SmFkruvn.js → client-BIN_q-of.js} +4 -7
  84. package/dist/colors-CdP193E5.js +106 -0
  85. package/dist/colors-D67OMr_8.js +22 -0
  86. package/dist/{constants-D_7LswXe.js → constants-DrFV2oht.js} +3 -5
  87. package/dist/controlAria-Do9QK0WI.js +13 -0
  88. package/dist/{copyToClipboard-BzoArVPb.js → copyToClipboard-CjNjDZeW.js} +3 -5
  89. package/dist/createErrorGate.svelte-DUXI6Yor.js +82 -0
  90. package/dist/cta-qbcIt5Gh.js +116 -0
  91. package/dist/date-field-3tgOYbzF.js +88 -0
  92. package/dist/date-range-field-D0Aq9me9.js +163 -0
  93. package/dist/datetime-BlEsN_-8.js +176 -0
  94. package/dist/{de-DC0pKC1H.js → de-CUrE_4a4.js} +1 -2
  95. package/dist/{de-BbjhLBzm.js → de-vKpbo9Zl.js} +1 -2
  96. package/dist/defaultLabels-CybwJCNn.js +563 -0
  97. package/dist/defaults-B5wyre5O.js +148 -0
  98. package/dist/deprecation-BCjqE5lW.js +4 -0
  99. package/dist/{dist-bwbfGPKR.js → dist-Dptst9ym.js} +2 -4
  100. package/dist/{es-38yS4d3G.js → es-8qe0Mo-8.js} +1 -2
  101. package/dist/{es-DxoJfXOC.js → es-B2-z2Kft.js} +1 -2
  102. package/dist/{event-DXsgCbu0.js → event-CEg17hts.js} +3 -4
  103. package/dist/event-transform-DqFigNQg.js +250 -0
  104. package/dist/{eventStatusStream-JWP2AXnQ.js → eventStatusStream-DK5fWCTB.js} +4 -7
  105. package/dist/field-rules-CKFFB16Q.js +416 -0
  106. package/dist/file-field-2mPz4Da-.js +210 -0
  107. package/dist/{filepond-plugin-file-validate-size-DNnItZ84.js → filepond-plugin-file-validate-size-CuNOjGbP.js} +20 -27
  108. package/dist/{filepond-plugin-file-validate-type-CUMTkI8X.js → filepond-plugin-file-validate-type-CVtQwdIK.js} +25 -27
  109. package/dist/{filepond-plugin-image-exif-orientation-GEwHZTBU.js → filepond-plugin-image-exif-orientation-CMPs7yGQ.js} +21 -23
  110. package/dist/{filepond-plugin-image-preview-DKfgAnVa.js → filepond-plugin-image-preview-DKsOZAGe.js} +12 -27
  111. package/dist/{floatingPosition-XIv5DYuP.js → floatingPosition-BCUPmGCN.js} +8 -13
  112. package/dist/format-CypC4vWs.js +1587 -0
  113. package/dist/formatters-CzKNRUwz.js +113 -0
  114. package/dist/foundryRuntime-DKyfdkUY.js +13 -0
  115. package/dist/{fr-LivMhlfx.js → fr-BmpShjUG.js} +1 -2
  116. package/dist/{fr-DCdoZpLm.js → fr-CiePVIlj.js} +1 -2
  117. package/dist/{gate-password-cache-oOcDm9Ki.js → gate-password-cache-zIbewXQ2.js} +1 -2
  118. package/dist/heic-to-BoLfsr3l.js +70 -0
  119. package/dist/hexToHsl-D-BPy03y.js +24 -0
  120. package/dist/href-DpbLXQ4c.js +18 -0
  121. package/dist/{i18n-Xwod-PFp.js → i18n-B_TWnExv.js} +148 -150
  122. package/dist/i18n-CSaUFnlD.js +26 -0
  123. package/dist/iconWeight-BRXEDAh2.js +12 -0
  124. package/dist/{id-XuEVsPu6.js → id-Ttw95_7t.js} +1 -2
  125. package/dist/{id-BvOr8-aw.js → id-_6GFAYBn.js} +1 -2
  126. package/dist/image-field-B8x0WQ2j.js +139 -0
  127. package/dist/{imageUrl-xyMedKrE.js → imageUrl-iAS2Xo17.js} +1 -2
  128. package/dist/instant-BkZCSGDm.js +162 -0
  129. package/dist/{it-RdUTxnO5.js → it-CBbXcFY1.js} +1 -2
  130. package/dist/{it-mzikQJIm.js → it-Dc-H_PdY.js} +1 -2
  131. package/dist/{ja-DgVJimHs.js → ja-B2Tag7J3.js} +1 -2
  132. package/dist/{ja-D9PSUNMd.js → ja-Cobhk-xH.js} +1 -2
  133. package/dist/keyboard-Dk2PfrEz.js +28 -0
  134. package/dist/{ko-CcPM8_aU.js → ko-CcTn4lAi.js} +1 -2
  135. package/dist/{ko-DEgW43V6.js → ko-CyTlg6vA.js} +1 -2
  136. package/dist/labels-CjSrA6gx.js +9 -0
  137. package/dist/{labels-BGvfcm36.js → labels-D8LN8lY7.js} +1 -2
  138. package/dist/{lazyOnce-CCfEO1xG.js → lazyOnce-jG8k1apa.js} +1 -2
  139. package/dist/loaders.static-Bw9asjrm.js +3 -0
  140. package/dist/logger-DM8WW61-.js +89 -0
  141. package/dist/look-island.svelte-B7UH_QVv.js +1270 -0
  142. package/dist/look-names-JI6GE-Zj.js +175 -0
  143. package/dist/looks/4.3.138/looks.js +248 -0
  144. package/dist/media-field-HieD0ye0.js +65 -0
  145. package/dist/modalManager.svelte-BvyrTI6p.js +51 -0
  146. package/dist/multiselect-field-CJ4lUJyS.js +61 -0
  147. package/dist/{navigation-D6W4anEV.js → navigation-DpqP-ahJ.js} +28 -32
  148. package/dist/{nl-DjFukZvI.js → nl-BObQMscG.js} +1 -2
  149. package/dist/{nl-DdxH5fLm.js → nl-DeIqgjIs.js} +1 -2
  150. package/dist/{normalizers-CqGXhPZo.js → normalizers-WYh8Nr3V.js} +3 -5
  151. package/dist/number-field-D5GkkGLB.js +126 -0
  152. package/dist/numeric-filter-field-CRWZFu_P.js +131 -0
  153. package/dist/password-field-DdOHXEOo.js +157 -0
  154. package/dist/phone-CVYVhLn8.js +5 -0
  155. package/dist/phone-field-BaYmp56f.js +129 -0
  156. package/dist/{phoneShape-DlWC17He.js → phoneShape-VqbamHOn.js} +1 -2
  157. package/dist/{phoneUtils-CL8tIxoM.js → phoneUtils-BhOvrS4S.js} +133 -193
  158. package/dist/{pixels-DO7kbZa_.js → pixels-BXXzmoCb.js} +12 -18
  159. package/dist/{pl-B99nQZCh.js → pl-Bm2FcD5y.js} +1 -2
  160. package/dist/{pl-COAiNJDs.js → pl-_Sbz4Ou-.js} +1 -2
  161. package/dist/portal-BSuo4flQ.js +64 -0
  162. package/dist/portalContainment-DSZUw-No.js +78 -0
  163. package/dist/{pt-br-_KntrgGE.js → pt-br-CpmhafxS.js} +1 -2
  164. package/dist/{pt-br-jT56QM8s.js → pt-br-XS1Lsa6z.js} +1 -2
  165. package/dist/qrcode-By7ce_6K.js +5 -0
  166. package/dist/repeating-field-B4OhsaGB.js +488 -0
  167. package/dist/richtext-field-KmUytgBW.js +212 -0
  168. package/dist/{rolldown-runtime-DtPi1Y-2.js → rolldown-runtime-CYdcPHCu.js} +2 -3
  169. package/dist/searchable-select-field-DettZRav.js +138 -0
  170. package/dist/select-field-Wc4gAtou.js +72 -0
  171. package/dist/seo/seo.cjs +1 -1
  172. package/dist/seo/seo.mjs +24 -42
  173. package/dist/seo/types.d.ts +4 -1
  174. package/dist/serverTotals-COsx7Mc5.js +950 -0
  175. package/dist/{showcase-state-options-D5UTR7zF.js → showcase-state-options-CHGUaZtl.js} +5 -5
  176. package/dist/sizing-Chy28j6-.js +61 -0
  177. package/dist/{sortable.esm--ZtTTTPp.js → sortable.esm-Wq6bSSEz.js} +29 -49
  178. package/dist/spacing-Y1dLegqt.js +48 -0
  179. package/dist/{src-DZgagYE3.js → src-BpVpi-n3.js} +256 -398
  180. package/dist/time-field-CnxZcziR.js +53 -0
  181. package/dist/to-event-card-props-C9v9dspT.js +245 -0
  182. package/dist/{tr-8IIuKwpQ.js → tr-CN8DGCc-.js} +1 -2
  183. package/dist/{tr-B5sI__p7.js → tr-zKAbMfgi.js} +1 -2
  184. package/dist/transitions-DST-mWoo.js +201 -0
  185. package/dist/tree-picker-field-aqux58EQ.js +344 -0
  186. package/dist/types/index.d.ts +2 -1
  187. package/dist/typography-CKwYSv07.js +57 -0
  188. package/dist/{utils-S6mZHEaC.js → utils-AIszIHUb.js} +8 -11
  189. package/dist/variants-B46fK2iV.js +63 -0
  190. package/dist/{venue-BBoZBuhu.js → venue-DLkL7xdj.js} +1 -2
  191. package/dist/venue-calendar.css +1 -1
  192. package/dist/venue-calendar.es.js +1636 -1802
  193. package/dist/venue-calendar.iife.js +24 -39
  194. package/dist/venue-calendar.umd.js +68 -76
  195. package/dist/{widget-key-context-Xn6MT23x.js → widget-key-context-BrWW0fyM.js} +28 -43
  196. package/dist/{zh-apNTBV5B.js → zh-BaZ_hYJV.js} +1 -2
  197. package/dist/{zh-DLwlt3JO.js → zh-DHfgJplH.js} +1 -2
  198. package/package.json +14 -14
  199. package/src/lib/theme.js +222 -222
  200. package/dist/Button-B58iYo_t.js +0 -1951
  201. package/dist/Button-VUB2WJ88.js +0 -178
  202. package/dist/Calendar-B6yNPdBl.js +0 -466
  203. package/dist/CalendarFoundryView-BfGZj-_Z.js +0 -21608
  204. package/dist/CartView-CA_wZlil.js +0 -2304
  205. package/dist/Checkout-C_Dn_RZI.js +0 -1878
  206. package/dist/Checkout-JdT81S88.js +0 -1082
  207. package/dist/CloseIcon-40klpaYz.js +0 -35
  208. package/dist/CropImage-D1M-bKxG.js +0 -548
  209. package/dist/Grid-kuP6V0GW.js +0 -89
  210. package/dist/ModalFooter-Cru7v0io.js +0 -394
  211. package/dist/ModalHeader-CpgkuttK.js +0 -18
  212. package/dist/action-test-id-7RXdHucW.js +0 -145
  213. package/dist/adapter-z116JHU0.js +0 -164
  214. package/dist/api-Dvn2tGdx.js +0 -489
  215. package/dist/checkout-libs/4.3.136/phone.js +0 -6
  216. package/dist/controlAria-CGb-KeRn.js +0 -30
  217. package/dist/createErrorGate.svelte-CZVc_TpX.js +0 -114
  218. package/dist/cta-CTb57V0F.js +0 -116
  219. package/dist/datetime-Co_z9IUQ.js +0 -410
  220. package/dist/defaultLabels-Q5_A1ZrR.js +0 -2558
  221. package/dist/defaults-BDbx3_c0.js +0 -96
  222. package/dist/event-transform-iOZIJrTf.js +0 -353
  223. package/dist/i18n-cI0EPfvw.js +0 -28
  224. package/dist/imageOptimizer-Gew5vPWh.js +0 -224
  225. package/dist/keyboard-DhCcdIyh.js +0 -55
  226. package/dist/loaders.static-xwcJwfk2.js +0 -4
  227. package/dist/look-island.svelte-BldqMkPS.js +0 -1305
  228. package/dist/looks/4.3.136/looks.js +0 -242
  229. package/dist/modalManager.svelte-Cz_6x1Qd.js +0 -37
  230. package/dist/phone-D76_-CNi.js +0 -6
  231. package/dist/portal-D-oaEWsY.js +0 -43
  232. package/dist/portalContainment-CeAVqIb-.js +0 -281
  233. package/dist/qrcode-Cehaq1db.js +0 -6
  234. package/dist/serverTotals-C-S3hONA.js +0 -712
  235. package/dist/sizing-B7ixYndz.js +0 -216
  236. package/dist/to-event-card-props-CPYickue.js +0 -205
  237. /package/dist/locales/{4.3.136 → 4.3.138}/flow/de.js +0 -0
  238. /package/dist/locales/{4.3.136 → 4.3.138}/flow/es.js +0 -0
  239. /package/dist/locales/{4.3.136 → 4.3.138}/flow/fr.js +0 -0
  240. /package/dist/locales/{4.3.136 → 4.3.138}/flow/id.js +0 -0
  241. /package/dist/locales/{4.3.136 → 4.3.138}/flow/it.js +0 -0
  242. /package/dist/locales/{4.3.136 → 4.3.138}/flow/ja.js +0 -0
  243. /package/dist/locales/{4.3.136 → 4.3.138}/flow/ko.js +0 -0
  244. /package/dist/locales/{4.3.136 → 4.3.138}/flow/nl.js +0 -0
  245. /package/dist/locales/{4.3.136 → 4.3.138}/flow/pl.js +0 -0
  246. /package/dist/locales/{4.3.136 → 4.3.138}/flow/pt-br.js +0 -0
  247. /package/dist/locales/{4.3.136 → 4.3.138}/flow/tr.js +0 -0
  248. /package/dist/locales/{4.3.136 → 4.3.138}/flow/zh.js +0 -0
  249. /package/dist/locales/{4.3.136 → 4.3.138}/main/de.js +0 -0
  250. /package/dist/locales/{4.3.136 → 4.3.138}/main/es.js +0 -0
  251. /package/dist/locales/{4.3.136 → 4.3.138}/main/fr.js +0 -0
  252. /package/dist/locales/{4.3.136 → 4.3.138}/main/id.js +0 -0
  253. /package/dist/locales/{4.3.136 → 4.3.138}/main/it.js +0 -0
  254. /package/dist/locales/{4.3.136 → 4.3.138}/main/ja.js +0 -0
  255. /package/dist/locales/{4.3.136 → 4.3.138}/main/ko.js +0 -0
  256. /package/dist/locales/{4.3.136 → 4.3.138}/main/nl.js +0 -0
  257. /package/dist/locales/{4.3.136 → 4.3.138}/main/pl.js +0 -0
  258. /package/dist/locales/{4.3.136 → 4.3.138}/main/pt-br.js +0 -0
  259. /package/dist/locales/{4.3.136 → 4.3.138}/main/tr.js +0 -0
  260. /package/dist/locales/{4.3.136 → 4.3.138}/main/zh.js +0 -0
  261. /package/dist/looks/{4.3.136 → 4.3.138}/micdrop-wordmark-BYMG6vLR.svg +0 -0
  262. /package/dist/looks/{4.3.136 → 4.3.138}/microphone-Ccv4r-kd.webp +0 -0
  263. /package/dist/looks/{4.3.136 → 4.3.138}/superuser-CZF6a5gO.webp +0 -0
  264. /package/dist/looks/{4.3.136 → 4.3.138}/treasury-DUE7lZzT.webp +0 -0
  265. /package/dist/looks/{4.3.136 → 4.3.138}/user-image-yuS4errP.svg +0 -0
package/dist/api/cta.d.ts CHANGED
@@ -36,6 +36,10 @@ interface CtaEvent {
36
36
  }
37
37
  interface CtaTicket {
38
38
  salesChannel?: number;
39
+ /** The backend-resolved window for a relative-offset ticket; the raw
40
+ * `salesBegin`/`salesEnd` can be stale beside it, so these win. */
41
+ effectiveSalesBegin?: string | null;
42
+ effectiveSalesEnd?: string | null;
39
43
  salesBegin?: string | null;
40
44
  salesStart?: string | null;
41
45
  saleBegin?: string | null;
@@ -84,6 +84,19 @@ export declare function fetchVenueEvents(venueId: string | number, req?: Pick<Ap
84
84
  export interface MonthReadOptions {
85
85
  fresh?: boolean;
86
86
  }
87
+ /**
88
+ * Park the first month a widget config carried, so the organization month read
89
+ * that the calendar makes on mount is answered from it (MIC-6380).
90
+ *
91
+ * `firstMonth` is the config's `firstMonth` — `{ year, month, events }`, month
92
+ * 1-12 — and anything else is ignored, which leaves the calendar fetching its
93
+ * month exactly as before. The calendar opens on the visitor's local month; if
94
+ * the API answered a different one (a visitor in another timezone around a
95
+ * month change), the keys differ and nothing is taken from here.
96
+ *
97
+ * Returns whether a month was parked.
98
+ */
99
+ export declare function primeOrgMonthEvents(orgId: string | number, firstMonth: unknown, req?: Pick<ApiRequestOptions, 'widgetKey'>): boolean;
87
100
  export declare function getMonthEventsResult(venueId: string | number, year: number, month: number, options?: MonthReadOptions, req?: Pick<ApiRequestOptions, 'widgetKey'>): Promise<Result<Event[]>>;
88
101
  export declare function getMonthEvents(venueId: string | number, year: number, month: number, req?: Pick<ApiRequestOptions, 'widgetKey'>): Promise<Event[]>;
89
102
  /**
@@ -0,0 +1,502 @@
1
+ import { t as e } from "./logger-DM8WW61-.js";
2
+ import { d as t, v as n } from "./instant-BkZCSGDm.js";
3
+ import { t as r } from "./AppError-t1LnBwj_.js";
4
+ import { s as i } from "./formatters-CzKNRUwz.js";
5
+ import { a, i as o } from "./normalizers-WYh8Nr3V.js";
6
+ import { C as s, d as ee } from "./widget-key-context-BrWW0fyM.js";
7
+ import { c, f as te, n as l, r as u, s as d, t as ne, u as f } from "./client-BIN_q-of.js";
8
+ import { l as p } from "./navigation-DpqP-ahJ.js";
9
+ // node_modules/@getmicdrop/svelte-components/dist/utils/liveAnnouncer.js
10
+ var m = null;
11
+ function re() {
12
+ return m && document.body.contains(m) || (m = document.createElement("div"), m.id = "a11y-live-region", m.setAttribute("role", "status"), m.setAttribute("aria-live", "polite"), m.setAttribute("aria-atomic", "true"), m.className = "sr-only", Object.assign(m.style, {
13
+ position: "absolute",
14
+ width: "1px",
15
+ height: "1px",
16
+ padding: "0",
17
+ margin: "-1px",
18
+ overflow: "hidden",
19
+ clip: "rect(0, 0, 0, 0)",
20
+ whiteSpace: "nowrap",
21
+ border: "0"
22
+ }), document.body.appendChild(m)), m;
23
+ }
24
+ function h(e, t = {}) {
25
+ if (typeof document > "u") return;
26
+ let { politeness: n = "polite", atomic: r = !0, delay: i = 100 } = t, a = re();
27
+ a.setAttribute("aria-live", n), a.setAttribute("aria-atomic", String(r)), a.textContent = "", setTimeout(() => {
28
+ typeof document < "u" && a.isConnected && (a.textContent = e);
29
+ }, i);
30
+ }
31
+ function g(e = 500) {
32
+ let t = null;
33
+ return (n, r) => {
34
+ t && clearTimeout(t), t = setTimeout(() => {
35
+ h(n, r), t = null;
36
+ }, e);
37
+ };
38
+ }
39
+ // node_modules/@getmicdrop/svelte-components/dist/errors/classes/NotFoundError.js
40
+ var _ = class extends r {
41
+ constructor(e, t) {
42
+ let n = t ? `${e} with ID ${t} not found` : `${e} not found`;
43
+ super(n, "NOT_FOUND", {
44
+ status: 404,
45
+ recoverable: !1,
46
+ details: {
47
+ resourceType: e,
48
+ resourceId: t
49
+ }
50
+ }), this.name = "NotFoundError", this.resourceType = e, this.resourceId = t;
51
+ }
52
+ getUserMessage(e) {
53
+ return a(e)?.fromCode?.(this.code) || o(this.resourceType.toLowerCase());
54
+ }
55
+ }, v = e("VC");
56
+ function y(e, t) {
57
+ if (e === 404) return "Promo code isn't valid.";
58
+ let n = (t ?? "").toLowerCase();
59
+ return e === 400 ? n.includes("not yet active") ? "Promo code doesn't apply." : n.includes("expired") ? "Promo code expired." : n.includes("limit") ? "Promo code has reached its limit." : "Promo code isn't valid." : "Failed to validate code";
60
+ }
61
+ async function b(e, t, n) {
62
+ try {
63
+ if (!t || !t.trim()) return {
64
+ valid: !1,
65
+ error: "Promo code is required"
66
+ };
67
+ let r = encodeURIComponent(t.trim()), i = await l(`/promo-codes/validate/${e}/${r}`, { widgetKey: n?.widgetKey });
68
+ if (!i.success) return {
69
+ valid: !1,
70
+ error: y(i.statusCode, i.error)
71
+ };
72
+ let a = i.data;
73
+ return {
74
+ valid: a.valid ?? !0,
75
+ revealHiddenTickets: a.revealHiddenTickets,
76
+ revealTicketIds: a.revealTicketIds,
77
+ provideDiscount: a.provideDiscount,
78
+ discountType: a.discountType,
79
+ amount: a.discount ?? a.amount,
80
+ code: a.name || a.code || t,
81
+ appliesToAllTickets: a.appliesToAllTickets,
82
+ applyToTicketIds: a.applyToTicketIds
83
+ };
84
+ } catch (e) {
85
+ return v.error("Error validating promo code:", e), {
86
+ valid: !1,
87
+ error: "Network error validating code"
88
+ };
89
+ }
90
+ }
91
+ async function ie(e, t) {
92
+ try {
93
+ let n = await l(`/promo-codes/check/${e}`, { widgetKey: t?.widgetKey });
94
+ return !n.success || n.data.hasPromoCodes === !0;
95
+ } catch (e) {
96
+ return v.error("Error checking promo codes availability:", e), !0;
97
+ }
98
+ }
99
+ async function ae(e, t, n, r) {
100
+ try {
101
+ let i = { promoCode: t };
102
+ n && Object.keys(n).length > 0 && (i.productQuantities = n);
103
+ let a = await u(`${d()}/cart/${e}/apply-promo`, i, { widgetKey: r?.widgetKey });
104
+ return a.success ? { success: !0 } : {
105
+ success: !1,
106
+ error: a.error || "Failed to apply promo code"
107
+ };
108
+ } catch (e) {
109
+ return v.error("Error applying promo code:", e), {
110
+ success: !1,
111
+ error: "Network error applying code"
112
+ };
113
+ }
114
+ }
115
+ // src/lib/api/result.ts
116
+ function x(e) {
117
+ return {
118
+ ok: !0,
119
+ data: e
120
+ };
121
+ }
122
+ function S(e) {
123
+ return {
124
+ ok: !1,
125
+ error: e
126
+ };
127
+ }
128
+ function C(e) {
129
+ return {
130
+ ok: !1,
131
+ error: e,
132
+ notFound: !0
133
+ };
134
+ }
135
+ function w(e, t) {
136
+ return e.ok ? e.data : t;
137
+ }
138
+ // src/lib/api/route-manifest.ts
139
+ var T = "/api/v2/public", E = "/api/orders/v2/public", D = "/api/orders/v2", O = "00000000-0000-0000-0000-000000000000";
140
+ `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}`, `${T}`, `${T}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}`, `${T}`, `${T}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}`, `${T}`, `${T}`, `${T}`, `${T}${O}`, `${E}`, `${E}`, `${E}`, `${E}${O}`, `${E}`, `${E}${O}`, `${E}`, `${E}${O}`, `${E}`, `${E}${O}`, `${E}`, `${E}${O}`, `${E}`, `${E}${O}`, `${E}`, `${E}${O}`, `${E}`, `${E}${O}`, `${E}`, `${E}${O}`, `${D}`, `${D}`, `${E}`, `${E}`, `${E}`, `${E}`, `${E}`, `${E}${O}`, `${T}`, `${T}${O}`;
141
+ // src/lib/api/events.ts
142
+ var k = e("VC"), A = /* @__PURE__ */ new Map();
143
+ async function j(e, t = fetch, n, r) {
144
+ let i = n ? `${e}:pw` : String(e), a = `${r?.widgetKey ?? ""}|${i}`;
145
+ if (t === fetch) {
146
+ let e = A.get(a);
147
+ if (e) return e;
148
+ }
149
+ let o = (async () => {
150
+ try {
151
+ let i = await t(n ? `${c()}/events/${e}?password=${encodeURIComponent(n)}` : `${c()}/events/${e}`, { headers: te(void 0, r?.widgetKey) });
152
+ if (!i.ok) return i.status === 404 ? C("event_not_found") : (k.error(`Failed to fetch event details: ${i.status}`), S("event_fetch_failed"));
153
+ let a = await i.json();
154
+ return a ? x(a) : C("event_not_found");
155
+ } catch (e) {
156
+ return k.error("Error fetching event details:", e), S("event_fetch_failed");
157
+ }
158
+ })();
159
+ return t === fetch && (A.set(a, o), o.finally(() => {
160
+ A.get(a) === o && A.delete(a);
161
+ })), o;
162
+ }
163
+ async function M(e, t = fetch, n, r) {
164
+ let i = await j(e, t, n, r);
165
+ return i.ok ? i.data : null;
166
+ }
167
+ async function N(e, t, n = (e) => e, r) {
168
+ try {
169
+ let i = await f(e, { widgetKey: r?.widgetKey });
170
+ return i ? x(n(i)) : (k.error(`Failed to load (${t}): network or server error`), S(t));
171
+ } catch (e) {
172
+ return k.error(`Error loading (${t}):`, e), S(t);
173
+ }
174
+ }
175
+ function P(e) {
176
+ return Array.isArray(e) ? e : [];
177
+ }
178
+ async function F(e, t, n) {
179
+ let r = t?.trim(), i = r ? `?promoCode=${encodeURIComponent(r)}` : "";
180
+ return N(`${c()}/tickets/event/${e}${i}`, "tickets_fetch_failed", P, n);
181
+ }
182
+ async function I(e, t, n) {
183
+ return w(await F(e, t, n), []);
184
+ }
185
+ async function L(e, t) {
186
+ return e ? N(`${c()}/venues/organization/${e}`, "venues_fetch_failed", P, t) : (k.warn("fetchAllVenues called without orgId"), S("venues_missing_org_id"));
187
+ }
188
+ async function R(e, t) {
189
+ return w(await L(e, t), []);
190
+ }
191
+ function z(e) {
192
+ return Array.isArray(e) ? e : Array.isArray(e.events) ? e.events : [];
193
+ }
194
+ var B = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), H = 3e4;
195
+ function U(e, t) {
196
+ return `${t?.widgetKey ?? ""}|${e}`;
197
+ }
198
+ function W(e, t, n) {
199
+ if (!t || typeof t != "object") return !1;
200
+ let { year: r, month: i, events: a } = t;
201
+ if (!Number.isInteger(r) || !Number.isInteger(i) || i < 1 || i > 12 || !Array.isArray(a)) return !1;
202
+ let o = G(e, r, i);
203
+ return V.set(U(o, n), {
204
+ events: a,
205
+ at: Date.now()
206
+ }), !0;
207
+ }
208
+ function G(e, t, n) {
209
+ return `${c()}/events/organization/${e}/month/${t}/${n}`;
210
+ }
211
+ function K(e) {
212
+ let t = V.get(e);
213
+ return !t || (V.delete(e), Date.now() - t.at > H) ? null : t.events;
214
+ }
215
+ function q(e, t, n, r) {
216
+ let i = U(e, r);
217
+ if (n?.fresh) V.delete(i);
218
+ else {
219
+ let e = B.get(i);
220
+ if (e) return e;
221
+ let t = K(i);
222
+ if (t) return Promise.resolve(x(t));
223
+ }
224
+ let a = N(e, t, (e) => z(e), r);
225
+ return B.set(i, a), a.finally(() => {
226
+ B.get(i) === a && B.delete(i);
227
+ }), a;
228
+ }
229
+ async function J(e, t, n, r, i) {
230
+ return q(`${c()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", r, i);
231
+ }
232
+ async function oe(e, t, n, r, i) {
233
+ return q(G(e, t, n), "org_month_events_fetch_failed", r, i);
234
+ }
235
+ async function se(e, t, n) {
236
+ return N(`${c()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed", void 0, n);
237
+ }
238
+ async function ce(e, t, n) {
239
+ let r = await se(e, t, n);
240
+ return r.ok ? r.data : null;
241
+ }
242
+ async function le(e, t, n) {
243
+ try {
244
+ let r = t ? `?slug=${encodeURIComponent(t)}` : "", i = await f(`${c()}/resolve/${encodeURIComponent(String(e))}${r}`, { widgetKey: n?.widgetKey });
245
+ if (!i || !i.type) throw new _("entity", String(e));
246
+ return i;
247
+ } catch (e) {
248
+ return k.error("Error resolving public entity:", e), null;
249
+ }
250
+ }
251
+ async function Y(e, t, n) {
252
+ try {
253
+ let r = t ? `${c()}/collections/${e}?password=${encodeURIComponent(t)}` : `${c()}/collections/${e}`, i = await f(r, { widgetKey: n?.widgetKey });
254
+ if (!i) throw new _("collection", String(e));
255
+ return i;
256
+ } catch (e) {
257
+ return k.error("Error fetching collection:", e), null;
258
+ }
259
+ }
260
+ async function ue(e, t, n) {
261
+ try {
262
+ let r = await f(`${c()}/events/${e}/check-password`, {
263
+ method: "POST",
264
+ headers: { "Content-Type": "application/json" },
265
+ body: JSON.stringify({ password: t }),
266
+ widgetKey: n?.widgetKey
267
+ });
268
+ return typeof r == "boolean" ? { valid: r } : { valid: r?.valid === !0 };
269
+ } catch (e) {
270
+ return k.error("Error checking event password:", e), { valid: !1 };
271
+ }
272
+ }
273
+ // src/lib/api/venues.ts
274
+ var X = e("VC");
275
+ async function de(e, t) {
276
+ try {
277
+ if (!e) return X.warn("getVenue called without venueId"), null;
278
+ let n = await l(`/venues/${e}`, { widgetKey: t?.widgetKey });
279
+ return n.success ? n.data ?? null : (X.error(`Failed to fetch venue: ${n.statusCode}`), null);
280
+ } catch (e) {
281
+ return X.error("Error fetching venue:", e), null;
282
+ }
283
+ }
284
+ async function fe(e, t) {
285
+ let n = p(e);
286
+ if (!n) return !1;
287
+ try {
288
+ let e = await l(`/sites/by-host/${encodeURIComponent(new URL(n).host)}`, { widgetKey: t?.widgetKey });
289
+ return !!(e.success && e.data);
290
+ } catch (e) {
291
+ return X.warn("hasPublishedSite failed:", e), !1;
292
+ }
293
+ }
294
+ // src/lib/api/transformers/giftCard.ts
295
+ function Z(e, t) {
296
+ return e == null || t(e);
297
+ }
298
+ function pe(e) {
299
+ if (typeof e != "object" || !e) return !1;
300
+ let t = e;
301
+ return t.valid === !0 && Number.isInteger(t.appliedAmount) && typeof t.remainingTotal == "number" && Number.isFinite(t.remainingTotal) && Z(t.giftCardCode, (e) => typeof e == "string") && Z(t.giftCardBalance, (e) => typeof e == "number" && Number.isFinite(e)) && Z(t.fullyCoveredByCard, (e) => typeof e == "boolean");
302
+ }
303
+ var me = "We couldn't apply that gift card. Please try again.";
304
+ function he(e) {
305
+ if (!pe(e)) return {
306
+ valid: !1,
307
+ error: me
308
+ };
309
+ let r = e, i = t(n(r.appliedAmount)), a = r.remainingTotal, o = r.fullyCoveredByCard ?? a <= 0, s = !o;
310
+ return {
311
+ valid: !0,
312
+ giftCardCode: r.giftCardCode ?? void 0,
313
+ giftCardAmount: i,
314
+ giftCardBalance: r.giftCardBalance ?? void 0,
315
+ paymentType: o ? "gift_card_only" : "split",
316
+ stripeAmount: a,
317
+ orderTotal: i + a,
318
+ requiresStripe: s
319
+ };
320
+ }
321
+ // src/lib/api/gift-cards.ts
322
+ var Q = e("VC");
323
+ async function ge(e, t, n) {
324
+ try {
325
+ let r = await u(`${d()}/cart/${e}/apply-gift-card`, { giftCardCode: t }, { widgetKey: n?.widgetKey });
326
+ if (!r.success) return r.statusCode === 429 ? {
327
+ valid: !1,
328
+ error: "Too many attempts. Please wait a moment and try again."
329
+ } : (Q.error("Apply gift card failed:", r.error), {
330
+ valid: !1,
331
+ error: r.error || "Invalid gift card code"
332
+ });
333
+ let i = he(r.data);
334
+ return i.valid || Q.error("Apply gift card returned an unusable payload:", r.data), i;
335
+ } catch (e) {
336
+ return Q.error("applyGiftCard error:", e), {
337
+ valid: !1,
338
+ error: "Network error. Please check your connection and try again."
339
+ };
340
+ }
341
+ }
342
+ async function _e(e, t, n) {
343
+ try {
344
+ let r = t?.giftCardId ? { giftCardId: t.giftCardId } : t?.code ? { giftCardCode: t.code } : null, i = await ne(`${d()}/cart/${e}/gift-card`, r ? {
345
+ body: JSON.stringify(r),
346
+ widgetKey: n?.widgetKey
347
+ } : { widgetKey: n?.widgetKey });
348
+ if (!i.success) return Q.error("Remove gift card failed:", i.error), {
349
+ success: !1,
350
+ error: i.error || "Failed to remove gift card"
351
+ };
352
+ let a = i.data ?? {}, o = a.newTotal ?? a.NewTotal;
353
+ return {
354
+ success: !0,
355
+ ...typeof o == "number" ? { remainingTotal: o } : {}
356
+ };
357
+ } catch (e) {
358
+ return Q.error("removeGiftCard error:", e), {
359
+ success: !1,
360
+ error: "Network error. Please check your connection and try again."
361
+ };
362
+ }
363
+ }
364
+ async function ve(e, t, n, r) {
365
+ let a = ee(n);
366
+ try {
367
+ let n = await u(`${d()}/cart/${e}/complete-gift-card-payment`, {
368
+ customerName: i(t.firstName, t.lastName),
369
+ customerEmail: t.email,
370
+ firstName: t.firstName,
371
+ lastName: t.lastName,
372
+ email: t.email,
373
+ phoneNumber: t.phoneNumber || null,
374
+ questionAnswer: t.questionAnswer || "",
375
+ mailingList: t.mailingList || !1,
376
+ attribution: s(),
377
+ ...a ? { locale: a } : {}
378
+ }, { widgetKey: r?.widgetKey });
379
+ return n.success ? {
380
+ success: !0,
381
+ orderId: n.data?.orderId,
382
+ confirmationNumber: n.data?.confirmationNumber
383
+ } : (Q.error("Complete gift card payment failed:", n.error), {
384
+ success: !1,
385
+ error: n.error || "Failed to complete payment"
386
+ });
387
+ } catch (e) {
388
+ return Q.error("completeGiftCardPayment error:", e), {
389
+ success: !1,
390
+ error: "Network error. Please check your connection and try again."
391
+ };
392
+ }
393
+ }
394
+ // src/lib/api/cart-addons.ts
395
+ var ye = e("VC");
396
+ async function be(e, t, n) {
397
+ let r = (e) => ({
398
+ success: !1,
399
+ error: e,
400
+ lines: [],
401
+ addOnQuantity: 0,
402
+ repriced: !1
403
+ });
404
+ if (!e) return r(null);
405
+ let i = {};
406
+ for (let [e, n] of Object.entries(t)) {
407
+ let t = typeof e == "number" ? e : parseInt(e, 10);
408
+ !Number.isNaN(t) && n > 0 && (i[t] = n);
409
+ }
410
+ try {
411
+ let t = await u(`${d()}/cart/${e}/add-ons`, { addOnQuantities: i }, { widgetKey: n?.widgetKey });
412
+ if (!t.success) return r(t.error || null);
413
+ let a = t.data || {};
414
+ return {
415
+ success: !0,
416
+ error: null,
417
+ lines: a.addOns || [],
418
+ addOnQuantity: a.addOnQuantity || 0,
419
+ repriced: a.repriced === !0
420
+ };
421
+ } catch (e) {
422
+ return ye.error("updateCartAddOns error:", e), r(null);
423
+ }
424
+ }
425
+ // src/lib/api/waitlist.ts
426
+ var $ = e("VC");
427
+ async function xe(e, t, n = null, r = !1, i) {
428
+ try {
429
+ let a = { email: t };
430
+ n && r && (a.phone = n, a.smsOptIn = !0);
431
+ let o = await u(`/events/${e}/waitlist`, a, { widgetKey: i?.widgetKey });
432
+ return o.success ? {
433
+ success: !0,
434
+ updated: o.data?.updated,
435
+ position: o.data?.position
436
+ } : ($.error("Join waitlist failed:", o.error), {
437
+ success: !1,
438
+ errorCode: o.error || "join_failed"
439
+ });
440
+ } catch (e) {
441
+ return $.error("joinWaitlist error:", e), {
442
+ success: !1,
443
+ errorCode: "network_error"
444
+ };
445
+ }
446
+ }
447
+ async function Se(e, t, n) {
448
+ try {
449
+ let r = await u(`/checkout/validate-token/${e}`, { email: t }, { widgetKey: n?.widgetKey });
450
+ return r.success ? {
451
+ valid: !0,
452
+ eventId: r.data?.eventId ?? 0,
453
+ expiresAt: r.data?.expiresAt
454
+ } : {
455
+ valid: !1,
456
+ eventId: 0,
457
+ errorCode: r.error
458
+ };
459
+ } catch (e) {
460
+ return $.error("validateWaitlistToken error:", e), {
461
+ valid: !1,
462
+ eventId: 0,
463
+ errorCode: "invalid_token"
464
+ };
465
+ }
466
+ }
467
+ async function Ce(e, t, n) {
468
+ try {
469
+ let r = await u(`/waitlist/requeue/${e}`, { email: t }, { widgetKey: n?.widgetKey });
470
+ return r.success ? { success: !0 } : {
471
+ success: !1,
472
+ errorCode: r.error
473
+ };
474
+ } catch (e) {
475
+ return $.error("requeueWaitlistToFront error:", e), {
476
+ success: !1,
477
+ errorCode: "internal_error"
478
+ };
479
+ }
480
+ }
481
+ async function we(e, t) {
482
+ let n = {
483
+ waitlistEnabled: !1,
484
+ soldOut: !1,
485
+ gated: !1
486
+ };
487
+ try {
488
+ let r = await l(`/events/${e}/waitlist/status`, { widgetKey: t?.widgetKey });
489
+ return r.success ? {
490
+ waitlistEnabled: !!r.data?.waitlistEnabled,
491
+ soldOut: !!r.data?.soldOut,
492
+ gated: !!r.data?.gated
493
+ } : n;
494
+ } catch (e) {
495
+ return $.error("getWaitlistStatus error:", e), n;
496
+ }
497
+ }
498
+ function Te(e) {
499
+ let t = String(e % 60).padStart(2, "0");
500
+ return e >= 3600 ? `${Math.floor(e / 3600)}:${String(Math.floor(e % 3600 / 60)).padStart(2, "0")}:${t}` : `${Math.floor(e / 60)}:${t}`;
501
+ }
502
+ export { ae as C, g as D, h as E, le as S, b as T, Y as _, Se as a, oe as b, ve as c, fe as d, ue as f, F as g, I as h, Ce as i, _e as l, M as m, we as n, be as o, R as p, xe as r, ge as s, Te as t, de as u, ce as v, ie as w, W as x, J as y };
@@ -0,0 +1,115 @@
1
+ import { t as e } from "./Search-BE64QcmK.js";
2
+ import { a as t } from "./allowlist-Bt1BHhNd.js";
3
+ import { i as n } from "./typography-CKwYSv07.js";
4
+ import { F as r, d as i } from "./field-rules-CKFFB16Q.js";
5
+ import { t as a } from "./Checkbox-sObkYRdj.js";
6
+ import { t as o } from "./foundryRuntime-DKyfdkUY.js";
7
+ import { r as s } from "./CalendarFoundryView-DbxZNmY7.js";
8
+ import "svelte/internal/disclose-version";
9
+ import * as c from "svelte/internal/client";
10
+ // node_modules/@getmicdrop/svelte-components/dist/foundry/blocks/fields/avatar-picker-field.svelte
11
+ var l = c.from_html("<span> </span>"), u = c.from_html("<span class=\"flex min-w-0 flex-col\"><span> </span> <!></span>"), d = c.from_html("<div class=\"flex items-center gap-3 px-3 py-2 hover:bg-muted\"><!> <div class=\"min-w-0 flex-1\"><!></div></div>"), f = c.from_html("<p> </p>"), p = c.from_html("<div><!> <div class=\"max-h-72 overflow-y-auto rounded-lg border border-stroke-primary bg-bg-secondary\"><!> <!></div></div>");
12
+ function m(m, h) {
13
+ c.push(h, !0);
14
+ let g = o().i18n, _ = c.state(""), v = c.derived(() => i(h.field)), y = c.derived(() => r(h.values[h.field.key])), b = c.derived(() => h.disabled === !0), x = c.derived(() => {
15
+ let e = c.get(_).trim().toLowerCase();
16
+ return e ? c.get(v).filter((t) => `${t.label} ${t.description ?? ""}`.toLowerCase().includes(e)) : c.get(v);
17
+ });
18
+ function S(e, t) {
19
+ let n = t ? [...c.get(y), e] : c.get(y).filter((t) => t !== e);
20
+ h.set(h.field.key, c.get(v).map((e) => e.value).filter((e) => n.includes(e)));
21
+ }
22
+ var C = p();
23
+ c.attribute_effect(C, (e) => ({
24
+ class: "flex flex-col gap-3",
25
+ ...e
26
+ }), [() => s(h.field, h.wiring)]);
27
+ var w = c.child(C);
28
+ {
29
+ let t = c.derived(() => h.controlId ?? h.field.key), n = c.derived(() => h.testId ?? h.controlId ?? h.field.key), r = c.derived(() => g.common_search());
30
+ e(w, {
31
+ get id() {
32
+ return `${c.get(t) ?? ""}-search`;
33
+ },
34
+ get "data-testid"() {
35
+ return `${c.get(n) ?? ""}-search`;
36
+ },
37
+ get value() {
38
+ return c.get(_);
39
+ },
40
+ get placeholder() {
41
+ return c.get(r);
42
+ },
43
+ get disabled() {
44
+ return c.get(b);
45
+ },
46
+ oninput: (e) => c.set(_, e.currentTarget.value, !0)
47
+ });
48
+ }
49
+ var T = c.sibling(w, 2), E = c.child(T);
50
+ c.each(E, 19, () => c.get(x), (e, t) => `${t}:${e.value}`, (e, r) => {
51
+ var i = d(), o = c.child(i), s = (e) => {
52
+ t(e, {
53
+ get src() {
54
+ return c.get(r).image;
55
+ },
56
+ alt: "",
57
+ size: "sm"
58
+ });
59
+ }, f = (e) => {
60
+ {
61
+ let n = c.derived(() => c.get(r).label.slice(0, 2));
62
+ t(e, {
63
+ get initials() {
64
+ return c.get(n);
65
+ },
66
+ size: "sm"
67
+ });
68
+ }
69
+ };
70
+ c.if(o, (e) => {
71
+ c.get(r).image ? e(s) : e(f, -1);
72
+ });
73
+ var p = c.sibling(o, 2), m = c.child(p);
74
+ {
75
+ let e = c.derived(() => c.get(y).includes(c.get(r).value)), t = c.derived(() => c.get(b) || c.get(r).disabled === !0);
76
+ a(m, {
77
+ get value() {
78
+ return c.get(r).value;
79
+ },
80
+ get checked() {
81
+ return c.get(e);
82
+ },
83
+ get disabled() {
84
+ return c.get(t);
85
+ },
86
+ onchange: (e) => S(c.get(r).value, e.checked),
87
+ children: (e, t) => {
88
+ var i = u(), a = c.child(i), o = c.only_child(a, !0), s = c.sibling(a, 2), d = (e) => {
89
+ var t = l(), i = c.only_child(t, !0);
90
+ c.template_effect(() => {
91
+ c.set_class(t, 1, `${n.caption ?? ""} tone-muted`), c.set_text(i, c.get(r).description);
92
+ }), c.append(e, t);
93
+ };
94
+ c.if(s, (e) => {
95
+ c.get(r).description && e(d);
96
+ }), c.reset(i), c.template_effect(() => {
97
+ c.set_class(a, 1, c.clsx(n.label)), c.set_text(o, c.get(r).label);
98
+ }), c.append(e, i);
99
+ },
100
+ $$slots: { default: !0 }
101
+ });
102
+ }
103
+ c.reset(p), c.reset(i), c.append(e, i);
104
+ });
105
+ var D = c.sibling(E, 2), O = (e) => {
106
+ var t = f(), r = c.only_child(t, !0);
107
+ c.template_effect((e) => {
108
+ c.set_class(t, 1, `${n.caption ?? ""} px-3 py-4 tone-muted`), c.set_text(r, e);
109
+ }, [() => g.common_no_data()]), c.append(e, t);
110
+ };
111
+ c.if(D, (e) => {
112
+ c.get(x).length === 0 && e(O);
113
+ }), c.reset(T), c.reset(C), c.append(m, C), c.pop();
114
+ }
115
+ export { m as default };
@@ -1,5 +1,5 @@
1
- import { t as e } from "./rolldown-runtime-DtPi1Y-2.js";
2
- //#region node_modules/qrcode/lib/can-promise.js
1
+ import { t as e } from "./rolldown-runtime-CYdcPHCu.js";
2
+ // node_modules/qrcode/lib/can-promise.js
3
3
  var t = /* @__PURE__ */ e(((e, t) => {
4
4
  t.exports = function() {
5
5
  return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
@@ -783,8 +783,8 @@ var t = /* @__PURE__ */ e(((e, t) => {
783
783
  }, i.prototype.getBitsLength = function() {
784
784
  return i.getBitsLength(this.data.length);
785
785
  }, i.prototype.write = function(e) {
786
- let t;
787
- for (t = 0; t + 2 <= this.data.length; t += 2) {
786
+ let t = 0;
787
+ for (; t + 2 <= this.data.length; t += 2) {
788
788
  let n = r.indexOf(this.data[t]) * 45;
789
789
  n += r.indexOf(this.data[t + 1]), e.put(n, 11);
790
790
  }
@@ -816,8 +816,8 @@ var t = /* @__PURE__ */ e(((e, t) => {
816
816
  }, a.prototype.getBitsLength = function() {
817
817
  return a.getBitsLength(this.data.length);
818
818
  }, a.prototype.write = function(e) {
819
- let t;
820
- for (t = 0; t < this.data.length; t++) {
819
+ let t = 0;
820
+ for (; t < this.data.length; t++) {
821
821
  let n = i.toSJIS(this.data[t]);
822
822
  if (n >= 33088 && n <= 40956) n -= 33088;
823
823
  else if (n >= 57408 && n <= 60351) n -= 49472;
@@ -1163,12 +1163,12 @@ var t = /* @__PURE__ */ e(((e, t) => {
1163
1163
  }
1164
1164
  e.render = function(e, i, a) {
1165
1165
  let o = a, s = i;
1166
- o === void 0 && (!i || !i.getContext) && (o = i, i = void 0), i || (s = r()), o = t.getOptions(o);
1166
+ o !== void 0 || i && i.getContext || (o = i, i = void 0), i || (s = r()), o = t.getOptions(o);
1167
1167
  let c = t.getImageWidth(e.modules.size, o), l = s.getContext("2d"), u = l.createImageData(c, c);
1168
1168
  return t.qrToImageData(u.data, e, o), n(l, s, c), l.putImageData(u, 0, 0), s;
1169
1169
  }, e.renderToDataURL = function(t, n, r) {
1170
1170
  let i = r;
1171
- i === void 0 && (!n || !n.getContext) && (i = n, n = void 0), i ||= {};
1171
+ i !== void 0 || n && n.getContext || (i = n, n = void 0), i ||= {};
1172
1172
  let a = e.render(t, n, i), o = i.type || "image/png", s = i.rendererOpts || {};
1173
1173
  return a.toDataURL(o, s.quality);
1174
1174
  };
@@ -1223,6 +1223,5 @@ var t = /* @__PURE__ */ e(((e, t) => {
1223
1223
  return a.render(e, n);
1224
1224
  });
1225
1225
  }));
1226
- //#endregion
1227
1226
  export default O();
1228
1227
  export { O as t };