@anoki/fse-ui 1.0.0-beta1.37.22 → 1.0.0-beta1.37.24

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 (284) hide show
  1. package/dist/index.cjs134.js +1 -1
  2. package/dist/index.cjs134.js.map +1 -1
  3. package/dist/index.cjs253.js +1 -1
  4. package/dist/index.cjs254.js +1 -1
  5. package/dist/index.cjs255.js +1 -1
  6. package/dist/index.cjs287.js +1 -1
  7. package/dist/index.cjs295.js +1 -1
  8. package/dist/index.cjs305.js +1 -1
  9. package/dist/index.cjs319.js +1 -1
  10. package/dist/index.cjs332.js +1 -1
  11. package/dist/index.cjs342.js +1 -1
  12. package/dist/index.cjs389.js +1 -1
  13. package/dist/index.cjs448.js +1 -1
  14. package/dist/index.cjs453.js +1 -1
  15. package/dist/index.cjs453.js.map +1 -1
  16. package/dist/index.cjs454.js +1 -1
  17. package/dist/index.cjs455.js +1 -1
  18. package/dist/index.cjs455.js.map +1 -1
  19. package/dist/index.cjs456.js +1 -1
  20. package/dist/index.cjs456.js.map +1 -1
  21. package/dist/index.cjs468.js +1 -1
  22. package/dist/index.cjs471.js +1 -1
  23. package/dist/index.cjs476.js +1 -1
  24. package/dist/index.cjs479.js +1 -1
  25. package/dist/index.cjs479.js.map +1 -1
  26. package/dist/index.cjs480.js +2 -0
  27. package/dist/index.cjs480.js.map +1 -0
  28. package/dist/index.cjs481.js +1 -1
  29. package/dist/index.cjs481.js.map +1 -1
  30. package/dist/index.cjs482.js +1 -1
  31. package/dist/index.cjs482.js.map +1 -1
  32. package/dist/index.cjs483.js +1 -1
  33. package/dist/index.cjs483.js.map +1 -1
  34. package/dist/index.cjs484.js +1 -1
  35. package/dist/index.cjs484.js.map +1 -1
  36. package/dist/index.cjs485.js +1 -1
  37. package/dist/index.cjs485.js.map +1 -1
  38. package/dist/index.cjs486.js +2 -0
  39. package/dist/index.cjs486.js.map +1 -0
  40. package/dist/index.cjs487.js +2 -0
  41. package/dist/index.cjs487.js.map +1 -0
  42. package/dist/index.cjs488.js +2 -0
  43. package/dist/index.cjs488.js.map +1 -0
  44. package/dist/index.cjs491.js +2 -0
  45. package/dist/index.cjs491.js.map +1 -0
  46. package/dist/index.cjs492.js +2 -0
  47. package/dist/{index.cjs500.js.map → index.cjs492.js.map} +1 -1
  48. package/dist/{index.cjs501.js → index.cjs493.js} +2 -2
  49. package/dist/{index.cjs501.js.map → index.cjs493.js.map} +1 -1
  50. package/dist/{index.cjs502.js → index.cjs494.js} +2 -2
  51. package/dist/{index.cjs502.js.map → index.cjs494.js.map} +1 -1
  52. package/dist/{index.cjs503.js → index.cjs495.js} +2 -2
  53. package/dist/{index.cjs503.js.map → index.cjs495.js.map} +1 -1
  54. package/dist/index.cjs496.js +1 -1
  55. package/dist/index.cjs496.js.map +1 -1
  56. package/dist/index.cjs497.js +1 -1
  57. package/dist/index.cjs497.js.map +1 -1
  58. package/dist/index.cjs498.js +1 -1
  59. package/dist/index.cjs498.js.map +1 -1
  60. package/dist/index.cjs499.js +1 -1
  61. package/dist/index.cjs499.js.map +1 -1
  62. package/dist/index.cjs506.js +38 -1
  63. package/dist/index.cjs506.js.map +1 -1
  64. package/dist/index.cjs507.js +1 -38
  65. package/dist/index.cjs507.js.map +1 -1
  66. package/dist/index.cjs508.js +1 -1
  67. package/dist/index.cjs508.js.map +1 -1
  68. package/dist/index.cjs509.js +1 -1
  69. package/dist/index.cjs509.js.map +1 -1
  70. package/dist/index.cjs510.js +1 -1
  71. package/dist/index.cjs510.js.map +1 -1
  72. package/dist/index.cjs513.js +2 -0
  73. package/dist/index.cjs513.js.map +1 -0
  74. package/dist/index.cjs514.js +1 -1
  75. package/dist/index.cjs514.js.map +1 -1
  76. package/dist/index.cjs525.js +1 -1
  77. package/dist/index.cjs525.js.map +1 -1
  78. package/dist/index.cjs526.js +1 -1
  79. package/dist/index.cjs526.js.map +1 -1
  80. package/dist/index.cjs527.js +1 -1
  81. package/dist/index.cjs527.js.map +1 -1
  82. package/dist/index.cjs528.js +1 -1
  83. package/dist/index.cjs528.js.map +1 -1
  84. package/dist/index.cjs529.js +1 -1
  85. package/dist/index.cjs530.js +1 -1
  86. package/dist/index.cjs532.js +1 -1
  87. package/dist/index.cjs533.js +1 -1
  88. package/dist/index.cjs536.js +1 -1
  89. package/dist/index.cjs538.js +1 -1
  90. package/dist/index.cjs541.js +1 -1
  91. package/dist/index.cjs544.js +1 -1
  92. package/dist/index.cjs547.js +1 -1
  93. package/dist/index.cjs555.js +6 -0
  94. package/dist/index.cjs555.js.map +1 -0
  95. package/dist/index.cjs556.js +1 -1
  96. package/dist/index.cjs556.js.map +1 -1
  97. package/dist/index.cjs557.js +1 -1
  98. package/dist/index.cjs557.js.map +1 -1
  99. package/dist/index.cjs558.js +1 -5
  100. package/dist/index.cjs558.js.map +1 -1
  101. package/dist/index.cjs559.js +1 -1
  102. package/dist/index.cjs559.js.map +1 -1
  103. package/dist/index.cjs560.js +1 -1
  104. package/dist/index.cjs560.js.map +1 -1
  105. package/dist/index.cjs561.js +1 -1
  106. package/dist/index.cjs561.js.map +1 -1
  107. package/dist/index.cjs562.js +1 -1
  108. package/dist/index.cjs562.js.map +1 -1
  109. package/dist/index.cjs563.js +1 -1
  110. package/dist/index.cjs563.js.map +1 -1
  111. package/dist/index.cjs564.js +1 -1
  112. package/dist/index.cjs564.js.map +1 -1
  113. package/dist/index.cjs569.js +2 -0
  114. package/dist/index.cjs569.js.map +1 -0
  115. package/dist/index.cjs570.js +1 -1
  116. package/dist/index.cjs570.js.map +1 -1
  117. package/dist/index.cjs575.js +1 -1
  118. package/dist/index.cjs575.js.map +1 -1
  119. package/dist/index.cjs576.js +1 -1
  120. package/dist/index.cjs576.js.map +1 -1
  121. package/dist/index.cjs577.js +2 -0
  122. package/dist/index.cjs577.js.map +1 -0
  123. package/dist/index.es134.js +45 -40
  124. package/dist/index.es134.js.map +1 -1
  125. package/dist/index.es253.js +1 -1
  126. package/dist/index.es254.js +2 -2
  127. package/dist/index.es255.js +2 -2
  128. package/dist/index.es287.js +1 -1
  129. package/dist/index.es295.js +2 -2
  130. package/dist/index.es305.js +1 -1
  131. package/dist/index.es319.js +1 -1
  132. package/dist/index.es332.js +1 -1
  133. package/dist/index.es342.js +2 -2
  134. package/dist/index.es389.js +1 -1
  135. package/dist/index.es448.js +1 -1
  136. package/dist/index.es453.js +131 -8
  137. package/dist/index.es453.js.map +1 -1
  138. package/dist/index.es454.js +1 -1
  139. package/dist/index.es455.js +9 -3
  140. package/dist/index.es455.js.map +1 -1
  141. package/dist/index.es456.js +2 -131
  142. package/dist/index.es456.js.map +1 -1
  143. package/dist/index.es468.js +1 -1
  144. package/dist/index.es471.js +4 -4
  145. package/dist/index.es476.js +3 -3
  146. package/dist/index.es479.js +11 -24
  147. package/dist/index.es479.js.map +1 -1
  148. package/dist/index.es480.js +208 -0
  149. package/dist/index.es480.js.map +1 -0
  150. package/dist/index.es481.js +22 -12
  151. package/dist/index.es481.js.map +1 -1
  152. package/dist/index.es482.js +24 -204
  153. package/dist/index.es482.js.map +1 -1
  154. package/dist/index.es483.js +392 -21
  155. package/dist/index.es483.js.map +1 -1
  156. package/dist/index.es484.js +5 -392
  157. package/dist/index.es484.js.map +1 -1
  158. package/dist/index.es485.js +24 -14
  159. package/dist/index.es485.js.map +1 -1
  160. package/dist/index.es486.js +32 -0
  161. package/dist/index.es486.js.map +1 -0
  162. package/dist/index.es487.js +8 -0
  163. package/dist/index.es487.js.map +1 -0
  164. package/dist/index.es488.js +18 -0
  165. package/dist/index.es488.js.map +1 -0
  166. package/dist/index.es491.js +8 -0
  167. package/dist/index.es491.js.map +1 -0
  168. package/dist/index.es492.js +6 -0
  169. package/dist/{index.es500.js.map → index.es492.js.map} +1 -1
  170. package/dist/{index.es501.js → index.es493.js} +3 -3
  171. package/dist/{index.es501.js.map → index.es493.js.map} +1 -1
  172. package/dist/{index.es502.js → index.es494.js} +6 -6
  173. package/dist/{index.es502.js.map → index.es494.js.map} +1 -1
  174. package/dist/{index.es503.js → index.es495.js} +2 -2
  175. package/dist/{index.es503.js.map → index.es495.js.map} +1 -1
  176. package/dist/index.es496.js +519 -21
  177. package/dist/index.es496.js.map +1 -1
  178. package/dist/index.es497.js +126 -28
  179. package/dist/index.es497.js.map +1 -1
  180. package/dist/index.es498.js +129 -5
  181. package/dist/index.es498.js.map +1 -1
  182. package/dist/index.es499.js +15 -5
  183. package/dist/index.es499.js.map +1 -1
  184. package/dist/index.es506.js +67 -127
  185. package/dist/index.es506.js.map +1 -1
  186. package/dist/index.es507.js +8 -68
  187. package/dist/index.es507.js.map +1 -1
  188. package/dist/index.es508.js +14 -9
  189. package/dist/index.es508.js.map +1 -1
  190. package/dist/index.es509.js +62 -14
  191. package/dist/index.es509.js.map +1 -1
  192. package/dist/index.es510.js +64 -61
  193. package/dist/index.es510.js.map +1 -1
  194. package/dist/index.es513.js +7 -0
  195. package/dist/index.es513.js.map +1 -0
  196. package/dist/index.es514.js +22 -3
  197. package/dist/index.es514.js.map +1 -1
  198. package/dist/index.es525.js +21 -11
  199. package/dist/index.es525.js.map +1 -1
  200. package/dist/index.es526.js +11 -26
  201. package/dist/index.es526.js.map +1 -1
  202. package/dist/index.es527.js +27 -4
  203. package/dist/index.es527.js.map +1 -1
  204. package/dist/index.es528.js +4 -22
  205. package/dist/index.es528.js.map +1 -1
  206. package/dist/index.es529.js +1 -1
  207. package/dist/index.es530.js +2 -2
  208. package/dist/index.es532.js +1 -1
  209. package/dist/index.es533.js +3 -3
  210. package/dist/index.es536.js +2 -2
  211. package/dist/index.es538.js +3 -3
  212. package/dist/index.es541.js +1 -1
  213. package/dist/index.es544.js +1 -1
  214. package/dist/index.es547.js +1 -1
  215. package/dist/index.es555.js +43 -0
  216. package/dist/index.es555.js.map +1 -0
  217. package/dist/index.es556.js +2 -74
  218. package/dist/index.es556.js.map +1 -1
  219. package/dist/index.es557.js +5 -2
  220. package/dist/index.es557.js.map +1 -1
  221. package/dist/index.es558.js +15 -39
  222. package/dist/index.es558.js.map +1 -1
  223. package/dist/index.es559.js +2 -2
  224. package/dist/index.es559.js.map +1 -1
  225. package/dist/index.es560.js +2 -5
  226. package/dist/index.es560.js.map +1 -1
  227. package/dist/index.es561.js +2 -6
  228. package/dist/index.es561.js.map +1 -1
  229. package/dist/index.es562.js +6 -16
  230. package/dist/index.es562.js.map +1 -1
  231. package/dist/index.es563.js +2 -2
  232. package/dist/index.es563.js.map +1 -1
  233. package/dist/index.es564.js +2 -2
  234. package/dist/index.es564.js.map +1 -1
  235. package/dist/index.es569.js +77 -0
  236. package/dist/index.es569.js.map +1 -0
  237. package/dist/index.es570.js +2 -2
  238. package/dist/index.es570.js.map +1 -1
  239. package/dist/index.es575.js +4 -3
  240. package/dist/index.es575.js.map +1 -1
  241. package/dist/index.es576.js +3 -2
  242. package/dist/index.es576.js.map +1 -1
  243. package/dist/index.es577.js +5 -0
  244. package/dist/index.es577.js.map +1 -0
  245. package/package.json +1 -1
  246. package/dist/index.cjs478.js +0 -2
  247. package/dist/index.cjs478.js.map +0 -1
  248. package/dist/index.cjs500.js +0 -2
  249. package/dist/index.cjs504.js +0 -2
  250. package/dist/index.cjs504.js.map +0 -1
  251. package/dist/index.cjs505.js +0 -2
  252. package/dist/index.cjs505.js.map +0 -1
  253. package/dist/index.cjs511.js +0 -2
  254. package/dist/index.cjs511.js.map +0 -1
  255. package/dist/index.cjs515.js +0 -2
  256. package/dist/index.cjs515.js.map +0 -1
  257. package/dist/index.cjs519.js +0 -2
  258. package/dist/index.cjs519.js.map +0 -1
  259. package/dist/index.cjs565.js +0 -2
  260. package/dist/index.cjs565.js.map +0 -1
  261. package/dist/index.cjs571.js +0 -2
  262. package/dist/index.cjs571.js.map +0 -1
  263. package/dist/index.cjs579.js +0 -2
  264. package/dist/index.cjs579.js.map +0 -1
  265. package/dist/index.es478.js +0 -9
  266. package/dist/index.es478.js.map +0 -1
  267. package/dist/index.es500.js +0 -6
  268. package/dist/index.es504.js +0 -526
  269. package/dist/index.es504.js.map +0 -1
  270. package/dist/index.es505.js +0 -130
  271. package/dist/index.es505.js.map +0 -1
  272. package/dist/index.es511.js +0 -68
  273. package/dist/index.es511.js.map +0 -1
  274. package/dist/index.es515.js +0 -26
  275. package/dist/index.es515.js.map +0 -1
  276. package/dist/index.es519.js +0 -18
  277. package/dist/index.es519.js.map +0 -1
  278. package/dist/index.es565.js +0 -5
  279. package/dist/index.es565.js.map +0 -1
  280. package/dist/index.es571.js +0 -5
  281. package/dist/index.es571.js.map +0 -1
  282. package/dist/index.es579.js +0 -7
  283. package/dist/index.es579.js.map +0 -1
  284. /package/dist/components/ui/{DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css → ConsentModal/ConsentModalContent/ConsentModalContent.css} +0 -0
