@jenesei-software/jenesei-kit-react 1.3.29 → 1.3.31

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 (145) hide show
  1. package/build/area-preview.cjs.js +1 -1
  2. package/build/area-preview.es.js +1 -1
  3. package/build/area-skeleton.cjs.js +1 -1
  4. package/build/area-skeleton.es.js +1 -1
  5. package/build/build-info.txt +3 -3
  6. package/build/{component-BaGCJM5V.js → component-BEkYgajE.js} +2 -2
  7. package/build/{component-BaGCJM5V.js.map → component-BEkYgajE.js.map} +1 -1
  8. package/build/{component-DJcrW4KX.js → component-BFDCc96N.js} +2 -2
  9. package/build/{component-DJcrW4KX.js.map → component-BFDCc96N.js.map} +1 -1
  10. package/build/{component-BgFRZSbi.cjs → component-BFLPbIpv.cjs} +2 -2
  11. package/build/{component-BgFRZSbi.cjs.map → component-BFLPbIpv.cjs.map} +1 -1
  12. package/build/{component-yTziSQZ7.js → component-BV20JUqs.js} +3 -3
  13. package/build/{component-yTziSQZ7.js.map → component-BV20JUqs.js.map} +1 -1
  14. package/build/{component-BT3dejQO.js → component-BpgbR-JI.js} +2 -2
  15. package/build/{component-BT3dejQO.js.map → component-BpgbR-JI.js.map} +1 -1
  16. package/build/{component-Br2H7F-p.js → component-BqSYYCb3.js} +2 -2
  17. package/build/{component-Br2H7F-p.js.map → component-BqSYYCb3.js.map} +1 -1
  18. package/build/{component-Cp433cAv.js → component-BsjFCBxJ.js} +3 -3
  19. package/build/{component-Cp433cAv.js.map → component-BsjFCBxJ.js.map} +1 -1
  20. package/build/{component-Dwf2HFot.cjs → component-ByU2po_i.cjs} +2 -2
  21. package/build/{component-Dwf2HFot.cjs.map → component-ByU2po_i.cjs.map} +1 -1
  22. package/build/{component-BpwTWRxp.js → component-C-oN9gXq.js} +2 -2
  23. package/build/{component-BpwTWRxp.js.map → component-C-oN9gXq.js.map} +1 -1
  24. package/build/{component-D2Y1Ky9N.js → component-CJWnWh-4.js} +4 -4
  25. package/build/{component-D2Y1Ky9N.js.map → component-CJWnWh-4.js.map} +1 -1
  26. package/build/{component-BzFd5DyJ.js → component-CMUWN8YO.js} +3 -3
  27. package/build/{component-BzFd5DyJ.js.map → component-CMUWN8YO.js.map} +1 -1
  28. package/build/{component-ClQrDMsC.cjs → component-CSY_QAf5.cjs} +2 -2
  29. package/build/{component-ClQrDMsC.cjs.map → component-CSY_QAf5.cjs.map} +1 -1
  30. package/build/{component-OxaRuSX5.cjs → component-D8qNfh_3.cjs} +2 -2
  31. package/build/{component-OxaRuSX5.cjs.map → component-D8qNfh_3.cjs.map} +1 -1
  32. package/build/{component-TMPesaZf.cjs → component-DE1S-lZ5.cjs} +2 -2
  33. package/build/{component-TMPesaZf.cjs.map → component-DE1S-lZ5.cjs.map} +1 -1
  34. package/build/{component-BABozkX6.cjs → component-DfZKriX4.cjs} +2 -2
  35. package/build/{component-BABozkX6.cjs.map → component-DfZKriX4.cjs.map} +1 -1
  36. package/build/{component-CsIx8Dgr.cjs → component-Dl6zU2mb.cjs} +2 -2
  37. package/build/{component-CsIx8Dgr.cjs.map → component-Dl6zU2mb.cjs.map} +1 -1
  38. package/build/{component-CjiOOMn9.cjs → component-Dmn44ouM.cjs} +2 -2
  39. package/build/{component-CjiOOMn9.cjs.map → component-Dmn44ouM.cjs.map} +1 -1
  40. package/build/{component-BHfH9Gw4.js → component-Tjc4KXtU.js} +2 -2
  41. package/build/{component-BHfH9Gw4.js.map → component-Tjc4KXtU.js.map} +1 -1
  42. package/build/{component-DYX1oGKH.js → component-UAARmvBH.js} +2 -2
  43. package/build/{component-DYX1oGKH.js.map → component-UAARmvBH.js.map} +1 -1
  44. package/build/component-accordion.cjs.js +1 -1
  45. package/build/component-accordion.es.js +2 -2
  46. package/build/component-button-group.cjs.js +1 -1
  47. package/build/component-button-group.es.js +2 -2
  48. package/build/component-button.cjs.js +1 -1
  49. package/build/component-button.es.js +1 -1
  50. package/build/component-checkbox-group.cjs.js +1 -1
  51. package/build/component-checkbox-group.es.js +2 -2
  52. package/build/component-checkbox.cjs.js +1 -1
  53. package/build/component-checkbox.es.js +2 -2
  54. package/build/component-date-picker.cjs.js +1 -1
  55. package/build/component-date-picker.d.ts +8 -0
  56. package/build/component-date-picker.es.js +4 -2
  57. package/build/component-icon.cjs.js +1 -1
  58. package/build/component-icon.es.js +6 -6
  59. package/build/component-image-button.cjs.js +1 -1
  60. package/build/component-image-button.es.js +1 -1
  61. package/build/component-image-select.cjs.js +1 -1
  62. package/build/component-image-select.es.js +8 -8
  63. package/build/component-image-slider.cjs.js +1 -1
  64. package/build/component-image-slider.es.js +4 -4
  65. package/build/component-image.cjs.js +1 -1
  66. package/build/component-image.es.js +3 -3
  67. package/build/component-input-otp.cjs.js +1 -1
  68. package/build/component-input-otp.es.js +5 -5
  69. package/build/component-input.cjs.js +1 -1
  70. package/build/component-input.es.js +15 -15
  71. package/build/{component-B97JZKUB.cjs → component-jeO6CsTP.cjs} +2 -2
  72. package/build/{component-B97JZKUB.cjs.map → component-jeO6CsTP.cjs.map} +1 -1
  73. package/build/component-map.cjs.js +1 -1
  74. package/build/component-map.es.js +8 -8
  75. package/build/component-pagination.cjs.js +1 -1
  76. package/build/component-pagination.es.js +1 -1
  77. package/build/component-range.cjs.js +1 -1
  78. package/build/component-range.es.js +5 -5
  79. package/build/component-select.cjs.js +1 -1
  80. package/build/component-select.es.js +18 -18
  81. package/build/{component-DcAF7Isg.cjs → component-ssaD7jJ-.cjs} +2 -2
  82. package/build/{component-DcAF7Isg.cjs.map → component-ssaD7jJ-.cjs.map} +1 -1
  83. package/build/component-textarea.cjs.js +1 -1
  84. package/build/component-textarea.d.ts +3 -0
  85. package/build/component-textarea.es.js +5 -5
  86. package/build/component-toggle.cjs.js +1 -1
  87. package/build/component-toggle.es.js +4 -4
  88. package/build/component-tooltip.cjs.js +1 -1
  89. package/build/component-tooltip.d.ts +107 -0
  90. package/build/component-tooltip.es.js +9 -9
  91. package/build/component-typography.cjs.js +1 -1
  92. package/build/component-typography.d.ts +107 -0
  93. package/build/component-typography.es.js +6 -6
  94. package/build/{component-DFMjWiWi.cjs → component-zyoew755.cjs} +2 -2
  95. package/build/{component-DFMjWiWi.cjs.map → component-zyoew755.cjs.map} +1 -1
  96. package/build/{component.components-KcVM2DN2.js → component.components-CFsHZ-xd.js} +2 -2
  97. package/build/{component.components-KcVM2DN2.js.map → component.components-CFsHZ-xd.js.map} +1 -1
  98. package/build/{component.components-CsWG1Rwi.cjs → component.components-DnPZVXuo.cjs} +2 -2
  99. package/build/{component.components-CsWG1Rwi.cjs.map → component.components-DnPZVXuo.cjs.map} +1 -1
  100. package/build/{component.constants-B-csc6ih.cjs → component.constants-4oL81SFS.cjs} +2 -2
  101. package/build/{component.constants-B-csc6ih.cjs.map → component.constants-4oL81SFS.cjs.map} +1 -1
  102. package/build/{component.constants-BkbucsSA.js → component.constants-B3aCG9Aq.js} +3 -3
  103. package/build/{component.constants-BkbucsSA.js.map → component.constants-B3aCG9Aq.js.map} +1 -1
  104. package/build/{component.constants-ECVKYlcl.cjs → component.constants-DIRNAI_M.cjs} +2 -2
  105. package/build/{component.constants-ECVKYlcl.cjs.map → component.constants-DIRNAI_M.cjs.map} +1 -1
  106. package/build/{component.constants-BmRV80H6.js → component.constants-DWE902Cf.js} +2 -2
  107. package/build/{component.constants-BmRV80H6.js.map → component.constants-DWE902Cf.js.map} +1 -1
  108. package/build/component.types-D7_uJxuD.cjs +2 -0
  109. package/build/component.types-D7_uJxuD.cjs.map +1 -0
  110. package/build/{component.types-Cc_Ly48_.js → component.types-DhrhPsES.js} +187 -154
  111. package/build/component.types-DhrhPsES.js.map +1 -0
  112. package/build/consts.cjs.js +1 -1
  113. package/build/consts.es.js +1 -1
  114. package/build/context-app.cjs.js +1 -1
  115. package/build/context-app.es.js +17 -17
  116. package/build/context-sonner.cjs.js +1 -1
  117. package/build/context-sonner.es.js +18 -18
  118. package/build/{context.constants-CHzb-q9a.cjs → context.constants-CPdsUeiQ.cjs} +215 -206
  119. package/build/context.constants-CPdsUeiQ.cjs.map +1 -0
  120. package/build/{context.constants-ByIVCRij.js → context.constants-D8UVM6GL.js} +247 -134
  121. package/build/{context.constants-ByIVCRij.js.map → context.constants-D8UVM6GL.js.map} +1 -1
  122. package/build/{context.hooks-BDsIAUYd.js → context.hooks-1u3F7jId.js} +2 -2
  123. package/build/{context.hooks-BDsIAUYd.js.map → context.hooks-1u3F7jId.js.map} +1 -1
  124. package/build/{context.hooks-Bjivw-Im.cjs → context.hooks-Bi7-SukA.cjs} +2 -2
  125. package/build/{context.hooks-Bjivw-Im.cjs.map → context.hooks-Bi7-SukA.cjs.map} +1 -1
  126. package/build/{context.hooks-BHOQU6q9.cjs → context.hooks-CEM899ZV.cjs} +2 -2
  127. package/build/{context.hooks-BHOQU6q9.cjs.map → context.hooks-CEM899ZV.cjs.map} +1 -1
  128. package/build/{context.hooks-BGRydtLx.js → context.hooks-Ds6nn4po.js} +2 -2
  129. package/build/{context.hooks-BGRydtLx.js.map → context.hooks-Ds6nn4po.js.map} +1 -1
  130. package/build/index.cjs.js +1 -1
  131. package/build/index.d.ts +118 -0
  132. package/build/index.es.js +141 -139
  133. package/build/style-error.cjs.js +1 -1
  134. package/build/style-error.es.js +4 -4
  135. package/build/style-theme.cjs.js +1 -1
  136. package/build/style-theme.es.js +13 -13
  137. package/build/{use-2JigT9W0.cjs → use-BwhyveId.cjs} +2 -2
  138. package/build/{use-2JigT9W0.cjs.map → use-BwhyveId.cjs.map} +1 -1
  139. package/build/{use-DQXYSmcn.js → use-CjnNUWWw.js} +3 -3
  140. package/build/{use-DQXYSmcn.js.map → use-CjnNUWWw.js.map} +1 -1
  141. package/package.json +2 -2
  142. package/build/component.types-Cc_Ly48_.js.map +0 -1
  143. package/build/component.types-DqOJPJfu.cjs +0 -2
  144. package/build/component.types-DqOJPJfu.cjs.map +0 -1
  145. package/build/context.constants-CHzb-q9a.cjs.map +0 -1
