nucliadb-admin-assets 1.0.0.post2556__py3-none-any.whl → 1.0.0.post2571__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of nucliadb-admin-assets might be problematic. Click here for more details.
- nucliadb_admin_assets/594.f0e133c40e06831a.js +1 -0
- nucliadb_admin_assets/assets/deployment/app-config.json +1 -1
- nucliadb_admin_assets/assets/i18n/common/ca.json +27 -5
- nucliadb_admin_assets/assets/i18n/common/en.json +27 -5
- nucliadb_admin_assets/assets/i18n/common/es.json +27 -5
- nucliadb_admin_assets/assets/i18n/common/fr.json +27 -5
- nucliadb_admin_assets/assets/i18n/sync/ca.json +4 -12
- nucliadb_admin_assets/assets/i18n/sync/en.json +4 -12
- nucliadb_admin_assets/assets/i18n/sync/es.json +4 -12
- nucliadb_admin_assets/assets/i18n/sync/fr.json +4 -12
- nucliadb_admin_assets/index.html +2 -2
- nucliadb_admin_assets/main.01ad6a897008541d.js +1 -0
- nucliadb_admin_assets/runtime.3b500e190ada5dcf.js +1 -0
- {nucliadb_admin_assets-1.0.0.post2556.dist-info → nucliadb_admin_assets-1.0.0.post2571.dist-info}/METADATA +1 -1
- {nucliadb_admin_assets-1.0.0.post2556.dist-info → nucliadb_admin_assets-1.0.0.post2571.dist-info}/RECORD +18 -18
- nucliadb_admin_assets/555.0ec7aabb000f24c7.js +0 -1
- nucliadb_admin_assets/main.9a3a3eb3e186e3ec.js +0 -1
- nucliadb_admin_assets/runtime.bee50f7f6c74eb8b.js +0 -1
- {nucliadb_admin_assets-1.0.0.post2556.dist-info → nucliadb_admin_assets-1.0.0.post2571.dist-info}/WHEEL +0 -0
- {nucliadb_admin_assets-1.0.0.post2556.dist-info → nucliadb_admin_assets-1.0.0.post2571.dist-info}/top_level.txt +0 -0
- {nucliadb_admin_assets-1.0.0.post2556.dist-info → nucliadb_admin_assets-1.0.0.post2571.dist-info}/zip-safe +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunknucliadb_admin=self.webpackChunknucliadb_admin||[]).push([[594],{9594:(Pn,U,a)=>{a.r(U),a.d(U,{SYNC_ROUTES:()=>$n});var c=a(2615),T=a(2062),M=a(1413),ue=a(1584),v=a(5964),d=a(5558),k=a(6977);const F="assets/connector-logos";var $=function(n){return n.PENDING="PENDING",n.PROCESSING="PROCESSING",n.UPLOADED="UPLOADED",n.ERROR="ERROR",n}($||{}),I=a(4412),p=a(6354),ge=a(7468),f=a(6697),_=a(7673),S=a(8141),X=a(9437),C=a(4760);const me={id:"sitemap",title:"Sitemap",logo:`${F}/sitemap.svg`,description:"Upload web pages from a sitemap.xml",permanentSyncOnly:!0,factory:()=>new ye};class ye{constructor(){this.hasServerSideAuth=!1,this.isExternal=!0,this.allowToSelectFolders=!1,this.canSyncSecurityGroups=!1}getStaticFolders(){return[{uuid:"",title:"Sitemap",originalId:"SITEMAP",metadata:{},status:$.PENDING}]}getParametersSections(){return(0,_.of)([{id:"url",title:"sync.connectors.sitemap.url.section-title",fields:[{id:"sitemap",label:"sync.connectors.sitemap.url.label",type:"text",required:!0,pattern:/.+\.(ashx|xml)/,placeholder:"https://my-website.com/sitemap.xml"}]},{id:"restrict-indexation",title:"sync.connectors.common.restrict-indexation.title",description:"sync.connectors.common.restrict-indexation.description",badge:"generic.badge.optional",fields:[{id:"cssSelector",label:"sync.connectors.common.css.label",help:"sync.connectors.common.css.help",type:"text",required:!1,placeholder:".main-content"},{id:"xpathSelector",label:"sync.connectors.common.xpath.label",help:"sync.connectors.common.xpath.help",type:"text",required:!1,placeholder:'//div[@id="main"]'}]},{id:"web-scraping-helpers",title:"sync.connectors.common.web-scraping-helpers.title",description:"sync.connectors.common.web-scraping-helpers.description",badge:"generic.badge.advanced",fields:[{id:"localExtract",label:"sync.connectors.common.local-extract.label",help:"sync.connectors.common.local-extract.help",type:"boolean",required:!1},{id:"keepQueryString",label:"sync.connectors.common.keep-querystring.label",help:"sync.connectors.common.keep-querystring.help",type:"boolean",required:!1},{id:"headers",label:"sync.connectors.common.headers.label",help:"sync.connectors.common.headers.help",type:"table",required:!1},{id:"cookies",label:"sync.connectors.common.cookies.label",help:"sync.connectors.common.cookies.help",type:"table",required:!1},{id:"localstorage",label:"sync.connectors.common.localstorage.label",help:"sync.connectors.common.localstorage.help",type:"table",required:!1}]}])}handleParameters(r){}getParametersValues(){return{}}}const fe={id:"folder",title:"Folder",logo:`${F}/folder.svg`,description:"Upload a folder from your device",factory:()=>new _e};class _e{constructor(){this.hasServerSideAuth=!1,this.isExternal=!1,this.allowToSelectFolders=!1,this.files=[],this.path="",this.canSyncSecurityGroups=!1}getStaticFolders(){return this.path?[{uuid:"",title:this.path,originalId:this.path,metadata:{},status:$.PENDING}]:[]}getParametersSections(){return(0,_.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 Ce={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 be},B="CONFLUENCE_TOKEN";class be{constructor(){this.hasServerSideAuth=!1,this.isExternal=!1,this.allowToSelectFolders=!0,this.canSyncSecurityGroups=!1}getParametersSections(){return(0,_.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(B,r.token)}getParametersValues(){return{token:localStorage.getItem(B)}}getStaticFolders(){return[]}}const ve={id:"rss",title:"RSS",logo:`${F}/rss.svg`,description:"Upload web pages from a RSS feed",permanentSyncOnly:!0,factory:()=>new Se};class Se{constructor(){this.hasServerSideAuth=!1,this.isExternal=!0,this.allowToSelectFolders=!1,this.canSyncSecurityGroups=!1}getStaticFolders(){return[{uuid:"",title:"RSS",originalId:"rss",metadata:{},status:$.PENDING}]}getParametersSections(){return(0,_.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 w{constructor(r,i,t){this.hasServerSideAuth=!0,this.isExternal=!0,this.allowToSelectFolders=!1,this.resumable=!1,this.canSyncSecurityGroups="gdrive"===r,this.allowToSelectFolders="gdrive"===r,this.name=r,this.id=i,this.path=t}getParametersSections(){return(0,_.of)([{id:"folder",title:"sync.connectors.oauth.folder.title",fields:[{id:"drive_id",label:"sync.connectors.oauth.drive.label",type:"text",required:!0},{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 xe=a(5512);const Fe={id:"sitefinity",title:"Sitefinity",logo:`${F}/sitefinity.svg`,description:"Progress Sitefinity CMS",permanentSyncOnly:!0,factory:()=>new Te};class Te{constructor(){this.hasServerSideAuth=!1,this.isExternal=!0,this.allowToSelectFolders=!1,this.canSyncSecurityGroups=!1}getStaticFolders(){return[{uuid:"",title:"Sitefinity",originalId:"SITEFINITY",metadata:{},status:$.PENDING}]}getParametersSections(){return(0,_.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 Ie extends w{constructor(r,i){super("sharepoint",r,i),this.allowToSelectFolders=!0}getParametersSections(){return(0,_.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}]}])}}var Re=a(9330);const L="http://localhost:8090",Y="NUCLIA_SYNC_SERVER",J="NUCLIA_SYNC_SERVER_TYPE";let P=(()=>{var n;class r{constructor(t,o,s,l,g){this.sdk=t,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 w("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 w("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 Ie(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 w("dropbox",m?.id||"",this.config.getOAuthServer())}},folder:{definition:fe},sitemap:{definition:me},confluence:{definition:Ce},rss:{definition:ve},sitefinity:{definition:Fe}},this.connectorsObs=new I.t(Object.values(this.connectors).map(m=>m.definition).filter(m=>!m.deprecated)).pipe((0,d.n)(m=>this.features.unstable.sitefinityConnector.pipe((0,p.T)(O=>m.filter(j=>O||"sitefinity"!==j.id))))),this._syncServer=new I.t({serverUrl:localStorage.getItem(Y)||L,type:localStorage.getItem(J)||"desktop"}),this.syncServer=this._syncServer.asObservable(),this._isServerDown=new I.t(!0),this._currentSyncId=new I.t(null),this._syncCache=new I.t({}),this._cacheUpdated=new I.t((new Date).toISOString()),this._isSyncing=new I.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 I.t(!1),this.useCloudSync=this._useCloudSync.asObservable(),(0,ge.p)([this.syncServer.pipe((0,f.s)(1)),this.features.unstable.cloudSyncService.pipe((0,f.s)(1))]).subscribe(([m,O])=>{"cloud"===m.type&&O&&this._useCloudSync.next(!0)})}getConnectorDefinition(t){return this.connectors[t]?.definition}getConnector(t,o){const s=this.connectors[t];s.instances||(s.instances={});const l=s.instances;return l[o]||(l[o]=s.definition.factory({id:o})),l[o]}getConnectorIdForProvider(t){return Object.entries(this.connectors).find(([,o])=>o.definition.oauth_provider===t||o.definition.apikey_provider===t)?.[0]}getCurrentSync(){return this.currentSyncId.pipe((0,v.p)(t=>!!t),(0,d.n)(t=>this.getSync(t)))}syncConfigtoISyncEntity(t){return{id:t.id,title:t.name,connector:{name:t.external_connection.provider,parameters:t},lastSyncGMT:void 0,disabled:!1,isCloud:!0}}getSync(t){const o=this._syncCache.getValue();return o[t]?(0,_.of)(o[t]):this._useCloudSync.getValue()?this.sdk.currentKb.pipe((0,f.s)(1),(0,d.n)(s=>s.syncManager.getConfig(t)),(0,p.T)(s=>({...this.syncConfigtoISyncEntity(s),kbId:s.kb_id,connectorId:this.getConnectorIdForProvider(s.external_connection.provider)}))):this.http.get(`${this._syncServer.getValue().serverUrl}/sync/${t}`,{headers:this.serverHeaders}).pipe((0,S.M)(s=>{o[t]=s,this._syncCache.next(o)}))}addSync(t){return this.sdk.currentKb.pipe((0,f.s)(1),(0,d.n)(o=>this.sdk.nuclia.options.standalone?(0,_.of)({...t,kb:{...this.sdk.nuclia.options,knowledgeBox:o.id}}):this.getNucliaKey(o).pipe((0,p.T)(s=>({...t,kb:{zone:this.sdk.nuclia.options.zone,backend:this.sdk.nuclia.options.backend,knowledgeBox:s.kbid,apiKey:s.token}})))),(0,d.n)(o=>this.http.post(`${this._syncServer.getValue().serverUrl}/sync`,o,{headers:this.serverHeaders})),(0,S.M)(()=>{const o=this._syncCache.getValue();o[t.id]=t,this._syncCache.next(o),this._cacheUpdated.next((new Date).toISOString())}),(0,p.T)(()=>{}))}getOAuthUrl(t){return this.sdk.currentKb.pipe((0,f.s)(1),(0,d.n)(o=>o.syncManager.createOAuthExternalConnection(t)),(0,p.T)(o=>o.authorize_url))}addExternalConnection(t,o){return this.sdk.currentKb.pipe((0,f.s)(1),(0,d.n)(s=>s.syncManager.createExternalConnection(t,o)))}addCloudSync(t){return this.sdk.currentKb.pipe((0,f.s)(1),(0,d.n)(o=>o.syncManager.createConfig(t)),(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(t,o,s){return this.http.patch(`${this._syncServer.getValue().serverUrl}/sync/${t}`,{...o,lastSyncGMT:s?"1970-01-01":void 0},{headers:this.serverHeaders}).pipe((0,S.M)(()=>{const l=this._syncCache.getValue();l[t]={...l[t],...o},this._syncCache.next(l),this._cacheUpdated.next((new Date).toISOString())}))}deleteSync(t){return(this._useCloudSync.getValue()?this.sdk.currentKb.pipe((0,f.s)(1),(0,d.n)(o=>o.syncManager.deleteConfig(t))):this.http.delete(`${this._syncServer.getValue().serverUrl}/sync/${t}`,{headers:this.serverHeaders})).pipe((0,S.M)(()=>{const o=this._syncCache.getValue();delete o[t],this._syncCache.next(o),this._cacheUpdated.next((new Date).toISOString())}))}getSyncsForKB(t,o){return o?this.sdk.currentKb.pipe((0,f.s)(1),(0,d.n)(s=>s.syncManager.getConfigs().pipe((0,p.T)(l=>l.filter(g=>g.kb_id===t).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,_.of)([]):this.http.get(`${this._syncServer.getValue().serverUrl}/sync/kb/${t}`).pipe((0,p.T)(l=>l.map(g=>({...g,kbId:t,connectorId:g.connector,connector:this.getConnector(g.connector,"")})).filter(g=>g.kbId===t)))))}getFiles(t){return this.http.get(`${this._syncServer.getValue().serverUrl}/sync/${this.getCurrentSyncId()}/files/search${t?`?query=${t}`:""}`)}getFolders(t){return this.http.get(`${this._syncServer.getValue().serverUrl}/sync/${this.getCurrentSyncId()}/folders`,{headers:this.serverHeaders})}getCloudFolders(t,o,s,l){return this.sdk.currentKb.pipe((0,d.n)(g=>g.syncManager.browse(t,o,s,l)))}canSelectFiles(t){const o=this._syncCache.getValue()[t];return o&&!("sitemap"===o.connector.name||"folder"===o.connector.name||"rss"===o.connector.name)}getNucliaKey(t){return t.createKeyForService({title:"Sync",role:"SCONTRIBUTOR"},this.getExpirationDate()).pipe((0,p.T)(o=>({...o,kbid:t.id})))}getExpirationDate(){const t=new Date;return t.setFullYear(t.getFullYear()+1),Math.floor(t.getTime()/1e3).toString()}serverStatus(t){return this.useCloudSync.pipe((0,d.n)(o=>o?(0,_.of)({running:!0}):this.http.get(`${t}/status`).pipe((0,X.W)(()=>(0,_.of)({running:!1,logs:["Server down"]})),(0,p.T)(s=>((s.logs||[]).forEach(l=>console.log("[SERVER]",l)),{running:s.running})))))}setSyncServer(t,o){localStorage.setItem(Y,t||""),localStorage.setItem(J,o),this._syncServer.next({serverUrl:t||"",type:o}),t&&this.serverStatus(t).subscribe(s=>{this.setServerStatus(!s.running)})}getCurrentSyncId(){return this._currentSyncId.getValue()}setCurrentSyncId(t){this._currentSyncId.next(t)}clearCurrentSourceId(){this._currentSyncId.next(null)}getLogs(t,o){return this._useCloudSync.getValue()?(0,_.of)([]):this.http.get(`${this._syncServer.getValue().serverUrl}/logs${t?"/"+t:""}${o?"/"+o:""}`).pipe((0,p.T)(s=>s.sort((l,g)=>{const m=(0,xe.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(t){t&&!this._isServerDown.value&&this.notificationService.pushNotifications([{type:"sync-server",data:[],timestamp:(new Date).toISOString(),unread:!0,failure:!0}]),this._isServerDown.next(t)}triggerSync(t,o=!1){return this._isSyncing.next({...this._isSyncing.value,[t]:!0}),(o?this.updateSync(t,{},!0).pipe((0,p.T)(()=>!0)):(0,_.of)(!0)).pipe((0,d.n)(()=>this.http.get(`${this._syncServer.getValue().serverUrl}/sync/execute/${t}`)),(0,S.M)(()=>this._isSyncing.next({...this._isSyncing.value,[t]:!1})),(0,X.W)(l=>(console.warn("Trigger sync failed:",l),this._isSyncing.next({...this._isSyncing.value,[t]:!1}),(0,_.of)())))}updateUseCloudSync(t){this._useCloudSync.next(t)}static#e=n=()=>(this.\u0275fac=function(o){return new(o||r)(c.KVO(C.ok),c.KVO(Re.Qq),c.KVO(C.M),c.KVO(C.JE),c.KVO(C.Dr))},this.\u0275prov=c.jDH({token:r,factory:r.\u0275fac,providedIn:"root"}))}return n(),r})();var e=a(3664);let Me=(()=>{var n;class r{constructor(){this.unsubscribeAll=new M.B,this.syncService=(0,c.WQX)(P)}ngOnInit(){let t=!1,o=0;(0,ue.O)(0,5e3).pipe((0,v.p)(()=>{const l=o>=(t?12:0);return o++,l}),(0,d.n)(()=>this.syncService.serverStatus(this.syncService.getSyncServer())),(0,k.Q)(this.unsubscribeAll)).subscribe(s=>{t=s.running,o=0,this.syncService.setServerStatus(!t)})}ngOnDestroy(){this.unsubscribeAll.next(),this.unsubscribeAll.complete()}static#e=n=()=>(this.\u0275fac=function(o){return new(o||r)},this.\u0275cmp=e.VBU({type:r,selectors:[["ng-component"]],decls:1,vars:0,template:function(o,s){1&o&&e.nrm(0,"router-outlet")},dependencies:[T.n3],encapsulation:2,changeDetection:0}))}return n(),r})();var R=a(7705),u=a(8743),ke=a(9874),E=a(4929);let $e=(()=>{var n;class r{constructor(){this.title="",this.logo="",this.disabled=!1,this.selectConnector=new e.bkB}static#e=n=()=>(this.\u0275fac=function(o){return new(o||r)},this.\u0275cmp=e.VBU({type:r,selectors:[["nsy-connector"]],inputs:{title:"title",logo:"logo",disabled:[2,"disabled","disabled",R.L39]},outputs:{selectConnector:"selectConnector"},decls:5,vars:3,consts:[[3,"cardClick","disabled"],[1,"connector"],["size","large",3,"path"]],template:function(o,s){1&o&&(e.j41(0,"pa-card",0),e.bIt("cardClick",function(g){return s.selectConnector.emit(g)}),e.j41(1,"div",1),e.nrm(2,"pa-icon",2),e.j41(3,"div"),e.EFF(4),e.k0s()()()),2&o&&(e.Y8G("disabled",s.disabled),e.R7$(2),e.Y8G("path",s.logo),e.R7$(2),e.JRh(s.title))},dependencies:[u.ALJ,ke.i,u.V3x,E.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 x=a(2200),h=a(9417),Q=a(8132),b=a(8018),y=a(4242),H=a(4572),G=a(3606),Pe=a(820),W=a(6812),z=a(3085),V=a(4899),Ee=a(7481),Oe=a(3257),je=a(6010),K=a(5472),Z=a(9435),q=a(3107),we=a(7839),Ge=a(4099),ee=a(4684),Ve=a(9122);const De=()=>({section:"activity"}),te=(n,r)=>r.id;function Xe(n,r){1&n&&(e.j41(0,"div",8)(1,"pa-radio",16),e.nI1(2,"translate"),e.j41(3,"span",10),e.EFF(4),e.nI1(5,"translate"),e.k0s()()(),e.nrm(6,"div",11)),2&n&&(e.R7$(),e.Y8G("help",e.bMT(2,2,"sync.home-page.setup-server.on-cloud.radio-help")),e.R7$(3),e.JRh(e.bMT(5,4,"sync.home-page.setup-server.on-cloud.radio-label")))}function Ne(n,r){1&n&&(e.j41(0,"nsi-dropdown-button",18),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"sync.home-page.setup-server.on-desktop.download-dropdown")," "))}function Ae(n,r){if(1&n&&(e.j41(0,"nsi-badge"),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nVh(3,Ne,3,3,"nsi-dropdown-button",18)),2&n){const i=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,2,"sync.badge.inactive")),e.R7$(2),e.vxM(i.downloadSyncAgentFeature?3:-1)}}function Ue(n,r){1&n&&(e.j41(0,"nsi-badge",17),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"sync.badge.active")))}function Be(n,r){if(1&n&&(e.nVh(0,Ae,4,4),e.nI1(1,"async"),e.vZN(2,Ue,3,3,"nsi-badge",17)),2&n){const i=e.XpG();e.vxM(e.bMT(1,1,i.inactiveServer)?0:2)}}function Le(n,r){1&n&&(e.j41(0,"nsi-badge"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"sync.badge.inactive")))}function Ye(n,r){1&n&&(e.j41(0,"nsi-badge",17),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"sync.badge.active")))}function Je(n,r){if(1&n&&(e.j41(0,"div",13),e.nVh(1,Le,3,3,"nsi-badge"),e.nI1(2,"async"),e.vZN(3,Ye,3,3,"nsi-badge",17),e.j41(4,"pa-input",19),e.EFF(5," Server URL "),e.k0s(),e.j41(6,"pa-button",20),e.EFF(7),e.nI1(8,"translate"),e.k0s()()),2&n){const i=e.XpG();e.R7$(),e.vxM(e.bMT(2,3,i.inactiveServer)?1:3),e.R7$(5),e.Y8G("disabled",!i.serverUrlChanged),e.R7$(),e.SpI(" ",e.bMT(8,5,"generic.save")," ")}}function Qe(n,r){if(1&n){const i=e.RV6();e.j41(0,"nsy-connector",21),e.nI1(1,"async"),e.nI1(2,"translate"),e.nI1(3,"async"),e.bIt("selectConnector",function(){const o=c.eBV(i).$implicit,s=e.XpG();return c.Njj(s.onSelectConnector(o))}),e.k0s()}if(2&n){const i=r.$implicit,t=e.XpG();e.Y8G("paTooltip",e.bMT(2,6,"cloud"!==t.syncAgentTypeControl.value&&e.bMT(1,4,t.inactiveServer)?"sync.home-page.add-sources.disabled-source-tooltip":""))("disabled","cloud"!==t.syncAgentTypeControl.value&&e.bMT(3,8,t.inactiveServer))("title",i.title)("logo",i.logo)}}function He(n,r){1&n&&(e.j41(0,"nsi-info-card",22),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"sync.home-page.sync-list.empty-info")))}function We(n,r){if(1&n&&(e.j41(0,"div",26),e.nrm(1,"pa-icon",34),e.EFF(2),e.k0s()),2&n){const i=r;e.R7$(),e.Y8G("path",i.logo),e.R7$(),e.SpI(" ",i.title," ")}}function ze(n,r){if(1&n){const i=e.RV6();e.j41(0,"pa-toggle",35),e.bIt("valueChange",function(o){c.eBV(i);const s=e.XpG().$implicit,l=e.XpG(3);return c.Njj(l.toggleSync(s.id,o))}),e.EFF(1),e.k0s()}if(2&n){const i=e.XpG().$implicit;e.Y8G("value",!i.disabled),e.R7$(),e.SpI(" ",i.disabled?"Off":"On"," ")}}function Ke(n,r){if(1&n&&e.nrm(0,"pa-datetime",29),2&n){const i=e.XpG().$implicit;e.Y8G("datetime",i.lastSyncGMT)}}function Ze(n,r){1&n&&e.EFF(0," \u2013 ")}function qe(n,r){if(1&n&&(e.j41(0,"pa-option",31),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const i=e.XpG().$implicit;e.Y8G("routerLink","./"+i.id+"/edit"),e.R7$(),e.SpI(" ",e.bMT(2,2,"sync.home-page.sync-list.menu.edit-folders")," ")}}function et(n,r){if(1&n&&(e.j41(0,"pa-option",32),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const i=e.XpG().$implicit;e.Y8G("routerLink","./"+i.id)("queryParams",e.lJ4(5,De)),e.R7$(),e.SpI(" ",e.bMT(2,3,"sync.home-page.sync-list.menu.activity-logs")," ")}}function tt(n,r){if(1&n){const i=e.RV6();e.j41(0,"pa-table-row")(1,"pa-table-cell")(2,"a",25),e.EFF(3),e.k0s()(),e.j41(4,"pa-table-cell"),e.nVh(5,We,3,2,"div",26),e.k0s(),e.j41(6,"pa-table-cell")(7,"div",27),e.EFF(8),e.k0s()(),e.j41(9,"pa-table-cell"),e.nVh(10,ze,2,2,"pa-toggle",28),e.nI1(11,"async"),e.k0s(),e.j41(12,"pa-table-cell")(13,"div",27),e.nVh(14,Ke,1,1,"pa-datetime",29)(15,Ze,1,0),e.k0s()(),e.j41(16,"pa-table-cell-menu")(17,"pa-button",30),e.EFF(18," Menu "),e.k0s(),e.j41(19,"pa-dropdown",null,0)(21,"pa-option",31),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.nVh(24,qe,3,4,"pa-option",31),e.nVh(25,et,3,6,"pa-option",32),e.nI1(26,"async"),e.j41(27,"pa-option",33),e.bIt("selectOption",function(){const o=c.eBV(i).$implicit,s=e.XpG(3);return c.Njj(s.deleteSync(o))}),e.EFF(28),e.nI1(29,"translate"),e.k0s()()()()}if(2&n){let i;const t=r.$implicit,o=e.sdS(20),s=e.XpG(3);e.R7$(2),e.Y8G("routerLink","./"+t.id),e.R7$(),e.SpI(" ",t.title," "),e.R7$(2),e.vxM((i=t.connectorId&&(null==s.connectors[t.connectorId]?null:s.connectors[t.connectorId].definition))?5:-1,i),e.R7$(3),e.JRh(t.totalSyncedResources),e.R7$(2),e.vxM(e.bMT(11,12,s.useCloudSync)?-1:10),e.R7$(4),e.vxM("1970-01-01"!==t.lastSyncGMT?14:15),e.R7$(3),e.Y8G("paPopup",o),e.R7$(4),e.Y8G("routerLink","./"+t.id+"/edit"),e.R7$(),e.SpI(" ",e.bMT(23,14,"sync.home-page.sync-list.menu.edit-settings")," "),e.R7$(2),e.vxM(null!=t.connector&&t.connector.allowToSelectFolders?24:-1),e.R7$(),e.vxM(e.bMT(26,16,s.useCloudSync)?-1:25),e.R7$(3),e.SpI(" ",e.bMT(29,18,"sync.home-page.sync-list.menu.delete")," ")}}function nt(n,r){if(1&n&&(e.j41(0,"pa-table",23),e.nrm(1,"pa-table-sortable-header",24),e.Z7z(2,tt,30,20,"pa-table-row",null,te),e.k0s()),2&n){const i=e.XpG(),t=e.XpG();e.R7$(),e.Y8G("cells",t.syncTableHeader),e.R7$(),e.Dyx(i)}}function ot(n,r){1&n&&e.nVh(0,He,3,3,"nsi-info-card",22)(1,nt,4,1,"pa-table",23),2&n&&e.vxM(0===r.length?0:1)}let it=(()=>{var n;class r{constructor(){this.router=(0,c.WQX)(T.Ix),this.currentRoute=(0,c.WQX)(T.nX),this.syncService=(0,c.WQX)(P),this.sdk=(0,c.WQX)(C.ok),this.toaster=(0,c.WQX)(y._g),this.modalService=(0,c.WQX)(y.w8),this.translate=(0,c.WQX)(b.c$),this.features=(0,c.WQX)(C.Dr),this.unsubscribeAll=new M.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,p.T)(t=>t.sort((o,s)=>o.title.localeCompare(s.title)))),this.connectorList=this._connectorList.pipe((0,p.T)(t=>t.filter(o=>!o.cloud))),this.cloudConnectorList=this._connectorList.pipe((0,p.T)(t=>t.filter(o=>o.cloud))),this.serverUrlBackup="",this.syncs=(0,H.z)([this.syncService.cacheUpdated,this.syncService.useCloudSync]).pipe((0,d.n)(([,t])=>this.sdk.currentKb.pipe((0,p.T)(o=>({kb:o,useCloud:t})))),(0,d.n)(({kb:t,useCloud:o})=>this.syncService.getSyncsForKB(t.id,o))),this.syncTableHeader=[new u.A3f({id:"name",label:"sync.home-page.sync-list.table-columns.name"}),new u.A3f({id:"connector",label:"sync.home-page.sync-list.table-columns.connector"}),new u.A3f({id:"resources",label:"sync.home-page.sync-list.table-columns.resources"}),new u.A3f({id:"sync",label:"sync.home-page.sync-list.table-columns.sync"}),new u.A3f({id:"latest-sync",label:"sync.home-page.sync-list.table-columns.latest-sync",sortable:!0}),new u.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,f.s)(1)).subscribe(t=>{this.syncAgentForm.patchValue(t),this.serverUrlBackup=t.serverUrl}),this.syncAgentTypeControl.valueChanges.pipe((0,k.Q)(this.unsubscribeAll)).subscribe(()=>this.saveSyncServer())}ngOnDestroy(){this.unsubscribeAll.next(),this.unsubscribeAll.complete()}saveSyncServer(){if(this.syncService.updateUseCloudSync("cloud"===this.syncAgentTypeControl.value),this.syncAgentForm.valid){const t=this.syncAgentForm.getRawValue();this.syncService.setSyncServer("server"===t.type?t.serverUrl:L,t.type)}}onSelectConnector(t){this.router.navigate(["./add",t.id],{relativeTo:this.currentRoute})}deleteSync(t){this.modalService.openConfirm({title:this.translate.instant("sync.confirm.deletion.title",{title:t.title}),description:"sync.confirm.deletion.description",isDestructive:!0,confirmLabel:"generic.delete"}).onClose.pipe((0,v.p)(o=>!!o),(0,d.n)(()=>this.syncService.deleteSync(t.id))).subscribe({error:()=>this.toaster.error("sync.details.toast.deletion-failed")})}toggleSync(t,o){this.syncService.updateSync(t,{disabled:!o}).subscribe({error:()=>this.toaster.error(o?"sync.details.toast.activating-failed":"sync.details.toast.disabling-failed")})}static#e=n=()=>(this.\u0275fac=function(o){return new(o||r)},this.\u0275cmp=e.VBU({type:r,selectors:[["ng-component"]],decls:59,vars:49,consts:[["syncMenu",""],[1,"page-spacing"],[1,"page-title"],[1,"page-description"],[1,"section-description"],[1,"title-l"],[1,"setup-sync-agent",3,"ngSubmit","formGroup"],["formControlName","type"],[1,"radio-config-row"],["value","desktop",3,"help"],[1,"title-m"],[1,"separator-line"],["value","server",3,"help"],[1,"inline-form"],[1,"connector-list"],[3,"paTooltip","disabled","title","logo"],["value","cloud",3,"help"],["kind","success"],["aspect","basic"],["formControlName","serverUrl",1,"server-url"],["type","submit",3,"disabled"],[3,"selectConnector","paTooltip","disabled","title","logo"],["icon","info"],["border","","columns","repeat(5, 1fr) 96px"],[3,"cells"],[1,"body-m","black-link",3,"routerLink"],[1,"logo-title"],[1,"body-s"],["labelOnRight","",3,"value"],[3,"datetime"],["icon","more-vertical","aspect","basic","size","small",3,"paPopup"],[3,"routerLink"],[3,"routerLink","queryParams"],["destructive","",3,"selectOption"],["size","small",3,"path"],["labelOnRight","",3,"valueChange","value"]],template:function(o,s){if(1&o&&(e.j41(0,"div",1)(1,"div")(2,"h1",2),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"p",3),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"section")(9,"div",4)(10,"div",5),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"div",3),e.EFF(14),e.nI1(15,"translate"),e.k0s()(),e.j41(16,"form",6),e.bIt("ngSubmit",function(){return s.saveSyncServer()}),e.j41(17,"pa-radio-group",7),e.nVh(18,Xe,7,6),e.nI1(19,"async"),e.j41(20,"div",8)(21,"pa-radio",9),e.nI1(22,"translate"),e.j41(23,"span",10),e.EFF(24),e.nI1(25,"translate"),e.k0s()(),e.nVh(26,Be,3,3),e.k0s(),e.nrm(27,"div",11),e.j41(28,"div",8)(29,"pa-radio",12),e.nI1(30,"translate"),e.j41(31,"span",10),e.EFF(32),e.nI1(33,"translate"),e.k0s()(),e.nVh(34,Je,9,7,"div",13),e.k0s()()()(),e.nrm(35,"div",11),e.j41(36,"section")(37,"div",4)(38,"div",5),e.EFF(39),e.nI1(40,"translate"),e.k0s(),e.j41(41,"div",3),e.EFF(42),e.nI1(43,"translate"),e.k0s()(),e.j41(44,"div",14),e.Z7z(45,Qe,4,10,"nsy-connector",15,te),e.nI1(47,"async"),e.nI1(48,"async"),e.k0s()(),e.j41(49,"section")(50,"div",4)(51,"div",5),e.EFF(52),e.nI1(53,"translate"),e.k0s(),e.j41(54,"div",3),e.EFF(55),e.nI1(56,"translate"),e.k0s()(),e.nVh(57,ot,2,1),e.nI1(58,"async"),e.k0s()()),2&o){let l;e.R7$(3),e.JRh(e.bMT(4,17,"navbar.sync")),e.R7$(3),e.JRh(e.bMT(7,19,"sync.home-page.description")),e.R7$(5),e.JRh(e.bMT(12,21,"sync.home-page.setup-server.title")),e.R7$(3),e.JRh(e.bMT(15,23,"sync.home-page.setup-server.description")),e.R7$(2),e.Y8G("formGroup",s.syncAgentForm),e.R7$(2),e.vxM(e.bMT(19,25,s.hasCloudSync)?18:-1),e.R7$(3),e.Y8G("help",e.bMT(22,27,"sync.home-page.setup-server.on-desktop.radio-help")),e.R7$(3),e.JRh(e.bMT(25,29,"sync.home-page.setup-server.on-desktop.radio-label")),e.R7$(2),e.vxM(s.syncAgentOnServer?-1:26),e.R7$(3),e.Y8G("help",e.bMT(30,31,"sync.home-page.setup-server.on-server.radio-help")),e.R7$(3),e.JRh(e.bMT(33,33,"sync.home-page.setup-server.on-server.radio-label")),e.R7$(2),e.vxM(s.syncAgentOnServer?34:-1),e.R7$(5),e.JRh(e.bMT(40,35,"sync.home-page.add-sources.title")),e.R7$(3),e.JRh(e.bMT(43,37,"sync.home-page.add-sources.description")),e.R7$(3),e.Dyx("cloud"!==s.syncAgentTypeControl.value?e.bMT(47,39,s.connectorList):e.bMT(48,41,s.cloudConnectorList)),e.R7$(7),e.JRh(e.bMT(53,43,"sync.home-page.sync-list.title")),e.R7$(3),e.JRh(e.bMT(56,45,"sync.home-page.sync-list.description")),e.R7$(2),e.vxM((l=e.bMT(58,47,s.syncs))?57:-1,l)}},dependencies:[x.MD,y.nS,$e,y.vY,u.Ymm,G.Q,u.Rx2,Pe.P,W.P,u.XgI,z.S,u.rkm,V.a,Ee.v,Oe.u,u.tml,je.d,h.X1,h.qT,h.BC,h.cb,h.j4,h.JD,b.h,u.EGN,K.O,Z.e,q.U,we.N,Ge.V,Q.Wk,u.V3x,E.R,u.Pa6,ee.Z,y.IA,u.OgD,Ve.w,x.Jj,b.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%)}.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 rt=a(292),st=a(3060),ct=a(6851),lt=a(2071),at=a(5814),dt=a(9285),ne=a(6420);const pt=()=>[],oe=(n,r)=>r.id,ut=(n,r)=>r.value;function ht(n,r){if(1&n&&(e.j41(0,"nsi-two-columns-configuration-item",1)(1,"div",3)(2,"pa-input",4),e.EFF(3),e.nI1(4,"translate"),e.k0s()()()),2&n){const i=e.XpG(2);e.Y8G("noTopBorder",i.noTopBorder),e.R7$(3),e.JRh(e.bMT(4,2,"sync.add-page.connector-name.field-label"))}}function gt(n,r){if(1&n&&(e.j41(0,"pa-input",6),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const i=e.XpG().$implicit;e.Y8G("formControlName",i.id)("placeholder",i.placeholder)("type",i.secret?"password":"text")("help",i.help),e.R7$(),e.SpI(" ",e.bMT(2,5,i.label)," ")}}function mt(n,r){if(1&n&&(e.j41(0,"pa-toggle",7),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const i=e.XpG().$implicit;e.Y8G("formControlName",i.id)("help",i.help),e.R7$(),e.SpI(" ",e.bMT(2,3,i.label)," ")}}function yt(n,r){if(1&n&&(e.j41(0,"pa-option",11),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const i=r.$implicit;e.Y8G("disabled",i.disabled)("value",i.value),e.R7$(),e.SpI(" ",e.bMT(2,3,i.label)," ")}}function ft(n,r){if(1&n&&(e.j41(0,"pa-select",8),e.Z7z(1,yt,3,5,"pa-option",11,ut),e.k0s()),2&n){const i=e.XpG().$implicit;e.Y8G("formControlName",i.id)("label",i.label)("help",i.help),e.R7$(),e.Dyx(i.options)}}function _t(n,r){if(1&n&&(e.j41(0,"pa-textarea",9),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const i=e.XpG().$implicit;e.Y8G("formControlName",i.id)("help",i.help)("rows",4),e.R7$(),e.SpI(" ",e.bMT(2,4,i.label)," ")}}function Ct(n,r){if(1&n&&(e.j41(0,"p"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const i=e.XpG(2).$implicit;e.R7$(),e.JRh(e.bMT(2,1,i.help))}}function bt(n,r){1&n&&(e.j41(0,"nsi-info-card",13),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"sync.form-validation.extra-parameters-incomplete")," "))}function vt(n,r){if(1&n){const i=e.RV6();e.j41(0,"div",10)(1,"label"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nVh(4,Ct,3,3,"p"),e.j41(5,"app-parameters-table",12),e.bIt("valuesChange",function(o){c.eBV(i);const s=e.XpG().$implicit,l=e.XpG(4);return c.Njj(l.updateTable(s.id,o))}),e.k0s(),e.nVh(6,bt,3,3,"nsi-info-card",13),e.k0s()}if(2&n){const i=e.XpG().$implicit,t=e.XpG(4);e.R7$(2),e.JRh(e.bMT(3,4,i.label)),e.R7$(2),e.vxM(i.help?4:-1),e.R7$(),e.Y8G("values",t.tables[i.id]||e.lJ4(6,pt)),e.R7$(),e.vxM(t.invalidTables.includes(i.id)?6:-1)}}function St(n,r){if(1&n&&e.nVh(0,gt,3,7,"pa-input",6)(1,mt,3,5,"pa-toggle",7)(2,ft,3,3,"pa-select",8)(3,_t,3,6,"pa-textarea",9)(4,vt,7,7,"div",10),2&n){let i;e.vxM("text"===(i=r.$implicit.type)?0:"boolean"===i?1:"select"===i?2:"textarea"===i?3:"table"===i?4:-1)}}function xt(n,r){if(1&n&&(e.j41(0,"nsi-two-columns-configuration-item",5)(1,"div",3),e.Z7z(2,St,5,1,null,null,oe),e.k0s()()),2&n){const i=e.XpG().$implicit;e.Y8G("badge",i.badge)("itemTitle",i.title)("description",i.description||""),e.R7$(2),e.Dyx(i.fields)}}function Ft(n,r){if(1&n&&e.nVh(0,xt,4,3,"nsi-two-columns-configuration-item",5),2&n){const i=r.$implicit,t=e.XpG(2);e.vxM("credentials"===i.id&&t.enterCredentials&&!t.useOAuth||"credentials"!==i.id&&"folder"!==i.id&&!t.enterCredentials?0:-1)}}function Tt(n,r){1&n&&(e.j41(0,"nsi-two-columns-configuration-item",17)(1,"div",15)(2,"pa-toggle",38),e.EFF(3),e.nI1(4,"translate"),e.k0s()()()),2&n&&(e.R7$(3),e.SpI(" ",e.bMT(4,1,"sync.add-page.security-group.toggle-label")," "))}function It(n,r){if(1&n){const i=e.RV6();e.j41(0,"nsi-label",39),e.bIt("removeLabel",function(){const o=c.eBV(i).$implicit,s=e.XpG(3);return c.Njj(s.removeLabel(o))}),e.EFF(1),e.k0s()}if(2&n){const i=r.$implicit;e.Y8G("color",i.color),e.R7$(),e.SpI(" ",i.label," ")}}function Rt(n,r){if(1&n){const i=e.RV6();e.j41(0,"nsi-label",40),e.bIt("removeLabel",function(){const o=c.eBV(i).$implicit,s=e.XpG(3);return c.Njj(s.removeExtension(o))}),e.EFF(1),e.k0s()}if(2&n){const i=r.$implicit;e.R7$(),e.SpI(" ",i," ")}}function Mt(n,r){if(1&n){const i=e.RV6();e.j41(0,"nsi-two-columns-configuration-item",14)(1,"div",15)(2,"app-extraction-select",16),e.bIt("extractConfigChange",function(o){c.eBV(i);const s=e.XpG(2);return c.Njj(s.updateExtractStrategy(o))}),e.k0s()()(),e.nVh(3,Tt,5,3,"nsi-two-columns-configuration-item",17),e.j41(4,"nsi-two-columns-configuration-item",18)(5,"div",3)(6,"div",19)(7,"app-label-dropdown",20),e.nI1(8,"async"),e.nI1(9,"async"),e.bIt("selectionChange",function(o){c.eBV(i);const s=e.XpG(2);return c.Njj(s.updateLabelSelection(o))}),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"span",21),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"pa-button",22),e.bIt("click",function(){c.eBV(i);const o=e.XpG(2);return c.Njj(o.createLabelSet())}),e.EFF(16),e.nI1(17,"translate"),e.k0s()(),e.j41(18,"div",23),e.Z7z(19,It,2,2,"nsi-label",24,e.fX1),e.k0s()(),e.j41(21,"div",25)(22,"pa-toggle",26),e.EFF(23),e.nI1(24,"translate"),e.k0s()()(),e.j41(25,"nsi-two-columns-configuration-item",27)(26,"div",3)(27,"nsi-info-card"),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.j41(30,"div",28)(31,"div",29)(32,"pa-select",30)(33,"pa-option",31),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.j41(36,"pa-option",32),e.EFF(37),e.nI1(38,"translate"),e.k0s()(),e.j41(39,"pa-input",33),e.EFF(40),e.nI1(41,"translate"),e.k0s()(),e.j41(42,"div",23),e.Z7z(43,Rt,2,1,"nsi-label",34,e.fX1),e.k0s(),e.j41(45,"div",35)(46,"label"),e.EFF(47),e.nI1(48,"translate"),e.k0s(),e.j41(49,"div",29),e.nrm(50,"pa-date-picker",36),e.nI1(51,"translate"),e.nrm(52,"pa-date-picker",37),e.nI1(53,"translate"),e.k0s()()()()()}if(2&n){const i=e.XpG(2);e.R7$(2),e.Y8G("onlyExtract",!0)("extractConfig",i.extractStrategy),e.R7$(),e.vxM(i.connector.canSyncSecurityGroups?3:-1),e.R7$(4),e.Y8G("labelSets",e.bMT(8,17,i.labelSets))("selection",i.labelSelection)("disabled",!1===e.bMT(9,19,i.hasLabelSet)),e.R7$(3),e.SpI(" ",e.bMT(11,21,"sync.add-page.add-labels.select-labels")," "),e.R7$(3),e.JRh(e.bMT(14,23,"generic.or")),e.R7$(3),e.SpI(" ",e.bMT(17,25,"sync.add-page.add-labels.create-labelset")," "),e.R7$(3),e.Dyx(i.labelSelection),e.R7$(4),e.SpI(" ",e.bMT(24,27,"sync.add-page.preserve-labels.toggle-label")," "),e.R7$(5),e.JRh(e.bMT(29,29,"sync.add-page.filter-resources.file-extension.info")),e.R7$(6),e.SpI(" ",e.bMT(35,31,"sync.add-page.filter-resources.file-extension.include")," "),e.R7$(3),e.SpI(" ",e.bMT(38,33,"sync.add-page.filter-resources.file-extension.exclude")," "),e.R7$(3),e.SpI(" ",e.bMT(41,35,"sync.add-page.filter-resources.file-extension.label")," "),e.R7$(3),e.Dyx(i.extensionList),e.R7$(4),e.JRh(e.bMT(48,37,"sync.add-page.filter-resources.modification-date.label")),e.R7$(3),e.Y8G("label",e.bMT(51,39,"sync.add-page.filter-resources.modification-date.from")),e.R7$(2),e.Y8G("label",e.bMT(53,41,"sync.add-page.filter-resources.modification-date.to"))}}function kt(n,r){if(1&n&&(e.j41(0,"form",0),e.nVh(1,ht,5,4,"nsi-two-columns-configuration-item",1),e.qex(2,2),e.Z7z(3,Ft,1,1,null,null,oe),e.nI1(5,"async"),e.bVm(),e.nVh(6,Mt,54,43),e.k0s()),2&n){const i=e.XpG();e.Y8G("formGroup",i.form),e.R7$(),e.vxM(i.enterCredentials?-1:1),e.R7$(2),e.Dyx(e.bMT(5,3,i.connector.getParametersSections())),e.R7$(3),e.vxM(i.isCloud?-1:6)}}const $t=new RegExp(/[^a-z0-9_-]/g);let ie=(()=>{var n;class r{constructor(){this.labelService=(0,c.WQX)(C.xQ),this.modalService=(0,c.WQX)(y.w8),this.cdr=(0,c.WQX)(R.gRc),this.unsubscribeAll=new M.B,this.useOAuth=!1,this.enterCredentials=!1,this.isCloud=!1,this.noTopBorder=!1,this.validForm=new e.bkB,this.configurationChange=new e.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(t){if(t){this.connectorParametersBackup=t.connector.parameters;const o={extensions:t.filters?.fileExtensions?.extensions||"",extensionUsage:t.filters?.fileExtensions?.exclude?"exclude":"include",from:t.filters?.modified?.from||"",to:t.filters?.modified?.to||""};this.form.patchValue({name:t.title,syncSecurityGroups:t.syncSecurityGroups,filterResources:o,preserveLabels:t.preserveLabels}),this.labelSelection=t.labels||[],this.extensionList=this.formatExtensionList(o.extensions),t.extract_strategy&&(this.extractStrategy=t.extract_strategy),t.connector.parameters&&Object.entries(t.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(t=>{t.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,k.Q)(this.unsubscribeAll)).subscribe(t=>this.extensionList=this.formatExtensionList(t)),this.form.valueChanges.pipe((0,k.Q)(this.unsubscribeAll)).subscribe(()=>{this.validForm.emit(this.form.valid),this.emitSyncEntity()})}ngOnDestroy(){this.unsubscribeAll.next(),this.unsubscribeAll.complete()}updateTable(t,o){this.tables[t]=o,o.some(s=>!(s.value.trim()&&s.key.trim()||!s.value.trim()&&!s.key.trim()))?this.invalidTables.includes(t)||this.invalidTables.push(t):this.invalidTables.includes(t)&&(this.invalidTables=this.invalidTables.filter(s=>s!==t)),this.cdr.markForCheck(),this.emitSyncEntity()}createLabelSet(){this.modalService.openModal(C.Tv,new u.S6u({data:{kind:rt.po.RESOURCES}}))}updateLabelSelection(t){this.labelSets.pipe((0,f.s)(1),(0,v.p)(o=>!!o),(0,p.T)(o=>o)).subscribe(o=>{this.labelSelection=t.map(s=>({...s,color:o[s.labelset]?.color})),this.emitSyncEntity()})}removeExtension(t){const o=this.extensionList.filter(s=>s!==t);this.extensionsControl.patchValue(o.join(", "))}removeLabel(t){this.labelSelection=this.labelSelection.filter(o=>!(o.labelset===t.labelset&&o.label===t.label)),this.emitSyncEntity()}formatExtensionList(t){return t&&t.length>0?t.split(",").map(o=>o.trim()).filter(o=>!!o):[]}emitSyncEntity(){if(!this.connectorId)return;const t=this.form.getRawValue(),o=t.name,s=(Math.random()+1).toString(36).substring(7),l=`${this.kbId}-${o?.toLowerCase().replace($t,"-")}-${s}`,g={fileExtensions:t.filterResources.extensions?{extensions:t.filterResources.extensions,exclude:"exclude"===t.filterResources.extensionUsage}:void 0,modified:t.filterResources.from||t.filterResources.to?{from:t.filterResources.from||void 0,to:t.filterResources.to||void 0}:void 0},m=Object.entries(t.extra||{}).reduce((D,[N,A])=>({...D,[N]:A}),{}),O=Object.entries(this.tables).reduce((D,[N,A])=>(D[N]=A.filter(pe=>!(!pe.key.trim()||!pe.value.trim())),D),{}),j={id:l,title:o,labels:this.labelSelection,preserveLabels:t.preserveLabels||!1,filters:g,connector:{name:this.connectorId,parameters:{...this.connectorParametersBackup,...O,...m}}};null!==t.syncSecurityGroups&&(j.syncSecurityGroups=t.syncSecurityGroups),j.extract_strategy=this.extractStrategy,this.configurationChange.emit(j)}updateExtractStrategy(t){this.extractStrategy=t,this.validForm.emit(this.form.valid),this.emitSyncEntity()}static#e=n=()=>(this.\u0275fac=function(o){return new(o||r)},this.\u0275cmp=e.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",R.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&&e.nVh(0,kt,7,5,"form",0),2&o&&e.vxM(s.connector?0:-1)},dependencies:[x.MD,y.IA,y._8,h.X1,h.qT,h.BC,h.cb,h.j4,h.JD,h.$R,u.XgI,z.S,ct.w,lt.Q,W.P,C.Qy,C.Bo,at.L,u.Ymm,G.Q,b.h,u.OYn,dt.I,y.OE,ne.U,u.rkm,V.a,st.RxD,x.Jj,b.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%)}.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 re=a(7670);const se=(n,r)=>r.id;function Pt(n,r){1&n&&(e.j41(0,"div",1),e.nrm(1,"nsi-spinner"),e.k0s())}function Et(n,r){if(1&n){const i=e.RV6();e.j41(0,"li"),e.EFF(1),e.j41(2,"nsi-button-mini",2),e.bIt("click",function(){const o=c.eBV(i).$implicit,s=e.XpG(2);return c.Njj(s.browseDrive(o))}),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}if(2&n){const i=r.$implicit;e.R7$(),e.SpI(" ",i.name," "),e.R7$(2),e.JRh(e.bMT(4,2,"sync.cloud-folder.browse"))}}function Ot(n,r){if(1&n&&(e.j41(0,"ul"),e.Z7z(1,Et,5,4,"li",null,se),e.k0s()),2&n){const i=e.XpG();e.R7$(),e.Dyx(i.drives)}}function jt(n,r){if(1&n){const i=e.RV6();e.j41(0,"li"),e.EFF(1),e.j41(2,"nsi-button-mini",5),e.bIt("click",function(){const o=c.eBV(i).$implicit,s=e.XpG(2);return c.Njj(s.browseFolder(o.path))}),e.k0s()()}if(2&n){const i=r.$implicit;e.R7$(),e.SpI(" ",i.name," ")}}function wt(n,r){if(1&n){const i=e.RV6();e.j41(0,"div",3)(1,"h3"),e.EFF(2),e.k0s(),e.j41(3,"nsi-button-mini",2),e.bIt("click",function(){c.eBV(i);const o=e.XpG();return c.Njj(o.selectFolder())}),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"nsi-button-mini",4),e.bIt("click",function(){c.eBV(i);const o=e.XpG();return c.Njj(o.back())}),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"ul"),e.Z7z(10,jt,3,1,"li",null,se),e.k0s()}if(2&n){const i=e.XpG();e.R7$(2),e.Lme("",i.selectedDrive.name," ",i.currentPath),e.R7$(2),e.JRh(e.bMT(5,4,"sync.cloud-folder.select")),e.R7$(3),e.SpI(" ",e.bMT(8,6,"sync.cloud-folder.back")," "),e.R7$(3),e.Dyx(i.folders)}}let Gt=(()=>{var n;class r{constructor(){this.externalConnectorId="",this.selection=new e.bkB,this.selectedDrive=void 0,this.currentPath=void 0,this.drives=[],this.folders=[],this.cdr=(0,c.WQX)(R.gRc),this.syncService=(0,c.WQX)(P),this.loading=!1}ngOnInit(){this.loadFolders()}loadFolders(t,o){this.externalConnectorId&&(this.loading=!0,this.cdr.markForCheck(),this.syncService.getCloudFolders(this.externalConnectorId,t,o).subscribe(s=>{s.drives&&(this.drives=s.drives),this.folders=s.folders||[],this.loading=!1,this.cdr.markForCheck()}))}browseDrive(t){this.selectedDrive=t,this.loadFolders(t.id)}browseFolder(t){this.selectedDrive&&(this.currentPath=t,this.loadFolders(this.selectedDrive.id,t))}back(){if(this.currentPath){const t=this.currentPath.split("/");if(2===t.length&&this.selectedDrive&&(this.currentPath=void 0,this.browseDrive(this.selectedDrive)),t.length>2){const o=t.slice(0,length-1).join("/");this.browseFolder(o)}}else this.selectedDrive=void 0,this.loadFolders()}selectDrive(t){this.selection.emit({drive_id:t.id,sync_root_path:""})}selectFolder(){this.selectedDrive&&this.selection.emit({drive_id:this.selectedDrive.id,sync_root_path:this.currentPath||""})}static#e=n=()=>(this.\u0275fac=function(o){return new(o||r)},this.\u0275cmp=e.VBU({type:r,selectors:[["nsy-cloud-folder"]],inputs:{externalConnectorId:"externalConnectorId"},outputs:{selection:"selection"},decls:4,vars:2,consts:[[1,"container"],[1,"loading-shade"],[3,"click"],[1,"header"],["icon","undo",3,"click"],["icon","chevron-down",3,"click"]],template:function(o,s){1&o&&(e.j41(0,"div",0),e.nVh(1,Pt,2,0,"div",1),e.nVh(2,Ot,3,0,"ul")(3,wt,12,8),e.k0s()),2&o&&(e.R7$(),e.vxM(s.loading?1:-1),e.R7$(),e.vxM(s.selectedDrive?3:2))},dependencies:[x.MD,y.rf,b.h,y.J4,re.t,b.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%)}.container[_ngcontent-%COMP%]{margin-top:1rem}.loading-shade[_ngcontent-%COMP%]{position:fixed;inset:0;background:#00000026;display:flex;align-items:center;justify-content:center;z-index:120}.header[_ngcontent-%COMP%]{display:flex}.header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-right:1rem}ul[_ngcontent-%COMP%]{padding:0}li[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:.5rem}li[_ngcontent-%COMP%] nsi-button-mini[_ngcontent-%COMP%]{margin-left:.5rem}']}))}return n(),r})();const Vt=n=>({connector:n});function Dt(n,r){if(1&n){const i=e.RV6();e.j41(0,"div",2)(1,"pa-toggle",6),e.mxI("valueChange",function(o){c.eBV(i);const s=e.XpG(3);return e.DH7(s.useOAuth,o)||(s.useOAuth=o),c.Njj(o)}),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}if(2&n){const i=e.XpG(3);e.R7$(),e.R50("value",i.useOAuth),e.R7$(),e.SpI(" ",e.bMT(3,2,"sync.add-page.use-oauth")," ")}}function Xt(n,r){if(1&n&&(e.j41(0,"div"),e.nVh(1,Dt,4,4,"div",2),e.j41(2,"h1",3),e.nrm(3,"pa-icon",4),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"p",5),e.EFF(7),e.nI1(8,"translate"),e.k0s()()),2&n){const i=r,t=e.XpG();e.R7$(),e.vxM(i.oauth_provider&&i.apikey_provider?1:-1),e.R7$(2),e.Y8G("path",i.logo),e.R7$(),e.SpI(" ",e.i5U(5,4,"sync.add-page.title",e.eq3(9,Vt,i.title))," "),e.R7$(3),e.JRh(e.bMT(8,7,"sync.add-page.description."+t))}}function Nt(n,r){if(1&n&&(e.nVh(0,Xt,9,11,"div"),e.nI1(1,"async")),2&n){let i;const t=e.XpG();e.vxM((i=e.bMT(1,1,t.connectorDefinition))?0:-1,i)}}function At(n,r){1&n&&e.nrm(0,"nsi-spinner")}function Ut(n,r){if(1&n){const i=e.RV6();e.j41(0,"nsy-cloud-folder",11),e.bIt("selection",function(o){c.eBV(i);const s=e.XpG(3);return c.Njj(s.selectFolder(o))}),e.k0s()}if(2&n){const i=e.XpG(3);e.Y8G("externalConnectorId",i.externalConnectorId)}}function Bt(n,r){if(1&n){const i=e.RV6();e.j41(0,"nsy-configuration-form",9),e.nI1(1,"async"),e.nI1(2,"async"),e.nI1(3,"async"),e.nI1(4,"async"),e.bIt("configurationChange",function(o){c.eBV(i);const s=e.XpG(2);return c.Njj(s.updateConfiguration(o))})("validForm",function(o){c.eBV(i);const s=e.XpG(2);return c.Njj(s.validForm=o)}),e.k0s(),e.nVh(5,Ut,1,1,"nsy-cloud-folder",10)}if(2&n){const i=e.XpG(),t=e.XpG();e.Y8G("useOAuth",t.useOAuth)("enterCredentials",!!e.bMT(1,8,t.isCloud)&&t.enterCredentials)("sync",t.sync)("kbId",e.bMT(2,10,t.kbId))("connector",i)("connectorId",e.bMT(3,12,t.connectorId))("isCloud",!!e.bMT(4,14,t.isCloud)),e.R7$(5),e.vxM(t.externalConnectorId?5:-1)}}function Lt(n,r){if(1&n){const i=e.RV6();e.j41(0,"pa-button",12),e.bIt("click",function(){c.eBV(i);const o=e.XpG(2);return c.Njj(o.authenticate())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const i=e.XpG(2);e.Y8G("disabled",!i.enterCredentials&&!i.validForm||i.saving),e.R7$(),e.SpI(" ",e.bMT(2,2,"sync.add-page.footer.auth-button")," ")}}function Yt(n,r){if(1&n){const i=e.RV6();e.j41(0,"pa-button",12),e.bIt("click",function(){c.eBV(i);const o=e.XpG(2);return c.Njj(o.save())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const i=e.XpG(),t=e.XpG();e.Y8G("disabled",!t.validForm||i.allowToSelectFolders&&!t.selectedFolder||t.saving),e.R7$(),e.SpI(" ",e.bMT(2,2,"sync.add-page.footer.save-button")," ")}}function Jt(n,r){if(1&n){const i=e.RV6();e.j41(0,"div"),e.nVh(1,At,1,0,"nsi-spinner")(2,Bt,6,16),e.j41(3,"nsi-sticky-footer")(4,"pa-button",7),e.bIt("click",function(){c.eBV(i);const o=e.XpG();return c.Njj(o.cancel())}),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.nVh(7,Lt,3,4,"pa-button",8),e.nI1(8,"async"),e.vZN(9,Yt,3,4,"pa-button",8),e.k0s()()}if(2&n){const i=e.XpG();e.R7$(),e.vxM(i.loading?1:2),e.R7$(4),e.SpI(" ",e.bMT(6,3,"generic.cancel")," "),e.R7$(2),e.vxM(e.bMT(8,5,i.isCloud)&&i.enterCredentials?7:9)}}const ce="PENDING_NEW_CONNECTOR";let le=(()=>{var n;class r{constructor(){this.router=(0,c.WQX)(T.Ix),this.currentRoute=(0,c.WQX)(T.nX),this.sdk=(0,c.WQX)(C.ok),this.syncService=(0,c.WQX)(P),this.modalService=(0,c.WQX)(y.w8),this.toaster=(0,c.WQX)(y._g),this.cdr=(0,c.WQX)(R.gRc),this.connectorId=this.currentRoute.params.pipe((0,v.p)(t=>t.connector),(0,p.T)(t=>t.connector)),this.connectorDefinition=this.connectorId.pipe((0,p.T)(t=>this.syncService.getConnectorDefinition(t))),this.isCloud=this.connectorDefinition.pipe((0,p.T)(t=>!!t.cloud)),this.enterCredentials=!0,this.externalConnectorId="",this.connector=this.connectorId.pipe((0,p.T)(t=>this.syncService.getConnector(t,""))),this.kbId=this.sdk.currentKb.pipe((0,p.T)(t=>t.id)),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)(t=>!!t.syncId),(0,f.s)(1)).subscribe(t=>{this.externalConnectorId=t.syncId,this.enterCredentials=!1,localStorage.removeItem(ce)})}cancel(){this.syncId?this.modalService.openConfirm({title:"sync.confirm.cancel-oauth.title",description:"sync.confirm.cancel-oauth.description",isDestructive:!0,confirmLabel:"sync.confirm.cancel-oauth.confirm-label",cancelLabel:"sync.confirm.cancel-oauth.cancel-label"}).onClose.pipe((0,v.p)(t=>!!t),(0,d.n)(()=>this.syncService.deleteSync(this.syncId))).subscribe({next:()=>this.router.navigate([this.backPath],{relativeTo:this.currentRoute})}):this.router.navigate([this.backPath],{relativeTo:this.currentRoute})}authenticate(){this.saving=!0,this.cdr.markForCheck(),this.connectorDefinition.pipe((0,f.s)(1),(0,d.n)(t=>!t.oauth_provider||!this.useOAuth&&t.apikey_provider?t.cloud&&t.apikey_provider&&this.configuration?this.syncService.addExternalConnection(t.apikey_provider,this.configuration.connector.parameters).pipe((0,S.M)(o=>{this.externalConnectorId=o.id,this.enterCredentials=!1,this.cdr.markForCheck()})):(0,_.of)(void 0):this.syncService.getOAuthUrl(t.oauth_provider).pipe((0,p.T)(o=>{throw localStorage.setItem(ce,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 t=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(t).pipe((0,d.n)(o=>this._syncCreationDone(o))).subscribe({error:o=>this._errorHandler(o)})}updateConfiguration(t){this.configuration=t}updateSelection(t){this.folderSelection=t}_createSync(t){return this.connectorDefinition.pipe((0,f.s)(1),(0,d.n)(o=>{const s=o.cloud;if(s){if(!this.externalConnectorId)throw"No external connection id";if(!this.selectedFolder)throw"No folder selected";return this.syncService.addCloudSync({name:t.title,external_connection_id:this.externalConnectorId,...this.selectedFolder}).pipe((0,p.T)(l=>(this.syncService.setCurrentSyncId(l.id),l.id)))}return this.syncService.addSync(t).pipe((0,S.M)(()=>this.syncService.setCurrentSyncId(t.id)),(0,d.n)(()=>{const l=this.syncService.getConnector(t.connector.name,t.id);return l.allowToSelectFolders||s?(0,_.of)(t.id):("function"==typeof l.handleParameters&&l.handleParameters(t.connector.parameters),this.syncService.updateSync(t.id,{foldersToSync:l.getStaticFolders()}).pipe((0,p.T)(()=>t.id)))}))}))}performOAuth(t){t&&(window.location.href=t)}_syncCreationDone(t){return(0,_.of)(!0).pipe((0,S.M)(()=>{let o=this.syncId||location.pathname.includes("/sync/add/")?`../../../${t}`:`../../${t}`;if(location.pathname.includes("/sync/add/")){const s=location.pathname.split("/");o=s.length-s.lastIndexOf("add")===3?`../../../${t}`:`../../${t}`}this.router.navigate([o],{relativeTo:this.currentRoute})}),(0,d.n)(()=>(this.toaster.success("sync.details.toast.triggering-sync-success"),this.syncService.triggerSync(t).pipe((0,X.W)(()=>(this.toaster.error("sync.details.toast.triggering-sync-failed"),(0,_.of)()))))))}_errorHandler(t){this.saving=!1,console.warn(t),this.toaster.error("sync.add-page.toast.generic-error")}selectFolder(t){this.selectedFolder=t,this.cdr.markForCheck()}static#e=n=()=>(this.\u0275fac=function(o){return new(o||r)},this.\u0275cmp=e.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"],["aspect","basic",3,"click"],["kind","primary",3,"disabled"],[3,"configurationChange","validForm","useOAuth","enterCredentials","sync","kbId","connector","connectorId","isCloud"],[3,"externalConnectorId"],[3,"selection","externalConnectorId"],["kind","primary",3,"click","disabled"]],template:function(o,s){if(1&o&&(e.j41(0,"div",0)(1,"nsi-back-button",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nVh(4,Nt,2,3),e.nI1(5,"async"),e.nVh(6,Jt,10,7,"div"),e.nI1(7,"async"),e.k0s()),2&o){let l,g;e.R7$(),e.Y8G("link",s.backPath),e.R7$(),e.SpI(" ",e.bMT(3,4,"sync.add-page.back-button")," "),e.R7$(2),e.vxM((l=e.bMT(5,6,s.connectorId))?4:-1,l),e.R7$(2),e.vxM((g=e.bMT(7,8,s.connector))?6:-1,g)}},dependencies:[x.MD,y.Xp,u.Ymm,G.Q,u.V3x,E.R,y.o3,b.h,ie,y.J4,re.t,u.rkm,V.a,Gt,x.Jj,b.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%)}.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 Qt=a(4668),Ht=a(2885);const Wt=["activitySection"],ae=(n,r)=>r.id;function zt(n,r){if(1&n&&(e.j41(0,"div",3)(1,"label"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",14),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.nrm(7,"div",10)),2&n){const i=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,2,"sync.details.settings.synchronize-security-groups")),e.R7$(3),e.SpI(" ",e.bMT(6,4,i.sync.syncSecurityGroups?"sync.details.settings.boolean.true":"sync.details.settings.boolean.false")," ")}}function Kt(n,r){if(1&n&&(e.j41(0,"nsi-label",12),e.EFF(1),e.k0s()),2&n){const i=r.$implicit;e.Y8G("color",i.color),e.R7$(),e.SpI(" ",i.label," ")}}function Zt(n,r){1&n&&e.EFF(0," \u2013 ")}function qt(n,r){if(1&n&&(e.j41(0,"nsi-label",15),e.EFF(1),e.k0s()),2&n){const i=r.$implicit;e.R7$(),e.SpI(" ",i," ")}}function en(n,r){1&n&&e.EFF(0," \u2013 ")}function tn(n,r){1&n&&(e.j41(0,"div",11),e.Z7z(1,qt,2,1,"nsi-label",15,e.fX1,!1,en,1,0),e.k0s()),2&n&&(e.R7$(),e.Dyx(r.extensions.split(", ")))}function nn(n,r){1&n&&e.EFF(0," \u2013 ")}function on(n,r){if(1&n&&(e.EFF(0),e.nI1(1,"translate"),e.nrm(2,"pa-datetime",16),e.EFF(3),e.nI1(4,"translate"),e.nrm(5,"pa-datetime",16)),2&n){const i=r;e.SpI(" ",e.bMT(1,4,"sync.details.settings.modification-date.from")," "),e.R7$(2),e.Y8G("datetime",i.from),e.R7$(),e.SpI(" ",e.bMT(4,6,"sync.details.settings.modification-date.to")," "),e.R7$(2),e.Y8G("datetime",i.to)}}function rn(n,r){1&n&&e.EFF(0," \u2013 ")}function sn(n,r){if(1&n&&(e.nrm(0,"div",10),e.nVh(1,zt,8,6),e.j41(2,"div",3)(3,"label"),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"div",11),e.Z7z(7,Kt,2,2,"nsi-label",12,e.fX1,!1,Zt,1,0),e.k0s()(),e.nrm(10,"div",10),e.j41(11,"label"),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"div",3),e.nVh(15,tn,4,1,"div",11)(16,nn,1,0),e.k0s(),e.nrm(17,"div",10),e.j41(18,"label"),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"div",13),e.nVh(22,on,6,8)(23,rn,1,0),e.k0s()),2&n){let i,t;const o=e.XpG();e.R7$(),e.vxM(null!=o.connector&&o.connector.canSyncSecurityGroups?1:-1),e.R7$(3),e.JRh(e.bMT(5,7,"sync.details.settings.labels")),e.R7$(3),e.Dyx(o.coloredLabels),e.R7$(5),e.SpI(" ",e.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")," "),e.R7$(3),e.vxM((i=null==o.sync.filters?null:o.sync.filters.fileExtensions)?15:16,i),e.R7$(4),e.JRh(e.bMT(20,11,"sync.details.settings.modification-date.label")),e.R7$(3),e.vxM((t=null==o.sync.filters?null:o.sync.filters.modified)?22:23,t)}}function cn(n,r){1&n&&(e.j41(0,"div"),e.EFF(1,"*****"),e.k0s())}function ln(n,r){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&n){const i=e.XpG(2).$implicit,t=e.XpG(4);e.R7$(),e.JRh(t.sync.connector.parameters[i.id]||"_")}}function an(n,r){if(1&n&&e.nVh(0,cn,2,0,"div")(1,ln,2,1,"div"),2&n){const i=e.XpG().$implicit;e.vxM(i.secret?0:1)}}function dn(n,r){if(1&n&&e.nrm(0,"app-parameters-table",18),2&n){const i=e.XpG().$implicit,t=e.XpG(4);e.Y8G("values",t.sync.connector.parameters[i.id])}}function pn(n,r){1&n&&e.EFF(0," \u2013 ")}function un(n,r){1&n&&e.nrm(0,"div",10)}function hn(n,r){if(1&n&&(e.j41(0,"div",3)(1,"label"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nVh(4,an,2,1)(5,dn,1,1,"app-parameters-table",18)(6,pn,1,0),e.k0s(),e.nVh(7,un,1,0,"div",10)),2&n){const i=r.$implicit,t=r.$index,o=r.$count,s=e.XpG(4);e.R7$(2),e.JRh(e.bMT(3,3,i.label)),e.R7$(2),e.vxM("table"!==i.type?4:(null==s.sync.connector.parameters[i.id]?null:s.sync.connector.parameters[i.id].length)>0?5:6),e.R7$(3),e.vxM(t!==o-1?7:-1)}}function gn(n,r){if(1&n&&(e.j41(0,"nsi-two-columns-configuration-item",17)(1,"div",2),e.Z7z(2,hn,8,5,null,null,ae),e.k0s()()),2&n){const i=e.XpG().$implicit;e.Y8G("itemTitle",i.title)("description",i.description||""),e.R7$(2),e.Dyx(i.fields)}}function mn(n,r){1&n&&e.nVh(0,gn,4,2,"nsi-two-columns-configuration-item",17),2&n&&e.vxM("credentials"!==r.$implicit.id?0:-1)}function yn(n,r){if(1&n&&(e.Z7z(0,mn,1,1,null,null,ae),e.nI1(2,"async")),2&n){const i=e.XpG();e.Dyx(e.bMT(2,0,i.connector.getParametersSections()))}}function fn(n,r){if(1&n&&(e.j41(0,"nsi-two-columns-configuration-item",4)(1,"div"),e.EFF(2),e.k0s()()),2&n){const i=e.XpG();e.R7$(2),e.JRh(i.extractStrategy)}}function _n(n,r){1&n&&e.nrm(0,"pa-icon",20)}function Cn(n,r){1&n&&e.nrm(0,"pa-icon",21)}function bn(n,r){1&n&&e.nrm(0,"pa-icon",22)}function vn(n,r){if(1&n&&(e.j41(0,"pa-table-row")(1,"pa-table-cell")(2,"div",19),e.nVh(3,_n,1,0,"pa-icon",20)(4,Cn,1,0,"pa-icon",21)(5,bn,1,0,"pa-icon",22),e.EFF(6),e.k0s()(),e.j41(7,"pa-table-cell")(8,"div",23),e.nrm(9,"pa-datetime",24),e.k0s()()()),2&n){let i;const t=r.$implicit;e.R7$(3),e.vxM("high"===(i=t.level)?3:"medium"===i?4:"low"===i?5:-1),e.R7$(3),e.SpI(" ",t.message," "),e.R7$(3),e.Y8G("datetime",t.createdAt)}}function Sn(n,r){1&n&&(e.j41(0,"pa-table-row",9)(1,"pa-table-cell")(2,"div",23),e.EFF(3),e.nI1(4,"translate"),e.k0s()()()),2&n&&(e.R7$(3),e.JRh(e.bMT(4,1,"sync.details.activity-log.no-activity")))}let xn=(()=>{var n;class r{constructor(){this.labelService=(0,c.WQX)(C.xQ),this.cdr=(0,c.WQX)(R.gRc),this.currentRoute=(0,c.WQX)(T.nX),this.sdk=(0,c.WQX)(C.ok),this.connector=void 0,this._logs=[],this.labelSets={},this.coloredLabels=[],this.extractStrategy=""}set logs(t){t&&(this._logs=t)}get logs(){return this._logs}ngAfterViewInit(){this.currentRoute.queryParams.pipe((0,v.p)(t=>t.section),(0,p.T)(t=>t.section),(0,f.s)(1)).subscribe({next:t=>{setTimeout(()=>{"activity"===t&&this.activitySection&&this.activitySection.nativeElement.scrollIntoView({behavior:"smooth"})},300)}})}ngOnInit(){this.labelService.resourceLabelSets.pipe((0,f.s)(1),(0,v.p)(o=>!!o),(0,p.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 t=this.sync.extract_strategy;t&&this.sdk.currentKb.pipe((0,f.s)(1),(0,d.n)(o=>o.getExtractStrategies())).subscribe(o=>{this.extractStrategy=o[t]?.name||"",this.cdr.markForCheck()})}static#e=n=()=>(this.\u0275fac=function(o){return new(o||r)},this.\u0275cmp=e.VBU({type:r,selectors:[["nsy-sync-settings"]],viewQuery:function(o,s){if(1&o&&e.GBs(Wt,5),2&o){let l;e.mGM(l=e.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&&(e.j41(0,"nsi-two-columns-configuration-item",1)(1,"div",2)(2,"div",3)(3,"label"),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.k0s()(),e.nVh(8,sn,24,13),e.k0s()(),e.nVh(9,yn,3,2),e.nVh(10,fn,3,1,"nsi-two-columns-configuration-item",4),e.j41(11,"nsi-two-columns-configuration-item",5)(12,"div",6,0)(14,"pa-table",7)(15,"pa-table-header")(16,"pa-table-cell",8),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.j41(19,"pa-table-cell",8),e.EFF(20),e.nI1(21,"translate"),e.k0s()(),e.Z7z(22,vn,10,3,"pa-table-row",null,e.fX1,!1,Sn,5,3,"pa-table-row",9),e.k0s()()()),2&o&&(e.R7$(4),e.JRh(e.bMT(5,8,"sync.details.settings.name")),e.R7$(3),e.JRh(s.sync.title),e.R7$(),e.vxM(s.sync.isCloud?-1:8),e.R7$(),e.vxM(s.connector?9:-1),e.R7$(),e.vxM(s.extractStrategy?10:-1),e.R7$(7),e.JRh(e.bMT(18,10,"sync.details.activity-log.table-header.message")),e.R7$(3),e.JRh(e.bMT(21,12,"sync.details.activity-log.table-header.date")),e.R7$(2),e.Dyx(s.logs))},dependencies:[x.MD,y._8,b.h,y.OE,ne.U,u.Pa6,ee.Z,u.EGN,K.O,Z.e,q.U,Ht.Bz,u.V3x,E.R,C.Qy,x.Jj,b.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%)}.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})();function Fn(n,r){if(1&n){const i=e.RV6();e.j41(0,"div",8)(1,"pa-toggle",9),e.bIt("valueChange",function(o){c.eBV(i);const s=e.XpG(4);return c.Njj(s.toggleSync(o))}),e.EFF(2),e.nI1(3,"translate"),e.k0s()(),e.j41(4,"pa-button",10),e.nI1(5,"async"),e.bIt("click",function(){c.eBV(i);const o=e.XpG(4);return c.Njj(o.triggerSync())}),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"pa-button",11),e.EFF(9),e.nI1(10,"translate"),e.k0s()}if(2&n){const i=e.XpG(3),t=e.XpG();e.R7$(),e.Y8G("value",!i.disabled),e.R7$(),e.SpI(" ",e.bMT(3,5,i.disabled?"sync.badge.inactive":"sync.badge.active")," "),e.R7$(2),e.Y8G("disabled",e.bMT(5,7,t.isSyncing)),e.R7$(2),e.SpI(" ",e.bMT(7,9,"sync.details.buttons.sync-now")," "),e.R7$(3),e.SpI(" ",e.bMT(10,11,"sync.details.buttons.edit-settings")," ")}}function Tn(n,r){if(1&n){const i=e.RV6();e.j41(0,"div",6),e.nVh(1,Fn,11,13),e.j41(2,"pa-button",7),e.bIt("click",function(){c.eBV(i);const o=e.XpG(3);return c.Njj(o.deleteSync())}),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}if(2&n){const i=e.XpG(2);e.R7$(),e.vxM(i.isCloud?-1:1),e.R7$(2),e.SpI(" ",e.bMT(4,2,"sync.details.buttons.delete")," ")}}function In(n,r){if(1&n&&(e.j41(0,"div",2)(1,"h1",4),e.nrm(2,"pa-icon",5),e.EFF(3),e.k0s(),e.nVh(4,Tn,5,4,"div",6),e.nI1(5,"async"),e.k0s()),2&n){const i=e.XpG(),t=e.XpG();e.R7$(2),e.Y8G("path",r.logo),e.R7$(),e.SpI(" ",i.title," "),e.R7$(),e.vxM(!1===e.bMT(5,3,t.editMode)?4:-1)}}function Rn(n,r){if(1&n){const i=e.RV6();e.j41(0,"div")(1,"nsy-configuration-form",12),e.nI1(2,"async"),e.nI1(3,"async"),e.nI1(4,"async"),e.bIt("configurationChange",function(o){c.eBV(i);const s=e.XpG(2);return c.Njj(s.updateConfiguration(o))})("validForm",function(o){c.eBV(i);const s=e.XpG(2);return c.Njj(s.validForm=o)}),e.k0s(),e.j41(5,"nsi-sticky-footer")(6,"pa-button",13),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"pa-button",14),e.bIt("click",function(){c.eBV(i);const o=e.XpG(2);return c.Njj(o.saveChanges())}),e.EFF(10),e.nI1(11,"translate"),e.k0s()()()}if(2&n){let i;const t=e.XpG(),o=e.XpG();e.R7$(),e.Y8G("sync",t)("kbId",e.bMT(2,6,o.kbId))("connector",e.bMT(3,8,o.connector))("connectorId",null==(i=e.bMT(4,10,o.connectorDef))?null:i.id),e.R7$(6),e.SpI(" ",e.bMT(8,12,"generic.cancel")," "),e.R7$(3),e.SpI(" ",e.bMT(11,14,"sync.details.buttons.save-changes")," ")}}function Mn(n,r){if(1&n&&(e.nrm(0,"nsy-sync-settings",3),e.nI1(1,"async"),e.nI1(2,"async")),2&n){const i=e.XpG(),t=e.XpG();e.Y8G("sync",i)("connector",e.bMT(1,3,t.connector))("logs",e.bMT(2,5,t.activityLogs))}}function kn(n,r){if(1&n&&(e.nVh(0,In,6,5,"div",2),e.nI1(1,"async"),e.nVh(2,Rn,12,16,"div"),e.nI1(3,"async"),e.vZN(4,Mn,3,7,"nsy-sync-settings",3)),2&n){let i;const t=e.XpG();e.vxM((i=e.bMT(1,2,t.connectorDef))?0:-1,i),e.R7$(2),e.vxM(e.bMT(3,4,t.editMode)?2:4)}}let de=(()=>{var n;class r{constructor(){this.router=(0,c.WQX)(T.Ix),this.currentRoute=(0,c.WQX)(T.nX),this.syncService=(0,c.WQX)(P),this.toaster=(0,c.WQX)(y._g),this.sdk=(0,c.WQX)(C.ok),this.modalService=(0,c.WQX)(y.w8),this.translate=(0,c.WQX)(b.c$),this.unsubscribeAll=new M.B,this.isDeleted=new M.B,this.kbId=this.sdk.currentKb.pipe((0,p.T)(t=>t.id)),this.syncId=this.currentRoute.params.pipe((0,v.p)(t=>!!t.syncId),(0,p.T)(t=>t.syncId),(0,S.M)(t=>this.syncService.setCurrentSyncId(t))),this.sync=this.syncService.cacheUpdated.pipe((0,d.n)(()=>this.syncId),(0,d.n)(t=>this.syncService.getSync(t)),(0,k.Q)(this.isDeleted),(0,Qt.t)(1)),this.connectorDef=this.sync.pipe((0,p.T)(t=>this.syncService.connectors[t.connectorId||t.connector.name]?.definition||void 0)),this.connector=this.connectorDef.pipe((0,p.T)(t=>t?this.syncService.getConnector(t.id,""):void 0)),this.activityLogs=this.syncId.pipe((0,d.n)(t=>this.syncService.getLogs(t))),this.editMode=this.currentRoute.url.pipe((0,p.T)(t=>t.length>1&&"edit"===t[1].path)),this.validForm=!1,this.isSyncing=(0,H.z)([this.syncId,this.syncService.isSyncing]).pipe((0,p.T)(([t,o])=>o[t]||!1))}ngOnDestroy(){this.unsubscribeAll.next(),this.unsubscribeAll.complete(),this.isDeleted.next(),this.isDeleted.complete()}toggleSync(t){this.syncId.pipe((0,f.s)(1),(0,d.n)(o=>this.syncService.updateSync(o,{disabled:!t}))).subscribe({error:()=>this.toaster.error(t?"sync.details.toast.activating-failed":"sync.details.toast.disabling-failed")})}triggerSync(){this.modalService.openConfirm({title:this.translate.instant("sync.details.modal.title"),description:"sync.details.modal.description",confirmLabel:"sync.details.modal.sync-new",cancelLabel:"sync.details.modal.re-sync-all"}).onClose.pipe((0,d.n)(t=>this.syncId.pipe((0,f.s)(1),(0,d.n)(o=>this.syncService.triggerSync(o,!t))))).subscribe({next:()=>this.toaster.success("sync.details.toast.triggering-sync-success"),error:()=>this.toaster.error("sync.details.toast.triggering-sync-failed")})}deleteSync(){this.sync.pipe((0,d.n)(t=>this.modalService.openConfirm({title:this.translate.instant("sync.confirm.deletion.title",{title:t.title}),description:"sync.confirm.deletion.description",isDestructive:!0,confirmLabel:"generic.delete"}).onClose.pipe((0,v.p)(o=>!!o),(0,S.M)(()=>this.isDeleted.next()),(0,d.n)(()=>this.syncService.deleteSync(t.id))))).subscribe({next:()=>this.router.navigate([".."],{relativeTo:this.currentRoute}),error:()=>this.toaster.error("sync.details.toast.deletion-failed")})}updateConfiguration(t){this.updatedConfig=t}updateSelection(t){this.updatedSelection=t}saveChanges(){!this.updatedConfig&&!this.updatedSelection||this.syncId.pipe((0,f.s)(1),(0,d.n)(t=>{const o={...this.updatedConfig};return this.updatedSelection&&(o.foldersToSync=this.updatedSelection),this.syncService.updateSync(t,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(t){this.syncId.pipe((0,f.s)(1),(0,d.n)(o=>this.syncService.updateSync(o,{foldersToSync:t}))).subscribe({error:()=>this.toaster.error("sync.details.toast.modification-failed")})}static#e=n=()=>(this.\u0275fac=function(o){return new(o||r)},this.\u0275cmp=e.VBU({type:r,selectors:[["nsy-sync-details-page"]],decls:7,vars:9,consts:[[1,"page-spacing"],[3,"link"],[1,"details-header"],[3,"sync","connector","logs"],[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"],["noTopBorder","",3,"configurationChange","validForm","sync","kbId","connector","connectorId"],["aspect","basic","routerLink",".."],["kind","primary",3,"click"]],template:function(o,s){if(1&o&&(e.j41(0,"div",0)(1,"nsi-back-button",1),e.nI1(2,"async"),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nVh(5,kn,5,6),e.nI1(6,"async"),e.k0s()),2&o){let l;e.R7$(),e.Y8G("link",e.bMT(2,3,s.editMode)?"../..":".."),e.R7$(2),e.SpI(" ",e.bMT(4,5,"sync.add-page.back-button")," "),e.R7$(2),e.vxM((l=e.bMT(6,7,s.sync))?5:-1,l)}},dependencies:[x.MD,y.Xp,b.h,u.V3x,E.R,u.Ymm,G.Q,u.rkm,V.a,u.aT,xn,Q.Wk,y.o3,ie,x.Jj,b.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%)}.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 $n=[{path:"",component:Me,children:[{path:"",component:it},{path:"add/:connector",component:le},{path:"add/:connector/:syncId",component:le},{path:":syncId/edit",component:de},{path:":syncId",component:de}]}]}}]);
|
|
@@ -110,8 +110,8 @@
|
|
|
110
110
|
"account.models.model-configs.delete": "Eliminar configuració",
|
|
111
111
|
"account.models.model-configs.delete-confirm": "Estas segur que vols eliminar aquesta configuració ?",
|
|
112
112
|
"account.models.model-configs.description": "Crea configuracions de models que es poden utilitzar en totes les Knowledge Box",
|
|
113
|
-
"account.models.model-configs.details": "Detalls de la configuració",
|
|
114
113
|
"account.models.model-configs.generative-model": "Model generatiu",
|
|
114
|
+
"account.models.model-configs.limit": "Habilitar només per Knowledge Boxes i agents de recuperació específics",
|
|
115
115
|
"account.models.model-configs.system-prompt": "Prompt de sistema",
|
|
116
116
|
"account.models.model-configs.title": "Configuracions de model",
|
|
117
117
|
"account.models.model-configs.use-bedrock": "Utilitzar integració de AWS Bedrock",
|
|
@@ -254,7 +254,6 @@
|
|
|
254
254
|
"billing.company_address": "Adreça de l’empresa",
|
|
255
255
|
"billing.contact": "Contactar",
|
|
256
256
|
"billing.contact_name": "Persona de contacte",
|
|
257
|
-
"billing.continuous-training": "Entenament continu IA",
|
|
258
257
|
"billing.cost-per-token": "cost per Agentic RAG Token",
|
|
259
258
|
"billing.cost_over_limits": "Cost per sobre dels límits",
|
|
260
259
|
"billing.country": "País",
|
|
@@ -262,6 +261,7 @@
|
|
|
262
261
|
"billing.current-over-cost-help": "La factura amb els sobrecostos definitius s’enviarà el dia que finalitzi el cicle de facturació.",
|
|
263
262
|
"billing.current-plan": "Pla actual",
|
|
264
263
|
"billing.custom_plan": "Pla personalitzat",
|
|
264
|
+
"billing.da-agents": "Agents d'augment de dades",
|
|
265
265
|
"billing.delete-warning": "El vostre compte s’eliminarà permanentment set dies després que finalitzi el cicle de facturació.",
|
|
266
266
|
"billing.email": "Factures enviades a",
|
|
267
267
|
"billing.end-service": "Finalitza el teu servei",
|
|
@@ -581,6 +581,7 @@
|
|
|
581
581
|
"generic.time": "Temps",
|
|
582
582
|
"generic.title": "Títol",
|
|
583
583
|
"generic.total": "Total",
|
|
584
|
+
"generic.trial-tutorial": "Tutorial inicial",
|
|
584
585
|
"generic.uid": "UID",
|
|
585
586
|
"generic.unlink": "Desenllaçar",
|
|
586
587
|
"generic.upload": "Pujar",
|
|
@@ -688,7 +689,8 @@
|
|
|
688
689
|
"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.",
|
|
689
690
|
"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",
|
|
690
691
|
"kb.ai-models.model-selector.disclaimer.title": "Avís de risc del model d'IA",
|
|
691
|
-
"kb.ai-models.model-selector.
|
|
692
|
+
"kb.ai-models.model-selector.features.data-residency": "Residència de dades garantida",
|
|
693
|
+
"kb.ai-models.model-selector.features.enterprise-ready": "Preparat per a les empreses",
|
|
692
694
|
"kb.ai-models.model-selector.search": "Cerca per seleccionar models",
|
|
693
695
|
"kb.ai-models.page-description": "Configureu els models disponibles per a les vostres dades",
|
|
694
696
|
"kb.ai-models.page-title": "Models d’IA",
|
|
@@ -1888,8 +1890,6 @@
|
|
|
1888
1890
|
"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ó.",
|
|
1889
1891
|
"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\".",
|
|
1890
1892
|
"search.widgets.form.widget-options.chat-placeholder.toggle-label": "Personalitza el placeholder de la barra de xat",
|
|
1891
|
-
"search.widgets.form.widget-options.collapse-text-blocks.toggle-description": "Els blocs de text de les cites i els resultats es replegaran inicialment.",
|
|
1892
|
-
"search.widgets.form.widget-options.collapse-text-blocks.toggle-label": "Replega els blocs de text de manera predeterminada",
|
|
1893
1893
|
"search.widgets.form.widget-options.copy-disclaimer.input-label": "Missatge per mostrar",
|
|
1894
1894
|
"search.widgets.form.widget-options.copy-disclaimer.toggle-description": "Mostra un missatge quan l'usuari faci servir el botó Copia per copiar la resposta",
|
|
1895
1895
|
"search.widgets.form.widget-options.copy-disclaimer.toggle-label": "Avís del botó de còpia",
|
|
@@ -1900,7 +1900,28 @@
|
|
|
1900
1900
|
"search.widgets.form.widget-options.customize-insufficient-data.input-label": "Missatge de dades insuficient",
|
|
1901
1901
|
"search.widgets.form.widget-options.customize-insufficient-data.toggle-description": "Personalitza el missatge que es mostra quan no hi ha dades suficients per generar una resposta a la pregunta de l’usuari. Aquest camp admet codi HTML.",
|
|
1902
1902
|
"search.widgets.form.widget-options.customize-insufficient-data.toggle-label": "Personalitza el missatge de dades insuficients",
|
|
1903
|
+
"search.widgets.form.widget-options.customize-text-blocks-visibility.collapsed": "Inicialment col·lapsada",
|
|
1904
|
+
"search.widgets.form.widget-options.customize-text-blocks-visibility.expanded": "Sempre expandida",
|
|
1905
|
+
"search.widgets.form.widget-options.customize-text-blocks-visibility.toggle-description": "Trieu si les llistes de blocs de text es mostren expandides o replegades",
|
|
1906
|
+
"search.widgets.form.widget-options.customize-text-blocks-visibility.toggle-label": "Personalitza la visibilitat dels blocs de text",
|
|
1903
1907
|
"search.widgets.form.widget-options.displaySearchButton.toggle-label": "Mostra el botó de cerca",
|
|
1908
|
+
"search.widgets.form.widget-options.fab.fab-offset-bottom.help": "El marge inferior del botó flotant",
|
|
1909
|
+
"search.widgets.form.widget-options.fab.fab-offset-bottom.label": "Marge inferior",
|
|
1910
|
+
"search.widgets.form.widget-options.fab.fab-offset-side.help": "El marge lateral del botó flotant",
|
|
1911
|
+
"search.widgets.form.widget-options.fab.fab-offset-side.label": "Marge lateral",
|
|
1912
|
+
"search.widgets.form.widget-options.fab.panel-height.help": "L'alçada del panell",
|
|
1913
|
+
"search.widgets.form.widget-options.fab.panel-height.label": "Alçada del panell",
|
|
1914
|
+
"search.widgets.form.widget-options.fab.panel-width.help": "L'amplada del panell",
|
|
1915
|
+
"search.widgets.form.widget-options.fab.panel-width.label": "Amplada del panell",
|
|
1916
|
+
"search.widgets.form.widget-options.fab.position.help": "La posició del botó flotant",
|
|
1917
|
+
"search.widgets.form.widget-options.fab.position.title": "Posició",
|
|
1918
|
+
"search.widgets.form.widget-options.fab.position-bottom-left": "A baix a l'esquerra",
|
|
1919
|
+
"search.widgets.form.widget-options.fab.position-bottom-right": "A baix a la dreta",
|
|
1920
|
+
"search.widgets.form.widget-options.fab.size.help": "La mida del botó flotant",
|
|
1921
|
+
"search.widgets.form.widget-options.fab.size.title": "Mida",
|
|
1922
|
+
"search.widgets.form.widget-options.fab.size-large": "Gran",
|
|
1923
|
+
"search.widgets.form.widget-options.fab.size-medium": "Mitjà",
|
|
1924
|
+
"search.widgets.form.widget-options.fab.size-small": "Petit",
|
|
1904
1925
|
"search.widgets.form.widget-options.feedback.answer": "Feedback global sobre la resposta generada",
|
|
1905
1926
|
"search.widgets.form.widget-options.feedback.answer-and-results": "Feedback detallat sobre respostes i resultats de cerca",
|
|
1906
1927
|
"search.widgets.form.widget-options.feedback.description": "Indiqueu el tipus de feedback que els usuaris poden proporcionar",
|
|
@@ -1936,6 +1957,7 @@
|
|
|
1936
1957
|
"search.widgets.form.widget-options.speech-synthesis.toggle-description": "Les respostes es llegiran en veu alta.",
|
|
1937
1958
|
"search.widgets.form.widget-options.speech-synthesis.toggle-label": "Síntesi de la parla",
|
|
1938
1959
|
"search.widgets.form.widget-options.style.chat": "Mode de xat",
|
|
1960
|
+
"search.widgets.form.widget-options.style.floating-chat": "Botó de xat flotant",
|
|
1939
1961
|
"search.widgets.form.widget-options.style.page": "Incrustat a la pàgina",
|
|
1940
1962
|
"search.widgets.form.widget-options.style.popup": "Estil modal emergent (s’obre a sobre del contingut)",
|
|
1941
1963
|
"search.widgets.form.widget-options.style.title": "Estil widget",
|
|
@@ -110,8 +110,8 @@
|
|
|
110
110
|
"account.models.model-configs.delete": "Delete configuration",
|
|
111
111
|
"account.models.model-configs.delete-confirm": "Are you sure you want to delete this configuration?",
|
|
112
112
|
"account.models.model-configs.description": "Create model configurations that can be used in all Knowledge Boxes",
|
|
113
|
-
"account.models.model-configs.details": "Configuration details",
|
|
114
113
|
"account.models.model-configs.generative-model": "Generative model",
|
|
114
|
+
"account.models.model-configs.limit": "Enable only for specific Knowledge Boxes and Retrieval Agents",
|
|
115
115
|
"account.models.model-configs.system-prompt": "System prompt",
|
|
116
116
|
"account.models.model-configs.title": "Model configurations",
|
|
117
117
|
"account.models.model-configs.use-bedrock": "Use AWS Bedrock integration",
|
|
@@ -254,7 +254,6 @@
|
|
|
254
254
|
"billing.company_address": "Company address",
|
|
255
255
|
"billing.contact": "Contact us",
|
|
256
256
|
"billing.contact_name": "Contact name",
|
|
257
|
-
"billing.continuous-training": "Continuous AI training",
|
|
258
257
|
"billing.cost-per-token": "cost per Agentic RAG Token",
|
|
259
258
|
"billing.cost_over_limits": "Cost over limits",
|
|
260
259
|
"billing.country": "Country",
|
|
@@ -262,6 +261,7 @@
|
|
|
262
261
|
"billing.current-over-cost-help": "The invoice with final over costs will be sent to you on the day your billing cycle ends.",
|
|
263
262
|
"billing.current-plan": "Current plan",
|
|
264
263
|
"billing.custom_plan": "Custom plan",
|
|
264
|
+
"billing.da-agents": "Data Augmentation Agents",
|
|
265
265
|
"billing.delete-warning": "Your account will be permanently deleted seven days after the billing cycle ends.",
|
|
266
266
|
"billing.email": "Invoices sent to",
|
|
267
267
|
"billing.end-service": "End your service",
|
|
@@ -581,6 +581,7 @@
|
|
|
581
581
|
"generic.time": "Time",
|
|
582
582
|
"generic.title": "Title",
|
|
583
583
|
"generic.total": "Total",
|
|
584
|
+
"generic.trial-tutorial": "Trial Tutorial",
|
|
584
585
|
"generic.uid": "UID",
|
|
585
586
|
"generic.unlink": "Unlink",
|
|
586
587
|
"generic.upload": "Upload",
|
|
@@ -688,7 +689,8 @@
|
|
|
688
689
|
"kb.ai-models.model-selector.disclaimer.description": "The {{model}} may introduce business or compliance risks. Please review and accept before saving.",
|
|
689
690
|
"kb.ai-models.model-selector.disclaimer.label": "I have reviewed and understand the risks associated with using {{model}}. I accept responsibility for verifying outputs before use",
|
|
690
691
|
"kb.ai-models.model-selector.disclaimer.title": "AI Model Risk Disclaimer",
|
|
691
|
-
"kb.ai-models.model-selector.
|
|
692
|
+
"kb.ai-models.model-selector.features.data-residency": "Data residency guaranteed",
|
|
693
|
+
"kb.ai-models.model-selector.features.enterprise-ready": "Enterprise-ready",
|
|
692
694
|
"kb.ai-models.model-selector.search": "Search to select models",
|
|
693
695
|
"kb.ai-models.page-description": "Configure the available models for your data",
|
|
694
696
|
"kb.ai-models.page-title": "AI models",
|
|
@@ -1899,8 +1901,6 @@
|
|
|
1899
1901
|
"search.widgets.form.widget-options.chat-placeholder.input-help": "Use a <code>|</code> to separate the initial placeholder from the one displayed once the discussion is engaged.",
|
|
1900
1902
|
"search.widgets.form.widget-options.chat-placeholder.toggle-description": "Change the text that you want to appear in the chat bar when not active. The default text is “Let's talk”.",
|
|
1901
1903
|
"search.widgets.form.widget-options.chat-placeholder.toggle-label": "Customize chat bar placeholder",
|
|
1902
|
-
"search.widgets.form.widget-options.collapse-text-blocks.toggle-description": "Text blocks from citations and results will be initially collapsed.",
|
|
1903
|
-
"search.widgets.form.widget-options.collapse-text-blocks.toggle-label": "Collapse text blocks by default",
|
|
1904
1904
|
"search.widgets.form.widget-options.copy-disclaimer.input-label": "Message to display",
|
|
1905
1905
|
"search.widgets.form.widget-options.copy-disclaimer.toggle-description": "Display a message when the user use the Copy button to copy the answer",
|
|
1906
1906
|
"search.widgets.form.widget-options.copy-disclaimer.toggle-label": "Copy button disclaimer",
|
|
@@ -1911,7 +1911,28 @@
|
|
|
1911
1911
|
"search.widgets.form.widget-options.customize-insufficient-data.input-label": "Insufficient data message",
|
|
1912
1912
|
"search.widgets.form.widget-options.customize-insufficient-data.toggle-description": "Customize the message displayed when there’s insufficient data to generate a response to the user’s question. This field allows HTML markup. ",
|
|
1913
1913
|
"search.widgets.form.widget-options.customize-insufficient-data.toggle-label": "Customize insufficient data message",
|
|
1914
|
+
"search.widgets.form.widget-options.customize-text-blocks-visibility.collapsed": "Initially collapsed",
|
|
1915
|
+
"search.widgets.form.widget-options.customize-text-blocks-visibility.expanded": "Always expanded",
|
|
1916
|
+
"search.widgets.form.widget-options.customize-text-blocks-visibility.toggle-description": "Choose whether text block lists appear expanded or collapsed",
|
|
1917
|
+
"search.widgets.form.widget-options.customize-text-blocks-visibility.toggle-label": "Customize text blocks visibility",
|
|
1914
1918
|
"search.widgets.form.widget-options.displaySearchButton.toggle-label": "Display search button",
|
|
1919
|
+
"search.widgets.form.widget-options.fab.fab-offset-bottom.help": "The bottom offset of the floating button",
|
|
1920
|
+
"search.widgets.form.widget-options.fab.fab-offset-bottom.label": "Bottom offset",
|
|
1921
|
+
"search.widgets.form.widget-options.fab.fab-offset-side.help": "The side offset of the floating button",
|
|
1922
|
+
"search.widgets.form.widget-options.fab.fab-offset-side.label": "Side offset",
|
|
1923
|
+
"search.widgets.form.widget-options.fab.panel-height.help": "The height of the panel",
|
|
1924
|
+
"search.widgets.form.widget-options.fab.panel-height.label": "Panel height",
|
|
1925
|
+
"search.widgets.form.widget-options.fab.panel-width.help": "The width of the panel",
|
|
1926
|
+
"search.widgets.form.widget-options.fab.panel-width.label": "Panel width",
|
|
1927
|
+
"search.widgets.form.widget-options.fab.position.help": "The position of the floating button",
|
|
1928
|
+
"search.widgets.form.widget-options.fab.position.title": "Position",
|
|
1929
|
+
"search.widgets.form.widget-options.fab.position-bottom-left": "Bottom left",
|
|
1930
|
+
"search.widgets.form.widget-options.fab.position-bottom-right": "Bottom right",
|
|
1931
|
+
"search.widgets.form.widget-options.fab.size.help": "The size of the floating button",
|
|
1932
|
+
"search.widgets.form.widget-options.fab.size.title": "Size",
|
|
1933
|
+
"search.widgets.form.widget-options.fab.size-large": "Large",
|
|
1934
|
+
"search.widgets.form.widget-options.fab.size-medium": "Medium",
|
|
1935
|
+
"search.widgets.form.widget-options.fab.size-small": "Small",
|
|
1915
1936
|
"search.widgets.form.widget-options.feedback.answer": "Global feedback on the generated answer",
|
|
1916
1937
|
"search.widgets.form.widget-options.feedback.answer-and-results": "Detailed feedback on answer and search results",
|
|
1917
1938
|
"search.widgets.form.widget-options.feedback.description": "Select the type of feedback that users can provide",
|
|
@@ -1947,6 +1968,7 @@
|
|
|
1947
1968
|
"search.widgets.form.widget-options.speech-synthesis.toggle-description": "Answers will be read out loud.",
|
|
1948
1969
|
"search.widgets.form.widget-options.speech-synthesis.toggle-label": "Speech synthesis",
|
|
1949
1970
|
"search.widgets.form.widget-options.style.chat": "Chat mode",
|
|
1971
|
+
"search.widgets.form.widget-options.style.floating-chat": "Floating chat button",
|
|
1950
1972
|
"search.widgets.form.widget-options.style.page": "Embedded in page",
|
|
1951
1973
|
"search.widgets.form.widget-options.style.popup": "Popup modal style (opens above your content)",
|
|
1952
1974
|
"search.widgets.form.widget-options.style.title": "Widget style",
|
|
@@ -110,8 +110,8 @@
|
|
|
110
110
|
"account.models.model-configs.delete": "Eliminar configuración",
|
|
111
111
|
"account.models.model-configs.delete-confirm": "¿Estás seguro de que quieres eliminar esta configuración ?",
|
|
112
112
|
"account.models.model-configs.description": "Crear configuraciones de modelos que se pueden utilizar en todas las Knowledge Box",
|
|
113
|
-
"account.models.model-configs.details": "Detalles de la configuración",
|
|
114
113
|
"account.models.model-configs.generative-model": "Modelo generativo",
|
|
114
|
+
"account.models.model-configs.limit": "Habilitar únicamente en Knowledge Boxes y agentes de recuperación específicos",
|
|
115
115
|
"account.models.model-configs.system-prompt": "Prompt de sistema",
|
|
116
116
|
"account.models.model-configs.title": "Configuraciones del modelo",
|
|
117
117
|
"account.models.model-configs.use-bedrock": "Utilizar integración de AWS Bedrock",
|
|
@@ -254,7 +254,6 @@
|
|
|
254
254
|
"billing.company_address": "Dirección de la empresa",
|
|
255
255
|
"billing.contact": "Contactar",
|
|
256
256
|
"billing.contact_name": "Persona de contacto",
|
|
257
|
-
"billing.continuous-training": "Entrenamiento continuo IA",
|
|
258
257
|
"billing.cost-per-token": "coste por Agentic RAG Token",
|
|
259
258
|
"billing.cost_over_limits": "Coste al exceder los límites",
|
|
260
259
|
"billing.country": "País",
|
|
@@ -262,6 +261,7 @@
|
|
|
262
261
|
"billing.current-over-cost-help": "La factura con los sobrecostes definitivos se te enviará el día que finalice tu ciclo de facturación.",
|
|
263
262
|
"billing.current-plan": "Plan actual",
|
|
264
263
|
"billing.custom_plan": "Plan personalizado",
|
|
264
|
+
"billing.da-agents": "Agentes de augmento de datos",
|
|
265
265
|
"billing.delete-warning": "Su cuenta se eliminará permanentemente siete días después de que finalice el ciclo de facturación.",
|
|
266
266
|
"billing.email": "Facturas enviadas a",
|
|
267
267
|
"billing.end-service": "Finaliza tu servicio",
|
|
@@ -581,6 +581,7 @@
|
|
|
581
581
|
"generic.time": "Tiempo",
|
|
582
582
|
"generic.title": "Título",
|
|
583
583
|
"generic.total": "Total",
|
|
584
|
+
"generic.trial-tutorial": "Tutorial inicial",
|
|
584
585
|
"generic.uid": "UID",
|
|
585
586
|
"generic.unlink": "Desenlazar",
|
|
586
587
|
"generic.upload": "Subir",
|
|
@@ -688,7 +689,8 @@
|
|
|
688
689
|
"kb.ai-models.model-selector.disclaimer.description": "El {{model}} puede presentar riesgos comerciales o de cumplimiento normativo. Revíselo y acéptelo antes de guardar.",
|
|
689
690
|
"kb.ai-models.model-selector.disclaimer.label": "He revisado y comprendo los riesgos asociados al uso de {{model}}. Acepto la responsabilidad de verificar los resultados antes de su uso",
|
|
690
691
|
"kb.ai-models.model-selector.disclaimer.title": "Advertencia sobre riesgos de modelos de IA",
|
|
691
|
-
"kb.ai-models.model-selector.
|
|
692
|
+
"kb.ai-models.model-selector.features.data-residency": "Residencia de datos garantizada",
|
|
693
|
+
"kb.ai-models.model-selector.features.enterprise-ready": "Preparado para la empresa",
|
|
692
694
|
"kb.ai-models.model-selector.search": "Buscar para seleccionar modelos",
|
|
693
695
|
"kb.ai-models.page-description": "Configura los modelos disponibles para tus datos",
|
|
694
696
|
"kb.ai-models.page-title": "Modelos de IA",
|
|
@@ -1888,8 +1890,6 @@
|
|
|
1888
1890
|
"search.widgets.form.widget-options.chat-placeholder.input-help": "Utilice <code>|</code> para separar el placeholder inicial del que se muestra una vez que se inicia la discusión.",
|
|
1889
1891
|
"search.widgets.form.widget-options.chat-placeholder.toggle-description": "Cambia el texto que quieres que aparezca en la barra de chat cuando no esté activa. El texto predeterminado es “Charlemos”.",
|
|
1890
1892
|
"search.widgets.form.widget-options.chat-placeholder.toggle-label": "Personalizar el placeholder de la barra de chat",
|
|
1891
|
-
"search.widgets.form.widget-options.collapse-text-blocks.toggle-description": "Los bloques de texto de citas y resultados estarán inicialmente contraídos.",
|
|
1892
|
-
"search.widgets.form.widget-options.collapse-text-blocks.toggle-label": "Contraer bloques de texto de forma predeterminada",
|
|
1893
1893
|
"search.widgets.form.widget-options.copy-disclaimer.input-label": "Mensaje para mostrar",
|
|
1894
1894
|
"search.widgets.form.widget-options.copy-disclaimer.toggle-description": "Mostrar un mensaje cuando el usuario utiliza el botón Copiar para copiar la respuesta",
|
|
1895
1895
|
"search.widgets.form.widget-options.copy-disclaimer.toggle-label": "Advertencia del botón Copiar",
|
|
@@ -1900,7 +1900,28 @@
|
|
|
1900
1900
|
"search.widgets.form.widget-options.customize-insufficient-data.input-label": "Mensaje de datos insuficientes",
|
|
1901
1901
|
"search.widgets.form.widget-options.customize-insufficient-data.toggle-description": "Personaliza el mensaje que se muestra cuando no hay datos suficientes para generar una respuesta a la pregunta del usuario. Este campo admite código HTML.",
|
|
1902
1902
|
"search.widgets.form.widget-options.customize-insufficient-data.toggle-label": "Personalizar mensaje de datos insuficientes",
|
|
1903
|
+
"search.widgets.form.widget-options.customize-text-blocks-visibility.collapsed": "Inicialmente contraída",
|
|
1904
|
+
"search.widgets.form.widget-options.customize-text-blocks-visibility.expanded": "Siempre expandida",
|
|
1905
|
+
"search.widgets.form.widget-options.customize-text-blocks-visibility.toggle-description": "Elija si las listas de bloques de texto se muestran expandidas o contraídas",
|
|
1906
|
+
"search.widgets.form.widget-options.customize-text-blocks-visibility.toggle-label": "Personalizar la visibilidad de los bloques de texto",
|
|
1903
1907
|
"search.widgets.form.widget-options.displaySearchButton.toggle-label": "Mostrar botón de búsqueda",
|
|
1908
|
+
"search.widgets.form.widget-options.fab.fab-offset-bottom.help": "El margen inferior del botón flotante",
|
|
1909
|
+
"search.widgets.form.widget-options.fab.fab-offset-bottom.label": "Margen inferior",
|
|
1910
|
+
"search.widgets.form.widget-options.fab.fab-offset-side.help": "El margen lateral del botón flotante",
|
|
1911
|
+
"search.widgets.form.widget-options.fab.fab-offset-side.label": "Margen lateral",
|
|
1912
|
+
"search.widgets.form.widget-options.fab.panel-height.help": "La altura del panel",
|
|
1913
|
+
"search.widgets.form.widget-options.fab.panel-height.label": "Alto del panel",
|
|
1914
|
+
"search.widgets.form.widget-options.fab.panel-width.help": "El ancho del panel",
|
|
1915
|
+
"search.widgets.form.widget-options.fab.panel-width.label": "Ancho del panel",
|
|
1916
|
+
"search.widgets.form.widget-options.fab.position.help": "La posición del botón flotante",
|
|
1917
|
+
"search.widgets.form.widget-options.fab.position.title": "Posición",
|
|
1918
|
+
"search.widgets.form.widget-options.fab.position-bottom-left": "Abajo a la izquierda",
|
|
1919
|
+
"search.widgets.form.widget-options.fab.position-bottom-right": "Abajo a la derecha",
|
|
1920
|
+
"search.widgets.form.widget-options.fab.size.help": "El tamaño del botón flotante",
|
|
1921
|
+
"search.widgets.form.widget-options.fab.size.title": "Tamaño",
|
|
1922
|
+
"search.widgets.form.widget-options.fab.size-large": "Grande",
|
|
1923
|
+
"search.widgets.form.widget-options.fab.size-medium": "Mediano",
|
|
1924
|
+
"search.widgets.form.widget-options.fab.size-small": "Pequeño",
|
|
1904
1925
|
"search.widgets.form.widget-options.feedback.answer": "Feedback global sobre la respuesta generada",
|
|
1905
1926
|
"search.widgets.form.widget-options.feedback.answer-and-results": "Feedback detallado sobre las respuestas y los resultados de la búsqueda",
|
|
1906
1927
|
"search.widgets.form.widget-options.feedback.description": "Indique el tipo de feedback que pueden proporcionar los usuarios",
|
|
@@ -1936,6 +1957,7 @@
|
|
|
1936
1957
|
"search.widgets.form.widget-options.speech-synthesis.toggle-description": "Las respuestas se leerán en voz alta.",
|
|
1937
1958
|
"search.widgets.form.widget-options.speech-synthesis.toggle-label": "Síntesis de voz",
|
|
1938
1959
|
"search.widgets.form.widget-options.style.chat": "Modo chat",
|
|
1960
|
+
"search.widgets.form.widget-options.style.floating-chat": "Botón de chat flotante",
|
|
1939
1961
|
"search.widgets.form.widget-options.style.page": "Incrustado en la página",
|
|
1940
1962
|
"search.widgets.form.widget-options.style.popup": "Estilo modal emergente (se abre encima de su contenido)",
|
|
1941
1963
|
"search.widgets.form.widget-options.style.title": "Estilo de widget",
|