@@ -1,65 +1,68 @@
1
- var p = function(e) {
2
- return e.tagName === "TEXTAREA";
3
- }, w = function(e, r) {
4
- if (!(e instanceof Element))
5
- return !1;
6
- var o = window.getComputedStyle(e);
7
- return (
8
- // not-not-scrollable
9
- o[r] !== "hidden" && // contains scroll inside self
10
- !(o.overflowY === o.overflowX && !p(e) && o[r] === "visible")
11
- );
12
- }, y = function(e) {
13
- return w(e, "overflowY");
14
- }, H = function(e) {
15
- return w(e, "overflowX");
16
- }, R = function(e, r) {
17
- var o = r.ownerDocument, t = r;
18
- do {
19
- typeof ShadowRoot < "u" && t instanceof ShadowRoot && (t = t.host);
20
- var v = g(e, t);
21
- if (v) {
22
- var n = b(e, t), a = n[1], l = n[2];
23
- if (a > l)
24
- return !0;
1
+ import { __assign as d } from "./index.es485.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
+ };
25
56
  }
26
- t = t.parentNode;
27
- } while (t && t !== o.body);
28
- return !1;
29
- }, B = function(e) {
30
- var r = e.scrollTop, o = e.scrollHeight, t = e.clientHeight;
31
- return [
32
- r,
33
- o,
34
- t
35
- ];
36
- }, V = function(e) {
37
- var r = e.scrollLeft, o = e.scrollWidth, t = e.clientWidth;
38
- return [
39
- r,
40
- o,
41
- t
42
- ];
43
- }, g = function(e, r) {
44
- return e === "v" ? y(r) : H(r);
45
- }, b = function(e, r) {
46
- return e === "v" ? B(r) : V(r);
47
- }, D = function(e, r) {
48
- return e === "h" && r === "rtl" ? -1 : 1;
49
- }, W = function(e, r, o, t, v) {
50
- var n = D(e, window.getComputedStyle(r).direction), a = n * t, l = o.target, f = r.contains(l), i = !1, s = a > 0, d = 0, h = 0;
51
- do {
52
- var c = b(e, l), u = c[0], m = c[1], C = c[2], S = m - C - n * u;
53
- (u || S) && g(e, l) && (d += S, h += u), l instanceof ShadowRoot ? l = l.host : l = l.parentNode;
54
- } while (
55
- // portaled content
56
- !f && l !== document.body || // self content
57
- f && (r.contains(l) || r === l)
58
- );
59
- return (s && Math.abs(d) < 1 || !s && Math.abs(h) < 1) && (i = !0), i;
60
- };
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
+ }
61
65
  export {
62
- W as handleScroll,
63
- R as locationCouldBeScrolled
66
+ v as createSidecarMedium
64
67
  };
