@txgw/payout-components 1.0.2 → 1.1.0
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.
- package/dist/{AMIS-BpATHKnv.js → AMIS-CM68rg5R.js} +1 -1
- package/dist/Action-D420OYTJ.js +1 -0
- package/dist/{Alert-DwWdKr12.js → Alert-OX9rdmI_.js} +1 -1
- package/dist/{AnchorNav-DRGjEF5J.js → AnchorNav-Bb6l3CBp.js} +1 -1
- package/dist/{App-DxKgyXV1.js → App-yGweuu7Q.js} +1 -1
- package/dist/{Audio-BoaWMJHA.js → Audio-D2LrX_57.js} +1 -1
- package/dist/{Avatar-B2lZKPPh.js → Avatar-B5tWHN23.js} +1 -1
- package/dist/{BarCode-dEGhm4u6.js → BarCode-B-Ddq7Ng.js} +1 -1
- package/dist/BarCode-CMMFyYuP.js +1 -0
- package/dist/{Breadcrumb-BHzIF2Vg.js → Breadcrumb-BCsI9Wi1.js} +1 -1
- package/dist/ButtonGroup-D_O7bRiN.js +1 -0
- package/dist/ButtonGroupSelect-DjOQ2Tuh.js +1 -0
- package/dist/{ButtonToolbar-CYZ0LWsz.js → ButtonToolbar-DnLpgwNx.js} +1 -1
- package/dist/{CRUD-BDeg8xZI.js → CRUD-CS67DNfG.js} +1 -1
- package/dist/{CRUD2-DrE-2JU3.js → CRUD2-D83jPL0v.js} +1 -1
- package/dist/{Calendar-DkEUJJQW.js → Calendar-BN1juoTQ.js} +1 -1
- package/dist/Card-D2R1STX8.js +1 -0
- package/dist/{Card2-Dyl0FIVL.js → Card2-By_1_3R5.js} +1 -1
- package/dist/{Cards-DlMpwNSr.js → Cards-BnJ0Dnmz.js} +1 -1
- package/dist/{Carousel-CXMYZL8H.js → Carousel-BP2Kp_P6.js} +1 -1
- package/dist/{ChainedSelect-BQK0j-pA.js → ChainedSelect-DW0A8lQ-.js} +1 -1
- package/dist/{Chart-uJ8v1OSG.js → Chart-c7rzExMK.js} +1 -1
- package/dist/{ChartRadios-C9Ov2SCd.js → ChartRadios-DpfBUZTk.js} +1 -1
- package/dist/Checkbox-D4QjyHE8.js +1 -0
- package/dist/{Checkboxes-wud_gmq3.js → Checkboxes-kyTqIZyc.js} +1 -1
- package/dist/{Code-VjDT2QOS.js → Code-DEZUwJqZ.js} +1 -1
- package/dist/Collapse-BIGybKyX.js +1 -0
- package/dist/{CollapseGroup-DkMS5MXZ.js → CollapseGroup-NqmQsF_6.js} +1 -1
- package/dist/{Color-CZV84qNC.js → Color-BzAgZwFR.js} +1 -1
- package/dist/{ColorPicker-R5D1ZNwb.js → ColorPicker-gyFFvfwL.js} +1 -1
- package/dist/{ColumnToggler-BxHry8EL.js → ColumnToggler-CBSdO39q.js} +1 -1
- package/dist/{ColumnToggler-D98cb4XS.js → ColumnToggler-D1bLNGs8.js} +1 -1
- package/dist/Combo-DmvnORaR.js +1 -0
- package/dist/{ConditionBuilder-DFF8QBcW.js → ConditionBuilder-C5JUufeO.js} +1 -1
- package/dist/{Container-f-JHe2WE.js → Container-DCAE5tQq.js} +1 -1
- package/dist/{Control-dOQnC26j.js → Control-GsHoIplL.js} +1 -1
- package/dist/{Custom-CqKL8xv_.js → Custom-Bx2nVsmn.js} +1 -1
- package/dist/{Date-BcRD4sv_.js → Date-Rnv2HuTu.js} +1 -1
- package/dist/{DateRange-BkGu5vJl.js → DateRange-CHTOLq35.js} +1 -1
- package/dist/{Dialog-CQSNeqgY.js → Dialog-HcAYAj35.js} +1 -1
- package/dist/{DiffEditor-DU9deT5c.js → DiffEditor-rf9IWV-b.js} +1 -1
- package/dist/{Divider-CYwXWwc5.js → Divider-DABewo1V.js} +1 -1
- package/dist/{Drawer-DmUqxMKd.js → Drawer-CuWqeLlJ.js} +1 -1
- package/dist/{DropDownButton-C0e2mksC.js → DropDownButton-DP0ONooh.js} +1 -1
- package/dist/{Each-Bnhdfx44.js → Each-ZriHtex3.js} +1 -1
- package/dist/FieldSet-CcrjH3er.js +1 -0
- package/dist/{Flex-C0c49ZMP.js → Flex-BK1nhXmI.js} +1 -1
- package/dist/{Formula-C82aVdAD.js → Formula-NTqpJbjF.js} +1 -1
- package/dist/{Grid2D-BJPrAz8w.js → Grid2D-CBGidn3i.js} +1 -1
- package/dist/{GridNav-DCCBgvz1.js → GridNav-BAL35ab_.js} +1 -1
- package/dist/{Group-D_2Fn4zB.js → Group-CjeKLlwD.js} +1 -1
- package/dist/HBox-BxQ8irHy.js +1 -0
- package/dist/{Hidden-SaNCTMlZ.js → Hidden-DaGW1F82.js} +1 -1
- package/dist/{IFrame-2LIicqpq.js → IFrame-DcNMOS2r.js} +1 -1
- package/dist/{Icon-3_vNko-P.js → Icon-Cl_2Jpom.js} +1 -1
- package/dist/{IconPicker-DAMClR_z.js → IconPicker-DjGeRhvh.js} +1 -1
- package/dist/{IconSelect-CHM0oHqd.js → IconSelect-FEBbRN6a.js} +1 -1
- package/dist/{IconSelectStore-MNwivoh-.js → IconSelectStore-BcDfZ6q0.js} +1 -1
- package/dist/Image-CqTh1gC1.js +1 -0
- package/dist/{Images-ZGJfaN-q.js → Images-BevE2x4f.js} +1 -1
- package/dist/{InputArray-D3y772RO.js → InputArray-DEANCSjZ.js} +1 -1
- package/dist/InputCity-Fa-Ocgca.js +1 -0
- package/dist/{InputColor-CYmzXu5I.js → InputColor-M_d8ADse.js} +1 -1
- package/dist/{InputDate-BldJd84x.js → InputDate-D-Y8KxsV.js} +1 -1
- package/dist/{InputDateRange-KzSlI2fv.js → InputDateRange-BvwhghV-.js} +1 -1
- package/dist/{InputExcel-CJZWvZFT.js → InputExcel-CnM4OLSW.js} +1 -1
- package/dist/InputFile-S9mBNnml.js +1 -0
- package/dist/{InputFormula-BKxq41uR.js → InputFormula-DSMFA8FM.js} +1 -1
- package/dist/{InputGroup-wvaymJ-V.js → InputGroup-C8LN-ThT.js} +1 -1
- package/dist/InputImage-CPX7pklM.js +1 -0
- package/dist/InputMonthRange-BJIplqND.js +1 -0
- package/dist/{InputNumber-BjzsM73z.js → InputNumber-C19HwmK3.js} +1 -1
- package/dist/{InputQuarterRange-DQuiFCOb.js → InputQuarterRange-CyUq5A6U.js} +1 -1
- package/dist/{InputRange-C97bKrW6.js → InputRange-B3_VlftI.js} +1 -1
- package/dist/{InputRating-CpFNTZKA.js → InputRating-CCO76jk6.js} +1 -1
- package/dist/{InputRepeat-CN2KxX7g.js → InputRepeat-ffy-FV9Q.js} +1 -1
- package/dist/InputRichText-D5aBhuXB.js +1 -0
- package/dist/{InputSignature-CsxuK757.js → InputSignature-C8dhqBsE.js} +1 -1
- package/dist/InputSubForm-pTFZ6o8m.js +1 -0
- package/dist/{InputTable-Bt8U_tyA.js → InputTable-BseTVkuI.js} +1 -1
- package/dist/{InputTag-kg2v747D.js → InputTag-lyFWGEvM.js} +1 -1
- package/dist/{InputText-bKR0VgA6.js → InputText-BgdghvXe.js} +1 -1
- package/dist/{InputTree-DbdS4b2m.js → InputTree--GJZZX0g.js} +1 -1
- package/dist/{InputVerificationCode-DcFJRWeR.js → InputVerificationCode-DuPItq2e.js} +1 -1
- package/dist/{InputYearRange-ChXlMgCi.js → InputYearRange-CZdX11Ga.js} +1 -1
- package/dist/{JSONSchema-C_VjFVVN.js → JSONSchema-BvOFcRIn.js} +1 -1
- package/dist/{JSONSchemaEditor-CEgywCvJ.js → JSONSchemaEditor-DhJ88P-t.js} +1 -1
- package/dist/{Json-DqjhkjHF.js → Json-BsgN5qcJ.js} +1 -1
- package/dist/{Link-9hUnE5FW.js → Link-DFR8SHgX.js} +1 -1
- package/dist/List-ByWIoyuh.js +1 -0
- package/dist/{ListSelect-lX84FGAP.js → ListSelect-3eDDrMA_.js} +1 -1
- package/dist/{LocationPicker-DnA8QpYh.js → LocationPicker-ybjVDQ2V.js} +1 -1
- package/dist/Log-CREZ5njl.js +1 -0
- package/dist/{Mapping-X2IRbppi.js → Mapping-B8ItEgTe.js} +1 -1
- package/dist/{Markdown-ByuMaB2P.js → Markdown-Bcl72sEX.js} +1 -1
- package/dist/{Markdown-BlxcmdTl.js → Markdown-D0bdiDuL.js} +1 -1
- package/dist/{MatrixCheckboxes-BvBU1E-4.js → MatrixCheckboxes-DdU_nnr0.js} +1 -1
- package/dist/{MultilineText-BmbIytvk.js → MultilineText-C3pkd141.js} +1 -1
- package/dist/{Nav-BxS7kBh9.js → Nav-Dte1RgqQ.js} +1 -1
- package/dist/{NestedSelect-CbWnin5b.js → NestedSelect-DC6jwkrQ.js} +1 -1
- package/dist/{Number-CGYpvopX.js → Number--P4xC2M_.js} +1 -1
- package/dist/{OfficeViewer-DBFFaH5P.js → OfficeViewer-C_cwhHYT.js} +1 -1
- package/dist/{Operation-j5yIUDkZ.js → Operation-cXbTSVW3.js} +1 -1
- package/dist/{Page-CJ2gK3vA.js → Page-D-XPAVqf.js} +1 -1
- package/dist/{Pagination-BDEmomCQ.js → Pagination-Didl7WSS.js} +1 -1
- package/dist/{PaginationWrapper-Bnsk8oIg.js → PaginationWrapper-XCkiXk5h.js} +1 -1
- package/dist/{Panel-DKpM1Qfc.js → Panel-CYHksr4M.js} +1 -1
- package/dist/{Password-CzHAzi8M.js → Password-CvWqk6ob.js} +1 -1
- package/dist/{Picker-D5WVPGTg.js → Picker-CiJw41qb.js} +1 -1
- package/dist/{Plain-oyGNzh1N.js → Plain-Climm5xS.js} +1 -1
- package/dist/{PopUp-DaheG-Vv.js → PopUp-COxX3IAH.js} +104 -104
- package/dist/{Portlet-dA2P7U6i.js → Portlet-BCW-gUdF.js} +1 -1
- package/dist/{Progress-D2LXKzUA.js → Progress-DBNPysOG.js} +1 -1
- package/dist/{Property-CekATdUy.js → Property-DdZPiZjm.js} +1 -1
- package/dist/{QRCode-DPoyEXK3.js → QRCode-PscItVbg.js} +1 -1
- package/dist/{Radio-HhPQKIKk.js → Radio-BMTh4Vc-.js} +1 -1
- package/dist/{Radios-DVzovX2u.js → Radios-BJQzOFWs.js} +1 -1
- package/dist/Remark-B9lXsYnM.js +1 -0
- package/dist/{RichText-wfPXQmb8.js → RichText-YBmfqP7K.js} +1 -1
- package/dist/{SearchBox-Jlwq8w3o.js → SearchBox-8TTon1Qg.js} +1 -1
- package/dist/{Select-DCB0i1Ga.js → Select-B-Diud2_.js} +1 -1
- package/dist/{Service-Bmfl8VSD.js → Service-BzPMjZsC.js} +1 -1
- package/dist/{Shape-5ZBBe1x0.js → Shape-H3GlFCsv.js} +1 -1
- package/dist/{Slider-pb5I0Xb2.js → Slider-CegLiXRn.js} +1 -1
- package/dist/{SparkLine-C4x34-6K.js → SparkLine-HFdKefmW.js} +1 -1
- package/dist/{Spinner-SR1wYU_1.js → Spinner-BfkWdJxA.js} +1 -1
- package/dist/{StaticHoc-DVc-5HZA.js → StaticHoc-BFjSxS01.js} +1 -1
- package/dist/{Status-7D4DBjk6.js → Status-CVsR4hla.js} +1 -1
- package/dist/{Steps-Dd_3MM0y.js → Steps-CUGsvohB.js} +1 -1
- package/dist/{Switch-CZqzJH45.js → Switch-CgTLMMxn.js} +1 -1
- package/dist/{SwitchContainer-L7IwrheV.js → SwitchContainer-Cq5nGkUH.js} +1 -1
- package/dist/Table-CtPiFO5y.js +1 -0
- package/dist/{Table2-CIZ93hrj.js → Table2-BTfFLrJy.js} +1 -1
- package/dist/{TableView-CigjcDJc.js → TableView-C7wVLaMb.js} +1 -1
- package/dist/{Tabs-Cljj-nTv.js → Tabs-DYbrDcE6.js} +1 -1
- package/dist/{TabsTransfer-BXwrW4NX.js → TabsTransfer-DPypfisf.js} +1 -1
- package/dist/{TabsTransferPicker-DB005nER.js → TabsTransferPicker-Dw1dbvwK.js} +1 -1
- package/dist/{Tag-CcfwT8FM.js → Tag-CMOiFppm.js} +1 -1
- package/dist/{Tasks-DeVW2Tdg.js → Tasks-D9XgeIzx.js} +1 -1
- package/dist/{Textarea-zsHcK0rZ.js → Textarea-C67KJSMF.js} +1 -1
- package/dist/{Timeline-D_3FRzUa.js → Timeline-DMKF0PW_.js} +1 -1
- package/dist/{TooltipWrapper-BElQhX67.js → TooltipWrapper-DFoUn1-Z.js} +1 -1
- package/dist/{Tpl-OPfW08Kh.js → Tpl-C6lLFZE7.js} +1 -1
- package/dist/Transfer-BgbxVlVM.js +1 -0
- package/dist/{TransferPicker-xlJfwHxP.js → TransferPicker-Di2yWAKS.js} +1 -1
- package/dist/{TreeSelect-BTKg9Ldf.js → TreeSelect-u76hHz7x.js} +1 -1
- package/dist/{UUID-BkwpeiT9.js → UUID-BQrPfyRW.js} +1 -1
- package/dist/{UserSelect-CsY5PQp9.js → UserSelect-CqpYW4gK.js} +1 -1
- package/dist/{VBox-Ca4DBR6-.js → VBox-Bg3hZgQ2.js} +1 -1
- package/dist/{Video-CXzxq3vU.js → Video-CtAf8rPO.js} +1 -1
- package/dist/{WebComponent-DYxJeu6a.js → WebComponent-YyQh4fcQ.js} +1 -1
- package/dist/{Wizard-fqzq2OCn.js → Wizard-C8hBTALf.js} +1 -1
- package/dist/{Words-V70QrARW.js → Words-BpUg7mc1.js} +1 -1
- package/dist/{Wrapper-BtFbBBXy.js → Wrapper-AnBzbtM_.js} +1 -1
- package/dist/_getTag-CNNwuCU_.js +1 -0
- package/dist/beneficiary-form-CXVut-7L.js +10 -0
- package/dist/{client-BoE-UyzU.js → client-o7kL9c9O.js} +1 -1
- package/dist/{crypto-js-Cv2Y8hvs.js → crypto-js-Q_GdNXmw.js} +1 -1
- package/dist/{doc-CmSOujco.js → doc-BH70Fa8Z.js} +1 -1
- package/dist/{es-DY5--nMG.js → es-BHW_hpQy.js} +1 -1
- package/dist/{esm-DyRrwLZv.js → esm-BcyTHOtS.js} +1 -1
- package/dist/esm-BmJ_y26h.js +28 -0
- package/dist/esm-HJl7vXYN.js +4 -0
- package/dist/{function-C8ta9DKb.js → function-Bv9HjNfK.js} +2 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1 -1
- package/dist/isEqual-DVixCO8o.js +1 -0
- package/dist/{main-CLaM-mkN.js → main-C3dLbvVt.js} +1 -1
- package/dist/mi18n-react.esm-AFBvyBKc.js +1 -0
- package/dist/{objectSpread2-BCtAXXta.js → objectSpread2-BVLMCUKL.js} +1 -1
- package/dist/{omitBy-NMzUUhXs.js → omitBy-2E6rLjxO.js} +1 -1
- package/dist/{papaparse.min-CU0u_rom.js → papaparse.min-DNwbRM7w.js} +1 -1
- package/dist/{react-BW4ssgUo.js → react-1dn4ot9O.js} +1 -1
- package/dist/{react-cropper.es-zEJdZmmN.js → react-cropper.es-CJ1ZxeY0.js} +1 -1
- package/dist/react-dom-sh4H0cZ5.js +1 -0
- package/dist/rolldown-runtime-Ch1CtRr1.js +1 -0
- package/dist/xor-yKpUzT1Q.js +1 -0
- package/package.json +12 -9
- package/dist/Action-B0KUcn27.js +0 -1
- package/dist/Action-CzJ_r33l.js +0 -1
- package/dist/BarCode-BnchzdIg.js +0 -1
- package/dist/ButtonGroup-BMvNPoKc.js +0 -1
- package/dist/ButtonGroupSelect-BmQIuhWU.js +0 -1
- package/dist/ButtonGroupSelect-CfNu0OBj.js +0 -1
- package/dist/Card-BVUWwkgm.js +0 -1
- package/dist/Card-IZbcizfw.js +0 -1
- package/dist/Checkbox-DAq7LXTe.js +0 -1
- package/dist/Checkbox-DbHhD7iK.js +0 -1
- package/dist/Collapse-CRIu-D5O.js +0 -1
- package/dist/Collapse-CknZKNKz.js +0 -1
- package/dist/Combo-BUD7tb8b.js +0 -1
- package/dist/FieldSet-BRfWbiPG.js +0 -1
- package/dist/FieldSet-f-m_bp4h.js +0 -1
- package/dist/HBox-CG3Ad5us.js +0 -1
- package/dist/HBox-CRrACS8I.js +0 -1
- package/dist/Image-Br7JbiAF.js +0 -1
- package/dist/Image-hHgZkb5C.js +0 -1
- package/dist/InputCity-CF6mEwuH.js +0 -1
- package/dist/InputFile-C0FUNeFM.js +0 -1
- package/dist/InputFile-DFjvYmV3.js +0 -1
- package/dist/InputImage-CLuXGhoy.js +0 -1
- package/dist/InputImage-DasZBpb-.js +0 -1
- package/dist/InputMonthRange-DVRnBZ4I.js +0 -1
- package/dist/InputRichText-BXjRSQFh.js +0 -1
- package/dist/InputRichText-DdyJFH82.js +0 -1
- package/dist/InputSubForm-Ddweo6dR.js +0 -1
- package/dist/List-BBntusL0.js +0 -1
- package/dist/List-C8nPjG1-.js +0 -1
- package/dist/Log-CRxPlj86.js +0 -1
- package/dist/Remark-CHTOdmdn.js +0 -1
- package/dist/Remark-bXVj7ffU.js +0 -1
- package/dist/Table-CYUuVDxA.js +0 -1
- package/dist/Table-D-9NfAqg.js +0 -1
- package/dist/Transfer-Cx1Ijzfh.js +0 -1
- package/dist/Transfer-DboPBh8V.js +0 -1
- package/dist/_getTag-x788Ng9o.js +0 -1
- package/dist/beneficiary-form-BmmdIRc0.js +0 -10
- package/dist/esm-BMvKJM5q.js +0 -4
- package/dist/esm-BbZME5Ac.js +0 -28
- package/dist/isEqual-BxlJ5vH7.js +0 -1
- package/dist/mi18n-react.esm-BFa-Q7wX.js +0 -1
- package/dist/react-dom-DmgFzc6z.js +0 -1
- package/dist/rolldown-runtime-DcYi-9oA.js +0 -1
- package/dist/xor-CSkTraTY.js +0 -1
- /package/dist/{IconPickerIcons-DN0pqJHt.js → IconPickerIcons-Baf748sI.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-Ch1CtRr1.js";import{t}from"./react-1dn4ot9O.js";import{i as a,o as n,r,s,t as o,u as l}from"./tslib.es6-C2q27PUR.js";import{Nn as i,Xr as c,_i as d,dn as u,hr as p,it as m,oi as y,qt as b,ui as f,xr as h}from"./esm-HJl7vXYN.js";import{St as v,xt as E}from"./esm-BmJ_y26h.js";var x=/* @__PURE__ */e(t()),N=/* @__PURE__ */e(b()),T=function(e){function t(t){var a=e.call(this,t)||this;return a.state={activeKey:t.activeKey||0},a}return a(t,e),t.prototype.handleSelect=function(e){var t=this.props,a=t.onSelect,n=t.tabs;if("number"==typeof e&&e<n.length&&this.setState({activeKey:e}),"string"==typeof a){var r=u(a,"key","props");r&&r(e,this.props)}else"function"==typeof a&&a(e,this.props)},t.prototype.renderToolbarItem=function(e){var t=this.props.render,a=[];return Array.isArray(e)&&e.forEach(function(e,n){return a.push(t("toolbar/".concat(n),o({type:"button",level:"link",size:"sm"},e),{key:n}))}),a},t.prototype.renderToolbar=function(){var e=this.props,t=e.toolbar,a=e.classnames,n=e.classPrefix,r=e.tabs,s=this.state.activeKey,o=null,l=null,i=t?x.createElement("div",{className:a("".concat(n,"toolbar"))},this.renderToolbarItem(t)):null;return void 0!==s&&(l=(o=r[s].toolbar)?x.createElement("div",{className:a("".concat(n,"tab-toolbar"))},this.renderToolbarItem(o)):null),i||l?x.createElement("div",{className:a("".concat(n,"Portlet-toolbar"))},i,l):null},t.prototype.renderDesc=function(){var e=this.props,t=e.description;e.render;var a=e.classnames,n=e.classPrefix,r=e.data,s=c(t,r);return s?x.createElement("span",{className:a("".concat(n,"Portlet-header-desc"))},s):null},t.prototype.renderTabs=function(){var e,t=this,a=this.props,n=a.classnames,r=a.classPrefix,i=a.tabsClassName,u=a.contentClassName,m=a.linksClassName,b=a.tabRender,N=a.render,T=a.data,O=a.mode,P=a.tabsMode,K=a.unmountOnExit,g=a.source,k=a.mountOnEnter,S=a.scrollable,A=a.translate,C=a.addBtnText,j=a.divider,B=P||O,I=d(g,T),D=this.props.tabs;if(!D)return null;D=Array.isArray(D)?D:[D];var q=[],w=n("".concat(r,"Portlet-tab"),i,((e={})["unactive-select"]=D.length<=1,e["no-divider"]=!j,e));return Array.isArray(I)?I.forEach(function(e,t){var a=y(T,f(e)?o({index:t},e):{item:e,index:t});q.push.apply(q,l([],s(D.map(function(e,n){return h(e,a)?x.createElement(E,o({},e,{title:c(e.title,a),disabled:p(e,a),key:"".concat(1e3*t+n),eventKey:1e3*t+n,mountOnEnter:k,unmountOnExit:"boolean"==typeof e.reload?e.reload:"boolean"==typeof e.unmountOnExit?e.unmountOnExit:K}),N("item/".concat(t,"/").concat(n),(null==e?void 0:e.type)?e:e.tab||e.body,{data:a})):null})),!1))}):q=D.map(function(e,a){return h(e,T)?x.createElement(E,o({},e,{title:c(e.title,T),disabled:p(e,T),key:a,eventKey:a,mountOnEnter:k,unmountOnExit:"boolean"==typeof e.reload?e.reload:"boolean"==typeof e.unmountOnExit?e.unmountOnExit:K}),t.renderTab?t.renderTab(e,t.props,a):b?b(e,t.props,a):N("tab/".concat(a),(null==e?void 0:e.type)?e:e.tab||e.body)):null}),x.createElement(v,{addBtnText:A(C||"add"),classPrefix:r,classnames:n,mode:B,className:w,contentClassName:u,linksClassName:m,activeKey:this.state.activeKey,onSelect:this.handleSelect,toolbar:this.renderToolbar(),additionBtns:this.renderDesc(),scrollable:S},q)},t.prototype.render=function(){var e,t=this.props,a=t.className,n=t.data,r=t.classnames,s=t.classPrefix,o=t.style,l=t.hideHeader,i=r("".concat(s,"Portlet"),a,((e={})["no-header"]=l,e)),c="string"==typeof o?d(o,n)||{}:(0,N.default)(o,function(e){return d(e,n)||e});return x.createElement("div",{className:i,style:c},this.renderTabs())},t.defaultProps={className:"",mode:"line",divider:!0},r([i,n("design:type",Function),n("design:paramtypes",[Number]),n("design:returntype",void 0)],t.prototype,"handleSelect",null),t}(x.Component),O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),r([m({type:"portlet"})],t)}(T);export{T as Portlet,O as PortletRenderer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-Ch1CtRr1.js";import{t}from"./react-1dn4ot9O.js";import{i as a,o,r as s}from"./tslib.es6-C2q27PUR.js";import{t as r}from"./isEqual-DVixCO8o.js";import{$n as n,Nn as l,Xr as p,dt as i,it as u,kt as m,oi as c}from"./esm-HJl7vXYN.js";import{h}from"./esm-BmJ_y26h.js";var d=/* @__PURE__ */e(t()),f=/* @__PURE__ */e(r()),v=/* @__PURE__ */e(m()),g=["name","value","data","defaultValue"],y=function(e){function t(t){var a=e.call(this,t)||this;return a.state={value:a.getValue()},a}return a(t,e),t.prototype.componentDidUpdate=function(e){(0,f.default)((0,v.default)(e,g),(0,v.default)(this.props,g))||this.setState({value:this.getValue()})},t.prototype.getValue=function(){var e=n(this.props);return e="number"==typeof e?e:p(e,this.props.data),/^\d*\.?\d+$/.test(e)&&(e=parseFloat(e)),e},t.prototype.format=function(e){var t=this.props,a=t.valueTpl,o=t.render,s=t.data;return o("progress-value",a||"${value}%",{data:c(s,{value:e})})},t.prototype.render=function(){var e=this.props,t=e.data,a=e.mode,o=e.className,s=e.style,r=e.placeholder,n=e.progressClassName,l=e.map,i=e.stripe,u=e.animate,m=e.showLabel,c=e.strokeWidth,f=e.gapDegree,v=e.gapPosition;e.classnames;var g=e.threshold,y=e.showThresholdText,b=this.state.value;return g&&(Array.isArray(g)?g.forEach(function(e){e.value="string"==typeof e.value?p(e.value,t):e.value,e.color&&(e.color=p(e.color,t))}):(g.value=p(g.value,t),g.color&&(g.color=p(g.color,t)))),d.createElement(h,{value:b,type:a,map:l,stripe:i,animate:u,showLabel:m,placeholder:r,format:this.format,strokeWidth:c,gapDegree:f,gapPosition:v,className:o,style:s,progressClassName:n,threshold:g,showThresholdText:y})},t.defaultProps={placeholder:"-",progressClassName:"",progressBarClassName:"",map:["bg-danger","bg-warning","bg-info","bg-success","bg-success"],valueTpl:"${value}%",showLabel:!0,stripe:!1,animate:!1},s([l,o("design:type",Function),o("design:paramtypes",[Number]),o("design:returntype",void 0)],t.prototype,"format",null),t}(d.Component),b=function(e){function t(t,a){var o=e.call(this,t)||this;return a.registerComponent(o),o}return a(t,e),t.prototype.componentWillUnmount=function(){var t;null===(t=e.prototype.componentWillUnmount)||void 0===t||t.call(this),this.context.unRegisterComponent(this)},t.prototype.doAction=function(e,t,a,o){"reset"===(null==e?void 0:e.actionType)&&this.setState({value:0})},t.prototype.setData=function(e){"number"!=typeof e&&"number"!=typeof+e||this.setState({value:+e})},t.contextType=i,s([u({type:"progress"}),o("design:paramtypes",[Object,Object])],t)}(y);export{y as ProgressField,b as ProgressFieldRenderer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-Ch1CtRr1.js";import{t}from"./react-1dn4ot9O.js";import{d as r,i as n,r as a}from"./tslib.es6-C2q27PUR.js";import{E as l,Ur as o,it as s}from"./esm-HJl7vXYN.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-DcYi-9oA.js";import{t}from"./react-BW4ssgUo.js";import{i as o,o as n,r}from"./tslib.es6-C2q27PUR.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-BMvKJM5q.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-Ch1CtRr1.js";import{t}from"./react-1dn4ot9O.js";import{i as o,o as n,r}from"./tslib.es6-C2q27PUR.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-HJl7vXYN.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-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-Ch1CtRr1.js";import{t}from"./react-1dn4ot9O.js";import{a as n,i as a,n as r,o,r as i}from"./tslib.es6-C2q27PUR.js";import{F as s,Nn as l,ht as p,vi as u,vn as d}from"./esm-HJl7vXYN.js";import{Nt as c,R as h}from"./esm-BmJ_y26h.js";import{t as v}from"./StaticHoc-BFjSxS01.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-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-Ch1CtRr1.js";import{t as n}from"./react-1dn4ot9O.js";import{a,i as t,n as s,o,r as i,t as l}from"./tslib.es6-C2q27PUR.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-HJl7vXYN.js";import{dt as f}from"./esm-BmJ_y26h.js";import{t as v}from"./StaticHoc-BFjSxS01.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-Ch1CtRr1.js";import{t as n}from"./react-1dn4ot9O.js";import{c as o,i as r,o as a,r as s,t as i}from"./tslib.es6-C2q27PUR.js";import{Nn as l,Xr as p,it as c,tt as m}from"./esm-HJl7vXYN.js";import"./esm-BmJ_y26h.js";import{a as u,s as d}from"./PopUp-COxX3IAH.js";var f=/* @__PURE__ */t({RemarkRenderer:()=>b,default:()=>h,filterContents:()=>v}),y=/* @__PURE__ */e(n());function v(e,t){if("string"==typeof e)return p(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:p(n,t),content:r||a?p(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(d,{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,p=o.tooltip,c=o.placement,m=o.rootClose,d=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==p?void 0:p.icon)&&void 0!==e?e:s,w=null!==(t=null==p?void 0:p.label)&&void 0!==t?t:i,x=null!==(n=null==p?void 0:p.shape)&&void 0!==n?n:l,L=v(p||C,k);return j?y.createElement("div",{className:b("Remark",p&&p.className||r||"Remark--warning"),style:a,onClick:this.showModalTip(L)},this.renderLabel(E,w,b,x)):y.createElement(u,{classPrefix:h,classnames:b,tooltip:L,tooltipClassName:p&&p.tooltipClassName||R,placement:p&&p.placement||c,rootClose:p&&p.rootClose||m,trigger:p&&p.trigger||d,container:f||g||N.getModalContainer,delay:p&&p.delay},y.createElement("div",{className:b("Remark",p&&p.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([c({type:"remark"})],t)}(g);export{v as n,f as t};
|