@txgw/payout-components 0.6.0 → 1.0.1

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 (392) hide show
  1. package/dist/AMIS-BpATHKnv.js +1 -0
  2. package/dist/Action-B0KUcn27.js +1 -0
  3. package/dist/Action-CzJ_r33l.js +1 -0
  4. package/dist/Alert-DwWdKr12.js +1 -0
  5. package/dist/AnchorNav-DRGjEF5J.js +1 -0
  6. package/dist/App-DxKgyXV1.js +1 -0
  7. package/dist/Audio-BoaWMJHA.js +1 -0
  8. package/dist/Avatar-B2lZKPPh.js +1 -0
  9. package/dist/BarCode-BnchzdIg.js +1 -0
  10. package/dist/BarCode-dEGhm4u6.js +1 -0
  11. package/dist/Breadcrumb-BHzIF2Vg.js +1 -0
  12. package/dist/ButtonGroup-BMvNPoKc.js +1 -0
  13. package/dist/ButtonGroupSelect-BmQIuhWU.js +1 -0
  14. package/dist/ButtonGroupSelect-CfNu0OBj.js +1 -0
  15. package/dist/ButtonToolbar-CYZ0LWsz.js +1 -0
  16. package/dist/CRUD-BDeg8xZI.js +1 -0
  17. package/dist/CRUD2-DrE-2JU3.js +1 -0
  18. package/dist/Calendar-DkEUJJQW.js +1 -0
  19. package/dist/Card-BVUWwkgm.js +1 -0
  20. package/dist/Card-IZbcizfw.js +1 -0
  21. package/dist/Card2-Dyl0FIVL.js +1 -0
  22. package/dist/Cards-DlMpwNSr.js +1 -0
  23. package/dist/Carousel-CXMYZL8H.js +1 -0
  24. package/dist/ChainedSelect-BQK0j-pA.js +1 -0
  25. package/dist/Chart-uJ8v1OSG.js +1 -0
  26. package/dist/ChartRadios-C9Ov2SCd.js +1 -0
  27. package/dist/Checkbox-DAq7LXTe.js +1 -0
  28. package/dist/Checkbox-DbHhD7iK.js +1 -0
  29. package/dist/Checkboxes-wud_gmq3.js +1 -0
  30. package/dist/Code-VjDT2QOS.js +1 -0
  31. package/dist/Collapse-CRIu-D5O.js +1 -0
  32. package/dist/Collapse-CknZKNKz.js +1 -0
  33. package/dist/CollapseGroup-DkMS5MXZ.js +1 -0
  34. package/dist/Color-CZV84qNC.js +1 -0
  35. package/dist/ColorPicker-R5D1ZNwb.js +1 -0
  36. package/dist/ColumnToggler-BxHry8EL.js +1 -0
  37. package/dist/ColumnToggler-D98cb4XS.js +1 -0
  38. package/dist/Combo-BUD7tb8b.js +1 -0
  39. package/dist/ConditionBuilder-DFF8QBcW.js +1 -0
  40. package/dist/Container-f-JHe2WE.js +1 -0
  41. package/dist/Control-dOQnC26j.js +1 -0
  42. package/dist/Custom-CqKL8xv_.js +1 -0
  43. package/dist/{Date-C9Kib09x.js → Date-BcRD4sv_.js} +1 -333
  44. package/dist/DateRange-BkGu5vJl.js +1 -0
  45. package/dist/Dialog-CQSNeqgY.js +1 -0
  46. package/dist/DiffEditor-DU9deT5c.js +1 -0
  47. package/dist/Divider-CYwXWwc5.js +1 -0
  48. package/dist/Drawer-DmUqxMKd.js +1 -0
  49. package/dist/DropDownButton-C0e2mksC.js +1 -0
  50. package/dist/Each-Bnhdfx44.js +1 -0
  51. package/dist/FieldSet-BRfWbiPG.js +1 -0
  52. package/dist/FieldSet-f-m_bp4h.js +1 -0
  53. package/dist/Flex-C0c49ZMP.js +1 -0
  54. package/dist/Formula-C82aVdAD.js +1 -0
  55. package/dist/Grid2D-BJPrAz8w.js +1 -0
  56. package/dist/GridNav-DCCBgvz1.js +1 -0
  57. package/dist/Group-D_2Fn4zB.js +1 -0
  58. package/dist/HBox-CG3Ad5us.js +1 -0
  59. package/dist/HBox-CRrACS8I.js +1 -0
  60. package/dist/Hidden-SaNCTMlZ.js +1 -0
  61. package/dist/IFrame-2LIicqpq.js +1 -0
  62. package/dist/Icon-3_vNko-P.js +1 -0
  63. package/dist/IconPicker-DAMClR_z.js +1 -0
  64. package/dist/IconPickerIcons-DN0pqJHt.js +1 -0
  65. package/dist/IconSelect-CHM0oHqd.js +1 -0
  66. package/dist/IconSelectStore-MNwivoh-.js +1 -0
  67. package/dist/Image-Br7JbiAF.js +1 -0
  68. package/dist/Image-hHgZkb5C.js +1 -0
  69. package/dist/Images-ZGJfaN-q.js +1 -0
  70. package/dist/InputArray-D3y772RO.js +1 -0
  71. package/dist/InputCity-CF6mEwuH.js +1 -0
  72. package/dist/InputColor-CYmzXu5I.js +1 -0
  73. package/dist/InputDate-BldJd84x.js +1 -0
  74. package/dist/InputDateRange-KzSlI2fv.js +1 -0
  75. package/dist/InputExcel-CJZWvZFT.js +1 -0
  76. package/dist/InputFile-C0FUNeFM.js +1 -0
  77. package/dist/InputFile-DFjvYmV3.js +1 -0
  78. package/dist/InputFormula-BKxq41uR.js +1 -0
  79. package/dist/InputGroup-wvaymJ-V.js +1 -0
  80. package/dist/InputImage-CLuXGhoy.js +1 -0
  81. package/dist/InputImage-DasZBpb-.js +1 -0
  82. package/dist/InputMonthRange-DVRnBZ4I.js +1 -0
  83. package/dist/InputNumber-BjzsM73z.js +1 -0
  84. package/dist/InputQuarterRange-DQuiFCOb.js +1 -0
  85. package/dist/InputRange-C97bKrW6.js +1 -0
  86. package/dist/InputRating-CpFNTZKA.js +1 -0
  87. package/dist/InputRepeat-CN2KxX7g.js +1 -0
  88. package/dist/InputRichText-BXjRSQFh.js +1 -0
  89. package/dist/InputRichText-DdyJFH82.js +1 -0
  90. package/dist/InputSignature-CsxuK757.js +1 -0
  91. package/dist/InputSubForm-Ddweo6dR.js +1 -0
  92. package/dist/InputTable-Bt8U_tyA.js +1 -0
  93. package/dist/InputTag-kg2v747D.js +1 -0
  94. package/dist/InputText-bKR0VgA6.js +1 -0
  95. package/dist/InputTree-DbdS4b2m.js +1 -0
  96. package/dist/InputVerificationCode-DcFJRWeR.js +1 -0
  97. package/dist/InputYearRange-ChXlMgCi.js +1 -0
  98. package/dist/JSONSchema-C_VjFVVN.js +1 -0
  99. package/dist/JSONSchemaEditor-CEgywCvJ.js +1 -0
  100. package/dist/Json-DqjhkjHF.js +1 -0
  101. package/dist/Link-9hUnE5FW.js +1 -0
  102. package/dist/List-BBntusL0.js +1 -0
  103. package/dist/List-C8nPjG1-.js +1 -0
  104. package/dist/ListSelect-lX84FGAP.js +1 -0
  105. package/dist/LocationPicker-DnA8QpYh.js +1 -0
  106. package/dist/Log-CRxPlj86.js +1 -0
  107. package/dist/Mapping-X2IRbppi.js +1 -0
  108. package/dist/Markdown-BlxcmdTl.js +1 -0
  109. package/dist/Markdown-ByuMaB2P.js +1 -0
  110. package/dist/MatrixCheckboxes-BvBU1E-4.js +1 -0
  111. package/dist/MultilineText-BmbIytvk.js +1 -0
  112. package/dist/Nav-BxS7kBh9.js +1 -0
  113. package/dist/NestedSelect-CbWnin5b.js +1 -0
  114. package/dist/Number-CGYpvopX.js +1 -0
  115. package/dist/OfficeViewer-DBFFaH5P.js +1 -0
  116. package/dist/Operation-j5yIUDkZ.js +1 -0
  117. package/dist/Page-CJ2gK3vA.js +1 -0
  118. package/dist/Pagination-BDEmomCQ.js +1 -0
  119. package/dist/PaginationWrapper-Bnsk8oIg.js +1 -0
  120. package/dist/Panel-DKpM1Qfc.js +1 -0
  121. package/dist/Password-CzHAzi8M.js +1 -0
  122. package/dist/Picker-D5WVPGTg.js +1 -0
  123. package/dist/Plain-oyGNzh1N.js +1 -0
  124. package/dist/PopUp-DaheG-Vv.js +104 -0
  125. package/dist/Portlet-dA2P7U6i.js +1 -0
  126. package/dist/Progress-D2LXKzUA.js +1 -0
  127. package/dist/Property-CekATdUy.js +1 -0
  128. package/dist/QRCode-DPoyEXK3.js +2 -0
  129. package/dist/Radio-HhPQKIKk.js +1 -0
  130. package/dist/Radios-DVzovX2u.js +1 -0
  131. package/dist/Remark-CHTOdmdn.js +1 -0
  132. package/dist/Remark-bXVj7ffU.js +1 -0
  133. package/dist/RichText-wfPXQmb8.js +1 -0
  134. package/dist/SearchBox-Jlwq8w3o.js +1 -0
  135. package/dist/Select-DCB0i1Ga.js +1 -0
  136. package/dist/Service-Bmfl8VSD.js +1 -0
  137. package/dist/Shape-5ZBBe1x0.js +1 -0
  138. package/dist/Slider-pb5I0Xb2.js +1 -0
  139. package/dist/SparkLine-C4x34-6K.js +1 -0
  140. package/dist/Spinner-SR1wYU_1.js +1 -0
  141. package/dist/StaticHoc-DVc-5HZA.js +1 -0
  142. package/dist/Status-7D4DBjk6.js +1 -0
  143. package/dist/Steps-Dd_3MM0y.js +1 -0
  144. package/dist/Switch-CZqzJH45.js +1 -0
  145. package/dist/SwitchContainer-L7IwrheV.js +1 -0
  146. package/dist/Table-CYUuVDxA.js +1 -0
  147. package/dist/Table-D-9NfAqg.js +1 -0
  148. package/dist/Table2-CIZ93hrj.js +1 -0
  149. package/dist/TableView-CigjcDJc.js +1 -0
  150. package/dist/Tabs-Cljj-nTv.js +1 -0
  151. package/dist/TabsTransfer-BXwrW4NX.js +1 -0
  152. package/dist/TabsTransferPicker-DB005nER.js +1 -0
  153. package/dist/Tag-CcfwT8FM.js +1 -0
  154. package/dist/Tasks-DeVW2Tdg.js +1 -0
  155. package/dist/Textarea-zsHcK0rZ.js +1 -0
  156. package/dist/Timeline-D_3FRzUa.js +1 -0
  157. package/dist/TooltipWrapper-BElQhX67.js +1 -0
  158. package/dist/Tpl-OPfW08Kh.js +1 -0
  159. package/dist/Transfer-Cx1Ijzfh.js +1 -0
  160. package/dist/Transfer-DboPBh8V.js +1 -0
  161. package/dist/TransferPicker-xlJfwHxP.js +1 -0
  162. package/dist/TreeSelect-BTKg9Ldf.js +1 -0
  163. package/dist/UUID-BkwpeiT9.js +1 -0
  164. package/dist/UserSelect-CsY5PQp9.js +1 -0
  165. package/dist/VBox-Ca4DBR6-.js +1 -0
  166. package/dist/Video-CXzxq3vU.js +1 -0
  167. package/dist/WebComponent-DYxJeu6a.js +1 -0
  168. package/dist/Wizard-fqzq2OCn.js +1 -0
  169. package/dist/Words-V70QrARW.js +1 -0
  170. package/dist/Wrapper-BtFbBBXy.js +1 -0
  171. package/dist/_getTag-x788Ng9o.js +1 -0
  172. package/dist/beneficiary-form-BmmdIRc0.js +10 -0
  173. package/dist/client-BoE-UyzU.js +1 -0
  174. package/dist/crypto-js-Cv2Y8hvs.js +1 -0
  175. package/dist/doc-CmSOujco.js +1 -0
  176. package/dist/es-DY5--nMG.js +1 -0
  177. package/dist/esm-BMvKJM5q.js +4 -0
  178. package/dist/esm-BbZME5Ac.js +28 -0
  179. package/dist/esm-DyRrwLZv.js +1 -0
  180. package/dist/function-C8ta9DKb.js +3 -0
  181. package/dist/index.css +1 -1
  182. package/dist/index.js +1 -96
  183. package/dist/isEqual-BxlJ5vH7.js +1 -0
  184. package/dist/main-CLaM-mkN.js +1 -0
  185. package/dist/mi18n-react.esm-BFa-Q7wX.js +1 -0
  186. package/dist/objectSpread2-BCtAXXta.js +1 -0
  187. package/dist/omitBy-NMzUUhXs.js +1 -0
  188. package/dist/papaparse.min-CU0u_rom.js +1 -0
  189. package/dist/react-BW4ssgUo.js +1 -0
  190. package/dist/react-cropper.es-zEJdZmmN.js +1 -0
  191. package/dist/react-dom-DmgFzc6z.js +1 -0
  192. package/dist/rolldown-runtime-DcYi-9oA.js +1 -0
  193. package/dist/tslib.es6-C2q27PUR.js +1 -0
  194. package/dist/xor-CSkTraTY.js +1 -0
  195. package/package.json +23 -17
  196. package/dist/AMIS--SZXSfKF.js +0 -23
  197. package/dist/Action-D7O1nxY2.js +0 -10
  198. package/dist/Action-DpRShNiD.js +0 -646
  199. package/dist/Alert-sakO0sgo.js +0 -34
  200. package/dist/AnchorNav-1OrNpCPU.js +0 -88
  201. package/dist/App-mzRv6t1L.js +0 -213
  202. package/dist/Audio-CmGRzA8C.js +0 -324
  203. package/dist/Avatar-C0g_Dcsr.js +0 -75
  204. package/dist/BarCode-Bgr2-a69.js +0 -35
  205. package/dist/BarCode-f_fuunrs.js +0 -2708
  206. package/dist/Breadcrumb-3pb8787J.js +0 -38
  207. package/dist/ButtonGroup-DBJgP_U6.js +0 -16
  208. package/dist/ButtonGroupSelect-BV8FHgm0.js +0 -93
  209. package/dist/ButtonGroupSelect-Cl2irnYh.js +0 -8
  210. package/dist/ButtonToolbar-DMCBgh9w.js +0 -36
  211. package/dist/CRUD-DFP1DIcc.js +0 -1048
  212. package/dist/CRUD2-BGpsdJ3D.js +0 -660
  213. package/dist/Calendar-D_aFq70_.js +0 -18
  214. package/dist/Card-C54K-VRd.js +0 -14
  215. package/dist/Card-FmRg7dLO.js +0 -346
  216. package/dist/Card2-Blr9gGoC.js +0 -68
  217. package/dist/Cards-B7J3bYtx.js +0 -485
  218. package/dist/Carousel-Ba4JeK7n.js +0 -414
  219. package/dist/ChainedSelect-CUU7qCFQ.js +0 -212
  220. package/dist/Chart-BmOD9NEG.js +0 -276
  221. package/dist/ChartRadios-Bm7pnICh.js +0 -93
  222. package/dist/Checkbox-CcjG9Mv4.js +0 -157
  223. package/dist/Checkbox-yvPZaH8N.js +0 -10
  224. package/dist/Checkboxes-Babxqar9.js +0 -285
  225. package/dist/Code-B7FhTic-.js +0 -111
  226. package/dist/Collapse-BYdoEOZ2.js +0 -124
  227. package/dist/Collapse-C9riUcKK.js +0 -9
  228. package/dist/CollapseGroup-B7DmpWY1.js +0 -74
  229. package/dist/Color-BM1Qa0C1.js +0 -34
  230. package/dist/ColorPicker-BXmi_OWm.js +0 -5258
  231. package/dist/ColumnToggler-3QYyVjVf.js +0 -81
  232. package/dist/ColumnToggler-D0NlxwMq.js +0 -10
  233. package/dist/ColumnToggler-DLFwzPef.js +0 -228
  234. package/dist/Combo-BsouWVHB.js +0 -748
  235. package/dist/Combo-Cabifvbg.js +0 -9
  236. package/dist/ConditionBuilder-BacjsaTh.js +0 -113
  237. package/dist/Container-C5-66abH.js +0 -86
  238. package/dist/Control-krTArjIv.js +0 -38
  239. package/dist/Custom-DawY4LgO.js +0 -73
  240. package/dist/DateRange-D2lKQT_J.js +0 -34
  241. package/dist/Dialog-oNlQLXnk.js +0 -508
  242. package/dist/DiffEditor-DY8XdtJS.js +0 -104
  243. package/dist/Divider-BgpLhaqf.js +0 -70
  244. package/dist/Drawer-DslUxLot.js +0 -448
  245. package/dist/DropDownButton-BIuAagmC.js +0 -193
  246. package/dist/Each-CA8gaJkL.js +0 -79
  247. package/dist/FieldSet-Cg1pE5gA.js +0 -64
  248. package/dist/FieldSet-DVAa2H_Q.js +0 -10
  249. package/dist/Flex-Baz4bI9u.js +0 -99
  250. package/dist/Formula-ABhgdx_Q.js +0 -72
  251. package/dist/Grid2D-DmdOVnhu.js +0 -84
  252. package/dist/GridNav-lHAunT1M.js +0 -56
  253. package/dist/Group-7sGnjMli.js +0 -85
  254. package/dist/HBox-DxchKWfv.js +0 -7
  255. package/dist/HBox-s88aG83B.js +0 -48
  256. package/dist/Hidden-BrTWoL8d.js +0 -27
  257. package/dist/IFrame-DaZ1v2-9.js +0 -141
  258. package/dist/Icon-DNbdrsn8.js +0 -74
  259. package/dist/IconPicker-DqNlu5Zd.js +0 -230
  260. package/dist/IconPickerIcons-dHFcDHrv.js +0 -15
  261. package/dist/IconSelect-CvBITEcy.js +0 -254
  262. package/dist/IconSelectStore-CTqJPujB.js +0 -45
  263. package/dist/Image-BBs8tnny.js +0 -258
  264. package/dist/Image-DM9_Ii2b.js +0 -9
  265. package/dist/Images-cRmH380W.js +0 -377
  266. package/dist/InputArray-Dov-RBrP.js +0 -42
  267. package/dist/InputCity-owVpsIaD.js +0 -351
  268. package/dist/InputColor-DhVJhPp6.js +0 -53
  269. package/dist/InputDate-DLOwHbwT.js +0 -10
  270. package/dist/InputDate-DWaIvnAp.js +0 -292
  271. package/dist/InputDateRange-CnGNwIFe.js +0 -10
  272. package/dist/InputDateRange-Diqw3JLp.js +0 -170
  273. package/dist/InputExcel-BjWNYvnN.js +0 -427
  274. package/dist/InputFile-89BOwWJE.js +0 -601
  275. package/dist/InputFile-DOym0HDc.js +0 -10
  276. package/dist/InputFormula-CV5j31Ow.js +0 -75
  277. package/dist/InputGroup-C7O2ba0g.js +0 -112
  278. package/dist/InputImage-BF7DAF8L.js +0 -12
  279. package/dist/InputImage-DcsVQf7c.js +0 -834
  280. package/dist/InputMonthRange-BjD3hmwp.js +0 -76
  281. package/dist/InputNumber-DKMOkba-.js +0 -255
  282. package/dist/InputQuarterRange-DZKnkZ_s.js +0 -76
  283. package/dist/InputRange-DiHKf3tP.js +0 -266
  284. package/dist/InputRating-Bc8Od5b8.js +0 -115
  285. package/dist/InputRepeat-BhF5KVB2.js +0 -179
  286. package/dist/InputRichText-BBBdDFA2.js +0 -7
  287. package/dist/InputRichText-CieHn0fO.js +0 -198
  288. package/dist/InputSignature-CbfGjJlU.js +0 -495
  289. package/dist/InputSubForm-BkM_3Rjg.js +0 -236
  290. package/dist/InputTable-CgOqC6Pc.js +0 -900
  291. package/dist/InputTag-35kCFM5X.js +0 -464
  292. package/dist/InputText-BbEjGBtv.js +0 -541
  293. package/dist/InputTree-DchkyMbL.js +0 -311
  294. package/dist/InputVerificationCode-kMxc8wW7.js +0 -62
  295. package/dist/InputYearRange-WJKJeloR.js +0 -76
  296. package/dist/JSONSchema-Bs0EWcHb.js +0 -47
  297. package/dist/JSONSchemaEditor-BoAK9FOL.js +0 -66
  298. package/dist/Json-DFjy1HRw.js +0 -80
  299. package/dist/Link-nYGLB6gy.js +0 -57
  300. package/dist/List-D3183f4Z.js +0 -14
  301. package/dist/List-W3IAZR_6.js +0 -671
  302. package/dist/ListSelect-DWGbHVxd.js +0 -104
  303. package/dist/LocationPicker-2G9yOxtm.js +0 -121
  304. package/dist/Log-D6VU702y.js +0 -207
  305. package/dist/Mapping-BATMD_xR.js +0 -118
  306. package/dist/Markdown-Baxbu8lV.js +0 -53
  307. package/dist/Markdown-Cg-xahnQ.js +0 -6205
  308. package/dist/MatrixCheckboxes-B9hmFakW.js +0 -262
  309. package/dist/MultilineText-0fMQhUCY.js +0 -28
  310. package/dist/Nav-DHIehZOG.js +0 -639
  311. package/dist/NestedSelect-tQztH4PI.js +0 -517
  312. package/dist/Number-Cndoqeyx.js +0 -40
  313. package/dist/OfficeViewer-BVD_e5eZ.js +0 -169
  314. package/dist/Operation-DIv6n9dT.js +0 -36
  315. package/dist/Page-WoZtIIfk.js +0 -459
  316. package/dist/Pagination-DHvYHd_3.js +0 -61
  317. package/dist/PaginationWrapper-CtIJOXdw.js +0 -58
  318. package/dist/Panel-Dt4KQrKa.js +0 -156
  319. package/dist/Password-Wjfq7MSA.js +0 -45
  320. package/dist/Picker-Cu52ukRg.js +0 -488
  321. package/dist/Plain-DIlG753a.js +0 -62
  322. package/dist/PopUp-Bgkvnd4X.js +0 -2761
  323. package/dist/Portlet-3Nh2cWeq.js +0 -107
  324. package/dist/Progress-Dh2FTsky.js +0 -89
  325. package/dist/Property-DRSklFlT.js +0 -72
  326. package/dist/QRCode-BeUD-g8-.js +0 -1139
  327. package/dist/Radio-DrJJfNFI.js +0 -89
  328. package/dist/Radios-CL3mreXa.js +0 -176
  329. package/dist/Remark-Cmo-r6dp.js +0 -81
  330. package/dist/Remark-DuAbEmCW.js +0 -9
  331. package/dist/RichText-jkERm8rC.js +0 -13807
  332. package/dist/SearchBox-CTxSMcV2.js +0 -112
  333. package/dist/Select-D3LTuHwe.js +0 -362
  334. package/dist/Service-CN2v_Z9z.js +0 -347
  335. package/dist/Shape-Bi93tLCN.js +0 -37
  336. package/dist/Slider-C0jqeBGt.js +0 -78
  337. package/dist/SparkLine-Ce6-mdqG.js +0 -38
  338. package/dist/Spinner-DZDEct1A.js +0 -27
  339. package/dist/StaticHoc-BAdofX5w.js +0 -80
  340. package/dist/Status-CDC2e2_o.js +0 -93
  341. package/dist/Steps-CGyTaaVI.js +0 -271
  342. package/dist/Switch-QA0l7uEg.js +0 -100
  343. package/dist/SwitchContainer-zXvaPFlG.js +0 -93
  344. package/dist/Table-B8tWpiPU.js +0 -13
  345. package/dist/Table-DzGbNFxu.js +0 -3190
  346. package/dist/Table2-CQZ3und9.js +0 -1198
  347. package/dist/TableView-nlFBhvL1.js +0 -115
  348. package/dist/Tabs-XleB-2Mc.js +0 -487
  349. package/dist/TabsTransfer-CLLGXAkP.js +0 -188
  350. package/dist/TabsTransfer-Cs_Rg0TU.js +0 -11
  351. package/dist/TabsTransferPicker-VA3Vlla-.js +0 -99
  352. package/dist/Tag-tr5RKBfl.js +0 -75
  353. package/dist/Tasks-C2-ayUd-.js +0 -305
  354. package/dist/Textarea-_KbIxQet.js +0 -132
  355. package/dist/Timeline-CctoJRQo.js +0 -87
  356. package/dist/TooltipWrapper-BGNr8U2K.js +0 -83
  357. package/dist/Tpl-C28lpITc.js +0 -152
  358. package/dist/Transfer-Hjc9zR8W.js +0 -288
  359. package/dist/Transfer-tYS9Rx8U.js +0 -10
  360. package/dist/TransferPicker-C7Wzyuct.js +0 -123
  361. package/dist/TreeSelect-DAlWCEqs.js +0 -456
  362. package/dist/UUID-B5UZnlxW.js +0 -33
  363. package/dist/UserSelect-DqZZQB83.js +0 -170
  364. package/dist/VBox-C1OZZT8-.js +0 -38
  365. package/dist/Video-C1FRwLLL.js +0 -4068
  366. package/dist/WebComponent-g8Zc9zXp.js +0 -29
  367. package/dist/Wizard-DkqCsGz-.js +0 -585
  368. package/dist/Words-DUuKqyIf.js +0 -113
  369. package/dist/Wrapper-DmZ78GYG.js +0 -39
  370. package/dist/_getTag-CWmGzIun.js +0 -509
  371. package/dist/beneficiary-form-DCl2L16P.js +0 -3773
  372. package/dist/client-BEyTOBXT.js +0 -26
  373. package/dist/crypto-js-DUFYRUag.js +0 -3694
  374. package/dist/doc-B-Im0Knb.js +0 -1731
  375. package/dist/es-CsUppg1O.js +0 -837
  376. package/dist/esm-Cj_BRpNI.js +0 -35832
  377. package/dist/esm-DEyK_c3W.js +0 -25349
  378. package/dist/esm-SCCPj-cs.js +0 -93004
  379. package/dist/function-CNJMA2ft.js +0 -3151
  380. package/dist/isEqual-E2NjjS0_.js +0 -641
  381. package/dist/main-Bf7MY24z.js +0 -4475
  382. package/dist/mi18n-react.esm-y-nzmW0A.js +0 -1138
  383. package/dist/objectSpread2-smpSKONV.js +0 -27
  384. package/dist/omitBy-CD5n2TA7.js +0 -39
  385. package/dist/papaparse.min-3xa9r8Qi.js +0 -496
  386. package/dist/react-RxxVsDMo.js +0 -1205
  387. package/dist/react-cropper.es-anJ2KE7h.js +0 -1260
  388. package/dist/react-dom-D1mxcNoQ.js +0 -16864
  389. package/dist/react-g40aymqL.js +0 -2
  390. package/dist/rolldown-runtime-DwW8Tac2.js +0 -21
  391. package/dist/tslib.es6-DJiA3ePV.js +0 -170
  392. package/dist/xor-D-ggRBpm.js +0 -20
