@txgw/payout-components 1.1.4 → 1.2.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 (237) hide show
  1. package/dist/{AMIS-Bq2mkXpj.js → AMIS-yQ-qSYx6.js} +1 -1
  2. package/dist/Action-O_zoRC90.js +1 -0
  3. package/dist/{Alert-D7dRg-Pn.js → Alert-M2uguZ2-.js} +1 -1
  4. package/dist/{AnchorNav-BkHVvty5.js → AnchorNav-CLxVBebc.js} +1 -1
  5. package/dist/App-DCX5cbgG.js +1 -0
  6. package/dist/Audio-DHE_mJFM.js +1 -0
  7. package/dist/{Avatar-DJxuYka5.js → Avatar-BcduLEa3.js} +1 -1
  8. package/dist/BarCode-CGrg59dd.js +1 -0
  9. package/dist/{BarCode-DhOaTHVR.js → BarCode-uhJMrOnK.js} +1 -1
  10. package/dist/{Breadcrumb-Wrkvuo-D.js → Breadcrumb-Bu2GK1JP.js} +1 -1
  11. package/dist/ButtonGroup-DlC6ck_w.js +1 -0
  12. package/dist/{ButtonGroupSelect-BUdkI9ab.js → ButtonGroupSelect-e98karBC.js} +1 -1
  13. package/dist/{ButtonToolbar-D2UKzr3I.js → ButtonToolbar-CVU9Sl3O.js} +1 -1
  14. package/dist/CRUD-BC-reZZf.js +1 -0
  15. package/dist/CRUD2-FL2Lf3lg.js +1 -0
  16. package/dist/{Calendar-Cw4oMOLN.js → Calendar-nMyeGsYx.js} +1 -1
  17. package/dist/Card-CXEqDE1b.js +1 -0
  18. package/dist/{Card2-nWNx9EJj.js → Card2-Clwjsydz.js} +1 -1
  19. package/dist/Cards-Bjesu3b3.js +1 -0
  20. package/dist/Carousel-BX16BlEp.js +1 -0
  21. package/dist/ChainedSelect-HNkJ3-dh.js +1 -0
  22. package/dist/{Chart-DeifHM3G.js → Chart-agJkN0ZL.js} +1 -1
  23. package/dist/{ChartRadios-BX0XgRaT.js → ChartRadios-Bzxejcn5.js} +1 -1
  24. package/dist/Checkbox-CFbZWn6W.js +1 -0
  25. package/dist/Checkboxes-Dai8FX75.js +1 -0
  26. package/dist/{Code-DcvQoe7q.js → Code-CssmXCo1.js} +1 -1
  27. package/dist/Collapse-CxdrbTCt.js +1 -0
  28. package/dist/{CollapseGroup-BjOLc7gy.js → CollapseGroup-DSVqVNzd.js} +1 -1
  29. package/dist/{Color-VTVRP0Yh.js → Color-D_IajbVk.js} +1 -1
  30. package/dist/ColorPicker-D7vbsyrO.js +1 -0
  31. package/dist/{ColumnToggler-C3nJ3a2L.js → ColumnToggler-CHKOkn5W.js} +1 -1
  32. package/dist/ColumnToggler-CNtsoshN.js +1 -0
  33. package/dist/Combo-BY-auuRw.js +1 -0
  34. package/dist/{ConditionBuilder-DgrT7foX.js → ConditionBuilder-CcARxcMo.js} +1 -1
  35. package/dist/{Container-Dxat5bhD.js → Container-DJSLtDAJ.js} +1 -1
  36. package/dist/{Control-Bf-oCotG.js → Control-DSGWLqqF.js} +1 -1
  37. package/dist/{Custom-D6c7XWuG.js → Custom-BYHmBkth.js} +1 -1
  38. package/dist/{Date-bwXIQ1E2.js → Date-B63AkW7Z.js} +1 -1
  39. package/dist/{DateRange-Dziuubwl.js → DateRange-DJOatHqc.js} +1 -1
  40. package/dist/Dialog-kgjY-B2R.js +1 -0
  41. package/dist/{DiffEditor-DmsB7iU5.js → DiffEditor-DVtcPH19.js} +1 -1
  42. package/dist/{Divider-DXKjgHnu.js → Divider-Bhz9wUzQ.js} +1 -1
  43. package/dist/Drawer-Chy6lJ0Z.js +1 -0
  44. package/dist/DropDownButton-BWs-Bt8i.js +1 -0
  45. package/dist/{Each-BN_RdIk9.js → Each-BOfQOLuK.js} +1 -1
  46. package/dist/FieldSet-DN_G2H2G.js +1 -0
  47. package/dist/{Flex-CEOKLccw.js → Flex-CPhW10VO.js} +1 -1
  48. package/dist/{Formula-wHZcZdZe.js → Formula-DcsJiszb.js} +1 -1
  49. package/dist/{Grid2D-CjhMs7os.js → Grid2D-CdxZo60p.js} +1 -1
  50. package/dist/{GridNav-CMdtm2Xn.js → GridNav-Ygo_GK3C.js} +1 -1
  51. package/dist/{Group-CeX70BQM.js → Group-DDAf-7uz.js} +1 -1
  52. package/dist/HBox-CtV7AD0w.js +1 -0
  53. package/dist/{Hidden-BQlhmMF1.js → Hidden-BR6IyG0j.js} +1 -1
  54. package/dist/{IFrame-BBlU5j3H.js → IFrame-BxqJ3U9V.js} +1 -1
  55. package/dist/Icon-CRwFwe54.js +1 -0
  56. package/dist/IconPicker-BaSn0ir6.js +1 -0
  57. package/dist/IconSelect-B06M_oDf.js +1 -0
  58. package/dist/{IconSelectStore-Dejwl7K4.js → IconSelectStore-CR8CK_X5.js} +1 -1
  59. package/dist/Image-CTRm12Jc.js +1 -0
  60. package/dist/{Images-Dw6RjBRF.js → Images-D46XKnM8.js} +1 -1
  61. package/dist/{InputArray-BM8mytP0.js → InputArray-VGWKyEK3.js} +1 -1
  62. package/dist/InputCity-D2F8LhKN.js +1 -0
  63. package/dist/{InputColor-ieTmygEi.js → InputColor-DnQoK0vq.js} +1 -1
  64. package/dist/{InputDate-DClJE5ZQ.js → InputDate-Dh59pmr9.js} +1 -1
  65. package/dist/{InputDateRange-ey_IQBMw.js → InputDateRange-CEYcs3US.js} +1 -1
  66. package/dist/InputExcel-44jxNcRm.js +1 -0
  67. package/dist/InputFile-BXCmkHsj.js +1 -0
  68. package/dist/{InputFormula-kEcGojYn.js → InputFormula-BbBUGVDB.js} +1 -1
  69. package/dist/{InputGroup-Cl5NFohz.js → InputGroup-DC6UhjCD.js} +1 -1
  70. package/dist/InputImage-CIEPx3a3.js +1 -0
  71. package/dist/{InputMonthRange-DRsF3bwK.js → InputMonthRange-vWfEBcgt.js} +1 -1
  72. package/dist/{InputNumber-12oPLkKS.js → InputNumber-BroZeI3k.js} +1 -1
  73. package/dist/{InputQuarterRange-CGI7hpgD.js → InputQuarterRange-B-RgvEyL.js} +1 -1
  74. package/dist/InputRange-Bs7KposT.js +1 -0
  75. package/dist/{InputRating-CrC43lys.js → InputRating-Cu5964Ql.js} +1 -1
  76. package/dist/{InputRepeat-CfrcyVVp.js → InputRepeat-Cv2fEcrY.js} +1 -1
  77. package/dist/InputRichText-DIt7U8rX.js +1 -0
  78. package/dist/{InputSignature-Dblmb8fX.js → InputSignature-DIuwKNcw.js} +1 -1
  79. package/dist/InputSubForm-Bj00jcae.js +1 -0
  80. package/dist/InputTable-ByM68rOw.js +1 -0
  81. package/dist/InputTag-idylaKEe.js +1 -0
  82. package/dist/InputText-Cj2wp6S0.js +1 -0
  83. package/dist/InputTree-B0aSRjss.js +1 -0
  84. package/dist/{InputVerificationCode-BVS_27Ln.js → InputVerificationCode-DWmHV08K.js} +1 -1
  85. package/dist/{InputYearRange-B2O3_F1X.js → InputYearRange-D0V1t9TC.js} +1 -1
  86. package/dist/{JSONSchema-DqDhWtIJ.js → JSONSchema-BNYO4lHp.js} +1 -1
  87. package/dist/{JSONSchemaEditor-C9T3PzZJ.js → JSONSchemaEditor-DOUw4cjR.js} +1 -1
  88. package/dist/{Json-Ce0DNfyT.js → Json-ChJFz16a.js} +1 -1
  89. package/dist/{Link-C3aOVbZG.js → Link-Bu3ve8g0.js} +1 -1
  90. package/dist/List-CCqYTW3K.js +1 -0
  91. package/dist/{ListSelect-Bs6wj_-J.js → ListSelect-CbUhVvRd.js} +1 -1
  92. package/dist/{LocationPicker-B2cA5WeW.js → LocationPicker-CVmG_PU4.js} +1 -1
  93. package/dist/Log-CFLunOAF.js +1 -0
  94. package/dist/{Mapping-BHBXty4A.js → Mapping-C6YMHlDX.js} +1 -1
  95. package/dist/{Markdown-C7RRd4iB.js → Markdown-j5efZcgS.js} +1 -1
  96. package/dist/MatrixCheckboxes-CUi1N0RM.js +1 -0
  97. package/dist/{MultilineText-Cn_RvX_X.js → MultilineText-CjvXXqrp.js} +1 -1
  98. package/dist/Nav-CwSHGiwE.js +1 -0
  99. package/dist/NestedSelect-BfkZhH1O.js +1 -0
  100. package/dist/{Number-DFfcvMo-.js → Number-1fqsX9DH.js} +1 -1
  101. package/dist/OfficeViewer-DwIQUl66.js +1 -0
  102. package/dist/{Operation-B0qHBEGz.js → Operation-B1HwrneV.js} +1 -1
  103. package/dist/Page-Ed_OjLiq.js +1 -0
  104. package/dist/{Pagination-BML_Z29r.js → Pagination-6lMmNWPI.js} +1 -1
  105. package/dist/{PaginationWrapper-CsSgFHB2.js → PaginationWrapper-BkSRXIPs.js} +1 -1
  106. package/dist/Panel-DdwXHCry.js +1 -0
  107. package/dist/Password-D7hJHKSJ.js +1 -0
  108. package/dist/Picker-BZNqS92p.js +1 -0
  109. package/dist/{Plain-DIFjFdFl.js → Plain-D7nwMMVt.js} +1 -1
  110. package/dist/{Portlet-CxahIPp7.js → Portlet-BNPvph0w.js} +1 -1
  111. package/dist/{Progress-CzaZlXpm.js → Progress-CATKwBwk.js} +1 -1
  112. package/dist/{Property-CUyXCXOn.js → Property-Bbw6J0EJ.js} +1 -1
  113. package/dist/{QRCode-DfpZebSC.js → QRCode-C1Sz2px4.js} +1 -1
  114. package/dist/{Radio-BAbBp9SW.js → Radio-Bp4A9ifj.js} +1 -1
  115. package/dist/{Radios-CXuxJrci.js → Radios-BiON9miU.js} +1 -1
  116. package/dist/Remark-Dsxb2TwD.js +1 -0
  117. package/dist/{RichText-BDj_oSTQ.js → RichText-Ck_YZ4kC.js} +1 -1
  118. package/dist/{SearchBox-bMIN06lN.js → SearchBox-M-dkIVTh.js} +1 -1
  119. package/dist/Select-BGyJvCHF.js +1 -0
  120. package/dist/Service-7EfZof-E.js +1 -0
  121. package/dist/{Shape-DkrB4gFu.js → Shape-DGo5yg6n.js} +1 -1
  122. package/dist/{Slider-DLqHOqM9.js → Slider-CZP8_8w7.js} +1 -1
  123. package/dist/{SparkLine-Cffa7llr.js → SparkLine-BMxbCqBr.js} +1 -1
  124. package/dist/Spinner-D8gjgMqi.js +1 -0
  125. package/dist/{StaticHoc-DlQH6vI9.js → StaticHoc-D0pM2bgC.js} +1 -1
  126. package/dist/Status-CVO4FFCM.js +1 -0
  127. package/dist/{Steps-q0yTv3Pd.js → Steps-D7IGq2Hh.js} +1 -1
  128. package/dist/Switch-DamAp7Z0.js +1 -0
  129. package/dist/{SwitchContainer-F88HOPkR.js → SwitchContainer-CMXoJ9rv.js} +1 -1
  130. package/dist/Table-DaePlnJ2.js +1 -0
  131. package/dist/Table2-DZv7wQuy.js +1 -0
  132. package/dist/{TableView-CZBY7L3L.js → TableView-DoAcciT3.js} +1 -1
  133. package/dist/{Tabs-DhwrMAk5.js → Tabs-9QLYiuKd.js} +1 -1
  134. package/dist/TabsTransfer-CYt2Ydo2.js +1 -0
  135. package/dist/TabsTransferPicker-DbFyy-8j.js +1 -0
  136. package/dist/{Tag-NFonQSEh.js → Tag-mYOYI2_I.js} +1 -1
  137. package/dist/Tasks-BLnNJBWx.js +1 -0
  138. package/dist/{Textarea-D8LZxjAF.js → Textarea-sYiziBNB.js} +1 -1
  139. package/dist/{Timeline-BWCeXNwW.js → Timeline-BAxKRm5L.js} +1 -1
  140. package/dist/TooltipWrapper-C09x-Vn9.js +1 -0
  141. package/dist/{Tpl-DhQfxvVG.js → Tpl-ByPycBij.js} +1 -1
  142. package/dist/Transfer-B0VVG1X5.js +1 -0
  143. package/dist/TransferPicker-D2BR3RwX.js +1 -0
  144. package/dist/TreeSelect-V8WAsBlR.js +1 -0
  145. package/dist/{UUID-LOMmDPbG.js → UUID-9JqGMHov.js} +1 -1
  146. package/dist/{UserSelect-Bj3qwZOx.js → UserSelect-DU-DqXMl.js} +1 -1
  147. package/dist/{VBox-CO4uhaIu.js → VBox-DObThecs.js} +1 -1
  148. package/dist/{Video-Bg6Yw-M5.js → Video-C8IgYvL_.js} +1 -1
  149. package/dist/{WebComponent-Dz9rLydw.js → WebComponent-qhqdvgNC.js} +1 -1
  150. package/dist/Wizard-OfhcHrBG.js +1 -0
  151. package/dist/{Words-0Dy7botA.js → Words-BIdMoCe8.js} +1 -1
  152. package/dist/{Wrapper-CMoRa1D9.js → Wrapper-DJrZT8db.js} +1 -1
  153. package/dist/{PopUp-COPmnePV.js → _castFunction-CQMNP8A1.js} +104 -104
  154. package/dist/beneficiary-form-BRRcLnIQ.js +10 -0
  155. package/dist/{doc-ghaRvxaL.js → doc-C6E4JfQ4.js} +1 -1
  156. package/dist/{es-B3cNxma7.js → es-DoSNZEgs.js} +1 -1
  157. package/dist/esm-DMJQA23h.js +4 -0
  158. package/dist/esm-Dgr2t9Jm.js +27 -0
  159. package/dist/function-AxX-od3p.js +3 -0
  160. package/dist/index.d.ts +26 -0
  161. package/dist/index.js +1 -1
  162. package/dist/isEqual-CABQKVnq.js +1 -0
  163. package/dist/{objectSpread2-GwfkYN9X.js → objectSpread2-EZn5iNnc.js} +1 -1
  164. package/dist/{omitBy-ZPSwrvva.js → omitBy-DzRksfoy.js} +1 -1
  165. package/dist/request-CLLl5Hjd.js +1 -0
  166. package/dist/xor-D3F4ghdw.js +1 -0
  167. package/package.json +1 -1
  168. package/dist/Action-C3QtDUqy.js +0 -1
  169. package/dist/App-CP2DIt1G.js +0 -1
  170. package/dist/Audio-BppDXVEA.js +0 -1
  171. package/dist/BarCode-D4gon2p5.js +0 -1
  172. package/dist/ButtonGroup-Do35UTdV.js +0 -1
  173. package/dist/CRUD-4seSk6Da.js +0 -1
  174. package/dist/CRUD2-DT_SKjjr.js +0 -1
  175. package/dist/Card-C3k1tiC5.js +0 -1
  176. package/dist/Cards-BXvnwLq5.js +0 -1
  177. package/dist/Carousel-OpryFVUv.js +0 -1
  178. package/dist/ChainedSelect-BSMLjswV.js +0 -1
  179. package/dist/Checkbox-C8m4jCbq.js +0 -1
  180. package/dist/Checkboxes-DacWLHrb.js +0 -1
  181. package/dist/Collapse-BNe1BLza.js +0 -1
  182. package/dist/ColorPicker-Bu-Gc0dG.js +0 -1
  183. package/dist/ColumnToggler-Dt0txpR3.js +0 -1
  184. package/dist/Combo-BvTYUYUH.js +0 -1
  185. package/dist/Dialog-DIPV4_aZ.js +0 -1
  186. package/dist/Drawer-DoMG_38Z.js +0 -1
  187. package/dist/DropDownButton-Deczvc9l.js +0 -1
  188. package/dist/FieldSet-U4D0FvFM.js +0 -1
  189. package/dist/HBox-BN0oN-VJ.js +0 -1
  190. package/dist/Icon-DAUsPZQ-.js +0 -1
  191. package/dist/IconPicker-Cj7Km8sP.js +0 -1
  192. package/dist/IconSelect-B6VM6qir.js +0 -1
  193. package/dist/Image-CD2BqrS9.js +0 -1
  194. package/dist/InputCity-DmKLlwz1.js +0 -1
  195. package/dist/InputExcel-CUuKCckv.js +0 -1
  196. package/dist/InputFile-CmZchi4z.js +0 -1
  197. package/dist/InputImage-DVnobwUC.js +0 -1
  198. package/dist/InputRange-khQWegkI.js +0 -1
  199. package/dist/InputRichText-B2iCFHNT.js +0 -1
  200. package/dist/InputSubForm--4RoaGbH.js +0 -1
  201. package/dist/InputTable-D-tev-dW.js +0 -1
  202. package/dist/InputTag-DEsaQpfD.js +0 -1
  203. package/dist/InputText-BRZS9DVw.js +0 -1
  204. package/dist/InputTree-DwmE5ZVX.js +0 -1
  205. package/dist/List-B0DvFWZA.js +0 -1
  206. package/dist/Log-FYJPSSrf.js +0 -1
  207. package/dist/MatrixCheckboxes-CtcnDPnK.js +0 -1
  208. package/dist/Nav-5cFyq-Sc.js +0 -1
  209. package/dist/NestedSelect-jtpny6lv.js +0 -1
  210. package/dist/OfficeViewer-BfUW6wzL.js +0 -1
  211. package/dist/Page-wkG_9v7N.js +0 -1
  212. package/dist/Panel-BEYSCFb0.js +0 -1
  213. package/dist/Password-ofzGhp3p.js +0 -1
  214. package/dist/Picker-r4DoCAVP.js +0 -1
  215. package/dist/Remark-ja0r3wT8.js +0 -1
  216. package/dist/Select-Dk0Q_TsK.js +0 -1
  217. package/dist/Service-BJ8d1o0H.js +0 -1
  218. package/dist/Spinner-WSMpYbNE.js +0 -1
  219. package/dist/Status-BmsTJAq3.js +0 -1
  220. package/dist/Switch-DHZIMer8.js +0 -1
  221. package/dist/Table-BNyuGw_o.js +0 -1
  222. package/dist/Table2-Bg42KkGP.js +0 -1
  223. package/dist/TabsTransfer-BJf4Hvvx.js +0 -1
  224. package/dist/TabsTransferPicker-Q-MyTe1j.js +0 -1
  225. package/dist/Tasks-DKbiwma8.js +0 -1
  226. package/dist/TooltipWrapper-CeftJOeF.js +0 -1
  227. package/dist/Transfer-BlN0Xkyp.js +0 -1
  228. package/dist/TransferPicker-CWBn7A9e.js +0 -1
  229. package/dist/TreeSelect-BNT6Juqj.js +0 -1
  230. package/dist/Wizard-Bf40EE0f.js +0 -1
  231. package/dist/beneficiary-form-DEQbj_Ph.js +0 -10
  232. package/dist/esm-Bwz-vxIU.js +0 -27
  233. package/dist/esm-WMdHSo6z.js +0 -4
  234. package/dist/function-DgD667sG.js +0 -3
  235. package/dist/isEqual-BS2RhB6Q.js +0 -1
  236. package/dist/mi18n-react.esm-DB-6dM6A.js +0 -1
  237. package/dist/xor-D-wxOg18.js +0 -1