65
68
  //# sourceMappingURL=index.es510.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es510.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":"AAAA,IAAIA,IAAuB,SAAUC,GAAM;AAEvC,SAAOA,EAAK,YAAY;AAC5B,GACIC,IAAuB,SAAUD,GAAME,GAAU;AACjD,MAAI,EAAEF,aAAgB;AAClB,WAAO;AAEX,MAAIG,IAAS,OAAO,iBAAiBH,CAAI;AACzC;AAAA;AAAA,IAEAG,EAAOD,CAAQ,MAAM;AAAA,IAEjB,EAAEC,EAAO,cAAcA,EAAO,aAAa,CAACJ,EAAqBC,CAAI,KAAKG,EAAOD,CAAQ,MAAM;AAAA;AACvG,GACIE,IAA0B,SAAUJ,GAAM;AAAE,SAAOC,EAAqBD,GAAM,WAAW;AAAI,GAC7FK,IAA0B,SAAUL,GAAM;AAAE,SAAOC,EAAqBD,GAAM,WAAW;AAAI,GACtFM,IAA0B,SAAUC,GAAMP,GAAM;AACvD,MAAIQ,IAAgBR,EAAK,eACrBS,IAAUT;AACd,KAAG;AAEC,IAAI,OAAO,aAAe,OAAeS,aAAmB,eACxDA,IAAUA,EAAQ;AAEtB,QAAIC,IAAeC,EAAuBJ,GAAME,CAAO;AACvD,QAAIC,GAAc;AACd,UAAIE,IAAKC,EAAmBN,GAAME,CAAO,GAAGK,IAAeF,EAAG,CAAC,GAAGG,IAAeH,EAAG,CAAC;AACrF,UAAIE,IAAeC;AACf,eAAO;AAAA,IAEvB;AACQ,IAAAN,IAAUA,EAAQ;AAAA,EAC1B,SAAaA,KAAWA,MAAYD,EAAc;AAC9C,SAAO;AACX,GACIQ,IAAsB,SAAUJ,GAAI;AACpC,MAAIK,IAAYL,EAAG,WAAWE,IAAeF,EAAG,cAAcG,IAAeH,EAAG;AAChF,SAAO;AAAA,IACHK;AAAA,IACAH;AAAA,IACAC;AAAA,EACH;AACL,GACIG,IAAsB,SAAUN,GAAI;AACpC,MAAIO,IAAaP,EAAG,YAAYQ,IAAcR,EAAG,aAAaS,IAAcT,EAAG;AAC/E,SAAO;AAAA,IACHO;AAAA,IACAC;AAAA,IACAC;AAAA,EACH;AACL,GACIV,IAAyB,SAAUJ,GAAMP,GAAM;AAC/C,SAAOO,MAAS,MAAMH,EAAwBJ,CAAI,IAAIK,EAAwBL,CAAI;AACtF,GACIa,IAAqB,SAAUN,GAAMP,GAAM;AAC3C,SAAOO,MAAS,MAAMS,EAAoBhB,CAAI,IAAIkB,EAAoBlB,CAAI;AAC9E,GACIsB,IAAqB,SAAUf,GAAMgB,GAAW;AAMhD,SAAOhB,MAAS,OAAOgB,MAAc,QAAQ,KAAK;AACtD,GACWC,IAAe,SAAUjB,GAAMkB,GAAWC,GAAOC,GAAaC,GAAc;AACnF,MAAIC,IAAkBP,EAAmBf,GAAM,OAAO,iBAAiBkB,CAAS,EAAE,SAAS,GACvFK,IAAQD,IAAkBF,GAE1BI,IAASL,EAAM,QACfM,IAAeP,EAAU,SAASM,CAAM,GACxCE,IAAqB,IACrBC,IAAkBJ,IAAQ,GAC1BK,IAAkB,GAClBC,IAAqB;AACzB,KAAG;AACC,QAAIxB,IAAKC,EAAmBN,GAAMwB,CAAM,GAAGM,IAAWzB,EAAG,CAAC,GAAG0B,IAAW1B,EAAG,CAAC,GAAG2B,IAAW3B,EAAG,CAAC,GAC1F4B,IAAgBF,IAAWC,IAAWV,IAAkBQ;AAC5D,KAAIA,KAAYG,MACR7B,EAAuBJ,GAAMwB,CAAM,MACnCI,KAAmBK,GACnBJ,KAAsBC,IAG1BN,aAAkB,aAClBA,IAASA,EAAO,OAGhBA,IAASA,EAAO;AAAA,EAEvB;AAAA;AAAA,IAEA,CAACC,KAAgBD,MAAW,SAAS;AAAA,IAEjCC,MAAiBP,EAAU,SAASM,CAAM,KAAKN,MAAcM;AAAA;AAElE,UAAIG,KACkB,KAAK,IAAIC,CAAe,IAAI,KAGzC,CAACD,KACY,KAAK,IAAIE,CAAkB,IAAI,OACjDH,IAAqB,KAElBA;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es510.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]}
