@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.
Files changed (266) hide show
  1. package/dist/AddOnCard-DEAC26HA.js +348 -0
  2. package/dist/AppError-t1LnBwj_.js +30 -0
  3. package/dist/{ArrowLeftIcon-CezkuCvg.js → ArrowLeftIcon-P8BRVhVl.js} +2 -3
  4. package/dist/Badge-CmYqIClC.js +51 -0
  5. package/dist/{BlockPlaceholder-BBrehfrB.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-Y6_CP1BO.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-BFlrM9LP.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-CfGllYB_.js → CheckoutTimer-mjcYR3XU.js} +9 -11
  20. package/dist/{ChevronDownIcon-CmTx77Iz.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-CKVGypsb.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-C2BfY4hq.js → Event-vlu8IAxh.js} +1241 -1220
  29. package/dist/{EventCard-uMW7-Yc7.js → EventCard-puoh3xag.js} +15 -15
  30. package/dist/EventPage-DycxjX5Z.js +1301 -0
  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-C0BCVQQ5.js → Input-BQk4itex.js} +124 -140
  38. package/dist/LiveRegion-Ds0mjIVj.js +17 -0
  39. package/dist/{LocationIcon-Ct8LQDag.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-DpeH_g-Z.js → PasswordInput-C65GqxdF.js} +11 -13
  44. package/dist/{PhoneInput-5l-M5ykF.js → PhoneInput-Dj1I3bEn.js} +80 -89
  45. package/dist/{RecommendationsRail-DL03xY8R.js → RecommendationsRail-DC5qX1ei.js} +145 -159
  46. package/dist/RequiredIndicator-CRZ_coyR.js +16 -0
  47. package/dist/{ScarcityBadge-BB4ZD_8N.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-lhbMdwIi.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-DNaDFSCe.js → Spinner-Bj4dr9kO.js} +7 -7
  55. package/dist/Stack-Ck1wrJ0l.js +34 -0
  56. package/dist/Success-D3CrUeka.js +1022 -0
  57. package/dist/{TagIcon-MVcV8ylU.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-DzUCgtA3.js +641 -0
  62. package/dist/{WarningCircleIcon-ch-94kEe.js → WarningCircleIcon-jC3nXehu.js} +4 -7
  63. package/dist/{WarningTriIcon-DFjb-boV.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-q4ZIwqKC.js → allowlist-Bt1BHhNd.js} +244 -315
  68. package/dist/api/api.cjs +1 -1
  69. package/dist/api/api.mjs +214 -227
  70. package/dist/api/cta.d.ts +4 -0
  71. package/dist/api/events.d.ts +13 -0
  72. package/dist/api/types.d.ts +2 -0
  73. package/dist/api-CRHFSJDI.js +502 -0
  74. package/dist/avatar-picker-field-CSF5okeM.js +115 -0
  75. package/dist/{browser-DxdP6IWt.js → browser-DEUBVMmV.js} +9 -9
  76. package/dist/bundle-mjs-COnlheJX.js +1776 -0
  77. package/dist/{buyerEmail-BfCq-gDt.js → buyerEmail-CvPpEiON.js} +2 -3
  78. package/dist/calendar-Cdu8fCIt.js +111 -0
  79. package/dist/checkout-libs/4.3.138/phone.js +6 -0
  80. package/dist/checkout-libs/4.3.138/qrcode.js +8 -0
  81. package/dist/{checkoutState-wrwq9TD7.js → checkoutState-BDNjJRMG.js} +7 -10
  82. package/dist/classNames-CPSQ9uy4.js +25 -0
  83. package/dist/clickOutside-D448uRpo.js +22 -0
  84. package/dist/{client-SmFkruvn.js → client-BIN_q-of.js} +4 -7
  85. package/dist/colors-CdP193E5.js +106 -0
  86. package/dist/colors-D67OMr_8.js +22 -0
  87. package/dist/{Text-CqjLjIF8.js → constants-DrFV2oht.js} +19 -14
  88. package/dist/controlAria-Do9QK0WI.js +13 -0
  89. package/dist/{copyToClipboard-Cy_-50GG.js → copyToClipboard-CjNjDZeW.js} +3 -5
  90. package/dist/createErrorGate.svelte-DUXI6Yor.js +82 -0
  91. package/dist/cta-qbcIt5Gh.js +116 -0
  92. package/dist/date-field-3tgOYbzF.js +88 -0
  93. package/dist/date-range-field-D0Aq9me9.js +163 -0
  94. package/dist/datetime-BlEsN_-8.js +176 -0
  95. package/dist/{de-lc43hoya.js → de-CUrE_4a4.js} +2 -3
  96. package/dist/{de-DyiE1KNg.js → de-vKpbo9Zl.js} +2 -2
  97. package/dist/defaultLabels-CybwJCNn.js +563 -0
  98. package/dist/defaults-B5wyre5O.js +148 -0
  99. package/dist/deprecation-BCjqE5lW.js +4 -0
  100. package/dist/{dist-bwbfGPKR.js → dist-Dptst9ym.js} +2 -4
  101. package/dist/{es-DhoitI_1.js → es-8qe0Mo-8.js} +2 -2
  102. package/dist/{es-B0uSu40a.js → es-B2-z2Kft.js} +2 -3
  103. package/dist/{event-9wBbeiK2.js → event-CEg17hts.js} +3 -4
  104. package/dist/event-transform-DqFigNQg.js +250 -0
  105. package/dist/{eventStatusStream-JWP2AXnQ.js → eventStatusStream-DK5fWCTB.js} +4 -7
  106. package/dist/field-rules-CKFFB16Q.js +416 -0
  107. package/dist/file-field-2mPz4Da-.js +210 -0
  108. package/dist/{filepond-plugin-file-validate-size-DNnItZ84.js → filepond-plugin-file-validate-size-CuNOjGbP.js} +20 -27
  109. package/dist/{filepond-plugin-file-validate-type-CUMTkI8X.js → filepond-plugin-file-validate-type-CVtQwdIK.js} +25 -27
  110. package/dist/{filepond-plugin-image-exif-orientation-GEwHZTBU.js → filepond-plugin-image-exif-orientation-CMPs7yGQ.js} +21 -23
  111. package/dist/{filepond-plugin-image-preview-DKfgAnVa.js → filepond-plugin-image-preview-DKsOZAGe.js} +12 -27
  112. package/dist/{floatingPosition-XIv5DYuP.js → floatingPosition-BCUPmGCN.js} +8 -13
  113. package/dist/format-CypC4vWs.js +1587 -0
  114. package/dist/formatters-CzKNRUwz.js +113 -0
  115. package/dist/foundryRuntime-DKyfdkUY.js +13 -0
  116. package/dist/{fr-DB--_n56.js → fr-BmpShjUG.js} +2 -2
  117. package/dist/{fr-CzTFVHUe.js → fr-CiePVIlj.js} +2 -3
  118. package/dist/{gate-password-cache-oOcDm9Ki.js → gate-password-cache-zIbewXQ2.js} +1 -2
  119. package/dist/heic-to-BoLfsr3l.js +70 -0
  120. package/dist/hexToHsl-D-BPy03y.js +24 -0
  121. package/dist/href-DpbLXQ4c.js +18 -0
  122. package/dist/{i18n-DUMRUvVc.js → i18n-B_TWnExv.js} +148 -150
  123. package/dist/i18n-CSaUFnlD.js +26 -0
  124. package/dist/iconWeight-BRXEDAh2.js +12 -0
  125. package/dist/{id-BGqV9_gI.js → id-Ttw95_7t.js} +2 -3
  126. package/dist/{id-CMQRjMxp.js → id-_6GFAYBn.js} +2 -2
  127. package/dist/image-field-B8x0WQ2j.js +139 -0
  128. package/dist/{imageUrl-xyMedKrE.js → imageUrl-iAS2Xo17.js} +1 -2
  129. package/dist/instant-BkZCSGDm.js +162 -0
  130. package/dist/{it-B_BQgPWl.js → it-CBbXcFY1.js} +2 -3
  131. package/dist/{it-hBxsIHz2.js → it-Dc-H_PdY.js} +2 -2
  132. package/dist/{ja-BGWo7WDj.js → ja-B2Tag7J3.js} +2 -3
  133. package/dist/{ja-D1vfwJgB.js → ja-Cobhk-xH.js} +2 -2
  134. package/dist/keyboard-Dk2PfrEz.js +28 -0
  135. package/dist/{ko-FKSzdHrm.js → ko-CcTn4lAi.js} +2 -3
  136. package/dist/{ko-CRTegEJ4.js → ko-CyTlg6vA.js} +2 -2
  137. package/dist/labels-CjSrA6gx.js +9 -0
  138. package/dist/{constants-D4yEpZuQ.js → labels-D8LN8lY7.js} +4 -4
  139. package/dist/{lazyOnce-CCfEO1xG.js → lazyOnce-jG8k1apa.js} +1 -2
  140. package/dist/loaders.static-Bw9asjrm.js +3 -0
  141. package/dist/locales/{4.3.135 → 4.3.138}/flow/de.js +1 -1
  142. package/dist/locales/{4.3.135 → 4.3.138}/flow/es.js +1 -1
  143. package/dist/locales/{4.3.135 → 4.3.138}/flow/fr.js +1 -1
  144. package/dist/locales/{4.3.135 → 4.3.138}/flow/id.js +1 -1
  145. package/dist/locales/{4.3.135 → 4.3.138}/flow/it.js +1 -1
  146. package/dist/locales/{4.3.135 → 4.3.138}/flow/ja.js +1 -1
  147. package/dist/locales/{4.3.135 → 4.3.138}/flow/ko.js +1 -1
  148. package/dist/locales/{4.3.135 → 4.3.138}/flow/nl.js +1 -1
  149. package/dist/locales/{4.3.135 → 4.3.138}/flow/pl.js +1 -1
  150. package/dist/locales/{4.3.135 → 4.3.138}/flow/pt-br.js +1 -1
  151. package/dist/locales/{4.3.135 → 4.3.138}/flow/tr.js +1 -1
  152. package/dist/locales/{4.3.135 → 4.3.138}/flow/zh.js +1 -1
  153. package/dist/locales/{4.3.135 → 4.3.138}/main/de.js +1 -1
  154. package/dist/locales/{4.3.135 → 4.3.138}/main/es.js +1 -1
  155. package/dist/locales/{4.3.135 → 4.3.138}/main/fr.js +1 -1
  156. package/dist/locales/{4.3.135 → 4.3.138}/main/id.js +1 -1
  157. package/dist/locales/{4.3.135 → 4.3.138}/main/it.js +1 -1
  158. package/dist/locales/{4.3.135 → 4.3.138}/main/ja.js +1 -1
  159. package/dist/locales/{4.3.135 → 4.3.138}/main/ko.js +1 -1
  160. package/dist/locales/{4.3.135 → 4.3.138}/main/nl.js +1 -1
  161. package/dist/locales/{4.3.135 → 4.3.138}/main/pl.js +1 -1
  162. package/dist/locales/{4.3.135 → 4.3.138}/main/pt-br.js +1 -1
  163. package/dist/locales/{4.3.135 → 4.3.138}/main/tr.js +1 -1
  164. package/dist/locales/{4.3.135 → 4.3.138}/main/zh.js +1 -1
  165. package/dist/logger-DM8WW61-.js +89 -0
  166. package/dist/look-island.svelte-B7UH_QVv.js +1270 -0
  167. package/dist/look-names-JI6GE-Zj.js +175 -0
  168. package/dist/looks/4.3.138/looks.js +248 -0
  169. package/dist/media-field-HieD0ye0.js +65 -0
  170. package/dist/modalManager.svelte-BvyrTI6p.js +51 -0
  171. package/dist/multiselect-field-CJ4lUJyS.js +61 -0
  172. package/dist/{navigation-Cochv2HZ.js → navigation-DpqP-ahJ.js} +28 -32
  173. package/dist/{nl-DhUZIqb8.js → nl-BObQMscG.js} +2 -2
  174. package/dist/{nl-Dhr_CNfS.js → nl-DeIqgjIs.js} +2 -3
  175. package/dist/{normalizers-CqGXhPZo.js → normalizers-WYh8Nr3V.js} +3 -5
  176. package/dist/number-field-D5GkkGLB.js +126 -0
  177. package/dist/numeric-filter-field-CRWZFu_P.js +131 -0
  178. package/dist/password-field-DdOHXEOo.js +157 -0
  179. package/dist/phone-CVYVhLn8.js +5 -0
  180. package/dist/phone-field-BaYmp56f.js +129 -0
  181. package/dist/phoneShape-VqbamHOn.js +20 -0
  182. package/dist/{phoneUtils-CL8tIxoM.js → phoneUtils-BhOvrS4S.js} +133 -193
  183. package/dist/{pixels-D_on_5fc.js → pixels-BXXzmoCb.js} +12 -18
  184. package/dist/{pl-vklyp95-.js → pl-Bm2FcD5y.js} +2 -3
  185. package/dist/{pl-D4bvrh0U.js → pl-_Sbz4Ou-.js} +2 -2
  186. package/dist/portal-BSuo4flQ.js +64 -0
  187. package/dist/portalContainment-DSZUw-No.js +78 -0
  188. package/dist/{pt-br-C8yaXBBu.js → pt-br-CpmhafxS.js} +2 -2
  189. package/dist/{pt-br-BcKTBYBf.js → pt-br-XS1Lsa6z.js} +2 -3
  190. package/dist/qrcode-By7ce_6K.js +5 -0
  191. package/dist/repeating-field-B4OhsaGB.js +488 -0
  192. package/dist/richtext-field-KmUytgBW.js +212 -0
  193. package/dist/{rolldown-runtime-DtPi1Y-2.js → rolldown-runtime-CYdcPHCu.js} +2 -3
  194. package/dist/searchable-select-field-DettZRav.js +138 -0
  195. package/dist/select-field-Wc4gAtou.js +72 -0
  196. package/dist/seo/seo.cjs +1 -1
  197. package/dist/seo/seo.mjs +24 -42
  198. package/dist/seo/types.d.ts +4 -1
  199. package/dist/serverTotals-COsx7Mc5.js +950 -0
  200. package/dist/{showcase-state-options-B5GUg7wk.js → showcase-state-options-CHGUaZtl.js} +5 -5
  201. package/dist/sizing-Chy28j6-.js +61 -0
  202. package/dist/{sortable.esm--ZtTTTPp.js → sortable.esm-Wq6bSSEz.js} +29 -49
  203. package/dist/spacing-Y1dLegqt.js +48 -0
  204. package/dist/{src-DZgagYE3.js → src-BpVpi-n3.js} +256 -398
  205. package/dist/time-field-CnxZcziR.js +53 -0
  206. package/dist/to-event-card-props-C9v9dspT.js +245 -0
  207. package/dist/{tr-C73ecvz8.js → tr-CN8DGCc-.js} +2 -2
  208. package/dist/{tr-B4gKhpQA.js → tr-zKAbMfgi.js} +2 -3
  209. package/dist/transitions-DST-mWoo.js +201 -0
  210. package/dist/tree-picker-field-aqux58EQ.js +344 -0
  211. package/dist/types/index.d.ts +2 -1
  212. package/dist/typography-CKwYSv07.js +57 -0
  213. package/dist/{utils-CNwfP0zV.js → utils-AIszIHUb.js} +8 -11
  214. package/dist/variants-B46fK2iV.js +63 -0
  215. package/dist/{venue-BBoZBuhu.js → venue-DLkL7xdj.js} +1 -2
  216. package/dist/venue-calendar.css +1 -1
  217. package/dist/venue-calendar.es.js +1697 -1827
  218. package/dist/venue-calendar.iife.js +24 -55
  219. package/dist/venue-calendar.umd.js +68 -76
  220. package/dist/{widget-key-context-DxoB6BR0.js → widget-key-context-BrWW0fyM.js} +28 -43
  221. package/dist/{zh-DWi3x7FQ.js → zh-BaZ_hYJV.js} +2 -2
  222. package/dist/{zh-CxcIisjW.js → zh-DHfgJplH.js} +2 -3
  223. package/package.json +16 -16
  224. package/src/lib/theme.js +222 -222
  225. package/dist/AddOnCard-_OX1BqWV.js +0 -340
  226. package/dist/Button-B58iYo_t.js +0 -1951
  227. package/dist/Button-VUB2WJ88.js +0 -178
  228. package/dist/Calendar-BV1XCdju.js +0 -466
  229. package/dist/CalendarFoundryView-CbAqIB4K.js +0 -21608
  230. package/dist/CartView-DtgNCACZ.js +0 -2299
  231. package/dist/Checkout-BnI2UqNd.js +0 -1082
  232. package/dist/Checkout-DpyT_TuS.js +0 -1872
  233. package/dist/CloseIcon--8LjBB63.js +0 -35
  234. package/dist/CropImage-D1M-bKxG.js +0 -548
  235. package/dist/EventPage-Bd3VBdhn.js +0 -1345
  236. package/dist/Grid-kuP6V0GW.js +0 -89
  237. package/dist/ModalFooter-Cru7v0io.js +0 -394
  238. package/dist/ModalHeader-CpgkuttK.js +0 -18
  239. package/dist/Success-LFYYWMod.js +0 -985
  240. package/dist/ViewTicketsEmbed-ClMXL5iX.js +0 -651
  241. package/dist/action-test-id-7RXdHucW.js +0 -145
  242. package/dist/adapter-BPpmiFWD.js +0 -164
  243. package/dist/api-C02BQT4E.js +0 -489
  244. package/dist/controlAria-CGb-KeRn.js +0 -30
  245. package/dist/createErrorGate.svelte-Qp6j3EME.js +0 -114
  246. package/dist/cta-BpblR0dm.js +0 -116
  247. package/dist/datetime-C_dBn97N.js +0 -410
  248. package/dist/defaultLabels-tC8zM7_V.js +0 -2558
  249. package/dist/defaults-Bv4F-cYY.js +0 -98
  250. package/dist/event-transform-Cp_h6-Ot.js +0 -353
  251. package/dist/i18n-s5MzdFwq.js +0 -28
  252. package/dist/imageOptimizer-Gew5vPWh.js +0 -224
  253. package/dist/keyboard-DhCcdIyh.js +0 -55
  254. package/dist/look-island.svelte-C27bvwqP.js +0 -1305
  255. package/dist/looks/4.3.135/looks.js +0 -242
  256. package/dist/modalManager.svelte-Cz_6x1Qd.js +0 -37
  257. package/dist/portal-D-oaEWsY.js +0 -43
  258. package/dist/portalContainment-CeAVqIb-.js +0 -281
  259. package/dist/serverTotals-2i39gy_x.js +0 -712
  260. package/dist/sizing-B7ixYndz.js +0 -216
  261. package/dist/to-event-card-props-q8vFqxkX.js +0 -205
  262. /package/dist/looks/{4.3.135 → 4.3.138}/micdrop-wordmark-BYMG6vLR.svg +0 -0
  263. /package/dist/looks/{4.3.135 → 4.3.138}/microphone-Ccv4r-kd.webp +0 -0
  264. /package/dist/looks/{4.3.135 → 4.3.138}/superuser-CZF6a5gO.webp +0 -0
  265. /package/dist/looks/{4.3.135 → 4.3.138}/treasury-DUE7lZzT.webp +0 -0
  266. /package/dist/looks/{4.3.135 → 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
  /**
@@ -172,6 +172,8 @@ export interface Order {
172
172
  discount?: number;
173
173
  paymentIntentId?: string;
174
174
  paymentMethod?: string;
175
+ /** What the buyer's card statement reads for this order; '' when none. */
176
+ statementDescriptor?: string;
175
177
  purchasedTickets: PurchasedTicket[];
176
178
  createdAt?: string;
177
179
  updatedAt?: string;
@@ -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 };