@fewangsit/wangsvue-fats 1.0.0-alpha.41 → 1.0.0-alpha.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (373) hide show
  1. package/ButtonCopy-C6DSmsOR.es.js +4 -0
  2. package/ButtonCopy-CeBlNyVx.system.js +1 -0
  3. package/ButtonSync-BLyCwwnU.system.js +1 -0
  4. package/ButtonSync-DtUhn-Q-.es.js +4 -0
  5. package/ButtonToggle-B9Fa75pf.es.js +4 -0
  6. package/ButtonToggle-CSxzlLR2.system.js +1 -0
  7. package/ButtonViewLog-B1oa4oFN.es.js +4 -0
  8. package/ButtonViewLog-_J6r7Oz8.system.js +1 -0
  9. package/Card-B19WgA6Y.es.js +4 -0
  10. package/Card-umUgd-nP.system.js +1 -0
  11. package/InputEmail-BZ5Y0wSk.system.js +1 -0
  12. package/InputEmail-DR_E1DsL.es.js +4 -0
  13. package/InputURL-DL6a94kM.system.js +1 -0
  14. package/InputURL-PVF5EUUY.es.js +4 -0
  15. package/Loading-Cq7rP88c.system.js +1 -0
  16. package/Loading-DUHTVct4.es.js +4 -0
  17. package/UserWithIcon-Ddn_GlNu.system.js +1 -0
  18. package/UserWithIcon-hWXf-A2U.es.js +4 -0
  19. package/assets/lottie/loading-page-B9ooQcfF.system.js +1 -0
  20. package/assets/lottie/loading-page-CQ0mKER2.es.js +15 -0
  21. package/assets/lottie/loading-table-B4T3FYiI.system.js +1 -0
  22. package/assets/lottie/loading-table-BnpbX8Ew.es.js +15 -0
  23. package/assets/lottie/no-data-CMWnya_k.system.js +1 -0
  24. package/{no-data-DLHO1L_u.js → assets/lottie/no-data-DOy8kIGF.es.js} +13 -2
  25. package/async-components/index-C8nb7p3T.es.js +70 -0
  26. package/async-components/index-DvjqHrYE.system.js +1 -0
  27. package/components/animation/Animation-CCEnvZ_Z.es.js +48 -0
  28. package/components/animation/Animation-CJb4YIwm.system.js +1 -0
  29. package/components/approverinfo/ApproverInfo-Bruotw1h.es.js +127 -0
  30. package/components/approverinfo/ApproverInfo-CoWywuLZ.system.js +1 -0
  31. package/components/assetinfo/AssetInfo-B8KAsqvC.system.js +1 -0
  32. package/components/assetinfo/AssetInfo-DNsWx4Xv.es.js +201 -0
  33. package/components/badge/Badge-DXAyz4Z8.es.js +99 -0
  34. package/components/badge/Badge-wSExdsOP.system.js +1 -0
  35. package/components/badgegroup/BadgeGroup-CAYL_5-g.system.js +1 -0
  36. package/components/badgegroup/BadgeGroup-Dl2cL80L.es.js +68 -0
  37. package/components/basetree/BaseTree-CmBp0uwr.system.js +1 -0
  38. package/components/basetree/BaseTree-RsvvntBp.es.js +167 -0
  39. package/components/basetree/TreeNode-CUL5_2Rj.es.js +499 -0
  40. package/components/basetree/TreeNode-D-YgXird.system.js +1 -0
  41. package/components/breadcrumb/Breadcrumb-BmuuCYJx.system.js +1 -0
  42. package/components/breadcrumb/Breadcrumb-oqdG9WGT.es.js +46 -0
  43. package/components/button/Button-CgkhMnxo.es.js +124 -0
  44. package/components/button/Button-D892iaxz.system.js +1 -0
  45. package/components/buttonbulkaction/ButtonBulkAction-CAamlaLP.system.js +1 -0
  46. package/components/buttonbulkaction/ButtonBulkAction-Tdf3aVtp.es.js +189 -0
  47. package/components/buttoncopy/ButtonCopy-CUFHlIO-.es.js +31 -0
  48. package/components/buttoncopy/ButtonCopy-CZPTLNHh.system.js +1 -0
  49. package/components/buttoncopy/ButtonCopy.vue.d.ts +6 -4
  50. package/components/buttondownload/ButtonDownload-BWGTiJnP.es.js +61 -0
  51. package/components/buttondownload/ButtonDownload-CUR6u0AT.system.js +1 -0
  52. package/components/buttonfilter/ButtonFilter-B1F4poKd.system.js +1 -0
  53. package/components/buttonfilter/ButtonFilter-B49leY-q.es.js +28 -0
  54. package/components/buttonradio/ButtonRadio-D6xKhPLg.es.js +83 -0
  55. package/components/buttonradio/ButtonRadio-NBcy0Epa.system.js +1 -0
  56. package/components/buttonscan/ButtonScan-BZzpqBe8.system.js +1 -0
  57. package/components/buttonscan/ButtonScan-mVHAdACL.es.js +387 -0
  58. package/components/buttonscan/workers/scanner.worker-8_0GG6W3.system.js +1 -0
  59. package/components/buttonscan/workers/scanner.worker-D3a72Zyk.es.js +25 -0
  60. package/components/buttonsearch/ButtonSearch-3hnarf3D.system.js +1 -0
  61. package/components/buttonsearch/ButtonSearch-BjcXUDQZ.es.js +70 -0
  62. package/components/buttonselecttree/ButtonSelectTree-D0lT3Exu.es.js +218 -0
  63. package/components/buttonselecttree/ButtonSelectTree-DKmPV8FD.system.js +1 -0
  64. package/components/buttonselectuser/ButtonSelectUser-B7GbLfS-.system.js +1 -0
  65. package/components/buttonselectuser/ButtonSelectUser-OAZRY9OR.es.js +101 -0
  66. package/components/buttonsync/ButtonSync-Brk16H8C.es.js +29 -0
  67. package/components/buttonsync/ButtonSync-D5lXmtHs.system.js +1 -0
  68. package/components/buttontoggle/ButtonToggle-1R5y5DCx.es.js +11 -0
  69. package/components/buttontoggle/ButtonToggle-DLsiXxjK.system.js +1 -0
  70. package/components/buttonviewlog/ButtonViewLog-CGsSkrzf.es.js +21 -0
  71. package/components/buttonviewlog/ButtonViewLog-leLO6F_N.system.js +1 -0
  72. package/components/calendar/BaseCalendar-5EI1UTbl.es.js +867 -0
  73. package/components/calendar/BaseCalendar-C02-gmOQ.system.js +1 -0
  74. package/components/calendar/Calendar-B2z-lfi9.es.js +112 -0
  75. package/components/calendar/Calendar-CWw4R5mN.system.js +1 -0
  76. package/components/card/Card-BccG14LV.es.js +47 -0
  77. package/components/card/Card-BjI-Xi0S.system.js +1 -0
  78. package/components/checkbox/Checkbox-DBU7Ji2C.es.js +135 -0
  79. package/components/checkbox/Checkbox-FZg_wq3C.system.js +1 -0
  80. package/components/codesnippet/CodeSnippet--pMQi4aO.es.js +127 -0
  81. package/components/codesnippet/CodeSnippet-BVwAQPSv.system.js +2 -0
  82. package/components/customcolumn/ColumnList-fdR5JfHj.es.js +159 -0
  83. package/components/customcolumn/ColumnList-yaNVEQFA.system.js +1 -0
  84. package/components/customcolumn/CustomColumn-CfvCLH4v.es.js +139 -0
  85. package/components/customcolumn/CustomColumn-D3u59-Rd.system.js +1 -0
  86. package/components/customcolumn/helpers/setVisibilityColumn.helper-B1vEZDtD.system.js +1 -0
  87. package/components/customcolumn/helpers/setVisibilityColumn.helper-CQ4P_C_9.es.js +16 -0
  88. package/components/datatable/DataTable-BH7Fk88O.es.js +992 -0
  89. package/components/datatable/DataTable-Cko2S6sM.system.js +1 -0
  90. package/components/datatable/MultiRow-B2vMSb7W.es.js +52 -0
  91. package/components/datatable/MultiRow-Sef5icam.system.js +1 -0
  92. package/components/datatable/store/dataTable.store-B4p-hj3w.es.js +37 -0
  93. package/components/datatable/store/dataTable.store-C9376aEJ.system.js +1 -0
  94. package/components/dialog/Dialog-BCcbXSya.es.js +121 -0
  95. package/components/dialog/Dialog-Dv7Jzg4E.system.js +1 -0
  96. package/components/dialogconfirm/DialogConfirm-BU-LRZCo.system.js +1 -0
  97. package/components/dialogconfirm/DialogConfirm-ByIWXisz.es.js +139 -0
  98. package/components/dialogform/DialogForm-DGl_NOEr.system.js +1 -0
  99. package/components/dialogform/DialogForm-tAbix3iC.es.js +222 -0
  100. package/components/dialogselecttree/DialogSelectTree-BrVtt3iG.es.js +268 -0
  101. package/components/dialogselecttree/DialogSelectTree-CT7dKC5N.system.js +1 -0
  102. package/components/dialogselectuser/DialogSelectUser-Bu7z7lUq.es.js +121 -0
  103. package/components/dialogselectuser/DialogSelectUser-DXL_NMJj.system.js +1 -0
  104. package/components/dialogselectuser/DialogSelectUserFilter-BNbIynoa.system.js +1 -0
  105. package/components/dialogselectuser/DialogSelectUserFilter-BgBrQCz1.es.js +44 -0
  106. package/components/dialogselectuser/options/columns-BKDHtwAp.es.js +71 -0
  107. package/components/dialogselectuser/options/columns-DLmJdDTR.system.js +1 -0
  108. package/components/dropdown/Dropdown-BNzT2uLU.system.js +1 -0
  109. package/components/dropdown/Dropdown-Dk4urj-W.es.js +258 -0
  110. package/components/editor/CodeSnippetAdapter-C0f7wytw.es.js +26 -0
  111. package/components/editor/CodeSnippetAdapter-f-VHwbwS.system.js +1 -0
  112. package/components/editor/Editor-RB5MqBs1.es.js +887 -0
  113. package/components/editor/Editor-upU4Z9FH.system.js +1 -0
  114. package/components/editor/EditorButton-CC6U1a_u.system.js +1 -0
  115. package/components/editor/EditorButton-Cfew79JD.es.js +28 -0
  116. package/components/editor/MentionList-BjWKefLh.system.js +1 -0
  117. package/components/editor/MentionList-CdX0_-TK.es.js +58 -0
  118. package/components/editor/MentionSection-5I-FSwew.es.js +52 -0
  119. package/components/editor/MentionSection-CiuaeX4J.system.js +3 -0
  120. package/components/editor/codeSnippetExtension-C-ADHg2S.es.js +40 -0
  121. package/components/editor/codeSnippetExtension-C3uj0fCk.system.js +1 -0
  122. package/components/editor/mentionSectionExtension-DJ6wkX1L.system.js +1 -0
  123. package/components/editor/mentionSectionExtension-rbWufuMT.es.js +46 -0
  124. package/components/editor/suggestion-BcYK0KeI.system.js +1 -0
  125. package/components/editor/suggestion-mkkpQFP-.es.js +41 -0
  126. package/components/fieldwrapper/FieldWrapper-Dc-stQRH.system.js +1 -0
  127. package/components/fieldwrapper/FieldWrapper-DmOogUM5.es.js +35 -0
  128. package/components/fileupload/FileUpload-0EHKlInu.es.js +175 -0
  129. package/components/fileupload/FileUpload-dXrsIAeC.system.js +1 -0
  130. package/components/filtercontainer/FilterContainer-Cd8TpncM.es.js +234 -0
  131. package/components/filtercontainer/FilterContainer-kkw3n3tu.system.js +1 -0
  132. package/components/filtercontainer/helpers/applyFilter.helper-Ci22FrPF.system.js +1 -0
  133. package/components/filtercontainer/helpers/applyFilter.helper-DpVdjYBr.es.js +56 -0
  134. package/components/form/Form-By85t_oI.system.js +1 -0
  135. package/components/form/Form-DhWBpdkq.es.js +181 -0
  136. package/components/hardwaresync/HardwareSync-BckCfIeF.es.js +238 -0
  137. package/components/hardwaresync/HardwareSync-DcgVc0cL.system.js +1 -0
  138. package/components/hardwaresync/store/device.store-DEKXH36R.system.js +1 -0
  139. package/components/hardwaresync/store/device.store-DpVE6Nhl.es.js +20 -0
  140. package/components/icon/Icon-C4kXVcEX.es.js +82 -0
  141. package/components/icon/Icon-D1a666FC.system.js +1 -0
  142. package/components/image/Image-Bf5EaBWP.es.js +170 -0
  143. package/components/image/Image-Cxi0E9gK.system.js +1 -0
  144. package/components/imagecompressor/BackgroundImageCropper-DhrTpgNX.system.js +1 -0
  145. package/components/imagecompressor/BackgroundImageCropper-hiHqCcIy.es.js +52 -0
  146. package/components/imagecompressor/ImageCompressor-C_vnTwmo.system.js +1 -0
  147. package/components/imagecompressor/ImageCompressor-DPo-1Yo8.es.js +509 -0
  148. package/components/imagecompressor/ImageInputInfo-4Ac8cBDM.es.js +46 -0
  149. package/components/imagecompressor/ImageInputInfo-U3hLlbwo.system.js +1 -0
  150. package/components/index-BMti6lK3.es.js +64 -0
  151. package/components/index-DBzSxIov.system.js +1 -0
  152. package/components/index.d.ts +162 -60
  153. package/components/inlinemessage/InlineMessage-BPJD82sq.es.js +94 -0
  154. package/components/inlinemessage/InlineMessage-DTyTe5_W.system.js +1 -0
  155. package/components/inputbadge/InputBadge-BUm6Kn-F.system.js +1 -0
  156. package/components/inputbadge/InputBadge-BngtjqHQ.es.js +186 -0
  157. package/components/inputcurrency/InputCurrency-CE4WrJ9k.es.js +1211 -0
  158. package/components/inputcurrency/InputCurrency-DaJuUujH.system.js +1 -0
  159. package/components/inputemail/InputEmail-8E04RVeq.system.js +1 -0
  160. package/components/inputemail/InputEmail-BFeY1l9Z.es.js +49 -0
  161. package/components/inputgroup/InputGroup-CTHxHL8n.system.js +1 -0
  162. package/components/inputgroup/InputGroup-CUxNAtDZ.es.js +56 -0
  163. package/components/inputnumber/InputNumber-BJ8Qm27k.system.js +1 -0
  164. package/components/inputnumber/InputNumber-CQd01PQ5.es.js +232 -0
  165. package/components/inputpassword/InputPassword-D3jaUFfR.system.js +1 -0
  166. package/components/inputpassword/InputPassword-DGWsHAB4.es.js +121 -0
  167. package/components/inputphonenumber/InputPhoneNumber-3To4Ktp9.system.js +1 -0
  168. package/components/inputphonenumber/InputPhoneNumber-DVAOWAj6.es.js +162 -0
  169. package/components/inputphonenumber/helpers/getUserLocation.helper-B0lZav7S.es.js +15 -0
  170. package/components/inputphonenumber/helpers/getUserLocation.helper-CSC5I9tB.system.js +1 -0
  171. package/components/inputphonenumber/helpers/timeZoneCityToCountry.json-CUP9NUYE.es.js +423 -0
  172. package/components/inputphonenumber/helpers/timeZoneCityToCountry.json-DgzOgH_M.system.js +1 -0
  173. package/components/inputrangenumber/InputRangeNumber-Cfea6oM_.es.js +134 -0
  174. package/components/inputrangenumber/InputRangeNumber-iLScQOa6.system.js +1 -0
  175. package/components/inputsearch/InputSearch-CHJP-N57.es.js +53 -0
  176. package/components/inputsearch/InputSearch-DkB4O0Dc.system.js +1 -0
  177. package/components/inputtext/InputText-BEDxrRqK.es.js +242 -0
  178. package/components/inputtext/InputText-BOgH8xpA.system.js +1 -0
  179. package/components/inputurl/InputURL-CNrOkrAC.es.js +61 -0
  180. package/components/inputurl/InputURL-D4QWV9G7.system.js +1 -0
  181. package/components/invisiblefield/InvisibleField-4XbiOrqw.es.js +27 -0
  182. package/components/invisiblefield/InvisibleField-BHudtX2g.system.js +1 -0
  183. package/components/litedropdown/LiteDropdown-BbDUnfnd.es.js +102 -0
  184. package/components/litedropdown/LiteDropdown-DTXwb5JR.system.js +1 -0
  185. package/components/loading/Loading-DIfTUHr7.es.js +24 -0
  186. package/components/loading/Loading-Vb4HctBJ.system.js +1 -0
  187. package/components/menu/Menu-BtzGGhbp.es.js +73 -0
  188. package/components/menu/Menu-CPm5vua_.system.js +1 -0
  189. package/components/menuitem/MenuItem-8yxkFTug.system.js +1 -0
  190. package/components/menuitem/MenuItem-uLVAqgBS.es.js +65 -0
  191. package/components/multiselect/MultiSelect-BoPpQ31j.es.js +189 -0
  192. package/components/multiselect/MultiSelect-D5NEDtGe.system.js +1 -0
  193. package/components/overlaypanel/OverlayPanel-BKCivqTs.system.js +1 -0
  194. package/components/overlaypanel/OverlayPanel-bQbjuUgG.es.js +49 -0
  195. package/components/tabmenu/TabMenu-BBk8EW-C.system.js +1 -0
  196. package/components/tabmenu/TabMenu-ByKBaVsd.es.js +108 -0
  197. package/components/tagtype/TagType-CAXomDiD.es.js +49 -0
  198. package/components/tagtype/TagType-i4RK2JbL.system.js +1 -0
  199. package/components/textarea/Textarea-CnAlgPq5.es.js +108 -0
  200. package/components/textarea/Textarea-qirKOw5z.system.js +1 -0
  201. package/components/timeline/Timeline-CF2qJo4E.es.js +120 -0
  202. package/components/timeline/Timeline-DKfKWZFI.system.js +1 -0
  203. package/components/timeline/TimelineContentByType-_cKGDWAW.es.js +108 -0
  204. package/components/timeline/TimelineContentByType-uxM3NSqd.system.js +1 -0
  205. package/components/toast/Toast-C3D50rGo.system.js +1 -0
  206. package/components/toast/Toast-DRUJCz4I.es.js +74 -0
  207. package/components/toggleswitch/ToggleSwitch-De-_8nQl.es.js +90 -0
  208. package/components/toggleswitch/ToggleSwitch-DuyahX09.system.js +1 -0
  209. package/components/transactionroles/TransactionRoles-WrcXMwBu.es.js +223 -0
  210. package/components/transactionroles/TransactionRoles-iVQyWseb.system.js +1 -0
  211. package/components/tree/Tree-93NvdElH.es.js +267 -0
  212. package/components/tree/Tree-BTTVTAEH.system.js +1 -0
  213. package/components/tree/helpers/filterNodeKeys.helper-CmamKUTa.system.js +1 -0
  214. package/components/tree/helpers/filterNodeKeys.helper-z7SxLuvZ.es.js +10 -0
  215. package/components/treesearchinput/TreeSearchInput-BG2TfunA.system.js +1 -0
  216. package/components/treesearchinput/TreeSearchInput-CNfoc3f6.es.js +56 -0
  217. package/components/username/UserName-A1N6Q7bS.system.js +1 -0
  218. package/components/username/UserName-D5C0qdbu.es.js +132 -0
  219. package/components/userwithicon/UserWithIcon-CHHDfQG0.es.js +18 -0
  220. package/components/userwithicon/UserWithIcon-DnY6loZc.system.js +1 -0
  221. package/components/validatormessage/ValidatorMessage-BtKfBXzO.es.js +19 -0
  222. package/components/validatormessage/ValidatorMessage-VVfyqlRF.system.js +1 -0
  223. package/config/config.esm-BZepf1kR.system.js +1 -0
  224. package/config/config.esm-Drl0fECZ.es.js +212 -0
  225. package/config/defaultProps-B3syHUKt.system.js +1 -0
  226. package/config/defaultProps-BC_lvAG9.es.js +136 -0
  227. package/config/locale-DK6d2rJ3.system.js +1 -0
  228. package/config/locale-pQnRpNZ6.es.js +85 -0
  229. package/event-bus/index-CykcrsqY.system.js +1 -0
  230. package/event-bus/index-PQwO5T6B.es.js +6 -0
  231. package/event-bus/mitt-BjeF6e5j.es.js +53 -0
  232. package/event-bus/mitt-X_X8W9w9.system.js +1 -0
  233. package/package.json +1 -1
  234. package/plugins/WangsVue-Dl5OiLXF.es.js +332 -0
  235. package/plugins/WangsVue-Dugc3GRS.system.js +1 -0
  236. package/plugins/i18n-BVujDShu.system.js +1 -0
  237. package/plugins/i18n-CIoi8go0.es.js +89 -0
  238. package/stats.html +1 -1
  239. package/style.css +1 -1
  240. package/utils/addAttachment.util-CPzZEHNG.system.js +1 -0
  241. package/utils/addAttachment.util-D9sYCBjS.es.js +10 -0
  242. package/utils/computeAutoPlacement-Ac2MkS5B.es.js +33 -0
  243. package/utils/computeAutoPlacement-DCaci6j-.system.js +1 -0
  244. package/utils/computeOffsets-Cx9i84Mn.system.js +1 -0
  245. package/utils/computeOffsets-DXWJPq7f.es.js +56 -0
  246. package/utils/date.util-DbjB32co.es.js +198 -0
  247. package/utils/date.util-rX9kq_yC.system.js +1 -0
  248. package/utils/detectOverflow-BrAC_sJF.system.js +1 -0
  249. package/utils/detectOverflow-CETbaen7.es.js +88 -0
  250. package/utils/exportToExcel.util-Bf-PpzHW.system.js +1 -0
  251. package/utils/exportToExcel.util-jz7aU08m.es.js +32 -0
  252. package/utils/genPlaceholder.util-0UuDQpbx.es.js +37 -0
  253. package/utils/genPlaceholder.util-CxMG7LbT.system.js +1 -0
  254. package/utils/mergePropsWithDefaults.util-BKcJzgvs.es.js +9 -0
  255. package/utils/mergePropsWithDefaults.util-CXowvEKY.system.js +1 -0
  256. package/utils/object.util-6veM2gu5.es.js +51 -0
  257. package/utils/object.util-uApor4uP.system.js +1 -0
  258. package/utils/orderModifiers-qXBm1wkD.system.js +1 -0
  259. package/utils/orderModifiers-rOag5Cyh.es.js +31 -0
  260. package/utils/role.util-BdUNoOqf.es.js +67 -0
  261. package/utils/role.util-Co8OMWnc.system.js +1 -0
  262. package/utils/textFormatter.util-BjenkyWf.system.js +1 -0
  263. package/utils/textFormatter.util-CYul3RpH.es.js +21 -0
  264. package/utils/toast.util-C7p3h9XQ.es.js +52 -0
  265. package/utils/toast.util-DPtauJUV.system.js +1 -0
  266. package/utils/utils.esm-iwnsFuDg.system.js +23 -0
  267. package/utils/utils.esm-s_-kLKXf.es.js +1080 -0
  268. package/utils/xlsx.util-FKEpiU2t.system.js +1 -0
  269. package/utils/xlsx.util-LU1upHR3.es.js +8 -0
  270. package/vendor/@popperjs/core-DFLwc7xU.system.js +1 -0
  271. package/vendor/@popperjs/core-DJHUrK4e.es.js +748 -0
  272. package/vendor/@tiptap/core-D4rHEGhs.system.js +80 -0
  273. package/vendor/@tiptap/core-DSbPv8xh.es.js +2868 -0
  274. package/vendor/@tiptap/extension-bold-CvAjR8FR.es.js +71 -0
  275. package/vendor/@tiptap/extension-bold-DI_Zfdzb.system.js +1 -0
  276. package/vendor/@tiptap/extension-bubble-menu-0_0wc2P7.system.js +1 -0
  277. package/vendor/@tiptap/extension-bubble-menu-DY29ulfu.es.js +128 -0
  278. package/vendor/@tiptap/extension-bullet-list-BrkIcd-z.es.js +53 -0
  279. package/vendor/@tiptap/extension-bullet-list-CgIgW9RG.system.js +1 -0
  280. package/vendor/@tiptap/extension-code-BtAtPCQQ.es.js +51 -0
  281. package/vendor/@tiptap/extension-code-SOANT0O3.system.js +1 -0
  282. package/vendor/@tiptap/extension-floating-menu-BTwcx1u8.es.js +99 -0
  283. package/vendor/@tiptap/extension-floating-menu-Dtu9tcTW.system.js +1 -0
  284. package/vendor/@tiptap/extension-heading-B6PMnqvS.es.js +54 -0
  285. package/vendor/@tiptap/extension-heading-BpK6SnFO.system.js +1 -0
  286. package/vendor/@tiptap/extension-history-CTFK6g3n.system.js +1 -0
  287. package/vendor/@tiptap/extension-history-DdPDTH0G.es.js +35 -0
  288. package/vendor/@tiptap/extension-image-BNa6azmK.system.js +1 -0
  289. package/vendor/@tiptap/extension-image-DCo2JDZp.es.js +64 -0
  290. package/vendor/@tiptap/extension-italic-D09oL4ps.es.js +70 -0
  291. package/vendor/@tiptap/extension-italic-w93Lmtg_.system.js +1 -0
  292. package/vendor/@tiptap/extension-link-CV6Fodq9.es.js +262 -0
  293. package/vendor/@tiptap/extension-link-FrdAKaJ2.system.js +1 -0
  294. package/vendor/@tiptap/extension-list-item-BRio_hHs.system.js +1 -0
  295. package/vendor/@tiptap/extension-list-item-D8wSpPxS.es.js +33 -0
  296. package/vendor/@tiptap/extension-mention-cFXQdAs7.es.js +130 -0
  297. package/vendor/@tiptap/extension-mention-y62_tYRn.system.js +1 -0
  298. package/vendor/@tiptap/extension-ordered-list-BZU-Ty3o.es.js +71 -0
  299. package/vendor/@tiptap/extension-ordered-list-CH9LyYR1.system.js +1 -0
  300. package/vendor/@tiptap/extension-placeholder-CsBxoitZ.es.js +52 -0
  301. package/vendor/@tiptap/extension-placeholder-Dqw7HNAJ.system.js +1 -0
  302. package/vendor/@tiptap/extension-underline-DklFOEoR.es.js +40 -0
  303. package/vendor/@tiptap/extension-underline-SGsaBlAL.system.js +1 -0
  304. package/vendor/@tiptap/suggestion-B3Grok9m.system.js +1 -0
  305. package/vendor/@tiptap/suggestion-Dg-vhPtN.es.js +131 -0
  306. package/vendor/@tiptap/vue-3-BOfcUn5G.es.js +436 -0
  307. package/vendor/@tiptap/vue-3-ZMNXXvBd.system.js +1 -0
  308. package/vendor/highlight.js-ClnJXT0q.system.js +2 -0
  309. package/vendor/highlight.js-Czlvg6fB.es.js +2493 -0
  310. package/vendor/linkifyjs-BxsOjwQz.es.js +705 -0
  311. package/vendor/linkifyjs-CMLfIa6I.system.js +5 -0
  312. package/vendor/lodash-B6nNLFd3.es.js +127 -0
  313. package/vendor/lodash-BuO1dYnQ.system.js +1 -0
  314. package/vendor/lodash-es-C3G1Cc1m.system.js +1 -0
  315. package/vendor/lodash-es-CJerBxJQ.es.js +766 -0
  316. package/vendor/orderedmap-B3SOk52B.es.js +103 -0
  317. package/vendor/orderedmap-Dwr31MF0.system.js +1 -0
  318. package/vendor/primevue-C5Z_k4WB.system.js +171 -0
  319. package/vendor/primevue-DkBtKf1Y.es.js +12649 -0
  320. package/vendor/prosemirror-commands-CUjo-x4s.es.js +383 -0
  321. package/vendor/prosemirror-commands-Dn6KNBP0.system.js +2 -0
  322. package/vendor/prosemirror-history-BPOe4I2H.es.js +248 -0
  323. package/vendor/prosemirror-history-BTrzvpc-.system.js +1 -0
  324. package/vendor/prosemirror-keymap-BvIUhswp.es.js +60 -0
  325. package/vendor/prosemirror-keymap-WRY9zVpK.system.js +1 -0
  326. package/vendor/prosemirror-model-D2n-Dx_L.es.js +2736 -0
  327. package/vendor/prosemirror-model-DTWK5xnv.system.js +4 -0
  328. package/vendor/prosemirror-schema-list-BvrICwYb.es.js +87 -0
  329. package/vendor/prosemirror-schema-list-Dv9KV10j.system.js +1 -0
  330. package/vendor/prosemirror-state-BW6XGB3U.es.js +820 -0
  331. package/vendor/prosemirror-state-COJ-aZZ4.system.js +1 -0
  332. package/vendor/prosemirror-transform-BXNgAhmF.system.js +2 -0
  333. package/vendor/prosemirror-transform-DvAmofec.es.js +1507 -0
  334. package/vendor/prosemirror-view-C9ZQp8VZ.es.js +3742 -0
  335. package/vendor/prosemirror-view-DOxSTbB-.system.js +5 -0
  336. package/vendor/rope-sequence-4t46C6az.system.js +1 -0
  337. package/vendor/rope-sequence-sEGCUMi8.es.js +100 -0
  338. package/vendor/simplebar-core-CtWK1-xd.system.js +1 -0
  339. package/vendor/simplebar-core-ofTx4QqK.es.js +333 -0
  340. package/vendor/simplebar-vue-BHVrvuf1.system.js +1 -0
  341. package/vendor/simplebar-vue-dpCx-K7E.es.js +176 -0
  342. package/vendor/tippy.js-6wuFov1j.system.js +1 -0
  343. package/vendor/tippy.js-i1ic-msv.es.js +721 -0
  344. package/vendor/uuid-93tp0umt.es.js +9 -0
  345. package/vendor/uuid-Cymn6orr.system.js +1 -0
  346. package/vendor/vee-validate-Cc_B-qII.system.js +5 -0
  347. package/vendor/vee-validate-RE5RuswC.es.js +1309 -0
  348. package/vendor/vue-advanced-cropper-CshlvNaD.es.js +1380 -0
  349. package/vendor/vue-advanced-cropper-NG93jHnU.system.js +20 -0
  350. package/vendor/w3c-keyname-BSD-PgAi.system.js +1 -0
  351. package/vendor/w3c-keyname-CLxH8j-f.es.js +92 -0
  352. package/wangsvue-fats.js +156 -0
  353. package/wangsvue-fats.system.js +1 -313
  354. package/loading-page-BrQattYE.js +0 -1
  355. package/loading-page-CoC9UhfC.js +0 -4
  356. package/loading-page-DbLuqCHa.js +0 -1
  357. package/loading-page-f8D03l3G.js +0 -4
  358. package/loading-plane-CgfbWppy.js +0 -1
  359. package/loading-plane-CoXtqoc9.js +0 -4
  360. package/loading-table-Bdr9ZhtP.js +0 -1
  361. package/loading-table-ByUoWqUo.js +0 -4
  362. package/loading-table-BygEMzFM.js +0 -4
  363. package/loading-table-BzrSQlA0.js +0 -1
  364. package/loading-table-D9bw9OcI.js +0 -4
  365. package/loading-table-chOgXi94.js +0 -1
  366. package/no-data-CTKux8RI.js +0 -4
  367. package/no-data-Cgze_Rvp.js +0 -1
  368. package/no-data-Dep79CBh.js +0 -1
  369. package/no-data-g0dJCy2p.js +0 -4
  370. package/no-data-y1X5WtcQ.js +0 -1
  371. package/wangsvue-fats.es.js +0 -51894
  372. /package/{loading-page-CgfbWppy.js → assets/lottie/loading-plane-CgfbWppy.system.js} +0 -0
  373. /package/{loading-page-CoXtqoc9.js → assets/lottie/loading-plane-CoXtqoc9.es.js} +0 -0
