@rpcbase/ui 0.157.0 → 0.158.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 (725) hide show
  1. package/dist/index.js +67 -24680
  2. package/dist/index.js.map +1 -1
  3. package/dist/index10.js +73 -0
  4. package/dist/index10.js.map +1 -0
  5. package/dist/index100.js +8 -0
  6. package/dist/index100.js.map +1 -0
  7. package/dist/index101.js +10 -0
  8. package/dist/index101.js.map +1 -0
  9. package/dist/index102.js +9 -0
  10. package/dist/index102.js.map +1 -0
  11. package/dist/index103.js +8 -0
  12. package/dist/index103.js.map +1 -0
  13. package/dist/index104.js +9 -0
  14. package/dist/index104.js.map +1 -0
  15. package/dist/index105.js +8 -0
  16. package/dist/index105.js.map +1 -0
  17. package/dist/index106.js +12 -0
  18. package/dist/index106.js.map +1 -0
  19. package/dist/index107.js +9 -0
  20. package/dist/index107.js.map +1 -0
  21. package/dist/index108.js +8 -0
  22. package/dist/index108.js.map +1 -0
  23. package/dist/index109.js +8 -0
  24. package/dist/index109.js.map +1 -0
  25. package/dist/index11.js +483 -0
  26. package/dist/index11.js.map +1 -0
  27. package/dist/index110.js +10 -0
  28. package/dist/index110.js.map +1 -0
  29. package/dist/index111.js +149 -0
  30. package/dist/index111.js.map +1 -0
  31. package/dist/index112.js +43 -0
  32. package/dist/index112.js.map +1 -0
  33. package/dist/index113.js +8 -0
  34. package/dist/index113.js.map +1 -0
  35. package/dist/index114.js +11 -0
  36. package/dist/index114.js.map +1 -0
  37. package/dist/index115.js +17 -0
  38. package/dist/index115.js.map +1 -0
  39. package/dist/index116.js +17 -0
  40. package/dist/index116.js.map +1 -0
  41. package/dist/index117.js +11 -0
  42. package/dist/index117.js.map +1 -0
  43. package/dist/index118.js +35 -0
  44. package/dist/index118.js.map +1 -0
  45. package/dist/index119.js +14 -0
  46. package/dist/index119.js.map +1 -0
  47. package/dist/index12.js +130 -0
  48. package/dist/index12.js.map +1 -0
  49. package/dist/index120.js +14 -0
  50. package/dist/index120.js.map +1 -0
  51. package/dist/index121.js +12 -0
  52. package/dist/index121.js.map +1 -0
  53. package/dist/index122.js +17 -0
  54. package/dist/index122.js.map +1 -0
  55. package/dist/index123.js +105 -0
  56. package/dist/index123.js.map +1 -0
  57. package/dist/index124.js +23 -0
  58. package/dist/index124.js.map +1 -0
  59. package/dist/index125.js +57 -0
  60. package/dist/index125.js.map +1 -0
  61. package/dist/index126.js +76 -0
  62. package/dist/index126.js.map +1 -0
  63. package/dist/index127.js +13 -0
  64. package/dist/index127.js.map +1 -0
  65. package/dist/index128.js +24 -0
  66. package/dist/index128.js.map +1 -0
  67. package/dist/index129.js +20 -0
  68. package/dist/index129.js.map +1 -0
  69. package/dist/index13.js +79 -0
  70. package/dist/index13.js.map +1 -0
  71. package/dist/index130.js +27 -0
  72. package/dist/index130.js.map +1 -0
  73. package/dist/index131.js +10 -0
  74. package/dist/index131.js.map +1 -0
  75. package/dist/index132.js +9 -0
  76. package/dist/index132.js.map +1 -0
  77. package/dist/index133.js +27 -0
  78. package/dist/index133.js.map +1 -0
  79. package/dist/index134.js +38 -0
  80. package/dist/index134.js.map +1 -0
  81. package/dist/index135.js +19 -0
  82. package/dist/index135.js.map +1 -0
  83. package/dist/index136.js +10 -0
  84. package/dist/index136.js.map +1 -0
  85. package/dist/index137.js +8 -0
  86. package/dist/index137.js.map +1 -0
  87. package/dist/index138.js +8 -0
  88. package/dist/index138.js.map +1 -0
  89. package/dist/index139.js +8 -0
  90. package/dist/index139.js.map +1 -0
  91. package/dist/index14.js +735 -0
  92. package/dist/index14.js.map +1 -0
  93. package/dist/index140.js +8 -0
  94. package/dist/index140.js.map +1 -0
  95. package/dist/index141.js +7 -0
  96. package/dist/index141.js.map +1 -0
  97. package/dist/index142.js +10 -0
  98. package/dist/index142.js.map +1 -0
  99. package/dist/index143.js +27 -0
  100. package/dist/index143.js.map +1 -0
  101. package/dist/index144.js +11 -0
  102. package/dist/index144.js.map +1 -0
  103. package/dist/index145.js +10 -0
  104. package/dist/index145.js.map +1 -0
  105. package/dist/index146.js +9 -0
  106. package/dist/index146.js.map +1 -0
  107. package/dist/index147.js +7 -0
  108. package/dist/index147.js.map +1 -0
  109. package/dist/index148.js +7 -0
  110. package/dist/index148.js.map +1 -0
  111. package/dist/index149.js +8 -0
  112. package/dist/index149.js.map +1 -0
  113. package/dist/index15.js +26 -0
  114. package/dist/index15.js.map +1 -0
  115. package/dist/index150.js +7 -0
  116. package/dist/index150.js.map +1 -0
  117. package/dist/index151.js +8 -0
  118. package/dist/index151.js.map +1 -0
  119. package/dist/index152.js +7 -0
  120. package/dist/index152.js.map +1 -0
  121. package/dist/index153.js +7 -0
  122. package/dist/index153.js.map +1 -0
  123. package/dist/index154.js +7 -0
  124. package/dist/index154.js.map +1 -0
  125. package/dist/index155.js +7 -0
  126. package/dist/index155.js.map +1 -0
  127. package/dist/index156.js +37 -0
  128. package/dist/index156.js.map +1 -0
  129. package/dist/index157.js +253 -0
  130. package/dist/index157.js.map +1 -0
  131. package/dist/index158.js +118 -0
  132. package/dist/index158.js.map +1 -0
  133. package/dist/index159.js +223 -0
  134. package/dist/index159.js.map +1 -0
  135. package/dist/index16.js +21 -0
  136. package/dist/index16.js.map +1 -0
  137. package/dist/index160.js +70 -0
  138. package/dist/index160.js.map +1 -0
  139. package/dist/index161.js +24 -0
  140. package/dist/index161.js.map +1 -0
  141. package/dist/index162.js +213 -0
  142. package/dist/index162.js.map +1 -0
  143. package/dist/index163.js +323 -0
  144. package/dist/index163.js.map +1 -0
  145. package/dist/index164.js +134 -0
  146. package/dist/index164.js.map +1 -0
  147. package/dist/index165.js +24 -0
  148. package/dist/index165.js.map +1 -0
  149. package/dist/index166.js +79 -0
  150. package/dist/index166.js.map +1 -0
  151. package/dist/index167.js +22 -0
  152. package/dist/index167.js.map +1 -0
  153. package/dist/index168.js +105 -0
  154. package/dist/index168.js.map +1 -0
  155. package/dist/index169.js +8 -0
  156. package/dist/index169.js.map +1 -0
  157. package/dist/index17.js +390 -0
  158. package/dist/index17.js.map +1 -0
  159. package/dist/index170.js +18 -0
  160. package/dist/index170.js.map +1 -0
  161. package/dist/index171.js +5 -0
  162. package/dist/index171.js.map +1 -0
  163. package/dist/index172.js +11 -0
  164. package/dist/index172.js.map +1 -0
  165. package/dist/index173.js +330 -0
  166. package/dist/index173.js.map +1 -0
  167. package/dist/index174.js +53 -0
  168. package/dist/index174.js.map +1 -0
  169. package/dist/index175.js +609 -0
  170. package/dist/index175.js.map +1 -0
  171. package/dist/index176.js +50 -0
  172. package/dist/index176.js.map +1 -0
  173. package/dist/index177.js +15 -0
  174. package/dist/index177.js.map +1 -0
  175. package/dist/index178.js +209 -0
  176. package/dist/index178.js.map +1 -0
  177. package/dist/index179.js +25 -0
  178. package/dist/index179.js.map +1 -0
  179. package/dist/index18.js +662 -0
  180. package/dist/index18.js.map +1 -0
  181. package/dist/index180.js +28 -0
  182. package/dist/index180.js.map +1 -0
  183. package/dist/index181.js +403 -0
  184. package/dist/index181.js.map +1 -0
  185. package/dist/index182.js +50 -0
  186. package/dist/index182.js.map +1 -0
  187. package/dist/index183.js +9 -0
  188. package/dist/index183.js.map +1 -0
  189. package/dist/index184.js +72 -0
  190. package/dist/index184.js.map +1 -0
  191. package/dist/index185.js +5 -0
  192. package/dist/index185.js.map +1 -0
  193. package/dist/index186.js +367 -0
  194. package/dist/index186.js.map +1 -0
  195. package/dist/index187.js +265 -0
  196. package/dist/index187.js.map +1 -0
  197. package/dist/index188.js +64 -0
  198. package/dist/index188.js.map +1 -0
  199. package/dist/index189.js +50 -0
  200. package/dist/index189.js.map +1 -0
  201. package/dist/index19.js +661 -0
  202. package/dist/index19.js.map +1 -0
  203. package/dist/index190.js +173 -0
  204. package/dist/index190.js.map +1 -0
  205. package/dist/index191.js +113 -0
  206. package/dist/index191.js.map +1 -0
  207. package/dist/index192.js +28 -0
  208. package/dist/index192.js.map +1 -0
  209. package/dist/index193.js +11 -0
  210. package/dist/index193.js.map +1 -0
  211. package/dist/index194.js +8 -0
  212. package/dist/index194.js.map +1 -0
  213. package/dist/index195.js +9 -0
  214. package/dist/index195.js.map +1 -0
  215. package/dist/index196.js +8 -0
  216. package/dist/index196.js.map +1 -0
  217. package/dist/index197.js +470 -0
  218. package/dist/index197.js.map +1 -0
  219. package/dist/index198.js +189 -0
  220. package/dist/index198.js.map +1 -0
  221. package/dist/index199.js +111 -0
  222. package/dist/index199.js.map +1 -0
  223. package/dist/index2.js +9 -0
  224. package/dist/index2.js.map +1 -0
  225. package/dist/index20.js +204 -0
  226. package/dist/index20.js.map +1 -0
  227. package/dist/index200.js +266 -0
  228. package/dist/index200.js.map +1 -0
  229. package/dist/index201.js +13 -0
  230. package/dist/index201.js.map +1 -0
  231. package/dist/index202.js +46 -0
  232. package/dist/index202.js.map +1 -0
  233. package/dist/index203.js +8 -0
  234. package/dist/index203.js.map +1 -0
  235. package/dist/index204.js +5 -0
  236. package/dist/index204.js.map +1 -0
  237. package/dist/index205.js +71 -0
  238. package/dist/index205.js.map +1 -0
  239. package/dist/index206.js +88 -0
  240. package/dist/index206.js.map +1 -0
  241. package/dist/index207.js +50 -0
  242. package/dist/index207.js.map +1 -0
  243. package/dist/index208.js +11 -0
  244. package/dist/index208.js.map +1 -0
  245. package/dist/index209.js +8 -0
  246. package/dist/index209.js.map +1 -0
  247. package/dist/index21.js +8 -0
  248. package/dist/index21.js.map +1 -0
  249. package/dist/index210.js +55 -0
  250. package/dist/index210.js.map +1 -0
  251. package/dist/index211.js +20 -0
  252. package/dist/index211.js.map +1 -0
  253. package/dist/index212.js +9 -0
  254. package/dist/index212.js.map +1 -0
  255. package/dist/index213.js +9 -0
  256. package/dist/index213.js.map +1 -0
  257. package/dist/index214.js +62 -0
  258. package/dist/index214.js.map +1 -0
  259. package/dist/index215.js +70 -0
  260. package/dist/index215.js.map +1 -0
  261. package/dist/index216.js +10 -0
  262. package/dist/index216.js.map +1 -0
  263. package/dist/index217.js +8 -0
  264. package/dist/index217.js.map +1 -0
  265. package/dist/index218.js +11 -0
  266. package/dist/index218.js.map +1 -0
  267. package/dist/index219.js +21 -0
  268. package/dist/index219.js.map +1 -0
  269. package/dist/index22.js +38 -0
  270. package/dist/index22.js.map +1 -0
  271. package/dist/index220.js +9 -0
  272. package/dist/index220.js.map +1 -0
  273. package/dist/index221.js +9 -0
  274. package/dist/index221.js.map +1 -0
  275. package/dist/index222.js +17 -0
  276. package/dist/index222.js.map +1 -0
  277. package/dist/index223.js +14 -0
  278. package/dist/index223.js.map +1 -0
  279. package/dist/index224.js +18 -0
  280. package/dist/index224.js.map +1 -0
  281. package/dist/index225.js +18 -0
  282. package/dist/index225.js.map +1 -0
  283. package/dist/index226.js +9 -0
  284. package/dist/index226.js.map +1 -0
  285. package/dist/index227.js +10 -0
  286. package/dist/index227.js.map +1 -0
  287. package/dist/index228.js +11 -0
  288. package/dist/index228.js.map +1 -0
  289. package/dist/index229.js +10 -0
  290. package/dist/index229.js.map +1 -0
  291. package/dist/index23.js +272 -0
  292. package/dist/index23.js.map +1 -0
  293. package/dist/index230.js +13 -0
  294. package/dist/index230.js.map +1 -0
  295. package/dist/index231.js +9 -0
  296. package/dist/index231.js.map +1 -0
  297. package/dist/index232.js +9 -0
  298. package/dist/index232.js.map +1 -0
  299. package/dist/index233.js +13 -0
  300. package/dist/index233.js.map +1 -0
  301. package/dist/index234.js +9 -0
  302. package/dist/index234.js.map +1 -0
  303. package/dist/index235.js +9 -0
  304. package/dist/index235.js.map +1 -0
  305. package/dist/index236.js +8 -0
  306. package/dist/index236.js.map +1 -0
  307. package/dist/index237.js +15 -0
  308. package/dist/index237.js.map +1 -0
  309. package/dist/index238.js +14 -0
  310. package/dist/index238.js.map +1 -0
  311. package/dist/index239.js +14 -0
  312. package/dist/index239.js.map +1 -0
  313. package/dist/index24.js +184 -0
  314. package/dist/index24.js.map +1 -0
  315. package/dist/index240.js +15 -0
  316. package/dist/index240.js.map +1 -0
  317. package/dist/index241.js +15 -0
  318. package/dist/index241.js.map +1 -0
  319. package/dist/index242.js +14 -0
  320. package/dist/index242.js.map +1 -0
  321. package/dist/index243.js +11 -0
  322. package/dist/index243.js.map +1 -0
  323. package/dist/index244.js +10 -0
  324. package/dist/index244.js.map +1 -0
  325. package/dist/index245.js +9 -0
  326. package/dist/index245.js.map +1 -0
  327. package/dist/index246.js +10 -0
  328. package/dist/index246.js.map +1 -0
  329. package/dist/index247.js +11 -0
  330. package/dist/index247.js.map +1 -0
  331. package/dist/index248.js +10 -0
  332. package/dist/index248.js.map +1 -0
  333. package/dist/index249.js +59 -0
  334. package/dist/index249.js.map +1 -0
  335. package/dist/index25.js +18 -0
  336. package/dist/index25.js.map +1 -0
  337. package/dist/index250.js +12 -0
  338. package/dist/index250.js.map +1 -0
  339. package/dist/index251.js +23 -0
  340. package/dist/index251.js.map +1 -0
  341. package/dist/index252.js +27 -0
  342. package/dist/index252.js.map +1 -0
  343. package/dist/index253.js +20 -0
  344. package/dist/index253.js.map +1 -0
  345. package/dist/index254.js +11 -0
  346. package/dist/index254.js.map +1 -0
  347. package/dist/index255.js +14 -0
  348. package/dist/index255.js.map +1 -0
  349. package/dist/index256.js +14 -0
  350. package/dist/index256.js.map +1 -0
  351. package/dist/index257.js +25 -0
  352. package/dist/index257.js.map +1 -0
  353. package/dist/index258.js +14 -0
  354. package/dist/index258.js.map +1 -0
  355. package/dist/index259.js +13 -0
  356. package/dist/index259.js.map +1 -0
  357. package/dist/index26.js +2766 -0
  358. package/dist/index26.js.map +1 -0
  359. package/dist/index260.js +13 -0
  360. package/dist/index260.js.map +1 -0
  361. package/dist/index261.js +8 -0
  362. package/dist/index261.js.map +1 -0
  363. package/dist/index262.js +9 -0
  364. package/dist/index262.js.map +1 -0
  365. package/dist/index263.js +20 -0
  366. package/dist/index263.js.map +1 -0
  367. package/dist/index264.js +13 -0
  368. package/dist/index264.js.map +1 -0
  369. package/dist/index265.js +22 -0
  370. package/dist/index265.js.map +1 -0
  371. package/dist/index266.js +19 -0
  372. package/dist/index266.js.map +1 -0
  373. package/dist/index267.js +16 -0
  374. package/dist/index267.js.map +1 -0
  375. package/dist/index268.js +33 -0
  376. package/dist/index268.js.map +1 -0
  377. package/dist/index269.js +16 -0
  378. package/dist/index269.js.map +1 -0
  379. package/dist/index27.js +40 -0
  380. package/dist/index27.js.map +1 -0
  381. package/dist/index270.js +29 -0
  382. package/dist/index270.js.map +1 -0
  383. package/dist/index271.js +9 -0
  384. package/dist/index271.js.map +1 -0
  385. package/dist/index272.js +68 -0
  386. package/dist/index272.js.map +1 -0
  387. package/dist/index273.js +52 -0
  388. package/dist/index273.js.map +1 -0
  389. package/dist/index274.js +43 -0
  390. package/dist/index274.js.map +1 -0
  391. package/dist/index275.js +104 -0
  392. package/dist/index275.js.map +1 -0
  393. package/dist/index276.js +101 -0
  394. package/dist/index276.js.map +1 -0
  395. package/dist/index277.js +103 -0
  396. package/dist/index277.js.map +1 -0
  397. package/dist/index278.js +7 -0
  398. package/dist/index278.js.map +1 -0
  399. package/dist/index279.js +71 -0
  400. package/dist/index279.js.map +1 -0
  401. package/dist/index28.js +6 -0
  402. package/dist/index28.js.map +1 -0
  403. package/dist/index280.js +184 -0
  404. package/dist/index280.js.map +1 -0
  405. package/dist/index281.js +50 -0
  406. package/dist/index281.js.map +1 -0
  407. package/dist/index282.js +28 -0
  408. package/dist/index282.js.map +1 -0
  409. package/dist/index283.js +32 -0
  410. package/dist/index283.js.map +1 -0
  411. package/dist/index284.js +8 -0
  412. package/dist/index284.js.map +1 -0
  413. package/dist/index285.js +17 -0
  414. package/dist/index285.js.map +1 -0
  415. package/dist/index286.js +158 -0
  416. package/dist/index286.js.map +1 -0
  417. package/dist/index287.js +34 -0
  418. package/dist/index287.js.map +1 -0
  419. package/dist/index288.js +13 -0
  420. package/dist/index288.js.map +1 -0
  421. package/dist/index289.js +51 -0
  422. package/dist/index289.js.map +1 -0
  423. package/dist/index29.js +51 -0
  424. package/dist/index29.js.map +1 -0
  425. package/dist/index290.js +15 -0
  426. package/dist/index290.js.map +1 -0
  427. package/dist/index291.js +48 -0
  428. package/dist/index291.js.map +1 -0
  429. package/dist/index292.js +99 -0
  430. package/dist/index292.js.map +1 -0
  431. package/dist/index293.js +90 -0
  432. package/dist/index293.js.map +1 -0
  433. package/dist/index294.js +109 -0
  434. package/dist/index294.js.map +1 -0
  435. package/dist/index295.js +56 -0
  436. package/dist/index295.js.map +1 -0
  437. package/dist/index296.js +15 -0
  438. package/dist/index296.js.map +1 -0
  439. package/dist/index297.js +41 -0
  440. package/dist/index297.js.map +1 -0
  441. package/dist/index298.js +12 -0
  442. package/dist/index298.js.map +1 -0
  443. package/dist/index299.js +120 -0
  444. package/dist/index299.js.map +1 -0
  445. package/dist/index3.js +5 -0
  446. package/dist/index3.js.map +1 -0
  447. package/dist/index30.js +223 -0
  448. package/dist/index30.js.map +1 -0
  449. package/dist/index300.js +21 -0
  450. package/dist/index300.js.map +1 -0
  451. package/dist/index301.js +19 -0
  452. package/dist/index301.js.map +1 -0
  453. package/dist/index302.js +7 -0
  454. package/dist/index302.js.map +1 -0
  455. package/dist/index303.js +40 -0
  456. package/dist/index303.js.map +1 -0
  457. package/dist/index304.js +24 -0
  458. package/dist/index304.js.map +1 -0
  459. package/dist/index305.js +13 -0
  460. package/dist/index305.js.map +1 -0
  461. package/dist/index306.js +12 -0
  462. package/dist/index306.js.map +1 -0
  463. package/dist/index307.js +23 -0
  464. package/dist/index307.js.map +1 -0
  465. package/dist/index308.js +32 -0
  466. package/dist/index308.js.map +1 -0
  467. package/dist/index309.js +20 -0
  468. package/dist/index309.js.map +1 -0
  469. package/dist/index31.js +47 -0
  470. package/dist/index31.js.map +1 -0
  471. package/dist/index310.js +5 -0
  472. package/dist/index310.js.map +1 -0
  473. package/dist/index311.js +5 -0
  474. package/dist/index311.js.map +1 -0
  475. package/dist/index312.js +8 -0
  476. package/dist/index312.js.map +1 -0
  477. package/dist/index313.js +22 -0
  478. package/dist/index313.js.map +1 -0
  479. package/dist/index314.js +16 -0
  480. package/dist/index314.js.map +1 -0
  481. package/dist/index315.js +8 -0
  482. package/dist/index315.js.map +1 -0
  483. package/dist/index316.js +6 -0
  484. package/dist/index316.js.map +1 -0
  485. package/dist/index317.js +27 -0
  486. package/dist/index317.js.map +1 -0
  487. package/dist/index318.js +116 -0
  488. package/dist/index318.js.map +1 -0
  489. package/dist/index319.js +19 -0
  490. package/dist/index319.js.map +1 -0
  491. package/dist/index32.js +44 -0
  492. package/dist/index32.js.map +1 -0
  493. package/dist/index320.js +528 -0
  494. package/dist/index320.js.map +1 -0
  495. package/dist/index321.js +131 -0
  496. package/dist/index321.js.map +1 -0
  497. package/dist/index322.js +137 -0
  498. package/dist/index322.js.map +1 -0
  499. package/dist/index323.js +24 -0
  500. package/dist/index323.js.map +1 -0
  501. package/dist/index324.js +9 -0
  502. package/dist/index324.js.map +1 -0
  503. package/dist/index325.js +9 -0
  504. package/dist/index325.js.map +1 -0
  505. package/dist/index326.js +7 -0
  506. package/dist/index326.js.map +1 -0
  507. package/dist/index327.js +19 -0
  508. package/dist/index327.js.map +1 -0
  509. package/dist/index328.js +12 -0
  510. package/dist/index328.js.map +1 -0
  511. package/dist/index329.js +9 -0
  512. package/dist/index329.js.map +1 -0
  513. package/dist/index33.js +32 -0
  514. package/dist/index33.js.map +1 -0
  515. package/dist/index330.js +8 -0
  516. package/dist/index330.js.map +1 -0
  517. package/dist/index331.js +549 -0
  518. package/dist/index331.js.map +1 -0
  519. package/dist/index332.js +50 -0
  520. package/dist/index332.js.map +1 -0
  521. package/dist/index333.js +21 -0
  522. package/dist/index333.js.map +1 -0
  523. package/dist/index334.js +10 -0
  524. package/dist/index334.js.map +1 -0
  525. package/dist/index335.js +12 -0
  526. package/dist/index335.js.map +1 -0
  527. package/dist/index336.js +11 -0
  528. package/dist/index336.js.map +1 -0
  529. package/dist/index337.js +12 -0
  530. package/dist/index337.js.map +1 -0
  531. package/dist/index338.js +16 -0
  532. package/dist/index338.js.map +1 -0
  533. package/dist/index339.js +13 -0
  534. package/dist/index339.js.map +1 -0
  535. package/dist/index34.js +49 -0
  536. package/dist/index34.js.map +1 -0
  537. package/dist/index340.js +17 -0
  538. package/dist/index340.js.map +1 -0
  539. package/dist/index341.js +72 -0
  540. package/dist/index341.js.map +1 -0
  541. package/dist/index342.js +12 -0
  542. package/dist/index342.js.map +1 -0
  543. package/dist/index343.js +17 -0
  544. package/dist/index343.js.map +1 -0
  545. package/dist/index344.js +69 -0
  546. package/dist/index344.js.map +1 -0
  547. package/dist/index345.js +68 -0
  548. package/dist/index345.js.map +1 -0
  549. package/dist/index346.js +8 -0
  550. package/dist/index346.js.map +1 -0
  551. package/dist/index347.js +59 -0
  552. package/dist/index347.js.map +1 -0
  553. package/dist/index348.js +71 -0
  554. package/dist/index348.js.map +1 -0
  555. package/dist/index349.js +34 -0
  556. package/dist/index349.js.map +1 -0
  557. package/dist/index35.js +35 -0
  558. package/dist/index35.js.map +1 -0
  559. package/dist/index350.js +12 -0
  560. package/dist/index350.js.map +1 -0
  561. package/dist/index351.js +156 -0
  562. package/dist/index351.js.map +1 -0
  563. package/dist/index352.js +111 -0
  564. package/dist/index352.js.map +1 -0
  565. package/dist/index353.js +7 -0
  566. package/dist/index353.js.map +1 -0
  567. package/dist/index354.js +26 -0
  568. package/dist/index354.js.map +1 -0
  569. package/dist/index355.js +19 -0
  570. package/dist/index355.js.map +1 -0
  571. package/dist/index356.js +32 -0
  572. package/dist/index356.js.map +1 -0
  573. package/dist/index357.js +16 -0
  574. package/dist/index357.js.map +1 -0
  575. package/dist/index358.js +10 -0
  576. package/dist/index358.js.map +1 -0
  577. package/dist/index359.js +26 -0
  578. package/dist/index359.js.map +1 -0
  579. package/dist/index36.js +31 -0
  580. package/dist/index36.js.map +1 -0
  581. package/dist/index360.js +16 -0
  582. package/dist/index360.js.map +1 -0
  583. package/dist/index361.js +31 -0
  584. package/dist/index361.js.map +1 -0
  585. package/dist/index362.js +8 -0
  586. package/dist/index362.js.map +1 -0
  587. package/dist/index37.js +26 -0
  588. package/dist/index37.js.map +1 -0
  589. package/dist/index38.js +132 -0
  590. package/dist/index38.js.map +1 -0
  591. package/dist/index39.js +235 -0
  592. package/dist/index39.js.map +1 -0
  593. package/dist/index4.js +27 -0
  594. package/dist/index4.js.map +1 -0
  595. package/dist/index40.js +54 -0
  596. package/dist/index40.js.map +1 -0
  597. package/dist/index41.js +2644 -0
  598. package/dist/index41.js.map +1 -0
  599. package/dist/index42.js +397 -0
  600. package/dist/index42.js.map +1 -0
  601. package/dist/index43.js +236 -0
  602. package/dist/index43.js.map +1 -0
  603. package/dist/index44.js +25 -0
  604. package/dist/index44.js.map +1 -0
  605. package/dist/index45.js +145 -0
  606. package/dist/index45.js.map +1 -0
  607. package/dist/index46.js +190 -0
  608. package/dist/index46.js.map +1 -0
  609. package/dist/index47.js +80 -0
  610. package/dist/index47.js.map +1 -0
  611. package/dist/index48.js +94 -0
  612. package/dist/index48.js.map +1 -0
  613. package/dist/index49.js +9 -0
  614. package/dist/index49.js.map +1 -0
  615. package/dist/index5.js +48 -0
  616. package/dist/index5.js.map +1 -0
  617. package/dist/index50.js +847 -0
  618. package/dist/index50.js.map +1 -0
  619. package/dist/index51.js +69 -0
  620. package/dist/index51.js.map +1 -0
  621. package/dist/index52.js +11 -0
  622. package/dist/index52.js.map +1 -0
  623. package/dist/index53.js +5 -0
  624. package/dist/index53.js.map +1 -0
  625. package/dist/index54.js +27 -0
  626. package/dist/index54.js.map +1 -0
  627. package/dist/index55.js +237 -0
  628. package/dist/index55.js.map +1 -0
  629. package/dist/index56.js +208 -0
  630. package/dist/index56.js.map +1 -0
  631. package/dist/index57.js +7 -0
  632. package/dist/index57.js.map +1 -0
  633. package/dist/index58.js +10 -0
  634. package/dist/index58.js.map +1 -0
  635. package/dist/index59.js +51 -0
  636. package/dist/index59.js.map +1 -0
  637. package/dist/index6.js +33 -0
  638. package/dist/index6.js.map +1 -0
  639. package/dist/index60.js +30 -0
  640. package/dist/index60.js.map +1 -0
  641. package/dist/index61.js +54 -0
  642. package/dist/index61.js.map +1 -0
  643. package/dist/index62.js +11 -0
  644. package/dist/index62.js.map +1 -0
  645. package/dist/index63.js +128 -0
  646. package/dist/index63.js.map +1 -0
  647. package/dist/index64.js +18 -0
  648. package/dist/index64.js.map +1 -0
  649. package/dist/index65.js +137 -0
  650. package/dist/index65.js.map +1 -0
  651. package/dist/index66.js +14 -0
  652. package/dist/index66.js.map +1 -0
  653. package/dist/index67.js +220 -0
  654. package/dist/index67.js.map +1 -0
  655. package/dist/index68.js +16 -0
  656. package/dist/index68.js.map +1 -0
  657. package/dist/index69.js +37 -0
  658. package/dist/index69.js.map +1 -0
  659. package/dist/index7.js +36 -0
  660. package/dist/index7.js.map +1 -0
  661. package/dist/index70.js +50 -0
  662. package/dist/index70.js.map +1 -0
  663. package/dist/index71.js +11 -0
  664. package/dist/index71.js.map +1 -0
  665. package/dist/index72.js +53 -0
  666. package/dist/index72.js.map +1 -0
  667. package/dist/index73.js +7 -0
  668. package/dist/index73.js.map +1 -0
  669. package/dist/index74.js +9 -0
  670. package/dist/index74.js.map +1 -0
  671. package/dist/index75.js +31 -0
  672. package/dist/index75.js.map +1 -0
  673. package/dist/index76.js +53 -0
  674. package/dist/index76.js.map +1 -0
  675. package/dist/index77.js +12 -0
  676. package/dist/index77.js.map +1 -0
  677. package/dist/index78.js +57 -0
  678. package/dist/index78.js.map +1 -0
  679. package/dist/index79.js +9 -0
  680. package/dist/index79.js.map +1 -0
  681. package/dist/index8.js +230 -0
  682. package/dist/index8.js.map +1 -0
  683. package/dist/index80.js +11 -0
  684. package/dist/index80.js.map +1 -0
  685. package/dist/index81.js +9 -0
  686. package/dist/index81.js.map +1 -0
  687. package/dist/index82.js +5 -0
  688. package/dist/index82.js.map +1 -0
  689. package/dist/index83.js +5 -0
  690. package/dist/index83.js.map +1 -0
  691. package/dist/index84.js +55 -0
  692. package/dist/index84.js.map +1 -0
  693. package/dist/index85.js +8 -0
  694. package/dist/index85.js.map +1 -0
  695. package/dist/index86.js +8 -0
  696. package/dist/index86.js.map +1 -0
  697. package/dist/index87.js +19 -0
  698. package/dist/index87.js.map +1 -0
  699. package/dist/index88.js +9 -0
  700. package/dist/index88.js.map +1 -0
  701. package/dist/index89.js +11 -0
  702. package/dist/index89.js.map +1 -0
  703. package/dist/index9.js +27 -0
  704. package/dist/index9.js.map +1 -0
  705. package/dist/index90.js +20 -0
  706. package/dist/index90.js.map +1 -0
  707. package/dist/index91.js +8 -0
  708. package/dist/index91.js.map +1 -0
  709. package/dist/index92.js +8 -0
  710. package/dist/index92.js.map +1 -0
  711. package/dist/index93.js +9 -0
  712. package/dist/index93.js.map +1 -0
  713. package/dist/index94.js +9 -0
  714. package/dist/index94.js.map +1 -0
  715. package/dist/index95.js +8 -0
  716. package/dist/index95.js.map +1 -0
  717. package/dist/index96.js +8 -0
  718. package/dist/index96.js.map +1 -0
  719. package/dist/index97.js +10 -0
  720. package/dist/index97.js.map +1 -0
  721. package/dist/index98.js +28 -0
  722. package/dist/index98.js.map +1 -0
  723. package/dist/index99.js +10 -0
  724. package/dist/index99.js.map +1 -0
  725. package/package.json +4 -1