@@ -0,0 +1,7 @@
1
+ function i(n, t) {
2
+ return typeof n == "function" ? n(t) : n && (n.current = t), n;
3
+ }
4
+ export {
5
+ i as assignRef
6
+ };
7
+ //# sourceMappingURL=index.es513.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es513.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,7 +1,26 @@
1
- function i(n, t) {
2
- return typeof n == "function" ? n(t) : n && (n.current = t), n;
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;
3
22
  }
4
23
  export {
5
- i as assignRef
24
+ n as useCallbackRef
6
25
  };
7
26
  //# sourceMappingURL=index.es514.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es514.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
+ {"version":3,"file":"index.es514.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,16 +1,26 @@
1
- import * as o from "react";
2
- import { stylesheetSingleton as r } from "./index.es526.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]);
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])
11
20
  };
12
21
  };
13
22
  export {
14
- i as styleHookSingleton
23
+ f as getGapWidth,
24
+ a as zeroGap
15
25
  };
16
26
  //# sourceMappingURL=index.es525.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es525.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]}
1
+ {"version":3,"file":"index.es525.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,31 +1,16 @@
1
- import { getNonce as o } from "./index.es527.js";
2
- function r() {
3
- if (!document)
4
- return null;
5
- var t = document.createElement("style");
6
- t.type = "text/css";
7
- var e = o();
8
- return e && t.setAttribute("nonce", e), t;
9
- }
10
- function l(t, e) {
11
- t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
12
- }
13
- function a(t) {
14
- var e = document.head || document.getElementsByTagName("head")[0];
15
- e.appendChild(t);
16
- }
17
- var c = function() {
18
- var t = 0, e = null;
19
- return {
20
- add: function(n) {
21
- t == 0 && (e = r()) && (l(e, n), a(e)), t++;
22
- },
23
- remove: function() {
24
- t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
25
- }
1
+ import * as o from "react";
2
+ import { stylesheetSingleton as r } from "./index.es527.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]);
26
11
  };
27
12
  };
28
13
  export {
29
- c as stylesheetSingleton
14
+ i as styleHookSingleton
30
15
  };
31
16
  //# sourceMappingURL=index.es526.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es526.js","sources":["../node_modules/react-style-singleton/dist/es2015/singleton.js"],"sourcesContent":["import { getNonce } from 'get-nonce';\nfunction makeStyleTag() {\n if (!document)\n return null;\n var tag = document.createElement('style');\n tag.type = 'text/css';\n var nonce = getNonce();\n if (nonce) {\n tag.setAttribute('nonce', nonce);\n }\n return tag;\n}\nfunction injectStyles(tag, css) {\n // @ts-ignore\n if (tag.styleSheet) {\n // @ts-ignore\n tag.styleSheet.cssText = css;\n }\n else {\n tag.appendChild(document.createTextNode(css));\n }\n}\nfunction insertStyleTag(tag) {\n var head = document.head || document.getElementsByTagName('head')[0];\n head.appendChild(tag);\n}\nexport var stylesheetSingleton = function () {\n var counter = 0;\n var stylesheet = null;\n return {\n add: function (style) {\n if (counter == 0) {\n if ((stylesheet = makeStyleTag())) {\n injectStyles(stylesheet, style);\n insertStyleTag(stylesheet);\n }\n }\n counter++;\n },\n remove: function () {\n counter--;\n if (!counter && stylesheet) {\n stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);\n stylesheet = null;\n }\n },\n };\n};\n"],"names":["makeStyleTag","tag","nonce","getNonce","injectStyles","css","insertStyleTag","head","stylesheetSingleton","counter","stylesheet","style"],"mappings":";AACA,SAASA,IAAe;AACpB,MAAI,CAAC;AACD,WAAO;AACX,MAAIC,IAAM,SAAS,cAAc,OAAO;AACxC,EAAAA,EAAI,OAAO;AACX,MAAIC,IAAQC,EAAU;AACtB,SAAID,KACAD,EAAI,aAAa,SAASC,CAAK,GAE5BD;AACX;AACA,SAASG,EAAaH,GAAKI,GAAK;AAE5B,EAAIJ,EAAI,aAEJA,EAAI,WAAW,UAAUI,IAGzBJ,EAAI,YAAY,SAAS,eAAeI,CAAG,CAAC;AAEpD;AACA,SAASC,EAAeL,GAAK;AACzB,MAAIM,IAAO,SAAS,QAAQ,SAAS,qBAAqB,MAAM,EAAE,CAAC;AACnE,EAAAA,EAAK,YAAYN,CAAG;AACxB;AACU,IAACO,IAAsB,WAAY;AACzC,MAAIC,IAAU,GACVC,IAAa;AACjB,SAAO;AAAA,IACH,KAAK,SAAUC,GAAO;AAClB,MAAIF,KAAW,MACNC,IAAaV,SACdI,EAAaM,GAAYC,CAAK,GAC9BL,EAAeI,CAAU,IAGjCD;AAAA,IACH;AAAA,IACD,QAAQ,WAAY;AAChB,MAAAA,KACI,CAACA,KAAWC,MACZA,EAAW,cAAcA,EAAW,WAAW,YAAYA,CAAU,GACrEA,IAAa;AAAA,IAEpB;AAAA,EACJ;AACL;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es526.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]}
@@ -1,8 +1,31 @@
1
- var e = function() {
2
- if (typeof __webpack_nonce__ < "u")
3
- return __webpack_nonce__;
1
+ import { getNonce as o } from "./index.es528.js";
2
+ function r() {
3
+ if (!document)
4
+ return null;
5
+ var t = document.createElement("style");
6
+ t.type = "text/css";
7
+ var e = o();
8
+ return e && t.setAttribute("nonce", e), t;
9
+ }
10
+ function l(t, e) {
11
+ t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
12
+ }
13
+ function a(t) {
14
+ var e = document.head || document.getElementsByTagName("head")[0];
15
+ e.appendChild(t);
16
+ }
17
+ var c = function() {
18
+ var t = 0, e = null;
19
+ return {
20
+ add: function(n) {
21
+ t == 0 && (e = r()) && (l(e, n), a(e)), t++;
22
+ },
23
+ remove: function() {
24
+ t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
25
+ }
26
+ };
4
27
  };
5
28
  export {
6
- e as getNonce
29
+ c as stylesheetSingleton
7
30
  };
8
31
  //# sourceMappingURL=index.es527.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es527.js","sources":["../node_modules/get-nonce/dist/es2015/index.js"],"sourcesContent":["var currentNonce;\nexport var setNonce = function (nonce) {\n currentNonce = nonce;\n};\nexport var getNonce = function () {\n if (currentNonce) {\n return currentNonce;\n }\n if (typeof __webpack_nonce__ !== 'undefined') {\n return __webpack_nonce__;\n }\n return undefined;\n};\n"],"names":["getNonce"],"mappings":"AAIU,IAACA,IAAW,WAAY;AAI9B,MAAI,OAAO,oBAAsB;AAC7B,WAAO;AAGf;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es527.js","sources":["../node_modules/react-style-singleton/dist/es2015/singleton.js"],"sourcesContent":["import { getNonce } from 'get-nonce';\nfunction makeStyleTag() {\n if (!document)\n return null;\n var tag = document.createElement('style');\n tag.type = 'text/css';\n var nonce = getNonce();\n if (nonce) {\n tag.setAttribute('nonce', nonce);\n }\n return tag;\n}\nfunction injectStyles(tag, css) {\n // @ts-ignore\n if (tag.styleSheet) {\n // @ts-ignore\n tag.styleSheet.cssText = css;\n }\n else {\n tag.appendChild(document.createTextNode(css));\n }\n}\nfunction insertStyleTag(tag) {\n var head = document.head || document.getElementsByTagName('head')[0];\n head.appendChild(tag);\n}\nexport var stylesheetSingleton = function () {\n var counter = 0;\n var stylesheet = null;\n return {\n add: function (style) {\n if (counter == 0) {\n if ((stylesheet = makeStyleTag())) {\n injectStyles(stylesheet, style);\n insertStyleTag(stylesheet);\n }\n }\n counter++;\n },\n remove: function () {\n counter--;\n if (!counter && stylesheet) {\n stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);\n stylesheet = null;\n }\n },\n };\n};\n"],"names":["makeStyleTag","tag","nonce","getNonce","injectStyles","css","insertStyleTag","head","stylesheetSingleton","counter","stylesheet","style"],"mappings":";AACA,SAASA,IAAe;AACpB,MAAI,CAAC;AACD,WAAO;AACX,MAAIC,IAAM,SAAS,cAAc,OAAO;AACxC,EAAAA,EAAI,OAAO;AACX,MAAIC,IAAQC,EAAU;AACtB,SAAID,KACAD,EAAI,aAAa,SAASC,CAAK,GAE5BD;AACX;AACA,SAASG,EAAaH,GAAKI,GAAK;AAE5B,EAAIJ,EAAI,aAEJA,EAAI,WAAW,UAAUI,IAGzBJ,EAAI,YAAY,SAAS,eAAeI,CAAG,CAAC;AAEpD;AACA,SAASC,EAAeL,GAAK;AACzB,MAAIM,IAAO,SAAS,QAAQ,SAAS,qBAAqB,MAAM,EAAE,CAAC;AACnE,EAAAA,EAAK,YAAYN,CAAG;AACxB;AACU,IAACO,IAAsB,WAAY;AACzC,MAAIC,IAAU,GACVC,IAAa;AACjB,SAAO;AAAA,IACH,KAAK,SAAUC,GAAO;AAClB,MAAIF,KAAW,MACNC,IAAaV,SACdI,EAAaM,GAAYC,CAAK,GAC9BL,EAAeI,CAAU,IAGjCD;AAAA,IACH;AAAA,IACD,QAAQ,WAAY;AAChB,MAAAA,KACI,CAACA,KAAWC,MACZA,EAAW,cAAcA,EAAW,WAAW,YAAYA,CAAU,GACrEA,IAAa;AAAA,IAEpB;AAAA,EACJ;AACL;","x_google_ignoreList":[0]}
@@ -1,26 +1,8 @@
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])
20
- };
1
+ var e = function() {
2
+ if (typeof __webpack_nonce__ < "u")
3
+ return __webpack_nonce__;
21
4
  };