package/build/index.es.js CHANGED
@@ -1,32 +1,32 @@
1
1
  import { O } from "./area-D4BoNEmX.js";
2
2
  import { u } from "./area.hooks-Bk04M7mk.js";
3
- import { d, e, b, c, A, aU, B, h, ay, q, j, o, p, l, m, n, C, i, k, al, am, ae, ab, ac, af, ad, bm, bj, bk, bl, bh, bi, bg, aO, aN, v, w, t, s, r, x, F, z, D, au, av, aw, at, bp, bn, I, M, N, O as O2, U, Q, R, T, a8, a9, aa, a7, a6, _, $, bv, bq, bt, bu, ag, P, aV, a$, b0, b3, b2, b5, b4, b1, b6, a_, b8, aj, ai, ah, ak, an, ax, az, ar, ao, ap, aA, as, aq, a, W, V, bf, bb, be, bd, b7, ba, bc, b9, f, g, K, L, a2, a1, a5, a4, X, a3, S, aE, aB, aC, bs, br, bB, bx, bw, by, bA, bz, aQ, aG, aF, aL, aK, aH, aM, aR, aS, aT, u as u2, E, y, bo, a0, Y, Z, aP, aD, aI, aJ, G, aW, aY, aZ, H, J, aX } from "./context.constants-ByIVCRij.js";
3
+ import { d, e, b, c, A, aW, B, h, aA, q, j, o, p, l, m, n, C, i, k, an, ao, ag, ad, ae, ah, af, bo, bl, bm, bn, bj, bk, bi, aQ, aP, v, w, t, s, r, x, F, H, z, D, aw, ax, ay, av, br, bp, I, O as O2, Q, R, W, T, U, V, aa, ab, ac, a9, a8, a0, a1, bx, bs, bv, bw, ai, P, aX, b1, b2, b5, b4, b7, b6, b3, b8, b0, ba, al, ak, aj, am, ap, az, aB, at, aq, ar, aC, au, as, a, Y, X, bh, bd, bg, bf, b9, bc, be, bb, f, g, M, N, a4, a3, a7, a6, Z, a5, S, aG, aD, aE, bu, bt, bD, bz, by, bA, bC, bB, aS, aI, aH, aN, aM, aJ, aO, aT, aU, aV, u as u2, G, E, y, bq, a2, _, $, aR, aF, aK, aL, J, aY, a_, a$, K, L, aZ } from "./context.constants-D8UVM6GL.js";
4
4
  import { S as S2 } from "./area.styles-BSqCfPE4.js";
5
5
  import { S as S3 } from "./area-occQcGnD.js";
6
6
  import { S as S4 } from "./component-CUiqQLEQ.js";
7
- import { A as A2 } from "./component-BT3dejQO.js";
8
- import { B as B2 } from "./component-Br2H7F-p.js";
9
- import { C as C2 } from "./component-BaGCJM5V.js";
10
- import { C as C3 } from "./component-Cp433cAv.js";
11
- import { D as D2, a as a10 } from "./component.types-Cc_Ly48_.js";
12
- import { I as I2 } from "./component-BpwTWRxp.js";
13
- import { I as I3 } from "./component-yTziSQZ7.js";
14
- import { I as I4 } from "./component-D2Y1Ky9N.js";
15
- import { a as a11, I as I5 } from "./component.constants-BkbucsSA.js";
16
- import { I as I6, f as f2 } from "./component-BHfH9Gw4.js";
17
- import { I as I7 } from "./component-BzFd5DyJ.js";
18
- import { C as C4, M as M2, a as a12, b as b10, U as U2, c as c2, e as e2, d as d2 } from "./component.components-KcVM2DN2.js";
19
- import { D as D3, P as P2 } from "./component.constants-BmRV80H6.js";
20
- import { R as R2 } from "./component-DJcrW4KX.js";
7
+ import { A as A2 } from "./component-BpgbR-JI.js";
8
+ import { B as B2 } from "./component-BqSYYCb3.js";
9
+ import { C as C2 } from "./component-BEkYgajE.js";
10
+ import { C as C3 } from "./component-BsjFCBxJ.js";
11
+ import { D as D2, a as a10 } from "./component.types-DhrhPsES.js";
12
+ import { I as I2 } from "./component-C-oN9gXq.js";
13
+ import { I as I3 } from "./component-BV20JUqs.js";
14
+ import { I as I4 } from "./component-CJWnWh-4.js";
15
+ import { a as a11, I as I5 } from "./component.constants-B3aCG9Aq.js";
16
+ import { I as I6, f as f2 } from "./component-Tjc4KXtU.js";
17
+ import { I as I7 } from "./component-CMUWN8YO.js";
18
+ import { C as C4, M as M2, a as a12, b as b10, U as U2, c as c2, e as e2, d as d2 } from "./component.components-CFsHZ-xd.js";
19
+ import { D as D3, P as P2 } from "./component.constants-DWE902Cf.js";
20
+ import { R as R2 } from "./component-BFDCc96N.js";
21
21
  import { D as D4, a as a13, R as R3, b as b11, c as c3, d as d3 } from "./component.styles-B0L4jbOO.js";
22
22
  import { R as R4 } from "./component-DHM9pbab.js";
23
23
  import { S as S5 } from "./component-Cp8VTqb2.js";
24
24
  import { S as S6 } from "./component.styles-SZ5VuhNG.js";
25
25
  import { b as b12, c as c4, S as S7, a as a14 } from "./component-DEZX8aBs.js";
26
- import { T as T2 } from "./component-DYX1oGKH.js";
26
+ import { T as T2 } from "./component-UAARmvBH.js";
27
27
  import { g as g2 } from "./component.functions-DNW6h8kk.js";
28
28
  import { LIBRARY_VERSION, LIST_IMAGE_SUPPORTED_FORMAT, LIST_IMAGE_SUPPORTED_FORMAT_FOR_INPUT, LIST_KEY_LANGUAGE, LIST_KEY_SERVICE, LIST_LANGUAGE, LIST_MAP_THEME, LIST_SERVICE, LOCALE_INPUT, LOCALE_MONTHS, LOCALE_WEEKS, LOREM_IPSUM_TEXT, OBJECT_LANGUAGE, OBJECT_SERVICE } from "./consts.es.js";