@@ -0,0 +1,238 @@
1
+ import { defineComponent as G, onMounted as K, shallowRef as u, computed as d, ref as X, watch as ee, createBlock as g, openBlock as m, createSlots as ae, withCtx as E, createCommentVNode as b, createVNode as R, createElementVNode as V, normalizeClass as M, createElementBlock as ne, Fragment as te, toDisplayString as se } from "vue";
2
+ import { u as le } from "../../utils/toast.util-C7p3h9XQ.es.js";
3
+ import { u as oe } from "./store/device.store-DpVE6Nhl.es.js";
4
+ import { g as re } from "../buttonscan/ButtonScan-mVHAdACL.es.js";
5
+ import { W as ie } from "../buttonscan/workers/scanner.worker-D3a72Zyk.es.js";
6
+ import { _ as C } from "../button/Button-CgkhMnxo.es.js";
7
+ import ce from "../dialog/Dialog-BCcbXSya.es.js";
8
+ import { _ as $ } from "../dropdown/Dropdown-Dk4urj-W.es.js";
9
+ import ue from "../icon/Icon-C4kXVcEX.es.js";
10
+ import { _ as ve } from "../inlinemessage/InlineMessage-BPJD82sq.es.js";
11
+ const Ne = /* @__PURE__ */ G({
12
+ __name: "HardwareSync",
13
+ props: {
14
+ visible: { type: Boolean },
15
+ errorCode: {},
16
+ searchBy: {},
17
+ bulk: { type: Boolean },
18
+ withoutScanBtn: { type: Boolean }
19
+ },
20
+ emits: ["update:visible", "scan"],
21
+ setup(W, { emit: x }) {
22
+ const o = W, k = x, P = le();
23
+ K(() => {
24
+ O();
25
+ });
26
+ const {
27
+ device: _,
28
+ devices: I,
29
+ saveDevices: U,
30
+ setDevice: Q,
31
+ loadDevices: z
32
+ } = oe(), i = {
33
+ label: "None",
34
+ device: void 0
35
+ }, v = u(!1), l = u(i), r = u(i), T = (n) => {
36
+ var e, a;
37
+ if ((e = I.value) != null && e.length) {
38
+ const s = (a = I.value) == null ? void 0 : a.filter((t) => t[n]).map((t) => ({
39
+ label: `${t.name ?? t.jenisDevice + " - " + t.serialNumber}`,
40
+ device: t
41
+ }));
42
+ return s.length ? s : [];
43
+ }
44
+ return l.value = i, r.value = i, [];
45
+ }, p = d(() => T("rfidScan")), f = d(() => T("qrScan")), w = d(
46
+ () => o.errorCode === "NOT_SUPPORTED_SYSTEM"
47
+ ), H = d(() => o.searchBy === "RFID" && l.value.device), Y = d(() => o.searchBy === "QR" && r.value.device), D = d(() => !!o.searchBy && o.errorCode !== "HARDWARE_NOT_SYNCHRONIZED"), B = async (n) => {
48
+ try {
49
+ U(n);
50
+ const e = p.value.some(
51
+ (s) => {
52
+ var t, y, S;
53
+ return ((t = s == null ? void 0 : s.device) == null ? void 0 : t.serialNumber) === ((S = (y = l.value) == null ? void 0 : y.device) == null ? void 0 : S.serialNumber);
54
+ }
55
+ ), a = f.value.some(
56
+ (s) => {
57
+ var t, y, S;
58
+ return ((t = s == null ? void 0 : s.device) == null ? void 0 : t.serialNumber) === ((S = (y = r.value) == null ? void 0 : y.device) == null ? void 0 : S.serialNumber);
59
+ }
60
+ );
61
+ l.value = e ? l.value : p.value[0] ?? i, r.value = a ? r.value : f.value[0] ?? i, N();
62
+ } catch (e) {
63
+ c.value = h(re(e));
64
+ } finally {
65
+ v.value = !1;
66
+ }
67
+ }, c = X(), j = u({
68
+ title: "The detected OS is not compatible",
69
+ detail: "Please check the OS compatibility list on our product information page."
70
+ }), L = u({
71
+ title: "Scanner Disconnected",
72
+ detail: "Your scanner has been disconnected. Please reconnect it or select another device from the list."
73
+ }), A = u({
74
+ title: "Scanner driver not found",
75
+ detail: "The scanner driver may not be running or installed correctly on your device. Please contact your administrator."
76
+ }), J = u({
77
+ title: "Scanner not detected",
78
+ detail: "The scanner is either not detected or not identified by our system."
79
+ });
80
+ u({
81
+ title: "Scanner is not registered",
82
+ detail: "The scanner is not registered in your company."
83
+ });
84
+ const h = (n) => {
85
+ switch (n ?? o.errorCode) {
86
+ case "DEVICE_NOT_CONNECTED":
87
+ return J.value;
88
+ case "DRIVER_NOT_FOUND":
89
+ return A.value;
90
+ case "NOT_SUPPORTED_SYSTEM":
91
+ return j.value;
92
+ case "DEVICE_DISCONNECTED":
93
+ return L.value;
94
+ default:
95
+ return;
96
+ }
97
+ }, N = () => {
98
+ Q({
99
+ RFID: l.value.device,
100
+ QR: r.value.device
101
+ });
102
+ }, O = () => {
103
+ z(), _.value.RFID ? l.value = {
104
+ label: _.value.RFID.name,
105
+ device: _.value.RFID
106
+ } : p.value.length && (l.value = p.value[0] ?? i), f.value.length && (r.value = f.value[0] ?? i), N();
107
+ }, F = () => {
108
+ k("update:visible", !1), k("scan");
109
+ }, Z = () => {
110
+ var n;
111
+ v.value = !0, c.value = void 0, window.scannerWorker.onmessage = ({ data: e }) => {
112
+ var a;
113
+ if (e.status === "synced") {
114
+ const s = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.deviceList) ?? [];
115
+ B(s);
116
+ const { error: t } = (e == null ? void 0 : e.data) ?? {};
117
+ t === "Driver not connected to server" ? (v.value = !1, c.value = h("DRIVER_NOT_FOUND")) : s.length || (v.value = !1, c.value = h("DEVICE_NOT_CONNECTED"));
118
+ } else e.status === "error_sync" && (v.value = !1, B([]), P.add({ message: "Failed to connecting scanner", severity: "error" }));
119
+ }, window.scannerWorker.postMessage({
120
+ command: "sync",
121
+ userId: (n = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : n._id
122
+ });
123
+ }, q = () => {
124
+ window.scannerWorker ?? (window.scannerWorker = new ie());
125
+ };
126
+ return ee(
127
+ () => o.visible,
128
+ (n) => {
129
+ n && (q(), c.value = h(), O(), v.value = !1);
130
+ }
131
+ ), (n, e) => (m(), g(ce, {
132
+ closable: !D.value,
133
+ "header-class": [
134
+ {
135
+ "flex !gap-1 !items-center !justify-center !text-sm !font-bold !leading-[18px] tracking-[0.02em] [&>div]:hidden": D.value
136
+ }
137
+ ],
138
+ visible: n.visible,
139
+ "onUpdate:visible": e[3] || (e[3] = (a) => n.$emit("update:visible", a)),
140
+ class: "w-[400px]",
141
+ "content-class": "!overflow-y-visible",
142
+ "footer-class": "!gap-1",
143
+ header: "Hardware Synchronize",
144
+ modal: ""
145
+ }, ae({
146
+ footer: E(() => [
147
+ D.value ? (m(), g(C, {
148
+ key: 0,
149
+ onClick: e[2] || (e[2] = (a) => n.$emit("update:visible", !1)),
150
+ label: "Close",
151
+ severity: "secondary",
152
+ text: ""
153
+ })) : b("", !0),
154
+ w.value ? b("", !0) : (m(), ne(te, { key: 1 }, [
155
+ H.value && !o.withoutScanBtn ? (m(), g(C, {
156
+ key: 0,
157
+ onClick: F,
158
+ icon: "rfid",
159
+ label: "Scan RFID"
160
+ })) : b("", !0),
161
+ Y.value && !o.withoutScanBtn ? (m(), g(C, {
162
+ key: 1,
163
+ onClick: F,
164
+ icon: "qr",
165
+ label: "Scan QR"
166
+ })) : b("", !0)
167
+ ], 64))
168
+ ]),
169
+ default: E(() => [
170
+ c.value ? (m(), g(ve, {
171
+ key: 0,
172
+ class: M(["p-[9.52px] transition"]),
173
+ message: c.value.detail,
174
+ removable: !1,
175
+ "show-icon": !1,
176
+ title: c.value.title,
177
+ "message-wrapper-class": "text-[11px] leading-[14px] tracking-[0.02em]",
178
+ severity: "danger"
179
+ }, null, 8, ["message", "title"])) : b("", !0),
180
+ R(C, {
181
+ disabled: w.value,
182
+ loading: v.value,
183
+ onClick: Z,
184
+ icon: "refresh",
185
+ label: "Sync",
186
+ "loading-icon": "refresh",
187
+ outlined: ""
188
+ }, null, 8, ["disabled", "loading"]),
189
+ V("section", {
190
+ class: M([
191
+ "grid grid-cols-2 gap-3 justify-start w-full",
192
+ { "opacity-60 pointer-events-none": w.value }
193
+ ]),
194
+ "data-ts-section": "scanner-list"
195
+ }, [
196
+ R($, {
197
+ modelValue: l.value,
198
+ "onUpdate:modelValue": [
199
+ e[0] || (e[0] = (a) => l.value = a),
200
+ N
201
+ ],
202
+ options: p.value,
203
+ label: "RFID Scanner",
204
+ "option-label": "label"
205
+ }, null, 8, ["modelValue", "options"]),
206
+ R($, {
207
+ modelValue: r.value,
208
+ "onUpdate:modelValue": [
209
+ e[1] || (e[1] = (a) => r.value = a),
210
+ N
211
+ ],
212
+ options: f.value,
213
+ label: "QR Scanner",
214
+ "option-label": "label"
215
+ }, null, 8, ["modelValue", "options"])
216
+ ], 2)
217
+ ]),
218
+ _: 2
219
+ }, [
220
+ D.value ? {
221
+ name: "header",
222
+ fn: E(() => {
223
+ var a;
224
+ return [
225
+ R(ue, {
226
+ icon: (a = n.searchBy) == null ? void 0 : a.toLowerCase()
227
+ }, null, 8, ["icon"]),
228
+ V("h3", null, "Scan " + se(n.searchBy), 1)
229
+ ];
230
+ }),
231
+ key: "0"
232
+ } : void 0
233
+ ]), 1032, ["closable", "header-class", "visible"]));
234
+ }
235
+ });
236
+ export {
237
+ Ne as _
238
+ };
@@ -0,0 +1 @@
1
+ System.register(["vue","../../utils/toast.util-DPtauJUV.system.js","./store/device.store-DEKXH36R.system.js","../buttonscan/ButtonScan-BZzpqBe8.system.js","../buttonscan/workers/scanner.worker-8_0GG6W3.system.js","../button/Button-D892iaxz.system.js","../dialog/Dialog-Dv7Jzg4E.system.js","../dropdown/Dropdown-BNzT2uLU.system.js","../icon/Icon-D1a666FC.system.js","../inlinemessage/InlineMessage-DTyTe5_W.system.js"],function(X,pe){"use strict";var V,O,r,d,F,j,y,m,M,w,f,g,E,_,x,$,W,P,U,Q,z,S,H,B,Y,L;return{setters:[e=>{V=e.defineComponent,O=e.onMounted,r=e.shallowRef,d=e.computed,F=e.ref,j=e.watch,y=e.createBlock,m=e.openBlock,M=e.createSlots,w=e.withCtx,f=e.createCommentVNode,g=e.createVNode,E=e.createElementVNode,_=e.normalizeClass,x=e.createElementBlock,$=e.Fragment,W=e.toDisplayString},e=>{P=e.u},e=>{U=e.u},e=>{Q=e.g},e=>{z=e.W},e=>{S=e._},e=>{H=e.default},e=>{B=e._},e=>{Y=e.default},e=>{L=e._}],execute:function(){const e=X("_",V({__name:"HardwareSync",props:{visible:{type:Boolean},errorCode:{},searchBy:{},bulk:{type:Boolean},withoutScanBtn:{type:Boolean}},emits:["update:visible","scan"],setup(ee,{emit:te}){const i=ee,A=te,ne=P();O(()=>{G()});const{device:I,devices:q,saveDevices:se,setDevice:ae,loadDevices:le}=U(),u={label:"None",device:void 0},p=r(!1),o=r(u),c=r(u),J=s=>{var t,n;if((t=q.value)!=null&&t.length){const l=(n=q.value)==null?void 0:n.filter(a=>a[s]).map(a=>({label:`${a.name??a.jenisDevice+" - "+a.serialNumber}`,device:a}));return l.length?l:[]}return o.value=u,c.value=u,[]},b=d(()=>J("rfidScan")),h=d(()=>J("qrScan")),T=d(()=>i.errorCode==="NOT_SUPPORTED_SYSTEM"),oe=d(()=>i.searchBy==="RFID"&&o.value.device),re=d(()=>i.searchBy==="QR"&&c.value.device),C=d(()=>!!i.searchBy&&i.errorCode!=="HARDWARE_NOT_SYNCHRONIZED"),Z=async s=>{try{se(s);const t=b.value.some(l=>{var a,D,N;return((a=l==null?void 0:l.device)==null?void 0:a.serialNumber)===((N=(D=o.value)==null?void 0:D.device)==null?void 0:N.serialNumber)}),n=h.value.some(l=>{var a,D,N;return((a=l==null?void 0:l.device)==null?void 0:a.serialNumber)===((N=(D=c.value)==null?void 0:D.device)==null?void 0:N.serialNumber)});o.value=t?o.value:b.value[0]??u,c.value=n?c.value:h.value[0]??u,k()}catch(t){v.value=R(Q(t))}finally{p.value=!1}},v=F(),ie=r({title:"The detected OS is not compatible",detail:"Please check the OS compatibility list on our product information page."}),ce=r({title:"Scanner Disconnected",detail:"Your scanner has been disconnected. Please reconnect it or select another device from the list."}),ue=r({title:"Scanner driver not found",detail:"The scanner driver may not be running or installed correctly on your device. Please contact your administrator."}),ve=r({title:"Scanner not detected",detail:"The scanner is either not detected or not identified by our system."});r({title:"Scanner is not registered",detail:"The scanner is not registered in your company."});const R=s=>{switch(s??i.errorCode){case"DEVICE_NOT_CONNECTED":return ve.value;case"DRIVER_NOT_FOUND":return ue.value;case"NOT_SUPPORTED_SYSTEM":return ie.value;case"DEVICE_DISCONNECTED":return ce.value;default:return}},k=()=>{ae({RFID:o.value.device,QR:c.value.device})},G=()=>{le(),I.value.RFID?o.value={label:I.value.RFID.name,device:I.value.RFID}:b.value.length&&(o.value=b.value[0]??u),h.value.length&&(c.value=h.value[0]??u),k()},K=()=>{A("update:visible",!1),A("scan")},de=()=>{var s;p.value=!0,v.value=void 0,window.scannerWorker.onmessage=({data:t})=>{var n;if(t.status==="synced"){const l=((n=t==null?void 0:t.data)==null?void 0:n.deviceList)??[];Z(l);const{error:a}=(t==null?void 0:t.data)??{};a==="Driver not connected to server"?(p.value=!1,v.value=R("DRIVER_NOT_FOUND")):l.length||(p.value=!1,v.value=R("DEVICE_NOT_CONNECTED"))}else t.status==="error_sync"&&(p.value=!1,Z([]),ne.add({message:"Failed to connecting scanner",severity:"error"}))},window.scannerWorker.postMessage({command:"sync",userId:(s=JSON.parse(localStorage.getItem("user")??"{}"))==null?void 0:s._id})},me=()=>{window.scannerWorker??(window.scannerWorker=new z)};return j(()=>i.visible,s=>{s&&(me(),v.value=R(),G(),p.value=!1)}),(s,t)=>(m(),y(H,{closable:!C.value,"header-class":[{"flex !gap-1 !items-center !justify-center !text-sm !font-bold !leading-[18px] tracking-[0.02em] [&>div]:hidden":C.value}],visible:s.visible,"onUpdate:visible":t[3]||(t[3]=n=>s.$emit("update:visible",n)),class:"w-[400px]","content-class":"!overflow-y-visible","footer-class":"!gap-1",header:"Hardware Synchronize",modal:""},M({footer:w(()=>[C.value?(m(),y(S,{key:0,onClick:t[2]||(t[2]=n=>s.$emit("update:visible",!1)),label:"Close",severity:"secondary",text:""})):f("",!0),T.value?f("",!0):(m(),x($,{key:1},[oe.value&&!i.withoutScanBtn?(m(),y(S,{key:0,onClick:K,icon:"rfid",label:"Scan RFID"})):f("",!0),re.value&&!i.withoutScanBtn?(m(),y(S,{key:1,onClick:K,icon:"qr",label:"Scan QR"})):f("",!0)],64))]),default:w(()=>[v.value?(m(),y(L,{key:0,class:_(["p-[9.52px] transition"]),message:v.value.detail,removable:!1,"show-icon":!1,title:v.value.title,"message-wrapper-class":"text-[11px] leading-[14px] tracking-[0.02em]",severity:"danger"},null,8,["message","title"])):f("",!0),g(S,{disabled:T.value,loading:p.value,onClick:de,icon:"refresh",label:"Sync","loading-icon":"refresh",outlined:""},null,8,["disabled","loading"]),E("section",{class:_(["grid grid-cols-2 gap-3 justify-start w-full",{"opacity-60 pointer-events-none":T.value}]),"data-ts-section":"scanner-list"},[g(B,{modelValue:o.value,"onUpdate:modelValue":[t[0]||(t[0]=n=>o.value=n),k],options:b.value,label:"RFID Scanner","option-label":"label"},null,8,["modelValue","options"]),g(B,{modelValue:c.value,"onUpdate:modelValue":[t[1]||(t[1]=n=>c.value=n),k],options:h.value,label:"QR Scanner","option-label":"label"},null,8,["modelValue","options"])],2)]),_:2},[C.value?{name:"header",fn:w(()=>{var n;return[g(Y,{icon:(n=s.searchBy)==null?void 0:n.toLowerCase()},null,8,["icon"]),E("h3",null,"Scan "+W(s.searchBy),1)]}),key:"0"}:void 0]),1032,["closable","header-class","visible"]))}}))}}});
@@ -0,0 +1 @@
1
+ System.register(["vue"],function(o,d){"use strict";var c;return{setters:[e=>{c=e.ref}],execute:function(){const e=()=>window.devices??[],r=()=>window.device??{RFID:null,QR:null},s=c(e()),n=c(r()),l=o("u",()=>{const u=t=>{window.devices=t,i()},v=t=>{window.device=t,n.value=t},i=()=>{s.value=e()};return{devices:s,device:n,saveDevices:u,setDevice:v,loadDevices:i}})}}});
@@ -0,0 +1,20 @@
1
+ import { ref as o } from "vue";
2
+ const i = () => window.devices ?? [], d = () => window.device ?? { RFID: null, QR: null }, s = o(i()), t = o(d()), u = () => {
3
+ const n = (e) => {
4
+ window.devices = e, c();
5
+ }, v = (e) => {
6
+ window.device = e, t.value = e;
7
+ }, c = () => {
8
+ s.value = i();
9
+ };
10
+ return {
11
+ devices: s,
12
+ device: t,
13
+ saveDevices: n,
14
+ setDevice: v,
15
+ loadDevices: c
16
+ };
17
+ };
18
+ export {
19
+ u
20
+ };
@@ -0,0 +1,82 @@
1
+ import { defineComponent as c, computed as d, resolveDirective as f, createElementBlock as t, openBlock as o, Fragment as v, withDirectives as i, createCommentVNode as n, mergeProps as l } from "vue";
2
+ const $ = /* @__PURE__ */ c({
3
+ __name: "Icon",
4
+ props: {
5
+ icon: {},
6
+ severity: { default: void 0 },
7
+ info: { default: void 0 },
8
+ tooltipPos: { default: "bottom" },
9
+ class: { default: void 0 }
10
+ },
11
+ setup(u) {
12
+ const a = u, p = (() => {
13
+ switch (a.severity) {
14
+ case "primary":
15
+ return "text-primary-500";
16
+ case "success":
17
+ return "text-success-500";
18
+ case "warning":
19
+ return "text-warning-500";
20
+ case "danger":
21
+ return "text-danger-500";
22
+ case "info":
23
+ return "text-info-500";
24
+ default:
25
+ return "inherit";
26
+ }
27
+ })(), s = d(() => [
28
+ "icon",
29
+ `ic-${a.icon}`,
30
+ p,
31
+ "cursor-pointer shink-0"
32
+ ]);
33
+ return (e, m) => {
34
+ const r = f("tooltip");
35
+ return o(), t(v, null, [
36
+ e.tooltipPos === "top" ? i((o(), t("i", l({ key: 0 }, e.$attrs, {
37
+ class: [...s.value, e.$props.class]
38
+ }), null, 16)), [
39
+ [
40
+ r,
41
+ e.info,
42
+ void 0,
43
+ { top: !0 }
44
+ ]
45
+ ]) : n("", !0),
46
+ e.tooltipPos === "bottom" ? i((o(), t("i", l({ key: 1 }, e.$attrs, {
47
+ class: [...s.value, e.$props.class]
48
+ }), null, 16)), [
49
+ [
50
+ r,
51
+ e.info,
52
+ void 0,
53
+ { bottom: !0 }
54
+ ]
55
+ ]) : n("", !0),
56
+ e.tooltipPos === "right" ? i((o(), t("i", l({ key: 2 }, e.$attrs, {
57
+ class: [...s.value, e.$props.class]
58
+ }), null, 16)), [
59
+ [
60
+ r,
61
+ e.info,
62
+ void 0,
63
+ { right: !0 }
64
+ ]
65
+ ]) : n("", !0),
66
+ e.tooltipPos === "left" ? i((o(), t("i", l({ key: 3 }, e.$attrs, {
67
+ class: [...s.value, e.$props.class]
68
+ }), null, 16)), [
69
+ [
70
+ r,
71
+ e.info,
72
+ void 0,
73
+ { left: !0 }
74
+ ]
75
+ ]) : n("", !0)
76
+ ], 64);
77
+ };
78
+ }
79
+ });
80
+ export {
81
+ $ as default
82
+ };
@@ -0,0 +1 @@
1
+ System.register(["vue"],function(d,y){"use strict";var c,u,p,r,s,v,o,i,n;return{setters:[t=>{c=t.defineComponent,u=t.computed,p=t.resolveDirective,r=t.createElementBlock,s=t.openBlock,v=t.Fragment,o=t.withDirectives,i=t.createCommentVNode,n=t.mergeProps}],execute:function(){const t=d("default",c({__name:"Icon",props:{icon:{},severity:{default:void 0},info:{default:void 0},tooltipPos:{default:"bottom"},class:{default:void 0}},setup(m){const f=m,g=(()=>{switch(f.severity){case"primary":return"text-primary-500";case"success":return"text-success-500";case"warning":return"text-warning-500";case"danger":return"text-danger-500";case"info":return"text-info-500";default:return"inherit"}})(),a=u(()=>["icon",`ic-${f.icon}`,g,"cursor-pointer shink-0"]);return(e,k)=>{const l=p("tooltip");return s(),r(v,null,[e.tooltipPos==="top"?o((s(),r("i",n({key:0},e.$attrs,{class:[...a.value,e.$props.class]}),null,16)),[[l,e.info,void 0,{top:!0}]]):i("",!0),e.tooltipPos==="bottom"?o((s(),r("i",n({key:1},e.$attrs,{class:[...a.value,e.$props.class]}),null,16)),[[l,e.info,void 0,{bottom:!0}]]):i("",!0),e.tooltipPos==="right"?o((s(),r("i",n({key:2},e.$attrs,{class:[...a.value,e.$props.class]}),null,16)),[[l,e.info,void 0,{right:!0}]]):i("",!0),e.tooltipPos==="left"?o((s(),r("i",n({key:3},e.$attrs,{class:[...a.value,e.$props.class]}),null,16)),[[l,e.info,void 0,{left:!0}]]):i("",!0)],64)}}}))}}});
@@ -0,0 +1,170 @@
1
+ import { defineComponent as j, computed as p, onMounted as G, onUnmounted as M, shallowRef as f, createBlock as W, openBlock as s, unref as q, mergeProps as I, withCtx as b, createElementBlock as m, normalizeStyle as k, Fragment as _, createElementVNode as U, renderList as T, withDirectives as A, vShow as H, withModifiers as D, createVNode as C, normalizeClass as z } from "vue";
2
+ import { l as J } from "../../vendor/primevue-DkBtKf1Y.es.js";
3
+ import { u as K } from "../../plugins/WangsVue-Dl5OiLXF.es.js";
4
+ import { m as Q } from "../../utils/mergePropsWithDefaults.util-BKcJzgvs.es.js";
5
+ import { _ as F } from "../button/Button-CgkhMnxo.es.js";
6
+ import X from "../icon/Icon-C4kXVcEX.es.js";
7
+ const Y = ["src"], Z = ["src"], ee = ["src"], te = ["src", "onClick"], se = /* @__PURE__ */ j({
8
+ __name: "Image",
9
+ props: {
10
+ src: {},
11
+ size: {},
12
+ width: {},
13
+ rounded: { type: Boolean },
14
+ imageStyle: {},
15
+ imageClass: {},
16
+ galleries: {},
17
+ indicatorIcon: {},
18
+ zoomInDisabled: { type: Boolean },
19
+ zoomOutDisabled: { type: Boolean },
20
+ pt: {},
21
+ ptOptions: {},
22
+ unstyled: { type: Boolean },
23
+ getImageURL: { type: Function },
24
+ placeholder: {}
25
+ },
26
+ setup(O) {
27
+ const r = O, { defaultProps: x } = K("Image"), c = p(() => Q(r, x));
28
+ G(() => {
29
+ setTimeout(() => {
30
+ $();
31
+ }, 3e3);
32
+ }), M(() => {
33
+ w();
34
+ });
35
+ const o = f(0), v = f(), L = f(), h = f(!1), E = p(() => {
36
+ var e;
37
+ return !h.value && !((e = u.value) != null && e.toString().includes("data:image/png;base64")) && u.value !== c.value.placeholder;
38
+ }), N = () => {
39
+ const e = r.galleries ?? [];
40
+ o.value = (o.value + 1) % e.length, y();
41
+ }, P = () => {
42
+ const e = r.galleries ?? [];
43
+ o.value = (o.value - 1 + e.length) % e.length, y();
44
+ }, $ = () => {
45
+ var e;
46
+ w(), (e = r.galleries) != null && e.length && (v.value = window.setInterval(() => {
47
+ const t = r.galleries ?? [];
48
+ o.value = (o.value + 1) % t.length;
49
+ }, 3e3));
50
+ }, w = () => {
51
+ v.value && (window.clearInterval(v.value), v.value = void 0);
52
+ }, S = p(() => r.width != null ? r.width : r.size === "small" ? 30 : r.size === "medium" ? 80 : 125), u = p(() => {
53
+ var e, t;
54
+ return !r.src || h.value ? c.value.placeholder : typeof r.src == "string" ? r.src.includes("http") || // From public image
55
+ r.src.includes("data:image/png;base64") ? r.src : (t = (e = c.value).getImageURL) == null ? void 0 : t.call(e, r.src, S.value) : r.src;
56
+ }), V = p(() => {
57
+ var t, l, a, g;
58
+ const e = u.value;
59
+ if (typeof e == "string") {
60
+ const i = (l = (t = c.value).getImageURL) == null ? void 0 : l.call(t, "preview"), n = i && !(i != null && i.includes("undefined")) ? new URL(i).origin : "", R = n && e.includes(n);
61
+ return e.includes("http") && !R || // From public resource
62
+ e.includes("data:image/svg+xml") ? e : (g = (a = c.value).getImageURL) == null ? void 0 : g.call(a, r.src);
63
+ }
64
+ return e;
65
+ }), y = (e) => {
66
+ w(), typeof e == "number" && (o.value = e), L.value ? window.clearTimeout(L.value) : window.setTimeout($, 3e3);
67
+ }, d = (e) => {
68
+ var l;
69
+ const t = (l = e.target) == null ? void 0 : l.src;
70
+ (t === u.value || t.includes(u.value.toString())) && (h.value = !0);
71
+ }, B = (e) => {
72
+ var l, a;
73
+ const t = e;
74
+ return typeof t == "string" ? t.includes("http") ? t : (a = (l = c.value).getImageURL) == null ? void 0 : a.call(l, t) : t;
75
+ };
76
+ return (e, t) => {
77
+ var l;
78
+ return s(), W(q(J), I(e.$props, {
79
+ preview: E.value,
80
+ pt: { root: (l = e.$preset.image) == null ? void 0 : l.root({ props: e.$props }) }
81
+ }), {
82
+ image: b(() => {
83
+ var a;
84
+ return [
85
+ U("img", I((a = e.$preset.image) == null ? void 0 : a.image({ props: e.$props, context: { imageSize: S.value } }), {
86
+ onerror: d,
87
+ src: u.value,
88
+ alt: ""
89
+ }), null, 16, Y)
90
+ ];
91
+ }),
92
+ indicatoricon: b(() => [
93
+ C(X, I(e.$preset.image.icon, { icon: "eye" }), null, 16)
94
+ ]),
95
+ preview: b((a) => {
96
+ var g;
97
+ return [
98
+ (g = e.galleries) != null && g.length ? (s(), m(_, { key: 1 }, [
99
+ (s(!0), m(_, null, T(e.galleries, ({ src: i }, n) => A((s(), m("img", {
100
+ key: n,
101
+ onerror: d,
102
+ src: B(i),
103
+ style: k(a.style),
104
+ alt: "",
105
+ "data-wv-section": "image-gallery"
106
+ }, null, 12, ee)), [
107
+ [H, n === o.value]
108
+ ])), 128)),
109
+ U("div", {
110
+ onClick: t[0] || (t[0] = D(() => {
111
+ }, ["stop"])),
112
+ class: "fixed bottom-0 left-0 flex justify-center items-center w-full p-4 mx-auto flex-row bg-black/80",
113
+ "data-wv-section": "gallery-thumbnail"
114
+ }, [
115
+ C(F, {
116
+ class: z([
117
+ "text-surface-0 rotate-180 sticky left-0 !w-8 !h-8 [&_i]:w-5 [&_i]:h-5",
118
+ "rounded-full mr-3"
119
+ ]),
120
+ onClick: P,
121
+ "aria-label": "Previous Image",
122
+ "data-wv-section": "prev-button",
123
+ icon: "arrow-right",
124
+ "icon-class": "w-5 h-5",
125
+ severity: "secondary",
126
+ text: ""
127
+ }),
128
+ (s(!0), m(_, null, T(e.galleries, ({ src: i }, n) => (s(), m("img", {
129
+ key: n,
130
+ class: z([
131
+ "h-10 w-10 object-cover cursor-pointer opacity-50 hover:opacity-100 transition-opacity",
132
+ { "!opacity-100": o.value == n }
133
+ ]),
134
+ onerror: d,
135
+ src: B(i),
136
+ style: k(a.style),
137
+ onClick: D((R) => y(n), ["stop"]),
138
+ alt: "",
139
+ "data-wv-section": "thumbnail-image"
140
+ }, null, 14, te))), 128)),
141
+ C(F, {
142
+ class: z([
143
+ "text-surface-0 sticky !w-8 !h-8 [&_i]:w-5 [&_i]:h-5",
144
+ "rounded-full ml-3"
145
+ ]),
146
+ onClick: N,
147
+ "aria-label": "Next Image",
148
+ "data-wv-section": "next-button",
149
+ icon: "arrow-right",
150
+ severity: "secondary",
151
+ text: ""
152
+ })
153
+ ])
154
+ ], 64)) : (s(), m("img", {
155
+ key: 0,
156
+ onerror: d,
157
+ src: V.value,
158
+ style: k(a.style),
159
+ alt: ""
160
+ }, null, 12, Z))
161
+ ];
162
+ }),
163
+ _: 1
164
+ }, 16, ["preview", "pt"]);
165
+ };
166
+ }
167
+ });
168
+ export {
169
+ se as default
170
+ };
@@ -0,0 +1 @@
1
+ System.register(["vue","../../vendor/primevue-C5Z_k4WB.system.js","../../plugins/WangsVue-Dugc3GRS.system.js","../../utils/mergePropsWithDefaults.util-CXowvEKY.system.js","../button/Button-D892iaxz.system.js","../icon/Icon-D1a666FC.system.js"],function(A,ne){"use strict";var j,g,U,D,p,V,c,x,f,h,u,y,w,_,z,E,F,B,I,b,N,P,T,S,M;return{setters:[t=>{j=t.defineComponent,g=t.computed,U=t.onMounted,D=t.onUnmounted,p=t.shallowRef,V=t.createBlock,c=t.openBlock,x=t.unref,f=t.mergeProps,h=t.withCtx,u=t.createElementBlock,y=t.normalizeStyle,w=t.Fragment,_=t.createElementVNode,z=t.renderList,E=t.withDirectives,F=t.vShow,B=t.withModifiers,I=t.createVNode,b=t.normalizeClass},t=>{N=t.l},t=>{P=t.u},t=>{T=t.m},t=>{S=t._},t=>{M=t.default}],execute:function(){const t=["src"],H=["src"],J=["src"],K=["src","onClick"],se=A("default",j({__name:"Image",props:{src:{},size:{},width:{},rounded:{type:Boolean},imageStyle:{},imageClass:{},galleries:{},indicatorIcon:{},zoomInDisabled:{type:Boolean},zoomOutDisabled:{type:Boolean},pt:{},ptOptions:{},unstyled:{type:Boolean},getImageURL:{type:Function},placeholder:{}},setup(Q){const n=Q,{defaultProps:X}=P("Image"),m=g(()=>T(n,X));U(()=>{setTimeout(()=>{W()},3e3)}),D(()=>{$()});const i=p(0),k=p(),O=p(),L=p(!1),Y=g(()=>{var e;return!L.value&&!((e=v.value)!=null&&e.toString().includes("data:image/png;base64"))&&v.value!==m.value.placeholder}),ee=()=>{const e=n.galleries??[];i.value=(i.value+1)%e.length,R()},te=()=>{const e=n.galleries??[];i.value=(i.value-1+e.length)%e.length,R()},W=()=>{var e;$(),(e=n.galleries)!=null&&e.length&&(k.value=window.setInterval(()=>{const r=n.galleries??[];i.value=(i.value+1)%r.length},3e3))},$=()=>{k.value&&(window.clearInterval(k.value),k.value=void 0)},G=g(()=>n.width!=null?n.width:n.size==="small"?30:n.size==="medium"?80:125),v=g(()=>{var e,r;return!n.src||L.value?m.value.placeholder:typeof n.src=="string"?n.src.includes("http")||n.src.includes("data:image/png;base64")?n.src:(r=(e=m.value).getImageURL)==null?void 0:r.call(e,n.src,G.value):n.src}),re=g(()=>{var r,a,s,d;const e=v.value;if(typeof e=="string"){const l=(a=(r=m.value).getImageURL)==null?void 0:a.call(r,"preview"),o=l&&!(l!=null&&l.includes("undefined"))?new URL(l).origin:"",q=o&&e.includes(o);return e.includes("http")&&!q||e.includes("data:image/svg+xml")?e:(d=(s=m.value).getImageURL)==null?void 0:d.call(s,n.src)}return e}),R=e=>{$(),typeof e=="number"&&(i.value=e),O.value?window.clearTimeout(O.value):window.setTimeout(W,3e3)},C=e=>{var a;const r=(a=e.target)==null?void 0:a.src;(r===v.value||r.includes(v.value.toString()))&&(L.value=!0)},Z=e=>{var a,s;const r=e;return typeof r=="string"?r.includes("http")?r:(s=(a=m.value).getImageURL)==null?void 0:s.call(a,r):r};return(e,r)=>{var a;return c(),V(x(N),f(e.$props,{preview:Y.value,pt:{root:(a=e.$preset.image)==null?void 0:a.root({props:e.$props})}}),{image:h(()=>{var s;return[_("img",f((s=e.$preset.image)==null?void 0:s.image({props:e.$props,context:{imageSize:G.value}}),{onerror:C,src:v.value,alt:""}),null,16,t)]}),indicatoricon:h(()=>[I(M,f(e.$preset.image.icon,{icon:"eye"}),null,16)]),preview:h(s=>{var d;return[(d=e.galleries)!=null&&d.length?(c(),u(w,{key:1},[(c(!0),u(w,null,z(e.galleries,({src:l},o)=>E((c(),u("img",{key:o,onerror:C,src:Z(l),style:y(s.style),alt:"","data-wv-section":"image-gallery"},null,12,J)),[[F,o===i.value]])),128)),_("div",{onClick:r[0]||(r[0]=B(()=>{},["stop"])),class:"fixed bottom-0 left-0 flex justify-center items-center w-full p-4 mx-auto flex-row bg-black/80","data-wv-section":"gallery-thumbnail"},[I(S,{class:b(["text-surface-0 rotate-180 sticky left-0 !w-8 !h-8 [&_i]:w-5 [&_i]:h-5","rounded-full mr-3"]),onClick:te,"aria-label":"Previous Image","data-wv-section":"prev-button",icon:"arrow-right","icon-class":"w-5 h-5",severity:"secondary",text:""}),(c(!0),u(w,null,z(e.galleries,({src:l},o)=>(c(),u("img",{key:o,class:b(["h-10 w-10 object-cover cursor-pointer opacity-50 hover:opacity-100 transition-opacity",{"!opacity-100":i.value==o}]),onerror:C,src:Z(l),style:y(s.style),onClick:B(q=>R(o),["stop"]),alt:"","data-wv-section":"thumbnail-image"},null,14,K))),128)),I(S,{class:b(["text-surface-0 sticky !w-8 !h-8 [&_i]:w-5 [&_i]:h-5","rounded-full ml-3"]),onClick:ee,"aria-label":"Next Image","data-wv-section":"next-button",icon:"arrow-right",severity:"secondary",text:""})])],64)):(c(),u("img",{key:0,onerror:C,src:re.value,style:y(s.style),alt:""},null,12,H))]}),_:1},16,["preview","pt"])}}}))}}});
@@ -0,0 +1 @@
1
+ System.register(["vue","../../vendor/vue-advanced-cropper-NG93jHnU.system.js","../../plugins/WangsVue-Dugc3GRS.system.js","../datatable/DataTable-Cko2S6sM.system.js"],function(_,I){"use strict";var l,c,u,p,f,r,v,h,m,g,z,d,w,y;return{setters:[e=>{l=e.defineComponent,c=e.shallowRef,u=e.ref,p=e.createBlock,f=e.openBlock,r=e.unref,v=e.withCtx,h=e.renderSlot,m=e.createElementVNode,g=e.normalizeClass,z=e.toDisplayString},e=>{d=e.o},e=>{w=e.u},e=>{y=e._}],execute:function(){const S=_("default",y(l({__name:"BackgroundImageCropper",props:{touchMove:{},mouseMove:{},touchResize:{},wheelResize:{}},emits:["move","resize"],setup(k){const i=k,{locale:C}=w("ImageCompressor"),s=c(!1),n=u(),B=(o,t)=>{if(o.type==="touchstart"||o.type==="touchmove"){if(o.touches.length===1&&!t)return s.value=!0,n.value="touch",R(),!1;s.value=!1}else if(o.type==="wheel"){if(!t&&!o.ctrlKey)return s.value=!0,n.value="wheel",R(),!1;s.value=!1}o.preventDefault(),o.stopPropagation()},R=()=>{setTimeout(()=>{s.value=!1},1e3)};return(o,t)=>(f(),p(r(d),{"events-filter":B,"mouse-move":i.mouseMove,"touch-move":i.touchMove,"touch-resize":i.touchResize,"wheel-resize":i.wheelResize,onMove:t[0]||(t[0]=a=>o.$emit("move",a)),onResize:t[1]||(t[1]=a=>o.$emit("resize",a))},{default:v(()=>[h(o.$slots,"default",{},void 0,!0),m("div",{class:g([{"cropper-event-notification--visible":s.value},"cropper-event-notification"])},z(n.value==="wheel"?r(C).cropperCtrlScrollInfo:r(C).cropperTwoFingerInfo),3)]),_:3},8,["mouse-move","touch-move","touch-resize","wheel-resize"]))}}),[["__scopeId","data-v-9031c32d"]]))}}});
@@ -0,0 +1,52 @@
1
+ import { defineComponent as n, shallowRef as f, ref as m, createBlock as h, openBlock as v, unref as l, withCtx as d, renderSlot as z, createElementVNode as g, normalizeClass as w, toDisplayString as C } from "vue";
2
+ import { o as y } from "../../vendor/vue-advanced-cropper-CshlvNaD.es.js";
3
+ import { u as I } from "../../plugins/WangsVue-Dl5OiLXF.es.js";
4
+ import { _ as R } from "../datatable/DataTable-BH7Fk88O.es.js";
5
+ const M = /* @__PURE__ */ n({
6
+ __name: "BackgroundImageCropper",
7
+ props: {
8
+ touchMove: {},
9
+ mouseMove: {},
10
+ touchResize: {},
11
+ wheelResize: {}
12
+ },
13
+ emits: ["move", "resize"],
14
+ setup(c) {
15
+ const s = c, { locale: u } = I("ImageCompressor"), t = f(!1), r = m(), p = (e, o) => {
16
+ if (e.type === "touchstart" || e.type === "touchmove") {
17
+ if (e.touches.length === 1 && !o)
18
+ return t.value = !0, r.value = "touch", a(), !1;
19
+ t.value = !1;
20
+ } else if (e.type === "wheel") {
21
+ if (!o && !e.ctrlKey)
22
+ return t.value = !0, r.value = "wheel", a(), !1;
23
+ t.value = !1;
24
+ }
25
+ e.preventDefault(), e.stopPropagation();
26
+ }, a = () => {
27
+ setTimeout(() => {
28
+ t.value = !1;
29
+ }, 1e3);
30
+ };
31
+ return (e, o) => (v(), h(l(y), {
32
+ "events-filter": p,
33
+ "mouse-move": s.mouseMove,
34
+ "touch-move": s.touchMove,
35
+ "touch-resize": s.touchResize,
36
+ "wheel-resize": s.wheelResize,
37
+ onMove: o[0] || (o[0] = (i) => e.$emit("move", i)),
38
+ onResize: o[1] || (o[1] = (i) => e.$emit("resize", i))
39
+ }, {
40
+ default: d(() => [
41
+ z(e.$slots, "default", {}, void 0, !0),
42
+ g("div", {
43
+ class: w([{ "cropper-event-notification--visible": t.value }, "cropper-event-notification"])
44
+ }, C(r.value === "wheel" ? l(u).cropperCtrlScrollInfo : l(u).cropperTwoFingerInfo), 3)
45
+ ]),
46
+ _: 3
47
+ }, 8, ["mouse-move", "touch-move", "touch-resize", "wheel-resize"]));
48
+ }
49
+ }), T = /* @__PURE__ */ R(M, [["__scopeId", "data-v-9031c32d"]]);
50
+ export {
51
+ T as default
52
+ };
@@ -0,0 +1 @@
1
+ System.register(["../invisiblefield/InvisibleField-BHudtX2g.system.js","vue","../../vendor/vee-validate-Cc_B-qII.system.js","../../vendor/vue-advanced-cropper-NG93jHnU.system.js","../../async-components/index-DvjqHrYE.system.js","../../plugins/WangsVue-Dugc3GRS.system.js","../../utils/genPlaceholder.util-CxMG7LbT.system.js","../image/Image-Cxi0E9gK.system.js","../button/Button-D892iaxz.system.js","../dialog/Dialog-Dv7Jzg4E.system.js","../dialogconfirm/DialogConfirm-BU-LRZCo.system.js","../fieldwrapper/FieldWrapper-Dc-stQRH.system.js","../icon/Icon-D1a666FC.system.js","../validatormessage/ValidatorMessage-VVfyqlRF.system.js","./ImageInputInfo-U3hLlbwo.system.js"],function(q,De){"use strict";var J,ie,Q,ue,ce,de,me,g,P,ve,pe,X,V,h,d,x,m,I,$,U,F,C,fe,y,ge,ye,be,we,he,Ie,Ce,A,Be,ke,Pe,Y,Me,ee;return{setters:[t=>{J=t._},t=>{ie=t.defineComponent,Q=t.mergeModels,ue=t.defineAsyncComponent,ce=t.inject,de=t.onMounted,me=t.onUnmounted,g=t.ref,P=t.shallowRef,ve=t.useModel,pe=t.reactive,X=t.computed,V=t.watch,h=t.createElementBlock,d=t.openBlock,x=t.Fragment,m=t.createVNode,I=t.normalizeClass,$=t.withCtx,U=t.createElementVNode,F=t.createBlock,C=t.createCommentVNode,fe=t.renderList,y=t.unref},t=>{ge=t.u},t=>{ye=t.f},t=>{be=t.i},t=>{we=t.u},t=>{he=t.g,Ie=t.a},t=>{Ce=t.default},t=>{A=t._},t=>{Be=t.default},t=>{ke=t.default},t=>{Pe=t.default},t=>{Y=t.default},t=>{Me=t._},t=>{ee=t._}],execute:function(){q("g",je);var t=q("c",typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{});function je(v){return v&&v.__esModule&&Object.prototype.hasOwnProperty.call(v,"default")?v.default:v}var ae={exports:{}};(function(v,K){(function(){function W(te,T){T=T||"";for(var a=1024,B=window.atob(te),M=[],u=0,le=B.length;u<le;u+=a){for(var j=B.slice(u,u+a),b=new Array(j.length),r=0;r<j.length;r++)b[r]=j.charCodeAt(r);var G=new Uint8Array(b);M.push(G)}return new Blob(M,{type:T})}v.exports&&(K=v.exports=W),K.base64ToBlob=W}).call(t)})(ae,ae.exports);var Le=ae.exports;const Ve=je(Le);q("I",Object.freeze(Object.defineProperty({__proto__:null,default:J},Symbol.toStringTag,{value:"Module"})));const $e={key:1,class:"flex gap-1 items-start"},Te=["id","multiple"];q("a",Object.freeze(Object.defineProperty({__proto__:null,default:ie({__name:"ImageCompressor",props:Q({initialName:{},multiple:{type:Boolean},defaultImage:{},disabled:{type:Boolean,default:!1},compressedBlob:{default:void 0},imagePreviewUrl:{default:void 0},imagePreviewSize:{default:"big"},rounded:{type:Boolean,default:!1},useDeleteButton:{type:Boolean,default:!0},useValidator:{type:Boolean,default:!1},mandatory:{type:Boolean,default:!1},invalid:{type:Boolean},validatorMessage:{default:"Photo must be uploaded"},label:{default:void 0},fieldName:{default:"imageInput"},fieldInfo:{default:void 0},showInfo:{type:Boolean,default:!0},customRequirements:{default:void 0},confirmOnDelete:{type:Boolean},emitDeleteFn:{type:Boolean},showValidatorMessage:{type:Boolean,default:!0},fileType:{default:"webp"}},{defaultImage:{default:0},defaultImageModifiers:{}}),emits:Q(["apply","applyProp","update:defaultImage","delete"],["update:defaultImage"]),setup(v,{expose:K,emit:W}){const te=ue(()=>De.import("./BackgroundImageCropper-DhrTpgNX.system.js")),T=ce("preset",{}).image,a=v,B=W,{locale:M}=we("ImageCompressor");de(async()=>{qe(),R()}),me(()=>{D(0),D(1)});const u=g([{src:null,type:null},{src:null,type:null}]),le=Ie(),j=g(),b=g(),r=g([]),G=g(),Ue=P(0),se=g(),_=g(),p=P(),H=ve(v,"defaultImage"),n=pe({value:a.multiple?[]:void 0}),S=P(!1),k=P(),_e=P(0),w=P(!1),oe=g([!1,!1]),z=X(()=>`image/${a.fileType}`),re=e=>typeof r.value[e]=="string"&&r.value[e].includes("data:image/png;base64"),R=async()=>{var e,l;(e=a.imagePreviewUrl)!=null&&e.length?r.value=Array.isArray(a.imagePreviewUrl)?a.imagePreviewUrl:[a.imagePreviewUrl]:Array.isArray(a.compressedBlob)?r.value=a.compressedBlob:a.compressedBlob?r.value=[a.compressedBlob]:a.initialName?(j.value=he(a.initialName,125,le),r.value=[(l=j.value)==null?void 0:l.toDataURL()]):r.value=[],a.imagePreviewUrl?n.value=a.imagePreviewUrl:a.initialName&&(n.value=await Oe()),B("applyProp")},Oe=async()=>new Promise(e=>{var l;(l=j.value)==null||l.toBlob(o=>{e(new File([o??new Blob],Date.now()+".png",{type:"image/png"}))})}),O=(e=!1)=>{var l;a.disabled||(e&&(p.value=1),(l=G.value)==null||l.click())},Ne=async e=>{const{files:l}=e.target,o=Array.from(l??[]).slice(0,r.value.length?1:2);for(const[s,c]of o.entries())try{const i=p.value??s;await Ee(c,i)}catch(i){console.error("Error loading image:",i)}finally{p.value=void 0}},Ee=async(e,l)=>{const o=c=>c.includes("image"),s=c=>c>1e6;return new Promise((c,i)=>{var N,L;if(e)if(Fe(l),!o(e.type))S.value=!0,k.value=typeof a.validatorMessage!="string"&&((N=a.validatorMessage)!=null&&N.invalidFormat)?a.validatorMessage.invalidFormat:"Tipe file harus berupa gambar!",R(),w.value=!1,D(l),i("Tipe file harus berupa gambar!");else if(s(e.size))S.value=!0,k.value=typeof a.validatorMessage!="string"&&((L=a.validatorMessage)!=null&&L.exceed)?a.validatorMessage.exceed:"Ukuran gambar terlalu besar! Maks. 1 MB",R(),w.value=!1,D(l),i("Ukuran gambar terlalu besar! Maks. 1 MB");else{D(l);const Z=URL.createObjectURL(e),f=new FileReader;f.onload=E=>{var Re;u.value[l].src=Z,u.value[l].type=xe((Re=E==null?void 0:E.target)==null?void 0:Re.result,e.type)},f.onerror=E=>{console.error("🚀 ~ returnnewPromise ~ e:",E)},f.readAsArrayBuffer(e),p.value==null&&(p.value=l),w.value||(w.value=!0),S.value=!1,k.value=void 0}_e.value+=1,_.value=c})},qe=()=>{a.useValidator&&Object.assign(n,ge(a.fieldName,e=>{var l;return!e&&a.mandatory?typeof a.validatorMessage!="string"&&((l=a.validatorMessage)!=null&&l.empty)?a.validatorMessage.empty:(a.label??"Photo")+" must be uploaded":a.invalid&&a.validatorMessage?a.validatorMessage:k.value?k.value:!0}))},Fe=e=>{u.value[e]={src:null,type:null}},xe=(e,l=null)=>{if(e){const o=new Uint8Array(e).subarray(0,4);let s="";for(const c of o)s+=c.toString(16);switch(s){case"89504e47":return"image/png";case"47494638":return"image/gif";case"ffd8ffe0":case"ffd8ffe1":case"ffd8ffe2":case"ffd8ffe3":case"ffd8ffe8":return z.value;default:return l}}return null},Ae=e=>{const l=Ve(e.split(",")[1],z.value);return window.URL.createObjectURL(l)},Ke=async(e,l)=>{const o=await fetch(e).then(s=>s.blob());return new File([o],l,{type:z.value})},We=async()=>{const e=p.value??0;try{await Ge(e)}catch(l){console.error(l)}Se()},Se=()=>{var e;w.value=!1,(e=_.value)==null||e.call(_),_.value=void 0},Ge=async e=>{if(se.value){const l=se.value.getResult();if(l.canvas){const o=l.canvas.toDataURL(z.value);await He(o,e)}}},He=async(e,l)=>{try{b.value=document.createElement("canvas");const o=b.value.getContext("2d"),s=new Image;s.src=e,await s.decode();const c=80/100,i=s.width*c,N=s.height*c;b.value.setAttribute("width",i.toString()),b.value.setAttribute("height",N.toString()),o&&o.drawImage(s,0,0,i,N);const L=b.value.toDataURL(z.value,.95),Z=Date.now()+`.${a.fileType}`,f={canvas:b.value,compressed:{blob:Ae(L),base64:L,fileName:Z,file:await Ke(Ae(L),Z),size:"",type:z.value},message:"File has been compressed."};f.compressed.size=Math.round(f.compressed.file.size/1e3)+"KB",r.value[l]=f.compressed.blob,a.multiple?n.value&&Array.isArray(n.value)?n.value[l]=f.compressed.file:n.value=[f.compressed.file]:n.value=f.compressed.file,B("apply",f)}catch(o){console.error(o)}},D=e=>{u.value[e].src&&URL.revokeObjectURL(u.value[e].src)},Ze=e=>{a.confirmOnDelete?oe.value[e]=!0:a.emitDeleteFn?B("delete",ne,e):ne(e)},ne=(e=0)=>{S.value=!1,k.value=void 0,r.value=r.value.toSpliced(e,1),D(e),u.value[e]={src:null,type:null},u.value=[u.value[+!e],u.value[e]],p.value=0,H.value=0,a.confirmOnDelete||B("delete"),a.multiple&&Array.isArray(n.value)?n.value=n.value.toSpliced(e,1):n.handleReset&&n.handleReset()},Je=e=>{var o;const l=(o=r.value[e])==null?void 0:o.toString();p.value=e,l!=null&&l.includes("blob")?(p.value=e,w.value=!0):(Fe(e),O())},Qe=()=>{O()},ze=X(()=>navigator.userAgent.includes("Firefox"));return V(k,e=>{e&&n.setErrors&&n.setErrors(e)}),V(w,e=>{e||Ue.value++}),V(()=>a.initialName,()=>{R()}),V(()=>a.imagePreviewUrl,()=>{R()},{once:!0}),K({assignPreviewImagesFromProp:R}),(e,l)=>(d(),h(x,null,[m(Pe,{class:I([{"!w-max":!a.multiple,"!w-full":a.multiple}]),info:a.fieldInfo,label:a.label,mandatory:a.mandatory,"data-wv-name":"image-compressor","data-wv-section":"root"},{default:$(()=>[U("div",{class:I(["w-full",{"grid gap-6 items-start grid-cols-2":e.multiple}]),"data-wv-section":"wrapper"},[r.value.length?(d(!0),h(x,{key:0},fe(r.value,(o,s)=>{var c;return d(),h("div",{key:s,class:"flex gap-1 items-start","data-wv-section":"preview"},[U("div",{class:I(["flex flex-col gap-1 items-center",{"max-w-[80px]":e.imagePreviewSize==="medium"},{"max-w-[125px]":e.imagePreviewSize==="big"}]),"data-wv-section":"preview-image-wrapper"},[U("div",{class:I([{"[&>span]:hover:opacity-30 [&>[data-wv-section=input-image-trigger]]:hover:opacity-100":re(s)},"relative",{"w-[125px] h-[125px]":e.imagePreviewSize==="big","w-[30px] h-[30px]":e.imagePreviewSize==="small","w-[80px] h-[80px]":e.imagePreviewSize==="medium"}]),"data-wv-section":"image-wrapper"},[m(Ce,{rounded:e.rounded,size:e.imagePreviewSize,src:o,class:"transition-opacity duration-300","data-wv-section":"preview-image"},null,8,["rounded","size","src"]),re(s)?(d(),h("button",{key:0,class:I([(c=y(T))==null?void 0:c.button.class,"hover:bg-opacity-0 rounded-lg opacity-0"]),onClick:l[0]||(l[0]=i=>O(!1)),"data-wv-section":"input-image-trigger",type:"button"},[m(Y,{class:"w-6 h-6","data-wv-section":"trigger-icon",icon:"image-add",severity:"primary"})],2)):C("",!0)],2),!a.disabled&&!re(s)?(d(),h(x,{key:0},[U("div",{class:I(["flex gap-0.5 justify-center",{"scale-75":e.imagePreviewSize==="medium"}]),"data-wv-section":"preview-buttons"},[m(A,{onClick:i=>Je(s),class:"!py-0 !px-1 !h-max",icon:"pencil",label:"Edit",text:""},null,8,["onClick"]),e.useDeleteButton?(d(),F(A,{key:0,onClick:i=>Ze(s),class:"!py-0 !px-1 !h-max",icon:"delete-bin",label:"Delete",severity:"danger",text:""},null,8,["onClick"])):C("",!0)],2),m(ke,{visible:oe.value[s],"onUpdate:visible":i=>oe.value[s]=i,closable:!1,onConfirm:i=>B("delete",ne,s),body:"Are you sure you want to delete it?","confirm-label":"Delete",header:"Delete Photo",severity:"danger"},null,8,["visible","onUpdate:visible","onConfirm"])],64)):C("",!0)],2),m(ee,{"custom-requirements":e.customRequirements,"show-add-button":r.value.length===1&&a.multiple,"show-info":e.showInfo,onAddPhoto:l[2]||(l[2]=i=>O(!0))},{default:$(()=>[r.value.length===2&&a.multiple?(d(),F(y(be),{key:0,modelValue:H.value,"onUpdate:modelValue":l[1]||(l[1]=i=>H.value=i),"label-id":"default-"+s,value:s,label:"Set as default"},null,8,["modelValue","label-id","value"])):C("",!0)]),_:2},1032,["custom-requirements","show-add-button","show-info"])])}),128)):(d(),h("div",$e,[U("button",{class:I([{"w-[125px] h-[125px]":e.imagePreviewSize==="big","w-[30px] h-[30px]":e.imagePreviewSize==="small","w-[80px] h-[80px]":e.imagePreviewSize==="medium"},"flex items-center justify-center","ring-inset","cursor-pointer",{"ring-1":ze.value,"ring-[0.5px]":!ze.value},{"rounded-full":e.rounded,"rounded-lg":!e.rounded},{"ring-general-400 focus-visible:ring-primary-500":!S.value&&!n.errorMessage,"ring-danger-500":S.value||n.errorMessage},{"bg-white":!a.disabled,"bg-general-50":a.disabled}]),onClick:l[3]||(l[3]=o=>O(!1)),"data-wv-section":"input-image-trigger",type:"button"},[m(Y,{class:"w-6 h-6","data-wv-section":"trigger-icon",icon:"image-add",severity:"primary"})],2),m(ee,{"custom-requirements":e.customRequirements,"show-info":e.showInfo},null,8,["custom-requirements","show-info"])]))],2),(d(),h("input",{id:e.fieldName,key:Ue.value,ref_key:"inputImageFile",ref:G,multiple:a.multiple&&!r.value.length,onChange:Ne,accept:"image/*",class:"hidden","data-wv-section":"hidden-image-input",type:"file"},null,40,Te)),e.showValidatorMessage?(d(),F(Me,{key:0,format:!1,message:n.errorMessage??k.value},null,8,["message"])):C("",!0),a.multiple?(d(),F(J,{key:1,value:H.value?"secondImage":"firstImage","field-name":"defaultImage"},null,8,["value"])):C("",!0)]),_:1},8,["class","info","label","mandatory"]),m(Be,{visible:w.value,"onUpdate:visible":l[4]||(l[4]=o=>w.value=o),draggable:!1,header:y(M).cropDialogHeader,class:"w-max max-w-[98vw] min-w-[min(500px,98vw)] !max-h-[94vh]","content-class":"overflow-hidden overflow-y-auto min-h-[100px]","data-wv-section":"dialog-cropper","footer-class":"!gap-1",modal:""},{footer:$(()=>[m(A,{label:y(M).cancelCropLabel,onClick:Se,"data-wv-section":"cancel-crop",severity:"secondary",text:"",type:"button"},null,8,["label"]),m(A,{label:y(M).changeImageLabel,onClick:Qe,"data-wv-section":"change-image-button",text:"",type:"button"},null,8,["label"]),m(A,{label:y(M).applyCropLabel,onClick:We,"data-wv-section":"apply-image-button",severity:"success",type:"button"},null,8,["label"])]),default:$(()=>[p.value!=null?(d(),F(y(ye),{key:0,ref_key:"vueAdvanceCropper",ref:se,"auto-zoom":!1,"background-wrapper-component":y(te),src:u.value[p.value].src,class:"upload-example-cropper h-400","foreground-class":"h-400","image-class":"h-400"},null,8,["background-wrapper-component","src"])):C("",!0)]),_:1},8,["visible","header"])],64))}})},Symbol.toStringTag,{value:"Module"})))}}});