nucliadb-admin-assets 1.0.0.post2528__py3-none-any.whl → 1.0.0.post2542__py3-none-any.whl
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.
Potentially problematic release.
This version of nucliadb-admin-assets might be problematic. Click here for more details.
- nucliadb_admin_assets/555.0737f73de2c5f95b.js +1 -0
- nucliadb_admin_assets/assets/deployment/app-config.json +1 -1
- nucliadb_admin_assets/assets/i18n/common/ca.json +24 -9
- nucliadb_admin_assets/assets/i18n/common/en.json +24 -9
- nucliadb_admin_assets/assets/i18n/common/es.json +24 -9
- nucliadb_admin_assets/assets/i18n/common/fr.json +24 -3
- nucliadb_admin_assets/assets/i18n/sync/ca.json +3 -1
- nucliadb_admin_assets/assets/i18n/sync/en.json +3 -1
- nucliadb_admin_assets/assets/i18n/sync/es.json +3 -1
- nucliadb_admin_assets/assets/i18n/sync/fr.json +3 -1
- nucliadb_admin_assets/index.html +4 -4
- nucliadb_admin_assets/main.21f164eb80681c73.js +1 -0
- nucliadb_admin_assets/runtime.b19cae22ef2dfcf1.js +1 -0
- nucliadb_admin_assets/styles.2cd68db8a5f48d84.css +1 -0
- {nucliadb_admin_assets-1.0.0.post2528.dist-info → nucliadb_admin_assets-1.0.0.post2542.dist-info}/METADATA +1 -1
- {nucliadb_admin_assets-1.0.0.post2528.dist-info → nucliadb_admin_assets-1.0.0.post2542.dist-info}/RECORD +19 -19
- nucliadb_admin_assets/555.92b9f6822a7de6c8.js +0 -1
- nucliadb_admin_assets/main.dcd5944f38c06d0d.js +0 -1
- nucliadb_admin_assets/runtime.cbd4b07776ed8d84.js +0 -1
- nucliadb_admin_assets/styles.93af2737f32fdfdf.css +0 -1
- {nucliadb_admin_assets-1.0.0.post2528.dist-info → nucliadb_admin_assets-1.0.0.post2542.dist-info}/WHEEL +0 -0
- {nucliadb_admin_assets-1.0.0.post2528.dist-info → nucliadb_admin_assets-1.0.0.post2542.dist-info}/top_level.txt +0 -0
- {nucliadb_admin_assets-1.0.0.post2528.dist-info → nucliadb_admin_assets-1.0.0.post2542.dist-info}/zip-safe +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunknucliadb_admin=self.webpackChunknucliadb_admin||[]).push([[555],{5555:(Qn,L,l)=>{l.r(L),l.d(L,{SYNC_ROUTES:()=>Jn});var c=l(2306),R=l(419),k=l(1413),he=l(1584),v=l(5964),d=l(5558),E=l(6977);const F="assets/connector-logos";var $=function(o){return o.PENDING="PENDING",o.PROCESSING="PROCESSING",o.UPLOADED="UPLOADED",o.ERROR="ERROR",o}($||{}),M=l(4412),g=l(6354),me=l(7468),_=l(6697),f=l(7673),x=l(8141),X=l(9437),b=l(4760);const ye={id:"sitemap",title:"Sitemap",logo:`${F}/sitemap.svg`,description:"Upload web pages from a sitemap.xml",permanentSyncOnly:!0,factory:()=>new _e};class _e{constructor(){this.hasServerSideAuth=!1,this.isExternal=!0,this.allowToSelectFolders=!1,this.canSyncSecurityGroups=!1}getStaticFolders(){return[{uuid:"",title:"Sitemap",originalId:"SITEMAP",metadata:{},status:$.PENDING}]}getParametersSections(){return(0,f.of)([{id:"url",title:"sync.connectors.sitemap.url.section-title",fields:[{id:"sitemap",label:"sync.connectors.sitemap.url.label",type:"text",required:!0,pattern:/.+\.(ashx|xml)/,placeholder:"https://my-website.com/sitemap.xml"}]},{id:"restrict-indexation",title:"sync.connectors.common.restrict-indexation.title",description:"sync.connectors.common.restrict-indexation.description",badge:"generic.badge.optional",fields:[{id:"cssSelector",label:"sync.connectors.common.css.label",help:"sync.connectors.common.css.help",type:"text",required:!1,placeholder:".main-content"},{id:"xpathSelector",label:"sync.connectors.common.xpath.label",help:"sync.connectors.common.xpath.help",type:"text",required:!1,placeholder:'//div[@id="main"]'}]},{id:"web-scraping-helpers",title:"sync.connectors.common.web-scraping-helpers.title",description:"sync.connectors.common.web-scraping-helpers.description",badge:"generic.badge.advanced",fields:[{id:"localExtract",label:"sync.connectors.common.local-extract.label",help:"sync.connectors.common.local-extract.help",type:"boolean",required:!1},{id:"keepQueryString",label:"sync.connectors.common.keep-querystring.label",help:"sync.connectors.common.keep-querystring.help",type:"boolean",required:!1},{id:"headers",label:"sync.connectors.common.headers.label",help:"sync.connectors.common.headers.help",type:"table",required:!1},{id:"cookies",label:"sync.connectors.common.cookies.label",help:"sync.connectors.common.cookies.help",type:"table",required:!1},{id:"localstorage",label:"sync.connectors.common.localstorage.label",help:"sync.connectors.common.localstorage.help",type:"table",required:!1}]}])}handleParameters(r){}getParametersValues(){return{}}}const fe={id:"folder",title:"Folder",logo:`${F}/folder.svg`,description:"Upload a folder from your device",factory:()=>new Ce};class Ce{constructor(){this.hasServerSideAuth=!1,this.isExternal=!1,this.allowToSelectFolders=!1,this.files=[],this.path="",this.canSyncSecurityGroups=!1}getStaticFolders(){return this.path?[{uuid:"",title:this.path,originalId:this.path,metadata:{},status:$.PENDING}]:[]}getParametersSections(){return(0,f.of)([{id:"local-path",title:"sync.connectors.folder.local-path.title",description:"sync.connectors.folder.local-path.description",fields:[{id:"path",label:"sync.connectors.folder.local-path.field-label",placeholder:"/Users/alice/Documents or C:\\Users\\Alice\\Documents",type:"text",required:!0}]}])}handleParameters(r){r.path&&(this.path=r.path)}getParametersValues(){return{path:this.path}}}class D{constructor(r,i,t){this.hasServerSideAuth=!0,this.isExternal=!0,this.allowToSelectFolders=!1,this.resumable=!1,this.isCloud=!0,this.canSyncSecurityGroups="gdrive"===r,this.name=r,this.id=i,this.path=t}getParametersSections(){return(0,f.of)([{id:"folder",title:"sync.connectors.oauth.folder.title",fields:[{id:"sync_root_path",label:"sync.connectors.oauth.path.label",type:"text",required:!0}]}])}handleParameters(r){r.path&&(this.path=r.path)}getParametersValues(){return{path:this.path}}getStaticFolders(){return[]}}const J="SHAREPOINT_SITE_NAME";class be extends D{constructor(r,i,t){super(r,i,t)}getParametersSections(){return(0,f.of)([{id:"account",title:"sync.connectors.sharepoint.account.title",fields:[{id:"site_name",label:"sync.connectors.sharepoint.site.label",type:"text",required:!0}]}])}handleParameters(r){localStorage.setItem(J,r.site_name)}getParametersValues(){return{...super.getParametersValues(),site_name:localStorage.getItem(J)}}}const ve={id:"confluence",title:"Confluence",logo:`${F}/confluence.svg`,description:"Collaboration platform developed by Atlassian",helpUrl:"https://docs.nuclia.dev/docs/docs/using/sync-agent#confluence-connector-usage",deprecated:!0,factory:()=>new Se},Q="CONFLUENCE_TOKEN";class Se{constructor(){this.hasServerSideAuth=!1,this.isExternal=!1,this.allowToSelectFolders=!0,this.canSyncSecurityGroups=!1}getParametersSections(){return(0,f.of)([{id:"account",title:"sync.connectors.confluence.account.title",description:"sync.connectors.confluence.account.description",fields:[{id:"url",label:"sync.connectors.confluence.url.label",type:"text",placeholder:"https://my-site.atlassian.net/wiki",required:!0},{id:"user",label:"sync.connectors.confluence.user.label",type:"text",placeholder:"me@mycompany.com",required:!0},{id:"token",label:"sync.connectors.confluence.token.label",type:"text",required:!0}]}])}handleParameters(r){localStorage.setItem(Q,r.token)}getParametersValues(){return{token:localStorage.getItem(Q)}}getStaticFolders(){return[]}}const xe={id:"rss",title:"RSS",logo:`${F}/rss.svg`,description:"Upload web pages from a RSS feed",permanentSyncOnly:!0,factory:()=>new Te};class Te{constructor(){this.hasServerSideAuth=!1,this.isExternal=!0,this.allowToSelectFolders=!1,this.canSyncSecurityGroups=!1}getStaticFolders(){return[{uuid:"",title:"RSS",originalId:"rss",metadata:{},status:$.PENDING}]}getParametersSections(){return(0,f.of)([{id:"url",title:"sync.connectors.rss.url.label",fields:[{id:"url",label:"sync.connectors.rss.url.label",type:"text",required:!0,placeholder:"https://rss-feed-url"}]},{id:"restrict-indexation",title:"sync.connectors.common.restrict-indexation.title",description:"sync.connectors.common.restrict-indexation.description",badge:"generic.badge.optional",fields:[{id:"cssSelector",label:"sync.connectors.common.css.label",help:"sync.connectors.common.css.help",type:"text",required:!1,placeholder:".main-content"},{id:"xpathSelector",label:"sync.connectors.common.xpath.label",help:"sync.connectors.common.xpath.help",type:"text",required:!1,placeholder:'//div[@id="main"]'}]},{id:"web-scraping-helpers",title:"sync.connectors.common.web-scraping-helpers.title",description:"sync.connectors.common.web-scraping-helpers.description",badge:"generic.badge.advanced",fields:[{id:"localExtract",label:"sync.connectors.common.local-extract.label",help:"sync.connectors.common.local-extract.help",type:"boolean",required:!1},{id:"headers",label:"sync.connectors.common.headers.label",help:"sync.connectors.common.headers.help",type:"table",required:!1},{id:"cookies",label:"sync.connectors.common.cookies.label",help:"sync.connectors.common.cookies.help",type:"table",required:!1},{id:"localstorage",label:"sync.connectors.common.localstorage.label",help:"sync.connectors.common.localstorage.help",type:"table",required:!1}]}])}handleParameters(r){}getParametersValues(){return{}}}var Fe=l(5512);const Ie={id:"sitefinity",title:"Sitefinity",logo:`${F}/sitefinity.svg`,description:"Progress Sitefinity CMS",permanentSyncOnly:!0,factory:()=>new Re};class Re{constructor(){this.hasServerSideAuth=!1,this.isExternal=!0,this.allowToSelectFolders=!1,this.canSyncSecurityGroups=!1}getStaticFolders(){return[{uuid:"",title:"Sitefinity",originalId:"SITEFINITY",metadata:{},status:$.PENDING}]}getParametersSections(){return(0,f.of)([{id:"url",title:"sync.connectors.sitefinity.url.section-title",fields:[{id:"url",label:"sync.connectors.sitefinity.url.label",type:"text",required:!0,placeholder:"https://my-website.com"},{id:"apikey",label:"sync.connectors.sitefinity.apikey.label",type:"text",required:!0,help:"sync.connectors.sitefinity.apikey.help",secret:!0},{id:"siteId",label:"sync.connectors.sitefinity.site-id.label",type:"text",required:!0,help:"sync.connectors.sitefinity.site-id.help"},{id:"extraContentTypes",label:"sync.connectors.sitefinity.extra.label",type:"text",required:!1,help:"sync.connectors.sitefinity.extra.help"},{id:"extraContentTypesOnly",label:"sync.connectors.sitefinity.extra-only.label",type:"boolean",required:!1,help:"sync.connectors.sitefinity.extra-only.help"}]},{id:"scraping",title:"sync.connectors.sitefinity.web-scraping.label",description:"sync.connectors.sitefinity.web-scraping.help",fields:[{id:"webScraping",label:"sync.connectors.sitefinity.web-scraping.label",type:"boolean",required:!1},{id:"webScrapingCssSelector",label:"sync.connectors.common.css.label",type:"text",required:!1,help:"sync.connectors.common.css.help"},{id:"localExtract",label:"sync.connectors.common.local-extract.label",help:"sync.connectors.common.local-extract.help",type:"boolean",required:!1}]}])}handleParameters(r){}getParametersValues(){return{}}}var Me=l(9330);const W="http://localhost:8090",H="NUCLIA_SYNC_SERVER",z="NUCLIA_SYNC_SERVER_TYPE";let j=(()=>{var o;class r{constructor(t,n,s,a,h){this.sdk=t,this.http=n,this.config=s,this.notificationService=a,this.features=h,this.connectors={google_oauth:{definition:{id:"google_oauth",provider:"google_oauth",title:"Google Drive",logo:`${F}/gdrive.svg`,description:"File storage and synchronization service developed by Google",permanentSyncOnly:!0,cloud:!0,factory:m=>new D("google_oauth",m?.id||"",this.config.getOAuthServer())}},onedrive:{definition:{id:"onedrive",title:"One Drive",logo:`${F}/onedrive.svg`,description:"Microsoft OneDrive file hosting service",permanentSyncOnly:!0,deprecated:!0,factory:m=>new D("onedrive",m?.id||"",this.config.getOAuthServer())}},sharepoint:{definition:{id:"sharepoint",title:"SharePoint",logo:`${F}/sharepoint.svg`,description:"Microsoft Sharepoint service",permanentSyncOnly:!0,deprecated:!0,factory:m=>new be("sharepoint",m?.id||"",this.config.getOAuthServer())}},dropbox:{definition:{id:"dropbox",title:"Dropbox",logo:`${F}/dropbox.svg`,description:"File storage and synchronization service developed by Dropbox",permanentSyncOnly:!0,deprecated:!0,factory:m=>new D("dropbox",m?.id||"",this.config.getOAuthServer())}},folder:{definition:fe},sitemap:{definition:ye},confluence:{definition:ve},rss:{definition:xe},sitefinity:{definition:Ie}},this.connectorsObs=new M.t(Object.values(this.connectors).map(m=>m.definition).filter(m=>!m.deprecated)).pipe((0,d.n)(m=>this.features.unstable.sitefinityConnector.pipe((0,g.T)(S=>m.filter(I=>S||"sitefinity"!==I.id))))),this._syncServer=new M.t({serverUrl:localStorage.getItem(H)||W,type:localStorage.getItem(z)||"desktop"}),this.syncServer=this._syncServer.asObservable(),this._isServerDown=new M.t(!0),this._currentSyncId=new M.t(null),this._syncCache=new M.t({}),this._cacheUpdated=new M.t((new Date).toISOString()),this._isSyncing=new M.t({}),this.isServerDown=this._isServerDown.asObservable(),this.currentSyncId=this._currentSyncId.asObservable(),this.serverHeaders={token:this.sdk.nuclia.auth.getToken(!0)},this.cacheUpdated=this._cacheUpdated.asObservable(),this.isSyncing=this._isSyncing.asObservable(),this._useCloudSync=new M.t(!1),this.useCloudSync=this._useCloudSync.asObservable(),(0,me.p)([this.syncServer.pipe((0,_.s)(1)),this.features.unstable.cloudSyncService.pipe((0,_.s)(1))]).subscribe(([m,S])=>{"cloud"===m.type&&S&&this._useCloudSync.next(!0)})}getConnectorDefinition(t){return this.connectors[t]?.definition}getConnector(t,n){const s=this.connectors[t];s.instances||(s.instances={});const a=s.instances;return a[n]||(a[n]=s.definition.factory({id:n})),a[n]}getCurrentSync(){return this.currentSyncId.pipe((0,v.p)(t=>!!t),(0,d.n)(t=>this.getSync(t)))}syncConfigtoISyncEntity(t){return{id:t.id,title:t.name,connector:{name:t.external_connection.provider,parameters:t},lastSyncGMT:void 0,disabled:!1,isCloud:!0}}getSync(t){const n=this._syncCache.getValue();return n[t]?(0,f.of)(n[t]):this._useCloudSync.getValue()?this.sdk.currentKb.pipe((0,_.s)(1),(0,d.n)(s=>s.syncManager.getConfig(t)),(0,g.T)(s=>({...this.syncConfigtoISyncEntity(s),kbId:s.kb_id,connectorId:s.external_connection.provider}))):this.http.get(`${this._syncServer.getValue().serverUrl}/sync/${t}`,{headers:this.serverHeaders}).pipe((0,x.M)(s=>{n[t]=s,this._syncCache.next(n)}))}addSync(t){return this.sdk.currentKb.pipe((0,_.s)(1),(0,d.n)(n=>this.sdk.nuclia.options.standalone?(0,f.of)({...t,kb:{...this.sdk.nuclia.options,knowledgeBox:n.id}}):this.getNucliaKey(n).pipe((0,g.T)(s=>({...t,kb:{zone:this.sdk.nuclia.options.zone,backend:this.sdk.nuclia.options.backend,knowledgeBox:s.kbid,apiKey:s.token}})))),(0,d.n)(n=>this.http.post(`${this._syncServer.getValue().serverUrl}/sync`,n,{headers:this.serverHeaders})),(0,x.M)(()=>{const n=this._syncCache.getValue();n[t.id]=t,this._syncCache.next(n),this._cacheUpdated.next((new Date).toISOString())}),(0,g.T)(()=>{}))}getOAuthUrl(t){return this.sdk.currentKb.pipe((0,_.s)(1),(0,d.n)(n=>n.syncManager.createExternalConnection(t)),(0,g.T)(n=>n.authorize_url))}addCloudSync(t){return this.sdk.currentKb.pipe((0,_.s)(1),(0,d.n)(n=>n.syncManager.createConfig(t)),(0,x.M)(n=>{const s=this._syncCache.getValue();s[n.id]=this.syncConfigtoISyncEntity(n),this._syncCache.next(s),this._cacheUpdated.next((new Date).toISOString())}))}updateSync(t,n,s){return this.http.patch(`${this._syncServer.getValue().serverUrl}/sync/${t}`,{...n,lastSyncGMT:s?"1970-01-01":void 0},{headers:this.serverHeaders}).pipe((0,x.M)(()=>{const a=this._syncCache.getValue();a[t]={...a[t],...n},this._syncCache.next(a),this._cacheUpdated.next((new Date).toISOString())}))}deleteSync(t){return(this._useCloudSync.getValue()?this.sdk.currentKb.pipe((0,_.s)(1),(0,d.n)(n=>n.syncManager.deleteConfig(t))):this.http.delete(`${this._syncServer.getValue().serverUrl}/sync/${t}`,{headers:this.serverHeaders})).pipe((0,x.M)(()=>{const n=this._syncCache.getValue();delete n[t],this._syncCache.next(n),this._cacheUpdated.next((new Date).toISOString())}))}getSyncsForKB(t,n){return n?this.sdk.currentKb.pipe((0,_.s)(1),(0,d.n)(s=>s.syncManager.getConfigs().pipe((0,g.T)(a=>a.filter(h=>h.kb_id===t).map(h=>({id:h.id,kbId:h.kb_id,title:h.name,connectorId:h.external_connection.provider,connector:this.getConnector(h.external_connection.provider,h.id),lastSyncGMT:void 0,disabled:!1})))))):this.isServerDown.pipe((0,d.n)(s=>s?(0,f.of)([]):this.http.get(`${this._syncServer.getValue().serverUrl}/sync/kb/${t}`).pipe((0,g.T)(a=>a.map(h=>({...h,kbId:t,connectorId:h.connector,connector:this.getConnector(h.connector,"")})).filter(h=>h.kbId===t)))))}getFiles(t){return this.http.get(`${this._syncServer.getValue().serverUrl}/sync/${this.getCurrentSyncId()}/files/search${t?`?query=${t}`:""}`)}getFolders(t){return this.http.get(`${this._syncServer.getValue().serverUrl}/sync/${this.getCurrentSyncId()}/folders`,{headers:this.serverHeaders})}canSelectFiles(t){const n=this._syncCache.getValue()[t];return n&&!("sitemap"===n.connector.name||"folder"===n.connector.name||"rss"===n.connector.name)}getNucliaKey(t){return t.createKeyForService({title:"Sync",role:"SCONTRIBUTOR"},this.getExpirationDate()).pipe((0,g.T)(n=>({...n,kbid:t.id})))}getExpirationDate(){const t=new Date;return t.setFullYear(t.getFullYear()+1),Math.floor(t.getTime()/1e3).toString()}serverStatus(t){return this.useCloudSync.pipe((0,d.n)(n=>n?(0,f.of)({running:!0}):this.http.get(`${t}/status`).pipe((0,X.W)(()=>(0,f.of)({running:!1,logs:["Server down"]})),(0,g.T)(s=>((s.logs||[]).forEach(a=>console.log("[SERVER]",a)),{running:s.running})))))}setSyncServer(t,n){localStorage.setItem(H,t||""),localStorage.setItem(z,n),this._syncServer.next({serverUrl:t||"",type:n}),t&&this.serverStatus(t).subscribe(s=>{this.setServerStatus(!s.running)})}getCurrentSyncId(){return this._currentSyncId.getValue()}setCurrentSyncId(t){this._currentSyncId.next(t)}clearCurrentSourceId(){this._currentSyncId.next(null)}getLogs(t,n){return this.http.get(`${this._syncServer.getValue().serverUrl}/logs${t?"/"+t:""}${n?"/"+n:""}`).pipe((0,g.T)(s=>s.sort((a,h)=>{const m=(0,Fe.T)(a.createdAt,h.createdAt);return 0===m?a.action.startsWith("start")?1:-1:m})))}clearLogs(){return this.http.delete(`${this._syncServer.getValue().serverUrl}/logs`)}getSyncServer(){return this._syncServer.getValue().serverUrl}setServerStatus(t){t&&!this._isServerDown.value&&this.notificationService.pushNotifications([{type:"sync-server",data:[],timestamp:(new Date).toISOString(),unread:!0,failure:!0}]),this._isServerDown.next(t)}triggerSync(t,n=!1){return this._isSyncing.next({...this._isSyncing.value,[t]:!0}),(n?this.updateSync(t,{},!0).pipe((0,g.T)(()=>!0)):(0,f.of)(!0)).pipe((0,d.n)(()=>this.http.get(`${this._syncServer.getValue().serverUrl}/sync/execute/${t}`)),(0,x.M)(()=>this._isSyncing.next({...this._isSyncing.value,[t]:!1})),(0,X.W)(a=>(console.warn("Trigger sync failed:",a),this._isSyncing.next({...this._isSyncing.value,[t]:!1}),(0,f.of)())))}updateUseCloudSync(t){this._useCloudSync.next(t)}static#e=o=()=>(this.\u0275fac=function(n){return new(n||r)(c.KVO(b.ok),c.KVO(Me.Qq),c.KVO(b.M),c.KVO(b.JE),c.KVO(b.Dr))},this.\u0275prov=c.jDH({token:r,factory:r.\u0275fac,providedIn:"root"}))}return o(),r})();var e=l(2898);let ke=(()=>{var o;class r{constructor(){this.unsubscribeAll=new k.B,this.syncService=(0,c.WQX)(j)}ngOnInit(){let t=!1,n=0;(0,he.O)(0,5e3).pipe((0,v.p)(()=>{const a=n>=(t?12:0);return n++,a}),(0,d.n)(()=>this.syncService.serverStatus(this.syncService.getSyncServer())),(0,E.Q)(this.unsubscribeAll)).subscribe(s=>{t=s.running,n=0,this.syncService.setServerStatus(!t)})}ngOnDestroy(){this.unsubscribeAll.next(),this.unsubscribeAll.complete()}static#e=o=()=>(this.\u0275fac=function(n){return new(n||r)},this.\u0275cmp=e.VBU({type:r,selectors:[["ng-component"]],decls:1,vars:0,template:function(n,s){1&n&&e.nrm(0,"router-outlet")},dependencies:[R.n3],encapsulation:2,changeDetection:0}))}return o(),r})();var P=l(7705),p=l(8743),$e=l(9874),G=l(4929);let Pe=(()=>{var o;class r{constructor(){this.title="",this.logo="",this.disabled=!1,this.selectConnector=new e.bkB}static#e=o=()=>(this.\u0275fac=function(n){return new(n||r)},this.\u0275cmp=e.VBU({type:r,selectors:[["nsy-connector"]],inputs:{title:"title",logo:"logo",disabled:[2,"disabled","disabled",P.L39]},outputs:{selectConnector:"selectConnector"},decls:5,vars:3,consts:[[3,"cardClick","disabled"],[1,"connector"],["size","large",3,"path"]],template:function(n,s){1&n&&(e.j41(0,"pa-card",0),e.bIt("cardClick",function(h){return s.selectConnector.emit(h)}),e.j41(1,"div",1),e.nrm(2,"pa-icon",2),e.j41(3,"div"),e.EFF(4),e.k0s()()()),2&n&&(e.Y8G("disabled",s.disabled),e.R7$(2),e.Y8G("path",s.logo),e.R7$(2),e.JRh(s.title))},dependencies:[p.ALJ,$e.i,p.V3x,G.R],styles:['@import"https://cdn.rag.progress.cloud/fonts/inter.css";@import"https://cdn.rag.progress.cloud/fonts/roboto.css";@charset "UTF-8";@font-face{font-family:Source Code Pro;font-style:normal;font-weight:400;src:url(source-code-pro-v14-latin-regular.e7bb30b550ed09e8.woff2) format("woff2"),url(source-code-pro-v14-latin-regular.c54f7f16da733fd8.woff) format("woff")}[_ngcontent-%COMP%]:root{--color-dark-stronger: #000;--color-light-stronger: #fff;--color-neutral-regular: var(--custom-color-neutral-regular, hsl(0, 0%, 44%));--color-neutral-light: var(--custom-color-neutral-light, hsl(0, 0%, 77%));--color-neutral-lighter: var(--custom-color-neutral-lighter, hsl(0, 0%, 90%));--color-neutral-lightest: var(--custom-color-neutral-lightest, hsl(240, 7%, 97%));--color-primary-stronger: var(--custom-color-primary-stronger, hsl(252, 100%, 24%));--color-primary-strong: var(--custom-color-primary-strong, hsl(223.74, 100%, 39.8%));--color-primary-regular: var(--custom-color-primary-regular, hsl(223.2, 100%, 50.98%));--color-primary-light: var(--custom-color-primary-light, hsl(252, 100%, 73%));--color-primary-lighter: var(--custom-color-primary-lighter, hsl(212.57, 100%, 93.14%));--color-primary-lightest: var(--custom-color-primary-lightest, hsl(215.29, 100%, 96.67%));--color-secondary-stronger: hsl(49, 100%, 30%);--color-secondary-strong: hsl(49, 100%, 40%);--color-secondary-regular: hsl(49, 100%, 60%);--color-secondary-light: hsl(49, 100%, 80%);--color-secondary-lighter: hsl(49, 100%, 90%);--color-secondary-lightest: hsl(49, 100%, 95%);--color-tertiary-stronger: hsl(2251, 100%, 24%);--color-tertiary-strong: hsl(2251, 100%, 40%);--color-tertiary-regular: hsl(2251, 100%, 50%);--color-tertiary-light: hsl(2251, 100%, 65%);--color-tertiary-lighter: hsl(2251, 100%, 92%);--color-tertiary-lightest: hsl(2251, 100%, 96%)}.connector[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column;gap:.5rem;width:6rem}'],changeDetection:0}))}return o(),r})();var T=l(2200),u=l(9417),K=l(4825),C=l(8018),y=l(4795),Z=l(4572),O=l(3606),Ee=l(820),q=l(6812),N=l(3085),A=l(4899),je=l(7481),Ge=l(3257),Oe=l(6010),ee=l(5472),te=l(9435),ne=l(3107),we=l(7839),Ve=l(4099),oe=l(4684),Xe=l(9122);const De=()=>({section:"activity"}),ie=(o,r)=>r.id;function Ne(o,r){1&o&&(e.j41(0,"div",8)(1,"pa-radio",16),e.nI1(2,"translate"),e.j41(3,"span",10),e.EFF(4),e.nI1(5,"translate"),e.k0s()()(),e.nrm(6,"div",11)),2&o&&(e.R7$(),e.Y8G("help",e.bMT(2,2,"sync.home-page.setup-server.on-cloud.radio-help")),e.R7$(3),e.JRh(e.bMT(5,4,"sync.home-page.setup-server.on-cloud.radio-label")))}function Ae(o,r){1&o&&(e.j41(0,"nsi-dropdown-button",18),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"sync.home-page.setup-server.on-desktop.download-dropdown")," "))}function Be(o,r){if(1&o&&(e.j41(0,"nsi-badge"),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nVh(3,Ae,3,3,"nsi-dropdown-button",18)),2&o){const i=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,2,"sync.badge.inactive")),e.R7$(2),e.vxM(i.downloadSyncAgentFeature?3:-1)}}function Ue(o,r){1&o&&(e.j41(0,"nsi-badge",17),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.JRh(e.bMT(2,1,"sync.badge.active")))}function Ye(o,r){if(1&o&&(e.nVh(0,Be,4,4),e.nI1(1,"async"),e.vZN(2,Ue,3,3,"nsi-badge",17)),2&o){const i=e.XpG();e.vxM(e.bMT(1,1,i.inactiveServer)?0:2)}}function Le(o,r){1&o&&(e.j41(0,"nsi-badge"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.JRh(e.bMT(2,1,"sync.badge.inactive")))}function Je(o,r){1&o&&(e.j41(0,"nsi-badge",17),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.JRh(e.bMT(2,1,"sync.badge.active")))}function Qe(o,r){if(1&o&&(e.j41(0,"div",13),e.nVh(1,Le,3,3,"nsi-badge"),e.nI1(2,"async"),e.vZN(3,Je,3,3,"nsi-badge",17),e.j41(4,"pa-input",19),e.EFF(5," Server URL "),e.k0s(),e.j41(6,"pa-button",20),e.EFF(7),e.nI1(8,"translate"),e.k0s()()),2&o){const i=e.XpG();e.R7$(),e.vxM(e.bMT(2,3,i.inactiveServer)?1:3),e.R7$(5),e.Y8G("disabled",!i.serverUrlChanged),e.R7$(),e.SpI(" ",e.bMT(8,5,"generic.save")," ")}}function We(o,r){if(1&o){const i=e.RV6();e.j41(0,"nsy-connector",21),e.nI1(1,"async"),e.nI1(2,"translate"),e.nI1(3,"async"),e.bIt("selectConnector",function(){const n=c.eBV(i).$implicit,s=e.XpG();return c.Njj(s.onSelectConnector(n))}),e.k0s()}if(2&o){const i=r.$implicit,t=e.XpG();e.Y8G("paTooltip",e.bMT(2,6,"cloud"!==t.syncAgentTypeControl.value&&e.bMT(1,4,t.inactiveServer)?"sync.home-page.add-sources.disabled-source-tooltip":""))("disabled","cloud"!==t.syncAgentTypeControl.value&&e.bMT(3,8,t.inactiveServer))("title",i.title)("logo",i.logo)}}function He(o,r){1&o&&(e.j41(0,"nsi-info-card",22),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.JRh(e.bMT(2,1,"sync.home-page.sync-list.empty-info")))}function ze(o,r){if(1&o&&(e.j41(0,"div",26),e.nrm(1,"pa-icon",34),e.EFF(2),e.k0s()),2&o){const i=r;e.R7$(),e.Y8G("path",i.logo),e.R7$(),e.SpI(" ",i.title," ")}}function Ke(o,r){if(1&o){const i=e.RV6();e.j41(0,"pa-toggle",35),e.bIt("valueChange",function(n){c.eBV(i);const s=e.XpG().$implicit,a=e.XpG(3);return c.Njj(a.toggleSync(s.id,n))}),e.EFF(1),e.k0s()}if(2&o){const i=e.XpG().$implicit;e.Y8G("value",!i.disabled),e.R7$(),e.SpI(" ",i.disabled?"Off":"On"," ")}}function Ze(o,r){if(1&o&&e.nrm(0,"pa-datetime",29),2&o){const i=e.XpG().$implicit;e.Y8G("datetime",i.lastSyncGMT)}}function qe(o,r){1&o&&e.EFF(0," \u2013 ")}function et(o,r){if(1&o&&(e.j41(0,"pa-option",31),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o){const i=e.XpG().$implicit;e.Y8G("routerLink","./"+i.id+"/edit"),e.R7$(),e.SpI(" ",e.bMT(2,2,"sync.home-page.sync-list.menu.edit-folders")," ")}}function tt(o,r){if(1&o&&(e.j41(0,"pa-option",32),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o){const i=e.XpG().$implicit;e.Y8G("routerLink","./"+i.id)("queryParams",e.lJ4(5,De)),e.R7$(),e.SpI(" ",e.bMT(2,3,"sync.home-page.sync-list.menu.activity-logs")," ")}}function nt(o,r){if(1&o){const i=e.RV6();e.j41(0,"pa-table-row")(1,"pa-table-cell")(2,"a",25),e.EFF(3),e.k0s()(),e.j41(4,"pa-table-cell"),e.nVh(5,ze,3,2,"div",26),e.k0s(),e.j41(6,"pa-table-cell")(7,"div",27),e.EFF(8),e.k0s()(),e.j41(9,"pa-table-cell"),e.nVh(10,Ke,2,2,"pa-toggle",28),e.nI1(11,"async"),e.k0s(),e.j41(12,"pa-table-cell")(13,"div",27),e.nVh(14,Ze,1,1,"pa-datetime",29)(15,qe,1,0),e.k0s()(),e.j41(16,"pa-table-cell-menu")(17,"pa-button",30),e.EFF(18," Menu "),e.k0s(),e.j41(19,"pa-dropdown",null,0)(21,"pa-option",31),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.nVh(24,et,3,4,"pa-option",31),e.nVh(25,tt,3,6,"pa-option",32),e.nI1(26,"async"),e.j41(27,"pa-option",33),e.bIt("selectOption",function(){const n=c.eBV(i).$implicit,s=e.XpG(3);return c.Njj(s.deleteSync(n))}),e.EFF(28),e.nI1(29,"translate"),e.k0s()()()()}if(2&o){let i;const t=r.$implicit,n=e.sdS(20),s=e.XpG(3);e.R7$(2),e.Y8G("routerLink","./"+t.id),e.R7$(),e.SpI(" ",t.title," "),e.R7$(2),e.vxM((i=null==s.connectors[t.connectorId]?null:s.connectors[t.connectorId].definition)?5:-1,i),e.R7$(3),e.JRh(t.totalSyncedResources),e.R7$(2),e.vxM(e.bMT(11,12,s.useCloudSync)?-1:10),e.R7$(4),e.vxM("1970-01-01"!==t.lastSyncGMT?14:15),e.R7$(3),e.Y8G("paPopup",n),e.R7$(4),e.Y8G("routerLink","./"+t.id+"/edit"),e.R7$(),e.SpI(" ",e.bMT(23,14,"sync.home-page.sync-list.menu.edit-settings")," "),e.R7$(2),e.vxM(t.connector.allowToSelectFolders?24:-1),e.R7$(),e.vxM(e.bMT(26,16,s.useCloudSync)?-1:25),e.R7$(3),e.SpI(" ",e.bMT(29,18,"sync.home-page.sync-list.menu.delete")," ")}}function ot(o,r){if(1&o&&(e.j41(0,"pa-table",23),e.nrm(1,"pa-table-sortable-header",24),e.Z7z(2,nt,30,20,"pa-table-row",null,ie),e.k0s()),2&o){const i=e.XpG(),t=e.XpG();e.R7$(),e.Y8G("cells",t.syncTableHeader),e.R7$(),e.Dyx(i)}}function it(o,r){1&o&&e.nVh(0,He,3,3,"nsi-info-card",22)(1,ot,4,1,"pa-table",23),2&o&&e.vxM(0===r.length?0:1)}let rt=(()=>{var o;class r{constructor(){this.router=(0,c.WQX)(R.Ix),this.currentRoute=(0,c.WQX)(R.nX),this.syncService=(0,c.WQX)(j),this.sdk=(0,c.WQX)(b.ok),this.toaster=(0,c.WQX)(y._g),this.modalService=(0,c.WQX)(y.w8),this.translate=(0,c.WQX)(C.c$),this.features=(0,c.WQX)(b.Dr),this.unsubscribeAll=new k.B,this.downloadSyncAgentFeature=!1,this.hasCloudSync=this.features.unstable.cloudSyncService,this.useCloudSync=this.syncService.useCloudSync,this.inactiveServer=this.syncService.isServerDown,this.syncAgentForm=new u.gE({type:new u.MJ("desktop",{nonNullable:!0}),serverUrl:new u.MJ("",{nonNullable:!0,validators:[u.k0.required]})}),this.connectors=this.syncService.connectors,this._connectorList=this.syncService.connectorsObs.pipe((0,g.T)(t=>t.sort((n,s)=>n.title.localeCompare(s.title)))),this.connectorList=this._connectorList.pipe((0,g.T)(t=>t.filter(n=>!n.cloud))),this.cloudConnectorList=this._connectorList.pipe((0,g.T)(t=>t.filter(n=>n.cloud))),this.serverUrlBackup="",this.syncs=(0,Z.z)([this.syncService.cacheUpdated,this.syncService.useCloudSync.pipe((0,_.s)(1))]).pipe((0,d.n)(([,t])=>this.sdk.currentKb.pipe((0,g.T)(n=>({kb:n,useCloud:t})))),(0,d.n)(({kb:t,useCloud:n})=>this.syncService.getSyncsForKB(t.id,n))),this.syncTableHeader=[new p.A3f({id:"name",label:"sync.home-page.sync-list.table-columns.name"}),new p.A3f({id:"connector",label:"sync.home-page.sync-list.table-columns.connector"}),new p.A3f({id:"resources",label:"sync.home-page.sync-list.table-columns.resources"}),new p.A3f({id:"sync",label:"sync.home-page.sync-list.table-columns.sync"}),new p.A3f({id:"latest-sync",label:"sync.home-page.sync-list.table-columns.latest-sync",sortable:!0}),new p.A3f({id:"actions",label:"sync.home-page.sync-list.table-columns.actions"})]}get syncAgentOnServer(){return"server"===this.syncAgentForm.controls.type.value}get syncAgentTypeControl(){return this.syncAgentForm.controls.type}get syncServerUrl(){return this.syncAgentForm.controls.serverUrl.value}get serverUrlChanged(){return this.serverUrlBackup!==this.syncServerUrl}ngOnInit(){this.syncService.syncServer.pipe((0,_.s)(1)).subscribe(t=>{this.syncAgentForm.patchValue(t),this.serverUrlBackup=t.serverUrl}),this.syncAgentTypeControl.valueChanges.pipe((0,E.Q)(this.unsubscribeAll)).subscribe(()=>this.saveSyncServer())}ngOnDestroy(){this.unsubscribeAll.next(),this.unsubscribeAll.complete()}saveSyncServer(){if(this.syncService.updateUseCloudSync("cloud"===this.syncAgentTypeControl.value),this.syncAgentForm.valid){const t=this.syncAgentForm.getRawValue();this.syncService.setSyncServer("server"===t.type?t.serverUrl:W,t.type)}}onSelectConnector(t){this.router.navigate(["./add",t.id],{relativeTo:this.currentRoute})}deleteSync(t){this.modalService.openConfirm({title:this.translate.instant("sync.confirm.deletion.title",{title:t.title}),description:"sync.confirm.deletion.description",isDestructive:!0,confirmLabel:"generic.delete"}).onClose.pipe((0,v.p)(n=>!!n),(0,d.n)(()=>this.syncService.deleteSync(t.id))).subscribe({error:()=>this.toaster.error("sync.details.toast.deletion-failed")})}toggleSync(t,n){this.syncService.updateSync(t,{disabled:!n}).subscribe({error:()=>this.toaster.error(n?"sync.details.toast.activating-failed":"sync.details.toast.disabling-failed")})}static#e=o=()=>(this.\u0275fac=function(n){return new(n||r)},this.\u0275cmp=e.VBU({type:r,selectors:[["ng-component"]],decls:59,vars:49,consts:[["syncMenu",""],[1,"page-spacing"],[1,"page-title"],[1,"page-description"],[1,"section-description"],[1,"title-l"],[1,"setup-sync-agent",3,"ngSubmit","formGroup"],["formControlName","type"],[1,"radio-config-row"],["value","desktop",3,"help"],[1,"title-m"],[1,"separator-line"],["value","server",3,"help"],[1,"inline-form"],[1,"connector-list"],[3,"paTooltip","disabled","title","logo"],["value","cloud",3,"help"],["kind","success"],["aspect","basic"],["formControlName","serverUrl",1,"server-url"],["type","submit",3,"disabled"],[3,"selectConnector","paTooltip","disabled","title","logo"],["icon","info"],["border","","columns","repeat(5, 1fr) 96px"],[3,"cells"],[1,"body-m","black-link",3,"routerLink"],[1,"logo-title"],[1,"body-s"],["labelOnRight","",3,"value"],[3,"datetime"],["icon","more-vertical","aspect","basic","size","small",3,"paPopup"],[3,"routerLink"],[3,"routerLink","queryParams"],["destructive","",3,"selectOption"],["size","small",3,"path"],["labelOnRight","",3,"valueChange","value"]],template:function(n,s){if(1&n&&(e.j41(0,"div",1)(1,"div")(2,"h1",2),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"p",3),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"section")(9,"div",4)(10,"div",5),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"div",3),e.EFF(14),e.nI1(15,"translate"),e.k0s()(),e.j41(16,"form",6),e.bIt("ngSubmit",function(){return s.saveSyncServer()}),e.j41(17,"pa-radio-group",7),e.nVh(18,Ne,7,6),e.nI1(19,"async"),e.j41(20,"div",8)(21,"pa-radio",9),e.nI1(22,"translate"),e.j41(23,"span",10),e.EFF(24),e.nI1(25,"translate"),e.k0s()(),e.nVh(26,Ye,3,3),e.k0s(),e.nrm(27,"div",11),e.j41(28,"div",8)(29,"pa-radio",12),e.nI1(30,"translate"),e.j41(31,"span",10),e.EFF(32),e.nI1(33,"translate"),e.k0s()(),e.nVh(34,Qe,9,7,"div",13),e.k0s()()()(),e.nrm(35,"div",11),e.j41(36,"section")(37,"div",4)(38,"div",5),e.EFF(39),e.nI1(40,"translate"),e.k0s(),e.j41(41,"div",3),e.EFF(42),e.nI1(43,"translate"),e.k0s()(),e.j41(44,"div",14),e.Z7z(45,We,4,10,"nsy-connector",15,ie),e.nI1(47,"async"),e.nI1(48,"async"),e.k0s()(),e.j41(49,"section")(50,"div",4)(51,"div",5),e.EFF(52),e.nI1(53,"translate"),e.k0s(),e.j41(54,"div",3),e.EFF(55),e.nI1(56,"translate"),e.k0s()(),e.nVh(57,it,2,1),e.nI1(58,"async"),e.k0s()()),2&n){let a;e.R7$(3),e.JRh(e.bMT(4,17,"navbar.sync")),e.R7$(3),e.JRh(e.bMT(7,19,"sync.home-page.description")),e.R7$(5),e.JRh(e.bMT(12,21,"sync.home-page.setup-server.title")),e.R7$(3),e.JRh(e.bMT(15,23,"sync.home-page.setup-server.description")),e.R7$(2),e.Y8G("formGroup",s.syncAgentForm),e.R7$(2),e.vxM(e.bMT(19,25,s.hasCloudSync)?18:-1),e.R7$(3),e.Y8G("help",e.bMT(22,27,"sync.home-page.setup-server.on-desktop.radio-help")),e.R7$(3),e.JRh(e.bMT(25,29,"sync.home-page.setup-server.on-desktop.radio-label")),e.R7$(2),e.vxM(s.syncAgentOnServer?-1:26),e.R7$(3),e.Y8G("help",e.bMT(30,31,"sync.home-page.setup-server.on-server.radio-help")),e.R7$(3),e.JRh(e.bMT(33,33,"sync.home-page.setup-server.on-server.radio-label")),e.R7$(2),e.vxM(s.syncAgentOnServer?34:-1),e.R7$(5),e.JRh(e.bMT(40,35,"sync.home-page.add-sources.title")),e.R7$(3),e.JRh(e.bMT(43,37,"sync.home-page.add-sources.description")),e.R7$(3),e.Dyx("cloud"!==s.syncAgentTypeControl.value?e.bMT(47,39,s.connectorList):e.bMT(48,41,s.cloudConnectorList)),e.R7$(7),e.JRh(e.bMT(53,43,"sync.home-page.sync-list.title")),e.R7$(3),e.JRh(e.bMT(56,45,"sync.home-page.sync-list.description")),e.R7$(2),e.vxM((a=e.bMT(58,47,s.syncs))?57:-1,a)}},dependencies:[T.MD,T.Jj,y.nS,Pe,y.vY,p.Ymm,O.Q,p.Rx2,Ee.P,q.P,p.XgI,N.S,p.rkm,A.a,je.v,Ge.u,p.tml,Oe.d,u.X1,u.qT,u.BC,u.cb,u.j4,u.JD,C.h,C.D9,p.EGN,ee.O,te.e,ne.U,we.N,Ve.V,K.Wk,p.V3x,G.R,p.Pa6,oe.Z,y.IA,p.OgD,Xe.w],styles:['@import"https://cdn.rag.progress.cloud/fonts/inter.css";@import"https://cdn.rag.progress.cloud/fonts/roboto.css";@charset "UTF-8";@font-face{font-family:Source Code Pro;font-style:normal;font-weight:400;src:url(source-code-pro-v14-latin-regular.e7bb30b550ed09e8.woff2) format("woff2"),url(source-code-pro-v14-latin-regular.c54f7f16da733fd8.woff) format("woff")}[_ngcontent-%COMP%]:root{--color-dark-stronger: #000;--color-light-stronger: #fff;--color-neutral-regular: var(--custom-color-neutral-regular, hsl(0, 0%, 44%));--color-neutral-light: var(--custom-color-neutral-light, hsl(0, 0%, 77%));--color-neutral-lighter: var(--custom-color-neutral-lighter, hsl(0, 0%, 90%));--color-neutral-lightest: var(--custom-color-neutral-lightest, hsl(240, 7%, 97%));--color-primary-stronger: var(--custom-color-primary-stronger, hsl(252, 100%, 24%));--color-primary-strong: var(--custom-color-primary-strong, hsl(223.74, 100%, 39.8%));--color-primary-regular: var(--custom-color-primary-regular, hsl(223.2, 100%, 50.98%));--color-primary-light: var(--custom-color-primary-light, hsl(252, 100%, 73%));--color-primary-lighter: var(--custom-color-primary-lighter, hsl(212.57, 100%, 93.14%));--color-primary-lightest: var(--custom-color-primary-lightest, hsl(215.29, 100%, 96.67%));--color-secondary-stronger: hsl(49, 100%, 30%);--color-secondary-strong: hsl(49, 100%, 40%);--color-secondary-regular: hsl(49, 100%, 60%);--color-secondary-light: hsl(49, 100%, 80%);--color-secondary-lighter: hsl(49, 100%, 90%);--color-secondary-lightest: hsl(49, 100%, 95%);--color-tertiary-stronger: hsl(2251, 100%, 24%);--color-tertiary-strong: hsl(2251, 100%, 40%);--color-tertiary-regular: hsl(2251, 100%, 50%);--color-tertiary-light: hsl(2251, 100%, 65%);--color-tertiary-lighter: hsl(2251, 100%, 92%);--color-tertiary-lightest: hsl(2251, 100%, 96%)}.page-spacing[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem}.page-title[_ngcontent-%COMP%]{align-items:center;display:flex;gap:.5rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}section[_ngcontent-%COMP%] .section-description[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%] .setup-sync-agent[_ngcontent-%COMP%]{border:1px solid var(--color-neutral-lighter, hsl(207, 17%, 91%));border-radius:.5rem;padding:1.5rem}section[_ngcontent-%COMP%] .setup-sync-agent[_ngcontent-%COMP%] .radio-config-row[_ngcontent-%COMP%]{align-items:center;display:flex;gap:.5rem;justify-content:space-between}section[_ngcontent-%COMP%] .setup-sync-agent[_ngcontent-%COMP%] .radio-config-row[_ngcontent-%COMP%] pa-radio[_ngcontent-%COMP%]{flex:1 0 auto;background:none}section[_ngcontent-%COMP%] .setup-sync-agent[_ngcontent-%COMP%] .inline-form[_ngcontent-%COMP%]{align-items:center;display:flex;flex-wrap:wrap;gap:.5rem;justify-content:flex-end}section[_ngcontent-%COMP%] .setup-sync-agent[_ngcontent-%COMP%] pa-input.server-url[_ngcontent-%COMP%] .pa-field-control{width:20rem}@media (min-width: 1440px){section[_ngcontent-%COMP%] .setup-sync-agent[_ngcontent-%COMP%] pa-input.server-url[_ngcontent-%COMP%] .pa-field-control{width:26.5rem}}section[_ngcontent-%COMP%] .separator-line[_ngcontent-%COMP%]{margin:1.5rem 0}section[_ngcontent-%COMP%] .connector-list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:1rem}section[_ngcontent-%COMP%] .logo-title[_ngcontent-%COMP%]{font-size:.75rem;line-height:1.25rem;letter-spacing:0;font-weight:400;align-items:center;display:flex;gap:.5rem}section[_ngcontent-%COMP%] pa-table-cell[_ngcontent-%COMP%] pa-toggle[_ngcontent-%COMP%] .pa-toggle-context{gap:.5rem}section[_ngcontent-%COMP%] pa-table-sortable-header[_ngcontent-%COMP%] .pa-table-grid--header{z-index:1}'],changeDetection:0}))}return o(),r})();var st=l(3129),ct=l(292),lt=l(3728),at=l(6851),dt=l(2071),pt=l(5814),ut=l(9285),re=l(6420);const ht=()=>[],se=(o,r)=>r.id,gt=(o,r)=>r.value;function mt(o,r){if(1&o&&(e.j41(0,"pa-input",6),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o){const i=e.XpG().$implicit;e.Y8G("formControlName",i.id)("placeholder",i.placeholder)("type",i.secret?"password":"text")("help",i.help),e.R7$(),e.SpI(" ",e.bMT(2,5,i.label)," ")}}function yt(o,r){if(1&o&&(e.j41(0,"pa-toggle",7),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o){const i=e.XpG().$implicit;e.Y8G("formControlName",i.id)("help",i.help),e.R7$(),e.SpI(" ",e.bMT(2,3,i.label)," ")}}function _t(o,r){if(1&o&&(e.j41(0,"pa-option",10),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o){const i=r.$implicit;e.Y8G("disabled",i.disabled)("value",i.value),e.R7$(),e.SpI(" ",e.bMT(2,3,i.label)," ")}}function ft(o,r){if(1&o&&(e.j41(0,"pa-select",8),e.Z7z(1,_t,3,5,"pa-option",10,gt),e.k0s()),2&o){const i=e.XpG().$implicit;e.Y8G("formControlName",i.id)("label",i.label)("help",i.help),e.R7$(),e.Dyx(i.options)}}function Ct(o,r){if(1&o&&(e.j41(0,"pa-textarea",7),e.EFF(1),e.k0s()),2&o){const i=e.XpG().$implicit;e.Y8G("formControlName",i.id)("help",i.help),e.R7$(),e.SpI(" ",i.label," ")}}function bt(o,r){if(1&o&&(e.j41(0,"p"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o){const i=e.XpG(2).$implicit;e.R7$(),e.JRh(e.bMT(2,1,i.help))}}function vt(o,r){1&o&&(e.j41(0,"nsi-info-card",12),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"sync.form-validation.extra-parameters-incomplete")," "))}function St(o,r){if(1&o){const i=e.RV6();e.j41(0,"div",9)(1,"label"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nVh(4,bt,3,3,"p"),e.j41(5,"app-parameters-table",11),e.bIt("valuesChange",function(n){c.eBV(i);const s=e.XpG().$implicit,a=e.XpG(3);return c.Njj(a.updateTable(s.id,n))}),e.k0s(),e.nVh(6,vt,3,3,"nsi-info-card",12),e.k0s()}if(2&o){const i=e.XpG().$implicit,t=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,4,i.label)),e.R7$(2),e.vxM(i.help?4:-1),e.R7$(),e.Y8G("values",t.tables[i.id]||e.lJ4(6,ht)),e.R7$(),e.vxM(t.invalidTables.includes(i.id)?6:-1)}}function xt(o,r){if(1&o&&e.nVh(0,mt,3,7,"pa-input",6)(1,yt,3,5,"pa-toggle",7)(2,ft,3,3,"pa-select",8)(3,Ct,2,3,"pa-textarea",7)(4,St,7,7,"div",9),2&o){let i;e.vxM("text"===(i=r.$implicit.type)?0:"boolean"===i?1:"select"===i?2:"textarea"===i?3:"table"===i?4:-1)}}function Tt(o,r){if(1&o&&(e.j41(0,"nsi-two-columns-configuration-item",5)(1,"div",2),e.Z7z(2,xt,5,1,null,null,se),e.k0s()()),2&o){const i=r.$implicit;e.Y8G("badge",i.badge)("itemTitle",i.title)("description",i.description||""),e.R7$(2),e.Dyx(i.fields)}}function Ft(o,r){1&o&&(e.j41(0,"nsi-two-columns-configuration-item",16)(1,"div",14)(2,"pa-toggle",37),e.EFF(3),e.nI1(4,"translate"),e.k0s()()()),2&o&&(e.R7$(3),e.SpI(" ",e.bMT(4,1,"sync.add-page.security-group.toggle-label")," "))}function It(o,r){if(1&o){const i=e.RV6();e.j41(0,"nsi-label",38),e.bIt("removeLabel",function(){const n=c.eBV(i).$implicit,s=e.XpG(3);return c.Njj(s.removeLabel(n))}),e.EFF(1),e.k0s()}if(2&o){const i=r.$implicit;e.Y8G("color",i.color),e.R7$(),e.SpI(" ",i.label," ")}}function Rt(o,r){if(1&o){const i=e.RV6();e.j41(0,"nsi-label",39),e.bIt("removeLabel",function(){const n=c.eBV(i).$implicit,s=e.XpG(3);return c.Njj(s.removeExtension(n))}),e.EFF(1),e.k0s()}if(2&o){const i=r.$implicit;e.R7$(),e.SpI(" ",i," ")}}function Mt(o,r){if(1&o){const i=e.RV6();e.j41(0,"nsi-two-columns-configuration-item",13)(1,"div",14)(2,"app-extraction-select",15),e.bIt("extractConfigChange",function(n){c.eBV(i);const s=e.XpG(2);return c.Njj(s.updateExtractStrategy(n))}),e.k0s()()(),e.nVh(3,Ft,5,3,"nsi-two-columns-configuration-item",16),e.j41(4,"nsi-two-columns-configuration-item",17)(5,"div",2)(6,"div",18)(7,"app-label-dropdown",19),e.nI1(8,"async"),e.nI1(9,"async"),e.bIt("selectionChange",function(n){c.eBV(i);const s=e.XpG(2);return c.Njj(s.updateLabelSelection(n))}),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"span",20),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"pa-button",21),e.bIt("click",function(){c.eBV(i);const n=e.XpG(2);return c.Njj(n.createLabelSet())}),e.EFF(16),e.nI1(17,"translate"),e.k0s()(),e.j41(18,"div",22),e.Z7z(19,It,2,2,"nsi-label",23,e.fX1),e.k0s()(),e.j41(21,"div",24)(22,"pa-toggle",25),e.EFF(23),e.nI1(24,"translate"),e.k0s()()(),e.j41(25,"nsi-two-columns-configuration-item",26)(26,"div",2)(27,"nsi-info-card"),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.j41(30,"div",27)(31,"div",28)(32,"pa-select",29)(33,"pa-option",30),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.j41(36,"pa-option",31),e.EFF(37),e.nI1(38,"translate"),e.k0s()(),e.j41(39,"pa-input",32),e.EFF(40),e.nI1(41,"translate"),e.k0s()(),e.j41(42,"div",22),e.Z7z(43,Rt,2,1,"nsi-label",33,e.fX1),e.k0s(),e.j41(45,"div",34)(46,"label"),e.EFF(47),e.nI1(48,"translate"),e.k0s(),e.j41(49,"div",28),e.nrm(50,"pa-date-picker",35),e.nI1(51,"translate"),e.nrm(52,"pa-date-picker",36),e.nI1(53,"translate"),e.k0s()()()()()}if(2&o){const i=e.XpG(2);e.R7$(2),e.Y8G("onlyExtract",!0)("extractConfig",i.extractStrategy),e.R7$(),e.vxM(i.connector.canSyncSecurityGroups?3:-1),e.R7$(4),e.Y8G("labelSets",e.bMT(8,17,i.labelSets))("selection",i.labelSelection)("disabled",!1===e.bMT(9,19,i.hasLabelSet)),e.R7$(3),e.SpI(" ",e.bMT(11,21,"sync.add-page.add-labels.select-labels")," "),e.R7$(3),e.JRh(e.bMT(14,23,"generic.or")),e.R7$(3),e.SpI(" ",e.bMT(17,25,"sync.add-page.add-labels.create-labelset")," "),e.R7$(3),e.Dyx(i.labelSelection),e.R7$(4),e.SpI(" ",e.bMT(24,27,"sync.add-page.preserve-labels.toggle-label")," "),e.R7$(5),e.JRh(e.bMT(29,29,"sync.add-page.filter-resources.file-extension.info")),e.R7$(6),e.SpI(" ",e.bMT(35,31,"sync.add-page.filter-resources.file-extension.include")," "),e.R7$(3),e.SpI(" ",e.bMT(38,33,"sync.add-page.filter-resources.file-extension.exclude")," "),e.R7$(3),e.SpI(" ",e.bMT(41,35,"sync.add-page.filter-resources.file-extension.label")," "),e.R7$(3),e.Dyx(i.extensionList),e.R7$(4),e.JRh(e.bMT(48,37,"sync.add-page.filter-resources.modification-date.label")),e.R7$(3),e.Y8G("label",e.bMT(51,39,"sync.add-page.filter-resources.modification-date.from")),e.R7$(2),e.Y8G("label",e.bMT(53,41,"sync.add-page.filter-resources.modification-date.to"))}}function kt(o,r){if(1&o&&(e.j41(0,"form",0)(1,"nsi-two-columns-configuration-item",1)(2,"div",2)(3,"pa-input",3),e.EFF(4),e.nI1(5,"translate"),e.k0s()()(),e.qex(6,4),e.Z7z(7,Tt,4,3,"nsi-two-columns-configuration-item",5,se),e.nI1(9,"async"),e.bVm(),e.nVh(10,Mt,54,43),e.k0s()),2&o){const i=e.XpG();e.Y8G("formGroup",i.form),e.R7$(),e.Y8G("noTopBorder",i.noTopBorder),e.R7$(3),e.JRh(e.bMT(5,4,"sync.add-page.connector-name.field-label")),e.R7$(3),e.Dyx(e.bMT(9,6,i.connector.getParametersSections())),e.R7$(3),e.vxM(i.isCloud?-1:10)}}const $t=new RegExp(/[^a-z0-9_-]/g);let ce=(()=>{var o;class r{constructor(){this.labelService=(0,c.WQX)(b.xQ),this.modalService=(0,c.WQX)(y.w8),this.cdr=(0,c.WQX)(P.gRc),this.unsubscribeAll=new k.B,this.isCloud=!1,this.noTopBorder=!1,this.validForm=new e.bkB,this.configurationChange=new e.bkB,this.form=new u.gE({name:new u.MJ("",{nonNullable:!0,validators:[u.k0.required]}),syncSecurityGroups:new u.MJ(null),preserveLabels:new u.MJ(null),filterResources:new u.gE({extensions:new u.MJ("",{updateOn:"blur"}),extensionUsage:new u.MJ("include",{nonNullable:!0}),from:new u.MJ(""),to:new u.MJ("")}),extra:new u.gE({})}),this.labelSets=this.labelService.resourceLabelSets,this.hasLabelSet=this.labelService.hasResourceLabelSets,this.labelSelection=[],this.extensionList=[],this.tables={},this.invalidTables=[],this.extractStrategy="",this._extra={}}set sync(t){if(t){this.connectorParametersBackup=t.connector.parameters;const n={extensions:t.filters?.fileExtensions?.extensions||"",extensionUsage:t.filters?.fileExtensions?.exclude?"exclude":"include",from:t.filters?.modified?.from||"",to:t.filters?.modified?.to||""};this.form.patchValue({name:t.title,syncSecurityGroups:t.syncSecurityGroups,filterResources:n,preserveLabels:t.preserveLabels}),this.labelSelection=t.labels||[],this.extensionList=this.formatExtensionList(n.extensions),t.extract_strategy&&(this.extractStrategy=t.extract_strategy),t.connector.parameters&&Object.entries(t.connector.parameters).forEach(([s,a])=>{"object"!=typeof a?this._extra[s]=a:this.tables[s]=a})}}get extensionsControl(){return this.form.controls.filterResources.controls.extensions}ngOnInit(){this.connector&&this.connector.getParametersSections().subscribe(t=>{t.forEach(n=>n.fields.forEach(s=>{"table"!==s.type&&this.form.controls.extra.addControl(s.id,new u.MJ("",{nonNullable:!0,validators:s.required?[u.k0.required]:[]}))})),Object.keys(this._extra).length>0&&this.form.patchValue({extra:this._extra})}),this.extensionsControl.valueChanges.pipe((0,E.Q)(this.unsubscribeAll)).subscribe(t=>this.extensionList=this.formatExtensionList(t)),this.form.valueChanges.pipe((0,E.Q)(this.unsubscribeAll)).subscribe(()=>{this.validForm.emit(this.form.valid),this.emitSyncEntity()})}ngOnDestroy(){this.unsubscribeAll.next(),this.unsubscribeAll.complete()}updateTable(t,n){this.tables[t]=n,n.some(s=>!(s.value.trim()&&s.key.trim()||!s.value.trim()&&!s.key.trim()))?this.invalidTables.includes(t)||this.invalidTables.push(t):this.invalidTables.includes(t)&&(this.invalidTables=this.invalidTables.filter(s=>s!==t)),this.cdr.markForCheck(),this.emitSyncEntity()}createLabelSet(){this.modalService.openModal(b.Tv,new p.S6u({data:{kind:ct.po.RESOURCES}}))}updateLabelSelection(t){this.labelSets.pipe((0,_.s)(1),(0,v.p)(n=>!!n),(0,g.T)(n=>n)).subscribe(n=>{this.labelSelection=t.map(s=>({...s,color:n[s.labelset]?.color})),this.emitSyncEntity()})}removeExtension(t){const n=this.extensionList.filter(s=>s!==t);this.extensionsControl.patchValue(n.join(", "))}removeLabel(t){this.labelSelection=this.labelSelection.filter(n=>!(n.labelset===t.labelset&&n.label===t.label)),this.emitSyncEntity()}formatExtensionList(t){return t&&t.length>0?t.split(",").map(n=>n.trim()).filter(n=>!!n):[]}emitSyncEntity(){if(!this.connectorId)return;const t=this.form.getRawValue(),n=t.name,s=(Math.random()+1).toString(36).substring(7),a=`${this.kbId}-${n?.toLowerCase().replace($t,"-")}-${s}`,h={fileExtensions:t.filterResources.extensions?{extensions:t.filterResources.extensions,exclude:"exclude"===t.filterResources.extensionUsage}:void 0,modified:t.filterResources.from||t.filterResources.to?{from:t.filterResources.from||void 0,to:t.filterResources.to||void 0}:void 0},m=Object.entries(t.extra||{}).reduce((w,[V,Y])=>({...w,[V]:Y}),{}),S=Object.entries(this.tables).reduce((w,[V,Y])=>(w[V]=Y.filter(ue=>!(!ue.key.trim()||!ue.value.trim())),w),{}),I={id:a,title:n,labels:this.labelSelection,preserveLabels:t.preserveLabels||!1,filters:h,connector:{name:this.connectorId,parameters:{...this.connectorParametersBackup,...S,...m}}};null!==t.syncSecurityGroups&&(I.syncSecurityGroups=t.syncSecurityGroups),I.extract_strategy=this.extractStrategy,this.configurationChange.emit(I)}updateExtractStrategy(t){this.extractStrategy=t,this.validForm.emit(this.form.valid),this.emitSyncEntity()}static#e=o=()=>(this.\u0275fac=function(n){return new(n||r)},this.\u0275cmp=e.VBU({type:r,selectors:[["nsy-configuration-form"]],inputs:{connector:"connector",connectorId:"connectorId",kbId:"kbId",isCloud:"isCloud",sync:"sync",noTopBorder:[2,"noTopBorder","noTopBorder",P.L39]},outputs:{validForm:"validForm",configurationChange:"configurationChange"},decls:1,vars:1,consts:[[3,"formGroup"],["itemTitle","sync.add-page.connector-name.title","description","sync.add-page.connector-name.description",3,"noTopBorder"],[1,"form-container"],["formControlName","name"],["formGroupName","extra"],[3,"badge","itemTitle","description"],[3,"formControlName","placeholder","type","help"],[3,"formControlName","help"],[3,"formControlName","label","help"],[1,"table-container"],[3,"disabled","value"],[3,"valuesChange","values"],["type","warning","icon","warning"],["itemTitle","sync.add-page.extract-config.title","description","sync.add-page.extract-config.description","badge","generic.badge.advanced"],[1,"form-container","toggle-container"],[3,"extractConfigChange","onlyExtract","extractConfig"],["itemTitle","sync.add-page.security-group.title","description","sync.add-page.security-group.description","badge","generic.badge.advanced"],["badge","generic.badge.optional","itemTitle","sync.add-page.add-labels.title","description","sync.add-page.add-labels.description"],[1,"inline-form","full-width"],["displayRadioForNonMultiple","","aspect","basic","fullWidth","",3,"selectionChange","labelSets","selection","disabled"],[1,"separator-word","body-s"],["icon","circle-plus","aspect","basic","iconAndText","",1,"full-width",3,"click"],[1,"inline-form","small-gap"],[3,"color"],[1,"toggle-container"],["formControlName","preserveLabels"],["badge","generic.badge.optional","itemTitle","sync.add-page.filter-resources.title","description","sync.add-page.filter-resources.description"],["formGroupName","filterResources",1,"form-container"],[1,"inline-form","full-width","small-gap"],["formControlName","extensionUsage"],["value","include"],["value","exclude"],["id","extension","placeholder",".pdf,.docx","formControlName","extensions"],["neutral",""],[1,"label-field-container"],["formControlName","from",3,"label"],["formControlName","to",3,"label"],["withBackground","","formControlName","syncSecurityGroups"],[3,"removeLabel","color"],["neutral","",3,"removeLabel"]],template:function(n,s){1&n&&e.nVh(0,kt,11,8,"form",0),2&n&&e.vxM(s.connector?0:-1)},dependencies:[T.MD,T.Jj,y.IA,y._8,u.X1,u.qT,u.BC,u.cb,u.j4,u.JD,u.$R,p.XgI,N.S,at.w,dt.Q,q.P,b.Qy,b.Bo,pt.L,p.Ymm,O.Q,C.h,C.D9,p.OYn,ut.I,y.OE,re.U,p.rkm,A.a,lt.RxD],styles:['@import"https://cdn.rag.progress.cloud/fonts/inter.css";@import"https://cdn.rag.progress.cloud/fonts/roboto.css";@charset "UTF-8";@font-face{font-family:Source Code Pro;font-style:normal;font-weight:400;src:url(source-code-pro-v14-latin-regular.e7bb30b550ed09e8.woff2) format("woff2"),url(source-code-pro-v14-latin-regular.c54f7f16da733fd8.woff) format("woff")}[_ngcontent-%COMP%]:root{--color-dark-stronger: #000;--color-light-stronger: #fff;--color-neutral-regular: var(--custom-color-neutral-regular, hsl(0, 0%, 44%));--color-neutral-light: var(--custom-color-neutral-light, hsl(0, 0%, 77%));--color-neutral-lighter: var(--custom-color-neutral-lighter, hsl(0, 0%, 90%));--color-neutral-lightest: var(--custom-color-neutral-lightest, hsl(240, 7%, 97%));--color-primary-stronger: var(--custom-color-primary-stronger, hsl(252, 100%, 24%));--color-primary-strong: var(--custom-color-primary-strong, hsl(223.74, 100%, 39.8%));--color-primary-regular: var(--custom-color-primary-regular, hsl(223.2, 100%, 50.98%));--color-primary-light: var(--custom-color-primary-light, hsl(252, 100%, 73%));--color-primary-lighter: var(--custom-color-primary-lighter, hsl(212.57, 100%, 93.14%));--color-primary-lightest: var(--custom-color-primary-lightest, hsl(215.29, 100%, 96.67%));--color-secondary-stronger: hsl(49, 100%, 30%);--color-secondary-strong: hsl(49, 100%, 40%);--color-secondary-regular: hsl(49, 100%, 60%);--color-secondary-light: hsl(49, 100%, 80%);--color-secondary-lighter: hsl(49, 100%, 90%);--color-secondary-lightest: hsl(49, 100%, 95%);--color-tertiary-stronger: hsl(2251, 100%, 24%);--color-tertiary-strong: hsl(2251, 100%, 40%);--color-tertiary-regular: hsl(2251, 100%, 50%);--color-tertiary-light: hsl(2251, 100%, 65%);--color-tertiary-lighter: hsl(2251, 100%, 92%);--color-tertiary-lightest: hsl(2251, 100%, 96%)}.toggle-container[_ngcontent-%COMP%] pa-toggle[_ngcontent-%COMP%] .pa-toggle-context{justify-content:space-between}.table-container[_ngcontent-%COMP%] nsi-info-card[_ngcontent-%COMP%]{margin-top:.75rem}'],changeDetection:0}))}return o(),r})();var Pt=l(1943),le=l(7670);const Et=o=>({total:o}),jt=o=>({count:o});function Gt(o,r){1&o&&e.nrm(0,"nsi-spinner")}function Ot(o,r){if(1&o){const i=e.RV6();e.j41(0,"nsi-folder-tree",3),e.bIt("selectionChange",function(n){c.eBV(i);const s=e.XpG(2);return c.Njj(s.updateSelection(n))}),e.k0s()}if(2&o){const i=e.XpG(2);e.Y8G("selection",i.selection)("folderTree",i.folders)}}function wt(o,r){if(1&o&&e.nrm(0,"nsi-folder-list",2),2&o){const i=e.XpG(2);e.Y8G("folders",i.selectedPaths)}}function Vt(o,r){if(1&o&&e.nVh(0,Ot,1,2,"nsi-folder-tree",1)(1,wt,1,1,"nsi-folder-list",2),2&o){const i=e.XpG();e.vxM(i.seeAll?0:1)}}let B=(()=>{var o;class r{constructor(){this.syncService=(0,c.WQX)(j),this.toaster=(0,c.WQX)(y._g),this.cdr=(0,c.WQX)(P.gRc),this.selectedSyncItems=new e.bkB,this.searchQuery=new u.MJ("",{nonNullable:!0}),this.totalFolders=0,this.selectionCount=0,this.loading=!1,this.seeAll=!0,this.selection=[],this.selectedPaths=[],this.syncItems=[],this.selectedIds=[]}ngOnInit(){this.updateSelection((this.sync.foldersToSync||[]).map(t=>({id:t.uuid,path:t.metadata.path}))),this.loadFolders()}updateView(t){this.seeAll="left"===t}updateSelection(t){this.selection=t,this.selectedPaths=t.map(n=>n.path),this.selectedIds=t.map(n=>n.id),this.selectionCount=t.length,this.selectedSyncItems.emit(this.syncItems.filter(n=>this.selectedIds.includes(n.uuid))),this.cdr.markForCheck()}loadFolders(t){this.loading=!0,this.syncService.getFolders(t?.value||"").pipe((0,X.W)(n=>(n&&this.toaster.error("string"==typeof n?n:n.error?.message||n.error||n.message||"An error occurred"),(0,f.of)({items:[],nextPage:void 0}))),(0,Pt.S)((n,s)=>n.concat(s.items),[]),(0,g.T)(n=>[{uuid:"root",originalId:"/",title:"/",status:$.PENDING,metadata:{path:"/"}},...n]),(0,g.T)(n=>n.sort((s,a)=>s.metadata.path.localeCompare(a.metadata.path))),(0,x.M)(n=>{this.totalFolders=n.length,this.syncItems=n}),(0,g.T)(n=>this.getFolderTreeFromSyncItems(n))).subscribe({next:n=>{this.loading=!1,this.folders=n,this.cdr.markForCheck()}})}getFolderTreeFromSyncItems(t){const n={id:"root",path:"/",title:"/",expanded:!0,children:{}};return t.filter(s=>"root"!==s.uuid).forEach(s=>{const a=s.metadata.path,h=s.originalId,m={id:h,title:s.title,path:a,displayPath:s.metadata.displayPath||a,children:{}};if("/"===a)n.children[h]=m;else{let I,S=n;a.split("/").slice(1,-1).forEach(V=>{S&&(I=S.children?.[V],I&&(S=I))}),S.children?S.children[h]=m:S.children={[h]:m}}}),n}static#e=o=()=>(this.\u0275fac=function(n){return new(n||r)},this.\u0275cmp=e.VBU({type:r,selectors:[["nsy-folder-selection"]],inputs:{sync:"sync"},outputs:{selectedSyncItems:"selectedSyncItems"},decls:7,vars:14,consts:[[3,"activeChange","leftButton","rightButton"],[3,"selection","folderTree"],[3,"folders"],[3,"selectionChange","selection","folderTree"]],template:function(n,s){1&n&&(e.j41(0,"header"),e.nrm(1,"div"),e.j41(2,"nsi-segmented-buttons",0),e.nI1(3,"translate"),e.nI1(4,"translate"),e.bIt("activeChange",function(h){return s.updateView(h)}),e.k0s()(),e.nVh(5,Gt,1,0,"nsi-spinner"),e.nVh(6,Vt,2,1)),2&n&&(e.R7$(2),e.Y8G("leftButton",e.i5U(3,4,"sync.folder-selection.see-all",e.eq3(10,Et,s.totalFolders)))("rightButton",e.i5U(4,7,"sync.folder-selection.see-selection",e.eq3(12,jt,s.selectionCount))),e.R7$(3),e.vxM(s.loading?5:-1),e.R7$(),e.vxM(s.folders?6:-1))},dependencies:[y.Sq,y.sH,p.Ymm,p.XgI,u.X1,y.vI,y.J4,le.t,C.h,C.D9],styles:['@import"https://cdn.rag.progress.cloud/fonts/inter.css";@import"https://cdn.rag.progress.cloud/fonts/roboto.css";@charset "UTF-8";@font-face{font-family:Source Code Pro;font-style:normal;font-weight:400;src:url(source-code-pro-v14-latin-regular.e7bb30b550ed09e8.woff2) format("woff2"),url(source-code-pro-v14-latin-regular.c54f7f16da733fd8.woff) format("woff")}[_ngcontent-%COMP%]:root{--color-dark-stronger: #000;--color-light-stronger: #fff;--color-neutral-regular: var(--custom-color-neutral-regular, hsl(0, 0%, 44%));--color-neutral-light: var(--custom-color-neutral-light, hsl(0, 0%, 77%));--color-neutral-lighter: var(--custom-color-neutral-lighter, hsl(0, 0%, 90%));--color-neutral-lightest: var(--custom-color-neutral-lightest, hsl(240, 7%, 97%));--color-primary-stronger: var(--custom-color-primary-stronger, hsl(252, 100%, 24%));--color-primary-strong: var(--custom-color-primary-strong, hsl(223.74, 100%, 39.8%));--color-primary-regular: var(--custom-color-primary-regular, hsl(223.2, 100%, 50.98%));--color-primary-light: var(--custom-color-primary-light, hsl(252, 100%, 73%));--color-primary-lighter: var(--custom-color-primary-lighter, hsl(212.57, 100%, 93.14%));--color-primary-lightest: var(--custom-color-primary-lightest, hsl(215.29, 100%, 96.67%));--color-secondary-stronger: hsl(49, 100%, 30%);--color-secondary-strong: hsl(49, 100%, 40%);--color-secondary-regular: hsl(49, 100%, 60%);--color-secondary-light: hsl(49, 100%, 80%);--color-secondary-lighter: hsl(49, 100%, 90%);--color-secondary-lightest: hsl(49, 100%, 95%);--color-tertiary-stronger: hsl(2251, 100%, 24%);--color-tertiary-strong: hsl(2251, 100%, 40%);--color-tertiary-regular: hsl(2251, 100%, 50%);--color-tertiary-light: hsl(2251, 100%, 65%);--color-tertiary-lighter: hsl(2251, 100%, 92%);--color-tertiary-lightest: hsl(2251, 100%, 96%)}header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:1rem}header[_ngcontent-%COMP%] pa-input[_ngcontent-%COMP%]{width:30rem}'],changeDetection:0}))}return o(),r})();const Xt=o=>({connector:o}),Dt=(o,r)=>({index:o,total:r});function Nt(o,r){if(1&o&&(e.j41(0,"div")(1,"h1",2),e.nrm(2,"pa-icon",3),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"p",4),e.EFF(6),e.nI1(7,"translate"),e.k0s()()),2&o){const i=r,t=e.XpG();e.R7$(2),e.Y8G("path",i.logo),e.R7$(),e.SpI(" ",e.i5U(4,3,"sync.add-page.title",e.eq3(8,Xt,i.title))," "),e.R7$(3),e.JRh(e.bMT(7,6,"sync.add-page.description."+t))}}function At(o,r){if(1&o&&(e.nVh(0,Nt,8,10,"div"),e.nI1(1,"async")),2&o){let i;const t=e.XpG();e.vxM((i=e.bMT(1,1,t.connectorDefinition))?0:-1,i)}}function Bt(o,r){1&o&&e.nrm(0,"nsi-spinner")}function Ut(o,r){if(1&o){const i=e.RV6();e.j41(0,"nsy-configuration-form",6),e.nI1(1,"async"),e.nI1(2,"async"),e.nI1(3,"async"),e.bIt("configurationChange",function(n){c.eBV(i);const s=e.XpG(3);return c.Njj(s.updateConfiguration(n))})("validForm",function(n){c.eBV(i);const s=e.XpG(3);return c.Njj(s.validForm=n)}),e.k0s()}if(2&o){let i;const t=e.XpG(2),n=e.XpG();e.Y8G("sync",n.sync)("kbId",e.bMT(1,5,n.kbId))("connector",t)("connectorId",e.bMT(2,7,n.connectorId))("isCloud",null==(i=e.bMT(3,9,n.connectorDefinition))?null:i.cloud)}}function Yt(o,r){if(1&o){const i=e.RV6();e.j41(0,"nsy-folder-selection",8),e.bIt("selectedSyncItems",function(n){c.eBV(i);const s=e.XpG(4);return c.Njj(s.updateSelection(n))}),e.k0s()}if(2&o){const i=e.XpG(4);e.Y8G("sync",i.sync)}}function Lt(o,r){if(1&o&&e.nVh(0,Yt,1,1,"nsy-folder-selection",7),2&o){const i=e.XpG(3);e.vxM(i.sync?0:-1)}}function Jt(o,r){if(1&o&&(e.EFF(0),e.nI1(1,"translate")),2&o){const i=e.XpG(),t=e.XpG(3);e.SpI(" ",e.i5U(1,1,"sync.add-page.footer.steps",e.l_i(4,Dt,t.step(),i.length))," ")}}function Qt(o,r){if(1&o){const i=e.RV6();e.j41(0,"pa-button",12),e.bIt("click",function(){c.eBV(i);const n=e.XpG(4);return c.Njj(n.cancel())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"generic.cancel")," "))}function Wt(o,r){if(1&o){const i=e.RV6();e.j41(0,"pa-button",12),e.bIt("click",function(){c.eBV(i);const n=e.XpG(4);return c.Njj(n.goBack())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"generic.back")," "))}function Ht(o,r){if(1&o){const i=e.RV6();e.j41(0,"pa-button",13),e.bIt("click",function(){c.eBV(i);const n=e.XpG(4);return c.Njj(n.goNext())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&o){const i=e.XpG(4);e.Y8G("disabled",!i.validForm||i.saving),e.R7$(),e.SpI(" ",e.bMT(2,2,"sync.add-page.footer.folder-selection-button")," ")}}function zt(o,r){if(1&o){const i=e.RV6();e.j41(0,"pa-button",13),e.bIt("click",function(){c.eBV(i);const n=e.XpG(4);return c.Njj(n.save())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&o){const i=e.XpG(3),t=e.XpG();e.Y8G("disabled",!t.validForm||i.allowToSelectFolders&&0===t.folderSelection.length||t.saving),e.R7$(),e.SpI(" ",e.bMT(2,2,"sync.add-page.footer.save-button")," ")}}function Kt(o,r){if(1&o&&(e.j41(0,"nsi-sticky-footer")(1,"div",9),e.nVh(2,Jt,2,7),e.k0s(),e.nVh(3,Qt,3,3,"pa-button",10)(4,Wt,3,3,"pa-button",10),e.nVh(5,Ht,3,4,"pa-button",11)(6,zt,3,4,"pa-button",11),e.k0s()),2&o){const i=r,t=e.XpG(3);e.R7$(2),e.vxM(i.length>1?2:-1),e.R7$(),e.vxM(1===t.step()?3:4),e.R7$(2),e.vxM(i.length>1&&t.step()<i.length?5:6)}}function Zt(o,r){if(1&o&&(e.nVh(0,Ut,4,11,"nsy-configuration-form",5)(1,Lt,1,1),e.nVh(2,Kt,7,3,"nsi-sticky-footer"),e.nI1(3,"async")),2&o){let i,t;const n=e.XpG(2);e.vxM(1===(i=n.step())?0:2===i?1:-1),e.R7$(2),e.vxM((t=e.bMT(3,2,n.steps))?2:-1,t)}}function qt(o,r){if(1&o&&(e.j41(0,"div"),e.nVh(1,Bt,1,0,"nsi-spinner")(2,Zt,4,4),e.k0s()),2&o){const i=e.XpG();e.R7$(),e.vxM(i.loading?1:2)}}const U="PENDING_NEW_CONNECTOR";let ae=(()=>{var o;class r{constructor(){this.router=(0,c.WQX)(R.Ix),this.currentRoute=(0,c.WQX)(R.nX),this.sdk=(0,c.WQX)(b.ok),this.syncService=(0,c.WQX)(j),this.modalService=(0,c.WQX)(y.w8),this.translate=(0,c.WQX)(C.c$),this.toaster=(0,c.WQX)(y._g),this.connectorId=this.currentRoute.params.pipe((0,v.p)(t=>t.connector),(0,g.T)(t=>t.connector)),this.connectorDefinition=this.connectorId.pipe((0,g.T)(t=>this.syncService.getConnectorDefinition(t))),this.connector=this.connectorId.pipe((0,g.T)(t=>this.syncService.getConnector(t,""))),this.kbId=this.sdk.currentKb.pipe((0,g.T)(t=>t.id)),this.steps=this.connector.pipe((0,g.T)(t=>t.allowToSelectFolders?["configuration","folder-selection"]:["configuration"])),this.stepIndex=(0,c.vPA)(0),this.step=(0,st.EW)(()=>this.stepIndex()+1),this.validForm=!1,this.folderSelection=[],this.loading=!1,this.saving=!1}get backPath(){return this.syncId?"../../..":"../.."}ngOnInit(){this.currentRoute.params.pipe((0,v.p)(t=>!!t.syncId),(0,_.s)(1),(0,d.n)(t=>{const n=JSON.parse(localStorage.getItem(U)||"{}");return n.name&&n.sync_root_path?this.syncService.addCloudSync({name:n.name,sync_root_path:n.sync_root_path,external_connection_id:t.syncId}).pipe((0,d.n)(s=>(localStorage.removeItem(U),this.syncId=s.id,this._syncCreationDone(s.id)))):(0,f.of)(void 0)})).subscribe()}goBack(){this.stepIndex()>0&&this.stepIndex.update(t=>t-1)}goNext(){if(!this.configuration)return;const t=this.configuration;this.syncId?this._goNext():this.connectorDefinition.pipe((0,_.s)(1),(0,d.n)(n=>this.modalService.openConfirm({title:this.translate.instant("sync.add-page.confirm-authenticate.title",{connector:n.title}),description:this.translate.instant("sync.add-page.confirm-authenticate.description"),confirmLabel:this.translate.instant("sync.add-page.confirm-authenticate.confirm-button")}).onClose),(0,v.p)(n=>!!n),(0,d.n)(()=>this._createSync(t)),(0,d.n)(({connector:n,authorize_url:s})=>this._onSuccessfulCreation(n,t,s))).subscribe({error:n=>{console.warn(n),this.toaster.error("sync.add-page.toast.generic-error")}})}cancel(){this.syncId?this.modalService.openConfirm({title:"sync.confirm.cancel-oauth.title",description:"sync.confirm.cancel-oauth.description",isDestructive:!0,confirmLabel:"sync.confirm.cancel-oauth.confirm-label",cancelLabel:"sync.confirm.cancel-oauth.cancel-label"}).onClose.pipe((0,v.p)(t=>!!t),(0,d.n)(()=>this.syncService.deleteSync(this.syncId))).subscribe({next:()=>this.router.navigate([this.backPath],{relativeTo:this.currentRoute})}):this.router.navigate([this.backPath],{relativeTo:this.currentRoute})}save(){if(!this.configuration)return;this.saving=!0;const t=this.configuration;if(this.syncId){if(this.folderSelection.length>0){const n=this.syncId;this.syncService.updateSync(n,{foldersToSync:this.folderSelection},!0).pipe((0,d.n)(()=>this._syncCreationDone(n))).subscribe({error:s=>this._errorHandler(s)})}}else this._createSync(t).pipe((0,d.n)(({connector:n,authorize_url:s})=>this._onSuccessfulCreation(n,t,s))).subscribe({error:n=>this._errorHandler(n)})}updateConfiguration(t){this.configuration=t}updateSelection(t){this.folderSelection=t}_goNext(){this.steps.pipe((0,_.s)(1)).subscribe(t=>{this.stepIndex()<t.length&&this.stepIndex.update(n=>n+1)})}_createSync(t){return this.connectorDefinition.pipe((0,_.s)(1),(0,d.n)(n=>{const s=n.cloud;return(s&&n.provider?this.syncService.getOAuthUrl(n.provider):this.syncService.addSync(t).pipe((0,g.T)(()=>""))).pipe((0,x.M)(()=>this.syncService.setCurrentSyncId(t.id)),(0,d.n)(h=>{s&&localStorage.setItem(U,JSON.stringify({redirect:location.href,name:t.title,sync_root_path:t.connector.parameters.sync_root_path}));const m=this.syncService.getConnector(t.connector.name,t.id);return m.allowToSelectFolders||s?(0,f.of)({connector:m,authorize_url:h}):("function"==typeof m.handleParameters&&m.handleParameters(t.connector.parameters),this.syncService.updateSync(t.id,{foldersToSync:m.getStaticFolders()}).pipe((0,g.T)(()=>({connector:this.syncService.getConnector(t.connector.name,t.id),authorize_url:h}))))}))}))}_onSuccessfulCreation(t,n,s){return t.hasServerSideAuth?(this.performOAuth(s),(0,f.of)()):this._syncCreationDone(n.id)}performOAuth(t){t&&(window.location.href=t)}_syncCreationDone(t){return(0,f.of)(!0).pipe((0,x.M)(()=>{this.router.navigate([this.syncId?`../../../${t}`:`../../${t}`],{relativeTo:this.currentRoute})}),(0,d.n)(()=>this.syncService.useCloudSync),(0,_.s)(1),(0,d.n)(n=>n?(0,f.of)():(this.toaster.success("sync.details.toast.triggering-sync-success"),this.syncService.triggerSync(t).pipe((0,X.W)(()=>(this.toaster.error("sync.details.toast.triggering-sync-failed"),(0,f.of)()))))))}_errorHandler(t){this.saving=!1,console.warn(t),this.toaster.error("sync.add-page.toast.generic-error")}static#e=o=()=>(this.\u0275fac=function(n){return new(n||r)},this.\u0275cmp=e.VBU({type:r,selectors:[["nsy-add-sync-page"]],decls:8,vars:10,consts:[[1,"page-spacing"],[3,"link"],[1,"page-title"],["size","large",3,"path"],[1,"page-description"],[3,"sync","kbId","connector","connectorId","isCloud"],[3,"configurationChange","validForm","sync","kbId","connector","connectorId","isCloud"],[3,"sync"],[3,"selectedSyncItems","sync"],["footerNote",""],["aspect","basic"],["kind","primary",3,"disabled"],["aspect","basic",3,"click"],["kind","primary",3,"click","disabled"]],template:function(n,s){if(1&n&&(e.j41(0,"div",0)(1,"nsi-back-button",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nVh(4,At,2,3),e.nI1(5,"async"),e.nVh(6,qt,3,1,"div"),e.nI1(7,"async"),e.k0s()),2&n){let a,h;e.R7$(),e.Y8G("link",s.backPath),e.R7$(),e.SpI(" ",e.bMT(3,4,"sync.add-page.back-button")," "),e.R7$(2),e.vxM((a=e.bMT(5,6,s.connectorId))?4:-1,a),e.R7$(2),e.vxM((h=e.bMT(7,8,s.connector))?6:-1,h)}},dependencies:[T.MD,T.Jj,y.Xp,p.Ymm,O.Q,p.V3x,G.R,y.o3,C.h,C.D9,ce,B,y.J4,le.t],styles:['@import"https://cdn.rag.progress.cloud/fonts/inter.css";@import"https://cdn.rag.progress.cloud/fonts/roboto.css";@charset "UTF-8";@font-face{font-family:Source Code Pro;font-style:normal;font-weight:400;src:url(source-code-pro-v14-latin-regular.e7bb30b550ed09e8.woff2) format("woff2"),url(source-code-pro-v14-latin-regular.c54f7f16da733fd8.woff) format("woff")}[_ngcontent-%COMP%]:root{--color-dark-stronger: #000;--color-light-stronger: #fff;--color-neutral-regular: var(--custom-color-neutral-regular, hsl(0, 0%, 44%));--color-neutral-light: var(--custom-color-neutral-light, hsl(0, 0%, 77%));--color-neutral-lighter: var(--custom-color-neutral-lighter, hsl(0, 0%, 90%));--color-neutral-lightest: var(--custom-color-neutral-lightest, hsl(240, 7%, 97%));--color-primary-stronger: var(--custom-color-primary-stronger, hsl(252, 100%, 24%));--color-primary-strong: var(--custom-color-primary-strong, hsl(223.74, 100%, 39.8%));--color-primary-regular: var(--custom-color-primary-regular, hsl(223.2, 100%, 50.98%));--color-primary-light: var(--custom-color-primary-light, hsl(252, 100%, 73%));--color-primary-lighter: var(--custom-color-primary-lighter, hsl(212.57, 100%, 93.14%));--color-primary-lightest: var(--custom-color-primary-lightest, hsl(215.29, 100%, 96.67%));--color-secondary-stronger: hsl(49, 100%, 30%);--color-secondary-strong: hsl(49, 100%, 40%);--color-secondary-regular: hsl(49, 100%, 60%);--color-secondary-light: hsl(49, 100%, 80%);--color-secondary-lighter: hsl(49, 100%, 90%);--color-secondary-lightest: hsl(49, 100%, 95%);--color-tertiary-stronger: hsl(2251, 100%, 24%);--color-tertiary-strong: hsl(2251, 100%, 40%);--color-tertiary-regular: hsl(2251, 100%, 50%);--color-tertiary-light: hsl(2251, 100%, 65%);--color-tertiary-lighter: hsl(2251, 100%, 92%);--color-tertiary-lightest: hsl(2251, 100%, 96%)}.page-spacing[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem}.page-title[_ngcontent-%COMP%]{align-items:center;display:flex;gap:.5rem}.inline-form[_ngcontent-%COMP%] pa-select[_ngcontent-%COMP%]{flex:0 0 auto;min-width:8rem;width:fit-content}.inline-form[_ngcontent-%COMP%] pa-input[_ngcontent-%COMP%]{max-width:unset}'],changeDetection:0}))}return o(),r})();var en=l(2885);const tn=["activitySection"],de=(o,r)=>r.id;function nn(o,r){if(1&o&&(e.j41(0,"div",3)(1,"label"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",14),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.nrm(7,"div",10)),2&o){const i=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,2,"sync.details.settings.synchronize-security-groups")),e.R7$(3),e.SpI(" ",e.bMT(6,4,i.sync.syncSecurityGroups?"sync.details.settings.boolean.true":"sync.details.settings.boolean.false")," ")}}function on(o,r){if(1&o&&(e.j41(0,"nsi-label",12),e.EFF(1),e.k0s()),2&o){const i=r.$implicit;e.Y8G("color",i.color),e.R7$(),e.SpI(" ",i.label," ")}}function rn(o,r){1&o&&e.EFF(0," \u2013 ")}function sn(o,r){if(1&o&&(e.j41(0,"nsi-label",15),e.EFF(1),e.k0s()),2&o){const i=r.$implicit;e.R7$(),e.SpI(" ",i," ")}}function cn(o,r){1&o&&e.EFF(0," \u2013 ")}function ln(o,r){1&o&&(e.j41(0,"div",11),e.Z7z(1,sn,2,1,"nsi-label",15,e.fX1,!1,cn,1,0),e.k0s()),2&o&&(e.R7$(),e.Dyx(r.extensions.split(", ")))}function an(o,r){1&o&&e.EFF(0," \u2013 ")}function dn(o,r){if(1&o&&(e.EFF(0),e.nI1(1,"translate"),e.nrm(2,"pa-datetime",16),e.EFF(3),e.nI1(4,"translate"),e.nrm(5,"pa-datetime",16)),2&o){const i=r;e.SpI(" ",e.bMT(1,4,"sync.details.settings.modification-date.from")," "),e.R7$(2),e.Y8G("datetime",i.from),e.R7$(),e.SpI(" ",e.bMT(4,6,"sync.details.settings.modification-date.to")," "),e.R7$(2),e.Y8G("datetime",i.to)}}function pn(o,r){1&o&&e.EFF(0," \u2013 ")}function un(o,r){if(1&o&&(e.nrm(0,"div",10),e.nVh(1,nn,8,6),e.j41(2,"div",3)(3,"label"),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"div",11),e.Z7z(7,on,2,2,"nsi-label",12,e.fX1,!1,rn,1,0),e.k0s()(),e.nrm(10,"div",10),e.j41(11,"label"),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"div",3),e.nVh(15,ln,4,1,"div",11)(16,an,1,0),e.k0s(),e.nrm(17,"div",10),e.j41(18,"label"),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"div",13),e.nVh(22,dn,6,8)(23,pn,1,0),e.k0s()),2&o){let i,t;const n=e.XpG();e.R7$(),e.vxM(null!=n.connector&&n.connector.canSyncSecurityGroups?1:-1),e.R7$(3),e.JRh(e.bMT(5,7,"sync.details.settings.labels")),e.R7$(3),e.Dyx(n.coloredLabels),e.R7$(5),e.SpI(" ",e.bMT(13,9,null!=n.sync.filters&&null!=n.sync.filters.fileExtensions&&n.sync.filters.fileExtensions.exclude?"sync.details.settings.file-extensions.excluded":"sync.details.settings.file-extensions.included")," "),e.R7$(3),e.vxM((i=null==n.sync.filters?null:n.sync.filters.fileExtensions)?15:16,i),e.R7$(4),e.JRh(e.bMT(20,11,"sync.details.settings.modification-date.label")),e.R7$(3),e.vxM((t=null==n.sync.filters?null:n.sync.filters.modified)?22:23,t)}}function hn(o,r){1&o&&(e.j41(0,"div"),e.EFF(1,"*****"),e.k0s())}function gn(o,r){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&o){const i=e.XpG(2).$implicit,t=e.XpG(3);e.R7$(),e.JRh(t.sync.connector.parameters[i.id]||"_")}}function mn(o,r){if(1&o&&e.nVh(0,hn,2,0,"div")(1,gn,2,1,"div"),2&o){const i=e.XpG().$implicit;e.vxM(i.secret?0:1)}}function yn(o,r){if(1&o&&e.nrm(0,"app-parameters-table",18),2&o){const i=e.XpG().$implicit,t=e.XpG(3);e.Y8G("values",t.sync.connector.parameters[i.id])}}function _n(o,r){1&o&&e.EFF(0," \u2013 ")}function fn(o,r){1&o&&e.nrm(0,"div",10)}function Cn(o,r){if(1&o&&(e.j41(0,"div",3)(1,"label"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nVh(4,mn,2,1)(5,yn,1,1,"app-parameters-table",18)(6,_n,1,0),e.k0s(),e.nVh(7,fn,1,0,"div",10)),2&o){const i=r.$implicit,t=r.$index,n=r.$count,s=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,3,i.label)),e.R7$(2),e.vxM("table"!==i.type?4:(null==s.sync.connector.parameters[i.id]?null:s.sync.connector.parameters[i.id].length)>0?5:6),e.R7$(3),e.vxM(t!==n-1?7:-1)}}function bn(o,r){if(1&o&&(e.j41(0,"nsi-two-columns-configuration-item",17)(1,"div",2),e.Z7z(2,Cn,8,5,null,null,de),e.k0s()()),2&o){const i=r.$implicit;e.Y8G("itemTitle",i.title)("description",i.description||""),e.R7$(2),e.Dyx(i.fields)}}function vn(o,r){if(1&o&&(e.Z7z(0,bn,4,2,"nsi-two-columns-configuration-item",17,de),e.nI1(2,"async")),2&o){const i=e.XpG();e.Dyx(e.bMT(2,0,i.connector.getParametersSections()))}}function Sn(o,r){if(1&o&&(e.j41(0,"nsi-two-columns-configuration-item",4)(1,"div"),e.EFF(2),e.k0s()()),2&o){const i=e.XpG();e.R7$(2),e.JRh(i.extractStrategy)}}function xn(o,r){1&o&&e.nrm(0,"pa-icon",20)}function Tn(o,r){1&o&&e.nrm(0,"pa-icon",21)}function Fn(o,r){1&o&&e.nrm(0,"pa-icon",22)}function In(o,r){if(1&o&&(e.j41(0,"pa-table-row")(1,"pa-table-cell")(2,"div",19),e.nVh(3,xn,1,0,"pa-icon",20)(4,Tn,1,0,"pa-icon",21)(5,Fn,1,0,"pa-icon",22),e.EFF(6),e.k0s()(),e.j41(7,"pa-table-cell")(8,"div",23),e.nrm(9,"pa-datetime",24),e.k0s()()()),2&o){let i;const t=r.$implicit;e.R7$(3),e.vxM("high"===(i=t.level)?3:"medium"===i?4:"low"===i?5:-1),e.R7$(3),e.SpI(" ",t.message," "),e.R7$(3),e.Y8G("datetime",t.createdAt)}}function Rn(o,r){1&o&&(e.j41(0,"pa-table-row",9)(1,"pa-table-cell")(2,"div",23),e.EFF(3),e.nI1(4,"translate"),e.k0s()()()),2&o&&(e.R7$(3),e.JRh(e.bMT(4,1,"sync.details.activity-log.no-activity")))}let Mn=(()=>{var o;class r{constructor(){this.labelService=(0,c.WQX)(b.xQ),this.cdr=(0,c.WQX)(P.gRc),this.currentRoute=(0,c.WQX)(R.nX),this.sdk=(0,c.WQX)(b.ok),this.connector=null,this._logs=[],this.labelSets={},this.coloredLabels=[],this.extractStrategy=""}set logs(t){t&&(this._logs=t)}get logs(){return this._logs}ngAfterViewInit(){this.currentRoute.queryParams.pipe((0,v.p)(t=>t.section),(0,g.T)(t=>t.section),(0,_.s)(1)).subscribe({next:t=>{setTimeout(()=>{"activity"===t&&this.activitySection&&this.activitySection.nativeElement.scrollIntoView({behavior:"smooth"})},300)}})}ngOnInit(){this.labelService.resourceLabelSets.pipe((0,_.s)(1),(0,v.p)(n=>!!n),(0,g.T)(n=>n)).subscribe(n=>{this.labelSets=n,this.coloredLabels=this.sync.labels?.map(s=>({...s,color:this.labelSets[s.labelset]?.color}))||[],this.cdr.detectChanges()});const t=this.sync.extract_strategy;t&&this.sdk.currentKb.pipe((0,_.s)(1),(0,d.n)(n=>n.getExtractStrategies())).subscribe(n=>{this.extractStrategy=n[t]?.name||"",this.cdr.markForCheck()})}static#e=o=()=>(this.\u0275fac=function(n){return new(n||r)},this.\u0275cmp=e.VBU({type:r,selectors:[["nsy-sync-settings"]],viewQuery:function(n,s){if(1&n&&e.GBs(tn,5),2&n){let a;e.mGM(a=e.lsd())&&(s.activitySection=a.first)}},inputs:{sync:"sync",connector:"connector",logs:"logs"},decls:25,vars:14,consts:[["activitySection",""],["noTopBorder","","itemTitle","sync.details.settings.title","description","sync.details.settings.description"],[1,"sync-settings-container"],[1,"body-s","settings-item"],["itemTitle","sync.add-page.extract-config.title","description","sync.add-page.extract-config.description"],["itemTitle","sync.details.activity-log.title","description","sync.details.activity-log.description"],[1,"activity-logs-container"],["border","","columns","2fr 1fr"],["header",""],["last",""],[1,"separator-line"],[1,"row-container"],["readonly","",3,"color"],[1,"body-s","row-container"],[2,"text-transform","capitalize"],["readonly","","neutral",""],["dateOnly","",3,"datetime"],[3,"itemTitle","description"],["readonly","",3,"values"],[1,"body-s","icon-and-text"],["size","small","name","circle-cross",1,"error"],["size","small","name","warning",1,"warning"],["size","small","name","circle-check",1,"success"],[1,"body-s"],[3,"datetime"]],template:function(n,s){1&n&&(e.j41(0,"nsi-two-columns-configuration-item",1)(1,"div",2)(2,"div",3)(3,"label"),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.k0s()(),e.nVh(8,un,24,13),e.k0s()(),e.nVh(9,vn,3,2),e.nVh(10,Sn,3,1,"nsi-two-columns-configuration-item",4),e.j41(11,"nsi-two-columns-configuration-item",5)(12,"div",6,0)(14,"pa-table",7)(15,"pa-table-header")(16,"pa-table-cell",8),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.j41(19,"pa-table-cell",8),e.EFF(20),e.nI1(21,"translate"),e.k0s()(),e.Z7z(22,In,10,3,"pa-table-row",null,e.fX1,!1,Rn,5,3,"pa-table-row",9),e.k0s()()()),2&n&&(e.R7$(4),e.JRh(e.bMT(5,8,"sync.details.settings.name")),e.R7$(3),e.JRh(s.sync.title),e.R7$(),e.vxM(s.sync.isCloud?-1:8),e.R7$(),e.vxM(s.connector?9:-1),e.R7$(),e.vxM(s.extractStrategy?10:-1),e.R7$(7),e.JRh(e.bMT(18,10,"sync.details.activity-log.table-header.message")),e.R7$(3),e.JRh(e.bMT(21,12,"sync.details.activity-log.table-header.date")),e.R7$(2),e.Dyx(s.logs))},dependencies:[T.MD,T.Jj,y._8,C.h,C.D9,y.OE,re.U,p.Pa6,oe.Z,p.EGN,ee.O,te.e,ne.U,en.Bz,p.V3x,G.R,b.Qy],styles:['@import"https://cdn.rag.progress.cloud/fonts/inter.css";@import"https://cdn.rag.progress.cloud/fonts/roboto.css";@charset "UTF-8";@font-face{font-family:Source Code Pro;font-style:normal;font-weight:400;src:url(source-code-pro-v14-latin-regular.e7bb30b550ed09e8.woff2) format("woff2"),url(source-code-pro-v14-latin-regular.c54f7f16da733fd8.woff) format("woff")}[_ngcontent-%COMP%]:root{--color-dark-stronger: #000;--color-light-stronger: #fff;--color-neutral-regular: var(--custom-color-neutral-regular, hsl(0, 0%, 44%));--color-neutral-light: var(--custom-color-neutral-light, hsl(0, 0%, 77%));--color-neutral-lighter: var(--custom-color-neutral-lighter, hsl(0, 0%, 90%));--color-neutral-lightest: var(--custom-color-neutral-lightest, hsl(240, 7%, 97%));--color-primary-stronger: var(--custom-color-primary-stronger, hsl(252, 100%, 24%));--color-primary-strong: var(--custom-color-primary-strong, hsl(223.74, 100%, 39.8%));--color-primary-regular: var(--custom-color-primary-regular, hsl(223.2, 100%, 50.98%));--color-primary-light: var(--custom-color-primary-light, hsl(252, 100%, 73%));--color-primary-lighter: var(--custom-color-primary-lighter, hsl(212.57, 100%, 93.14%));--color-primary-lightest: var(--custom-color-primary-lightest, hsl(215.29, 100%, 96.67%));--color-secondary-stronger: hsl(49, 100%, 30%);--color-secondary-strong: hsl(49, 100%, 40%);--color-secondary-regular: hsl(49, 100%, 60%);--color-secondary-light: hsl(49, 100%, 80%);--color-secondary-lighter: hsl(49, 100%, 90%);--color-secondary-lightest: hsl(49, 100%, 95%);--color-tertiary-stronger: hsl(2251, 100%, 24%);--color-tertiary-strong: hsl(2251, 100%, 40%);--color-tertiary-regular: hsl(2251, 100%, 50%);--color-tertiary-light: hsl(2251, 100%, 65%);--color-tertiary-lighter: hsl(2251, 100%, 92%);--color-tertiary-lightest: hsl(2251, 100%, 96%)}.sync-settings-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem}.sync-settings-container[_ngcontent-%COMP%] .settings-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.sync-settings-container[_ngcontent-%COMP%] .body-s[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]{color:var(--color-neutral-regular, hsl(207, 17%, 58%));font-weight:600}.sync-settings-container[_ngcontent-%COMP%] .row-container[_ngcontent-%COMP%]{align-items:center;display:flex;flex-wrap:wrap;gap:.5rem}.activity-logs-container[_ngcontent-%COMP%] .icon-and-text[_ngcontent-%COMP%]{align-items:center;display:flex;gap:.25rem}.activity-logs-container[_ngcontent-%COMP%] .icon-and-text[_ngcontent-%COMP%] pa-icon[_ngcontent-%COMP%]{display:flex}.activity-logs-container[_ngcontent-%COMP%] .icon-and-text[_ngcontent-%COMP%] .error[_ngcontent-%COMP%], .activity-logs-container[_ngcontent-%COMP%] .icon-and-text[_ngcontent-%COMP%] .warning[_ngcontent-%COMP%]{color:var(--color-secondary-stronger, hsl(7, 90%, 35%))}.activity-logs-container[_ngcontent-%COMP%] .icon-and-text[_ngcontent-%COMP%] .success[_ngcontent-%COMP%]{color:var(--color-primary-strong)}'],changeDetection:0}))}return o(),r})();const kn=o=>({count:o});function $n(o,r){if(1&o){const i=e.RV6();e.j41(0,"header")(1,"pa-input",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"pa-button",2),e.bIt("click",function(){c.eBV(i);const n=e.XpG();return c.Njj(n.editing=!0)}),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",3),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.nrm(10,"nsi-folder-list",4)}if(2&o){const i=e.XpG();e.R7$(),e.Y8G("formControl",i.queryControl),e.R7$(),e.SpI(" ",e.bMT(3,6,"sync.folder-selection.search-input-label")," "),e.R7$(3),e.JRh(e.bMT(6,8,"sync.folder-selection.edit-folders-button")),e.R7$(3),e.JRh(e.bMT(9,10,"sync.folder-selection.current-selection")),e.R7$(2),e.Y8G("filtered",!!i.query)("folders",i.selectedFolders)}}function Pn(o,r){if(1&o){const i=e.RV6();e.j41(0,"nsy-folder-selection",5),e.bIt("selectedSyncItems",function(n){c.eBV(i);const s=e.XpG();return c.Njj(s.updateSelection(n))}),e.k0s(),e.j41(1,"nsi-sticky-footer")(2,"div",6),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"pa-button",7),e.bIt("click",function(){c.eBV(i);const n=e.XpG();return c.Njj(n.editing=!1)}),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"pa-button",8),e.bIt("click",function(){c.eBV(i);const n=e.XpG();return c.Njj(n.saveSelection())}),e.EFF(9),e.nI1(10,"translate"),e.k0s()()}if(2&o){const i=e.XpG();e.Y8G("sync",i.sync),e.R7$(3),e.SpI(" ",e.i5U(4,4,"sync.folder-selection.footer.selection-count",e.eq3(11,kn,i.selectionCount))," "),e.R7$(3),e.SpI(" ",e.bMT(7,7,"generic.cancel")," "),e.R7$(3),e.SpI(" ",e.bMT(10,9,"sync.folder-selection.footer.save-changes")," ")}}let En=(()=>{var o;class r{constructor(){this.cdr=(0,c.WQX)(P.gRc),this._unsubscribeAll=new k.B,this.selectionChange=new e.bkB,this.editing=!1,this.selection=[],this.selectionCount=0,this.queryControl=new u.MJ("")}set sync(t){this._sync=t,this.updateSelection(t.foldersToSync||[])}get sync(){return this._sync}get selectedFolders(){const t=this.selection.map(s=>s.metadata.displayPath||s.metadata.path)||[],n=this.query?this.query.toLocaleLowerCase():"";return n?t.filter(s=>s.toLocaleLowerCase().includes(n)):t}get query(){return this.queryControl.value}updateSelection(t){this.selection=t,this.selectionCount=this.selection.length,this.cdr.detectChanges()}saveSelection(){this.selectionChange.emit(this.selection),this.editing=!1,this.cdr.markForCheck()}static#e=o=()=>(this.\u0275fac=function(n){return new(n||r)},this.\u0275cmp=e.VBU({type:r,selectors:[["nsy-folders-tab"]],inputs:{sync:"sync"},outputs:{selectionChange:"selectionChange"},decls:3,vars:1,consts:[[1,"folders-tab"],["icon","search",3,"formControl"],[3,"click"],[1,"title-xxs"],[3,"filtered","folders"],[3,"selectedSyncItems","sync"],["footerNote","",1,"title-xs"],["aspect","basic",3,"click"],["kind","primary",3,"click"]],template:function(n,s){1&n&&(e.j41(0,"div",0),e.nVh(1,$n,11,12)(2,Pn,11,13),e.k0s()),2&n&&(e.R7$(),e.vxM(s.editing?s.sync?2:-1:1))},dependencies:[B,p.XgI,N.S,p.Ymm,O.Q,C.h,C.D9,p.V3x,y.Sq,y.o3,u.X1,u.BC,u.l_],styles:['@import"https://cdn.rag.progress.cloud/fonts/inter.css";@import"https://cdn.rag.progress.cloud/fonts/roboto.css";@charset "UTF-8";@font-face{font-family:Source Code Pro;font-style:normal;font-weight:400;src:url(source-code-pro-v14-latin-regular.e7bb30b550ed09e8.woff2) format("woff2"),url(source-code-pro-v14-latin-regular.c54f7f16da733fd8.woff) format("woff")}[_ngcontent-%COMP%]:root{--color-dark-stronger: #000;--color-light-stronger: #fff;--color-neutral-regular: var(--custom-color-neutral-regular, hsl(0, 0%, 44%));--color-neutral-light: var(--custom-color-neutral-light, hsl(0, 0%, 77%));--color-neutral-lighter: var(--custom-color-neutral-lighter, hsl(0, 0%, 90%));--color-neutral-lightest: var(--custom-color-neutral-lightest, hsl(240, 7%, 97%));--color-primary-stronger: var(--custom-color-primary-stronger, hsl(252, 100%, 24%));--color-primary-strong: var(--custom-color-primary-strong, hsl(223.74, 100%, 39.8%));--color-primary-regular: var(--custom-color-primary-regular, hsl(223.2, 100%, 50.98%));--color-primary-light: var(--custom-color-primary-light, hsl(252, 100%, 73%));--color-primary-lighter: var(--custom-color-primary-lighter, hsl(212.57, 100%, 93.14%));--color-primary-lightest: var(--custom-color-primary-lightest, hsl(215.29, 100%, 96.67%));--color-secondary-stronger: hsl(49, 100%, 30%);--color-secondary-strong: hsl(49, 100%, 40%);--color-secondary-regular: hsl(49, 100%, 60%);--color-secondary-light: hsl(49, 100%, 80%);--color-secondary-lighter: hsl(49, 100%, 90%);--color-secondary-lightest: hsl(49, 100%, 95%);--color-tertiary-stronger: hsl(2251, 100%, 24%);--color-tertiary-strong: hsl(2251, 100%, 40%);--color-tertiary-regular: hsl(2251, 100%, 50%);--color-tertiary-light: hsl(2251, 100%, 65%);--color-tertiary-lighter: hsl(2251, 100%, 92%);--color-tertiary-lightest: hsl(2251, 100%, 96%)}.folders-tab[_ngcontent-%COMP%]{position:relative}.folders-tab[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:1rem}.folders-tab[_ngcontent-%COMP%] header[_ngcontent-%COMP%] pa-input[_ngcontent-%COMP%]{width:30rem}'],changeDetection:0}))}return o(),r})();var jn=l(7725),Gn=l(3515);function On(o,r){if(1&o){const i=e.RV6();e.j41(0,"div",10)(1,"pa-toggle",11),e.bIt("valueChange",function(n){c.eBV(i);const s=e.XpG(4);return c.Njj(s.toggleSync(n))}),e.EFF(2),e.nI1(3,"translate"),e.k0s()(),e.j41(4,"pa-button",12),e.nI1(5,"async"),e.bIt("click",function(){c.eBV(i);const n=e.XpG(4);return c.Njj(n.triggerSync())}),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"pa-button",13),e.EFF(9),e.nI1(10,"translate"),e.k0s()}if(2&o){const i=e.XpG(3),t=e.XpG();e.R7$(),e.Y8G("value",!i.disabled),e.R7$(),e.SpI(" ",e.bMT(3,5,i.disabled?"sync.badge.inactive":"sync.badge.active")," "),e.R7$(2),e.Y8G("disabled",e.bMT(5,7,t.isSyncing)),e.R7$(2),e.SpI(" ",e.bMT(7,9,"sync.details.buttons.sync-now")," "),e.R7$(3),e.SpI(" ",e.bMT(10,11,"sync.details.buttons.edit-settings")," ")}}function wn(o,r){if(1&o){const i=e.RV6();e.j41(0,"div",8),e.nVh(1,On,11,13),e.j41(2,"pa-button",9),e.bIt("click",function(){c.eBV(i);const n=e.XpG(3);return c.Njj(n.deleteSync())}),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}if(2&o){const i=e.XpG(2);e.R7$(),e.vxM(i.isCloud?-1:1),e.R7$(2),e.SpI(" ",e.bMT(4,2,"sync.details.buttons.delete")," ")}}function Vn(o,r){if(1&o&&(e.j41(0,"div",2)(1,"h1",6),e.nrm(2,"pa-icon",7),e.EFF(3),e.k0s(),e.nVh(4,wn,5,4,"div",8),e.nI1(5,"async"),e.k0s()),2&o){const i=e.XpG(),t=e.XpG();e.R7$(2),e.Y8G("path",r.logo),e.R7$(),e.SpI(" ",i.title," "),e.R7$(),e.vxM(!1===e.bMT(5,3,t.editMode)?4:-1)}}function Xn(o,r){if(1&o){const i=e.RV6();e.j41(0,"pa-tab",14),e.bIt("click",function(){c.eBV(i);const n=e.XpG(2);return c.Njj(n.activeTab="folders")}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&o){const i=e.XpG(2);e.Y8G("active","folders"===i.activeTab),e.R7$(),e.SpI(" ",e.bMT(2,2,"sync.details.tabs.folders")," ")}}function Dn(o,r){if(1&o){const i=e.RV6();e.j41(0,"nsy-configuration-form",19),e.nI1(1,"async"),e.nI1(2,"async"),e.nI1(3,"async"),e.bIt("configurationChange",function(n){c.eBV(i);const s=e.XpG(3);return c.Njj(s.updateConfiguration(n))})("validForm",function(n){c.eBV(i);const s=e.XpG(3);return c.Njj(s.validForm=n)}),e.k0s()}if(2&o){let i;const t=e.XpG(2),n=e.XpG();e.Y8G("sync",t)("kbId",e.bMT(1,4,n.kbId))("connector",e.bMT(2,6,n.connector))("connectorId",null==(i=e.bMT(3,8,n.connectorDef))?null:i.id)}}function Nn(o,r){if(1&o){const i=e.RV6();e.j41(0,"nsy-folder-selection",20),e.bIt("selectedSyncItems",function(n){c.eBV(i);const s=e.XpG(3);return c.Njj(s.updateSelection(n))}),e.k0s()}if(2&o){const i=e.XpG(2);e.Y8G("sync",i)}}function An(o,r){if(1&o){const i=e.RV6();e.j41(0,"div"),e.nVh(1,Dn,4,10,"nsy-configuration-form",15)(2,Nn,1,1,"nsy-folder-selection",16),e.j41(3,"nsi-sticky-footer")(4,"pa-button",17),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"pa-button",18),e.bIt("click",function(){c.eBV(i);const n=e.XpG(2);return c.Njj(n.saveChanges())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()}if(2&o){let i;const t=e.XpG(2);e.R7$(),e.vxM("settings"===(i=t.activeTab)?1:"folders"===i?2:-1),e.R7$(4),e.SpI(" ",e.bMT(6,3,"generic.cancel")," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,"sync.details.buttons.save-changes")," ")}}function Bn(o,r){if(1&o&&(e.nrm(0,"nsy-sync-settings",21),e.nI1(1,"async"),e.nI1(2,"async")),2&o){const i=e.XpG(2),t=e.XpG();e.Y8G("sync",i)("connector",e.bMT(1,3,t.connector))("logs",e.bMT(2,5,t.activityLogs))}}function Un(o,r){if(1&o){const i=e.RV6();e.j41(0,"nsy-folders-tab",22),e.bIt("selectionChange",function(n){c.eBV(i);const s=e.XpG(3);return c.Njj(s.updateFolders(n))}),e.k0s()}if(2&o){const i=e.XpG(2);e.Y8G("sync",i)}}function Yn(o,r){if(1&o&&e.nVh(0,Bn,3,7,"nsy-sync-settings",21)(1,Un,1,1,"nsy-folders-tab",16),2&o){let i;const t=e.XpG(2);e.vxM("settings"===(i=t.activeTab)?0:"folders"===i?1:-1)}}function Ln(o,r){if(1&o){const i=e.RV6();e.nVh(0,Vn,6,5,"div",2),e.nI1(1,"async"),e.j41(2,"pa-tabs",3)(3,"pa-tab",4),e.bIt("click",function(){c.eBV(i);const n=e.XpG();return c.Njj(n.activeTab="settings")}),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.nVh(6,Xn,3,4,"pa-tab",5),e.nI1(7,"async"),e.k0s(),e.nVh(8,An,10,7,"div"),e.nI1(9,"async"),e.vZN(10,Yn,2,1)}if(2&o){let i,t;const n=e.XpG();e.vxM((i=e.bMT(1,5,n.connectorDef))?0:-1,i),e.R7$(3),e.Y8G("active","settings"===n.activeTab),e.R7$(),e.SpI(" ",e.bMT(5,7,"sync.details.tabs.settings")," "),e.R7$(2),e.vxM(null!=(t=e.bMT(7,9,n.connector))&&t.allowToSelectFolders?6:-1),e.R7$(2),e.vxM(e.bMT(9,11,n.editMode)?8:10)}}let pe=(()=>{var o;class r{constructor(){this.router=(0,c.WQX)(R.Ix),this.currentRoute=(0,c.WQX)(R.nX),this.syncService=(0,c.WQX)(j),this.toaster=(0,c.WQX)(y._g),this.sdk=(0,c.WQX)(b.ok),this.modalService=(0,c.WQX)(y.w8),this.translate=(0,c.WQX)(C.c$),this.unsubscribeAll=new k.B,this.isDeleted=new k.B,this.kbId=this.sdk.currentKb.pipe((0,g.T)(t=>t.id)),this.syncId=this.currentRoute.params.pipe((0,v.p)(t=>!!t.syncId),(0,g.T)(t=>t.syncId),(0,x.M)(t=>this.syncService.setCurrentSyncId(t))),this.sync=this.syncService.cacheUpdated.pipe((0,d.n)(()=>this.syncId),(0,d.n)(t=>this.syncService.getSync(t)),(0,E.Q)(this.isDeleted)),this.connectorDef=this.sync.pipe((0,g.T)(t=>this.syncService.connectors[t.connector.name].definition)),this.connector=this.connectorDef.pipe((0,g.T)(t=>this.syncService.getConnector(t.id,""))),this.activityLogs=this.syncId.pipe((0,d.n)(t=>this.syncService.getLogs(t))),this.activeTab="settings",this.editMode=this.currentRoute.url.pipe((0,g.T)(t=>t.length>1&&"edit"===t[1].path)),this.validForm=!1,this.isSyncing=(0,Z.z)([this.syncId,this.syncService.isSyncing]).pipe((0,g.T)(([t,n])=>n[t]||!1))}ngOnDestroy(){this.unsubscribeAll.next(),this.unsubscribeAll.complete(),this.isDeleted.next(),this.isDeleted.complete()}toggleSync(t){this.syncId.pipe((0,_.s)(1),(0,d.n)(n=>this.syncService.updateSync(n,{disabled:!t}))).subscribe({error:()=>this.toaster.error(t?"sync.details.toast.activating-failed":"sync.details.toast.disabling-failed")})}triggerSync(){this.modalService.openConfirm({title:this.translate.instant("sync.details.modal.title"),description:"sync.details.modal.description",confirmLabel:"sync.details.modal.sync-new",cancelLabel:"sync.details.modal.re-sync-all"}).onClose.pipe((0,d.n)(t=>this.syncId.pipe((0,_.s)(1),(0,d.n)(n=>this.syncService.triggerSync(n,!t))))).subscribe({next:()=>this.toaster.success("sync.details.toast.triggering-sync-success"),error:()=>this.toaster.error("sync.details.toast.triggering-sync-failed")})}deleteSync(){this.sync.pipe((0,d.n)(t=>this.modalService.openConfirm({title:this.translate.instant("sync.confirm.deletion.title",{title:t.title}),description:"sync.confirm.deletion.description",isDestructive:!0,confirmLabel:"generic.delete"}).onClose.pipe((0,v.p)(n=>!!n),(0,x.M)(()=>this.isDeleted.next()),(0,d.n)(()=>this.syncService.deleteSync(t.id))))).subscribe({next:()=>this.router.navigate([".."],{relativeTo:this.currentRoute}),error:()=>this.toaster.error("sync.details.toast.deletion-failed")})}updateConfiguration(t){this.updatedConfig=t}updateSelection(t){this.updatedSelection=t}saveChanges(){!this.updatedConfig&&!this.updatedSelection||this.syncId.pipe((0,_.s)(1),(0,d.n)(t=>{const n={...this.updatedConfig};return this.updatedSelection&&(n.foldersToSync=this.updatedSelection),this.syncService.updateSync(t,n)})).subscribe({next:()=>{this.toaster.success("sync.details.toast.modification-success"),this.router.navigate([".."],{relativeTo:this.currentRoute})},error:()=>this.toaster.error("sync.details.toast.modification-failed")})}updateFolders(t){this.syncId.pipe((0,_.s)(1),(0,d.n)(n=>this.syncService.updateSync(n,{foldersToSync:t}))).subscribe({error:()=>this.toaster.error("sync.details.toast.modification-failed")})}static#e=o=()=>(this.\u0275fac=function(n){return new(n||r)},this.\u0275cmp=e.VBU({type:r,selectors:[["nsy-sync-details-page"]],decls:7,vars:9,consts:[[1,"page-spacing"],[3,"link"],[1,"details-header"],["notFullWidth",""],["data-cy","settings-tab",3,"click","active"],["data-cy","folders-tab",3,"active"],[1,"page-title"],["size","large",3,"path"],[1,"cta-container"],["kind","destructive","data-cy","delete",3,"click"],[1,"toggle-container"],["withBackground","","data-cy","active-toggle",3,"valueChange","value"],["aspect","basic","data-cy","sync-now",3,"click","disabled"],["aspect","basic","routerLink","./edit"],["data-cy","folders-tab",3,"click","active"],["noTopBorder","",3,"sync","kbId","connector","connectorId"],[3,"sync"],["aspect","basic","routerLink",".."],["kind","primary",3,"click"],["noTopBorder","",3,"configurationChange","validForm","sync","kbId","connector","connectorId"],[3,"selectedSyncItems","sync"],[3,"sync","connector","logs"],[3,"selectionChange","sync"]],template:function(n,s){if(1&n&&(e.j41(0,"div",0)(1,"nsi-back-button",1),e.nI1(2,"async"),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nVh(5,Ln,11,13),e.nI1(6,"async"),e.k0s()),2&n){let a;e.R7$(),e.Y8G("link",e.bMT(2,3,s.editMode)?"../..":".."),e.R7$(2),e.SpI(" ",e.bMT(4,5,"sync.add-page.back-button")," "),e.R7$(2),e.vxM((a=e.bMT(6,7,s.sync))?5:-1,a)}},dependencies:[T.MD,T.Jj,y.Xp,C.h,C.D9,p.V3x,G.R,p.Ymm,O.Q,p.rkm,A.a,p.aT,jn.Q,Gn.w,Mn,En,K.Wk,y.o3,ce,B],styles:['@import"https://cdn.rag.progress.cloud/fonts/inter.css";@import"https://cdn.rag.progress.cloud/fonts/roboto.css";@charset "UTF-8";@font-face{font-family:Source Code Pro;font-style:normal;font-weight:400;src:url(source-code-pro-v14-latin-regular.e7bb30b550ed09e8.woff2) format("woff2"),url(source-code-pro-v14-latin-regular.c54f7f16da733fd8.woff) format("woff")}[_ngcontent-%COMP%]:root{--color-dark-stronger: #000;--color-light-stronger: #fff;--color-neutral-regular: var(--custom-color-neutral-regular, hsl(0, 0%, 44%));--color-neutral-light: var(--custom-color-neutral-light, hsl(0, 0%, 77%));--color-neutral-lighter: var(--custom-color-neutral-lighter, hsl(0, 0%, 90%));--color-neutral-lightest: var(--custom-color-neutral-lightest, hsl(240, 7%, 97%));--color-primary-stronger: var(--custom-color-primary-stronger, hsl(252, 100%, 24%));--color-primary-strong: var(--custom-color-primary-strong, hsl(223.74, 100%, 39.8%));--color-primary-regular: var(--custom-color-primary-regular, hsl(223.2, 100%, 50.98%));--color-primary-light: var(--custom-color-primary-light, hsl(252, 100%, 73%));--color-primary-lighter: var(--custom-color-primary-lighter, hsl(212.57, 100%, 93.14%));--color-primary-lightest: var(--custom-color-primary-lightest, hsl(215.29, 100%, 96.67%));--color-secondary-stronger: hsl(49, 100%, 30%);--color-secondary-strong: hsl(49, 100%, 40%);--color-secondary-regular: hsl(49, 100%, 60%);--color-secondary-light: hsl(49, 100%, 80%);--color-secondary-lighter: hsl(49, 100%, 90%);--color-secondary-lightest: hsl(49, 100%, 95%);--color-tertiary-stronger: hsl(2251, 100%, 24%);--color-tertiary-strong: hsl(2251, 100%, 40%);--color-tertiary-regular: hsl(2251, 100%, 50%);--color-tertiary-light: hsl(2251, 100%, 65%);--color-tertiary-lighter: hsl(2251, 100%, 92%);--color-tertiary-lightest: hsl(2251, 100%, 96%)}.page-spacing[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem}.page-title[_ngcontent-%COMP%]{align-items:center;display:flex;gap:.5rem}.details-header[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between}.cta-container[_ngcontent-%COMP%]{align-items:center;display:flex;gap:.5rem}'],changeDetection:0}))}return o(),r})();const Jn=[{path:"",component:ke,children:[{path:"",component:rt},{path:"add/:connector",component:ae},{path:"add/:connector/:syncId",component:ae},{path:":syncId/edit",component:pe},{path:":syncId",component:pe}]}]}}]);
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
"account.models.bedrock.leave-confirm.button": "Sortir",
|
|
81
81
|
"account.models.bedrock.leave-confirm.description": "Si et vas ara, perdis tot el teu progrés i tindràs que començar de nou.",
|
|
82
82
|
"account.models.bedrock.permissions": "Especificar permisos",
|
|
83
|
+
"account.models.bedrock.permissions-help": "Aquesta política permet invocar qualsevol model Bedrock en qualsevol regió. Podeu modificar-la per ajustar l'abast a models i regions específics.",
|
|
83
84
|
"account.models.bedrock.role-arn": "ARN del rol",
|
|
84
85
|
"account.models.bedrock.role-name": "Nom del rol",
|
|
85
86
|
"account.models.bedrock.set-up": "Configurar integració",
|
|
@@ -87,9 +88,9 @@
|
|
|
87
88
|
"account.models.bedrock.status.error": "Error",
|
|
88
89
|
"account.models.bedrock.status.incomplete": "Incomplet",
|
|
89
90
|
"account.models.bedrock.step": "Pas {{num}}",
|
|
90
|
-
"account.models.bedrock.step-1-1": "Inicia la sessió al teu compte d'AWS i
|
|
91
|
-
"account.models.bedrock.step-1-2": "
|
|
92
|
-
"account.models.bedrock.step-1-3": "A <strong>Trusted entity type</strong
|
|
91
|
+
"account.models.bedrock.step-1-1": "Inicia la sessió al teu compte d'AWS i assegura't que la regió <strong>{{region}}</strong> estigui habilitada.",
|
|
92
|
+
"account.models.bedrock.step-1-2": "Al servei <strong>IAM</strong>, aneu a la pàgina <strong>Roles</strong> i feu clic a <strong>Create role</strong>.",
|
|
93
|
+
"account.models.bedrock.step-1-3": "A <strong>Trusted entity type</strong> selecciona <strong>AWS account</strong>.",
|
|
93
94
|
"account.models.bedrock.step-1-4": "Tria <strong>Another AWS account</strong> i introdueix els identificadors següents:",
|
|
94
95
|
"account.models.bedrock.step-1-5": "Omet la secció <strong>Add Permissions</strong> fent clic a <strong>Next</strong>.",
|
|
95
96
|
"account.models.bedrock.step-1-6": "Introdueix el nom de rol següent:",
|
|
@@ -194,17 +195,12 @@
|
|
|
194
195
|
"account.token_generation_warning": "Si generes un nou codi perdràs l’accés amb la clau actual i es perdran els processos que s’estiguin executant en aquests moments.",
|
|
195
196
|
"account.total_queries": "Nombre total de cerques",
|
|
196
197
|
"account.type.label": "Nivell",
|
|
197
|
-
"account.type.stash-business": "Compte Business",
|
|
198
|
-
"account.type.stash-developer": "Compte Starter/Developer",
|
|
199
|
-
"account.type.stash-enterprise": "Compte Enterprise",
|
|
200
|
-
"account.type.stash-growth": "Compte Growth",
|
|
201
|
-
"account.type.stash-starter": "Compte Starter",
|
|
202
|
-
"account.type.stash-startup": "Compte Startup",
|
|
203
198
|
"account.type.stash-trial": "Compte de prova",
|
|
204
199
|
"account.type.trial-mode": "prova gratuïta",
|
|
205
200
|
"account.type.v3enterprise": "Compte Enterprise",
|
|
206
201
|
"account.type.v3fly": "Compte Fly",
|
|
207
202
|
"account.type.v3growth": "Compte Growth",
|
|
203
|
+
"account.type.v3pro": "Compte Pro",
|
|
208
204
|
"account.type.v3starter": "Compte Starter",
|
|
209
205
|
"account.users_amount": "Nombre total d’usuaris al compte",
|
|
210
206
|
"account.users_left": "Llicències disponibles",
|
|
@@ -1340,6 +1336,8 @@
|
|
|
1340
1336
|
"retrieval-agents.workflow.node-types.generate.prompt-placeholder": "Sol·licita el format de text/JSON/imatge generat",
|
|
1341
1337
|
"retrieval-agents.workflow.node-types.generate.title": "Generació",
|
|
1342
1338
|
"retrieval-agents.workflow.node-types.google.description": "## TODO ##",
|
|
1339
|
+
"retrieval-agents.workflow.node-types.google.form.go-to-drivers": "Creeu un controlador Google",
|
|
1340
|
+
"retrieval-agents.workflow.node-types.google.form.no-source": "No hi ha cap controlador Google registrat, cal que en creeu un abans d'afegir aquest tipus de node.",
|
|
1343
1341
|
"retrieval-agents.workflow.node-types.google.title": "Internet - Google",
|
|
1344
1342
|
"retrieval-agents.workflow.node-types.guardrails.form.detection_config.help": "Esquema JSON que representa la configuració de detecció",
|
|
1345
1343
|
"retrieval-agents.workflow.node-types.guardrails.form.detection_config.label": "Configuració de detecció personalitzada",
|
|
@@ -1383,6 +1381,8 @@
|
|
|
1383
1381
|
"retrieval-agents.workflow.node-types.mcp.form.transport": "Transport",
|
|
1384
1382
|
"retrieval-agents.workflow.node-types.mcp.title": "Protocol de context de model (MCP)",
|
|
1385
1383
|
"retrieval-agents.workflow.node-types.perplexity.description": "## TODO ##",
|
|
1384
|
+
"retrieval-agents.workflow.node-types.perplexity.form.go-to-drivers": "Creeu un controlador Perplexity",
|
|
1385
|
+
"retrieval-agents.workflow.node-types.perplexity.form.no-source": "No hi ha cap controlador Perplexity registrat, cal que en creeu un abans d'afegir aquest tipus de node.",
|
|
1386
1386
|
"retrieval-agents.workflow.node-types.perplexity.title": "Internet - Perplexity",
|
|
1387
1387
|
"retrieval-agents.workflow.node-types.postprocess_alinia.description": "Afegeix una protecció de sortida LLM",
|
|
1388
1388
|
"retrieval-agents.workflow.node-types.preprocess_alinia.description": "Afegeix la protecció d'entrada LLM",
|
|
@@ -1850,6 +1850,21 @@
|
|
|
1850
1850
|
"search.widgets.form.rao-widget-options.title.label": "Títol del widget",
|
|
1851
1851
|
"search.widgets.form.rao-widget-options.username.help": "Nom utilitzat a la salutació inicial",
|
|
1852
1852
|
"search.widgets.form.rao-widget-options.username.label": "Nom d'usuari",
|
|
1853
|
+
"search.widgets.form.rao-widget-options.viewtype.title": "Visualització del widget",
|
|
1854
|
+
"search.widgets.form.rao-widget-options.viewtype.conversation": "Conversa",
|
|
1855
|
+
"search.widgets.form.rao-widget-options.viewtype.floating": "Flotant",
|
|
1856
|
+
"search.widgets.form.rao-widget-options.prompts.title": "Indicacions suggerides",
|
|
1857
|
+
"search.widgets.form.rao-widget-options.prompts.description": "Personalitzeu les indicacions que es mostren abans que comenci la conversa.",
|
|
1858
|
+
"search.widgets.form.rao-widget-options.prompts.use-fallback.label": "Utilitza indicacions alternatives",
|
|
1859
|
+
"search.widgets.form.rao-widget-options.prompts.use-fallback.help": "Les indicacions alternatives s'apliquen quan la llista personalitzada és buida.",
|
|
1860
|
+
"search.widgets.form.rao-widget-options.prompts.prompt-label": "Indicació {{index}}",
|
|
1861
|
+
"search.widgets.form.rao-widget-options.prompts.add": "Afegeix indicació",
|
|
1862
|
+
"search.widgets.form.rao-widget-options.prompts.remove": "Suprimeix",
|
|
1863
|
+
"search.widgets.form.rao-widget-options.prompts.visible-count.label": "Indicacions visibles",
|
|
1864
|
+
"search.widgets.form.rao-widget-options.prompts.visible-count.help": "Establiu quantes indicacions es mostren a l'usuari.",
|
|
1865
|
+
"search.widgets.form.rao-widget-options.recording.title": "Enregistrament de veu",
|
|
1866
|
+
"search.widgets.form.rao-widget-options.recording.language.label": "Idioma de reconeixement",
|
|
1867
|
+
"search.widgets.form.rao-widget-options.recording.language.help": "Proporcioneu un codi d'idioma BCP-47 com ara \"ca-ES\".",
|
|
1853
1868
|
"search.widgets.form.search-config-title": "Configuració de cerca",
|
|
1854
1869
|
"search.widgets.form.widget-options.chat-placeholder.input-help": "Feu servir un <code>|</code> per separar el placeholder inicial del que es mostra un cop iniciada la discussió.",
|
|
1855
1870
|
"search.widgets.form.widget-options.chat-placeholder.toggle-description": "Canvieu el text que voleu que aparegui a la barra de xat quan no estigui actiu. El text predeterminat és \"Parlem\".",
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
"account.models.bedrock.leave-confirm.button": "Leave setup",
|
|
81
81
|
"account.models.bedrock.leave-confirm.description": "If you leave now, you will lose all your progress and have to start over.",
|
|
82
82
|
"account.models.bedrock.permissions": "Specify permissions",
|
|
83
|
+
"account.models.bedrock.permissions-help": "This policy allows to invoke any Bedrock model in any region. You can modify it to tightening scope to specific models and regions.",
|
|
83
84
|
"account.models.bedrock.role-arn": "Role ARN",
|
|
84
85
|
"account.models.bedrock.role-name": "Role name",
|
|
85
86
|
"account.models.bedrock.set-up": "Set up integration",
|
|
@@ -87,9 +88,9 @@
|
|
|
87
88
|
"account.models.bedrock.status.error": "Error",
|
|
88
89
|
"account.models.bedrock.status.incomplete": "Incomplete",
|
|
89
90
|
"account.models.bedrock.step": "Step {{num}}",
|
|
90
|
-
"account.models.bedrock.step-1-1": "Log in to your AWS account and
|
|
91
|
-
"account.models.bedrock.step-1-2": "
|
|
92
|
-
"account.models.bedrock.step-1-3": "Under <strong>Trusted entity type</strong
|
|
91
|
+
"account.models.bedrock.step-1-1": "Log in to your AWS account and ensure that the region <strong>{{region}}</strong> is enabled.",
|
|
92
|
+
"account.models.bedrock.step-1-2": "In the <strong>IAM</strong> service, go o to the <strong>Roles</strong> page and click <strong>Create role</strong>",
|
|
93
|
+
"account.models.bedrock.step-1-3": "Under <strong>Trusted entity type</strong> select <strong>AWS account</strong>.",
|
|
93
94
|
"account.models.bedrock.step-1-4": "Choose <strong>Another AWS account</strong> and enter the following IDs:",
|
|
94
95
|
"account.models.bedrock.step-1-5": "Skip the <strong>Add Permissions</strong> section by clicking <strong>Next</strong>",
|
|
95
96
|
"account.models.bedrock.step-1-6": "Enter the following role name:",
|
|
@@ -194,17 +195,12 @@
|
|
|
194
195
|
"account.token_generation_warning": "If you generate a new key, the current key will be disabled and any ongoing jobs will be lost",
|
|
195
196
|
"account.total_queries": "Total number of queries",
|
|
196
197
|
"account.type.label": "Tier",
|
|
197
|
-
"account.type.stash-business": "Business Account",
|
|
198
|
-
"account.type.stash-developer": "Starter/Developer account",
|
|
199
|
-
"account.type.stash-enterprise": "Enterprise Account",
|
|
200
|
-
"account.type.stash-growth": "Growth account",
|
|
201
|
-
"account.type.stash-starter": "Starter account",
|
|
202
|
-
"account.type.stash-startup": "Startup account",
|
|
203
198
|
"account.type.stash-trial": "Trial Account",
|
|
204
199
|
"account.type.trial-mode": "free trial",
|
|
205
200
|
"account.type.v3enterprise": "Enterprise Account",
|
|
206
201
|
"account.type.v3fly": "Fly account",
|
|
207
202
|
"account.type.v3growth": "Growth account",
|
|
203
|
+
"account.type.v3pro": "Pro account",
|
|
208
204
|
"account.type.v3starter": "Starter account",
|
|
209
205
|
"account.users_amount": "Total number of users in the account",
|
|
210
206
|
"account.users_left": "Total licenses left",
|
|
@@ -1341,6 +1337,8 @@
|
|
|
1341
1337
|
"retrieval-agents.workflow.node-types.generate.prompt-placeholder": "Prompt for the generated text/JSON/image format",
|
|
1342
1338
|
"retrieval-agents.workflow.node-types.generate.title": "Generation",
|
|
1343
1339
|
"retrieval-agents.workflow.node-types.google.description": "## TODO ##",
|
|
1340
|
+
"retrieval-agents.workflow.node-types.google.form.go-to-drivers": "Create a Google driver",
|
|
1341
|
+
"retrieval-agents.workflow.node-types.google.form.no-source": "There is no Google driver registered, you need to create one before adding this kind of node.",
|
|
1344
1342
|
"retrieval-agents.workflow.node-types.google.title": "Internet - Google",
|
|
1345
1343
|
"retrieval-agents.workflow.node-types.guardrails.form.detection_config.help": "JSON schema representing the detection configuration",
|
|
1346
1344
|
"retrieval-agents.workflow.node-types.guardrails.form.detection_config.label": "Custom detection configuration",
|
|
@@ -1384,6 +1382,8 @@
|
|
|
1384
1382
|
"retrieval-agents.workflow.node-types.mcp.form.transport": "Transport",
|
|
1385
1383
|
"retrieval-agents.workflow.node-types.mcp.title": "Model Context Protocol (MCP)",
|
|
1386
1384
|
"retrieval-agents.workflow.node-types.perplexity.description": "## TODO ##",
|
|
1385
|
+
"retrieval-agents.workflow.node-types.perplexity.form.go-to-drivers": "Create a Perplexity driver",
|
|
1386
|
+
"retrieval-agents.workflow.node-types.perplexity.form.no-source": "There is no Perplexity driver registered, you need to create one before adding this kind of node.",
|
|
1387
1387
|
"retrieval-agents.workflow.node-types.perplexity.title": "Internet - Perplexity",
|
|
1388
1388
|
"retrieval-agents.workflow.node-types.postprocess_alinia.description": "Add LLM output guard",
|
|
1389
1389
|
"retrieval-agents.workflow.node-types.postprocess_alinia.title": "Guardrails AI",
|
|
@@ -1861,6 +1861,21 @@
|
|
|
1861
1861
|
"search.widgets.form.rao-widget-options.title.label": "Widget title",
|
|
1862
1862
|
"search.widgets.form.rao-widget-options.username.help": "Name used in the initial greeting",
|
|
1863
1863
|
"search.widgets.form.rao-widget-options.username.label": "Username",
|
|
1864
|
+
"search.widgets.form.rao-widget-options.viewtype.title": "Widget view",
|
|
1865
|
+
"search.widgets.form.rao-widget-options.viewtype.conversation": "Conversation",
|
|
1866
|
+
"search.widgets.form.rao-widget-options.viewtype.floating": "Floating",
|
|
1867
|
+
"search.widgets.form.rao-widget-options.prompts.title": "Suggested prompts",
|
|
1868
|
+
"search.widgets.form.rao-widget-options.prompts.description": "Customize the prompt chips shown before the conversation starts.",
|
|
1869
|
+
"search.widgets.form.rao-widget-options.prompts.use-fallback.label": "Use fallback prompts",
|
|
1870
|
+
"search.widgets.form.rao-widget-options.prompts.use-fallback.help": "Fallback prompts are applied when the custom list is empty.",
|
|
1871
|
+
"search.widgets.form.rao-widget-options.prompts.prompt-label": "Prompt {{index}}",
|
|
1872
|
+
"search.widgets.form.rao-widget-options.prompts.add": "Add prompt",
|
|
1873
|
+
"search.widgets.form.rao-widget-options.prompts.remove": "Remove",
|
|
1874
|
+
"search.widgets.form.rao-widget-options.prompts.visible-count.label": "Visible prompts",
|
|
1875
|
+
"search.widgets.form.rao-widget-options.prompts.visible-count.help": "Set how many prompts are displayed to the user.",
|
|
1876
|
+
"search.widgets.form.rao-widget-options.recording.title": "Voice recording",
|
|
1877
|
+
"search.widgets.form.rao-widget-options.recording.language.label": "Recognition language",
|
|
1878
|
+
"search.widgets.form.rao-widget-options.recording.language.help": "Provide a BCP-47 language tag such as \"en-US\".",
|
|
1864
1879
|
"search.widgets.form.search-config-title": "Search configuration",
|
|
1865
1880
|
"search.widgets.form.widget-options.chat-placeholder.input-help": "Use a <code>|</code> to separate the initial placeholder from the one displayed once the discussion is engaged.",
|
|
1866
1881
|
"search.widgets.form.widget-options.chat-placeholder.toggle-description": "Change the text that you want to appear in the chat bar when not active. The default text is “Let's talk”.",
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
"account.models.bedrock.leave-confirm.button": "Salir",
|
|
81
81
|
"account.models.bedrock.leave-confirm.description": "Si te vas ahora, perderás todo tu progreso y tendrás que empezar de nuevo.",
|
|
82
82
|
"account.models.bedrock.permissions": "Especificar permisos",
|
|
83
|
+
"account.models.bedrock.permissions-help": "Esta política permite invocar cualquier modelo de Bedrock en cualquier región. Puedes modificarla para limitar el alcance a modelos y regiones específicos.",
|
|
83
84
|
"account.models.bedrock.role-arn": "ARN del rol",
|
|
84
85
|
"account.models.bedrock.role-name": "Nombre del rol",
|
|
85
86
|
"account.models.bedrock.set-up": "Configurar integración",
|
|
@@ -87,9 +88,9 @@
|
|
|
87
88
|
"account.models.bedrock.status.error": "Error",
|
|
88
89
|
"account.models.bedrock.status.incomplete": "Incompleto",
|
|
89
90
|
"account.models.bedrock.step": "Paso {{num}}",
|
|
90
|
-
"account.models.bedrock.step-1-1": "Inicia sesión en tu cuenta de AWS y
|
|
91
|
-
"account.models.bedrock.step-1-2": "
|
|
92
|
-
"account.models.bedrock.step-1-3": "En <strong>Tipo de entidad de confianza</strong
|
|
91
|
+
"account.models.bedrock.step-1-1": "Inicia sesión en tu cuenta de AWS y asegúrate de que la región <strong>{{region}}</strong> esté habilitada.",
|
|
92
|
+
"account.models.bedrock.step-1-2": "En el servicio <strong>IAM</strong>, vaya a la página <strong>Roles</strong> y haz clic en <strong>Crear rol</strong>.",
|
|
93
|
+
"account.models.bedrock.step-1-3": "En <strong>Tipo de entidad de confianza</strong> selecciona <strong>Cuenta de AWS</strong>.",
|
|
93
94
|
"account.models.bedrock.step-1-4": "Elije <strong>Otra cuenta de AWS</strong> e introduce los siguientes ID:",
|
|
94
95
|
"account.models.bedrock.step-1-5": "Omite la sección <strong>Agregar permisos</strong> haciendo clic en <strong>Siguiente</strong>",
|
|
95
96
|
"account.models.bedrock.step-1-6": "Introduce el siguiente nombre de rol:",
|
|
@@ -194,17 +195,12 @@
|
|
|
194
195
|
"account.token_generation_warning": "Si generas un nuevo código perderás el acceso con la clave actual y se perderán los procesos que se estén ejecutando en estos momentos.",
|
|
195
196
|
"account.total_queries": "Número total de búsquedas",
|
|
196
197
|
"account.type.label": "Nivel",
|
|
197
|
-
"account.type.stash-business": "Cuenta Business",
|
|
198
|
-
"account.type.stash-developer": "Cuenta Starter/Developer",
|
|
199
|
-
"account.type.stash-enterprise": "Cuenta Enterprise",
|
|
200
|
-
"account.type.stash-growth": "Cuenta Growth",
|
|
201
|
-
"account.type.stash-starter": "Cuenta Starter",
|
|
202
|
-
"account.type.stash-startup": "Cuenta Startup",
|
|
203
198
|
"account.type.stash-trial": "Cuenta de prueba",
|
|
204
199
|
"account.type.trial-mode": "prueba gratis",
|
|
205
200
|
"account.type.v3enterprise": "Cuenta Enterprise",
|
|
206
201
|
"account.type.v3fly": "Cuenta Fly",
|
|
207
202
|
"account.type.v3growth": "Cuenta Growth",
|
|
203
|
+
"account.type.v3pro": "Cuenta Pro",
|
|
208
204
|
"account.type.v3starter": "Cuenta Starter",
|
|
209
205
|
"account.users_amount": "Usuarios totales a la cuenta",
|
|
210
206
|
"account.users_left": "Licencias disponibles",
|
|
@@ -1340,6 +1336,8 @@
|
|
|
1340
1336
|
"retrieval-agents.workflow.node-types.generate.prompt-placeholder": "Solicitud del formato de texto/JSON/imagen generado",
|
|
1341
1337
|
"retrieval-agents.workflow.node-types.generate.title": "Generación",
|
|
1342
1338
|
"retrieval-agents.workflow.node-types.google.description": "## TODO ##",
|
|
1339
|
+
"retrieval-agents.workflow.node-types.google.form.go-to-drivers": "Crear un controlador Google",
|
|
1340
|
+
"retrieval-agents.workflow.node-types.google.form.no-source": "No hay ningún controlador Google registrado, debe crear uno antes de agregar este tipo de nodo.",
|
|
1343
1341
|
"retrieval-agents.workflow.node-types.google.title": "Internet - Google",
|
|
1344
1342
|
"retrieval-agents.workflow.node-types.guardrails.form.detection_config.help": "Esquema JSON que representa la configuración de detección",
|
|
1345
1343
|
"retrieval-agents.workflow.node-types.guardrails.form.detection_config.label": "Configuración de detección personalizada",
|
|
@@ -1383,6 +1381,8 @@
|
|
|
1383
1381
|
"retrieval-agents.workflow.node-types.mcp.form.transport": "Transporte",
|
|
1384
1382
|
"retrieval-agents.workflow.node-types.mcp.title": "Protocolo de Contexto Modelo (MCP)",
|
|
1385
1383
|
"retrieval-agents.workflow.node-types.perplexity.description": "## TODO ##",
|
|
1384
|
+
"retrieval-agents.workflow.node-types.perplexity.form.go-to-drivers": "Crear un controlador Perplexity",
|
|
1385
|
+
"retrieval-agents.workflow.node-types.perplexity.form.no-source": "No hay ningún controlador Perplexity registrado, debe crear uno antes de agregar este tipo de nodo.",
|
|
1386
1386
|
"retrieval-agents.workflow.node-types.perplexity.title": "Internet - Perplexity",
|
|
1387
1387
|
"retrieval-agents.workflow.node-types.postprocess_alinia.description": "Agregar protección de salida LLM",
|
|
1388
1388
|
"retrieval-agents.workflow.node-types.preprocess_alinia.description": "Agregar protección de entrada LLM",
|
|
@@ -1850,6 +1850,21 @@
|
|
|
1850
1850
|
"search.widgets.form.rao-widget-options.title.label": "Título del widget",
|
|
1851
1851
|
"search.widgets.form.rao-widget-options.username.help": "Nombre utilizado en el saludo inicial",
|
|
1852
1852
|
"search.widgets.form.rao-widget-options.username.label": "Nombre de usuario",
|
|
1853
|
+
"search.widgets.form.rao-widget-options.viewtype.title": "Vista del widget",
|
|
1854
|
+
"search.widgets.form.rao-widget-options.viewtype.conversation": "Conversación",
|
|
1855
|
+
"search.widgets.form.rao-widget-options.viewtype.floating": "Flotante",
|
|
1856
|
+
"search.widgets.form.rao-widget-options.prompts.title": "Prompts sugeridos",
|
|
1857
|
+
"search.widgets.form.rao-widget-options.prompts.description": "Personaliza las sugerencias que se muestran antes de iniciar la conversación.",
|
|
1858
|
+
"search.widgets.form.rao-widget-options.prompts.use-fallback.label": "Usar prompts de respaldo",
|
|
1859
|
+
"search.widgets.form.rao-widget-options.prompts.use-fallback.help": "Se utilizarán los prompts de respaldo cuando la lista personalizada esté vacía.",
|
|
1860
|
+
"search.widgets.form.rao-widget-options.prompts.prompt-label": "Prompt {{index}}",
|
|
1861
|
+
"search.widgets.form.rao-widget-options.prompts.add": "Añadir prompt",
|
|
1862
|
+
"search.widgets.form.rao-widget-options.prompts.remove": "Eliminar",
|
|
1863
|
+
"search.widgets.form.rao-widget-options.prompts.visible-count.label": "Prompts visibles",
|
|
1864
|
+
"search.widgets.form.rao-widget-options.prompts.visible-count.help": "Define cuántos prompts se muestran al usuario.",
|
|
1865
|
+
"search.widgets.form.rao-widget-options.recording.title": "Grabación de voz",
|
|
1866
|
+
"search.widgets.form.rao-widget-options.recording.language.label": "Idioma de reconocimiento",
|
|
1867
|
+
"search.widgets.form.rao-widget-options.recording.language.help": "Introduce un código de idioma BCP-47 como \"es-ES\".",
|
|
1853
1868
|
"search.widgets.form.search-config-title": "Configuración de búsqueda",
|
|
1854
1869
|
"search.widgets.form.widget-options.chat-placeholder.input-help": "Utilice <code>|</code> para separar el placeholder inicial del que se muestra una vez que se inicia la discusión.",
|
|
1855
1870
|
"search.widgets.form.widget-options.chat-placeholder.toggle-description": "Cambia el texto que quieres que aparezca en la barra de chat cuando no esté activa. El texto predeterminado es “Charlemos”.",
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
"account.models.bedrock.leave-confirm.button": "Quitter",
|
|
81
81
|
"account.models.bedrock.leave-confirm.description": "Si tu es maintenant, tu perdras tout ton progrès et tu tendras à entreprendre de nouveau.",
|
|
82
82
|
"account.models.bedrock.permissions": "Spécifier les autorisations",
|
|
83
|
+
"account.models.bedrock.permissions-help": "Cette politique autorise l'utilisation de n'importe quel modèle Bedrock dans n'importe quelle région. Vous pouvez la modifier pour restreindre sa portée à des modèles et des régions spécifiques.",
|
|
83
84
|
"account.models.bedrock.role-arn": "Rôle ARN",
|
|
84
85
|
"account.models.bedrock.role-name": "Nom du rôle",
|
|
85
86
|
"account.models.bedrock.set-up": "Configurer intégration",
|
|
@@ -87,9 +88,9 @@
|
|
|
87
88
|
"account.models.bedrock.status.error": "Erreur",
|
|
88
89
|
"account.models.bedrock.status.incomplete": "Incomplet",
|
|
89
90
|
"account.models.bedrock.step": "Étape {{num}}",
|
|
90
|
-
"account.models.bedrock.step-1-1": "Connectez-vous à votre compte AWS et
|
|
91
|
-
"account.models.bedrock.step-1-2": "
|
|
92
|
-
"account.models.bedrock.step-1-3": "Sous <strong>Type d'entité approuvée</strong
|
|
91
|
+
"account.models.bedrock.step-1-1": "Connectez-vous à votre compte AWS et assurez-vous que la région <strong>{{region}}</strong> est activée.",
|
|
92
|
+
"account.models.bedrock.step-1-2": "Dans le service <strong>IAM</strong>, accédez à la page <strong>Rôles</strong> et cliquez sur <strong>Créer un rôle</strong>.",
|
|
93
|
+
"account.models.bedrock.step-1-3": "Sous <strong>Type d'entité approuvée</strong> sélectionnez <strong>Compte AWS</strong>.",
|
|
93
94
|
"account.models.bedrock.step-1-4": "Choisissez <strong>Autre compte AWS</strong> et saisissez les identifiants suivants :",
|
|
94
95
|
"account.models.bedrock.step-1-5": "Ignorez la section <strong>Ajouter des autorisations</strong> en cliquant sur <strong>Suivant</strong>.",
|
|
95
96
|
"account.models.bedrock.step-1-6": "Veuillez saisir le nom du rôle suivant :",
|
|
@@ -205,6 +206,7 @@
|
|
|
205
206
|
"account.type.v3enterprise": "Compte Entreprise",
|
|
206
207
|
"account.type.v3fly": "Compte Fly",
|
|
207
208
|
"account.type.v3growth": "Compte Growth",
|
|
209
|
+
"account.type.v3pro": "Compte Pro",
|
|
208
210
|
"account.type.v3starter": "Compte Starter",
|
|
209
211
|
"account.users_amount": "Nombre total d’utilisateurs dans le compte",
|
|
210
212
|
"account.users_left": "Total des licences restantes",
|
|
@@ -1340,6 +1342,8 @@
|
|
|
1340
1342
|
"retrieval-agents.workflow.node-types.generate.prompt-placeholder": "Demander le format de texte/JSON/image généré",
|
|
1341
1343
|
"retrieval-agents.workflow.node-types.generate.title": "Génétation",
|
|
1342
1344
|
"retrieval-agents.workflow.node-types.google.description": "## TODO ##",
|
|
1345
|
+
"retrieval-agents.workflow.node-types.google.form.go-to-drivers": "Créer un pilote Google",
|
|
1346
|
+
"retrieval-agents.workflow.node-types.google.form.no-source": "Il n'y a pas de pilote Google enregistré, vous devez en créer un avant d'ajouter ce type de nœud.",
|
|
1343
1347
|
"retrieval-agents.workflow.node-types.google.title": "Internet - Google",
|
|
1344
1348
|
"retrieval-agents.workflow.node-types.guardrails.form.detection_config.help": "Schéma JSON représentant la configuration de détection",
|
|
1345
1349
|
"retrieval-agents.workflow.node-types.guardrails.form.detection_config.label": "Configuration de détection personnalisée",
|
|
@@ -1383,6 +1387,8 @@
|
|
|
1383
1387
|
"retrieval-agents.workflow.node-types.mcp.form.transport": "Transport",
|
|
1384
1388
|
"retrieval-agents.workflow.node-types.mcp.title": "Protocole de contexte modèle (MCP)",
|
|
1385
1389
|
"retrieval-agents.workflow.node-types.perplexity.description": "## TODO ##",
|
|
1390
|
+
"retrieval-agents.workflow.node-types.perplexity.form.go-to-drivers": "Créer un pilote Perplexity",
|
|
1391
|
+
"retrieval-agents.workflow.node-types.perplexity.form.no-source": "Il n'y a pas de pilote Perplexity enregistré, vous devez en créer un avant d'ajouter ce type de nœud.",
|
|
1386
1392
|
"retrieval-agents.workflow.node-types.perplexity.title": "Internet - Perplexity",
|
|
1387
1393
|
"retrieval-agents.workflow.node-types.postprocess_alinia.description": "Ajouter une protection de sortie LLM",
|
|
1388
1394
|
"retrieval-agents.workflow.node-types.preprocess_alinia.description": "Ajouter une protection d'entrée LLM",
|
|
@@ -1850,6 +1856,21 @@
|
|
|
1850
1856
|
"search.widgets.form.rao-widget-options.title.label": "Titre du widget",
|
|
1851
1857
|
"search.widgets.form.rao-widget-options.username.help": "Nom utilisé dans la salutation initiale",
|
|
1852
1858
|
"search.widgets.form.rao-widget-options.username.label": "Nom d'utilisateur",
|
|
1859
|
+
"search.widgets.form.rao-widget-options.viewtype.title": "Affichage du widget",
|
|
1860
|
+
"search.widgets.form.rao-widget-options.viewtype.conversation": "Conversation",
|
|
1861
|
+
"search.widgets.form.rao-widget-options.viewtype.floating": "Flottant",
|
|
1862
|
+
"search.widgets.form.rao-widget-options.prompts.title": "Prompts suggérés",
|
|
1863
|
+
"search.widgets.form.rao-widget-options.prompts.description": "Personnalisez les suggestions affichées avant le début de la conversation.",
|
|
1864
|
+
"search.widgets.form.rao-widget-options.prompts.use-fallback.label": "Utiliser les prompts de secours",
|
|
1865
|
+
"search.widgets.form.rao-widget-options.prompts.use-fallback.help": "Les prompts de secours sont appliqués lorsque la liste personnalisée est vide.",
|
|
1866
|
+
"search.widgets.form.rao-widget-options.prompts.prompt-label": "Prompt {{index}}",
|
|
1867
|
+
"search.widgets.form.rao-widget-options.prompts.add": "Ajouter un prompt",
|
|
1868
|
+
"search.widgets.form.rao-widget-options.prompts.remove": "Supprimer",
|
|
1869
|
+
"search.widgets.form.rao-widget-options.prompts.visible-count.label": "Prompts visibles",
|
|
1870
|
+
"search.widgets.form.rao-widget-options.prompts.visible-count.help": "Définissez combien de prompts sont affichés à l’utilisateur.",
|
|
1871
|
+
"search.widgets.form.rao-widget-options.recording.title": "Enregistrement vocal",
|
|
1872
|
+
"search.widgets.form.rao-widget-options.recording.language.label": "Langue de reconnaissance",
|
|
1873
|
+
"search.widgets.form.rao-widget-options.recording.language.help": "Indiquez un code de langue BCP-47, par exemple \"fr-FR\".",
|
|
1853
1874
|
"search.widgets.form.search-config-title": "Configuration de la recherche",
|
|
1854
1875
|
"search.widgets.form.widget-options.chat-placeholder.input-help": "Utilisez un <code>|</code> pour séparer le placeholder initial de celui affiché une fois la discussion engagée.",
|
|
1855
1876
|
"search.widgets.form.widget-options.chat-placeholder.toggle-description": "Modifier le texte que vous souhaitez voir apparaître dans la barre de discussion lorsqu'il n'est pas actif. Le texte par défaut est « Discutons ».",
|