mirror of
				https://github.com/abhinavxd/libredesk.git
				synced 2025-11-04 05:53:30 +00:00 
			
		
		
		
	Compare commits
	
		
			27 Commits
		
	
	
		
			v0.7.4-alp
			...
			main
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					879c626fb3 | ||
| 
						 | 
					16fbfa7b7c | ||
| 
						 | 
					b8da96c1d1 | ||
| 
						 | 
					3d76cce66a | ||
| 
						 | 
					4b8f30184a | ||
| 
						 | 
					e4018ddab8 | ||
| 
						 | 
					02e8a43587 | ||
| 
						 | 
					f3acc37405 | ||
| 
						 | 
					562babf222 | ||
| 
						 | 
					93e94432f5 | ||
| 
						 | 
					ec63604163 | ||
| 
						 | 
					f06da2a861 | ||
| 
						 | 
					98f16854c8 | ||
| 
						 | 
					cc36ef5a3a | ||
| 
						 | 
					969d6ea4f9 | ||
| 
						 | 
					326ccdf9d4 | ||
| 
						 | 
					d6a8e76472 | ||
| 
						 | 
					f95b374b74 | ||
| 
						 | 
					a1db6ccb31 | ||
| 
						 | 
					267a6027ee | ||
| 
						 | 
					3471263710 | ||
| 
						 | 
					7469e296d2 | ||
| 
						 | 
					44ffc77c4e | ||
| 
						 | 
					3ec061d8f1 | ||
| 
						 | 
					48b8d14f8f | ||
| 
						 | 
					6231a9e131 | ||
| 
						 | 
					78b8607d8f | 
@@ -5,13 +5,11 @@
 | 
			
		||||
 | 
			
		||||
