@txgw/payout-components 0.6.0 → 1.0.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-D9TLFIT7.js +1 -0
- package/dist/Action-B-ZQiXEF.js +1 -0
- package/dist/Action-D_mwIN-5.js +1 -0
- package/dist/Alert-UVAjNb7s.js +1 -0
- package/dist/AnchorNav-BjgLgX6m.js +1 -0
- package/dist/App-ncbuqXE2.js +1 -0
- package/dist/Audio-B3lYr3U2.js +1 -0
- package/dist/Avatar-XqOgD9ui.js +1 -0
- package/dist/BarCode-B_ISp_TQ.js +1 -0
- package/dist/BarCode-Cg3O5s_0.js +1 -0
- package/dist/Breadcrumb-CTA88DWN.js +1 -0
- package/dist/ButtonGroup-pVY35HQ1.js +1 -0
- package/dist/ButtonGroupSelect-Bt6Jwo5u.js +1 -0
- package/dist/ButtonGroupSelect-C_qcxdHQ.js +1 -0
- package/dist/ButtonToolbar-CUNT7FK4.js +1 -0
- package/dist/CRUD-DRudIc-q.js +1 -0
- package/dist/CRUD2-CYGF0EMp.js +1 -0
- package/dist/Calendar-BW4diX9T.js +1 -0
- package/dist/Card-B_1cg_nQ.js +1 -0
- package/dist/Card-C4m8b89W.js +1 -0
- package/dist/Card2-BXG0mDni.js +1 -0
- package/dist/Cards-ak9W7Ggn.js +1 -0
- package/dist/Carousel-CxCXr052.js +1 -0
- package/dist/ChainedSelect-BcWT4XqI.js +1 -0
- package/dist/Chart-BxLGXl9u.js +1 -0
- package/dist/ChartRadios-DstdFZq_.js +1 -0
- package/dist/Checkbox-C4MOpWIk.js +1 -0
- package/dist/Checkbox-nA8maqiS.js +1 -0
- package/dist/Checkboxes-DaAz8fEe.js +1 -0
- package/dist/Code-C7wxKt-Z.js +1 -0
- package/dist/Collapse-B7DWMzHM.js +1 -0
- package/dist/Collapse-BW-pXRle.js +1 -0
- package/dist/CollapseGroup-C5HPq_8j.js +1 -0
- package/dist/Color-BpoN5ndM.js +1 -0
- package/dist/ColorPicker-B-eyCI0N.js +1 -0
- package/dist/ColumnToggler-BCOanQf7.js +1 -0
- package/dist/ColumnToggler-BNmJdTb9.js +1 -0
- package/dist/Combo-DVBtMl-s.js +1 -0
- package/dist/ConditionBuilder-bQtsEBIu.js +1 -0
- package/dist/Container-BCEndXiL.js +1 -0
- package/dist/Control-DBSbZmLZ.js +1 -0
- package/dist/Custom-CVj3O57n.js +1 -0
- package/dist/{Date-C9Kib09x.js → Date-CuBE2XD8.js} +1 -333
- package/dist/DateRange-Bd9o9Fl_.js +1 -0
- package/dist/Dialog-DzlFCRtq.js +1 -0
- package/dist/DiffEditor-Cccg35Ly.js +1 -0
- package/dist/Divider-gy0IUviz.js +1 -0
- package/dist/Drawer-C37JbURK.js +1 -0
- package/dist/DropDownButton-DO4hK0Kp.js +1 -0
- package/dist/Each-BfbwJEMb.js +1 -0
- package/dist/FieldSet-D3WMli0B.js +1 -0
- package/dist/FieldSet-D8oj-Vb4.js +1 -0
- package/dist/Flex-CXooKsRI.js +1 -0
- package/dist/Formula-KUisLb0j.js +1 -0
- package/dist/Grid2D-6cCqZG6j.js +1 -0
- package/dist/GridNav-Bvueqq-Q.js +1 -0
- package/dist/Group-EswEogaf.js +1 -0
- package/dist/HBox-DGIyZMV6.js +1 -0
- package/dist/HBox-DyS1JJHh.js +1 -0
- package/dist/Hidden-DwrGEKjM.js +1 -0
- package/dist/IFrame-BT4_03AI.js +1 -0
- package/dist/Icon-BNP1oNtQ.js +1 -0
- package/dist/IconPicker-CIL2Wob5.js +1 -0
- package/dist/IconPickerIcons-DN0pqJHt.js +1 -0
- package/dist/IconSelect-D1CPpZAU.js +1 -0
- package/dist/IconSelectStore-BM_zyU2d.js +1 -0
- package/dist/Image--xtRdgd5.js +1 -0
- package/dist/Image-BAenzG4k.js +1 -0
- package/dist/Images-zPCUHCyK.js +1 -0
- package/dist/InputArray-BnERrQT7.js +1 -0
- package/dist/InputCity-Bidd_z8i.js +1 -0
- package/dist/InputColor-D0Kf9p1Q.js +1 -0
- package/dist/InputDate-CzCxGUx_.js +1 -0
- package/dist/InputDateRange-Bp3owFpS.js +1 -0
- package/dist/InputExcel-DUdIptAN.js +1 -0
- package/dist/InputFile-DquJWe_S.js +1 -0
- package/dist/InputFile-X4G2zOvt.js +1 -0
- package/dist/InputFormula-Cu3Oc5xq.js +1 -0
- package/dist/InputGroup-RqgoJFcl.js +1 -0
- package/dist/InputImage-CdVzSsuR.js +1 -0
- package/dist/InputImage-Cv5FkWaC.js +1 -0
- package/dist/InputMonthRange-BTR1bISz.js +1 -0
- package/dist/InputNumber-C0rip8fu.js +1 -0
- package/dist/InputQuarterRange-D1X-Z2tN.js +1 -0
- package/dist/InputRange-Dq-ePI8S.js +1 -0
- package/dist/InputRating-_KtpPZno.js +1 -0
- package/dist/InputRepeat-D3Drjx3I.js +1 -0
- package/dist/InputRichText-0TZzQzcy.js +1 -0
- package/dist/InputRichText-CyfWV74o.js +1 -0
- package/dist/InputSignature-CXV7thvH.js +1 -0
- package/dist/InputSubForm-CQuaHTe3.js +1 -0
- package/dist/InputTable-CJ4Dl3xA.js +1 -0
- package/dist/InputTag-BAjQnJh1.js +1 -0
- package/dist/InputText-Ci8XzpKK.js +1 -0
- package/dist/InputTree-Coq2YfRD.js +1 -0
- package/dist/InputVerificationCode-CZbzrwa_.js +1 -0
- package/dist/InputYearRange-CbdR1nuY.js +1 -0
- package/dist/JSONSchema-Z9eJulgD.js +1 -0
- package/dist/JSONSchemaEditor-qtbO2bWX.js +1 -0
- package/dist/Json-I_TX2D01.js +1 -0
- package/dist/Link-DoCudSpW.js +1 -0
- package/dist/List-BItkFb-A.js +1 -0
- package/dist/List-Ccx0hLxM.js +1 -0
- package/dist/ListSelect-f6rDx6N2.js +1 -0
- package/dist/LocationPicker-CZd07tME.js +1 -0
- package/dist/Log--rbcIY4g.js +1 -0
- package/dist/Mapping-rpBDdw-o.js +1 -0
- package/dist/Markdown-BlxcmdTl.js +1 -0
- package/dist/Markdown-M8qWm8IY.js +1 -0
- package/dist/MatrixCheckboxes-DCnC8NGQ.js +1 -0
- package/dist/MultilineText-CHrvTjY_.js +1 -0
- package/dist/Nav-CDJbX6q3.js +1 -0
- package/dist/NestedSelect-Uxvg89Pe.js +1 -0
- package/dist/Number-tVXWVP4G.js +1 -0
- package/dist/OfficeViewer-Cz447nMa.js +1 -0
- package/dist/Operation-JkWrokFn.js +1 -0
- package/dist/Page-C5qOXz9A.js +1 -0
- package/dist/Pagination-DQoNu1Qo.js +1 -0
- package/dist/PaginationWrapper-07h0-dmz.js +1 -0
- package/dist/Panel--P2Ov47t.js +1 -0
- package/dist/Password-CF1feQa2.js +1 -0
- package/dist/Picker-CKV0_5vN.js +1 -0
- package/dist/Plain-CnRq3KDS.js +1 -0
- package/dist/PopUp-xCiesfUA.js +104 -0
- package/dist/Portlet-Agkkko8B.js +1 -0
- package/dist/Progress-D-JOmIgT.js +1 -0
- package/dist/Property-BoNnFGV9.js +1 -0
- package/dist/QRCode-BFfhBYxV.js +2 -0
- package/dist/Radio-BRNZ49gi.js +1 -0
- package/dist/Radios-0CT3XjKZ.js +1 -0
- package/dist/Remark-BuTyhR9e.js +1 -0
- package/dist/Remark-XZDS4Z3Y.js +1 -0
- package/dist/RichText-wfPXQmb8.js +1 -0
- package/dist/SearchBox-__1UKInO.js +1 -0
- package/dist/Select-D9nj7O4q.js +1 -0
- package/dist/Service-fGzhGL0m.js +1 -0
- package/dist/Shape-C9r17D5A.js +1 -0
- package/dist/Slider-BryEccA-.js +1 -0
- package/dist/SparkLine-CcOuk0we.js +1 -0
- package/dist/Spinner-qyJRJu1C.js +1 -0
- package/dist/StaticHoc-C0bGgnQS.js +1 -0
- package/dist/Status-BPtAA54m.js +1 -0
- package/dist/Steps-DsmYH15c.js +1 -0
- package/dist/Switch-CMkhfkPn.js +1 -0
- package/dist/SwitchContainer-BLxuSTyZ.js +1 -0
- package/dist/Table-DsxWjUvF.js +1 -0
- package/dist/Table-HvHD2tS0.js +1 -0
- package/dist/Table2-C4HNs_R1.js +1 -0
- package/dist/TableView-zfvmfF6E.js +1 -0
- package/dist/Tabs-BeQyEedg.js +1 -0
- package/dist/TabsTransfer-BsYcLplM.js +1 -0
- package/dist/TabsTransferPicker-SS6hg5Hc.js +1 -0
- package/dist/Tag-IL_v32Aa.js +1 -0
- package/dist/Tasks-D6GQavXw.js +1 -0
- package/dist/Textarea-Ck0rJ3Ff.js +1 -0
- package/dist/Timeline-BT7aVGPP.js +1 -0
- package/dist/TooltipWrapper-Bx_3339q.js +1 -0
- package/dist/Tpl-BiWl-0O_.js +1 -0
- package/dist/Transfer-BwyAe8c8.js +1 -0
- package/dist/Transfer-CldOhDuU.js +1 -0
- package/dist/TransferPicker-C2cth5_r.js +1 -0
- package/dist/TreeSelect-D9-PBXkV.js +1 -0
- package/dist/UUID-R41mBvtB.js +1 -0
- package/dist/UserSelect-Cq56ZLkZ.js +1 -0
- package/dist/VBox-BEdXFwFf.js +1 -0
- package/dist/Video-BIQhs4lA.js +1 -0
- package/dist/WebComponent-Vzfd9UEy.js +1 -0
- package/dist/Wizard-BwEpr22M.js +1 -0
- package/dist/Words-C7JrGNdU.js +1 -0
- package/dist/Wrapper-DIGr8a29.js +1 -0
- package/dist/_getTag-x788Ng9o.js +1 -0
- package/dist/beneficiary-form-_xPce615.js +10 -0
- package/dist/client-BoE-UyzU.js +1 -0
- package/dist/crypto-js-Cv2Y8hvs.js +1 -0
- package/dist/doc-CmSOujco.js +1 -0
- package/dist/es-Cn6dJrVn.js +1 -0
- package/dist/esm-CofciBhy.js +4 -0
- package/dist/esm-DyRrwLZv.js +1 -0
- package/dist/esm-vG8eylH_.js +28 -0
- package/dist/function-C8ta9DKb.js +3 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +0 -120
- package/dist/index.js +1 -96
- package/dist/isEqual-BxlJ5vH7.js +1 -0
- package/dist/main-CLaM-mkN.js +1 -0
- package/dist/mi18n-react.esm-BFa-Q7wX.js +1 -0
- package/dist/objectSpread2-yExSo67O.js +1 -0
- package/dist/omitBy-CFU0pICA.js +1 -0
- package/dist/papaparse.min-CU0u_rom.js +1 -0
- package/dist/react-BW4ssgUo.js +1 -0
- package/dist/react-cropper.es-zEJdZmmN.js +1 -0
- package/dist/react-dom-DmgFzc6z.js +1 -0
- package/dist/rolldown-runtime-DcYi-9oA.js +1 -0
- package/dist/tslib.es6-C2q27PUR.js +1 -0
- package/dist/xor-ziNg7OgH.js +1 -0
- package/package.json +20 -15
- package/dist/AMIS--SZXSfKF.js +0 -23
- package/dist/Action-D7O1nxY2.js +0 -10
- package/dist/Action-DpRShNiD.js +0 -646
- package/dist/Alert-sakO0sgo.js +0 -34
- package/dist/AnchorNav-1OrNpCPU.js +0 -88
- package/dist/App-mzRv6t1L.js +0 -213
- package/dist/Audio-CmGRzA8C.js +0 -324
- package/dist/Avatar-C0g_Dcsr.js +0 -75
- package/dist/BarCode-Bgr2-a69.js +0 -35
- package/dist/BarCode-f_fuunrs.js +0 -2708
- package/dist/Breadcrumb-3pb8787J.js +0 -38
- package/dist/ButtonGroup-DBJgP_U6.js +0 -16
- package/dist/ButtonGroupSelect-BV8FHgm0.js +0 -93
- package/dist/ButtonGroupSelect-Cl2irnYh.js +0 -8
- package/dist/ButtonToolbar-DMCBgh9w.js +0 -36
- package/dist/CRUD-DFP1DIcc.js +0 -1048
- package/dist/CRUD2-BGpsdJ3D.js +0 -660
- package/dist/Calendar-D_aFq70_.js +0 -18
- package/dist/Card-C54K-VRd.js +0 -14
- package/dist/Card-FmRg7dLO.js +0 -346
- package/dist/Card2-Blr9gGoC.js +0 -68
- package/dist/Cards-B7J3bYtx.js +0 -485
- package/dist/Carousel-Ba4JeK7n.js +0 -414
- package/dist/ChainedSelect-CUU7qCFQ.js +0 -212
- package/dist/Chart-BmOD9NEG.js +0 -276
- package/dist/ChartRadios-Bm7pnICh.js +0 -93
- package/dist/Checkbox-CcjG9Mv4.js +0 -157
- package/dist/Checkbox-yvPZaH8N.js +0 -10
- package/dist/Checkboxes-Babxqar9.js +0 -285
- package/dist/Code-B7FhTic-.js +0 -111
- package/dist/Collapse-BYdoEOZ2.js +0 -124
- package/dist/Collapse-C9riUcKK.js +0 -9
- package/dist/CollapseGroup-B7DmpWY1.js +0 -74
- package/dist/Color-BM1Qa0C1.js +0 -34
- package/dist/ColorPicker-BXmi_OWm.js +0 -5258
- package/dist/ColumnToggler-3QYyVjVf.js +0 -81
- package/dist/ColumnToggler-D0NlxwMq.js +0 -10
- package/dist/ColumnToggler-DLFwzPef.js +0 -228
- package/dist/Combo-BsouWVHB.js +0 -748
- package/dist/Combo-Cabifvbg.js +0 -9
- package/dist/ConditionBuilder-BacjsaTh.js +0 -113
- package/dist/Container-C5-66abH.js +0 -86
- package/dist/Control-krTArjIv.js +0 -38
- package/dist/Custom-DawY4LgO.js +0 -73
- package/dist/DateRange-D2lKQT_J.js +0 -34
- package/dist/Dialog-oNlQLXnk.js +0 -508
- package/dist/DiffEditor-DY8XdtJS.js +0 -104
- package/dist/Divider-BgpLhaqf.js +0 -70
- package/dist/Drawer-DslUxLot.js +0 -448
- package/dist/DropDownButton-BIuAagmC.js +0 -193
- package/dist/Each-CA8gaJkL.js +0 -79
- package/dist/FieldSet-Cg1pE5gA.js +0 -64
- package/dist/FieldSet-DVAa2H_Q.js +0 -10
- package/dist/Flex-Baz4bI9u.js +0 -99
- package/dist/Formula-ABhgdx_Q.js +0 -72
- package/dist/Grid2D-DmdOVnhu.js +0 -84
- package/dist/GridNav-lHAunT1M.js +0 -56
- package/dist/Group-7sGnjMli.js +0 -85
- package/dist/HBox-DxchKWfv.js +0 -7
- package/dist/HBox-s88aG83B.js +0 -48
- package/dist/Hidden-BrTWoL8d.js +0 -27
- package/dist/IFrame-DaZ1v2-9.js +0 -141
- package/dist/Icon-DNbdrsn8.js +0 -74
- package/dist/IconPicker-DqNlu5Zd.js +0 -230
- package/dist/IconPickerIcons-dHFcDHrv.js +0 -15
- package/dist/IconSelect-CvBITEcy.js +0 -254
- package/dist/IconSelectStore-CTqJPujB.js +0 -45
- package/dist/Image-BBs8tnny.js +0 -258
- package/dist/Image-DM9_Ii2b.js +0 -9
- package/dist/Images-cRmH380W.js +0 -377
- package/dist/InputArray-Dov-RBrP.js +0 -42
- package/dist/InputCity-owVpsIaD.js +0 -351
- package/dist/InputColor-DhVJhPp6.js +0 -53
- package/dist/InputDate-DLOwHbwT.js +0 -10
- package/dist/InputDate-DWaIvnAp.js +0 -292
- package/dist/InputDateRange-CnGNwIFe.js +0 -10
- package/dist/InputDateRange-Diqw3JLp.js +0 -170
- package/dist/InputExcel-BjWNYvnN.js +0 -427
- package/dist/InputFile-89BOwWJE.js +0 -601
- package/dist/InputFile-DOym0HDc.js +0 -10
- package/dist/InputFormula-CV5j31Ow.js +0 -75
- package/dist/InputGroup-C7O2ba0g.js +0 -112
- package/dist/InputImage-BF7DAF8L.js +0 -12
- package/dist/InputImage-DcsVQf7c.js +0 -834
- package/dist/InputMonthRange-BjD3hmwp.js +0 -76
- package/dist/InputNumber-DKMOkba-.js +0 -255
- package/dist/InputQuarterRange-DZKnkZ_s.js +0 -76
- package/dist/InputRange-DiHKf3tP.js +0 -266
- package/dist/InputRating-Bc8Od5b8.js +0 -115
- package/dist/InputRepeat-BhF5KVB2.js +0 -179
- package/dist/InputRichText-BBBdDFA2.js +0 -7
- package/dist/InputRichText-CieHn0fO.js +0 -198
- package/dist/InputSignature-CbfGjJlU.js +0 -495
- package/dist/InputSubForm-BkM_3Rjg.js +0 -236
- package/dist/InputTable-CgOqC6Pc.js +0 -900
- package/dist/InputTag-35kCFM5X.js +0 -464
- package/dist/InputText-BbEjGBtv.js +0 -541
- package/dist/InputTree-DchkyMbL.js +0 -311
- package/dist/InputVerificationCode-kMxc8wW7.js +0 -62
- package/dist/InputYearRange-WJKJeloR.js +0 -76
- package/dist/JSONSchema-Bs0EWcHb.js +0 -47
- package/dist/JSONSchemaEditor-BoAK9FOL.js +0 -66
- package/dist/Json-DFjy1HRw.js +0 -80
- package/dist/Link-nYGLB6gy.js +0 -57
- package/dist/List-D3183f4Z.js +0 -14
- package/dist/List-W3IAZR_6.js +0 -671
- package/dist/ListSelect-DWGbHVxd.js +0 -104
- package/dist/LocationPicker-2G9yOxtm.js +0 -121
- package/dist/Log-D6VU702y.js +0 -207
- package/dist/Mapping-BATMD_xR.js +0 -118
- package/dist/Markdown-Baxbu8lV.js +0 -53
- package/dist/Markdown-Cg-xahnQ.js +0 -6205
- package/dist/MatrixCheckboxes-B9hmFakW.js +0 -262
- package/dist/MultilineText-0fMQhUCY.js +0 -28
- package/dist/Nav-DHIehZOG.js +0 -639
- package/dist/NestedSelect-tQztH4PI.js +0 -517
- package/dist/Number-Cndoqeyx.js +0 -40
- package/dist/OfficeViewer-BVD_e5eZ.js +0 -169
- package/dist/Operation-DIv6n9dT.js +0 -36
- package/dist/Page-WoZtIIfk.js +0 -459
- package/dist/Pagination-DHvYHd_3.js +0 -61
- package/dist/PaginationWrapper-CtIJOXdw.js +0 -58
- package/dist/Panel-Dt4KQrKa.js +0 -156
- package/dist/Password-Wjfq7MSA.js +0 -45
- package/dist/Picker-Cu52ukRg.js +0 -488
- package/dist/Plain-DIlG753a.js +0 -62
- package/dist/PopUp-Bgkvnd4X.js +0 -2761
- package/dist/Portlet-3Nh2cWeq.js +0 -107
- package/dist/Progress-Dh2FTsky.js +0 -89
- package/dist/Property-DRSklFlT.js +0 -72
- package/dist/QRCode-BeUD-g8-.js +0 -1139
- package/dist/Radio-DrJJfNFI.js +0 -89
- package/dist/Radios-CL3mreXa.js +0 -176
- package/dist/Remark-Cmo-r6dp.js +0 -81
- package/dist/Remark-DuAbEmCW.js +0 -9
- package/dist/RichText-jkERm8rC.js +0 -13807
- package/dist/SearchBox-CTxSMcV2.js +0 -112
- package/dist/Select-D3LTuHwe.js +0 -362
- package/dist/Service-CN2v_Z9z.js +0 -347
- package/dist/Shape-Bi93tLCN.js +0 -37
- package/dist/Slider-C0jqeBGt.js +0 -78
- package/dist/SparkLine-Ce6-mdqG.js +0 -38
- package/dist/Spinner-DZDEct1A.js +0 -27
- package/dist/StaticHoc-BAdofX5w.js +0 -80
- package/dist/Status-CDC2e2_o.js +0 -93
- package/dist/Steps-CGyTaaVI.js +0 -271
- package/dist/Switch-QA0l7uEg.js +0 -100
- package/dist/SwitchContainer-zXvaPFlG.js +0 -93
- package/dist/Table-B8tWpiPU.js +0 -13
- package/dist/Table-DzGbNFxu.js +0 -3190
- package/dist/Table2-CQZ3und9.js +0 -1198
- package/dist/TableView-nlFBhvL1.js +0 -115
- package/dist/Tabs-XleB-2Mc.js +0 -487
- package/dist/TabsTransfer-CLLGXAkP.js +0 -188
- package/dist/TabsTransfer-Cs_Rg0TU.js +0 -11
- package/dist/TabsTransferPicker-VA3Vlla-.js +0 -99
- package/dist/Tag-tr5RKBfl.js +0 -75
- package/dist/Tasks-C2-ayUd-.js +0 -305
- package/dist/Textarea-_KbIxQet.js +0 -132
- package/dist/Timeline-CctoJRQo.js +0 -87
- package/dist/TooltipWrapper-BGNr8U2K.js +0 -83
- package/dist/Tpl-C28lpITc.js +0 -152
- package/dist/Transfer-Hjc9zR8W.js +0 -288
- package/dist/Transfer-tYS9Rx8U.js +0 -10
- package/dist/TransferPicker-C7Wzyuct.js +0 -123
- package/dist/TreeSelect-DAlWCEqs.js +0 -456
- package/dist/UUID-B5UZnlxW.js +0 -33
- package/dist/UserSelect-DqZZQB83.js +0 -170
- package/dist/VBox-C1OZZT8-.js +0 -38
- package/dist/Video-C1FRwLLL.js +0 -4068
- package/dist/WebComponent-g8Zc9zXp.js +0 -29
- package/dist/Wizard-DkqCsGz-.js +0 -585
- package/dist/Words-DUuKqyIf.js +0 -113
- package/dist/Wrapper-DmZ78GYG.js +0 -39
- package/dist/_getTag-CWmGzIun.js +0 -509
- package/dist/beneficiary-form-DCl2L16P.js +0 -3773
- package/dist/client-BEyTOBXT.js +0 -26
- package/dist/crypto-js-DUFYRUag.js +0 -3694
- package/dist/doc-B-Im0Knb.js +0 -1731
- package/dist/es-CsUppg1O.js +0 -837
- package/dist/esm-Cj_BRpNI.js +0 -35832
- package/dist/esm-DEyK_c3W.js +0 -25349
- package/dist/esm-SCCPj-cs.js +0 -93004
- package/dist/function-CNJMA2ft.js +0 -3151
- package/dist/isEqual-E2NjjS0_.js +0 -641
- package/dist/main-Bf7MY24z.js +0 -4475
- package/dist/mi18n-react.esm-y-nzmW0A.js +0 -1138
- package/dist/objectSpread2-smpSKONV.js +0 -27
- package/dist/omitBy-CD5n2TA7.js +0 -39
- package/dist/papaparse.min-3xa9r8Qi.js +0 -496
- package/dist/react-RxxVsDMo.js +0 -1205
- package/dist/react-cropper.es-anJ2KE7h.js +0 -1260
- package/dist/react-dom-D1mxcNoQ.js +0 -16864
- package/dist/react-g40aymqL.js +0 -2
- package/dist/rolldown-runtime-DwW8Tac2.js +0 -21
- package/dist/tslib.es6-DJiA3ePV.js +0 -170
- package/dist/xor-D-ggRBpm.js +0 -20
package/dist/BarCode-f_fuunrs.js
DELETED
|
@@ -1,2708 +0,0 @@
|
|
|
1
|
-
import { s as __toESM, t as __commonJSMin } from "./rolldown-runtime-DwW8Tac2.js";
|
|
2
|
-
import { t as require_react } from "./react-RxxVsDMo.js";
|
|
3
|
-
import { i as __extends } from "./tslib.es6-DJiA3ePV.js";
|
|
4
|
-
import "./function-CNJMA2ft.js";
|
|
5
|
-
import "./isEqual-E2NjjS0_.js";
|
|
6
|
-
import { tt as themeable } from "./esm-DEyK_c3W.js";
|
|
7
|
-
import "./react-dom-D1mxcNoQ.js";
|
|
8
|
-
var require_Barcode = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
9
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
10
|
-
function I(s, I) {
|
|
11
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
12
|
-
}
|
|
13
|
-
s.default = function s(L, R) {
|
|
14
|
-
I(this, s), this.data = L, this.text = R.text || L, this.options = R;
|
|
15
|
-
};
|
|
16
|
-
})), require_CODE39 = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
17
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), s.CODE39 = void 0;
|
|
18
|
-
var I = function() {
|
|
19
|
-
function s(s, I) {
|
|
20
|
-
for (var L = 0; L < I.length; L++) {
|
|
21
|
-
var R = I[L];
|
|
22
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(s, R.key, R);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return function(I, L, R) {
|
|
26
|
-
return L && s(I.prototype, L), R && s(I, R), I;
|
|
27
|
-
};
|
|
28
|
-
}(), L = R(require_Barcode());
|
|
29
|
-
function R(s) {
|
|
30
|
-
return s && s.__esModule ? s : { default: s };
|
|
31
|
-
}
|
|
32
|
-
function z(s, I) {
|
|
33
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
34
|
-
}
|
|
35
|
-
function V(s, I) {
|
|
36
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
37
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
38
|
-
}
|
|
39
|
-
function H(s, I) {
|
|
40
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
41
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
42
|
-
value: s,
|
|
43
|
-
enumerable: !1,
|
|
44
|
-
writable: !0,
|
|
45
|
-
configurable: !0
|
|
46
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
47
|
-
}
|
|
48
|
-
var U = function(s) {
|
|
49
|
-
H(L, s);
|
|
50
|
-
function L(s, I) {
|
|
51
|
-
return z(this, L), s = s.toUpperCase(), I.mod43 && (s += J(X(s))), V(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, s, I));
|
|
52
|
-
}
|
|
53
|
-
return I(L, [{
|
|
54
|
-
key: "encode",
|
|
55
|
-
value: function() {
|
|
56
|
-
for (var s = K("*"), I = 0; I < this.data.length; I++) s += K(this.data[I]) + "0";
|
|
57
|
-
return s += K("*"), {
|
|
58
|
-
data: s,
|
|
59
|
-
text: this.text
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
}, {
|
|
63
|
-
key: "valid",
|
|
64
|
-
value: function() {
|
|
65
|
-
return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/) !== -1;
|
|
66
|
-
}
|
|
67
|
-
}]), L;
|
|
68
|
-
}(L.default), W = /* @__PURE__ */ "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%*".split(""), G = [
|
|
69
|
-
20957,
|
|
70
|
-
29783,
|
|
71
|
-
23639,
|
|
72
|
-
30485,
|
|
73
|
-
20951,
|
|
74
|
-
29813,
|
|
75
|
-
23669,
|
|
76
|
-
20855,
|
|
77
|
-
29789,
|
|
78
|
-
23645,
|
|
79
|
-
29975,
|
|
80
|
-
23831,
|
|
81
|
-
30533,
|
|
82
|
-
22295,
|
|
83
|
-
30149,
|
|
84
|
-
24005,
|
|
85
|
-
21623,
|
|
86
|
-
29981,
|
|
87
|
-
23837,
|
|
88
|
-
22301,
|
|
89
|
-
30023,
|
|
90
|
-
23879,
|
|
91
|
-
30545,
|
|
92
|
-
22343,
|
|
93
|
-
30161,
|
|
94
|
-
24017,
|
|
95
|
-
21959,
|
|
96
|
-
30065,
|
|
97
|
-
23921,
|
|
98
|
-
22385,
|
|
99
|
-
29015,
|
|
100
|
-
18263,
|
|
101
|
-
29141,
|
|
102
|
-
17879,
|
|
103
|
-
29045,
|
|
104
|
-
18293,
|
|
105
|
-
17783,
|
|
106
|
-
29021,
|
|
107
|
-
18269,
|
|
108
|
-
17477,
|
|
109
|
-
17489,
|
|
110
|
-
17681,
|
|
111
|
-
20753,
|
|
112
|
-
35770
|
|
113
|
-
];
|
|
114
|
-
function K(s) {
|
|
115
|
-
return q(Y(s));
|
|
116
|
-
}
|
|
117
|
-
function q(s) {
|
|
118
|
-
return G[s].toString(2);
|
|
119
|
-
}
|
|
120
|
-
function J(s) {
|
|
121
|
-
return W[s];
|
|
122
|
-
}
|
|
123
|
-
function Y(s) {
|
|
124
|
-
return W.indexOf(s);
|
|
125
|
-
}
|
|
126
|
-
function X(s) {
|
|
127
|
-
for (var I = 0, L = 0; L < s.length; L++) I += Y(s[L]);
|
|
128
|
-
return I %= 43, I;
|
|
129
|
-
}
|
|
130
|
-
s.CODE39 = U;
|
|
131
|
-
})), require_constants$3 = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
132
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
133
|
-
var I;
|
|
134
|
-
function L(s, I, L) {
|
|
135
|
-
return I in s ? Object.defineProperty(s, I, {
|
|
136
|
-
value: L,
|
|
137
|
-
enumerable: !0,
|
|
138
|
-
configurable: !0,
|
|
139
|
-
writable: !0
|
|
140
|
-
}) : s[I] = L, s;
|
|
141
|
-
}
|
|
142
|
-
var R = s.SET_A = 0, z = s.SET_B = 1, B = s.SET_C = 2;
|
|
143
|
-
s.SHIFT = 98;
|
|
144
|
-
var V = s.START_A = 103, H = s.START_B = 104, U = s.START_C = 105;
|
|
145
|
-
s.MODULO = 103, s.STOP = 106, s.FNC1 = 207, s.SET_BY_CODE = (I = {}, L(I, V, R), L(I, H, z), L(I, U, B), I), s.SWAP = {
|
|
146
|
-
101: R,
|
|
147
|
-
100: z,
|
|
148
|
-
99: B
|
|
149
|
-
}, s.A_START_CHAR = "Ð", s.B_START_CHAR = "Ñ", s.C_START_CHAR = "Ò", s.A_CHARS = "[\0-_È-Ï]", s.B_CHARS = "[ -È-Ï]", s.C_CHARS = "(Ï*[0-9]{2}Ï*)", s.BARS = [
|
|
150
|
-
11011001100,
|
|
151
|
-
11001101100,
|
|
152
|
-
11001100110,
|
|
153
|
-
10010011e3,
|
|
154
|
-
10010001100,
|
|
155
|
-
10001001100,
|
|
156
|
-
10011001e3,
|
|
157
|
-
10011000100,
|
|
158
|
-
10001100100,
|
|
159
|
-
11001001e3,
|
|
160
|
-
11001000100,
|
|
161
|
-
11000100100,
|
|
162
|
-
10110011100,
|
|
163
|
-
10011011100,
|
|
164
|
-
10011001110,
|
|
165
|
-
10111001100,
|
|
166
|
-
10011101100,
|
|
167
|
-
10011100110,
|
|
168
|
-
11001110010,
|
|
169
|
-
11001011100,
|
|
170
|
-
11001001110,
|
|
171
|
-
11011100100,
|
|
172
|
-
11001110100,
|
|
173
|
-
11101101110,
|
|
174
|
-
11101001100,
|
|
175
|
-
11100101100,
|
|
176
|
-
11100100110,
|
|
177
|
-
11101100100,
|
|
178
|
-
11100110100,
|
|
179
|
-
11100110010,
|
|
180
|
-
11011011e3,
|
|
181
|
-
11011000110,
|
|
182
|
-
11000110110,
|
|
183
|
-
10100011e3,
|
|
184
|
-
10001011e3,
|
|
185
|
-
10001000110,
|
|
186
|
-
10110001e3,
|
|
187
|
-
10001101e3,
|
|
188
|
-
10001100010,
|
|
189
|
-
11010001e3,
|
|
190
|
-
11000101e3,
|
|
191
|
-
11000100010,
|
|
192
|
-
10110111e3,
|
|
193
|
-
10110001110,
|
|
194
|
-
10001101110,
|
|
195
|
-
10111011e3,
|
|
196
|
-
10111000110,
|
|
197
|
-
10001110110,
|
|
198
|
-
11101110110,
|
|
199
|
-
11010001110,
|
|
200
|
-
11000101110,
|
|
201
|
-
11011101e3,
|
|
202
|
-
11011100010,
|
|
203
|
-
11011101110,
|
|
204
|
-
11101011e3,
|
|
205
|
-
11101000110,
|
|
206
|
-
11100010110,
|
|
207
|
-
11101101e3,
|
|
208
|
-
11101100010,
|
|
209
|
-
11100011010,
|
|
210
|
-
11101111010,
|
|
211
|
-
11001000010,
|
|
212
|
-
11110001010,
|
|
213
|
-
1010011e4,
|
|
214
|
-
10100001100,
|
|
215
|
-
1001011e4,
|
|
216
|
-
10010000110,
|
|
217
|
-
10000101100,
|
|
218
|
-
10000100110,
|
|
219
|
-
1011001e4,
|
|
220
|
-
10110000100,
|
|
221
|
-
1001101e4,
|
|
222
|
-
10011000010,
|
|
223
|
-
10000110100,
|
|
224
|
-
10000110010,
|
|
225
|
-
11000010010,
|
|
226
|
-
1100101e4,
|
|
227
|
-
11110111010,
|
|
228
|
-
11000010100,
|
|
229
|
-
10001111010,
|
|
230
|
-
10100111100,
|
|
231
|
-
10010111100,
|
|
232
|
-
10010011110,
|
|
233
|
-
10111100100,
|
|
234
|
-
10011110100,
|
|
235
|
-
10011110010,
|
|
236
|
-
11110100100,
|
|
237
|
-
11110010100,
|
|
238
|
-
11110010010,
|
|
239
|
-
11011011110,
|
|
240
|
-
11011110110,
|
|
241
|
-
11110110110,
|
|
242
|
-
10101111e3,
|
|
243
|
-
10100011110,
|
|
244
|
-
10001011110,
|
|
245
|
-
10111101e3,
|
|
246
|
-
10111100010,
|
|
247
|
-
11110101e3,
|
|
248
|
-
11110100010,
|
|
249
|
-
10111011110,
|
|
250
|
-
10111101110,
|
|
251
|
-
11101011110,
|
|
252
|
-
11110101110,
|
|
253
|
-
11010000100,
|
|
254
|
-
1101001e4,
|
|
255
|
-
11010011100,
|
|
256
|
-
1100011101011
|
|
257
|
-
];
|
|
258
|
-
})), require_CODE128$1 = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
259
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
260
|
-
var I = function() {
|
|
261
|
-
function s(s, I) {
|
|
262
|
-
for (var L = 0; L < I.length; L++) {
|
|
263
|
-
var R = I[L];
|
|
264
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(s, R.key, R);
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
return function(I, L, R) {
|
|
268
|
-
return L && s(I.prototype, L), R && s(I, R), I;
|
|
269
|
-
};
|
|
270
|
-
}(), L = z(require_Barcode()), R = require_constants$3();
|
|
271
|
-
function z(s) {
|
|
272
|
-
return s && s.__esModule ? s : { default: s };
|
|
273
|
-
}
|
|
274
|
-
function V(s, I) {
|
|
275
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
276
|
-
}
|
|
277
|
-
function U(s, I) {
|
|
278
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
279
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
280
|
-
}
|
|
281
|
-
function W(s, I) {
|
|
282
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
283
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
284
|
-
value: s,
|
|
285
|
-
enumerable: !1,
|
|
286
|
-
writable: !0,
|
|
287
|
-
configurable: !0
|
|
288
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
289
|
-
}
|
|
290
|
-
s.default = function(s) {
|
|
291
|
-
W(L, s);
|
|
292
|
-
function L(s, I) {
|
|
293
|
-
V(this, L);
|
|
294
|
-
var R = U(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, s.substring(1), I));
|
|
295
|
-
return R.bytes = s.split("").map(function(s) {
|
|
296
|
-
return s.charCodeAt(0);
|
|
297
|
-
}), R;
|
|
298
|
-
}
|
|
299
|
-
return I(L, [
|
|
300
|
-
{
|
|
301
|
-
key: "valid",
|
|
302
|
-
value: function() {
|
|
303
|
-
return /^[\x00-\x7F\xC8-\xD3]+$/.test(this.data);
|
|
304
|
-
}
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
key: "encode",
|
|
308
|
-
value: function() {
|
|
309
|
-
var s = this.bytes, I = s.shift() - 105, z = R.SET_BY_CODE[I];
|
|
310
|
-
if (z === void 0) throw RangeError("The encoding does not start with a start character.");
|
|
311
|
-
this.shouldEncodeAsEan128() === !0 && s.unshift(R.FNC1);
|
|
312
|
-
var B = L.next(s, 1, z);
|
|
313
|
-
return {
|
|
314
|
-
text: this.text === this.data ? this.text.replace(/[^\x20-\x7E]/g, "") : this.text,
|
|
315
|
-
data: L.getBar(I) + B.result + L.getBar((B.checksum + I) % R.MODULO) + L.getBar(R.STOP)
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
key: "shouldEncodeAsEan128",
|
|
321
|
-
value: function() {
|
|
322
|
-
var s = this.options.ean128 || !1;
|
|
323
|
-
return typeof s == "string" && (s = s.toLowerCase() === "true"), s;
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
], [
|
|
327
|
-
{
|
|
328
|
-
key: "getBar",
|
|
329
|
-
value: function(s) {
|
|
330
|
-
return R.BARS[s] ? R.BARS[s].toString() : "";
|
|
331
|
-
}
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
key: "correctIndex",
|
|
335
|
-
value: function(s, I) {
|
|
336
|
-
if (I === R.SET_A) {
|
|
337
|
-
var L = s.shift();
|
|
338
|
-
return L < 32 ? L + 64 : L - 32;
|
|
339
|
-
} else if (I === R.SET_B) return s.shift() - 32;
|
|
340
|
-
else return (s.shift() - 48) * 10 + s.shift() - 48;
|
|
341
|
-
}
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
key: "next",
|
|
345
|
-
value: function(s, I, z) {
|
|
346
|
-
if (!s.length) return {
|
|
347
|
-
result: "",
|
|
348
|
-
checksum: 0
|
|
349
|
-
};
|
|
350
|
-
var B = void 0, V = void 0;
|
|
351
|
-
if (s[0] >= 200) {
|
|
352
|
-
V = s.shift() - 105;
|
|
353
|
-
var H = R.SWAP[V];
|
|
354
|
-
H === void 0 ? ((z === R.SET_A || z === R.SET_B) && V === R.SHIFT && (s[0] = z === R.SET_A ? s[0] > 95 ? s[0] - 96 : s[0] : s[0] < 32 ? s[0] + 96 : s[0]), B = L.next(s, I + 1, z)) : B = L.next(s, I + 1, H);
|
|
355
|
-
} else V = L.correctIndex(s, z), B = L.next(s, I + 1, z);
|
|
356
|
-
var U = L.getBar(V), W = V * I;
|
|
357
|
-
return {
|
|
358
|
-
result: U + B.result,
|
|
359
|
-
checksum: W + B.checksum
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
]), L;
|
|
364
|
-
}(L.default);
|
|
365
|
-
})), require_auto = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
366
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
367
|
-
var I = require_constants$3(), L = function(s) {
|
|
368
|
-
return s.match(/* @__PURE__ */ RegExp("^" + I.A_CHARS + "*"))[0].length;
|
|
369
|
-
}, R = function(s) {
|
|
370
|
-
return s.match(/* @__PURE__ */ RegExp("^" + I.B_CHARS + "*"))[0].length;
|
|
371
|
-
}, z = function(s) {
|
|
372
|
-
return s.match(/* @__PURE__ */ RegExp("^" + I.C_CHARS + "*"))[0];
|
|
373
|
-
};
|
|
374
|
-
function B(s, L) {
|
|
375
|
-
var R = L ? I.A_CHARS : I.B_CHARS, z = s.match(/* @__PURE__ */ RegExp("^(" + R + "+?)(([0-9]{2}){2,})([^0-9]|$)"));
|
|
376
|
-
if (z) return z[1] + "Ì" + V(s.substring(z[1].length));
|
|
377
|
-
var H = s.match(/* @__PURE__ */ RegExp("^" + R + "+"))[0];
|
|
378
|
-
return H.length === s.length ? s : H + String.fromCharCode(L ? 205 : 206) + B(s.substring(H.length), !L);
|
|
379
|
-
}
|
|
380
|
-
function V(s) {
|
|
381
|
-
var I = z(s), V = I.length;
|
|
382
|
-
if (V === s.length) return s;
|
|
383
|
-
s = s.substring(V);
|
|
384
|
-
var H = L(s) >= R(s);
|
|
385
|
-
return I + String.fromCharCode(H ? 206 : 205) + B(s, H);
|
|
386
|
-
}
|
|
387
|
-
s.default = function(s) {
|
|
388
|
-
var H = void 0;
|
|
389
|
-
if (z(s).length >= 2) H = I.C_START_CHAR + V(s);
|
|
390
|
-
else {
|
|
391
|
-
var U = L(s) > R(s);
|
|
392
|
-
H = (U ? I.A_START_CHAR : I.B_START_CHAR) + B(s, U);
|
|
393
|
-
}
|
|
394
|
-
return H.replace(/[\xCD\xCE]([^])[\xCD\xCE]/, function(s, I) {
|
|
395
|
-
return "Ë" + I;
|
|
396
|
-
});
|
|
397
|
-
};
|
|
398
|
-
})), require_CODE128_AUTO = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
399
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
400
|
-
var I = R(require_CODE128$1()), L = R(require_auto());
|
|
401
|
-
function R(s) {
|
|
402
|
-
return s && s.__esModule ? s : { default: s };
|
|
403
|
-
}
|
|
404
|
-
function z(s, I) {
|
|
405
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
406
|
-
}
|
|
407
|
-
function B(s, I) {
|
|
408
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
409
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
410
|
-
}
|
|
411
|
-
function V(s, I) {
|
|
412
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
413
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
414
|
-
value: s,
|
|
415
|
-
enumerable: !1,
|
|
416
|
-
writable: !0,
|
|
417
|
-
configurable: !0
|
|
418
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
419
|
-
}
|
|
420
|
-
s.default = function(s) {
|
|
421
|
-
V(I, s);
|
|
422
|
-
function I(s, R) {
|
|
423
|
-
if (z(this, I), /^[\x00-\x7F\xC8-\xD3]+$/.test(s)) var V = B(this, (I.__proto__ || Object.getPrototypeOf(I)).call(this, (0, L.default)(s), R));
|
|
424
|
-
else var V = B(this, (I.__proto__ || Object.getPrototypeOf(I)).call(this, s, R));
|
|
425
|
-
return B(V);
|
|
426
|
-
}
|
|
427
|
-
return I;
|
|
428
|
-
}(I.default);
|
|
429
|
-
})), require_CODE128A = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
430
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
431
|
-
var I = function() {
|
|
432
|
-
function s(s, I) {
|
|
433
|
-
for (var L = 0; L < I.length; L++) {
|
|
434
|
-
var R = I[L];
|
|
435
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(s, R.key, R);
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
return function(I, L, R) {
|
|
439
|
-
return L && s(I.prototype, L), R && s(I, R), I;
|
|
440
|
-
};
|
|
441
|
-
}(), L = z(require_CODE128$1()), R = require_constants$3();
|
|
442
|
-
function z(s) {
|
|
443
|
-
return s && s.__esModule ? s : { default: s };
|
|
444
|
-
}
|
|
445
|
-
function B(s, I) {
|
|
446
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
447
|
-
}
|
|
448
|
-
function V(s, I) {
|
|
449
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
450
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
451
|
-
}
|
|
452
|
-
function W(s, I) {
|
|
453
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
454
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
455
|
-
value: s,
|
|
456
|
-
enumerable: !1,
|
|
457
|
-
writable: !0,
|
|
458
|
-
configurable: !0
|
|
459
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
460
|
-
}
|
|
461
|
-
s.default = function(s) {
|
|
462
|
-
W(L, s);
|
|
463
|
-
function L(s, I) {
|
|
464
|
-
return B(this, L), V(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, R.A_START_CHAR + s, I));
|
|
465
|
-
}
|
|
466
|
-
return I(L, [{
|
|
467
|
-
key: "valid",
|
|
468
|
-
value: function() {
|
|
469
|
-
return (/* @__PURE__ */ RegExp("^" + R.A_CHARS + "+$")).test(this.data);
|
|
470
|
-
}
|
|
471
|
-
}]), L;
|
|
472
|
-
}(L.default);
|
|
473
|
-
})), require_CODE128B = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
474
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
475
|
-
var I = function() {
|
|
476
|
-
function s(s, I) {
|
|
477
|
-
for (var L = 0; L < I.length; L++) {
|
|
478
|
-
var R = I[L];
|
|
479
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(s, R.key, R);
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
return function(I, L, R) {
|
|
483
|
-
return L && s(I.prototype, L), R && s(I, R), I;
|
|
484
|
-
};
|
|
485
|
-
}(), L = z(require_CODE128$1()), R = require_constants$3();
|
|
486
|
-
function z(s) {
|
|
487
|
-
return s && s.__esModule ? s : { default: s };
|
|
488
|
-
}
|
|
489
|
-
function B(s, I) {
|
|
490
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
491
|
-
}
|
|
492
|
-
function V(s, I) {
|
|
493
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
494
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
495
|
-
}
|
|
496
|
-
function W(s, I) {
|
|
497
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
498
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
499
|
-
value: s,
|
|
500
|
-
enumerable: !1,
|
|
501
|
-
writable: !0,
|
|
502
|
-
configurable: !0
|
|
503
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
504
|
-
}
|
|
505
|
-
s.default = function(s) {
|
|
506
|
-
W(L, s);
|
|
507
|
-
function L(s, I) {
|
|
508
|
-
return B(this, L), V(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, R.B_START_CHAR + s, I));
|
|
509
|
-
}
|
|
510
|
-
return I(L, [{
|
|
511
|
-
key: "valid",
|
|
512
|
-
value: function() {
|
|
513
|
-
return (/* @__PURE__ */ RegExp("^" + R.B_CHARS + "+$")).test(this.data);
|
|
514
|
-
}
|
|
515
|
-
}]), L;
|
|
516
|
-
}(L.default);
|
|
517
|
-
})), require_CODE128C = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
518
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
519
|
-
var I = function() {
|
|
520
|
-
function s(s, I) {
|
|
521
|
-
for (var L = 0; L < I.length; L++) {
|
|
522
|
-
var R = I[L];
|
|
523
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(s, R.key, R);
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
return function(I, L, R) {
|
|
527
|
-
return L && s(I.prototype, L), R && s(I, R), I;
|
|
528
|
-
};
|
|
529
|
-
}(), L = z(require_CODE128$1()), R = require_constants$3();
|
|
530
|
-
function z(s) {
|
|
531
|
-
return s && s.__esModule ? s : { default: s };
|
|
532
|
-
}
|
|
533
|
-
function B(s, I) {
|
|
534
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
535
|
-
}
|
|
536
|
-
function V(s, I) {
|
|
537
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
538
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
539
|
-
}
|
|
540
|
-
function W(s, I) {
|
|
541
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
542
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
543
|
-
value: s,
|
|
544
|
-
enumerable: !1,
|
|
545
|
-
writable: !0,
|
|
546
|
-
configurable: !0
|
|
547
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
548
|
-
}
|
|
549
|
-
s.default = function(s) {
|
|
550
|
-
W(L, s);
|
|
551
|
-
function L(s, I) {
|
|
552
|
-
return B(this, L), V(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, R.C_START_CHAR + s, I));
|
|
553
|
-
}
|
|
554
|
-
return I(L, [{
|
|
555
|
-
key: "valid",
|
|
556
|
-
value: function() {
|
|
557
|
-
return (/* @__PURE__ */ RegExp("^" + R.C_CHARS + "+$")).test(this.data);
|
|
558
|
-
}
|
|
559
|
-
}]), L;
|
|
560
|
-
}(L.default);
|
|
561
|
-
})), require_CODE128 = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
562
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), s.CODE128C = s.CODE128B = s.CODE128A = s.CODE128 = void 0;
|
|
563
|
-
var I = B(require_CODE128_AUTO()), L = B(require_CODE128A()), R = B(require_CODE128B()), z = B(require_CODE128C());
|
|
564
|
-
function B(s) {
|
|
565
|
-
return s && s.__esModule ? s : { default: s };
|
|
566
|
-
}
|
|
567
|
-
s.CODE128 = I.default, s.CODE128A = L.default, s.CODE128B = R.default, s.CODE128C = z.default;
|
|
568
|
-
})), require_constants$2 = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
569
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), s.SIDE_BIN = "101", s.MIDDLE_BIN = "01010", s.BINARIES = {
|
|
570
|
-
L: [
|
|
571
|
-
"0001101",
|
|
572
|
-
"0011001",
|
|
573
|
-
"0010011",
|
|
574
|
-
"0111101",
|
|
575
|
-
"0100011",
|
|
576
|
-
"0110001",
|
|
577
|
-
"0101111",
|
|
578
|
-
"0111011",
|
|
579
|
-
"0110111",
|
|
580
|
-
"0001011"
|
|
581
|
-
],
|
|
582
|
-
G: [
|
|
583
|
-
"0100111",
|
|
584
|
-
"0110011",
|
|
585
|
-
"0011011",
|
|
586
|
-
"0100001",
|
|
587
|
-
"0011101",
|
|
588
|
-
"0111001",
|
|
589
|
-
"0000101",
|
|
590
|
-
"0010001",
|
|
591
|
-
"0001001",
|
|
592
|
-
"0010111"
|
|
593
|
-
],
|
|
594
|
-
R: [
|
|
595
|
-
"1110010",
|
|
596
|
-
"1100110",
|
|
597
|
-
"1101100",
|
|
598
|
-
"1000010",
|
|
599
|
-
"1011100",
|
|
600
|
-
"1001110",
|
|
601
|
-
"1010000",
|
|
602
|
-
"1000100",
|
|
603
|
-
"1001000",
|
|
604
|
-
"1110100"
|
|
605
|
-
],
|
|
606
|
-
O: [
|
|
607
|
-
"0001101",
|
|
608
|
-
"0011001",
|
|
609
|
-
"0010011",
|
|
610
|
-
"0111101",
|
|
611
|
-
"0100011",
|
|
612
|
-
"0110001",
|
|
613
|
-
"0101111",
|
|
614
|
-
"0111011",
|
|
615
|
-
"0110111",
|
|
616
|
-
"0001011"
|
|
617
|
-
],
|
|
618
|
-
E: [
|
|
619
|
-
"0100111",
|
|
620
|
-
"0110011",
|
|
621
|
-
"0011011",
|
|
622
|
-
"0100001",
|
|
623
|
-
"0011101",
|
|
624
|
-
"0111001",
|
|
625
|
-
"0000101",
|
|
626
|
-
"0010001",
|
|
627
|
-
"0001001",
|
|
628
|
-
"0010111"
|
|
629
|
-
]
|
|
630
|
-
}, s.EAN2_STRUCTURE = [
|
|
631
|
-
"LL",
|
|
632
|
-
"LG",
|
|
633
|
-
"GL",
|
|
634
|
-
"GG"
|
|
635
|
-
], s.EAN5_STRUCTURE = [
|
|
636
|
-
"GGLLL",
|
|
637
|
-
"GLGLL",
|
|
638
|
-
"GLLGL",
|
|
639
|
-
"GLLLG",
|
|
640
|
-
"LGGLL",
|
|
641
|
-
"LLGGL",
|
|
642
|
-
"LLLGG",
|
|
643
|
-
"LGLGL",
|
|
644
|
-
"LGLLG",
|
|
645
|
-
"LLGLG"
|
|
646
|
-
], s.EAN13_STRUCTURE = [
|
|
647
|
-
"LLLLLL",
|
|
648
|
-
"LLGLGG",
|
|
649
|
-
"LLGGLG",
|
|
650
|
-
"LLGGGL",
|
|
651
|
-
"LGLLGG",
|
|
652
|
-
"LGGLLG",
|
|
653
|
-
"LGGGLL",
|
|
654
|
-
"LGLGLG",
|
|
655
|
-
"LGLGGL",
|
|
656
|
-
"LGGLGL"
|
|
657
|
-
];
|
|
658
|
-
})), require_encoder = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
659
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
660
|
-
var I = require_constants$2();
|
|
661
|
-
s.default = function(s, L, R) {
|
|
662
|
-
var z = s.split("").map(function(s, R) {
|
|
663
|
-
return I.BINARIES[L[R]];
|
|
664
|
-
}).map(function(I, L) {
|
|
665
|
-
return I ? I[s[L]] : "";
|
|
666
|
-
});
|
|
667
|
-
if (R) {
|
|
668
|
-
var B = s.length - 1;
|
|
669
|
-
z = z.map(function(s, I) {
|
|
670
|
-
return I < B ? s + R : s;
|
|
671
|
-
});
|
|
672
|
-
}
|
|
673
|
-
return z.join("");
|
|
674
|
-
};
|
|
675
|
-
})), require_EAN = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
676
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
677
|
-
var I = function() {
|
|
678
|
-
function s(s, I) {
|
|
679
|
-
for (var L = 0; L < I.length; L++) {
|
|
680
|
-
var R = I[L];
|
|
681
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(s, R.key, R);
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
return function(I, L, R) {
|
|
685
|
-
return L && s(I.prototype, L), R && s(I, R), I;
|
|
686
|
-
};
|
|
687
|
-
}(), L = require_constants$2(), R = V(require_encoder()), z = V(require_Barcode());
|
|
688
|
-
function V(s) {
|
|
689
|
-
return s && s.__esModule ? s : { default: s };
|
|
690
|
-
}
|
|
691
|
-
function H(s, I) {
|
|
692
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
693
|
-
}
|
|
694
|
-
function U(s, I) {
|
|
695
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
696
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
697
|
-
}
|
|
698
|
-
function W(s, I) {
|
|
699
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
700
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
701
|
-
value: s,
|
|
702
|
-
enumerable: !1,
|
|
703
|
-
writable: !0,
|
|
704
|
-
configurable: !0
|
|
705
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
706
|
-
}
|
|
707
|
-
s.default = function(s) {
|
|
708
|
-
W(z, s);
|
|
709
|
-
function z(s, I) {
|
|
710
|
-
H(this, z);
|
|
711
|
-
var L = U(this, (z.__proto__ || Object.getPrototypeOf(z)).call(this, s, I));
|
|
712
|
-
return L.fontSize = !I.flat && I.fontSize > I.width * 10 ? I.width * 10 : I.fontSize, L.guardHeight = I.height + L.fontSize / 2 + I.textMargin, L;
|
|
713
|
-
}
|
|
714
|
-
return I(z, [
|
|
715
|
-
{
|
|
716
|
-
key: "encode",
|
|
717
|
-
value: function() {
|
|
718
|
-
return this.options.flat ? this.encodeFlat() : this.encodeGuarded();
|
|
719
|
-
}
|
|
720
|
-
},
|
|
721
|
-
{
|
|
722
|
-
key: "leftText",
|
|
723
|
-
value: function(s, I) {
|
|
724
|
-
return this.text.substr(s, I);
|
|
725
|
-
}
|
|
726
|
-
},
|
|
727
|
-
{
|
|
728
|
-
key: "leftEncode",
|
|
729
|
-
value: function(s, I) {
|
|
730
|
-
return (0, R.default)(s, I);
|
|
731
|
-
}
|
|
732
|
-
},
|
|
733
|
-
{
|
|
734
|
-
key: "rightText",
|
|
735
|
-
value: function(s, I) {
|
|
736
|
-
return this.text.substr(s, I);
|
|
737
|
-
}
|
|
738
|
-
},
|
|
739
|
-
{
|
|
740
|
-
key: "rightEncode",
|
|
741
|
-
value: function(s, I) {
|
|
742
|
-
return (0, R.default)(s, I);
|
|
743
|
-
}
|
|
744
|
-
},
|
|
745
|
-
{
|
|
746
|
-
key: "encodeGuarded",
|
|
747
|
-
value: function() {
|
|
748
|
-
var s = { fontSize: this.fontSize }, I = { height: this.guardHeight };
|
|
749
|
-
return [
|
|
750
|
-
{
|
|
751
|
-
data: L.SIDE_BIN,
|
|
752
|
-
options: I
|
|
753
|
-
},
|
|
754
|
-
{
|
|
755
|
-
data: this.leftEncode(),
|
|
756
|
-
text: this.leftText(),
|
|
757
|
-
options: s
|
|
758
|
-
},
|
|
759
|
-
{
|
|
760
|
-
data: L.MIDDLE_BIN,
|
|
761
|
-
options: I
|
|
762
|
-
},
|
|
763
|
-
{
|
|
764
|
-
data: this.rightEncode(),
|
|
765
|
-
text: this.rightText(),
|
|
766
|
-
options: s
|
|
767
|
-
},
|
|
768
|
-
{
|
|
769
|
-
data: L.SIDE_BIN,
|
|
770
|
-
options: I
|
|
771
|
-
}
|
|
772
|
-
];
|
|
773
|
-
}
|
|
774
|
-
},
|
|
775
|
-
{
|
|
776
|
-
key: "encodeFlat",
|
|
777
|
-
value: function() {
|
|
778
|
-
return {
|
|
779
|
-
data: [
|
|
780
|
-
L.SIDE_BIN,
|
|
781
|
-
this.leftEncode(),
|
|
782
|
-
L.MIDDLE_BIN,
|
|
783
|
-
this.rightEncode(),
|
|
784
|
-
L.SIDE_BIN
|
|
785
|
-
].join(""),
|
|
786
|
-
text: this.text
|
|
787
|
-
};
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
]), z;
|
|
791
|
-
}(z.default);
|
|
792
|
-
})), require_EAN13 = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
793
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
794
|
-
var I = function() {
|
|
795
|
-
function s(s, I) {
|
|
796
|
-
for (var L = 0; L < I.length; L++) {
|
|
797
|
-
var R = I[L];
|
|
798
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(s, R.key, R);
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
return function(I, L, R) {
|
|
802
|
-
return L && s(I.prototype, L), R && s(I, R), I;
|
|
803
|
-
};
|
|
804
|
-
}(), L = function s(I, L, R) {
|
|
805
|
-
I === null && (I = Function.prototype);
|
|
806
|
-
var z = Object.getOwnPropertyDescriptor(I, L);
|
|
807
|
-
if (z === void 0) {
|
|
808
|
-
var B = Object.getPrototypeOf(I);
|
|
809
|
-
return B === null ? void 0 : s(B, L, R);
|
|
810
|
-
} else if ("value" in z) return z.value;
|
|
811
|
-
else {
|
|
812
|
-
var V = z.get;
|
|
813
|
-
return V === void 0 ? void 0 : V.call(R);
|
|
814
|
-
}
|
|
815
|
-
}, R = require_constants$2(), z = B(require_EAN());
|
|
816
|
-
function B(s) {
|
|
817
|
-
return s && s.__esModule ? s : { default: s };
|
|
818
|
-
}
|
|
819
|
-
function V(s, I) {
|
|
820
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
821
|
-
}
|
|
822
|
-
function H(s, I) {
|
|
823
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
824
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
825
|
-
}
|
|
826
|
-
function U(s, I) {
|
|
827
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
828
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
829
|
-
value: s,
|
|
830
|
-
enumerable: !1,
|
|
831
|
-
writable: !0,
|
|
832
|
-
configurable: !0
|
|
833
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
834
|
-
}
|
|
835
|
-
var W = function(s) {
|
|
836
|
-
return (10 - s.substr(0, 12).split("").map(function(s) {
|
|
837
|
-
return +s;
|
|
838
|
-
}).reduce(function(s, I, L) {
|
|
839
|
-
return L % 2 ? s + I * 3 : s + I;
|
|
840
|
-
}, 0) % 10) % 10;
|
|
841
|
-
};
|
|
842
|
-
s.default = function(s) {
|
|
843
|
-
U(z, s);
|
|
844
|
-
function z(s, I) {
|
|
845
|
-
V(this, z), s.search(/^[0-9]{12}$/) !== -1 && (s += W(s));
|
|
846
|
-
var L = H(this, (z.__proto__ || Object.getPrototypeOf(z)).call(this, s, I));
|
|
847
|
-
return L.lastChar = I.lastChar, L;
|
|
848
|
-
}
|
|
849
|
-
return I(z, [
|
|
850
|
-
{
|
|
851
|
-
key: "valid",
|
|
852
|
-
value: function() {
|
|
853
|
-
return this.data.search(/^[0-9]{13}$/) !== -1 && +this.data[12] === W(this.data);
|
|
854
|
-
}
|
|
855
|
-
},
|
|
856
|
-
{
|
|
857
|
-
key: "leftText",
|
|
858
|
-
value: function() {
|
|
859
|
-
return L(z.prototype.__proto__ || Object.getPrototypeOf(z.prototype), "leftText", this).call(this, 1, 6);
|
|
860
|
-
}
|
|
861
|
-
},
|
|
862
|
-
{
|
|
863
|
-
key: "leftEncode",
|
|
864
|
-
value: function() {
|
|
865
|
-
var s = this.data.substr(1, 6), I = R.EAN13_STRUCTURE[this.data[0]];
|
|
866
|
-
return L(z.prototype.__proto__ || Object.getPrototypeOf(z.prototype), "leftEncode", this).call(this, s, I);
|
|
867
|
-
}
|
|
868
|
-
},
|
|
869
|
-
{
|
|
870
|
-
key: "rightText",
|
|
871
|
-
value: function() {
|
|
872
|
-
return L(z.prototype.__proto__ || Object.getPrototypeOf(z.prototype), "rightText", this).call(this, 7, 6);
|
|
873
|
-
}
|
|
874
|
-
},
|
|
875
|
-
{
|
|
876
|
-
key: "rightEncode",
|
|
877
|
-
value: function() {
|
|
878
|
-
var s = this.data.substr(7, 6);
|
|
879
|
-
return L(z.prototype.__proto__ || Object.getPrototypeOf(z.prototype), "rightEncode", this).call(this, s, "RRRRRR");
|
|
880
|
-
}
|
|
881
|
-
},
|
|
882
|
-
{
|
|
883
|
-
key: "encodeGuarded",
|
|
884
|
-
value: function() {
|
|
885
|
-
var s = L(z.prototype.__proto__ || Object.getPrototypeOf(z.prototype), "encodeGuarded", this).call(this);
|
|
886
|
-
return this.options.displayValue && (s.unshift({
|
|
887
|
-
data: "000000000000",
|
|
888
|
-
text: this.text.substr(0, 1),
|
|
889
|
-
options: {
|
|
890
|
-
textAlign: "left",
|
|
891
|
-
fontSize: this.fontSize
|
|
892
|
-
}
|
|
893
|
-
}), this.options.lastChar && (s.push({ data: "00" }), s.push({
|
|
894
|
-
data: "00000",
|
|
895
|
-
text: this.options.lastChar,
|
|
896
|
-
options: { fontSize: this.fontSize }
|
|
897
|
-
}))), s;
|
|
898
|
-
}
|
|
899
|
-
}
|
|
900
|
-
]), z;
|
|
901
|
-
}(z.default);
|
|
902
|
-
})), require_EAN8 = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
903
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
904
|
-
var I = function() {
|
|
905
|
-
function s(s, I) {
|
|
906
|
-
for (var L = 0; L < I.length; L++) {
|
|
907
|
-
var R = I[L];
|
|
908
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(s, R.key, R);
|
|
909
|
-
}
|
|
910
|
-
}
|
|
911
|
-
return function(I, L, R) {
|
|
912
|
-
return L && s(I.prototype, L), R && s(I, R), I;
|
|
913
|
-
};
|
|
914
|
-
}(), L = function s(I, L, R) {
|
|
915
|
-
I === null && (I = Function.prototype);
|
|
916
|
-
var z = Object.getOwnPropertyDescriptor(I, L);
|
|
917
|
-
if (z === void 0) {
|
|
918
|
-
var B = Object.getPrototypeOf(I);
|
|
919
|
-
return B === null ? void 0 : s(B, L, R);
|
|
920
|
-
} else if ("value" in z) return z.value;
|
|
921
|
-
else {
|
|
922
|
-
var V = z.get;
|
|
923
|
-
return V === void 0 ? void 0 : V.call(R);
|
|
924
|
-
}
|
|
925
|
-
}, R = z(require_EAN());
|
|
926
|
-
function z(s) {
|
|
927
|
-
return s && s.__esModule ? s : { default: s };
|
|
928
|
-
}
|
|
929
|
-
function B(s, I) {
|
|
930
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
931
|
-
}
|
|
932
|
-
function V(s, I) {
|
|
933
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
934
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
935
|
-
}
|
|
936
|
-
function H(s, I) {
|
|
937
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
938
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
939
|
-
value: s,
|
|
940
|
-
enumerable: !1,
|
|
941
|
-
writable: !0,
|
|
942
|
-
configurable: !0
|
|
943
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
944
|
-
}
|
|
945
|
-
var U = function(s) {
|
|
946
|
-
return (10 - s.substr(0, 7).split("").map(function(s) {
|
|
947
|
-
return +s;
|
|
948
|
-
}).reduce(function(s, I, L) {
|
|
949
|
-
return L % 2 ? s + I : s + I * 3;
|
|
950
|
-
}, 0) % 10) % 10;
|
|
951
|
-
};
|
|
952
|
-
s.default = function(s) {
|
|
953
|
-
H(R, s);
|
|
954
|
-
function R(s, I) {
|
|
955
|
-
return B(this, R), s.search(/^[0-9]{7}$/) !== -1 && (s += U(s)), V(this, (R.__proto__ || Object.getPrototypeOf(R)).call(this, s, I));
|
|
956
|
-
}
|
|
957
|
-
return I(R, [
|
|
958
|
-
{
|
|
959
|
-
key: "valid",
|
|
960
|
-
value: function() {
|
|
961
|
-
return this.data.search(/^[0-9]{8}$/) !== -1 && +this.data[7] === U(this.data);
|
|
962
|
-
}
|
|
963
|
-
},
|
|
964
|
-
{
|
|
965
|
-
key: "leftText",
|
|
966
|
-
value: function() {
|
|
967
|
-
return L(R.prototype.__proto__ || Object.getPrototypeOf(R.prototype), "leftText", this).call(this, 0, 4);
|
|
968
|
-
}
|
|
969
|
-
},
|
|
970
|
-
{
|
|
971
|
-
key: "leftEncode",
|
|
972
|
-
value: function() {
|
|
973
|
-
var s = this.data.substr(0, 4);
|
|
974
|
-
return L(R.prototype.__proto__ || Object.getPrototypeOf(R.prototype), "leftEncode", this).call(this, s, "LLLL");
|
|
975
|
-
}
|
|
976
|
-
},
|
|
977
|
-
{
|
|
978
|
-
key: "rightText",
|
|
979
|
-
value: function() {
|
|
980
|
-
return L(R.prototype.__proto__ || Object.getPrototypeOf(R.prototype), "rightText", this).call(this, 4, 4);
|
|
981
|
-
}
|
|
982
|
-
},
|
|
983
|
-
{
|
|
984
|
-
key: "rightEncode",
|
|
985
|
-
value: function() {
|
|
986
|
-
var s = this.data.substr(4, 4);
|
|
987
|
-
return L(R.prototype.__proto__ || Object.getPrototypeOf(R.prototype), "rightEncode", this).call(this, s, "RRRR");
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
]), R;
|
|
991
|
-
}(R.default);
|
|
992
|
-
})), require_EAN5 = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
993
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
994
|
-
var I = function() {
|
|
995
|
-
function s(s, I) {
|
|
996
|
-
for (var L = 0; L < I.length; L++) {
|
|
997
|
-
var R = I[L];
|
|
998
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(s, R.key, R);
|
|
999
|
-
}
|
|
1000
|
-
}
|
|
1001
|
-
return function(I, L, R) {
|
|
1002
|
-
return L && s(I.prototype, L), R && s(I, R), I;
|
|
1003
|
-
};
|
|
1004
|
-
}(), L = require_constants$2(), R = V(require_encoder()), z = V(require_Barcode());
|
|
1005
|
-
function V(s) {
|
|
1006
|
-
return s && s.__esModule ? s : { default: s };
|
|
1007
|
-
}
|
|
1008
|
-
function H(s, I) {
|
|
1009
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
1010
|
-
}
|
|
1011
|
-
function U(s, I) {
|
|
1012
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1013
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
1014
|
-
}
|
|
1015
|
-
function W(s, I) {
|
|
1016
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
1017
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
1018
|
-
value: s,
|
|
1019
|
-
enumerable: !1,
|
|
1020
|
-
writable: !0,
|
|
1021
|
-
configurable: !0
|
|
1022
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
1023
|
-
}
|
|
1024
|
-
var G = function(s) {
|
|
1025
|
-
return s.split("").map(function(s) {
|
|
1026
|
-
return +s;
|
|
1027
|
-
}).reduce(function(s, I, L) {
|
|
1028
|
-
return L % 2 ? s + I * 9 : s + I * 3;
|
|
1029
|
-
}, 0) % 10;
|
|
1030
|
-
};
|
|
1031
|
-
s.default = function(s) {
|
|
1032
|
-
W(z, s);
|
|
1033
|
-
function z(s, I) {
|
|
1034
|
-
return H(this, z), U(this, (z.__proto__ || Object.getPrototypeOf(z)).call(this, s, I));
|
|
1035
|
-
}
|
|
1036
|
-
return I(z, [{
|
|
1037
|
-
key: "valid",
|
|
1038
|
-
value: function() {
|
|
1039
|
-
return this.data.search(/^[0-9]{5}$/) !== -1;
|
|
1040
|
-
}
|
|
1041
|
-
}, {
|
|
1042
|
-
key: "encode",
|
|
1043
|
-
value: function() {
|
|
1044
|
-
var s = L.EAN5_STRUCTURE[G(this.data)];
|
|
1045
|
-
return {
|
|
1046
|
-
data: "1011" + (0, R.default)(this.data, s, "01"),
|
|
1047
|
-
text: this.text
|
|
1048
|
-
};
|
|
1049
|
-
}
|
|
1050
|
-
}]), z;
|
|
1051
|
-
}(z.default);
|
|
1052
|
-
})), require_EAN2 = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
1053
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
1054
|
-
var I = function() {
|
|
1055
|
-
function s(s, I) {
|
|
1056
|
-
for (var L = 0; L < I.length; L++) {
|
|
1057
|
-
var R = I[L];
|
|
1058
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(s, R.key, R);
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
return function(I, L, R) {
|
|
1062
|
-
return L && s(I.prototype, L), R && s(I, R), I;
|
|
1063
|
-
};
|
|
1064
|
-
}(), L = require_constants$2(), R = V(require_encoder()), z = V(require_Barcode());
|
|
1065
|
-
function V(s) {
|
|
1066
|
-
return s && s.__esModule ? s : { default: s };
|
|
1067
|
-
}
|
|
1068
|
-
function H(s, I) {
|
|
1069
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
1070
|
-
}
|
|
1071
|
-
function U(s, I) {
|
|
1072
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1073
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
1074
|
-
}
|
|
1075
|
-
function W(s, I) {
|
|
1076
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
1077
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
1078
|
-
value: s,
|
|
1079
|
-
enumerable: !1,
|
|
1080
|
-
writable: !0,
|
|
1081
|
-
configurable: !0
|
|
1082
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
1083
|
-
}
|
|
1084
|
-
s.default = function(s) {
|
|
1085
|
-
W(z, s);
|
|
1086
|
-
function z(s, I) {
|
|
1087
|
-
return H(this, z), U(this, (z.__proto__ || Object.getPrototypeOf(z)).call(this, s, I));
|
|
1088
|
-
}
|
|
1089
|
-
return I(z, [{
|
|
1090
|
-
key: "valid",
|
|
1091
|
-
value: function() {
|
|
1092
|
-
return this.data.search(/^[0-9]{2}$/) !== -1;
|
|
1093
|
-
}
|
|
1094
|
-
}, {
|
|
1095
|
-
key: "encode",
|
|
1096
|
-
value: function() {
|
|
1097
|
-
var s = L.EAN2_STRUCTURE[parseInt(this.data) % 4];
|
|
1098
|
-
return {
|
|
1099
|
-
data: "1011" + (0, R.default)(this.data, s, "01"),
|
|
1100
|
-
text: this.text
|
|
1101
|
-
};
|
|
1102
|
-
}
|
|
1103
|
-
}]), z;
|
|
1104
|
-
}(z.default);
|
|
1105
|
-
})), require_UPC = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
1106
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
1107
|
-
var I = function() {
|
|
1108
|
-
function s(s, I) {
|
|
1109
|
-
for (var L = 0; L < I.length; L++) {
|
|
1110
|
-
var R = I[L];
|
|
1111
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(s, R.key, R);
|
|
1112
|
-
}
|
|
1113
|
-
}
|
|
1114
|
-
return function(I, L, R) {
|
|
1115
|
-
return L && s(I.prototype, L), R && s(I, R), I;
|
|
1116
|
-
};
|
|
1117
|
-
}();
|
|
1118
|
-
s.checksum = G;
|
|
1119
|
-
var L = z(require_encoder()), R = z(require_Barcode());
|
|
1120
|
-
function z(s) {
|
|
1121
|
-
return s && s.__esModule ? s : { default: s };
|
|
1122
|
-
}
|
|
1123
|
-
function V(s, I) {
|
|
1124
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
1125
|
-
}
|
|
1126
|
-
function H(s, I) {
|
|
1127
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1128
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
1129
|
-
}
|
|
1130
|
-
function U(s, I) {
|
|
1131
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
1132
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
1133
|
-
value: s,
|
|
1134
|
-
enumerable: !1,
|
|
1135
|
-
writable: !0,
|
|
1136
|
-
configurable: !0
|
|
1137
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
1138
|
-
}
|
|
1139
|
-
var W = function(s) {
|
|
1140
|
-
U(R, s);
|
|
1141
|
-
function R(s, I) {
|
|
1142
|
-
V(this, R), s.search(/^[0-9]{11}$/) !== -1 && (s += G(s));
|
|
1143
|
-
var L = H(this, (R.__proto__ || Object.getPrototypeOf(R)).call(this, s, I));
|
|
1144
|
-
return L.displayValue = I.displayValue, I.fontSize > I.width * 10 ? L.fontSize = I.width * 10 : L.fontSize = I.fontSize, L.guardHeight = I.height + L.fontSize / 2 + I.textMargin, L;
|
|
1145
|
-
}
|
|
1146
|
-
return I(R, [
|
|
1147
|
-
{
|
|
1148
|
-
key: "valid",
|
|
1149
|
-
value: function() {
|
|
1150
|
-
return this.data.search(/^[0-9]{12}$/) !== -1 && this.data[11] == G(this.data);
|
|
1151
|
-
}
|
|
1152
|
-
},
|
|
1153
|
-
{
|
|
1154
|
-
key: "encode",
|
|
1155
|
-
value: function() {
|
|
1156
|
-
return this.options.flat ? this.flatEncoding() : this.guardedEncoding();
|
|
1157
|
-
}
|
|
1158
|
-
},
|
|
1159
|
-
{
|
|
1160
|
-
key: "flatEncoding",
|
|
1161
|
-
value: function() {
|
|
1162
|
-
var s = "";
|
|
1163
|
-
return s += "101", s += (0, L.default)(this.data.substr(0, 6), "LLLLLL"), s += "01010", s += (0, L.default)(this.data.substr(6, 6), "RRRRRR"), s += "101", {
|
|
1164
|
-
data: s,
|
|
1165
|
-
text: this.text
|
|
1166
|
-
};
|
|
1167
|
-
}
|
|
1168
|
-
},
|
|
1169
|
-
{
|
|
1170
|
-
key: "guardedEncoding",
|
|
1171
|
-
value: function() {
|
|
1172
|
-
var s = [];
|
|
1173
|
-
return this.displayValue && s.push({
|
|
1174
|
-
data: "00000000",
|
|
1175
|
-
text: this.text.substr(0, 1),
|
|
1176
|
-
options: {
|
|
1177
|
-
textAlign: "left",
|
|
1178
|
-
fontSize: this.fontSize
|
|
1179
|
-
}
|
|
1180
|
-
}), s.push({
|
|
1181
|
-
data: "101" + (0, L.default)(this.data[0], "L"),
|
|
1182
|
-
options: { height: this.guardHeight }
|
|
1183
|
-
}), s.push({
|
|
1184
|
-
data: (0, L.default)(this.data.substr(1, 5), "LLLLL"),
|
|
1185
|
-
text: this.text.substr(1, 5),
|
|
1186
|
-
options: { fontSize: this.fontSize }
|
|
1187
|
-
}), s.push({
|
|
1188
|
-
data: "01010",
|
|
1189
|
-
options: { height: this.guardHeight }
|
|
1190
|
-
}), s.push({
|
|
1191
|
-
data: (0, L.default)(this.data.substr(6, 5), "RRRRR"),
|
|
1192
|
-
text: this.text.substr(6, 5),
|
|
1193
|
-
options: { fontSize: this.fontSize }
|
|
1194
|
-
}), s.push({
|
|
1195
|
-
data: (0, L.default)(this.data[11], "R") + "101",
|
|
1196
|
-
options: { height: this.guardHeight }
|
|
1197
|
-
}), this.displayValue && s.push({
|
|
1198
|
-
data: "00000000",
|
|
1199
|
-
text: this.text.substr(11, 1),
|
|
1200
|
-
options: {
|
|
1201
|
-
textAlign: "right",
|
|
1202
|
-
fontSize: this.fontSize
|
|
1203
|
-
}
|
|
1204
|
-
}), s;
|
|
1205
|
-
}
|
|
1206
|
-
}
|
|
1207
|
-
]), R;
|
|
1208
|
-
}(R.default);
|
|
1209
|
-
function G(s) {
|
|
1210
|
-
var I = 0, L;
|
|
1211
|
-
for (L = 1; L < 11; L += 2) I += parseInt(s[L]);
|
|
1212
|
-
for (L = 0; L < 11; L += 2) I += parseInt(s[L]) * 3;
|
|
1213
|
-
return (10 - I % 10) % 10;
|
|
1214
|
-
}
|
|
1215
|
-
s.default = W;
|
|
1216
|
-
})), require_UPCE = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
1217
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
1218
|
-
var I = function() {
|
|
1219
|
-
function s(s, I) {
|
|
1220
|
-
for (var L = 0; L < I.length; L++) {
|
|
1221
|
-
var R = I[L];
|
|
1222
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(s, R.key, R);
|
|
1223
|
-
}
|
|
1224
|
-
}
|
|
1225
|
-
return function(I, L, R) {
|
|
1226
|
-
return L && s(I.prototype, L), R && s(I, R), I;
|
|
1227
|
-
};
|
|
1228
|
-
}(), L = V(require_encoder()), R = V(require_Barcode()), z = require_UPC();
|
|
1229
|
-
function V(s) {
|
|
1230
|
-
return s && s.__esModule ? s : { default: s };
|
|
1231
|
-
}
|
|
1232
|
-
function H(s, I) {
|
|
1233
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
1234
|
-
}
|
|
1235
|
-
function U(s, I) {
|
|
1236
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1237
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
1238
|
-
}
|
|
1239
|
-
function W(s, I) {
|
|
1240
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
1241
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
1242
|
-
value: s,
|
|
1243
|
-
enumerable: !1,
|
|
1244
|
-
writable: !0,
|
|
1245
|
-
configurable: !0
|
|
1246
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
1247
|
-
}
|
|
1248
|
-
var G = [
|
|
1249
|
-
"XX00000XXX",
|
|
1250
|
-
"XX10000XXX",
|
|
1251
|
-
"XX20000XXX",
|
|
1252
|
-
"XXX00000XX",
|
|
1253
|
-
"XXXX00000X",
|
|
1254
|
-
"XXXXX00005",
|
|
1255
|
-
"XXXXX00006",
|
|
1256
|
-
"XXXXX00007",
|
|
1257
|
-
"XXXXX00008",
|
|
1258
|
-
"XXXXX00009"
|
|
1259
|
-
], K = [
|
|
1260
|
-
["EEEOOO", "OOOEEE"],
|
|
1261
|
-
["EEOEOO", "OOEOEE"],
|
|
1262
|
-
["EEOOEO", "OOEEOE"],
|
|
1263
|
-
["EEOOOE", "OOEEEO"],
|
|
1264
|
-
["EOEEOO", "OEOOEE"],
|
|
1265
|
-
["EOOEEO", "OEEOOE"],
|
|
1266
|
-
["EOOOEE", "OEEEOO"],
|
|
1267
|
-
["EOEOEO", "OEOEOE"],
|
|
1268
|
-
["EOEOOE", "OEOEEO"],
|
|
1269
|
-
["EOOEOE", "OEEOEO"]
|
|
1270
|
-
], q = function(s) {
|
|
1271
|
-
W(R, s);
|
|
1272
|
-
function R(s, I) {
|
|
1273
|
-
H(this, R);
|
|
1274
|
-
var L = U(this, (R.__proto__ || Object.getPrototypeOf(R)).call(this, s, I));
|
|
1275
|
-
if (L.isValid = !1, s.search(/^[0-9]{6}$/) !== -1) L.middleDigits = s, L.upcA = J(s, "0"), L.text = I.text || "" + L.upcA[0] + s + L.upcA[L.upcA.length - 1], L.isValid = !0;
|
|
1276
|
-
else if (s.search(/^[01][0-9]{7}$/) !== -1) if (L.middleDigits = s.substring(1, s.length - 1), L.upcA = J(L.middleDigits, s[0]), L.upcA[L.upcA.length - 1] === s[s.length - 1]) L.isValid = !0;
|
|
1277
|
-
else return U(L);
|
|
1278
|
-
else return U(L);
|
|
1279
|
-
return L.displayValue = I.displayValue, I.fontSize > I.width * 10 ? L.fontSize = I.width * 10 : L.fontSize = I.fontSize, L.guardHeight = I.height + L.fontSize / 2 + I.textMargin, L;
|
|
1280
|
-
}
|
|
1281
|
-
return I(R, [
|
|
1282
|
-
{
|
|
1283
|
-
key: "valid",
|
|
1284
|
-
value: function() {
|
|
1285
|
-
return this.isValid;
|
|
1286
|
-
}
|
|
1287
|
-
},
|
|
1288
|
-
{
|
|
1289
|
-
key: "encode",
|
|
1290
|
-
value: function() {
|
|
1291
|
-
return this.options.flat ? this.flatEncoding() : this.guardedEncoding();
|
|
1292
|
-
}
|
|
1293
|
-
},
|
|
1294
|
-
{
|
|
1295
|
-
key: "flatEncoding",
|
|
1296
|
-
value: function() {
|
|
1297
|
-
var s = "";
|
|
1298
|
-
return s += "101", s += this.encodeMiddleDigits(), s += "010101", {
|
|
1299
|
-
data: s,
|
|
1300
|
-
text: this.text
|
|
1301
|
-
};
|
|
1302
|
-
}
|
|
1303
|
-
},
|
|
1304
|
-
{
|
|
1305
|
-
key: "guardedEncoding",
|
|
1306
|
-
value: function() {
|
|
1307
|
-
var s = [];
|
|
1308
|
-
return this.displayValue && s.push({
|
|
1309
|
-
data: "00000000",
|
|
1310
|
-
text: this.text[0],
|
|
1311
|
-
options: {
|
|
1312
|
-
textAlign: "left",
|
|
1313
|
-
fontSize: this.fontSize
|
|
1314
|
-
}
|
|
1315
|
-
}), s.push({
|
|
1316
|
-
data: "101",
|
|
1317
|
-
options: { height: this.guardHeight }
|
|
1318
|
-
}), s.push({
|
|
1319
|
-
data: this.encodeMiddleDigits(),
|
|
1320
|
-
text: this.text.substring(1, 7),
|
|
1321
|
-
options: { fontSize: this.fontSize }
|
|
1322
|
-
}), s.push({
|
|
1323
|
-
data: "010101",
|
|
1324
|
-
options: { height: this.guardHeight }
|
|
1325
|
-
}), this.displayValue && s.push({
|
|
1326
|
-
data: "00000000",
|
|
1327
|
-
text: this.text[7],
|
|
1328
|
-
options: {
|
|
1329
|
-
textAlign: "right",
|
|
1330
|
-
fontSize: this.fontSize
|
|
1331
|
-
}
|
|
1332
|
-
}), s;
|
|
1333
|
-
}
|
|
1334
|
-
},
|
|
1335
|
-
{
|
|
1336
|
-
key: "encodeMiddleDigits",
|
|
1337
|
-
value: function() {
|
|
1338
|
-
var s = this.upcA[0], I = this.upcA[this.upcA.length - 1], R = K[parseInt(I)][parseInt(s)];
|
|
1339
|
-
return (0, L.default)(this.middleDigits, R);
|
|
1340
|
-
}
|
|
1341
|
-
}
|
|
1342
|
-
]), R;
|
|
1343
|
-
}(R.default);
|
|
1344
|
-
function J(s, I) {
|
|
1345
|
-
for (var L = G[parseInt(s[s.length - 1])], R = "", B = 0, V = 0; V < L.length; V++) {
|
|
1346
|
-
var H = L[V];
|
|
1347
|
-
H === "X" ? R += s[B++] : R += H;
|
|
1348
|
-
}
|
|
1349
|
-
return R = "" + I + R, "" + R + (0, z.checksum)(R);
|
|
1350
|
-
}
|
|
1351
|
-
s.default = q;
|
|
1352
|
-
})), require_EAN_UPC = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
1353
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), s.UPCE = s.UPC = s.EAN2 = s.EAN5 = s.EAN8 = s.EAN13 = void 0;
|
|
1354
|
-
var I = H(require_EAN13()), L = H(require_EAN8()), R = H(require_EAN5()), z = H(require_EAN2()), B = H(require_UPC()), V = H(require_UPCE());
|
|
1355
|
-
function H(s) {
|
|
1356
|
-
return s && s.__esModule ? s : { default: s };
|
|
1357
|
-
}
|
|
1358
|
-
s.EAN13 = I.default, s.EAN8 = L.default, s.EAN5 = R.default, s.EAN2 = z.default, s.UPC = B.default, s.UPCE = V.default;
|
|
1359
|
-
})), require_constants$1 = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
1360
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), s.START_BIN = "1010", s.END_BIN = "11101", s.BINARIES = [
|
|
1361
|
-
"00110",
|
|
1362
|
-
"10001",
|
|
1363
|
-
"01001",
|
|
1364
|
-
"11000",
|
|
1365
|
-
"00101",
|
|
1366
|
-
"10100",
|
|
1367
|
-
"01100",
|
|
1368
|
-
"00011",
|
|
1369
|
-
"10010",
|
|
1370
|
-
"01010"
|
|
1371
|
-
];
|
|
1372
|
-
})), require_ITF$1 = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
1373
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
1374
|
-
var I = function() {
|
|
1375
|
-
function s(s, I) {
|
|
1376
|
-
for (var L = 0; L < I.length; L++) {
|
|
1377
|
-
var R = I[L];
|
|
1378
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(s, R.key, R);
|
|
1379
|
-
}
|
|
1380
|
-
}
|
|
1381
|
-
return function(I, L, R) {
|
|
1382
|
-
return L && s(I.prototype, L), R && s(I, R), I;
|
|
1383
|
-
};
|
|
1384
|
-
}(), L = require_constants$1(), R = z(require_Barcode());
|
|
1385
|
-
function z(s) {
|
|
1386
|
-
return s && s.__esModule ? s : { default: s };
|
|
1387
|
-
}
|
|
1388
|
-
function V(s, I) {
|
|
1389
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
1390
|
-
}
|
|
1391
|
-
function H(s, I) {
|
|
1392
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1393
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
1394
|
-
}
|
|
1395
|
-
function U(s, I) {
|
|
1396
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
1397
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
1398
|
-
value: s,
|
|
1399
|
-
enumerable: !1,
|
|
1400
|
-
writable: !0,
|
|
1401
|
-
configurable: !0
|
|
1402
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
1403
|
-
}
|
|
1404
|
-
s.default = function(s) {
|
|
1405
|
-
U(R, s);
|
|
1406
|
-
function R() {
|
|
1407
|
-
return V(this, R), H(this, (R.__proto__ || Object.getPrototypeOf(R)).apply(this, arguments));
|
|
1408
|
-
}
|
|
1409
|
-
return I(R, [
|
|
1410
|
-
{
|
|
1411
|
-
key: "valid",
|
|
1412
|
-
value: function() {
|
|
1413
|
-
return this.data.search(/^([0-9]{2})+$/) !== -1;
|
|
1414
|
-
}
|
|
1415
|
-
},
|
|
1416
|
-
{
|
|
1417
|
-
key: "encode",
|
|
1418
|
-
value: function() {
|
|
1419
|
-
var s = this, I = this.data.match(/.{2}/g).map(function(I) {
|
|
1420
|
-
return s.encodePair(I);
|
|
1421
|
-
}).join("");
|
|
1422
|
-
return {
|
|
1423
|
-
data: L.START_BIN + I + L.END_BIN,
|
|
1424
|
-
text: this.text
|
|
1425
|
-
};
|
|
1426
|
-
}
|
|
1427
|
-
},
|
|
1428
|
-
{
|
|
1429
|
-
key: "encodePair",
|
|
1430
|
-
value: function(s) {
|
|
1431
|
-
var I = L.BINARIES[s[1]];
|
|
1432
|
-
return L.BINARIES[s[0]].split("").map(function(s, L) {
|
|
1433
|
-
return (s === "1" ? "111" : "1") + (I[L] === "1" ? "000" : "0");
|
|
1434
|
-
}).join("");
|
|
1435
|
-
}
|
|
1436
|
-
}
|
|
1437
|
-
]), R;
|
|
1438
|
-
}(R.default);
|
|
1439
|
-
})), require_ITF14 = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
1440
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
1441
|
-
var I = function() {
|
|
1442
|
-
function s(s, I) {
|
|
1443
|
-
for (var L = 0; L < I.length; L++) {
|
|
1444
|
-
var R = I[L];
|
|
1445
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(s, R.key, R);
|
|
1446
|
-
}
|
|
1447
|
-
}
|
|
1448
|
-
return function(I, L, R) {
|
|
1449
|
-
return L && s(I.prototype, L), R && s(I, R), I;
|
|
1450
|
-
};
|
|
1451
|
-
}(), L = R(require_ITF$1());
|
|
1452
|
-
function R(s) {
|
|
1453
|
-
return s && s.__esModule ? s : { default: s };
|
|
1454
|
-
}
|
|
1455
|
-
function z(s, I) {
|
|
1456
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
1457
|
-
}
|
|
1458
|
-
function B(s, I) {
|
|
1459
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1460
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
1461
|
-
}
|
|
1462
|
-
function V(s, I) {
|
|
1463
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
1464
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
1465
|
-
value: s,
|
|
1466
|
-
enumerable: !1,
|
|
1467
|
-
writable: !0,
|
|
1468
|
-
configurable: !0
|
|
1469
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
1470
|
-
}
|
|
1471
|
-
var H = function(s) {
|
|
1472
|
-
var I = s.substr(0, 13).split("").map(function(s) {
|
|
1473
|
-
return parseInt(s, 10);
|
|
1474
|
-
}).reduce(function(s, I, L) {
|
|
1475
|
-
return s + I * (3 - L % 2 * 2);
|
|
1476
|
-
}, 0);
|
|
1477
|
-
return Math.ceil(I / 10) * 10 - I;
|
|
1478
|
-
};
|
|
1479
|
-
s.default = function(s) {
|
|
1480
|
-
V(L, s);
|
|
1481
|
-
function L(s, I) {
|
|
1482
|
-
return z(this, L), s.search(/^[0-9]{13}$/) !== -1 && (s += H(s)), B(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, s, I));
|
|
1483
|
-
}
|
|
1484
|
-
return I(L, [{
|
|
1485
|
-
key: "valid",
|
|
1486
|
-
value: function() {
|
|
1487
|
-
return this.data.search(/^[0-9]{14}$/) !== -1 && +this.data[13] === H(this.data);
|
|
1488
|
-
}
|
|
1489
|
-
}]), L;
|
|
1490
|
-
}(L.default);
|
|
1491
|
-
})), require_ITF = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
1492
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), s.ITF14 = s.ITF = void 0;
|
|
1493
|
-
var I = R(require_ITF$1()), L = R(require_ITF14());
|
|
1494
|
-
function R(s) {
|
|
1495
|
-
return s && s.__esModule ? s : { default: s };
|
|
1496
|
-
}
|
|
1497
|
-
s.ITF = I.default, s.ITF14 = L.default;
|
|
1498
|
-
})), require_MSI$1 = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
1499
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
1500
|
-
var I = function() {
|
|
1501
|
-
function s(s, I) {
|
|
1502
|
-
for (var L = 0; L < I.length; L++) {
|
|
1503
|
-
var R = I[L];
|
|
1504
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(s, R.key, R);
|
|
1505
|
-
}
|
|
1506
|
-
}
|
|
1507
|
-
return function(I, L, R) {
|
|
1508
|
-
return L && s(I.prototype, L), R && s(I, R), I;
|
|
1509
|
-
};
|
|
1510
|
-
}(), L = R(require_Barcode());
|
|
1511
|
-
function R(s) {
|
|
1512
|
-
return s && s.__esModule ? s : { default: s };
|
|
1513
|
-
}
|
|
1514
|
-
function z(s, I) {
|
|
1515
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
1516
|
-
}
|
|
1517
|
-
function V(s, I) {
|
|
1518
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1519
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
1520
|
-
}
|
|
1521
|
-
function H(s, I) {
|
|
1522
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
1523
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
1524
|
-
value: s,
|
|
1525
|
-
enumerable: !1,
|
|
1526
|
-
writable: !0,
|
|
1527
|
-
configurable: !0
|
|
1528
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
1529
|
-
}
|
|
1530
|
-
var U = function(s) {
|
|
1531
|
-
H(L, s);
|
|
1532
|
-
function L(s, I) {
|
|
1533
|
-
return z(this, L), V(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, s, I));
|
|
1534
|
-
}
|
|
1535
|
-
return I(L, [{
|
|
1536
|
-
key: "encode",
|
|
1537
|
-
value: function() {
|
|
1538
|
-
for (var s = "110", I = 0; I < this.data.length; I++) {
|
|
1539
|
-
var L = parseInt(this.data[I]).toString(2);
|
|
1540
|
-
L = W(L, 4 - L.length);
|
|
1541
|
-
for (var R = 0; R < L.length; R++) s += L[R] == "0" ? "100" : "110";
|
|
1542
|
-
}
|
|
1543
|
-
return s += "1001", {
|
|
1544
|
-
data: s,
|
|
1545
|
-
text: this.text
|
|
1546
|
-
};
|
|
1547
|
-
}
|
|
1548
|
-
}, {
|
|
1549
|
-
key: "valid",
|
|
1550
|
-
value: function() {
|
|
1551
|
-
return this.data.search(/^[0-9]+$/) !== -1;
|
|
1552
|
-
}
|
|
1553
|
-
}]), L;
|
|
1554
|
-
}(L.default);
|
|
1555
|
-
function W(s, I) {
|
|
1556
|
-
for (var L = 0; L < I; L++) s = "0" + s;
|
|
1557
|
-
return s;
|
|
1558
|
-
}
|
|
1559
|
-
s.default = U;
|
|
1560
|
-
})), require_checksums = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
1561
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), s.mod10 = I, s.mod11 = L;
|
|
1562
|
-
function I(s) {
|
|
1563
|
-
for (var I = 0, L = 0; L < s.length; L++) {
|
|
1564
|
-
var R = parseInt(s[L]);
|
|
1565
|
-
(L + s.length) % 2 == 0 ? I += R : I += R * 2 % 10 + Math.floor(R * 2 / 10);
|
|
1566
|
-
}
|
|
1567
|
-
return (10 - I % 10) % 10;
|
|
1568
|
-
}
|
|
1569
|
-
function L(s) {
|
|
1570
|
-
for (var I = 0, L = [
|
|
1571
|
-
2,
|
|
1572
|
-
3,
|
|
1573
|
-
4,
|
|
1574
|
-
5,
|
|
1575
|
-
6,
|
|
1576
|
-
7
|
|
1577
|
-
], R = 0; R < s.length; R++) {
|
|
1578
|
-
var z = parseInt(s[s.length - 1 - R]);
|
|
1579
|
-
I += L[R % L.length] * z;
|
|
1580
|
-
}
|
|
1581
|
-
return (11 - I % 11) % 11;
|
|
1582
|
-
}
|
|
1583
|
-
})), require_MSI10 = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
1584
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
1585
|
-
var I = R(require_MSI$1()), L = require_checksums();
|
|
1586
|
-
function R(s) {
|
|
1587
|
-
return s && s.__esModule ? s : { default: s };
|
|
1588
|
-
}
|
|
1589
|
-
function z(s, I) {
|
|
1590
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
1591
|
-
}
|
|
1592
|
-
function B(s, I) {
|
|
1593
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1594
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
1595
|
-
}
|
|
1596
|
-
function V(s, I) {
|
|
1597
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
1598
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
1599
|
-
value: s,
|
|
1600
|
-
enumerable: !1,
|
|
1601
|
-
writable: !0,
|
|
1602
|
-
configurable: !0
|
|
1603
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
1604
|
-
}
|
|
1605
|
-
s.default = function(s) {
|
|
1606
|
-
V(I, s);
|
|
1607
|
-
function I(s, R) {
|
|
1608
|
-
return z(this, I), B(this, (I.__proto__ || Object.getPrototypeOf(I)).call(this, s + (0, L.mod10)(s), R));
|
|
1609
|
-
}
|
|
1610
|
-
return I;
|
|
1611
|
-
}(I.default);
|
|
1612
|
-
})), require_MSI11 = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
1613
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
1614
|
-
var I = R(require_MSI$1()), L = require_checksums();
|
|
1615
|
-
function R(s) {
|
|
1616
|
-
return s && s.__esModule ? s : { default: s };
|
|
1617
|
-
}
|
|
1618
|
-
function z(s, I) {
|
|
1619
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
1620
|
-
}
|
|
1621
|
-
function B(s, I) {
|
|
1622
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1623
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
1624
|
-
}
|
|
1625
|
-
function V(s, I) {
|
|
1626
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
1627
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
1628
|
-
value: s,
|
|
1629
|
-
enumerable: !1,
|
|
1630
|
-
writable: !0,
|
|
1631
|
-
configurable: !0
|
|
1632
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
1633
|
-
}
|
|
1634
|
-
s.default = function(s) {
|
|
1635
|
-
V(I, s);
|
|
1636
|
-
function I(s, R) {
|
|
1637
|
-
return z(this, I), B(this, (I.__proto__ || Object.getPrototypeOf(I)).call(this, s + (0, L.mod11)(s), R));
|
|
1638
|
-
}
|
|
1639
|
-
return I;
|
|
1640
|
-
}(I.default);
|
|
1641
|
-
})), require_MSI1010 = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
1642
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
1643
|
-
var I = R(require_MSI$1()), L = require_checksums();
|
|
1644
|
-
function R(s) {
|
|
1645
|
-
return s && s.__esModule ? s : { default: s };
|
|
1646
|
-
}
|
|
1647
|
-
function z(s, I) {
|
|
1648
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
1649
|
-
}
|
|
1650
|
-
function B(s, I) {
|
|
1651
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1652
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
1653
|
-
}
|
|
1654
|
-
function V(s, I) {
|
|
1655
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
1656
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
1657
|
-
value: s,
|
|
1658
|
-
enumerable: !1,
|
|
1659
|
-
writable: !0,
|
|
1660
|
-
configurable: !0
|
|
1661
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
1662
|
-
}
|
|
1663
|
-
s.default = function(s) {
|
|
1664
|
-
V(I, s);
|
|
1665
|
-
function I(s, R) {
|
|
1666
|
-
return z(this, I), s += (0, L.mod10)(s), s += (0, L.mod10)(s), B(this, (I.__proto__ || Object.getPrototypeOf(I)).call(this, s, R));
|
|
1667
|
-
}
|
|
1668
|
-
return I;
|
|
1669
|
-
}(I.default);
|
|
1670
|
-
})), require_MSI1110 = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
1671
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
1672
|
-
var I = R(require_MSI$1()), L = require_checksums();
|
|
1673
|
-
function R(s) {
|
|
1674
|
-
return s && s.__esModule ? s : { default: s };
|
|
1675
|
-
}
|
|
1676
|
-
function z(s, I) {
|
|
1677
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
1678
|
-
}
|
|
1679
|
-
function B(s, I) {
|
|
1680
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1681
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
1682
|
-
}
|
|
1683
|
-
function V(s, I) {
|
|
1684
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
1685
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
1686
|
-
value: s,
|
|
1687
|
-
enumerable: !1,
|
|
1688
|
-
writable: !0,
|
|
1689
|
-
configurable: !0
|
|
1690
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
1691
|
-
}
|
|
1692
|
-
s.default = function(s) {
|
|
1693
|
-
V(I, s);
|
|
1694
|
-
function I(s, R) {
|
|
1695
|
-
return z(this, I), s += (0, L.mod11)(s), s += (0, L.mod10)(s), B(this, (I.__proto__ || Object.getPrototypeOf(I)).call(this, s, R));
|
|
1696
|
-
}
|
|
1697
|
-
return I;
|
|
1698
|
-
}(I.default);
|
|
1699
|
-
})), require_MSI = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
1700
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), s.MSI1110 = s.MSI1010 = s.MSI11 = s.MSI10 = s.MSI = void 0;
|
|
1701
|
-
var I = V(require_MSI$1()), L = V(require_MSI10()), R = V(require_MSI11()), z = V(require_MSI1010()), B = V(require_MSI1110());
|
|
1702
|
-
function V(s) {
|
|
1703
|
-
return s && s.__esModule ? s : { default: s };
|
|
1704
|
-
}
|
|
1705
|
-
s.MSI = I.default, s.MSI10 = L.default, s.MSI11 = R.default, s.MSI1010 = z.default, s.MSI1110 = B.default;
|
|
1706
|
-
})), require_pharmacode = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
1707
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), s.pharmacode = void 0;
|
|
1708
|
-
var I = function() {
|
|
1709
|
-
function s(s, I) {
|
|
1710
|
-
for (var L = 0; L < I.length; L++) {
|
|
1711
|
-
var R = I[L];
|
|
1712
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(s, R.key, R);
|
|
1713
|
-
}
|
|
1714
|
-
}
|
|
1715
|
-
return function(I, L, R) {
|
|
1716
|
-
return L && s(I.prototype, L), R && s(I, R), I;
|
|
1717
|
-
};
|
|
1718
|
-
}(), L = R(require_Barcode());
|
|
1719
|
-
function R(s) {
|
|
1720
|
-
return s && s.__esModule ? s : { default: s };
|
|
1721
|
-
}
|
|
1722
|
-
function z(s, I) {
|
|
1723
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
1724
|
-
}
|
|
1725
|
-
function V(s, I) {
|
|
1726
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1727
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
1728
|
-
}
|
|
1729
|
-
function H(s, I) {
|
|
1730
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
1731
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
1732
|
-
value: s,
|
|
1733
|
-
enumerable: !1,
|
|
1734
|
-
writable: !0,
|
|
1735
|
-
configurable: !0
|
|
1736
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
1737
|
-
}
|
|
1738
|
-
s.pharmacode = function(s) {
|
|
1739
|
-
H(L, s);
|
|
1740
|
-
function L(s, I) {
|
|
1741
|
-
z(this, L);
|
|
1742
|
-
var R = V(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, s, I));
|
|
1743
|
-
return R.number = parseInt(s, 10), R;
|
|
1744
|
-
}
|
|
1745
|
-
return I(L, [{
|
|
1746
|
-
key: "encode",
|
|
1747
|
-
value: function() {
|
|
1748
|
-
for (var s = this.number, I = ""; !isNaN(s) && s != 0;) s % 2 == 0 ? (I = "11100" + I, s = (s - 2) / 2) : (I = "100" + I, s = (s - 1) / 2);
|
|
1749
|
-
return I = I.slice(0, -2), {
|
|
1750
|
-
data: I,
|
|
1751
|
-
text: this.text
|
|
1752
|
-
};
|
|
1753
|
-
}
|
|
1754
|
-
}, {
|
|
1755
|
-
key: "valid",
|
|
1756
|
-
value: function() {
|
|
1757
|
-
return this.number >= 3 && this.number <= 131070;
|
|
1758
|
-
}
|
|
1759
|
-
}]), L;
|
|
1760
|
-
}(L.default);
|
|
1761
|
-
})), require_codabar = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
1762
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), s.codabar = void 0;
|
|
1763
|
-
var I = function() {
|
|
1764
|
-
function s(s, I) {
|
|
1765
|
-
for (var L = 0; L < I.length; L++) {
|
|
1766
|
-
var R = I[L];
|
|
1767
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(s, R.key, R);
|
|
1768
|
-
}
|
|
1769
|
-
}
|
|
1770
|
-
return function(I, L, R) {
|
|
1771
|
-
return L && s(I.prototype, L), R && s(I, R), I;
|
|
1772
|
-
};
|
|
1773
|
-
}(), L = R(require_Barcode());
|
|
1774
|
-
function R(s) {
|
|
1775
|
-
return s && s.__esModule ? s : { default: s };
|
|
1776
|
-
}
|
|
1777
|
-
function z(s, I) {
|
|
1778
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
1779
|
-
}
|
|
1780
|
-
function V(s, I) {
|
|
1781
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1782
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
1783
|
-
}
|
|
1784
|
-
function H(s, I) {
|
|
1785
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
1786
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
1787
|
-
value: s,
|
|
1788
|
-
enumerable: !1,
|
|
1789
|
-
writable: !0,
|
|
1790
|
-
configurable: !0
|
|
1791
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
1792
|
-
}
|
|
1793
|
-
s.codabar = function(s) {
|
|
1794
|
-
H(L, s);
|
|
1795
|
-
function L(s, I) {
|
|
1796
|
-
z(this, L), s.search(/^[0-9\-\$\:\.\+\/]+$/) === 0 && (s = "A" + s + "A");
|
|
1797
|
-
var R = V(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, s.toUpperCase(), I));
|
|
1798
|
-
return R.text = R.options.text || R.text.replace(/[A-D]/g, ""), R;
|
|
1799
|
-
}
|
|
1800
|
-
return I(L, [
|
|
1801
|
-
{
|
|
1802
|
-
key: "valid",
|
|
1803
|
-
value: function() {
|
|
1804
|
-
return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/) !== -1;
|
|
1805
|
-
}
|
|
1806
|
-
},
|
|
1807
|
-
{
|
|
1808
|
-
key: "encode",
|
|
1809
|
-
value: function() {
|
|
1810
|
-
for (var s = [], I = this.getEncodings(), L = 0; L < this.data.length; L++) s.push(I[this.data.charAt(L)]), L !== this.data.length - 1 && s.push("0");
|
|
1811
|
-
return {
|
|
1812
|
-
text: this.text,
|
|
1813
|
-
data: s.join("")
|
|
1814
|
-
};
|
|
1815
|
-
}
|
|
1816
|
-
},
|
|
1817
|
-
{
|
|
1818
|
-
key: "getEncodings",
|
|
1819
|
-
value: function() {
|
|
1820
|
-
return {
|
|
1821
|
-
0: "101010011",
|
|
1822
|
-
1: "101011001",
|
|
1823
|
-
2: "101001011",
|
|
1824
|
-
3: "110010101",
|
|
1825
|
-
4: "101101001",
|
|
1826
|
-
5: "110101001",
|
|
1827
|
-
6: "100101011",
|
|
1828
|
-
7: "100101101",
|
|
1829
|
-
8: "100110101",
|
|
1830
|
-
9: "110100101",
|
|
1831
|
-
"-": "101001101",
|
|
1832
|
-
$: "101100101",
|
|
1833
|
-
":": "1101011011",
|
|
1834
|
-
"/": "1101101011",
|
|
1835
|
-
".": "1101101101",
|
|
1836
|
-
"+": "1011011011",
|
|
1837
|
-
A: "1011001001",
|
|
1838
|
-
B: "1001001011",
|
|
1839
|
-
C: "1010010011",
|
|
1840
|
-
D: "1010011001"
|
|
1841
|
-
};
|
|
1842
|
-
}
|
|
1843
|
-
}
|
|
1844
|
-
]), L;
|
|
1845
|
-
}(L.default);
|
|
1846
|
-
})), require_constants = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
1847
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), s.SYMBOLS = /* @__PURE__ */ "0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,-,., ,$,/,+,%,($),(%),(/),(+),ÿ".split(","), s.BINARIES = /* @__PURE__ */ "100010100.101001000.101000100.101000010.100101000.100100100.100100010.101010000.100010010.100001010.110101000.110100100.110100010.110010100.110010010.110001010.101101000.101100100.101100010.100110100.100011010.101011000.101001100.101000110.100101100.100010110.110110100.110110010.110101100.110100110.110010110.110011010.101101100.101100110.100110110.100111010.100101110.111010100.111010010.111001010.101101110.101110110.110101110.100100110.111011010.111010110.100110010.101011110".split("."), s.MULTI_SYMBOLS = {
|
|
1848
|
-
"\0": ["(%)", "U"],
|
|
1849
|
-
"": ["($)", "A"],
|
|
1850
|
-
"": ["($)", "B"],
|
|
1851
|
-
"": ["($)", "C"],
|
|
1852
|
-
"": ["($)", "D"],
|
|
1853
|
-
"": ["($)", "E"],
|
|
1854
|
-
"": ["($)", "F"],
|
|
1855
|
-
"\x07": ["($)", "G"],
|
|
1856
|
-
"\b": ["($)", "H"],
|
|
1857
|
-
" ": ["($)", "I"],
|
|
1858
|
-
"\n": ["($)", "J"],
|
|
1859
|
-
"\v": ["($)", "K"],
|
|
1860
|
-
"\f": ["($)", "L"],
|
|
1861
|
-
"\r": ["($)", "M"],
|
|
1862
|
-
"": ["($)", "N"],
|
|
1863
|
-
"": ["($)", "O"],
|
|
1864
|
-
"": ["($)", "P"],
|
|
1865
|
-
"": ["($)", "Q"],
|
|
1866
|
-
"": ["($)", "R"],
|
|
1867
|
-
"": ["($)", "S"],
|
|
1868
|
-
"": ["($)", "T"],
|
|
1869
|
-
"": ["($)", "U"],
|
|
1870
|
-
"": ["($)", "V"],
|
|
1871
|
-
"": ["($)", "W"],
|
|
1872
|
-
"": ["($)", "X"],
|
|
1873
|
-
"": ["($)", "Y"],
|
|
1874
|
-
"": ["($)", "Z"],
|
|
1875
|
-
"\x1B": ["(%)", "A"],
|
|
1876
|
-
"": ["(%)", "B"],
|
|
1877
|
-
"": ["(%)", "C"],
|
|
1878
|
-
"": ["(%)", "D"],
|
|
1879
|
-
"": ["(%)", "E"],
|
|
1880
|
-
"!": ["(/)", "A"],
|
|
1881
|
-
"\"": ["(/)", "B"],
|
|
1882
|
-
"#": ["(/)", "C"],
|
|
1883
|
-
"&": ["(/)", "F"],
|
|
1884
|
-
"'": ["(/)", "G"],
|
|
1885
|
-
"(": ["(/)", "H"],
|
|
1886
|
-
")": ["(/)", "I"],
|
|
1887
|
-
"*": ["(/)", "J"],
|
|
1888
|
-
",": ["(/)", "L"],
|
|
1889
|
-
":": ["(/)", "Z"],
|
|
1890
|
-
";": ["(%)", "F"],
|
|
1891
|
-
"<": ["(%)", "G"],
|
|
1892
|
-
"=": ["(%)", "H"],
|
|
1893
|
-
">": ["(%)", "I"],
|
|
1894
|
-
"?": ["(%)", "J"],
|
|
1895
|
-
"@": ["(%)", "V"],
|
|
1896
|
-
"[": ["(%)", "K"],
|
|
1897
|
-
"\\": ["(%)", "L"],
|
|
1898
|
-
"]": ["(%)", "M"],
|
|
1899
|
-
"^": ["(%)", "N"],
|
|
1900
|
-
_: ["(%)", "O"],
|
|
1901
|
-
"`": ["(%)", "W"],
|
|
1902
|
-
a: ["(+)", "A"],
|
|
1903
|
-
b: ["(+)", "B"],
|
|
1904
|
-
c: ["(+)", "C"],
|
|
1905
|
-
d: ["(+)", "D"],
|
|
1906
|
-
e: ["(+)", "E"],
|
|
1907
|
-
f: ["(+)", "F"],
|
|
1908
|
-
g: ["(+)", "G"],
|
|
1909
|
-
h: ["(+)", "H"],
|
|
1910
|
-
i: ["(+)", "I"],
|
|
1911
|
-
j: ["(+)", "J"],
|
|
1912
|
-
k: ["(+)", "K"],
|
|
1913
|
-
l: ["(+)", "L"],
|
|
1914
|
-
m: ["(+)", "M"],
|
|
1915
|
-
n: ["(+)", "N"],
|
|
1916
|
-
o: ["(+)", "O"],
|
|
1917
|
-
p: ["(+)", "P"],
|
|
1918
|
-
q: ["(+)", "Q"],
|
|
1919
|
-
r: ["(+)", "R"],
|
|
1920
|
-
s: ["(+)", "S"],
|
|
1921
|
-
t: ["(+)", "T"],
|
|
1922
|
-
u: ["(+)", "U"],
|
|
1923
|
-
v: ["(+)", "V"],
|
|
1924
|
-
w: ["(+)", "W"],
|
|
1925
|
-
x: ["(+)", "X"],
|
|
1926
|
-
y: ["(+)", "Y"],
|
|
1927
|
-
z: ["(+)", "Z"],
|
|
1928
|
-
"{": ["(%)", "P"],
|
|
1929
|
-
"|": ["(%)", "Q"],
|
|
1930
|
-
"}": ["(%)", "R"],
|
|
1931
|
-
"~": ["(%)", "S"],
|
|
1932
|
-
"": ["(%)", "T"]
|
|
1933
|
-
};
|
|
1934
|
-
})), require_CODE93$1 = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
1935
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
1936
|
-
var I = function() {
|
|
1937
|
-
function s(s, I) {
|
|
1938
|
-
for (var L = 0; L < I.length; L++) {
|
|
1939
|
-
var R = I[L];
|
|
1940
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(s, R.key, R);
|
|
1941
|
-
}
|
|
1942
|
-
}
|
|
1943
|
-
return function(I, L, R) {
|
|
1944
|
-
return L && s(I.prototype, L), R && s(I, R), I;
|
|
1945
|
-
};
|
|
1946
|
-
}(), L = require_constants(), R = z(require_Barcode());
|
|
1947
|
-
function z(s) {
|
|
1948
|
-
return s && s.__esModule ? s : { default: s };
|
|
1949
|
-
}
|
|
1950
|
-
function V(s, I) {
|
|
1951
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
1952
|
-
}
|
|
1953
|
-
function H(s, I) {
|
|
1954
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1955
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
1956
|
-
}
|
|
1957
|
-
function U(s, I) {
|
|
1958
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
1959
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
1960
|
-
value: s,
|
|
1961
|
-
enumerable: !1,
|
|
1962
|
-
writable: !0,
|
|
1963
|
-
configurable: !0
|
|
1964
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
1965
|
-
}
|
|
1966
|
-
s.default = function(s) {
|
|
1967
|
-
U(R, s);
|
|
1968
|
-
function R(s, I) {
|
|
1969
|
-
return V(this, R), H(this, (R.__proto__ || Object.getPrototypeOf(R)).call(this, s, I));
|
|
1970
|
-
}
|
|
1971
|
-
return I(R, [{
|
|
1972
|
-
key: "valid",
|
|
1973
|
-
value: function() {
|
|
1974
|
-
return /^[0-9A-Z\-. $/+%]+$/.test(this.data);
|
|
1975
|
-
}
|
|
1976
|
-
}, {
|
|
1977
|
-
key: "encode",
|
|
1978
|
-
value: function() {
|
|
1979
|
-
var s = this.data.split("").flatMap(function(s) {
|
|
1980
|
-
return L.MULTI_SYMBOLS[s] || s;
|
|
1981
|
-
}), I = s.map(function(s) {
|
|
1982
|
-
return R.getEncoding(s);
|
|
1983
|
-
}).join(""), z = R.checksum(s, 20), B = R.checksum(s.concat(z), 15);
|
|
1984
|
-
return {
|
|
1985
|
-
text: this.text,
|
|
1986
|
-
data: R.getEncoding("ÿ") + I + R.getEncoding(z) + R.getEncoding(B) + R.getEncoding("ÿ") + "1"
|
|
1987
|
-
};
|
|
1988
|
-
}
|
|
1989
|
-
}], [
|
|
1990
|
-
{
|
|
1991
|
-
key: "getEncoding",
|
|
1992
|
-
value: function(s) {
|
|
1993
|
-
return L.BINARIES[R.symbolValue(s)];
|
|
1994
|
-
}
|
|
1995
|
-
},
|
|
1996
|
-
{
|
|
1997
|
-
key: "getSymbol",
|
|
1998
|
-
value: function(s) {
|
|
1999
|
-
return L.SYMBOLS[s];
|
|
2000
|
-
}
|
|
2001
|
-
},
|
|
2002
|
-
{
|
|
2003
|
-
key: "symbolValue",
|
|
2004
|
-
value: function(s) {
|
|
2005
|
-
return L.SYMBOLS.indexOf(s);
|
|
2006
|
-
}
|
|
2007
|
-
},
|
|
2008
|
-
{
|
|
2009
|
-
key: "checksum",
|
|
2010
|
-
value: function(s, I) {
|
|
2011
|
-
var L = s.slice().reverse().reduce(function(s, L, z) {
|
|
2012
|
-
var B = z % I + 1;
|
|
2013
|
-
return s + R.symbolValue(L) * B;
|
|
2014
|
-
}, 0);
|
|
2015
|
-
return R.getSymbol(L % 47);
|
|
2016
|
-
}
|
|
2017
|
-
}
|
|
2018
|
-
]), R;
|
|
2019
|
-
}(R.default);
|
|
2020
|
-
})), require_CODE93FullASCII = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
2021
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
2022
|
-
var I = function() {
|
|
2023
|
-
function s(s, I) {
|
|
2024
|
-
for (var L = 0; L < I.length; L++) {
|
|
2025
|
-
var R = I[L];
|
|
2026
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(s, R.key, R);
|
|
2027
|
-
}
|
|
2028
|
-
}
|
|
2029
|
-
return function(I, L, R) {
|
|
2030
|
-
return L && s(I.prototype, L), R && s(I, R), I;
|
|
2031
|
-
};
|
|
2032
|
-
}(), L = R(require_CODE93$1());
|
|
2033
|
-
function R(s) {
|
|
2034
|
-
return s && s.__esModule ? s : { default: s };
|
|
2035
|
-
}
|
|
2036
|
-
function z(s, I) {
|
|
2037
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
2038
|
-
}
|
|
2039
|
-
function B(s, I) {
|
|
2040
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2041
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
2042
|
-
}
|
|
2043
|
-
function V(s, I) {
|
|
2044
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
2045
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
2046
|
-
value: s,
|
|
2047
|
-
enumerable: !1,
|
|
2048
|
-
writable: !0,
|
|
2049
|
-
configurable: !0
|
|
2050
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
2051
|
-
}
|
|
2052
|
-
s.default = function(s) {
|
|
2053
|
-
V(L, s);
|
|
2054
|
-
function L(s, I) {
|
|
2055
|
-
return z(this, L), B(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, s, I));
|
|
2056
|
-
}
|
|
2057
|
-
return I(L, [{
|
|
2058
|
-
key: "valid",
|
|
2059
|
-
value: function() {
|
|
2060
|
-
return /^[\x00-\x7f]+$/.test(this.data);
|
|
2061
|
-
}
|
|
2062
|
-
}]), L;
|
|
2063
|
-
}(L.default);
|
|
2064
|
-
})), require_CODE93 = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
2065
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), s.CODE93FullASCII = s.CODE93 = void 0;
|
|
2066
|
-
var I = R(require_CODE93$1()), L = R(require_CODE93FullASCII());
|
|
2067
|
-
function R(s) {
|
|
2068
|
-
return s && s.__esModule ? s : { default: s };
|
|
2069
|
-
}
|
|
2070
|
-
s.CODE93 = I.default, s.CODE93FullASCII = L.default;
|
|
2071
|
-
})), require_GenericBarcode = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
2072
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), s.GenericBarcode = void 0;
|
|
2073
|
-
var I = function() {
|
|
2074
|
-
function s(s, I) {
|
|
2075
|
-
for (var L = 0; L < I.length; L++) {
|
|
2076
|
-
var R = I[L];
|
|
2077
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(s, R.key, R);
|
|
2078
|
-
}
|
|
2079
|
-
}
|
|
2080
|
-
return function(I, L, R) {
|
|
2081
|
-
return L && s(I.prototype, L), R && s(I, R), I;
|
|
2082
|
-
};
|
|
2083
|
-
}(), L = R(require_Barcode());
|
|
2084
|
-
function R(s) {
|
|
2085
|
-
return s && s.__esModule ? s : { default: s };
|
|
2086
|
-
}
|
|
2087
|
-
function z(s, I) {
|
|
2088
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
2089
|
-
}
|
|
2090
|
-
function V(s, I) {
|
|
2091
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2092
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
2093
|
-
}
|
|
2094
|
-
function H(s, I) {
|
|
2095
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
2096
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
2097
|
-
value: s,
|
|
2098
|
-
enumerable: !1,
|
|
2099
|
-
writable: !0,
|
|
2100
|
-
configurable: !0
|
|
2101
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
2102
|
-
}
|
|
2103
|
-
s.GenericBarcode = function(s) {
|
|
2104
|
-
H(L, s);
|
|
2105
|
-
function L(s, I) {
|
|
2106
|
-
return z(this, L), V(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, s, I));
|
|
2107
|
-
}
|
|
2108
|
-
return I(L, [{
|
|
2109
|
-
key: "encode",
|
|
2110
|
-
value: function() {
|
|
2111
|
-
return {
|
|
2112
|
-
data: "10101010101010101010101010101010101010101",
|
|
2113
|
-
text: this.text
|
|
2114
|
-
};
|
|
2115
|
-
}
|
|
2116
|
-
}, {
|
|
2117
|
-
key: "valid",
|
|
2118
|
-
value: function() {
|
|
2119
|
-
return !0;
|
|
2120
|
-
}
|
|
2121
|
-
}]), L;
|
|
2122
|
-
}(L.default);
|
|
2123
|
-
})), require_barcodes = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
2124
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
2125
|
-
var I = require_CODE39(), L = require_CODE128(), R = require_EAN_UPC(), z = require_ITF(), B = require_MSI(), H = require_pharmacode(), U = require_codabar(), W = require_CODE93(), G = require_GenericBarcode();
|
|
2126
|
-
s.default = {
|
|
2127
|
-
CODE39: I.CODE39,
|
|
2128
|
-
CODE128: L.CODE128,
|
|
2129
|
-
CODE128A: L.CODE128A,
|
|
2130
|
-
CODE128B: L.CODE128B,
|
|
2131
|
-
CODE128C: L.CODE128C,
|
|
2132
|
-
EAN13: R.EAN13,
|
|
2133
|
-
EAN8: R.EAN8,
|
|
2134
|
-
EAN5: R.EAN5,
|
|
2135
|
-
EAN2: R.EAN2,
|
|
2136
|
-
UPC: R.UPC,
|
|
2137
|
-
UPCE: R.UPCE,
|
|
2138
|
-
ITF14: z.ITF14,
|
|
2139
|
-
ITF: z.ITF,
|
|
2140
|
-
MSI: B.MSI,
|
|
2141
|
-
MSI10: B.MSI10,
|
|
2142
|
-
MSI11: B.MSI11,
|
|
2143
|
-
MSI1010: B.MSI1010,
|
|
2144
|
-
MSI1110: B.MSI1110,
|
|
2145
|
-
pharmacode: H.pharmacode,
|
|
2146
|
-
codabar: U.codabar,
|
|
2147
|
-
CODE93: W.CODE93,
|
|
2148
|
-
CODE93FullASCII: W.CODE93FullASCII,
|
|
2149
|
-
GenericBarcode: G.GenericBarcode
|
|
2150
|
-
};
|
|
2151
|
-
})), require_merge = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
2152
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
2153
|
-
var I = Object.assign || function(s) {
|
|
2154
|
-
for (var I = 1; I < arguments.length; I++) {
|
|
2155
|
-
var L = arguments[I];
|
|
2156
|
-
for (var R in L) Object.prototype.hasOwnProperty.call(L, R) && (s[R] = L[R]);
|
|
2157
|
-
}
|
|
2158
|
-
return s;
|
|
2159
|
-
};
|
|
2160
|
-
s.default = function(s, L) {
|
|
2161
|
-
return I({}, s, L);
|
|
2162
|
-
};
|
|
2163
|
-
})), require_linearizeEncodings = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
2164
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), s.default = I;
|
|
2165
|
-
function I(s) {
|
|
2166
|
-
var I = [];
|
|
2167
|
-
function L(s) {
|
|
2168
|
-
if (Array.isArray(s)) for (var R = 0; R < s.length; R++) L(s[R]);
|
|
2169
|
-
else s.text = s.text || "", s.data = s.data || "", I.push(s);
|
|
2170
|
-
}
|
|
2171
|
-
return L(s), I;
|
|
2172
|
-
}
|
|
2173
|
-
})), require_fixOptions = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
2174
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), s.default = I;
|
|
2175
|
-
function I(s) {
|
|
2176
|
-
return s.marginTop = s.marginTop || s.margin, s.marginBottom = s.marginBottom || s.margin, s.marginRight = s.marginRight || s.margin, s.marginLeft = s.marginLeft || s.margin, s;
|
|
2177
|
-
}
|
|
2178
|
-
})), require_optionsFromStrings = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
2179
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), s.default = I;
|
|
2180
|
-
function I(s) {
|
|
2181
|
-
var I = [
|
|
2182
|
-
"width",
|
|
2183
|
-
"height",
|
|
2184
|
-
"textMargin",
|
|
2185
|
-
"fontSize",
|
|
2186
|
-
"margin",
|
|
2187
|
-
"marginTop",
|
|
2188
|
-
"marginBottom",
|
|
2189
|
-
"marginLeft",
|
|
2190
|
-
"marginRight"
|
|
2191
|
-
];
|
|
2192
|
-
for (var L in I) I.hasOwnProperty(L) && (L = I[L], typeof s[L] == "string" && (s[L] = parseInt(s[L], 10)));
|
|
2193
|
-
return typeof s.displayValue == "string" && (s.displayValue = s.displayValue != "false"), s;
|
|
2194
|
-
}
|
|
2195
|
-
})), require_defaults = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
2196
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), s.default = {
|
|
2197
|
-
width: 2,
|
|
2198
|
-
height: 100,
|
|
2199
|
-
format: "auto",
|
|
2200
|
-
displayValue: !0,
|
|
2201
|
-
fontOptions: "",
|
|
2202
|
-
font: "monospace",
|
|
2203
|
-
text: void 0,
|
|
2204
|
-
textAlign: "center",
|
|
2205
|
-
textPosition: "bottom",
|
|
2206
|
-
textMargin: 2,
|
|
2207
|
-
fontSize: 20,
|
|
2208
|
-
background: "#ffffff",
|
|
2209
|
-
lineColor: "#000000",
|
|
2210
|
-
margin: 10,
|
|
2211
|
-
marginTop: void 0,
|
|
2212
|
-
marginBottom: void 0,
|
|
2213
|
-
marginLeft: void 0,
|
|
2214
|
-
marginRight: void 0,
|
|
2215
|
-
valid: function() {}
|
|
2216
|
-
};
|
|
2217
|
-
})), require_getOptionsFromElement = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
2218
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
2219
|
-
var I = R(require_optionsFromStrings()), L = R(require_defaults());
|
|
2220
|
-
function R(s) {
|
|
2221
|
-
return s && s.__esModule ? s : { default: s };
|
|
2222
|
-
}
|
|
2223
|
-
function z(s) {
|
|
2224
|
-
var R = {};
|
|
2225
|
-
for (var z in L.default) L.default.hasOwnProperty(z) && (s.hasAttribute("jsbarcode-" + z.toLowerCase()) && (R[z] = s.getAttribute("jsbarcode-" + z.toLowerCase())), s.hasAttribute("data-" + z.toLowerCase()) && (R[z] = s.getAttribute("data-" + z.toLowerCase())));
|
|
2226
|
-
return R.value = s.getAttribute("jsbarcode-value") || s.getAttribute("data-value"), R = (0, I.default)(R), R;
|
|
2227
|
-
}
|
|
2228
|
-
s.default = z;
|
|
2229
|
-
})), require_shared = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
2230
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), s.getTotalWidthOfEncodings = s.calculateEncodingAttributes = s.getBarcodePadding = s.getEncodingHeight = s.getMaximumHeightOfEncodings = void 0;
|
|
2231
|
-
var I = L(require_merge());
|
|
2232
|
-
function L(s) {
|
|
2233
|
-
return s && s.__esModule ? s : { default: s };
|
|
2234
|
-
}
|
|
2235
|
-
function R(s, I) {
|
|
2236
|
-
return I.height + (I.displayValue && s.text.length > 0 ? I.fontSize + I.textMargin : 0) + I.marginTop + I.marginBottom;
|
|
2237
|
-
}
|
|
2238
|
-
function z(s, I, L) {
|
|
2239
|
-
if (L.displayValue && I < s) {
|
|
2240
|
-
if (L.textAlign == "center") return Math.floor((s - I) / 2);
|
|
2241
|
-
if (L.textAlign == "left") return 0;
|
|
2242
|
-
if (L.textAlign == "right") return Math.floor(s - I);
|
|
2243
|
-
}
|
|
2244
|
-
return 0;
|
|
2245
|
-
}
|
|
2246
|
-
function B(s, L, B) {
|
|
2247
|
-
for (var V = 0; V < s.length; V++) {
|
|
2248
|
-
var H = s[V], W = (0, I.default)(L, H.options), G = W.displayValue ? U(H.text, W, B) : 0, K = H.data.length * W.width;
|
|
2249
|
-
H.width = Math.ceil(Math.max(G, K)), H.height = R(H, W), H.barcodePadding = z(G, K, W);
|
|
2250
|
-
}
|
|
2251
|
-
}
|
|
2252
|
-
function V(s) {
|
|
2253
|
-
for (var I = 0, L = 0; L < s.length; L++) I += s[L].width;
|
|
2254
|
-
return I;
|
|
2255
|
-
}
|
|
2256
|
-
function H(s) {
|
|
2257
|
-
for (var I = 0, L = 0; L < s.length; L++) s[L].height > I && (I = s[L].height);
|
|
2258
|
-
return I;
|
|
2259
|
-
}
|
|
2260
|
-
function U(s, I, L) {
|
|
2261
|
-
var R;
|
|
2262
|
-
if (L) R = L;
|
|
2263
|
-
else if (typeof document < "u") R = document.createElement("canvas").getContext("2d");
|
|
2264
|
-
else return 0;
|
|
2265
|
-
R.font = I.fontOptions + " " + I.fontSize + "px " + I.font;
|
|
2266
|
-
var z = R.measureText(s);
|
|
2267
|
-
return z ? z.width : 0;
|
|
2268
|
-
}
|
|
2269
|
-
s.getMaximumHeightOfEncodings = H, s.getEncodingHeight = R, s.getBarcodePadding = z, s.calculateEncodingAttributes = B, s.getTotalWidthOfEncodings = V;
|
|
2270
|
-
})), require_canvas = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
2271
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
2272
|
-
var I = function() {
|
|
2273
|
-
function s(s, I) {
|
|
2274
|
-
for (var L = 0; L < I.length; L++) {
|
|
2275
|
-
var R = I[L];
|
|
2276
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(s, R.key, R);
|
|
2277
|
-
}
|
|
2278
|
-
}
|
|
2279
|
-
return function(I, L, R) {
|
|
2280
|
-
return L && s(I.prototype, L), R && s(I, R), I;
|
|
2281
|
-
};
|
|
2282
|
-
}(), L = z(require_merge()), R = require_shared();
|
|
2283
|
-
function z(s) {
|
|
2284
|
-
return s && s.__esModule ? s : { default: s };
|
|
2285
|
-
}
|
|
2286
|
-
function B(s, I) {
|
|
2287
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
2288
|
-
}
|
|
2289
|
-
s.default = function() {
|
|
2290
|
-
function s(I, L, R) {
|
|
2291
|
-
B(this, s), this.canvas = I, this.encodings = L, this.options = R;
|
|
2292
|
-
}
|
|
2293
|
-
return I(s, [
|
|
2294
|
-
{
|
|
2295
|
-
key: "render",
|
|
2296
|
-
value: function() {
|
|
2297
|
-
if (!this.canvas.getContext) throw Error("The browser does not support canvas.");
|
|
2298
|
-
this.prepareCanvas();
|
|
2299
|
-
for (var s = 0; s < this.encodings.length; s++) {
|
|
2300
|
-
var I = (0, L.default)(this.options, this.encodings[s].options);
|
|
2301
|
-
this.drawCanvasBarcode(I, this.encodings[s]), this.drawCanvasText(I, this.encodings[s]), this.moveCanvasDrawing(this.encodings[s]);
|
|
2302
|
-
}
|
|
2303
|
-
this.restoreCanvas();
|
|
2304
|
-
}
|
|
2305
|
-
},
|
|
2306
|
-
{
|
|
2307
|
-
key: "prepareCanvas",
|
|
2308
|
-
value: function() {
|
|
2309
|
-
var s = this.canvas.getContext("2d");
|
|
2310
|
-
s.save(), (0, R.calculateEncodingAttributes)(this.encodings, this.options, s);
|
|
2311
|
-
var I = (0, R.getTotalWidthOfEncodings)(this.encodings), L = (0, R.getMaximumHeightOfEncodings)(this.encodings);
|
|
2312
|
-
this.canvas.width = I + this.options.marginLeft + this.options.marginRight, this.canvas.height = L, s.clearRect(0, 0, this.canvas.width, this.canvas.height), this.options.background && (s.fillStyle = this.options.background, s.fillRect(0, 0, this.canvas.width, this.canvas.height)), s.translate(this.options.marginLeft, 0);
|
|
2313
|
-
}
|
|
2314
|
-
},
|
|
2315
|
-
{
|
|
2316
|
-
key: "drawCanvasBarcode",
|
|
2317
|
-
value: function(s, I) {
|
|
2318
|
-
var L = this.canvas.getContext("2d"), R = I.data, z = s.textPosition == "top" ? s.marginTop + s.fontSize + s.textMargin : s.marginTop;
|
|
2319
|
-
L.fillStyle = s.lineColor;
|
|
2320
|
-
for (var B = 0; B < R.length; B++) {
|
|
2321
|
-
var V = B * s.width + I.barcodePadding;
|
|
2322
|
-
R[B] === "1" ? L.fillRect(V, z, s.width, s.height) : R[B] && L.fillRect(V, z, s.width, s.height * R[B]);
|
|
2323
|
-
}
|
|
2324
|
-
}
|
|
2325
|
-
},
|
|
2326
|
-
{
|
|
2327
|
-
key: "drawCanvasText",
|
|
2328
|
-
value: function(s, I) {
|
|
2329
|
-
var L = this.canvas.getContext("2d"), R = s.fontOptions + " " + s.fontSize + "px " + s.font;
|
|
2330
|
-
if (s.displayValue) {
|
|
2331
|
-
var z, B = s.textPosition == "top" ? s.marginTop + s.fontSize - s.textMargin : s.height + s.textMargin + s.marginTop + s.fontSize;
|
|
2332
|
-
L.font = R, s.textAlign == "left" || I.barcodePadding > 0 ? (z = 0, L.textAlign = "left") : s.textAlign == "right" ? (z = I.width - 1, L.textAlign = "right") : (z = I.width / 2, L.textAlign = "center"), L.fillText(I.text, z, B);
|
|
2333
|
-
}
|
|
2334
|
-
}
|
|
2335
|
-
},
|
|
2336
|
-
{
|
|
2337
|
-
key: "moveCanvasDrawing",
|
|
2338
|
-
value: function(s) {
|
|
2339
|
-
this.canvas.getContext("2d").translate(s.width, 0);
|
|
2340
|
-
}
|
|
2341
|
-
},
|
|
2342
|
-
{
|
|
2343
|
-
key: "restoreCanvas",
|
|
2344
|
-
value: function() {
|
|
2345
|
-
this.canvas.getContext("2d").restore();
|
|
2346
|
-
}
|
|
2347
|
-
}
|
|
2348
|
-
]), s;
|
|
2349
|
-
}();
|
|
2350
|
-
})), require_svg = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
2351
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
2352
|
-
var I = function() {
|
|
2353
|
-
function s(s, I) {
|
|
2354
|
-
for (var L = 0; L < I.length; L++) {
|
|
2355
|
-
var R = I[L];
|
|
2356
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(s, R.key, R);
|
|
2357
|
-
}
|
|
2358
|
-
}
|
|
2359
|
-
return function(I, L, R) {
|
|
2360
|
-
return L && s(I.prototype, L), R && s(I, R), I;
|
|
2361
|
-
};
|
|
2362
|
-
}(), L = z(require_merge()), R = require_shared();
|
|
2363
|
-
function z(s) {
|
|
2364
|
-
return s && s.__esModule ? s : { default: s };
|
|
2365
|
-
}
|
|
2366
|
-
function B(s, I) {
|
|
2367
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
2368
|
-
}
|
|
2369
|
-
var V = "http://www.w3.org/2000/svg";
|
|
2370
|
-
s.default = function() {
|
|
2371
|
-
function s(I, L, R) {
|
|
2372
|
-
B(this, s), this.svg = I, this.encodings = L, this.options = R, this.document = R.xmlDocument || document;
|
|
2373
|
-
}
|
|
2374
|
-
return I(s, [
|
|
2375
|
-
{
|
|
2376
|
-
key: "render",
|
|
2377
|
-
value: function() {
|
|
2378
|
-
var s = this.options.marginLeft;
|
|
2379
|
-
this.prepareSVG();
|
|
2380
|
-
for (var I = 0; I < this.encodings.length; I++) {
|
|
2381
|
-
var R = this.encodings[I], z = (0, L.default)(this.options, R.options), B = this.createGroup(s, z.marginTop, this.svg);
|
|
2382
|
-
this.setGroupOptions(B, z), this.drawSvgBarcode(B, z, R), this.drawSVGText(B, z, R), s += R.width;
|
|
2383
|
-
}
|
|
2384
|
-
}
|
|
2385
|
-
},
|
|
2386
|
-
{
|
|
2387
|
-
key: "prepareSVG",
|
|
2388
|
-
value: function() {
|
|
2389
|
-
for (; this.svg.firstChild;) this.svg.removeChild(this.svg.firstChild);
|
|
2390
|
-
(0, R.calculateEncodingAttributes)(this.encodings, this.options);
|
|
2391
|
-
var s = (0, R.getTotalWidthOfEncodings)(this.encodings), I = (0, R.getMaximumHeightOfEncodings)(this.encodings), L = s + this.options.marginLeft + this.options.marginRight;
|
|
2392
|
-
this.setSvgAttributes(L, I), this.options.background && this.drawRect(0, 0, L, I, this.svg).setAttribute("fill", this.options.background);
|
|
2393
|
-
}
|
|
2394
|
-
},
|
|
2395
|
-
{
|
|
2396
|
-
key: "drawSvgBarcode",
|
|
2397
|
-
value: function(s, I, L) {
|
|
2398
|
-
for (var R = L.data, z = I.textPosition == "top" ? I.fontSize + I.textMargin : 0, B = 0, V = 0, H = 0; H < R.length; H++) V = H * I.width + L.barcodePadding, R[H] === "1" ? B++ : B > 0 && (this.drawRect(V - I.width * B, z, I.width * B, I.height, s), B = 0);
|
|
2399
|
-
B > 0 && this.drawRect(V - I.width * (B - 1), z, I.width * B, I.height, s);
|
|
2400
|
-
}
|
|
2401
|
-
},
|
|
2402
|
-
{
|
|
2403
|
-
key: "drawSVGText",
|
|
2404
|
-
value: function(s, I, L) {
|
|
2405
|
-
var R = this.document.createElementNS(V, "text");
|
|
2406
|
-
if (I.displayValue) {
|
|
2407
|
-
var z, B;
|
|
2408
|
-
R.setAttribute("font-family", I.font), R.setAttribute("font-size", I.fontSize), I.fontOptions.includes("bold") && R.setAttribute("font-weight", "bold"), I.fontOptions.includes("italic") && R.setAttribute("font-style", "italic"), B = I.textPosition == "top" ? I.fontSize - I.textMargin : I.height + I.textMargin + I.fontSize, I.textAlign == "left" || L.barcodePadding > 0 ? (z = 0, R.setAttribute("text-anchor", "start")) : I.textAlign == "right" ? (z = L.width - 1, R.setAttribute("text-anchor", "end")) : (z = L.width / 2, R.setAttribute("text-anchor", "middle")), R.setAttribute("x", z), R.setAttribute("y", B), R.appendChild(this.document.createTextNode(L.text)), s.appendChild(R);
|
|
2409
|
-
}
|
|
2410
|
-
}
|
|
2411
|
-
},
|
|
2412
|
-
{
|
|
2413
|
-
key: "setSvgAttributes",
|
|
2414
|
-
value: function(s, I) {
|
|
2415
|
-
var L = this.svg;
|
|
2416
|
-
L.setAttribute("width", s + "px"), L.setAttribute("height", I + "px"), L.setAttribute("x", "0px"), L.setAttribute("y", "0px"), L.setAttribute("viewBox", "0 0 " + s + " " + I), L.setAttribute("xmlns", V), L.setAttribute("version", "1.1");
|
|
2417
|
-
}
|
|
2418
|
-
},
|
|
2419
|
-
{
|
|
2420
|
-
key: "createGroup",
|
|
2421
|
-
value: function(s, I, L) {
|
|
2422
|
-
var R = this.document.createElementNS(V, "g");
|
|
2423
|
-
return R.setAttribute("transform", "translate(" + s + ", " + I + ")"), L.appendChild(R), R;
|
|
2424
|
-
}
|
|
2425
|
-
},
|
|
2426
|
-
{
|
|
2427
|
-
key: "setGroupOptions",
|
|
2428
|
-
value: function(s, I) {
|
|
2429
|
-
s.setAttribute("fill", I.lineColor);
|
|
2430
|
-
}
|
|
2431
|
-
},
|
|
2432
|
-
{
|
|
2433
|
-
key: "drawRect",
|
|
2434
|
-
value: function(s, I, L, R, z) {
|
|
2435
|
-
var B = this.document.createElementNS(V, "rect");
|
|
2436
|
-
return B.setAttribute("x", s), B.setAttribute("y", I), B.setAttribute("width", L), B.setAttribute("height", R), z.appendChild(B), B;
|
|
2437
|
-
}
|
|
2438
|
-
}
|
|
2439
|
-
]), s;
|
|
2440
|
-
}();
|
|
2441
|
-
})), require_object = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
2442
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
2443
|
-
var I = function() {
|
|
2444
|
-
function s(s, I) {
|
|
2445
|
-
for (var L = 0; L < I.length; L++) {
|
|
2446
|
-
var R = I[L];
|
|
2447
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(s, R.key, R);
|
|
2448
|
-
}
|
|
2449
|
-
}
|
|
2450
|
-
return function(I, L, R) {
|
|
2451
|
-
return L && s(I.prototype, L), R && s(I, R), I;
|
|
2452
|
-
};
|
|
2453
|
-
}();
|
|
2454
|
-
function L(s, I) {
|
|
2455
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
2456
|
-
}
|
|
2457
|
-
s.default = function() {
|
|
2458
|
-
function s(I, R, z) {
|
|
2459
|
-
L(this, s), this.object = I, this.encodings = R, this.options = z;
|
|
2460
|
-
}
|
|
2461
|
-
return I(s, [{
|
|
2462
|
-
key: "render",
|
|
2463
|
-
value: function() {
|
|
2464
|
-
this.object.encodings = this.encodings;
|
|
2465
|
-
}
|
|
2466
|
-
}]), s;
|
|
2467
|
-
}();
|
|
2468
|
-
})), require_renderers = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
2469
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
2470
|
-
var I = z(require_canvas()), L = z(require_svg()), R = z(require_object());
|
|
2471
|
-
function z(s) {
|
|
2472
|
-
return s && s.__esModule ? s : { default: s };
|
|
2473
|
-
}
|
|
2474
|
-
s.default = {
|
|
2475
|
-
CanvasRenderer: I.default,
|
|
2476
|
-
SVGRenderer: L.default,
|
|
2477
|
-
ObjectRenderer: R.default
|
|
2478
|
-
};
|
|
2479
|
-
})), require_exceptions = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
2480
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
2481
|
-
function I(s, I) {
|
|
2482
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
2483
|
-
}
|
|
2484
|
-
function L(s, I) {
|
|
2485
|
-
if (!s) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2486
|
-
return I && (typeof I == "object" || typeof I == "function") ? I : s;
|
|
2487
|
-
}
|
|
2488
|
-
function R(s, I) {
|
|
2489
|
-
if (typeof I != "function" && I !== null) throw TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
2490
|
-
s.prototype = Object.create(I && I.prototype, { constructor: {
|
|
2491
|
-
value: s,
|
|
2492
|
-
enumerable: !1,
|
|
2493
|
-
writable: !0,
|
|
2494
|
-
configurable: !0
|
|
2495
|
-
} }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(s, I) : s.__proto__ = I);
|
|
2496
|
-
}
|
|
2497
|
-
var z = function(s) {
|
|
2498
|
-
R(z, s);
|
|
2499
|
-
function z(s, R) {
|
|
2500
|
-
I(this, z);
|
|
2501
|
-
var B = L(this, (z.__proto__ || Object.getPrototypeOf(z)).call(this));
|
|
2502
|
-
return B.name = "InvalidInputException", B.symbology = s, B.input = R, B.message = "\"" + B.input + "\" is not a valid input for " + B.symbology, B;
|
|
2503
|
-
}
|
|
2504
|
-
return z;
|
|
2505
|
-
}(Error), B = function(s) {
|
|
2506
|
-
R(z, s);
|
|
2507
|
-
function z() {
|
|
2508
|
-
I(this, z);
|
|
2509
|
-
var s = L(this, (z.__proto__ || Object.getPrototypeOf(z)).call(this));
|
|
2510
|
-
return s.name = "InvalidElementException", s.message = "Not supported type to render on", s;
|
|
2511
|
-
}
|
|
2512
|
-
return z;
|
|
2513
|
-
}(Error), V = function(s) {
|
|
2514
|
-
R(z, s);
|
|
2515
|
-
function z() {
|
|
2516
|
-
I(this, z);
|
|
2517
|
-
var s = L(this, (z.__proto__ || Object.getPrototypeOf(z)).call(this));
|
|
2518
|
-
return s.name = "NoElementException", s.message = "No element to render on.", s;
|
|
2519
|
-
}
|
|
2520
|
-
return z;
|
|
2521
|
-
}(Error);
|
|
2522
|
-
s.InvalidInputException = z, s.InvalidElementException = B, s.NoElementException = V;
|
|
2523
|
-
})), require_getRenderProperties = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
2524
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
2525
|
-
var I = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(s) {
|
|
2526
|
-
return typeof s;
|
|
2527
|
-
} : function(s) {
|
|
2528
|
-
return s && typeof Symbol == "function" && s.constructor === Symbol && s !== Symbol.prototype ? "symbol" : typeof s;
|
|
2529
|
-
}, L = B(require_getOptionsFromElement()), R = B(require_renderers()), z = require_exceptions();
|
|
2530
|
-
function B(s) {
|
|
2531
|
-
return s && s.__esModule ? s : { default: s };
|
|
2532
|
-
}
|
|
2533
|
-
function V(s) {
|
|
2534
|
-
if (typeof s == "string") return H(s);
|
|
2535
|
-
if (Array.isArray(s)) {
|
|
2536
|
-
for (var B = [], W = 0; W < s.length; W++) B.push(V(s[W]));
|
|
2537
|
-
return B;
|
|
2538
|
-
} else if (typeof HTMLCanvasElement < "u" && s instanceof HTMLImageElement) return U(s);
|
|
2539
|
-
else if (s && s.nodeName && s.nodeName.toLowerCase() === "svg" || typeof SVGElement < "u" && s instanceof SVGElement) return {
|
|
2540
|
-
element: s,
|
|
2541
|
-
options: (0, L.default)(s),
|
|
2542
|
-
renderer: R.default.SVGRenderer
|
|
2543
|
-
};
|
|
2544
|
-
else if (typeof HTMLCanvasElement < "u" && s instanceof HTMLCanvasElement) return {
|
|
2545
|
-
element: s,
|
|
2546
|
-
options: (0, L.default)(s),
|
|
2547
|
-
renderer: R.default.CanvasRenderer
|
|
2548
|
-
};
|
|
2549
|
-
else if (s && s.getContext) return {
|
|
2550
|
-
element: s,
|
|
2551
|
-
renderer: R.default.CanvasRenderer
|
|
2552
|
-
};
|
|
2553
|
-
else if (s && (s === void 0 ? "undefined" : I(s)) === "object" && !s.nodeName) return {
|
|
2554
|
-
element: s,
|
|
2555
|
-
renderer: R.default.ObjectRenderer
|
|
2556
|
-
};
|
|
2557
|
-
else throw new z.InvalidElementException();
|
|
2558
|
-
}
|
|
2559
|
-
function H(s) {
|
|
2560
|
-
var I = document.querySelectorAll(s);
|
|
2561
|
-
if (I.length !== 0) {
|
|
2562
|
-
for (var L = [], R = 0; R < I.length; R++) L.push(V(I[R]));
|
|
2563
|
-
return L;
|
|
2564
|
-
}
|
|
2565
|
-
}
|
|
2566
|
-
function U(s) {
|
|
2567
|
-
var I = document.createElement("canvas");
|
|
2568
|
-
return {
|
|
2569
|
-
element: I,
|
|
2570
|
-
options: (0, L.default)(s),
|
|
2571
|
-
renderer: R.default.CanvasRenderer,
|
|
2572
|
-
afterRender: function() {
|
|
2573
|
-
s.setAttribute("src", I.toDataURL());
|
|
2574
|
-
}
|
|
2575
|
-
};
|
|
2576
|
-
}
|
|
2577
|
-
s.default = V;
|
|
2578
|
-
})), require_ErrorHandler = /* @__PURE__ */ __commonJSMin(((s) => {
|
|
2579
|
-
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
2580
|
-
var I = function() {
|
|
2581
|
-
function s(s, I) {
|
|
2582
|
-
for (var L = 0; L < I.length; L++) {
|
|
2583
|
-
var R = I[L];
|
|
2584
|
-
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(s, R.key, R);
|
|
2585
|
-
}
|
|
2586
|
-
}
|
|
2587
|
-
return function(I, L, R) {
|
|
2588
|
-
return L && s(I.prototype, L), R && s(I, R), I;
|
|
2589
|
-
};
|
|
2590
|
-
}();
|
|
2591
|
-
function L(s, I) {
|
|
2592
|
-
if (!(s instanceof I)) throw TypeError("Cannot call a class as a function");
|
|
2593
|
-
}
|
|
2594
|
-
s.default = function() {
|
|
2595
|
-
function s(I) {
|
|
2596
|
-
L(this, s), this.api = I;
|
|
2597
|
-
}
|
|
2598
|
-
return I(s, [{
|
|
2599
|
-
key: "handleCatch",
|
|
2600
|
-
value: function(s) {
|
|
2601
|
-
if (s.name === "InvalidInputException") if (this.api._options.valid !== this.api._defaults.valid) this.api._options.valid(!1);
|
|
2602
|
-
else throw s.message;
|
|
2603
|
-
else throw s;
|
|
2604
|
-
this.api.render = function() {};
|
|
2605
|
-
}
|
|
2606
|
-
}, {
|
|
2607
|
-
key: "wrapBarcodeCall",
|
|
2608
|
-
value: function(s) {
|
|
2609
|
-
try {
|
|
2610
|
-
var I = s.apply(void 0, arguments);
|
|
2611
|
-
return this.api._options.valid(!0), I;
|
|
2612
|
-
} catch (s) {
|
|
2613
|
-
return this.handleCatch(s), this.api;
|
|
2614
|
-
}
|
|
2615
|
-
}
|
|
2616
|
-
}]), s;
|
|
2617
|
-
}();
|
|
2618
|
-
})), require_JsBarcode = /* @__PURE__ */ __commonJSMin(((s, I) => {
|
|
2619
|
-
var L = K(require_barcodes()), R = K(require_merge()), z = K(require_linearizeEncodings()), B = K(require_fixOptions()), V = K(require_getRenderProperties()), H = K(require_optionsFromStrings()), U = K(require_ErrorHandler()), W = require_exceptions(), G = K(require_defaults());
|
|
2620
|
-
function K(s) {
|
|
2621
|
-
return s && s.__esModule ? s : { default: s };
|
|
2622
|
-
}
|
|
2623
|
-
var q = function() {}, J = function(s, I, L) {
|
|
2624
|
-
var R = new q();
|
|
2625
|
-
if (s === void 0) throw Error("No element to render on was provided.");
|
|
2626
|
-
return R._renderProperties = (0, V.default)(s), R._encodings = [], R._options = G.default, R._errorHandler = new U.default(R), I !== void 0 && (L ||= {}, L.format ||= Q(), R.options(L)[L.format](I, L).render()), R;
|
|
2627
|
-
};
|
|
2628
|
-
for (var Y in J.getModule = function(s) {
|
|
2629
|
-
return L.default[s];
|
|
2630
|
-
}, L.default) L.default.hasOwnProperty(Y) && X(L.default, Y);
|
|
2631
|
-
function X(s, I) {
|
|
2632
|
-
q.prototype[I] = q.prototype[I.toUpperCase()] = q.prototype[I.toLowerCase()] = function(L, z) {
|
|
2633
|
-
var B = this;
|
|
2634
|
-
return B._errorHandler.wrapBarcodeCall(function() {
|
|
2635
|
-
z.text = z.text === void 0 ? void 0 : "" + z.text;
|
|
2636
|
-
var V = (0, R.default)(B._options, z);
|
|
2637
|
-
V = (0, H.default)(V);
|
|
2638
|
-
var U = s[I], W = Z(L, U, V);
|
|
2639
|
-
return B._encodings.push(W), B;
|
|
2640
|
-
});
|
|
2641
|
-
};
|
|
2642
|
-
}
|
|
2643
|
-
function Z(s, I, L) {
|
|
2644
|
-
s = "" + s;
|
|
2645
|
-
var B = new I(s, L);
|
|
2646
|
-
if (!B.valid()) throw new W.InvalidInputException(B.constructor.name, s);
|
|
2647
|
-
var V = B.encode();
|
|
2648
|
-
V = (0, z.default)(V);
|
|
2649
|
-
for (var H = 0; H < V.length; H++) V[H].options = (0, R.default)(L, V[H].options);
|
|
2650
|
-
return V;
|
|
2651
|
-
}
|
|
2652
|
-
function Q() {
|
|
2653
|
-
return L.default.CODE128 ? "CODE128" : Object.keys(L.default)[0];
|
|
2654
|
-
}
|
|
2655
|
-
q.prototype.options = function(s) {
|
|
2656
|
-
return this._options = (0, R.default)(this._options, s), this;
|
|
2657
|
-
}, q.prototype.blank = function(s) {
|
|
2658
|
-
var I = Array(s + 1).join("0");
|
|
2659
|
-
return this._encodings.push({ data: I }), this;
|
|
2660
|
-
}, q.prototype.init = function() {
|
|
2661
|
-
if (this._renderProperties) {
|
|
2662
|
-
Array.isArray(this._renderProperties) || (this._renderProperties = [this._renderProperties]);
|
|
2663
|
-
var s;
|
|
2664
|
-
for (var I in this._renderProperties) {
|
|
2665
|
-
s = this._renderProperties[I];
|
|
2666
|
-
var z = (0, R.default)(this._options, s.options);
|
|
2667
|
-
z.format == "auto" && (z.format = Q()), this._errorHandler.wrapBarcodeCall(function() {
|
|
2668
|
-
var I = z.value, R = L.default[z.format.toUpperCase()], B = Z(I, R, z);
|
|
2669
|
-
$(s, B, z);
|
|
2670
|
-
});
|
|
2671
|
-
}
|
|
2672
|
-
}
|
|
2673
|
-
}, q.prototype.render = function() {
|
|
2674
|
-
if (!this._renderProperties) throw new W.NoElementException();
|
|
2675
|
-
if (Array.isArray(this._renderProperties)) for (var s = 0; s < this._renderProperties.length; s++) $(this._renderProperties[s], this._encodings, this._options);
|
|
2676
|
-
else $(this._renderProperties, this._encodings, this._options);
|
|
2677
|
-
return this;
|
|
2678
|
-
}, q.prototype._defaults = G.default;
|
|
2679
|
-
function $(s, I, L) {
|
|
2680
|
-
I = (0, z.default)(I);
|
|
2681
|
-
for (var V = 0; V < I.length; V++) I[V].options = (0, R.default)(L, I[V].options), (0, B.default)(I[V].options);
|
|
2682
|
-
(0, B.default)(L);
|
|
2683
|
-
var H = s.renderer;
|
|
2684
|
-
new H(s.element, I, L).render(), s.afterRender && s.afterRender();
|
|
2685
|
-
}
|
|
2686
|
-
typeof window < "u" && (window.JsBarcode = J), typeof jQuery < "u" && (jQuery.fn.JsBarcode = function(s, I) {
|
|
2687
|
-
var L = [];
|
|
2688
|
-
return jQuery(this).each(function() {
|
|
2689
|
-
L.push(this);
|
|
2690
|
-
}), J(L, s, I);
|
|
2691
|
-
}), I.exports = J;
|
|
2692
|
-
})), import_react = /* @__PURE__ */ __toESM(require_react()), import_JsBarcode = /* @__PURE__ */ __toESM(require_JsBarcode()), BarCode = function(s) {
|
|
2693
|
-
__extends(I, s);
|
|
2694
|
-
function I(I) {
|
|
2695
|
-
var L = s.call(this, I) || this;
|
|
2696
|
-
return L.dom = import_react.createRef(), L;
|
|
2697
|
-
}
|
|
2698
|
-
return I.prototype.componentDidUpdate = function(s) {
|
|
2699
|
-
(this.props.value !== s.value || JSON.stringify(this.props.options) !== JSON.stringify(s.options)) && this.renderBarCode();
|
|
2700
|
-
}, I.prototype.renderBarCode = function() {
|
|
2701
|
-
this.dom.current && (0, import_JsBarcode.default)(this.dom.current, this.props.value, this.props.options);
|
|
2702
|
-
}, I.prototype.componentDidMount = function() {
|
|
2703
|
-
this.renderBarCode();
|
|
2704
|
-
}, I.prototype.render = function() {
|
|
2705
|
-
return import_react.createElement("img", { ref: this.dom });
|
|
2706
|
-
}, I;
|
|
2707
|
-
}(import_react.Component), BarCode$1 = themeable(BarCode);
|
|
2708
|
-
export { BarCode, BarCode$1 as default };
|