nucliadb-admin-assets 1.0.0.post2528__py3-none-any.whl → 1.0.0.post2556__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.

Files changed (22) hide show
  1. nucliadb_admin_assets/555.0ec7aabb000f24c7.js +1 -0
  2. nucliadb_admin_assets/assets/deployment/app-config.json +1 -1
  3. nucliadb_admin_assets/assets/i18n/common/ca.json +46 -12
  4. nucliadb_admin_assets/assets/i18n/common/en.json +46 -12
  5. nucliadb_admin_assets/assets/i18n/common/es.json +46 -12
  6. nucliadb_admin_assets/assets/i18n/common/fr.json +46 -12
  7. nucliadb_admin_assets/assets/i18n/sync/ca.json +13 -2
  8. nucliadb_admin_assets/assets/i18n/sync/en.json +13 -2
  9. nucliadb_admin_assets/assets/i18n/sync/es.json +13 -2
  10. nucliadb_admin_assets/assets/i18n/sync/fr.json +13 -2
  11. nucliadb_admin_assets/index.html +4 -4
  12. nucliadb_admin_assets/main.9a3a3eb3e186e3ec.js +1 -0
  13. nucliadb_admin_assets/{runtime.cbd4b07776ed8d84.js → runtime.bee50f7f6c74eb8b.js} +1 -1
  14. nucliadb_admin_assets/styles.2cd68db8a5f48d84.css +1 -0
  15. {nucliadb_admin_assets-1.0.0.post2528.dist-info → nucliadb_admin_assets-1.0.0.post2556.dist-info}/METADATA +1 -1
  16. {nucliadb_admin_assets-1.0.0.post2528.dist-info → nucliadb_admin_assets-1.0.0.post2556.dist-info}/RECORD +19 -19
  17. nucliadb_admin_assets/555.92b9f6822a7de6c8.js +0 -1
  18. nucliadb_admin_assets/main.dcd5944f38c06d0d.js +0 -1
  19. nucliadb_admin_assets/styles.93af2737f32fdfdf.css +0 -1
  20. {nucliadb_admin_assets-1.0.0.post2528.dist-info → nucliadb_admin_assets-1.0.0.post2556.dist-info}/WHEEL +0 -0
  21. {nucliadb_admin_assets-1.0.0.post2528.dist-info → nucliadb_admin_assets-1.0.0.post2556.dist-info}/top_level.txt +0 -0
  22. {nucliadb_admin_assets-1.0.0.post2528.dist-info → nucliadb_admin_assets-1.0.0.post2556.dist-info}/zip-safe +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunknucliadb_admin=self.webpackChunknucliadb_admin||[]).push([[555],{5555:(qn,Y,a)=>{a.r(Y),a.d(Y,{SYNC_ROUTES:()=>Zn});var c=a(2306),R=a(419),$=a(1413),ut=a(1584),v=a(5964),d=a(5558),j=a(6977);const F="assets/connector-logos";var P=function(n){return n.PENDING="PENDING",n.PROCESSING="PROCESSING",n.UPLOADED="UPLOADED",n.ERROR="ERROR",n}(P||{}),M=a(4412),u=a(6354),gt=a(7468),y=a(6697),f=a(7673),S=a(8141),X=a(9437),b=a(4760);const mt={id:"sitemap",title:"Sitemap",logo:`${F}/sitemap.svg`,description:"Upload web pages from a sitemap.xml",permanentSyncOnly:!0,factory:()=>new _t};class _t{constructor(){this.hasServerSideAuth=!1,this.isExternal=!0,this.allowToSelectFolders=!1,this.canSyncSecurityGroups=!1}getStaticFolders(){return[{uuid:"",title:"Sitemap",originalId:"SITEMAP",metadata:{},status:P.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 yt={id:"folder",title:"Folder",logo:`${F}/folder.svg`,description:"Upload a folder from your device",factory:()=>new ft};class ft{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:P.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}}}const Ct={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 bt},L="CONFLUENCE_TOKEN";class bt{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(L,r.token)}getParametersValues(){return{token:localStorage.getItem(L)}}getStaticFolders(){return[]}}const vt={id:"rss",title:"RSS",logo:`${F}/rss.svg`,description:"Upload web pages from a RSS feed",permanentSyncOnly:!0,factory:()=>new St};class St{constructor(){this.hasServerSideAuth=!1,this.isExternal=!0,this.allowToSelectFolders=!1,this.canSyncSecurityGroups=!1}getStaticFolders(){return[{uuid:"",title:"RSS",originalId:"rss",metadata:{},status:P.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{}}}class D{constructor(r,i,e){this.hasServerSideAuth=!0,this.isExternal=!0,this.allowToSelectFolders=!1,this.resumable=!1,this.canSyncSecurityGroups="gdrive"===r,this.name=r,this.id=i,this.path=e}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[]}}var xt=a(5512);const Tt={id:"sitefinity",title:"Sitefinity",logo:`${F}/sitefinity.svg`,description:"Progress Sitefinity CMS",permanentSyncOnly:!0,factory:()=>new Ft};class Ft{constructor(){this.hasServerSideAuth=!1,this.isExternal=!0,this.allowToSelectFolders=!1,this.canSyncSecurityGroups=!1}getStaticFolders(){return[{uuid:"",title:"Sitefinity",originalId:"SITEFINITY",metadata:{},status:P.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{}}}class It extends D{constructor(r,i){super("sharepoint",r,i)}getParametersSections(){return(0,f.of)([{id:"credentials",title:"sync.connectors.oauth.credentials.title",fields:[{id:"tenant_id",label:"sync.connectors.sharepoint.tenant_id.label",type:"text",required:!0},{id:"client_id",label:"sync.connectors.sharepoint.client_id.label",type:"text",required:!0},{id:"pfx_base64",label:"sync.connectors.sharepoint.pfx_base64.label",help:"sync.connectors.sharepoint.pfx_base64.help",type:"textarea",required:!0},{id:"pfx_password",label:"sync.connectors.sharepoint.pfx_password.label",help:"sync.connectors.sharepoint.pfx_password.help",type:"text",required:!0,secret:!0}]},{id:"folder",title:"sync.connectors.oauth.folder.title",fields:[{id:"sync_root_path",label:"sync.connectors.oauth.path.label",type:"text",required:!0}]}])}}var Rt=a(9330);const J="http://localhost:8090",Q="NUCLIA_SYNC_SERVER",W="NUCLIA_SYNC_SERVER_TYPE";let E=(()=>{var n;class r{constructor(e,o,s,l,g){this.sdk=e,this.http=o,this.config=s,this.notificationService=l,this.features=g,this.connectors={gdrive:{definition:{id:"gdrive",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("gdrive",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",oauth_provider:"azure_oauth",apikey_provider:"azure_certificate_credentials",title:"SharePoint",logo:`${F}/sharepoint.svg`,description:"Microsoft Sharepoint service",permanentSyncOnly:!0,cloud:!0,factory:m=>new It(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:yt},sitemap:{definition:mt},confluence:{definition:Ct},rss:{definition:vt},sitefinity:{definition:Tt}},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,u.T)(x=>m.filter(I=>x||"sitefinity"!==I.id))))),this._syncServer=new M.t({serverUrl:localStorage.getItem(Q)||J,type:localStorage.getItem(W)||"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,gt.p)([this.syncServer.pipe((0,y.s)(1)),this.features.unstable.cloudSyncService.pipe((0,y.s)(1))]).subscribe(([m,x])=>{"cloud"===m.type&&x&&this._useCloudSync.next(!0)})}getConnectorDefinition(e){return this.connectors[e]?.definition}getConnector(e,o){const s=this.connectors[e];s.instances||(s.instances={});const l=s.instances;return l[o]||(l[o]=s.definition.factory({id:o})),l[o]}getConnectorIdForProvider(e){return Object.entries(this.connectors).find(([,o])=>o.definition.oauth_provider===e||o.definition.apikey_provider===e)?.[0]}getCurrentSync(){return this.currentSyncId.pipe((0,v.p)(e=>!!e),(0,d.n)(e=>this.getSync(e)))}syncConfigtoISyncEntity(e){return{id:e.id,title:e.name,connector:{name:e.external_connection.provider,parameters:e},lastSyncGMT:void 0,disabled:!1,isCloud:!0}}getSync(e){const o=this._syncCache.getValue();return o[e]?(0,f.of)(o[e]):this._useCloudSync.getValue()?this.sdk.currentKb.pipe((0,y.s)(1),(0,d.n)(s=>s.syncManager.getConfig(e)),(0,u.T)(s=>({...this.syncConfigtoISyncEntity(s),kbId:s.kb_id,connectorId:this.getConnectorIdForProvider(s.external_connection.provider)}))):this.http.get(`${this._syncServer.getValue().serverUrl}/sync/${e}`,{headers:this.serverHeaders}).pipe((0,S.M)(s=>{o[e]=s,this._syncCache.next(o)}))}addSync(e){return this.sdk.currentKb.pipe((0,y.s)(1),(0,d.n)(o=>this.sdk.nuclia.options.standalone?(0,f.of)({...e,kb:{...this.sdk.nuclia.options,knowledgeBox:o.id}}):this.getNucliaKey(o).pipe((0,u.T)(s=>({...e,kb:{zone:this.sdk.nuclia.options.zone,backend:this.sdk.nuclia.options.backend,knowledgeBox:s.kbid,apiKey:s.token}})))),(0,d.n)(o=>this.http.post(`${this._syncServer.getValue().serverUrl}/sync`,o,{headers:this.serverHeaders})),(0,S.M)(()=>{const o=this._syncCache.getValue();o[e.id]=e,this._syncCache.next(o),this._cacheUpdated.next((new Date).toISOString())}),(0,u.T)(()=>{}))}getOAuthUrl(e){return this.sdk.currentKb.pipe((0,y.s)(1),(0,d.n)(o=>o.syncManager.createOAuthExternalConnection(e)),(0,u.T)(o=>o.authorize_url))}addExternalConnection(e,o){return this.sdk.currentKb.pipe((0,y.s)(1),(0,d.n)(s=>s.syncManager.createExternalConnection(e,o)))}addCloudSync(e){return this.sdk.currentKb.pipe((0,y.s)(1),(0,d.n)(o=>o.syncManager.createConfig(e)),(0,S.M)(o=>{const s=this._syncCache.getValue();s[o.id]=this.syncConfigtoISyncEntity(o),this._syncCache.next(s),this._cacheUpdated.next((new Date).toISOString())}))}updateSync(e,o,s){return this.http.patch(`${this._syncServer.getValue().serverUrl}/sync/${e}`,{...o,lastSyncGMT:s?"1970-01-01":void 0},{headers:this.serverHeaders}).pipe((0,S.M)(()=>{const l=this._syncCache.getValue();l[e]={...l[e],...o},this._syncCache.next(l),this._cacheUpdated.next((new Date).toISOString())}))}deleteSync(e){return(this._useCloudSync.getValue()?this.sdk.currentKb.pipe((0,y.s)(1),(0,d.n)(o=>o.syncManager.deleteConfig(e))):this.http.delete(`${this._syncServer.getValue().serverUrl}/sync/${e}`,{headers:this.serverHeaders})).pipe((0,S.M)(()=>{const o=this._syncCache.getValue();delete o[e],this._syncCache.next(o),this._cacheUpdated.next((new Date).toISOString())}))}getSyncsForKB(e,o){return o?this.sdk.currentKb.pipe((0,y.s)(1),(0,d.n)(s=>s.syncManager.getConfigs().pipe((0,u.T)(l=>l.filter(g=>g.kb_id===e).map(g=>{const m=this.getConnectorIdForProvider(g.external_connection.provider);return{id:g.id,kbId:g.kb_id,title:g.name,connectorId:m,connector:m?this.getConnector(m,g.id):void 0,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/${e}`).pipe((0,u.T)(l=>l.map(g=>({...g,kbId:e,connectorId:g.connector,connector:this.getConnector(g.connector,"")})).filter(g=>g.kbId===e)))))}getFiles(e){return this.http.get(`${this._syncServer.getValue().serverUrl}/sync/${this.getCurrentSyncId()}/files/search${e?`?query=${e}`:""}`)}getFolders(e){return this.http.get(`${this._syncServer.getValue().serverUrl}/sync/${this.getCurrentSyncId()}/folders`,{headers:this.serverHeaders})}canSelectFiles(e){const o=this._syncCache.getValue()[e];return o&&!("sitemap"===o.connector.name||"folder"===o.connector.name||"rss"===o.connector.name)}getNucliaKey(e){return e.createKeyForService({title:"Sync",role:"SCONTRIBUTOR"},this.getExpirationDate()).pipe((0,u.T)(o=>({...o,kbid:e.id})))}getExpirationDate(){const e=new Date;return e.setFullYear(e.getFullYear()+1),Math.floor(e.getTime()/1e3).toString()}serverStatus(e){return this.useCloudSync.pipe((0,d.n)(o=>o?(0,f.of)({running:!0}):this.http.get(`${e}/status`).pipe((0,X.W)(()=>(0,f.of)({running:!1,logs:["Server down"]})),(0,u.T)(s=>((s.logs||[]).forEach(l=>console.log("[SERVER]",l)),{running:s.running})))))}setSyncServer(e,o){localStorage.setItem(Q,e||""),localStorage.setItem(W,o),this._syncServer.next({serverUrl:e||"",type:o}),e&&this.serverStatus(e).subscribe(s=>{this.setServerStatus(!s.running)})}getCurrentSyncId(){return this._currentSyncId.getValue()}setCurrentSyncId(e){this._currentSyncId.next(e)}clearCurrentSourceId(){this._currentSyncId.next(null)}getLogs(e,o){return this._useCloudSync.getValue()?(0,f.of)([]):this.http.get(`${this._syncServer.getValue().serverUrl}/logs${e?"/"+e:""}${o?"/"+o:""}`).pipe((0,u.T)(s=>s.sort((l,g)=>{const m=(0,xt.T)(l.createdAt,g.createdAt);return 0===m?l.action.startsWith("start")?1:-1:m})))}clearLogs(){return this.http.delete(`${this._syncServer.getValue().serverUrl}/logs`)}getSyncServer(){return this._syncServer.getValue().serverUrl}setServerStatus(e){e&&!this._isServerDown.value&&this.notificationService.pushNotifications([{type:"sync-server",data:[],timestamp:(new Date).toISOString(),unread:!0,failure:!0}]),this._isServerDown.next(e)}triggerSync(e,o=!1){return this._isSyncing.next({...this._isSyncing.value,[e]:!0}),(o?this.updateSync(e,{},!0).pipe((0,u.T)(()=>!0)):(0,f.of)(!0)).pipe((0,d.n)(()=>this.http.get(`${this._syncServer.getValue().serverUrl}/sync/execute/${e}`)),(0,S.M)(()=>this._isSyncing.next({...this._isSyncing.value,[e]:!1})),(0,X.W)(l=>(console.warn("Trigger sync failed:",l),this._isSyncing.next({...this._isSyncing.value,[e]:!1}),(0,f.of)())))}updateUseCloudSync(e){this._useCloudSync.next(e)}static#t=n=()=>(this.\u0275fac=function(o){return new(o||r)(c.KVO(b.ok),c.KVO(Rt.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 n(),r})();var t=a(2898);let Mt=(()=>{var n;class r{constructor(){this.unsubscribeAll=new $.B,this.syncService=(0,c.WQX)(E)}ngOnInit(){let e=!1,o=0;(0,ut.O)(0,5e3).pipe((0,v.p)(()=>{const l=o>=(e?12:0);return o++,l}),(0,d.n)(()=>this.syncService.serverStatus(this.syncService.getSyncServer())),(0,j.Q)(this.unsubscribeAll)).subscribe(s=>{e=s.running,o=0,this.syncService.setServerStatus(!e)})}ngOnDestroy(){this.unsubscribeAll.next(),this.unsubscribeAll.complete()}static#t=n=()=>(this.\u0275fac=function(o){return new(o||r)},this.\u0275cmp=t.VBU({type:r,selectors:[["ng-component"]],decls:1,vars:0,template:function(o,s){1&o&&t.nrm(0,"router-outlet")},dependencies:[R.n3],encapsulation:2,changeDetection:0}))}return n(),r})();var k=a(7705),p=a(8743),kt=a(9874),G=a(4929);let $t=(()=>{var n;class r{constructor(){this.title="",this.logo="",this.disabled=!1,this.selectConnector=new t.bkB}static#t=n=()=>(this.\u0275fac=function(o){return new(o||r)},this.\u0275cmp=t.VBU({type:r,selectors:[["nsy-connector"]],inputs:{title:"title",logo:"logo",disabled:[2,"disabled","disabled",k.L39]},outputs:{selectConnector:"selectConnector"},decls:5,vars:3,consts:[[3,"cardClick","disabled"],[1,"connector"],["size","large",3,"path"]],template:function(o,s){1&o&&(t.j41(0,"pa-card",0),t.bIt("cardClick",function(g){return s.selectConnector.emit(g)}),t.j41(1,"div",1),t.nrm(2,"pa-icon",2),t.j41(3,"div"),t.EFF(4),t.k0s()()()),2&o&&(t.Y8G("disabled",s.disabled),t.R7$(2),t.Y8G("path",s.logo),t.R7$(2),t.JRh(s.title))},dependencies:[p.ALJ,kt.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 n(),r})();var T=a(2200),h=a(9417),H=a(4825),C=a(8018),_=a(4795),z=a(4572),O=a(3606),Pt=a(820),K=a(6812),A=a(3085),N=a(4899),jt=a(7481),Et=a(3257),Gt=a(6010),Z=a(5472),q=a(9435),tt=a(3107),Ot=a(7839),wt=a(4099),et=a(4684),Vt=a(9122);const Xt=()=>({section:"activity"}),nt=(n,r)=>r.id;function Dt(n,r){1&n&&(t.j41(0,"div",8)(1,"pa-radio",16),t.nI1(2,"translate"),t.j41(3,"span",10),t.EFF(4),t.nI1(5,"translate"),t.k0s()()(),t.nrm(6,"div",11)),2&n&&(t.R7$(),t.Y8G("help",t.bMT(2,2,"sync.home-page.setup-server.on-cloud.radio-help")),t.R7$(3),t.JRh(t.bMT(5,4,"sync.home-page.setup-server.on-cloud.radio-label")))}function Nt(n,r){1&n&&(t.j41(0,"nsi-dropdown-button",18),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"sync.home-page.setup-server.on-desktop.download-dropdown")," "))}function At(n,r){if(1&n&&(t.j41(0,"nsi-badge"),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.nVh(3,Nt,3,3,"nsi-dropdown-button",18)),2&n){const i=t.XpG(2);t.R7$(),t.JRh(t.bMT(2,2,"sync.badge.inactive")),t.R7$(2),t.vxM(i.downloadSyncAgentFeature?3:-1)}}function Bt(n,r){1&n&&(t.j41(0,"nsi-badge",17),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.JRh(t.bMT(2,1,"sync.badge.active")))}function Ut(n,r){if(1&n&&(t.nVh(0,At,4,4),t.nI1(1,"async"),t.vZN(2,Bt,3,3,"nsi-badge",17)),2&n){const i=t.XpG();t.vxM(t.bMT(1,1,i.inactiveServer)?0:2)}}function Yt(n,r){1&n&&(t.j41(0,"nsi-badge"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.JRh(t.bMT(2,1,"sync.badge.inactive")))}function Lt(n,r){1&n&&(t.j41(0,"nsi-badge",17),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.JRh(t.bMT(2,1,"sync.badge.active")))}function Jt(n,r){if(1&n&&(t.j41(0,"div",13),t.nVh(1,Yt,3,3,"nsi-badge"),t.nI1(2,"async"),t.vZN(3,Lt,3,3,"nsi-badge",17),t.j41(4,"pa-input",19),t.EFF(5," Server URL "),t.k0s(),t.j41(6,"pa-button",20),t.EFF(7),t.nI1(8,"translate"),t.k0s()()),2&n){const i=t.XpG();t.R7$(),t.vxM(t.bMT(2,3,i.inactiveServer)?1:3),t.R7$(5),t.Y8G("disabled",!i.serverUrlChanged),t.R7$(),t.SpI(" ",t.bMT(8,5,"generic.save")," ")}}function Qt(n,r){if(1&n){const i=t.RV6();t.j41(0,"nsy-connector",21),t.nI1(1,"async"),t.nI1(2,"translate"),t.nI1(3,"async"),t.bIt("selectConnector",function(){const o=c.eBV(i).$implicit,s=t.XpG();return c.Njj(s.onSelectConnector(o))}),t.k0s()}if(2&n){const i=r.$implicit,e=t.XpG();t.Y8G("paTooltip",t.bMT(2,6,"cloud"!==e.syncAgentTypeControl.value&&t.bMT(1,4,e.inactiveServer)?"sync.home-page.add-sources.disabled-source-tooltip":""))("disabled","cloud"!==e.syncAgentTypeControl.value&&t.bMT(3,8,e.inactiveServer))("title",i.title)("logo",i.logo)}}function Wt(n,r){1&n&&(t.j41(0,"nsi-info-card",22),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.JRh(t.bMT(2,1,"sync.home-page.sync-list.empty-info")))}function Ht(n,r){if(1&n&&(t.j41(0,"div",26),t.nrm(1,"pa-icon",34),t.EFF(2),t.k0s()),2&n){const i=r;t.R7$(),t.Y8G("path",i.logo),t.R7$(),t.SpI(" ",i.title," ")}}function zt(n,r){if(1&n){const i=t.RV6();t.j41(0,"pa-toggle",35),t.bIt("valueChange",function(o){c.eBV(i);const s=t.XpG().$implicit,l=t.XpG(3);return c.Njj(l.toggleSync(s.id,o))}),t.EFF(1),t.k0s()}if(2&n){const i=t.XpG().$implicit;t.Y8G("value",!i.disabled),t.R7$(),t.SpI(" ",i.disabled?"Off":"On"," ")}}function Kt(n,r){if(1&n&&t.nrm(0,"pa-datetime",29),2&n){const i=t.XpG().$implicit;t.Y8G("datetime",i.lastSyncGMT)}}function Zt(n,r){1&n&&t.EFF(0," \u2013 ")}function qt(n,r){if(1&n&&(t.j41(0,"pa-option",31),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const i=t.XpG().$implicit;t.Y8G("routerLink","./"+i.id+"/edit"),t.R7$(),t.SpI(" ",t.bMT(2,2,"sync.home-page.sync-list.menu.edit-folders")," ")}}function te(n,r){if(1&n&&(t.j41(0,"pa-option",32),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const i=t.XpG().$implicit;t.Y8G("routerLink","./"+i.id)("queryParams",t.lJ4(5,Xt)),t.R7$(),t.SpI(" ",t.bMT(2,3,"sync.home-page.sync-list.menu.activity-logs")," ")}}function ee(n,r){if(1&n){const i=t.RV6();t.j41(0,"pa-table-row")(1,"pa-table-cell")(2,"a",25),t.EFF(3),t.k0s()(),t.j41(4,"pa-table-cell"),t.nVh(5,Ht,3,2,"div",26),t.k0s(),t.j41(6,"pa-table-cell")(7,"div",27),t.EFF(8),t.k0s()(),t.j41(9,"pa-table-cell"),t.nVh(10,zt,2,2,"pa-toggle",28),t.nI1(11,"async"),t.k0s(),t.j41(12,"pa-table-cell")(13,"div",27),t.nVh(14,Kt,1,1,"pa-datetime",29)(15,Zt,1,0),t.k0s()(),t.j41(16,"pa-table-cell-menu")(17,"pa-button",30),t.EFF(18," Menu "),t.k0s(),t.j41(19,"pa-dropdown",null,0)(21,"pa-option",31),t.EFF(22),t.nI1(23,"translate"),t.k0s(),t.nVh(24,qt,3,4,"pa-option",31),t.nVh(25,te,3,6,"pa-option",32),t.nI1(26,"async"),t.j41(27,"pa-option",33),t.bIt("selectOption",function(){const o=c.eBV(i).$implicit,s=t.XpG(3);return c.Njj(s.deleteSync(o))}),t.EFF(28),t.nI1(29,"translate"),t.k0s()()()()}if(2&n){let i;const e=r.$implicit,o=t.sdS(20),s=t.XpG(3);t.R7$(2),t.Y8G("routerLink","./"+e.id),t.R7$(),t.SpI(" ",e.title," "),t.R7$(2),t.vxM((i=e.connectorId&&(null==s.connectors[e.connectorId]?null:s.connectors[e.connectorId].definition))?5:-1,i),t.R7$(3),t.JRh(e.totalSyncedResources),t.R7$(2),t.vxM(t.bMT(11,12,s.useCloudSync)?-1:10),t.R7$(4),t.vxM("1970-01-01"!==e.lastSyncGMT?14:15),t.R7$(3),t.Y8G("paPopup",o),t.R7$(4),t.Y8G("routerLink","./"+e.id+"/edit"),t.R7$(),t.SpI(" ",t.bMT(23,14,"sync.home-page.sync-list.menu.edit-settings")," "),t.R7$(2),t.vxM(null!=e.connector&&e.connector.allowToSelectFolders?24:-1),t.R7$(),t.vxM(t.bMT(26,16,s.useCloudSync)?-1:25),t.R7$(3),t.SpI(" ",t.bMT(29,18,"sync.home-page.sync-list.menu.delete")," ")}}function ne(n,r){if(1&n&&(t.j41(0,"pa-table",23),t.nrm(1,"pa-table-sortable-header",24),t.Z7z(2,ee,30,20,"pa-table-row",null,nt),t.k0s()),2&n){const i=t.XpG(),e=t.XpG();t.R7$(),t.Y8G("cells",e.syncTableHeader),t.R7$(),t.Dyx(i)}}function oe(n,r){1&n&&t.nVh(0,Wt,3,3,"nsi-info-card",22)(1,ne,4,1,"pa-table",23),2&n&&t.vxM(0===r.length?0:1)}let ie=(()=>{var n;class r{constructor(){this.router=(0,c.WQX)(R.Ix),this.currentRoute=(0,c.WQX)(R.nX),this.syncService=(0,c.WQX)(E),this.sdk=(0,c.WQX)(b.ok),this.toaster=(0,c.WQX)(_._g),this.modalService=(0,c.WQX)(_.w8),this.translate=(0,c.WQX)(C.c$),this.features=(0,c.WQX)(b.Dr),this.unsubscribeAll=new $.B,this.downloadSyncAgentFeature=!1,this.hasCloudSync=this.features.unstable.cloudSyncService,this.useCloudSync=this.syncService.useCloudSync,this.inactiveServer=this.syncService.isServerDown,this.syncAgentForm=new h.gE({type:new h.MJ("desktop",{nonNullable:!0}),serverUrl:new h.MJ("",{nonNullable:!0,validators:[h.k0.required]})}),this.connectors=this.syncService.connectors,this._connectorList=this.syncService.connectorsObs.pipe((0,u.T)(e=>e.sort((o,s)=>o.title.localeCompare(s.title)))),this.connectorList=this._connectorList.pipe((0,u.T)(e=>e.filter(o=>!o.cloud))),this.cloudConnectorList=this._connectorList.pipe((0,u.T)(e=>e.filter(o=>o.cloud))),this.serverUrlBackup="",this.syncs=(0,z.z)([this.syncService.cacheUpdated,this.syncService.useCloudSync]).pipe((0,d.n)(([,e])=>this.sdk.currentKb.pipe((0,u.T)(o=>({kb:o,useCloud:e})))),(0,d.n)(({kb:e,useCloud:o})=>this.syncService.getSyncsForKB(e.id,o))),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,y.s)(1)).subscribe(e=>{this.syncAgentForm.patchValue(e),this.serverUrlBackup=e.serverUrl}),this.syncAgentTypeControl.valueChanges.pipe((0,j.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 e=this.syncAgentForm.getRawValue();this.syncService.setSyncServer("server"===e.type?e.serverUrl:J,e.type)}}onSelectConnector(e){this.router.navigate(["./add",e.id],{relativeTo:this.currentRoute})}deleteSync(e){this.modalService.openConfirm({title:this.translate.instant("sync.confirm.deletion.title",{title:e.title}),description:"sync.confirm.deletion.description",isDestructive:!0,confirmLabel:"generic.delete"}).onClose.pipe((0,v.p)(o=>!!o),(0,d.n)(()=>this.syncService.deleteSync(e.id))).subscribe({error:()=>this.toaster.error("sync.details.toast.deletion-failed")})}toggleSync(e,o){this.syncService.updateSync(e,{disabled:!o}).subscribe({error:()=>this.toaster.error(o?"sync.details.toast.activating-failed":"sync.details.toast.disabling-failed")})}static#t=n=()=>(this.\u0275fac=function(o){return new(o||r)},this.\u0275cmp=t.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(o,s){if(1&o&&(t.j41(0,"div",1)(1,"div")(2,"h1",2),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"p",3),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.j41(8,"section")(9,"div",4)(10,"div",5),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.j41(13,"div",3),t.EFF(14),t.nI1(15,"translate"),t.k0s()(),t.j41(16,"form",6),t.bIt("ngSubmit",function(){return s.saveSyncServer()}),t.j41(17,"pa-radio-group",7),t.nVh(18,Dt,7,6),t.nI1(19,"async"),t.j41(20,"div",8)(21,"pa-radio",9),t.nI1(22,"translate"),t.j41(23,"span",10),t.EFF(24),t.nI1(25,"translate"),t.k0s()(),t.nVh(26,Ut,3,3),t.k0s(),t.nrm(27,"div",11),t.j41(28,"div",8)(29,"pa-radio",12),t.nI1(30,"translate"),t.j41(31,"span",10),t.EFF(32),t.nI1(33,"translate"),t.k0s()(),t.nVh(34,Jt,9,7,"div",13),t.k0s()()()(),t.nrm(35,"div",11),t.j41(36,"section")(37,"div",4)(38,"div",5),t.EFF(39),t.nI1(40,"translate"),t.k0s(),t.j41(41,"div",3),t.EFF(42),t.nI1(43,"translate"),t.k0s()(),t.j41(44,"div",14),t.Z7z(45,Qt,4,10,"nsy-connector",15,nt),t.nI1(47,"async"),t.nI1(48,"async"),t.k0s()(),t.j41(49,"section")(50,"div",4)(51,"div",5),t.EFF(52),t.nI1(53,"translate"),t.k0s(),t.j41(54,"div",3),t.EFF(55),t.nI1(56,"translate"),t.k0s()(),t.nVh(57,oe,2,1),t.nI1(58,"async"),t.k0s()()),2&o){let l;t.R7$(3),t.JRh(t.bMT(4,17,"navbar.sync")),t.R7$(3),t.JRh(t.bMT(7,19,"sync.home-page.description")),t.R7$(5),t.JRh(t.bMT(12,21,"sync.home-page.setup-server.title")),t.R7$(3),t.JRh(t.bMT(15,23,"sync.home-page.setup-server.description")),t.R7$(2),t.Y8G("formGroup",s.syncAgentForm),t.R7$(2),t.vxM(t.bMT(19,25,s.hasCloudSync)?18:-1),t.R7$(3),t.Y8G("help",t.bMT(22,27,"sync.home-page.setup-server.on-desktop.radio-help")),t.R7$(3),t.JRh(t.bMT(25,29,"sync.home-page.setup-server.on-desktop.radio-label")),t.R7$(2),t.vxM(s.syncAgentOnServer?-1:26),t.R7$(3),t.Y8G("help",t.bMT(30,31,"sync.home-page.setup-server.on-server.radio-help")),t.R7$(3),t.JRh(t.bMT(33,33,"sync.home-page.setup-server.on-server.radio-label")),t.R7$(2),t.vxM(s.syncAgentOnServer?34:-1),t.R7$(5),t.JRh(t.bMT(40,35,"sync.home-page.add-sources.title")),t.R7$(3),t.JRh(t.bMT(43,37,"sync.home-page.add-sources.description")),t.R7$(3),t.Dyx("cloud"!==s.syncAgentTypeControl.value?t.bMT(47,39,s.connectorList):t.bMT(48,41,s.cloudConnectorList)),t.R7$(7),t.JRh(t.bMT(53,43,"sync.home-page.sync-list.title")),t.R7$(3),t.JRh(t.bMT(56,45,"sync.home-page.sync-list.description")),t.R7$(2),t.vxM((l=t.bMT(58,47,s.syncs))?57:-1,l)}},dependencies:[T.MD,T.Jj,_.nS,$t,_.vY,p.Ymm,O.Q,p.Rx2,Pt.P,K.P,p.XgI,A.S,p.rkm,N.a,jt.v,Et.u,p.tml,Gt.d,h.X1,h.qT,h.BC,h.cb,h.j4,h.JD,C.h,C.D9,p.EGN,Z.O,q.e,tt.U,Ot.N,wt.V,H.Wk,p.V3x,G.R,p.Pa6,et.Z,_.IA,p.OgD,Vt.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 n(),r})();var re=a(3129),se=a(292),ce=a(850),le=a(6851),ae=a(2071),de=a(5814),pe=a(9285),ot=a(6420);const ue=()=>[],it=(n,r)=>r.id,he=(n,r)=>r.value;function ge(n,r){if(1&n&&(t.j41(0,"nsi-two-columns-configuration-item",1)(1,"div",3)(2,"pa-input",4),t.EFF(3),t.nI1(4,"translate"),t.k0s()()()),2&n){const i=t.XpG(2);t.Y8G("noTopBorder",i.noTopBorder),t.R7$(3),t.JRh(t.bMT(4,2,"sync.add-page.connector-name.field-label"))}}function me(n,r){if(1&n&&(t.j41(0,"pa-input",6),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const i=t.XpG().$implicit;t.Y8G("formControlName",i.id)("placeholder",i.placeholder)("type",i.secret?"password":"text")("help",i.help),t.R7$(),t.SpI(" ",t.bMT(2,5,i.label)," ")}}function _e(n,r){if(1&n&&(t.j41(0,"pa-toggle",7),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const i=t.XpG().$implicit;t.Y8G("formControlName",i.id)("help",i.help),t.R7$(),t.SpI(" ",t.bMT(2,3,i.label)," ")}}function ye(n,r){if(1&n&&(t.j41(0,"pa-option",11),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const i=r.$implicit;t.Y8G("disabled",i.disabled)("value",i.value),t.R7$(),t.SpI(" ",t.bMT(2,3,i.label)," ")}}function fe(n,r){if(1&n&&(t.j41(0,"pa-select",8),t.Z7z(1,ye,3,5,"pa-option",11,he),t.k0s()),2&n){const i=t.XpG().$implicit;t.Y8G("formControlName",i.id)("label",i.label)("help",i.help),t.R7$(),t.Dyx(i.options)}}function Ce(n,r){if(1&n&&(t.j41(0,"pa-textarea",9),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const i=t.XpG().$implicit;t.Y8G("formControlName",i.id)("help",i.help)("rows",4),t.R7$(),t.SpI(" ",t.bMT(2,4,i.label)," ")}}function be(n,r){if(1&n&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const i=t.XpG(2).$implicit;t.R7$(),t.JRh(t.bMT(2,1,i.help))}}function ve(n,r){1&n&&(t.j41(0,"nsi-info-card",13),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"sync.form-validation.extra-parameters-incomplete")," "))}function Se(n,r){if(1&n){const i=t.RV6();t.j41(0,"div",10)(1,"label"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nVh(4,be,3,3,"p"),t.j41(5,"app-parameters-table",12),t.bIt("valuesChange",function(o){c.eBV(i);const s=t.XpG().$implicit,l=t.XpG(4);return c.Njj(l.updateTable(s.id,o))}),t.k0s(),t.nVh(6,ve,3,3,"nsi-info-card",13),t.k0s()}if(2&n){const i=t.XpG().$implicit,e=t.XpG(4);t.R7$(2),t.JRh(t.bMT(3,4,i.label)),t.R7$(2),t.vxM(i.help?4:-1),t.R7$(),t.Y8G("values",e.tables[i.id]||t.lJ4(6,ue)),t.R7$(),t.vxM(e.invalidTables.includes(i.id)?6:-1)}}function xe(n,r){if(1&n&&t.nVh(0,me,3,7,"pa-input",6)(1,_e,3,5,"pa-toggle",7)(2,fe,3,3,"pa-select",8)(3,Ce,3,6,"pa-textarea",9)(4,Se,7,7,"div",10),2&n){let i;t.vxM("text"===(i=r.$implicit.type)?0:"boolean"===i?1:"select"===i?2:"textarea"===i?3:"table"===i?4:-1)}}function Te(n,r){if(1&n&&(t.j41(0,"nsi-two-columns-configuration-item",5)(1,"div",3),t.Z7z(2,xe,5,1,null,null,it),t.k0s()()),2&n){const i=t.XpG().$implicit;t.Y8G("badge",i.badge)("itemTitle",i.title)("description",i.description||""),t.R7$(2),t.Dyx(i.fields)}}function Fe(n,r){if(1&n&&t.nVh(0,Te,4,3,"nsi-two-columns-configuration-item",5),2&n){const i=r.$implicit,e=t.XpG(2);t.vxM("credentials"===i.id&&e.enterCredentials&&!e.useOAuth||"credentials"!==i.id&&!e.enterCredentials?0:-1)}}function Ie(n,r){1&n&&(t.j41(0,"nsi-two-columns-configuration-item",17)(1,"div",15)(2,"pa-toggle",38),t.EFF(3),t.nI1(4,"translate"),t.k0s()()()),2&n&&(t.R7$(3),t.SpI(" ",t.bMT(4,1,"sync.add-page.security-group.toggle-label")," "))}function Re(n,r){if(1&n){const i=t.RV6();t.j41(0,"nsi-label",39),t.bIt("removeLabel",function(){const o=c.eBV(i).$implicit,s=t.XpG(3);return c.Njj(s.removeLabel(o))}),t.EFF(1),t.k0s()}if(2&n){const i=r.$implicit;t.Y8G("color",i.color),t.R7$(),t.SpI(" ",i.label," ")}}function Me(n,r){if(1&n){const i=t.RV6();t.j41(0,"nsi-label",40),t.bIt("removeLabel",function(){const o=c.eBV(i).$implicit,s=t.XpG(3);return c.Njj(s.removeExtension(o))}),t.EFF(1),t.k0s()}if(2&n){const i=r.$implicit;t.R7$(),t.SpI(" ",i," ")}}function ke(n,r){if(1&n){const i=t.RV6();t.j41(0,"nsi-two-columns-configuration-item",14)(1,"div",15)(2,"app-extraction-select",16),t.bIt("extractConfigChange",function(o){c.eBV(i);const s=t.XpG(2);return c.Njj(s.updateExtractStrategy(o))}),t.k0s()()(),t.nVh(3,Ie,5,3,"nsi-two-columns-configuration-item",17),t.j41(4,"nsi-two-columns-configuration-item",18)(5,"div",3)(6,"div",19)(7,"app-label-dropdown",20),t.nI1(8,"async"),t.nI1(9,"async"),t.bIt("selectionChange",function(o){c.eBV(i);const s=t.XpG(2);return c.Njj(s.updateLabelSelection(o))}),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.j41(12,"span",21),t.EFF(13),t.nI1(14,"translate"),t.k0s(),t.j41(15,"pa-button",22),t.bIt("click",function(){c.eBV(i);const o=t.XpG(2);return c.Njj(o.createLabelSet())}),t.EFF(16),t.nI1(17,"translate"),t.k0s()(),t.j41(18,"div",23),t.Z7z(19,Re,2,2,"nsi-label",24,t.fX1),t.k0s()(),t.j41(21,"div",25)(22,"pa-toggle",26),t.EFF(23),t.nI1(24,"translate"),t.k0s()()(),t.j41(25,"nsi-two-columns-configuration-item",27)(26,"div",3)(27,"nsi-info-card"),t.EFF(28),t.nI1(29,"translate"),t.k0s(),t.j41(30,"div",28)(31,"div",29)(32,"pa-select",30)(33,"pa-option",31),t.EFF(34),t.nI1(35,"translate"),t.k0s(),t.j41(36,"pa-option",32),t.EFF(37),t.nI1(38,"translate"),t.k0s()(),t.j41(39,"pa-input",33),t.EFF(40),t.nI1(41,"translate"),t.k0s()(),t.j41(42,"div",23),t.Z7z(43,Me,2,1,"nsi-label",34,t.fX1),t.k0s(),t.j41(45,"div",35)(46,"label"),t.EFF(47),t.nI1(48,"translate"),t.k0s(),t.j41(49,"div",29),t.nrm(50,"pa-date-picker",36),t.nI1(51,"translate"),t.nrm(52,"pa-date-picker",37),t.nI1(53,"translate"),t.k0s()()()()()}if(2&n){const i=t.XpG(2);t.R7$(2),t.Y8G("onlyExtract",!0)("extractConfig",i.extractStrategy),t.R7$(),t.vxM(i.connector.canSyncSecurityGroups?3:-1),t.R7$(4),t.Y8G("labelSets",t.bMT(8,17,i.labelSets))("selection",i.labelSelection)("disabled",!1===t.bMT(9,19,i.hasLabelSet)),t.R7$(3),t.SpI(" ",t.bMT(11,21,"sync.add-page.add-labels.select-labels")," "),t.R7$(3),t.JRh(t.bMT(14,23,"generic.or")),t.R7$(3),t.SpI(" ",t.bMT(17,25,"sync.add-page.add-labels.create-labelset")," "),t.R7$(3),t.Dyx(i.labelSelection),t.R7$(4),t.SpI(" ",t.bMT(24,27,"sync.add-page.preserve-labels.toggle-label")," "),t.R7$(5),t.JRh(t.bMT(29,29,"sync.add-page.filter-resources.file-extension.info")),t.R7$(6),t.SpI(" ",t.bMT(35,31,"sync.add-page.filter-resources.file-extension.include")," "),t.R7$(3),t.SpI(" ",t.bMT(38,33,"sync.add-page.filter-resources.file-extension.exclude")," "),t.R7$(3),t.SpI(" ",t.bMT(41,35,"sync.add-page.filter-resources.file-extension.label")," "),t.R7$(3),t.Dyx(i.extensionList),t.R7$(4),t.JRh(t.bMT(48,37,"sync.add-page.filter-resources.modification-date.label")),t.R7$(3),t.Y8G("label",t.bMT(51,39,"sync.add-page.filter-resources.modification-date.from")),t.R7$(2),t.Y8G("label",t.bMT(53,41,"sync.add-page.filter-resources.modification-date.to"))}}function $e(n,r){if(1&n&&(t.j41(0,"form",0),t.nVh(1,ge,5,4,"nsi-two-columns-configuration-item",1),t.qex(2,2),t.Z7z(3,Fe,1,1,null,null,it),t.nI1(5,"async"),t.bVm(),t.nVh(6,ke,54,43),t.k0s()),2&n){const i=t.XpG();t.Y8G("formGroup",i.form),t.R7$(),t.vxM(i.enterCredentials?-1:1),t.R7$(2),t.Dyx(t.bMT(5,3,i.connector.getParametersSections())),t.R7$(3),t.vxM(i.isCloud?-1:6)}}const Pe=new RegExp(/[^a-z0-9_-]/g);let rt=(()=>{var n;class r{constructor(){this.labelService=(0,c.WQX)(b.xQ),this.modalService=(0,c.WQX)(_.w8),this.cdr=(0,c.WQX)(k.gRc),this.unsubscribeAll=new $.B,this.useOAuth=!1,this.enterCredentials=!1,this.isCloud=!1,this.noTopBorder=!1,this.validForm=new t.bkB,this.configurationChange=new t.bkB,this.form=new h.gE({name:new h.MJ("",{nonNullable:!0,validators:[h.k0.required]}),syncSecurityGroups:new h.MJ(null),preserveLabels:new h.MJ(null),filterResources:new h.gE({extensions:new h.MJ("",{updateOn:"blur"}),extensionUsage:new h.MJ("include",{nonNullable:!0}),from:new h.MJ(""),to:new h.MJ("")}),extra:new h.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(e){if(e){this.connectorParametersBackup=e.connector.parameters;const o={extensions:e.filters?.fileExtensions?.extensions||"",extensionUsage:e.filters?.fileExtensions?.exclude?"exclude":"include",from:e.filters?.modified?.from||"",to:e.filters?.modified?.to||""};this.form.patchValue({name:e.title,syncSecurityGroups:e.syncSecurityGroups,filterResources:o,preserveLabels:e.preserveLabels}),this.labelSelection=e.labels||[],this.extensionList=this.formatExtensionList(o.extensions),e.extract_strategy&&(this.extractStrategy=e.extract_strategy),e.connector.parameters&&Object.entries(e.connector.parameters).forEach(([s,l])=>{"object"!=typeof l?this._extra[s]=l:this.tables[s]=l})}}get extensionsControl(){return this.form.controls.filterResources.controls.extensions}ngOnInit(){this.connector&&this.connector.getParametersSections().subscribe(e=>{e.forEach(o=>o.fields.forEach(s=>{"table"!==s.type&&this.form.controls.extra.addControl(s.id,new h.MJ("",{nonNullable:!0,validators:s.required?[h.k0.required]:[]}))})),Object.keys(this._extra).length>0&&this.form.patchValue({extra:this._extra})}),this.extensionsControl.valueChanges.pipe((0,j.Q)(this.unsubscribeAll)).subscribe(e=>this.extensionList=this.formatExtensionList(e)),this.form.valueChanges.pipe((0,j.Q)(this.unsubscribeAll)).subscribe(()=>{this.validForm.emit(this.form.valid),this.emitSyncEntity()})}ngOnDestroy(){this.unsubscribeAll.next(),this.unsubscribeAll.complete()}updateTable(e,o){this.tables[e]=o,o.some(s=>!(s.value.trim()&&s.key.trim()||!s.value.trim()&&!s.key.trim()))?this.invalidTables.includes(e)||this.invalidTables.push(e):this.invalidTables.includes(e)&&(this.invalidTables=this.invalidTables.filter(s=>s!==e)),this.cdr.markForCheck(),this.emitSyncEntity()}createLabelSet(){this.modalService.openModal(b.Tv,new p.S6u({data:{kind:se.po.RESOURCES}}))}updateLabelSelection(e){this.labelSets.pipe((0,y.s)(1),(0,v.p)(o=>!!o),(0,u.T)(o=>o)).subscribe(o=>{this.labelSelection=e.map(s=>({...s,color:o[s.labelset]?.color})),this.emitSyncEntity()})}removeExtension(e){const o=this.extensionList.filter(s=>s!==e);this.extensionsControl.patchValue(o.join(", "))}removeLabel(e){this.labelSelection=this.labelSelection.filter(o=>!(o.labelset===e.labelset&&o.label===e.label)),this.emitSyncEntity()}formatExtensionList(e){return e&&e.length>0?e.split(",").map(o=>o.trim()).filter(o=>!!o):[]}emitSyncEntity(){if(!this.connectorId)return;const e=this.form.getRawValue(),o=e.name,s=(Math.random()+1).toString(36).substring(7),l=`${this.kbId}-${o?.toLowerCase().replace(Pe,"-")}-${s}`,g={fileExtensions:e.filterResources.extensions?{extensions:e.filterResources.extensions,exclude:"exclude"===e.filterResources.extensionUsage}:void 0,modified:e.filterResources.from||e.filterResources.to?{from:e.filterResources.from||void 0,to:e.filterResources.to||void 0}:void 0},m=Object.entries(e.extra||{}).reduce((w,[V,U])=>({...w,[V]:U}),{}),x=Object.entries(this.tables).reduce((w,[V,U])=>(w[V]=U.filter(pt=>!(!pt.key.trim()||!pt.value.trim())),w),{}),I={id:l,title:o,labels:this.labelSelection,preserveLabels:e.preserveLabels||!1,filters:g,connector:{name:this.connectorId,parameters:{...this.connectorParametersBackup,...x,...m}}};null!==e.syncSecurityGroups&&(I.syncSecurityGroups=e.syncSecurityGroups),I.extract_strategy=this.extractStrategy,this.configurationChange.emit(I)}updateExtractStrategy(e){this.extractStrategy=e,this.validForm.emit(this.form.valid),this.emitSyncEntity()}static#t=n=()=>(this.\u0275fac=function(o){return new(o||r)},this.\u0275cmp=t.VBU({type:r,selectors:[["nsy-configuration-form"]],inputs:{connector:"connector",connectorId:"connectorId",kbId:"kbId",useOAuth:"useOAuth",enterCredentials:"enterCredentials",isCloud:"isCloud",sync:"sync",noTopBorder:[2,"noTopBorder","noTopBorder",k.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"],["formGroupName","extra"],[1,"form-container"],["formControlName","name"],[3,"badge","itemTitle","description"],[3,"formControlName","placeholder","type","help"],[3,"formControlName","help"],[3,"formControlName","label","help"],[3,"formControlName","help","rows"],[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(o,s){1&o&&t.nVh(0,$e,7,5,"form",0),2&o&&t.vxM(s.connector?0:-1)},dependencies:[T.MD,T.Jj,_.IA,_._8,h.X1,h.qT,h.BC,h.cb,h.j4,h.JD,h.$R,p.XgI,A.S,le.w,ae.Q,K.P,b.Qy,b.Bo,de.L,p.Ymm,O.Q,C.h,C.D9,p.OYn,pe.I,_.OE,ot.U,p.rkm,N.a,ce.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 n(),r})();var je=a(1943),st=a(7670);const Ee=n=>({total:n}),Ge=n=>({count:n});function Oe(n,r){1&n&&t.nrm(0,"nsi-spinner")}function we(n,r){if(1&n){const i=t.RV6();t.j41(0,"nsi-folder-tree",3),t.bIt("selectionChange",function(o){c.eBV(i);const s=t.XpG(2);return c.Njj(s.updateSelection(o))}),t.k0s()}if(2&n){const i=t.XpG(2);t.Y8G("selection",i.selection)("folderTree",i.folders)}}function Ve(n,r){if(1&n&&t.nrm(0,"nsi-folder-list",2),2&n){const i=t.XpG(2);t.Y8G("folders",i.selectedPaths)}}function Xe(n,r){if(1&n&&t.nVh(0,we,1,2,"nsi-folder-tree",1)(1,Ve,1,1,"nsi-folder-list",2),2&n){const i=t.XpG();t.vxM(i.seeAll?0:1)}}let B=(()=>{var n;class r{constructor(){this.syncService=(0,c.WQX)(E),this.toaster=(0,c.WQX)(_._g),this.cdr=(0,c.WQX)(k.gRc),this.selectedSyncItems=new t.bkB,this.searchQuery=new h.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(e=>({id:e.uuid,path:e.metadata.path}))),this.loadFolders()}updateView(e){this.seeAll="left"===e}updateSelection(e){this.selection=e,this.selectedPaths=e.map(o=>o.path),this.selectedIds=e.map(o=>o.id),this.selectionCount=e.length,this.selectedSyncItems.emit(this.syncItems.filter(o=>this.selectedIds.includes(o.uuid))),this.cdr.markForCheck()}loadFolders(e){this.loading=!0,this.syncService.getFolders(e?.value||"").pipe((0,X.W)(o=>(o&&this.toaster.error("string"==typeof o?o:o.error?.message||o.error||o.message||"An error occurred"),(0,f.of)({items:[],nextPage:void 0}))),(0,je.S)((o,s)=>o.concat(s.items),[]),(0,u.T)(o=>[{uuid:"root",originalId:"/",title:"/",status:P.PENDING,metadata:{path:"/"}},...o]),(0,u.T)(o=>o.sort((s,l)=>s.metadata.path.localeCompare(l.metadata.path))),(0,S.M)(o=>{this.totalFolders=o.length,this.syncItems=o}),(0,u.T)(o=>this.getFolderTreeFromSyncItems(o))).subscribe({next:o=>{this.loading=!1,this.folders=o,this.cdr.markForCheck()}})}getFolderTreeFromSyncItems(e){const o={id:"root",path:"/",title:"/",expanded:!0,children:{}};return e.filter(s=>"root"!==s.uuid).forEach(s=>{const l=s.metadata.path,g=s.originalId,m={id:g,title:s.title,path:l,displayPath:s.metadata.displayPath||l,children:{}};if("/"===l)o.children[g]=m;else{let I,x=o;l.split("/").slice(1,-1).forEach(V=>{x&&(I=x.children?.[V],I&&(x=I))}),x.children?x.children[g]=m:x.children={[g]:m}}}),o}static#t=n=()=>(this.\u0275fac=function(o){return new(o||r)},this.\u0275cmp=t.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(o,s){1&o&&(t.j41(0,"header"),t.nrm(1,"div"),t.j41(2,"nsi-segmented-buttons",0),t.nI1(3,"translate"),t.nI1(4,"translate"),t.bIt("activeChange",function(g){return s.updateView(g)}),t.k0s()(),t.nVh(5,Oe,1,0,"nsi-spinner"),t.nVh(6,Xe,2,1)),2&o&&(t.R7$(2),t.Y8G("leftButton",t.i5U(3,4,"sync.folder-selection.see-all",t.eq3(10,Ee,s.totalFolders)))("rightButton",t.i5U(4,7,"sync.folder-selection.see-selection",t.eq3(12,Ge,s.selectionCount))),t.R7$(3),t.vxM(s.loading?5:-1),t.R7$(),t.vxM(s.folders?6:-1))},dependencies:[_.Sq,_.sH,p.Ymm,p.XgI,h.X1,_.vI,_.J4,st.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 n(),r})();const De=n=>({connector:n}),Ne=(n,r)=>({index:n,total:r});function Ae(n,r){if(1&n){const i=t.RV6();t.j41(0,"div",2)(1,"pa-toggle",6),t.mxI("valueChange",function(o){c.eBV(i);const s=t.XpG(3);return t.DH7(s.useOAuth,o)||(s.useOAuth=o),c.Njj(o)}),t.EFF(2),t.nI1(3,"translate"),t.k0s()()}if(2&n){const i=t.XpG(3);t.R7$(),t.R50("value",i.useOAuth),t.R7$(),t.SpI(" ",t.bMT(3,2,"sync.add-page.use-oauth")," ")}}function Be(n,r){if(1&n&&(t.j41(0,"div"),t.nVh(1,Ae,4,4,"div",2),t.j41(2,"h1",3),t.nrm(3,"pa-icon",4),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"p",5),t.EFF(7),t.nI1(8,"translate"),t.k0s()()),2&n){const i=r,e=t.XpG();t.R7$(),t.vxM(i.oauth_provider&&i.apikey_provider?1:-1),t.R7$(2),t.Y8G("path",i.logo),t.R7$(),t.SpI(" ",t.i5U(5,4,"sync.add-page.title",t.eq3(9,De,i.title))," "),t.R7$(3),t.JRh(t.bMT(8,7,"sync.add-page.description."+e))}}function Ue(n,r){if(1&n&&(t.nVh(0,Be,9,11,"div"),t.nI1(1,"async")),2&n){let i;const e=t.XpG();t.vxM((i=t.bMT(1,1,e.connectorDefinition))?0:-1,i)}}function Ye(n,r){1&n&&t.nrm(0,"nsi-spinner")}function Le(n,r){if(1&n){const i=t.RV6();t.j41(0,"nsy-configuration-form",8),t.nI1(1,"async"),t.nI1(2,"async"),t.nI1(3,"async"),t.nI1(4,"async"),t.bIt("configurationChange",function(o){c.eBV(i);const s=t.XpG(3);return c.Njj(s.updateConfiguration(o))})("validForm",function(o){c.eBV(i);const s=t.XpG(3);return c.Njj(s.validForm=o)}),t.k0s()}if(2&n){const i=t.XpG(2),e=t.XpG();t.Y8G("useOAuth",e.useOAuth)("enterCredentials",!!t.bMT(1,7,e.isCloud)&&e.enterCredentials)("sync",e.sync)("kbId",t.bMT(2,9,e.kbId))("connector",i)("connectorId",t.bMT(3,11,e.connectorId))("isCloud",!!t.bMT(4,13,e.isCloud))}}function Je(n,r){if(1&n){const i=t.RV6();t.j41(0,"nsy-folder-selection",10),t.bIt("selectedSyncItems",function(o){c.eBV(i);const s=t.XpG(4);return c.Njj(s.updateSelection(o))}),t.k0s()}if(2&n){const i=t.XpG(4);t.Y8G("sync",i.sync)}}function Qe(n,r){if(1&n&&t.nVh(0,Je,1,1,"nsy-folder-selection",9),2&n){const i=t.XpG(3);t.vxM(i.sync?0:-1)}}function We(n,r){if(1&n&&(t.EFF(0),t.nI1(1,"translate")),2&n){const i=t.XpG(),e=t.XpG(3);t.SpI(" ",t.i5U(1,1,"sync.add-page.footer.steps",t.l_i(4,Ne,e.step(),i.length))," ")}}function He(n,r){if(1&n){const i=t.RV6();t.j41(0,"pa-button",14),t.bIt("click",function(){c.eBV(i);const o=t.XpG(4);return c.Njj(o.cancel())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"generic.cancel")," "))}function ze(n,r){if(1&n){const i=t.RV6();t.j41(0,"pa-button",14),t.bIt("click",function(){c.eBV(i);const o=t.XpG(4);return c.Njj(o.goBack())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"generic.back")," "))}function Ke(n,r){if(1&n){const i=t.RV6();t.j41(0,"pa-button",15),t.bIt("click",function(){c.eBV(i);const o=t.XpG(4);return c.Njj(o.goNext())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&n){const i=t.XpG(4);t.Y8G("disabled",!i.validForm||i.saving),t.R7$(),t.SpI(" ",t.bMT(2,2,"sync.add-page.footer.folder-selection-button")," ")}}function Ze(n,r){if(1&n){const i=t.RV6();t.j41(0,"pa-button",15),t.bIt("click",function(){c.eBV(i);const o=t.XpG(5);return c.Njj(o.authenticate())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&n){const i=t.XpG(5);t.Y8G("disabled",!i.enterCredentials&&!i.validForm||i.saving),t.R7$(),t.SpI(" ",t.bMT(2,2,"sync.add-page.footer.auth-button")," ")}}function qe(n,r){if(1&n){const i=t.RV6();t.j41(0,"pa-button",15),t.bIt("click",function(){c.eBV(i);const o=t.XpG(5);return c.Njj(o.save())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&n){const i=t.XpG(4),e=t.XpG();t.Y8G("disabled",!e.validForm||i.allowToSelectFolders&&0===e.folderSelection.length||e.saving),t.R7$(),t.SpI(" ",t.bMT(2,2,"sync.add-page.footer.save-button")," ")}}function tn(n,r){if(1&n&&(t.nVh(0,Ze,3,4,"pa-button",13),t.nI1(1,"async"),t.vZN(2,qe,3,4,"pa-button",13)),2&n){const i=t.XpG(4);t.vxM(t.bMT(1,1,i.isCloud)&&i.enterCredentials?0:2)}}function en(n,r){if(1&n&&(t.j41(0,"nsi-sticky-footer")(1,"div",11),t.nVh(2,We,2,7),t.k0s(),t.nVh(3,He,3,3,"pa-button",12)(4,ze,3,3,"pa-button",12),t.nVh(5,Ke,3,4,"pa-button",13)(6,tn,3,3),t.k0s()),2&n){const i=r,e=t.XpG(3);t.R7$(2),t.vxM(i.length>1?2:-1),t.R7$(),t.vxM(1===e.step()?3:4),t.R7$(2),t.vxM(i.length>1&&e.step()<i.length?5:6)}}function nn(n,r){if(1&n&&(t.nVh(0,Le,5,15,"nsy-configuration-form",7)(1,Qe,1,1),t.nVh(2,en,7,3,"nsi-sticky-footer"),t.nI1(3,"async")),2&n){let i,e;const o=t.XpG(2);t.vxM(1===(i=o.step())?0:2===i?1:-1),t.R7$(2),t.vxM((e=t.bMT(3,2,o.steps))?2:-1,e)}}function on(n,r){if(1&n&&(t.j41(0,"div"),t.nVh(1,Ye,1,0,"nsi-spinner")(2,nn,4,4),t.k0s()),2&n){const i=t.XpG();t.R7$(),t.vxM(i.loading?1:2)}}const ct="PENDING_NEW_CONNECTOR";let lt=(()=>{var n;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)(E),this.modalService=(0,c.WQX)(_.w8),this.translate=(0,c.WQX)(C.c$),this.toaster=(0,c.WQX)(_._g),this.cdr=(0,c.WQX)(k.gRc),this.connectorId=this.currentRoute.params.pipe((0,v.p)(e=>e.connector),(0,u.T)(e=>e.connector)),this.connectorDefinition=this.connectorId.pipe((0,u.T)(e=>this.syncService.getConnectorDefinition(e))),this.isCloud=this.connectorDefinition.pipe((0,u.T)(e=>!!e.cloud)),this.enterCredentials=!0,this.externalConnectorId="",this.connector=this.connectorId.pipe((0,u.T)(e=>this.syncService.getConnector(e,""))),this.kbId=this.sdk.currentKb.pipe((0,u.T)(e=>e.id)),this.steps=this.connector.pipe((0,u.T)(e=>e.allowToSelectFolders?["configuration","folder-selection"]:["configuration"])),this.stepIndex=(0,c.vPA)(0),this.step=(0,re.EW)(()=>this.stepIndex()+1),this.validForm=!1,this.folderSelection=[],this.loading=!1,this.saving=!1,this.useOAuth=!1}get backPath(){return this.syncId?"../../..":"../.."}ngOnInit(){this.currentRoute.params.pipe((0,v.p)(e=>!!e.syncId),(0,y.s)(1)).subscribe(e=>{this.externalConnectorId=e.syncId,this.enterCredentials=!1,localStorage.removeItem(ct)})}goBack(){this.stepIndex()>0&&this.stepIndex.update(e=>e-1)}goNext(){if(!this.configuration)return;const e=this.configuration;this.syncId?this._goNext():this.connectorDefinition.pipe((0,y.s)(1),(0,d.n)(o=>this.modalService.openConfirm({title:this.translate.instant("sync.add-page.confirm-authenticate.title",{connector:o.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)(o=>!!o),(0,d.n)(()=>this._createSync(e)),(0,d.n)(o=>this._syncCreationDone(o))).subscribe({error:o=>{console.warn(o),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)(e=>!!e),(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})}authenticate(){this.saving=!0,this.cdr.markForCheck(),this.connectorDefinition.pipe((0,y.s)(1),(0,d.n)(e=>!e.oauth_provider||!this.useOAuth&&e.apikey_provider?e.cloud&&e.apikey_provider&&this.configuration?this.syncService.addExternalConnection(e.apikey_provider,this.configuration.connector.parameters).pipe((0,S.M)(o=>{this.externalConnectorId=o.id,this.enterCredentials=!1,this.cdr.markForCheck()})):(0,f.of)(void 0):this.syncService.getOAuthUrl(e.oauth_provider).pipe((0,u.T)(o=>{throw localStorage.setItem(ct,JSON.stringify({redirect:location.href})),this.performOAuth(o),"Will redirect to oauth now."})))).subscribe(()=>{this.saving=!1,this.cdr.markForCheck()})}save(){if(!this.configuration)return;this.saving=!0;const e=this.configuration;if(this.syncId){if(this.folderSelection.length>0){const o=this.syncId;this.syncService.updateSync(o,{foldersToSync:this.folderSelection},!0).pipe((0,d.n)(()=>this._syncCreationDone(o))).subscribe({error:s=>this._errorHandler(s)})}}else this._createSync(e).pipe((0,d.n)(o=>this._syncCreationDone(o))).subscribe({error:o=>this._errorHandler(o)})}updateConfiguration(e){this.configuration=e}updateSelection(e){this.folderSelection=e}_goNext(){this.steps.pipe((0,y.s)(1)).subscribe(e=>{this.stepIndex()<e.length&&this.stepIndex.update(o=>o+1)})}_createSync(e){return this.connectorDefinition.pipe((0,y.s)(1),(0,d.n)(o=>{const s=o.cloud;if(s){if(!this.externalConnectorId)throw"No external connection id";return this.syncService.addCloudSync({name:e.title,external_connection_id:this.externalConnectorId,sync_root_path:e.connector.parameters.sync_root_path}).pipe((0,u.T)(l=>(this.syncService.setCurrentSyncId(l.id),l.id)))}return this.syncService.addSync(e).pipe((0,S.M)(()=>this.syncService.setCurrentSyncId(e.id)),(0,d.n)(()=>{const l=this.syncService.getConnector(e.connector.name,e.id);return l.allowToSelectFolders||s?(0,f.of)(e.id):("function"==typeof l.handleParameters&&l.handleParameters(e.connector.parameters),this.syncService.updateSync(e.id,{foldersToSync:l.getStaticFolders()}).pipe((0,u.T)(()=>e.id)))}))}))}performOAuth(e){e&&(window.location.href=e)}_syncCreationDone(e){return(0,f.of)(!0).pipe((0,S.M)(()=>{let o=this.syncId||location.pathname.includes("/sync/add/")?`../../../${e}`:`../../${e}`;if(location.pathname.includes("/sync/add/")){const s=location.pathname.split("/");o=s.length-s.lastIndexOf("add")===3?`../../../${e}`:`../../${e}`}this.router.navigate([o],{relativeTo:this.currentRoute})}),(0,d.n)(()=>(this.toaster.success("sync.details.toast.triggering-sync-success"),this.syncService.triggerSync(e).pipe((0,X.W)(()=>(this.toaster.error("sync.details.toast.triggering-sync-failed"),(0,f.of)()))))))}_errorHandler(e){this.saving=!1,console.warn(e),this.toaster.error("sync.add-page.toast.generic-error")}static#t=n=()=>(this.\u0275fac=function(o){return new(o||r)},this.\u0275cmp=t.VBU({type:r,selectors:[["nsy-add-sync-page"]],decls:8,vars:10,consts:[[1,"page-spacing"],[3,"link"],[1,"oauth-toggle"],[1,"page-title"],["size","large",3,"path"],[1,"page-description"],["labelOnRight","",3,"valueChange","value"],[3,"useOAuth","enterCredentials","sync","kbId","connector","connectorId","isCloud"],[3,"configurationChange","validForm","useOAuth","enterCredentials","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(o,s){if(1&o&&(t.j41(0,"div",0)(1,"nsi-back-button",1),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nVh(4,Ue,2,3),t.nI1(5,"async"),t.nVh(6,on,3,1,"div"),t.nI1(7,"async"),t.k0s()),2&o){let l,g;t.R7$(),t.Y8G("link",s.backPath),t.R7$(),t.SpI(" ",t.bMT(3,4,"sync.add-page.back-button")," "),t.R7$(2),t.vxM((l=t.bMT(5,6,s.connectorId))?4:-1,l),t.R7$(2),t.vxM((g=t.bMT(7,8,s.connector))?6:-1,g)}},dependencies:[T.MD,T.Jj,_.Xp,p.Ymm,O.Q,p.V3x,G.R,_.o3,C.h,C.D9,rt,B,_.J4,st.t,p.rkm,N.a],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}.oauth-toggle[_ngcontent-%COMP%]{float:right}'],changeDetection:0}))}return n(),r})();var rn=a(4668),sn=a(2885);const cn=["activitySection"],at=(n,r)=>r.id;function ln(n,r){if(1&n&&(t.j41(0,"div",3)(1,"label"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",14),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.nrm(7,"div",10)),2&n){const i=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,2,"sync.details.settings.synchronize-security-groups")),t.R7$(3),t.SpI(" ",t.bMT(6,4,i.sync.syncSecurityGroups?"sync.details.settings.boolean.true":"sync.details.settings.boolean.false")," ")}}function an(n,r){if(1&n&&(t.j41(0,"nsi-label",12),t.EFF(1),t.k0s()),2&n){const i=r.$implicit;t.Y8G("color",i.color),t.R7$(),t.SpI(" ",i.label," ")}}function dn(n,r){1&n&&t.EFF(0," \u2013 ")}function pn(n,r){if(1&n&&(t.j41(0,"nsi-label",15),t.EFF(1),t.k0s()),2&n){const i=r.$implicit;t.R7$(),t.SpI(" ",i," ")}}function un(n,r){1&n&&t.EFF(0," \u2013 ")}function hn(n,r){1&n&&(t.j41(0,"div",11),t.Z7z(1,pn,2,1,"nsi-label",15,t.fX1,!1,un,1,0),t.k0s()),2&n&&(t.R7$(),t.Dyx(r.extensions.split(", ")))}function gn(n,r){1&n&&t.EFF(0," \u2013 ")}function mn(n,r){if(1&n&&(t.EFF(0),t.nI1(1,"translate"),t.nrm(2,"pa-datetime",16),t.EFF(3),t.nI1(4,"translate"),t.nrm(5,"pa-datetime",16)),2&n){const i=r;t.SpI(" ",t.bMT(1,4,"sync.details.settings.modification-date.from")," "),t.R7$(2),t.Y8G("datetime",i.from),t.R7$(),t.SpI(" ",t.bMT(4,6,"sync.details.settings.modification-date.to")," "),t.R7$(2),t.Y8G("datetime",i.to)}}function _n(n,r){1&n&&t.EFF(0," \u2013 ")}function yn(n,r){if(1&n&&(t.nrm(0,"div",10),t.nVh(1,ln,8,6),t.j41(2,"div",3)(3,"label"),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"div",11),t.Z7z(7,an,2,2,"nsi-label",12,t.fX1,!1,dn,1,0),t.k0s()(),t.nrm(10,"div",10),t.j41(11,"label"),t.EFF(12),t.nI1(13,"translate"),t.k0s(),t.j41(14,"div",3),t.nVh(15,hn,4,1,"div",11)(16,gn,1,0),t.k0s(),t.nrm(17,"div",10),t.j41(18,"label"),t.EFF(19),t.nI1(20,"translate"),t.k0s(),t.j41(21,"div",13),t.nVh(22,mn,6,8)(23,_n,1,0),t.k0s()),2&n){let i,e;const o=t.XpG();t.R7$(),t.vxM(null!=o.connector&&o.connector.canSyncSecurityGroups?1:-1),t.R7$(3),t.JRh(t.bMT(5,7,"sync.details.settings.labels")),t.R7$(3),t.Dyx(o.coloredLabels),t.R7$(5),t.SpI(" ",t.bMT(13,9,null!=o.sync.filters&&null!=o.sync.filters.fileExtensions&&o.sync.filters.fileExtensions.exclude?"sync.details.settings.file-extensions.excluded":"sync.details.settings.file-extensions.included")," "),t.R7$(3),t.vxM((i=null==o.sync.filters?null:o.sync.filters.fileExtensions)?15:16,i),t.R7$(4),t.JRh(t.bMT(20,11,"sync.details.settings.modification-date.label")),t.R7$(3),t.vxM((e=null==o.sync.filters?null:o.sync.filters.modified)?22:23,e)}}function fn(n,r){1&n&&(t.j41(0,"div"),t.EFF(1,"*****"),t.k0s())}function Cn(n,r){if(1&n&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&n){const i=t.XpG(2).$implicit,e=t.XpG(4);t.R7$(),t.JRh(e.sync.connector.parameters[i.id]||"_")}}function bn(n,r){if(1&n&&t.nVh(0,fn,2,0,"div")(1,Cn,2,1,"div"),2&n){const i=t.XpG().$implicit;t.vxM(i.secret?0:1)}}function vn(n,r){if(1&n&&t.nrm(0,"app-parameters-table",18),2&n){const i=t.XpG().$implicit,e=t.XpG(4);t.Y8G("values",e.sync.connector.parameters[i.id])}}function Sn(n,r){1&n&&t.EFF(0," \u2013 ")}function xn(n,r){1&n&&t.nrm(0,"div",10)}function Tn(n,r){if(1&n&&(t.j41(0,"div",3)(1,"label"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nVh(4,bn,2,1)(5,vn,1,1,"app-parameters-table",18)(6,Sn,1,0),t.k0s(),t.nVh(7,xn,1,0,"div",10)),2&n){const i=r.$implicit,e=r.$index,o=r.$count,s=t.XpG(4);t.R7$(2),t.JRh(t.bMT(3,3,i.label)),t.R7$(2),t.vxM("table"!==i.type?4:(null==s.sync.connector.parameters[i.id]?null:s.sync.connector.parameters[i.id].length)>0?5:6),t.R7$(3),t.vxM(e!==o-1?7:-1)}}function Fn(n,r){if(1&n&&(t.j41(0,"nsi-two-columns-configuration-item",17)(1,"div",2),t.Z7z(2,Tn,8,5,null,null,at),t.k0s()()),2&n){const i=t.XpG().$implicit;t.Y8G("itemTitle",i.title)("description",i.description||""),t.R7$(2),t.Dyx(i.fields)}}function In(n,r){1&n&&t.nVh(0,Fn,4,2,"nsi-two-columns-configuration-item",17),2&n&&t.vxM("credentials"!==r.$implicit.id?0:-1)}function Rn(n,r){if(1&n&&(t.Z7z(0,In,1,1,null,null,at),t.nI1(2,"async")),2&n){const i=t.XpG();t.Dyx(t.bMT(2,0,i.connector.getParametersSections()))}}function Mn(n,r){if(1&n&&(t.j41(0,"nsi-two-columns-configuration-item",4)(1,"div"),t.EFF(2),t.k0s()()),2&n){const i=t.XpG();t.R7$(2),t.JRh(i.extractStrategy)}}function kn(n,r){1&n&&t.nrm(0,"pa-icon",20)}function $n(n,r){1&n&&t.nrm(0,"pa-icon",21)}function Pn(n,r){1&n&&t.nrm(0,"pa-icon",22)}function jn(n,r){if(1&n&&(t.j41(0,"pa-table-row")(1,"pa-table-cell")(2,"div",19),t.nVh(3,kn,1,0,"pa-icon",20)(4,$n,1,0,"pa-icon",21)(5,Pn,1,0,"pa-icon",22),t.EFF(6),t.k0s()(),t.j41(7,"pa-table-cell")(8,"div",23),t.nrm(9,"pa-datetime",24),t.k0s()()()),2&n){let i;const e=r.$implicit;t.R7$(3),t.vxM("high"===(i=e.level)?3:"medium"===i?4:"low"===i?5:-1),t.R7$(3),t.SpI(" ",e.message," "),t.R7$(3),t.Y8G("datetime",e.createdAt)}}function En(n,r){1&n&&(t.j41(0,"pa-table-row",9)(1,"pa-table-cell")(2,"div",23),t.EFF(3),t.nI1(4,"translate"),t.k0s()()()),2&n&&(t.R7$(3),t.JRh(t.bMT(4,1,"sync.details.activity-log.no-activity")))}let Gn=(()=>{var n;class r{constructor(){this.labelService=(0,c.WQX)(b.xQ),this.cdr=(0,c.WQX)(k.gRc),this.currentRoute=(0,c.WQX)(R.nX),this.sdk=(0,c.WQX)(b.ok),this.connector=void 0,this._logs=[],this.labelSets={},this.coloredLabels=[],this.extractStrategy=""}set logs(e){e&&(this._logs=e)}get logs(){return this._logs}ngAfterViewInit(){this.currentRoute.queryParams.pipe((0,v.p)(e=>e.section),(0,u.T)(e=>e.section),(0,y.s)(1)).subscribe({next:e=>{setTimeout(()=>{"activity"===e&&this.activitySection&&this.activitySection.nativeElement.scrollIntoView({behavior:"smooth"})},300)}})}ngOnInit(){this.labelService.resourceLabelSets.pipe((0,y.s)(1),(0,v.p)(o=>!!o),(0,u.T)(o=>o)).subscribe(o=>{this.labelSets=o,this.coloredLabels=this.sync.labels?.map(s=>({...s,color:this.labelSets[s.labelset]?.color}))||[],this.cdr.detectChanges()});const e=this.sync.extract_strategy;e&&this.sdk.currentKb.pipe((0,y.s)(1),(0,d.n)(o=>o.getExtractStrategies())).subscribe(o=>{this.extractStrategy=o[e]?.name||"",this.cdr.markForCheck()})}static#t=n=()=>(this.\u0275fac=function(o){return new(o||r)},this.\u0275cmp=t.VBU({type:r,selectors:[["nsy-sync-settings"]],viewQuery:function(o,s){if(1&o&&t.GBs(cn,5),2&o){let l;t.mGM(l=t.lsd())&&(s.activitySection=l.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(o,s){1&o&&(t.j41(0,"nsi-two-columns-configuration-item",1)(1,"div",2)(2,"div",3)(3,"label"),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"div"),t.EFF(7),t.k0s()(),t.nVh(8,yn,24,13),t.k0s()(),t.nVh(9,Rn,3,2),t.nVh(10,Mn,3,1,"nsi-two-columns-configuration-item",4),t.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),t.EFF(17),t.nI1(18,"translate"),t.k0s(),t.j41(19,"pa-table-cell",8),t.EFF(20),t.nI1(21,"translate"),t.k0s()(),t.Z7z(22,jn,10,3,"pa-table-row",null,t.fX1,!1,En,5,3,"pa-table-row",9),t.k0s()()()),2&o&&(t.R7$(4),t.JRh(t.bMT(5,8,"sync.details.settings.name")),t.R7$(3),t.JRh(s.sync.title),t.R7$(),t.vxM(s.sync.isCloud?-1:8),t.R7$(),t.vxM(s.connector?9:-1),t.R7$(),t.vxM(s.extractStrategy?10:-1),t.R7$(7),t.JRh(t.bMT(18,10,"sync.details.activity-log.table-header.message")),t.R7$(3),t.JRh(t.bMT(21,12,"sync.details.activity-log.table-header.date")),t.R7$(2),t.Dyx(s.logs))},dependencies:[T.MD,T.Jj,_._8,C.h,C.D9,_.OE,ot.U,p.Pa6,et.Z,p.EGN,Z.O,q.e,tt.U,sn.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 n(),r})();const On=n=>({count:n});function wn(n,r){if(1&n){const i=t.RV6();t.j41(0,"header")(1,"pa-input",1),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"pa-button",2),t.bIt("click",function(){c.eBV(i);const o=t.XpG();return c.Njj(o.editing=!0)}),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.j41(7,"div",3),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.nrm(10,"nsi-folder-list",4)}if(2&n){const i=t.XpG();t.R7$(),t.Y8G("formControl",i.queryControl),t.R7$(),t.SpI(" ",t.bMT(3,6,"sync.folder-selection.search-input-label")," "),t.R7$(3),t.JRh(t.bMT(6,8,"sync.folder-selection.edit-folders-button")),t.R7$(3),t.JRh(t.bMT(9,10,"sync.folder-selection.current-selection")),t.R7$(2),t.Y8G("filtered",!!i.query)("folders",i.selectedFolders)}}function Vn(n,r){if(1&n){const i=t.RV6();t.j41(0,"nsy-folder-selection",5),t.bIt("selectedSyncItems",function(o){c.eBV(i);const s=t.XpG();return c.Njj(s.updateSelection(o))}),t.k0s(),t.j41(1,"nsi-sticky-footer")(2,"div",6),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"pa-button",7),t.bIt("click",function(){c.eBV(i);const o=t.XpG();return c.Njj(o.editing=!1)}),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.j41(8,"pa-button",8),t.bIt("click",function(){c.eBV(i);const o=t.XpG();return c.Njj(o.saveSelection())}),t.EFF(9),t.nI1(10,"translate"),t.k0s()()}if(2&n){const i=t.XpG();t.Y8G("sync",i.sync),t.R7$(3),t.SpI(" ",t.i5U(4,4,"sync.folder-selection.footer.selection-count",t.eq3(11,On,i.selectionCount))," "),t.R7$(3),t.SpI(" ",t.bMT(7,7,"generic.cancel")," "),t.R7$(3),t.SpI(" ",t.bMT(10,9,"sync.folder-selection.footer.save-changes")," ")}}let Xn=(()=>{var n;class r{constructor(){this.cdr=(0,c.WQX)(k.gRc),this._unsubscribeAll=new $.B,this.selectionChange=new t.bkB,this.editing=!1,this.selection=[],this.selectionCount=0,this.queryControl=new h.MJ("")}set sync(e){this._sync=e,this.updateSelection(e.foldersToSync||[])}get sync(){return this._sync}get selectedFolders(){const e=this.selection.map(s=>s.metadata.displayPath||s.metadata.path)||[],o=this.query?this.query.toLocaleLowerCase():"";return o?e.filter(s=>s.toLocaleLowerCase().includes(o)):e}get query(){return this.queryControl.value}updateSelection(e){this.selection=e,this.selectionCount=this.selection.length,this.cdr.detectChanges()}saveSelection(){this.selectionChange.emit(this.selection),this.editing=!1,this.cdr.markForCheck()}static#t=n=()=>(this.\u0275fac=function(o){return new(o||r)},this.\u0275cmp=t.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(o,s){1&o&&(t.j41(0,"div",0),t.nVh(1,wn,11,12)(2,Vn,11,13),t.k0s()),2&o&&(t.R7$(),t.vxM(s.editing?s.sync?2:-1:1))},dependencies:[B,p.XgI,A.S,p.Ymm,O.Q,C.h,C.D9,p.V3x,_.Sq,_.o3,h.X1,h.BC,h.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 n(),r})();var Dn=a(7725),Nn=a(3515);function An(n,r){if(1&n){const i=t.RV6();t.j41(0,"div",10)(1,"pa-toggle",11),t.bIt("valueChange",function(o){c.eBV(i);const s=t.XpG(4);return c.Njj(s.toggleSync(o))}),t.EFF(2),t.nI1(3,"translate"),t.k0s()(),t.j41(4,"pa-button",12),t.nI1(5,"async"),t.bIt("click",function(){c.eBV(i);const o=t.XpG(4);return c.Njj(o.triggerSync())}),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.j41(8,"pa-button",13),t.EFF(9),t.nI1(10,"translate"),t.k0s()}if(2&n){const i=t.XpG(3),e=t.XpG();t.R7$(),t.Y8G("value",!i.disabled),t.R7$(),t.SpI(" ",t.bMT(3,5,i.disabled?"sync.badge.inactive":"sync.badge.active")," "),t.R7$(2),t.Y8G("disabled",t.bMT(5,7,e.isSyncing)),t.R7$(2),t.SpI(" ",t.bMT(7,9,"sync.details.buttons.sync-now")," "),t.R7$(3),t.SpI(" ",t.bMT(10,11,"sync.details.buttons.edit-settings")," ")}}function Bn(n,r){if(1&n){const i=t.RV6();t.j41(0,"div",8),t.nVh(1,An,11,13),t.j41(2,"pa-button",9),t.bIt("click",function(){c.eBV(i);const o=t.XpG(3);return c.Njj(o.deleteSync())}),t.EFF(3),t.nI1(4,"translate"),t.k0s()()}if(2&n){const i=t.XpG(2);t.R7$(),t.vxM(i.isCloud?-1:1),t.R7$(2),t.SpI(" ",t.bMT(4,2,"sync.details.buttons.delete")," ")}}function Un(n,r){if(1&n&&(t.j41(0,"div",2)(1,"h1",6),t.nrm(2,"pa-icon",7),t.EFF(3),t.k0s(),t.nVh(4,Bn,5,4,"div",8),t.nI1(5,"async"),t.k0s()),2&n){const i=t.XpG(),e=t.XpG();t.R7$(2),t.Y8G("path",r.logo),t.R7$(),t.SpI(" ",i.title," "),t.R7$(),t.vxM(!1===t.bMT(5,3,e.editMode)?4:-1)}}function Yn(n,r){if(1&n){const i=t.RV6();t.j41(0,"pa-tab",14),t.bIt("click",function(){c.eBV(i);const o=t.XpG(2);return c.Njj(o.activeTab="folders")}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&n){const i=t.XpG(2);t.Y8G("active","folders"===i.activeTab),t.R7$(),t.SpI(" ",t.bMT(2,2,"sync.details.tabs.folders")," ")}}function Ln(n,r){if(1&n){const i=t.RV6();t.j41(0,"nsy-configuration-form",19),t.nI1(1,"async"),t.nI1(2,"async"),t.nI1(3,"async"),t.bIt("configurationChange",function(o){c.eBV(i);const s=t.XpG(3);return c.Njj(s.updateConfiguration(o))})("validForm",function(o){c.eBV(i);const s=t.XpG(3);return c.Njj(s.validForm=o)}),t.k0s()}if(2&n){let i;const e=t.XpG(2),o=t.XpG();t.Y8G("sync",e)("kbId",t.bMT(1,4,o.kbId))("connector",t.bMT(2,6,o.connector))("connectorId",null==(i=t.bMT(3,8,o.connectorDef))?null:i.id)}}function Jn(n,r){if(1&n){const i=t.RV6();t.j41(0,"nsy-folder-selection",20),t.bIt("selectedSyncItems",function(o){c.eBV(i);const s=t.XpG(3);return c.Njj(s.updateSelection(o))}),t.k0s()}if(2&n){const i=t.XpG(2);t.Y8G("sync",i)}}function Qn(n,r){if(1&n){const i=t.RV6();t.j41(0,"div"),t.nVh(1,Ln,4,10,"nsy-configuration-form",15)(2,Jn,1,1,"nsy-folder-selection",16),t.j41(3,"nsi-sticky-footer")(4,"pa-button",17),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"pa-button",18),t.bIt("click",function(){c.eBV(i);const o=t.XpG(2);return c.Njj(o.saveChanges())}),t.EFF(8),t.nI1(9,"translate"),t.k0s()()()}if(2&n){let i;const e=t.XpG(2);t.R7$(),t.vxM("settings"===(i=e.activeTab)?1:"folders"===i?2:-1),t.R7$(4),t.SpI(" ",t.bMT(6,3,"generic.cancel")," "),t.R7$(3),t.SpI(" ",t.bMT(9,5,"sync.details.buttons.save-changes")," ")}}function Wn(n,r){if(1&n&&(t.nrm(0,"nsy-sync-settings",21),t.nI1(1,"async"),t.nI1(2,"async")),2&n){const i=t.XpG(2),e=t.XpG();t.Y8G("sync",i)("connector",t.bMT(1,3,e.connector))("logs",t.bMT(2,5,e.activityLogs))}}function Hn(n,r){if(1&n){const i=t.RV6();t.j41(0,"nsy-folders-tab",22),t.bIt("selectionChange",function(o){c.eBV(i);const s=t.XpG(3);return c.Njj(s.updateFolders(o))}),t.k0s()}if(2&n){const i=t.XpG(2);t.Y8G("sync",i)}}function zn(n,r){if(1&n&&t.nVh(0,Wn,3,7,"nsy-sync-settings",21)(1,Hn,1,1,"nsy-folders-tab",16),2&n){let i;const e=t.XpG(2);t.vxM("settings"===(i=e.activeTab)?0:"folders"===i?1:-1)}}function Kn(n,r){if(1&n){const i=t.RV6();t.nVh(0,Un,6,5,"div",2),t.nI1(1,"async"),t.j41(2,"pa-tabs",3)(3,"pa-tab",4),t.bIt("click",function(){c.eBV(i);const o=t.XpG();return c.Njj(o.activeTab="settings")}),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.nVh(6,Yn,3,4,"pa-tab",5),t.nI1(7,"async"),t.k0s(),t.nVh(8,Qn,10,7,"div"),t.nI1(9,"async"),t.vZN(10,zn,2,1)}if(2&n){let i,e;const o=t.XpG();t.vxM((i=t.bMT(1,5,o.connectorDef))?0:-1,i),t.R7$(3),t.Y8G("active","settings"===o.activeTab),t.R7$(),t.SpI(" ",t.bMT(5,7,"sync.details.tabs.settings")," "),t.R7$(2),t.vxM(null!=(e=t.bMT(7,9,o.connector))&&e.allowToSelectFolders?6:-1),t.R7$(2),t.vxM(t.bMT(9,11,o.editMode)?8:10)}}let dt=(()=>{var n;class r{constructor(){this.router=(0,c.WQX)(R.Ix),this.currentRoute=(0,c.WQX)(R.nX),this.syncService=(0,c.WQX)(E),this.toaster=(0,c.WQX)(_._g),this.sdk=(0,c.WQX)(b.ok),this.modalService=(0,c.WQX)(_.w8),this.translate=(0,c.WQX)(C.c$),this.unsubscribeAll=new $.B,this.isDeleted=new $.B,this.kbId=this.sdk.currentKb.pipe((0,u.T)(e=>e.id)),this.syncId=this.currentRoute.params.pipe((0,v.p)(e=>!!e.syncId),(0,u.T)(e=>e.syncId),(0,S.M)(e=>this.syncService.setCurrentSyncId(e))),this.sync=this.syncService.cacheUpdated.pipe((0,d.n)(()=>this.syncId),(0,d.n)(e=>this.syncService.getSync(e)),(0,j.Q)(this.isDeleted),(0,rn.t)(1)),this.connectorDef=this.sync.pipe((0,u.T)(e=>this.syncService.connectors[e.connectorId||e.connector.name]?.definition||void 0)),this.connector=this.connectorDef.pipe((0,u.T)(e=>e?this.syncService.getConnector(e.id,""):void 0)),this.activityLogs=this.syncId.pipe((0,d.n)(e=>this.syncService.getLogs(e))),this.activeTab="settings",this.editMode=this.currentRoute.url.pipe((0,u.T)(e=>e.length>1&&"edit"===e[1].path)),this.validForm=!1,this.isSyncing=(0,z.z)([this.syncId,this.syncService.isSyncing]).pipe((0,u.T)(([e,o])=>o[e]||!1))}ngOnDestroy(){this.unsubscribeAll.next(),this.unsubscribeAll.complete(),this.isDeleted.next(),this.isDeleted.complete()}toggleSync(e){this.syncId.pipe((0,y.s)(1),(0,d.n)(o=>this.syncService.updateSync(o,{disabled:!e}))).subscribe({error:()=>this.toaster.error(e?"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)(e=>this.syncId.pipe((0,y.s)(1),(0,d.n)(o=>this.syncService.triggerSync(o,!e))))).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)(e=>this.modalService.openConfirm({title:this.translate.instant("sync.confirm.deletion.title",{title:e.title}),description:"sync.confirm.deletion.description",isDestructive:!0,confirmLabel:"generic.delete"}).onClose.pipe((0,v.p)(o=>!!o),(0,S.M)(()=>this.isDeleted.next()),(0,d.n)(()=>this.syncService.deleteSync(e.id))))).subscribe({next:()=>this.router.navigate([".."],{relativeTo:this.currentRoute}),error:()=>this.toaster.error("sync.details.toast.deletion-failed")})}updateConfiguration(e){this.updatedConfig=e}updateSelection(e){this.updatedSelection=e}saveChanges(){!this.updatedConfig&&!this.updatedSelection||this.syncId.pipe((0,y.s)(1),(0,d.n)(e=>{const o={...this.updatedConfig};return this.updatedSelection&&(o.foldersToSync=this.updatedSelection),this.syncService.updateSync(e,o)})).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(e){this.syncId.pipe((0,y.s)(1),(0,d.n)(o=>this.syncService.updateSync(o,{foldersToSync:e}))).subscribe({error:()=>this.toaster.error("sync.details.toast.modification-failed")})}static#t=n=()=>(this.\u0275fac=function(o){return new(o||r)},this.\u0275cmp=t.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(o,s){if(1&o&&(t.j41(0,"div",0)(1,"nsi-back-button",1),t.nI1(2,"async"),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.nVh(5,Kn,11,13),t.nI1(6,"async"),t.k0s()),2&o){let l;t.R7$(),t.Y8G("link",t.bMT(2,3,s.editMode)?"../..":".."),t.R7$(2),t.SpI(" ",t.bMT(4,5,"sync.add-page.back-button")," "),t.R7$(2),t.vxM((l=t.bMT(6,7,s.sync))?5:-1,l)}},dependencies:[T.MD,T.Jj,_.Xp,C.h,C.D9,p.V3x,G.R,p.Ymm,O.Q,p.rkm,N.a,p.aT,Dn.Q,Nn.w,Gn,Xn,H.Wk,_.o3,rt,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 n(),r})();const Zn=[{path:"",component:Mt,children:[{path:"",component:ie},{path:"add/:connector",component:lt},{path:"add/:connector/:syncId",component:lt},{path:":syncId/edit",component:dt},{path:":syncId",component:dt}]}]}}]);
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "be57f36340104ad0be48e8c40a3be9c6f65ed4af",
2
+ "version": "2bd00ce7a6d44ba31a5af4319e6a083a5d449f41",
3
3
  "production": true,
4
4
  "backend": {
5
5
  "app": "nucliadb-admin",
@@ -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 obre el servei IAM",
91
- "account.models.bedrock.step-1-2": "Aneu a la pàgina <strong>Roles</strong> i fes clic a <strong>Create role</strong>.",
92
- "account.models.bedrock.step-1-3": "A <strong>Trusted entity type</strong>, selecciona <strong>AWS account</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",
@@ -550,6 +546,7 @@
550
546
  "generic.owner": "Owner",
551
547
  "generic.page": "Pàgina",
552
548
  "generic.pagination": "{{current}} de {{total}}",
549
+ "generic.password": "Contrasenya",
553
550
  "generic.preferences": "Preferències",
554
551
  "generic.presence": "Presència",
555
552
  "generic.previous": "Anterior",
@@ -690,8 +687,8 @@
690
687
  "kb.ai-models.extraction.split.title": "Configuracions de divisió",
691
688
  "kb.ai-models.model-selector.disclaimer.description": "El {{model}} pot introduir riscos empresarials o de compliment normatiu. Si us plau, reviseu-lo i accepteu-lo abans de desar.",
692
689
  "kb.ai-models.model-selector.disclaimer.label": "He revisat i entenc els riscos associats amb l'ús de {{model}}. Accepto la responsabilitat de verificar els resultats abans de l'ús",
693
- "kb.ai-models.model-selector.disclaimer.text": "<h3>Al·lucinacions<h3>\n<p>El model pot generar informació inexacta o fabricada que sembli creïble.</p>\n<h3>Privacitat de dades</h3>\n<p>Les dades d'entrada es poden transmetre a proveïdors externs per al seu processament. No s'han de compartir dades sensibles o personals.</p>\n<h3>Biaix i imparcialitat</h3>\n<p>Les respostes del model poden reflectir biaix de les dades d'entrenament. Reviseu els resultats amb cura.</p>\n<h3>Seguretat</h3>\n<p>Els prompts es poden explotar (injecció de prompts) per extreure contingut restringit o eludir instruccions.</p>\n<h3>Compliment</h3>\n<p>El resultat pot no complir les polítiques legals, del GDPR, de la HIPPA o de seguretat de la vostra empresa.</p>\n<h3>Contingut</h3>\n<p>La IA pot generar contingut perjudicial, enganyós o ofensiu sense intenció.</p>",
694
690
  "kb.ai-models.model-selector.disclaimer.title": "Avís de risc del model d'IA",
691
+ "kb.ai-models.model-selector.enterprise-ready": "preparat per a les empreses",
695
692
  "kb.ai-models.model-selector.search": "Cerca per seleccionar models",
696
693
  "kb.ai-models.page-description": "Configureu els models disponibles per a les vostres dades",
697
694
  "kb.ai-models.page-title": "Models d’IA",
@@ -905,6 +902,7 @@
905
902
  "navbar.ai-models": "Models d’IA",
906
903
  "navbar.api_keys": "Claus API",
907
904
  "navbar.classification": "Conjunts d’etiquetes",
905
+ "navbar.da-agents": "Agents AD",
908
906
  "navbar.home": "Inici",
909
907
  "navbar.list": "Llistat recursos",
910
908
  "navbar.manage-kbs": "Knowledge Boxes",
@@ -1216,7 +1214,7 @@
1216
1214
  "retrieval-agents.drivers.add.internet.all-configured": "Tots els controladors d'Internet ja estan configurats",
1217
1215
  "retrieval-agents.drivers.add.internet.label": "Afegir un controlador Internet",
1218
1216
  "retrieval-agents.drivers.add.nuclia": "Afegir un controlador Agentic RAG KB",
1219
- "retrieval-agents.drivers.add.title": "Afegeix un controlador {{name}}",
1217
+ "retrieval-agents.drivers.add.title": "Afegeix un {{name}}",
1220
1218
  "retrieval-agents.drivers.confirm-deletion.description": "Esteu segur que voleu suprimir aquest controlador? Aquesta acció no es pot desfer.",
1221
1219
  "retrieval-agents.drivers.confirm-deletion.title": "Vols suprimir {{name}}?",
1222
1220
  "retrieval-agents.drivers.description": "Seleccioneu les fonts externes disponibles per als agents",
@@ -1288,8 +1286,11 @@
1288
1286
  "retrieval-agents.workflow.node-types.advanced_ask.description": "Agent Agentic RAG ask",
1289
1287
  "retrieval-agents.workflow.node-types.advanced_ask.form.citations": "Cites",
1290
1288
  "retrieval-agents.workflow.node-types.advanced_ask.form.citations-and-json": "Citacions i sortida JSON",
1289
+ "retrieval-agents.workflow.node-types.advanced_ask.form.existing-config-warning": "No es poden utilitzar les configuracions de cerca existents quan es seleccionen diverses fonts",
1291
1290
  "retrieval-agents.workflow.node-types.advanced_ask.form.llm-citations": "Cites de LLM",
1292
1291
  "retrieval-agents.workflow.node-types.advanced_ask.form.no-citations": "Sense cites",
1292
+ "retrieval-agents.workflow.node-types.advanced_ask.form.no-existing-configs": "No hi ha configuracions de cerca disponibles per a la font seleccionada",
1293
+ "retrieval-agents.workflow.node-types.advanced_ask.form.use-existing-config": "Utilitza una configuració de cerca existent",
1293
1294
  "retrieval-agents.workflow.node-types.advanced_ask.form.vectorset-warning": "El model d'embeddings no es pot canviar quan es seleccionen diverses fonts.",
1294
1295
  "retrieval-agents.workflow.node-types.advanced_ask.title": "Preguntar a Agentic RAG KB (avançat)",
1295
1296
  "retrieval-agents.workflow.node-types.ask.description": "Agent Agentic RAG ask",
@@ -1340,6 +1341,8 @@
1340
1341
  "retrieval-agents.workflow.node-types.generate.prompt-placeholder": "Sol·licita el format de text/JSON/imatge generat",
1341
1342
  "retrieval-agents.workflow.node-types.generate.title": "Generació",
1342
1343
  "retrieval-agents.workflow.node-types.google.description": "## TODO ##",
1344
+ "retrieval-agents.workflow.node-types.google.form.go-to-drivers": "Creeu un controlador Google",
1345
+ "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
1346
  "retrieval-agents.workflow.node-types.google.title": "Internet - Google",
1344
1347
  "retrieval-agents.workflow.node-types.guardrails.form.detection_config.help": "Esquema JSON que representa la configuració de detecció",
1345
1348
  "retrieval-agents.workflow.node-types.guardrails.form.detection_config.label": "Configuració de detecció personalitzada",
@@ -1383,6 +1386,8 @@
1383
1386
  "retrieval-agents.workflow.node-types.mcp.form.transport": "Transport",
1384
1387
  "retrieval-agents.workflow.node-types.mcp.title": "Protocol de context de model (MCP)",
1385
1388
  "retrieval-agents.workflow.node-types.perplexity.description": "## TODO ##",
1389
+ "retrieval-agents.workflow.node-types.perplexity.form.go-to-drivers": "Creeu un controlador Perplexity",
1390
+ "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
1391
  "retrieval-agents.workflow.node-types.perplexity.title": "Internet - Perplexity",
1387
1392
  "retrieval-agents.workflow.node-types.postprocess_alinia.description": "Afegeix una protecció de sortida LLM",
1388
1393
  "retrieval-agents.workflow.node-types.preprocess_alinia.description": "Afegeix la protecció d'entrada LLM",
@@ -1431,6 +1436,18 @@
1431
1436
  "retrieval-agents.workflow.node-types.tavily.description": "## TODO ##",
1432
1437
  "retrieval-agents.workflow.node-types.tavily.title": "Internet - Tavily",
1433
1438
  "retrieval-agents.workflow.sidebar.close-button": "Tanca el panell lateral",
1439
+ "retrieval-agents.workflow.sidebar.export.description": "Exporta la configuració de l'agent de recuperació",
1440
+ "retrieval-agents.workflow.sidebar.export.email-sent": "Exportació completa. S'ha enviat un enllaç de descàrrega a {{email}}.",
1441
+ "retrieval-agents.workflow.sidebar.export.export-error": "S'ha produït un error en exportar la configuració",
1442
+ "retrieval-agents.workflow.sidebar.export.min-length": "Almenys 16 caràcters ",
1443
+ "retrieval-agents.workflow.sidebar.export.title": "Exportar",
1444
+ "retrieval-agents.workflow.sidebar.export.warning": "La contrasenya serà necessària per importar el fitxer exportat",
1445
+ "retrieval-agents.workflow.sidebar.import.description": "Importa la configuració de l'agent de recuperació",
1446
+ "retrieval-agents.workflow.sidebar.import.import-error": "S'ha produït un error en importar la configuració",
1447
+ "retrieval-agents.workflow.sidebar.import.import-sucess": "La configuració s'ha importat correctament",
1448
+ "retrieval-agents.workflow.sidebar.import.overwrite": "Sobreescriure la configuració existent",
1449
+ "retrieval-agents.workflow.sidebar.import.select-file": "Seleccionar fitxer",
1450
+ "retrieval-agents.workflow.sidebar.import.title": "Importar",
1434
1451
  "retrieval-agents.workflow.sidebar.node-creation.context": "Afegir un node",
1435
1452
  "retrieval-agents.workflow.sidebar.node-creation.generation": "Afegeix un node de generació",
1436
1453
  "retrieval-agents.workflow.sidebar.node-creation.postprocess": "Afegir un node de postprocés",
@@ -1471,6 +1488,8 @@
1471
1488
  "retrieval-agents.workflow.sidebar.test.toasts.session-closing-error": "S'ha produït un error en tancar les interaccions de la sessió.",
1472
1489
  "retrieval-agents.workflow.sidebar.test.toasts.session-creation-error": "S'ha produït un error en crear la sessió.",
1473
1490
  "retrieval-agents.workflow.toolbar-buttons.add-node": "Afegir un node",
1491
+ "retrieval-agents.workflow.toolbar-buttons.export": "Exportar",
1492
+ "retrieval-agents.workflow.toolbar-buttons.import": "Importar",
1474
1493
  "retrieval-agents.workflow.toolbar-buttons.manage-sessions": "Gestionar sessions",
1475
1494
  "retrieval-agents.workflow.toolbar-buttons.rules": "Normes",
1476
1495
  "retrieval-agents.workflow.toolbar-buttons.test-agent": "Provar l'agent",
@@ -1847,9 +1866,24 @@
1847
1866
  "search.widgets.form.actions.save": "Guardar canvis",
1848
1867
  "search.widgets.form.description": "El giny incrustat reflectirà la configuració de cerca i les opcions del giny establertes a continuació.",
1849
1868
  "search.widgets.form.preview-title": "Prova el giny",
1869
+ "search.widgets.form.rao-widget-options.prompts.add": "Afegeix indicació",
1870
+ "search.widgets.form.rao-widget-options.prompts.description": "Personalitzeu les indicacions que es mostren abans que comenci la conversa.",
1871
+ "search.widgets.form.rao-widget-options.prompts.prompt-label": "Indicació {{index}}",
1872
+ "search.widgets.form.rao-widget-options.prompts.remove": "Suprimeix",
1873
+ "search.widgets.form.rao-widget-options.prompts.title": "Indicacions suggerides",
1874
+ "search.widgets.form.rao-widget-options.prompts.use-fallback.help": "Les indicacions alternatives s'apliquen quan la llista personalitzada és buida.",
1875
+ "search.widgets.form.rao-widget-options.prompts.use-fallback.label": "Utilitza indicacions alternatives",
1876
+ "search.widgets.form.rao-widget-options.prompts.visible-count.help": "Establiu quantes indicacions es mostren a l'usuari.",
1877
+ "search.widgets.form.rao-widget-options.prompts.visible-count.label": "Indicacions visibles",
1878
+ "search.widgets.form.rao-widget-options.recording.language.help": "Proporcioneu un codi d'idioma BCP-47 com ara \"ca-ES\".",
1879
+ "search.widgets.form.rao-widget-options.recording.language.label": "Idioma de reconeixement",
1880
+ "search.widgets.form.rao-widget-options.recording.title": "Enregistrament de veu",
1850
1881
  "search.widgets.form.rao-widget-options.title.label": "Títol del widget",
1851
1882
  "search.widgets.form.rao-widget-options.username.help": "Nom utilitzat a la salutació inicial",
1852
1883
  "search.widgets.form.rao-widget-options.username.label": "Nom d'usuari",
1884
+ "search.widgets.form.rao-widget-options.viewtype.conversation": "Conversa",
1885
+ "search.widgets.form.rao-widget-options.viewtype.floating": "Flotant",
1886
+ "search.widgets.form.rao-widget-options.viewtype.title": "Visualització del widget",
1853
1887
  "search.widgets.form.search-config-title": "Configuració de cerca",
1854
1888
  "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
1889
  "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\".",
@@ -2142,7 +2176,7 @@
2142
2176
  "tasks-automation.llm-security.labeling.description": "Trieu com s'etiquetarà el contingut no segur.",
2143
2177
  "tasks-automation.llm-security.labeling.title": "Configuració d'etiquetatge",
2144
2178
  "tasks-automation.page-description": "Milloreu el rendiment i la precisió de la vostra experiència de cerca executant agents automatitzats al vostre Knowledge Box.",
2145
- "tasks-automation.page-title": "Agents",
2179
+ "tasks-automation.page-title": "Agents d'augment de dades",
2146
2180
  "tasks-automation.question-answer.footer.apply-automation": "Genereu preguntes i respostes per a tots els recursos existents i futurs que coincideixin amb la selecció.",
2147
2181
  "tasks-automation.question-answer.footer.apply-one-time": "Genereu preguntes i respostes només per a {{count}} recursos existents.",
2148
2182
  "tasks-automation.question-answer.prompts.description": "Personalitzeu els prompts per generar les preguntes i les respostes.",