@anoki/fse-ui 1.0.755 → 1.0.756

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 (479) hide show
  1. package/dist/index.cjs10.js +1 -1
  2. package/dist/index.cjs133.js +1 -1
  3. package/dist/index.cjs134.js +1 -1
  4. package/dist/index.cjs135.js +1 -1
  5. package/dist/index.cjs136.js +1 -1
  6. package/dist/index.cjs137.js +1 -1
  7. package/dist/index.cjs138.js +1 -1
  8. package/dist/index.cjs139.js +1 -1
  9. package/dist/index.cjs140.js +1 -1
  10. package/dist/index.cjs141.js +1 -1
  11. package/dist/index.cjs142.js +1 -1
  12. package/dist/index.cjs143.js +1 -1
  13. package/dist/index.cjs144.js +1 -1
  14. package/dist/index.cjs145.js +1 -1
  15. package/dist/index.cjs146.js +1 -1
  16. package/dist/index.cjs147.js +1 -1
  17. package/dist/index.cjs148.js +1 -1
  18. package/dist/index.cjs149.js +1 -1
  19. package/dist/index.cjs150.js +1 -1
  20. package/dist/index.cjs151.js +1 -1
  21. package/dist/index.cjs152.js +1 -1
  22. package/dist/index.cjs153.js +1 -1
  23. package/dist/index.cjs154.js +1 -1
  24. package/dist/index.cjs155.js +1 -1
  25. package/dist/index.cjs159.js +1 -1
  26. package/dist/index.cjs160.js +1 -1
  27. package/dist/index.cjs161.js +1 -1
  28. package/dist/index.cjs163.js +1 -1
  29. package/dist/index.cjs164.js +1 -1
  30. package/dist/index.cjs165.js +1 -1
  31. package/dist/index.cjs166.js +1 -1
  32. package/dist/index.cjs167.js +1 -1
  33. package/dist/index.cjs168.js +1 -1
  34. package/dist/index.cjs169.js +1 -1
  35. package/dist/index.cjs170.js +1 -1
  36. package/dist/index.cjs171.js +1 -1
  37. package/dist/index.cjs173.js +1 -1
  38. package/dist/index.cjs174.js +1 -1
  39. package/dist/index.cjs175.js +1 -1
  40. package/dist/index.cjs176.js +1 -1
  41. package/dist/index.cjs177.js +1 -1
  42. package/dist/index.cjs178.js +1 -1
  43. package/dist/index.cjs179.js +1 -1
  44. package/dist/index.cjs181.js +1 -1
  45. package/dist/index.cjs182.js +1 -1
  46. package/dist/index.cjs183.js +1 -1
  47. package/dist/index.cjs184.js +1 -1
  48. package/dist/index.cjs185.js +1 -1
  49. package/dist/index.cjs186.js +1 -1
  50. package/dist/index.cjs187.js +1 -1
  51. package/dist/index.cjs188.js +1 -1
  52. package/dist/index.cjs194.js +1 -1
  53. package/dist/index.cjs23.js +1 -1
  54. package/dist/index.cjs230.js +1 -1
  55. package/dist/index.cjs230.js.map +1 -1
  56. package/dist/index.cjs231.js +2 -0
  57. package/dist/index.cjs231.js.map +1 -0
  58. package/dist/index.cjs240.js +1 -1
  59. package/dist/index.cjs248.js +1 -1
  60. package/dist/index.cjs251.js +1 -1
  61. package/dist/index.cjs252.js +1 -1
  62. package/dist/index.cjs259.js +1 -1
  63. package/dist/index.cjs26.js +1 -1
  64. package/dist/index.cjs269.js +1 -1
  65. package/dist/index.cjs273.js +1 -1
  66. package/dist/index.cjs275.js +1 -1
  67. package/dist/index.cjs282.js +1 -1
  68. package/dist/index.cjs287.js +1 -1
  69. package/dist/index.cjs294.js +1 -1
  70. package/dist/index.cjs300.js +1 -1
  71. package/dist/index.cjs301.js +1 -1
  72. package/dist/index.cjs302.js +1 -1
  73. package/dist/index.cjs341.js +1 -1
  74. package/dist/index.cjs369.js +1 -1
  75. package/dist/index.cjs370.js +1 -1
  76. package/dist/index.cjs380.js +1 -1
  77. package/dist/index.cjs386.js +1 -1
  78. package/dist/index.cjs387.js +1 -1
  79. package/dist/index.cjs393.js +1 -1
  80. package/dist/index.cjs393.js.map +1 -1
  81. package/dist/index.cjs394.js +1 -1
  82. package/dist/index.cjs394.js.map +1 -1
  83. package/dist/index.cjs395.js +1 -1
  84. package/dist/index.cjs395.js.map +1 -1
  85. package/dist/index.cjs396.js +1 -1
  86. package/dist/index.cjs396.js.map +1 -1
  87. package/dist/index.cjs397.js +1 -1
  88. package/dist/index.cjs397.js.map +1 -1
  89. package/dist/index.cjs398.js +1 -1
  90. package/dist/index.cjs398.js.map +1 -1
  91. package/dist/index.cjs399.js +1 -1
  92. package/dist/index.cjs399.js.map +1 -1
  93. package/dist/index.cjs400.js +2 -0
  94. package/dist/index.cjs400.js.map +1 -0
  95. package/dist/index.cjs401.js +1 -1
  96. package/dist/index.cjs401.js.map +1 -1
  97. package/dist/index.cjs402.js +2 -0
  98. package/dist/index.cjs402.js.map +1 -0
  99. package/dist/index.cjs403.js +2 -0
  100. package/dist/index.cjs403.js.map +1 -0
  101. package/dist/index.cjs404.js +1 -1
  102. package/dist/index.cjs404.js.map +1 -1
  103. package/dist/index.cjs405.js +1 -1
  104. package/dist/index.cjs405.js.map +1 -1
  105. package/dist/index.cjs406.js +1 -1
  106. package/dist/index.cjs406.js.map +1 -1
  107. package/dist/index.cjs407.js +2 -0
  108. package/dist/index.cjs407.js.map +1 -0
  109. package/dist/{index.cjs416.js → index.cjs408.js} +2 -2
  110. package/dist/{index.cjs416.js.map → index.cjs408.js.map} +1 -1
  111. package/dist/{index.cjs428.js → index.cjs409.js} +2 -2
  112. package/dist/{index.cjs428.js.map → index.cjs409.js.map} +1 -1
  113. package/dist/index.cjs410.js +2 -0
  114. package/dist/index.cjs410.js.map +1 -0
  115. package/dist/index.cjs411.js +2 -0
  116. package/dist/index.cjs411.js.map +1 -0
  117. package/dist/index.cjs412.js +1 -1
  118. package/dist/index.cjs412.js.map +1 -1
  119. package/dist/index.cjs413.js +1 -1
  120. package/dist/index.cjs413.js.map +1 -1
  121. package/dist/index.cjs414.js +1 -1
  122. package/dist/index.cjs414.js.map +1 -1
  123. package/dist/index.cjs415.js +1 -1
  124. package/dist/index.cjs415.js.map +1 -1
  125. package/dist/index.cjs417.js +1 -1
  126. package/dist/index.cjs417.js.map +1 -1
  127. package/dist/index.cjs418.js +1 -1
  128. package/dist/index.cjs418.js.map +1 -1
  129. package/dist/index.cjs419.js +1 -1
  130. package/dist/index.cjs419.js.map +1 -1
  131. package/dist/index.cjs420.js +1 -1
  132. package/dist/index.cjs420.js.map +1 -1
  133. package/dist/index.cjs421.js +1 -1
  134. package/dist/index.cjs421.js.map +1 -1
  135. package/dist/index.cjs422.js +2 -0
  136. package/dist/index.cjs422.js.map +1 -0
  137. package/dist/index.cjs423.js +2 -0
  138. package/dist/index.cjs423.js.map +1 -0
  139. package/dist/index.cjs424.js +2 -0
  140. package/dist/index.cjs424.js.map +1 -0
  141. package/dist/index.cjs425.js +1 -1
  142. package/dist/index.cjs425.js.map +1 -1
  143. package/dist/index.cjs429.js +1 -1
  144. package/dist/index.cjs429.js.map +1 -1
  145. package/dist/index.cjs430.js +1 -1
  146. package/dist/index.cjs430.js.map +1 -1
  147. package/dist/{index.cjs447.js → index.cjs431.js} +2 -2
  148. package/dist/{index.cjs447.js.map → index.cjs431.js.map} +1 -1
  149. package/dist/{index.cjs448.js → index.cjs432.js} +2 -2
  150. package/dist/{index.cjs448.js.map → index.cjs432.js.map} +1 -1
  151. package/dist/{index.cjs449.js → index.cjs433.js} +2 -2
  152. package/dist/{index.cjs449.js.map → index.cjs433.js.map} +1 -1
  153. package/dist/{index.cjs450.js → index.cjs434.js} +2 -2
  154. package/dist/{index.cjs450.js.map → index.cjs434.js.map} +1 -1
  155. package/dist/{index.cjs451.js → index.cjs435.js} +1 -1
  156. package/dist/{index.cjs451.js.map → index.cjs435.js.map} +1 -1
  157. package/dist/index.cjs436.js +2 -0
  158. package/dist/index.cjs436.js.map +1 -0
  159. package/dist/index.cjs439.js +38 -1
  160. package/dist/index.cjs439.js.map +1 -1
  161. package/dist/index.cjs440.js +1 -1
  162. package/dist/index.cjs440.js.map +1 -1
  163. package/dist/index.cjs441.js +1 -1
  164. package/dist/index.cjs441.js.map +1 -1
  165. package/dist/index.cjs442.js +1 -1
  166. package/dist/index.cjs442.js.map +1 -1
  167. package/dist/index.cjs443.js +1 -1
  168. package/dist/index.cjs443.js.map +1 -1
  169. package/dist/index.cjs444.js +1 -1
  170. package/dist/index.cjs444.js.map +1 -1
  171. package/dist/index.cjs445.js +1 -1
  172. package/dist/index.cjs445.js.map +1 -1
  173. package/dist/index.cjs446.js +1 -1
  174. package/dist/index.cjs446.js.map +1 -1
  175. package/dist/index.cjs452.js +1 -1
  176. package/dist/index.cjs452.js.map +1 -1
  177. package/dist/index.cjs453.js +1 -38
  178. package/dist/index.cjs453.js.map +1 -1
  179. package/dist/index.cjs454.js +1 -1
  180. package/dist/index.cjs454.js.map +1 -1
  181. package/dist/index.cjs455.js +1 -1
  182. package/dist/index.cjs455.js.map +1 -1
  183. package/dist/index.cjs456.js +1 -1
  184. package/dist/index.cjs456.js.map +1 -1
  185. package/dist/index.cjs466.js +1 -1
  186. package/dist/index.cjs469.js +1 -1
  187. package/dist/index.cjs472.js +1 -1
  188. package/dist/index.cjs476.js +1 -1
  189. package/dist/index.cjs479.js +1 -1
  190. package/dist/index.cjs480.js +1 -1
  191. package/dist/index.cjs480.js.map +1 -1
  192. package/dist/index.cjs481.js +1 -5
  193. package/dist/index.cjs481.js.map +1 -1
  194. package/dist/index.cjs482.js +1 -1
  195. package/dist/index.cjs482.js.map +1 -1
  196. package/dist/index.cjs483.js +5 -1
  197. package/dist/index.cjs483.js.map +1 -1
  198. package/dist/index.cjs484.js +2 -0
  199. package/dist/index.cjs484.js.map +1 -0
  200. package/dist/index.cjs485.js +2 -0
  201. package/dist/index.cjs485.js.map +1 -0
  202. package/dist/index.cjs491.js +1 -1
  203. package/dist/index.cjs491.js.map +1 -1
  204. package/dist/index.cjs492.js +1 -1
  205. package/dist/index.cjs492.js.map +1 -1
  206. package/dist/index.cjs58.js +1 -1
  207. package/dist/index.cjs6.js +1 -1
  208. package/dist/index.cjs7.js +1 -1
  209. package/dist/index.cjs8.js +1 -1
  210. package/dist/index.cjs9.js +1 -1
  211. package/dist/index.cjs90.js +1 -1
  212. package/dist/index.cjs90.js.map +1 -1
  213. package/dist/index.d.ts +1 -0
  214. package/dist/index.es10.js +2 -2
  215. package/dist/index.es133.js +1 -1
  216. package/dist/index.es134.js +1 -1
  217. package/dist/index.es135.js +1 -1
  218. package/dist/index.es136.js +1 -1
  219. package/dist/index.es137.js +1 -1
  220. package/dist/index.es138.js +1 -1
  221. package/dist/index.es139.js +1 -1
  222. package/dist/index.es140.js +1 -1
  223. package/dist/index.es141.js +1 -1
  224. package/dist/index.es142.js +1 -1
  225. package/dist/index.es143.js +1 -1
  226. package/dist/index.es144.js +1 -1
  227. package/dist/index.es145.js +1 -1
  228. package/dist/index.es146.js +1 -1
  229. package/dist/index.es147.js +1 -1
  230. package/dist/index.es148.js +1 -1
  231. package/dist/index.es149.js +1 -1
  232. package/dist/index.es150.js +1 -1
  233. package/dist/index.es151.js +1 -1
  234. package/dist/index.es152.js +1 -1
  235. package/dist/index.es153.js +1 -1
  236. package/dist/index.es154.js +1 -1
  237. package/dist/index.es155.js +1 -1
  238. package/dist/index.es159.js +1 -1
  239. package/dist/index.es160.js +1 -1
  240. package/dist/index.es161.js +1 -1
  241. package/dist/index.es163.js +1 -1
  242. package/dist/index.es164.js +1 -1
  243. package/dist/index.es165.js +1 -1
  244. package/dist/index.es166.js +1 -1
  245. package/dist/index.es167.js +1 -1
  246. package/dist/index.es168.js +1 -1
  247. package/dist/index.es169.js +1 -1
  248. package/dist/index.es170.js +1 -1
  249. package/dist/index.es171.js +1 -1
  250. package/dist/index.es173.js +1 -1
  251. package/dist/index.es174.js +1 -1
  252. package/dist/index.es175.js +1 -1
  253. package/dist/index.es176.js +1 -1
  254. package/dist/index.es177.js +1 -1
  255. package/dist/index.es178.js +1 -1
  256. package/dist/index.es179.js +1 -1
  257. package/dist/index.es181.js +1 -1
  258. package/dist/index.es182.js +1 -1
  259. package/dist/index.es183.js +1 -1
  260. package/dist/index.es184.js +1 -1
  261. package/dist/index.es185.js +1 -1
  262. package/dist/index.es186.js +1 -1
  263. package/dist/index.es187.js +1 -1
  264. package/dist/index.es188.js +1 -1
  265. package/dist/index.es194.js +1 -1
  266. package/dist/index.es23.js +1 -1
  267. package/dist/index.es230.js +2 -27
  268. package/dist/index.es230.js.map +1 -1
  269. package/dist/index.es231.js +30 -0
  270. package/dist/index.es231.js.map +1 -0
  271. package/dist/index.es240.js +1 -1
  272. package/dist/index.es248.js +7 -7
  273. package/dist/index.es251.js +1 -1
  274. package/dist/index.es252.js +1 -1
  275. package/dist/index.es259.js +8 -8
  276. package/dist/index.es26.js +1 -1
  277. package/dist/index.es269.js +1 -1
  278. package/dist/index.es273.js +1 -1
  279. package/dist/index.es275.js +14 -14
  280. package/dist/index.es282.js +1 -1
  281. package/dist/index.es287.js +1 -1
  282. package/dist/index.es294.js +1 -1
  283. package/dist/index.es300.js +1 -1
  284. package/dist/index.es301.js +1 -1
  285. package/dist/index.es302.js +7 -7
  286. package/dist/index.es341.js +4 -4
  287. package/dist/index.es369.js +1 -1
  288. package/dist/index.es370.js +2 -2
  289. package/dist/index.es380.js +1 -1
  290. package/dist/index.es386.js +1 -1
  291. package/dist/index.es387.js +1 -1
  292. package/dist/index.es393.js +2 -7
  293. package/dist/index.es393.js.map +1 -1
  294. package/dist/index.es394.js +2 -27
  295. package/dist/index.es394.js.map +1 -1
  296. package/dist/index.es395.js +5 -66
  297. package/dist/index.es395.js.map +1 -1
  298. package/dist/index.es396.js +25 -28
  299. package/dist/index.es396.js.map +1 -1
  300. package/dist/index.es397.js +67 -32
  301. package/dist/index.es397.js.map +1 -1
  302. package/dist/index.es398.js +27 -619
  303. package/dist/index.es398.js.map +1 -1
  304. package/dist/index.es399.js +32 -10
  305. package/dist/index.es399.js.map +1 -1
  306. package/dist/index.es400.js +625 -0
  307. package/dist/index.es400.js.map +1 -0
  308. package/dist/index.es401.js +11 -15
  309. package/dist/index.es401.js.map +1 -1
  310. package/dist/index.es402.js +14 -0
  311. package/dist/index.es402.js.map +1 -0
  312. package/dist/index.es403.js +56 -0
  313. package/dist/index.es403.js.map +1 -0
  314. package/dist/index.es404.js +45 -5
  315. package/dist/index.es404.js.map +1 -1
  316. package/dist/index.es405.js +7 -24
  317. package/dist/index.es405.js.map +1 -1
  318. package/dist/index.es406.js +120 -64
  319. package/dist/index.es406.js.map +1 -1
  320. package/dist/index.es407.js +18 -0
  321. package/dist/index.es407.js.map +1 -0
  322. package/dist/{index.es416.js → index.es408.js} +4 -4
  323. package/dist/{index.es416.js.map → index.es408.js.map} +1 -1
  324. package/dist/{index.es428.js → index.es409.js} +10 -10
  325. package/dist/{index.es428.js.map → index.es409.js.map} +1 -1
  326. package/dist/index.es410.js +17 -0
  327. package/dist/index.es410.js.map +1 -0
  328. package/dist/index.es411.js +72 -0
  329. package/dist/index.es411.js.map +1 -0
  330. package/dist/index.es412.js +178 -2
  331. package/dist/index.es412.js.map +1 -1
  332. package/dist/index.es413.js +50 -2
  333. package/dist/index.es413.js.map +1 -1
  334. package/dist/index.es414.js +9 -15
  335. package/dist/index.es414.js.map +1 -1
  336. package/dist/index.es415.js +4 -125
  337. package/dist/index.es415.js.map +1 -1
  338. package/dist/index.es417.js +6 -14
  339. package/dist/index.es417.js.map +1 -1
  340. package/dist/index.es418.js +24 -14
  341. package/dist/index.es418.js.map +1 -1
  342. package/dist/index.es419.js +11 -8
  343. package/dist/index.es419.js.map +1 -1
  344. package/dist/index.es420.js +203 -48
  345. package/dist/index.es420.js.map +1 -1
  346. package/dist/index.es421.js +21 -52
  347. package/dist/index.es421.js.map +1 -1
  348. package/dist/index.es422.js +396 -0
  349. package/dist/index.es422.js.map +1 -0
  350. package/dist/index.es423.js +28 -0
  351. package/dist/index.es423.js.map +1 -0
  352. package/dist/index.es424.js +32 -0
  353. package/dist/index.es424.js.map +1 -0
  354. package/dist/index.es425.js +5 -11
  355. package/dist/index.es425.js.map +1 -1
  356. package/dist/index.es429.js +5 -178
  357. package/dist/index.es429.js.map +1 -1
  358. package/dist/index.es430.js +3 -4
  359. package/dist/index.es430.js.map +1 -1
  360. package/dist/{index.es447.js → index.es431.js} +3 -3
  361. package/dist/{index.es447.js.map → index.es431.js.map} +1 -1
  362. package/dist/{index.es448.js → index.es432.js} +6 -6
  363. package/dist/{index.es448.js.map → index.es432.js.map} +1 -1
  364. package/dist/{index.es449.js → index.es433.js} +2 -2
  365. package/dist/{index.es449.js.map → index.es433.js.map} +1 -1
  366. package/dist/{index.es450.js → index.es434.js} +2 -2
  367. package/dist/{index.es450.js.map → index.es434.js.map} +1 -1
  368. package/dist/{index.es451.js → index.es435.js} +1 -1
  369. package/dist/{index.es451.js.map → index.es435.js.map} +1 -1
  370. package/dist/index.es436.js +132 -0
  371. package/dist/index.es436.js.map +1 -0
  372. package/dist/index.es439.js +67 -203
  373. package/dist/index.es439.js.map +1 -1
  374. package/dist/index.es440.js +9 -22
  375. package/dist/index.es440.js.map +1 -1
  376. package/dist/index.es441.js +12 -391
  377. package/dist/index.es441.js.map +1 -1
  378. package/dist/index.es442.js +60 -23
  379. package/dist/index.es442.js.map +1 -1
  380. package/dist/index.es443.js +65 -29
  381. package/dist/index.es443.js.map +1 -1
  382. package/dist/index.es444.js +4 -5
  383. package/dist/index.es444.js.map +1 -1
  384. package/dist/index.es445.js +23 -5
  385. package/dist/index.es445.js.map +1 -1
  386. package/dist/index.es446.js +15 -3
  387. package/dist/index.es446.js.map +1 -1
  388. package/dist/index.es452.js +22 -128
  389. package/dist/index.es452.js.map +1 -1
  390. package/dist/index.es453.js +12 -68
  391. package/dist/index.es453.js.map +1 -1
  392. package/dist/index.es454.js +26 -7
  393. package/dist/index.es454.js.map +1 -1
  394. package/dist/index.es455.js +5 -14
  395. package/dist/index.es455.js.map +1 -1
  396. package/dist/index.es456.js +14 -61
  397. package/dist/index.es456.js.map +1 -1
  398. package/dist/index.es466.js +2 -2
  399. package/dist/index.es469.js +1 -1
  400. package/dist/index.es472.js +1 -1
  401. package/dist/index.es476.js +9 -9
  402. package/dist/index.es479.js +1 -1
  403. package/dist/index.es480.js +177 -3
  404. package/dist/index.es480.js.map +1 -1
  405. package/dist/index.es481.js +3 -39
  406. package/dist/index.es481.js.map +1 -1
  407. package/dist/index.es482.js +133 -2
  408. package/dist/index.es482.js.map +1 -1
  409. package/dist/index.es483.js +40 -2
  410. package/dist/index.es483.js.map +1 -1
  411. package/dist/index.es484.js +5 -0
  412. package/dist/index.es484.js.map +1 -0
  413. package/dist/index.es485.js +5 -0
  414. package/dist/index.es485.js.map +1 -0
  415. package/dist/index.es491.js +2 -6
  416. package/dist/index.es491.js.map +1 -1
  417. package/dist/index.es492.js +6 -2
  418. package/dist/index.es492.js.map +1 -1
  419. package/dist/index.es58.js +1 -1
  420. package/dist/index.es6.js +1 -1
  421. package/dist/index.es7.js +1 -1
  422. package/dist/index.es8.js +1 -1
  423. package/dist/index.es9.js +2 -2
  424. package/dist/index.es90.js +9 -8
  425. package/dist/index.es90.js.map +1 -1
  426. package/package.json +1 -1
  427. package/dist/index.cjs232.js +0 -2
  428. package/dist/index.cjs232.js.map +0 -1
  429. package/dist/index.cjs426.js +0 -2
  430. package/dist/index.cjs426.js.map +0 -1
  431. package/dist/index.cjs427.js +0 -2
  432. package/dist/index.cjs427.js.map +0 -1
  433. package/dist/index.cjs438.js +0 -2
  434. package/dist/index.cjs438.js.map +0 -1
  435. package/dist/index.cjs457.js +0 -2
  436. package/dist/index.cjs457.js.map +0 -1
  437. package/dist/index.cjs458.js +0 -2
  438. package/dist/index.cjs458.js.map +0 -1
  439. package/dist/index.cjs459.js +0 -2
  440. package/dist/index.cjs459.js.map +0 -1
  441. package/dist/index.cjs460.js +0 -2
  442. package/dist/index.cjs460.js.map +0 -1
  443. package/dist/index.cjs461.js +0 -2
  444. package/dist/index.cjs461.js.map +0 -1
  445. package/dist/index.cjs462.js +0 -2
  446. package/dist/index.cjs462.js.map +0 -1
  447. package/dist/index.cjs463.js +0 -2
  448. package/dist/index.cjs463.js.map +0 -1
  449. package/dist/index.cjs477.js +0 -2
  450. package/dist/index.cjs477.js.map +0 -1
  451. package/dist/index.cjs478.js +0 -2
  452. package/dist/index.cjs478.js.map +0 -1
  453. package/dist/index.es232.js +0 -5
  454. package/dist/index.es232.js.map +0 -1
  455. package/dist/index.es426.js +0 -49
  456. package/dist/index.es426.js.map +0 -1
  457. package/dist/index.es427.js +0 -11
  458. package/dist/index.es427.js.map +0 -1
  459. package/dist/index.es438.js +0 -15
  460. package/dist/index.es438.js.map +0 -1
  461. package/dist/index.es457.js +0 -68
  462. package/dist/index.es457.js.map +0 -1
  463. package/dist/index.es458.js +0 -7
  464. package/dist/index.es458.js.map +0 -1
  465. package/dist/index.es459.js +0 -26
  466. package/dist/index.es459.js.map +0 -1
  467. package/dist/index.es460.js +0 -16
  468. package/dist/index.es460.js.map +0 -1
  469. package/dist/index.es461.js +0 -31
  470. package/dist/index.es461.js.map +0 -1
  471. package/dist/index.es462.js +0 -8
  472. package/dist/index.es462.js.map +0 -1
  473. package/dist/index.es463.js +0 -26
  474. package/dist/index.es463.js.map +0 -1
  475. package/dist/index.es477.js +0 -136
  476. package/dist/index.es477.js.map +0 -1
  477. package/dist/index.es478.js +0 -181
  478. package/dist/index.es478.js.map +0 -1
  479. /package/dist/components/ui/{DoctorModal/DoctorModalFooter/DoctorModalFooter.css → ConsentModal/ConsentModalFooter/ConsentModalFooter.css} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.es442.js","sources":["../node_modules/tslib/tslib.es6.mjs"],"sourcesContent":["/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nvar ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\n });\n }\n return path;\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __esDecorate,\n __runInitializers,\n __propKey,\n __setFunctionName,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n __rewriteRelativeImportExtension,\n};\n"],"names":["__assign","t","s","i","n","p","__rest","__spreadArray","to","from","pack","l","ar"],"mappings":"AA+BU,IAACA,IAAW,WAAW;AAC/B,SAAAA,IAAW,OAAO,UAAU,SAAkBC,GAAG;AAC7C,aAASC,GAAGC,IAAI,GAAGC,IAAI,UAAU,QAAQD,IAAIC,GAAGD,KAAK;AACjD,MAAAD,IAAI,UAAUC,CAAC;AACf,eAASE,KAAKH,EAAG,CAAI,OAAO,UAAU,eAAe,KAAKA,GAAGG,CAAC,MAAGJ,EAAEI,CAAC,IAAIH,EAAEG,CAAC;AAAA,IACrF;AACM,WAAOJ;AAAA,EACb,GACSD,EAAS,MAAM,MAAM,SAAS;AACvC;AAEO,SAASM,EAAOJ,GAAG,GAAG;AAC3B,MAAID,IAAI,CAAE;AACV,WAASI,KAAKH,EAAG,CAAI,OAAO,UAAU,eAAe,KAAKA,GAAGG,CAAC,KAAK,EAAE,QAAQA,CAAC,IAAI,MAC9EJ,EAAEI,CAAC,IAAIH,EAAEG,CAAC;AACd,MAAIH,KAAK,QAAQ,OAAO,OAAO,yBAA0B;AACrD,aAASC,IAAI,GAAGE,IAAI,OAAO,sBAAsBH,CAAC,GAAGC,IAAIE,EAAE,QAAQF;AAC/D,MAAI,EAAE,QAAQE,EAAEF,CAAC,CAAC,IAAI,KAAK,OAAO,UAAU,qBAAqB,KAAKD,GAAGG,EAAEF,CAAC,CAAC,MACzEF,EAAEI,EAAEF,CAAC,CAAC,IAAID,EAAEG,EAAEF,CAAC,CAAC;AAE5B,SAAOF;AACT;AAiKO,SAASM,EAAcC,GAAIC,GAAMC,GAAM;AAC5C,MAAIA,KAAQ,UAAU,WAAW,EAAG,UAASP,IAAI,GAAGQ,IAAIF,EAAK,QAAQG,GAAIT,IAAIQ,GAAGR;AAC5E,KAAIS,KAAM,EAAET,KAAKM,QACRG,MAAIA,IAAK,MAAM,UAAU,MAAM,KAAKH,GAAM,GAAGN,CAAC,IACnDS,EAAGT,CAAC,IAAIM,EAAKN,CAAC;AAGtB,SAAOK,EAAG,OAAOI,KAAM,MAAM,UAAU,MAAM,KAAKH,CAAI,CAAC;AACzD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es442.js","sources":["../node_modules/react-remove-scroll/dist/es2015/handleScroll.js"],"sourcesContent":["var alwaysContainsScroll = function (node) {\n // textarea will always _contain_ scroll inside self. It only can be hidden\n return node.tagName === 'TEXTAREA';\n};\nvar elementCanBeScrolled = function (node, overflow) {\n if (!(node instanceof Element)) {\n return false;\n }\n var styles = window.getComputedStyle(node);\n return (\n // not-not-scrollable\n styles[overflow] !== 'hidden' &&\n // contains scroll inside self\n !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));\n};\nvar elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };\nvar elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };\nexport var locationCouldBeScrolled = function (axis, node) {\n var ownerDocument = node.ownerDocument;\n var current = node;\n do {\n // Skip over shadow root\n if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {\n current = current.host;\n }\n var isScrollable = elementCouldBeScrolled(axis, current);\n if (isScrollable) {\n var _a = getScrollVariables(axis, current), scrollHeight = _a[1], clientHeight = _a[2];\n if (scrollHeight > clientHeight) {\n return true;\n }\n }\n current = current.parentNode;\n } while (current && current !== ownerDocument.body);\n return false;\n};\nvar getVScrollVariables = function (_a) {\n var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;\n return [\n scrollTop,\n scrollHeight,\n clientHeight,\n ];\n};\nvar getHScrollVariables = function (_a) {\n var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;\n return [\n scrollLeft,\n scrollWidth,\n clientWidth,\n ];\n};\nvar elementCouldBeScrolled = function (axis, node) {\n return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);\n};\nvar getScrollVariables = function (axis, node) {\n return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);\n};\nvar getDirectionFactor = function (axis, direction) {\n /**\n * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,\n * and then increasingly negative as you scroll towards the end of the content.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft\n */\n return axis === 'h' && direction === 'rtl' ? -1 : 1;\n};\nexport var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {\n var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);\n var delta = directionFactor * sourceDelta;\n // find scrollable target\n var target = event.target;\n var targetInLock = endTarget.contains(target);\n var shouldCancelScroll = false;\n var isDeltaPositive = delta > 0;\n var availableScroll = 0;\n var availableScrollTop = 0;\n do {\n var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];\n var elementScroll = scroll_1 - capacity - directionFactor * position;\n if (position || elementScroll) {\n if (elementCouldBeScrolled(axis, target)) {\n availableScroll += elementScroll;\n availableScrollTop += position;\n }\n }\n if (target instanceof ShadowRoot) {\n target = target.host;\n }\n else {\n target = target.parentNode;\n }\n } while (\n // portaled content\n (!targetInLock && target !== document.body) ||\n // self content\n (targetInLock && (endTarget.contains(target) || endTarget === target)));\n // handle epsilon around 0 (non standard zoom levels)\n if (isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScroll) < 1) || (!noOverscroll && delta > availableScroll))) {\n shouldCancelScroll = true;\n }\n else if (!isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScrollTop) < 1) || (!noOverscroll && -delta > availableScrollTop))) {\n shouldCancelScroll = true;\n }\n return shouldCancelScroll;\n};\n"],"names":["alwaysContainsScroll","node","elementCanBeScrolled","overflow","styles","elementCouldBeVScrolled","elementCouldBeHScrolled","locationCouldBeScrolled","axis","ownerDocument","current","isScrollable","elementCouldBeScrolled","_a","getScrollVariables","scrollHeight","clientHeight","getVScrollVariables","scrollTop","getHScrollVariables","scrollLeft","scrollWidth","clientWidth","getDirectionFactor","direction","handleScroll","endTarget","event","sourceDelta","noOverscroll","directionFactor","delta","target","targetInLock","shouldCancelScroll","isDeltaPositive","availableScroll","availableScrollTop","position","scroll_1","capacity","elementScroll"],"mappings":"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","x_google_ignoreList":[0]}
@@ -1,32 +1,68 @@
1
- import { __rest as k, __assign as r } from "./index.es442.js";
2
- import * as a from "react";
3
- import { zeroRightClassName as E, fullWidthClassName as I } from "./index.es445.js";
4
- import { effectCar as Z } from "./index.es446.js";
5
- import { useMergeRefs as W } from "./index.es447.js";
6
- var o = function() {
7
- }, m = a.forwardRef(function(e, d) {
8
- var l = a.useRef(null), n = a.useState({
9
- onScrollCapture: o,
10
- onWheelCapture: o,
11
- onTouchMoveCapture: o
12
- }), f = n[0], h = n[1], u = e.forwardProps, t = e.children, v = e.className, C = e.removeScrollBar, g = e.enabled, P = e.shards, R = e.sideCar, S = e.noIsolation, b = e.inert, w = e.allowPinchZoom, s = e.as, N = s === void 0 ? "div" : s, M = e.gapMode, _ = k(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), B = R, i = W([l, d]), c = r(r({}, _), f);
13
- return a.createElement(
14
- a.Fragment,
15
- null,
16
- g && a.createElement(B, { sideCar: Z, removeScrollBar: C, shards: P, noIsolation: S, inert: b, setCallbacks: h, allowPinchZoom: !!w, lockRef: l, gapMode: M }),
17
- u ? a.cloneElement(a.Children.only(t), r(r({}, c), { ref: i })) : a.createElement(N, r({}, c, { className: v, ref: i }), t)
18
- );
19
- });
20
- m.defaultProps = {
21
- enabled: !0,
22
- removeScrollBar: !0,
23
- inert: !1
24
- };
25
- m.classNames = {
26
- fullWidth: I,
27
- zeroRight: E
28
- };
1
+ import { __assign as d } from "./index.es423.js";
2
+ function l(r) {
3
+ return r;
4
+ }
5
+ function h(r, t) {
6
+ t === void 0 && (t = l);
7
+ var e = [], o = !1, c = {
8
+ read: function() {
9
+ if (o)
10
+ throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
11
+ return e.length ? e[e.length - 1] : r;
12
+ },
13
+ useMedium: function(u) {
14
+ var n = t(u, o);
15
+ return e.push(n), function() {
16
+ e = e.filter(function(i) {
17
+ return i !== n;
18
+ });
19
+ };
20
+ },
21
+ assignSyncMedium: function(u) {
22
+ for (o = !0; e.length; ) {
23
+ var n = e;
24
+ e = [], n.forEach(u);
25
+ }
26
+ e = {
27
+ push: function(i) {
28
+ return u(i);
29
+ },
30
+ filter: function() {
31
+ return e;
32
+ }
33
+ };
34
+ },
35
+ assignMedium: function(u) {
36
+ o = !0;
37
+ var n = [];
38
+ if (e.length) {
39
+ var i = e;
40
+ e = [], i.forEach(u), n = e;
41
+ }
42
+ var s = function() {
43
+ var f = n;
44
+ n = [], f.forEach(u);
45
+ }, a = function() {
46
+ return Promise.resolve().then(s);
47
+ };
48
+ a(), e = {
49
+ push: function(f) {
50
+ n.push(f), a();
51
+ },
52
+ filter: function(f) {
53
+ return n = n.filter(f), e;
54
+ }
55
+ };
56
+ }
57
+ };
58
+ return c;
59
+ }
60
+ function v(r) {
61
+ r === void 0 && (r = {});
62
+ var t = h(null);
63
+ return t.options = d({ async: !0, ssr: !1 }, r), t;
64
+ }
29
65
  export {
30
- m as RemoveScroll
66
+ v as createSidecarMedium
31
67
  };
32
68
  //# sourceMappingURL=index.es443.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es443.js","sources":["../node_modules/react-remove-scroll/dist/es2015/UI.js"],"sourcesContent":["import { __assign, __rest } from \"tslib\";\nimport * as React from 'react';\nimport { fullWidthClassName, zeroRightClassName } from 'react-remove-scroll-bar/constants';\nimport { useMergeRefs } from 'use-callback-ref';\nimport { effectCar } from './medium';\nvar nothing = function () {\n return;\n};\n/**\n * Removes scrollbar from the page and contain the scroll within the Lock\n */\nvar RemoveScroll = React.forwardRef(function (props, parentRef) {\n var ref = React.useRef(null);\n var _a = React.useState({\n onScrollCapture: nothing,\n onWheelCapture: nothing,\n onTouchMoveCapture: nothing,\n }), callbacks = _a[0], setCallbacks = _a[1];\n var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, gapMode = props.gapMode, rest = __rest(props, [\"forwardProps\", \"children\", \"className\", \"removeScrollBar\", \"enabled\", \"shards\", \"sideCar\", \"noIsolation\", \"inert\", \"allowPinchZoom\", \"as\", \"gapMode\"]);\n var SideCar = sideCar;\n var containerRef = useMergeRefs([ref, parentRef]);\n var containerProps = __assign(__assign({}, rest), callbacks);\n return (React.createElement(React.Fragment, null,\n enabled && (React.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode: gapMode })),\n forwardProps ? (React.cloneElement(React.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef }))) : (React.createElement(Container, __assign({}, containerProps, { className: className, ref: containerRef }), children))));\n});\nRemoveScroll.defaultProps = {\n enabled: true,\n removeScrollBar: true,\n inert: false,\n};\nRemoveScroll.classNames = {\n fullWidth: fullWidthClassName,\n zeroRight: zeroRightClassName,\n};\nexport { RemoveScroll };\n"],"names":["nothing","RemoveScroll","React","props","parentRef","ref","_a","callbacks","setCallbacks","forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","_b","Container","gapMode","rest","__rest","SideCar","containerRef","useMergeRefs","containerProps","__assign","effectCar","fullWidthClassName","zeroRightClassName"],"mappings":";;;;;AAKA,IAAIA,IAAU,WAAY;AAE1B,GAIIC,IAAeC,EAAM,WAAW,SAAUC,GAAOC,GAAW;AAC5D,MAAIC,IAAMH,EAAM,OAAO,IAAI,GACvBI,IAAKJ,EAAM,SAAS;AAAA,IACpB,iBAAiBF;AAAA,IACjB,gBAAgBA;AAAA,IAChB,oBAAoBA;AAAA,EAC5B,CAAK,GAAGO,IAAYD,EAAG,CAAC,GAAGE,IAAeF,EAAG,CAAC,GACtCG,IAAeN,EAAM,cAAcO,IAAWP,EAAM,UAAUQ,IAAYR,EAAM,WAAWS,IAAkBT,EAAM,iBAAiBU,IAAUV,EAAM,SAASW,IAASX,EAAM,QAAQY,IAAUZ,EAAM,SAASa,IAAcb,EAAM,aAAac,IAAQd,EAAM,OAAOe,IAAiBf,EAAM,gBAAgBgB,IAAKhB,EAAM,IAAIiB,IAAYD,MAAO,SAAS,QAAQA,GAAIE,IAAUlB,EAAM,SAASmB,IAAOC,EAAOpB,GAAO,CAAC,gBAAgB,YAAY,aAAa,mBAAmB,WAAW,UAAU,WAAW,eAAe,SAAS,kBAAkB,MAAM,SAAS,CAAC,GACtiBqB,IAAUT,GACVU,IAAeC,EAAa,CAACrB,GAAKD,CAAS,CAAC,GAC5CuB,IAAiBC,EAASA,EAAS,CAAA,GAAIN,CAAI,GAAGf,CAAS;AAC3D,SAAQL,EAAM;AAAA,IAAcA,EAAM;AAAA,IAAU;AAAA,IACxCW,KAAYX,EAAM,cAAcsB,GAAS,EAAE,SAASK,GAAW,iBAAiBjB,GAAiB,QAAQE,GAAQ,aAAaE,GAAa,OAAOC,GAAO,cAAcT,GAAc,gBAAgB,CAAC,CAACU,GAAgB,SAASb,GAAK,SAASgB,EAAS,CAAA;AAAA,IACvPZ,IAAgBP,EAAM,aAAaA,EAAM,SAAS,KAAKQ,CAAQ,GAAGkB,EAASA,EAAS,CAAE,GAAED,CAAc,GAAG,EAAE,KAAKF,EAAY,CAAE,CAAC,IAAMvB,EAAM,cAAckB,GAAWQ,EAAS,CAAE,GAAED,GAAgB,EAAE,WAAWhB,GAAW,KAAKc,EAAc,CAAA,GAAGf,CAAQ;AAAA,EAAE;AACjQ,CAAC;AACDT,EAAa,eAAe;AAAA,EACxB,SAAS;AAAA,EACT,iBAAiB;AAAA,EACjB,OAAO;AACX;AACAA,EAAa,aAAa;AAAA,EACtB,WAAW6B;AAAA,EACX,WAAWC;AACf;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es443.js","sources":["../node_modules/use-sidecar/dist/es2015/medium.js"],"sourcesContent":["import { __assign } from \"tslib\";\nfunction ItoI(a) {\n return a;\n}\nfunction innerCreateMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n var buffer = [];\n var assigned = false;\n var medium = {\n read: function () {\n if (assigned) {\n throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');\n }\n if (buffer.length) {\n return buffer[buffer.length - 1];\n }\n return defaults;\n },\n useMedium: function (data) {\n var item = middleware(data, assigned);\n buffer.push(item);\n return function () {\n buffer = buffer.filter(function (x) { return x !== item; });\n };\n },\n assignSyncMedium: function (cb) {\n assigned = true;\n while (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n }\n buffer = {\n push: function (x) { return cb(x); },\n filter: function () { return buffer; },\n };\n },\n assignMedium: function (cb) {\n assigned = true;\n var pendingQueue = [];\n if (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n pendingQueue = buffer;\n }\n var executeQueue = function () {\n var cbs = pendingQueue;\n pendingQueue = [];\n cbs.forEach(cb);\n };\n var cycle = function () { return Promise.resolve().then(executeQueue); };\n cycle();\n buffer = {\n push: function (x) {\n pendingQueue.push(x);\n cycle();\n },\n filter: function (filter) {\n pendingQueue = pendingQueue.filter(filter);\n return buffer;\n },\n };\n },\n };\n return medium;\n}\nexport function createMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n return innerCreateMedium(defaults, middleware);\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function createSidecarMedium(options) {\n if (options === void 0) { options = {}; }\n var medium = innerCreateMedium(null);\n medium.options = __assign({ async: true, ssr: false }, options);\n return medium;\n}\n"],"names":["ItoI","a","innerCreateMedium","defaults","middleware","buffer","assigned","medium","data","item","x","cb","cbs","pendingQueue","executeQueue","cycle","filter","createSidecarMedium","options","__assign"],"mappings":";AACA,SAASA,EAAKC,GAAG;AACb,SAAOA;AACX;AACA,SAASC,EAAkBC,GAAUC,GAAY;AAC7C,EAAIA,MAAe,WAAUA,IAAaJ;AAC1C,MAAIK,IAAS,CAAE,GACXC,IAAW,IACXC,IAAS;AAAA,IACT,MAAM,WAAY;AACd,UAAID;AACA,cAAM,IAAI,MAAM,kGAAkG;AAEtH,aAAID,EAAO,SACAA,EAAOA,EAAO,SAAS,CAAC,IAE5BF;AAAA,IACV;AAAA,IACD,WAAW,SAAUK,GAAM;AACvB,UAAIC,IAAOL,EAAWI,GAAMF,CAAQ;AACpC,aAAAD,EAAO,KAAKI,CAAI,GACT,WAAY;AACf,QAAAJ,IAASA,EAAO,OAAO,SAAUK,GAAG;AAAE,iBAAOA,MAAMD;AAAA,SAAO;AAAA,MAC7D;AAAA,IACJ;AAAA,IACD,kBAAkB,SAAUE,GAAI;AAE5B,WADAL,IAAW,IACJD,EAAO,UAAQ;AAClB,YAAIO,IAAMP;AACV,QAAAA,IAAS,CAAE,GACXO,EAAI,QAAQD,CAAE;AAAA,MAC9B;AACY,MAAAN,IAAS;AAAA,QACL,MAAM,SAAUK,GAAG;AAAE,iBAAOC,EAAGD,CAAC;AAAA,QAAI;AAAA,QACpC,QAAQ,WAAY;AAAE,iBAAOL;AAAA,QAAS;AAAA,MACzC;AAAA,IACJ;AAAA,IACD,cAAc,SAAUM,GAAI;AACxB,MAAAL,IAAW;AACX,UAAIO,IAAe,CAAE;AACrB,UAAIR,EAAO,QAAQ;AACf,YAAIO,IAAMP;AACV,QAAAA,IAAS,CAAE,GACXO,EAAI,QAAQD,CAAE,GACdE,IAAeR;AAAA,MAC/B;AACY,UAAIS,IAAe,WAAY;AAC3B,YAAIF,IAAMC;AACV,QAAAA,IAAe,CAAE,GACjBD,EAAI,QAAQD,CAAE;AAAA,MACjB,GACGI,IAAQ,WAAY;AAAE,eAAO,QAAQ,QAAO,EAAG,KAAKD,CAAY;AAAA,MAAI;AACxE,MAAAC,EAAO,GACPV,IAAS;AAAA,QACL,MAAM,SAAUK,GAAG;AACf,UAAAG,EAAa,KAAKH,CAAC,GACnBK,EAAO;AAAA,QACV;AAAA,QACD,QAAQ,SAAUC,GAAQ;AACtB,iBAAAH,IAAeA,EAAa,OAAOG,CAAM,GAClCX;AAAA,QACV;AAAA,MACJ;AAAA,IACJ;AAAA,EACJ;AACD,SAAOE;AACX;AAMO,SAASU,EAAoBC,GAAS;AACzC,EAAIA,MAAY,WAAUA,IAAU,CAAA;AACpC,MAAIX,IAASL,EAAkB,IAAI;AACnC,SAAAK,EAAO,UAAUY,EAAS,EAAE,OAAO,IAAM,KAAK,GAAO,GAAED,CAAO,GACvDX;AACX;","x_google_ignoreList":[0]}
@@ -1,8 +1,7 @@
1
- import { RemoveScrollSideCar as r } from "./index.es448.js";
2
- import { effectCar as o } from "./index.es446.js";
3
- import { exportSidecar as e } from "./index.es449.js";
4
- const f = e(o, r);
1
+ function i(n, t) {
2
+ return typeof n == "function" ? n(t) : n && (n.current = t), n;
3
+ }
5
4
  export {
6
- f as default
5
+ i as assignRef
7
6
  };
8
7
  //# sourceMappingURL=index.es444.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es444.js","sources":["../node_modules/react-remove-scroll/dist/es2015/sidecar.js"],"sourcesContent":["import { exportSidecar } from 'use-sidecar';\nimport { RemoveScrollSideCar } from './SideEffect';\nimport { effectCar } from './medium';\nexport default exportSidecar(effectCar, RemoveScrollSideCar);\n"],"names":["SideCar","exportSidecar","effectCar","RemoveScrollSideCar"],"mappings":";;;AAGA,MAAAA,IAAeC,EAAcC,GAAWC,CAAmB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es444.js","sources":["../node_modules/use-callback-ref/dist/es2015/assignRef.js"],"sourcesContent":["/**\n * Assigns a value for a given ref, no matter of the ref format\n * @param {RefObject} ref - a callback function or ref object\n * @param value - a new value\n *\n * @see https://github.com/theKashey/use-callback-ref#assignref\n * @example\n * const refObject = useRef();\n * const refFn = (ref) => {....}\n *\n * assignRef(refObject, \"refValue\");\n * assignRef(refFn, \"refValue\");\n */\nexport function assignRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n }\n else if (ref) {\n ref.current = value;\n }\n return ref;\n}\n"],"names":["assignRef","ref","value"],"mappings":"AAaO,SAASA,EAAUC,GAAKC,GAAO;AAClC,SAAI,OAAOD,KAAQ,aACfA,EAAIC,CAAK,IAEJD,MACLA,EAAI,UAAUC,IAEXD;AACX;","x_google_ignoreList":[0]}
@@ -1,8 +1,26 @@
1
- var r = "right-scroll-bar-position", a = "width-before-scroll-bar", l = "with-scroll-bars-hidden", e = "--removed-body-scroll-bar-size";
1
+ import { useState as u } from "react";
2
+ function n(c, r) {
3
+ var e = u(function() {
4
+ return {
5
+ // value
6
+ value: c,
7
+ // last callback
8
+ callback: r,
9
+ // "memoized" public interface
10
+ facade: {
11
+ get current() {
12
+ return e.value;
13
+ },
14
+ set current(a) {
15
+ var t = e.value;
16
+ t !== a && (e.value = a, e.callback(a, t));
17
+ }
18
+ }
19
+ };
20
+ })[0];
21
+ return e.callback = r, e.facade;
22
+ }
2
23
  export {
3
- a as fullWidthClassName,
4
- l as noScrollbarsClassName,
5
- e as removedBarSizeVariable,
6
- r as zeroRightClassName
24
+ n as useCallbackRef
7
25
  };
8
26
  //# sourceMappingURL=index.es445.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es445.js","sources":["../node_modules/react-remove-scroll-bar/dist/es2015/constants.js"],"sourcesContent":["export var zeroRightClassName = 'right-scroll-bar-position';\nexport var fullWidthClassName = 'width-before-scroll-bar';\nexport var noScrollbarsClassName = 'with-scroll-bars-hidden';\n/**\n * Name of a CSS variable containing the amount of \"hidden\" scrollbar\n * ! might be undefined ! use will fallback!\n */\nexport var removedBarSizeVariable = '--removed-body-scroll-bar-size';\n"],"names":["zeroRightClassName","fullWidthClassName","noScrollbarsClassName","removedBarSizeVariable"],"mappings":"AAAU,IAACA,IAAqB,6BACrBC,IAAqB,2BACrBC,IAAwB,2BAKxBC,IAAyB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es445.js","sources":["../node_modules/use-callback-ref/dist/es2015/useRef.js"],"sourcesContent":["import { useState } from 'react';\n/**\n * creates a MutableRef with ref change callback\n * @param initialValue - initial ref value\n * @param {Function} callback - a callback to run when value changes\n *\n * @example\n * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);\n * ref.current = 1;\n * // prints 0 -> 1\n *\n * @see https://reactjs.org/docs/hooks-reference.html#useref\n * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref\n * @returns {MutableRefObject}\n */\nexport function useCallbackRef(initialValue, callback) {\n var ref = useState(function () { return ({\n // value\n value: initialValue,\n // last callback\n callback: callback,\n // \"memoized\" public interface\n facade: {\n get current() {\n return ref.value;\n },\n set current(value) {\n var last = ref.value;\n if (last !== value) {\n ref.value = value;\n ref.callback(value, last);\n }\n },\n },\n }); })[0];\n // update callback\n ref.callback = callback;\n return ref.facade;\n}\n"],"names":["useCallbackRef","initialValue","callback","ref","useState","value","last"],"mappings":";AAeO,SAASA,EAAeC,GAAcC,GAAU;AACnD,MAAIC,IAAMC,EAAS,WAAY;AAAE,WAAQ;AAAA;AAAA,MAErC,OAAOH;AAAA;AAAA,MAEP,UAAUC;AAAA;AAAA,MAEV,QAAQ;AAAA,QACJ,IAAI,UAAU;AACV,iBAAOC,EAAI;AAAA,QACd;AAAA,QACD,IAAI,QAAQE,GAAO;AACf,cAAIC,IAAOH,EAAI;AACf,UAAIG,MAASD,MACTF,EAAI,QAAQE,GACZF,EAAI,SAASE,GAAOC,CAAI;AAAA,QAE/B;AAAA,MACJ;AAAA,IACT;AAAA,EAAO,CAAE,EAAE,CAAC;AAER,SAAAH,EAAI,WAAWD,GACRC,EAAI;AACf;","x_google_ignoreList":[0]}
@@ -1,6 +1,18 @@
1
- import { createSidecarMedium as e } from "./index.es457.js";
2
- var a = e();
1
+ import { useEffect as l } from "react";
2
+ const f = (t, n) => {
3
+ l(() => {
4
+ if (!n || !t.current) return;
5
+ const o = t.current.querySelectorAll(
6
+ 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
7
+ ), c = o[0], r = o[o.length - 1], s = (e) => {
8
+ e.key === "Tab" && (e.shiftKey ? document.activeElement === c && (r.focus(), e.preventDefault()) : document.activeElement === r && (c.focus(), e.preventDefault()));
9
+ }, u = document.activeElement;
10
+ return c.focus(), document.addEventListener("keydown", s), () => {
11
+ document.removeEventListener("keydown", s), n && (u == null || u.focus());
12
+ };
13
+ }, [n, t]);
14
+ };
3
15
  export {
4
- a as effectCar
16
+ f as useFocusTrap
5
17
  };
6
18
  //# sourceMappingURL=index.es446.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es446.js","sources":["../node_modules/react-remove-scroll/dist/es2015/medium.js"],"sourcesContent":["import { createSidecarMedium } from 'use-sidecar';\nexport var effectCar = createSidecarMedium();\n"],"names":["effectCar","createSidecarMedium"],"mappings":";AACU,IAACA,IAAYC,EAAmB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es446.js","sources":["../src/hooks/useFocusTrap.ts"],"sourcesContent":["import { useEffect } from \"react\";\n\nexport const useFocusTrap = (\n ref: React.RefObject<HTMLElement | null>,\n isActive: boolean,\n) => {\n useEffect(() => {\n if (!isActive || !ref.current) return;\n\n const focusableElements = ref.current.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])',\n );\n const firstFocusableElement = focusableElements[0] as HTMLElement;\n const lastFocusableElement = focusableElements[\n focusableElements.length - 1\n ] as HTMLElement;\n\n const handleKeyDown = (e: KeyboardEvent) => {\n if (e.key !== \"Tab\") return;\n\n if (e.shiftKey) {\n if (document.activeElement === firstFocusableElement) {\n lastFocusableElement.focus();\n e.preventDefault();\n }\n } else {\n if (document.activeElement === lastFocusableElement) {\n firstFocusableElement.focus();\n e.preventDefault();\n }\n }\n };\n\n const previousActiveElement = document.activeElement as HTMLElement;\n\n firstFocusableElement.focus();\n\n document.addEventListener(\"keydown\", handleKeyDown);\n\n return () => {\n document.removeEventListener(\"keydown\", handleKeyDown);\n\n if (isActive) {\n previousActiveElement?.focus();\n }\n };\n }, [isActive, ref]);\n};\n"],"names":["useFocusTrap","ref","isActive","useEffect","focusableElements","firstFocusableElement","lastFocusableElement","handleKeyDown","previousActiveElement"],"mappings":";AAEa,MAAAA,IAAe,CAC1BC,GACAC,MACG;AACH,EAAAC,EAAU,MAAM;AACd,QAAI,CAACD,KAAY,CAACD,EAAI,QAAS;AAEzB,UAAAG,IAAoBH,EAAI,QAAQ;AAAA,MACpC;AAAA,IACF,GACMI,IAAwBD,EAAkB,CAAC,GAC3CE,IAAuBF,EAC3BA,EAAkB,SAAS,CAC7B,GAEMG,IAAgB,CAAC,MAAqB;AACtC,MAAA,EAAE,QAAQ,UAEV,EAAE,WACA,SAAS,kBAAkBF,MAC7BC,EAAqB,MAAM,GAC3B,EAAE,eAAe,KAGf,SAAS,kBAAkBA,MAC7BD,EAAsB,MAAM,GAC5B,EAAE,eAAe;AAAA,IAGvB,GAEMG,IAAwB,SAAS;AAEvC,WAAAH,EAAsB,MAAM,GAEnB,SAAA,iBAAiB,WAAWE,CAAa,GAE3C,MAAM;AACF,eAAA,oBAAoB,WAAWA,CAAa,GAEjDL,MACFM,KAAA,QAAAA,EAAuB;AAAA,IAE3B;AAAA,EAAA,GACC,CAACN,GAAUD,CAAG,CAAC;AACpB;"}
@@ -1,132 +1,26 @@
1
- function c() {
2
- return typeof window < "u";
3
- }
4
- function s(n) {
5
- return p(n) ? (n.nodeName || "").toLowerCase() : "#document";
6
- }
7
- function i(n) {
8
- var t;
9
- return (n == null || (t = n.ownerDocument) == null ? void 0 : t.defaultView) || window;
10
- }
11
- function E(n) {
12
- var t;
13
- return (t = (p(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : t.documentElement;
14
- }
15
- function p(n) {
16
- return c() ? n instanceof Node || n instanceof i(n).Node : !1;
17
- }
18
- function m(n) {
19
- return c() ? n instanceof Element || n instanceof i(n).Element : !1;
20
- }
21
- function w(n) {
22
- return c() ? n instanceof HTMLElement || n instanceof i(n).HTMLElement : !1;
23
- }
24
- function a(n) {
25
- return !c() || typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof i(n).ShadowRoot;
26
- }
27
- function y(n) {
28
- const {
29
- overflow: t,
30
- overflowX: e,
31
- overflowY: o,
32
- display: r
33
- } = b(n);
34
- return /auto|scroll|overlay|hidden|clip/.test(t + o + e) && !["inline", "contents"].includes(r);
35
- }
36
- function D(n) {
37
- return ["table", "td", "th"].includes(s(n));
38
- }
39
- function N(n) {
40
- return [":popover-open", ":modal"].some((t) => {
41
- try {
42
- return n.matches(t);
43
- } catch {
44
- return !1;
45
- }
46
- });
47
- }
48
- function T(n) {
49
- const t = L(), e = m(n) ? b(n) : n;
50
- return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => e[o] ? e[o] !== "none" : !1) || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (e.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (e.contain || "").includes(o));
51
- }
52
- function k(n) {
53
- let t = u(n);
54
- for (; w(t) && !g(t); ) {
55
- if (T(t))
56
- return t;
57
- if (N(t))
58
- return null;
59
- t = u(t);
60
- }
61
- return null;
62
- }
63
- function L() {
64
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
65
- }
66
- function g(n) {
67
- return ["html", "body", "#document"].includes(s(n));
68
- }
69
- function b(n) {
70
- return i(n).getComputedStyle(n);
71
- }
72
- function C(n) {
73
- return m(n) ? {
74
- scrollLeft: n.scrollLeft,
75
- scrollTop: n.scrollTop
76
- } : {
77
- scrollLeft: n.scrollX,
78
- scrollTop: n.scrollY
1
+ var a = {
2
+ left: 0,
3
+ top: 0,
4
+ right: 0,
5
+ gap: 0
6
+ }, e = function(t) {
7
+ return parseInt(t || "", 10) || 0;
8
+ }, o = function(t) {
9
+ var n = window.getComputedStyle(document.body), i = n[t === "padding" ? "paddingLeft" : "marginLeft"], r = n[t === "padding" ? "paddingTop" : "marginTop"], d = n[t === "padding" ? "paddingRight" : "marginRight"];
10
+ return [e(i), e(r), e(d)];
11
+ }, f = function(t) {
12
+ if (t === void 0 && (t = "margin"), typeof window > "u")
13
+ return a;
14
+ var n = o(t), i = document.documentElement.clientWidth, r = window.innerWidth;
15
+ return {
16
+ left: n[0],
17
+ top: n[1],
18
+ right: n[2],
19
+ gap: Math.max(0, r - i + n[2] - n[0])
79
20
  };
80
- }
81
- function u(n) {
82
- if (s(n) === "html")
83
- return n;
84
- const t = (
85
- // Step into the shadow DOM of the parent of a slotted node.
86
- n.assignedSlot || // DOM Element detected.
87
- n.parentNode || // ShadowRoot detected.
88
- a(n) && n.host || // Fallback.
89
- E(n)
90
- );
91
- return a(t) ? t.host : t;
92
- }
93
- function h(n) {
94
- const t = u(n);
95
- return g(t) ? n.ownerDocument ? n.ownerDocument.body : n.body : w(t) && y(t) ? t : h(t);
96
- }
97
- function d(n, t, e) {
98
- var o;
99
- t === void 0 && (t = []), e === void 0 && (e = !0);
100
- const r = h(n), S = r === ((o = n.ownerDocument) == null ? void 0 : o.body), l = i(r);
101
- if (S) {
102
- const f = v(l);
103
- return t.concat(l, l.visualViewport || [], y(r) ? r : [], f && e ? d(f) : []);
104
- }
105
- return t.concat(r, d(r, [], e));
106
- }
107
- function v(n) {
108
- return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
109
- }
21
+ };
110
22
  export {
111
- b as getComputedStyle,
112
- k as getContainingBlock,
113
- E as getDocumentElement,
114
- v as getFrameElement,
115
- h as getNearestOverflowAncestor,
116
- s as getNodeName,
117
- C as getNodeScroll,
118
- d as getOverflowAncestors,
119
- u as getParentNode,
120
- i as getWindow,
121
- T as isContainingBlock,
122
- m as isElement,
123
- w as isHTMLElement,
124
- g as isLastTraversableNode,
125
- p as isNode,
126
- y as isOverflowElement,
127
- a as isShadowRoot,
128
- D as isTableElement,
129
- N as isTopLayer,
130
- L as isWebKit
23
+ f as getGapWidth,
24
+ a as zeroGap
131
25
  };
132
26
  //# sourceMappingURL=index.es452.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es452.js","sources":["../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs"],"sourcesContent":["function hasWindow() {\n return typeof window !== 'undefined';\n}\nfunction getNodeName(node) {\n if (isNode(node)) {\n return (node.nodeName || '').toLowerCase();\n }\n // Mocked nodes in testing environments may not be instances of Node. By\n // returning `#document` an infinite loop won't occur.\n // https://github.com/floating-ui/floating-ui/issues/2317\n return '#document';\n}\nfunction getWindow(node) {\n var _node$ownerDocument;\n return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n var _ref;\n return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n if (!hasWindow() || typeof ShadowRoot === 'undefined') {\n return false;\n }\n return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);\n}\nfunction isTableElement(element) {\n return ['table', 'td', 'th'].includes(getNodeName(element));\n}\nfunction isTopLayer(element) {\n return [':popover-open', ':modal'].some(selector => {\n try {\n return element.matches(selector);\n } catch (e) {\n return false;\n }\n });\n}\nfunction isContainingBlock(elementOrCss) {\n const webkit = isWebKit();\n const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n // https://drafts.csswg.org/css-transforms-2/#individual-transforms\n return ['transform', 'translate', 'scale', 'rotate', 'perspective'].some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else if (isTopLayer(currentNode)) {\n return null;\n }\n currentNode = getParentNode(currentNode);\n }\n return null;\n}\nfunction isWebKit() {\n if (typeof CSS === 'undefined' || !CSS.supports) return false;\n return CSS.supports('-webkit-backdrop-filter', 'none');\n}\nfunction isLastTraversableNode(node) {\n return ['html', 'body', '#document'].includes(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.scrollX,\n scrollTop: element.scrollY\n };\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n return node.ownerDocument ? node.ownerDocument.body : node.body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n var _node$ownerDocument2;\n if (list === void 0) {\n list = [];\n }\n if (traverseIframes === void 0) {\n traverseIframes = true;\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n const frameElement = getFrameElement(win);\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);\n }\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n}\nfunction getFrameElement(win) {\n return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getFrameElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isTopLayer, isWebKit };\n"],"names":["hasWindow","getNodeName","node","isNode","getWindow","_node$ownerDocument","getDocumentElement","_ref","value","isElement","isHTMLElement","isShadowRoot","isOverflowElement","element","overflow","overflowX","overflowY","display","getComputedStyle","isTableElement","isTopLayer","selector","isContainingBlock","elementOrCss","webkit","isWebKit","css","getContainingBlock","currentNode","getParentNode","isLastTraversableNode","getNodeScroll","result","getNearestOverflowAncestor","parentNode","getOverflowAncestors","list","traverseIframes","_node$ownerDocument2","scrollableAncestor","isBody","win","frameElement","getFrameElement"],"mappings":"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","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es452.js","sources":["../node_modules/react-remove-scroll-bar/dist/es2015/utils.js"],"sourcesContent":["export var zeroGap = {\n left: 0,\n top: 0,\n right: 0,\n gap: 0,\n};\nvar parse = function (x) { return parseInt(x || '', 10) || 0; };\nvar getOffset = function (gapMode) {\n var cs = window.getComputedStyle(document.body);\n var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];\n var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];\n var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];\n return [parse(left), parse(top), parse(right)];\n};\nexport var getGapWidth = function (gapMode) {\n if (gapMode === void 0) { gapMode = 'margin'; }\n if (typeof window === 'undefined') {\n return zeroGap;\n }\n var offsets = getOffset(gapMode);\n var documentWidth = document.documentElement.clientWidth;\n var windowWidth = window.innerWidth;\n return {\n left: offsets[0],\n top: offsets[1],\n right: offsets[2],\n gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),\n };\n};\n"],"names":["zeroGap","parse","x","getOffset","gapMode","cs","left","top","right","getGapWidth","offsets","documentWidth","windowWidth"],"mappings":"AAAU,IAACA,IAAU;AAAA,EACjB,MAAM;AAAA,EACN,KAAK;AAAA,EACL,OAAO;AAAA,EACP,KAAK;AACT,GACIC,IAAQ,SAAUC,GAAG;AAAE,SAAO,SAASA,KAAK,IAAI,EAAE,KAAK;AAAI,GAC3DC,IAAY,SAAUC,GAAS;AAC/B,MAAIC,IAAK,OAAO,iBAAiB,SAAS,IAAI,GAC1CC,IAAOD,EAAGD,MAAY,YAAY,gBAAgB,YAAY,GAC9DG,IAAMF,EAAGD,MAAY,YAAY,eAAe,WAAW,GAC3DI,IAAQH,EAAGD,MAAY,YAAY,iBAAiB,aAAa;AACrE,SAAO,CAACH,EAAMK,CAAI,GAAGL,EAAMM,CAAG,GAAGN,EAAMO,CAAK,CAAC;AACjD,GACWC,IAAc,SAAUL,GAAS;AAExC,MADIA,MAAY,WAAUA,IAAU,WAChC,OAAO,SAAW;AAClB,WAAOJ;AAEX,MAAIU,IAAUP,EAAUC,CAAO,GAC3BO,IAAgB,SAAS,gBAAgB,aACzCC,IAAc,OAAO;AACzB,SAAO;AAAA,IACH,MAAMF,EAAQ,CAAC;AAAA,IACf,KAAKA,EAAQ,CAAC;AAAA,IACd,OAAOA,EAAQ,CAAC;AAAA,IAChB,KAAK,KAAK,IAAI,GAAGE,IAAcD,IAAgBD,EAAQ,CAAC,IAAIA,EAAQ,CAAC,CAAC;AAAA,EACzE;AACL;","x_google_ignoreList":[0]}
@@ -1,72 +1,16 @@
1
- import * as d from "react";
2
- import { styleSingleton as f } from "./index.es454.js";
3
- import { noScrollbarsClassName as p, zeroRightClassName as g, fullWidthClassName as l, removedBarSizeVariable as v } from "./index.es445.js";
4
- import { getGapWidth as m } from "./index.es463.js";
5
- var b = f(), e = "data-scroll-locked", h = function(n, a, o, t) {
6
- var r = n.left, i = n.top, s = n.right, c = n.gap;
7
- return o === void 0 && (o = "margin"), `
8
- .`.concat(p, ` {
9
- overflow: hidden `).concat(t, `;
10
- padding-right: `).concat(c, "px ").concat(t, `;
11
- }
12
- body[`).concat(e, `] {
13
- overflow: hidden `).concat(t, `;
14
- overscroll-behavior: contain;
15
- `).concat([
16
- a && "position: relative ".concat(t, ";"),
17
- o === "margin" && `
18
- padding-left: `.concat(r, `px;
19
- padding-top: `).concat(i, `px;
20
- padding-right: `).concat(s, `px;
21
- margin-left:0;
22
- margin-top:0;
23
- margin-right: `).concat(c, "px ").concat(t, `;
24
- `),
25
- o === "padding" && "padding-right: ".concat(c, "px ").concat(t, ";")
26
- ].filter(Boolean).join(""), `
27
- }
28
-
29
- .`).concat(g, ` {
30
- right: `).concat(c, "px ").concat(t, `;
31
- }
32
-
33
- .`).concat(l, ` {
34
- margin-right: `).concat(c, "px ").concat(t, `;
35
- }
36
-
37
- .`).concat(g, " .").concat(g, ` {
38
- right: 0 `).concat(t, `;
39
- }
40
-
41
- .`).concat(l, " .").concat(l, ` {
42
- margin-right: 0 `).concat(t, `;
43
- }
44
-
45
- body[`).concat(e, `] {
46
- `).concat(v, ": ").concat(c, `px;
47
- }
48
- `);
49
- }, u = function() {
50
- var n = parseInt(document.body.getAttribute(e) || "0", 10);
51
- return isFinite(n) ? n : 0;
52
- }, x = function() {
53
- d.useEffect(function() {
54
- return document.body.setAttribute(e, (u() + 1).toString()), function() {
55
- var n = u() - 1;
56
- n <= 0 ? document.body.removeAttribute(e) : document.body.setAttribute(e, n.toString());
57
- };
58
- }, []);
59
- }, C = function(n) {
60
- var a = n.noRelative, o = n.noImportant, t = n.gapMode, r = t === void 0 ? "margin" : t;
61
- x();
62
- var i = d.useMemo(function() {
63
- return m(r);
64
- }, [r]);
65
- return d.createElement(b, { styles: h(i, !a, r, o ? "" : "!important") });
1
+ import * as o from "react";
2
+ import { stylesheetSingleton as r } from "./index.es454.js";
3
+ var i = function() {
4
+ var t = r();
5
+ return function(e, n) {
6
+ o.useEffect(function() {
7
+ return t.add(e), function() {
8
+ t.remove();
9
+ };
10
+ }, [e && n]);
11
+ };
66
12
  };
67
13
  export {
68
- C as RemoveScrollBar,
69
- e as lockAttribute,
70
- x as useLockAttribute
14
+ i as styleHookSingleton
71
15
  };
72
16
  //# sourceMappingURL=index.es453.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es453.js","sources":["../node_modules/react-remove-scroll-bar/dist/es2015/component.js"],"sourcesContent":["import * as React from 'react';\nimport { styleSingleton } from 'react-style-singleton';\nimport { fullWidthClassName, zeroRightClassName, noScrollbarsClassName, removedBarSizeVariable } from './constants';\nimport { getGapWidth } from './utils';\nvar Style = styleSingleton();\nexport var lockAttribute = 'data-scroll-locked';\n// important tip - once we measure scrollBar width and remove them\n// we could not repeat this operation\n// thus we are using style-singleton - only the first \"yet correct\" style will be applied.\nvar getStyles = function (_a, allowRelative, gapMode, important) {\n var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;\n if (gapMode === void 0) { gapMode = 'margin'; }\n return \"\\n .\".concat(noScrollbarsClassName, \" {\\n overflow: hidden \").concat(important, \";\\n padding-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n body[\").concat(lockAttribute, \"] {\\n overflow: hidden \").concat(important, \";\\n overscroll-behavior: contain;\\n \").concat([\n allowRelative && \"position: relative \".concat(important, \";\"),\n gapMode === 'margin' &&\n \"\\n padding-left: \".concat(left, \"px;\\n padding-top: \").concat(top, \"px;\\n padding-right: \").concat(right, \"px;\\n margin-left:0;\\n margin-top:0;\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n \"),\n gapMode === 'padding' && \"padding-right: \".concat(gap, \"px \").concat(important, \";\"),\n ]\n .filter(Boolean)\n .join(''), \"\\n }\\n \\n .\").concat(zeroRightClassName, \" {\\n right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" {\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(zeroRightClassName, \" .\").concat(zeroRightClassName, \" {\\n right: 0 \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" .\").concat(fullWidthClassName, \" {\\n margin-right: 0 \").concat(important, \";\\n }\\n \\n body[\").concat(lockAttribute, \"] {\\n \").concat(removedBarSizeVariable, \": \").concat(gap, \"px;\\n }\\n\");\n};\nvar getCurrentUseCounter = function () {\n var counter = parseInt(document.body.getAttribute(lockAttribute) || '0', 10);\n return isFinite(counter) ? counter : 0;\n};\nexport var useLockAttribute = function () {\n React.useEffect(function () {\n document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());\n return function () {\n var newCounter = getCurrentUseCounter() - 1;\n if (newCounter <= 0) {\n document.body.removeAttribute(lockAttribute);\n }\n else {\n document.body.setAttribute(lockAttribute, newCounter.toString());\n }\n };\n }, []);\n};\n/**\n * Removes page scrollbar and blocks page scroll when mounted\n */\nexport var RemoveScrollBar = function (_a) {\n var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? 'margin' : _b;\n useLockAttribute();\n /*\n gap will be measured on every component mount\n however it will be used only by the \"first\" invocation\n due to singleton nature of <Style\n */\n var gap = React.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);\n return React.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });\n};\n"],"names":["Style","styleSingleton","lockAttribute","getStyles","_a","allowRelative","gapMode","important","left","top","right","gap","noScrollbarsClassName","zeroRightClassName","fullWidthClassName","removedBarSizeVariable","getCurrentUseCounter","counter","useLockAttribute","React","newCounter","RemoveScrollBar","noRelative","noImportant","_b","getGapWidth"],"mappings":";;;;AAIA,IAAIA,IAAQC,EAAgB,GACjBC,IAAgB,sBAIvBC,IAAY,SAAUC,GAAIC,GAAeC,GAASC,GAAW;AAC7D,MAAIC,IAAOJ,EAAG,MAAMK,IAAML,EAAG,KAAKM,IAAQN,EAAG,OAAOO,IAAMP,EAAG;AAC7D,SAAIE,MAAY,WAAUA,IAAU,WAC7B;AAAA,KAAQ,OAAOM,GAAuB;AAAA,qBAA0B,EAAE,OAAOL,GAAW;AAAA,mBAAuB,EAAE,OAAOI,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA;AAAA,QAAiB,EAAE,OAAOL,GAAe;AAAA,sBAA4B,EAAE,OAAOK,GAAW;AAAA;AAAA,KAA4C,EAAE,OAAO;AAAA,IACnSF,KAAiB,sBAAsB,OAAOE,GAAW,GAAG;AAAA,IAC5DD,MAAY,YACR;AAAA,oBAAuB,OAAOE,GAAM;AAAA,kBAAwB,EAAE,OAAOC,GAAK;AAAA,oBAA0B,EAAE,OAAOC,GAAO;AAAA;AAAA;AAAA,mBAAgE,EAAE,OAAOC,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA,KAAS;AAAA,IACxOD,MAAY,aAAa,kBAAkB,OAAOK,GAAK,KAAK,EAAE,OAAOJ,GAAW,GAAG;AAAA,EAC3F,EACS,OAAO,OAAO,EACd,KAAK,EAAE,GAAG;AAAA;AAAA;AAAA,IAAgB,EAAE,OAAOM,GAAoB;AAAA,YAAiB,EAAE,OAAOF,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA;AAAA;AAAA,IAAiB,EAAE,OAAOO,GAAoB;AAAA,mBAAwB,EAAE,OAAOH,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA;AAAA;AAAA,IAAiB,EAAE,OAAOM,GAAoB,IAAI,EAAE,OAAOA,GAAoB;AAAA,cAAmB,EAAE,OAAON,GAAW;AAAA;AAAA;AAAA,IAAiB,EAAE,OAAOO,GAAoB,IAAI,EAAE,OAAOA,GAAoB;AAAA,qBAA0B,EAAE,OAAOP,GAAW;AAAA;AAAA;AAAA,QAAqB,EAAE,OAAOL,GAAe;AAAA,KAAW,EAAE,OAAOa,GAAwB,IAAI,EAAE,OAAOJ,GAAK;AAAA;AAAA,CAAY;AAC/kB,GACIK,IAAuB,WAAY;AACnC,MAAIC,IAAU,SAAS,SAAS,KAAK,aAAaf,CAAa,KAAK,KAAK,EAAE;AAC3E,SAAO,SAASe,CAAO,IAAIA,IAAU;AACzC,GACWC,IAAmB,WAAY;AACtC,EAAAC,EAAM,UAAU,WAAY;AACxB,oBAAS,KAAK,aAAajB,IAAgBc,MAAyB,GAAG,UAAU,GAC1E,WAAY;AACf,UAAII,IAAaJ,EAAoB,IAAK;AAC1C,MAAII,KAAc,IACd,SAAS,KAAK,gBAAgBlB,CAAa,IAG3C,SAAS,KAAK,aAAaA,GAAekB,EAAW,SAAQ,CAAE;AAAA,IAEtE;AAAA,EACJ,GAAE,EAAE;AACT,GAIWC,IAAkB,SAAUjB,GAAI;AACvC,MAAIkB,IAAalB,EAAG,YAAYmB,IAAcnB,EAAG,aAAaoB,IAAKpB,EAAG,SAASE,IAAUkB,MAAO,SAAS,WAAWA;AACpH,EAAAN,EAAkB;AAMlB,MAAIP,IAAMQ,EAAM,QAAQ,WAAY;AAAE,WAAOM,EAAYnB,CAAO;AAAA,EAAE,GAAI,CAACA,CAAO,CAAC;AAC/E,SAAOa,EAAM,cAAcnB,GAAO,EAAE,QAAQG,EAAUQ,GAAK,CAACW,GAAYhB,GAAUiB,IAA6B,KAAf,YAAiB,EAAC,CAAE;AACxH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es453.js","sources":["../node_modules/react-style-singleton/dist/es2015/hook.js"],"sourcesContent":["import * as React from 'react';\nimport { stylesheetSingleton } from './singleton';\n/**\n * creates a hook to control style singleton\n * @see {@link styleSingleton} for a safer component version\n * @example\n * ```tsx\n * const useStyle = styleHookSingleton();\n * ///\n * useStyle('body { overflow: hidden}');\n */\nexport var styleHookSingleton = function () {\n var sheet = stylesheetSingleton();\n return function (styles, isDynamic) {\n React.useEffect(function () {\n sheet.add(styles);\n return function () {\n sheet.remove();\n };\n }, [styles && isDynamic]);\n };\n};\n"],"names":["styleHookSingleton","sheet","stylesheetSingleton","styles","isDynamic","React"],"mappings":";;AAWU,IAACA,IAAqB,WAAY;AACxC,MAAIC,IAAQC,EAAqB;AACjC,SAAO,SAAUC,GAAQC,GAAW;AAChC,IAAAC,EAAM,UAAU,WAAY;AACxB,aAAAJ,EAAM,IAAIE,CAAM,GACT,WAAY;AACf,QAAAF,EAAM,OAAQ;AAAA,MACjB;AAAA,IACb,GAAW,CAACE,KAAUC,CAAS,CAAC;AAAA,EAC3B;AACL;","x_google_ignoreList":[0]}