@ozdao/prometheus-framework 0.2.133 → 0.2.134

Sign up to get free protection for your applications and to get access to all the features.
Files changed (290) hide show
  1. package/dist/_virtual/alignment-pattern.cjs +1 -0
  2. package/dist/_virtual/alignment-pattern.js +4 -0
  3. package/dist/_virtual/browser.cjs +1 -0
  4. package/dist/_virtual/browser.js +4 -0
  5. package/dist/_virtual/canvas.cjs +1 -0
  6. package/dist/_virtual/canvas.js +4 -0
  7. package/dist/_virtual/dijkstra.cjs +1 -0
  8. package/dist/_virtual/dijkstra.js +4 -0
  9. package/dist/_virtual/error-correction-code.cjs +1 -0
  10. package/dist/_virtual/error-correction-code.js +4 -0
  11. package/dist/_virtual/error-correction-level.cjs +1 -0
  12. package/dist/_virtual/error-correction-level.js +4 -0
  13. package/dist/_virtual/finder-pattern.cjs +1 -0
  14. package/dist/_virtual/finder-pattern.js +4 -0
  15. package/dist/_virtual/format-info.cjs +1 -0
  16. package/dist/_virtual/format-info.js +4 -0
  17. package/dist/_virtual/galois-field.cjs +1 -0
  18. package/dist/_virtual/galois-field.js +4 -0
  19. package/dist/_virtual/mask-pattern.cjs +1 -0
  20. package/dist/_virtual/mask-pattern.js +4 -0
  21. package/dist/_virtual/mode.cjs +1 -0
  22. package/dist/_virtual/mode.js +4 -0
  23. package/dist/_virtual/polynomial.cjs +1 -0
  24. package/dist/_virtual/polynomial.js +4 -0
  25. package/dist/_virtual/qrcode.cjs +1 -0
  26. package/dist/_virtual/qrcode.js +4 -0
  27. package/dist/_virtual/regex.cjs +1 -0
  28. package/dist/_virtual/regex.js +4 -0
  29. package/dist/_virtual/segments.cjs +1 -0
  30. package/dist/_virtual/segments.js +4 -0
  31. package/dist/_virtual/svg-tag.cjs +1 -0
  32. package/dist/_virtual/svg-tag.js +4 -0
  33. package/dist/_virtual/utils.cjs +1 -0
  34. package/dist/_virtual/utils.js +4 -0
  35. package/dist/_virtual/utils2.cjs +1 -0
  36. package/dist/_virtual/utils2.js +4 -0
  37. package/dist/_virtual/version-check.cjs +1 -0
  38. package/dist/_virtual/version-check.js +4 -0
  39. package/dist/_virtual/version.cjs +1 -0
  40. package/dist/_virtual/version.js +4 -0
  41. package/dist/auth.server.js +1 -1
  42. package/dist/auth.server.mjs +1 -1
  43. package/dist/community.server.js +1 -1
  44. package/dist/community.server.mjs +1 -1
  45. package/dist/events.server.js +1 -1
  46. package/dist/events.server.mjs +1 -1
  47. package/dist/files.server.js +1 -1
  48. package/dist/files.server.mjs +1 -1
  49. package/dist/gallery.server.js +1 -1
  50. package/dist/gallery.server.mjs +1 -1
  51. package/dist/index-C-8xOJnM.mjs +244 -0
  52. package/dist/index-CDbtWkBj.js +243 -0
  53. package/dist/main-5IrI2IOV.js +92 -0
  54. package/dist/main-BY2OvGB9.mjs +14509 -0
  55. package/dist/main.css +1 -1
  56. package/dist/middlewares.server.js +1 -1
  57. package/dist/middlewares.server.mjs +1 -1
  58. package/dist/node_modules/dijkstrajs/dijkstra.cjs +1 -0
  59. package/dist/node_modules/dijkstrajs/dijkstra.js +70 -0
  60. package/dist/node_modules/encode-utf8/index.cjs +1 -0
  61. package/dist/node_modules/encode-utf8/index.js +30 -0
  62. package/dist/node_modules/qrcode/lib/browser.cjs +1 -0
  63. package/dist/node_modules/qrcode/lib/browser.js +45 -0
  64. package/dist/node_modules/qrcode/lib/can-promise.cjs +1 -0
  65. package/dist/node_modules/qrcode/lib/can-promise.js +6 -0
  66. package/dist/node_modules/qrcode/lib/core/alignment-pattern.cjs +1 -0
  67. package/dist/node_modules/qrcode/lib/core/alignment-pattern.js +21 -0
  68. package/dist/node_modules/qrcode/lib/core/alphanumeric-data.cjs +1 -0
  69. package/dist/node_modules/qrcode/lib/core/alphanumeric-data.js +73 -0
  70. package/dist/node_modules/qrcode/lib/core/bit-buffer.cjs +1 -0
  71. package/dist/node_modules/qrcode/lib/core/bit-buffer.js +24 -0
  72. package/dist/node_modules/qrcode/lib/core/bit-matrix.cjs +1 -0
  73. package/dist/node_modules/qrcode/lib/core/bit-matrix.js +22 -0
  74. package/dist/node_modules/qrcode/lib/core/byte-data.cjs +1 -0
  75. package/dist/node_modules/qrcode/lib/core/byte-data.js +24 -0
  76. package/dist/node_modules/qrcode/lib/core/error-correction-code.cjs +1 -0
  77. package/dist/node_modules/qrcode/lib/core/error-correction-code.js +359 -0
  78. package/dist/node_modules/qrcode/lib/core/error-correction-level.cjs +1 -0
  79. package/dist/node_modules/qrcode/lib/core/error-correction-level.js +35 -0
  80. package/dist/node_modules/qrcode/lib/core/finder-pattern.cjs +1 -0
  81. package/dist/node_modules/qrcode/lib/core/finder-pattern.js +18 -0
  82. package/dist/node_modules/qrcode/lib/core/format-info.cjs +1 -0
  83. package/dist/node_modules/qrcode/lib/core/format-info.js +14 -0
  84. package/dist/node_modules/qrcode/lib/core/galois-field.cjs +1 -0
  85. package/dist/node_modules/qrcode/lib/core/galois-field.js +22 -0
  86. package/dist/node_modules/qrcode/lib/core/kanji-data.cjs +2 -0
  87. package/dist/node_modules/qrcode/lib/core/kanji-data.js +37 -0
  88. package/dist/node_modules/qrcode/lib/core/mask-pattern.cjs +1 -0
  89. package/dist/node_modules/qrcode/lib/core/mask-pattern.js +96 -0
  90. package/dist/node_modules/qrcode/lib/core/mode.cjs +1 -0
  91. package/dist/node_modules/qrcode/lib/core/mode.js +64 -0
  92. package/dist/node_modules/qrcode/lib/core/numeric-data.cjs +1 -0
  93. package/dist/node_modules/qrcode/lib/core/numeric-data.js +26 -0
  94. package/dist/node_modules/qrcode/lib/core/polynomial.cjs +1 -0
  95. package/dist/node_modules/qrcode/lib/core/polynomial.js +29 -0
  96. package/dist/node_modules/qrcode/lib/core/qrcode.cjs +4 -0
  97. package/dist/node_modules/qrcode/lib/core/qrcode.js +159 -0
  98. package/dist/node_modules/qrcode/lib/core/reed-solomon-encoder.cjs +1 -0
  99. package/dist/node_modules/qrcode/lib/core/reed-solomon-encoder.js +25 -0
  100. package/dist/node_modules/qrcode/lib/core/regex.cjs +2 -0
  101. package/dist/node_modules/qrcode/lib/core/regex.js +24 -0
  102. package/dist/node_modules/qrcode/lib/core/segments.cjs +2 -0
  103. package/dist/node_modules/qrcode/lib/core/segments.js +143 -0
  104. package/dist/node_modules/qrcode/lib/core/utils.cjs +1 -0
  105. package/dist/node_modules/qrcode/lib/core/utils.js +74 -0
  106. package/dist/node_modules/qrcode/lib/core/version-check.cjs +1 -0
  107. package/dist/node_modules/qrcode/lib/core/version-check.js +7 -0
  108. package/dist/node_modules/qrcode/lib/core/version.cjs +1 -0
  109. package/dist/node_modules/qrcode/lib/core/version.js +74 -0
  110. package/dist/node_modules/qrcode/lib/renderer/canvas.cjs +1 -0
  111. package/dist/node_modules/qrcode/lib/renderer/canvas.js +27 -0
  112. package/dist/node_modules/qrcode/lib/renderer/svg-tag.cjs +2 -0
  113. package/dist/node_modules/qrcode/lib/renderer/svg-tag.js +28 -0
  114. package/dist/node_modules/qrcode/lib/renderer/utils.cjs +1 -0
  115. package/dist/node_modules/qrcode/lib/renderer/utils.js +52 -0
  116. package/dist/orders.server.js +1 -1
  117. package/dist/orders.server.mjs +1 -1
  118. package/dist/organizations.server.js +1 -1
  119. package/dist/organizations.server.mjs +1 -1
  120. package/dist/products.server.js +1 -1
  121. package/dist/products.server.mjs +1 -1
  122. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
  124. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/components/Field/Field.vue.js +19 -20
  126. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +5 -5
  128. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
  130. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  132. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +16 -16
  134. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +16 -16
  136. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +13 -13
  138. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +36 -36
  140. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +29 -29
  142. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
  144. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  146. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +1 -1
  148. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +3 -3
  150. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +23 -23
  152. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +2 -2
  154. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +14 -14
  156. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  158. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +2 -2
  160. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  162. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +12 -12
  164. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +21 -21
  166. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
  168. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +5 -5
  170. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +7 -7
  172. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +2 -2
  174. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +8 -8
  176. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  178. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  180. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  181. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +4 -4
  182. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  183. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +3 -3
  184. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +5 -5
  186. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  187. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +8 -8
  188. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  189. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  190. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  191. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  192. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  194. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  195. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +4 -4
  196. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  197. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  198. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  199. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +8 -8
  200. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  201. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
  202. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  203. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +12 -12
  204. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  205. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +16 -16
  206. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  207. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +6 -6
  208. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  209. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +19 -19
  210. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  211. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  212. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  213. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +7 -7
  214. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  215. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  216. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  217. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  218. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  219. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +13 -13
  220. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  221. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +18 -18
  222. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  223. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +32 -32
  224. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  225. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +10 -10
  226. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  227. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +5 -5
  228. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  229. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  230. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  231. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  232. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  233. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  234. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  235. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
  236. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  237. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +9 -9
  238. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.cjs +1 -0
  239. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.js +34 -0
  240. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +1 -0
  241. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +42 -0
  242. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CashDeposit.vue.cjs +1 -0
  243. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CashDeposit.vue.js +26 -0
  244. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -0
  245. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +76 -0
  246. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.cjs +1 -0
  247. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.js +105 -0
  248. package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.cjs +1 -0
  249. package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js +106 -0
  250. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  251. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +140 -125
  252. package/dist/prometheus-framework/src/modules/wallet/views/localization/wallet.json.cjs +1 -0
  253. package/dist/prometheus-framework/src/modules/wallet/views/localization/wallet.json.js +41 -0
  254. package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.cjs +1 -1
  255. package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.js +98 -22
  256. package/dist/prometheus-framework.cjs.js +1 -1
  257. package/dist/prometheus-framework.es.js +1 -1
  258. package/dist/reports.server.js +1 -1
  259. package/dist/reports.server.mjs +1 -1
  260. package/dist/style.css +1 -1
  261. package/dist/wallet.server.js +103 -13
  262. package/dist/wallet.server.mjs +103 -13
  263. package/dist/web-5eyiz9L7.mjs +54 -0
  264. package/dist/web-C04IcLk4.js +1 -0
  265. package/package.json +1 -1
  266. package/src/components/Field/Field.vue +1 -1
  267. package/src/modules/community/components/pages/Blog.vue +1 -1
  268. package/src/modules/globals/components/partials/Header.vue +2 -2
  269. package/src/modules/globals/localization/vue-i18n.js +5 -5
  270. package/src/modules/landing/components/sections/HowToBuyWDR.vue +2 -3
  271. package/src/modules/landing/components/sections/SectionEarn.vue +1 -6
  272. package/src/modules/middlewares/server/authSecret.js +22 -0
  273. package/src/modules/middlewares/server/index.js +7 -5
  274. package/src/modules/wallet/controllers/factories/rewards.factory.js +87 -2
  275. package/src/modules/wallet/controllers/routes/rewards.routes.js +27 -3
  276. package/src/modules/wallet/models/wallet.model.js +5 -5
  277. package/src/modules/wallet/{components → views/components}/blocks/CardBalanceReplenished.vue +17 -7
  278. package/src/modules/wallet/{components/blocks/CardDeposite.vue → views/components/blocks/CardDeposit.vue} +4 -4
  279. package/src/modules/wallet/views/components/blocks/CryptoDeposit.vue +98 -0
  280. package/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue +144 -0
  281. package/src/modules/wallet/views/components/elements/ConnectMetamask.vue +131 -0
  282. package/src/modules/wallet/views/components/pages/Wallet.vue +95 -68
  283. package/src/modules/wallet/views/localization/wallet.json +37 -0
  284. package/src/modules/wallet/views/store/wallet.store.js +145 -28
  285. package/src/modules/wallet/wallet.server.js +2 -2
  286. package/src/modules/wallet/components/blocks/CryptoDeposite.vue +0 -55
  287. package/src/modules/wallet/controllers/factories/rewards.factory.aggr.js +0 -181
  288. package/src/modules/wallet/controllers/factories/rewards.factory.population.js +0 -213
  289. package/src/modules/wallet/localization/Wallet.json +0 -22
  290. /package/src/modules/wallet/{components/blocks/CashDeposite.vue → views/components/blocks/CashDeposit.vue} +0 -0
