@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 @@
1
+ System.register(["./core-D4rHEGhs.system.js"],function(i,l){"use strict";var n,s,r,a;return{setters:[e=>{n=e.M,s=e.a,r=e.b,a=e.m}],execute:function(){const e=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,u=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,o=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,c=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,d=i("I",n.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",a(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[r({find:e,type:this.type}),r({find:o,type:this.type})]},addPasteRules(){return[s({find:u,type:this.type}),s({find:c,type:this.type})]}}))}}});
@@ -0,0 +1,262 @@
1
+ import { M as b, a as C, m as v, e as T, f as w, h as E, j as H, k as B } from "./core-DSbPv8xh.es.js";
2
+ import { r as y, t as O, f as M, a as U } from "../linkifyjs-BxsOjwQz.es.js";
3
+ import { P as m, a as A } from "../prosemirror-state-BW6XGB3U.es.js";
4
+ function V(t) {
5
+ return t.length === 1 ? t[0].isLink : t.length === 3 && t[1].isLink ? ["()", "[]"].includes(t[0].value + t[2].value) : !1;
6
+ }
7
+ function R(t) {
8
+ return new m({
9
+ key: new A("autolink"),
10
+ appendTransaction: (e, n, o) => {
11
+ const i = e.some((s) => s.docChanged) && !n.doc.eq(o.doc), l = e.some((s) => s.getMeta("preventAutolink"));
12
+ if (!i || l)
13
+ return;
14
+ const { tr: a } = o, f = T(n.doc, [...e]);
15
+ if (w(f).forEach(({ newRange: s }) => {
16
+ const d = E(o.doc, s, (k) => k.isTextblock);
17
+ let u, c;
18
+ if (d.length > 1 ? (u = d[0], c = o.doc.textBetween(u.pos, u.pos + u.node.nodeSize, void 0, " ")) : d.length && o.doc.textBetween(s.from, s.to, " ", " ").endsWith(" ") && (u = d[0], c = o.doc.textBetween(u.pos, s.to, void 0, " ")), u && c) {
19
+ const k = c.split(" ").filter((r) => r !== "");
20
+ if (k.length <= 0)
21
+ return !1;
22
+ const g = k[k.length - 1], P = u.pos + c.lastIndexOf(g);
23
+ if (!g)
24
+ return !1;
25
+ const L = O(g).map((r) => r.toObject(t.defaultProtocol));
26
+ if (!V(L))
27
+ return !1;
28
+ L.filter((r) => r.isLink).map((r) => ({
29
+ ...r,
30
+ from: P + r.start + 1,
31
+ to: P + r.end + 1
32
+ })).filter((r) => o.schema.marks.code ? !o.doc.rangeHasMark(r.from, r.to, o.schema.marks.code) : !0).filter((r) => t.validate(r.value)).filter((r) => t.shouldAutoLink(r.value)).forEach((r) => {
33
+ H(r.from, r.to, o.doc).some((x) => x.mark.type === t.type) || a.addMark(r.from, r.to, t.type.create({
34
+ href: r.href
35
+ }));
36
+ });
37
+ }
38
+ }), !!a.steps.length)
39
+ return a;
40
+ }
41
+ });
42
+ }
43
+ function W(t) {
44
+ return new m({
45
+ key: new A("handleClickLink"),
46
+ props: {
47
+ handleClick: (e, n, o) => {
48
+ var i, l;
49
+ if (o.button !== 0 || !e.editable)
50
+ return !1;
51
+ let a = o.target;
52
+ const f = [];
53
+ for (; a.nodeName !== "DIV"; )
54
+ f.push(a), a = a.parentNode;
55
+ if (!f.find((c) => c.nodeName === "A"))
56
+ return !1;
57
+ const h = B(e.state, t.type.name), s = o.target, d = (i = s == null ? void 0 : s.href) !== null && i !== void 0 ? i : h.href, u = (l = s == null ? void 0 : s.target) !== null && l !== void 0 ? l : h.target;
58
+ return s && d ? (window.open(d, u), !0) : !1;
59
+ }
60
+ }
61
+ });
62
+ }
63
+ function z(t) {
64
+ return new m({
65
+ key: new A("handlePasteLink"),
66
+ props: {
67
+ handlePaste: (e, n, o) => {
68
+ const { state: i } = e, { selection: l } = i, { empty: a } = l;
69
+ if (a)
70
+ return !1;
71
+ let f = "";
72
+ o.content.forEach((s) => {
73
+ f += s.textContent;
74
+ });
75
+ const h = M(f, { defaultProtocol: t.defaultProtocol }).find((s) => s.isLink && s.value === f);
76
+ return !f || !h ? !1 : t.editor.commands.setMark(t.type, {
77
+ href: h.href
78
+ });
79
+ }
80
+ }
81
+ });
82
+ }
83
+ const I = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;
84
+ function p(t, e) {
85
+ const n = [
86
+ "http",
87
+ "https",
88
+ "ftp",
89
+ "ftps",
90
+ "mailto",
91
+ "tel",
92
+ "callto",
93
+ "sms",
94
+ "cid",
95
+ "xmpp"
96
+ ];
97
+ return e && e.forEach((o) => {
98
+ const i = typeof o == "string" ? o : o.scheme;
99
+ i && n.push(i);
100
+ }), !t || t.replace(I, "").match(new RegExp(
101
+ // eslint-disable-next-line no-useless-escape
102
+ `^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,
103
+ "i"
104
+ ));
105
+ }
106
+ const D = b.create({
107
+ name: "link",
108
+ priority: 1e3,
109
+ keepOnSplit: !1,
110
+ exitable: !0,
111
+ onCreate() {
112
+ this.options.validate && !this.options.shouldAutoLink && (this.options.shouldAutoLink = this.options.validate, console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")), this.options.protocols.forEach((t) => {
113
+ if (typeof t == "string") {
114
+ y(t);
115
+ return;
116
+ }
117
+ y(t.scheme, t.optionalSlashes);
118
+ });
119
+ },
120
+ onDestroy() {
121
+ U();
122
+ },
123
+ inclusive() {
124
+ return this.options.autolink;
125
+ },
126
+ addOptions() {
127
+ return {
128
+ openOnClick: !0,
129
+ linkOnPaste: !0,
130
+ autolink: !0,
131
+ protocols: [],
132
+ defaultProtocol: "http",
133
+ HTMLAttributes: {
134
+ target: "_blank",
135
+ rel: "noopener noreferrer nofollow",
136
+ class: null
137
+ },
138
+ isAllowedUri: (t, e) => !!p(t, e.protocols),
139
+ validate: (t) => !!t,
140
+ shouldAutoLink: (t) => !!t
141
+ };
142
+ },
143
+ addAttributes() {
144
+ return {
145
+ href: {
146
+ default: null,
147
+ parseHTML(t) {
148
+ return t.getAttribute("href");
149
+ }
150
+ },
151
+ target: {
152
+ default: this.options.HTMLAttributes.target
153
+ },
154
+ rel: {
155
+ default: this.options.HTMLAttributes.rel
156
+ },
157
+ class: {
158
+ default: this.options.HTMLAttributes.class
159
+ }
160
+ };
161
+ },
162
+ parseHTML() {
163
+ return [
164
+ {
165
+ tag: "a[href]",
166
+ getAttrs: (t) => {
167
+ const e = t.getAttribute("href");
168
+ return !e || !this.options.isAllowedUri(e, {
169
+ defaultValidate: (n) => !!p(n, this.options.protocols),
170
+ protocols: this.options.protocols,
171
+ defaultProtocol: this.options.defaultProtocol
172
+ }) ? !1 : null;
173
+ }
174
+ }
175
+ ];
176
+ },
177
+ renderHTML({ HTMLAttributes: t }) {
178
+ return this.options.isAllowedUri(t.href, {
179
+ defaultValidate: (e) => !!p(e, this.options.protocols),
180
+ protocols: this.options.protocols,
181
+ defaultProtocol: this.options.defaultProtocol
182
+ }) ? ["a", v(this.options.HTMLAttributes, t), 0] : [
183
+ "a",
184
+ v(this.options.HTMLAttributes, { ...t, href: "" }),
185
+ 0
186
+ ];
187
+ },
188
+ addCommands() {
189
+ return {
190
+ setLink: (t) => ({ chain: e }) => {
191
+ const { href: n } = t;
192
+ return this.options.isAllowedUri(n, {
193
+ defaultValidate: (o) => !!p(o, this.options.protocols),
194
+ protocols: this.options.protocols,
195
+ defaultProtocol: this.options.defaultProtocol
196
+ }) ? e().setMark(this.name, t).setMeta("preventAutolink", !0).run() : !1;
197
+ },
198
+ toggleLink: (t) => ({ chain: e }) => {
199
+ const { href: n } = t;
200
+ return this.options.isAllowedUri(n, {
201
+ defaultValidate: (o) => !!p(o, this.options.protocols),
202
+ protocols: this.options.protocols,
203
+ defaultProtocol: this.options.defaultProtocol
204
+ }) ? e().toggleMark(this.name, t, { extendEmptyMarkRange: !0 }).setMeta("preventAutolink", !0).run() : !1;
205
+ },
206
+ unsetLink: () => ({ chain: t }) => t().unsetMark(this.name, { extendEmptyMarkRange: !0 }).setMeta("preventAutolink", !0).run()
207
+ };
208
+ },
209
+ addPasteRules() {
210
+ return [
211
+ C({
212
+ find: (t) => {
213
+ const e = [];
214
+ if (t) {
215
+ const { protocols: n, defaultProtocol: o } = this.options, i = M(t).filter((l) => l.isLink && this.options.isAllowedUri(l.value, {
216
+ defaultValidate: (a) => !!p(a, n),
217
+ protocols: n,
218
+ defaultProtocol: o
219
+ }));
220
+ i.length && i.forEach((l) => e.push({
221
+ text: l.value,
222
+ data: {
223
+ href: l.href
224
+ },
225
+ index: l.start
226
+ }));
227
+ }
228
+ return e;
229
+ },
230
+ type: this.type,
231
+ getAttributes: (t) => {
232
+ var e;
233
+ return {
234
+ href: (e = t.data) === null || e === void 0 ? void 0 : e.href
235
+ };
236
+ }
237
+ })
238
+ ];
239
+ },
240
+ addProseMirrorPlugins() {
241
+ const t = [], { protocols: e, defaultProtocol: n } = this.options;
242
+ return this.options.autolink && t.push(R({
243
+ type: this.type,
244
+ defaultProtocol: this.options.defaultProtocol,
245
+ validate: (o) => this.options.isAllowedUri(o, {
246
+ defaultValidate: (i) => !!p(i, e),
247
+ protocols: e,
248
+ defaultProtocol: n
249
+ }),
250
+ shouldAutoLink: this.options.shouldAutoLink
251
+ })), this.options.openOnClick === !0 && t.push(W({
252
+ type: this.type
253
+ })), this.options.linkOnPaste && t.push(z({
254
+ editor: this.editor,
255
+ defaultProtocol: this.options.defaultProtocol,
256
+ type: this.type
257
+ })), t;
258
+ }
259
+ });
260
+ export {
261
+ D as L
262
+ };
@@ -0,0 +1 @@
1
+ System.register(["./core-D4rHEGhs.system.js","../linkifyjs-CMLfIa6I.system.js","../prosemirror-state-COJ-aZZ4.system.js"],function(V,_){"use strict";var M,x,P,b,C,T,w,E,v,H,y,B,A,m;return{setters:[n=>{M=n.M,x=n.a,P=n.m,b=n.e,C=n.f,T=n.h,w=n.j,E=n.k},n=>{v=n.r,H=n.t,y=n.f,B=n.a},n=>{A=n.P,m=n.a}],execute:function(){function n(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function j(t){return new A({key:new m("autolink"),appendTransaction:(e,i,o)=>{const l=e.some(s=>s.docChanged)&&!i.doc.eq(o.doc),a=e.some(s=>s.getMeta("preventAutolink"));if(!l||a)return;const{tr:u}=o,d=b(i.doc,[...e]);if(C(d).forEach(({newRange:s})=>{const h=T(o.doc,s,g=>g.isTextblock);let f,p;if(h.length>1?(f=h[0],p=o.doc.textBetween(f.pos,f.pos+f.node.nodeSize,void 0," ")):h.length&&o.doc.textBetween(s.from,s.to," "," ").endsWith(" ")&&(f=h[0],p=o.doc.textBetween(f.pos,s.to,void 0," ")),f&&p){const g=p.split(" ").filter(r=>r!=="");if(g.length<=0)return!1;const L=g[g.length-1],O=f.pos+p.lastIndexOf(L);if(!L)return!1;const U=H(L).map(r=>r.toObject(t.defaultProtocol));if(!n(U))return!1;U.filter(r=>r.isLink).map(r=>({...r,from:O+r.start+1,to:O+r.end+1})).filter(r=>o.schema.marks.code?!o.doc.rangeHasMark(r.from,r.to,o.schema.marks.code):!0).filter(r=>t.validate(r.value)).filter(r=>t.shouldAutoLink(r.value)).forEach(r=>{w(r.from,r.to,o.doc).some(z=>z.mark.type===t.type)||u.addMark(r.from,r.to,t.type.create({href:r.href}))})}}),!!u.steps.length)return u}})}function R(t){return new A({key:new m("handleClickLink"),props:{handleClick:(e,i,o)=>{var l,a;if(o.button!==0||!e.editable)return!1;let u=o.target;const d=[];for(;u.nodeName!=="DIV";)d.push(u),u=u.parentNode;if(!d.find(p=>p.nodeName==="A"))return!1;const k=E(e.state,t.type.name),s=o.target,h=(l=s==null?void 0:s.href)!==null&&l!==void 0?l:k.href,f=(a=s==null?void 0:s.target)!==null&&a!==void 0?a:k.target;return s&&h?(window.open(h,f),!0):!1}}})}function I(t){return new A({key:new m("handlePasteLink"),props:{handlePaste:(e,i,o)=>{const{state:l}=e,{selection:a}=l,{empty:u}=a;if(u)return!1;let d="";o.content.forEach(s=>{d+=s.textContent});const k=y(d,{defaultProtocol:t.defaultProtocol}).find(s=>s.isLink&&s.value===d);return!d||!k?!1:t.editor.commands.setMark(t.type,{href:k.href})}}})}const W=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function c(t,e){const i=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(o=>{const l=typeof o=="string"?o:o.scheme;l&&i.push(l)}),!t||t.replace(W,"").match(new RegExp(`^(?:(?:${i.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}const N=V("L",M.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){v(t);return}v(t.scheme,t.optionalSlashes)})},onDestroy(){B()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>!!c(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>!!t}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:i=>!!c(i,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!c(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",P(this.options.HTMLAttributes,t),0]:["a",P(this.options.HTMLAttributes,{...t,href:""}),0]},addCommands(){return{setLink:t=>({chain:e})=>{const{href:i}=t;return this.options.isAllowedUri(i,{defaultValidate:o=>!!c(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,t).setMeta("preventAutolink",!0).run():!1},toggleLink:t=>({chain:e})=>{const{href:i}=t;return this.options.isAllowedUri(i,{defaultValidate:o=>!!c(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run():!1},unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[x({find:t=>{const e=[];if(t){const{protocols:i,defaultProtocol:o}=this.options,l=y(t).filter(a=>a.isLink&&this.options.isAllowedUri(a.value,{defaultValidate:u=>!!c(u,i),protocols:i,defaultProtocol:o}));l.length&&l.forEach(a=>e.push({text:a.value,data:{href:a.href},index:a.start}))}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[],{protocols:e,defaultProtocol:i}=this.options;return this.options.autolink&&t.push(j({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:o=>this.options.isAllowedUri(o,{defaultValidate:l=>!!c(l,e),protocols:e,defaultProtocol:i}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&t.push(R({type:this.type})),this.options.linkOnPaste&&t.push(I({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}}))}}});
@@ -0,0 +1 @@
1
+ System.register(["./core-D4rHEGhs.system.js"],function(r,n){"use strict";var e,s;return{setters:[t=>{e=t.N,s=t.m}],execute:function(){const t=r("L",e.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:i}){return["li",s(this.options.HTMLAttributes,i),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}))}}});
@@ -0,0 +1,33 @@
1
+ import { N as e, m as i } from "./core-DSbPv8xh.es.js";
2
+ const s = e.create({
3
+ name: "listItem",
4
+ addOptions() {
5
+ return {
6
+ HTMLAttributes: {},
7
+ bulletListTypeName: "bulletList",
8
+ orderedListTypeName: "orderedList"
9
+ };
10
+ },
11
+ content: "paragraph block*",
12
+ defining: !0,
13
+ parseHTML() {
14
+ return [
15
+ {
16
+ tag: "li"
17
+ }
18
+ ];
19
+ },
20
+ renderHTML({ HTMLAttributes: t }) {
21
+ return ["li", i(this.options.HTMLAttributes, t), 0];
22
+ },
23
+ addKeyboardShortcuts() {
24
+ return {
25
+ Enter: () => this.editor.commands.splitListItem(this.name),
26
+ Tab: () => this.editor.commands.sinkListItem(this.name),
27
+ "Shift-Tab": () => this.editor.commands.liftListItem(this.name)
28
+ };
29
+ }
30
+ });
31
+ export {
32
+ s as L
33
+ };
@@ -0,0 +1,130 @@
1
+ import { N as l, m as a } from "./core-DSbPv8xh.es.js";
2
+ import { a as u } from "../prosemirror-state-BW6XGB3U.es.js";
3
+ import { S as p } from "./suggestion-Dg-vhPtN.es.js";
4
+ const c = new u("mention"), g = l.create({
5
+ name: "mention",
6
+ priority: 101,
7
+ addOptions() {
8
+ return {
9
+ HTMLAttributes: {},
10
+ renderText({ options: e, node: t }) {
11
+ var n;
12
+ return `${e.suggestion.char}${(n = t.attrs.label) !== null && n !== void 0 ? n : t.attrs.id}`;
13
+ },
14
+ deleteTriggerWithBackspace: !1,
15
+ renderHTML({ options: e, node: t }) {
16
+ var n;
17
+ return [
18
+ "span",
19
+ a(this.HTMLAttributes, e.HTMLAttributes),
20
+ `${e.suggestion.char}${(n = t.attrs.label) !== null && n !== void 0 ? n : t.attrs.id}`
21
+ ];
22
+ },
23
+ suggestion: {
24
+ char: "@",
25
+ pluginKey: c,
26
+ command: ({ editor: e, range: t, props: n }) => {
27
+ var r, i, s;
28
+ const o = e.view.state.selection.$to.nodeAfter;
29
+ ((r = o == null ? void 0 : o.text) === null || r === void 0 ? void 0 : r.startsWith(" ")) && (t.to += 1), e.chain().focus().insertContentAt(t, [
30
+ {
31
+ type: this.name,
32
+ attrs: n
33
+ },
34
+ {
35
+ type: "text",
36
+ text: " "
37
+ }
38
+ ]).run(), (s = (i = e.view.dom.ownerDocument.defaultView) === null || i === void 0 ? void 0 : i.getSelection()) === null || s === void 0 || s.collapseToEnd();
39
+ },
40
+ allow: ({ state: e, range: t }) => {
41
+ const n = e.doc.resolve(t.from), r = e.schema.nodes[this.name];
42
+ return !!n.parent.type.contentMatch.matchType(r);
43
+ }
44
+ }
45
+ };
46
+ },
47
+ group: "inline",
48
+ inline: !0,
49
+ selectable: !1,
50
+ atom: !0,
51
+ addAttributes() {
52
+ return {
53
+ id: {
54
+ default: null,
55
+ parseHTML: (e) => e.getAttribute("data-id"),
56
+ renderHTML: (e) => e.id ? {
57
+ "data-id": e.id
58
+ } : {}
59
+ },
60
+ label: {
61
+ default: null,
62
+ parseHTML: (e) => e.getAttribute("data-label"),
63
+ renderHTML: (e) => e.label ? {
64
+ "data-label": e.label
65
+ } : {}
66
+ }
67
+ };
68
+ },
69
+ parseHTML() {
70
+ return [
71
+ {
72
+ tag: `span[data-type="${this.name}"]`
73
+ }
74
+ ];
75
+ },
76
+ renderHTML({ node: e, HTMLAttributes: t }) {
77
+ if (this.options.renderLabel !== void 0)
78
+ return console.warn("renderLabel is deprecated use renderText and renderHTML instead"), [
79
+ "span",
80
+ a({ "data-type": this.name }, this.options.HTMLAttributes, t),
81
+ this.options.renderLabel({
82
+ options: this.options,
83
+ node: e
84
+ })
85
+ ];
86
+ const n = { ...this.options };
87
+ n.HTMLAttributes = a({ "data-type": this.name }, this.options.HTMLAttributes, t);
88
+ const r = this.options.renderHTML({
89
+ options: n,
90
+ node: e
91
+ });
92
+ return typeof r == "string" ? [
93
+ "span",
94
+ a({ "data-type": this.name }, this.options.HTMLAttributes, t),
95
+ r
96
+ ] : r;
97
+ },
98
+ renderText({ node: e }) {
99
+ return this.options.renderLabel !== void 0 ? (console.warn("renderLabel is deprecated use renderText and renderHTML instead"), this.options.renderLabel({
100
+ options: this.options,
101
+ node: e
102
+ })) : this.options.renderText({
103
+ options: this.options,
104
+ node: e
105
+ });
106
+ },
107
+ addKeyboardShortcuts() {
108
+ return {
109
+ Backspace: () => this.editor.commands.command(({ tr: e, state: t }) => {
110
+ let n = !1;
111
+ const { selection: r } = t, { empty: i, anchor: s } = r;
112
+ return i ? (t.doc.nodesBetween(s - 1, s, (o, d) => {
113
+ if (o.type.name === this.name)
114
+ return n = !0, e.insertText(this.options.deleteTriggerWithBackspace ? "" : this.options.suggestion.char || "", d, d + o.nodeSize), !1;
115
+ }), n) : !1;
116
+ })
117
+ };
118
+ },
119
+ addProseMirrorPlugins() {
120
+ return [
121
+ p({
122
+ editor: this.editor,
123
+ ...this.options.suggestion
124
+ })
125
+ ];
126
+ }
127
+ });
128
+ export {
129
+ g as M
130
+ };
@@ -0,0 +1 @@
1
+ System.register(["./core-D4rHEGhs.system.js","../prosemirror-state-COJ-aZZ4.system.js","./suggestion-B3Grok9m.system.js"],function(h,m){"use strict";var u,d,c,p;return{setters:[s=>{u=s.N,d=s.m},s=>{c=s.a},s=>{p=s.S}],execute:function(){const s=new c("mention"),g=h("M",u.create({name:"mention",priority:101,addOptions(){return{HTMLAttributes:{},renderText({options:e,node:t}){var n;return`${e.suggestion.char}${(n=t.attrs.label)!==null&&n!==void 0?n:t.attrs.id}`},deleteTriggerWithBackspace:!1,renderHTML({options:e,node:t}){var n;return["span",d(this.HTMLAttributes,e.HTMLAttributes),`${e.suggestion.char}${(n=t.attrs.label)!==null&&n!==void 0?n:t.attrs.id}`]},suggestion:{char:"@",pluginKey:s,command:({editor:e,range:t,props:n})=>{var r,i,o;const a=e.view.state.selection.$to.nodeAfter;((r=a==null?void 0:a.text)===null||r===void 0?void 0:r.startsWith(" "))&&(t.to+=1),e.chain().focus().insertContentAt(t,[{type:this.name,attrs:n},{type:"text",text:" "}]).run(),(o=(i=e.view.dom.ownerDocument.defaultView)===null||i===void 0?void 0:i.getSelection())===null||o===void 0||o.collapseToEnd()},allow:({state:e,range:t})=>{const n=e.doc.resolve(t.from),r=e.schema.nodes[this.name];return!!n.parent.type.contentMatch.matchType(r)}}}},group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes(){return{id:{default:null,parseHTML:e=>e.getAttribute("data-id"),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute("data-label"),renderHTML:e=>e.label?{"data-label":e.label}:{}}}},parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:e,HTMLAttributes:t}){if(this.options.renderLabel!==void 0)return console.warn("renderLabel is deprecated use renderText and renderHTML instead"),["span",d({"data-type":this.name},this.options.HTMLAttributes,t),this.options.renderLabel({options:this.options,node:e})];const n={...this.options};n.HTMLAttributes=d({"data-type":this.name},this.options.HTMLAttributes,t);const r=this.options.renderHTML({options:n,node:e});return typeof r=="string"?["span",d({"data-type":this.name},this.options.HTMLAttributes,t),r]:r},renderText({node:e}){return this.options.renderLabel!==void 0?(console.warn("renderLabel is deprecated use renderText and renderHTML instead"),this.options.renderLabel({options:this.options,node:e})):this.options.renderText({options:this.options,node:e})},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:e,state:t})=>{let n=!1;const{selection:r}=t,{empty:i,anchor:o}=r;return i?(t.doc.nodesBetween(o-1,o,(a,l)=>{if(a.type.name===this.name)return n=!0,e.insertText(this.options.deleteTriggerWithBackspace?"":this.options.suggestion.char||"",l,l+a.nodeSize),!1}),n):!1})}},addProseMirrorPlugins(){return[p({editor:this.editor,...this.options.suggestion})]}}))}}});
@@ -0,0 +1,71 @@
1
+ import { N as n, w as r, m as i } from "./core-DSbPv8xh.es.js";
2
+ const p = "listItem", o = "textStyle", a = /^(\d+)\.\s$/, d = n.create({
3
+ name: "orderedList",
4
+ addOptions() {
5
+ return {
6
+ itemTypeName: "listItem",
7
+ HTMLAttributes: {},
8
+ keepMarks: !1,
9
+ keepAttributes: !1
10
+ };
11
+ },
12
+ group: "block list",
13
+ content() {
14
+ return `${this.options.itemTypeName}+`;
15
+ },
16
+ addAttributes() {
17
+ return {
18
+ start: {
19
+ default: 1,
20
+ parseHTML: (t) => t.hasAttribute("start") ? parseInt(t.getAttribute("start") || "", 10) : 1
21
+ },
22
+ type: {
23
+ default: null,
24
+ parseHTML: (t) => t.getAttribute("type")
25
+ }
26
+ };
27
+ },
28
+ parseHTML() {
29
+ return [
30
+ {
31
+ tag: "ol"
32
+ }
33
+ ];
34
+ },
35
+ renderHTML({ HTMLAttributes: t }) {
36
+ const { start: e, ...s } = t;
37
+ return e === 1 ? ["ol", i(this.options.HTMLAttributes, s), 0] : ["ol", i(this.options.HTMLAttributes, t), 0];
38
+ },
39
+ addCommands() {
40
+ return {
41
+ toggleOrderedList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(p, this.editor.getAttributes(o)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
42
+ };
43
+ },
44
+ addKeyboardShortcuts() {
45
+ return {
46
+ "Mod-Shift-7": () => this.editor.commands.toggleOrderedList()
47
+ };
48
+ },
49
+ addInputRules() {
50
+ let t = r({
51
+ find: a,
52
+ type: this.type,
53
+ getAttributes: (e) => ({ start: +e[1] }),
54
+ joinPredicate: (e, s) => s.childCount + s.attrs.start === +e[1]
55
+ });
56
+ return (this.options.keepMarks || this.options.keepAttributes) && (t = r({
57
+ find: a,
58
+ type: this.type,
59
+ keepMarks: this.options.keepMarks,
60
+ keepAttributes: this.options.keepAttributes,
61
+ getAttributes: (e) => ({ start: +e[1], ...this.editor.getAttributes(o) }),
62
+ joinPredicate: (e, s) => s.childCount + s.attrs.start === +e[1],
63
+ editor: this.editor
64
+ })), [
65
+ t
66
+ ];
67
+ }
68
+ });
69
+ export {
70
+ d as O
71
+ };
@@ -0,0 +1 @@
1
+ System.register(["./core-D4rHEGhs.system.js"],function(p,d){"use strict";var n,i,o;return{setters:[r=>{n=r.N,i=r.w,o=r.m}],execute:function(){const r="listItem",a="textStyle",u=/^(\d+)\.\s$/,h=p("O",n.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:null,parseHTML:t=>t.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...s}=t;return e===1?["ol",o(this.options.HTMLAttributes,s),0]:["ol",o(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(r,this.editor.getAttributes(a)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=i({find:u,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,s)=>s.childCount+s.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=i({find:u,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(a)}),joinPredicate:(e,s)=>s.childCount+s.attrs.start===+e[1],editor:this.editor})),[t]}}))}}});
@@ -0,0 +1,52 @@
1
+ import { E as p, l as m } from "./core-DSbPv8xh.es.js";
2
+ import { P as u, a as y } from "../prosemirror-state-BW6XGB3U.es.js";
3
+ import { D as E, a as f } from "../prosemirror-view-C9ZQp8VZ.es.js";
4
+ const O = p.create({
5
+ name: "placeholder",
6
+ addOptions() {
7
+ return {
8
+ emptyEditorClass: "is-editor-empty",
9
+ emptyNodeClass: "is-empty",
10
+ placeholder: "Write something …",
11
+ showOnlyWhenEditable: !0,
12
+ showOnlyCurrent: !0,
13
+ includeChildren: !1
14
+ };
15
+ },
16
+ addProseMirrorPlugins() {
17
+ return [
18
+ new u({
19
+ key: new y("placeholder"),
20
+ props: {
21
+ decorations: ({ doc: o, selection: a }) => {
22
+ const l = this.editor.isEditable || !this.options.showOnlyWhenEditable, { anchor: s } = a, i = [];
23
+ if (!l)
24
+ return null;
25
+ const c = this.editor.isEmpty;
26
+ return o.descendants((t, e) => {
27
+ const n = s >= e && s <= e + t.nodeSize, d = !t.isLeaf && m(t);
28
+ if ((n || !this.options.showOnlyCurrent) && d) {
29
+ const r = [this.options.emptyNodeClass];
30
+ c && r.push(this.options.emptyEditorClass);
31
+ const h = E.node(e, e + t.nodeSize, {
32
+ class: r.join(" "),
33
+ "data-placeholder": typeof this.options.placeholder == "function" ? this.options.placeholder({
34
+ editor: this.editor,
35
+ node: t,
36
+ pos: e,
37
+ hasAnchor: n
38
+ }) : this.options.placeholder
39
+ });
40
+ i.push(h);
41
+ }
42
+ return this.options.includeChildren;
43
+ }), f.create(o, i);
44
+ }
45
+ }
46
+ })
47
+ ];
48
+ }
49
+ });
50
+ export {
51
+ O as P
52
+ };
@@ -0,0 +1 @@
1
+ System.register(["./core-D4rHEGhs.system.js","../prosemirror-state-COJ-aZZ4.system.js","../prosemirror-view-DOxSTbB-.system.js"],function(y,P){"use strict";var i,o,r,n,a,c;return{setters:[e=>{i=e.E,o=e.l},e=>{r=e.P,n=e.a},e=>{a=e.D,c=e.a}],execute:function(){const e=y("P",i.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new r({key:new n("placeholder"),props:{decorations:({doc:l,selection:m})=>{const E=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:h}=m,d=[];if(!E)return null;const f=this.editor.isEmpty;return l.descendants((t,s)=>{const p=h>=s&&h<=s+t.nodeSize,w=!t.isLeaf&&o(t);if((p||!this.options.showOnlyCurrent)&&w){const u=[this.options.emptyNodeClass];f&&u.push(this.options.emptyEditorClass);const C=a.node(s,s+t.nodeSize,{class:u.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:t,pos:s,hasAnchor:p}):this.options.placeholder});d.push(C)}return this.options.includeChildren}),c.create(l,d)}}})]}}))}}});
@@ -0,0 +1,40 @@
1
+ import { M as t, m as r } from "./core-DSbPv8xh.es.js";
2
+ const s = t.create({
3
+ name: "underline",
4
+ addOptions() {
5
+ return {
6
+ HTMLAttributes: {}
7
+ };
8
+ },
9
+ parseHTML() {
10
+ return [
11
+ {
12
+ tag: "u"
13
+ },
14
+ {
15
+ style: "text-decoration",
16
+ consuming: !1,
17
+ getAttrs: (e) => e.includes("underline") ? {} : !1
18
+ }
19
+ ];
20
+ },
21
+ renderHTML({ HTMLAttributes: e }) {
22
+ return ["u", r(this.options.HTMLAttributes, e), 0];
23
+ },
24
+ addCommands() {
25
+ return {
26
+ setUnderline: () => ({ commands: e }) => e.setMark(this.name),
27
+ toggleUnderline: () => ({ commands: e }) => e.toggleMark(this.name),
28
+ unsetUnderline: () => ({ commands: e }) => e.unsetMark(this.name)
29
+ };
30
+ },
31
+ addKeyboardShortcuts() {
32
+ return {
33
+ "Mod-u": () => this.editor.commands.toggleUnderline(),
34
+ "Mod-U": () => this.editor.commands.toggleUnderline()
35
+ };
36
+ }
37
+ });
38
+ export {
39
+ s as U
40
+ };
@@ -0,0 +1 @@
1
+ System.register(["./core-D4rHEGhs.system.js"],function(s,i){"use strict";var r,n;return{setters:[t=>{r=t.M,n=t.m}],execute:function(){const t=s("U",r.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["u",n(this.options.HTMLAttributes,e),0]},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}))}}});
@@ -0,0 +1 @@
1
+ System.register(["../prosemirror-state-COJ-aZZ4.system.js","../prosemirror-view-DOxSTbB-.system.js","./core-D4rHEGhs.system.js"],function(G,V){"use strict";var N,b,F,O,T;return{setters:[d=>{N=d.P,b=d.a},d=>{F=d.a,O=d.D},d=>{T=d.o}],execute:function(){G("S",J);function d(D){var s;const{char:_,allowSpaces:B,allowToIncludeChar:I,allowedPrefixes:v,startOfLine:C,$position:u}=D,E=B&&!I,g=T(_),M=new RegExp(`\\s${g}$`),p=C?"^":"",P=I?"":g,j=E?new RegExp(`${p}${g}.*?(?=\\s${P}|$)`,"gm"):new RegExp(`${p}(?:^)?${g}[^\\s${P}]*`,"gm"),r=((s=u.nodeBefore)===null||s===void 0?void 0:s.isText)&&u.nodeBefore.text;if(!r)return null;const e=u.pos-r.length,o=Array.from(r.matchAll(j)).pop();if(!o||o.input===void 0||o.index===void 0)return null;const n=o.input.slice(Math.max(0,o.index-1),o.index),i=new RegExp(`^[${v==null?void 0:v.join("")}\0]?$`).test(n);if(v!==null&&!i)return null;const a=e+o.index;let l=a+o[0].length;return E&&M.test(r.slice(l-1,l+1))&&(o[0]+=" ",l+=1),a<u.pos&&l>=u.pos?{range:{from:a,to:l},query:o[0].slice(_.length),text:o[0]}:null}const H=new b("suggestion");function J({pluginKey:D=H,editor:s,char:_="@",allowSpaces:B=!1,allowToIncludeChar:I=!1,allowedPrefixes:v=[" "],startOfLine:C=!1,decorationTag:u="span",decorationClass:E="suggestion",command:g=()=>null,items:M=()=>[],render:p=()=>({}),allow:P=()=>!0,findSuggestionMatch:j=d}){let r;const e=p==null?void 0:p(),o=new N({key:D,view(){return{update:async(n,i)=>{var a,l,f,m,x,S,y;const t=(a=this.key)===null||a===void 0?void 0:a.getState(i),c=(l=this.key)===null||l===void 0?void 0:l.getState(n.state),w=t.active&&c.active&&t.range.from!==c.range.from,U=!t.active&&c.active,L=t.active&&!c.active,k=!U&&!L&&t.query!==c.query,$=U||w&&k,R=k||w,A=L||w&&k;if(!$&&!R&&!A)return;const h=A&&!$?t:c,z=n.dom.querySelector(`[data-decoration-id="${h.decorationId}"]`);r={editor:s,range:h.range,query:h.query,text:h.text,items:[],command:q=>g({editor:s,range:h.range,props:q}),decorationNode:z,clientRect:z?()=>{var q;const{decorationId:Q}=(q=this.key)===null||q===void 0?void 0:q.getState(s.state),K=n.dom.querySelector(`[data-decoration-id="${Q}"]`);return(K==null?void 0:K.getBoundingClientRect())||null}:null},$&&((f=e==null?void 0:e.onBeforeStart)===null||f===void 0||f.call(e,r)),R&&((m=e==null?void 0:e.onBeforeUpdate)===null||m===void 0||m.call(e,r)),(R||$)&&(r.items=await M({editor:s,query:h.query})),A&&((x=e==null?void 0:e.onExit)===null||x===void 0||x.call(e,r)),R&&((S=e==null?void 0:e.onUpdate)===null||S===void 0||S.call(e,r)),$&&((y=e==null?void 0:e.onStart)===null||y===void 0||y.call(e,r))},destroy:()=>{var n;r&&((n=e==null?void 0:e.onExit)===null||n===void 0||n.call(e,r))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(n,i,a,l){const{isEditable:f}=s,{composing:m}=s.view,{selection:x}=n,{empty:S,from:y}=x,t={...i};if(t.composing=m,f&&(S||s.view.composing)){(y<i.range.from||y>i.range.to)&&!m&&!i.composing&&(t.active=!1);const c=j({char:_,allowSpaces:B,allowToIncludeChar:I,allowedPrefixes:v,startOfLine:C,$position:x.$from}),w=`id_${Math.floor(Math.random()*4294967295)}`;c&&P({editor:s,state:l,range:c.range,isActive:i.active})?(t.active=!0,t.decorationId=i.decorationId?i.decorationId:w,t.range=c.range,t.query=c.query,t.text=c.text):t.active=!1}else t.active=!1;return t.active||(t.decorationId=null,t.range={from:0,to:0},t.query=null,t.text=null),t}},props:{handleKeyDown(n,i){var a;const{active:l,range:f}=o.getState(n.state);return l&&((a=e==null?void 0:e.onKeyDown)===null||a===void 0?void 0:a.call(e,{view:n,event:i,range:f}))||!1},decorations(n){const{active:i,range:a,decorationId:l}=o.getState(n);return i?F.create(n.doc,[O.inline(a.from,a.to,{nodeName:u,class:E,"data-decoration-id":l})]):null}}});return o}}}});