22
5
  export {
23
- f as getGapWidth,
24
- a as zeroGap
6
+ e as getNonce
25
7
  };
26
8
  //# sourceMappingURL=index.es528.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es528.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
+ {"version":3,"file":"index.es528.js","sources":["../node_modules/get-nonce/dist/es2015/index.js"],"sourcesContent":["var currentNonce;\nexport var setNonce = function (nonce) {\n currentNonce = nonce;\n};\nexport var getNonce = function () {\n if (currentNonce) {\n return currentNonce;\n }\n if (typeof __webpack_nonce__ !== 'undefined') {\n return __webpack_nonce__;\n }\n return undefined;\n};\n"],"names":["getNonce"],"mappings":"AAIU,IAACA,IAAW,WAAY;AAI9B,MAAI,OAAO,oBAAsB;AAC7B,WAAO;AAGf;","x_google_ignoreList":[0]}
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs as r } from "./index.es444.js";
2
- import { __require as s } from "./index.es558.js";
2
+ import { __require as s } from "./index.es555.js";
3
3
  var e = s();
4
4
  const t = /* @__PURE__ */ r(e);
5
5
  export {
@@ -1,11 +1,11 @@
1
1
  import * as e from "react";
2
2
  import u from "./index.es529.js";
3
- import { baseButtonPropDefs as s } from "./index.es561.js";
3
+ import { baseButtonPropDefs as s } from "./index.es562.js";
4
4
  import { Flex as f } from "./index.es531.js";
5
5
  import { Spinner as B } from "./index.es548.js";
6
6
  import { VisuallyHidden as b } from "./index.es553.js";
7
7
  import { extractProps as y } from "./index.es532.js";
8
- import { mapResponsiveProp as E, mapButtonSizeToSpinnerSize as g } from "./index.es562.js";
8
+ import { mapResponsiveProp as E, mapButtonSizeToSpinnerSize as g } from "./index.es558.js";
9
9
  import { marginPropDefs as h } from "./index.es534.js";
10
10
  import { Root as z } from "./index.es465.js";
11
11
  const S = e.forwardRef((t, o) => {
@@ -1,6 +1,6 @@
1
1
  import n from "./index.es529.js";
2
2
  import { getResponsiveClassNames as y, getResponsiveStyles as N } from "./index.es544.js";
3
- import { isResponsiveObject as r } from "./index.es560.js";
3
+ import { isResponsiveObject as r } from "./index.es557.js";
4
4
  import { mergeStyles as p } from "./index.es546.js";
5
5
  function g(...i) {
6
6
  return Object.assign({}, ...i);
@@ -1,6 +1,6 @@
1
- import { paddingPropDefs as s } from "./index.es563.js";
2
- import { heightPropDefs as t } from "./index.es564.js";
3
- import { widthPropDefs as o } from "./index.es565.js";
1
+ import { paddingPropDefs as s } from "./index.es559.js";
2
+ import { heightPropDefs as t } from "./index.es560.js";
3
+ import { widthPropDefs as o } from "./index.es561.js";
4
4
  const r = ["visible", "hidden", "clip", "scroll", "auto"], i = ["static", "relative", "absolute", "fixed", "sticky"], e = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], p = ["0", "1"], a = ["0", "1"], l = { ...s, ...o, ...t, position: { type: "enum", className: "rt-r-position", values: i, responsive: !0 }, inset: { type: "enum | string", className: "rt-r-inset", customProperties: ["--inset"], values: e, responsive: !0 }, top: { type: "enum | string", className: "rt-r-top", customProperties: ["--top"], values: e, responsive: !0 }, right: { type: "enum | string", className: "rt-r-right", customProperties: ["--right"], values: e, responsive: !0 }, bottom: { type: "enum | string", className: "rt-r-bottom", customProperties: ["--bottom"], values: e, responsive: !0 }, left: { type: "enum | string", className: "rt-r-left", customProperties: ["--left"], values: e, responsive: !0 }, overflow: { type: "enum", className: "rt-r-overflow", values: r, responsive: !0 }, overflowX: { type: "enum", className: "rt-r-ox", values: r, responsive: !0 }, overflowY: { type: "enum", className: "rt-r-oy", values: r, responsive: !0 }, flexBasis: { type: "string", className: "rt-r-fb", customProperties: ["--flex-basis"], responsive: !0 }, flexShrink: { type: "enum | string", className: "rt-r-fs", customProperties: ["--flex-shrink"], values: p, responsive: !0 }, flexGrow: { type: "enum | string", className: "rt-r-fg", customProperties: ["--flex-grow"], values: a, responsive: !0 }, gridArea: { type: "string", className: "rt-r-ga", customProperties: ["--grid-area"], responsive: !0 }, gridColumn: { type: "string", className: "rt-r-gc", customProperties: ["--grid-column"], responsive: !0 }, gridColumnStart: { type: "string", className: "rt-r-gcs", customProperties: ["--grid-column-start"], responsive: !0 }, gridColumnEnd: { type: "string", className: "rt-r-gce", customProperties: ["--grid-column-end"], responsive: !0 }, gridRow: { type: "string", className: "rt-r-gr", customProperties: ["--grid-row"], responsive: !0 }, gridRowStart: { type: "string", className: "rt-r-grs", customProperties: ["--grid-row-start"], responsive: !0 }, gridRowEnd: { type: "string", className: "rt-r-gre", customProperties: ["--grid-row-end"], responsive: !0 } };
5
5
  export {
6
6
  l as layoutPropDefs
@@ -1,5 +1,5 @@
1
- import { asChildPropDef as r } from "./index.es570.js";
2
- import { gapPropDefs as s } from "./index.es571.js";
1
+ import { asChildPropDef as r } from "./index.es563.js";
2
+ import { gapPropDefs as s } from "./index.es564.js";
3
3
  const a = ["div", "span"], t = ["none", "inline-flex", "flex"], n = ["row", "column", "row-reverse", "column-reverse"], p = ["start", "center", "end", "baseline", "stretch"], l = ["start", "center", "end", "between"], u = ["nowrap", "wrap", "wrap-reverse"], v = { as: { type: "enum", values: a, default: "div" }, ...r, display: { type: "enum", className: "rt-r-display", values: t, responsive: !0 }, direction: { type: "enum", className: "rt-r-fd", values: n, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: p, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: l, parseValue: o, responsive: !0 }, wrap: { type: "enum", className: "rt-r-fw", values: u, responsive: !0 }, ...s };
4
4
  function o(e) {
5
5
  return e === "between" ? "space-between" : e;
@@ -1,6 +1,6 @@
1
- import { asChildPropDef as e } from "./index.es570.js";
2
- import { heightPropDefs as i } from "./index.es564.js";
3
- import { widthPropDefs as t } from "./index.es565.js";
1
+ import { asChildPropDef as e } from "./index.es563.js";
2
+ import { heightPropDefs as i } from "./index.es560.js";
3
+ import { widthPropDefs as t } from "./index.es561.js";
4
4
  const o = ["1", "2", "3", "4"], a = { ...e, size: { type: "enum", className: "rt-r-size", values: o, default: "2", responsive: !0 }, width: t.width, minWidth: t.minWidth, maxWidth: { ...t.maxWidth, default: "480px" }, ...i };
5
5
  export {
6
6
  a as popoverContentPropDefs
@@ -1,4 +1,4 @@
1
- import { asChildPropDef as r } from "./index.es570.js";
1
+ import { asChildPropDef as r } from "./index.es563.js";
2
2
  import { radiusPropDef as o } from "./index.es572.js";
3
3
  const s = ["1", "2", "3"], l = { ...r, size: { values: s, default: "1" }, ...o, scrollbars: { default: "both" } };
4
4
  export {
@@ -1,6 +1,6 @@
1
1
  import { breakpoints as l } from "./index.es573.js";
2
2
  import { hasOwnProperty as p } from "./index.es574.js";
3
- import { isResponsiveObject as m } from "./index.es560.js";
3
+ import { isResponsiveObject as m } from "./index.es557.js";
4
4
  function V({ className: n, customProperties: i, ...t }) {
5
5
  const u = v({ allowArbitraryValues: !0, className: n, ...t }), s = d({ customProperties: i, ...t });
6
6
  return [u, s];
@@ -6,7 +6,7 @@ import { useComposedRefs as T } from "./index.es458.js";
6
6
  import { useCallbackRef as x } from "./index.es464.js";
7
7
  import { useDirection as ce } from "./index.es467.js";
8
8
  import { useLayoutEffect as se } from "./index.es477.js";
9
- import { clamp as ie } from "./index.es579.js";
9
+ import { clamp as ie } from "./index.es575.js";
10
10
  import { composeEventHandlers as C } from "./index.es457.js";
11
11
  import { j as b } from "./index.es235.js";
12
12
  function ae(e, t) {
@@ -0,0 +1,43 @@
1
+ import { __module as s } from "./index.es556.js";
2
+ /*!
3
+ Copyright (c) 2018 Jed Watson.
4
+ Licensed under the MIT License (MIT), see
5
+ http://jedwatson.github.io/classnames
6
+ */
7
+ var u;
8
+ function c() {
9
+ return u ? s.exports : (u = 1, function(i) {
10
+ (function() {
11
+ var f = {}.hasOwnProperty;
12
+ function n() {
13
+ for (var r = "", t = 0; t < arguments.length; t++) {
14
+ var e = arguments[t];
15
+ e && (r = o(r, a(e)));
16
+ }
17
+ return r;
18
+ }
19
+ function a(r) {
20
+ if (typeof r == "string" || typeof r == "number")
21
+ return r;
22
+ if (typeof r != "object")
23
+ return "";
24
+ if (Array.isArray(r))
25
+ return n.apply(null, r);
26
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
27
+ return r.toString();
28
+ var t = "";
29
+ for (var e in r)
30
+ f.call(r, e) && r[e] && (t = o(t, e));
31
+ return t;
32
+ }
33
+ function o(r, t) {
34
+ return t ? r ? r + " " + t : r + t : r;
35
+ }
36
+ i.exports ? (n.default = n, i.exports = n) : window.classNames = n;
37
+ })();
38
+ }(s), s.exports);
39
+ }
40
+ export {
41
+ c as __require
42
+ };
43
+ //# sourceMappingURL=index.es555.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es555.js","sources":["../node_modules/classnames/index.js"],"sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":["hasOwn","classNames","classes","i","arg","appendClass","parseValue","key","value","newClass","module"],"mappings":";;;;;;;;;AAOA,KAAC,WAAY;AAGZ,UAAIA,IAAS,CAAA,EAAG;AAEhB,eAASC,IAAc;AAGtB,iBAFIC,IAAU,IAELC,IAAI,GAAGA,IAAI,UAAU,QAAQA,KAAK;AAC1C,cAAIC,IAAM,UAAUD,CAAC;AACrB,UAAIC,MACHF,IAAUG,EAAYH,GAASI,EAAWF,CAAG,CAAC;AAAA,QAElD;AAEE,eAAOF;AAAA,MACT;AAEC,eAASI,EAAYF,GAAK;AACzB,YAAI,OAAOA,KAAQ,YAAY,OAAOA,KAAQ;AAC7C,iBAAOA;AAGR,YAAI,OAAOA,KAAQ;AAClB,iBAAO;AAGR,YAAI,MAAM,QAAQA,CAAG;AACpB,iBAAOH,EAAW,MAAM,MAAMG,CAAG;AAGlC,YAAIA,EAAI,aAAa,OAAO,UAAU,YAAY,CAACA,EAAI,SAAS,SAAQ,EAAG,SAAS,eAAe;AAClG,iBAAOA,EAAI,SAAU;AAGtB,YAAIF,IAAU;AAEd,iBAASK,KAAOH;AACf,UAAIJ,EAAO,KAAKI,GAAKG,CAAG,KAAKH,EAAIG,CAAG,MACnCL,IAAUG,EAAYH,GAASK,CAAG;AAIpC,eAAOL;AAAA,MACT;AAEC,eAASG,EAAaG,GAAOC,GAAU;AACtC,eAAKA,IAIDD,IACIA,IAAQ,MAAMC,IAGfD,IAAQC,IAPPD;AAAA,MAQV;AAEC,MAAqCE,EAAO,WAC3CT,EAAW,UAAUA,GACrBS,YAAiBT,KAOjB,OAAO,aAAaA;AAAA,IAEtB;;;","x_google_ignoreList":[0]}