@@ -1 +1 @@
1
- import{o as e}from"./rolldown-runtime-DXzHzmmG.js";import{t}from"./react-CWkhIp2c.js";import{d as r,i as n,r as a}from"./tslib.es6-TRdqp4ac.js";import{E as l,Ur as o,it as s}from"./esm-WMdHSo6z.js";var c=/* @__PURE__ */e(t()),p=function(e){function t(t){return e.call(this,t)||this}return n(t,e),t.prototype.prepareRows=function(){var e,t,n=this.props,a=n.column,l=void 0===a?3:a,s=n.items,c=n.source,p=n.data,i=[],m=[],u=l,y=0,d=o(s||c||[],p);try{for(var h=r(d),f=h.next();!f.done;f=h.next()){var v=f.value;y+=1;var b=Math.min(v.span||1,l);u-=b;var E={label:v.label,content:v.content,span:b};u>=0?m.push(E):(i.push(m),u=l-b,m=[E]),y===d.length&&i.push(m)}}catch(w){e={error:w}}finally{try{f&&!f.done&&(t=h.return)&&t.call(h)}finally{if(e)throw e.error}}return i},t.prototype.renderRow=function(e){var t=this.props,r=t.render,n=t.contentStyle,a=t.labelStyle,o=t.separator,s=void 0===o?": ":o,p=t.mode,i=void 0===p?"table":p,m=t.data;return e.map(function(e,t){return c.createElement("tr",{key:t},e.map(function(e,t){return"table"===i?c.createElement(c.Fragment,{key:"item-".concat(t)},c.createElement("th",{style:l(a,m)},r("label",e.label)),c.createElement("td",{colSpan:e.span+e.span-1,style:l(n,m)},r("content",e.content))):c.createElement("td",{colSpan:e.span,style:l(n,m),key:"item-".concat(t)},c.createElement("span",{style:l(a,m)},r("label",e.label)),s,r("content",e.content))}))})},t.prototype.render=function(){var e=this.props,t=e.style,r=e.title,n=e.column,a=void 0===n?3:n,o=e.classnames,s=e.className,p=e.titleStyle,i=e.data,m=e.mode,u=void 0===m?"table":m,y=this.prepareRows();return c.createElement("div",{className:o("Property","Property--".concat(u),s),style:l(t,i)},c.createElement("table",null,r?c.createElement("thead",null,c.createElement("tr",null,c.createElement("th",{colSpan:"table"===u?a+a:a,style:l(p,i)},r))):null,c.createElement("tbody",null,this.renderRow(y))))},t}(c.Component),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),a([s({type:"property",autoVar:!0})],t)}(p);export{i as PropertyRenderer,p as default};
1
+ import{o as e}from"./rolldown-runtime-DXzHzmmG.js";import{t}from"./react-CWkhIp2c.js";import{d as r,i as n,r as a}from"./tslib.es6-TRdqp4ac.js";import{E as l,Ur as o,it as s}from"./esm-DMJQA23h.js";var c=/* @__PURE__ */e(t()),p=function(e){function t(t){return e.call(this,t)||this}return n(t,e),t.prototype.prepareRows=function(){var e,t,n=this.props,a=n.column,l=void 0===a?3:a,s=n.items,c=n.source,p=n.data,i=[],m=[],u=l,y=0,d=o(s||c||[],p);try{for(var h=r(d),f=h.next();!f.done;f=h.next()){var v=f.value;y+=1;var b=Math.min(v.span||1,l);u-=b;var E={label:v.label,content:v.content,span:b};u>=0?m.push(E):(i.push(m),u=l-b,m=[E]),y===d.length&&i.push(m)}}catch(w){e={error:w}}finally{try{f&&!f.done&&(t=h.return)&&t.call(h)}finally{if(e)throw e.error}}return i},t.prototype.renderRow=function(e){var t=this.props,r=t.render,n=t.contentStyle,a=t.labelStyle,o=t.separator,s=void 0===o?": ":o,p=t.mode,i=void 0===p?"table":p,m=t.data;return e.map(function(e,t){return c.createElement("tr",{key:t},e.map(function(e,t){return"table"===i?c.createElement(c.Fragment,{key:"item-".concat(t)},c.createElement("th",{style:l(a,m)},r("label",e.label)),c.createElement("td",{colSpan:e.span+e.span-1,style:l(n,m)},r("content",e.content))):c.createElement("td",{colSpan:e.span,style:l(n,m),key:"item-".concat(t)},c.createElement("span",{style:l(a,m)},r("label",e.label)),s,r("content",e.content))}))})},t.prototype.render=function(){var e=this.props,t=e.style,r=e.title,n=e.column,a=void 0===n?3:n,o=e.classnames,s=e.className,p=e.titleStyle,i=e.data,m=e.mode,u=void 0===m?"table":m,y=this.prepareRows();return c.createElement("div",{className:o("Property","Property--".concat(u),s),style:l(t,i)},c.createElement("table",null,r?c.createElement("thead",null,c.createElement("tr",null,c.createElement("th",{colSpan:"table"===u?a+a:a,style:l(p,i)},r))):null,c.createElement("tbody",null,this.renderRow(y))))},t}(c.Component),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),a([s({type:"property",autoVar:!0})],t)}(p);export{i as PropertyRenderer,p as default};
@@ -1,2 +1,2 @@
1
- import{o as e}from"./rolldown-runtime-DXzHzmmG.js";import{t}from"./react-CWkhIp2c.js";import{i as o,o as n,r}from"./tslib.es6-TRdqp4ac.js";import{$n as i,Ii as s,Xr as a,Zr as l,dt as c,it as u,qt as h,rn as d,ui as f,vn as g,vr as m}from"./esm-WMdHSo6z.js";var y=/* @__PURE__ */e(t()),p=/* @__PURE__ */e(g());function C(e,t,o){return o=B(o),`M ${B(e-o)}, ${B(t)} a ${o},${o} 0 1,0 ${2*o},0 a ${o},${o} 0 1,0 ${-2*o},0`}function $(e,t,o){e=B(e),t=B(t);const n=B(e+o),r=B(t+o);return`M ${e}, ${t} L ${n}, ${t} L ${n}, ${r} L ${e}, ${r} Z `}function E(e,t,o,n){e=B(e),t=B(t);const r=B(e+n),i=B(t+n),s=B(e+o-n),a=B(t+o-n),l=B(e+o),c=B(t+o);return`M${r} ${t}L${l} ${t}L${l} ${c}L${e} ${c}L${e} ${t}L${r} ${t}L${r} ${a}L${s} ${a}L${s} ${i}L${r} ${i}Z `}function w(e,t,o,n,r){e=B(e),t=B(t),r=B(r);const i=B(e+r),s=B(e+o-r),a=B(t+r),l=B(t+o-r),c=B(e+n),u=B(t+n),h=B(e+o-n),d=B(t+o-n),f=B(e+o),g=B(t+o),m=B(r-n/2),y=B(c+m),p=B(u+m),C=B(h-m),$=B(d-m),E=B(i+m);return`M${i} ${t}L${s} ${t}A${r} ${r} 0 0 1 ${f} ${a}L${f} ${l}A${r} ${r} 0 0 1 ${s} ${g}L${i} ${g}A${r} ${r} 0 0 1 ${e} ${l}L${e} ${a}A${r} ${r} 0 0 1 ${i} ${t}L${i} ${t}L${E} ${d}L${C} ${d}A${m} ${m} 0 0 0 ${h} ${$}L${h} ${p}A${m} ${m} 0 0 0 ${C} ${u}L${y} ${u}A${m} ${m} 0 0 0 ${c} ${p}L${c} ${$}A${m} ${m} 0 0 0 ${y} ${d}L${E} ${d}Z`}function M(e,t,o,n){const r=B(o),i=B(o-n);t=B(t),e=B(e);const s=B(t-r),a=B(t-i);return`M${e},${s} A${r},${r} 0 1,1 ${e},${B(t+r)} A${r},${r} 0 1,1 ${e},${s} M${e},${a} A${i},${i} 0 1,0 ${e},${B(t+i)} A${i},${i} 0 1,0 ${e},${a} Z`}var S,v,z={default:function(e){const{size:t,dotSize:o,borderSize:n,x:r,y:i}=e;return{eyeBorder:E(r,i,t,o*n),eyeInner:$(r+2*o,i+2*o,t-4*o)}},rounded:function(e){const{size:t,dotSize:o,borderSize:n,x:r,y:i}=e;return{eyeBorder:w(r,i,t,o*n,2*o),eyeInner:C(r+t/2,i+t/2,t/2-2*o)}},circle:function(e){const{size:t,dotSize:o,borderSize:n,x:r,y:i}=e;return{eyeBorder:M(r+t/2,i+t/2,t/2,o*n),eyeInner:C(r+t/2,i+t/2,t/2-2*o)}}},A={default:function(e){const{x:t,y:o,dotSize:n,dotScale:r,margin:i}=e;let s="";const a=n*r;return s+=$(t*n+(n-a)/2+i,o*n+(n-a)/2+i,a),s},circle:function(e){const{x:t,y:o,dotSize:n,dotScale:r,margin:i}=e;let s="",a=n/2*r;return s+=C(t*n+(n-2*a)/2+a+i,o*n+(n-2*a)/2+a+i,a),s}};(e=>{const t=class t{constructor(e,o,n,i){if(this.version=e,this.errorCorrectionLevel=o,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let s=[];for(let t=0;t<this.size;t++)s.push(!1);for(let t=0;t<this.size;t++)this.modules.push(s.slice()),this.isFunction.push(s.slice());this.drawFunctionPatterns();const a=this.addEccAndInterleave(n);if(this.drawCodewords(a),-1==i){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const o=this.getPenaltyScore();o<e&&(i=t,e=o),this.applyMask(t)}}r(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}static encodeText(o,n){const r=e.QrSegment.makeSegments(o);return t.encodeSegments(r,n)}static encodeBinary(o,n){const r=e.QrSegment.makeBytes(o);return t.encodeSegments([r],n)}static encodeSegments(e,n,i=1,a=40,l=-1,c=!0){if(!(t.MIN_VERSION<=i&&i<=a&&a<=t.MAX_VERSION)||l<-1||l>7)throw new RangeError("Invalid value");let u,h;for(u=i;;u++){const o=8*t.getNumDataCodewords(u,n),r=s.getTotalBits(e,u);if(r<=o){h=r;break}if(u>=a)throw new RangeError("Data too long")}for(const o of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])c&&h<=8*t.getNumDataCodewords(u,o)&&(n=o);let d=[];for(const t of e){o(t.mode.modeBits,4,d),o(t.numChars,t.mode.numCharCountBits(u),d);for(const e of t.getData())d.push(e)}r(d.length==h);const f=8*t.getNumDataCodewords(u,n);r(d.length<=f),o(0,Math.min(4,f-d.length),d),o(0,(8-d.length%8)%8,d),r(d.length%8==0);for(let t=236;d.length<f;t^=253)o(t,8,d);let g=[];for(;8*g.length<d.length;)g.push(0);return d.forEach((e,t)=>g[t>>>3]|=e<<7-(7&t)),new t(u,n,g,l)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}drawFunctionPatterns(){for(let o=0;o<this.size;o++)this.setFunctionModule(6,o,o%2==0),this.setFunctionModule(o,6,o%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let o=0;o<t;o++)for(let n=0;n<t;n++)0==o&&0==n||0==o&&n==t-1||o==t-1&&0==n||this.drawAlignmentPattern(e[o],e[n]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let o=t;for(let n=0;n<10;n++)o=o<<1^1335*(o>>>9);const i=21522^(t<<10|o);r(i>>>15==0);for(let r=0;r<=5;r++)this.setFunctionModule(8,r,n(i,r));this.setFunctionModule(8,7,n(i,6)),this.setFunctionModule(8,8,n(i,7)),this.setFunctionModule(7,8,n(i,8));for(let r=9;r<15;r++)this.setFunctionModule(14-r,8,n(i,r));for(let r=0;r<8;r++)this.setFunctionModule(this.size-1-r,8,n(i,r));for(let r=8;r<15;r++)this.setFunctionModule(8,this.size-15+r,n(i,r));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let o=0;o<12;o++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;r(t>>>18==0);for(let o=0;o<18;o++){const e=n(t,o),r=this.size-11+o%3,i=Math.floor(o/3);this.setFunctionModule(r,i,e),this.setFunctionModule(i,r,e)}}drawFinderPattern(e,t){for(let o=-4;o<=4;o++)for(let n=-4;n<=4;n++){const r=Math.max(Math.abs(n),Math.abs(o)),i=e+n,s=t+o;0<=i&&i<this.size&&0<=s&&s<this.size&&this.setFunctionModule(i,s,2!=r&&4!=r)}}drawAlignmentPattern(e,t){for(let o=-2;o<=2;o++)for(let n=-2;n<=2;n++)this.setFunctionModule(e+n,t+o,1!=Math.max(Math.abs(n),Math.abs(o)))}setFunctionModule(e,t,o){this.modules[t][e]=o,this.isFunction[t][e]=!0}addEccAndInterleave(e){const o=this.version,n=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(o,n))throw new RangeError("Invalid argument");const i=t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][o],s=t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][o],a=Math.floor(t.getNumRawDataModules(o)/8),l=i-a%i,c=Math.floor(a/i);let u=[];const h=t.reedSolomonComputeDivisor(s);for(let r=0,f=0;r<i;r++){let o=e.slice(f,f+c-s+(r<l?0:1));f+=o.length;const n=t.reedSolomonComputeRemainder(o,h);r<l&&o.push(0),u.push(o.concat(n))}let d=[];for(let t=0;t<u[0].length;t++)u.forEach((e,o)=>{(t!=c-s||o>=l)&&d.push(e[t])});return r(d.length==a),d}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let o=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){const s=t-i,a=t+1&2?r:this.size-1-r;!this.isFunction[a][s]&&o<8*e.length&&(this.modules[a][s]=n(e[o>>>3],7-(7&o)),o++)}}r(o==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let o=0;o<this.size;o++){let n;switch(e){case 0:n=(o+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=o%3==0;break;case 3:n=(o+t)%3==0;break;case 4:n=(Math.floor(o/3)+Math.floor(t/2))%2==0;break;case 5:n=o*t%2+o*t%3==0;break;case 6:n=(o*t%2+o*t%3)%2==0;break;case 7:n=((o+t)%2+o*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][o]&&n&&(this.modules[t][o]=!this.modules[t][o])}}getPenaltyScore(){let e=0;for(let r=0;r<this.size;r++){let o=!1,n=0,i=[0,0,0,0,0,0,0];for(let s=0;s<this.size;s++)this.modules[r][s]==o?(n++,5==n?e+=t.PENALTY_N1:n>5&&e++):(this.finderPenaltyAddHistory(n,i),o||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),o=this.modules[r][s],n=1);e+=this.finderPenaltyTerminateAndCount(o,n,i)*t.PENALTY_N3}for(let r=0;r<this.size;r++){let o=!1,n=0,i=[0,0,0,0,0,0,0];for(let s=0;s<this.size;s++)this.modules[s][r]==o?(n++,5==n?e+=t.PENALTY_N1:n>5&&e++):(this.finderPenaltyAddHistory(n,i),o||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),o=this.modules[s][r],n=1);e+=this.finderPenaltyTerminateAndCount(o,n,i)*t.PENALTY_N3}for(let r=0;r<this.size-1;r++)for(let o=0;o<this.size-1;o++){const n=this.modules[r][o];n==this.modules[r][o+1]&&n==this.modules[r+1][o]&&n==this.modules[r+1][o+1]&&(e+=t.PENALTY_N2)}let o=0;for(const t of this.modules)o=t.reduce((e,t)=>e+(t?1:0),o);const n=this.size*this.size,i=Math.ceil(Math.abs(20*o-10*n)/n)-1;return r(0<=i&&i<=9),e+=i*t.PENALTY_N4,r(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=2*Math.floor((8*this.version+3*e+5)/(4*e-4));let o=[6];for(let n=this.size-7;o.length<e;n-=t)o.splice(1,0,n);return o}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let o=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;o-=(25*t-10)*t-55,e>=7&&(o-=36)}return r(208<=o&&o<=29648),o}static getNumDataCodewords(e,o){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[o.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[o.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let o=[];for(let t=0;t<e-1;t++)o.push(0);o.push(1);let n=1;for(let r=0;r<e;r++){for(let e=0;e<o.length;e++)o[e]=t.reedSolomonMultiply(o[e],n),e+1<o.length&&(o[e]^=o[e+1]);n=t.reedSolomonMultiply(n,2)}return o}static reedSolomonComputeRemainder(e,o){let n=o.map(e=>0);for(const r of e){const e=r^n.shift();n.push(0),o.forEach((o,r)=>n[r]^=t.reedSolomonMultiply(o,e))}return n}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");let o=0;for(let n=7;n>=0;n--)o=o<<1^285*(o>>>7),o^=(t>>>n&1)*e;return r(o>>>8==0),o}finderPenaltyCountPatterns(e){const t=e[1];r(t<=3*this.size);const o=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(o&&e[0]>=4*t&&e[6]>=t?1:0)+(o&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,o){return e&&(this.finderPenaltyAddHistory(t,o),t=0),t+=this.size,this.finderPenaltyAddHistory(t,o),this.finderPenaltyCountPatterns(o)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};function o(e,t,o){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(let n=t-1;n>=0;n--)o.push(e>>>n&1)}function n(e,t){return!!(e>>>t&1)}function r(e){if(!e)throw new Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;const i=class e{constructor(e,t,o){if(this.mode=e,this.numChars=t,this.bitData=o,t<0)throw new RangeError("Invalid argument");this.bitData=o.slice()}static makeBytes(t){let n=[];for(const e of t)o(e,8,n);return new e(e.Mode.BYTE,t.length,n)}static makeNumeric(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");let n=[];for(let e=0;e<t.length;){const r=Math.min(t.length-e,3);o(parseInt(t.substring(e,e+r),10),3*r+1,n),e+=r}return new e(e.Mode.NUMERIC,t.length,n)}static makeAlphanumeric(t){if(!e.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");let n,r=[];for(n=0;n+2<=t.length;n+=2){let i=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n));i+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n+1)),o(i,11,r)}return n<t.length&&o(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n)),6,r),new e(e.Mode.ALPHANUMERIC,t.length,r)}static makeSegments(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let n=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)o(t,8,n);else if(t<16384)o(2,2,n),o(t,14,n);else{if(!(t<1e6))throw new RangeError("ECI assignment value out of range");o(6,3,n),o(t,21,n)}return new e(e.Mode.ECI,0,n)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let o=0;for(const n of e){const e=n.mode.numCharCountBits(t);if(n.numChars>=1<<e)return 1/0;o+=4+e+n.bitData.length}return o}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let o=0;o<e.length;o++)"%"!=e.charAt(o)?t.push(e.charCodeAt(o)):(t.push(parseInt(e.substring(o+1,o+3),16)),o+=2);return t}};i.NUMERIC_REGEX=/^[0-9]*$/,i.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,i.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let s=i;e.QrSegment=s})(S||(S={})),(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),e.Ecc=t})((v=S||(S={})).QrCode||(v.QrCode={})),(e=>{(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]),e.Mode=t})(e.QrSegment||(e.QrSegment={}))})(S||(S={}));var R=S,N=R.QrCode,I={L:R.QrCode.Ecc.LOW,M:R.QrCode.Ecc.MEDIUM,Q:R.QrCode.Ecc.QUARTILE,H:R.QrCode.Ecc.HIGH};function L(e,t,o){const n=e.length;return t<8&&o<8||t<8&&o>n-8||t>n-8&&o<8}function P(e){const{modules:t,size:o,dotSize:n,margin:r=0,eyeType:i="default",eyeBorderSize:s="default",pointType:a="default",customSize:l,pointSize:c="default"}=e,u=function(e){return function(e){const t={default:1,sm:.8,xs:.5};return o=>{const{modules:n,dotSize:r,pointSize:i,customSize:s,margin:a}=o;let l="";for(let c=0;c<n.length;c++)for(let o=0;o<n.length;o++)if(n[c][o]&&!L(n,o,c)){let n=s[c][o]||1;l+=e({x:o,y:c,dotSize:r,dotScale:t[i]*n,margin:a})}return l}}(A[e])}(a)({margin:r,modules:t,dotSize:n,pointSize:c,customSize:l}),{eyeBorder:h,eyeInner:d}=function(e){return function(e){const t={default:1,sm:.8,xs:.5};return o=>{const{size:n,dotSize:r,borderSize:i,margin:s}=o,{eyeSize:a,positions:l}=function(e,t,o){const n=7*t;return{eyeSize:n,positions:[{x:o,y:o},{x:o,y:e-n-o},{x:e-n-o,y:o}]}}(n,r,s);let c="",u="";for(const h of l){const{eyeBorder:o,eyeInner:n}=e({size:a,dotSize:r,borderSize:t[i],x:h.x,y:h.y});c+=o,u+=n}return{eyeBorder:c,eyeInner:u}}}(z[e])}(i)({margin:r,dotSize:n,borderSize:s,size:o});return{points:u,eyeBorder:h,eyeInner:d}}function B(e,t=2){return Number(e.toFixed(t))}function x(e){const{config:t,styleConfig:o,logoConfig:n,value:r}=e,{size:i=200,margin:s=0,eyeType:a,eyeBorderSize:l,pointType:c,pointSize:u,pointSizeRandom:h}=o||{},d=y.useMemo(()=>function(e,t){const{level:o="L",minVersion:n=2,maxVersion:r,mask:i,boostLevel:s}=t||{},a=R.QrSegment.makeSegments(e),l=N.encodeSegments(a,I[o],n,r,i,s),c=[];for(let u=0;u<l.size;u++){c.push([]);for(let e=0;e<l.size;e++)c[u].push(l.getModule(e,u))}return c}(r,t),[r,t]),f=y.useMemo(()=>B((i-2*s)/d.length),[d,i,s]),g=y.useMemo(()=>{let e=[];for(let t=0;t<d.length;t++){e.push([]);for(let o=0;o<d.length;o++)h?e[t].push(Math.random()<.5?1:.8):e[t].push(1)}return e},[d,h]),m=y.useMemo(()=>P({modules:d,margin:s,size:i,dotSize:f,eyeType:a,eyeBorderSize:l,pointType:c,pointSize:u,customSize:g}),[d,f,o]);return{logo:y.useMemo(()=>{if(!n)return;let e=i-2*s,{src:t,width:o=e/5,height:r=e/5,x:a=e/2-o/2+s,y:l=e/2-r/2+s}=n||{};const c=d.length,u=Array.from({length:c},(e,t)=>t*f+s),h=u[u.findIndex(e=>e>a)-2]-.5||a,g=u[u.findIndex(e=>e>l)-2]-.5||l;return{src:t,width:o,height:r,x:a,y:l,bg:{x:h,y:g,width:o+2*(a-h),height:r+2*(l-g)}}},[d,f,s,n]),path:m}}function b(e){const{value:t,config:o,styleConfig:n,logoConfig:r,className:i}=e,{size:s=200,margin:a=0,color:l="#000",bgColor:c="#fff",eyeBorderColor:u,eyeInnerColor:h}=n||{},{path:d,logo:f}=x({config:o,styleConfig:n,logoConfig:r,value:t}),{src:g,x:m,y:p,width:C,height:$,bg:E}=f||{};/* @__PURE__ */
1
+ import{o as e}from"./rolldown-runtime-DXzHzmmG.js";import{t}from"./react-CWkhIp2c.js";import{i as o,o as n,r}from"./tslib.es6-TRdqp4ac.js";import{$n as i,Ii as s,Xr as a,Zr as l,dt as c,it as u,qt as h,rn as d,ui as f,vn as g,vr as m}from"./esm-DMJQA23h.js";var y=/* @__PURE__ */e(t()),p=/* @__PURE__ */e(g());function C(e,t,o){return o=B(o),`M ${B(e-o)}, ${B(t)} a ${o},${o} 0 1,0 ${2*o},0 a ${o},${o} 0 1,0 ${-2*o},0`}function $(e,t,o){e=B(e),t=B(t);const n=B(e+o),r=B(t+o);return`M ${e}, ${t} L ${n}, ${t} L ${n}, ${r} L ${e}, ${r} Z `}function E(e,t,o,n){e=B(e),t=B(t);const r=B(e+n),i=B(t+n),s=B(e+o-n),a=B(t+o-n),l=B(e+o),c=B(t+o);return`M${r} ${t}L${l} ${t}L${l} ${c}L${e} ${c}L${e} ${t}L${r} ${t}L${r} ${a}L${s} ${a}L${s} ${i}L${r} ${i}Z `}function w(e,t,o,n,r){e=B(e),t=B(t),r=B(r);const i=B(e+r),s=B(e+o-r),a=B(t+r),l=B(t+o-r),c=B(e+n),u=B(t+n),h=B(e+o-n),d=B(t+o-n),f=B(e+o),g=B(t+o),m=B(r-n/2),y=B(c+m),p=B(u+m),C=B(h-m),$=B(d-m),E=B(i+m);return`M${i} ${t}L${s} ${t}A${r} ${r} 0 0 1 ${f} ${a}L${f} ${l}A${r} ${r} 0 0 1 ${s} ${g}L${i} ${g}A${r} ${r} 0 0 1 ${e} ${l}L${e} ${a}A${r} ${r} 0 0 1 ${i} ${t}L${i} ${t}L${E} ${d}L${C} ${d}A${m} ${m} 0 0 0 ${h} ${$}L${h} ${p}A${m} ${m} 0 0 0 ${C} ${u}L${y} ${u}A${m} ${m} 0 0 0 ${c} ${p}L${c} ${$}A${m} ${m} 0 0 0 ${y} ${d}L${E} ${d}Z`}function M(e,t,o,n){const r=B(o),i=B(o-n);t=B(t),e=B(e);const s=B(t-r),a=B(t-i);return`M${e},${s} A${r},${r} 0 1,1 ${e},${B(t+r)} A${r},${r} 0 1,1 ${e},${s} M${e},${a} A${i},${i} 0 1,0 ${e},${B(t+i)} A${i},${i} 0 1,0 ${e},${a} Z`}var S,v,z={default:function(e){const{size:t,dotSize:o,borderSize:n,x:r,y:i}=e;return{eyeBorder:E(r,i,t,o*n),eyeInner:$(r+2*o,i+2*o,t-4*o)}},rounded:function(e){const{size:t,dotSize:o,borderSize:n,x:r,y:i}=e;return{eyeBorder:w(r,i,t,o*n,2*o),eyeInner:C(r+t/2,i+t/2,t/2-2*o)}},circle:function(e){const{size:t,dotSize:o,borderSize:n,x:r,y:i}=e;return{eyeBorder:M(r+t/2,i+t/2,t/2,o*n),eyeInner:C(r+t/2,i+t/2,t/2-2*o)}}},A={default:function(e){const{x:t,y:o,dotSize:n,dotScale:r,margin:i}=e;let s="";const a=n*r;return s+=$(t*n+(n-a)/2+i,o*n+(n-a)/2+i,a),s},circle:function(e){const{x:t,y:o,dotSize:n,dotScale:r,margin:i}=e;let s="",a=n/2*r;return s+=C(t*n+(n-2*a)/2+a+i,o*n+(n-2*a)/2+a+i,a),s}};(e=>{const t=class t{constructor(e,o,n,i){if(this.version=e,this.errorCorrectionLevel=o,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let s=[];for(let t=0;t<this.size;t++)s.push(!1);for(let t=0;t<this.size;t++)this.modules.push(s.slice()),this.isFunction.push(s.slice());this.drawFunctionPatterns();const a=this.addEccAndInterleave(n);if(this.drawCodewords(a),-1==i){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const o=this.getPenaltyScore();o<e&&(i=t,e=o),this.applyMask(t)}}r(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}static encodeText(o,n){const r=e.QrSegment.makeSegments(o);return t.encodeSegments(r,n)}static encodeBinary(o,n){const r=e.QrSegment.makeBytes(o);return t.encodeSegments([r],n)}static encodeSegments(e,n,i=1,a=40,l=-1,c=!0){if(!(t.MIN_VERSION<=i&&i<=a&&a<=t.MAX_VERSION)||l<-1||l>7)throw new RangeError("Invalid value");let u,h;for(u=i;;u++){const o=8*t.getNumDataCodewords(u,n),r=s.getTotalBits(e,u);if(r<=o){h=r;break}if(u>=a)throw new RangeError("Data too long")}for(const o of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])c&&h<=8*t.getNumDataCodewords(u,o)&&(n=o);let d=[];for(const t of e){o(t.mode.modeBits,4,d),o(t.numChars,t.mode.numCharCountBits(u),d);for(const e of t.getData())d.push(e)}r(d.length==h);const f=8*t.getNumDataCodewords(u,n);r(d.length<=f),o(0,Math.min(4,f-d.length),d),o(0,(8-d.length%8)%8,d),r(d.length%8==0);for(let t=236;d.length<f;t^=253)o(t,8,d);let g=[];for(;8*g.length<d.length;)g.push(0);return d.forEach((e,t)=>g[t>>>3]|=e<<7-(7&t)),new t(u,n,g,l)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}drawFunctionPatterns(){for(let o=0;o<this.size;o++)this.setFunctionModule(6,o,o%2==0),this.setFunctionModule(o,6,o%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let o=0;o<t;o++)for(let n=0;n<t;n++)0==o&&0==n||0==o&&n==t-1||o==t-1&&0==n||this.drawAlignmentPattern(e[o],e[n]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let o=t;for(let n=0;n<10;n++)o=o<<1^1335*(o>>>9);const i=21522^(t<<10|o);r(i>>>15==0);for(let r=0;r<=5;r++)this.setFunctionModule(8,r,n(i,r));this.setFunctionModule(8,7,n(i,6)),this.setFunctionModule(8,8,n(i,7)),this.setFunctionModule(7,8,n(i,8));for(let r=9;r<15;r++)this.setFunctionModule(14-r,8,n(i,r));for(let r=0;r<8;r++)this.setFunctionModule(this.size-1-r,8,n(i,r));for(let r=8;r<15;r++)this.setFunctionModule(8,this.size-15+r,n(i,r));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let o=0;o<12;o++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;r(t>>>18==0);for(let o=0;o<18;o++){const e=n(t,o),r=this.size-11+o%3,i=Math.floor(o/3);this.setFunctionModule(r,i,e),this.setFunctionModule(i,r,e)}}drawFinderPattern(e,t){for(let o=-4;o<=4;o++)for(let n=-4;n<=4;n++){const r=Math.max(Math.abs(n),Math.abs(o)),i=e+n,s=t+o;0<=i&&i<this.size&&0<=s&&s<this.size&&this.setFunctionModule(i,s,2!=r&&4!=r)}}drawAlignmentPattern(e,t){for(let o=-2;o<=2;o++)for(let n=-2;n<=2;n++)this.setFunctionModule(e+n,t+o,1!=Math.max(Math.abs(n),Math.abs(o)))}setFunctionModule(e,t,o){this.modules[t][e]=o,this.isFunction[t][e]=!0}addEccAndInterleave(e){const o=this.version,n=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(o,n))throw new RangeError("Invalid argument");const i=t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][o],s=t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][o],a=Math.floor(t.getNumRawDataModules(o)/8),l=i-a%i,c=Math.floor(a/i);let u=[];const h=t.reedSolomonComputeDivisor(s);for(let r=0,f=0;r<i;r++){let o=e.slice(f,f+c-s+(r<l?0:1));f+=o.length;const n=t.reedSolomonComputeRemainder(o,h);r<l&&o.push(0),u.push(o.concat(n))}let d=[];for(let t=0;t<u[0].length;t++)u.forEach((e,o)=>{(t!=c-s||o>=l)&&d.push(e[t])});return r(d.length==a),d}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let o=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){const s=t-i,a=t+1&2?r:this.size-1-r;!this.isFunction[a][s]&&o<8*e.length&&(this.modules[a][s]=n(e[o>>>3],7-(7&o)),o++)}}r(o==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let o=0;o<this.size;o++){let n;switch(e){case 0:n=(o+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=o%3==0;break;case 3:n=(o+t)%3==0;break;case 4:n=(Math.floor(o/3)+Math.floor(t/2))%2==0;break;case 5:n=o*t%2+o*t%3==0;break;case 6:n=(o*t%2+o*t%3)%2==0;break;case 7:n=((o+t)%2+o*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][o]&&n&&(this.modules[t][o]=!this.modules[t][o])}}getPenaltyScore(){let e=0;for(let r=0;r<this.size;r++){let o=!1,n=0,i=[0,0,0,0,0,0,0];for(let s=0;s<this.size;s++)this.modules[r][s]==o?(n++,5==n?e+=t.PENALTY_N1:n>5&&e++):(this.finderPenaltyAddHistory(n,i),o||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),o=this.modules[r][s],n=1);e+=this.finderPenaltyTerminateAndCount(o,n,i)*t.PENALTY_N3}for(let r=0;r<this.size;r++){let o=!1,n=0,i=[0,0,0,0,0,0,0];for(let s=0;s<this.size;s++)this.modules[s][r]==o?(n++,5==n?e+=t.PENALTY_N1:n>5&&e++):(this.finderPenaltyAddHistory(n,i),o||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),o=this.modules[s][r],n=1);e+=this.finderPenaltyTerminateAndCount(o,n,i)*t.PENALTY_N3}for(let r=0;r<this.size-1;r++)for(let o=0;o<this.size-1;o++){const n=this.modules[r][o];n==this.modules[r][o+1]&&n==this.modules[r+1][o]&&n==this.modules[r+1][o+1]&&(e+=t.PENALTY_N2)}let o=0;for(const t of this.modules)o=t.reduce((e,t)=>e+(t?1:0),o);const n=this.size*this.size,i=Math.ceil(Math.abs(20*o-10*n)/n)-1;return r(0<=i&&i<=9),e+=i*t.PENALTY_N4,r(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=2*Math.floor((8*this.version+3*e+5)/(4*e-4));let o=[6];for(let n=this.size-7;o.length<e;n-=t)o.splice(1,0,n);return o}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let o=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;o-=(25*t-10)*t-55,e>=7&&(o-=36)}return r(208<=o&&o<=29648),o}static getNumDataCodewords(e,o){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[o.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[o.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let o=[];for(let t=0;t<e-1;t++)o.push(0);o.push(1);let n=1;for(let r=0;r<e;r++){for(let e=0;e<o.length;e++)o[e]=t.reedSolomonMultiply(o[e],n),e+1<o.length&&(o[e]^=o[e+1]);n=t.reedSolomonMultiply(n,2)}return o}static reedSolomonComputeRemainder(e,o){let n=o.map(e=>0);for(const r of e){const e=r^n.shift();n.push(0),o.forEach((o,r)=>n[r]^=t.reedSolomonMultiply(o,e))}return n}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");let o=0;for(let n=7;n>=0;n--)o=o<<1^285*(o>>>7),o^=(t>>>n&1)*e;return r(o>>>8==0),o}finderPenaltyCountPatterns(e){const t=e[1];r(t<=3*this.size);const o=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(o&&e[0]>=4*t&&e[6]>=t?1:0)+(o&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,o){return e&&(this.finderPenaltyAddHistory(t,o),t=0),t+=this.size,this.finderPenaltyAddHistory(t,o),this.finderPenaltyCountPatterns(o)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};function o(e,t,o){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(let n=t-1;n>=0;n--)o.push(e>>>n&1)}function n(e,t){return!!(e>>>t&1)}function r(e){if(!e)throw new Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;const i=class e{constructor(e,t,o){if(this.mode=e,this.numChars=t,this.bitData=o,t<0)throw new RangeError("Invalid argument");this.bitData=o.slice()}static makeBytes(t){let n=[];for(const e of t)o(e,8,n);return new e(e.Mode.BYTE,t.length,n)}static makeNumeric(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");let n=[];for(let e=0;e<t.length;){const r=Math.min(t.length-e,3);o(parseInt(t.substring(e,e+r),10),3*r+1,n),e+=r}return new e(e.Mode.NUMERIC,t.length,n)}static makeAlphanumeric(t){if(!e.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");let n,r=[];for(n=0;n+2<=t.length;n+=2){let i=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n));i+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n+1)),o(i,11,r)}return n<t.length&&o(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n)),6,r),new e(e.Mode.ALPHANUMERIC,t.length,r)}static makeSegments(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let n=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)o(t,8,n);else if(t<16384)o(2,2,n),o(t,14,n);else{if(!(t<1e6))throw new RangeError("ECI assignment value out of range");o(6,3,n),o(t,21,n)}return new e(e.Mode.ECI,0,n)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let o=0;for(const n of e){const e=n.mode.numCharCountBits(t);if(n.numChars>=1<<e)return 1/0;o+=4+e+n.bitData.length}return o}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let o=0;o<e.length;o++)"%"!=e.charAt(o)?t.push(e.charCodeAt(o)):(t.push(parseInt(e.substring(o+1,o+3),16)),o+=2);return t}};i.NUMERIC_REGEX=/^[0-9]*$/,i.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,i.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let s=i;e.QrSegment=s})(S||(S={})),(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),e.Ecc=t})((v=S||(S={})).QrCode||(v.QrCode={})),(e=>{(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]),e.Mode=t})(e.QrSegment||(e.QrSegment={}))})(S||(S={}));var R=S,N=R.QrCode,I={L:R.QrCode.Ecc.LOW,M:R.QrCode.Ecc.MEDIUM,Q:R.QrCode.Ecc.QUARTILE,H:R.QrCode.Ecc.HIGH};function L(e,t,o){const n=e.length;return t<8&&o<8||t<8&&o>n-8||t>n-8&&o<8}function P(e){const{modules:t,size:o,dotSize:n,margin:r=0,eyeType:i="default",eyeBorderSize:s="default",pointType:a="default",customSize:l,pointSize:c="default"}=e,u=function(e){return function(e){const t={default:1,sm:.8,xs:.5};return o=>{const{modules:n,dotSize:r,pointSize:i,customSize:s,margin:a}=o;let l="";for(let c=0;c<n.length;c++)for(let o=0;o<n.length;o++)if(n[c][o]&&!L(n,o,c)){let n=s[c][o]||1;l+=e({x:o,y:c,dotSize:r,dotScale:t[i]*n,margin:a})}return l}}(A[e])}(a)({margin:r,modules:t,dotSize:n,pointSize:c,customSize:l}),{eyeBorder:h,eyeInner:d}=function(e){return function(e){const t={default:1,sm:.8,xs:.5};return o=>{const{size:n,dotSize:r,borderSize:i,margin:s}=o,{eyeSize:a,positions:l}=function(e,t,o){const n=7*t;return{eyeSize:n,positions:[{x:o,y:o},{x:o,y:e-n-o},{x:e-n-o,y:o}]}}(n,r,s);let c="",u="";for(const h of l){const{eyeBorder:o,eyeInner:n}=e({size:a,dotSize:r,borderSize:t[i],x:h.x,y:h.y});c+=o,u+=n}return{eyeBorder:c,eyeInner:u}}}(z[e])}(i)({margin:r,dotSize:n,borderSize:s,size:o});return{points:u,eyeBorder:h,eyeInner:d}}function B(e,t=2){return Number(e.toFixed(t))}function x(e){const{config:t,styleConfig:o,logoConfig:n,value:r}=e,{size:i=200,margin:s=0,eyeType:a,eyeBorderSize:l,pointType:c,pointSize:u,pointSizeRandom:h}=o||{},d=y.useMemo(()=>function(e,t){const{level:o="L",minVersion:n=2,maxVersion:r,mask:i,boostLevel:s}=t||{},a=R.QrSegment.makeSegments(e),l=N.encodeSegments(a,I[o],n,r,i,s),c=[];for(let u=0;u<l.size;u++){c.push([]);for(let e=0;e<l.size;e++)c[u].push(l.getModule(e,u))}return c}(r,t),[r,t]),f=y.useMemo(()=>B((i-2*s)/d.length),[d,i,s]),g=y.useMemo(()=>{let e=[];for(let t=0;t<d.length;t++){e.push([]);for(let o=0;o<d.length;o++)h?e[t].push(Math.random()<.5?1:.8):e[t].push(1)}return e},[d,h]),m=y.useMemo(()=>P({modules:d,margin:s,size:i,dotSize:f,eyeType:a,eyeBorderSize:l,pointType:c,pointSize:u,customSize:g}),[d,f,o]);return{logo:y.useMemo(()=>{if(!n)return;let e=i-2*s,{src:t,width:o=e/5,height:r=e/5,x:a=e/2-o/2+s,y:l=e/2-r/2+s}=n||{};const c=d.length,u=Array.from({length:c},(e,t)=>t*f+s),h=u[u.findIndex(e=>e>a)-2]-.5||a,g=u[u.findIndex(e=>e>l)-2]-.5||l;return{src:t,width:o,height:r,x:a,y:l,bg:{x:h,y:g,width:o+2*(a-h),height:r+2*(l-g)}}},[d,f,s,n]),path:m}}function b(e){const{value:t,config:o,styleConfig:n,logoConfig:r,className:i}=e,{size:s=200,margin:a=0,color:l="#000",bgColor:c="#fff",eyeBorderColor:u,eyeInnerColor:h}=n||{},{path:d,logo:f}=x({config:o,styleConfig:n,logoConfig:r,value:t}),{src:g,x:m,y:p,width:C,height:$,bg:E}=f||{};/* @__PURE__ */
2
2
  return y.createElement("svg",{width:s,height:s,viewBox:`0 0 ${s} ${s}`,style:{backgroundColor:c},className:"qr-container qr-svg"+(i?` ${i}`:"")},/* @__PURE__ */y.createElement("g",{fill:l},/* @__PURE__ */y.createElement("path",{fill:u||l,d:d.eyeBorder}),/* @__PURE__ */y.createElement("path",{fill:h||l,d:d.eyeInner}),/* @__PURE__ */y.createElement("path",{d:d.points}),g&&/* @__PURE__ */y.createElement(y.Fragment,null,/* @__PURE__ */y.createElement("rect",{fill:c,x:null==E?void 0:E.x,y:null==E?void 0:E.y,width:null==E?void 0:E.width,height:null==E?void 0:E.height}),/* @__PURE__ */y.createElement("image",{href:g,width:C,height:$,x:m,y:p}))))}function _(e){const{value:t,config:o,styleConfig:n,logoConfig:r,className:i}=e,{size:s=200,bgColor:a}=n||{},{path:l,logo:c}=x({config:o,styleConfig:n,logoConfig:r,value:t}),u=y.useRef(null);return(0,y.useEffect)(()=>{if(l&&u.current){const e=u.current.getContext("2d");(function(e){const{ctx:t,path:o,styleConfig:n}=e,{color:r="#000",bgColor:i="#fff",eyeBorderColor:s,eyeInnerColor:a}=n||{};t.clearRect(0,0,t.canvas.width,t.canvas.height),t.fillStyle=i,t.fillRect(0,0,t.canvas.width,t.canvas.height),t.fillStyle=s||r,t.fill(new Path2D(o.eyeBorder)),t.fillStyle=a||r,t.fill(new Path2D(o.eyeInner)),t.fillStyle=r,t.fill(new Path2D(o.points))})({ctx:e,path:l,styleConfig:n}),c&&function({ctx:e,bgColor:t="#fff",logo:o}){const{src:n,width:r,height:i,x:s,y:a,bg:l}=o||{};if(!n)return;const c=new Image;c.src=n,c.onload=()=>{e.fillStyle=t,e.fillRect(l.x,l.y,l.width,l.height);const o=c.width/c.height;let n=r,u=i;o>1?u=r/o:n=i*o,e.drawImage(c,s+(r-n)/2,a+(i-u)/2,n,u)}}({ctx:e,bgColor:a,logo:c})}},[l,r,n]),/* @__PURE__ */y.createElement("canvas",{width:s,height:s,ref:u,className:"qr-container qr-canvas"+(i?` ${i}`:"")})}function T(e){const{mode:t="canvas"}=e;return"svg"===t?/* @__PURE__ */y.createElement(b,{...e}):/* @__PURE__ */y.createElement(_,{...e})}var O=/* @__PURE__ */e(h()),F=d();function k(e,t){return(0,F.saveAs)(e,t)}var D=function(e){function t(t){var o=e.call(this,t)||this;return o.ref=y.createRef(),o}return o(t,e),t.prototype.getImageSettings=function(){var e=this.props,t=e.imageSettings,o=e.data;if(t&&f(t)&&t.src&&"string"==typeof t.src)return l(t.src)&&(t.src=s(t.src,o,"| raw")),(0,O.default)(t,function(e,t){return~["width","height","x","y"].indexOf(t)?m(e)?Number(e):null:e})},t.prototype.doAction=function(e,t,o,n){var r,i=this.props.codeSize;if("saveAs"===(null==e?void 0:e.actionType)&&(null===(r=this.ref)||void 0===r?void 0:r.current))if("svg"===this.props.mode){var s=this.ref.current.querySelector("svg");if(s){var a='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" height="'.concat(i,'" width="').concat(i,'" viewBox="').concat(s.getAttribute("viewBox")||"0 0 37 37",'">\n ').concat(s.innerHTML,"\n </svg>");k(new Blob([a],{type:"image/svg+xml"}),(null==n?void 0:n.name)||"qr-code.svg")}}else{var l=this.ref.current.querySelector("canvas");l&&l.toBlob(function(e){e&&k(e,(null==n?void 0:n.name)?n.name.replace(/\.svg$/,".png"):"qr-code.png")},"image/png")}},t.prototype.render=function(){var e=this.props,t=e.className,o=e.style,n=e.qrcodeClassName,r=e.codeSize,s=e.backgroundColor,l=e.foregroundColor,c=e.placeholder,u=e.level,h=e.defaultValue,d=e.data,f=e.mode,g=e.eyeType,m=e.eyeBorderColor,C=e.eyeBorderSize,$=e.eyeInnerColor,E=e.pointType,w=e.pointSize,M=e.pointSizeRandom,S=e.translate,v=e.classPrefix,z=i(this.props,function(){return a(h,d,"| raw")||void 0});return y.createElement("div",{className:(0,p.default)("".concat(v,"QrCode"),t),style:o,ref:this.ref},z?z.length>2953?y.createElement("span",{className:"text-danger"},S("QRCode.tooLong",{max:2953})):y.createElement(T,{className:n,value:z,config:{level:u||"L",minVersion:2,boostLevel:!0},styleConfig:{size:r,bgColor:s,color:l,eyeType:g,eyeBorderColor:m,eyeBorderSize:C,eyeInnerColor:$,pointType:E,pointSize:w,pointSizeRandom:M},logoConfig:this.getImageSettings(),mode:f}):y.createElement("span",{className:"".concat(v,"QrCode--placeholder")},c))},t.defaultProps={codeSize:128,qrcodeClassName:"",backgroundColor:"#fff",foregroundColor:"#000",level:"L",placeholder:"-",mode:"canvas"},t}(y.Component),U=function(e){function t(t,o){var n=e.call(this,t)||this;return o.registerComponent(n),n}return o(t,e),t.prototype.componentWillUnmount=function(){var t;null===(t=e.prototype.componentWillUnmount)||void 0===t||t.call(this),this.context.unRegisterComponent(this)},t.contextType=c,r([u({type:"qrcode",alias:["qr-code"],name:"qrcode"}),n("design:paramtypes",[Object,Object])],t)}(D);export{U as QRCodeRenderer,D as default};
@@ -1 +1 @@
1
- import{o as e}from"./rolldown-runtime-DXzHzmmG.js";import{t}from"./react-CWkhIp2c.js";import{a as n,i as a,n as r,o,r as i}from"./tslib.es6-TRdqp4ac.js";import{F as s,Nn as l,ht as p,vi as u,vn as d}from"./esm-WMdHSo6z.js";import{Nt as c,R as h}from"./esm-Bwz-vxIU.js";import{t as v}from"./StaticHoc-DlQH6vI9.js";var m=/* @__PURE__ */e(t()),f=/* @__PURE__ */e(d()),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.doAction=function(e,t,n){var a,r,o=this.props,i=o.resetValue,s=o.onChange,l=o.formStore,p=o.store,d=o.name,c=null==e?void 0:e.actionType;if("clear"===c)s("");else if("reset"===c){var h=null!==(r=u(null!==(a=null==l?void 0:l.pristine)&&void 0!==a?a:null==p?void 0:p.pristine,d))&&void 0!==r?r:i;s(null!=h?h:"")}},t.prototype.dispatchChangeEvent=function(e){return void 0===e&&(e={}),r(this,void 0,void 0,function(){var t,a,r,o,i,s,l;return n(this,function(n){switch(n.label){case 0:return t=this.props,a=t.dispatchEvent,r=t.onChange,o=t.submitOnChange,i=t.onRadioChange,s=p(this.props,{value:e}),!1===(null==i?void 0:i(s,this.props))?[2]:[4,a("change",s)];case 1:return(null==(l=n.sent())?void 0:l.prevented)||r&&r(e,o,!0),[2]}})})},t.prototype.renderStatic=function(){var e=this.props,t=e.value,n=e.trueValue,a=e.falseValue,r=e.option,o=e.render,i=e.partial,s=e.optionType,l=e.checked,p=e.labelClassName;return m.createElement(c,{type:"radio",inline:!0,value:t||"",trueValue:n,falseValue:a,disabled:!0,partial:i,optionType:s,checked:l,labelClassName:p},r?o("option",r):null)},t.prototype.render=function(){var e=this,t=this.props,n=t.className;t.style;var a=t.value,r=t.trueValue,o=t.falseValue,i=t.option;t.onChange;var s=t.disabled,l=t.render,p=t.partial,u=t.optionType,d=t.checked,h=t.labelClassName,v=t.classPrefix;return m.createElement("div",{className:(0,f.default)("".concat(v,"CheckboxControl"),n)},m.createElement(c,{type:"radio",inline:!0,value:a||"",trueValue:r,falseValue:o,disabled:s,onChange:function(t){return e.dispatchChangeEvent(t)},partial:p,optionType:u,checked:d,labelClassName:h},i?l("option",i):null))},t.defaultProps={trueValue:!0,falseValue:!1},i([l,o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",Promise)],t.prototype,"dispatchChangeEvent",null),i([v(),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],t.prototype,"render",null),t}(m.Component),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),i([h,s({type:"radio",sizeMutable:!1,thin:!0})],t)}(y);export{g as RadioControlRenderer,y as default};
1
+ import{o as e}from"./rolldown-runtime-DXzHzmmG.js";import{t}from"./react-CWkhIp2c.js";import{a as n,i as a,n as r,o,r as i}from"./tslib.es6-TRdqp4ac.js";import{F as s,Nn as l,ht as p,vi as u,vn as d}from"./esm-DMJQA23h.js";import{Nt as c,R as h}from"./esm-Dgr2t9Jm.js";import{t as v}from"./StaticHoc-D0pM2bgC.js";var m=/* @__PURE__ */e(t()),f=/* @__PURE__ */e(d()),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.doAction=function(e,t,n){var a,r,o=this.props,i=o.resetValue,s=o.onChange,l=o.formStore,p=o.store,d=o.name,c=null==e?void 0:e.actionType;if("clear"===c)s("");else if("reset"===c){var h=null!==(r=u(null!==(a=null==l?void 0:l.pristine)&&void 0!==a?a:null==p?void 0:p.pristine,d))&&void 0!==r?r:i;s(null!=h?h:"")}},t.prototype.dispatchChangeEvent=function(e){return void 0===e&&(e={}),r(this,void 0,void 0,function(){var t,a,r,o,i,s,l;return n(this,function(n){switch(n.label){case 0:return t=this.props,a=t.dispatchEvent,r=t.onChange,o=t.submitOnChange,i=t.onRadioChange,s=p(this.props,{value:e}),!1===(null==i?void 0:i(s,this.props))?[2]:[4,a("change",s)];case 1:return(null==(l=n.sent())?void 0:l.prevented)||r&&r(e,o,!0),[2]}})})},t.prototype.renderStatic=function(){var e=this.props,t=e.value,n=e.trueValue,a=e.falseValue,r=e.option,o=e.render,i=e.partial,s=e.optionType,l=e.checked,p=e.labelClassName;return m.createElement(c,{type:"radio",inline:!0,value:t||"",trueValue:n,falseValue:a,disabled:!0,partial:i,optionType:s,checked:l,labelClassName:p},r?o("option",r):null)},t.prototype.render=function(){var e=this,t=this.props,n=t.className;t.style;var a=t.value,r=t.trueValue,o=t.falseValue,i=t.option;t.onChange;var s=t.disabled,l=t.render,p=t.partial,u=t.optionType,d=t.checked,h=t.labelClassName,v=t.classPrefix;return m.createElement("div",{className:(0,f.default)("".concat(v,"CheckboxControl"),n)},m.createElement(c,{type:"radio",inline:!0,value:a||"",trueValue:r,falseValue:o,disabled:s,onChange:function(t){return e.dispatchChangeEvent(t)},partial:p,optionType:u,checked:d,labelClassName:h},i?l("option",i):null))},t.defaultProps={trueValue:!0,falseValue:!1},i([l,o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",Promise)],t.prototype,"dispatchChangeEvent",null),i([v(),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],t.prototype,"render",null),t}(m.Component),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),i([h,s({type:"radio",sizeMutable:!1,thin:!0})],t)}(y);export{g as RadioControlRenderer,y as default};
@@ -1 +1 @@
1
- import{o as e}from"./rolldown-runtime-DXzHzmmG.js";import{t as n}from"./react-CWkhIp2c.js";import{a,i as t,n as s,o,r as i,t as l}from"./tslib.es6-TRdqp4ac.js";import{J as r,Nn as d,P as c,Xr as u,Z as h,Zn as p,ht as m,vi as C,vn as b}from"./esm-WMdHSo6z.js";import{dt as f}from"./esm-Bwz-vxIU.js";import{t as v}from"./StaticHoc-DlQH6vI9.js";var k=/* @__PURE__ */e(n()),y=/* @__PURE__ */e(b()),g=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.doAction=function(e,n,a){var t,s,o=this.props,i=o.resetValue,l=o.onChange,r=o.formStore,d=o.store,c=o.name,u=null==e?void 0:e.actionType;if("clear"===u)null==l||l("");else if("reset"===u){var h=null!==(s=C(null!==(t=null==r?void 0:r.pristine)&&void 0!==t?t:null==d?void 0:d.pristine,c))&&void 0!==s?s:i;null==l||l(null!=h?h:"")}},n.prototype.handleChange=function(e){return s(this,void 0,void 0,function(){var n,t,s,o,i,l,r,d,c;return a(this,function(a){switch(a.label){case 0:return n=this.props,t=n.joinValues,s=n.extractValue,o=n.valueField,i=n.onChange,l=n.dispatchEvent,r=n.options,n.selectedOptions,d=e,e&&(t||s)&&(d=e[o||"value"]),[4,l("change",m(this.props,{value:d,options:r,items:r,selectedItems:e}))];case 1:return(null==(c=a.sent())?void 0:c.prevented)||i&&i(d),[2]}})})},n.prototype.reload=function(e,n){var a=this.props.reloadOptions;a&&a(e,n)},n.prototype.renderLabel=function(e,n){var a=n.labelField,t=this.props.data,s=e[a||"label"];return k.createElement(k.Fragment,null,"string"==typeof s?u(s,t):"".concat(s))},n.prototype.render=function(){var e=this.props,n=e.className;e.style;var a=e.classPrefix,t=e.value;e.onChange;var s=e.disabled,o=e.joinValues,i=e.extractValue,d=e.delimiter,c=e.placeholder,u=e.options,m=e.inline,C=void 0===m||m,b=e.formMode,v=e.columnsCount,g=e.classPrefix,x=e.itemClassName,N=e.labelClassName,j=e.optionClassName,F=e.labelField,w=e.valueField;e.data;var P=e.translate,V=e.optionType,E=e.level,I=e.testIdBuilder,O=e.themeCss,L=e.id,S=e.env,T=p(O,"radios");return k.createElement(k.Fragment,null,k.createElement(f,{inline:C||"inline"===b,className:(0,y.default)("".concat(a,"RadiosControl"),n,h(l(l({},this.props),{name:["radiosControlClassName","radiosControlCheckedClassName","radiosClassName","radiosCheckedClassName","radiosCheckedInnerClassName","radiosShowClassName"],id:L,themeCss:T}))),value:null==t?"":t,disabled:s,onChange:this.handleChange,joinValues:o,extractValue:i,delimiter:d,labelClassName:null!=j?j:N,labelField:F,valueField:w,placeholder:P(c),options:u,renderLabel:this.renderLabel,columnsCount:v,classPrefix:g,itemClassName:x,optionType:V,level:E,testIdBuilder:I}),k.createElement(r,l({},this.props,{config:{themeCss:T,classNames:[{key:"radiosControlClassName",weights:{default:{inner:".".concat(a,"Checkbox:not(.checked):not(.disabled)")},hover:{suf:" .".concat(a,"Checkbox:not(.disabled):not(.checked)")},disabled:{inner:".".concat(a,"Checkbox.disabled:not(.checked)")}}},{key:"radiosControlCheckedClassName",weights:{default:{inner:".".concat(a,"Checkbox.checked:not(.disabled)")},hover:{suf:" .".concat(a,"Checkbox.checked:not(.disabled)")},disabled:{inner:".".concat(a,"Checkbox.checked.disabled")}}},{key:"radiosClassName",weights:{default:{inner:".".concat(a,"Checkbox:not(.checked):not(.disabled) > i")},hover:{suf:" .".concat(a,"Checkbox:not(.disabled):not(.checked)"),inner:"> i"},disabled:{inner:".".concat(a,"Checkbox.disabled:not(.checked) > i")}}},{key:"radiosCheckedClassName",weights:{default:{inner:".".concat(a,"Checkbox:not(.disabled) > i")},hover:{suf:" .".concat(a,"Checkbox:not(.disabled)"),inner:"> i"},disabled:{inner:".".concat(a,"Checkbox.disabled > i")}}},{key:"radiosCheckedInnerClassName",weights:{default:{inner:".".concat(a,"Checkbox:not(.disabled) > i .icon")},hover:{suf:" .".concat(a,"Checkbox:not(.disabled)"),inner:"> i .icon"},disabled:{inner:".".concat(a,"Checkbox.disabled > i:before")}}},{key:"radiosShowClassName",weights:{default:{inner:".".concat(a,"Checkbox > i")}}}],id:L},env:S})))},n.defaultProps={columnsCount:1},i([d,o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",Promise)],n.prototype,"handleChange",null),i([d,o("design:type",Function),o("design:paramtypes",[Object,Object]),o("design:returntype",void 0)],n.prototype,"renderLabel",null),i([v(),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],n.prototype,"render",null),n}(k.Component),x=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.defaultProps={multiple:!1,inline:!0},i([c({type:"radios",sizeMutable:!1,thin:!0})],n)}(g);export{x as RadiosControlRenderer,g as default};
1
+ import{o as e}from"./rolldown-runtime-DXzHzmmG.js";import{t as n}from"./react-CWkhIp2c.js";import{a,i as t,n as s,o,r as i,t as l}from"./tslib.es6-TRdqp4ac.js";import{J as r,Nn as d,P as c,Xr as u,Z as h,Zn as p,ht as m,vi as C,vn as b}from"./esm-DMJQA23h.js";import{dt as f}from"./esm-Dgr2t9Jm.js";import{t as v}from"./StaticHoc-D0pM2bgC.js";var k=/* @__PURE__ */e(n()),y=/* @__PURE__ */e(b()),g=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.doAction=function(e,n,a){var t,s,o=this.props,i=o.resetValue,l=o.onChange,r=o.formStore,d=o.store,c=o.name,u=null==e?void 0:e.actionType;if("clear"===u)null==l||l("");else if("reset"===u){var h=null!==(s=C(null!==(t=null==r?void 0:r.pristine)&&void 0!==t?t:null==d?void 0:d.pristine,c))&&void 0!==s?s:i;null==l||l(null!=h?h:"")}},n.prototype.handleChange=function(e){return s(this,void 0,void 0,function(){var n,t,s,o,i,l,r,d,c;return a(this,function(a){switch(a.label){case 0:return n=this.props,t=n.joinValues,s=n.extractValue,o=n.valueField,i=n.onChange,l=n.dispatchEvent,r=n.options,n.selectedOptions,d=e,e&&(t||s)&&(d=e[o||"value"]),[4,l("change",m(this.props,{value:d,options:r,items:r,selectedItems:e}))];case 1:return(null==(c=a.sent())?void 0:c.prevented)||i&&i(d),[2]}})})},n.prototype.reload=function(e,n){var a=this.props.reloadOptions;a&&a(e,n)},n.prototype.renderLabel=function(e,n){var a=n.labelField,t=this.props.data,s=e[a||"label"];return k.createElement(k.Fragment,null,"string"==typeof s?u(s,t):"".concat(s))},n.prototype.render=function(){var e=this.props,n=e.className;e.style;var a=e.classPrefix,t=e.value;e.onChange;var s=e.disabled,o=e.joinValues,i=e.extractValue,d=e.delimiter,c=e.placeholder,u=e.options,m=e.inline,C=void 0===m||m,b=e.formMode,v=e.columnsCount,g=e.classPrefix,x=e.itemClassName,N=e.labelClassName,j=e.optionClassName,F=e.labelField,w=e.valueField;e.data;var P=e.translate,V=e.optionType,E=e.level,I=e.testIdBuilder,O=e.themeCss,L=e.id,S=e.env,T=p(O,"radios");return k.createElement(k.Fragment,null,k.createElement(f,{inline:C||"inline"===b,className:(0,y.default)("".concat(a,"RadiosControl"),n,h(l(l({},this.props),{name:["radiosControlClassName","radiosControlCheckedClassName","radiosClassName","radiosCheckedClassName","radiosCheckedInnerClassName","radiosShowClassName"],id:L,themeCss:T}))),value:null==t?"":t,disabled:s,onChange:this.handleChange,joinValues:o,extractValue:i,delimiter:d,labelClassName:null!=j?j:N,labelField:F,valueField:w,placeholder:P(c),options:u,renderLabel:this.renderLabel,columnsCount:v,classPrefix:g,itemClassName:x,optionType:V,level:E,testIdBuilder:I}),k.createElement(r,l({},this.props,{config:{themeCss:T,classNames:[{key:"radiosControlClassName",weights:{default:{inner:".".concat(a,"Checkbox:not(.checked):not(.disabled)")},hover:{suf:" .".concat(a,"Checkbox:not(.disabled):not(.checked)")},disabled:{inner:".".concat(a,"Checkbox.disabled:not(.checked)")}}},{key:"radiosControlCheckedClassName",weights:{default:{inner:".".concat(a,"Checkbox.checked:not(.disabled)")},hover:{suf:" .".concat(a,"Checkbox.checked:not(.disabled)")},disabled:{inner:".".concat(a,"Checkbox.checked.disabled")}}},{key:"radiosClassName",weights:{default:{inner:".".concat(a,"Checkbox:not(.checked):not(.disabled) > i")},hover:{suf:" .".concat(a,"Checkbox:not(.disabled):not(.checked)"),inner:"> i"},disabled:{inner:".".concat(a,"Checkbox.disabled:not(.checked) > i")}}},{key:"radiosCheckedClassName",weights:{default:{inner:".".concat(a,"Checkbox:not(.disabled) > i")},hover:{suf:" .".concat(a,"Checkbox:not(.disabled)"),inner:"> i"},disabled:{inner:".".concat(a,"Checkbox.disabled > i")}}},{key:"radiosCheckedInnerClassName",weights:{default:{inner:".".concat(a,"Checkbox:not(.disabled) > i .icon")},hover:{suf:" .".concat(a,"Checkbox:not(.disabled)"),inner:"> i .icon"},disabled:{inner:".".concat(a,"Checkbox.disabled > i:before")}}},{key:"radiosShowClassName",weights:{default:{inner:".".concat(a,"Checkbox > i")}}}],id:L},env:S})))},n.defaultProps={columnsCount:1},i([d,o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",Promise)],n.prototype,"handleChange",null),i([d,o("design:type",Function),o("design:paramtypes",[Object,Object]),o("design:returntype",void 0)],n.prototype,"renderLabel",null),i([v(),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],n.prototype,"render",null),n}(k.Component),x=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.defaultProps={multiple:!1,inline:!0},i([c({type:"radios",sizeMutable:!1,thin:!0})],n)}(g);export{x as RadiosControlRenderer,g as default};
@@ -0,0 +1 @@
1
+ import{o as e,r as t}from"./rolldown-runtime-DXzHzmmG.js";import{t as n}from"./react-CWkhIp2c.js";import{c as o,i as r,o as a,r as s,t as i}from"./tslib.es6-TRdqp4ac.js";import{Nn as l,Xr as c,it as p,tt as m}from"./esm-DMJQA23h.js";import"./esm-Dgr2t9Jm.js";import{c as u,o as d}from"./_castFunction-CQMNP8A1.js";var f=/* @__PURE__ */t({RemarkRenderer:()=>b,default:()=>h,filterContents:()=>v}),y=/* @__PURE__ */e(n());function v(e,t){if("string"==typeof e)return c(e,t);if(e){var n=e.title,r=e.content,a=e.body,s=o(e,["title","content","body"]);return n||r||a?i(i({},s),{title:c(n,t),content:r||a?c(r||a||"",t):void 0}):void 0}return e}var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.showModalTip=function(e){var t=this.props,n=t.onAction,o=t.data;return function(t){n&&n(t,{actionType:"dialog",dialog:{title:e&&"string"!=typeof e?e.title:"",body:e&&"string"!=typeof e?e.content:e,actions:[]}},o)}},t.prototype.renderLabel=function(e,t,n,o){var r=o?"Remark-icon--".concat(o):void 0;return y.createElement(y.Fragment,null,t?y.createElement("span",null,t):null,y.createElement("span",{className:n("Remark-icon",r)},y.createElement(u,{cx:n,icon:e||"question-mark"})))},t.prototype.render=function(){var e,t,n,o=this.props,r=o.className,a=o.style,s=o.icon,i=o.label,l=o.shape,c=o.tooltip,p=o.placement,m=o.rootClose,u=o.trigger,f=o.container,g=o.popOverContainer,h=o.classPrefix,b=o.classnames,C=o.content,k=o.data,N=o.env,R=o.tooltipClassName,j=o.mobileUI,E=null!==(e=null==c?void 0:c.icon)&&void 0!==e?e:s,w=null!==(t=null==c?void 0:c.label)&&void 0!==t?t:i,x=null!==(n=null==c?void 0:c.shape)&&void 0!==n?n:l,L=v(c||C,k);return j?y.createElement("div",{className:b("Remark",c&&c.className||r||"Remark--warning"),style:a,onClick:this.showModalTip(L)},this.renderLabel(E,w,b,x)):y.createElement(d,{classPrefix:h,classnames:b,tooltip:L,tooltipClassName:c&&c.tooltipClassName||R,placement:c&&c.placement||p,rootClose:c&&c.rootClose||m,trigger:c&&c.trigger||u,container:f||g||N.getModalContainer,delay:c&&c.delay},y.createElement("div",{className:b("Remark",c&&c.className||r||"Remark--warning"),style:a},this.renderLabel(E,w,b,x)))},t.propsList=[],t.defaultProps={icon:"",trigger:["hover","focus"]},s([l,a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",void 0)],t.prototype,"showModalTip",null),t}(y.Component),h=m(g),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),s([p({type:"remark"})],t)}(g);export{v as n,f as t};