29
- import { u as u3 } from "./context.hooks-BGRydtLx.js";
29
+ import { u as u3 } from "./context.hooks-Ds6nn4po.js";
30
30
  import { C as C5, P as P3 } from "./context-BxU5kwVR.js";
31
31
  import { g as g3, s as s2, u as u4 } from "./context.functions-54_96FIi.js";
32
32
  import { d as d4, e as e3, j as j2, h as h2, f as f3, g as g4, i as i2, c as c5, D as D5, b as b13, a as a15, P as P4 } from "./context.constants-CZykW9B3.js";
@@ -38,7 +38,7 @@ import { g as g5, s as s3, u as u7 } from "./context.functions-X5gRRpKi.js";
38
38
  import { u as u8 } from "./context.functions-B8FDl7nJ.js";
39
39
  import { P as P7, a as a17, u as u9 } from "./context.hooks-7ydA7mGj.js";
40
40
  import { P as P8, S as S8, u as u10 } from "./context.hooks-BmwyZ1p3.js";
41
- import { u as u11 } from "./context.hooks-BDsIAUYd.js";
41
+ import { u as u11 } from "./context.hooks-1u3F7jId.js";
42
42
  import { getContrastYIQ, getScrollbarWidth, transformEnumToOptions, transformObjectToArray, transformObjectValuesToKeys } from "./functions.es.js";
43
43
  import { u as u12 } from "./use-Bp8UVw4Y.js";
44
44
  import { u as u13 } from "./use-DT0XgvJT.js";
