@sync-in/server 1.3.7 → 1.3.9

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 (435) hide show
  1. package/CHANGELOG.md +13 -13
  2. package/migrations/0001_square_mauler.sql +4 -0
  3. package/migrations/meta/0001_snapshot.json +2417 -0
  4. package/migrations/meta/_journal.json +7 -0
  5. package/package.json +45 -2
  6. package/server/app.service.spec.js +4 -4
  7. package/server/app.service.spec.js.map +1 -1
  8. package/server/applications/sync/schemas/sync-clients.schema.js +4 -4
  9. package/server/applications/sync/schemas/sync-clients.schema.js.map +1 -1
  10. package/server/applications/users/schemas/users.schema.js +4 -4
  11. package/server/applications/users/schemas/users.schema.js.map +1 -1
  12. package/server/configuration/config.constants.js +0 -4
  13. package/server/configuration/config.constants.js.map +1 -1
  14. package/server/configuration/config.loader.js +2 -2
  15. package/server/configuration/config.loader.js.map +1 -1
  16. package/server/infrastructure/database/configuration.js +1 -1
  17. package/server/infrastructure/database/configuration.js.map +1 -1
  18. package/server/infrastructure/database/constants.js +19 -5
  19. package/server/infrastructure/database/constants.js.map +1 -1
  20. package/static/assets/mimes/7zip.svg +14 -0
  21. package/static/assets/mimes/application-7zip.svg +14 -0
  22. package/static/assets/mimes/application-atom+xml.svg +15 -0
  23. package/static/assets/mimes/application-gzip.svg +16 -0
  24. package/static/assets/mimes/application-mathml+xml.svg +188 -0
  25. package/static/assets/mimes/application-mp4.svg +18 -0
  26. package/static/assets/mimes/application-msexcel.svg +1 -0
  27. package/static/assets/mimes/application-msword-template.svg +1 -0
  28. package/static/assets/mimes/application-pgp-encrypted.svg +16 -0
  29. package/static/assets/mimes/application-pgp-keys.svg +16 -0
  30. package/static/assets/mimes/application-pgp-signature.svg +16 -0
  31. package/static/assets/mimes/application-powerpoint.svg +1 -0
  32. package/static/assets/mimes/application-rdf+xml.svg +14 -0
  33. package/static/assets/mimes/application-rss+xml.svg +15 -0
  34. package/static/assets/mimes/application-rtf.svg +14 -0
  35. package/static/assets/mimes/application-text.svg +14 -0
  36. package/static/assets/mimes/application-vnd.ms-excel.sheet.binary.macroenabled.12.svg +1 -0
  37. package/static/assets/mimes/application-vnd.ms-excel.sheet.macroenabled.12.svg +1 -0
  38. package/static/assets/mimes/application-vnd.ms-excel.template.macroenabled.12.svg +1 -0
  39. package/static/assets/mimes/application-vnd.ms-powerpoint.presentation.macroenabled.12.svg +1 -0
  40. package/static/assets/mimes/application-vnd.ms-powerpoint.template.macroenabled.12.svg +1 -0
  41. package/static/assets/mimes/application-vnd.ms-word.document.macroenabled.12.svg +1 -0
  42. package/static/assets/mimes/application-vnd.ms-word.svg +1 -0
  43. package/static/assets/mimes/application-vnd.ms-word.template.macroenabled.12.svg +1 -0
  44. package/static/assets/mimes/application-vnd.mspowerpoint.svg +1 -0
  45. package/static/assets/mimes/application-vnd.oasis.opendocument.chart.svg +1 -0
  46. package/static/assets/mimes/application-vnd.oasis.opendocument.text-master.svg +92 -0
  47. package/static/assets/mimes/application-vnd.oasis.opendocument.text-web.svg +18 -0
  48. package/static/assets/mimes/application-vnd.openofficeorg.extension.svg +59 -0
  49. package/static/assets/mimes/application-vnd.openxmlformats-officedocument.presentationml.presentation.svg +1 -0
  50. package/static/assets/mimes/application-vnd.openxmlformats-officedocument.presentationml.slideshow.svg +1 -0
  51. package/static/assets/mimes/application-vnd.openxmlformats-officedocument.spreadsheetml.sheet.svg +1 -0
  52. package/static/assets/mimes/application-vnd.openxmlformats-officedocument.spreadsheetml.template.svg +1 -0
  53. package/static/assets/mimes/application-vnd.openxmlformats-officedocument.wordprocessingml.document.svg +1 -0
  54. package/static/assets/mimes/application-vnd.openxmlformats-officedocument.wordprocessingml.template.svg +1 -0
  55. package/static/assets/mimes/application-vnd.rn-realmedia.svg +18 -0
  56. package/static/assets/mimes/application-vnd.sun.xml.calc.svg +1 -0
  57. package/static/assets/mimes/application-vnd.sun.xml.writer-global.svg +1 -0
  58. package/static/assets/mimes/application-vnd.sun.xml.writer-template.svg +1 -0
  59. package/static/assets/mimes/application-vnd.sun.xml.writer.svg +1 -0
  60. package/static/assets/mimes/application-vnd.sun.xml.writer.template.svg +14 -0
  61. package/static/assets/mimes/application-wps-office.doc.svg +1 -0
  62. package/static/assets/mimes/application-wps-office.docx.svg +1 -0
  63. package/static/assets/mimes/application-wps-office.ppt.svg +1 -0
  64. package/static/assets/mimes/application-wps-office.pptx.svg +1 -0
  65. package/static/assets/mimes/application-wps-office.xls.svg +1 -0
  66. package/static/assets/mimes/application-wps-office.xlsx.svg +1 -0
  67. package/static/assets/mimes/application-x-7zip.svg +14 -0
  68. package/static/assets/mimes/application-x-ace.svg +14 -0
  69. package/static/assets/mimes/application-x-addon.svg +59 -0
  70. package/static/assets/mimes/application-x-ar.svg +16 -0
  71. package/static/assets/mimes/application-x-arc.svg +14 -0
  72. package/static/assets/mimes/application-x-archive.svg +16 -0
  73. package/static/assets/mimes/application-x-arj.svg +14 -0
  74. package/static/assets/mimes/application-x-audacity-project.svg +24 -0
  75. package/static/assets/mimes/application-x-bzdvi.svg +14 -0
  76. package/static/assets/mimes/application-x-bzip-compressed-tar.svg +14 -0
  77. package/static/assets/mimes/application-x-class-file.svg +37 -0
  78. package/static/assets/mimes/application-x-compress-tar.svg +16 -0
  79. package/static/assets/mimes/application-x-compress.svg +16 -0
  80. package/static/assets/mimes/application-x-compressed-tar.svg +14 -0
  81. package/static/assets/mimes/application-x-core.svg +20 -0
  82. package/static/assets/mimes/application-x-cpio.svg +16 -0
  83. package/static/assets/mimes/application-x-deb.svg +14 -0
  84. package/static/assets/mimes/application-x-designer.svg +48 -0
  85. package/static/assets/mimes/application-x-egon.svg +12 -0
  86. package/static/assets/mimes/application-x-extension-html.svg +18 -0
  87. package/static/assets/mimes/application-x-font-afm.svg +14 -0
  88. package/static/assets/mimes/application-x-font-snf.svg +14 -0
  89. package/static/assets/mimes/application-x-font-speedo.svg +14 -0
  90. package/static/assets/mimes/application-x-font-type1.svg +14 -0
  91. package/static/assets/mimes/application-x-gettext-translation.svg +14 -0
  92. package/static/assets/mimes/application-x-gnome-theme-package.svg +109 -0
  93. package/static/assets/mimes/application-x-gzdvi.svg +16 -0
  94. package/static/assets/mimes/application-x-gzip.svg +16 -0
  95. package/static/assets/mimes/application-x-httpd-php.svg +18 -0
  96. package/static/assets/mimes/application-x-iso9660-image.svg +292 -0
  97. package/static/assets/mimes/application-x-java-archive.svg +16 -0
  98. package/static/assets/mimes/application-x-jokosher.svg +24 -0
  99. package/static/assets/mimes/application-x-kcachegrind.svg +273 -0
  100. package/static/assets/mimes/application-x-kcsrc.svg +109 -0
  101. package/static/assets/mimes/application-x-keepass2.svg +2 -0
  102. package/static/assets/mimes/application-x-kgetlist.svg +53 -0
  103. package/static/assets/mimes/application-x-lha.svg +14 -0
  104. package/static/assets/mimes/application-x-lzma-compressed-tar.svg +16 -0
  105. package/static/assets/mimes/application-x-lzop.svg +16 -0
  106. package/static/assets/mimes/application-x-m4.svg +14 -0
  107. package/static/assets/mimes/application-x-matroska.svg +18 -0
  108. package/static/assets/mimes/application-x-mplayer2.svg +18 -0
  109. package/static/assets/mimes/application-x-ms-application.svg +306 -0
  110. package/static/assets/mimes/application-x-msdos-program.svg +306 -0
  111. package/static/assets/mimes/application-x-msdownload.svg +306 -0
  112. package/static/assets/mimes/application-x-msi.svg +306 -0
  113. package/static/assets/mimes/application-x-mswinurl.svg +18 -0
  114. package/static/assets/mimes/application-x-mswrite.svg +1 -0
  115. package/static/assets/mimes/application-x-object.svg +273 -0
  116. package/static/assets/mimes/application-x-ole-storage.svg +273 -0
  117. package/static/assets/mimes/application-x-pak.svg +16 -0
  118. package/static/assets/mimes/application-x-perl.svg +15 -0
  119. package/static/assets/mimes/application-x-php.svg +18 -0
  120. package/static/assets/mimes/application-x-python-bytecode.svg +16 -0
  121. package/static/assets/mimes/application-x-rar.svg +14 -0
  122. package/static/assets/mimes/application-x-rpm.svg +14 -0
  123. package/static/assets/mimes/application-x-ruby.svg +22 -0
  124. package/static/assets/mimes/application-x-sh.svg +17 -0
  125. package/static/assets/mimes/application-x-shared-library-la.svg +62 -0
  126. package/static/assets/mimes/application-x-shellscript.svg +17 -0
  127. package/static/assets/mimes/application-x-shockwave-flash.svg +18 -0
  128. package/static/assets/mimes/application-x-srt.svg +210 -0
  129. package/static/assets/mimes/application-x-tar.svg +16 -0
  130. package/static/assets/mimes/application-x-tarz.svg +14 -0
  131. package/static/assets/mimes/application-x-trash.svg +14 -0
  132. package/static/assets/mimes/application-x-tzo.svg +14 -0
  133. package/static/assets/mimes/application-x-wine-extension-pdd.svg +14 -0
  134. package/static/assets/mimes/application-x-zip.svg +14 -0
  135. package/static/assets/mimes/application-x-zoo.svg +14 -0
  136. package/static/assets/mimes/application-xhtml+xml.svg +18 -0
  137. package/static/assets/mimes/application-xml.svg +18 -0
  138. package/static/assets/mimes/application-xsd.svg +18 -0
  139. package/static/assets/mimes/application-xslt+xml.svg +18 -0
  140. package/static/assets/mimes/application-zip.svg +14 -0
  141. package/static/assets/mimes/applications-java.svg +14 -0
  142. package/static/assets/mimes/archive.svg +16 -0
  143. package/static/assets/mimes/ascii.svg +14 -0
  144. package/static/assets/mimes/audio-ac3.svg +24 -0
  145. package/static/assets/mimes/audio-flac.svg +24 -0
  146. package/static/assets/mimes/audio-mpeg.svg +24 -0
  147. package/static/assets/mimes/audio-vn.rn-realmedia.svg +18 -0
  148. package/static/assets/mimes/audio-vnd.rn-realvideo.svg +18 -0
  149. package/static/assets/mimes/audio-x-adpcm.svg +24 -0
  150. package/static/assets/mimes/audio-x-aiff.svg +24 -0
  151. package/static/assets/mimes/audio-x-flac+ogg.svg +24 -0
  152. package/static/assets/mimes/audio-x-flac.svg +24 -0
  153. package/static/assets/mimes/audio-x-it.svg +24 -0
  154. package/static/assets/mimes/audio-x-monkey.svg +24 -0
  155. package/static/assets/mimes/audio-x-mpegurl.svg +24 -0
  156. package/static/assets/mimes/audio-x-wav.svg +24 -0
  157. package/static/assets/mimes/audio-x-xi.svg +24 -0
  158. package/static/assets/mimes/audio-x-xm.svg +24 -0
  159. package/static/assets/mimes/binary.svg +40 -0
  160. package/static/assets/mimes/deb.svg +14 -0
  161. package/static/assets/mimes/divx.svg +18 -0
  162. package/static/assets/mimes/document.svg +14 -0
  163. package/static/assets/mimes/emblem-package.svg +16 -0
  164. package/static/assets/mimes/eps.svg +24 -0
  165. package/static/assets/mimes/exec.svg +40 -0
  166. package/static/assets/mimes/folder-tar.svg +16 -0
  167. package/static/assets/mimes/folder_tar.svg +16 -0
  168. package/static/assets/mimes/font-otf.svg +14 -0
  169. package/static/assets/mimes/font.svg +14 -0
  170. package/static/assets/mimes/font_bitmap.svg +14 -0
  171. package/static/assets/mimes/font_truetype.svg +14 -0
  172. package/static/assets/mimes/font_type1.svg +14 -0
  173. package/static/assets/mimes/fonts-package.svg +16 -0
  174. package/static/assets/mimes/gedit-plugin.svg +59 -0
  175. package/static/assets/mimes/gnome-exe-thumbnailer-generic-x.svg +306 -0
  176. package/static/assets/mimes/gnome-exe-thumbnailer-generic.svg +306 -0
  177. package/static/assets/mimes/gnome-exe-thumbnailer-template.svg +306 -0
  178. package/static/assets/mimes/gnome-fs-executable.svg +40 -0
  179. package/static/assets/mimes/gnome-mime-application-atom+xml.svg +15 -0
  180. package/static/assets/mimes/gnome-mime-application-msexcel.svg +1 -0
  181. package/static/assets/mimes/gnome-mime-application-msword.svg +1 -0
  182. package/static/assets/mimes/gnome-mime-application-ogg.svg +24 -0
  183. package/static/assets/mimes/gnome-mime-application-pdf.svg +13 -0
  184. package/static/assets/mimes/gnome-mime-application-postscript.svg +14 -0
  185. package/static/assets/mimes/gnome-mime-application-powerpoint.svg +1 -0
  186. package/static/assets/mimes/gnome-mime-application-rss+xml.svg +15 -0
  187. package/static/assets/mimes/gnome-mime-application-rtf.svg +14 -0
  188. package/static/assets/mimes/gnome-mime-application-vnd.ms-excel.svg +1 -0
  189. package/static/assets/mimes/gnome-mime-application-vnd.ms-powerpoint.svg +1 -0
  190. package/static/assets/mimes/gnome-mime-application-vnd.ms-word.svg +1 -0
  191. package/static/assets/mimes/gnome-mime-application-vnd.mspowerpoint.svg +1 -0
  192. package/static/assets/mimes/gnome-mime-application-vnd.oasis.opendocument.formula.svg +188 -0
  193. package/static/assets/mimes/gnome-mime-application-vnd.oasis.opendocument.text-web.svg +18 -0
  194. package/static/assets/mimes/gnome-mime-application-vnd.openxmlformats-officedocument.presentationml.presentation.svg +1 -0
  195. package/static/assets/mimes/gnome-mime-application-vnd.openxmlformats-officedocument.presentationml.slideshow.svg +1 -0
  196. package/static/assets/mimes/gnome-mime-application-vnd.openxmlformats-officedocument.spreadsheetml.sheet.svg +1 -0
  197. package/static/assets/mimes/gnome-mime-application-vnd.openxmlformats-officedocument.wordprocessingml.document.svg +1 -0
  198. package/static/assets/mimes/gnome-mime-application-vnd.rn-realmedia-secure.svg +18 -0
  199. package/static/assets/mimes/gnome-mime-application-vnd.rn-realmedia-vbr.svg +18 -0
  200. package/static/assets/mimes/gnome-mime-application-vnd.rn-realmedia.svg +18 -0
  201. package/static/assets/mimes/gnome-mime-application-wps-office.doc.svg +1 -0
  202. package/static/assets/mimes/gnome-mime-application-wps-office.docx.svg +1 -0
  203. package/static/assets/mimes/gnome-mime-application-wps-office.ppt.svg +1 -0
  204. package/static/assets/mimes/gnome-mime-application-wps-office.pptx.svg +1 -0
  205. package/static/assets/mimes/gnome-mime-application-wps-office.xls.svg +1 -0
  206. package/static/assets/mimes/gnome-mime-application-wps-office.xlsx.svg +1 -0
  207. package/static/assets/mimes/gnome-mime-application-x-7z-compressed.svg +14 -0
  208. package/static/assets/mimes/gnome-mime-application-x-7zip.svg +14 -0
  209. package/static/assets/mimes/gnome-mime-application-x-archive.svg +16 -0
  210. package/static/assets/mimes/gnome-mime-application-x-arj.svg +16 -0
  211. package/static/assets/mimes/gnome-mime-application-x-bittorrent.svg +53 -0
  212. package/static/assets/mimes/gnome-mime-application-x-bzip-compressed-tar.svg +16 -0
  213. package/static/assets/mimes/gnome-mime-application-x-bzip-compressed.svg +16 -0
  214. package/static/assets/mimes/gnome-mime-application-x-bzip.svg +16 -0
  215. package/static/assets/mimes/gnome-mime-application-x-class-file.svg +14 -0
  216. package/static/assets/mimes/gnome-mime-application-x-compress.svg +16 -0
  217. package/static/assets/mimes/gnome-mime-application-x-compressed-tar.svg +16 -0
  218. package/static/assets/mimes/gnome-mime-application-x-cpio-compressed.svg +16 -0
  219. package/static/assets/mimes/gnome-mime-application-x-cpio.svg +16 -0
  220. package/static/assets/mimes/gnome-mime-application-x-deb.svg +14 -0
  221. package/static/assets/mimes/gnome-mime-application-x-designer.svg +48 -0
  222. package/static/assets/mimes/gnome-mime-application-x-executable.svg +40 -0
  223. package/static/assets/mimes/gnome-mime-application-x-font-afm.svg +14 -0
  224. package/static/assets/mimes/gnome-mime-application-x-font-bdf.svg +14 -0
  225. package/static/assets/mimes/gnome-mime-application-x-font-linux-psf.svg +14 -0
  226. package/static/assets/mimes/gnome-mime-application-x-font-pcf.svg +14 -0
  227. package/static/assets/mimes/gnome-mime-application-x-font-sunos-news.svg +14 -0
  228. package/static/assets/mimes/gnome-mime-application-x-font-ttf.svg +14 -0
  229. package/static/assets/mimes/gnome-mime-application-x-glade.svg +48 -0
  230. package/static/assets/mimes/gnome-mime-application-x-gnome-app-info.svg +109 -0
  231. package/static/assets/mimes/gnome-mime-application-x-gnome-theme-package.svg +109 -0
  232. package/static/assets/mimes/gnome-mime-application-x-gzip.svg +16 -0
  233. package/static/assets/mimes/gnome-mime-application-x-gzpostscript.svg +14 -0
  234. package/static/assets/mimes/gnome-mime-application-x-jar.svg +16 -0
  235. package/static/assets/mimes/gnome-mime-application-x-java.svg +14 -0
  236. package/static/assets/mimes/gnome-mime-application-x-killustrator.svg +12 -0
  237. package/static/assets/mimes/gnome-mime-application-x-lha.svg +16 -0
  238. package/static/assets/mimes/gnome-mime-application-x-lhz.svg +16 -0
  239. package/static/assets/mimes/gnome-mime-application-x-lzma-compressed-tar.svg +16 -0
  240. package/static/assets/mimes/gnome-mime-application-x-lzma.svg +16 -0
  241. package/static/assets/mimes/gnome-mime-application-x-ms-dos-executable.svg +306 -0
  242. package/static/assets/mimes/gnome-mime-application-x-perl.svg +15 -0
  243. package/static/assets/mimes/gnome-mime-application-x-php.svg +18 -0
  244. package/static/assets/mimes/gnome-mime-application-x-python-bytecode.svg +16 -0
  245. package/static/assets/mimes/gnome-mime-application-x-rar.svg +14 -0
  246. package/static/assets/mimes/gnome-mime-application-x-rpm.svg +14 -0
  247. package/static/assets/mimes/gnome-mime-application-x-ruby.svg +22 -0
  248. package/static/assets/mimes/gnome-mime-application-x-shellscript.svg +17 -0
  249. package/static/assets/mimes/gnome-mime-application-x-shockwave-flash.svg +18 -0
  250. package/static/assets/mimes/gnome-mime-application-x-stuffit.svg +16 -0
  251. package/static/assets/mimes/gnome-mime-application-x-tar.svg +16 -0
  252. package/static/assets/mimes/gnome-mime-application-x-tarz.svg +16 -0
  253. package/static/assets/mimes/gnome-mime-application-x-tex.svg +79 -0
  254. package/static/assets/mimes/gnome-mime-application-x-theme.svg +109 -0
  255. package/static/assets/mimes/gnome-mime-application-x-zip.svg +14 -0
  256. package/static/assets/mimes/gnome-mime-application-xhtml+xml.svg +18 -0
  257. package/static/assets/mimes/gnome-mime-application-xml.svg +18 -0
  258. package/static/assets/mimes/gnome-mime-application-zip.svg +14 -0
  259. package/static/assets/mimes/gnome-mime-application.svg +40 -0
  260. package/static/assets/mimes/gnome-mime-audio.svg +24 -0
  261. package/static/assets/mimes/gnome-mime-image-vnd.adobe.photoshop.svg +14 -0
  262. package/static/assets/mimes/gnome-mime-image-x-cmu-raster.svg +12 -0
  263. package/static/assets/mimes/gnome-mime-image-x-killustrator.svg +12 -0
  264. package/static/assets/mimes/gnome-mime-image-x-psd.svg +14 -0
  265. package/static/assets/mimes/gnome-mime-image-x-xpixmap.svg +12 -0
  266. package/static/assets/mimes/gnome-mime-image.svg +12 -0
  267. package/static/assets/mimes/gnome-mime-text-html.svg +18 -0
  268. package/static/assets/mimes/gnome-mime-text-install.svg +20 -0
  269. package/static/assets/mimes/gnome-mime-text-plain.svg +14 -0
  270. package/static/assets/mimes/gnome-mime-text-vnd.wap.wml.svg +18 -0
  271. package/static/assets/mimes/gnome-mime-text-x-changelog.svg +208 -0
  272. package/static/assets/mimes/gnome-mime-text-x-copying.svg +17 -0
  273. package/static/assets/mimes/gnome-mime-text-x-csh.svg +17 -0
  274. package/static/assets/mimes/gnome-mime-text-x-gtkrc.svg +109 -0
  275. package/static/assets/mimes/gnome-mime-text-x-install.svg +17 -0
  276. package/static/assets/mimes/gnome-mime-text-x-java-source.svg +14 -0
  277. package/static/assets/mimes/gnome-mime-text-x-java.svg +14 -0
  278. package/static/assets/mimes/gnome-mime-text-x-makefile.svg +176 -0
  279. package/static/assets/mimes/gnome-mime-text-x-opml+xml.svg +15 -0
  280. package/static/assets/mimes/gnome-mime-text-x-opml.svg +15 -0
  281. package/static/assets/mimes/gnome-mime-text-x-python.svg +16 -0
  282. package/static/assets/mimes/gnome-mime-text-x-readme.svg +15 -0
  283. package/static/assets/mimes/gnome-mime-text-x-sh.svg +17 -0
  284. package/static/assets/mimes/gnome-mime-text-x-zsh.svg +17 -0
  285. package/static/assets/mimes/gnome-mime-text.svg +14 -0
  286. package/static/assets/mimes/gnome-mime-video-x-ms-asf.svg +18 -0
  287. package/static/assets/mimes/gnome-mime-video-x-ms-wmv.svg +18 -0
  288. package/static/assets/mimes/gnome-mime-video.svg +18 -0
  289. package/static/assets/mimes/gnome-mime-x-font-afm.svg +14 -0
  290. package/static/assets/mimes/gnome-mime-x-install.svg +20 -0
  291. package/static/assets/mimes/gnome-package.svg +16 -0
  292. package/static/assets/mimes/html.svg +18 -0
  293. package/static/assets/mimes/image-gif.svg +12 -0
  294. package/static/assets/mimes/image-jpeg.svg +12 -0
  295. package/static/assets/mimes/image-png.svg +12 -0
  296. package/static/assets/mimes/image-svg+xml-compressed.svg +12 -0
  297. package/static/assets/mimes/image-svg+xml.svg +12 -0
  298. package/static/assets/mimes/image-vnd.adobe.photoshop.svg +14 -0
  299. package/static/assets/mimes/image-vnd.microsoft.icon.svg +12 -0
  300. package/static/assets/mimes/image-x-psdimage-x-psd.svg +14 -0
  301. package/static/assets/mimes/image-x-xfig.svg +12 -0
  302. package/static/assets/mimes/image.svg +12 -0
  303. package/static/assets/mimes/internet-feed.svg +15 -0
  304. package/static/assets/mimes/libpeas-plugin.svg +59 -0
  305. package/static/assets/mimes/libreoffice-database.svg +155 -0
  306. package/static/assets/mimes/libreoffice-extension.svg +59 -0
  307. package/static/assets/mimes/libreoffice-extensionn.svg +59 -0
  308. package/static/assets/mimes/libreoffice-formula.svg +188 -0
  309. package/static/assets/mimes/libreoffice-oasis-formula.svg +188 -0
  310. package/static/assets/mimes/libreoffice34-extension.svg +59 -0
  311. package/static/assets/mimes/media-audio.svg +24 -0
  312. package/static/assets/mimes/media-video.svg +18 -0
  313. package/static/assets/mimes/mime-ascii.svg +14 -0
  314. package/static/assets/mimes/mime_ascii.svg +14 -0
  315. package/static/assets/mimes/misc.svg +14 -0
  316. package/static/assets/mimes/multipart-encrypted.svg +273 -0
  317. package/static/assets/mimes/music.svg +24 -0
  318. package/static/assets/mimes/none.svg +110 -0
  319. package/static/assets/mimes/openofficeorg3-extension.svg +59 -0
  320. package/static/assets/mimes/package.svg +16 -0
  321. package/static/assets/mimes/package_editors.svg +14 -0
  322. package/static/assets/mimes/pdf.svg +13 -0
  323. package/static/assets/mimes/preferences-certificate.svg +28 -0
  324. package/static/assets/mimes/preferences-plugin.svg +59 -0
  325. package/static/assets/mimes/rar.svg +14 -0
  326. package/static/assets/mimes/raw.svg +12 -0
  327. package/static/assets/mimes/scii.svg +14 -0
  328. package/static/assets/mimes/shellscript.svg +17 -0
  329. package/static/assets/mimes/sound.svg +24 -0
  330. package/static/assets/mimes/stock_certificate.svg +28 -0
  331. package/static/assets/mimes/stock_new-formula.svg +188 -0
  332. package/static/assets/mimes/stock_new-html.svg +18 -0
  333. package/static/assets/mimes/stock_script.svg +17 -0
  334. package/static/assets/mimes/stock_scripts.svg +17 -0
  335. package/static/assets/mimes/tar.svg +16 -0
  336. package/static/assets/mimes/text-css.svg +18 -0
  337. package/static/assets/mimes/text-enriched.svg +14 -0
  338. package/static/assets/mimes/text-htmlh.svg +18 -0
  339. package/static/assets/mimes/text-javascript.svg +6 -0
  340. package/static/assets/mimes/text-mht.svg +18 -0
  341. package/static/assets/mimes/text-plain.svg +14 -0
  342. package/static/assets/mimes/text-x-bibtex.svg +79 -0
  343. package/static/assets/mimes/text-x-gtkrc.svg +109 -0
  344. package/static/assets/mimes/text-x-java-source.svg +14 -0
  345. package/static/assets/mimes/text-x-lua.svg +14 -0
  346. package/static/assets/mimes/text-x-nfo.svg +14 -0
  347. package/static/assets/mimes/text-x-opml+xml.svg +15 -0
  348. package/static/assets/mimes/text-x-opml.svg +15 -0
  349. package/static/assets/mimes/text-x-tex.svg +79 -0
  350. package/static/assets/mimes/text-x-vala.svg +14 -0
  351. package/static/assets/mimes/text-x.svg +14 -0
  352. package/static/assets/mimes/text-xmcd.svg +358 -0
  353. package/static/assets/mimes/text.svg +14 -0
  354. package/static/assets/mimes/text2.svg +14 -0
  355. package/static/assets/mimes/tgz.svg +16 -0
  356. package/static/assets/mimes/txt.svg +14 -0
  357. package/static/assets/mimes/txt2.svg +14 -0
  358. package/static/assets/mimes/uri-mms.svg +18 -0
  359. package/static/assets/mimes/uri-mmst.svg +18 -0
  360. package/static/assets/mimes/uri-mmsu.svg +18 -0
  361. package/static/assets/mimes/uri-pnm.svg +18 -0
  362. package/static/assets/mimes/uri-rtspt.svg +18 -0
  363. package/static/assets/mimes/uri-rtspu.svg +18 -0
  364. package/static/assets/mimes/video-mp4.svg +18 -0
  365. package/static/assets/mimes/video-quicktime.svg +18 -0
  366. package/static/assets/mimes/video-vivo.svg +18 -0
  367. package/static/assets/mimes/video-wavelet.svg +18 -0
  368. package/static/assets/mimes/video-webm.svg +18 -0
  369. package/static/assets/mimes/video-x-anim.svg +18 -0
  370. package/static/assets/mimes/video-x-flic.svg +18 -0
  371. package/static/assets/mimes/video-x-google-vlc-plugin.svg +18 -0
  372. package/static/assets/mimes/video-x-javafx.svg +18 -0
  373. package/static/assets/mimes/video-x-matroska.svg +18 -0
  374. package/static/assets/mimes/video-x-mng.svg +18 -0
  375. package/static/assets/mimes/video-x-ms-asf-plugin.svg +18 -0
  376. package/static/assets/mimes/video-x-ms-asf.svg +18 -0
  377. package/static/assets/mimes/video-x-ms-wmp.svg +18 -0
  378. package/static/assets/mimes/video-x-ms-wmv.svg +18 -0
  379. package/static/assets/mimes/video-x-nsv.svg +18 -0
  380. package/static/assets/mimes/video-x-sgi-movie.svg +18 -0
  381. package/static/assets/mimes/video-x-theora+ogg.svg +18 -0
  382. package/static/assets/mimes/video-x-wmv.svg +18 -0
  383. package/static/assets/mimes/video.svg +18 -0
  384. package/static/assets/mimes/www.svg +18 -0
  385. package/static/assets/mimes/x-kde-nsplugin-generated.svg +59 -0
  386. package/static/assets/mimes/zip.svg +14 -0
  387. package/static/{chunk-CS5K4IBF.js → chunk-3FX6ISDY.js} +1 -1
  388. package/static/chunk-3S4WNZ2T.js +7 -0
  389. package/static/chunk-4KESSWTF.js +1 -0
  390. package/static/{chunk-62NKWSCZ.js → chunk-4TEHM3AS.js} +1 -1
  391. package/static/chunk-AY2GOSJ2.js +24 -0
  392. package/static/chunk-BW5PQAKK.js +4 -0
  393. package/static/{chunk-MGWJOK6G.js → chunk-CLSVDV7J.js} +1 -1
  394. package/static/chunk-FJFNDK67.js +1 -0
  395. package/static/{chunk-YCR3E6AS.js → chunk-HUWQHCUX.js} +1 -1
  396. package/static/{chunk-KOYXXWT3.js → chunk-KFM544CA.js} +1 -1
  397. package/static/{chunk-ATROK3XR.js → chunk-LB7B5RIV.js} +1 -1
  398. package/static/{chunk-CBQRUHAW.js → chunk-LYTD6AJE.js} +1 -1
  399. package/static/{chunk-FNR2JLQZ.js → chunk-MK7WZG3F.js} +1 -1
  400. package/static/{chunk-3UFSZ24R.js → chunk-MTRNPGS4.js} +1 -1
  401. package/static/{chunk-ME4DNAIM.js → chunk-MWFRZBJD.js} +1 -1
  402. package/static/{chunk-VUBNAENR.js → chunk-N3T57OCA.js} +1 -1
  403. package/static/{chunk-USM4HKKT.js → chunk-NV2MEIWP.js} +1 -1
  404. package/static/{chunk-H5ZPIT76.js → chunk-O4AQBQBF.js} +1 -1
  405. package/static/{chunk-OHGTSIIO.js → chunk-O67RFAWU.js} +1 -1
  406. package/static/{chunk-CXGKFQMB.js → chunk-PYSFXLMV.js} +1 -1
  407. package/static/{chunk-BMZK5PGX.js → chunk-QTW62OKJ.js} +1 -1
  408. package/static/chunk-RSNLYAN6.js +560 -0
  409. package/static/{chunk-PU26FIXJ.js → chunk-S5WXHO6D.js} +1 -1
  410. package/static/{chunk-VCXIQZT4.js → chunk-SH5EVL4E.js} +4 -4
  411. package/static/{chunk-K375F6CH.js → chunk-SKDQM65G.js} +1 -1
  412. package/static/{chunk-IYMU2AOQ.js → chunk-SRLMFJ7C.js} +1 -1
  413. package/static/{chunk-OWYD7F64.js → chunk-TTQ37MUV.js} +1 -1
  414. package/static/chunk-WL65GYD5.js +4 -0
  415. package/static/{chunk-ZFGAD4UR.js → chunk-WLPYIJFI.js} +1 -1
  416. package/static/chunk-XE5YHU5J.js +1 -0
  417. package/static/{chunk-NC5X67U2.js → chunk-XUZSYWRF.js} +1 -1
  418. package/static/{chunk-MDYFTKWU.js → chunk-Z5X7LVMZ.js} +1 -1
  419. package/static/{chunk-AOASP2ML.js → chunk-ZFKCGL6X.js} +1 -1
  420. package/static/chunk-ZTXJC5IC.js +1 -0
  421. package/static/index.html +1 -1
  422. package/static/main-RREKR34B.js +10 -0
  423. package/static/{polyfills-GNKGQMRJ.js → polyfills-IA5XWQYN.js} +1 -1
  424. package/static/{scripts-263WP5VB.js → scripts-VZVAP2P4.js} +4 -4
  425. package/sync-in-server.js +1 -1
  426. package/static/chunk-3CQHRM6K.js +0 -24
  427. package/static/chunk-7DWT7W6L.js +0 -1
  428. package/static/chunk-E2MMQS3P.js +0 -1
  429. package/static/chunk-EUCMHS6F.js +0 -4
  430. package/static/chunk-H3O3N5LY.js +0 -4
  431. package/static/chunk-J6YSVODR.js +0 -1
  432. package/static/chunk-JQOMI5VI.js +0 -560
  433. package/static/chunk-MAVDZOWK.js +0 -1
  434. package/static/chunk-N6A3HHB5.js +0 -7
  435. package/static/main-TFDBY2TB.js +0 -10
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
3
+ <g fill-opacity=".078">
4
+ <path d="m66.61 0c-4.047 0-7.299 3.253-7.299 7.299v497.4c0 4.047 3.253 7.299 7.299 7.299h378.79c4.047 0 7.299-3.253 7.299-7.299v-359.46l-145.21-145.24h-240.88"/>
5
+ <path d="m69.2 3.5c-3.991 0-7.2 3.208-7.2 7.2v490.6c0 3.991 3.208 7.2 7.2 7.2h373.61c3.991 0 7.2-3.208 7.2-7.2v-354.55l-143.22-143.25h-237.59"/>
6
+ <path d="m71.786 7c-3.936 0-7.1 3.164-7.1 7.1v483.8c0 3.936 3.164 7.1 7.1 7.1h368.43c3.936 0 7.1-3.164 7.1-7.1v-349.63l-141.24-141.27h-234.29"/>
7
+ </g>
8
+ <path d="m74.38 10.5c-3.881 0-7 3.119-7 7v477c0 3.881 3.119 7 7 7h363.25c3.881 0 7-3.119 7-7v-344.72l-139.25-139.28h-231" fill="#5c805a"/>
9
+ <path d="m308.78 148.78c4.487 5.957 11.24 10.578 16.06 16.313 39.915 39.949 79.85 79.881 119.78 119.81v-135.12h-132.25c-1.321 0-2.542-0.37-3.594-1" fill-opacity=".235"/>
10
+ <path fill="#fff" d="m444.62 149.78l-139.25-139.28v132.28c0 3.881 3.119 7 7 7h132.25" fill-opacity=".196"/>
11
+ <path opacity=".318" d="m255.74 137.45c-15.28 0-30.03 2.247-43.95 6.423 1.554 7.506-0.108 15.438 7.378 15.333 4.835 6.485-9.633 1.923 0.815 6.921 6.01 4.489-6.347 7.07 1.094 11.1-8.576 4.198 1.386 21.965 7.756 26.41 10.484 8.373 4.649-17.734 16.347-19.09 6.357-6.885 17.507-11.31 25.435-18.236-7.749-0.597-12.29-5.18-4.952-8.01 13.506 13.13 3.4-6.204-4.077-9.267 7.234-2.183 14.268-0.601 13.265-6.264 2.376-1.649 2.561-2.941 1.531-3.918-6.752-0.912-13.641-1.392-20.643-1.392m-74.56 19.41c-4.46 2.499-8.777 5.214-12.946 8.134 3.935 0.157 6.835 1.031 9.148 6.702 10.337 5.652 0.906 15.243-3.6 18.535 7.536-4.224 20.744 16.693 17.14 5.091-4.435-3.072 11.92 4.934 3.44-5.05-7.804-11.928 0.608-5.329 3.898-2.546 11.19-9.519-12.656-10.687-6.702-20.483-2.911-2.237-6.323-7.01-10.381-10.381m-7.398 33.37c-0.243 0.136-0.465 0.287-0.696 0.477 0.216-0.142 0.445-0.294 0.696-0.477m41.4-25.296c-5.831 4.609 11.08 5.477 0 0m132.05 2.963c-7.527 6.272-12.199 15.63-17.6 23.824-11.625 4.972-11.197 26.309 1.79 19.489 3.476 5.759-2.428 14.829 7.696 7.298 8.167-10.253 1.435-26.826 15.333-33.29 1.012 5.03-12.818 23.807 3.341 20.722 14.608 0.523-10.605 1.37-3.5 10.222-7.382-4.155-3.55 11.344-13.185 7.736-8.347 4.308-13.824-2-11.912-8.909-6.567 3.634 2.052 13.901-9.347 14.517-2.553 8.602-23.555 7.289-11.614 16.05 5.302 13.04-19.741 0.824-12.628 16.466 6.086 15.468 18.829-5.11 24-9.09 9.672-7.117 23.856 11.295 16.566 13.13 9.179-1.644 7.02-10.357-0.835-13.782-4.359-10.726 13.794 5.282 12.787 10.659 6.407 11.382 3.782-11.67 10.301-1.472-0.761 10.758 26.23 2.537 13.344 16.248-11.08 2.117-22-2.694-31.541 0.398-8.877-0.075-8.402-9.08-11.634-11.336-11.292 0.87-25.27 0.772-32.833 9.426-8.175 10.64-19.947 25.511-11.04 39.1 8.916 20.13 31.02 1.036 43.731 12.926 3.778 4.958-3.276 10.858 5.171 16.228 3.179 11.439-3.61 22.296 4.196 33.23 4.04 10.284 6.553 25.685 21.577 16.287 15.901-9.08 11.659-25.811 24.779-35.08-10.382-19.06 12.716-27.402 18.475-42.876-12.583 1.748-23.807-10.175-26.847-22.15-5.286-5.818-3.916-14.391 1.989-3.46 8.116 7.461 8.295 29.585 23.307 18.2 1.701-0.675 4.133-1.808 6.602-3.222 0.44-4.454 0.687-8.965 0.736-13.523-8.413-0.02-15.284-19.08-2.784-5.548 0.949 0.382 1.871 0.732 2.764 1.074-0.129-7.161-0.727-14.212-1.81-21.1-1.206 1.901-3.692 2.056-7.418-1.83 1.496-9.377-9.923-16.53 2.347-19.887-9.674-30.951-28.945-57.653-54.31-76.66m-184.21 0.915c-1.017 0.778-2.026 1.564-3.02 2.367-1.615 3.966-4.583 7.794-5.588 4.733-28.544 25.329-47.529 61.18-50.871 101.48 4 6.937 11.191 18.791 11.594 14.12-5.351-5.316-10.864-21.264-1.81-7.06 8.11 13.502 19.06 22.262 35.04 25.475 8.737 2.819 15.922 12.513 23.606 10.381 4.345 10.866-12.877 21.307 0.577 31.441 7.02 10.26 18.833 16.997 12.449 31.401-4.111 12.952-2.843 26.946-5.628 39.32 3.942 2.28 7.996 4.396 12.151 6.324 1.95-8.51 3.615-16.854 10.202-22.771 12.156 0.091 2.331-12.411 14.398-10.779 7.363-9.156 9.489-20.09 21.915-23.725 1.484-11.11 20.666-28.13 0.855-32.455-5.384-2.518-19.256-3.411-18.2-4.654 2.146-11.03-17.909-14.182-26.45-18.694-11.213-7.551-28.07 12.542-32.02-4.773-2.357-5.448-10.981-5.514-7.02-13.921-7.139 6.736-21.1 4.675-17.441-8.333 5.552-10.955 26.874-11.487 30.506 1.69-5.04-14.533 9.745-25.855 17.958-36.19 1.672-4.942 11.613-9.173 8.193-2.605 5.825-0.199 14.644-10.171 4.296-5.568-0.146-9.09-9.06-6.502-11.952-5.21 5.361-8.07 32.908-3.65 21.378-16.844-8.934-3.434-8.206-23.474-17.242-12.31 0.76-6.879-18.396-20.345-17.978-8.81 2.338 10.322 0.421 22.21-4.554 28.975-1.038-15.12-28.24-11.804-24.739-27.921 5.064-7.681 11.01-18.277 11.574-17.321 8.431-3.054 15.309-11.53 7.816-17.759m12.09 5.01c-4.938 7.675 7.297 2.834 0 0m108.13 9.09c-5.782 6.315-13.399-1.669-13.523 3.759 1.048 1.64 5.243 13.351 14.438 4.713 4.935-1.974 2.98-6.948-0.915-8.472m-123.1 3.759c-10.966 9.09 18.628 9.935 2.327 1.054l-2.327-1.054m144.54 25.26c-7.609 4.921 3.935 15.183 0 20.03-4.947 8.178 18.388-0.575 5.926-7.1-0.854-5.392-6.832-11.916-5.906-12.927h-0.02m-5.191 9.764c-11 2.951-2.504 18.19 1.392 3.838 0.219-0.832 0.523-3.866-1.392-3.838m-88.08 11.02c-10.234 6.62-1.594 13.24 5.906 10.262-1.54-3.994-5.837-6.523-5.906-10.262m167.07 11.236c-0.693 6.48 14.723 16.532-1.909 13.245-8.796 0.979-21.979-0.261-10.898-10.659 3.501-1.994 12.699 6.903 7.915-1.392 1.696-0.103 3.294-0.705 4.892-1.193m24.342 4.992c-1.634 1.77-2.575 3.716 1.472 5.708-0.457-1.917-0.943-3.819-1.472-5.708m-75.15 9.03c-6.416 3.921 4.436 6.928 0 0m-161.1 36.552c-1.082 3.423 20.296 6.896 5.548 1.412l-2.207-0.736-3.341-0.676m16.586 4.872c-6.483 6.243 13.356 1.865 0 0" fill="#fff8eb"/>
12
+ <path d="m264.69 183.59c-4.429 21.735-8.922 43.46-13.375 65.19-12.513-12.513-23.364-24.52-36.781-37.938-4.03 4.258-12.702 11.02-18.75 12.969-31.19 16.11-63.41 28.37-94.03 44.844 2.201 9.545 10.339 13.158 4.219 29.938-0.565 1.548-3.833 1.462-4.656 3.25 38.41 38.41 131.23 131.49 199.97 199.66h136.34c3.881 0 7-3.119 7-7v-191.84c-12.195-12.06-24.11-23.86-35.563-35.31-24.514-12.457-49.15-25-73.59-37.41-16.44-16.44-33.633-34.13-45.844-46.34h-24.938" fill-opacity=".235"/>
13
+ <g transform="matrix(1.21841 0 0 1.42073-70.879-115.24)" stroke="#fff8eb" fill="#fff">
14
+ <path d="m141.91 293.24c-0.943-0.707 0-23.1 0-23.1l91.93-40.07v26.873l-63.17 24.04 62.703 25.459v26.17z"/>
15
+ <path d="m275.86 210.8h19.502l-33.504 139.18h-19.335z"/>
16
+ <path d="m394.66 293.24c0.943-0.707 0-23.1 0-23.1l-91.93-40.07v26.873l63.17 24.04-62.704 25.459v26.17z"/>
17
+ </g>
18
+ </svg>
@@ -0,0 +1,59 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
3
+ <g fill="#654641">
4
+ <text style="word-spacing:0;letter-spacing:0" transform="scale(1.05082.95163)" font-size="84.77" y="221.3" x="681.22" font-family="Gentium Book Basic" line-height="125%">
5
+ <tspan y="221.3" x="681.22"/>
6
+ </text>
7
+ <text style="text-anchor:middle" transform="scale(4.21679.23715)" font-size="30.8" y="659.01" x="299.04" font-family="Arial"/>
8
+ <text style="word-spacing:0;letter-spacing:0" transform="scale(1.05082.95163)" font-size="45.38" y="197.8" x="949.03" font-family="Gentium Book Basic" line-height="125%">
9
+ <tspan y="197.8" x="949.03"/>
10
+ </text>
11
+ <text style="text-anchor:middle" transform="scale(4.21679.23715)" font-size="16.488" y="671.14" x="305.7" font-family="Arial"/>
12
+ <text style="word-spacing:0;letter-spacing:0" font-size="132.57" y="290.09" x="-25.07" font-family="Gentium Book Basic" line-height="125%">
13
+ <tspan y="290.09" x="-25.07"/>
14
+ </text>
15
+ <text style="text-anchor:middle" transform="scale(4.0128.2492)" font-size="48.17" y="805.88" x="195.94" font-family="Arial"/>
16
+ </g>
17
+ <g>
18
+ <g style="word-spacing:0;letter-spacing:0" font-family="Gentium Book Basic" line-height="125%" font-size="208.33">
19
+ <text y="270.21" x="237.18">
20
+ <tspan y="270.21" x="237.18"/>
21
+ </text>
22
+ <text y="112.37" x="-55.893">
23
+ <tspan y="112.37" x="-55.893"/>
24
+ </text>
25
+ </g>
26
+ <g fill-opacity=".078">
27
+ <path d="m32.554 0c-4.774 0-8.59 3.266-8.59 7.313v497.38c0 4.047 3.816 7.313 8.59 7.313h446.89c4.774 0 8.59-3.266 8.59-7.313v-497.38c0-4.047-3.816-7.313-8.59-7.313h-446.89"/>
28
+ <path d="m35.614 3.5c-4.709 0-8.479 3.196-8.479 7.188v490.62c0 3.991 3.771 7.188 8.479 7.188h440.77c4.709 0 8.479-3.196 8.479-7.188v-490.62c0-3.991-3.771-7.188-8.479-7.188h-440.78"/>
29
+ <path d="m38.674 7c-4.643 0-8.369 3.158-8.369 7.094v483.82c0 3.936 3.725 7.094 8.369 7.094h434.65c4.643 0 8.369-3.158 8.369-7.094v-483.81c0-3.936-3.725-7.094-8.369-7.094h-434.65"/>
30
+ </g>
31
+ </g>
32
+ <path d="m41.734 10.5c-4.578 0-8.258 3.119-8.258 7v477c0 3.881 3.68 7 8.258 7h428.53c4.578 0 8.258-3.119 8.258-7v-477c0-3.881-3.68-7-8.258-7h-428.54" fill="#a1c651"/>
33
+ <g fill="#654641">
34
+ <text style="word-spacing:0;letter-spacing:0" transform="scale(1.05082.95163)" font-size="84.77" y="185.78" x="119.84" font-family="Gentium Book Basic" line-height="125%">
35
+ <tspan y="185.78" x="119.84"/>
36
+ </text>
37
+ <text style="text-anchor:middle" transform="scale(4.21679.23715)" font-size="30.8" y="516.46" x="159.14" font-family="Arial"/>
38
+ <text style="word-spacing:0;letter-spacing:0" transform="scale(1.05082.95163)" font-size="45.38" y="162.28" x="387.65" font-family="Gentium Book Basic" line-height="125%">
39
+ <tspan y="162.28" x="387.65"/>
40
+ </text>
41
+ <text style="text-anchor:middle" transform="scale(4.21679.23715)" font-size="16.488" y="528.59" x="165.81" font-family="Arial"/>
42
+ <text style="word-spacing:0;letter-spacing:0" font-size="132.57" y="256.28" x="-614.98" font-family="Gentium Book Basic" line-height="125%">
43
+ <tspan y="256.28" x="-614.98"/>
44
+ </text>
45
+ <text style="text-anchor:middle" transform="scale(4.0128.2492)" font-size="48.17" y="670.22" x="48.929" font-family="Arial"/>
46
+ </g>
47
+ <g>
48
+ <g style="word-spacing:0;letter-spacing:0" font-family="Gentium Book Basic" line-height="125%" font-size="208.33">
49
+ <text y="236.4" x="-352.73">
50
+ <tspan y="236.4" x="-352.73"/>
51
+ </text>
52
+ <text y="78.57" x="-645.81">
53
+ <tspan y="78.57" x="-645.81"/>
54
+ </text>
55
+ </g>
56
+ <path opacity=".25" d="m245.69 88c-23.651 0-42.813 13.283-42.813 29.656 0.688 6.109 4.555 13.82 6.594 16.469 9.882 13.176 9.877 21.403 7.406 26.344h-79.906c-14.6 0-26.344 11.744-26.344 26.344v66.72l61.781 61.75c-5.139 6.181-11.727 9.906-18.938 9.906-5.03-0.085-12.694-4.585-16.5-6.594-13.176-9.882-21.403-9.877-26.344-7.406v86.47c0 6.738 2.493 12.85 6.625 17.5 0.603 0.678 1.268 1.325 1.938 1.938l84.41 84.41h266.69c4.578 0 8.25-3.119 8.25-7v-214.25l-112.28-112.28c-4.747-4.645-11.241-7.5-18.438-7.5h-7.188l-59.688-59.688c-7.729-7.729-20.644-12.781-35.25-12.781m179.63 229.88l10.594 10.594c-4.458 5.349-10.03 8.859-16.12 9.688-0.458-1.551-0.804-3.104-0.969-4.563 0-5.774 2.376-11.162 6.5-15.719m-72.37 58.53h21.22v21.25c0 9.156-4.608 17.19-11.656 21.906l-31.469-31.469c4.721-7.04 12.757-11.688 21.906-11.688"/>
57
+ </g>
58
+ <path d="m245.69 88c-23.651 0-42.824 13.273-42.824 29.647 0.688 6.109 4.55 13.822 6.588 16.471 9.882 13.176 9.882 21.412 7.412 26.353h-79.882c-14.6 0-26.353 11.753-26.353 26.353v66.71c4.941 2.471 13.176 2.471 26.353-7.412 2.648-2.038 10.362-5.9 16.471-6.588 16.374 0 29.647 19.17 29.647 42.824 0 23.651-13.273 42.824-29.647 42.824-5.03-0.085-12.665-4.58-16.471-6.588-13.176-9.882-21.412-9.882-26.353-7.412v86.47c0 14.6 11.753 26.353 26.353 26.353h106.24c2.471-4.941 2.471-13.176-7.412-26.353-2.038-2.648-5.9-10.362-6.588-16.471 0-16.374 19.17-29.647 42.824-29.647 23.651 0 42.824 13.273 42.824 29.647-0.085 5.03-4.58 12.665-6.588 16.471-9.882 13.176-9.882 21.412-7.412 26.353h46.941c14.6 0 26.353-11.753 26.353-26.353v-73.29c4.941-2.471 13.176-2.471 26.353 7.412 3.806 2.01 11.445 6.503 16.471 6.588 16.374 0 29.647-19.17 29.647-42.824 0-23.651-13.273-42.824-29.647-42.824-6.109 0.688-13.822 4.55-16.471 6.588-13.176 9.882-21.412 9.882-26.353 7.412v-79.882c0-14.6-11.753-26.353-26.353-26.353h-73.29c-2.471-4.941-2.471-13.176 7.412-26.353 2.01-3.806 6.503-11.445 6.588-16.471 0-16.374-19.17-29.647-42.824-29.647" fill="#fff"/>
59
+ </svg>
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
3
+ <g fill-opacity=".078">
4
+ <rect width="464.07" rx="58.46" x="23.964" height="512"/>
5
+ <rect y="3.5" width="457.73" rx="57.661" x="27.14" height="505"/>
6
+ <rect y="7" width="451.38" rx="56.862" x="30.31" height="498"/>
7
+ </g>
8
+ <rect rx="56.06" height="491" width="445.04" y="10.5" x="33.481" fill="#ba9f74"/>
9
+ <path fill="#282629" d="m33.469 334.16v111.28c0 31.06 25 56.06 56.06 56.06h332.94c31.06 0 56.06-25 56.06-56.06v-111.28h-445.06" fill-opacity=".235"/>
10
+ <rect rx="10.523" height="58.46" width="147.32" y="387.54" x="89.46" fill="#fff"/>
11
+ <path d="m101.8 392.78v47.969h10.458v-47.969h-10.458m20.376 0v47.969h2.185v-47.969h-2.185m14.411 0v47.969h5.843v-47.969h-5.843m13.944 0v47.969h10.409v-47.969h-10.409m17.946 0v47.969h6.948v-47.969h-6.948m14.19 0v47.969h11.05v-47.969h-11.05m19.15 0v47.969h5.205v-47.969h-5.205m15.05 0v47.969h7.586v-47.969h-7.586" fill="#282629"/>
12
+ <path opacity=".25" d="m351.44 10.5c0.883 1.346 1.375 2.867 1.375 4.5v6.813c0 5.376-5.422 9.719-12.12 9.719h-7.875c0.02 0.247 0.031 0.467 0.031 0.719 0 1.308-0.269 2.57-0.75 3.719 4.604 0.938 7.969 4.377 7.969 8.531v6.188c0 4.879-4.677 8.781-10.5 8.781h-4.813c0.127 0.655 0.219 1.337 0.219 2.031 0 1.296-0.231 2.516-0.656 3.656 4.206 0.894 7.313 4.397 7.313 8.594v6.156c0 4.879-4.232 8.813-9.469 8.813h-4.875c0.021 0.289 0 0.579 0 0.875 0 1.639-0.349 3.159-0.938 4.531 3.57 0.991 6.188 4.401 6.188 8.5v6.188c0 4.879-3.704 8.781-8.313 8.781h-8.469c0.141 0.707 0.219 1.456 0.219 2.219 0 1.651-0.354 3.2-0.969 4.531 3.711 0.187 6.656 3.73 6.656 8.156v5.75c0 4.547-3.115 8.219-6.969 8.219h-7c0.109 0.559 0.188 1.149 0.188 1.75 0 1.16-0.209 2.241-0.594 3.219 2.357 1.032 4.094 4.278 4.094 8.156v5.969c0 4.713-2.546 8.5-5.688 8.5h-8.438c0.083 0.564 0.125 1.143 0.125 1.75 0 2.037-0.504 3.876-1.313 5.219 2.14 0.38 3.781 3.506 3.781 7.375v5.219c0 4.126-1.873 7.438-4.219 7.438h-15.313v19.844c5.306 0.78 8.906 2.294 8.906 4.03v64.22c0 0.342-0.143 0.68-0.406 1-0.157 11.483-10.481 20.781-23.16 20.781-6.387 0-12.162-2.382-16.344-6.188l195.38 195.41c25.13-5.555 43.844-27.867 43.844-54.719v-307.84l-127.09-127.09m-191.47 1.031c-0.341 0.715-0.568 1.495-0.688 2.281 0.12-0.789 0.346-1.564 0.688-2.281m-0.781 10.281c0 0.341 0.02 0.668 0.063 1-0.041-0.327-0.063-0.664-0.063-1m0.313 2.156c0.069 0.243 0.159 0.483 0.25 0.719-0.094-0.242-0.18-0.469-0.25-0.719m0.25 0.719c0.119 0.308 0.251 0.613 0.406 0.906-0.153-0.291-0.288-0.602-0.406-0.906m0.906 1.75c0.115 0.169 0.217 0.337 0.344 0.5-0.124-0.16-0.231-0.334-0.344-0.5m1.313 1.563l11.656 11.656c1.429-1.827 3.659-3.153 6.281-3.688-0.481-1.149-0.75-2.411-0.75-3.719 0-0.252 0.012-0.472 0.031-0.719h-7.875c-3.77 0-7.123-1.373-9.344-3.531m10.313 14.25c-0.057 0.188-0.114 0.37-0.156 0.563 0.044-0.193 0.098-0.375 0.156-0.563m2.719 14.656l9.531 9.563c0.948-0.598 2-1.067 3.156-1.313-0.425-1.14-0.656-2.36-0.656-3.656 0-0.694 0.092-1.376 0.219-2.031h-4.813c-2.912 0-5.54-0.975-7.438-2.563m5.5 15.406c-0.031 0.176-0.043 0.352-0.063 0.531 0.019-0.172 0.033-0.362 0.063-0.531m-0.125 7.594c0 0.494 0.073 0.967 0.156 1.438-0.083-0.472-0.156-0.943-0.156-1.438m0.281 2.125c0.045 0.169 0.101 0.335 0.156 0.5-0.055-0.164-0.112-0.332-0.156-0.5m0.531 1.406c0.106 0.226 0.218 0.441 0.344 0.656-0.126-0.217-0.237-0.429-0.344-0.656m0.344 0.656c0.146 0.25 0.298 0.484 0.469 0.719-0.17-0.234-0.323-0.469-0.469-0.719m1.625 2.031l9.531 9.563c0.869-0.709 1.875-1.259 2.969-1.563-0.588-1.372-0.938-2.892-0.938-4.531 0-0.296-0.021-0.586 0-0.875h-4.875c-2.618 0-4.978-1-6.688-2.594m9.313 29.469l10.5 10.5c1.112-1.035 2.512-1.673 4.03-1.75-0.615-1.331-0.969-2.88-0.969-4.531 0-0.762 0.078-1.512 0.219-2.219h-8.469c-2.02 0-3.876-0.749-5.313-2m10.938 29.5l8.75 8.781c0.69-1.114 1.562-2 2.563-2.438-0.385-0.977-0.594-2.058-0.594-3.219 0-0.601 0.078-1.191 0.188-1.75h-7c-1.445 0-2.796-0.49-3.906-1.375m7.469 12.09c-0.065 0.319-0.117 0.665-0.156 1 0.039-0.343 0.091-0.672 0.156-1m-0.156 1c-0.053 0.457-0.094 0.923-0.094 1.406 0-0.485 0.042-0.945 0.094-1.406m-0.063 8.25c0.019 0.279 0.057 0.542 0.094 0.813-0.036-0.268-0.075-0.536-0.094-0.813m2.938 6.594l9.906 9.938c0.65-1.059 1.498-1.771 2.438-1.938-0.809-1.343-1.313-3.181-1.313-5.219 0-0.607 0.042-1.186 0.125-1.75h-8.438c-0.982 0-1.914-0.378-2.719-1.031m11.125 27.469l17.469 17.5 1-16.938h-16.813c-0.586 0-1.15-0.188-1.656-0.563m17.281 20.406c-1.283 0.194-2.442 0.441-3.469 0.719 1.027-0.276 2.186-0.525 3.469-0.719m-1.875 68.03c0.591 8.445 7.478 15.13 15.875 15.13 8.343 0 15.208-6.569 15.875-14.938h-28.594c-1.107 0-2.196-0.082-3.156-0.188"/>
13
+ <path fill="#fdf6ea" d="m160.57 10.5c-0.883 1.346-1.378 2.881-1.378 4.514v6.794c0 5.376 5.413 9.716 12.12 9.716h7.887c-0.019 0.247-0.024 0.485-0.024 0.736 0 1.308 0.255 2.557 0.736 3.706-4.604 0.938-7.982 4.375-7.982 8.529v6.177c0 4.879 4.677 8.79 10.5 8.79h4.823c-0.127 0.655-0.214 1.349-0.214 2.043 0 1.296 0.24 2.518 0.665 3.659-4.206 0.894-7.317 4.379-7.317 8.576v6.153c0 4.879 4.218 8.814 9.455 8.814h4.894c-0.021 0.289-0.024 0.583-0.024 0.879 0 1.639 0.362 3.165 0.95 4.538-3.57 0.991-6.2 4.406-6.2 8.505v6.177c0 4.879 3.707 8.79 8.315 8.79h8.481c-0.141 0.707-0.214 1.447-0.214 2.209 0 1.651 0.335 3.206 0.95 4.537-3.711 0.187-6.652 3.746-6.652 8.172v5.749c0 4.547 3.107 8.22 6.961 8.22h7.01c-0.109 0.559-0.19 1.134-0.19 1.734 0 1.16 0.209 2.254 0.594 3.231-2.357 1.032-4.086 4.27-4.086 8.148v5.963c0 4.713 2.536 8.505 5.678 8.505h8.434c-0.083 0.564-0.119 1.128-0.119 1.734 0 2.037 0.498 3.883 1.307 5.226-2.14 0.38-3.777 3.52-3.777 7.388v5.226c0 4.126 1.883 7.436 4.229 7.436h16.82l-1.188 19.837c-5.132 0.774-8.388 2.264-8.41 4.01l-0.76 61.696c-0.184 1.067-0.285 2.165-0.285 3.278 0 11.606 10.341 21.02 23.12 21.02 12.676 0 22.982-9.28 23.14-20.763 0.263-0.32 0.404-0.656 0.404-0.998v-64.24c0-1.737-3.602-3.235-8.909-4.01v-19.837h15.323c2.346 0 4.229-3.309 4.229-7.436v-5.226c0-3.869-1.637-7.01-3.777-7.388 0.809-1.343 1.307-3.189 1.307-5.226 0-0.607-0.036-1.17-0.119-1.734h8.434c3.142 0 5.678-3.792 5.678-8.505v-5.963c0-3.878-1.729-7.117-4.086-8.148 0.385-0.977 0.594-2.071 0.594-3.231 0-0.601-0.081-1.175-0.19-1.734h7.01c3.854 0 6.961-3.673 6.961-8.22v-5.749c0-4.426-2.941-7.985-6.652-8.172 0.615-1.331 0.95-2.886 0.95-4.537 0-0.762-0.073-1.503-0.214-2.209h8.481c4.608 0 8.315-3.911 8.315-8.79v-6.177c0-4.099-2.63-7.514-6.2-8.505 0.588-1.372 0.95-2.898 0.95-4.538 0-0.296-0.003-0.59-0.024-0.879h4.894c5.237 0 9.455-3.935 9.455-8.814v-6.153c0-4.197-3.111-7.682-7.317-8.576 0.425-1.14 0.665-2.362 0.665-3.659 0-0.694-0.087-1.388-0.214-2.043h4.823c5.823 0 10.5-3.911 10.5-8.79v-6.177c0-4.154-3.378-7.591-7.982-8.529 0.481-1.149 0.736-2.398 0.736-3.706 0-0.252-0.004-0.489-0.024-0.736h7.887c6.703 0 12.12-4.34 12.12-9.716v-6.794c0-1.633-0.495-3.168-1.378-4.514h-190.86m79.56 278.45c0.96 0.106 2.029 0.166 3.136 0.166h28.603c-0.667 8.368-7.526 14.943-15.869 14.943-8.397 0-15.279-6.664-15.869-15.11" fill-opacity=".44"/>
14
+ </svg>
@@ -1 +1 @@
1
- import{a as Se}from"./chunk-AOASP2ML.js";import{a as Q}from"./chunk-H5ZPIT76.js";import"./chunk-FNR2JLQZ.js";import{a as N,b as O,c as ye,d as be}from"./chunk-ME4DNAIM.js";import{b as we,c as ve,d as Te,e as Le}from"./chunk-62NKWSCZ.js";import"./chunk-7DWT7W6L.js";import"./chunk-IYMU2AOQ.js";import"./chunk-E2MMQS3P.js";import"./chunk-MAVDZOWK.js";import{Hb as ge,Ja as Ce,Jb as ke,Xa as fe,kb as xe,pa as de,qa as me,ra as ue,v as X,w as Z,xb as he}from"./chunk-H3O3N5LY.js";import"./chunk-ZZ3LHYOY.js";import{b as K}from"./chunk-J6YSVODR.js";import{Cb as C,Eb as l,Ed as Y,Fd as J,Ga as D,Gc as q,Ib as L,If as se,Jb as S,Kb as V,L as U,Ma as r,Mb as F,Nb as P,Ob as M,Oe as oe,Pb as u,Qb as v,Rb as I,Sb as B,Ue as re,Uf as ce,Vf as pe,Wd as ee,Xa as W,Xb as R,Yb as H,Zc as j,Zf as _e,ab as T,ce as te,dc as k,fc as y,ha as w,ib as z,ie,jb as x,kb as h,ma as d,na as m,nb as A,ob as $,of as ae,pb as _,qb as s,rb as c,sb as f,te as ne,tf as le,yd as G,zb as b}from"./chunk-JQOMI5VI.js";import"./chunk-RTRJ3KFH.js";var Me=["MainContextMenu"],Ee=["TargetContextMenu"],Ve=(t,a)=>a.id,Fe=(t,a)=>a.key;function Ae(t,a){if(t&1&&(s(0,"span",30),u(1),c()),t&2){let e=l().$implicit,i=l(2);F("font-size",i.galleryMode.textSize,"px"),r(),I(" ",e.hTimeAccessAgo," ")}}function $e(t,a){if(t&1){let e=b();s(0,"div",21),C("click",function(){let o=d(e).$implicit,n=l(2);return m(n.onSelect(o))})("contextmenu",function(o){let n=d(e).$implicit,p=l(2);return m(p.onTargetContextMenu(o,n))})("pressup",function(o){let n=d(e).$implicit,p=l(2);return m(p.onTargetContextMenu(o,n))})("tap",function(){d(e);let o=l(2);return m(o.openLinkDialog())}),s(1,"div",22)(2,"img",23),C("error",function(){let o=d(e).$implicit;return m(o.fallBackMimeUrl())}),c(),s(3,"span",24),x(4,Ae,2,3,"span",25),c(),s(5,"span",26),f(6,"app-share-repository",27),c()(),s(7,"div",28)(8,"span",29),u(9),c()()()}if(t&2){let e=a.$implicit,i=a.$index,o=l(2);F("height",o.galleryMode.dimensions,"px")("width",o.galleryMode.dimensions,"px"),P("selected",e.id===(o.selected==null?null:o.selected.id))("disabled",!e.link.isActive),r(),z("rowIndex",i),r(),_("src",e.mimeUrl,D)("height",o.galleryMode.image)("width",o.galleryMode.image),r(2),h(e.newly?4:-1),r(2),_("share",e)("galleryMode",o.galleryMode),r(2),F("font-size",o.galleryMode.textSize,"px"),r(),v(e.name)}}function Pe(t,a){if(t&1){let e=b();s(0,"div",13)(1,"app-virtual-scroll",18),k(2,"searchFilter"),C("contextmenu",function(o){d(e);let n=l();return m(n.onContextMenu(o))}),s(3,"div",19),A(4,$e,10,18,"div",20,Ve),c()()()}if(t&2){let e=l();r(),_("childHeight",e.galleryMode.dimensions)("childWidth",e.galleryMode.dimensions)("items",y(2,5,e.shares,e.inputFilter.search()))("galleryMode",!0)("resizeOffset",110),r(3),$(e.scrollView==null?null:e.scrollView.viewPortItems)}}function Ie(t,a){if(t&1&&f(0,"fa-icon",37),t&2){let e=l(4);_("icon",e.sortTable.sortParam.asc?e.icons.faArrowDown:e.icons.faArrowUp)("fixedWidth",!1)}}function Be(t,a){if(t&1){let e=b();s(0,"th",36),C("click",function(){d(e);let o=l().$implicit,n=l(2);return m(n.sortBy(o.key))}),u(1),x(2,Ie,1,2,"fa-icon",37),c()}if(t&2){let e=l().$implicit,i=l(2);M(e.value.class),F("width",e.value.width,"%"),P("text-align-center",e.value.textCenter)("cursor-pointer",e.value.sortable),r(),I(" ",e.value.label," "),r(),h(i.sortTable.sortParam.column===e.key?2:-1)}}function Re(t,a){if(t&1&&x(0,Be,3,10,"th",35),t&2){let e=a.$implicit;h(e.value.show?0:-1)}}function De(t,a){if(t&1){let e=b();s(0,"div",40)(1,"img",43),C("error",function(){d(e);let o=l(3).$implicit;return m(o.fallBackMimeUrl())}),c(),s(2,"div",44)(3,"span",29),u(4),c(),s(5,"span",45),u(6),c()()()}if(t&2){let e=l(3).$implicit;r(),_("src",e.mimeUrl,D),r(3),v(e.name),r(2),v(e.description)}}function Ne(t,a){if(t&1&&(s(0,"span"),u(1),c()),t&2){let e=l(4).$implicit;r(),v(e.link.email||"")}}function Oe(t,a){if(t&1&&(s(0,"span",41)(1,"span"),u(2),c(),x(3,Ne,2,1,"span"),c()),t&2){let e=l(3).$implicit;r(2),v(e.link.name),r(),h(e.link.email?3:-1)}}function Qe(t,a){if(t&1&&f(0,"app-share-repository",42),t&2){let e=l(3).$implicit;_("share",e)}}function Ue(t,a){if(t&1&&(s(0,"span"),u(1),c()),t&2){let e=l(4).$implicit;M(R("badge rounded-pill ",e.link.nbAccess>=e.link.limitAccess?"bg-danger":"bg-success")),r(),B(" ",e.link.nbAccess,"/",e.link.limitAccess," ")}}function We(t,a){if(t&1&&(s(0,"span",47),u(1),c()),t&2){let e=l(4).$implicit;r(),v(e.link.nbAccess)}}function ze(t,a){if(t&1&&(s(0,"span",49),u(1),k(2,"translate"),c()),t&2){let e=l(5).$implicit,i=l(2);r(),B("",e.hTimeExpirationAgo,"\xA0",y(2,2,e.hTimeExpirationAgo===1?"day":"days",i.locale.language))}}function He(t,a){if(t&1&&(s(0,"span"),f(1,"fa-icon",37),x(2,ze,3,5,"span",49),c()),t&2){let e=l(4).$implicit,i=l(2);M(R("badge rounded-pill bg-",e.hTimeExpirationAgo>=1?"warning":"danger"," ms-1")),r(),_("icon",i.icons.faClock)("fixedWidth",!1),r(),h(e.hTimeExpirationAgo>=1?2:-1)}}function qe(t,a){if(t&1&&(s(0,"span",48),f(1,"fa-icon",6),c()),t&2){let e=l(6);r(),_("icon",e.icons.faLock)}}function Ke(t,a){if(t&1&&(x(0,Ue,2,5,"span",46)(1,We,2,1,"span",47),x(2,He,3,6,"span",46),x(3,qe,2,1,"span",48)),t&2){let e=l(3).$implicit;h(e.link.limitAccess?0:1),r(2),h(e.link.expiresAt?2:-1),r(),h(e.link.requireAuth?3:-1)}}function je(t,a){if(t&1&&f(0,"app-file-permissions",50),t&2){let e=l(4).$implicit;_("permissions",e.hPerms)}}function Ge(t,a){if(t&1&&x(0,je,1,1,"app-file-permissions",50),t&2){let e=l(3).$implicit;h(e.link.permissions?0:-1)}}function Ye(t,a){if(t&1&&u(0),t&2){let e=l(4).$implicit;I(" ",e.hTimeAccessAgo," ")}}function Je(t,a){t&1&&(s(0,"span",51),u(1,"never"),c())}function Xe(t,a){if(t&1&&x(0,Ye,1,1)(1,Je,2,0,"span",51),t&2){let e=l(3).$implicit;h(e.link.currentAccess?0:1)}}function Ze(t,a){if(t&1&&(s(0,"td"),x(1,De,7,3,"div",40)(2,Oe,4,2,"span",41)(3,Qe,1,1,"app-share-repository",42)(4,Ke,4,3)(5,Ge,1,1)(6,Xe,2,1),c()),t&2){let e,i=l().$implicit,o=l().$implicit;M(H("",i.value.class," ",i.value.newly!==void 0?"props-newly-"+o[i.value.newly]:"")),F("width",i.value.width,"%"),P("text-align-center",i.value.textCenter),r(),h((e=i.key)==="name"?1:e==="link"?2:e==="from"?3:e==="infos"?4:e==="permissions"?5:e==="accessed"?6:-1)}}function et(t,a){if(t&1&&x(0,Ze,7,9,"td",39),t&2){let e=a.$implicit;h(e.value.show?0:-1)}}function tt(t,a){if(t&1){let e=b();s(0,"tr",38),C("click",function(){let o=d(e).$implicit,n=l(2);return m(n.onSelect(o))})("contextmenu",function(o){let n=d(e).$implicit,p=l(2);return m(p.onTargetContextMenu(o,n))})("pressup",function(o){let n=d(e).$implicit,p=l(2);return m(p.onTargetContextMenu(o,n))})("tap",function(){d(e);let o=l(2);return m(o.openLinkDialog())}),A(1,et,1,1,null,null,Fe),k(3,"keyvalue"),c()}if(t&2){let e=a.$implicit,i=l(2);P("selected",e.id===(i.selected==null?null:i.selected.id))("disabled",!e.link.isActive),r(),$(y(3,4,i.tableHeaders,i.originalOrderKeyValue))}}function it(t,a){if(t&1){let e=b();s(0,"table",31)(1,"thead")(2,"tr"),A(3,Re,1,1,null,null,Fe),k(5,"keyvalue"),c()()(),s(6,"app-virtual-scroll",32),k(7,"searchFilter"),C("contextmenu",function(o){d(e);let n=l();return m(n.onContextMenu(o))}),s(8,"table",31)(9,"tbody",33),A(10,tt,4,7,"tr",34,Ve),c()()()}if(t&2){let e=l();r(3),$(y(5,2,e.tableHeaders,e.originalOrderKeyValue)),r(3),_("bufferAmount",5)("items",y(7,5,e.shares,e.inputFilter.search())),r(4),$(e.scrollView==null?null:e.scrollView.viewPortItems)}}function nt(t,a){if(t&1&&(s(0,"span",51),f(1,"fa-icon",6),u(2,"Refresh"),c()),t&2){let e=l();r(),_("icon",e.icons.faArrowRotateRight)}}function ot(t,a){if(t&1&&(s(0,"span",51),f(1,"fa-icon",6),u(2,"Go to"),c()),t&2){let e=l();r(),_("icon",e.icons.faMapMarkerAlt)}}function rt(t,a){if(t&1&&(s(0,"span",51),f(1,"fa-icon",6),u(2,"Edit link"),c()),t&2){let e=l();r(),_("icon",e.icons.faPen)}}function at(t,a){if(t&1&&(s(0,"span",51),f(1,"fa-icon",6),u(2,"Copy link"),c()),t&2){let e=l();r(),_("icon",e.icons.faClipboard)}}function lt(t,a){}function st(t,a){if(t&1&&(s(0,"span",51),f(1,"fa-icon",6),u(2,"Informations"),c()),t&2){let e=l();r(),_("icon",e.icons.faCircleInfo)}}var Dt=(()=>{let a=class a{constructor(){this.locale=w(G),this.layout=w(he),this.icons={faLink:oe,faArrowRotateRight:se,faArrowDown:ce,faArrowUp:re,faMapMarkerAlt:pe,faPen:ae,faEllipsisH:ee,faClock:ie,faLock:le,faClipboard:ne,faClipboardCheck:te,faCircleInfo:_e},this.originalOrderKeyValue=fe,this.TAB_MENU=Ce,this.loading=!1,this.linkWasCopied=!1,this.shares=[],this.selected=null,this.tableHeaders={name:{label:"Name",width:30,textCenter:!1,class:"",show:!0,sortable:!0},link:{label:"Link",width:15,textCenter:!1,class:"d-none d-sm-table-cell",show:!0,sortable:!0},from:{label:"Shared from",width:15,textCenter:!1,class:"d-none d-md-table-cell",show:!0},infos:{label:"Infos",width:15,textCenter:!0,class:"d-none d-lg-table-cell",show:!0,sortable:!0},permissions:{label:"Permissions",width:10,textCenter:!0,class:"d-none d-lg-table-cell",show:!0,sortable:!0},accessed:{label:"Accessed",width:10,textCenter:!0,class:"d-none d-lg-table-cell",newly:"newly",show:!0,sortable:!0}},this.btnSortFields={name:"Name",link:"Link",accessed:"Accessed"},this.activatedRoute=w(K),this.store=w(xe),this.linksService=w(Le),this.sharesService=w(ve),this.sortSettings={default:[{prop:"name",type:"string"}],link:[{prop:"link.name",type:"string"}],name:[{prop:"name",type:"string"}],infos:[{prop:"link.nbAccess",type:"number"}],permissions:[{prop:"link.permissions",type:"length"}],accessed:[{prop:"link.currentAccess",type:"date"}]},this.sortTable=new be(this.constructor.name,this.sortSettings),this.loadShareLinks(),this.activatedRoute.queryParams.subscribe(i=>this.focusOnSelect=i.select),this.layout.setBreadcrumbIcon(this.icons.faLink),this.layout.setBreadcrumbNav({url:`/${ke.LINKS}/${ge.SHARED_BY_LINKS}`,translating:!0,sameLink:!0})}ngOnInit(){this.galleryMode=this.btnNavigationView.currentView()}loadShareLinks(){this.loading=!0,this.onSelect(),this.linksService.shareLinksList().subscribe({next:i=>{this.sortBy(this.sortTable.sortParam.column,!1,i),this.loading=!1,this.focusOnSelect?this.focusOn(this.focusOnSelect):this.scrollView.scrollInto(-1)},error:i=>{this.shares=[],this.loading=!1,this.layout.sendNotification("error","Links",i.error.message)}})}sortBy(i,o=!0,n){this.shares=this.sortTable.sortBy(i,o,n||this.shares)}onSelect(i=null){this.selected=i,this.store.linkSelection.set(this.selected)}openLinkDialog(){this.linksService.shareLink(this.selected.id).subscribe(i=>{this.layout.openDialog(Te,"md",{initialState:{share:i}}).content.shareChange.pipe(U(1)).subscribe(n=>{let[p,g]=n;p==="update"?this.selected=Object.assign(this.selected,g):p==="delete"&&(this.onSelect(),this.sortBy(this.sortTable.sortParam.column,!1,this.shares.filter(E=>E.id!==g.id)))})})}onContextMenu(i){i.preventDefault(),i.stopPropagation(),this.layout.openContextMenu(i,this.mainContextMenu)}onTargetContextMenu(i,o){i.preventDefault(),i.type==="contextmenu"&&i.stopPropagation(),this.onSelect(o),this.layout.openContextMenu(i,this.targetContextMenu)}copyToClipboard(){this.selected&&(this.linksService.copyLinkToClipboard(this.selected.link.uuid),this.linkWasCopied=!0,this.layout.sendNotification("info","Link copied",this.selected.file.name||this.selected.name),setTimeout(()=>this.linkWasCopied=!1,3e3))}goTo(i){i=i||this.selected,this.sharesService.goTo(i).catch(console.error)}focusOn(i){let o=this.shares.find(n=>n.name===i);o&&(setTimeout(()=>this.scrollView.scrollInto(o),100),this.onSelect(o))}};a.\u0275fac=function(o){return new(o||a)},a.\u0275cmp=W({type:a,selectors:[["app-shared-links"]],viewQuery:function(o,n){if(o&1&&(L(O,5),L(N,7),L(Q,7),L(Me,7),L(Ee,7)),o&2){let p;S(p=V())&&(n.scrollView=p.first),S(p=V())&&(n.inputFilter=p.first),S(p=V())&&(n.btnNavigationView=p.first),S(p=V())&&(n.mainContextMenu=p.first),S(p=V())&&(n.targetContextMenu=p.first)}},decls:33,vars:36,consts:[["MainContextMenu",""],["TargetContextMenu",""],[1,"app-top-menu"],["container","body","type","button",1,"d-none","d-sm-block","btn","btn-sm","btn-secondary","me-1",3,"click","tooltip"],[3,"icon","animation"],["container","body","type","button",1,"btn","btn-sm","btn-secondary","me-1",3,"click","disabled","tooltip"],[3,"icon"],["container","body","type","button",3,"click","disabled","tooltip"],["container","body","type","button",1,"btn","btn-sm","btn-secondary",3,"click","disabled","tooltip"],[1,"ms-auto"],[1,"btn-group","btn-group-sm","me-1"],[1,"d-none","d-sm-block"],[3,"sortBy","switchView","sortParams","sortFields"],[1,"app-thumbs"],[1,"app-foot-menu"],[1,"mx-auto"],["contextMenuItem","",3,"execute"],["contextMenuItem","",3,"divider"],[3,"contextmenu","childHeight","childWidth","items","galleryMode","resizeOffset"],["tabindex","-1",1,"row","g-0"],[1,"card",3,"selected","disabled","height","width"],[1,"card",3,"click","contextmenu","pressup","tap"],[1,"card-body"],["alt","","draggable","true",3,"error","src","height","width"],[1,"label-top-right"],[1,"badge","rounded-pill","bg-warning",3,"font-size"],[1,"label-bottom-left"],[3,"share","galleryMode"],[1,"card-footer","text-center","text-truncate","p-1"],["draggable","false",1,"no-pointer-events"],[1,"badge","rounded-pill","bg-warning"],[1,"app-table"],[3,"contextmenu","bufferAmount","items"],["tabindex","-1"],[3,"selected","disabled"],["l10nTranslate","",3,"width","text-align-center","cursor-pointer","class"],["l10nTranslate","",3,"click"],[3,"icon","fixedWidth"],[3,"click","contextmenu","pressup","tap"],[3,"width","text-align-center","class"],[1,"d-flex","align-items-center"],[1,"d-flex","flex-column"],[3,"share"],["alt","","draggable","false","height","30","width","30",3,"error","src"],[1,"d-flex","flex-column","text-truncate"],["draggable","false",1,"no-pointer-events","text-muted","fs-xxxs"],[3,"class"],[1,"badge","rounded-pill","bg-success"],[1,"badge","rounded-pill","bg-gray-dark","ms-1"],[1,"ms-2"],["tooltipPlacement","auto",3,"permissions"],["l10nTranslate",""]],template:function(o,n){if(o&1){let p=b();s(0,"div",2)(1,"button",3),k(2,"translate"),C("click",function(){return d(p),m(n.loadShareLinks())}),f(3,"fa-icon",4),c(),s(4,"button",5),k(5,"translate"),C("click",function(){return d(p),m(n.openLinkDialog())}),f(6,"fa-icon",6),c(),s(7,"button",7),k(8,"translate"),C("click",function(){return d(p),m(n.copyToClipboard())}),f(9,"fa-icon",6),c(),s(10,"button",8),k(11,"translate"),C("click",function(){return d(p),m(n.goTo())}),f(12,"fa-icon",6),c(),s(13,"div",9)(14,"div",10),f(15,"app-input-filter",11),c(),s(16,"app-navigation-view",12),C("sortBy",function(E){return d(p),m(n.sortBy(E))})("switchView",function(E){return d(p),m(n.galleryMode=E)}),c()()(),x(17,Pe,6,8,"div",13)(18,it,12,8),s(19,"div",14)(20,"span",15),u(21),k(22,"translate"),c()(),s(23,"context-menu",null,0),T(25,nt,3,1,"ng-template",16),C("execute",function(){return d(p),m(n.loadShareLinks())}),c(),s(26,"context-menu",null,1),T(28,ot,3,1,"ng-template",16),C("execute",function(){return d(p),m(n.goTo())}),T(29,rt,3,1,"ng-template",16),C("execute",function(){return d(p),m(n.openLinkDialog())}),T(30,at,3,1,"ng-template",16),C("execute",function(){return d(p),m(n.copyToClipboard())}),T(31,lt,0,0,"ng-template",17)(32,st,3,1,"ng-template",16),C("execute",function(){return d(p),m(n.layout.showRSideBarTab(n.TAB_MENU.SELECTION))}),c()}o&2&&(r(),_("tooltip",y(2,21,"Refresh",n.locale.language)),r(2),_("icon",n.icons.faArrowRotateRight)("animation",n.loading?"spin":null),r(),_("disabled",!n.selected)("tooltip",y(5,24,"Edit link",n.locale.language)),r(2),_("icon",n.icons.faPen),r(),M(R("btn btn-sm me-1 ",n.linkWasCopied?"btn-info":"btn-secondary")),_("disabled",!n.selected)("tooltip",y(8,27,"Copy link",n.locale.language)),r(2),_("icon",n.linkWasCopied?n.icons.faClipboardCheck:n.icons.faClipboard),r(),_("disabled",!n.selected)("tooltip",y(11,30,"Go to",n.locale.language)),r(2),_("icon",n.icons.faMapMarkerAlt),r(4),_("sortParams",n.sortTable.sortParam)("sortFields",n.btnSortFields),r(),h(n.galleryMode!=null&&n.galleryMode.enabled?17:18),r(4),B("",n.shares.length," ",y(22,33,"shares",n.locale.language)),r(10),_("divider",!0))},dependencies:[ue,me,de,j,J,Q,Z,X,N,O,we,Se,q,Y,ye],encapsulation:2});let t=a;return t})();export{Dt as LinksComponent};
1
+ import{a as Se}from"./chunk-ZFKCGL6X.js";import{a as Q}from"./chunk-O4AQBQBF.js";import"./chunk-MK7WZG3F.js";import{a as N,b as O,c as ye,d as be}from"./chunk-MWFRZBJD.js";import{b as we,c as ve,d as Te,e as Le}from"./chunk-4TEHM3AS.js";import"./chunk-ZTXJC5IC.js";import"./chunk-SRLMFJ7C.js";import"./chunk-FJFNDK67.js";import"./chunk-4KESSWTF.js";import{Gb as ge,Ib as ke,Ja as Ce,Xa as fe,kb as xe,pa as de,qa as me,ra as ue,v as X,w as Z,wb as he}from"./chunk-WL65GYD5.js";import"./chunk-ZZ3LHYOY.js";import{b as K}from"./chunk-XE5YHU5J.js";import{Cb as C,Eb as l,Ed as Y,Fd as J,Ga as D,Gc as q,Ib as L,If as se,Jb as S,Kb as V,L as U,Ma as r,Mb as F,Nb as P,Ob as M,Oe as oe,Pb as u,Qb as v,Rb as I,Sb as B,Ue as re,Uf as ce,Vf as pe,Wd as ee,Xa as W,Xb as R,Yb as H,Zc as j,Zf as _e,ab as T,ce as te,dc as k,fc as y,ha as w,ib as z,ie,jb as x,kb as h,ma as d,na as m,nb as A,ob as $,of as ae,pb as _,qb as s,rb as c,sb as f,te as ne,tf as le,yd as G,zb as b}from"./chunk-RSNLYAN6.js";import"./chunk-RTRJ3KFH.js";var Me=["MainContextMenu"],Ee=["TargetContextMenu"],Ve=(t,a)=>a.id,Fe=(t,a)=>a.key;function Ae(t,a){if(t&1&&(s(0,"span",30),u(1),c()),t&2){let e=l().$implicit,i=l(2);F("font-size",i.galleryMode.textSize,"px"),r(),I(" ",e.hTimeAccessAgo," ")}}function $e(t,a){if(t&1){let e=b();s(0,"div",21),C("click",function(){let o=d(e).$implicit,n=l(2);return m(n.onSelect(o))})("contextmenu",function(o){let n=d(e).$implicit,p=l(2);return m(p.onTargetContextMenu(o,n))})("pressup",function(o){let n=d(e).$implicit,p=l(2);return m(p.onTargetContextMenu(o,n))})("tap",function(){d(e);let o=l(2);return m(o.openLinkDialog())}),s(1,"div",22)(2,"img",23),C("error",function(){let o=d(e).$implicit;return m(o.fallBackMimeUrl())}),c(),s(3,"span",24),x(4,Ae,2,3,"span",25),c(),s(5,"span",26),f(6,"app-share-repository",27),c()(),s(7,"div",28)(8,"span",29),u(9),c()()()}if(t&2){let e=a.$implicit,i=a.$index,o=l(2);F("height",o.galleryMode.dimensions,"px")("width",o.galleryMode.dimensions,"px"),P("selected",e.id===(o.selected==null?null:o.selected.id))("disabled",!e.link.isActive),r(),z("rowIndex",i),r(),_("src",e.mimeUrl,D)("height",o.galleryMode.image)("width",o.galleryMode.image),r(2),h(e.newly?4:-1),r(2),_("share",e)("galleryMode",o.galleryMode),r(2),F("font-size",o.galleryMode.textSize,"px"),r(),v(e.name)}}function Pe(t,a){if(t&1){let e=b();s(0,"div",13)(1,"app-virtual-scroll",18),k(2,"searchFilter"),C("contextmenu",function(o){d(e);let n=l();return m(n.onContextMenu(o))}),s(3,"div",19),A(4,$e,10,18,"div",20,Ve),c()()()}if(t&2){let e=l();r(),_("childHeight",e.galleryMode.dimensions)("childWidth",e.galleryMode.dimensions)("items",y(2,5,e.shares,e.inputFilter.search()))("galleryMode",!0)("resizeOffset",110),r(3),$(e.scrollView==null?null:e.scrollView.viewPortItems)}}function Ie(t,a){if(t&1&&f(0,"fa-icon",37),t&2){let e=l(4);_("icon",e.sortTable.sortParam.asc?e.icons.faArrowDown:e.icons.faArrowUp)("fixedWidth",!1)}}function Be(t,a){if(t&1){let e=b();s(0,"th",36),C("click",function(){d(e);let o=l().$implicit,n=l(2);return m(n.sortBy(o.key))}),u(1),x(2,Ie,1,2,"fa-icon",37),c()}if(t&2){let e=l().$implicit,i=l(2);M(e.value.class),F("width",e.value.width,"%"),P("text-align-center",e.value.textCenter)("cursor-pointer",e.value.sortable),r(),I(" ",e.value.label," "),r(),h(i.sortTable.sortParam.column===e.key?2:-1)}}function Re(t,a){if(t&1&&x(0,Be,3,10,"th",35),t&2){let e=a.$implicit;h(e.value.show?0:-1)}}function De(t,a){if(t&1){let e=b();s(0,"div",40)(1,"img",43),C("error",function(){d(e);let o=l(3).$implicit;return m(o.fallBackMimeUrl())}),c(),s(2,"div",44)(3,"span",29),u(4),c(),s(5,"span",45),u(6),c()()()}if(t&2){let e=l(3).$implicit;r(),_("src",e.mimeUrl,D),r(3),v(e.name),r(2),v(e.description)}}function Ne(t,a){if(t&1&&(s(0,"span"),u(1),c()),t&2){let e=l(4).$implicit;r(),v(e.link.email||"")}}function Oe(t,a){if(t&1&&(s(0,"span",41)(1,"span"),u(2),c(),x(3,Ne,2,1,"span"),c()),t&2){let e=l(3).$implicit;r(2),v(e.link.name),r(),h(e.link.email?3:-1)}}function Qe(t,a){if(t&1&&f(0,"app-share-repository",42),t&2){let e=l(3).$implicit;_("share",e)}}function Ue(t,a){if(t&1&&(s(0,"span"),u(1),c()),t&2){let e=l(4).$implicit;M(R("badge rounded-pill ",e.link.nbAccess>=e.link.limitAccess?"bg-danger":"bg-success")),r(),B(" ",e.link.nbAccess,"/",e.link.limitAccess," ")}}function We(t,a){if(t&1&&(s(0,"span",47),u(1),c()),t&2){let e=l(4).$implicit;r(),v(e.link.nbAccess)}}function ze(t,a){if(t&1&&(s(0,"span",49),u(1),k(2,"translate"),c()),t&2){let e=l(5).$implicit,i=l(2);r(),B("",e.hTimeExpirationAgo,"\xA0",y(2,2,e.hTimeExpirationAgo===1?"day":"days",i.locale.language))}}function He(t,a){if(t&1&&(s(0,"span"),f(1,"fa-icon",37),x(2,ze,3,5,"span",49),c()),t&2){let e=l(4).$implicit,i=l(2);M(R("badge rounded-pill bg-",e.hTimeExpirationAgo>=1?"warning":"danger"," ms-1")),r(),_("icon",i.icons.faClock)("fixedWidth",!1),r(),h(e.hTimeExpirationAgo>=1?2:-1)}}function qe(t,a){if(t&1&&(s(0,"span",48),f(1,"fa-icon",6),c()),t&2){let e=l(6);r(),_("icon",e.icons.faLock)}}function Ke(t,a){if(t&1&&(x(0,Ue,2,5,"span",46)(1,We,2,1,"span",47),x(2,He,3,6,"span",46),x(3,qe,2,1,"span",48)),t&2){let e=l(3).$implicit;h(e.link.limitAccess?0:1),r(2),h(e.link.expiresAt?2:-1),r(),h(e.link.requireAuth?3:-1)}}function je(t,a){if(t&1&&f(0,"app-file-permissions",50),t&2){let e=l(4).$implicit;_("permissions",e.hPerms)}}function Ge(t,a){if(t&1&&x(0,je,1,1,"app-file-permissions",50),t&2){let e=l(3).$implicit;h(e.link.permissions?0:-1)}}function Ye(t,a){if(t&1&&u(0),t&2){let e=l(4).$implicit;I(" ",e.hTimeAccessAgo," ")}}function Je(t,a){t&1&&(s(0,"span",51),u(1,"never"),c())}function Xe(t,a){if(t&1&&x(0,Ye,1,1)(1,Je,2,0,"span",51),t&2){let e=l(3).$implicit;h(e.link.currentAccess?0:1)}}function Ze(t,a){if(t&1&&(s(0,"td"),x(1,De,7,3,"div",40)(2,Oe,4,2,"span",41)(3,Qe,1,1,"app-share-repository",42)(4,Ke,4,3)(5,Ge,1,1)(6,Xe,2,1),c()),t&2){let e,i=l().$implicit,o=l().$implicit;M(H("",i.value.class," ",i.value.newly!==void 0?"props-newly-"+o[i.value.newly]:"")),F("width",i.value.width,"%"),P("text-align-center",i.value.textCenter),r(),h((e=i.key)==="name"?1:e==="link"?2:e==="from"?3:e==="infos"?4:e==="permissions"?5:e==="accessed"?6:-1)}}function et(t,a){if(t&1&&x(0,Ze,7,9,"td",39),t&2){let e=a.$implicit;h(e.value.show?0:-1)}}function tt(t,a){if(t&1){let e=b();s(0,"tr",38),C("click",function(){let o=d(e).$implicit,n=l(2);return m(n.onSelect(o))})("contextmenu",function(o){let n=d(e).$implicit,p=l(2);return m(p.onTargetContextMenu(o,n))})("pressup",function(o){let n=d(e).$implicit,p=l(2);return m(p.onTargetContextMenu(o,n))})("tap",function(){d(e);let o=l(2);return m(o.openLinkDialog())}),A(1,et,1,1,null,null,Fe),k(3,"keyvalue"),c()}if(t&2){let e=a.$implicit,i=l(2);P("selected",e.id===(i.selected==null?null:i.selected.id))("disabled",!e.link.isActive),r(),$(y(3,4,i.tableHeaders,i.originalOrderKeyValue))}}function it(t,a){if(t&1){let e=b();s(0,"table",31)(1,"thead")(2,"tr"),A(3,Re,1,1,null,null,Fe),k(5,"keyvalue"),c()()(),s(6,"app-virtual-scroll",32),k(7,"searchFilter"),C("contextmenu",function(o){d(e);let n=l();return m(n.onContextMenu(o))}),s(8,"table",31)(9,"tbody",33),A(10,tt,4,7,"tr",34,Ve),c()()()}if(t&2){let e=l();r(3),$(y(5,2,e.tableHeaders,e.originalOrderKeyValue)),r(3),_("bufferAmount",5)("items",y(7,5,e.shares,e.inputFilter.search())),r(4),$(e.scrollView==null?null:e.scrollView.viewPortItems)}}function nt(t,a){if(t&1&&(s(0,"span",51),f(1,"fa-icon",6),u(2,"Refresh"),c()),t&2){let e=l();r(),_("icon",e.icons.faArrowRotateRight)}}function ot(t,a){if(t&1&&(s(0,"span",51),f(1,"fa-icon",6),u(2,"Go to"),c()),t&2){let e=l();r(),_("icon",e.icons.faMapMarkerAlt)}}function rt(t,a){if(t&1&&(s(0,"span",51),f(1,"fa-icon",6),u(2,"Edit link"),c()),t&2){let e=l();r(),_("icon",e.icons.faPen)}}function at(t,a){if(t&1&&(s(0,"span",51),f(1,"fa-icon",6),u(2,"Copy link"),c()),t&2){let e=l();r(),_("icon",e.icons.faClipboard)}}function lt(t,a){}function st(t,a){if(t&1&&(s(0,"span",51),f(1,"fa-icon",6),u(2,"Informations"),c()),t&2){let e=l();r(),_("icon",e.icons.faCircleInfo)}}var Dt=(()=>{let a=class a{constructor(){this.locale=w(G),this.layout=w(he),this.icons={faLink:oe,faArrowRotateRight:se,faArrowDown:ce,faArrowUp:re,faMapMarkerAlt:pe,faPen:ae,faEllipsisH:ee,faClock:ie,faLock:le,faClipboard:ne,faClipboardCheck:te,faCircleInfo:_e},this.originalOrderKeyValue=fe,this.TAB_MENU=Ce,this.loading=!1,this.linkWasCopied=!1,this.shares=[],this.selected=null,this.tableHeaders={name:{label:"Name",width:30,textCenter:!1,class:"",show:!0,sortable:!0},link:{label:"Link",width:15,textCenter:!1,class:"d-none d-sm-table-cell",show:!0,sortable:!0},from:{label:"Shared from",width:15,textCenter:!1,class:"d-none d-md-table-cell",show:!0},infos:{label:"Infos",width:15,textCenter:!0,class:"d-none d-lg-table-cell",show:!0,sortable:!0},permissions:{label:"Permissions",width:10,textCenter:!0,class:"d-none d-lg-table-cell",show:!0,sortable:!0},accessed:{label:"Accessed",width:10,textCenter:!0,class:"d-none d-lg-table-cell",newly:"newly",show:!0,sortable:!0}},this.btnSortFields={name:"Name",link:"Link",accessed:"Accessed"},this.activatedRoute=w(K),this.store=w(xe),this.linksService=w(Le),this.sharesService=w(ve),this.sortSettings={default:[{prop:"name",type:"string"}],link:[{prop:"link.name",type:"string"}],name:[{prop:"name",type:"string"}],infos:[{prop:"link.nbAccess",type:"number"}],permissions:[{prop:"link.permissions",type:"length"}],accessed:[{prop:"link.currentAccess",type:"date"}]},this.sortTable=new be(this.constructor.name,this.sortSettings),this.loadShareLinks(),this.activatedRoute.queryParams.subscribe(i=>this.focusOnSelect=i.select),this.layout.setBreadcrumbIcon(this.icons.faLink),this.layout.setBreadcrumbNav({url:`/${ke.LINKS}/${ge.SHARED_BY_LINKS}`,translating:!0,sameLink:!0})}ngOnInit(){this.galleryMode=this.btnNavigationView.currentView()}loadShareLinks(){this.loading=!0,this.onSelect(),this.linksService.shareLinksList().subscribe({next:i=>{this.sortBy(this.sortTable.sortParam.column,!1,i),this.loading=!1,this.focusOnSelect?this.focusOn(this.focusOnSelect):this.scrollView.scrollInto(-1)},error:i=>{this.shares=[],this.loading=!1,this.layout.sendNotification("error","Links",i.error.message)}})}sortBy(i,o=!0,n){this.shares=this.sortTable.sortBy(i,o,n||this.shares)}onSelect(i=null){this.selected=i,this.store.linkSelection.set(this.selected)}openLinkDialog(){this.linksService.shareLink(this.selected.id).subscribe(i=>{this.layout.openDialog(Te,"md",{initialState:{share:i}}).content.shareChange.pipe(U(1)).subscribe(n=>{let[p,g]=n;p==="update"?this.selected=Object.assign(this.selected,g):p==="delete"&&(this.onSelect(),this.sortBy(this.sortTable.sortParam.column,!1,this.shares.filter(E=>E.id!==g.id)))})})}onContextMenu(i){i.preventDefault(),i.stopPropagation(),this.layout.openContextMenu(i,this.mainContextMenu)}onTargetContextMenu(i,o){i.preventDefault(),i.type==="contextmenu"&&i.stopPropagation(),this.onSelect(o),this.layout.openContextMenu(i,this.targetContextMenu)}copyToClipboard(){this.selected&&(this.linksService.copyLinkToClipboard(this.selected.link.uuid),this.linkWasCopied=!0,this.layout.sendNotification("info","Link copied",this.selected.file.name||this.selected.name),setTimeout(()=>this.linkWasCopied=!1,3e3))}goTo(i){i=i||this.selected,this.sharesService.goTo(i).catch(console.error)}focusOn(i){let o=this.shares.find(n=>n.name===i);o&&(setTimeout(()=>this.scrollView.scrollInto(o),100),this.onSelect(o))}};a.\u0275fac=function(o){return new(o||a)},a.\u0275cmp=W({type:a,selectors:[["app-shared-links"]],viewQuery:function(o,n){if(o&1&&(L(O,5),L(N,7),L(Q,7),L(Me,7),L(Ee,7)),o&2){let p;S(p=V())&&(n.scrollView=p.first),S(p=V())&&(n.inputFilter=p.first),S(p=V())&&(n.btnNavigationView=p.first),S(p=V())&&(n.mainContextMenu=p.first),S(p=V())&&(n.targetContextMenu=p.first)}},decls:33,vars:36,consts:[["MainContextMenu",""],["TargetContextMenu",""],[1,"app-top-menu"],["container","body","type","button",1,"d-none","d-sm-block","btn","btn-sm","btn-secondary","me-1",3,"click","tooltip"],[3,"icon","animation"],["container","body","type","button",1,"btn","btn-sm","btn-secondary","me-1",3,"click","disabled","tooltip"],[3,"icon"],["container","body","type","button",3,"click","disabled","tooltip"],["container","body","type","button",1,"btn","btn-sm","btn-secondary",3,"click","disabled","tooltip"],[1,"ms-auto"],[1,"btn-group","btn-group-sm","me-1"],[1,"d-none","d-sm-block"],[3,"sortBy","switchView","sortParams","sortFields"],[1,"app-thumbs"],[1,"app-foot-menu"],[1,"mx-auto"],["contextMenuItem","",3,"execute"],["contextMenuItem","",3,"divider"],[3,"contextmenu","childHeight","childWidth","items","galleryMode","resizeOffset"],["tabindex","-1",1,"row","g-0"],[1,"card",3,"selected","disabled","height","width"],[1,"card",3,"click","contextmenu","pressup","tap"],[1,"card-body"],["alt","","draggable","true",3,"error","src","height","width"],[1,"label-top-right"],[1,"badge","rounded-pill","bg-warning",3,"font-size"],[1,"label-bottom-left"],[3,"share","galleryMode"],[1,"card-footer","text-center","text-truncate","p-1"],["draggable","false",1,"no-pointer-events"],[1,"badge","rounded-pill","bg-warning"],[1,"app-table"],[3,"contextmenu","bufferAmount","items"],["tabindex","-1"],[3,"selected","disabled"],["l10nTranslate","",3,"width","text-align-center","cursor-pointer","class"],["l10nTranslate","",3,"click"],[3,"icon","fixedWidth"],[3,"click","contextmenu","pressup","tap"],[3,"width","text-align-center","class"],[1,"d-flex","align-items-center"],[1,"d-flex","flex-column"],[3,"share"],["alt","","draggable","false","height","30","width","30",3,"error","src"],[1,"d-flex","flex-column","text-truncate"],["draggable","false",1,"no-pointer-events","text-muted","fs-xxxs"],[3,"class"],[1,"badge","rounded-pill","bg-success"],[1,"badge","rounded-pill","bg-gray-dark","ms-1"],[1,"ms-2"],["tooltipPlacement","auto",3,"permissions"],["l10nTranslate",""]],template:function(o,n){if(o&1){let p=b();s(0,"div",2)(1,"button",3),k(2,"translate"),C("click",function(){return d(p),m(n.loadShareLinks())}),f(3,"fa-icon",4),c(),s(4,"button",5),k(5,"translate"),C("click",function(){return d(p),m(n.openLinkDialog())}),f(6,"fa-icon",6),c(),s(7,"button",7),k(8,"translate"),C("click",function(){return d(p),m(n.copyToClipboard())}),f(9,"fa-icon",6),c(),s(10,"button",8),k(11,"translate"),C("click",function(){return d(p),m(n.goTo())}),f(12,"fa-icon",6),c(),s(13,"div",9)(14,"div",10),f(15,"app-input-filter",11),c(),s(16,"app-navigation-view",12),C("sortBy",function(E){return d(p),m(n.sortBy(E))})("switchView",function(E){return d(p),m(n.galleryMode=E)}),c()()(),x(17,Pe,6,8,"div",13)(18,it,12,8),s(19,"div",14)(20,"span",15),u(21),k(22,"translate"),c()(),s(23,"context-menu",null,0),T(25,nt,3,1,"ng-template",16),C("execute",function(){return d(p),m(n.loadShareLinks())}),c(),s(26,"context-menu",null,1),T(28,ot,3,1,"ng-template",16),C("execute",function(){return d(p),m(n.goTo())}),T(29,rt,3,1,"ng-template",16),C("execute",function(){return d(p),m(n.openLinkDialog())}),T(30,at,3,1,"ng-template",16),C("execute",function(){return d(p),m(n.copyToClipboard())}),T(31,lt,0,0,"ng-template",17)(32,st,3,1,"ng-template",16),C("execute",function(){return d(p),m(n.layout.showRSideBarTab(n.TAB_MENU.SELECTION))}),c()}o&2&&(r(),_("tooltip",y(2,21,"Refresh",n.locale.language)),r(2),_("icon",n.icons.faArrowRotateRight)("animation",n.loading?"spin":null),r(),_("disabled",!n.selected)("tooltip",y(5,24,"Edit link",n.locale.language)),r(2),_("icon",n.icons.faPen),r(),M(R("btn btn-sm me-1 ",n.linkWasCopied?"btn-info":"btn-secondary")),_("disabled",!n.selected)("tooltip",y(8,27,"Copy link",n.locale.language)),r(2),_("icon",n.linkWasCopied?n.icons.faClipboardCheck:n.icons.faClipboard),r(),_("disabled",!n.selected)("tooltip",y(11,30,"Go to",n.locale.language)),r(2),_("icon",n.icons.faMapMarkerAlt),r(4),_("sortParams",n.sortTable.sortParam)("sortFields",n.btnSortFields),r(),h(n.galleryMode!=null&&n.galleryMode.enabled?17:18),r(4),B("",n.shares.length," ",y(22,33,"shares",n.locale.language)),r(10),_("divider",!0))},dependencies:[ue,me,de,j,J,Q,Z,X,N,O,we,Se,q,Y,ye],encapsulation:2});let t=a;return t})();export{Dt as LinksComponent};
@@ -0,0 +1,7 @@
1
+ import{f as _e,g as Ce}from"./chunk-BW5PQAKK.js";import{f as ge}from"./chunk-4KESSWTF.js";import{Lb as fe,Qb as z,ua as me,wb as he}from"./chunk-WL65GYD5.js";import{$b as Z,Cb as h,Dc as Y,Eb as c,Fa as E,Fd as ae,J as L,Jd as le,Lb as D,Ma as r,N as R,Nb as y,Ob as J,Pb as m,Qb as k,Re as pe,Tb as F,Ub as V,Vb as G,Xa as M,Xb as K,Xc as ee,Za as U,Zb as X,Zc as P,_c as te,ab as w,ac as $,ad as ie,ba as I,bb as x,bf as de,dc as A,ed as ne,fc as H,ha as O,hc as j,jb as f,jd as oe,kb as g,lb as q,ma as C,na as v,nb as B,ob as Q,of as ue,pb as d,pe as ce,qb as l,rb as a,sb as _,wd as se,xd as re,ya as W,yb as T,zb as b}from"./chunk-RSNLYAN6.js";var be=(function(i){return i[i.USER=0]="USER",i[i.PERSONAL=1]="PERSONAL",i})(be||{}),ye=(function(i){return i[i.VISIBLE=0]="VISIBLE",i[i.PRIVATE=1]="PRIVATE",i[i.ISOLATED=2]="ISOLATED",i})(ye||{});function ke(i,n){if(i&1&&(l(0,"span"),m(1),a()),i&2){let s=c();r(),k(s.group.name)}}function Se(i,n){i&1&&(l(0,"span",3),m(1,"New personal group"),a())}function Me(i,n){if(i&1&&_(0,"fa-icon",4),i&2){let s=c();d("icon",s.icons.faSpinner)}}function we(i,n){i&1&&(l(0,"span",3),m(1,"Edit personal group"),a())}function Pe(i,n){i&1&&(l(0,"span",3),m(1,"Edit group"),a())}function Ee(i,n){if(i&1&&(l(0,"h4",5),f(1,we,2,0,"span",3)(2,Pe,2,0,"span",3),a()),i&2){let s=c();r(),g(s.isPersonalGroup?1:2)}}var st=(()=>{let n=class n{constructor(){this.groupChange=new x,this.layout=O(he),this.icons={GROUPS:me.GROUPS,faSpinner:de,faCog:pe,faUsers:ce,faPen:ue},this.isPersonalGroup=!0,this.submitted=!1,this.loading=!1,this.userService=O(ge),this.user=this.userService.user}ngOnInit(){this.originalGroup?.id?(this.isPersonalGroup=this.originalGroup.isPersonalGroup,this.group=new z({id:this.originalGroup.id,name:this.originalGroup.name,description:this.originalGroup.description,createdAt:this.originalGroup.createdAt,modifiedAt:this.originalGroup.modifiedAt,type:this.originalGroup.type})):this.group=new z({id:0,name:"",description:"",createdAt:null,modifiedAt:null,type:fe.PGROUP})}onCancel(){this.layout.closeDialog()}onSubmit(){if(this.loading=!0,this.submitted=!0,this.group.id===0)this.userService.createPersonalGroup(this.makeDto(!0)).subscribe({next:e=>{this.loading=!1,this.groupChange.emit(["add",e]),this.layout.sendNotification("success","Group created",e.name),this.layout.closeDialog()},error:e=>this.onError(e)});else{let e=this.makeDto();if(!Object.keys(e).length){this.loading=!1,this.submitted=!1;return}this.userService.updatePersonalGroup(this.originalGroup.id,this.makeDto()).subscribe({next:t=>{this.loading=!1,this.groupChange.emit(["update",t]),this.layout.sendNotification("success","Group updated",t.name),this.layout.closeDialog()},error:t=>this.onError(t)})}}makeDto(e=!1){return{name:e?this.group.name:this.group.name!==this.originalGroup.name?this.group.name:void 0,description:e?this.group.description:this.group.description!==this.originalGroup.description?this.group.description:void 0}}onError(e){this.layout.sendNotification("error","Group error",this.group.name,e),this.submitted=!1,this.loading=!1}};n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=M({type:n,selectors:[["app-user-group-dialog"]],inputs:{originalGroup:"originalGroup"},outputs:{groupChange:"groupChange"},decls:23,vars:15,consts:[[1,"modal-header","align-items-center"],[1,"modal-title"],[1,"me-2",3,"icon"],["l10nTranslate",""],["animation","spin","size","sm",1,"ms-2",3,"icon"],[1,"modal-title","ms-auto"],["aria-label","Close","type","button",3,"click"],[1,"modal-body"],[1,"d-flex","col-12","pb-3"],[1,"flex-fill","col-6","pe-4"],["for","name","l10nTranslate",""],["id","name","appAutofocus","","autocomplete","off","type","text",1,"form-control","form-control-sm",3,"ngModelChange","disabled","autoSelect","ngModel"],[1,"flex-fill","col-6","ps-4"],["for","description","l10nTranslate",""],["id","description","autocomplete","off","type","text",1,"form-control","form-control-sm",3,"ngModelChange","ngModel","disabled"],[1,"modal-footer"],["data-dismiss","modal","type","button","l10nTranslate","",1,"btn","btn-sm","btn-secondary","ms-auto",3,"click"],["type","button","l10nTranslate","",1,"btn","btn-sm","btn-primary",3,"click","disabled"]],template:function(t,o){t&1&&(l(0,"div",0)(1,"h4",1),_(2,"fa-icon",2),f(3,ke,2,1,"span")(4,Se,2,0,"span",3),f(5,Me,1,1,"fa-icon",4),a(),f(6,Ee,3,1,"h4",5),l(7,"button",6),h("click",function(){return o.layout.closeDialog()}),a()(),l(8,"div",7)(9,"div",8)(10,"div",9)(11,"label",10),m(12,"Name"),a(),l(13,"input",11),G("ngModelChange",function(u){return V(o.group.name,u)||(o.group.name=u),u}),a()(),l(14,"div",12)(15,"label",13),m(16,"Description"),a(),l(17,"input",14),G("ngModelChange",function(u){return V(o.group.description,u)||(o.group.description=u),u}),a()()()(),l(18,"div",15)(19,"button",16),h("click",function(){return o.onCancel()}),m(20,"Cancel"),a(),l(21,"button",17),h("click",function(){return o.onSubmit()}),m(22," Confirm "),a()()),t&2&&(r(2),d("icon",o.icons.GROUPS),r(),g(o.group.id?3:4),r(2),g(o.loading?5:-1),r(),g(o.group.id?6:-1),r(),J(K("btn-close btn-close-white ",o.group.id?"ms-2":"ms-auto"," ms-2")),r(6),y("is-invalid",!o.group.name),d("disabled",!o.isPersonalGroup)("autoSelect",!1),F("ngModel",o.group.name),r(4),F("ngModel",o.group.description),d("disabled",!o.isPersonalGroup),r(4),d("disabled",!o.group.name||o.submitted))},dependencies:[re,ie,ne,se,oe,P,ae,_e],encapsulation:2});let i=n;return i})();var xe=(()=>{let n=class n{onClick(e){e.stopPropagation()}ngOnInit(){setTimeout(()=>{typeof document<"u"&&document.addEventListener("click",this.offClickHandler)},0)}ngOnDestroy(){typeof document<"u"&&document.removeEventListener("click",this.offClickHandler)}};n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=U({type:n,selectors:[["","offClick",""]],hostBindings:function(t,o){t&1&&h("click",function(u){return o.onClick(u)})},inputs:{offClickHandler:[0,"offClick","offClickHandler"]}});let i=n;return i})();var S=class{constructor(n){typeof n=="string"&&(this.id=this.name=n,this.description=""),typeof n=="object"&&(this.id=n.id||n.name,this.name=n.name,this.description=n.description||"")}};var Te=i=>({active:i}),De=(i,n)=>({o:i,i:n});function Fe(i,n){if(i&1){let s=b();l(0,"input",6),h("keydown",function(t){C(s);let o=c();return v(o.inputEvent(t))})("keyup",function(t){C(s);let o=c();return v(o.inputEvent(t,!0))}),a()}if(i&2){let s=c();d("disabled",s.disabled)}}function Ve(i,n){i&1&&T(0)}function Ge(i,n){if(i&1&&(l(0,"span",12),w(1,Ve,1,0,"ng-container",13),a()),i&2){let s=c(2),e=D(6);y("ui-select-allow-clear",s.allowClear&&s.active),r(),d("ngTemplateOutlet",s.customTemplateSelect||e)("ngTemplateOutletContext",Z(4,Te,s.active))}}function Ae(i,n){if(i&1&&(l(0,"span",9),m(1),a()),i&2){let s=c(2);r(),k(s.placeholder)}}function He(i,n){if(i&1){let s=b();l(0,"button",14),h("click",function(t){C(s);let o=c(2);return v(o.removeClick(o.active,t))}),a()}}function je(i,n){if(i&1){let s=b();l(0,"div",4)(1,"span",7),h("click",function(t){C(s);let o=c();return v(o.matchClick(t))}),f(2,Ge,2,6,"span",8)(3,Ae,2,1,"span",9),f(4,He,1,0,"button",10),_(5,"i",11),a()()}if(i&2){let s=c();r(2),g(s.active?2:3),r(2),g(s.allowClear&&s.active?4:-1)}}function ze(i,n){i&1&&T(0)}function Ne(i,n){if(i&1){let s=b();l(0,"li",15)(1,"div",16),h("click",function(t){let o=C(s).$implicit,p=c(2);return v(p.selectMatch(o,t))})("mouseenter",function(){let t=C(s).$implicit,o=c(2);return v(o.selectActive(t))}),w(2,ze,1,0,"ng-container",13),a()()}if(i&2){let s=n.$implicit,e=c(2),t=D(8);r(),y("active",e.isActive(s)),r(),d("ngTemplateOutlet",e.customTemplateOptions||t)("ngTemplateOutletContext",$(4,De,s,e.inputValue))}}function Le(i,n){if(i&1&&(l(0,"ul",5),B(1,Ne,3,7,"li",15,q),a()),i&2){let s=c();r(),Q(s.options)}}function Re(i,n){if(i&1&&(l(0,"div",17)(1,"span",18),_(2,"fa-icon",19),a(),l(3,"span"),m(4),a(),l(5,"div",20),m(6),a()()),i&2){let s=n.active,e=c();r(2),d("icon",e.itemIcon)("fixedWidth",!1),r(2),k(s.name),r(2),k(s.description)}}function Ie(i,n){if(i&1&&(l(0,"a",21)(1,"div",17)(2,"span",18),_(3,"fa-icon",19),a(),_(4,"span",22),A(5,"highlight"),_(6,"span",23),A(7,"highlight"),a()()),i&2){let s=n.i,e=n.o,t=c();r(3),d("icon",t.itemIcon)("fixedWidth",!1),r(),d("innerHtml",t.sanitize(H(5,4,e.name,s)),E),r(2),d("innerHtml",t.sanitize(H(7,7,e.description,s)),E)}}var bt=(()=>{let n=class n{constructor(){this.element=O(W),this.itemIcon=le,this.allowClear=!0,this.placeholder="",this.idField="id",this.nameField="name",this.descriptionField="description",this.data=new x,this.selected=new x,this.removed=new x,this.typed=new x,this.opened=new x,this.options=[],this.itemObjects=[],this.inputMode=!1,this.inputValue="",this.onChange=Function.prototype,this.onTouched=Function.prototype,this.sanitizer=O(ee),this._items=[],this._optionsOpened=!1,this._disabled=!1,this._active=null,this.clickedOutside=this.clickedOutside.bind(this)}set items(e){if(!e.length){this._items=this.itemObjects=[],this.itemObjects=[];return}this._items=e.filter(t=>{if(typeof t=="string"||typeof t=="object"&&t&&t[this.nameField]&&t[this.idField])return t}),this.itemObjects=this._items.map(t=>typeof t=="string"?new S(t):new S({id:t[this.idField],name:t[this.nameField],description:t[this.descriptionField]}))}get optionsOpened(){return this._optionsOpened}set optionsOpened(e){this._optionsOpened=e,this.opened.emit(e)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled===!0&&this.hideOptions()}get active(){return this._active}set active(e){e?this._active=typeof e=="string"?e:new S({id:e[this.idField],name:e[this.nameField],description:e[this.descriptionField]}):this._active=null}sanitize(e){return this.sanitizer.bypassSecurityTrustHtml(e)}inputEvent(e,t=!1){if(e.keyCode===9)return;if(t&&(e.keyCode===37||e.keyCode===39||e.keyCode===38||e.keyCode===40||e.keyCode===13)){e.preventDefault();return}if(!t&&e.keyCode===8){let p=this.element.nativeElement.querySelector("div.ui-select-container > input");(!p.value||p.value.length<=0)&&(this.active&&this.remove(this.active),e.preventDefault())}if(!t&&e.keyCode===27){this.hideOptions(),e.preventDefault();return}if(!t&&e.keyCode===46&&(this.active&&this.remove(this.active),e.preventDefault()),!t&&e.keyCode===37&&this._items.length>0){this.behavior.first(),e.preventDefault();return}if(!t&&e.keyCode===39&&this._items.length>0){this.behavior.last(),e.preventDefault();return}if(!t&&e.keyCode===38){this.behavior.prev(),e.preventDefault();return}if(!t&&e.keyCode===40){this.behavior.next(),e.preventDefault();return}if(!t&&e.keyCode===13){(!this.active||this.active.id!==this.activeOption.id)&&(this.selectActiveMatch(),this.behavior.next()),e.preventDefault();return}let o=e.target||e.srcElement;o?(this.inputValue=o.value,this.doEvent("typed",this.inputValue||" ")):this.open()}ngOnInit(){this.subscription=this.typed.asObservable().pipe(L(200),R()).subscribe(e=>this.doSearch(e)),this.behavior=new N(this),this.doEvent("typed"," ")}ngOnDestroy(){this.subscription.unsubscribe()}remove(e){this._disabled!==!0&&(this.active=null,this.data.next(this.active),this.doEvent("removed",e),this.inputValue="",this.doEvent("typed"," "))}doEvent(e,t){this[e]&&t&&this[e].next(t),this.onTouched(),(e==="selected"||e==="removed")&&this.onChange(this.active)}clickedOutside(){this.inputMode=!1,this.optionsOpened=!1}writeValue(e){this.active=e,this.data.emit(this.active)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}matchClick(e){this._disabled!==!0&&(this.inputMode=!this.inputMode,this.inputMode===!0&&(this.focusToInput(),this.open()))}mainClick(e){if(this.inputMode===!0||this._disabled===!0)return;if(e.keyCode===46){e.preventDefault(),this.inputEvent(e);return}if(e.keyCode===8){e.preventDefault(),this.inputEvent(e,!0);return}if(e.keyCode===9||e.keyCode===13||e.keyCode===27||e.keyCode>=37&&e.keyCode<=40){e.preventDefault();return}this.inputMode=!0;let t=String.fromCharCode(96<=e.keyCode&&e.keyCode<=105?e.keyCode-48:e.keyCode).toLowerCase();this.focusToInput(t),this.open();let o=e.target||e.srcElement;o.value=t,this.inputEvent(e)}selectActive(e){this.activeOption=e}isActive(e){return this.activeOption.id===e.id}removeClick(e,t){t.stopPropagation(),this.remove(e)}focusToInput(e=""){setTimeout(()=>{let t=this.element.nativeElement.querySelector("div.ui-select-container > input");t&&(t.focus(),t.value=e)},0)}selectMatch(e,t=void 0){t&&(t.stopPropagation(),t.preventDefault()),!(this.options.length<=0)&&(this.active=e,this.data.next(this.active),this.doEvent("selected",e),this.hideOptions(),this.focusToInput(e.name),this.element.nativeElement.querySelector(".ui-select-container").focus())}doSearch(e){this.searchFunction(e).subscribe({next:t=>{this.items=t},error:t=>{console.error(t),this.items=[]},complete:()=>this.behavior.filter()})}open(){this.options=this.itemObjects,this.options.length>0&&this.behavior.first(),this.optionsOpened=!0}hideOptions(){this.inputMode=!1,this.optionsOpened=!1}selectActiveMatch(){this.selectMatch(this.activeOption)}};n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=M({type:n,selectors:[["app-select"]],inputs:{searchFunction:"searchFunction",customTemplateOptions:"customTemplateOptions",customTemplateSelect:"customTemplateSelect",itemIcon:"itemIcon",allowClear:"allowClear",placeholder:"placeholder",idField:"idField",nameField:"nameField",descriptionField:"descriptionField",disabled:"disabled",active:"active"},outputs:{data:"data",selected:"selected",removed:"removed",typed:"typed",opened:"opened"},features:[X([{provide:te,useExisting:I(()=>n),multi:!0}])],decls:9,vars:5,consts:[["DefaultSelect",""],["DefaultOptions",""],[1,"ui-select-container","dropdown","open",3,"keyup","offClick"],["autocomplete","false","tabindex","-1","type","text",1,"form-control","form-control-sm","ui-select-search",3,"disabled"],[1,"ui-select-match","form-control","form-control-sm"],["role","menu",1,"ui-select-choices","dropdown-menu"],["autocomplete","false","tabindex","-1","type","text",1,"form-control","form-control-sm","ui-select-search",3,"keydown","keyup","disabled"],["tabindex","-1",1,"ui-select-toggle","no-select",2,"outline","0",3,"click"],[1,"ui-select-match-text","w-100",3,"ui-select-allow-clear"],[1,"ui-select-placeholder"],["aria-label","close","type","button",1,"btn-close"],[1,"dropdown-toggle"],[1,"ui-select-match-text","w-100"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-label","close","type","button",1,"btn-close",3,"click"],["role","menuitem"],[1,"ui-select-choices-row",3,"click","mouseenter"],[1,"d-flex","align-items-center"],[1,"ui-icon","circle-primary-icon","me-2"],[3,"icon","fixedWidth"],[1,"d-flex","ms-auto","me-4","fs-xxxs","text-muted"],["href","javascript:void(0)",1,"dropdown-item","cursor-pointer",2,"padding","3px 5px"],[3,"innerHtml"],[1,"d-flex","ms-auto","fs-xxxs","text-muted",3,"innerHtml"]],template:function(t,o){if(t&1){let p=b();l(0,"div",2),h("keyup",function(Oe){return C(p),v(o.mainClick(Oe))}),_(1,"div"),f(2,Fe,1,1,"input",3)(3,je,6,2,"div",4),f(4,Le,3,0,"ul",5),a(),w(5,Re,7,4,"ng-template",null,0,j)(7,Ie,8,10,"ng-template",null,1,j)}t&2&&(d("offClick",o.clickedOutside),r(),y("ui-disabled",o.disabled),r(),g(o.inputMode?2:3),r(2),g(o.optionsOpened&&o.options&&o.options.length>0?4:-1))},dependencies:[xe,P,Y,Ce],styles:[`.ui-select-container[_ngcontent-%COMP%]{background-color:transparent;border-radius:4px}.ui-select-container.open[_ngcontent-%COMP%] > .dropdown-menu[_ngcontent-%COMP%]{display:block}.ui-select-container.open[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{outline:none}.ui-select-container[_ngcontent-%COMP%] .ui-icon[_ngcontent-%COMP%]{min-width:26px;min-height:26px;font-size:.85rem}.ui-select-container[_ngcontent-%COMP%] .ui-disabled[_ngcontent-%COMP%]{background-color:#d4dbe8;border-radius:4px;position:absolute;width:100%;height:100%;z-index:5;opacity:.6;top:0;left:0;cursor:not-allowed}.ui-select-container[_ngcontent-%COMP%] .ui-select-search[_ngcontent-%COMP%]{line-height:26px}.ui-select-container[_ngcontent-%COMP%] .ui-select-match[_ngcontent-%COMP%]{padding-left:.3rem}.ui-select-container[_ngcontent-%COMP%] .ui-select-match[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{text-align:start!important}.ui-select-container[_ngcontent-%COMP%] .ui-select-match[_ngcontent-%COMP%] .caret[_ngcontent-%COMP%]{position:absolute;top:45%;right:15px}.ui-select-container[_ngcontent-%COMP%] .ui-select-match[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{font-size:1.6em;line-height:.75}.ui-select-container[_ngcontent-%COMP%] .ui-select-match[_ngcontent-%COMP%] .ui-select-toggle[_ngcontent-%COMP%]{display:flex;align-items:center}.ui-select-container[_ngcontent-%COMP%] .ui-select-match[_ngcontent-%COMP%] .ui-select-toggle[_ngcontent-%COMP%] > .caret[_ngcontent-%COMP%]{position:absolute;height:10px;top:50%;right:10px;margin-top:-2px}.ui-select-container[_ngcontent-%COMP%] .ui-select-match[_ngcontent-%COMP%] .ui-select-placeholder[_ngcontent-%COMP%]{float:left;line-height:26px;color:#8c8c8c;width:100%}.ui-select-container[_ngcontent-%COMP%] .ui-select-match[_ngcontent-%COMP%] .dropdown-toggle[_ngcontent-%COMP%]{cursor:pointer}.ui-select-container[_ngcontent-%COMP%] .ui-select-match[_ngcontent-%COMP%] .dropdown-toggle[_ngcontent-%COMP%]:after{display:inline-block!important}.ui-select-container[_ngcontent-%COMP%] .ui-select-choices[_ngcontent-%COMP%]{width:100%;height:auto;max-height:200px;overflow-x:hidden;margin-top:0}.ui-select-container[_ngcontent-%COMP%] .ui-select-choices[_ngcontent-%COMP%] .ui-select-choices-row[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{display:block;padding:3px 5px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.ui-select-container[_ngcontent-%COMP%] .ui-select-choices[_ngcontent-%COMP%] .ui-select-choices-row[_ngcontent-%COMP%] .active[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{text-decoration:none;outline:0}.ui-select-container[_ngcontent-%COMP%] .ui-select-choices[_ngcontent-%COMP%] .ui-select-choices-row[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{pointer-events:none}
2
+
3
+
4
+
5
+
6
+
7
+ `]});let i=n;return i})(),N=class{constructor(n){this.actor=n}first(){this.actor.activeOption=this.actor.options[0],this.ensureHighlightVisible()}last(){this.actor.activeOption=this.actor.options[this.actor.options.length-1],this.ensureHighlightVisible()}prev(){let n=this.actor.options.indexOf(this.actor.activeOption);this.actor.activeOption=this.actor.options[n-1<0?this.actor.options.length-1:n-1],this.ensureHighlightVisible()}next(){let n=this.actor.options.indexOf(this.actor.activeOption);this.actor.activeOption=this.actor.options[n+1>this.actor.options.length-1?0:n+1],this.ensureHighlightVisible()}ensureHighlightVisible(n=void 0){let s=this.actor.element.nativeElement.querySelector(".ui-select-choices-content");if(!s)return;let e=s.querySelectorAll(".ui-select-choices-row");if(e.length<1)return;let t=this.getActiveIndex(n);if(t<0)return;let o=e[t];if(!o)return;let p=o.offsetTop+o.clientHeight-s.scrollTop,u=s.offsetHeight;p>u?s.scrollTop+=p-u:p<o.clientHeight&&(s.scrollTop-=o.clientHeight-p)}filter(){this.actor.options=[...this.actor.itemObjects],this.actor.options.length>0&&(this.actor.activeOption=this.actor.options[0],this.ensureHighlightVisible())}getActiveIndex(n=void 0){let s=this.actor.options.indexOf(this.actor.activeOption);return s<0&&n!==void 0&&(s=n.get(this.actor.activeOption.id)),s}};export{be as a,ye as b,st as c,bt as d};
@@ -0,0 +1 @@
1
+ import{$ as Ct,B as he,Ea as _e,Gb as ke,Hb as Y,Ja as be,Q as le,Qa as Ee,Qb as T,S as fe,T as Rt,W as $,Y as pe,Z as de,_ as me,aa as O,ba as ge,ca as ye,da as P,fb as Se,ib as D,jb as ve,kb as ft,wb as pt}from"./chunk-WL65GYD5.js";import{Cb as ct,G as zt,Hb as oe,Jb as ae,Kb as ce,L as Zt,Nb as Tt,Oc as ut,Qa as re,Ra as L,W as te,Ya as nt,Za as ot,Zb as ht,_c as lt,ba as H,c as Xt,ca as st,da as rt,fa as ee,ha as b,hb as ne,ib as at,nf as ue,qc as Ot,v as d,va as ie,ya as se}from"./chunk-RSNLYAN6.js";import{a as it,b as jt,c as Qt,e as Jt}from"./chunk-RTRJ3KFH.js";var we={NAME_SPACE:"/",EVENTS:{NOTIFICATION:"notification"}};var W={NAME_SPACE:"/",EVENTS:{ONLINE_STATUS:"onlineStatus",ONLINE_USERS:"onlineUsers",ONLINE_USER:"onlineUser"}};var Wt={};Jt(Wt,{Fetch:()=>X,Manager:()=>N,NodeWebSocket:()=>w,NodeXHR:()=>k,Socket:()=>C,WebSocket:()=>w,WebTransport:()=>R,XHR:()=>k,connect:()=>B,default:()=>B,io:()=>B,protocol:()=>$t});var _=Object.create(null);_.open="0";_.close="1";_.ping="2";_.pong="3";_.message="4";_.upgrade="5";_.noop="6";var G=Object.create(null);Object.keys(_).forEach(s=>{G[_[s]]=s});var K={type:"error",data:"parser error"};var Oe=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Re=typeof ArrayBuffer=="function",Ce=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s&&s.buffer instanceof ArrayBuffer,j=({type:s,data:t},i,e)=>Oe&&t instanceof Blob?i?e(t):Ae(t,e):Re&&(t instanceof ArrayBuffer||Ce(t))?i?e(t):Ae(new Blob([t]),e):e(_[s]+(t||"")),Ae=(s,t)=>{let i=new FileReader;return i.onload=function(){let e=i.result.split(",")[1];t("b"+(e||""))},i.readAsDataURL(s)};function Te(s){return s instanceof Uint8Array?s:s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}var xt;function xe(s,t){if(Oe&&s.data instanceof Blob)return s.data.arrayBuffer().then(Te).then(t);if(Re&&(s.data instanceof ArrayBuffer||Ce(s.data)))return t(Te(s.data));j(s,!1,i=>{xt||(xt=new TextEncoder),t(xt.encode(i))})}var Ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Q=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let s=0;s<Ne.length;s++)Q[Ne.charCodeAt(s)]=s;var Be=s=>{let t=s.length*.75,i=s.length,e,r=0,n,o,a,c;s[s.length-1]==="="&&(t--,s[s.length-2]==="="&&t--);let p=new ArrayBuffer(t),g=new Uint8Array(p);for(e=0;e<i;e+=4)n=Q[s.charCodeAt(e)],o=Q[s.charCodeAt(e+1)],a=Q[s.charCodeAt(e+2)],c=Q[s.charCodeAt(e+3)],g[r++]=n<<2|o>>4,g[r++]=(o&15)<<4|a>>2,g[r++]=(a&3)<<6|c&63;return p};var ni=typeof ArrayBuffer=="function",J=(s,t)=>{if(typeof s!="string")return{type:"message",data:Ie(s,t)};let i=s.charAt(0);return i==="b"?{type:"message",data:oi(s.substring(1),t)}:G[i]?s.length>1?{type:G[i],data:s.substring(1)}:{type:G[i]}:K},oi=(s,t)=>{if(ni){let i=Be(s);return Ie(i,t)}else return{base64:!0,data:s}},Ie=(s,t)=>{switch(t){case"blob":return s instanceof Blob?s:new Blob([s]);case"arraybuffer":default:return s instanceof ArrayBuffer?s:s.buffer}};var Le="",Pe=(s,t)=>{let i=s.length,e=new Array(i),r=0;s.forEach((n,o)=>{j(n,!1,a=>{e[o]=a,++r===i&&t(e.join(Le))})})},De=(s,t)=>{let i=s.split(Le),e=[];for(let r=0;r<i.length;r++){let n=J(i[r],t);if(e.push(n),n.type==="error")break}return e};function Ue(){return new TransformStream({transform(s,t){xe(s,i=>{let e=i.length,r;if(e<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,e);else if(e<65536){r=new Uint8Array(3);let n=new DataView(r.buffer);n.setUint8(0,126),n.setUint16(1,e)}else{r=new Uint8Array(9);let n=new DataView(r.buffer);n.setUint8(0,127),n.setBigUint64(1,BigInt(e))}s.data&&typeof s.data!="string"&&(r[0]|=128),t.enqueue(r),t.enqueue(i)})}})}var Nt;function dt(s){return s.reduce((t,i)=>t+i.length,0)}function mt(s,t){if(s[0].length===t)return s.shift();let i=new Uint8Array(t),e=0;for(let r=0;r<t;r++)i[r]=s[0][e++],e===s[0].length&&(s.shift(),e=0);return s.length&&e<s[0].length&&(s[0]=s[0].slice(e)),i}function Fe(s,t){Nt||(Nt=new TextDecoder);let i=[],e=0,r=-1,n=!1;return new TransformStream({transform(o,a){for(i.push(o);;){if(e===0){if(dt(i)<1)break;let c=mt(i,1);n=(c[0]&128)===128,r=c[0]&127,r<126?e=3:r===126?e=1:e=2}else if(e===1){if(dt(i)<2)break;let c=mt(i,2);r=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),e=3}else if(e===2){if(dt(i)<8)break;let c=mt(i,8),p=new DataView(c.buffer,c.byteOffset,c.length),g=p.getUint32(0);if(g>Math.pow(2,21)-1){a.enqueue(K);break}r=g*Math.pow(2,32)+p.getUint32(4),e=3}else{if(dt(i)<r)break;let c=mt(i,r);a.enqueue(J(n?c:Nt.decode(c),t)),e=0}if(r===0||r>s){a.enqueue(K);break}}}})}var Bt=4;function u(s){if(s)return ai(s)}function ai(s){for(var t in u.prototype)s[t]=u.prototype[t];return s}u.prototype.on=u.prototype.addEventListener=function(s,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+s]=this._callbacks["$"+s]||[]).push(t),this};u.prototype.once=function(s,t){function i(){this.off(s,i),t.apply(this,arguments)}return i.fn=t,this.on(s,i),this};u.prototype.off=u.prototype.removeListener=u.prototype.removeAllListeners=u.prototype.removeEventListener=function(s,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+s];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+s],this;for(var e,r=0;r<i.length;r++)if(e=i[r],e===t||e.fn===t){i.splice(r,1);break}return i.length===0&&delete this._callbacks["$"+s],this};u.prototype.emit=function(s){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),i=this._callbacks["$"+s],e=1;e<arguments.length;e++)t[e-1]=arguments[e];if(i){i=i.slice(0);for(var e=0,r=i.length;e<r;++e)i[e].apply(this,t)}return this};u.prototype.emitReserved=u.prototype.emit;u.prototype.listeners=function(s){return this._callbacks=this._callbacks||{},this._callbacks["$"+s]||[]};u.prototype.hasListeners=function(s){return!!this.listeners(s).length};var E=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,i)=>i(t,0),l=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Me="arraybuffer";function gt(s,...t){return t.reduce((i,e)=>(s.hasOwnProperty(e)&&(i[e]=s[e]),i),{})}var ci=l.setTimeout,hi=l.clearTimeout;function S(s,t){t.useNativeTimers?(s.setTimeoutFn=ci.bind(l),s.clearTimeoutFn=hi.bind(l)):(s.setTimeoutFn=l.setTimeout.bind(l),s.clearTimeoutFn=l.clearTimeout.bind(l))}var ui=1.33;function Ve(s){return typeof s=="string"?li(s):Math.ceil((s.byteLength||s.size)*ui)}function li(s){let t=0,i=0;for(let e=0,r=s.length;e<r;e++)t=s.charCodeAt(e),t<128?i+=1:t<2048?i+=2:t<55296||t>=57344?i+=3:(e++,i+=4);return i}function yt(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function qe(s){let t="";for(let i in s)s.hasOwnProperty(i)&&(t.length&&(t+="&"),t+=encodeURIComponent(i)+"="+encodeURIComponent(s[i]));return t}function He(s){let t={},i=s.split("&");for(let e=0,r=i.length;e<r;e++){let n=i[e].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return t}var _t=class extends Error{constructor(t,i,e){super(t),this.description=i,this.context=e,this.type="TransportError"}},v=class extends u{constructor(t){super(),this.writable=!1,S(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,i,e){return super.emitReserved("error",new _t(t,i,e)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){let i=J(t,this.socket.binaryType);this.onPacket(i)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,i={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){let t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){let i=qe(t);return i.length?"?"+i:""}};var U=class extends v{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";let i=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",function(){--e||i()})),this.writable||(e++,this.once("drain",function(){--e||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){let i=e=>{if(this.readyState==="opening"&&e.type==="open"&&this.onOpen(),e.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)};De(t,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Pe(t,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=yt()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(t,i)}};var $e=!1;try{$e=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var Ye=$e;function fi(){}var It=class extends U{constructor(t){if(super(t),typeof location<"u"){let i=location.protocol==="https:",e=location.port;e||(e=i?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||e!==t.port}}doWrite(t,i){let e=this.request({method:"POST",data:t});e.on("success",i),e.on("error",(r,n)=>{this.onError("xhr post error",r,n)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(i,e)=>{this.onError("xhr poll error",i,e)}),this.pollXhr=t}},bt=(()=>{class s extends u{constructor(i,e,r){super(),this.createRequest=i,S(this,r),this._opts=r,this._method=r.method||"GET",this._uri=e,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var i;let e=gt(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(e);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let n in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(n)&&r.setRequestHeader(n,this._opts.extraHeaders[n])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var n;r.readyState===3&&((n=this._opts.cookieJar)===null||n===void 0||n.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(n){this.setTimeoutFn(()=>{this._onError(n)},0);return}typeof document<"u"&&(this._index=s.requestsCount++,s.requests[this._index]=this)}_onError(i){this.emitReserved("error",i,this._xhr),this._cleanup(!0)}_cleanup(i){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=fi,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete s.requests[this._index],this._xhr=null}}_onLoad(){let i=this._xhr.responseText;i!==null&&(this.emitReserved("data",i),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}return s.requestsCount=0,s.requests={},s})();if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",We);else if(typeof addEventListener=="function"){let s="onpagehide"in l?"pagehide":"unload";addEventListener(s,We,!1)}}function We(){for(let s in bt.requests)bt.requests.hasOwnProperty(s)&&bt.requests[s].abort()}var pi=(function(){let s=Ge({xdomain:!1});return s&&s.responseType!==null})(),k=class extends It{constructor(t){super(t);let i=t&&t.forceBase64;this.supportsBinary=pi&&!i}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new bt(Ge,this.uri(),t)}};function Ge(s){let t=s.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||Ye))return new XMLHttpRequest}catch{}if(!t)try{return new l[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var Ke=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",Pt=class extends v{get name(){return"websocket"}doOpen(){let t=this.uri(),i=this.opts.protocols,e=Ke?{}:gt(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(e.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,i,e)}catch(r){return this.emitReserved("error",r)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let i=0;i<t.length;i++){let e=t[i],r=i===t.length-1;j(e,this.supportsBinary,n=>{try{this.doWrite(e,n)}catch{}r&&E(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=yt()),this.supportsBinary||(i.b64=1),this.createUri(t,i)}},Lt=l.WebSocket||l.MozWebSocket,w=class extends Pt{createSocket(t,i,e){return Ke?new Lt(t,i,e):i?new Lt(t,i):new Lt(t)}doWrite(t,i){this.ws.send(i)}};var R=class extends v{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let i=Fe(Number.MAX_SAFE_INTEGER,this.socket.binaryType),e=t.readable.pipeThrough(i).getReader(),r=Ue();r.readable.pipeTo(t.writable),this._writer=r.writable.getWriter();let n=()=>{e.read().then(({done:a,value:c})=>{a||(this.onPacket(c),n())}).catch(a=>{})};n();let o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let i=0;i<t.length;i++){let e=t[i],r=i===t.length-1;this._writer.write(e).then(()=>{r&&E(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var Dt={websocket:w,webtransport:R,polling:k};var di=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,mi=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function F(s){if(s.length>8e3)throw"URI too long";let t=s,i=s.indexOf("["),e=s.indexOf("]");i!=-1&&e!=-1&&(s=s.substring(0,i)+s.substring(i,e).replace(/:/g,";")+s.substring(e,s.length));let r=di.exec(s||""),n={},o=14;for(;o--;)n[mi[o]]=r[o]||"";return i!=-1&&e!=-1&&(n.source=t,n.host=n.host.substring(1,n.host.length-1).replace(/;/g,":"),n.authority=n.authority.replace("[","").replace("]","").replace(/;/g,":"),n.ipv6uri=!0),n.pathNames=gi(n,n.path),n.queryKey=yi(n,n.query),n}function gi(s,t){let i=/\/{2,9}/g,e=t.replace(i,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&e.splice(0,1),t.slice(-1)=="/"&&e.splice(e.length-1,1),e}function yi(s,t){let i={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,r,n){r&&(i[r]=n)}),i}var Ut=typeof addEventListener=="function"&&typeof removeEventListener=="function",Et=[];Ut&&addEventListener("offline",()=>{Et.forEach(s=>s())},!1);var St=(()=>{class s extends u{constructor(i,e){if(super(),this.binaryType=Me,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(e=i,i=null),i){let r=F(i);e.hostname=r.host,e.secure=r.protocol==="https"||r.protocol==="wss",e.port=r.port,r.query&&(e.query=r.query)}else e.host&&(e.hostname=F(e.host).host);S(this,e),this.secure=e.secure!=null?e.secure:typeof location<"u"&&location.protocol==="https:",e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=e.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},e.transports.forEach(r=>{let n=r.prototype.name;this.transports.push(n),this._transportsByName[n]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=He(this.opts.query)),Ut&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Et.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){let e=Object.assign({},this.opts.query);e.EIO=Bt,e.transport=i,this.id&&(e.sid=this.id);let r=Object.assign({},this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let i=this.opts.rememberUpgrade&&s.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let e=this.createTransport(i);e.open(),this.setTransport(e)}setTransport(i){this.transport&&this.transport.removeAllListeners(),this.transport=i,i.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",e=>this._onClose("transport close",e))}onOpen(){this.readyState="open",s.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",i),this.emitReserved("heartbeat"),i.type){case"open":this.onHandshake(JSON.parse(i.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let e=new Error("server error");e.code=i.data,this._onError(e);break;case"message":this.emitReserved("data",i.data),this.emitReserved("message",i.data);break}}onHandshake(i){this.emitReserved("handshake",i),this.id=i.sid,this.transport.query.sid=i.sid,this._pingInterval=i.pingInterval,this._pingTimeout=i.pingTimeout,this._maxPayload=i.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let i=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+i,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},i),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let i=this._getWritablePackets();this.transport.send(i),this._prevBufferLen=i.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let r=0;r<this.writeBuffer.length;r++){let n=this.writeBuffer[r].data;if(n&&(e+=Ve(n)),r>0&&e>this._maxPayload)return this.writeBuffer.slice(0,r);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,E(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,e,r){return this._sendPacket("message",i,e,r),this}send(i,e,r){return this._sendPacket("message",i,e,r),this}_sendPacket(i,e,r,n){if(typeof e=="function"&&(n=e,e=void 0),typeof r=="function"&&(n=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;let o={type:i,data:e,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),n&&this.once("flush",n),this.flush()}close(){let i=()=>{this._onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),i()},r=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():i()}):this.upgrading?r():i()),this}_onError(i){if(s.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",i),this._onClose("transport error",i)}_onClose(i,e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Ut&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let r=Et.indexOf(this._offlineEventListener);r!==-1&&Et.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,e),this.writeBuffer=[],this._prevBufferLen=0}}}return s.protocol=Bt,s})(),vt=class extends St{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let i=this.createTransport(t),e=!1;St.priorWebsocketSuccess=!1;let r=()=>{e||(i.send([{type:"ping",data:"probe"}]),i.once("packet",A=>{if(!e)if(A.type==="pong"&&A.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;St.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{e||this.readyState!=="closed"&&(g(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{let q=new Error("probe error");q.transport=i.name,this.emitReserved("upgradeError",q)}}))};function n(){e||(e=!0,g(),i.close(),i=null)}let o=A=>{let q=new Error("probe error: "+A);q.transport=i.name,n(),this.emitReserved("upgradeError",q)};function a(){o("transport closed")}function c(){o("socket closed")}function p(A){i&&A.name!==i.name&&n()}let g=()=>{i.removeListener("open",r),i.removeListener("error",o),i.removeListener("close",a),this.off("close",c),this.off("upgrading",p)};i.once("open",r),i.once("error",o),i.once("close",a),this.once("close",c),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{e||i.open()},200):i.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let i=[];for(let e=0;e<t.length;e++)~this.transports.indexOf(t[e])&&i.push(t[e]);return i}},M=class extends vt{constructor(t,i={}){let e=typeof t=="object"?t:i;(!e.transports||e.transports&&typeof e.transports[0]=="string")&&(e.transports=(e.transports||["polling","websocket","webtransport"]).map(r=>Dt[r]).filter(r=>!!r)),super(t,e)}};var X=class extends U{doPoll(){this._fetch().then(t=>{if(!t.ok)return this.onError("fetch read error",t.status,t);t.text().then(i=>this.onData(i))}).catch(t=>{this.onError("fetch read error",t)})}doWrite(t,i){this._fetch(t).then(e=>{if(!e.ok)return this.onError("fetch write error",e.status,e);i()}).catch(e=>{this.onError("fetch write error",e)})}_fetch(t){var i;let e=t!==void 0,r=new Headers(this.opts.extraHeaders);return e&&r.set("content-type","text/plain;charset=UTF-8"),(i=this.socket._cookieJar)===null||i===void 0||i.appendCookies(r),fetch(this.uri(),{method:e?"POST":"GET",body:e?t:null,headers:r,credentials:this.opts.withCredentials?"include":"omit"}).then(n=>{var o;return(o=this.socket._cookieJar)===null||o===void 0||o.parseCookies(n.headers.getSetCookie()),n})}};var Ps=M.protocol;function je(s,t="",i){let e=s;i=i||typeof location<"u"&&location,s==null&&(s=i.protocol+"//"+i.host),typeof s=="string"&&(s.charAt(0)==="/"&&(s.charAt(1)==="/"?s=i.protocol+s:s=i.host+s),/^(https?|wss?):\/\//.test(s)||(typeof i<"u"?s=i.protocol+"//"+s:s="https://"+s),e=F(s)),e.port||(/^(http|ws)$/.test(e.protocol)?e.port="80":/^(http|ws)s$/.test(e.protocol)&&(e.port="443")),e.path=e.path||"/";let n=e.host.indexOf(":")!==-1?"["+e.host+"]":e.host;return e.id=e.protocol+"://"+n+":"+e.port+t,e.href=e.protocol+"://"+n+(i&&i.port===e.port?"":":"+e.port),e}var Yt={};Jt(Yt,{Decoder:()=>qt,Encoder:()=>Vt,PacketType:()=>h,protocol:()=>$t});var _i=typeof ArrayBuffer=="function",bi=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s.buffer instanceof ArrayBuffer,Qe=Object.prototype.toString,Ei=typeof Blob=="function"||typeof Blob<"u"&&Qe.call(Blob)==="[object BlobConstructor]",Si=typeof File=="function"||typeof File<"u"&&Qe.call(File)==="[object FileConstructor]";function Z(s){return _i&&(s instanceof ArrayBuffer||bi(s))||Ei&&s instanceof Blob||Si&&s instanceof File}function z(s,t){if(!s||typeof s!="object")return!1;if(Array.isArray(s)){for(let i=0,e=s.length;i<e;i++)if(z(s[i]))return!0;return!1}if(Z(s))return!0;if(s.toJSON&&typeof s.toJSON=="function"&&arguments.length===1)return z(s.toJSON(),!0);for(let i in s)if(Object.prototype.hasOwnProperty.call(s,i)&&z(s[i]))return!0;return!1}function Je(s){let t=[],i=s.data,e=s;return e.data=Ft(i,t),e.attachments=t.length,{packet:e,buffers:t}}function Ft(s,t){if(!s)return s;if(Z(s)){let i={_placeholder:!0,num:t.length};return t.push(s),i}else if(Array.isArray(s)){let i=new Array(s.length);for(let e=0;e<s.length;e++)i[e]=Ft(s[e],t);return i}else if(typeof s=="object"&&!(s instanceof Date)){let i={};for(let e in s)Object.prototype.hasOwnProperty.call(s,e)&&(i[e]=Ft(s[e],t));return i}return s}function Xe(s,t){return s.data=Mt(s.data,t),delete s.attachments,s}function Mt(s,t){if(!s)return s;if(s&&s._placeholder===!0){if(typeof s.num=="number"&&s.num>=0&&s.num<t.length)return t[s.num];throw new Error("illegal attachments")}else if(Array.isArray(s))for(let i=0;i<s.length;i++)s[i]=Mt(s[i],t);else if(typeof s=="object")for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(s[i]=Mt(s[i],t));return s}var vi=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],$t=5,h=(function(s){return s[s.CONNECT=0]="CONNECT",s[s.DISCONNECT=1]="DISCONNECT",s[s.EVENT=2]="EVENT",s[s.ACK=3]="ACK",s[s.CONNECT_ERROR=4]="CONNECT_ERROR",s[s.BINARY_EVENT=5]="BINARY_EVENT",s[s.BINARY_ACK=6]="BINARY_ACK",s})(h||{}),Vt=class{constructor(t){this.replacer=t}encode(t){return(t.type===h.EVENT||t.type===h.ACK)&&z(t)?this.encodeAsBinary({type:t.type===h.EVENT?h.BINARY_EVENT:h.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let i=""+t.type;return(t.type===h.BINARY_EVENT||t.type===h.BINARY_ACK)&&(i+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(i+=t.nsp+","),t.id!=null&&(i+=t.id),t.data!=null&&(i+=JSON.stringify(t.data,this.replacer)),i}encodeAsBinary(t){let i=Je(t),e=this.encodeAsString(i.packet),r=i.buffers;return r.unshift(e),r}};function ze(s){return Object.prototype.toString.call(s)==="[object Object]"}var qt=class s extends u{constructor(t){super(),this.reviver=t}add(t){let i;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(t);let e=i.type===h.BINARY_EVENT;e||i.type===h.BINARY_ACK?(i.type=e?h.EVENT:h.ACK,this.reconstructor=new Ht(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(Z(t)||t.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(t),i&&(this.reconstructor=null,super.emitReserved("decoded",i));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let i=0,e={type:Number(t.charAt(0))};if(h[e.type]===void 0)throw new Error("unknown packet type "+e.type);if(e.type===h.BINARY_EVENT||e.type===h.BINARY_ACK){let n=i+1;for(;t.charAt(++i)!=="-"&&i!=t.length;);let o=t.substring(n,i);if(o!=Number(o)||t.charAt(i)!=="-")throw new Error("Illegal attachments");e.attachments=Number(o)}if(t.charAt(i+1)==="/"){let n=i+1;for(;++i&&!(t.charAt(i)===","||i===t.length););e.nsp=t.substring(n,i)}else e.nsp="/";let r=t.charAt(i+1);if(r!==""&&Number(r)==r){let n=i+1;for(;++i;){let o=t.charAt(i);if(o==null||Number(o)!=o){--i;break}if(i===t.length)break}e.id=Number(t.substring(n,i+1))}if(t.charAt(++i)){let n=this.tryParse(t.substr(i));if(s.isPayloadValid(e.type,n))e.data=n;else throw new Error("invalid payload")}return e}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,i){switch(t){case h.CONNECT:return ze(i);case h.DISCONNECT:return i===void 0;case h.CONNECT_ERROR:return typeof i=="string"||ze(i);case h.EVENT:case h.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&vi.indexOf(i[0])===-1);case h.ACK:case h.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},Ht=class{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){let i=Xe(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function m(s,t,i){return s.on(t,i),function(){s.off(t,i)}}var ki=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),C=class extends u{constructor(t,i,e){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=i,e&&e.auth&&(this.auth=e.auth),this._opts=Object.assign({},e),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[m(t,"open",this.onopen.bind(this)),m(t,"packet",this.onpacket.bind(this)),m(t,"error",this.onerror.bind(this)),m(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...i){var e,r,n;if(ki.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(i.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;let o={type:h.EVENT,data:i};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){let g=this.ids++,A=i.pop();this._registerAckCallback(g,A),o.id=g}let a=(r=(e=this.io.engine)===null||e===void 0?void 0:e.transport)===null||r===void 0?void 0:r.writable,c=this.connected&&!(!((n=this.io.engine)===null||n===void 0)&&n._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(t,i){var e;let r=(e=this.flags.timeout)!==null&&e!==void 0?e:this._opts.ackTimeout;if(r===void 0){this.acks[t]=i;return}let n=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);i.call(this,new Error("operation has timed out"))},r),o=(...a)=>{this.io.clearTimeoutFn(n),i.apply(this,a)};o.withError=!0,this.acks[t]=o}emitWithAck(t,...i){return new Promise((e,r)=>{let n=(o,a)=>o?r(o):e(a);n.withError=!0,i.push(n),this.emit(t,...i)})}_addToQueue(t){let i;typeof t[t.length-1]=="function"&&(i=t.pop());let e={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((r,...n)=>e!==this._queue[0]?void 0:(r!==null?e.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(r)):(this._queue.shift(),i&&i(null,...n)),e.pending=!1,this._drainQueue())),this._queue.push(e),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;let i=this._queue[0];i.pending&&!t||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:h.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(e=>String(e.id)===t)){let e=this.acks[t];delete this.acks[t],e.withError&&e.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case h.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case h.EVENT:case h.BINARY_EVENT:this.onevent(t);break;case h.ACK:case h.BINARY_ACK:this.onack(t);break;case h.DISCONNECT:this.ondisconnect();break;case h.CONNECT_ERROR:this.destroy();let e=new Error(t.data.message);e.data=t.data.data,this.emitReserved("connect_error",e);break}}onevent(t){let i=t.data||[];t.id!=null&&i.push(this.ack(t.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){let i=this._anyListeners.slice();for(let e of i)e.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){let i=this,e=!1;return function(...r){e||(e=!0,i.packet({type:h.ACK,id:t,data:r}))}}onack(t){let i=this.acks[t.id];typeof i=="function"&&(delete this.acks[t.id],i.withError&&t.data.unshift(null),i.apply(this,t.data))}onconnect(t,i){this.id=t,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:h.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let i=this._anyListeners;for(let e=0;e<i.length;e++)if(t===i[e])return i.splice(e,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let i=this._anyOutgoingListeners;for(let e=0;e<i.length;e++)if(t===i[e])return i.splice(e,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let i=this._anyOutgoingListeners.slice();for(let e of i)e.apply(this,t.data)}}};function x(s){s=s||{},this.ms=s.min||100,this.max=s.max||1e4,this.factor=s.factor||2,this.jitter=s.jitter>0&&s.jitter<=1?s.jitter:0,this.attempts=0}x.prototype.duration=function(){var s=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),i=Math.floor(t*this.jitter*s);s=(Math.floor(t*10)&1)==0?s-i:s+i}return Math.min(s,this.max)|0};x.prototype.reset=function(){this.attempts=0};x.prototype.setMin=function(s){this.ms=s};x.prototype.setMax=function(s){this.max=s};x.prototype.setJitter=function(s){this.jitter=s};var N=class extends u{constructor(t,i){var e;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(i=t,t=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,S(this,i),this.reconnection(i.reconnection!==!1),this.reconnectionAttempts(i.reconnectionAttempts||1/0),this.reconnectionDelay(i.reconnectionDelay||1e3),this.reconnectionDelayMax(i.reconnectionDelayMax||5e3),this.randomizationFactor((e=i.randomizationFactor)!==null&&e!==void 0?e:.5),this.backoff=new x({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=t;let r=i.parser||Yt;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var i;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(i=this.backoff)===null||i===void 0||i.setMin(t),this)}randomizationFactor(t){var i;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(i=this.backoff)===null||i===void 0||i.setJitter(t),this)}reconnectionDelayMax(t){var i;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(i=this.backoff)===null||i===void 0||i.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new M(this.uri,this.opts);let i=this.engine,e=this;this._readyState="opening",this.skipReconnect=!1;let r=m(i,"open",function(){e.onopen(),t&&t()}),n=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},o=m(i,"error",n);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{r(),n(new Error("timeout")),i.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(r),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(m(t,"ping",this.onping.bind(this)),m(t,"data",this.ondata.bind(this)),m(t,"error",this.onerror.bind(this)),m(t,"close",this.onclose.bind(this)),m(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(i){this.onclose("parse error",i)}}ondecoded(t){E(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,i){let e=this.nsps[t];return e?this._autoConnect&&!e.active&&e.connect():(e=new C(this,t,i),this.nsps[t]=e),e}_destroy(t){let i=Object.keys(this.nsps);for(let e of i)if(this.nsps[e].active)return;this._close()}_packet(t){let i=this.encoder.encode(t);for(let e=0;e<i.length;e++)this.engine.write(i[e],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,i){var e;this.cleanup(),(e=this.engine)===null||e===void 0||e.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let i=this.backoff.duration();this._reconnecting=!0;let e=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(r=>{r?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",r)):t.onreconnect()}))},i);this.opts.autoUnref&&e.unref(),this.subs.push(()=>{this.clearTimeoutFn(e)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}};var tt={};function B(s,t){typeof s=="object"&&(t=s,s=void 0),t=t||{};let i=je(s,t.path||"/socket.io"),e=i.source,r=i.id,n=i.path,o=tt[r]&&n in tt[r].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||o,c;return a?c=new N(e,t):(tt[r]||(tt[r]=new N(e,t)),c=tt[r]),i.query&&!t.query&&(t.query=i.queryKey),c.socket(i.path,t)}Object.assign(B,{Manager:N,Socket:C,io:B,connect:B});var V=class s{config;appRef;subscribersCounter={};eventObservables$={};namespaces={};ioSocket;emptyConfig={url:"",options:{}};constructor(t,i){this.config=t,this.appRef=i,t===void 0&&(t=this.emptyConfig);let e=t.url,r=t.options,n=B?B:Wt;this.ioSocket=n(e,r)}get auth(){return this.ioSocket.auth}set auth(t){this.ioSocket.auth=t}get io(){return this.ioSocket.io}get open(){return this.connect}get close(){return this.disconnect}of(t){if(!t||t==="/")return this;let i=this.namespaces[t];if(i)return i;let a=this.config,{url:e}=a,r=Qt(a,["url"]),n=it({url:!e.endsWith("/")&&!t.startsWith("/")?`${e}/${t}`:`${e}${t}`},r),o=new s(n,this.appRef);return this.namespaces[t]=o,o}on(t,i){return this.ioSocket.on(t,i),this}once(t,i){return this.ioSocket.once(t,i),this}connect(){return this.ioSocket.connect(),this}disconnect(){return this.ioSocket.disconnect(),this}emit(t,...i){return this.ioSocket.emit(t,...i),this}send(...t){return this.ioSocket.send.apply(this.ioSocket,arguments),this}emitWithAck(t,...i){return this.ioSocket.emitWithAck(t,...i)}removeListener(t,i){return this.ioSocket.removeListener(t,i),this}removeAllListeners(t){return this.ioSocket.removeAllListeners(t),this}fromEvent(t){return this.subscribersCounter[t]||(this.subscribersCounter[t]=0),this.subscribersCounter[t]++,this.eventObservables$[t]||(this.eventObservables$[t]=new Xt(i=>{let e=r=>{i.next(r),this.appRef.tick()};return this.ioSocket.on(t,e),()=>{this.subscribersCounter[t]--,this.subscribersCounter[t]===0&&(this.ioSocket.removeListener(t,e),delete this.eventObservables$[t])}}).pipe(te())),this.eventObservables$[t]}fromOneTimeEvent(t){return new Promise(i=>this.once(t,i))}listeners(t){return this.ioSocket.listeners(t)}hasListeners(t){return this.ioSocket.hasListeners(t)}listenersAny(){return this.ioSocket.listenersAny()}listenersAnyOutgoing(){return this.ioSocket.listenersAnyOutgoing()}off(t,i){return this.ioSocket.off(t,i),this}offAny(t){return this.ioSocket.offAny(t),this}offAnyOutgoing(t){return this.ioSocket.offAnyOutgoing(t),this}onAny(t){return this.ioSocket.onAny(t),this}onAnyOutgoing(t){return this.ioSocket.onAnyOutgoing(t),this}prependAny(t){return this.ioSocket.prependAny(t),this}prependAnyOutgoing(t){return this.ioSocket.prependAnyOutgoing(t),this}timeout(t){return this.ioSocket.timeout(t),this}get volatile(){let t=this.ioSocket.volatile;return this}get active(){return this.ioSocket.active}get connected(){return this.ioSocket.connected}get disconnected(){return this.ioSocket.disconnected}get recovered(){return this.ioSocket.recovered}get id(){return this.ioSocket.id}compress(t){return this.ioSocket.compress(t),this}};function wi(s,t){return new V(s,t)}var Ze=new ee("__SOCKET_IO_CONFIG__"),Ar=(()=>{class s{static forRoot(i){return{ngModule:s,providers:[{provide:Ze,useValue:i},{provide:V,useFactory:wi,deps:[Ze,ne]}]}}static \u0275fac=function(e){return new(e||s)};static \u0275mod=nt({type:s});static \u0275inj=rt({})}return s})();var Kt={BASE:`${fe}/notifications`,UNREAD:"unread"},kt=Kt.BASE;var f=(function(s){return s.ADD="add",s.UPDATE="update",s.DELETE="delete",s.DELETE_PERMANENTLY="deletePermanently",s})(f||{});var y=(function(s){return s.COMMENTS="comments",s.SPACES="spaces",s.SPACE_ROOTS="spaces_roots",s.SHARES="shares",s.LINKS="links",s.SYNC="sync",s})(y||{}),Br={COMMENTS:"commented",SPACES:{[f.ADD]:"You now have access to the space",[f.DELETE]:"You no longer have access to the space",[f.DELETE_PERMANENTLY]:"This space has been permanently deleted"},SPACE_ROOTS:{[f.ADD]:"anchored",[f.DELETE]:"unanchored"},SHARES:{[f.ADD]:"shared with you",[f.DELETE]:"no longer share with you"},SHARES_WITHOUT_OWNER:{[f.ADD]:"You now have access to the share",[f.DELETE]:"You no longer have access to the share",[f.DELETE_PERMANENTLY]:"You are no longer a member of the parent share, your child share has been deleted"},LINKS:{[f.ADD]:"shared with you",[f.UPDATE]:"You now have access to the space"},SYNC:{[f.DELETE]:"You are no longer synchronizing"}};var ti=ue;var ei={[y.COMMENTS]:ti,[y.SPACES]:Y.SPACES,[y.SPACE_ROOTS]:Y.SPACES,[y.SHARES]:Y.SHARES,[y.LINKS]:Y.LINKS,[y.SYNC]:Se.SYNC};var wt=class{constructor(t){this.soonRead=!1,Object.assign(this,t),this.fromUser?this.fromUser.avatarUrl=D(this.fromUser.login):this.fromUser={id:-1,login:null,email:null,fullName:"Information",avatarUrl:null},this.appIcon=ei[this.content.app],this.setMainElement()}setMainElement(){if(this.content.app===y.COMMENTS||this.content.app===y.SHARES||this.content.app===y.SYNC)return;let t=this.content.url.split("/");t.length>1&&(this.mainElement=t[t.length-1])}};var ii=(()=>{let t=class t{constructor(){this.http=b(ut),this.store=b(ft),this.layout=b(pt)}getNotifications(e=!1){return this.http.get(`${kt}${e?`/${Kt.UNREAD}`:""}`).pipe(d(r=>r.map(n=>new wt(n))))}wasReadNotification(e){return this.http.patch(`${kt}/${e}`,null)}deleteNotification(e){return this.http.delete(`${kt}${e?`/${e}`:""}`)}checkUnreadNotifications(e=!1){this.getNotifications().subscribe(r=>{let n;if(e&&r.length){let o=r[0];n=this.layout.sendNotification("warning",o.fromUser.fullName,this.layout.translateString(`${this.layout.translateString(o.content.event)}: <b>${o.content.element}</b>`),null,{enableHtml:!0})}else{let o=r.filter(a=>!a.wasRead).length;o&&(n=this.layout.sendNotification("warning","Notifications",this.layout.translateString(o===1?"one_notification":"nb_notifications",{nb:o})))}n&&n.onTap.pipe(Zt(1)).subscribe(()=>this.layout.showRSideBarTab(be.NOTIFICATIONS,!0)),this.store.notifications.set(r)})}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=st({token:t,factory:t.\u0275fac,providedIn:"root"});let s=t;return s})();var At=class{constructor(t){this.parentGroup=t.parentGroup,this.members=t.members.map(i=>new T(i))}};var I=class{constructor(t){this.newly=0,this.currentAccessHover=!1,this.setManagers(t),Object.assign(this,t),this.avatarUrl=D(t.login),this.userIsActiveText=this.isActive?"active":"suspended",this.hTimeAgo=(0,he.default)(this.currentAccess).fromNow(!0),this.newly=Ee(this.currentAccess)}setManagers(t){t?.managers&&(t.managers=t.managers.map(i=>new T(i)))}};var et=class{constructor(t){this.setOnlineStatus(_e("status",t)),this.avatarUrl=D(t.login),Object.assign(this,t)}setOnlineStatus(t){this.onlineStatus=t,this.onlineTextStatus=le[t]}};var Bn=(()=>{let t=class t{constructor(){this.http=b(ut),this.layout=b(pt),this.store=b(ft),this.webSocket=b(V),this.notifications=b(ii),this.webSocket.fromEvent("connect").subscribe(()=>this.notifications.checkUnreadNotifications()),this.webSocket.fromEvent("disconnect").subscribe(()=>this.store.onlineUsers.set([])),this.webSocket.fromEvent(we.EVENTS.NOTIFICATION).subscribe(()=>this.notifications.checkUnreadNotifications(!0)),this.webSocket.fromEvent(W.EVENTS.ONLINE_USER).pipe(d(e=>new et(e))).subscribe(e=>this.newOnlineUser(e)),this.webSocket.fromEvent(W.EVENTS.ONLINE_USERS).pipe(d(e=>e.map(r=>new et(r)))).subscribe(e=>this.setOnlineUsers(e)),this.webSocket.fromEvent(W.EVENTS.ONLINE_STATUS).subscribe(e=>this.receiveOnlineStatus(e))}get user(){return this.store.user.getValue()}initUser(e,r=!1){this.refreshAvatar(),this.layout.setLanguage(e.language),this.store.userImpersonate.set(r||e.impersonated),this.store.user.next(e),this.checkQuota(this.store.user.getValue()),r&&this.disconnectWebSocket(),this.connectWebSocket()}connectWebSocket(){this.webSocket.ioSocket.io.opts.query={onlineStatus:this.user.onlineStatus},this.webSocket.connect()}disconnectWebSocket(){this.webSocket.disconnect()}setOnlineUsers(e){this.store.onlineUsers.set(e)}newOnlineUser(e){this.store.onlineUsers().find(r=>r.id===e.id)?this.receiveOnlineStatus({userId:e.id,status:e.onlineStatus}):this.store.onlineUsers.update(r=>[e,...r])}userHavePermission(e){return this.user.isAdmin?!0:this.user?this.user.applications.indexOf(e)!==-1:!1}browseGroup(e){return this.http.get(`${ge}${e?`/${e}`:""}`).pipe(d(r=>new At(r)))}createPersonalGroup(e){return this.http.post(O,e).pipe(d(r=>new T(r)))}updatePersonalGroup(e,r){return this.http.put(`${O}/${e}`,r).pipe(d(n=>new T(n)))}leavePersonalGroup(e){return this.http.delete(`${ye}/${e}`)}addUsersToGroup(e,r){return this.http.patch(`${O}/${e}/${$.USERS}`,r)}deletePersonalGroup(e){return this.http.delete(`${O}/${e}`)}updateUserFromPersonalGroup(e,r,n){return this.http.patch(`${O}/${e}/${$.USERS}/${r}`,n)}removeUserFromGroup(e,r){return this.http.delete(`${O}/${e}/${$.USERS}/${r}`)}listGuests(){return this.http.get(P).pipe(d(e=>e.map(r=>new I(r))))}getGuest(e){return this.http.get(`${P}/${e}`).pipe(d(r=>new I(r)))}createGuest(e){return this.http.post(P,e).pipe(d(r=>new I(r)))}updateGuest(e,r){return this.http.put(`${P}/${e}`,r).pipe(d(n=>n?new I(n):null))}deleteGuest(e){return this.http.delete(`${P}/${e}`)}genAvatar(){this.http.patch(Ct,null).subscribe({next:()=>this.refreshAvatar(),error:e=>this.layout.sendNotification("error","Configuration","Avatar",e)})}uploadAvatar(e){let r=new FormData;r.append("file",e),this.http.put(Ct,r).subscribe({next:()=>this.refreshAvatar(),error:n=>this.layout.sendNotification("error","Configuration","Avatar",n)})}changePassword(e){return this.http.put(de,e)}changeLanguage(e){return this.http.put(pe,e)}changeNotification(e){return this.http.put(me,e)}changeOnlineStatus(e,r=!0){this.webSocket.emit(W.EVENTS.ONLINE_STATUS,{status:e,store:r})}receiveOnlineStatus(e){this.user.id===e.userId?this.user.onlineStatus=e.status:this.store.onlineUsers().length&&this.store.onlineUsers.update(r=>r.map(n=>n.id===e.userId?jt(it({},n),{onlineStatus:e.status}):n))}searchMembers(e,r=[]){return this.http.request("search",$.BASE,{body:e}).pipe(d(n=>n.map(o=>new T(o,r))),zt(()=>[]))}setMenusVisibility(e){for(let r of e)if(!(r.id&&(r.hide=!this.userHavePermission(r.id),r.hide))&&(r.checks?.length&&(r.hide=!r.checks.map(n=>n.negate?!this[n.prop][n.value]:this[n.prop][n.value]).every(n=>!!n)),r.submenus?.length&&this.setMenusVisibility(r.submenus),r.title===ke.FILES)){for(let n of r.submenus)if(!n.hide){r.link=n.link;break}}}refreshAvatar(){this.store.userAvatarUrl.next(ve())}checkAppStoreAvailability(){this.http.get(`${Rt.BASE}/${Rt.APP_STORE}`).subscribe({next:e=>this.store.appStoreManifest.set(e),error:e=>console.error(e)})}checkQuota(e){if(!(e.isGuest||e.isLink)&&e.storageQuota){let r=Math.round(100/e.storageQuota*(e.storageQuota-e.storageUsage));r<=1?this.layout.sendNotification("error","Storage Quota","No more space available",null,{disableTimeOut:!0,closeButton:!0}):r<=5?this.layout.sendNotification("warning","Storage Quota",this.layout.translateString("available_space_is_low",{nb:r}),null,{disableTimeOut:!0,closeButton:!0}):r<=10&&this.layout.sendNotification("info","Storage Quota",this.layout.translateString("available_space_is_low",{nb:r}),null,{disableTimeOut:!0,closeButton:!0})}}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=st({token:t,factory:t.\u0275fac,providedIn:"root"});let s=t;return s})();var Ai={provide:lt,useExisting:H(()=>Ti),multi:!0},Ti=(()=>{let t=class t{constructor(){this.btnCheckboxTrue=!0,this.btnCheckboxFalse=!1,this.state=!1,this.isDisabled=!1,this.onChange=Function.prototype,this.onTouched=Function.prototype}onClick(){this.isDisabled||(this.toggle(!this.state),this.onChange(this.value))}ngOnInit(){this.toggle(this.trueValue===this.value)}get trueValue(){return typeof this.btnCheckboxTrue<"u"?this.btnCheckboxTrue:!0}get falseValue(){return typeof this.btnCheckboxFalse<"u"?this.btnCheckboxFalse:!1}toggle(e){this.state=e,this.value=this.state?this.trueValue:this.falseValue}writeValue(e){this.state=this.trueValue===e,this.value=e?this.trueValue:this.falseValue}setDisabledState(e){this.isDisabled=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=ot({type:t,selectors:[["","btnCheckbox",""]],hostVars:3,hostBindings:function(r,n){r&1&&ct("click",function(){return n.onClick()}),r&2&&(at("aria-pressed",n.state),Tt("active",n.state))},inputs:{btnCheckboxTrue:"btnCheckboxTrue",btnCheckboxFalse:"btnCheckboxFalse"},features:[ht([Ai])]});let s=t;return s})(),Oi={provide:lt,useExisting:H(()=>si),multi:!0},si=(()=>{let t=class t{get value(){return this.group?this.group.value:this._value}set value(e){if(this.group){this.group.value=e;return}this._value=e,this._onChange(e)}get disabled(){return this._disabled}set disabled(e){this.setDisabledState(e)}get controlOrGroupDisabled(){return this.disabled||this.group&&this.group.disabled?!0:void 0}get hasDisabledClass(){return this.controlOrGroupDisabled&&!this.isActive}get isActive(){return this.btnRadio===this.value}get tabindex(){if(!this.controlOrGroupDisabled)return this.isActive||this.group==null?0:-1}get hasFocus(){return this._hasFocus}constructor(e,r,n,o){this.el=e,this.cdr=r,this.renderer=n,this.group=o,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.uncheckable=!1,this.role="radio",this._disabled=!1,this._hasFocus=!1}toggleIfAllowed(){this.canToggle()&&(this.uncheckable&&this.btnRadio===this.value?this.value=void 0:this.value=this.btnRadio)}onSpacePressed(e){this.toggleIfAllowed(),e.preventDefault()}focus(){this.el.nativeElement.focus()}onFocus(){this._hasFocus=!0}onBlur(){this._hasFocus=!1,this.onTouched()}canToggle(){return!this.controlOrGroupDisabled&&(this.uncheckable||this.btnRadio!==this.value)}ngOnChanges(e){"uncheckable"in e&&(this.uncheckable=this.uncheckable!==!1&&typeof this.uncheckable<"u")}_onChange(e){if(this.group){this.group.value=e;return}this.onTouched(),this.onChange(e)}writeValue(e){this.value=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){if(this._disabled=e,e){this.renderer.setAttribute(this.el.nativeElement,"disabled","disabled");return}this.renderer.removeAttribute(this.el.nativeElement,"disabled")}};t.\u0275fac=function(r){return new(r||t)(L(se),L(Ot),L(re),L(H(()=>ri),8))},t.\u0275dir=ot({type:t,selectors:[["","btnRadio",""]],hostVars:8,hostBindings:function(r,n){r&1&&ct("click",function(){return n.toggleIfAllowed()})("keydown.space",function(a){return n.onSpacePressed(a)})("focus",function(){return n.onFocus()})("blur",function(){return n.onBlur()}),r&2&&(at("aria-disabled",n.controlOrGroupDisabled)("aria-checked",n.isActive)("role",n.role)("tabindex",n.tabindex),Tt("disabled",n.hasDisabledClass)("active",n.isActive))},inputs:{btnRadio:"btnRadio",uncheckable:"uncheckable",value:"value",disabled:"disabled"},features:[ht([Oi]),ie]});let s=t;return s})(),Ri={provide:lt,useExisting:H(()=>ri),multi:!0},ri=(()=>{let t=class t{constructor(e){this.cdr=e,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.role="radiogroup",this._disabled=!1}get value(){return this._value}set value(e){this._value=e,this.onChange(e)}get disabled(){return this._disabled}get tabindex(){return this._disabled?null:0}writeValue(e){this._value=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.radioButtons&&(this._disabled=e,this.radioButtons.forEach(r=>{r.setDisabledState(e)}),this.cdr.markForCheck())}onFocus(){if(this._disabled)return;let e=this.getActiveOrFocusedRadio();if(e){e.focus();return}if(this.radioButtons){let r=this.radioButtons.find(n=>!n.disabled);r&&r.focus()}}onBlur(){this.onTouched&&this.onTouched()}selectNext(e){this.selectInDirection("next"),e.preventDefault()}selectPrevious(e){this.selectInDirection("previous"),e.preventDefault()}selectInDirection(e){if(this._disabled)return;function r(o,a){let p=(o+(e==="next"?1:-1))%a.length;return p<0&&(p=a.length-1),p}let n=this.getActiveOrFocusedRadio();if(n&&this.radioButtons){let o=this.radioButtons.toArray(),a=o.indexOf(n);for(let c=r(a,o);c!==a;c=r(c,o))if(o[c].canToggle()){o[c].toggleIfAllowed(),o[c].focus();break}}}getActiveOrFocusedRadio(){if(this.radioButtons)return this.radioButtons.find(e=>e.isActive)||this.radioButtons.find(e=>e.hasFocus)}};t.\u0275fac=function(r){return new(r||t)(L(Ot))},t.\u0275dir=ot({type:t,selectors:[["","btnRadioGroup",""]],contentQueries:function(r,n,o){if(r&1&&oe(o,si,4),r&2){let a;ae(a=ce())&&(n.radioButtons=a)}},hostVars:2,hostBindings:function(r,n){r&1&&ct("focus",function(){return n.onFocus()})("blur",function(){return n.onBlur()})("keydown.ArrowRight",function(a){return n.selectNext(a)})("keydown.ArrowDown",function(a){return n.selectNext(a)})("keydown.ArrowLeft",function(a){return n.selectPrevious(a)})("keydown.ArrowUp",function(a){return n.selectPrevious(a)}),r&2&&at("role",n.role)("tabindex",n.tabindex)},features:[ht([Ri])]});let s=t;return s})(),Wn=(()=>{let t=class t{static forRoot(){return{ngModule:t,providers:[]}}};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=rt({});let s=t;return s})();export{Ar as a,y as b,ii as c,At as d,I as e,Bn as f,Ti as g,Wn as h};