efficient-shell 8.32.0 → 8.34.0

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 (383) hide show
  1. package/README.md +57 -15
  2. package/THIRD_PARTY_NOTICES.md +11 -2
  3. package/dist/{Browser-Y335UIBR.js → Browser-QBAMRKYI.js} +10 -10
  4. package/dist/{Documents-SP25WN7V.js → Documents-E3GMXALJ.js} +7 -7
  5. package/dist/{Files-SEGSJMVA.js → Files-2DWPYRM5.js} +22 -22
  6. package/dist/{Notepad-ZJ7N4TZM.js → Notepad-VQ66RWLT.js} +9 -9
  7. package/dist/{PomodoroTimer-ZR2VLO6G.js → PomodoroTimer-2HPCAEI5.js} +1 -1
  8. package/dist/{Preview-AZQSMBW5.js → Preview-VZYFOH2U.js} +22 -22
  9. package/dist/{Spreadsheet-UWD62JIM.js → Spreadsheet-4KXRJSHT.js} +8 -8
  10. package/dist/ai/index.d.ts +1 -1
  11. package/dist/ai/index.js +7 -7
  12. package/dist/ai.css +1 -1
  13. package/dist/apps/index.js +1 -1
  14. package/dist/bin/media-host-check.js +1 -1
  15. package/dist/bin/ui-check.js +1 -1
  16. package/dist/brand.css +1 -1
  17. package/dist/chunk-243NPEG6.js +2 -0
  18. package/dist/chunk-2UCDJCGZ.js +4 -0
  19. package/dist/{chunk-LK2SICMI.js → chunk-2UXAI77F.js} +1 -1
  20. package/dist/chunk-2ZD67TDP.js +2 -0
  21. package/dist/{chunk-3ZVRB3CV.js → chunk-3BPF6PP3.js} +1 -1
  22. package/dist/{chunk-VUCJ53H4.js → chunk-3C67XRVJ.js} +7 -7
  23. package/dist/chunk-3ER2WJNL.js +2 -0
  24. package/dist/{chunk-F64DN4BV.js → chunk-3J5QUHPO.js} +2 -2
  25. package/dist/chunk-44F7JLNV.js +2 -0
  26. package/dist/chunk-474G67EG.js +6 -0
  27. package/dist/chunk-47OCVZXD.js +2 -0
  28. package/dist/{chunk-BGLKEWVR.js → chunk-4C4SQ4YW.js} +1 -1
  29. package/dist/chunk-4CFQXH5N.js +2 -0
  30. package/dist/chunk-4FNGR474.js +2 -0
  31. package/dist/chunk-4L7GLO5W.js +2 -0
  32. package/dist/chunk-4RDYNULI.js +2 -0
  33. package/dist/chunk-57SJKYA4.js +29 -0
  34. package/dist/chunk-5DFKPSJQ.js +1 -0
  35. package/dist/chunk-5HDMPCZP.js +2 -0
  36. package/dist/chunk-5KZ4WKUI.js +2 -0
  37. package/dist/chunk-6I7EODFJ.js +7 -0
  38. package/dist/chunk-6IUDFVTN.js +2 -0
  39. package/dist/chunk-75IWV4ZF.js +2 -0
  40. package/dist/chunk-77SI7AKG.js +2 -0
  41. package/dist/chunk-7GB7CVQI.js +2 -0
  42. package/dist/chunk-7KCJ77BP.js +2 -0
  43. package/dist/chunk-7P3DXO3E.js +2 -0
  44. package/dist/{chunk-AWY3F6PV.js → chunk-7PCI6AUU.js} +1 -1
  45. package/dist/{chunk-77FLITYM.js → chunk-AS4CTEZD.js} +5 -5
  46. package/dist/{chunk-KWMMIOHD.js → chunk-B2XDNBR3.js} +13 -13
  47. package/dist/{chunk-3Z6ASFGL.js → chunk-BQ2IPQNR.js} +1 -1
  48. package/dist/chunk-BUGAWNOC.js +14 -0
  49. package/dist/chunk-BWIX3YIH.js +2 -0
  50. package/dist/{chunk-XEKPJGVZ.js → chunk-BX2IOAD5.js} +1 -1
  51. package/dist/chunk-BXQYRG7P.js +2 -0
  52. package/dist/chunk-BZR43D3G.js +2 -0
  53. package/dist/{chunk-MSQB2OE2.js → chunk-BZV4K6GR.js} +21 -21
  54. package/dist/chunk-CAUWHLN7.js +4 -0
  55. package/dist/{chunk-MTXTJLFK.js → chunk-CPXHU3Y2.js} +1 -1
  56. package/dist/{chunk-LLLAIPFX.js → chunk-CRYEG7OT.js} +1 -1
  57. package/dist/{chunk-NMK4UQXZ.js → chunk-DGLCMYSQ.js} +8 -8
  58. package/dist/chunk-DS6R5R3O.js +2 -0
  59. package/dist/chunk-EHMDGAWA.js +2 -0
  60. package/dist/chunk-EQPVQY5E.js +2 -0
  61. package/dist/chunk-FATXXVV3.js +2 -0
  62. package/dist/chunk-FEVWWOGL.js +2 -0
  63. package/dist/{chunk-QPX35URZ.js → chunk-FFJVCLGH.js} +10 -10
  64. package/dist/chunk-FMERDO2X.js +2 -0
  65. package/dist/chunk-FOXMWLVS.js +2 -0
  66. package/dist/chunk-FUSCAZEK.js +2 -0
  67. package/dist/chunk-G4GQOAWS.js +2 -0
  68. package/dist/{chunk-YRWRA7MW.js → chunk-GIM2422N.js} +1 -1
  69. package/dist/{chunk-UNEJ2ABD.js → chunk-GX2GSDJP.js} +1 -1
  70. package/dist/chunk-HSOREHQB.js +1 -0
  71. package/dist/chunk-I27TFZJH.js +2 -0
  72. package/dist/chunk-IBHBPSQN.js +2 -0
  73. package/dist/chunk-INUXPG27.js +2 -0
  74. package/dist/chunk-IWQSBA3D.js +2 -0
  75. package/dist/chunk-JJXFPGX4.js +6 -0
  76. package/dist/chunk-JMWKD4R5.js +2 -0
  77. package/dist/chunk-JREQY3YN.js +2 -0
  78. package/dist/chunk-K4RFJ7P2.js +2 -0
  79. package/dist/{chunk-TFMOGKW2.js → chunk-KKSW5IZ7.js} +10 -10
  80. package/dist/chunk-KTMEHSTB.js +2 -0
  81. package/dist/chunk-L65BESIE.js +1 -0
  82. package/dist/{chunk-KAWMOFSI.js → chunk-LCM5U6BY.js} +1 -1
  83. package/dist/{chunk-35YON46D.js → chunk-LEC4SZIV.js} +1 -1
  84. package/dist/chunk-LQD7K7HK.js +2 -0
  85. package/dist/{chunk-DJCC3WBR.js → chunk-LYYR5DSP.js} +8 -8
  86. package/dist/{chunk-F4GLNQIX.js → chunk-MEFXMUWI.js} +1 -1
  87. package/dist/chunk-MTZUYC4Y.js +5 -0
  88. package/dist/chunk-MVJ34HIV.js +2 -0
  89. package/dist/chunk-NEQFHRF3.js +2 -0
  90. package/dist/chunk-NFMDU4EJ.js +4 -0
  91. package/dist/chunk-NK7HBFNQ.js +2 -0
  92. package/dist/chunk-NTME34BP.js +2 -0
  93. package/dist/chunk-NTWI7EGJ.js +4 -0
  94. package/dist/chunk-NZBQVE3Q.js +2 -0
  95. package/dist/{chunk-72YFU346.js → chunk-OFHCDTJM.js} +1 -1
  96. package/dist/chunk-OIH56GH5.js +2 -0
  97. package/dist/chunk-OKRAYHGW.js +2 -0
  98. package/dist/chunk-OM5K4WCB.js +2 -0
  99. package/dist/chunk-ONC3BFFM.js +2 -0
  100. package/dist/chunk-OSXM35MX.js +2 -0
  101. package/dist/chunk-PAZU27H5.js +2 -0
  102. package/dist/chunk-PBGMVLOF.js +2 -0
  103. package/dist/{chunk-NT26CWMZ.js → chunk-PBMZJXSZ.js} +5 -5
  104. package/dist/chunk-PF3ANJFI.js +1 -0
  105. package/dist/chunk-PRJJK7VR.js +2 -0
  106. package/dist/chunk-PYW3HX7A.js +2 -0
  107. package/dist/chunk-QDOTMA3W.js +5 -0
  108. package/dist/chunk-QTM26JQP.js +2 -0
  109. package/dist/chunk-QYEMC2OA.js +2 -0
  110. package/dist/chunk-R2IXRW5N.js +2 -0
  111. package/dist/chunk-RAHDUMQ5.js +2 -0
  112. package/dist/chunk-RBXMTHOT.js +4 -0
  113. package/dist/{chunk-GWIPZKZJ.js → chunk-RCMP37VO.js} +3 -3
  114. package/dist/chunk-RERNKFEW.js +19 -0
  115. package/dist/chunk-ROUTBYMG.js +5 -0
  116. package/dist/chunk-T3NJAOJL.js +2 -0
  117. package/dist/{chunk-BDCMFW5N.js → chunk-T5SEGUCJ.js} +1 -1
  118. package/dist/chunk-TI5WUO3V.js +2 -0
  119. package/dist/chunk-UKC6VJE4.js +2 -0
  120. package/dist/chunk-URWQO4KB.js +2 -0
  121. package/dist/{chunk-UX6HNRFV.js → chunk-USYNZGY4.js} +6 -6
  122. package/dist/chunk-V3GM5NXB.js +2 -0
  123. package/dist/chunk-V6Q2GZAI.js +2 -0
  124. package/dist/{chunk-QFA5COE6.js → chunk-VB7Z3HXO.js} +1 -1
  125. package/dist/chunk-VRODVMV3.js +1 -0
  126. package/dist/chunk-VW4FHT46.js +2 -0
  127. package/dist/chunk-W5DLG5T2.js +2 -0
  128. package/dist/chunk-W5I35GZZ.js +2 -0
  129. package/dist/{chunk-DCUBOLIR.js → chunk-WQNIXV4T.js} +9 -9
  130. package/dist/chunk-WYDD26UO.js +2 -0
  131. package/dist/chunk-XUYWUGDM.js +2 -0
  132. package/dist/chunk-YHYAGJ6V.js +2 -0
  133. package/dist/chunk-YKKMR5DU.js +8 -0
  134. package/dist/chunk-YVULGIDQ.js +2 -0
  135. package/dist/chunk-Z5XEAC32.js +2 -0
  136. package/dist/chunk-ZBL4CN2E.js +2 -0
  137. package/dist/chunk-ZEN67DFI.js +2 -0
  138. package/dist/{chunk-JEXXJK7H.js → chunk-ZT5Y5JZB.js} +1 -1
  139. package/dist/chunk-ZXU4DEQM.js +2 -0
  140. package/dist/chunk-ZZIVSJ2B.js +2 -0
  141. package/dist/forms/BorderInput.js +1 -1
  142. package/dist/forms/ColorPicker.js +1 -1
  143. package/dist/forms/CornersInput.js +1 -1
  144. package/dist/forms/DatePicker.js +1 -1
  145. package/dist/forms/DateRangePicker.js +1 -1
  146. package/dist/forms/DateTimePicker.js +1 -1
  147. package/dist/forms/Input.js +1 -1
  148. package/dist/forms/InputNumber.js +1 -1
  149. package/dist/forms/LinkPicker.js +1 -1
  150. package/dist/forms/MediaLibrary.js +1 -1
  151. package/dist/forms/PositionInput.js +1 -1
  152. package/dist/forms/Select.d.ts +1 -1
  153. package/dist/forms/Select.js +1 -1
  154. package/dist/forms/SidesInput.js +1 -1
  155. package/dist/forms/Slider.js +1 -1
  156. package/dist/forms/Switch.js +1 -1
  157. package/dist/forms/TagInput.js +1 -1
  158. package/dist/forms/TextToolbar.d.ts +4 -1
  159. package/dist/forms/TextToolbar.js +1 -1
  160. package/dist/forms/Textarea.js +1 -1
  161. package/dist/forms/TimePicker.js +1 -1
  162. package/dist/forms/WidthsBar.js +1 -1
  163. package/dist/forms/settingRowContext.d.ts +11 -1
  164. package/dist/forms/settingRowContext.js +1 -1
  165. package/dist/forms/styles.d.ts +11 -4
  166. package/dist/forms/styles.js +1 -1
  167. package/dist/forms/textAlign.d.ts +89 -0
  168. package/dist/forms/textAlign.js +2 -0
  169. package/dist/icons/efficient-glyphs.d.ts +61 -0
  170. package/dist/icons/efficient-glyphs.js +1 -1
  171. package/dist/icons/efficient-looks.d.ts +22 -0
  172. package/dist/icons/efficient-looks.js +1 -1
  173. package/dist/icons/efficient-meanings.d.ts +61 -0
  174. package/dist/icons/efficient-meanings.js +1 -1
  175. package/dist/icons/efficient.d.ts +61 -0
  176. package/dist/icons/efficient.js +1 -1
  177. package/dist/icons/glyphs/BrandAdyenIcon.d.ts +11 -0
  178. package/dist/icons/glyphs/BrandAdyenIcon.js +1 -0
  179. package/dist/icons/glyphs/BrandAfterpayIcon.d.ts +11 -0
  180. package/dist/icons/glyphs/BrandAfterpayIcon.js +1 -0
  181. package/dist/icons/glyphs/BrandAircallIcon.d.ts +11 -0
  182. package/dist/icons/glyphs/BrandAircallIcon.js +1 -0
  183. package/dist/icons/glyphs/BrandAmericanexpressIcon.d.ts +11 -0
  184. package/dist/icons/glyphs/BrandAmericanexpressIcon.js +1 -0
  185. package/dist/icons/glyphs/BrandApplepayIcon.d.ts +11 -0
  186. package/dist/icons/glyphs/BrandApplepayIcon.js +1 -0
  187. package/dist/icons/glyphs/BrandBigcommerceIcon.d.ts +11 -0
  188. package/dist/icons/glyphs/BrandBigcommerceIcon.js +1 -0
  189. package/dist/icons/glyphs/BrandBrevoIcon.d.ts +11 -0
  190. package/dist/icons/glyphs/BrandBrevoIcon.js +1 -0
  191. package/dist/icons/glyphs/BrandCalendlyIcon.d.ts +11 -0
  192. package/dist/icons/glyphs/BrandCalendlyIcon.js +1 -0
  193. package/dist/icons/glyphs/BrandCampaignmonitorIcon.d.ts +11 -0
  194. package/dist/icons/glyphs/BrandCampaignmonitorIcon.js +1 -0
  195. package/dist/icons/glyphs/BrandDhlIcon.d.ts +11 -0
  196. package/dist/icons/glyphs/BrandDhlIcon.js +1 -0
  197. package/dist/icons/glyphs/BrandDropboxIcon.d.ts +11 -0
  198. package/dist/icons/glyphs/BrandDropboxIcon.js +1 -0
  199. package/dist/icons/glyphs/BrandEbayIcon.d.ts +11 -0
  200. package/dist/icons/glyphs/BrandEbayIcon.js +1 -0
  201. package/dist/icons/glyphs/BrandEtsyIcon.d.ts +11 -0
  202. package/dist/icons/glyphs/BrandEtsyIcon.js +1 -0
  203. package/dist/icons/glyphs/BrandFacebookIcon.d.ts +11 -0
  204. package/dist/icons/glyphs/BrandFacebookIcon.js +1 -0
  205. package/dist/icons/glyphs/BrandFedexIcon.d.ts +11 -0
  206. package/dist/icons/glyphs/BrandFedexIcon.js +1 -0
  207. package/dist/icons/glyphs/BrandGmailIcon.d.ts +11 -0
  208. package/dist/icons/glyphs/BrandGmailIcon.js +1 -0
  209. package/dist/icons/glyphs/BrandGoogleadsIcon.d.ts +11 -0
  210. package/dist/icons/glyphs/BrandGoogleadsIcon.js +1 -0
  211. package/dist/icons/glyphs/BrandGoogleanalyticsIcon.d.ts +11 -0
  212. package/dist/icons/glyphs/BrandGoogleanalyticsIcon.js +1 -0
  213. package/dist/icons/glyphs/BrandGooglecalendarIcon.d.ts +11 -0
  214. package/dist/icons/glyphs/BrandGooglecalendarIcon.js +1 -0
  215. package/dist/icons/glyphs/BrandGoogledriveIcon.d.ts +11 -0
  216. package/dist/icons/glyphs/BrandGoogledriveIcon.js +1 -0
  217. package/dist/icons/glyphs/BrandGooglepayIcon.d.ts +11 -0
  218. package/dist/icons/glyphs/BrandGooglepayIcon.js +1 -0
  219. package/dist/icons/glyphs/BrandGooglesheetsIcon.d.ts +11 -0
  220. package/dist/icons/glyphs/BrandGooglesheetsIcon.js +1 -0
  221. package/dist/icons/glyphs/BrandHubspotIcon.d.ts +11 -0
  222. package/dist/icons/glyphs/BrandHubspotIcon.js +1 -0
  223. package/dist/icons/glyphs/BrandInstagramIcon.d.ts +11 -0
  224. package/dist/icons/glyphs/BrandInstagramIcon.js +1 -0
  225. package/dist/icons/glyphs/BrandIntercomIcon.d.ts +11 -0
  226. package/dist/icons/glyphs/BrandIntercomIcon.js +1 -0
  227. package/dist/icons/glyphs/BrandKlarnaIcon.d.ts +11 -0
  228. package/dist/icons/glyphs/BrandKlarnaIcon.js +1 -0
  229. package/dist/icons/glyphs/BrandLineIcon.d.ts +11 -0
  230. package/dist/icons/glyphs/BrandLineIcon.js +1 -0
  231. package/dist/icons/glyphs/BrandLinkedinIcon.d.ts +11 -0
  232. package/dist/icons/glyphs/BrandLinkedinIcon.js +1 -0
  233. package/dist/icons/glyphs/BrandMailchimpIcon.d.ts +11 -0
  234. package/dist/icons/glyphs/BrandMailchimpIcon.js +1 -0
  235. package/dist/icons/glyphs/BrandMailgunIcon.d.ts +11 -0
  236. package/dist/icons/glyphs/BrandMailgunIcon.js +1 -0
  237. package/dist/icons/glyphs/BrandMakeIcon.d.ts +11 -0
  238. package/dist/icons/glyphs/BrandMakeIcon.js +1 -0
  239. package/dist/icons/glyphs/BrandMastercardIcon.d.ts +11 -0
  240. package/dist/icons/glyphs/BrandMastercardIcon.js +1 -0
  241. package/dist/icons/glyphs/BrandMessengerIcon.d.ts +11 -0
  242. package/dist/icons/glyphs/BrandMessengerIcon.js +1 -0
  243. package/dist/icons/glyphs/BrandMetaIcon.d.ts +11 -0
  244. package/dist/icons/glyphs/BrandMetaIcon.js +1 -0
  245. package/dist/icons/glyphs/BrandMyobIcon.d.ts +11 -0
  246. package/dist/icons/glyphs/BrandMyobIcon.js +1 -0
  247. package/dist/icons/glyphs/BrandNotionIcon.d.ts +11 -0
  248. package/dist/icons/glyphs/BrandNotionIcon.js +1 -0
  249. package/dist/icons/glyphs/BrandPaypalIcon.d.ts +11 -0
  250. package/dist/icons/glyphs/BrandPaypalIcon.js +1 -0
  251. package/dist/icons/glyphs/BrandPinterestIcon.d.ts +11 -0
  252. package/dist/icons/glyphs/BrandPinterestIcon.js +1 -0
  253. package/dist/icons/glyphs/BrandQuickbooksIcon.d.ts +11 -0
  254. package/dist/icons/glyphs/BrandQuickbooksIcon.js +1 -0
  255. package/dist/icons/glyphs/BrandSageIcon.d.ts +11 -0
  256. package/dist/icons/glyphs/BrandSageIcon.js +1 -0
  257. package/dist/icons/glyphs/BrandShopifyIcon.d.ts +11 -0
  258. package/dist/icons/glyphs/BrandShopifyIcon.js +1 -0
  259. package/dist/icons/glyphs/BrandSquareIcon.d.ts +11 -0
  260. package/dist/icons/glyphs/BrandSquareIcon.js +1 -0
  261. package/dist/icons/glyphs/BrandSquarespaceIcon.d.ts +11 -0
  262. package/dist/icons/glyphs/BrandSquarespaceIcon.js +1 -0
  263. package/dist/icons/glyphs/BrandStripeIcon.d.ts +11 -0
  264. package/dist/icons/glyphs/BrandStripeIcon.js +1 -0
  265. package/dist/icons/glyphs/BrandTelegramIcon.d.ts +11 -0
  266. package/dist/icons/glyphs/BrandTelegramIcon.js +1 -0
  267. package/dist/icons/glyphs/BrandTiktokIcon.d.ts +11 -0
  268. package/dist/icons/glyphs/BrandTiktokIcon.js +1 -0
  269. package/dist/icons/glyphs/BrandTrelloIcon.d.ts +11 -0
  270. package/dist/icons/glyphs/BrandTrelloIcon.js +1 -0
  271. package/dist/icons/glyphs/BrandUpsIcon.d.ts +11 -0
  272. package/dist/icons/glyphs/BrandUpsIcon.js +1 -0
  273. package/dist/icons/glyphs/BrandVisaIcon.d.ts +11 -0
  274. package/dist/icons/glyphs/BrandVisaIcon.js +1 -0
  275. package/dist/icons/glyphs/BrandVonageIcon.d.ts +11 -0
  276. package/dist/icons/glyphs/BrandVonageIcon.js +1 -0
  277. package/dist/icons/glyphs/BrandWechatIcon.d.ts +11 -0
  278. package/dist/icons/glyphs/BrandWechatIcon.js +1 -0
  279. package/dist/icons/glyphs/BrandWhatsappIcon.d.ts +11 -0
  280. package/dist/icons/glyphs/BrandWhatsappIcon.js +1 -0
  281. package/dist/icons/glyphs/BrandWiseIcon.d.ts +11 -0
  282. package/dist/icons/glyphs/BrandWiseIcon.js +1 -0
  283. package/dist/icons/glyphs/BrandWixIcon.d.ts +11 -0
  284. package/dist/icons/glyphs/BrandWixIcon.js +1 -0
  285. package/dist/icons/glyphs/BrandWoocommerceIcon.d.ts +11 -0
  286. package/dist/icons/glyphs/BrandWoocommerceIcon.js +1 -0
  287. package/dist/icons/glyphs/BrandXIcon.d.ts +11 -0
  288. package/dist/icons/glyphs/BrandXIcon.js +1 -0
  289. package/dist/icons/glyphs/BrandXeroIcon.d.ts +11 -0
  290. package/dist/icons/glyphs/BrandXeroIcon.js +1 -0
  291. package/dist/icons/glyphs/BrandYoutubeIcon.d.ts +11 -0
  292. package/dist/icons/glyphs/BrandYoutubeIcon.js +1 -0
  293. package/dist/icons/glyphs/BrandZapierIcon.d.ts +11 -0
  294. package/dist/icons/glyphs/BrandZapierIcon.js +1 -0
  295. package/dist/icons/glyphs/BrandZendeskIcon.d.ts +11 -0
  296. package/dist/icons/glyphs/BrandZendeskIcon.js +1 -0
  297. package/dist/icons/glyphs/BrandZoomIcon.d.ts +11 -0
  298. package/dist/icons/glyphs/BrandZoomIcon.js +1 -0
  299. package/dist/icons/index.d.ts +6 -4
  300. package/dist/icons/index.js +1 -1
  301. package/dist/icons/looks/BrandFacebookOutlineIcon.d.ts +11 -0
  302. package/dist/icons/looks/BrandFacebookOutlineIcon.js +1 -0
  303. package/dist/icons/looks/BrandFacebookSolidIcon.d.ts +11 -0
  304. package/dist/icons/looks/BrandFacebookSolidIcon.js +1 -0
  305. package/dist/icons/looks/BrandInstagramOutlineIcon.d.ts +11 -0
  306. package/dist/icons/looks/BrandInstagramOutlineIcon.js +1 -0
  307. package/dist/icons/looks/BrandInstagramSolidIcon.d.ts +11 -0
  308. package/dist/icons/looks/BrandInstagramSolidIcon.js +1 -0
  309. package/dist/icons/looks/BrandLineOutlineIcon.d.ts +11 -0
  310. package/dist/icons/looks/BrandLineOutlineIcon.js +1 -0
  311. package/dist/icons/looks/BrandLineSolidIcon.d.ts +11 -0
  312. package/dist/icons/looks/BrandLineSolidIcon.js +1 -0
  313. package/dist/icons/looks/BrandLinkedinOutlineIcon.d.ts +11 -0
  314. package/dist/icons/looks/BrandLinkedinOutlineIcon.js +1 -0
  315. package/dist/icons/looks/BrandLinkedinSolidIcon.d.ts +11 -0
  316. package/dist/icons/looks/BrandLinkedinSolidIcon.js +1 -0
  317. package/dist/icons/looks/BrandPinterestOutlineIcon.d.ts +11 -0
  318. package/dist/icons/looks/BrandPinterestOutlineIcon.js +1 -0
  319. package/dist/icons/looks/BrandPinterestSolidIcon.d.ts +11 -0
  320. package/dist/icons/looks/BrandPinterestSolidIcon.js +1 -0
  321. package/dist/icons/looks/BrandTelegramOutlineIcon.d.ts +11 -0
  322. package/dist/icons/looks/BrandTelegramOutlineIcon.js +1 -0
  323. package/dist/icons/looks/BrandTelegramSolidIcon.d.ts +11 -0
  324. package/dist/icons/looks/BrandTelegramSolidIcon.js +1 -0
  325. package/dist/icons/looks/BrandTiktokOutlineIcon.d.ts +11 -0
  326. package/dist/icons/looks/BrandTiktokOutlineIcon.js +1 -0
  327. package/dist/icons/looks/BrandTiktokSolidIcon.d.ts +11 -0
  328. package/dist/icons/looks/BrandTiktokSolidIcon.js +1 -0
  329. package/dist/icons/looks/BrandWechatOutlineIcon.d.ts +11 -0
  330. package/dist/icons/looks/BrandWechatOutlineIcon.js +1 -0
  331. package/dist/icons/looks/BrandWechatSolidIcon.d.ts +11 -0
  332. package/dist/icons/looks/BrandWechatSolidIcon.js +1 -0
  333. package/dist/icons/looks/BrandWhatsappOutlineIcon.d.ts +11 -0
  334. package/dist/icons/looks/BrandWhatsappOutlineIcon.js +1 -0
  335. package/dist/icons/looks/BrandWhatsappSolidIcon.d.ts +11 -0
  336. package/dist/icons/looks/BrandWhatsappSolidIcon.js +1 -0
  337. package/dist/icons/looks/BrandXOutlineIcon.d.ts +11 -0
  338. package/dist/icons/looks/BrandXOutlineIcon.js +1 -0
  339. package/dist/icons/looks/BrandXSolidIcon.d.ts +11 -0
  340. package/dist/icons/looks/BrandXSolidIcon.js +1 -0
  341. package/dist/icons/looks/BrandYoutubeOutlineIcon.d.ts +11 -0
  342. package/dist/icons/looks/BrandYoutubeOutlineIcon.js +1 -0
  343. package/dist/icons/looks/BrandYoutubeSolidIcon.d.ts +11 -0
  344. package/dist/icons/looks/BrandYoutubeSolidIcon.js +1 -0
  345. package/dist/icons/looks/map.d.ts +1 -1
  346. package/dist/icons/looks/map.js +1 -1
  347. package/dist/icons/sets.js +1 -1
  348. package/dist/index.d.ts +3 -2
  349. package/dist/index.js +141 -141
  350. package/dist/names-mX74Rrmy.d.ts +23 -0
  351. package/dist/shell/HelpCenter.js +1 -1
  352. package/dist/shell/LanguageSelect.js +1 -1
  353. package/dist/shell/Markdown.d.ts +1 -1
  354. package/dist/shell/SearchableSelect.js +1 -1
  355. package/dist/shell/SettingRow.d.ts +9 -1
  356. package/dist/shell/SettingRow.js +1 -1
  357. package/dist/shell/SidebarLayout.js +1 -1
  358. package/dist/telemetry/index.js +1 -1
  359. package/dist/templates/AuthScreen.js +1 -1
  360. package/dist/templates/ChatTemplate.js +1 -1
  361. package/dist/templates/CheckoutTemplate.js +1 -1
  362. package/dist/templates/DashboardTemplate.js +1 -1
  363. package/dist/templates/DataTablePage.js +1 -1
  364. package/dist/templates/EmailTemplate.js +1 -1
  365. package/dist/templates/FormLayoutPage.js +1 -1
  366. package/dist/ui/index.d.ts +3 -2
  367. package/dist/ui/index.js +1 -1
  368. package/dist/ui.css +16 -0
  369. package/dist/version.js +1 -1
  370. package/package.json +1 -1
  371. package/dist/chunk-74TPCYHX.js +0 -29
  372. package/dist/chunk-E4Z5OXBI.js +0 -1
  373. package/dist/chunk-GSS4E7X3.js +0 -1
  374. package/dist/chunk-HJH4WIBC.js +0 -19
  375. package/dist/chunk-JFSYWEHD.js +0 -1
  376. package/dist/chunk-L2OSJ2YC.js +0 -1
  377. package/dist/chunk-PNGL4ZW2.js +0 -6
  378. package/dist/chunk-STA76WXF.js +0 -2
  379. package/dist/chunk-WZNGOA4Z.js +0 -1
  380. package/dist/chunk-X7XJBK2E.js +0 -14
  381. package/dist/names-DYWfNBkN.d.ts +0 -21
  382. /package/dist/{chunk-2HDDCXTW.js → chunk-EHPZIBOL.js} +0 -0
  383. /package/dist/{chunk-WYHRPXEX.js → chunk-KJRYEKQP.js} +0 -0