@@ -52,12 +52,12 @@ export {
52
52
  b as AccordionSummary,
53
53
  c as AccordionSummaryContent,
54
54
  A as AccordionWrapper,
55
- aU as AppContext,
55
+ aW as AppContext,
56
56
  B3 as BlurIn,
57
57
  B as Button,
58
58
  B2 as ButtonGroup,
59
59
  h as ButtonGroupWrapper,
60
- ay as ButtonList,
60
+ aA as ButtonList,
61
61
  C2 as Checkbox,
62
62
  q as CheckboxChildren,
63
63
  j as CheckboxGenre,
@@ -70,16 +70,16 @@ export {
70
70
  C as CheckboxSize,
71
71
  i as CheckboxSizeConstructor,
72
72
  k as CheckboxWrapper,
73
- al as ContainerDropdownListOption,
74
- am as ContainerSelectListOption,
73
+ an as ContainerDropdownListOption,
74
+ ao as ContainerSelectListOption,
75
75
  C5 as CookieContext,
76
76
  C4 as CustomZoomControl,
77
77
  D3 as DEFAULT_COMPONENT_PAGINATION_GAP,
78
- ae as DEFAULT_MAP_CENTER,
79
- ab as DEFAULT_MAP_MAX_ZOOM,
80
- ac as DEFAULT_MAP_MIN_ZOOM,
81
- af as DEFAULT_MAP_THEME,
82
- ad as DEFAULT_MAP_ZOOM,
78
+ ag as DEFAULT_MAP_CENTER,
79
+ ad as DEFAULT_MAP_MAX_ZOOM,
80
+ ae as DEFAULT_MAP_MIN_ZOOM,
81
+ ah as DEFAULT_MAP_THEME,
82
+ af as DEFAULT_MAP_ZOOM,
83
83
  d4 as DEFAULT_PROVIDER_DIALOG_DURATION_ELEMENT,
84
84
  e3 as DEFAULT_PROVIDER_DIALOG_DURATION_LAYOUT,
85
85
  j2 as DEFAULT_PROVIDER_DIALOG_ELEMENT_BACKGROUND,
@@ -87,17 +87,17 @@ export {
87
87
  f3 as DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_HEIGHT,
88
88
  g4 as DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_WIDTH,
89
89
  i2 as DEFAULT_PROVIDER_DIALOG_ELEMENT_PADDING,
90
- bm as DEFAULT_PROVIDER_SONNER_BUTTON,
91
- bj as DEFAULT_PROVIDER_SONNER_DURATION,
92
- bk as DEFAULT_PROVIDER_SONNER_GENRE,
93
- bl as DEFAULT_PROVIDER_SONNER_MARGIN_BOTTOM,
94
- bh as DEFAULT_PROVIDER_SONNER_SCALE,
95
- bi as DEFAULT_PROVIDER_SONNER_Y,
96
- bg as DEFAULT_PROVIDER_SONNER_Z_INDEX,
90
+ bo as DEFAULT_PROVIDER_SONNER_BUTTON,
91
+ bl as DEFAULT_PROVIDER_SONNER_DURATION,
92
+ bm as DEFAULT_PROVIDER_SONNER_GENRE,
93
+ bn as DEFAULT_PROVIDER_SONNER_MARGIN_BOTTOM,
94
+ bj as DEFAULT_PROVIDER_SONNER_SCALE,
95
+ bk as DEFAULT_PROVIDER_SONNER_Y,
96
+ bi as DEFAULT_PROVIDER_SONNER_Z_INDEX,
97
97
  D4 as DEFAULT_RIPPLE_DURATION,
98
98
  a13 as DEFAULT_RIPPLE_ID,
99
- aO as DEFAULT_TOOLTIP_OFFSET_FALLBACK,
100
- aN as DEFAULT_TOOLTIP_PLACEMENT_FALLBACK,
99
+ aQ as DEFAULT_TOOLTIP_OFFSET_FALLBACK,
100
+ aP as DEFAULT_TOOLTIP_PLACEMENT_FALLBACK,
101
101
  v as DateDropdownDay,
102
102
  w as DateDropdownDayOfWeek,
103
103
  t as DateDropdownDays,
@@ -105,6 +105,7 @@ export {
105
105
  r as DateDropdownListParent,
106
106
  x as DateInput,
107
107
  F as DateInputButton,
108
+ H as DateInputButtonClear,
108
109
  z as DateInputWrapper,
109
110
  D2 as DatePicker,
110
111
  a10 as DatePickerVariant,
@@ -113,40 +114,40 @@ export {
113
114
  D5 as DialogContext,
114
115
  b13 as DialogElementWrapper,
115
116
  a15 as DialogLayout,
116
- au as DropdownList,
117
- av as DropdownListOption,
118
- aw as DropdownListOptionIcon,
119
- at as DropdownListParent,
120
- bp as ErrorMessage,
121
- bn as ErrorMessageComponent,
117
+ aw as DropdownList,
118
+ ax as DropdownListOption,
119
+ ay as DropdownListOptionIcon,
120
+ av as DropdownListParent,
121
+ br as ErrorMessage,
122
+ bp as ErrorMessageComponent,
122
123
  G2 as GeolocationContext,
123
124
  G3 as GradualSpacing,
124
125
  a11 as IMAGES,
125
126
  I as Icon,
126
127
  I2 as Image,
127
128
  I3 as ImageButton,
128
- M as ImageIMG,
129
+ O2 as ImageIMG,
129
130
  I4 as ImageSelect,
130
- N as ImageSelectListSize,
131
- O2 as ImageSelectListSizeConstructor,
132
- U as ImageSelectListWrapper,
133
- Q as ImageSelectSize,
134
- R as ImageSelectSizeConstructor,
135
- T as ImageSelectWrapper,
131
+ Q as ImageSelectListSize,
132
+ R as ImageSelectListSizeConstructor,
133
+ W as ImageSelectListWrapper,
134
+ T as ImageSelectSize,
135
+ U as ImageSelectSizeConstructor,
136
+ V as ImageSelectWrapper,
136
137
  I5 as ImageSlider,
137
138
  I6 as Input,
138
139
  I7 as InputOTP,
139
- a8 as InputOTPSize,
140
- a9 as InputOTPSizeConstructor,
141
- aa as InputOTPWrapper,
142
- a7 as InputPostfixChildren,
143
- a6 as InputPrefixChildren,
144
- _ as InputSize,
145
- $ as InputSizeConstructor,
146
- bv as JeneseiGlobalStyles,
147
- bq as JeneseiPalette,
148
- bt as KEY_SIZE_DATA,
149
- bu as KEY_SIZE_DATA_TOGGLE,
140
+ aa as InputOTPSize,
141
+ ab as InputOTPSizeConstructor,
142
+ ac as InputOTPWrapper,
143
+ a9 as InputPostfixChildren,
144
+ a8 as InputPrefixChildren,
145
+ a0 as InputSize,
146
+ a1 as InputSizeConstructor,
147
+ bx as JeneseiGlobalStyles,
148
+ bs as JeneseiPalette,
149
+ bv as KEY_SIZE_DATA,
150
+ bw as KEY_SIZE_DATA_TOGGLE,
150
151
  LIBRARY_VERSION,
151
152
  LIST_IMAGE_SUPPORTED_FORMAT,
152
153
  LIST_IMAGE_SUPPORTED_FORMAT_FOR_INPUT,
@@ -162,7 +163,7 @@ export {
162
163
  L2 as LocalStorageContext,
163
164
  M2 as MapCluster,
164
165
  a12 as MapDot,
165
- ag as MapWrapper,
166
+ ai as MapWrapper,
166
167
  b10 as MarkerCluster,
167
168
  OBJECT_LANGUAGE,
168
169
  OBJECT_SERVICE,
@@ -170,110 +171,111 @@ export {
170
171
  P2 as Pagination,
171
172
  P7 as PermissionContext,
172
173
  P as Preview,
173
- aV as ProviderApp,
174
- a$ as ProviderAppOutlet,
175
- b0 as ProviderAppOutletChildren,
176
- b3 as ProviderAppOutletFooter,
177
- b2 as ProviderAppOutletHeader,
178
- b5 as ProviderAppOutletLeftAside,
179
- b4 as ProviderAppOutletNav,
180
- b1 as ProviderAppOutletNotification,
181
- b6 as ProviderAppOutletRightAside,
182
- a_ as ProviderAppWrapper,
174
+ aX as ProviderApp,
175
+ b1 as ProviderAppOutlet,
176
+ b2 as ProviderAppOutletChildren,
177
+ b5 as ProviderAppOutletFooter,
178
+ b4 as ProviderAppOutletHeader,
179
+ b7 as ProviderAppOutletLeftAside,
180
+ b6 as ProviderAppOutletNav,
181
+ b3 as ProviderAppOutletNotification,
182
+ b8 as ProviderAppOutletRightAside,
183
+ b0 as ProviderAppWrapper,
183
184
  P3 as ProviderCookie,
184
185
  P4 as ProviderDialog,
185
186
  P5 as ProviderGeolocation,
186
187
  P6 as ProviderLocalStorage,
187
188
  a17 as ProviderPermission,
188
189
  P8 as ProviderScreenWidth,
189
- b8 as ProviderSonner,
190
+ ba as ProviderSonner,
190
191
  R2 as Range,
191
- aj as RangeThumb,
192
- ai as RangeTrack,
193
- ah as RangeWrapper,
192
+ al as RangeThumb,
193
+ ak as RangeTrack,
194
+ aj as RangeWrapper,
194
195
  R4 as Ripple,
195
196
  R3 as RippleContainer,
196
197
  b11 as RippleSpan,
197
198
  S8 as ScreenWidthContext,
198
199
  S3 as Scroll,
199
- ak as Select,
200
- an as SelectLanguage,
201
- ax as SelectList,
202
- az as SelectListOption,
203
- ar as SelectMapTheme,
204
- ao as SelectMonth,
205
- ap as SelectMonths,
206
- aA as SelectTextArea,
207
- as as SelectWrapper,
208
- aq as SelectYear,
200
+ am as Select,
201
+ ap as SelectLanguage,
202
+ az as SelectList,
203
+ aB as SelectListOption,
204
+ at as SelectMapTheme,
205
+ aq as SelectMonth,
206
+ ar as SelectMonths,
207
+ aC as SelectTextArea,
208
+ au as SelectWrapper,
209
+ as as SelectYear,
209
210
  S5 as Separator,
210
211
  S6 as SeparatorWrapper,
211
212
  a as Skeleton,
212
- W as SliderDot,
213
- V as SliderImage,
213
+ Y as SliderDot,
214
+ X as SliderImage,
214
215
  S4 as Smooth,
215
- bf as SonnerButtonWrapper,
216
- bb as SonnerContent,
217
- be as SonnerContentDescription,
218
- bd as SonnerContentTitle,
219
- b7 as SonnerContext,
220
- ba as SonnerElementWrapper,
221
- bc as SonnerIcon,
222
- b9 as SonnerLayout,
216
+ bh as SonnerButtonWrapper,
217
+ bd as SonnerContent,
218
+ bg as SonnerContentDescription,
219
+ bf as SonnerContentTitle,
220
+ b9 as SonnerContext,
221
+ bc as SonnerElementWrapper,
222
+ be as SonnerIcon,
223
+ bb as SonnerLayout,
223
224
  b12 as Stack,
224
225
  c4 as StackMotion,
225
226
  f as StyledButton,
226
227
  g as StyledButtonIconsWrapper,
227
- K as StyledIcon,
228
- L as StyledIconSkeleton,
229
- a2 as StyledInput,
230
- a1 as StyledInputCSS,
231
- a5 as StyledInputNumeric,
232
- a4 as StyledInputPattern,
233
- X as StyledInputWrapper,
234
- a3 as StyledMotionInput,
228
+ M as StyledIcon,
229
+ N as StyledIconSkeleton,
230
+ a4 as StyledInput,
231
+ a3 as StyledInputCSS,
232
+ a7 as StyledInputNumeric,
233
+ a6 as StyledInputPattern,
234
+ Z as StyledInputWrapper,
235
+ a5 as StyledMotionInput,
235
236
  S2 as StyledScroll,
236
237
  S as StyledSkeleton,
237
238
  S7 as StyledStack,
238
239
  a14 as StyledStackMotion,
239
- aE as StyledTextArea,
240
- aB as TextArea,
241
- aC as TextAreaWrapper,
242
- bs as ThemeBlack,
243
- br as ThemeLight,
244
- bB as ThemeMapBustmarket,
245
- bx as ThemeMapCheckbox,
246
- bw as ThemeMapId,
247
- by as ThemeMapLoading,
248
- bA as ThemeMapLogo,
249
- bz as ThemeMapRealebail,
250
- aQ as Title,
240
+ aG as StyledTextArea,
241
+ aD as TextArea,
242
+ aE as TextAreaWrapper,
243
+ bu as ThemeBlack,
244
+ bt as ThemeLight,
245
+ bD as ThemeMapBustmarket,
246
+ bz as ThemeMapCheckbox,
247
+ by as ThemeMapId,
248
+ bA as ThemeMapLoading,
249
+ bC as ThemeMapLogo,
250
+ bB as ThemeMapRealebail,
251
+ aS as Title,
251
252
  T2 as Toggle,
252
- aG as ToggleCenter,
253
- aF as ToggleWrapper,
254
- aL as Tooltip,
255
- aK as TooltipBox,
256
- aH as TooltipContainer,
257
- aM as TooltipContent,
253
+ aI as ToggleCenter,
254
+ aH as ToggleWrapper,
255
+ aN as Tooltip,
256
+ aM as TooltipBox,
257
+ aJ as TooltipContainer,
258
+ aO as TooltipContent,
258
259
  T3 as TypingEffect,
259
- aR as Typography,
260
- aS as TypographyLink,
261
- aT as TypographyTooltip,
260
+ aT as Typography,
261
+ aU as TypographyLink,
262
+ aV as TypographyTooltip,
262
263
  U2 as UpdateMapSettings,
263
264
  W2 as WordsPullUp,
264
265
  j3 as addAlwaysOutline,
265
266
  g6 as addColorTransition,
266
267
  u2 as addDateDropdownDaySize,
268
+ G as addDateInputButtonClearSize,
267
269
  E as addDateInputButtonSize,
268
270
  y as addDateInputWrapperSize,
269
271
  m2 as addDisabled,
270
- bo as addError,
272
+ bq as addError,
271
273
  c6 as addFont,
272
274
  f4 as addFontSizeTransition,
273
275
  e4 as addGridTransition,
274
- a0 as addInputIsInputEffect,
275
- Y as addInputPlaceholder,
276
- Z as addInputPlaceholderNiceNumber,
276
+ a2 as addInputIsInputEffect,
277
+ _ as addInputPlaceholder,
278
+ $ as addInputPlaceholderNiceNumber,
277
279
  l2 as addNiceNumber,
278
280
  h3 as addOutline,
279
281
  i3 as addOutlineChildren,
@@ -282,10 +284,10 @@ export {
282
284
  c3 as addRipple,
283
285
  d3 as addRippleDefault,
284
286
  a19 as addSX,
285
- aP as addSXTypography,
286
- aD as addTextArea,
287
- aI as addTooltipBoxSize,
288
- aJ as addTooltipBoxSizeConstructor,
287
+ aR as addSXTypography,
288
+ aF as addTextArea,
289
+ aK as addTooltipBoxSize,
290
+ aL as addTooltipBoxSizeConstructor,
289
291
  b14 as addTransition,
290
292
  d5 as addTransitionWithoutSize,
291
293
  c2 as createClusterIcon,
@@ -296,7 +298,7 @@ export {
296
298
  g2 as getFontSizeStyles,
297
299
  g3 as getFromCookie,
298
300
  g5 as getFromLocalStorage,
299
- G as getIconComponents,
301
+ J as getIconComponents,
300
302
  getScrollbarWidth,
301
303
  s2 as setToCookie,
302
304
  s3 as setToLocalStorage,
@@ -305,22 +307,22 @@ export {
305
307
  transformObjectValuesToKeys,
306
308
  u8 as urlBase64ToUint8Array,
307
309
  u3 as useApp,
308
- aW as useBgColor,
309
- aY as useBgImage,
310
+ aY as useBgColor,
311
+ a_ as useBgImage,
310
312
  u4 as useCookie,
311
313
  u12 as useDebouncedCallback,
312
314
  u13 as useDeepCompareMemoize,
313
- aZ as useDescription,
315
+ a$ as useDescription,
314
316
  a16 as useDialog,
315
317
  u5 as useDialogs,
316
318
  u6 as useGeolocation,
317
- H as useInjectSprites,
318
- J as useLazyInjectSprite,
319
+ K as useInjectSprites,
320
+ L as useLazyInjectSprite,
319
321
  u7 as useLocalStorage,
320
322
  u9 as usePermission,
321
323
  u as useRemovePreviewLoader,
322
324
  u10 as useScreenWidth,
323
325
  u11 as useSonner,
324
- aX as useStatusBarColor
326
+ aZ as useStatusBarColor
325
327
  };
326
328
  //# sourceMappingURL=index.es.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./context.constants-CHzb-q9a.cjs");exports.ErrorMessage=r.ErrorMessage,exports.ErrorMessageComponent=r.ErrorMessageComponent,exports.addError=r.addError;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./context.constants-CPdsUeiQ.cjs");exports.ErrorMessage=r.ErrorMessage,exports.ErrorMessageComponent=r.ErrorMessageComponent,exports.addError=r.addError;
2
2
  //# sourceMappingURL=style-error.cjs.js.map
@@ -1,7 +1,7 @@
1
- import { bp, bn, bo } from "./context.constants-ByIVCRij.js";
1
+ import { br, bp, bq } from "./context.constants-D8UVM6GL.js";
2
2
  export {
3
- bp as ErrorMessage,
4
- bn as ErrorMessageComponent,
5
- bo as addError
3
+ br as ErrorMessage,
4
+ bp as ErrorMessageComponent,
5
+ bq as addError
6
6
  };
7
7
  //# sourceMappingURL=style-error.es.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./context.constants-CHzb-q9a.cjs");exports.JeneseiGlobalStyles=e.JeneseiGlobalStyles,exports.JeneseiPalette=e.JeneseiPalette,exports.KEY_SIZE_DATA=e.KEY_SIZE_DATA,exports.KEY_SIZE_DATA_TOGGLE=e.KEY_SIZE_DATA_TOGGLE,exports.ThemeBlack=e.ThemeBlack,exports.ThemeLight=e.ThemeLight,exports.ThemeMapBustmarket=e.ThemeMapBustmarket,exports.ThemeMapCheckbox=e.ThemeMapCheckbox,exports.ThemeMapId=e.ThemeMapId,exports.ThemeMapLoading=e.ThemeMapLoading,exports.ThemeMapLogo=e.ThemeMapLogo,exports.ThemeMapRealebail=e.ThemeMapRealebail;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./context.constants-CPdsUeiQ.cjs");exports.JeneseiGlobalStyles=e.JeneseiGlobalStyles,exports.JeneseiPalette=e.JeneseiPalette,exports.KEY_SIZE_DATA=e.KEY_SIZE_DATA,exports.KEY_SIZE_DATA_TOGGLE=e.KEY_SIZE_DATA_TOGGLE,exports.ThemeBlack=e.ThemeBlack,exports.ThemeLight=e.ThemeLight,exports.ThemeMapBustmarket=e.ThemeMapBustmarket,exports.ThemeMapCheckbox=e.ThemeMapCheckbox,exports.ThemeMapId=e.ThemeMapId,exports.ThemeMapLoading=e.ThemeMapLoading,exports.ThemeMapLogo=e.ThemeMapLogo,exports.ThemeMapRealebail=e.ThemeMapRealebail;
2
2
  //# sourceMappingURL=style-theme.cjs.js.map
@@ -1,16 +1,16 @@
1
- import { bv, bq, bt, bu, bs, br, bB, bx, bw, by, bA, bz } from "./context.constants-ByIVCRij.js";
1
+ import { bx, bs, bv, bw, bu, bt, bD, bz, by, bA, bC, bB } from "./context.constants-D8UVM6GL.js";
2
2
  export {
3
- bv as JeneseiGlobalStyles,
4
- bq as JeneseiPalette,
5
- bt as KEY_SIZE_DATA,
6
- bu as KEY_SIZE_DATA_TOGGLE,
7
- bs as ThemeBlack,
8
- br as ThemeLight,
9
- bB as ThemeMapBustmarket,
10
- bx as ThemeMapCheckbox,
11
- bw as ThemeMapId,
12
- by as ThemeMapLoading,
13
- bA as ThemeMapLogo,
14
- bz as ThemeMapRealebail
3
+ bx as JeneseiGlobalStyles,
4
+ bs as JeneseiPalette,
5
+ bv as KEY_SIZE_DATA,
6
+ bw as KEY_SIZE_DATA_TOGGLE,
7
+ bu as ThemeBlack,
8
+ bt as ThemeLight,
9
+ bD as ThemeMapBustmarket,
10
+ bz as ThemeMapCheckbox,
11
+ by as ThemeMapId,
12
+ bA as ThemeMapLoading,
13
+ bC as ThemeMapLogo,
14
+ bB as ThemeMapRealebail
15
15
  };
16
16
  //# sourceMappingURL=style-theme.es.js.map
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("./jsx-runtime-BcGej2Kr.cjs"),t=require("react"),o=require("./context.constants-CHzb-q9a.cjs"),n=require("./component.constants-ECVKYlcl.cjs"),i=require("./component-5Utdcc2G.cjs"),r=require("./consts.cjs.js");require("./context.constants-wztrdG5Q.cjs");const a=require("./context.hooks-DDtUqE34.cjs"),s=require("styled-components");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const o in e)if("default"!==o){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}return t.default=e,Object.freeze(t)}const p=c(t);function u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var d=function(e,t){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)};var l=function(){return l=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},l.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var h,m,g,v,f,w,x,C,S,y,b,R,z,D,E,P=!1;function M(){if(!P){P=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),o=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(R=/\b(iPhone|iP[ao]d)/.exec(e),z=/\b(iP[ao]d)/.exec(e),y=/Android/i.exec(e),D=/FBAN\/\w+;/i.exec(e),E=/Mobile/i.exec(e),b=!!/Win64/.exec(e),t){(h=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(h=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);w=n?parseFloat(n[1])+4:h,m=t[2]?parseFloat(t[2]):NaN,g=t[3]?parseFloat(t[3]):NaN,(v=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),f=t&&t[1]?parseFloat(t[1]):NaN):f=NaN}else h=m=g=f=v=NaN;if(o){if(o[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);x=!i||parseFloat(i[1].replace("_","."))}else x=!1;C=!!o[2],S=!!o[3]}else x=C=S=!1}}var j,A={ie:function(){return M()||h},ieCompatibilityMode:function(){return M()||w>h},ie64:function(){return A.ie()&&b},firefox:function(){return M()||m},opera:function(){return M()||g},webkit:function(){return M()||v},safari:function(){return A.webkit()},chrome:function(){return M()||f},windows:function(){return M()||C},osx:function(){return M()||x},linux:function(){return M()||S},iphone:function(){return M()||R},mobile:function(){return M()||R||z||y||E},nativeApp:function(){return M()||D},android:function(){return M()||y},ipad:function(){return M()||z}},T=A,O={canUseDOM:!("undefined"==typeof window||!window.document||!window.document.createElement)};O.canUseDOM&&(j=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""))
1
+ "use strict";const e=require("./jsx-runtime-BcGej2Kr.cjs"),t=require("react"),o=require("./context.constants-CPdsUeiQ.cjs"),n=require("./component.constants-DIRNAI_M.cjs"),i=require("./component-5Utdcc2G.cjs"),r=require("./consts.cjs.js");require("./context.constants-wztrdG5Q.cjs");const a=require("./context.hooks-DDtUqE34.cjs"),s=require("styled-components");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const o in e)if("default"!==o){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}return t.default=e,Object.freeze(t)}const p=c(t);function u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var d=function(e,t){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)};var l=function(){return l=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},l.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var h,m,g,v,f,w,x,C,S,y,b,R,z,D,E,P=!1;function M(){if(!P){P=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),o=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(R=/\b(iPhone|iP[ao]d)/.exec(e),z=/\b(iP[ao]d)/.exec(e),y=/Android/i.exec(e),D=/FBAN\/\w+;/i.exec(e),E=/Mobile/i.exec(e),b=!!/Win64/.exec(e),t){(h=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(h=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);w=n?parseFloat(n[1])+4:h,m=t[2]?parseFloat(t[2]):NaN,g=t[3]?parseFloat(t[3]):NaN,(v=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),f=t&&t[1]?parseFloat(t[1]):NaN):f=NaN}else h=m=g=f=v=NaN;if(o){if(o[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);x=!i||parseFloat(i[1].replace("_","."))}else x=!1;C=!!o[2],S=!!o[3]}else x=C=S=!1}}var j,A={ie:function(){return M()||h},ieCompatibilityMode:function(){return M()||w>h},ie64:function(){return A.ie()&&b},firefox:function(){return M()||m},opera:function(){return M()||g},webkit:function(){return M()||v},safari:function(){return A.webkit()},chrome:function(){return M()||f},windows:function(){return M()||C},osx:function(){return M()||x},linux:function(){return M()||S},iphone:function(){return M()||R},mobile:function(){return M()||R||z||y||E},nativeApp:function(){return M()||D},android:function(){return M()||y},ipad:function(){return M()||z}},T=A,O={canUseDOM:!("undefined"==typeof window||!window.document||!window.document.createElement)};O.canUseDOM&&(j=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""))
2
2
  /**
3
3
  * Checks if an event is supported in the current execution environment.
4
4
  *
@@ -13,4 +13,4 @@
13
13
  * @internal
14
14
  * @license Modernizr 3.0.0pre (Custom Build) | MIT
15
15
  */;var W=T,_=function(e,t){if(!O.canUseDOM||t&&!("addEventListener"in document))return!1;var o="on"+e,n=o in document;if(!n){var i=document.createElement("div");i.setAttribute(o,"return;"),n="function"==typeof i[o]}return!n&&j&&"wheel"===e&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n};function L(e){var t=0,o=0,n=0,i=0;return"detail"in e&&(o=e.detail),"wheelDelta"in e&&(o=-e.wheelDelta/120),"wheelDeltaY"in e&&(o=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=o,o=0),n=10*t,i=10*o,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||i)&&e.deltaMode&&(1==e.deltaMode?(n*=40,i*=40):(n*=800,i*=800)),n&&!t&&(t=n<1?-1:1),i&&!o&&(o=i<1?-1:1),{spinX:t,spinY:o,pixelX:n,pixelY:i}}L.getEventType=function(){return W.firefox()?"DOMMouseScroll":_("wheel")?"wheel":"mousewheel"};const I=u(L);function N(e,t,o,n,i){void 0===i&&(i=0);var r=B(t.width,t.height,i),a=r.width,s=r.height;return{x:F(e.x,a,o.width,n),y:F(e.y,s,o.height,n)}}function F(e,t,o,n){var i=t*n/2-o/2;return G(e,-i,i)}function k(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function Z(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function H(e,t){return Math.min(e,Math.max(0,t))}function U(e,t){return t}function q(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function B(e,t,o){var n=o*Math.PI/180;return{width:Math.abs(Math.cos(n)*e)+Math.abs(Math.sin(n)*t),height:Math.abs(Math.sin(n)*e)+Math.abs(Math.cos(n)*t)}}function G(e,t,o){return Math.min(Math.max(e,t),o)}function X(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return"string"==typeof e&&e.length>0}).join(" ").trim()}var K=function(e){function t(){var o=null!==e&&e.apply(this,arguments)||this;return o.cropperRef=p.createRef(),o.imageRef=p.createRef(),o.videoRef=p.createRef(),o.containerPosition={x:0,y:0},o.containerRef=null,o.styleRef=null,o.containerRect=null,o.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},o.dragStartPosition={x:0,y:0},o.dragStartCrop={x:0,y:0},o.gestureZoomStart=0,o.gestureRotationStart=0,o.isTouching=!1,o.lastPinchDistance=0,o.lastPinchRotation=0,o.rafDragTimeout=null,o.rafPinchTimeout=null,o.wheelTimer=null,o.currentDoc="undefined"!=typeof document?document:null,o.currentWindow="undefined"!=typeof window?window:null,o.resizeObserver=null,o.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},o.initResizeObserver=function(){if(void 0!==window.ResizeObserver&&o.containerRef){var e=!0;o.resizeObserver=new window.ResizeObserver(function(t){e?e=!1:o.computeSizes()}),o.resizeObserver.observe(o.containerRef)}},o.preventZoomSafari=function(e){return e.preventDefault()},o.cleanEvents=function(){o.currentDoc&&(o.currentDoc.removeEventListener("mousemove",o.onMouseMove),o.currentDoc.removeEventListener("mouseup",o.onDragStopped),o.currentDoc.removeEventListener("touchmove",o.onTouchMove),o.currentDoc.removeEventListener("touchend",o.onDragStopped),o.currentDoc.removeEventListener("gesturechange",o.onGestureChange),o.currentDoc.removeEventListener("gestureend",o.onGestureEnd),o.currentDoc.removeEventListener("scroll",o.onScroll))},o.clearScrollEvent=function(){o.containerRef&&o.containerRef.removeEventListener("wheel",o.onWheel),o.wheelTimer&&clearTimeout(o.wheelTimer)},o.onMediaLoad=function(){var e=o.computeSizes();e&&(o.emitCropData(),o.setInitialCrop(e)),o.props.onMediaLoaded&&o.props.onMediaLoaded(o.mediaSize)},o.setInitialCrop=function(e){if(o.props.initialCroppedAreaPercentages){var t=function(e,t,o,n,i,r){var a=B(t.width,t.height,o),s=G(n.width/a.width*(100/e.width),i,r);return{crop:{x:s*a.width/2-n.width/2-a.width*s*(e.x/100),y:s*a.height/2-n.height/2-a.height*s*(e.y/100)},zoom:s}}(o.props.initialCroppedAreaPercentages,o.mediaSize,o.props.rotation,e,o.props.minZoom,o.props.maxZoom),n=t.crop,i=t.zoom;o.props.onCropChange(n),o.props.onZoomChange&&o.props.onZoomChange(i)}else if(o.props.initialCroppedAreaPixels){var r=function(e,t,o,n,i,r){void 0===o&&(o=0);var a=B(t.naturalWidth,t.naturalHeight,o),s=G(function(e,t,o){var n=function(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}(t);return o.height>o.width?o.height/(e.height*n):o.width/(e.width*n)}(e,t,n),i,r),c=n.height>n.width?n.height/e.height:n.width/e.width;return{crop:{x:((a.width-e.width)/2-e.x)*c,y:((a.height-e.height)/2-e.y)*c},zoom:s}}(o.props.initialCroppedAreaPixels,o.mediaSize,o.props.rotation,e,o.props.minZoom,o.props.maxZoom);n=r.crop,i=r.zoom;o.props.onCropChange(n),o.props.onZoomChange&&o.props.onZoomChange(i)}},o.computeSizes=function(){var e,t,n,i,r,a,s=o.imageRef.current||o.videoRef.current;if(s&&o.containerRef){o.containerRect=o.containerRef.getBoundingClientRect(),o.saveContainerPosition();var c=o.containerRect.width/o.containerRect.height,p=(null===(e=o.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=o.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,u=(null===(n=o.imageRef.current)||void 0===n?void 0:n.naturalHeight)||(null===(i=o.videoRef.current)||void 0===i?void 0:i.videoHeight)||0,d=p/u,h=void 0;if(s.offsetWidth<p||s.offsetHeight<u)switch(o.state.mediaObjectFit){default:case"contain":h=c>d?{width:o.containerRect.height*d,height:o.containerRect.height}:{width:o.containerRect.width,height:o.containerRect.width/d};break;case"horizontal-cover":h={width:o.containerRect.width,height:o.containerRect.width/d};break;case"vertical-cover":h={width:o.containerRect.height*d,height:o.containerRect.height}}else h={width:s.offsetWidth,height:s.offsetHeight};o.mediaSize=l(l({},h),{naturalWidth:p,naturalHeight:u}),o.props.setMediaSize&&o.props.setMediaSize(o.mediaSize);var m=o.props.cropSize?o.props.cropSize:function(e,t,o,n,i,r){void 0===r&&(r=0);var a=B(e,t,r),s=a.width,c=a.height,p=Math.min(s,o),u=Math.min(c,n);return p>u*i?{width:u*i,height:u}:{width:p,height:p/i}}(o.mediaSize.width,o.mediaSize.height,o.containerRect.width,o.containerRect.height,o.props.aspect,o.props.rotation);return(null===(r=o.state.cropSize)||void 0===r?void 0:r.height)===m.height&&(null===(a=o.state.cropSize)||void 0===a?void 0:a.width)===m.width||o.props.onCropSizeChange&&o.props.onCropSizeChange(m),o.setState({cropSize:m},o.recomputeCropPosition),o.props.setCropSize&&o.props.setCropSize(m),m}},o.saveContainerPosition=function(){if(o.containerRef){var e=o.containerRef.getBoundingClientRect();o.containerPosition={x:e.left,y:e.top}}},o.onMouseDown=function(e){o.currentDoc&&(e.preventDefault(),o.currentDoc.addEventListener("mousemove",o.onMouseMove),o.currentDoc.addEventListener("mouseup",o.onDragStopped),o.saveContainerPosition(),o.onDragStart(t.getMousePoint(e)))},o.onMouseMove=function(e){return o.onDrag(t.getMousePoint(e))},o.onScroll=function(e){o.currentDoc&&(e.preventDefault(),o.saveContainerPosition())},o.onTouchStart=function(e){o.currentDoc&&(o.isTouching=!0,o.props.onTouchRequest&&!o.props.onTouchRequest(e)||(o.currentDoc.addEventListener("touchmove",o.onTouchMove,{passive:!1}),o.currentDoc.addEventListener("touchend",o.onDragStopped),o.saveContainerPosition(),2===e.touches.length?o.onPinchStart(e):1===e.touches.length&&o.onDragStart(t.getTouchPoint(e.touches[0]))))},o.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?o.onPinchMove(e):1===e.touches.length&&o.onDrag(t.getTouchPoint(e.touches[0]))},o.onGestureStart=function(e){o.currentDoc&&(e.preventDefault(),o.currentDoc.addEventListener("gesturechange",o.onGestureChange),o.currentDoc.addEventListener("gestureend",o.onGestureEnd),o.gestureZoomStart=o.props.zoom,o.gestureRotationStart=o.props.rotation)},o.onGestureChange=function(e){if(e.preventDefault(),!o.isTouching){var n=t.getMousePoint(e),i=o.gestureZoomStart-1+e.scale;if(o.setNewZoom(i,n,{shouldUpdatePosition:!0}),o.props.onRotationChange){var r=o.gestureRotationStart+e.rotation;o.props.onRotationChange(r)}}},o.onGestureEnd=function(e){o.cleanEvents()},o.onDragStart=function(e){var t,n,i=e.x,r=e.y;o.dragStartPosition={x:i,y:r},o.dragStartCrop=l({},o.props.crop),null===(n=(t=o.props).onInteractionStart)||void 0===n||n.call(t)},o.onDrag=function(e){var t=e.x,n=e.y;o.currentWindow&&(o.rafDragTimeout&&o.currentWindow.cancelAnimationFrame(o.rafDragTimeout),o.rafDragTimeout=o.currentWindow.requestAnimationFrame(function(){if(o.state.cropSize&&void 0!==t&&void 0!==n){var e=t-o.dragStartPosition.x,i=n-o.dragStartPosition.y,r={x:o.dragStartCrop.x+e,y:o.dragStartCrop.y+i},a=o.props.restrictPosition?N(r,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):r;o.props.onCropChange(a)}}))},o.onDragStopped=function(){var e,t;o.isTouching=!1,o.cleanEvents(),o.emitCropData(),null===(t=(e=o.props).onInteractionEnd)||void 0===t||t.call(e)},o.onWheel=function(e){if(o.currentWindow&&(!o.props.onWheelRequest||o.props.onWheelRequest(e))){e.preventDefault();var n=t.getMousePoint(e),i=I(e).pixelY,r=o.props.zoom-i*o.props.zoomSpeed/200;o.setNewZoom(r,n,{shouldUpdatePosition:!0}),o.state.hasWheelJustStarted||o.setState({hasWheelJustStarted:!0},function(){var e,t;return null===(t=(e=o.props).onInteractionStart)||void 0===t?void 0:t.call(e)}),o.wheelTimer&&clearTimeout(o.wheelTimer),o.wheelTimer=o.currentWindow.setTimeout(function(){return o.setState({hasWheelJustStarted:!1},function(){var e,t;return null===(t=(e=o.props).onInteractionEnd)||void 0===t?void 0:t.call(e)})},250)}},o.getPointOnContainer=function(e,t){var n=e.x,i=e.y;if(!o.containerRect)throw new Error("The Cropper is not mounted");return{x:o.containerRect.width/2-(n-t.x),y:o.containerRect.height/2-(i-t.y)}},o.getPointOnMedia=function(e){var t=e.x,n=e.y,i=o.props,r=i.crop,a=i.zoom;return{x:(t+r.x)/a,y:(n+r.y)/a}},o.setNewZoom=function(e,t,n){var i=(void 0===n?{}:n).shouldUpdatePosition,r=void 0===i||i;if(o.state.cropSize&&o.props.onZoomChange){var a=G(e,o.props.minZoom,o.props.maxZoom);if(r){var s=o.getPointOnContainer(t,o.containerPosition),c=o.getPointOnMedia(s),p={x:c.x*a-s.x,y:c.y*a-s.y},u=o.props.restrictPosition?N(p,o.mediaSize,o.state.cropSize,a,o.props.rotation):p;o.props.onCropChange(u)}o.props.onZoomChange(a)}},o.getCropData=function(){return o.state.cropSize?function(e,t,o,n,i,r,a){void 0===r&&(r=0),void 0===a&&(a=!0);var s=a?H:U,c=B(t.width,t.height,r),p=B(t.naturalWidth,t.naturalHeight,r),u={x:s(100,((c.width-o.width/i)/2-e.x/i)/c.width*100),y:s(100,((c.height-o.height/i)/2-e.y/i)/c.height*100),width:s(100,o.width/c.width*100/i),height:s(100,o.height/c.height*100/i)},d=Math.round(s(p.width,u.width*p.width/100)),h=Math.round(s(p.height,u.height*p.height/100)),m=p.width>=p.height*n?{width:Math.round(h*n),height:h}:{width:d,height:Math.round(d/n)};return{croppedAreaPercentages:u,croppedAreaPixels:l(l({},m),{x:Math.round(s(p.width-m.width,u.x*p.width/100)),y:Math.round(s(p.height-m.height,u.y*p.height/100))})}}(o.props.restrictPosition?N(o.props.crop,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):o.props.crop,o.mediaSize,o.state.cropSize,o.getAspect(),o.props.zoom,o.props.rotation,o.props.restrictPosition):null},o.emitCropData=function(){var e=o.getCropData();if(e){var t=e.croppedAreaPercentages,n=e.croppedAreaPixels;o.props.onCropComplete&&o.props.onCropComplete(t,n),o.props.onCropAreaChange&&o.props.onCropAreaChange(t,n)}},o.emitCropAreaChange=function(){var e=o.getCropData();if(e){var t=e.croppedAreaPercentages,n=e.croppedAreaPixels;o.props.onCropAreaChange&&o.props.onCropAreaChange(t,n)}},o.recomputeCropPosition=function(){if(o.state.cropSize){var e=o.props.restrictPosition?N(o.props.crop,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):o.props.crop;o.props.onCropChange(e),o.emitCropData()}},o.onKeyDown=function(e){var t,n,i=o.props,r=i.crop,a=i.onCropChange,s=i.keyboardStep,c=i.zoom,p=i.rotation,u=s;if(o.state.cropSize){e.shiftKey&&(u*=.2);var d=l({},r);switch(e.key){case"ArrowUp":d.y-=u,e.preventDefault();break;case"ArrowDown":d.y+=u,e.preventDefault();break;case"ArrowLeft":d.x-=u,e.preventDefault();break;case"ArrowRight":d.x+=u,e.preventDefault();break;default:return}o.props.restrictPosition&&(d=N(d,o.mediaSize,o.state.cropSize,c,p)),e.repeat||null===(n=(t=o.props).onInteractionStart)||void 0===n||n.call(t),a(d)}},o.onKeyUp=function(e){var t,n;switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":e.preventDefault();break;default:return}o.emitCropData(),null===(n=(t=o.props).onInteractionEnd)||void 0===n||n.call(t)},o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}(t,e),t.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),void 0===window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))},t.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&(void 0===window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(e){var t,o,n,i,r,a,s,c,p;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect||e.objectFit!==this.props.objectFit?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(o=this.props.cropSize)||void 0===o?void 0:o.height)||(null===(n=e.cropSize)||void 0===n?void 0:n.width)!==(null===(i=this.props.cropSize)||void 0===i?void 0:i.width)?this.computeSizes():(null===(r=e.crop)||void 0===r?void 0:r.x)===(null===(a=this.props.crop)||void 0===a?void 0:a.x)&&(null===(s=e.crop)||void 0===s?void 0:s.y)===(null===(c=this.props.crop)||void 0===c?void 0:c.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(p=this.videoRef.current)||void 0===p||p.load());var u=this.getObjectFit();u!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:u},this.computeSizes)},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,o=e.aspect;return t?t.width/t.height:o},t.prototype.getObjectFit=function(){var e,t,o,n;if("cover"===this.props.objectFit){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var i=this.containerRect.width/this.containerRect.height;return((null===(e=this.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=this.videoRef.current)||void 0===t?void 0:t.videoWidth)||0)/((null===(o=this.imageRef.current)||void 0===o?void 0:o.naturalHeight)||(null===(n=this.videoRef.current)||void 0===n?void 0:n.videoHeight)||0)<i?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},t.prototype.onPinchStart=function(e){var o=t.getTouchPoint(e.touches[0]),n=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=k(o,n),this.lastPinchRotation=Z(o,n),this.onDragStart(q(o,n))},t.prototype.onPinchMove=function(e){var o=this;if(this.currentDoc&&this.currentWindow){var n=t.getTouchPoint(e.touches[0]),i=t.getTouchPoint(e.touches[1]),r=q(n,i);this.onDrag(r),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var e=k(n,i),t=o.props.zoom*(e/o.lastPinchDistance);o.setNewZoom(t,r,{shouldUpdatePosition:!1}),o.lastPinchDistance=e;var a=Z(n,i),s=o.props.rotation+(a-o.lastPinchRotation);o.props.onRotationChange&&o.props.onRotationChange(s),o.lastPinchRotation=a})}},t.prototype.render=function(){var e,t=this,o=this.props,n=o.image,i=o.video,r=o.mediaProps,a=o.cropperProps,s=o.transform,c=o.crop,u=c.x,d=c.y,h=o.rotation,m=o.zoom,g=o.cropShape,v=o.showGrid,f=o.style,w=f.containerStyle,x=f.cropAreaStyle,C=f.mediaStyle,S=o.classes,y=S.containerClassName,b=S.cropAreaClassName,R=S.mediaClassName,z=null!==(e=this.state.mediaObjectFit)&&void 0!==e?e:this.getObjectFit();return p.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(e){return t.containerRef=e},"data-testid":"container",style:w,className:X("reactEasyCrop_Container",y)},n?p.createElement("img",l({alt:"",className:X("reactEasyCrop_Image","contain"===z&&"reactEasyCrop_Contain","horizontal-cover"===z&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===z&&"reactEasyCrop_Cover_Vertical",R)},r,{src:n,ref:this.imageRef,style:l(l({},C),{transform:s||"translate(".concat(u,"px, ").concat(d,"px) rotate(").concat(h,"deg) scale(").concat(m,")")}),onLoad:this.onMediaLoad})):i&&p.createElement("video",l({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:X("reactEasyCrop_Video","contain"===z&&"reactEasyCrop_Contain","horizontal-cover"===z&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===z&&"reactEasyCrop_Cover_Vertical",R)},r,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:l(l({},C),{transform:s||"translate(".concat(u,"px, ").concat(d,"px) rotate(").concat(h,"deg) scale(").concat(m,")")}),controls:!1}),(Array.isArray(i)?i:[{src:i}]).map(function(e){return p.createElement("source",l({key:e.src},e))})),this.state.cropSize&&p.createElement("div",l({ref:this.cropperRef,style:l(l({},x),{width:this.state.cropSize.width,height:this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:X("reactEasyCrop_CropArea","round"===g&&"reactEasyCrop_CropAreaRound",v&&"reactEasyCrop_CropAreaGrid",b)},a)))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:1},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(p.Component);const V=a=>{var c,p,u,d,l,h,m,g,v,f;const[w,x]=t.useState(0),[C,S]=t.useState([]),[y,b]=t.useState([]),R=s.useTheme(),z=t.useMemo(()=>a.images.length>1,[a.images.length]),D=t.useMemo(()=>null==C?void 0:C[w],[C,w]),E=t.useCallback(async e=>{var t,o,n;const i=await Promise.all(e.map(async e=>{const t=y[e.index]??null;if(e.isDeleted||!e.isCropped||!e.url||!e.name||!t)return null;const o=await function(e,t,o="image/png"){const n=r.LIST_IMAGE_SUPPORTED_FORMAT.includes(o)?o:"image/png";return new Promise((o,i)=>{const r=new Image;r.src=e,r.crossOrigin="anonymous",r.onload=()=>{const e=document.createElement("canvas"),a=e.getContext("2d");e.width=t.width,e.height=t.height,a.drawImage(r,t.x,t.y,t.width,t.height,0,0,t.width,t.height),e.toBlob(e=>{e?o(e):i(new Error("Canvas is empty"))},n)},r.onerror=()=>i(new Error("Failed to load image"))})}(e.url,t,e.format),n=new File([o],e.name,{type:e.format});return{...e,file:n,url:URL.createObjectURL(n)}}));null==(o=null==(t=a.params)?void 0:t.onSave)||o.call(t,i.filter(Boolean)),null==(n=a.remove)||n.call(a)},[y,a]),P=t.useCallback(async e=>{var t;const o=null==(t=a.images)?void 0:t[e.index];if(o){const t={...o,id:Date.now()+e.index,index:e.index,croppedArea:e.croppedArea??o.croppedArea,zoom:e.zoom??o.zoom,crop:e.crop??o.crop,isNew:!0,isCropped:e.isCropped??o.isCropped,isDeleted:e.isDeleted??o.isDeleted};if(S(o=>{const n=[...o];return n[e.index]=t,n}),e.isNext){const t=e.index+1>=a.images.length?0:e.index+1;x(t)}e.isSave&&E([t])}},[E,a.images]);t.useEffect(()=>{S(a.images),b(a.images.map(e=>e.croppedArea??null))},[a.images]),t.useEffect(()=>()=>{x(0),S([]),b([])},[]);const M=t.useMemo(()=>C.reduce((e,t)=>(e&&void 0!==(null==t?void 0:t.index)&&(e[t.index]={genre:t.isDeleted?"redTransparent":t.isCropped?"greenTransparent":"white",icons:t.isDeleted?[{type:"id",name:"CloseMini"}]:t.isCropped?[{type:"id",name:"TickMini"}]:[]}),e),{}),[C]),j=t.useMemo(()=>C.every(e=>(null==e?void 0:e.isDeleted)||!(null==e?void 0:e.isCropped)),[C]),A=t.useMemo(()=>{var e;return(null==(e=a.params)?void 0:e.dialog.button.genre)||"product"},[null==(c=a.params)?void 0:c.dialog.button.genre]),T=t.useMemo(()=>{var e;return(null==(e=a.params)?void 0:e.dialog.button.size)||"medium"},[null==(p=a.params)?void 0:p.dialog.button.size]),O=t.useMemo(()=>{var e;return(null==(e=a.params)?void 0:e.dialog.buttonDelete.genre)||"product"},[null==(u=a.params)?void 0:u.dialog.buttonDelete.genre]),W=t.useMemo(()=>{var e;return(null==(e=a.params)?void 0:e.dialog.button.size)||"medium"},[null==(d=a.params)?void 0:d.dialog.button.size]);return e.jsxRuntimeExports.jsxs(i.Stack,{sx:e=>{var t,o,n;return{default:{position:"relative",overflow:"hidden",aspectRatio:(null==(t=a.params)?void 0:t.imageSettings.aspect)?2*(null==(o=a.params)?void 0:o.imageSettings.aspect)+" / 2":void 0,width:"auto",maxWidth:"70dvw",height:"85dvh",borderRadius:null==(n=a.params)?void 0:n.br,backgroundColor:e.palette.whiteStandard},tablet:{maxWidth:"95dvw"}}},children:[e.jsxRuntimeExports.jsxs(o.Preview,{visible:!a.isAnimating,minTime:500,children:[e.jsxRuntimeExports.jsx(i.Stack,{sx:{default:{position:"absolute",top:0,left:0,right:0,bottom:0}},children:D&&e.jsxRuntimeExports.jsx(K,{style:{containerStyle:{backgroundColor:R.palette.black80}},image:D.url,crop:(null==D?void 0:D.crop)??{x:0,y:0},zoom:(null==D?void 0:D.zoom)??1,aspect:null==(l=a.params)?void 0:l.imageSettings.aspect,onCropChange:e=>{P({...D,crop:e})},onZoomChange:e=>{P({...D,zoom:e})},onCropComplete:(e,t)=>{b(e=>{const o=[...e];return o[w]=t,o})}})}),e.jsxRuntimeExports.jsxs(i.Stack,{sx:{default:{position:"absolute",top:15,right:15,gap:"10px"}},children:[e.jsxRuntimeExports.jsx(o.Button,{genre:O,size:W,isHiddenBorder:!0,isRadius:!0,onClick:()=>{var e;return null==(e=a.remove)?void 0:e.call(a)},children:null==(h=a.params)?void 0:h.locale.dialogCancel}),z&&e.jsxRuntimeExports.jsx(o.Button,{genre:A,size:T,isHiddenBorder:!0,isRadius:!0,onClick:()=>E(C),isHidden:j,isDisabled:j,children:null==(m=a.params)?void 0:m.locale.dialogSave})]})]}),z&&w!==a.images.length&&e.jsxRuntimeExports.jsx(o.Button,{sx:{default:{position:"absolute",top:15,left:15}},genre:A,size:T,isHiddenBorder:!0,isWidthAsHeight:!0,isRadius:!0,isDisabled:!0,children:w+1}),e.jsxRuntimeExports.jsxs(i.Stack,{sx:e=>({default:{position:"absolute",bottom:z?5:15,left:z?5:void 0,right:z?void 0:15,width:z?"calc(100% - 10px)":"fit-content",backgroundColor:z?e.palette.whiteStandard:e.palette.transparent,padding:"10px",borderRadius:"50px",flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:"10px"},mobile:{borderRadius:"24px",flexDirection:"column",alignItems:"stretch",gap:"10px"}}),children:[z&&e.jsxRuntimeExports.jsx(n.Pagination,{sx:{default:{},mobile:{justifyContent:"space-between"}},lengthData:M,length:a.images.length,index:w,changeIndex:e=>{x(e)},isInfinity:!0,viewQuantity:4,buttonControl:{genre:A,size:T,isRadius:!0,isWidthAsHeight:!0},buttonCount:{active:{genre:A,size:T,isRadius:!0,isPlaystationEffect:!0},inactive:{genre:"white",size:T,isRadius:!0}},locale:{next:"Next",prev:"Prev"}}),e.jsxRuntimeExports.jsxs(i.Stack,{sx:{default:{gap:"10px"},mobile:{justifyContent:"center"}},children:[z&&e.jsxRuntimeExports.jsx(o.Button,{genre:O,size:W,isHiddenBorder:!0,isRadius:!0,onClick:()=>{P({...D,isDeleted:!0,isNext:z})},children:null==(g=a.params)?void 0:g.locale.dialogDeleteImage}),e.jsxRuntimeExports.jsx(o.Button,{genre:A,size:T,isHiddenBorder:!0,isRadius:!0,onClick:()=>{P({...D,isDeleted:!1,isCropped:!0,isNext:z,isSave:!z})},children:z?null==(v=a.params)?void 0:v.locale.dialogAddImage:null==(f=a.params)?void 0:f.locale.dialogSave})]})]})]})};exports.useImageCrop=n=>{const i=t.useMemo(()=>o.KEY_SIZE_DATA[n.dialog.button.size],[n.dialog.button.size]),r=t.useMemo(()=>`${i.radius}px`,[i.radius]),{add:s}=a.useDialog({br:r,imageSettings:n.imageSettings,onSave:n.onSave,dialog:n.dialog,locale:n.locale,propsDialog:{borderRadius:r,padding:"0",background:"transparent"}}),c=t.useCallback(t=>{s({content:(o,n,i)=>e.jsxRuntimeExports.jsx(V,{images:t,params:o,remove:n,isAnimating:i})})},[s]),p=t.useCallback(e=>{const t=Array.from(e).filter(e=>!(e.size>n.imageSettings.maxSize)||(console.warn(`File ${e.name} exceeds the allowed size of ${n.imageSettings.maxSize} bytes`),!1)).map((e,t)=>({id:Date.now()+t,file:e,url:URL.createObjectURL(e),index:t,isNew:!0,name:e.name,format:e.type}));n.refInput&&"current"in n.refInput&&n.refInput.current&&(n.refInput.current.value=""),t.length&&c(t)},[c,n.imageSettings.maxSize,n.refInput]);return{handleAdd:c,handleAddFiles:p}};
16
- //# sourceMappingURL=use-2JigT9W0.cjs.map
16
+ //# sourceMappingURL=use-BwhyveId.cjs.map