Modern, open source, self-hosted customer support desk. Single binary app. 
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Visit [libredesk.io](https://libredesk.io) for more info. Check out the [**Live demo**](https://demo.libredesk.io/).
 | 
			
		||||
 | 
			
		||||
> **CAUTION:** This project is currently in **alpha**. Features and APIs may change and are not yet fully tested.
 | 
			
		||||
 | 
			
		||||
## Features
 | 
			
		||||
 | 
			
		||||
- **Multi Shared Inbox**  
 | 
			
		||||
@@ -85,11 +83,6 @@ __________________
 | 
			
		||||
## Developers
 | 
			
		||||
If you are interested in contributing, refer to the [developer setup](https://docs.libredesk.io/contributing/developer-setup). The backend is written in Go and the frontend is Vue js 3 with Shadcn for UI components.
 | 
			
		||||
 | 
			
		||||
## Development Status
 | 
			
		||||
 | 
			
		||||
Libredesk is under active development.  
 | 
			
		||||
Track roadmap and progress on the GitHub Project Board:   [https://github.com/users/abhinavxd/projects/1](https://github.com/users/abhinavxd/projects/1)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Translators
 | 
			
		||||
You can help translate Libredesk into your language on [Crowdin](https://crowdin.com/project/libredesk).  
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										12
									
								
								cmd/media.go
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								cmd/media.go
									
									
									
									
									
								
							@@ -185,6 +185,18 @@ func handleServeMedia(r *fastglue.Request) error {
 | 
			
		||||
	consts := app.consts.Load().(*constants)
 | 
			
		||||
	switch consts.UploadProvider {
 | 
			
		||||
	case "fs":
 | 
			
		||||
		disposition := "attachment"
 | 
			
		||||
 | 
			
		||||
		// Keep certain content types inline.
 | 
			
		||||
		if strings.HasPrefix(media.ContentType, "image/") ||
 | 
			
		||||
			strings.HasPrefix(media.ContentType, "video/") ||
 | 
			
		||||
			media.ContentType == "application/pdf" {
 | 
			
		||||
			disposition = "inline"
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		r.RequestCtx.Response.Header.Set("Content-Type", media.ContentType)
 | 
			
		||||
		r.RequestCtx.Response.Header.Set("Content-Disposition", fmt.Sprintf(`%s; filename="%s"`, disposition, media.Filename))
 | 
			
		||||
 | 
			
		||||
		fasthttp.ServeFile(r.RequestCtx, filepath.Join(ko.String("upload.fs.upload_path"), uuid))
 | 
			
		||||
	case "s3":
 | 
			
		||||
		r.RequestCtx.Redirect(app.media.GetURL(uuid), http.StatusFound)
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "libredesk",
 | 
			
		||||
  "version": "0.6.0-alpha",
 | 
			
		||||
  "version": "0.8.0-beta",
 | 
			
		||||
  "private": true,
 | 
			
		||||
  "type": "module",
 | 
			
		||||
  "scripts": {
 | 
			
		||||
@@ -39,7 +39,7 @@
 | 
			
		||||
    "@unovis/vue": "^1.4.4",
 | 
			
		||||
    "@vee-validate/zod": "^4.15.0",
 | 
			
		||||
    "@vueuse/core": "^12.4.0",
 | 
			
		||||
    "axios": "^1.8.2",
 | 
			
		||||
    "axios": "^1.12.0",
 | 
			
		||||
    "class-variance-authority": "^0.7.0",
 | 
			
		||||
    "clsx": "^2.1.1",
 | 
			
		||||
    "codemirror": "^6.0.2",
 | 
			
		||||
@@ -78,7 +78,7 @@
 | 
			
		||||
    "start-server-and-test": "^2.0.3",
 | 
			
		||||
    "tailwindcss": "^3.4.17",
 | 
			
		||||
    "tailwindcss-animate": "^1.0.7",
 | 
			
		||||
    "vite": "^5.4.19",
 | 
			
		||||
    "vite": "^5.4.20",
 | 
			
		||||
    "vitest": "^3.2.2"
 | 
			
		||||
  },
 | 
			
		||||
  "packageManager": "pnpm@9.15.3+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a"
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										306
									
								
								frontend/pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										306
									
								
								frontend/pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							@@ -72,8 +72,8 @@ importers:
 | 
			
		||||
        specifier: ^12.4.0
 | 
			
		||||
        version: 12.4.0(typescript@5.7.3)
 | 
			
		||||
      axios:
 | 
			
		||||
        specifier: ^1.8.2
 | 
			
		||||
        version: 1.8.2(debug@4.4.0)
 | 
			
		||||
        specifier: ^1.12.0
 | 
			
		||||
        version: 1.12.0(debug@4.4.0)
 | 
			
		||||
      class-variance-authority:
 | 
			
		||||
        specifier: ^0.7.0
 | 
			
		||||
        version: 0.7.1
 | 
			
		||||
@@ -118,7 +118,7 @@ importers:
 | 
			
		||||
        version: 5.2.0(vue@3.5.13(typescript@5.7.3))
 | 
			
		||||
      vue-i18n:
 | 
			
		||||
        specifier: '9'
 | 
			
		||||
        version: 9.14.3(vue@3.5.13(typescript@5.7.3))
 | 
			
		||||
        version: 9.14.5(vue@3.5.13(typescript@5.7.3))
 | 
			
		||||
      vue-letter:
 | 
			
		||||
        specifier: ^0.2.0
 | 
			
		||||
        version: 0.2.0
 | 
			
		||||
@@ -146,7 +146,7 @@ importers:
 | 
			
		||||
        version: 1.10.5
 | 
			
		||||
      '@vitejs/plugin-vue':
 | 
			
		||||
        specifier: ^5.0.3
 | 
			
		||||
        version: 5.2.1(vite@5.4.19(@types/node@22.10.5)(sass@1.83.1)(stylus@0.57.0))(vue@3.5.13(typescript@5.7.3))
 | 
			
		||||
        version: 5.2.1(vite@5.4.20(@types/node@22.10.5)(sass@1.83.1)(stylus@0.57.0))(vue@3.5.13(typescript@5.7.3))
 | 
			
		||||
      '@vue/eslint-config-prettier':
 | 
			
		||||
        specifier: ^8.0.0
 | 
			
		||||
        version: 8.0.0(eslint@8.57.1)(prettier@3.4.2)
 | 
			
		||||
@@ -184,8 +184,8 @@ importers:
 | 
			
		||||
        specifier: ^1.0.7
 | 
			
		||||
        version: 1.0.7(tailwindcss@3.4.17)
 | 
			
		||||
      vite:
 | 
			
		||||
        specifier: ^5.4.19
 | 
			
		||||
        version: 5.4.19(@types/node@22.10.5)(sass@1.83.1)(stylus@0.57.0)
 | 
			
		||||
        specifier: ^5.4.20
 | 
			
		||||
        version: 5.4.20(@types/node@22.10.5)(sass@1.83.1)(stylus@0.57.0)
 | 
			
		||||
      vitest:
 | 
			
		||||
        specifier: ^3.2.2
 | 
			
		||||
        version: 3.2.2(@types/node@22.10.5)(sass@1.83.1)(stylus@0.57.0)
 | 
			
		||||
@@ -510,16 +510,16 @@ packages:
 | 
			
		||||
  '@internationalized/number@3.6.0':
 | 
			
		||||
    resolution: {integrity: sha512-PtrRcJVy7nw++wn4W2OuePQQfTqDzfusSuY1QTtui4wa7r+rGVtR75pO8CyKvHvzyQYi3Q1uO5sY0AsB4e65Bw==}
 | 
			
		||||
 | 
			
		||||
  '@intlify/core-base@9.14.3':
 | 
			
		||||
    resolution: {integrity: sha512-nbJ7pKTlXFnaXPblyfiH6awAx1C0PWNNuqXAR74yRwgi5A/Re/8/5fErLY0pv4R8+EHj3ZaThMHdnuC/5OBa6g==}
 | 
			
		||||
  '@intlify/core-base@9.14.5':
 | 
			
		||||
    resolution: {integrity: sha512-5ah5FqZG4pOoHjkvs8mjtv+gPKYU0zCISaYNjBNNqYiaITxW8ZtVih3GS/oTOqN8d9/mDLyrjD46GBApNxmlsA==}
 | 
			
		||||
    engines: {node: '>= 16'}
 | 
			
		||||
 | 
			
		||||
  '@intlify/message-compiler@9.14.3':
 | 
			
		||||
    resolution: {integrity: sha512-ANwC226BQdd+MpJ36rOYkChSESfPwu3Ss2Faw0RHTOknYLoHTX6V6e/JjIKVDMbzs0/H/df/rO6yU0SPiWHqNg==}
 | 
			
		||||
  '@intlify/message-compiler@9.14.5':
 | 
			
		||||
    resolution: {integrity: sha512-IHzgEu61/YIpQV5Pc3aRWScDcnFKWvQA9kigcINcCBXN8mbW+vk9SK+lDxA6STzKQsVJxUPg9ACC52pKKo3SVQ==}
 | 
			
		||||
    engines: {node: '>= 16'}
 | 
			
		||||
 | 
			
		||||
  '@intlify/shared@9.14.3':
 | 
			
		||||
    resolution: {integrity: sha512-hJXz9LA5VG7qNE00t50bdzDv8Z4q9fpcL81wj4y4duKavrv0KM8YNLTwXNEFINHjTsfrG9TXvPuEjVaAvZ7yWg==}
 | 
			
		||||
  '@intlify/shared@9.14.5':
 | 
			
		||||
    resolution: {integrity: sha512-9gB+E53BYuAEMhbCAxVgG38EZrk59sxBtv3jSizNL2hEWlgjBjAw1AwpLHtNaeda12pe6W20OGEa0TwuMSRbyQ==}
 | 
			
		||||
    engines: {node: '>= 16'}
 | 
			
		||||
 | 
			
		||||
  '@isaacs/cliui@8.0.2':
 | 
			
		||||
@@ -708,103 +708,108 @@ packages:
 | 
			
		||||
  '@remirror/core-constants@3.0.0':
 | 
			
		||||
    resolution: {integrity: sha512-42aWfPrimMfDKDi4YegyS7x+/0tlzaqwPQCULLanv3DMIlu96KTJR0fM5isWX2UViOqlGnX6YFgqWepcX+XMNg==}
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-android-arm-eabi@4.41.1':
 | 
			
		||||
    resolution: {integrity: sha512-NELNvyEWZ6R9QMkiytB4/L4zSEaBC03KIXEghptLGLZWJ6VPrL63ooZQCOnlx36aQPGhzuOMwDerC1Eb2VmrLw==}
 | 
			
		||||
  '@rollup/rollup-android-arm-eabi@4.50.2':
 | 
			
		||||
    resolution: {integrity: sha512-uLN8NAiFVIRKX9ZQha8wy6UUs06UNSZ32xj6giK/rmMXAgKahwExvK6SsmgU5/brh4w/nSgj8e0k3c1HBQpa0A==}
 | 
			
		||||
    cpu: [arm]
 | 
			
		||||
    os: [android]
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-android-arm64@4.41.1':
 | 
			
		||||
    resolution: {integrity: sha512-DXdQe1BJ6TK47ukAoZLehRHhfKnKg9BjnQYUu9gzhI8Mwa1d2fzxA1aw2JixHVl403bwp1+/o/NhhHtxWJBgEA==}
 | 
			
		||||
  '@rollup/rollup-android-arm64@4.50.2':
 | 
			
		||||
    resolution: {integrity: sha512-oEouqQk2/zxxj22PNcGSskya+3kV0ZKH+nQxuCCOGJ4oTXBdNTbv+f/E3c74cNLeMO1S5wVWacSws10TTSB77g==}
 | 
			
		||||
    cpu: [arm64]
 | 
			
		||||
    os: [android]
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-darwin-arm64@4.41.1':
 | 
			
		||||
    resolution: {integrity: sha512-5afxvwszzdulsU2w8JKWwY8/sJOLPzf0e1bFuvcW5h9zsEg+RQAojdW0ux2zyYAz7R8HvvzKCjLNJhVq965U7w==}
 | 
			
		||||
  '@rollup/rollup-darwin-arm64@4.50.2':
 | 
			
		||||
    resolution: {integrity: sha512-OZuTVTpj3CDSIxmPgGH8en/XtirV5nfljHZ3wrNwvgkT5DQLhIKAeuFSiwtbMto6oVexV0k1F1zqURPKf5rI1Q==}
 | 
			
		||||
    cpu: [arm64]
 | 
			
		||||
    os: [darwin]
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-darwin-x64@4.41.1':
 | 
			
		||||
    resolution: {integrity: sha512-egpJACny8QOdHNNMZKf8xY0Is6gIMz+tuqXlusxquWu3F833DcMwmGM7WlvCO9sB3OsPjdC4U0wHw5FabzCGZg==}
 | 
			
		||||
  '@rollup/rollup-darwin-x64@4.50.2':
 | 
			
		||||
    resolution: {integrity: sha512-Wa/Wn8RFkIkr1vy1k1PB//VYhLnlnn5eaJkfTQKivirOvzu5uVd2It01ukeQstMursuz7S1bU+8WW+1UPXpa8A==}
 | 
			
		||||
    cpu: [x64]
 | 
			
		||||
    os: [darwin]
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-freebsd-arm64@4.41.1':
 | 
			
		||||
    resolution: {integrity: sha512-DBVMZH5vbjgRk3r0OzgjS38z+atlupJ7xfKIDJdZZL6sM6wjfDNo64aowcLPKIx7LMQi8vybB56uh1Ftck/Atg==}
 | 
			
		||||
  '@rollup/rollup-freebsd-arm64@4.50.2':
 | 
			
		||||
    resolution: {integrity: sha512-QkzxvH3kYN9J1w7D1A+yIMdI1pPekD+pWx7G5rXgnIlQ1TVYVC6hLl7SOV9pi5q9uIDF9AuIGkuzcbF7+fAhow==}
 | 
			
		||||
    cpu: [arm64]
 | 
			
		||||
    os: [freebsd]
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-freebsd-x64@4.41.1':
 | 
			
		||||
    resolution: {integrity: sha512-3FkydeohozEskBxNWEIbPfOE0aqQgB6ttTkJ159uWOFn42VLyfAiyD9UK5mhu+ItWzft60DycIN1Xdgiy8o/SA==}
 | 
			
		||||
  '@rollup/rollup-freebsd-x64@4.50.2':
 | 
			
		||||
    resolution: {integrity: sha512-dkYXB0c2XAS3a3jmyDkX4Jk0m7gWLFzq1C3qUnJJ38AyxIF5G/dyS4N9B30nvFseCfgtCEdbYFhk0ChoCGxPog==}
 | 
			
		||||
    cpu: [x64]
 | 
			
		||||
    os: [freebsd]
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-linux-arm-gnueabihf@4.41.1':
 | 
			
		||||
    resolution: {integrity: sha512-wC53ZNDgt0pqx5xCAgNunkTzFE8GTgdZ9EwYGVcg+jEjJdZGtq9xPjDnFgfFozQI/Xm1mh+D9YlYtl+ueswNEg==}
 | 
			
		||||
  '@rollup/rollup-linux-arm-gnueabihf@4.50.2':
 | 
			
		||||
    resolution: {integrity: sha512-9VlPY/BN3AgbukfVHAB8zNFWB/lKEuvzRo1NKev0Po8sYFKx0i+AQlCYftgEjcL43F2h9Ui1ZSdVBc4En/sP2w==}
 | 
			
		||||
    cpu: [arm]
 | 
			
		||||
    os: [linux]
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-linux-arm-musleabihf@4.41.1':
 | 
			
		||||
    resolution: {integrity: sha512-jwKCca1gbZkZLhLRtsrka5N8sFAaxrGz/7wRJ8Wwvq3jug7toO21vWlViihG85ei7uJTpzbXZRcORotE+xyrLA==}
 | 
			
		||||
  '@rollup/rollup-linux-arm-musleabihf@4.50.2':
 | 
			
		||||
    resolution: {integrity: sha512-+GdKWOvsifaYNlIVf07QYan1J5F141+vGm5/Y8b9uCZnG/nxoGqgCmR24mv0koIWWuqvFYnbURRqw1lv7IBINw==}
 | 
			
		||||
    cpu: [arm]
 | 
			
		||||
    os: [linux]
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-linux-arm64-gnu@4.41.1':
 | 
			
		||||
    resolution: {integrity: sha512-g0UBcNknsmmNQ8V2d/zD2P7WWfJKU0F1nu0k5pW4rvdb+BIqMm8ToluW/eeRmxCared5dD76lS04uL4UaNgpNA==}
 | 
			
		||||
  '@rollup/rollup-linux-arm64-gnu@4.50.2':
 | 
			
		||||
    resolution: {integrity: sha512-df0Eou14ojtUdLQdPFnymEQteENwSJAdLf5KCDrmZNsy1c3YaCNaJvYsEUHnrg+/DLBH612/R0xd3dD03uz2dg==}
 | 
			
		||||
    cpu: [arm64]
 | 
			
		||||
    os: [linux]
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-linux-arm64-musl@4.41.1':
 | 
			
		||||
    resolution: {integrity: sha512-XZpeGB5TKEZWzIrj7sXr+BEaSgo/ma/kCgrZgL0oo5qdB1JlTzIYQKel/RmhT6vMAvOdM2teYlAaOGJpJ9lahg==}
 | 
			
		||||
  '@rollup/rollup-linux-arm64-musl@4.50.2':
 | 
			
		||||
    resolution: {integrity: sha512-iPeouV0UIDtz8j1YFR4OJ/zf7evjauqv7jQ/EFs0ClIyL+by++hiaDAfFipjOgyz6y6xbDvJuiU4HwpVMpRFDQ==}
 | 
			
		||||
    cpu: [arm64]
 | 
			
		||||
    os: [linux]
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-linux-loongarch64-gnu@4.41.1':
 | 
			
		||||
    resolution: {integrity: sha512-bkCfDJ4qzWfFRCNt5RVV4DOw6KEgFTUZi2r2RuYhGWC8WhCA8lCAJhDeAmrM/fdiAH54m0mA0Vk2FGRPyzI+tw==}
 | 
			
		||||
  '@rollup/rollup-linux-loong64-gnu@4.50.2':
 | 
			
		||||
    resolution: {integrity: sha512-OL6KaNvBopLlj5fTa5D5bau4W82f+1TyTZRr2BdnfsrnQnmdxh4okMxR2DcDkJuh4KeoQZVuvHvzuD/lyLn2Kw==}
 | 
			
		||||
    cpu: [loong64]
 | 
			
		||||
    os: [linux]
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-linux-powerpc64le-gnu@4.41.1':
 | 
			
		||||
    resolution: {integrity: sha512-3mr3Xm+gvMX+/8EKogIZSIEF0WUu0HL9di+YWlJpO8CQBnoLAEL/roTCxuLncEdgcfJcvA4UMOf+2dnjl4Ut1A==}
 | 
			
		||||
  '@rollup/rollup-linux-ppc64-gnu@4.50.2':
 | 
			
		||||
    resolution: {integrity: sha512-I21VJl1w6z/K5OTRl6aS9DDsqezEZ/yKpbqlvfHbW0CEF5IL8ATBMuUx6/mp683rKTK8thjs/0BaNrZLXetLag==}
 | 
			
		||||
    cpu: [ppc64]
 | 
			
		||||
    os: [linux]
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-linux-riscv64-gnu@4.41.1':
 | 
			
		||||
    resolution: {integrity: sha512-3rwCIh6MQ1LGrvKJitQjZFuQnT2wxfU+ivhNBzmxXTXPllewOF7JR1s2vMX/tWtUYFgphygxjqMl76q4aMotGw==}
 | 
			
		||||
  '@rollup/rollup-linux-riscv64-gnu@4.50.2':
 | 
			
		||||
    resolution: {integrity: sha512-Hq6aQJT/qFFHrYMjS20nV+9SKrXL2lvFBENZoKfoTH2kKDOJqff5OSJr4x72ZaG/uUn+XmBnGhfr4lwMRrmqCQ==}
 | 
			
		||||
    cpu: [riscv64]
 | 
			
		||||
    os: [linux]
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-linux-riscv64-musl@4.41.1':
 | 
			
		||||
    resolution: {integrity: sha512-LdIUOb3gvfmpkgFZuccNa2uYiqtgZAz3PTzjuM5bH3nvuy9ty6RGc/Q0+HDFrHrizJGVpjnTZ1yS5TNNjFlklw==}
 | 
			
		||||
  '@rollup/rollup-linux-riscv64-musl@4.50.2':
 | 
			
		||||
    resolution: {integrity: sha512-82rBSEXRv5qtKyr0xZ/YMF531oj2AIpLZkeNYxmKNN6I2sVE9PGegN99tYDLK2fYHJITL1P2Lgb4ZXnv0PjQvw==}
 | 
			
		||||
    cpu: [riscv64]
 | 
			
		||||
    os: [linux]
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-linux-s390x-gnu@4.41.1':
 | 
			
		||||
    resolution: {integrity: sha512-oIE6M8WC9ma6xYqjvPhzZYk6NbobIURvP/lEbh7FWplcMO6gn7MM2yHKA1eC/GvYwzNKK/1LYgqzdkZ8YFxR8g==}
 | 
			
		||||
  '@rollup/rollup-linux-s390x-gnu@4.50.2':
 | 
			
		||||
    resolution: {integrity: sha512-4Q3S3Hy7pC6uaRo9gtXUTJ+EKo9AKs3BXKc2jYypEcMQ49gDPFU2P1ariX9SEtBzE5egIX6fSUmbmGazwBVF9w==}
 | 
			
		||||
    cpu: [s390x]
 | 
			
		||||
    os: [linux]
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-linux-x64-gnu@4.41.1':
 | 
			
		||||
    resolution: {integrity: sha512-cWBOvayNvA+SyeQMp79BHPK8ws6sHSsYnK5zDcsC3Hsxr1dgTABKjMnMslPq1DvZIp6uO7kIWhiGwaTdR4Og9A==}
 | 
			
		||||
  '@rollup/rollup-linux-x64-gnu@4.50.2':
 | 
			
		||||
    resolution: {integrity: sha512-9Jie/At6qk70dNIcopcL4p+1UirusEtznpNtcq/u/C5cC4HBX7qSGsYIcG6bdxj15EYWhHiu02YvmdPzylIZlA==}
 | 
			
		||||
    cpu: [x64]
 | 
			
		||||
    os: [linux]
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-linux-x64-musl@4.41.1':
 | 
			
		||||
    resolution: {integrity: sha512-y5CbN44M+pUCdGDlZFzGGBSKCA4A/J2ZH4edTYSSxFg7ce1Xt3GtydbVKWLlzL+INfFIZAEg1ZV6hh9+QQf9YQ==}
 | 
			
		||||
  '@rollup/rollup-linux-x64-musl@4.50.2':
 | 
			
		||||
    resolution: {integrity: sha512-HPNJwxPL3EmhzeAnsWQCM3DcoqOz3/IC6de9rWfGR8ZCuEHETi9km66bH/wG3YH0V3nyzyFEGUZeL5PKyy4xvw==}
 | 
			
		||||
    cpu: [x64]
 | 
			
		||||
    os: [linux]
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-win32-arm64-msvc@4.41.1':
 | 
			
		||||
    resolution: {integrity: sha512-lZkCxIrjlJlMt1dLO/FbpZbzt6J/A8p4DnqzSa4PWqPEUUUnzXLeki/iyPLfV0BmHItlYgHUqJe+3KiyydmiNQ==}
 | 
			
		||||
  '@rollup/rollup-openharmony-arm64@4.50.2':
 | 
			
		||||
    resolution: {integrity: sha512-nMKvq6FRHSzYfKLHZ+cChowlEkR2lj/V0jYj9JnGUVPL2/mIeFGmVM2mLaFeNa5Jev7W7TovXqXIG2d39y1KYA==}
 | 
			
		||||
    cpu: [arm64]
 | 
			
		||||
    os: [openharmony]
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-win32-arm64-msvc@4.50.2':
 | 
			
		||||
    resolution: {integrity: sha512-eFUvvnTYEKeTyHEijQKz81bLrUQOXKZqECeiWH6tb8eXXbZk+CXSG2aFrig2BQ/pjiVRj36zysjgILkqarS2YA==}
 | 
			
		||||
    cpu: [arm64]
 | 
			
		||||
    os: [win32]
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-win32-ia32-msvc@4.41.1':
 | 
			
		||||
    resolution: {integrity: sha512-+psFT9+pIh2iuGsxFYYa/LhS5MFKmuivRsx9iPJWNSGbh2XVEjk90fmpUEjCnILPEPJnikAU6SFDiEUyOv90Pg==}
 | 
			
		||||
  '@rollup/rollup-win32-ia32-msvc@4.50.2':
 | 
			
		||||
    resolution: {integrity: sha512-cBaWmXqyfRhH8zmUxK3d3sAhEWLrtMjWBRwdMMHJIXSjvjLKvv49adxiEz+FJ8AP90apSDDBx2Tyd/WylV6ikA==}
 | 
			
		||||
    cpu: [ia32]
 | 
			
		||||
    os: [win32]
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-win32-x64-msvc@4.41.1':
 | 
			
		||||
    resolution: {integrity: sha512-Wq2zpapRYLfi4aKxf2Xff0tN+7slj2d4R87WEzqw7ZLsVvO5zwYCIuEGSZYiK41+GlwUo1HiR+GdkLEJnCKTCw==}
 | 
			
		||||
  '@rollup/rollup-win32-x64-msvc@4.50.2':
 | 
			
		||||
    resolution: {integrity: sha512-APwKy6YUhvZaEoHyM+9xqmTpviEI+9eL7LoCH+aLcvWYHJ663qG5zx7WzWZY+a9qkg5JtzcMyJ9z0WtQBMDmgA==}
 | 
			
		||||
    cpu: [x64]
 | 
			
		||||
    os: [win32]
 | 
			
		||||
 | 
			
		||||
@@ -1136,8 +1141,8 @@ packages:
 | 
			
		||||
  '@types/deep-eql@4.0.2':
 | 
			
		||||
    resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==}
 | 
			
		||||
 | 
			
		||||
  '@types/estree@1.0.7':
 | 
			
		||||
    resolution: {integrity: sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==}
 | 
			
		||||
  '@types/estree@1.0.8':
 | 
			
		||||
    resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==}
 | 
			
		||||
 | 
			
		||||
  '@types/geojson@7946.0.15':
 | 
			
		||||
    resolution: {integrity: sha512-9oSxFzDCT2Rj6DfcHF8G++jxBKS7mBqXl5xrRW+Kbvjry6Uduya2iiwqHPhVXpasAVMBYKkEPGgKhd3+/HZ6xA==}
 | 
			
		||||
@@ -1451,8 +1456,8 @@ packages:
 | 
			
		||||
  aws4@1.13.2:
 | 
			
		||||
    resolution: {integrity: sha512-lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==}
 | 
			
		||||
 | 
			
		||||
  axios@1.8.2:
 | 
			
		||||
    resolution: {integrity: sha512-ls4GYBm5aig9vWx8AWDSGLpnpDQRtWAfrjU+EuytuODrFBkqesN2RkOQCBzrA1RQNHw1SmRMSDDDSwzNAYQ6Rg==}
 | 
			
		||||
  axios@1.12.0:
 | 
			
		||||
    resolution: {integrity: sha512-oXTDccv8PcfjZmPGlWsPSwtOJCZ/b6W5jAMCNcfwJbCzDckwG0jrYJFaWH1yvivfCXjVzV/SPDEhMB3Q+DSurg==}
 | 
			
		||||
 | 
			
		||||
  babel-plugin-macros@3.1.0:
 | 
			
		||||
    resolution: {integrity: sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==}
 | 
			
		||||
@@ -1857,6 +1862,15 @@ packages:
 | 
			
		||||
      supports-color:
 | 
			
		||||
        optional: true
 | 
			
		||||
 | 
			
		||||
  debug@4.4.3:
 | 
			
		||||
    resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==}
 | 
			
		||||
    engines: {node: '>=6.0'}
 | 
			
		||||
    peerDependencies:
 | 
			
		||||
      supports-color: '*'
 | 
			
		||||
    peerDependenciesMeta:
 | 
			
		||||
      supports-color:
 | 
			
		||||
        optional: true
 | 
			
		||||
 | 
			
		||||
  decode-uri-component@0.2.2:
 | 
			
		||||
    resolution: {integrity: sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==}
 | 
			
		||||
    engines: {node: '>=0.10'}
 | 
			
		||||
@@ -2139,8 +2153,8 @@ packages:
 | 
			
		||||
  flatted@3.3.2:
 | 
			
		||||
    resolution: {integrity: sha512-AiwGJM8YcNOaobumgtng+6NHuOqC3A7MixFeDafM3X9cIUM+xUXoS5Vfgf+OihAYe20fxqNM9yPBXJzRtZ/4eA==}
 | 
			
		||||
 | 
			
		||||
  follow-redirects@1.15.9:
 | 
			
		||||
    resolution: {integrity: sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==}
 | 
			
		||||
  follow-redirects@1.15.11:
 | 
			
		||||
    resolution: {integrity: sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==}
 | 
			
		||||
    engines: {node: '>=4.0'}
 | 
			
		||||
    peerDependencies:
 | 
			
		||||
      debug: '*'
 | 
			
		||||
@@ -2155,8 +2169,8 @@ packages:
 | 
			
		||||
  forever-agent@0.6.1:
 | 
			
		||||
    resolution: {integrity: sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==}
 | 
			
		||||
 | 
			
		||||
  form-data@4.0.2:
 | 
			
		||||
    resolution: {integrity: sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w==}
 | 
			
		||||
  form-data@4.0.4:
 | 
			
		||||
    resolution: {integrity: sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==}
 | 
			
		||||
    engines: {node: '>= 6'}
 | 
			
		||||
 | 
			
		||||
  fraction.js@4.3.7:
 | 
			
		||||
@@ -2992,8 +3006,8 @@ packages:
 | 
			
		||||
  robust-predicates@3.0.2:
 | 
			
		||||
    resolution: {integrity: sha512-IXgzBWvWQwE6PrDI05OvmXUIruQTcoMDzRsOd5CDvHCVLcLHMTSYvOK5Cm46kWqlV3yAbuSpBZdJ5oP5OUoStg==}
 | 
			
		||||
 | 
			
		||||
  rollup@4.41.1:
 | 
			
		||||
    resolution: {integrity: sha512-cPmwD3FnFv8rKMBc1MxWCwVQFxwf1JEmSX3iQXrRVVG15zerAIXRjMFVWnd5Q5QvgKF7Aj+5ykXFhUl+QGnyOw==}
 | 
			
		||||
  rollup@4.50.2:
 | 
			
		||||
    resolution: {integrity: sha512-BgLRGy7tNS9H66aIMASq1qSYbAAJV6Z6WR4QYTvj5FgF15rZ/ympT1uixHXwzbZUBDbkvqUI1KR0fH1FhMaQ9w==}
 | 
			
		||||
    engines: {node: '>=18.0.0', npm: '>=8.0.0'}
 | 
			
		||||
    hasBin: true
 | 
			
		||||
 | 
			
		||||
@@ -3089,9 +3103,9 @@ packages:
 | 
			
		||||
    resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
 | 
			
		||||
    engines: {node: '>=0.10.0'}
 | 
			
		||||
 | 
			
		||||
  source-map@0.7.4:
 | 
			
		||||
    resolution: {integrity: sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==}
 | 
			
		||||
    engines: {node: '>= 8'}
 | 
			
		||||
  source-map@0.7.6:
 | 
			
		||||
    resolution: {integrity: sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==}
 | 
			
		||||
    engines: {node: '>= 12'}
 | 
			
		||||
 | 
			
		||||
  speakingurl@14.0.1:
 | 
			
		||||
    resolution: {integrity: sha512-1POYv7uv2gXoyGFpBCmpDVSNV74IfsWlDW216UPjbWufNf+bSU6GdbDsxdcxtfwb4xlI3yxzOTKClUosxARYrQ==}
 | 
			
		||||
@@ -3355,8 +3369,8 @@ packages:
 | 
			
		||||
    engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
 | 
			
		||||
    hasBin: true
 | 
			
		||||
 | 
			
		||||
  vite@5.4.19:
 | 
			
		||||
    resolution: {integrity: sha512-qO3aKv3HoQC8QKiNSTuUM1l9o/XX3+c+VTgLHbJWHZGeTPVAg2XwazI9UWzoxjIJCGCV2zU60uqMzjeLZuULqA==}
 | 
			
		||||
  vite@5.4.20:
 | 
			
		||||
    resolution: {integrity: sha512-j3lYzGC3P+B5Yfy/pfKNgVEg4+UtcIJcVRt2cDjIOmhLourAqPqf8P7acgxeiSgUB7E3p2P8/3gNIgDLpwzs4g==}
 | 
			
		||||
    engines: {node: ^18.0.0 || >=20.0.0}
 | 
			
		||||
    hasBin: true
 | 
			
		||||
    peerDependencies:
 | 
			
		||||
@@ -3439,8 +3453,8 @@ packages:
 | 
			
		||||
    peerDependencies:
 | 
			
		||||
      eslint: '>=6.0.0'
 | 
			
		||||
 | 
			
		||||
  vue-i18n@9.14.3:
 | 
			
		||||
    resolution: {integrity: sha512-C+E0KE8ihKjdYCQx8oUkXX+8tBItrYNMnGJuzEPevBARQFUN2tKez6ZVOvBrWH0+KT5wEk3vOWjNk7ygb2u9ig==}
 | 
			
		||||
  vue-i18n@9.14.5:
 | 
			
		||||
    resolution: {integrity: sha512-0jQ9Em3ymWngyiIkj0+c/k7WgaPO+TNzjKSNq9BvBQaKJECqn9cd9fL4tkDhB5G1QBskGl9YxxbDAhgbFtpe2g==}
 | 
			
		||||
    engines: {node: '>= 16'}
 | 
			
		||||
    peerDependencies:
 | 
			
		||||
      vue: ^3.0.0
 | 
			
		||||
@@ -3700,7 +3714,7 @@ snapshots:
 | 
			
		||||
      combined-stream: 1.0.8
 | 
			
		||||
      extend: 3.0.2
 | 
			
		||||
      forever-agent: 0.6.1
 | 
			
		||||
      form-data: 4.0.2
 | 
			
		||||
      form-data: 4.0.4
 | 
			
		||||
      http-signature: 1.4.0
 | 
			
		||||
      is-typedarray: 1.0.0
 | 
			
		||||
      isstream: 0.1.2
 | 
			
		||||
@@ -3914,17 +3928,17 @@ snapshots:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      '@swc/helpers': 0.5.15
 | 
			
		||||
 | 
			
		||||
  '@intlify/core-base@9.14.3':
 | 
			
		||||
  '@intlify/core-base@9.14.5':
 | 
			
		||||
    dependencies:
 | 
			
		||||
      '@intlify/message-compiler': 9.14.3
 | 
			
		||||
      '@intlify/shared': 9.14.3
 | 
			
		||||
      '@intlify/message-compiler': 9.14.5
 | 
			
		||||
      '@intlify/shared': 9.14.5
 | 
			
		||||
 | 
			
		||||
  '@intlify/message-compiler@9.14.3':
 | 
			
		||||
  '@intlify/message-compiler@9.14.5':
 | 
			
		||||
    dependencies:
 | 
			
		||||
      '@intlify/shared': 9.14.3
 | 
			
		||||
      '@intlify/shared': 9.14.5
 | 
			
		||||
      source-map-js: 1.2.1
 | 
			
		||||
 | 
			
		||||
  '@intlify/shared@9.14.3': {}
 | 
			
		||||
  '@intlify/shared@9.14.5': {}
 | 
			
		||||
 | 
			
		||||
  '@isaacs/cliui@8.0.2':
 | 
			
		||||
    dependencies:
 | 
			
		||||
@@ -4091,64 +4105,67 @@ snapshots:
 | 
			
		||||
 | 
			
		||||
  '@remirror/core-constants@3.0.0': {}
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-android-arm-eabi@4.41.1':
 | 
			
		||||
  '@rollup/rollup-android-arm-eabi@4.50.2':
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-android-arm64@4.41.1':
 | 
			
		||||
  '@rollup/rollup-android-arm64@4.50.2':
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-darwin-arm64@4.41.1':
 | 
			
		||||
  '@rollup/rollup-darwin-arm64@4.50.2':
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-darwin-x64@4.41.1':
 | 
			
		||||
  '@rollup/rollup-darwin-x64@4.50.2':
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-freebsd-arm64@4.41.1':
 | 
			
		||||
  '@rollup/rollup-freebsd-arm64@4.50.2':
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-freebsd-x64@4.41.1':
 | 
			
		||||
  '@rollup/rollup-freebsd-x64@4.50.2':
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-linux-arm-gnueabihf@4.41.1':
 | 
			
		||||
  '@rollup/rollup-linux-arm-gnueabihf@4.50.2':
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-linux-arm-musleabihf@4.41.1':
 | 
			
		||||
  '@rollup/rollup-linux-arm-musleabihf@4.50.2':
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-linux-arm64-gnu@4.41.1':
 | 
			
		||||
  '@rollup/rollup-linux-arm64-gnu@4.50.2':
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-linux-arm64-musl@4.41.1':
 | 
			
		||||
  '@rollup/rollup-linux-arm64-musl@4.50.2':
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-linux-loongarch64-gnu@4.41.1':
 | 
			
		||||
  '@rollup/rollup-linux-loong64-gnu@4.50.2':
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-linux-powerpc64le-gnu@4.41.1':
 | 
			
		||||
  '@rollup/rollup-linux-ppc64-gnu@4.50.2':
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-linux-riscv64-gnu@4.41.1':
 | 
			
		||||
  '@rollup/rollup-linux-riscv64-gnu@4.50.2':
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-linux-riscv64-musl@4.41.1':
 | 
			
		||||
  '@rollup/rollup-linux-riscv64-musl@4.50.2':
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-linux-s390x-gnu@4.41.1':
 | 
			
		||||
  '@rollup/rollup-linux-s390x-gnu@4.50.2':
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-linux-x64-gnu@4.41.1':
 | 
			
		||||
  '@rollup/rollup-linux-x64-gnu@4.50.2':
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-linux-x64-musl@4.41.1':
 | 
			
		||||
  '@rollup/rollup-linux-x64-musl@4.50.2':
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-win32-arm64-msvc@4.41.1':
 | 
			
		||||
  '@rollup/rollup-openharmony-arm64@4.50.2':
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-win32-ia32-msvc@4.41.1':
 | 
			
		||||
  '@rollup/rollup-win32-arm64-msvc@4.50.2':
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-win32-x64-msvc@4.41.1':
 | 
			
		||||
  '@rollup/rollup-win32-ia32-msvc@4.50.2':
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  '@rollup/rollup-win32-x64-msvc@4.50.2':
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  '@rushstack/eslint-patch@1.10.5': {}
 | 
			
		||||
@@ -4513,7 +4530,7 @@ snapshots:
 | 
			
		||||
 | 
			
		||||
  '@types/deep-eql@4.0.2': {}
 | 
			
		||||
 | 
			
		||||
  '@types/estree@1.0.7': {}
 | 
			
		||||
  '@types/estree@1.0.8': {}
 | 
			
		||||
 | 
			
		||||
  '@types/geojson@7946.0.15': {}
 | 
			
		||||
 | 
			
		||||
@@ -4659,9 +4676,9 @@ snapshots:
 | 
			
		||||
    transitivePeerDependencies:
 | 
			
		||||
      - vue
 | 
			
		||||
 | 
			
		||||
  '@vitejs/plugin-vue@5.2.1(vite@5.4.19(@types/node@22.10.5)(sass@1.83.1)(stylus@0.57.0))(vue@3.5.13(typescript@5.7.3))':
 | 
			
		||||
  '@vitejs/plugin-vue@5.2.1(vite@5.4.20(@types/node@22.10.5)(sass@1.83.1)(stylus@0.57.0))(vue@3.5.13(typescript@5.7.3))':
 | 
			
		||||
    dependencies:
 | 
			
		||||
      vite: 5.4.19(@types/node@22.10.5)(sass@1.83.1)(stylus@0.57.0)
 | 
			
		||||
      vite: 5.4.20(@types/node@22.10.5)(sass@1.83.1)(stylus@0.57.0)
 | 
			
		||||
      vue: 3.5.13(typescript@5.7.3)
 | 
			
		||||
 | 
			
		||||
  '@vitest/expect@3.2.2':
 | 
			
		||||
@@ -4672,13 +4689,13 @@ snapshots:
 | 
			
		||||
      chai: 5.2.0
 | 
			
		||||
      tinyrainbow: 2.0.0
 | 
			
		||||
 | 
			
		||||
  '@vitest/mocker@3.2.2(vite@5.4.19(@types/node@22.10.5)(sass@1.83.1)(stylus@0.57.0))':
 | 
			
		||||
  '@vitest/mocker@3.2.2(vite@5.4.20(@types/node@22.10.5)(sass@1.83.1)(stylus@0.57.0))':
 | 
			
		||||
    dependencies:
 | 
			
		||||
      '@vitest/spy': 3.2.2
 | 
			
		||||
      estree-walker: 3.0.3
 | 
			
		||||
      magic-string: 0.30.17
 | 
			
		||||
    optionalDependencies:
 | 
			
		||||
      vite: 5.4.19(@types/node@22.10.5)(sass@1.83.1)(stylus@0.57.0)
 | 
			
		||||
      vite: 5.4.20(@types/node@22.10.5)(sass@1.83.1)(stylus@0.57.0)
 | 
			
		||||
 | 
			
		||||
  '@vitest/pretty-format@3.2.2':
 | 
			
		||||
    dependencies:
 | 
			
		||||
@@ -4929,10 +4946,10 @@ snapshots:
 | 
			
		||||
 | 
			
		||||
  aws4@1.13.2: {}
 | 
			
		||||
 | 
			
		||||
  axios@1.8.2(debug@4.4.0):
 | 
			
		||||
  axios@1.12.0(debug@4.4.0):
 | 
			
		||||
    dependencies:
 | 
			
		||||
      follow-redirects: 1.15.9(debug@4.4.0)
 | 
			
		||||
      form-data: 4.0.2
 | 
			
		||||
      follow-redirects: 1.15.11(debug@4.4.0)
 | 
			
		||||
      form-data: 4.0.4
 | 
			
		||||
      proxy-from-env: 1.1.0
 | 
			
		||||
    transitivePeerDependencies:
 | 
			
		||||
      - debug
 | 
			
		||||
@@ -5393,6 +5410,11 @@ snapshots:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      ms: 2.1.3
 | 
			
		||||
 | 
			
		||||
  debug@4.4.3:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      ms: 2.1.3
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  decode-uri-component@0.2.2:
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
@@ -5618,7 +5640,7 @@ snapshots:
 | 
			
		||||
 | 
			
		||||
  estree-walker@3.0.3:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      '@types/estree': 1.0.7
 | 
			
		||||
      '@types/estree': 1.0.8
 | 
			
		||||
 | 
			
		||||
  esutils@2.0.3: {}
 | 
			
		||||
 | 
			
		||||
@@ -5733,7 +5755,7 @@ snapshots:
 | 
			
		||||
 | 
			
		||||
  flatted@3.3.2: {}
 | 
			
		||||
 | 
			
		||||
  follow-redirects@1.15.9(debug@4.4.0):
 | 
			
		||||
  follow-redirects@1.15.11(debug@4.4.0):
 | 
			
		||||
    optionalDependencies:
 | 
			
		||||
      debug: 4.4.0(supports-color@8.1.1)
 | 
			
		||||
 | 
			
		||||
@@ -5744,11 +5766,12 @@ snapshots:
 | 
			
		||||
 | 
			
		||||
  forever-agent@0.6.1: {}
 | 
			
		||||
 | 
			
		||||
  form-data@4.0.2:
 | 
			
		||||
  form-data@4.0.4:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      asynckit: 0.4.0
 | 
			
		||||
      combined-stream: 1.0.8
 | 
			
		||||
      es-set-tostringtag: 2.1.0
 | 
			
		||||
      hasown: 2.0.2
 | 
			
		||||
      mime-types: 2.1.35
 | 
			
		||||
 | 
			
		||||
  fraction.js@4.3.7: {}
 | 
			
		||||
@@ -6581,30 +6604,31 @@ snapshots:
 | 
			
		||||
 | 
			
		||||
  robust-predicates@3.0.2: {}
 | 
			
		||||
 | 
			
		||||
  rollup@4.41.1:
 | 
			
		||||
  rollup@4.50.2:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      '@types/estree': 1.0.7
 | 
			
		||||
      '@types/estree': 1.0.8
 | 
			
		||||
    optionalDependencies:
 | 
			
		||||
      '@rollup/rollup-android-arm-eabi': 4.41.1
 | 
			
		||||
      '@rollup/rollup-android-arm64': 4.41.1
 | 
			
		||||
      '@rollup/rollup-darwin-arm64': 4.41.1
 | 
			
		||||
      '@rollup/rollup-darwin-x64': 4.41.1
 | 
			
		||||
      '@rollup/rollup-freebsd-arm64': 4.41.1
 | 
			
		||||
      '@rollup/rollup-freebsd-x64': 4.41.1
 | 
			
		||||
      '@rollup/rollup-linux-arm-gnueabihf': 4.41.1
 | 
			
		||||
      '@rollup/rollup-linux-arm-musleabihf': 4.41.1
 | 
			
		||||
      '@rollup/rollup-linux-arm64-gnu': 4.41.1
 | 
			
		||||
      '@rollup/rollup-linux-arm64-musl': 4.41.1
 | 
			
		||||
      '@rollup/rollup-linux-loongarch64-gnu': 4.41.1
 | 
			
		||||
      '@rollup/rollup-linux-powerpc64le-gnu': 4.41.1
 | 
			
		||||
      '@rollup/rollup-linux-riscv64-gnu': 4.41.1
 | 
			
		||||
      '@rollup/rollup-linux-riscv64-musl': 4.41.1
 | 
			
		||||
      '@rollup/rollup-linux-s390x-gnu': 4.41.1
 | 
			
		||||
      '@rollup/rollup-linux-x64-gnu': 4.41.1
 | 
			
		||||
      '@rollup/rollup-linux-x64-musl': 4.41.1
 | 
			
		||||
      '@rollup/rollup-win32-arm64-msvc': 4.41.1
 | 
			
		||||
      '@rollup/rollup-win32-ia32-msvc': 4.41.1
 | 
			
		||||
      '@rollup/rollup-win32-x64-msvc': 4.41.1
 | 
			
		||||
      '@rollup/rollup-android-arm-eabi': 4.50.2
 | 
			
		||||
      '@rollup/rollup-android-arm64': 4.50.2
 | 
			
		||||
      '@rollup/rollup-darwin-arm64': 4.50.2
 | 
			
		||||
      '@rollup/rollup-darwin-x64': 4.50.2
 | 
			
		||||
      '@rollup/rollup-freebsd-arm64': 4.50.2
 | 
			
		||||
      '@rollup/rollup-freebsd-x64': 4.50.2
 | 
			
		||||
      '@rollup/rollup-linux-arm-gnueabihf': 4.50.2
 | 
			
		||||
      '@rollup/rollup-linux-arm-musleabihf': 4.50.2
 | 
			
		||||
      '@rollup/rollup-linux-arm64-gnu': 4.50.2
 | 
			
		||||
      '@rollup/rollup-linux-arm64-musl': 4.50.2
 | 
			
		||||
      '@rollup/rollup-linux-loong64-gnu': 4.50.2
 | 
			
		||||
      '@rollup/rollup-linux-ppc64-gnu': 4.50.2
 | 
			
		||||
      '@rollup/rollup-linux-riscv64-gnu': 4.50.2
 | 
			
		||||
      '@rollup/rollup-linux-riscv64-musl': 4.50.2
 | 
			
		||||
      '@rollup/rollup-linux-s390x-gnu': 4.50.2
 | 
			
		||||
      '@rollup/rollup-linux-x64-gnu': 4.50.2
 | 
			
		||||
      '@rollup/rollup-linux-x64-musl': 4.50.2
 | 
			
		||||
      '@rollup/rollup-openharmony-arm64': 4.50.2
 | 
			
		||||
      '@rollup/rollup-win32-arm64-msvc': 4.50.2
 | 
			
		||||
      '@rollup/rollup-win32-ia32-msvc': 4.50.2
 | 
			
		||||
      '@rollup/rollup-win32-x64-msvc': 4.50.2
 | 
			
		||||
      fsevents: 2.3.3
 | 
			
		||||
 | 
			
		||||
  rope-sequence@1.3.4: {}
 | 
			
		||||
@@ -6703,7 +6727,7 @@ snapshots:
 | 
			
		||||
  source-map@0.6.1:
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  source-map@0.7.4:
 | 
			
		||||
  source-map@0.7.6:
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  speakingurl@14.0.1: {}
 | 
			
		||||
@@ -6778,11 +6802,11 @@ snapshots:
 | 
			
		||||
  stylus@0.57.0:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      css: 3.0.0
 | 
			
		||||
      debug: 4.4.1
 | 
			
		||||
      debug: 4.4.3
 | 
			
		||||
      glob: 7.2.3
 | 
			
		||||
      safer-buffer: 2.1.2
 | 
			
		||||
      sax: 1.2.4
 | 
			
		||||
      source-map: 0.7.4
 | 
			
		||||
      source-map: 0.7.6
 | 
			
		||||
    transitivePeerDependencies:
 | 
			
		||||
      - supports-color
 | 
			
		||||
    optional: true
 | 
			
		||||
@@ -6982,7 +7006,7 @@ snapshots:
 | 
			
		||||
      debug: 4.4.1
 | 
			
		||||
      es-module-lexer: 1.7.0
 | 
			
		||||
      pathe: 2.0.3
 | 
			
		||||
      vite: 5.4.19(@types/node@22.10.5)(sass@1.83.1)(stylus@0.57.0)
 | 
			
		||||
      vite: 5.4.20(@types/node@22.10.5)(sass@1.83.1)(stylus@0.57.0)
 | 
			
		||||
    transitivePeerDependencies:
 | 
			
		||||
      - '@types/node'
 | 
			
		||||
      - less
 | 
			
		||||
@@ -6994,11 +7018,11 @@ snapshots:
 | 
			
		||||
      - supports-color
 | 
			
		||||
      - terser
 | 
			
		||||
 | 
			
		||||
  vite@5.4.19(@types/node@22.10.5)(sass@1.83.1)(stylus@0.57.0):
 | 
			
		||||
  vite@5.4.20(@types/node@22.10.5)(sass@1.83.1)(stylus@0.57.0):
 | 
			
		||||
    dependencies:
 | 
			
		||||
      esbuild: 0.21.5
 | 
			
		||||
      postcss: 8.4.49
 | 
			
		||||
      rollup: 4.41.1
 | 
			
		||||
      rollup: 4.50.2
 | 
			
		||||
    optionalDependencies:
 | 
			
		||||
      '@types/node': 22.10.5
 | 
			
		||||
      fsevents: 2.3.3
 | 
			
		||||
@@ -7009,7 +7033,7 @@ snapshots:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      '@types/chai': 5.2.2
 | 
			
		||||
      '@vitest/expect': 3.2.2
 | 
			
		||||
      '@vitest/mocker': 3.2.2(vite@5.4.19(@types/node@22.10.5)(sass@1.83.1)(stylus@0.57.0))
 | 
			
		||||
      '@vitest/mocker': 3.2.2(vite@5.4.20(@types/node@22.10.5)(sass@1.83.1)(stylus@0.57.0))
 | 
			
		||||
      '@vitest/pretty-format': 3.2.2
 | 
			
		||||
      '@vitest/runner': 3.2.2
 | 
			
		||||
      '@vitest/snapshot': 3.2.2
 | 
			
		||||
@@ -7027,7 +7051,7 @@ snapshots:
 | 
			
		||||
      tinyglobby: 0.2.14
 | 
			
		||||
      tinypool: 1.1.0
 | 
			
		||||
      tinyrainbow: 2.0.0
 | 
			
		||||
      vite: 5.4.19(@types/node@22.10.5)(sass@1.83.1)(stylus@0.57.0)
 | 
			
		||||
      vite: 5.4.20(@types/node@22.10.5)(sass@1.83.1)(stylus@0.57.0)
 | 
			
		||||
      vite-node: 3.2.2(@types/node@22.10.5)(sass@1.83.1)(stylus@0.57.0)
 | 
			
		||||
      why-is-node-running: 2.3.0
 | 
			
		||||
    optionalDependencies:
 | 
			
		||||
@@ -7071,10 +7095,10 @@ snapshots:
 | 
			
		||||
    transitivePeerDependencies:
 | 
			
		||||
      - supports-color
 | 
			
		||||
 | 
			
		||||
  vue-i18n@9.14.3(vue@3.5.13(typescript@5.7.3)):
 | 
			
		||||
  vue-i18n@9.14.5(vue@3.5.13(typescript@5.7.3)):
 | 
			
		||||
    dependencies:
 | 
			
		||||
      '@intlify/core-base': 9.14.3
 | 
			
		||||
      '@intlify/shared': 9.14.3
 | 
			
		||||
      '@intlify/core-base': 9.14.5
 | 
			
		||||
      '@intlify/shared': 9.14.5
 | 
			
		||||
      '@vue/devtools-api': 6.6.4
 | 
			
		||||
      vue: 3.5.13(typescript@5.7.3)
 | 
			
		||||
 | 
			
		||||
@@ -7122,7 +7146,7 @@ snapshots:
 | 
			
		||||
 | 
			
		||||
  wait-on@8.0.1(debug@4.4.0):
 | 
			
		||||
    dependencies:
 | 
			
		||||
      axios: 1.8.2(debug@4.4.0)
 | 
			
		||||
      axios: 1.12.0(debug@4.4.0)
 | 
			
		||||
      joi: 17.13.3
 | 
			
		||||
      lodash: 4.17.21
 | 
			
		||||
      minimist: 1.2.8
 | 
			
		||||
 
 | 
			
		||||
@@ -57,9 +57,8 @@
 | 
			
		||||
          <Input type="number" placeholder="0" v-bind="componentField" />
 | 
			
		||||
        </FormControl>
 | 
			
		||||
        <FormDescription>
 | 
			
		||||
          Maximum number of conversations that can be auto-assigned to an agent,
 | 
			
		||||
          conversations in "Resolved" or "Closed" states do not count toward this limit. Set to 0
 | 
			
		||||
          for unlimited.
 | 
			
		||||
          Maximum number of conversations that can be auto-assigned to an agent, conversations in
 | 
			
		||||
          "Resolved" or "Closed" states do not count toward this limit. Set to 0 for unlimited.
 | 
			
		||||
        </FormDescription>
 | 
			
		||||
        <FormMessage />
 | 
			
		||||
      </FormItem>
 | 
			
		||||
@@ -97,6 +96,7 @@
 | 
			
		||||
            </SelectTrigger>
 | 
			
		||||
            <SelectContent>
 | 
			
		||||
              <SelectGroup>
 | 
			
		||||
                <SelectItem :value = 0>None</SelectItem>
 | 
			
		||||
                <SelectItem v-for="bh in businessHours" :key="bh.id" :value="bh.id">
 | 
			
		||||
                  {{ bh.name }}
 | 
			
		||||
                </SelectItem>
 | 
			
		||||
@@ -121,6 +121,7 @@
 | 
			
		||||
            </SelectTrigger>
 | 
			
		||||
            <SelectContent>
 | 
			
		||||
              <SelectGroup>
 | 
			
		||||
                <SelectItem :value= 0>None</SelectItem>
 | 
			
		||||
                <SelectItem
 | 
			
		||||
                  v-for="sla in slaStore.options"
 | 
			
		||||
                  :key="sla.value"
 | 
			
		||||
@@ -226,7 +227,11 @@ const fetchBusinessHours = async () => {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const onSubmit = form.handleSubmit((values) => {
 | 
			
		||||
  props.submitForm(values)
 | 
			
		||||
  props.submitForm({
 | 
			
		||||
    ...values,
 | 
			
		||||
    business_hours_id: values.business_hours_id > 0 ? values.business_hours_id : null,
 | 
			
		||||
    sla_policy_id: values.sla_policy_id > 0 ? values.sla_policy_id: null
 | 
			
		||||
  })
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
watch(
 | 
			
		||||
 
 | 
			
		||||
@@ -31,7 +31,15 @@
 | 
			
		||||
          <hr class="mb-2" v-if="showEnvelope" />
 | 
			
		||||
 | 
			
		||||
          <!-- Message Text -->
 | 
			
		||||
          <div
 | 
			
		||||
            v-if="message.content_type === 'text'"
 | 
			
		||||
            class="mb-1 native-html break-all whitespace-pre-wrap"
 | 
			
		||||
            :class="{ 'mb-3': message.attachments.length > 0 }"
 | 
			
		||||
          >
 | 
			
		||||
            {{ sanitizedMessageContent }}
 | 
			
		||||
          </div>
 | 
			
		||||
          <Letter
 | 
			
		||||
            v-else
 | 
			
		||||
            :html="sanitizedMessageContent"
 | 
			
		||||
            :allowedSchemas="['cid', 'https', 'http', 'mailto']"
 | 
			
		||||
            class="mb-1 native-html break-all"
 | 
			
		||||
@@ -94,8 +102,12 @@ const settingsStore = useAppSettingsStore()
 | 
			
		||||
const showQuotedText = ref(false)
 | 
			
		||||
const { t } = useI18n()
 | 
			
		||||
 | 
			
		||||
const participant = computed(() => {
 | 
			
		||||
  return convStore.conversation?.participants?.[props.message.sender_id] ?? {}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
const getAvatar = computed(() => {
 | 
			
		||||
  return convStore.current?.contact?.avatar_url || ''
 | 
			
		||||
  return participant.value?.avatar_url || ''
 | 
			
		||||
})
 | 
			
		||||
const sanitizedMessageContent = computed(() => {
 | 
			
		||||
  let content = props.message.content || ''
 | 
			
		||||
@@ -124,13 +136,14 @@ const nonInlineAttachments = computed(() =>
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
const getFullName = computed(() => {
 | 
			
		||||
  const contact = convStore.current?.contact || {}
 | 
			
		||||
  return `${contact.first_name || ''} ${contact.last_name || ''}`.trim()
 | 
			
		||||
  const firstName = participant.value?.first_name ?? 'User'
 | 
			
		||||
  const lastName = participant.value?.last_name ?? ''
 | 
			
		||||
  return `${firstName} ${lastName}`
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
const avatarFallback = computed(() => {
 | 
			
		||||
  const contact = convStore.current?.contact || {}
 | 
			
		||||
  return (contact.first_name || '').toUpperCase().substring(0, 2)
 | 
			
		||||
  const firstName = participant.value?.first_name ?? 'U'
 | 
			
		||||
  return firstName.toUpperCase().substring(0, 2)
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
const showEnvelope = computed(() => {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,16 +1,18 @@
 | 
			
		||||
import { format, differenceInMinutes, differenceInHours, differenceInDays, differenceInYears } from 'date-fns'
 | 
			
		||||
import { format, differenceInMinutes, differenceInHours, differenceInDays, differenceInMonths, differenceInYears } from 'date-fns'
 | 
			
		||||
 | 
			
		||||
export function getRelativeTime (timestamp, now = new Date()) {
 | 
			
		||||
  try {
 | 
			
		||||
    const mins = differenceInMinutes(now, timestamp)
 | 
			
		||||
    const hours = differenceInHours(now, timestamp)
 | 
			
		||||
    const days = differenceInDays(now, timestamp)
 | 
			
		||||
    const months = differenceInMonths(now, timestamp)
 | 
			
		||||
    const years = differenceInYears(now, timestamp)
 | 
			
		||||
 | 
			
		||||
    if (mins === 0) return 'now'
 | 
			
		||||
    if (mins < 60) return `${mins}m`
 | 
			
		||||
    if (hours < 24) return `${hours}h`
 | 
			
		||||
    if (days < 365) return `${days}d`
 | 
			
		||||
    if (days < 31) return `${days}d`
 | 
			
		||||
    if (months < 12) return `${months}mo`
 | 
			
		||||
    return `${years}y`
 | 
			
		||||
  } catch (error) {
 | 
			
		||||
    console.error('Error parsing time', error, 'timestamp', timestamp)
 | 
			
		||||
 
 | 
			
		||||
@@ -59,18 +59,28 @@
 | 
			
		||||
          </div>
 | 
			
		||||
 | 
			
		||||
          <div class="space-y-2">
 | 
			
		||||
            <Label for="password" class="text-sm font-medium text-foreground">{{
 | 
			
		||||
              t('globals.terms.password')
 | 
			
		||||
            }}</Label>
 | 
			
		||||
            <Input
 | 
			
		||||
              id="password"
 | 
			
		||||
              type="password"
 | 
			
		||||
              autocomplete="current-password"
 | 
			
		||||
              :placeholder="t('auth.enterPassword')"
 | 
			
		||||
              v-model="loginForm.password"
 | 
			
		||||
              :class="{ 'border-destructive': passwordHasError }"
 | 
			
		||||
              class="w-full bg-card border-border text-foreground placeholder:text-muted-foreground rounded py-2 px-3 focus:ring-2 focus:ring-ring focus:border-ring transition-all duration-200 ease-in-out"
 | 
			
		||||
            />
 | 
			
		||||
            <Label for="password" class="text-sm font-medium text-foreground">
 | 
			
		||||
              {{ t('globals.terms.password') }}
 | 
			
		||||
            </Label>
 | 
			
		||||
            <div class="relative">
 | 
			
		||||
              <Input
 | 
			
		||||
                id="password"
 | 
			
		||||
                :type="showPassword ? 'text' : 'password'"
 | 
			
		||||
                autocomplete="current-password"
 | 
			
		||||
                :placeholder="t('auth.enterPassword')"
 | 
			
		||||
                v-model="loginForm.password"
 | 
			
		||||
                :class="{ 'border-destructive': passwordHasError }"
 | 
			
		||||
                class="w-full bg-card border-border text-foreground placeholder:text-muted-foreground rounded py-2 px-3 pr-10 focus:ring-2 focus:ring-ring focus:border-ring transition-all duration-200 ease-in-out"
 | 
			
		||||
              />
 | 
			
		||||
              <button
 | 
			
		||||
                type="button"
 | 
			
		||||
                class="absolute inset-y-0 right-0 flex items-center pr-3 text-muted-foreground hover:text-foreground"
 | 
			
		||||
                @click="showPassword = !showPassword"
 | 
			
		||||
              >
 | 
			
		||||
                <Eye v-if="!showPassword" class="w-5 h-5" />
 | 
			
		||||
                <EyeOff v-else class="w-5 h-5" />
 | 
			
		||||
              </button>
 | 
			
		||||
            </div>
 | 
			
		||||
          </div>
 | 
			
		||||
 | 
			
		||||
          <div class="flex items-center justify-between">
 | 
			
		||||
@@ -126,6 +136,7 @@ import { useI18n } from 'vue-i18n'
 | 
			
		||||
import { EMITTER_EVENTS } from '@/constants/emitterEvents.js'
 | 
			
		||||
import { useAppSettingsStore } from '@/stores/appSettings'
 | 
			
		||||
import AuthLayout from '@/layouts/auth/AuthLayout.vue'
 | 
			
		||||
import { Eye, EyeOff } from 'lucide-vue-next'
 | 
			
		||||
 | 
			
		||||
const emitter = useEmitter()
 | 
			
		||||
const { t } = useI18n()
 | 
			
		||||
@@ -134,6 +145,7 @@ const isLoading = ref(false)
 | 
			
		||||
const router = useRouter()
 | 
			
		||||
const userStore = useUserStore()
 | 
			
		||||
const shakeCard = ref(false)
 | 
			
		||||
const showPassword = ref(false)
 | 
			
		||||
const loginForm = ref({
 | 
			
		||||
  email: '',
 | 
			
		||||
  password: ''
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								go.mod
									
									
									
									
									
								
							@@ -28,7 +28,7 @@ require (
 | 
			
		||||
	github.com/lib/pq v1.10.9
 | 
			
		||||
	github.com/mr-karan/balance v0.0.0-20250317053523-d32c6ade6cf1
 | 
			
		||||
	github.com/redis/go-redis/v9 v9.5.5
 | 
			
		||||
	github.com/rhnvrm/simples3 v0.9.1
 | 
			
		||||
	github.com/rhnvrm/simples3 v0.9.2
 | 
			
		||||
	github.com/spf13/pflag v1.0.5
 | 
			
		||||
	github.com/stretchr/testify v1.10.0
 | 
			
		||||
	github.com/valyala/fasthttp v1.62.0
 | 
			
		||||
@@ -54,7 +54,7 @@ require (
 | 
			
		||||
	github.com/fasthttp/router v1.5.0 // indirect
 | 
			
		||||
	github.com/fsnotify/fsnotify v1.6.0 // indirect
 | 
			
		||||
	github.com/go-jose/go-jose/v4 v4.0.5 // indirect
 | 
			
		||||
	github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1 // indirect
 | 
			
		||||
	github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
 | 
			
		||||
	github.com/gogs/chardet v0.0.0-20211120154057-b7413eaefb8f // indirect
 | 
			
		||||
	github.com/jaytaylor/html2text v0.0.0-20230321000545-74c2419ad056 // indirect
 | 
			
		||||
	github.com/klauspost/compress v1.18.0 // indirect
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										6
									
								
								go.sum
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								go.sum
									
									
									
									
									
								
							@@ -54,8 +54,8 @@ github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpv
 | 
			
		||||
github.com/go-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg=
 | 
			
		||||
github.com/go-test/deep v1.1.0 h1:WOcxcdHcvdgThNXjw0t76K42FXTU7HpNQWHpA2HHNlg=
 | 
			
		||||
github.com/go-test/deep v1.1.0/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncVwcsE=
 | 
			
		||||
github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1 h1:TQcrn6Wq+sKGkpyPvppOz99zsMBaUOKXq6HSv655U1c=
 | 
			
		||||
github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
 | 
			
		||||
github.com/go-viper/mapstructure/v2 v2.4.0 h1:EBsztssimR/CONLSZZ04E8qAkxNYq4Qp9LvH92wZUgs=
 | 
			
		||||
github.com/go-viper/mapstructure/v2 v2.4.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
 | 
			
		||||
github.com/gogs/chardet v0.0.0-20211120154057-b7413eaefb8f h1:3BSP1Tbs2djlpprl7wCLuiqMaUh5SJkkzI2gDs+FgLs=
 | 
			
		||||
github.com/gogs/chardet v0.0.0-20211120154057-b7413eaefb8f/go.mod h1:Pcatq5tYkCW2Q6yrR2VRHlbHpZ/R4/7qyL1TCF7vl14=
 | 
			
		||||
github.com/golang/mock v1.4.4 h1:l75CXGRSwbaYNpl/Z2X1XIIAMSCquvXgpVZDhwEIJsc=
 | 
			
		||||
@@ -142,6 +142,8 @@ github.com/redis/go-redis/v9 v9.5.5 h1:51VEyMF8eOO+NUHFm8fpg+IOc1xFuFOhxs3R+kPu1
 | 
			
		||||
github.com/redis/go-redis/v9 v9.5.5/go.mod h1:hdY0cQFCN4fnSYT6TkisLufl/4W5UIXyv0b/CLO2V2M=
 | 
			
		||||
github.com/rhnvrm/simples3 v0.9.1 h1:pYfEe2wTjx8B2zFzUdy4kZn3I3Otd9ZvzIhHkFR85kE=
 | 
			
		||||
github.com/rhnvrm/simples3 v0.9.1/go.mod h1:Y+3vYm2V7Y4VijFoJHHTrja6OgPrJ2cBti8dPGkC3sA=
 | 
			
		||||
github.com/rhnvrm/simples3 v0.9.2 h1:XrwsiMnwWf7t/kskvhMYXW6keqp5u3u6t5Va3ltzCQI=
 | 
			
		||||
github.com/rhnvrm/simples3 v0.9.2/go.mod h1:Y+3vYm2V7Y4VijFoJHHTrja6OgPrJ2cBti8dPGkC3sA=
 | 
			
		||||
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
 | 
			
		||||
github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis=
 | 
			
		||||
github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
 | 
			
		||||
 
 | 
			
		||||
@@ -1024,6 +1024,7 @@ func (m *Manager) SendCSATReply(actorUserID int, conversation models.Conversatio
 | 
			
		||||
 | 
			
		||||
// DeleteConversation deletes a conversation.
 | 
			
		||||
func (m *Manager) DeleteConversation(uuid string) error {
 | 
			
		||||
	m.lo.Info("deleting conversation", "uuid", uuid)
 | 
			
		||||
	if _, err := m.q.DeleteConversation.Exec(uuid); err != nil {
 | 
			
		||||
		m.lo.Error("error deleting conversation", "error", err)
 | 
			
		||||
		return envelope.NewError(envelope.GeneralError, m.i18n.Ts("globals.messages.errorDeleting", "name", m.i18n.Ts("globals.terms.conversation")), nil)
 | 
			
		||||
 
 | 
			
		||||
@@ -639,7 +639,7 @@ func (m *Manager) processIncomingMessage(in models.IncomingMessage) error {
 | 
			
		||||
	}
 | 
			
		||||
	in.Message.SenderID = in.Contact.ID
 | 
			
		||||
 | 
			
		||||
	// Conversations exists for this message?
 | 
			
		||||
	// Conversation already exists for this message? Skip if it does.
 | 
			
		||||
	conversationID, err := m.findConversationID([]string{in.Message.SourceID.String})
 | 
			
		||||
	if err != nil && err != errConversationNotFound {
 | 
			
		||||
		return err
 | 
			
		||||
@@ -654,10 +654,16 @@ func (m *Manager) processIncomingMessage(in models.IncomingMessage) error {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Upload message attachments.
 | 
			
		||||
	if err := m.uploadMessageAttachments(&in.Message); err != nil {
 | 
			
		||||
		// Log error but continue processing.
 | 
			
		||||
		m.lo.Error("error uploading message attachments", "message_source_id", in.Message.SourceID, "error", err)
 | 
			
		||||
	// Upload message attachments, on failure delete the conversation if it was just created for this message.
 | 
			
		||||
	if upErr := m.uploadMessageAttachments(&in.Message); upErr != nil {
 | 
			
		||||
		m.lo.Error("error uploading message attachments", "message_source_id", in.Message.SourceID, "error", upErr)
 | 
			
		||||
		if isNewConversation && in.Message.ConversationUUID != "" {
 | 
			
		||||
			m.lo.Info("deleting conversation as message attachment upload failed", "conversation_uuid", in.Message.ConversationUUID, "message_source_id", in.Message.SourceID)
 | 
			
		||||
			if err := m.DeleteConversation(in.Message.ConversationUUID); err != nil {
 | 
			
		||||
				return fmt.Errorf("error deleting conversation after message attachment upload failure: %w", err)
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		return fmt.Errorf("error uploading message attachments: %w", upErr)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Insert message.
 | 
			
		||||
@@ -781,12 +787,11 @@ func (c *Manager) generateMessagesQuery(baseQuery string, qArgs []interface{}, p
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// uploadMessageAttachments uploads all attachments for a message.
 | 
			
		||||
func (m *Manager) uploadMessageAttachments(message *models.Message) []error {
 | 
			
		||||
func (m *Manager) uploadMessageAttachments(message *models.Message) error {
 | 
			
		||||
	if len(message.Attachments) == 0 {
 | 
			
		||||
		return nil
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	var uploadErr []error
 | 
			
		||||
	for _, attachment := range message.Attachments {
 | 
			
		||||
		// Check if this attachment already exists by the content ID, as inline images can be repeated across conversations.
 | 
			
		||||
		contentID := attachment.ContentID
 | 
			
		||||
@@ -833,21 +838,20 @@ func (m *Manager) uploadMessageAttachments(message *models.Message) []error {
 | 
			
		||||
			[]byte("{}"), /** meta **/
 | 
			
		||||
		)
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			uploadErr = append(uploadErr, err)
 | 
			
		||||
			m.lo.Error("failed to upload attachment", "name", attachment.Name, "error", err)
 | 
			
		||||
			return fmt.Errorf("failed to upload media %s: %w", attachment.Name, err)
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		// If the attachment is an image, generate and upload thumbnail.
 | 
			
		||||
		// If the attachment is an image, generate and upload a thumbnail. Log any errors and continue, as thumbnail generation failure should not block message processing.
 | 
			
		||||
		attachmentExt := strings.TrimPrefix(strings.ToLower(filepath.Ext(attachment.Name)), ".")
 | 
			
		||||
		if slices.Contains(image.Exts, attachmentExt) {
 | 
			
		||||
			if err := m.uploadThumbnailForMedia(media, attachment.Content); err != nil {
 | 
			
		||||
				uploadErr = append(uploadErr, err)
 | 
			
		||||
				m.lo.Error("error uploading thumbnail", "error", err)
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		message.Media = append(message.Media, media)
 | 
			
		||||
	}
 | 
			
		||||
	return uploadErr
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// findOrCreateConversation finds or creates a conversation for the given message.
 | 
			
		||||
 
 | 
			
		||||
@@ -885,7 +885,7 @@ func (m *Manager) evaluateSLA(appliedSLA models.AppliedSLA) error {
 | 
			
		||||
 | 
			
		||||
	// If first response is not breached and not met, check the deadline and set them.
 | 
			
		||||
	if !appliedSLA.FirstResponseBreachedAt.Valid && !appliedSLA.FirstResponseMetAt.Valid {
 | 
			
		||||
		m.lo.Debug("checking deadline", "deadline", appliedSLA.FirstResponseDeadlineAt, "met_at", appliedSLA.ConversationFirstResponseAt.Time, "metric", MetricFirstResponse)
 | 
			
		||||
		m.lo.Debug("checking deadline", "deadline", appliedSLA.FirstResponseDeadlineAt.Time, "met_at", appliedSLA.ConversationFirstResponseAt.Time, "metric", MetricFirstResponse)
 | 
			
		||||
		if err := checkDeadline(appliedSLA.FirstResponseDeadlineAt.Time, appliedSLA.ConversationFirstResponseAt, MetricFirstResponse); err != nil {
 | 
			
		||||
			return err
 | 
			
		||||
		}
 | 
			
		||||
@@ -893,7 +893,7 @@ func (m *Manager) evaluateSLA(appliedSLA models.AppliedSLA) error {
 | 
			
		||||
 | 
			
		||||
	// If resolution is not breached and not met, check the deadine and set them.
 | 
			
		||||
	if !appliedSLA.ResolutionBreachedAt.Valid && !appliedSLA.ResolutionMetAt.Valid {
 | 
			
		||||
		m.lo.Debug("checking deadline", "deadline", appliedSLA.ResolutionDeadlineAt, "met_at", appliedSLA.ConversationResolvedAt.Time, "metric", MetricResolution)
 | 
			
		||||
		m.lo.Debug("checking deadline", "deadline", appliedSLA.ResolutionDeadlineAt.Time, "met_at", appliedSLA.ConversationResolvedAt.Time, "metric", MetricResolution)
 | 
			
		||||
		if err := checkDeadline(appliedSLA.ResolutionDeadlineAt.Time, appliedSLA.ConversationResolvedAt, MetricResolution); err != nil {
 | 
			
		||||
			return err
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user