@@ -0,0 +1,17 @@
1
+ import { getTimezoneOffsetInMilliseconds as r } from "./index327.js";
2
+ import { normalizeDates as c } from "./index328.js";
3
+ import { millisecondsInDay as D } from "./index326.js";
4
+ import { startOfDay as a } from "./index244.js";
5
+ function O(o, n, i) {
6
+ const [s, m] = c(
7
+ i?.in,
8
+ o,
9
+ n
10
+ ), t = a(s), e = a(m), f = +t - r(t), l = +e - r(e);
11
+ return Math.round((f - l) / D);
12
+ }
13
+ export {
14
+ O as default,
15
+ O as differenceInCalendarDays
16
+ };
17
+ //# sourceMappingURL=index222.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index222.js","sources":["../../../node_modules/date-fns/differenceInCalendarDays.js"],"sourcesContent":["import { getTimezoneOffsetInMilliseconds } from \"./_lib/getTimezoneOffsetInMilliseconds.js\";\nimport { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { millisecondsInDay } from \"./constants.js\";\nimport { startOfDay } from \"./startOfDay.js\";\n\n/**\n * The {@link differenceInCalendarDays} function options.\n */\n\n/**\n * @name differenceInCalendarDays\n * @category Day Helpers\n * @summary Get the number of calendar days between the given dates.\n *\n * @description\n * Get the number of calendar days between the given dates. This means that the times are removed\n * from the dates and then the difference in days is calculated.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n * @param options - The options object\n *\n * @returns The number of calendar days\n *\n * @example\n * // How many calendar days are between\n * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?\n * const result = differenceInCalendarDays(\n * new Date(2012, 6, 2, 0, 0),\n * new Date(2011, 6, 2, 23, 0)\n * )\n * //=> 366\n * // How many calendar days are between\n * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?\n * const result = differenceInCalendarDays(\n * new Date(2011, 6, 3, 0, 1),\n * new Date(2011, 6, 2, 23, 59)\n * )\n * //=> 1\n */\nexport function differenceInCalendarDays(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n\n const laterStartOfDay = startOfDay(laterDate_);\n const earlierStartOfDay = startOfDay(earlierDate_);\n\n const laterTimestamp =\n +laterStartOfDay - getTimezoneOffsetInMilliseconds(laterStartOfDay);\n const earlierTimestamp =\n +earlierStartOfDay - getTimezoneOffsetInMilliseconds(earlierStartOfDay);\n\n // Round the number of days to the nearest integer because the number of\n // milliseconds in a day is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInDay);\n}\n\n// Fallback for modularized imports:\nexport default differenceInCalendarDays;\n"],"names":["differenceInCalendarDays","laterDate","earlierDate","options","laterDate_","earlierDate_","normalizeDates","laterStartOfDay","startOfDay","earlierStartOfDay","laterTimestamp","getTimezoneOffsetInMilliseconds","earlierTimestamp","millisecondsInDay"],"mappings":";;;;AAwCO,SAASA,EAAyBC,GAAWC,GAAaC,GAAS;AACxE,QAAM,CAACC,GAAYC,CAAY,IAAIC;AAAA,IACjCH,GAAS;AAAA,IACTF;AAAA,IACAC;AAAA,EACJ,GAEQK,IAAkBC,EAAWJ,CAAU,GACvCK,IAAoBD,EAAWH,CAAY,GAE3CK,IACJ,CAACH,IAAkBI,EAAgCJ,CAAe,GAC9DK,IACJ,CAACH,IAAoBE,EAAgCF,CAAiB;AAKxE,SAAO,KAAK,OAAOC,IAAiBE,KAAoBC,CAAiB;AAC3E;","x_google_ignoreList":[0]}
@@ -0,0 +1,14 @@
1
+ import { normalizeDates as l } from "./index328.js";
2
+ function s(n, r, a) {
3
+ const [e, t] = l(
4
+ a?.in,
5
+ n,
6
+ r
7
+ ), o = e.getFullYear() - t.getFullYear(), f = e.getMonth() - t.getMonth();
8
+ return o * 12 + f;
9
+ }
10
+ export {
11
+ s as default,
12
+ s as differenceInCalendarMonths
13
+ };
14
+ //# sourceMappingURL=index223.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index223.js","sources":["../../../node_modules/date-fns/differenceInCalendarMonths.js"],"sourcesContent":["import { normalizeDates } from \"./_lib/normalizeDates.js\";\n\n/**\n * The {@link differenceInCalendarMonths} function options.\n */\n\n/**\n * @name differenceInCalendarMonths\n * @category Month Helpers\n * @summary Get the number of calendar months between the given dates.\n *\n * @description\n * Get the number of calendar months between the given dates.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n * @param options - An object with options\n *\n * @returns The number of calendar months\n *\n * @example\n * // How many calendar months are between 31 January 2014 and 1 September 2014?\n * const result = differenceInCalendarMonths(\n * new Date(2014, 8, 1),\n * new Date(2014, 0, 31)\n * )\n * //=> 8\n */\nexport function differenceInCalendarMonths(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n\n const yearsDiff = laterDate_.getFullYear() - earlierDate_.getFullYear();\n const monthsDiff = laterDate_.getMonth() - earlierDate_.getMonth();\n\n return yearsDiff * 12 + monthsDiff;\n}\n\n// Fallback for modularized imports:\nexport default differenceInCalendarMonths;\n"],"names":["differenceInCalendarMonths","laterDate","earlierDate","options","laterDate_","earlierDate_","normalizeDates","yearsDiff","monthsDiff"],"mappings":";AA4BO,SAASA,EAA2BC,GAAWC,GAAaC,GAAS;AAC1E,QAAM,CAACC,GAAYC,CAAY,IAAIC;AAAA,IACjCH,GAAS;AAAA,IACTF;AAAA,IACAC;AAAA,EACJ,GAEQK,IAAYH,EAAW,YAAW,IAAKC,EAAa,YAAW,GAC/DG,IAAaJ,EAAW,SAAQ,IAAKC,EAAa,SAAQ;AAEhE,SAAOE,IAAY,KAAKC;AAC1B;","x_google_ignoreList":[0]}
@@ -0,0 +1,18 @@
1
+ import { normalizeInterval as l } from "./index329.js";
2
+ import { constructFrom as m } from "./index324.js";
3
+ function u(s, a) {
4
+ const { start: e, end: r } = l(a?.in, s);
5
+ let n = +e > +r;
6
+ const c = n ? +e : +r, t = n ? r : e;
7
+ t.setHours(0, 0, 0, 0), t.setDate(1);
8
+ let i = 1;
9
+ const o = [];
10
+ for (; +t <= c; )
11
+ o.push(m(e, t)), t.setMonth(t.getMonth() + i);
12
+ return n ? o.reverse() : o;
13
+ }
14
+ export {
15
+ u as default,
16
+ u as eachMonthOfInterval
17
+ };
18
+ //# sourceMappingURL=index224.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index224.js","sources":["../../../node_modules/date-fns/eachMonthOfInterval.js"],"sourcesContent":["import { normalizeInterval } from \"./_lib/normalizeInterval.js\";\nimport { constructFrom } from \"./constructFrom.js\";\n\n/**\n * The {@link eachMonthOfInterval} function options.\n */\n\n/**\n * The {@link eachMonthOfInterval} function result type. It resolves the proper data type.\n */\n\n/**\n * @name eachMonthOfInterval\n * @category Interval Helpers\n * @summary Return the array of months within the specified time interval.\n *\n * @description\n * Return the array of months within the specified time interval.\n *\n * @typeParam IntervalType - Interval type.\n * @typeParam Options - Options type.\n *\n * @param interval - The interval.\n * @param options - An object with options.\n *\n * @returns The array with starts of months from the month of the interval start to the month of the interval end\n *\n * @example\n * // Each month between 6 February 2014 and 10 August 2014:\n * const result = eachMonthOfInterval({\n * start: new Date(2014, 1, 6),\n * end: new Date(2014, 7, 10)\n * })\n * //=> [\n * // Sat Feb 01 2014 00:00:00,\n * // Sat Mar 01 2014 00:00:00,\n * // Tue Apr 01 2014 00:00:00,\n * // Thu May 01 2014 00:00:00,\n * // Sun Jun 01 2014 00:00:00,\n * // Tue Jul 01 2014 00:00:00,\n * // Fri Aug 01 2014 00:00:00\n * // ]\n */\nexport function eachMonthOfInterval(interval, options) {\n const { start, end } = normalizeInterval(options?.in, interval);\n\n let reversed = +start > +end;\n const endTime = reversed ? +start : +end;\n const date = reversed ? end : start;\n date.setHours(0, 0, 0, 0);\n date.setDate(1);\n\n let step = options?.step ?? 1;\n if (!step) return [];\n if (step < 0) {\n step = -step;\n reversed = !reversed;\n }\n\n const dates = [];\n\n while (+date <= endTime) {\n dates.push(constructFrom(start, date));\n date.setMonth(date.getMonth() + step);\n }\n\n return reversed ? dates.reverse() : dates;\n}\n\n// Fallback for modularized imports:\nexport default eachMonthOfInterval;\n"],"names":["eachMonthOfInterval","interval","options","start","end","normalizeInterval","reversed","endTime","date","step","dates","constructFrom"],"mappings":";;AA2CO,SAASA,EAAoBC,GAAUC,GAAS;AACrD,QAAM,EAAE,OAAAC,GAAO,KAAAC,EAAG,IAAKC,EAAkBH,GAAS,IAAID,CAAQ;AAE9D,MAAIK,IAAW,CAACH,IAAQ,CAACC;AACzB,QAAMG,IAAUD,IAAW,CAACH,IAAQ,CAACC,GAC/BI,IAAOF,IAAWF,IAAMD;AAC9B,EAAAK,EAAK,SAAS,GAAG,GAAG,GAAG,CAAC,GACxBA,EAAK,QAAQ,CAAC;AAEd,MAAIC,IAAwB;AAO5B,QAAMC,IAAQ,CAAA;AAEd,SAAO,CAACF,KAAQD;AACd,IAAAG,EAAM,KAAKC,EAAcR,GAAOK,CAAI,CAAC,GACrCA,EAAK,SAASA,EAAK,SAAQ,IAAKC,CAAI;AAGtC,SAAOH,IAAWI,EAAM,QAAO,IAAKA;AACtC;","x_google_ignoreList":[0]}
@@ -0,0 +1,18 @@
1
+ import { normalizeInterval as u } from "./index329.js";
2
+ import { constructFrom as i } from "./index324.js";
3
+ function f(o, a) {
4
+ const { start: t, end: r } = u(a?.in, o);
5
+ let s = +t > +r;
6
+ const l = s ? +t : +r, e = s ? r : t;
7
+ e.setHours(0, 0, 0, 0), e.setMonth(0, 1);
8
+ let c = 1;
9
+ const n = [];
10
+ for (; +e <= l; )
11
+ n.push(i(t, e)), e.setFullYear(e.getFullYear() + c);
12
+ return s ? n.reverse() : n;
13
+ }
14
+ export {
15
+ f as default,
16
+ f as eachYearOfInterval
17
+ };
18
+ //# sourceMappingURL=index225.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index225.js","sources":["../../../node_modules/date-fns/eachYearOfInterval.js"],"sourcesContent":["import { normalizeInterval } from \"./_lib/normalizeInterval.js\";\nimport { constructFrom } from \"./constructFrom.js\";\n\n/**\n * The {@link eachYearOfInterval} function options.\n */\n\n/**\n * The {@link eachYearOfInterval} function result type. It resolves the proper data type.\n * It uses the first argument date object type, starting from the date argument,\n * then the start interval date, and finally the end interval date. If\n * a context function is passed, it uses the context function return type.\n */\n\n/**\n * @name eachYearOfInterval\n * @category Interval Helpers\n * @summary Return the array of yearly timestamps within the specified time interval.\n *\n * @description\n * Return the array of yearly timestamps within the specified time interval.\n *\n * @typeParam IntervalType - Interval type.\n * @typeParam Options - Options type.\n *\n * @param interval - The interval.\n * @param options - An object with options.\n *\n * @returns The array with starts of yearly timestamps from the month of the interval start to the month of the interval end\n *\n * @example\n * // Each year between 6 February 2014 and 10 August 2017:\n * const result = eachYearOfInterval({\n * start: new Date(2014, 1, 6),\n * end: new Date(2017, 7, 10)\n * })\n * //=> [\n * // Wed Jan 01 2014 00:00:00,\n * // Thu Jan 01 2015 00:00:00,\n * // Fri Jan 01 2016 00:00:00,\n * // Sun Jan 01 2017 00:00:00\n * // ]\n */\nexport function eachYearOfInterval(interval, options) {\n const { start, end } = normalizeInterval(options?.in, interval);\n\n let reversed = +start > +end;\n const endTime = reversed ? +start : +end;\n const date = reversed ? end : start;\n date.setHours(0, 0, 0, 0);\n date.setMonth(0, 1);\n\n let step = options?.step ?? 1;\n if (!step) return [];\n if (step < 0) {\n step = -step;\n reversed = !reversed;\n }\n\n const dates = [];\n\n while (+date <= endTime) {\n dates.push(constructFrom(start, date));\n date.setFullYear(date.getFullYear() + step);\n }\n\n return reversed ? dates.reverse() : dates;\n}\n\n// Fallback for modularized imports:\nexport default eachYearOfInterval;\n"],"names":["eachYearOfInterval","interval","options","start","end","normalizeInterval","reversed","endTime","date","step","dates","constructFrom"],"mappings":";;AA2CO,SAASA,EAAmBC,GAAUC,GAAS;AACpD,QAAM,EAAE,OAAAC,GAAO,KAAAC,EAAG,IAAKC,EAAkBH,GAAS,IAAID,CAAQ;AAE9D,MAAIK,IAAW,CAACH,IAAQ,CAACC;AACzB,QAAMG,IAAUD,IAAW,CAACH,IAAQ,CAACC,GAC/BI,IAAOF,IAAWF,IAAMD;AAC9B,EAAAK,EAAK,SAAS,GAAG,GAAG,GAAG,CAAC,GACxBA,EAAK,SAAS,GAAG,CAAC;AAElB,MAAIC,IAAwB;AAO5B,QAAMC,IAAQ,CAAA;AAEd,SAAO,CAACF,KAAQD;AACd,IAAAG,EAAM,KAAKC,EAAcR,GAAOK,CAAI,CAAC,GACrCA,EAAK,YAAYA,EAAK,YAAW,IAAKC,CAAI;AAG5C,SAAOH,IAAWI,EAAM,QAAO,IAAKA;AACtC;","x_google_ignoreList":[0]}
@@ -0,0 +1,9 @@
1
+ import { endOfWeek as n } from "./index228.js";
2
+ function f(e, t) {
3
+ return n(e, { ...t, weekStartsOn: 1 });
4
+ }
5
+ export {
6
+ f as default,
7
+ f as endOfISOWeek
8
+ };
9
+ //# sourceMappingURL=index226.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index226.js","sources":["../../../node_modules/date-fns/endOfISOWeek.js"],"sourcesContent":["import { endOfWeek } from \"./endOfWeek.js\";\n\n/**\n * The {@link endOfISOWeek} function options.\n */\n\n/**\n * @name endOfISOWeek\n * @category ISO Week Helpers\n * @summary Return the end of an ISO week for the given date.\n *\n * @description\n * Return the end of an ISO week for the given date.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The end of an ISO week\n *\n * @example\n * // The end of an ISO week for 2 September 2014 11:55:00:\n * const result = endOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sun Sep 07 2014 23:59:59.999\n */\nexport function endOfISOWeek(date, options) {\n return endOfWeek(date, { ...options, weekStartsOn: 1 });\n}\n\n// Fallback for modularized imports:\nexport default endOfISOWeek;\n"],"names":["endOfISOWeek","date","options","endOfWeek"],"mappings":";AA8BO,SAASA,EAAaC,GAAMC,GAAS;AAC1C,SAAOC,EAAUF,GAAM,EAAE,GAAGC,GAAS,cAAc,GAAG;AACxD;","x_google_ignoreList":[0]}
@@ -0,0 +1,10 @@
1
+ import { toDate as r } from "./index325.js";
2
+ function s(e, o) {
3
+ const t = r(e, o?.in), n = t.getMonth();
4
+ return t.setFullYear(t.getFullYear(), n + 1, 0), t.setHours(23, 59, 59, 999), t;
5
+ }
6
+ export {
7
+ s as default,
8
+ s as endOfMonth
9
+ };
10
+ //# sourceMappingURL=index227.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index227.js","sources":["../../../node_modules/date-fns/endOfMonth.js"],"sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link endOfMonth} function options.\n */\n\n/**\n * @name endOfMonth\n * @category Month Helpers\n * @summary Return the end of a month for the given date.\n *\n * @description\n * Return the end of a month for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The end of a month\n *\n * @example\n * // The end of a month for 2 September 2014 11:55:00:\n * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 30 2014 23:59:59.999\n */\nexport function endOfMonth(date, options) {\n const _date = toDate(date, options?.in);\n const month = _date.getMonth();\n _date.setFullYear(_date.getFullYear(), month + 1, 0);\n _date.setHours(23, 59, 59, 999);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default endOfMonth;\n"],"names":["endOfMonth","date","options","_date","toDate","month"],"mappings":";AA4BO,SAASA,EAAWC,GAAMC,GAAS;AACxC,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE,GAChCG,IAAQF,EAAM,SAAQ;AAC5B,SAAAA,EAAM,YAAYA,EAAM,YAAW,GAAIE,IAAQ,GAAG,CAAC,GACnDF,EAAM,SAAS,IAAI,IAAI,IAAI,GAAG,GACvBA;AACT;","x_google_ignoreList":[0]}
@@ -0,0 +1,11 @@
1
+ import { getDefaultOptions as f } from "./index330.js";
2
+ import { toDate as c } from "./index325.js";
3
+ function l(s, e) {
4
+ const a = f(), n = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, t = c(s, e?.in), o = t.getDay(), r = (o < n ? -7 : 0) + 6 - (o - n);
5
+ return t.setDate(t.getDate() + r), t.setHours(23, 59, 59, 999), t;
6
+ }
7
+ export {
8
+ l as default,
9
+ l as endOfWeek
10
+ };
11
+ //# sourceMappingURL=index228.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index228.js","sources":["../../../node_modules/date-fns/endOfWeek.js"],"sourcesContent":["import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link endOfWeek} function options.\n */\n\n/**\n * @name endOfWeek\n * @category Week Helpers\n * @summary Return the end of a week for the given date.\n *\n * @description\n * Return the end of a week for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The end of a week\n *\n * @example\n * // The end of a week for 2 September 2014 11:55:00:\n * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sat Sep 06 2014 23:59:59.999\n *\n * @example\n * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00:\n * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })\n * //=> Sun Sep 07 2014 23:59:59.999\n */\nexport function endOfWeek(date, options) {\n const defaultOptions = getDefaultOptions();\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const _date = toDate(date, options?.in);\n const day = _date.getDay();\n const diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);\n\n _date.setDate(_date.getDate() + diff);\n _date.setHours(23, 59, 59, 999);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default endOfWeek;\n"],"names":["endOfWeek","date","options","defaultOptions","getDefaultOptions","weekStartsOn","_date","toDate","day","diff"],"mappings":";;AAkCO,SAASA,EAAUC,GAAMC,GAAS;AACvC,QAAMC,IAAiBC,EAAiB,GAClCC,IACJH,GAAS,gBACTA,GAAS,QAAQ,SAAS,gBAC1BC,EAAe,gBACfA,EAAe,QAAQ,SAAS,gBAChC,GAEIG,IAAQC,EAAON,GAAMC,GAAS,EAAE,GAChCM,IAAMF,EAAM,OAAM,GAClBG,KAAQD,IAAMH,IAAe,KAAK,KAAK,KAAKG,IAAMH;AAExD,SAAAC,EAAM,QAAQA,EAAM,QAAO,IAAKG,CAAI,GACpCH,EAAM,SAAS,IAAI,IAAI,IAAI,GAAG,GACvBA;AACT;","x_google_ignoreList":[0]}
@@ -0,0 +1,10 @@
1
+ import { toDate as o } from "./index325.js";
2
+ function s(t, r) {
3
+ const e = o(t, r?.in), a = e.getFullYear();
4
+ return e.setFullYear(a + 1, 0, 0), e.setHours(23, 59, 59, 999), e;
5
+ }
6
+ export {
7
+ s as default,
8
+ s as endOfYear
9
+ };
10
+ //# sourceMappingURL=index229.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index229.js","sources":["../../../node_modules/date-fns/endOfYear.js"],"sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link endOfYear} function options.\n */\n\n/**\n * @name endOfYear\n * @category Year Helpers\n * @summary Return the end of a year for the given date.\n *\n * @description\n * Return the end of a year for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - The options\n *\n * @returns The end of a year\n *\n * @example\n * // The end of a year for 2 September 2014 11:55:00:\n * const result = endOfYear(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Wed Dec 31 2014 23:59:59.999\n */\nexport function endOfYear(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n _date.setFullYear(year + 1, 0, 0);\n _date.setHours(23, 59, 59, 999);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default endOfYear;\n"],"names":["endOfYear","date","options","_date","toDate","year"],"mappings":";AA4BO,SAASA,EAAUC,GAAMC,GAAS;AACvC,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE,GAChCG,IAAOF,EAAM,YAAW;AAC9B,SAAAA,EAAM,YAAYE,IAAO,GAAG,GAAG,CAAC,GAChCF,EAAM,SAAS,IAAI,IAAI,IAAI,GAAG,GACvBA;AACT;","x_google_ignoreList":[0]}
@@ -0,0 +1,272 @@
1
+ import { j as e } from "./index28.js";
2
+ import { useContext as H, createContext as Q, useState as p, useMemo as y, useCallback as W, useEffect as L } from "react";
3
+ import * as b from "@radix-ui/react-dialog";
4
+ import { Root as Z, Trigger as _, Portal as ee, Content as te, Item as E } from "./index56.js";
5
+ import { X as ne, Loader2 as se, MoreVertical as re } from "lucide-react";
6
+ import { cn as w } from "./index2.js";
7
+ const G = (t) => {
8
+ const s = Date.parse(t);
9
+ return Number.isFinite(s) ? s : 0;
10
+ }, oe = (t) => {
11
+ const s = new Date(G(t));
12
+ if (!Number.isFinite(s.getTime())) return "unknown";
13
+ const m = s.getFullYear(), o = String(s.getMonth() + 1).padStart(2, "0"), a = String(s.getDate()).padStart(2, "0");
14
+ return `${m}-${o}-${a}`;
15
+ }, ae = (t) => {
16
+ if (t === "unknown") return "Unknown date";
17
+ const [s, m, o] = t.split("-"), a = Number(s), x = Number(m), r = Number(o);
18
+ if (!Number.isFinite(a) || !Number.isFinite(x) || !Number.isFinite(r)) return "Unknown date";
19
+ const j = new Date(a, x - 1, r);
20
+ if (!Number.isFinite(j.getTime())) return "Unknown date";
21
+ const k = (/* @__PURE__ */ new Date()).getFullYear() !== a;
22
+ return j.toLocaleDateString(void 0, k ? { weekday: "short", month: "short", day: "numeric", year: "numeric" } : { weekday: "short", month: "short", day: "numeric" });
23
+ }, Y = (t) => {
24
+ const s = [];
25
+ let m = null;
26
+ for (const o of t) {
27
+ const a = oe(o.createdAt);
28
+ a !== m && (m = a, s.push({ key: a, label: ae(a), items: [] })), s[s.length - 1].items.push(o);
29
+ }
30
+ return s;
31
+ }, ie = Q(null);
32
+ function xe({
33
+ open: t,
34
+ onOpenChange: s,
35
+ className: m,
36
+ limit: o = 50,
37
+ defaultUnreadOnly: a = !1,
38
+ realtimeContext: x
39
+ }) {
40
+ const r = H(x ?? ie), [j, v] = p([]), [k, C] = p(0), [J, A] = p(0), [K, U] = p(!1), [V, S] = p(null), [f, X] = p(a), M = r?.notifications ?? j, D = r?.unreadCount ?? k, O = r?.unseenCount ?? J, q = r?.loading ?? K, R = r?.error ? r.error instanceof Error ? r.error.message : String(r.error) : V, g = y(() => M.slice(0, o), [o, M]), T = y(() => g.filter((n) => !n.readAt), [g]), F = y(() => g.filter((n) => !!n.readAt), [g]), I = y(() => Y(T), [T]), z = y(() => Y(F), [F]), N = W(async ({ unreadOnly: n, markSeen: d }) => {
41
+ U(!0), S(null);
42
+ try {
43
+ const h = await fetch("/api/rb/notifications", {
44
+ method: "POST",
45
+ headers: { "Content-Type": "application/json" },
46
+ credentials: "include",
47
+ body: JSON.stringify({ limit: o, unreadOnly: n, markSeen: d })
48
+ }), i = await h.json().catch(() => null);
49
+ if (!h.ok || !i?.ok) {
50
+ S(i?.error || "Unable to load notifications.");
51
+ return;
52
+ }
53
+ const u = Array.isArray(i.notifications) ? i.notifications : [];
54
+ v(u), C(Number.isFinite(i.unreadCount) ? Math.max(0, Math.floor(i.unreadCount ?? 0)) : 0), A(Number.isFinite(i.unseenCount) ? Math.max(0, Math.floor(i.unseenCount ?? 0)) : 0);
55
+ } catch {
56
+ S("Unable to load notifications.");
57
+ } finally {
58
+ U(!1);
59
+ }
60
+ }, [o]);
61
+ L(() => {
62
+ if (t) {
63
+ if (r) {
64
+ (async () => {
65
+ try {
66
+ await fetch("/api/rb/notifications", {
67
+ method: "POST",
68
+ headers: { "Content-Type": "application/json" },
69
+ credentials: "include",
70
+ keepalive: !0,
71
+ body: JSON.stringify({ limit: 1, markSeen: !0 })
72
+ });
73
+ } catch {
74
+ return;
75
+ }
76
+ })();
77
+ return;
78
+ }
79
+ N({ unreadOnly: f, markSeen: !0 });
80
+ }
81
+ }, [t, r, N, f]), L(() => {
82
+ t && (r || N({ unreadOnly: f, markSeen: !1 }));
83
+ }, [t, r, N, f]);
84
+ const P = async (n) => {
85
+ try {
86
+ const d = await fetch(`/api/rb/notifications/${encodeURIComponent(n)}/read`, {
87
+ method: "POST",
88
+ headers: { "Content-Type": "application/json" },
89
+ credentials: "include",
90
+ keepalive: !0,
91
+ body: "{}"
92
+ }), h = await d.json().catch(() => null);
93
+ if (!d.ok || !h?.ok) return;
94
+ const i = (/* @__PURE__ */ new Date()).toISOString();
95
+ if (r) return;
96
+ v((u) => {
97
+ const c = u.find((l) => l.id === n);
98
+ return c && !c.readAt && C((l) => Math.max(0, l - 1)), c && !c.seenAt && A((l) => Math.max(0, l - 1)), u.map((l) => l.id === n && !l.readAt ? { ...l, readAt: i, ...l.seenAt ? {} : { seenAt: i } } : l);
99
+ });
100
+ } catch {
101
+ return;
102
+ }
103
+ }, $ = async (n) => {
104
+ try {
105
+ const d = await fetch(`/api/rb/notifications/${encodeURIComponent(n)}/archive`, {
106
+ method: "POST",
107
+ headers: { "Content-Type": "application/json" },
108
+ credentials: "include",
109
+ body: "{}"
110
+ }), h = await d.json().catch(() => null);
111
+ if (!d.ok || !h?.ok || r) return;
112
+ v((i) => {
113
+ const u = i.find((c) => c.id === n);
114
+ return u && !u.readAt && C((c) => Math.max(0, c - 1)), u && !u.seenAt && A((c) => Math.max(0, c - 1)), i.filter((c) => c.id !== n);
115
+ });
116
+ } catch {
117
+ return;
118
+ }
119
+ };
120
+ return /* @__PURE__ */ e.jsx(b.Root, { open: t, onOpenChange: s, children: /* @__PURE__ */ e.jsxs(b.Portal, { children: [
121
+ /* @__PURE__ */ e.jsx(b.Overlay, { className: "fixed inset-0 z-50 bg-black/50" }),
122
+ /* @__PURE__ */ e.jsxs(
123
+ b.Content,
124
+ {
125
+ className: w(
126
+ "fixed right-0 top-0 z-50 flex h-full w-full max-w-md flex-col border-l bg-background shadow-xl outline-none",
127
+ m
128
+ ),
129
+ children: [
130
+ /* @__PURE__ */ e.jsxs("header", { className: "flex items-center justify-between gap-2 border-b px-4 py-3", children: [
131
+ /* @__PURE__ */ e.jsxs("div", { className: "flex min-w-0 flex-col", children: [
132
+ /* @__PURE__ */ e.jsx(b.Title, { className: "text-sm font-semibold", children: "Notifications" }),
133
+ /* @__PURE__ */ e.jsx("span", { className: "text-xs text-muted-foreground", children: D > 0 ? `${D} unread` : O > 0 ? `${O} new` : "All caught up" })
134
+ ] }),
135
+ /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
136
+ /* @__PURE__ */ e.jsx(
137
+ "button",
138
+ {
139
+ type: "button",
140
+ onClick: () => X((n) => !n),
141
+ className: w(
142
+ "rounded-md border px-2 py-1 text-xs",
143
+ f ? "bg-accent text-foreground" : "bg-background text-muted-foreground hover:bg-accent"
144
+ ),
145
+ children: f ? "Unread" : "All"
146
+ }
147
+ ),
148
+ /* @__PURE__ */ e.jsx(b.Close, { asChild: !0, children: /* @__PURE__ */ e.jsx("button", { type: "button", className: "inline-flex h-8 w-8 items-center justify-center rounded-md hover:bg-accent", children: /* @__PURE__ */ e.jsx(ne, { className: "h-4 w-4" }) }) })
149
+ ] })
150
+ ] }),
151
+ /* @__PURE__ */ e.jsx("div", { className: "flex-1 overflow-y-auto px-4 pb-3", children: q ? /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-center py-10 text-muted-foreground", children: /* @__PURE__ */ e.jsx(se, { className: "h-4 w-4 animate-spin" }) }) : R ? /* @__PURE__ */ e.jsx("div", { className: "py-10 text-center text-sm text-muted-foreground", children: R }) : g.length === 0 ? /* @__PURE__ */ e.jsx("div", { className: "py-10 text-center text-sm text-muted-foreground", children: "No notifications." }) : /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4", children: [
152
+ /* @__PURE__ */ e.jsxs("div", { children: [
153
+ /* @__PURE__ */ e.jsx("div", { className: "sticky top-0 z-20 -mx-4 flex h-8 items-center border-b bg-background px-4 text-xs font-semibold text-muted-foreground", children: "Unread notifications" }),
154
+ I.length === 0 ? /* @__PURE__ */ e.jsx("div", { className: "py-6 text-center text-sm text-muted-foreground", children: "No unread notifications." }) : I.map((n) => /* @__PURE__ */ e.jsxs("div", { children: [
155
+ /* @__PURE__ */ e.jsx("div", { className: "sticky top-8 z-10 -mx-4 flex h-7 items-center bg-background px-4 text-[11px] font-semibold text-muted-foreground", children: n.label }),
156
+ /* @__PURE__ */ e.jsx("div", { className: "-mx-4 flex flex-col divide-y divide-border", children: n.items.map((d) => /* @__PURE__ */ e.jsx(
157
+ B,
158
+ {
159
+ notification: d,
160
+ onMarkRead: P,
161
+ onArchive: $
162
+ },
163
+ d.id
164
+ )) })
165
+ ] }, `unread:${n.key}`))
166
+ ] }),
167
+ f ? null : /* @__PURE__ */ e.jsxs("div", { children: [
168
+ /* @__PURE__ */ e.jsx("div", { className: "sticky top-0 z-20 -mx-4 flex h-8 items-center border-b bg-background px-4 text-xs font-semibold text-muted-foreground", children: "Previous notifications" }),
169
+ z.length === 0 ? /* @__PURE__ */ e.jsx("div", { className: "py-6 text-center text-sm text-muted-foreground", children: "No previous notifications." }) : z.map((n) => /* @__PURE__ */ e.jsxs("div", { children: [
170
+ /* @__PURE__ */ e.jsx("div", { className: "sticky top-8 z-10 -mx-4 flex h-7 items-center bg-background px-4 text-[11px] font-semibold text-muted-foreground", children: n.label }),
171
+ /* @__PURE__ */ e.jsx("div", { className: "-mx-4 flex flex-col divide-y divide-border", children: n.items.map((d) => /* @__PURE__ */ e.jsx(
172
+ B,
173
+ {
174
+ notification: d,
175
+ onMarkRead: P,
176
+ onArchive: $
177
+ },
178
+ d.id
179
+ )) })
180
+ ] }, `previous:${n.key}`))
181
+ ] })
182
+ ] }) })
183
+ ]
184
+ }
185
+ )
186
+ ] }) });
187
+ }
188
+ function B({
189
+ notification: t,
190
+ onMarkRead: s,
191
+ onArchive: m
192
+ }) {
193
+ const o = !t.readAt, a = (() => {
194
+ const x = new Date(G(t.createdAt));
195
+ return Number.isFinite(x.getTime()) ? x.toLocaleString() : "";
196
+ })();
197
+ return /* @__PURE__ */ e.jsxs(
198
+ "div",
199
+ {
200
+ className: w(
201
+ "group flex w-full gap-3 px-4 py-3 hover:bg-accent/40",
202
+ o ? "bg-primary/5" : "bg-background"
203
+ ),
204
+ children: [
205
+ /* @__PURE__ */ e.jsxs(
206
+ "button",
207
+ {
208
+ type: "button",
209
+ className: "min-w-0 flex-1 text-left",
210
+ onClick: () => {
211
+ o && s(t.id), t.url && (window.location.href = t.url);
212
+ },
213
+ children: [
214
+ /* @__PURE__ */ e.jsxs("div", { className: "min-w-0", children: [
215
+ /* @__PURE__ */ e.jsx("div", { className: "truncate text-sm font-semibold", children: t.title }),
216
+ t.body ? /* @__PURE__ */ e.jsx("div", { className: "mt-0.5 line-clamp-2 text-xs text-muted-foreground", children: t.body }) : null
217
+ ] }),
218
+ t.url ? /* @__PURE__ */ e.jsx("div", { className: "mt-2 truncate text-xs text-primary", children: t.url }) : null,
219
+ a ? /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-[11px] text-muted-foreground", children: a }) : null
220
+ ]
221
+ }
222
+ ),
223
+ /* @__PURE__ */ e.jsx("div", { className: "flex items-start", children: /* @__PURE__ */ e.jsxs(Z, { children: [
224
+ /* @__PURE__ */ e.jsx(_, { asChild: !0, children: /* @__PURE__ */ e.jsx(
225
+ "button",
226
+ {
227
+ type: "button",
228
+ className: "inline-flex h-8 w-8 items-center justify-center rounded-md hover:bg-accent",
229
+ "aria-label": "Notification options",
230
+ children: /* @__PURE__ */ e.jsx(re, { className: "h-4 w-4" })
231
+ }
232
+ ) }),
233
+ /* @__PURE__ */ e.jsx(ee, { children: /* @__PURE__ */ e.jsxs(
234
+ te,
235
+ {
236
+ align: "end",
237
+ sideOffset: 6,
238
+ className: w(
239
+ "z-50 min-w-[10rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
240
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
241
+ "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2"
242
+ ),
243
+ children: [
244
+ /* @__PURE__ */ e.jsx(
245
+ E,
246
+ {
247
+ className: "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
248
+ onSelect: () => m(t.id),
249
+ children: "Archive"
250
+ }
251
+ ),
252
+ /* @__PURE__ */ e.jsx(
253
+ E,
254
+ {
255
+ className: "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
256
+ disabled: !o,
257
+ onSelect: () => s(t.id),
258
+ children: "Mark as read"
259
+ }
260
+ )
261
+ ]
262
+ }
263
+ ) })
264
+ ] }) })
265
+ ]
266
+ }
267
+ );
268
+ }
269
+ export {
270
+ xe as NotificationsDrawer
271
+ };
272
+ //# sourceMappingURL=index23.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index23.js","sources":["../src/components/Notifications/NotificationsDrawer.tsx"],"sourcesContent":["import { createContext, useCallback, useContext, useEffect, useMemo, useState, type Context } from \"react\"\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\"\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\"\nimport { Loader2, MoreVertical, X } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport type { NotificationItem, NotificationsRealtimeState } from \"./types\"\n\n\ntype ListResponse = {\n ok?: boolean\n error?: string\n notifications?: NotificationItem[]\n unreadCount?: number\n unseenCount?: number\n}\n\ntype DayGroup = {\n key: string\n label: string\n items: NotificationItem[]\n}\n\nconst toMs = (iso: string): number => {\n const ms = Date.parse(iso)\n return Number.isFinite(ms) ? ms : 0\n}\n\nconst getDayKey = (iso: string): string => {\n const date = new Date(toMs(iso))\n if (!Number.isFinite(date.getTime())) return \"unknown\"\n\n const year = date.getFullYear()\n const month = String(date.getMonth() + 1).padStart(2, \"0\")\n const day = String(date.getDate()).padStart(2, \"0\")\n\n return `${year}-${month}-${day}`\n}\n\nconst formatDayLabel = (key: string): string => {\n if (key === \"unknown\") return \"Unknown date\"\n const [yearRaw, monthRaw, dayRaw] = key.split(\"-\")\n const year = Number(yearRaw)\n const month = Number(monthRaw)\n const day = Number(dayRaw)\n\n if (!Number.isFinite(year) || !Number.isFinite(month) || !Number.isFinite(day)) return \"Unknown date\"\n\n const date = new Date(year, month - 1, day)\n if (!Number.isFinite(date.getTime())) return \"Unknown date\"\n\n const now = new Date()\n const includeYear = now.getFullYear() !== year\n return date.toLocaleDateString(undefined, includeYear\n ? { weekday: \"short\", month: \"short\", day: \"numeric\", year: \"numeric\" }\n : { weekday: \"short\", month: \"short\", day: \"numeric\" })\n}\n\nconst groupByDay = (items: NotificationItem[]): DayGroup[] => {\n const groups: DayGroup[] = []\n let currentKey: string | null = null\n\n for (const item of items) {\n const key = getDayKey(item.createdAt)\n if (key !== currentKey) {\n currentKey = key\n groups.push({ key, label: formatDayLabel(key), items: [] })\n }\n groups[groups.length - 1]!.items.push(item)\n }\n\n return groups\n}\n\nconst EmptyRealtimeContext = createContext<NotificationsRealtimeState | null>(null)\n\nexport function NotificationsDrawer({\n open,\n onOpenChange,\n className,\n limit = 50,\n defaultUnreadOnly = false,\n realtimeContext,\n}: {\n open: boolean\n onOpenChange: (open: boolean) => void\n className?: string\n limit?: number\n defaultUnreadOnly?: boolean\n realtimeContext?: Context<NotificationsRealtimeState | null>\n}) {\n const realtime = useContext(realtimeContext ?? EmptyRealtimeContext)\n\n const [items, setItems] = useState<NotificationItem[]>([])\n const [unreadCount, setUnreadCount] = useState<number>(0)\n const [unseenCount, setUnseenCount] = useState<number>(0)\n const [loading, setLoading] = useState(false)\n const [error, setError] = useState<string | null>(null)\n const [unreadOnly, setUnreadOnly] = useState<boolean>(defaultUnreadOnly)\n\n const mergedItems = realtime?.notifications ?? items\n const mergedUnreadCount = realtime?.unreadCount ?? unreadCount\n const mergedUnseenCount = realtime?.unseenCount ?? unseenCount\n const mergedLoading = realtime?.loading ?? loading\n const mergedError = realtime?.error\n ? (realtime.error instanceof Error ? realtime.error.message : String(realtime.error))\n : error\n\n const visibleItems = useMemo(() => mergedItems.slice(0, limit), [limit, mergedItems])\n\n const unread = useMemo(() => visibleItems.filter((n) => !n.readAt), [visibleItems])\n const read = useMemo(() => visibleItems.filter((n) => Boolean(n.readAt)), [visibleItems])\n const unreadGroups = useMemo(() => groupByDay(unread), [unread])\n const readGroups = useMemo(() => groupByDay(read), [read])\n\n const refresh = useCallback(async ({ unreadOnly, markSeen }: { unreadOnly: boolean; markSeen: boolean }) => {\n setLoading(true)\n setError(null)\n\n try {\n const res = await fetch(\"/api/rb/notifications\", {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n credentials: \"include\",\n body: JSON.stringify({ limit, unreadOnly, markSeen }),\n })\n\n const json = (await res.json().catch(() => null)) as ListResponse | null\n if (!res.ok || !json?.ok) {\n setError(json?.error || \"Unable to load notifications.\")\n return\n }\n\n const nextItems = Array.isArray(json.notifications) ? json.notifications : []\n setItems(nextItems)\n setUnreadCount(Number.isFinite(json.unreadCount) ? Math.max(0, Math.floor(json.unreadCount ?? 0)) : 0)\n setUnseenCount(Number.isFinite(json.unseenCount) ? Math.max(0, Math.floor(json.unseenCount ?? 0)) : 0)\n } catch {\n setError(\"Unable to load notifications.\")\n } finally {\n setLoading(false)\n }\n }, [limit])\n\n useEffect(() => {\n if (!open) return\n if (realtime) {\n void (async () => {\n try {\n await fetch(\"/api/rb/notifications\", {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n credentials: \"include\",\n keepalive: true,\n body: JSON.stringify({ limit: 1, markSeen: true }),\n })\n } catch {\n return\n }\n })()\n return\n }\n void refresh({ unreadOnly, markSeen: true })\n }, [open, realtime, refresh, unreadOnly])\n\n useEffect(() => {\n if (!open) return\n if (realtime) return\n void refresh({ unreadOnly, markSeen: false })\n }, [open, realtime, refresh, unreadOnly])\n\n const markAsRead = async (id: string) => {\n try {\n const res = await fetch(`/api/rb/notifications/${encodeURIComponent(id)}/read`, {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n credentials: \"include\",\n keepalive: true,\n body: \"{}\",\n })\n\n const json = (await res.json().catch(() => null)) as { ok?: boolean } | null\n if (!res.ok || !json?.ok) return\n\n const nowIso = new Date().toISOString()\n if (realtime) return\n setItems((current) => {\n const target = current.find((n) => n.id === id)\n if (target && !target.readAt) {\n setUnreadCount((count) => Math.max(0, count - 1))\n }\n if (target && !target.seenAt) {\n setUnseenCount((count) => Math.max(0, count - 1))\n }\n return current.map((n) => (n.id === id && !n.readAt ? { ...n, readAt: nowIso, ...(n.seenAt ? {} : { seenAt: nowIso }) } : n))\n })\n } catch {\n return\n }\n }\n\n const archive = async (id: string) => {\n try {\n const res = await fetch(`/api/rb/notifications/${encodeURIComponent(id)}/archive`, {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n credentials: \"include\",\n body: \"{}\",\n })\n\n const json = (await res.json().catch(() => null)) as { ok?: boolean } | null\n if (!res.ok || !json?.ok) return\n\n if (realtime) return\n setItems((current) => {\n const target = current.find((n) => n.id === id)\n if (target && !target.readAt) {\n setUnreadCount((count) => Math.max(0, count - 1))\n }\n if (target && !target.seenAt) {\n setUnseenCount((count) => Math.max(0, count - 1))\n }\n return current.filter((n) => n.id !== id)\n })\n } catch {\n return\n }\n }\n\n return (\n <DialogPrimitive.Root open={open} onOpenChange={onOpenChange}>\n <DialogPrimitive.Portal>\n <DialogPrimitive.Overlay className=\"fixed inset-0 z-50 bg-black/50\" />\n <DialogPrimitive.Content\n className={cn(\n \"fixed right-0 top-0 z-50 flex h-full w-full max-w-md flex-col border-l bg-background shadow-xl outline-none\",\n className,\n )}\n >\n <header className=\"flex items-center justify-between gap-2 border-b px-4 py-3\">\n <div className=\"flex min-w-0 flex-col\">\n <DialogPrimitive.Title className=\"text-sm font-semibold\">Notifications</DialogPrimitive.Title>\n <span className=\"text-xs text-muted-foreground\">\n {mergedUnreadCount > 0 ? `${mergedUnreadCount} unread` : mergedUnseenCount > 0 ? `${mergedUnseenCount} new` : \"All caught up\"}\n </span>\n </div>\n <div className=\"flex items-center gap-2\">\n <button\n type=\"button\"\n onClick={() => setUnreadOnly((v) => !v)}\n className={cn(\n \"rounded-md border px-2 py-1 text-xs\",\n unreadOnly ? \"bg-accent text-foreground\" : \"bg-background text-muted-foreground hover:bg-accent\",\n )}\n >\n {unreadOnly ? \"Unread\" : \"All\"}\n </button>\n <DialogPrimitive.Close asChild>\n <button type=\"button\" className=\"inline-flex h-8 w-8 items-center justify-center rounded-md hover:bg-accent\">\n <X className=\"h-4 w-4\" />\n </button>\n </DialogPrimitive.Close>\n </div>\n </header>\n\n <div className=\"flex-1 overflow-y-auto px-4 pb-3\">\n {mergedLoading ? (\n <div className=\"flex items-center justify-center py-10 text-muted-foreground\">\n <Loader2 className=\"h-4 w-4 animate-spin\" />\n </div>\n ) : mergedError ? (\n <div className=\"py-10 text-center text-sm text-muted-foreground\">{mergedError}</div>\n ) : visibleItems.length === 0 ? (\n <div className=\"py-10 text-center text-sm text-muted-foreground\">No notifications.</div>\n ) : (\n <div className=\"flex flex-col gap-4\">\n <div>\n <div className=\"sticky top-0 z-20 -mx-4 flex h-8 items-center border-b bg-background px-4 text-xs font-semibold text-muted-foreground\">\n Unread notifications\n </div>\n {unreadGroups.length === 0 ? (\n <div className=\"py-6 text-center text-sm text-muted-foreground\">No unread notifications.</div>\n ) : (\n unreadGroups.map((group) => (\n <div key={`unread:${group.key}`}>\n <div className=\"sticky top-8 z-10 -mx-4 flex h-7 items-center bg-background px-4 text-[11px] font-semibold text-muted-foreground\">\n {group.label}\n </div>\n <div className=\"-mx-4 flex flex-col divide-y divide-border\">\n {group.items.map((n) => (\n <NotificationRow\n key={n.id}\n notification={n}\n onMarkRead={markAsRead}\n onArchive={archive}\n />\n ))}\n </div>\n </div>\n ))\n )}\n </div>\n\n {unreadOnly ? null : (\n <div>\n <div className=\"sticky top-0 z-20 -mx-4 flex h-8 items-center border-b bg-background px-4 text-xs font-semibold text-muted-foreground\">\n Previous notifications\n </div>\n {readGroups.length === 0 ? (\n <div className=\"py-6 text-center text-sm text-muted-foreground\">No previous notifications.</div>\n ) : (\n readGroups.map((group) => (\n <div key={`previous:${group.key}`}>\n <div className=\"sticky top-8 z-10 -mx-4 flex h-7 items-center bg-background px-4 text-[11px] font-semibold text-muted-foreground\">\n {group.label}\n </div>\n <div className=\"-mx-4 flex flex-col divide-y divide-border\">\n {group.items.map((n) => (\n <NotificationRow\n key={n.id}\n notification={n}\n onMarkRead={markAsRead}\n onArchive={archive}\n />\n ))}\n </div>\n </div>\n ))\n )}\n </div>\n )}\n </div>\n )}\n </div>\n </DialogPrimitive.Content>\n </DialogPrimitive.Portal>\n </DialogPrimitive.Root>\n )\n}\n\nfunction NotificationRow({\n notification,\n onMarkRead,\n onArchive,\n}: {\n notification: NotificationItem\n onMarkRead: (id: string) => void\n onArchive: (id: string) => void\n}) {\n const isUnread = !notification.readAt\n const createdAtLabel = (() => {\n const date = new Date(toMs(notification.createdAt))\n if (!Number.isFinite(date.getTime())) return \"\"\n return date.toLocaleString()\n })()\n\n return (\n <div\n className={cn(\n \"group flex w-full gap-3 px-4 py-3 hover:bg-accent/40\",\n isUnread ? \"bg-primary/5\" : \"bg-background\",\n )}\n >\n <button\n type=\"button\"\n className=\"min-w-0 flex-1 text-left\"\n onClick={() => {\n if (isUnread) {\n void onMarkRead(notification.id)\n }\n if (notification.url) {\n window.location.href = notification.url\n }\n }}\n >\n <div className=\"min-w-0\">\n <div className=\"truncate text-sm font-semibold\">{notification.title}</div>\n {notification.body ? (\n <div className=\"mt-0.5 line-clamp-2 text-xs text-muted-foreground\">{notification.body}</div>\n ) : null}\n </div>\n {notification.url ? <div className=\"mt-2 truncate text-xs text-primary\">{notification.url}</div> : null}\n {createdAtLabel ? (\n <div className=\"mt-2 text-[11px] text-muted-foreground\">{createdAtLabel}</div>\n ) : null}\n </button>\n <div className=\"flex items-start\">\n <DropdownMenuPrimitive.Root>\n <DropdownMenuPrimitive.Trigger asChild>\n <button\n type=\"button\"\n className=\"inline-flex h-8 w-8 items-center justify-center rounded-md hover:bg-accent\"\n aria-label=\"Notification options\"\n >\n <MoreVertical className=\"h-4 w-4\" />\n </button>\n </DropdownMenuPrimitive.Trigger>\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n align=\"end\"\n sideOffset={6}\n className={cn(\n \"z-50 min-w-[10rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md\",\n \"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95\",\n \"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n )}\n >\n <DropdownMenuPrimitive.Item\n className=\"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\"\n onSelect={() => onArchive(notification.id)}\n >\n Archive\n </DropdownMenuPrimitive.Item>\n <DropdownMenuPrimitive.Item\n className=\"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\"\n disabled={!isUnread}\n onSelect={() => onMarkRead(notification.id)}\n >\n Mark as read\n </DropdownMenuPrimitive.Item>\n </DropdownMenuPrimitive.Content>\n </DropdownMenuPrimitive.Portal>\n </DropdownMenuPrimitive.Root>\n </div>\n </div>\n )\n}\n"],"names":["toMs","iso","ms","getDayKey","date","year","month","day","formatDayLabel","key","yearRaw","monthRaw","dayRaw","includeYear","groupByDay","items","groups","currentKey","item","EmptyRealtimeContext","createContext","NotificationsDrawer","open","onOpenChange","className","limit","defaultUnreadOnly","realtimeContext","realtime","useContext","setItems","useState","unreadCount","setUnreadCount","unseenCount","setUnseenCount","loading","setLoading","error","setError","unreadOnly","setUnreadOnly","mergedItems","mergedUnreadCount","mergedUnseenCount","mergedLoading","mergedError","visibleItems","useMemo","unread","read","unreadGroups","readGroups","refresh","useCallback","markSeen","res","json","nextItems","useEffect","markAsRead","id","nowIso","current","target","n","count","archive","jsx","DialogPrimitive","jsxs","cn","v","X","Loader2","group","NotificationRow","notification","onMarkRead","onArchive","isUnread","createdAtLabel","DropdownMenuPrimitive.Root","DropdownMenuPrimitive.Trigger","MoreVertical","DropdownMenuPrimitive.Portal","DropdownMenuPrimitive.Content","DropdownMenuPrimitive.Item"],"mappings":";;;;;;AAwBA,MAAMA,IAAO,CAACC,MAAwB;AACpC,QAAMC,IAAK,KAAK,MAAMD,CAAG;AACzB,SAAO,OAAO,SAASC,CAAE,IAAIA,IAAK;AACpC,GAEMC,KAAY,CAACF,MAAwB;AACzC,QAAMG,IAAO,IAAI,KAAKJ,EAAKC,CAAG,CAAC;AAC/B,MAAI,CAAC,OAAO,SAASG,EAAK,QAAA,CAAS,EAAG,QAAO;AAE7C,QAAMC,IAAOD,EAAK,YAAA,GACZE,IAAQ,OAAOF,EAAK,SAAA,IAAa,CAAC,EAAE,SAAS,GAAG,GAAG,GACnDG,IAAM,OAAOH,EAAK,QAAA,CAAS,EAAE,SAAS,GAAG,GAAG;AAElD,SAAO,GAAGC,CAAI,IAAIC,CAAK,IAAIC,CAAG;AAChC,GAEMC,KAAiB,CAACC,MAAwB;AAC9C,MAAIA,MAAQ,UAAW,QAAO;AAC9B,QAAM,CAACC,GAASC,G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,UAAA,GAEtC;AAAA,UACAhB,gBAAAA,MAACiB,IAAA,EACC,UAAAf,gBAAAA,EAAAA;AAAAA,YAACgB;AAAAA,YAAA;AAAA,cACC,OAAM;AAAA,cACN,YAAY;AAAA,cACZ,WAAWf;AAAA,gBACT;AAAA,gBACA;AAAA,gBACA;AAAA,cAAA;AAAA,cAGF,UAAA;AAAA,gBAAAH,gBAAAA,EAAAA;AAAAA,kBAACmB;AAAAA,kBAAA;AAAA,oBACC,WAAU;AAAA,oBACV,UAAU,MAAMR,EAAUF,EAAa,EAAE;AAAA,oBAC1C,UAAA;AAAA,kBAAA;AAAA,gBAAA;AAAA,gBAGDT,gBAAAA,EAAAA;AAAAA,kBAACmB;AAAAA,kBAAA;AAAA,oBACC,WAAU;AAAA,oBACV,UAAU,CAACP;AAAA,oBACX,UAAU,MAAMF,EAAWD,EAAa,EAAE;AAAA,oBAC3C,UAAA;AAAA,kBAAA;AAAA,gBAAA;AAAA,cAED;AAAA,YAAA;AAAA,UAAA,EACF,CACF;AAAA,QAAA,EAAA,CACF,EAAA,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -0,0 +1,13 @@
1
+ import { millisecondsInWeek as f } from "./index326.js";
2
+ import { startOfISOWeek as i } from "./index245.js";
3
+ import { startOfISOWeekYear as m } from "./index337.js";
4
+ import { toDate as n } from "./index325.js";
5
+ function O(e, o) {
6
+ const t = n(e, o?.in), r = +i(t) - +m(t);
7
+ return Math.round(r / f) + 1;
8
+ }
9
+ export {
10
+ O as default,
11
+ O as getISOWeek
12
+ };
13
+ //# sourceMappingURL=index230.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index230.js","sources":["../../../node_modules/date-fns/getISOWeek.js"],"sourcesContent":["import { millisecondsInWeek } from \"./constants.js\";\nimport { startOfISOWeek } from \"./startOfISOWeek.js\";\nimport { startOfISOWeekYear } from \"./startOfISOWeekYear.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getISOWeek} function options.\n */\n\n/**\n * @name getISOWeek\n * @category ISO Week Helpers\n * @summary Get the ISO week of the given date.\n *\n * @description\n * Get the ISO week of the given date.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param date - The given date\n * @param options - The options\n *\n * @returns The ISO week\n *\n * @example\n * // Which week of the ISO-week numbering year is 2 January 2005?\n * const result = getISOWeek(new Date(2005, 0, 2))\n * //=> 53\n */\nexport function getISOWeek(date, options) {\n const _date = toDate(date, options?.in);\n const diff = +startOfISOWeek(_date) - +startOfISOWeekYear(_date);\n\n // Round the number of weeks to the nearest integer because the number of\n // milliseconds in a week is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round(diff / millisecondsInWeek) + 1;\n}\n\n// Fallback for modularized imports:\nexport default getISOWeek;\n"],"names":["getISOWeek","date","options","_date","toDate","diff","startOfISOWeek","startOfISOWeekYear","millisecondsInWeek"],"mappings":";;;;AA6BO,SAASA,EAAWC,GAAMC,GAAS;AACxC,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE,GAChCG,IAAO,CAACC,EAAeH,CAAK,IAAI,CAACI,EAAmBJ,CAAK;AAK/D,SAAO,KAAK,MAAME,IAAOG,CAAkB,IAAI;AACjD;","x_google_ignoreList":[0]}
@@ -0,0 +1,9 @@
1
+ import { toDate as e } from "./index325.js";
2
+ function r(t, o) {
3
+ return e(t, o?.in).getMonth();
4
+ }
5
+ export {
6
+ r as default,
7
+ r as getMonth
8
+ };
9
+ //# sourceMappingURL=index231.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index231.js","sources":["../../../node_modules/date-fns/getMonth.js"],"sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getMonth} function options.\n */\n\n/**\n * @name getMonth\n * @category Month Helpers\n * @summary Get the month of the given date.\n *\n * @description\n * Get the month of the given date.\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The month index (0-11)\n *\n * @example\n * // Which month is 29 February 2012?\n * const result = getMonth(new Date(2012, 1, 29))\n * //=> 1\n */\nexport function getMonth(date, options) {\n return toDate(date, options?.in).getMonth();\n}\n\n// Fallback for modularized imports:\nexport default getMonth;\n"],"names":["getMonth","date","options","toDate"],"mappings":";AAwBO,SAASA,EAASC,GAAMC,GAAS;AACtC,SAAOC,EAAOF,GAAMC,GAAS,EAAE,EAAE,SAAQ;AAC3C;","x_google_ignoreList":[0]}
@@ -0,0 +1,9 @@
1
+ import { toDate as r } from "./index325.js";
2
+ function o(t, e) {
3
+ return r(t, e?.in).getFullYear();
4
+ }
5
+ export {
6
+ o as default,
7
+ o as getYear
8
+ };
9
+ //# sourceMappingURL=index232.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index232.js","sources":["../../../node_modules/date-fns/getYear.js"],"sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getYear} function options.\n */\n\n/**\n * @name getYear\n * @category Year Helpers\n * @summary Get the year of the given date.\n *\n * @description\n * Get the year of the given date.\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The year\n *\n * @example\n * // Which year is 2 July 2014?\n * const result = getYear(new Date(2014, 6, 2))\n * //=> 2014\n */\nexport function getYear(date, options) {\n return toDate(date, options?.in).getFullYear();\n}\n\n// Fallback for modularized imports:\nexport default getYear;\n"],"names":["getYear","date","options","toDate"],"mappings":";AAwBO,SAASA,EAAQC,GAAMC,GAAS;AACrC,SAAOC,EAAOF,GAAMC,GAAS,EAAE,EAAE,YAAW;AAC9C;","x_google_ignoreList":[0]}
@@ -0,0 +1,13 @@
1
+ import { millisecondsInWeek as f } from "./index326.js";
2
+ import { startOfWeek as m } from "./index247.js";
3
+ import { startOfWeekYear as a } from "./index339.js";
4
+ import { toDate as i } from "./index325.js";
5
+ function k(r, t) {
6
+ const e = i(r, t?.in), o = +m(e, t) - +a(e, t);
7
+ return Math.round(o / f) + 1;
8
+ }
9
+ export {
10
+ k as default,
11
+ k as getWeek
12
+ };
13
+ //# sourceMappingURL=index233.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index233.js","sources":["../../../node_modules/date-fns/getWeek.js"],"sourcesContent":["import { millisecondsInWeek } from \"./constants.js\";\nimport { startOfWeek } from \"./startOfWeek.js\";\nimport { startOfWeekYear } from \"./startOfWeekYear.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getWeek} function options.\n */\n\n/**\n * @name getWeek\n * @category Week Helpers\n * @summary Get the local week index of the given date.\n *\n * @description\n * Get the local week index of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The week\n *\n * @example\n * // Which week of the local week numbering year is 2 January 2005 with default options?\n * const result = getWeek(new Date(2005, 0, 2))\n * //=> 2\n *\n * @example\n * // Which week of the local week numbering year is 2 January 2005,\n * // if Monday is the first day of the week,\n * // and the first week of the year always contains 4 January?\n * const result = getWeek(new Date(2005, 0, 2), {\n * weekStartsOn: 1,\n * firstWeekContainsDate: 4\n * })\n * //=> 53\n */\nexport function getWeek(date, options) {\n const _date = toDate(date, options?.in);\n const diff = +startOfWeek(_date, options) - +startOfWeekYear(_date, options);\n\n // Round the number of weeks to the nearest integer because the number of\n // milliseconds in a week is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round(diff / millisecondsInWeek) + 1;\n}\n\n// Fallback for modularized imports:\nexport default getWeek;\n"],"names":["getWeek","date","options","_date","toDate","diff","startOfWeek","startOfWeekYear","millisecondsInWeek"],"mappings":";;;;AA2CO,SAASA,EAAQC,GAAMC,GAAS;AACrC,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE,GAChCG,IAAO,CAACC,EAAYH,GAAOD,CAAO,IAAI,CAACK,EAAgBJ,GAAOD,CAAO;AAK3E,SAAO,KAAK,MAAMG,IAAOG,CAAkB,IAAI;AACjD;","x_google_ignoreList":[0]}
@@ -0,0 +1,9 @@
1
+ import { toDate as t } from "./index325.js";
2
+ function f(r, e) {
3
+ return +t(r) > +t(e);
4
+ }
5
+ export {
6
+ f as default,
7
+ f as isAfter
8
+ };
9
+ //# sourceMappingURL=index234.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index234.js","sources":["../../../node_modules/date-fns/isAfter.js"],"sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * @name isAfter\n * @category Common Helpers\n * @summary Is the first date after the second one?\n *\n * @description\n * Is the first date after the second one?\n *\n * @param date - The date that should be after the other one to return true\n * @param dateToCompare - The date to compare with\n *\n * @returns The first date is after the second date\n *\n * @example\n * // Is 10 July 1989 after 11 February 1987?\n * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> true\n */\nexport function isAfter(date, dateToCompare) {\n return +toDate(date) > +toDate(dateToCompare);\n}\n\n// Fallback for modularized imports:\nexport default isAfter;\n"],"names":["isAfter","date","dateToCompare","toDate"],"mappings":";AAoBO,SAASA,EAAQC,GAAMC,GAAe;AAC3C,SAAO,CAACC,EAAOF,CAAI,IAAI,CAACE,EAAOD,CAAa;AAC9C;","x_google_ignoreList":[0]}