@@ -0,0 +1,359 @@
1
+ import { __exports as u } from "../../../../_virtual/error-correction-code.js";
2
+ import "./error-correction-level.js";
3
+ import { __exports as a } from "../../../../_virtual/error-correction-level.js";
4
+ const e = a, r = [
5
+ // L M Q H
6
+ 1,
7
+ 1,
8
+ 1,
9
+ 1,
10
+ 1,
11
+ 1,
12
+ 1,
13
+ 1,
14
+ 1,
15
+ 1,
16
+ 2,
17
+ 2,
18
+ 1,
19
+ 2,
20
+ 2,
21
+ 4,
22
+ 1,
23
+ 2,
24
+ 4,
25
+ 4,
26
+ 2,
27
+ 4,
28
+ 4,
29
+ 4,
30
+ 2,
31
+ 4,
32
+ 6,
33
+ 5,
34
+ 2,
35
+ 4,
36
+ 6,
37
+ 6,
38
+ 2,
39
+ 5,
40
+ 8,
41
+ 8,
42
+ 4,
43
+ 5,
44
+ 8,
45
+ 8,
46
+ 4,
47
+ 5,
48
+ 8,
49
+ 11,
50
+ 4,
51
+ 8,
52
+ 10,
53
+ 11,
54
+ 4,
55
+ 9,
56
+ 12,
57
+ 16,
58
+ 4,
59
+ 9,
60
+ 16,
61
+ 16,
62
+ 6,
63
+ 10,
64
+ 12,
65
+ 18,
66
+ 6,
67
+ 10,
68
+ 17,
69
+ 16,
70
+ 6,
71
+ 11,
72
+ 16,
73
+ 19,
74
+ 6,
75
+ 13,
76
+ 18,
77
+ 21,
78
+ 7,
79
+ 14,
80
+ 21,
81
+ 25,
82
+ 8,
83
+ 16,
84
+ 20,
85
+ 25,
86
+ 8,
87
+ 17,
88
+ 23,
89
+ 25,
90
+ 9,
91
+ 17,
92
+ 23,
93
+ 34,
94
+ 9,
95
+ 18,
96
+ 25,
97
+ 30,
98
+ 10,
99
+ 20,
100
+ 27,
101
+ 32,
102
+ 12,
103
+ 21,
104
+ 29,
105
+ 35,
106
+ 12,
107
+ 23,
108
+ 34,
109
+ 37,
110
+ 12,
111
+ 25,
112
+ 34,
113
+ 40,
114
+ 13,
115
+ 26,
116
+ 35,
117
+ 42,
118
+ 14,
119
+ 28,
120
+ 38,
121
+ 45,
122
+ 15,
123
+ 29,
124
+ 40,
125
+ 48,
126
+ 16,
127
+ 31,
128
+ 43,
129
+ 51,
130
+ 17,
131
+ 33,
132
+ 45,
133
+ 54,
134
+ 18,
135
+ 35,
136
+ 48,
137
+ 57,
138
+ 19,
139
+ 37,
140
+ 51,
141
+ 60,
142
+ 19,
143
+ 38,
144
+ 53,
145
+ 63,
146
+ 20,
147
+ 40,
148
+ 56,
149
+ 66,
150
+ 21,
151
+ 43,
152
+ 59,
153
+ 70,
154
+ 22,
155
+ 45,
156
+ 62,
157
+ 74,
158
+ 24,
159
+ 47,
160
+ 65,
161
+ 77,
162
+ 25,
163
+ 49,
164
+ 68,
165
+ 81
166
+ ], o = [
167
+ // L M Q H
168
+ 7,
169
+ 10,
170
+ 13,
171
+ 17,
172
+ 10,
173
+ 16,
174
+ 22,
175
+ 28,
176
+ 15,
177
+ 26,
178
+ 36,
179
+ 44,
180
+ 20,
181
+ 36,
182
+ 52,
183
+ 64,
184
+ 26,
185
+ 48,
186
+ 72,
187
+ 88,
188
+ 36,
189
+ 64,
190
+ 96,
191
+ 112,
192
+ 40,
193
+ 72,
194
+ 108,
195
+ 130,
196
+ 48,
197
+ 88,
198
+ 132,
199
+ 156,
200
+ 60,
201
+ 110,
202
+ 160,
203
+ 192,
204
+ 72,
205
+ 130,
206
+ 192,
207
+ 224,
208
+ 80,
209
+ 150,
210
+ 224,
211
+ 264,
212
+ 96,
213
+ 176,
214
+ 260,
215
+ 308,
216
+ 104,
217
+ 198,
218
+ 288,
219
+ 352,
220
+ 120,
221
+ 216,
222
+ 320,
223
+ 384,
224
+ 132,
225
+ 240,
226
+ 360,
227
+ 432,
228
+ 144,
229
+ 280,
230
+ 408,
231
+ 480,
232
+ 168,
233
+ 308,
234
+ 448,
235
+ 532,
236
+ 180,
237
+ 338,
238
+ 504,
239
+ 588,
240
+ 196,
241
+ 364,
242
+ 546,
243
+ 650,
244
+ 224,
245
+ 416,
246
+ 600,
247
+ 700,
248
+ 224,
249
+ 442,
250
+ 644,
251
+ 750,
252
+ 252,
253
+ 476,
254
+ 690,
255
+ 816,
256
+ 270,
257
+ 504,
258
+ 750,
259
+ 900,
260
+ 300,
261
+ 560,
262
+ 810,
263
+ 960,
264
+ 312,
265
+ 588,
266
+ 870,
267
+ 1050,
268
+ 336,
269
+ 644,
270
+ 952,
271
+ 1110,
272
+ 360,
273
+ 700,
274
+ 1020,
275
+ 1200,
276
+ 390,
277
+ 728,
278
+ 1050,
279
+ 1260,
280
+ 420,
281
+ 784,
282
+ 1140,
283
+ 1350,
284
+ 450,
285
+ 812,
286
+ 1200,
287
+ 1440,
288
+ 480,
289
+ 868,
290
+ 1290,
291
+ 1530,
292
+ 510,
293
+ 924,
294
+ 1350,
295
+ 1620,
296
+ 540,
297
+ 980,
298
+ 1440,
299
+ 1710,
300
+ 570,
301
+ 1036,
302
+ 1530,
303
+ 1800,
304
+ 570,
305
+ 1064,
306
+ 1590,
307
+ 1890,
308
+ 600,
309
+ 1120,
310
+ 1680,
311
+ 1980,
312
+ 630,
313
+ 1204,
314
+ 1770,
315
+ 2100,
316
+ 660,
317
+ 1260,
318
+ 1860,
319
+ 2220,
320
+ 720,
321
+ 1316,
322
+ 1950,
323
+ 2310,
324
+ 750,
325
+ 1372,
326
+ 2040,
327
+ 2430
328
+ ];
329
+ u.getBlocksCount = function(t, n) {
330
+ switch (n) {
331
+ case e.L:
332
+ return r[(t - 1) * 4 + 0];
333
+ case e.M:
334
+ return r[(t - 1) * 4 + 1];
335
+ case e.Q:
336
+ return r[(t - 1) * 4 + 2];
337
+ case e.H:
338
+ return r[(t - 1) * 4 + 3];
339
+ default:
340
+ return;
341
+ }
342
+ };
343
+ u.getTotalCodewordsCount = function(t, n) {
344
+ switch (n) {
345
+ case e.L:
346
+ return o[(t - 1) * 4 + 0];
347
+ case e.M:
348
+ return o[(t - 1) * 4 + 1];
349
+ case e.Q:
350
+ return o[(t - 1) * 4 + 2];
351
+ case e.H:
352
+ return o[(t - 1) * 4 + 3];
353
+ default:
354
+ return;
355
+ }
356
+ };
357
+ export {
358
+ u as default
359
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("../../../../_virtual/error-correction-level.cjs");(function(r){r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2};function n(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+t)}}r.isValid=function(i){return i&&typeof i.bit<"u"&&i.bit>=0&&i.bit<4},r.from=function(i,c){if(r.isValid(i))return i;try{return n(i)}catch{return c}}})(e.__exports);
@@ -0,0 +1,35 @@
1
+ import { __exports as a } from "../../../../_virtual/error-correction-level.js";
2
+ (function(r) {
3
+ r.L = { bit: 1 }, r.M = { bit: 0 }, r.Q = { bit: 3 }, r.H = { bit: 2 };
4
+ function t(n) {
5
+ if (typeof n != "string")
6
+ throw new Error("Param is not a string");
7
+ switch (n.toLowerCase()) {
8
+ case "l":
9
+ case "low":
10
+ return r.L;
11
+ case "m":
12
+ case "medium":
13
+ return r.M;
14
+ case "q":
15
+ case "quartile":
16
+ return r.Q;
17
+ case "h":
18
+ case "high":
19
+ return r.H;
20
+ default:
21
+ throw new Error("Unknown EC Level: " + n);
22
+ }
23
+ }
24
+ r.isValid = function(i) {
25
+ return i && typeof i.bit < "u" && i.bit >= 0 && i.bit < 4;
26
+ }, r.from = function(i, c) {
27
+ if (r.isValid(i))
28
+ return i;
29
+ try {
30
+ return t(i);
31
+ } catch {
32
+ return c;
33
+ }
34
+ };
35
+ })(a);
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../../../_virtual/finder-pattern.cjs");require("./utils.cjs");const s=require("../../../../_virtual/utils.cjs"),i=s.__exports.getSymbolSize,t=7;o.__exports.getPositions=function(r){const e=i(r);return[[0,0],[e-t,0],[0,e-t]]};exports.default=o.__exports;
@@ -0,0 +1,18 @@
1
+ import { __exports as s } from "../../../../_virtual/finder-pattern.js";
2
+ import "./utils.js";
3
+ import { __exports as i } from "../../../../_virtual/utils.js";
4
+ const r = i.getSymbolSize, o = 7;
5
+ s.getPositions = function(e) {
6
+ const t = r(e);
7
+ return [
8
+ // top-left
9
+ [0, 0],
10
+ // top-right
11
+ [t - o, 0],
12
+ // bottom-left
13
+ [0, t - o]
14
+ ];
15
+ };
16
+ export {
17
+ s as default
18
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("../../../../_virtual/format-info.cjs");require("./utils.cjs");const c=require("../../../../_virtual/utils.cjs"),e=c.__exports,r=1335,d=21522,o=e.getBCHDigit(r);s.__exports.getEncodedBits=function(n,u){const i=n.bit<<3|u;let t=i<<10;for(;e.getBCHDigit(t)-o>=0;)t^=r<<e.getBCHDigit(t)-o;return(i<<10|t)^d};exports.default=s.__exports;
@@ -0,0 +1,14 @@
1
+ import { __exports as c } from "../../../../_virtual/format-info.js";
2
+ import "./utils.js";
3
+ import { __exports as g } from "../../../../_virtual/utils.js";
4
+ const o = g, s = 1335, a = 21522, e = o.getBCHDigit(s);
5
+ c.getEncodedBits = function(n, r) {
6
+ const i = n.bit << 3 | r;
7
+ let t = i << 10;
8
+ for (; o.getBCHDigit(t) - e >= 0; )
9
+ t ^= s << o.getBCHDigit(t) - e;
10
+ return (i << 10 | t) ^ a;
11
+ };
12
+ export {
13
+ c as default
14
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../../../../_virtual/galois-field.cjs"),r=new Uint8Array(512),o=new Uint8Array(256);(function(){let e=1;for(let t=0;t<255;t++)r[t]=e,o[e]=t,e<<=1,e&256&&(e^=285);for(let t=255;t<512;t++)r[t]=r[t-255]})();n.__exports.log=function(e){if(e<1)throw new Error("log("+e+")");return o[e]};n.__exports.exp=function(e){return r[e]};n.__exports.mul=function(e,t){return e===0||t===0?0:r[o[e]+o[t]]};exports.default=n.__exports;
@@ -0,0 +1,22 @@
1
+ import { __exports as i } from "../../../../_virtual/galois-field.js";
2
+ const n = new Uint8Array(512), o = new Uint8Array(256);
3
+ (function() {
4
+ let r = 1;
5
+ for (let t = 0; t < 255; t++)
6
+ n[t] = r, o[r] = t, r <<= 1, r & 256 && (r ^= 285);
7
+ for (let t = 255; t < 512; t++)
8
+ n[t] = n[t - 255];
9
+ })();
10
+ i.log = function(r) {
11
+ if (r < 1) throw new Error("log(" + r + ")");
12
+ return o[r];
13
+ };
14
+ i.exp = function(r) {
15
+ return n[r];
16
+ };
17
+ i.mul = function(r, t) {
18
+ return r === 0 || t === 0 ? 0 : n[o[r] + o[t]];
19
+ };
20
+ export {
21
+ i as default
22
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./mode.cjs");require("./utils.cjs");const r=require("../../../../_virtual/utils.cjs"),a=require("../../../../_virtual/mode.cjs"),o=a.__exports,s=r.__exports;function n(i){this.mode=o.KANJI,this.data=i}n.getBitsLength=function(e){return e*13};n.prototype.getLength=function(){return this.data.length};n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)};n.prototype.write=function(i){let e;for(e=0;e<this.data.length;e++){let t=s.toSJIS(this.data[e]);if(t>=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
2
+ Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),i.put(t,13)}};var h=n;exports.kanjiData=h;
@@ -0,0 +1,37 @@
1
+ import "./mode.js";
2
+ import "./utils.js";
3
+ import { __exports as o } from "../../../../_virtual/utils.js";
4
+ import { __exports as r } from "../../../../_virtual/mode.js";
5
+ const a = r, s = o;
6
+ function n(i) {
7
+ this.mode = a.KANJI, this.data = i;
8
+ }
9
+ n.getBitsLength = function(e) {
10
+ return e * 13;
11
+ };
12
+ n.prototype.getLength = function() {
13
+ return this.data.length;
14
+ };
15
+ n.prototype.getBitsLength = function() {
16
+ return n.getBitsLength(this.data.length);
17
+ };
18
+ n.prototype.write = function(i) {
19
+ let e;
20
+ for (e = 0; e < this.data.length; e++) {
21
+ let t = s.toSJIS(this.data[e]);
22
+ if (t >= 33088 && t <= 40956)
23
+ t -= 33088;
24
+ else if (t >= 57408 && t <= 60351)
25
+ t -= 49472;
26
+ else
27
+ throw new Error(
28
+ "Invalid SJIS character: " + this.data[e] + `
29
+ Make sure your charset is UTF-8`
30
+ );
31
+ t = (t >>> 8 & 255) * 192 + (t & 255), i.put(t, 13);
32
+ }
33
+ };
34
+ var u = n;
35
+ export {
36
+ u as k
37
+ };
@@ -0,0 +1 @@
1
+ "use strict";const T=require("../../../../_virtual/mask-pattern.cjs");(function(r){r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const N={N1:3,N2:3,N3:40,N4:10};r.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7},r.from=function(t){return r.isValid(t)?parseInt(t,10):void 0},r.getPenaltyN1=function(t){const l=t.size;let s=0,n=0,e=0,o=null,P=null;for(let c=0;c<l;c++){n=e=0,o=P=null;for(let f=0;f<l;f++){let u=t.get(c,f);u===o?n++:(n>=5&&(s+=N.N1+(n-5)),o=u,n=1),u=t.get(f,c),u===P?e++:(e>=5&&(s+=N.N1+(e-5)),P=u,e=1)}n>=5&&(s+=N.N1+(n-5)),e>=5&&(s+=N.N1+(e-5))}return s},r.getPenaltyN2=function(t){const l=t.size;let s=0;for(let n=0;n<l-1;n++)for(let e=0;e<l-1;e++){const o=t.get(n,e)+t.get(n,e+1)+t.get(n+1,e)+t.get(n+1,e+1);(o===4||o===0)&&s++}return s*N.N2},r.getPenaltyN3=function(t){const l=t.size;let s=0,n=0,e=0;for(let o=0;o<l;o++){n=e=0;for(let P=0;P<l;P++)n=n<<1&2047|t.get(o,P),P>=10&&(n===1488||n===93)&&s++,e=e<<1&2047|t.get(P,o),P>=10&&(e===1488||e===93)&&s++}return s*N.N3},r.getPenaltyN4=function(t){let l=0;const s=t.data.length;for(let e=0;e<s;e++)l+=t.data[e];return Math.abs(Math.ceil(l*100/s/5)-10)*N.N4};function a(i,t,l){switch(i){case r.Patterns.PATTERN000:return(t+l)%2===0;case r.Patterns.PATTERN001:return t%2===0;case r.Patterns.PATTERN010:return l%3===0;case r.Patterns.PATTERN011:return(t+l)%3===0;case r.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(l/3))%2===0;case r.Patterns.PATTERN101:return t*l%2+t*l%3===0;case r.Patterns.PATTERN110:return(t*l%2+t*l%3)%2===0;case r.Patterns.PATTERN111:return(t*l%3+(t+l)%2)%2===0;default:throw new Error("bad maskPattern:"+i)}}r.applyMask=function(t,l){const s=l.size;for(let n=0;n<s;n++)for(let e=0;e<s;e++)l.isReserved(e,n)||l.xor(e,n,a(t,e,n))},r.getBestMask=function(t,l){const s=Object.keys(r.Patterns).length;let n=0,e=1/0;for(let o=0;o<s;o++){l(o),r.applyMask(o,t);const P=r.getPenaltyN1(t)+r.getPenaltyN2(t)+r.getPenaltyN3(t)+r.getPenaltyN4(t);r.applyMask(o,t),P<e&&(e=P,n=o)}return n}})(T.__exports);
@@ -0,0 +1,96 @@
1
+ import { __exports as T } from "../../../../_virtual/mask-pattern.js";
2
+ (function(r) {
3
+ r.Patterns = {
4
+ PATTERN000: 0,
5
+ PATTERN001: 1,
6
+ PATTERN010: 2,
7
+ PATTERN011: 3,
8
+ PATTERN100: 4,
9
+ PATTERN101: 5,
10
+ PATTERN110: 6,
11
+ PATTERN111: 7
12
+ };
13
+ const N = {
14
+ N1: 3,
15
+ N2: 3,
16
+ N3: 40,
17
+ N4: 10
18
+ };
19
+ r.isValid = function(t) {
20
+ return t != null && t !== "" && !isNaN(t) && t >= 0 && t <= 7;
21
+ }, r.from = function(t) {
22
+ return r.isValid(t) ? parseInt(t, 10) : void 0;
23
+ }, r.getPenaltyN1 = function(t) {
24
+ const l = t.size;
25
+ let s = 0, n = 0, e = 0, o = null, P = null;
26
+ for (let u = 0; u < l; u++) {
27
+ n = e = 0, o = P = null;
28
+ for (let c = 0; c < l; c++) {
29
+ let f = t.get(u, c);
30
+ f === o ? n++ : (n >= 5 && (s += N.N1 + (n - 5)), o = f, n = 1), f = t.get(c, u), f === P ? e++ : (e >= 5 && (s += N.N1 + (e - 5)), P = f, e = 1);
31
+ }
32
+ n >= 5 && (s += N.N1 + (n - 5)), e >= 5 && (s += N.N1 + (e - 5));
33
+ }
34
+ return s;
35
+ }, r.getPenaltyN2 = function(t) {
36
+ const l = t.size;
37
+ let s = 0;
38
+ for (let n = 0; n < l - 1; n++)
39
+ for (let e = 0; e < l - 1; e++) {
40
+ const o = t.get(n, e) + t.get(n, e + 1) + t.get(n + 1, e) + t.get(n + 1, e + 1);
41
+ (o === 4 || o === 0) && s++;
42
+ }
43
+ return s * N.N2;
44
+ }, r.getPenaltyN3 = function(t) {
45
+ const l = t.size;
46
+ let s = 0, n = 0, e = 0;
47
+ for (let o = 0; o < l; o++) {
48
+ n = e = 0;
49
+ for (let P = 0; P < l; P++)
50
+ n = n << 1 & 2047 | t.get(o, P), P >= 10 && (n === 1488 || n === 93) && s++, e = e << 1 & 2047 | t.get(P, o), P >= 10 && (e === 1488 || e === 93) && s++;
51
+ }
52
+ return s * N.N3;
53
+ }, r.getPenaltyN4 = function(t) {
54
+ let l = 0;
55
+ const s = t.data.length;
56
+ for (let e = 0; e < s; e++) l += t.data[e];
57
+ return Math.abs(Math.ceil(l * 100 / s / 5) - 10) * N.N4;
58
+ };
59
+ function a(i, t, l) {
60
+ switch (i) {
61
+ case r.Patterns.PATTERN000:
62
+ return (t + l) % 2 === 0;
63
+ case r.Patterns.PATTERN001:
64
+ return t % 2 === 0;
65
+ case r.Patterns.PATTERN010:
66
+ return l % 3 === 0;
67
+ case r.Patterns.PATTERN011:
68
+ return (t + l) % 3 === 0;
69
+ case r.Patterns.PATTERN100:
70
+ return (Math.floor(t / 2) + Math.floor(l / 3)) % 2 === 0;
71
+ case r.Patterns.PATTERN101:
72
+ return t * l % 2 + t * l % 3 === 0;
73
+ case r.Patterns.PATTERN110:
74
+ return (t * l % 2 + t * l % 3) % 2 === 0;
75
+ case r.Patterns.PATTERN111:
76
+ return (t * l % 3 + (t + l) % 2) % 2 === 0;
77
+ default:
78
+ throw new Error("bad maskPattern:" + i);
79
+ }
80
+ }
81
+ r.applyMask = function(t, l) {
82
+ const s = l.size;
83
+ for (let n = 0; n < s; n++)
84
+ for (let e = 0; e < s; e++)
85
+ l.isReserved(e, n) || l.xor(e, n, a(t, e, n));
86
+ }, r.getBestMask = function(t, l) {
87
+ const s = Object.keys(r.Patterns).length;
88
+ let n = 0, e = 1 / 0;
89
+ for (let o = 0; o < s; o++) {
90
+ l(o), r.applyMask(o, t);
91
+ const P = r.getPenaltyN1(t) + r.getPenaltyN2(t) + r.getPenaltyN3(t) + r.getPenaltyN4(t);
92
+ r.applyMask(o, t), P < e && (e = P, n = o);
93
+ }
94
+ return n;
95
+ };
96
+ })(T);
@@ -0,0 +1 @@
1
+ "use strict";const a=require("../../../../_virtual/mode.cjs");require("./version-check.cjs");require("./regex.cjs");const f=require("../../../../_virtual/version-check.cjs"),o=require("../../../../_virtual/regex.cjs");(function(r){const c=f.__exports,e=o.__exports;r.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(i,n){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!c.isValid(n))throw new Error("Invalid version: "+n);return n>=1&&n<10?i.ccBits[0]:n<27?i.ccBits[1]:i.ccBits[2]},r.getBestModeForData=function(i){return e.testNumeric(i)?r.NUMERIC:e.testAlphanumeric(i)?r.ALPHANUMERIC:e.testKanji(i)?r.KANJI:r.BYTE},r.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},r.isValid=function(i){return i&&i.bit&&i.ccBits};function u(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw new Error("Unknown mode: "+t)}}r.from=function(i,n){if(r.isValid(i))return i;try{return u(i)}catch{return n}}})(a.__exports);
@@ -0,0 +1,64 @@
1
+ import { __exports as a } from "../../../../_virtual/mode.js";
2
+ import "./version-check.js";
3
+ import "./regex.js";
4
+ import { __exports as o } from "../../../../_virtual/version-check.js";
5
+ import { __exports as f } from "../../../../_virtual/regex.js";
6
+ (function(r) {
7
+ const e = o, c = f;
8
+ r.NUMERIC = {
9
+ id: "Numeric",
10
+ bit: 1,
11
+ ccBits: [10, 12, 14]
12
+ }, r.ALPHANUMERIC = {
13
+ id: "Alphanumeric",
14
+ bit: 2,
15
+ ccBits: [9, 11, 13]
16
+ }, r.BYTE = {
17
+ id: "Byte",
18
+ bit: 4,
19
+ ccBits: [8, 16, 16]
20
+ }, r.KANJI = {
21
+ id: "Kanji",
22
+ bit: 8,
23
+ ccBits: [8, 10, 12]
24
+ }, r.MIXED = {
25
+ bit: -1
26
+ }, r.getCharCountIndicator = function(i, n) {
27
+ if (!i.ccBits) throw new Error("Invalid mode: " + i);
28
+ if (!e.isValid(n))
29
+ throw new Error("Invalid version: " + n);
30
+ return n >= 1 && n < 10 ? i.ccBits[0] : n < 27 ? i.ccBits[1] : i.ccBits[2];
31
+ }, r.getBestModeForData = function(i) {
32
+ return c.testNumeric(i) ? r.NUMERIC : c.testAlphanumeric(i) ? r.ALPHANUMERIC : c.testKanji(i) ? r.KANJI : r.BYTE;
33
+ }, r.toString = function(i) {
34
+ if (i && i.id) return i.id;
35
+ throw new Error("Invalid mode");
36
+ }, r.isValid = function(i) {
37
+ return i && i.bit && i.ccBits;
38
+ };
39
+ function u(t) {
40
+ if (typeof t != "string")
41
+ throw new Error("Param is not a string");
42
+ switch (t.toLowerCase()) {
43
+ case "numeric":
44
+ return r.NUMERIC;
45
+ case "alphanumeric":
46
+ return r.ALPHANUMERIC;
47
+ case "kanji":
48
+ return r.KANJI;
49
+ case "byte":
50
+ return r.BYTE;
51
+ default:
52
+ throw new Error("Unknown mode: " + t);
53
+ }
54
+ }
55
+ r.from = function(i, n) {
56
+ if (r.isValid(i))
57
+ return i;
58
+ try {
59
+ return u(i);
60
+ } catch {
61
+ return n;
62
+ }
63
+ };
64
+ })(a);
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./mode.cjs");const s=require("../../../../_virtual/mode.cjs"),u=s.__exports;function n(i){this.mode=u.NUMERIC,this.data=i.toString()}n.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};n.prototype.getLength=function(){return this.data.length};n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)};n.prototype.write=function(t){let e,r,a;for(e=0;e+3<=this.data.length;e+=3)r=this.data.substr(e,3),a=parseInt(r,10),t.put(a,10);const o=this.data.length-e;o>0&&(r=this.data.substr(e),a=parseInt(r,10),t.put(a,o*3+1))};var g=n;exports.numericData=g;