@@ -1,1260 +0,0 @@
1
- import { s as __toESM, t as __commonJSMin } from "./rolldown-runtime-DwW8Tac2.js";
2
- import { t as require_react } from "./react-RxxVsDMo.js";
3
- var require_cropper = /* @__PURE__ */ __commonJSMin(((e, t) => {
4
- (function(r, o) {
5
- typeof e == "object" && t !== void 0 ? t.exports = o() : typeof define == "function" && define.amd ? define(o) : (r = typeof globalThis < "u" ? globalThis : r || self, r.Cropper = o());
6
- })(e, (function() {
7
- function e(e, t) {
8
- var r = Object.keys(e);
9
- if (Object.getOwnPropertySymbols) {
10
- var o = Object.getOwnPropertySymbols(e);
11
- t && (o = o.filter(function(t) {
12
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
13
- })), r.push.apply(r, o);
14
- }
15
- return r;
16
- }
17
- function t(t) {
18
- for (var r = 1; r < arguments.length; r++) {
19
- var o = arguments[r] == null ? {} : arguments[r];
20
- r % 2 ? e(Object(o), !0).forEach(function(e) {
21
- p(t, e, o[e]);
22
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(o)) : e(Object(o)).forEach(function(e) {
23
- Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(o, e));
24
- });
25
- }
26
- return t;
27
- }
28
- function r(e, t) {
29
- if (typeof e != "object" || !e) return e;
30
- var r = e[Symbol.toPrimitive];
31
- if (r !== void 0) {
32
- var o = r.call(e, t || "default");
33
- if (typeof o != "object") return o;
34
- throw TypeError("@@toPrimitive must return a primitive value.");
35
- }
36
- return (t === "string" ? String : Number)(e);
37
- }
38
- function o(e) {
39
- var t = r(e, "string");
40
- return typeof t == "symbol" ? t : t + "";
41
- }
42
- function s(e) {
43
- "@babel/helpers - typeof";
44
- return s = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
45
- return typeof e;
46
- } : function(e) {
47
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
48
- }, s(e);
49
- }
50
- function u(e, t) {
51
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
52
- }
53
- function d(e, t) {
54
- for (var r = 0; r < t.length; r++) {
55
- var s = t[r];
56
- s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(e, o(s.key), s);
57
- }
58
- }
59
- function f(e, t, r) {
60
- return t && d(e.prototype, t), r && d(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
61
- }
62
- function p(e, t, r) {
63
- return t = o(t), t in e ? Object.defineProperty(e, t, {
64
- value: r,
65
- enumerable: !0,
66
- configurable: !0,
67
- writable: !0
68
- }) : e[t] = r, e;
69
- }
70
- function m(e) {
71
- return h(e) || g(e) || _(e) || y();
72
- }
73
- function h(e) {
74
- if (Array.isArray(e)) return v(e);
75
- }
76
- function g(e) {
77
- if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
78
- }
79
- function _(e, t) {
80
- if (e) {
81
- if (typeof e == "string") return v(e, t);
82
- var r = Object.prototype.toString.call(e).slice(8, -1);
83
- if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e);
84
- if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return v(e, t);
85
- }
86
- }
87
- function v(e, t) {
88
- (t == null || t > e.length) && (t = e.length);
89
- for (var r = 0, o = Array(t); r < t; r++) o[r] = e[r];
90
- return o;
91
- }
92
- function y() {
93
- throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
94
- }
95
- var b = typeof window < "u" && window.document !== void 0, x = b ? window : {}, S = b && x.document.documentElement ? "ontouchstart" in x.document.documentElement : !1, C = b ? "PointerEvent" in x : !1, w = "cropper", T = "all", E = "crop", D = "move", O = "zoom", k = "e", A = "w", j = "s", M = "n", N = "ne", P = "nw", F = "se", I = "sw", L = `${w}-crop`, R = `${w}-disabled`, z = `${w}-hidden`, B = `${w}-hide`, ee = `${w}-invisible`, te = `${w}-modal`, ne = `${w}-move`, V = `${w}Action`, H = `${w}Preview`, re = "crop", ie = "move", ae = "none", oe = "crop", se = "cropend", ce = "cropmove", le = "cropstart", ue = "dblclick", de = S ? "touchstart" : "mousedown", fe = S ? "touchmove" : "mousemove", pe = S ? "touchend touchcancel" : "mouseup", me = C ? "pointerdown" : de, he = C ? "pointermove" : fe, ge = C ? "pointerup pointercancel" : pe, _e = "ready", ve = "resize", ye = "wheel", be = "zoom", xe = "image/jpeg", Se = /^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/, Ce = /^data:/, we = /^data:image\/jpeg;base64,/, Te = /^img|canvas$/i, Ee = 200, De = 100, Oe = {
96
- viewMode: 0,
97
- dragMode: re,
98
- initialAspectRatio: NaN,
99
- aspectRatio: NaN,
100
- data: null,
101
- preview: "",
102
- responsive: !0,
103
- restore: !0,
104
- checkCrossOrigin: !0,
105
- checkOrientation: !0,
106
- modal: !0,
107
- guides: !0,
108
- center: !0,
109
- highlight: !0,
110
- background: !0,
111
- autoCrop: !0,
112
- autoCropArea: .8,
113
- movable: !0,
114
- rotatable: !0,
115
- scalable: !0,
116
- zoomable: !0,
117
- zoomOnTouch: !0,
118
- zoomOnWheel: !0,
119
- wheelZoomRatio: .1,
120
- cropBoxMovable: !0,
121
- cropBoxResizable: !0,
122
- toggleDragModeOnDblclick: !0,
123
- minCanvasWidth: 0,
124
- minCanvasHeight: 0,
125
- minCropBoxWidth: 0,
126
- minCropBoxHeight: 0,
127
- minContainerWidth: Ee,
128
- minContainerHeight: De,
129
- ready: null,
130
- cropstart: null,
131
- cropmove: null,
132
- cropend: null,
133
- crop: null,
134
- zoom: null
135
- }, ke = "<div class=\"cropper-container\" touch-action=\"none\"><div class=\"cropper-wrap-box\"><div class=\"cropper-canvas\"></div></div><div class=\"cropper-drag-box\"></div><div class=\"cropper-crop-box\"><span class=\"cropper-view-box\"></span><span class=\"cropper-dashed dashed-h\"></span><span class=\"cropper-dashed dashed-v\"></span><span class=\"cropper-center\"></span><span class=\"cropper-face\"></span><span class=\"cropper-line line-e\" data-cropper-action=\"e\"></span><span class=\"cropper-line line-n\" data-cropper-action=\"n\"></span><span class=\"cropper-line line-w\" data-cropper-action=\"w\"></span><span class=\"cropper-line line-s\" data-cropper-action=\"s\"></span><span class=\"cropper-point point-e\" data-cropper-action=\"e\"></span><span class=\"cropper-point point-n\" data-cropper-action=\"n\"></span><span class=\"cropper-point point-w\" data-cropper-action=\"w\"></span><span class=\"cropper-point point-s\" data-cropper-action=\"s\"></span><span class=\"cropper-point point-ne\" data-cropper-action=\"ne\"></span><span class=\"cropper-point point-nw\" data-cropper-action=\"nw\"></span><span class=\"cropper-point point-sw\" data-cropper-action=\"sw\"></span><span class=\"cropper-point point-se\" data-cropper-action=\"se\"></span></div></div>", Ae = Number.isNaN || x.isNaN;
136
- function U(e) {
137
- return typeof e == "number" && !Ae(e);
138
- }
139
- var je = function(e) {
140
- return e > 0 && e < Infinity;
141
- };
142
- function Me(e) {
143
- return e === void 0;
144
- }
145
- function W(e) {
146
- return s(e) === "object" && e !== null;
147
- }
148
- var Ne = Object.prototype.hasOwnProperty;
149
- function Pe(e) {
150
- if (!W(e)) return !1;
151
- try {
152
- var t = e.constructor, r = t.prototype;
153
- return t && r && Ne.call(r, "isPrototypeOf");
154
- } catch {
155
- return !1;
156
- }
157
- }
158
- function G(e) {
159
- return typeof e == "function";
160
- }
161
- var Fe = Array.prototype.slice;
162
- function Ie(e) {
163
- return Array.from ? Array.from(e) : Fe.call(e);
164
- }
165
- function K(e, t) {
166
- return e && G(t) && (Array.isArray(e) || U(e.length) ? Ie(e).forEach(function(r, o) {
167
- t.call(e, r, o, e);
168
- }) : W(e) && Object.keys(e).forEach(function(r) {
169
- t.call(e, e[r], r, e);
170
- })), e;
171
- }
172
- var q = Object.assign || function(e) {
173
- var t = [...arguments].slice(1);
174
- return W(e) && t.length > 0 && t.forEach(function(t) {
175
- W(t) && Object.keys(t).forEach(function(r) {
176
- e[r] = t[r];
177
- });
178
- }), e;
179
- }, Le = /\.\d*(?:0|9){12}\d*$/;
180
- function Re(e) {
181
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1e11;
182
- return Le.test(e) ? Math.round(e * t) / t : e;
183
- }
184
- var ze = /^width|height|left|top|marginLeft|marginTop$/;
185
- function J(e, t) {
186
- var r = e.style;
187
- K(t, function(e, t) {
188
- ze.test(t) && U(e) && (e = `${e}px`), r[t] = e;
189
- });
190
- }
191
- function Be(e, t) {
192
- return e.classList ? e.classList.contains(t) : e.className.indexOf(t) > -1;
193
- }
194
- function Y(e, t) {
195
- if (t) {
196
- if (U(e.length)) {
197
- K(e, function(e) {
198
- Y(e, t);
199
- });
200
- return;
201
- }
202
- if (e.classList) {
203
- e.classList.add(t);
204
- return;
205
- }
206
- var r = e.className.trim();
207
- r ? r.indexOf(t) < 0 && (e.className = `${r} ${t}`) : e.className = t;
208
- }
209
- }
210
- function X(e, t) {
211
- if (t) {
212
- if (U(e.length)) {
213
- K(e, function(e) {
214
- X(e, t);
215
- });
216
- return;
217
- }
218
- if (e.classList) {
219
- e.classList.remove(t);
220
- return;
221
- }
222
- e.className.indexOf(t) >= 0 && (e.className = e.className.replace(t, ""));
223
- }
224
- }
225
- function Ve(e, t, r) {
226
- if (t) {
227
- if (U(e.length)) {
228
- K(e, function(e) {
229
- Ve(e, t, r);
230
- });
231
- return;
232
- }
233
- r ? Y(e, t) : X(e, t);
234
- }
235
- }
236
- var He = /([a-z\d])([A-Z])/g;
237
- function Ue(e) {
238
- return e.replace(He, "$1-$2").toLowerCase();
239
- }
240
- function We(e, t) {
241
- return W(e[t]) ? e[t] : e.dataset ? e.dataset[t] : e.getAttribute(`data-${Ue(t)}`);
242
- }
243
- function Ge(e, t, r) {
244
- W(r) ? e[t] = r : e.dataset ? e.dataset[t] = r : e.setAttribute(`data-${Ue(t)}`, r);
245
- }
246
- function Ke(e, t) {
247
- if (W(e[t])) try {
248
- delete e[t];
249
- } catch {
250
- e[t] = void 0;
251
- }
252
- else if (e.dataset) try {
253
- delete e.dataset[t];
254
- } catch {
255
- e.dataset[t] = void 0;
256
- }
257
- else e.removeAttribute(`data-${Ue(t)}`);
258
- }
259
- var qe = /\s\s*/, Je = function() {
260
- var e = !1;
261
- if (b) {
262
- var t = !1, r = function() {}, o = Object.defineProperty({}, "once", {
263
- get: function() {
264
- return e = !0, t;
265
- },
266
- set: function(e) {
267
- t = e;
268
- }
269
- });
270
- x.addEventListener("test", r, o), x.removeEventListener("test", r, o);
271
- }
272
- return e;
273
- }();
274
- function Z(e, t, r) {
275
- var o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, s = r;
276
- t.trim().split(qe).forEach(function(t) {
277
- if (!Je) {
278
- var u = e.listeners;
279
- u && u[t] && u[t][r] && (s = u[t][r], delete u[t][r], Object.keys(u[t]).length === 0 && delete u[t], Object.keys(u).length === 0 && delete e.listeners);
280
- }
281
- e.removeEventListener(t, s, o);
282
- });
283
- }
284
- function Q(e, t, r) {
285
- var o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, s = r;
286
- t.trim().split(qe).forEach(function(t) {
287
- if (o.once && !Je) {
288
- var u = e.listeners, d = u === void 0 ? {} : u;
289
- s = function() {
290
- delete d[t][r], e.removeEventListener(t, s, o);
291
- var u = [...arguments];
292
- r.apply(e, u);
293
- }, d[t] || (d[t] = {}), d[t][r] && e.removeEventListener(t, d[t][r], o), d[t][r] = s, e.listeners = d;
294
- }
295
- e.addEventListener(t, s, o);
296
- });
297
- }
298
- function Ye(e, t, r) {
299
- var o;
300
- return G(Event) && G(CustomEvent) ? o = new CustomEvent(t, {
301
- detail: r,
302
- bubbles: !0,
303
- cancelable: !0
304
- }) : (o = document.createEvent("CustomEvent"), o.initCustomEvent(t, !0, !0, r)), e.dispatchEvent(o);
305
- }
306
- function Xe(e) {
307
- var t = e.getBoundingClientRect();
308
- return {
309
- left: t.left + (window.pageXOffset - document.documentElement.clientLeft),
310
- top: t.top + (window.pageYOffset - document.documentElement.clientTop)
311
- };
312
- }
313
- var Ze = x.location, Qe = /^(\w+:)\/\/([^:/?#]*):?(\d*)/i;
314
- function $e(e) {
315
- var t = e.match(Qe);
316
- return t !== null && (t[1] !== Ze.protocol || t[2] !== Ze.hostname || t[3] !== Ze.port);
317
- }
318
- function et(e) {
319
- var t = `timestamp=${(/* @__PURE__ */ new Date()).getTime()}`;
320
- return e + (e.indexOf("?") === -1 ? "?" : "&") + t;
321
- }
322
- function tt(e) {
323
- var t = e.rotate, r = e.scaleX, o = e.scaleY, s = e.translateX, u = e.translateY, d = [];
324
- U(s) && s !== 0 && d.push(`translateX(${s}px)`), U(u) && u !== 0 && d.push(`translateY(${u}px)`), U(t) && t !== 0 && d.push(`rotate(${t}deg)`), U(r) && r !== 1 && d.push(`scaleX(${r})`), U(o) && o !== 1 && d.push(`scaleY(${o})`);
325
- var f = d.length ? d.join(" ") : "none";
326
- return {
327
- WebkitTransform: f,
328
- msTransform: f,
329
- transform: f
330
- };
331
- }
332
- function nt(e) {
333
- var r = t({}, e), o = 0;
334
- return K(e, function(e, t) {
335
- delete r[t], K(r, function(t) {
336
- var r = Math.abs(e.startX - t.startX), s = Math.abs(e.startY - t.startY), u = Math.abs(e.endX - t.endX), d = Math.abs(e.endY - t.endY), f = Math.sqrt(r * r + s * s), p = (Math.sqrt(u * u + d * d) - f) / f;
337
- Math.abs(p) > Math.abs(o) && (o = p);
338
- });
339
- }), o;
340
- }
341
- function rt(e, r) {
342
- var o = e.pageX, s = e.pageY, u = {
343
- endX: o,
344
- endY: s
345
- };
346
- return r ? u : t({
347
- startX: o,
348
- startY: s
349
- }, u);
350
- }
351
- function it(e) {
352
- var t = 0, r = 0, o = 0;
353
- return K(e, function(e) {
354
- var s = e.startX, u = e.startY;
355
- t += s, r += u, o += 1;
356
- }), t /= o, r /= o, {
357
- pageX: t,
358
- pageY: r
359
- };
360
- }
361
- function $(e) {
362
- var t = e.aspectRatio, r = e.height, o = e.width, s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "contain", u = je(o), d = je(r);
363
- if (u && d) {
364
- var f = r * t;
365
- s === "contain" && f > o || s === "cover" && f < o ? r = o / t : o = r * t;
366
- } else u ? r = o / t : d && (o = r * t);
367
- return {
368
- width: o,
369
- height: r
370
- };
371
- }
372
- function at(e) {
373
- var t = e.width, r = e.height, o = e.degree;
374
- if (o = Math.abs(o) % 180, o === 90) return {
375
- width: r,
376
- height: t
377
- };
378
- var s = o % 90 * Math.PI / 180, u = Math.sin(s), d = Math.cos(s), f = t * d + r * u, p = t * u + r * d;
379
- return o > 90 ? {
380
- width: p,
381
- height: f
382
- } : {
383
- width: f,
384
- height: p
385
- };
386
- }
387
- function ot(e, t, r, o) {
388
- var s = t.aspectRatio, u = t.naturalWidth, d = t.naturalHeight, f = t.rotate, p = f === void 0 ? 0 : f, h = t.scaleX, g = h === void 0 ? 1 : h, _ = t.scaleY, v = _ === void 0 ? 1 : _, y = r.aspectRatio, b = r.naturalWidth, x = r.naturalHeight, S = o.fillColor, C = S === void 0 ? "transparent" : S, w = o.imageSmoothingEnabled, T = w === void 0 ? !0 : w, E = o.imageSmoothingQuality, D = E === void 0 ? "low" : E, O = o.maxWidth, k = O === void 0 ? Infinity : O, A = o.maxHeight, j = A === void 0 ? Infinity : A, M = o.minWidth, N = M === void 0 ? 0 : M, P = o.minHeight, F = P === void 0 ? 0 : P, I = document.createElement("canvas"), L = I.getContext("2d"), R = $({
389
- aspectRatio: y,
390
- width: k,
391
- height: j
392
- }), z = $({
393
- aspectRatio: y,
394
- width: N,
395
- height: F
396
- }, "cover"), B = Math.min(R.width, Math.max(z.width, b)), ee = Math.min(R.height, Math.max(z.height, x)), te = $({
397
- aspectRatio: s,
398
- width: k,
399
- height: j
400
- }), ne = $({
401
- aspectRatio: s,
402
- width: N,
403
- height: F
404
- }, "cover"), V = Math.min(te.width, Math.max(ne.width, u)), H = Math.min(te.height, Math.max(ne.height, d)), re = [
405
- -V / 2,
406
- -H / 2,
407
- V,
408
- H
409
- ];
410
- return I.width = Re(B), I.height = Re(ee), L.fillStyle = C, L.fillRect(0, 0, B, ee), L.save(), L.translate(B / 2, ee / 2), L.rotate(p * Math.PI / 180), L.scale(g, v), L.imageSmoothingEnabled = T, L.imageSmoothingQuality = D, L.drawImage.apply(L, [e].concat(m(re.map(function(e) {
411
- return Math.floor(Re(e));
412
- })))), L.restore(), I;
413
- }
414
- var st = String.fromCharCode;
415
- function ct(e, t, r) {
416
- var o = "";
417
- r += t;
418
- for (var s = t; s < r; s += 1) o += st(e.getUint8(s));
419
- return o;
420
- }
421
- var lt = /^data:.*,/;
422
- function ut(e) {
423
- var t = e.replace(lt, ""), r = atob(t), o = new ArrayBuffer(r.length), s = new Uint8Array(o);
424
- return K(s, function(e, t) {
425
- s[t] = r.charCodeAt(t);
426
- }), o;
427
- }
428
- function dt(e, t) {
429
- for (var r = [], o = 8192, s = new Uint8Array(e); s.length > 0;) r.push(st.apply(null, Ie(s.subarray(0, o)))), s = s.subarray(o);
430
- return `data:${t};base64,${btoa(r.join(""))}`;
431
- }
432
- function ft(e) {
433
- var t = new DataView(e), r;
434
- try {
435
- var o, s, u;
436
- if (t.getUint8(0) === 255 && t.getUint8(1) === 216) for (var d = t.byteLength, f = 2; f + 1 < d;) {
437
- if (t.getUint8(f) === 255 && t.getUint8(f + 1) === 225) {
438
- s = f;
439
- break;
440
- }
441
- f += 1;
442
- }
443
- if (s) {
444
- var p = s + 4, m = s + 10;
445
- if (ct(t, p, 4) === "Exif") {
446
- var h = t.getUint16(m);
447
- if (o = h === 18761, (o || h === 19789) && t.getUint16(m + 2, o) === 42) {
448
- var g = t.getUint32(m + 4, o);
449
- g >= 8 && (u = m + g);
450
- }
451
- }
452
- }
453
- if (u) {
454
- var _ = t.getUint16(u, o), v, y;
455
- for (y = 0; y < _; y += 1) if (v = u + y * 12 + 2, t.getUint16(v, o) === 274) {
456
- v += 8, r = t.getUint16(v, o), t.setUint16(v, 1, o);
457
- break;
458
- }
459
- }
460
- } catch {
461
- r = 1;
462
- }
463
- return r;
464
- }
465
- function pt(e) {
466
- var t = 0, r = 1, o = 1;
467
- switch (e) {
468
- case 2:
469
- r = -1;
470
- break;
471
- case 3:
472
- t = -180;
473
- break;
474
- case 4:
475
- o = -1;
476
- break;
477
- case 5:
478
- t = 90, o = -1;
479
- break;
480
- case 6:
481
- t = 90;
482
- break;
483
- case 7:
484
- t = 90, r = -1;
485
- break;
486
- case 8:
487
- t = -90;
488
- break;
489
- }
490
- return {
491
- rotate: t,
492
- scaleX: r,
493
- scaleY: o
494
- };
495
- }
496
- var mt = {
497
- render: function() {
498
- this.initContainer(), this.initCanvas(), this.initCropBox(), this.renderCanvas(), this.cropped && this.renderCropBox();
499
- },
500
- initContainer: function() {
501
- var e = this.element, t = this.options, r = this.container, o = this.cropper, s = Number(t.minContainerWidth), u = Number(t.minContainerHeight);
502
- Y(o, z), X(e, z);
503
- var d = {
504
- width: Math.max(r.offsetWidth, s >= 0 ? s : Ee),
505
- height: Math.max(r.offsetHeight, u >= 0 ? u : De)
506
- };
507
- this.containerData = d, J(o, {
508
- width: d.width,
509
- height: d.height
510
- }), Y(e, z), X(o, z);
511
- },
512
- initCanvas: function() {
513
- var e = this.containerData, t = this.imageData, r = this.options.viewMode, o = Math.abs(t.rotate) % 180 == 90, s = o ? t.naturalHeight : t.naturalWidth, u = o ? t.naturalWidth : t.naturalHeight, d = s / u, f = e.width, p = e.height;
514
- e.height * d > e.width ? r === 3 ? f = e.height * d : p = e.width / d : r === 3 ? p = e.width / d : f = e.height * d;
515
- var m = {
516
- aspectRatio: d,
517
- naturalWidth: s,
518
- naturalHeight: u,
519
- width: f,
520
- height: p
521
- };
522
- this.canvasData = m, this.limited = r === 1 || r === 2, this.limitCanvas(!0, !0), m.width = Math.min(Math.max(m.width, m.minWidth), m.maxWidth), m.height = Math.min(Math.max(m.height, m.minHeight), m.maxHeight), m.left = (e.width - m.width) / 2, m.top = (e.height - m.height) / 2, m.oldLeft = m.left, m.oldTop = m.top, this.initialCanvasData = q({}, m);
523
- },
524
- limitCanvas: function(e, t) {
525
- var r = this.options, o = this.containerData, s = this.canvasData, u = this.cropBoxData, d = r.viewMode, f = s.aspectRatio, p = this.cropped && u;
526
- if (e) {
527
- var m = Number(r.minCanvasWidth) || 0, h = Number(r.minCanvasHeight) || 0;
528
- d > 1 ? (m = Math.max(m, o.width), h = Math.max(h, o.height), d === 3 && (h * f > m ? m = h * f : h = m / f)) : d > 0 && (m ? m = Math.max(m, p ? u.width : 0) : h ? h = Math.max(h, p ? u.height : 0) : p && (m = u.width, h = u.height, h * f > m ? m = h * f : h = m / f));
529
- var g = $({
530
- aspectRatio: f,
531
- width: m,
532
- height: h
533
- });
534
- m = g.width, h = g.height, s.minWidth = m, s.minHeight = h, s.maxWidth = Infinity, s.maxHeight = Infinity;
535
- }
536
- if (t) if (d > (p ? 0 : 1)) {
537
- var _ = o.width - s.width, v = o.height - s.height;
538
- s.minLeft = Math.min(0, _), s.minTop = Math.min(0, v), s.maxLeft = Math.max(0, _), s.maxTop = Math.max(0, v), p && this.limited && (s.minLeft = Math.min(u.left, u.left + (u.width - s.width)), s.minTop = Math.min(u.top, u.top + (u.height - s.height)), s.maxLeft = u.left, s.maxTop = u.top, d === 2 && (s.width >= o.width && (s.minLeft = Math.min(0, _), s.maxLeft = Math.max(0, _)), s.height >= o.height && (s.minTop = Math.min(0, v), s.maxTop = Math.max(0, v))));
539
- } else s.minLeft = -s.width, s.minTop = -s.height, s.maxLeft = o.width, s.maxTop = o.height;
540
- },
541
- renderCanvas: function(e, t) {
542
- var r = this.canvasData, o = this.imageData;
543
- if (t) {
544
- var s = at({
545
- width: o.naturalWidth * Math.abs(o.scaleX || 1),
546
- height: o.naturalHeight * Math.abs(o.scaleY || 1),
547
- degree: o.rotate || 0
548
- }), u = s.width, d = s.height, f = r.width * (u / r.naturalWidth), p = r.height * (d / r.naturalHeight);
549
- r.left -= (f - r.width) / 2, r.top -= (p - r.height) / 2, r.width = f, r.height = p, r.aspectRatio = u / d, r.naturalWidth = u, r.naturalHeight = d, this.limitCanvas(!0, !1);
550
- }
551
- (r.width > r.maxWidth || r.width < r.minWidth) && (r.left = r.oldLeft), (r.height > r.maxHeight || r.height < r.minHeight) && (r.top = r.oldTop), r.width = Math.min(Math.max(r.width, r.minWidth), r.maxWidth), r.height = Math.min(Math.max(r.height, r.minHeight), r.maxHeight), this.limitCanvas(!1, !0), r.left = Math.min(Math.max(r.left, r.minLeft), r.maxLeft), r.top = Math.min(Math.max(r.top, r.minTop), r.maxTop), r.oldLeft = r.left, r.oldTop = r.top, J(this.canvas, q({
552
- width: r.width,
553
- height: r.height
554
- }, tt({
555
- translateX: r.left,
556
- translateY: r.top
557
- }))), this.renderImage(e), this.cropped && this.limited && this.limitCropBox(!0, !0);
558
- },
559
- renderImage: function(e) {
560
- var t = this.canvasData, r = this.imageData, o = r.naturalWidth * (t.width / t.naturalWidth), s = r.naturalHeight * (t.height / t.naturalHeight);
561
- q(r, {
562
- width: o,
563
- height: s,
564
- left: (t.width - o) / 2,
565
- top: (t.height - s) / 2
566
- }), J(this.image, q({
567
- width: r.width,
568
- height: r.height
569
- }, tt(q({
570
- translateX: r.left,
571
- translateY: r.top
572
- }, r)))), e && this.output();
573
- },
574
- initCropBox: function() {
575
- var e = this.options, t = this.canvasData, r = e.aspectRatio || e.initialAspectRatio, o = Number(e.autoCropArea) || .8, s = {
576
- width: t.width,
577
- height: t.height
578
- };
579
- r && (t.height * r > t.width ? s.height = s.width / r : s.width = s.height * r), this.cropBoxData = s, this.limitCropBox(!0, !0), s.width = Math.min(Math.max(s.width, s.minWidth), s.maxWidth), s.height = Math.min(Math.max(s.height, s.minHeight), s.maxHeight), s.width = Math.max(s.minWidth, s.width * o), s.height = Math.max(s.minHeight, s.height * o), s.left = t.left + (t.width - s.width) / 2, s.top = t.top + (t.height - s.height) / 2, s.oldLeft = s.left, s.oldTop = s.top, this.initialCropBoxData = q({}, s);
580
- },
581
- limitCropBox: function(e, t) {
582
- var r = this.options, o = this.containerData, s = this.canvasData, u = this.cropBoxData, d = this.limited, f = r.aspectRatio;
583
- if (e) {
584
- var p = Number(r.minCropBoxWidth) || 0, m = Number(r.minCropBoxHeight) || 0, h = d ? Math.min(o.width, s.width, s.width + s.left, o.width - s.left) : o.width, g = d ? Math.min(o.height, s.height, s.height + s.top, o.height - s.top) : o.height;
585
- p = Math.min(p, o.width), m = Math.min(m, o.height), f && (p && m ? m * f > p ? m = p / f : p = m * f : p ? m = p / f : m && (p = m * f), g * f > h ? g = h / f : h = g * f), u.minWidth = Math.min(p, h), u.minHeight = Math.min(m, g), u.maxWidth = h, u.maxHeight = g;
586
- }
587
- t && (d ? (u.minLeft = Math.max(0, s.left), u.minTop = Math.max(0, s.top), u.maxLeft = Math.min(o.width, s.left + s.width) - u.width, u.maxTop = Math.min(o.height, s.top + s.height) - u.height) : (u.minLeft = 0, u.minTop = 0, u.maxLeft = o.width - u.width, u.maxTop = o.height - u.height));
588
- },
589
- renderCropBox: function() {
590
- var e = this.options, t = this.containerData, r = this.cropBoxData;
591
- (r.width > r.maxWidth || r.width < r.minWidth) && (r.left = r.oldLeft), (r.height > r.maxHeight || r.height < r.minHeight) && (r.top = r.oldTop), r.width = Math.min(Math.max(r.width, r.minWidth), r.maxWidth), r.height = Math.min(Math.max(r.height, r.minHeight), r.maxHeight), this.limitCropBox(!1, !0), r.left = Math.min(Math.max(r.left, r.minLeft), r.maxLeft), r.top = Math.min(Math.max(r.top, r.minTop), r.maxTop), r.oldLeft = r.left, r.oldTop = r.top, e.movable && e.cropBoxMovable && Ge(this.face, V, r.width >= t.width && r.height >= t.height ? D : T), J(this.cropBox, q({
592
- width: r.width,
593
- height: r.height
594
- }, tt({
595
- translateX: r.left,
596
- translateY: r.top
597
- }))), this.cropped && this.limited && this.limitCanvas(!0, !0), this.disabled || this.output();
598
- },
599
- output: function() {
600
- this.preview(), Ye(this.element, oe, this.getData());
601
- }
602
- }, ht = {
603
- initPreview: function() {
604
- var e = this.element, t = this.crossOrigin, r = this.options.preview, o = t ? this.crossOriginUrl : this.url, s = e.alt || "The image to preview", u = document.createElement("img");
605
- if (t && (u.crossOrigin = t), u.src = o, u.alt = s, this.viewBox.appendChild(u), this.viewBoxImage = u, r) {
606
- var d = r;
607
- typeof r == "string" ? d = e.ownerDocument.querySelectorAll(r) : r.querySelector && (d = [r]), this.previews = d, K(d, function(e) {
608
- var r = document.createElement("img");
609
- Ge(e, H, {
610
- width: e.offsetWidth,
611
- height: e.offsetHeight,
612
- html: e.innerHTML
613
- }), t && (r.crossOrigin = t), r.src = o, r.alt = s, r.style.cssText = "display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;\"", e.innerHTML = "", e.appendChild(r);
614
- });
615
- }
616
- },
617
- resetPreview: function() {
618
- K(this.previews, function(e) {
619
- var t = We(e, H);
620
- J(e, {
621
- width: t.width,
622
- height: t.height
623
- }), e.innerHTML = t.html, Ke(e, H);
624
- });
625
- },
626
- preview: function() {
627
- var e = this.imageData, t = this.canvasData, r = this.cropBoxData, o = r.width, s = r.height, u = e.width, d = e.height, f = r.left - t.left - e.left, p = r.top - t.top - e.top;
628
- !this.cropped || this.disabled || (J(this.viewBoxImage, q({
629
- width: u,
630
- height: d
631
- }, tt(q({
632
- translateX: -f,
633
- translateY: -p
634
- }, e)))), K(this.previews, function(t) {
635
- var r = We(t, H), m = r.width, h = r.height, g = m, _ = h, v = 1;
636
- o && (v = m / o, _ = s * v), s && _ > h && (v = h / s, g = o * v, _ = h), J(t, {
637
- width: g,
638
- height: _
639
- }), J(t.getElementsByTagName("img")[0], q({
640
- width: u * v,
641
- height: d * v
642
- }, tt(q({
643
- translateX: -f * v,
644
- translateY: -p * v
645
- }, e))));
646
- }));
647
- }
648
- }, gt = {
649
- bind: function() {
650
- var e = this.element, t = this.options, r = this.cropper;
651
- G(t.cropstart) && Q(e, le, t.cropstart), G(t.cropmove) && Q(e, ce, t.cropmove), G(t.cropend) && Q(e, se, t.cropend), G(t.crop) && Q(e, oe, t.crop), G(t.zoom) && Q(e, be, t.zoom), Q(r, me, this.onCropStart = this.cropStart.bind(this)), t.zoomable && t.zoomOnWheel && Q(r, ye, this.onWheel = this.wheel.bind(this), {
652
- passive: !1,
653
- capture: !0
654
- }), t.toggleDragModeOnDblclick && Q(r, ue, this.onDblclick = this.dblclick.bind(this)), Q(e.ownerDocument, he, this.onCropMove = this.cropMove.bind(this)), Q(e.ownerDocument, ge, this.onCropEnd = this.cropEnd.bind(this)), t.responsive && Q(window, ve, this.onResize = this.resize.bind(this));
655
- },
656
- unbind: function() {
657
- var e = this.element, t = this.options, r = this.cropper;
658
- G(t.cropstart) && Z(e, le, t.cropstart), G(t.cropmove) && Z(e, ce, t.cropmove), G(t.cropend) && Z(e, se, t.cropend), G(t.crop) && Z(e, oe, t.crop), G(t.zoom) && Z(e, be, t.zoom), Z(r, me, this.onCropStart), t.zoomable && t.zoomOnWheel && Z(r, ye, this.onWheel, {
659
- passive: !1,
660
- capture: !0
661
- }), t.toggleDragModeOnDblclick && Z(r, ue, this.onDblclick), Z(e.ownerDocument, he, this.onCropMove), Z(e.ownerDocument, ge, this.onCropEnd), t.responsive && Z(window, ve, this.onResize);
662
- }
663
- }, _t = {
664
- resize: function() {
665
- if (!this.disabled) {
666
- var e = this.options, t = this.container, r = this.containerData, o = t.offsetWidth / r.width, s = t.offsetHeight / r.height, u = Math.abs(o - 1) > Math.abs(s - 1) ? o : s;
667
- if (u !== 1) {
668
- var d, f;
669
- e.restore && (d = this.getCanvasData(), f = this.getCropBoxData()), this.render(), e.restore && (this.setCanvasData(K(d, function(e, t) {
670
- d[t] = e * u;
671
- })), this.setCropBoxData(K(f, function(e, t) {
672
- f[t] = e * u;
673
- })));
674
- }
675
- }
676
- },
677
- dblclick: function() {
678
- this.disabled || this.options.dragMode === ae || this.setDragMode(Be(this.dragBox, L) ? ie : re);
679
- },
680
- wheel: function(e) {
681
- var t = this, r = Number(this.options.wheelZoomRatio) || .1, o = 1;
682
- this.disabled || (e.preventDefault(), !this.wheeling && (this.wheeling = !0, setTimeout(function() {
683
- t.wheeling = !1;
684
- }, 50), e.deltaY ? o = e.deltaY > 0 ? 1 : -1 : e.wheelDelta ? o = -e.wheelDelta / 120 : e.detail && (o = e.detail > 0 ? 1 : -1), this.zoom(-o * r, e)));
685
- },
686
- cropStart: function(e) {
687
- var t = e.buttons, r = e.button;
688
- if (!(this.disabled || (e.type === "mousedown" || e.type === "pointerdown" && e.pointerType === "mouse") && (U(t) && t !== 1 || U(r) && r !== 0 || e.ctrlKey))) {
689
- var o = this.options, s = this.pointers, u;
690
- e.changedTouches ? K(e.changedTouches, function(e) {
691
- s[e.identifier] = rt(e);
692
- }) : s[e.pointerId || 0] = rt(e), u = Object.keys(s).length > 1 && o.zoomable && o.zoomOnTouch ? O : We(e.target, V), Se.test(u) && Ye(this.element, le, {
693
- originalEvent: e,
694
- action: u
695
- }) !== !1 && (e.preventDefault(), this.action = u, this.cropping = !1, u === E && (this.cropping = !0, Y(this.dragBox, te)));
696
- }
697
- },
698
- cropMove: function(e) {
699
- var t = this.action;
700
- if (!(this.disabled || !t)) {
701
- var r = this.pointers;
702
- e.preventDefault(), Ye(this.element, ce, {
703
- originalEvent: e,
704
- action: t
705
- }) !== !1 && (e.changedTouches ? K(e.changedTouches, function(e) {
706
- q(r[e.identifier] || {}, rt(e, !0));
707
- }) : q(r[e.pointerId || 0] || {}, rt(e, !0)), this.change(e));
708
- }
709
- },
710
- cropEnd: function(e) {
711
- if (!this.disabled) {
712
- var t = this.action, r = this.pointers;
713
- e.changedTouches ? K(e.changedTouches, function(e) {
714
- delete r[e.identifier];
715
- }) : delete r[e.pointerId || 0], t && (e.preventDefault(), Object.keys(r).length || (this.action = ""), this.cropping && (this.cropping = !1, Ve(this.dragBox, te, this.cropped && this.options.modal)), Ye(this.element, se, {
716
- originalEvent: e,
717
- action: t
718
- }));
719
- }
720
- }
721
- }, vt = { change: function(e) {
722
- var t = this.options, r = this.canvasData, o = this.containerData, s = this.cropBoxData, u = this.pointers, d = this.action, f = t.aspectRatio, p = s.left, m = s.top, h = s.width, g = s.height, _ = p + h, v = m + g, y = 0, b = 0, x = o.width, S = o.height, C = !0, w;
723
- !f && e.shiftKey && (f = h && g ? h / g : 1), this.limited && (y = s.minLeft, b = s.minTop, x = y + Math.min(o.width, r.width, r.left + r.width), S = b + Math.min(o.height, r.height, r.top + r.height));
724
- var L = u[Object.keys(u)[0]], R = {
725
- x: L.endX - L.startX,
726
- y: L.endY - L.startY
727
- }, B = function(e) {
728
- switch (e) {
729
- case k:
730
- _ + R.x > x && (R.x = x - _);
731
- break;
732
- case A:
733
- p + R.x < y && (R.x = y - p);
734
- break;
735
- case M:
736
- m + R.y < b && (R.y = b - m);
737
- break;
738
- case j:
739
- v + R.y > S && (R.y = S - v);
740
- break;
741
- }
742
- };
743
- switch (d) {
744
- case T:
745
- p += R.x, m += R.y;
746
- break;
747
- case k:
748
- if (R.x >= 0 && (_ >= x || f && (m <= b || v >= S))) {
749
- C = !1;
750
- break;
751
- }
752
- B(k), h += R.x, h < 0 && (d = A, h = -h, p -= h), f && (g = h / f, m += (s.height - g) / 2);
753
- break;
754
- case M:
755
- if (R.y <= 0 && (m <= b || f && (p <= y || _ >= x))) {
756
- C = !1;
757
- break;
758
- }
759
- B(M), g -= R.y, m += R.y, g < 0 && (d = j, g = -g, m -= g), f && (h = g * f, p += (s.width - h) / 2);
760
- break;
761
- case A:
762
- if (R.x <= 0 && (p <= y || f && (m <= b || v >= S))) {
763
- C = !1;
764
- break;
765
- }
766
- B(A), h -= R.x, p += R.x, h < 0 && (d = k, h = -h, p -= h), f && (g = h / f, m += (s.height - g) / 2);
767
- break;
768
- case j:
769
- if (R.y >= 0 && (v >= S || f && (p <= y || _ >= x))) {
770
- C = !1;
771
- break;
772
- }
773
- B(j), g += R.y, g < 0 && (d = M, g = -g, m -= g), f && (h = g * f, p += (s.width - h) / 2);
774
- break;
775
- case N:
776
- if (f) {
777
- if (R.y <= 0 && (m <= b || _ >= x)) {
778
- C = !1;
779
- break;
780
- }
781
- B(M), g -= R.y, m += R.y, h = g * f;
782
- } else B(M), B(k), R.x >= 0 ? _ < x ? h += R.x : R.y <= 0 && m <= b && (C = !1) : h += R.x, R.y <= 0 ? m > b && (g -= R.y, m += R.y) : (g -= R.y, m += R.y);
783
- h < 0 && g < 0 ? (d = I, g = -g, h = -h, m -= g, p -= h) : h < 0 ? (d = P, h = -h, p -= h) : g < 0 && (d = F, g = -g, m -= g);
784
- break;
785
- case P:
786
- if (f) {
787
- if (R.y <= 0 && (m <= b || p <= y)) {
788
- C = !1;
789
- break;
790
- }
791
- B(M), g -= R.y, m += R.y, h = g * f, p += s.width - h;
792
- } else B(M), B(A), R.x <= 0 ? p > y ? (h -= R.x, p += R.x) : R.y <= 0 && m <= b && (C = !1) : (h -= R.x, p += R.x), R.y <= 0 ? m > b && (g -= R.y, m += R.y) : (g -= R.y, m += R.y);
793
- h < 0 && g < 0 ? (d = F, g = -g, h = -h, m -= g, p -= h) : h < 0 ? (d = N, h = -h, p -= h) : g < 0 && (d = I, g = -g, m -= g);
794
- break;
795
- case I:
796
- if (f) {
797
- if (R.x <= 0 && (p <= y || v >= S)) {
798
- C = !1;
799
- break;
800
- }
801
- B(A), h -= R.x, p += R.x, g = h / f;
802
- } else B(j), B(A), R.x <= 0 ? p > y ? (h -= R.x, p += R.x) : R.y >= 0 && v >= S && (C = !1) : (h -= R.x, p += R.x), R.y >= 0 ? v < S && (g += R.y) : g += R.y;
803
- h < 0 && g < 0 ? (d = N, g = -g, h = -h, m -= g, p -= h) : h < 0 ? (d = F, h = -h, p -= h) : g < 0 && (d = P, g = -g, m -= g);
804
- break;
805
- case F:
806
- if (f) {
807
- if (R.x >= 0 && (_ >= x || v >= S)) {
808
- C = !1;
809
- break;
810
- }
811
- B(k), h += R.x, g = h / f;
812
- } else B(j), B(k), R.x >= 0 ? _ < x ? h += R.x : R.y >= 0 && v >= S && (C = !1) : h += R.x, R.y >= 0 ? v < S && (g += R.y) : g += R.y;
813
- h < 0 && g < 0 ? (d = P, g = -g, h = -h, m -= g, p -= h) : h < 0 ? (d = I, h = -h, p -= h) : g < 0 && (d = N, g = -g, m -= g);
814
- break;
815
- case D:
816
- this.move(R.x, R.y), C = !1;
817
- break;
818
- case O:
819
- this.zoom(nt(u), e), C = !1;
820
- break;
821
- case E:
822
- if (!R.x || !R.y) {
823
- C = !1;
824
- break;
825
- }
826
- w = Xe(this.cropper), p = L.startX - w.left, m = L.startY - w.top, h = s.minWidth, g = s.minHeight, R.x > 0 ? d = R.y > 0 ? F : N : R.x < 0 && (p -= h, d = R.y > 0 ? I : P), R.y < 0 && (m -= g), this.cropped || (X(this.cropBox, z), this.cropped = !0, this.limited && this.limitCropBox(!0, !0));
827
- break;
828
- }
829
- C && (s.width = h, s.height = g, s.left = p, s.top = m, this.action = d, this.renderCropBox()), K(u, function(e) {
830
- e.startX = e.endX, e.startY = e.endY;
831
- });
832
- } }, yt = {
833
- crop: function() {
834
- return this.ready && !this.cropped && !this.disabled && (this.cropped = !0, this.limitCropBox(!0, !0), this.options.modal && Y(this.dragBox, te), X(this.cropBox, z), this.setCropBoxData(this.initialCropBoxData)), this;
835
- },
836
- reset: function() {
837
- return this.ready && !this.disabled && (this.imageData = q({}, this.initialImageData), this.canvasData = q({}, this.initialCanvasData), this.cropBoxData = q({}, this.initialCropBoxData), this.renderCanvas(), this.cropped && this.renderCropBox()), this;
838
- },
839
- clear: function() {
840
- return this.cropped && !this.disabled && (q(this.cropBoxData, {
841
- left: 0,
842
- top: 0,
843
- width: 0,
844
- height: 0
845
- }), this.cropped = !1, this.renderCropBox(), this.limitCanvas(!0, !0), this.renderCanvas(), X(this.dragBox, te), Y(this.cropBox, z)), this;
846
- },
847
- replace: function(e) {
848
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
849
- return !this.disabled && e && (this.isImg && (this.element.src = e), t ? (this.url = e, this.image.src = e, this.ready && (this.viewBoxImage.src = e, K(this.previews, function(t) {
850
- t.getElementsByTagName("img")[0].src = e;
851
- }))) : (this.isImg && (this.replaced = !0), this.options.data = null, this.uncreate(), this.load(e))), this;
852
- },
853
- enable: function() {
854
- return this.ready && this.disabled && (this.disabled = !1, X(this.cropper, R)), this;
855
- },
856
- disable: function() {
857
- return this.ready && !this.disabled && (this.disabled = !0, Y(this.cropper, R)), this;
858
- },
859
- destroy: function() {
860
- var e = this.element;
861
- return e[w] ? (e[w] = void 0, this.isImg && this.replaced && (e.src = this.originalUrl), this.uncreate(), this) : this;
862
- },
863
- move: function(e) {
864
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, r = this.canvasData, o = r.left, s = r.top;
865
- return this.moveTo(Me(e) ? e : o + Number(e), Me(t) ? t : s + Number(t));
866
- },
867
- moveTo: function(e) {
868
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, r = this.canvasData, o = !1;
869
- return e = Number(e), t = Number(t), this.ready && !this.disabled && this.options.movable && (U(e) && (r.left = e, o = !0), U(t) && (r.top = t, o = !0), o && this.renderCanvas(!0)), this;
870
- },
871
- zoom: function(e, t) {
872
- var r = this.canvasData;
873
- return e = Number(e), e = e < 0 ? 1 / (1 - e) : 1 + e, this.zoomTo(r.width * e / r.naturalWidth, null, t);
874
- },
875
- zoomTo: function(e, t, r) {
876
- var o = this.options, s = this.canvasData, u = s.width, d = s.height, f = s.naturalWidth, p = s.naturalHeight;
877
- if (e = Number(e), e >= 0 && this.ready && !this.disabled && o.zoomable) {
878
- var m = f * e, h = p * e;
879
- if (Ye(this.element, be, {
880
- ratio: e,
881
- oldRatio: u / f,
882
- originalEvent: r
883
- }) === !1) return this;
884
- if (r) {
885
- var g = this.pointers, _ = Xe(this.cropper), v = g && Object.keys(g).length ? it(g) : {
886
- pageX: r.pageX,
887
- pageY: r.pageY
888
- };
889
- s.left -= (m - u) * ((v.pageX - _.left - s.left) / u), s.top -= (h - d) * ((v.pageY - _.top - s.top) / d);
890
- } else Pe(t) && U(t.x) && U(t.y) ? (s.left -= (m - u) * ((t.x - s.left) / u), s.top -= (h - d) * ((t.y - s.top) / d)) : (s.left -= (m - u) / 2, s.top -= (h - d) / 2);
891
- s.width = m, s.height = h, this.renderCanvas(!0);
892
- }
893
- return this;
894
- },
895
- rotate: function(e) {
896
- return this.rotateTo((this.imageData.rotate || 0) + Number(e));
897
- },
898
- rotateTo: function(e) {
899
- return e = Number(e), U(e) && this.ready && !this.disabled && this.options.rotatable && (this.imageData.rotate = e % 360, this.renderCanvas(!0, !0)), this;
900
- },
901
- scaleX: function(e) {
902
- var t = this.imageData.scaleY;
903
- return this.scale(e, U(t) ? t : 1);
904
- },
905
- scaleY: function(e) {
906
- var t = this.imageData.scaleX;
907
- return this.scale(U(t) ? t : 1, e);
908
- },
909
- scale: function(e) {
910
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, r = this.imageData, o = !1;
911
- return e = Number(e), t = Number(t), this.ready && !this.disabled && this.options.scalable && (U(e) && (r.scaleX = e, o = !0), U(t) && (r.scaleY = t, o = !0), o && this.renderCanvas(!0, !0)), this;
912
- },
913
- getData: function() {
914
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, t = this.options, r = this.imageData, o = this.canvasData, s = this.cropBoxData, u;
915
- if (this.ready && this.cropped) {
916
- u = {
917
- x: s.left - o.left,
918
- y: s.top - o.top,
919
- width: s.width,
920
- height: s.height
921
- };
922
- var d = r.width / r.naturalWidth;
923
- if (K(u, function(e, t) {
924
- u[t] = e / d;
925
- }), e) {
926
- var f = Math.round(u.y + u.height), p = Math.round(u.x + u.width);
927
- u.x = Math.round(u.x), u.y = Math.round(u.y), u.width = p - u.x, u.height = f - u.y;
928
- }
929
- } else u = {
930
- x: 0,
931
- y: 0,
932
- width: 0,
933
- height: 0
934
- };
935
- return t.rotatable && (u.rotate = r.rotate || 0), t.scalable && (u.scaleX = r.scaleX || 1, u.scaleY = r.scaleY || 1), u;
936
- },
937
- setData: function(e) {
938
- var t = this.options, r = this.imageData, o = this.canvasData, s = {};
939
- if (this.ready && !this.disabled && Pe(e)) {
940
- var u = !1;
941
- t.rotatable && U(e.rotate) && e.rotate !== r.rotate && (r.rotate = e.rotate, u = !0), t.scalable && (U(e.scaleX) && e.scaleX !== r.scaleX && (r.scaleX = e.scaleX, u = !0), U(e.scaleY) && e.scaleY !== r.scaleY && (r.scaleY = e.scaleY, u = !0)), u && this.renderCanvas(!0, !0);
942
- var d = r.width / r.naturalWidth;
943
- U(e.x) && (s.left = e.x * d + o.left), U(e.y) && (s.top = e.y * d + o.top), U(e.width) && (s.width = e.width * d), U(e.height) && (s.height = e.height * d), this.setCropBoxData(s);
944
- }
945
- return this;
946
- },
947
- getContainerData: function() {
948
- return this.ready ? q({}, this.containerData) : {};
949
- },
950
- getImageData: function() {
951
- return this.sized ? q({}, this.imageData) : {};
952
- },
953
- getCanvasData: function() {
954
- var e = this.canvasData, t = {};
955
- return this.ready && K([
956
- "left",
957
- "top",
958
- "width",
959
- "height",
960
- "naturalWidth",
961
- "naturalHeight"
962
- ], function(r) {
963
- t[r] = e[r];
964
- }), t;
965
- },
966
- setCanvasData: function(e) {
967
- var t = this.canvasData, r = t.aspectRatio;
968
- return this.ready && !this.disabled && Pe(e) && (U(e.left) && (t.left = e.left), U(e.top) && (t.top = e.top), U(e.width) ? (t.width = e.width, t.height = e.width / r) : U(e.height) && (t.height = e.height, t.width = e.height * r), this.renderCanvas(!0)), this;
969
- },
970
- getCropBoxData: function() {
971
- var e = this.cropBoxData, t;
972
- return this.ready && this.cropped && (t = {
973
- left: e.left,
974
- top: e.top,
975
- width: e.width,
976
- height: e.height
977
- }), t || {};
978
- },
979
- setCropBoxData: function(e) {
980
- var t = this.cropBoxData, r = this.options.aspectRatio, o, s;
981
- return this.ready && this.cropped && !this.disabled && Pe(e) && (U(e.left) && (t.left = e.left), U(e.top) && (t.top = e.top), U(e.width) && e.width !== t.width && (o = !0, t.width = e.width), U(e.height) && e.height !== t.height && (s = !0, t.height = e.height), r && (o ? t.height = t.width / r : s && (t.width = t.height * r)), this.renderCropBox()), this;
982
- },
983
- getCroppedCanvas: function() {
984
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
985
- if (!this.ready || !window.HTMLCanvasElement) return null;
986
- var t = this.canvasData, r = ot(this.image, this.imageData, t, e);
987
- if (!this.cropped) return r;
988
- var o = this.getData(e.rounded), s = o.x, u = o.y, d = o.width, f = o.height, p = r.width / Math.floor(t.naturalWidth);
989
- p !== 1 && (s *= p, u *= p, d *= p, f *= p);
990
- var h = d / f, g = $({
991
- aspectRatio: h,
992
- width: e.maxWidth || Infinity,
993
- height: e.maxHeight || Infinity
994
- }), _ = $({
995
- aspectRatio: h,
996
- width: e.minWidth || 0,
997
- height: e.minHeight || 0
998
- }, "cover"), v = $({
999
- aspectRatio: h,
1000
- width: e.width || (p === 1 ? d : r.width),
1001
- height: e.height || (p === 1 ? f : r.height)
1002
- }), y = v.width, b = v.height;
1003
- y = Math.min(g.width, Math.max(_.width, y)), b = Math.min(g.height, Math.max(_.height, b));
1004
- var x = document.createElement("canvas"), S = x.getContext("2d");
1005
- x.width = Re(y), x.height = Re(b), S.fillStyle = e.fillColor || "transparent", S.fillRect(0, 0, y, b);
1006
- var C = e.imageSmoothingEnabled, w = C === void 0 ? !0 : C, T = e.imageSmoothingQuality;
1007
- S.imageSmoothingEnabled = w, T && (S.imageSmoothingQuality = T);
1008
- var E = r.width, D = r.height, O = s, k = u, A, j, M, N, P, F;
1009
- O <= -d || O > E ? (O = 0, A = 0, M = 0, P = 0) : O <= 0 ? (M = -O, O = 0, A = Math.min(E, d + O), P = A) : O <= E && (M = 0, A = Math.min(d, E - O), P = A), A <= 0 || k <= -f || k > D ? (k = 0, j = 0, N = 0, F = 0) : k <= 0 ? (N = -k, k = 0, j = Math.min(D, f + k), F = j) : k <= D && (N = 0, j = Math.min(f, D - k), F = j);
1010
- var I = [
1011
- O,
1012
- k,
1013
- A,
1014
- j
1015
- ];
1016
- if (P > 0 && F > 0) {
1017
- var L = y / d;
1018
- I.push(M * L, N * L, P * L, F * L);
1019
- }
1020
- return S.drawImage.apply(S, [r].concat(m(I.map(function(e) {
1021
- return Math.floor(Re(e));
1022
- })))), x;
1023
- },
1024
- setAspectRatio: function(e) {
1025
- var t = this.options;
1026
- return !this.disabled && !Me(e) && (t.aspectRatio = Math.max(0, e) || NaN, this.ready && (this.initCropBox(), this.cropped && this.renderCropBox())), this;
1027
- },
1028
- setDragMode: function(e) {
1029
- var t = this.options, r = this.dragBox, o = this.face;
1030
- if (this.ready && !this.disabled) {
1031
- var s = e === re, u = t.movable && e === ie;
1032
- e = s || u ? e : ae, t.dragMode = e, Ge(r, V, e), Ve(r, L, s), Ve(r, ne, u), t.cropBoxMovable || (Ge(o, V, e), Ve(o, L, s), Ve(o, ne, u));
1033
- }
1034
- return this;
1035
- }
1036
- }, bt = x.Cropper, xt = /* @__PURE__ */ function() {
1037
- function e(t) {
1038
- var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1039
- if (u(this, e), !t || !Te.test(t.tagName)) throw Error("The first argument is required and must be an <img> or <canvas> element.");
1040
- this.element = t, this.options = q({}, Oe, Pe(r) && r), this.cropped = !1, this.disabled = !1, this.pointers = {}, this.ready = !1, this.reloading = !1, this.replaced = !1, this.sized = !1, this.sizing = !1, this.init();
1041
- }
1042
- return f(e, [
1043
- {
1044
- key: "init",
1045
- value: function() {
1046
- var e = this.element, t = e.tagName.toLowerCase(), r;
1047
- if (!e[w]) {
1048
- if (e[w] = this, t === "img") {
1049
- if (this.isImg = !0, r = e.getAttribute("src") || "", this.originalUrl = r, !r) return;
1050
- r = e.src;
1051
- } else t === "canvas" && window.HTMLCanvasElement && (r = e.toDataURL());
1052
- this.load(r);
1053
- }
1054
- }
1055
- },
1056
- {
1057
- key: "load",
1058
- value: function(e) {
1059
- var t = this;
1060
- if (e) {
1061
- this.url = e, this.imageData = {};
1062
- var r = this.element, o = this.options;
1063
- if (!o.rotatable && !o.scalable && (o.checkOrientation = !1), !o.checkOrientation || !window.ArrayBuffer) {
1064
- this.clone();
1065
- return;
1066
- }
1067
- if (Ce.test(e)) {
1068
- we.test(e) ? this.read(ut(e)) : this.clone();
1069
- return;
1070
- }
1071
- var s = new XMLHttpRequest(), u = this.clone.bind(this);
1072
- this.reloading = !0, this.xhr = s, s.onabort = u, s.onerror = u, s.ontimeout = u, s.onprogress = function() {
1073
- s.getResponseHeader("content-type") !== xe && s.abort();
1074
- }, s.onload = function() {
1075
- t.read(s.response);
1076
- }, s.onloadend = function() {
1077
- t.reloading = !1, t.xhr = null;
1078
- }, o.checkCrossOrigin && $e(e) && r.crossOrigin && (e = et(e)), s.open("GET", e, !0), s.responseType = "arraybuffer", s.withCredentials = r.crossOrigin === "use-credentials", s.send();
1079
- }
1080
- }
1081
- },
1082
- {
1083
- key: "read",
1084
- value: function(e) {
1085
- var t = this.options, r = this.imageData, o = ft(e), s = 0, u = 1, d = 1;
1086
- if (o > 1) {
1087
- this.url = dt(e, xe);
1088
- var f = pt(o);
1089
- s = f.rotate, u = f.scaleX, d = f.scaleY;
1090
- }
1091
- t.rotatable && (r.rotate = s), t.scalable && (r.scaleX = u, r.scaleY = d), this.clone();
1092
- }
1093
- },
1094
- {
1095
- key: "clone",
1096
- value: function() {
1097
- var e = this.element, t = this.url, r = e.crossOrigin, o = t;
1098
- this.options.checkCrossOrigin && $e(t) && (r ||= "anonymous", o = et(t)), this.crossOrigin = r, this.crossOriginUrl = o;
1099
- var s = document.createElement("img");
1100
- r && (s.crossOrigin = r), s.src = o || t, s.alt = e.alt || "The image to crop", this.image = s, s.onload = this.start.bind(this), s.onerror = this.stop.bind(this), Y(s, B), e.parentNode.insertBefore(s, e.nextSibling);
1101
- }
1102
- },
1103
- {
1104
- key: "start",
1105
- value: function() {
1106
- var e = this, t = this.image;
1107
- t.onload = null, t.onerror = null, this.sizing = !0;
1108
- var r = x.navigator && /(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(x.navigator.userAgent), o = function(t, r) {
1109
- q(e.imageData, {
1110
- naturalWidth: t,
1111
- naturalHeight: r,
1112
- aspectRatio: t / r
1113
- }), e.initialImageData = q({}, e.imageData), e.sizing = !1, e.sized = !0, e.build();
1114
- };
1115
- if (t.naturalWidth && !r) {
1116
- o(t.naturalWidth, t.naturalHeight);
1117
- return;
1118
- }
1119
- var s = document.createElement("img"), u = document.body || document.documentElement;
1120
- this.sizingImage = s, s.onload = function() {
1121
- o(s.width, s.height), r || u.removeChild(s);
1122
- }, s.src = t.src, r || (s.style.cssText = "left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;", u.appendChild(s));
1123
- }
1124
- },
1125
- {
1126
- key: "stop",
1127
- value: function() {
1128
- var e = this.image;
1129
- e.onload = null, e.onerror = null, e.parentNode.removeChild(e), this.image = null;
1130
- }
1131
- },
1132
- {
1133
- key: "build",
1134
- value: function() {
1135
- if (!(!this.sized || this.ready)) {
1136
- var e = this.element, t = this.options, r = this.image, o = e.parentNode, s = document.createElement("div");
1137
- s.innerHTML = ke;
1138
- var u = s.querySelector(`.${w}-container`), d = u.querySelector(`.${w}-canvas`), f = u.querySelector(`.${w}-drag-box`), p = u.querySelector(`.${w}-crop-box`), m = p.querySelector(`.${w}-face`);
1139
- this.container = o, this.cropper = u, this.canvas = d, this.dragBox = f, this.cropBox = p, this.viewBox = u.querySelector(`.${w}-view-box`), this.face = m, d.appendChild(r), Y(e, z), o.insertBefore(u, e.nextSibling), X(r, B), this.initPreview(), this.bind(), t.initialAspectRatio = Math.max(0, t.initialAspectRatio) || NaN, t.aspectRatio = Math.max(0, t.aspectRatio) || NaN, t.viewMode = Math.max(0, Math.min(3, Math.round(t.viewMode))) || 0, Y(p, z), t.guides || Y(p.getElementsByClassName(`${w}-dashed`), z), t.center || Y(p.getElementsByClassName(`${w}-center`), z), t.background && Y(u, `${w}-bg`), t.highlight || Y(m, ee), t.cropBoxMovable && (Y(m, ne), Ge(m, V, T)), t.cropBoxResizable || (Y(p.getElementsByClassName(`${w}-line`), z), Y(p.getElementsByClassName(`${w}-point`), z)), this.render(), this.ready = !0, this.setDragMode(t.dragMode), t.autoCrop && this.crop(), this.setData(t.data), G(t.ready) && Q(e, _e, t.ready, { once: !0 }), Ye(e, _e);
1140
- }
1141
- }
1142
- },
1143
- {
1144
- key: "unbuild",
1145
- value: function() {
1146
- if (this.ready) {
1147
- this.ready = !1, this.unbind(), this.resetPreview();
1148
- var e = this.cropper.parentNode;
1149
- e && e.removeChild(this.cropper), X(this.element, z);
1150
- }
1151
- }
1152
- },
1153
- {
1154
- key: "uncreate",
1155
- value: function() {
1156
- this.ready ? (this.unbuild(), this.ready = !1, this.cropped = !1) : this.sizing ? (this.sizingImage.onload = null, this.sizing = !1, this.sized = !1) : this.reloading ? (this.xhr.onabort = null, this.xhr.abort()) : this.image && this.stop();
1157
- }
1158
- }
1159
- ], [{
1160
- key: "noConflict",
1161
- value: function() {
1162
- return window.Cropper = bt, e;
1163
- }
1164
- }, {
1165
- key: "setDefaults",
1166
- value: function(e) {
1167
- q(Oe, Pe(e) && e);
1168
- }
1169
- }]);
1170
- }();
1171
- return q(xt.prototype, mt, ht, gt, _t, vt, yt), xt;
1172
- }));
1173
- })), import_react = /* @__PURE__ */ __toESM(require_react()), import_cropper = /* @__PURE__ */ __toESM(require_cropper()), n = function() {
1174
- return n = Object.assign || function(e) {
1175
- for (var t, r = 1, o = arguments.length; r < o; r++) for (var s in t = arguments[r]) Object.prototype.hasOwnProperty.call(t, s) && (e[s] = t[s]);
1176
- return e;
1177
- }, n.apply(this, arguments);
1178
- };
1179
- function a(e, t) {
1180
- var r = {};
1181
- for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (r[o] = e[o]);
1182
- if (e != null && typeof Object.getOwnPropertySymbols == "function") {
1183
- var s = 0;
1184
- for (o = Object.getOwnPropertySymbols(e); s < o.length; s++) t.indexOf(o[s]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[s]) && (r[o[s]] = e[o[s]]);
1185
- }
1186
- return r;
1187
- }
1188
- var c = /* @__PURE__ */ "aspectRatio.autoCrop.autoCropArea.background.center.checkCrossOrigin.checkOrientation.cropBoxMovable.cropBoxResizable.data.dragMode.guides.highlight.initialAspectRatio.minCanvasHeight.minCanvasWidth.minContainerHeight.minContainerWidth.minCropBoxHeight.minCropBoxWidth.modal.movable.preview.responsive.restore.rotatable.scalable.toggleDragModeOnDblclick.viewMode.wheelZoomRatio.zoomOnTouch.zoomOnWheel.zoomable.cropstart.cropmove.cropend.crop.zoom.ready".split("."), i = {
1189
- opacity: 0,
1190
- maxWidth: "100%"
1191
- }, l = import_react.forwardRef((function(e, t) {
1192
- var r = a(e, []), o = r.dragMode, h = o === void 0 ? "crop" : o, g = r.src, _ = r.style, v = r.className, y = r.crossOrigin, b = r.scaleX, x = r.scaleY, S = r.enable, C = r.zoomTo, w = r.rotateTo, T = r.alt, E = T === void 0 ? "picture" : T, D = r.ready, O = r.onInitialized, k = a(r, [
1193
- "dragMode",
1194
- "src",
1195
- "style",
1196
- "className",
1197
- "crossOrigin",
1198
- "scaleX",
1199
- "scaleY",
1200
- "enable",
1201
- "zoomTo",
1202
- "rotateTo",
1203
- "alt",
1204
- "ready",
1205
- "onInitialized"
1206
- ]), A = {
1207
- scaleY: x,
1208
- scaleX: b,
1209
- enable: S,
1210
- zoomTo: C,
1211
- rotateTo: w
1212
- }, j = function() {
1213
- var e = [...arguments], t = (0, import_react.useRef)(null);
1214
- return import_react.useEffect((function() {
1215
- e.forEach((function(e) {
1216
- e && (typeof e == "function" ? e(t.current) : e.current = t.current);
1217
- }));
1218
- }), [e]), t;
1219
- }(t, (0, import_react.useRef)(null));
1220
- (0, import_react.useEffect)((function() {
1221
- var e;
1222
- (e = j.current) != null && e.cropper && typeof C == "number" && j.current.cropper.zoomTo(C);
1223
- }), [r.zoomTo]), (0, import_react.useEffect)((function() {
1224
- var e;
1225
- (e = j.current) != null && e.cropper && g !== void 0 && j.current.cropper.reset().clear().replace(g);
1226
- }), [g]), (0, import_react.useEffect)((function() {
1227
- if (j.current !== null) {
1228
- var e = new import_cropper.default(j.current, n(n({ dragMode: h }, k), { ready: function(e) {
1229
- e.currentTarget !== null && function(e, t) {
1230
- t === void 0 && (t = {});
1231
- var r = t.enable, o = r === void 0 || r, s = t.scaleX, u = s === void 0 ? 1 : s, d = t.scaleY, f = d === void 0 ? 1 : d, p = t.zoomTo, m = p === void 0 ? 0 : p, h = t.rotateTo;
1232
- o ? e.enable() : e.disable(), e.scaleX(u), e.scaleY(f), h !== void 0 && e.rotateTo(h), m > 0 && e.zoomTo(m);
1233
- }(e.currentTarget.cropper, A), D && D(e);
1234
- } }));
1235
- O && O(e);
1236
- }
1237
- return function() {
1238
- var e;
1239
- (e = j.current?.cropper) == null || e.destroy();
1240
- };
1241
- }), [j]);
1242
- var M = function(e) {
1243
- return c.reduce((function(e, t) {
1244
- var r = e, o = t;
1245
- return r[o], a(r, [typeof o == "symbol" ? o : o + ""]);
1246
- }), e);
1247
- }(n(n({}, k), {
1248
- crossOrigin: y,
1249
- src: g,
1250
- alt: E
1251
- }));
1252
- return import_react.createElement("div", {
1253
- style: _,
1254
- className: v
1255
- }, import_react.createElement("img", n({}, M, {
1256
- style: i,
1257
- ref: j
1258
- })));
1259
- }));
1260
- export { l as Cropper, l as default };