@@ -0,0 +1,2 @@
1
+ import{brandBox as t}from"./chunk-64ACCUNN.js";import{jsx as e}from"react/jsx-runtime";function i({size:i,width:r,height:h,style:o,...c}){const n=t(i??r??h??18,.998);/* @__PURE__ */
2
+ return e("svg",{width:n.width,height:n.height,viewBox:"-0.171 -0.2 24.341 24.4",fill:"currentColor","aria-hidden":"true",...c,style:{...n.style,...o},children:/* @__PURE__ */e("path",{d:"M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z"})})}export{i as BrandPinterestIcon};
@@ -0,0 +1,4 @@
1
+ import{jsxs as r,jsx as e}from"react/jsx-runtime";function t({size:t=18,...i}){/* @__PURE__ */
2
+ return r("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i,children:[
3
+ /* @__PURE__ */e("path",{d:"M4 4l11.733 16h4.267l-11.733 -16l-4.267 0"}),
4
+ /* @__PURE__ */e("path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772"})]})}export{t as BrandXOutlineIcon};
@@ -1,2 +1,2 @@
1
- import{inputClasses as e}from"./chunk-JFSYWEHD.js";import{useShellLocale as t}from"./chunk-E6UCGCOC.js";import{forwardRef as n}from"react";import{jsx as r}from"react/jsx-runtime";var a=/^\d{2}:\d{2}(:\d{2})?$/,i=e=>String(e).padStart(2,"0");function s(e,t){if(null==e||""===e)return"";if(e instanceof Date){if(Number.isNaN(e.getTime()))return"";const n=`${i(e.getHours())}:${i(e.getMinutes())}`;return t?`${n}:${i(e.getSeconds())}`:n}return a.test(e)?e:""}var u=n(function({value:n,onChange:i,min:u,max:o,invalid:m,size:l,className:c="",step:v,...d},f){const g=null!=v&&Number(v)<60,p=t();/* @__PURE__ */
1
+ import{inputClasses as e}from"./chunk-PF3ANJFI.js";import{useShellLocale as t}from"./chunk-E6UCGCOC.js";import{forwardRef as n}from"react";import{jsx as r}from"react/jsx-runtime";var a=/^\d{2}:\d{2}(:\d{2})?$/,i=e=>String(e).padStart(2,"0");function s(e,t){if(null==e||""===e)return"";if(e instanceof Date){if(Number.isNaN(e.getTime()))return"";const n=`${i(e.getHours())}:${i(e.getMinutes())}`;return t?`${n}:${i(e.getSeconds())}`:n}return a.test(e)?e:""}var u=n(function({value:n,onChange:i,min:u,max:o,invalid:m,size:l,className:c="",step:v,...d},f){const g=null!=v&&Number(v)<60,p=t();/* @__PURE__ */
2
2
  return r("input",{ref:f,type:"time",lang:p,step:v,"aria-invalid":m||void 0,value:s(n,g),min:s(u,g)||void 0,max:s(o,g)||void 0,onChange:e=>i?.(a.test(e.target.value)?e.target.value:null),className:e({invalid:m,size:l,className:c}),...d})});export{u as TimePicker_default};
@@ -0,0 +1,2 @@
1
+ import{brandBox as c}from"./chunk-64ACCUNN.js";import{jsx as t}from"react/jsx-runtime";function h({size:h,width:e,height:i,style:r,...l}){const o=c(h??e??i??18,1.049);/* @__PURE__ */
2
+ return t("svg",{width:o.width,height:o.height,viewBox:"-0.2 0.372 24.4 23.256",fill:"currentColor","aria-hidden":"true",...l,style:{...o.style,...r},children:/* @__PURE__ */t("path",{d:"M19.365 9.863c.349 0 .63.285.63.631 0 .345-.281.63-.63.63H17.61v1.125h1.755c.349 0 .63.283.63.63 0 .344-.281.629-.63.629h-2.386c-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63h2.386c.346 0 .627.285.627.63 0 .349-.281.63-.63.63H17.61v1.125h1.755zm-3.855 3.016c0 .27-.174.51-.432.596-.064.021-.133.031-.199.031-.211 0-.391-.09-.51-.25l-2.443-3.317v2.94c0 .344-.279.629-.631.629-.346 0-.626-.285-.626-.629V8.108c0-.27.173-.51.43-.595.06-.023.136-.033.194-.033.195 0 .375.104.495.254l2.462 3.33V8.108c0-.345.282-.63.63-.63.345 0 .63.285.63.63v4.771zm-5.741 0c0 .344-.282.629-.631.629-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63.346 0 .628.285.628.63v4.771zm-2.466.629H4.917c-.345 0-.63-.285-.63-.629V8.108c0-.345.285-.63.63-.63.348 0 .63.285.63.63v4.141h1.756c.348 0 .629.283.629.63 0 .344-.282.629-.629.629M24 10.314C24 4.943 18.615.572 12 .572S0 4.943 0 10.314c0 4.811 4.27 8.842 10.035 9.608.391.082.923.258 1.058.59.12.301.079.766.038 1.08l-.164 1.02c-.045.301-.24 1.186 1.049.645 1.291-.539 6.916-4.078 9.436-6.975C23.176 14.393 24 12.458 24 10.314"})})}export{h as BrandLineIcon};
@@ -1,4 +1,4 @@
1
- import{useWindowMenuItem as e,Modal as t}from"./chunk-L3NYH4QV.js";import{navIcons as r}from"./chunk-CY5N5OA3.js";import{VERSION as s}from"./chunk-L2OSJ2YC.js";import{Icon as o}from"./chunk-KIBL6M3T.js";import{DEFAULT_SHELL_STRINGS as n,useShellStrings as i,splitAround as a}from"./chunk-E6UCGCOC.js";import{useState as m,useCallback as c,isValidElement as l,cloneElement as d}from"react";import{jsx as p,jsxs as h}from"react/jsx-runtime";var u=n.aboutApp,f={spreadsheet:{name:"Spreadsheets",version:"1.2.0",route:"/spreadsheet",description:u.spreadsheet},notepad:{name:"Notepad",version:"1.0.2",route:"/notepad",description:u.notepad},documents:{name:"Documents",version:"1.1.1",route:"/documents",description:u.documents},preview:{name:"Preview",version:"1.4.3",route:"/preview",description:u.preview},files:{name:"Files",version:"1.1.3",route:"/files",description:u.files},browser:{name:"Browser",version:"1.0.2",route:"/browser",description:u.browser}},x=/* @__PURE__ */p(o,{name:"info",className:"h-4 w-4",strokeWidth:1.5}),v=/* @__PURE__ */p(o,{name:"window",className:"h-9 w-9",strokeWidth:1.5});function w({app:o}){const n=f[o],[u,w]=m(!1),N=c(()=>w(!0),[]),g=i().aboutApp,b=g.title(n.name);if(e(b,N,x),!u)return null;const y=r[n.route],k=l(y)?d(y,{className:"h-9 w-9"}):v,[j,C]=a(g.partOf);/* @__PURE__ */
1
+ import{useWindowMenuItem as e,Modal as t}from"./chunk-L3NYH4QV.js";import{navIcons as r}from"./chunk-CY5N5OA3.js";import{VERSION as s}from"./chunk-HSOREHQB.js";import{Icon as o}from"./chunk-KIBL6M3T.js";import{DEFAULT_SHELL_STRINGS as n,useShellStrings as i,splitAround as a}from"./chunk-E6UCGCOC.js";import{useState as m,useCallback as c,isValidElement as l,cloneElement as d}from"react";import{jsx as p,jsxs as h}from"react/jsx-runtime";var u=n.aboutApp,f={spreadsheet:{name:"Spreadsheets",version:"1.2.0",route:"/spreadsheet",description:u.spreadsheet},notepad:{name:"Notepad",version:"1.0.2",route:"/notepad",description:u.notepad},documents:{name:"Documents",version:"1.1.1",route:"/documents",description:u.documents},preview:{name:"Preview",version:"1.4.3",route:"/preview",description:u.preview},files:{name:"Files",version:"1.1.3",route:"/files",description:u.files},browser:{name:"Browser",version:"1.0.2",route:"/browser",description:u.browser}},x=/* @__PURE__ */p(o,{name:"info",className:"h-4 w-4",strokeWidth:1.5}),v=/* @__PURE__ */p(o,{name:"window",className:"h-9 w-9",strokeWidth:1.5});function w({app:o}){const n=f[o],[u,w]=m(!1),N=c(()=>w(!0),[]),g=i().aboutApp,b=g.title(n.name);if(e(b,N,x),!u)return null;const y=r[n.route],k=l(y)?d(y,{className:"h-9 w-9"}):v,[j,C]=a(g.partOf);/* @__PURE__ */
2
2
  return p(t,{open:!0,onClose:()=>w(!1),title:b,size:"sm",compact:!0,bodyScroll:!1,autoHeight:!0,dimensions:[320,320],children:/* @__PURE__ */h("div",{className:"flex flex-col items-center text-center px-5 pt-5 pb-4",children:[
3
3
  /* @__PURE__ */p("div",{className:"flex h-16 w-16 items-center justify-center rounded-2xl bg-gray-100 text-gray-600 shrink-0",children:k}),
4
4
  /* @__PURE__ */p("h2",{className:"mt-3 text-lg font-bold text-gray-900",children:n.name}),
@@ -1,9 +1,9 @@
1
- import{toISODate as e}from"./chunk-MSQB2OE2.js";import{Calendar as t}from"./chunk-3V5Z2BJY.js";import{inputClasses as r,PLACEHOLDER_INK as a}from"./chunk-JFSYWEHD.js";import{calendarNames as n}from"./chunk-5OTS2G3M.js";import{Icon as i}from"./chunk-KIBL6M3T.js";import{onOverlayOpen as o}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as l}from"./chunk-62LW225J.js";import{useDropdownPosition as s}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as d}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as u}from"./chunk-TWVUQUUD.js";import{useShellStrings as c,useShellLocale as m}from"./chunk-E6UCGCOC.js";import{forwardRef as f,useState as b,useRef as p,useId as h,useEffect as v}from"react";import{createPortal as g}from"react-dom";import{jsx as y,jsxs as x}from"react/jsx-runtime";var N=/^\d{4}-\d{2}-\d{2}$/,k=/^(aria|data)-/,j=/* @__PURE__ */new Set(["aria-invalid","aria-required"]);function w(t){if(null==t||""===t)return"";if(t instanceof Date)return Number.isNaN(t.getTime())?"":e(t);if(N.test(t))return t;const r=new Date(t);return Number.isNaN(r.getTime())?"":e(r)}function D(e){if(!N.test(e))return null;const[t,r,a]=e.split("-").map(Number),n=new Date(t,r-1,a);return n.getMonth()===r-1&&n.getDate()===a?n:null}function B(e,t){const r=D(e);return r?t.longDate(r.getFullYear(),r.getMonth(),r.getDate()):""}var C=f(function({value:f,onChange:N,min:C,max:E,invalid:F,size:S,native:O,weekStartsOn:M,className:T="","aria-label":W,"aria-describedby":$,"aria-labelledby":q,id:I,name:J,disabled:L,placeholder:U,required:z,clearable:G,form:Y,title:H,tabIndex:P,autoFocus:Q,onFocus:V,onBlur:K,...R},Z){const A=G??!z,X=w(f),_=w(C),ee=w(E),te=c().datePicker,re=m(),ae=n(re),[ne,ie]=b(!1),oe=p(null),le=p(null),se=p(null),de=h(),ue=h(),ce=h(),me=s(le,ne,{popupRef:se}),[fe,be]=b(!1);d(()=>{const e=!!I&&(le.current?.labels?.length??0)>0;e!==fe&&be(e)});const pe=!W&&(!!q||fe);if(v(()=>{if(!ne)return;const e=e=>{const t=e.target;oe.current?.contains(t)||se.current?.contains(t)||ie(!1)};document.addEventListener("pointerdown",e,!0);const t=o(()=>ie(!1));return()=>{document.removeEventListener("pointerdown",e,!0),t()}},[ne]),v(()=>{if(ne)return u(e=>"Escape"===e.key&&(ie(!1),le.current?.focus(),!0),()=>se.current)},[ne]),O)/* @__PURE__ */
2
- return y("input",{ref:Z,type:"date",lang:re,id:I,name:J,disabled:L,"aria-label":W,"aria-describedby":$,"aria-invalid":F||void 0,value:X,min:_||void 0,max:ee||void 0,onChange:e=>N?.(D(e.target.value)),className:r({invalid:F,size:S,className:T}),"aria-labelledby":q,required:z,form:Y,title:H,tabIndex:P,autoFocus:Q,onFocus:V,onBlur:K,...R});const he=Object.fromEntries(Object.entries(R).filter(([e])=>k.test(e)&&!j.has(e))),ve=R["aria-required"],ge=!!z||!0===ve||"true"===ve,ye=[pe?ue:void 0,ge?ce:void 0,$].filter(Boolean).join(" ")||void 0,xe=e(/* @__PURE__ */new Date),Ne=(!_||xe>=_)&&(!ee||xe<=ee),ke=U??te.placeholder;/* @__PURE__ */
1
+ import{toISODate as e}from"./chunk-BZV4K6GR.js";import{Calendar as t}from"./chunk-3V5Z2BJY.js";import{inputClasses as r,PLACEHOLDER_INK as a}from"./chunk-PF3ANJFI.js";import{calendarNames as n}from"./chunk-5OTS2G3M.js";import{Icon as i}from"./chunk-KIBL6M3T.js";import{onOverlayOpen as o}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as l}from"./chunk-62LW225J.js";import{useDropdownPosition as s}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as d}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as u}from"./chunk-TWVUQUUD.js";import{useShellStrings as c,useShellLocale as m}from"./chunk-E6UCGCOC.js";import{forwardRef as f,useState as b,useRef as p,useId as h,useEffect as v}from"react";import{createPortal as g}from"react-dom";import{jsx as y,jsxs as x}from"react/jsx-runtime";var N=/^\d{4}-\d{2}-\d{2}$/,k=/^(aria|data)-/,j=/* @__PURE__ */new Set(["aria-invalid","aria-required"]);function w(t){if(null==t||""===t)return"";if(t instanceof Date)return Number.isNaN(t.getTime())?"":e(t);if(N.test(t))return t;const r=new Date(t);return Number.isNaN(r.getTime())?"":e(r)}function D(e){if(!N.test(e))return null;const[t,r,a]=e.split("-").map(Number),n=new Date(t,r-1,a);return n.getMonth()===r-1&&n.getDate()===a?n:null}function B(e,t){const r=D(e);return r?t.longDate(r.getFullYear(),r.getMonth(),r.getDate()):""}var F=f(function({value:f,onChange:N,min:F,max:C,invalid:E,size:I,native:O,weekStartsOn:S,className:T="","aria-label":$,"aria-describedby":q,"aria-labelledby":G,id:J,name:L,disabled:M,placeholder:U,required:W,clearable:z,form:P,title:V,tabIndex:K,autoFocus:R,onFocus:Y,onBlur:Z,...A},H){const Q=z??!W,X=w(f),_=w(F),ee=w(C),te=c().datePicker,re=m(),ae=n(re),[ne,ie]=b(!1),oe=p(null),le=p(null),se=p(null),de=h(),ue=h(),ce=h(),me=s(le,ne,{popupRef:se}),[fe,be]=b(!1);d(()=>{const e=!!J&&(le.current?.labels?.length??0)>0;e!==fe&&be(e)});const pe=!$&&(!!G||fe);if(v(()=>{if(!ne)return;const e=e=>{const t=e.target;oe.current?.contains(t)||se.current?.contains(t)||ie(!1)};document.addEventListener("pointerdown",e,!0);const t=o(()=>ie(!1));return()=>{document.removeEventListener("pointerdown",e,!0),t()}},[ne]),v(()=>{if(ne)return u(e=>"Escape"===e.key&&(ie(!1),le.current?.focus(),!0),()=>se.current)},[ne]),O)/* @__PURE__ */
2
+ return y("input",{ref:H,type:"date",lang:re,id:J,name:L,disabled:M,"aria-label":$,"aria-describedby":q,"aria-invalid":E||void 0,value:X,min:_||void 0,max:ee||void 0,onChange:e=>N?.(D(e.target.value)),className:r({invalid:E,size:I,className:T}),"aria-labelledby":G,required:W,form:P,title:V,tabIndex:K,autoFocus:R,onFocus:Y,onBlur:Z,...A});const he=Object.fromEntries(Object.entries(A).filter(([e])=>k.test(e)&&!j.has(e))),ve=A["aria-required"],ge=!!W||!0===ve||"true"===ve,ye=[pe?ue:void 0,ge?ce:void 0,q].filter(Boolean).join(" ")||void 0,xe=e(/* @__PURE__ */new Date),Ne=(!_||xe>=_)&&(!ee||xe<=ee),ke=U??te.placeholder;/* @__PURE__ */
3
3
  return x("div",{ref:oe,className:"relative",children:[
4
- /* @__PURE__ */y("input",{ref:Z,type:"hidden",name:J,form:Y,value:X}),
5
- /* @__PURE__ */x("button",{ref:le,type:"button",...he,id:I,disabled:L,title:H,tabIndex:P,autoFocus:Q,onFocus:V,onBlur:K,"aria-haspopup":"dialog","aria-expanded":ne,"aria-controls":ne?de:void 0,"aria-labelledby":q,"aria-describedby":ye,"aria-label":W?`${W}${X?`, ${B(X,ae)}`:""}`:void 0,onClick:()=>ie(e=>!e),className:`${r({invalid:F,size:S,className:T})} flex items-center justify-between text-left`,children:[
6
- /* @__PURE__ */y("span",{className:X?"text-gray-900":"text-gray-400",children:X?B(X,ae):ke}),
4
+ /* @__PURE__ */y("input",{ref:H,type:"hidden",name:L,form:P,value:X}),
5
+ /* @__PURE__ */x("button",{ref:le,type:"button",...he,id:J,disabled:M,title:V,tabIndex:K,autoFocus:R,onFocus:Y,onBlur:Z,"aria-haspopup":"dialog","aria-expanded":ne,"aria-controls":ne?de:void 0,"aria-labelledby":G,"aria-describedby":ye,"aria-label":$?`${$}${X?`, ${B(X,ae)}`:""}`:void 0,onClick:()=>ie(e=>!e),className:`${r({invalid:E,size:I,className:T})} flex items-center justify-between text-left`,children:[
6
+ /* @__PURE__ */y("span",{className:X?"text-gray-900":a,children:X?B(X,ae):ke}),
7
7
  /* @__PURE__ */y(i,{name:"date",className:`h-4 w-4 shrink-0 ${a}`,strokeWidth:"1.75","aria-hidden":"true"})]}),pe&&/* @__PURE__ */y("span",{id:ue,className:"sr-only",children:X?B(X,ae):ke}),ge&&/* @__PURE__ */y("span",{id:ce,className:"sr-only",children:te.required}),ne&&g(
8
- /* @__PURE__ */x("div",{ref:se,id:de,role:"dialog","aria-label":W??te.dialog,className:"fixed w-72 rounded-xl border border-gray-200 bg-white p-3 shadow-lg",style:{zIndex:l.popup,left:me?.left,right:me?.right,top:me?.top,bottom:me?.bottom,maxWidth:me?.maxWidth,visibility:me?void 0:"hidden"},children:[
9
- /* @__PURE__ */y(t,{value:X||null,min:_||null,max:ee||null,weekStartsOn:M,onSelect:e=>{ie(!1),le.current?.focus(),N?.(D(e))}}),(A||Ne)&&/* @__PURE__ */x("div",{className:"mt-2 flex justify-between border-t border-gray-100 pt-2",children:[A&&/* @__PURE__ */y("button",{type:"button",onClick:()=>{ie(!1),le.current?.focus(),N?.(null)},className:"rounded-(--radius-control) px-2 py-1 text-sm text-gray-500 hover:bg-gray-100 hover:text-gray-700",children:te.clear}),Ne&&/* @__PURE__ */y("button",{type:"button",onClick:()=>{ie(!1),le.current?.focus(),N?.(/* @__PURE__ */new Date)},className:"ml-auto rounded-(--radius-control) px-2 py-1 text-sm font-medium text-blue-600 hover:bg-blue-50",children:te.today})]})]}),document.body)]})});export{C as DatePicker_default};
8
+ /* @__PURE__ */x("div",{ref:se,id:de,role:"dialog","aria-label":$??te.dialog,className:"fixed w-72 rounded-xl border border-gray-200 bg-white p-3 shadow-lg",style:{zIndex:l.popup,left:me?.left,right:me?.right,top:me?.top,bottom:me?.bottom,maxWidth:me?.maxWidth,visibility:me?void 0:"hidden"},children:[
9
+ /* @__PURE__ */y(t,{value:X||null,min:_||null,max:ee||null,weekStartsOn:S,onSelect:e=>{ie(!1),le.current?.focus(),N?.(D(e))}}),(Q||Ne)&&/* @__PURE__ */x("div",{className:"mt-2 flex justify-between border-t border-gray-100 pt-2",children:[Q&&/* @__PURE__ */y("button",{type:"button",onClick:()=>{ie(!1),le.current?.focus(),N?.(null)},className:"rounded-(--radius-control) px-2 py-1 text-sm text-gray-500 hover:bg-gray-100 hover:text-gray-700",children:te.clear}),Ne&&/* @__PURE__ */y("button",{type:"button",onClick:()=>{ie(!1),le.current?.focus(),N?.(/* @__PURE__ */new Date)},className:"ml-auto rounded-(--radius-control) px-2 py-1 text-sm font-medium text-blue-600 hover:bg-blue-50",children:te.today})]})]}),document.body)]})});export{F as DatePicker_default};
@@ -0,0 +1,2 @@
1
+ import{brandBox as t}from"./chunk-64ACCUNN.js";import{jsx as e}from"react/jsx-runtime";function i({size:i,width:r,height:h,style:o,...c}){const n=t(i??r??h??18,1);/* @__PURE__ */
2
+ return e("svg",{width:n.width,height:n.height,viewBox:"-0.2 -0.2 24.4 24.4",fill:"currentColor","aria-hidden":"true",...c,style:{...n.style,...o},children:/* @__PURE__ */e("path",{d:"M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077"})})}export{i as BrandInstagramIcon};
@@ -1,4 +1,4 @@
1
- import{ColorPicker as e}from"./chunk-QPX35URZ.js";import{InputNumber_default as t}from"./chunk-MTXTJLFK.js";import{Segmented as l}from"./chunk-N6DTTOB6.js";import{Icon as r}from"./chunk-KIBL6M3T.js";import{jsxs as a,Fragment as o,jsx as s}from"react/jsx-runtime";var i=["solid","dashed","dotted"],n=["top","right","bottom","left"];function d(e){const t=e??{},l="number"==typeof t.width?t.width:0;return Object.fromEntries(n.map(e=>[e,"number"==typeof t[e]?t[e]:l]))}function m(e,t){const l=e??{},r=d(t),a=n.some(e=>"number"==typeof l[e]),o=n.map(e=>"number"==typeof l[e]?l[e]:"number"==typeof l.width?l.width:a?0:r[e]);return!o.every(e=>e===o[0])}var c="h-3.5 w-3.5",h={all:/* @__PURE__ */s(r,{name:"border-all","aria-hidden":"true",className:c}),top:/* @__PURE__ */s(r,{name:"border-top","aria-hidden":"true",className:c}),right:/* @__PURE__ */s(r,{name:"border-right","aria-hidden":"true",className:c}),bottom:/* @__PURE__ */s(r,{name:"border-bottom","aria-hidden":"true",className:c}),left:/* @__PURE__ */s(r,{name:"border-left","aria-hidden":"true",className:c})},p={solid:/* @__PURE__ */s(r,{name:"line-solid","aria-hidden":"true",className:c}),dashed:/* @__PURE__ */s(r,{name:"line-dashed","aria-hidden":"true",className:c}),dotted:/* @__PURE__ */s(r,{name:"line-dotted","aria-hidden":"true",className:c})};function u({label:r,value:d,onChange:m,each:c,placeholder:u,presets:f,words:b,widths:w=!0,styles:y=!0,min:g=0,max:v=20,step:N=1,readOnly:x}){const j=e=>"number"==typeof d[e]?d[e]:null,k=(e,t)=>{const l={...d};if("number"==typeof d.width)for(const e of n)null===j(e)&&(l[e]=d.width);l[e]=t,delete l.width,m(l)},S=(e,l,r,a,o,i)=>/* @__PURE__ */s("div",{"data-side":e,className:"all"===e?"col-span-2 min-w-0":"min-w-0",children:/* @__PURE__ */s(t,{value:a,onChange:i,min:g,max:v,step:N,precision:0,steppers:"compact",readOnly:x,placeholder:o,prefix:r,suffix:b.unit,"aria-label":l})}),T=n.map(j),C="number"==typeof d.width?d.width:T.every(e=>null!==e&&e===T[0])?T[0]:null,O=null===C&&T.some(e=>null!==e),z=n.every(e=>u.sides[e]===u.sides.top)?String(u.sides.top):"–",B=e=>j(e)??("number"==typeof d.width?d.width:null),I=d.style??u.style;/* @__PURE__ */
2
- return a("div",{role:"group","aria-label":r,"data-border":c?"each":"all",className:"grid w-full min-w-0 grid-cols-2 gap-2",children:[w?c?/* @__PURE__ */a(o,{children:[S("left",b.sides.left,h.left,B("left"),String(u.sides.left),e=>k("left",e)),S("top",b.sides.top,h.top,B("top"),String(u.sides.top),e=>k("top",e)),S("right",b.sides.right,h.right,B("right"),String(u.sides.right),e=>k("right",e)),S("bottom",b.sides.bottom,h.bottom,B("bottom"),String(u.sides.bottom),e=>k("bottom",e))]}):S("all",b.width,h.all,C,O?"–":z,e=>{const t={...d,width:e};for(const e of n)delete t[e];m(t)}):null,y&&/* @__PURE__ */s("div",{"data-border-style":"",className:"col-span-2 min-w-0",children:/* @__PURE__ */s(l,{block:!0,size:"sm",label:b.style,value:I,onChange:e=>{x||m({...d,style:e})},options:i.map(e=>({value:e,label:/* @__PURE__ */a(o,{children:[p[e],
1
+ import{ColorPicker as e}from"./chunk-FFJVCLGH.js";import{InputNumber_default as t}from"./chunk-CPXHU3Y2.js";import{Segmented as l}from"./chunk-N6DTTOB6.js";import{Icon as r}from"./chunk-KIBL6M3T.js";import{jsxs as a,Fragment as o,jsx as s}from"react/jsx-runtime";var i=["solid","dashed","dotted"],n=["top","right","bottom","left"];function d(e){const t=e??{},l="number"==typeof t.width?t.width:0;return Object.fromEntries(n.map(e=>[e,"number"==typeof t[e]?t[e]:l]))}function m(e,t){const l=e??{},r=d(t),a=n.some(e=>"number"==typeof l[e]),o=n.map(e=>"number"==typeof l[e]?l[e]:"number"==typeof l.width?l.width:a?0:r[e]);return!o.every(e=>e===o[0])}var c="h-3.5 w-3.5",h={all:/* @__PURE__ */s(r,{name:"border-all","aria-hidden":"true",className:c}),top:/* @__PURE__ */s(r,{name:"border-top","aria-hidden":"true",className:c}),right:/* @__PURE__ */s(r,{name:"border-right","aria-hidden":"true",className:c}),bottom:/* @__PURE__ */s(r,{name:"border-bottom","aria-hidden":"true",className:c}),left:/* @__PURE__ */s(r,{name:"border-left","aria-hidden":"true",className:c})},p={solid:/* @__PURE__ */s(r,{name:"line-solid","aria-hidden":"true",className:c}),dashed:/* @__PURE__ */s(r,{name:"line-dashed","aria-hidden":"true",className:c}),dotted:/* @__PURE__ */s(r,{name:"line-dotted","aria-hidden":"true",className:c})};function u({label:r,value:d,onChange:m,each:c,placeholder:u,presets:f,words:b,widths:w=!0,styles:y=!0,min:g=0,max:v=20,step:N=1,readOnly:x}){const j=e=>"number"==typeof d[e]?d[e]:null,k=(e,t)=>{const l={...d};if("number"==typeof d.width)for(const e of n)null===j(e)&&(l[e]=d.width);l[e]=t,delete l.width,m(l)},C=(e,l,r,a,o,i)=>/* @__PURE__ */s("div",{"data-side":e,className:"all"===e?"col-span-2 min-w-0":"min-w-0",children:/* @__PURE__ */s(t,{value:a,onChange:i,min:g,max:v,step:N,precision:0,steppers:"compact",readOnly:x,placeholder:o,prefix:r,suffix:b.unit,"aria-label":l})}),S=n.map(j),O="number"==typeof d.width?d.width:S.every(e=>null!==e&&e===S[0])?S[0]:null,H=null===O&&S.some(e=>null!==e),T=n.every(e=>u.sides[e]===u.sides.top)?String(u.sides.top):"–",z=e=>j(e)??("number"==typeof d.width?d.width:null),B=d.style??u.style;/* @__PURE__ */
2
+ return a("div",{role:"group","aria-label":r,"data-border":c?"each":"all",className:"grid w-full min-w-0 grid-cols-2 gap-2",children:[w?c?/* @__PURE__ */a(o,{children:[C("left",b.sides.left,h.left,z("left"),String(u.sides.left),e=>k("left",e)),C("top",b.sides.top,h.top,z("top"),String(u.sides.top),e=>k("top",e)),C("right",b.sides.right,h.right,z("right"),String(u.sides.right),e=>k("right",e)),C("bottom",b.sides.bottom,h.bottom,z("bottom"),String(u.sides.bottom),e=>k("bottom",e))]}):C("all",b.width,h.all,O,H?"–":T,e=>{const t={...d,width:e};for(const e of n)delete t[e];m(t)}):null,y&&/* @__PURE__ */s("div",{"data-border-style":"",className:"col-span-2 min-w-0",children:/* @__PURE__ */s(l,{block:!0,size:"sm",label:b.style,value:B,onChange:e=>{x||m({...d,style:e})},options:i.map(e=>({value:e,label:/* @__PURE__ */a(o,{children:[p[e],
3
3
  /* @__PURE__ */s("span",{className:"sr-only",children:b.styles[e]})]}),title:b.styles[e]}))})}),
4
4
  /* @__PURE__ */s("div",{"data-border-color":"",className:"col-span-2 flex min-w-0 items-center",children:/* @__PURE__ */s(e,{value:d.color??"",onChange:e=>{x||m({...d,color:e})},label:b.color,presets:f,fallback:u.color,showHexInput:!0,size:"sm",disabled:x})})]})}export{i as BORDER_LINE_STYLES,u as BorderInput,d as borderSides,m as borderStartEach};
@@ -0,0 +1,2 @@
1
+ import{brandBox as c}from"./chunk-64ACCUNN.js";import{jsx as t}from"react/jsx-runtime";function e({size:e,width:i,height:r,style:a,...h}){const l=c(e??i??r??18,1.219);/* @__PURE__ */
2
+ return t("svg",{width:l.width,height:l.height,viewBox:"-0.2 1.988 24.4 20.024",fill:"currentColor","aria-hidden":"true",...h,style:{...l.style,...a},children:/* @__PURE__ */t("path",{d:"M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 0 1 .213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.326.326 0 0 0 .167-.054l1.903-1.114a.864.864 0 0 1 .717-.098 10.16 10.16 0 0 0 2.837.403c.276 0 .543-.027.811-.05-.857-2.578.157-4.972 1.932-6.446 1.703-1.415 3.882-1.98 5.853-1.838-.576-3.583-4.196-6.348-8.596-6.348zM5.785 5.991c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178A1.17 1.17 0 0 1 4.623 7.17c0-.651.52-1.18 1.162-1.18zm5.813 0c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178 1.17 1.17 0 0 1-1.162-1.178c0-.651.52-1.18 1.162-1.18zm5.34 2.867c-1.797-.052-3.746.512-5.28 1.786-1.72 1.428-2.687 3.72-1.78 6.22.942 2.453 3.666 4.229 6.884 4.229.826 0 1.622-.12 2.361-.336a.722.722 0 0 1 .598.082l1.584.926a.272.272 0 0 0 .14.047c.134 0 .24-.111.24-.247 0-.06-.023-.12-.038-.177l-.327-1.233a.582.582 0 0 1-.023-.156.49.49 0 0 1 .201-.398C23.024 18.48 24 16.82 24 14.98c0-3.21-2.931-5.837-6.656-6.088V8.89c-.135-.01-.27-.027-.407-.03zm-2.53 3.274c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.97-.982zm4.844 0c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.969-.982z"})})}export{e as BrandWechatIcon};
@@ -0,0 +1,6 @@
1
+ import{jsxs as L,jsx as e}from"react/jsx-runtime";function r({size:r=18,...o}){/* @__PURE__ */
2
+ return L("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none","aria-hidden":"true",...o,children:[
3
+ /* @__PURE__ */e("path",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5z"}),
4
+ /* @__PURE__ */e("path",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",d:"M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972z"}),
5
+ /* @__PURE__ */e("path",{fillRule:"evenodd",d:"M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972zM5.25 7.9a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0zM8.25 7.9a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"}),
6
+ /* @__PURE__ */e("path",{fillRule:"evenodd",d:"M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5zM14.15 14a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0zM17.15 14a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"})]})}export{r as BrandWechatSolidIcon};
@@ -0,0 +1,2 @@
1
+ import{brandBox as t}from"./chunk-64ACCUNN.js";import{jsx as e}from"react/jsx-runtime";function i({size:i,width:r,height:h,style:c,...o}){const n=t(i??r??h??18,1.466);/* @__PURE__ */
2
+ return e("svg",{width:n.width,height:n.height,viewBox:"-0.2 3.678 24.4 16.642",fill:"currentColor","aria-hidden":"true",...o,style:{...n.style,...c},children:/* @__PURE__ */e("path",{d:"M23.836 4.27c-.29-.413-.86-.515-1.273-.226L.163 19.73c.167.235.437.39.747.39h22.18c.503 0 .91-.41.91-.914V4.78c-.004-.176-.058-.352-.164-.51zm-22.4-.226c-.413-.29-.982-.19-1.272.226-.107.154-.162.332-.164.51v14.45l10.664-8.736-9.227-6.45v-.002z"})})}export{i as BrandCampaignmonitorIcon};
@@ -1,4 +1,4 @@
1
- import{Card as e}from"./chunk-VU6VPKM3.js";import{Radio_default as a}from"./chunk-NI5FXWK5.js";import{Select_default as l}from"./chunk-HJH4WIBC.js";import{Input_default as r}from"./chunk-UNEJ2ABD.js";import{FormField as n}from"./chunk-MVQBVPWP.js";import{Checkbox_default as i}from"./chunk-CGZBDI6C.js";import{Textarea_default as c}from"./chunk-AWY3F6PV.js";import{Button_default as o}from"./chunk-4IU5BSVE.js";import{useState as t}from"react";import{jsx as m,jsxs as d}from"react/jsx-runtime";function s(){const[s,h]=t("pro"),[u,p]=t(!0),[f,g]=t("us");/* @__PURE__ */
1
+ import{Card as e}from"./chunk-VU6VPKM3.js";import{Radio_default as a}from"./chunk-NI5FXWK5.js";import{Select_default as l}from"./chunk-RERNKFEW.js";import{Input_default as r}from"./chunk-GX2GSDJP.js";import{FormField as n}from"./chunk-MVQBVPWP.js";import{Checkbox_default as i}from"./chunk-CGZBDI6C.js";import{Textarea_default as c}from"./chunk-7PCI6AUU.js";import{Button_default as o}from"./chunk-4IU5BSVE.js";import{useState as t}from"react";import{jsx as m,jsxs as d}from"react/jsx-runtime";function s(){const[s,h]=t("pro"),[u,p]=t(!0),[f,g]=t("us");/* @__PURE__ */
2
2
  return m("div",{className:"h-full overflow-auto bg-gray-50 p-6",children:/* @__PURE__ */d("form",{className:"mx-auto max-w-2xl space-y-5",onSubmit:e=>e.preventDefault(),children:[
3
3
  /* @__PURE__ */d("div",{children:[
4
4
  /* @__PURE__ */m("h1",{className:"text-xl font-semibold text-gray-900",children:"Account settings"}),
@@ -0,0 +1,2 @@
1
+ import{brandBox as h}from"./chunk-64ACCUNN.js";import{jsx as v}from"react/jsx-runtime";function c({size:c,width:t,height:l,style:e,...i}){const r=h(c??t??l??18,3.528);/* @__PURE__ */
2
+ return v("svg",{width:r.width,height:r.height,viewBox:"-0.2 8.541 24.4 6.917",fill:"currentColor","aria-hidden":"true",...i,style:{...r.style,...e},children:/* @__PURE__ */v("path",{d:"M22.498 14.298c-.016-.414.345-.751.75-.755a.745.745 0 0 1 .752.755.755.755 0 0 1-.751.745c-.395.002-.759-.346-.751-.745zm.759-.083c.067-.02.164-.042.162-.13.007-.09-.086-.133-.162-.134h-.163v.263c0 .001.165-.002.163.001zm-.163.107v.418h-.14v-.91h.327c.156-.021.294.092.286.253a.218.218 0 0 1-.156.19c.162.083.108.322.173.467h-.156a2.355 2.355 0 0 1-.04-.205c-.018-.093-.047-.229-.17-.213h-.124zm.76-.024a.603.603 0 0 0-.605-.632c-.338-.012-.62.302-.605.632a.619.619 0 0 0 .605.622.61.61 0 0 0 .605-.622zm-5.052-.579l-.878 1.008h-1.306l1.559-1.745-1.56-1.75h1.355l.902.997.878-.998h1.306l-1.543 1.743 1.559 1.753h-1.371l-.901-1.008zm-4.703-.352v-.827h1.904v-1.506l1.724 1.948-1.724 1.941v-1.556h-1.904zm1.56 1.36h-3.2V9.044h3.224v1.024H13.77v1.163h1.888v.958h-1.904v1.522h1.904v1.016zm-5.705-.655c-.54.017-.878-.552-.877-1.04-.01-.507.307-1.123.878-1.105.579-.025.871.6.845 1.103.023.501-.29 1.062-.846 1.042zM4.743 12.41c.076-.358.403-.67.78-.663a.788.788 0 0 1 .803.663H4.743zm15.182.564l1.815-2.047h-2.125l-.74.844-.763-.844h-4.037v-.548h1.912V8.741H10.84v2.58c-.362-.448-.981-.559-1.526-.492-.782.123-1.427.762-1.634 1.514-.254-.958-1.179-1.588-2.157-1.554-.781.009-1.6.365-1.987 1.071v-.818h-1.87v-.9h2.043v-1.4H0v6.287h1.666v-2.644h1.666a7.59 7.59 0 0 0-.082.622c-.013 1.232 1.042 2.27 2.274 2.236a2.204 2.204 0 0 0 2.157-1.432H6.254c-.14.268-.441.38-.73.36-.457.009-.83-.417-.829-.86h2.914c.083 1.027.988 1.966 2.043 1.947a1.53 1.53 0 0 0 1.19-.639v.41h7.215l.754-.86.754.86h2.192l-1.832-2.055z"})})}export{c as BrandFedexIcon};
@@ -0,0 +1,2 @@
1
+ import{brandBox as c}from"./chunk-64ACCUNN.js";import{jsx as l}from"react/jsx-runtime";function t({size:t,width:e,height:i,style:r,...h}){const o=c(t??e??i??18,.96);/* @__PURE__ */
2
+ return l("svg",{width:o.width,height:o.height,viewBox:"0.289 -0.2 23.422 24.4",fill:"currentColor","aria-hidden":"true",...h,style:{...o.style,...r},children:/* @__PURE__ */l("path",{d:"M4.459 4.208c.746.606 1.026.56 2.428.466l13.215-.793c.28 0 .047-.28-.046-.326L17.86 1.968c-.42-.326-.981-.7-2.055-.607L3.01 2.295c-.466.046-.56.28-.374.466zm.793 3.08v13.904c0 .747.373 1.027 1.214.98l14.523-.84c.841-.046.935-.56.935-1.167V6.354c0-.606-.233-.933-.748-.887l-15.177.887c-.56.047-.747.327-.747.933zm14.337.745c.093.42 0 .84-.42.888l-.7.14v10.264c-.608.327-1.168.514-1.635.514-.748 0-.935-.234-1.495-.933l-4.577-7.186v6.952L12.21 19s0 .84-1.168.84l-3.222.186c-.093-.186 0-.653.327-.746l.84-.233V9.854L7.822 9.76c-.094-.42.14-1.026.793-1.073l3.456-.233 4.764 7.279v-6.44l-1.215-.139c-.093-.514.28-.887.747-.933zM1.936 1.035l13.31-.98c1.634-.14 2.055-.047 3.082.7l4.249 2.986c.7.513.934.653.934 1.213v16.378c0 1.026-.373 1.634-1.68 1.726l-15.458.934c-.98.047-1.448-.093-1.962-.747l-3.129-4.06c-.56-.747-.793-1.306-.793-1.96V2.667c0-.839.374-1.54 1.447-1.632z"})})}export{t as BrandNotionIcon};
@@ -0,0 +1,2 @@
1
+ import{brandBox as t}from"./chunk-64ACCUNN.js";import{jsx as h}from"react/jsx-runtime";function e({size:e,width:i,height:r,style:l,...o}){const n=t(e??i??r??18,.979);/* @__PURE__ */
2
+ return h("svg",{width:n.width,height:n.height,viewBox:"0.058 -0.2 23.884 24.4",fill:"currentColor","aria-hidden":"true",...o,style:{...n.style,...l},children:/* @__PURE__ */h("path",{d:"M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z"})})}export{e as BrandXIcon};
@@ -0,0 +1,2 @@
1
+ import{brandBox as h}from"./chunk-64ACCUNN.js";import{jsx as t}from"react/jsx-runtime";function e({size:e,width:i,height:c,style:r,...l}){const v=h(e??i??c??18,1);/* @__PURE__ */
2
+ return t("svg",{width:v.width,height:v.height,viewBox:"-0.2 -0.2 24.4 24.4",fill:"currentColor","aria-hidden":"true",...l,style:{...v.style,...r},children:/* @__PURE__ */t("path",{d:"M18.316 5.684H24v12.632h-5.684V5.684zM5.684 24h12.632v-5.684H5.684V24zM18.316 5.684V0H1.895A1.894 1.894 0 0 0 0 1.895v16.421h5.684V5.684h12.632zm-7.207 6.25v-.065c.272-.144.5-.349.687-.617s.279-.595.279-.982c0-.379-.099-.72-.3-1.025a2.05 2.05 0 0 0-.832-.714 2.703 2.703 0 0 0-1.197-.257c-.6 0-1.094.156-1.481.467-.386.311-.65.671-.793 1.078l1.085.452c.086-.249.224-.461.413-.633.189-.172.445-.257.767-.257.33 0 .602.088.816.264a.86.86 0 0 1 .322.703c0 .33-.12.589-.36.778-.24.19-.535.284-.886.284h-.567v1.085h.633c.407 0 .748.109 1.02.327.272.218.407.499.407.843 0 .336-.129.614-.387.832s-.565.327-.924.327c-.351 0-.651-.103-.897-.311-.248-.208-.422-.502-.521-.881l-1.096.452c.178.616.505 1.082.977 1.401.472.319.984.478 1.538.477a2.84 2.84 0 0 0 1.293-.291c.382-.193.684-.458.902-.794.218-.336.327-.72.327-1.149 0-.429-.115-.797-.344-1.105a2.067 2.067 0 0 0-.881-.689zm2.093-1.931l.602.913L15 10.045v5.744h1.187V8.446h-.827l-2.158 1.557zM22.105 0h-3.289v5.184H24V1.895A1.894 1.894 0 0 0 22.105 0zm-3.289 23.5l4.684-4.684h-4.684V23.5zM0 22.105C0 23.152.848 24 1.895 24h3.289v-5.184H0v3.289z"})})}export{e as BrandGooglecalendarIcon};
@@ -0,0 +1,29 @@
1
+ import{Tree as e,TreeRow as l,TreeGroup as n}from"./chunk-G433MKIN.js";import{MarqueeBox as a}from"./chunk-IC72MGON.js";import{EmptyState as r}from"./chunk-KDZUWQEG.js";import{ImageLightbox as i}from"./chunk-RGBX3EVC.js";import{DescriptionList as t}from"./chunk-SACUSHVN.js";import{Drawer as o}from"./chunk-YW2DH6YQ.js";import{Breadcrumbs as d}from"./chunk-WJ3XSJ6B.js";import{useGridSelection as s}from"./chunk-VLKDWKVR.js";import{useMarquee as c}from"./chunk-OLFYNMTD.js";import{ROOT_KEY as m,mediaLibraryMenu as u}from"./chunk-7CFH6Y4T.js";import{useMediaMoveItems as h}from"./chunk-DFDDRKIJ.js";import{copyToClipboard as p}from"./chunk-5PY4H4ZJ.js";import{DropdownMenu as f}from"./chunk-W7S56JZ7.js";import{NativeSelect as g}from"./chunk-RERNKFEW.js";import{MediaUploadGrid as v}from"./chunk-V4KQUOUP.js";import{MediaUsedInList as y}from"./chunk-EZGY6CFN.js";import{Input_default as k}from"./chunk-GX2GSDJP.js";import{useFileIntake as b,FileIntakeAlert as w}from"./chunk-YDYDR72S.js";import{Segmented as x}from"./chunk-N6DTTOB6.js";import{Checkbox_default as C}from"./chunk-CGZBDI6C.js";import{useContextMenu as N,ContextMenu as I}from"./chunk-AX7KPMDV.js";import{Banner as D}from"./chunk-WTY3SXO7.js";import{IconButton_default as S}from"./chunk-4CANQ3B3.js";import{ColoredBadge as j}from"./chunk-XWLWG4HS.js";import{Button_default as z}from"./chunk-4IU5BSVE.js";import{buttonClasses as F}from"./chunk-K7U4RWXJ.js";import{Icon as T}from"./chunk-KIBL6M3T.js";import{Tooltip as O}from"./chunk-22S6LG6D.js";import{usePlotWidth as E}from"./chunk-MAFUXCPZ.js";import{useShellStrings as P}from"./chunk-E6UCGCOC.js";import{useRef as L,useMemo as M,useCallback as A,useState as K,useEffect as R}from"react";import{jsxs as U,Fragment as B,jsx as G}from"react/jsx-runtime";var W="application/x-efficient-media-files",J="application/x-efficient-media-folder",V={type:"all",use:"any",sort:"newest"},Y={lock:/* @__PURE__ */G(T,{name:"lock","aria-hidden":"true",className:"h-4 w-4"}),folder:/* @__PURE__ */G(T,{name:"folder","aria-hidden":"true",className:"h-4 w-4"}),folderOpen:/* @__PURE__ */G(T,{name:"folder-open","aria-hidden":"true",className:"h-4 w-4"}),folderPlus:/* @__PURE__ */G(T,{name:"folder-plus","aria-hidden":"true",className:"h-4 w-4"}),trash:/* @__PURE__ */G(T,{name:"trash","aria-hidden":"true",className:"h-4 w-4"}),upload:/* @__PURE__ */G(T,{name:"upload","aria-hidden":"true",className:"h-4 w-4"}),search:/* @__PURE__ */G(T,{name:"search","aria-hidden":"true",className:"h-4 w-4"}),grid:/* @__PURE__ */G(T,{name:"grid","aria-hidden":"true",className:"h-4 w-4"}),list:/* @__PURE__ */G(T,{name:"list","aria-hidden":"true",className:"h-4 w-4"}),more:/* @__PURE__ */G(T,{name:"more","aria-hidden":"true",className:"h-4 w-4"}),copy:/* @__PURE__ */G(T,{name:"copy","aria-hidden":"true",className:"h-4 w-4"}),edit:/* @__PURE__ */G(T,{name:"edit","aria-hidden":"true",className:"h-4 w-4"}),swap:/* @__PURE__ */G(T,{name:"swap","aria-hidden":"true",className:"h-4 w-4"}),crop:/* @__PURE__ */G(T,{name:"crop","aria-hidden":"true",className:"h-4 w-4"}),external:/* @__PURE__ */G(T,{name:"external","aria-hidden":"true",className:"h-4 w-4"}),undo:/* @__PURE__ */G(T,{name:"undo","aria-hidden":"true",className:"h-4 w-4"})},H={link:/* @__PURE__ */G(T,{name:"link","aria-hidden":"true",className:"h-3 w-3"}),email:/* @__PURE__ */G(T,{name:"email","aria-hidden":"true",className:"h-3 w-3"}),lock:/* @__PURE__ */G(T,{name:"lock","aria-hidden":"true",className:"h-3 w-3"}),clock:/* @__PURE__ */G(T,{name:"clock","aria-hidden":"true",className:"h-3 w-3"})};function X({value:e,label:l,onDone:n}){const[a,r]=K(e),i=L(!1),t=e=>{i.current||(i.current=!0,n(e))};/* @__PURE__ */
2
+ return G(k,{size:"sm",autoFocus:!0,"aria-label":l,value:a,onChange:e=>r(e.target.value),onFocus:e=>e.currentTarget.select(),onKeyDown:l=>{l.stopPropagation(),"Enter"===l.key?(l.preventDefault(),t(a.trim()||e)):"Escape"===l.key&&(l.preventDefault(),t(null))},onBlur:()=>t(a.trim()||e),onClick:e=>e.stopPropagation()})}function $(T){const{mode:$="manage",layout:Z="auto",location:Q,onLocationChange:q,folders:_,products:ee,allFilesCount:le,trashCount:ne,files:ae,query:re,onQueryChange:ie,filters:te=V,onFiltersChange:oe,extraFilters:de,view:se="grid",onViewChange:ce,selectedIds:me,onSelectionChange:ue,usedIn:he,denied:pe={},accept:fe="image/*,video/*",maxSizeBytes:ge,busy:ve,progress:ye,onUpload:ke,onNewFolder:be,onRename:we,onMove:xe,onTrash:Ce,onDeleteFolder:Ne,onRestore:Ie,onDeleteForever:De,onEmptyTrash:Se,onReplace:je,onCropEdit:ze,onOpenInDesign:Fe,onChoose:Te,onCancel:Oe,pickNote:Ee,className:Pe=""}=T,Le=P().mediaLibrary,Me=P().media,Ae="pick"===$,Ke=!Ae,Re=L(null),Ue=E(Re,"phone"===Z?343:1200),Be="phone"===Z||"auto"===Z&&Ue<640,Ge=M(()=>function(e=[]){const l=/* @__PURE__ */new Map,n=(e,a)=>{for(const r of e){const e=[...a,r];l.set(r.id,{node:r,path:e}),r.children&&n(r.children,e)}};return n(e,[]),l}(ee),[ee]),We=M(()=>new Map(_.map(e=>[e.id,e])),[_]),Je=M(()=>{const e=/* @__PURE__ */new Map;for(const l of _){const n=l.parentId&&We.has(l.parentId)?l.parentId:null;e.set(n,[...e.get(n)??[],l])}return e},[_,We]),Ve=A(e=>{const l=[];for(let n=e?We.get(e):void 0;n&&(l.unshift(n),!(l.length>_.length));n=n.parentId?We.get(n.parentId):void 0);return l},[We,_.length]),Ye=A((e,l)=>Ve(e).some(e=>e.id===l),[Ve]),[He,Xe]=K(()=>/* @__PURE__ */new Set(["@files"])),$e=e=>Xe(l=>{const n=new Set(l);return n.has(e)?n.delete(e):n.add(e),n}),Ze=A(e=>{Xe(l=>e.every(e=>l.has(e))?l:/* @__PURE__ */new Set([...l,...e]))},[]),Qe="files"===(qe=Q).place?`files:${qe.folderId??""}`:"products"===qe.place?`products:${qe.nodeId??""}`:"trash";var qe;R(()=>{if("files"===Q.place)Ze(["@files",...Ve(Q.folderId).slice(0,-1).map(e=>e.id)]);else if("products"===Q.place){const e=Q.nodeId?Ge.get(Q.nodeId)?.path??[]:[];Ze(["@products",...e.slice(0,-1).map(e=>`p:${e.id}`)])}},[Qe]);const _e="products"===Q.place,el="trash"===Q.place,ll="files"===Q.place,nl=ll?Q.folderId:null,al=_e&&Q.nodeId?Ge.get(Q.nodeId)?.path[0]:void 0,rl=e=>e?.sharedFrom?`${Le.readOnly} ${Le.editedAtHq(e.sharedFrom)}`:Le.readOnly,il=M(()=>ae.map(e=>e.id),[ae]),tl=M(()=>new Map(ae.map(e=>[e.id,e])),[ae]),ol=s(il),dl=M(()=>il.filter(e=>ol.selected.has(e)),[il,ol.selected]),sl=1===dl.length?tl.get(dl[0]):void 0,cl=L(!0);R(()=>{cl.current?cl.current=!1:ol.clear()},[Qe]);const ml=me?.join("\0");R(()=>{me&&ol.setSelection(me)},[ml]);const ul=L(ml??""),hl=dl.join("\0");R(()=>{ul.current!==hl&&(ul.current=hl,ue?.(dl))},[hl]);const pl=(e,l={})=>{Ae?ol.select(e):ol.select(e,{ctrl:!(!l.ctrlKey&&!l.metaKey),shift:!!l.shiftKey})},[fl,gl]=K(null),vl=e=>{const l=fl;if(gl(null),!l||null==e)return;e!==("folder"===l.kind?We.get(l.id)?.name:tl.get(l.id)?.name)&&we?.(l,e)},yl=async e=>{if(!be)return;const l=await be(e);Ze(["@files",...e?[e]:[]]),"string"==typeof l&&gl({kind:"folder",id:l})},kl=A(e=>{const l=[],n=l=>{if("files"===e.kind)return l===nl&&ll?Le.alreadyHere:void 0;const n=We.get(e.id);return l===e.id||l&&Ye(l,e.id)?Le.notIntoItself:(n?.parentId??null)===l?Le.folderAlreadyHere:void 0};l.push({key:m,label:Le.allFiles,disabledReason:n(null)});const a=(e,r)=>{for(const i of Je.get(e)??[])l.push({key:i.id,label:i.name,depth:r,disabledReason:n(i.id)}),a(i.id,r+1)};return a(null,1),l},[Je,We,ll,Ye,nl,Le]),bl=A(e=>{const l=new Set(e.map(e=>tl.get(e)?.kind??"image"));return 1===l.size?[...l][0]:"file"},[tl]),[wl,xl]=K(null),Cl={words:Le,media:Me,denied:pe,moveTargets:kl,kindOf:bl,urlOf:e=>tl.get(e)?.url,newSubfolder:be&&Ke?e=>{yl(e)}:void 0,rename:we&&Ke?e=>{"file"!==e.kind||ol.isSelected(e.id)||ol.select(e.id),gl(e)}:void 0,move:xe&&Ke?xe:void 0,trash:Ce&&Ke?Ce:void 0,deleteFolder:Ne&&Ke?Ne:void 0,folderNotEmpty:e=>!!We.get(e)?.notEmpty,replace:je&&Ke?je:void 0,copyUrl:e=>{const l=tl.get(e)?.url;l&&p(Le.urlLabel,l)},openInDesign:Fe,restore:Ie,deleteForever:De},Nl=e=>u(e,Cl),Il=N(),Dl=(e,l)=>{Ae||(ol.isSelected(e)||ol.select(e),Il.open(l,(e=>{const l=ol.isSelected(e)?dl:[e];return _e?{kind:"render",id:e}:el?{kind:"trashed",ids:l}:{kind:"files",ids:l}})(e)))},[Sl,jl]=K(null),[zl,Fl]=K(null),[Tl,Ol]=K(null);R(()=>{if(!zl&&!Sl)return;const e=()=>{Fl(null),jl(null)};return window.addEventListener("dragend",e),window.addEventListener("drop",e),()=>{window.removeEventListener("dragend",e),window.removeEventListener("drop",e)}},[zl,Sl]);const El=(e,l)=>Array.from(e.dataTransfer?.types??[]).includes(l),Pl=(e,l)=>!(!xe||pe.move||Ae)&&(!!El(e,W)||!(!El(e,J)||!Tl)&&(l!==Tl&&!(l&&Ye(l,Tl)))),Ll=(e,l)=>({onDragEnter:n=>{Pl(n,l)&&(n.preventDefault(),jl(e))},onDragOver:n=>{Pl(n,l)&&(n.preventDefault(),n.dataTransfer.dropEffect="move",Sl!==e&&jl(e))},onDragLeave:l=>{const n=l.relatedTarget;n&&l.currentTarget.contains(n)||jl(l=>l===e?null:l)},onDrop:e=>{if(Pl(e,l))if(e.preventDefault(),jl(null),El(e,W)){let n;try{n=JSON.parse(e.dataTransfer.getData(W))}catch{n=null}Array.isArray(n)&&n.length&&xe({kind:"files",ids:n.map(String)},l)}else Tl&&(xe({kind:"folder",id:Tl},l),Ol(null))}}),Ml=e=>{const l=e=>El(e,W)||El(e,J)||El(e,"Files");return{onDragEnter:n=>{l(n)&&Fl(e)},onDragOver:n=>{l(n)&&zl!==e&&Fl(e)},onDragLeave:l=>{const n=l.relatedTarget;n&&l.currentTarget.contains(n)||Fl(l=>l===e?null:l)}}},Al=(e,l,n)=>/* @__PURE__ */G(O,{side:"right",content:zl===e?Le.noDropProducts:rl(n),open:zl===e||!zl&&void 0,children:/* @__PURE__ */G("span",{children:l})}),Kl=e=>({onContextMenu:l=>{Il.open(l,e)}}),Rl=(e,a,r)=>e.map(e=>{const i=`p:${e.id}`,t=r??e,o=He.has(i),d=e.children?.length?e.children:null;/* @__PURE__ */
3
+ return U("div",{role:"none",className:"contents",children:[
4
+ /* @__PURE__ */G(l,{label:Al(i,e.name,t),level:a,icon:d&&o?Y.folderOpen:Y.folder,badge:null!=e.count?e.count:void 0,selected:_e&&Q.nodeId===e.id,expanded:d?o:void 0,onToggle:d?()=>$e(i):void 0,onSelect:()=>q({place:"products",nodeId:e.id}),rowProps:{"data-media-row":i,...Ml(i),...Ke?Kl({kind:"product-node",id:e.id}):{}}}),d&&o&&/* @__PURE__ */G(n,{children:Rl(d,a+1,t)})]},e.id)}),Ul=(e,a)=>(Je.get(e)??[]).map(e=>{const r=Je.get(e.id),i=He.has(e.id),t="folder"===fl?.kind&&fl.id===e.id,o=Nl({kind:"folder",id:e.id});/* @__PURE__ */
5
+ return U("div",{role:"none",className:"contents",children:[
6
+ /* @__PURE__ */G(l,{label:e.name,level:a,icon:r&&i?Y.folderOpen:Y.folder,badge:null!=e.count?e.count:void 0,selected:t||ll&&Q.folderId===e.id,expanded:r?i:void 0,onToggle:r?()=>$e(e.id):void 0,onSelect:()=>q({place:"files",folderId:e.id}),drop:Sl===e.id?"into":void 0,dragging:Tl===e.id,draggable:Ke&&!!xe&&!pe.move,rename:t?/* @__PURE__ */G(X,{value:e.name,label:Le.folderName,onDone:vl}):void 0,actions:Ke&&o.length?/* @__PURE__ */G(f,{align:"end","aria-label":Le.folderActions,trigger:Y.more,items:o}):void 0,rowProps:{"data-media-row":e.id,...Ll(e.id,e.id),...Ke?Kl({kind:"folder",id:e.id}):{},...Ke&&xe&&!pe.move?{draggable:!0,onDragStart:l=>{l.dataTransfer.effectAllowed="move",l.dataTransfer.setData(J,e.id),Ol(e.id)},onDragEnd:()=>{Ol(null),jl(null)}}:{}}}),r&&i&&/* @__PURE__ */G(n,{children:Ul(e.id,a+1)})]},e.id)}),Bl=He.has("@files"),Gl=He.has("@products"),Wl=/* @__PURE__ */U(e,{"aria-label":Le.folders,children:[ee&&/* @__PURE__ */U(B,{children:[
7
+ /* @__PURE__ */G(l,{label:Al("@products",Le.products),level:1,icon:Y.lock,badge:{label:Le.readOnlyBadge,tone:"neutral"},expanded:ee.length?Gl:void 0,onToggle:()=>$e("@products"),selected:_e&&null==Q.nodeId,onSelect:()=>q({place:"products",nodeId:null}),rowProps:{"data-media-row":"@products",...Ml("@products")}}),Gl&&ee.length>0&&/* @__PURE__ */G(n,{children:Rl(ee,2)})]}),
8
+ /* @__PURE__ */G(l,{label:Le.allFiles,level:1,icon:Bl?Y.folderOpen:Y.folder,badge:null!=le?le:void 0,expanded:Je.get(null)?.length?Bl:void 0,onToggle:()=>$e("@files"),selected:ll&&null==Q.folderId,onSelect:()=>q({place:"files",folderId:null}),drop:"@files"===Sl?"into":void 0,rowProps:{"data-media-row":"@files",...Ll("@files",null)}}),Bl&&(Je.get(null)?.length??0)>0&&/* @__PURE__ */G(n,{children:Ul(null,2)}),Ke&&/* @__PURE__ */G(l,{label:Le.trash,level:1,icon:Y.trash,badge:null!=ne?ne:void 0,selected:el,onSelect:()=>q({place:"trash"}),rowProps:{"data-media-row":"@trash"}})]}),Jl=(()=>{if(el)return[{label:Le.trash}];if(_e){const e=Q.nodeId?Ge.get(Q.nodeId)?.path??[]:[];return[{label:Le.products,onClick:e.length?()=>q({place:"products",nodeId:null}):void 0},...e.map((l,n)=>({label:l.name,onClick:n<e.length-1?()=>q({place:"products",nodeId:l.id}):void 0}))]}const e=Ve(nl);return[{label:Le.allFiles,onClick:e.length?()=>q({place:"files",folderId:null}):void 0},...e.map((l,n)=>({label:l.name,onClick:n<e.length-1?()=>q({place:"files",folderId:l.id}):void 0}))]})(),Vl=_e?Le.readOnly:pe.upload,Yl=!!ke&&!el&&!Vl,Hl=b({accept:fe,maxSizeBytes:ge,multiple:!0,disabled:!Yl,onAccept:e=>ke?.(e,nl)}),Xl=_e?Le.noProductFolder:pe.newFolder,$l=e=>e?{"aria-disabled":!0,disabledReason:e}:{},Zl=/* @__PURE__ */U("div",{className:"flex flex-wrap items-center gap-2",children:[Ke&&be&&!el&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:Y.folderPlus,onClick:()=>{yl(nl)},...$l(Xl),children:Le.newFolder}),ke&&!el&&/* @__PURE__ */G(z,{variant:"primary",size:"sm",leftIcon:Y.upload,onClick:()=>Hl.open(),...$l(Vl),children:Le.upload}),Ke&&el&&Se&&ae.length>0&&/* @__PURE__ */G(z,{variant:"danger",size:"sm",onClick:Se,...$l(pe.deleteForever),children:Le.emptyTrash})]}),Ql=(e,l,n,a,r)=>/* @__PURE__ */G("div",{style:{width:Be?void 0:r,flex:Be?"1 1 120px":"0 0 auto",minWidth:0},children:/* @__PURE__ */G(g,{size:"sm","aria-label":e,value:l,onChange:a,options:n})},e),ql=e=>l=>oe?.({...te,[e]:l}),_l=/* @__PURE__ */U("div",{className:"flex flex-wrap items-center gap-2",children:[ie&&/* @__PURE__ */G("div",{style:{flex:"1 1 200px",minWidth:0},children:/* @__PURE__ */G(k,{size:"sm",type:"search",leftIcon:Y.search,placeholder:_e?Le.searchProducts:Le.search,"aria-label":_e?Le.searchProducts:Le.search,value:re??"",onChange:e=>ie(e.target.value)})}),oe&&Ql(Le.mediaType,te.type,[{value:"all",label:Le.allTypes},{value:"image",label:Le.images},{value:"video",label:Le.videos},{value:"svg",label:"SVG"},{value:"gif",label:"GIF"}],ql("type"),130),oe&&!_e&&!el&&Ql(Le.use,te.use,[{value:"any",label:Le.anyUse},{value:"email",label:Le.emailOnly},{value:"website",label:Le.websiteOnly},{value:"unused",label:Le.notUsed}],ql("use"),130),oe&&Ke&&Ql(Le.sort,te.sort,[{value:"newest",label:Le.newest},{value:"name",label:Le.byName},{value:"size",label:Le.bySize}],ql("sort"),110),de?.map(e=>Ql(e.label,e.value,e.options,e.onChange,120)),ce&&/* @__PURE__ */G(x,{size:"sm",label:Le.view,value:se,onChange:ce,options:[{value:"grid",label:Le.grid,icon:Y.grid},{value:"list",label:Le.list,icon:Y.list}]})]}),en=e=>{const l=[];return null!=e.trashedDaysAgo&&l.push({key:"t",label:Le.daysAgo(e.trashedDaysAgo),count:e.trashedDaysAgo,icon:H.clock,tone:"neutral"}),e.usedCount&&l.push({key:"u",label:Le.used(e.usedCount),count:e.usedCount,icon:H.link,tone:"active"}),e.email&&l.push({key:"e",label:Le.email,icon:H.email,tone:"queued"}),e.private&&l.push({key:"p",label:Le.private,icon:H.lock,tone:"neutral"}),l},ln=e=>en(e).map(e=>/* @__PURE__ */G(j,{tone:e.tone,size:"xs",children:e.label},e.key)),nn=Ke&&ll&&!!xe&&!pe.move,an=ae.map(e=>({id:e.id,url:e.thumbUrl??e.url,name:e.name,kind:e.kind,caption:e.name,badges:en(e),dragData:nn?JSON.stringify(ol.isSelected(e.id)?dl:[e.id]):void 0})),rn=Be?Math.max(72,Math.floor((Ue-24-16-1)/3)):112,tn=L(null),on=c({containerRef:tn,enabled:Ke&&!Be&&ae.length>0,selected:ol.selected,setSelection:e=>ol.setSelection(e),clearSelection:ol.clear}),dn=e=>{if(Ae){const l=tl.get(e);return void(!l||l.private||l.pickDisabledReason||Te?.(l))}const l=il.indexOf(e);l>=0&&xl(l)},sn=ae.length?null:re?/* @__PURE__ */G(r,{variant:"dashed",title:Le.noMatches}):_e?/* @__PURE__ */G(r,{variant:"dashed",title:Le.emptyProducts,description:rl(al)}):el?/* @__PURE__ */G(r,{variant:"dashed",title:Le.trashEmpty}):!Yl||Ae?/* @__PURE__ */G(r,{variant:"dashed",title:Le.emptyFolder}):null,cn="list"===se&&ae.length>0,mn=sn??(cn?/* @__PURE__ */G("ul",{role:"listbox","aria-multiselectable":Ke||void 0,"aria-label":Le.folders,className:"flex flex-col gap-1",children:ae.map(e=>/* @__PURE__ */U("li",{role:"option","aria-selected":ol.isSelected(e.id),tabIndex:0,"data-grid-item":"","data-grid-id":e.id,onClick:l=>pl(e.id,l),onDoubleClick:()=>dn(e.id),onContextMenu:l=>Dl(e.id,l),onKeyDown:l=>{"Enter"!==l.key&&" "!==l.key||(l.preventDefault(),pl(e.id,l))},className:"flex h-12 cursor-pointer items-center gap-3 rounded-md px-2 text-sm rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] "+(ol.isSelected(e.id)?"bg-blue-50 text-blue-700":"text-gray-700 hover:bg-gray-100"),children:[
9
+ /* @__PURE__ */G("img",{src:e.thumbUrl??e.url,alt:"",className:"h-10 w-10 shrink-0 rounded bg-gray-100 object-contain"}),
10
+ /* @__PURE__ */G("span",{className:"min-w-0 flex-1 truncate",children:e.name}),
11
+ /* @__PURE__ */G("span",{className:"flex shrink-0 items-center gap-1",children:ln(e)}),e.sizeLabel&&/* @__PURE__ */G("span",{className:"w-16 shrink-0 text-right text-xs text-gray-500",children:e.sizeLabel})]},e.id))}):/* @__PURE__ */G(v,{items:an,readOnly:!Yl||Ae,onFiles:Yl&&!Ae?e=>ke(e,nl):void 0,accept:fe,maxSizeBytes:ge,busy:ve,progress:ye,fit:"contain",thumbSize:rn,dragType:nn?W:void 0,selected:ol.selected,onItemClick:pl,onItemDoubleClick:dn,onItemContextMenu:Ke?Dl:void 0,menuOnMedia:Ke})),un=h({count:dl.length,kind:bl(dl),targets:kl({kind:"files",ids:dl}),onPick:e=>xe?.({kind:"files",ids:dl},e.key===m?null:e.key)}),hn=F({variant:"secondary",size:"sm"}),pn=/* @__PURE__ */G(f,{align:"start",triggerClassName:hn,trigger:/* @__PURE__ */U(B,{children:[Y.folder,Le.moveTo]}),items:un,disabled:!!pe.move}),fn=Ke&&dl.length>1&&!_e?/* @__PURE__ */U("div",{"data-media-bulk":"",className:"flex flex-wrap items-center gap-2 rounded-lg border border-gray-200 px-3 py-2",children:[
12
+ /* @__PURE__ */G(C,{checked:dl.length===ae.length,indeterminate:dl.length<ae.length,onChange:e=>e?ol.selectAll():ol.clear(),label:Le.selected(dl.length)}),/* @__PURE__ */U(B,el?{children:[Ie&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:Y.undo,onClick:()=>Ie(dl),...$l(pe.restore),children:Le.restore}),De&&/* @__PURE__ */G(z,{variant:"secondary-danger",size:"sm",onClick:()=>De(dl),...$l(pe.deleteForever),children:Le.deleteForever})]}:{children:[xe&&pn,we&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:Y.edit,disabled:!0,children:Le.rename}),Ce&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:Y.trash,onClick:()=>Ce({kind:"files",ids:dl}),...$l(pe.trash),children:Le.moveFilesToTrash(dl.length)})]}),
13
+ /* @__PURE__ */G(z,{variant:"ghost",size:"sm",onClick:ol.clear,children:Le.clearSelection})]}):null,gn=e=>{const l=[],n=(e,n,a)=>{null!=a&&""!==a&&l.push({key:e,label:n,value:a})},a="file"===fl?.kind&&fl.id===e.id;n("name",Le.name,a?/* @__PURE__ */G(X,{value:e.name,label:Le.fileName,onDone:vl}):e.name),n("type",Le.type,e.typeLabel),n("size",Le.size,e.sizeLabel),n("resolution",Le.resolution,e.resolution),_e?(n("design",Le.design,e.design),n("finish",Le.finish,e.finish),n("angle",Le.angleLug,e.angleLug),n("owner",Le.owner,e.owner)):(n("added",Le.addedBy,e.addedBy),n("folder",Le.folder,e.folderPath)),n("used",Le.usedIn,null!=e.usedCount?Le.places(e.usedCount):void 0);const r=u({kind:"files",ids:[e.id]},Cl).find(e=>"submenu"===e.type);/* @__PURE__ */
14
+ return U("div",{"data-media-details":"",className:"flex flex-col gap-3",children:[
15
+ /* @__PURE__ */G("img",{src:e.url,alt:e.name,className:"aspect-square w-full rounded-lg bg-gray-100 object-contain"}),_e&&/* @__PURE__ */G(D,{tone:"neutral",title:Le.readOnlyBadge,children:rl(al)}),
16
+ /* @__PURE__ */G(t,{size:"sm",columns:1,items:l}),!el&&/* @__PURE__ */U("div",{className:"flex gap-2",children:[
17
+ /* @__PURE__ */G("div",{style:{flex:"1 1 0",minWidth:0},children:/* @__PURE__ */G(k,{size:"sm",readOnly:!0,value:e.url,"aria-label":Le.fileUrl,onFocus:e=>e.currentTarget.select()})}),
18
+ /* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:Y.copy,onClick:()=>Cl.copyUrl(e.id),children:Le.copyUrl})]}),ll&&Ke&&/* @__PURE__ */U("div",{className:"flex flex-wrap gap-2",children:[je&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:Y.swap,onClick:()=>je(e.id),...$l(pe.replace),children:Le.replace}),ze&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:Y.crop,onClick:()=>ze(e.id),children:Le.cropEdit}),xe&&"submenu"===r?.type&&/* @__PURE__ */G(f,{align:"start",triggerClassName:hn,trigger:/* @__PURE__ */U(B,{children:[Y.folder,Le.moveTo]}),items:r.items,disabled:!!pe.move}),we&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:Y.edit,onClick:()=>gl({kind:"file",id:e.id}),...$l(pe.rename),children:Le.rename}),Ce&&/* @__PURE__ */G(S,{"aria-label":Le.moveToTrash,size:"sm",onClick:()=>Ce({kind:"files",ids:[e.id]}),disabledReason:pe.trash,"aria-disabled":!!pe.trash||void 0,children:Y.trash})]}),el&&Ke&&/* @__PURE__ */U("div",{className:"flex flex-wrap gap-2",children:[Ie&&/* @__PURE__ */G(z,{variant:"primary",size:"sm",leftIcon:Y.undo,onClick:()=>Ie([e.id]),...$l(pe.restore),children:Le.restore}),De&&/* @__PURE__ */G(z,{variant:"danger",size:"sm",onClick:()=>De([e.id]),...$l(pe.deleteForever),children:Le.deleteForever})]}),_e&&Fe&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:Y.external,onClick:()=>Fe({kind:"render",id:e.id}),children:Le.openInDesign}),he&&/* @__PURE__ */G(y,{items:he})]})},vn=sl?sl.private?Le.privateNoPick:sl.pickDisabledReason:void 0,yn=Ae?/* @__PURE__ */U("div",{"data-media-picker-footer":"",className:"flex flex-wrap items-center justify-between gap-2 border-t border-gray-200 px-3 py-2",children:[
19
+ /* @__PURE__ */G("span",{className:"min-w-0 truncate text-sm text-gray-500",children:sl?Le.oneChosen(sl.name):Le.noneChosen}),
20
+ /* @__PURE__ */U("div",{className:"flex gap-2",children:[Oe&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",onClick:Oe,children:Le.cancel}),
21
+ /* @__PURE__ */G(z,{variant:"primary",size:"sm",disabled:!sl,...$l(vn),onClick:()=>{sl&&!vn&&Te?.(sl)},children:Le.chooseImage})]})]}):null,kn=Ke&&!!sl,bn=/* @__PURE__ */U("div",{className:"flex min-w-0 flex-col gap-3",children:[Ee&&/* @__PURE__ */G(D,{tone:"neutral",children:Ee}),
22
+ /* @__PURE__ */U("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[
23
+ /* @__PURE__ */G(d,{items:Jl}),Zl]}),_l,fn,
24
+ /* @__PURE__ */U("div",{ref:tn,className:"relative",onPointerDown:on.onPointerDown,onKeyDown:e=>{Ke&&(e.ctrlKey||e.metaKey)&&"a"===e.key.toLowerCase()?(e.preventDefault(),ol.selectAll()):"Escape"===e.key&&ol.size&&ol.clear()},children:[mn,
25
+ /* @__PURE__ */G(a,{rect:on.rect})]}),Yl&&/* @__PURE__ */G("input",{...Hl.inputProps}),
26
+ /* @__PURE__ */G(w,{rejections:Hl.rejections})]});/* @__PURE__ */
27
+ return U("div",{ref:Re,"data-media-library":"","data-layout":Be?"phone":"wide",className:`flex h-full min-h-0 min-w-0 flex-col ${Pe}`.trim(),children:[/* @__PURE__ */U("div",Be?{className:"flex flex-col gap-3 p-3",children:[Wl,bn]}:{className:"flex min-h-0 min-w-0 flex-1",children:[
28
+ /* @__PURE__ */G("div",{className:"shrink-0 overflow-y-auto border-r border-gray-200 p-3",style:{width:280,"--rosh-tree-ground":"var(--surface)"},children:Wl}),
29
+ /* @__PURE__ */G("div",{className:"min-w-0 flex-1 overflow-y-auto p-3",children:bn}),kn&&/* @__PURE__ */G("div",{className:"shrink-0 overflow-y-auto border-l border-gray-200 p-3",style:{width:300},children:gn(sl)})]}),yn,Be&&/* @__PURE__ */G(o,{open:kn,onClose:ol.clear,side:"bottom",title:sl?.name,children:sl&&gn(sl)}),Il.state&&/* @__PURE__ */G(I,{...Il.props,items:Nl(Il.state.data)}),null!=wl&&ae.length>0&&/* @__PURE__ */G(i,{images:ae.map(e=>({url:e.url,caption:e.name})),startIndex:Math.min(wl,ae.length-1),onClose:()=>xl(null)})]})}export{W as MEDIA_FILES_DRAG_TYPE,J as MEDIA_FOLDER_DRAG_TYPE,$ as MediaLibrary};
@@ -0,0 +1 @@
1
+ var a=["academic-cap","accent","account","account-circle","add","add-circle","add-person","adjust","align-center","align-justify","align-left","align-right","align-separate","alignment","anchor","animation","apps","archive-box","arrow","arrow-down","arrow-left","arrow-left-end-on-rectangle","arrow-long-right","arrow-right","arrow-trending-down","arrow-trending-up","arrow-up","arrow-up-right","at-symbol","attach","background","bag","bank","bars-3-bottom-left","battery","beaker","bell","bell-alert","bell-plus","billing","black-and-white","block-badge","block-banner","block-box","block-button","block-column","block-coupon","block-divider","block-footer","block-heading","block-image","block-included-list","block-layered-images","block-product","block-product-title","block-section","block-social","block-spacer","block-text","block-video","blog-post","bold","bolt","book-open","bookmark","bookmark-square","border-all","border-bottom","border-left","border-right","border-top","braces","brand-1password","brand-adyen","brand-afterpay","brand-aircall","brand-amd","brand-americanexpress","brand-anthropic","brand-apple","brand-applepay","brand-aws","brand-bigcommerce","brand-brevo","brand-calendly","brand-campaignmonitor","brand-cloudflare","brand-dell","brand-dhl","brand-dropbox","brand-ebay","brand-etsy","brand-facebook","brand-fedex","brand-github","brand-gmail","brand-googleads","brand-googleanalytics","brand-googlecalendar","brand-googledrive","brand-googlepay","brand-googlesheets","brand-hubspot","brand-instagram","brand-intel","brand-intercom","brand-klarna","brand-line","brand-linkedin","brand-mailchimp","brand-mailgun","brand-make","brand-mastercard","brand-messenger","brand-meta","brand-myob","brand-notion","brand-nvidia","brand-paypal","brand-pinterest","brand-quickbooks","brand-sage","brand-samsung","brand-shopify","brand-square","brand-squarespace","brand-stripe","brand-telegram","brand-tiktok","brand-trello","brand-ups","brand-visa","brand-vonage","brand-wechat","brand-whatsapp","brand-wise","brand-wix","brand-woocommerce","brand-x","brand-xero","brand-youtube","brand-zapier","brand-zendesk","brand-zoom","breadcrumb","briefcase","bug","bug-ant","building-library","building-office-2","button","button-arrow","button-icon","calculator","calendar","calendar-check","camera","caption","car","card-payment","caret","cart","case","case-capitalized","case-lower","case-normal","case-upper","category","chart","chart-bar","chart-bar-square","chart-line","chat","chat-bubble-left-right","chat-bubble-oval-left-ellipsis","check","check-circle","checkbox","chevron","chevron-double","chevron-double-left","chevron-double-right","chevron-down","chevron-left","chevron-right","chevron-up","chevron-up-down","circle-stack","clear-marks","clipboard","clipboard-check","clipboard-document-list","clipboard-list","clock","close","close-circle","cloud","cloud-alert","cloud-arrow-up","cloud-check","cloud-download","cloud-pause","cloud-slash","code","code-bracket","collapse","collapse-all","column-gap","column-widths","columns","company","compose","contrast","cookie","copied","copy","copy-style","copy-to-page","corner","crop","crop-bottom","crop-left","crop-left-right","crop-right","crop-top","crop-y","cube-transparent","cursor","cursor-arrow-rays","cursor-click","dashboard","date","desktop","detach","diagram","direction","direction-down","direction-left","direction-right","direction-up","document","document-check","document-magnifying-glass","dollar","dot","download","drag","drop","duplicate","edit","email","emphasis","eraser","error","expand","external","eye","eye-off","face-smile","filter","finish","fire","flag","flag-au","flag-ca","flag-eu","flag-gb","flag-nz","flag-us","folder","folder-open","folder-plus","forward","full-width","gap","gem","gift","globe","grid","ground","hand","hand-thumb-up","hash","headquarters","heart","height","help","help-off","hexagon","home","hover","icon-after-text","icon-before-text","identification","image","image-off","images","inbox","info","italic","key","layers","layout","letter-spacing","lightbulb","line-between","line-dashed","line-dotted","line-solid","line-spacing","line-style","link","link-slash","list","list-format","list-none","location","lock","logo","logout","map","media","media-layout-big-two","media-layout-inset","media-layout-side-by-side","media-layout-stacked","megaphone","menu","meta","microphone","money","moon","more","more-vertical","move-down","move-up","newspaper","no-symbol","note","nudge","nudge-x","nudge-y","numbered-list","opacity","own-text","package","package-open","padding-all","padding-bottom","padding-left","padding-left-right","padding-right","padding-top","padding-x","padding-y","page","paint-brush","palette","panel-left","panel-right","paragraph-spacing","parcel","paste","paste-style","pause","pen","people","percent","phone","phone-hidden","placement","play","plus-minus","power","presentation-chart-bar","print","product","product-field","product-size","progress","quiet","quote","radio-dot","radius","receipt","receipt-percent","receipt-refund","rectangle-group","redo","refresh","remove","remove-circle","rename","reply","reply-all","revert","robot","rotate","scale","scroll-point","scroll-text","search","select-all","send","server","settings","shadow","shape-ellipse","shape-rect","share","shared","shield-check","shield-exclamation","sides-each","signal","signal-slash","sitemap","slide-arrows-bare","slide-arrows-round","slide-arrows-square","slide-picker-bar","slide-picker-cards","slide-picker-dots","slide-picker-numbers","slide-picker-squares","sort","sparkles","speaker","speaker-wave","spec-table","spinner","split","square","star","state","status-circle","status-dot","sticky","stop-circle","store","strike","styles","subscript","success-burst","sun","superscript","swap","swatch","table","tablet","tabs","tag","target","team","telephone","template","text-color","text-lines","text-size","text-small","text-value","texture","theme","ticket","title","trash","trigger","truck","tv","type","tyre","underline","undo","upload","v-align","verified","video-off","view-columns","wallet","warning","weight","wheel","widgets","width","window","windows","words-from","wrap","wrench","wrench-screwdriver","zoom-in"],e=new Set(a),r=a=>"string"==typeof a&&e.has(a),n=["brand-1password","brand-adyen","brand-afterpay","brand-aircall","brand-amd","brand-americanexpress","brand-anthropic","brand-apple","brand-applepay","brand-aws","brand-bigcommerce","brand-brevo","brand-calendly","brand-campaignmonitor","brand-cloudflare","brand-dell","brand-dhl","brand-dropbox","brand-ebay","brand-etsy","brand-facebook","brand-fedex","brand-github","brand-gmail","brand-googleads","brand-googleanalytics","brand-googlecalendar","brand-googledrive","brand-googlepay","brand-googlesheets","brand-hubspot","brand-instagram","brand-intel","brand-intercom","brand-klarna","brand-line","brand-linkedin","brand-mailchimp","brand-mailgun","brand-make","brand-mastercard","brand-messenger","brand-meta","brand-myob","brand-notion","brand-nvidia","brand-paypal","brand-pinterest","brand-quickbooks","brand-sage","brand-samsung","brand-shopify","brand-square","brand-squarespace","brand-stripe","brand-telegram","brand-tiktok","brand-trello","brand-ups","brand-visa","brand-vonage","brand-wechat","brand-whatsapp","brand-wise","brand-wix","brand-woocommerce","brand-x","brand-xero","brand-youtube","brand-zapier","brand-zendesk","brand-zoom"],o=new Set(n),d=a=>"string"==typeof a&&o.has(a);export{n as BRAND_ICON_NAMES,a as ICON_NAMES,d as isBrandIconName,r as isIconName};
@@ -0,0 +1,2 @@
1
+ import{brandBox as t}from"./chunk-64ACCUNN.js";import{jsx as e}from"react/jsx-runtime";function i({size:i,width:r,height:h,style:o,...l}){const n=t(i??r??h??18,1.326);/* @__PURE__ */
2
+ return e("svg",{width:n.width,height:n.height,viewBox:"-0.2 2.797 24.4 18.406",fill:"currentColor","aria-hidden":"true",...l,style:{...n.style,...o},children:/* @__PURE__ */e("path",{d:"M24 5.457v13.909c0 .904-.732 1.636-1.636 1.636h-3.819V11.73L12 16.64l-6.545-4.91v9.273H1.636A1.636 1.636 0 0 1 0 19.366V5.457c0-2.023 2.309-3.178 3.927-1.964L5.455 4.64 12 9.548l6.545-4.91 1.528-1.145C21.69 2.28 24 3.434 24 5.457z"})})}export{i as BrandGmailIcon};
@@ -0,0 +1,2 @@
1
+ import{jsx as r}from"react/jsx-runtime";function e({size:e=18,...t}){/* @__PURE__ */
2
+ return r("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t,children:/* @__PURE__ */r("path",{d:"M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3"})})}export{e as BrandFacebookOutlineIcon};
@@ -0,0 +1,7 @@
1
+ import{jsxs as t,jsx as r}from"react/jsx-runtime";function e({size:e=18,...i}){/* @__PURE__ */
2
+ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i,children:[
3
+ /* @__PURE__ */r("path",{d:"M8 11v5"}),
4
+ /* @__PURE__ */r("path",{d:"M8 8v.01"}),
5
+ /* @__PURE__ */r("path",{d:"M12 16v-5"}),
6
+ /* @__PURE__ */r("path",{d:"M16 16v-3a2 2 0 1 0 -4 0"}),
7
+ /* @__PURE__ */r("path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10"})]})}export{e as BrandLinkedinOutlineIcon};
@@ -0,0 +1,2 @@
1
+ import{brandBox as t}from"./chunk-64ACCUNN.js";import{jsx as h}from"react/jsx-runtime";function e({size:e,width:i,height:r,style:c,...o}){const n=t(e??i??r??18,1);/* @__PURE__ */
2
+ return h("svg",{width:n.width,height:n.height,viewBox:"-0.2 -0.2 24.4 24.4",fill:"currentColor","aria-hidden":"true",...o,style:{...n.style,...c},children:/* @__PURE__ */h("path",{d:"M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm.642 4.1335c.9554 0 1.7296.776 1.7296 1.7332v9.0667h1.6c1.614 0 2.9275-1.3156 2.9275-2.933 0-1.6173-1.3136-2.9333-2.9276-2.9333h-.6654V7.3334h.6654c2.5722 0 4.6577 2.0897 4.6577 4.667 0 2.5774-2.0855 4.6666-4.6577 4.6666H12.642zM7.9837 7.333h3.3291v12.533c-.9555 0-1.73-.7759-1.73-1.7332V9.0662H7.9837c-1.6146 0-2.9277 1.316-2.9277 2.9334 0 1.6175 1.3131 2.9333 2.9277 2.9333h.6654v1.7332h-.6654c-2.5725 0-4.6577-2.0892-4.6577-4.6665 0-2.5771 2.0852-4.6666 4.6577-4.6666Z"})})}export{e as BrandQuickbooksIcon};
@@ -0,0 +1,2 @@
1
+ import{brandBox as h}from"./chunk-64ACCUNN.js";import{jsx as t}from"react/jsx-runtime";function e({size:e,width:i,height:r,style:v,...o}){const m=h(e??i??r??18,.732);/* @__PURE__ */
2
+ return t("svg",{width:m.width,height:m.height,viewBox:"3.073 -0.2 17.855 24.4",fill:"currentColor","aria-hidden":"true",...o,style:{...m.style,...v},children:/* @__PURE__ */t("path",{d:"M11.318 12.545H7.91v-1.909h3.41v1.91zM14.728 0v6h6l-6-6zm1.363 10.636h-3.41v1.91h3.41v-1.91zm0 3.273h-3.41v1.91h3.41v-1.91zM20.727 6.5v15.864c0 .904-.732 1.636-1.636 1.636H4.909a1.636 1.636 0 0 1-1.636-1.636V1.636C3.273.732 4.005 0 4.909 0h9.318v6.5h6.5zm-3.273 2.773H6.545v7.909h10.91v-7.91zm-6.136 4.636H7.91v1.91h3.41v-1.91z"})})}export{e as BrandGooglesheetsIcon};
@@ -0,0 +1,2 @@
1
+ import{brandBox as t}from"./chunk-64ACCUNN.js";import{jsx as e}from"react/jsx-runtime";function i({size:i,width:r,height:h,style:o,...n}){const s=t(i??r??h??18,1.312);/* @__PURE__ */
2
+ return e("svg",{width:s.width,height:s.height,viewBox:"-0.2 2.704 24.4 18.592",fill:"currentColor","aria-hidden":"true",...n,style:{...s.style,...o},children:/* @__PURE__ */e("path",{d:"M12.914 2.904V16.29L24 2.905H12.914zM0 2.906C0 5.966 2.483 8.45 5.543 8.45s5.542-2.484 5.543-5.544H0zm11.086 4.807L0 21.096h11.086V7.713zm7.37 7.84c-3.063 0-5.542 2.48-5.542 5.543H24c0-3.06-2.48-5.543-5.543-5.543z"})})}export{i as BrandZendeskIcon};
@@ -0,0 +1,2 @@
1
+ import{brandBox as h}from"./chunk-64ACCUNN.js";import{jsx as c}from"react/jsx-runtime";function a({size:a,width:l,height:v,style:m,...t}){const e=h(a??l??v??18,4.656);/* @__PURE__ */
2
+ return c("svg",{width:e.width,height:e.height,viewBox:"-0.2 9.38 24.4 5.24",fill:"currentColor","aria-hidden":"true",...t,style:{...e.style,...m},children:/* @__PURE__ */c("path",{d:"M.754 9.58a.754.754 0 00-.754.758v2.525c0 .42.339.758.758.758h3.135l1.431.799-.326-.799h2.373a.757.757 0 00.758-.758v-2.525a.757.757 0 00-.758-.758H.754zm2.709.445h.03c.065.001.124.023.179.067a.26.26 0 01.103.19.29.29 0 01-.033.16c-.13.239-.236.64-.322 1.199-.083.541-.114.965-.094 1.267a.392.392 0 01-.039.219.213.213 0 01-.176.12c-.086.006-.177-.034-.263-.124-.31-.316-.555-.788-.735-1.416-.216.425-.375.744-.478.957-.196.376-.363.568-.502.578-.09.007-.166-.069-.233-.228-.17-.436-.352-1.277-.548-2.524a.297.297 0 01.054-.222c.047-.064.116-.095.21-.102.169-.013.265.065.288.238.103.695.217 1.284.336 1.766l.727-1.387c.066-.126.15-.192.25-.199.146-.01.237.083.273.28.083.441.188.817.315 1.136.086-.844.233-1.453.44-1.828a.255.255 0 01.218-.147zm1.293.36c.056 0 .116.006.18.02.232.05.411.177.53.386.107.18.161.395.161.654 0 .343-.087.654-.26.94-.2.332-.459.5-.781.5a.88.88 0 01-.18-.022.763.763 0 01-.531-.384 1.287 1.287 0 01-.158-.659c0-.342.085-.655.258-.937.202-.333.462-.498.78-.498zm2.084 0c.056 0 .116.006.18.02.236.05.411.177.53.386.107.18.16.395.16.654 0 .343-.086.654-.259.94-.2.332-.459.5-.781.5a.88.88 0 01-.18-.022.763.763 0 01-.531-.384 1.287 1.287 0 01-.16-.659c0-.342.087-.655.26-.937.202-.333.462-.498.78-.498zm4.437.047c-.305 0-.546.102-.718.304-.173.203-.256.49-.256.856 0 .395.086.697.256.906.17.21.418.316.744.316.315 0 .559-.107.728-.316.17-.21.256-.504.256-.883s-.087-.673-.26-.879c-.176-.202-.424-.304-.75-.304zm-1.466.002a1.13 1.13 0 00-.84.326c-.223.22-.332.499-.332.838 0 .362.108.658.328.88.22.223.505.336.861.336.103 0 .22-.016.346-.052v-.54c-.117.034-.216.051-.303.051a.545.545 0 01-.422-.177c-.106-.12-.16-.278-.16-.48 0-.19.053-.348.156-.468a.498.498 0 01.397-.181c.103 0 .212.015.332.049v-.537a1.394 1.394 0 00-.363-.045zm12.414 0a1.135 1.135 0 00-.84.326c-.223.22-.332.499-.332.838 0 .362.108.658.328.88.22.223.506.336.861.336.103 0 .22-.016.346-.052v-.54c-.116.034-.216.051-.303.051a.545.545 0 01-.422-.177c-.106-.12-.16-.278-.16-.48 0-.19.053-.348.156-.468a.498.498 0 01.397-.181c.103 0 .212.015.332.049v-.537a1.394 1.394 0 00-.363-.045zm-9.598.06l-.29 2.264h.579l.156-1.559.395 1.559h.412l.379-1.555.164 1.555h.603l-.304-2.264h-.791l-.12.508c-.03.13-.06.264-.087.4l-.067.352a29.97 29.97 0 00-.258-1.26h-.771zm2.768 0l-.29 2.264h.579l.156-1.559.396 1.559h.412l.375-1.555.165 1.555h.603l-.305-2.264h-.789l-.119.508c-.03.13-.06.264-.086.4l-.066.352c-.063-.352-.15-.771-.26-1.26h-.771zm3.988 0v2.264h.611v-1.031h.012l.494 1.03h.645l-.489-1.019a.61.61 0 00.37-.552.598.598 0 00-.25-.506c-.167-.123-.394-.186-.68-.186h-.713zm3.377 0v2.264H24v-.483h-.63v-.414h.54v-.468h-.54v-.416h.626v-.483H22.76zm-4.793.004v2.264h1.24v-.483h-.627v-.416h.541v-.468h-.54v-.415h.622v-.482h-1.236zm2.025.432c.146.003.25.025.313.072.063.046.091.12.091.227 0 .156-.135.236-.404.24v-.54zm-15.22.011c-.104 0-.205.069-.301.211a1.078 1.078 0 00-.2.639c0 .096.02.2.06.303.049.13.117.198.196.215.083.016.173-.02.27-.106.123-.11.205-.273.252-.492.016-.077.023-.16.023-.246 0-.097-.02-.2-.06-.303-.05-.13-.116-.198-.196-.215a.246.246 0 00-.045-.006zm2.083 0c-.103 0-.204.069-.3.211a1.078 1.078 0 00-.2.639c0 .096.02.2.06.303.049.13.117.198.196.215.083.016.173-.02.27-.106.123-.11.205-.273.252-.492.013-.077.023-.16.023-.246 0-.097-.02-.2-.06-.303-.05-.13-.116-.198-.196-.215a.246.246 0 00-.045-.006zm4.428.006c.233 0 .354.218.354.66-.004.273-.038.46-.098.553a.293.293 0 01-.262.139.266.266 0 01-.242-.139c-.056-.093-.084-.28-.084-.562 0-.436.11-.65.332-.65Z"})})}export{a as BrandWoocommerceIcon};
@@ -0,0 +1,2 @@
1
+ import{brandBox as c}from"./chunk-64ACCUNN.js";import{jsx as t}from"react/jsx-runtime";function l({size:l,width:e,height:i,style:h,...r}){const o=c(l??e??i??18,1.252);/* @__PURE__ */
2
+ return t("svg",{width:o.width,height:o.height,viewBox:"-0.2 2.254 24.4 19.491",fill:"currentColor","aria-hidden":"true",...r,style:{...o.style,...h},children:/* @__PURE__ */t("path",{d:"M22.655 8.719c-1.802-1.801-4.726-1.801-6.564 0l-7.351 7.35c-.45.45-.45 1.2 0 1.65.45.449 1.2.449 1.65 0l7.351-7.351c.899-.899 2.362-.899 3.264 0 .9.9.9 2.364 0 3.264l-7.239 7.239c.9.899 2.362.899 3.263 0l5.589-5.589c1.836-1.838 1.836-4.763.037-6.563zm-2.475 2.437c-.451-.45-1.201-.45-1.65 0l-7.354 7.389c-.9.899-2.361.899-3.262 0-.45-.45-1.2-.45-1.65 0s-.45 1.2 0 1.649c1.801 1.801 4.726 1.801 6.564 0l7.351-7.35c.449-.487.449-1.239.001-1.688zm-2.439-7.35c-1.801-1.801-4.726-1.801-6.564 0l-7.351 7.351c-.45.449-.45 1.199 0 1.649s1.2.45 1.65 0l7.395-7.351c.9-.899 2.371-.899 3.27 0 .451.45 1.201.45 1.65 0 .421-.487.421-1.199-.029-1.649h-.021zm-2.475 2.437c-.45-.45-1.2-.45-1.65 0l-7.351 7.389c-.899.9-2.363.9-3.265 0-.9-.899-.9-2.363 0-3.264l7.239-7.239c-.9-.9-2.362-.9-3.263 0L1.35 8.719c-1.8 1.8-1.8 4.725 0 6.563 1.801 1.801 4.725 1.801 6.564 0l7.35-7.351c.451-.488.451-1.238 0-1.688h.002z"})})}export{l as BrandSquarespaceIcon};
@@ -0,0 +1,2 @@
1
+ import{brandBox as t}from"./chunk-64ACCUNN.js";import{jsx as h}from"react/jsx-runtime";function e({size:e,width:i,height:r,style:c,...o}){const n=t(e??i??r??18,.851);/* @__PURE__ */
2
+ return h("svg",{width:n.width,height:n.height,viewBox:"1.62 -0.2 20.758 24.4",fill:"currentColor","aria-hidden":"true",...o,style:{...n.style,...c},children:/* @__PURE__ */h("path",{d:"M15.607 4.653H8.941L6.645 19.251H1.82L4.862 0h7.995c3.754 0 6.375 2.294 6.473 5.513-.648-.478-2.105-.86-3.722-.86m6.57 5.546c0 3.41-3.01 6.853-6.958 6.853h-2.493L11.595 24H6.74l1.845-11.538h3.592c4.208 0 7.346-3.634 7.153-6.949a5.24 5.24 0 0 1 2.848 4.686M9.653 5.546h6.408c.907 0 1.942.222 2.363.541-.195 2.741-2.655 5.483-6.441 5.483H8.714Z"})})}export{e as BrandPaypalIcon};
@@ -1,2 +1,2 @@
1
- import{inputClasses as e}from"./chunk-JFSYWEHD.js";import{forwardRef as r,useCallback as t}from"react";import{jsx as i}from"react/jsx-runtime";var a=r(function({invalid:r,autoGrow:a,className:n="",onInput:o,rows:s=3,size:l,readOnly:m,...c},u){const d=t(e=>{if(a){const r=e.currentTarget;r.style.height="auto",r.style.height=`${r.scrollHeight}px`}o?.(e)},[a,o]);/* @__PURE__ */
1
+ import{inputClasses as e}from"./chunk-PF3ANJFI.js";import{forwardRef as r,useCallback as t}from"react";import{jsx as i}from"react/jsx-runtime";var a=r(function({invalid:r,autoGrow:a,className:n="",onInput:o,rows:s=3,size:l,readOnly:m,...c},u){const d=t(e=>{if(a){const r=e.currentTarget;r.style.height="auto",r.style.height=`${r.scrollHeight}px`}o?.(e)},[a,o]);/* @__PURE__ */
2
2
  return i("textarea",{ref:u,"aria-invalid":r||void 0,rows:s,onInput:d,readOnly:m,className:e({invalid:r,size:l,readOnly:m,multiline:!0,className:`${a?"resize-none overflow-hidden":""} ${n}`.trim()}),...c})});export{a as Textarea_default};
@@ -1,8 +1,8 @@
1
- import{optionMatches as e,OptionSublabel as t}from"./chunk-UQBPKZUR.js";import{inputClasses as n}from"./chunk-JFSYWEHD.js";import{GROUP_COLORS as r}from"./chunk-D323R2FT.js";import{Tooltip as o}from"./chunk-22S6LG6D.js";import{onOverlayOpen as l}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as i}from"./chunk-62LW225J.js";import{useDropdownPosition as a,POPUP_MAX_WIDTH as s,MENU_MAX_HEIGHT as c}from"./chunk-GLUJS42B.js";import{glassStyle as u}from"./chunk-DTJRIWFR.js";import{useShellStrings as d}from"./chunk-E6UCGCOC.js";import{useState as m,useRef as h,useMemo as p,useEffect as f}from"react";import{createPortal as g}from"react-dom";import{jsxs as v,jsx as x,Fragment as b}from"react/jsx-runtime";var w={accent:{chip:"inline-flex max-w-full items-center gap-1 rounded bg-blue-50 px-2 py-0.5 text-xs font-medium text-blue-700",remove:"text-blue-400 hover:text-red-500 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-deep)] rounded leading-none"},danger:{chip:`inline-flex max-w-full items-center gap-1 rounded ${r.danger} px-2 py-0.5 text-xs font-medium`,remove:"text-current opacity-70 hover:opacity-100 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-deep)] rounded leading-none"}};function y({value:r,onChange:y,options:k=[],placeholder:N,allowFreeText:j=!1,invalid:C,disabled:D,id:L,className:E="",tone:W,tooltip:F,split:S}){const[$,B]=m(!1),[G,J]=m(""),M=d(),R=h(null),T=h(null),U=h(null),H=a(R,$),I=e=>k.find(t=>t.value===e)?.label??e,K=p(()=>{const t=new Set(r),n=[],o=G.trim().toLowerCase();for(const r of k)t.has(r.value)||(t.add(r.value),o&&!e(r,o)||n.push(r));return n},[k,r,G]),P=e=>{const t=[...r];for(const n of e){const e=n.trim();if(!e)continue;const r=e.toLowerCase(),o=k.find(t=>t.value===e||t.label.toLowerCase()===r)?.value,l=o??(j?e:null);l&&!t.includes(l)&&t.push(l)}t.length!==r.length&&y(t)},z=e=>{e&&!r.includes(e)?(y([...r,e]),J("")):J("")},O=e=>y(r.filter(t=>t!==e)),Q=()=>{const e=G.trim();if(S&&e)return P(e.split(S)),void J("");j&&e?z(e):J("")},Y=h(()=>{});Y.current=()=>{Q(),B(!1)},f(()=>{if(!$)return;const e=e=>{const t=e.target;R.current?.contains(t)||U.current?.contains(t)||(Q(),B(!1))};document.addEventListener("mousedown",e);const t=l(()=>Y.current());return()=>{document.removeEventListener("mousedown",e),t()}});const Z=k.length>0;/* @__PURE__ */
1
+ import{optionMatches as e,OptionSublabel as t}from"./chunk-UQBPKZUR.js";import{inputClasses as n}from"./chunk-PF3ANJFI.js";import{GROUP_COLORS as r}from"./chunk-D323R2FT.js";import{Tooltip as o}from"./chunk-22S6LG6D.js";import{onOverlayOpen as l}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as i}from"./chunk-62LW225J.js";import{useDropdownPosition as a,POPUP_MAX_WIDTH as s,MENU_MAX_HEIGHT as c}from"./chunk-GLUJS42B.js";import{glassStyle as u}from"./chunk-DTJRIWFR.js";import{useShellStrings as d}from"./chunk-E6UCGCOC.js";import{useState as m,useRef as h,useMemo as p,useEffect as f}from"react";import{createPortal as g}from"react-dom";import{jsxs as v,jsx as x,Fragment as b}from"react/jsx-runtime";var w={accent:{chip:"inline-flex max-w-full items-center gap-1 rounded bg-blue-50 px-2 py-0.5 text-xs font-medium text-blue-700",remove:"text-blue-400 hover:text-red-500 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-deep)] rounded leading-none"},danger:{chip:`inline-flex max-w-full items-center gap-1 rounded ${r.danger} px-2 py-0.5 text-xs font-medium`,remove:"text-current opacity-70 hover:opacity-100 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-deep)] rounded leading-none"}};function y({value:r,onChange:y,options:k=[],placeholder:N,allowFreeText:j=!1,invalid:C,disabled:D,id:L,className:E="",tone:F,tooltip:W,split:$}){const[B,G]=m(!1),[I,J]=m(""),M=d(),R=h(null),S=h(null),T=h(null),U=a(R,B),P=e=>k.find(t=>t.value===e)?.label??e,H=p(()=>{const t=new Set(r),n=[],o=I.trim().toLowerCase();for(const r of k)t.has(r.value)||(t.add(r.value),o&&!e(r,o)||n.push(r));return n},[k,r,I]),K=e=>{const t=[...r];for(const n of e){const e=n.trim();if(!e)continue;const r=e.toLowerCase(),o=k.find(t=>t.value===e||t.label.toLowerCase()===r)?.value,l=o??(j?e:null);l&&!t.includes(l)&&t.push(l)}t.length!==r.length&&y(t)},z=e=>{e&&!r.includes(e)?(y([...r,e]),J("")):J("")},A=e=>y(r.filter(t=>t!==e)),O=()=>{const e=I.trim();if($&&e)return K(e.split($)),void J("");j&&e?z(e):J("")},Q=h(()=>{});Q.current=()=>{O(),G(!1)},f(()=>{if(!B)return;const e=e=>{const t=e.target;R.current?.contains(t)||T.current?.contains(t)||(O(),G(!1))};document.addEventListener("mousedown",e);const t=l(()=>Q.current());return()=>{document.removeEventListener("mousedown",e),t()}});const Z=k.length>0;/* @__PURE__ */
2
2
  return v("div",{ref:R,className:"relative",children:[
3
- /* @__PURE__ */v("div",{onMouseDown:e=>{D||e.target.closest("button")||(e.preventDefault(),T.current?.focus())},className:n({invalid:C,multiline:!0,className:`flex flex-wrap items-center gap-1 cursor-text focus-within:border-blue-400 has-focus-visible:ring-2 has-focus-visible:ring-[color:var(--rosh-focus-ring)] ${D?"bg-gray-50 cursor-not-allowed":""} ${E}`}),children:[r.map(e=>{const t=W?.(e),n=w[t??"accent"],r=/* @__PURE__ */v("span",{"data-tone":t,className:n.chip,children:[
4
- /* @__PURE__ */x("span",{className:"truncate",children:I(e)}),!D&&/* @__PURE__ */x("button",{type:"button","aria-label":M.select.removeItem?.(I(e))??`${M.select.remove} ${I(e)}`,onClick:()=>O(e),className:n.remove,children:"×"})]},e),l=F?.(e);return null==l?r:/* @__PURE__ */x(o,{content:l,className:"relative inline-flex max-w-full",children:r},e)}),
5
- /* @__PURE__ */x("input",{id:L,ref:T,type:"text",autoComplete:"off",role:"combobox","aria-expanded":$&&Z,"aria-invalid":C||void 0,disabled:D,value:G,placeholder:0===r.length?N:void 0,onChange:e=>{(e=>{if(S){const t=e.split(S);if(t.length>1)return P(t.slice(0,-1)),void J(t[t.length-1])}J(e)})(e.target.value),B(!0)},onFocus:()=>{!D&&Z&&B(!0)},onKeyDown:t=>{if("Enter"===t.key||","===t.key&&j){t.preventDefault();const n=G.trim(),r=n?K.filter(t=>e(t,n.toLowerCase())):[];1===r.length?z(r[0].value):Q()}else"Backspace"===t.key&&""===G&&r.length>0?O(r[r.length-1]):"Escape"===t.key?(B(!1),J(""),T.current?.blur()):"Tab"===t.key&&(Q(),B(!1))},className:"min-w-[8ch] flex-1 border-none bg-transparent p-0 text-sm text-gray-800 placeholder:text-gray-400 rosh-focus-ring focus-visible:ring-0 disabled:cursor-not-allowed"})]}),$&&Z&&g(
6
- /* @__PURE__ */x("div",{ref:U,className:"fixed rounded-(--radius-popup) overflow-hidden",style:{zIndex:i.popup,left:H?.left,right:H?.right,top:H?.top,bottom:H?.bottom,minWidth:H?.minWidth,maxWidth:H?.maxWidth??s,width:"max-content",visibility:H?void 0:"hidden",...u()},children:/* @__PURE__ */x("div",{className:"overflow-y-auto",style:{maxHeight:H?.maxHeight??c},children:0===K.length?/* @__PURE__ */x("p",{className:"px-3 py-3 text-sm text-gray-400 text-center",children:k.length>0&&r.length>=k.length?M.select.allSelected:M.select.noMatches}):K.map(e=>/* @__PURE__ */x("button",{type:"button",onMouseDown:t=>{t.preventDefault(),z(e.value)},className:e.sublabel?"w-full text-left px-3 min-h-(--row-height-menu) py-2 text-sm hover:bg-gray-50 text-gray-700 whitespace-nowrap flex items-center justify-between gap-3":"w-full text-left px-3 min-h-(--row-height-menu) py-2 leading-5 text-sm hover:bg-gray-50 text-gray-700 whitespace-nowrap",children:e.sublabel?/* @__PURE__ */v(b,{children:[
3
+ /* @__PURE__ */v("div",{onMouseDown:e=>{D||e.target.closest("button")||(e.preventDefault(),S.current?.focus())},className:n({invalid:C,multiline:!0,className:`flex flex-wrap items-center gap-1 cursor-text focus-within:border-blue-400 has-focus-visible:ring-2 has-focus-visible:ring-[color:var(--rosh-focus-ring)] ${D?"bg-gray-50 cursor-not-allowed":""} ${E}`}),children:[r.map(e=>{const t=F?.(e),n=w[t??"accent"],r=/* @__PURE__ */v("span",{"data-tone":t,className:n.chip,children:[
4
+ /* @__PURE__ */x("span",{className:"truncate",children:P(e)}),!D&&/* @__PURE__ */x("button",{type:"button","aria-label":M.select.removeItem?.(P(e))??`${M.select.remove} ${P(e)}`,onClick:()=>A(e),className:n.remove,children:"×"})]},e),l=W?.(e);return null==l?r:/* @__PURE__ */x(o,{content:l,className:"relative inline-flex max-w-full",children:r},e)}),
5
+ /* @__PURE__ */x("input",{id:L,ref:S,type:"text",autoComplete:"off",role:"combobox","aria-expanded":B&&Z,"aria-invalid":C||void 0,disabled:D,value:I,placeholder:0===r.length?N:void 0,onChange:e=>{(e=>{if($){const t=e.split($);if(t.length>1)return K(t.slice(0,-1)),void J(t[t.length-1])}J(e)})(e.target.value),G(!0)},onFocus:()=>{!D&&Z&&G(!0)},onKeyDown:t=>{if("Enter"===t.key||","===t.key&&j){t.preventDefault();const n=I.trim(),r=n?H.filter(t=>e(t,n.toLowerCase())):[];1===r.length?z(r[0].value):O()}else"Backspace"===t.key&&""===I&&r.length>0?A(r[r.length-1]):"Escape"===t.key?(G(!1),J(""),S.current?.blur()):"Tab"===t.key&&(O(),G(!1))},className:"min-w-[8ch] flex-1 border-none bg-transparent p-0 text-sm text-gray-800 placeholder:text-[color:var(--ink-placeholder)] rosh-focus-ring focus-visible:ring-0 disabled:cursor-not-allowed"})]}),B&&Z&&g(
6
+ /* @__PURE__ */x("div",{ref:T,className:"fixed rounded-(--radius-popup) overflow-hidden",style:{zIndex:i.popup,left:U?.left,right:U?.right,top:U?.top,bottom:U?.bottom,minWidth:U?.minWidth,maxWidth:U?.maxWidth??s,width:"max-content",visibility:U?void 0:"hidden",...u()},children:/* @__PURE__ */x("div",{className:"overflow-y-auto",style:{maxHeight:U?.maxHeight??c},children:0===H.length?/* @__PURE__ */x("p",{className:"px-3 py-3 text-sm text-gray-400 text-center",children:k.length>0&&r.length>=k.length?M.select.allSelected:M.select.noMatches}):H.map(e=>/* @__PURE__ */x("button",{type:"button",onMouseDown:t=>{t.preventDefault(),z(e.value)},className:e.sublabel?"w-full text-left px-3 min-h-(--row-height-menu) py-2 text-sm hover:bg-gray-50 text-gray-700 whitespace-nowrap flex items-center justify-between gap-3":"w-full text-left px-3 min-h-(--row-height-menu) py-2 leading-5 text-sm hover:bg-gray-50 text-gray-700 whitespace-nowrap",children:e.sublabel?/* @__PURE__ */v(b,{children:[
7
7
  /* @__PURE__ */x("span",{className:"min-w-0 truncate",children:e.label}),
8
8
  /* @__PURE__ */x(t,{grows:!0,children:e.sublabel})]}):e.label},e.value))})}),document.body)]})}export{y as TagInput};
@@ -1,4 +1,4 @@
1
- import{StatCard as e,Card as a}from"./chunk-VU6VPKM3.js";import{Avatar as t}from"./chunk-MMFJBWJC.js";import{Sparkline as r}from"./chunk-CKCDGSTC.js";import{PieChart as s}from"./chunk-NID6MGGC.js";import{ColumnChart as l}from"./chunk-W5M6P4DZ.js";import{StatusBadgeProvider as i,StatusBadge as d}from"./chunk-D323R2FT.js";import{Button_default as c}from"./chunk-4IU5BSVE.js";import{TH_ONE_LINE as n}from"./chunk-6KO5VTL7.js";import{jsx as o,jsxs as m}from"react/jsx-runtime";var u={paid:"success",shipped:"active",processing:"queued",refunded:"neutral",overdue:"danger"},h=[12,18,14,22,19,27,24,31,28,35,30,38],p=["J","F","M","A","M","J","J","A","S","O","N","D"],g=[{key:"direct",label:"Direct",value:45},{key:"search",label:"Search",value:30},{key:"social",label:"Social",value:15},{key:"email",label:"Email",value:10}],x=[{id:"#3201",customer:"Alice Nguyen",total:"$1,204",status:"paid"},{id:"#3202",customer:"Marco Reyes",total:"$642",status:"shipped"},{id:"#3203",customer:"Priya Patel",total:"$2,980",status:"processing"},{id:"#3204",customer:"Tom Becker",total:"$318",status:"overdue"},{id:"#3205",customer:"Sara Lind",total:"$540",status:"refunded"}];function v(){/* @__PURE__ */
1
+ import{Avatar as e}from"./chunk-MMFJBWJC.js";import{StatCard as a,Card as t}from"./chunk-VU6VPKM3.js";import{Sparkline as r}from"./chunk-CKCDGSTC.js";import{PieChart as s}from"./chunk-NID6MGGC.js";import{ColumnChart as l}from"./chunk-W5M6P4DZ.js";import{StatusBadgeProvider as i,StatusBadge as d}from"./chunk-D323R2FT.js";import{Button_default as c}from"./chunk-4IU5BSVE.js";import{TH_ONE_LINE as n}from"./chunk-6KO5VTL7.js";import{jsx as o,jsxs as m}from"react/jsx-runtime";var u={paid:"success",shipped:"active",processing:"queued",refunded:"neutral",overdue:"danger"},h=[12,18,14,22,19,27,24,31,28,35,30,38],p=["J","F","M","A","M","J","J","A","S","O","N","D"],g=[{key:"direct",label:"Direct",value:45},{key:"search",label:"Search",value:30},{key:"social",label:"Social",value:15},{key:"email",label:"Email",value:10}],x=[{id:"#3201",customer:"Alice Nguyen",total:"$1,204",status:"paid"},{id:"#3202",customer:"Marco Reyes",total:"$642",status:"shipped"},{id:"#3203",customer:"Priya Patel",total:"$2,980",status:"processing"},{id:"#3204",customer:"Tom Becker",total:"$318",status:"overdue"},{id:"#3205",customer:"Sara Lind",total:"$540",status:"refunded"}];function v(){/* @__PURE__ */
2
2
  return o(i,{groups:u,children:/* @__PURE__ */o("div",{className:"h-full overflow-auto bg-gray-50 p-6",children:/* @__PURE__ */m("div",{className:"mx-auto max-w-6xl space-y-6",children:[
3
3
  /* @__PURE__ */m("div",{className:"flex items-center justify-between gap-4",children:[
4
4
  /* @__PURE__ */m("div",{children:[
@@ -8,24 +8,24 @@ return o(i,{groups:u,children:/* @__PURE__ */o("div",{className:"h-full overflow
8
8
  /* @__PURE__ */o(c,{variant:"secondary",size:"sm",children:"Export"}),
9
9
  /* @__PURE__ */o(c,{size:"sm",children:"New report"})]})]}),
10
10
  /* @__PURE__ */m("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",children:[
11
- /* @__PURE__ */o(e,{label:"Revenue",value:"$38.2k",delta:{value:"12%",direction:"up"}}),
12
- /* @__PURE__ */o(e,{label:"Orders",value:"1,204",delta:{value:"4%",direction:"up"}}),
13
- /* @__PURE__ */o(e,{label:"Customers",value:"892",delta:{value:"2%",direction:"down"}}),
14
- /* @__PURE__ */o(e,{label:"Refunds",value:"$1.1k",delta:{value:"0%",direction:"flat"}})]}),
11
+ /* @__PURE__ */o(a,{label:"Revenue",value:"$38.2k",delta:{value:"12%",direction:"up"}}),
12
+ /* @__PURE__ */o(a,{label:"Orders",value:"1,204",delta:{value:"4%",direction:"up"}}),
13
+ /* @__PURE__ */o(a,{label:"Customers",value:"892",delta:{value:"2%",direction:"down"}}),
14
+ /* @__PURE__ */o(a,{label:"Refunds",value:"$1.1k",delta:{value:"0%",direction:"flat"}})]}),
15
15
  /* @__PURE__ */m("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-3",children:[
16
- /* @__PURE__ */o(a,{header:"Revenue",className:"lg:col-span-2",children:/* @__PURE__ */o(l,{labels:p,height:200,series:[{key:"revenue",label:"Revenue",data:h}],formatValue:e=>`$${e}k`})}),
17
- /* @__PURE__ */o(a,{header:"Traffic sources",children:/* @__PURE__ */o(s,{variant:"ring",size:180,segments:g,centerLabel:"100%"})})]}),
18
- /* @__PURE__ */o(a,{header:"Recent orders",padded:!1,children:/* @__PURE__ */m("table",{className:"w-full text-sm",children:[
16
+ /* @__PURE__ */o(t,{header:"Revenue",className:"lg:col-span-2",children:/* @__PURE__ */o(l,{labels:p,height:200,series:[{key:"revenue",label:"Revenue",data:h}],formatValue:e=>`$${e}k`})}),
17
+ /* @__PURE__ */o(t,{header:"Traffic sources",children:/* @__PURE__ */o(s,{variant:"ring",size:180,segments:g,centerLabel:"100%"})})]}),
18
+ /* @__PURE__ */o(t,{header:"Recent orders",padded:!1,children:/* @__PURE__ */m("table",{className:"w-full text-sm",children:[
19
19
  /* @__PURE__ */o("thead",{children:/* @__PURE__ */m("tr",{className:"border-b border-gray-100 text-left text-xs uppercase tracking-wide text-gray-400",children:[
20
20
  /* @__PURE__ */o("th",{className:`${n} px-4 py-2 font-medium`,children:"Order"}),
21
21
  /* @__PURE__ */o("th",{className:`${n} px-4 py-2 font-medium`,children:"Customer"}),
22
22
  /* @__PURE__ */o("th",{className:`${n} px-4 py-2 font-medium`,children:"Total"}),
23
23
  /* @__PURE__ */o("th",{className:`${n} px-4 py-2 font-medium`,children:"Status"})]})}),
24
- /* @__PURE__ */o("tbody",{className:"divide-y divide-gray-100",children:x.map(e=>/* @__PURE__ */m("tr",{className:"text-gray-700",children:[
25
- /* @__PURE__ */o("td",{className:"px-4 py-2 font-mono text-xs text-gray-500",children:e.id}),
24
+ /* @__PURE__ */o("tbody",{className:"divide-y divide-gray-100",children:x.map(a=>/* @__PURE__ */m("tr",{className:"text-gray-700",children:[
25
+ /* @__PURE__ */o("td",{className:"px-4 py-2 font-mono text-xs text-gray-500",children:a.id}),
26
26
  /* @__PURE__ */o("td",{className:"px-4 py-2",children:/* @__PURE__ */m("span",{className:"flex items-center gap-2",children:[
27
- /* @__PURE__ */o(t,{size:"xs",name:e.customer}),e.customer]})}),
28
- /* @__PURE__ */o("td",{className:"px-4 py-2",children:e.total}),
29
- /* @__PURE__ */o("td",{className:"px-4 py-2",children:/* @__PURE__ */o(d,{status:e.status})})]},e.id))})]})}),
27
+ /* @__PURE__ */o(e,{size:"xs",name:a.customer}),a.customer]})}),
28
+ /* @__PURE__ */o("td",{className:"px-4 py-2",children:a.total}),
29
+ /* @__PURE__ */o("td",{className:"px-4 py-2",children:/* @__PURE__ */o(d,{status:a.status})})]},a.id))})]})}),
30
30
  /* @__PURE__ */m("p",{className:"flex items-center gap-2 text-xs text-gray-400",children:[
31
31
  /* @__PURE__ */o("span",{className:"text-emerald-600",children:/* @__PURE__ */o(r,{data:h,width:80,height:20})}),"Trending up 12% vs last month"]})]})})})}export{v as DashboardTemplate};
@@ -1 +1 @@
1
- import{setBoundaryErrorReporter as e}from"./chunk-KNUR2UEG.js";import{VERSION as t}from"./chunk-L2OSJ2YC.js";var n=-1,i=()=>n,a=e=>{addEventListener("pageshow",t=>{t.persisted&&(n=t.timeStamp,e(t))},!0)},r=(e,t,n,i)=>{let a,r;return o=>{var s,c;t.value>=0&&(o||i)&&(r=t.value-(a??0),(r||void 0===a)&&(a=t.value,t.delta=r,t.rating=(s=t.value)>(c=n)[1]?"poor":s>c[0]?"needs-improvement":"good",e(t)))}},o=e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))},s=()=>{const e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},c=()=>s()?.activationStart??0,d=-1,l=/* @__PURE__ */new Set,u=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,f=e=>{if("hidden"===document.visibilityState){if("visibilitychange"===e.type)for(const e of l)e();isFinite(d)||(d="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("prerenderingchange",f,!0))}},h=(e=!1)=>{if(e&&(d=1/0),d<0){const e=c(),t=document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").find(t=>"hidden"===t.name&&t.startTime>=e)?.startTime;d=t??u(),addEventListener("visibilitychange",f,!0),addEventListener("prerenderingchange",f,!0),a(()=>{setTimeout(()=>{d=u()})})}return{get firstHiddenTime(){return d},onHidden(e){l.add(e)}}},g=(e,t=-1,n,a=0,r,o,d)=>{const l=s(),u=l?.navigationId||0;let f="navigate";return n?f=n:i()>=0?f="back-forward-cache":l&&(document.prerendering||c()>0?f="prerender":document.wasDiscarded?f="restore":l.type&&(f=l.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v6-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:f,navigationId:a||u,navigationInteractionId:r,navigationURL:o||l?.name,navigationStartTime:d||0}},v=/* @__PURE__ */new WeakMap;function p(e,t){let n=v.get(t);return n||(n=/* @__PURE__ */new WeakMap,v.set(t,n)),n.get(e)||n.set(e,new t),n.get(e)}var m,y=class{t;i=0;o=[];h(e){if(e.hadRecentInput)return;const t=this.o[0],n=this.o.at(-1);this.i&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),this.t?.(e)}},T=(e,t,n={})=>{try{const i=e.filter(e=>PerformanceObserver.supportedEntryTypes.includes(e));if(i.length>0){const e=new PerformanceObserver(e=>{queueMicrotask(()=>{const n=e.getEntries();i.length>1&&n.sort((e,t)=>e.startTime+e.duration-(t.startTime+t.duration)),t(n)})});for(const t of i)e.observe({type:t,buffered:!0,...n});return e}}catch{}},w=e=>globalThis.PerformanceObserver?.supportedEntryTypes?.includes("soft-navigation")&&"function"==typeof globalThis.PerformanceSoftNavigation?.prototype?.getLargestInteractionContentfulPaint&&e&&e.reportSoftNavs,I=(e,t)=>{if(e.set(t.navigationId,t),e.size>2){const t=e.keys().next().value;void 0!==t&&e.delete(t)}},b=e=>{let t=!1;return()=>{t||(e(),t=!0)}},C=class{l},E=e=>{document.prerendering?addEventListener("prerenderingchange",e,!0):e()},L=[1800,3e3],P=(e,t={})=>{const n=w(t);E(()=>{const s=p(t,C),d=h();let l,u=g("FCP");const f=T(["paint"],e=>{for(const t of e)"first-contentful-paint"===t.name&&(f.disconnect(),t.startTime<d.firstHiddenTime&&(u.value=Math.max(t.startTime-c(),0),u.entries.push(t),u.navigationId=t.navigationId||u.navigationId,l(!0)))});f&&(l=r(e,u,L,t.reportAllChanges),a(n=>{u=g("FCP",-1,"back-forward-cache",u.navigationId,u.navigationInteractionId,u.navigationURL,i()),l=r(e,u,L,t.reportAllChanges),o(()=>{u.value=performance.now()-n.timeStamp,l(!0)})})),n&&T(["soft-navigation"],n=>{n.forEach(n=>{s.l&&n.navigationId&&I(s.l,n);const i=Math.max((n.presentationTime||n.paintTime||0)-n.startTime,0);u=g("FCP",i,"soft-navigation",n.navigationId,n.interactionId,n.name,n.startTime),l=r(e,u,L,t.reportAllChanges),l(!0)})},t)})},A=[.1,.25],k=0,S=1/0,z=0,M=e=>{for(const t of e)t.interactionId&&(S=Math.min(S,t.interactionId),z=Math.max(z,t.interactionId),k=z?(z-S)/7+1:0)},$=()=>m?k:performance.interactionCount??0,_=class{u=0;v=[];m=/* @__PURE__ */new Map;p;T;_(){return $()-this.u}M(){this.u=$(),this.v.length=0,this.m.clear()}L(e){const t=this._(),n=Math.min(this.v.length-1,Math.floor(t/50));return!t||-1!==n||"soft-navigation"!==e&&"back-forward-cache"!==e?this.v[n]:{P:8,id:-1,entries:[]}}h(e){if(this.p?.(e),!e.interactionId)return;const t=this.v.at(-1);let n=this.m.get(e.interactionId);if(n||this.v.length<10||e.duration>t.P){if(n?e.duration>n.P?(n.entries=[e],n.P=e.duration):e.duration===n.P&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],P:e.duration},this.m.set(n.id,n),this.v.push(n)),this.v.sort((e,t)=>t.P-e.P),this.v.length>10){const e=this.v.splice(10);for(const t of e)this.m.delete(t.id)}this.T?.(n)}}},Z=e=>{const t="requestIdleCallback"in globalThis?1e3:0,n=globalThis.requestIdleCallback||setTimeout,i=globalThis.cancelIdleCallback||clearTimeout;if("hidden"===document.visibilityState)e();else{const a=b(e);let r=-1;const o=()=>{i(r),a()};addEventListener("visibilitychange",o,{once:!0,capture:!0}),r=n(()=>{removeEventListener("visibilitychange",o,{capture:!0}),a()},{timeout:t})}},F=[200,500],R=(e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const n=h();E(()=>{"interactionCount"in performance||m||(m=T(["event"],M,{durationThreshold:0}));let o,s=g("INP");const c=p(t,_),d=(n,i,a,d,l)=>{c.M(),s=g("INP",-1,n,i,a,d,l),o=r(e,s,F,t.reportAllChanges)},l=()=>{const e=c.L(s.navigationType);e&&e.P!==s.value&&(s.value=e.P,s.entries=e.entries,o())},u=e=>{l(),o(!0),d("soft-navigation",e.navigationId,e.interactionId,e.name,e.startTime)},f=(e,t=!1)=>{Z(()=>{for(const t of e)"soft-navigation"!==t.entryType?c.h(t):u(t);l(),t&&o(!0)})},h=["event","first-input"];w(t)&&h.push("soft-navigation");const v=T(h,f,{...t,durationThreshold:t.durationThreshold??40});o=r(e,s,F,t.reportAllChanges),v&&(n.onHidden(()=>{f(v.takeRecords(),!0)}),a(()=>{d("back-forward-cache",s.navigationId,s.navigationInteractionId,s.navigationURL,i())}))})},j=class{p;l;h(e){this.p?.(e)}},x=[2500,4e3],B=[800,1800],N=e=>{document.prerendering?E(()=>N(e)):"complete"!==document.readyState?addEventListener("load",()=>N(e),!0):setTimeout(e)};var O=/^[A-Za-z0-9/_:.\-[\]{}*@~]+$/,U=/^[A-Za-z_$][A-Za-z0-9_$.]*$/,H=/^[A-Za-z0-9][A-Za-z0-9.+_-]*$/;var q=class{constructor(e){this.head=e}head;events=[];waiting=/* @__PURE__ */new Map;seen=/* @__PURE__ */new Set;get size(){return this.events.length}addVital(e){this.events.push(e)}addError(e){const t=function(e){return e.frames.length?`${e.name}|${e.frames.join("|")}`:`${e.name}|${e.message.replace(/\d/g,"0")}`}(e),n=this.waiting.get(t);return n?(n.count=Math.min(1e3,n.count+e.count),!0):!(this.seen.has(t)||this.seen.size>=20)&&(this.seen.add(t),this.waiting.set(t,e),this.events.push(e),!0)}drain(){const e=this.events;this.events=[],this.waiting.clear();const t=[],n=JSON.stringify({...this.head,events:[]}).length;let i=[],a=n;for(const r of e){const e=JSON.stringify(r).length+1;n+e>30720||((50===i.length||a+e>30720)&&(t.push({...this.head,events:i}),i=[],a=n),i.push(r),a+=e)}return i.length&&t.push({...this.head,events:i}),t}},J=/[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}/g,K=/\beyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}(?:\.[A-Za-z0-9_-]*)?|\b[Bb]earer\s+[A-Za-z0-9._~+/=-]{8,}/g,V=/\b[a-z][a-z0-9+.-]*:\/\/\S+/gi,W=/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi,D=/\d{4,}/g,G=/(^|[/:])(?:\d+|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|[0-9a-f]{16,})(?=$|[/:])/gi,Y=/^[a-z][a-z0-9+.-]*:\/\/[^/]*/i,Q=/(?:\(|@|\bat\s+)?((?:[a-z][a-z0-9+.-]*:\/\/|\/)[^\s()@]*?):(\d+):(\d+)\)?\s*$/i;function X(e,t,n){const i=e.replace(Y,"").split(/[?#]/,1)[0];return i?`${i}:${t}:${n}`.slice(0,256):null}function ee(e){if("string"!=typeof e)return[];const t=[];for(const n of e.split("\n")){const e=Q.exec(n.trim()),i=e&&X(e[1],e[2],e[3]);if(i&&t.push(i),5===t.length)break}return t}function te(e){const t=e instanceof Error?e.name:void 0;return"string"==typeof t&&t.length<=64&&U.test(t)?t:"Error"}function ne(e){if("string"!=typeof e)return"unknown";const t=e.trim().replace(Y,"").split(/[?#]/,1)[0].replace(G,(e,t)=>":"===t?":id":`${t}:id`);return t&&t.length<=128&&!t.includes("//")&&O.test(t)?t:"unknown"}var ie={flush(){},reportError(){},stop(){}},ae=null,re=/* @__PURE__ */new Set(["LCP","FCP","TTFB"]);function oe(e,t,n){const i=function(e){if(e.anonymous)return{credentials:"omit",headers:{"Content-Type":"application/json"}};const t=e.getAccessToken();return t?{credentials:"same-origin",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}}:null}(t);if(!i)return;const a=t.anonymous?"/api/storefront-analytics/web-vitals/":"/api/client-telemetry/web-batches/";n(t.endpoint??a,{...i,method:"POST",keepalive:!0,body:JSON.stringify(e)}).catch(e=>{console.debug("[efficient-shell] client telemetry batch dropped:",e)})}function se(e){((e,t={})=>{let n=!1;const s=w(t);E(()=>{let d,l=h(),u=g("LCP");const f=p(t,j),v=(i,a,o,s,c)=>{u=g("LCP",-1,i,a,o,s,c),d=r(e,u,x,t.reportAllChanges),n=!1,"soft-navigation"===i&&(l=h(!0))},m=e=>{f.l&&e.navigationId&&I(f.l,e),n||d(!0),v("soft-navigation",e.navigationId,e.interactionId,e.name,e.startTime);const t=e.getLargestInteractionContentfulPaint?.();t&&y([t])},y=e=>{t.reportAllChanges||s||(e=e.slice(-1));for(const t of e){if(!t)continue;if("soft-navigation"===t.entryType){m(t);continue}let e=0,n=[],i=t.startTime;if("largest-contentful-paint"===t.entryType)e=Math.max(t.startTime-c(),0),f.h(t),n=[t];else if("interaction-contentful-paint"===t.entryType){const a=t;if(!u.navigationId)continue;if("interactionId"in a&&a.interactionId!=u.navigationInteractionId)continue;i=a.largestContentfulPaint?.renderTime||0,e=Math.max(i-t.startTime,0),a.largestContentfulPaint&&(f.h(a.largestContentfulPaint),n=[a.largestContentfulPaint])}i<l.firstHiddenTime&&(u.value=e,u.entries=n,d())}},w=["largest-contentful-paint"];s&&w.push("interaction-contentful-paint","soft-navigation");const b=T(w,y);if(b){d=r(e,u,x,t.reportAllChanges);const c=["keydown","click","visibilitychange"],l=e=>{if(e.isTrusted&&!n){const e=u.id;Z(()=>{if(!n){if(!s){b.disconnect();for(const e of c)removeEventListener(e,l,{capture:!0})}e===u.id&&(n=!0,d(!0))}})}};for(const e of c)addEventListener(e,l,{capture:!0});a(a=>{v("back-forward-cache",u.navigationId,u.navigationInteractionId,u.navigationURL,i()),d=r(e,u,x,t.reportAllChanges),o(()=>{u.value=performance.now()-a.timeStamp,n=!0,d(!0)})})}})})(e),R(e),((e,t={})=>{const n=h();P(b(()=>{let s,c=g("CLS",0);const d=p(t,y),l=(n,i,a,o,l)=>{c=g("CLS",0,n,i,a,o,l),d.i=0,s=r(e,c,A,t.reportAllChanges)},u=(e=!1)=>{d.i>c.value&&(c.value=d.i,c.entries=d.o),s(e)},f=e=>{u(!0),l("soft-navigation",e.navigationId,e.interactionId,e.name,e.startTime)},h=e=>{for(const t of e)"soft-navigation"!==t.entryType?d.h(t):f(t);u()},v=["layout-shift"];w(t)&&v.push("soft-navigation");const m=T(v,h);m&&(s=r(e,c,A,t.reportAllChanges),n.onHidden(()=>{h(m.takeRecords()),s(!0)}),a(()=>{l("back-forward-cache",c.navigationId,c.navigationInteractionId,c.navigationURL,i()),o(s)}),setTimeout(s))}))})(e),P(e),((e,t={})=>{const n=w(t);let o=g("TTFB"),d=r(e,o,B,t.reportAllChanges);N(()=>{const l=s();if(l){const s=l.responseStart;o.value=Math.max(s-c(),0),o.entries=[l],d(!0),a(()=>{o=g("TTFB",0,"back-forward-cache",o.navigationId,o.navigationInteractionId,o.navigationURL,i()),d=r(e,o,B,t.reportAllChanges),d(!0)}),n&&T(["soft-navigation"],n=>{n.forEach(n=>{n.navigationId&&(o=g("TTFB",0,"soft-navigation",n.navigationId,n.interactionId,n.name,n.startTime),o.entries=[n],d=r(e,o,B,t.reportAllChanges),d(!0))})},t)}})})(e)}function ce(n){if(ae?.stop(),ae=null,!1===n.enabled||"undefined"==typeof window||"undefined"==typeof document)return ie;if(!function(e){const t="string"==typeof e.app&&H.test(e.app),n="string"==typeof e.release&&H.test(e.release);return t&&n||console.warn("[efficient-shell] client telemetry not started: `app` and `release` must be version-like strings."),t&&n}(n))return ie;const i=function(e){const t=e.vitalsSampleRate??1;return t>0&&(t>=1||(e.random??Math.random)()<t)}(n);if(n.anonymous&&!i)return ie;const a=n.fetch??window.fetch.bind(window),r=new q({app:n.app,release:n.release,shell_version:H.test(t)?t:""}),o=ne(n.routeKey()),s=function(e=("undefined"==typeof window?void 0:window)){if(!e)return"desktop";const t="function"==typeof e.matchMedia&&e.matchMedia("(pointer: coarse)").matches,n=e.innerWidth;return n<600?"mobile":t&&n<1280?"tablet":"desktop"}(window);let c=!1;const d=()=>{for(const e of r.drain())oe(e,n,a)},l=e=>{c||n.anonymous||(r.addError(e),r.size>=50&&d())},u=(e,t)=>{return{type:"error",source:t,name:te(e),message:(a=e,i=a instanceof Error?a.message:"string"==typeof a?a:a&&"object"==typeof a&&"string"==typeof a.message?a.message:"",i.slice(0,640).replace(J,"[redacted]").replace(K,"[redacted]").replace(V,"[url]").replace(W,"[id]").replace(D,"[n]").replace(/\s+/g," ").trim().slice(0,160)),frames:ee(e instanceof Error?e.stack:void 0),route:ne(n.routeKey()),count:1};var i,a};i&&(n.observeVitals??se)(e=>{c||(r.addVital(function(e,t,n,i){return{type:"vital",name:e.name,value:e.value,route:re.has(e.name)?t:n(),navigation:e.navigationType??"navigate",device:i}}(e,o,()=>ne(n.routeKey()),s)),r.size>=50&&d())});const f=n.anonymous?()=>{}:function(t,n){const i=e=>{const{error:i,message:a,filename:r,lineno:o,colno:s}=e;if(null!=i)return void t(n(i,"onerror"));const c=r?ee(`at ${r}:${o??0}:${s??0}`):[];t({...n(a??"","onerror"),frames:c})},a=e=>t(n(e.reason,"unhandledrejection"));window.addEventListener("error",i),window.addEventListener("unhandledrejection",a);const r=e(e=>t(n(e,"boundary")));return()=>{window.removeEventListener("error",i),window.removeEventListener("unhandledrejection",a),r()}}(l,u),h=()=>{"hidden"===document.visibilityState&&d()};document.addEventListener("visibilitychange",h),window.addEventListener("pagehide",d);const g=window.setInterval(d,n.flushIntervalMs??6e4),v={flush:d,reportError:e=>l(u(e,"boundary")),stop(){c||(d(),c=!0,f(),document.removeEventListener("visibilitychange",h),window.removeEventListener("pagehide",d),window.clearInterval(g),ae===v&&(ae=null))}};return ae=v,v}export{ce as startClientTelemetry};
1
+ import{setBoundaryErrorReporter as e}from"./chunk-KNUR2UEG.js";import{VERSION as t}from"./chunk-HSOREHQB.js";var n=-1,i=()=>n,a=e=>{addEventListener("pageshow",t=>{t.persisted&&(n=t.timeStamp,e(t))},!0)},r=(e,t,n,i)=>{let a,r;return o=>{var s,c;t.value>=0&&(o||i)&&(r=t.value-(a??0),(r||void 0===a)&&(a=t.value,t.delta=r,t.rating=(s=t.value)>(c=n)[1]?"poor":s>c[0]?"needs-improvement":"good",e(t)))}},o=e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))},s=()=>{const e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},c=()=>s()?.activationStart??0,d=-1,l=/* @__PURE__ */new Set,u=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,f=e=>{if("hidden"===document.visibilityState){if("visibilitychange"===e.type)for(const e of l)e();isFinite(d)||(d="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("prerenderingchange",f,!0))}},h=(e=!1)=>{if(e&&(d=1/0),d<0){const e=c(),t=document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").find(t=>"hidden"===t.name&&t.startTime>=e)?.startTime;d=t??u(),addEventListener("visibilitychange",f,!0),addEventListener("prerenderingchange",f,!0),a(()=>{setTimeout(()=>{d=u()})})}return{get firstHiddenTime(){return d},onHidden(e){l.add(e)}}},g=(e,t=-1,n,a=0,r,o,d)=>{const l=s(),u=l?.navigationId||0;let f="navigate";return n?f=n:i()>=0?f="back-forward-cache":l&&(document.prerendering||c()>0?f="prerender":document.wasDiscarded?f="restore":l.type&&(f=l.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v6-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:f,navigationId:a||u,navigationInteractionId:r,navigationURL:o||l?.name,navigationStartTime:d||0}},v=/* @__PURE__ */new WeakMap;function p(e,t){let n=v.get(t);return n||(n=/* @__PURE__ */new WeakMap,v.set(t,n)),n.get(e)||n.set(e,new t),n.get(e)}var m,y=class{t;i=0;o=[];h(e){if(e.hadRecentInput)return;const t=this.o[0],n=this.o.at(-1);this.i&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),this.t?.(e)}},T=(e,t,n={})=>{try{const i=e.filter(e=>PerformanceObserver.supportedEntryTypes.includes(e));if(i.length>0){const e=new PerformanceObserver(e=>{queueMicrotask(()=>{const n=e.getEntries();i.length>1&&n.sort((e,t)=>e.startTime+e.duration-(t.startTime+t.duration)),t(n)})});for(const t of i)e.observe({type:t,buffered:!0,...n});return e}}catch{}},w=e=>globalThis.PerformanceObserver?.supportedEntryTypes?.includes("soft-navigation")&&"function"==typeof globalThis.PerformanceSoftNavigation?.prototype?.getLargestInteractionContentfulPaint&&e&&e.reportSoftNavs,I=(e,t)=>{if(e.set(t.navigationId,t),e.size>2){const t=e.keys().next().value;void 0!==t&&e.delete(t)}},b=e=>{let t=!1;return()=>{t||(e(),t=!0)}},E=class{l},C=e=>{document.prerendering?addEventListener("prerenderingchange",e,!0):e()},L=[1800,3e3],P=(e,t={})=>{const n=w(t);C(()=>{const s=p(t,E),d=h();let l,u=g("FCP");const f=T(["paint"],e=>{for(const t of e)"first-contentful-paint"===t.name&&(f.disconnect(),t.startTime<d.firstHiddenTime&&(u.value=Math.max(t.startTime-c(),0),u.entries.push(t),u.navigationId=t.navigationId||u.navigationId,l(!0)))});f&&(l=r(e,u,L,t.reportAllChanges),a(n=>{u=g("FCP",-1,"back-forward-cache",u.navigationId,u.navigationInteractionId,u.navigationURL,i()),l=r(e,u,L,t.reportAllChanges),o(()=>{u.value=performance.now()-n.timeStamp,l(!0)})})),n&&T(["soft-navigation"],n=>{n.forEach(n=>{s.l&&n.navigationId&&I(s.l,n);const i=Math.max((n.presentationTime||n.paintTime||0)-n.startTime,0);u=g("FCP",i,"soft-navigation",n.navigationId,n.interactionId,n.name,n.startTime),l=r(e,u,L,t.reportAllChanges),l(!0)})},t)})},A=[.1,.25],k=0,S=1/0,z=0,M=e=>{for(const t of e)t.interactionId&&(S=Math.min(S,t.interactionId),z=Math.max(z,t.interactionId),k=z?(z-S)/7+1:0)},$=()=>m?k:performance.interactionCount??0,_=class{u=0;v=[];m=/* @__PURE__ */new Map;p;T;_(){return $()-this.u}M(){this.u=$(),this.v.length=0,this.m.clear()}L(e){const t=this._(),n=Math.min(this.v.length-1,Math.floor(t/50));return!t||-1!==n||"soft-navigation"!==e&&"back-forward-cache"!==e?this.v[n]:{P:8,id:-1,entries:[]}}h(e){if(this.p?.(e),!e.interactionId)return;const t=this.v.at(-1);let n=this.m.get(e.interactionId);if(n||this.v.length<10||e.duration>t.P){if(n?e.duration>n.P?(n.entries=[e],n.P=e.duration):e.duration===n.P&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],P:e.duration},this.m.set(n.id,n),this.v.push(n)),this.v.sort((e,t)=>t.P-e.P),this.v.length>10){const e=this.v.splice(10);for(const t of e)this.m.delete(t.id)}this.T?.(n)}}},R=e=>{const t="requestIdleCallback"in globalThis?1e3:0,n=globalThis.requestIdleCallback||setTimeout,i=globalThis.cancelIdleCallback||clearTimeout;if("hidden"===document.visibilityState)e();else{const a=b(e);let r=-1;const o=()=>{i(r),a()};addEventListener("visibilitychange",o,{once:!0,capture:!0}),r=n(()=>{removeEventListener("visibilitychange",o,{capture:!0}),a()},{timeout:t})}},Z=[200,500],F=(e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const n=h();C(()=>{"interactionCount"in performance||m||(m=T(["event"],M,{durationThreshold:0}));let o,s=g("INP");const c=p(t,_),d=(n,i,a,d,l)=>{c.M(),s=g("INP",-1,n,i,a,d,l),o=r(e,s,Z,t.reportAllChanges)},l=()=>{const e=c.L(s.navigationType);e&&e.P!==s.value&&(s.value=e.P,s.entries=e.entries,o())},u=e=>{l(),o(!0),d("soft-navigation",e.navigationId,e.interactionId,e.name,e.startTime)},f=(e,t=!1)=>{R(()=>{for(const t of e)"soft-navigation"!==t.entryType?c.h(t):u(t);l(),t&&o(!0)})},h=["event","first-input"];w(t)&&h.push("soft-navigation");const v=T(h,f,{...t,durationThreshold:t.durationThreshold??40});o=r(e,s,Z,t.reportAllChanges),v&&(n.onHidden(()=>{f(v.takeRecords(),!0)}),a(()=>{d("back-forward-cache",s.navigationId,s.navigationInteractionId,s.navigationURL,i())}))})},j=class{p;l;h(e){this.p?.(e)}},x=[2500,4e3],B=[800,1800],H=e=>{document.prerendering?C(()=>H(e)):"complete"!==document.readyState?addEventListener("load",()=>H(e),!0):setTimeout(e)};var N=/^[A-Za-z0-9/_:.\-[\]{}*@~]+$/,O=/^[A-Za-z_$][A-Za-z0-9_$.]*$/,U=/^[A-Za-z0-9][A-Za-z0-9.+_-]*$/;var q=class{constructor(e){this.head=e}head;events=[];waiting=/* @__PURE__ */new Map;seen=/* @__PURE__ */new Set;get size(){return this.events.length}addVital(e){this.events.push(e)}addError(e){const t=function(e){return e.frames.length?`${e.name}|${e.frames.join("|")}`:`${e.name}|${e.message.replace(/\d/g,"0")}`}(e),n=this.waiting.get(t);return n?(n.count=Math.min(1e3,n.count+e.count),!0):!(this.seen.has(t)||this.seen.size>=20)&&(this.seen.add(t),this.waiting.set(t,e),this.events.push(e),!0)}drain(){const e=this.events;this.events=[],this.waiting.clear();const t=[],n=JSON.stringify({...this.head,events:[]}).length;let i=[],a=n;for(const r of e){const e=JSON.stringify(r).length+1;n+e>30720||((50===i.length||a+e>30720)&&(t.push({...this.head,events:i}),i=[],a=n),i.push(r),a+=e)}return i.length&&t.push({...this.head,events:i}),t}},J=/[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}/g,K=/\beyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}(?:\.[A-Za-z0-9_-]*)?|\b[Bb]earer\s+[A-Za-z0-9._~+/=-]{8,}/g,V=/\b[a-z][a-z0-9+.-]*:\/\/\S+/gi,W=/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi,D=/\d{4,}/g,G=/(^|[/:])(?:\d+|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|[0-9a-f]{16,})(?=$|[/:])/gi,Q=/^[a-z][a-z0-9+.-]*:\/\/[^/]*/i,X=/(?:\(|@|\bat\s+)?((?:[a-z][a-z0-9+.-]*:\/\/|\/)[^\s()@]*?):(\d+):(\d+)\)?\s*$/i;function Y(e,t,n){const i=e.replace(Q,"").split(/[?#]/,1)[0];return i?`${i}:${t}:${n}`.slice(0,256):null}function ee(e){if("string"!=typeof e)return[];const t=[];for(const n of e.split("\n")){const e=X.exec(n.trim()),i=e&&Y(e[1],e[2],e[3]);if(i&&t.push(i),5===t.length)break}return t}function te(e){const t=e instanceof Error?e.name:void 0;return"string"==typeof t&&t.length<=64&&O.test(t)?t:"Error"}function ne(e){if("string"!=typeof e)return"unknown";const t=e.trim().replace(Q,"").split(/[?#]/,1)[0].replace(G,(e,t)=>":"===t?":id":`${t}:id`);return t&&t.length<=128&&!t.includes("//")&&N.test(t)?t:"unknown"}var ie={flush(){},reportError(){},stop(){}},ae=null,re=/* @__PURE__ */new Set(["LCP","FCP","TTFB"]);function oe(e,t,n){const i=function(e){if(e.anonymous)return{credentials:"omit",headers:{"Content-Type":"application/json"}};const t=e.getAccessToken();return t?{credentials:"same-origin",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}}:null}(t);if(!i)return;const a=t.anonymous?"/api/storefront-analytics/web-vitals/":"/api/client-telemetry/web-batches/";n(t.endpoint??a,{...i,method:"POST",keepalive:!0,body:JSON.stringify(e)}).catch(e=>{console.debug("[efficient-shell] client telemetry batch dropped:",e)})}function se(e){((e,t={})=>{let n=!1;const s=w(t);C(()=>{let d,l=h(),u=g("LCP");const f=p(t,j),v=(i,a,o,s,c)=>{u=g("LCP",-1,i,a,o,s,c),d=r(e,u,x,t.reportAllChanges),n=!1,"soft-navigation"===i&&(l=h(!0))},m=e=>{f.l&&e.navigationId&&I(f.l,e),n||d(!0),v("soft-navigation",e.navigationId,e.interactionId,e.name,e.startTime);const t=e.getLargestInteractionContentfulPaint?.();t&&y([t])},y=e=>{t.reportAllChanges||s||(e=e.slice(-1));for(const t of e){if(!t)continue;if("soft-navigation"===t.entryType){m(t);continue}let e=0,n=[],i=t.startTime;if("largest-contentful-paint"===t.entryType)e=Math.max(t.startTime-c(),0),f.h(t),n=[t];else if("interaction-contentful-paint"===t.entryType){const a=t;if(!u.navigationId)continue;if("interactionId"in a&&a.interactionId!=u.navigationInteractionId)continue;i=a.largestContentfulPaint?.renderTime||0,e=Math.max(i-t.startTime,0),a.largestContentfulPaint&&(f.h(a.largestContentfulPaint),n=[a.largestContentfulPaint])}i<l.firstHiddenTime&&(u.value=e,u.entries=n,d())}},w=["largest-contentful-paint"];s&&w.push("interaction-contentful-paint","soft-navigation");const b=T(w,y);if(b){d=r(e,u,x,t.reportAllChanges);const c=["keydown","click","visibilitychange"],l=e=>{if(e.isTrusted&&!n){const e=u.id;R(()=>{if(!n){if(!s){b.disconnect();for(const e of c)removeEventListener(e,l,{capture:!0})}e===u.id&&(n=!0,d(!0))}})}};for(const e of c)addEventListener(e,l,{capture:!0});a(a=>{v("back-forward-cache",u.navigationId,u.navigationInteractionId,u.navigationURL,i()),d=r(e,u,x,t.reportAllChanges),o(()=>{u.value=performance.now()-a.timeStamp,n=!0,d(!0)})})}})})(e),F(e),((e,t={})=>{const n=h();P(b(()=>{let s,c=g("CLS",0);const d=p(t,y),l=(n,i,a,o,l)=>{c=g("CLS",0,n,i,a,o,l),d.i=0,s=r(e,c,A,t.reportAllChanges)},u=(e=!1)=>{d.i>c.value&&(c.value=d.i,c.entries=d.o),s(e)},f=e=>{u(!0),l("soft-navigation",e.navigationId,e.interactionId,e.name,e.startTime)},h=e=>{for(const t of e)"soft-navigation"!==t.entryType?d.h(t):f(t);u()},v=["layout-shift"];w(t)&&v.push("soft-navigation");const m=T(v,h);m&&(s=r(e,c,A,t.reportAllChanges),n.onHidden(()=>{h(m.takeRecords()),s(!0)}),a(()=>{l("back-forward-cache",c.navigationId,c.navigationInteractionId,c.navigationURL,i()),o(s)}),setTimeout(s))}))})(e),P(e),((e,t={})=>{const n=w(t);let o=g("TTFB"),d=r(e,o,B,t.reportAllChanges);H(()=>{const l=s();if(l){const s=l.responseStart;o.value=Math.max(s-c(),0),o.entries=[l],d(!0),a(()=>{o=g("TTFB",0,"back-forward-cache",o.navigationId,o.navigationInteractionId,o.navigationURL,i()),d=r(e,o,B,t.reportAllChanges),d(!0)}),n&&T(["soft-navigation"],n=>{n.forEach(n=>{n.navigationId&&(o=g("TTFB",0,"soft-navigation",n.navigationId,n.interactionId,n.name,n.startTime),o.entries=[n],d=r(e,o,B,t.reportAllChanges),d(!0))})},t)}})})(e)}function ce(n){if(ae?.stop(),ae=null,!1===n.enabled||"undefined"==typeof window||"undefined"==typeof document)return ie;if(!function(e){const t="string"==typeof e.app&&U.test(e.app),n="string"==typeof e.release&&U.test(e.release);return t&&n||console.warn("[efficient-shell] client telemetry not started: `app` and `release` must be version-like strings."),t&&n}(n))return ie;const i=function(e){const t=e.vitalsSampleRate??1;return t>0&&(t>=1||(e.random??Math.random)()<t)}(n);if(n.anonymous&&!i)return ie;const a=n.fetch??window.fetch.bind(window),r=new q({app:n.app,release:n.release,shell_version:U.test(t)?t:""}),o=ne(n.routeKey()),s=function(e=("undefined"==typeof window?void 0:window)){if(!e)return"desktop";const t="function"==typeof e.matchMedia&&e.matchMedia("(pointer: coarse)").matches,n=e.innerWidth;return n<600?"mobile":t&&n<1280?"tablet":"desktop"}(window);let c=!1;const d=()=>{for(const e of r.drain())oe(e,n,a)},l=e=>{c||n.anonymous||(r.addError(e),r.size>=50&&d())},u=(e,t)=>{return{type:"error",source:t,name:te(e),message:(a=e,i=a instanceof Error?a.message:"string"==typeof a?a:a&&"object"==typeof a&&"string"==typeof a.message?a.message:"",i.slice(0,640).replace(J,"[redacted]").replace(K,"[redacted]").replace(V,"[url]").replace(W,"[id]").replace(D,"[n]").replace(/\s+/g," ").trim().slice(0,160)),frames:ee(e instanceof Error?e.stack:void 0),route:ne(n.routeKey()),count:1};var i,a};i&&(n.observeVitals??se)(e=>{c||(r.addVital(function(e,t,n,i){return{type:"vital",name:e.name,value:e.value,route:re.has(e.name)?t:n(),navigation:e.navigationType??"navigate",device:i}}(e,o,()=>ne(n.routeKey()),s)),r.size>=50&&d())});const f=n.anonymous?()=>{}:function(t,n){const i=e=>{const{error:i,message:a,filename:r,lineno:o,colno:s}=e;if(null!=i)return void t(n(i,"onerror"));const c=r?ee(`at ${r}:${o??0}:${s??0}`):[];t({...n(a??"","onerror"),frames:c})},a=e=>t(n(e.reason,"unhandledrejection"));window.addEventListener("error",i),window.addEventListener("unhandledrejection",a);const r=e(e=>t(n(e,"boundary")));return()=>{window.removeEventListener("error",i),window.removeEventListener("unhandledrejection",a),r()}}(l,u),h=()=>{"hidden"===document.visibilityState&&d()};document.addEventListener("visibilitychange",h),window.addEventListener("pagehide",d);const g=window.setInterval(d,n.flushIntervalMs??6e4),v={flush:d,reportError:e=>l(u(e,"boundary")),stop(){c||(d(),c=!0,f(),document.removeEventListener("visibilitychange",h),window.removeEventListener("pagehide",d),window.clearInterval(g),ae===v&&(ae=null))}};return ae=v,v}export{ce as startClientTelemetry};