@pristy/pristy-libvue 1.17.2 → 1.17.3

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.
@@ -6,7 +6,7 @@
6
6
 
7
7
  {userName} has shared the document {documentName} with you.
8
8
 
9
- {shareLink}`},errors:{errorEmptyEmail:"Please enter at least one email address",errorValidEmail:"One or more email addresses are invalid",errorEmptySubject:"Subject is required",errorSubjectTooShort:"Subject must be at least 6 characters long",errorEmptyMessage:"Message is required",errorSendMail:"Error sending email"}},Ei={title:"Chat",connecting:"Connecting...",reconnecting:"Reconnecting...",connectionError:"Chat connection error",notConfigured:"Chat is not configured. Please add your Rocket.Chat credentials in your profile.",configureInProfile:"Configure in profile",retry:"Retry",searchRooms:"Search rooms...",noRooms:"No rooms available",noMessages:"No messages yet. Start the conversation!",loadMore:"Load more messages",typeMessage:"Type a message...",send:"Send",attachFile:"Attach file",attachment:"Attachment",unknownUser:"Unknown user",userTyping:"{user} is typing...",usersTyping:"{user1} and {user2} are typing...",multipleUsersTyping:"Several people are typing...",sendError:"Error sending message",uploadError:"Error uploading file",openChat:"Open chat",closeChat:"Close chat",newMessages:"{count} new message(s)"},Pi="Close",_i="Edit",Ki="Open",$i="Download",qi="Restore",en="Publish",tn="Back",ln="Minimize",an="Reload",on="Duplicate",sn="Move up",nn="Move down",cn="Sort ascending",rn="Sort descending",dn="Search",bn="More actions",mn="Edit",pn="Home",un="File list",Zn="Preview",hn="Select all",yn="View mode",Wn="List",gn="Grid",Yn="Table",Nn={selectedDocuments:"Selected documents"},Xn={ok:"Configuration folder is accessible.",checking:"Checking configuration folder…",error:{title:"Configuration issue detected",description:'The configuration folder for instance "{instance}" is not accessible at the expected Alfresco path. Search features (classification plan, etc.) may not work correctly.',action:"Delete the existing folder and re-run pristy-init to recreate it with the correct structure."}},zn={en:Object.freeze(Object.defineProperty({__proto__:null,alfrescoError:Es,back:tn,cancel:Hs,canceledImport:Ci,cannotCopyHere:Mi,cannotMoveHere:Oi,chat:Ei,close:Pi,collab:Hi,config:xi,configHealth:Xn,currentFolder:ki,default:{taskNotification:Vs,fichier:xs,dossier:Ss,restrictedPermissions:Js,save:Us,cancel:Hs,error:Qs,uploadUnknownError:Bs,alfrescoError:Es,fichier_image:Ps,fichier_video:_s,fichier_pdf:Ks,fichier_eml:$s,fichier_texte:qs,fichier_tableur:ei,fichier_dessin:ti,fichier_presentation:li,fichier_markdown:ai,fichier_json:oi,fichier_xml:si,fichier_html:ii,fichier_css:ni,fichier_csv:ci,fichier_javascript:ri,fichier_sql:di,fichier_shell:bi,fichier_yaml:mi,fichier_python:pi,fichier_typescript:ui,fichier_php:Zi,fichier_java:hi,fichier_code:yi,fichier_config:Wi,fichier_log:gi,espace:Yi,menu:Ni,tasks:Xi,pdf:zi,sharelink:Ai,cannotCopyHere:Mi,cannotMoveHere:Oi,spaces:ji,userHomes:Gi,yes:Ti,no:wi,howMuchResult:Ii,howMuchSelected:fi,selectAllElement:vi,selectAllElementMoreThan:Li,deleteSelection:Di,dropFileFolders:Ri,currentFolder:ki,canceledImport:Ci,lock:Fi,membersPopup:Vi,config:xi,rechercheAvancee:Si,pdfTools:Ji,editor:Ui,collab:Hi,diffViewer:Qi,sendingMail:Bi,chat:Ei,close:Pi,delete:"Delete",edit:_i,open:Ki,download:$i,restore:qi,publish:en,back:tn,minimize:ln,reload:an,duplicate:on,moveUp:sn,moveDown:nn,sortAscending:cn,sortDescending:rn,search:dn,moreActions:bn,"add/removeFavorite":"Add/remove favorite",modify:mn,home:pn,fileList:un,previewPanel:Zn,selectAll:hn,layoutSelector:yn,layoutList:Wn,layoutGrid:gn,layoutTable:Yn,workflow:Nn,configHealth:Xn},deleteSelection:Di,diffViewer:Qi,dossier:Ss,download:$i,dropFileFolders:Ri,duplicate:on,edit:_i,editor:Ui,error:Qs,espace:Yi,fichier:xs,fichier_code:yi,fichier_config:Wi,fichier_css:ni,fichier_csv:ci,fichier_dessin:ti,fichier_eml:$s,fichier_html:ii,fichier_image:Ps,fichier_java:hi,fichier_javascript:ri,fichier_json:oi,fichier_log:gi,fichier_markdown:ai,fichier_pdf:Ks,fichier_php:Zi,fichier_presentation:li,fichier_python:pi,fichier_shell:bi,fichier_sql:di,fichier_tableur:ei,fichier_texte:qs,fichier_typescript:ui,fichier_video:_s,fichier_xml:si,fichier_yaml:mi,fileList:un,home:pn,howMuchResult:Ii,howMuchSelected:fi,layoutGrid:gn,layoutList:Wn,layoutSelector:yn,layoutTable:Yn,lock:Fi,membersPopup:Vi,menu:Ni,minimize:ln,modify:mn,moreActions:bn,moveDown:nn,moveUp:sn,no:wi,open:Ki,pdf:zi,pdfTools:Ji,previewPanel:Zn,publish:en,rechercheAvancee:Si,reload:an,restore:qi,restrictedPermissions:Js,save:Us,search:dn,selectAll:hn,selectAllElement:vi,selectAllElementMoreThan:Li,sendingMail:Bi,sharelink:Ai,sortAscending:cn,sortDescending:rn,spaces:ji,taskNotification:Vs,tasks:Xi,uploadUnknownError:Bs,userHomes:Gi,workflow:Nn,yes:Ti},Symbol.toStringTag,{value:"Module"})),fr:Gr};let Tr=localStorage?.getItem("user.language")||window?.navigator?.language||"fr";const $t=Pt.createI18n({locale:Tr,messages:zn,fallbackLocale:"fr",silentTranslationWarn:!0,silentFallbackWarn:!0}),pt=$t.global.t;class na extends Error{constructor(t,a,i){super(t),this.code=a,this.cause=i}}function An(l,t){let a=pt("error."+l+"."+t.status);return a||(a=pt("error."+t.status)),a||(a=t.message),a}function P(l,t){let a;if(t.status===400){let i;if(t.response?.error?.message)throw new na(t.response?.error?.message,t.status,t);try{i=typeof t.message=="string"?JSON.parse(t.message):t.message}catch(o){console.error("Erreur de parsing JSON :",o),i={}}a=i?.error?.briefSummary||An(l,t)}else a=An(l,t);return new na(a,t.status,t)}class wr{updateNodeError(t){if(t.status===409){let a;try{a=typeof t.message=="string"?JSON.parse(t.message):t.message}catch(o){console.error("Erreur de parsing JSON :",o),a={}}const i=a?.error?.briefSummary||"";if(i.includes("verrouillé")||i.includes("locked"))throw P(pt("updateNodeLocked"),t)}throw P("updateNode",t)}uploadFileError(t,a){throw t.status===409?new na(pt("error.uploadFile.409",{filename:a}),t.status,t):P("uploadFile",t)}deleteNodeError(t,a){switch(t.status){case 403:case 404:case 409:throw new na(pt(`error.deleteNode.${t.status}`,{type:pt(a)}),t.status,t);default:throw P("deleteNode",t)}}getUploadErrors(t){let a=[];return t.forEach(i=>{a.push({severity:"error",content:pt("uploadUnknownError",{error:i.message})})}),a.filter((i,o)=>o===a.findIndex(s=>i.content===s.content))}}function Qa(l){let t;if(l.error)l.error.response?t=l.error.response:l.error.message&&(t=l.error.message);else if(l.message)try{t=JSON.parse(l.message).error}catch(a){console.error("Login error",a),t=l.message}else t=l;if(t.statusCode)switch(t.statusCode){case 400:t.message=pt("error.login.400");break;case 401:t.message=pt("error.login.401");break;case 403:t.message=pt("error.login.403");break;case 502:t.message=pt("alfrescoError");break;default:t.message=t.statusText?t.statusText:t.message}return t}const kt=new wr;class Ir{constructor(){this.lruNode=new qe({maxSize:50,maxAge:3e4}),this.lruChildren=new qe({maxSize:50,maxAge:5e4}),this.lruParents=new qe({maxSize:20,maxAge:3e4}),this.lruDocumentLibrary=new qe({maxSize:20,maxAge:2e3}),this.lruVersionHistory=new qe({maxSize:5,maxAge:1e4}),this.lruHomeFolder=new qe({maxSize:50,maxAge:300*1e3}),this.lruIsFolderInUserHome=new qe({maxSize:50,maxAge:300*1e3})}getNode(t){if(this.lruNode.has(t))return Promise.resolve(this.lruNode.get(t));const a={include:["isFavorite","properties","allowableOperations","permissions","path","isLocked"]};return ge.getNode(t,a).then(i=>(this.lruNode.set(t,i.entry),i.entry))}getNodeContent(t,a){const i={attachment:a};return ge.getNodeContent(t,i).catch(o=>{throw P("getVersionContent",o)})}createNode(t,a){return ge.createNode(t,a).catch(i=>{throw P("createNodeError",i)})}getChildren(t,a=10,i=0,o=!1){const s={include:["isFavorite","properties","allowableOperations","permissions","path","isLocked"],maxItems:a,skipCount:i};return this.getChildrenWithOpts(t,s,o)}getChildrenWithOpts(t,a,i=!1){const o=JSON.stringify({id:t,opts:a});return!i&&this.lruChildren.has(o)?Promise.resolve(this.lruChildren.get(o)):(a={...{include:["isFavorite","properties","allowableOperations","permissions","path","isLocked"]},...a},ge.listNodeChildren(t,a).then(n=>{let r=n.list.entries.map(m=>m.entry).filter(m=>m.name==="documentLibrary")[0];return r?ge.listNodeChildren(r.id,a).then(m=>{const h={documentLibrary:r,children:m.list.entries.map(u=>u.entry),pagination:m.list.pagination};return this.lruChildren.set(o,h),h}):ge.listNodeChildren(t,a).then(m=>{const h={children:m.list.entries.map(u=>u.entry),pagination:m.list.pagination};return this.lruChildren.set(o,h),h})}))}getDirectChildren(t,a){const i=JSON.stringify({id:t,opts:a,direct:!0});return this.lruChildren.has(i)?Promise.resolve(this.lruChildren.get(i)):(a={...{include:["isFavorite","properties","allowableOperations","permissions","path","isLocked"]},...a},ge.listNodeChildren(t,a).then(s=>{const c={children:s.list.entries.map(r=>r.entry),pagination:s.list.pagination};return this.lruChildren.set(i,c),c}))}updateNode(t,a){return ge.updateNode(t,a).then(i=>(this.lruNode.delete(t),i)).catch(i=>{throw kt.updateNodeError(i)})}updateMimeType(t,a){return ge.getNodeContent(t).then(i=>ge.put({path:"/nodes/{nodeId}/content",pathParams:{nodeId:t},queryParams:{majorVersion:!1},contentTypes:[a],bodyParam:i})).catch(i=>{throw kt.updateNodeError(i)})}checkVersion(t){return ge.getNode(t).then(a=>a.entry).then(a=>{if(!a.aspectNames.find(i=>i==="cm:versionable")){const i={aspectNames:[...a.aspectNames,"cm:versionable"]};return ge.updateNode(t,i).then(()=>"1.0").catch(o=>{if(o.status===403)console.warn("Can’t add version - Forbidden");else throw P("updateNode",o)})}})}deleteNode(t,a){const i={};return ge.deleteNode(t,i).catch(o=>{kt.deleteNodeError(o,a)})}getParents(t){if(this.lruParents.has(t))return Promise.resolve(this.lruParents.get(t));const a={include:["isFavorite","properties","path"]};return ge.listParents(t,a).then(i=>{let o=i.list.entries.map(n=>n.entry),s=o[0];return s&&s.name==="documentLibrary"?this.getParents(s.id).then(n=>{const c={documentLibrary:s,supParent:n};return this.lruParents.set(t,c),c}):(this.lruParents.set(t,o[0]),o[0])})}getDocumentLibrary(t){if(this.lruDocumentLibrary.has(t))return Promise.resolve(this.lruDocumentLibrary.get(t));const a={include:["isFavorite","properties","allowableOperations","permissions"]};return ge.listNodeChildren(t,a).then(i=>{const s=i.list.entries.map(n=>n.entry).find(n=>n.name==="documentLibrary");return this.lruDocumentLibrary.set(t,s),s})}updateContentNode(t,a,i,o){let s={majorVersion:i,comment:o};return ge.updateNodeContent(t,a,s).catch(n=>{throw P("updateContentNode",n)})}copyNode(t,a,i){const o=i!==null?{targetParentId:a,name:i}:{targetParentId:a},s={include:["path"]};return ge.copyNode(t,o,s).catch(n=>{throw P("copyNode",n)})}moveNode(t,a,i,o){if(!t)throw new Error("moveNode: mandatory id");if(!a)throw new Error("moveNode: mandatory targetParentId");let s={targetParentId:a};return i&&(s={...s,name:i}),o||(o={include:["path"]}),ge.moveNode(t,s,o).catch(n=>{throw P("moveNode",n)})}createSharedLink(t){const a={nodeId:t.id,expiresAt:null};return yl.createSharedLink(a).catch(i=>{throw P("createSharedLink",i)})}deleteSharedLink(t){return yl.deleteSharedLink(t).catch(a=>{throw P("deleteSharedLink",a)})}revertVersion(t,a,i){const o={majorVersion:!1,comment:i},s={include:["properties"]};return Rt.revertVersion(t,a,o,s).catch(n=>{throw P("revertVersion",n)})}listNodeVersionHistory(t){if(this.lruVersionHistory.has(t))return Promise.resolve(this.lruVersionHistory.get(t));const a={include:["properties"]};return Rt.listVersionHistory(t,a).then(i=>(this.lruVersionHistory.set(t,i),i)).catch(i=>{throw P("listNodeVersionHitory",i)})}getVersionContent(t,a,i){const o={attachment:i};return Rt.getVersionContent(t,a,o).catch(s=>{throw P("getVersionContent",s)})}getSharedLink(t){return yl.getSharedLink(t).catch(a=>{throw P("sharedLink",a)})}getSharedLinkContent(t){const a={attachment:!0};return yl.getSharedLinkContent(t,a).catch(i=>{throw P("sharedLinkContent",i.error)})}getSharedLinkRenditionContent(t){return yl.getSharedLinkRenditionContent(t,"pdf").catch(a=>{throw P("sharedLinkRenditionContent",a.error)})}getHomeFolderFromUser(t){if(this.lruHomeFolder.has(t))return Promise.resolve(this.lruHomeFolder.get(t));const a={query:{language:"afts",query:`TYPE:"cm:person" AND cm:userName:${t}`},include:["permissions","properties","allowableOperations","path"]};return mt.search(a).then(i=>(this.lruHomeFolder.set(t,i),i))}getUserHomeNode(){const t="userHomeNode";if(this.lruHomeFolder.has(t))return Promise.resolve(this.lruHomeFolder.get(t));const a={query:{language:"afts",query:'PATH:"//app:company_home/app:user_homes"'},include:["permissions","properties","allowableOperations","path"]};return mt.search(a).then(i=>(this.lruHomeFolder.set(t,i),i))}isFolderInUserHome(t,a){const i=JSON.stringify({nodeId:t,homeFolderId:a});return this.lruIsFolderInUserHome.has(i)?Promise.resolve(this.lruIsFolderInUserHome.get(i)):this.getNode(t).then(o=>{const s=o.path.elements.some(n=>n.id===a);return this.lruIsFolderInUserHome.set(i,s),s}).catch(o=>(console.error("Error fetching node:",o),!1))}}const V=new Ir;class fr{constructor(){this.lruWorkspaces=new qe({maxSize:100,maxAge:3e4})}getWorkspaces(){const t="workspaces";if(this.lruWorkspaces.has(t))return Promise.resolve(this.lruWorkspaces.get(t));const a={skipCount:0,maxItems:1e3};return Ce.listSites(a).then(i=>{const o=i.list.entries.map(s=>s.entry);return this.lruWorkspaces.set(t,o),o}).catch(i=>{throw P("getWorkspaces",i)})}searchAllWorkspaces(t=""){const a=`searchAllWorkspaces_${t}`;if(this.lruWorkspaces.has(a))return Promise.resolve(this.lruWorkspaces.get(a));const i={query:{query:"TYPE: 'st:site' "+t},include:["allowableOperations","properties","aspectNames"],paging:{maxItems:1e3,skipCount:0},localization:{locales:["fr_FR"]}};return mt.search(i).then(o=>{const s=o.list.entries.map(n=>{let c=n.entry;return c.title=n.entry.properties["cm:title"],c.visibility=n.entry.properties["st:siteVisibility"],c.typeEspace=n.entry.properties["pm:typeEspace"],c});return this.lruWorkspaces.set(a,s),s}).catch(o=>{throw P("searchAllWorkspaces",o)})}getWorkspace(t){const a=`workspace_${t}`;if(this.lruWorkspaces.has(a))return Promise.resolve(this.lruWorkspaces.get(a));const i={};return Ce.getSite(t,i).then(o=>(this.lruWorkspaces.set(a,o.entry),o.entry)).catch(o=>{throw P("getWorkspace",o)})}getWorkspaceMemberships(t){const a=`workspaceMemberships_${t}`;if(this.lruWorkspaces.has(a))return Promise.resolve(this.lruWorkspaces.get(a));const i={};return Ce.listSiteMemberships(t,i).then(o=>{const s=o.list.entries.map(n=>n.entry);return this.lruWorkspaces.set(a,s),s}).catch(o=>{throw P("getWorkspaceMemberships",o)})}getWorkspaceMembershipsWithOpts(t,a){const i=`workspaceMembershipsWithOpts_${t}_${JSON.stringify(a)}`;return this.lruWorkspaces.has(i)?Promise.resolve(this.lruWorkspaces.get(i)):Ce.listSiteMemberships(t,a).then(o=>(this.lruWorkspaces.set(i,o),o)).catch(o=>{throw P("getWorkspaceMemberships",o)})}getWorkspaceGroupsWithOpts(t,a){const i=`workspaceGroupsWithOpts_${t}_${JSON.stringify(a)}`;return this.lruWorkspaces.has(i)?Promise.resolve(this.lruWorkspaces.get(i)):Ce.listSiteGroups(t,a).then(o=>{const s=o.list.entries.map(n=>n.entry);return this.lruWorkspaces.set(i,s),s}).catch(o=>{throw P("getWorkspaceGroups",o)})}getWorkspaceGroups(t){const a=`workspaceGroups_${t}`;if(this.lruWorkspaces.has(a))return Promise.resolve(this.lruWorkspaces.get(a));const i={};return Ce.listSiteGroups(t,i).then(o=>{const s=o.list.entries.map(n=>n.entry);return this.lruWorkspaces.set(a,s),s}).catch(o=>{throw P("getWorkspaceGroups",o)})}createWorkspace(t,a,i,o){const s={id:t,title:a,description:i,visibility:o};return Ce.createSite(s).catch(n=>{throw P("createWorkspace",n)})}requestJoinWorkspace(t,a){const i={id:a},o={};return Ce.createSiteMembershipRequestForPerson(t,i,o).catch(s=>{throw P("requestJoinWorkspace",s)})}_invalidateMembersCache(t){const a=[];for(const i of this.lruWorkspaces.keys())(i.startsWith(`workspaceMemberships_${t}`)||i.startsWith(`workspaceMembershipsWithOpts_${t}`)||i.startsWith(`workspaceGroups_${t}`)||i.startsWith(`workspaceGroupsWithOpts_${t}`))&&a.push(i);a.forEach(i=>this.lruWorkspaces.delete(i))}addWorkspaceUser(t,a,i){const o={role:i,id:a},s={};return Ce.createSiteMembership(t,o,s).then(n=>(this._invalidateMembersCache(t),n)).catch(n=>{throw P("addWorkspaceUser",n)})}addWorkspaceGroup(t,a,i){const o={role:i,id:a},s={};return Ce.createSiteGroupMembership(t,o,s).then(n=>(this._invalidateMembersCache(t),n)).catch(n=>{throw P("addWorkspaceGroup",n)})}updateWorkspaceUserRole(t,a,i){const o={role:i},s={};return Ce.updateSiteMembership(t,a,o,s).then(n=>(this._invalidateMembersCache(t),n)).catch(n=>{throw P("updateWorkspaceUserRole",n)})}updateWorkspaceGroupRole(t,a,i){const o={role:i},s={};return Ce.updateSiteGroupMembership(t,a,o,s).then(n=>(this._invalidateMembersCache(t),n)).catch(n=>{throw P("updateWorkspaceGroupRole",n)})}deleteWorkspaceUser(t,a){return Ce.deleteSiteMembership(t,a).then(i=>(this._invalidateMembersCache(t),i)).catch(i=>{throw P("deleteWorkspaceUser",i)})}deleteWorkspaceGroup(t,a){return Ce.deleteSiteGroupMembership(t,a).then(i=>(this._invalidateMembersCache(t),i)).catch(i=>{throw P("deleteWorkspaceGroup",i)})}updateActeWorkspaceType(t,a){const i={properties:{"pm:typeEspace":a},aspectNames:["cm:tagscope","pm:specializeEspace","cm:titled","cm:auditable","am:isPublic"]};return ge.updateNode(t,i).catch(o=>{throw P("updateWorkspaceType",o)})}updateWorkspaceType(t,a){const i={properties:{"pm:typeEspace":a}};return ge.updateNode(t,i).catch(o=>{throw P("updateWorkspaceType",o)})}async searchUsers(t,a=25){const i=t.trim(),o={query:{language:"afts",query:`TYPE:"cm:person" AND (cm:userName:"*${i}*" OR cm:firstName:"*${i}*" OR cm:lastName:"*${i}*" OR cm:email:"*${i}*")`},include:["aspectNames","properties"],paging:{maxItems:a,skipCount:0}};return mt.search(o).then(s=>s.list.entries.map(n=>{const c=n.entry.properties,r=c["cm:firstName"]||"",m=c["cm:lastName"]||"",h=c["cm:email"]||"",u=c["cm:userName"]||n.entry.name;return{id:u,firstname:r,lastname:m,email:h,label:`${r} ${m} (${u} - ${h})`.trim(),group:!1}})).catch(s=>{throw P("searchUsers",s)})}async searchGroups(t,a=25){const i=t.trim(),n={query:{language:"afts",query:`TYPE:"cm:authorityContainer" AND ${i.startsWith("GROUP_")?`@cm\\:authorityName:"${i}*"`:`(@cm\\:authorityName:"*${i}*" OR @cm\\:authorityDisplayName:"*${i}*" OR @cm\\:description:"*${i}*")`}`},include:["properties"],paging:{maxItems:a,skipCount:0}};return mt.search(n).then(c=>{const r=["site_","SITE_","ALFRESCO_","EMAIL_"];return c.list.entries.map(m=>{const h=m.entry.properties,u=h["cm:authorityName"];return{id:u,label:h["cm:authorityDisplayName"]||u,group:!0}}).filter(m=>!r.some(h=>m.label.startsWith(h)))}).catch(c=>{throw P("searchGroups",c)})}deleteWorkspace(t){const a={};return Ce.deleteSite(t,a).catch(i=>{throw P("deleteWorkspace",i)})}updateWorkspace(t,a){return Ce.updateSite(t,a).catch(i=>{throw P("updateWorkspace",i)})}}const je=new fr,xe=$.defineStore({id:"NavigationStore",state:()=>({currentNode:null,totalRecordNodes:null,workspace:null,workspaceInfo:null,nodes:[],files:[],folders:[],children:[],loading:!0,emptyFolder:!1,role:null,canUpload:!1,pagination:null,isInConsultation:!1,isInUserHome:!1,hasNoUserHome:!1}),actions:{setIsInUserHome(l){this.isInUserHome=l},setHasNoUserHome(l){this.hasNoUserHome=l},load(l,t,a){return!a&&l===this.workspace?.id&&t===this.currentNode?.id?Promise.resolve():(this.loading=!0,this.emptyFolder=!1,this.pagination=null,je.getWorkspace(l).then(i=>(this.workspace=i,this.role=i.role,this.visibility=i.visibility,t?V.getNode(t).then(o=>o):V.getNode(i.guid).then(o=>(this.workspaceInfo=o,o)))).then(i=>(this.canUpload=i.allowableOperations?.includes("create")||!1,V.getChildren(i.guid||i.id,500,0,a).then(o=>(o.documentLibrary?this.currentNode=o.documentLibrary:this.currentNode=i,this.canUpload=this.currentNode.allowableOperations?.includes("create")||!1,this.children=o.children,this.pagination=o.pagination,this.children.length>0?(this.folders=this.children.filter(s=>s.isFolder),this.files=this.children.filter(s=>s.isFile)):(this.folders=[],this.files=[],this.emptyFolder=!0),this.loading=!1,i)))))},loadWithOpts(l,t,a,i){if(!a&&l===this.workspace?.id&&t===this.currentNode?.id)return Promise.resolve();this.loading=!0,this.emptyFolder=!1,this.pagination=null;let o;return l?(this.isInUserHome=!1,o=je.getWorkspace(l)):o=V.getUserHomeNode().then(s=>(this.isInUserHome=!0,s)),o.then(s=>(this.workspace=s,this.role=s.role,this.visibility=s.visibility,t?V.getNode(t).then(n=>n):V.getNode(s.guid).then(n=>(this.workspaceInfo=n,n)))).then(s=>(this.canUpload=s.allowableOperations?.includes("create")||!1,V.getChildrenWithOpts(s.guid||s.id,i,a).then(n=>(this.totalRecordNodes=n.pagination.totalItems,n.documentLibrary?this.currentNode=n.documentLibrary:this.currentNode=s,this.canUpload=this.currentNode.allowableOperations?.includes("create")||!1,this.children=n.children,this.pagination=n.pagination,this.children.length>0?(this.folders=this.children.filter(c=>c.isFolder),this.files=this.children.filter(c=>c.isFile)):(this.folders=[],this.files=[],this.emptyFolder=!0),this.loading=!1,s))))},loadOnActes(l,t,a){return!a&&l===this.workspace?.id&&t===this.currentNode?.id?Promise.resolve():(this.loading=!0,this.emptyFolder=!1,this.pagination=null,je.getWorkspace(l).then(i=>(this.workspace=i,this.role=i.role,this.visibility=i.visibility,t?V.getNode(t).then(o=>o):V.getNode(i.guid).then(o=>(this.workspaceInfo=o,o)))).then(i=>(this.canUpload=i.allowableOperations?.includes("create")||!1,V.getChildren(i.guid||i.id,500,0,a).then(o=>(o.documentLibrary&&V.getChildren(o.documentLibrary.id,500,0,a).then(async s=>{const n=[];for(const m of s.children){const u=(await V.getChildren(m.id,500,0,a)).children.filter(y=>y.nodeType==="cm:folder").map(y=>V.getChildren(y.id,500,0,a)),b=await Promise.all(u);n.push(b)}const r=n.flat(2).flat();this.files=r.flatMap(m=>m.children),this.pagination={count:this.files.length,hasMoreItems:!1,maxItems:null,skipCount:null,totalItems:this.files.length}}),this.currentNode=i,t&&(this.canUpload=this.currentNode.allowableOperations?.includes("create")||!1,this.children=o.children,this.pagination=o.pagination,this.children.length>0?(this.folders=this.children.filter(s=>s.isFolder),this.files=this.children.filter(s=>s.isFile)):(this.folders=[],this.files=[],this.emptyFolder=!0),this.loading=!1),i)))))}}}),Ba="|";class vr{async getInitialTree(){try{const a=(await je.searchAllWorkspaces("AND NOT pm:typeEspace:'actes'")).map(async o=>{const s=await V.getDocumentLibrary(o.id);return{key:o.id,label:o.title,icon:"pi pi-fw pi-inbox",data:s,children:[],leaf:!1}});return(await Promise.all(a)).filter(o=>o.data!==void 0).sort((o,s)=>o.label.localeCompare(s.label))}catch(t){return console.error("Error initializing tree:",t),[]}}buildPathKeys(t){if(xe().isInUserHome)return this.buildPathKeysInUserHome(t);{const a=t.path.elements;let i="";const o=[];for(const s of a){let n=null;s?.nodeType==="st:site"?n=s.id:s?.isFolder&&s.name!=="documentLibrary"&&(n=i?i+Ba+s.id:s.id),n&&n.charAt(0)==="|"&&(n=n.slice(1)),n&&(o.push({key:n,node:s}),i=n)}return o}}buildPathKeysInUserHome(t){const a=t.path.elements.slice(2);let i="",o=[];for(const s of a){let n=null;n=s.id,s?.isFolder&&s.name!=="documentLibrary"&&(n=i?i+Ba+s.id:s.id),n&&n.charAt(0)==="|"&&(n=n.slice(1)),n&&(o.push({key:n,node:s}),i=n)}return o}async expandPathKeys({keys:t,nodes:a,expandedKeys:i,onNodeExpand:o,currentNode:s}){let n="";for(const{key:r,node:m}of t)await o({key:r,data:m},a),i[r]=!0,n=r;const c=n+Ba+s.id;await o({key:c,data:s},a),i[c]=!0}}const Ea=new vr,ca="|",Lr={name:"TreeExplorer",components:{PrimeTabView:xo,PrimeTabPanel:kl,PrimeTree:wc},inject:["actionsService"],props:{currentNode:{type:Object,default:()=>({})},showUserHome:{type:Boolean,default:!1},showFiles:{type:Boolean,default:!1}},emits:["selectNode"],data(){return{activeTab:0,userHomesNodes:[],nodes:[],selectedKey:null,splitedKey:null,expandedKeys:{}}},async mounted(){try{const l=[this.initTree()];this.showUserHome&&l.push(this.initUserHomeTree());const[t,a]=await Promise.all(l);this.nodes=t,this.showUserHome&&(this.userHomesNodes=a),this.currentNode.path?await this.openCurrentPath():console.warn("TreeExplorer: can’t select folder, no path on current node")}catch(l){console.error("Error initializing trees:",l)}},methods:{async initTree(){this.splitedKey=null;try{return this.actionsService?.getInitialTree?await this.actionsService.getInitialTree():await Ea.getInitialTree()}catch(l){return console.error("Error initializing tree:",l),[]}},async initUserHomeTree(){let l={include:["isFavorite","properties","allowableOperations","permissions","path","isLocked","aspectNames"],skipCount:0,maxItems:100},t=await V.getUserHomeNode();return(await V.getChildrenWithOpts(t.list.entries[0].entry.id,l,!1)).children.filter(i=>!i.aspectNames||!i.aspectNames.includes("pm:hidden")).map(i=>({key:i.id,label:i.name,icon:"pi pi-fw pi-inbox",data:i,children:[],leaf:!1}))},onNodeSelect(l){this.$emit("selectNode",l.data,l.label)},async onNodeExpand(l,t){let a={include:["isFavorite","properties","allowableOperations","permissions","path","isLocked","aspectNames"],skipCount:0,maxItems:500};try{let s=(await V.getChildrenWithOpts(this.getNodeId(l.data),a,!1)).children.filter(n=>n.aspectNames&&n.aspectNames.includes("pm:hidden")?!1:this.showFiles?n.isFolder||n.isFile:n.isFolder).map(n=>({key:`${l.key}${ca}${n.id}`,label:n.name,icon:n.isFolder?"ri-folder-2-line":"ri-file-line",data:n,children:[],leaf:n.isFile})).sort();return this.addChildren(s,l,t)}catch(i){console.error("getNodeChildren Error",i)}},addChildren(l,t,a){return this.splitedKey=t.key.split(ca),this.splitedKey.length===1?a.filter(i=>i.key===t.key).map(i=>i.children=l):this.addElementChildren(a,t.key,l,0)},addElementChildren(l,t,a,i){let o=l.find(s=>this.containsKey(s.key,t,i));if(o){if(o.key===t)return o.children=a,null;if(o.children)return this.addElementChildren(o.children,t,a,i+1),null}},containsKey(l,t,a){let i=t.split(ca),o=l.split(ca);for(let s=0;s<=a;s++)if(i[s]!==o[s])return!1;return!0},getNodeId(l){if(l===void 0)throw Error("Can't get NodeId from undefined");return l.guid?l.guid:l.id},async openCurrentPath(){try{this.activeTab=xe().isInUserHome?1:0;let l=xe().isInUserHome?this.userHomesNodes:this.nodes,t=null;this.actionsService?.buildPathKeys?t=this.actionsService.buildPathKeys(this.currentNode):t=Ea.buildPathKeys(this.currentNode),await Ea.expandPathKeys({keys:t,nodes:l,expandedKeys:this.expandedKeys,onNodeExpand:this.onNodeExpand,currentNode:this.currentNode})}catch(l){console.error("Error opening path:",l)}}}};function Dr(l,t,a,i,o,s){const n=e.resolveComponent("PrimeTree"),c=e.resolveComponent("PrimeTabPanel"),r=e.resolveComponent("PrimeTabView");return e.openBlock(),e.createBlock(r,{"active-index":o.activeTab},{default:e.withCtx(()=>[e.createVNode(c,{header:l.$t("spaces")},{default:e.withCtx(()=>[e.createVNode(n,{"selection-keys":o.selectedKey,"onUpdate:selectionKeys":t[0]||(t[0]=m=>o.selectedKey=m),"expanded-keys":o.expandedKeys,"onUpdate:expandedKeys":t[1]||(t[1]=m=>o.expandedKeys=m),value:o.nodes,"selection-mode":"single","scroll-height":"40rem",class:"w-full",onNodeSelect:s.onNodeSelect,onNodeExpand:t[2]||(t[2]=m=>s.onNodeExpand(m,o.nodes))},null,8,["selection-keys","expanded-keys","value","onNodeSelect"])]),_:1},8,["header"]),a.showUserHome?(e.openBlock(),e.createBlock(c,{key:0,header:l.$t("userHomes")},{default:e.withCtx(()=>[e.createVNode(n,{"selection-keys":o.selectedKey,"onUpdate:selectionKeys":t[3]||(t[3]=m=>o.selectedKey=m),"expanded-keys":o.expandedKeys,"onUpdate:expandedKeys":t[4]||(t[4]=m=>o.expandedKeys=m),value:o.userHomesNodes,"selection-mode":"single",class:"w-full md:w-30rem","scroll-height":"40rem",onNodeSelect:s.onNodeSelect,onNodeExpand:t[5]||(t[5]=m=>s.onNodeExpand(m,o.userHomesNodes))},null,8,["selection-keys","expanded-keys","value","onNodeSelect"])]),_:1},8,["header"])):e.createCommentVNode("",!0)]),_:1},8,["active-index"])}const qt=H(Lr,[["render",Dr]]),Rr="st:site",kr={name:"CopyOrMovePopup",components:{TreeExplorer:qt,PrimeButton:w,PrimeDataView:So,PrimeMessage:Wt,PrimeDialog:ke},inject:["actionsService"],props:{currentNode:{type:Object,default:()=>({})},actionType:{type:String,default:"copy"},showUserHome:{type:Boolean,default:!1}},emits:["close"],data(){return{nodes:[],destination:null,destinationName:null,documentLibrary:null,displayError:!1,canPerformAction:!0,errorCopy:null,errorMove:null}},created(){this.selectionStore=Oe()},mounted(){this.nodes=this.selectionStore.nodes,this.displayError=!1,this.destination=null,this.documentLibrary=null,this.destinationName=null,this.canPerformAction=!0,this.errorCopy=null,this.errorMove=null},methods:{closePopup(l){this.$emit("close",l)},selectNode(l,t){this.displayError=!1,this.canPerformAction=!0,this.errorCopy=null,this.errorMove=null,this.destination=l,this.destinationName=t,this.canWrite(l)||(this.actionType==="copy"?(this.errorCopy=this.$t("errors.errorMoveRights"),this.displayError=!0):(this.errorMove=this.$t("errors.errorMoveRights"),this.displayError=!0),this.canPerformAction=!1)},async handleAction(){if(this.destination===null){this.actionType==="copy"?this.errorCopy=this.$t("noSelectedDestination"):this.errorMove=this.$t("noSelectedDestination"),this.displayError=!0;return}let l=null;this.actionsService?.canDropInDestination(this.destination)?l=this.actionsService.canDropInDestination(this.destination):l=!0,l?this.handleNodeAction():(this.actionType==="copy"?this.errorCopy=this.$t("cannotCopyHere"):this.errorMove=this.$t("cannotMoveHere"),this.displayError=!0)},handleNodeAction(){let l=this.destination.nodeType===Rr?this.documentLibrary.id:this.destination.id;const t=this.nodes.map(a=>this.getItemName(l,a).then(i=>this.actionType==="copy"?V.copyNode(a.id,l,i):V.moveNode(a.id,l,i)));Promise.allSettled(t).then(a=>{let i=a.filter(s=>s.status==="fulfilled").map(s=>s.value.entry?.name),o=a.filter(s=>s.status!=="fulfilled").map(s=>s.reason);i.length>0&&(this.selectionStore.resetSelection(),this.$toast.add({severity:"success",summary:this.$t("success"),detail:this.$t(this.actionType==="copy"?"node.successCopy":"node.successMove",{number:i.length}),life:5e3}),this.closePopup()),o.length>0&&this.$toast.add({severity:"error",summary:this.$t(this.actionType==="copy"?"errors.errorCopy":"errors.errorMove"),detail:o,life:5e3}),this.closePopup(!0)}).catch(a=>{this.$toast.add({severity:"error",summary:this.$t(this.actionType==="copy"?"errors.errorCopy":"errors.errorMove"),detail:a,life:5e3})})},getItemName(l,t){return V.getChildren(l,200,0,!0).then(a=>{let i=t.name,o=a.children,s=t.isFile?this.removeExtension(i):i,n=o.filter(c=>c.name.startsWith(s)).length;return n>0&&(i=t.isFile?`${s}-${n}.${this.getExtension(i)}`:`${s}-${n}`),i})},getExtension(l){let t=l.split(".");return t[t.length-1]},removeExtension(l){return l.substring(0,l.lastIndexOf("."))||l},canWrite(l){return!!l?.allowableOperations?.find(t=>t==="create")}}},Cr={class:"field grid card"},Fr={class:"col-3"},Vr={class:"mb-3 text-900"},xr={class:"w-full"},Sr={class:"flex align-items-center gap-2 text-700"},Jr={key:0,class:"ri-folder-2-line"},Ur={key:1,class:"ri-file-line"},Hr={class:"font-semibold"},Qr={class:"col-9"},Br={class:"w-full mb-2 text-900"},Er={key:0,class:"col-12 mb-2"},Pr={key:1,class:"col-12 mb-2"};function _r(l,t,a,i,o,s){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeMessage"),r=e.resolveComponent("PrimeDataView"),m=e.resolveComponent("TreeExplorer"),h=e.resolveComponent("PrimeDialog");return e.openBlock(),e.createBlock(h,{"data-testid":"copy-or-move-popup",header:l.$t(a.actionType==="copy"?"copyNode":"moveNode"),visible:"",modal:"",class:"popup popup--tree",onKeyup:t[1]||(t[1]=e.withKeys(u=>s.closePopup(!1),["esc"]))},{closeicon:e.withCtx(()=>[e.createVNode(n,{"data-testid":"copy-or-move-popup-close-button",icon:"ri-close-line","aria-label":l.$t("close"),outlined:"",text:"",severity:"secondary",autofocus:"false",onClick:t[0]||(t[0]=u=>s.closePopup(!1))},null,8,["aria-label"])]),footer:e.withCtx(()=>[e.createVNode(n,{"data-testid":"copy-or-move-popup-cancel-button",label:l.$t("cancel"),severity:"secondary",onClick:s.closePopup},null,8,["label","onClick"]),e.createVNode(n,{"data-testid":"copy-or-move-popup-submit-button",label:l.$t(a.actionType==="copy"?"copy":"move"),disabled:!o.canPerformAction,onClick:s.handleAction},null,8,["label","disabled","onClick"])]),default:e.withCtx(()=>[o.displayError?(e.openBlock(),e.createBlock(c,{key:0,"data-testid":"copy-or-move-popup-error-message",closable:!1,severity:"error"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.actionType==="copy"?o.errorCopy:o.errorMove),1)]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",Cr,[e.createElementVNode("div",Fr,[e.createElementVNode("div",Vr,e.toDisplayString(a.actionType==="copy"?"Copier les éléments suivants":"Déplacer les éléments suivants"),1),e.createVNode(r,{"data-testid":"copy-or-move-popup-items-list",value:o.nodes},{list:e.withCtx(u=>[e.createElementVNode("div",xr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.items,b=>(e.openBlock(),e.createElementBlock("div",{key:b.name,class:"mb-2"},[e.createElementVNode("span",Sr,[b.isFolder?(e.openBlock(),e.createElementBlock("i",Jr)):(e.openBlock(),e.createElementBlock("i",Ur)),e.createElementVNode("span",Hr,e.toDisplayString(b.name),1)])]))),128))])]),_:1},8,["value"])]),e.createElementVNode("div",Qr,[e.createElementVNode("label",Br,[e.createTextVNode(e.toDisplayString(l.$t("chooseDestination"))+" ",1),t[2]||(t[2]=e.createElementVNode("span",{class:"required"},"*",-1))]),e.createVNode(m,{"data-testid":"copy-or-move-popup-tree-explorer","current-node":a.currentNode,class:"tree","show-user-home":a.showUserHome,onSelectNode:s.selectNode},null,8,["current-node","show-user-home","onSelectNode"])]),o.destination?(e.openBlock(),e.createElementBlock("label",Er,e.toDisplayString(l.$t("destination",{dest:o.destinationName})),1)):(e.openBlock(),e.createElementBlock("label",Pr,e.toDisplayString(l.$t("noDestination")),1))])]),_:1},8,["header"])}const Pa=H(kr,[["render",_r]]),Mn='(function(){"use strict";class g{value;next;constructor(e){this.value=e}}class v{#e;#t;#s;constructor(){this.clear()}enqueue(e){const t=new g(e);this.#e?(this.#t.next=t,this.#t=t):(this.#e=t,this.#t=t),this.#s++}dequeue(){const e=this.#e;if(e)return this.#e=this.#e.next,this.#s--,this.#e||(this.#t=void 0),e.value}peek(){if(this.#e)return this.#e.value}clear(){this.#e=void 0,this.#t=void 0,this.#s=0}get size(){return this.#s}*[Symbol.iterator](){let e=this.#e;for(;e;)yield e.value,e=e.next}*drain(){for(;this.#e;)yield this.dequeue()}}function w(s){m(s);const e=new v;let t=0;const o=()=>{t<s&&e.size>0&&(e.dequeue()(),t++)},p=()=>{t--,o()},r=async(a,n,i)=>{const l=(async()=>a(...i))();n(l);try{await l}catch{}p()},u=(a,n,i)=>{new Promise(l=>{e.enqueue(l)}).then(r.bind(void 0,a,n,i)),(async()=>(await Promise.resolve(),t<s&&o()))()},d=(a,...n)=>new Promise(i=>{u(a,i,n)});return Object.defineProperties(d,{activeCount:{get:()=>t},pendingCount:{get:()=>e.size},clearQueue:{value(){e.clear()}},concurrency:{get:()=>s,set(a){m(a),s=a,queueMicrotask(()=>{for(;t<s&&e.size>0;)o()})}}}),d}function m(s){if(!((Number.isInteger(s)||s===Number.POSITIVE_INFINITY)&&s>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const h=w(3);self.onmessage=async s=>{const{type:e,payload:t}=s.data;if(e==="start"){if(!t.files||!t.nodeId)return;const o=t.files,p=t.nodeId,r=o.length;let u=0;const d=o.map(n=>h(()=>(self.postMessage({type:"requestUpload",payload:{item:n,nodeId:p}}),new Promise(i=>{const l=f=>{const{type:c,payload:y}=f.data;c==="uploadResult"&&y.fileName===n.file.name&&(self.removeEventListener("message",l),u++,self.postMessage({type:"progress",payload:{completed:u,total:r}}),i(y))};self.addEventListener("message",l)})))),a=await Promise.all(d);self.postMessage({type:"complete",payload:a})}if(e==="startClassificationPlan"){if(!t.files)return;const o=t.files,p=o.length;let r=0;const u=o.map(a=>h(()=>(self.postMessage({type:"requestClassificationPlanUpload",payload:{item:a}}),new Promise(n=>{const i=l=>{const{type:f,payload:c}=l.data;f==="uploadResult"&&c.fileName===a.fileName&&(self.removeEventListener("message",i),r++,self.postMessage({type:"progress",payload:{completed:r,total:p}}),n(c))};self.addEventListener("message",i)})))),d=await Promise.all(u);self.postMessage({type:"complete",payload:d})}}})();\n//# sourceMappingURL=upload.worker-DYhWdEjp.js.map\n',On=typeof self<"u"&&self.Blob&&new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);",Mn],{type:"text/javascript;charset=utf-8"});function Kr(l){let t;try{if(t=On&&(self.URL||self.webkitURL).createObjectURL(On),!t)throw"";const a=new Worker(t,{name:l?.name});return a.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),a}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(Mn),{name:l?.name})}}const _a=l=>{l.preventDefault(),l.returnValue="Des téléchargements sont en cours et seront annulés si vous quittez la page."},el=$.defineStore("upload",{state:()=>({isUploading:!1,files:[],progress:{completed:0,total:0},worker:null,activeRequests:{},classificationPlanFiles:[]}),getters:{overallMessage(l){const t=l.progress.total;if(t===0)return"";const a=l.files.filter(o=>o.status==="rejected").length,i=l.files.filter(o=>o.status==="error").length;return a===l.files.length?"Import annulé":l.isUploading?`Importation... (${l.progress.completed} / ${t})`:i>0?`Terminé avec ${i} erreur(s)`:"Import terminé"}},actions:{startUpload(l,t){console.log(`Attempting to start upload for node ${t}.`),console.log(`Current isUploading status: ${this.isUploading}`),!this.isUploading&&(this.initializeWorker(),this.isUploading=!0,this.progress={completed:0,total:l.length},this.files=l.map(a=>({name:a.file.name,status:"pending",message:"",percent:0})),window.addEventListener("beforeunload",_a),this.worker.postMessage({type:"start",payload:{files:l,nodeId:t}}))},initializeWorker(){this.worker||(this.worker=new Kr,this.worker.onmessage=async({data:l})=>{const{type:t,payload:a}=l;switch(t){case"requestUpload":await this.handleUploadRequest(a.item,a.nodeId);break;case"requestClassificationPlanUpload":await this.handleClassificationPlanUpload(a.item);break;case"progress":this.progress=a;break;case"complete":this.isUploading=!1,window.removeEventListener("beforeunload",_a),console.debug("Lot terminé. Résultats:",a),this.classificationPlanFiles=[];break}})},async handleUploadRequest(l,t){const a=l.file,i=this.files.find(c=>c.name===a.name);i&&(i.status="uploading");const o=l.relativePath||a.webkitRelativePath||"",s=o.split("/").slice(0,-1).join("/");let n;s?n={name:a.name,nodeType:"cm:content",renditions:"doclib",relativePath:o}:n={name:a.name,nodeType:"cm:content",renditions:"doclib"};try{const c=Xe.uploadFileWithProgress(t,n,a);this.activeRequests[a.name]=c;const r=await c;delete this.activeRequests[a.name],i&&(i.status="success",i.percent=100,i.id=r.entry.id,i.content=r.entry.content,i.isFile=r.entry.isFile,i.isFolder=r.entry.isFolder),this.worker.postMessage({type:"uploadResult",payload:{status:"fulfilled",value:r,fileName:a.name}})}catch(c){delete this.activeRequests[a.name];let r;try{r=kt.uploadFileError(c,a.name)}catch(m){r=m}i&&(i.status="error",i.message=r.message||"Erreur inconnue"),this.worker.postMessage({type:"uploadResult",payload:{status:"rejected",reason:r,fileName:a.name}})}},cancelUpload(l){const t=this.activeRequests[l];if(t&&typeof t.abort=="function"){t.abort(),delete this.activeRequests[l];const a=this.files.find(i=>i.name===l);a&&(a.status="rejected",a.message="Upload annulé"),this.worker?.postMessage({type:"uploadResult",payload:{status:"rejected",reason:new Error("Annulé"),fileName:l}})}},clearCompleted(){this.isUploading||(this.files=[],this.progress={completed:0,total:0})},startUploadWithClassificationPlan(l,t,a,i,o){if(console.log(`Attempting to start classification plan upload for ${a.length} files.`),console.log(`Current isUploading status: ${this.isUploading}`),this.isUploading)return;this.initializeWorker(),this.isUploading=!0,this.progress={completed:0,total:a.length},this.files=a.map(n=>({name:n.name,status:"pending",message:"",percent:0})),window.addEventListener("beforeunload",_a),this.classificationPlanFiles=a.map((n,c)=>({file:n,workspaceSiteId:l,pathFull:t,metadata:i,fileRenames:o,index:c}));const s=a.map((n,c)=>({fileName:n.name,fileSize:n.size,fileType:n.type,index:c}));this.worker.postMessage({type:"startClassificationPlan",payload:{files:s}})},async handleClassificationPlanUpload(l){const t=this.classificationPlanFiles[l.index];if(!t){console.error(`No stored file found for index ${l.index} (${l.fileName})`);return}const a=t.file,i=a.name,o=this.files.find(s=>s.name===i);o&&(o.status="uploading");try{const s=t.fileRenames?.find(h=>h.original===i),c={name:s?s.new:i,path:{root:`site:${t.workspaceSiteId}`,full:t.pathFull},properties:t.metadata},r=new FormData;r.append("file",a,a.name),r.append("fileSize",a.size.toString()),r.append("metadata",JSON.stringify(c));const m=await he.post("/alfresco/service/fr/jeci/pristy/nodes/inject",r,{withCredentials:!0,onUploadProgress:h=>{if(h.total&&o){const u=Math.round(h.loaded*100/h.total);o.percent=u}},headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"}});o&&(o.status="success",o.percent=100),this.worker.postMessage({type:"uploadResult",payload:{status:"fulfilled",value:m.data,fileName:i}})}catch(s){console.error(s);let n;try{n=kt.uploadFileError(s,i)}catch(c){n=c}o&&(o.status="error",o.message=n.message||"Erreur inconnue"),this.worker.postMessage({type:"uploadResult",payload:{status:"rejected",reason:n,fileName:i}})}}}}),Ka=$t.global.t;class $r{constructor(){this.lruUrls=new qe({maxSize:100,maxAge:300*1e3}),this.pendingRenditions=new Set,this.failedRenditions=new qe({maxSize:500,maxAge:300*1e3})}getThumbnailUrl(t){const a=`thumbnail_${t}`;if(this.lruUrls.has(a))return this.lruUrls.get(a);const i=jt.getDocumentThumbnailUrl(t);return this.lruUrls.set(a,i),i}getPreviewUrl(t){const a=`preview_${t}`;if(this.lruUrls.has(a))return this.lruUrls.get(a);const i=jt.getDocumentPreviewUrl(t);return this.lruUrls.set(a,i),i}getContentUrl(t){const a=`content_${t}`;if(this.lruUrls.has(a))return this.lruUrls.get(a);const i=jt.getContentUrl(t);return this.lruUrls.set(a,i),i}getVersionContentUrl(t,a){const i=`version_content_${t}_${a}`;if(this.lruUrls.has(i))return this.lruUrls.get(i);const o=jt.getVersionContentUrl(t,a);return this.lruUrls.set(i,o),o}uploadFile(t,a,i){return Va.uploadFile(i,null,t,null,a).on("progress",o=>{console.log("Percent :"+o.percent)}).then(o=>(this.createAllRendition(o.entry.id),o)).catch(o=>{kt.uploadFileError(o,i.name)})}createRendition(t,a){return this._createRendition(t,{id:a})}createAllRendition(t){return this._createRendition(t,[{id:"doclib"},{id:"imgpreview"}])}_createRendition(t,a){return ia.createRendition(t,a).catch(i=>{if(i.status===400){let o=JSON.parse(i.message);console.warn(o.error?.briefSummary)}else i.status===403?console.debug("Current user does not have permission for "+t):i.status===409?console.debug("All requested renditions already exist"):console.error(i)})}createVersionRendition(t,a,i){return Rt.createVersionRendition(t,a,{id:i})}getVersionRendition(t,a,i){return Rt.getVersionRendition(t,a,i)}handleThumbnailFallback(t){const a=t?.target;a&&requestAnimationFrame(()=>{const i=a.parentElement;if(i){i.style.display="none";const o=i.nextElementSibling;o&&(o.hidden=!1)}})}onImageLoadFailure(t,a){if(this.handleThumbnailFallback(t),!this.isThumbnailSupported(a))return;const i=a.id;this.pendingRenditions.has(i)||this.failedRenditions.has(i)||(this.pendingRenditions.add(i),this.createAllRendition(i).catch(o=>{this.failedRenditions.set(i,!0),o?.status===403?console.debug(`Permission denied for rendition on ${i}`):console.warn(`createAllRendition error ${o?.status} for ${i}`)}).finally(()=>{this.pendingRenditions.delete(i)}))}isThumbnailSupported(t){let a=["application/pdf","application/msword","application/rtf"],i=["image/svg+xml"];return t.isFile&&t.content.mimeType&&!i.includes(t.content.mimeType)&&(t.content.mimeType.startsWith("image/")||t.content.mimeType.startsWith("video/")||t.content.mimeType.startsWith("application/vnd")||a.includes(t.content.mimeType))}getRenditionUrl(t,a="pdf"){return Jo(async()=>ia.getRendition(t,a).then(i=>{if(i.entry.status==="NOT_CREATED")throw ia.createRendition(t,{id:a}),new Error("NOT_CREATED");if(i.entry.status==="CREATED")return jt.getRenditionUrl(t,a);throw new Error(i.entry.status)}).catch(i=>{if(i.status===409)return jt.getRenditionUrl(t,a);throw i}),{retries:3,factor:3,minTimeout:1500,maxTimeout:2e4,randomize:!1,onRetry:i=>{console.debug(`Retry getRenditionUrl for ${t}: ${i.message}`)}})}getVersionRenditionUrl(t,a,i="pdf"){return Jo(async()=>Rt.getVersionRendition(t,a,i).then(o=>{if(o.entry.status==="NOT_CREATED")throw Rt.createVersionRendition(t,a,{id:i}),new Error("NOT_CREATED");if(o.entry.status==="CREATED")return jt.getVersionRenditionUrl(t,a,i);throw new Error(o.entry.status)}).catch(o=>{if(console.error("createRendition",o),o.status===409)return jt.getVersionRenditionUrl(t,a,i);throw o}),{retries:5,onRetry:o=>{console.log("Retry getVersionRenditionUrl",o?.message)}})}getProtocolForFileExtension(t){return{doc:"ms-word",docx:"ms-word",docm:"ms-word",dot:"ms-word",dotx:"ms-word",dotm:"ms-word",rtf:"ms-word",xls:"ms-excel",xlsx:"ms-excel",xlsb:"ms-excel",xlsm:"ms-excel",xlt:"ms-excel",xltx:"ms-excel",xltm:"ms-excel",xlam:"ms-excel",ppt:"ms-powerpoint",pptx:"ms-powerpoint",pot:"ms-powerpoint",potx:"ms-powerpoint",potm:"ms-powerpoint",pptm:"ms-powerpoint",pps:"ms-powerpoint",ppsx:"ms-powerpoint",ppam:"ms-powerpoint",ppsm:"ms-powerpoint",sldx:"ms-powerpoint",sldm:"ms-powerpoint",vsd:"ms-visio",vss:"ms-visio",vst:"ms-visio",vsdx:"ms-visio",vsdm:"ms-visio",vssx:"ms-visio",vssm:"ms-visio",vstx:"ms-visio",vstm:"ms-visio"}[t]}getFileExtension(t){if(t){const a=t.match(/\.([^./?#]+)($|\?|#)/);return a?a[1]:null}return null}isDoc(t){return t.isFile&&t.content.mimeType!=="application/pdf"&&!t.content.mimeType.includes("image/")&&!t.content.mimeType.includes("video/")}toggleMSOfficeVue(t){if(t.isLocked){const a=t.properties["cm:lockType"]==="WRITE_LOCK"||t.properties["cm:lockType"]==="READ_ONLY_LOCK",o=t.properties["cm:lockOwner"].id!==localStorage.getItem("ACS_USERNAME");a&&o?this.$toast.add({severity:"error",summary:this.$t("node.locked"),detail:this.$t("node.lockedDetails"),life:3e3}):this.triggerEditOnlineAos(t)}else this.triggerEditOnlineAos(t)}canOpenWithMSOffice(t){const a=t.allowableOperations?.includes("update")||!1,i=de();return t.isFolder?!1:i.EDIT_WITH_MSOFFICE&&this.isMSOfficeDoc(t)&&a&&(this.isWindows()||this.isMacOs())}triggerEditOnlineAos(t){const a=de();let i=`${a.ALFRESCO_HOST}/${a.ALFRESCO_ROOT}/aos`,o="Sites",s="";if(t.path.name.length>256)s=`${i}/${o}/_aos_nodeid/${t.id}/${encodeURIComponent(t.name)}`;else{let r=t.path.elements.slice(1).map(m=>m.name).join("/");s=`${i}/${r}/${t.name}`}let n=Xe.getFileExtension(t.name),c=Xe.getProtocolForFileExtension(n);if(c===void 0){console.warn(`No protocol handler found for ${n}`);return}!this.isWindows()&&!this.isMacOs()?console.log("Only supported for Windows and Mac"):this.aos_tryToLaunchOfficeByMsProtocolHandler(c,s)}aos_tryToLaunchOfficeByMsProtocolHandler(t,a){let i=`${t}:ofe%7Cu%7C${a}`,o=document.createElement("iframe");o.style.display="none",o.src=i,document.body.appendChild(o),setTimeout(()=>{o&&document.body.removeChild(o)},500)}isWindows(){return this.getUserAgent().indexOf("win")!==-1}isMacOs(){return this.getUserAgent().indexOf("mac")!==-1}getUserAgent(){return navigator.userAgent.toLowerCase()}isMSOfficeDoc(t){const a=["application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.addin.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.template.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/msonenote","application/vnd.ms-officetheme","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.text-template","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.spreadsheet-template","application/vnd.oasis.opendocument.presentation","application/vnd.oasis.opendocument.presentation-template","application/vnd.oasis.opendocument.graphics","application/vnd.oasis.opendocument.graphics-template"];return t.content?.mimeType&&a.includes(t.content.mimeType)}uploadFileWithProgress(t,a,i){const o=el().files.find(s=>s.name===i.name);return Va.uploadFile(i,null,t,null,a).on("progress",s=>{o.percent=s.percent})}tooltipLockContent(t){const a=t.properties["cm:lockType"],i=t.properties["cm:lockOwner"]?.displayName??t.properties["cm:lockOwner"]?.id;switch(a){case"NODE_LOCK":return Ka("lock.nodeLock",{owner:i});case"READ_ONLY_LOCK":return Ka("lock.readOnlyLock",{owner:i});case"WRITE_LOCK":return Ka("lock.writeLock",{owner:i});default:return`Verrou inconnu (${a}).
9
+ {shareLink}`},errors:{errorEmptyEmail:"Please enter at least one email address",errorValidEmail:"One or more email addresses are invalid",errorEmptySubject:"Subject is required",errorSubjectTooShort:"Subject must be at least 6 characters long",errorEmptyMessage:"Message is required",errorSendMail:"Error sending email"}},Ei={title:"Chat",connecting:"Connecting...",reconnecting:"Reconnecting...",connectionError:"Chat connection error",notConfigured:"Chat is not configured. Please add your Rocket.Chat credentials in your profile.",configureInProfile:"Configure in profile",retry:"Retry",searchRooms:"Search rooms...",noRooms:"No rooms available",noMessages:"No messages yet. Start the conversation!",loadMore:"Load more messages",typeMessage:"Type a message...",send:"Send",attachFile:"Attach file",attachment:"Attachment",unknownUser:"Unknown user",userTyping:"{user} is typing...",usersTyping:"{user1} and {user2} are typing...",multipleUsersTyping:"Several people are typing...",sendError:"Error sending message",uploadError:"Error uploading file",openChat:"Open chat",closeChat:"Close chat",newMessages:"{count} new message(s)"},Pi="Close",_i="Edit",Ki="Open",$i="Download",qi="Restore",en="Publish",tn="Back",ln="Minimize",an="Reload",on="Duplicate",sn="Move up",nn="Move down",cn="Sort ascending",rn="Sort descending",dn="Search",bn="More actions",mn="Edit",pn="Home",un="File list",Zn="Preview",hn="Select all",yn="View mode",Wn="List",gn="Grid",Yn="Table",Nn={selectedDocuments:"Selected documents"},Xn={ok:"Configuration folder is accessible.",checking:"Checking configuration folder…",error:{title:"Configuration issue detected",description:'The configuration folder for instance "{instance}" is not accessible at the expected Alfresco path. Search features (classification plan, etc.) may not work correctly.',action:"Delete the existing folder and re-run pristy-init to recreate it with the correct structure."}},zn={en:Object.freeze(Object.defineProperty({__proto__:null,alfrescoError:Es,back:tn,cancel:Hs,canceledImport:Ci,cannotCopyHere:Mi,cannotMoveHere:Oi,chat:Ei,close:Pi,collab:Hi,config:xi,configHealth:Xn,currentFolder:ki,default:{taskNotification:Vs,fichier:xs,dossier:Ss,restrictedPermissions:Js,save:Us,cancel:Hs,error:Qs,uploadUnknownError:Bs,alfrescoError:Es,fichier_image:Ps,fichier_video:_s,fichier_pdf:Ks,fichier_eml:$s,fichier_texte:qs,fichier_tableur:ei,fichier_dessin:ti,fichier_presentation:li,fichier_markdown:ai,fichier_json:oi,fichier_xml:si,fichier_html:ii,fichier_css:ni,fichier_csv:ci,fichier_javascript:ri,fichier_sql:di,fichier_shell:bi,fichier_yaml:mi,fichier_python:pi,fichier_typescript:ui,fichier_php:Zi,fichier_java:hi,fichier_code:yi,fichier_config:Wi,fichier_log:gi,espace:Yi,menu:Ni,tasks:Xi,pdf:zi,sharelink:Ai,cannotCopyHere:Mi,cannotMoveHere:Oi,spaces:ji,userHomes:Gi,yes:Ti,no:wi,howMuchResult:Ii,howMuchSelected:fi,selectAllElement:vi,selectAllElementMoreThan:Li,deleteSelection:Di,dropFileFolders:Ri,currentFolder:ki,canceledImport:Ci,lock:Fi,membersPopup:Vi,config:xi,rechercheAvancee:Si,pdfTools:Ji,editor:Ui,collab:Hi,diffViewer:Qi,sendingMail:Bi,chat:Ei,close:Pi,delete:"Delete",edit:_i,open:Ki,download:$i,restore:qi,publish:en,back:tn,minimize:ln,reload:an,duplicate:on,moveUp:sn,moveDown:nn,sortAscending:cn,sortDescending:rn,search:dn,moreActions:bn,"add/removeFavorite":"Add/remove favorite",modify:mn,home:pn,fileList:un,previewPanel:Zn,selectAll:hn,layoutSelector:yn,layoutList:Wn,layoutGrid:gn,layoutTable:Yn,workflow:Nn,configHealth:Xn},deleteSelection:Di,diffViewer:Qi,dossier:Ss,download:$i,dropFileFolders:Ri,duplicate:on,edit:_i,editor:Ui,error:Qs,espace:Yi,fichier:xs,fichier_code:yi,fichier_config:Wi,fichier_css:ni,fichier_csv:ci,fichier_dessin:ti,fichier_eml:$s,fichier_html:ii,fichier_image:Ps,fichier_java:hi,fichier_javascript:ri,fichier_json:oi,fichier_log:gi,fichier_markdown:ai,fichier_pdf:Ks,fichier_php:Zi,fichier_presentation:li,fichier_python:pi,fichier_shell:bi,fichier_sql:di,fichier_tableur:ei,fichier_texte:qs,fichier_typescript:ui,fichier_video:_s,fichier_xml:si,fichier_yaml:mi,fileList:un,home:pn,howMuchResult:Ii,howMuchSelected:fi,layoutGrid:gn,layoutList:Wn,layoutSelector:yn,layoutTable:Yn,lock:Fi,membersPopup:Vi,menu:Ni,minimize:ln,modify:mn,moreActions:bn,moveDown:nn,moveUp:sn,no:wi,open:Ki,pdf:zi,pdfTools:Ji,previewPanel:Zn,publish:en,rechercheAvancee:Si,reload:an,restore:qi,restrictedPermissions:Js,save:Us,search:dn,selectAll:hn,selectAllElement:vi,selectAllElementMoreThan:Li,sendingMail:Bi,sharelink:Ai,sortAscending:cn,sortDescending:rn,spaces:ji,taskNotification:Vs,tasks:Xi,uploadUnknownError:Bs,userHomes:Gi,workflow:Nn,yes:Ti},Symbol.toStringTag,{value:"Module"})),fr:Gr};let Tr=localStorage?.getItem("user.language")||window?.navigator?.language||"fr";const $t=Pt.createI18n({locale:Tr,messages:zn,fallbackLocale:"fr",silentTranslationWarn:!0,silentFallbackWarn:!0}),pt=$t.global.t;class na extends Error{constructor(t,a,i){super(t),this.code=a,this.cause=i}}function An(l,t){let a=pt("error."+l+"."+t.status);return a||(a=pt("error."+t.status)),a||(a=t.message),a}function P(l,t){let a;if(t.status===400){let i;if(t.response?.error?.message)throw new na(t.response?.error?.message,t.status,t);try{i=typeof t.message=="string"?JSON.parse(t.message):t.message}catch(o){console.error("Erreur de parsing JSON :",o),i={}}a=i?.error?.briefSummary||An(l,t)}else a=An(l,t);return new na(a,t.status,t)}class wr{updateNodeError(t){if(t.status===409){let a;try{a=typeof t.message=="string"?JSON.parse(t.message):t.message}catch(o){console.error("Erreur de parsing JSON :",o),a={}}const i=a?.error?.briefSummary||"";if(i.includes("verrouillé")||i.includes("locked"))throw P(pt("updateNodeLocked"),t)}throw P("updateNode",t)}uploadFileError(t,a){throw t.status===409?new na(pt("error.uploadFile.409",{filename:a}),t.status,t):P("uploadFile",t)}deleteNodeError(t,a){switch(t.status){case 403:case 404:case 409:throw new na(pt(`error.deleteNode.${t.status}`,{type:pt(a)}),t.status,t);default:throw P("deleteNode",t)}}getUploadErrors(t){let a=[];return t.forEach(i=>{a.push({severity:"error",content:pt("uploadUnknownError",{error:i.message})})}),a.filter((i,o)=>o===a.findIndex(s=>i.content===s.content))}}function Qa(l){let t;if(l.error)l.error.response?t=l.error.response:l.error.message&&(t=l.error.message);else if(l.message)try{t=JSON.parse(l.message).error}catch(a){console.error("Login error",a),t=l.message}else t=l;if(t.statusCode)switch(t.statusCode){case 400:t.message=pt("error.login.400");break;case 401:t.message=pt("error.login.401");break;case 403:t.message=pt("error.login.403");break;case 502:t.message=pt("alfrescoError");break;default:t.message=t.statusText?t.statusText:t.message}return t}const kt=new wr;class Ir{constructor(){this.lruNode=new qe({maxSize:50,maxAge:3e4}),this.lruChildren=new qe({maxSize:50,maxAge:5e4}),this.lruParents=new qe({maxSize:20,maxAge:3e4}),this.lruDocumentLibrary=new qe({maxSize:20,maxAge:2e3}),this.lruVersionHistory=new qe({maxSize:5,maxAge:1e4}),this.lruHomeFolder=new qe({maxSize:50,maxAge:300*1e3}),this.lruIsFolderInUserHome=new qe({maxSize:50,maxAge:300*1e3})}getNode(t){if(this.lruNode.has(t))return Promise.resolve(this.lruNode.get(t));const a={include:["isFavorite","properties","allowableOperations","permissions","path","isLocked"]};return ge.getNode(t,a).then(i=>(this.lruNode.set(t,i.entry),i.entry))}getNodeContent(t,a){const i={attachment:a};return ge.getNodeContent(t,i).catch(o=>{throw P("getVersionContent",o)})}createNode(t,a){return ge.createNode(t,a).catch(i=>{throw P("createNodeError",i)})}getChildren(t,a=10,i=0,o=!1){const s={include:["isFavorite","properties","allowableOperations","permissions","path","isLocked"],maxItems:a,skipCount:i};return this.getChildrenWithOpts(t,s,o)}getChildrenWithOpts(t,a,i=!1){const o=JSON.stringify({id:t,opts:a});return!i&&this.lruChildren.has(o)?Promise.resolve(this.lruChildren.get(o)):(a={...{include:["isFavorite","properties","allowableOperations","permissions","path","isLocked"]},...a},ge.listNodeChildren(t,a).then(n=>{let r=n.list.entries.map(m=>m.entry).filter(m=>m.name==="documentLibrary")[0];return r?ge.listNodeChildren(r.id,a).then(m=>{const h={documentLibrary:r,children:m.list.entries.map(u=>u.entry),pagination:m.list.pagination};return this.lruChildren.set(o,h),h}):ge.listNodeChildren(t,a).then(m=>{const h={children:m.list.entries.map(u=>u.entry),pagination:m.list.pagination};return this.lruChildren.set(o,h),h})}))}getDirectChildren(t,a){const i=JSON.stringify({id:t,opts:a,direct:!0});return this.lruChildren.has(i)?Promise.resolve(this.lruChildren.get(i)):(a={...{include:["isFavorite","properties","allowableOperations","permissions","path","isLocked"]},...a},ge.listNodeChildren(t,a).then(s=>{const c={children:s.list.entries.map(r=>r.entry),pagination:s.list.pagination};return this.lruChildren.set(i,c),c}))}updateNode(t,a){return ge.updateNode(t,a).then(i=>(this.lruNode.delete(t),i)).catch(i=>{throw kt.updateNodeError(i)})}updateMimeType(t,a){return ge.getNodeContent(t).then(i=>ge.put({path:"/nodes/{nodeId}/content",pathParams:{nodeId:t},queryParams:{majorVersion:!1},contentTypes:[a],bodyParam:i})).catch(i=>{throw kt.updateNodeError(i)})}checkVersion(t){return ge.getNode(t).then(a=>a.entry).then(a=>{if(!a.aspectNames.find(i=>i==="cm:versionable")){const i={aspectNames:[...a.aspectNames,"cm:versionable"]};return ge.updateNode(t,i).then(()=>"1.0").catch(o=>{if(o.status===403)console.warn("Can’t add version - Forbidden");else throw P("updateNode",o)})}})}deleteNode(t,a){const i={};return ge.deleteNode(t,i).catch(o=>{kt.deleteNodeError(o,a)})}getParents(t){if(this.lruParents.has(t))return Promise.resolve(this.lruParents.get(t));const a={include:["isFavorite","properties","path"]};return ge.listParents(t,a).then(i=>{let o=i.list.entries.map(n=>n.entry),s=o[0];return s&&s.name==="documentLibrary"?this.getParents(s.id).then(n=>{const c={documentLibrary:s,supParent:n};return this.lruParents.set(t,c),c}):(this.lruParents.set(t,o[0]),o[0])})}getDocumentLibrary(t){if(this.lruDocumentLibrary.has(t))return Promise.resolve(this.lruDocumentLibrary.get(t));const a={include:["isFavorite","properties","allowableOperations","permissions"]};return ge.listNodeChildren(t,a).then(i=>{const s=i.list.entries.map(n=>n.entry).find(n=>n.name==="documentLibrary");return this.lruDocumentLibrary.set(t,s),s})}updateContentNode(t,a,i,o){let s={majorVersion:i,comment:o};return ge.updateNodeContent(t,a,s).catch(n=>{throw P("updateContentNode",n)})}copyNode(t,a,i){const o=i!==null?{targetParentId:a,name:i}:{targetParentId:a},s={include:["path"]};return ge.copyNode(t,o,s).catch(n=>{throw P("copyNode",n)})}moveNode(t,a,i,o){if(!t)throw new Error("moveNode: mandatory id");if(!a)throw new Error("moveNode: mandatory targetParentId");let s={targetParentId:a};return i&&(s={...s,name:i}),o||(o={include:["path"]}),ge.moveNode(t,s,o).catch(n=>{throw P("moveNode",n)})}createSharedLink(t){const a={nodeId:t.id,expiresAt:null};return yl.createSharedLink(a).catch(i=>{throw P("createSharedLink",i)})}deleteSharedLink(t){return yl.deleteSharedLink(t).catch(a=>{throw P("deleteSharedLink",a)})}revertVersion(t,a,i){const o={majorVersion:!1,comment:i},s={include:["properties"]};return Rt.revertVersion(t,a,o,s).catch(n=>{throw P("revertVersion",n)})}listNodeVersionHistory(t){if(this.lruVersionHistory.has(t))return Promise.resolve(this.lruVersionHistory.get(t));const a={include:["properties"]};return Rt.listVersionHistory(t,a).then(i=>(this.lruVersionHistory.set(t,i),i)).catch(i=>{throw P("listNodeVersionHitory",i)})}getVersionContent(t,a,i){const o={attachment:i};return Rt.getVersionContent(t,a,o).catch(s=>{throw P("getVersionContent",s)})}getSharedLink(t){return yl.getSharedLink(t).catch(a=>{throw P("sharedLink",a)})}getSharedLinkContent(t){const a={attachment:!0};return yl.getSharedLinkContent(t,a).catch(i=>{throw P("sharedLinkContent",i.error)})}getSharedLinkRenditionContent(t){return yl.getSharedLinkRenditionContent(t,"pdf").catch(a=>{throw P("sharedLinkRenditionContent",a.error)})}getHomeFolderFromUser(t){if(this.lruHomeFolder.has(t))return Promise.resolve(this.lruHomeFolder.get(t));const a={query:{language:"afts",query:`TYPE:"cm:person" AND cm:userName:${t}`},include:["permissions","properties","allowableOperations","path"]};return mt.search(a).then(i=>(this.lruHomeFolder.set(t,i),i))}getUserHomeNode(){const t="userHomeNode";if(this.lruHomeFolder.has(t))return Promise.resolve(this.lruHomeFolder.get(t));const a={query:{language:"afts",query:'PATH:"//app:company_home/app:user_homes"'},include:["permissions","properties","allowableOperations","path"]};return mt.search(a).then(i=>(this.lruHomeFolder.set(t,i),i))}isFolderInUserHome(t,a){const i=JSON.stringify({nodeId:t,homeFolderId:a});return this.lruIsFolderInUserHome.has(i)?Promise.resolve(this.lruIsFolderInUserHome.get(i)):this.getNode(t).then(o=>{const s=o.path.elements.some(n=>n.id===a);return this.lruIsFolderInUserHome.set(i,s),s}).catch(o=>(console.error("Error fetching node:",o),!1))}}const V=new Ir;class fr{constructor(){this.lruWorkspaces=new qe({maxSize:100,maxAge:3e4})}getWorkspaces(){const t="workspaces";if(this.lruWorkspaces.has(t))return Promise.resolve(this.lruWorkspaces.get(t));const a={skipCount:0,maxItems:1e3};return Ce.listSites(a).then(i=>{const o=i.list.entries.map(s=>s.entry);return this.lruWorkspaces.set(t,o),o}).catch(i=>{throw P("getWorkspaces",i)})}searchAllWorkspaces(t=""){const a=`searchAllWorkspaces_${t}`;if(this.lruWorkspaces.has(a))return Promise.resolve(this.lruWorkspaces.get(a));const i={query:{query:"TYPE: 'st:site' "+t},include:["allowableOperations","properties","aspectNames"],paging:{maxItems:1e3,skipCount:0},localization:{locales:["fr_FR"]}};return mt.search(i).then(o=>{const s=o.list.entries.map(n=>{let c=n.entry;return c.title=n.entry.properties["cm:title"],c.visibility=n.entry.properties["st:siteVisibility"],c.typeEspace=n.entry.properties["pm:typeEspace"],c});return this.lruWorkspaces.set(a,s),s}).catch(o=>{throw P("searchAllWorkspaces",o)})}getWorkspace(t){const a=`workspace_${t}`;if(this.lruWorkspaces.has(a))return Promise.resolve(this.lruWorkspaces.get(a));const i={};return Ce.getSite(t,i).then(o=>(this.lruWorkspaces.set(a,o.entry),o.entry)).catch(o=>{throw P("getWorkspace",o)})}getWorkspaceMemberships(t){const a=`workspaceMemberships_${t}`;if(this.lruWorkspaces.has(a))return Promise.resolve(this.lruWorkspaces.get(a));const i={};return Ce.listSiteMemberships(t,i).then(o=>{const s=o.list.entries.map(n=>n.entry);return this.lruWorkspaces.set(a,s),s}).catch(o=>{throw P("getWorkspaceMemberships",o)})}getWorkspaceMembershipsWithOpts(t,a){const i=`workspaceMembershipsWithOpts_${t}_${JSON.stringify(a)}`;return this.lruWorkspaces.has(i)?Promise.resolve(this.lruWorkspaces.get(i)):Ce.listSiteMemberships(t,a).then(o=>(this.lruWorkspaces.set(i,o),o)).catch(o=>{throw P("getWorkspaceMemberships",o)})}getWorkspaceGroupsWithOpts(t,a){const i=`workspaceGroupsWithOpts_${t}_${JSON.stringify(a)}`;return this.lruWorkspaces.has(i)?Promise.resolve(this.lruWorkspaces.get(i)):Ce.listSiteGroups(t,a).then(o=>{const s=o.list.entries.map(n=>n.entry);return this.lruWorkspaces.set(i,s),s}).catch(o=>{throw P("getWorkspaceGroups",o)})}getWorkspaceGroups(t){const a=`workspaceGroups_${t}`;if(this.lruWorkspaces.has(a))return Promise.resolve(this.lruWorkspaces.get(a));const i={};return Ce.listSiteGroups(t,i).then(o=>{const s=o.list.entries.map(n=>n.entry);return this.lruWorkspaces.set(a,s),s}).catch(o=>{throw P("getWorkspaceGroups",o)})}createWorkspace(t,a,i,o){const s={id:t,title:a,description:i,visibility:o};return Ce.createSite(s).catch(n=>{throw P("createWorkspace",n)})}requestJoinWorkspace(t,a){const i={id:a},o={};return Ce.createSiteMembershipRequestForPerson(t,i,o).catch(s=>{throw P("requestJoinWorkspace",s)})}_invalidateMembersCache(t){const a=[];for(const i of this.lruWorkspaces.keys())(i.startsWith(`workspaceMemberships_${t}`)||i.startsWith(`workspaceMembershipsWithOpts_${t}`)||i.startsWith(`workspaceGroups_${t}`)||i.startsWith(`workspaceGroupsWithOpts_${t}`))&&a.push(i);a.forEach(i=>this.lruWorkspaces.delete(i))}addWorkspaceUser(t,a,i){const o={role:i,id:a},s={};return Ce.createSiteMembership(t,o,s).then(n=>(this._invalidateMembersCache(t),n)).catch(n=>{throw P("addWorkspaceUser",n)})}addWorkspaceGroup(t,a,i){const o={role:i,id:a},s={};return Ce.createSiteGroupMembership(t,o,s).then(n=>(this._invalidateMembersCache(t),n)).catch(n=>{throw P("addWorkspaceGroup",n)})}updateWorkspaceUserRole(t,a,i){const o={role:i},s={};return Ce.updateSiteMembership(t,a,o,s).then(n=>(this._invalidateMembersCache(t),n)).catch(n=>{throw P("updateWorkspaceUserRole",n)})}updateWorkspaceGroupRole(t,a,i){const o={role:i},s={};return Ce.updateSiteGroupMembership(t,a,o,s).then(n=>(this._invalidateMembersCache(t),n)).catch(n=>{throw P("updateWorkspaceGroupRole",n)})}deleteWorkspaceUser(t,a){return Ce.deleteSiteMembership(t,a).then(i=>(this._invalidateMembersCache(t),i)).catch(i=>{throw P("deleteWorkspaceUser",i)})}deleteWorkspaceGroup(t,a){return Ce.deleteSiteGroupMembership(t,a).then(i=>(this._invalidateMembersCache(t),i)).catch(i=>{throw P("deleteWorkspaceGroup",i)})}updateActeWorkspaceType(t,a){const i={properties:{"pm:typeEspace":a},aspectNames:["cm:tagscope","pm:specializeEspace","cm:titled","cm:auditable","am:isPublic"]};return ge.updateNode(t,i).catch(o=>{throw P("updateWorkspaceType",o)})}updateWorkspaceType(t,a){const i={properties:{"pm:typeEspace":a}};return ge.updateNode(t,i).catch(o=>{throw P("updateWorkspaceType",o)})}async searchUsers(t,a=25){const i=t.trim(),o={query:{language:"afts",query:`TYPE:"cm:person" AND (cm:userName:"*${i}*" OR cm:firstName:"*${i}*" OR cm:lastName:"*${i}*" OR cm:email:"*${i}*")`},include:["aspectNames","properties"],paging:{maxItems:a,skipCount:0}};return mt.search(o).then(s=>s.list.entries.map(n=>{const c=n.entry.properties,r=c["cm:firstName"]||"",m=c["cm:lastName"]||"",h=c["cm:email"]||"",u=c["cm:userName"]||n.entry.name;return{id:u,firstname:r,lastname:m,email:h,label:`${r} ${m} (${u} - ${h})`.trim(),group:!1}})).catch(s=>{throw P("searchUsers",s)})}async searchGroups(t,a=25){const i=t.trim(),n={query:{language:"afts",query:`TYPE:"cm:authorityContainer" AND ${i.startsWith("GROUP_")?`@cm\\:authorityName:"${i}*"`:`(@cm\\:authorityName:"*${i}*" OR @cm\\:authorityDisplayName:"*${i}*" OR @cm\\:description:"*${i}*")`}`},include:["properties"],paging:{maxItems:a,skipCount:0}};return mt.search(n).then(c=>{const r=["site_","SITE_","ALFRESCO_","EMAIL_"];return c.list.entries.map(m=>{const h=m.entry.properties,u=h["cm:authorityName"];return{id:u,label:h["cm:authorityDisplayName"]||u,group:!0}}).filter(m=>!r.some(h=>m.label.startsWith(h)))}).catch(c=>{throw P("searchGroups",c)})}deleteWorkspace(t){const a={};return Ce.deleteSite(t,a).catch(i=>{throw P("deleteWorkspace",i)})}updateWorkspace(t,a){return Ce.updateSite(t,a).catch(i=>{throw P("updateWorkspace",i)})}}const je=new fr,xe=$.defineStore({id:"NavigationStore",state:()=>({currentNode:null,totalRecordNodes:null,workspace:null,workspaceInfo:null,nodes:[],files:[],folders:[],children:[],loading:!0,emptyFolder:!1,role:null,canUpload:!1,pagination:null,isInConsultation:!1,isInUserHome:!1,hasNoUserHome:!1}),actions:{setIsInUserHome(l){this.isInUserHome=l},setHasNoUserHome(l){this.hasNoUserHome=l},load(l,t,a){return!a&&l===this.workspace?.id&&t===this.currentNode?.id?Promise.resolve():(this.loading=!0,this.emptyFolder=!1,this.pagination=null,je.getWorkspace(l).then(i=>(this.workspace=i,this.role=i.role,this.visibility=i.visibility,t?V.getNode(t).then(o=>o):V.getNode(i.guid).then(o=>(this.workspaceInfo=o,o)))).then(i=>(this.canUpload=i.allowableOperations?.includes("create")||!1,V.getChildren(i.guid||i.id,500,0,a).then(o=>(o.documentLibrary?this.currentNode=o.documentLibrary:this.currentNode=i,this.canUpload=this.currentNode.allowableOperations?.includes("create")||!1,this.children=o.children,this.pagination=o.pagination,this.children.length>0?(this.folders=this.children.filter(s=>s.isFolder),this.files=this.children.filter(s=>s.isFile)):(this.folders=[],this.files=[],this.emptyFolder=!0),this.loading=!1,i)))))},loadWithOpts(l,t,a,i){if(!a&&l===this.workspace?.id&&t===this.currentNode?.id)return Promise.resolve();this.loading=!0,this.emptyFolder=!1,this.pagination=null;let o;return l?(this.isInUserHome=!1,o=je.getWorkspace(l)):o=V.getUserHomeNode().then(s=>(this.isInUserHome=!0,s)),o.then(s=>(this.workspace=s,this.role=s.role,this.visibility=s.visibility,t?V.getNode(t).then(n=>n):V.getNode(s.guid).then(n=>(this.workspaceInfo=n,n)))).then(s=>(this.canUpload=s.allowableOperations?.includes("create")||!1,V.getChildrenWithOpts(s.guid||s.id,i,a).then(n=>(this.totalRecordNodes=n.pagination.totalItems,n.documentLibrary?this.currentNode=n.documentLibrary:this.currentNode=s,this.canUpload=this.currentNode.allowableOperations?.includes("create")||!1,this.children=n.children,this.pagination=n.pagination,this.children.length>0?(this.folders=this.children.filter(c=>c.isFolder),this.files=this.children.filter(c=>c.isFile)):(this.folders=[],this.files=[],this.emptyFolder=!0),this.loading=!1,s))))},loadOnActes(l,t,a){return!a&&l===this.workspace?.id&&t===this.currentNode?.id?Promise.resolve():(this.loading=!0,this.emptyFolder=!1,this.pagination=null,je.getWorkspace(l).then(i=>(this.workspace=i,this.role=i.role,this.visibility=i.visibility,t?V.getNode(t).then(o=>o):V.getNode(i.guid).then(o=>(this.workspaceInfo=o,o)))).then(i=>(this.canUpload=i.allowableOperations?.includes("create")||!1,V.getChildren(i.guid||i.id,500,0,a).then(o=>(o.documentLibrary&&V.getChildren(o.documentLibrary.id,500,0,a).then(async s=>{const n=[];for(const m of s.children){const u=(await V.getChildren(m.id,500,0,a)).children.filter(y=>y.nodeType==="cm:folder").map(y=>V.getChildren(y.id,500,0,a)),b=await Promise.all(u);n.push(b)}const r=n.flat(2).flat();this.files=r.flatMap(m=>m.children),this.pagination={count:this.files.length,hasMoreItems:!1,maxItems:null,skipCount:null,totalItems:this.files.length}}),this.currentNode=i,t&&(this.canUpload=this.currentNode.allowableOperations?.includes("create")||!1,this.children=o.children,this.pagination=o.pagination,this.children.length>0?(this.folders=this.children.filter(s=>s.isFolder),this.files=this.children.filter(s=>s.isFile)):(this.folders=[],this.files=[],this.emptyFolder=!0),this.loading=!1),i)))))}}}),Ba="|";class vr{async getInitialTree(){try{const a=(await je.searchAllWorkspaces("AND NOT pm:typeEspace:'actes'")).map(async o=>{const s=await V.getDocumentLibrary(o.id);return{key:o.id,label:o.title,icon:"pi pi-fw pi-inbox",data:s,children:[],leaf:!1}});return(await Promise.all(a)).filter(o=>o.data!==void 0).sort((o,s)=>o.label.localeCompare(s.label))}catch(t){return console.error("Error initializing tree:",t),[]}}buildPathKeys(t){if(xe().isInUserHome)return this.buildPathKeysInUserHome(t);{const a=t.path.elements;let i="";const o=[];for(const s of a){let n=null;s?.nodeType==="st:site"?n=s.id:s?.isFolder&&s.name!=="documentLibrary"&&(n=i?i+Ba+s.id:s.id),n&&n.charAt(0)==="|"&&(n=n.slice(1)),n&&(o.push({key:n,node:s}),i=n)}return o}}buildPathKeysInUserHome(t){const a=t.path.elements.slice(2);let i="",o=[];for(const s of a){let n=null;n=s.id,s?.isFolder&&s.name!=="documentLibrary"&&(n=i?i+Ba+s.id:s.id),n&&n.charAt(0)==="|"&&(n=n.slice(1)),n&&(o.push({key:n,node:s}),i=n)}return o}async expandPathKeys({keys:t,nodes:a,expandedKeys:i,onNodeExpand:o,currentNode:s}){let n="";for(const{key:r,node:m}of t)await o({key:r,data:m},a),i[r]=!0,n=r;const c=n+Ba+s.id;await o({key:c,data:s},a),i[c]=!0}}const Ea=new vr,ca="|",Lr={name:"TreeExplorer",components:{PrimeTabView:xo,PrimeTabPanel:kl,PrimeTree:wc},inject:["actionsService"],props:{currentNode:{type:Object,default:()=>({})},showUserHome:{type:Boolean,default:!1},showFiles:{type:Boolean,default:!1}},emits:["selectNode"],data(){return{activeTab:0,userHomesNodes:[],nodes:[],selectedKey:null,splitedKey:null,expandedKeys:{}}},async mounted(){try{const l=[this.initTree()];this.showUserHome&&l.push(this.initUserHomeTree());const[t,a]=await Promise.all(l);this.nodes=t,this.showUserHome&&(this.userHomesNodes=a),this.currentNode.path?await this.openCurrentPath():console.warn("TreeExplorer: can’t select folder, no path on current node")}catch(l){console.error("Error initializing trees:",l)}},methods:{async initTree(){this.splitedKey=null;try{return this.actionsService?.getInitialTree?await this.actionsService.getInitialTree():await Ea.getInitialTree()}catch(l){return console.error("Error initializing tree:",l),[]}},async initUserHomeTree(){let l={include:["isFavorite","properties","allowableOperations","permissions","path","isLocked","aspectNames"],skipCount:0,maxItems:100},t=await V.getUserHomeNode();return(await V.getChildrenWithOpts(t.list.entries[0].entry.id,l,!1)).children.filter(i=>!i.aspectNames||!i.aspectNames.includes("pm:hidden")).map(i=>({key:i.id,label:i.name,icon:"pi pi-fw pi-inbox",data:i,children:[],leaf:!1}))},onNodeSelect(l){this.$emit("selectNode",l.data,l.label)},async onNodeExpand(l,t){let a={include:["isFavorite","properties","allowableOperations","permissions","path","isLocked","aspectNames"],skipCount:0,maxItems:500};try{let s=(await V.getChildrenWithOpts(this.getNodeId(l.data),a,!1)).children.filter(n=>n.aspectNames&&n.aspectNames.includes("pm:hidden")?!1:this.showFiles?n.isFolder||n.isFile:n.isFolder).map(n=>({key:`${l.key}${ca}${n.id}`,label:n.name,icon:n.isFolder?"ri-folder-2-line":"ri-file-line",data:n,children:[],leaf:n.isFile})).sort();return this.addChildren(s,l,t)}catch(i){console.error("getNodeChildren Error",i)}},addChildren(l,t,a){return this.splitedKey=t.key.split(ca),this.splitedKey.length===1?a.filter(i=>i.key===t.key).map(i=>i.children=l):this.addElementChildren(a,t.key,l,0)},addElementChildren(l,t,a,i){let o=l.find(s=>this.containsKey(s.key,t,i));if(o){if(o.key===t)return o.children=a,null;if(o.children)return this.addElementChildren(o.children,t,a,i+1),null}},containsKey(l,t,a){let i=t.split(ca),o=l.split(ca);for(let s=0;s<=a;s++)if(i[s]!==o[s])return!1;return!0},getNodeId(l){if(l===void 0)throw Error("Can't get NodeId from undefined");return l.guid?l.guid:l.id},async openCurrentPath(){try{this.activeTab=xe().isInUserHome?1:0;let l=xe().isInUserHome?this.userHomesNodes:this.nodes,t=null;this.actionsService?.buildPathKeys?t=this.actionsService.buildPathKeys(this.currentNode):t=Ea.buildPathKeys(this.currentNode),await Ea.expandPathKeys({keys:t,nodes:l,expandedKeys:this.expandedKeys,onNodeExpand:this.onNodeExpand,currentNode:this.currentNode})}catch(l){console.error("Error opening path:",l)}}}};function Dr(l,t,a,i,o,s){const n=e.resolveComponent("PrimeTree"),c=e.resolveComponent("PrimeTabPanel"),r=e.resolveComponent("PrimeTabView");return e.openBlock(),e.createBlock(r,{"active-index":o.activeTab},{default:e.withCtx(()=>[e.createVNode(c,{header:l.$t("spaces")},{default:e.withCtx(()=>[e.createVNode(n,{"selection-keys":o.selectedKey,"onUpdate:selectionKeys":t[0]||(t[0]=m=>o.selectedKey=m),"expanded-keys":o.expandedKeys,"onUpdate:expandedKeys":t[1]||(t[1]=m=>o.expandedKeys=m),value:o.nodes,"selection-mode":"single","scroll-height":"40rem",class:"w-full",onNodeSelect:s.onNodeSelect,onNodeExpand:t[2]||(t[2]=m=>s.onNodeExpand(m,o.nodes))},null,8,["selection-keys","expanded-keys","value","onNodeSelect"])]),_:1},8,["header"]),a.showUserHome?(e.openBlock(),e.createBlock(c,{key:0,header:l.$t("userHomes")},{default:e.withCtx(()=>[e.createVNode(n,{"selection-keys":o.selectedKey,"onUpdate:selectionKeys":t[3]||(t[3]=m=>o.selectedKey=m),"expanded-keys":o.expandedKeys,"onUpdate:expandedKeys":t[4]||(t[4]=m=>o.expandedKeys=m),value:o.userHomesNodes,"selection-mode":"single",class:"w-full md:w-30rem","scroll-height":"40rem",onNodeSelect:s.onNodeSelect,onNodeExpand:t[5]||(t[5]=m=>s.onNodeExpand(m,o.userHomesNodes))},null,8,["selection-keys","expanded-keys","value","onNodeSelect"])]),_:1},8,["header"])):e.createCommentVNode("",!0)]),_:1},8,["active-index"])}const qt=H(Lr,[["render",Dr]]),Rr="st:site",kr={name:"CopyOrMovePopup",components:{TreeExplorer:qt,PrimeButton:w,PrimeDataView:So,PrimeMessage:Wt,PrimeDialog:ke},inject:["actionsService"],props:{currentNode:{type:Object,default:()=>({})},actionType:{type:String,default:"copy"},showUserHome:{type:Boolean,default:!1}},emits:["close"],data(){return{nodes:[],destination:null,destinationName:null,documentLibrary:null,displayError:!1,canPerformAction:!0,errorCopy:null,errorMove:null}},created(){this.selectionStore=Oe()},mounted(){this.nodes=this.selectionStore.nodes,this.displayError=!1,this.destination=null,this.documentLibrary=null,this.destinationName=null,this.canPerformAction=!0,this.errorCopy=null,this.errorMove=null},methods:{closePopup(l){this.$emit("close",l)},selectNode(l,t){this.displayError=!1,this.canPerformAction=!0,this.errorCopy=null,this.errorMove=null,this.destination=l,this.destinationName=t,this.canWrite(l)||(this.actionType==="copy"?(this.errorCopy=this.$t("errors.errorMoveRights"),this.displayError=!0):(this.errorMove=this.$t("errors.errorMoveRights"),this.displayError=!0),this.canPerformAction=!1)},async handleAction(){if(this.destination===null){this.actionType==="copy"?this.errorCopy=this.$t("noSelectedDestination"):this.errorMove=this.$t("noSelectedDestination"),this.displayError=!0;return}let l=null;this.actionsService?.canDropInDestination(this.destination)?l=this.actionsService.canDropInDestination(this.destination):l=!0,l?this.handleNodeAction():(this.actionType==="copy"?this.errorCopy=this.$t("cannotCopyHere"):this.errorMove=this.$t("cannotMoveHere"),this.displayError=!0)},handleNodeAction(){let l=this.destination.nodeType===Rr?this.documentLibrary.id:this.destination.id;const t=this.nodes.map(a=>this.getItemName(l,a).then(i=>this.actionType==="copy"?V.copyNode(a.id,l,i):V.moveNode(a.id,l,i)));Promise.allSettled(t).then(a=>{let i=a.filter(s=>s.status==="fulfilled").map(s=>s.value.entry?.name),o=a.filter(s=>s.status!=="fulfilled").map(s=>s.reason);i.length>0&&(this.selectionStore.resetSelection(),this.$toast.add({severity:"success",summary:this.$t("success"),detail:this.$t(this.actionType==="copy"?"node.successCopy":"node.successMove",{number:i.length}),life:5e3}),this.closePopup()),o.length>0&&this.$toast.add({severity:"error",summary:this.$t(this.actionType==="copy"?"errors.errorCopy":"errors.errorMove"),detail:o,life:5e3}),this.closePopup(!0)}).catch(a=>{this.$toast.add({severity:"error",summary:this.$t(this.actionType==="copy"?"errors.errorCopy":"errors.errorMove"),detail:a,life:5e3})})},getItemName(l,t){return V.getChildren(l,200,0,!0).then(a=>{let i=t.name,o=a.children,s=t.isFile?this.removeExtension(i):i,n=o.filter(c=>c.name.startsWith(s)).length;return n>0&&(i=t.isFile?`${s}-${n}.${this.getExtension(i)}`:`${s}-${n}`),i})},getExtension(l){let t=l.split(".");return t[t.length-1]},removeExtension(l){return l.substring(0,l.lastIndexOf("."))||l},canWrite(l){return!!l?.allowableOperations?.find(t=>t==="create")}}},Cr={class:"field grid card"},Fr={class:"col-3"},Vr={class:"mb-3 text-900"},xr={class:"w-full"},Sr={class:"flex align-items-center gap-2 text-700"},Jr={key:0,class:"ri-folder-2-line"},Ur={key:1,class:"ri-file-line"},Hr={class:"font-semibold"},Qr={class:"col-9"},Br={class:"w-full mb-2 text-900"},Er={key:0,class:"col-12 mb-2"},Pr={key:1,class:"col-12 mb-2"};function _r(l,t,a,i,o,s){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeMessage"),r=e.resolveComponent("PrimeDataView"),m=e.resolveComponent("TreeExplorer"),h=e.resolveComponent("PrimeDialog");return e.openBlock(),e.createBlock(h,{"data-testid":"copy-or-move-popup",header:l.$t(a.actionType==="copy"?"copyNode":"moveNode"),visible:"",modal:"",class:"popup popup--tree",onKeyup:t[1]||(t[1]=e.withKeys(u=>s.closePopup(!1),["esc"]))},{closeicon:e.withCtx(()=>[e.createVNode(n,{"data-testid":"copy-or-move-popup-close-button",icon:"ri-close-line","aria-label":l.$t("close"),outlined:"",text:"",severity:"secondary",autofocus:"false",onClick:t[0]||(t[0]=u=>s.closePopup(!1))},null,8,["aria-label"])]),footer:e.withCtx(()=>[e.createVNode(n,{"data-testid":"copy-or-move-popup-cancel-button",label:l.$t("cancel"),severity:"secondary",onClick:s.closePopup},null,8,["label","onClick"]),e.createVNode(n,{"data-testid":"copy-or-move-popup-submit-button",label:l.$t(a.actionType==="copy"?"copy":"move"),disabled:!o.canPerformAction,onClick:s.handleAction},null,8,["label","disabled","onClick"])]),default:e.withCtx(()=>[o.displayError?(e.openBlock(),e.createBlock(c,{key:0,"data-testid":"copy-or-move-popup-error-message",closable:!1,severity:"error"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.actionType==="copy"?o.errorCopy:o.errorMove),1)]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",Cr,[e.createElementVNode("div",Fr,[e.createElementVNode("div",Vr,e.toDisplayString(a.actionType==="copy"?"Copier les éléments suivants":"Déplacer les éléments suivants"),1),e.createVNode(r,{"data-testid":"copy-or-move-popup-items-list",value:o.nodes},{list:e.withCtx(u=>[e.createElementVNode("div",xr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.items,b=>(e.openBlock(),e.createElementBlock("div",{key:b.name,class:"mb-2"},[e.createElementVNode("span",Sr,[b.isFolder?(e.openBlock(),e.createElementBlock("i",Jr)):(e.openBlock(),e.createElementBlock("i",Ur)),e.createElementVNode("span",Hr,e.toDisplayString(b.name),1)])]))),128))])]),_:1},8,["value"])]),e.createElementVNode("div",Qr,[e.createElementVNode("label",Br,[e.createTextVNode(e.toDisplayString(l.$t("chooseDestination"))+" ",1),t[2]||(t[2]=e.createElementVNode("span",{class:"required"},"*",-1))]),e.createVNode(m,{"data-testid":"copy-or-move-popup-tree-explorer","current-node":a.currentNode,class:"tree","show-user-home":a.showUserHome,onSelectNode:s.selectNode},null,8,["current-node","show-user-home","onSelectNode"])]),o.destination?(e.openBlock(),e.createElementBlock("label",Er,e.toDisplayString(l.$t("destination",{dest:o.destinationName})),1)):(e.openBlock(),e.createElementBlock("label",Pr,e.toDisplayString(l.$t("noDestination")),1))])]),_:1},8,["header"])}const Pa=H(kr,[["render",_r]]),Mn='(function(){"use strict";class g{value;next;constructor(e){this.value=e}}class v{#e;#t;#s;constructor(){this.clear()}enqueue(e){const t=new g(e);this.#e?(this.#t.next=t,this.#t=t):(this.#e=t,this.#t=t),this.#s++}dequeue(){const e=this.#e;if(e)return this.#e=this.#e.next,this.#s--,this.#e||(this.#t=void 0),e.value}peek(){if(this.#e)return this.#e.value}clear(){this.#e=void 0,this.#t=void 0,this.#s=0}get size(){return this.#s}*[Symbol.iterator](){let e=this.#e;for(;e;)yield e.value,e=e.next}*drain(){for(;this.#e;)yield this.dequeue()}}function w(s){m(s);const e=new v;let t=0;const o=()=>{t<s&&e.size>0&&(e.dequeue()(),t++)},p=()=>{t--,o()},r=async(a,n,i)=>{const l=(async()=>a(...i))();n(l);try{await l}catch{}p()},u=(a,n,i)=>{new Promise(l=>{e.enqueue(l)}).then(r.bind(void 0,a,n,i)),(async()=>(await Promise.resolve(),t<s&&o()))()},d=(a,...n)=>new Promise(i=>{u(a,i,n)});return Object.defineProperties(d,{activeCount:{get:()=>t},pendingCount:{get:()=>e.size},clearQueue:{value(){e.clear()}},concurrency:{get:()=>s,set(a){m(a),s=a,queueMicrotask(()=>{for(;t<s&&e.size>0;)o()})}}}),d}function m(s){if(!((Number.isInteger(s)||s===Number.POSITIVE_INFINITY)&&s>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const h=w(3);self.onmessage=async s=>{const{type:e,payload:t}=s.data;if(e==="start"){if(!t.files||!t.nodeId)return;const o=t.files,p=t.nodeId,r=o.length;let u=0;const d=o.map(n=>h(()=>(self.postMessage({type:"requestUpload",payload:{item:n,nodeId:p}}),new Promise(i=>{const l=f=>{const{type:c,payload:y}=f.data;c==="uploadResult"&&y.fileName===n.file.name&&(self.removeEventListener("message",l),u++,self.postMessage({type:"progress",payload:{completed:u,total:r}}),i(y))};self.addEventListener("message",l)})))),a=await Promise.all(d);self.postMessage({type:"complete",payload:a})}if(e==="startClassificationPlan"){if(!t.files)return;const o=t.files,p=o.length;let r=0;const u=o.map(a=>h(()=>(self.postMessage({type:"requestClassificationPlanUpload",payload:{item:a}}),new Promise(n=>{const i=l=>{const{type:f,payload:c}=l.data;f==="uploadResult"&&c.fileName===a.fileName&&(self.removeEventListener("message",i),r++,self.postMessage({type:"progress",payload:{completed:r,total:p}}),n(c))};self.addEventListener("message",i)})))),d=await Promise.all(u);self.postMessage({type:"complete",payload:d})}}})();\n//# sourceMappingURL=upload.worker-DYhWdEjp.js.map\n',On=typeof self<"u"&&self.Blob&&new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);",Mn],{type:"text/javascript;charset=utf-8"});function Kr(l){let t;try{if(t=On&&(self.URL||self.webkitURL).createObjectURL(On),!t)throw"";const a=new Worker(t,{name:l?.name});return a.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),a}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(Mn),{name:l?.name})}}const _a=l=>{l.preventDefault(),l.returnValue="Des téléchargements sont en cours et seront annulés si vous quittez la page."},el=$.defineStore("upload",{state:()=>({isUploading:!1,files:[],progress:{completed:0,total:0},worker:null,activeRequests:{},classificationPlanFiles:[]}),getters:{overallMessage(l){const t=l.progress.total;if(t===0)return"";const a=l.files.filter(o=>o.status==="rejected").length,i=l.files.filter(o=>o.status==="error").length;return a===l.files.length?"Import annulé":l.isUploading?`Importation... (${l.progress.completed} / ${t})`:i>0?`Terminé avec ${i} erreur(s)`:"Import terminé"}},actions:{startUpload(l,t){console.log(`Attempting to start upload for node ${t}.`),console.log(`Current isUploading status: ${this.isUploading}`),!this.isUploading&&(this.initializeWorker(),this.isUploading=!0,this.progress={completed:0,total:l.length},this.files=l.map(a=>({name:a.file.name,status:"pending",message:"",percent:0})),window.addEventListener("beforeunload",_a),this.worker.postMessage({type:"start",payload:{files:l,nodeId:t}}))},initializeWorker(){this.worker||(this.worker=new Kr,this.worker.onmessage=async({data:l})=>{const{type:t,payload:a}=l;switch(t){case"requestUpload":await this.handleUploadRequest(a.item,a.nodeId);break;case"requestClassificationPlanUpload":await this.handleClassificationPlanUpload(a.item);break;case"progress":this.progress=a;break;case"complete":this.isUploading=!1,window.removeEventListener("beforeunload",_a),console.debug("Lot terminé. Résultats:",a),this.classificationPlanFiles=[];break}})},async handleUploadRequest(l,t){const a=l.file,i=this.files.find(c=>c.name===a.name);i&&(i.status="uploading");const o=l.relativePath||a.webkitRelativePath||"",s=o.split("/").slice(0,-1).join("/");let n;s?n={name:a.name,nodeType:"cm:content",renditions:"doclib",relativePath:o}:n={name:a.name,nodeType:"cm:content",renditions:"doclib"};try{const c=Xe.uploadFileWithProgress(t,n,a);this.activeRequests[a.name]=c;const r=await c;delete this.activeRequests[a.name],i&&(i.status="success",i.percent=100,i.id=r.entry.id,i.content=r.entry.content,i.isFile=r.entry.isFile,i.isFolder=r.entry.isFolder),this.worker.postMessage({type:"uploadResult",payload:{status:"fulfilled",value:r,fileName:a.name}})}catch(c){delete this.activeRequests[a.name];let r;try{r=kt.uploadFileError(c,a.name)}catch(m){r=m}i&&(i.status="error",i.message=r.message||"Erreur inconnue"),this.worker.postMessage({type:"uploadResult",payload:{status:"rejected",reason:r,fileName:a.name}})}},cancelUpload(l){const t=this.activeRequests[l];if(t&&typeof t.abort=="function"){t.abort(),delete this.activeRequests[l];const a=this.files.find(i=>i.name===l);a&&(a.status="rejected",a.message="Upload annulé"),this.worker?.postMessage({type:"uploadResult",payload:{status:"rejected",reason:new Error("Annulé"),fileName:l}})}},clearCompleted(){this.isUploading||(this.files=[],this.progress={completed:0,total:0})},startUploadWithClassificationPlan(l,t,a,i,o){if(console.log(`Attempting to start classification plan upload for ${a.length} files.`),console.log(`Current isUploading status: ${this.isUploading}`),this.isUploading)return;this.initializeWorker(),this.isUploading=!0,this.progress={completed:0,total:a.length},this.files=a.map(n=>({name:n.name,status:"pending",message:"",percent:0})),window.addEventListener("beforeunload",_a),this.classificationPlanFiles=a.map((n,c)=>({file:n,workspaceSiteId:l,pathFull:t,metadata:i,fileRenames:o,index:c}));const s=a.map((n,c)=>({fileName:n.name,fileSize:n.size,fileType:n.type,index:c}));this.worker.postMessage({type:"startClassificationPlan",payload:{files:s}})},async handleClassificationPlanUpload(l){const t=this.classificationPlanFiles[l.index];if(!t){console.error(`No stored file found for index ${l.index} (${l.fileName})`);return}const a=t.file,i=a.name,o=this.files.find(s=>s.name===i);o&&(o.status="uploading");try{const s=t.fileRenames?.find(h=>h.original===i),c={name:s?s.new:i,path:{root:`site:${t.workspaceSiteId}`,full:t.pathFull},properties:t.metadata},r=new FormData;r.append("file",a,a.name),r.append("fileSize",a.size.toString()),r.append("metadata",JSON.stringify(c));const m=await he.post("/alfresco/service/fr/jeci/pristy/nodes/inject",r,{withCredentials:!0,onUploadProgress:h=>{if(h.total&&o){const u=Math.round(h.loaded*100/h.total);o.percent=u}},headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"}});o&&(o.status="success",o.percent=100),this.worker.postMessage({type:"uploadResult",payload:{status:"fulfilled",value:m.data,fileName:i}})}catch(s){console.error(s);let n;try{n=kt.uploadFileError(s,i)}catch(c){n=c}o&&(o.status="error",o.message=n.message||"Erreur inconnue"),this.worker.postMessage({type:"uploadResult",payload:{status:"rejected",reason:n,fileName:i}})}}}}),Ka=$t.global.t;class $r{constructor(){this.lruUrls=new qe({maxSize:100,maxAge:300*1e3}),this.pendingRenditions=new Set,this.failedRenditions=new qe({maxSize:500,maxAge:300*1e3})}getThumbnailUrl(t){const a=`thumbnail_${t}`;if(this.lruUrls.has(a))return this.lruUrls.get(a);const i=jt.getDocumentThumbnailUrl(t);return this.lruUrls.set(a,i),i}getPreviewUrl(t){const a=`preview_${t}`;if(this.lruUrls.has(a))return this.lruUrls.get(a);const i=jt.getDocumentPreviewUrl(t);return this.lruUrls.set(a,i),i}getContentUrl(t){const a=`content_${t}`;if(this.lruUrls.has(a))return this.lruUrls.get(a);const i=jt.getContentUrl(t);return this.lruUrls.set(a,i),i}getVersionContentUrl(t,a){const i=`version_content_${t}_${a}`;if(this.lruUrls.has(i))return this.lruUrls.get(i);const o=jt.getVersionContentUrl(t,a);return this.lruUrls.set(i,o),o}uploadFile(t,a,i){return Va.uploadFile(i,null,t,null,a).on("progress",o=>{console.log("Percent :"+o.percent)}).then(o=>(this.createAllRendition(o.entry.id),o)).catch(o=>{kt.uploadFileError(o,i.name)})}createRendition(t,a){return this._createRendition(t,{id:a})}createAllRendition(t){return this._createRendition(t,[{id:"doclib"},{id:"imgpreview"}])}_createRendition(t,a){return ia.createRendition(t,a).catch(i=>{if(i.status===400){let o=JSON.parse(i.message);console.warn(o.error?.briefSummary)}else i.status===403?console.debug("Current user does not have permission for "+t):i.status===409?console.debug("All requested renditions already exist"):console.error(i)})}createVersionRendition(t,a,i){return Rt.createVersionRendition(t,a,{id:i})}getVersionRendition(t,a,i){return Rt.getVersionRendition(t,a,i)}handleThumbnailFallback(t){const a=t?.target;a&&requestAnimationFrame(()=>{const i=a.parentElement;if(i){i.style.display="none";const o=i.nextElementSibling;o&&(o.hidden=!1)}})}onImageLoadFailure(t,a){this.handleThumbnailFallback(t),this._requestRenditionCreation(a)}onPreviewLoadFailure(t,a){t.target.dataset.fallback||(t.target.dataset.fallback="true",t.target.src=this.getThumbnailUrl(a.id),this._requestRenditionCreation(a))}_requestRenditionCreation(t){if(!this.isThumbnailSupported(t))return;const a=t.id;this.pendingRenditions.has(a)||this.failedRenditions.has(a)||(this.pendingRenditions.add(a),this.createAllRendition(a).catch(i=>{this.failedRenditions.set(a,!0),i?.status===403?console.debug(`Permission denied for rendition on ${a}`):console.warn(`createAllRendition error ${i?.status} for ${a}`)}).finally(()=>{this.pendingRenditions.delete(a)}))}isThumbnailSupported(t){let a=["application/pdf","application/msword","application/rtf"],i=["image/svg+xml"];return t.isFile&&t.content.mimeType&&!i.includes(t.content.mimeType)&&(t.content.mimeType.startsWith("image/")||t.content.mimeType.startsWith("video/")||t.content.mimeType.startsWith("application/vnd")||a.includes(t.content.mimeType))}getRenditionUrl(t,a="pdf"){return Jo(async()=>ia.getRendition(t,a).then(i=>{if(i.entry.status==="NOT_CREATED")throw ia.createRendition(t,{id:a}),new Error("NOT_CREATED");if(i.entry.status==="CREATED")return jt.getRenditionUrl(t,a);throw new Error(i.entry.status)}).catch(i=>{if(i.status===409)return jt.getRenditionUrl(t,a);throw i}),{retries:3,factor:3,minTimeout:1500,maxTimeout:2e4,randomize:!1,onRetry:i=>{console.debug(`Retry getRenditionUrl for ${t}: ${i.message}`)}})}getVersionRenditionUrl(t,a,i="pdf"){return Jo(async()=>Rt.getVersionRendition(t,a,i).then(o=>{if(o.entry.status==="NOT_CREATED")throw Rt.createVersionRendition(t,a,{id:i}),new Error("NOT_CREATED");if(o.entry.status==="CREATED")return jt.getVersionRenditionUrl(t,a,i);throw new Error(o.entry.status)}).catch(o=>{if(console.error("createRendition",o),o.status===409)return jt.getVersionRenditionUrl(t,a,i);throw o}),{retries:5,onRetry:o=>{console.log("Retry getVersionRenditionUrl",o?.message)}})}getProtocolForFileExtension(t){return{doc:"ms-word",docx:"ms-word",docm:"ms-word",dot:"ms-word",dotx:"ms-word",dotm:"ms-word",rtf:"ms-word",xls:"ms-excel",xlsx:"ms-excel",xlsb:"ms-excel",xlsm:"ms-excel",xlt:"ms-excel",xltx:"ms-excel",xltm:"ms-excel",xlam:"ms-excel",ppt:"ms-powerpoint",pptx:"ms-powerpoint",pot:"ms-powerpoint",potx:"ms-powerpoint",potm:"ms-powerpoint",pptm:"ms-powerpoint",pps:"ms-powerpoint",ppsx:"ms-powerpoint",ppam:"ms-powerpoint",ppsm:"ms-powerpoint",sldx:"ms-powerpoint",sldm:"ms-powerpoint",vsd:"ms-visio",vss:"ms-visio",vst:"ms-visio",vsdx:"ms-visio",vsdm:"ms-visio",vssx:"ms-visio",vssm:"ms-visio",vstx:"ms-visio",vstm:"ms-visio"}[t]}getFileExtension(t){if(t){const a=t.match(/\.([^./?#]+)($|\?|#)/);return a?a[1]:null}return null}isDoc(t){return t.isFile&&t.content.mimeType!=="application/pdf"&&!t.content.mimeType.includes("image/")&&!t.content.mimeType.includes("video/")}toggleMSOfficeVue(t){if(t.isLocked){const a=t.properties["cm:lockType"]==="WRITE_LOCK"||t.properties["cm:lockType"]==="READ_ONLY_LOCK",o=t.properties["cm:lockOwner"].id!==localStorage.getItem("ACS_USERNAME");a&&o?this.$toast.add({severity:"error",summary:this.$t("node.locked"),detail:this.$t("node.lockedDetails"),life:3e3}):this.triggerEditOnlineAos(t)}else this.triggerEditOnlineAos(t)}canOpenWithMSOffice(t){const a=t.allowableOperations?.includes("update")||!1,i=de();return t.isFolder?!1:i.EDIT_WITH_MSOFFICE&&this.isMSOfficeDoc(t)&&a&&(this.isWindows()||this.isMacOs())}triggerEditOnlineAos(t){const a=de();let i=`${a.ALFRESCO_HOST}/${a.ALFRESCO_ROOT}/aos`,o="Sites",s="";if(t.path.name.length>256)s=`${i}/${o}/_aos_nodeid/${t.id}/${encodeURIComponent(t.name)}`;else{let r=t.path.elements.slice(1).map(m=>m.name).join("/");s=`${i}/${r}/${t.name}`}let n=Xe.getFileExtension(t.name),c=Xe.getProtocolForFileExtension(n);if(c===void 0){console.warn(`No protocol handler found for ${n}`);return}!this.isWindows()&&!this.isMacOs()?console.log("Only supported for Windows and Mac"):this.aos_tryToLaunchOfficeByMsProtocolHandler(c,s)}aos_tryToLaunchOfficeByMsProtocolHandler(t,a){let i=`${t}:ofe%7Cu%7C${a}`,o=document.createElement("iframe");o.style.display="none",o.src=i,document.body.appendChild(o),setTimeout(()=>{o&&document.body.removeChild(o)},500)}isWindows(){return this.getUserAgent().indexOf("win")!==-1}isMacOs(){return this.getUserAgent().indexOf("mac")!==-1}getUserAgent(){return navigator.userAgent.toLowerCase()}isMSOfficeDoc(t){const a=["application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.addin.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.template.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/msonenote","application/vnd.ms-officetheme","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.text-template","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.spreadsheet-template","application/vnd.oasis.opendocument.presentation","application/vnd.oasis.opendocument.presentation-template","application/vnd.oasis.opendocument.graphics","application/vnd.oasis.opendocument.graphics-template"];return t.content?.mimeType&&a.includes(t.content.mimeType)}uploadFileWithProgress(t,a,i){const o=el().files.find(s=>s.name===i.name);return Va.uploadFile(i,null,t,null,a).on("progress",s=>{o.percent=s.percent})}tooltipLockContent(t){const a=t.properties["cm:lockType"],i=t.properties["cm:lockOwner"]?.displayName??t.properties["cm:lockOwner"]?.id;switch(a){case"NODE_LOCK":return Ka("lock.nodeLock",{owner:i});case"READ_ONLY_LOCK":return Ka("lock.readOnlyLock",{owner:i});case"WRITE_LOCK":return Ka("lock.writeLock",{owner:i});default:return`Verrou inconnu (${a}).
10
10
  Lock owner: ${i}`}}isPathElementVisible(t,a){return a>0&&t.nodeType!=="st:sites"&&t.nodeType!=="sys:container"&&t.nodeType!=="cm:person"&&t.name!=="documentLibrary"}}const Xe=new $r,jn=$.defineStore({id:"CollaboraStore",state:()=>({XMLExtensions:null,loaded:!1}),actions:{init(){return console.log("Loading collabora extensions"),this.loadExtensionsXML().then(l=>{this.XMLExtensions=[...l.getElementsByTagName("app")],this.loaded=!0}).catch(l=>{console.error("Fail loading collabora extensions",l)})},loadExtensionsXML(){const l=de();return console.log(`Loading collabora extensions: ${l.COLLABORA_HOSTING_DISCOVERY}`),he.get(`${l.COLLABORA_HOSTING_DISCOVERY}`).then(t=>new DOMParser().parseFromString(t.data,"text/xml")).catch(t=>{throw P("getCollaboraExtensions",t)})},checkIfExists(l,t){if(!this.loaded)return!1;const a=this.XMLExtensions.find(i=>i.attributes.name.value===l);return a?!![...a.getElementsByTagName("action")].find(s=>s.attributes.name.value===t):!!a}}}),Gn={"text/x-markdown":"md-editor","text/x-web-markdown":"md-editor","text/html":"html-editor","application/json":"json-editor","text/plain":"text-editor","application/x-sh":"text-editor","text/x-sh":"text-editor","text/xml":"text-editor","application/xml":"text-editor","text/x-perl":"text-editor","text/x-python":"text-editor","text/x-java-source":"text-editor","text/x-c":"text-editor","text/x-c++":"text-editor","text/x-csharp":"text-editor","text/x-php":"text-editor","text/x-ruby":"text-editor","text/x-scala":"text-editor","text/x-groovy":"text-editor","text/x-kotlin":"text-editor","text/x-sql":"text-editor","text/x-yaml":"text-editor","text/yaml":"text-editor","application/x-yaml":"text-editor","text/css":"text-editor","text/javascript":"text-editor","application/javascript":"text-editor","application/x-javascript":"text-editor","text/typescript":"text-editor","application/typescript":"text-editor"};function Tn(l){const t=de(),a=jn(),i=l.content.mimeType;return!t.OPEN_PDF_WITH_COLLABORA&&i==="application/pdf"?{name:"consultation-pdf",params:{id:l.id}}:i.startsWith("image/")?{name:"consultation-image",params:{id:l.id}}:i.startsWith("video/")?{name:"consultation-video",params:{id:l.id}}:Gn[i]?{name:Gn[i],params:{id:l.id}}:i.startsWith("text/")?{name:"text-editor",params:{id:l.id}}:a.checkIfExists(i,"edit")?{name:"edit-collabora",params:{action:"edit",id:l.id}}:a.checkIfExists(i,"view")?{name:"edit-collabora",params:{action:"view",id:l.id}}:a.checkIfExists(i,"view_comment")?{name:"edit-collabora",params:{action:"view",id:l.id}}:{name:"consultation-pdf",params:{id:l.id}}}function wn(l,t={}){if(!l.path){console.warn("nodeToMenuItem, favorite has no path",l);return}let a="";const i=l.path.elements.find(s=>s.nodeType==="st:site");let o;if(l.isFolder?o={name:"navigation-dossier",params:{id:i.name,FolderId:l.id}}:(o=Tn(l),o.name==="edit-collabora"&&(a="_blank")),i?.name){let s=null;if(t.parentNodeType){const n=l.path.elements.find(c=>c.nodeType===t.parentNodeType);n&&(s=n.name)}return{label:l.name,labelPrefix:s,icon:l.isFolder?"ri-folder-2-line":"ri-file-line",class:"menu-item responsive-text",target:a,to:o}}}const B=$t.global.t;class qr{createProcess(t){return he.post("/alfresco/api/-default-/public/workflow/versions/1/processes",t,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"}}).catch(i=>{throw console.error(B("tasks.error.createProcess"),i),new Error(B("tasks.error.createProcess"))})}getProcesses(){return he.get(`/alfresco/api/-default-/public/workflow/versions/1/processes?where=(startUserId='${localStorage.getItem("ACS_USERNAME")}')`,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"}}).then(t=>t.data.list.entries).catch(t=>{throw console.error(B("tasks.error.getProcesses"),t),new Error(B("tasks.error.getProcesses"))})}getProcess(t){return he.get(`/alfresco/api/-default-/public/workflow/versions/1/processes/${t}`,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"}}).then(a=>a.data.entry).catch(a=>{throw console.error(B("tasks.error.getProcess"),a),new Error(B("tasks.error.getProcess"))})}getFinishedProcesses(){return he.get(`/alfresco/api/-default-/public/workflow/versions/1/processes?where=(status=completed and startUserId='${localStorage.getItem("ACS_USERNAME")}')`,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"}}).then(t=>t.data.list.entries).catch(t=>{throw console.error(B("tasks.error.getFinishedProcess"),t),new Error(B("tasks.error.getFinishedProcess"))})}addProcessItems(t,a){const i=`/alfresco/api/-default-/public/workflow/versions/1/processes/${t}/items`;return he.post(i,a,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"}}).catch(o=>{throw console.error(B("tasks.error.addProcessItems"),o),new Error(B("tasks.error.addProcessItems"))})}getProcessItems(t){return he.get(`/alfresco/api/-default-/public/workflow/versions/1/processes/${t}/items`,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"}}).then(a=>a.data.list.entries).catch(a=>{throw console.error(B("tasks.error.getProcessItems"),a),new Error(B("tasks.error.getProcessItems"))})}getProcessVariables(t){return he.get(`/alfresco/api/-default-/public/workflow/versions/1/processes/${t}/variables`,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"}}).catch(a=>{throw console.error(B("tasks.error.getProcessVariables"),a),new Error(B("tasks.error.getProcessVariables"))})}getProcessDefinition(t){return he.get(`/alfresco/api/-default-/public/workflow/versions/1/process-definitions/${t}`,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"}}).then(a=>a.data.entry).catch(a=>{throw console.error(B("tasks.error.getProcessDefinition"),a),new Error(B("tasks.error.getProcessDefinition"))})}cancelWorkflow(t){return he.delete(`/alfresco/api/-default-/public/workflow/versions/1/processes/${t}`,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"}}).catch(a=>{throw console.error(B("tasks.error.cancelWorkflow"),a),new Error(B("tasks.error.cancelWorkflow"))})}openProcessDiagram(t){return he.get(`/alfresco/api/-default-/public/workflow/versions/1/process-definitions/${t}/image`,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"},responseType:"blob"}).catch(a=>{throw console.error(B("tasks.error.openProcessDiagram"),a),new Error(B("tasks.error.openProcessDiagram"))})}getProcessHistoryTasks(t){return he.get(`/alfresco/api/-default-/public/workflow/versions/1/tasks?where=(processId=${t} and status=any)`,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"}}).catch(a=>{throw console.error(B("tasks.error.getProcessHistoryTasks"),a),new Error(B("tasks.error.getProcessHistoryTasks"))})}listTasks(){return he.get(`/alfresco/api/-default-/public/workflow/versions/1/tasks?where=(assignee='${localStorage.getItem("ACS_USERNAME")}')`,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"}}).then(t=>{const a=[];return t.data.list.entries.forEach(i=>{a.push(i.entry)}),a}).catch(t=>{console.error(B("tasks.error.listTasks"),t);const a=new Error(B("tasks.error.listTasks"));throw a.status=t.response?.status,a})}listFinishedTasks(){return he.get(`/alfresco/api/-default-/public/workflow/versions/1/tasks?where=(status=completed and assignee='${localStorage.getItem("ACS_USERNAME")}')`,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"}}).then(t=>{const a=[];return t.data.list.entries.forEach(i=>{a.push(i.entry)}),a}).catch(t=>{throw console.error(B("tasks.error.listFinishedTasks"),t),new Error(B("tasks.error.listFinishedTasks"))})}getTask(t){return he.get(`/alfresco/api/-default-/public/workflow/versions/1/tasks/${t}`,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"}}).then(a=>a.data.entry).catch(a=>{throw console.error(B("tasks.error.getTask"),a),new Error(B("tasks.error.getTask"))})}endTask(t){const a={state:"completed"},i=`/alfresco/api/-default-/public/workflow/versions/1/tasks/${t}?select=state`;return he.put(i,a,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json","Content-Type":"application/json"}}).catch(o=>{throw console.error(B("tasks.error.endTask"),o),new Error(B("tasks.error.endTask"))})}getTaskVariables(t){return he.get(`/alfresco/api/-default-/public/workflow/versions/1/tasks/${t}/variables`,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"}}).catch(a=>{throw console.error(B("tasks.error.getTaskVariables"),a),new Error(B("tasks.error.getTaskVariables"))})}postTaskVariables(t,a){const i=`/alfresco/api/-default-/public/workflow/versions/1/tasks/${t}/variables`;return he.post(i,a,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"}}).catch(o=>{throw console.error(B("tasks.error.postTaskVariables"),o),new Error(B("tasks.error.postTaskVariables"))})}updateTaskVariables(t,a){const i=`/alfresco/api/-default-/public/workflow/versions/1/tasks/${t}?select=state,variables`;return he.put(i,a,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json","Content-Type":"application/json"}}).catch(o=>{throw console.error(B("tasks.error.updateTaskVariables"),o),new Error(B("tasks.error.updateTaskVariables"))})}getTaskItem(t){return he.get(`/alfresco/api/-default-/public/workflow/versions/1/tasks/${t}/items`,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"}}).catch(a=>{throw console.error(B("tasks.error.getTaskItem"),a),new Error(B("tasks.error.getTaskItem"))})}getSeverityFromPriotity(t){switch(t){case 1:return"danger";case 2:return"success";case 3:return"info";default:return"warning"}}formatDate(t){return t?ft.formatDate(new Date(t),"ddd D MMM YYYY"):B("tasks.none")}formatDateWithHour(t){const a=new Date(t),i=String(a.getUTCDate()).padStart(2,"0"),o=a.getUTCMonth(),s=a.getUTCFullYear(),n=String(a.getUTCHours()).padStart(2,"0"),c=String(a.getUTCMinutes()).padStart(2,"0"),r=String(a.getUTCSeconds()).padStart(2,"0"),h=["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"][a.getUTCDay()],b=["Jan","Fev","Mar","Avr","Mai","Jui","Jui","Aoû","Sep","Oct","Nov","Dec"][o];return`${h} ${i} ${b} ${s} ${n}:${c}:${r}`}displayPriority(t){return{3:B("tasks.priority.low"),2:B("tasks.priority.medium"),1:B("tasks.priority.high")}[t]||B("tasks.priority.notFound")}getTaskType(t){if(!t||!t.activityDefinitionId)return null;switch(t.activityDefinitionId){case"approved":return B("tasks.approved");case"rejected":return B("tasks.rejected");case"reviewTask":return B("tasks.reviewTask");case"adhocTask":return B("tasks.adhocTask");case"verifyTaskDone":return B("tasks.verifyTaskDone");default:return B("tasks.unknownTask")}}getTaskStatusLabelFromCode(t){const i=[{label:B("tasks.statusLabel.notYetStarted"),code:"Not Yet Started"},{label:B("tasks.statusLabel.inProgress"),code:"In Progress"},{label:B("tasks.statusLabel.onHold"),code:"On Hold"},{label:B("tasks.statusLabel.cancelled"),code:"Cancelled"},{label:B("tasks.statusLabel.completed"),code:"Completed"}].find(o=>o.code===t);return i?i.label:"Unknown"}}const ra=new qr,e0=300*1e3;let Sl=null;const In=$.defineStore({id:"TaskNotificationStore",state:()=>({hasActiveTasks:!1}),actions:{async checkTasks(){try{const l=await ra.listTasks();this.hasActiveTasks=l.length>0}catch(l){if(l.status===401){this.stopPolling();const{useUserStore:t}=await Promise.resolve().then(()=>l0);t().logout();return}console.error("Failed to check active tasks:",l)}},startPolling(){Sl===null&&(this.checkTasks(),Sl=setInterval(()=>this.checkTasks(),e0))},stopPolling(){Sl!==null&&(clearInterval(Sl),Sl=null),this.hasActiveTasks=!1}}}),t0=60*1e3;function fn(l){return new Promise(t=>setTimeout(t,l))}const Ge=$.defineStore({id:"UserStore",state:()=>({token:"",isAdmin:!1,isLoggedIn:!1,person:null,keycloak:null,homeFolder:null,isPristyAdmin:null}),getters:{displayName(l){return l.person==null?"":l.person.displayName}},actions:{async logout(){In().stopPolling(),ae&&await ae.logout(),this.$patch({token:"",isAdmin:!1,person:null,apiAlfresco:null,isLoggedIn:!1,isPristyAdmin:null});const l=de();if(l.AUTH==="keycloak"||l.AUTH==="lemonldap"||l.AUTH==="azuread"){clearTimeout(this.keycloakRenewTO);try{await he.get(`${l.ALFRESCO_HOST}/alfresco/logout`)}catch(t){console.error("Error during Alfresco logout:",t)}localStorage.removeItem("ticket-ECM"),localStorage.removeItem("ACS_USERNAME"),this.keycloak.logout()}},validateSession(){if(!ae.isLoggedIn())return this.isLoggedIn=!1,Promise.resolve(void 0);const l=de();return l.AUTH==="keycloak"||l.AUTH==="lemonldap"||l.AUTH==="azuread"?this.getAlfTicket():l2.validateTicket().then(()=>{this.isLoggedIn=!0}).catch(()=>{this.isLoggedIn=!1})},connectKeycloak:async function(){for(;this.keycloak==null||this.keycloak.createLoginUrl===null;)await fn(100);if(this.keycloak.authenticated){for(;!this.isLoggedIn;)await fn(100),await this.validateSession();this.person===null&&await this.getPerson()}else{const l=de();l.AUTH==="azuread"&&(this.keycloak.responseType=l.OIDC_RESPONSE_TYPE);const t=this.keycloak.createLoginUrl();window.location.replace(t)}},keycloakReady(l){return this.keycloak=l,this.getAlfTicket().then(t=>(this.keycloakRenewTO=setInterval(this.getAlfTicket,t0),t))},getAlfTicket(){const l=de();return l.AUTH!=="keycloak"&&l.AUTH!=="lemonldap"&&l.AUTH!=="azuread"?(console.warn("getAlfTicket() won't work in standard AUTH configuration"),Promise.resolve(void 0)):he.get(`${l.ALFRESCO_HOST}/alfresco/api/-default-/public/authentication/versions/1/tickets/-me-`,{headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${this.keycloak.token}`}}).then(t=>t.data.entry).then(t=>(ae.setTicket(t.id,null),window.localStorage.setItem("ACS_USERNAME",this.keycloak.idTokenParsed.preferred_username),this.isLoggedIn=!0,t)).catch(t=>{throw this.isLoggedIn=!1,Qa(t)})},getPerson(){return Dt.getPerson("-me-").then(l=>l.entry).then(l=>(this.isLoggedIn=!0,this.person=l,this.isAdmin=l.capabilities?.isAdmin===!0,l)).then(l=>mt.search({query:{language:"afts",query:`cm:userName:${l.id}`},filterQueries:[{query:"TYPE:'cm:person'"}],include:["properties"]}).then(t=>{if(t.list.pagination.count>1)console.warn("More than one Person for "+l);else if(t.list.pagination.count<0)return console.warn("More than one Person for "+l),{};return t.list.entries[0].entry}).then(t=>{this.homeFolder=t.properties["cm:homeFolder"]})).catch(()=>{this.isLoggedIn=!1})},async checkPristyAdminStatus(){if(!(this.isPristyAdmin!==null||!this.person?.id))try{const t=(await hl.listGroupMemberships("GROUP_PRISTY_ADMINISTRATORS")).list.entries;this.isPristyAdmin=t.some(a=>a.entry.id===this.person.id)}catch(l){console.error("Error checking Pristy admin status:",l),this.isPristyAdmin=!1}},async login(l,t){if(!l||!t)return!1;await this.apiLogin(l,t)},apiLogin(l,t){return ae.login(l,t).then(()=>(this.isLoggedIn=!0,this.getPerson())).catch(a=>{throw this.isLoggedIn=!1,Qa(a)})},async publiclogoff(){const l=localStorage.getItem("ACS_USERNAME");l&&l.startsWith("user_publication_")&&(ae.invalidateSession(),localStorage.removeItem("ticket-ECM"),localStorage.removeItem("ACS_USERNAME"))},publiclogin(l){let t=ae.getTicketEcm();return typeof t<"u"&&t!=null?Promise.resolve(t):Wl.executeWebScript("GET",`fr/jeci/pristy/authentication/ticket/publication/site/${l}`).then(a=>(ae.setTicket(a.ticket,null),window.localStorage.setItem("ACS_USERNAME",a.login),a.ticket)).catch(a=>{throw Qa(a)})}}}),l0=Object.freeze(Object.defineProperty({__proto__:null,useUserStore:Ge},Symbol.toStringTag,{value:"Module"})),da=$.defineStore({id:"MenuStore",state:()=>({menu:[]}),actions:{addFavorite(l,t){if(!l){console.warn("addFavorite, item is undefined");return}this.menu.find(a=>a.key===t).items.push(l)},removeFavorite(l,t){if(!l){console.warn("removeFavorite, item is undefined");return}let a=this.menu.find(i=>i.key===t).items.findIndex(i=>"FolderId"in i.to.params?i.to.params.FolderId===l.to.params.FolderId:i.to.params.id===l.to.params.id);this.menu.find(i=>i.key===t).items.splice(a,1)}}});let gl=null;const Jl=$.defineStore({id:"FavoritesStore",state:()=>({favorites:[],loaded:!1,loading:!1}),getters:{siteFavorites:l=>l.favorites.filter(t=>t.target&&t.target.site),fileFavorites:l=>l.favorites.filter(t=>t.target&&t.target.file),folderFavorites:l=>l.favorites.filter(t=>t.target&&t.target.folder)},actions:{loadFavorites(l=!1){if(this.loaded&&!l)return Promise.resolve(this.favorites);if(gl)return gl;this.loading=!0;const t=Ge(),a={skipCount:0,maxItems:200,include:["path"]};return gl=Vl.listFavorites(t.person.id,a).then(i=>(this.favorites=i.list.entries.map(o=>o.entry),this.loaded=!0,this.favorites)).catch(i=>{if(i?.status===400)return Vl.listFavorites(t.person.id,{skipCount:0,maxItems:200}).then(o=>(this.favorites=o.list.entries.map(s=>s.entry),this.loaded=!0,this.favorites));throw P("loadFavorites",i)}).finally(()=>{this.loading=!1,gl=null}),gl},addFavoriteToCache(l){this.favorites.push(l)},removeFavoriteFromCache(l){this.favorites=this.favorites.filter(t=>t.targetGuid!==l)},reset(){this.favorites=[],this.loaded=!1,this.loading=!1,gl=null}}});class a0{getFavorites(t){return Jl().loadFavorites().then(i=>t?i.filter(o=>o.target&&o.target[t]):i)}changeSingleFavorite(t,a={}){return t.isFavorite?this.deleteFavoris(t):this.createFavorite(t,a)}createFavorite(t,a={}){const i=Ge(),o=da();let s={target:{}},n={guid:t.id};return t.nodeType==="st:site"?s.target={site:n}:t.isFile?s.target={file:n}:s.target={folder:n},Vl.createFavorite(i.person.id,s).then(c=>(t.isFavorite=c.entry.targetGuid===t.id,Jl().addFavoriteToCache(c.entry),t)).then(c=>(c.isFavorite&&o.addFavorite(wn(c,a),"menuFavoris"),c)).catch(c=>{throw P("createFavorite",c)})}deleteFavoris(t){const a=Ge(),i=da();return Vl.deleteFavorite(a.person.id,t.id).then(()=>(t.isFavorite=!1,Jl().removeFavoriteFromCache(t.id),t)).then(o=>(o.isFavorite||i.removeFavorite(wn(o),"menuFavoris"),o)).catch(o=>{throw console.error(o),P("getSharedLink",o)})}}const ba=new a0;class o0{constructor(){this.lruPristyAdmin=new qe({maxSize:1,maxAge:300*1e3})}clearAdminCache(){this.lruPristyAdmin.clear()}isInPristyAdminGroup(){const t="isAdmin";return this.lruPristyAdmin.has(t)?Promise.resolve(this.lruPristyAdmin.get(t)):Dt.getPerson("-me-").then(a=>{const i=a.entry.id;return hl.listGroupMemberships("GROUP_PRISTY_ADMINISTRATORS").then(o=>{const n=o.list.entries.some(c=>c.entry.id===i);return this.lruPristyAdmin.set(t,n),n}).catch(o=>(console.error("Error retrieving group memberships:",o),!1))})}async computeMenuActes(){let t=[],a=await je.searchAllWorkspaces("AND pm:typeEspace:'actes'"),i=this.actesSiteToMenuItems(a);return t.push({label:"Actes administratifs",key:"menuActes",to:{name:"mes-espaces-actes"},class:"layout-menuitem-root-text",items:i}),t}actesSiteToMenuItems(t){let a=t.map(i=>({label:i.title,class:"menu-item responsive-text",icon:"ri-folder-2-line",to:{name:"seances",params:{id:i.name}}}));return a.push({label:"Recherche",icon:"ri-search-line",class:"menu-item responsive-text",to:{name:"recherche-actes"}}),a}favoritesSiteToMenuItems(t){return t.filter(a=>Object.prototype.hasOwnProperty.call(a.target,"site")&&!a?.properties?.["pm:typeEspace"]).map(a=>({label:a.target.site.title,icon:"ri-building-line",class:"menu-item responsive-text",to:{name:"navigation",params:{id:a.target.site.id}}}))}favoritesNodeToMenuItems(t){return t.reduce((a,i)=>{if(!i.target)return console.warn("favoritesNodeToMenuItems, favorite has no target",i),a;const o=i.target,s=o.folder||o.file||o.site;if(!s||!s.path)return console.warn("favoritesNodeToMenuItems, target has no valid path",i),a;if(s.path.elements.find(c=>c.nodeType==="st:site")?.name){let c=this.retrieveFavorite(i);a.push(c)}return a},[])}siteToMenuItem(t){let a=t.properties?.["pm:typeEspace"]==="actes";return{label:t.title,icon:a?"ri-folder-2-line":"ri-building-line",class:"menu-item responsive-text",to:a?{name:"seances",params:{id:t.name}}:{name:"navigation",params:{id:t.name}}}}retrieveFavorite(t){const a=t.target,i=a.folder||a.file||a.site;if(!i.path){console.warn("nodeToMenuItem, favorite has no path",t);return}let o="";const s=i.path.elements.find(c=>c.nodeType==="st:site");let n;if(i.isFolder?n={name:"navigation-dossier",params:{id:s.name,FolderId:t.targetGuid}}:(n=Tn(i),n.name==="edit-collabora"&&(o="_blank")),s?.name)return{label:i.name,icon:i.isFolder?"ri-folder-2-line":"ri-file-line",class:"menu-item responsive-text",target:o,to:n}}}const $a=new o0,s0={name:"ActionMenu",components:{PrimeDivider:Ll,PrimeMenu:Uo},props:{actionMenuItems:{type:Array,default:()=>[]}},methods:{getActionMenuRef(){return this.$refs.primeMenu}},computed:{filteredActionsWithDivider(){return this.actionMenuItems.map(l=>l.items.filter(t=>t.visible!==!1)).filter(l=>l.length>0).flatMap((l,t,a)=>t<a.length-1?[...l,{separator:!0}]:l)}}},i0=["href"],n0=["href"];function c0(l,t,a,i,o,s){const n=e.resolveComponent("PrimeDivider"),c=e.resolveComponent("router-link"),r=e.resolveComponent("PrimeMenu");return e.openBlock(),e.createBlock(r,{ref:"primeMenu",model:s.filteredActionsWithDivider,popup:""},{item:e.withCtx(({item:m,props:h})=>[m.separator?(e.openBlock(),e.createBlock(n,{key:0,class:"my-1"})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[m.route?(e.openBlock(),e.createBlock(c,{key:0,to:m.route,custom:""},{default:e.withCtx(u=>[e.createElementVNode("a",e.mergeProps({href:u.href},h.action,{class:"flex align-items-center px-3 py-2"}),[e.createElementVNode("span",{class:e.normalizeClass([m.icon,"mr-2"])},null,2),e.createElementVNode("span",null,e.toDisplayString(m.label),1)],16,i0)]),_:2},1032,["to"])):(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:1,href:m.url},h.action,{class:"flex align-items-center px-3 py-2"}),[e.createElementVNode("span",{class:e.normalizeClass([m.icon,"mr-2"])},null,2),e.createElementVNode("span",null,e.toDisplayString(m.label),1)],16,n0))],64))]),_:1},8,["model"])}const Ul=H(s0,[["render",c0]]),r0={name:"EllipsisBreadcrumb",components:{ActionMenu:Ul,PrimeButton:w,PrimeMenu:Uo},directives:{tooltip:dt},inject:["getBreadcrumbActions"],props:{path:{type:Array,default:()=>[]},currentNode:{type:Object,default:null},isInSearch:{type:Boolean,default:!1},isSmallScreen:{type:Boolean,default:!1},isVerySmallScreen:{type:Boolean,default:!1},menuActionVisible:{type:Boolean,default:!0}},emits:["reload"],data(){return{popup:null,modifyWorkspaceItem:null,workspaceName:null,menuActionItems:[],breadCrumbNode:{},modifyPopupTitle:"",workspaceNode:null,tempAspectsName:null,isSite:!1,menuBreadcrumbItems:[]}},computed:{...$.mapState(xe,["isInConsultation","isInUserHome"]),lastItem(){return this.path[this.path.length-1]},secondToLastItem(){return this.path[this.path.length-2]}},methods:{toggleMenuActionButton(l,t){const a=l.currentTarget||l.target;V.getNode(t.id).then(i=>{this.menuActionItems=this.getBreadcrumbActions(i),this.$refs.menuAction.getActionMenuRef().toggle({currentTarget:a})})},toggleBreadCrumbMenu(l){let t;!this.isVerySmallScreen&&!this.isSmallScreen?t=this.path.slice(2,-2):this.isVerySmallScreen?t=this.path.slice(1,this.path.length-1):this.isSmallScreen&&!this.isVerySmallScreen&&(t=this.path.slice(2,this.path.length-2)),this.menuBreadcrumbItems=t.map(a=>({label:a.name,icon:a.nodeType==="cm:folder"?"ri-folder-2-line":"ri-building-line",route:a.to})),this.$refs.menuBreadcrumb.toggle(l)},isNodeIgnore(l,t){return Xe.isPathElementVisible(l,t)},openModifyWorkspace(){je.getWorkspace(this.breadCrumbNode.name).then(l=>{l.name=l.id,this.modifyWorkspaceItem=l,this.popup="MODIFYWORKSPACE"})},openRename(){Oe().selectSingleNode(this.breadCrumbNode),this.tempAspectsName=this.breadCrumbNode.aspectNames,this.breadCrumbNode.aspectNames=void 0,this.modifyPopupTitle="renameElement",this.popup="MODIFYNODE"},openModify(){Oe().selectSingleNode(this.breadCrumbNode),this.tempAspectsName=this.breadCrumbNode.aspectNames,this.modifyPopupTitle="properties",this.popup="MODIFYNODE"},openMove(){Oe().selectSingleNode(this.breadCrumbNode),this.popup="MOVENODE"},openCopy(){Oe().selectSingleNode(this.breadCrumbNode),this.popup="COPYNODE"},closePopup(){this.popup==="MODIFYNODE"&&(this.breadCrumbNode.aspectNames=this.tempAspectsName),this.popup=null,this.$emit("reload")},openMembers(){this.popup="MEMBERS"},toggleFavorite(){ba.changeSingleFavorite(this.breadCrumbNode).then(l=>{this.$toast.add({severity:"success",summary:this.$t("menu.favoris"),detail:l.isFavorite?this.$t("node.addElementFavorite",{name:l.name}):this.$t("node.removeElementFavorite",{name:l.name}),life:3e3})}).catch(l=>{this.$toast.add({severity:"error",summary:this.$t("node.favoriteError"),detail:l.message,life:3e3})})},hasRequiredOperationsForOwner(){return["update","delete","updatePermissions"].every(t=>this.currentNode.allowableOperations?.includes(t))},toggleWorkspaceFavorite(){V.getNode(this.currentNode.id).then(l=>{this.breadCrumbNode.isFavorite=l.isFavorite,je.getWorkspace(this.breadCrumbNode.name).then(t=>{this.breadCrumbNode.title=t.title;let a=da();ba.changeSingleFavorite(this.breadCrumbNode).then(i=>{i.isFavorite?(a.addFavorite($a.siteToMenuItem(i),"menuEspaces"),this.breadCrumbNode.isFavorite=i.isFavorite,this.$toast.add({severity:"success",summary:this.$t("menu.favoris"),detail:this.$t("node.addSiteFavorite",{name:i.title}),life:3e3})):(a.removeFavorite($a.siteToMenuItem(i),"menuEspaces"),this.breadCrumbNode.isFavorite=i.isFavorite,this.$toast.add({severity:"success",summary:this.$t("menu.favoris"),detail:this.$t("node.removeSiteFavorite",{name:i.title}),life:3e3}))}).catch(i=>{console.error("erreur de favoris",i),this.$toast.add({severity:"error",summary:this.$t("node.favoriteError"),detail:i.message,life:3e3})})})})}}},d0={key:0,class:"p-breadcrumb p-component"},b0={class:"p-breadcrumb-list"},m0={class:"p-menuitem"},p0={key:0},u0={class:"p-menuitem"},Z0={class:"commonElementName breadcrumbElementName"},h0={key:1,class:"ri-arrow-right-s-line breadcrumbSeparator text-2xl mb-2 mx-1"},y0={class:"p-2"},W0={class:"ml-2 breadcrumbMenuItem"},g0={key:2,class:"ri-arrow-right-s-line breadcrumbSeparator text-2xl mb-2 mx-1"},Y0={key:3},N0={class:"p-menuitem"},X0={class:"commonElementName breadcrumbElementName"},z0={class:"p-menuitem"};function A0(l,t,a,i,o,s){const n=e.resolveComponent("router-link"),c=e.resolveComponent("PrimeButton"),r=e.resolveComponent("PrimeMenu"),m=e.resolveComponent("ActionMenu"),h=e.resolveDirective("tooltip");return a.path?(e.openBlock(),e.createElementBlock("div",d0,[e.createElementVNode("div",b0,[e.createElementVNode("div",m0,[e.createVNode(n,{to:a.path[0].to,"aria-label":l.$t("home")},{default:e.withCtx(()=>[...t[2]||(t[2]=[e.createElementVNode("span",{class:"ri-home-4-line breadcrumbIcon primary-color","aria-hidden":"true"},null,-1)])]),_:1},8,["to","aria-label"])]),t[5]||(t[5]=e.createElementVNode("i",{class:"ri-arrow-right-s-line breadcrumbSeparator text-2xl mb-2 mx-1"},null,-1)),a.isVerySmallScreen?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",p0,[e.createElementVNode("div",u0,[e.createVNode(n,{to:a.path[1].to,class:"flex align-items-center"},{default:e.withCtx(()=>[t[3]||(t[3]=e.createElementVNode("span",{class:"ri-building-line breadcrumbIcon primary-color","aria-hidden":"true"},null,-1)),e.withDirectives((e.openBlock(),e.createElementBlock("span",Z0,[e.createTextVNode(e.toDisplayString(a.path[1].name),1)])),[[h,a.path[1].name]])]),_:1},8,["to"])])])),a.isVerySmallScreen?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("i",h0)),e.createVNode(c,{type:"button",class:"breadcrumbEllipsis",icon:"ri-more-fill","aria-label":l.$t("moreActions"),rounded:"",text:"",severity:"secondary",onClick:t[0]||(t[0]=u=>s.toggleBreadCrumbMenu(u))},null,8,["aria-label"]),e.createVNode(r,{ref:"menuBreadcrumb",model:o.menuBreadcrumbItems,popup:""},{item:e.withCtx(({item:u})=>[e.createElementVNode("div",y0,[e.createVNode(n,{to:u.route},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["ml-2 breadcrumbMenuItem",u.icon])},null,2),e.createElementVNode("span",W0,e.toDisplayString(u.label),1)]),_:2},1032,["to"])])]),_:1},8,["model"]),a.isVerySmallScreen?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("i",g0)),a.isVerySmallScreen?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Y0,[e.createElementVNode("div",N0,[e.createVNode(n,{to:s.secondToLastItem.to,class:"flex align-items-center"},{default:e.withCtx(()=>[t[4]||(t[4]=e.createElementVNode("span",{class:"ri-folder-2-line breadcrumbIcon primary-color","aria-hidden":"true"},null,-1)),e.withDirectives((e.openBlock(),e.createElementBlock("span",X0,[e.createTextVNode(e.toDisplayString(s.secondToLastItem.name),1)])),[[h,s.secondToLastItem.name]])]),_:1},8,["to"])])])),t[6]||(t[6]=e.createElementVNode("i",{class:"ri-arrow-right-s-line breadcrumbSeparator text-2xl mb-2 mx-1"},null,-1)),e.createElementVNode("div",z0,[e.createVNode(n,{to:s.lastItem.to,class:"flex align-items-center"},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["ri-folder-2-line breadcrumbIcon",[l.isInConsultation?"primary-color":"lastItemElementName"]]),"aria-hidden":"true"},null,2),e.withDirectives((e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["commonElementName",{lastItemElementName:!l.isInConsultation,breadcrumbElementName:l.isInConsultation}])},[e.createTextVNode(e.toDisplayString(s.lastItem.name),1)],2)),[[h,s.lastItem.name]])]),_:1},8,["to"])]),!a.isInSearch&&a.menuActionVisible?e.withDirectives((e.openBlock(),e.createBlock(c,{key:4,"aria-label":l.$t("moreActions"),type:"button",class:"breadcrumbDropdown",icon:"ri-more-2-fill",rounded:"",text:"",severity:"secondary",onClick:t[1]||(t[1]=u=>s.toggleMenuActionButton(u,s.lastItem))},null,8,["aria-label"])),[[h,l.$t("moreActions")]]):e.createCommentVNode("",!0),e.createVNode(m,{ref:"menuAction",actionMenuItems:o.menuActionItems},null,8,["actionMenuItems"])])])):e.createCommentVNode("",!0)}const vn=H(r0,[["render",A0],["__scopeId","data-v-546d4546"]]),M0={name:"BreadCrumbAlfresco",components:{ActionMenu:Ul,PrimeButton:w,PrimeBreadcrumb:Ic},directives:{tooltip:dt},inject:["getBreadcrumbActions"],props:{path:{type:Array,default:()=>[]},isInSearch:{type:Boolean,default:!1},menuActionVisible:{type:Boolean,default:!0}},emits:["reload"],data(){return{popup:null,modifyWorkspaceItem:null,workspaceName:null,menuActionItems:[],breadCrumbNode:{},modifyPopupTitle:"",workspaceNode:null,tempAspectsName:null,isSite:!1,breadCrumbActions:[]}},computed:{...$.mapState(xe,["isInConsultation","isInUserHome"])},methods:{isLastItem(l){return l.item===this.path[this.path.length-1]},toggleMenuActionButton(l,t){const a=l.currentTarget||l.target;V.getNode(t.item.id).then(i=>{this.breadCrumbActions=this.getBreadcrumbActions(i),this.$refs.breadcrumbMenuAction.getActionMenuRef().toggle({currentTarget:a})})},isNodeIgnore(l,t){return Xe.isPathElementVisible(l,t)}}},O0={class:"flex align-items-center"};function j0(l,t,a,i,o,s){const n=e.resolveComponent("router-link"),c=e.resolveComponent("PrimeButton"),r=e.resolveComponent("ActionMenu"),m=e.resolveComponent("PrimeBreadcrumb"),h=e.resolveDirective("tooltip");return a.path?(e.openBlock(),e.createBlock(m,{key:0,model:a.path},{item:e.withCtx(u=>[e.createElementVNode("div",O0,[e.createVNode(n,{to:u.item.to,class:"flex align-items-center"},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(u.icon)},null,2),u.item.nodeType==="st:site"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ri-building-line breadcrumbIcon",{"primary-color":!s.isLastItem(u),searchOrConsultActiveClass:a.isInSearch||l.isInConsultation}]),"aria-hidden":"true"},null,2)):u.item.nodeType==="home"?(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass(["ri-home-4-line breadcrumbIcon",{"primary-color":!s.isLastItem(u),searchOrConsultActiveClass:a.isInSearch||l.isInConsultation}]),"aria-hidden":"true"},null,2)):u.item.isFolder?(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass(["ri-folder-2-line breadcrumbIcon",{"primary-color":!s.isLastItem(u),searchOrConsultActiveClass:a.isInSearch||l.isInConsultation,lastItemElementName:s.isLastItem(u)&&!a.isInSearch&&!l.isInConsultation}]),"aria-hidden":"true"},null,2)):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["commonElementName",{lastItemElementName:s.isLastItem(u)&&!a.isInSearch&&!l.isInConsultation,breadcrumbElementName:!s.isLastItem(u),searchOrConsultActiveClass:a.isInSearch||l.isInConsultation}])},[e.createTextVNode(e.toDisplayString(u.item.name),1)],2)),[[h,u.item.name]])]),_:2},1032,["to"]),s.isLastItem(u)&&!a.isInSearch&&a.menuActionVisible?e.withDirectives((e.openBlock(),e.createBlock(c,{key:0,"aria-label":l.$t("moreActions"),type:"button",class:"breadcrumbDropdown",icon:"ri-more-2-fill",rounded:"",text:"",severity:"secondary",onClick:b=>s.toggleMenuActionButton(b,u)},null,8,["aria-label","onClick"])),[[h,l.$t("moreActions")]]):e.createCommentVNode("",!0)]),e.createVNode(r,{ref:"breadcrumbMenuAction",actionMenuItems:o.breadCrumbActions},null,8,["actionMenuItems"])]),_:1},8,["model"])):e.createCommentVNode("",!0)}const Ln=H(M0,[["render",j0],["__scopeId","data-v-e9dff6fc"]]),G0=["en","fr"],T0=["o","Ko","Mo","Go","To"],w0=["o","Ko","Mo","Go","To"];class I0{convertBytesToSize(t){if(t==null||t==="")return"";let a=parseInt(t);if(a===0)return"0";const o=this.currentLang()==="fr"?w0:T0;let s=Math.floor(Math.log(a)/Math.log(1024)),n=a/Math.pow(1024,s);return`${n<10&&s>0?n.toFixed(1):Math.round(n)} ${o[s]}`}currentLang(){let t=localStorage?.getItem("user.language")||window?.navigator?.language;return t.indexOf("-")>0&&(t=t.substring(0,t.indexOf("-"))),G0.includes(t)||(t="en"),t}}const Dn=new I0,Rn=$t.global.t;class f0{toLocaleDateString(t){if(!t)return"";let a=new Date(t);return new Intl.DateTimeFormat("fr-FR").format(a)}formatDate(t){return ft.formatDate(new Date(t),"ddd D MMM YYYY")}formatDateTime(t){return ft.formatDate(new Date(t),"ddd D MMM YYYY - HH:mm:ss")}formatBool(t){if(t===!0)return Rn("yes");if(t===!1)return Rn("no")}}const ma=new f0,ue=$t.global.t;class v0{getIcon(t){let a;if(t.isFile){switch(t.content.mimeType){case"application/vnd.oasis.opendocument.text":case"application/vnd.openxmlformats-officedocument.wordprocessingml.document":case"application/msword":case"application/rtf":a="collabora-text";break;case"application/vnd.ms-excel":case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":case"application/vnd.oasis.opendocument.spreadsheet":a="collabora-sheet";break;case"application/vnd.oasis.opendocument.graphics":a="collabora-draw";break;case"application/vnd.oasis.opendocument.presentation":case"application/vnd.ms-powerpoint":case"application/vnd.openxmlformats-officedocument.presentationml.presentation":a="collabora-presentation";break;case"application/eps":a="image-ai";break;case"application/epub+zip":a="file-epub";break;case"application/json":a="text-json";break;case"application/pdf":a="file-pdf";break;case"application/x-javascript":a="text-js";break;case"application/pkcs7-signature":a="pkcs7";break;case"application/x-pkcs12":a="pkcs12";break;case"application/x-x509-ca-cert":a="x509";break;case"application/x-sh":a="text-sh";break;case"application/zip":case"application/x-gzip":a="file-zip";break;case"application/x-7z-compressed":a="file-7z";break;case"application/x-rar-compressed":a="file-rar";break;case"application/x-tar":a="file-tar";break;case"audio/x-flac":a="audio-flac";break;case"audio/mp4":a="audio-mp4";break;case"audio/mpeg":a="audio-mp3";break;case"audio/ogg":a="audio-ogg";break;case"audio/x-wav":a="audio-wav";break;case"image/bmp":a="image-bmp";break;case"image/gif":a="image-gif";break;case"image/jpeg":a="image-jpg";break;case"image/png":a="image-png";break;case"image/svg+xml":a="image-svg";break;case"image/tiff":a="image-tiff";break;case"image/webp":a="image-webp";break;case"image/x-xcf":a="image-xfc";break;case"message/rfc822":a="file-eml";break;case"text/css":a="text-css";break;case"text/csv":a="text-csv";break;case"text/html":a="text-html";break;case"text/markdown":case"text/x-markdown":case"text/x-web-markdown":a="text-md";break;case"text/plain":a="text-plain";break;case"text/sql":a="text-sql";break;case"text/xml":case"application/xml":a="text-xml";break;case"video/avi":a="video-avi";break;case"video/mp4":case"video/x-m4v":a="video-mp4";break;case"video/mpeg":case"video/x-mpeg":a="video-mpeg";break;case"video/ogg":a="video-ogg";break;case"video/webm":a="video-webm";break;default:a="file-unknow"}a==="file-unknow"&&(t.content.mimeType.startsWith("image/")?a="image-unknow":t.content.mimeType.startsWith("video/")?a="video-unknow":t.content.mimeType.startsWith("audio/")?a="audio-unknow":t.content.mimeType.startsWith("text/")?a="text-unknow":(t.content.mimeType.startsWith("application/x-font-")||t.content.mimeType.startsWith("font/"))&&(a="file-font"))}else t.nodeType==="st:site"?a="mimetype_espace":a="mimetype_folder";return a}getIconLabel(t){let a;if(t.isFolder)a=ue("dossier");else if(t.isFile)if(t.content.mimeType.startsWith("image/"))a=ue("fichier_image");else if(t.content.mimeType.startsWith("video/"))a=ue("fichier_video");else switch(t.content.mimeType){case"application/pdf":a=ue("fichier_pdf");break;case"message/rfc822":a=ue("fichier_eml");break;case"application/vnd.oasis.opendocument.text":case"application/vnd.openxmlformats-officedocument.wordprocessingml.document":case"application/msword":case"application/rtf":a=ue("fichier_texte");break;case"application/vnd.ms-excel":case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":case"application/vnd.oasis.opendocument.spreadsheet":a=ue("fichier_tableur");break;case"application/vnd.oasis.opendocument.graphics":a=ue("fichier_dessin");break;case"application/vnd.oasis.opendocument.presentation":case"application/vnd.ms-powerpoint":case"application/vnd.openxmlformats-officedocument.presentationml.presentation":a=ue("fichier_presentation");break;case"text/plain":a=ue("fichier_texte");break;case"text/markdown":case"text/x-markdown":case"text/x-web-markdown":a=ue("fichier_markdown");break;case"application/json":a=ue("fichier_json");break;case"text/xml":case"application/xml":a=ue("fichier_xml");break;case"text/html":a=ue("fichier_html");break;case"text/css":a=ue("fichier_css");break;case"text/csv":a=ue("fichier_csv");break;case"application/x-javascript":case"text/javascript":a=ue("fichier_javascript");break;case"text/sql":a=ue("fichier_sql");break;case"application/x-sh":case"text/x-sh":a=ue("fichier_shell");break;case"application/x-yaml":case"text/yaml":case"text/x-yaml":a=ue("fichier_yaml");break;case"text/x-python":case"application/x-python":a=ue("fichier_python");break;case"text/typescript":case"application/typescript":case"text/x-typescript":a=ue("fichier_typescript");break;case"text/x-php":case"application/x-php":a=ue("fichier_php");break;case"text/x-java":case"text/x-java-source":a=ue("fichier_java");break;case"text/x-c":case"text/x-c++":case"text/x-go":case"text/x-rust":case"text/x-ruby":a=ue("fichier_code");break;case"application/x-ini":case"text/x-ini":case"application/toml":case"text/x-toml":a=ue("fichier_config");break;case"text/x-log":a=ue("fichier_log");break;default:a=ue("fichier")}else t.nodeType==="st:site"?a=ue("espace"):a=t.nodeType;return a}}const tl=new v0,L0={name:"ContentTableView",components:{PristyIcon:xl,PrimeButton:w,PrimeImage:Ga,PrimeDataTable:Dl,PrimeCheckBox:Lt,PrimeColumn:Rl},directives:{tooltip:dt},inject:["collaboraService","isCurrentNodeDisplayed","getLibelleById"],props:{files:{type:Array,default:()=>[]},filters:{type:Object,default:null},currentNode:{type:Object,default:null},selectedNodes:{type:Array,default:()=>[]},isPageSelected:{type:Boolean,default:!1},isPreviewPanelVisible:{type:Boolean,default:!1},isSmallScreen:{type:Boolean,default:!1},isInUserHome:{type:Boolean,default:!1},totalRecordNodes:{type:Number,default:0},datatableColumnConfig:{type:Array,default:()=>[]}},emits:["update:pageSelectedNodes","update:selectedNodes","click-icon","open-preview-panel","open-sharelink","toggle-favorite","toggle-file-action-menu","navigate-to","open-members"],computed:{visibleColumns(){return this.datatableColumnConfig.filter(l=>l.visible)},hasLockedItem(){return this.files.some(l=>l.isLocked)},hasBrokenInheritance(){return this.files.some(l=>l.permissions?.isInheritanceEnabled===!1)},isPageSelectedCopy:{get(){return this.isPageSelected},set(l){this.$emit("update:pageSelectedNodes",l)}},selectedNodesCopy:{get(){return this.selectedNodes},set(l){this.$emit("update:selectedNodes",l)}}},methods:{navigateTo(l){this.$emit("navigate-to",l)},handleNavigateClick(l,t){l.ctrlKey||l.metaKey||l.button===1||(l.preventDefault(),this.navigateTo(t))},applyAction(l,t){!l||typeof this[l]!="function"||this[l](t)},applyFormat(l,t){return!t||typeof this[t]!="function"?l:this[t](l)},getValue(l,t){return t.replace(/\[(\w+)\]/g,".$1").replace(/\["(.+?)"\]|\['(.+?)'\]/g,".$1$2").split(".").filter(Boolean).reduce((a,i)=>a&&a[i]!==void 0?a[i]:void 0,l)},alfrescoFileService(){return Xe},convertBytesToSize(l){return Dn.convertBytesToSize(l)},toLocaleDateString(l){return ma.toLocaleDateString(l)},displaySvg(l){return l.isFile&&l.content.mimeType==="image/svg+xml"},loadIcon(l){return tl.getIcon(l)},loadIconLabel(l){return tl.getIconLabel(l)},onImageLoadFailure(l,t){Xe.onImageLoadFailure(l,t)},displayThumb(l){return Xe.isThumbnailSupported(l)},clickIcon(l){this.$emit("click-icon",l)},openPreviewPanel(l){this.$emit("open-preview-panel",l)},openShareLink(l){this.$emit("open-sharelink",l)},toggleFavorite(l){this.$emit("toggle-favorite",l)},toggleFileActionMenu(l,t){this.$emit("toggle-file-action-menu",l,t)}}},D0={"data-tour":"select-all-checkbox"},R0={"data-tour":"item-checkbox"},k0=["src","alt"],C0=["src","alt","onError"],F0={key:0},V0={class:"ri-lock-line","aria-hidden":"true"},x0={key:1},S0=["aria-label","onClick"],J0=["onClick"],U0=["onClick"],H0={class:"datatable-buttons"};function Q0(l,t,a,i,o,s){const n=e.resolveComponent("PrimeCheckBox"),c=e.resolveComponent("PrimeColumn"),r=e.resolveComponent("PrimeImage"),m=e.resolveComponent("PristyIcon"),h=e.resolveComponent("router-link"),u=e.resolveComponent("PrimeButton"),b=e.resolveComponent("PrimeDataTable"),y=e.resolveDirective("tooltip");return a.currentNode?(e.openBlock(),e.createBlock(b,{"data-testid":"content-table-view",key:a.currentNode.id,value:a.files,"row-hover":"","state-key":`datatable-folder-page-list--${a.currentNode.id}`,"state-storage":"local","data-key":a.currentNode.id,filters:a.filters,"global-filter-fields":["name"],"removable-sort":"","striped-rows":"",class:e.normalizeClass({"with-preview-panel":a.isPreviewPanelVisible})},{default:e.withCtx(()=>[e.createVNode(c,{style:{width:"3rem"}},{header:e.withCtx(()=>[e.createElementVNode("div",D0,[e.createVNode(n,{modelValue:s.isPageSelectedCopy,"onUpdate:modelValue":t[0]||(t[0]=g=>s.isPageSelectedCopy=g),binary:""},null,8,["modelValue"])])]),body:e.withCtx(g=>[e.createElementVNode("div",R0,[e.createVNode(n,{id:g.data.id,modelValue:s.selectedNodesCopy,"onUpdate:modelValue":t[1]||(t[1]=X=>s.selectedNodesCopy=X),name:"option",value:g.data},null,8,["id","modelValue","value"])])]),_:1}),e.createVNode(c,{header:l.$t("column.thumbnail"),style:{width:"5rem"}},{body:e.withCtx(g=>[(e.openBlock(),e.createElementBlock("div",{key:g.data.id,"data-tour":"thumbnail"},[s.displaySvg(g.data)?(e.openBlock(),e.createBlock(r,{key:0,class:"shadow-2 cursor-pointer",onClick:X=>s.openPreviewPanel(g.data)},{image:e.withCtx(()=>[e.createElementVNode("img",{src:s.alfrescoFileService().getContentUrl(g.data.id),alt:g.data.name,class:"max-h-3rem max-w-3rem"},null,8,k0)]),_:2},1032,["onClick"])):s.displayThumb(g.data)?(e.openBlock(),e.createBlock(r,{key:1,class:"shadow-2 cursor-pointer",onClick:X=>s.openPreviewPanel(g.data)},{image:e.withCtx(()=>[e.createElementVNode("img",{src:s.alfrescoFileService().getThumbnailUrl(g.data.id),alt:g.data.name,class:"max-h-3rem max-w-3rem",onError:X=>s.onImageLoadFailure(X,g.data)},null,40,C0)]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(m,{class:"icon cursor-pointer",hidden:"","svg-file-name":s.loadIcon(g.data),onClick:X=>s.clickIcon(g.data)},null,8,["svg-file-name","onClick"]),[[y,s.loadIconLabel(g.data)]]),!s.displayThumb(g.data)&&!s.displaySvg(g.data)?e.withDirectives((e.openBlock(),e.createBlock(m,{key:2,class:"icon cursor-pointer","svg-file-name":s.loadIcon(g.data),onClick:X=>s.clickIcon(g.data)},null,8,["svg-file-name","onClick"])),[[y,s.loadIconLabel(g.data)]]):e.createCommentVNode("",!0)]))]),_:1},8,["header"]),s.hasLockedItem||s.hasBrokenInheritance?(e.openBlock(),e.createBlock(c,{key:0,style:{width:"3rem"}},{body:e.withCtx(g=>[g.data.isLocked?(e.openBlock(),e.createElementBlock("div",F0,[e.withDirectives(e.createElementVNode("i",V0,null,512),[[y,s.alfrescoFileService().tooltipLockContent(g.data)]])])):g.data.permissions?.isInheritanceEnabled===!1?(e.openBlock(),e.createElementBlock("div",x0,[e.withDirectives((e.openBlock(),e.createElementBlock("button",{type:"button",class:"p-0 border-none bg-transparent cursor-pointer","aria-label":l.$t("restrictedPermissions"),onClick:e.withModifiers(X=>l.$emit("open-members",g.data),["stop"])},[...t[2]||(t[2]=[e.createElementVNode("i",{class:"ri-shield-user-line text-orange-500","aria-hidden":"true"},null,-1)])],8,S0)),[[y,l.$t("restrictedPermissions")]])])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.visibleColumns,(g,X)=>(e.openBlock(),e.createBlock(c,{key:X,header:g.label,style:e.normalizeStyle(g.key==="name"?"max-width: 40vw; min-width: 12rem;":"")},{body:e.withCtx(M=>[g.action==="navigateTo"?e.withDirectives((e.openBlock(),e.createBlock(h,{key:0,to:s.collaboraService.getRoute(M.data),class:e.normalizeClass([{underline:s.isCurrentNodeDisplayed(M.data),"text-overflow":g.key==="name"},"noColorElement"]),onClick:A=>s.handleNavigateClick(A,M.data)},{default:e.withCtx(()=>[M.data.aspectNames?.includes(g.displayIconForProperty)?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(g.icon),"aria-hidden":"true"},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(s.applyFormat(s.getValue(M.data,g.key),g.format)),1)]),_:2},1032,["to","class","onClick"])),[[y,s.getValue(M.data,g.key),void 0,{bottom:!0}]]):g.hasTooltip?e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass({"cursor-pointer":!!g.action,"text-overflow":g.key==="name"}),onClick:A=>s.applyAction(g.action,M.data)},[e.createTextVNode(e.toDisplayString(s.applyFormat(s.getValue(M.data,g.key),g.format)),1)],10,J0)),[[y,s.getValue(M.data,g.key),void 0,{bottom:!0}]]):(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass({"cursor-pointer":!!g.action,"text-overflow":g.key==="name"}),onClick:A=>s.applyAction(g.action,M.data)},e.toDisplayString(s.applyFormat(s.getValue(M.data,g.key),g.format)),11,U0))]),_:2},1032,["header","style"]))),128)),e.createVNode(c,null,{body:e.withCtx(g=>[e.createElementVNode("div",H0,[g.data.isFile&&!a.isPreviewPanelVisible&&!a.isSmallScreen?e.withDirectives((e.openBlock(),e.createBlock(u,{key:0,"aria-label":l.$t("share.shareLinkSettings"),class:"simple",type:"button",icon:"ri-share-line",rounded:"",text:"",onClick:X=>s.openShareLink(g.data)},null,8,["aria-label","onClick"])),[[y,l.$t("share.shareLinkSettings")]]):e.createCommentVNode("",!0),!a.isPreviewPanelVisible&&!a.isSmallScreen&&!a.isInUserHome?e.withDirectives((e.openBlock(),e.createBlock(u,{key:1,"aria-label":l.$t("add/removeFavorite"),class:"simple",type:"button",icon:g.data.isFavorite?"ri-star-fill":"ri-star-line",rounded:"",text:"",onClick:X=>s.toggleFavorite(g.data)},null,8,["aria-label","icon","onClick"])),[[y,l.$t("add/removeFavorite")]]):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(u,{"aria-label":l.$t("moreActions"),class:"simple",type:"button",icon:"ri-more-2-line",rounded:"",text:"",onClick:X=>s.toggleFileActionMenu(X,g.data)},null,8,["aria-label","onClick"]),[[y,l.$t("moreActions"),void 0,{left:!0}]])])]),_:1})]),_:1},8,["value","state-key","data-key","filters","class"])):e.createCommentVNode("",!0)}const qa=H(L0,[["render",Q0],["__scopeId","data-v-e40e1c10"]]),B0={name:"ContentListView",components:{PristyIcon:xl,PrimeButton:w,PrimeCheckBox:Lt},directives:{tooltip:dt},inject:["collaboraService","isCurrentNodeDisplayed"],props:{slotProps:{type:Object,default:()=>({})},selectedNodes:{type:Array,default:()=>[]},isPreviewPanelVisible:{type:Boolean,default:!1},isSmallScreen:{type:Boolean,default:!1},isInUserHome:{type:Boolean,default:!1}},emits:["update:selectedNodes","click-icon","open-preview-panel","open-sharelink","toggle-favorite","toggle-file-action-menu","open-in-new-tab","node-clicked","open-members"],computed:{selectedNodesCopy:{get(){return this.selectedNodes},set(l){this.$emit("update:selectedNodes",l)}}},methods:{alfrescoFileService(){return Xe},toLocaleDateString(l){return ma.toLocaleDateString(l)},loadIcon(l){return tl.getIcon(l)},loadIconLabel(l){return tl.getIconLabel(l)},clickIcon(l){this.$emit("click-icon",l)},openPreviewPanel(l){this.$emit("open-preview-panel",l)},openShareLink(l){this.$emit("open-sharelink",l)},toggleFavorite(l){this.$emit("toggle-favorite",l)},toggleFileActionMenu(l,t){this.$emit("toggle-file-action-menu",l,t)},openInNewTab(l){this.$emit("open-in-new-tab",l)},nodeClicked(l){this.$emit("node-clicked",l)}}},E0={class:"border-1 border-100 overflow-hidden p-1"},P0={class:"flex align-items-center"},_0={class:"mr-3 pl-2 ml-1","data-tour":"item-checkbox"},K0={key:0},$0={class:"mr-2 ri-lock-line","aria-hidden":"true"},q0={class:"flex overflow-hidden align-items-center w-full"},ed=["onClick"],td={key:0,"data-tour":"thumbnail"},ld=["aria-label","onClick"],ad={key:2,class:"mr-1 ri-folder-2-line","aria-hidden":"true"},od=["aria-label","onClick"],sd=["onClick"],id={key:0,class:"p-text-secondary p-text-sm text-400"},nd={class:"justify-content-evenly w-fit"},cd={key:0,class:"flex w-fit"},rd={key:1,class:"flex w-fit"};function dd(l,t,a,i,o,s){const n=e.resolveComponent("PrimeCheckBox"),c=e.resolveComponent("PristyIcon"),r=e.resolveComponent("router-link"),m=e.resolveComponent("PrimeButton"),h=e.resolveDirective("tooltip");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.slotProps.items,(u,b)=>(e.openBlock(),e.createElementBlock("div",{"data-testid":"content-list-view",key:b,class:"w-full",role:"listitem"},[e.createElementVNode("div",E0,[e.createElementVNode("div",P0,[e.createElementVNode("div",_0,[e.createVNode(n,{id:u.id,modelValue:s.selectedNodesCopy,"onUpdate:modelValue":t[0]||(t[0]=y=>s.selectedNodesCopy=y),class:"align-items-center justify-content-center",name:"option",value:u},null,8,["id","modelValue","value"])]),u.isLocked?(e.openBlock(),e.createElementBlock("div",K0,[e.withDirectives(e.createElementVNode("i",$0,null,512),[[h,s.alfrescoFileService().tooltipLockContent(u)]])])):e.createCommentVNode("",!0),e.createElementVNode("div",q0,[t[3]||(t[3]=e.createElementVNode("div",{class:"w-fit"},null,-1)),e.createElementVNode("div",{class:"flex-grow-1 overflow-hidden white-space-nowrap text-overflow-ellipsis p-text-bold",onClick:y=>s.nodeClicked(u)},[u.isFile?(e.openBlock(),e.createElementBlock("span",td,[e.withDirectives(e.createVNode(c,{class:"small_icon cursor-pointer mr-2","svg-file-name":s.loadIcon(u),onClick:y=>s.clickIcon(u)},null,8,["svg-file-name","onClick"]),[[h,s.loadIconLabel(u)]])])):e.createCommentVNode("",!0),u.isFile&&u.permissions?.isInheritanceEnabled===!1?e.withDirectives((e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"p-0 border-none bg-transparent cursor-pointer","aria-label":l.$t("restrictedPermissions"),onClick:e.withModifiers(y=>l.$emit("open-members",u),["stop"])},[...t[1]||(t[1]=[e.createElementVNode("i",{class:"mr-2 ri-shield-user-line text-orange-500","aria-hidden":"true"},null,-1)])],8,ld)),[[h,l.$t("restrictedPermissions")]]):e.createCommentVNode("",!0),u.isFolder?(e.openBlock(),e.createElementBlock("i",ad)):e.createCommentVNode("",!0),u.isFolder&&u.permissions?.isInheritanceEnabled===!1?e.withDirectives((e.openBlock(),e.createElementBlock("button",{key:3,type:"button",class:"p-0 border-none bg-transparent cursor-pointer","aria-label":l.$t("restrictedPermissions"),onClick:e.withModifiers(y=>l.$emit("open-members",u),["stop"])},[...t[2]||(t[2]=[e.createElementVNode("i",{class:"mr-2 ri-shield-user-line text-orange-500","aria-hidden":"true"},null,-1)])],8,od)),[[h,l.$t("restrictedPermissions")]]):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createBlock(r,{to:s.collaboraService.getRoute(u),class:e.normalizeClass({underline:s.isCurrentNodeDisplayed(u)})},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(u.name),1)]),_:2},1032,["to","class"])),[[h,u.name,void 0,{top:!0}]]),e.createElementVNode("div",{class:"overflow-hidden white-space-nowrap text-overflow-ellipsis",onClick:y=>s.openPreviewPanel(u)},[u.properties&&u.properties["cm:title"]?e.withDirectives((e.openBlock(),e.createElementBlock("span",id,[e.createTextVNode(e.toDisplayString(u.properties["cm:title"]),1)])),[[h,u.properties["cm:title"],void 0,{bottom:!0}]]):e.createCommentVNode("",!0)],8,sd)],8,ed),e.createElementVNode("div",{class:e.normalizeClass(["mx-4",{hidden:a.isPreviewPanelVisible}])},e.toDisplayString(s.toLocaleDateString(u.modifiedAt)),3),e.createElementVNode("div",nd,[a.isPreviewPanelVisible||a.isSmallScreen?(e.openBlock(),e.createElementBlock("div",cd,[e.withDirectives(e.createVNode(m,{"aria-label":l.$t("moreActions"),class:"flex align-items-center justify-content-center",type:"button",size:"small",icon:"ri-more-2-line",severity:"secondary",onClick:y=>s.toggleFileActionMenu(y,u)},null,8,["aria-label","onClick"]),[[h,l.$t("moreActions")]])])):(e.openBlock(),e.createElementBlock("div",rd,[e.withDirectives(e.createVNode(m,{"aria-label":l.$t("open"),icon:"ri-external-link-line",severity:"secondary",class:"mr-1",size:"small",onClick:y=>s.openInNewTab(u)},null,8,["aria-label","onClick"]),[[h,l.$t("open"),void 0,{top:!0}]]),u.isFile?e.withDirectives((e.openBlock(),e.createBlock(m,{key:0,"aria-label":l.$t("publish"),icon:"ri-links-line",severity:"warning",class:"mr-1",size:"small",onClick:y=>s.openShareLink(u)},null,8,["aria-label","onClick"])),[[h,l.$t("publish"),void 0,{top:!0}]]):e.createCommentVNode("",!0),a.isInUserHome?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createBlock(m,{key:1,"aria-label":l.$t("add/removeFavorite"),icon:u.isFavorite?"ri-star-fill":"ri-star-line",class:"mr-1",severity:"primary",size:"small",onClick:y=>s.toggleFavorite(u)},null,8,["aria-label","icon","onClick"])),[[h,l.$t("add/removeFavorite"),void 0,{top:!0}]]),e.withDirectives(e.createVNode(m,{"aria-label":l.$t("moreActions"),icon:"ri-more-2-line",severity:"danger",size:"small",onClick:y=>s.toggleFileActionMenu(y,u)},null,8,["aria-label","onClick"]),[[h,l.$t("moreActions"),void 0,{top:!0}]])]))])])])])]))),128)}const eo=H(B0,[["render",dd],["__scopeId","data-v-7f891bae"]]),bd={name:"ContentGridView",components:{PristyIcon:xl,PrimeButton:w,PrimeCheckBox:Lt,PrimeImage:Ga},directives:{tooltip:dt},inject:["collaboraService","isCurrentNodeDisplayed"],props:{slotProps:{type:Object,default:()=>({})},selectedNodes:{type:Array,default:()=>[]},isPreviewPanelVisible:{type:Boolean,default:!1},isSmallScreen:{type:Boolean,default:!1},isInUserHome:{type:Boolean,default:!1}},emits:["reload","update:selectedNodes","click-icon","open-preview-panel","open-sharelink","toggle-favorite","toggle-file-action-menu","open-in-new-tab","node-clicked","open-members"],computed:{selectedNodesCopy:{get(){return this.selectedNodes},set(l){this.$emit("update:selectedNodes",l)}}},methods:{alfrescoFileService(){return Xe},toLocaleDateString(l){return ma.toLocaleDateString(l)},displaySvg(l){return l.isFile&&l.content.mimeType==="image/svg+xml"},loadIcon(l){return tl.getIcon(l)},loadIconLabel(l){return tl.getIconLabel(l)},onImageLoadFailure(l,t){Xe.onImageLoadFailure(l,t)},displayThumb(l){return Xe.isThumbnailSupported(l)},clickIcon(l){this.$emit("click-icon",l)},openPreviewPanel(l){this.$emit("open-preview-panel",l)},openShareLink(l){this.$emit("open-sharelink",l)},toggleFavorite(l){this.$emit("toggle-favorite",l)},toggleFileActionMenu(l,t){this.$emit("toggle-file-action-menu",l,t)},openInNewTab(l){this.$emit("open-in-new-tab",l)},nodeClicked(l){this.$emit("node-clicked",l)}}},md=["aria-label"],pd={class:"border-1 border-round border-100 w-20rem overflow-hidden"},ud={class:"px-4 surface-100 h-17rem"},Zd={class:"flex justify-content-between flex-wrap align-items-center h-4rem"},hd={"data-tour":"item-checkbox"},yd={key:0},Wd={class:"ri-lock-line","aria-hidden":"true"},gd=["aria-label","onClick"],Yd=["onClick"],Nd=["src","alt"],Xd=["src","alt","onError"],zd={class:"flex justify-content-between"},Ad={class:"p-3"};function Md(l,t,a,i,o,s){const n=e.resolveComponent("PrimeCheckBox"),c=e.resolveComponent("router-link"),r=e.resolveComponent("PrimeButton"),m=e.resolveComponent("PrimeImage"),h=e.resolveComponent("PristyIcon"),u=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock("div",{"data-testid":"content-grid-view",class:"flex flex-wrap gap-1",role:"list","aria-label":l.$t("fileList")},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.slotProps.items,(b,y)=>(e.openBlock(),e.createElementBlock("div",{key:y,class:"p-2",role:"listitem"},[e.createElementVNode("div",pd,[e.createElementVNode("div",ud,[e.createElementVNode("div",Zd,[e.createElementVNode("div",hd,[e.createVNode(n,{id:b.id,modelValue:s.selectedNodesCopy,"onUpdate:modelValue":t[0]||(t[0]=g=>s.selectedNodesCopy=g),class:"flex align-items-center justify-content-center",name:"option",value:b},null,8,["id","modelValue","value"])]),b.isLocked?(e.openBlock(),e.createElementBlock("div",yd,[e.withDirectives(e.createElementVNode("i",Wd,null,512),[[u,s.alfrescoFileService().tooltipLockContent(b)]])])):b.permissions?.isInheritanceEnabled===!1?e.withDirectives((e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"p-0 border-none bg-transparent cursor-pointer","aria-label":l.$t("restrictedPermissions"),onClick:e.withModifiers(g=>l.$emit("open-members",b),["stop"])},[...t[1]||(t[1]=[e.createElementVNode("i",{class:"ri-shield-user-line text-orange-500","aria-hidden":"true"},null,-1)])],8,gd)),[[u,l.$t("restrictedPermissions")]]):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createBlock(c,{to:s.collaboraService.getRoute(b),class:e.normalizeClass(["text-sm font-medium overflow-hidden text-overflow-ellipsis flex align-items-center white-space-nowrap p-2 noColorElement",[s.isCurrentNodeDisplayed(b)?"underline":"",b.isLocked||b.permissions?.isInheritanceEnabled===!1?"w-10rem":"w-12rem"]])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.name),1)]),_:2},1032,["to","class"])),[[u,b.name,void 0,{top:!0}]]),e.withDirectives(e.createVNode(r,{"aria-label":l.$t("moreActions"),class:"flex align-items-center justify-content-center noColorElement",type:"button",icon:"ri-more-2-line",rounded:"",text:"",onClick:g=>s.toggleFileActionMenu(g,b)},null,8,["aria-label","onClick"]),[[u,l.$t("moreActions"),void 0,{top:!0}]])]),(e.openBlock(),e.createElementBlock("div",{key:b.id,class:"flex justify-content-center cursor-pointer","data-tour":"thumbnail",onClick:g=>s.nodeClicked(b)},[e.createElementVNode("div",null,[s.displaySvg(b)?(e.openBlock(),e.createBlock(m,{key:0,onClick:g=>s.openPreviewPanel(b)},{image:e.withCtx(()=>[e.createElementVNode("img",{src:s.alfrescoFileService().getContentUrl(b.id),alt:b.name,class:"max-h-12rem max-w-12rem"},null,8,Nd)]),_:2},1032,["onClick"])):s.displayThumb(b)?(e.openBlock(),e.createBlock(m,{key:1,onClick:g=>s.openPreviewPanel(b)},{image:e.withCtx(()=>[e.createElementVNode("img",{src:s.alfrescoFileService().getPreviewUrl(b.id),alt:b.name,class:"max-h-12rem max-w-12rem",onError:g=>s.onImageLoadFailure(g,b)},null,40,Xd)]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(h,{class:"h-13rem w-13rem m-auto cursor-pointer",hidden:"","svg-file-name":s.loadIcon(b),onClick:g=>s.clickIcon(b)},null,8,["svg-file-name","onClick"]),[[u,s.loadIconLabel(b)]]),!s.displayThumb(b)&&!s.displaySvg(b)?e.withDirectives((e.openBlock(),e.createBlock(h,{key:2,class:"h-13rem w-13rem m-auto cursor-pointer","svg-file-name":s.loadIcon(b),onClick:g=>s.clickIcon(b)},null,8,["svg-file-name","onClick"])),[[u,s.loadIconLabel(b)]]):e.createCommentVNode("",!0)])],8,Yd))]),e.createElementVNode("div",zd,[e.createElementVNode("div",Ad,e.toDisplayString(l.$t("column.modifiedAt"))+" "+e.toDisplayString(s.toLocaleDateString(b.modifiedAt)),1),e.createVNode(c,{to:s.collaboraService.getRoute(b)},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(r,{"aria-label":l.$t("open"),icon:"ri-external-link-line",severity:"secondary",size:"large",class:"h-full w-4rem"},null,8,["aria-label"]),[[u,l.$t("open"),void 0,{top:!0}]])]),_:1},8,["to"])])])]))),128))],8,md)}const to=H(bd,[["render",Md]]);class Od{constructor(){this.lruGroupMemberships=new qe({maxSize:20,maxAge:3e4}),this.lruPeople=new qe({maxSize:50,maxAge:300*1e3})}getUser(t){const a=`user_${t}`;if(this.lruPeople.has(a))return Promise.resolve(this.lruPeople.get(a));const i={include:["properties","aspectNames","capabilities"]};return Dt.getPerson(t,i).then(o=>(this.lruPeople.set(a,o.entry),o.entry)).catch(o=>{throw P("getUser",o)})}getUserWithOpts(t,a){const i=`user_with_opts_${t}_${JSON.stringify(a)}`;return this.lruPeople.has(i)?Promise.resolve(this.lruPeople.get(i)):Dt.getPerson(t,a).then(o=>(this.lruPeople.set(i,o),o)).catch(o=>{throw P("getUser",o)})}updateUser(t,a){return Dt.updatePerson(t,a).then(i=>{const o=`user_${t}`;this.lruPeople.delete(o);for(const s of this.lruPeople.keys())s.startsWith(`user_with_opts_${t}_`)&&this.lruPeople.delete(s);return i.entry}).catch(i=>{throw P("updateUser",i)})}listGroups(t,a=!1){const i=`groups_${t}`;if(!a&&this.lruGroupMemberships.has(i))return Promise.resolve(this.lruGroupMemberships.get(i));const o={};return hl.listGroupMembershipsForPerson(t,o).then(s=>(this.lruGroupMemberships.set(i,s.list.entries),s.list.entries)).catch(s=>{throw P("listGroups",s)})}listUsers(t=!1){const a="users";if(!t&&this.lruPeople.has(a))return Promise.resolve(this.lruPeople.get(a));const i={include:["properties","aspectNames","capabilities"]};return Dt.listPeople(i).then(o=>{const s=o.list.entries.map(n=>n.entry);return this.lruPeople.set(a,s),s}).catch(o=>{throw P("getAllUsers",o)})}listUsersWithOpts(t,a=!1){const i=`users_with_opts_${JSON.stringify(t)}`;return!a&&this.lruPeople.has(i)?Promise.resolve(this.lruPeople.get(i)):Dt.listPeople(t).then(o=>(this.lruPeople.set(i,o),o)).catch(o=>{throw P("getAllUsers",o)})}capitalizeFirstLetter(t){return t.charAt(0).toUpperCase()+t.slice(1)}searchUser(t,a,i={}){const o=t.toUpperCase(),s=t.toLowerCase(),n=this.capitalizeFirstLetter(t),c=(y,g,X="suffix")=>g.map(M=>{const A=X==="surround"?`*${M}*`:`${M}*`;return`${y}:"${A}"`}).join(" OR "),r=[o,s,n],b={query:{language:"afts",query:`${`(TYPE:"cm:person" AND (${["cm:userName","cm:firstName","cm:lastName","cm:email"].map(y=>c(y,r,"suffix")).join(" OR ")}))`}`},include:["aspectNames","properties"],paging:{maxItems:i.maxItems||1e3,skipCount:i.skipCount||0},sort:a};return mt.search(b)}getUserGroups(t,a=!1){const i={fields:["id"]};return!a&&!this.lruGroupMemberships.has(t)?hl.listGroupMembershipsForPerson(t,i).then(o=>{const s=Object.values(o.list.entries).map(n=>n.entry.id);return this.lruGroupMemberships.set(t,s),s}):Promise.resolve(this.lruGroupMemberships.get(t))}}const lo=new Od,jd={name:"CreateWorkflowPopup",components:{PrimeDialog:ke,PrimeButton:w,PrimeDataTable:Dl,PrimeColumn:Rl,PrimeDropdown:gt,PrimeSteps:fc,PrimeAvatar:Ta,PrimeInputText:Me,PrimeIconField:vc,PrimeCalendar:wa,PrimeTextArea:ul,PrimeInputIcon:Lc,PrimeCheckbox:Lt,PrimeMessage:Wt},emits:["close","message"],data(){return{activeStep:0,startWorkflowError:!1,failStartWorkflowErrorMessage:null,workflowOptions:[{label:this.$t("workflow.adhocType"),description:this.$t("workflow.adhocDescription"),value:"activitiAdhoc"},{label:this.$t("workflow.reviewType"),description:this.$t("workflow.reviewDescription"),value:"activitiReview"}],priorityOptions:[{label:this.$t("workflow.priority.low"),value:3},{label:this.$t("workflow.priority.medium"),value:2},{label:this.$t("workflow.priority.high"),value:1}],selectedWorkflowType:null,message:null,assignee:null,dueDate:null,selectedPriority:{label:this.$t("workflow.priority.medium"),value:2},workspaceMembersOnly:!0,searchInput:null,isSearching:!1,searchTimeout:null,usersList:[],minDate:new Date(new Date().setHours(24,0,0,0))}},computed:{workspaceId(){return xe().workspace?.id||null},stepItems(){return[{label:this.$t("workflow.workflowType")},{label:this.$t("workflow.assigneeSelection")},{label:this.$t("workflow.dueDateAndPrioritySelection")},{label:this.$t("workflow.taskNameInput")}]},selectedFiles(){return Oe().files},isStartWorkflowButtonDisable(){return this.selectedWorkflowType===null||this.assignee===null||this.selectedPriority===null||this.message===null}},mounted(){this.workspaceId&&this.loadWorkspaceMembers()},beforeUnmount(){this.searchTimeout&&clearTimeout(this.searchTimeout)},methods:{nextStep(){this.activeStep<3&&this.activeStep++},prevStep(){this.activeStep>0&&this.activeStep--},onSearchInput(){this.searchTimeout&&clearTimeout(this.searchTimeout);const l=(this.searchInput||"").trim();if(l.length<2){this.workspaceMembersOnly&&this.workspaceId?this.loadWorkspaceMembers():this.usersList=[];return}this.searchTimeout=setTimeout(()=>{this.searchUsers(l)},300)},loadWorkspaceMembers(){this.isSearching=!0,je.getWorkspaceMemberships(this.workspaceId).then(l=>{this.usersList=l.map(t=>({id:t.id,displayName:`${t.person.firstName||""} ${t.person.lastName||""}`.trim(),email:t.person.email||""})).filter(t=>!["publication","pastell"].some(a=>t.id.includes(a)))}).catch(l=>{this.$toast.add({severity:"error",summary:this.$t("error"),detail:l.message,life:3e3})}).finally(()=>{this.isSearching=!1})},searchUsers(l){this.isSearching=!0,lo.searchUser(l).then(t=>{let i=(t.list.entries||[]).map(o=>{const s=o.entry.properties;return{id:s["cm:userName"],displayName:`${s["cm:firstName"]||""} ${s["cm:lastName"]||""}`.trim(),email:s["cm:email"]||""}}).filter(o=>!["publication","pastell"].some(s=>o.id.includes(s)));if(this.workspaceMembersOnly&&this.workspaceId)return je.getWorkspaceMemberships(this.workspaceId).then(o=>{const s=new Set(o.map(n=>n.id));this.usersList=i.filter(n=>s.has(n.id))});this.usersList=i}).catch(t=>{this.$toast.add({severity:"error",summary:this.$t("error"),detail:t.message,life:3e3})}).finally(()=>{this.isSearching=!1})},closePopup(l){this.$emit("close",l)},startWorkflow(){this.message.length>=4e3&&(this.startWorkflowError=!0,this.failStartWorkflowErrorMessage=this.$t("workflow.tooLongTaskNameError"));const l={processDefinitionKey:this.selectedWorkflowType.value,variables:{bpm_assignee:this.assignee.id,bpm_workflowDescription:this.message,bpm_description:this.message,bpm_priority:this.selectedPriority.value,bpm_workflowPriority:this.selectedPriority.value,...this.dueDate&&{bpm_workflowDueDate:this.dueDate.toISOString().replace("Z","+0000")}}};ra.createProcess(l).then(t=>{let a=t.data.entry.id;const i=Oe().files.map(o=>({id:o.id}));ra.addProcessItems(a,i).then(()=>{this.$toast.add({severity:"success",summary:this.$t("success"),detail:this.$t("workflow.successCreate"),life:3e3}),this.$emit("close")}).catch(o=>{this.$toast.add({severity:"error",summary:this.$t("error"),detail:o.message,life:3e3})})}).catch(t=>{this.$toast.add({severity:"error",summary:this.$t("error"),detail:t.message,life:3e3})})}}},Gd={key:0,class:"mb-3"},Td={class:"font-bold"},wd={class:"mt-2 pl-4"},Id={class:"flex flex-column h-12rem"},fd={class:"flex flex-column gap-3"},vd={class:"field flex flex-column gap-2"},Ld={for:"dueDate",class:"font-bold"},Dd={class:"flex pt-4 justify-content-end"},Rd={"data-testid":"create-workflow-popup-step2"},kd={class:"flex flex-column"},Cd={class:"flex flex-column gap-3"},Fd={class:"field flex flex-column gap-2"},Vd={for:"dueDate",class:"font-bold"},xd={key:0,class:"card selection-card"},Sd={class:"flex flex-column"},Jd={class:"flex flex-column gap-3"},Ud={class:"flex justify-content-between align-items-center"},Hd={key:0,class:"flex align-items-center"},Qd={for:"workspace-members-only",class:"ml-2"},Bd={class:"flex pt-4 justify-content-between"},Ed={"data-testid":"create-workflow-popup-step3"},Pd={class:"flex flex-column h-12rem"},_d={class:"flex flex-column gap-3"},Kd={class:"field flex flex-column gap-2"},$d={for:"dueDate",class:"font-bold"},qd={class:"flex flex-column gap-2"},eb={for:"priority",class:"font-bold"},tb={class:"flex pt-4 justify-content-between"},lb={"data-testid":"create-workflow-popup-step4"},ab={class:"flex flex-column h-12rem"},ob={for:"priority",class:"font-bold"},sb={class:"flex pt-4 justify-content-between"};function ib(l,t,a,i,o,s){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeSteps"),r=e.resolveComponent("PrimeDropdown"),m=e.resolveComponent("PrimeCheckbox"),h=e.resolveComponent("PrimeInputIcon"),u=e.resolveComponent("PrimeInputText"),b=e.resolveComponent("PrimeIconField"),y=e.resolveComponent("PrimeAvatar"),g=e.resolveComponent("PrimeColumn"),X=e.resolveComponent("PrimeDataTable"),M=e.resolveComponent("PrimeCalendar"),A=e.resolveComponent("PrimeTextArea"),F=e.resolveComponent("PrimeMessage"),U=e.resolveComponent("PrimeDialog");return e.openBlock(),e.createBlock(U,{"data-testid":"create-workflow-popup",header:l.$t("workflow.startWorkflow"),visible:"",modal:"",maximizable:"",class:"popup",style:{width:"70rem"},onKeyup:t[9]||(t[9]=e.withKeys(j=>s.closePopup(!1),["esc"]))},{closeicon:e.withCtx(()=>[e.createVNode(n,{"data-testid":"create-workflow-popup-close-button",icon:"ri-close-line","aria-label":l.$t("close"),outlined:"",text:"",severity:"secondary",autofocus:"false",onClick:t[0]||(t[0]=j=>s.closePopup(!1))},null,8,["aria-label"])]),default:e.withCtx(()=>[e.createVNode(c,{"data-testid":"create-workflow-popup-stepper",model:s.stepItems,"active-step":o.activeStep,class:"mb-4"},null,8,["model","active-step"]),s.selectedFiles.length>1?(e.openBlock(),e.createElementBlock("div",Gd,[e.createElementVNode("label",Td,e.toDisplayString(l.$t("workflow.selectedDocuments")),1),e.createElementVNode("ul",wd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.selectedFiles,j=>(e.openBlock(),e.createElementBlock("li",{key:j.id},e.toDisplayString(j.name),1))),128))])])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",null,[e.createElementVNode("div",Id,[e.createElementVNode("div",fd,[e.createElementVNode("div",vd,[e.createElementVNode("label",Ld,[e.createTextVNode(e.toDisplayString(l.$t("workflow.chooseWorkflow")),1),t[10]||(t[10]=e.createElementVNode("span",{class:"required"},"*",-1))]),e.createVNode(r,{"data-testid":"create-workflow-popup-type-dropdown",modelValue:o.selectedWorkflowType,"onUpdate:modelValue":t[1]||(t[1]=j=>o.selectedWorkflowType=j),options:o.workflowOptions,"option-label":"label",placeholder:l.$t("workflow.workflowType")},null,8,["modelValue","options","placeholder"])])])]),e.createElementVNode("div",Dd,[e.createVNode(n,{"data-testid":"create-workflow-popup-step1-next-button",label:l.$t("workflow.next"),icon:"pi pi-arrow-right","icon-pos":"right",onClick:s.nextStep},null,8,["label","onClick"])])],512),[[e.vShow,o.activeStep===0]]),e.withDirectives(e.createElementVNode("div",Rd,[e.createElementVNode("div",kd,[e.createElementVNode("div",Cd,[e.createElementVNode("div",Fd,[e.createElementVNode("label",Vd,[e.createTextVNode(e.toDisplayString(l.$t("workflow.assigneeSelection")),1),t[11]||(t[11]=e.createElementVNode("span",{class:"required"},"*",-1))]),o.assignee?(e.openBlock(),e.createElementBlock("div",xd," Sélection de l'utilisateur "+e.toDisplayString(o.assignee.displayName||o.assignee.id),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Sd,[e.createElementVNode("div",Jd,[e.createVNode(X,{"data-testid":"create-workflow-popup-users-table",id:"users",selection:o.assignee,"onUpdate:selection":t[4]||(t[4]=j=>o.assignee=j),value:o.usersList,"selection-mode":"single","row-hover":"","data-key":"id","removable-sort":"",paginator:"","paginator-template":"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink CurrentPageReport RowsPerPageDropdown",rows:5,loading:o.isSearching},{empty:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.searchInput&&o.searchInput.length>=2?l.$t("usersEmpty"):l.$t("workflow.typeToSearch")),1)]),header:e.withCtx(()=>[e.createElementVNode("div",Ud,[s.workspaceId?(e.openBlock(),e.createElementBlock("div",Hd,[e.createVNode(m,{modelValue:o.workspaceMembersOnly,"onUpdate:modelValue":t[2]||(t[2]=j=>o.workspaceMembersOnly=j),"input-id":"workspace-members-only","data-testid":"create-workflow-popup-workspace-members-only",binary:"",onChange:s.onSearchInput},null,8,["modelValue","onChange"]),e.createElementVNode("label",Qd,e.toDisplayString(l.$t("workflow.workspaceMembersOnly")),1)])):e.createCommentVNode("",!0),e.createVNode(b,{"icon-position":"left"},{default:e.withCtx(()=>[e.createVNode(h,{class:"ri-search-line"}),e.createVNode(u,{"data-testid":"create-workflow-popup-users-search-input",modelValue:o.searchInput,"onUpdate:modelValue":t[3]||(t[3]=j=>o.searchInput=j),placeholder:l.$t("search"),onInput:s.onSearchInput},null,8,["modelValue","placeholder","onInput"])]),_:1})])]),default:e.withCtx(()=>[e.createVNode(g,{field:"avatar"},{body:e.withCtx(j=>[e.createVNode(y,{label:j.data.displayName.charAt(0),size:"large",class:"avatar-blue",shape:"circle"},null,8,["label"])]),_:1}),e.createVNode(g,{field:"name",header:l.$t("column.name"),sortable:""},{body:e.withCtx(j=>[e.createElementVNode("span",null,e.toDisplayString(j.data.displayName),1)]),_:1},8,["header"]),e.createVNode(g,{field:"id",header:l.$t("column.id"),sortable:""},{body:e.withCtx(j=>[e.createElementVNode("span",null,e.toDisplayString(j.data.id),1)]),_:1},8,["header"]),e.createVNode(g,{field:"email",header:l.$t("column.email"),sortable:""},{body:e.withCtx(j=>[e.createElementVNode("span",null,e.toDisplayString(j.data.email),1)]),_:1},8,["header"])]),_:1},8,["selection","value","loading"])])])]),e.createElementVNode("div",Bd,[e.createVNode(n,{"data-testid":"create-workflow-popup-step2-back-button",label:l.$t("workflow.back"),severity:"secondary",icon:"pi pi-arrow-left",onClick:s.prevStep},null,8,["label","onClick"]),e.createVNode(n,{"data-testid":"create-workflow-popup-step2-next-button",label:l.$t("workflow.next"),icon:"pi pi-arrow-right","icon-pos":"right",onClick:s.nextStep},null,8,["label","onClick"])])],512),[[e.vShow,o.activeStep===1]]),e.withDirectives(e.createElementVNode("div",Ed,[e.createElementVNode("div",Pd,[e.createElementVNode("div",_d,[e.createElementVNode("div",Kd,[e.createElementVNode("label",$d,e.toDisplayString(l.$t("workflow.dueDate")),1),e.createVNode(M,{"data-testid":"create-workflow-popup-duedate-calendar",id:"dueDate",modelValue:o.dueDate,"onUpdate:modelValue":t[5]||(t[5]=j=>o.dueDate=j),"date-format":"dd/mm/yy",class:"w-full",placeholder:l.$t("workflow.chooseDueDate"),"min-date":o.minDate,"manual-input":!1},null,8,["modelValue","placeholder","min-date"])]),e.createElementVNode("div",qd,[e.createElementVNode("label",eb,[e.createTextVNode(e.toDisplayString(l.$t("workflow.priority.priority")),1),t[12]||(t[12]=e.createElementVNode("span",{class:"required"},"*",-1))]),e.createVNode(r,{"data-testid":"create-workflow-popup-priority-dropdown",id:"priority",modelValue:o.selectedPriority,"onUpdate:modelValue":t[6]||(t[6]=j=>o.selectedPriority=j),options:o.priorityOptions,"option-label":"label",placeholder:l.$t("workflow.choosePriority"),class:"w-full"},null,8,["modelValue","options","placeholder"])])])]),e.createElementVNode("div",tb,[e.createVNode(n,{"data-testid":"create-workflow-popup-step3-back-button",label:l.$t("workflow.back"),severity:"secondary",icon:"pi pi-arrow-left",onClick:s.prevStep},null,8,["label","onClick"]),e.createVNode(n,{"data-testid":"create-workflow-popup-step3-next-button",label:l.$t("workflow.next"),icon:"pi pi-arrow-right","icon-pos":"right",onClick:s.nextStep},null,8,["label","onClick"])])],512),[[e.vShow,o.activeStep===2]]),e.withDirectives(e.createElementVNode("div",lb,[e.createElementVNode("div",ab,[e.createElementVNode("label",ob,[e.createTextVNode(e.toDisplayString(l.$t("workflow.taskName"))+" ",1),t[13]||(t[13]=e.createElementVNode("span",{class:"required"},"*",-1))]),e.createVNode(A,{"data-testid":"create-workflow-popup-message-textarea",modelValue:o.message,"onUpdate:modelValue":t[7]||(t[7]=j=>o.message=j)},null,8,["modelValue"])]),e.createElementVNode("div",null,[o.startWorkflowError?(e.openBlock(),e.createBlock(F,{key:0,"data-testid":"create-workflow-popup-error-message",severity:"error",closable:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.failStartWorkflowErrorMessage),1)]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",sb,[e.createVNode(n,{"data-testid":"create-workflow-popup-step4-back-button",label:l.$t("workflow.back"),severity:"secondary",icon:"pi pi-arrow-left",onClick:s.prevStep},null,8,["label","onClick"]),e.createVNode(n,{"data-testid":"create-workflow-popup-submit-button",disabled:s.isStartWorkflowButtonDisable,label:l.$t("workflow.startTheWorkflow"),severity:"primary",onClick:t[8]||(t[8]=j=>s.startWorkflow())},null,8,["disabled","label"])])],512),[[e.vShow,o.activeStep===3]])]),_:1},8,["header"])}const ao=H(jd,[["render",ib],["__scopeId","data-v-b2be9982"]]),nb={name:"ImportNewVersionPopup",components:{PrimeButton:w,PrimeTextarea:ul,PrimeDialog:ke,PrimeFileUpload:aa,PrimeRadioButton:Dc},directives:{tooltip:dt},emits:["close","message"],data(){return{canUpload:!0,version:null,comment:null}},mounted(){this.node=Oe().files[0],this.version="MAJEURE",this.comment=""},methods:{closePopup(l){this.$emit("close",l)},alfuploader(l){this.$emit("message",{severity:"info",content:this.$t("uploadLoading")});let t=[];l.files.forEach(a=>{t.push(V.updateContentNode(this.node.id,a,this.version==="MAJEURE",this.comment))}),Promise.allSettled(t).then(a=>{const i=[],o=[],s=[];a.forEach(n=>{n.status==="fulfilled"?(i.push(n.value),o.push(n.value.entry?.name)):s.push(n.reason)}),o.length>0&&this.$emit("message",{severity:"success",content:this.$t("uploadFinish")}),s.length>0&&this.$emit("message",kt.getUploadErrors(s)),this.closePopup(i.length>0)}).catch(a=>{this.$toast.add({severity:"error",summary:this.$t("uploadUnknownError"),detail:a,life:5e3})})}}},cb={for:"name",class:"col-12"},rb={class:"field mt-3"},db={class:"field grid"},bb={for:"name",class:"col-12 mb-2"},mb={class:"col-12 md:col-10 w-full"},pb={class:"field grid"},ub={class:"grid radio-display"},Zb={class:"col-12 md:col-6"},hb={class:"field-radiobutton mb-0"},yb={for:"majeure"},Wb={class:"col-12 md:col-6"},gb={class:"field-radiobutton mb-0"},Yb={for:"mineure"};function Nb(l,t,a,i,o,s){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeFileUpload"),r=e.resolveComponent("PrimeTextarea"),m=e.resolveComponent("PrimeRadioButton"),h=e.resolveComponent("PrimeDialog"),u=e.resolveDirective("tooltip");return e.openBlock(),e.createBlock(h,{"data-testid":"import-new-version-popup",header:l.$t("importNewVersion"),visible:"",modal:"",maximizable:"",class:"popup",onKeyup:t[4]||(t[4]=e.withKeys(b=>s.closePopup(!1),["esc"]))},{closeicon:e.withCtx(()=>[e.createVNode(n,{"data-testid":"import-new-version-popup-close-button",icon:"ri-close-line","aria-label":l.$t("close"),outlined:"",text:"",severity:"secondary",autofocus:"false",onClick:t[0]||(t[0]=b=>s.closePopup(!1))},null,8,["aria-label"])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("label",cb,e.toDisplayString(l.$t("uploadFile",{file:l.node.name})),1),e.createElementVNode("div",rb,[o.canUpload?(e.openBlock(),e.createBlock(c,{key:0,"data-testid":"import-new-version-popup-file-upload",name:"upload_files","choose-label":l.$t("imports.selectFiles"),"upload-label":l.$t("send"),"cancel-label":l.$t("cancel"),"invalid-file-size-message":`${l.$t("imports.invalidFileSize",{name:"{0}",size:"{1}"})}`,"invalid-file-type-message":`${l.$t("imports.invalidFileType",{name:"{0}",type:"{1}"})}`,"invalid-file-limit-message":l.$t("imports.invalidFileLimit",{size:"{0}"}),"custom-upload":"",multiple:!1,"max-file-size":5e8,"file-limit":1,onUploader:s.alfuploader},{empty:e.withCtx(()=>[e.createElementVNode("p",null,e.toDisplayString(l.$t("dragAndDrop")),1)]),_:1},8,["choose-label","upload-label","cancel-label","invalid-file-size-message","invalid-file-type-message","invalid-file-limit-message","onUploader"])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",db,[e.createElementVNode("label",bb,e.toDisplayString(l.$t("addComment")),1),e.createElementVNode("div",mb,[e.createVNode(r,{"data-testid":"import-new-version-popup-comment-textarea",id:"comment",modelValue:o.comment,"onUpdate:modelValue":t[1]||(t[1]=b=>o.comment=b),"auto-resize":"",rows:5},null,8,["modelValue"])])]),e.createElementVNode("div",pb,[e.createElementVNode("div",ub,[e.createElementVNode("div",Zb,[e.createElementVNode("div",hb,[e.createVNode(m,{"data-testid":"import-new-version-popup-major-radio",id:"majeure",modelValue:o.version,"onUpdate:modelValue":t[2]||(t[2]=b=>o.version=b),name:"majeure",value:"MAJEURE"},null,8,["modelValue"]),e.withDirectives((e.openBlock(),e.createElementBlock("label",yb,[e.createTextVNode(e.toDisplayString(l.$t("major")),1)])),[[u,""]])])]),e.createElementVNode("div",Wb,[e.createElementVNode("div",gb,[e.createVNode(m,{"data-testid":"import-new-version-popup-minor-radio",id:"mineure",modelValue:o.version,"onUpdate:modelValue":t[3]||(t[3]=b=>o.version=b),name:"mineure",value:"MINEURE"},null,8,["modelValue"]),e.withDirectives((e.openBlock(),e.createElementBlock("label",Yb,[e.createTextVNode(e.toDisplayString(l.$t("minor")),1)])),[[u,""]])])])])])]),_:1},8,["header"])}const oo=H(nb,[["render",Nb]]),Xb={name:"MemberList",components:{PrimeButton:w,PrimeDataTable:Dl,PrimeColumn:Rl,PrimeAvatar:Ta,PrimeDropdown:gt,PrimeAutoComplete:Qo},props:{members:{type:Array,default:()=>[]},workspace:{type:Object,default:()=>({})},permissions:{type:Boolean,default:!1},role:{type:String,default:""},isSite:{type:Boolean,default:!0},isHerited:{type:Boolean,default:!0},nbMembers:{type:Number,default:0},membersWithoutGroups:{type:Array,default:()=>[]},membersLocallySet:{type:Object,default:()=>({})},folderNode:{type:Object,default:()=>({})}},emits:["reload","update-permission"],computed:{...$.mapState(de,["PORTAIL_HOST"]),sortableMembers(){return this.members?this.members.map(l=>({...l,displayName:l.person?l.person.displayName:l.group?.displayName||""})):[]}},data(){return{selectedRole:[],rolesValues:[{name:this.$t("role.SiteManager")},{name:this.$t("role.SiteCollaborator")},{name:this.$t("role.SiteConsumer")}],defaultDropDownValue:{name:this.$t("role.SiteConsumer")},selectedMemberToAdd:null,filteredMembers:[],addSelectedRole:null,heredityValue:null}},mounted(){this.addSelectedRole=this.defaultDropDownValue,this.heredityValue=this.isHerited},methods:{openUserProfile(l){const t=this.PORTAIL_HOST||"";window.open(`${t}/portail/user/${l}`,"_blank")},toggleAddMember(){if(this.selectedMemberToAdd==null)this.$toast.add({severity:"error",summary:this.$t("error"),detail:this.$t("members.errorAdd"),life:3e3});else{let l=this.getAlfrescoRole(this.addSelectedRole.name);(this.selectedMemberToAdd.group?je.addWorkspaceGroup(this.workspace.id,this.selectedMemberToAdd.id,l):je.addWorkspaceUser(this.workspace.id,this.selectedMemberToAdd.id,l)).then(()=>{this.$toast.add({severity:"success",summary:this.$t("success"),detail:this.$t("members.successAdd"),life:3e3}),this.selectedMemberToAdd=null,this.addSelectedRole=this.defaultDropDownValue,this.$emit("reload")}).catch(i=>{this.$toast.add({severity:"error",summary:this.$t("error"),detail:i.message,life:3e3})})}},toggleChangeMemberRole(l){let t=this.workspace.id,a=this.getAlfrescoRole(this.selectedRole[l.id].name);(l.group?je.updateWorkspaceGroupRole(t,l.id,a):je.updateWorkspaceUserRole(t,l.id,a)).then(()=>{this.$toast.add({severity:"success",summary:this.$t("success"),detail:this.$t("members.successChangeRole"),life:3e3})}).catch(o=>{this.$toast.add({severity:"error",summary:this.$t("error"),detail:o.message,life:3e3})})},toggleDeleteMember(l){let t=this.workspace.id;(l.group?je.deleteWorkspaceGroup(t,l.id):je.deleteWorkspaceUser(t,l.id)).then(()=>{this.$toast.add({severity:"success",summary:this.$t("success"),detail:this.$t("members.successDelete",{id:l.id}),life:3e3})}).then(()=>{this.$emit("reload")}).catch(i=>{this.$toast.add({severity:"error",summary:this.$t("error"),detail:i.message,life:3e3})})},getAlfrescoRole(l){return Object.keys(this.$tm("role")).find(t=>this.$tm("role")[t]===l)},searchUser(l){const t=l.query.trim();if(t.length<2){this.filteredMembers=[];return}Promise.all([je.searchUsers(t),je.searchGroups(t)]).then(([a,i])=>{this.filteredMembers=[...a,...i]})},restrictPermissions(){this.heredityValue=!1,this.changeHeredity()},restorePermissions(){this.heredityValue=!0,this.changeHeredity()},changeHeredity(){const l={permissions:{locallySet:[],isInheritanceEnabled:this.heredityValue}};V.updateNode(this.folderNode.id,l).then(()=>{const t=this.heredityValue?this.$t("members.successRestorePermissions"):this.$t("members.successRestrictPermissions");this.$toast.add({severity:"success",summary:this.$t("success"),detail:t,life:3e3}),this.$emit("update-permission")}).catch(t=>{this.$toast.add({severity:"error",summary:this.$t("error"),detail:t.message,life:3e3})})},addPermissions(){if(this.selectedMemberToAdd==null)this.$toast.add({severity:"error",summary:this.$t("error"),detail:this.$t("members.errorAdd"),life:3e3});else{const l=this.getAlfrescoRole(this.addSelectedRole.name),t=Object.keys(this.membersWithoutGroups).length+1,a={locallySet:{...this.membersWithoutGroups,[t]:{accessStatus:"ALLOWED",authorityId:this.selectedMemberToAdd.id,name:l}}};let i={permissions:{locallySet:Object.values(a.locallySet).map(o=>({authorityId:o.authorityId,name:o.name,accessStatus:o.accessStatus}))}};V.updateNode(this.folderNode.id,i).then(()=>{this.$toast.add({severity:"success",summary:this.$t("success"),detail:this.$t("members.successAdd"),life:3e3}),this.$emit("update-permission")}).catch(o=>{this.$toast.add({severity:"error",summary:this.$t("error"),detail:o.message,life:3e3})})}},deletePermission(l){let t=[...this.membersLocallySet];const a=t.findIndex(o=>o.authorityId===l.authorityId);a!==-1&&t.splice(a,1);let i={permissions:{locallySet:t}};V.updateNode(this.folderNode.id,i).then(()=>{this.$toast.add({severity:"success",summary:this.$t("success"),detail:this.$t("members.successDelete",{id:l.authorityId}),life:3e3}),this.$emit("update-permission")}).catch(o=>{this.$toast.add({severity:"error",summary:this.$t("error"),detail:o.message,life:3e3})})},changePermission(l){let t=[...this.membersLocallySet];for(let i=0;i<t.length;i++){const o=t[i];if(o.authorityId===l.authorityId){o.name=this.getAlfrescoRole(this.selectedRole[l.name].name);break}}let a={permissions:{locallySet:t}};V.updateNode(this.folderNode.id,a).then(()=>{this.$toast.add({severity:"success",summary:this.$t("success"),detail:this.$t("members.successChangeRole"),life:3e3}),this.$emit("update-permission")}).catch(i=>{this.$toast.add({severity:"error",summary:this.$t("error"),detail:i.message,life:3e3})})}}},zb={class:"card"},Ab={class:"grid"},Mb={key:0,class:"col-12 workspace-members-head p-3 justify-content-between lg:justify-content-center align-items-center"},Ob={class:""},jb={class:"line-height-3"},Gb={class:"text-role font-medium"},Tb={key:1,class:"col-12 p-3 justify-content-between align-items-center flex"},wb={class:"ml-4 align-items-start"},Ib={class:"align-content-center"},fb={class:"col-12"},vb={key:0,class:"ri-group-line members"},Lb=["aria-label","title","onClick"],Db={class:"member-details mt-1"},Rb={key:1},kb={key:1,class:"ri-group-line members"},Cb={key:0,class:"description"},Fb={key:1},Vb={class:"grid my-2"},xb={class:"col-fixed mr-2 mb-2"},Sb={class:"p-input-icon-left p-input-icon-right"},Jb={class:"member-item"},Ub={key:0,class:"ri-group-line"},Hb={key:1,class:"ri-user-line"},Qb={class:"ml-2"},Bb={class:"col-fixed mr-2 mb-2"},Eb={class:"col mr-2 mb-2"};function Pb(l,t,a,i,o,s){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeAvatar"),r=e.resolveComponent("PrimeColumn"),m=e.resolveComponent("PrimeDropdown"),h=e.resolveComponent("PrimeDataTable"),u=e.resolveComponent("PrimeAutoComplete");return e.openBlock(),e.createElementBlock("div",zb,[e.createElementVNode("div",Ab,[a.isSite?(e.openBlock(),e.createElementBlock("div",Mb,[e.createElementVNode("div",Ob,[e.createElementVNode("h3",null,[e.createElementVNode("span",jb,[e.createTextVNode(e.toDisplayString(l.$t("members.youAre"))+" ",1),e.createElementVNode("span",Gb,e.toDisplayString(a.role),1),e.createTextVNode(" "+e.toDisplayString(l.$t("members.ofThisWorkspace"))+".",1)])])])])):(e.openBlock(),e.createElementBlock("div",Tb,[e.createElementVNode("div",wb,e.toDisplayString(l.$t("members.nbAccess",{nbAccess:a.nbMembers})),1),e.createElementVNode("div",Ib,[a.isHerited?(e.openBlock(),e.createBlock(n,{key:0,label:l.$t("members.restrictPermissions"),rounded:"",disabled:!a.permissions,severity:"warning",size:"large",icon:"ri-prohibited-line",onClick:t[0]||(t[0]=b=>s.restrictPermissions())},null,8,["label","disabled"])):(e.openBlock(),e.createBlock(n,{key:1,label:l.$t("members.restorePermissions"),rounded:"",disabled:!a.permissions,size:"large",icon:"ri-refresh-line",onClick:t[1]||(t[1]=b=>s.restorePermissions())},null,8,["label","disabled"]))])])),e.createElementVNode("div",fb,[a.isSite?(e.openBlock(),e.createBlock(h,{key:0,id:"membres",value:s.sortableMembers,"row-hover":"","data-key":"id","responsive-layout":"scroll","removable-sort":""},{default:e.withCtx(()=>[e.createVNode(r,{field:"avatar"},{body:e.withCtx(b=>[e.createVNode(c,{label:b.data.person?b.data.person.displayName.charAt(0):b.data.group.displayName.charAt(0),size:"large",class:"avatar-blue",shape:"circle"},null,8,["label"])]),_:1}),e.createVNode(r,{field:"isGroup",header:l.$t("groups"),"header-style":"max-width: 4rem",sortable:""},{body:e.withCtx(b=>[b.data.isGroup?(e.openBlock(),e.createElementBlock("i",vb)):e.createCommentVNode("",!0)]),_:1},8,["header"]),e.createVNode(r,{field:"person",header:l.$t("members.members"),sortable:"","sort-field":"displayName"},{body:e.withCtx(b=>[b.data.person?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",null,[e.createElementVNode("button",{type:"button",class:"member-profile-btn","aria-label":l.$t("members.viewUserProfile"),title:l.$t("members.viewUserProfile"),onClick:y=>s.openUserProfile(b.data.id)},[...t[6]||(t[6]=[e.createElementVNode("i",{class:"ri-user-line","aria-hidden":"true"},null,-1)])],8,Lb),e.createElementVNode("span",null,e.toDisplayString(b.data.person.displayName),1)]),e.createElementVNode("div",Db,e.toDisplayString(b.data.id)+" - "+e.toDisplayString(b.data.person.email),1)],64)):(e.openBlock(),e.createElementBlock("span",Rb,e.toDisplayString(b.data.group.displayName),1))]),_:1},8,["header"]),e.createVNode(r,{field:"role",header:l.$t("members.role")},{body:e.withCtx(b=>[e.createVNode(m,{modelValue:o.selectedRole[b.data.id],"onUpdate:modelValue":y=>o.selectedRole[b.data.id]=y,options:o.rolesValues,"option-label":"name",placeholder:l.$t(`role.${b.data.role}`),value:b.data.role,disabled:!a.permissions,onChange:y=>s.toggleChangeMemberRole(b.data)},null,8,["modelValue","onUpdate:modelValue","options","placeholder","value","disabled","onChange"])]),_:1},8,["header"]),e.createVNode(r,{field:"buttons"},{body:e.withCtx(b=>[e.createVNode(n,{class:"mr-2 mb-2",type:"button",icon:"ri-close-line","aria-label":l.$t("delete"),disabled:!a.permissions,severity:"danger",rounded:"",text:"",onClick:y=>s.toggleDeleteMember(b.data)},null,8,["aria-label","disabled","onClick"])]),_:1})]),_:1},8,["value"])):(e.openBlock(),e.createBlock(h,{key:1,id:"membres",class:"mt-4",value:a.members,"row-hover":"","data-key":"id","responsive-layout":"scroll","removable-sort":""},{default:e.withCtx(()=>[e.createVNode(r,{field:"avatar"},{body:e.withCtx(b=>[b.data.authorityId.startsWith("GROUP")?(e.openBlock(),e.createElementBlock("i",kb)):(e.openBlock(),e.createBlock(c,{key:0,label:b.data.authorityId.charAt(0),size:"large",class:"avatar-blue",shape:"circle"},null,8,["label"]))]),_:1}),e.createVNode(r,{field:"person",header:l.$t("members.members")},{body:e.withCtx(b=>[e.createElementVNode("span",null,e.toDisplayString(b.data.authorityId),1),b.data.groupId?(e.openBlock(),e.createElementBlock("p",Cb,e.toDisplayString(l.$t("members.fromGroup",{group:b.data.groupId})),1)):e.createCommentVNode("",!0)]),_:1},8,["header"]),e.createVNode(r,{field:"role",header:l.$t("members.role")},{body:e.withCtx(b=>[b.data.groupId?(e.openBlock(),e.createElementBlock("div",Fb,e.toDisplayString(l.$t(`role.${b.data.name}`)),1)):(e.openBlock(),e.createBlock(m,{key:0,modelValue:o.selectedRole[b.data.name],"onUpdate:modelValue":y=>o.selectedRole[b.data.name]=y,options:o.rolesValues,"option-label":"name",placeholder:l.$t(`role.${b.data.name}`),value:b.data.name,disabled:!a.permissions,onChange:y=>s.changePermission(b.data)},null,8,["modelValue","onUpdate:modelValue","options","placeholder","value","disabled","onChange"]))]),_:1},8,["header"]),e.createVNode(r,{field:"buttons"},{body:e.withCtx(b=>[b.data.groupId?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(n,{key:0,class:"mr-2 mb-2",type:"button",icon:"ri-close-line","aria-label":l.$t("delete"),disabled:!a.permissions,severity:"danger",rounded:"",text:"",onClick:y=>s.deletePermission(b.data)},null,8,["aria-label","disabled","onClick"]))]),_:1})]),_:1},8,["value"])),e.createElementVNode("div",Vb,[e.createElementVNode("div",xb,[e.createElementVNode("span",Sb,[e.createVNode(u,{modelValue:o.selectedMemberToAdd,"onUpdate:modelValue":t[2]||(t[2]=b=>o.selectedMemberToAdd=b),"force-selection":"","option-label":"label",suggestions:o.filteredMembers,placeholder:l.$t("members.search"),disabled:!a.permissions,onComplete:t[3]||(t[3]=b=>s.searchUser(b))},{item:e.withCtx(b=>[e.createElementVNode("div",Jb,[b.item.group?(e.openBlock(),e.createElementBlock("i",Ub)):(e.openBlock(),e.createElementBlock("i",Hb)),e.createElementVNode("div",Qb,e.toDisplayString(b.item.label),1)])]),_:1},8,["modelValue","suggestions","placeholder","disabled"])])]),e.createElementVNode("div",Bb,[e.createVNode(m,{modelValue:o.addSelectedRole,"onUpdate:modelValue":t[4]||(t[4]=b=>o.addSelectedRole=b),options:o.rolesValues,"option-label":"name",placeholder:l.$t("members.select"),disabled:!a.permissions},null,8,["modelValue","options","placeholder","disabled"])]),e.createElementVNode("div",Eb,[a.isSite?(e.openBlock(),e.createBlock(n,{key:0,type:"button",icon:"ri-add-line",label:l.$t("members.add"),disabled:!a.permissions,onClick:s.toggleAddMember},null,8,["label","disabled","onClick"])):(e.openBlock(),e.createBlock(n,{key:1,type:"button",icon:"ri-add-line",label:l.$t("members.add"),disabled:!a.permissions,onClick:t[5]||(t[5]=b=>s.addPermissions())},null,8,["label","disabled"]))])])])])])}const so=H(Xb,[["render",Pb],["__scopeId","data-v-9c182ada"]]),_b={name:"MemberListPopup",components:{MemberList:so,PrimeDialog:ke,PrimeButton:w},props:{selectedNode:{type:Object,default:()=>({})}},emits:["close","goToSiteMemberPage"],data(){return{workspace:null,node:null,nodeName:null,workspaceTitle:"",members:null,enablePermissions:!1,role:null,isHerited:!0,nbMembers:null,membersWithGroups:null,membersLocallySet:null}},computed:{isSelectedNodeASite(){return this.selectedNode.nodeType==="st:site"}},mounted(){if(this.isSelectedNodeASite){const l=this.selectedNode.name;je.getWorkspace(l).then(t=>(this.workspace=t,this.workspaceTitle=t.title,t)).then(t=>{this.role=this.$t(`role.${t.role}`),this.enablePermissions=this.role===this.$t("role.SiteManager")}),this.loadMembers(l)}else V.getNode(this.selectedNode.id).then(l=>{this.node=l,this.nodeName=l.name,this.loadPermissions()})},methods:{onGoToSiteMemberPage(){const l=xe();this.$emit("goToSiteMemberPage",l.workspace?.id),this.closePopup(!1)},closePopup(l){this.$emit("close",l)},loadMembers(l){let t={maxItems:1e3},a=je.getWorkspaceMembershipsWithOpts(l,t).then(o=>o.list.entries.map(s=>({...s.entry,isGroup:!1}))),i=je.getWorkspaceGroupsWithOpts(l,t).then(o=>o.map(s=>({...s,isGroup:!0})));Promise.all([a,i]).then(o=>this.members=[...o[0],...o[1]])},updateInheritedGroup(l){const a=`GROUP_site_${xe().workspace?.id}_SiteContributor`;return(l.permissions?.inherited||[]).filter(i=>i.authorityId!==a)},fetchGroupMemberships(){const l=["GROUP_EVERYONE"];this.membersWithGroups.filter(a=>a.authorityId.startsWith("GROUP")&&!l.includes(a.authorityId)).forEach(a=>{hl.listGroupMemberships(a.authorityId).then(i=>{i.list.entries.forEach(s=>{let n=s.entry;n.groupId=a.authorityId,n.authorityId=n.id,n.name=a.name,this.membersWithGroups.push(n)})})})},loadPermissions(){V.getNode(this.selectedNode.id).then(l=>{this.enablePermissions=xe().currentNode.allowableOperations?.includes("updatePermissions")||!1,this.isHerited=l.permissions?.isInheritanceEnabled,this.members=l.permissions?.locallySet||[],this.membersLocallySet=l.permissions?.locallySet||[];let t=this.updateInheritedGroup(l);this.nbMembers=this.members.length+t.length,this.membersWithGroups=[...this.members,...t],this.fetchGroupMemberships()})}}},Kb={class:"flex justify-content-end mb-3"};function $b(l,t,a,i,o,s){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("MemberList"),r=e.resolveComponent("PrimeDialog");return s.isSelectedNodeASite?(e.openBlock(),e.createBlock(r,{key:0,"data-testid":"member-list-popup-site",header:l.$t("members.management",{workspace:o.workspaceTitle}),visible:"",modal:"",maximizable:"",class:"popup popup--tree",onKeyup:t[3]||(t[3]=e.withKeys(m=>s.closePopup(!0),["esc"]))},{closeicon:e.withCtx(()=>[e.createVNode(n,{"data-testid":"member-list-popup-site-close-button",icon:"ri-close-line","aria-label":l.$t("close"),outlined:"",text:"",severity:"secondary",autofocus:"false",onClick:t[0]||(t[0]=m=>s.closePopup(!0))},null,8,["aria-label"])]),footer:e.withCtx(()=>[e.createVNode(n,{"data-testid":"member-list-popup-site-footer-close-button",label:l.$t("close"),severity:"secondary",onClick:t[2]||(t[2]=m=>s.closePopup(!0))},null,8,["label"])]),default:e.withCtx(()=>[e.createVNode(c,{"data-testid":"member-list-popup-site-member-list",workspace:o.workspace,members:o.members,permissions:o.enablePermissions,role:o.role,onReload:t[1]||(t[1]=m=>s.loadMembers())},null,8,["workspace","members","permissions","role"])]),_:1},8,["header"])):(e.openBlock(),e.createBlock(r,{key:1,"data-testid":"member-list-popup-folder",header:l.$t("members.permissions",{node:o.nodeName}),visible:"",modal:"",maximizable:"",class:"popup popup--tree",onKeyup:t[7]||(t[7]=e.withKeys(m=>s.closePopup(!0),["esc"]))},{closeicon:e.withCtx(()=>[e.createVNode(n,{"data-testid":"member-list-popup-folder-close-button",icon:"ri-close-line","aria-label":l.$t("close"),outlined:"",text:"",severity:"secondary",autofocus:"false",onClick:t[4]||(t[4]=m=>s.closePopup(!0))},null,8,["aria-label"])]),footer:e.withCtx(()=>[e.createVNode(n,{"data-testid":"member-list-popup-folder-footer-close-button",label:l.$t("close"),severity:"secondary",onClick:t[6]||(t[6]=m=>s.closePopup(!0))},null,8,["label"])]),default:e.withCtx(()=>[e.createElementVNode("div",Kb,[e.createVNode(n,{"data-testid":"member-list-popup-folder-goto-site-button",label:l.$t("membersPopup.goToSiteMemberPage"),onClick:s.onGoToSiteMemberPage},null,8,["label","onClick"])]),e.createVNode(c,{"data-testid":"member-list-popup-folder-member-list",workspace:o.workspace,"folder-node":a.selectedNode,members:o.membersWithGroups,permissions:o.enablePermissions,role:o.role,"is-site":s.isSelectedNodeASite,"is-herited":o.isHerited,"nb-members":o.nbMembers,"members-without-groups":o.members,"members-locally-set":o.membersLocallySet,onUpdatePermission:t[5]||(t[5]=m=>s.loadPermissions())},null,8,["workspace","folder-node","members","permissions","role","is-site","is-herited","nb-members","members-without-groups","members-locally-set"])]),_:1},8,["header"]))}const io=H(_b,[["render",$b]]),qb={name:"SendMailPopup",components:{PrimeDialog:ke,PrimeButton:w,PrimeChips:kc,PrimeTextarea:ul,PrimeCheckbox:Lt,PrimeInputText:Me},emits:["close"],data(){return{node:{},to:[],cc:[],cci:[],showCc:!1,showCci:!1,subject:null,message:null,attachment:!1,link:null}},computed:{checkAllForm(){return this.checkValidTo===null&&this.checkValidCC===null&&this.checkValidCCI===null&&this.checkSubject===null&&this.checkMessage===null},checkValidTo(){if(this.to.length===0)return this.$t("sendingMail.errors.errorEmptyEmail");let l=null;return this.to.forEach(t=>{Fa.validate(t)||(l=this.$t("sendingMail.errors.errorValidEmail"))}),l},checkValidCC(){let l=null;return this.cc.length>0&&this.cc.forEach(t=>{Fa.validate(t)||(l=this.$t("sendingMail.errors.errorValidEmail"))}),l},checkValidCCI(){let l=null;return this.cci.length>0&&this.cci.forEach(t=>{Fa.validate(t)||(l=this.$t("sendingMail.errors.errorValidEmail"))}),l},checkSubject(){return this.subject===null||this.subject===""?this.$t("sendingMail.errors.errorEmptySubject"):this.subject.length<6?this.$t("sendingMail.errors.errorSubjectTooShort"):null},checkMessage(){return this.message===null||this.message===""?this.$t("sendingMail.errors.errorEmptyMessage"):null}},mounted(){this.node=Oe().files[0],this.to=[],this.cc=[],this.cci=[],this.subject=this.$t("sendingMail.popup.defaultSubject"),this.attachment=!1;let l=this.node?.properties["qshare:sharedId"]??null;const t=de();l?this.link=`${t.PREVIEW_URL}${l}`:V.createSharedLink(this.node).then(a=>{this.link=`${t.PREVIEW_URL}${a.entry.id}`,this.buildDefaultMessage(),Xe.createRendition(this.node.id,"pdf")}).catch(a=>{console.error("Failed to create shared link",a),this.link=null}),this.buildDefaultMessage()},methods:{buildDefaultMessage(){const l=Ge(),t=l.person?.displayName||l.person?.id||"",a=this.node?.properties["cm:title"]||this.node?.name||"";this.message=this.$t("sendingMail.popup.defaultMessage",{userName:t,documentName:a,shareLink:this.link||""})},closePopup(l){this.$emit("close",l)},sendMail(){if(!this.checkAllForm){console.warn("can't send email");return}const l={recipients:this.to.join(";"),recipientsInCopy:this.cc?this.cc.join(";"):"",recipientsInHiddenCopy:this.cc?this.cci.join(";"):"",object:this.subject,message:this.message,nodeId:this.node.id,isAttachment:this.attachment};return Wl.executeWebScript("POST","fr/jeci/sendMail",l).then(()=>{this.$toast.add({severity:"success",summary:this.$t("success"),detail:this.$t("sendMailSuccess"),life:5e3}),this.closePopup()}).catch(t=>{this.$toast.add({severity:"error",summary:this.$t("sendingMail.errors.errorSendMail"),detail:t,life:5e3})})},copyLinkClipboard(){navigator.clipboard.writeText(this.link).then(()=>{this.$toast.add({severity:"success",summary:this.$t("share.copyLinkToastSummary"),detail:this.$t("share.copyLinkToastDetail"),life:3e3})})}}},em={class:"p-fluid"},tm={class:"field grid"},lm={for:"name",class:"col-12 mb-2"},am={class:"col-12"},om={class:"p-error"},sm={class:"send-mail-toggle-links"},im={key:0,class:"field grid"},nm={for:"name",class:"col-12 mb-2"},cm={class:"col-12"},rm={class:"p-error"},dm={key:1,class:"field grid"},bm={for:"name",class:"col-12 mb-2"},mm={class:"col-12"},pm={class:"p-error"},um={class:"field grid"},Zm={for:"name",class:"col-12 mb-2"},hm={class:"col-12"},ym={class:"p-error"},Wm={class:"field grid"},gm={for:"name",class:"col-12 mb-2"},Ym={class:"col-12"},Nm={class:"p-error"},Xm={class:"field grid"},zm={for:"name",class:"col-12 mb-2"},Am={class:"col-12 copy-link"},Mm={class:"field grid"},Om={class:"col-12"};function jm(l,t,a,i,o,s){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeChips"),r=e.resolveComponent("PrimeInputText"),m=e.resolveComponent("PrimeTextarea"),h=e.resolveComponent("PrimeCheckbox"),u=e.resolveComponent("PrimeDialog");return e.openBlock(),e.createBlock(u,{"data-testid":"send-mail-popup",header:l.$t("sendMail",{name:o.node.name}),visible:"",modal:"",class:"popup popup--send-mail",onKeyup:t[10]||(t[10]=e.withKeys(b=>s.closePopup(!1),["esc"]))},{closeicon:e.withCtx(()=>[e.createVNode(n,{"data-testid":"send-mail-popup-close-button",icon:"ri-close-line","aria-label":l.$t("close"),outlined:"",text:"",severity:"secondary",autofocus:"false",onClick:t[0]||(t[0]=b=>s.closePopup(!1))},null,8,["aria-label"])]),footer:e.withCtx(()=>[e.createVNode(n,{"data-testid":"send-mail-popup-cancel-button",label:l.$t("close"),severity:"secondary",onClick:s.closePopup},null,8,["label","onClick"]),e.createVNode(n,{"data-testid":"send-mail-popup-submit-button",label:l.$t("send"),disabled:!s.checkAllForm,onClick:s.sendMail},null,8,["label","disabled","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("div",em,[e.createElementVNode("div",tm,[e.createElementVNode("label",lm,[e.createTextVNode(e.toDisplayString(l.$t("field.to"))+" ",1),t[11]||(t[11]=e.createElementVNode("span",{class:"required"},"*",-1))]),e.createElementVNode("div",am,[e.createVNode(c,{"data-testid":"send-mail-popup-to-chips",modelValue:o.to,"onUpdate:modelValue":t[1]||(t[1]=b=>o.to=b),separator:" ",class:e.normalizeClass({"p-invalid":s.checkValidTo}),"add-on-blur":""},null,8,["modelValue","class"]),e.createElementVNode("small",om,e.toDisplayString(s.checkValidTo),1)])]),e.createElementVNode("div",sm,[o.showCc?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-testid":"send-mail-popup-add-cc",type:"button",class:"send-mail-toggle-link",onClick:t[2]||(t[2]=b=>o.showCc=!0)},e.toDisplayString(l.$t("sendingMail.addCc")),1)),o.showCci?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:1,"data-testid":"send-mail-popup-add-cci",type:"button",class:"send-mail-toggle-link",onClick:t[3]||(t[3]=b=>o.showCci=!0)},e.toDisplayString(l.$t("sendingMail.addCci")),1))]),o.showCc?(e.openBlock(),e.createElementBlock("div",im,[e.createElementVNode("label",nm,e.toDisplayString(l.$t("field.cc")),1),e.createElementVNode("div",cm,[e.createVNode(c,{"data-testid":"send-mail-popup-cc-chips",modelValue:o.cc,"onUpdate:modelValue":t[4]||(t[4]=b=>o.cc=b),separator:" ",class:e.normalizeClass({"p-invalid":s.checkValidCC}),"add-on-blur":""},null,8,["modelValue","class"]),e.createElementVNode("small",rm,e.toDisplayString(s.checkValidCC),1)])])):e.createCommentVNode("",!0),o.showCci?(e.openBlock(),e.createElementBlock("div",dm,[e.createElementVNode("label",bm,e.toDisplayString(l.$t("field.cci")),1),e.createElementVNode("div",mm,[e.createVNode(c,{"data-testid":"send-mail-popup-cci-chips",modelValue:o.cci,"onUpdate:modelValue":t[5]||(t[5]=b=>o.cci=b),separator:" ",class:e.normalizeClass({"p-invalid":s.checkValidCCI}),"add-on-blur":""},null,8,["modelValue","class"]),e.createElementVNode("small",pm,e.toDisplayString(s.checkValidCCI),1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",um,[e.createElementVNode("label",Zm,[e.createTextVNode(e.toDisplayString(l.$t("field.subject"))+" ",1),t[12]||(t[12]=e.createElementVNode("span",{class:"required"},"*",-1))]),e.createElementVNode("div",hm,[e.createVNode(r,{"data-testid":"send-mail-popup-subject-input",modelValue:o.subject,"onUpdate:modelValue":t[6]||(t[6]=b=>o.subject=b),type:"text",class:e.normalizeClass({"p-invalid":s.checkSubject}),onKeyup:e.withKeys(s.sendMail,["enter"])},null,8,["modelValue","class","onKeyup"]),e.createElementVNode("small",ym,e.toDisplayString(s.checkSubject),1)])]),e.createElementVNode("div",Wm,[e.createElementVNode("label",gm,[e.createTextVNode(e.toDisplayString(l.$t("field.message"))+" ",1),t[13]||(t[13]=e.createElementVNode("span",{class:"required"},"*",-1))]),e.createElementVNode("div",Ym,[e.createVNode(m,{"data-testid":"send-mail-popup-message-textarea",modelValue:o.message,"onUpdate:modelValue":t[7]||(t[7]=b=>o.message=b),rows:8,class:e.normalizeClass({"p-invalid":s.checkMessage})},null,8,["modelValue","class"]),e.createElementVNode("small",Nm,e.toDisplayString(s.checkMessage),1)])]),e.createElementVNode("div",Xm,[e.createElementVNode("label",zm,e.toDisplayString(l.$t("field.shareLink")),1),e.createElementVNode("div",Am,[e.createVNode(r,{"data-testid":"send-mail-popup-link-input",modelValue:o.link,"onUpdate:modelValue":t[8]||(t[8]=b=>o.link=b),disabled:""},null,8,["modelValue"]),e.createVNode(n,{"data-testid":"send-mail-popup-copy-link-button",severity:"warning",onClick:s.copyLinkClipboard},{default:e.withCtx(()=>[t[14]||(t[14]=e.createElementVNode("i",{class:"ri-links-line","aria-hidden":"true"},null,-1)),e.createTextVNode(" "+e.toDisplayString(l.$t("sharelink.copyLinkTooltip")),1)]),_:1},8,["onClick"])])]),e.createElementVNode("div",Mm,[e.createElementVNode("div",Om,[e.createVNode(h,{"data-testid":"send-mail-popup-attachment-checkbox",modelValue:o.attachment,"onUpdate:modelValue":t[9]||(t[9]=b=>o.attachment=b),class:"send-mail-attachment",name:"attachment",binary:""},null,8,["modelValue"]),e.createElementVNode("label",null,e.toDisplayString(l.$t("addAttachment")),1)])])])]),_:1},8,["header"])}const no=H(qb,[["render",jm],["__scopeId","data-v-97b57737"]]),Gm={name:"ShareLinkPopup",components:{PrimeDialog:ke,PrimeButton:w,PrimeInputText:Me,PrimeCheckbox:Lt,PrimeCalendar:wa},directives:{tooltip:dt},emits:["close","reload"],data(){return{link:null,shareId:null,date:null,hasExpirationDate:!1,node:null}},watch:{shareId(l){if(l!==null){const t=de();this.link=`${t.PREVIEW_URL}${l}`}else this.link=null}},mounted(){this.node=Oe().files[0],this.shareId=this.node.properties["qshare:sharedId"]??null,this.hasExpirationDate="qshare:expiryDate"in this.node.properties,this.date=this.hasExpirationDate?new Date(this.node.properties["qshare:expiryDate"]):null},methods:{closePopup(l){this.$emit("close",l)},dateChecked(){this.hasExpirationDate||this.deleteLinkDate()},copyLinkClipboard(){navigator.clipboard.writeText(this.link).then(()=>{this.$toast.add({severity:"success",summary:this.$t("sharelink.copyLinkToastSummary"),detail:this.$t("sharelink.copyLinkToastDetail"),life:3e3})})},deleteLinkDate(){this.date=null,this.hasExpirationDate=!1,this.updateLinkDate(),this.$emit("reload")},updateLinkDate(){const l={properties:{"qshare:expiryDate":this.date?this.date.toISOString():null}};V.updateNode(this.node.id,l).then(()=>{this.$toast.add({severity:"success",summary:this.$t("sharelink.updateLinkDateSummary"),detail:this.$t("sharelink.updateLinkDateDetail"),life:3e3}),this.$emit("reload")}).catch(t=>{this.$toast.add({severity:"error",summary:this.$t("sharelink.updateLinkDateErrorSummary"),detail:t.message,life:3e3})})},deleteSharedLink(){V.deleteSharedLink(this.shareId).then(()=>{this.$toast.add({severity:"success",summary:this.$t("sharelink.deleteLinkToastSummary"),detail:this.$t("sharelink.deleteLinkToastDetail"),life:3e3}),this.$emit("reload")}).catch(l=>{this.$toast.add({severity:"error",summary:this.$t("deleteLinkErrorSummary"),detail:l.message,life:3e3})}),this.shareId=null,this.link=null,this.date=null,this.hasExpirationDate=!1},createSharedLink(){V.createSharedLink(this.node).then(l=>{this.shareId=l.entry.id,this.$toast.add({severity:"success",summary:this.$t("sharelink.createLinkToastSummary"),detail:this.$t("sharelink.createLinkToastDetail"),life:3e3}),Xe.createRendition(this.node.id,"pdf"),this.$emit("reload")}).catch(l=>{this.$toast.add({severity:"error",summary:this.$t("sharelink.createLinkErrorSummary"),detail:l.message,life:3e3})})}}},Tm={class:"p-inputgroup"},wm={key:0},Im={key:1},fm={key:0},vm={class:"field-checkbox"},Lm={for:"expirationDate"},Dm={key:0,class:"p-inputgroup"};function Rm(l,t,a,i,o,s){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeInputText"),r=e.resolveComponent("PrimeCheckbox"),m=e.resolveComponent("PrimeCalendar"),h=e.resolveComponent("PrimeDialog"),u=e.resolveDirective("tooltip");return e.openBlock(),e.createBlock(h,{"data-testid":"share-link-popup",header:l.$t("sharelink.linkToShare"),visible:"",modal:"",class:"popup popup--share-link",onKeyup:t[4]||(t[4]=e.withKeys(b=>s.closePopup(!1),["esc"]))},{closeicon:e.withCtx(()=>[e.createVNode(n,{"data-testid":"share-link-popup-close-button",icon:"ri-close-line","aria-label":l.$t("close"),outlined:"",text:"",severity:"secondary",autofocus:"false",onClick:t[0]||(t[0]=b=>s.closePopup(!1))},null,8,["aria-label"])]),footer:e.withCtx(()=>[e.createVNode(n,{"data-testid":"share-link-popup-footer-close-button",label:l.$t("close"),severity:"secondary",onClick:s.closePopup},null,8,["label","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("p",null,e.toDisplayString(l.$t("sharelink.shareLinkOf",{fileName:o.node.name})),1),e.createElementVNode("div",Tm,[e.createVNode(c,{"data-testid":"share-link-popup-link-input",modelValue:o.link,"onUpdate:modelValue":t[1]||(t[1]=b=>o.link=b),placeholder:l.$t("sharelink.placeholder"),disabled:""},null,8,["modelValue","placeholder"]),o.shareId?(e.openBlock(),e.createElementBlock("div",Im,[e.createVNode(n,{"data-testid":"share-link-popup-copy-button",severity:"warning",onClick:s.copyLinkClipboard},{default:e.withCtx(()=>[t[6]||(t[6]=e.createElementVNode("i",{class:"ri-link","aria-hidden":"true"},null,-1)),e.createTextVNode(" "+e.toDisplayString(l.$t("sharelink.copyLinkTooltip")),1)]),_:1},8,["onClick"]),e.withDirectives(e.createVNode(n,{"data-testid":"share-link-popup-delete-link-button","aria-label":l.$t("sharelink.deleteLinkTooltip"),icon:"ri-delete-bin-line",severity:"danger",onClick:s.deleteSharedLink},null,8,["aria-label","onClick"]),[[u,l.$t("sharelink.deleteLinkTooltip")]])])):(e.openBlock(),e.createElementBlock("div",wm,[e.createVNode(n,{"data-testid":"share-link-popup-create-button",severity:"success",onClick:s.createSharedLink},{default:e.withCtx(()=>[t[5]||(t[5]=e.createElementVNode("i",{class:"ri-add-line","aria-hidden":"true"},null,-1)),e.createTextVNode(" "+e.toDisplayString(l.$t("sharelink.createLinkTooltip")),1)]),_:1},8,["onClick"])]))]),o.shareId?(e.openBlock(),e.createElementBlock("div",fm,[e.createElementVNode("div",vm,[e.withDirectives(e.createVNode(r,{"data-testid":"share-link-popup-expiration-checkbox",modelValue:o.hasExpirationDate,"onUpdate:modelValue":t[2]||(t[2]=b=>o.hasExpirationDate=b),"input-id":"expirationDate",binary:"",onChange:s.dateChecked},null,8,["modelValue","onChange"]),[[u,l.$t("sharelink.addExpirationDateLinkTooltip")]]),e.createElementVNode("label",Lm,e.toDisplayString(l.$t("sharelink.expirationDate")),1)]),o.hasExpirationDate?(e.openBlock(),e.createElementBlock("div",Dm,[e.createVNode(m,{"data-testid":"share-link-popup-expiration-calendar",modelValue:o.date,"onUpdate:modelValue":t[3]||(t[3]=b=>o.date=b),"min-date":new Date,onDateSelect:s.updateLinkDate},null,8,["modelValue","min-date","onDateSelect"]),e.withDirectives(e.createVNode(n,{"data-testid":"share-link-popup-delete-expiration-button","aria-label":l.$t("sharelink.deleteExpirationDateLinkTooltip"),icon:"ri-delete-bin-line",severity:"danger",onClick:s.deleteLinkDate},null,8,["aria-label","onClick"]),[[u,l.$t("sharelink.deleteExpirationDateLinkTooltip")]])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["header"])}const co=H(Gm,[["render",Rm]]),km={name:"DynamicContentView",components:{ActionMenu:Ul,ContentGridView:to,ContentListView:eo,ContentTableView:qa,CopyOrMovePopup:Pa,CreateWorkflowPopup:ao,ImportNewVersionPopup:oo,MemberListPopup:io,PaginatorComponent:Ua,SendMailPopup:no,ShareLinkPopup:co,PrimeButton:w,PrimeDataView:So,PrimeCheckbox:Lt},inject:["actionsService","collaboraService","isCurrentNodeDisplayed","setIsPopupOpen","toggleFileActionMenu","getFileActionMenuItems"],props:{files:{type:Array,default:()=>[]},canUpload:{type:Boolean,default:!1},layout:{type:String,default:null},currentNode:{type:Object,default:()=>({})},isPreviewPanelVisible:{type:Boolean,default:!1},isSmallScreen:{type:Boolean,default:!1},isInUserHome:{type:Boolean,default:!1},favoriteOptions:{type:Object,default:()=>({})},totalRecordNodes:{type:Number,default:0},datatableColumnConfig:{type:Array,default:()=>[]}},emits:["message","open-modify","open-rename","open-preview-panel","page-selected","reload","update-skipcount","navigate-to"],data(){return{filters:{global:{value:null,matchMode:Ho.FilterMatchMode.CONTAINS}},fileActionMenuItems:[],popup:null,memberListTargetNode:null,selectedNodes:[],modifyPopupTitle:"",isPageSelected:!1,actionType:null,showUserHome:!1}},created(){this.initFilters(),this.selectionStore=Oe(),this.selectedNodes=this.selectionStore.nodes,this.selectionStore.$subscribe((l,t)=>{this.selectedNodes=t.nodes})},methods:{resetPageSelection(){this.isPageSelected=!1},setMenuActionAndOpenIt(l,t){this.fileActionMenuItems=this.getFileActionMenuItems(t),this.toggleFileActionMenu(l)},getMenuActionRef(){return this.$refs.fileMenuAction},updateSkipCount(l){this.$emit("update-skipcount",l)},reloadData(){this.$emit("reload")},updateSelectedNodes(l){this.selectionStore.selectNodes(l)},updatePageSelectedNodes(l){if(this.isPageSelected=l,this.isPageSelected){const t=localStorage.getItem(`datatable-folder-page-list--${xe().currentNode.id}`),a=JSON.parse(t),i=a.rows,o=a.first||0;if(o===0)this.selectedNodes=this.files.slice(0,i);else{const s=o%this.files.length;this.selectedNodes=this.files.slice(s,s+i)}this.selectionStore.selectNodes(this.selectedNodes),this.$emit("page-selected")}else this.selectionStore.resetSelection()},closePopup(l){this.setIsPopupOpen(!1),this.popup==="MODIFYNODE"&&this.$emit("reload"),this.popup=null,this.memberListTargetNode=null,l&&this.$emit("reload")},emitMessage(l){this.$emit("message",l)},initFilters(){this.filters={global:{value:null,matchMode:Ho.FilterMatchMode.CONTAINS}}},openInNewTab(l){let t;l.isFolder?t=this.$router.resolve(this.actionsService.getRouteForNavigationInNewTab(xe().workspace.id,l)):t=this.$router.resolve(this.actionsService.getRouteForOpenInNewTab(l)),window.open(t.href,"_blank_"+l.id)},deleteItem(l){V.deleteNode(l.id,l.isFile?"fichier":"dossier").then(()=>{this.$emit("reload"),this.$toast.add({severity:"success",summary:this.$t("success"),detail:this.$t("node.successRemoveElement"),life:3e3})}).catch(t=>{this.$toast.add({severity:"error",summary:"Error",detail:t.message,life:3e3})})},toggleDownloadFile(l){this.actionsService.toggleDownloadFile(l)},gotoConsultationPdf(l){this.$router.push({name:"consultation-pdf",params:{id:l.id}})},gotoEditCollabora(l){let t=this.$router.resolve({name:"edit-collabora",params:{action:"edit",id:l.id}});window.open(t.href,"_blank")},openCopy(l){l&&(this.actionType="copy",this.showUserHome=!0,this.setIsPopupOpen(!0),this.selectionStore.selectSingleNode(l),this.popup="COPYORMOVE")},openMove(l){l&&(this.actionType="move",this.showUserHome=!0,this.setIsPopupOpen(!0),this.selectionStore.selectSingleNode(l),this.popup="COPYORMOVE")},openNewVersion(l){l&&(this.setIsPopupOpen(!0),this.selectionStore.selectSingleNode(l),this.popup="NEWVERSION")},openShareLink(l){l&&(this.setIsPopupOpen(!0),this.selectionStore.selectSingleNode(l),this.popup="SHARELINK")},openCreateWorkflow(l){l&&(this.setIsPopupOpen(!0),this.selectionStore.selectSingleNode(l),this.popup="WORKFLOW")},copyInternLink(l){if(l){const t=this.actionsService.getNodeInternLink(l);navigator.clipboard.writeText(t).then(()=>{this.$toast.add({severity:"success",summary:this.$t("share.copyLinkToastSummary"),detail:this.$t("share.copyLinkToastDetail"),life:3e3})}).catch(()=>{this.$toast.add({severity:"error",summary:this.$t("share.copyLinkErrorSummary"),detail:this.$t("share.copyLinkErrorDetail"),life:3e3})})}},openSendMail(l){l&&l.isFile&&(this.setIsPopupOpen(!0),this.selectionStore.selectSingleNode(l),this.popup="SENDMAIL")},openMembers(l){l&&(this.setIsPopupOpen(!0),this.memberListTargetNode=l,this.popup="MEMBERS")},toggleFavorite(l){ba.changeSingleFavorite(l,this.favoriteOptions).then(t=>{this.$toast.add({severity:"success",summary:this.$t("menu.favoris"),detail:t.isFavorite?this.$t("node.addElementFavorite",{name:t.name}):this.$t("node.removeElementFavorite",{name:t.name}),life:3e3})}).catch(t=>{this.$toast.add({severity:"error",summary:this.$t("node.favoriteError"),detail:t.message,life:3e3})})},selectNode(l){this.selectedNodes=l,this.selectionStore.selectSingleNode(l)},navigateTo(l){this.$emit("navigate-to",l)},nodeClicked(l){this.isSmallScreen&&this.navigateTo(l)},openPreviewPanel(l){l.isFile&&this.$emit("open-preview-panel",l)},clickIcon(l){l.isFolder?this.navigateTo(l):l.isFile&&this.openPreviewPanel(l)}}},Cm=["aria-label"],Fm={class:"flex justify-content-between flex-wrap"},Vm=["aria-label"],xm={class:"w-full border-1 border-100 overflow-hidden flex align-items-center"},Sm={class:"mr-3","data-tour":"select-all-checkbox"},Jm={class:"flex align-items-center w-full"},Um={class:"flex justify-content-between align-items-center w-9"},Hm={class:"overflow-hidden white-space-nowrap text-overflow-ellipsis p-text-bold w-full"},Qm={class:"flex justify-content-between flex-wrap"};function Bm(l,t,a,i,o,s){const n=e.resolveComponent("ActionMenu"),c=e.resolveComponent("ContentTableView"),r=e.resolveComponent("PrimeButton"),m=e.resolveComponent("PaginatorComponent"),h=e.resolveComponent("PrimeCheckbox"),u=e.resolveComponent("ContentListView"),b=e.resolveComponent("ContentGridView"),y=e.resolveComponent("PrimeDataView"),g=e.resolveComponent("CreateWorkflowPopup"),X=e.resolveComponent("CopyOrMovePopup"),M=e.resolveComponent("ImportNewVersionPopup"),A=e.resolveComponent("ShareLinkPopup"),F=e.resolveComponent("MemberListPopup"),U=e.resolveComponent("SendMailPopup");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(n,{ref:"fileMenuAction",actionMenuItems:o.fileActionMenuItems},null,8,["actionMenuItems"]),a.layout==="datatable"?(e.openBlock(),e.createElementBlock("div",{key:0,"data-testid":"dynamic-content-view-table",role:"region","aria-label":l.$t("fileList")},[e.createVNode(c,{files:a.files,filters:o.filters,"current-node":a.currentNode,"selected-nodes":o.selectedNodes,"is-page-selected":o.isPageSelected,"is-preview-panel-visible":a.isPreviewPanelVisible,"is-small-screen":a.isSmallScreen,"is-in-user-home":a.isInUserHome,"total-record-nodes":a.totalRecordNodes,"datatable-column-config":a.datatableColumnConfig,"onUpdate:pageSelectedNodes":s.updatePageSelectedNodes,"onUpdate:selectedNodes":s.updateSelectedNodes,onClickIcon:s.clickIcon,onOpenPreviewPanel:s.openPreviewPanel,onOpenSharelink:s.openShareLink,onToggleFavorite:s.toggleFavorite,onToggleFileActionMenu:s.setMenuActionAndOpenIt,onNavigateTo:s.navigateTo,onOpenMembers:s.openMembers},null,8,["files","filters","current-node","selected-nodes","is-page-selected","is-preview-panel-visible","is-small-screen","is-in-user-home","total-record-nodes","datatable-column-config","onUpdate:pageSelectedNodes","onUpdate:selectedNodes","onClickIcon","onOpenPreviewPanel","onOpenSharelink","onToggleFavorite","onToggleFileActionMenu","onNavigateTo","onOpenMembers"]),e.createElementVNode("div",Fm,[e.createVNode(r,{type:"button",icon:"ri-refresh-line","aria-label":l.$t("reload"),text:"",onClick:t[0]||(t[0]=j=>l.$emit("reload"))},null,8,["aria-label"]),a.files&&a.files.length>0?(e.openBlock(),e.createBlock(m,{key:0,"displayed-elements":a.files,"total-records":a.totalRecordNodes,onChangePage:s.updateSkipCount,onChangeElementPerPage:s.reloadData},null,8,["displayed-elements","total-records","onChangePage","onChangeElementPerPage"])):e.createCommentVNode("",!0)])],8,Cm)):(e.openBlock(),e.createElementBlock("div",{key:1,"data-testid":"dynamic-content-view-grid-list",role:"region","aria-label":l.$t("fileList")},[a.currentNode?(e.openBlock(),e.createBlock(y,{key:0,"data-testid":"dynamic-content-view-dataview",value:a.files,layout:a.layout},e.createSlots({list:e.withCtx(j=>[e.createVNode(u,{"slot-props":j,"selected-nodes":o.selectedNodes,"is-preview-panel-visible":a.isPreviewPanelVisible,"is-small-screen":a.isSmallScreen,"is-in-user-home":a.isInUserHome,"onUpdate:selectedNodes":s.updateSelectedNodes,onClickIcon:s.clickIcon,onOpenPreviewPanel:s.openPreviewPanel,onOpenSharelink:s.openShareLink,onToggleFavorite:s.toggleFavorite,onToggleFileActionMenu:s.setMenuActionAndOpenIt,onOpenInNewTab:s.openInNewTab,onNodeClicked:s.nodeClicked,onOpenMembers:s.openMembers},null,8,["slot-props","selected-nodes","is-preview-panel-visible","is-small-screen","is-in-user-home","onUpdate:selectedNodes","onClickIcon","onOpenPreviewPanel","onOpenSharelink","onToggleFavorite","onToggleFileActionMenu","onOpenInNewTab","onNodeClicked","onOpenMembers"])]),grid:e.withCtx(j=>[e.createVNode(b,{"slot-props":j,"selected-nodes":o.selectedNodes,"is-preview-panel-visible":a.isPreviewPanelVisible,"is-small-screen":a.isSmallScreen,"is-in-user-home":a.isInUserHome,"onUpdate:selectedNodes":s.updateSelectedNodes,onClickIcon:s.clickIcon,onOpenPreviewPanel:s.openPreviewPanel,onOpenSharelink:s.openShareLink,onToggleFavorite:s.toggleFavorite,onToggleFileActionMenu:s.setMenuActionAndOpenIt,onOpenInNewTab:s.openInNewTab,onNodeClicked:s.nodeClicked,onOpenMembers:s.openMembers},null,8,["slot-props","selected-nodes","is-preview-panel-visible","is-small-screen","is-in-user-home","onUpdate:selectedNodes","onClickIcon","onOpenPreviewPanel","onOpenSharelink","onToggleFavorite","onToggleFileActionMenu","onOpenInNewTab","onNodeClicked","onOpenMembers"])]),_:2},[a.layout==="list"?{name:"header",fn:e.withCtx(()=>[e.createElementVNode("div",xm,[e.createElementVNode("div",Sm,[e.createVNode(h,{modelValue:o.isPageSelected,"onUpdate:modelValue":t[1]||(t[1]=j=>o.isPageSelected=j),binary:"",class:"flex align-items-center justify-content-center",name:"option","aria-label":l.$t("selectAll"),onChange:t[2]||(t[2]=j=>s.updatePageSelectedNodes(o.isPageSelected))},null,8,["modelValue","aria-label"])]),e.createElementVNode("div",Jm,[e.createElementVNode("div",Um,[e.createElementVNode("div",Hm,[e.createElementVNode("span",null,e.toDisplayString(l.$t("field.name")),1)])]),e.createElementVNode("div",{class:e.normalizeClass({hidden:a.isPreviewPanelVisible})},e.toDisplayString(l.$t("column.modifiedAt")),3)])])]),key:"0"}:void 0]),1032,["value","layout"])):e.createCommentVNode("",!0),e.createElementVNode("div",Qm,[e.createVNode(r,{type:"button",icon:"ri-refresh-line","aria-label":l.$t("reload"),text:"",onClick:t[3]||(t[3]=j=>l.$emit("reload"))},null,8,["aria-label"]),a.files&&a.files.length>0?(e.openBlock(),e.createBlock(m,{key:0,"displayed-elements":a.files,"total-records":a.totalRecordNodes,onChangePage:s.updateSkipCount,onChangeElementPerPage:s.reloadData},null,8,["displayed-elements","total-records","onChangePage","onChangeElementPerPage"])):e.createCommentVNode("",!0),t[6]||(t[6]=e.createElementVNode("div",null,null,-1))])],8,Vm)),o.popup==="WORKFLOW"?(e.openBlock(),e.createBlock(g,{key:2,onClose:s.closePopup},null,8,["onClose"])):e.createCommentVNode("",!0),o.popup==="COPYORMOVE"?(e.openBlock(),e.createBlock(X,{key:3,"show-user-home":o.showUserHome,"action-type":o.actionType,"current-node":a.currentNode,onClose:s.closePopup},null,8,["show-user-home","action-type","current-node","onClose"])):e.createCommentVNode("",!0),o.popup==="NEWVERSION"?(e.openBlock(),e.createBlock(M,{key:4,onClose:s.closePopup,onMessage:s.emitMessage},null,8,["onClose","onMessage"])):e.createCommentVNode("",!0),o.popup==="SHARELINK"?(e.openBlock(),e.createBlock(A,{key:5,onClose:s.closePopup,onReload:t[4]||(t[4]=j=>l.$emit("reload"))},null,8,["onClose"])):e.createCommentVNode("",!0),o.popup==="MEMBERS"?(e.openBlock(),e.createBlock(F,{key:6,"is-site":!1,"selected-node":o.memberListTargetNode,onClose:s.closePopup,onReload:t[5]||(t[5]=j=>l.$emit("reload"))},null,8,["selected-node","onClose"])):e.createCommentVNode("",!0),o.popup==="SENDMAIL"?(e.openBlock(),e.createBlock(U,{key:7,onClose:s.closePopup},null,8,["onClose"])):e.createCommentVNode("",!0)],64)}const kn=H(km,[["render",Bm]]),Em={name:"ContentFiltersHeader",components:{PrimeButton:w,PrimeDropdown:gt},props:{selectedSortFilter:{type:Object,default:()=>({})},isAscending:{type:Boolean,default:!0}},emits:["changeSortOrder","update:selectedSortFilter"],data(){return{filterSortOption:[{name:this.$t("mostRelevant")},{name:this.$t("column.name"),sort:[{type:"FIELD",field:"cm:name",ascending:!1}]},{name:this.$t("facets.categories.modified_date"),sort:[{type:"FIELD",field:"cm:modified",ascending:!1}]},{name:this.$t("column.modifiedBy"),sort:[{type:"FIELD",field:"cm:modifier",ascending:!1}]}]}},computed:{selectedSortFilterCopy:{get(){return this.selectedSortFilter},set(l){this.$emit("update:selectedSortFilter",l)}}},methods:{changeSortOrder(){this.$emit("changeSortOrder")}}},Pm={"data-testid":"content-filters-header",class:"flex justify-content-between p-3 surface-100 border-bottom-1 border-200"},_m={class:"flex gap-4"},Km={class:"font-bold text-xs"},$m={key:0,class:"flex items-center"},qm={key:1},ep={class:"flex items-center"};function tp(l,t,a,i,o,s){const n=e.resolveComponent("PrimeDropdown"),c=e.resolveComponent("PrimeButton");return e.openBlock(),e.createElementBlock("div",Pm,[e.createElementVNode("div",_m,[e.createVNode(n,{"data-testid":"content-filters-header-sort-dropdown",modelValue:s.selectedSortFilterCopy,"onUpdate:modelValue":t[0]||(t[0]=r=>s.selectedSortFilterCopy=r),options:o.filterSortOption,"option-label":"label"},{value:e.withCtx(r=>[e.createElementVNode("div",Km,e.toDisplayString(l.$t("sortOn")),1),r.value?(e.openBlock(),e.createElementBlock("div",$m,[e.createElementVNode("div",null,e.toDisplayString(r.value.name),1)])):(e.openBlock(),e.createElementBlock("span",qm,e.toDisplayString(r.placeholder),1))]),option:e.withCtx(r=>[e.createElementVNode("div",ep,[e.createElementVNode("div",null,e.toDisplayString(r.option.name),1)])]),_:1},8,["modelValue","options"]),a.isAscending&&a.selectedSortFilter&&a.selectedSortFilter.sort?(e.openBlock(),e.createBlock(c,{key:0,"data-testid":"content-filters-header-sort-asc-button",icon:"ri-sort-asc","aria-label":l.$t("sortAscending"),text:"",size:"large",onClick:s.changeSortOrder},null,8,["aria-label","onClick"])):!a.isAscending&&a.selectedSortFilter&&a.selectedSortFilter.sort?(e.openBlock(),e.createBlock(c,{key:1,"data-testid":"content-filters-header-sort-desc-button",icon:"ri-sort-desc","aria-label":l.$t("sortDescending"),text:"",size:"large",onClick:s.changeSortOrder},null,8,["aria-label","onClick"])):e.createCommentVNode("",!0)])])}const Cn=H(Em,[["render",tp]]),lp={name:"ImageViewer",components:{PrimeButton:w,PrimeImage:Ga,PrimeToolBar:Ia,PrimeTag:la},directives:{tooltip:dt},props:{canUpload:{type:Boolean,default:!1},contentNode:{type:Object,required:!0},versionId:{type:String,default:""},showTitle:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!0}},emits:["reload"],data(){return{contentUrl:"",zoomLevel:1,maxZoomLevel:2,minZoomLevel:.5}},computed:{zoomStyle(){return{transform:`scale(${this.zoomLevel})`,transformOrigin:"top center",transition:"transform 0.2s ease-in-out"}},hasContentUrl(){return this.contentUrl!==""},isVersion(){return this.$route.params.versionId!==null&&this.$route.params.versionId!==void 0}},created(){this.loadImage(),this.fitAuto()},beforeUpdate(){this.loadImage()},methods:{reload(){this.$emit("reload")},download(){const l=document.createElement("a");l.href=this.contentUrl;const t=this.contentNode.name;let a="";this.$route.params.versionId?a=this.$route.params.versionId:this.contentNode.properties&&(a=this.contentNode.properties["cm:versionLabel"]);const i=/\.[^.]+$/,o=t.replace(i,"");l.download=`${o}-v-${a}${t.match(i)[0]}`,l.click()},loadImage(){this.contentUrl="",this.contentNode.id!==void 0&&(this.versionId!==""?this.contentUrl=Xe.getVersionContentUrl(this.contentNode.id,this.versionId):this.contentUrl=Xe.getContentUrl(this.contentNode.id))},fitAuto(){this.zoomLevel=1},zoomIn(){this.zoomLevel<this.maxZoomLevel&&(this.zoomLevel+=.4)},zoomOut(){this.zoomLevel>this.minZoomLevel&&(this.zoomLevel-=.4)}}},ap={class:"flex"},op={class:"flex-grow-1 overflow-hidden"},sp={key:0,class:"consultation-title col"},ip={key:0,class:"flex gap-2"},np={class:"card flex justify-content-center mr-1"};function cp(l,t,a,i,o,s){const n=e.resolveComponent("PrimeTag"),c=e.resolveComponent("PrimeButton"),r=e.resolveComponent("PrimeToolBar"),m=e.resolveComponent("PrimeImage"),h=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock("div",ap,[e.createElementVNode("div",op,[e.createVNode(r,{class:"sticky"},{center:e.withCtx(()=>[a.contentNode&&a.showTitle?(e.openBlock(),e.createElementBlock("h3",sp,e.toDisplayString(a.contentNode.name),1)):e.createCommentVNode("",!0),l.$route.params.versionId&&a.showTitle?(e.openBlock(),e.createBlock(n,{key:1,class:"tag-version",value:l.$route.params.versionId},null,8,["value"])):e.createCommentVNode("",!0)]),end:e.withCtx(()=>[a.showButtons?(e.openBlock(),e.createElementBlock("div",ip,[e.withDirectives(e.createVNode(c,{"aria-label":l.$t("pdf.dezoom"),icon:"ri-zoom-out-line",class:"text-1xl p-2",raised:"",onClick:t[0]||(t[0]=u=>s.zoomOut())},null,8,["aria-label"]),[[h,l.$t("pdf.dezoom"),void 0,{bottom:!0}]]),e.withDirectives(e.createVNode(c,{"aria-label":l.$t("pdf.zoom"),icon:"ri-zoom-in-line",class:"text-xl p-2",raised:"",onClick:t[1]||(t[1]=u=>s.zoomIn())},null,8,["aria-label"]),[[h,l.$t("pdf.zoom"),void 0,{bottom:!0}]]),e.withDirectives(e.createVNode(c,{"aria-label":l.$t("pdf.adaptToWidth"),icon:"ri-expand-horizontal-line",class:"text-xl p-2",raised:"",onClick:t[2]||(t[2]=u=>s.fitAuto())},null,8,["aria-label"]),[[h,l.$t("pdf.adaptToWidth"),void 0,{bottom:!0}]]),e.withDirectives(e.createVNode(c,{"aria-label":l.$t("download"),icon:"ri-download-line",class:"text-xl p-2",severity:"warning",raised:"",onClick:s.download},null,8,["aria-label","onClick"]),[[h,l.$t("download"),void 0,{bottom:!0}]])])):e.createCommentVNode("",!0)]),_:1}),e.createElementVNode("div",np,[a.contentNode&&s.hasContentUrl?(e.openBlock(),e.createBlock(m,{key:0,class:"image-rendition",src:o.contentUrl,alt:a.contentNode.name,style:e.normalizeStyle(s.zoomStyle)},null,8,["src","alt","style"])):e.createCommentVNode("",!0)])])])}const ro=H(lp,[["render",cp],["__scopeId","data-v-abd29efa"]]),rp={name:"VideoPlayer",components:{PrimeTag:la,PrimeToolBar:Ia,PrimeButton:w},directives:{tooltip:dt},props:{canUpload:{type:Boolean,default:!1},contentUrl:{type:String,default:null},contentNode:{type:Object,default:null}},emits:["reload"],computed:{isVersion(){return this.$route.params.versionId!==null&&this.$route.params.versionId!==void 0}},methods:{reload(){this.$emit("reload")},download(){const l=document.createElement("a");l.href=this.contentUrl,l.download=this.contentNode.name,l.click()}}},dp={class:"flex"},bp={class:"flex-grow-1 overflow-scroll"},mp={key:0,class:"consultation-title col"},pp={class:"card flex justify-content-center mr-1"},up=["src"];function Zp(l,t,a,i,o,s){const n=e.resolveComponent("PrimeTag"),c=e.resolveComponent("PrimeButton"),r=e.resolveComponent("PrimeToolBar"),m=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock("div",dp,[e.createElementVNode("div",bp,[e.createVNode(r,{class:"sticky consultation-toolbar w-full"},{start:e.withCtx(()=>[a.contentNode?(e.openBlock(),e.createElementBlock("h3",mp,e.toDisplayString(a.contentNode.name),1)):e.createCommentVNode("",!0),l.$route.params.versionId?(e.openBlock(),e.createBlock(n,{key:1,class:"tag-version",value:l.$route.params.versionId},null,8,["value"])):e.createCommentVNode("",!0)]),end:e.withCtx(()=>[e.withDirectives(e.createVNode(c,{"aria-label":l.$t("download"),icon:"ri-download-line",severity:"warning",class:"mr-2",raised:"",onClick:t[0]||(t[0]=h=>s.download())},null,8,["aria-label"]),[[m,l.$t("download"),void 0,{bottom:!0}]])]),_:1}),e.createElementVNode("div",pp,[a.contentUrl?(e.openBlock(),e.createElementBlock("video",{key:a.contentUrl,controls:"",class:"video-rendition"},[e.createElementVNode("source",{src:a.contentUrl},null,8,up)])):e.createCommentVNode("",!0)])])])}const bo=H(rp,[["render",Zp],["__scopeId","data-v-59a176e0"]]);let hp=0;class ve{constructor(t={}){this.id=hp++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=t.combine||null}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=Hl.match(t)),a=>{let i=t(a);return i===void 0?null:[this,i]}}}ve.closedBy=new ve({deserialize:l=>l.split(" ")}),ve.openedBy=new ve({deserialize:l=>l.split(" ")}),ve.group=new ve({deserialize:l=>l.split(" ")}),ve.isolate=new ve({deserialize:l=>{if(l&&l!="rtl"&&l!="ltr"&&l!="auto")throw new RangeError("Invalid value for isolate: "+l);return l||"auto"}}),ve.contextHash=new ve({perNode:!0}),ve.lookAhead=new ve({perNode:!0}),ve.mounted=new ve({perNode:!0});const yp=Object.create(null);class Hl{constructor(t,a,i,o=0){this.name=t,this.props=a,this.id=i,this.flags=o}static define(t){let a=t.props&&t.props.length?Object.create(null):yp,i=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),o=new Hl(t.name||"",a,t.id,i);if(t.props){for(let s of t.props)if(Array.isArray(s)||(s=s(o)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");a[s[0].id]=s[1]}}return o}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let a=this.prop(ve.group);return a?a.indexOf(t)>-1:!1}return this.id==t}static match(t){let a=Object.create(null);for(let i in t)for(let o of i.split(" "))a[o]=t[i];return i=>{for(let o=i.prop(ve.group),s=-1;s<(o?o.length:0);s++){let n=a[s<0?i.name:o[s]];if(n)return n}}}}Hl.none=new Hl("",Object.create(null),0,8);var Fn;(function(l){l[l.ExcludeBuffers=1]="ExcludeBuffers",l[l.IncludeAnonymous=2]="IncludeAnonymous",l[l.IgnoreMounts=4]="IgnoreMounts",l[l.IgnoreOverlays=8]="IgnoreOverlays",l[l.EnterBracketed=16]="EnterBracketed"})(Fn||(Fn={})),new ve({perNode:!0});let Wp=0;class st{constructor(t,a,i,o){this.name=t,this.set=a,this.base=i,this.modified=o,this.id=Wp++}toString(){let{name:t}=this;for(let a of this.modified)a.name&&(t=`${a.name}(${t})`);return t}static define(t,a){let i=typeof t=="string"?t:"?";if(t instanceof st&&(a=t),a?.base)throw new Error("Can not derive from a modified tag");let o=new st(i,[],null,[]);if(o.set.push(o),a)for(let s of a.set)o.set.push(s);return o}static defineModifier(t){let a=new pa(t);return i=>i.modified.indexOf(a)>-1?i:pa.get(i.base||i,i.modified.concat(a).sort((o,s)=>o.id-s.id))}}let gp=0;class pa{constructor(t){this.name=t,this.instances=[],this.id=gp++}static get(t,a){if(!a.length)return t;let i=a[0].instances.find(c=>c.base==t&&Yp(a,c.modified));if(i)return i;let o=[],s=new st(t.name,o,t,a);for(let c of a)c.instances.push(s);let n=Np(a);for(let c of t.set)if(!c.modified.length)for(let r of n)o.push(pa.get(c,r));return s}}function Yp(l,t){return l.length==t.length&&l.every((a,i)=>a==t[i])}function Np(l){let t=[[]];for(let a=0;a<l.length;a++)for(let i=0,o=t.length;i<o;i++)t.push(t[i].concat(l[a]));return t.sort((a,i)=>i.length-a.length)}new ve({combine(l,t){let a,i,o;for(;l||t;){if(!l||t&&l.depth>=t.depth?(o=t,t=t.next):(o=l,l=l.next),a&&a.mode==o.mode&&!o.context&&!a.context)continue;let s=new mo(o.tags,o.mode,o.context);a?a.next=s:i=s,a=s}return i}});class mo{constructor(t,a,i,o){this.tags=t,this.mode=a,this.context=i,this.next=o}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}get depth(){return this.context?this.context.length:0}}mo.empty=new mo([],2,null);function Xp(l,t){let a=Object.create(null);for(let s of l)if(!Array.isArray(s.tag))a[s.tag.id]=s.class;else for(let n of s.tag)a[n.id]=s.class;let{scope:i,all:o=null}={};return{style:s=>{let n=o;for(let c of s)for(let r of c.set){let m=a[r.id];if(m){n=n?n+" "+m:m;break}}return n},scope:i}}const L=st.define,ua=L(),Ct=L(),Vn=L(Ct),xn=L(Ct),Ft=L(),Za=L(Ft),po=L(Ft),Yt=L(),ll=L(Yt),Nt=L(),Xt=L(),uo=L(),Ql=L(uo),ha=L(),G={comment:ua,lineComment:L(ua),blockComment:L(ua),docComment:L(ua),name:Ct,variableName:L(Ct),typeName:Vn,tagName:L(Vn),propertyName:xn,attributeName:L(xn),className:L(Ct),labelName:L(Ct),namespace:L(Ct),macroName:L(Ct),literal:Ft,string:Za,docString:L(Za),character:L(Za),attributeValue:L(Za),number:po,integer:L(po),float:L(po),bool:L(Ft),regexp:L(Ft),escape:L(Ft),color:L(Ft),url:L(Ft),keyword:Nt,self:L(Nt),null:L(Nt),atom:L(Nt),unit:L(Nt),modifier:L(Nt),operatorKeyword:L(Nt),controlKeyword:L(Nt),definitionKeyword:L(Nt),moduleKeyword:L(Nt),operator:Xt,derefOperator:L(Xt),arithmeticOperator:L(Xt),logicOperator:L(Xt),bitwiseOperator:L(Xt),compareOperator:L(Xt),updateOperator:L(Xt),definitionOperator:L(Xt),typeOperator:L(Xt),controlOperator:L(Xt),punctuation:uo,separator:L(uo),bracket:Ql,angleBracket:L(Ql),squareBracket:L(Ql),paren:L(Ql),brace:L(Ql),content:Yt,heading:ll,heading1:L(ll),heading2:L(ll),heading3:L(ll),heading4:L(ll),heading5:L(ll),heading6:L(ll),contentSeparator:L(Yt),list:L(Yt),quote:L(Yt),emphasis:L(Yt),strong:L(Yt),link:L(Yt),monospace:L(Yt),strikethrough:L(Yt),inserted:L(),deleted:L(),changed:L(),invalid:L(),meta:ha,documentMeta:L(ha),annotation:L(ha),processingInstruction:L(ha),definition:st.defineModifier("definition"),constant:st.defineModifier("constant"),function:st.defineModifier("function"),standard:st.defineModifier("standard"),local:st.defineModifier("local"),special:st.defineModifier("special")};for(let l in G){let t=G[l];t instanceof st&&(t.name=l)}Xp([{tag:G.link,class:"tok-link"},{tag:G.heading,class:"tok-heading"},{tag:G.emphasis,class:"tok-emphasis"},{tag:G.strong,class:"tok-strong"},{tag:G.keyword,class:"tok-keyword"},{tag:G.atom,class:"tok-atom"},{tag:G.bool,class:"tok-bool"},{tag:G.url,class:"tok-url"},{tag:G.labelName,class:"tok-labelName"},{tag:G.inserted,class:"tok-inserted"},{tag:G.deleted,class:"tok-deleted"},{tag:G.literal,class:"tok-literal"},{tag:G.string,class:"tok-string"},{tag:G.number,class:"tok-number"},{tag:[G.regexp,G.escape,G.special(G.string)],class:"tok-string2"},{tag:G.variableName,class:"tok-variableName"},{tag:G.local(G.variableName),class:"tok-variableName tok-local"},{tag:G.definition(G.variableName),class:"tok-variableName tok-definition"},{tag:G.special(G.variableName),class:"tok-variableName2"},{tag:G.definition(G.propertyName),class:"tok-propertyName tok-definition"},{tag:G.typeName,class:"tok-typeName"},{tag:G.namespace,class:"tok-namespace"},{tag:G.className,class:"tok-className"},{tag:G.macroName,class:"tok-macroName"},{tag:G.propertyName,class:"tok-propertyName"},{tag:G.operator,class:"tok-operator"},{tag:G.comment,class:"tok-comment"},{tag:G.meta,class:"tok-meta"},{tag:G.invalid,class:"tok-invalid"},{tag:G.punctuation,class:"tok-punctuation"}]);const zp=_t.HighlightStyle.define([{tag:G.comment,color:"#6a737d",fontStyle:"italic"},{tag:G.lineComment,color:"#6a737d",fontStyle:"italic"},{tag:G.blockComment,color:"#6a737d",fontStyle:"italic"},{tag:G.string,color:"#032f62"},{tag:G.special(G.string),color:"#032f62"},{tag:G.number,color:"#005cc5"},{tag:G.integer,color:"#005cc5"},{tag:G.float,color:"#005cc5"},{tag:G.keyword,color:"#d73a49",fontWeight:"bold"},{tag:G.controlKeyword,color:"#d73a49",fontWeight:"bold"},{tag:G.operatorKeyword,color:"#d73a49"},{tag:G.operator,color:"#d73a49"},{tag:G.compareOperator,color:"#d73a49"},{tag:G.arithmeticOperator,color:"#d73a49"},{tag:G.logicOperator,color:"#d73a49"},{tag:G.definition(G.variableName),color:"#6f42c1"},{tag:G.definition(G.function(G.variableName)),color:"#6f42c1",fontWeight:"bold"},{tag:G.variableName,color:"#24292e"},{tag:G.function(G.variableName),color:"#6f42c1"},{tag:G.typeName,color:"#22863a"},{tag:G.className,color:"#22863a",fontWeight:"bold"},{tag:G.namespace,color:"#22863a"},{tag:G.propertyName,color:"#005cc5"},{tag:G.attributeName,color:"#6f42c1"},{tag:G.attributeValue,color:"#032f62"},{tag:G.heading,color:"#005cc5",fontWeight:"bold"},{tag:G.heading1,color:"#005cc5",fontWeight:"bold",fontSize:"1.4em"},{tag:G.heading2,color:"#005cc5",fontWeight:"bold",fontSize:"1.2em"},{tag:G.heading3,color:"#005cc5",fontWeight:"bold",fontSize:"1.1em"},{tag:G.emphasis,fontStyle:"italic",color:"#24292e"},{tag:G.strong,fontWeight:"bold",color:"#24292e"},{tag:G.link,color:"#0366d6",textDecoration:"underline"},{tag:G.url,color:"#0366d6"},{tag:G.quote,color:"#6a737d",fontStyle:"italic"},{tag:G.monospace,color:"#e36209",backgroundColor:"#f6f8fa"},{tag:G.strikethrough,textDecoration:"line-through"},{tag:G.list,color:"#e36209"},{tag:G.tagName,color:"#22863a"},{tag:G.angleBracket,color:"#24292e"},{tag:G.punctuation,color:"#24292e"},{tag:G.bracket,color:"#24292e"},{tag:G.brace,color:"#24292e"},{tag:G.paren,color:"#24292e"},{tag:G.meta,color:"#6a737d"},{tag:G.invalid,color:"#cb2431",backgroundColor:"#ffeef0"}]),Ap={"text/html":()=>Eo.html(),"text/markdown":()=>oa.markdown({codeLanguages:Da.languages}),"text/x-markdown":()=>oa.markdown({codeLanguages:Da.languages}),"text/x-web-markdown":()=>oa.markdown({codeLanguages:Da.languages}),"application/json":()=>fa.json(),"text/json":()=>fa.json(),"application/xml":()=>va.xml(),"text/xml":()=>va.xml(),"application/x-yaml":()=>sa.yaml(),"text/yaml":()=>sa.yaml(),"text/x-yaml":()=>sa.yaml(),"application/x-sh":()=>_t.StreamLanguage.define(La.shell),"text/x-sh":()=>_t.StreamLanguage.define(La.shell),"application/x-shellscript":()=>_t.StreamLanguage.define(La.shell)};function Yl(l){if(!l)return[];const t=Ap[l];return t?t():[]}function Nl(l={}){const{editable:t=!1,showLineNumbers:a=!0,enableHistory:i=t,dark:o=!1,lineWrapping:s=!1,onUpdate:n=null}=l,c=[o?Bo.oneDark:_t.syntaxHighlighting(zp,{fallback:!0}),we.EditorView.editable.of(t),we.keymap.of([{key:"Mod-c",run:r=>{const{from:m,to:h}=r.state.selection.main;if(m===h)return!1;const u=r.state.sliceDoc(m,h);return navigator.clipboard.writeText(u).catch(()=>{}),!0}}])];return s&&c.push(we.EditorView.lineWrapping),a&&c.push(we.lineNumbers()),i?c.push(Cl.history(),we.keymap.of([...Cl.defaultKeymap,...Cl.historyKeymap,Cl.indentWithTab])):c.push(we.keymap.of(Cl.defaultKeymap)),n&&c.push(we.EditorView.updateListener.of(r=>{r.docChanged&&n(r.state.doc.toString())})),c}function Sn(l){const{parent:t,content:a="",mimeType:i="text/plain",editable:o=!1,onUpdate:s=null}=l;if(!t)throw new Error("Parent element is required to create an editor");const n=Yl(i),r=[...Nl({editable:o,onUpdate:s})];n&&(!Array.isArray(n)||n.length>0)&&r.push(n);const m=Ot.EditorState.create({doc:a,extensions:r});return new we.EditorView({state:m,parent:t})}function Mp(){const l=e.shallowRef(null),t=s=>(a(),l.value=Sn(s),l.value),a=()=>{l.value&&(l.value.destroy(),l.value=null)};return{editorView:l,create:t,destroy:a,setContent:s=>{l.value&&l.value.dispatch({changes:{from:0,to:l.value.state.doc.length,insert:s}})},getContent:()=>l.value?l.value.state.doc.toString():"",getLanguageExtension:Yl,getBaseExtensions:Nl}}Po.marked.use(Cc.markedHighlight({langPrefix:"hljs language-",highlight(l,t){if(t&&ka.getLanguage(t))try{return ka.highlight(l,{language:t}).value}catch(a){console.warn("Highlight.js error:",a)}try{return ka.highlightAuto(l).value}catch{return l}}}));const Jn=`
11
11
  /* Highlight.js GitHub-like theme */
12
12
  .hljs {
@@ -151,5 +151,5 @@ ${Jn}`}</style>
151
151
  }
152
152
  });
153
153
  <\/script>
154
- </html>`}function go(l={}){const{content:t,mimeType:a,customStyles:i=""}=l,o=e.computed(()=>{const m=a?.value;return m==="text/markdown"||m==="text/x-markdown"||m==="text/x-web-markdown"}),s=e.computed(()=>a?.value==="text/html"),n=e.computed(()=>o.value||s.value),c=e.computed(()=>t?.value?o.value?ho(t.value):s.value?yo(t.value):"":""),r=e.computed(()=>Wo(c.value,i));return{isMarkdown:o,isHtml:s,shouldRenderPreview:n,previewBodyHtml:c,iframeContent:r,renderMarkdown:ho,sanitizeHtml:yo,generatePreviewDocument:Wo}}const ya=$.defineStore({id:"ThemeStore",state:()=>({theme:"",indexScale:"",dark:!1}),actions:{initScale(){let t=localStorage.getItem("scaleIndex")||2;this.updateScale(t)},updateScale(l){const t=[12,13,14,15,16],a=document.documentElement;a.style.fontSize=`${t[l]}px`,localStorage.setItem("scaleIndex",l),this.$patch({indexScale:l})},changeTheme(l){const t=de().PRIMEVUE_THEMES_URL,a=document.head,i=document.getElementById("theme-link"),o=document.createElement("link");o.id="theme-link",o.rel="stylesheet",o.href=`${t}${l}/theme.min.css`,o.async=!0;const s=()=>{console.info(`Theme ${l} loaded`)},n=c=>{console.error(`Can’t load theme ${l}`,c)};o.addEventListener("load",s),o.addEventListener("error",n),i&&a.removeChild(i),a.appendChild(o),localStorage.setItem("theme",l),this.$patch({theme:l,dark:l.indexOf("dark")>0})},initTheme(){let t=localStorage.getItem("theme")||"lara-light-green";this.changeTheme(t)}}}),jp={class:"code-viewer-wrapper"},Gp={key:0,class:"loading-container"},Tp={key:1,class:"error-container"},wp={key:2},Ip=["srcdoc"],fp={name:"PreviewPanel",components:{VideoPlayer:bo,ImageViewer:ro,PDFComponent:Ha,CodeMirrorViewer:H({__name:"CodeMirrorViewer",props:{contentNode:{type:Object,required:!0},isSharedLink:{type:Boolean,default:!1}},setup(l){const{t}=Pt.useI18n(),a=ya(),i=l,o=e.ref(""),s=e.ref(null),n=e.ref(null),c=e.shallowRef(null),r=e.ref(!1),m=e.ref(null),{isMarkdown:h,isHtml:u,iframeContent:b}=go({content:o,mimeType:s}),y=()=>{if(!n.value)return;const M=Yl(s.value),F=[...Nl({editable:!1,showLineNumbers:!0,enableHistory:!1,dark:a.dark})];M&&(!Array.isArray(M)||M.length>0)&&F.push(M);const U=Ot.EditorState.create({doc:o.value,extensions:F});c.value=new we.EditorView({state:U,parent:n.value})},g=()=>{c.value&&(c.value.destroy(),c.value=null)},X=async M=>{if(!(!M.id&&!M.shareId)){r.value=!0,m.value=null;try{let A;i.isSharedLink&&M.shareId?A=await V.getSharedLinkContent(M.shareId):A=await V.getNodeContent(M.id,!1);let F=await A.text();if(M.content?.mimeType==="application/json")try{F=JSON.stringify(JSON.parse(F),null,2)}catch(U){console.warn("Failed to format JSON, displaying raw content:",U.message)}o.value=F,s.value=M.content?.mimeType||"text/plain",r.value=!1,await e.nextTick(),!h.value&&!u.value&&y()}catch(A){console.error("Failed to load content:",A),m.value=t("editor.loadError"),r.value=!1}}};return e.watch(()=>i.contentNode,M=>{M&&(g(),X(M))},{immediate:!0}),e.onBeforeUnmount(()=>{g()}),(M,A)=>(e.openBlock(),e.createElementBlock("div",jp,[r.value?(e.openBlock(),e.createElementBlock("div",Gp,[e.createVNode(e.unref(bt))])):m.value?(e.openBlock(),e.createElementBlock("div",Tp,[A[0]||(A[0]=e.createElementVNode("i",{class:"ri-error-warning-line mr-2 text-2xl","aria-hidden":"true"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(m.value),1)])):(e.openBlock(),e.createElementBlock("div",wp,[e.unref(h)||e.unref(u)?(e.openBlock(),e.createElementBlock("iframe",{key:0,srcdoc:e.unref(b),class:"preview-iframe w-full h-screen",sandbox:"allow-scripts allow-popups"},null,8,Ip)):(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"editorContainer",ref:n,class:"h-full w-full"},null,512))]))]))}},[["__scopeId","data-v-2fef27f5"]]),PrimeButton:w},directives:{tooltip:dt},inject:["collaboraService","isCurrentNodeDisplayed"],props:{isPreviewPanelVisible:{type:Boolean,default:!1},currentNodeDisplayed:{type:Object,default:()=>({})},hasOnlyOneFile:{type:Boolean,default:!1}},emits:["closeContentPanel","showPreviousFile","showNextFile"],data(){return{url:null}},computed:{...$.mapState(xe,["children"])},watch:{currentNodeDisplayed(l){l!=null?this.computeUrl(l):this.closeContentPanel()}},methods:{getPDFRef(){return this.$refs.pdfComponent},getImagePreviewRef(){return this.$refs.imageViewer},closeContentPanel(){this.$emit("closeContentPanel")},showPreviousFile(l){this.$emit("showPreviousFile",l)},showNextFile(l){this.$emit("showNextFile",l)},computeUrl(l){this.mimeType=l.content.mimeType,this.currentFileName=l.name,this.currentFileId=l.id,this.mimeType&&(this.mimeType==="application/pdf"||this.mimeType.includes("image/")||this.mimeType.includes("video/"))?this.url=Xe.getContentUrl(l.id):Xe.getRenditionUrl(l.id).then(t=>{this.url=t}).catch(t=>{if(t.message==="NOT_CREATED")return console.warn("Fail loading content : NOT_CREATED"),null;console.error("Fail loading content",t)})}}},vp=["aria-label"],Lp={class:"card p-1 flex-grow-1 overflow-visible pdfPanel scrollbar-width-none card-max-height"},Dp={key:0,class:"flex p-2 pdfPanelHeader"},Rp={"data-testid":"preview-panel-title",class:"text-xl overflow-hidden custom-ellipsis text-left m-auto w-10"},kp={class:"flex w-fit ml-2"},Cp={key:1},Fp={key:2},Vp={key:3},xp={key:4};function Sp(l,t,a,i,o,s){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("router-link"),r=e.resolveComponent("ImageViewer"),m=e.resolveComponent("VideoPlayer"),h=e.resolveComponent("CodeMirrorViewer"),u=e.resolveComponent("PDFComponent"),b=e.resolveDirective("tooltip");return a.currentNodeDisplayed?(e.openBlock(),e.createElementBlock("aside",{key:0,"data-testid":"preview-panel",class:e.normalizeClass(["pr-1 classic_zone flex-grow-1 overflow-hidden w-80vw",{hidden:!a.isPreviewPanelVisible}]),"aria-label":l.$t("previewPanel")},[e.createElementVNode("div",Lp,[a.currentNodeDisplayed?(e.openBlock(),e.createElementBlock("div",Dp,[e.createVNode(n,{"data-testid":"preview-panel-close-button",class:"m-2 text-xl p-1",type:"button",icon:"ri-close-line","aria-label":l.$t("close"),severity:"danger",rounded:"",text:"",onClick:s.closeContentPanel},null,8,["aria-label","onClick"]),e.withDirectives((e.openBlock(),e.createElementBlock("div",Rp,[e.createTextVNode(e.toDisplayString(a.currentNodeDisplayed.name),1)])),[[b,a.currentNodeDisplayed.name,void 0,{top:!0}]]),e.createElementVNode("div",kp,[e.withDirectives(e.createVNode(n,{"data-testid":"preview-panel-previous-button","aria-label":l.$t("previousFile"),type:"button",class:"m-2 text-3xl p-1",icon:"ri-skip-left-line",severity:"secondary",disabled:a.hasOnlyOneFile,onClick:t[0]||(t[0]=y=>s.showPreviousFile(l.children))},null,8,["aria-label","disabled"]),[[b,l.$t("previousFile"),void 0,{bottom:!0}]]),e.withDirectives(e.createVNode(n,{"data-testid":"preview-panel-next-button","aria-label":l.$t("nextFile"),type:"button",class:"m-2 text-3xl p-1",icon:"ri-skip-right-line",severity:"secondary","icon-pos":"right",disabled:a.hasOnlyOneFile,onClick:t[1]||(t[1]=y=>s.showNextFile(l.children))},null,8,["aria-label","disabled"]),[[b,l.$t("nextFile"),void 0,{bottom:!0}]]),e.createVNode(c,{to:s.collaboraService.getRoute(a.currentNodeDisplayed)},{default:e.withCtx(()=>[e.createVNode(n,{class:"m-2",label:"Ouvrir",type:"button",severity:"secondary",raised:""})]),_:1},8,["to"])])])):e.createCommentVNode("",!0),a.currentNodeDisplayed&&l.mimeType&&l.mimeType.includes("image/")?(e.openBlock(),e.createElementBlock("div",Cp,[e.createVNode(r,{ref:"imageViewer","content-node":a.currentNodeDisplayed,"show-title":!1},null,8,["content-node"])])):a.currentNodeDisplayed&&l.mimeType&&l.mimeType.includes("video/")?(e.openBlock(),e.createElementBlock("div",Fp,[e.createVNode(m,{"content-url":o.url,"content-node":a.currentNodeDisplayed},null,8,["content-url","content-node"])])):a.currentNodeDisplayed&&l.mimeType&&(l.mimeType.startsWith("text/")||l.mimeType==="application/json"||l.mimeType==="application/xml"||l.mimeType==="application/x-yaml"||l.mimeType==="application/x-sh")?(e.openBlock(),e.createElementBlock("div",Vp,[e.createVNode(h,{"content-node":a.currentNodeDisplayed},null,8,["content-node"])])):o.url?(e.openBlock(),e.createElementBlock("div",xp,[(e.openBlock(),e.createBlock(u,{key:o.url,ref:"pdfComponent",url:o.url,class:"h-full"},null,8,["url"]))])):e.createCommentVNode("",!0)])],10,vp)):e.createCommentVNode("",!0)}const Hn=H(fp,[["render",Sp],["__scopeId","data-v-70a3dead"]]),Jp={name:"SelectionStatus",components:{PrimeProgressSpinner:bt},inject:["actionsService"],emits:["resetPageSelection"],computed:{useSelectionStore(){return Oe},...$.mapState(Oe,["isSelectionRemovalVisible","isCurrentPageFullySelected"]),...$.mapState(xe,["currentNode","loading","pagination","totalRecordNodes"]),hasMoreElements(){return this.totalRecordNodes>=500},hasSelectedNodes(){return Oe().nodes.length!==0&&this.pagination&&!this.loading}},methods:{deleteSelection(){Oe().resetSelection(),Oe().setIsCurrentPageFullySelected(!1),Oe().setIsSelectionRemovalVisible(!1),this.$emit("resetPageSelection")},selectAllNodes(){let l=this.currentNode.guid||this.currentNode.id;this.actionsService.selectAllNodes(l,!0).then(t=>{let a=t.children;a.length>0&&Oe().selectNodes(a),Oe().setIsCurrentPageFullySelected(!1),Oe().setIsSelectionRemovalVisible(!0)})}}},Up={class:"align mb-1 flex-grow-1"},Hp={key:1,class:"nbrOfSearchResult"},Qp={key:2,class:"nbrOfSearchResult"},Bp={key:3,class:"selectOrDeleteDiv"},Ep={class:"ml-2 flex"},Pp={key:4,class:"selectOrDeleteDiv"},_p={class:"ml-2 flex"};function Kp(l,t,a,i,o,s){const n=e.resolveComponent("PrimeProgressSpinner");return e.openBlock(),e.createElementBlock("div",Up,[l.loading?(e.openBlock(),e.createBlock(n,{key:0,class:"w-1rem h-1rem",strokeWidth:"8",fill:"var(--surface-ground)",animationDuration:".5s","aria-label":"Custom ProgressSpinner"})):e.createCommentVNode("",!0),!l.loading&&l.pagination&&!s.hasSelectedNodes?(e.openBlock(),e.createElementBlock("div",Hp,e.toDisplayString(l.$t("howMuchResult",{nbrEntries:l.pagination.count,totalEntries:l.pagination.totalItems})),1)):s.hasSelectedNodes&&!l.isCurrentPageFullySelected&&!l.isSelectionRemovalVisible?(e.openBlock(),e.createElementBlock("div",Qp,e.toDisplayString(l.$t("howMuchSelected",{nbrEntries:s.useSelectionStore().nodes.length,totalEntries:l.pagination.totalItems})),1)):s.hasSelectedNodes&&l.isCurrentPageFullySelected?(e.openBlock(),e.createElementBlock("div",Bp,[e.createElementVNode("span",Ep,[e.createTextVNode(e.toDisplayString(l.$t("howMuchSelected",{nbrEntries:s.useSelectionStore().nodes.length,totalEntries:l.pagination.totalItems}))+" ",1),s.hasMoreElements?(e.openBlock(),e.createElementBlock("button",{key:0,class:"font-bold cursor-pointer ml-2 p-link",onClick:t[0]||(t[0]=c=>s.selectAllNodes())},e.toDisplayString(l.$t("selectAllElementMoreThan",{totalEntries:l.pagination.totalItems})),1)):(e.openBlock(),e.createElementBlock("button",{key:1,class:"font-bold cursor-pointer ml-2 p-link",onClick:t[1]||(t[1]=c=>s.selectAllNodes())},e.toDisplayString(l.$t("selectAllElement",{totalEntries:l.pagination.totalItems})),1))])])):s.hasSelectedNodes&&l.isSelectionRemovalVisible?(e.openBlock(),e.createElementBlock("div",Pp,[e.createElementVNode("span",_p,[e.createTextVNode(e.toDisplayString(l.$t("howMuchSelected",{nbrEntries:s.useSelectionStore().nodes.length,totalEntries:l.pagination.totalItems}))+" ",1),e.createElementVNode("button",{class:"font-bold cursor-pointer ml-2 p-link",onClick:t[2]||(t[2]=c=>s.deleteSelection())},e.toDisplayString(l.$t("deleteSelection")),1)])])):e.createCommentVNode("",!0)])}const Qn=H(Jp,[["render",Kp]]),$p={name:"LayoutSelector",components:{PrimeSelectButton:Zl},emits:["update-layout"],data(){return{layout:localStorage.getItem("contentViewLayout")||"datatable",options:["list","grid","datatable"]}},methods:{onLayoutChange(){this.$emit("update-layout",this.layout)},getOptionLabel(l){return{list:this.$t("layoutList"),grid:this.$t("layoutGrid"),datatable:this.$t("layoutTable")}[l]||l}}},qp=["aria-label"],e1={class:"sr-only"};function t1(l,t,a,i,o,s){const n=e.resolveComponent("PrimeSelectButton");return e.openBlock(),e.createElementBlock("div",{"data-testid":"layout-selector",class:"listView flex-grow-0",role:"group","aria-label":l.$t("layoutSelector")},[e.createVNode(n,{"data-testid":"layout-selector-button",modelValue:o.layout,"onUpdate:modelValue":t[0]||(t[0]=c=>o.layout=c),options:o.options,"allow-empty":!1,onChange:s.onLayoutChange,"aria-label":l.$t("layoutSelector")},{option:e.withCtx(({option:c})=>[e.createElementVNode("i",{class:e.normalizeClass([c==="list"?"ri-list-check":c==="grid"?"ri-grid-line":"ri-table-line"]),"aria-hidden":"true"},null,2),e.createElementVNode("span",e1,e.toDisplayString(s.getOptionLabel(c)),1)]),_:1},8,["modelValue","options","onChange","aria-label"])],8,qp)}const Bn=H($p,[["render",t1],["__scopeId","data-v-933501bb"]]),l1={name:"HelpKeyMessage",components:{PrimeMessage:Wt},props:{helpKey:{type:Boolean,default:!1}},emits:["set-help-hey"],methods:{changeHelpKey(){this.$emit("set-help-hey",!1)}}};function a1(l,t,a,i,o,s){const n=e.resolveComponent("PrimeMessage");return a.helpKey?(e.openBlock(),e.createBlock(n,{key:0,closable:!1,severity:"secondary",class:"text-lg font-semibold p-0",size:"large",onClick:s.changeHelpKey},{default:e.withCtx(()=>[...t[0]||(t[0]=[e.createElementVNode("p",{class:"ml-1 font-bold"},"Liste des Raccourcies Claviers",-1),e.createElementVNode("div",{class:"keydef"},[e.createElementVNode("span",null,[e.createElementVNode("i",{class:"ri-arrow-left-line","aria-hidden":"true"})]),e.createTextVNode("Page Précédente ")],-1),e.createElementVNode("div",{class:"keydef"},[e.createElementVNode("span",null,[e.createElementVNode("i",{class:"ri-arrow-right-line","aria-hidden":"true"})]),e.createTextVNode("Page Suivante ")],-1),e.createElementVNode("div",{class:"keydef"},[e.createElementVNode("span",null,[e.createTextVNode("CTRL+"),e.createElementVNode("i",{class:"ri-arrow-up-line","aria-hidden":"true"})]),e.createTextVNode("Document Précédente ")],-1),e.createElementVNode("div",{class:"keydef"},[e.createElementVNode("span",null,[e.createTextVNode("CTRL+"),e.createElementVNode("i",{class:"ri-arrow-down-line","aria-hidden":"true"})]),e.createTextVNode("Document Suivante ")],-1),e.createElementVNode("div",{class:"keydef"},[e.createElementVNode("span",null,"+"),e.createTextVNode("Zoomer")],-1),e.createElementVNode("div",{class:"keydef"},[e.createElementVNode("span",null,"-"),e.createTextVNode("Dézoomer")],-1),e.createElementVNode("div",{class:"keydef"},[e.createElementVNode("span",null,"0"),e.createTextVNode("Zoom adapté à la hauteur")],-1),e.createElementVNode("div",{class:"keydef"},[e.createElementVNode("span",null,"5"),e.createTextVNode("Zoom adapté à la largeur")],-1),e.createElementVNode("div",{class:"keydef"},[e.createElementVNode("span",null,"ECHAP"),e.createTextVNode("Fermer la prévisualisation")],-1),e.createElementVNode("div",{class:"keydef"},[e.createElementVNode("span",null,"ENTER"),e.createTextVNode("Ouvre le document")],-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)}const En=H(l1,[["render",a1],["__scopeId","data-v-3439a6f6"]]),o1={name:"CustomToastContent",props:{severity:{type:String,default:"info"},summary:{type:String,default:"Info"},link:{type:String,default:""},linkText:{type:String,default:"Cliquez ici"},messageBeforeLink:{type:String,default:""},messageAfterLink:{type:String,default:""},message:{type:String,default:"Voici un message sans lien."}},computed:{iconClass(){switch(this.severity){case"success":return"pi pi-check text-success";case"info":return"pi pi-info-circle text-info";case"warn":return"pi pi-exclamation-triangle text-warning";case"error":return"pi pi-times-circle text-danger";default:return"pi pi-info-circle text-info"}}}},s1={class:"flex w-full gap-1"},i1={class:"flex flex-column flex-grow-1 gap-1"},n1={class:"text-base font-bold"},c1={class:"text-base"},r1=["href"],d1={key:1};function b1(l,t,a,i,o,s){return e.openBlock(),e.createElementBlock("div",s1,[e.createElementVNode("i",{class:e.normalizeClass([s.iconClass,"mr-2 text-2xl"]),"aria-hidden":"true"},null,2),e.createElementVNode("div",i1,[e.createElementVNode("div",n1,e.toDisplayString(a.summary),1),e.createElementVNode("div",c1,[a.link?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.messageBeforeLink)+" ",1),e.createElementVNode("a",{href:a.link,class:"underline",target:"_blank",rel:"noopener"},e.toDisplayString(a.linkText),9,r1),e.createTextVNode(" "+e.toDisplayString(a.messageAfterLink),1)],64)):(e.openBlock(),e.createElementBlock("div",d1,e.toDisplayString(a.message),1))])])])}const Pn=H(o1,[["render",b1]]),m1={name:"UploadStatus",components:{PrimeKnob:Fc},emits:["openFile"],data(){return{isReduced:!1}},computed:{...$.mapState(el,["files","isUploading","overallMessage","activeRequests"])},methods:{...$.mapActions(el,["clearCompleted","cancelUpload"]),changeReducedState(){this.isReduced=!this.isReduced},cancelFileUpload(l){this.cancelUpload(l)},getIconColor(l){switch(l){case"success":return"color: green";case"error":return"color: red";default:return""}},iconForStatus(l){switch(l){case"success":return"ri-checkbox-circle-fill text-2xl";case"error":return"ri-close-circle-fill text-2xl";default:return""}},openFile(l){this.$emit("openFile",l)}}},p1={key:0,class:"fixed bottom-0 right-0 w-full sm:w-30rem surface-0 border-round shadow-5 m-0 sm:m-3 z-5 p-3 surface-border surface-ground border-1"},u1={class:"flex justify-content-between align-items-center"},Z1={key:0,class:"file-list"},h1={class:"flex flex-column pr-1"},y1=["onClick"],W1={key:1,class:"file-name"},g1={key:2,class:"error-message text-xs"},Y1={class:"status-container"},N1={key:1};function X1(l,t,a,i,o,s){const n=e.resolveComponent("Button"),c=e.resolveComponent("PrimeKnob");return l.files.length>0?(e.openBlock(),e.createElementBlock("div",p1,[e.createElementVNode("div",u1,[e.createElementVNode("strong",null,e.toDisplayString(l.overallMessage),1),e.createElementVNode("div",null,[e.createVNode(n,{icon:o.isReduced?"ri-arrow-up-line":"ri-arrow-down-line",onClick:s.changeReducedState,text:"",rounded:"",severity:"secondary","aria-label":"Réduire"},null,8,["icon","onClick"]),l.isUploading?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(n,{key:0,icon:"ri-close-line",onClick:l.clearCompleted,text:"",rounded:"",severity:"secondary","aria-label":"Fermer"},null,8,["onClick"]))])]),o.isReduced?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Z1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.files,r=>(e.openBlock(),e.createElementBlock("div",{key:r.name,class:"file-item"},[e.createElementVNode("div",h1,[r.status==="success"?(e.openBlock(),e.createElementBlock("a",{key:0,class:"file-name cursor-pointer",onClick:m=>s.openFile(r)},e.toDisplayString(r.name),9,y1)):(e.openBlock(),e.createElementBlock("span",W1,e.toDisplayString(r.name),1)),r.status==="error"?(e.openBlock(),e.createElementBlock("p",g1,e.toDisplayString(r.message),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Y1,[r.status==="uploading"?(e.openBlock(),e.createBlock(c,{key:0,modelValue:r.percent,"onUpdate:modelValue":m=>r.percent=m,size:50,strokeWidth:5,readonly:"",valueTemplate:"{value}%",class:"upload-knob"},null,8,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),r.status==="rejected"?(e.openBlock(),e.createElementBlock("div",N1,e.toDisplayString(l.$t("canceledImport")),1)):(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass(`${s.iconForStatus(r.status)}`),style:e.normalizeStyle(s.getIconColor(r.status))},null,6)),r.status==="uploading"&&r.percent!==100?(e.openBlock(),e.createBlock(n,{key:3,icon:"ri-close-line",text:"",rounded:"",severity:"danger",onClick:m=>s.cancelFileUpload(r.name),"aria-label":"Annuler",class:"cancel-btn"},null,8,["onClick"])):e.createCommentVNode("",!0)])]))),128))]))])):e.createCommentVNode("",!0)}const _n=H(m1,[["render",X1],["__scopeId","data-v-a3067d5a"]]),z1={name:"UploadTargetInfo",computed:{...$.mapState(xe,["currentNode","workspace"])}},A1={class:"overlay-content"},M1={class:"text-xl font-bold"},O1={class:"mt-2 text-color-secondary"};function j1(l,t,a,i,o,s){return e.openBlock(),e.createElementBlock("div",A1,[t[0]||(t[0]=e.createElementVNode("i",{class:"ri-upload-cloud-line text-8xl","aria-hidden":"true"},null,-1)),e.createElementVNode("span",M1,e.toDisplayString(l.$t("dropFileFolders")),1),e.createElementVNode("div",O1,e.toDisplayString(l.currentNode?.name==="documentLibrary"?l.workspace?.title||l.workspace?.id:l.currentNode?.name||l.$t("currentFolder")),1)])}const Kn=H(z1,[["render",j1],["__scopeId","data-v-b32d0624"]]),G1={name:"FolderUpload",data(){return{isDraggingOver:!1}},emits:["close"],methods:{...$.mapActions(el,["startUpload"]),closePopup(){this.$emit("close",!1)},handleFolderSelect(l){const a=Array.from(l.target.files).map(i=>({file:i,relativePath:i.webkitRelativePath}));this.processFiles(a)},processFiles(l){const t=xe().currentNode.id;this.startUpload(l,t),this.closePopup()},async handleDrop(l){this.isDraggingOver=!1;const t=l.dataTransfer.items,a=[],i=[],o=async s=>{if(s.isFile)return new Promise(n=>s.file(c=>{const r=s.fullPath.startsWith("/")?s.fullPath.substring(1):s.fullPath;a.push({file:c,relativePath:r}),n()}));if(s.isDirectory){const n=s.createReader();return new Promise(c=>{const r=async()=>{const m=await new Promise(h=>n.readEntries(h));if(m.length>0){for(const h of m)await o(h);await r()}c()};r()})}};for(const s of t){const n=s.webkitGetAsEntry();n&&i.push(o(n))}await Promise.all(i),a.length>0&&this.processFiles(a)},triggerFileInput(){this.$refs.fileInput.click()},handleDragOver(){this.isDraggingOver=!0},handleDragLeave(){this.isDraggingOver=!1}}},T1={class:"p-4 max-w-xl mx-auto p-fileupload p-fileupload-advanced p-component"},w1={class:"p-fileupload-buttonbar"};function I1(l,t,a,i,o,s){const n=e.resolveComponent("Button");return e.openBlock(),e.createElementBlock("div",T1,[e.createElementVNode("div",w1,[e.createVNode(n,{class:"w-full",label:l.$t("selectFolder"),onClick:s.triggerFileInput},null,8,["label","onClick"])]),e.createElementVNode("div",{class:e.normalizeClass(["drop-zone p-fileupload-content",{"p-fileupload-highlight":o.isDraggingOver}]),onDragover:t[0]||(t[0]=e.withModifiers((...c)=>s.handleDragOver&&s.handleDragOver(...c),["prevent"])),onDragleave:t[1]||(t[1]=e.withModifiers((...c)=>s.handleDragLeave&&s.handleDragLeave(...c),["prevent"])),onDrop:t[2]||(t[2]=e.withModifiers(c=>s.handleDrop(c),["prevent"]))},[e.createElementVNode("p",null,e.toDisplayString(l.$t("dropFolder")),1)],34),e.createElementVNode("input",{type:"file",webkitdirectory:"",onChange:t[3]||(t[3]=c=>s.handleFolderSelect(c)),ref:"fileInput",class:"hidden"},null,544)])}const Yo=H(G1,[["render",I1],["__scopeId","data-v-f2b573ce"]]),f1={name:"ImportPopupWithWorker",components:{FolderUpload:Yo},props:{node:{type:Object,required:!0},importType:{type:String,default:"file"},forcedPlanName:{type:String,default:null}},emits:["close","upload-with-plan"],computed:{...$.mapState(el,["isUploading"])},methods:{...$.mapActions(el,["startUpload"]),closePopup(){this.$emit("close",!1)},handleUpload(l){const t=l.files;if(!t||t.length===0)return;if(this.forcedPlanName){const i=t.map(o=>new File([o],o.name,{type:o.type}));this.$emit("upload-with-plan",{files:i,planName:this.forcedPlanName}),this.closePopup();return}const a=t.map(i=>({file:new File([i],i.name,{type:i.type}),relativePath:""}));this.startUpload(a,this.node.id),this.closePopup()}}},v1={key:0},L1={key:1};function D1(l,t,a,i,o,s){const n=e.resolveComponent("Button"),c=e.resolveComponent("FileUpload"),r=e.resolveComponent("FolderUpload"),m=e.resolveComponent("Dialog");return e.openBlock(),e.createBlock(m,{"data-testid":"import-popup-with-worker",header:l.$t("importElement"),visible:"",modal:"",onKeyup:e.withKeys(s.closePopup,["esc"]),class:"popup"},{closeicon:e.withCtx(()=>[e.createVNode(n,{"data-testid":"import-popup-with-worker-close-button",icon:"ri-close-line","aria-label":l.$t("close"),onClick:s.closePopup,outlined:"",text:"",severity:"secondary"},null,8,["aria-label","onClick"])]),footer:e.withCtx(()=>[e.createVNode(n,{"data-testid":"import-popup-with-worker-footer-close-button",label:l.$t("close"),onClick:s.closePopup,severity:"secondary"},null,8,["label","onClick"])]),default:e.withCtx(()=>[a.importType==="file"?(e.openBlock(),e.createElementBlock("div",v1,[e.createVNode(c,{"data-testid":"import-popup-with-worker-file-upload",name:"upload_files",chooseLabel:l.$t("imports.selectFiles"),uploadLabel:l.$t("send"),cancelLabel:l.$t("cancel"),onUploader:s.handleUpload,customUpload:"",multiple:"",maxFileSize:2147483648,disabled:l.isUploading},{empty:e.withCtx(()=>[e.createElementVNode("p",null,e.toDisplayString(l.$t("dragAndDrop")),1)]),_:1},8,["chooseLabel","uploadLabel","cancelLabel","onUploader","disabled"])])):a.importType==="folder"?(e.openBlock(),e.createElementBlock("div",L1,[e.createVNode(r,{"data-testid":"import-popup-with-worker-folder-upload",onClose:s.closePopup},null,8,["onClose"])])):e.createCommentVNode("",!0)]),_:1},8,["header","onKeyup"])}const $n=H(f1,[["render",D1]]);class R1{getConfig(t,a){const i=`fr/jeci/pristy/config/${t}/${a}`;return Wl.executeWebScript("GET",i)}updateConfig(t,a,i){const o=`fr/jeci/pristy/config/${t}/${a}`;return Wl.executeWebScript("PUT",o,null,null,null,i)}validateValueByType(t,a){if(a==="number"&&(isNaN(parseFloat(t))||!isFinite(t)))return this.$t("config.errors.invalidNumber");if(a==="boolean"){const i=String(t).toLowerCase();if(i!=="true"&&i!=="false")return this.$t("config.errors.invalidBoolean")}if(a==="array"||a==="object")try{const i=JSON.parse(t),o=Array.isArray(i)?"array":typeof i;if(a==="array"&&o!=="array"||a==="object"&&o!=="object")return this.$t("config.errors.typeMismatch",{type:a})}catch{return null}return null}}const Vt=new R1,k1={name:"AddPairInConfigDialog",components:{PrimeDialog:ke,PrimeButton:w,PrimeInputText:Me,PrimeDropdown:gt},props:{visible:{type:Boolean,default:!1},existingKeys:{type:Array,default:()=>[]}},emits:["update:visible","add-pair"],data(){return{newKey:"",newValue:"",newType:"string",availableTypes:["string","number","boolean","array","object"],errors:{key:null,value:null}}},watch:{visible(l){l&&this.resetForm()}},methods:{resetForm(){this.newKey="",this.newValue="",this.newType="string",this.errors={key:null,value:null}},submit(){this.errors={key:null,value:null};let l=!0;this.newKey.trim()?this.existingKeys.includes(this.newKey.trim())&&(this.errors.key=this.$t("config.errors.keyDuplicate"),l=!1):(this.errors.key=this.$t("config.errors.keyRequired"),l=!1);const t=Vt.validateValueByType(this.newValue,this.newType);t&&(this.errors.value=t,l=!1),l&&(this.$emit("add-pair",{key:this.newKey,value:this.newValue,type:this.newType}),this.$emit("update:visible",!1))}}},C1={class:"field"},F1={for:"newKey"},V1={key:0,class:"p-error"},x1={class:"field"},S1={for:"newType"},J1={class:"field"},U1={for:"newValue"},H1={key:0,class:"p-error"};function Q1(l,t,a,i,o,s){const n=e.resolveComponent("PrimeInputText"),c=e.resolveComponent("PrimeDropdown"),r=e.resolveComponent("PrimeButton"),m=e.resolveComponent("PrimeDialog");return e.openBlock(),e.createBlock(m,{header:l.$t("config.dialog.addTitle"),visible:a.visible,"onUpdate:visible":t[4]||(t[4]=h=>l.$emit("update:visible",h)),modal:"",class:"dialog-add-pair"},{footer:e.withCtx(()=>[e.createVNode(r,{label:l.$t("config.buttons.cancel"),icon:"pi pi-times",class:"p-button-text",onClick:t[3]||(t[3]=h=>l.$emit("update:visible",!1))},null,8,["label"]),e.createVNode(r,{label:l.$t("config.buttons.add"),icon:"pi pi-check",onClick:s.submit,autofocus:""},null,8,["label","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("div",C1,[e.createElementVNode("label",F1,e.toDisplayString(l.$t("config.dialog.keyLabel")),1),e.createVNode(n,{id:"newKey",modelValue:o.newKey,"onUpdate:modelValue":t[0]||(t[0]=h=>o.newKey=h),class:e.normalizeClass(["w-full",{"p-invalid":o.errors.key}])},null,8,["modelValue","class"]),o.errors.key?(e.openBlock(),e.createElementBlock("small",V1,e.toDisplayString(o.errors.key),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",x1,[e.createElementVNode("label",S1,e.toDisplayString(l.$t("config.dialog.typeLabel")),1),e.createVNode(c,{id:"newType",modelValue:o.newType,"onUpdate:modelValue":t[1]||(t[1]=h=>o.newType=h),options:o.availableTypes,class:"w-full"},null,8,["modelValue","options"])]),e.createElementVNode("div",J1,[e.createElementVNode("label",U1,e.toDisplayString(l.$t("config.dialog.valueLabel")),1),e.createVNode(n,{id:"newValue",modelValue:o.newValue,"onUpdate:modelValue":t[2]||(t[2]=h=>o.newValue=h),class:e.normalizeClass(["w-full",{"p-invalid":o.errors.value}])},null,8,["modelValue","class"]),o.errors.value?(e.openBlock(),e.createElementBlock("small",H1,e.toDisplayString(o.errors.value),1)):e.createCommentVNode("",!0)])]),_:1},8,["header","visible"])}const qn=H(k1,[["render",Q1]]),B1={class:"array-editor"},E1=["aria-label"],P1={key:1,class:"object-item"},_1={key:0},K1={key:0},$1={key:1,class:"object-summary"},q1={class:"summary-item"},eu={key:0,class:"summary-item"},tu={key:1,class:"summary-item"},lu={class:"summary-item"},au={key:1},ou={class:"action-buttons"},Wa=H({__name:"ArrayEditor",props:{modelValue:{type:Array,required:!0},isMetadata:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(l,{emit:t}){const a=l,i=t,o=e.ref(JSON.parse(JSON.stringify(a.modelValue))),s=["text","datetime","boolean","double","int","date"],n=["popup","details","advancedSearch"],c=e.ref(null),r={id:"",title:"",labelId:"",display:[],input:"text",readOnly:!1,modelAspect:"",modelType:""};e.watch(()=>a.modelValue,I=>{o.value=JSON.parse(JSON.stringify(I))},{deep:!0});const m=I=>{const D=typeof I;return D==="string"||D==="number"||D==="boolean"},h=I=>typeof I=="object"&&I!==null,u=(I,D)=>{o.value[I]=D,i("update:modelValue",o.value)},b=(I,D,K)=>{o.value[I][D]=K,i("update:modelValue",o.value)},y=I=>{o.value.splice(I,1),i("update:modelValue",o.value)},g=()=>{if(a.isMetadata){const I={...r,order:o.value.length+1};o.value.push(I)}else if(o.value.length>0){const I=o.value[0],D=typeof I;D==="string"?o.value.push(""):D==="number"?o.value.push(0):D==="object"&&I!==null?o.value.push(JSON.parse(JSON.stringify(I))):o.value.push("")}else o.value.push("");i("update:modelValue",o.value)},X=I=>{const D=o.value[I];o.value[I]={...r,...D},c.value=I},M=()=>{c.value=null,i("update:modelValue",o.value)},A=I=>{const D=JSON.parse(JSON.stringify(o.value[I]));o.value.splice(I+1,0,D),o.value.forEach((K,x)=>{h(K)&&Object.prototype.hasOwnProperty.call(K,"order")&&(K.order=x+1)}),i("update:modelValue",o.value)},F=(I,D)=>{const K=I+D;if(K<0||K>=o.value.length)return;const x=o.value.splice(I,1)[0];o.value.splice(K,0,x),o.value.forEach((C,f)=>{h(C)&&Object.prototype.hasOwnProperty.call(C,"order")&&(C.order=f+1)}),i("update:modelValue",o.value)},U=()=>{o.value.forEach((I,D)=>{h(I)&&Object.prototype.hasOwnProperty.call(I,"order")&&(I.order=D+1)}),i("update:modelValue",o.value)},j=I=>{if(!a.isMetadata)return"transparent";const D=I.modelAspect||I.modelType;if(!D)return"transparent";let K=0;for(let C=0;C<D.length;C++)K=D.charCodeAt(C)+((K<<5)-K);return`hsl(${K%360}, 70%, 90%)`};return(I,D)=>(e.openBlock(),e.createElementBlock("div",B1,[e.createVNode(e.unref(Ko.VueDraggableNext),{modelValue:o.value,"onUpdate:modelValue":D[1]||(D[1]=K=>o.value=K),"ghost-class":"ghost",handle:".drag-handle","item-key":"index",onEnd:U},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(K,x)=>(e.openBlock(),e.createElementBlock("div",{key:x,class:"array-item",style:e.normalizeStyle({backgroundColor:j(K)})},[e.createElementVNode("button",{class:"drag-handle","aria-label":I.$t("config.arrayEditor.reorder")},[...D[2]||(D[2]=[e.createElementVNode("i",{class:"ri-draggable","aria-hidden":"true"},null,-1)])],8,E1),m(K)?(e.openBlock(),e.createBlock(e.unref(Me),{key:0,"model-value":K,"onUpdate:modelValue":C=>u(x,C),class:"p-inputtext-sm"},null,8,["model-value","onUpdate:modelValue"])):(e.openBlock(),e.createElementBlock("div",P1,[l.isMetadata?(e.openBlock(),e.createElementBlock("div",_1,[c.value===x?(e.openBlock(),e.createElementBlock("div",K1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(r),C=>(e.openBlock(),e.createElementBlock("div",{key:C,class:"object-property"},[e.createElementVNode("label",null,e.toDisplayString(C),1),C==="input"?(e.openBlock(),e.createBlock(e.unref(gt),{key:0,"model-value":K[C],"onUpdate:modelValue":f=>b(x,C,f),options:s,class:"p-inputtext-sm"},null,8,["model-value","onUpdate:modelValue"])):C==="display"?(e.openBlock(),e.createBlock(e.unref(Vc),{key:1,"model-value":K[C],"onUpdate:modelValue":f=>b(x,C,f),options:n,class:"p-inputtext-sm"},null,8,["model-value","onUpdate:modelValue"])):C==="readOnly"?(e.openBlock(),e.createBlock(e.unref(Ca),{key:2,"model-value":K[C],"onUpdate:modelValue":f=>b(x,C,f)},null,8,["model-value","onUpdate:modelValue"])):(e.openBlock(),e.createBlock(e.unref(Me),{key:3,"model-value":K[C],"onUpdate:modelValue":f=>b(x,C,f),class:"p-inputtext-sm"},null,8,["model-value","onUpdate:modelValue"]))]))),128))])):(e.openBlock(),e.createElementBlock("div",$1,[e.createElementVNode("div",q1,[D[3]||(D[3]=e.createElementVNode("strong",null,"ID:",-1)),e.createTextVNode(" "+e.toDisplayString(K.id),1)]),K.title?(e.openBlock(),e.createElementBlock("div",eu,[D[4]||(D[4]=e.createElementVNode("strong",null,"Title:",-1)),e.createTextVNode(" "+e.toDisplayString(K.title),1)])):e.createCommentVNode("",!0),K.labelId?(e.openBlock(),e.createElementBlock("div",tu,[D[5]||(D[5]=e.createElementVNode("strong",null,"Label ID:",-1)),e.createTextVNode(" "+e.toDisplayString(K.labelId),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",lu,[D[6]||(D[6]=e.createElementVNode("strong",null,"Input:",-1)),e.createTextVNode(" "+e.toDisplayString(K.input),1)])]))])):(e.openBlock(),e.createElementBlock("div",au,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(K,(C,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"object-property"},[e.createElementVNode("label",null,e.toDisplayString(f),1),e.createVNode(e.unref(Me),{"model-value":C,"onUpdate:modelValue":R=>b(x,f,R),class:"p-inputtext-sm"},null,8,["model-value","onUpdate:modelValue"])]))),128))]))])),e.createElementVNode("div",ou,[l.isMetadata&&c.value!==x?(e.openBlock(),e.createBlock(e.unref(w),{key:0,icon:"ri-pencil-line","aria-label":I.$t("modify"),class:"p-button-secondary p-button-sm",onClick:C=>X(x)},null,8,["aria-label","onClick"])):e.createCommentVNode("",!0),l.isMetadata&&c.value===x?(e.openBlock(),e.createBlock(e.unref(w),{key:1,icon:"ri-check-line","aria-label":I.$t("save"),class:"p-button-success p-button-sm",onClick:D[0]||(D[0]=C=>M())},null,8,["aria-label"])):e.createCommentVNode("",!0),l.isMetadata?(e.openBlock(),e.createBlock(e.unref(w),{key:2,icon:"ri-arrow-up-line","aria-label":I.$t("moveUp"),class:"p-button-secondary p-button-sm",onClick:C=>F(x,-1),disabled:x===0},null,8,["aria-label","onClick","disabled"])):e.createCommentVNode("",!0),l.isMetadata?(e.openBlock(),e.createBlock(e.unref(w),{key:3,icon:"ri-arrow-down-line","aria-label":I.$t("moveDown"),class:"p-button-secondary p-button-sm",onClick:C=>F(x,1),disabled:x===o.value.length-1},null,8,["aria-label","onClick","disabled"])):e.createCommentVNode("",!0),l.isMetadata?(e.openBlock(),e.createBlock(e.unref(w),{key:4,icon:"ri-file-copy-line","aria-label":I.$t("duplicate"),class:"p-button-secondary p-button-sm",onClick:C=>A(x)},null,8,["aria-label","onClick"])):e.createCommentVNode("",!0),e.createVNode(e.unref(w),{icon:"ri-delete-bin-line","aria-label":I.$t("delete"),class:"p-button-danger p-button-sm",onClick:C=>y(x)},null,8,["aria-label","onClick"])])],4))),128))]),_:1},8,["modelValue"]),e.createVNode(e.unref(w),{label:I.$t("config.arrayEditor.addItem"),icon:"ri-add-line",class:"p-button-sm p-button-secondary mt-2",onClick:g},null,8,["label"])]))}},[["__scopeId","data-v-63991436"]]),su={class:"config-cards-container"},iu={class:"card-title-wrapper"},nu={class:"type-badge ml-2"},cu={class:"title-buttons"},ru={key:0,class:"description"},du={key:1,class:"undefined-container"},bu={class:"help-text"},mu={key:2,class:"editor-container"},pu={key:3},ec=H({__name:"ConfigDatatable",props:{configData:{type:Array,required:!0},loading:{type:Boolean,default:!1},descriptions:{type:Object,default:()=>({})}},emits:["update:config"],setup(l,{emit:t}){const a=l,i=t,o=e.ref(a.configData.reduce((h,u)=>(u.type==="array"&&(h[u.key]=!1),h),{})),s=h=>{o.value[h]=!o.value[h]},n=(h,u)=>{const b=a.configData.map(y=>y.key===h?{...y,value:u}:y);i("update:config",b)},c=h=>{const u=a.configData.map(b=>b.key===h?{...b,isDefined:!0}:b);i("update:config",u)},r=h=>{const u=a.configData.map(b=>{if(b.key===h){const y=a.descriptions[h]?.default;return{...b,isDefined:!1,value:y}}return b});i("update:config",u)},m=e.computed(()=>[...a.configData].sort((h,u)=>h.key.localeCompare(u.key)));return(h,u)=>(e.openBlock(),e.createElementBlock("div",su,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,b=>(e.openBlock(),e.createBlock(e.unref(_o),{key:b.key,class:"config-card"},{title:e.withCtx(()=>[e.createElementVNode("div",iu,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(b.key)+" ",1),e.createElementVNode("small",nu,e.toDisplayString(h.$t(`config.types.${b.type}`)),1)]),e.createElementVNode("div",cu,[b.type==="array"&&b.isDefined?(e.openBlock(),e.createBlock(e.unref(w),{key:0,icon:o.value[b.key]?"ri-close-large-line":"ri-add-large-line",class:"p-button-text p-button","aria-label":o.value[b.key]?h.$t("config.buttons.collapse"):h.$t("config.buttons.expand"),onClick:y=>s(b.key)},null,8,["icon","aria-label","onClick"])):e.createCommentVNode("",!0),b.isDefined?(e.openBlock(),e.createBlock(e.unref(w),{key:1,icon:"ri-delete-bin-line",severity:"danger","aria-label":h.$t("config.buttons.undefine"),class:"p-button-sm",onClick:y=>r(b.key)},null,8,["aria-label","onClick"])):e.createCommentVNode("",!0)])])]),content:e.withCtx(()=>[l.descriptions[b.key]?.descriptionKey?(e.openBlock(),e.createElementBlock("p",ru,e.toDisplayString(h.$t(l.descriptions[b.key].descriptionKey)),1)):e.createCommentVNode("",!0),b.isDefined?e.withDirectives((e.openBlock(),e.createElementBlock("div",mu,[b.type==="boolean"?(e.openBlock(),e.createBlock(e.unref(Ca),{key:0,"model-value":b.value,"onUpdate:modelValue":y=>n(b.key,y)},null,8,["model-value","onUpdate:modelValue"])):b.type==="array"?(e.openBlock(),e.createBlock(Wa,{key:1,"is-metadata":b.key==="METADATA","model-value":b.value,"onUpdate:modelValue":y=>n(b.key,y)},null,8,["is-metadata","model-value","onUpdate:modelValue"])):b.type==="string"||b.type==="number"?(e.openBlock(),e.createBlock(e.unref(Me),{key:2,"model-value":b.value,class:"w-full","onUpdate:modelValue":y=>n(b.key,y)},null,8,["model-value","onUpdate:modelValue"])):b.type==="object"?(e.openBlock(),e.createElementBlock("pre",pu,e.toDisplayString(b.value),1)):e.createCommentVNode("",!0)],512)),[[e.vShow,b.type!=="array"||o.value[b.key]]]):(e.openBlock(),e.createElementBlock("div",du,[e.createVNode(e.unref(w),{label:h.$t("config.buttons.define"),icon:"ri-add-line",class:"p-button-outlined",onClick:y=>c(b.key)},null,8,["label","onClick"]),e.createElementVNode("small",bu,e.toDisplayString(h.$t("config.notDefined")),1)]))]),_:2},1024))),128))]))}},[["__scopeId","data-v-810371d5"]]),uu={class:"config-item-editor"},Zu={class:"editor-header"},hu={class:"config-key"},yu={class:"type-badge"},Wu={key:0,class:"config-description"},gu={class:"definition-actions"},Yu={key:0,class:"undefined-container"},Nu={class:"help-text"},Xu={key:1,class:"defined-actions"},zu={key:1,class:"editor-content"},Au={key:0,class:"editor-field"},Mu={key:1,class:"editor-field"},Ou={key:2,class:"editor-field"},ju={key:3,class:"editor-field editor-field-array"},Gu={key:4,class:"editor-field"},Tu={class:"object-display"},wu={key:2,class:"default-hint"},No=H({__name:"ConfigItemEditor",props:{item:{type:Object,required:!0},description:{type:Object,default:()=>({})}},emits:["update:value","define","undefine"],setup(l,{emit:t}){const a=t,i=c=>{a("update:value",c)},o=()=>{a("define")},s=()=>{a("undefine")},n=c=>typeof c=="object"?JSON.stringify(c):String(c);return(c,r)=>(e.openBlock(),e.createElementBlock("div",uu,[e.createElementVNode("div",Zu,[e.createElementVNode("h3",hu,e.toDisplayString(l.item.key),1),e.createElementVNode("span",yu,e.toDisplayString(c.$t(`config.types.${l.item.type}`)),1)]),l.description?.descriptionKey?(e.openBlock(),e.createElementBlock("p",Wu,e.toDisplayString(c.$t(l.description.descriptionKey)),1)):e.createCommentVNode("",!0),e.createElementVNode("div",gu,[l.item.isDefined?(e.openBlock(),e.createElementBlock("div",Xu,[e.createVNode(e.unref(w),{label:c.$t("config.buttons.undefine"),icon:"ri-delete-bin-line",severity:"danger",class:"p-button-outlined p-button-sm",onClick:s},null,8,["label"])])):(e.openBlock(),e.createElementBlock("div",Yu,[e.createVNode(e.unref(w),{label:c.$t("config.buttons.define"),icon:"ri-add-line",class:"p-button-outlined",onClick:o},null,8,["label"]),e.createElementVNode("small",Nu,e.toDisplayString(c.$t("config.notDefined")),1)]))]),l.item.isDefined?(e.openBlock(),e.createElementBlock("div",zu,[l.item.type==="boolean"?(e.openBlock(),e.createElementBlock("div",Au,[e.createElementVNode("label",null,e.toDisplayString(c.$t("config.table.valueHeader")),1),e.createVNode(e.unref(Ca),{"model-value":l.item.value,"onUpdate:modelValue":i},null,8,["model-value"])])):l.item.type==="string"?(e.openBlock(),e.createElementBlock("div",Mu,[e.createElementVNode("label",null,e.toDisplayString(c.$t("config.table.valueHeader")),1),e.createVNode(e.unref(Me),{"model-value":l.item.value,class:"w-full","onUpdate:modelValue":i},null,8,["model-value"])])):l.item.type==="number"?(e.openBlock(),e.createElementBlock("div",Ou,[e.createElementVNode("label",null,e.toDisplayString(c.$t("config.table.valueHeader")),1),e.createVNode(e.unref(pl),{"model-value":l.item.value,class:"w-full","onUpdate:modelValue":i},null,8,["model-value"])])):l.item.type==="array"?(e.openBlock(),e.createElementBlock("div",ju,[e.createElementVNode("label",null,e.toDisplayString(c.$t("config.table.valueHeader")),1),e.createVNode(Wa,{"is-metadata":l.item.key==="METADATA","model-value":l.item.value,"onUpdate:modelValue":i},null,8,["is-metadata","model-value"])])):l.item.type==="object"?(e.openBlock(),e.createElementBlock("div",Gu,[e.createElementVNode("label",null,e.toDisplayString(c.$t("config.table.valueHeader")),1),e.createElementVNode("pre",Tu,e.toDisplayString(JSON.stringify(l.item.value,null,2)),1)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.description?.default!==void 0?(e.openBlock(),e.createElementBlock("div",wu,[r[0]||(r[0]=e.createElementVNode("i",{class:"ri-information-line","aria-hidden":"true"},null,-1)),e.createElementVNode("span",null,e.toDisplayString(c.$t("config.splitView.defaultValue"))+": ",1),e.createElementVNode("code",null,e.toDisplayString(n(l.description.default)),1)])):e.createCommentVNode("",!0)]))}},[["__scopeId","data-v-d0939289"]]),Iu={class:"config-split-view"},fu={class:"config-list-panel"},vu={class:"filter-container"},Lu={class:"p-input-icon-left w-full"},Du={class:"config-groups"},Ru=["onClick"],ku={class:"group-label"},Cu={class:"group-count"},Fu={class:"group-items"},Vu=["onClick"],xu={class:"item-key"},Su=["title"],Ju={key:0,class:"empty-state"},Uu={class:"config-editor-panel"},Hu={key:0,class:"editor-wrapper"},Qu={key:1,class:"empty-editor"},tc=H({__name:"ConfigSplitView",props:{configData:{type:Array,required:!0},descriptions:{type:Object,default:()=>({})},loading:{type:Boolean,default:!1}},emits:["update:config"],setup(l,{emit:t}){const{t:a}=Pt.useI18n(),i=l,o=t,s=e.ref(""),n=e.ref(null),c=e.ref({}),r={display:{id:"display",label:"config.groups.display",prefixes:["THEME","APP_ROOT","SHOW_","PRIMEVUE","BREADCRUMB","EDIT_","OPEN_"]},matomo:{id:"matomo",label:"config.groups.matomo",prefixes:["MATOMO_"]},sentry:{id:"sentry",label:"config.groups.sentry",prefixes:["SENTRY_"]},chat:{id:"chat",label:"config.groups.chat",prefixes:["CHAT_","ROCKETCHAT_"]},search:{id:"search",label:"config.groups.search",prefixes:["SEARCH_"]},pagination:{id:"pagination",label:"config.groups.pagination",prefixes:["DEFAULT_ELEMENT","ROW_PER_PAGE"]},metadata:{id:"metadata",label:"config.groups.metadata",keys:["METADATA","ASPECTS","CONSTRAINTS","ALLOWED_FILE_EXTENSIONS"]},security:{id:"security",label:"config.groups.security",keys:["NEW_PASSWORD_RULES"]},other:{id:"other",label:"config.groups.other"}},m=A=>{for(const[F,U]of Object.entries(r))if(F!=="other"){if(U.keys&&U.keys.includes(A))return F;if(U.prefixes){for(const j of U.prefixes)if(A.startsWith(j))return F}}return"other"},h=e.computed(()=>{const A=s.value.toLowerCase().trim(),F={};for(const j of Object.keys(r))F[j]=[];for(const j of i.configData){if(A){const D=j.key.toLowerCase().includes(A),K=i.descriptions[j.key]?.descriptionKey,x=K?a(K).toLowerCase().includes(A):!1;if(!D&&!x)continue}const I=m(j.key);F[I].push(j)}for(const j of Object.keys(F))F[j].sort((I,D)=>I.key.localeCompare(D.key));const U=[];for(const[j,I]of Object.entries(r))F[j].length>0&&U.push({id:j,label:I.label,items:F[j]});return U}),u=e.computed(()=>n.value?i.configData.find(A=>A.key===n.value):null),b=A=>{c.value[A]=!c.value[A]},y=A=>{n.value=A},g=A=>{if(!n.value)return;const F=i.configData.map(U=>U.key===n.value?{...U,value:A}:U);o("update:config",F)},X=()=>{if(!n.value)return;const A=i.configData.map(F=>F.key===n.value?{...F,isDefined:!0}:F);o("update:config",A)},M=()=>{if(!n.value)return;const A=i.configData.map(F=>{if(F.key===n.value){const U=i.descriptions[F.key]?.default;return{...F,isDefined:!1,value:U}}return F});o("update:config",A)};return e.watch(()=>i.configData,()=>{!n.value&&i.configData.length>0&&h.value.length>0&&h.value[0].items.length>0&&(n.value=h.value[0].items[0].key)},{immediate:!0}),(A,F)=>(e.openBlock(),e.createElementBlock("div",Iu,[e.createElementVNode("div",fu,[e.createElementVNode("div",vu,[e.createElementVNode("span",Lu,[F[1]||(F[1]=e.createElementVNode("i",{class:"ri-search-line","aria-hidden":"true"},null,-1)),e.createVNode(e.unref(Me),{modelValue:s.value,"onUpdate:modelValue":F[0]||(F[0]=U=>s.value=U),placeholder:A.$t("config.splitView.filterPlaceholder"),class:"w-full"},null,8,["modelValue","placeholder"])])]),e.createElementVNode("div",Du,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,U=>(e.openBlock(),e.createElementBlock("div",{key:U.id,class:"config-group"},[e.createElementVNode("div",{class:"group-header",onClick:j=>b(U.id)},[e.createElementVNode("i",{class:e.normalizeClass(c.value[U.id]?"ri-arrow-right-s-line":"ri-arrow-down-s-line"),"aria-hidden":"true"},null,2),e.createElementVNode("span",ku,e.toDisplayString(A.$t(U.label)),1),e.createElementVNode("span",Cu,e.toDisplayString(U.items.length),1)],8,Ru),e.withDirectives(e.createElementVNode("div",Fu,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.items,j=>(e.openBlock(),e.createElementBlock("div",{key:j.key,class:e.normalizeClass(["config-list-item",{"is-selected":n.value===j.key,"is-undefined":!j.isDefined}]),onClick:I=>y(j.key)},[e.createElementVNode("span",xu,e.toDisplayString(j.key),1),j.isDefined?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("i",{key:0,class:"ri-checkbox-blank-circle-line undefined-indicator",title:A.$t("config.notDefined"),"aria-hidden":"true"},null,8,Su))],10,Vu))),128))],512),[[e.vShow,!c.value[U.id]]])]))),128)),h.value.length===0?(e.openBlock(),e.createElementBlock("div",Ju,[F[2]||(F[2]=e.createElementVNode("i",{class:"ri-search-line","aria-hidden":"true"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(A.$t("config.splitView.noResults")),1)])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Uu,[u.value?(e.openBlock(),e.createElementBlock("div",Hu,[e.createVNode(No,{item:u.value,description:l.descriptions[u.value.key],"onUpdate:value":g,onDefine:X,onUndefine:M},null,8,["item","description"])])):(e.openBlock(),e.createElementBlock("div",Qu,[F[3]||(F[3]=e.createElementVNode("i",{class:"ri-settings-3-line","aria-hidden":"true"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(A.$t("config.splitView.selectConfig")),1)]))])]))}},[["__scopeId","data-v-133e21d4"]]),Bu={name:"ConfigUpload",components:{PrimeFileUpload:aa},props:{loading:{type:Boolean,default:!1}},emits:["upload-config"],methods:{handleFileUpload(l){const t=l.files[0];if(!t)return;const a=new FileReader;a.onload=i=>{try{const o=JSON.parse(i.target.result);this.$emit("upload-config",o)}catch{this.$toast.add({severity:"error",summary:"Fichier Invalide",detail:this.$t("config.errors.invalidJsonFile"),life:4e3})}},a.onerror=i=>{console.error("handle file upload error",i)},a.readAsText(t)}}},Eu={class:"p-3"},Pu={class:"mt-0 mb-3 text-color-secondary"},_u={class:"mt-2 block"};function Ku(l,t,a,i,o,s){const n=e.resolveComponent("PrimeFileUpload");return e.openBlock(),e.createElementBlock("div",Eu,[e.createElementVNode("p",Pu,e.toDisplayString(l.$t("config.raw.uploadDescription")),1),e.createVNode(n,{mode:"basic",name:"configfile[]",accept:".json",maxFileSize:1e6,customUpload:"",onUploader:s.handleFileUpload,chooseLabel:l.$t("config.raw.uploadButton"),auto:"",loading:a.loading,class:"p-button-danger w-full"},null,8,["onUploader","chooseLabel","loading"]),e.createElementVNode("small",_u,e.toDisplayString(l.$t("config.raw.uploadWarning")),1)])}const lc=H(Bu,[["render",Ku]]),$u={name:"ListVersionConfig",components:{PrimeButton:w,PrimeCard:_o,PrimeTextarea:ul,PrimeProgressSpinner:bt},props:{currentNode:{type:Object,required:!0},versions:{type:Array,default:()=>[]},title:{type:String,default:""}},emits:["reload"],data(){return{selectedVersion:null,selectedVersionContent:"",isContentLoading:!1}},methods:{async selectVersion(l){if(!(this.selectedVersion&&this.selectedVersion.id===l.id)){this.selectedVersion=l,this.isContentLoading=!0,this.selectedVersionContent="";try{const a=await(await this.getContent(this.currentNode.id,l.id)).text(),i=JSON.parse(a);this.selectedVersionContent=JSON.stringify(i,null,2)}catch{this.selectedVersionContent=this.$t("config.versionViewer.loadError")}finally{this.isContentLoading=!1}}},download(l){this.getContent(this.currentNode.id,l.id,!1).then(t=>{const i=this.currentNode.name.split("."),o=i.pop(),s=i.join("."),n=document.createElement("a"),c=l.id.replace(".","-");n.href=URL.createObjectURL(t),n.download=`${s}_v${c}.${o}`,n.click()})},revert(l){if(!this.versions||this.versions.length===0){console.error("Le tableau des versions est vide.");return}if(this.versions[0].entry.id===l.id){this.$toast.add({severity:"warn",summary:this.$t("error"),detail:this.$t("config.versionViewer.cannotRevertLatest"),life:3e3});return}const a=this.$t("config.versionViewer.restoredVersionComment",{versionNumber:l.id});V.revertVersion(this.currentNode.id,l.id,a).then(()=>{this.$emit("reload"),this.$toast.add({severity:"success",summary:this.$t("success"),detail:this.$t("config.versionViewer.success"),life:3e3})}).catch(i=>{console.error(i),this.$toast.add({severity:"error",summary:this.$t("error"),detail:i.message||this.$t("config.versionViewer.error"),life:3e3})})},getContent(l,t){return V.getVersionContent(l,t).catch(a=>(this.$toast.add({severity:"error",summary:this.$t("error"),detail:a.message||this.$t("config.versionViewer.genericError"),life:3e3}),Promise.reject(a)))},toLocaleDateString(l){if(!l)return"";let t=new Date(l);return new Intl.DateTimeFormat("fr-FR",{dateStyle:"medium"}).format(t)},toLocaleTimeString(l){return l?new Date(l).toLocaleTimeString("fr-FR",{hour:"2-digit",minute:"2-digit",hour12:!1}):""}}},qu={key:0,class:"block text-600 font-medium mb-3"},eZ={class:"grid"},tZ={class:"col-12 md:col-5"},lZ={class:"p-0 mx-0 mt-0 mb-4 list-none version-list-container"},aZ=["onClick"],oZ={class:"w-3rem h-3rem flex align-items-center justify-content-center bg-blue-100 border-circle mr-3 flex-shrink-0"},sZ={class:"text-xl text-blue-500 font-bold"},iZ={class:"text-900 line-height-3 flex-grow-1"},nZ={class:"text-700"},cZ={key:0},rZ={class:"ml-2"},dZ={class:"col-12 md:col-7"},bZ={key:0,class:"flex justify-content-center align-items-center h-full"},mZ={key:1,class:"h-full"},pZ={key:2,class:"text-center text-color-secondary"};function uZ(l,t,a,i,o,s){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeProgressSpinner"),r=e.resolveComponent("PrimeTextarea"),m=e.resolveComponent("PrimeCard"),h=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock("div",null,[a.title?(e.openBlock(),e.createElementBlock("span",qu,e.toDisplayString(a.title.toUpperCase()),1)):e.createCommentVNode("",!0),e.createElementVNode("div",eZ,[e.createElementVNode("div",tZ,[e.createElementVNode("ul",lZ,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.versions,u=>(e.openBlock(),e.createElementBlock("li",{key:u.id,class:e.normalizeClass(["flex align-items-center py-2 border-bottom-1 surface-border version-row",{"active-version":o.selectedVersion&&o.selectedVersion.id===u.entry.id}]),onClick:b=>s.selectVersion(u.entry)},[e.createElementVNode("div",oZ,[e.createElementVNode("span",sZ,e.toDisplayString(u.entry.id),1)]),e.createElementVNode("span",iZ,[e.createTextVNode(e.toDisplayString(s.toLocaleDateString(u.entry.modifiedAt))+" "+e.toDisplayString(l.$t("at"))+" "+e.toDisplayString(s.toLocaleTimeString(u.entry.modifiedAt))+" ",1),e.createElementVNode("span",nZ,[e.createTextVNode(e.toDisplayString(l.$t("by"))+" "+e.toDisplayString(u.entry.modifiedByUser.displayName)+" ",1),t[0]||(t[0]=e.createElementVNode("br",null,null,-1)),u.entry.versionComment?(e.openBlock(),e.createElementBlock("em",cZ,e.toDisplayString(u.entry.versionComment),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",rZ,[e.withDirectives(e.createVNode(n,{type:"button",icon:"ri-download-line","aria-label":l.$t("download"),onClick:e.withModifiers(b=>s.download(u.entry),["stop"]),severity:"secondary",rounded:"",text:""},null,8,["aria-label","onClick"]),[[h,l.$t("download"),void 0,{left:!0}]]),e.withDirectives(e.createVNode(n,{type:"button",icon:"ri-history-line","aria-label":l.$t("restore"),onClick:b=>s.revert(u.entry),severity:"secondary",rounded:"",text:""},null,8,["aria-label","onClick"]),[[h,l.$t("restore"),void 0,{left:!0}]])])],10,aZ))),128))])]),e.createElementVNode("div",dZ,[e.createVNode(m,{class:"h-full"},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.$t("config.versionViewer.title")),1)]),content:e.withCtx(()=>[o.isContentLoading?(e.openBlock(),e.createElementBlock("div",bZ,[e.createVNode(c)])):o.selectedVersionContent?(e.openBlock(),e.createElementBlock("div",mZ,[e.createVNode(r,{"model-value":o.selectedVersionContent,readonly:"",class:"w-full font-mono h-25rem"},null,8,["model-value"])])):(e.openBlock(),e.createElementBlock("div",pZ,[t[1]||(t[1]=e.createElementVNode("i",{class:"ri-arrow-left-s-line ri-2x","aria-hidden":"true"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(l.$t("config.versionViewer.selectPrompt")),1)]))]),_:1})])])])}const ac=H($u,[["render",uZ],["__scopeId","data-v-593c47b8"]]),oc={id:null,property:null,negation:!1,operator:null,value:null,value_end:null},ZZ={name:"AddCriterionPopup",components:{PrimeDialog:ke,PrimeDropdown:gt,PrimeSelectButton:Zl,PrimeInputText:Me,PrimeCalendar:wa,PrimeInputNumber:pl,PrimeButton:w,PrimeDataTable:Dl,PrimeColumn:Rl},props:{visible:Boolean,properties:{type:Array,required:!0}},emits:["update:visible","add-criterion"],data(){return{criterion:{...oc},operatorOptions:{text:[{labelKey:"rechercheAvancee.exact",value:"exact"},{labelKey:"rechercheAvancee.contains",value:"contains"}],date:[{labelKey:"rechercheAvancee.isDate",value:"exact"},{labelKey:"rechercheAvancee.isDateRange",value:"range"}],datetime:[{labelKey:"rechercheAvancee.isDate",value:"exact"},{labelKey:"rechercheAvancee.isDateRange",value:"range"}],number:[{labelKey:"rechercheAvancee.isNumber",value:"exact"},{labelKey:"rechercheAvancee.isNumberRange",value:"range"}],int:[{labelKey:"rechercheAvancee.isNumber",value:"exact"},{labelKey:"rechercheAvancee.isNumberRange",value:"range"}],double:[{labelKey:"rechercheAvancee.isNumber",value:"exact"},{labelKey:"rechercheAvancee.isNumberRange",value:"range"}],boolean:[{labelKey:"rechercheAvancee.is",value:"exact"}]}}},computed:{negationOptions(){return[{label:`${this.$t("rechercheAvancee.mustContain")} (+)`,value:!1},{label:`${this.$t("rechercheAvancee.mustNotContain")} (-)`,value:!0}]},booleanOptions(){return[{label:this.$t("true"),value:!0},{label:this.$t("false"),value:!1}]},isCriterionValid(){return this.criterion.property&&this.criterion.operator&&this.criterion.value!==null&&this.criterion.value!==""},propertyType(){return this.criterion.property?this.criterion.property.input:"text"}},methods:{getOperatorsForCriterion(){const l=this.propertyType;return this.operatorOptions[l]||[]},onPropertyChange(){this.criterion.operator=null,this.criterion.value=null,this.criterion.value_end=null},addCriterion(){const l=this.getOperatorsForCriterion().find(t=>t.value===this.criterion.operator);this.$emit("add-criterion",{...this.criterion,id:Date.now(),operatorLabelKey:l?l.labelKey:this.criterion.operator}),this.criterion={...oc},this.$emit("update:visible",!1)}}},hZ={class:"p-fluid formgrid grid mt-3"},yZ={class:"field col-12"},WZ={key:0,class:"font-semibold"},gZ={key:1,class:"font-semibold"},YZ={class:"text-sm"},NZ={key:0,class:"text-gray-600"},XZ={key:1,class:"text-gray-600"},zZ={class:"field col-12 md:col-6"},AZ={class:"field col-12 md:col-6"},MZ={class:"field col-12"},OZ={class:"flex gap-2"};function jZ(l,t,a,i,o,s){const n=e.resolveComponent("PrimeColumn"),c=e.resolveComponent("PrimeDataTable"),r=e.resolveComponent("PrimeSelectButton"),m=e.resolveComponent("PrimeDropdown"),h=e.resolveComponent("PrimeInputText"),u=e.resolveComponent("PrimeCalendar"),b=e.resolveComponent("PrimeInputNumber"),y=e.resolveComponent("PrimeButton"),g=e.resolveComponent("PrimeDialog");return e.openBlock(),e.createBlock(g,{visible:a.visible,"onUpdate:visible":t[10]||(t[10]=X=>l.$emit("update:visible",X)),modal:"",header:l.$t("rechercheAvancee.addCriterionPopupTitle"),class:"w-full md:w-8"},{footer:e.withCtx(()=>[e.createVNode(y,{label:l.$t("rechercheAvancee.cancelButton"),icon:"ri-close-line",onClick:t[9]||(t[9]=X=>l.$emit("update:visible",!1)),text:""},null,8,["label"]),e.createVNode(y,{label:l.$t("rechercheAvancee.addButton"),icon:"ri-add-line",onClick:s.addCriterion,disabled:!s.isCriterionValid},null,8,["label","onClick","disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",hZ,[e.createElementVNode("div",yZ,[e.createElementVNode("label",null,e.toDisplayString(l.$t("rechercheAvancee.propertyLabel")),1),e.createVNode(c,{selection:o.criterion.property,"onUpdate:selection":t[0]||(t[0]=X=>o.criterion.property=X),value:a.properties,"selection-mode":"single",dataKey:"id",paginator:a.properties.length>12,rows:12,rowsPerPageOptions:[12,24,50],class:"p-datatable-sm",onRowSelect:s.onPropertyChange},{default:e.withCtx(()=>[e.createVNode(n,{field:"name",header:l.$t("rechercheAvancee.propertyName"),sortable:"",class:"col-property-name"},{body:e.withCtx(X=>[X.data.labelId?(e.openBlock(),e.createElementBlock("span",WZ,e.toDisplayString(l.$t(X.data.labelId)),1)):(e.openBlock(),e.createElementBlock("span",gZ,e.toDisplayString(X.data.title),1))]),_:1},8,["header"]),e.createVNode(n,{field:"name",header:l.$t("rechercheAvancee.propertyId"),sortable:"",class:"col-property-id"},{body:e.withCtx(X=>[e.createElementVNode("code",YZ,e.toDisplayString(X.data.id),1)]),_:1},8,["header"]),e.createVNode(n,{field:"modelAspect",header:l.$t("rechercheAvancee.propertyDescription"),class:"col-property-desc"},{body:e.withCtx(X=>[X.data.modelAspect?(e.openBlock(),e.createElementBlock("span",NZ,e.toDisplayString(X.data.modelAspect),1)):(e.openBlock(),e.createElementBlock("span",XZ,e.toDisplayString(X.data.modelType||""),1))]),_:1},8,["header"])]),_:1},8,["selection","value","paginator","onRowSelect"])]),e.createElementVNode("div",zZ,[e.createElementVNode("label",null,e.toDisplayString(l.$t("rechercheAvancee.conditionLabel")),1),e.createVNode(r,{modelValue:o.criterion.negation,"onUpdate:modelValue":t[1]||(t[1]=X=>o.criterion.negation=X),options:s.negationOptions,optionLabel:"label",optionValue:"value"},null,8,["modelValue","options"])]),e.createElementVNode("div",AZ,[e.createElementVNode("label",null,e.toDisplayString(l.$t("rechercheAvancee.operatorLabel")),1),e.createVNode(m,{modelValue:o.criterion.operator,"onUpdate:modelValue":t[2]||(t[2]=X=>o.criterion.operator=X),options:s.getOperatorsForCriterion(),optionLabel:X=>l.$t(X.labelKey),optionValue:"value",placeholder:l.$t("rechercheAvancee.operatorPlaceholder"),disabled:!o.criterion.property},null,8,["modelValue","options","optionLabel","placeholder","disabled"])]),e.createElementVNode("div",MZ,[e.createElementVNode("label",null,e.toDisplayString(l.$t("rechercheAvancee.valueLabel")),1),e.createElementVNode("div",OZ,[s.propertyType==="text"?(e.openBlock(),e.createBlock(h,{key:0,modelValue:o.criterion.value,"onUpdate:modelValue":t[3]||(t[3]=X=>o.criterion.value=X)},null,8,["modelValue"])):e.createCommentVNode("",!0),s.propertyType==="boolean"?(e.openBlock(),e.createBlock(r,{key:1,modelValue:o.criterion.value,"onUpdate:modelValue":t[4]||(t[4]=X=>o.criterion.value=X),options:s.booleanOptions,optionLabel:"label",optionValue:"value"},null,8,["modelValue","options"])):e.createCommentVNode("",!0),s.propertyType==="date"||s.propertyType==="datetime"?(e.openBlock(),e.createBlock(u,{key:2,modelValue:o.criterion.value,"onUpdate:modelValue":t[5]||(t[5]=X=>o.criterion.value=X),dateFormat:"yy-mm-dd",class:"w-full"},null,8,["modelValue"])):e.createCommentVNode("",!0),(s.propertyType==="date"||s.propertyType==="datetime")&&o.criterion.operator==="range"?(e.openBlock(),e.createBlock(u,{key:3,modelValue:o.criterion.value_end,"onUpdate:modelValue":t[6]||(t[6]=X=>o.criterion.value_end=X),dateFormat:"yy-mm-dd",class:"w-full"},null,8,["modelValue"])):e.createCommentVNode("",!0),["int","double","number"].includes(s.propertyType)?(e.openBlock(),e.createBlock(b,{key:4,modelValue:o.criterion.value,"onUpdate:modelValue":t[7]||(t[7]=X=>o.criterion.value=X),class:"w-full"},null,8,["modelValue"])):e.createCommentVNode("",!0),["int","double","number"].includes(s.propertyType)&&o.criterion.operator==="range"?(e.openBlock(),e.createBlock(b,{key:5,modelValue:o.criterion.value_end,"onUpdate:modelValue":t[8]||(t[8]=X=>o.criterion.value_end=X),class:"w-full"},null,8,["modelValue"])):e.createCommentVNode("",!0)])])])]),_:1},8,["visible","header"])}const ga=H(ZZ,[["render",jZ],["__scopeId","data-v-f9a9cf16"]]),Se=$t.global.t,Xl="env-config.json",Xo="savedViews.json",sc={include:["aspectNames","isFavorite","properties","allowableOperations","permissions","path","isLocked"],maxItems:500,skipCount:0};class GZ{async _getHiddenFolder(t,a=!1){const o=(await V.getHomeFolderFromUser(t)).list.entries[0].entry.properties["cm:homeFolder"];if(!o)throw new Error(Se("vuesUtilisateurs.noUserHomeFound"));let n=(await V.getChildrenWithOpts(o,sc,!1)).children.find(c=>c.aspectNames&&c.aspectNames.includes("pm:hidden"));return!n&&a&&(console.warn("No hidden folder found, creating one..."),n=(await this.createConfigFolder(o)).entry),n}async _getOrCreateViewsFile(t,a=!1){let o=(await V.getChildrenWithOpts(t,sc,!0)).children.find(s=>s.name===Xo);if(!o&&a){console.warn(`No ${Xo} file found, creating one...`);const s={name:Xo,nodeType:"cm:content"},n={personalSavedView:[],globalFavoriteView:[]},c=new Blob([JSON.stringify(n,null,2)],{type:"application/json"}),m=(await Xe.uploadFile(t,s,c)).entry;o=(await V.updateNode(m.id,{aspectNames:[...m.aspectNames||[],"pm:hidden"]})).entry}return o}async getContent(t,a,i){try{return await V.getVersionContent(t,a,i)}catch(o){throw console.error("Error getting content:",o.message),o}}async _parseFileContent(t){let a;try{const i=await this.getContent(t.id,t.properties["cm:versionLabel"],!0);a=await(s=>new Promise((n,c)=>{if(!(s instanceof Blob)){n(s);return}const r=new FileReader;r.onload=()=>n(r.result),r.onerror=m=>c(m),r.readAsText(s,"utf-8")}))(i)}catch(i){console.warn(`Could not get content for node ${t.id}, assuming empty.`,i.message),a=""}if(!a||a.trim()==="")return{personalSavedView:[],globalFavoriteView:[]};try{return JSON.parse(a)}catch(i){return console.error("Error parsing JSON content:",i),{personalSavedView:[],globalFavoriteView:[]}}}_normalizeFileContent(t){return Array.isArray(t)?{personalSavedView:t,globalFavoriteView:[]}:{personalSavedView:t?.personalSavedView||[],globalFavoriteView:t?.globalFavoriteView||[]}}async _loadViewsFileContent(){const t=Ge().person;if(!t)throw new Error(Se("vuesUtilisateurs.userNotFound"));const a=await this._getHiddenFolder(t.id,!1);if(!a)return null;const i=await this._getOrCreateViewsFile(a.id,!1);return i?this._parseFileContent(i):null}async getPersonalViews(){try{const t=await this._loadViewsFileContent();return t?t?.personalSavedView||[]:[]}catch(t){return console.error("Error loading personal views:",t.message),[]}}async getPersonalViewsAndGlobalFavorites(){try{const t=await this._loadViewsFileContent();return t?this._normalizeFileContent(t):{personalSavedView:[],globalFavoriteView:[]}}catch(t){return console.error("Error loading personal views:",t.message),{personalSavedView:[],globalFavoriteView:[]}}}async getGlobalViews(){const t=de();return Promise.resolve(t.SAVED_VIEWS_GLOBAL||[])}async createConfigFolder(t){const a={aspectNames:["pm:hidden"],nodeType:"cm:folder",name:"Configuration"};try{return await V.createNode(t,a)}catch(i){throw console.error("Error while creating the Configuration folder :",i),i}}async _savePersonalView(t){const a=Ge().person;if(!a)throw new Error(Se("vuesUtilisateurs.userNotFound"));const i=await this._getHiddenFolder(a.id,!0),o=await this._getOrCreateViewsFile(i.id,!0);let s=await this._parseFileContent(o),n=this._normalizeFileContent(s);const c=n.personalSavedView;if(c.some(h=>h.id===t.id))throw new Error(Se("vuesUtilisateurs.savedViewError.idAlreadyExists",{id:t.id}));if(c.some(h=>h.name.toLowerCase()===t.name.toLowerCase()))throw new Error(Se("vuesUtilisateurs.savedViewError.nameAlreadyExists",{id:t.name}));c.push(t),n.personalSavedView=c;const r=JSON.stringify(n,null,2),m=new Blob([r],{type:"application/json"});await V.updateContentNode(o.id,m,"MAJEURE",null)}async saveView(t){if(t.scope==="global")try{const a=await Vt.getConfig(de().INSTANCE_NAME,Xl),i=a.jsonContent.SAVED_VIEWS_GLOBAL||[];if(i.some(o=>o.id===t.id))throw new Error(Se("vuesUtilisateurs.savedViewError.idAlreadyExists",{id:t.id}));if(i.some(o=>o.name.toLowerCase()===t.name.toLowerCase()))throw new Error(Se("vuesUtilisateurs.savedViewError.nameAlreadyExists",{id:t.name}));i.push(t),a.jsonContent.SAVED_VIEWS_GLOBAL=i,await Vt.updateConfig(de().INSTANCE_NAME,Xl,a.jsonContent)}catch(a){throw console.error("Error while saving the global view :",a),a}else t.scope==="user"&&await this._savePersonalView(t)}async _updatePersonalView(t){const a=Ge().person;if(!a)throw new Error(Se("vuesUtilisateurs.userNotFoundForUpdate"));const i=await this._getHiddenFolder(a.id,!0),o=await this._getOrCreateViewsFile(i.id,!0);let s=await this._parseFileContent(o),n=this._normalizeFileContent(s);const c=n.personalSavedView;if(c.some(u=>u.id!==t.id&&u.name.toLowerCase()===t.name.toLowerCase()))throw new Error(Se("vuesUtilisateurs.savedViewError.nameAlreadyExists",{id:t.name}));const r=c.findIndex(u=>u.id===t.id);if(r===-1)throw new Error(Se("vuesUtilisateurs.savedViewError.personnalNotFound",{id:t.id}));c[r]=t,n.personalSavedView=c;const m=JSON.stringify(n,null,2),h=new Blob([m],{type:"application/json"});return await V.updateContentNode(o.id,h,"MAJEURE",null)}async updateView(t){if(t.scope==="global")try{const a=await Vt.getConfig(de().INSTANCE_NAME,Xl),i=a.jsonContent.SAVED_VIEWS_GLOBAL||[];if(i.some(s=>s.id!==t.id&&s.name.toLowerCase()===t.name.toLowerCase()))throw new Error(Se("vuesUtilisateurs.savedViewError.nameAlreadyExists",{id:t.name}));const o=i.findIndex(s=>s.id===t.id);if(o===-1)throw new Error(Se("vuesUtilisateurs.savedViewError.globalNotFound",{id:t.id}));return i[o]=t,a.jsonContent.SAVED_VIEWS_GLOBAL=i,await Vt.updateConfig(de().INSTANCE_NAME,Xl,a.jsonContent),t}catch(a){throw console.error("Error while updating the global view :",a),a}else if(t.scope==="user")return await this._updatePersonalView(t)}async _deletePersonalView(t){const a=Ge().person;if(!a)throw new Error(Se("vuesUtilisateurs.userNotFoundForDelete"));const i=await this._getHiddenFolder(a.id,!1);if(!i)throw new Error(Se("vuesUtilisateurs.configFolderNotFound"));const o=await this._getOrCreateViewsFile(i.id,!1);if(!o)throw new Error(Se("vuesUtilisateurs.configFileNotFound"));let s=await this._parseFileContent(o),n=this._normalizeFileContent(s);const c=n.personalSavedView;n.personalSavedView=c.filter(h=>h.id!==t.id);const r=JSON.stringify(n,null,2),m=new Blob([r],{type:"application/json"});await V.updateContentNode(o.id,m,"MAJEURE",null)}async deleteView(t){if(t.scope==="global"){try{const a=await Vt.getConfig(de().INSTANCE_NAME,Xl),i=a.jsonContent.SAVED_VIEWS_GLOBAL||[];a.jsonContent.SAVED_VIEWS_GLOBAL=i.filter(o=>o.id!==t.id),await Vt.updateConfig(de().INSTANCE_NAME,Xl,a.jsonContent)}catch(a){throw console.error("Error while deleting the global view :",a),a}return}else t.scope==="user"&&await this._deletePersonalView(t)}async getViewById(t,a){return t==="user"?(await this.getPersonalViews()).find(o=>o.id===a)||null:t==="global"?(await this.getGlobalViews()).find(o=>o.id===a)||null:(console.error(`Unknown view scope: ${t}`),null)}async toggleFavoriteStatus(t){if(t.scope==="global"){const a=Ge().person;if(!a)throw new Error(Se("vuesUtilisateurs.userNotFound"));const i=await this._getHiddenFolder(a.id,!0),o=await this._getOrCreateViewsFile(i.id,!0);let s=await this._parseFileContent(o),n=this._normalizeFileContent(s);const c=n.globalFavoriteView,r=c.findIndex(u=>u.id===t.id);r>-1?(c.splice(r,1),t.isFavorite=!1):(c.push({id:t.id,name:t.name}),t.isFavorite=!0),n.globalFavoriteView=c;const m=JSON.stringify(n,null,2),h=new Blob([m],{type:"application/json"});return await V.updateContentNode(o.id,h,"MAJEURE",null),t}else return t.isFavorite=!t.isFavorite,await this.updateView(t)}}const zt=new GZ,Gt=$.defineStore("userView",{state:()=>({locations:[],criteria:[],loadedView:null,favoriteViews:[],personalViews:[],globalViews:[],viewsLoading:!0}),getters:{isSavedViewLoaded(l){return l.loadedView!==null},location(l){return l.locations.length>0?{type:l.locations[0].type,value:l.locations[0].value}:{type:null,value:""}}},actions:{loadView(l){if(!l||!l.config){console.error("Invalid saved view object provided to loadView",l);return}l.config.locations?this.locations=l.config.locations:l.config.location&&l.config.location.type&&l.config.location.value?this.locations=[{id:Date.now(),type:l.config.location.type,value:l.config.location.value,negation:!1,label:l.config.location.value}]:this.locations=[],this.criteria=l.config.criteria,this.loadedView=l},setLocation(l){!l||!l.type||!l.value?this.locations=[]:this.locations=[{id:Date.now(),type:l.type,value:l.value,negation:!1,label:l.value}]},addLocation(l){this.locations.push({...l,id:l.id||Date.now()})},removeLocation(l){this.locations.splice(l,1)},setCriteria(l){this.criteria=l,this.loadedView=null},addCriterion(l){this.criteria.push(l)},removeCriterion(l){this.criteria.splice(l,1)},resetUserView(){this.locations=[],this.criteria=[],this.loadedView=null},async saveCurrentView(l){try{await zt.saveView(l),this.loadView(l)}catch(t){throw console.error("Error saving the current view:",t),t}},async updateCurrentView(l){try{const t=await zt.updateView(l);this.loadView(t.entry||t)}catch(t){throw console.error("Error updating the current view:",t),t}},async deleteCurrentView(){if(!this.loadedView)throw new Error("No view loaded to delete.");try{await zt.deleteView(this.loadedView),this.resetUserView()}catch(l){throw console.error("Error deleting the current view:",l),l}},async toggleViewFavorite(l){if(!l||!l.id)throw new Error("Invalid view provided to toggleFavorite action.");try{await zt.toggleFavoriteStatus(l),await this.fetchFavoriteViews()}catch(t){throw console.error("Error toggling favorite status in store:",t),t}},async fetchFavoriteViews(){this.viewsLoading=!0;try{const[l,t,a]=await Promise.all([zt.getPersonalViews(),zt.getGlobalViews(),zt.getPersonalViewsAndGlobalFavorites()]),i=a?.globalFavoriteView||[],o=(l||[]).filter(c=>c.isFavorite),s=(t||[]).filter(c=>i.some(r=>r.id===c.id));this.personalViews=l,this.globalViews=t;const n=c=>({label:c.name,to:`/vues/${c.scope}/${c.id}`});this.favoriteViews=[...o.map(n),...s.map(n)]}catch(l){console.error("Error fetching favorite views:",l),this.favoriteViews=[]}finally{this.viewsLoading=!1}},async fetchSavedViews(){this.viewsLoading=!0;try{const l=await Promise.allSettled([zt.getPersonalViews(),zt.getGlobalViews()]);l[0].status==="fulfilled"&&(this.personalViews=l[0].value),l[1].status==="fulfilled"&&(this.globalViews=l[1].value)}catch(l){console.error("Error fetching views:",l)}finally{this.viewsLoading=!1}}}}),Ya=$.defineStore({id:"SearchStore",state:()=>({language:"afts",userQuery:"",aftsQuery:"",fullQuery:"",paging:{maxItems:"15",skipCount:"0"},include:["properties","allowableOperations","permissions","path"],sort:null,defaultSort:[{type:"FIELD",field:"score",ascending:!1}],spellcheck:null,filterQueries:[],facetQueries:[],facets:[],fields:[],context:null,entries:[],pagination:{},isExactSearchActivated:!1}),getters:{facetFields(l){return{facetFields:l.facets}}},actions:{setIsExactSearchActivated(l){this.isExactSearchActivated=l},reset(){const l=de();this.language="afts",this.userQuery="",this.fullQuery="",this.filterQueries=[...l.SEARCH_BASE_FILTER_QUERIES],this.facetQueries=[...l.SEARCH_FACET_QUERIES],this.facets=[...l.SEARCH_FACET],this.fields=[],this.context=null,this.entries=[],this.pagination={}},defineUserQuery(l){const t=de();let a=null;this.isExactSearchActivated?a=t.SEARCH_USER_QUERY.replaceAll("*","").replaceAll("%s",l):(a=t.SEARCH_USER_QUERY.replaceAll("%s",l),a=a.replaceAll("**","*")),this.language="afts",this.userQuery=l;let i=this.fields.map(o=>`(${o.query})`);this.fullQuery=[a,...i].join(" AND ")},queryStore(l,t,a=null){if(!l)return Promise.resolve();this.paging.skipCount=t?t*15:0,a?(this.fullQuery=a,this.userQuery=l):this.defineUserQuery(l);const i=a?[]:[...this.filterQueries];i.some(s=>s.query==="-ASPECT:'pm:hidden'")||i.push({query:"-ASPECT:'pm:hidden'"});let o={query:{language:this.language,query:this.fullQuery},include:this.include,paging:this.paging,filterQueries:i.map(s=>({query:s.query})),facetQueries:this.facetQueries,facetFields:{facets:this.facets.map(s=>({field:s.field,mincount:s.mincount,label:s.label}))},sort:this.sort||this.defaultSort,facetFormat:"V2"};return mt.search(o).then(s=>{this.context=s.list.context,t>0?this.entries=[...this.entries,...s.list.entries]:this.entries=s.list.entries,this.pagination=s.list.pagination})},searchForExport(l){let t={...this.paging};t.maxItems=l;const a=[...this.filterQueries];a.some(o=>o.query==="-ASPECT:'pm:hidden'")||a.push({query:"-ASPECT:'pm:hidden'"});let i={query:{language:this.language,query:this.fullQuery},include:this.include,paging:t,filterQueries:a.map(o=>({query:o.query})),facetQueries:this.facetQueries,facetFields:{facets:this.facets.map(o=>({field:o.field,mincount:o.mincount,label:o.label}))},sort:this.sort||this.defaultSort,facetFormat:"V2"};return mt.search(i).then(o=>o)},addSortField(l){this.sort=l},removeSortField(){this.sort=null},addFilterQuery(l){return l.query?this.filterQueries.find(t=>t.query===l.query)?!1:(this.filterQueries.push({query:l.query,label:l.label}),!0):!1},removeFilterQuery(l){this.filterQueries=this.filterQueries.filter(t=>l.query.startsWith("(SITE:")&&t.label&&(t.label.startsWith("Dossier :")||t.label.startsWith("Folder :"))?!1:t.query!==l.query)},addField(l){return this.fields.find(t=>t.query===l.query)?!1:(this.fields.push({query:l.query,label:l.label}),!0)},removeField(l){this.fields=this.fields.filter(t=>t.query!==l.query)}}}),TZ={name:"ExactSearch",components:{PrimeToggleButton:xc},props:{disabled:{type:Boolean,default:!1}},watch:{disabled(l){l&&this.exactSearch&&(this.exactSearch=!1)}},emits:["change-exact-search-settings"],computed:{...$.mapState(Ya,["isExactSearchActivated"]),exactSearch:{get(){return this.isExactSearchActivated},set(l){this.setIsExactSearchActivated(l),this.$emit("change-exact-search-settings",l)}}},methods:{...$.mapActions(Ya,["setIsExactSearchActivated"])}},wZ={id:"exactSearch",class:"flex gap-3 p-3 rounded-2xl"},IZ={class:"text-gray-700 font-medium align-content-center"};function fZ(l,t,a,i,o,s){const n=e.resolveComponent("PrimeToggleButton");return e.openBlock(),e.createElementBlock("div",wZ,[e.createElementVNode("span",IZ,e.toDisplayString(l.$t("exactSearch")),1),e.createVNode(n,{modelValue:s.exactSearch,"onUpdate:modelValue":t[0]||(t[0]=c=>s.exactSearch=c),binary:"",onLabel:l.$t("enabled"),offLabel:l.$t("disabled"),class:"rounded-xl",disabled:a.disabled},null,8,["modelValue","onLabel","offLabel","disabled"])])}const zo=H(TZ,[["render",fZ]]),vZ={name:"UserViewsFavoritesPanel",components:{PrimeDropdown:gt},data(){return{selectedPersonalSearch:null,selectedGlobalSearch:null}},mounted(){this.fetchSavedViews()},computed:{...$.mapState(Gt,{loadedView:"loadedView",personalViews:"personalViews",globalViews:"globalViews",loading:"viewsLoading"}),hasGroupedSearches(){return this.personalViews.length>0||this.globalViews.length>0}},emits:["load-view"],methods:{...$.mapActions(Gt,["fetchSavedViews"]),onDropdownChange(l){l.value&&(this.selectView(l.value),this.$nextTick(()=>{this.selectedPersonalSearch=null,this.selectedGlobalSearch=null}))},selectView(l){this.$emit("load-view",l)}}},LZ={key:0,class:"p-1 flex align-items-center text-center mb-3 border-1 border-round border-blue-200 bg-blue-50 text-blue-700"},DZ={class:"mr-2"},RZ={class:"font-bold overflow-hidden text-overflow-ellipsis multi-line-ellipsis max-w-25rem"},kZ={key:1,class:"text-center p-3"},CZ={key:2,class:"text-center text-gray-500 p-3"},FZ={key:3},VZ={class:"flex flex-column gap-4"},xZ={key:0,class:"flex flex-column gap-2"},SZ={for:"personal-searches-dropdown"},JZ={class:"flex flex-column align-items-start w-30rem overflow-hidden"},UZ={class:"font-bold"},HZ={key:0,class:"text-color-secondary w-full overflow-hidden text-overflow-ellipsis white-space-nowrap block"},QZ={key:1,class:"flex flex-column gap-2"},BZ={for:"global-searches-dropdown"},EZ={class:"flex flex-column align-items-start w-30rem overflow-hidden"},PZ={class:"font-bold"},_Z={key:0,class:"text-color-secondary w-full overflow-hidden text-overflow-ellipsis white-space-nowrap block"};function KZ(l,t,a,i,o,s){const n=e.resolveComponent("PrimeDropdown"),c=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock(e.Fragment,null,[l.loadedView?(e.openBlock(),e.createElementBlock("div",LZ,[e.createElementVNode("span",DZ,e.toDisplayString(l.$t("vuesFavorites.loadedViewMessage")),1),e.withDirectives((e.openBlock(),e.createElementBlock("span",RZ,[e.createTextVNode(e.toDisplayString(l.loadedView.name),1)])),[[c,l.loadedView.name]])])):e.createCommentVNode("",!0),l.loading?(e.openBlock(),e.createElementBlock("div",kZ,[...t[2]||(t[2]=[e.createElementVNode("i",{class:"pi pi-spin pi-spinner text-4xl"},null,-1)])])):s.hasGroupedSearches?(e.openBlock(),e.createElementBlock("div",FZ,[e.createElementVNode("div",VZ,[l.personalViews.length>0?(e.openBlock(),e.createElementBlock("div",xZ,[e.createElementVNode("label",SZ,e.toDisplayString(l.$t("vuesFavorites.personalViews")),1),e.createVNode(n,{id:"personal-searches-dropdown",modelValue:o.selectedPersonalSearch,"onUpdate:modelValue":t[0]||(t[0]=r=>o.selectedPersonalSearch=r),options:l.personalViews,optionLabel:"name",placeholder:l.$t("vuesFavorites.selectPersonalView"),onChange:s.onDropdownChange,filter:"",filterBy:["name","description"],filterPlaceholder:l.$t("vuesFavorites.filterSavedViews")},{option:e.withCtx(r=>[e.createElementVNode("div",JZ,[e.createElementVNode("div",UZ,e.toDisplayString(r.option.name),1),r.option.description?e.withDirectives((e.openBlock(),e.createElementBlock("small",HZ,[e.createTextVNode(e.toDisplayString(r.option.description),1)])),[[c,r.option.description,void 0,{left:!0}]]):e.createCommentVNode("",!0)])]),_:1},8,["modelValue","options","placeholder","onChange","filterPlaceholder"])])):e.createCommentVNode("",!0),l.globalViews.length>0?(e.openBlock(),e.createElementBlock("div",QZ,[e.createElementVNode("label",BZ,e.toDisplayString(l.$t("vuesFavorites.globalViews")),1),e.createVNode(n,{id:"global-searches-dropdown",modelValue:o.selectedGlobalSearch,"onUpdate:modelValue":t[1]||(t[1]=r=>o.selectedGlobalSearch=r),options:l.globalViews,optionLabel:"name",placeholder:l.$t("vuesFavorites.selectGlobalView"),onChange:s.onDropdownChange,filter:"",filterBy:["name","description"],filterPlaceholder:l.$t("vuesFavorites.filterSavedViews")},{option:e.withCtx(r=>[e.createElementVNode("div",EZ,[e.createElementVNode("div",PZ,e.toDisplayString(r.option.name),1),r.option.description?e.withDirectives((e.openBlock(),e.createElementBlock("small",_Z,[e.createTextVNode(e.toDisplayString(r.option.description),1)])),[[c,r.option.description,void 0,{left:!0}]]):e.createCommentVNode("",!0)])]),_:1},8,["modelValue","options","placeholder","onChange","filterPlaceholder"])])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",CZ,e.toDisplayString(l.$t("vuesFavorites.noSavedViews")),1))],64)}const Na=H(vZ,[["render",KZ],["__scopeId","data-v-8a7f3255"]]),$Z={name:"SaveViewPopup",components:{PrimeDialog:ke,PrimeInputText:Me,PrimeTextarea:ul,PrimeSelectButton:Zl,PrimeButton:w},props:{visible:Boolean,errorMessage:{type:String,default:null},viewData:{type:Object,default:null}},emits:["update:visible","save-view","clear-error"],data(){return{viewName:"",viewDescription:"",scope:"user"}},mounted(){this.checkPristyAdminStatus()},computed:{...$.mapState(Ge,["isPristyAdmin"]),isEditMode(){return!!this.viewData},scopeOptions(){const l=[{label:this.$t("vuesUtilisateurs.saveViewPopup.scopeUser"),value:"user"}];return this.isPristyAdmin&&l.push({label:this.$t("vuesUtilisateurs.saveViewPopup.scopeGlobal"),value:"global"}),l},isFormValid(){return!!this.viewName}},methods:{...$.mapActions(Ge,["checkPristyAdminStatus"]),save(){this.isFormValid&&this.$emit("save-view",{name:this.viewName,description:this.viewDescription,scope:this.scope})},resetForm(){this.viewName="",this.viewDescription="",this.scope="user",this.$emit("clear-error")},populateForm(){this.isEditMode&&(this.viewName=this.viewData.name,this.viewDescription=this.viewData.description||"",this.scope=this.viewData.scope)}},watch:{visible(l){l?this.populateForm():this.resetForm()}}},qZ={class:"p-fluid formgrid grid mt-3"},e3={class:"field col-12"},t3={for:"searchName"},l3={key:0,class:"p-error"},a3={key:1,class:"p-error"},o3={class:"field col-12"},s3={for:"searchDescription"},i3={key:0,class:"field col-12"};function n3(l,t,a,i,o,s){const n=e.resolveComponent("PrimeInputText"),c=e.resolveComponent("PrimeTextarea"),r=e.resolveComponent("PrimeSelectButton"),m=e.resolveComponent("PrimeButton"),h=e.resolveComponent("PrimeDialog");return e.openBlock(),e.createBlock(h,{visible:a.visible,"onUpdate:visible":t[5]||(t[5]=u=>l.$emit("update:visible",u)),modal:"",header:s.isEditMode?l.$t("vuesUtilisateurs.modifyViewPopup.title"):l.$t("vuesUtilisateurs.saveViewPopup.title"),class:"w-full md:w-6"},{footer:e.withCtx(()=>[e.createVNode(m,{label:l.$t("vuesUtilisateurs.cancelButton"),icon:"ri-close-line",onClick:t[4]||(t[4]=u=>l.$emit("update:visible",!1)),text:""},null,8,["label"]),e.createVNode(m,{label:s.isEditMode?l.$t("vuesUtilisateurs.modifyView"):l.$t("vuesUtilisateurs.saveView"),icon:"ri-save-3-line",onClick:s.save,disabled:!s.isFormValid},null,8,["label","onClick","disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",qZ,[e.createElementVNode("div",e3,[e.createElementVNode("label",t3,e.toDisplayString(l.$t("vuesUtilisateurs.saveViewPopup.nameLabel")),1),e.createVNode(n,{id:"searchName",modelValue:o.viewName,"onUpdate:modelValue":t[0]||(t[0]=u=>o.viewName=u),modelModifiers:{trim:!0},class:e.normalizeClass({"p-invalid":a.errorMessage}),onInput:t[1]||(t[1]=u=>l.$emit("clear-error"))},null,8,["modelValue","class"]),!o.viewName&&!a.errorMessage?(e.openBlock(),e.createElementBlock("small",l3,e.toDisplayString(l.$t("vuesUtilisateurs.saveViewPopup.nameRequired")),1)):e.createCommentVNode("",!0),a.errorMessage?(e.openBlock(),e.createElementBlock("small",a3,e.toDisplayString(a.errorMessage),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",o3,[e.createElementVNode("label",s3,e.toDisplayString(l.$t("vuesUtilisateurs.saveViewPopup.descriptionLabel")),1),e.createVNode(c,{id:"searchDescription",modelValue:o.viewDescription,"onUpdate:modelValue":t[2]||(t[2]=u=>o.viewDescription=u),rows:"3",autoResize:""},null,8,["modelValue"])]),l.isPristyAdmin?(e.openBlock(),e.createElementBlock("div",i3,[e.createElementVNode("label",null,e.toDisplayString(l.$t("vuesUtilisateurs.saveViewPopup.scopeLabel")),1),e.createVNode(r,{modelValue:o.scope,"onUpdate:modelValue":t[3]||(t[3]=u=>o.scope=u),options:s.scopeOptions,optionLabel:"label",optionValue:"value",class:"w-full",disabled:s.isEditMode},null,8,["modelValue","options","disabled"])])):e.createCommentVNode("",!0)])]),_:1},8,["visible","header"])}const Xa=H($Z,[["render",n3]]),c3={name:"AdvancedSearchPanel",components:{ExactSearch:zo,PrimeAccordion:$o,PrimeAccordionTab:qo,UserViewsFavoritesPanel:Na,PrimeSelectButton:Zl,PrimeInputText:Me,PrimeButton:w,AddCriterionPopup:ga,SaveViewPopup:Xa,PrimeDialog:ke,TreeExplorer:qt},emits:["change-exact-search-settings","load-view"],watch:{"location.type"(l){l||this.updateLocationValue("")}},data(){return{isAddCriterionDialogVisible:!1,saveViewDialogVisible:!1,saveViewDialogMode:"create",saveViewError:null,isDossierTreeVisible:!1,isDeleteConfirmVisible:!1}},mounted(){this.checkPristyAdminStatus()},computed:{...$.mapState(Ge,["isPristyAdmin"]),...$.mapState(Gt,["location","criteria","loadedView"]),locationModel:{get(){return this.location},set(l){this.setLocation(l)}},locationOptions(){return[{label:this.$t("vuesUtilisateurs.locationSite"),value:"Site"},{label:this.$t("folder"),value:"Folder"}]},locationPlaceholder(){return this.locationModel.type==="Site"?this.$t("vuesUtilisateurs.sitePlaceholder"):this.locationModel.type==="Folder"?this.$t("vuesUtilisateurs.folderPlaceholder"):""},hasActiveCriteria(){const l=this.location&&this.location.type&&this.location.value;return!!(this.criteria&&this.criteria.length>0||l)},isSavedViewLoaded(){return this.loadedView!==null},canManageLoadedView(){return this.isSavedViewLoaded?this.loadedView.scope==="user"?!0:this.loadedView.scope==="global"?this.isPristyAdmin:!1:!1},viewToEdit(){return this.saveViewDialogMode==="edit"?this.loadedView:null},availableProperties(){return de().METADATA.filter(t=>t.display&&t.display.includes("advancedSearch"))}},methods:{...$.mapActions(Ge,["checkPristyAdminStatus"]),...$.mapActions(Gt,["setLocation","addCriterion","removeCriterion","saveCurrentView","updateCurrentView","deleteCurrentView"]),clearSaveViewError(){this.saveViewError=null},handleDossierSelected(l){this.updateLocationValue(l.id),this.isDossierTreeVisible=!1},openSaveViewPopup(){this.saveViewDialogMode="create",this.saveViewDialogVisible=!0},modifyView(){this.saveViewDialogMode="edit",this.saveViewDialogVisible=!0},deleteView(){this.isDeleteConfirmVisible=!0},async handleDeleteConfirmation(){this.isDeleteConfirmVisible=!1;try{await this.deleteCurrentView(),this.$toast.add({severity:"success",summary:"Succès",detail:"Recherche supprimée avec succès.",life:3e3}),this.$refs.savedSearchesPanel.fetchSavedViews()}catch(l){this.$toast.add({severity:"error",summary:"Erreur",detail:l.message,life:5e3})}},async handleSaveView(l){this.clearSaveViewError();const t=this.saveViewDialogMode==="create";let a,i,o;const s={location:JSON.parse(JSON.stringify(this.location)),criteria:JSON.parse(JSON.stringify(this.criteria))};t?(a=this.saveCurrentView,o="vuesUtilisateurs.addsSavedViewSuccess",i={id:crypto.randomUUID(),name:l.name,description:l.description,scope:l.scope,config:s}):(a=this.updateCurrentView,o="vuesUtilisateurs.modifySavedViewSuccess",i={...this.loadedView,name:l.name,description:l.description,config:s});try{await a(i),this.$toast.add({severity:"success",summary:"Succès",detail:this.$t(o),life:3e3}),this.$refs.savedSearchesPanel.fetchSavedViews(),this.saveViewDialogVisible=!1}catch(n){this.$toast.add({severity:"error",summary:"Erreur",detail:n.message,life:5e3})}},handleLoadView(l){this.$emit("load-view",l)},updateLocationValue(l){let t=l;this.locationModel.type==="Folder"&&l&&!l.startsWith("workspace://")&&(t=`workspace://SpacesStore/${l}`),this.setLocation({...this.locationModel,value:t})},handleCriterionAdded(l){this.addCriterion(l)},formatCriterionValueForDisplay(l){if(l.value===null||l.value===void 0)return"";if(l.operator==="range"){const t=l.value instanceof Date?new Date(l.value).toLocaleDateString():l.value||"*",a=l.value_end instanceof Date?new Date(l.value_end).toLocaleDateString():l.value_end||"*";return`[${t} -> ${a}]`}else return l.value instanceof Date?new Date(l.value).toLocaleDateString():typeof l.value=="boolean"?this.$t(l.value?"true":"false"):`"${l.value}"`}}},r3={key:0,class:"p-2 mb-3 border-1 border-round border-blue-200 bg-blue-50 text-blue-700"},d3={class:"font-bold"},b3={class:"p-fluid formgrid grid"},m3={class:"field col-12"},p3={for:"locationType"},u3={key:0,class:"field col-12"},Z3={for:"locationValue"},h3={key:0,id:"username-help"},y3={class:"mt-4"},W3={key:0,class:"text-center text-gray-500 p-3 border-1 border-dashed border-round"},g3={key:1,class:"flex flex-column gap-2"},Y3={class:"flex-grow-1"},N3={class:"font-bold mr-1"},X3={class:"font-italic mr-1"},z3={class:"text-gray-700"},A3={key:3,class:"flex gap-2 mt-2"},M3={class:"flex align-items-center"},O3={key:0};function j3(l,t,a,i,o,s){const n=e.resolveComponent("ExactSearch"),c=e.resolveComponent("UserViewsFavoritesPanel"),r=e.resolveComponent("PrimeAccordionTab"),m=e.resolveComponent("PrimeSelectButton"),h=e.resolveComponent("PrimeInputText"),u=e.resolveComponent("PrimeButton"),b=e.resolveComponent("PrimeAccordion"),y=e.resolveComponent("AddCriterionPopup"),g=e.resolveComponent("SaveViewPopup"),X=e.resolveComponent("TreeExplorer"),M=e.resolveComponent("PrimeDialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(n,{onChangeExactSearchSettings:t[0]||(t[0]=A=>l.$emit("change-exact-search-settings",A)),disabled:s.hasActiveCriteria||s.isSavedViewLoaded},null,8,["disabled"]),e.createVNode(b,{class:"mt-4",multiple:"",activeIndex:[0]},{default:e.withCtx(()=>[e.createVNode(r,{header:l.$t("vuesFavorites.title")},{default:e.withCtx(()=>[e.createVNode(c,{ref:"savedSearchesPanel",onLoadView:s.handleLoadView},null,8,["onLoadView"])]),_:1},8,["header"]),e.createVNode(r,{header:l.$t("vuesUtilisateurs.queryBuilder")},{default:e.withCtx(()=>[s.isSavedViewLoaded?(e.openBlock(),e.createElementBlock("div",r3,[e.createTextVNode(e.toDisplayString(l.$t("vuesUtilisateurs.loadedViewMessage"))+" ",1),e.createElementVNode("span",d3,e.toDisplayString(l.loadedView.name),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",b3,[e.createElementVNode("div",m3,[e.createElementVNode("label",p3,e.toDisplayString(l.$t("vuesUtilisateurs.locationLabel")),1),e.createVNode(m,{id:"locationType",modelValue:s.locationModel.type,"onUpdate:modelValue":t[1]||(t[1]=A=>s.locationModel.type=A),options:s.locationOptions,optionLabel:"label",optionValue:"value",allowEmpty:"",class:"w-full"},null,8,["modelValue","options"])]),s.locationModel.type?(e.openBlock(),e.createElementBlock("div",u3,[e.createElementVNode("label",Z3,e.toDisplayString(l.$t("vuesUtilisateurs.valueLabel")),1),e.createVNode(h,{id:"locationValue",value:s.locationModel.value,placeholder:s.locationPlaceholder,onClick:t[2]||(t[2]=A=>s.locationModel.type==="Folder"?o.isDossierTreeVisible=!0:null),onChange:t[3]||(t[3]=A=>s.updateLocationValue(A.target.value))},null,8,["value","placeholder"]),s.locationModel.type==="Folder"?(e.openBlock(),e.createElementBlock("small",h3,"Ex: workspace://SpacesStore/{ID du dossier}")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",y3,[e.createElementVNode("h5",null,e.toDisplayString(l.$t("vuesUtilisateurs.criteriaTitle")),1),l.criteria.length===0?(e.openBlock(),e.createElementBlock("div",W3,e.toDisplayString(l.$t("vuesUtilisateurs.noCriteria")),1)):(e.openBlock(),e.createElementBlock("div",g3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.criteria,(A,F)=>(e.openBlock(),e.createElementBlock("div",{key:A.id,class:"flex align-items-center p-2 border-1 border-round border-gray-200"},[e.createElementVNode("div",Y3,[e.createElementVNode("span",N3,e.toDisplayString(l.$t(A.property.labelId)),1),e.createElementVNode("span",{class:e.normalizeClass([A.negation?"text-red-500":"text-primary","mx-1"])},e.toDisplayString(A.negation?l.$t("vuesUtilisateurs.mustNotContain"):l.$t("vuesUtilisateurs.mustContain")),3),e.createElementVNode("span",X3,e.toDisplayString(l.$t(A.operatorLabelKey)),1),e.createElementVNode("span",z3,e.toDisplayString(s.formatCriterionValueForDisplay(A)),1)]),e.createVNode(u,{icon:"ri-delete-bin-line","aria-label":l.$t("delete"),text:"",rounded:"",severity:"danger",onClick:U=>l.removeCriterion(F)},null,8,["aria-label","onClick"])]))),128))])),e.createVNode(u,{icon:"ri-add-line",label:l.$t("vuesUtilisateurs.addCriterionButton"),onClick:t[4]||(t[4]=A=>o.isAddCriterionDialogVisible=!0),class:"mt-3 w-full",outlined:""},null,8,["label"]),s.hasActiveCriteria?(e.openBlock(),e.createBlock(u,{key:2,icon:"ri-save-3-line",label:l.$t("vuesUtilisateurs.saveView"),onClick:s.openSaveViewPopup,class:"mt-3 w-full"},null,8,["label","onClick"])):e.createCommentVNode("",!0),s.canManageLoadedView?(e.openBlock(),e.createElementBlock("div",A3,[e.createVNode(u,{icon:"ri-pencil-line",label:l.$t("vuesUtilisateurs.modifyView"),onClick:s.modifyView,class:"w-full",severity:"secondary"},null,8,["label","onClick"]),e.createVNode(u,{icon:"ri-delete-bin-line",label:l.$t("vuesUtilisateurs.deleteView"),onClick:s.deleteView,class:"w-full",severity:"danger"},null,8,["label","onClick"])])):e.createCommentVNode("",!0)])]),_:1},8,["header"])]),_:1}),e.createVNode(y,{visible:o.isAddCriterionDialogVisible,"onUpdate:visible":t[5]||(t[5]=A=>o.isAddCriterionDialogVisible=A),properties:s.availableProperties,onAddCriterion:s.handleCriterionAdded},null,8,["visible","properties","onAddCriterion"]),e.createVNode(g,{visible:o.saveViewDialogVisible,"onUpdate:visible":t[6]||(t[6]=A=>o.saveViewDialogVisible=A),"view-data":s.viewToEdit,"error-message":o.saveViewError,onSaveView:s.handleSaveView,onClearError:s.clearSaveViewError},null,8,["visible","view-data","error-message","onSaveView","onClearError"]),e.createVNode(M,{visible:o.isDossierTreeVisible,"onUpdate:visible":t[7]||(t[7]=A=>o.isDossierTreeVisible=A),header:"Choisir un dossier",modal:"",class:"w-full md:w-6"},{default:e.withCtx(()=>[e.createVNode(X,{"current-node":null,showUserHome:"",onSelectNode:s.handleDossierSelected},null,8,["onSelectNode"])]),_:1},8,["visible"]),e.createVNode(M,{visible:o.isDeleteConfirmVisible,"onUpdate:visible":t[9]||(t[9]=A=>o.isDeleteConfirmVisible=A),header:"Confirmation de suppression",modal:"",class:"dialog-confirm-delete"},{footer:e.withCtx(()=>[e.createVNode(u,{label:l.$t("no"),icon:"ri-close-line",onClick:t[8]||(t[8]=A=>o.isDeleteConfirmVisible=!1),class:"p-button-text"},null,8,["label"]),e.createVNode(u,{label:l.$t("yes"),icon:"ri-check-line",onClick:s.handleDeleteConfirmation,class:"p-button-danger",autofocus:""},null,8,["label","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("div",M3,[t[10]||(t[10]=e.createElementVNode("i",{class:"ri-alert-line mr-3 text-4xl","aria-hidden":"true"},null,-1)),l.loadedView?(e.openBlock(),e.createElementBlock("span",O3,e.toDisplayString(l.$t("vuesUtilisateurs.confirmDelete",{name:l.loadedView.name})),1)):e.createCommentVNode("",!0)])]),_:1},8,["visible"])],64)}const ic=H(c3,[["render",j3]]),G3={name:"AdvancedViewPanel",components:{PrimeAccordion:$o,PrimeAccordionTab:qo,UserViewsFavoritesPanel:Na,PrimeSelectButton:Zl,PrimeInputText:Me,PrimeAutoComplete:Qo,PrimeButton:w,AddCriterionPopup:ga,SaveViewPopup:Xa,PrimeDialog:ke,TreeExplorer:qt},emits:["change-exact-search-settings","load-view","close-view"],watch:{},data(){return{isAddCriterionDialogVisible:!1,isAddLocationDialogVisible:!1,saveViewDialogVisible:!1,saveViewDialogMode:"create",saveViewError:null,isDossierTreeVisible:!1,isDeleteConfirmVisible:!1,availableSites:[],filteredSites:[],newLocation:{type:null,value:"",negation:!1,label:""},newLocationSiteInput:null}},async mounted(){this.checkPristyAdminStatus(),await this.loadSites()},computed:{...$.mapState(Ge,["isPristyAdmin"]),...$.mapState(Gt,["locations","criteria","loadedView"]),locationOptions(){return[{label:this.$t("vuesUtilisateurs.locationSite"),value:"Site"},{label:this.$t("folder"),value:"Folder"}]},negationOptions(){return[{label:this.$t("vuesUtilisateurs.includePrefix"),value:!1},{label:this.$t("vuesUtilisateurs.excludePrefix"),value:!0}]},hasActiveCriteria(){return!!(this.criteria&&this.criteria.length>0||this.locations&&this.locations.length>0)},isSavedViewLoaded(){return this.loadedView!==null},canManageLoadedView(){return this.isSavedViewLoaded?this.loadedView.scope==="user"?!0:this.loadedView.scope==="global"?this.isPristyAdmin:!1:!1},viewToEdit(){return this.saveViewDialogMode==="edit"?this.loadedView:null},availableProperties(){return de().METADATA.filter(t=>t.display&&t.display.includes("advancedSearch"))}},methods:{...$.mapActions(Ge,["checkPristyAdminStatus"]),...$.mapActions(Gt,["addLocation","removeLocation","addCriterion","removeCriterion","saveCurrentView","updateCurrentView","deleteCurrentView"]),clearSaveViewError(){this.saveViewError=null},handleDossierSelected(l){let t=l.id;t&&!t.startsWith("workspace://")&&(t=`workspace://SpacesStore/${t}`),this.newLocation.value=t,this.newLocation.label=l.name||t,this.isDossierTreeVisible=!1},openSaveViewPopup(){this.saveViewDialogMode="create",this.saveViewDialogVisible=!0},modifyView(){this.saveViewDialogMode="edit",this.saveViewDialogVisible=!0},deleteView(){this.isDeleteConfirmVisible=!0},async handleDeleteConfirmation(){this.isDeleteConfirmVisible=!1;try{await this.deleteCurrentView(),this.$toast.add({severity:"success",summary:"Succès",detail:"Recherche supprimée avec succès.",life:3e3}),this.$refs.savedSearchesPanel.fetchSavedViews()}catch(l){this.$toast.add({severity:"error",summary:"Erreur",detail:l.message,life:5e3})}},async handleSaveView(l){this.clearSaveViewError();const t=this.saveViewDialogMode==="create";let a,i,o;const s={locations:JSON.parse(JSON.stringify(this.locations)),criteria:JSON.parse(JSON.stringify(this.criteria))};t?(a=this.saveCurrentView,o="vuesUtilisateurs.addsSavedViewSuccess",i={id:crypto.randomUUID(),name:l.name,description:l.description,scope:l.scope,config:s}):(a=this.updateCurrentView,o="vuesUtilisateurs.modifySavedViewSuccess",i={...this.loadedView,name:l.name,description:l.description,config:s});try{await a(i),this.$toast.add({severity:"success",summary:"Succès",detail:this.$t(o),life:3e3}),this.$refs.savedSearchesPanel.fetchSavedViews(),this.saveViewDialogVisible=!1}catch(n){this.$toast.add({severity:"error",summary:"Erreur",detail:n.message,life:5e3})}},handleLoadView(l){this.$emit("load-view",l)},confirmAddLocation(){!this.newLocation.type||!this.newLocation.value||(this.addLocation({type:this.newLocation.type,value:this.newLocation.value,negation:this.newLocation.negation,label:this.newLocation.label||this.newLocation.value}),this.resetNewLocation(),this.isAddLocationDialogVisible=!1)},resetNewLocation(){this.newLocation={type:null,value:"",negation:!1,label:""},this.newLocationSiteInput=null},handleCriterionAdded(l){this.addCriterion(l)},formatCriterionValueForDisplay(l){if(l.value===null||l.value===void 0)return"";if(l.operator==="range"){const t=l.value instanceof Date?new Date(l.value).toLocaleDateString():l.value||"*",a=l.value_end instanceof Date?new Date(l.value_end).toLocaleDateString():l.value_end||"*";return`[${t} -> ${a}]`}else return l.value instanceof Date?new Date(l.value).toLocaleDateString():typeof l.value=="boolean"?this.$t(l.value?"true":"false"):`"${l.value}"`},async loadSites(){try{const l=await je.getWorkspaces();this.availableSites=l.map(t=>({id:t.id,title:t.title,description:t.description}))}catch(l){console.error("Error loading sites:",l),this.$toast.add({severity:"error",summary:this.$t("error"),detail:this.$t("vuesUtilisateurs.errorLoadingSites"),life:3e3})}},searchSites(l){const t=l.query.toLowerCase();t?this.filteredSites=this.availableSites.filter(a=>a.title.toLowerCase().includes(t)||a.description&&a.description.toLowerCase().includes(t)):this.filteredSites=[...this.availableSites]},handleNewLocationSiteSelect(l){const t=l.value;t&&t.id&&(this.newLocation.value=t.id,this.newLocation.label=t.title||t.id)}}},T3={key:0,class:"p-2 mb-3 border-1 border-round border-blue-200 bg-blue-50 text-blue-700"},w3={class:"font-bold"},I3={class:"mt-2 mb-3"},f3={key:0,class:"text-center text-gray-500 p-3 border-1 border-dashed border-round"},v3={key:1,class:"flex flex-column gap-2"},L3={class:"font-bold mr-1"},D3={class:"text-gray-700 flex-grow-1"},R3={class:"mt-4"},k3={key:0,class:"text-center text-gray-500 p-3 border-1 border-dashed border-round"},C3={key:1,class:"flex flex-column gap-2"},F3={class:"flex-grow-1"},V3={class:"font-bold mr-1"},x3={class:"font-italic mr-1"},S3={class:"text-gray-700"},J3={key:3,class:"flex gap-2 mt-2"},U3={class:"p-fluid formgrid grid"},H3={class:"field col-12"},Q3={class:"field col-12"},B3={key:0,class:"field col-12"},E3={class:"flex align-items-center"},P3={key:0};function _3(l,t,a,i,o,s){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("UserViewsFavoritesPanel"),r=e.resolveComponent("PrimeAccordionTab"),m=e.resolveComponent("PrimeAccordion"),h=e.resolveComponent("AddCriterionPopup"),u=e.resolveComponent("SaveViewPopup"),b=e.resolveComponent("PrimeSelectButton"),y=e.resolveComponent("PrimeAutoComplete"),g=e.resolveComponent("PrimeInputText"),X=e.resolveComponent("PrimeDialog"),M=e.resolveComponent("TreeExplorer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[s.isSavedViewLoaded?(e.openBlock(),e.createBlock(n,{key:0,icon:"ri-close-line",label:l.$t("vuesUtilisateurs.closeView"),severity:"danger",class:"mr-2 mb-1",onClick:t[0]||(t[0]=A=>l.$emit("close-view")),text:"",raised:""},null,8,["label"])):e.createCommentVNode("",!0),e.createVNode(m,{class:"mt-4",multiple:"",activeIndex:[1]},{default:e.withCtx(()=>[e.createVNode(r,{header:l.$t("vuesFavorites.title")},{default:e.withCtx(()=>[e.createVNode(c,{ref:"savedSearchesPanel",onLoadView:s.handleLoadView},null,8,["onLoadView"])]),_:1},8,["header"]),e.createVNode(r,{header:l.$t("vuesUtilisateurs.queryBuilder")},{default:e.withCtx(()=>[s.isSavedViewLoaded?(e.openBlock(),e.createElementBlock("div",T3,[e.createTextVNode(e.toDisplayString(l.$t("vuesUtilisateurs.loadedViewMessage"))+" ",1),e.createElementVNode("span",w3,e.toDisplayString(l.loadedView.name),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",I3,[e.createElementVNode("h5",null,e.toDisplayString(l.$t("vuesUtilisateurs.locationsTitle")),1),l.locations.length===0?(e.openBlock(),e.createElementBlock("div",f3,e.toDisplayString(l.$t("vuesUtilisateurs.noLocations")),1)):(e.openBlock(),e.createElementBlock("div",v3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.locations,(A,F)=>(e.openBlock(),e.createElementBlock("div",{key:A.id,class:e.normalizeClass(["flex align-items-center p-2 border-1 border-round",A.negation?"border-red-200 bg-red-50":"border-green-200 bg-green-50"])},[e.createElementVNode("span",{class:e.normalizeClass(["text-xs font-bold px-2 py-1 border-round mr-2",A.negation?"bg-red-100 text-red-700":"bg-green-100 text-green-700"])},e.toDisplayString(A.negation?l.$t("vuesUtilisateurs.excludePrefix"):l.$t("vuesUtilisateurs.includePrefix")),3),e.createElementVNode("span",L3,e.toDisplayString(A.type==="Site"?l.$t("vuesUtilisateurs.locationSite"):l.$t("folder")),1),e.createElementVNode("span",D3,e.toDisplayString(A.label),1),e.createVNode(n,{icon:"ri-delete-bin-line",text:"",rounded:"",severity:"danger","aria-label":l.$t("vuesUtilisateurs.removeLocation"),onClick:U=>l.removeLocation(F)},null,8,["aria-label","onClick"])],2))),128))])),e.createVNode(n,{icon:"ri-add-line",label:l.$t("vuesUtilisateurs.addLocationButton"),onClick:t[1]||(t[1]=A=>o.isAddLocationDialogVisible=!0),class:"mt-2 w-full",outlined:""},null,8,["label"])]),e.createElementVNode("div",R3,[e.createElementVNode("h5",null,e.toDisplayString(l.$t("vuesUtilisateurs.criteriaTitle")),1),l.criteria.length===0?(e.openBlock(),e.createElementBlock("div",k3,e.toDisplayString(l.$t("vuesUtilisateurs.noCriteria")),1)):(e.openBlock(),e.createElementBlock("div",C3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.criteria,(A,F)=>(e.openBlock(),e.createElementBlock("div",{key:A.id,class:"flex align-items-center p-2 border-1 border-round border-gray-200"},[e.createElementVNode("div",F3,[e.createElementVNode("span",V3,e.toDisplayString(l.$t(A.property.labelId)),1),e.createElementVNode("span",{class:e.normalizeClass([A.negation?"text-red-500":"text-primary","mx-1"])},e.toDisplayString(A.negation?l.$t("vuesUtilisateurs.mustNotContain"):l.$t("vuesUtilisateurs.mustContain")),3),e.createElementVNode("span",x3,e.toDisplayString(l.$t(A.operatorLabelKey)),1),e.createElementVNode("span",S3,e.toDisplayString(s.formatCriterionValueForDisplay(A)),1)]),e.createVNode(n,{icon:"ri-delete-bin-line","aria-label":l.$t("delete"),text:"",rounded:"",severity:"danger",onClick:U=>l.removeCriterion(F)},null,8,["aria-label","onClick"])]))),128))])),e.createVNode(n,{icon:"ri-add-line",label:l.$t("vuesUtilisateurs.addCriterionButton"),onClick:t[2]||(t[2]=A=>o.isAddCriterionDialogVisible=!0),class:"mt-3 w-full",outlined:""},null,8,["label"]),s.hasActiveCriteria?(e.openBlock(),e.createBlock(n,{key:2,icon:"ri-save-3-line",label:l.$t("vuesUtilisateurs.saveView"),onClick:s.openSaveViewPopup,class:"mt-3 w-full"},null,8,["label","onClick"])):e.createCommentVNode("",!0),s.canManageLoadedView?(e.openBlock(),e.createElementBlock("div",J3,[e.createVNode(n,{icon:"ri-pencil-line",label:l.$t("vuesUtilisateurs.modifyView"),onClick:s.modifyView,class:"w-full",severity:"secondary"},null,8,["label","onClick"]),e.createVNode(n,{icon:"ri-delete-bin-line",label:l.$t("vuesUtilisateurs.deleteView"),onClick:s.deleteView,class:"w-full",severity:"danger"},null,8,["label","onClick"])])):e.createCommentVNode("",!0)])]),_:1},8,["header"])]),_:1}),e.createVNode(h,{visible:o.isAddCriterionDialogVisible,"onUpdate:visible":t[3]||(t[3]=A=>o.isAddCriterionDialogVisible=A),properties:s.availableProperties,onAddCriterion:s.handleCriterionAdded},null,8,["visible","properties","onAddCriterion"]),e.createVNode(u,{visible:o.saveViewDialogVisible,"onUpdate:visible":t[4]||(t[4]=A=>o.saveViewDialogVisible=A),"view-data":s.viewToEdit,"error-message":o.saveViewError,onSaveView:s.handleSaveView,onClearError:s.clearSaveViewError},null,8,["visible","view-data","error-message","onSaveView","onClearError"]),e.createVNode(X,{visible:o.isAddLocationDialogVisible,"onUpdate:visible":t[10]||(t[10]=A=>o.isAddLocationDialogVisible=A),header:l.$t("vuesUtilisateurs.addLocationTitle"),modal:"",class:"w-full md:w-6"},{footer:e.withCtx(()=>[e.createVNode(n,{label:l.$t("vuesUtilisateurs.cancelButton"),icon:"ri-close-line",onClick:t[9]||(t[9]=A=>o.isAddLocationDialogVisible=!1),text:""},null,8,["label"]),e.createVNode(n,{label:l.$t("vuesUtilisateurs.addLocationConfirm"),icon:"ri-check-line",onClick:s.confirmAddLocation,disabled:!o.newLocation.type||!o.newLocation.value,autofocus:""},null,8,["label","onClick","disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",U3,[e.createElementVNode("div",H3,[e.createElementVNode("label",null,e.toDisplayString(l.$t("vuesUtilisateurs.conditionLabel")),1),e.createVNode(b,{modelValue:o.newLocation.negation,"onUpdate:modelValue":t[5]||(t[5]=A=>o.newLocation.negation=A),options:s.negationOptions,optionLabel:"label",optionValue:"value",class:"w-full"},null,8,["modelValue","options"])]),e.createElementVNode("div",Q3,[e.createElementVNode("label",null,e.toDisplayString(l.$t("vuesUtilisateurs.locationTypeLabel")),1),e.createVNode(b,{modelValue:o.newLocation.type,"onUpdate:modelValue":t[6]||(t[6]=A=>o.newLocation.type=A),options:s.locationOptions,optionLabel:"label",optionValue:"value",class:"w-full"},null,8,["modelValue","options"])]),o.newLocation.type?(e.openBlock(),e.createElementBlock("div",B3,[e.createElementVNode("label",null,e.toDisplayString(l.$t("vuesUtilisateurs.valueLabel")),1),o.newLocation.type==="Site"?(e.openBlock(),e.createBlock(y,{key:0,modelValue:o.newLocationSiteInput,"onUpdate:modelValue":t[7]||(t[7]=A=>o.newLocationSiteInput=A),suggestions:o.filteredSites,optionLabel:"title",onComplete:s.searchSites,onItemSelect:s.handleNewLocationSiteSelect,placeholder:l.$t("vuesUtilisateurs.sitePlaceholder"),class:"w-full",forceSelection:""},null,8,["modelValue","suggestions","onComplete","onItemSelect","placeholder"])):(e.openBlock(),e.createBlock(g,{key:1,value:o.newLocation.value,placeholder:l.$t("vuesUtilisateurs.folderPlaceholder"),onClick:t[8]||(t[8]=A=>o.isDossierTreeVisible=!0),readonly:""},null,8,["value","placeholder"]))])):e.createCommentVNode("",!0)])]),_:1},8,["visible","header"]),e.createVNode(X,{visible:o.isDossierTreeVisible,"onUpdate:visible":t[11]||(t[11]=A=>o.isDossierTreeVisible=A),header:l.$t("folder"),modal:"",class:"w-full md:w-6"},{default:e.withCtx(()=>[e.createVNode(M,{"current-node":null,showUserHome:"",onSelectNode:s.handleDossierSelected},null,8,["onSelectNode"])]),_:1},8,["visible","header"]),e.createVNode(X,{visible:o.isDeleteConfirmVisible,"onUpdate:visible":t[13]||(t[13]=A=>o.isDeleteConfirmVisible=A),header:"Confirmation de suppression",modal:"",class:"dialog-confirm-delete"},{footer:e.withCtx(()=>[e.createVNode(n,{label:l.$t("no"),icon:"ri-close-line",onClick:t[12]||(t[12]=A=>o.isDeleteConfirmVisible=!1),class:"p-button-text"},null,8,["label"]),e.createVNode(n,{label:l.$t("yes"),icon:"ri-check-line",onClick:s.handleDeleteConfirmation,class:"p-button-danger",autofocus:""},null,8,["label","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("div",E3,[t[14]||(t[14]=e.createElementVNode("i",{class:"ri-alert-line mr-3 text-4xl","aria-hidden":"true"},null,-1)),l.loadedView?(e.openBlock(),e.createElementBlock("span",P3,e.toDisplayString(l.$t("vuesUtilisateurs.confirmDelete",{name:l.loadedView.name})),1)):e.createCommentVNode("",!0)])]),_:1},8,["visible"])],64)}const nc=H(G3,[["render",_3]]),K3={name:"FavoriteViewMenu",props:{menuClass:{type:String,default:""}},emits:["menuitem-click"],computed:{...$.mapState(Gt,{model:"favoriteViews"})},methods:{...$.mapActions(Gt,["fetchFavoriteViews"]),onMenuItemClick(l){this.$emit("menuitem-click",l)}},async mounted(){await this.fetchFavoriteViews()}},$3={class:"menuItem mt-3"},q3={key:0},eh={class:"layout-menu"},th={class:"overflow-hidden text-overflow-ellipsis white-space-nowrap"};function lh(l,t,a,i,o,s){const n=e.resolveComponent("router-link"),c=e.resolveDirective("ripple"),r=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",$3,[e.createVNode(n,{class:e.normalizeClass(a.menuClass),to:"/vues"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.$t("vuesFavorites.title")),1)]),_:1},8,["class"])]),l.model.length>0?(e.openBlock(),e.createElementBlock("div",q3,[e.createElementVNode("ul",eh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.model,(m,h)=>(e.openBlock(),e.createElementBlock("li",{key:m.label||h,role:"none"},[e.withDirectives((e.openBlock(),e.createBlock(n,{"aria-label":m.label,to:m.to,class:"p-ripple flex",exact:"",role:"menuitem",onClick:u=>s.onMenuItemClick({originalEvent:u,item:m})},{default:e.withCtx(()=>[e.createElementVNode("span",th,e.toDisplayString(m.label),1)]),_:2},1032,["aria-label","to","onClick"])),[[c],[r,m.label]])]))),128))])])):e.createCommentVNode("",!0)],64)}const cc=H(K3,[["render",lh],["__scopeId","data-v-14eafe86"]]),ah={class:"p-fluid"},oh={class:"p-field mb-3"},sh={for:"filename"},ih={class:"p-field"},nh={for:"location"},ch={class:"p-inputgroup"},rh={key:0,class:"mt-3 border-1 surface-border p-2 overflow-y-auto"},dh={__name:"SaveAsPopup",props:{visible:Boolean,defaultFilename:{type:String,default:null},parentFolderNode:{type:Object,default:null}},emits:["close","save"],setup(l,{emit:t}){const{t:a}=Pt.useI18n(),i=l,o=t,s=e.ref(""),n=e.ref(null),c=e.ref(!1),r=e.ref(null),m=e.ref(""),h=()=>{s.value=i.defaultFilename||a("pdfTools.saveAs.defaultFilename"),n.value=i.parentFolderNode,r.value=i.parentFolderNode?.id,m.value=i.parentFolderNode?.name,c.value=!1},u=async y=>{if(!(!y||!y.isFolder)){if(y.name==="documentLibrary")if(r.value=y.id,y.parentId)try{const g=await V.getNode(y.parentId);m.value=g.properties["cm:title"]||g.name}catch(g){console.error("Could not fetch parent node name",g),m.value=y.name}else m.value=y.name;else r.value=y.id,m.value=y.name;c.value=!1}},b=()=>{r.value&&o("save",{filename:s.value,folderId:r.value})};return(y,g)=>(e.openBlock(),e.createBlock(e.unref(ke),{visible:l.visible,modal:"",header:y.$t("pdfTools.saveAs.title"),class:"dialog-save-as","onUpdate:visible":g[3]||(g[3]=X=>y.$emit("close")),onShow:h},{footer:e.withCtx(()=>[e.createVNode(e.unref(w),{label:y.$t("pdfTools.common.cancel"),icon:"pi pi-times",onClick:g[2]||(g[2]=X=>y.$emit("close")),class:"p-button-text"},null,8,["label"]),e.createVNode(e.unref(w),{label:y.$t("pdfTools.common.save"),icon:"pi pi-check",onClick:b,disabled:!s.value||!r.value},null,8,["label","disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",ah,[e.createElementVNode("div",oh,[e.createElementVNode("label",sh,e.toDisplayString(y.$t("pdfTools.saveAs.filenameLabel")),1),e.createVNode(e.unref(Me),{id:"filename",modelValue:s.value,"onUpdate:modelValue":g[0]||(g[0]=X=>s.value=X)},null,8,["modelValue"])]),e.createElementVNode("div",ih,[e.createElementVNode("label",nh,e.toDisplayString(y.$t("pdfTools.saveAs.folderLabel")),1),e.createElementVNode("div",ch,[e.createVNode(e.unref(Me),{id:"location",readonly:"",value:m.value},null,8,["value"]),e.createVNode(e.unref(w),{icon:c.value?"pi pi-chevron-up":"pi pi-chevron-down",label:y.$t("pdfTools.saveAs.browse"),onClick:g[1]||(g[1]=X=>c.value=!c.value)},null,8,["icon","label"])])]),c.value?(e.openBlock(),e.createElementBlock("div",rh,[e.createVNode(qt,{"current-node":n.value,"show-user-home":"","show-files":!1,onSelectNode:u},null,8,["current-node"])])):e.createCommentVNode("",!0)])]),_:1},8,["visible","header"]))}},bh={class:"pdf-tools-page"},mh={key:0},ph={key:0,class:"loading-container"},uh={key:1,class:"error-container"},Zh={key:2,class:"pdf-editor-layout"},hh={class:"pdf-tools-sidebar"},yh={class:"card"},Wh={class:"p-fluid"},gh={class:"p-field"},Yh={class:"p-field mt-4"},Nh={class:"p-field mt-4"},Xh={class:"flex flex-column gap-2"},zh={class:"p-field mt-4"},Ah={class:"grid mt-2"},Mh={class:"col-6"},Oh={class:"col-6"},jh={class:"pdf-preview-container"},Gh=["onClick","onDblclick"],Th={class:"page-selection"},wh={class:"page-actions"},Ih={class:"thumbnail-content"},fh={class:"page-number"},vh={class:"flex align-items-center gap-2"},Lh={class:"page-editor-toolbar"},Dh={class:"zoom-indicator"},Rh={class:"flex"},kh={class:"tool-group"},Ch={key:0,class:"mt-2"},Fh={class:"p-field"},Vh={class:"block mb-1"},xh={class:"p-field"},Sh={class:"block mb-1"},Jh={class:"p-field"},Uh={class:"block mb-1"},Hh={class:"flex justify-content-between w-full"},Qh={class:"flex align-items-center gap-2"},Bh={class:"signature-pad"},Eh={class:"flex gap-2"},Ph={class:"p-inputgroup mb-2"},_h={key:0,class:"flex align-items-center gap-2"},Kh={key:1,class:"text-color-secondary"},$h={key:2,class:"favorites-layout"},qh={class:"favorites-list"},e5=["onClick"],t5={class:"flex align-items-center gap-2 flex-grow-1"},l5={class:"text-overflow-ellipsis"},a5={class:"favorites-preview"},o5={key:0,class:"preview-placeholder"},s5={class:"text-color-secondary"},i5={key:1,class:"preview-placeholder"},n5={class:"text-color-secondary"},c5={key:2,class:"preview-wrapper"},r5={key:0,class:"preview-controls"},d5={class:"page-info"},b5={class:"preview-content"},m5={key:0,class:"flex align-items-center gap-2"},p5={key:1,class:"text-color-secondary"},u5={key:2,class:"favorites-layout"},Z5={class:"favorites-list"},h5=["onClick"],y5={class:"flex align-items-center gap-2 flex-grow-1"},W5={class:"text-overflow-ellipsis"},g5={class:"favorites-preview"},Y5={key:0,class:"preview-placeholder"},N5={class:"text-color-secondary"},X5={key:1,class:"preview-placeholder"},z5={class:"text-color-secondary"},A5={key:2,class:"preview-wrapper"},M5={key:0,class:"preview-controls"},O5={class:"page-info"},j5={class:"preview-content"},G5={class:"p-fluid"},T5={class:"p-field"},w5={for:"alfrescoNodeId"},I5={class:"text-color-secondary"},f5={class:"flex gap-2 align-items-center w-full justify-content-between"},v5={class:"flex flex-column flex-grow-1 mr-2 min-w-0"},L5={key:0,class:"text-color-secondary flex align-items-center gap-1"},D5={class:"text-color-secondary flex-shrink-0"},R5={class:"text-overflow-ellipsis font-medium white-space-nowrap overflow-hidden flex-grow-1"},k5={key:1,class:"p-error"},C5={class:"ml-auto flex gap-2"},rc=H({__name:"PdfToolsComponent",props:{toast:{type:Object,required:!0},id:{type:String,required:!0}},setup(l){const{t}=Pt.useI18n(),a=l,i=e.ref(null),o=e.ref(null),s=e.ref([]),n=e.ref(!0),c=e.ref(null),r=e.ref(null),m=e.ref([]),h=e.ref(!1),u=e.ref(null),b=e.ref(1),y={SELECT:"select",REDACT:"redact",HIGHLIGHT:"highlight",COMMENT:"comment",IMAGE:"image",SIGNATURE:"signature",TEXT:"text"},g=e.ref(y.SELECT),X=e.ref([]),M=e.ref(null),A=e.ref(null),F=e.ref(null),U=e.ref(null),j=e.ref(!1),I=e.ref(null);let D=!1,K=null,x=!1,C=null;const f=e.ref(""),R=e.ref(-45),te=e.ref(5),le=[{label:"Helvetica",value:"Helvetica"},{label:"Times New Roman",value:"TimesRoman"},{label:"Courier",value:"Courier"}],S=e.ref("Helvetica"),oe=e.ref(18),Ie=e.ref("#000000"),wt=e.ref(null),Te=e.ref(!1),re=e.ref(null),Je=e.ref(""),He=e.ref(""),Qe=e.ref(null),Be=e.ref(null),k=e.ref(!1),Q=e.ref(""),E=e.ref(""),ee=e.ref(null),ce=e.computed(()=>Q.value&&Ut(Q.value)?!0:!!(ee.value&&ee.value.id)),ze=e.ref(""),fe=e.ref([]),ut=e.ref(!1),et=e.ref(!1),tt=e.ref([]),At=e.ref(!1),Zt=e.ref(!1),nt=e.ref(null),{pdf:ct}=vt.usePDF(nt),Le=e.ref(1),Fe=e.ref(0),De=e.ref(null),{pdf:Ee}=vt.usePDF(De);e.onMounted(()=>{const d=a.id;d?Ol(d):(c.value=t("pdfTools.loadError"),n.value=!1)});const ol=d=>m.value.some(Z=>Z.pageIndex===d.pageIndex),Ml=d=>{r.value=d;const Z=m.value.findIndex(N=>N.pageIndex===d.pageIndex);Z>-1?m.value.splice(Z,1):m.value.push(d)},Ol=async d=>{n.value=!0,c.value=null;try{const Z=await V.getNode(d);Qe.value=Z,wt.value=Z.parentId,He.value=Z&&(Z.name||Z.properties&&Z.properties["cm:name"])||"";const N=Xe.getContentUrl(d);De.value=N;const W=await fetch(N);if(!W.ok)throw new Error(`HTTP error! status: ${W.status}`);const T=await W.arrayBuffer();o.value=new Uint8Array(T),await jl(o.value),s.value.length>0&&(r.value=s.value[0])}catch(Z){console.error("Error loading PDF from Alfresco:",Z),c.value=t("pdfTools.loadError")}finally{n.value=!1}},jl=async d=>{i.value=await We.PDFDocument.load(d);const Z=i.value.getPageCount();s.value=Array.from({length:Z},(N,W)=>({pageIndex:W,pageNumber:W+1}))},Ue=async(d,{updatePages:Z=!0}={})=>{const N=await d.save();o.value=N;const W=new Blob([N],{type:"application/pdf"});De.value&&De.value.startsWith("blob:")&&URL.revokeObjectURL(De.value),De.value=URL.createObjectURL(W),Z&&await jl(N)},Gl=async()=>{if(o.value){n.value=!0;try{const d=await We.PDFDocument.create(),Z=s.value.map(T=>T.pageIndex),N=await We.PDFDocument.load(o.value);(await d.copyPages(N,Z)).forEach(T=>d.addPage(T)),await Ue(d)}catch(d){console.error("Error reordering pages:",d),c.value=t("pdfTools.reorderError")}finally{n.value=!1}}},sl=async d=>{if(o.value){n.value=!0;try{const Z=await We.PDFDocument.load(o.value),N=Z.getPage(d.pageIndex),W=N.getRotation().angle;N.setRotation({type:We.RotationTypes.Degrees,angle:(W+90)%360}),await Ue(Z,{updatePages:!1})}catch(Z){console.error("Error rotating page:",Z),c.value=t("pdfTools.rotateError")}finally{n.value=!1}}},Mt=async()=>{if(m.value.length===0||!o.value)return null;const d=await We.PDFDocument.create(),Z=await We.PDFDocument.load(o.value),N=m.value.map(T=>T.pageIndex).sort((T,z)=>T-z);return(await d.copyPages(Z,N)).forEach(T=>d.addPage(T)),await d.save()},Pe=async()=>{if(!(!o.value||m.value.length===0)){if(m.value.length===s.value.length){a.toast.add({severity:"warn",summary:t("pdfTools.common.warning"),detail:t("pdfTools.deleteAllPagesWarning"),life:3e3});return}n.value=!0;try{const d=await We.PDFDocument.load(o.value),Z=d.getPageCount(),N=new Set(m.value.map(J=>J.pageIndex)),W=[];for(let J=0;J<Z;J++)N.has(J)||W.push(J);const T=await We.PDFDocument.create();(await T.copyPages(d,W)).forEach(J=>T.addPage(J)),await Ue(T),m.value=[],a.toast.add({severity:"success",summary:t("pdfTools.common.deleted"),detail:t("pdfTools.pagesDeletedSuccess"),life:3e3})}catch(d){console.error("Error deleting pages:",d),c.value=t("pdfTools.deletePagesError")}finally{n.value=!1}}},il=async()=>{Q.value="",ee.value=null,E.value="",k.value=!0},Bl=d=>{d.index===2&&tt.value.length===0&&!At.value&&ye()},El=async()=>{let d=null;if(ee.value?.id?d=ee.value.id:Q.value&&(d=Ut(Q.value)),!d){a.toast.add({severity:"warn",summary:t("pdfTools.common.warning"),detail:t("pdfTools.insertFromAlfresco.invalidInput"),life:3e3});return}await rt(d),k.value=!1},Ut=d=>{if(!d)return null;const Z=d.trim();if(/^[0-9a-fA-F-]{20,}$/.test(Z))return Z;const N=Z.match(/workspace:\/\/SpacesStore\/([0-9a-fA-F-]{20,})/);if(N&&N[1])return N[1];const W=Z.match(/\b(nodes|preview|renditions|content)\/?([0-9a-fA-F-]{20,})\b/);if(W&&W[2])return W[2];const T=Z.match(/#\/(?:pdf-tools|consultation-pdf|edit-collabora)\/([0-9a-fA-F-]{20,})/);if(T&&T[1])return T[1];const z=Z.match(/([0-9a-fA-F]{20,})/);return z&&z[1]?z[1]:null},O=async d=>{if(d?.content?.mimeType==="application/pdf"&&(ee.value=d,E.value="",d?.id)){Zt.value=!0,Le.value=1,Fe.value=0;try{const Z=Xe.getContentUrl(d.id);nt.value&&nt.value.startsWith("blob:")&&URL.revokeObjectURL(nt.value),nt.value=Z}catch(Z){console.error("Error loading PDF preview:",Z),nt.value=null}finally{Zt.value=!1}}},_=()=>{Le.value<Fe.value&&Le.value++},se=()=>{Le.value>1&&Le.value--},me=d=>{E.value="",d.isFolder?(ee.value=null,E.value=t("pdfTools.insertFromAlfresco.folderSelectError")):d.content?.mimeType!=="application/pdf"?(ee.value=null,E.value=t("pdfTools.insertFromAlfresco.fileTypeNotAllowedError")):O(d)},be=async()=>{if(et.value=!0,!ze.value||ze.value.trim().length<2){fe.value=[];return}ut.value=!0;try{const d=Ya();await d.queryStore(ze.value);const Z=d.entries.map(N=>N.entry||N);fe.value=Z.filter(N=>N.isFile&&N.content?.mimeType==="application/pdf")}catch(d){console.error("performSearch",d),fe.value=[]}finally{ut.value=!1}},ye=async()=>{At.value=!0;try{const d=Jl();await d.loadFavorites(),tt.value=d.fileFavorites.filter(Z=>Z?.target?.file?.content?.mimeType==="application/pdf").map(Z=>Z.target.file)}catch(d){console.error("loadFavorites error:",d),tt.value=[]}finally{At.value=!1}},rt=async d=>{if(o.value){n.value=!0;try{if((await V.getNode(d)).content?.mimeType!=="application/pdf")throw new Error(t("pdfTools.invalidNodeForInsert"));const W=await(await V.getNodeContent(d)).arrayBuffer(),T=new Uint8Array(W),z=await We.PDFDocument.load(o.value),J=await We.PDFDocument.load(T),ne=J.getPageCount(),pe=Array.from({length:ne},(Re,Qt)=>Qt);(await z.copyPages(J,pe)).forEach(Re=>z.addPage(Re)),await Ue(z),m.value=[],a.toast.add({severity:"success",summary:t("pdfTools.common.success"),detail:t("pdfTools.insertFromPristySuccess",{count:ne}),life:3e3})}catch(Z){console.error("Error inserting from Alfresco:",Z),c.value=Z?.message||t("pdfTools.insertFromPristyError"),a.toast.add({severity:"error",summary:t("pdfTools.common.error"),detail:c.value,life:4e3})}finally{n.value=!1}}},ht=async d=>{const Z=d.files?.[0];Z&&await Pl(Z)},Pl=async d=>{if(o.value){n.value=!0;try{const Z=await We.PDFDocument.load(o.value),N=new Uint8Array(await d.arrayBuffer()),W=await We.PDFDocument.load(N),T=W.getPageCount(),z=Array.from({length:T},(ne,pe)=>pe);(await Z.copyPages(W,z)).forEach(ne=>Z.addPage(ne)),await Ue(Z),m.value=[],a.toast.add({severity:"success",summary:t("pdfTools.common.success"),detail:t("pdfTools.insertFromFileSuccess",{count:T}),life:3e3})}catch(Z){console.error("Error inserting PDF:",Z),c.value=t("pdfTools.insertError")}finally{n.value=!1}}},_l=async()=>{if(!(!f.value||m.value.length===0||!o.value)){n.value=!0;try{const d=await We.PDFDocument.load(o.value),Z=m.value.map(N=>N.pageIndex);for(const N of Z){const W=d.getPage(N),{width:T,height:z}=W.getSize();for(let J=0;J<te.value;J++)W.drawText(f.value,{x:T/(te.value+1)*(J+1)-150,y:z/(te.value+1)*(J+1),size:50,color:We.rgb(.95,.1,.1),opacity:.5,rotate:We.degrees(R.value)})}await Ue(d,{updatePages:!1})}catch(d){console.error("Error adding watermark:",d),c.value=t("pdfTools.watermarkError")}finally{n.value=!1}}},nl=async()=>{if(o.value){n.value=!0;try{const d=new Blob([o.value],{type:"application/pdf"}),Z=new File([d],"modified.pdf",{type:"application/pdf"}),N={majorVersion:!0,comment:"File modified via Pristy Espaces PDF tools"};await V.updateContentNode(a.id,Z,N),a.toast.add({severity:"success",summary:t("pdfTools.common.success"),detail:t("pdfTools.saveSuccess"),life:3e3})}catch(d){console.error("Error saving changes:",d),a.toast.add({severity:"error",summary:t("pdfTools.common.error"),detail:t("pdfTools.saveError"),life:3e3})}finally{n.value=!1}}},cl=async d=>{if(re.value=d,Je.value=t("pdfTools.saveAs.defaultFilename"),Qe.value&&Qe.value.parentId)try{Be.value=await V.getNode(Qe.value.parentId)}catch(Z){console.error("Could not fetch parent node for Save As dialog",Z),Be.value=null}else Be.value=null;Te.value=!0},rl=async({filename:d,folderId:Z})=>{Te.value=!1,n.value=!0;try{let N;if(re.value==="extract"?N=await Mt():N=o.value,!N)throw new Error(t("pdfTools.noContentToSave"));const W=new Blob([N],{type:"application/pdf"}),T=new File([W],d,{type:"application/pdf"});if(!Z)throw new Error("No destination folder selected.");await Xe.uploadFile(Z,{},T),a.toast.add({severity:"success",summary:t("pdfTools.common.success"),detail:t("pdfTools.fileCreatedSuccess",{filename:d}),life:3e3})}catch(N){console.error('Error during "Save As":',N);const W=N.status===409?t("pdfTools.saveAs.conflictError"):t("pdfTools.saveAsError");a.toast.add({severity:"error",summary:t("pdfTools.common.error"),detail:W,life:4e3})}finally{n.value=!1}},It=d=>{u.value=d||r.value,h.value=!0,b.value=1,X.value=[],setTimeout(Ne,200)},lt=()=>{h.value=!1,u.value=null},Ma=()=>{b.value=Math.min(4,b.value+.1)},vo=()=>{b.value=Math.max(.2,b.value-.1)},dl=d=>{d===y.REDACT?window.confirm(t("pdfTools.redactWarning"))&&(g.value=d):g.value=d},Tl=d=>{M.value=d.files?.[0]||null,M.value&&(A.value=null,g.value=y.IMAGE)},Y=()=>{j.value=!0},v=()=>{X.value.pop(),yt()},q=async d=>{if(!(!d||d.type!==y.IMAGE||d._loading||d._bitmap)){d._loading=!0;try{let Z=null;d.payload?.file?Z=d.payload.file:d.payload?.signature&&(Z=new Blob([new Uint8Array(d.payload.signature)],{type:"image/png"})),Z&&(d._bitmap=await createImageBitmap(Z),yt())}catch(Z){console.warn(t("pdfTools.imagePreviewUnavailable"),Z)}finally{d._loading=!1}}},ie=()=>{const d=F.value;if(!d)return null;const Z=Array.from(d.querySelectorAll("canvas"));if(Z.length===0)return null;const N=Z.filter(J=>J.offsetParent!==null&&J.width>0&&J.height>0),W=N.length?N:Z;let T=W[0],z=0;for(const J of W){const ne=J.getBoundingClientRect(),pe=Math.max(0,ne.width)*Math.max(0,ne.height);pe>z&&(T=J,z=pe)}return T},Ne=()=>{const d=ie();if(!d||!U.value)return;const Z=d.getBoundingClientRect(),N=window.devicePixelRatio||1;U.value.style.width=Z.width+"px",U.value.style.height=Z.height+"px",U.value.width=Math.round(Z.width*N),U.value.height=Math.round(Z.height*N),yt()},at=d=>{const Z=U.value;if(!Z)return{x:0,y:0};const N=Z.getBoundingClientRect(),W=window.devicePixelRatio||1;return{x:(d.clientX-N.left)*W,y:(d.clientY-N.top)*W}};let Ke=null,$e=null,Kl=null,bl=null;const j9=d=>{for(let Z=X.value.length-1;Z>=0;Z--){const N=X.value[Z].rect;if(d.x>=N.x&&d.x<=N.x+N.w&&d.y>=N.y&&d.y<=N.y+N.h)return Z}return-1},G9=d=>{const W=6*(window.devicePixelRatio||1)/2;for(let T=X.value.length-1;T>=0;T--){const z=X.value[T];if(z.type!==y.IMAGE&&z.type!==y.TEXT)continue;const J=z.rect,ne=[{key:"tl",x:J.x,y:J.y},{key:"tr",x:J.x+J.w,y:J.y},{key:"bl",x:J.x,y:J.y+J.h},{key:"br",x:J.x+J.w,y:J.y+J.h}];for(const pe of ne)if(d.x>=pe.x-W&&d.x<=pe.x+W&&d.y>=pe.y-W&&d.y<=pe.y+W)return{idx:T,corner:pe.key}}return null},T9=d=>{if(g.value===y.REDACT||g.value===y.HIGHLIGHT||g.value===y.TEXT)x=!0,C=at(d);else if(g.value===y.COMMENT){const Z=at(d),N=window.prompt(t("pdfTools.pageEditor.commentPrompt"));N&&(X.value.push({type:y.COMMENT,rect:{x:Z.x,y:Z.y,w:24,h:24},payload:{text:N}}),yt())}else if(g.value===y.IMAGE||g.value===y.SELECT||g.value===y.TEXT){const Z=at(d),N=G9(Z);if(N){Kl=N.idx,bl=N.corner,$e={p:Z,rect:{...X.value[N.idx].rect}},U.value&&(U.value.style.cursor="nwse-resize");return}const W=j9(Z);if(W!==-1&&(X.value[W].type===y.IMAGE||X.value[W].type===y.TEXT)){Ke=W,$e={p:Z,rect:{...X.value[W].rect}},U.value&&(U.value.style.cursor="move");return}if(g.value===y.IMAGE){if(!M.value&&!A.value)return;const T={type:y.IMAGE,rect:{x:Z.x,y:Z.y,w:150,h:100},payload:{file:M.value,signature:A.value}};X.value.push(T),q(T),yt(),g.value=y.SELECT,M.value=null,A.value=null}}},w9=d=>{if(Kl!==null&&bl){const N=at(d),W=X.value[Kl];if(W){const T=$e.rect;let z=T.x,J=T.y,ne=T.w,pe=T.h;const Ve=N.x-$e.p.x,Re=N.y-$e.p.y;bl==="br"?(ne=Math.max(10,T.w+Ve),pe=Math.max(10,T.h+Re)):bl==="tr"?(ne=Math.max(10,T.w+Ve),pe=Math.max(10,T.h-Re),J=T.y+Re):bl==="bl"?(ne=Math.max(10,T.w-Ve),z=T.x+Ve,pe=Math.max(10,T.h+Re)):bl==="tl"&&(ne=Math.max(10,T.w-Ve),z=T.x+Ve,pe=Math.max(10,T.h-Re),J=T.y+Re),W.rect.x=z,W.rect.y=J,W.rect.w=ne,W.rect.h=pe,yt()}return}if(Ke!==null){const N=at(d),W=X.value[Ke];if(W){const T=N.x-$e.p.x,z=N.y-$e.p.y;W.rect.x=$e.rect.x+T,W.rect.y=$e.rect.y+z,yt()}return}if(!x||!C)return;const Z=at(d);Ht.value={x:Math.min(C.x,Z.x),y:Math.min(C.y,Z.y),w:Math.abs(Z.x-C.x),h:Math.abs(Z.y-C.y)},yt()},I9=()=>{if(Ke!==null||Kl!==null){Ke=null,Kl=null,bl=null,$e=null,U.value&&(U.value.style.cursor="crosshair"),yt();return}if(x&&Ht.value)if(g.value===y.TEXT){const d=window.prompt(t("pdfTools.pageEditor.addTextPrompt"));d&&d.trim().length>0&&X.value.push({type:y.TEXT,rect:{...Ht.value},payload:{text:d,font:S.value,size:oe.value,color:Ie.value}})}else X.value.push({type:g.value,rect:{...Ht.value}});x=!1,C=null,Ht.value=null,yt()},f9=()=>{x&&(x=!1,C=null,Ht.value=null,yt())},Ht=e.ref(null),yt=()=>{const d=Ke,Z=U.value;if(!Z)return;const N=Z.getContext("2d"),W=window.devicePixelRatio||1;N.clearRect(0,0,Z.width,Z.height);const T=(z,J)=>{if(z.type===y.REDACT)N.fillStyle="rgba(0,0,0,1)",N.fillRect(z.rect.x,z.rect.y,z.rect.w,z.rect.h),N.strokeStyle="rgba(0,0,0,1)",N.strokeRect(z.rect.x,z.rect.y,z.rect.w,z.rect.h);else if(z.type===y.HIGHLIGHT)N.fillStyle="rgba(255, 235, 59, 0.4)",N.fillRect(z.rect.x,z.rect.y,z.rect.w,z.rect.h),N.strokeStyle="rgba(255, 193, 7, 0.8)",N.strokeRect(z.rect.x,z.rect.y,z.rect.w,z.rect.h);else if(z.type===y.COMMENT)R9(N,z.rect.x,z.rect.y,20*W);else if(z.type===y.IMAGE){if(q(z),z._bitmap&&N.drawImage(z._bitmap,z.rect.x,z.rect.y,z.rect.w,z.rect.h),N.strokeStyle=J===d?"#0ea5e9":"rgba(33,150,243,0.9)",N.lineWidth=J===d?2*W:1*W,N.strokeRect(z.rect.x,z.rect.y,z.rect.w,z.rect.h),J===d){N.fillStyle="#0ea5e9";const ne=6*W,pe=ne/2;[[z.rect.x,z.rect.y],[z.rect.x+z.rect.w,z.rect.y],[z.rect.x,z.rect.y+z.rect.h],[z.rect.x+z.rect.w,z.rect.y+z.rect.h]].forEach(([Re,Qt])=>{N.fillRect(Re-pe,Qt-pe,ne,ne)})}}else if(z.type===y.TEXT){const ne=z.payload||{},pe=Math.max(8,ne.size||18);N.save(),N.fillStyle="rgba(255,255,255,0.35)",N.fillRect(z.rect.x,z.rect.y,z.rect.w,z.rect.h),N.fillStyle=ne.color||"#000",N.font=`${pe}px ${ne.font||"Helvetica"}`,N.textBaseline="top";const Ve=4*W,Re=Math.max(0,z.rect.w-2*Ve),Qt=v9(N,String(ne.text||""),Re);let wl=z.rect.y+Ve;for(const Bt of Qt)if(N.fillText(Bt,z.rect.x+Ve,wl),wl+=pe*1.2,wl>z.rect.y+z.rect.h-Ve)break;if(N.strokeStyle=J===d?"#0ea5e9":"rgba(33,150,243,0.9)",N.lineWidth=J===d?2*W:1*W,N.strokeRect(z.rect.x,z.rect.y,z.rect.w,z.rect.h),J===d){N.fillStyle="#0ea5e9";const Bt=6*W,$l=Bt/2;[[z.rect.x,z.rect.y],[z.rect.x+z.rect.w,z.rect.y],[z.rect.x,z.rect.y+z.rect.h],[z.rect.x+z.rect.w,z.rect.y+z.rect.h]].forEach(([Ae,Il])=>{N.fillRect(Ae-$l,Il-$l,Bt,Bt)})}N.restore()}};if(X.value.forEach(T),Ht.value){const z=Ht.value;N.setLineDash([6*W,4*W]),N.strokeStyle=g.value===y.REDACT?"black":"goldenrod",N.strokeRect(z.x,z.y,z.w,z.h),N.setLineDash([])}},v9=(d,Z,N)=>{const W=Z.split(/\s+/),T=[];let z="";for(const J of W){const ne=z?z+" "+J:J;d.measureText(ne).width<=N||z===""?z=ne:(T.push(z),z=J)}return z&&T.push(z),T},L9=d=>{let Z=d.toString().trim();Z.startsWith("#")&&(Z=Z.slice(1)),Z.length===3&&(Z=Z.split("").map(J=>J+J).join(""));const N=parseInt(Z||"000000",16),W=(N>>16&255)/255,T=(N>>8&255)/255,z=(N&255)/255;return{r:W,g:T,b:z}},D9=(d,Z,N,W)=>{const T=String(Z).split(/\s+/),z=[];let J="";for(const ne of T){const pe=J?J+" "+ne:ne;d.widthOfTextAtSize(pe,N)<=W||J===""?J=pe:(z.push(J),J=ne)}return J&&z.push(J),z},R9=(d,Z,N,W)=>{d.save(),d.translate(Z,N),d.fillStyle="#FFEB3B",d.strokeStyle="#FBC02D",d.lineWidth=2,d.beginPath(),d.rect(0,0,W,W),d.fill(),d.stroke(),d.beginPath(),d.moveTo(W*.6,0),d.lineTo(W,W*.4),d.lineTo(W*.6,W*.4),d.closePath(),d.fillStyle="#FDD835",d.fill(),d.restore()},k9=async()=>{if(!(!o.value||!u.value)){n.value=!0;try{const d=await We.PDFDocument.load(o.value),Z=u.value.pageIndex;let N=d.getPage(Z);const{width:W,height:T}=N.getSize(),z=ie();if(!z)throw new Error(t("pdfTools.pdfRenderCanvasNotFound"));if(X.value.some(Ae=>Ae.type===y.REDACT)){if(!window.confirm(t("pdfTools.redactFlattenConfirm"))){n.value=!1;return}const Il=Math.max(2,Math.ceil(z.width/z.getBoundingClientRect().width||window.devicePixelRatio||1)),Et=document.createElement("canvas"),jc=z.width/z.height;Et.width=Math.round(z.width*Il),Et.height=Math.round(z.height*Il);const Oa=Et.getContext("2d");Oa.imageSmoothingEnabled=!1,Oa.drawImage(z,0,0,z.width,z.height,0,0,Et.width,Et.height);const Ro=Et.toDataURL("image/jpeg",.5),ko=await(await fetch(Ro)).arrayBuffer(),Co=await d.embedJpg(ko),ql=d.insertPage(Z+1,[W,T]);ql.drawImage(Co,{x:0,y:0,width:W,height:T}),N=ql}const ne=z.getBoundingClientRect(),pe=z.width,Ve=z.height,Re=window.devicePixelRatio||1,Qt=pe/ne.width,wl=Ve/ne.height,Bt=W/pe,$l=T/Ve;for(const Ae of X.value){const Il=Ae.rect.x/Re,Et=Ae.rect.y/Re,jc=Ae.rect.w/Re,Oa=Ae.rect.h/Re,Ro=Il*Qt,ko=Et*wl,Co=jc*Qt,ql=Oa*wl,ea=Co*Bt,fl=ql*$l,vl=Ro*Bt,ml=T-(ko+ql)*$l;if(Ae.type===y.REDACT)N.drawRectangle({x:vl,y:ml,width:ea,height:fl,color:We.rgb(0,0,0)});else if(Ae.type===y.HIGHLIGHT)N.drawRectangle({x:vl,y:ml,width:ea,height:fl,color:We.rgb(1,.92,.23),opacity:.4});else if(Ae.type===y.COMMENT){if(N.drawRectangle({x:vl,y:ml,width:Math.max(14,ea),height:Math.max(14,fl),color:We.rgb(1,.92,.23),opacity:.9}),Ae.payload?.text){const ot=String(Ae.payload.text).slice(0,200);N.drawText(`Note: ${ot}`,{x:vl+2,y:ml+fl+2,size:8,color:We.rgb(.2,.2,.2)})}}else if(Ae.type===y.IMAGE){let ot=null;if(Ae.payload?.file?ot=await Ae.payload.file.arrayBuffer():Ae.payload?.signature&&(ot=Ae.payload.signature),ot){let ta;try{ta=await d.embedPng(ot)}catch{ta=await d.embedJpg(ot)}N.drawImage(ta,{x:vl,y:ml,width:ea,height:fl,opacity:.98})}}else if(Ae.type===y.TEXT){const ot=Ae.payload||{},ta=ot.font==="TimesRoman"?We.StandardFonts.TimesRoman:ot.font==="Courier"?We.StandardFonts.Courier:We.StandardFonts.Helvetica,Gc=await d.embedFont(ta),ja=Math.max(6,Number(ot.size)||18),{r:H9,g:Q9,b:B9}=L9(ot.color||"#000000"),Fo=2,E9=Math.max(1,ea-2*Fo),P9=D9(Gc,String(ot.text||""),ja,E9);let Vo=ml+fl-ja-Fo;for(const _9 of P9)if(N.drawText(_9,{x:vl+Fo,y:Vo,size:ja,color:We.rgb(H9,Q9,B9)}),Vo-=ja*1.2,Vo<ml)break}}const Do=X.value.some(Ae=>Ae.type===y.REDACT);Do&&d.removePage(Z),await Ue(d,{updatePages:Do}),X.value=[],a.toast.add({severity:"success",summary:t("pdfTools.common.success"),detail:t("pdfTools.pageEditor.applySuccess"),life:2e3})}catch(d){console.error("Error applying overlay edits:",d),a.toast.add({severity:"error",summary:t("pdfTools.common.error"),detail:t("pdfTools.pageEditor.applyError"),life:3e3})}finally{n.value=!1}}};e.watch(b,()=>setTimeout(Ne,0)),e.watch(u,()=>setTimeout(Ne,0)),typeof window<"u"&&window.addEventListener("resize",()=>setTimeout(Ne,0));const C9=()=>{b.value=1,setTimeout(Ne,0)},F9=()=>{const d=I.value;if(!d)return;const Z=window.devicePixelRatio||1,N=440,W=180;d.style.width=N+"px",d.style.height=W+"px",d.width=Math.round(N*Z),d.height=Math.round(W*Z);const T=d.getContext("2d");T.fillStyle="#fff",T.fillRect(0,0,d.width,d.height)},V9=()=>{Oc(),j.value=!1},zc=d=>{D=!0,K=Mc(d)},Ac=d=>{if(!D)return;const Z=Mc(d);J9(K,Z),K=Z},x9=d=>zc(d.touches[0]),S9=d=>Ac(d.touches[0]),Lo=()=>{D=!1,K=null},Mc=d=>{const N=I.value.getBoundingClientRect(),W=window.devicePixelRatio||1,T=d.clientX??d.pageX,z=d.clientY??d.pageY;return{x:(T-N.left)*W,y:(z-N.top)*W}},J9=(d,Z)=>{const W=I.value.getContext("2d");W.strokeStyle="#111827",W.lineWidth=3*(window.devicePixelRatio||1),W.lineCap="round",W.beginPath(),W.moveTo(d.x,d.y),W.lineTo(Z.x,Z.y),W.stroke()},Oc=()=>{const d=I.value;if(!d)return;const Z=d.getContext("2d");Z.fillStyle="#fff",Z.fillRect(0,0,d.width,d.height)},U9=()=>{const d=I.value;d&&d.toBlob(async Z=>{A.value=await Z.arrayBuffer(),g.value=y.IMAGE,j.value=!1})};return e.watch(j,d=>{d&&setTimeout(F9,0)}),e.watch(ct,async d=>{if(!d){Fe.value=0;return}try{const Z=await d;Fe.value=Z.numPages}catch(Z){console.error("Error loading preview PDF:",Z),Fe.value=0}}),(d,Z)=>{const N=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock("div",bh,[e.createElementVNode("h1",null,[e.createTextVNode(e.toDisplayString(d.$t("pdfTools.title"))+" ",1),He.value?(e.openBlock(),e.createElementBlock("span",mh,"— "+e.toDisplayString(He.value),1)):e.createCommentVNode("",!0)]),n.value?(e.openBlock(),e.createElementBlock("div",ph,[e.createVNode(e.unref(bt)),e.createElementVNode("p",null,e.toDisplayString(d.$t("pdfTools.loading")),1)])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("div",uh,[e.createVNode(e.unref(Wt),{severity:"error"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value),1)]),_:1})])):e.createCommentVNode("",!0),!n.value&&!c.value?(e.openBlock(),e.createElementBlock("div",Zh,[e.createElementVNode("div",hh,[e.createElementVNode("div",yh,[e.createElementVNode("h2",null,e.toDisplayString(d.$t("pdfTools.sidebar.actions")),1),e.createElementVNode("div",Wh,[e.createVNode(e.unref(w),{icon:"ri-save-2-line",label:d.$t("pdfTools.sidebar.saveNewVersion"),onClick:nl},null,8,["label"]),e.createVNode(e.unref(w),{class:"p-button-secondary mt-2",icon:"ri-file-copy-2-line",label:d.$t("pdfTools.sidebar.saveAs"),onClick:Z[0]||(Z[0]=W=>cl("saveAs"))},null,8,["label"]),e.createVNode(e.unref(Ll)),e.createElementVNode("div",gh,[e.createElementVNode("h3",null,e.toDisplayString(d.$t("pdfTools.sidebar.extractPages")),1),e.createVNode(e.unref(w),{disabled:m.value.length===0,icon:"ri-file-transfer-line",label:d.$t("pdfTools.sidebar.extractAndSave"),onClick:Z[1]||(Z[1]=W=>cl("extract"))},null,8,["disabled","label"])]),e.createElementVNode("div",Yh,[e.createElementVNode("h3",null,e.toDisplayString(d.$t("pdfTools.sidebar.deletePages")),1),e.createVNode(e.unref(w),{disabled:m.value.length===0||s.value.length===m.value.length,class:"p-button-danger",icon:"ri-delete-bin-line",label:d.$t("pdfTools.sidebar.deleteSelectedPages"),onClick:Pe},null,8,["disabled","label"])]),e.createElementVNode("div",Nh,[e.createElementVNode("h3",null,e.toDisplayString(d.$t("pdfTools.sidebar.insertPdf")),1),e.createElementVNode("div",Xh,[e.createVNode(e.unref(aa),{auto:!1,customUpload:!1,showCancelButton:!1,showUploadButton:!1,accept:"application/pdf","choose-label":d.$t("pdfTools.sidebar.fromComputer"),class:"p-button-secondary w-full",mode:"basic",name:"pdfToInsert",onSelect:ht},null,8,["choose-label"]),e.createVNode(e.unref(w),{class:"p-button-secondary",icon:"ri-cloud-line",label:d.$t("pdfTools.sidebar.fromPristy"),onClick:il},null,8,["label"])])]),e.createElementVNode("div",zh,[e.createElementVNode("h3",null,e.toDisplayString(d.$t("pdfTools.sidebar.addWatermark")),1),e.createVNode(e.unref(Me),{modelValue:f.value,"onUpdate:modelValue":Z[2]||(Z[2]=W=>f.value=W),placeholder:d.$t("pdfTools.sidebar.watermarkTextPlaceholder"),type:"text"},null,8,["modelValue","placeholder"]),e.createElementVNode("div",Ah,[e.createElementVNode("div",Mh,[e.createVNode(e.unref(pl),{modelValue:R.value,"onUpdate:modelValue":Z[3]||(Z[3]=W=>R.value=W),max:360,min:-360,placeholder:d.$t("pdfTools.sidebar.angle"),suffix:"°"},null,8,["modelValue","placeholder"])]),e.createElementVNode("div",Oh,[e.createVNode(e.unref(pl),{modelValue:te.value,"onUpdate:modelValue":Z[4]||(Z[4]=W=>te.value=W),max:10,min:1,placeholder:d.$t("pdfTools.sidebar.repetitions")},null,8,["modelValue","placeholder"])])]),e.createVNode(e.unref(w),{disabled:!f.value||m.value.length===0,class:"p-button-secondary mt-2",icon:"ri-paint-brush-line",label:d.$t("pdfTools.sidebar.addWatermarkButton"),onClick:_l},null,8,["disabled","label"])])])])]),e.createElementVNode("div",jh,[e.createElementVNode("h2",null,e.toDisplayString(d.$t("pdfTools.pagePreview.title")),1),e.createVNode(e.unref(Ko.VueDraggableNext),{modelValue:s.value,"onUpdate:modelValue":Z[5]||(Z[5]=W=>s.value=W),class:"grid","ghost-class":"ghost","item-key":"pageIndex",onEnd:Gl},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,W=>(e.openBlock(),e.createElementBlock("div",{key:W.pageIndex,class:"col-3"},[e.createElementVNode("div",{class:e.normalizeClass([{selected:ol(W)},"page-thumbnail"]),onClick:T=>Ml(W),onDblclick:e.withModifiers(T=>It(W),["stop"])},[e.createElementVNode("div",Th,[e.createVNode(e.unref(Lt),{binary:"","model-value":ol(W)},null,8,["model-value"])]),e.createElementVNode("div",wh,[e.createVNode(e.unref(w),{class:"p-button-rounded p-button-text",icon:"ri-clockwise-line","aria-label":d.$t("pdf.rotationRigth"),onClick:e.withModifiers(T=>sl(W),["stop"])},null,8,["aria-label","onClick"]),e.createVNode(e.unref(w),{"aria-label":d.$t("pdfTools.pagePreview.openPagePreview",{pageNumber:W.pageNumber}),class:"p-button-rounded p-button-text",icon:"ri-edit-box-line",onClick:e.withModifiers(T=>It(W),["stop"])},null,8,["aria-label","onClick"])]),e.createElementVNode("div",Ih,[e.createVNode(e.unref(vt.VuePDF),{annotations:!1,page:W.pageNumber,pdf:e.unref(Ee),scale:.25,text:!1},null,8,["page","pdf"])]),e.createElementVNode("div",fh,e.toDisplayString(W.pageNumber),1)],42,Gh)]))),128))]),_:1},8,["modelValue"])])])):e.createCommentVNode("",!0),e.createVNode(e.unref(ke),{visible:h.value,"onUpdate:visible":Z[14]||(Z[14]=W=>h.value=W),breakpoints:{"960px":"95vw","640px":"100vw"},dismissableMask:"",modal:"",class:"dialog-page-editor","content-class":"page-editor-dialog",onHide:lt},{header:e.withCtx(()=>[e.createElementVNode("div",vh,[Z[21]||(Z[21]=e.createElementVNode("i",{class:"ri-file-fill","aria-hidden":"true"},null,-1)),e.createElementVNode("span",null,e.toDisplayString(d.$t("pdfTools.pageEditor.title",{pageNumber:(u.value||r.value)?.pageNumber||"",filename:He.value})),1)])]),footer:e.withCtx(()=>[e.createElementVNode("div",Hh,[e.createElementVNode("small",null,e.toDisplayString(d.$t("pdfTools.pageEditor.footerHint")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",Lh,[e.createVNode(e.unref(w),{class:"p-button-text",icon:"ri-zoom-out-line","aria-label":d.$t("pdf.dezoom"),onClick:vo},null,8,["aria-label"]),e.createVNode(e.unref(w),{class:"p-button-text",icon:"ri-zoom-in-line","aria-label":d.$t("pdf.zoom"),onClick:Ma},null,8,["aria-label"]),e.createVNode(e.unref(w),{class:"p-button-text",label:d.$t("pdfTools.pageEditor.fit"),onClick:C9},null,8,["label"]),e.createElementVNode("span",Dh,e.toDisplayString(Math.round(b.value*100))+"%",1),Z[22]||(Z[22]=e.createElementVNode("span",{class:"spacer"},null,-1)),e.createVNode(e.unref(w),{class:"p-button-text",icon:"ri-close-line",label:d.$t("pdfTools.pageEditor.close"),onClick:lt},null,8,["label"])]),e.createElementVNode("div",Rh,[e.createElementVNode("div",kh,[e.createElementVNode("h4",null,e.toDisplayString(d.$t("pdfTools.pageEditor.tools.actions")),1),e.createVNode(e.unref(w),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:g.value===y.SELECT}]]),icon:"ri-cursor-line",label:d.$t("pdfTools.pageEditor.tools.select"),onClick:Z[6]||(Z[6]=W=>dl(y.SELECT))},null,8,["class","label"]),e.createVNode(e.unref(w),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:g.value===y.REDACT}]]),icon:"ri-eraser-fill",label:d.$t("pdfTools.pageEditor.tools.redact"),onClick:Z[7]||(Z[7]=W=>dl(y.REDACT))},null,8,["class","label"]),e.createVNode(e.unref(w),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:g.value===y.HIGHLIGHT}]]),icon:"ri-mark-pen-line",label:d.$t("pdfTools.pageEditor.tools.highlight"),onClick:Z[8]||(Z[8]=W=>dl(y.HIGHLIGHT))},null,8,["class","label"]),e.createVNode(e.unref(w),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:g.value===y.COMMENT}]]),icon:"ri-sticky-note-line",label:d.$t("pdfTools.pageEditor.tools.comment"),onClick:Z[9]||(Z[9]=W=>dl(y.COMMENT))},null,8,["class","label"]),e.createVNode(e.unref(aa),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:g.value===y.IMAGE}]]),accept:"image/*","choose-label":d.$t("pdfTools.pageEditor.tools.image"),mode:"basic",name:"image",onSelect:Tl},null,8,["class","choose-label"]),e.createVNode(e.unref(w),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:g.value===y.SIGNATURE}]]),icon:"ri-ball-pen-line",label:d.$t("pdfTools.pageEditor.tools.signature"),onClick:Y},null,8,["class","label"]),e.createVNode(e.unref(w),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:g.value===y.TEXT}]]),icon:"ri-font-size",label:d.$t("pdfTools.pageEditor.tools.text"),onClick:Z[10]||(Z[10]=W=>dl(y.TEXT))},null,8,["class","label"]),g.value===y.TEXT?(e.openBlock(),e.createElementBlock("div",Ch,[e.createElementVNode("div",Fh,[e.createElementVNode("label",Vh,e.toDisplayString(d.$t("pdfTools.pageEditor.tools.font")),1),e.createVNode(e.unref(gt),{modelValue:S.value,"onUpdate:modelValue":Z[11]||(Z[11]=W=>S.value=W),options:le,class:"w-full",optionLabel:"label",optionValue:"value"},null,8,["modelValue"])]),e.createElementVNode("div",xh,[e.createElementVNode("label",Sh,e.toDisplayString(d.$t("pdfTools.pageEditor.tools.size")),1),e.createVNode(e.unref(pl),{modelValue:oe.value,"onUpdate:modelValue":Z[12]||(Z[12]=W=>oe.value=W),max:144,min:6},null,8,["modelValue"])]),e.createElementVNode("div",Jh,[e.createElementVNode("label",Uh,e.toDisplayString(d.$t("pdfTools.pageEditor.tools.color")),1),e.createVNode(e.unref(Me),{modelValue:Ie.value,"onUpdate:modelValue":Z[13]||(Z[13]=W=>Ie.value=W),class:"w-full",placeholder:"#000000"},null,8,["modelValue"])])])):e.createCommentVNode("",!0),e.createVNode(e.unref(Ll)),e.createVNode(e.unref(w),{disabled:X.value.length===0,class:"p-button-info mt-auto w-full",icon:"ri-check-line",label:d.$t("pdfTools.pageEditor.apply"),onClick:k9},null,8,["disabled","label"]),e.createVNode(e.unref(w),{disabled:X.value.length===0,class:"p-button-warning mt-1 w-full",icon:"ri-arrow-go-back-line",label:d.$t("pdfTools.pageEditor.cancel"),onClick:v},null,8,["disabled","label"])]),e.createElementVNode("div",{class:"page-editor-canvas",onWheelPassive:Ne,onScrollPassive:Ne},[e.createElementVNode("div",{ref_key:"pdfCanvasWrapper",ref:F,class:"pdf-canvas-wrapper"},[e.unref(Ee)&&(u.value||r.value)?(e.openBlock(),e.createBlock(e.unref(vt.VuePDF),{key:0,annotations:!1,page:(u.value||r.value).pageNumber,pdf:e.unref(Ee),scale:b.value,text:!1,class:"absolute"},null,8,["page","pdf","scale"])):e.createCommentVNode("",!0),e.createElementVNode("canvas",{ref_key:"overlayCanvas",ref:U,class:"overlay-canvas",onMousedown:T9,onMouseleave:f9,onMousemove:w9,onMouseup:I9},null,544)],512)],32)])]),_:1},8,["visible"]),e.createVNode(e.unref(ke),{visible:j.value,"onUpdate:visible":Z[15]||(Z[15]=W=>j.value=W),modal:"",class:"dialog-signature-pad",onHide:V9},{header:e.withCtx(()=>[e.createElementVNode("div",Qh,[Z[23]||(Z[23]=e.createElementVNode("i",{class:"ri-ball-pen-line","aria-hidden":"true"},null,-1)),e.createElementVNode("span",null,e.toDisplayString(d.$t("pdfTools.signaturePad.title")),1)])]),footer:e.withCtx(()=>[e.createElementVNode("div",Eh,[e.createVNode(e.unref(w),{class:"p-button-text",label:d.$t("pdfTools.signaturePad.clear"),onClick:Oc},null,8,["label"]),e.createVNode(e.unref(w),{class:"p-button-text",label:d.$t("pdfTools.signaturePad.use"),onClick:U9},null,8,["label"])])]),default:e.withCtx(()=>[e.createElementVNode("div",Bh,[e.createElementVNode("canvas",{ref_key:"signaturePadCanvas",ref:I,class:"signature-canvas",onMousedown:zc,onMouseleave:Lo,onMousemove:Ac,onMouseup:Lo,onTouchstart:e.withModifiers(x9,["prevent"]),onTouchmove:e.withModifiers(S9,["prevent"]),onTouchend:e.withModifiers(Lo,["prevent"])},null,544)])]),_:1},8,["visible"]),e.createVNode(dh,{"default-filename":Je.value,visible:Te.value,"parent-folder-node":Be.value,onClose:Z[16]||(Z[16]=W=>Te.value=!1),onSave:rl},null,8,["default-filename","visible","parent-folder-node"]),e.createVNode(e.unref(ke),{visible:k.value,modal:"",header:d.$t("pdfTools.insertFromAlfresco.title"),class:"dialog-insert-pdf","onUpdate:visible":Z[20]||(Z[20]=W=>k.value=!1)},{footer:e.withCtx(()=>[e.createElementVNode("div",f5,[e.createElementVNode("div",v5,[ee.value?(e.openBlock(),e.createElementBlock("div",L5,[e.createElementVNode("span",D5,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.selected")),1),e.withDirectives((e.openBlock(),e.createElementBlock("span",R5,[e.createTextVNode(e.toDisplayString(ee.value?.name),1)])),[[N,ee.value?.name,void 0,{top:!0}]])])):e.createCommentVNode("",!0),E.value?(e.openBlock(),e.createElementBlock("div",k5,e.toDisplayString(E.value),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",C5,[e.createVNode(e.unref(w),{label:d.$t("pdfTools.insertFromAlfresco.cancel"),class:"p-button-text",onClick:Z[19]||(Z[19]=W=>k.value=!1)},null,8,["label"]),e.createVNode(e.unref(w),{disabled:!ce.value,label:d.$t("pdfTools.insertFromAlfresco.insert"),icon:"ri-add-line",onClick:El},null,8,["disabled","label"])])])]),default:e.withCtx(()=>[e.createVNode(e.unref(xo),{onTabChange:Bl},{default:e.withCtx(()=>[e.createVNode(e.unref(kl),{header:d.$t("pdfTools.insertFromAlfresco.browse")},{default:e.withCtx(()=>[e.createVNode(qt,{showUserHome:"",showFiles:"",onSelectNode:me})]),_:1},8,["header"]),e.createVNode(e.unref(kl),{header:d.$t("pdfTools.insertFromAlfresco.search")},{default:e.withCtx(()=>[e.createElementVNode("div",Ph,[e.createVNode(e.unref(Me),{modelValue:ze.value,"onUpdate:modelValue":Z[17]||(Z[17]=W=>ze.value=W),placeholder:d.$t("pdfTools.insertFromAlfresco.searchPlaceholder"),onKeyup:e.withKeys(be,["enter"])},null,8,["modelValue","placeholder"]),e.createVNode(e.unref(w),{icon:"ri-search-line","aria-label":d.$t("search"),onClick:be},null,8,["aria-label"])]),ut.value?(e.openBlock(),e.createElementBlock("div",_h,[e.createVNode(e.unref(bt),{class:"spinner-sm",strokeWidth:"8"}),e.createElementVNode("span",null,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.searching")),1)])):!fe.value.length&&et.value?(e.openBlock(),e.createElementBlock("div",Kh,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.noPdfFound")),1)):fe.value.length?(e.openBlock(),e.createElementBlock("div",$h,[e.createElementVNode("div",qh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(fe.value,W=>(e.openBlock(),e.createElementBlock("div",{key:W.id,class:e.normalizeClass(["favorite-item",{"favorite-item-selected":ee.value?.id===W.id}]),onClick:T=>O(W)},[e.createElementVNode("div",t5,[Z[24]||(Z[24]=e.createElementVNode("i",{class:"ri-file-pdf-line","aria-hidden":"true"},null,-1)),e.withDirectives((e.openBlock(),e.createElementBlock("span",l5,[e.createTextVNode(e.toDisplayString(W.name),1)])),[[N,W.name,void 0,{top:!0}]])])],10,e5))),128))]),e.createElementVNode("div",a5,[ee.value?Zt.value?(e.openBlock(),e.createElementBlock("div",i5,[e.createVNode(e.unref(bt),{class:"w-3rem h-3rem",strokeWidth:"6"}),e.createElementVNode("p",n5,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.loadingPreview")),1)])):e.unref(ct)?(e.openBlock(),e.createElementBlock("div",c5,[Fe.value>0?(e.openBlock(),e.createElementBlock("div",r5,[e.createVNode(e.unref(w),{icon:"ri-arrow-left-s-line","aria-label":d.$t("pdf.previousPage"),class:"p-button-text p-button-sm",disabled:Le.value<=1,onClick:se},null,8,["aria-label","disabled"]),e.createElementVNode("span",d5,e.toDisplayString(Le.value)+" / "+e.toDisplayString(Fe.value),1),e.createVNode(e.unref(w),{icon:"ri-arrow-right-s-line","aria-label":d.$t("pdf.nextPage"),class:"p-button-text p-button-sm",disabled:Le.value>=Fe.value,onClick:_},null,8,["aria-label","disabled"])])):e.createCommentVNode("",!0),e.createElementVNode("div",b5,[e.createVNode(e.unref(vt.VuePDF),{pdf:e.unref(ct),page:Le.value,scale:.6,annotations:!1,text:!1},null,8,["pdf","page"])])])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",o5,[Z[25]||(Z[25]=e.createElementVNode("i",{class:"ri-file-pdf-line text-6xl text-color-secondary","aria-hidden":"true"},null,-1)),e.createElementVNode("p",s5,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.selectPdfToPreview")),1)]))])])):e.createCommentVNode("",!0)]),_:1},8,["header"]),e.createVNode(e.unref(kl),{header:d.$t("pdfTools.insertFromAlfresco.favorites")},{default:e.withCtx(()=>[At.value?(e.openBlock(),e.createElementBlock("div",m5,[e.createVNode(e.unref(bt),{class:"spinner-sm",strokeWidth:"8"}),e.createElementVNode("span",null,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.loading")),1)])):tt.value.length?(e.openBlock(),e.createElementBlock("div",u5,[e.createElementVNode("div",Z5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(tt.value,W=>(e.openBlock(),e.createElementBlock("div",{key:W.id,class:e.normalizeClass(["favorite-item",{"favorite-item-selected":ee.value?.id===W.id}]),onClick:T=>O(W)},[e.createElementVNode("div",y5,[Z[26]||(Z[26]=e.createElementVNode("i",{class:"ri-file-pdf-line","aria-hidden":"true"},null,-1)),e.withDirectives((e.openBlock(),e.createElementBlock("span",W5,[e.createTextVNode(e.toDisplayString(W.name),1)])),[[N,W.name,void 0,{top:!0}]])])],10,h5))),128))]),e.createElementVNode("div",g5,[ee.value?Zt.value?(e.openBlock(),e.createElementBlock("div",X5,[e.createVNode(e.unref(bt),{class:"w-3rem h-3rem",strokeWidth:"6"}),e.createElementVNode("p",z5,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.loadingPreview")),1)])):e.unref(ct)?(e.openBlock(),e.createElementBlock("div",A5,[Fe.value>0?(e.openBlock(),e.createElementBlock("div",M5,[e.createVNode(e.unref(w),{icon:"ri-arrow-left-s-line","aria-label":d.$t("pdf.previousPage"),class:"p-button-text p-button-sm",disabled:Le.value<=1,onClick:se},null,8,["aria-label","disabled"]),e.createElementVNode("span",O5,e.toDisplayString(Le.value)+" / "+e.toDisplayString(Fe.value),1),e.createVNode(e.unref(w),{icon:"ri-arrow-right-s-line","aria-label":d.$t("pdf.nextPage"),class:"p-button-text p-button-sm",disabled:Le.value>=Fe.value,onClick:_},null,8,["aria-label","disabled"])])):e.createCommentVNode("",!0),e.createElementVNode("div",j5,[e.createVNode(e.unref(vt.VuePDF),{pdf:e.unref(ct),page:Le.value,scale:.6,annotations:!1,text:!1},null,8,["pdf","page"])])])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Y5,[Z[27]||(Z[27]=e.createElementVNode("i",{class:"ri-file-pdf-line text-6xl text-color-secondary","aria-hidden":"true"},null,-1)),e.createElementVNode("p",N5,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.selectPdfToPreview")),1)]))])])):(e.openBlock(),e.createElementBlock("div",p5,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.noPdfFavorite")),1))]),_:1},8,["header"]),e.createVNode(e.unref(kl),{header:d.$t("pdfTools.insertFromAlfresco.linkOrId")},{default:e.withCtx(()=>[e.createElementVNode("div",G5,[e.createElementVNode("div",T5,[e.createElementVNode("label",w5,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.alfrescoIdUrl")),1),e.createVNode(e.unref(Me),{id:"alfrescoNodeId",modelValue:Q.value,"onUpdate:modelValue":Z[18]||(Z[18]=W=>Q.value=W),placeholder:d.$t("pdfTools.insertFromAlfresco.alfrescoIdUrlHint")},null,8,["modelValue","placeholder"]),e.createElementVNode("small",I5,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.alfrescoIdUrlHint")),1)])])]),_:1},8,["header"])]),_:1})]),_:1},8,["visible","header"])])}}},[["__scopeId","data-v-b1c995ff"]]),F5={class:"version-selectors"},V5={class:"version-selector-group"},x5={key:0,class:"flex align-items-center gap-2"},S5={key:1},J5={class:"flex align-items-center gap-2"},U5={class:"version-selector-group"},H5={key:0,class:"flex align-items-center gap-2"},Q5={key:1},B5={class:"flex align-items-center gap-2"},E5={key:0,class:"diff-content"},P5={class:"diff-headers"},_5={class:"header-a"},K5={class:"header-b"},$5={class:"diff-viewer"},q5={key:0,class:"loading-container"},ey={key:1,class:"error-container"},Ao=H({__name:"DiffViewerDialog",props:{visible:{type:Boolean,required:!0},contentNode:{type:Object,required:!0},versions:{type:Array,default:()=>[]},initialVersionId:{type:String,default:null}},emits:["update:visible","revertVersion"],setup(l,{emit:t}){const{t:a}=Pt.useI18n(),i=t2.useToast(),o=ya(),s=l,n=t,c=e.ref(s.visible),r=e.ref(null),m=e.ref(null),h=e.ref(""),u=e.ref(""),b=e.ref(!1),y=e.ref(null),g=e.ref(null),X=e.ref(null),M=e.computed(()=>{if(!s.versions)return[];const f=s.versions.map(R=>({label:`${a("diffViewer.version")} ${R.entry.id} (${new Date(R.entry.modifiedAt).toLocaleDateString()})`,id:R.entry.id})).reverse();return f.map((R,te)=>({...R,isCurrent:te===f.length-1}))}),A=e.computed(()=>M.value.filter(f=>f.id!==m.value)),F=e.computed(()=>M.value.filter(f=>f.id!==r.value)),U=e.computed(()=>{switch(s.contentNode?.content?.mimeType||""){case"text/html":return[Eo.html()];case"text/markdown":case"text/x-markdown":return[oa.markdown()];case"application/json":return[fa.json()];case"application/xml":case"text/xml":return[va.xml()];case"application/x-yaml":case"text/yaml":return[sa.yaml()];default:return[]}}),j=f=>{c.value=f,n("update:visible",f)},I=async()=>{if(!(!r.value||!m.value)){b.value=!0,y.value=null;try{const[f,R]=await Promise.all([V.getVersionContent(s.contentNode.id,r.value),V.getVersionContent(s.contentNode.id,m.value)]);let te=await f.text(),le=await R.text();if(s.contentNode?.content?.mimeType==="application/json")try{te=JSON.stringify(JSON.parse(te),null,2),le=JSON.stringify(JSON.parse(le),null,2)}catch(S){console.error("Failed to format JSON:",S)}h.value=te,u.value=le,b.value=!1,await e.nextTick(),D()}catch(f){console.error("Error fetching versions:",f),y.value=a("diffViewer.errors.loadError"),b.value=!1}}},D=()=>{if(X.value&&(X.value.destroy(),X.value=null),!g.value||!h.value&&!u.value)return;const f=o.dark?Bo.oneDark:_t.syntaxHighlighting(_t.defaultHighlightStyle,{fallback:!0}),R=[we.lineNumbers(),...U.value,f,Ot.EditorState.readOnly.of(!0)];try{X.value=new Uc.MergeView({a:{doc:h.value,extensions:R},b:{doc:u.value,extensions:R},parent:g.value})}catch(te){console.error("Error creating MergeView:",te),y.value="Failed to create diff view: "+te.message}},K=()=>{if(M.value.length>=2){const f=M.value.length;s.initialVersionId&&M.value.some(R=>R.id===s.initialVersionId)?(r.value=s.initialVersionId,m.value=M.value[f-1]?.id===s.initialVersionId?M.value[f-2]?.id:M.value[f-1]?.id):(r.value=M.value[f-2]?.id,m.value=M.value[f-1]?.id)}},x=f=>M.value.find(R=>R.id===f)?.isCurrent,C=async f=>{const R=a("diffViewer.restoredVersionComment",{versionNumber:f});try{await V.revertVersion(s.contentNode.id,f,R),n("revertVersion"),i.add({severity:"success",summary:a("diffViewer.revertVersion.success"),detail:a("diffViewer.revertVersion.successDetail"),life:3e3}),j(!1)}catch(te){console.error("Error reverting version:",te),i.add({severity:"error",summary:a("diffViewer.revertVersion.error"),detail:te.message,life:3e3})}};return e.watch(()=>s.visible,f=>{c.value=f,f?K():(X.value&&(X.value.destroy(),X.value=null),r.value=null,m.value=null,h.value="",u.value="",y.value=null)}),e.watch([r,m],()=>{r.value&&m.value&&I()}),e.watch(()=>s.versions,f=>{f&&f.length>=2&&c.value&&K()},{deep:!0}),(f,R)=>{const te=e.resolveDirective("tooltip");return e.openBlock(),e.createBlock(e.unref(ke),{visible:c.value,"onUpdate:visible":[R[4]||(R[4]=le=>c.value=le),j],header:f.$t("diffViewer.compareTitle"),modal:"",maximizable:"",class:"diff-viewer-dialog"},{default:e.withCtx(()=>[e.createElementVNode("div",F5,[e.createElementVNode("div",V5,[e.createVNode(e.unref(gt),{modelValue:r.value,"onUpdate:modelValue":R[0]||(R[0]=le=>r.value=le),options:A.value,"option-label":"label","option-value":"id",placeholder:f.$t("diffViewer.selectVersionA"),class:"flex-grow-1"},{value:e.withCtx(le=>[le.value?(e.openBlock(),e.createElementBlock("div",x5,[e.createElementVNode("span",null,e.toDisplayString(M.value.find(S=>S.id===le.value)?.label),1),M.value.find(S=>S.id===le.value)?.isCurrent?(e.openBlock(),e.createBlock(e.unref(Fl),{key:0,value:f.$t("diffViewer.currentVersion"),severity:"info"},null,8,["value"])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("span",S5,e.toDisplayString(le.placeholder),1))]),option:e.withCtx(le=>[e.createElementVNode("div",J5,[e.createElementVNode("span",null,e.toDisplayString(le.option.label),1),le.option.isCurrent?(e.openBlock(),e.createBlock(e.unref(Fl),{key:0,value:f.$t("diffViewer.currentVersion"),severity:"info"},null,8,["value"])):e.createCommentVNode("",!0)])]),_:1},8,["modelValue","options","placeholder"]),r.value&&!x(r.value)?e.withDirectives((e.openBlock(),e.createBlock(e.unref(w),{key:0,type:"button",icon:"ri-history-line","aria-label":f.$t("diffViewer.revertToThisVersion",{versionNumber:r.value}),onClick:R[1]||(R[1]=le=>C(r.value)),severity:"secondary",rounded:"",text:""},null,8,["aria-label"])),[[te,f.$t("diffViewer.revertToThisVersion",{versionNumber:r.value}),void 0,{top:!0}]]):e.createCommentVNode("",!0)]),e.createElementVNode("div",U5,[e.createVNode(e.unref(gt),{modelValue:m.value,"onUpdate:modelValue":R[2]||(R[2]=le=>m.value=le),options:F.value,"option-label":"label","option-value":"id",placeholder:f.$t("diffViewer.selectVersionB"),class:"flex-grow-1"},{value:e.withCtx(le=>[le.value?(e.openBlock(),e.createElementBlock("div",H5,[e.createElementVNode("span",null,e.toDisplayString(M.value.find(S=>S.id===le.value)?.label),1),M.value.find(S=>S.id===le.value)?.isCurrent?(e.openBlock(),e.createBlock(e.unref(Fl),{key:0,value:f.$t("diffViewer.currentVersion"),severity:"info"},null,8,["value"])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("span",Q5,e.toDisplayString(le.placeholder),1))]),option:e.withCtx(le=>[e.createElementVNode("div",B5,[e.createElementVNode("span",null,e.toDisplayString(le.option.label),1),le.option.isCurrent?(e.openBlock(),e.createBlock(e.unref(Fl),{key:0,value:f.$t("diffViewer.currentVersion"),severity:"info"},null,8,["value"])):e.createCommentVNode("",!0)])]),_:1},8,["modelValue","options","placeholder"]),m.value&&!x(m.value)?e.withDirectives((e.openBlock(),e.createBlock(e.unref(w),{key:0,type:"button",icon:"ri-history-line","aria-label":f.$t("diffViewer.revertToThisVersion",{versionNumber:m.value}),onClick:R[3]||(R[3]=le=>C(m.value)),severity:"secondary",rounded:"",text:""},null,8,["aria-label"])),[[te,f.$t("diffViewer.revertToThisVersion",{versionNumber:m.value}),void 0,{top:!0}]]):e.createCommentVNode("",!0)])]),r.value&&m.value?(e.openBlock(),e.createElementBlock("div",E5,[e.createElementVNode("div",P5,[e.createElementVNode("div",_5,[e.createElementVNode("strong",null,e.toDisplayString(f.$t("diffViewer.version"))+" "+e.toDisplayString(r.value),1)]),e.createElementVNode("div",K5,[e.createElementVNode("strong",null,e.toDisplayString(f.$t("diffViewer.version"))+" "+e.toDisplayString(m.value),1)])]),e.createElementVNode("div",$5,[b.value?(e.openBlock(),e.createElementBlock("div",q5,[e.createVNode(e.unref(bt))])):y.value?(e.openBlock(),e.createElementBlock("div",ey,[R[5]||(R[5]=e.createElementVNode("i",{class:"ri-error-warning-line mr-2 text-2xl","aria-hidden":"true"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(y.value),1)])):(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"mergeViewContainer",ref:g},null,512))])])):e.createCommentVNode("",!0)]),_:1},8,["visible","header"])}}},[["__scopeId","data-v-41095169"]]),ty={reconnectInterval:1e3,maxReconnectInterval:3e4,reconnectDecay:1.5,maxReconnectAttempts:10,heartbeatInterval:3e4,messageBufferSize:100},_e={DISCONNECTED:"disconnected",CONNECTING:"connecting",CONNECTED:"connected",RECONNECTING:"reconnecting",ERROR:"error"};function dc(l={}){const t={...ty,...l},a=e.ref(_e.DISCONNECTED),i=e.ref(null),o=e.ref(null),s=e.ref(0),n=e.shallowRef([]);let c=null,r=null,m=null,h=null,u=!1;const b={onConnected:[],onDisconnected:[],onMessage:[],onError:[],onReconnecting:[]},y=(R,te)=>(b[R]&&b[R].push(te),()=>g(R,te)),g=(R,te)=>{if(b[R]){const le=b[R].indexOf(te);le>-1&&b[R].splice(le,1)}},X=(R,...te)=>{b[R]&&b[R].forEach(le=>le(...te))},M=R=>new Promise((te,le)=>{if(c&&c.readyState===WebSocket.OPEN){te();return}h=R,u=!1,a.value=_e.CONNECTING;try{c=new WebSocket(R),c.onopen=()=>{a.value=_e.CONNECTED,s.value=0,i.value=null,j(),x(),X("onConnected"),te()},c.onclose=S=>{I(),o.value=S.code,a.value=_e.DISCONNECTED,u||(console.error(`[CollabWebSocket] Connection closed unexpectedly: code=${S.code}, reason="${S.reason}", wasClean=${S.wasClean}`),S.code===1009?a.value=_e.ERROR:D()),X("onDisconnected",S)},c.onerror=S=>{i.value=S,a.value=_e.ERROR,X("onError",S),le(S)},c.onmessage=S=>{try{const oe=JSON.parse(S.data);U(oe)}catch(oe){console.error("[CollabWebSocket] Failed to parse message:",oe)}}}catch(S){i.value=S,a.value=_e.ERROR,X("onError",S),le(S)}}),A=()=>{u=!0,I(),K(),c&&(c.close(1e3,"User disconnected"),c=null),a.value=_e.DISCONNECTED,n.value=[]},F=R=>{const te=JSON.stringify(R);return c&&c.readyState===WebSocket.OPEN?(c.send(te),!0):(n.value.length<t.messageBufferSize?n.value=[...n.value,te]:console.warn("[CollabWebSocket] Message buffer full, dropping message"),!1)},U=R=>{R.type!=="pong"&&X("onMessage",R)},j=()=>{I(),r=setInterval(()=>{c&&c.readyState===WebSocket.OPEN&&F({type:"ping"})},t.heartbeatInterval)},I=()=>{r&&(clearInterval(r),r=null)},D=()=>{if(s.value>=t.maxReconnectAttempts){console.error("[CollabWebSocket] Max reconnection attempts reached"),a.value=_e.ERROR;return}a.value=_e.RECONNECTING,s.value++;const R=Math.min(t.reconnectInterval*Math.pow(t.reconnectDecay,s.value-1),t.maxReconnectInterval);X("onReconnecting",s.value,R),m=setTimeout(()=>{h&&!u&&(n.value=[],M(h).catch(()=>{}))},R)},K=()=>{m&&(clearTimeout(m),m=null)},x=()=>{if(c&&c.readyState===WebSocket.OPEN&&n.value.length>0){const R=[...n.value];n.value=[],R.forEach(te=>{c.send(te)})}},C=()=>{s.value=0,u=!1},f=()=>c&&c.readyState===WebSocket.OPEN;return e.onUnmounted(()=>{A()}),{connectionState:e.readonly(a),lastError:e.readonly(i),lastCloseCode:e.readonly(o),reconnectAttempts:e.readonly(s),bufferedMessages:e.readonly(n),connect:M,disconnect:A,send:F,isConnected:f,resetReconnectAttempts:C,on:y,off:g}}class ly{constructor(){this.basePath="/api/collab"}getBaseUrl(){return ae.config.hostEcm}async getTicket(){return ae.getTicketEcm()}createAuthHeader(t){return`Basic ${btoa(`ROLE_TICKET:${t}`)}`}async checkAvailability(t){try{const a=await this.getTicket(),i=await fetch(`${this.getBaseUrl()}/alfresco/s${this.basePath}/availability/${t}`,{method:"GET",headers:{Accept:"application/json",Authorization:this.createAuthHeader(a)}});if(!i.ok){if(i.status===404)return{available:!1,enabled:!1,permissionLevel:"NONE"};if(i.status===403)return{available:!1,enabled:!0,permissionLevel:"NONE",reason:"NO_READ_PERMISSION"};throw new Error(`HTTP ${i.status}: ${i.statusText}`)}return await i.json()}catch(a){throw console.error("[CollabService] Error checking availability:",a),P("collabService.checkAvailability",a)}}async initSession(t){try{const a=await this.getTicket(),i=await fetch(`${this.getBaseUrl()}/alfresco/s${this.basePath}/session/init`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:this.createAuthHeader(a)},body:JSON.stringify({nodeId:t})});if(!i.ok){const o=await i.json();throw new Error(o.error||`HTTP ${i.status}`)}return await i.json()}catch(a){throw console.error("[CollabService] Error initializing session:",a),P("collabService.initSession",a)}}getWebSocketUrl(){const t=this.getBaseUrl(),a=t.startsWith("https")?"wss":"ws",i=t.replace(/^https?:\/\//,"");return`${a}://${i}/alfresco/collab`}generateClientId(){return`client-${Date.now()}-${Math.random().toString(36).substring(2,11)}`}}const Tt=new ly,ay="pristy-collab-backups",xt="backups",oy=1;let zl=null;const Mo=()=>zl?Promise.resolve(zl):new Promise((l,t)=>{const a=indexedDB.open(ay,oy);a.onupgradeneeded=i=>{const o=i.target.result;o.objectStoreNames.contains(xt)||o.createObjectStore(xt,{keyPath:"nodeId"})},a.onsuccess=i=>{zl=i.target.result,zl.onclose=()=>{zl=null},l(zl)},a.onerror=i=>{t(i.target.error)}}),St={async saveBackup(l,t,a){try{const i=await Mo();return new Promise((o,s)=>{const n=i.transaction(xt,"readwrite");n.objectStore(xt).put({nodeId:l,content:t,timestamp:Date.now(),sessionId:a}),n.oncomplete=()=>o(),n.onerror=r=>s(r.target.error)})}catch(i){console.warn("[CollabBackup] Failed to save backup:",i)}},async loadBackup(l){try{const t=await Mo();return new Promise((a,i)=>{const n=t.transaction(xt,"readonly").objectStore(xt).get(l);n.onsuccess=()=>a(n.result||null),n.onerror=c=>i(c.target.error)})}catch(t){return console.warn("[CollabBackup] Failed to load backup:",t),null}},async clearBackup(l){try{const t=await Mo();return new Promise((a,i)=>{const o=t.transaction(xt,"readwrite");o.objectStore(xt).delete(l),o.oncomplete=()=>a(),o.onerror=n=>i(n.target.error)})}catch(t){console.warn("[CollabBackup] Failed to clear backup:",t)}}},Jt="editor",al="observer",Oo=2;class sy extends we.WidgetType{constructor(t){super(),this.peer=t}toDOM(){const t=document.createElement("span");t.className="cm-remote-cursor",t.style.borderLeft=`2px solid ${this.peer.color}`,t.style.marginLeft="-1px",t.style.position="relative";const a=document.createElement("span");return a.className="cm-remote-cursor-label",a.style.backgroundColor=this.peer.color,a.style.color="#fff",a.style.padding="1px 4px",a.style.borderRadius="3px",a.style.fontSize="10px",a.style.position="absolute",a.style.top="-18px",a.style.left="0",a.style.whiteSpace="nowrap",a.textContent=this.peer.displayName,t.appendChild(a),t}}const bc=Ot.StateEffect.define(),za=Ot.StateField.define({create(){return[]},update(l,t){for(const a of t.effects)if(a.is(bc))return a.value;return l}}),iy=we.ViewPlugin.fromClass(class{constructor(l){this.decorations=this.createDecorations(l)}update(l){(l.docChanged||l.state.field(za)!==l.startState.field(za))&&(this.decorations=this.createDecorations(l.view))}createDecorations(l){const t=l.state.field(za),a=[];for(const i of t)if(i.position>=0&&i.position<=l.state.doc.length&&(a.push(we.Decoration.widget({widget:new sy(i),side:1}).range(i.position)),i.anchor!==i.position)){const o=Math.min(i.anchor,i.position),s=Math.max(i.anchor,i.position);a.push(we.Decoration.mark({class:"cm-remote-selection",attributes:{style:`background-color: ${i.color}33`}}).range(o,s))}return we.Decoration.set(a,!0)}},{decorations:l=>l.decorations});function mc(){const l=e.ref(!1),t=e.ref(null),a=e.ref(null),i=e.ref(null),o=e.ref(null),s=e.shallowRef([]),n=e.shallowRef([]),c=e.ref(0),r=e.ref(null),m=e.ref(!1),h=e.ref(!1),u=e.ref(!1),b=e.ref(null);let y=null,g=null,X=null;const{connectionState:M,lastCloseCode:A,connect:F,disconnect:U,send:j,on:I,off:D,resetReconnectAttempts:K}=dc();let x=null,C=null,f=null,R=null,te=null;const le=new Ot.Compartment;let S=null,oe=null;const Ie=O=>{console.log("[CollabEditor] setEditorView:",O?"view set":"view cleared"),x=O},wt=e.computed(()=>s.value.length),Te=e.computed(()=>M.value===_e.CONNECTED),re=e.computed(()=>M.value===_e.RECONNECTING),Je=e.computed(()=>M.value===_e.ERROR),He=e.computed(()=>o.value===Jt),Qe=e.computed(()=>o.value===al),Be=e.computed(()=>s.value.filter(O=>O.role===Jt).length),k=e.computed(()=>s.value.filter(O=>O.role===al).length),Q=e.computed(()=>b.value==="WRITE"),E=e.computed(()=>b.value==="READ"||b.value==="WRITE"),ee=O=>[Kt.collab({startVersion:O,clientID:a.value,sharedEffects:_=>{if(_.selection){const se=_.selection.main;Mt(se.head,se.anchor)}return[]}}),za,iy,le.of(we.EditorView.editable.of(!0))],ce=async O=>new Promise((_,se)=>{const me=setTimeout(()=>{D("onMessage",be),se(new Error("Authentication timeout"))},5e3),be=ye=>{ye.type==="authenticated"?(clearTimeout(me),D("onMessage",be),_()):ye.type==="error"&&ye.code==="AUTH_FAILED"&&(clearTimeout(me),D("onMessage",be),se(new Error(ye.message||"Authentication failed")))};I("onMessage",be),j({type:"auth",ticket:O})}),ze=async(O,_,se,me=al,be=null,ye=null,rt=null)=>{l.value&&await fe(),m.value=!1,h.value=!1,u.value=!1;try{C=O,x=_,a.value=Tt.generateClientId(),S=se,y=be,g=ye,X=rt,S=se,oe=me;const ht=await Tt.checkAvailability(C);if(b.value=ht.permissionLevel||"WRITE",!ht.enabled)throw new Error("Collaborative editing is not available for this document");if(ht.permissionLevel==="NONE")throw new Error("Access denied to this document");ht.permissionLevel==="READ"&&me===Jt&&(me=al);const Pl=Tt.getWebSocketUrl();I("onMessage",At),I("onDisconnected",ol),I("onReconnecting",Ol),I("onConnected",Ml),await F(Pl);const _l=await Tt.getTicket();return await ce(_l),new Promise((nl,cl)=>{const rl=setTimeout(()=>{cl(new Error("Timeout waiting for welcome message"))},1e4),It=lt=>{lt.type==="welcome"?(clearTimeout(rl),D("onMessage",It),ut(lt),nl(lt)):lt.type==="error"&&(clearTimeout(rl),D("onMessage",It),lt.code==="SESSION_FULL"?m.value=!0:lt.code==="INVALID_DOCUMENT"&&(h.value=!0),cl(new Error(lt.message)))};I("onMessage",It),j({type:"join",nodeId:C,clientId:a.value,displayName:se,mode:me,protocolVersion:Oo})})}catch(ht){throw r.value=ht,ht}},fe=async()=>{if(l.value){if(f&&(clearTimeout(f),f=null),R&&(clearInterval(R),R=null),x&&C){const O=x.state.doc.toString();await St.saveBackup(C,O,t.value)}t.value&&a.value&&j({type:"leave",sessionId:t.value,clientId:a.value}),D("onMessage",At),D("onDisconnected",ol),D("onReconnecting",Ol),D("onConnected",Ml),U(),l.value=!1,t.value=null,s.value=[],n.value=[],i.value=null,o.value=null,b.value=null,y=null,g=null,X=null,x=null,C=null,S=null,oe=null}},ut=O=>{t.value=O.sessionId,c.value=O.version,i.value=O.color,o.value=O.role||al,s.value=O.peers||[],l.value=!0,Pe(),R&&clearInterval(R),R=setInterval(()=>{if(x&&C){const _=x.state.doc.toString();_!==te&&(te=_,St.saveBackup(C,_,t.value))}},1e4)},et=O=>O.toJSON(),tt=O=>Ot.ChangeSet.fromJSON(O),At=O=>{switch(O.type){case"updates":Zt(O);break;case"peers":nt(O);break;case"cursor":ct(O);break;case"promoted":Fe(O);break;case"saved":De(O);break;case"resync":jl(O);break;case"error":Le(O);break}},Zt=O=>{if(!x&&y&&O.document!==void 0){y(O.document,O.version);return}if(!x)return;const _=O.updates.map(se=>({changes:tt(se.changes),clientID:se.clientID}));try{const se=Kt.receiveUpdates(x.state,_);x.dispatch(se),Kt.sendableUpdates(x.state).length>0&&Gl()}catch(se){console.error("[CollabEditor] Error applying updates:",se)}},nt=O=>{s.value=O.peers.filter(_=>_.clientId!==a.value),Pe()},ct=O=>{if(O.clientId===a.value)return;const _=s.value.find(se=>se.clientId===O.clientId);_&&(_.cursorPosition=O.position,_.cursorAnchor=O.anchor,Pe())},Le=O=>{r.value=new Error(O.message),console.error("[CollabEditor] Server error:",O.code,O.message,O.details),O.code==="SESSION_FULL"?(m.value=!0,fe()):O.code==="INVALID_DOCUMENT"?(h.value=!0,fe()):O.code==="ACCESS_DENIED"?fe():O.code==="INCOMPATIBLE_PROTOCOL"&&(u.value=!0,fe())},Fe=O=>{o.value=Jt,c.value=O.version,y&&O.document!==void 0&&y(O.document,O.version)},De=O=>{g&&g(O.sessionId),C&&St.clearBackup(C),x&&(te=x.state.doc.toString())},Ee=O=>{x?(console.log(`[CollabEditor] Setting editor editable=${O}`),x.dispatch({effects:le.reconfigure(we.EditorView.editable.of(O))})):console.warn("[CollabEditor] Cannot toggle editable: editorView is null")},ol=()=>{if(Ee(!1),x&&C){const O=x.state.doc.toString();St.saveBackup(C,O,t.value)}},Ml=async()=>{if(!(!l.value||!C)){console.log("[CollabEditor] Reconnected, re-authenticating and re-joining");try{const O=await Tt.getTicket();return await ce(O),new Promise((_,se)=>{const me=setTimeout(()=>{D("onMessage",be),se(new Error("Timeout waiting for welcome after reconnection"))},1e4),be=ye=>{ye.type==="welcome"?(clearTimeout(me),D("onMessage",be),ut(ye),X&&X(ye.document,ye.version),_()):ye.type==="error"&&(clearTimeout(me),D("onMessage",be),console.error("[CollabEditor] Error during reconnection:",ye.message),se(new Error(ye.message)))};I("onMessage",be),j({type:"join",nodeId:C,clientId:a.value,displayName:S,mode:oe,protocolVersion:Oo})})}catch(O){console.error("[CollabEditor] Reconnection auth/join failed:",O)}}},Ol=(O,_)=>{console.log(`[CollabEditor] Reconnecting in ${_}ms (attempt ${O})`)},jl=O=>{c.value=O.version,s.value=(O.peers||[]).filter(_=>_.clientId!==a.value),Pe(),X?X(O.document,O.version):y&&y(O.document,O.version)},Ue=()=>{if(!x||!l.value||!Te.value){console.log("[CollabEditor] pushChanges skipped:",x?l.value?"not connected":"collab inactive":"no editorView");return}const O=Kt.sendableUpdates(x.state);if(O.length===0)return;const _=Kt.getSyncedVersion(x.state),se=O.map(me=>({clientID:me.clientID,changes:et(me.changes)}));j({type:"push",sessionId:t.value,clientId:a.value,version:_,updates:se})},Gl=()=>{f&&clearTimeout(f),f=setTimeout(Ue,50)};let sl=null;const Mt=(O,_)=>{sl&&clearTimeout(sl),sl=setTimeout(()=>{l.value&&Te.value&&j({type:"cursor",sessionId:t.value,clientId:a.value,position:O,anchor:_})},100)},Pe=()=>{if(!x)return;const O=s.value.filter(_=>_.cursorPosition!==void 0).map(_=>({clientId:_.clientId,displayName:_.displayName,color:_.color,position:_.cursorPosition,anchor:_.cursorAnchor||_.cursorPosition}));n.value=O,x.dispatch({effects:bc.of(O)})},il=()=>O=>{O.docChanged&&l.value&&Gl()},Bl=()=>new Promise((O,_)=>{if(!l.value||!Te.value){_(new Error("Not connected to collaborative session"));return}if(o.value===Jt){O({role:Jt});return}const se=setTimeout(()=>{D("onMessage",me),_(new Error("Timeout waiting for promotion confirmation"))},1e4),me=be=>{be.type==="promoted"?(clearTimeout(se),D("onMessage",me),O(be)):be.type==="error"&&be.context==="promote"&&(clearTimeout(se),D("onMessage",me),_(new Error(be.message)))};I("onMessage",me),j({type:"promote",sessionId:t.value,clientId:a.value})}),El=()=>new Promise((O,_)=>{if(!l.value||!Te.value){_(new Error("Not connected to collaborative session"));return}const se=setTimeout(()=>{D("onMessage",me),_(new Error("Timeout waiting for save confirmation"))},1e4),me=be=>{be.type==="saved"?(clearTimeout(se),D("onMessage",me),O(be)):be.type==="error"&&be.context==="save"&&(clearTimeout(se),D("onMessage",me),_(new Error(be.message)))};I("onMessage",me),j({type:"save",sessionId:t.value,clientId:a.value})}),Ut=async()=>{if(!C||!l.value)throw new Error("No active collab session to retry");K();const O=Tt.getWebSocketUrl();await F(O);const _=await Tt.getTicket();return await ce(_),new Promise((se,me)=>{const be=setTimeout(()=>{D("onMessage",ye),me(new Error("Timeout waiting for welcome after retry"))},1e4),ye=rt=>{rt.type==="welcome"?(clearTimeout(be),D("onMessage",ye),ut(rt),X&&X(rt.document,rt.version),se()):rt.type==="error"&&(clearTimeout(be),D("onMessage",ye),me(new Error(rt.message)))};I("onMessage",ye),j({type:"join",nodeId:C,clientId:a.value,displayName:S,mode:oe,protocolVersion:Oo})})};return e.onUnmounted(()=>{fe()}),{isCollabActive:l,isSessionFull:m,isInvalidDocument:h,isProtocolIncompatible:u,permissionLevel:b,sessionId:t,clientId:a,myColor:i,myRole:o,connectedPeers:s,remoteCursors:n,connectionState:M,lastError:r,startVersion:c,lastCloseCode:A,peerCount:wt,isConnected:Te,isConnectionFailed:Je,isReconnecting:re,isEditor:He,isObserver:Qe,editorCount:Be,observerCount:k,hasWritePermission:Q,hasReadPermission:E,startCollab:ze,stopCollab:fe,setEditorView:Ie,createCollabExtensions:ee,createUpdateListener:il,pushChanges:Ue,requestSave:El,promoteToEditor:Bl,retryConnection:Ut}}const pc=$.defineStore({id:"CollabStore",state:()=>({enabled:!1,loaded:!1,activeSession:null,activeNodeId:null,connectedPeers:[],connectionState:"disconnected",myColor:null,lastError:null,maxPeers:5}),getters:{peerCount:l=>l.connectedPeers.length,hasActivePeers:l=>l.connectedPeers.length>0,isCollabActive:l=>l.activeSession!==null,isConnected:l=>l.connectionState==="connected",isReconnecting:l=>l.connectionState==="reconnecting",isAvailable:l=>l.enabled&&l.loaded},actions:{async init(){try{const l=de();this.enabled=l.COLLAB_ENABLED!==!1,this.maxPeers=l.COLLAB_MAX_PEERS||5,this.loaded=!0,console.log("[CollabStore] Initialized, enabled:",this.enabled)}catch(l){console.error("[CollabStore] Failed to initialize:",l),this.enabled=!1,this.loaded=!0}},async checkAvailability(l){if(!this.enabled)return{available:!1,reason:"disabled"};try{return await Tt.checkAvailability(l)}catch(t){return console.error("[CollabStore] Availability check failed:",t),{available:!1,reason:"error",error:t}}},setActiveSession(l){this.activeSession=l?.sessionId||null,this.activeNodeId=l?.nodeId||null,this.myColor=l?.color||null},updatePeers(l){this.connectedPeers=l||[]},setConnectionState(l){this.connectionState=l},setError(l){this.lastError=l},clearSession(){this.activeSession=null,this.activeNodeId=null,this.connectedPeers=[],this.myColor=null,this.connectionState="disconnected",this.lastError=null},addPeer(l){this.connectedPeers.findIndex(a=>a.clientId===l.clientId)===-1&&this.connectedPeers.push(l)},removePeer(l){const t=this.connectedPeers.findIndex(a=>a.clientId===l);t!==-1&&this.connectedPeers.splice(t,1)},updatePeerCursor(l,t,a){const i=this.connectedPeers.find(o=>o.clientId===l);i&&(i.cursorPosition=t,i.cursorAnchor=a)}}}),uc=$.defineStore("ScreenStore",{state:()=>({screenWidth:window.innerWidth,screenHeight:window.innerHeight}),actions:{updateScreenSize(){this.screenWidth=window.innerWidth,this.screenHeight=window.innerHeight}},getters:{isVerySmallScreen:l=>l.screenWidth<=480,isSmallScreen:l=>l.screenWidth<=768,isPortrait:l=>l.screenHeight>l.screenWidth}}),ny={class:"codemirror-editor-root"},cy={key:0,class:"consultation-title col"},ry={key:2,class:"collab-indicators flex align-items-center gap-2 ml-3"},dy={class:"collab-status-text text-sm"},by={key:0,class:"collab-peers flex align-items-center gap-1"},my={key:0,class:"collab-peer-more text-sm"},py={key:1,class:"collab-participant-badges flex align-items-center gap-2"},uy={class:"collab-badge collab-badge-editor flex align-items-center gap-1"},Zy={class:"text-sm font-medium"},hy={class:"collab-badge collab-badge-observer flex align-items-center gap-1"},yy={class:"text-sm font-medium"},Wy={class:"flex gap-2 align-items-center"},gy={class:"flex gap-2 ml-3"},Yy={class:"card editor-wrapper border-1 surface-border border-round overflow-hidden flex flex-column p-0 m-0"},Ny={key:0,class:"edit-mode-wrapper flex-grow-1 flex flex-column min-h-0"},Xy={key:1,class:"consultation-view flex-grow-1"},zy=300,Zc=H({__name:"CodeMirrorEditor",props:{contentUrl:{type:String,default:null},contentNode:{type:Object,default:null},readOnly:{type:Boolean,default:!1},isSharedLink:{type:Boolean,default:!1}},setup(l){const{t,te:a}=Pt.useI18n(),i=t2.useToast(),o=Jc.useConfirm(),s=ya(),n=uc(),c=pc(),{isCollabActive:r,isSessionFull:m,connectedPeers:h,isConnected:u,isReconnecting:b,peerCount:y,myRole:g,isEditor:X,isObserver:M,editorCount:A,observerCount:F,startVersion:U,startCollab:j,stopCollab:I,setEditorView:D,createCollabExtensions:K,createUpdateListener:x,requestSave:C,promoteToEditor:f,isConnectionFailed:R,lastCloseCode:te,retryConnection:le}=mc(),S=l,oe=e.ref(""),Ie=e.ref(""),wt=e.ref(null),Te=e.ref(!1),re=e.ref(!1),Je=e.ref(n.isSmallScreen?"editor":"split"),He=e.ref(!1),Qe=e.ref(null),Be=e.ref(null),k=e.ref(null),Q=e.ref(null),E=e.ref(null),ee=e.ref(null),ce=e.shallowRef(null),ze=e.shallowRef(null),fe=e.ref([]),ut=e.ref(!1),et=e.ref(!1),tt=e.ref(null),At=e.ref(null),Zt=e.ref(!1),nt=e.ref(0),ct=e.ref(null),Le=e.ref("");let Fe=null;e.watch(oe,Y=>{clearTimeout(Fe),Fe=setTimeout(()=>{Le.value=Y},zy)},{immediate:!0}),e.onUnmounted(()=>{clearTimeout(Fe)});const{isMarkdown:De,isHtml:Ee,previewBodyHtml:ol,iframeContent:Ml}=go({content:Le,mimeType:Qe});function Ol(){return Q.value||E.value||ee.value}function jl(Y){Y&&(Y.srcdoc=Ml.value,Y._previewInitialized=!1,Y.addEventListener("load",()=>{Y._previewInitialized=!0},{once:!0}))}e.watch([Q,E,ee],([Y,v,q],[ie,Ne,at])=>{const Ke=Y&&Y!==ie&&Y||v&&v!==Ne&&v||q&&q!==at&&q;Ke&&jl(Ke)}),e.watch(ol,Y=>{const v=Ol();!v||!v._previewInitialized||v.contentWindow?.postMessage({type:"preview-update",html:Y},"*")});const Ue=e.computed(()=>oe.value!==Ie.value),Gl=e.computed(()=>fe.value&&fe.value.length>=2),sl=e.computed(()=>{const Y=[{value:"editor",icon:"ri-code-line",label:t("editor.viewMode.editorOnly")}];return n.isSmallScreen||Y.push({value:"split",icon:"ri-layout-column-fill",label:t("editor.viewMode.split")}),Y.push({value:"preview",icon:"ri-eye-line",label:t("editor.viewMode.previewOnly")}),Y}),Mt=Y=>{const v=Y?Be:k;if(!v.value)return;const q=Yl(Qe.value),Ne=[...Nl({editable:Y,showLineNumbers:!0,enableHistory:Y,dark:s.dark,lineWrapping:He.value,onUpdate:Y?$e=>{oe.value=$e}:null})];q&&(!Array.isArray(q)||q.length>0)&&Ne.push(q);const at=Ot.EditorState.create({doc:oe.value,extensions:Ne}),Ke=new we.EditorView({state:at,parent:v.value});Y?ce.value=Ke:ze.value=Ke},Pe=Y=>{Y.value&&(Y.value.destroy(),Y.value=null)},il=async Y=>{if(!(!Y.id&&!Y.shareId))try{let v;S.isSharedLink&&Y.shareId?v=await V.getSharedLinkContent(Y.shareId):v=await V.getNodeContent(Y.id,!1);let q=await v.text();if(Y.content?.mimeType==="application/json")try{q=JSON.stringify(JSON.parse(q),null,2)}catch(ie){console.warn("Failed to format JSON, displaying raw content:",ie.message)}S.readOnly||await Ut(Y),oe.value=q,Ie.value=q,Qe.value=Y.content?.mimeType||"text/plain",await e.nextTick(),!re.value&&!De.value&&!Ee.value&&!ze.value&&Mt(!1)}catch(v){console.error("Failed to load content:",v),i.add({severity:"error",summary:t("error.error"),detail:t("editor.loadError"),life:3e3})}},Bl=async()=>{if(r.value){try{const Y=await C();Ie.value=oe.value,Y.versionLabel?(i.add({severity:"success",summary:t("success"),detail:t("editor.saveSuccessVersion",{version:Y.versionLabel}),life:3e3}),await ye(S.contentNode.id)):i.add({severity:"info",detail:t("editor.alreadySaved"),life:3e3})}catch(Y){i.add({severity:"error",summary:t("error.error"),detail:Y.message,life:4e3})}return}if(Ue.value)try{await V.updateContentNode(S.contentNode.id,oe.value,Qe.value),Ie.value=oe.value,i.add({severity:"success",summary:t("success"),detail:t("editor.saveSuccess"),life:3e3}),await ye(S.contentNode.id)}catch(Y){i.add({severity:"error",summary:t("error.error"),detail:Y.message,life:4e3})}},El=async()=>{try{const Y=await ge.lockNode(S.contentNode.id,{timeToExpire:0,type:"ALLOW_OWNER_CHANGES",lifetime:"EPHEMERAL"});await Ut(Y.entry),await il(Y.entry)}catch{try{const v=await ge.getNode(S.contentNode.id,{include:["properties"]});await Ut(v.entry)}catch{i.add({severity:"error",summary:t("error.error"),detail:t("editor.refreshError"),life:3e3})}}},Ut=async Y=>{const v=Y.properties?.["cm:lockOwner"],q=Ge();v&&v.id!==q.person.id?(Te.value=!0,wt.value=t("node.lockedBy",{name:v.displayName})):(Te.value=!1,wt.value=null)},O=async()=>{if(!r.value)return;await(async()=>{try{Ue.value&&(await C(),Ie.value=oe.value)}catch(ie){i.add({severity:"error",summary:t("error.error"),detail:ie.message,life:4e3});return}await dl();let q=await(await V.getNodeContent(S.contentNode.id,!1)).text();if(S.contentNode.content?.mimeType==="application/json")try{q=JSON.stringify(JSON.parse(q),null,2)}catch{}oe.value=q,Ie.value=q,re.value=!1,await St.clearBackup(S.contentNode.id),await ye(S.contentNode.id),await Ma(S.contentNode.id)})()},_=async()=>{if(r.value){await O();return}if(Ue.value)try{await V.updateContentNode(S.contentNode.id,oe.value,Qe.value),Ie.value=oe.value,i.add({severity:"success",summary:t("success"),detail:t("editor.saveSuccess"),life:3e3})}catch(Y){i.add({severity:"error",summary:t("error.error"),detail:Y.message,life:4e3});return}re.value=!1,await ge.unlockNode(S.contentNode.id).catch(()=>{}),await ye(S.contentNode.id)},se=()=>{const Y=`collab.unavailableDetail.${At.value}`,v=`collab.unavailableReason.${tt.value}`,q=a(Y)?t(Y):a(v)?t(v):t("collab.unavailable");i.add({severity:"warn",summary:t("collab.unavailable"),detail:q,life:5e3})},me=async()=>{if(c.enabled&&et.value){Zt.value=!0;try{re.value=!0,await e.nextTick(),await e.nextTick();let Y=0;for(;!ce.value&&Y<10;)await e.nextTick(),Y++;if(!ce.value)throw new Error("Editor view not created");await vo(),r.value?i.add({severity:"success",summary:t("success"),detail:t("collab.connected"),life:3e3}):(re.value=!1,i.add({severity:"error",summary:t("error.error"),detail:t("collab.initError"),life:4e3}))}catch(Y){console.error("Failed to start collaborative editing:",Y),re.value=!1,i.add({severity:"error",summary:t("error.error"),detail:t("collab.initError"),life:4e3})}finally{Zt.value=!1}}else await El(),Te.value||(re.value=!0)},be=()=>{const Y=document.createElement("a");Y.href=S.contentUrl,Y.download=S.contentNode.name,Y.click()},ye=async Y=>{if(Y)try{const v=await V.listNodeVersionHistory(Y);fe.value=v.list.entries}catch(v){console.error("Error fetching versions:",v)}},rt=()=>{ut.value=!0},ht=async()=>{await il(S.contentNode),await ye(S.contentNode.id)},Pl=async()=>{try{await navigator.clipboard.writeText(oe.value),i.add({severity:"success",detail:t("collab.contentCopied"),life:3e3})}catch{i.add({severity:"error",detail:t("error.error"),life:3e3})}},_l=async()=>{try{await le()}catch{i.add({severity:"error",detail:t("collab.retryFailed"),life:4e3})}},nl=Y=>{r.value&&re.value&&Ue.value&&(Y.preventDefault(),Y.returnValue="")},cl=async Y=>{if(!Y||S.readOnly){et.value=!1;return}try{const v=await c.checkAvailability(Y);ct.value=v.permissionLevel||"WRITE",nt.value=v.maxPeers||0,et.value=v.available===!0&&ct.value!=="NONE",tt.value=!et.value&&v.enabled&&v.reason||null,At.value=!et.value&&v.enabled&&v.details||null}catch(v){console.error("[Collab] Failed to check collab availability:",v),et.value=!1,ct.value=null}},rl=(Y,v)=>{if(!re.value&&Y!==void 0&&(oe.value=Y,Ie.value=Y,ze.value)){const q=ze.value.state.update({changes:{from:0,to:ze.value.state.doc.length,insert:Y}});ze.value.dispatch(q)}},It=()=>{Ie.value=oe.value},lt=async(Y,v)=>{if(oe.value=Y,Ie.value=Y,X.value&&ce.value)await Tl(v);else if(ze.value){const q=ze.value.state.update({changes:{from:0,to:ze.value.state.doc.length,insert:Y}});ze.value.dispatch(q)}},Ma=async Y=>{if(!(!Y||S.readOnly||!c.enabled||!et.value)&&!r.value)try{const v=Ge(),q=v.person?.displayName||v.person?.id||"User";await j(Y,null,q,al,rl,It,lt)}catch(v){console.error("[Collab] Failed to connect as observer:",v)}},vo=async()=>{if(!S.contentNode?.id||!ce.value)throw new Error("Missing node ID or editor view");const Y=Ge(),v=Y.person?.displayName||Y.person?.id||"User";let q,ie;if(r.value&&M.value){const Ne=await f();q=Ne.version??U.value,ie=Ne.document}else{const Ne=await j(S.contentNode.id,null,v,Jt,rl,It,lt);q=Ne.version,ie=Ne.document}ie!==void 0&&(oe.value=ie,Ie.value=ie),await Tl(q),window.addEventListener("beforeunload",nl)},dl=async()=>{window.removeEventListener("beforeunload",nl);try{await I()}catch(Y){console.error("Failed to stop collaborative editing:",Y)}},Tl=async Y=>{if(console.log(`[Collab] recreateEditorWithCollab: version=${Y}`),!Be.value){console.warn("[Collab] recreateEditorWithCollab: no editorContainer, aborting");return}if(Pe(ce),await e.nextTick(),!Be.value){console.warn("[Collab] recreateEditorWithCollab: editorContainer lost after nextTick, aborting");return}const v=Yl(Qe.value),q=Nl({editable:!1,showLineNumbers:!0,enableHistory:!0,dark:s.dark,lineWrapping:He.value,onUpdate:$e=>{oe.value=$e}}),ie=K(Y),Ne=we.EditorView.updateListener.of(x()),at=[...ie,...q,Ne];v&&(!Array.isArray(v)||v.length>0)&&at.push(v);const Ke=Ot.EditorState.create({doc:oe.value,extensions:at});ce.value=new we.EditorView({state:Ke,parent:Be.value}),D(ce.value),console.log("[Collab] recreateEditorWithCollab: editor created with collab extensions")};return c.init(),e.watch(()=>S.contentNode,async Y=>{if(Y&&(il(Y),ye(Y.id),!S.readOnly)){c.loaded||await c.init(),await cl(Y.id);const v=await St.loadBackup(Y.id);v&&v.content&&v.content!==oe.value&&o.require({message:t("collab.recoverBackup"),header:t("collab.recoverBackupHeader"),icon:"ri-error-warning-line",group:"confirmUnsavedChanges",accept:async()=>{oe.value=v.content,re.value=!0,await St.clearBackup(Y.id)},reject:async()=>{await St.clearBackup(Y.id)}}),await Ma(Y.id)}},{immediate:!0}),e.watch(re,async Y=>{Pe(ce),Pe(ze),await e.nextTick(),Y?Je.value!=="preview"&&Mt(!0):!De.value&&!Ee.value&&Mt(!1)}),e.watch(Je,async(Y,v)=>{if(!re.value||!(De.value||Ee.value))return;const q=Y!=="preview",ie=v!=="preview";let Ne=null;r.value&&X.value&&ie&&ce.value&&(Ne=Kt.getSyncedVersion(ce.value.state)),ie&&Pe(ce),q&&(await e.nextTick(),Ne!==null?await Tl(Ne):Mt(!0))}),e.watch(He,async()=>{if(re.value&&Je.value!=="preview"&&ce.value){let Y=null;r.value&&X.value&&(Y=Kt.getSyncedVersion(ce.value.state)),Pe(ce),await e.nextTick(),Y!==null?await Tl(Y):Mt(!0)}else!re.value&&!De.value&&!Ee.value&&ze.value&&(Pe(ze),await e.nextTick(),Mt(!1))}),e.onBeforeUnmount(async()=>{window.removeEventListener("beforeunload",nl),r.value&&await I(),Pe(ce),Pe(ze),re.value&&!Te.value&&!r.value&&ge.unlockNode(S.contentNode.id).catch(()=>{})}),(Y,v)=>{const q=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock("div",ny,[e.createVNode(e.unref(Ia),{class:"consultation-toolbar"},{start:e.withCtx(()=>[l.contentNode?(e.openBlock(),e.createElementBlock("h3",cy,e.toDisplayString(l.contentNode.name),1)):e.createCommentVNode("",!0),Y.$route.params.versionId?(e.openBlock(),e.createBlock(e.unref(la),{key:1,class:"tag-version",value:Y.$route.params.versionId},null,8,["value"])):e.createCommentVNode("",!0),e.unref(r)?(e.openBlock(),e.createElementBlock("div",ry,[e.createElementVNode("span",{class:e.normalizeClass(["collab-status-dot",{connected:e.unref(u),reconnecting:e.unref(b)}])},null,2),e.createElementVNode("span",dy,e.toDisplayString(e.unref(u)?Y.$t("collab.connected"):Y.$t("collab.reconnecting")),1),e.unref(y)>0?(e.openBlock(),e.createElementBlock("div",by,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(h).slice(0,6),ie=>e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:ie.clientId,class:"collab-peer-avatar",style:e.normalizeStyle({backgroundColor:ie.color})},[e.createTextVNode(e.toDisplayString(ie.displayName.charAt(0).toUpperCase()),1)],4)),[[q,ie.displayName,void 0,{bottom:!0}]])),128)),e.unref(y)>6?(e.openBlock(),e.createElementBlock("span",my," +"+e.toDisplayString(e.unref(y)-6),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.unref(r)&&e.unref(u)?(e.openBlock(),e.createElementBlock("div",py,[e.withDirectives((e.openBlock(),e.createElementBlock("div",uy,[v[4]||(v[4]=e.createElementVNode("i",{class:"ri-edit-fill","aria-hidden":"true"},null,-1)),e.createElementVNode("span",Zy,e.toDisplayString(e.unref(A)+(e.unref(X)?1:0)),1)])),[[q,Y.$t("collab.editorsTooltip"),void 0,{bottom:!0}]]),e.withDirectives((e.openBlock(),e.createElementBlock("div",hy,[v[5]||(v[5]=e.createElementVNode("i",{class:"ri-eye-fill","aria-hidden":"true"},null,-1)),e.createElementVNode("span",yy,e.toDisplayString(e.unref(F)+(e.unref(M)?1:0)),1)])),[[q,Y.$t("collab.observersTooltip"),void 0,{bottom:!0}]])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),end:e.withCtx(()=>[e.createElementVNode("div",Wy,[re.value&&(e.unref(De)||e.unref(Ee))?(e.openBlock(),e.createBlock(e.unref(Zl),{key:0,modelValue:Je.value,"onUpdate:modelValue":v[0]||(v[0]=ie=>Je.value=ie),options:sl.value,"option-value":"value","allow-empty":!1,class:"view-mode-selector"},{option:e.withCtx(ie=>[e.withDirectives(e.createElementVNode("i",{class:e.normalizeClass(ie.option.icon),"aria-hidden":"true"},null,2),[[q,ie.option.label,void 0,{bottom:!0}]])]),_:1},8,["modelValue","options"])):e.createCommentVNode("",!0),!l.readOnly&&!e.unref(m)&&(!et.value||ct.value==="WRITE")?e.withDirectives((e.openBlock(),e.createBlock(e.unref(w),{key:1,icon:re.value?"ri-logout-box-line":"ri-pencil-line",severity:re.value?"warning":tt.value?"secondary":"info",onClick:v[1]||(v[1]=ie=>re.value?_():tt.value?se():me()),disabled:Te.value||Zt.value,loading:Zt.value,"aria-label":re.value?Y.$t("editor.closeEdit"):Y.$t("editor.edit"),raised:""},null,8,["icon","severity","disabled","loading","aria-label"])),[[q,re.value?Y.$t("editor.closeEdit"):tt.value?Y.$t("collab.unavailable"):Y.$t("editor.edit"),void 0,{bottom:!0}]]):e.createCommentVNode("",!0),re.value&&!l.readOnly?e.withDirectives((e.openBlock(),e.createBlock(e.unref(w),{key:2,icon:"ri-save-line",severity:"primary",onClick:Bl,disabled:Te.value||!Ue.value,"aria-label":Y.$t("save"),raised:""},null,8,["disabled","aria-label"])),[[q,Y.$t("save"),void 0,{bottom:!0}]]):e.createCommentVNode("",!0),v[6]||(v[6]=e.createElementVNode("div",{class:"w-1rem"},[e.createElementVNode("i",{class:"ri-more-2-line","aria-hidden":"true"})],-1)),re.value&&Je.value!=="preview"||!re.value&&!e.unref(De)&&!e.unref(Ee)?e.withDirectives((e.openBlock(),e.createBlock(e.unref(w),{key:3,icon:"ri-text-wrap",severity:He.value?"info":"secondary",onClick:v[2]||(v[2]=ie=>He.value=!He.value),"aria-label":Y.$t("editor.lineWrap"),raised:""},null,8,["severity","aria-label"])),[[q,Y.$t("editor.lineWrap"),void 0,{bottom:!0}]]):e.createCommentVNode("",!0),l.isSharedLink?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createBlock(e.unref(w),{key:4,icon:"ri-layout-column-line",severity:"secondary",onClick:rt,disabled:!Gl.value,"aria-label":Y.$t("diffViewer.compareTitle"),raised:""},null,8,["disabled","aria-label"])),[[q,Y.$t("diffViewer.compareTitle"),void 0,{bottom:!0}]]),e.withDirectives(e.createVNode(e.unref(w),{icon:"ri-download-line",severity:"secondary",onClick:be,"aria-label":Y.$t("download"),raised:""},null,8,["aria-label"]),[[q,Y.$t("download"),void 0,{bottom:!0}]])])]),_:1}),Te.value&&!l.readOnly?(e.openBlock(),e.createBlock(e.unref(Wt),{key:0,severity:"warn",icon:"ri-lock-line",class:"p-small-message p-0"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(wt.value),1)]),_:1})):e.createCommentVNode("",!0),e.unref(m)?(e.openBlock(),e.createBlock(e.unref(Wt),{key:1,severity:"warn",icon:"ri-group-line",class:"p-small-message px-3 py-0"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(Y.$t("collab.sessionFull"))+" ("+e.toDisplayString(nt.value)+"/"+e.toDisplayString(nt.value)+") ",1)]),_:1})):e.createCommentVNode("",!0),e.unref(r)&&e.unref(b)?(e.openBlock(),e.createBlock(e.unref(Wt),{key:2,severity:"warn",icon:"ri-wifi-off-line",class:"p-small-message p-0"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(Y.$t("collab.offline")),1)]),_:1})):e.createCommentVNode("",!0),e.unref(r)&&e.unref(R)&&re.value?(e.openBlock(),e.createBlock(e.unref(Wt),{key:3,severity:"error",icon:"ri-wifi-off-line",class:"p-small-message px-3 py-0",closable:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(te)===1009?Y.$t("collab.messageTooLarge"):Y.$t("collab.connectionFailed"))+" ",1),e.createElementVNode("div",gy,[e.createVNode(e.unref(w),{label:Y.$t("collab.copyContent"),icon:"ri-clipboard-line",severity:"danger",size:"small",outlined:"","aria-label":Y.$t("collab.copyContent"),onClick:Pl},null,8,["label","aria-label"]),e.unref(te)!==1009?(e.openBlock(),e.createBlock(e.unref(w),{key:0,label:Y.$t("collab.retryConnection"),icon:"ri-refresh-line",severity:"danger",size:"small",outlined:"","aria-label":Y.$t("collab.retryConnection"),onClick:_l},null,8,["label","aria-label"])):e.createCommentVNode("",!0)])]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",Yy,[re.value?(e.openBlock(),e.createElementBlock("div",Ny,[(e.unref(De)||e.unref(Ee))&&Je.value==="split"?(e.openBlock(),e.createBlock(e.unref(Sc),{key:0,class:"flex-grow-1 h-full"},{default:e.withCtx(()=>[e.createVNode(e.unref(e2),{class:"flex",size:50,"min-size":10},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"editorContainer",ref:Be,class:"w-full flex-grow-1"},null,512)]),_:1}),e.createVNode(e.unref(e2),{class:"flex",size:50,"min-size":10},{default:e.withCtx(()=>[e.createElementVNode("iframe",{ref_key:"splitPreviewIframe",ref:Q,class:"preview-container w-full flex-grow-1",sandbox:"allow-scripts allow-popups"},null,512)]),_:1})]),_:1})):!e.unref(De)&&!e.unref(Ee)||Je.value==="editor"?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"editorContainer",ref:Be,class:"editor-only-container w-full flex-grow-1"},null,512)):Je.value==="preview"?(e.openBlock(),e.createElementBlock("iframe",{key:2,ref_key:"editPreviewIframe",ref:E,class:"preview-iframe w-full flex-grow-1",sandbox:"allow-scripts allow-popups"},null,512)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",Xy,[e.unref(De)||e.unref(Ee)?(e.openBlock(),e.createElementBlock("iframe",{key:0,ref_key:"consultPreviewIframe",ref:ee,class:"preview-iframe w-full flex-grow-1",sandbox:"allow-scripts allow-popups"},null,512)):(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"consultationEditorContainer",ref:k,class:"consultation-editor-container"},null,512))]))]),e.createVNode(Ao,{visible:ut.value,"onUpdate:visible":v[3]||(v[3]=ie=>ut.value=ie),"content-node":l.contentNode,versions:fe.value,"initial-version-id":Y.$route.params.versionId,onRevertVersion:ht},null,8,["visible","content-node","versions","initial-version-id"])])}}},[["__scopeId","data-v-795eb320"]]);class Ay{async check(){const a=de().INSTANCE_NAME;if(!a||a==="/")return{ok:!1,detail:"INSTANCE_NAME_NOT_SET"};const o={query:{language:"afts",query:`PATH:"${`/app:company_home/app:dictionary/cm:pristy-config/cm:${a}`}"`},include:["path"]};try{return((await mt.search(o))?.list?.pagination?.totalItems??0)>0?{ok:!0,detail:"OK"}:{ok:!1,detail:"CONFIG_FOLDER_NOT_FOUND"}}catch(s){return console.error("ConfigHealthService.check failed",s),{ok:!1,detail:"CHECK_FAILED"}}}}const hc=new Ay,My={class:"font-semibold mb-2"},Oy={class:"m-0 line-height-3"},jy={class:"block mt-2 text-sm"},Gy={class:"mt-2 mb-0 text-sm"},yc={__name:"ConfigHealthBanner",setup(l,{expose:t}){const a=Wt,o=de().INSTANCE_NAME,s=e.ref({ok:!0,detail:""}),n=e.ref(!1),c=e.ref(!1);return e.onMounted(async()=>{n.value=!0;try{s.value=await hc.check()}finally{n.value=!1,c.value=!0}}),t({health:s,checked:c}),(r,m)=>c.value&&!n.value&&!s.value.ok?(e.openBlock(),e.createBlock(e.unref(a),{key:0,severity:"error",closable:!1},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("div",My,[m[0]||(m[0]=e.createElementVNode("i",{class:"ri-error-warning-line mr-2","aria-hidden":"true"},null,-1)),e.createTextVNode(" "+e.toDisplayString(r.$t("configHealth.error.title")),1)]),e.createElementVNode("p",Oy,e.toDisplayString(r.$t("configHealth.error.description",{instance:e.unref(o)})),1),e.createElementVNode("code",jy," /app:company_home/app:dictionary/cm:pristy-config/cm:"+e.toDisplayString(e.unref(o)),1),e.createElementVNode("p",Gy,e.toDisplayString(r.$t("configHealth.error.action")),1)])]),_:1})):e.createCommentVNode("",!0)}},Ty="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4QIqaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49J++7vycgaWQ9J1c1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCc/Pgo8eDp4bXBtZXRhIHhtbG5zOng9J2Fkb2JlOm5zOm1ldGEvJyB4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Lz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/aAAwDAQACEQMRAD8A+06/ND5wKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAMe4o8wOS8X/Fj4d+Ax/wAVX4u03T3H8Es6hj+HWt6WFrVvgi2aRpTn8KMHQf2kfgn4kvFsN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AKACgAoAKACgAoAKACgAoAKAFAzwOvpQBctdMnuSGYFEPc96ylUURXNq2tIbVNsajOOT3Nc8pOW5JPSAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKAEKq6kOoKnqD0NO9gM+40a3lJaPMbHt1FaRqyW47mdPpd1D823ePVea1VRMoqFWU4YYPvWgB707AJSAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKAHpFJKcIhJ9hUuSQF230a4k5kwi+/JqJVkthXNO20y1t8HbuYdzzWMpykK5b/X0qBBQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAHPbj6UMCKS2glGJIlPviqUmth3KcuiWz8xsUP51aqtBcpy6HcL/AKtlcfka0jVT3HcqyWN1F9+FvyzVqSYyEoy9VI+tV7oCUAFABn2NJ2QBTAKACgAoAKACgAoAKACgAoAKACgAoAKVwCqsAUgHLHI/3EZvoKnmSAsR6ddydIyB6mk6kV1AtRaHKfmmkC+wGah1+wrlyLSLSIcqXPuazdST2FctxxRxjaiKo+lRdvcQ7n2pALQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAf4d6AD+dADHiib78Sn6imm1sBA+nWb9YgPpxVKch3IX0W2b7rMv45qlVaC5C2hL/AATfmtV7buh3Im0OcfdkVvrS9qguRto12OgVvoav2qC4w6Ter/yy/Wq9ou4XGnTbwf8ALE0c8e4xpsLwdYGo54dwE+xXX/PFvyp88e4B9iuv+eD/APfNHPHuACyuj/y7v+VLnj3AcNPuz/ywanzIBRpt4f8AliaXPHuA8aTen/lmPzFP2kRXHjRrvqdg+pqPaoLkq6FL/FMv4Cl7cLki6FH/ABzMfoMVLrNiuTJo1mv3lLfU0nVkwuTpYWkf3YV/Hmoc5MLkqxov3UVfoKTbe4Dx+noaQgoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgBAMd6AD8vyoAXJp6AHWkMPy/OgQZoGH5fnQAUrCCq0AKLgFIAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKAP/9k=",wy={name:"ErrorComponent",props:{errorNb:{type:String,default:"500"}},data(){return{title:"",subtitle:""}},created(){this.title=this.$t("nothingTitle"),this.subtitle=this.$t("nothingText")},methods:{onClick(){this.$router.push({name:"welcome"})}}},Iy={class:"container"},fy={class:"card custom-card"},vy={class:"text-center custom-title",id:"numError"},Ly={class:"card-img-top w-full",src:Ty,alt:"user header"},Dy={class:"card-body"},Ry={class:"card-text custom-card-title"},ky={class:"card-text custom-card-subtitle"};function Cy(l,t,a,i,o,s){const n=e.resolveComponent("Button"),c=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock("div",Iy,[e.createElementVNode("div",fy,[e.createElementVNode("h2",vy,e.toDisplayString(a.errorNb),1),e.withDirectives(e.createElementVNode("img",Ly,null,512),[[c,"www.vecteezy.com"]]),e.createElementVNode("div",Dy,[e.createElementVNode("p",Ry,e.toDisplayString(o.title),1),e.createElementVNode("p",ky,e.toDisplayString(o.subtitle),1),e.createVNode(n,{icon:"ri-corner-down-left-line",label:l.$t("goHome"),class:"w-full font-weight-bold",onClick:s.onClick},null,8,["label","onClick"])])])])}const jo=H(wy,[["render",Cy],["__scopeId","data-v-59d82e13"]]);class Fy{getBaseUrl(){return ae.config.hostEcm}async getTicket(){return ae.getTicketEcm()}createAuthHeader(t){return`Basic ${btoa(`ROLE_TICKET:${t}`)}`}async getStatus(){try{const t=await this.getTicket(),a=await fetch(`${this.getBaseUrl()}/alfresco/s/fr/jeci/pristy/chat/status`,{method:"GET",headers:{Accept:"application/json",Authorization:this.createAuthHeader(t)}});return a.ok?await a.json():{enabled:!1}}catch(t){return console.error("[ChatBackendService] Error checking status:",t),{enabled:!1}}}async getWorkspaceRoom(t){try{const a=await this.getTicket(),i=await fetch(`${this.getBaseUrl()}/alfresco/s/fr/jeci/pristy/chat/workspace/${t}/room`,{method:"GET",headers:{Accept:"application/json",Authorization:this.createAuthHeader(a)}});return i.ok?await i.json():(console.warn(`[ChatBackendService] Failed to get room for site ${t}:`,i.status),{found:!1})}catch(a){return console.error(`[ChatBackendService] Error getting room for site ${t}:`,a),{found:!1}}}async createWorkspaceRoom(t){try{const a=await this.getTicket(),i=await fetch(`${this.getBaseUrl()}/alfresco/s/fr/jeci/pristy/chat/workspace/${t}/room`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",Authorization:this.createAuthHeader(a)},body:JSON.stringify({})});return i.ok?await i.json():(console.error(`[ChatBackendService] Failed to create room for site ${t}:`,i.status),null)}catch(a){return console.error(`[ChatBackendService] Error creating room for site ${t}:`,a),null}}async getUserChatToken(){try{const t=await this.getTicket(),a=await fetch(`${this.getBaseUrl()}/alfresco/s/fr/jeci/pristy/chat/user/token`,{method:"GET",headers:{Accept:"application/json",Authorization:this.createAuthHeader(t)}});return a.ok?await a.json():{hasCredentials:!1}}catch(t){return console.error("[ChatBackendService] Error getting user token:",t),{hasCredentials:!1}}}async saveUserChatToken(t,a){try{const i=await this.getTicket(),o=await fetch(`${this.getBaseUrl()}/alfresco/s/fr/jeci/pristy/chat/user/token`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",Authorization:this.createAuthHeader(i)},body:JSON.stringify({userId:t,token:a})});if(!o.ok){const s=await o.json().catch(()=>({}));throw new Error(s.message||`HTTP ${o.status}`)}return await o.json()}catch(i){throw console.error("[ChatBackendService] Error saving user token:",i),i}}}const Aa=new Fy;class Vy{constructor(){this.credentials=null,this.config=null}init(t){this.config=t,this.credentials=null}isEnabled(){return this.config?.CHAT_ENABLED===!0&&!!this.config?.ROCKETCHAT_HOST}isOAuthEnabled(){return this.config?.CHAT_OAUTH_ENABLED===!0}getServerUrl(){return(this.config?.ROCKETCHAT_HOST||"").replace(/\/$/,"")}getWebSocketUrl(){if(this.config?.ROCKETCHAT_WS_URL)return this.config.ROCKETCHAT_WS_URL;const t=this.config?.ROCKETCHAT_HOST||"",a=t.startsWith("https")?"wss":"ws",i=t.replace(/^https?:\/\//,"").replace(/\/$/,"");return`${a}://${i}/websocket`}async getCredentials(){if(this.credentials)return this.credentials;const t=await Aa.getUserChatToken();return t.hasCredentials&&t.userId&&t.token?(this.credentials={userId:t.userId,authToken:t.token},this.credentials):(console.warn("[RocketChatAuthService] No credentials available. User needs to configure token in profile."),null)}clearCredentials(){this.credentials=null}async verifyCredentials(){const t=await this.getCredentials();if(!t)return!1;try{const a=await fetch(`${this.getServerUrl()}/api/v1/me`,{method:"GET",headers:{"X-Auth-Token":t.authToken,"X-User-Id":t.userId}});return a.ok?(await a.json()).success===!0:(this.clearCredentials(),!1)}catch(a){return console.error("[RocketChatAuthService] Error verifying credentials:",a),!1}}async getCurrentUser(){const t=await this.getCredentials();if(!t)return null;try{const a=await fetch(`${this.getServerUrl()}/api/v1/me`,{method:"GET",headers:{"X-Auth-Token":t.authToken,"X-User-Id":t.userId}});return a.ok?await a.json():null}catch(a){return console.error("[RocketChatAuthService] Error getting current user:",a),null}}}const it=new Vy;class xy{async request(t,a={}){const i=await it.getCredentials();if(!i)throw new Error("Not authenticated to Rocket.Chat");const s=`${it.getServerUrl()}${t}`,n={"Content-Type":"application/json","X-Auth-Token":i.authToken,"X-User-Id":i.userId,...a.headers},c=await fetch(s,{...a,headers:n}),r=c.headers.get("content-type");if(!r||!r.includes("application/json")){const h=await c.text();throw console.error(`[RocketChatService] Expected JSON but got ${r}:`,h.substring(0,200)),new Error(`Invalid response from Rocket.Chat: expected JSON, got ${r}`)}const m=await c.json();if(!c.ok||m.success===!1){const h=new Error(m.error||`HTTP ${c.status}`);throw h.status=c.status,h.data=m,h}return m}async getSubscriptions(){return(await this.request("/api/v1/subscriptions.get")).update||[]}async getGroups(){return(await this.request("/api/v1/groups.list")).groups||[]}async getRoomInfo(t){return(await this.request(`/api/v1/rooms.info?roomId=${t}`)).room}async getMessages(t,a={}){const i=new URLSearchParams({roomId:t,count:a.count||50});return a.oldest&&i.append("oldest",a.oldest),a.latest&&i.append("latest",a.latest),(await this.request(`/api/v1/groups.history?${i.toString()}`)).messages||[]}async sendMessage(t,a){return(await this.request("/api/v1/chat.postMessage",{method:"POST",body:JSON.stringify({roomId:t,text:a})})).message}async markAsRead(t){await this.request("/api/v1/subscriptions.read",{method:"POST",body:JSON.stringify({rid:t})})}async getUnreadCounts(){const t=await this.getSubscriptions(),a={};for(const i of t)i.unread>0&&(a[i.rid]=i.unread);return a}async getUserPresence(t){try{return(await this.request(`/api/v1/users.getPresence?userId=${t}`)).presence}catch{return"offline"}}async setUserPresence(t){await this.request("/api/v1/users.setStatus",{method:"POST",body:JSON.stringify({status:t})})}async getRoomMembers(t){return(await this.request(`/api/v1/groups.members?roomId=${t}`)).members||[]}async uploadFile(t,a,i=""){const o=await it.getCredentials();if(!o)throw new Error("Not authenticated to Rocket.Chat");const s=new FormData;s.append("file",a),i&&s.append("description",i);const n=it.getServerUrl(),c=await fetch(`${n}/api/v1/rooms.upload/${t}`,{method:"POST",headers:{"X-Auth-Token":o.authToken,"X-User-Id":o.userId},body:s}),r=await c.json();if(!c.ok||r.success===!1)throw new Error(r.error||"Failed to upload file");return r}}const Al=new xy,Sy={reconnectInterval:1e3,maxReconnectInterval:3e4,reconnectDecay:1.5,maxReconnectAttempts:10,heartbeatInterval:25e3,messageBufferSize:100},Ze={DISCONNECTED:"disconnected",CONNECTING:"connecting",CONNECTED:"connected",AUTHENTICATING:"authenticating",READY:"ready",RECONNECTING:"reconnecting",ERROR:"error"};function Wc(l={}){const t={...Sy,...l},a=e.ref(Ze.DISCONNECTED),i=e.ref(null),o=e.ref(0),s=e.shallowRef([]),n=e.ref(new Set);let c=null,r=null,m=null,h=!1,u=0,b=new Map;const y={onConnected:[],onDisconnected:[],onReady:[],onMessage:[],onRoomMessage:[],onTyping:[],onPresence:[],onError:[],onReconnecting:[]},g=(k,Q)=>(y[k]&&y[k].push(Q),()=>X(k,Q)),X=(k,Q)=>{if(y[k]){const E=y[k].indexOf(Q);E>-1&&y[k].splice(E,1)}},M=(k,...Q)=>{y[k]&&y[k].forEach(E=>E(...Q))},A=()=>String(++u),F=()=>new Promise((k,Q)=>{if(c&&c.readyState===WebSocket.OPEN){k();return}const E=it.getWebSocketUrl();if(!E){const ee=new Error("WebSocket URL not configured");i.value=ee,a.value=Ze.ERROR,Q(ee);return}h=!1,a.value=Ze.CONNECTING;try{c=new WebSocket(E),c.onopen=()=>{a.value=Ze.CONNECTED,o.value=0,i.value=null,j({msg:"connect",version:"1",support:["1","pre2","pre1"]}),M("onConnected")},c.onclose=ee=>{Te(),a.value=Ze.DISCONNECTED,!h&&!ee.wasClean&&re(),M("onDisconnected",ee)},c.onerror=ee=>{i.value=ee,a.value=Ze.ERROR,M("onError",ee),Q(ee)},c.onmessage=ee=>{try{const ce=JSON.parse(ee.data);K(ce,k,Q)}catch(ce){console.error("[ChatWebSocket] Failed to parse message:",ce)}}}catch(ee){i.value=ee,a.value=Ze.ERROR,M("onError",ee),Q(ee)}}),U=()=>{h=!0,Te(),Je(),c&&(c.close(1e3,"User disconnected"),c=null),a.value=Ze.DISCONNECTED,s.value=[],n.value=new Set,b.clear()},j=k=>c&&c.readyState===WebSocket.OPEN?(c.send(JSON.stringify(k)),!0):!1,I=k=>j(k)?!0:(s.value.length<t.messageBufferSize?s.value=[...s.value,k]:console.warn("[ChatWebSocket] Message buffer full, dropping message"),!1),D=(k,Q=[])=>new Promise((E,ee)=>{const ce=A();b.set(ce,{resolve:E,reject:ee}),j({msg:"method",method:k,id:ce,params:Q})||(b.delete(ce),ee(new Error("WebSocket not connected"))),setTimeout(()=>{b.has(ce)&&(b.delete(ce),ee(new Error(`Method ${k} timed out`)))},3e4)}),K=(k,Q,E)=>{switch(k.msg){case"connected":wt(),x(Q,E);break;case"ping":j({msg:"pong"});break;case"pong":break;case"result":C(k);break;case"ready":break;case"added":case"changed":case"removed":f(k);break;case"error":R(k,E);break;case"failed":console.error("[ChatWebSocket] DDP version negotiation failed"),a.value=Ze.ERROR,E&&E(new Error("DDP version negotiation failed"));break;default:M("onMessage",k)}},x=async(k,Q)=>{a.value=Ze.AUTHENTICATING;try{const E=await it.getCredentials();if(!E)throw new Error("No credentials available");const ee=await D("login",[{resume:E.authToken}]);if(ee&&ee.id)a.value=Ze.READY,He(),S(),M("onReady"),k&&k();else throw new Error("Authentication failed")}catch(E){console.error("[ChatWebSocket] Authentication failed:",E),i.value=E,a.value=Ze.ERROR,M("onError",E),Q&&Q(E)}},C=k=>{const Q=b.get(k.id);Q&&(b.delete(k.id),k.error?Q.reject(new Error(k.error.message||"Method error")):Q.resolve(k.result))},f=k=>{const{collection:Q,fields:E}=k;if(Q==="stream-room-messages"){if(E&&E.args){const[ee]=E.args;M("onRoomMessage",ee)}}else if(Q==="stream-notify-room"){if(E&&E.args){const[ee,...ce]=E.args;ee==="typing"&&M("onTyping",...ce)}}else Q==="stream-notify-user"&&E&&E.args&&M("onMessage",{type:"user-notification",data:E.args})},R=(k,Q)=>{const E=new Error(k.reason||"Unknown error");i.value=E,M("onError",E),Q&&Q(E)},te=async k=>{if(n.value.has(k))return;const Q=A();j({msg:"sub",id:Q,name:"stream-room-messages",params:[k,!1]});const E=A();j({msg:"sub",id:E,name:"stream-notify-room",params:[`${k}/typing`,!1]}),n.value=new Set([...n.value,k])},le=k=>{n.value=new Set([...n.value].filter(Q=>Q!==k))},S=()=>{const k=[...n.value];n.value=new Set,k.forEach(Q=>{te(Q)})},oe=async(k,Q)=>D("sendMessage",[{_id:A(),rid:k,msg:Q}]),Ie=(k,Q,E)=>{j({msg:"method",method:"stream-notify-room",id:A(),params:[`${k}/typing`,Q,E]})},wt=()=>{Te(),r=setInterval(()=>{c&&c.readyState===WebSocket.OPEN&&j({msg:"ping"})},t.heartbeatInterval)},Te=()=>{r&&(clearInterval(r),r=null)},re=()=>{if(o.value>=t.maxReconnectAttempts){console.error("[ChatWebSocket] Max reconnection attempts reached"),a.value=Ze.ERROR;return}a.value=Ze.RECONNECTING,o.value++;const k=Math.min(t.reconnectInterval*Math.pow(t.reconnectDecay,o.value-1),t.maxReconnectInterval);M("onReconnecting",o.value,k),m=setTimeout(()=>{h||F().catch(()=>{})},k)},Je=()=>{m&&(clearTimeout(m),m=null)},He=()=>{if(c&&c.readyState===WebSocket.OPEN&&s.value.length>0){const k=[...s.value];s.value=[],k.forEach(Q=>{j(Q)})}},Qe=()=>a.value===Ze.READY&&c&&c.readyState===WebSocket.OPEN,Be=()=>c&&c.readyState===WebSocket.OPEN;return e.onUnmounted(()=>{U()}),{connectionState:e.readonly(a),lastError:e.readonly(i),reconnectAttempts:e.readonly(o),bufferedMessages:e.readonly(s),subscribedRooms:e.readonly(n),connect:F,disconnect:U,isConnected:Be,isReady:Qe,subscribeRoom:te,unsubscribeRoom:le,sendChatMessage:oe,sendTyping:Ie,callMethod:D,send:I,on:g,off:X}}const gc=$.defineStore({id:"chat",state:()=>({enabled:!1,loaded:!1,hasCredentials:!1,connectionState:Ze.DISCONNECTED,lastError:null,rooms:[],currentRoomId:null,messagesByRoom:{},unreadCounts:{},typingByRoom:{},currentUser:null,_webSocket:null}),getters:{currentRoom:l=>l.currentRoomId&&l.rooms.find(t=>t._id===l.currentRoomId)||null,currentMessages:l=>l.currentRoomId?l.messagesByRoom[l.currentRoomId]||[]:[],currentTypingUsers:l=>l.currentRoomId?l.typingByRoom[l.currentRoomId]||[]:[],totalUnreadCount:l=>Object.values(l.unreadCounts).reduce((t,a)=>t+a,0),isReady:l=>l.enabled&&l.hasCredentials&&l.connectionState===Ze.READY,isConnecting:l=>l.connectionState===Ze.CONNECTING||l.connectionState===Ze.AUTHENTICATING,isReconnecting:l=>l.connectionState===Ze.RECONNECTING,isAvailable:l=>l.enabled&&l.loaded&&l.hasCredentials},actions:{async init(){try{const l=de();if(it.init({CHAT_ENABLED:l.CHAT_ENABLED,ROCKETCHAT_HOST:l.ROCKETCHAT_HOST,ROCKETCHAT_WS_URL:l.ROCKETCHAT_WS_URL,CHAT_OAUTH_ENABLED:l.CHAT_OAUTH_ENABLED,CHAT_OAUTH_SERVICE:l.CHAT_OAUTH_SERVICE}),this.enabled=it.isEnabled(),this.enabled){const t=await it.getCredentials();this.hasCredentials=!!t,this.hasCredentials&&(this.currentUser=await it.getCurrentUser())}this.loaded=!0,console.log("[ChatStore] Initialized, enabled:",this.enabled,"hasCredentials:",this.hasCredentials)}catch(l){console.error("[ChatStore] Failed to initialize:",l),this.enabled=!1,this.loaded=!0}},async connect(){if(!this.enabled||!this.hasCredentials)return console.warn("[ChatStore] Cannot connect: chat not available"),!1;if(this._webSocket&&this.connectionState===Ze.READY)return!0;try{return this._webSocket=Wc(),this._webSocket.on("onReady",()=>{this.connectionState=Ze.READY,this.loadRooms(),this.currentRoomId&&this._webSocket.subscribeRoom(this.currentRoomId)}),this._webSocket.on("onDisconnected",()=>{this.connectionState=Ze.DISCONNECTED}),this._webSocket.on("onReconnecting",l=>{this.connectionState=Ze.RECONNECTING,console.log("[ChatStore] Reconnecting, attempt:",l)}),this._webSocket.on("onError",l=>{this.lastError=l,this.connectionState=Ze.ERROR}),this._webSocket.on("onRoomMessage",l=>{this.handleNewMessage(l)}),this._webSocket.on("onTyping",(l,t)=>{this.handleTypingIndicator(l,t)}),this.connectionState=Ze.CONNECTING,await this._webSocket.connect(),!0}catch(l){return console.error("[ChatStore] Connection failed:",l),this.lastError=l,this.connectionState=Ze.ERROR,!1}},disconnect(){this._webSocket&&(this._webSocket.disconnect(),this._webSocket=null),this.connectionState=Ze.DISCONNECTED},async loadRooms(){try{const l=await Al.getSubscriptions();this.rooms=l.map(a=>({_id:a.rid,name:a.name,fname:a.fname||a.name,type:a.t,unread:a.unread||0,lastMessage:a.lastMessage,updatedAt:a._updatedAt}));const t={};l.forEach(a=>{a.unread>0&&(t[a.rid]=a.unread)}),this.unreadCounts=t}catch(l){console.error("[ChatStore] Failed to load rooms:",l)}},async selectRoom(l){if(!l){this.currentRoomId=null;return}this.currentRoomId=l,this._webSocket&&this._webSocket.isReady()&&await this._webSocket.subscribeRoom(l),this.messagesByRoom[l]||await this.loadMessages(l),await this.markAsRead(l)},async loadMessages(l,t={}){try{const i=[...await Al.getMessages(l,{count:t.count||50,oldest:t.oldest,latest:t.latest})].reverse();t.prepend&&this.messagesByRoom[l]?this.messagesByRoom[l]=[...i,...this.messagesByRoom[l]]:this.messagesByRoom[l]=i}catch(a){console.error("[ChatStore] Failed to load messages:",a)}},async sendMessage(l){if(!(!this.currentRoomId||!l.trim()))try{this._webSocket&&this._webSocket.isReady()?await this._webSocket.sendChatMessage(this.currentRoomId,l):await Al.sendMessage(this.currentRoomId,l)}catch(t){throw console.error("[ChatStore] Failed to send message:",t),t}},async markAsRead(l){try{await Al.markAsRead(l),this.unreadCounts[l]=0}catch(t){console.error("[ChatStore] Failed to mark as read:",t)}},handleNewMessage(l){const t=l.rid;this.messagesByRoom[t]||(this.messagesByRoom[t]=[]),l.ts&&typeof l.ts=="object"&&l.ts.$date&&(l.ts=new Date(l.ts.$date).toISOString()),this.messagesByRoom[t].some(i=>i._id===l._id)||(this.messagesByRoom[t].push(l),t!==this.currentRoomId&&(this.unreadCounts[t]=(this.unreadCounts[t]||0)+1))},handleTypingIndicator(l,t){const a=this.currentRoomId;a&&(this.currentUser&&l===this.currentUser.username||(this.typingByRoom[a]||(this.typingByRoom[a]=[]),t?this.typingByRoom[a].includes(l)||this.typingByRoom[a].push(l):this.typingByRoom[a]=this.typingByRoom[a].filter(i=>i!==l)))},sendTypingIndicator(l){!this.currentRoomId||!this.currentUser||!this._webSocket||!this._webSocket.isReady()||this._webSocket.sendTyping(this.currentRoomId,this.currentUser.username,l)},async getOrCreateWorkspaceRoom(l){try{let t=await Aa.getWorkspaceRoom(l);return t.found||(t=await Aa.createWorkspaceRoom(l)),t&&t.roomId?(await this.loadRooms(),t):null}catch(t){return console.error("[ChatStore] Failed to get/create workspace room:",t),null}},async uploadFile(l,t=""){if(!this.currentRoomId)throw new Error("No room selected");try{await Al.uploadFile(this.currentRoomId,l,t)}catch(a){throw console.error("[ChatStore] Failed to upload file:",a),a}},clear(){this.disconnect(),this.rooms=[],this.currentRoomId=null,this.messagesByRoom={},this.unreadCounts={},this.typingByRoom={},this.currentUser=null,this.lastError=null}}}),Jy={name:"ChatMessage",components:{PrimeAvatar:Ta},props:{message:{type:Object,required:!0},currentUserId:{type:String,default:""}},emits:["attachment-click"],computed:{isOwnMessage(){return this.message.u?._id===this.currentUserId},isSystemMessage(){return this.message.t!==void 0},hasAttachments(){return this.message.attachments&&this.message.attachments.length>0},avatarLabel(){return(this.message.u?.name||this.message.u?.username||"?").charAt(0).toUpperCase()},avatarColor(){const l=this.message.u?.username||"";let t=0;for(let i=0;i<l.length;i++)t=l.charCodeAt(i)+((t<<5)-t);return`hsl(${Math.abs(t%360)}, 65%, 45%)`},formattedTime(){if(!this.message.ts)return"";const l=new Date(this.message.ts),t=new Date;return l.toDateString()===t.toDateString()?l.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):l.toLocaleString([],{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}},methods:{isImageAttachment(l){return l.image_url?!0:["image/jpeg","image/png","image/gif","image/webp"].includes(l.image_type)},getAttachmentUrl(l){const t=it.getServerUrl(),a=l.image_url||l.title_link;return a?a.startsWith("http")?a:`${t}${a}`:""},openAttachment(l){this.$emit("attachment-click",l)}}},Uy={key:0,class:"chat-message__avatar"},Hy={class:"chat-message__content"},Qy={key:0,class:"chat-message__header"},By={key:0,class:"chat-message__username"},Ey={class:"chat-message__time"},Py={class:"chat-message__body"},_y={key:0,class:"chat-message__text"},Ky={key:1,class:"chat-message__attachments"},$y=["src","alt","onClick"],qy={key:1,class:"chat-message__attachment-file"},eW=["href"],tW={key:0,class:"attachment-desc"},lW={key:0,class:"chat-message__text mt-2"};function aW(l,t,a,i,o,s){const n=e.resolveComponent("PrimeAvatar");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["chat-message",{"chat-message--own":s.isOwnMessage,"chat-message--system":s.isSystemMessage}])},[!s.isOwnMessage&&!s.isSystemMessage?(e.openBlock(),e.createElementBlock("div",Uy,[e.createVNode(n,{label:s.avatarLabel,style:e.normalizeStyle({backgroundColor:s.avatarColor}),shape:"circle"},null,8,["label","style"])])):e.createCommentVNode("",!0),e.createElementVNode("div",Hy,[s.isSystemMessage?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Qy,[s.isOwnMessage?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",By,e.toDisplayString(a.message.u?.name||a.message.u?.username||l.$t("chat.unknownUser")),1)),e.createElementVNode("span",Ey,e.toDisplayString(s.formattedTime),1)])),e.createElementVNode("div",Py,[s.hasAttachments?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",_y,e.toDisplayString(a.message.msg),1)),s.hasAttachments?(e.openBlock(),e.createElementBlock("div",Ky,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.message.attachments,c=>(e.openBlock(),e.createElementBlock("div",{key:c._id||c.title,class:"chat-message__attachment"},[s.isImageAttachment(c)?(e.openBlock(),e.createElementBlock("img",{key:0,src:s.getAttachmentUrl(c),alt:c.title||c.description,class:"chat-message__attachment-image",onClick:r=>s.openAttachment(c)},null,8,$y)):(e.openBlock(),e.createElementBlock("div",qy,[t[0]||(t[0]=e.createElementVNode("i",{class:"ri-attachment-line","aria-hidden":"true"},null,-1)),e.createElementVNode("a",{href:s.getAttachmentUrl(c),target:"_blank",rel:"noopener noreferrer"},e.toDisplayString(c.title||l.$t("chat.attachment")),9,eW),c.description?(e.openBlock(),e.createElementBlock("span",tW,e.toDisplayString(c.description),1)):e.createCommentVNode("",!0)]))]))),128)),a.message.msg?(e.openBlock(),e.createElementBlock("div",lW,e.toDisplayString(a.message.msg),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])])],2)}const Go=H(Jy,[["render",aW],["__scopeId","data-v-165e03f8"]]),oW={name:"ChatInput",components:{PrimeButton:w,PrimeTextarea:ul},props:{disabled:{type:Boolean,default:!1},typingUsers:{type:Array,default:()=>[]}},emits:["send","typing","upload"],data(){return{message:"",selectedFiles:[],typingTimeout:null,isTyping:!1}},computed:{canSend(){return this.message.trim().length>0||this.selectedFiles.length>0},typingText(){return this.typingUsers.length===0?"":this.typingUsers.length===1?this.$t("chat.userTyping",{user:this.typingUsers[0]}):this.typingUsers.length===2?this.$t("chat.usersTyping",{user1:this.typingUsers[0],user2:this.typingUsers[1]}):this.$t("chat.multipleUsersTyping")}},beforeUnmount(){this.typingTimeout&&clearTimeout(this.typingTimeout),this.isTyping&&this.$emit("typing",!1)},methods:{handleKeyDown(l){l.key==="Enter"&&!l.shiftKey&&(l.preventDefault(),this.sendMessage())},handleInput(){this.isTyping||(this.isTyping=!0,this.$emit("typing",!0)),this.typingTimeout&&clearTimeout(this.typingTimeout),this.typingTimeout=setTimeout(()=>{this.isTyping&&(this.isTyping=!1,this.$emit("typing",!1))},3e3)},sendMessage(){if(this.canSend){if(this.isTyping&&(this.isTyping=!1,this.$emit("typing",!1)),this.selectedFiles.length>0){this.selectedFiles.forEach(l=>{this.$emit("upload",l,this.message)}),this.selectedFiles=[],this.message="";return}this.message.trim()&&(this.$emit("send",this.message.trim()),this.message="")}},triggerFileInput(){this.$refs.fileInput.click()},handleFileSelect(l){const t=Array.from(l.target.files);this.selectedFiles=[...this.selectedFiles,...t],l.target.value=""},removeFile(l){this.selectedFiles.splice(l,1)}}},sW={class:"chat-input"},iW={class:"chat-input__container"},nW={key:0,class:"chat-input__typing"},cW={class:"typing-text"},rW={key:1,class:"chat-input__files"},dW={class:"file-name"};function bW(l,t,a,i,o,s){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeTextarea");return e.openBlock(),e.createElementBlock("div",sW,[e.createElementVNode("div",iW,[e.createVNode(n,{type:"button",icon:"ri-attachment-line",text:"",rounded:"",disabled:a.disabled,"aria-label":l.$t("chat.attachFile"),onClick:s.triggerFileInput},null,8,["disabled","aria-label","onClick"]),e.createElementVNode("input",{ref:"fileInput",type:"file",class:"hidden",multiple:"",onChange:t[0]||(t[0]=(...r)=>s.handleFileSelect&&s.handleFileSelect(...r))},null,544),e.createVNode(c,{modelValue:o.message,"onUpdate:modelValue":t[1]||(t[1]=r=>o.message=r),placeholder:l.$t("chat.typeMessage"),disabled:a.disabled,"auto-resize":"",rows:1,class:"chat-input__textarea",onKeydown:s.handleKeyDown,onInput:s.handleInput},null,8,["modelValue","placeholder","disabled","onKeydown","onInput"]),e.createVNode(n,{type:"button",icon:"ri-send-plane-2-fill",rounded:"",disabled:a.disabled||!s.canSend,"aria-label":l.$t("chat.send"),onClick:s.sendMessage},null,8,["disabled","aria-label","onClick"])]),a.typingUsers.length>0?(e.openBlock(),e.createElementBlock("div",nW,[t[2]||(t[2]=e.createElementVNode("span",{class:"typing-dots"},[e.createElementVNode("span"),e.createElementVNode("span"),e.createElementVNode("span")],-1)),e.createElementVNode("span",cW,e.toDisplayString(s.typingText),1)])):e.createCommentVNode("",!0),o.selectedFiles.length>0?(e.openBlock(),e.createElementBlock("div",rW,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.selectedFiles,(r,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:"chat-input__file"},[t[3]||(t[3]=e.createElementVNode("i",{class:"ri-file-line","aria-hidden":"true"},null,-1)),e.createElementVNode("span",dW,e.toDisplayString(r.name),1),e.createVNode(n,{type:"button",icon:"ri-close-line","aria-label":l.$t("delete"),text:"",rounded:"",size:"small",severity:"danger",onClick:h=>s.removeFile(m)},null,8,["aria-label","onClick"])]))),128))])):e.createCommentVNode("",!0)])}const To=H(oW,[["render",bW],["__scopeId","data-v-fd2ee6de"]]),mW={name:"ChatRoomList",components:{PrimeInputText:Me,PrimeBadge:Fl},props:{rooms:{type:Array,default:()=>[]},selectedRoomId:{type:String,default:null},unreadCounts:{type:Object,default:()=>({})}},emits:["select"],data(){return{searchQuery:""}},computed:{filteredRooms(){if(!this.searchQuery.trim())return this.sortedRooms;const l=this.searchQuery.toLowerCase();return this.sortedRooms.filter(t=>(t.fname||t.name||"").toLowerCase().includes(l))},sortedRooms(){return[...this.rooms].sort((l,t)=>{const a=this.unreadCounts[l._id]||0,i=this.unreadCounts[t._id]||0;if(a!==i)return i-a;const o=new Date(l.updatedAt||0);return new Date(t.updatedAt||0)-o})}},methods:{selectRoom(l){this.$emit("select",l._id)},getUnreadCount(l){return this.unreadCounts[l]||0},getRoomIcon(l){switch(l.type){case"c":return"ri-hashtag";case"p":return"ri-lock-line";case"d":return"ri-user-line";default:return"ri-chat-3-line"}},truncateMessage(l){if(!l)return"";const t=40;return l.length<=t?l:l.substring(0,t)+"..."}}},pW={class:"chat-room-list"},uW={class:"chat-room-list__search"},ZW={class:"p-input-icon-left w-full"},hW={class:"chat-room-list__items"},yW=["onClick"],WW={class:"chat-room-item__icon"},gW={class:"chat-room-item__info"},YW={class:"chat-room-item__name"},NW={key:0,class:"chat-room-item__last-message"},XW={key:0,class:"last-message-user"},zW={key:0,class:"chat-room-list__empty"};function AW(l,t,a,i,o,s){const n=e.resolveComponent("PrimeInputText"),c=e.resolveComponent("PrimeBadge");return e.openBlock(),e.createElementBlock("div",pW,[e.createElementVNode("div",uW,[e.createElementVNode("span",ZW,[t[1]||(t[1]=e.createElementVNode("i",{class:"ri-search-line","aria-hidden":"true"},null,-1)),e.createVNode(n,{modelValue:o.searchQuery,"onUpdate:modelValue":t[0]||(t[0]=r=>o.searchQuery=r),placeholder:l.$t("chat.searchRooms"),class:"w-full"},null,8,["modelValue","placeholder"])])]),e.createElementVNode("div",hW,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.filteredRooms,r=>(e.openBlock(),e.createElementBlock("div",{key:r._id,class:e.normalizeClass(["chat-room-item",{"chat-room-item--selected":r._id===a.selectedRoomId}]),onClick:m=>s.selectRoom(r)},[e.createElementVNode("div",WW,[e.createElementVNode("i",{class:e.normalizeClass(s.getRoomIcon(r)),"aria-hidden":"true"},null,2)]),e.createElementVNode("div",gW,[e.createElementVNode("div",YW,e.toDisplayString(r.fname||r.name),1),r.lastMessage?(e.openBlock(),e.createElementBlock("div",NW,[r.lastMessage.u?(e.openBlock(),e.createElementBlock("span",XW,e.toDisplayString(r.lastMessage.u.name||r.lastMessage.u.username)+": ",1)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(s.truncateMessage(r.lastMessage.msg)),1)])):e.createCommentVNode("",!0)]),s.getUnreadCount(r._id)>0?(e.openBlock(),e.createBlock(c,{key:0,value:s.getUnreadCount(r._id),severity:"danger",class:"chat-room-item__badge"},null,8,["value"])):e.createCommentVNode("",!0)],10,yW))),128)),s.filteredRooms.length===0?(e.openBlock(),e.createElementBlock("div",zW,[t[2]||(t[2]=e.createElementVNode("i",{class:"ri-chat-3-line","aria-hidden":"true"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(l.$t("chat.noRooms")),1)])):e.createCommentVNode("",!0)])])}const wo=H(mW,[["render",AW],["__scopeId","data-v-94df09b1"]]),MW={name:"ChatPanel",components:{PrimeButton:w,PrimeProgressSpinner:bt,ChatMessage:Go,ChatInput:To,ChatRoomList:wo},props:{showRoomList:{type:Boolean,default:!0},roomId:{type:String,default:null}},emits:["close","minimize","go-to-profile"],data(){return{minimized:!1,loadingMore:!1}},computed:{...$.mapStores(gc),currentRoom(){return this.chatStore.currentRoom},currentUserId(){return this.chatStore.currentUser?._id||""},headerTitle(){return this.currentRoom?this.currentRoom.fname||this.currentRoom.name:this.$t("chat.title")},canLoadMore(){return this.chatStore.currentMessages.length>=50}},watch:{roomId:{immediate:!0,handler(l){l&&this.selectRoom(l)}},"chatStore.currentMessages":{handler(){this.$nextTick(()=>{this.scrollToBottom()})}}},async mounted(){await this.initChat()},beforeUnmount(){},methods:{async initChat(){this.chatStore.loaded||await this.chatStore.init(),this.chatStore.isAvailable&&!this.chatStore.isReady&&await this.chatStore.connect()},async selectRoom(l){await this.chatStore.selectRoom(l),this.$nextTick(()=>{this.scrollToBottom()})},backToRoomList(){this.chatStore.selectRoom(null)},async sendMessage(l){try{await this.chatStore.sendMessage(l),this.$nextTick(()=>{this.scrollToBottom()})}catch{this.$toast.add({severity:"error",summary:this.$t("error"),detail:this.$t("chat.sendError"),life:3e3})}},handleTyping(l){this.chatStore.sendTypingIndicator(l)},async uploadFile(l,t){try{await this.chatStore.uploadFile(l,t)}catch{this.$toast.add({severity:"error",summary:this.$t("error"),detail:this.$t("chat.uploadError"),life:3e3})}},async loadMoreMessages(){if(!this.chatStore.currentRoomId||this.loadingMore)return;this.loadingMore=!0;const l=this.chatStore.currentMessages,t=l.length>0?l[0].ts:void 0;try{await this.chatStore.loadMessages(this.chatStore.currentRoomId,{count:50,latest:t,prepend:!0})}finally{this.loadingMore=!1}},handleAttachmentClick(l){const t=l.image_url||l.title_link;t&&window.open(t,"_blank","noopener,noreferrer")},scrollToBottom(){const l=this.$refs.messagesContainer;l&&(l.scrollTop=l.scrollHeight)},toggleMinimize(){this.minimized=!this.minimized,this.$emit("minimize",this.minimized)},close(){this.$emit("close")},goToProfile(){this.$emit("go-to-profile")},async reconnect(){await this.chatStore.connect()}}},OW={class:"chat-panel__header"},jW={class:"chat-panel__header-left"},GW={class:"chat-panel__title"},TW={class:"chat-panel__header-actions"},wW={class:"chat-panel__body"},IW={key:0,class:"chat-panel__status"},fW={key:0,class:"status-connecting"},vW={key:1,class:"status-reconnecting"},LW={key:2,class:"status-not-configured"},DW={key:3,class:"status-error"},RW={ref:"messagesContainer",class:"chat-panel__messages"},kW={key:0,class:"chat-panel__load-more"},CW={key:1,class:"chat-panel__empty"};function FW(l,t,a,i,o,s){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeProgressSpinner"),r=e.resolveComponent("ChatRoomList"),m=e.resolveComponent("ChatMessage"),h=e.resolveComponent("ChatInput");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["chat-panel",{"chat-panel--minimized":o.minimized}])},[e.createElementVNode("div",OW,[e.createElementVNode("div",jW,[a.showRoomList&&s.currentRoom?(e.openBlock(),e.createBlock(n,{key:0,type:"button",icon:"ri-arrow-left-line","aria-label":l.$t("back"),text:"",rounded:"",onClick:s.backToRoomList},null,8,["aria-label","onClick"])):e.createCommentVNode("",!0),e.createElementVNode("h3",GW,e.toDisplayString(s.headerTitle),1)]),e.createElementVNode("div",TW,[e.createVNode(n,{type:"button",icon:o.minimized?"ri-fullscreen-line":"ri-subtract-line","aria-label":o.minimized?l.$t("expand"):l.$t("minimize"),text:"",rounded:"",onClick:s.toggleMinimize},null,8,["icon","aria-label","onClick"]),e.createVNode(n,{type:"button",icon:"ri-close-line","aria-label":l.$t("close"),text:"",rounded:"",onClick:s.close},null,8,["aria-label","onClick"])])]),e.withDirectives(e.createElementVNode("div",wW,[l.chatStore.isReady?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.showRoomList&&!s.currentRoom?(e.openBlock(),e.createBlock(r,{key:0,rooms:l.chatStore.rooms,"selected-room-id":l.chatStore.currentRoomId,"unread-counts":l.chatStore.unreadCounts,onSelect:s.selectRoom},null,8,["rooms","selected-room-id","unread-counts","onSelect"])):s.currentRoom?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",RW,[s.canLoadMore?(e.openBlock(),e.createElementBlock("div",kW,[e.createVNode(n,{label:l.$t("chat.loadMore"),text:"",size:"small",loading:o.loadingMore,onClick:s.loadMoreMessages},null,8,["label","loading","onClick"])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.chatStore.currentMessages,u=>(e.openBlock(),e.createBlock(m,{key:u._id,message:u,"current-user-id":s.currentUserId,onAttachmentClick:s.handleAttachmentClick},null,8,["message","current-user-id","onAttachmentClick"]))),128)),l.chatStore.currentMessages.length===0?(e.openBlock(),e.createElementBlock("div",CW,[t[2]||(t[2]=e.createElementVNode("i",{class:"ri-chat-smile-2-line","aria-hidden":"true"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(l.$t("chat.noMessages")),1)])):e.createCommentVNode("",!0)],512),e.createVNode(h,{disabled:!l.chatStore.isReady,"typing-users":l.chatStore.currentTypingUsers,onSend:s.sendMessage,onTyping:s.handleTyping,onUpload:s.uploadFile},null,8,["disabled","typing-users","onSend","onTyping","onUpload"])],64)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock("div",IW,[l.chatStore.isConnecting?(e.openBlock(),e.createElementBlock("div",fW,[e.createVNode(c,{style:{width:"30px",height:"30px"}}),e.createElementVNode("span",null,e.toDisplayString(l.$t("chat.connecting")),1)])):l.chatStore.isReconnecting?(e.openBlock(),e.createElementBlock("div",vW,[e.createVNode(c,{style:{width:"30px",height:"30px"}}),e.createElementVNode("span",null,e.toDisplayString(l.$t("chat.reconnecting")),1)])):l.chatStore.hasCredentials?l.chatStore.lastError?(e.openBlock(),e.createElementBlock("div",DW,[t[1]||(t[1]=e.createElementVNode("i",{class:"ri-error-warning-line","aria-hidden":"true"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(l.$t("chat.connectionError")),1),e.createVNode(n,{label:l.$t("chat.retry"),outlined:"",onClick:s.reconnect},null,8,["label","onClick"])])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",LW,[t[0]||(t[0]=e.createElementVNode("i",{class:"ri-key-line","aria-hidden":"true"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(l.$t("chat.notConfigured")),1),e.createVNode(n,{label:l.$t("chat.configureInProfile"),outlined:"",onClick:s.goToProfile},null,8,["label","onClick"])]))]))],512),[[e.vShow,!o.minimized]])],2)}const Yc=H(MW,[["render",FW],["__scopeId","data-v-96fab464"]]);class VW{getPublicLink(){}createPublicLink(){}}class xW{getLoolUrl(t){let a=`${t}/alfresco/service/lool/host/url`;return he.get(a).then(i=>i.data).catch(i=>{throw P("getLoolUrl",i)})}getAccessToken(t,a,i){let o=`${t}/alfresco/service/lool/token?nodeRef=workspace://SpacesStore/${a}&action=${i}`,s={headers:{Authorization:`basic ${window.btoa(window.localStorage["ticket-ECM"])}`}};return he.get(o,s).then(n=>n.data).catch(n=>{throw P("getAccessToken",n)})}}const SW=new xW;class JW{isDivBody(t,a){return["BODY","DIV"].includes(t.target.nodeName)&&!a&&!t.isComposing}eventPdfComponent(t,a){if(t)switch(a.key){case"ArrowLeft":t.previousPage();break;case"ArrowRight":t.nextPage();break;case"+":t.zoomIn();break;case"-":t.zoomOut();break;case"5":t.fitWidthAuto();break;case"0":t.fitAuto();break}}eventImageViewer(t,a){if(t)switch(a.key){case"+":t.zoomIn();break;case"-":t.zoomOut();break;case"0":t.fitAuto();break}}}const UW=new JW;class HW{getAspects(t={}){return xa.listAspects(t)}getAspect(t){return xa.getAspect(t)}getTypes(t={}){return Sa.listTypes(t)}getType(t){return Sa.getType(t)}extractPropertiesFromType(t){const a=[];return t.properties&&Object.entries(t.properties).forEach(([i,o])=>{a.push({key:o.id,title:o.title||i,dataType:o.dataType||"d:text",mandatory:o.mandatory||!1})}),a}extractPropertiesFromAspect(t){const a=[];return t.properties&&Object.entries(t.properties).forEach(([i,o])=>{a.push({key:o.id,title:o.title||i,dataType:o.dataType||"d:text",mandatory:o.mandatory||!1})}),a}async getAllPropertyKeys(){const t=new Set;try{const a=await this.getTypes({maxItems:1e3});if(a.list?.entries)for(const o of a.list.entries){const s=await this.getType(o.entry.id);this.extractPropertiesFromType(s.entry).forEach(c=>t.add(c.key))}const i=await this.getAspects({maxItems:1e3});if(i.list?.entries)for(const o of i.list.entries){const s=await this.getAspect(o.entry.id);this.extractPropertiesFromAspect(s.entry).forEach(c=>t.add(c.key))}}catch(a){console.error("Failed to fetch property keys from Alfresco",a)}return Array.from(t).sort()}}const QW=new HW;function BW(l,t=""){if(typeof l>"u"||l===null)throw new Error("mandatory parameter "+t)}function Io(l,t=""){if(typeof l!="string"||t.trim()==="")throw new Error("mandatory parameter "+t)}class Nc{alive=!1;hide=!1;code;label;parent}class fo extends Nc{groupConfidentiel;constructor({code:t,label:a,parent:i,groupConfidentiel:o,alive:s=!0}){super(),this.code=t,this.label=a,this.parent=i,this.groupConfidentiel=o,this.alive=s}isConfidentiel(){return this.groupConfidentiel&&this.groupConfidentiel.length>0}}class Xc extends Nc{constructor({code:t,label:a,parent:i,hide:o=!1}){super(),this.code=t,this.label=a,this.parent=i,this.hide=o}}class EW{app="social";loading=!0;constructor(){this.filingPlans={},this.natures={}}async loadPlanClassement(t){this.loading=!0,Io(t,"planType");let a=`plan-${t}.json`;console.info(`loading plan ${t}`);const i=`fr/jeci/pristy/config/${this.app}/${a}`;return Wl.executeWebScript("GET",i).then(o=>{const s=o.PLAN_CLASSEMENT,n=o.NATURE_DOCUMENT;if(!s)throw new Error(`Missing PLAN_CLASSEMENT in ${a}`);if(!n)throw new Error(`Missing NATURE_DOCUMENT in ${a}`);this.filingPlans[t]=s.map(c=>{let r=new fo(c);return r.alive=!0,r}),this.natures[t]=n.filter(c=>{let r=this.getTypeDossier(t,c.parent);return r!=null}).map(c=>{let r=new Xc(c);return r.alive=!0,r}),this.loading=!1})}getTypeDossier(t,a){return this._findPlan(t,i=>i.code===a)}getTypeDossierFromLabel(t,a){return this._findPlan(t,i=>i.label===a)}_findPlan(t,a){return this._assertPlanExist(t),this.filingPlans[t].find(a)}_assertPlanExist(t){if(!Object.prototype.hasOwnProperty.call(this.filingPlans,t))throw new Error(`Filling Plan ${t} not loaded`)}getPlan(t){return Object.prototype.hasOwnProperty.call(this.filingPlans,t)?this.filingPlans[t]:(console.warn("Filling Plan ${planType} not loaded"),null)}getFilteredPlan(t){return lo.getUserGroups(Ge().person.id,!1).then(a=>Object.prototype.hasOwnProperty.call(this.filingPlans,t)?this.filingPlans[t].filter(o=>o.groupConfidentiel?a.includes(o.groupConfidentiel):!0):(console.warn(`Filing Plan ${t} not loaded`),null))}getNatureDocument(t,a){return Object.prototype.hasOwnProperty.call(this.natures,t)?this.natures[t].find(i=>i.code===a):(console.warn(`Filling Plan ${t} not loaded`),null)}getNatures(t){return Object.prototype.hasOwnProperty.call(this.natures,t)?this.natures[t]:(console.warn(`Filling Plan ${t} not loaded`),null)}getEnabledNatures(t){return Object.prototype.hasOwnProperty.call(this.natures,t)?this.natures[t].filter(a=>a.hide===!1):(console.warn(`Filling Plan ${t} not loaded`),null)}getTypeDossierOfNode(t,a){const i=this.getFolderNameFromPath(a);let o=this.getTypeDossierFromLabel(t,i);return o||(o=new fo({label:`${i} - Hors Plan`}),o.hide=!0),Promise.resolve(o)}getFolderNameFromPath(t){if(!t.path)return console.warn("No file path provided"),null;const a=t.path.elements.length-1;return t.path.elements[a].name}async treeNodes(t){return Io(t,"planType"),this.getFilteredPlan(t).then(a=>a.map(i=>({id:i.id||null,key:i.code,label:i.label,children:[],isFolder:!0,confidentiel:i.isConfidentiel(),icon:"ri-folder-line"})))}}const PW=new EW,_W={install(l,t){console.log("load Keycloak With",t.init);const a=new Hc(t.init);a.onReady=()=>{typeof t.onReady=="function"&&t.onReady(a)};let i;a.onAuthSuccess=()=>{i=setInterval(()=>{a.updateToken(60).then(o=>{t.init.enableLogging&&console.log(`[vue-keycloak-js] Token ${o?"updated":"not updated"}`)}).catch(o=>{t.init.enableLogging&&console.error("[vue-keycloak-js] Error updating token:",o),a.clearToken()})},1e4)},a.onAuthLogout=()=>{clearInterval(i),typeof t.onAuthLogout=="function"&&t.onAuthLogout(a)},a.init(t.init).then(o=>{typeof t.onInitSuccess=="function"&&t.onInitSuccess(o)}).catch(o=>{const s=new Error("Failure during initialization of Keycloak");typeof t.onInitError=="function"?t.onInitError(s,o):console.error(s,o)})}},KW=$.defineStore({id:"UserPreferencesStore",state:()=>({listView:!0})}),$W={components:{PrimeButton:w,PrimeMessage:Wt,PrimeDivider:Ll,PrimeInputText:Me,PrimePassword:Qc},data(){return{email:"",password:"",checked:!1,loginError:!1,failLoginMessage:null}},methods:{goToForgotPasswordPage(){this.$router.push({name:"forgot-password"})},goToACA(){window.location.href=this.ACA_LINK},login(){Ge().login(this.email,this.password).then(t=>{if(t===!1)throw new Error(this.$t("login.emptyPasswordOrUser"));this.$route.query?.target===void 0?this.$router.push({name:"welcome"}):this.$router.replace(this.$route.query.target)}).catch(t=>{this.loginError=!0,t instanceof Error?this.failLoginMessage=t.message:t&&typeof t=="object"&&t.message?this.failLoginMessage=t.message:typeof t=="string"?this.failLoginMessage=t:this.failLoginMessage=this.$t("login.unexpectedError")})}},computed:{...$.mapState(de,["SHOW_ACA_LOGIN_LINK","ACA_LINK"])}},qW={class:"surface-0 flex align-items-center justify-content-center min-h-screen min-w-screen overflow-hidden"},e9={class:"grid justify-content-center p-2 lg:p-0 login-grid"},t9={class:"col-12 xl:col-6"},l9={class:"h-full w-full m-0 py-7 px-4 login-card"},a9={class:"text-center mb-5"},o9={class:"text-900 text-3xl font-medium mb-3"},s9={class:"text-600 font-medium"},i9={class:"w-full md:w-10 mx-auto"},n9={for:"email",class:"block text-900 text-xl font-medium mb-2"},c9={for:"password",class:"block text-900 font-medium text-xl mb-2"},r9={class:"w-full mb-3 flex justify-content-end flex-wrap"};function d9(l,t,a,i,o,s){const n=e.resolveComponent("PrimeMessage"),c=e.resolveComponent("PrimeInputText"),r=e.resolveComponent("PrimePassword"),m=e.resolveComponent("PrimeButton"),h=e.resolveComponent("PrimeDivider");return e.openBlock(),e.createElementBlock("div",qW,[e.createElementVNode("div",e9,[e.createElementVNode("div",t9,[e.createElementVNode("div",l9,[e.createElementVNode("div",a9,[t[3]||(t[3]=e.createElementVNode("div",{id:"loginLogo",class:"mb-3 inline-block"},null,-1)),e.createElementVNode("div",o9,e.toDisplayString(l.$t("welcome")),1),e.createElementVNode("span",s9,e.toDisplayString(l.$t("connectToContinue")),1)]),o.loginError?(e.openBlock(),e.createBlock(n,{key:0,"data-testid":"login-page-error-message",severity:"error",closable:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.failLoginMessage),1)]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",i9,[e.createElementVNode("label",n9,e.toDisplayString(l.$t("userIdentification")),1),e.createVNode(c,{"data-testid":"login-page-email-input",id:"email",modelValue:o.email,"onUpdate:modelValue":t[0]||(t[0]=u=>o.email=u),type:"text",class:"w-full mb-3 p-3",placeholder:l.$t("userID"),onKeyup:e.withKeys(s.login,["enter"])},null,8,["modelValue","placeholder","onKeyup"]),e.createElementVNode("label",c9,e.toDisplayString(l.$t("password")),1),e.createVNode(r,{"data-testid":"login-page-password-input",id:"password",modelValue:o.password,"onUpdate:modelValue":t[1]||(t[1]=u=>o.password=u),placeholder:l.$t("password"),class:"w-full mb-3",inputClass:"w-full p-3",feedback:!1,onKeyup:e.withKeys(s.login,["enter"])},null,8,["modelValue","placeholder","onKeyup"]),e.createElementVNode("div",r9,[e.createElementVNode("a",{"data-testid":"login-page-forgot-password-link",class:"cursor-pointer no-underline hover:underline",onClick:t[2]||(t[2]=(...u)=>s.goToForgotPasswordPage&&s.goToForgotPasswordPage(...u))},e.toDisplayString(l.$t("forgotPasswordLink")),1)]),e.createVNode(m,{"data-testid":"login-page-submit-button",label:l.$t("connect"),class:"w-full p-3 text-xl",onClick:s.login},null,8,["label","onClick"]),l.SHOW_ACA_LOGIN_LINK?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(h,{class:"p-1"}),e.createVNode(m,{"data-testid":"login-page-aca-button",label:l.$t("accessACA"),class:"w-full p-2 text-xl",severity:"secondary",onClick:s.goToACA},null,8,["label","onClick"])],64)):e.createCommentVNode("",!0)])])])])])}const b9=H($W,[["render",d9],["__scopeId","data-v-a9118064"]]),m9={name:"NotFoundPages",data(){return{errorNb:"404"}},components:{ErrorComponent:jo}};function p9(l,t,a,i,o,s){const n=e.resolveComponent("ErrorComponent");return e.openBlock(),e.createBlock(n,{"data-testid":"not-found-page-error-component",errorNb:o.errorNb},null,8,["errorNb"])}const u9=H(m9,[["render",p9]]),Z9="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1100'%20height='1000'%20viewBox='0%200%201100%201000'%3e%3cg%20style='display:inline'%3e%3cpath%20d='M504.426%20175.12v-755.5h1894.998l.25%20755.5.252%20755.5h-1895.5Zm1595.67%20495.866c12.556-4.749%2022.914-8.695%2023.017-8.77s.872-7.552%201.71-16.616c4.471-48.375%207.239-141.749%208.275-279.23l.654-86.75-4.913.012c-2.702.007-12.338.677-21.413%201.488s-17.131%201.48-17.903%201.488c-1.543.013-1.29%2013.857.933%2051.012.609%2010.175.964%2027.5.788%2038.5l-.318%2020-4.682%209.565c-15.4%2031.458-33.812%2046.042-46.2%2036.593-15.749-12.013-20.55-61.88-13.012-135.158.849-8.25%201.622-16.575%201.719-18.5l.175-3.5-20.873-1.327c-11.48-.73-21.239-.954-21.684-.5-1.044%201.064-3.468%2015.172-5.555%2032.327-1.121%209.215-1.722%2023.34-1.894%2044.5l-.25%2031-3.747%2010c-14.505%2038.716-34.978%2057.47-52.59%2048.174-14.833-7.83-18.002-25.159-16.017-87.587.64-20.123%201.44-40.075%201.78-44.337l.618-7.75H1955l3.374-13.75c1.856-7.563%203.579-14.538%203.83-15.5.424-1.634-1.283-1.75-25.662-1.75h-26.117l.027-4.75c.015-2.613%201.099-21.85%202.408-42.75s2.004-38.395%201.544-38.878c-.905-.951-42.641%208.068-44.73%209.666-.886.679-1.25%204.731-1.25%2013.943%200%2015.55-1.98%2062.06-2.672%2062.769-.269.275-9.786.725-21.15%201l-20.66.5-5.145%2014-5.145%2014%2015.636.614c8.6.339%2020.045.676%2025.432.75l9.795.136-.67%2037.25c-1.348%2074.942%203.478%20101.74%2021.861%20121.392%209.918%2010.601%2019.408%2015.373%2034.95%2017.57%209.4%201.33%2021.63%200%2029.89-3.26%2012.633-4.98%2024.348-15.379%2033.814-30.017l5.622-8.692%204.178%208.775c5.82%2012.222%2012.952%2019.74%2023.856%2025.142%207.678%203.805%209.154%204.18%2018.138%204.613%2012.293.592%2019.055-.786%2029.565-6.021%205.995-2.987%2010.159-6.033%2015.456-11.307l7.25-7.22-.01%2015.138c-.011%2027.267-2.612%2081.885-6.054%20127.137-2.122%2027.885-6.64%2076.233-7.547%2080.75-.406%202.022-.156%202.75.946%202.75.825%200%2011.773-3.885%2024.33-8.634zm-1057.67-116.299c28.774-1.136%2053.183-2.723%2056.75-3.69%201.238-.336%202.25-.955%202.25-1.377%200-1.2-3.737-1.915-13.75-2.633-5.087-.364-9.25-1.07-9.25-1.567s-1.358-1.377-3.017-1.956l-3.018-1.052%201.92-3.146c2.371-3.886%205.648-14.46%206.558-21.163%201.4-10.321-4.663-28.636-11.866-35.839l-3.24-3.24%206.49-6.952c35.896-38.45%2058.697-88.228%2064.239-140.245%201.724-16.184.72-48.355-1.987-63.707-11.286-63.991-45.373-118.749-97.579-156.748-91.455-66.57-217.858-64.52-307.39%204.985-11.368%208.824-30.502%2027.544-39.621%2038.763-22.151%2027.25-38.675%2059.933-47.02%2093-11.263%2044.63-9.667%2090.501%204.666%20134.118%209.77%2029.727%2027.807%2061.418%2047.297%2083.095%202.513%202.795%204.568%205.422%204.568%205.838s-1.862%202.35-4.138%204.299c-5.638%204.826-10.264%2012.372-12.896%2021.036-4.065%2013.383-1.627%2030.479%205.908%2041.43l3.083%204.482-2.417%201.584c-1.65%201.081-6.78%201.915-16.158%202.627-14.572%201.106-18.382%201.726-18.382%202.991%200%201.258%204.238%201.988%2017.272%202.975%2012.306.931%2066.501%202.853%2096.228%203.412%2036.072.68%20249.918-.35%20274.5-1.32m728.979-76.096c13.784-4.615%2024.711-11.598%2034.223-21.872%2022.997-24.839%2022.518-53.876-1.59-96.446-8.476-14.967-15.161-24.324-33.02-46.215-1.872-2.294-1.873-2.59-.063-15.369%201.015-7.166%201.531-13.343%201.149-13.725-.581-.581-33.013-6.243-36.197-6.32-.56-.013-2.008%207.063-3.216%2015.726-3.505%2025.129-12.883%2059.679-24.041%2088.57-3.366%208.717-4.796%2011.408-5.444%2010.25-.483-.863-1.508-1.57-2.277-1.57s-8.172%202.3-16.45%205.113c-10.679%203.627-15.052%205.56-15.052%206.654%200%201.707%204.89%2010.858%2011.769%2022.027%205.06%208.217%205.141%207.906-3.194%2012.338-3.016%201.603-5.16%201.984-9.258%201.644-15.635-1.296-18.067-15.694-15.282-90.471.57-15.293%201.447-35.005%201.948-43.805.502-8.8.59-16.323.196-16.718-1.247-1.252-42.262-3.45-43.01-2.306-.368.563-1.052%2025.324-1.52%2055.024l-.851%2054-4.276%209.123c-10.516%2022.44-22.77%2034.385-35.261%2034.372-8.8-.01-15.464-6.044-19.213-17.398-5.741-17.383-5.345-43.206%201.417-92.351%202.037-14.801%202.314-19.178%201.464-23.139-1.349-6.291-6.39-12.214-13.205-15.517-6.097-2.954-8.485-2.672-20.725%202.452-9.652%204.04-16.929%204.465-20.218%201.18-2.08-2.077-2.284-3.204-2.315-12.756-.044-13.916-.829-14.822-13.254-15.307-4.804-.187-10.304.065-12.223.561l-3.49.902-.666%2010.939c-.939%2015.394-6.72%2051.97-11.364%2071.896-.764%203.276-1.247%206.099-1.074%206.272.583.582%2027.69%205.518%2028.094%205.115.22-.22%201.847-7.586%203.616-16.371s3.483-16.287%203.806-16.672c.324-.384%205.244.05%2010.935.964l10.346%201.662-.623%203.537c-2.481%2014.093-4.831%2043.836-4.9%2062.036-.07%2018.26.163%2021.374%202.141%2028.5%207.024%2025.3%2022.58%2042.72%2042.87%2048.005%203.157.822%209.648%201.495%2014.424%201.495%2015.61%200%2026.666-4.937%2040.255-17.976l8.14-7.81%202.44%205.543c7.34%2016.677%2020.451%2024.41%2041.387%2024.41%2016.97%200%2028.839-4.24%2041.18-14.71l6.49-5.505%208.59%206.948c8.776%207.1%2019.77%2013.24%2026.915%2015.03%206.294%201.578%2022.037.532%2029.477-1.959zm-493.604-7.437c11.481-1.348%2020.98-2.582%2021.108-2.742s-.146-4.792-.61-10.292-1.14-31.913-1.502-58.695l-.657-48.695%202.393-.486c1.316-.268%2013.643-2.113%2027.393-4.101%2032.218-4.658%2046.902-7.689%2063.204-13.044%2038.272-12.572%2059.1-32.631%2067.466-64.979%202.064-7.978%202.326-11.271%202.311-29-.019-22.68-.871-27.345-7.491-41-7.027-14.494-17.266-24.582-32.49-32.01-24.44-11.927-49.949-13.244-115-5.94-35.252%203.957-102.076%2015.034-104.72%2017.358-.397.348.387%2010.074%201.742%2021.613s2.466%2021.316%202.47%2021.729c.015%201.387%204.407.72%2027.508-4.184%2012.65-2.685%2023.186-4.7%2023.413-4.478.226.222-.574%2056.993-1.778%20126.158s-2.178%20127.891-2.162%20130.504c.027%204.688.07%204.75%203.277%204.742%201.788%200%2012.644-1.11%2024.125-2.458m375.955-204.348c4.018-2.266%205.804-4.117%208.012-8.301%202.642-5.005%202.813-6.02%202.435-14.385-.439-9.71-2.486-15.297-7.637-20.842-9.169-9.868-27.428-10.135-37.022-.54-9.043%209.042-10.016%2026.79-2.08%2037.936%202.342%203.289%209.48%207.807%2014.294%209.05%206.183%201.594%2016.402.24%2021.998-2.918'%20style='fill:none;fill-rule:evenodd'/%3e%3cpath%20d='M504.426%20175.12v-755.5h1894.998l.25%20755.5.252%20755.5h-1895.5Zm1595.67%20495.866c12.556-4.749%2022.914-8.695%2023.017-8.77s.872-7.552%201.71-16.616c4.471-48.375%207.239-141.749%208.275-279.23l.654-86.75-4.913.012c-2.702.007-12.338.677-21.413%201.488s-17.131%201.48-17.903%201.488c-1.543.013-1.29%2013.857.933%2051.012.609%2010.175.964%2027.5.788%2038.5l-.318%2020-4.682%209.565c-15.4%2031.458-33.812%2046.042-46.2%2036.593-15.749-12.013-20.55-61.88-13.012-135.158.849-8.25%201.622-16.575%201.719-18.5l.175-3.5-20.873-1.327c-11.48-.73-21.239-.954-21.684-.5-1.044%201.064-3.468%2015.172-5.555%2032.327-1.121%209.215-1.722%2023.34-1.894%2044.5l-.25%2031-3.747%2010c-14.505%2038.716-34.978%2057.47-52.59%2048.174-14.833-7.83-18.002-25.159-16.017-87.587.64-20.123%201.44-40.075%201.78-44.337l.618-7.75H1955l3.374-13.75c1.856-7.563%203.579-14.538%203.83-15.5.424-1.634-1.283-1.75-25.662-1.75h-26.117l.027-4.75c.015-2.613%201.099-21.85%202.408-42.75s2.004-38.395%201.544-38.878c-.905-.951-42.641%208.068-44.73%209.666-.886.679-1.25%204.731-1.25%2013.943%200%2015.55-1.98%2062.06-2.672%2062.769-.269.275-9.786.725-21.15%201l-20.66.5-5.145%2014-5.145%2014%2015.636.614c8.6.339%2020.045.676%2025.432.75l9.795.136-.67%2037.25c-1.348%2074.942%203.478%20101.74%2021.861%20121.392%209.918%2010.601%2019.408%2015.373%2034.95%2017.57%209.4%201.33%2021.63%200%2029.89-3.26%2012.633-4.98%2024.348-15.379%2033.814-30.017l5.622-8.692%204.178%208.775c5.82%2012.222%2012.952%2019.74%2023.856%2025.142%207.678%203.805%209.154%204.18%2018.138%204.613%2012.293.592%2019.055-.786%2029.565-6.021%205.995-2.987%2010.159-6.033%2015.456-11.307l7.25-7.22-.01%2015.138c-.011%2027.267-2.612%2081.885-6.054%20127.137-2.122%2027.885-6.64%2076.233-7.547%2080.75-.406%202.022-.156%202.75.946%202.75.825%200%2011.773-3.885%2024.33-8.634zm-1057.67-116.299c28.774-1.136%2053.183-2.723%2056.75-3.69%201.238-.336%202.25-.955%202.25-1.377%200-1.2-3.737-1.915-13.75-2.633-5.087-.364-9.25-1.07-9.25-1.567s-1.358-1.377-3.017-1.956l-3.018-1.052%201.92-3.146c2.371-3.886%205.648-14.46%206.558-21.163%201.4-10.321-4.663-28.636-11.866-35.839l-3.24-3.24%206.49-6.952c35.896-38.45%2058.697-88.228%2064.239-140.245%201.724-16.184.72-48.355-1.987-63.707-11.286-63.991-45.373-118.749-97.579-156.748-91.455-66.57-217.858-64.52-307.39%204.985-11.368%208.824-30.502%2027.544-39.621%2038.763-22.151%2027.25-38.675%2059.933-47.02%2093-11.263%2044.63-9.667%2090.501%204.666%20134.118%209.77%2029.727%2027.807%2061.418%2047.297%2083.095%202.513%202.795%204.568%205.422%204.568%205.838s-1.862%202.35-4.138%204.299c-5.638%204.826-10.264%2012.372-12.896%2021.036-4.065%2013.383-1.627%2030.479%205.908%2041.43l3.083%204.482-2.417%201.584c-1.65%201.081-6.78%201.915-16.158%202.627-14.572%201.106-18.382%201.726-18.382%202.991%200%201.258%204.238%201.988%2017.272%202.975%2012.306.931%2066.501%202.853%2096.228%203.412%2036.072.68%20249.918-.35%20274.5-1.32m728.979-76.096c13.784-4.615%2024.711-11.598%2034.223-21.872%2022.997-24.839%2022.518-53.876-1.59-96.446-8.476-14.967-15.161-24.324-33.02-46.215-1.872-2.294-1.873-2.59-.063-15.369%201.015-7.166%201.531-13.343%201.149-13.725-.581-.581-33.013-6.243-36.197-6.32-.56-.013-2.008%207.063-3.216%2015.726-3.505%2025.129-12.883%2059.679-24.041%2088.57-3.366%208.717-4.796%2011.408-5.444%2010.25-.483-.863-1.508-1.57-2.277-1.57s-8.172%202.3-16.45%205.113c-10.679%203.627-15.052%205.56-15.052%206.654%200%201.707%204.89%2010.858%2011.769%2022.027%205.06%208.217%205.141%207.906-3.194%2012.338-3.016%201.603-5.16%201.984-9.258%201.644-15.635-1.296-18.067-15.694-15.282-90.471.57-15.293%201.447-35.005%201.948-43.805.502-8.8.59-16.323.196-16.718-1.247-1.252-42.262-3.45-43.01-2.306-.368.563-1.052%2025.324-1.52%2055.024l-.851%2054-4.276%209.123c-10.516%2022.44-22.77%2034.385-35.261%2034.372-8.8-.01-15.464-6.044-19.213-17.398-5.741-17.383-5.345-43.206%201.417-92.351%202.037-14.801%202.314-19.178%201.464-23.139-1.349-6.291-6.39-12.214-13.205-15.517-6.097-2.954-8.485-2.672-20.725%202.452-9.652%204.04-16.929%204.465-20.218%201.18-2.08-2.077-2.284-3.204-2.315-12.756-.044-13.916-.829-14.822-13.254-15.307-4.804-.187-10.304.065-12.223.561l-3.49.902-.666%2010.939c-.939%2015.394-6.72%2051.97-11.364%2071.896-.764%203.276-1.247%206.099-1.074%206.272.583.582%2027.69%205.518%2028.094%205.115.22-.22%201.847-7.586%203.616-16.371s3.483-16.287%203.806-16.672c.324-.384%205.244.05%2010.935.964l10.346%201.662-.623%203.537c-2.481%2014.093-4.831%2043.836-4.9%2062.036-.07%2018.26.163%2021.374%202.141%2028.5%207.024%2025.3%2022.58%2042.72%2042.87%2048.005%203.157.822%209.648%201.495%2014.424%201.495%2015.61%200%2026.666-4.937%2040.255-17.976l8.14-7.81%202.44%205.543c7.34%2016.677%2020.451%2024.41%2041.387%2024.41%2016.97%200%2028.839-4.24%2041.18-14.71l6.49-5.505%208.59%206.948c8.776%207.1%2019.77%2013.24%2026.915%2015.03%206.294%201.578%2022.037.532%2029.477-1.959zm-493.604-7.437c11.481-1.348%2020.98-2.582%2021.108-2.742s-.146-4.792-.61-10.292-1.14-31.913-1.502-58.695l-.657-48.695%202.393-.486c1.316-.268%2013.643-2.113%2027.393-4.101%2032.218-4.658%2046.902-7.689%2063.204-13.044%2038.272-12.572%2059.1-32.631%2067.466-64.979%202.064-7.978%202.326-11.271%202.311-29-.019-22.68-.871-27.345-7.491-41-7.027-14.494-17.266-24.582-32.49-32.01-24.44-11.927-49.949-13.244-115-5.94-35.252%203.957-102.076%2015.034-104.72%2017.358-.397.348.387%2010.074%201.742%2021.613s2.466%2021.316%202.47%2021.729c.015%201.387%204.407.72%2027.508-4.184%2012.65-2.685%2023.186-4.7%2023.413-4.478.226.222-.574%2056.993-1.778%20126.158s-2.178%20127.891-2.162%20130.504c.027%204.688.07%204.75%203.277%204.742%201.788%200%2012.644-1.11%2024.125-2.458m375.955-204.348c4.018-2.266%205.804-4.117%208.012-8.301%202.642-5.005%202.813-6.02%202.435-14.385-.439-9.71-2.486-15.297-7.637-20.842-9.169-9.868-27.428-10.135-37.022-.54-9.043%209.042-10.016%2026.79-2.08%2037.936%202.342%203.289%209.48%207.807%2014.294%209.05%206.183%201.594%2016.402.24%2021.998-2.918'%20style='fill:none;fill-rule:evenodd'/%3e%3cpath%20d='M504.426%20175.12v-755.5h1895v1511h-1895Zm1595.67%20495.866c12.556-4.749%2022.914-8.695%2023.017-8.77s.872-7.552%201.71-16.616c4.471-48.375%207.239-141.749%208.275-279.23l.654-86.75-4.913.012c-2.702.007-12.338.677-21.413%201.488s-17.131%201.48-17.903%201.488c-1.543.013-1.29%2013.857.933%2051.012.609%2010.175.964%2027.5.788%2038.5l-.318%2020-4.682%209.565c-15.4%2031.458-33.812%2046.042-46.2%2036.593-15.749-12.013-20.55-61.88-13.012-135.158.849-8.25%201.622-16.575%201.719-18.5l.175-3.5-20.873-1.327c-11.48-.73-21.239-.954-21.684-.5-1.044%201.064-3.468%2015.172-5.555%2032.327-1.121%209.215-1.722%2023.34-1.894%2044.5l-.25%2031-3.747%2010c-14.505%2038.716-34.978%2057.47-52.59%2048.174-14.833-7.83-18.002-25.159-16.017-87.587.64-20.123%201.44-40.075%201.78-44.337l.618-7.75H1955l3.374-13.75c1.856-7.563%203.579-14.538%203.83-15.5.424-1.634-1.283-1.75-25.662-1.75h-26.117l.027-4.75c.015-2.613%201.099-21.85%202.408-42.75s2.004-38.395%201.544-38.878c-.905-.951-42.641%208.068-44.73%209.666-.886.679-1.25%204.731-1.25%2013.943%200%2015.55-1.98%2062.06-2.672%2062.769-.269.275-9.786.725-21.15%201l-20.66.5-5.145%2014-5.145%2014%2015.636.614c8.6.339%2020.045.676%2025.432.75l9.795.136-.67%2037.25c-1.348%2074.942%203.478%20101.74%2021.861%20121.392%209.918%2010.601%2019.408%2015.373%2034.95%2017.57%209.4%201.33%2021.63%200%2029.89-3.26%2012.633-4.98%2024.348-15.379%2033.814-30.017l5.622-8.692%204.178%208.775c5.82%2012.222%2012.952%2019.74%2023.856%2025.142%207.678%203.805%209.154%204.18%2018.138%204.613%2012.293.592%2019.055-.786%2029.565-6.021%205.995-2.987%2010.159-6.033%2015.456-11.307l7.25-7.22-.01%2015.138c-.011%2027.267-2.612%2081.885-6.054%20127.137-2.122%2027.885-6.64%2076.233-7.547%2080.75-.406%202.022-.156%202.75.946%202.75.825%200%2011.773-3.885%2024.33-8.634zm-1057.67-116.299c28.774-1.136%2053.183-2.723%2056.75-3.69%201.238-.336%202.25-.955%202.25-1.377%200-1.2-3.737-1.915-13.75-2.633-5.087-.364-9.25-1.07-9.25-1.567s-1.358-1.377-3.017-1.956l-3.018-1.052%201.92-3.146c2.371-3.886%205.648-14.46%206.558-21.163%201.4-10.321-4.663-28.636-11.866-35.839l-3.24-3.24%206.49-6.952c35.896-38.45%2058.697-88.228%2064.239-140.245%201.724-16.184.72-48.355-1.987-63.707-11.286-63.991-45.373-118.749-97.579-156.748-91.455-66.57-217.858-64.52-307.39%204.985-11.368%208.824-30.502%2027.544-39.621%2038.763-22.151%2027.25-38.675%2059.933-47.02%2093-11.263%2044.63-9.667%2090.501%204.666%20134.118%209.77%2029.727%2027.807%2061.418%2047.297%2083.095%202.513%202.795%204.568%205.422%204.568%205.838s-1.862%202.35-4.138%204.299c-5.638%204.826-10.264%2012.372-12.896%2021.036-4.065%2013.383-1.627%2030.479%205.908%2041.43l3.083%204.482-2.417%201.584c-1.65%201.081-6.78%201.915-16.158%202.627-14.572%201.106-18.382%201.726-18.382%202.991%200%201.258%204.238%201.988%2017.272%202.975%2012.306.931%2066.501%202.853%2096.228%203.412%2036.072.68%20249.918-.35%20274.5-1.32m728.979-76.096c13.784-4.615%2024.711-11.598%2034.223-21.872%2022.997-24.839%2022.518-53.876-1.59-96.446-8.476-14.967-15.161-24.324-33.02-46.215-1.872-2.294-1.873-2.59-.063-15.369%201.015-7.166%201.531-13.343%201.149-13.725-.581-.581-33.013-6.243-36.197-6.32-.56-.013-2.008%207.063-3.216%2015.726-3.505%2025.129-12.883%2059.679-24.041%2088.57-3.366%208.717-4.796%2011.408-5.444%2010.25-.483-.863-1.508-1.57-2.277-1.57s-8.172%202.3-16.45%205.113c-10.679%203.627-15.052%205.56-15.052%206.654%200%201.707%204.89%2010.858%2011.769%2022.027%205.06%208.217%205.141%207.906-3.194%2012.338-3.016%201.603-5.16%201.984-9.258%201.644-15.635-1.296-18.067-15.694-15.282-90.471.57-15.293%201.447-35.005%201.948-43.805.502-8.8.59-16.323.196-16.718-1.247-1.252-42.262-3.45-43.01-2.306-.368.563-1.052%2025.324-1.52%2055.024l-.851%2054-4.276%209.123c-10.516%2022.44-22.77%2034.385-35.261%2034.372-8.8-.01-15.464-6.044-19.213-17.398-5.741-17.383-5.345-43.206%201.417-92.351%202.037-14.801%202.314-19.178%201.464-23.139-1.349-6.291-6.39-12.214-13.205-15.517-6.097-2.954-8.485-2.672-20.725%202.452-9.652%204.04-16.929%204.465-20.218%201.18-2.08-2.077-2.284-3.204-2.315-12.756-.044-13.916-.829-14.822-13.254-15.307-4.804-.187-10.304.065-12.223.561l-3.49.902-.666%2010.939c-.939%2015.394-6.72%2051.97-11.364%2071.896-.764%203.276-1.247%206.099-1.074%206.272.583.582%2027.69%205.518%2028.094%205.115.22-.22%201.847-7.586%203.616-16.371s3.483-16.287%203.806-16.672c.324-.384%205.244.05%2010.935.964l10.346%201.662-.623%203.537c-2.481%2014.093-4.831%2043.836-4.9%2062.036-.07%2018.26.163%2021.374%202.141%2028.5%207.024%2025.3%2022.58%2042.72%2042.87%2048.005%203.157.822%209.648%201.495%2014.424%201.495%2015.61%200%2026.666-4.937%2040.255-17.976l8.14-7.81%202.44%205.543c7.34%2016.677%2020.451%2024.41%2041.387%2024.41%2016.97%200%2028.839-4.24%2041.18-14.71l6.49-5.505%208.59%206.948c8.776%207.1%2019.77%2013.24%2026.915%2015.03%206.294%201.578%2022.037.532%2029.477-1.959zm-493.604-7.437c11.481-1.348%2020.98-2.582%2021.108-2.742s-.146-4.792-.61-10.292-1.14-31.913-1.502-58.695l-.657-48.695%202.393-.486c1.316-.268%2013.643-2.113%2027.393-4.101%2032.218-4.658%2046.902-7.689%2063.204-13.044%2038.272-12.572%2059.1-32.631%2067.466-64.979%202.064-7.978%202.326-11.271%202.311-29-.019-22.68-.871-27.345-7.491-41-7.027-14.494-17.266-24.582-32.49-32.01-24.44-11.927-49.949-13.244-115-5.94-35.252%203.957-102.076%2015.034-104.72%2017.358-.397.348.387%2010.074%201.742%2021.613s2.466%2021.316%202.47%2021.729c.015%201.387%204.407.72%2027.508-4.184%2012.65-2.685%2023.186-4.7%2023.413-4.478.226.222-.574%2056.993-1.778%20126.158s-2.178%20127.891-2.162%20130.504c.027%204.688.07%204.75%203.277%204.742%201.788%200%2012.644-1.11%2024.125-2.458m375.955-204.348c4.018-2.266%205.804-4.117%208.012-8.301%202.642-5.005%202.813-6.02%202.435-14.385-.439-9.71-2.486-15.297-7.637-20.842-9.169-9.868-27.428-10.135-37.022-.54-9.043%209.042-10.016%2026.79-2.08%2037.936%202.342%203.289%209.48%207.807%2014.294%209.05%206.183%201.594%2016.402.24%2021.998-2.918'%20style='fill:none;fill-rule:evenodd'/%3e%3cpath%20d='M344.426%20175.12v-755.5h2747.998l.25%20755.5.252%20755.5h-2748.5Zm1755.67%20495.866c12.556-4.749%2022.914-8.695%2023.017-8.77s.872-7.552%201.71-16.616c4.471-48.375%207.239-141.749%208.275-279.23l.654-86.75-4.913.012c-2.702.007-12.338.677-21.413%201.488s-17.131%201.48-17.903%201.488c-1.543.013-1.29%2013.857.933%2051.012.609%2010.175.964%2027.5.788%2038.5l-.318%2020-4.682%209.565c-15.4%2031.458-33.812%2046.042-46.2%2036.593-15.749-12.013-20.55-61.88-13.012-135.158.849-8.25%201.622-16.575%201.719-18.5l.175-3.5-20.873-1.327c-11.48-.73-21.239-.954-21.684-.5-1.044%201.064-3.468%2015.172-5.555%2032.327-1.121%209.215-1.722%2023.34-1.894%2044.5l-.25%2031-3.747%2010c-14.505%2038.716-34.978%2057.47-52.59%2048.174-14.833-7.83-18.002-25.159-16.017-87.587.64-20.123%201.44-40.075%201.78-44.337l.618-7.75H1955l3.374-13.75c1.856-7.563%203.579-14.538%203.83-15.5.424-1.634-1.283-1.75-25.662-1.75h-26.117l.027-4.75c.015-2.613%201.099-21.85%202.408-42.75s2.004-38.395%201.544-38.878c-.905-.951-42.641%208.068-44.73%209.666-.886.679-1.25%204.731-1.25%2013.943%200%2015.55-1.98%2062.06-2.672%2062.769-.269.275-9.786.725-21.15%201l-20.66.5-5.145%2014-5.145%2014%2015.636.614c8.6.339%2020.045.676%2025.432.75l9.795.136-.67%2037.25c-1.348%2074.942%203.478%20101.74%2021.861%20121.392%209.918%2010.601%2019.408%2015.373%2034.95%2017.57%209.4%201.33%2021.63%200%2029.89-3.26%2012.633-4.98%2024.348-15.379%2033.814-30.017l5.622-8.692%204.178%208.775c5.82%2012.222%2012.952%2019.74%2023.856%2025.142%207.678%203.805%209.154%204.18%2018.138%204.613%2012.293.592%2019.055-.786%2029.565-6.021%205.995-2.987%2010.159-6.033%2015.456-11.307l7.25-7.22-.01%2015.138c-.011%2027.267-2.612%2081.885-6.054%20127.137-2.122%2027.885-6.64%2076.233-7.547%2080.75-.406%202.022-.156%202.75.946%202.75.825%200%2011.773-3.885%2024.33-8.634zm-1057.67-116.299c28.774-1.136%2053.183-2.723%2056.75-3.69%201.238-.336%202.25-.955%202.25-1.377%200-1.2-3.737-1.915-13.75-2.633-5.087-.364-9.25-1.07-9.25-1.567s-1.358-1.377-3.017-1.956l-3.018-1.052%201.92-3.146c2.371-3.886%205.648-14.46%206.558-21.163%201.4-10.321-4.663-28.636-11.866-35.839l-3.24-3.24%206.49-6.952c35.896-38.45%2058.697-88.228%2064.239-140.245%201.724-16.184.72-48.355-1.987-63.707-11.286-63.991-45.373-118.749-97.579-156.748-91.455-66.57-217.858-64.52-307.39%204.985-11.368%208.824-30.502%2027.544-39.621%2038.763-22.151%2027.25-38.675%2059.933-47.02%2093-11.263%2044.63-9.667%2090.501%204.666%20134.118%209.77%2029.727%2027.807%2061.418%2047.297%2083.095%202.513%202.795%204.568%205.422%204.568%205.838s-1.862%202.35-4.138%204.299c-5.638%204.826-10.264%2012.372-12.896%2021.036-4.065%2013.383-1.627%2030.479%205.908%2041.43l3.083%204.482-2.417%201.584c-1.65%201.081-6.78%201.915-16.158%202.627-14.572%201.106-18.382%201.726-18.382%202.991%200%201.258%204.238%201.988%2017.272%202.975%2012.306.931%2066.501%202.853%2096.228%203.412%2036.072.68%20249.918-.35%20274.5-1.32m728.979-76.096c13.784-4.615%2024.711-11.598%2034.223-21.872%2022.997-24.839%2022.518-53.876-1.59-96.446-8.476-14.967-15.161-24.324-33.02-46.215-1.872-2.294-1.873-2.59-.063-15.369%201.015-7.166%201.531-13.343%201.149-13.725-.581-.581-33.013-6.243-36.197-6.32-.56-.013-2.008%207.063-3.216%2015.726-3.505%2025.129-12.883%2059.679-24.041%2088.57-3.366%208.717-4.796%2011.408-5.444%2010.25-.483-.863-1.508-1.57-2.277-1.57s-8.172%202.3-16.45%205.113c-10.679%203.627-15.052%205.56-15.052%206.654%200%201.707%204.89%2010.858%2011.769%2022.027%205.06%208.217%205.141%207.906-3.194%2012.338-3.016%201.603-5.16%201.984-9.258%201.644-15.635-1.296-18.067-15.694-15.282-90.471.57-15.293%201.447-35.005%201.948-43.805.502-8.8.59-16.323.196-16.718-1.247-1.252-42.262-3.45-43.01-2.306-.368.563-1.052%2025.324-1.52%2055.024l-.851%2054-4.276%209.123c-10.516%2022.44-22.77%2034.385-35.261%2034.372-8.8-.01-15.464-6.044-19.213-17.398-5.741-17.383-5.345-43.206%201.417-92.351%202.037-14.801%202.314-19.178%201.464-23.139-1.349-6.291-6.39-12.214-13.205-15.517-6.097-2.954-8.485-2.672-20.725%202.452-9.652%204.04-16.929%204.465-20.218%201.18-2.08-2.077-2.284-3.204-2.315-12.756-.044-13.916-.829-14.822-13.254-15.307-4.804-.187-10.304.065-12.223.561l-3.49.902-.666%2010.939c-.939%2015.394-6.72%2051.97-11.364%2071.896-.764%203.276-1.247%206.099-1.074%206.272.582.582%2027.69%205.518%2028.094%205.115.219-.22%201.847-7.586%203.616-16.371s3.483-16.287%203.806-16.672c.324-.384%205.244.05%2010.935.964l10.346%201.662-.623%203.537c-2.481%2014.093-4.831%2043.836-4.9%2062.036-.07%2018.26.163%2021.374%202.141%2028.5%207.024%2025.3%2022.58%2042.72%2042.87%2048.005%203.157.822%209.648%201.495%2014.424%201.495%2015.61%200%2026.666-4.937%2040.255-17.976l8.14-7.81%202.44%205.543c7.34%2016.677%2020.451%2024.41%2041.387%2024.41%2016.97%200%2028.839-4.24%2041.18-14.71l6.49-5.505%208.59%206.948c8.776%207.1%2019.77%2013.24%2026.915%2015.03%206.294%201.578%2022.037.532%2029.477-1.959zm-493.604-7.437c11.481-1.348%2020.98-2.582%2021.108-2.742s-.146-4.792-.61-10.292-1.14-31.913-1.502-58.695l-.657-48.695%202.393-.486c1.316-.268%2013.643-2.113%2027.393-4.101%2032.218-4.658%2046.902-7.689%2063.204-13.044%2038.272-12.572%2059.1-32.631%2067.466-64.979%202.064-7.978%202.326-11.271%202.311-29-.019-22.68-.871-27.345-7.491-41-7.027-14.494-17.266-24.582-32.49-32.01-24.44-11.927-49.949-13.244-115-5.94-35.252%203.957-102.076%2015.034-104.72%2017.358-.397.348.387%2010.074%201.742%2021.613s2.466%2021.316%202.47%2021.729c.015%201.387%204.407.72%2027.508-4.184%2012.65-2.685%2023.186-4.7%2023.413-4.478.226.222-.574%2056.993-1.778%20126.158s-2.178%20127.891-2.162%20130.504c.027%204.688.07%204.75%203.277%204.742%201.788%200%2012.644-1.11%2024.125-2.458m375.955-204.348c4.018-2.266%205.804-4.117%208.012-8.301%202.642-5.005%202.813-6.02%202.435-14.385-.439-9.71-2.486-15.297-7.637-20.842-9.169-9.868-27.428-10.135-37.022-.54-9.043%209.042-10.016%2026.79-2.08%2037.936%202.342%203.289%209.48%207.807%2014.294%209.05%206.183%201.594%2016.402.24%2021.998-2.918'%20style='fill:none;fill-rule:evenodd'/%3e%3cg%20transform='translate(-373.824%20-16.55)'%3e%3cellipse%20cx='883.322'%20cy='351.763'%20rx='332.891'%20ry='332.227'%20style='fill:%23fdcc10;fill-opacity:1;fill-rule:evenodd;stroke-width:1.36545'/%3e%3cellipse%20cx='1271.467'%20cy='-1399.972'%20rx='9.654'%20ry='14.943'%20style='fill:%23c8c8c8;fill-opacity:1;fill-rule:evenodd;stroke-width:1.07838'%20transform='matrix(.01022%20.99995%20-.73576%20.67724%200%200)'/%3e%3cpath%20d='M698.399%20510.786h377.707v37.887H698.399z'%20style='fill:%23c8c8c8;fill-opacity:1;fill-rule:evenodd'/%3e%3cpath%20d='M1024.732%20333.496h10.646V347.1h-10.646z'%20style='fill:%23c8c8c8;fill-opacity:1;fill-rule:evenodd;stroke-width:.851044'/%3e%3cpath%20d='M1024.732%20347.1h7.555v50.777h-7.555z'%20style='fill:%23c8c8c8;fill-opacity:1;fill-rule:evenodd'/%3e%3cellipse%20cx='974.908'%20cy='238.842'%20rx='30.894'%20ry='65.439'%20style='fill:%23c8c8c8;fill-opacity:1;fill-rule:evenodd;stroke-width:.962295'%20transform='scale(.99949%201)skewY(-1.836)'/%3e%3cellipse%20cx='789.328'%20cy='199.342'%20rx='30.147'%20ry='57.369'%20style='fill:%23c8c8c8;fill-opacity:1;fill-rule:evenodd;stroke-width:.9591'/%3e%3cellipse%20cx='855.354'%20cy='465.346'%20rx='129.287'%20ry='123.534'%20style='fill:%23c8c8c8;fill-opacity:1;fill-rule:evenodd;stroke-width:1.58529'%20transform='matrix(.9982%20-.06006%20.07118%20.99746%200%200)'/%3e%3cellipse%20cx='770.095'%20cy='484.385'%20rx='46.392'%20ry='35.959'%20style='fill:%23c8c8c8;fill-opacity:1;fill-rule:evenodd;stroke-width:.779911'/%3e%3cellipse%20cx='881.389'%20cy='266.221'%20rx='122.165'%20ry='100.678'%20style='fill:%23c8c8c8;fill-opacity:1;fill-rule:evenodd;stroke-width:.577874'/%3e%3cellipse%20cx='886.202'%20cy='398.533'%20rx='44.874'%20ry='27.488'%20style='fill:%23fff;fill-opacity:1;fill-rule:evenodd'/%3e%3cellipse%20cx='1002.481'%20cy='496.03'%20rx='50.178'%20ry='46.446'%20style='display:inline;fill:%23c8c8c8;fill-opacity:1;fill-rule:evenodd;stroke-width:.921829'/%3e%3cellipse%20cx='720.087'%20cy='515.926'%20rx='29.185'%20ry='38.246'%20style='fill:%23fff;fill-rule:evenodd;stroke-width:.940325'/%3e%3cellipse%20cx='1050.535'%20cy='520.144'%20rx='29.975'%20ry='38.891'%20style='fill:%23fff;fill-rule:evenodd;stroke-width:.976919'/%3e%3cellipse%20cx='888.535'%20cy='556.265'%20rx='223.45'%20ry='6.652'%20style='fill:%23ffdb4d;fill-opacity:.996078;fill-rule:evenodd'/%3e%3cellipse%20cx='1066.161'%20cy='323.616'%20rx='17.899'%20ry='17.66'%20style='fill:%23fff;fill-rule:evenodd;stroke-width:.407524'/%3e%3cellipse%20cx='884.493'%20cy='302.689'%20rx='40.783'%20ry='35.689'%20style='fill:%23fff;fill-rule:evenodd;stroke-width:.611888'/%3e%3cellipse%20cx='885.193'%20cy='316.702'%20rx='61.145'%20ry='37.618'%20style='display:inline;fill:%23fff;fill-rule:evenodd;stroke-width:.769215'/%3e%3cellipse%20cx='630.476'%20cy='630.722'%20rx='13.95'%20ry='17.914'%20style='fill:%23d67e94;fill-opacity:1;fill-rule:evenodd;stroke-width:.445568'%20transform='rotate(-8.83)skewY(-.047)'/%3e%3cellipse%20cx='601.085'%20cy='595.628'%20rx='5.016'%20ry='5.572'%20style='display:inline;fill:%23d67e94;fill-opacity:1;fill-rule:evenodd;stroke-width:.149008'%20transform='matrix(.99112%20-.13297%20.17798%20.98403%200%200)'/%3e%3cellipse%20cx='615.853'%20cy='589.417'%20rx='5.016'%20ry='5.572'%20style='display:inline;fill:%23d67e94;fill-opacity:1;fill-rule:evenodd;stroke-width:.149008'%20transform='matrix(.99112%20-.13297%20.17798%20.98403%200%200)'/%3e%3cellipse%20cx='630.595'%20cy='595.228'%20rx='5.016'%20ry='5.572'%20style='display:inline;fill:%23d67e94;fill-opacity:1;fill-rule:evenodd;stroke-width:.149008'%20transform='matrix(.99112%20-.13297%20.17798%20.98403%200%200)'/%3e%3cpath%20d='M1846.988%202208.439h23.684v125.747h-23.684z'%20style='fill:%23fff;fill-rule:evenodd;stroke-width:.259371'%20transform='matrix(.27793%20-.9606%20.10538%20.99443%200%200)'/%3e%3cpath%20d='M763.562%20380.117h223.296v16.564H763.562z'%20style='fill:%23fff;fill-opacity:1;fill-rule:evenodd'/%3e%3cellipse%20cx='761.201'%20cy='407.401'%20rx='16.724'%20ry='22.934'%20style='fill:%23fff;fill-opacity:1;fill-rule:evenodd'/%3e%3cellipse%20cx='1024.667'%20cy='537.129'%20rx='12.87'%20ry='12.749'%20style='fill:%23fff;fill-opacity:1;fill-rule:evenodd'/%3e%3cellipse%20cx='1118.16'%20cy='350.644'%20rx='15.168'%20ry='18.308'%20style='fill:%23d67e94;fill-opacity:1;fill-rule:evenodd;stroke-width:.618348'%20transform='rotate(9.215)'/%3e%3cpath%20d='M724.008%20555.45c-17.545-.455-27.728-1.095-29.098-1.828-2.6-1.392-2.24-4.252.588-4.656%201.976-.283%201.89-.569-1.709-5.706-4.155-5.932-7.358-15.012-8.227-23.318-.81-7.752%201.253-18.214%205.111-25.927%205.761-11.515%2015.241-18.93%2025.46-19.911%204.591-.442%204.742-.56%207.25-5.68%202.769-5.656%2011.813-14.774%2017.203-17.344%202.105-1.004%203.215-2.215%203.22-3.514.004-1.09-1.137-13.308-2.535-27.15-2.218-21.972-2.381-25.736-1.284-29.654.988-3.532%202.154-5.123%205.472-7.473%202.378-1.684%205.92-3.195%208.122-3.466%203.87-.475%203.928-.542%206.103-7.018%204.228-12.585%2012.053-26.941%2019.985-36.662l2.35-2.88-4.056-4.8c-5.45-6.449-9.327-12.273-12.783-19.2-8.937-17.914-10.9-35.643-6.048-54.615%201.848-7.229%201.848-7.364-.023-15.937-2.55-11.688-3.341-28.77-1.931-41.73%201.274-11.707%205.076-32.822%207.195-39.959%201.838-6.189%205.41-12.116%209.857-16.36%202.56-2.442%204.866-3.662%207.73-4.091%205.12-.766%209.382.925%2016.093%206.385%204.68%203.807%207.378%207.009%2019%2022.542%203.501%204.68%205.007%206.009%206.24%205.506%205.108-2.082%2015.892-5.512%2021.256-6.76%2011.595-2.7%2027.38-4.245%2043.419-4.253%2015.236-.008%2016.605.152%2028.32%203.298%206.77%201.818%2015.515%204.41%2019.432%205.758%203.917%201.349%207.198%202.345%207.29%202.214.092-.13%201.302-2.182%202.688-4.558%203.586-6.146%2014.585-18.14%2021.002-22.903%203.005-2.23%207.476-4.74%209.937-5.578%203.577-1.22%205.176-1.311%207.978-.458%205.37%201.635%209.601%206.36%2013.725%2015.327%202.681%205.831%204.559%2012.19%206.595%2022.337%201.566%207.802%203.12%2019.074%203.454%2025.05.515%209.21.212%2013.279-1.988%2026.705-1.427%208.712-2.405%2017.784-2.173%2020.16s1.17%207.56%202.083%2011.52c1.26%205.464%201.55%209.863%201.2%2018.24-.253%206.072-1.159%2013.632-2.012%2016.8-2.027%207.523-9.088%2021.715-13.978%2028.094l-3.874%205.053%205.835%206.947c3.21%203.82%207.802%2010.1%2010.205%2013.954%204.554%207.304%2010.716%2020.75%2012.87%2028.085%201.193%204.065%201.284%203.515%201.911-11.573.596-14.31.955-16.714%203.725-24.89%206.528-19.274%2011.796-26.992%2021.773-31.904%205.46-2.688%207.607-3.184%2015.227-3.517%209.647-.422%2014.061.523%2019.871%204.256%204.185%202.689%207.854%209.324%208.822%2015.952.514%203.519.228%205.52-1.277%208.922-3.07%206.94-5.829%2010.16-10.46%2012.208-3.358%201.485-5.383%201.763-9.208%201.26-7.236-.95-12.597-4.47-15.485-10.17-1.326-2.616-2.768-4.757-3.205-4.757-1.179%200-3.973%203.325-3.973%204.728%200%20.669-.803%202.363-1.785%203.764-.981%201.402-2.597%204.924-3.59%207.828-2.238%206.549-2.406%2020.522-.48%2039.84%201.293%2012.972%201.268%2013.698-.71%2020.846-1.128%204.073-3.312%209.473-4.854%2012-2.235%203.66-2.93%206.156-3.42%2012.274-.337%204.224-.836%209.235-1.107%2011.134-.486%203.401-.39%203.516%206.25%207.528%204.66%202.816%208.373%206.092%2012.028%2010.616%202.907%203.599%206.246%208.52%207.42%2010.936%201.797%203.698%202.828%204.626%206.512%205.859%204.962%201.66%2011.694%206.677%2015.153%2011.292%205.906%207.881%209.809%2019.612%209.846%2029.602.024%206.405-3.418%2018.892-6.644%2024.098l-2.79%204.505%203.037.295c3.634.353%204.596%203.02%201.658%204.592-1.244.666-14.324%201.402-34.858%201.96-37.819%201.03-281.658.977-321.936-.07m17.539-8.583%207.829-.004-.524-3.902c-.412-3.073-.068-4.517%201.618-6.798l2.14-2.895-1.993-18.883a9378%209378%200%200%201-3.915-37.991c-1.057-10.51-2.112-19.3-2.345-19.533s-2.42.95-4.86%202.629c-4.651%203.2-10.994%2010.96-11.035%2013.5-.013.824%201.397%202%203.163%202.64%201.752.633%204.99%202.695%207.193%204.581%203.022%202.587%204.343%204.652%205.375%208.4.753%202.735%201.634%206.7%201.958%208.812l.59%203.84-2.907-5.28c-3.958-7.19-10.51-13.055-16.607-14.865-2.693-.8-5.82-1.455-6.949-1.455s-4.363.687-7.188%201.526c-3.927%201.166-6.406%202.804-10.531%206.96-6.69%206.739-9.675%2013.788-10.37%2024.499-.836%2012.886%202.705%2023.364%2010.671%2031.573l3.774%203.888%2013.542-.62c7.448-.34%2017.065-.62%2021.37-.622zm330.844-4.455c1.96-2.976%204.102-7.188%204.76-9.36.66-2.172%201.2-8.269%201.203-13.549%200-7.855-.423-10.734-2.347-15.84-1.74-4.617-3.756-7.652-7.758-11.674-4.13-4.151-6.62-5.795-10.543-6.96-2.825-.84-6.06-1.526-7.188-1.526-4.357%200-11.779%202.987-15.644%206.296-2.223%201.902-5.709%206.34-7.747%209.861-3.596%206.214-3.737%206.806-4.764%2020.037-.897%2011.554-.845%2014.044.342%2016.32%201.604%203.074%201.802%206.827.471%208.926-.791%201.249.969%201.51%2013.215%201.96%207.77.285%2018.247.61%2023.282.72l9.155.2zm-87.633-3.855c0-1.419-1.145-1.521-10.8-.965-5.94.343-57.78.625-115.2.627-68.957.003-104.4.33-104.4.964%200%20.635%2039.04.96%20115.2.96%20106.493%200%20115.2-.12%20115.2-1.586m-222.72-5.854c-.002-7.425-8.172-96.45-9.537-103.92-.531-2.904-1.625-10.371-2.432-16.595-1.274-9.826-1.288-11.744-.104-14.578%201.836-4.393%209.978-9.125%2015.725-9.138%202.273-.005%207.973%201.071%2012.668%202.391%2010.39%202.921%2019.671%203.097%2029.76.562%206.667-1.675%2013.545-1.861%2092.883-2.518%2071.611-.592%2085.406-.918%2084-1.986-1.377-1.045-21.686-1.282-111.795-1.307-73.494-.02-111.679.305-114.82.979-3.3.707-5.673%202.006-7.937%204.342-2.903%202.995-3.268%203.992-3.598%209.829-.22%203.905%202.17%2030.41%205.995%2066.457%203.499%2032.98%206.586%2061.366%206.86%2063.082.275%201.716.912%203.12%201.416%203.12s.916-.324.916-.72m266.697-45.354c2.668-3.643%2010.522-8.588%2014.704-9.256%202.045-.327%203.72-1.092%203.72-1.699%200-4.381-15.33-18.804-18.638-17.535-.799.306-1.557%205.665-2.355%2016.628-.647%208.897-1.374%2018.552-1.616%2021.456l-.44%205.28%201.431-6.234c.788-3.429%202.225-7.317%203.194-8.64m2.18-106.497c-.57-3.672-1.037-11.415-1.037-17.206%200-9.132.388-11.715%202.918-19.46%203.197-9.783%208.993-18.662%2012.807-19.62%201.233-.31%203.834.103%205.779.915%202.69%201.124%204.002%202.533%205.486%205.887%202.578%205.829%206.513%208.26%2012.808%207.916%204.36-.239%205.021-.607%207.92-4.415%202.326-3.057%203.162-5.145%203.162-7.9%200-2.061-.715-5.535-1.59-7.72-1.3-3.25-2.48-4.387-6.48-6.25-5.867-2.732-14.061-3.032-21.607-.791-10.252%203.044-16.685%2012.133-22.295%2031.5-2.472%208.533-2.748%2010.907-2.748%2023.686%200%2013.748.077%2014.293%202.4%2017.054%201.32%201.569%202.434%203.438%202.476%204.154.056.955.204.985.556.114.264-.653.013-4.192-.556-7.864m-21.197-2.282c0-.69-1.529-5.045-3.397-9.68-4.741-11.757-9.962-20.153-20.946-33.685l-2.32-2.86-4.669%204.596c-2.567%202.527-8.51%207.184-13.204%2010.348-15.07%2010.156-29.628%2016.163-51.036%2021.06-10.951%202.506-38.223%203.572-51.45%202.012-24.508-2.89-49.824-12.537-66.94-25.506a939%20939%200%200%200-6.89-5.182c-1.547-1.138-2.19-.684-6.121%204.32-2.417%203.074-6.012%208.612-7.99%2012.306-3.29%206.143-9.711%2021.086-9.8%2022.804-.02.396%2055.043.72%20122.363.72%20100.064%200%20122.4-.228%20122.4-1.253m-100.8-14.628c5.016-.89%2013.007-2.888%2017.757-4.438%209.888-3.227%2022.961-9.59%2030.98-15.079%207.45-5.1%2016.852-13.393%2021.943-19.358%202.31-2.706%204.2-4.993%204.202-5.082%200-.089-1.836-.162-4.08-.162-3.423%200-4.082-.305-4.082-1.893%200-1.495.909-2.048%204.32-2.627%207.958-1.352%209.074-2.25%2013.24-10.664%202.139-4.32%204.177-9.01%204.53-10.422l.641-2.566-5.765%201.795c-3.171.987-7.422%201.925-9.446%202.086-3.153.25-3.722-.007-3.976-1.789-.26-1.826.384-2.218%205.28-3.211%206.662-1.352%2012.642-3.832%2015.054-6.243%201.524-1.524%201.67-2.722%201.106-9.031-.687-7.684-3.709-21.482-5.325-24.319-1.022-1.793-.316-8.667%201.19-11.598.5-.97.69-1.978.427-2.242-.264-.264-1.919.141-3.678.9-4.483%201.935-11.432%203.496-12.956%202.91-.705-.27-1.282-1.266-1.282-2.213%200-1.286%201.276-2.022%205.04-2.91%206.933-1.633%2013.063-4.62%2014.741-7.182%203.395-5.18%202.494-34.97-1.625-53.74-2.776-12.655-3.73-15.843-6.169-20.64-2.479-4.876-5.645-8.097-8.94-9.098-3.46-1.051-11.364%204.813-20.32%2015.076-5.603%206.42-8.997%2011.443-12.178%2018.021-2.426%205.016-4.565%209.298-4.754%209.515-.189.216-1.86-.423-3.715-1.422-3.79-2.041-5.053-4.612-3.302-6.722.647-.78%201.006-1.585.8-1.79-.65-.643-14.645-5.997-17.418-6.663l-2.64-.634v29.42l3.36%203.256c3.378%203.274%204.261%206.05%202.308%207.257-.578.358-3.17-1.437-5.76-3.987l-4.708-4.637-.01-12.997c-.01-7.147-.272-14.58-.593-16.517-.577-3.492-.633-3.53-6.889-4.62-3.469-.603-9.898-1.35-14.287-1.66l-7.98-.564v27.865c0%2023.225-.233%2028.058-1.398%2029.025-.77.639-1.85.882-2.4.541-.66-.407-1.002-10.285-1.002-28.882v-28.264l-3.6.018c-4.399.021-23.075%202.622-24.31%203.385-.496.307-.89%208.564-.89%2018.669v18.118l-2.64%201.862c-1.452%201.024-4.965%203.034-7.806%204.465-4.641%202.339-5.315%202.454-6.638%201.132-2.013-2.014-.704-3.394%206.476-6.826l5.808-2.776v-16.623c0-9.143-.108-16.618-.24-16.611-.832.043-12.467%203.921-15.895%205.298-3.157%201.269-3.979%202.029-3.476%203.215%201.84%204.348%201.583%205.716-1.364%207.24-1.611.833-3.293%201.514-3.736%201.514s-2.46-3.564-4.481-7.92c-4.095-8.826-13.82-22.54-20.026-28.238-2.234-2.051-5.676-4.722-7.648-5.935-4.007-2.464-6.512-2.178-10.19%201.164-2.863%202.603-6.496%209.705-7.739%2015.132-5.843%2025.502-7.277%2037.045-6.554%2052.735.431%209.362.906%2012.246%202.343%2014.24.991%201.377%204.701%203.967%208.244%205.756%204.475%202.26%206.442%203.8%206.442%205.04%200%202.367-2.878%202.317-7.68-.134-2.07-1.056-3.951-1.92-4.18-1.92s.015%201.7.543%203.779c.766%203.018.637%204.418-.642%206.96-1.652%203.281-5.303%2017.207-5.315%2020.27-.009%202.21%206.007%207.741%2010.741%209.876%202.228%201.005%203.653%202.308%203.653%203.341%200%203.625-4.782%202.717-10.744-2.039-1.949-1.554-3.785-2.827-4.08-2.827s-.536.783-.536%201.74c0%203.052%203.668%2015.874%206.143%2021.469%202.562%205.794%204.04%206.73%2012.757%208.077%204.29.662%205.826%202.437%203.663%204.232-.858.712-2.907.86-5.826.423l-4.503-.675%204.203%205.988c5.475%207.801%2018.876%2020.532%2027.806%2026.415%208.742%205.76%2021.926%2012.037%2032.077%2015.274%206.76%202.156%2017.905%204.412%2028.32%205.734%206.855.87%2032.457-.27%2041.28-1.838zm-31.686-26.296c-4.775-1.452-8.504-3.926-11.901-7.895-3.624-4.233-5.358-8.76-5.367-14.008-.005-2.697-.335-3.12-2.437-3.12-3.567%200-9.089-2.56-9.089-4.214%200-2.304%201.657-2.691%204.724-1.105%204.013%202.075%2013.968%201.895%2018.796-.34%202.112-.978%205-3.021%206.42-4.54%202.293-2.455%204.62-6.923%204.62-8.87%200-.388-1.538-1.261-3.418-1.941-1.922-.695-3.887-2.263-4.487-3.58-.882-1.936-.729-2.801.878-4.957%201.75-2.35%202.624-2.64%208.705-2.893%206.343-.262%206.885-.121%208.781%202.29%201.112%201.413%202.021%203.12%202.021%203.795%200%201.55-5.454%206.195-7.273%206.195-1.634%200-1.703.905-.346%204.498%201.452%203.842%205.55%207.933%2010.02%2010.002%204.827%202.236%2014.782%202.416%2018.795.341%202.794-1.445%204.724-1.217%204.724.557%200%201.044-7%204.762-8.966%204.762-.974%200-1.478%201.584-1.764%205.545-.57%207.874-4.579%2013.48-12.455%2017.416-4.911%202.455-7%202.945-12.248%202.877-3.48-.046-7.41-.412-8.733-.815m17.39-6.176c1.904-.91%204.872-3.034%206.595-4.718l3.133-3.062-5.156-2.307c-6.951-3.11-17.982-3.836-24.643-1.623-2.665.885-5.374%202.246-6.02%203.024-.954%201.15-.743%201.884%201.126%203.915%201.266%201.374%204.461%203.541%207.101%204.816%203.63%201.753%205.97%202.232%209.6%201.964%202.64-.194%206.359-1.099%208.264-2.01m-55.784-72.099c-5.985-4.51-12.554-6.648-18.113-5.895-2.446.331-7.548%202.194-11.339%204.14-6.038%203.099-7.198%203.398-9.36%202.413-1.357-.619-2.468-1.728-2.468-2.466%200-1.653%2010.996-7.487%2018.524-9.828%204.76-1.48%206.33-1.569%2010.88-.615%206.389%201.34%2014.435%204.908%2019.11%208.474%202.335%201.781%203.33%203.247%203.133%204.62-.21%201.472-1.057%202.063-3.167%202.211-1.995.14-4.206-.798-7.2-3.054m78.4%202.692c-1.349-1.349-.537-3.897%202-6.274%203.585-3.36%209.2-6.055%2016.867-8.098%205.464-1.456%207.079-1.534%2010.97-.533%206.69%201.723%2020.403%208.667%2020.403%2010.332%200%20.778-1.11%201.92-2.467%202.539-2.164.986-3.323.684-9.4-2.442-11.765-6.054-18.88-5.647-29.301%201.678-4.658%203.274-7.668%204.202-9.072%202.798m68.618-34.516c-5.195-8.552-14.081-19.006-21.262-25.014-6.242-5.224-6.68-5.845-6.698-9.495q-.042-9.066%207.43-20.095c4.598-6.788%207.484-8.589%209.626-6.008.814.981-.14%203.658-4.039%2011.327-2.807%205.523-5.373%2011.181-5.7%2012.574-.502%202.129-.025%202.968%202.994%205.262%206.69%205.085%2014.545%2013.614%2019.433%2021.102%202.678%204.101%204.636%208.06%204.353%208.799s-.515%201.872-.515%202.52-.54%201.887-1.2%202.755c-1.053%201.385-1.593.93-4.422-3.727m-209.226-.556c-1.646-1.646-1.396-4.454.84-9.408%201.304-2.889%205.48-7.702%2012.607-14.531l10.658-10.212-6.042-12.264c-5.704-11.576-5.944-12.335-4.285-13.548%202.344-1.714%203.799-1.619%205.797.379%204.773%204.774%2012.873%2021.189%2012.873%2026.09%200%202.042-1.178%203.649-5.04%206.869-10.413%208.684-16.394%2015.013-20.128%2021.297-2.118%203.564-4.363%206.48-4.99%206.48-.625%200-1.656-.518-2.29-1.152'%20style='fill:%238a8a8a;stroke-width:.96'/%3e%3cpath%20d='M736.598%20555.48c-19.536-.356-37.032-.982-38.88-1.392s-3.659-1.217-4.025-1.793c-.925-1.457.996-3.512%203.282-3.512%201.693%200%201.574-.374-1.08-3.395-3.876-4.416-7.2-11.127-8.775-17.725-1.835-7.68-1.44-19.456.902-26.92%202.466-7.862%206.564-14.11%2012.871-19.628%205.166-4.518%2011.382-7.212%2016.647-7.212%202.881%200%203.39-.47%205.781-5.354%202.831-5.782%2011.812-14.869%2017.265-17.47%202.105-1.003%203.215-2.214%203.22-3.513.004-1.09-1.137-13.308-2.535-27.15-2.218-21.972-2.381-25.736-1.284-29.654.988-3.532%202.154-5.123%205.472-7.473%202.378-1.684%205.92-3.195%208.122-3.466%203.87-.475%203.928-.542%206.103-7.018%204.228-12.585%2012.053-26.941%2019.985-36.662l2.35-2.88-4.056-4.8c-5.45-6.449-9.327-12.273-12.783-19.2-8.937-17.914-10.9-35.643-6.048-54.615%201.848-7.229%201.848-7.364-.023-15.937-2.55-11.688-3.341-28.77-1.931-41.73%201.274-11.707%205.076-32.822%207.195-39.959%201.838-6.189%205.41-12.116%209.857-16.36%202.56-2.442%204.866-3.662%207.73-4.091%205.12-.766%209.382.925%2016.093%206.385%204.68%203.807%207.378%207.009%2019%2022.542%203.501%204.68%205.007%206.009%206.24%205.506%205.108-2.082%2015.892-5.512%2021.256-6.76%2011.625-2.706%2027.396-4.245%2043.572-4.253%2013.394-.007%2017.423.335%2023.52%201.99%206.676%201.814%2027.684%208.144%2030.288%209.127.588.222%202.211-1.62%203.607-4.092%203.477-6.161%2014.55-18.308%2021.164-23.216%203.005-2.23%207.476-4.74%209.937-5.578%203.577-1.22%205.176-1.311%207.978-.458%205.37%201.635%209.601%206.36%2013.725%2015.327%202.681%205.831%204.559%2012.19%206.595%2022.337%201.566%207.802%203.12%2019.074%203.454%2025.05.515%209.21.212%2013.279-1.988%2026.705-1.427%208.712-2.405%2017.784-2.173%2020.16s1.17%207.56%202.083%2011.52c1.26%205.464%201.55%209.863%201.2%2018.24-.253%206.072-1.159%2013.632-2.012%2016.8-2.027%207.523-9.088%2021.715-13.978%2028.094l-3.874%205.053%205.835%206.947c3.21%203.82%207.802%2010.1%2010.205%2013.954%204.554%207.304%2010.716%2020.75%2012.87%2028.085%201.193%204.065%201.284%203.515%201.911-11.573.595-14.31.955-16.714%203.725-24.89%206.528-19.274%2011.796-26.992%2021.773-31.904%205.46-2.688%207.607-3.184%2015.227-3.517%209.647-.422%2014.061.523%2019.871%204.256%204.185%202.689%207.854%209.324%208.822%2015.952.514%203.519.228%205.52-1.277%208.922-3.07%206.94-5.829%2010.16-10.46%2012.208-3.358%201.485-5.383%201.763-9.208%201.26-7.236-.95-12.597-4.47-15.485-10.17-1.326-2.616-2.768-4.757-3.205-4.757-1.179%200-3.973%203.325-3.973%204.728%200%20.669-.803%202.363-1.785%203.764-.981%201.402-2.597%204.924-3.59%207.828-2.238%206.549-2.406%2020.522-.48%2039.84%201.293%2012.972%201.268%2013.698-.71%2020.846-1.128%204.073-3.312%209.473-4.854%2012-2.235%203.66-2.93%206.156-3.42%2012.274-.337%204.224-.836%209.235-1.107%2011.134-.486%203.401-.39%203.516%206.25%207.528%204.66%202.816%208.373%206.092%2012.028%2010.616%202.907%203.599%206.246%208.52%207.42%2010.936%201.825%203.756%202.801%204.615%206.723%205.918%205.347%201.776%2012.824%208.157%2017.07%2014.567%204.314%206.512%206.905%2015.645%207.019%2024.741.12%209.662-1.483%2016.593-5.61%2024.24-3.174%205.884-3.196%206-1.096%206.015%201.178.008%202.745.397%203.482.863%202.338%201.48.38%203.706-3.913%204.45-2.28.394-19.699%201.014-38.707%201.377-44.24.844-255.864.838-302.4-.01zm1.156-8.277%2011.537-.62-.43-3.94c-.34-3.124.012-4.406%201.7-6.193l2.126-2.254-3.828-38.33c-2.105-21.081-4.065-38.567-4.355-38.857-.96-.96-5.927%202.28-9.961%206.497-3.553%203.715-7.71%2010.222-6.896%2010.794.171.12%202.785%201.402%205.808%202.85%203.024%201.448%206.37%203.742%207.437%205.098%201.976%202.513%203.255%206.387%204.375%2013.255l.626%203.84-2.1-3.84c-3.181-5.815-9.327-11.648-14.716-13.966-3.635-1.564-6.155-1.979-10.175-1.676-2.94.222-7.057%201.226-9.152%202.231-7.537%203.617-14.098%2012.38-16.81%2022.451-1.834%206.81-1.417%2018.048.927%2025.006%202.278%206.762%206.336%2013.229%2010.217%2016.282%202.188%201.721%203.867%201.992%2012.333%201.992%205.39%200%2014.991-.279%2021.337-.62m334.254-3.54c4.394-6.386%206.982-15.182%206.982-23.73%200-4.038-.51-9.235-1.133-11.55-2.714-10.076-9.283-18.846-16.81-22.442-5.525-2.64-12.998-3.039-18.381-.983-5.331%202.036-11.13%207.055-14.957%2012.945l-2.807%204.32.647-3.36c1.377-7.153%202.488-10.402%204.382-12.809%202.168-2.756%2012.972-8.31%2016.164-8.31%201.113%200%202.023-.368%202.023-.817%200-1.325-5.286-8.23-9.267-12.105-3.339-3.25-10.689-7.828-11.342-7.066-.144.17-1.633%2016.844-3.308%2037.056s-3.289%2037.384-3.587%2038.16-.08%201.411.483%201.411%201.542%201.73%202.175%203.843c.861%202.872.88%204.44.074%206.207l-1.077%202.364%209.805.31c5.392.172%2015.94.403%2023.438.514l13.634.202zm-53.896-.602c1.568-2.51.588-4.715-2.434-5.474-3.703-.93-260.707.63-261.681%201.589-.463.455-.563%201.938-.222%203.297l.62%202.47h131.27c129.35%200%20131.289-.027%20132.447-1.882m-256.468-20.438c-.352-5.94-.88-12.58-1.174-14.757l-.533-3.957%207.05%201.22c16.55%202.863%2029.98%203.78%2054.571%203.726%2027.344-.061%2040.42-1.234%2063.158-5.668%2040.241-7.846%2073.571-23.077%2093.438-42.698%208.32-8.217%2013.29-15.502%2016.918-24.797%202.138-5.478%202.51-7.92%202.51-16.509%200-8.612-.37-11.025-2.533-16.57-3.012-7.719-7.258-14.16-10.915-16.556-2.536-1.662-7.487-1.708-113.276-1.055-60.844.375-111.886%201.044-113.428%201.486-7.057%202.024-9.81%205.305-10.822%2012.892-.454%203.403%201.091%2021.225%205.004%2057.723%203.113%2029.04%206.113%2057.552%206.665%2063.36s1.179%2011.1%201.392%2011.76c.214.66.89%201.2%201.503%201.2.816%200%20.942-2.878.472-10.8m269.262-142.784c-.565-3.643-1.028-10.93-1.028-16.193%200-8.025.463-10.986%202.868-18.345%204.4-13.464%2010.963-21.78%2016.208-20.538%203.523.835%205.729%202.985%208.334%208.121%202.15%204.242%203.74%205.393%209.805%207.104%206.383%201.802%2013.978-5.658%2013.82-13.572-.046-2.27-.99-5.908-2.1-8.082-1.51-2.958-3.125-4.443-6.424-5.902-3.645-1.612-5.833-1.877-12.659-1.53-13.545.69-19.767%204.996-26.093%2018.055-1.474%203.043-3.888%209.793-5.363%2015-2.375%208.38-2.685%2011.07-2.7%2023.441-.016%2013.855.01%2014.002%202.624%2017.114%201.452%201.726%202.705%204.078%202.784%205.225.106%201.54.25%201.385.548-.594.222-1.474-.06-5.661-.624-9.304m-21.146-2.656c-3.838-12.928-13.47-30.031-22.82-40.523l-3.817-4.284-5.663%205.078c-7.014%206.29-18.75%2014.146-28.14%2018.837-8.832%204.412-23.854%209.385-36.8%2012.182-8.35%201.804-12.896%202.132-30.002%202.167-17.61.035-21.495-.245-30.72-2.212-12.993-2.772-25.403-6.846-35.52-11.663-8.555-4.074-20.275-11.474-25.662-16.204l-3.535-3.104-4.834%206.543c-2.66%203.599-6.579%209.874-8.71%2013.945-3.733%207.13-8.619%2019-8.619%2020.94%200%20.606%2043.49.938%20122.813.938h122.813Zm-99.882-13.153c24.996-4.83%2047.305-16.232%2063.838-32.623%208.56-8.486%2016.49-19.554%2020.759-28.966%201.512-3.335%203.67-9.42%204.796-13.524%201.647-6.007%201.923-8.865%201.412-14.677-.349-3.969-1.725-11.105-3.06-15.857-2.75-9.793-2.838-10.43-1.998-14.4.336-1.584%201.02-4.824%201.52-7.2.502-2.376%201.433-5.616%202.07-7.2.639-1.584%201.364-8.712%201.613-15.84.317-9.072-.026-16.415-1.143-24.48-2.722-19.649-6.083-32.121-10.395-38.573-2.343-3.506-3.931-4.834-6.56-5.484-3.061-.756-3.982-.503-7.857%202.164-5.292%203.64-17.265%2016.635-21.491%2023.325-1.681%202.66-4.261%207.603-5.734%2010.983s-3.054%206.145-3.515%206.145-2.093-.893-3.627-1.985c-2.926-2.084-3.559-4.54-1.658-6.44.866-.867-.197-1.72-4.56-3.659-7.26-3.227-12.231-4.785-22.97-7.2-11.023-2.478-35.14-3.481-46.679-1.941-15.78%202.106-38.933%209.154-38.582%2011.746.098.726.457%202.234.799%203.352.494%201.622-.087%202.47-2.87%204.19-1.919%201.186-3.607%202-3.751%201.807-.144-.192-1.861-3.767-3.816-7.944-6.006-12.838-17.323-27.178-26.37-33.413-3.376-2.327-4.76-2.746-7.422-2.246-5.549%201.04-10.979%2010.132-12.798%2021.426-.531%203.301-1.21%206.396-1.507%206.877-1.448%202.343-4.345%2026.732-4.354%2036.66-.01%2011.708.981%2019.112%203.242%2024.201.745%201.677%201.792%204.916%202.327%207.198.8%203.413.66%204.862-.79%208.16-.968%202.206-2.714%208.091-3.879%2013.078-1.646%207.047-2%2010.788-1.589%2016.8.622%209.103%203.788%2018.884%209.462%2029.235%205.385%209.821%2010.02%2015.943%2017.812%2023.52%208.286%208.059%2015.763%2013.623%2025.612%2019.06%2013.597%207.504%2027.432%2012.096%2044.162%2014.658%2011.371%201.74%2038.342%201.233%2049.551-.933m-32.29-26.532c-5.24-1.519-12.199-6.886-14.61-11.267-1.256-2.284-2.41-6.161-2.565-8.616-.28-4.44-.304-4.47-4.72-5.596-2.44-.623-5.09-1.674-5.887-2.336-2.616-2.17.056-2.924%205.43-1.531%203.58.928%206.885%201.118%2010.6.61%202.968-.407%206.245-1.194%207.282-1.749s3.458-2.749%205.379-4.875c3.695-4.09%205.573-8.837%203.739-9.449-.586-.195-2.49-1.33-4.232-2.524-2.333-1.598-3.096-2.78-2.902-4.495.42-3.696%203.81-5.641%209.875-5.665%204.066-.016%205.84.445%207.44%201.936%203.126%202.912%202.722%206.332-1.019%208.613-1.716%201.046-3.512%202.034-3.991%202.196-1.722.582.53%205.667%204.34%209.801%202.137%202.318%205.399%204.714%207.248%205.324%203.4%201.122%2015.173.794%2019.283-.536%201.606-.52%202.16-.321%202.16.775%200%20.917-1.815%202.078-4.8%203.07-4.731%201.57-4.8%201.65-4.82%205.597-.063%2011.824-12.127%2021.946-25.834%2021.676-2.412-.048-5.74-.48-7.396-.96m17.486-6.044c2.682-1.248%205.837-3.492%207.013-4.987l2.136-2.716-4.259-2.165c-2.342-1.19-6.794-2.57-9.892-3.065-8.213-1.313-18.532.638-21.353%204.036-1.028%201.24-.94%201.898.52%203.86%205.228%207.026%2016.742%209.272%2025.835%205.037m-55.756-72.18c-2.64-1.829-7.087-4.182-9.883-5.23-4.385-1.644-5.705-1.756-9.6-.815-2.484.6-7.362%202.562-10.84%204.36-5.39%202.786-6.71%203.12-8.957%202.265-1.45-.552-2.47-1.54-2.267-2.197.566-1.832%2015.006-9.127%2020.612-10.412%203.947-.905%205.945-.884%209.6.1%209.84%202.649%2021.415%209.651%2021.415%2012.955%200%201.255-2.11%202.447-4.158%202.35-.617-.029-3.282-1.548-5.922-3.376m77.92%202.79c-.352-.353-.64-1.41-.64-2.352%200-3.357%2011.615-10.108%2021.2-12.32%204.625-1.069%206.071-1.024%2010.56.325%206.227%201.872%2018.38%208.263%2018.904%209.94.205.657-.82%201.648-2.278%202.202-2.258.859-3.496.558-8.352-2.03-3.135-1.672-7.918-3.629-10.627-4.35-4.276-1.136-5.52-1.113-9.426.175-2.475.816-7.133%203.186-10.352%205.266-5.76%203.723-7.723%204.41-8.989%203.143m66.789-37.5c-5.805-8.817-16.594-20.78-22.317-24.746l-4.07-2.82.56-5.988c.307-3.293%201.463-7.76%202.568-9.925%202.73-5.351%208.386-14.117%209.588-14.86%201.308-.808%204.802.351%204.802%201.594%200%20.543-2.376%205.733-5.28%2011.534-2.904%205.8-5.28%2011.557-5.28%2012.79%200%201.492%201.045%202.895%203.12%204.19%204.704%202.932%2014.357%2013.222%2019.397%2020.677%203.724%205.506%204.405%207.186%204.034%209.94-.246%201.822-.843%203.71-1.328%204.195-.535.535-2.811-2.05-5.794-6.58m-207.76%201.189c-1.888-4.146%201.402-9.475%2013.462-21.8l10.989-11.23-2.15-5.09c-1.181-2.8-3.82-8.17-5.861-11.935-3.541-6.53-3.633-6.918-1.995-8.4.945-.855%202.204-1.555%202.798-1.555%203.126%200%2014.454%2019.982%2015.234%2026.87.365%203.22-.004%203.691-8.274%2010.57-9.333%207.763-14.124%2012.966-16.805%2018.253-1.963%203.869-4.28%206.707-5.476%206.707-.458%200-1.322-1.076-1.921-2.39'%20style='fill:%23474747;stroke-width:.96'/%3e%3cellipse%20cx='885.983'%20cy='326.113'%20rx='19.82'%20ry='9.5'%20style='fill:%23d67e94;fill-opacity:1;fill-rule:evenodd'/%3e%3cpath%20d='M768.245%20553.884c-34.584-.425-65.472-1.106-68.64-1.514-4.874-.626-5.76-1.036-5.76-2.66%200-1.246.74-2.025%202.107-2.22%202.031-.289%201.986-.46-1.239-4.685-6.033-7.904-9-17.173-9.017-28.173-.02-13.202%204.312-24.407%2012.723-32.903%205.169-5.22%2011.028-8.174%2017.803-8.976%204.395-.52%204.716-.764%206.69-5.066%202.957-6.446%208.647-12.5%2015.396-16.381%205.638-3.243%205.82-3.47%205.39-6.716-.246-1.848-1.318-12.216-2.382-23.04s-2.18-20.483-2.48-21.464c-.301-.981-.253-4.137.107-7.013.49-3.927%201.407-6.088%203.682-8.679%203.357-3.823%207.78-6.044%2012.035-6.044%202.537%200%202.902-.423%203.93-4.56%201.798-7.234%2011.9-26.943%2017.748-34.623%202.94-3.863%205.347-7.245%205.347-7.516s-2.112-2.943-4.693-5.937c-8.903-10.33-14.962-21.968-18.367-35.282-2.657-10.386-2.608-26.228.113-36.489%201.107-4.176%201.977-8.025%201.934-8.553s-.96-4.848-2.036-9.6c-1.49-6.578-1.97-12.19-2.018-23.52-.064-15.45.788-24.187%204.027-41.28%203.402-17.95%205.9-24.071%2012.738-31.208%203.863-4.031%204.459-4.312%209.145-4.312%202.756%200%206.394.708%208.084%201.573%206.148%203.147%2012.488%209.508%2021.501%2021.573%205.062%206.775%209.466%2012.173%209.788%2011.994%205.254-2.927%2017.624-6.818%2027.464-8.64%2015.684-2.904%2025.987-3.717%2041.28-3.255%2016.281.49%2018.337.898%2040.801%208.088%205.545%201.775%2010.364%203.227%2010.71%203.227.344%200%201.797-1.998%203.227-4.439%203.675-6.27%2014.818-18.661%2020.597-22.903%202.686-1.972%206.98-4.382%209.542-5.355%203.684-1.4%205.379-1.571%208.1-.82%201.894.523%204.823%202.112%206.509%203.53%204.173%203.512%2010.736%2017.946%2012.78%2028.11.898%204.464%202.04%209.957%202.54%2012.206.498%202.249%201.35%209.62%201.891%2016.379.916%2011.417.807%2013.367-1.533%2027.47-2.758%2016.626-2.754%2021.395.03%2036.542%201.531%208.325%201.622%2010.875.686%2019.2-1.642%2014.604-6.52%2027.296-15.195%2039.532-2.313%203.263-4.205%206.223-4.205%206.579s2.001%202.87%204.448%205.588c9.456%2010.504%2018.083%2025.465%2022.856%2039.638%202.841%208.434%204.557%209.166%203.803%201.62-.864-8.645%201.09-26.744%203.767-34.907%204.026-12.274%208.325-20.196%2014.054-25.895%207.096-7.06%2012.731-9.115%2024.992-9.115%208.1%200%209.748.308%2014.736%202.758%205.074%202.491%205.885%203.326%208.4%208.64%203.888%208.22%203.796%2013.877-.336%2020.772-4.2%207.006-8.19%209.59-14.813%209.59-8.893%200-15.494-3.917-18.286-10.85-1.123-2.787-1.938-3.582-3.447-3.36-2.245.33-6.061%207.238-9.362%2016.947-1.87%205.5-2.013%207.332-1.454%2018.72%201.79%2036.46%201.788%2036.09.093%2042.233-.897%203.25-2.926%207.953-4.509%2010.45-2.436%203.844-3.007%205.98-3.716%2013.92-1.322%2014.795-1.625%2013.736%205.022%2017.54%206.906%203.952%2016.748%2014.699%2019.95%2021.783%201.89%204.181%202.634%204.879%206.236%205.842%208.443%202.258%2017.35%2011.826%2021.845%2023.465%202.52%206.524%203.388%2020.66%201.704%2027.75-1.284%205.409-5.388%2014.907-6.825%2015.795-1.648%201.018-.795%202.202%201.801%202.501%201.9.219%202.64.843%202.64%202.224%200%201.607-.861%202.028-5.28%202.584-7.178.903-148.756%202.654-201.6%202.493-23.496-.071-71.016-.478-105.6-.903m-18.564-8.31c.086-.101-.321-1.45-.905-2.996-1.076-2.852-.552-4.807%202.39-8.906.942-1.313.454-9.134-2.457-39.36-1.998-20.747-3.812-38.277-4.031-38.956-.316-.977-.977-.934-3.181.205-1.53.792-4.203%202.634-5.939%204.095-3.267%202.75-8.593%2010.395-8.593%2012.336%200%20.608%201.832%201.928%204.07%202.932%206.465%202.899%2010.133%206.696%2011.76%2012.17%202.17%207.311%201.77%208.23-1.46%203.351-3.222-4.863-7.834-8.747-12.9-10.864-1.83-.765-5.827-1.387-8.88-1.382-10.378.018-19.737%206.638-24.785%2017.534-1.236%202.668-2.78%207.827-3.43%2011.464-1.473%208.245-.243%2017.398%203.414%2025.407%202.545%205.573%208.209%2012.412%2011.262%2013.6%201.352.525%2043.196-.078%2043.665-.63m320.74-1.387c3.239-3.447%207.058-12.769%208.167-19.933.762-4.923.721-8.286-.16-13.217-3.15-17.632-14.186-28.974-28.214-28.998-9.142-.015-16.839%204.307-21.91%2012.305-1.529%202.41-2.78%203.728-2.78%202.928%200-3.66%203.086-11.235%205.498-13.495%203.112-2.917%209.995-6.54%2012.464-6.562.945-.008%202.324-.398%203.064-.867%201.109-.701.91-1.597-1.132-5.08-3.016-5.148-9.685-11.44-14.998-14.15-3.655-1.864-3.94-1.886-3.99-.308-.03.935-1.481%2018.332-3.225%2038.66-2.718%2031.67-2.98%2037.181-1.838%2038.507%201.54%201.786%201.991%206.154.949%209.189-.632%201.838-.33%202.144%202.444%202.486%201.74.215%2012.27.46%2023.397.544%2019.845.151%2020.272.112%2022.265-2.009m-53.372-1.346c2.02-1.828%202.267-4.236.603-5.9-.885-.885-30.902-1.125-129.84-1.038-70.778.063-129.983.39-131.567.727-2.042.434-2.972%201.255-3.194%202.819-.751%205.285-8.814%204.98%20132.115%204.98%20119.738%200%20130.267-.126%20131.883-1.588m-3.378-11.198c.488-.487%209.966-112.94%2010.576-125.481.487-10.006.325-12.533-.965-15.028-.853-1.65-3.181-4.012-5.174-5.251l-3.624-2.253-123.327-.261c-75.602-.16-125.916.097-130.018.666-10.167%201.409-15.017%205.95-15.67%2014.675-.21%202.794%202.04%2027.328%205%2054.52s6.022%2055.704%206.803%2063.36%201.57%2014.352%201.754%2014.88c.22.635%2043.307.874%20127.35.706%2069.86-.14%20127.142-.38%20127.295-.533m18.54-135.533c0-3.168-.64-10.512-1.417-16.32-.778-5.808-1.417-13.623-1.422-17.367-.014-11.947%205.034-27.329%2011.55-35.193%202.323-2.804%203.67-3.6%206.089-3.6%201.709%200%203.924.598%204.923%201.328s2.922%203.431%204.273%206c3.041%205.788%207.378%208.317%2013.237%207.722%202.244-.228%204.753-.973%205.575-1.656s2.599-3.122%203.946-5.422c2.034-3.47%202.343-4.898%201.817-8.406-1.22-8.13-6.546-13.05-15.703-14.503-4.87-.773-14.544.943-19.462%203.451-7.607%203.881-13.707%2014.34-18.611%2031.914-2.402%208.608-2.593%2010.529-2.29%2023.098.318%2013.257.414%2013.812%202.91%2016.777%202.903%203.447%204.162%209.449%203.4%2016.207-.305%202.702-.171%203.878.347%203.06.463-.732.84-3.922.838-7.09m-22.661-20.4c-.358-1.452-2.183-6.312-4.054-10.8-3.357-8.05-13.306-23.768-19.716-31.148l-3.29-3.787-6.123%205.707c-10.299%209.6-24.712%2018.28-39.852%2024.002-15.643%205.91-38.217%2010.026-54.99%2010.026-11.044%200-28.13-2.26-39.495-5.223-16.877-4.4-34.198-12.472-46.035-21.453-3.28-2.488-6.776-5.127-7.77-5.863-2.09-1.55-1.898-1.737-9.317%209.019-5.589%208.102-9.573%2015.87-12.923%2025.2l-2.5%206.96h246.716zm-97.22-13.53c11.897-2.769%2021.803-6.27%2031.372-11.09%2017.052-8.59%2032.973-22.126%2042.465-36.104%205.178-7.625%2010.92-19.884%2012.88-27.495.834-3.244%201.518-8.54%201.518-11.77%200-5.623-2.757-20.339-4.977-26.574-.868-2.438-.583-4.907%201.61-13.92%203.535-14.524%204.27-32.537%201.984-48.64-.88-6.202-2.25-13.87-3.046-17.037-.796-3.168-1.874-7.488-2.396-9.6-2.306-9.331-8.123-16.8-13.085-16.8-3.507%200-10.978%205.068-15.291%2010.374-2.014%202.478-4.53%205.395-5.591%206.483-3.937%204.036-7.08%208.846-11.401%2017.45-3.275%206.52-4.817%208.69-5.883%208.282-.794-.305-1.444-.89-1.444-1.3s-.864-.971-1.92-1.247c-2.124-.555-2.561-3.498-.784-5.274.624-.625.948-1.291.72-1.481-.23-.19-4.304-1.891-9.056-3.78-4.752-1.89-13.176-4.441-18.72-5.671-8.75-1.94-12.678-2.236-29.76-2.236-15.55%200-21.292.366-27.36%201.742-9.327%202.116-15.243%203.891-23.716%207.117l-6.435%202.45%201.388%202.684c1.227%202.372%201.213%202.859-.12%204.192-2.453%202.453-5.535%203.841-5.926%202.67-1.156-3.468-8.32-17.215-10.519-20.186-11.417-15.424-19.98-23.23-25.483-23.23-1.365%200-3.757%201.074-5.315%202.385-3.509%202.952-7.57%2011.071-8.41%2016.816-.347%202.376-1.214%206.48-1.925%209.12-.71%202.64-2.013%209.906-2.895%2016.146-1.149%208.134-1.47%2015.2-1.137%2024.96.444%2012.988%201.46%2018.36%205.485%2028.974.458%201.21.043%203.52-1.123%206.24-3.023%207.057-5.536%2019.19-5.543%2026.764-.009%209.234%202.927%2019.812%208.536%2030.754%202.43%204.741%207.01%2011.93%2010.178%2015.974%206.44%208.222%2016.789%2017.54%2026.86%2024.18%2012.381%208.165%2029.016%2014.869%2044.472%2017.922%2011.284%202.23%2012.755%202.319%2032.828%201.986%2014.476-.24%2020.589-.746%2026.965-2.23m-34.818-26.45c-5.176-1.393-10.163-4.916-13.905-9.822-1.961-2.57-2.714-4.819-3.017-9.006-.398-5.505-.448-5.588-3.74-6.205-4.729-.887-7.965-2.521-7.965-4.021%200-1.64.891-1.618%205.066.127%205.159%202.155%2014.97.956%2020.412-2.495%204.593-2.913%208.112-7.71%208.118-11.064.003-1.418-1.126-2.65-3.596-3.928-4.402-2.278-5.12-5.255-2.056-8.518%201.93-2.053%202.833-2.278%207.765-1.938%205.893.406%207.989%201.483%208.984%204.618.728%202.294-2.847%206.552-5.5%206.552-1.288%200-1.753.727-1.753%202.738%200%203.823%203.58%208.724%208.658%2011.853%205.488%203.383%2014.625%204.304%2020.272%202.045%202.084-.834%204.03-1.275%204.325-.98%201.117%201.116-.864%202.598-5.14%203.845l-4.43%201.292-.17%204.86c-.34%209.658-8.124%2018.066-18.857%2020.368-5.867%201.258-7.779%201.212-13.47-.32m17.207-5.352c4.221-1.916%208.886-5.929%208.886-7.645%200-1.64-6.935-4.643-13.454-5.826-3.382-.613-8.095-.823-10.472-.466-5.846.876-11.459%203.222-12.538%205.239-.684%201.276-.18%202.344%202.188%204.634%201.691%201.636%204.588%203.628%206.436%204.428%204.78%202.067%2013.988%201.89%2018.954-.364m-3.114-46.095c0-1.709-3.167-2.51-4.53-1.147-.532.532-.662%201.461-.288%202.065.954%201.544%204.818.808%204.818-.918m-52.767-26.912c-7.495-4.98-13.8-7.058-18.828-6.209-2.137.362-6.883%202.156-10.546%203.99-6.884%203.443-10.745%203.848-11.253%201.18-.2-1.054%201.764-2.616%206.23-4.954%203.588-1.879%208.973-4.123%2011.967-4.988%205.03-1.452%205.902-1.453%2011.452-.015%207.242%201.876%2013.611%205.04%2018.145%209.012%203.256%202.854%203.302%202.989%201.496%204.394-1.025.797-2.105%201.437-2.4%201.422s-3.113-1.74-6.263-3.832m78.308%202.54c-.602-.725-.857-1.936-.567-2.692.854-2.227%2011.085-8.383%2016.676-10.034%207.983-2.358%2014.45-1.453%2024.35%203.404%204.62%202.268%208.4%204.717%208.4%205.443%200%20.727-1.058%201.587-2.35%201.911-1.634.41-4.417-.444-9.137-2.805-3.732-1.868-8.627-3.671-10.877-4.009-4.967-.745-11.398%201.474-19.112%206.594-2.906%201.929-5.51%203.507-5.786%203.507-.277%200-.996-.593-1.597-1.318m66.215-37.329c-2.948-4.482-9.59-12.267-15.322-17.959l-10.118-10.046.134-5.47c.074-3.044.867-6.89%201.787-8.673%203.25-6.296%209.304-15.1%2010.77-15.662.822-.315%202.09.023%202.818.752%201.126%201.126.613%202.678-3.424%2010.355-2.61%204.967-5.177%2010.595-5.702%2012.506l-.956%203.475%207.088%205.914c6.784%205.662%2015.736%2016.425%2018.936%2022.767%201.179%202.338%201.298%203.754.546%206.48-.53%201.919-1.051%203.485-1.159%203.481-.107-.004-2.536-3.568-5.398-7.92m-206.871%201.953c-1.592-2.43-1.562-2.706.822-7.746%201.818-3.842%205.138-7.738%2012.54-14.713%205.536-5.217%2010.068-10.182%2010.07-11.032.003-1.693-6.59-16.068-9.312-20.304-1.28-1.992-1.45-3.052-.686-4.263%201.686-2.673%203.171-2.527%206.09.597%203.585%203.838%2011.734%2020.244%2011.924%2024.006.128%202.533-1.054%203.958-9.392%2011.324-5.722%205.054-11.192%2010.923-13.67%2014.666-7.37%2011.135-6.493%2010.355-8.386%207.465'%20style='fill:%23040403;stroke-width:.96'/%3e%3cellipse%20cx='894.927'%20cy='331.661'%20rx='.305'%20ry='.191'%20style='fill:%23c8c8c8;fill-opacity:1;fill-rule:evenodd'/%3e%3cellipse%20cx='886.078'%20cy='370.851'%20rx='4.774'%20ry='.163'%20style='fill:%23fff;fill-opacity:1;fill-rule:evenodd'/%3e%3cellipse%20cx='894.548'%20cy='404.879'%20rx='2.8'%20ry='4.271'%20style='fill:%23fff;fill-opacity:1;fill-rule:evenodd'/%3e%3cellipse%20cx='1145.216'%20cy='-344.084'%20rx='5.016'%20ry='5.572'%20style='display:inline;fill:%23d67e94;fill-opacity:1;fill-rule:evenodd;stroke-width:.149008'%20transform='matrix(.73853%20.67422%20-.63988%20.76848%200%200)'/%3e%3cellipse%20cx='1161.324'%20cy='60.068'%20rx='5.016'%20ry='5.572'%20style='display:inline;fill:%23d67e94;fill-opacity:1;fill-rule:evenodd;stroke-width:.149008'%20transform='matrix(.92465%20.38081%20-.33829%20.94104%200%200)'/%3e%3cellipse%20cx='1141.388'%20cy='122.194'%20rx='5.016'%20ry='5.572'%20style='display:inline;fill:%23d67e94;fill-opacity:1;fill-rule:evenodd;stroke-width:.149008'%20transform='matrix(.94198%20.33566%20-.2924%20.9563%200%200)'/%3e%3cellipse%20cx='818.868'%20cy='559.334'%20rx='2.166'%20ry='.747'%20style='fill:%23ffdb4d;fill-opacity:.996078;fill-rule:evenodd'/%3e%3cellipse%20cx='885.732'%20cy='370.645'%20rx='5.565'%20ry='.59'%20style='fill:%23000;fill-opacity:.996078;fill-rule:evenodd'/%3e%3cpath%20d='M866.308%20513.459c.286-3.163.778-14.75%201.092-25.75.626-21.883%202.814-56.19%204.603-72.16l1.137-10.16%2011.123-2.06c27.089-5.018%2031.22-5.495%2048.123-5.558%2013.803-.05%2018.12.284%2022.958%201.776%2023.23%207.168%2033.385%2022.843%2032.318%2049.886-.402%2010.184-.634%2011.15-4.61%2019.173-10.298%2020.783-35.818%2036.819-69.186%2043.475-9.613%201.918-43.738%207.114-46.78%207.124-.975.003-1.17-1.427-.778-5.746'%20style='fill:none;fill-rule:evenodd'/%3e%3cpath%20d='M576.847%20433.52c-33.704-.235-99.078%206.542-160.356%2016.937-23.08%203.915-36.666%206.601-37.525%207.418-.468.445%205.022%2046.53%205.601%2047.023.188.16%2013.49-2.372%2029.563-5.629%2016.072-3.256%2029.426-5.727%2029.676-5.49.249.237-.672%2060.911-2.047%20134.832s-2.491%20139.574-2.479%20145.895l.022%2011.494%203.216-.588c1.77-.323%2013.897-1.702%2026.948-3.064l23.728-2.477-.642-4.533c-1.421-10.022-2.926-56.672-2.938-91.041l-.012-36.44%202.633-.01c4.417-.016%2063.011-8.66%2075.912-11.199%2064.141-12.62%2097.624-37.064%20108.858-79.469%202.325-8.775%202.656-12.833%202.67-32.822l.015-22.808-3.855-10.51c-5.024-13.697-10.579-22.316-20.113-31.213-16.02-14.948-36.468-22.874-66.475-25.768-3.418-.33-7.586-.505-12.4-.539zm636.505%2035.667c-.13-.098-6.819%201.26-14.861%203.016s-19.41%204.239-25.26%205.518l-10.635%202.326-.761%2026.328c-.419%2014.48-1.108%2033.963-1.536%2043.295l-.777%2016.967h-49.62l-5.85%2015.299-5.85%2015.298%2029.664.297%2029.666.297-.736%2043.65c-1.442%2085.626%204.027%20112.955%2027.015%20135.01%2014.122%2013.55%2029.08%2018.88%2050.358%2017.946%2012.985-.571%2021.458-2.922%2032.003-8.877%209.584-5.412%2022.007-17.961%2029.965-30.27%206.415-9.92%207.08-10.596%208.075-8.217.596%201.426%203.184%206.841%205.752%2012.033%207.966%2016.11%2021.37%2026.758%2038.529%2030.606%209.198%202.062%2014.567%202.065%2024.728.018%2016.42-3.309%2033.579-14.094%2041.916-26.346l3.858-5.666.375%2012.662c.729%2024.579-2.982%20103.33-7.438%20157.861-2.161%2026.448-7.37%2078.352-8.304%2082.762-.862%204.062-1.95%204.325%2028.79-6.904%2028.175-10.292%2024.694-5.323%2027.409-39.143%205.007-62.374%208.853-206.478%208.873-332.47l.01-61.547-9.065.742c-4.986.409-16.171%201.32-24.857%202.023l-15.793%201.281.281%207.788c.155%204.283%201.116%2021.807%202.135%2038.94%201.019%2017.135%201.681%2040.667%201.473%2052.294l-.38%2021.14-5.565%2011.016c-16.58%2032.813-36.9%2049.854-52.655%2044.156-10.576-3.824-18.196-20.11-22.168-47.382-3.093-21.241-1.586-75.265%203.211-115.092.917-7.614%201.471-14.03%201.23-14.26-.429-.408-46.636-3.466-47.13-3.12-.524.37-3.907%2020.662-5.76%2034.56-1.345%2010.085-2.021%2025.13-2.234%2049.7l-.307%2035.237-3.781%209.824c-8.142%2021.155-18.597%2038.09-29.633%2047.994-8.266%207.419-15.621%2010.672-24.127%2010.672-14.265%200-24.223-10.575-28.883-30.674-1.518-6.546-1.877-14.732-1.826-41.53.062-32.434%202.157-85.708%203.45-87.696.365-.563%2012.02-.64%2027.22-.18l26.582.807%204.275-16.244c2.352-8.934%204.276-16.576%204.276-16.983s-13.686-.49-30.414-.183l-30.414.556.01-4.57c.01-2.514%201.298-24.33%202.87-48.479%201.574-24.148%202.753-43.987%202.622-44.086zm-637.755%204.483c39.818%201.266%2060.273%2020.246%2060.214%2056.125-.027%2016.786-5.486%2028.664-19.287%2041.97-17.871%2017.231-43.408%2028.121-79.402%2033.86-20.329%203.241-46.332%206.386-46.443%205.617-.769-5.3%201.502-60.645%203.61-87.998%202.315-30.021%203.72-39.97%205.731-40.568%205.452-1.622%2044.467-7.38%2057.33-8.461q9.714-.817%2018.247-.545m318.484%2038.47c-.188.072-.463.204-.676.292q.164.016.328.008c.117-.102.23-.201.348-.3zm-27.774%201.319c-.131.247-.286.418-.414.676q.205-.212.41-.42c-.002-.086.006-.17.005-.256m23.239%209.69a3%203%200%200%200-.317.02c-.126.045-.249.096-.375.14-.223.122-.468.253-.767.4.56-.144%201.224-.341%201.469-.465zm-180.018%2032.554c-2.19.021-4.52.183-6.92.49l-7.709.987-.836%2011.908c-1.009%2014.379-5.542%2042.777-10.76%2067.404-2.11%209.966-3.499%2018.32-3.085%2018.563%201.597.938%2028.273%205.28%2028.882%204.7.355-.336%202.447-8.751%204.65-18.7s4.128-18.188%204.276-18.307c.436-.351%2026.876%203.871%2027.408%204.377.267.254-.31%205.649-1.28%2011.988-3.335%2021.764-5.685%2054.309-5.05%2069.94.697%2017.141%203.933%2029.745%2010.85%2042.265%2014.65%2026.518%2043.54%2040.485%2070.12%2033.9%2013.125-3.251%2021.385-8.058%2033.624-19.564%206.273-5.897%2011.406-10.155%2011.406-9.463.002%202.18%206.81%2015.054%2010.201%2019.293%208.524%2010.65%2026.003%2016.739%2044.739%2015.584%2016.987-1.046%2031.645-7.116%2044.797-18.549l6.162-5.357%204.662%203.856c13.114%2010.844%2025.058%2018.005%2035.076%2021.03%205.889%201.78%2020.804%201.949%2028.756.327%2029.118-5.94%2055.819-28.938%2063.691-54.86%203.34-10.995%202.007-28.213-3.351-43.288-8.163-22.968-25.68-51.247-47.051-75.961l-10.274-11.881%202.133-14.326c1.173-7.88%201.889-14.558%201.592-14.84-.932-.886-39.456-6.63-40.135-5.985-.355.338-1.18%204.824-1.836%209.97-3.829%2030.07-18.986%2082.596-32.582%20112.91l-3.441%207.67-1.479-3.085c-.812-1.696-2.04-2.888-2.73-2.648s-8.756%202.803-17.924%205.697-16.67%205.743-16.67%206.328c0%201.644%204.335%209.367%2011.983%2021.35%206.844%2010.724%206.93%2010.956%204.804%2013.191-6.608%206.95-21.1%209.277-28.119%204.516-6.551-4.445-9.646-12.426-11.142-28.735-1.349-14.695.07-78.462%202.644-118.875.622-9.756.731-18.074.244-18.484-.875-.736-47.058-3.69-47.703-3.05-.183.181-.698%2027.367-1.144%2060.411l-.813%2060.082-5.596%2011.272c-7.092%2014.287-13.317%2023.002-21.527%2030.139-15.88%2013.804-33.219%2011.545-42.373-5.52-5.534-10.315-6.8-18.378-6.773-43.123.025-23.417.583-29.762%205.828-66.248%203.394-23.612%203.085-27.439-2.74-34.024-4.28-4.837-12.886-9.876-16.868-9.876-1.79%200-8.478%202.001-14.861%204.449-23.741%209.104-32.05%204.593-29.992-16.287.702-7.124.529-8.265-1.557-10.248-2.305-2.193-7.635-3.377-14.207-3.313m318.228%2097.344c.857-.938%2010.588%2010.005%2017.153%2019.289%205.915%208.364%2011.881%2020.573%2014.513%2029.7%203.154%2010.93%202.626%2024.265-1.355%2034.241-3.645%209.135-12.527%2017.563-21.045%2019.97-9.291%202.623-14.947%202.243-22.908-1.54-6-2.851-21.506-15.764-21.506-17.908%200-.394%202.573-5.923%205.717-12.285%206.83-13.823%2016.684-37.493%2023.574-56.63%202.755-7.649%205.39-14.325%205.857-14.837'%20style='fill:%23000;stroke-width:1.14084'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",h9={name:"ErrorPage",data(){return{id:null}},mounted(){this.id=this.$route.params.id}},y9={"data-testid":"error-page",class:"surface-0 flex align-items-center justify-content-center min-h-screen min-w-screen overflow-hidden"},W9={class:"grid justify-content-center p-2 lg:p-0 error-page"},g9={class:"col-12 xl:col-6"},Y9={class:"flex justify-content-center h-full w-full m-0 py-7 px-4"},N9={class:"grid flex-column align-items-center"},X9={key:0,"data-testid":"error-page-title",class:"text-900 font-bold text-3xl lg:text-5xl mb-2"},z9={"data-testid":"error-page-message",class:"text-gray-600"};function A9(l,t,a,i,o,s){return e.openBlock(),e.createElementBlock("div",y9,[e.createElementVNode("div",W9,[t[0]||(t[0]=e.createElementVNode("div",{class:"col-12 mt-5 xl:mt-0 text-center"},[e.createElementVNode("img",{"data-testid":"error-page-logo",src:Z9,alt:"Pristy logo",class:"mb-5 pristy-logo"})],-1)),e.createElementVNode("div",g9,[e.createElementVNode("div",Y9,[e.createElementVNode("div",N9,[o.id?(e.openBlock(),e.createElementBlock("h1",X9,e.toDisplayString(l.$t("error",{error:o.id})),1)):e.createCommentVNode("",!0),e.createElementVNode("span",z9,e.toDisplayString(l.$t(`errors.${o.id}`)),1)])])])])])}const M9=H(h9,[["render",A9],["__scopeId","data-v-684dbd8b"]]),O9={install(l){l.component("PaginatorComponent",Ua),l.component("PDFComponent",Ha),l.component("PristyIcon",xl),l.component("TreeExplorer",qt),l.component("CopyOrMovePopup",Pa),l.component("EllipsisBreadcrumb",vn),l.component("BreadCrumbAlfresco",Ln),l.component("ContentTableView",qa),l.component("ContentListView",eo),l.component("ContentGridView",to),l.component("DynamicContentView",kn),l.component("ContentFiltersHeader",Cn),l.component("ImageViewer",ro),l.component("VideoPlayer",bo),l.component("PreviewPanel",Hn),l.component("CreateWorkflowPopup",ao),l.component("ImportNewVersionPopup",oo),l.component("ShareLinkPopup",co),l.component("MemberListPopup",io),l.component("SendMailPopup",no),l.component("LayoutSelector",Bn),l.component("HelpKeyMessage",En),l.component("SelectionStatus",Qn),l.component("MemberList",so),l.component("ActionMenu",Ul),l.component("CustomToastContent",Pn),l.component("UploadTargetInfo",Kn),l.component("FolderUpload",Yo),l.component("ImportPopupWithWorker",$n),l.component("UploadStatus",_n),l.component("AddPairInConfigDialog",qn),l.component("ConfigDatatable",ec),l.component("ConfigItemEditor",No),l.component("ConfigSplitView",tc),l.component("ConfigUpload",lc),l.component("ListVersionConfig",ac),l.component("AddCriterionPopup",ga),l.component("AdvancedSearchPanel",ic),l.component("AdvancedViewPanel",nc),l.component("ExactSearch",zo),l.component("FavoriteViewMenu",cc),l.component("UserViewsFavoritesPanel",Na),l.component("SaveViewPopup",Xa),l.component("PdfToolsComponent",rc),l.component("CodeMirrorEditor",Zc),l.component("DiffViewerDialog",Ao),l.component("ArrayEditor",Wa),l.component("ConfigHealthBanner",yc),l.component("ErrorComponent",jo),l.component("ChatPanel",Yc),l.component("ChatMessage",Go),l.component("ChatInput",To),l.component("ChatRoomList",wo)}};p.ActionMenu=Ul,p.AddCriterionPopup=ga,p.AddPairInConfigDialog=qn,p.AdvancedSearchPanel=ic,p.AdvancedViewPanel=nc,p.ArrayEditor=Wa,p.BreadCrumbAlfresco=Ln,p.ChatConnectionState=Ze,p.ChatInput=To,p.ChatMessage=Go,p.ChatPanel=Yc,p.ChatRoomList=wo,p.CodeMirrorEditor=Zc,p.ConfigDatatable=ec,p.ConfigHealthBanner=yc,p.ConfigItemEditor=No,p.ConfigSplitView=tc,p.ConfigUpload=lc,p.ConnectionState=_e,p.ContentFiltersHeader=Cn,p.ContentGridView=to,p.ContentListView=eo,p.ContentTableView=qa,p.CopyOrMovePopup=Pa,p.CreateWorkflowPopup=ao,p.CustomToastContent=Pn,p.DEFAULT_PREVIEW_STYLES=Zo,p.DiffViewerDialog=Ao,p.DynamicContentView=kn,p.EllipsisBreadcrumb=vn,p.ErrorComponent=jo,p.ErrorPage=M9,p.ExactSearch=zo,p.FavoriteViewMenu=cc,p.FolderUpload=Yo,p.HelpKeyMessage=En,p.ImageViewer=ro,p.ImportNewVersionPopup=oo,p.ImportPopupWithWorker=$n,p.LayoutSelector=Bn,p.ListVersionConfig=ac,p.LoginPage=b9,p.MemberList=so,p.MemberListPopup=io,p.NatureDocument=Xc,p.NotFoundPages=u9,p.PDFComponent=Ha,p.PaginatorComponent=Ua,p.PdfToolsComponent=rc,p.PreviewPanel=Hn,p.PristyIcon=xl,p.ROLE_EDITOR=Jt,p.ROLE_OBSERVER=al,p.SaveViewPopup=Xa,p.SelectionStatus=Qn,p.SendMailPopup=no,p.ShareLinkPopup=co,p.TreeExplorer=qt,p.TypeDossier=fo,p.UploadStatus=_n,p.UploadTargetInfo=Kn,p.UserViewsFavoritesPanel=Na,p.VideoPlayer=bo,p.actionsApi=Pc,p.activitiesApi=er,p.alfrescoApi=ae,p.alfrescoFileService=Xe,p.alfrescoModelService=QW,p.alfrescoNodeService=V,p.alfrescoPermissionService=VW,p.aspectsApi=xa,p.authenticationApi=l2,p.categoriesApi=_c,p.chatBackendService=Aa,p.checkNotNull=BW,p.checkString=Io,p.collabService=Tt,p.collaboraAccessService=SW,p.commentsApi=Kc,p.componentLibrary=O9,p.configHealthService=hc,p.configService=Vt,p.contentApi=jt,p.createEditorView=Sn,p.discoveryApi=tr,p.downloadsApi=$c,p.errorService=kt,p.favoriteService=ba,p.favoritesApi=Vl,p.filingPlanService=PW,p.formatService=ma,p.generatePreviewDocument=Wo,p.getBaseExtensions=Nl,p.getLanguageExtension=Yl,p.groupsApi=hl,p.i18n=$t,p.iconeService=tl,p.keyboardShortcutsService=UW,p.menuService=$a,p.messages=zn,p.nodesApi=ge,p.peopleApi=Dt,p.peopleService=lo,p.renderMarkdown=ho,p.renditionsApi=ia,p.rocketChatAuthService=it,p.rocketChatService=Al,p.sanitizeHtml=yo,p.searchApi=mt,p.sharedLinksApi=yl,p.sitesApi=Ce,p.tagsApi=qc,p.translationService=Dn,p.trashcanApi=Ec,p.typesApi=Sa,p.uploadApi=Va,p.useChatStore=gc,p.useChatWebSocket=Wc,p.useCodeMirror=Mp,p.useCollabEditor=mc,p.useCollabStore=pc,p.useCollabWebSocket=dc,p.useCollaboraStore=jn,p.useConfigStore=de,p.useFavoritesStore=Jl,p.useMarkdownPreview=go,p.useMenuStore=da,p.useNavigationStore=xe,p.usePaginatorStore=Ja,p.useScreenStore=uc,p.useSearchStore=Ya,p.useSelectionStore=Oe,p.useTaskNotificationStore=In,p.useThemeStore=ya,p.useUploadStore=el,p.useUserPreferencesStore=KW,p.useUserStore=Ge,p.useUserViewStore=Gt,p.userViewService=zt,p.versionsApi=Rt,p.vueKeyCloak=_W,p.webscriptApi=Wl,p.workflowService=ra,p.workspaceService=je,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})}));
154
+ </html>`}function go(l={}){const{content:t,mimeType:a,customStyles:i=""}=l,o=e.computed(()=>{const m=a?.value;return m==="text/markdown"||m==="text/x-markdown"||m==="text/x-web-markdown"}),s=e.computed(()=>a?.value==="text/html"),n=e.computed(()=>o.value||s.value),c=e.computed(()=>t?.value?o.value?ho(t.value):s.value?yo(t.value):"":""),r=e.computed(()=>Wo(c.value,i));return{isMarkdown:o,isHtml:s,shouldRenderPreview:n,previewBodyHtml:c,iframeContent:r,renderMarkdown:ho,sanitizeHtml:yo,generatePreviewDocument:Wo}}const ya=$.defineStore({id:"ThemeStore",state:()=>({theme:"",indexScale:"",dark:!1}),actions:{initScale(){let t=localStorage.getItem("scaleIndex")||2;this.updateScale(t)},updateScale(l){const t=[12,13,14,15,16],a=document.documentElement;a.style.fontSize=`${t[l]}px`,localStorage.setItem("scaleIndex",l),this.$patch({indexScale:l})},changeTheme(l){const t=de().PRIMEVUE_THEMES_URL,a=document.head,i=document.getElementById("theme-link"),o=document.createElement("link");o.id="theme-link",o.rel="stylesheet",o.href=`${t}${l}/theme.min.css`,o.async=!0;const s=()=>{console.info(`Theme ${l} loaded`)},n=c=>{console.error(`Can’t load theme ${l}`,c)};o.addEventListener("load",s),o.addEventListener("error",n),i&&a.removeChild(i),a.appendChild(o),localStorage.setItem("theme",l),this.$patch({theme:l,dark:l.indexOf("dark")>0})},initTheme(){let t=localStorage.getItem("theme")||"lara-light-green";this.changeTheme(t)}}}),jp={class:"code-viewer-wrapper"},Gp={key:0,class:"loading-container"},Tp={key:1,class:"error-container"},wp={key:2},Ip=["srcdoc"],fp={name:"PreviewPanel",components:{VideoPlayer:bo,ImageViewer:ro,PDFComponent:Ha,CodeMirrorViewer:H({__name:"CodeMirrorViewer",props:{contentNode:{type:Object,required:!0},isSharedLink:{type:Boolean,default:!1}},setup(l){const{t}=Pt.useI18n(),a=ya(),i=l,o=e.ref(""),s=e.ref(null),n=e.ref(null),c=e.shallowRef(null),r=e.ref(!1),m=e.ref(null),{isMarkdown:h,isHtml:u,iframeContent:b}=go({content:o,mimeType:s}),y=()=>{if(!n.value)return;const M=Yl(s.value),F=[...Nl({editable:!1,showLineNumbers:!0,enableHistory:!1,dark:a.dark})];M&&(!Array.isArray(M)||M.length>0)&&F.push(M);const U=Ot.EditorState.create({doc:o.value,extensions:F});c.value=new we.EditorView({state:U,parent:n.value})},g=()=>{c.value&&(c.value.destroy(),c.value=null)},X=async M=>{if(!(!M.id&&!M.shareId)){r.value=!0,m.value=null;try{let A;i.isSharedLink&&M.shareId?A=await V.getSharedLinkContent(M.shareId):A=await V.getNodeContent(M.id,!1);let F=await A.text();if(M.content?.mimeType==="application/json")try{F=JSON.stringify(JSON.parse(F),null,2)}catch(U){console.warn("Failed to format JSON, displaying raw content:",U.message)}o.value=F,s.value=M.content?.mimeType||"text/plain",r.value=!1,await e.nextTick(),!h.value&&!u.value&&y()}catch(A){console.error("Failed to load content:",A),m.value=t("editor.loadError"),r.value=!1}}};return e.watch(()=>i.contentNode,M=>{M&&(g(),X(M))},{immediate:!0}),e.onBeforeUnmount(()=>{g()}),(M,A)=>(e.openBlock(),e.createElementBlock("div",jp,[r.value?(e.openBlock(),e.createElementBlock("div",Gp,[e.createVNode(e.unref(bt))])):m.value?(e.openBlock(),e.createElementBlock("div",Tp,[A[0]||(A[0]=e.createElementVNode("i",{class:"ri-error-warning-line mr-2 text-2xl","aria-hidden":"true"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(m.value),1)])):(e.openBlock(),e.createElementBlock("div",wp,[e.unref(h)||e.unref(u)?(e.openBlock(),e.createElementBlock("iframe",{key:0,srcdoc:e.unref(b),class:"preview-iframe w-full h-screen",sandbox:"allow-scripts allow-popups"},null,8,Ip)):(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"editorContainer",ref:n,class:"h-full w-full"},null,512))]))]))}},[["__scopeId","data-v-2fef27f5"]]),PrimeButton:w},directives:{tooltip:dt},inject:["collaboraService","isCurrentNodeDisplayed"],props:{isPreviewPanelVisible:{type:Boolean,default:!1},currentNodeDisplayed:{type:Object,default:()=>({})},hasOnlyOneFile:{type:Boolean,default:!1}},emits:["closeContentPanel","showPreviousFile","showNextFile"],data(){return{url:null}},computed:{...$.mapState(xe,["children"])},watch:{currentNodeDisplayed(l){l!=null?this.computeUrl(l):this.closeContentPanel()}},methods:{getPDFRef(){return this.$refs.pdfComponent},getImagePreviewRef(){return this.$refs.imageViewer},closeContentPanel(){this.$emit("closeContentPanel")},showPreviousFile(l){this.$emit("showPreviousFile",l)},showNextFile(l){this.$emit("showNextFile",l)},computeUrl(l){this.mimeType=l.content.mimeType,this.currentFileName=l.name,this.currentFileId=l.id,this.mimeType&&(this.mimeType==="application/pdf"||this.mimeType.includes("image/")||this.mimeType.includes("video/"))?this.url=Xe.getContentUrl(l.id):Xe.getRenditionUrl(l.id).then(t=>{this.url=t}).catch(t=>{if(t.message==="NOT_CREATED")return console.warn("Fail loading content : NOT_CREATED"),null;console.error("Fail loading content",t)})}}},vp=["aria-label"],Lp={class:"card p-1 flex-grow-1 overflow-visible pdfPanel scrollbar-width-none card-max-height"},Dp={key:0,class:"flex p-2 pdfPanelHeader"},Rp={"data-testid":"preview-panel-title",class:"text-xl overflow-hidden custom-ellipsis text-left m-auto w-10"},kp={class:"flex w-fit ml-2"},Cp={key:1},Fp={key:2},Vp={key:3},xp={key:4};function Sp(l,t,a,i,o,s){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("router-link"),r=e.resolveComponent("ImageViewer"),m=e.resolveComponent("VideoPlayer"),h=e.resolveComponent("CodeMirrorViewer"),u=e.resolveComponent("PDFComponent"),b=e.resolveDirective("tooltip");return a.currentNodeDisplayed?(e.openBlock(),e.createElementBlock("aside",{key:0,"data-testid":"preview-panel",class:e.normalizeClass(["pr-1 classic_zone flex-grow-1 overflow-hidden w-80vw",{hidden:!a.isPreviewPanelVisible}]),"aria-label":l.$t("previewPanel")},[e.createElementVNode("div",Lp,[a.currentNodeDisplayed?(e.openBlock(),e.createElementBlock("div",Dp,[e.createVNode(n,{"data-testid":"preview-panel-close-button",class:"m-2 text-xl p-1",type:"button",icon:"ri-close-line","aria-label":l.$t("close"),severity:"danger",rounded:"",text:"",onClick:s.closeContentPanel},null,8,["aria-label","onClick"]),e.withDirectives((e.openBlock(),e.createElementBlock("div",Rp,[e.createTextVNode(e.toDisplayString(a.currentNodeDisplayed.name),1)])),[[b,a.currentNodeDisplayed.name,void 0,{top:!0}]]),e.createElementVNode("div",kp,[e.withDirectives(e.createVNode(n,{"data-testid":"preview-panel-previous-button","aria-label":l.$t("previousFile"),type:"button",class:"m-2 text-3xl p-1",icon:"ri-skip-left-line",severity:"secondary",disabled:a.hasOnlyOneFile,onClick:t[0]||(t[0]=y=>s.showPreviousFile(l.children))},null,8,["aria-label","disabled"]),[[b,l.$t("previousFile"),void 0,{bottom:!0}]]),e.withDirectives(e.createVNode(n,{"data-testid":"preview-panel-next-button","aria-label":l.$t("nextFile"),type:"button",class:"m-2 text-3xl p-1",icon:"ri-skip-right-line",severity:"secondary","icon-pos":"right",disabled:a.hasOnlyOneFile,onClick:t[1]||(t[1]=y=>s.showNextFile(l.children))},null,8,["aria-label","disabled"]),[[b,l.$t("nextFile"),void 0,{bottom:!0}]]),e.createVNode(c,{to:s.collaboraService.getRoute(a.currentNodeDisplayed)},{default:e.withCtx(()=>[e.createVNode(n,{class:"m-2",label:"Ouvrir",type:"button",severity:"secondary",raised:""})]),_:1},8,["to"])])])):e.createCommentVNode("",!0),a.currentNodeDisplayed&&l.mimeType&&l.mimeType.includes("image/")?(e.openBlock(),e.createElementBlock("div",Cp,[e.createVNode(r,{ref:"imageViewer","content-node":a.currentNodeDisplayed,"show-title":!1},null,8,["content-node"])])):a.currentNodeDisplayed&&l.mimeType&&l.mimeType.includes("video/")?(e.openBlock(),e.createElementBlock("div",Fp,[e.createVNode(m,{"content-url":o.url,"content-node":a.currentNodeDisplayed},null,8,["content-url","content-node"])])):a.currentNodeDisplayed&&l.mimeType&&(l.mimeType.startsWith("text/")||l.mimeType==="application/json"||l.mimeType==="application/xml"||l.mimeType==="application/x-yaml"||l.mimeType==="application/x-sh")?(e.openBlock(),e.createElementBlock("div",Vp,[e.createVNode(h,{"content-node":a.currentNodeDisplayed},null,8,["content-node"])])):o.url?(e.openBlock(),e.createElementBlock("div",xp,[(e.openBlock(),e.createBlock(u,{key:o.url,ref:"pdfComponent",url:o.url,class:"h-full"},null,8,["url"]))])):e.createCommentVNode("",!0)])],10,vp)):e.createCommentVNode("",!0)}const Hn=H(fp,[["render",Sp],["__scopeId","data-v-70a3dead"]]),Jp={name:"SelectionStatus",components:{PrimeProgressSpinner:bt},inject:["actionsService"],emits:["resetPageSelection"],computed:{useSelectionStore(){return Oe},...$.mapState(Oe,["isSelectionRemovalVisible","isCurrentPageFullySelected"]),...$.mapState(xe,["currentNode","loading","pagination","totalRecordNodes"]),hasMoreElements(){return this.totalRecordNodes>=500},hasSelectedNodes(){return Oe().nodes.length!==0&&this.pagination&&!this.loading}},methods:{deleteSelection(){Oe().resetSelection(),Oe().setIsCurrentPageFullySelected(!1),Oe().setIsSelectionRemovalVisible(!1),this.$emit("resetPageSelection")},selectAllNodes(){let l=this.currentNode.guid||this.currentNode.id;this.actionsService.selectAllNodes(l,!0).then(t=>{let a=t.children;a.length>0&&Oe().selectNodes(a),Oe().setIsCurrentPageFullySelected(!1),Oe().setIsSelectionRemovalVisible(!0)})}}},Up={class:"align mb-1 flex-grow-1"},Hp={key:1,class:"nbrOfSearchResult"},Qp={key:2,class:"nbrOfSearchResult"},Bp={key:3,class:"selectOrDeleteDiv"},Ep={class:"ml-2 flex"},Pp={key:4,class:"selectOrDeleteDiv"},_p={class:"ml-2 flex"};function Kp(l,t,a,i,o,s){const n=e.resolveComponent("PrimeProgressSpinner");return e.openBlock(),e.createElementBlock("div",Up,[l.loading?(e.openBlock(),e.createBlock(n,{key:0,class:"w-1rem h-1rem",strokeWidth:"8",fill:"var(--surface-ground)",animationDuration:".5s","aria-label":"Custom ProgressSpinner"})):e.createCommentVNode("",!0),!l.loading&&l.pagination&&!s.hasSelectedNodes?(e.openBlock(),e.createElementBlock("div",Hp,e.toDisplayString(l.$t("howMuchResult",{nbrEntries:l.pagination.count,totalEntries:l.pagination.totalItems})),1)):s.hasSelectedNodes&&!l.isCurrentPageFullySelected&&!l.isSelectionRemovalVisible?(e.openBlock(),e.createElementBlock("div",Qp,e.toDisplayString(l.$t("howMuchSelected",{nbrEntries:s.useSelectionStore().nodes.length,totalEntries:l.pagination.totalItems})),1)):s.hasSelectedNodes&&l.isCurrentPageFullySelected?(e.openBlock(),e.createElementBlock("div",Bp,[e.createElementVNode("span",Ep,[e.createTextVNode(e.toDisplayString(l.$t("howMuchSelected",{nbrEntries:s.useSelectionStore().nodes.length,totalEntries:l.pagination.totalItems}))+" ",1),s.hasMoreElements?(e.openBlock(),e.createElementBlock("button",{key:0,class:"font-bold cursor-pointer ml-2 p-link",onClick:t[0]||(t[0]=c=>s.selectAllNodes())},e.toDisplayString(l.$t("selectAllElementMoreThan",{totalEntries:l.pagination.totalItems})),1)):(e.openBlock(),e.createElementBlock("button",{key:1,class:"font-bold cursor-pointer ml-2 p-link",onClick:t[1]||(t[1]=c=>s.selectAllNodes())},e.toDisplayString(l.$t("selectAllElement",{totalEntries:l.pagination.totalItems})),1))])])):s.hasSelectedNodes&&l.isSelectionRemovalVisible?(e.openBlock(),e.createElementBlock("div",Pp,[e.createElementVNode("span",_p,[e.createTextVNode(e.toDisplayString(l.$t("howMuchSelected",{nbrEntries:s.useSelectionStore().nodes.length,totalEntries:l.pagination.totalItems}))+" ",1),e.createElementVNode("button",{class:"font-bold cursor-pointer ml-2 p-link",onClick:t[2]||(t[2]=c=>s.deleteSelection())},e.toDisplayString(l.$t("deleteSelection")),1)])])):e.createCommentVNode("",!0)])}const Qn=H(Jp,[["render",Kp]]),$p={name:"LayoutSelector",components:{PrimeSelectButton:Zl},emits:["update-layout"],data(){return{layout:localStorage.getItem("contentViewLayout")||"datatable",options:["list","grid","datatable"]}},methods:{onLayoutChange(){this.$emit("update-layout",this.layout)},getOptionLabel(l){return{list:this.$t("layoutList"),grid:this.$t("layoutGrid"),datatable:this.$t("layoutTable")}[l]||l}}},qp=["aria-label"],e1={class:"sr-only"};function t1(l,t,a,i,o,s){const n=e.resolveComponent("PrimeSelectButton");return e.openBlock(),e.createElementBlock("div",{"data-testid":"layout-selector",class:"listView flex-grow-0",role:"group","aria-label":l.$t("layoutSelector")},[e.createVNode(n,{"data-testid":"layout-selector-button",modelValue:o.layout,"onUpdate:modelValue":t[0]||(t[0]=c=>o.layout=c),options:o.options,"allow-empty":!1,onChange:s.onLayoutChange,"aria-label":l.$t("layoutSelector")},{option:e.withCtx(({option:c})=>[e.createElementVNode("i",{class:e.normalizeClass([c==="list"?"ri-list-check":c==="grid"?"ri-grid-line":"ri-table-line"]),"aria-hidden":"true"},null,2),e.createElementVNode("span",e1,e.toDisplayString(s.getOptionLabel(c)),1)]),_:1},8,["modelValue","options","onChange","aria-label"])],8,qp)}const Bn=H($p,[["render",t1],["__scopeId","data-v-933501bb"]]),l1={name:"HelpKeyMessage",components:{PrimeMessage:Wt},props:{helpKey:{type:Boolean,default:!1}},emits:["set-help-hey"],methods:{changeHelpKey(){this.$emit("set-help-hey",!1)}}};function a1(l,t,a,i,o,s){const n=e.resolveComponent("PrimeMessage");return a.helpKey?(e.openBlock(),e.createBlock(n,{key:0,closable:!1,severity:"secondary",class:"text-lg font-semibold p-0",size:"large",onClick:s.changeHelpKey},{default:e.withCtx(()=>[...t[0]||(t[0]=[e.createElementVNode("p",{class:"ml-1 font-bold"},"Liste des Raccourcies Claviers",-1),e.createElementVNode("div",{class:"keydef"},[e.createElementVNode("span",null,[e.createElementVNode("i",{class:"ri-arrow-left-line","aria-hidden":"true"})]),e.createTextVNode("Page Précédente ")],-1),e.createElementVNode("div",{class:"keydef"},[e.createElementVNode("span",null,[e.createElementVNode("i",{class:"ri-arrow-right-line","aria-hidden":"true"})]),e.createTextVNode("Page Suivante ")],-1),e.createElementVNode("div",{class:"keydef"},[e.createElementVNode("span",null,[e.createTextVNode("CTRL+"),e.createElementVNode("i",{class:"ri-arrow-up-line","aria-hidden":"true"})]),e.createTextVNode("Document Précédente ")],-1),e.createElementVNode("div",{class:"keydef"},[e.createElementVNode("span",null,[e.createTextVNode("CTRL+"),e.createElementVNode("i",{class:"ri-arrow-down-line","aria-hidden":"true"})]),e.createTextVNode("Document Suivante ")],-1),e.createElementVNode("div",{class:"keydef"},[e.createElementVNode("span",null,"+"),e.createTextVNode("Zoomer")],-1),e.createElementVNode("div",{class:"keydef"},[e.createElementVNode("span",null,"-"),e.createTextVNode("Dézoomer")],-1),e.createElementVNode("div",{class:"keydef"},[e.createElementVNode("span",null,"0"),e.createTextVNode("Zoom adapté à la hauteur")],-1),e.createElementVNode("div",{class:"keydef"},[e.createElementVNode("span",null,"5"),e.createTextVNode("Zoom adapté à la largeur")],-1),e.createElementVNode("div",{class:"keydef"},[e.createElementVNode("span",null,"ECHAP"),e.createTextVNode("Fermer la prévisualisation")],-1),e.createElementVNode("div",{class:"keydef"},[e.createElementVNode("span",null,"ENTER"),e.createTextVNode("Ouvre le document")],-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)}const En=H(l1,[["render",a1],["__scopeId","data-v-3439a6f6"]]),o1={name:"CustomToastContent",props:{severity:{type:String,default:"info"},summary:{type:String,default:"Info"},link:{type:String,default:""},linkText:{type:String,default:"Cliquez ici"},messageBeforeLink:{type:String,default:""},messageAfterLink:{type:String,default:""},message:{type:String,default:"Voici un message sans lien."}},computed:{iconClass(){switch(this.severity){case"success":return"pi pi-check text-success";case"info":return"pi pi-info-circle text-info";case"warn":return"pi pi-exclamation-triangle text-warning";case"error":return"pi pi-times-circle text-danger";default:return"pi pi-info-circle text-info"}}}},s1={class:"flex w-full gap-1"},i1={class:"flex flex-column flex-grow-1 gap-1"},n1={class:"text-base font-bold"},c1={class:"text-base"},r1=["href"],d1={key:1};function b1(l,t,a,i,o,s){return e.openBlock(),e.createElementBlock("div",s1,[e.createElementVNode("i",{class:e.normalizeClass([s.iconClass,"mr-2 text-2xl"]),"aria-hidden":"true"},null,2),e.createElementVNode("div",i1,[e.createElementVNode("div",n1,e.toDisplayString(a.summary),1),e.createElementVNode("div",c1,[a.link?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.messageBeforeLink)+" ",1),e.createElementVNode("a",{href:a.link,class:"underline",target:"_blank",rel:"noopener"},e.toDisplayString(a.linkText),9,r1),e.createTextVNode(" "+e.toDisplayString(a.messageAfterLink),1)],64)):(e.openBlock(),e.createElementBlock("div",d1,e.toDisplayString(a.message),1))])])])}const Pn=H(o1,[["render",b1]]),m1={name:"UploadStatus",components:{PrimeKnob:Fc},emits:["openFile"],data(){return{isReduced:!1}},computed:{...$.mapState(el,["files","isUploading","overallMessage","activeRequests"])},methods:{...$.mapActions(el,["clearCompleted","cancelUpload"]),changeReducedState(){this.isReduced=!this.isReduced},cancelFileUpload(l){this.cancelUpload(l)},getIconColor(l){switch(l){case"success":return"color: green";case"error":return"color: red";default:return""}},iconForStatus(l){switch(l){case"success":return"ri-checkbox-circle-fill text-2xl";case"error":return"ri-close-circle-fill text-2xl";default:return""}},openFile(l){this.$emit("openFile",l)}}},p1={key:0,class:"fixed bottom-0 right-0 w-full sm:w-30rem surface-0 border-round shadow-5 m-0 sm:m-3 z-5 p-3 surface-border surface-ground border-1"},u1={class:"flex justify-content-between align-items-center"},Z1={key:0,class:"file-list"},h1={class:"flex flex-column pr-1"},y1=["onClick"],W1={key:1,class:"file-name"},g1={key:2,class:"error-message text-xs"},Y1={class:"status-container"},N1={key:1};function X1(l,t,a,i,o,s){const n=e.resolveComponent("Button"),c=e.resolveComponent("PrimeKnob");return l.files.length>0?(e.openBlock(),e.createElementBlock("div",p1,[e.createElementVNode("div",u1,[e.createElementVNode("strong",null,e.toDisplayString(l.overallMessage),1),e.createElementVNode("div",null,[e.createVNode(n,{icon:o.isReduced?"ri-arrow-up-line":"ri-arrow-down-line",onClick:s.changeReducedState,text:"",rounded:"",severity:"secondary","aria-label":"Réduire"},null,8,["icon","onClick"]),l.isUploading?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(n,{key:0,icon:"ri-close-line",onClick:l.clearCompleted,text:"",rounded:"",severity:"secondary","aria-label":"Fermer"},null,8,["onClick"]))])]),o.isReduced?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Z1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.files,r=>(e.openBlock(),e.createElementBlock("div",{key:r.name,class:"file-item"},[e.createElementVNode("div",h1,[r.status==="success"?(e.openBlock(),e.createElementBlock("a",{key:0,class:"file-name cursor-pointer",onClick:m=>s.openFile(r)},e.toDisplayString(r.name),9,y1)):(e.openBlock(),e.createElementBlock("span",W1,e.toDisplayString(r.name),1)),r.status==="error"?(e.openBlock(),e.createElementBlock("p",g1,e.toDisplayString(r.message),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Y1,[r.status==="uploading"?(e.openBlock(),e.createBlock(c,{key:0,modelValue:r.percent,"onUpdate:modelValue":m=>r.percent=m,size:50,strokeWidth:5,readonly:"",valueTemplate:"{value}%",class:"upload-knob"},null,8,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),r.status==="rejected"?(e.openBlock(),e.createElementBlock("div",N1,e.toDisplayString(l.$t("canceledImport")),1)):(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass(`${s.iconForStatus(r.status)}`),style:e.normalizeStyle(s.getIconColor(r.status))},null,6)),r.status==="uploading"&&r.percent!==100?(e.openBlock(),e.createBlock(n,{key:3,icon:"ri-close-line",text:"",rounded:"",severity:"danger",onClick:m=>s.cancelFileUpload(r.name),"aria-label":"Annuler",class:"cancel-btn"},null,8,["onClick"])):e.createCommentVNode("",!0)])]))),128))]))])):e.createCommentVNode("",!0)}const _n=H(m1,[["render",X1],["__scopeId","data-v-a3067d5a"]]),z1={name:"UploadTargetInfo",computed:{...$.mapState(xe,["currentNode","workspace"])}},A1={class:"overlay-content"},M1={class:"text-xl font-bold"},O1={class:"mt-2 text-color-secondary"};function j1(l,t,a,i,o,s){return e.openBlock(),e.createElementBlock("div",A1,[t[0]||(t[0]=e.createElementVNode("i",{class:"ri-upload-cloud-line text-8xl","aria-hidden":"true"},null,-1)),e.createElementVNode("span",M1,e.toDisplayString(l.$t("dropFileFolders")),1),e.createElementVNode("div",O1,e.toDisplayString(l.currentNode?.name==="documentLibrary"?l.workspace?.title||l.workspace?.id:l.currentNode?.name||l.$t("currentFolder")),1)])}const Kn=H(z1,[["render",j1],["__scopeId","data-v-b32d0624"]]),G1={name:"FolderUpload",data(){return{isDraggingOver:!1}},emits:["close"],methods:{...$.mapActions(el,["startUpload"]),closePopup(){this.$emit("close",!1)},handleFolderSelect(l){const a=Array.from(l.target.files).map(i=>({file:i,relativePath:i.webkitRelativePath}));this.processFiles(a)},processFiles(l){const t=xe().currentNode.id;this.startUpload(l,t),this.closePopup()},async handleDrop(l){this.isDraggingOver=!1;const t=l.dataTransfer.items,a=[],i=[],o=async s=>{if(s.isFile)return new Promise(n=>s.file(c=>{const r=s.fullPath.startsWith("/")?s.fullPath.substring(1):s.fullPath;a.push({file:c,relativePath:r}),n()}));if(s.isDirectory){const n=s.createReader();return new Promise(c=>{const r=async()=>{const m=await new Promise(h=>n.readEntries(h));if(m.length>0){for(const h of m)await o(h);await r()}c()};r()})}};for(const s of t){const n=s.webkitGetAsEntry();n&&i.push(o(n))}await Promise.all(i),a.length>0&&this.processFiles(a)},triggerFileInput(){this.$refs.fileInput.click()},handleDragOver(){this.isDraggingOver=!0},handleDragLeave(){this.isDraggingOver=!1}}},T1={class:"p-4 max-w-xl mx-auto p-fileupload p-fileupload-advanced p-component"},w1={class:"p-fileupload-buttonbar"};function I1(l,t,a,i,o,s){const n=e.resolveComponent("Button");return e.openBlock(),e.createElementBlock("div",T1,[e.createElementVNode("div",w1,[e.createVNode(n,{class:"w-full",label:l.$t("selectFolder"),onClick:s.triggerFileInput},null,8,["label","onClick"])]),e.createElementVNode("div",{class:e.normalizeClass(["drop-zone p-fileupload-content",{"p-fileupload-highlight":o.isDraggingOver}]),onDragover:t[0]||(t[0]=e.withModifiers((...c)=>s.handleDragOver&&s.handleDragOver(...c),["prevent"])),onDragleave:t[1]||(t[1]=e.withModifiers((...c)=>s.handleDragLeave&&s.handleDragLeave(...c),["prevent"])),onDrop:t[2]||(t[2]=e.withModifiers(c=>s.handleDrop(c),["prevent"]))},[e.createElementVNode("p",null,e.toDisplayString(l.$t("dropFolder")),1)],34),e.createElementVNode("input",{type:"file",webkitdirectory:"",onChange:t[3]||(t[3]=c=>s.handleFolderSelect(c)),ref:"fileInput",class:"hidden"},null,544)])}const Yo=H(G1,[["render",I1],["__scopeId","data-v-f2b573ce"]]),f1={name:"ImportPopupWithWorker",components:{FolderUpload:Yo},props:{node:{type:Object,required:!0},importType:{type:String,default:"file"},forcedPlanName:{type:String,default:null}},emits:["close","upload-with-plan"],computed:{...$.mapState(el,["isUploading"])},methods:{...$.mapActions(el,["startUpload"]),closePopup(){this.$emit("close",!1)},handleUpload(l){const t=l.files;if(!t||t.length===0)return;if(this.forcedPlanName){const i=t.map(o=>new File([o],o.name,{type:o.type}));this.$emit("upload-with-plan",{files:i,planName:this.forcedPlanName}),this.closePopup();return}const a=t.map(i=>({file:new File([i],i.name,{type:i.type}),relativePath:""}));this.startUpload(a,this.node.id),this.closePopup()}}},v1={key:0},L1={key:1};function D1(l,t,a,i,o,s){const n=e.resolveComponent("Button"),c=e.resolveComponent("FileUpload"),r=e.resolveComponent("FolderUpload"),m=e.resolveComponent("Dialog");return e.openBlock(),e.createBlock(m,{"data-testid":"import-popup-with-worker",header:l.$t("importElement"),visible:"",modal:"",onKeyup:e.withKeys(s.closePopup,["esc"]),class:"popup"},{closeicon:e.withCtx(()=>[e.createVNode(n,{"data-testid":"import-popup-with-worker-close-button",icon:"ri-close-line","aria-label":l.$t("close"),onClick:s.closePopup,outlined:"",text:"",severity:"secondary"},null,8,["aria-label","onClick"])]),footer:e.withCtx(()=>[e.createVNode(n,{"data-testid":"import-popup-with-worker-footer-close-button",label:l.$t("close"),onClick:s.closePopup,severity:"secondary"},null,8,["label","onClick"])]),default:e.withCtx(()=>[a.importType==="file"?(e.openBlock(),e.createElementBlock("div",v1,[e.createVNode(c,{"data-testid":"import-popup-with-worker-file-upload",name:"upload_files",chooseLabel:l.$t("imports.selectFiles"),uploadLabel:l.$t("send"),cancelLabel:l.$t("cancel"),onUploader:s.handleUpload,customUpload:"",multiple:"",maxFileSize:2147483648,disabled:l.isUploading},{empty:e.withCtx(()=>[e.createElementVNode("p",null,e.toDisplayString(l.$t("dragAndDrop")),1)]),_:1},8,["chooseLabel","uploadLabel","cancelLabel","onUploader","disabled"])])):a.importType==="folder"?(e.openBlock(),e.createElementBlock("div",L1,[e.createVNode(r,{"data-testid":"import-popup-with-worker-folder-upload",onClose:s.closePopup},null,8,["onClose"])])):e.createCommentVNode("",!0)]),_:1},8,["header","onKeyup"])}const $n=H(f1,[["render",D1]]);class R1{getConfig(t,a){const i=`fr/jeci/pristy/config/${t}/${a}`;return Wl.executeWebScript("GET",i)}updateConfig(t,a,i){const o=`fr/jeci/pristy/config/${t}/${a}`;return Wl.executeWebScript("PUT",o,null,null,null,i)}validateValueByType(t,a){if(a==="number"&&(isNaN(parseFloat(t))||!isFinite(t)))return this.$t("config.errors.invalidNumber");if(a==="boolean"){const i=String(t).toLowerCase();if(i!=="true"&&i!=="false")return this.$t("config.errors.invalidBoolean")}if(a==="array"||a==="object")try{const i=JSON.parse(t),o=Array.isArray(i)?"array":typeof i;if(a==="array"&&o!=="array"||a==="object"&&o!=="object")return this.$t("config.errors.typeMismatch",{type:a})}catch{return null}return null}}const Vt=new R1,k1={name:"AddPairInConfigDialog",components:{PrimeDialog:ke,PrimeButton:w,PrimeInputText:Me,PrimeDropdown:gt},props:{visible:{type:Boolean,default:!1},existingKeys:{type:Array,default:()=>[]}},emits:["update:visible","add-pair"],data(){return{newKey:"",newValue:"",newType:"string",availableTypes:["string","number","boolean","array","object"],errors:{key:null,value:null}}},watch:{visible(l){l&&this.resetForm()}},methods:{resetForm(){this.newKey="",this.newValue="",this.newType="string",this.errors={key:null,value:null}},submit(){this.errors={key:null,value:null};let l=!0;this.newKey.trim()?this.existingKeys.includes(this.newKey.trim())&&(this.errors.key=this.$t("config.errors.keyDuplicate"),l=!1):(this.errors.key=this.$t("config.errors.keyRequired"),l=!1);const t=Vt.validateValueByType(this.newValue,this.newType);t&&(this.errors.value=t,l=!1),l&&(this.$emit("add-pair",{key:this.newKey,value:this.newValue,type:this.newType}),this.$emit("update:visible",!1))}}},C1={class:"field"},F1={for:"newKey"},V1={key:0,class:"p-error"},x1={class:"field"},S1={for:"newType"},J1={class:"field"},U1={for:"newValue"},H1={key:0,class:"p-error"};function Q1(l,t,a,i,o,s){const n=e.resolveComponent("PrimeInputText"),c=e.resolveComponent("PrimeDropdown"),r=e.resolveComponent("PrimeButton"),m=e.resolveComponent("PrimeDialog");return e.openBlock(),e.createBlock(m,{header:l.$t("config.dialog.addTitle"),visible:a.visible,"onUpdate:visible":t[4]||(t[4]=h=>l.$emit("update:visible",h)),modal:"",class:"dialog-add-pair"},{footer:e.withCtx(()=>[e.createVNode(r,{label:l.$t("config.buttons.cancel"),icon:"pi pi-times",class:"p-button-text",onClick:t[3]||(t[3]=h=>l.$emit("update:visible",!1))},null,8,["label"]),e.createVNode(r,{label:l.$t("config.buttons.add"),icon:"pi pi-check",onClick:s.submit,autofocus:""},null,8,["label","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("div",C1,[e.createElementVNode("label",F1,e.toDisplayString(l.$t("config.dialog.keyLabel")),1),e.createVNode(n,{id:"newKey",modelValue:o.newKey,"onUpdate:modelValue":t[0]||(t[0]=h=>o.newKey=h),class:e.normalizeClass(["w-full",{"p-invalid":o.errors.key}])},null,8,["modelValue","class"]),o.errors.key?(e.openBlock(),e.createElementBlock("small",V1,e.toDisplayString(o.errors.key),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",x1,[e.createElementVNode("label",S1,e.toDisplayString(l.$t("config.dialog.typeLabel")),1),e.createVNode(c,{id:"newType",modelValue:o.newType,"onUpdate:modelValue":t[1]||(t[1]=h=>o.newType=h),options:o.availableTypes,class:"w-full"},null,8,["modelValue","options"])]),e.createElementVNode("div",J1,[e.createElementVNode("label",U1,e.toDisplayString(l.$t("config.dialog.valueLabel")),1),e.createVNode(n,{id:"newValue",modelValue:o.newValue,"onUpdate:modelValue":t[2]||(t[2]=h=>o.newValue=h),class:e.normalizeClass(["w-full",{"p-invalid":o.errors.value}])},null,8,["modelValue","class"]),o.errors.value?(e.openBlock(),e.createElementBlock("small",H1,e.toDisplayString(o.errors.value),1)):e.createCommentVNode("",!0)])]),_:1},8,["header","visible"])}const qn=H(k1,[["render",Q1]]),B1={class:"array-editor"},E1=["aria-label"],P1={key:1,class:"object-item"},_1={key:0},K1={key:0},$1={key:1,class:"object-summary"},q1={class:"summary-item"},eu={key:0,class:"summary-item"},tu={key:1,class:"summary-item"},lu={class:"summary-item"},au={key:1},ou={class:"action-buttons"},Wa=H({__name:"ArrayEditor",props:{modelValue:{type:Array,required:!0},isMetadata:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(l,{emit:t}){const a=l,i=t,o=e.ref(JSON.parse(JSON.stringify(a.modelValue))),s=["text","datetime","boolean","double","int","date"],n=["popup","details","advancedSearch"],c=e.ref(null),r={id:"",title:"",labelId:"",display:[],input:"text",readOnly:!1,modelAspect:"",modelType:""};e.watch(()=>a.modelValue,I=>{o.value=JSON.parse(JSON.stringify(I))},{deep:!0});const m=I=>{const D=typeof I;return D==="string"||D==="number"||D==="boolean"},h=I=>typeof I=="object"&&I!==null,u=(I,D)=>{o.value[I]=D,i("update:modelValue",o.value)},b=(I,D,K)=>{o.value[I][D]=K,i("update:modelValue",o.value)},y=I=>{o.value.splice(I,1),i("update:modelValue",o.value)},g=()=>{if(a.isMetadata){const I={...r,order:o.value.length+1};o.value.push(I)}else if(o.value.length>0){const I=o.value[0],D=typeof I;D==="string"?o.value.push(""):D==="number"?o.value.push(0):D==="object"&&I!==null?o.value.push(JSON.parse(JSON.stringify(I))):o.value.push("")}else o.value.push("");i("update:modelValue",o.value)},X=I=>{const D=o.value[I];o.value[I]={...r,...D},c.value=I},M=()=>{c.value=null,i("update:modelValue",o.value)},A=I=>{const D=JSON.parse(JSON.stringify(o.value[I]));o.value.splice(I+1,0,D),o.value.forEach((K,x)=>{h(K)&&Object.prototype.hasOwnProperty.call(K,"order")&&(K.order=x+1)}),i("update:modelValue",o.value)},F=(I,D)=>{const K=I+D;if(K<0||K>=o.value.length)return;const x=o.value.splice(I,1)[0];o.value.splice(K,0,x),o.value.forEach((C,f)=>{h(C)&&Object.prototype.hasOwnProperty.call(C,"order")&&(C.order=f+1)}),i("update:modelValue",o.value)},U=()=>{o.value.forEach((I,D)=>{h(I)&&Object.prototype.hasOwnProperty.call(I,"order")&&(I.order=D+1)}),i("update:modelValue",o.value)},j=I=>{if(!a.isMetadata)return"transparent";const D=I.modelAspect||I.modelType;if(!D)return"transparent";let K=0;for(let C=0;C<D.length;C++)K=D.charCodeAt(C)+((K<<5)-K);return`hsl(${K%360}, 70%, 90%)`};return(I,D)=>(e.openBlock(),e.createElementBlock("div",B1,[e.createVNode(e.unref(Ko.VueDraggableNext),{modelValue:o.value,"onUpdate:modelValue":D[1]||(D[1]=K=>o.value=K),"ghost-class":"ghost",handle:".drag-handle","item-key":"index",onEnd:U},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(K,x)=>(e.openBlock(),e.createElementBlock("div",{key:x,class:"array-item",style:e.normalizeStyle({backgroundColor:j(K)})},[e.createElementVNode("button",{class:"drag-handle","aria-label":I.$t("config.arrayEditor.reorder")},[...D[2]||(D[2]=[e.createElementVNode("i",{class:"ri-draggable","aria-hidden":"true"},null,-1)])],8,E1),m(K)?(e.openBlock(),e.createBlock(e.unref(Me),{key:0,"model-value":K,"onUpdate:modelValue":C=>u(x,C),class:"p-inputtext-sm"},null,8,["model-value","onUpdate:modelValue"])):(e.openBlock(),e.createElementBlock("div",P1,[l.isMetadata?(e.openBlock(),e.createElementBlock("div",_1,[c.value===x?(e.openBlock(),e.createElementBlock("div",K1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(r),C=>(e.openBlock(),e.createElementBlock("div",{key:C,class:"object-property"},[e.createElementVNode("label",null,e.toDisplayString(C),1),C==="input"?(e.openBlock(),e.createBlock(e.unref(gt),{key:0,"model-value":K[C],"onUpdate:modelValue":f=>b(x,C,f),options:s,class:"p-inputtext-sm"},null,8,["model-value","onUpdate:modelValue"])):C==="display"?(e.openBlock(),e.createBlock(e.unref(Vc),{key:1,"model-value":K[C],"onUpdate:modelValue":f=>b(x,C,f),options:n,class:"p-inputtext-sm"},null,8,["model-value","onUpdate:modelValue"])):C==="readOnly"?(e.openBlock(),e.createBlock(e.unref(Ca),{key:2,"model-value":K[C],"onUpdate:modelValue":f=>b(x,C,f)},null,8,["model-value","onUpdate:modelValue"])):(e.openBlock(),e.createBlock(e.unref(Me),{key:3,"model-value":K[C],"onUpdate:modelValue":f=>b(x,C,f),class:"p-inputtext-sm"},null,8,["model-value","onUpdate:modelValue"]))]))),128))])):(e.openBlock(),e.createElementBlock("div",$1,[e.createElementVNode("div",q1,[D[3]||(D[3]=e.createElementVNode("strong",null,"ID:",-1)),e.createTextVNode(" "+e.toDisplayString(K.id),1)]),K.title?(e.openBlock(),e.createElementBlock("div",eu,[D[4]||(D[4]=e.createElementVNode("strong",null,"Title:",-1)),e.createTextVNode(" "+e.toDisplayString(K.title),1)])):e.createCommentVNode("",!0),K.labelId?(e.openBlock(),e.createElementBlock("div",tu,[D[5]||(D[5]=e.createElementVNode("strong",null,"Label ID:",-1)),e.createTextVNode(" "+e.toDisplayString(K.labelId),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",lu,[D[6]||(D[6]=e.createElementVNode("strong",null,"Input:",-1)),e.createTextVNode(" "+e.toDisplayString(K.input),1)])]))])):(e.openBlock(),e.createElementBlock("div",au,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(K,(C,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"object-property"},[e.createElementVNode("label",null,e.toDisplayString(f),1),e.createVNode(e.unref(Me),{"model-value":C,"onUpdate:modelValue":R=>b(x,f,R),class:"p-inputtext-sm"},null,8,["model-value","onUpdate:modelValue"])]))),128))]))])),e.createElementVNode("div",ou,[l.isMetadata&&c.value!==x?(e.openBlock(),e.createBlock(e.unref(w),{key:0,icon:"ri-pencil-line","aria-label":I.$t("modify"),class:"p-button-secondary p-button-sm",onClick:C=>X(x)},null,8,["aria-label","onClick"])):e.createCommentVNode("",!0),l.isMetadata&&c.value===x?(e.openBlock(),e.createBlock(e.unref(w),{key:1,icon:"ri-check-line","aria-label":I.$t("save"),class:"p-button-success p-button-sm",onClick:D[0]||(D[0]=C=>M())},null,8,["aria-label"])):e.createCommentVNode("",!0),l.isMetadata?(e.openBlock(),e.createBlock(e.unref(w),{key:2,icon:"ri-arrow-up-line","aria-label":I.$t("moveUp"),class:"p-button-secondary p-button-sm",onClick:C=>F(x,-1),disabled:x===0},null,8,["aria-label","onClick","disabled"])):e.createCommentVNode("",!0),l.isMetadata?(e.openBlock(),e.createBlock(e.unref(w),{key:3,icon:"ri-arrow-down-line","aria-label":I.$t("moveDown"),class:"p-button-secondary p-button-sm",onClick:C=>F(x,1),disabled:x===o.value.length-1},null,8,["aria-label","onClick","disabled"])):e.createCommentVNode("",!0),l.isMetadata?(e.openBlock(),e.createBlock(e.unref(w),{key:4,icon:"ri-file-copy-line","aria-label":I.$t("duplicate"),class:"p-button-secondary p-button-sm",onClick:C=>A(x)},null,8,["aria-label","onClick"])):e.createCommentVNode("",!0),e.createVNode(e.unref(w),{icon:"ri-delete-bin-line","aria-label":I.$t("delete"),class:"p-button-danger p-button-sm",onClick:C=>y(x)},null,8,["aria-label","onClick"])])],4))),128))]),_:1},8,["modelValue"]),e.createVNode(e.unref(w),{label:I.$t("config.arrayEditor.addItem"),icon:"ri-add-line",class:"p-button-sm p-button-secondary mt-2",onClick:g},null,8,["label"])]))}},[["__scopeId","data-v-63991436"]]),su={class:"config-cards-container"},iu={class:"card-title-wrapper"},nu={class:"type-badge ml-2"},cu={class:"title-buttons"},ru={key:0,class:"description"},du={key:1,class:"undefined-container"},bu={class:"help-text"},mu={key:2,class:"editor-container"},pu={key:3},ec=H({__name:"ConfigDatatable",props:{configData:{type:Array,required:!0},loading:{type:Boolean,default:!1},descriptions:{type:Object,default:()=>({})}},emits:["update:config"],setup(l,{emit:t}){const a=l,i=t,o=e.ref(a.configData.reduce((h,u)=>(u.type==="array"&&(h[u.key]=!1),h),{})),s=h=>{o.value[h]=!o.value[h]},n=(h,u)=>{const b=a.configData.map(y=>y.key===h?{...y,value:u}:y);i("update:config",b)},c=h=>{const u=a.configData.map(b=>b.key===h?{...b,isDefined:!0}:b);i("update:config",u)},r=h=>{const u=a.configData.map(b=>{if(b.key===h){const y=a.descriptions[h]?.default;return{...b,isDefined:!1,value:y}}return b});i("update:config",u)},m=e.computed(()=>[...a.configData].sort((h,u)=>h.key.localeCompare(u.key)));return(h,u)=>(e.openBlock(),e.createElementBlock("div",su,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,b=>(e.openBlock(),e.createBlock(e.unref(_o),{key:b.key,class:"config-card"},{title:e.withCtx(()=>[e.createElementVNode("div",iu,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(b.key)+" ",1),e.createElementVNode("small",nu,e.toDisplayString(h.$t(`config.types.${b.type}`)),1)]),e.createElementVNode("div",cu,[b.type==="array"&&b.isDefined?(e.openBlock(),e.createBlock(e.unref(w),{key:0,icon:o.value[b.key]?"ri-close-large-line":"ri-add-large-line",class:"p-button-text p-button","aria-label":o.value[b.key]?h.$t("config.buttons.collapse"):h.$t("config.buttons.expand"),onClick:y=>s(b.key)},null,8,["icon","aria-label","onClick"])):e.createCommentVNode("",!0),b.isDefined?(e.openBlock(),e.createBlock(e.unref(w),{key:1,icon:"ri-delete-bin-line",severity:"danger","aria-label":h.$t("config.buttons.undefine"),class:"p-button-sm",onClick:y=>r(b.key)},null,8,["aria-label","onClick"])):e.createCommentVNode("",!0)])])]),content:e.withCtx(()=>[l.descriptions[b.key]?.descriptionKey?(e.openBlock(),e.createElementBlock("p",ru,e.toDisplayString(h.$t(l.descriptions[b.key].descriptionKey)),1)):e.createCommentVNode("",!0),b.isDefined?e.withDirectives((e.openBlock(),e.createElementBlock("div",mu,[b.type==="boolean"?(e.openBlock(),e.createBlock(e.unref(Ca),{key:0,"model-value":b.value,"onUpdate:modelValue":y=>n(b.key,y)},null,8,["model-value","onUpdate:modelValue"])):b.type==="array"?(e.openBlock(),e.createBlock(Wa,{key:1,"is-metadata":b.key==="METADATA","model-value":b.value,"onUpdate:modelValue":y=>n(b.key,y)},null,8,["is-metadata","model-value","onUpdate:modelValue"])):b.type==="string"||b.type==="number"?(e.openBlock(),e.createBlock(e.unref(Me),{key:2,"model-value":b.value,class:"w-full","onUpdate:modelValue":y=>n(b.key,y)},null,8,["model-value","onUpdate:modelValue"])):b.type==="object"?(e.openBlock(),e.createElementBlock("pre",pu,e.toDisplayString(b.value),1)):e.createCommentVNode("",!0)],512)),[[e.vShow,b.type!=="array"||o.value[b.key]]]):(e.openBlock(),e.createElementBlock("div",du,[e.createVNode(e.unref(w),{label:h.$t("config.buttons.define"),icon:"ri-add-line",class:"p-button-outlined",onClick:y=>c(b.key)},null,8,["label","onClick"]),e.createElementVNode("small",bu,e.toDisplayString(h.$t("config.notDefined")),1)]))]),_:2},1024))),128))]))}},[["__scopeId","data-v-810371d5"]]),uu={class:"config-item-editor"},Zu={class:"editor-header"},hu={class:"config-key"},yu={class:"type-badge"},Wu={key:0,class:"config-description"},gu={class:"definition-actions"},Yu={key:0,class:"undefined-container"},Nu={class:"help-text"},Xu={key:1,class:"defined-actions"},zu={key:1,class:"editor-content"},Au={key:0,class:"editor-field"},Mu={key:1,class:"editor-field"},Ou={key:2,class:"editor-field"},ju={key:3,class:"editor-field editor-field-array"},Gu={key:4,class:"editor-field"},Tu={class:"object-display"},wu={key:2,class:"default-hint"},No=H({__name:"ConfigItemEditor",props:{item:{type:Object,required:!0},description:{type:Object,default:()=>({})}},emits:["update:value","define","undefine"],setup(l,{emit:t}){const a=t,i=c=>{a("update:value",c)},o=()=>{a("define")},s=()=>{a("undefine")},n=c=>typeof c=="object"?JSON.stringify(c):String(c);return(c,r)=>(e.openBlock(),e.createElementBlock("div",uu,[e.createElementVNode("div",Zu,[e.createElementVNode("h3",hu,e.toDisplayString(l.item.key),1),e.createElementVNode("span",yu,e.toDisplayString(c.$t(`config.types.${l.item.type}`)),1)]),l.description?.descriptionKey?(e.openBlock(),e.createElementBlock("p",Wu,e.toDisplayString(c.$t(l.description.descriptionKey)),1)):e.createCommentVNode("",!0),e.createElementVNode("div",gu,[l.item.isDefined?(e.openBlock(),e.createElementBlock("div",Xu,[e.createVNode(e.unref(w),{label:c.$t("config.buttons.undefine"),icon:"ri-delete-bin-line",severity:"danger",class:"p-button-outlined p-button-sm",onClick:s},null,8,["label"])])):(e.openBlock(),e.createElementBlock("div",Yu,[e.createVNode(e.unref(w),{label:c.$t("config.buttons.define"),icon:"ri-add-line",class:"p-button-outlined",onClick:o},null,8,["label"]),e.createElementVNode("small",Nu,e.toDisplayString(c.$t("config.notDefined")),1)]))]),l.item.isDefined?(e.openBlock(),e.createElementBlock("div",zu,[l.item.type==="boolean"?(e.openBlock(),e.createElementBlock("div",Au,[e.createElementVNode("label",null,e.toDisplayString(c.$t("config.table.valueHeader")),1),e.createVNode(e.unref(Ca),{"model-value":l.item.value,"onUpdate:modelValue":i},null,8,["model-value"])])):l.item.type==="string"?(e.openBlock(),e.createElementBlock("div",Mu,[e.createElementVNode("label",null,e.toDisplayString(c.$t("config.table.valueHeader")),1),e.createVNode(e.unref(Me),{"model-value":l.item.value,class:"w-full","onUpdate:modelValue":i},null,8,["model-value"])])):l.item.type==="number"?(e.openBlock(),e.createElementBlock("div",Ou,[e.createElementVNode("label",null,e.toDisplayString(c.$t("config.table.valueHeader")),1),e.createVNode(e.unref(pl),{"model-value":l.item.value,class:"w-full","onUpdate:modelValue":i},null,8,["model-value"])])):l.item.type==="array"?(e.openBlock(),e.createElementBlock("div",ju,[e.createElementVNode("label",null,e.toDisplayString(c.$t("config.table.valueHeader")),1),e.createVNode(Wa,{"is-metadata":l.item.key==="METADATA","model-value":l.item.value,"onUpdate:modelValue":i},null,8,["is-metadata","model-value"])])):l.item.type==="object"?(e.openBlock(),e.createElementBlock("div",Gu,[e.createElementVNode("label",null,e.toDisplayString(c.$t("config.table.valueHeader")),1),e.createElementVNode("pre",Tu,e.toDisplayString(JSON.stringify(l.item.value,null,2)),1)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.description?.default!==void 0?(e.openBlock(),e.createElementBlock("div",wu,[r[0]||(r[0]=e.createElementVNode("i",{class:"ri-information-line","aria-hidden":"true"},null,-1)),e.createElementVNode("span",null,e.toDisplayString(c.$t("config.splitView.defaultValue"))+": ",1),e.createElementVNode("code",null,e.toDisplayString(n(l.description.default)),1)])):e.createCommentVNode("",!0)]))}},[["__scopeId","data-v-d0939289"]]),Iu={class:"config-split-view"},fu={class:"config-list-panel"},vu={class:"filter-container"},Lu={class:"p-input-icon-left w-full"},Du={class:"config-groups"},Ru=["onClick"],ku={class:"group-label"},Cu={class:"group-count"},Fu={class:"group-items"},Vu=["onClick"],xu={class:"item-key"},Su=["title"],Ju={key:0,class:"empty-state"},Uu={class:"config-editor-panel"},Hu={key:0,class:"editor-wrapper"},Qu={key:1,class:"empty-editor"},tc=H({__name:"ConfigSplitView",props:{configData:{type:Array,required:!0},descriptions:{type:Object,default:()=>({})},loading:{type:Boolean,default:!1}},emits:["update:config"],setup(l,{emit:t}){const{t:a}=Pt.useI18n(),i=l,o=t,s=e.ref(""),n=e.ref(null),c=e.ref({}),r={display:{id:"display",label:"config.groups.display",prefixes:["THEME","APP_ROOT","SHOW_","PRIMEVUE","BREADCRUMB","EDIT_","OPEN_"]},matomo:{id:"matomo",label:"config.groups.matomo",prefixes:["MATOMO_"]},sentry:{id:"sentry",label:"config.groups.sentry",prefixes:["SENTRY_"]},chat:{id:"chat",label:"config.groups.chat",prefixes:["CHAT_","ROCKETCHAT_"]},search:{id:"search",label:"config.groups.search",prefixes:["SEARCH_"]},pagination:{id:"pagination",label:"config.groups.pagination",prefixes:["DEFAULT_ELEMENT","ROW_PER_PAGE"]},metadata:{id:"metadata",label:"config.groups.metadata",keys:["METADATA","ASPECTS","CONSTRAINTS","ALLOWED_FILE_EXTENSIONS"]},security:{id:"security",label:"config.groups.security",keys:["NEW_PASSWORD_RULES"]},other:{id:"other",label:"config.groups.other"}},m=A=>{for(const[F,U]of Object.entries(r))if(F!=="other"){if(U.keys&&U.keys.includes(A))return F;if(U.prefixes){for(const j of U.prefixes)if(A.startsWith(j))return F}}return"other"},h=e.computed(()=>{const A=s.value.toLowerCase().trim(),F={};for(const j of Object.keys(r))F[j]=[];for(const j of i.configData){if(A){const D=j.key.toLowerCase().includes(A),K=i.descriptions[j.key]?.descriptionKey,x=K?a(K).toLowerCase().includes(A):!1;if(!D&&!x)continue}const I=m(j.key);F[I].push(j)}for(const j of Object.keys(F))F[j].sort((I,D)=>I.key.localeCompare(D.key));const U=[];for(const[j,I]of Object.entries(r))F[j].length>0&&U.push({id:j,label:I.label,items:F[j]});return U}),u=e.computed(()=>n.value?i.configData.find(A=>A.key===n.value):null),b=A=>{c.value[A]=!c.value[A]},y=A=>{n.value=A},g=A=>{if(!n.value)return;const F=i.configData.map(U=>U.key===n.value?{...U,value:A}:U);o("update:config",F)},X=()=>{if(!n.value)return;const A=i.configData.map(F=>F.key===n.value?{...F,isDefined:!0}:F);o("update:config",A)},M=()=>{if(!n.value)return;const A=i.configData.map(F=>{if(F.key===n.value){const U=i.descriptions[F.key]?.default;return{...F,isDefined:!1,value:U}}return F});o("update:config",A)};return e.watch(()=>i.configData,()=>{!n.value&&i.configData.length>0&&h.value.length>0&&h.value[0].items.length>0&&(n.value=h.value[0].items[0].key)},{immediate:!0}),(A,F)=>(e.openBlock(),e.createElementBlock("div",Iu,[e.createElementVNode("div",fu,[e.createElementVNode("div",vu,[e.createElementVNode("span",Lu,[F[1]||(F[1]=e.createElementVNode("i",{class:"ri-search-line","aria-hidden":"true"},null,-1)),e.createVNode(e.unref(Me),{modelValue:s.value,"onUpdate:modelValue":F[0]||(F[0]=U=>s.value=U),placeholder:A.$t("config.splitView.filterPlaceholder"),class:"w-full"},null,8,["modelValue","placeholder"])])]),e.createElementVNode("div",Du,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,U=>(e.openBlock(),e.createElementBlock("div",{key:U.id,class:"config-group"},[e.createElementVNode("div",{class:"group-header",onClick:j=>b(U.id)},[e.createElementVNode("i",{class:e.normalizeClass(c.value[U.id]?"ri-arrow-right-s-line":"ri-arrow-down-s-line"),"aria-hidden":"true"},null,2),e.createElementVNode("span",ku,e.toDisplayString(A.$t(U.label)),1),e.createElementVNode("span",Cu,e.toDisplayString(U.items.length),1)],8,Ru),e.withDirectives(e.createElementVNode("div",Fu,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.items,j=>(e.openBlock(),e.createElementBlock("div",{key:j.key,class:e.normalizeClass(["config-list-item",{"is-selected":n.value===j.key,"is-undefined":!j.isDefined}]),onClick:I=>y(j.key)},[e.createElementVNode("span",xu,e.toDisplayString(j.key),1),j.isDefined?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("i",{key:0,class:"ri-checkbox-blank-circle-line undefined-indicator",title:A.$t("config.notDefined"),"aria-hidden":"true"},null,8,Su))],10,Vu))),128))],512),[[e.vShow,!c.value[U.id]]])]))),128)),h.value.length===0?(e.openBlock(),e.createElementBlock("div",Ju,[F[2]||(F[2]=e.createElementVNode("i",{class:"ri-search-line","aria-hidden":"true"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(A.$t("config.splitView.noResults")),1)])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Uu,[u.value?(e.openBlock(),e.createElementBlock("div",Hu,[e.createVNode(No,{item:u.value,description:l.descriptions[u.value.key],"onUpdate:value":g,onDefine:X,onUndefine:M},null,8,["item","description"])])):(e.openBlock(),e.createElementBlock("div",Qu,[F[3]||(F[3]=e.createElementVNode("i",{class:"ri-settings-3-line","aria-hidden":"true"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(A.$t("config.splitView.selectConfig")),1)]))])]))}},[["__scopeId","data-v-133e21d4"]]),Bu={name:"ConfigUpload",components:{PrimeFileUpload:aa},props:{loading:{type:Boolean,default:!1}},emits:["upload-config"],methods:{handleFileUpload(l){const t=l.files[0];if(!t)return;const a=new FileReader;a.onload=i=>{try{const o=JSON.parse(i.target.result);this.$emit("upload-config",o)}catch{this.$toast.add({severity:"error",summary:"Fichier Invalide",detail:this.$t("config.errors.invalidJsonFile"),life:4e3})}},a.onerror=i=>{console.error("handle file upload error",i)},a.readAsText(t)}}},Eu={class:"p-3"},Pu={class:"mt-0 mb-3 text-color-secondary"},_u={class:"mt-2 block"};function Ku(l,t,a,i,o,s){const n=e.resolveComponent("PrimeFileUpload");return e.openBlock(),e.createElementBlock("div",Eu,[e.createElementVNode("p",Pu,e.toDisplayString(l.$t("config.raw.uploadDescription")),1),e.createVNode(n,{mode:"basic",name:"configfile[]",accept:".json",maxFileSize:1e6,customUpload:"",onUploader:s.handleFileUpload,chooseLabel:l.$t("config.raw.uploadButton"),auto:"",loading:a.loading,class:"p-button-danger w-full"},null,8,["onUploader","chooseLabel","loading"]),e.createElementVNode("small",_u,e.toDisplayString(l.$t("config.raw.uploadWarning")),1)])}const lc=H(Bu,[["render",Ku]]),$u={name:"ListVersionConfig",components:{PrimeButton:w,PrimeCard:_o,PrimeTextarea:ul,PrimeProgressSpinner:bt},props:{currentNode:{type:Object,required:!0},versions:{type:Array,default:()=>[]},title:{type:String,default:""}},emits:["reload"],data(){return{selectedVersion:null,selectedVersionContent:"",isContentLoading:!1}},methods:{async selectVersion(l){if(!(this.selectedVersion&&this.selectedVersion.id===l.id)){this.selectedVersion=l,this.isContentLoading=!0,this.selectedVersionContent="";try{const a=await(await this.getContent(this.currentNode.id,l.id)).text(),i=JSON.parse(a);this.selectedVersionContent=JSON.stringify(i,null,2)}catch{this.selectedVersionContent=this.$t("config.versionViewer.loadError")}finally{this.isContentLoading=!1}}},download(l){this.getContent(this.currentNode.id,l.id,!1).then(t=>{const i=this.currentNode.name.split("."),o=i.pop(),s=i.join("."),n=document.createElement("a"),c=l.id.replace(".","-");n.href=URL.createObjectURL(t),n.download=`${s}_v${c}.${o}`,n.click()})},revert(l){if(!this.versions||this.versions.length===0){console.error("Le tableau des versions est vide.");return}if(this.versions[0].entry.id===l.id){this.$toast.add({severity:"warn",summary:this.$t("error"),detail:this.$t("config.versionViewer.cannotRevertLatest"),life:3e3});return}const a=this.$t("config.versionViewer.restoredVersionComment",{versionNumber:l.id});V.revertVersion(this.currentNode.id,l.id,a).then(()=>{this.$emit("reload"),this.$toast.add({severity:"success",summary:this.$t("success"),detail:this.$t("config.versionViewer.success"),life:3e3})}).catch(i=>{console.error(i),this.$toast.add({severity:"error",summary:this.$t("error"),detail:i.message||this.$t("config.versionViewer.error"),life:3e3})})},getContent(l,t){return V.getVersionContent(l,t).catch(a=>(this.$toast.add({severity:"error",summary:this.$t("error"),detail:a.message||this.$t("config.versionViewer.genericError"),life:3e3}),Promise.reject(a)))},toLocaleDateString(l){if(!l)return"";let t=new Date(l);return new Intl.DateTimeFormat("fr-FR",{dateStyle:"medium"}).format(t)},toLocaleTimeString(l){return l?new Date(l).toLocaleTimeString("fr-FR",{hour:"2-digit",minute:"2-digit",hour12:!1}):""}}},qu={key:0,class:"block text-600 font-medium mb-3"},eZ={class:"grid"},tZ={class:"col-12 md:col-5"},lZ={class:"p-0 mx-0 mt-0 mb-4 list-none version-list-container"},aZ=["onClick"],oZ={class:"w-3rem h-3rem flex align-items-center justify-content-center bg-blue-100 border-circle mr-3 flex-shrink-0"},sZ={class:"text-xl text-blue-500 font-bold"},iZ={class:"text-900 line-height-3 flex-grow-1"},nZ={class:"text-700"},cZ={key:0},rZ={class:"ml-2"},dZ={class:"col-12 md:col-7"},bZ={key:0,class:"flex justify-content-center align-items-center h-full"},mZ={key:1,class:"h-full"},pZ={key:2,class:"text-center text-color-secondary"};function uZ(l,t,a,i,o,s){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeProgressSpinner"),r=e.resolveComponent("PrimeTextarea"),m=e.resolveComponent("PrimeCard"),h=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock("div",null,[a.title?(e.openBlock(),e.createElementBlock("span",qu,e.toDisplayString(a.title.toUpperCase()),1)):e.createCommentVNode("",!0),e.createElementVNode("div",eZ,[e.createElementVNode("div",tZ,[e.createElementVNode("ul",lZ,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.versions,u=>(e.openBlock(),e.createElementBlock("li",{key:u.id,class:e.normalizeClass(["flex align-items-center py-2 border-bottom-1 surface-border version-row",{"active-version":o.selectedVersion&&o.selectedVersion.id===u.entry.id}]),onClick:b=>s.selectVersion(u.entry)},[e.createElementVNode("div",oZ,[e.createElementVNode("span",sZ,e.toDisplayString(u.entry.id),1)]),e.createElementVNode("span",iZ,[e.createTextVNode(e.toDisplayString(s.toLocaleDateString(u.entry.modifiedAt))+" "+e.toDisplayString(l.$t("at"))+" "+e.toDisplayString(s.toLocaleTimeString(u.entry.modifiedAt))+" ",1),e.createElementVNode("span",nZ,[e.createTextVNode(e.toDisplayString(l.$t("by"))+" "+e.toDisplayString(u.entry.modifiedByUser.displayName)+" ",1),t[0]||(t[0]=e.createElementVNode("br",null,null,-1)),u.entry.versionComment?(e.openBlock(),e.createElementBlock("em",cZ,e.toDisplayString(u.entry.versionComment),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",rZ,[e.withDirectives(e.createVNode(n,{type:"button",icon:"ri-download-line","aria-label":l.$t("download"),onClick:e.withModifiers(b=>s.download(u.entry),["stop"]),severity:"secondary",rounded:"",text:""},null,8,["aria-label","onClick"]),[[h,l.$t("download"),void 0,{left:!0}]]),e.withDirectives(e.createVNode(n,{type:"button",icon:"ri-history-line","aria-label":l.$t("restore"),onClick:b=>s.revert(u.entry),severity:"secondary",rounded:"",text:""},null,8,["aria-label","onClick"]),[[h,l.$t("restore"),void 0,{left:!0}]])])],10,aZ))),128))])]),e.createElementVNode("div",dZ,[e.createVNode(m,{class:"h-full"},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.$t("config.versionViewer.title")),1)]),content:e.withCtx(()=>[o.isContentLoading?(e.openBlock(),e.createElementBlock("div",bZ,[e.createVNode(c)])):o.selectedVersionContent?(e.openBlock(),e.createElementBlock("div",mZ,[e.createVNode(r,{"model-value":o.selectedVersionContent,readonly:"",class:"w-full font-mono h-25rem"},null,8,["model-value"])])):(e.openBlock(),e.createElementBlock("div",pZ,[t[1]||(t[1]=e.createElementVNode("i",{class:"ri-arrow-left-s-line ri-2x","aria-hidden":"true"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(l.$t("config.versionViewer.selectPrompt")),1)]))]),_:1})])])])}const ac=H($u,[["render",uZ],["__scopeId","data-v-593c47b8"]]),oc={id:null,property:null,negation:!1,operator:null,value:null,value_end:null},ZZ={name:"AddCriterionPopup",components:{PrimeDialog:ke,PrimeDropdown:gt,PrimeSelectButton:Zl,PrimeInputText:Me,PrimeCalendar:wa,PrimeInputNumber:pl,PrimeButton:w,PrimeDataTable:Dl,PrimeColumn:Rl},props:{visible:Boolean,properties:{type:Array,required:!0}},emits:["update:visible","add-criterion"],data(){return{criterion:{...oc},operatorOptions:{text:[{labelKey:"rechercheAvancee.exact",value:"exact"},{labelKey:"rechercheAvancee.contains",value:"contains"}],date:[{labelKey:"rechercheAvancee.isDate",value:"exact"},{labelKey:"rechercheAvancee.isDateRange",value:"range"}],datetime:[{labelKey:"rechercheAvancee.isDate",value:"exact"},{labelKey:"rechercheAvancee.isDateRange",value:"range"}],number:[{labelKey:"rechercheAvancee.isNumber",value:"exact"},{labelKey:"rechercheAvancee.isNumberRange",value:"range"}],int:[{labelKey:"rechercheAvancee.isNumber",value:"exact"},{labelKey:"rechercheAvancee.isNumberRange",value:"range"}],double:[{labelKey:"rechercheAvancee.isNumber",value:"exact"},{labelKey:"rechercheAvancee.isNumberRange",value:"range"}],boolean:[{labelKey:"rechercheAvancee.is",value:"exact"}]}}},computed:{negationOptions(){return[{label:`${this.$t("rechercheAvancee.mustContain")} (+)`,value:!1},{label:`${this.$t("rechercheAvancee.mustNotContain")} (-)`,value:!0}]},booleanOptions(){return[{label:this.$t("true"),value:!0},{label:this.$t("false"),value:!1}]},isCriterionValid(){return this.criterion.property&&this.criterion.operator&&this.criterion.value!==null&&this.criterion.value!==""},propertyType(){return this.criterion.property?this.criterion.property.input:"text"}},methods:{getOperatorsForCriterion(){const l=this.propertyType;return this.operatorOptions[l]||[]},onPropertyChange(){this.criterion.operator=null,this.criterion.value=null,this.criterion.value_end=null},addCriterion(){const l=this.getOperatorsForCriterion().find(t=>t.value===this.criterion.operator);this.$emit("add-criterion",{...this.criterion,id:Date.now(),operatorLabelKey:l?l.labelKey:this.criterion.operator}),this.criterion={...oc},this.$emit("update:visible",!1)}}},hZ={class:"p-fluid formgrid grid mt-3"},yZ={class:"field col-12"},WZ={key:0,class:"font-semibold"},gZ={key:1,class:"font-semibold"},YZ={class:"text-sm"},NZ={key:0,class:"text-gray-600"},XZ={key:1,class:"text-gray-600"},zZ={class:"field col-12 md:col-6"},AZ={class:"field col-12 md:col-6"},MZ={class:"field col-12"},OZ={class:"flex gap-2"};function jZ(l,t,a,i,o,s){const n=e.resolveComponent("PrimeColumn"),c=e.resolveComponent("PrimeDataTable"),r=e.resolveComponent("PrimeSelectButton"),m=e.resolveComponent("PrimeDropdown"),h=e.resolveComponent("PrimeInputText"),u=e.resolveComponent("PrimeCalendar"),b=e.resolveComponent("PrimeInputNumber"),y=e.resolveComponent("PrimeButton"),g=e.resolveComponent("PrimeDialog");return e.openBlock(),e.createBlock(g,{visible:a.visible,"onUpdate:visible":t[10]||(t[10]=X=>l.$emit("update:visible",X)),modal:"",header:l.$t("rechercheAvancee.addCriterionPopupTitle"),class:"w-full md:w-8"},{footer:e.withCtx(()=>[e.createVNode(y,{label:l.$t("rechercheAvancee.cancelButton"),icon:"ri-close-line",onClick:t[9]||(t[9]=X=>l.$emit("update:visible",!1)),text:""},null,8,["label"]),e.createVNode(y,{label:l.$t("rechercheAvancee.addButton"),icon:"ri-add-line",onClick:s.addCriterion,disabled:!s.isCriterionValid},null,8,["label","onClick","disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",hZ,[e.createElementVNode("div",yZ,[e.createElementVNode("label",null,e.toDisplayString(l.$t("rechercheAvancee.propertyLabel")),1),e.createVNode(c,{selection:o.criterion.property,"onUpdate:selection":t[0]||(t[0]=X=>o.criterion.property=X),value:a.properties,"selection-mode":"single",dataKey:"id",paginator:a.properties.length>12,rows:12,rowsPerPageOptions:[12,24,50],class:"p-datatable-sm",onRowSelect:s.onPropertyChange},{default:e.withCtx(()=>[e.createVNode(n,{field:"name",header:l.$t("rechercheAvancee.propertyName"),sortable:"",class:"col-property-name"},{body:e.withCtx(X=>[X.data.labelId?(e.openBlock(),e.createElementBlock("span",WZ,e.toDisplayString(l.$t(X.data.labelId)),1)):(e.openBlock(),e.createElementBlock("span",gZ,e.toDisplayString(X.data.title),1))]),_:1},8,["header"]),e.createVNode(n,{field:"name",header:l.$t("rechercheAvancee.propertyId"),sortable:"",class:"col-property-id"},{body:e.withCtx(X=>[e.createElementVNode("code",YZ,e.toDisplayString(X.data.id),1)]),_:1},8,["header"]),e.createVNode(n,{field:"modelAspect",header:l.$t("rechercheAvancee.propertyDescription"),class:"col-property-desc"},{body:e.withCtx(X=>[X.data.modelAspect?(e.openBlock(),e.createElementBlock("span",NZ,e.toDisplayString(X.data.modelAspect),1)):(e.openBlock(),e.createElementBlock("span",XZ,e.toDisplayString(X.data.modelType||""),1))]),_:1},8,["header"])]),_:1},8,["selection","value","paginator","onRowSelect"])]),e.createElementVNode("div",zZ,[e.createElementVNode("label",null,e.toDisplayString(l.$t("rechercheAvancee.conditionLabel")),1),e.createVNode(r,{modelValue:o.criterion.negation,"onUpdate:modelValue":t[1]||(t[1]=X=>o.criterion.negation=X),options:s.negationOptions,optionLabel:"label",optionValue:"value"},null,8,["modelValue","options"])]),e.createElementVNode("div",AZ,[e.createElementVNode("label",null,e.toDisplayString(l.$t("rechercheAvancee.operatorLabel")),1),e.createVNode(m,{modelValue:o.criterion.operator,"onUpdate:modelValue":t[2]||(t[2]=X=>o.criterion.operator=X),options:s.getOperatorsForCriterion(),optionLabel:X=>l.$t(X.labelKey),optionValue:"value",placeholder:l.$t("rechercheAvancee.operatorPlaceholder"),disabled:!o.criterion.property},null,8,["modelValue","options","optionLabel","placeholder","disabled"])]),e.createElementVNode("div",MZ,[e.createElementVNode("label",null,e.toDisplayString(l.$t("rechercheAvancee.valueLabel")),1),e.createElementVNode("div",OZ,[s.propertyType==="text"?(e.openBlock(),e.createBlock(h,{key:0,modelValue:o.criterion.value,"onUpdate:modelValue":t[3]||(t[3]=X=>o.criterion.value=X)},null,8,["modelValue"])):e.createCommentVNode("",!0),s.propertyType==="boolean"?(e.openBlock(),e.createBlock(r,{key:1,modelValue:o.criterion.value,"onUpdate:modelValue":t[4]||(t[4]=X=>o.criterion.value=X),options:s.booleanOptions,optionLabel:"label",optionValue:"value"},null,8,["modelValue","options"])):e.createCommentVNode("",!0),s.propertyType==="date"||s.propertyType==="datetime"?(e.openBlock(),e.createBlock(u,{key:2,modelValue:o.criterion.value,"onUpdate:modelValue":t[5]||(t[5]=X=>o.criterion.value=X),dateFormat:"yy-mm-dd",class:"w-full"},null,8,["modelValue"])):e.createCommentVNode("",!0),(s.propertyType==="date"||s.propertyType==="datetime")&&o.criterion.operator==="range"?(e.openBlock(),e.createBlock(u,{key:3,modelValue:o.criterion.value_end,"onUpdate:modelValue":t[6]||(t[6]=X=>o.criterion.value_end=X),dateFormat:"yy-mm-dd",class:"w-full"},null,8,["modelValue"])):e.createCommentVNode("",!0),["int","double","number"].includes(s.propertyType)?(e.openBlock(),e.createBlock(b,{key:4,modelValue:o.criterion.value,"onUpdate:modelValue":t[7]||(t[7]=X=>o.criterion.value=X),class:"w-full"},null,8,["modelValue"])):e.createCommentVNode("",!0),["int","double","number"].includes(s.propertyType)&&o.criterion.operator==="range"?(e.openBlock(),e.createBlock(b,{key:5,modelValue:o.criterion.value_end,"onUpdate:modelValue":t[8]||(t[8]=X=>o.criterion.value_end=X),class:"w-full"},null,8,["modelValue"])):e.createCommentVNode("",!0)])])])]),_:1},8,["visible","header"])}const ga=H(ZZ,[["render",jZ],["__scopeId","data-v-f9a9cf16"]]),Se=$t.global.t,Xl="env-config.json",Xo="savedViews.json",sc={include:["aspectNames","isFavorite","properties","allowableOperations","permissions","path","isLocked"],maxItems:500,skipCount:0};class GZ{async _getHiddenFolder(t,a=!1){const o=(await V.getHomeFolderFromUser(t)).list.entries[0].entry.properties["cm:homeFolder"];if(!o)throw new Error(Se("vuesUtilisateurs.noUserHomeFound"));let n=(await V.getChildrenWithOpts(o,sc,!1)).children.find(c=>c.aspectNames&&c.aspectNames.includes("pm:hidden"));return!n&&a&&(console.warn("No hidden folder found, creating one..."),n=(await this.createConfigFolder(o)).entry),n}async _getOrCreateViewsFile(t,a=!1){let o=(await V.getChildrenWithOpts(t,sc,!0)).children.find(s=>s.name===Xo);if(!o&&a){console.warn(`No ${Xo} file found, creating one...`);const s={name:Xo,nodeType:"cm:content"},n={personalSavedView:[],globalFavoriteView:[]},c=new Blob([JSON.stringify(n,null,2)],{type:"application/json"}),m=(await Xe.uploadFile(t,s,c)).entry;o=(await V.updateNode(m.id,{aspectNames:[...m.aspectNames||[],"pm:hidden"]})).entry}return o}async getContent(t,a,i){try{return await V.getVersionContent(t,a,i)}catch(o){throw console.error("Error getting content:",o.message),o}}async _parseFileContent(t){let a;try{const i=await this.getContent(t.id,t.properties["cm:versionLabel"],!0);a=await(s=>new Promise((n,c)=>{if(!(s instanceof Blob)){n(s);return}const r=new FileReader;r.onload=()=>n(r.result),r.onerror=m=>c(m),r.readAsText(s,"utf-8")}))(i)}catch(i){console.warn(`Could not get content for node ${t.id}, assuming empty.`,i.message),a=""}if(!a||a.trim()==="")return{personalSavedView:[],globalFavoriteView:[]};try{return JSON.parse(a)}catch(i){return console.error("Error parsing JSON content:",i),{personalSavedView:[],globalFavoriteView:[]}}}_normalizeFileContent(t){return Array.isArray(t)?{personalSavedView:t,globalFavoriteView:[]}:{personalSavedView:t?.personalSavedView||[],globalFavoriteView:t?.globalFavoriteView||[]}}async _loadViewsFileContent(){const t=Ge().person;if(!t)throw new Error(Se("vuesUtilisateurs.userNotFound"));const a=await this._getHiddenFolder(t.id,!1);if(!a)return null;const i=await this._getOrCreateViewsFile(a.id,!1);return i?this._parseFileContent(i):null}async getPersonalViews(){try{const t=await this._loadViewsFileContent();return t?t?.personalSavedView||[]:[]}catch(t){return console.error("Error loading personal views:",t.message),[]}}async getPersonalViewsAndGlobalFavorites(){try{const t=await this._loadViewsFileContent();return t?this._normalizeFileContent(t):{personalSavedView:[],globalFavoriteView:[]}}catch(t){return console.error("Error loading personal views:",t.message),{personalSavedView:[],globalFavoriteView:[]}}}async getGlobalViews(){const t=de();return Promise.resolve(t.SAVED_VIEWS_GLOBAL||[])}async createConfigFolder(t){const a={aspectNames:["pm:hidden"],nodeType:"cm:folder",name:"Configuration"};try{return await V.createNode(t,a)}catch(i){throw console.error("Error while creating the Configuration folder :",i),i}}async _savePersonalView(t){const a=Ge().person;if(!a)throw new Error(Se("vuesUtilisateurs.userNotFound"));const i=await this._getHiddenFolder(a.id,!0),o=await this._getOrCreateViewsFile(i.id,!0);let s=await this._parseFileContent(o),n=this._normalizeFileContent(s);const c=n.personalSavedView;if(c.some(h=>h.id===t.id))throw new Error(Se("vuesUtilisateurs.savedViewError.idAlreadyExists",{id:t.id}));if(c.some(h=>h.name.toLowerCase()===t.name.toLowerCase()))throw new Error(Se("vuesUtilisateurs.savedViewError.nameAlreadyExists",{id:t.name}));c.push(t),n.personalSavedView=c;const r=JSON.stringify(n,null,2),m=new Blob([r],{type:"application/json"});await V.updateContentNode(o.id,m,"MAJEURE",null)}async saveView(t){if(t.scope==="global")try{const a=await Vt.getConfig(de().INSTANCE_NAME,Xl),i=a.jsonContent.SAVED_VIEWS_GLOBAL||[];if(i.some(o=>o.id===t.id))throw new Error(Se("vuesUtilisateurs.savedViewError.idAlreadyExists",{id:t.id}));if(i.some(o=>o.name.toLowerCase()===t.name.toLowerCase()))throw new Error(Se("vuesUtilisateurs.savedViewError.nameAlreadyExists",{id:t.name}));i.push(t),a.jsonContent.SAVED_VIEWS_GLOBAL=i,await Vt.updateConfig(de().INSTANCE_NAME,Xl,a.jsonContent)}catch(a){throw console.error("Error while saving the global view :",a),a}else t.scope==="user"&&await this._savePersonalView(t)}async _updatePersonalView(t){const a=Ge().person;if(!a)throw new Error(Se("vuesUtilisateurs.userNotFoundForUpdate"));const i=await this._getHiddenFolder(a.id,!0),o=await this._getOrCreateViewsFile(i.id,!0);let s=await this._parseFileContent(o),n=this._normalizeFileContent(s);const c=n.personalSavedView;if(c.some(u=>u.id!==t.id&&u.name.toLowerCase()===t.name.toLowerCase()))throw new Error(Se("vuesUtilisateurs.savedViewError.nameAlreadyExists",{id:t.name}));const r=c.findIndex(u=>u.id===t.id);if(r===-1)throw new Error(Se("vuesUtilisateurs.savedViewError.personnalNotFound",{id:t.id}));c[r]=t,n.personalSavedView=c;const m=JSON.stringify(n,null,2),h=new Blob([m],{type:"application/json"});return await V.updateContentNode(o.id,h,"MAJEURE",null)}async updateView(t){if(t.scope==="global")try{const a=await Vt.getConfig(de().INSTANCE_NAME,Xl),i=a.jsonContent.SAVED_VIEWS_GLOBAL||[];if(i.some(s=>s.id!==t.id&&s.name.toLowerCase()===t.name.toLowerCase()))throw new Error(Se("vuesUtilisateurs.savedViewError.nameAlreadyExists",{id:t.name}));const o=i.findIndex(s=>s.id===t.id);if(o===-1)throw new Error(Se("vuesUtilisateurs.savedViewError.globalNotFound",{id:t.id}));return i[o]=t,a.jsonContent.SAVED_VIEWS_GLOBAL=i,await Vt.updateConfig(de().INSTANCE_NAME,Xl,a.jsonContent),t}catch(a){throw console.error("Error while updating the global view :",a),a}else if(t.scope==="user")return await this._updatePersonalView(t)}async _deletePersonalView(t){const a=Ge().person;if(!a)throw new Error(Se("vuesUtilisateurs.userNotFoundForDelete"));const i=await this._getHiddenFolder(a.id,!1);if(!i)throw new Error(Se("vuesUtilisateurs.configFolderNotFound"));const o=await this._getOrCreateViewsFile(i.id,!1);if(!o)throw new Error(Se("vuesUtilisateurs.configFileNotFound"));let s=await this._parseFileContent(o),n=this._normalizeFileContent(s);const c=n.personalSavedView;n.personalSavedView=c.filter(h=>h.id!==t.id);const r=JSON.stringify(n,null,2),m=new Blob([r],{type:"application/json"});await V.updateContentNode(o.id,m,"MAJEURE",null)}async deleteView(t){if(t.scope==="global"){try{const a=await Vt.getConfig(de().INSTANCE_NAME,Xl),i=a.jsonContent.SAVED_VIEWS_GLOBAL||[];a.jsonContent.SAVED_VIEWS_GLOBAL=i.filter(o=>o.id!==t.id),await Vt.updateConfig(de().INSTANCE_NAME,Xl,a.jsonContent)}catch(a){throw console.error("Error while deleting the global view :",a),a}return}else t.scope==="user"&&await this._deletePersonalView(t)}async getViewById(t,a){return t==="user"?(await this.getPersonalViews()).find(o=>o.id===a)||null:t==="global"?(await this.getGlobalViews()).find(o=>o.id===a)||null:(console.error(`Unknown view scope: ${t}`),null)}async toggleFavoriteStatus(t){if(t.scope==="global"){const a=Ge().person;if(!a)throw new Error(Se("vuesUtilisateurs.userNotFound"));const i=await this._getHiddenFolder(a.id,!0),o=await this._getOrCreateViewsFile(i.id,!0);let s=await this._parseFileContent(o),n=this._normalizeFileContent(s);const c=n.globalFavoriteView,r=c.findIndex(u=>u.id===t.id);r>-1?(c.splice(r,1),t.isFavorite=!1):(c.push({id:t.id,name:t.name}),t.isFavorite=!0),n.globalFavoriteView=c;const m=JSON.stringify(n,null,2),h=new Blob([m],{type:"application/json"});return await V.updateContentNode(o.id,h,"MAJEURE",null),t}else return t.isFavorite=!t.isFavorite,await this.updateView(t)}}const zt=new GZ,Gt=$.defineStore("userView",{state:()=>({locations:[],criteria:[],loadedView:null,favoriteViews:[],personalViews:[],globalViews:[],viewsLoading:!0}),getters:{isSavedViewLoaded(l){return l.loadedView!==null},location(l){return l.locations.length>0?{type:l.locations[0].type,value:l.locations[0].value}:{type:null,value:""}}},actions:{loadView(l){if(!l||!l.config){console.error("Invalid saved view object provided to loadView",l);return}l.config.locations?this.locations=l.config.locations:l.config.location&&l.config.location.type&&l.config.location.value?this.locations=[{id:Date.now(),type:l.config.location.type,value:l.config.location.value,negation:!1,label:l.config.location.value}]:this.locations=[],this.criteria=l.config.criteria,this.loadedView=l},setLocation(l){!l||!l.type||!l.value?this.locations=[]:this.locations=[{id:Date.now(),type:l.type,value:l.value,negation:!1,label:l.value}]},addLocation(l){this.locations.push({...l,id:l.id||Date.now()})},removeLocation(l){this.locations.splice(l,1)},setCriteria(l){this.criteria=l,this.loadedView=null},addCriterion(l){this.criteria.push(l)},removeCriterion(l){this.criteria.splice(l,1)},resetUserView(){this.locations=[],this.criteria=[],this.loadedView=null},async saveCurrentView(l){try{await zt.saveView(l),this.loadView(l)}catch(t){throw console.error("Error saving the current view:",t),t}},async updateCurrentView(l){try{const t=await zt.updateView(l);this.loadView(t.entry||t)}catch(t){throw console.error("Error updating the current view:",t),t}},async deleteCurrentView(){if(!this.loadedView)throw new Error("No view loaded to delete.");try{await zt.deleteView(this.loadedView),this.resetUserView()}catch(l){throw console.error("Error deleting the current view:",l),l}},async toggleViewFavorite(l){if(!l||!l.id)throw new Error("Invalid view provided to toggleFavorite action.");try{await zt.toggleFavoriteStatus(l),await this.fetchFavoriteViews()}catch(t){throw console.error("Error toggling favorite status in store:",t),t}},async fetchFavoriteViews(){this.viewsLoading=!0;try{const[l,t,a]=await Promise.all([zt.getPersonalViews(),zt.getGlobalViews(),zt.getPersonalViewsAndGlobalFavorites()]),i=a?.globalFavoriteView||[],o=(l||[]).filter(c=>c.isFavorite),s=(t||[]).filter(c=>i.some(r=>r.id===c.id));this.personalViews=l,this.globalViews=t;const n=c=>({label:c.name,to:`/vues/${c.scope}/${c.id}`});this.favoriteViews=[...o.map(n),...s.map(n)]}catch(l){console.error("Error fetching favorite views:",l),this.favoriteViews=[]}finally{this.viewsLoading=!1}},async fetchSavedViews(){this.viewsLoading=!0;try{const l=await Promise.allSettled([zt.getPersonalViews(),zt.getGlobalViews()]);l[0].status==="fulfilled"&&(this.personalViews=l[0].value),l[1].status==="fulfilled"&&(this.globalViews=l[1].value)}catch(l){console.error("Error fetching views:",l)}finally{this.viewsLoading=!1}}}}),Ya=$.defineStore({id:"SearchStore",state:()=>({language:"afts",userQuery:"",aftsQuery:"",fullQuery:"",paging:{maxItems:"15",skipCount:"0"},include:["properties","allowableOperations","permissions","path"],sort:null,defaultSort:[{type:"FIELD",field:"score",ascending:!1}],spellcheck:null,filterQueries:[],facetQueries:[],facets:[],fields:[],context:null,entries:[],pagination:{},isExactSearchActivated:!1}),getters:{facetFields(l){return{facetFields:l.facets}}},actions:{setIsExactSearchActivated(l){this.isExactSearchActivated=l},reset(){const l=de();this.language="afts",this.userQuery="",this.fullQuery="",this.filterQueries=[...l.SEARCH_BASE_FILTER_QUERIES],this.facetQueries=[...l.SEARCH_FACET_QUERIES],this.facets=[...l.SEARCH_FACET],this.fields=[],this.context=null,this.entries=[],this.pagination={}},defineUserQuery(l){const t=de();let a=null;this.isExactSearchActivated?a=t.SEARCH_USER_QUERY.replaceAll("*","").replaceAll("%s",l):(a=t.SEARCH_USER_QUERY.replaceAll("%s",l),a=a.replaceAll("**","*")),this.language="afts",this.userQuery=l;let i=this.fields.map(o=>`(${o.query})`);this.fullQuery=[a,...i].join(" AND ")},queryStore(l,t,a=null){if(!l)return Promise.resolve();this.paging.skipCount=t?t*15:0,a?(this.fullQuery=a,this.userQuery=l):this.defineUserQuery(l);const i=a?[]:[...this.filterQueries];i.some(s=>s.query==="-ASPECT:'pm:hidden'")||i.push({query:"-ASPECT:'pm:hidden'"});let o={query:{language:this.language,query:this.fullQuery},include:this.include,paging:this.paging,filterQueries:i.map(s=>({query:s.query})),facetQueries:this.facetQueries,facetFields:{facets:this.facets.map(s=>({field:s.field,mincount:s.mincount,label:s.label}))},sort:this.sort||this.defaultSort,facetFormat:"V2"};return mt.search(o).then(s=>{this.context=s.list.context,t>0?this.entries=[...this.entries,...s.list.entries]:this.entries=s.list.entries,this.pagination=s.list.pagination})},searchForExport(l){let t={...this.paging};t.maxItems=l;const a=[...this.filterQueries];a.some(o=>o.query==="-ASPECT:'pm:hidden'")||a.push({query:"-ASPECT:'pm:hidden'"});let i={query:{language:this.language,query:this.fullQuery},include:this.include,paging:t,filterQueries:a.map(o=>({query:o.query})),facetQueries:this.facetQueries,facetFields:{facets:this.facets.map(o=>({field:o.field,mincount:o.mincount,label:o.label}))},sort:this.sort||this.defaultSort,facetFormat:"V2"};return mt.search(i).then(o=>o)},addSortField(l){this.sort=l},removeSortField(){this.sort=null},addFilterQuery(l){return l.query?this.filterQueries.find(t=>t.query===l.query)?!1:(this.filterQueries.push({query:l.query,label:l.label}),!0):!1},removeFilterQuery(l){this.filterQueries=this.filterQueries.filter(t=>l.query.startsWith("(SITE:")&&t.label&&(t.label.startsWith("Dossier :")||t.label.startsWith("Folder :"))?!1:t.query!==l.query)},addField(l){return this.fields.find(t=>t.query===l.query)?!1:(this.fields.push({query:l.query,label:l.label}),!0)},removeField(l){this.fields=this.fields.filter(t=>t.query!==l.query)}}}),TZ={name:"ExactSearch",components:{PrimeToggleButton:xc},props:{disabled:{type:Boolean,default:!1}},watch:{disabled(l){l&&this.exactSearch&&(this.exactSearch=!1)}},emits:["change-exact-search-settings"],computed:{...$.mapState(Ya,["isExactSearchActivated"]),exactSearch:{get(){return this.isExactSearchActivated},set(l){this.setIsExactSearchActivated(l),this.$emit("change-exact-search-settings",l)}}},methods:{...$.mapActions(Ya,["setIsExactSearchActivated"])}},wZ={id:"exactSearch",class:"flex gap-3 p-3 rounded-2xl"},IZ={class:"text-gray-700 font-medium align-content-center"};function fZ(l,t,a,i,o,s){const n=e.resolveComponent("PrimeToggleButton");return e.openBlock(),e.createElementBlock("div",wZ,[e.createElementVNode("span",IZ,e.toDisplayString(l.$t("exactSearch")),1),e.createVNode(n,{modelValue:s.exactSearch,"onUpdate:modelValue":t[0]||(t[0]=c=>s.exactSearch=c),binary:"",onLabel:l.$t("enabled"),offLabel:l.$t("disabled"),class:"rounded-xl",disabled:a.disabled},null,8,["modelValue","onLabel","offLabel","disabled"])])}const zo=H(TZ,[["render",fZ]]),vZ={name:"UserViewsFavoritesPanel",components:{PrimeDropdown:gt},data(){return{selectedPersonalSearch:null,selectedGlobalSearch:null}},mounted(){this.fetchSavedViews()},computed:{...$.mapState(Gt,{loadedView:"loadedView",personalViews:"personalViews",globalViews:"globalViews",loading:"viewsLoading"}),hasGroupedSearches(){return this.personalViews.length>0||this.globalViews.length>0}},emits:["load-view"],methods:{...$.mapActions(Gt,["fetchSavedViews"]),onDropdownChange(l){l.value&&(this.selectView(l.value),this.$nextTick(()=>{this.selectedPersonalSearch=null,this.selectedGlobalSearch=null}))},selectView(l){this.$emit("load-view",l)}}},LZ={key:0,class:"p-1 flex align-items-center text-center mb-3 border-1 border-round border-blue-200 bg-blue-50 text-blue-700"},DZ={class:"mr-2"},RZ={class:"font-bold overflow-hidden text-overflow-ellipsis multi-line-ellipsis max-w-25rem"},kZ={key:1,class:"text-center p-3"},CZ={key:2,class:"text-center text-gray-500 p-3"},FZ={key:3},VZ={class:"flex flex-column gap-4"},xZ={key:0,class:"flex flex-column gap-2"},SZ={for:"personal-searches-dropdown"},JZ={class:"flex flex-column align-items-start w-30rem overflow-hidden"},UZ={class:"font-bold"},HZ={key:0,class:"text-color-secondary w-full overflow-hidden text-overflow-ellipsis white-space-nowrap block"},QZ={key:1,class:"flex flex-column gap-2"},BZ={for:"global-searches-dropdown"},EZ={class:"flex flex-column align-items-start w-30rem overflow-hidden"},PZ={class:"font-bold"},_Z={key:0,class:"text-color-secondary w-full overflow-hidden text-overflow-ellipsis white-space-nowrap block"};function KZ(l,t,a,i,o,s){const n=e.resolveComponent("PrimeDropdown"),c=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock(e.Fragment,null,[l.loadedView?(e.openBlock(),e.createElementBlock("div",LZ,[e.createElementVNode("span",DZ,e.toDisplayString(l.$t("vuesFavorites.loadedViewMessage")),1),e.withDirectives((e.openBlock(),e.createElementBlock("span",RZ,[e.createTextVNode(e.toDisplayString(l.loadedView.name),1)])),[[c,l.loadedView.name]])])):e.createCommentVNode("",!0),l.loading?(e.openBlock(),e.createElementBlock("div",kZ,[...t[2]||(t[2]=[e.createElementVNode("i",{class:"pi pi-spin pi-spinner text-4xl"},null,-1)])])):s.hasGroupedSearches?(e.openBlock(),e.createElementBlock("div",FZ,[e.createElementVNode("div",VZ,[l.personalViews.length>0?(e.openBlock(),e.createElementBlock("div",xZ,[e.createElementVNode("label",SZ,e.toDisplayString(l.$t("vuesFavorites.personalViews")),1),e.createVNode(n,{id:"personal-searches-dropdown",modelValue:o.selectedPersonalSearch,"onUpdate:modelValue":t[0]||(t[0]=r=>o.selectedPersonalSearch=r),options:l.personalViews,optionLabel:"name",placeholder:l.$t("vuesFavorites.selectPersonalView"),onChange:s.onDropdownChange,filter:"",filterBy:["name","description"],filterPlaceholder:l.$t("vuesFavorites.filterSavedViews")},{option:e.withCtx(r=>[e.createElementVNode("div",JZ,[e.createElementVNode("div",UZ,e.toDisplayString(r.option.name),1),r.option.description?e.withDirectives((e.openBlock(),e.createElementBlock("small",HZ,[e.createTextVNode(e.toDisplayString(r.option.description),1)])),[[c,r.option.description,void 0,{left:!0}]]):e.createCommentVNode("",!0)])]),_:1},8,["modelValue","options","placeholder","onChange","filterPlaceholder"])])):e.createCommentVNode("",!0),l.globalViews.length>0?(e.openBlock(),e.createElementBlock("div",QZ,[e.createElementVNode("label",BZ,e.toDisplayString(l.$t("vuesFavorites.globalViews")),1),e.createVNode(n,{id:"global-searches-dropdown",modelValue:o.selectedGlobalSearch,"onUpdate:modelValue":t[1]||(t[1]=r=>o.selectedGlobalSearch=r),options:l.globalViews,optionLabel:"name",placeholder:l.$t("vuesFavorites.selectGlobalView"),onChange:s.onDropdownChange,filter:"",filterBy:["name","description"],filterPlaceholder:l.$t("vuesFavorites.filterSavedViews")},{option:e.withCtx(r=>[e.createElementVNode("div",EZ,[e.createElementVNode("div",PZ,e.toDisplayString(r.option.name),1),r.option.description?e.withDirectives((e.openBlock(),e.createElementBlock("small",_Z,[e.createTextVNode(e.toDisplayString(r.option.description),1)])),[[c,r.option.description,void 0,{left:!0}]]):e.createCommentVNode("",!0)])]),_:1},8,["modelValue","options","placeholder","onChange","filterPlaceholder"])])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",CZ,e.toDisplayString(l.$t("vuesFavorites.noSavedViews")),1))],64)}const Na=H(vZ,[["render",KZ],["__scopeId","data-v-8a7f3255"]]),$Z={name:"SaveViewPopup",components:{PrimeDialog:ke,PrimeInputText:Me,PrimeTextarea:ul,PrimeSelectButton:Zl,PrimeButton:w},props:{visible:Boolean,errorMessage:{type:String,default:null},viewData:{type:Object,default:null}},emits:["update:visible","save-view","clear-error"],data(){return{viewName:"",viewDescription:"",scope:"user"}},mounted(){this.checkPristyAdminStatus()},computed:{...$.mapState(Ge,["isPristyAdmin"]),isEditMode(){return!!this.viewData},scopeOptions(){const l=[{label:this.$t("vuesUtilisateurs.saveViewPopup.scopeUser"),value:"user"}];return this.isPristyAdmin&&l.push({label:this.$t("vuesUtilisateurs.saveViewPopup.scopeGlobal"),value:"global"}),l},isFormValid(){return!!this.viewName}},methods:{...$.mapActions(Ge,["checkPristyAdminStatus"]),save(){this.isFormValid&&this.$emit("save-view",{name:this.viewName,description:this.viewDescription,scope:this.scope})},resetForm(){this.viewName="",this.viewDescription="",this.scope="user",this.$emit("clear-error")},populateForm(){this.isEditMode&&(this.viewName=this.viewData.name,this.viewDescription=this.viewData.description||"",this.scope=this.viewData.scope)}},watch:{visible(l){l?this.populateForm():this.resetForm()}}},qZ={class:"p-fluid formgrid grid mt-3"},e3={class:"field col-12"},t3={for:"searchName"},l3={key:0,class:"p-error"},a3={key:1,class:"p-error"},o3={class:"field col-12"},s3={for:"searchDescription"},i3={key:0,class:"field col-12"};function n3(l,t,a,i,o,s){const n=e.resolveComponent("PrimeInputText"),c=e.resolveComponent("PrimeTextarea"),r=e.resolveComponent("PrimeSelectButton"),m=e.resolveComponent("PrimeButton"),h=e.resolveComponent("PrimeDialog");return e.openBlock(),e.createBlock(h,{visible:a.visible,"onUpdate:visible":t[5]||(t[5]=u=>l.$emit("update:visible",u)),modal:"",header:s.isEditMode?l.$t("vuesUtilisateurs.modifyViewPopup.title"):l.$t("vuesUtilisateurs.saveViewPopup.title"),class:"w-full md:w-6"},{footer:e.withCtx(()=>[e.createVNode(m,{label:l.$t("vuesUtilisateurs.cancelButton"),icon:"ri-close-line",onClick:t[4]||(t[4]=u=>l.$emit("update:visible",!1)),text:""},null,8,["label"]),e.createVNode(m,{label:s.isEditMode?l.$t("vuesUtilisateurs.modifyView"):l.$t("vuesUtilisateurs.saveView"),icon:"ri-save-3-line",onClick:s.save,disabled:!s.isFormValid},null,8,["label","onClick","disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",qZ,[e.createElementVNode("div",e3,[e.createElementVNode("label",t3,e.toDisplayString(l.$t("vuesUtilisateurs.saveViewPopup.nameLabel")),1),e.createVNode(n,{id:"searchName",modelValue:o.viewName,"onUpdate:modelValue":t[0]||(t[0]=u=>o.viewName=u),modelModifiers:{trim:!0},class:e.normalizeClass({"p-invalid":a.errorMessage}),onInput:t[1]||(t[1]=u=>l.$emit("clear-error"))},null,8,["modelValue","class"]),!o.viewName&&!a.errorMessage?(e.openBlock(),e.createElementBlock("small",l3,e.toDisplayString(l.$t("vuesUtilisateurs.saveViewPopup.nameRequired")),1)):e.createCommentVNode("",!0),a.errorMessage?(e.openBlock(),e.createElementBlock("small",a3,e.toDisplayString(a.errorMessage),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",o3,[e.createElementVNode("label",s3,e.toDisplayString(l.$t("vuesUtilisateurs.saveViewPopup.descriptionLabel")),1),e.createVNode(c,{id:"searchDescription",modelValue:o.viewDescription,"onUpdate:modelValue":t[2]||(t[2]=u=>o.viewDescription=u),rows:"3",autoResize:""},null,8,["modelValue"])]),l.isPristyAdmin?(e.openBlock(),e.createElementBlock("div",i3,[e.createElementVNode("label",null,e.toDisplayString(l.$t("vuesUtilisateurs.saveViewPopup.scopeLabel")),1),e.createVNode(r,{modelValue:o.scope,"onUpdate:modelValue":t[3]||(t[3]=u=>o.scope=u),options:s.scopeOptions,optionLabel:"label",optionValue:"value",class:"w-full",disabled:s.isEditMode},null,8,["modelValue","options","disabled"])])):e.createCommentVNode("",!0)])]),_:1},8,["visible","header"])}const Xa=H($Z,[["render",n3]]),c3={name:"AdvancedSearchPanel",components:{ExactSearch:zo,PrimeAccordion:$o,PrimeAccordionTab:qo,UserViewsFavoritesPanel:Na,PrimeSelectButton:Zl,PrimeInputText:Me,PrimeButton:w,AddCriterionPopup:ga,SaveViewPopup:Xa,PrimeDialog:ke,TreeExplorer:qt},emits:["change-exact-search-settings","load-view"],watch:{"location.type"(l){l||this.updateLocationValue("")}},data(){return{isAddCriterionDialogVisible:!1,saveViewDialogVisible:!1,saveViewDialogMode:"create",saveViewError:null,isDossierTreeVisible:!1,isDeleteConfirmVisible:!1}},mounted(){this.checkPristyAdminStatus()},computed:{...$.mapState(Ge,["isPristyAdmin"]),...$.mapState(Gt,["location","criteria","loadedView"]),locationModel:{get(){return this.location},set(l){this.setLocation(l)}},locationOptions(){return[{label:this.$t("vuesUtilisateurs.locationSite"),value:"Site"},{label:this.$t("folder"),value:"Folder"}]},locationPlaceholder(){return this.locationModel.type==="Site"?this.$t("vuesUtilisateurs.sitePlaceholder"):this.locationModel.type==="Folder"?this.$t("vuesUtilisateurs.folderPlaceholder"):""},hasActiveCriteria(){const l=this.location&&this.location.type&&this.location.value;return!!(this.criteria&&this.criteria.length>0||l)},isSavedViewLoaded(){return this.loadedView!==null},canManageLoadedView(){return this.isSavedViewLoaded?this.loadedView.scope==="user"?!0:this.loadedView.scope==="global"?this.isPristyAdmin:!1:!1},viewToEdit(){return this.saveViewDialogMode==="edit"?this.loadedView:null},availableProperties(){return de().METADATA.filter(t=>t.display&&t.display.includes("advancedSearch"))}},methods:{...$.mapActions(Ge,["checkPristyAdminStatus"]),...$.mapActions(Gt,["setLocation","addCriterion","removeCriterion","saveCurrentView","updateCurrentView","deleteCurrentView"]),clearSaveViewError(){this.saveViewError=null},handleDossierSelected(l){this.updateLocationValue(l.id),this.isDossierTreeVisible=!1},openSaveViewPopup(){this.saveViewDialogMode="create",this.saveViewDialogVisible=!0},modifyView(){this.saveViewDialogMode="edit",this.saveViewDialogVisible=!0},deleteView(){this.isDeleteConfirmVisible=!0},async handleDeleteConfirmation(){this.isDeleteConfirmVisible=!1;try{await this.deleteCurrentView(),this.$toast.add({severity:"success",summary:"Succès",detail:"Recherche supprimée avec succès.",life:3e3}),this.$refs.savedSearchesPanel.fetchSavedViews()}catch(l){this.$toast.add({severity:"error",summary:"Erreur",detail:l.message,life:5e3})}},async handleSaveView(l){this.clearSaveViewError();const t=this.saveViewDialogMode==="create";let a,i,o;const s={location:JSON.parse(JSON.stringify(this.location)),criteria:JSON.parse(JSON.stringify(this.criteria))};t?(a=this.saveCurrentView,o="vuesUtilisateurs.addsSavedViewSuccess",i={id:crypto.randomUUID(),name:l.name,description:l.description,scope:l.scope,config:s}):(a=this.updateCurrentView,o="vuesUtilisateurs.modifySavedViewSuccess",i={...this.loadedView,name:l.name,description:l.description,config:s});try{await a(i),this.$toast.add({severity:"success",summary:"Succès",detail:this.$t(o),life:3e3}),this.$refs.savedSearchesPanel.fetchSavedViews(),this.saveViewDialogVisible=!1}catch(n){this.$toast.add({severity:"error",summary:"Erreur",detail:n.message,life:5e3})}},handleLoadView(l){this.$emit("load-view",l)},updateLocationValue(l){let t=l;this.locationModel.type==="Folder"&&l&&!l.startsWith("workspace://")&&(t=`workspace://SpacesStore/${l}`),this.setLocation({...this.locationModel,value:t})},handleCriterionAdded(l){this.addCriterion(l)},formatCriterionValueForDisplay(l){if(l.value===null||l.value===void 0)return"";if(l.operator==="range"){const t=l.value instanceof Date?new Date(l.value).toLocaleDateString():l.value||"*",a=l.value_end instanceof Date?new Date(l.value_end).toLocaleDateString():l.value_end||"*";return`[${t} -> ${a}]`}else return l.value instanceof Date?new Date(l.value).toLocaleDateString():typeof l.value=="boolean"?this.$t(l.value?"true":"false"):`"${l.value}"`}}},r3={key:0,class:"p-2 mb-3 border-1 border-round border-blue-200 bg-blue-50 text-blue-700"},d3={class:"font-bold"},b3={class:"p-fluid formgrid grid"},m3={class:"field col-12"},p3={for:"locationType"},u3={key:0,class:"field col-12"},Z3={for:"locationValue"},h3={key:0,id:"username-help"},y3={class:"mt-4"},W3={key:0,class:"text-center text-gray-500 p-3 border-1 border-dashed border-round"},g3={key:1,class:"flex flex-column gap-2"},Y3={class:"flex-grow-1"},N3={class:"font-bold mr-1"},X3={class:"font-italic mr-1"},z3={class:"text-gray-700"},A3={key:3,class:"flex gap-2 mt-2"},M3={class:"flex align-items-center"},O3={key:0};function j3(l,t,a,i,o,s){const n=e.resolveComponent("ExactSearch"),c=e.resolveComponent("UserViewsFavoritesPanel"),r=e.resolveComponent("PrimeAccordionTab"),m=e.resolveComponent("PrimeSelectButton"),h=e.resolveComponent("PrimeInputText"),u=e.resolveComponent("PrimeButton"),b=e.resolveComponent("PrimeAccordion"),y=e.resolveComponent("AddCriterionPopup"),g=e.resolveComponent("SaveViewPopup"),X=e.resolveComponent("TreeExplorer"),M=e.resolveComponent("PrimeDialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(n,{onChangeExactSearchSettings:t[0]||(t[0]=A=>l.$emit("change-exact-search-settings",A)),disabled:s.hasActiveCriteria||s.isSavedViewLoaded},null,8,["disabled"]),e.createVNode(b,{class:"mt-4",multiple:"",activeIndex:[0]},{default:e.withCtx(()=>[e.createVNode(r,{header:l.$t("vuesFavorites.title")},{default:e.withCtx(()=>[e.createVNode(c,{ref:"savedSearchesPanel",onLoadView:s.handleLoadView},null,8,["onLoadView"])]),_:1},8,["header"]),e.createVNode(r,{header:l.$t("vuesUtilisateurs.queryBuilder")},{default:e.withCtx(()=>[s.isSavedViewLoaded?(e.openBlock(),e.createElementBlock("div",r3,[e.createTextVNode(e.toDisplayString(l.$t("vuesUtilisateurs.loadedViewMessage"))+" ",1),e.createElementVNode("span",d3,e.toDisplayString(l.loadedView.name),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",b3,[e.createElementVNode("div",m3,[e.createElementVNode("label",p3,e.toDisplayString(l.$t("vuesUtilisateurs.locationLabel")),1),e.createVNode(m,{id:"locationType",modelValue:s.locationModel.type,"onUpdate:modelValue":t[1]||(t[1]=A=>s.locationModel.type=A),options:s.locationOptions,optionLabel:"label",optionValue:"value",allowEmpty:"",class:"w-full"},null,8,["modelValue","options"])]),s.locationModel.type?(e.openBlock(),e.createElementBlock("div",u3,[e.createElementVNode("label",Z3,e.toDisplayString(l.$t("vuesUtilisateurs.valueLabel")),1),e.createVNode(h,{id:"locationValue",value:s.locationModel.value,placeholder:s.locationPlaceholder,onClick:t[2]||(t[2]=A=>s.locationModel.type==="Folder"?o.isDossierTreeVisible=!0:null),onChange:t[3]||(t[3]=A=>s.updateLocationValue(A.target.value))},null,8,["value","placeholder"]),s.locationModel.type==="Folder"?(e.openBlock(),e.createElementBlock("small",h3,"Ex: workspace://SpacesStore/{ID du dossier}")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",y3,[e.createElementVNode("h5",null,e.toDisplayString(l.$t("vuesUtilisateurs.criteriaTitle")),1),l.criteria.length===0?(e.openBlock(),e.createElementBlock("div",W3,e.toDisplayString(l.$t("vuesUtilisateurs.noCriteria")),1)):(e.openBlock(),e.createElementBlock("div",g3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.criteria,(A,F)=>(e.openBlock(),e.createElementBlock("div",{key:A.id,class:"flex align-items-center p-2 border-1 border-round border-gray-200"},[e.createElementVNode("div",Y3,[e.createElementVNode("span",N3,e.toDisplayString(l.$t(A.property.labelId)),1),e.createElementVNode("span",{class:e.normalizeClass([A.negation?"text-red-500":"text-primary","mx-1"])},e.toDisplayString(A.negation?l.$t("vuesUtilisateurs.mustNotContain"):l.$t("vuesUtilisateurs.mustContain")),3),e.createElementVNode("span",X3,e.toDisplayString(l.$t(A.operatorLabelKey)),1),e.createElementVNode("span",z3,e.toDisplayString(s.formatCriterionValueForDisplay(A)),1)]),e.createVNode(u,{icon:"ri-delete-bin-line","aria-label":l.$t("delete"),text:"",rounded:"",severity:"danger",onClick:U=>l.removeCriterion(F)},null,8,["aria-label","onClick"])]))),128))])),e.createVNode(u,{icon:"ri-add-line",label:l.$t("vuesUtilisateurs.addCriterionButton"),onClick:t[4]||(t[4]=A=>o.isAddCriterionDialogVisible=!0),class:"mt-3 w-full",outlined:""},null,8,["label"]),s.hasActiveCriteria?(e.openBlock(),e.createBlock(u,{key:2,icon:"ri-save-3-line",label:l.$t("vuesUtilisateurs.saveView"),onClick:s.openSaveViewPopup,class:"mt-3 w-full"},null,8,["label","onClick"])):e.createCommentVNode("",!0),s.canManageLoadedView?(e.openBlock(),e.createElementBlock("div",A3,[e.createVNode(u,{icon:"ri-pencil-line",label:l.$t("vuesUtilisateurs.modifyView"),onClick:s.modifyView,class:"w-full",severity:"secondary"},null,8,["label","onClick"]),e.createVNode(u,{icon:"ri-delete-bin-line",label:l.$t("vuesUtilisateurs.deleteView"),onClick:s.deleteView,class:"w-full",severity:"danger"},null,8,["label","onClick"])])):e.createCommentVNode("",!0)])]),_:1},8,["header"])]),_:1}),e.createVNode(y,{visible:o.isAddCriterionDialogVisible,"onUpdate:visible":t[5]||(t[5]=A=>o.isAddCriterionDialogVisible=A),properties:s.availableProperties,onAddCriterion:s.handleCriterionAdded},null,8,["visible","properties","onAddCriterion"]),e.createVNode(g,{visible:o.saveViewDialogVisible,"onUpdate:visible":t[6]||(t[6]=A=>o.saveViewDialogVisible=A),"view-data":s.viewToEdit,"error-message":o.saveViewError,onSaveView:s.handleSaveView,onClearError:s.clearSaveViewError},null,8,["visible","view-data","error-message","onSaveView","onClearError"]),e.createVNode(M,{visible:o.isDossierTreeVisible,"onUpdate:visible":t[7]||(t[7]=A=>o.isDossierTreeVisible=A),header:"Choisir un dossier",modal:"",class:"w-full md:w-6"},{default:e.withCtx(()=>[e.createVNode(X,{"current-node":null,showUserHome:"",onSelectNode:s.handleDossierSelected},null,8,["onSelectNode"])]),_:1},8,["visible"]),e.createVNode(M,{visible:o.isDeleteConfirmVisible,"onUpdate:visible":t[9]||(t[9]=A=>o.isDeleteConfirmVisible=A),header:"Confirmation de suppression",modal:"",class:"dialog-confirm-delete"},{footer:e.withCtx(()=>[e.createVNode(u,{label:l.$t("no"),icon:"ri-close-line",onClick:t[8]||(t[8]=A=>o.isDeleteConfirmVisible=!1),class:"p-button-text"},null,8,["label"]),e.createVNode(u,{label:l.$t("yes"),icon:"ri-check-line",onClick:s.handleDeleteConfirmation,class:"p-button-danger",autofocus:""},null,8,["label","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("div",M3,[t[10]||(t[10]=e.createElementVNode("i",{class:"ri-alert-line mr-3 text-4xl","aria-hidden":"true"},null,-1)),l.loadedView?(e.openBlock(),e.createElementBlock("span",O3,e.toDisplayString(l.$t("vuesUtilisateurs.confirmDelete",{name:l.loadedView.name})),1)):e.createCommentVNode("",!0)])]),_:1},8,["visible"])],64)}const ic=H(c3,[["render",j3]]),G3={name:"AdvancedViewPanel",components:{PrimeAccordion:$o,PrimeAccordionTab:qo,UserViewsFavoritesPanel:Na,PrimeSelectButton:Zl,PrimeInputText:Me,PrimeAutoComplete:Qo,PrimeButton:w,AddCriterionPopup:ga,SaveViewPopup:Xa,PrimeDialog:ke,TreeExplorer:qt},emits:["change-exact-search-settings","load-view","close-view"],watch:{},data(){return{isAddCriterionDialogVisible:!1,isAddLocationDialogVisible:!1,saveViewDialogVisible:!1,saveViewDialogMode:"create",saveViewError:null,isDossierTreeVisible:!1,isDeleteConfirmVisible:!1,availableSites:[],filteredSites:[],newLocation:{type:null,value:"",negation:!1,label:""},newLocationSiteInput:null}},async mounted(){this.checkPristyAdminStatus(),await this.loadSites()},computed:{...$.mapState(Ge,["isPristyAdmin"]),...$.mapState(Gt,["locations","criteria","loadedView"]),locationOptions(){return[{label:this.$t("vuesUtilisateurs.locationSite"),value:"Site"},{label:this.$t("folder"),value:"Folder"}]},negationOptions(){return[{label:this.$t("vuesUtilisateurs.includePrefix"),value:!1},{label:this.$t("vuesUtilisateurs.excludePrefix"),value:!0}]},hasActiveCriteria(){return!!(this.criteria&&this.criteria.length>0||this.locations&&this.locations.length>0)},isSavedViewLoaded(){return this.loadedView!==null},canManageLoadedView(){return this.isSavedViewLoaded?this.loadedView.scope==="user"?!0:this.loadedView.scope==="global"?this.isPristyAdmin:!1:!1},viewToEdit(){return this.saveViewDialogMode==="edit"?this.loadedView:null},availableProperties(){return de().METADATA.filter(t=>t.display&&t.display.includes("advancedSearch"))}},methods:{...$.mapActions(Ge,["checkPristyAdminStatus"]),...$.mapActions(Gt,["addLocation","removeLocation","addCriterion","removeCriterion","saveCurrentView","updateCurrentView","deleteCurrentView"]),clearSaveViewError(){this.saveViewError=null},handleDossierSelected(l){let t=l.id;t&&!t.startsWith("workspace://")&&(t=`workspace://SpacesStore/${t}`),this.newLocation.value=t,this.newLocation.label=l.name||t,this.isDossierTreeVisible=!1},openSaveViewPopup(){this.saveViewDialogMode="create",this.saveViewDialogVisible=!0},modifyView(){this.saveViewDialogMode="edit",this.saveViewDialogVisible=!0},deleteView(){this.isDeleteConfirmVisible=!0},async handleDeleteConfirmation(){this.isDeleteConfirmVisible=!1;try{await this.deleteCurrentView(),this.$toast.add({severity:"success",summary:"Succès",detail:"Recherche supprimée avec succès.",life:3e3}),this.$refs.savedSearchesPanel.fetchSavedViews()}catch(l){this.$toast.add({severity:"error",summary:"Erreur",detail:l.message,life:5e3})}},async handleSaveView(l){this.clearSaveViewError();const t=this.saveViewDialogMode==="create";let a,i,o;const s={locations:JSON.parse(JSON.stringify(this.locations)),criteria:JSON.parse(JSON.stringify(this.criteria))};t?(a=this.saveCurrentView,o="vuesUtilisateurs.addsSavedViewSuccess",i={id:crypto.randomUUID(),name:l.name,description:l.description,scope:l.scope,config:s}):(a=this.updateCurrentView,o="vuesUtilisateurs.modifySavedViewSuccess",i={...this.loadedView,name:l.name,description:l.description,config:s});try{await a(i),this.$toast.add({severity:"success",summary:"Succès",detail:this.$t(o),life:3e3}),this.$refs.savedSearchesPanel.fetchSavedViews(),this.saveViewDialogVisible=!1}catch(n){this.$toast.add({severity:"error",summary:"Erreur",detail:n.message,life:5e3})}},handleLoadView(l){this.$emit("load-view",l)},confirmAddLocation(){!this.newLocation.type||!this.newLocation.value||(this.addLocation({type:this.newLocation.type,value:this.newLocation.value,negation:this.newLocation.negation,label:this.newLocation.label||this.newLocation.value}),this.resetNewLocation(),this.isAddLocationDialogVisible=!1)},resetNewLocation(){this.newLocation={type:null,value:"",negation:!1,label:""},this.newLocationSiteInput=null},handleCriterionAdded(l){this.addCriterion(l)},formatCriterionValueForDisplay(l){if(l.value===null||l.value===void 0)return"";if(l.operator==="range"){const t=l.value instanceof Date?new Date(l.value).toLocaleDateString():l.value||"*",a=l.value_end instanceof Date?new Date(l.value_end).toLocaleDateString():l.value_end||"*";return`[${t} -> ${a}]`}else return l.value instanceof Date?new Date(l.value).toLocaleDateString():typeof l.value=="boolean"?this.$t(l.value?"true":"false"):`"${l.value}"`},async loadSites(){try{const l=await je.getWorkspaces();this.availableSites=l.map(t=>({id:t.id,title:t.title,description:t.description}))}catch(l){console.error("Error loading sites:",l),this.$toast.add({severity:"error",summary:this.$t("error"),detail:this.$t("vuesUtilisateurs.errorLoadingSites"),life:3e3})}},searchSites(l){const t=l.query.toLowerCase();t?this.filteredSites=this.availableSites.filter(a=>a.title.toLowerCase().includes(t)||a.description&&a.description.toLowerCase().includes(t)):this.filteredSites=[...this.availableSites]},handleNewLocationSiteSelect(l){const t=l.value;t&&t.id&&(this.newLocation.value=t.id,this.newLocation.label=t.title||t.id)}}},T3={key:0,class:"p-2 mb-3 border-1 border-round border-blue-200 bg-blue-50 text-blue-700"},w3={class:"font-bold"},I3={class:"mt-2 mb-3"},f3={key:0,class:"text-center text-gray-500 p-3 border-1 border-dashed border-round"},v3={key:1,class:"flex flex-column gap-2"},L3={class:"font-bold mr-1"},D3={class:"text-gray-700 flex-grow-1"},R3={class:"mt-4"},k3={key:0,class:"text-center text-gray-500 p-3 border-1 border-dashed border-round"},C3={key:1,class:"flex flex-column gap-2"},F3={class:"flex-grow-1"},V3={class:"font-bold mr-1"},x3={class:"font-italic mr-1"},S3={class:"text-gray-700"},J3={key:3,class:"flex gap-2 mt-2"},U3={class:"p-fluid formgrid grid"},H3={class:"field col-12"},Q3={class:"field col-12"},B3={key:0,class:"field col-12"},E3={class:"flex align-items-center"},P3={key:0};function _3(l,t,a,i,o,s){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("UserViewsFavoritesPanel"),r=e.resolveComponent("PrimeAccordionTab"),m=e.resolveComponent("PrimeAccordion"),h=e.resolveComponent("AddCriterionPopup"),u=e.resolveComponent("SaveViewPopup"),b=e.resolveComponent("PrimeSelectButton"),y=e.resolveComponent("PrimeAutoComplete"),g=e.resolveComponent("PrimeInputText"),X=e.resolveComponent("PrimeDialog"),M=e.resolveComponent("TreeExplorer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[s.isSavedViewLoaded?(e.openBlock(),e.createBlock(n,{key:0,icon:"ri-close-line",label:l.$t("vuesUtilisateurs.closeView"),severity:"danger",class:"mr-2 mb-1",onClick:t[0]||(t[0]=A=>l.$emit("close-view")),text:"",raised:""},null,8,["label"])):e.createCommentVNode("",!0),e.createVNode(m,{class:"mt-4",multiple:"",activeIndex:[1]},{default:e.withCtx(()=>[e.createVNode(r,{header:l.$t("vuesFavorites.title")},{default:e.withCtx(()=>[e.createVNode(c,{ref:"savedSearchesPanel",onLoadView:s.handleLoadView},null,8,["onLoadView"])]),_:1},8,["header"]),e.createVNode(r,{header:l.$t("vuesUtilisateurs.queryBuilder")},{default:e.withCtx(()=>[s.isSavedViewLoaded?(e.openBlock(),e.createElementBlock("div",T3,[e.createTextVNode(e.toDisplayString(l.$t("vuesUtilisateurs.loadedViewMessage"))+" ",1),e.createElementVNode("span",w3,e.toDisplayString(l.loadedView.name),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",I3,[e.createElementVNode("h5",null,e.toDisplayString(l.$t("vuesUtilisateurs.locationsTitle")),1),l.locations.length===0?(e.openBlock(),e.createElementBlock("div",f3,e.toDisplayString(l.$t("vuesUtilisateurs.noLocations")),1)):(e.openBlock(),e.createElementBlock("div",v3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.locations,(A,F)=>(e.openBlock(),e.createElementBlock("div",{key:A.id,class:e.normalizeClass(["flex align-items-center p-2 border-1 border-round",A.negation?"border-red-200 bg-red-50":"border-green-200 bg-green-50"])},[e.createElementVNode("span",{class:e.normalizeClass(["text-xs font-bold px-2 py-1 border-round mr-2",A.negation?"bg-red-100 text-red-700":"bg-green-100 text-green-700"])},e.toDisplayString(A.negation?l.$t("vuesUtilisateurs.excludePrefix"):l.$t("vuesUtilisateurs.includePrefix")),3),e.createElementVNode("span",L3,e.toDisplayString(A.type==="Site"?l.$t("vuesUtilisateurs.locationSite"):l.$t("folder")),1),e.createElementVNode("span",D3,e.toDisplayString(A.label),1),e.createVNode(n,{icon:"ri-delete-bin-line",text:"",rounded:"",severity:"danger","aria-label":l.$t("vuesUtilisateurs.removeLocation"),onClick:U=>l.removeLocation(F)},null,8,["aria-label","onClick"])],2))),128))])),e.createVNode(n,{icon:"ri-add-line",label:l.$t("vuesUtilisateurs.addLocationButton"),onClick:t[1]||(t[1]=A=>o.isAddLocationDialogVisible=!0),class:"mt-2 w-full",outlined:""},null,8,["label"])]),e.createElementVNode("div",R3,[e.createElementVNode("h5",null,e.toDisplayString(l.$t("vuesUtilisateurs.criteriaTitle")),1),l.criteria.length===0?(e.openBlock(),e.createElementBlock("div",k3,e.toDisplayString(l.$t("vuesUtilisateurs.noCriteria")),1)):(e.openBlock(),e.createElementBlock("div",C3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.criteria,(A,F)=>(e.openBlock(),e.createElementBlock("div",{key:A.id,class:"flex align-items-center p-2 border-1 border-round border-gray-200"},[e.createElementVNode("div",F3,[e.createElementVNode("span",V3,e.toDisplayString(l.$t(A.property.labelId)),1),e.createElementVNode("span",{class:e.normalizeClass([A.negation?"text-red-500":"text-primary","mx-1"])},e.toDisplayString(A.negation?l.$t("vuesUtilisateurs.mustNotContain"):l.$t("vuesUtilisateurs.mustContain")),3),e.createElementVNode("span",x3,e.toDisplayString(l.$t(A.operatorLabelKey)),1),e.createElementVNode("span",S3,e.toDisplayString(s.formatCriterionValueForDisplay(A)),1)]),e.createVNode(n,{icon:"ri-delete-bin-line","aria-label":l.$t("delete"),text:"",rounded:"",severity:"danger",onClick:U=>l.removeCriterion(F)},null,8,["aria-label","onClick"])]))),128))])),e.createVNode(n,{icon:"ri-add-line",label:l.$t("vuesUtilisateurs.addCriterionButton"),onClick:t[2]||(t[2]=A=>o.isAddCriterionDialogVisible=!0),class:"mt-3 w-full",outlined:""},null,8,["label"]),s.hasActiveCriteria?(e.openBlock(),e.createBlock(n,{key:2,icon:"ri-save-3-line",label:l.$t("vuesUtilisateurs.saveView"),onClick:s.openSaveViewPopup,class:"mt-3 w-full"},null,8,["label","onClick"])):e.createCommentVNode("",!0),s.canManageLoadedView?(e.openBlock(),e.createElementBlock("div",J3,[e.createVNode(n,{icon:"ri-pencil-line",label:l.$t("vuesUtilisateurs.modifyView"),onClick:s.modifyView,class:"w-full",severity:"secondary"},null,8,["label","onClick"]),e.createVNode(n,{icon:"ri-delete-bin-line",label:l.$t("vuesUtilisateurs.deleteView"),onClick:s.deleteView,class:"w-full",severity:"danger"},null,8,["label","onClick"])])):e.createCommentVNode("",!0)])]),_:1},8,["header"])]),_:1}),e.createVNode(h,{visible:o.isAddCriterionDialogVisible,"onUpdate:visible":t[3]||(t[3]=A=>o.isAddCriterionDialogVisible=A),properties:s.availableProperties,onAddCriterion:s.handleCriterionAdded},null,8,["visible","properties","onAddCriterion"]),e.createVNode(u,{visible:o.saveViewDialogVisible,"onUpdate:visible":t[4]||(t[4]=A=>o.saveViewDialogVisible=A),"view-data":s.viewToEdit,"error-message":o.saveViewError,onSaveView:s.handleSaveView,onClearError:s.clearSaveViewError},null,8,["visible","view-data","error-message","onSaveView","onClearError"]),e.createVNode(X,{visible:o.isAddLocationDialogVisible,"onUpdate:visible":t[10]||(t[10]=A=>o.isAddLocationDialogVisible=A),header:l.$t("vuesUtilisateurs.addLocationTitle"),modal:"",class:"w-full md:w-6"},{footer:e.withCtx(()=>[e.createVNode(n,{label:l.$t("vuesUtilisateurs.cancelButton"),icon:"ri-close-line",onClick:t[9]||(t[9]=A=>o.isAddLocationDialogVisible=!1),text:""},null,8,["label"]),e.createVNode(n,{label:l.$t("vuesUtilisateurs.addLocationConfirm"),icon:"ri-check-line",onClick:s.confirmAddLocation,disabled:!o.newLocation.type||!o.newLocation.value,autofocus:""},null,8,["label","onClick","disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",U3,[e.createElementVNode("div",H3,[e.createElementVNode("label",null,e.toDisplayString(l.$t("vuesUtilisateurs.conditionLabel")),1),e.createVNode(b,{modelValue:o.newLocation.negation,"onUpdate:modelValue":t[5]||(t[5]=A=>o.newLocation.negation=A),options:s.negationOptions,optionLabel:"label",optionValue:"value",class:"w-full"},null,8,["modelValue","options"])]),e.createElementVNode("div",Q3,[e.createElementVNode("label",null,e.toDisplayString(l.$t("vuesUtilisateurs.locationTypeLabel")),1),e.createVNode(b,{modelValue:o.newLocation.type,"onUpdate:modelValue":t[6]||(t[6]=A=>o.newLocation.type=A),options:s.locationOptions,optionLabel:"label",optionValue:"value",class:"w-full"},null,8,["modelValue","options"])]),o.newLocation.type?(e.openBlock(),e.createElementBlock("div",B3,[e.createElementVNode("label",null,e.toDisplayString(l.$t("vuesUtilisateurs.valueLabel")),1),o.newLocation.type==="Site"?(e.openBlock(),e.createBlock(y,{key:0,modelValue:o.newLocationSiteInput,"onUpdate:modelValue":t[7]||(t[7]=A=>o.newLocationSiteInput=A),suggestions:o.filteredSites,optionLabel:"title",onComplete:s.searchSites,onItemSelect:s.handleNewLocationSiteSelect,placeholder:l.$t("vuesUtilisateurs.sitePlaceholder"),class:"w-full",forceSelection:""},null,8,["modelValue","suggestions","onComplete","onItemSelect","placeholder"])):(e.openBlock(),e.createBlock(g,{key:1,value:o.newLocation.value,placeholder:l.$t("vuesUtilisateurs.folderPlaceholder"),onClick:t[8]||(t[8]=A=>o.isDossierTreeVisible=!0),readonly:""},null,8,["value","placeholder"]))])):e.createCommentVNode("",!0)])]),_:1},8,["visible","header"]),e.createVNode(X,{visible:o.isDossierTreeVisible,"onUpdate:visible":t[11]||(t[11]=A=>o.isDossierTreeVisible=A),header:l.$t("folder"),modal:"",class:"w-full md:w-6"},{default:e.withCtx(()=>[e.createVNode(M,{"current-node":null,showUserHome:"",onSelectNode:s.handleDossierSelected},null,8,["onSelectNode"])]),_:1},8,["visible","header"]),e.createVNode(X,{visible:o.isDeleteConfirmVisible,"onUpdate:visible":t[13]||(t[13]=A=>o.isDeleteConfirmVisible=A),header:"Confirmation de suppression",modal:"",class:"dialog-confirm-delete"},{footer:e.withCtx(()=>[e.createVNode(n,{label:l.$t("no"),icon:"ri-close-line",onClick:t[12]||(t[12]=A=>o.isDeleteConfirmVisible=!1),class:"p-button-text"},null,8,["label"]),e.createVNode(n,{label:l.$t("yes"),icon:"ri-check-line",onClick:s.handleDeleteConfirmation,class:"p-button-danger",autofocus:""},null,8,["label","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("div",E3,[t[14]||(t[14]=e.createElementVNode("i",{class:"ri-alert-line mr-3 text-4xl","aria-hidden":"true"},null,-1)),l.loadedView?(e.openBlock(),e.createElementBlock("span",P3,e.toDisplayString(l.$t("vuesUtilisateurs.confirmDelete",{name:l.loadedView.name})),1)):e.createCommentVNode("",!0)])]),_:1},8,["visible"])],64)}const nc=H(G3,[["render",_3]]),K3={name:"FavoriteViewMenu",props:{menuClass:{type:String,default:""}},emits:["menuitem-click"],computed:{...$.mapState(Gt,{model:"favoriteViews"})},methods:{...$.mapActions(Gt,["fetchFavoriteViews"]),onMenuItemClick(l){this.$emit("menuitem-click",l)}},async mounted(){await this.fetchFavoriteViews()}},$3={class:"menuItem mt-3"},q3={key:0},eh={class:"layout-menu"},th={class:"overflow-hidden text-overflow-ellipsis white-space-nowrap"};function lh(l,t,a,i,o,s){const n=e.resolveComponent("router-link"),c=e.resolveDirective("ripple"),r=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",$3,[e.createVNode(n,{class:e.normalizeClass(a.menuClass),to:"/vues"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.$t("vuesFavorites.title")),1)]),_:1},8,["class"])]),l.model.length>0?(e.openBlock(),e.createElementBlock("div",q3,[e.createElementVNode("ul",eh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.model,(m,h)=>(e.openBlock(),e.createElementBlock("li",{key:m.label||h,role:"none"},[e.withDirectives((e.openBlock(),e.createBlock(n,{"aria-label":m.label,to:m.to,class:"p-ripple flex",exact:"",role:"menuitem",onClick:u=>s.onMenuItemClick({originalEvent:u,item:m})},{default:e.withCtx(()=>[e.createElementVNode("span",th,e.toDisplayString(m.label),1)]),_:2},1032,["aria-label","to","onClick"])),[[c],[r,m.label]])]))),128))])])):e.createCommentVNode("",!0)],64)}const cc=H(K3,[["render",lh],["__scopeId","data-v-14eafe86"]]),ah={class:"p-fluid"},oh={class:"p-field mb-3"},sh={for:"filename"},ih={class:"p-field"},nh={for:"location"},ch={class:"p-inputgroup"},rh={key:0,class:"mt-3 border-1 surface-border p-2 overflow-y-auto"},dh={__name:"SaveAsPopup",props:{visible:Boolean,defaultFilename:{type:String,default:null},parentFolderNode:{type:Object,default:null}},emits:["close","save"],setup(l,{emit:t}){const{t:a}=Pt.useI18n(),i=l,o=t,s=e.ref(""),n=e.ref(null),c=e.ref(!1),r=e.ref(null),m=e.ref(""),h=()=>{s.value=i.defaultFilename||a("pdfTools.saveAs.defaultFilename"),n.value=i.parentFolderNode,r.value=i.parentFolderNode?.id,m.value=i.parentFolderNode?.name,c.value=!1},u=async y=>{if(!(!y||!y.isFolder)){if(y.name==="documentLibrary")if(r.value=y.id,y.parentId)try{const g=await V.getNode(y.parentId);m.value=g.properties["cm:title"]||g.name}catch(g){console.error("Could not fetch parent node name",g),m.value=y.name}else m.value=y.name;else r.value=y.id,m.value=y.name;c.value=!1}},b=()=>{r.value&&o("save",{filename:s.value,folderId:r.value})};return(y,g)=>(e.openBlock(),e.createBlock(e.unref(ke),{visible:l.visible,modal:"",header:y.$t("pdfTools.saveAs.title"),class:"dialog-save-as","onUpdate:visible":g[3]||(g[3]=X=>y.$emit("close")),onShow:h},{footer:e.withCtx(()=>[e.createVNode(e.unref(w),{label:y.$t("pdfTools.common.cancel"),icon:"pi pi-times",onClick:g[2]||(g[2]=X=>y.$emit("close")),class:"p-button-text"},null,8,["label"]),e.createVNode(e.unref(w),{label:y.$t("pdfTools.common.save"),icon:"pi pi-check",onClick:b,disabled:!s.value||!r.value},null,8,["label","disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",ah,[e.createElementVNode("div",oh,[e.createElementVNode("label",sh,e.toDisplayString(y.$t("pdfTools.saveAs.filenameLabel")),1),e.createVNode(e.unref(Me),{id:"filename",modelValue:s.value,"onUpdate:modelValue":g[0]||(g[0]=X=>s.value=X)},null,8,["modelValue"])]),e.createElementVNode("div",ih,[e.createElementVNode("label",nh,e.toDisplayString(y.$t("pdfTools.saveAs.folderLabel")),1),e.createElementVNode("div",ch,[e.createVNode(e.unref(Me),{id:"location",readonly:"",value:m.value},null,8,["value"]),e.createVNode(e.unref(w),{icon:c.value?"pi pi-chevron-up":"pi pi-chevron-down",label:y.$t("pdfTools.saveAs.browse"),onClick:g[1]||(g[1]=X=>c.value=!c.value)},null,8,["icon","label"])])]),c.value?(e.openBlock(),e.createElementBlock("div",rh,[e.createVNode(qt,{"current-node":n.value,"show-user-home":"","show-files":!1,onSelectNode:u},null,8,["current-node"])])):e.createCommentVNode("",!0)])]),_:1},8,["visible","header"]))}},bh={class:"pdf-tools-page"},mh={key:0},ph={key:0,class:"loading-container"},uh={key:1,class:"error-container"},Zh={key:2,class:"pdf-editor-layout"},hh={class:"pdf-tools-sidebar"},yh={class:"card"},Wh={class:"p-fluid"},gh={class:"p-field"},Yh={class:"p-field mt-4"},Nh={class:"p-field mt-4"},Xh={class:"flex flex-column gap-2"},zh={class:"p-field mt-4"},Ah={class:"grid mt-2"},Mh={class:"col-6"},Oh={class:"col-6"},jh={class:"pdf-preview-container"},Gh=["onClick","onDblclick"],Th={class:"page-selection"},wh={class:"page-actions"},Ih={class:"thumbnail-content"},fh={class:"page-number"},vh={class:"flex align-items-center gap-2"},Lh={class:"page-editor-toolbar"},Dh={class:"zoom-indicator"},Rh={class:"flex"},kh={class:"tool-group"},Ch={key:0,class:"mt-2"},Fh={class:"p-field"},Vh={class:"block mb-1"},xh={class:"p-field"},Sh={class:"block mb-1"},Jh={class:"p-field"},Uh={class:"block mb-1"},Hh={class:"flex justify-content-between w-full"},Qh={class:"flex align-items-center gap-2"},Bh={class:"signature-pad"},Eh={class:"flex gap-2"},Ph={class:"p-inputgroup mb-2"},_h={key:0,class:"flex align-items-center gap-2"},Kh={key:1,class:"text-color-secondary"},$h={key:2,class:"favorites-layout"},qh={class:"favorites-list"},e5=["onClick"],t5={class:"flex align-items-center gap-2 flex-grow-1"},l5={class:"text-overflow-ellipsis"},a5={class:"favorites-preview"},o5={key:0,class:"preview-placeholder"},s5={class:"text-color-secondary"},i5={key:1,class:"preview-placeholder"},n5={class:"text-color-secondary"},c5={key:2,class:"preview-wrapper"},r5={key:0,class:"preview-controls"},d5={class:"page-info"},b5={class:"preview-content"},m5={key:0,class:"flex align-items-center gap-2"},p5={key:1,class:"text-color-secondary"},u5={key:2,class:"favorites-layout"},Z5={class:"favorites-list"},h5=["onClick"],y5={class:"flex align-items-center gap-2 flex-grow-1"},W5={class:"text-overflow-ellipsis"},g5={class:"favorites-preview"},Y5={key:0,class:"preview-placeholder"},N5={class:"text-color-secondary"},X5={key:1,class:"preview-placeholder"},z5={class:"text-color-secondary"},A5={key:2,class:"preview-wrapper"},M5={key:0,class:"preview-controls"},O5={class:"page-info"},j5={class:"preview-content"},G5={class:"p-fluid"},T5={class:"p-field"},w5={for:"alfrescoNodeId"},I5={class:"text-color-secondary"},f5={class:"flex gap-2 align-items-center w-full justify-content-between"},v5={class:"flex flex-column flex-grow-1 mr-2 min-w-0"},L5={key:0,class:"text-color-secondary flex align-items-center gap-1"},D5={class:"text-color-secondary flex-shrink-0"},R5={class:"text-overflow-ellipsis font-medium white-space-nowrap overflow-hidden flex-grow-1"},k5={key:1,class:"p-error"},C5={class:"ml-auto flex gap-2"},rc=H({__name:"PdfToolsComponent",props:{toast:{type:Object,required:!0},id:{type:String,required:!0}},setup(l){const{t}=Pt.useI18n(),a=l,i=e.ref(null),o=e.ref(null),s=e.ref([]),n=e.ref(!0),c=e.ref(null),r=e.ref(null),m=e.ref([]),h=e.ref(!1),u=e.ref(null),b=e.ref(1),y={SELECT:"select",REDACT:"redact",HIGHLIGHT:"highlight",COMMENT:"comment",IMAGE:"image",SIGNATURE:"signature",TEXT:"text"},g=e.ref(y.SELECT),X=e.ref([]),M=e.ref(null),A=e.ref(null),F=e.ref(null),U=e.ref(null),j=e.ref(!1),I=e.ref(null);let D=!1,K=null,x=!1,C=null;const f=e.ref(""),R=e.ref(-45),te=e.ref(5),le=[{label:"Helvetica",value:"Helvetica"},{label:"Times New Roman",value:"TimesRoman"},{label:"Courier",value:"Courier"}],S=e.ref("Helvetica"),oe=e.ref(18),Ie=e.ref("#000000"),wt=e.ref(null),Te=e.ref(!1),re=e.ref(null),Je=e.ref(""),He=e.ref(""),Qe=e.ref(null),Be=e.ref(null),k=e.ref(!1),Q=e.ref(""),E=e.ref(""),ee=e.ref(null),ce=e.computed(()=>Q.value&&Ut(Q.value)?!0:!!(ee.value&&ee.value.id)),ze=e.ref(""),fe=e.ref([]),ut=e.ref(!1),et=e.ref(!1),tt=e.ref([]),At=e.ref(!1),Zt=e.ref(!1),nt=e.ref(null),{pdf:ct}=vt.usePDF(nt),Le=e.ref(1),Fe=e.ref(0),De=e.ref(null),{pdf:Ee}=vt.usePDF(De);e.onMounted(()=>{const d=a.id;d?Ol(d):(c.value=t("pdfTools.loadError"),n.value=!1)});const ol=d=>m.value.some(Z=>Z.pageIndex===d.pageIndex),Ml=d=>{r.value=d;const Z=m.value.findIndex(N=>N.pageIndex===d.pageIndex);Z>-1?m.value.splice(Z,1):m.value.push(d)},Ol=async d=>{n.value=!0,c.value=null;try{const Z=await V.getNode(d);Qe.value=Z,wt.value=Z.parentId,He.value=Z&&(Z.name||Z.properties&&Z.properties["cm:name"])||"";const N=Xe.getContentUrl(d);De.value=N;const W=await fetch(N);if(!W.ok)throw new Error(`HTTP error! status: ${W.status}`);const T=await W.arrayBuffer();o.value=new Uint8Array(T),await jl(o.value),s.value.length>0&&(r.value=s.value[0])}catch(Z){console.error("Error loading PDF from Alfresco:",Z),c.value=t("pdfTools.loadError")}finally{n.value=!1}},jl=async d=>{i.value=await We.PDFDocument.load(d);const Z=i.value.getPageCount();s.value=Array.from({length:Z},(N,W)=>({pageIndex:W,pageNumber:W+1}))},Ue=async(d,{updatePages:Z=!0}={})=>{const N=await d.save();o.value=N;const W=new Blob([N],{type:"application/pdf"});De.value&&De.value.startsWith("blob:")&&URL.revokeObjectURL(De.value),De.value=URL.createObjectURL(W),Z&&await jl(N)},Gl=async()=>{if(o.value){n.value=!0;try{const d=await We.PDFDocument.create(),Z=s.value.map(T=>T.pageIndex),N=await We.PDFDocument.load(o.value);(await d.copyPages(N,Z)).forEach(T=>d.addPage(T)),await Ue(d)}catch(d){console.error("Error reordering pages:",d),c.value=t("pdfTools.reorderError")}finally{n.value=!1}}},sl=async d=>{if(o.value){n.value=!0;try{const Z=await We.PDFDocument.load(o.value),N=Z.getPage(d.pageIndex),W=N.getRotation().angle;N.setRotation({type:We.RotationTypes.Degrees,angle:(W+90)%360}),await Ue(Z,{updatePages:!1})}catch(Z){console.error("Error rotating page:",Z),c.value=t("pdfTools.rotateError")}finally{n.value=!1}}},Mt=async()=>{if(m.value.length===0||!o.value)return null;const d=await We.PDFDocument.create(),Z=await We.PDFDocument.load(o.value),N=m.value.map(T=>T.pageIndex).sort((T,z)=>T-z);return(await d.copyPages(Z,N)).forEach(T=>d.addPage(T)),await d.save()},Pe=async()=>{if(!(!o.value||m.value.length===0)){if(m.value.length===s.value.length){a.toast.add({severity:"warn",summary:t("pdfTools.common.warning"),detail:t("pdfTools.deleteAllPagesWarning"),life:3e3});return}n.value=!0;try{const d=await We.PDFDocument.load(o.value),Z=d.getPageCount(),N=new Set(m.value.map(J=>J.pageIndex)),W=[];for(let J=0;J<Z;J++)N.has(J)||W.push(J);const T=await We.PDFDocument.create();(await T.copyPages(d,W)).forEach(J=>T.addPage(J)),await Ue(T),m.value=[],a.toast.add({severity:"success",summary:t("pdfTools.common.deleted"),detail:t("pdfTools.pagesDeletedSuccess"),life:3e3})}catch(d){console.error("Error deleting pages:",d),c.value=t("pdfTools.deletePagesError")}finally{n.value=!1}}},il=async()=>{Q.value="",ee.value=null,E.value="",k.value=!0},Bl=d=>{d.index===2&&tt.value.length===0&&!At.value&&ye()},El=async()=>{let d=null;if(ee.value?.id?d=ee.value.id:Q.value&&(d=Ut(Q.value)),!d){a.toast.add({severity:"warn",summary:t("pdfTools.common.warning"),detail:t("pdfTools.insertFromAlfresco.invalidInput"),life:3e3});return}await rt(d),k.value=!1},Ut=d=>{if(!d)return null;const Z=d.trim();if(/^[0-9a-fA-F-]{20,}$/.test(Z))return Z;const N=Z.match(/workspace:\/\/SpacesStore\/([0-9a-fA-F-]{20,})/);if(N&&N[1])return N[1];const W=Z.match(/\b(nodes|preview|renditions|content)\/?([0-9a-fA-F-]{20,})\b/);if(W&&W[2])return W[2];const T=Z.match(/#\/(?:pdf-tools|consultation-pdf|edit-collabora)\/([0-9a-fA-F-]{20,})/);if(T&&T[1])return T[1];const z=Z.match(/([0-9a-fA-F]{20,})/);return z&&z[1]?z[1]:null},O=async d=>{if(d?.content?.mimeType==="application/pdf"&&(ee.value=d,E.value="",d?.id)){Zt.value=!0,Le.value=1,Fe.value=0;try{const Z=Xe.getContentUrl(d.id);nt.value&&nt.value.startsWith("blob:")&&URL.revokeObjectURL(nt.value),nt.value=Z}catch(Z){console.error("Error loading PDF preview:",Z),nt.value=null}finally{Zt.value=!1}}},_=()=>{Le.value<Fe.value&&Le.value++},se=()=>{Le.value>1&&Le.value--},me=d=>{E.value="",d.isFolder?(ee.value=null,E.value=t("pdfTools.insertFromAlfresco.folderSelectError")):d.content?.mimeType!=="application/pdf"?(ee.value=null,E.value=t("pdfTools.insertFromAlfresco.fileTypeNotAllowedError")):O(d)},be=async()=>{if(et.value=!0,!ze.value||ze.value.trim().length<2){fe.value=[];return}ut.value=!0;try{const d=Ya();await d.queryStore(ze.value);const Z=d.entries.map(N=>N.entry||N);fe.value=Z.filter(N=>N.isFile&&N.content?.mimeType==="application/pdf")}catch(d){console.error("performSearch",d),fe.value=[]}finally{ut.value=!1}},ye=async()=>{At.value=!0;try{const d=Jl();await d.loadFavorites(),tt.value=d.fileFavorites.filter(Z=>Z?.target?.file?.content?.mimeType==="application/pdf").map(Z=>Z.target.file)}catch(d){console.error("loadFavorites error:",d),tt.value=[]}finally{At.value=!1}},rt=async d=>{if(o.value){n.value=!0;try{if((await V.getNode(d)).content?.mimeType!=="application/pdf")throw new Error(t("pdfTools.invalidNodeForInsert"));const W=await(await V.getNodeContent(d)).arrayBuffer(),T=new Uint8Array(W),z=await We.PDFDocument.load(o.value),J=await We.PDFDocument.load(T),ne=J.getPageCount(),pe=Array.from({length:ne},(Re,Qt)=>Qt);(await z.copyPages(J,pe)).forEach(Re=>z.addPage(Re)),await Ue(z),m.value=[],a.toast.add({severity:"success",summary:t("pdfTools.common.success"),detail:t("pdfTools.insertFromPristySuccess",{count:ne}),life:3e3})}catch(Z){console.error("Error inserting from Alfresco:",Z),c.value=Z?.message||t("pdfTools.insertFromPristyError"),a.toast.add({severity:"error",summary:t("pdfTools.common.error"),detail:c.value,life:4e3})}finally{n.value=!1}}},ht=async d=>{const Z=d.files?.[0];Z&&await Pl(Z)},Pl=async d=>{if(o.value){n.value=!0;try{const Z=await We.PDFDocument.load(o.value),N=new Uint8Array(await d.arrayBuffer()),W=await We.PDFDocument.load(N),T=W.getPageCount(),z=Array.from({length:T},(ne,pe)=>pe);(await Z.copyPages(W,z)).forEach(ne=>Z.addPage(ne)),await Ue(Z),m.value=[],a.toast.add({severity:"success",summary:t("pdfTools.common.success"),detail:t("pdfTools.insertFromFileSuccess",{count:T}),life:3e3})}catch(Z){console.error("Error inserting PDF:",Z),c.value=t("pdfTools.insertError")}finally{n.value=!1}}},_l=async()=>{if(!(!f.value||m.value.length===0||!o.value)){n.value=!0;try{const d=await We.PDFDocument.load(o.value),Z=m.value.map(N=>N.pageIndex);for(const N of Z){const W=d.getPage(N),{width:T,height:z}=W.getSize();for(let J=0;J<te.value;J++)W.drawText(f.value,{x:T/(te.value+1)*(J+1)-150,y:z/(te.value+1)*(J+1),size:50,color:We.rgb(.95,.1,.1),opacity:.5,rotate:We.degrees(R.value)})}await Ue(d,{updatePages:!1})}catch(d){console.error("Error adding watermark:",d),c.value=t("pdfTools.watermarkError")}finally{n.value=!1}}},nl=async()=>{if(o.value){n.value=!0;try{const d=new Blob([o.value],{type:"application/pdf"}),Z=new File([d],"modified.pdf",{type:"application/pdf"}),N={majorVersion:!0,comment:"File modified via Pristy Espaces PDF tools"};await V.updateContentNode(a.id,Z,N),a.toast.add({severity:"success",summary:t("pdfTools.common.success"),detail:t("pdfTools.saveSuccess"),life:3e3})}catch(d){console.error("Error saving changes:",d),a.toast.add({severity:"error",summary:t("pdfTools.common.error"),detail:t("pdfTools.saveError"),life:3e3})}finally{n.value=!1}}},cl=async d=>{if(re.value=d,Je.value=t("pdfTools.saveAs.defaultFilename"),Qe.value&&Qe.value.parentId)try{Be.value=await V.getNode(Qe.value.parentId)}catch(Z){console.error("Could not fetch parent node for Save As dialog",Z),Be.value=null}else Be.value=null;Te.value=!0},rl=async({filename:d,folderId:Z})=>{Te.value=!1,n.value=!0;try{let N;if(re.value==="extract"?N=await Mt():N=o.value,!N)throw new Error(t("pdfTools.noContentToSave"));const W=new Blob([N],{type:"application/pdf"}),T=new File([W],d,{type:"application/pdf"});if(!Z)throw new Error("No destination folder selected.");await Xe.uploadFile(Z,{},T),a.toast.add({severity:"success",summary:t("pdfTools.common.success"),detail:t("pdfTools.fileCreatedSuccess",{filename:d}),life:3e3})}catch(N){console.error('Error during "Save As":',N);const W=N.status===409?t("pdfTools.saveAs.conflictError"):t("pdfTools.saveAsError");a.toast.add({severity:"error",summary:t("pdfTools.common.error"),detail:W,life:4e3})}finally{n.value=!1}},It=d=>{u.value=d||r.value,h.value=!0,b.value=1,X.value=[],setTimeout(Ne,200)},lt=()=>{h.value=!1,u.value=null},Ma=()=>{b.value=Math.min(4,b.value+.1)},vo=()=>{b.value=Math.max(.2,b.value-.1)},dl=d=>{d===y.REDACT?window.confirm(t("pdfTools.redactWarning"))&&(g.value=d):g.value=d},Tl=d=>{M.value=d.files?.[0]||null,M.value&&(A.value=null,g.value=y.IMAGE)},Y=()=>{j.value=!0},v=()=>{X.value.pop(),yt()},q=async d=>{if(!(!d||d.type!==y.IMAGE||d._loading||d._bitmap)){d._loading=!0;try{let Z=null;d.payload?.file?Z=d.payload.file:d.payload?.signature&&(Z=new Blob([new Uint8Array(d.payload.signature)],{type:"image/png"})),Z&&(d._bitmap=await createImageBitmap(Z),yt())}catch(Z){console.warn(t("pdfTools.imagePreviewUnavailable"),Z)}finally{d._loading=!1}}},ie=()=>{const d=F.value;if(!d)return null;const Z=Array.from(d.querySelectorAll("canvas"));if(Z.length===0)return null;const N=Z.filter(J=>J.offsetParent!==null&&J.width>0&&J.height>0),W=N.length?N:Z;let T=W[0],z=0;for(const J of W){const ne=J.getBoundingClientRect(),pe=Math.max(0,ne.width)*Math.max(0,ne.height);pe>z&&(T=J,z=pe)}return T},Ne=()=>{const d=ie();if(!d||!U.value)return;const Z=d.getBoundingClientRect(),N=window.devicePixelRatio||1;U.value.style.width=Z.width+"px",U.value.style.height=Z.height+"px",U.value.width=Math.round(Z.width*N),U.value.height=Math.round(Z.height*N),yt()},at=d=>{const Z=U.value;if(!Z)return{x:0,y:0};const N=Z.getBoundingClientRect(),W=window.devicePixelRatio||1;return{x:(d.clientX-N.left)*W,y:(d.clientY-N.top)*W}};let Ke=null,$e=null,Kl=null,bl=null;const j9=d=>{for(let Z=X.value.length-1;Z>=0;Z--){const N=X.value[Z].rect;if(d.x>=N.x&&d.x<=N.x+N.w&&d.y>=N.y&&d.y<=N.y+N.h)return Z}return-1},G9=d=>{const W=6*(window.devicePixelRatio||1)/2;for(let T=X.value.length-1;T>=0;T--){const z=X.value[T];if(z.type!==y.IMAGE&&z.type!==y.TEXT)continue;const J=z.rect,ne=[{key:"tl",x:J.x,y:J.y},{key:"tr",x:J.x+J.w,y:J.y},{key:"bl",x:J.x,y:J.y+J.h},{key:"br",x:J.x+J.w,y:J.y+J.h}];for(const pe of ne)if(d.x>=pe.x-W&&d.x<=pe.x+W&&d.y>=pe.y-W&&d.y<=pe.y+W)return{idx:T,corner:pe.key}}return null},T9=d=>{if(g.value===y.REDACT||g.value===y.HIGHLIGHT||g.value===y.TEXT)x=!0,C=at(d);else if(g.value===y.COMMENT){const Z=at(d),N=window.prompt(t("pdfTools.pageEditor.commentPrompt"));N&&(X.value.push({type:y.COMMENT,rect:{x:Z.x,y:Z.y,w:24,h:24},payload:{text:N}}),yt())}else if(g.value===y.IMAGE||g.value===y.SELECT||g.value===y.TEXT){const Z=at(d),N=G9(Z);if(N){Kl=N.idx,bl=N.corner,$e={p:Z,rect:{...X.value[N.idx].rect}},U.value&&(U.value.style.cursor="nwse-resize");return}const W=j9(Z);if(W!==-1&&(X.value[W].type===y.IMAGE||X.value[W].type===y.TEXT)){Ke=W,$e={p:Z,rect:{...X.value[W].rect}},U.value&&(U.value.style.cursor="move");return}if(g.value===y.IMAGE){if(!M.value&&!A.value)return;const T={type:y.IMAGE,rect:{x:Z.x,y:Z.y,w:150,h:100},payload:{file:M.value,signature:A.value}};X.value.push(T),q(T),yt(),g.value=y.SELECT,M.value=null,A.value=null}}},w9=d=>{if(Kl!==null&&bl){const N=at(d),W=X.value[Kl];if(W){const T=$e.rect;let z=T.x,J=T.y,ne=T.w,pe=T.h;const Ve=N.x-$e.p.x,Re=N.y-$e.p.y;bl==="br"?(ne=Math.max(10,T.w+Ve),pe=Math.max(10,T.h+Re)):bl==="tr"?(ne=Math.max(10,T.w+Ve),pe=Math.max(10,T.h-Re),J=T.y+Re):bl==="bl"?(ne=Math.max(10,T.w-Ve),z=T.x+Ve,pe=Math.max(10,T.h+Re)):bl==="tl"&&(ne=Math.max(10,T.w-Ve),z=T.x+Ve,pe=Math.max(10,T.h-Re),J=T.y+Re),W.rect.x=z,W.rect.y=J,W.rect.w=ne,W.rect.h=pe,yt()}return}if(Ke!==null){const N=at(d),W=X.value[Ke];if(W){const T=N.x-$e.p.x,z=N.y-$e.p.y;W.rect.x=$e.rect.x+T,W.rect.y=$e.rect.y+z,yt()}return}if(!x||!C)return;const Z=at(d);Ht.value={x:Math.min(C.x,Z.x),y:Math.min(C.y,Z.y),w:Math.abs(Z.x-C.x),h:Math.abs(Z.y-C.y)},yt()},I9=()=>{if(Ke!==null||Kl!==null){Ke=null,Kl=null,bl=null,$e=null,U.value&&(U.value.style.cursor="crosshair"),yt();return}if(x&&Ht.value)if(g.value===y.TEXT){const d=window.prompt(t("pdfTools.pageEditor.addTextPrompt"));d&&d.trim().length>0&&X.value.push({type:y.TEXT,rect:{...Ht.value},payload:{text:d,font:S.value,size:oe.value,color:Ie.value}})}else X.value.push({type:g.value,rect:{...Ht.value}});x=!1,C=null,Ht.value=null,yt()},f9=()=>{x&&(x=!1,C=null,Ht.value=null,yt())},Ht=e.ref(null),yt=()=>{const d=Ke,Z=U.value;if(!Z)return;const N=Z.getContext("2d"),W=window.devicePixelRatio||1;N.clearRect(0,0,Z.width,Z.height);const T=(z,J)=>{if(z.type===y.REDACT)N.fillStyle="rgba(0,0,0,1)",N.fillRect(z.rect.x,z.rect.y,z.rect.w,z.rect.h),N.strokeStyle="rgba(0,0,0,1)",N.strokeRect(z.rect.x,z.rect.y,z.rect.w,z.rect.h);else if(z.type===y.HIGHLIGHT)N.fillStyle="rgba(255, 235, 59, 0.4)",N.fillRect(z.rect.x,z.rect.y,z.rect.w,z.rect.h),N.strokeStyle="rgba(255, 193, 7, 0.8)",N.strokeRect(z.rect.x,z.rect.y,z.rect.w,z.rect.h);else if(z.type===y.COMMENT)R9(N,z.rect.x,z.rect.y,20*W);else if(z.type===y.IMAGE){if(q(z),z._bitmap&&N.drawImage(z._bitmap,z.rect.x,z.rect.y,z.rect.w,z.rect.h),N.strokeStyle=J===d?"#0ea5e9":"rgba(33,150,243,0.9)",N.lineWidth=J===d?2*W:1*W,N.strokeRect(z.rect.x,z.rect.y,z.rect.w,z.rect.h),J===d){N.fillStyle="#0ea5e9";const ne=6*W,pe=ne/2;[[z.rect.x,z.rect.y],[z.rect.x+z.rect.w,z.rect.y],[z.rect.x,z.rect.y+z.rect.h],[z.rect.x+z.rect.w,z.rect.y+z.rect.h]].forEach(([Re,Qt])=>{N.fillRect(Re-pe,Qt-pe,ne,ne)})}}else if(z.type===y.TEXT){const ne=z.payload||{},pe=Math.max(8,ne.size||18);N.save(),N.fillStyle="rgba(255,255,255,0.35)",N.fillRect(z.rect.x,z.rect.y,z.rect.w,z.rect.h),N.fillStyle=ne.color||"#000",N.font=`${pe}px ${ne.font||"Helvetica"}`,N.textBaseline="top";const Ve=4*W,Re=Math.max(0,z.rect.w-2*Ve),Qt=v9(N,String(ne.text||""),Re);let wl=z.rect.y+Ve;for(const Bt of Qt)if(N.fillText(Bt,z.rect.x+Ve,wl),wl+=pe*1.2,wl>z.rect.y+z.rect.h-Ve)break;if(N.strokeStyle=J===d?"#0ea5e9":"rgba(33,150,243,0.9)",N.lineWidth=J===d?2*W:1*W,N.strokeRect(z.rect.x,z.rect.y,z.rect.w,z.rect.h),J===d){N.fillStyle="#0ea5e9";const Bt=6*W,$l=Bt/2;[[z.rect.x,z.rect.y],[z.rect.x+z.rect.w,z.rect.y],[z.rect.x,z.rect.y+z.rect.h],[z.rect.x+z.rect.w,z.rect.y+z.rect.h]].forEach(([Ae,Il])=>{N.fillRect(Ae-$l,Il-$l,Bt,Bt)})}N.restore()}};if(X.value.forEach(T),Ht.value){const z=Ht.value;N.setLineDash([6*W,4*W]),N.strokeStyle=g.value===y.REDACT?"black":"goldenrod",N.strokeRect(z.x,z.y,z.w,z.h),N.setLineDash([])}},v9=(d,Z,N)=>{const W=Z.split(/\s+/),T=[];let z="";for(const J of W){const ne=z?z+" "+J:J;d.measureText(ne).width<=N||z===""?z=ne:(T.push(z),z=J)}return z&&T.push(z),T},L9=d=>{let Z=d.toString().trim();Z.startsWith("#")&&(Z=Z.slice(1)),Z.length===3&&(Z=Z.split("").map(J=>J+J).join(""));const N=parseInt(Z||"000000",16),W=(N>>16&255)/255,T=(N>>8&255)/255,z=(N&255)/255;return{r:W,g:T,b:z}},D9=(d,Z,N,W)=>{const T=String(Z).split(/\s+/),z=[];let J="";for(const ne of T){const pe=J?J+" "+ne:ne;d.widthOfTextAtSize(pe,N)<=W||J===""?J=pe:(z.push(J),J=ne)}return J&&z.push(J),z},R9=(d,Z,N,W)=>{d.save(),d.translate(Z,N),d.fillStyle="#FFEB3B",d.strokeStyle="#FBC02D",d.lineWidth=2,d.beginPath(),d.rect(0,0,W,W),d.fill(),d.stroke(),d.beginPath(),d.moveTo(W*.6,0),d.lineTo(W,W*.4),d.lineTo(W*.6,W*.4),d.closePath(),d.fillStyle="#FDD835",d.fill(),d.restore()},k9=async()=>{if(!(!o.value||!u.value)){n.value=!0;try{const d=await We.PDFDocument.load(o.value),Z=u.value.pageIndex;let N=d.getPage(Z);const{width:W,height:T}=N.getSize(),z=ie();if(!z)throw new Error(t("pdfTools.pdfRenderCanvasNotFound"));if(X.value.some(Ae=>Ae.type===y.REDACT)){if(!window.confirm(t("pdfTools.redactFlattenConfirm"))){n.value=!1;return}const Il=Math.max(2,Math.ceil(z.width/z.getBoundingClientRect().width||window.devicePixelRatio||1)),Et=document.createElement("canvas"),jc=z.width/z.height;Et.width=Math.round(z.width*Il),Et.height=Math.round(z.height*Il);const Oa=Et.getContext("2d");Oa.imageSmoothingEnabled=!1,Oa.drawImage(z,0,0,z.width,z.height,0,0,Et.width,Et.height);const Ro=Et.toDataURL("image/jpeg",.5),ko=await(await fetch(Ro)).arrayBuffer(),Co=await d.embedJpg(ko),ql=d.insertPage(Z+1,[W,T]);ql.drawImage(Co,{x:0,y:0,width:W,height:T}),N=ql}const ne=z.getBoundingClientRect(),pe=z.width,Ve=z.height,Re=window.devicePixelRatio||1,Qt=pe/ne.width,wl=Ve/ne.height,Bt=W/pe,$l=T/Ve;for(const Ae of X.value){const Il=Ae.rect.x/Re,Et=Ae.rect.y/Re,jc=Ae.rect.w/Re,Oa=Ae.rect.h/Re,Ro=Il*Qt,ko=Et*wl,Co=jc*Qt,ql=Oa*wl,ea=Co*Bt,fl=ql*$l,vl=Ro*Bt,ml=T-(ko+ql)*$l;if(Ae.type===y.REDACT)N.drawRectangle({x:vl,y:ml,width:ea,height:fl,color:We.rgb(0,0,0)});else if(Ae.type===y.HIGHLIGHT)N.drawRectangle({x:vl,y:ml,width:ea,height:fl,color:We.rgb(1,.92,.23),opacity:.4});else if(Ae.type===y.COMMENT){if(N.drawRectangle({x:vl,y:ml,width:Math.max(14,ea),height:Math.max(14,fl),color:We.rgb(1,.92,.23),opacity:.9}),Ae.payload?.text){const ot=String(Ae.payload.text).slice(0,200);N.drawText(`Note: ${ot}`,{x:vl+2,y:ml+fl+2,size:8,color:We.rgb(.2,.2,.2)})}}else if(Ae.type===y.IMAGE){let ot=null;if(Ae.payload?.file?ot=await Ae.payload.file.arrayBuffer():Ae.payload?.signature&&(ot=Ae.payload.signature),ot){let ta;try{ta=await d.embedPng(ot)}catch{ta=await d.embedJpg(ot)}N.drawImage(ta,{x:vl,y:ml,width:ea,height:fl,opacity:.98})}}else if(Ae.type===y.TEXT){const ot=Ae.payload||{},ta=ot.font==="TimesRoman"?We.StandardFonts.TimesRoman:ot.font==="Courier"?We.StandardFonts.Courier:We.StandardFonts.Helvetica,Gc=await d.embedFont(ta),ja=Math.max(6,Number(ot.size)||18),{r:H9,g:Q9,b:B9}=L9(ot.color||"#000000"),Fo=2,E9=Math.max(1,ea-2*Fo),P9=D9(Gc,String(ot.text||""),ja,E9);let Vo=ml+fl-ja-Fo;for(const _9 of P9)if(N.drawText(_9,{x:vl+Fo,y:Vo,size:ja,color:We.rgb(H9,Q9,B9)}),Vo-=ja*1.2,Vo<ml)break}}const Do=X.value.some(Ae=>Ae.type===y.REDACT);Do&&d.removePage(Z),await Ue(d,{updatePages:Do}),X.value=[],a.toast.add({severity:"success",summary:t("pdfTools.common.success"),detail:t("pdfTools.pageEditor.applySuccess"),life:2e3})}catch(d){console.error("Error applying overlay edits:",d),a.toast.add({severity:"error",summary:t("pdfTools.common.error"),detail:t("pdfTools.pageEditor.applyError"),life:3e3})}finally{n.value=!1}}};e.watch(b,()=>setTimeout(Ne,0)),e.watch(u,()=>setTimeout(Ne,0)),typeof window<"u"&&window.addEventListener("resize",()=>setTimeout(Ne,0));const C9=()=>{b.value=1,setTimeout(Ne,0)},F9=()=>{const d=I.value;if(!d)return;const Z=window.devicePixelRatio||1,N=440,W=180;d.style.width=N+"px",d.style.height=W+"px",d.width=Math.round(N*Z),d.height=Math.round(W*Z);const T=d.getContext("2d");T.fillStyle="#fff",T.fillRect(0,0,d.width,d.height)},V9=()=>{Oc(),j.value=!1},zc=d=>{D=!0,K=Mc(d)},Ac=d=>{if(!D)return;const Z=Mc(d);J9(K,Z),K=Z},x9=d=>zc(d.touches[0]),S9=d=>Ac(d.touches[0]),Lo=()=>{D=!1,K=null},Mc=d=>{const N=I.value.getBoundingClientRect(),W=window.devicePixelRatio||1,T=d.clientX??d.pageX,z=d.clientY??d.pageY;return{x:(T-N.left)*W,y:(z-N.top)*W}},J9=(d,Z)=>{const W=I.value.getContext("2d");W.strokeStyle="#111827",W.lineWidth=3*(window.devicePixelRatio||1),W.lineCap="round",W.beginPath(),W.moveTo(d.x,d.y),W.lineTo(Z.x,Z.y),W.stroke()},Oc=()=>{const d=I.value;if(!d)return;const Z=d.getContext("2d");Z.fillStyle="#fff",Z.fillRect(0,0,d.width,d.height)},U9=()=>{const d=I.value;d&&d.toBlob(async Z=>{A.value=await Z.arrayBuffer(),g.value=y.IMAGE,j.value=!1})};return e.watch(j,d=>{d&&setTimeout(F9,0)}),e.watch(ct,async d=>{if(!d){Fe.value=0;return}try{const Z=await d;Fe.value=Z.numPages}catch(Z){console.error("Error loading preview PDF:",Z),Fe.value=0}}),(d,Z)=>{const N=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock("div",bh,[e.createElementVNode("h1",null,[e.createTextVNode(e.toDisplayString(d.$t("pdfTools.title"))+" ",1),He.value?(e.openBlock(),e.createElementBlock("span",mh,"— "+e.toDisplayString(He.value),1)):e.createCommentVNode("",!0)]),n.value?(e.openBlock(),e.createElementBlock("div",ph,[e.createVNode(e.unref(bt)),e.createElementVNode("p",null,e.toDisplayString(d.$t("pdfTools.loading")),1)])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("div",uh,[e.createVNode(e.unref(Wt),{severity:"error"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value),1)]),_:1})])):e.createCommentVNode("",!0),!n.value&&!c.value?(e.openBlock(),e.createElementBlock("div",Zh,[e.createElementVNode("div",hh,[e.createElementVNode("div",yh,[e.createElementVNode("h2",null,e.toDisplayString(d.$t("pdfTools.sidebar.actions")),1),e.createElementVNode("div",Wh,[e.createVNode(e.unref(w),{icon:"ri-save-2-line",label:d.$t("pdfTools.sidebar.saveNewVersion"),onClick:nl},null,8,["label"]),e.createVNode(e.unref(w),{class:"p-button-secondary mt-2",icon:"ri-file-copy-2-line",label:d.$t("pdfTools.sidebar.saveAs"),onClick:Z[0]||(Z[0]=W=>cl("saveAs"))},null,8,["label"]),e.createVNode(e.unref(Ll)),e.createElementVNode("div",gh,[e.createElementVNode("h3",null,e.toDisplayString(d.$t("pdfTools.sidebar.extractPages")),1),e.createVNode(e.unref(w),{disabled:m.value.length===0,icon:"ri-file-transfer-line",label:d.$t("pdfTools.sidebar.extractAndSave"),onClick:Z[1]||(Z[1]=W=>cl("extract"))},null,8,["disabled","label"])]),e.createElementVNode("div",Yh,[e.createElementVNode("h3",null,e.toDisplayString(d.$t("pdfTools.sidebar.deletePages")),1),e.createVNode(e.unref(w),{disabled:m.value.length===0||s.value.length===m.value.length,class:"p-button-danger",icon:"ri-delete-bin-line",label:d.$t("pdfTools.sidebar.deleteSelectedPages"),onClick:Pe},null,8,["disabled","label"])]),e.createElementVNode("div",Nh,[e.createElementVNode("h3",null,e.toDisplayString(d.$t("pdfTools.sidebar.insertPdf")),1),e.createElementVNode("div",Xh,[e.createVNode(e.unref(aa),{auto:!1,customUpload:!1,showCancelButton:!1,showUploadButton:!1,accept:"application/pdf","choose-label":d.$t("pdfTools.sidebar.fromComputer"),class:"p-button-secondary w-full",mode:"basic",name:"pdfToInsert",onSelect:ht},null,8,["choose-label"]),e.createVNode(e.unref(w),{class:"p-button-secondary",icon:"ri-cloud-line",label:d.$t("pdfTools.sidebar.fromPristy"),onClick:il},null,8,["label"])])]),e.createElementVNode("div",zh,[e.createElementVNode("h3",null,e.toDisplayString(d.$t("pdfTools.sidebar.addWatermark")),1),e.createVNode(e.unref(Me),{modelValue:f.value,"onUpdate:modelValue":Z[2]||(Z[2]=W=>f.value=W),placeholder:d.$t("pdfTools.sidebar.watermarkTextPlaceholder"),type:"text"},null,8,["modelValue","placeholder"]),e.createElementVNode("div",Ah,[e.createElementVNode("div",Mh,[e.createVNode(e.unref(pl),{modelValue:R.value,"onUpdate:modelValue":Z[3]||(Z[3]=W=>R.value=W),max:360,min:-360,placeholder:d.$t("pdfTools.sidebar.angle"),suffix:"°"},null,8,["modelValue","placeholder"])]),e.createElementVNode("div",Oh,[e.createVNode(e.unref(pl),{modelValue:te.value,"onUpdate:modelValue":Z[4]||(Z[4]=W=>te.value=W),max:10,min:1,placeholder:d.$t("pdfTools.sidebar.repetitions")},null,8,["modelValue","placeholder"])])]),e.createVNode(e.unref(w),{disabled:!f.value||m.value.length===0,class:"p-button-secondary mt-2",icon:"ri-paint-brush-line",label:d.$t("pdfTools.sidebar.addWatermarkButton"),onClick:_l},null,8,["disabled","label"])])])])]),e.createElementVNode("div",jh,[e.createElementVNode("h2",null,e.toDisplayString(d.$t("pdfTools.pagePreview.title")),1),e.createVNode(e.unref(Ko.VueDraggableNext),{modelValue:s.value,"onUpdate:modelValue":Z[5]||(Z[5]=W=>s.value=W),class:"grid","ghost-class":"ghost","item-key":"pageIndex",onEnd:Gl},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,W=>(e.openBlock(),e.createElementBlock("div",{key:W.pageIndex,class:"col-3"},[e.createElementVNode("div",{class:e.normalizeClass([{selected:ol(W)},"page-thumbnail"]),onClick:T=>Ml(W),onDblclick:e.withModifiers(T=>It(W),["stop"])},[e.createElementVNode("div",Th,[e.createVNode(e.unref(Lt),{binary:"","model-value":ol(W)},null,8,["model-value"])]),e.createElementVNode("div",wh,[e.createVNode(e.unref(w),{class:"p-button-rounded p-button-text",icon:"ri-clockwise-line","aria-label":d.$t("pdf.rotationRigth"),onClick:e.withModifiers(T=>sl(W),["stop"])},null,8,["aria-label","onClick"]),e.createVNode(e.unref(w),{"aria-label":d.$t("pdfTools.pagePreview.openPagePreview",{pageNumber:W.pageNumber}),class:"p-button-rounded p-button-text",icon:"ri-edit-box-line",onClick:e.withModifiers(T=>It(W),["stop"])},null,8,["aria-label","onClick"])]),e.createElementVNode("div",Ih,[e.createVNode(e.unref(vt.VuePDF),{annotations:!1,page:W.pageNumber,pdf:e.unref(Ee),scale:.25,text:!1},null,8,["page","pdf"])]),e.createElementVNode("div",fh,e.toDisplayString(W.pageNumber),1)],42,Gh)]))),128))]),_:1},8,["modelValue"])])])):e.createCommentVNode("",!0),e.createVNode(e.unref(ke),{visible:h.value,"onUpdate:visible":Z[14]||(Z[14]=W=>h.value=W),breakpoints:{"960px":"95vw","640px":"100vw"},dismissableMask:"",modal:"",class:"dialog-page-editor","content-class":"page-editor-dialog",onHide:lt},{header:e.withCtx(()=>[e.createElementVNode("div",vh,[Z[21]||(Z[21]=e.createElementVNode("i",{class:"ri-file-fill","aria-hidden":"true"},null,-1)),e.createElementVNode("span",null,e.toDisplayString(d.$t("pdfTools.pageEditor.title",{pageNumber:(u.value||r.value)?.pageNumber||"",filename:He.value})),1)])]),footer:e.withCtx(()=>[e.createElementVNode("div",Hh,[e.createElementVNode("small",null,e.toDisplayString(d.$t("pdfTools.pageEditor.footerHint")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",Lh,[e.createVNode(e.unref(w),{class:"p-button-text",icon:"ri-zoom-out-line","aria-label":d.$t("pdf.dezoom"),onClick:vo},null,8,["aria-label"]),e.createVNode(e.unref(w),{class:"p-button-text",icon:"ri-zoom-in-line","aria-label":d.$t("pdf.zoom"),onClick:Ma},null,8,["aria-label"]),e.createVNode(e.unref(w),{class:"p-button-text",label:d.$t("pdfTools.pageEditor.fit"),onClick:C9},null,8,["label"]),e.createElementVNode("span",Dh,e.toDisplayString(Math.round(b.value*100))+"%",1),Z[22]||(Z[22]=e.createElementVNode("span",{class:"spacer"},null,-1)),e.createVNode(e.unref(w),{class:"p-button-text",icon:"ri-close-line",label:d.$t("pdfTools.pageEditor.close"),onClick:lt},null,8,["label"])]),e.createElementVNode("div",Rh,[e.createElementVNode("div",kh,[e.createElementVNode("h4",null,e.toDisplayString(d.$t("pdfTools.pageEditor.tools.actions")),1),e.createVNode(e.unref(w),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:g.value===y.SELECT}]]),icon:"ri-cursor-line",label:d.$t("pdfTools.pageEditor.tools.select"),onClick:Z[6]||(Z[6]=W=>dl(y.SELECT))},null,8,["class","label"]),e.createVNode(e.unref(w),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:g.value===y.REDACT}]]),icon:"ri-eraser-fill",label:d.$t("pdfTools.pageEditor.tools.redact"),onClick:Z[7]||(Z[7]=W=>dl(y.REDACT))},null,8,["class","label"]),e.createVNode(e.unref(w),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:g.value===y.HIGHLIGHT}]]),icon:"ri-mark-pen-line",label:d.$t("pdfTools.pageEditor.tools.highlight"),onClick:Z[8]||(Z[8]=W=>dl(y.HIGHLIGHT))},null,8,["class","label"]),e.createVNode(e.unref(w),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:g.value===y.COMMENT}]]),icon:"ri-sticky-note-line",label:d.$t("pdfTools.pageEditor.tools.comment"),onClick:Z[9]||(Z[9]=W=>dl(y.COMMENT))},null,8,["class","label"]),e.createVNode(e.unref(aa),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:g.value===y.IMAGE}]]),accept:"image/*","choose-label":d.$t("pdfTools.pageEditor.tools.image"),mode:"basic",name:"image",onSelect:Tl},null,8,["class","choose-label"]),e.createVNode(e.unref(w),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:g.value===y.SIGNATURE}]]),icon:"ri-ball-pen-line",label:d.$t("pdfTools.pageEditor.tools.signature"),onClick:Y},null,8,["class","label"]),e.createVNode(e.unref(w),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:g.value===y.TEXT}]]),icon:"ri-font-size",label:d.$t("pdfTools.pageEditor.tools.text"),onClick:Z[10]||(Z[10]=W=>dl(y.TEXT))},null,8,["class","label"]),g.value===y.TEXT?(e.openBlock(),e.createElementBlock("div",Ch,[e.createElementVNode("div",Fh,[e.createElementVNode("label",Vh,e.toDisplayString(d.$t("pdfTools.pageEditor.tools.font")),1),e.createVNode(e.unref(gt),{modelValue:S.value,"onUpdate:modelValue":Z[11]||(Z[11]=W=>S.value=W),options:le,class:"w-full",optionLabel:"label",optionValue:"value"},null,8,["modelValue"])]),e.createElementVNode("div",xh,[e.createElementVNode("label",Sh,e.toDisplayString(d.$t("pdfTools.pageEditor.tools.size")),1),e.createVNode(e.unref(pl),{modelValue:oe.value,"onUpdate:modelValue":Z[12]||(Z[12]=W=>oe.value=W),max:144,min:6},null,8,["modelValue"])]),e.createElementVNode("div",Jh,[e.createElementVNode("label",Uh,e.toDisplayString(d.$t("pdfTools.pageEditor.tools.color")),1),e.createVNode(e.unref(Me),{modelValue:Ie.value,"onUpdate:modelValue":Z[13]||(Z[13]=W=>Ie.value=W),class:"w-full",placeholder:"#000000"},null,8,["modelValue"])])])):e.createCommentVNode("",!0),e.createVNode(e.unref(Ll)),e.createVNode(e.unref(w),{disabled:X.value.length===0,class:"p-button-info mt-auto w-full",icon:"ri-check-line",label:d.$t("pdfTools.pageEditor.apply"),onClick:k9},null,8,["disabled","label"]),e.createVNode(e.unref(w),{disabled:X.value.length===0,class:"p-button-warning mt-1 w-full",icon:"ri-arrow-go-back-line",label:d.$t("pdfTools.pageEditor.cancel"),onClick:v},null,8,["disabled","label"])]),e.createElementVNode("div",{class:"page-editor-canvas",onWheelPassive:Ne,onScrollPassive:Ne},[e.createElementVNode("div",{ref_key:"pdfCanvasWrapper",ref:F,class:"pdf-canvas-wrapper"},[e.unref(Ee)&&(u.value||r.value)?(e.openBlock(),e.createBlock(e.unref(vt.VuePDF),{key:0,annotations:!1,page:(u.value||r.value).pageNumber,pdf:e.unref(Ee),scale:b.value,text:!1,class:"absolute"},null,8,["page","pdf","scale"])):e.createCommentVNode("",!0),e.createElementVNode("canvas",{ref_key:"overlayCanvas",ref:U,class:"overlay-canvas",onMousedown:T9,onMouseleave:f9,onMousemove:w9,onMouseup:I9},null,544)],512)],32)])]),_:1},8,["visible"]),e.createVNode(e.unref(ke),{visible:j.value,"onUpdate:visible":Z[15]||(Z[15]=W=>j.value=W),modal:"",class:"dialog-signature-pad",onHide:V9},{header:e.withCtx(()=>[e.createElementVNode("div",Qh,[Z[23]||(Z[23]=e.createElementVNode("i",{class:"ri-ball-pen-line","aria-hidden":"true"},null,-1)),e.createElementVNode("span",null,e.toDisplayString(d.$t("pdfTools.signaturePad.title")),1)])]),footer:e.withCtx(()=>[e.createElementVNode("div",Eh,[e.createVNode(e.unref(w),{class:"p-button-text",label:d.$t("pdfTools.signaturePad.clear"),onClick:Oc},null,8,["label"]),e.createVNode(e.unref(w),{class:"p-button-text",label:d.$t("pdfTools.signaturePad.use"),onClick:U9},null,8,["label"])])]),default:e.withCtx(()=>[e.createElementVNode("div",Bh,[e.createElementVNode("canvas",{ref_key:"signaturePadCanvas",ref:I,class:"signature-canvas",onMousedown:zc,onMouseleave:Lo,onMousemove:Ac,onMouseup:Lo,onTouchstart:e.withModifiers(x9,["prevent"]),onTouchmove:e.withModifiers(S9,["prevent"]),onTouchend:e.withModifiers(Lo,["prevent"])},null,544)])]),_:1},8,["visible"]),e.createVNode(dh,{"default-filename":Je.value,visible:Te.value,"parent-folder-node":Be.value,onClose:Z[16]||(Z[16]=W=>Te.value=!1),onSave:rl},null,8,["default-filename","visible","parent-folder-node"]),e.createVNode(e.unref(ke),{visible:k.value,modal:"",header:d.$t("pdfTools.insertFromAlfresco.title"),class:"dialog-insert-pdf","onUpdate:visible":Z[20]||(Z[20]=W=>k.value=!1)},{footer:e.withCtx(()=>[e.createElementVNode("div",f5,[e.createElementVNode("div",v5,[ee.value?(e.openBlock(),e.createElementBlock("div",L5,[e.createElementVNode("span",D5,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.selected")),1),e.withDirectives((e.openBlock(),e.createElementBlock("span",R5,[e.createTextVNode(e.toDisplayString(ee.value?.name),1)])),[[N,ee.value?.name,void 0,{top:!0}]])])):e.createCommentVNode("",!0),E.value?(e.openBlock(),e.createElementBlock("div",k5,e.toDisplayString(E.value),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",C5,[e.createVNode(e.unref(w),{label:d.$t("pdfTools.insertFromAlfresco.cancel"),class:"p-button-text",onClick:Z[19]||(Z[19]=W=>k.value=!1)},null,8,["label"]),e.createVNode(e.unref(w),{disabled:!ce.value,label:d.$t("pdfTools.insertFromAlfresco.insert"),icon:"ri-add-line",onClick:El},null,8,["disabled","label"])])])]),default:e.withCtx(()=>[e.createVNode(e.unref(xo),{onTabChange:Bl},{default:e.withCtx(()=>[e.createVNode(e.unref(kl),{header:d.$t("pdfTools.insertFromAlfresco.browse")},{default:e.withCtx(()=>[e.createVNode(qt,{showUserHome:"",showFiles:"",onSelectNode:me})]),_:1},8,["header"]),e.createVNode(e.unref(kl),{header:d.$t("pdfTools.insertFromAlfresco.search")},{default:e.withCtx(()=>[e.createElementVNode("div",Ph,[e.createVNode(e.unref(Me),{modelValue:ze.value,"onUpdate:modelValue":Z[17]||(Z[17]=W=>ze.value=W),placeholder:d.$t("pdfTools.insertFromAlfresco.searchPlaceholder"),onKeyup:e.withKeys(be,["enter"])},null,8,["modelValue","placeholder"]),e.createVNode(e.unref(w),{icon:"ri-search-line","aria-label":d.$t("search"),onClick:be},null,8,["aria-label"])]),ut.value?(e.openBlock(),e.createElementBlock("div",_h,[e.createVNode(e.unref(bt),{class:"spinner-sm",strokeWidth:"8"}),e.createElementVNode("span",null,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.searching")),1)])):!fe.value.length&&et.value?(e.openBlock(),e.createElementBlock("div",Kh,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.noPdfFound")),1)):fe.value.length?(e.openBlock(),e.createElementBlock("div",$h,[e.createElementVNode("div",qh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(fe.value,W=>(e.openBlock(),e.createElementBlock("div",{key:W.id,class:e.normalizeClass(["favorite-item",{"favorite-item-selected":ee.value?.id===W.id}]),onClick:T=>O(W)},[e.createElementVNode("div",t5,[Z[24]||(Z[24]=e.createElementVNode("i",{class:"ri-file-pdf-line","aria-hidden":"true"},null,-1)),e.withDirectives((e.openBlock(),e.createElementBlock("span",l5,[e.createTextVNode(e.toDisplayString(W.name),1)])),[[N,W.name,void 0,{top:!0}]])])],10,e5))),128))]),e.createElementVNode("div",a5,[ee.value?Zt.value?(e.openBlock(),e.createElementBlock("div",i5,[e.createVNode(e.unref(bt),{class:"w-3rem h-3rem",strokeWidth:"6"}),e.createElementVNode("p",n5,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.loadingPreview")),1)])):e.unref(ct)?(e.openBlock(),e.createElementBlock("div",c5,[Fe.value>0?(e.openBlock(),e.createElementBlock("div",r5,[e.createVNode(e.unref(w),{icon:"ri-arrow-left-s-line","aria-label":d.$t("pdf.previousPage"),class:"p-button-text p-button-sm",disabled:Le.value<=1,onClick:se},null,8,["aria-label","disabled"]),e.createElementVNode("span",d5,e.toDisplayString(Le.value)+" / "+e.toDisplayString(Fe.value),1),e.createVNode(e.unref(w),{icon:"ri-arrow-right-s-line","aria-label":d.$t("pdf.nextPage"),class:"p-button-text p-button-sm",disabled:Le.value>=Fe.value,onClick:_},null,8,["aria-label","disabled"])])):e.createCommentVNode("",!0),e.createElementVNode("div",b5,[e.createVNode(e.unref(vt.VuePDF),{pdf:e.unref(ct),page:Le.value,scale:.6,annotations:!1,text:!1},null,8,["pdf","page"])])])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",o5,[Z[25]||(Z[25]=e.createElementVNode("i",{class:"ri-file-pdf-line text-6xl text-color-secondary","aria-hidden":"true"},null,-1)),e.createElementVNode("p",s5,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.selectPdfToPreview")),1)]))])])):e.createCommentVNode("",!0)]),_:1},8,["header"]),e.createVNode(e.unref(kl),{header:d.$t("pdfTools.insertFromAlfresco.favorites")},{default:e.withCtx(()=>[At.value?(e.openBlock(),e.createElementBlock("div",m5,[e.createVNode(e.unref(bt),{class:"spinner-sm",strokeWidth:"8"}),e.createElementVNode("span",null,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.loading")),1)])):tt.value.length?(e.openBlock(),e.createElementBlock("div",u5,[e.createElementVNode("div",Z5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(tt.value,W=>(e.openBlock(),e.createElementBlock("div",{key:W.id,class:e.normalizeClass(["favorite-item",{"favorite-item-selected":ee.value?.id===W.id}]),onClick:T=>O(W)},[e.createElementVNode("div",y5,[Z[26]||(Z[26]=e.createElementVNode("i",{class:"ri-file-pdf-line","aria-hidden":"true"},null,-1)),e.withDirectives((e.openBlock(),e.createElementBlock("span",W5,[e.createTextVNode(e.toDisplayString(W.name),1)])),[[N,W.name,void 0,{top:!0}]])])],10,h5))),128))]),e.createElementVNode("div",g5,[ee.value?Zt.value?(e.openBlock(),e.createElementBlock("div",X5,[e.createVNode(e.unref(bt),{class:"w-3rem h-3rem",strokeWidth:"6"}),e.createElementVNode("p",z5,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.loadingPreview")),1)])):e.unref(ct)?(e.openBlock(),e.createElementBlock("div",A5,[Fe.value>0?(e.openBlock(),e.createElementBlock("div",M5,[e.createVNode(e.unref(w),{icon:"ri-arrow-left-s-line","aria-label":d.$t("pdf.previousPage"),class:"p-button-text p-button-sm",disabled:Le.value<=1,onClick:se},null,8,["aria-label","disabled"]),e.createElementVNode("span",O5,e.toDisplayString(Le.value)+" / "+e.toDisplayString(Fe.value),1),e.createVNode(e.unref(w),{icon:"ri-arrow-right-s-line","aria-label":d.$t("pdf.nextPage"),class:"p-button-text p-button-sm",disabled:Le.value>=Fe.value,onClick:_},null,8,["aria-label","disabled"])])):e.createCommentVNode("",!0),e.createElementVNode("div",j5,[e.createVNode(e.unref(vt.VuePDF),{pdf:e.unref(ct),page:Le.value,scale:.6,annotations:!1,text:!1},null,8,["pdf","page"])])])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Y5,[Z[27]||(Z[27]=e.createElementVNode("i",{class:"ri-file-pdf-line text-6xl text-color-secondary","aria-hidden":"true"},null,-1)),e.createElementVNode("p",N5,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.selectPdfToPreview")),1)]))])])):(e.openBlock(),e.createElementBlock("div",p5,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.noPdfFavorite")),1))]),_:1},8,["header"]),e.createVNode(e.unref(kl),{header:d.$t("pdfTools.insertFromAlfresco.linkOrId")},{default:e.withCtx(()=>[e.createElementVNode("div",G5,[e.createElementVNode("div",T5,[e.createElementVNode("label",w5,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.alfrescoIdUrl")),1),e.createVNode(e.unref(Me),{id:"alfrescoNodeId",modelValue:Q.value,"onUpdate:modelValue":Z[18]||(Z[18]=W=>Q.value=W),placeholder:d.$t("pdfTools.insertFromAlfresco.alfrescoIdUrlHint")},null,8,["modelValue","placeholder"]),e.createElementVNode("small",I5,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.alfrescoIdUrlHint")),1)])])]),_:1},8,["header"])]),_:1})]),_:1},8,["visible","header"])])}}},[["__scopeId","data-v-b1c995ff"]]),F5={class:"version-selectors"},V5={class:"version-selector-group"},x5={key:0,class:"flex align-items-center gap-2"},S5={key:1},J5={class:"flex align-items-center gap-2"},U5={class:"version-selector-group"},H5={key:0,class:"flex align-items-center gap-2"},Q5={key:1},B5={class:"flex align-items-center gap-2"},E5={key:0,class:"diff-content"},P5={class:"diff-headers"},_5={class:"header-a"},K5={class:"header-b"},$5={class:"diff-viewer"},q5={key:0,class:"loading-container"},ey={key:1,class:"error-container"},Ao=H({__name:"DiffViewerDialog",props:{visible:{type:Boolean,required:!0},contentNode:{type:Object,required:!0},versions:{type:Array,default:()=>[]},initialVersionId:{type:String,default:null}},emits:["update:visible","revertVersion"],setup(l,{emit:t}){const{t:a}=Pt.useI18n(),i=t2.useToast(),o=ya(),s=l,n=t,c=e.ref(s.visible),r=e.ref(null),m=e.ref(null),h=e.ref(""),u=e.ref(""),b=e.ref(!1),y=e.ref(null),g=e.ref(null),X=e.ref(null),M=e.computed(()=>{if(!s.versions)return[];const f=s.versions.map(R=>({label:`${a("diffViewer.version")} ${R.entry.id} (${new Date(R.entry.modifiedAt).toLocaleDateString()})`,id:R.entry.id})).reverse();return f.map((R,te)=>({...R,isCurrent:te===f.length-1}))}),A=e.computed(()=>M.value.filter(f=>f.id!==m.value)),F=e.computed(()=>M.value.filter(f=>f.id!==r.value)),U=e.computed(()=>{switch(s.contentNode?.content?.mimeType||""){case"text/html":return[Eo.html()];case"text/markdown":case"text/x-markdown":return[oa.markdown()];case"application/json":return[fa.json()];case"application/xml":case"text/xml":return[va.xml()];case"application/x-yaml":case"text/yaml":return[sa.yaml()];default:return[]}}),j=f=>{c.value=f,n("update:visible",f)},I=async()=>{if(!(!r.value||!m.value)){b.value=!0,y.value=null;try{const[f,R]=await Promise.all([V.getVersionContent(s.contentNode.id,r.value),V.getVersionContent(s.contentNode.id,m.value)]);let te=await f.text(),le=await R.text();if(s.contentNode?.content?.mimeType==="application/json")try{te=JSON.stringify(JSON.parse(te),null,2),le=JSON.stringify(JSON.parse(le),null,2)}catch(S){console.error("Failed to format JSON:",S)}h.value=te,u.value=le,b.value=!1,await e.nextTick(),D()}catch(f){console.error("Error fetching versions:",f),y.value=a("diffViewer.errors.loadError"),b.value=!1}}},D=()=>{if(X.value&&(X.value.destroy(),X.value=null),!g.value||!h.value&&!u.value)return;const f=o.dark?Bo.oneDark:_t.syntaxHighlighting(_t.defaultHighlightStyle,{fallback:!0}),R=[we.lineNumbers(),...U.value,f,Ot.EditorState.readOnly.of(!0)];try{X.value=new Uc.MergeView({a:{doc:h.value,extensions:R},b:{doc:u.value,extensions:R},parent:g.value})}catch(te){console.error("Error creating MergeView:",te),y.value="Failed to create diff view: "+te.message}},K=()=>{if(M.value.length>=2){const f=M.value.length;s.initialVersionId&&M.value.some(R=>R.id===s.initialVersionId)?(r.value=s.initialVersionId,m.value=M.value[f-1]?.id===s.initialVersionId?M.value[f-2]?.id:M.value[f-1]?.id):(r.value=M.value[f-2]?.id,m.value=M.value[f-1]?.id)}},x=f=>M.value.find(R=>R.id===f)?.isCurrent,C=async f=>{const R=a("diffViewer.restoredVersionComment",{versionNumber:f});try{await V.revertVersion(s.contentNode.id,f,R),n("revertVersion"),i.add({severity:"success",summary:a("diffViewer.revertVersion.success"),detail:a("diffViewer.revertVersion.successDetail"),life:3e3}),j(!1)}catch(te){console.error("Error reverting version:",te),i.add({severity:"error",summary:a("diffViewer.revertVersion.error"),detail:te.message,life:3e3})}};return e.watch(()=>s.visible,f=>{c.value=f,f?K():(X.value&&(X.value.destroy(),X.value=null),r.value=null,m.value=null,h.value="",u.value="",y.value=null)}),e.watch([r,m],()=>{r.value&&m.value&&I()}),e.watch(()=>s.versions,f=>{f&&f.length>=2&&c.value&&K()},{deep:!0}),(f,R)=>{const te=e.resolveDirective("tooltip");return e.openBlock(),e.createBlock(e.unref(ke),{visible:c.value,"onUpdate:visible":[R[4]||(R[4]=le=>c.value=le),j],header:f.$t("diffViewer.compareTitle"),modal:"",maximizable:"",class:"diff-viewer-dialog"},{default:e.withCtx(()=>[e.createElementVNode("div",F5,[e.createElementVNode("div",V5,[e.createVNode(e.unref(gt),{modelValue:r.value,"onUpdate:modelValue":R[0]||(R[0]=le=>r.value=le),options:A.value,"option-label":"label","option-value":"id",placeholder:f.$t("diffViewer.selectVersionA"),class:"flex-grow-1"},{value:e.withCtx(le=>[le.value?(e.openBlock(),e.createElementBlock("div",x5,[e.createElementVNode("span",null,e.toDisplayString(M.value.find(S=>S.id===le.value)?.label),1),M.value.find(S=>S.id===le.value)?.isCurrent?(e.openBlock(),e.createBlock(e.unref(Fl),{key:0,value:f.$t("diffViewer.currentVersion"),severity:"info"},null,8,["value"])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("span",S5,e.toDisplayString(le.placeholder),1))]),option:e.withCtx(le=>[e.createElementVNode("div",J5,[e.createElementVNode("span",null,e.toDisplayString(le.option.label),1),le.option.isCurrent?(e.openBlock(),e.createBlock(e.unref(Fl),{key:0,value:f.$t("diffViewer.currentVersion"),severity:"info"},null,8,["value"])):e.createCommentVNode("",!0)])]),_:1},8,["modelValue","options","placeholder"]),r.value&&!x(r.value)?e.withDirectives((e.openBlock(),e.createBlock(e.unref(w),{key:0,type:"button",icon:"ri-history-line","aria-label":f.$t("diffViewer.revertToThisVersion",{versionNumber:r.value}),onClick:R[1]||(R[1]=le=>C(r.value)),severity:"secondary",rounded:"",text:""},null,8,["aria-label"])),[[te,f.$t("diffViewer.revertToThisVersion",{versionNumber:r.value}),void 0,{top:!0}]]):e.createCommentVNode("",!0)]),e.createElementVNode("div",U5,[e.createVNode(e.unref(gt),{modelValue:m.value,"onUpdate:modelValue":R[2]||(R[2]=le=>m.value=le),options:F.value,"option-label":"label","option-value":"id",placeholder:f.$t("diffViewer.selectVersionB"),class:"flex-grow-1"},{value:e.withCtx(le=>[le.value?(e.openBlock(),e.createElementBlock("div",H5,[e.createElementVNode("span",null,e.toDisplayString(M.value.find(S=>S.id===le.value)?.label),1),M.value.find(S=>S.id===le.value)?.isCurrent?(e.openBlock(),e.createBlock(e.unref(Fl),{key:0,value:f.$t("diffViewer.currentVersion"),severity:"info"},null,8,["value"])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("span",Q5,e.toDisplayString(le.placeholder),1))]),option:e.withCtx(le=>[e.createElementVNode("div",B5,[e.createElementVNode("span",null,e.toDisplayString(le.option.label),1),le.option.isCurrent?(e.openBlock(),e.createBlock(e.unref(Fl),{key:0,value:f.$t("diffViewer.currentVersion"),severity:"info"},null,8,["value"])):e.createCommentVNode("",!0)])]),_:1},8,["modelValue","options","placeholder"]),m.value&&!x(m.value)?e.withDirectives((e.openBlock(),e.createBlock(e.unref(w),{key:0,type:"button",icon:"ri-history-line","aria-label":f.$t("diffViewer.revertToThisVersion",{versionNumber:m.value}),onClick:R[3]||(R[3]=le=>C(m.value)),severity:"secondary",rounded:"",text:""},null,8,["aria-label"])),[[te,f.$t("diffViewer.revertToThisVersion",{versionNumber:m.value}),void 0,{top:!0}]]):e.createCommentVNode("",!0)])]),r.value&&m.value?(e.openBlock(),e.createElementBlock("div",E5,[e.createElementVNode("div",P5,[e.createElementVNode("div",_5,[e.createElementVNode("strong",null,e.toDisplayString(f.$t("diffViewer.version"))+" "+e.toDisplayString(r.value),1)]),e.createElementVNode("div",K5,[e.createElementVNode("strong",null,e.toDisplayString(f.$t("diffViewer.version"))+" "+e.toDisplayString(m.value),1)])]),e.createElementVNode("div",$5,[b.value?(e.openBlock(),e.createElementBlock("div",q5,[e.createVNode(e.unref(bt))])):y.value?(e.openBlock(),e.createElementBlock("div",ey,[R[5]||(R[5]=e.createElementVNode("i",{class:"ri-error-warning-line mr-2 text-2xl","aria-hidden":"true"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(y.value),1)])):(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"mergeViewContainer",ref:g},null,512))])])):e.createCommentVNode("",!0)]),_:1},8,["visible","header"])}}},[["__scopeId","data-v-41095169"]]),ty={reconnectInterval:1e3,maxReconnectInterval:3e4,reconnectDecay:1.5,maxReconnectAttempts:10,heartbeatInterval:3e4,messageBufferSize:100},_e={DISCONNECTED:"disconnected",CONNECTING:"connecting",CONNECTED:"connected",RECONNECTING:"reconnecting",ERROR:"error"};function dc(l={}){const t={...ty,...l},a=e.ref(_e.DISCONNECTED),i=e.ref(null),o=e.ref(null),s=e.ref(0),n=e.shallowRef([]);let c=null,r=null,m=null,h=null,u=!1;const b={onConnected:[],onDisconnected:[],onMessage:[],onError:[],onReconnecting:[]},y=(R,te)=>(b[R]&&b[R].push(te),()=>g(R,te)),g=(R,te)=>{if(b[R]){const le=b[R].indexOf(te);le>-1&&b[R].splice(le,1)}},X=(R,...te)=>{b[R]&&b[R].forEach(le=>le(...te))},M=R=>new Promise((te,le)=>{if(c&&c.readyState===WebSocket.OPEN){te();return}h=R,u=!1,a.value=_e.CONNECTING;try{c=new WebSocket(R),c.onopen=()=>{a.value=_e.CONNECTED,s.value=0,i.value=null,j(),x(),X("onConnected"),te()},c.onclose=S=>{I(),o.value=S.code,a.value=_e.DISCONNECTED,u||(console.error(`[CollabWebSocket] Connection closed unexpectedly: code=${S.code}, reason="${S.reason}", wasClean=${S.wasClean}`),S.code===1009?a.value=_e.ERROR:D()),X("onDisconnected",S)},c.onerror=S=>{i.value=S,a.value=_e.ERROR,X("onError",S),le(S)},c.onmessage=S=>{try{const oe=JSON.parse(S.data);U(oe)}catch(oe){console.error("[CollabWebSocket] Failed to parse message:",oe)}}}catch(S){i.value=S,a.value=_e.ERROR,X("onError",S),le(S)}}),A=()=>{u=!0,I(),K(),c&&(c.close(1e3,"User disconnected"),c=null),a.value=_e.DISCONNECTED,n.value=[]},F=R=>{const te=JSON.stringify(R);return c&&c.readyState===WebSocket.OPEN?(c.send(te),!0):(n.value.length<t.messageBufferSize?n.value=[...n.value,te]:console.warn("[CollabWebSocket] Message buffer full, dropping message"),!1)},U=R=>{R.type!=="pong"&&X("onMessage",R)},j=()=>{I(),r=setInterval(()=>{c&&c.readyState===WebSocket.OPEN&&F({type:"ping"})},t.heartbeatInterval)},I=()=>{r&&(clearInterval(r),r=null)},D=()=>{if(s.value>=t.maxReconnectAttempts){console.error("[CollabWebSocket] Max reconnection attempts reached"),a.value=_e.ERROR;return}a.value=_e.RECONNECTING,s.value++;const R=Math.min(t.reconnectInterval*Math.pow(t.reconnectDecay,s.value-1),t.maxReconnectInterval);X("onReconnecting",s.value,R),m=setTimeout(()=>{h&&!u&&(n.value=[],M(h).catch(()=>{}))},R)},K=()=>{m&&(clearTimeout(m),m=null)},x=()=>{if(c&&c.readyState===WebSocket.OPEN&&n.value.length>0){const R=[...n.value];n.value=[],R.forEach(te=>{c.send(te)})}},C=()=>{s.value=0,u=!1},f=()=>c&&c.readyState===WebSocket.OPEN;return e.onUnmounted(()=>{A()}),{connectionState:e.readonly(a),lastError:e.readonly(i),lastCloseCode:e.readonly(o),reconnectAttempts:e.readonly(s),bufferedMessages:e.readonly(n),connect:M,disconnect:A,send:F,isConnected:f,resetReconnectAttempts:C,on:y,off:g}}class ly{constructor(){this.basePath="/api/collab"}getBaseUrl(){return ae.config.hostEcm}async getTicket(){return ae.getTicketEcm()}createAuthHeader(t){return`Basic ${btoa(`ROLE_TICKET:${t}`)}`}async checkAvailability(t){try{const a=await this.getTicket(),i=await fetch(`${this.getBaseUrl()}/alfresco/s${this.basePath}/availability/${t}`,{method:"GET",headers:{Accept:"application/json",Authorization:this.createAuthHeader(a)}});if(!i.ok){if(i.status===404)return{available:!1,enabled:!1,permissionLevel:"NONE"};if(i.status===403)return{available:!1,enabled:!0,permissionLevel:"NONE",reason:"NO_READ_PERMISSION"};throw new Error(`HTTP ${i.status}: ${i.statusText}`)}return await i.json()}catch(a){throw console.error("[CollabService] Error checking availability:",a),P("collabService.checkAvailability",a)}}async initSession(t){try{const a=await this.getTicket(),i=await fetch(`${this.getBaseUrl()}/alfresco/s${this.basePath}/session/init`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:this.createAuthHeader(a)},body:JSON.stringify({nodeId:t})});if(!i.ok){const o=await i.json();throw new Error(o.error||`HTTP ${i.status}`)}return await i.json()}catch(a){throw console.error("[CollabService] Error initializing session:",a),P("collabService.initSession",a)}}getWebSocketUrl(){const t=this.getBaseUrl(),a=t.startsWith("https")?"wss":"ws",i=t.replace(/^https?:\/\//,"");return`${a}://${i}/alfresco/collab`}generateClientId(){const t="pristy.collab.clientId",a=()=>`client-${Date.now()}-${Math.random().toString(36).substring(2,11)}`;try{let i=sessionStorage.getItem(t);return i||(i=a(),sessionStorage.setItem(t,i)),i}catch{return a()}}}const Tt=new ly,ay="pristy-collab-backups",xt="backups",oy=1;let zl=null;const Mo=()=>zl?Promise.resolve(zl):new Promise((l,t)=>{const a=indexedDB.open(ay,oy);a.onupgradeneeded=i=>{const o=i.target.result;o.objectStoreNames.contains(xt)||o.createObjectStore(xt,{keyPath:"nodeId"})},a.onsuccess=i=>{zl=i.target.result,zl.onclose=()=>{zl=null},l(zl)},a.onerror=i=>{t(i.target.error)}}),St={async saveBackup(l,t,a){try{const i=await Mo();return new Promise((o,s)=>{const n=i.transaction(xt,"readwrite");n.objectStore(xt).put({nodeId:l,content:t,timestamp:Date.now(),sessionId:a}),n.oncomplete=()=>o(),n.onerror=r=>s(r.target.error)})}catch(i){console.warn("[CollabBackup] Failed to save backup:",i)}},async loadBackup(l){try{const t=await Mo();return new Promise((a,i)=>{const n=t.transaction(xt,"readonly").objectStore(xt).get(l);n.onsuccess=()=>a(n.result||null),n.onerror=c=>i(c.target.error)})}catch(t){return console.warn("[CollabBackup] Failed to load backup:",t),null}},async clearBackup(l){try{const t=await Mo();return new Promise((a,i)=>{const o=t.transaction(xt,"readwrite");o.objectStore(xt).delete(l),o.oncomplete=()=>a(),o.onerror=n=>i(n.target.error)})}catch(t){console.warn("[CollabBackup] Failed to clear backup:",t)}}},Jt="editor",al="observer",Oo=2;class sy extends we.WidgetType{constructor(t){super(),this.peer=t}toDOM(){const t=document.createElement("span");t.className="cm-remote-cursor",t.style.borderLeft=`2px solid ${this.peer.color}`,t.style.marginLeft="-1px",t.style.position="relative";const a=document.createElement("span");return a.className="cm-remote-cursor-label",a.style.backgroundColor=this.peer.color,a.style.color="#fff",a.style.padding="1px 4px",a.style.borderRadius="3px",a.style.fontSize="10px",a.style.position="absolute",a.style.top="-18px",a.style.left="0",a.style.whiteSpace="nowrap",a.textContent=this.peer.displayName,t.appendChild(a),t}}const bc=Ot.StateEffect.define(),za=Ot.StateField.define({create(){return[]},update(l,t){for(const a of t.effects)if(a.is(bc))return a.value;return l}}),iy=we.ViewPlugin.fromClass(class{constructor(l){this.decorations=this.createDecorations(l)}update(l){(l.docChanged||l.state.field(za)!==l.startState.field(za))&&(this.decorations=this.createDecorations(l.view))}createDecorations(l){const t=l.state.field(za),a=[];for(const i of t)if(i.position>=0&&i.position<=l.state.doc.length&&(a.push(we.Decoration.widget({widget:new sy(i),side:1}).range(i.position)),i.anchor!==i.position)){const o=Math.min(i.anchor,i.position),s=Math.max(i.anchor,i.position);a.push(we.Decoration.mark({class:"cm-remote-selection",attributes:{style:`background-color: ${i.color}33`}}).range(o,s))}return we.Decoration.set(a,!0)}},{decorations:l=>l.decorations});function mc(){const l=e.ref(!1),t=e.ref(null),a=e.ref(null),i=e.ref(null),o=e.ref(null),s=e.shallowRef([]),n=e.shallowRef([]),c=e.ref(0),r=e.ref(null),m=e.ref(!1),h=e.ref(!1),u=e.ref(!1),b=e.ref(null);let y=null,g=null,X=null;const{connectionState:M,lastCloseCode:A,connect:F,disconnect:U,send:j,on:I,off:D,resetReconnectAttempts:K}=dc();let x=null,C=null,f=null,R=null,te=null;const le=new Ot.Compartment;let S=null,oe=null;const Ie=O=>{console.log("[CollabEditor] setEditorView:",O?"view set":"view cleared"),x=O},wt=e.computed(()=>s.value.length),Te=e.computed(()=>M.value===_e.CONNECTED),re=e.computed(()=>M.value===_e.RECONNECTING),Je=e.computed(()=>M.value===_e.ERROR),He=e.computed(()=>o.value===Jt),Qe=e.computed(()=>o.value===al),Be=e.computed(()=>s.value.filter(O=>O.role===Jt).length),k=e.computed(()=>s.value.filter(O=>O.role===al).length),Q=e.computed(()=>b.value==="WRITE"),E=e.computed(()=>b.value==="READ"||b.value==="WRITE"),ee=O=>[Kt.collab({startVersion:O,clientID:a.value,sharedEffects:_=>{if(_.selection){const se=_.selection.main;Mt(se.head,se.anchor)}return[]}}),za,iy,le.of(we.EditorView.editable.of(!0))],ce=async O=>new Promise((_,se)=>{const me=setTimeout(()=>{D("onMessage",be),se(new Error("Authentication timeout"))},5e3),be=ye=>{ye.type==="authenticated"?(clearTimeout(me),D("onMessage",be),_()):ye.type==="error"&&ye.code==="AUTH_FAILED"&&(clearTimeout(me),D("onMessage",be),se(new Error(ye.message||"Authentication failed")))};I("onMessage",be),j({type:"auth",ticket:O})}),ze=async(O,_,se,me=al,be=null,ye=null,rt=null)=>{l.value&&await fe(),m.value=!1,h.value=!1,u.value=!1;try{C=O,x=_,a.value=Tt.generateClientId(),S=se,y=be,g=ye,X=rt,S=se,oe=me;const ht=await Tt.checkAvailability(C);if(b.value=ht.permissionLevel||"WRITE",!ht.enabled)throw new Error("Collaborative editing is not available for this document");if(ht.permissionLevel==="NONE")throw new Error("Access denied to this document");ht.permissionLevel==="READ"&&me===Jt&&(me=al);const Pl=Tt.getWebSocketUrl();I("onMessage",At),I("onDisconnected",ol),I("onReconnecting",Ol),I("onConnected",Ml),await F(Pl);const _l=await Tt.getTicket();return await ce(_l),new Promise((nl,cl)=>{const rl=setTimeout(()=>{cl(new Error("Timeout waiting for welcome message"))},1e4),It=lt=>{lt.type==="welcome"?(clearTimeout(rl),D("onMessage",It),ut(lt),nl(lt)):lt.type==="error"&&(clearTimeout(rl),D("onMessage",It),lt.code==="SESSION_FULL"?m.value=!0:lt.code==="INVALID_DOCUMENT"&&(h.value=!0),cl(new Error(lt.message)))};I("onMessage",It),j({type:"join",nodeId:C,clientId:a.value,displayName:se,mode:me,protocolVersion:Oo})})}catch(ht){throw r.value=ht,ht}},fe=async()=>{if(l.value){if(f&&(clearTimeout(f),f=null),R&&(clearInterval(R),R=null),x&&C){const O=x.state.doc.toString();await St.saveBackup(C,O,t.value)}t.value&&a.value&&j({type:"leave",sessionId:t.value,clientId:a.value}),D("onMessage",At),D("onDisconnected",ol),D("onReconnecting",Ol),D("onConnected",Ml),U(),l.value=!1,t.value=null,s.value=[],n.value=[],i.value=null,o.value=null,b.value=null,y=null,g=null,X=null,x=null,C=null,S=null,oe=null}},ut=O=>{t.value=O.sessionId,c.value=O.version,i.value=O.color,o.value=O.role||al,s.value=O.peers||[],l.value=!0,Pe(),R&&clearInterval(R),R=setInterval(()=>{if(x&&C){const _=x.state.doc.toString();_!==te&&(te=_,St.saveBackup(C,_,t.value))}},1e4)},et=O=>O.toJSON(),tt=O=>Ot.ChangeSet.fromJSON(O),At=O=>{switch(O.type){case"updates":Zt(O);break;case"peers":nt(O);break;case"cursor":ct(O);break;case"promoted":Fe(O);break;case"saved":De(O);break;case"resync":jl(O);break;case"error":Le(O);break}},Zt=O=>{if(!x&&y&&O.document!==void 0){y(O.document,O.version);return}if(!x)return;const _=O.updates.map(se=>({changes:tt(se.changes),clientID:se.clientID}));try{const se=Kt.receiveUpdates(x.state,_);x.dispatch(se),Kt.sendableUpdates(x.state).length>0&&Gl()}catch(se){console.error("[CollabEditor] Error applying updates:",se)}},nt=O=>{s.value=O.peers.filter(_=>_.clientId!==a.value),Pe()},ct=O=>{if(O.clientId===a.value)return;const _=s.value.find(se=>se.clientId===O.clientId);_&&(_.cursorPosition=O.position,_.cursorAnchor=O.anchor,Pe())},Le=O=>{r.value=new Error(O.message),console.error("[CollabEditor] Server error:",O.code,O.message,O.details),O.code==="SESSION_FULL"?(m.value=!0,fe()):O.code==="INVALID_DOCUMENT"?(h.value=!0,fe()):O.code==="ACCESS_DENIED"?fe():O.code==="INCOMPATIBLE_PROTOCOL"&&(u.value=!0,fe())},Fe=O=>{o.value=Jt,c.value=O.version,y&&O.document!==void 0&&y(O.document,O.version)},De=O=>{g&&g(O.sessionId),C&&St.clearBackup(C),x&&(te=x.state.doc.toString())},Ee=O=>{x?(console.log(`[CollabEditor] Setting editor editable=${O}`),x.dispatch({effects:le.reconfigure(we.EditorView.editable.of(O))})):console.warn("[CollabEditor] Cannot toggle editable: editorView is null")},ol=()=>{if(Ee(!1),x&&C){const O=x.state.doc.toString();St.saveBackup(C,O,t.value)}},Ml=async()=>{if(!(!l.value||!C)){console.log("[CollabEditor] Reconnected, re-authenticating and re-joining");try{const O=await Tt.getTicket();return await ce(O),new Promise((_,se)=>{const me=setTimeout(()=>{D("onMessage",be),se(new Error("Timeout waiting for welcome after reconnection"))},1e4),be=ye=>{ye.type==="welcome"?(clearTimeout(me),D("onMessage",be),ut(ye),X&&X(ye.document,ye.version),_()):ye.type==="error"&&(clearTimeout(me),D("onMessage",be),console.error("[CollabEditor] Error during reconnection:",ye.message),se(new Error(ye.message)))};I("onMessage",be),j({type:"join",nodeId:C,clientId:a.value,displayName:S,mode:oe,protocolVersion:Oo})})}catch(O){console.error("[CollabEditor] Reconnection auth/join failed:",O)}}},Ol=(O,_)=>{console.log(`[CollabEditor] Reconnecting in ${_}ms (attempt ${O})`)},jl=O=>{c.value=O.version,s.value=(O.peers||[]).filter(_=>_.clientId!==a.value),Pe(),X?X(O.document,O.version):y&&y(O.document,O.version)},Ue=()=>{if(!x||!l.value||!Te.value){console.log("[CollabEditor] pushChanges skipped:",x?l.value?"not connected":"collab inactive":"no editorView");return}const O=Kt.sendableUpdates(x.state);if(O.length===0)return;const _=Kt.getSyncedVersion(x.state),se=O.map(me=>({clientID:me.clientID,changes:et(me.changes)}));j({type:"push",sessionId:t.value,clientId:a.value,version:_,updates:se})},Gl=()=>{f&&clearTimeout(f),f=setTimeout(Ue,50)};let sl=null;const Mt=(O,_)=>{sl&&clearTimeout(sl),sl=setTimeout(()=>{l.value&&Te.value&&j({type:"cursor",sessionId:t.value,clientId:a.value,position:O,anchor:_})},100)},Pe=()=>{if(!x)return;const O=s.value.filter(_=>_.cursorPosition!==void 0).map(_=>({clientId:_.clientId,displayName:_.displayName,color:_.color,position:_.cursorPosition,anchor:_.cursorAnchor||_.cursorPosition}));n.value=O,x.dispatch({effects:bc.of(O)})},il=()=>O=>{O.docChanged&&l.value&&Gl()},Bl=()=>new Promise((O,_)=>{if(!l.value||!Te.value){_(new Error("Not connected to collaborative session"));return}if(o.value===Jt){O({role:Jt});return}const se=setTimeout(()=>{D("onMessage",me),_(new Error("Timeout waiting for promotion confirmation"))},1e4),me=be=>{be.type==="promoted"?(clearTimeout(se),D("onMessage",me),O(be)):be.type==="error"&&be.context==="promote"&&(clearTimeout(se),D("onMessage",me),_(new Error(be.message)))};I("onMessage",me),j({type:"promote",sessionId:t.value,clientId:a.value})}),El=()=>new Promise((O,_)=>{if(!l.value||!Te.value){_(new Error("Not connected to collaborative session"));return}const se=setTimeout(()=>{D("onMessage",me),_(new Error("Timeout waiting for save confirmation"))},1e4),me=be=>{be.type==="saved"?(clearTimeout(se),D("onMessage",me),O(be)):be.type==="error"&&be.context==="save"&&(clearTimeout(se),D("onMessage",me),_(new Error(be.message)))};I("onMessage",me),j({type:"save",sessionId:t.value,clientId:a.value})}),Ut=async()=>{if(!C||!l.value)throw new Error("No active collab session to retry");K();const O=Tt.getWebSocketUrl();await F(O);const _=await Tt.getTicket();return await ce(_),new Promise((se,me)=>{const be=setTimeout(()=>{D("onMessage",ye),me(new Error("Timeout waiting for welcome after retry"))},1e4),ye=rt=>{rt.type==="welcome"?(clearTimeout(be),D("onMessage",ye),ut(rt),X&&X(rt.document,rt.version),se()):rt.type==="error"&&(clearTimeout(be),D("onMessage",ye),me(new Error(rt.message)))};I("onMessage",ye),j({type:"join",nodeId:C,clientId:a.value,displayName:S,mode:oe,protocolVersion:Oo})})};return e.onUnmounted(()=>{fe()}),{isCollabActive:l,isSessionFull:m,isInvalidDocument:h,isProtocolIncompatible:u,permissionLevel:b,sessionId:t,clientId:a,myColor:i,myRole:o,connectedPeers:s,remoteCursors:n,connectionState:M,lastError:r,startVersion:c,lastCloseCode:A,peerCount:wt,isConnected:Te,isConnectionFailed:Je,isReconnecting:re,isEditor:He,isObserver:Qe,editorCount:Be,observerCount:k,hasWritePermission:Q,hasReadPermission:E,startCollab:ze,stopCollab:fe,setEditorView:Ie,createCollabExtensions:ee,createUpdateListener:il,pushChanges:Ue,requestSave:El,promoteToEditor:Bl,retryConnection:Ut}}const pc=$.defineStore({id:"CollabStore",state:()=>({enabled:!1,loaded:!1,activeSession:null,activeNodeId:null,connectedPeers:[],connectionState:"disconnected",myColor:null,lastError:null,maxPeers:5}),getters:{peerCount:l=>l.connectedPeers.length,hasActivePeers:l=>l.connectedPeers.length>0,isCollabActive:l=>l.activeSession!==null,isConnected:l=>l.connectionState==="connected",isReconnecting:l=>l.connectionState==="reconnecting",isAvailable:l=>l.enabled&&l.loaded},actions:{async init(){try{const l=de();this.enabled=l.COLLAB_ENABLED!==!1,this.maxPeers=l.COLLAB_MAX_PEERS||5,this.loaded=!0,console.log("[CollabStore] Initialized, enabled:",this.enabled)}catch(l){console.error("[CollabStore] Failed to initialize:",l),this.enabled=!1,this.loaded=!0}},async checkAvailability(l){if(!this.enabled)return{available:!1,reason:"disabled"};try{return await Tt.checkAvailability(l)}catch(t){return console.error("[CollabStore] Availability check failed:",t),{available:!1,reason:"error",error:t}}},setActiveSession(l){this.activeSession=l?.sessionId||null,this.activeNodeId=l?.nodeId||null,this.myColor=l?.color||null},updatePeers(l){this.connectedPeers=l||[]},setConnectionState(l){this.connectionState=l},setError(l){this.lastError=l},clearSession(){this.activeSession=null,this.activeNodeId=null,this.connectedPeers=[],this.myColor=null,this.connectionState="disconnected",this.lastError=null},addPeer(l){this.connectedPeers.findIndex(a=>a.clientId===l.clientId)===-1&&this.connectedPeers.push(l)},removePeer(l){const t=this.connectedPeers.findIndex(a=>a.clientId===l);t!==-1&&this.connectedPeers.splice(t,1)},updatePeerCursor(l,t,a){const i=this.connectedPeers.find(o=>o.clientId===l);i&&(i.cursorPosition=t,i.cursorAnchor=a)}}}),uc=$.defineStore("ScreenStore",{state:()=>({screenWidth:window.innerWidth,screenHeight:window.innerHeight}),actions:{updateScreenSize(){this.screenWidth=window.innerWidth,this.screenHeight=window.innerHeight}},getters:{isVerySmallScreen:l=>l.screenWidth<=480,isSmallScreen:l=>l.screenWidth<=768,isPortrait:l=>l.screenHeight>l.screenWidth}}),ny={class:"codemirror-editor-root"},cy={key:0,class:"consultation-title col"},ry={key:2,class:"collab-indicators flex align-items-center gap-2 ml-3"},dy={class:"collab-status-text text-sm"},by={key:0,class:"collab-peers flex align-items-center gap-1"},my={key:0,class:"collab-peer-more text-sm"},py={key:1,class:"collab-participant-badges flex align-items-center gap-2"},uy={class:"collab-badge collab-badge-editor flex align-items-center gap-1"},Zy={class:"text-sm font-medium"},hy={class:"collab-badge collab-badge-observer flex align-items-center gap-1"},yy={class:"text-sm font-medium"},Wy={class:"flex gap-2 align-items-center"},gy={class:"flex gap-2 ml-3"},Yy={class:"card editor-wrapper border-1 surface-border border-round overflow-hidden flex flex-column p-0 m-0"},Ny={key:0,class:"edit-mode-wrapper flex-grow-1 flex flex-column min-h-0"},Xy={key:1,class:"consultation-view flex-grow-1"},zy=300,Zc=H({__name:"CodeMirrorEditor",props:{contentUrl:{type:String,default:null},contentNode:{type:Object,default:null},readOnly:{type:Boolean,default:!1},isSharedLink:{type:Boolean,default:!1}},setup(l){const{t,te:a}=Pt.useI18n(),i=t2.useToast(),o=Jc.useConfirm(),s=ya(),n=uc(),c=pc(),{isCollabActive:r,isSessionFull:m,connectedPeers:h,isConnected:u,isReconnecting:b,peerCount:y,myRole:g,isEditor:X,isObserver:M,editorCount:A,observerCount:F,startVersion:U,startCollab:j,stopCollab:I,setEditorView:D,createCollabExtensions:K,createUpdateListener:x,requestSave:C,promoteToEditor:f,isConnectionFailed:R,lastCloseCode:te,retryConnection:le}=mc(),S=l,oe=e.ref(""),Ie=e.ref(""),wt=e.ref(null),Te=e.ref(!1),re=e.ref(!1),Je=e.ref(n.isSmallScreen?"editor":"split"),He=e.ref(!1),Qe=e.ref(null),Be=e.ref(null),k=e.ref(null),Q=e.ref(null),E=e.ref(null),ee=e.ref(null),ce=e.shallowRef(null),ze=e.shallowRef(null),fe=e.ref([]),ut=e.ref(!1),et=e.ref(!1),tt=e.ref(null),At=e.ref(null),Zt=e.ref(!1),nt=e.ref(0),ct=e.ref(null),Le=e.ref("");let Fe=null;e.watch(oe,Y=>{clearTimeout(Fe),Fe=setTimeout(()=>{Le.value=Y},zy)},{immediate:!0}),e.onUnmounted(()=>{clearTimeout(Fe)});const{isMarkdown:De,isHtml:Ee,previewBodyHtml:ol,iframeContent:Ml}=go({content:Le,mimeType:Qe});function Ol(){return Q.value||E.value||ee.value}function jl(Y){Y&&(Y.srcdoc=Ml.value,Y._previewInitialized=!1,Y.addEventListener("load",()=>{Y._previewInitialized=!0},{once:!0}))}e.watch([Q,E,ee],([Y,v,q],[ie,Ne,at])=>{const Ke=Y&&Y!==ie&&Y||v&&v!==Ne&&v||q&&q!==at&&q;Ke&&jl(Ke)}),e.watch(ol,Y=>{const v=Ol();!v||!v._previewInitialized||v.contentWindow?.postMessage({type:"preview-update",html:Y},"*")});const Ue=e.computed(()=>oe.value!==Ie.value),Gl=e.computed(()=>fe.value&&fe.value.length>=2),sl=e.computed(()=>{const Y=[{value:"editor",icon:"ri-code-line",label:t("editor.viewMode.editorOnly")}];return n.isSmallScreen||Y.push({value:"split",icon:"ri-layout-column-fill",label:t("editor.viewMode.split")}),Y.push({value:"preview",icon:"ri-eye-line",label:t("editor.viewMode.previewOnly")}),Y}),Mt=Y=>{const v=Y?Be:k;if(!v.value)return;const q=Yl(Qe.value),Ne=[...Nl({editable:Y,showLineNumbers:!0,enableHistory:Y,dark:s.dark,lineWrapping:He.value,onUpdate:Y?$e=>{oe.value=$e}:null})];q&&(!Array.isArray(q)||q.length>0)&&Ne.push(q);const at=Ot.EditorState.create({doc:oe.value,extensions:Ne}),Ke=new we.EditorView({state:at,parent:v.value});Y?ce.value=Ke:ze.value=Ke},Pe=Y=>{Y.value&&(Y.value.destroy(),Y.value=null)},il=async Y=>{if(!(!Y.id&&!Y.shareId))try{let v;S.isSharedLink&&Y.shareId?v=await V.getSharedLinkContent(Y.shareId):v=await V.getNodeContent(Y.id,!1);let q=await v.text();if(Y.content?.mimeType==="application/json")try{q=JSON.stringify(JSON.parse(q),null,2)}catch(ie){console.warn("Failed to format JSON, displaying raw content:",ie.message)}S.readOnly||await Ut(Y),oe.value=q,Ie.value=q,Qe.value=Y.content?.mimeType||"text/plain",await e.nextTick(),!re.value&&!De.value&&!Ee.value&&!ze.value&&Mt(!1)}catch(v){console.error("Failed to load content:",v),i.add({severity:"error",summary:t("error.error"),detail:t("editor.loadError"),life:3e3})}},Bl=async()=>{if(r.value){try{const Y=await C();Ie.value=oe.value,Y.versionLabel?(i.add({severity:"success",summary:t("success"),detail:t("editor.saveSuccessVersion",{version:Y.versionLabel}),life:3e3}),await ye(S.contentNode.id)):i.add({severity:"info",detail:t("editor.alreadySaved"),life:3e3})}catch(Y){i.add({severity:"error",summary:t("error.error"),detail:Y.message,life:4e3})}return}if(Ue.value)try{await V.updateContentNode(S.contentNode.id,oe.value,Qe.value),Ie.value=oe.value,i.add({severity:"success",summary:t("success"),detail:t("editor.saveSuccess"),life:3e3}),await ye(S.contentNode.id)}catch(Y){i.add({severity:"error",summary:t("error.error"),detail:Y.message,life:4e3})}},El=async()=>{try{const Y=await ge.lockNode(S.contentNode.id,{timeToExpire:0,type:"ALLOW_OWNER_CHANGES",lifetime:"EPHEMERAL"});await Ut(Y.entry),await il(Y.entry)}catch{try{const v=await ge.getNode(S.contentNode.id,{include:["properties"]});await Ut(v.entry)}catch{i.add({severity:"error",summary:t("error.error"),detail:t("editor.refreshError"),life:3e3})}}},Ut=async Y=>{const v=Y.properties?.["cm:lockOwner"],q=Ge();v&&v.id!==q.person.id?(Te.value=!0,wt.value=t("node.lockedBy",{name:v.displayName})):(Te.value=!1,wt.value=null)},O=async()=>{if(!r.value)return;await(async()=>{try{Ue.value&&(await C(),Ie.value=oe.value)}catch(ie){i.add({severity:"error",summary:t("error.error"),detail:ie.message,life:4e3});return}await dl();let q=await(await V.getNodeContent(S.contentNode.id,!1)).text();if(S.contentNode.content?.mimeType==="application/json")try{q=JSON.stringify(JSON.parse(q),null,2)}catch{}oe.value=q,Ie.value=q,re.value=!1,await St.clearBackup(S.contentNode.id),await ye(S.contentNode.id),await Ma(S.contentNode.id)})()},_=async()=>{if(r.value){await O();return}if(Ue.value)try{await V.updateContentNode(S.contentNode.id,oe.value,Qe.value),Ie.value=oe.value,i.add({severity:"success",summary:t("success"),detail:t("editor.saveSuccess"),life:3e3})}catch(Y){i.add({severity:"error",summary:t("error.error"),detail:Y.message,life:4e3});return}re.value=!1,await ge.unlockNode(S.contentNode.id).catch(()=>{}),await ye(S.contentNode.id)},se=()=>{const Y=`collab.unavailableDetail.${At.value}`,v=`collab.unavailableReason.${tt.value}`,q=a(Y)?t(Y):a(v)?t(v):t("collab.unavailable");i.add({severity:"warn",summary:t("collab.unavailable"),detail:q,life:5e3})},me=async()=>{if(c.enabled&&et.value){Zt.value=!0;try{re.value=!0,await e.nextTick(),await e.nextTick();let Y=0;for(;!ce.value&&Y<10;)await e.nextTick(),Y++;if(!ce.value)throw new Error("Editor view not created");await vo(),r.value?i.add({severity:"success",summary:t("success"),detail:t("collab.connected"),life:3e3}):(re.value=!1,i.add({severity:"error",summary:t("error.error"),detail:t("collab.initError"),life:4e3}))}catch(Y){console.error("Failed to start collaborative editing:",Y),re.value=!1,i.add({severity:"error",summary:t("error.error"),detail:t("collab.initError"),life:4e3})}finally{Zt.value=!1}}else await El(),Te.value||(re.value=!0)},be=()=>{const Y=document.createElement("a");Y.href=S.contentUrl,Y.download=S.contentNode.name,Y.click()},ye=async Y=>{if(Y)try{const v=await V.listNodeVersionHistory(Y);fe.value=v.list.entries}catch(v){console.error("Error fetching versions:",v)}},rt=()=>{ut.value=!0},ht=async()=>{await il(S.contentNode),await ye(S.contentNode.id)},Pl=async()=>{try{await navigator.clipboard.writeText(oe.value),i.add({severity:"success",detail:t("collab.contentCopied"),life:3e3})}catch{i.add({severity:"error",detail:t("error.error"),life:3e3})}},_l=async()=>{try{await le()}catch{i.add({severity:"error",detail:t("collab.retryFailed"),life:4e3})}},nl=Y=>{r.value&&re.value&&Ue.value&&(Y.preventDefault(),Y.returnValue="")},cl=async Y=>{if(!Y||S.readOnly){et.value=!1;return}try{const v=await c.checkAvailability(Y);ct.value=v.permissionLevel||"WRITE",nt.value=v.maxPeers||0,et.value=v.available===!0&&ct.value!=="NONE",tt.value=!et.value&&v.enabled&&v.reason||null,At.value=!et.value&&v.enabled&&v.details||null}catch(v){console.error("[Collab] Failed to check collab availability:",v),et.value=!1,ct.value=null}},rl=(Y,v)=>{if(!re.value&&Y!==void 0&&(oe.value=Y,Ie.value=Y,ze.value)){const q=ze.value.state.update({changes:{from:0,to:ze.value.state.doc.length,insert:Y}});ze.value.dispatch(q)}},It=()=>{Ie.value=oe.value},lt=async(Y,v)=>{if(oe.value=Y,Ie.value=Y,X.value&&ce.value)await Tl(v);else if(ze.value){const q=ze.value.state.update({changes:{from:0,to:ze.value.state.doc.length,insert:Y}});ze.value.dispatch(q)}},Ma=async Y=>{if(!(!Y||S.readOnly||!c.enabled||!et.value)&&!r.value)try{const v=Ge(),q=v.person?.displayName||v.person?.id||"User";await j(Y,null,q,al,rl,It,lt)}catch(v){console.error("[Collab] Failed to connect as observer:",v)}},vo=async()=>{if(!S.contentNode?.id||!ce.value)throw new Error("Missing node ID or editor view");const Y=Ge(),v=Y.person?.displayName||Y.person?.id||"User";let q,ie;if(r.value&&M.value){const Ne=await f();q=Ne.version??U.value,ie=Ne.document}else{const Ne=await j(S.contentNode.id,null,v,Jt,rl,It,lt);q=Ne.version,ie=Ne.document}ie!==void 0&&(oe.value=ie,Ie.value=ie),await Tl(q),window.addEventListener("beforeunload",nl)},dl=async()=>{window.removeEventListener("beforeunload",nl);try{await I()}catch(Y){console.error("Failed to stop collaborative editing:",Y)}},Tl=async Y=>{if(console.log(`[Collab] recreateEditorWithCollab: version=${Y}`),!Be.value){console.warn("[Collab] recreateEditorWithCollab: no editorContainer, aborting");return}if(Pe(ce),await e.nextTick(),!Be.value){console.warn("[Collab] recreateEditorWithCollab: editorContainer lost after nextTick, aborting");return}const v=Yl(Qe.value),q=Nl({editable:!1,showLineNumbers:!0,enableHistory:!0,dark:s.dark,lineWrapping:He.value,onUpdate:$e=>{oe.value=$e}}),ie=K(Y),Ne=we.EditorView.updateListener.of(x()),at=[...ie,...q,Ne];v&&(!Array.isArray(v)||v.length>0)&&at.push(v);const Ke=Ot.EditorState.create({doc:oe.value,extensions:at});ce.value=new we.EditorView({state:Ke,parent:Be.value}),D(ce.value),console.log("[Collab] recreateEditorWithCollab: editor created with collab extensions")};return c.init(),e.watch(()=>S.contentNode,async Y=>{if(Y&&(il(Y),ye(Y.id),!S.readOnly)){c.loaded||await c.init(),await cl(Y.id);const v=await St.loadBackup(Y.id);v&&v.content&&v.content!==oe.value&&o.require({message:t("collab.recoverBackup"),header:t("collab.recoverBackupHeader"),icon:"ri-error-warning-line",group:"confirmUnsavedChanges",accept:async()=>{oe.value=v.content,re.value=!0,await St.clearBackup(Y.id)},reject:async()=>{await St.clearBackup(Y.id)}}),await Ma(Y.id)}},{immediate:!0}),e.watch(re,async Y=>{Pe(ce),Pe(ze),await e.nextTick(),Y?Je.value!=="preview"&&Mt(!0):!De.value&&!Ee.value&&Mt(!1)}),e.watch(Je,async(Y,v)=>{if(!re.value||!(De.value||Ee.value))return;const q=Y!=="preview",ie=v!=="preview";let Ne=null;r.value&&X.value&&ie&&ce.value&&(Ne=Kt.getSyncedVersion(ce.value.state)),ie&&Pe(ce),q&&(await e.nextTick(),Ne!==null?await Tl(Ne):Mt(!0))}),e.watch(He,async()=>{if(re.value&&Je.value!=="preview"&&ce.value){let Y=null;r.value&&X.value&&(Y=Kt.getSyncedVersion(ce.value.state)),Pe(ce),await e.nextTick(),Y!==null?await Tl(Y):Mt(!0)}else!re.value&&!De.value&&!Ee.value&&ze.value&&(Pe(ze),await e.nextTick(),Mt(!1))}),e.onBeforeUnmount(async()=>{window.removeEventListener("beforeunload",nl),r.value&&await I(),Pe(ce),Pe(ze),re.value&&!Te.value&&!r.value&&ge.unlockNode(S.contentNode.id).catch(()=>{})}),(Y,v)=>{const q=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock("div",ny,[e.createVNode(e.unref(Ia),{class:"consultation-toolbar"},{start:e.withCtx(()=>[l.contentNode?(e.openBlock(),e.createElementBlock("h3",cy,e.toDisplayString(l.contentNode.name),1)):e.createCommentVNode("",!0),Y.$route.params.versionId?(e.openBlock(),e.createBlock(e.unref(la),{key:1,class:"tag-version",value:Y.$route.params.versionId},null,8,["value"])):e.createCommentVNode("",!0),e.unref(r)?(e.openBlock(),e.createElementBlock("div",ry,[e.createElementVNode("span",{class:e.normalizeClass(["collab-status-dot",{connected:e.unref(u),reconnecting:e.unref(b)}])},null,2),e.createElementVNode("span",dy,e.toDisplayString(e.unref(u)?Y.$t("collab.connected"):Y.$t("collab.reconnecting")),1),e.unref(y)>0?(e.openBlock(),e.createElementBlock("div",by,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(h).slice(0,6),ie=>e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:ie.clientId,class:"collab-peer-avatar",style:e.normalizeStyle({backgroundColor:ie.color})},[e.createTextVNode(e.toDisplayString(ie.displayName.charAt(0).toUpperCase()),1)],4)),[[q,ie.displayName,void 0,{bottom:!0}]])),128)),e.unref(y)>6?(e.openBlock(),e.createElementBlock("span",my," +"+e.toDisplayString(e.unref(y)-6),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.unref(r)&&e.unref(u)?(e.openBlock(),e.createElementBlock("div",py,[e.withDirectives((e.openBlock(),e.createElementBlock("div",uy,[v[4]||(v[4]=e.createElementVNode("i",{class:"ri-edit-fill","aria-hidden":"true"},null,-1)),e.createElementVNode("span",Zy,e.toDisplayString(e.unref(A)+(e.unref(X)?1:0)),1)])),[[q,Y.$t("collab.editorsTooltip"),void 0,{bottom:!0}]]),e.withDirectives((e.openBlock(),e.createElementBlock("div",hy,[v[5]||(v[5]=e.createElementVNode("i",{class:"ri-eye-fill","aria-hidden":"true"},null,-1)),e.createElementVNode("span",yy,e.toDisplayString(e.unref(F)+(e.unref(M)?1:0)),1)])),[[q,Y.$t("collab.observersTooltip"),void 0,{bottom:!0}]])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),end:e.withCtx(()=>[e.createElementVNode("div",Wy,[re.value&&(e.unref(De)||e.unref(Ee))?(e.openBlock(),e.createBlock(e.unref(Zl),{key:0,modelValue:Je.value,"onUpdate:modelValue":v[0]||(v[0]=ie=>Je.value=ie),options:sl.value,"option-value":"value","allow-empty":!1,class:"view-mode-selector"},{option:e.withCtx(ie=>[e.withDirectives(e.createElementVNode("i",{class:e.normalizeClass(ie.option.icon),"aria-hidden":"true"},null,2),[[q,ie.option.label,void 0,{bottom:!0}]])]),_:1},8,["modelValue","options"])):e.createCommentVNode("",!0),!l.readOnly&&!e.unref(m)&&(!et.value||ct.value==="WRITE")?e.withDirectives((e.openBlock(),e.createBlock(e.unref(w),{key:1,icon:re.value?"ri-logout-box-line":"ri-pencil-line",severity:re.value?"warning":tt.value?"secondary":"info",onClick:v[1]||(v[1]=ie=>re.value?_():tt.value?se():me()),disabled:Te.value||Zt.value,loading:Zt.value,"aria-label":re.value?Y.$t("editor.closeEdit"):Y.$t("editor.edit"),raised:""},null,8,["icon","severity","disabled","loading","aria-label"])),[[q,re.value?Y.$t("editor.closeEdit"):tt.value?Y.$t("collab.unavailable"):Y.$t("editor.edit"),void 0,{bottom:!0}]]):e.createCommentVNode("",!0),re.value&&!l.readOnly?e.withDirectives((e.openBlock(),e.createBlock(e.unref(w),{key:2,icon:"ri-save-line",severity:"primary",onClick:Bl,disabled:Te.value||!Ue.value,"aria-label":Y.$t("save"),raised:""},null,8,["disabled","aria-label"])),[[q,Y.$t("save"),void 0,{bottom:!0}]]):e.createCommentVNode("",!0),v[6]||(v[6]=e.createElementVNode("div",{class:"w-1rem"},[e.createElementVNode("i",{class:"ri-more-2-line","aria-hidden":"true"})],-1)),re.value&&Je.value!=="preview"||!re.value&&!e.unref(De)&&!e.unref(Ee)?e.withDirectives((e.openBlock(),e.createBlock(e.unref(w),{key:3,icon:"ri-text-wrap",severity:He.value?"info":"secondary",onClick:v[2]||(v[2]=ie=>He.value=!He.value),"aria-label":Y.$t("editor.lineWrap"),raised:""},null,8,["severity","aria-label"])),[[q,Y.$t("editor.lineWrap"),void 0,{bottom:!0}]]):e.createCommentVNode("",!0),l.isSharedLink?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createBlock(e.unref(w),{key:4,icon:"ri-layout-column-line",severity:"secondary",onClick:rt,disabled:!Gl.value,"aria-label":Y.$t("diffViewer.compareTitle"),raised:""},null,8,["disabled","aria-label"])),[[q,Y.$t("diffViewer.compareTitle"),void 0,{bottom:!0}]]),e.withDirectives(e.createVNode(e.unref(w),{icon:"ri-download-line",severity:"secondary",onClick:be,"aria-label":Y.$t("download"),raised:""},null,8,["aria-label"]),[[q,Y.$t("download"),void 0,{bottom:!0}]])])]),_:1}),Te.value&&!l.readOnly?(e.openBlock(),e.createBlock(e.unref(Wt),{key:0,severity:"warn",icon:"ri-lock-line",class:"p-small-message p-0"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(wt.value),1)]),_:1})):e.createCommentVNode("",!0),e.unref(m)?(e.openBlock(),e.createBlock(e.unref(Wt),{key:1,severity:"warn",icon:"ri-group-line",class:"p-small-message px-3 py-0"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(Y.$t("collab.sessionFull"))+" ("+e.toDisplayString(nt.value)+"/"+e.toDisplayString(nt.value)+") ",1)]),_:1})):e.createCommentVNode("",!0),e.unref(r)&&e.unref(b)?(e.openBlock(),e.createBlock(e.unref(Wt),{key:2,severity:"warn",icon:"ri-wifi-off-line",class:"p-small-message p-0"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(Y.$t("collab.offline")),1)]),_:1})):e.createCommentVNode("",!0),e.unref(r)&&e.unref(R)&&re.value?(e.openBlock(),e.createBlock(e.unref(Wt),{key:3,severity:"error",icon:"ri-wifi-off-line",class:"p-small-message px-3 py-0",closable:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(te)===1009?Y.$t("collab.messageTooLarge"):Y.$t("collab.connectionFailed"))+" ",1),e.createElementVNode("div",gy,[e.createVNode(e.unref(w),{label:Y.$t("collab.copyContent"),icon:"ri-clipboard-line",severity:"danger",size:"small",outlined:"","aria-label":Y.$t("collab.copyContent"),onClick:Pl},null,8,["label","aria-label"]),e.unref(te)!==1009?(e.openBlock(),e.createBlock(e.unref(w),{key:0,label:Y.$t("collab.retryConnection"),icon:"ri-refresh-line",severity:"danger",size:"small",outlined:"","aria-label":Y.$t("collab.retryConnection"),onClick:_l},null,8,["label","aria-label"])):e.createCommentVNode("",!0)])]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",Yy,[re.value?(e.openBlock(),e.createElementBlock("div",Ny,[(e.unref(De)||e.unref(Ee))&&Je.value==="split"?(e.openBlock(),e.createBlock(e.unref(Sc),{key:0,class:"flex-grow-1 h-full"},{default:e.withCtx(()=>[e.createVNode(e.unref(e2),{class:"flex",size:50,"min-size":10},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"editorContainer",ref:Be,class:"w-full flex-grow-1"},null,512)]),_:1}),e.createVNode(e.unref(e2),{class:"flex",size:50,"min-size":10},{default:e.withCtx(()=>[e.createElementVNode("iframe",{ref_key:"splitPreviewIframe",ref:Q,class:"preview-container w-full flex-grow-1",sandbox:"allow-scripts allow-popups"},null,512)]),_:1})]),_:1})):!e.unref(De)&&!e.unref(Ee)||Je.value==="editor"?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"editorContainer",ref:Be,class:"editor-only-container w-full flex-grow-1"},null,512)):Je.value==="preview"?(e.openBlock(),e.createElementBlock("iframe",{key:2,ref_key:"editPreviewIframe",ref:E,class:"preview-iframe w-full flex-grow-1",sandbox:"allow-scripts allow-popups"},null,512)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",Xy,[e.unref(De)||e.unref(Ee)?(e.openBlock(),e.createElementBlock("iframe",{key:0,ref_key:"consultPreviewIframe",ref:ee,class:"preview-iframe w-full flex-grow-1",sandbox:"allow-scripts allow-popups"},null,512)):(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"consultationEditorContainer",ref:k,class:"consultation-editor-container"},null,512))]))]),e.createVNode(Ao,{visible:ut.value,"onUpdate:visible":v[3]||(v[3]=ie=>ut.value=ie),"content-node":l.contentNode,versions:fe.value,"initial-version-id":Y.$route.params.versionId,onRevertVersion:ht},null,8,["visible","content-node","versions","initial-version-id"])])}}},[["__scopeId","data-v-795eb320"]]);class Ay{async check(){const a=de().INSTANCE_NAME;if(!a||a==="/")return{ok:!1,detail:"INSTANCE_NAME_NOT_SET"};const o={query:{language:"afts",query:`PATH:"${`/app:company_home/app:dictionary/cm:pristy-config/cm:${a}`}"`},include:["path"]};try{return((await mt.search(o))?.list?.pagination?.totalItems??0)>0?{ok:!0,detail:"OK"}:{ok:!1,detail:"CONFIG_FOLDER_NOT_FOUND"}}catch(s){return console.error("ConfigHealthService.check failed",s),{ok:!1,detail:"CHECK_FAILED"}}}}const hc=new Ay,My={class:"font-semibold mb-2"},Oy={class:"m-0 line-height-3"},jy={class:"block mt-2 text-sm"},Gy={class:"mt-2 mb-0 text-sm"},yc={__name:"ConfigHealthBanner",setup(l,{expose:t}){const a=Wt,o=de().INSTANCE_NAME,s=e.ref({ok:!0,detail:""}),n=e.ref(!1),c=e.ref(!1);return e.onMounted(async()=>{n.value=!0;try{s.value=await hc.check()}finally{n.value=!1,c.value=!0}}),t({health:s,checked:c}),(r,m)=>c.value&&!n.value&&!s.value.ok?(e.openBlock(),e.createBlock(e.unref(a),{key:0,severity:"error",closable:!1},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("div",My,[m[0]||(m[0]=e.createElementVNode("i",{class:"ri-error-warning-line mr-2","aria-hidden":"true"},null,-1)),e.createTextVNode(" "+e.toDisplayString(r.$t("configHealth.error.title")),1)]),e.createElementVNode("p",Oy,e.toDisplayString(r.$t("configHealth.error.description",{instance:e.unref(o)})),1),e.createElementVNode("code",jy," /app:company_home/app:dictionary/cm:pristy-config/cm:"+e.toDisplayString(e.unref(o)),1),e.createElementVNode("p",Gy,e.toDisplayString(r.$t("configHealth.error.action")),1)])]),_:1})):e.createCommentVNode("",!0)}},Ty="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4QIqaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49J++7vycgaWQ9J1c1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCc/Pgo8eDp4bXBtZXRhIHhtbG5zOng9J2Fkb2JlOm5zOm1ldGEvJyB4OnhtcHRrPSdBZG9iZSBFeHByZXNzJz4KPHJkZjpSREYgeG1sbnM6cmRmPSdodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjJz4KIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PScnCiAgeG1sbnM6ZGM9J2h0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvJwogIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKID4KICA8ZGM6Y3JlYXRvcj4KICAgPHJkZjpTZXE+CiAgICA8cmRmOmxpPjkxOTAzOTM2MTQ2NDQ3MzwvcmRmOmxpPgogICA8L3JkZjpTZXE+CiAgPC9kYzpjcmVhdG9yPgogIDx4bXA6Q3JlYXRvclRvb2w+QWRvYmUgRXhwcmVzcyB1bmRlZmluZWQ8L3htcDpDcmVhdG9yVG9vbD4KIDwvcmRmOkRlc2NyaXB0aW9uPgo8L3JkZjpSREY+CjwveDp4bXBtZXRhPgo8P3hwYWNrZXQgZW5kPSdyJz8+/9sAQwADAg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gAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoA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KALemQGe8XjIU5NRVdotCZ0dchIUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAZuqaaLgefCPnHBHrW1OdtGNMxGUq2GHNdBQlABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQA+KGSdxHGhJNJtR3A6Gws1s4do5c/eNcs5c5DLVQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAJj1oAp3umw3QLr8snr6/WtIVHEaZi3NlcWrbZEPsR0NdEZqRRB/KqAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKAFAzwOvpQBctdMnuSGYFEPc96ylUURXNq2tIbVNsajOOT3Nc8pOW5JPSAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKAEKq6kOoKnqD0NO9gM+40a3lJaPMbHt1FaRqyW47mdPpd1D823ePVea1VRMoqFWU4YYPvWgB707AJSAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKAHpFJKcIhJ9hUuSQF230a4k5kwi+/JqJVkthXNO20y1t8HbuYdzzWMpykK5b/X0qBBQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAHPbj6UMCKS2glGJIlPviqUmth3KcuiWz8xsUP51aqtBcpy6HcL/AKtlcfka0jVT3HcqyWN1F9+FvyzVqSYyEoy9VI+tV7oCUAFABn2NJ2QBTAKACgAoAKACgAoAKACgAoAKACgAoAKVwCqsAUgHLHI/3EZvoKnmSAsR6ddydIyB6mk6kV1AtRaHKfmmkC+wGah1+wrlyLSLSIcqXPuazdST2FctxxRxjaiKo+lRdvcQ7n2pALQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAf4d6AD+dADHiib78Sn6imm1sBA+nWb9YgPpxVKch3IX0W2b7rMv45qlVaC5C2hL/AATfmtV7buh3Im0OcfdkVvrS9qguRto12OgVvoav2qC4w6Ter/yy/Wq9ou4XGnTbwf8ALE0c8e4xpsLwdYGo54dwE+xXX/PFvyp88e4B9iuv+eD/APfNHPHuACyuj/y7v+VLnj3AcNPuz/ywanzIBRpt4f8AliaXPHuA8aTen/lmPzFP2kRXHjRrvqdg+pqPaoLkq6FL/FMv4Cl7cLki6FH/ABzMfoMVLrNiuTJo1mv3lLfU0nVkwuTpYWkf3YV/Hmoc5MLkqxov3UVfoKTbe4Dx+noaQgoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgBAMd6AD8vyoAXJp6AHWkMPy/OgQZoGH5fnQAUrCCq0AKLgFIAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKAP/9k=",wy={name:"ErrorComponent",props:{errorNb:{type:String,default:"500"}},data(){return{title:"",subtitle:""}},created(){this.title=this.$t("nothingTitle"),this.subtitle=this.$t("nothingText")},methods:{onClick(){this.$router.push({name:"welcome"})}}},Iy={class:"container"},fy={class:"card custom-card"},vy={class:"text-center custom-title",id:"numError"},Ly={class:"card-img-top w-full",src:Ty,alt:"user header"},Dy={class:"card-body"},Ry={class:"card-text custom-card-title"},ky={class:"card-text custom-card-subtitle"};function Cy(l,t,a,i,o,s){const n=e.resolveComponent("Button"),c=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock("div",Iy,[e.createElementVNode("div",fy,[e.createElementVNode("h2",vy,e.toDisplayString(a.errorNb),1),e.withDirectives(e.createElementVNode("img",Ly,null,512),[[c,"www.vecteezy.com"]]),e.createElementVNode("div",Dy,[e.createElementVNode("p",Ry,e.toDisplayString(o.title),1),e.createElementVNode("p",ky,e.toDisplayString(o.subtitle),1),e.createVNode(n,{icon:"ri-corner-down-left-line",label:l.$t("goHome"),class:"w-full font-weight-bold",onClick:s.onClick},null,8,["label","onClick"])])])])}const jo=H(wy,[["render",Cy],["__scopeId","data-v-59d82e13"]]);class Fy{getBaseUrl(){return ae.config.hostEcm}async getTicket(){return ae.getTicketEcm()}createAuthHeader(t){return`Basic ${btoa(`ROLE_TICKET:${t}`)}`}async getStatus(){try{const t=await this.getTicket(),a=await fetch(`${this.getBaseUrl()}/alfresco/s/fr/jeci/pristy/chat/status`,{method:"GET",headers:{Accept:"application/json",Authorization:this.createAuthHeader(t)}});return a.ok?await a.json():{enabled:!1}}catch(t){return console.error("[ChatBackendService] Error checking status:",t),{enabled:!1}}}async getWorkspaceRoom(t){try{const a=await this.getTicket(),i=await fetch(`${this.getBaseUrl()}/alfresco/s/fr/jeci/pristy/chat/workspace/${t}/room`,{method:"GET",headers:{Accept:"application/json",Authorization:this.createAuthHeader(a)}});return i.ok?await i.json():(console.warn(`[ChatBackendService] Failed to get room for site ${t}:`,i.status),{found:!1})}catch(a){return console.error(`[ChatBackendService] Error getting room for site ${t}:`,a),{found:!1}}}async createWorkspaceRoom(t){try{const a=await this.getTicket(),i=await fetch(`${this.getBaseUrl()}/alfresco/s/fr/jeci/pristy/chat/workspace/${t}/room`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",Authorization:this.createAuthHeader(a)},body:JSON.stringify({})});return i.ok?await i.json():(console.error(`[ChatBackendService] Failed to create room for site ${t}:`,i.status),null)}catch(a){return console.error(`[ChatBackendService] Error creating room for site ${t}:`,a),null}}async getUserChatToken(){try{const t=await this.getTicket(),a=await fetch(`${this.getBaseUrl()}/alfresco/s/fr/jeci/pristy/chat/user/token`,{method:"GET",headers:{Accept:"application/json",Authorization:this.createAuthHeader(t)}});return a.ok?await a.json():{hasCredentials:!1}}catch(t){return console.error("[ChatBackendService] Error getting user token:",t),{hasCredentials:!1}}}async saveUserChatToken(t,a){try{const i=await this.getTicket(),o=await fetch(`${this.getBaseUrl()}/alfresco/s/fr/jeci/pristy/chat/user/token`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",Authorization:this.createAuthHeader(i)},body:JSON.stringify({userId:t,token:a})});if(!o.ok){const s=await o.json().catch(()=>({}));throw new Error(s.message||`HTTP ${o.status}`)}return await o.json()}catch(i){throw console.error("[ChatBackendService] Error saving user token:",i),i}}}const Aa=new Fy;class Vy{constructor(){this.credentials=null,this.config=null}init(t){this.config=t,this.credentials=null}isEnabled(){return this.config?.CHAT_ENABLED===!0&&!!this.config?.ROCKETCHAT_HOST}isOAuthEnabled(){return this.config?.CHAT_OAUTH_ENABLED===!0}getServerUrl(){return(this.config?.ROCKETCHAT_HOST||"").replace(/\/$/,"")}getWebSocketUrl(){if(this.config?.ROCKETCHAT_WS_URL)return this.config.ROCKETCHAT_WS_URL;const t=this.config?.ROCKETCHAT_HOST||"",a=t.startsWith("https")?"wss":"ws",i=t.replace(/^https?:\/\//,"").replace(/\/$/,"");return`${a}://${i}/websocket`}async getCredentials(){if(this.credentials)return this.credentials;const t=await Aa.getUserChatToken();return t.hasCredentials&&t.userId&&t.token?(this.credentials={userId:t.userId,authToken:t.token},this.credentials):(console.warn("[RocketChatAuthService] No credentials available. User needs to configure token in profile."),null)}clearCredentials(){this.credentials=null}async verifyCredentials(){const t=await this.getCredentials();if(!t)return!1;try{const a=await fetch(`${this.getServerUrl()}/api/v1/me`,{method:"GET",headers:{"X-Auth-Token":t.authToken,"X-User-Id":t.userId}});return a.ok?(await a.json()).success===!0:(this.clearCredentials(),!1)}catch(a){return console.error("[RocketChatAuthService] Error verifying credentials:",a),!1}}async getCurrentUser(){const t=await this.getCredentials();if(!t)return null;try{const a=await fetch(`${this.getServerUrl()}/api/v1/me`,{method:"GET",headers:{"X-Auth-Token":t.authToken,"X-User-Id":t.userId}});return a.ok?await a.json():null}catch(a){return console.error("[RocketChatAuthService] Error getting current user:",a),null}}}const it=new Vy;class xy{async request(t,a={}){const i=await it.getCredentials();if(!i)throw new Error("Not authenticated to Rocket.Chat");const s=`${it.getServerUrl()}${t}`,n={"Content-Type":"application/json","X-Auth-Token":i.authToken,"X-User-Id":i.userId,...a.headers},c=await fetch(s,{...a,headers:n}),r=c.headers.get("content-type");if(!r||!r.includes("application/json")){const h=await c.text();throw console.error(`[RocketChatService] Expected JSON but got ${r}:`,h.substring(0,200)),new Error(`Invalid response from Rocket.Chat: expected JSON, got ${r}`)}const m=await c.json();if(!c.ok||m.success===!1){const h=new Error(m.error||`HTTP ${c.status}`);throw h.status=c.status,h.data=m,h}return m}async getSubscriptions(){return(await this.request("/api/v1/subscriptions.get")).update||[]}async getGroups(){return(await this.request("/api/v1/groups.list")).groups||[]}async getRoomInfo(t){return(await this.request(`/api/v1/rooms.info?roomId=${t}`)).room}async getMessages(t,a={}){const i=new URLSearchParams({roomId:t,count:a.count||50});return a.oldest&&i.append("oldest",a.oldest),a.latest&&i.append("latest",a.latest),(await this.request(`/api/v1/groups.history?${i.toString()}`)).messages||[]}async sendMessage(t,a){return(await this.request("/api/v1/chat.postMessage",{method:"POST",body:JSON.stringify({roomId:t,text:a})})).message}async markAsRead(t){await this.request("/api/v1/subscriptions.read",{method:"POST",body:JSON.stringify({rid:t})})}async getUnreadCounts(){const t=await this.getSubscriptions(),a={};for(const i of t)i.unread>0&&(a[i.rid]=i.unread);return a}async getUserPresence(t){try{return(await this.request(`/api/v1/users.getPresence?userId=${t}`)).presence}catch{return"offline"}}async setUserPresence(t){await this.request("/api/v1/users.setStatus",{method:"POST",body:JSON.stringify({status:t})})}async getRoomMembers(t){return(await this.request(`/api/v1/groups.members?roomId=${t}`)).members||[]}async uploadFile(t,a,i=""){const o=await it.getCredentials();if(!o)throw new Error("Not authenticated to Rocket.Chat");const s=new FormData;s.append("file",a),i&&s.append("description",i);const n=it.getServerUrl(),c=await fetch(`${n}/api/v1/rooms.upload/${t}`,{method:"POST",headers:{"X-Auth-Token":o.authToken,"X-User-Id":o.userId},body:s}),r=await c.json();if(!c.ok||r.success===!1)throw new Error(r.error||"Failed to upload file");return r}}const Al=new xy,Sy={reconnectInterval:1e3,maxReconnectInterval:3e4,reconnectDecay:1.5,maxReconnectAttempts:10,heartbeatInterval:25e3,messageBufferSize:100},Ze={DISCONNECTED:"disconnected",CONNECTING:"connecting",CONNECTED:"connected",AUTHENTICATING:"authenticating",READY:"ready",RECONNECTING:"reconnecting",ERROR:"error"};function Wc(l={}){const t={...Sy,...l},a=e.ref(Ze.DISCONNECTED),i=e.ref(null),o=e.ref(0),s=e.shallowRef([]),n=e.ref(new Set);let c=null,r=null,m=null,h=!1,u=0,b=new Map;const y={onConnected:[],onDisconnected:[],onReady:[],onMessage:[],onRoomMessage:[],onTyping:[],onPresence:[],onError:[],onReconnecting:[]},g=(k,Q)=>(y[k]&&y[k].push(Q),()=>X(k,Q)),X=(k,Q)=>{if(y[k]){const E=y[k].indexOf(Q);E>-1&&y[k].splice(E,1)}},M=(k,...Q)=>{y[k]&&y[k].forEach(E=>E(...Q))},A=()=>String(++u),F=()=>new Promise((k,Q)=>{if(c&&c.readyState===WebSocket.OPEN){k();return}const E=it.getWebSocketUrl();if(!E){const ee=new Error("WebSocket URL not configured");i.value=ee,a.value=Ze.ERROR,Q(ee);return}h=!1,a.value=Ze.CONNECTING;try{c=new WebSocket(E),c.onopen=()=>{a.value=Ze.CONNECTED,o.value=0,i.value=null,j({msg:"connect",version:"1",support:["1","pre2","pre1"]}),M("onConnected")},c.onclose=ee=>{Te(),a.value=Ze.DISCONNECTED,!h&&!ee.wasClean&&re(),M("onDisconnected",ee)},c.onerror=ee=>{i.value=ee,a.value=Ze.ERROR,M("onError",ee),Q(ee)},c.onmessage=ee=>{try{const ce=JSON.parse(ee.data);K(ce,k,Q)}catch(ce){console.error("[ChatWebSocket] Failed to parse message:",ce)}}}catch(ee){i.value=ee,a.value=Ze.ERROR,M("onError",ee),Q(ee)}}),U=()=>{h=!0,Te(),Je(),c&&(c.close(1e3,"User disconnected"),c=null),a.value=Ze.DISCONNECTED,s.value=[],n.value=new Set,b.clear()},j=k=>c&&c.readyState===WebSocket.OPEN?(c.send(JSON.stringify(k)),!0):!1,I=k=>j(k)?!0:(s.value.length<t.messageBufferSize?s.value=[...s.value,k]:console.warn("[ChatWebSocket] Message buffer full, dropping message"),!1),D=(k,Q=[])=>new Promise((E,ee)=>{const ce=A();b.set(ce,{resolve:E,reject:ee}),j({msg:"method",method:k,id:ce,params:Q})||(b.delete(ce),ee(new Error("WebSocket not connected"))),setTimeout(()=>{b.has(ce)&&(b.delete(ce),ee(new Error(`Method ${k} timed out`)))},3e4)}),K=(k,Q,E)=>{switch(k.msg){case"connected":wt(),x(Q,E);break;case"ping":j({msg:"pong"});break;case"pong":break;case"result":C(k);break;case"ready":break;case"added":case"changed":case"removed":f(k);break;case"error":R(k,E);break;case"failed":console.error("[ChatWebSocket] DDP version negotiation failed"),a.value=Ze.ERROR,E&&E(new Error("DDP version negotiation failed"));break;default:M("onMessage",k)}},x=async(k,Q)=>{a.value=Ze.AUTHENTICATING;try{const E=await it.getCredentials();if(!E)throw new Error("No credentials available");const ee=await D("login",[{resume:E.authToken}]);if(ee&&ee.id)a.value=Ze.READY,He(),S(),M("onReady"),k&&k();else throw new Error("Authentication failed")}catch(E){console.error("[ChatWebSocket] Authentication failed:",E),i.value=E,a.value=Ze.ERROR,M("onError",E),Q&&Q(E)}},C=k=>{const Q=b.get(k.id);Q&&(b.delete(k.id),k.error?Q.reject(new Error(k.error.message||"Method error")):Q.resolve(k.result))},f=k=>{const{collection:Q,fields:E}=k;if(Q==="stream-room-messages"){if(E&&E.args){const[ee]=E.args;M("onRoomMessage",ee)}}else if(Q==="stream-notify-room"){if(E&&E.args){const[ee,...ce]=E.args;ee==="typing"&&M("onTyping",...ce)}}else Q==="stream-notify-user"&&E&&E.args&&M("onMessage",{type:"user-notification",data:E.args})},R=(k,Q)=>{const E=new Error(k.reason||"Unknown error");i.value=E,M("onError",E),Q&&Q(E)},te=async k=>{if(n.value.has(k))return;const Q=A();j({msg:"sub",id:Q,name:"stream-room-messages",params:[k,!1]});const E=A();j({msg:"sub",id:E,name:"stream-notify-room",params:[`${k}/typing`,!1]}),n.value=new Set([...n.value,k])},le=k=>{n.value=new Set([...n.value].filter(Q=>Q!==k))},S=()=>{const k=[...n.value];n.value=new Set,k.forEach(Q=>{te(Q)})},oe=async(k,Q)=>D("sendMessage",[{_id:A(),rid:k,msg:Q}]),Ie=(k,Q,E)=>{j({msg:"method",method:"stream-notify-room",id:A(),params:[`${k}/typing`,Q,E]})},wt=()=>{Te(),r=setInterval(()=>{c&&c.readyState===WebSocket.OPEN&&j({msg:"ping"})},t.heartbeatInterval)},Te=()=>{r&&(clearInterval(r),r=null)},re=()=>{if(o.value>=t.maxReconnectAttempts){console.error("[ChatWebSocket] Max reconnection attempts reached"),a.value=Ze.ERROR;return}a.value=Ze.RECONNECTING,o.value++;const k=Math.min(t.reconnectInterval*Math.pow(t.reconnectDecay,o.value-1),t.maxReconnectInterval);M("onReconnecting",o.value,k),m=setTimeout(()=>{h||F().catch(()=>{})},k)},Je=()=>{m&&(clearTimeout(m),m=null)},He=()=>{if(c&&c.readyState===WebSocket.OPEN&&s.value.length>0){const k=[...s.value];s.value=[],k.forEach(Q=>{j(Q)})}},Qe=()=>a.value===Ze.READY&&c&&c.readyState===WebSocket.OPEN,Be=()=>c&&c.readyState===WebSocket.OPEN;return e.onUnmounted(()=>{U()}),{connectionState:e.readonly(a),lastError:e.readonly(i),reconnectAttempts:e.readonly(o),bufferedMessages:e.readonly(s),subscribedRooms:e.readonly(n),connect:F,disconnect:U,isConnected:Be,isReady:Qe,subscribeRoom:te,unsubscribeRoom:le,sendChatMessage:oe,sendTyping:Ie,callMethod:D,send:I,on:g,off:X}}const gc=$.defineStore({id:"chat",state:()=>({enabled:!1,loaded:!1,hasCredentials:!1,connectionState:Ze.DISCONNECTED,lastError:null,rooms:[],currentRoomId:null,messagesByRoom:{},unreadCounts:{},typingByRoom:{},currentUser:null,_webSocket:null}),getters:{currentRoom:l=>l.currentRoomId&&l.rooms.find(t=>t._id===l.currentRoomId)||null,currentMessages:l=>l.currentRoomId?l.messagesByRoom[l.currentRoomId]||[]:[],currentTypingUsers:l=>l.currentRoomId?l.typingByRoom[l.currentRoomId]||[]:[],totalUnreadCount:l=>Object.values(l.unreadCounts).reduce((t,a)=>t+a,0),isReady:l=>l.enabled&&l.hasCredentials&&l.connectionState===Ze.READY,isConnecting:l=>l.connectionState===Ze.CONNECTING||l.connectionState===Ze.AUTHENTICATING,isReconnecting:l=>l.connectionState===Ze.RECONNECTING,isAvailable:l=>l.enabled&&l.loaded&&l.hasCredentials},actions:{async init(){try{const l=de();if(it.init({CHAT_ENABLED:l.CHAT_ENABLED,ROCKETCHAT_HOST:l.ROCKETCHAT_HOST,ROCKETCHAT_WS_URL:l.ROCKETCHAT_WS_URL,CHAT_OAUTH_ENABLED:l.CHAT_OAUTH_ENABLED,CHAT_OAUTH_SERVICE:l.CHAT_OAUTH_SERVICE}),this.enabled=it.isEnabled(),this.enabled){const t=await it.getCredentials();this.hasCredentials=!!t,this.hasCredentials&&(this.currentUser=await it.getCurrentUser())}this.loaded=!0,console.log("[ChatStore] Initialized, enabled:",this.enabled,"hasCredentials:",this.hasCredentials)}catch(l){console.error("[ChatStore] Failed to initialize:",l),this.enabled=!1,this.loaded=!0}},async connect(){if(!this.enabled||!this.hasCredentials)return console.warn("[ChatStore] Cannot connect: chat not available"),!1;if(this._webSocket&&this.connectionState===Ze.READY)return!0;try{return this._webSocket=Wc(),this._webSocket.on("onReady",()=>{this.connectionState=Ze.READY,this.loadRooms(),this.currentRoomId&&this._webSocket.subscribeRoom(this.currentRoomId)}),this._webSocket.on("onDisconnected",()=>{this.connectionState=Ze.DISCONNECTED}),this._webSocket.on("onReconnecting",l=>{this.connectionState=Ze.RECONNECTING,console.log("[ChatStore] Reconnecting, attempt:",l)}),this._webSocket.on("onError",l=>{this.lastError=l,this.connectionState=Ze.ERROR}),this._webSocket.on("onRoomMessage",l=>{this.handleNewMessage(l)}),this._webSocket.on("onTyping",(l,t)=>{this.handleTypingIndicator(l,t)}),this.connectionState=Ze.CONNECTING,await this._webSocket.connect(),!0}catch(l){return console.error("[ChatStore] Connection failed:",l),this.lastError=l,this.connectionState=Ze.ERROR,!1}},disconnect(){this._webSocket&&(this._webSocket.disconnect(),this._webSocket=null),this.connectionState=Ze.DISCONNECTED},async loadRooms(){try{const l=await Al.getSubscriptions();this.rooms=l.map(a=>({_id:a.rid,name:a.name,fname:a.fname||a.name,type:a.t,unread:a.unread||0,lastMessage:a.lastMessage,updatedAt:a._updatedAt}));const t={};l.forEach(a=>{a.unread>0&&(t[a.rid]=a.unread)}),this.unreadCounts=t}catch(l){console.error("[ChatStore] Failed to load rooms:",l)}},async selectRoom(l){if(!l){this.currentRoomId=null;return}this.currentRoomId=l,this._webSocket&&this._webSocket.isReady()&&await this._webSocket.subscribeRoom(l),this.messagesByRoom[l]||await this.loadMessages(l),await this.markAsRead(l)},async loadMessages(l,t={}){try{const i=[...await Al.getMessages(l,{count:t.count||50,oldest:t.oldest,latest:t.latest})].reverse();t.prepend&&this.messagesByRoom[l]?this.messagesByRoom[l]=[...i,...this.messagesByRoom[l]]:this.messagesByRoom[l]=i}catch(a){console.error("[ChatStore] Failed to load messages:",a)}},async sendMessage(l){if(!(!this.currentRoomId||!l.trim()))try{this._webSocket&&this._webSocket.isReady()?await this._webSocket.sendChatMessage(this.currentRoomId,l):await Al.sendMessage(this.currentRoomId,l)}catch(t){throw console.error("[ChatStore] Failed to send message:",t),t}},async markAsRead(l){try{await Al.markAsRead(l),this.unreadCounts[l]=0}catch(t){console.error("[ChatStore] Failed to mark as read:",t)}},handleNewMessage(l){const t=l.rid;this.messagesByRoom[t]||(this.messagesByRoom[t]=[]),l.ts&&typeof l.ts=="object"&&l.ts.$date&&(l.ts=new Date(l.ts.$date).toISOString()),this.messagesByRoom[t].some(i=>i._id===l._id)||(this.messagesByRoom[t].push(l),t!==this.currentRoomId&&(this.unreadCounts[t]=(this.unreadCounts[t]||0)+1))},handleTypingIndicator(l,t){const a=this.currentRoomId;a&&(this.currentUser&&l===this.currentUser.username||(this.typingByRoom[a]||(this.typingByRoom[a]=[]),t?this.typingByRoom[a].includes(l)||this.typingByRoom[a].push(l):this.typingByRoom[a]=this.typingByRoom[a].filter(i=>i!==l)))},sendTypingIndicator(l){!this.currentRoomId||!this.currentUser||!this._webSocket||!this._webSocket.isReady()||this._webSocket.sendTyping(this.currentRoomId,this.currentUser.username,l)},async getOrCreateWorkspaceRoom(l){try{let t=await Aa.getWorkspaceRoom(l);return t.found||(t=await Aa.createWorkspaceRoom(l)),t&&t.roomId?(await this.loadRooms(),t):null}catch(t){return console.error("[ChatStore] Failed to get/create workspace room:",t),null}},async uploadFile(l,t=""){if(!this.currentRoomId)throw new Error("No room selected");try{await Al.uploadFile(this.currentRoomId,l,t)}catch(a){throw console.error("[ChatStore] Failed to upload file:",a),a}},clear(){this.disconnect(),this.rooms=[],this.currentRoomId=null,this.messagesByRoom={},this.unreadCounts={},this.typingByRoom={},this.currentUser=null,this.lastError=null}}}),Jy={name:"ChatMessage",components:{PrimeAvatar:Ta},props:{message:{type:Object,required:!0},currentUserId:{type:String,default:""}},emits:["attachment-click"],computed:{isOwnMessage(){return this.message.u?._id===this.currentUserId},isSystemMessage(){return this.message.t!==void 0},hasAttachments(){return this.message.attachments&&this.message.attachments.length>0},avatarLabel(){return(this.message.u?.name||this.message.u?.username||"?").charAt(0).toUpperCase()},avatarColor(){const l=this.message.u?.username||"";let t=0;for(let i=0;i<l.length;i++)t=l.charCodeAt(i)+((t<<5)-t);return`hsl(${Math.abs(t%360)}, 65%, 45%)`},formattedTime(){if(!this.message.ts)return"";const l=new Date(this.message.ts),t=new Date;return l.toDateString()===t.toDateString()?l.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):l.toLocaleString([],{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}},methods:{isImageAttachment(l){return l.image_url?!0:["image/jpeg","image/png","image/gif","image/webp"].includes(l.image_type)},getAttachmentUrl(l){const t=it.getServerUrl(),a=l.image_url||l.title_link;return a?a.startsWith("http")?a:`${t}${a}`:""},openAttachment(l){this.$emit("attachment-click",l)}}},Uy={key:0,class:"chat-message__avatar"},Hy={class:"chat-message__content"},Qy={key:0,class:"chat-message__header"},By={key:0,class:"chat-message__username"},Ey={class:"chat-message__time"},Py={class:"chat-message__body"},_y={key:0,class:"chat-message__text"},Ky={key:1,class:"chat-message__attachments"},$y=["src","alt","onClick"],qy={key:1,class:"chat-message__attachment-file"},eW=["href"],tW={key:0,class:"attachment-desc"},lW={key:0,class:"chat-message__text mt-2"};function aW(l,t,a,i,o,s){const n=e.resolveComponent("PrimeAvatar");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["chat-message",{"chat-message--own":s.isOwnMessage,"chat-message--system":s.isSystemMessage}])},[!s.isOwnMessage&&!s.isSystemMessage?(e.openBlock(),e.createElementBlock("div",Uy,[e.createVNode(n,{label:s.avatarLabel,style:e.normalizeStyle({backgroundColor:s.avatarColor}),shape:"circle"},null,8,["label","style"])])):e.createCommentVNode("",!0),e.createElementVNode("div",Hy,[s.isSystemMessage?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Qy,[s.isOwnMessage?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",By,e.toDisplayString(a.message.u?.name||a.message.u?.username||l.$t("chat.unknownUser")),1)),e.createElementVNode("span",Ey,e.toDisplayString(s.formattedTime),1)])),e.createElementVNode("div",Py,[s.hasAttachments?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",_y,e.toDisplayString(a.message.msg),1)),s.hasAttachments?(e.openBlock(),e.createElementBlock("div",Ky,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.message.attachments,c=>(e.openBlock(),e.createElementBlock("div",{key:c._id||c.title,class:"chat-message__attachment"},[s.isImageAttachment(c)?(e.openBlock(),e.createElementBlock("img",{key:0,src:s.getAttachmentUrl(c),alt:c.title||c.description,class:"chat-message__attachment-image",onClick:r=>s.openAttachment(c)},null,8,$y)):(e.openBlock(),e.createElementBlock("div",qy,[t[0]||(t[0]=e.createElementVNode("i",{class:"ri-attachment-line","aria-hidden":"true"},null,-1)),e.createElementVNode("a",{href:s.getAttachmentUrl(c),target:"_blank",rel:"noopener noreferrer"},e.toDisplayString(c.title||l.$t("chat.attachment")),9,eW),c.description?(e.openBlock(),e.createElementBlock("span",tW,e.toDisplayString(c.description),1)):e.createCommentVNode("",!0)]))]))),128)),a.message.msg?(e.openBlock(),e.createElementBlock("div",lW,e.toDisplayString(a.message.msg),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])])],2)}const Go=H(Jy,[["render",aW],["__scopeId","data-v-165e03f8"]]),oW={name:"ChatInput",components:{PrimeButton:w,PrimeTextarea:ul},props:{disabled:{type:Boolean,default:!1},typingUsers:{type:Array,default:()=>[]}},emits:["send","typing","upload"],data(){return{message:"",selectedFiles:[],typingTimeout:null,isTyping:!1}},computed:{canSend(){return this.message.trim().length>0||this.selectedFiles.length>0},typingText(){return this.typingUsers.length===0?"":this.typingUsers.length===1?this.$t("chat.userTyping",{user:this.typingUsers[0]}):this.typingUsers.length===2?this.$t("chat.usersTyping",{user1:this.typingUsers[0],user2:this.typingUsers[1]}):this.$t("chat.multipleUsersTyping")}},beforeUnmount(){this.typingTimeout&&clearTimeout(this.typingTimeout),this.isTyping&&this.$emit("typing",!1)},methods:{handleKeyDown(l){l.key==="Enter"&&!l.shiftKey&&(l.preventDefault(),this.sendMessage())},handleInput(){this.isTyping||(this.isTyping=!0,this.$emit("typing",!0)),this.typingTimeout&&clearTimeout(this.typingTimeout),this.typingTimeout=setTimeout(()=>{this.isTyping&&(this.isTyping=!1,this.$emit("typing",!1))},3e3)},sendMessage(){if(this.canSend){if(this.isTyping&&(this.isTyping=!1,this.$emit("typing",!1)),this.selectedFiles.length>0){this.selectedFiles.forEach(l=>{this.$emit("upload",l,this.message)}),this.selectedFiles=[],this.message="";return}this.message.trim()&&(this.$emit("send",this.message.trim()),this.message="")}},triggerFileInput(){this.$refs.fileInput.click()},handleFileSelect(l){const t=Array.from(l.target.files);this.selectedFiles=[...this.selectedFiles,...t],l.target.value=""},removeFile(l){this.selectedFiles.splice(l,1)}}},sW={class:"chat-input"},iW={class:"chat-input__container"},nW={key:0,class:"chat-input__typing"},cW={class:"typing-text"},rW={key:1,class:"chat-input__files"},dW={class:"file-name"};function bW(l,t,a,i,o,s){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeTextarea");return e.openBlock(),e.createElementBlock("div",sW,[e.createElementVNode("div",iW,[e.createVNode(n,{type:"button",icon:"ri-attachment-line",text:"",rounded:"",disabled:a.disabled,"aria-label":l.$t("chat.attachFile"),onClick:s.triggerFileInput},null,8,["disabled","aria-label","onClick"]),e.createElementVNode("input",{ref:"fileInput",type:"file",class:"hidden",multiple:"",onChange:t[0]||(t[0]=(...r)=>s.handleFileSelect&&s.handleFileSelect(...r))},null,544),e.createVNode(c,{modelValue:o.message,"onUpdate:modelValue":t[1]||(t[1]=r=>o.message=r),placeholder:l.$t("chat.typeMessage"),disabled:a.disabled,"auto-resize":"",rows:1,class:"chat-input__textarea",onKeydown:s.handleKeyDown,onInput:s.handleInput},null,8,["modelValue","placeholder","disabled","onKeydown","onInput"]),e.createVNode(n,{type:"button",icon:"ri-send-plane-2-fill",rounded:"",disabled:a.disabled||!s.canSend,"aria-label":l.$t("chat.send"),onClick:s.sendMessage},null,8,["disabled","aria-label","onClick"])]),a.typingUsers.length>0?(e.openBlock(),e.createElementBlock("div",nW,[t[2]||(t[2]=e.createElementVNode("span",{class:"typing-dots"},[e.createElementVNode("span"),e.createElementVNode("span"),e.createElementVNode("span")],-1)),e.createElementVNode("span",cW,e.toDisplayString(s.typingText),1)])):e.createCommentVNode("",!0),o.selectedFiles.length>0?(e.openBlock(),e.createElementBlock("div",rW,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.selectedFiles,(r,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:"chat-input__file"},[t[3]||(t[3]=e.createElementVNode("i",{class:"ri-file-line","aria-hidden":"true"},null,-1)),e.createElementVNode("span",dW,e.toDisplayString(r.name),1),e.createVNode(n,{type:"button",icon:"ri-close-line","aria-label":l.$t("delete"),text:"",rounded:"",size:"small",severity:"danger",onClick:h=>s.removeFile(m)},null,8,["aria-label","onClick"])]))),128))])):e.createCommentVNode("",!0)])}const To=H(oW,[["render",bW],["__scopeId","data-v-fd2ee6de"]]),mW={name:"ChatRoomList",components:{PrimeInputText:Me,PrimeBadge:Fl},props:{rooms:{type:Array,default:()=>[]},selectedRoomId:{type:String,default:null},unreadCounts:{type:Object,default:()=>({})}},emits:["select"],data(){return{searchQuery:""}},computed:{filteredRooms(){if(!this.searchQuery.trim())return this.sortedRooms;const l=this.searchQuery.toLowerCase();return this.sortedRooms.filter(t=>(t.fname||t.name||"").toLowerCase().includes(l))},sortedRooms(){return[...this.rooms].sort((l,t)=>{const a=this.unreadCounts[l._id]||0,i=this.unreadCounts[t._id]||0;if(a!==i)return i-a;const o=new Date(l.updatedAt||0);return new Date(t.updatedAt||0)-o})}},methods:{selectRoom(l){this.$emit("select",l._id)},getUnreadCount(l){return this.unreadCounts[l]||0},getRoomIcon(l){switch(l.type){case"c":return"ri-hashtag";case"p":return"ri-lock-line";case"d":return"ri-user-line";default:return"ri-chat-3-line"}},truncateMessage(l){if(!l)return"";const t=40;return l.length<=t?l:l.substring(0,t)+"..."}}},pW={class:"chat-room-list"},uW={class:"chat-room-list__search"},ZW={class:"p-input-icon-left w-full"},hW={class:"chat-room-list__items"},yW=["onClick"],WW={class:"chat-room-item__icon"},gW={class:"chat-room-item__info"},YW={class:"chat-room-item__name"},NW={key:0,class:"chat-room-item__last-message"},XW={key:0,class:"last-message-user"},zW={key:0,class:"chat-room-list__empty"};function AW(l,t,a,i,o,s){const n=e.resolveComponent("PrimeInputText"),c=e.resolveComponent("PrimeBadge");return e.openBlock(),e.createElementBlock("div",pW,[e.createElementVNode("div",uW,[e.createElementVNode("span",ZW,[t[1]||(t[1]=e.createElementVNode("i",{class:"ri-search-line","aria-hidden":"true"},null,-1)),e.createVNode(n,{modelValue:o.searchQuery,"onUpdate:modelValue":t[0]||(t[0]=r=>o.searchQuery=r),placeholder:l.$t("chat.searchRooms"),class:"w-full"},null,8,["modelValue","placeholder"])])]),e.createElementVNode("div",hW,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.filteredRooms,r=>(e.openBlock(),e.createElementBlock("div",{key:r._id,class:e.normalizeClass(["chat-room-item",{"chat-room-item--selected":r._id===a.selectedRoomId}]),onClick:m=>s.selectRoom(r)},[e.createElementVNode("div",WW,[e.createElementVNode("i",{class:e.normalizeClass(s.getRoomIcon(r)),"aria-hidden":"true"},null,2)]),e.createElementVNode("div",gW,[e.createElementVNode("div",YW,e.toDisplayString(r.fname||r.name),1),r.lastMessage?(e.openBlock(),e.createElementBlock("div",NW,[r.lastMessage.u?(e.openBlock(),e.createElementBlock("span",XW,e.toDisplayString(r.lastMessage.u.name||r.lastMessage.u.username)+": ",1)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(s.truncateMessage(r.lastMessage.msg)),1)])):e.createCommentVNode("",!0)]),s.getUnreadCount(r._id)>0?(e.openBlock(),e.createBlock(c,{key:0,value:s.getUnreadCount(r._id),severity:"danger",class:"chat-room-item__badge"},null,8,["value"])):e.createCommentVNode("",!0)],10,yW))),128)),s.filteredRooms.length===0?(e.openBlock(),e.createElementBlock("div",zW,[t[2]||(t[2]=e.createElementVNode("i",{class:"ri-chat-3-line","aria-hidden":"true"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(l.$t("chat.noRooms")),1)])):e.createCommentVNode("",!0)])])}const wo=H(mW,[["render",AW],["__scopeId","data-v-94df09b1"]]),MW={name:"ChatPanel",components:{PrimeButton:w,PrimeProgressSpinner:bt,ChatMessage:Go,ChatInput:To,ChatRoomList:wo},props:{showRoomList:{type:Boolean,default:!0},roomId:{type:String,default:null}},emits:["close","minimize","go-to-profile"],data(){return{minimized:!1,loadingMore:!1}},computed:{...$.mapStores(gc),currentRoom(){return this.chatStore.currentRoom},currentUserId(){return this.chatStore.currentUser?._id||""},headerTitle(){return this.currentRoom?this.currentRoom.fname||this.currentRoom.name:this.$t("chat.title")},canLoadMore(){return this.chatStore.currentMessages.length>=50}},watch:{roomId:{immediate:!0,handler(l){l&&this.selectRoom(l)}},"chatStore.currentMessages":{handler(){this.$nextTick(()=>{this.scrollToBottom()})}}},async mounted(){await this.initChat()},beforeUnmount(){},methods:{async initChat(){this.chatStore.loaded||await this.chatStore.init(),this.chatStore.isAvailable&&!this.chatStore.isReady&&await this.chatStore.connect()},async selectRoom(l){await this.chatStore.selectRoom(l),this.$nextTick(()=>{this.scrollToBottom()})},backToRoomList(){this.chatStore.selectRoom(null)},async sendMessage(l){try{await this.chatStore.sendMessage(l),this.$nextTick(()=>{this.scrollToBottom()})}catch{this.$toast.add({severity:"error",summary:this.$t("error"),detail:this.$t("chat.sendError"),life:3e3})}},handleTyping(l){this.chatStore.sendTypingIndicator(l)},async uploadFile(l,t){try{await this.chatStore.uploadFile(l,t)}catch{this.$toast.add({severity:"error",summary:this.$t("error"),detail:this.$t("chat.uploadError"),life:3e3})}},async loadMoreMessages(){if(!this.chatStore.currentRoomId||this.loadingMore)return;this.loadingMore=!0;const l=this.chatStore.currentMessages,t=l.length>0?l[0].ts:void 0;try{await this.chatStore.loadMessages(this.chatStore.currentRoomId,{count:50,latest:t,prepend:!0})}finally{this.loadingMore=!1}},handleAttachmentClick(l){const t=l.image_url||l.title_link;t&&window.open(t,"_blank","noopener,noreferrer")},scrollToBottom(){const l=this.$refs.messagesContainer;l&&(l.scrollTop=l.scrollHeight)},toggleMinimize(){this.minimized=!this.minimized,this.$emit("minimize",this.minimized)},close(){this.$emit("close")},goToProfile(){this.$emit("go-to-profile")},async reconnect(){await this.chatStore.connect()}}},OW={class:"chat-panel__header"},jW={class:"chat-panel__header-left"},GW={class:"chat-panel__title"},TW={class:"chat-panel__header-actions"},wW={class:"chat-panel__body"},IW={key:0,class:"chat-panel__status"},fW={key:0,class:"status-connecting"},vW={key:1,class:"status-reconnecting"},LW={key:2,class:"status-not-configured"},DW={key:3,class:"status-error"},RW={ref:"messagesContainer",class:"chat-panel__messages"},kW={key:0,class:"chat-panel__load-more"},CW={key:1,class:"chat-panel__empty"};function FW(l,t,a,i,o,s){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeProgressSpinner"),r=e.resolveComponent("ChatRoomList"),m=e.resolveComponent("ChatMessage"),h=e.resolveComponent("ChatInput");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["chat-panel",{"chat-panel--minimized":o.minimized}])},[e.createElementVNode("div",OW,[e.createElementVNode("div",jW,[a.showRoomList&&s.currentRoom?(e.openBlock(),e.createBlock(n,{key:0,type:"button",icon:"ri-arrow-left-line","aria-label":l.$t("back"),text:"",rounded:"",onClick:s.backToRoomList},null,8,["aria-label","onClick"])):e.createCommentVNode("",!0),e.createElementVNode("h3",GW,e.toDisplayString(s.headerTitle),1)]),e.createElementVNode("div",TW,[e.createVNode(n,{type:"button",icon:o.minimized?"ri-fullscreen-line":"ri-subtract-line","aria-label":o.minimized?l.$t("expand"):l.$t("minimize"),text:"",rounded:"",onClick:s.toggleMinimize},null,8,["icon","aria-label","onClick"]),e.createVNode(n,{type:"button",icon:"ri-close-line","aria-label":l.$t("close"),text:"",rounded:"",onClick:s.close},null,8,["aria-label","onClick"])])]),e.withDirectives(e.createElementVNode("div",wW,[l.chatStore.isReady?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.showRoomList&&!s.currentRoom?(e.openBlock(),e.createBlock(r,{key:0,rooms:l.chatStore.rooms,"selected-room-id":l.chatStore.currentRoomId,"unread-counts":l.chatStore.unreadCounts,onSelect:s.selectRoom},null,8,["rooms","selected-room-id","unread-counts","onSelect"])):s.currentRoom?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",RW,[s.canLoadMore?(e.openBlock(),e.createElementBlock("div",kW,[e.createVNode(n,{label:l.$t("chat.loadMore"),text:"",size:"small",loading:o.loadingMore,onClick:s.loadMoreMessages},null,8,["label","loading","onClick"])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.chatStore.currentMessages,u=>(e.openBlock(),e.createBlock(m,{key:u._id,message:u,"current-user-id":s.currentUserId,onAttachmentClick:s.handleAttachmentClick},null,8,["message","current-user-id","onAttachmentClick"]))),128)),l.chatStore.currentMessages.length===0?(e.openBlock(),e.createElementBlock("div",CW,[t[2]||(t[2]=e.createElementVNode("i",{class:"ri-chat-smile-2-line","aria-hidden":"true"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(l.$t("chat.noMessages")),1)])):e.createCommentVNode("",!0)],512),e.createVNode(h,{disabled:!l.chatStore.isReady,"typing-users":l.chatStore.currentTypingUsers,onSend:s.sendMessage,onTyping:s.handleTyping,onUpload:s.uploadFile},null,8,["disabled","typing-users","onSend","onTyping","onUpload"])],64)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock("div",IW,[l.chatStore.isConnecting?(e.openBlock(),e.createElementBlock("div",fW,[e.createVNode(c,{style:{width:"30px",height:"30px"}}),e.createElementVNode("span",null,e.toDisplayString(l.$t("chat.connecting")),1)])):l.chatStore.isReconnecting?(e.openBlock(),e.createElementBlock("div",vW,[e.createVNode(c,{style:{width:"30px",height:"30px"}}),e.createElementVNode("span",null,e.toDisplayString(l.$t("chat.reconnecting")),1)])):l.chatStore.hasCredentials?l.chatStore.lastError?(e.openBlock(),e.createElementBlock("div",DW,[t[1]||(t[1]=e.createElementVNode("i",{class:"ri-error-warning-line","aria-hidden":"true"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(l.$t("chat.connectionError")),1),e.createVNode(n,{label:l.$t("chat.retry"),outlined:"",onClick:s.reconnect},null,8,["label","onClick"])])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",LW,[t[0]||(t[0]=e.createElementVNode("i",{class:"ri-key-line","aria-hidden":"true"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(l.$t("chat.notConfigured")),1),e.createVNode(n,{label:l.$t("chat.configureInProfile"),outlined:"",onClick:s.goToProfile},null,8,["label","onClick"])]))]))],512),[[e.vShow,!o.minimized]])],2)}const Yc=H(MW,[["render",FW],["__scopeId","data-v-96fab464"]]);class VW{getPublicLink(){}createPublicLink(){}}class xW{getLoolUrl(t){let a=`${t}/alfresco/service/lool/host/url`;return he.get(a).then(i=>i.data).catch(i=>{throw P("getLoolUrl",i)})}getAccessToken(t,a,i){let o=`${t}/alfresco/service/lool/token?nodeRef=workspace://SpacesStore/${a}&action=${i}`,s={headers:{Authorization:`basic ${window.btoa(window.localStorage["ticket-ECM"])}`}};return he.get(o,s).then(n=>n.data).catch(n=>{throw P("getAccessToken",n)})}}const SW=new xW;class JW{isDivBody(t,a){return["BODY","DIV"].includes(t.target.nodeName)&&!a&&!t.isComposing}eventPdfComponent(t,a){if(t)switch(a.key){case"ArrowLeft":t.previousPage();break;case"ArrowRight":t.nextPage();break;case"+":t.zoomIn();break;case"-":t.zoomOut();break;case"5":t.fitWidthAuto();break;case"0":t.fitAuto();break}}eventImageViewer(t,a){if(t)switch(a.key){case"+":t.zoomIn();break;case"-":t.zoomOut();break;case"0":t.fitAuto();break}}}const UW=new JW;class HW{getAspects(t={}){return xa.listAspects(t)}getAspect(t){return xa.getAspect(t)}getTypes(t={}){return Sa.listTypes(t)}getType(t){return Sa.getType(t)}extractPropertiesFromType(t){const a=[];return t.properties&&Object.entries(t.properties).forEach(([i,o])=>{a.push({key:o.id,title:o.title||i,dataType:o.dataType||"d:text",mandatory:o.mandatory||!1})}),a}extractPropertiesFromAspect(t){const a=[];return t.properties&&Object.entries(t.properties).forEach(([i,o])=>{a.push({key:o.id,title:o.title||i,dataType:o.dataType||"d:text",mandatory:o.mandatory||!1})}),a}async getAllPropertyKeys(){const t=new Set;try{const a=await this.getTypes({maxItems:1e3});if(a.list?.entries)for(const o of a.list.entries){const s=await this.getType(o.entry.id);this.extractPropertiesFromType(s.entry).forEach(c=>t.add(c.key))}const i=await this.getAspects({maxItems:1e3});if(i.list?.entries)for(const o of i.list.entries){const s=await this.getAspect(o.entry.id);this.extractPropertiesFromAspect(s.entry).forEach(c=>t.add(c.key))}}catch(a){console.error("Failed to fetch property keys from Alfresco",a)}return Array.from(t).sort()}}const QW=new HW;function BW(l,t=""){if(typeof l>"u"||l===null)throw new Error("mandatory parameter "+t)}function Io(l,t=""){if(typeof l!="string"||t.trim()==="")throw new Error("mandatory parameter "+t)}class Nc{alive=!1;hide=!1;code;label;parent}class fo extends Nc{groupConfidentiel;constructor({code:t,label:a,parent:i,groupConfidentiel:o,alive:s=!0}){super(),this.code=t,this.label=a,this.parent=i,this.groupConfidentiel=o,this.alive=s}isConfidentiel(){return this.groupConfidentiel&&this.groupConfidentiel.length>0}}class Xc extends Nc{constructor({code:t,label:a,parent:i,hide:o=!1}){super(),this.code=t,this.label=a,this.parent=i,this.hide=o}}class EW{app="social";loading=!0;constructor(){this.filingPlans={},this.natures={}}async loadPlanClassement(t){this.loading=!0,Io(t,"planType");let a=`plan-${t}.json`;console.info(`loading plan ${t}`);const i=`fr/jeci/pristy/config/${this.app}/${a}`;return Wl.executeWebScript("GET",i).then(o=>{const s=o.PLAN_CLASSEMENT,n=o.NATURE_DOCUMENT;if(!s)throw new Error(`Missing PLAN_CLASSEMENT in ${a}`);if(!n)throw new Error(`Missing NATURE_DOCUMENT in ${a}`);this.filingPlans[t]=s.map(c=>{let r=new fo(c);return r.alive=!0,r}),this.natures[t]=n.filter(c=>{let r=this.getTypeDossier(t,c.parent);return r!=null}).map(c=>{let r=new Xc(c);return r.alive=!0,r}),this.loading=!1})}getTypeDossier(t,a){return this._findPlan(t,i=>i.code===a)}getTypeDossierFromLabel(t,a){return this._findPlan(t,i=>i.label===a)}_findPlan(t,a){return this._assertPlanExist(t),this.filingPlans[t].find(a)}_assertPlanExist(t){if(!Object.prototype.hasOwnProperty.call(this.filingPlans,t))throw new Error(`Filling Plan ${t} not loaded`)}getPlan(t){return Object.prototype.hasOwnProperty.call(this.filingPlans,t)?this.filingPlans[t]:(console.warn("Filling Plan ${planType} not loaded"),null)}getFilteredPlan(t){return lo.getUserGroups(Ge().person.id,!1).then(a=>Object.prototype.hasOwnProperty.call(this.filingPlans,t)?this.filingPlans[t].filter(o=>o.groupConfidentiel?a.includes(o.groupConfidentiel):!0):(console.warn(`Filing Plan ${t} not loaded`),null))}getNatureDocument(t,a){return Object.prototype.hasOwnProperty.call(this.natures,t)?this.natures[t].find(i=>i.code===a):(console.warn(`Filling Plan ${t} not loaded`),null)}getNatures(t){return Object.prototype.hasOwnProperty.call(this.natures,t)?this.natures[t]:(console.warn(`Filling Plan ${t} not loaded`),null)}getEnabledNatures(t){return Object.prototype.hasOwnProperty.call(this.natures,t)?this.natures[t].filter(a=>a.hide===!1):(console.warn(`Filling Plan ${t} not loaded`),null)}getTypeDossierOfNode(t,a){const i=this.getFolderNameFromPath(a);let o=this.getTypeDossierFromLabel(t,i);return o||(o=new fo({label:`${i} - Hors Plan`}),o.hide=!0),Promise.resolve(o)}getFolderNameFromPath(t){if(!t.path)return console.warn("No file path provided"),null;const a=t.path.elements.length-1;return t.path.elements[a].name}async treeNodes(t){return Io(t,"planType"),this.getFilteredPlan(t).then(a=>a.map(i=>({id:i.id||null,key:i.code,label:i.label,children:[],isFolder:!0,confidentiel:i.isConfidentiel(),icon:"ri-folder-line"})))}}const PW=new EW,_W={install(l,t){console.log("load Keycloak With",t.init);const a=new Hc(t.init);a.onReady=()=>{typeof t.onReady=="function"&&t.onReady(a)};let i;a.onAuthSuccess=()=>{i=setInterval(()=>{a.updateToken(60).then(o=>{t.init.enableLogging&&console.log(`[vue-keycloak-js] Token ${o?"updated":"not updated"}`)}).catch(o=>{t.init.enableLogging&&console.error("[vue-keycloak-js] Error updating token:",o),a.clearToken()})},1e4)},a.onAuthLogout=()=>{clearInterval(i),typeof t.onAuthLogout=="function"&&t.onAuthLogout(a)},a.init(t.init).then(o=>{typeof t.onInitSuccess=="function"&&t.onInitSuccess(o)}).catch(o=>{const s=new Error("Failure during initialization of Keycloak");typeof t.onInitError=="function"?t.onInitError(s,o):console.error(s,o)})}},KW=$.defineStore({id:"UserPreferencesStore",state:()=>({listView:!0})}),$W={components:{PrimeButton:w,PrimeMessage:Wt,PrimeDivider:Ll,PrimeInputText:Me,PrimePassword:Qc},data(){return{email:"",password:"",checked:!1,loginError:!1,failLoginMessage:null}},methods:{goToForgotPasswordPage(){this.$router.push({name:"forgot-password"})},goToACA(){window.location.href=this.ACA_LINK},login(){Ge().login(this.email,this.password).then(t=>{if(t===!1)throw new Error(this.$t("login.emptyPasswordOrUser"));this.$route.query?.target===void 0?this.$router.push({name:"welcome"}):this.$router.replace(this.$route.query.target)}).catch(t=>{this.loginError=!0,t instanceof Error?this.failLoginMessage=t.message:t&&typeof t=="object"&&t.message?this.failLoginMessage=t.message:typeof t=="string"?this.failLoginMessage=t:this.failLoginMessage=this.$t("login.unexpectedError")})}},computed:{...$.mapState(de,["SHOW_ACA_LOGIN_LINK","ACA_LINK"])}},qW={class:"surface-0 flex align-items-center justify-content-center min-h-screen min-w-screen overflow-hidden"},e9={class:"grid justify-content-center p-2 lg:p-0 login-grid"},t9={class:"col-12 xl:col-6"},l9={class:"h-full w-full m-0 py-7 px-4 login-card"},a9={class:"text-center mb-5"},o9={class:"text-900 text-3xl font-medium mb-3"},s9={class:"text-600 font-medium"},i9={class:"w-full md:w-10 mx-auto"},n9={for:"email",class:"block text-900 text-xl font-medium mb-2"},c9={for:"password",class:"block text-900 font-medium text-xl mb-2"},r9={class:"w-full mb-3 flex justify-content-end flex-wrap"};function d9(l,t,a,i,o,s){const n=e.resolveComponent("PrimeMessage"),c=e.resolveComponent("PrimeInputText"),r=e.resolveComponent("PrimePassword"),m=e.resolveComponent("PrimeButton"),h=e.resolveComponent("PrimeDivider");return e.openBlock(),e.createElementBlock("div",qW,[e.createElementVNode("div",e9,[e.createElementVNode("div",t9,[e.createElementVNode("div",l9,[e.createElementVNode("div",a9,[t[3]||(t[3]=e.createElementVNode("div",{id:"loginLogo",class:"mb-3 inline-block"},null,-1)),e.createElementVNode("div",o9,e.toDisplayString(l.$t("welcome")),1),e.createElementVNode("span",s9,e.toDisplayString(l.$t("connectToContinue")),1)]),o.loginError?(e.openBlock(),e.createBlock(n,{key:0,"data-testid":"login-page-error-message",severity:"error",closable:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.failLoginMessage),1)]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",i9,[e.createElementVNode("label",n9,e.toDisplayString(l.$t("userIdentification")),1),e.createVNode(c,{"data-testid":"login-page-email-input",id:"email",modelValue:o.email,"onUpdate:modelValue":t[0]||(t[0]=u=>o.email=u),type:"text",class:"w-full mb-3 p-3",placeholder:l.$t("userID"),onKeyup:e.withKeys(s.login,["enter"])},null,8,["modelValue","placeholder","onKeyup"]),e.createElementVNode("label",c9,e.toDisplayString(l.$t("password")),1),e.createVNode(r,{"data-testid":"login-page-password-input",id:"password",modelValue:o.password,"onUpdate:modelValue":t[1]||(t[1]=u=>o.password=u),placeholder:l.$t("password"),class:"w-full mb-3",inputClass:"w-full p-3",feedback:!1,onKeyup:e.withKeys(s.login,["enter"])},null,8,["modelValue","placeholder","onKeyup"]),e.createElementVNode("div",r9,[e.createElementVNode("a",{"data-testid":"login-page-forgot-password-link",class:"cursor-pointer no-underline hover:underline",onClick:t[2]||(t[2]=(...u)=>s.goToForgotPasswordPage&&s.goToForgotPasswordPage(...u))},e.toDisplayString(l.$t("forgotPasswordLink")),1)]),e.createVNode(m,{"data-testid":"login-page-submit-button",label:l.$t("connect"),class:"w-full p-3 text-xl",onClick:s.login},null,8,["label","onClick"]),l.SHOW_ACA_LOGIN_LINK?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(h,{class:"p-1"}),e.createVNode(m,{"data-testid":"login-page-aca-button",label:l.$t("accessACA"),class:"w-full p-2 text-xl",severity:"secondary",onClick:s.goToACA},null,8,["label","onClick"])],64)):e.createCommentVNode("",!0)])])])])])}const b9=H($W,[["render",d9],["__scopeId","data-v-a9118064"]]),m9={name:"NotFoundPages",data(){return{errorNb:"404"}},components:{ErrorComponent:jo}};function p9(l,t,a,i,o,s){const n=e.resolveComponent("ErrorComponent");return e.openBlock(),e.createBlock(n,{"data-testid":"not-found-page-error-component",errorNb:o.errorNb},null,8,["errorNb"])}const u9=H(m9,[["render",p9]]),Z9="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1100'%20height='1000'%20viewBox='0%200%201100%201000'%3e%3cg%20style='display:inline'%3e%3cpath%20d='M504.426%20175.12v-755.5h1894.998l.25%20755.5.252%20755.5h-1895.5Zm1595.67%20495.866c12.556-4.749%2022.914-8.695%2023.017-8.77s.872-7.552%201.71-16.616c4.471-48.375%207.239-141.749%208.275-279.23l.654-86.75-4.913.012c-2.702.007-12.338.677-21.413%201.488s-17.131%201.48-17.903%201.488c-1.543.013-1.29%2013.857.933%2051.012.609%2010.175.964%2027.5.788%2038.5l-.318%2020-4.682%209.565c-15.4%2031.458-33.812%2046.042-46.2%2036.593-15.749-12.013-20.55-61.88-13.012-135.158.849-8.25%201.622-16.575%201.719-18.5l.175-3.5-20.873-1.327c-11.48-.73-21.239-.954-21.684-.5-1.044%201.064-3.468%2015.172-5.555%2032.327-1.121%209.215-1.722%2023.34-1.894%2044.5l-.25%2031-3.747%2010c-14.505%2038.716-34.978%2057.47-52.59%2048.174-14.833-7.83-18.002-25.159-16.017-87.587.64-20.123%201.44-40.075%201.78-44.337l.618-7.75H1955l3.374-13.75c1.856-7.563%203.579-14.538%203.83-15.5.424-1.634-1.283-1.75-25.662-1.75h-26.117l.027-4.75c.015-2.613%201.099-21.85%202.408-42.75s2.004-38.395%201.544-38.878c-.905-.951-42.641%208.068-44.73%209.666-.886.679-1.25%204.731-1.25%2013.943%200%2015.55-1.98%2062.06-2.672%2062.769-.269.275-9.786.725-21.15%201l-20.66.5-5.145%2014-5.145%2014%2015.636.614c8.6.339%2020.045.676%2025.432.75l9.795.136-.67%2037.25c-1.348%2074.942%203.478%20101.74%2021.861%20121.392%209.918%2010.601%2019.408%2015.373%2034.95%2017.57%209.4%201.33%2021.63%200%2029.89-3.26%2012.633-4.98%2024.348-15.379%2033.814-30.017l5.622-8.692%204.178%208.775c5.82%2012.222%2012.952%2019.74%2023.856%2025.142%207.678%203.805%209.154%204.18%2018.138%204.613%2012.293.592%2019.055-.786%2029.565-6.021%205.995-2.987%2010.159-6.033%2015.456-11.307l7.25-7.22-.01%2015.138c-.011%2027.267-2.612%2081.885-6.054%20127.137-2.122%2027.885-6.64%2076.233-7.547%2080.75-.406%202.022-.156%202.75.946%202.75.825%200%2011.773-3.885%2024.33-8.634zm-1057.67-116.299c28.774-1.136%2053.183-2.723%2056.75-3.69%201.238-.336%202.25-.955%202.25-1.377%200-1.2-3.737-1.915-13.75-2.633-5.087-.364-9.25-1.07-9.25-1.567s-1.358-1.377-3.017-1.956l-3.018-1.052%201.92-3.146c2.371-3.886%205.648-14.46%206.558-21.163%201.4-10.321-4.663-28.636-11.866-35.839l-3.24-3.24%206.49-6.952c35.896-38.45%2058.697-88.228%2064.239-140.245%201.724-16.184.72-48.355-1.987-63.707-11.286-63.991-45.373-118.749-97.579-156.748-91.455-66.57-217.858-64.52-307.39%204.985-11.368%208.824-30.502%2027.544-39.621%2038.763-22.151%2027.25-38.675%2059.933-47.02%2093-11.263%2044.63-9.667%2090.501%204.666%20134.118%209.77%2029.727%2027.807%2061.418%2047.297%2083.095%202.513%202.795%204.568%205.422%204.568%205.838s-1.862%202.35-4.138%204.299c-5.638%204.826-10.264%2012.372-12.896%2021.036-4.065%2013.383-1.627%2030.479%205.908%2041.43l3.083%204.482-2.417%201.584c-1.65%201.081-6.78%201.915-16.158%202.627-14.572%201.106-18.382%201.726-18.382%202.991%200%201.258%204.238%201.988%2017.272%202.975%2012.306.931%2066.501%202.853%2096.228%203.412%2036.072.68%20249.918-.35%20274.5-1.32m728.979-76.096c13.784-4.615%2024.711-11.598%2034.223-21.872%2022.997-24.839%2022.518-53.876-1.59-96.446-8.476-14.967-15.161-24.324-33.02-46.215-1.872-2.294-1.873-2.59-.063-15.369%201.015-7.166%201.531-13.343%201.149-13.725-.581-.581-33.013-6.243-36.197-6.32-.56-.013-2.008%207.063-3.216%2015.726-3.505%2025.129-12.883%2059.679-24.041%2088.57-3.366%208.717-4.796%2011.408-5.444%2010.25-.483-.863-1.508-1.57-2.277-1.57s-8.172%202.3-16.45%205.113c-10.679%203.627-15.052%205.56-15.052%206.654%200%201.707%204.89%2010.858%2011.769%2022.027%205.06%208.217%205.141%207.906-3.194%2012.338-3.016%201.603-5.16%201.984-9.258%201.644-15.635-1.296-18.067-15.694-15.282-90.471.57-15.293%201.447-35.005%201.948-43.805.502-8.8.59-16.323.196-16.718-1.247-1.252-42.262-3.45-43.01-2.306-.368.563-1.052%2025.324-1.52%2055.024l-.851%2054-4.276%209.123c-10.516%2022.44-22.77%2034.385-35.261%2034.372-8.8-.01-15.464-6.044-19.213-17.398-5.741-17.383-5.345-43.206%201.417-92.351%202.037-14.801%202.314-19.178%201.464-23.139-1.349-6.291-6.39-12.214-13.205-15.517-6.097-2.954-8.485-2.672-20.725%202.452-9.652%204.04-16.929%204.465-20.218%201.18-2.08-2.077-2.284-3.204-2.315-12.756-.044-13.916-.829-14.822-13.254-15.307-4.804-.187-10.304.065-12.223.561l-3.49.902-.666%2010.939c-.939%2015.394-6.72%2051.97-11.364%2071.896-.764%203.276-1.247%206.099-1.074%206.272.583.582%2027.69%205.518%2028.094%205.115.22-.22%201.847-7.586%203.616-16.371s3.483-16.287%203.806-16.672c.324-.384%205.244.05%2010.935.964l10.346%201.662-.623%203.537c-2.481%2014.093-4.831%2043.836-4.9%2062.036-.07%2018.26.163%2021.374%202.141%2028.5%207.024%2025.3%2022.58%2042.72%2042.87%2048.005%203.157.822%209.648%201.495%2014.424%201.495%2015.61%200%2026.666-4.937%2040.255-17.976l8.14-7.81%202.44%205.543c7.34%2016.677%2020.451%2024.41%2041.387%2024.41%2016.97%200%2028.839-4.24%2041.18-14.71l6.49-5.505%208.59%206.948c8.776%207.1%2019.77%2013.24%2026.915%2015.03%206.294%201.578%2022.037.532%2029.477-1.959zm-493.604-7.437c11.481-1.348%2020.98-2.582%2021.108-2.742s-.146-4.792-.61-10.292-1.14-31.913-1.502-58.695l-.657-48.695%202.393-.486c1.316-.268%2013.643-2.113%2027.393-4.101%2032.218-4.658%2046.902-7.689%2063.204-13.044%2038.272-12.572%2059.1-32.631%2067.466-64.979%202.064-7.978%202.326-11.271%202.311-29-.019-22.68-.871-27.345-7.491-41-7.027-14.494-17.266-24.582-32.49-32.01-24.44-11.927-49.949-13.244-115-5.94-35.252%203.957-102.076%2015.034-104.72%2017.358-.397.348.387%2010.074%201.742%2021.613s2.466%2021.316%202.47%2021.729c.015%201.387%204.407.72%2027.508-4.184%2012.65-2.685%2023.186-4.7%2023.413-4.478.226.222-.574%2056.993-1.778%20126.158s-2.178%20127.891-2.162%20130.504c.027%204.688.07%204.75%203.277%204.742%201.788%200%2012.644-1.11%2024.125-2.458m375.955-204.348c4.018-2.266%205.804-4.117%208.012-8.301%202.642-5.005%202.813-6.02%202.435-14.385-.439-9.71-2.486-15.297-7.637-20.842-9.169-9.868-27.428-10.135-37.022-.54-9.043%209.042-10.016%2026.79-2.08%2037.936%202.342%203.289%209.48%207.807%2014.294%209.05%206.183%201.594%2016.402.24%2021.998-2.918'%20style='fill:none;fill-rule:evenodd'/%3e%3cpath%20d='M504.426%20175.12v-755.5h1894.998l.25%20755.5.252%20755.5h-1895.5Zm1595.67%20495.866c12.556-4.749%2022.914-8.695%2023.017-8.77s.872-7.552%201.71-16.616c4.471-48.375%207.239-141.749%208.275-279.23l.654-86.75-4.913.012c-2.702.007-12.338.677-21.413%201.488s-17.131%201.48-17.903%201.488c-1.543.013-1.29%2013.857.933%2051.012.609%2010.175.964%2027.5.788%2038.5l-.318%2020-4.682%209.565c-15.4%2031.458-33.812%2046.042-46.2%2036.593-15.749-12.013-20.55-61.88-13.012-135.158.849-8.25%201.622-16.575%201.719-18.5l.175-3.5-20.873-1.327c-11.48-.73-21.239-.954-21.684-.5-1.044%201.064-3.468%2015.172-5.555%2032.327-1.121%209.215-1.722%2023.34-1.894%2044.5l-.25%2031-3.747%2010c-14.505%2038.716-34.978%2057.47-52.59%2048.174-14.833-7.83-18.002-25.159-16.017-87.587.64-20.123%201.44-40.075%201.78-44.337l.618-7.75H1955l3.374-13.75c1.856-7.563%203.579-14.538%203.83-15.5.424-1.634-1.283-1.75-25.662-1.75h-26.117l.027-4.75c.015-2.613%201.099-21.85%202.408-42.75s2.004-38.395%201.544-38.878c-.905-.951-42.641%208.068-44.73%209.666-.886.679-1.25%204.731-1.25%2013.943%200%2015.55-1.98%2062.06-2.672%2062.769-.269.275-9.786.725-21.15%201l-20.66.5-5.145%2014-5.145%2014%2015.636.614c8.6.339%2020.045.676%2025.432.75l9.795.136-.67%2037.25c-1.348%2074.942%203.478%20101.74%2021.861%20121.392%209.918%2010.601%2019.408%2015.373%2034.95%2017.57%209.4%201.33%2021.63%200%2029.89-3.26%2012.633-4.98%2024.348-15.379%2033.814-30.017l5.622-8.692%204.178%208.775c5.82%2012.222%2012.952%2019.74%2023.856%2025.142%207.678%203.805%209.154%204.18%2018.138%204.613%2012.293.592%2019.055-.786%2029.565-6.021%205.995-2.987%2010.159-6.033%2015.456-11.307l7.25-7.22-.01%2015.138c-.011%2027.267-2.612%2081.885-6.054%20127.137-2.122%2027.885-6.64%2076.233-7.547%2080.75-.406%202.022-.156%202.75.946%202.75.825%200%2011.773-3.885%2024.33-8.634zm-1057.67-116.299c28.774-1.136%2053.183-2.723%2056.75-3.69%201.238-.336%202.25-.955%202.25-1.377%200-1.2-3.737-1.915-13.75-2.633-5.087-.364-9.25-1.07-9.25-1.567s-1.358-1.377-3.017-1.956l-3.018-1.052%201.92-3.146c2.371-3.886%205.648-14.46%206.558-21.163%201.4-10.321-4.663-28.636-11.866-35.839l-3.24-3.24%206.49-6.952c35.896-38.45%2058.697-88.228%2064.239-140.245%201.724-16.184.72-48.355-1.987-63.707-11.286-63.991-45.373-118.749-97.579-156.748-91.455-66.57-217.858-64.52-307.39%204.985-11.368%208.824-30.502%2027.544-39.621%2038.763-22.151%2027.25-38.675%2059.933-47.02%2093-11.263%2044.63-9.667%2090.501%204.666%20134.118%209.77%2029.727%2027.807%2061.418%2047.297%2083.095%202.513%202.795%204.568%205.422%204.568%205.838s-1.862%202.35-4.138%204.299c-5.638%204.826-10.264%2012.372-12.896%2021.036-4.065%2013.383-1.627%2030.479%205.908%2041.43l3.083%204.482-2.417%201.584c-1.65%201.081-6.78%201.915-16.158%202.627-14.572%201.106-18.382%201.726-18.382%202.991%200%201.258%204.238%201.988%2017.272%202.975%2012.306.931%2066.501%202.853%2096.228%203.412%2036.072.68%20249.918-.35%20274.5-1.32m728.979-76.096c13.784-4.615%2024.711-11.598%2034.223-21.872%2022.997-24.839%2022.518-53.876-1.59-96.446-8.476-14.967-15.161-24.324-33.02-46.215-1.872-2.294-1.873-2.59-.063-15.369%201.015-7.166%201.531-13.343%201.149-13.725-.581-.581-33.013-6.243-36.197-6.32-.56-.013-2.008%207.063-3.216%2015.726-3.505%2025.129-12.883%2059.679-24.041%2088.57-3.366%208.717-4.796%2011.408-5.444%2010.25-.483-.863-1.508-1.57-2.277-1.57s-8.172%202.3-16.45%205.113c-10.679%203.627-15.052%205.56-15.052%206.654%200%201.707%204.89%2010.858%2011.769%2022.027%205.06%208.217%205.141%207.906-3.194%2012.338-3.016%201.603-5.16%201.984-9.258%201.644-15.635-1.296-18.067-15.694-15.282-90.471.57-15.293%201.447-35.005%201.948-43.805.502-8.8.59-16.323.196-16.718-1.247-1.252-42.262-3.45-43.01-2.306-.368.563-1.052%2025.324-1.52%2055.024l-.851%2054-4.276%209.123c-10.516%2022.44-22.77%2034.385-35.261%2034.372-8.8-.01-15.464-6.044-19.213-17.398-5.741-17.383-5.345-43.206%201.417-92.351%202.037-14.801%202.314-19.178%201.464-23.139-1.349-6.291-6.39-12.214-13.205-15.517-6.097-2.954-8.485-2.672-20.725%202.452-9.652%204.04-16.929%204.465-20.218%201.18-2.08-2.077-2.284-3.204-2.315-12.756-.044-13.916-.829-14.822-13.254-15.307-4.804-.187-10.304.065-12.223.561l-3.49.902-.666%2010.939c-.939%2015.394-6.72%2051.97-11.364%2071.896-.764%203.276-1.247%206.099-1.074%206.272.583.582%2027.69%205.518%2028.094%205.115.22-.22%201.847-7.586%203.616-16.371s3.483-16.287%203.806-16.672c.324-.384%205.244.05%2010.935.964l10.346%201.662-.623%203.537c-2.481%2014.093-4.831%2043.836-4.9%2062.036-.07%2018.26.163%2021.374%202.141%2028.5%207.024%2025.3%2022.58%2042.72%2042.87%2048.005%203.157.822%209.648%201.495%2014.424%201.495%2015.61%200%2026.666-4.937%2040.255-17.976l8.14-7.81%202.44%205.543c7.34%2016.677%2020.451%2024.41%2041.387%2024.41%2016.97%200%2028.839-4.24%2041.18-14.71l6.49-5.505%208.59%206.948c8.776%207.1%2019.77%2013.24%2026.915%2015.03%206.294%201.578%2022.037.532%2029.477-1.959zm-493.604-7.437c11.481-1.348%2020.98-2.582%2021.108-2.742s-.146-4.792-.61-10.292-1.14-31.913-1.502-58.695l-.657-48.695%202.393-.486c1.316-.268%2013.643-2.113%2027.393-4.101%2032.218-4.658%2046.902-7.689%2063.204-13.044%2038.272-12.572%2059.1-32.631%2067.466-64.979%202.064-7.978%202.326-11.271%202.311-29-.019-22.68-.871-27.345-7.491-41-7.027-14.494-17.266-24.582-32.49-32.01-24.44-11.927-49.949-13.244-115-5.94-35.252%203.957-102.076%2015.034-104.72%2017.358-.397.348.387%2010.074%201.742%2021.613s2.466%2021.316%202.47%2021.729c.015%201.387%204.407.72%2027.508-4.184%2012.65-2.685%2023.186-4.7%2023.413-4.478.226.222-.574%2056.993-1.778%20126.158s-2.178%20127.891-2.162%20130.504c.027%204.688.07%204.75%203.277%204.742%201.788%200%2012.644-1.11%2024.125-2.458m375.955-204.348c4.018-2.266%205.804-4.117%208.012-8.301%202.642-5.005%202.813-6.02%202.435-14.385-.439-9.71-2.486-15.297-7.637-20.842-9.169-9.868-27.428-10.135-37.022-.54-9.043%209.042-10.016%2026.79-2.08%2037.936%202.342%203.289%209.48%207.807%2014.294%209.05%206.183%201.594%2016.402.24%2021.998-2.918'%20style='fill:none;fill-rule:evenodd'/%3e%3cpath%20d='M504.426%20175.12v-755.5h1895v1511h-1895Zm1595.67%20495.866c12.556-4.749%2022.914-8.695%2023.017-8.77s.872-7.552%201.71-16.616c4.471-48.375%207.239-141.749%208.275-279.23l.654-86.75-4.913.012c-2.702.007-12.338.677-21.413%201.488s-17.131%201.48-17.903%201.488c-1.543.013-1.29%2013.857.933%2051.012.609%2010.175.964%2027.5.788%2038.5l-.318%2020-4.682%209.565c-15.4%2031.458-33.812%2046.042-46.2%2036.593-15.749-12.013-20.55-61.88-13.012-135.158.849-8.25%201.622-16.575%201.719-18.5l.175-3.5-20.873-1.327c-11.48-.73-21.239-.954-21.684-.5-1.044%201.064-3.468%2015.172-5.555%2032.327-1.121%209.215-1.722%2023.34-1.894%2044.5l-.25%2031-3.747%2010c-14.505%2038.716-34.978%2057.47-52.59%2048.174-14.833-7.83-18.002-25.159-16.017-87.587.64-20.123%201.44-40.075%201.78-44.337l.618-7.75H1955l3.374-13.75c1.856-7.563%203.579-14.538%203.83-15.5.424-1.634-1.283-1.75-25.662-1.75h-26.117l.027-4.75c.015-2.613%201.099-21.85%202.408-42.75s2.004-38.395%201.544-38.878c-.905-.951-42.641%208.068-44.73%209.666-.886.679-1.25%204.731-1.25%2013.943%200%2015.55-1.98%2062.06-2.672%2062.769-.269.275-9.786.725-21.15%201l-20.66.5-5.145%2014-5.145%2014%2015.636.614c8.6.339%2020.045.676%2025.432.75l9.795.136-.67%2037.25c-1.348%2074.942%203.478%20101.74%2021.861%20121.392%209.918%2010.601%2019.408%2015.373%2034.95%2017.57%209.4%201.33%2021.63%200%2029.89-3.26%2012.633-4.98%2024.348-15.379%2033.814-30.017l5.622-8.692%204.178%208.775c5.82%2012.222%2012.952%2019.74%2023.856%2025.142%207.678%203.805%209.154%204.18%2018.138%204.613%2012.293.592%2019.055-.786%2029.565-6.021%205.995-2.987%2010.159-6.033%2015.456-11.307l7.25-7.22-.01%2015.138c-.011%2027.267-2.612%2081.885-6.054%20127.137-2.122%2027.885-6.64%2076.233-7.547%2080.75-.406%202.022-.156%202.75.946%202.75.825%200%2011.773-3.885%2024.33-8.634zm-1057.67-116.299c28.774-1.136%2053.183-2.723%2056.75-3.69%201.238-.336%202.25-.955%202.25-1.377%200-1.2-3.737-1.915-13.75-2.633-5.087-.364-9.25-1.07-9.25-1.567s-1.358-1.377-3.017-1.956l-3.018-1.052%201.92-3.146c2.371-3.886%205.648-14.46%206.558-21.163%201.4-10.321-4.663-28.636-11.866-35.839l-3.24-3.24%206.49-6.952c35.896-38.45%2058.697-88.228%2064.239-140.245%201.724-16.184.72-48.355-1.987-63.707-11.286-63.991-45.373-118.749-97.579-156.748-91.455-66.57-217.858-64.52-307.39%204.985-11.368%208.824-30.502%2027.544-39.621%2038.763-22.151%2027.25-38.675%2059.933-47.02%2093-11.263%2044.63-9.667%2090.501%204.666%20134.118%209.77%2029.727%2027.807%2061.418%2047.297%2083.095%202.513%202.795%204.568%205.422%204.568%205.838s-1.862%202.35-4.138%204.299c-5.638%204.826-10.264%2012.372-12.896%2021.036-4.065%2013.383-1.627%2030.479%205.908%2041.43l3.083%204.482-2.417%201.584c-1.65%201.081-6.78%201.915-16.158%202.627-14.572%201.106-18.382%201.726-18.382%202.991%200%201.258%204.238%201.988%2017.272%202.975%2012.306.931%2066.501%202.853%2096.228%203.412%2036.072.68%20249.918-.35%20274.5-1.32m728.979-76.096c13.784-4.615%2024.711-11.598%2034.223-21.872%2022.997-24.839%2022.518-53.876-1.59-96.446-8.476-14.967-15.161-24.324-33.02-46.215-1.872-2.294-1.873-2.59-.063-15.369%201.015-7.166%201.531-13.343%201.149-13.725-.581-.581-33.013-6.243-36.197-6.32-.56-.013-2.008%207.063-3.216%2015.726-3.505%2025.129-12.883%2059.679-24.041%2088.57-3.366%208.717-4.796%2011.408-5.444%2010.25-.483-.863-1.508-1.57-2.277-1.57s-8.172%202.3-16.45%205.113c-10.679%203.627-15.052%205.56-15.052%206.654%200%201.707%204.89%2010.858%2011.769%2022.027%205.06%208.217%205.141%207.906-3.194%2012.338-3.016%201.603-5.16%201.984-9.258%201.644-15.635-1.296-18.067-15.694-15.282-90.471.57-15.293%201.447-35.005%201.948-43.805.502-8.8.59-16.323.196-16.718-1.247-1.252-42.262-3.45-43.01-2.306-.368.563-1.052%2025.324-1.52%2055.024l-.851%2054-4.276%209.123c-10.516%2022.44-22.77%2034.385-35.261%2034.372-8.8-.01-15.464-6.044-19.213-17.398-5.741-17.383-5.345-43.206%201.417-92.351%202.037-14.801%202.314-19.178%201.464-23.139-1.349-6.291-6.39-12.214-13.205-15.517-6.097-2.954-8.485-2.672-20.725%202.452-9.652%204.04-16.929%204.465-20.218%201.18-2.08-2.077-2.284-3.204-2.315-12.756-.044-13.916-.829-14.822-13.254-15.307-4.804-.187-10.304.065-12.223.561l-3.49.902-.666%2010.939c-.939%2015.394-6.72%2051.97-11.364%2071.896-.764%203.276-1.247%206.099-1.074%206.272.583.582%2027.69%205.518%2028.094%205.115.22-.22%201.847-7.586%203.616-16.371s3.483-16.287%203.806-16.672c.324-.384%205.244.05%2010.935.964l10.346%201.662-.623%203.537c-2.481%2014.093-4.831%2043.836-4.9%2062.036-.07%2018.26.163%2021.374%202.141%2028.5%207.024%2025.3%2022.58%2042.72%2042.87%2048.005%203.157.822%209.648%201.495%2014.424%201.495%2015.61%200%2026.666-4.937%2040.255-17.976l8.14-7.81%202.44%205.543c7.34%2016.677%2020.451%2024.41%2041.387%2024.41%2016.97%200%2028.839-4.24%2041.18-14.71l6.49-5.505%208.59%206.948c8.776%207.1%2019.77%2013.24%2026.915%2015.03%206.294%201.578%2022.037.532%2029.477-1.959zm-493.604-7.437c11.481-1.348%2020.98-2.582%2021.108-2.742s-.146-4.792-.61-10.292-1.14-31.913-1.502-58.695l-.657-48.695%202.393-.486c1.316-.268%2013.643-2.113%2027.393-4.101%2032.218-4.658%2046.902-7.689%2063.204-13.044%2038.272-12.572%2059.1-32.631%2067.466-64.979%202.064-7.978%202.326-11.271%202.311-29-.019-22.68-.871-27.345-7.491-41-7.027-14.494-17.266-24.582-32.49-32.01-24.44-11.927-49.949-13.244-115-5.94-35.252%203.957-102.076%2015.034-104.72%2017.358-.397.348.387%2010.074%201.742%2021.613s2.466%2021.316%202.47%2021.729c.015%201.387%204.407.72%2027.508-4.184%2012.65-2.685%2023.186-4.7%2023.413-4.478.226.222-.574%2056.993-1.778%20126.158s-2.178%20127.891-2.162%20130.504c.027%204.688.07%204.75%203.277%204.742%201.788%200%2012.644-1.11%2024.125-2.458m375.955-204.348c4.018-2.266%205.804-4.117%208.012-8.301%202.642-5.005%202.813-6.02%202.435-14.385-.439-9.71-2.486-15.297-7.637-20.842-9.169-9.868-27.428-10.135-37.022-.54-9.043%209.042-10.016%2026.79-2.08%2037.936%202.342%203.289%209.48%207.807%2014.294%209.05%206.183%201.594%2016.402.24%2021.998-2.918'%20style='fill:none;fill-rule:evenodd'/%3e%3cpath%20d='M344.426%20175.12v-755.5h2747.998l.25%20755.5.252%20755.5h-2748.5Zm1755.67%20495.866c12.556-4.749%2022.914-8.695%2023.017-8.77s.872-7.552%201.71-16.616c4.471-48.375%207.239-141.749%208.275-279.23l.654-86.75-4.913.012c-2.702.007-12.338.677-21.413%201.488s-17.131%201.48-17.903%201.488c-1.543.013-1.29%2013.857.933%2051.012.609%2010.175.964%2027.5.788%2038.5l-.318%2020-4.682%209.565c-15.4%2031.458-33.812%2046.042-46.2%2036.593-15.749-12.013-20.55-61.88-13.012-135.158.849-8.25%201.622-16.575%201.719-18.5l.175-3.5-20.873-1.327c-11.48-.73-21.239-.954-21.684-.5-1.044%201.064-3.468%2015.172-5.555%2032.327-1.121%209.215-1.722%2023.34-1.894%2044.5l-.25%2031-3.747%2010c-14.505%2038.716-34.978%2057.47-52.59%2048.174-14.833-7.83-18.002-25.159-16.017-87.587.64-20.123%201.44-40.075%201.78-44.337l.618-7.75H1955l3.374-13.75c1.856-7.563%203.579-14.538%203.83-15.5.424-1.634-1.283-1.75-25.662-1.75h-26.117l.027-4.75c.015-2.613%201.099-21.85%202.408-42.75s2.004-38.395%201.544-38.878c-.905-.951-42.641%208.068-44.73%209.666-.886.679-1.25%204.731-1.25%2013.943%200%2015.55-1.98%2062.06-2.672%2062.769-.269.275-9.786.725-21.15%201l-20.66.5-5.145%2014-5.145%2014%2015.636.614c8.6.339%2020.045.676%2025.432.75l9.795.136-.67%2037.25c-1.348%2074.942%203.478%20101.74%2021.861%20121.392%209.918%2010.601%2019.408%2015.373%2034.95%2017.57%209.4%201.33%2021.63%200%2029.89-3.26%2012.633-4.98%2024.348-15.379%2033.814-30.017l5.622-8.692%204.178%208.775c5.82%2012.222%2012.952%2019.74%2023.856%2025.142%207.678%203.805%209.154%204.18%2018.138%204.613%2012.293.592%2019.055-.786%2029.565-6.021%205.995-2.987%2010.159-6.033%2015.456-11.307l7.25-7.22-.01%2015.138c-.011%2027.267-2.612%2081.885-6.054%20127.137-2.122%2027.885-6.64%2076.233-7.547%2080.75-.406%202.022-.156%202.75.946%202.75.825%200%2011.773-3.885%2024.33-8.634zm-1057.67-116.299c28.774-1.136%2053.183-2.723%2056.75-3.69%201.238-.336%202.25-.955%202.25-1.377%200-1.2-3.737-1.915-13.75-2.633-5.087-.364-9.25-1.07-9.25-1.567s-1.358-1.377-3.017-1.956l-3.018-1.052%201.92-3.146c2.371-3.886%205.648-14.46%206.558-21.163%201.4-10.321-4.663-28.636-11.866-35.839l-3.24-3.24%206.49-6.952c35.896-38.45%2058.697-88.228%2064.239-140.245%201.724-16.184.72-48.355-1.987-63.707-11.286-63.991-45.373-118.749-97.579-156.748-91.455-66.57-217.858-64.52-307.39%204.985-11.368%208.824-30.502%2027.544-39.621%2038.763-22.151%2027.25-38.675%2059.933-47.02%2093-11.263%2044.63-9.667%2090.501%204.666%20134.118%209.77%2029.727%2027.807%2061.418%2047.297%2083.095%202.513%202.795%204.568%205.422%204.568%205.838s-1.862%202.35-4.138%204.299c-5.638%204.826-10.264%2012.372-12.896%2021.036-4.065%2013.383-1.627%2030.479%205.908%2041.43l3.083%204.482-2.417%201.584c-1.65%201.081-6.78%201.915-16.158%202.627-14.572%201.106-18.382%201.726-18.382%202.991%200%201.258%204.238%201.988%2017.272%202.975%2012.306.931%2066.501%202.853%2096.228%203.412%2036.072.68%20249.918-.35%20274.5-1.32m728.979-76.096c13.784-4.615%2024.711-11.598%2034.223-21.872%2022.997-24.839%2022.518-53.876-1.59-96.446-8.476-14.967-15.161-24.324-33.02-46.215-1.872-2.294-1.873-2.59-.063-15.369%201.015-7.166%201.531-13.343%201.149-13.725-.581-.581-33.013-6.243-36.197-6.32-.56-.013-2.008%207.063-3.216%2015.726-3.505%2025.129-12.883%2059.679-24.041%2088.57-3.366%208.717-4.796%2011.408-5.444%2010.25-.483-.863-1.508-1.57-2.277-1.57s-8.172%202.3-16.45%205.113c-10.679%203.627-15.052%205.56-15.052%206.654%200%201.707%204.89%2010.858%2011.769%2022.027%205.06%208.217%205.141%207.906-3.194%2012.338-3.016%201.603-5.16%201.984-9.258%201.644-15.635-1.296-18.067-15.694-15.282-90.471.57-15.293%201.447-35.005%201.948-43.805.502-8.8.59-16.323.196-16.718-1.247-1.252-42.262-3.45-43.01-2.306-.368.563-1.052%2025.324-1.52%2055.024l-.851%2054-4.276%209.123c-10.516%2022.44-22.77%2034.385-35.261%2034.372-8.8-.01-15.464-6.044-19.213-17.398-5.741-17.383-5.345-43.206%201.417-92.351%202.037-14.801%202.314-19.178%201.464-23.139-1.349-6.291-6.39-12.214-13.205-15.517-6.097-2.954-8.485-2.672-20.725%202.452-9.652%204.04-16.929%204.465-20.218%201.18-2.08-2.077-2.284-3.204-2.315-12.756-.044-13.916-.829-14.822-13.254-15.307-4.804-.187-10.304.065-12.223.561l-3.49.902-.666%2010.939c-.939%2015.394-6.72%2051.97-11.364%2071.896-.764%203.276-1.247%206.099-1.074%206.272.582.582%2027.69%205.518%2028.094%205.115.219-.22%201.847-7.586%203.616-16.371s3.483-16.287%203.806-16.672c.324-.384%205.244.05%2010.935.964l10.346%201.662-.623%203.537c-2.481%2014.093-4.831%2043.836-4.9%2062.036-.07%2018.26.163%2021.374%202.141%2028.5%207.024%2025.3%2022.58%2042.72%2042.87%2048.005%203.157.822%209.648%201.495%2014.424%201.495%2015.61%200%2026.666-4.937%2040.255-17.976l8.14-7.81%202.44%205.543c7.34%2016.677%2020.451%2024.41%2041.387%2024.41%2016.97%200%2028.839-4.24%2041.18-14.71l6.49-5.505%208.59%206.948c8.776%207.1%2019.77%2013.24%2026.915%2015.03%206.294%201.578%2022.037.532%2029.477-1.959zm-493.604-7.437c11.481-1.348%2020.98-2.582%2021.108-2.742s-.146-4.792-.61-10.292-1.14-31.913-1.502-58.695l-.657-48.695%202.393-.486c1.316-.268%2013.643-2.113%2027.393-4.101%2032.218-4.658%2046.902-7.689%2063.204-13.044%2038.272-12.572%2059.1-32.631%2067.466-64.979%202.064-7.978%202.326-11.271%202.311-29-.019-22.68-.871-27.345-7.491-41-7.027-14.494-17.266-24.582-32.49-32.01-24.44-11.927-49.949-13.244-115-5.94-35.252%203.957-102.076%2015.034-104.72%2017.358-.397.348.387%2010.074%201.742%2021.613s2.466%2021.316%202.47%2021.729c.015%201.387%204.407.72%2027.508-4.184%2012.65-2.685%2023.186-4.7%2023.413-4.478.226.222-.574%2056.993-1.778%20126.158s-2.178%20127.891-2.162%20130.504c.027%204.688.07%204.75%203.277%204.742%201.788%200%2012.644-1.11%2024.125-2.458m375.955-204.348c4.018-2.266%205.804-4.117%208.012-8.301%202.642-5.005%202.813-6.02%202.435-14.385-.439-9.71-2.486-15.297-7.637-20.842-9.169-9.868-27.428-10.135-37.022-.54-9.043%209.042-10.016%2026.79-2.08%2037.936%202.342%203.289%209.48%207.807%2014.294%209.05%206.183%201.594%2016.402.24%2021.998-2.918'%20style='fill:none;fill-rule:evenodd'/%3e%3cg%20transform='translate(-373.824%20-16.55)'%3e%3cellipse%20cx='883.322'%20cy='351.763'%20rx='332.891'%20ry='332.227'%20style='fill:%23fdcc10;fill-opacity:1;fill-rule:evenodd;stroke-width:1.36545'/%3e%3cellipse%20cx='1271.467'%20cy='-1399.972'%20rx='9.654'%20ry='14.943'%20style='fill:%23c8c8c8;fill-opacity:1;fill-rule:evenodd;stroke-width:1.07838'%20transform='matrix(.01022%20.99995%20-.73576%20.67724%200%200)'/%3e%3cpath%20d='M698.399%20510.786h377.707v37.887H698.399z'%20style='fill:%23c8c8c8;fill-opacity:1;fill-rule:evenodd'/%3e%3cpath%20d='M1024.732%20333.496h10.646V347.1h-10.646z'%20style='fill:%23c8c8c8;fill-opacity:1;fill-rule:evenodd;stroke-width:.851044'/%3e%3cpath%20d='M1024.732%20347.1h7.555v50.777h-7.555z'%20style='fill:%23c8c8c8;fill-opacity:1;fill-rule:evenodd'/%3e%3cellipse%20cx='974.908'%20cy='238.842'%20rx='30.894'%20ry='65.439'%20style='fill:%23c8c8c8;fill-opacity:1;fill-rule:evenodd;stroke-width:.962295'%20transform='scale(.99949%201)skewY(-1.836)'/%3e%3cellipse%20cx='789.328'%20cy='199.342'%20rx='30.147'%20ry='57.369'%20style='fill:%23c8c8c8;fill-opacity:1;fill-rule:evenodd;stroke-width:.9591'/%3e%3cellipse%20cx='855.354'%20cy='465.346'%20rx='129.287'%20ry='123.534'%20style='fill:%23c8c8c8;fill-opacity:1;fill-rule:evenodd;stroke-width:1.58529'%20transform='matrix(.9982%20-.06006%20.07118%20.99746%200%200)'/%3e%3cellipse%20cx='770.095'%20cy='484.385'%20rx='46.392'%20ry='35.959'%20style='fill:%23c8c8c8;fill-opacity:1;fill-rule:evenodd;stroke-width:.779911'/%3e%3cellipse%20cx='881.389'%20cy='266.221'%20rx='122.165'%20ry='100.678'%20style='fill:%23c8c8c8;fill-opacity:1;fill-rule:evenodd;stroke-width:.577874'/%3e%3cellipse%20cx='886.202'%20cy='398.533'%20rx='44.874'%20ry='27.488'%20style='fill:%23fff;fill-opacity:1;fill-rule:evenodd'/%3e%3cellipse%20cx='1002.481'%20cy='496.03'%20rx='50.178'%20ry='46.446'%20style='display:inline;fill:%23c8c8c8;fill-opacity:1;fill-rule:evenodd;stroke-width:.921829'/%3e%3cellipse%20cx='720.087'%20cy='515.926'%20rx='29.185'%20ry='38.246'%20style='fill:%23fff;fill-rule:evenodd;stroke-width:.940325'/%3e%3cellipse%20cx='1050.535'%20cy='520.144'%20rx='29.975'%20ry='38.891'%20style='fill:%23fff;fill-rule:evenodd;stroke-width:.976919'/%3e%3cellipse%20cx='888.535'%20cy='556.265'%20rx='223.45'%20ry='6.652'%20style='fill:%23ffdb4d;fill-opacity:.996078;fill-rule:evenodd'/%3e%3cellipse%20cx='1066.161'%20cy='323.616'%20rx='17.899'%20ry='17.66'%20style='fill:%23fff;fill-rule:evenodd;stroke-width:.407524'/%3e%3cellipse%20cx='884.493'%20cy='302.689'%20rx='40.783'%20ry='35.689'%20style='fill:%23fff;fill-rule:evenodd;stroke-width:.611888'/%3e%3cellipse%20cx='885.193'%20cy='316.702'%20rx='61.145'%20ry='37.618'%20style='display:inline;fill:%23fff;fill-rule:evenodd;stroke-width:.769215'/%3e%3cellipse%20cx='630.476'%20cy='630.722'%20rx='13.95'%20ry='17.914'%20style='fill:%23d67e94;fill-opacity:1;fill-rule:evenodd;stroke-width:.445568'%20transform='rotate(-8.83)skewY(-.047)'/%3e%3cellipse%20cx='601.085'%20cy='595.628'%20rx='5.016'%20ry='5.572'%20style='display:inline;fill:%23d67e94;fill-opacity:1;fill-rule:evenodd;stroke-width:.149008'%20transform='matrix(.99112%20-.13297%20.17798%20.98403%200%200)'/%3e%3cellipse%20cx='615.853'%20cy='589.417'%20rx='5.016'%20ry='5.572'%20style='display:inline;fill:%23d67e94;fill-opacity:1;fill-rule:evenodd;stroke-width:.149008'%20transform='matrix(.99112%20-.13297%20.17798%20.98403%200%200)'/%3e%3cellipse%20cx='630.595'%20cy='595.228'%20rx='5.016'%20ry='5.572'%20style='display:inline;fill:%23d67e94;fill-opacity:1;fill-rule:evenodd;stroke-width:.149008'%20transform='matrix(.99112%20-.13297%20.17798%20.98403%200%200)'/%3e%3cpath%20d='M1846.988%202208.439h23.684v125.747h-23.684z'%20style='fill:%23fff;fill-rule:evenodd;stroke-width:.259371'%20transform='matrix(.27793%20-.9606%20.10538%20.99443%200%200)'/%3e%3cpath%20d='M763.562%20380.117h223.296v16.564H763.562z'%20style='fill:%23fff;fill-opacity:1;fill-rule:evenodd'/%3e%3cellipse%20cx='761.201'%20cy='407.401'%20rx='16.724'%20ry='22.934'%20style='fill:%23fff;fill-opacity:1;fill-rule:evenodd'/%3e%3cellipse%20cx='1024.667'%20cy='537.129'%20rx='12.87'%20ry='12.749'%20style='fill:%23fff;fill-opacity:1;fill-rule:evenodd'/%3e%3cellipse%20cx='1118.16'%20cy='350.644'%20rx='15.168'%20ry='18.308'%20style='fill:%23d67e94;fill-opacity:1;fill-rule:evenodd;stroke-width:.618348'%20transform='rotate(9.215)'/%3e%3cpath%20d='M724.008%20555.45c-17.545-.455-27.728-1.095-29.098-1.828-2.6-1.392-2.24-4.252.588-4.656%201.976-.283%201.89-.569-1.709-5.706-4.155-5.932-7.358-15.012-8.227-23.318-.81-7.752%201.253-18.214%205.111-25.927%205.761-11.515%2015.241-18.93%2025.46-19.911%204.591-.442%204.742-.56%207.25-5.68%202.769-5.656%2011.813-14.774%2017.203-17.344%202.105-1.004%203.215-2.215%203.22-3.514.004-1.09-1.137-13.308-2.535-27.15-2.218-21.972-2.381-25.736-1.284-29.654.988-3.532%202.154-5.123%205.472-7.473%202.378-1.684%205.92-3.195%208.122-3.466%203.87-.475%203.928-.542%206.103-7.018%204.228-12.585%2012.053-26.941%2019.985-36.662l2.35-2.88-4.056-4.8c-5.45-6.449-9.327-12.273-12.783-19.2-8.937-17.914-10.9-35.643-6.048-54.615%201.848-7.229%201.848-7.364-.023-15.937-2.55-11.688-3.341-28.77-1.931-41.73%201.274-11.707%205.076-32.822%207.195-39.959%201.838-6.189%205.41-12.116%209.857-16.36%202.56-2.442%204.866-3.662%207.73-4.091%205.12-.766%209.382.925%2016.093%206.385%204.68%203.807%207.378%207.009%2019%2022.542%203.501%204.68%205.007%206.009%206.24%205.506%205.108-2.082%2015.892-5.512%2021.256-6.76%2011.595-2.7%2027.38-4.245%2043.419-4.253%2015.236-.008%2016.605.152%2028.32%203.298%206.77%201.818%2015.515%204.41%2019.432%205.758%203.917%201.349%207.198%202.345%207.29%202.214.092-.13%201.302-2.182%202.688-4.558%203.586-6.146%2014.585-18.14%2021.002-22.903%203.005-2.23%207.476-4.74%209.937-5.578%203.577-1.22%205.176-1.311%207.978-.458%205.37%201.635%209.601%206.36%2013.725%2015.327%202.681%205.831%204.559%2012.19%206.595%2022.337%201.566%207.802%203.12%2019.074%203.454%2025.05.515%209.21.212%2013.279-1.988%2026.705-1.427%208.712-2.405%2017.784-2.173%2020.16s1.17%207.56%202.083%2011.52c1.26%205.464%201.55%209.863%201.2%2018.24-.253%206.072-1.159%2013.632-2.012%2016.8-2.027%207.523-9.088%2021.715-13.978%2028.094l-3.874%205.053%205.835%206.947c3.21%203.82%207.802%2010.1%2010.205%2013.954%204.554%207.304%2010.716%2020.75%2012.87%2028.085%201.193%204.065%201.284%203.515%201.911-11.573.596-14.31.955-16.714%203.725-24.89%206.528-19.274%2011.796-26.992%2021.773-31.904%205.46-2.688%207.607-3.184%2015.227-3.517%209.647-.422%2014.061.523%2019.871%204.256%204.185%202.689%207.854%209.324%208.822%2015.952.514%203.519.228%205.52-1.277%208.922-3.07%206.94-5.829%2010.16-10.46%2012.208-3.358%201.485-5.383%201.763-9.208%201.26-7.236-.95-12.597-4.47-15.485-10.17-1.326-2.616-2.768-4.757-3.205-4.757-1.179%200-3.973%203.325-3.973%204.728%200%20.669-.803%202.363-1.785%203.764-.981%201.402-2.597%204.924-3.59%207.828-2.238%206.549-2.406%2020.522-.48%2039.84%201.293%2012.972%201.268%2013.698-.71%2020.846-1.128%204.073-3.312%209.473-4.854%2012-2.235%203.66-2.93%206.156-3.42%2012.274-.337%204.224-.836%209.235-1.107%2011.134-.486%203.401-.39%203.516%206.25%207.528%204.66%202.816%208.373%206.092%2012.028%2010.616%202.907%203.599%206.246%208.52%207.42%2010.936%201.797%203.698%202.828%204.626%206.512%205.859%204.962%201.66%2011.694%206.677%2015.153%2011.292%205.906%207.881%209.809%2019.612%209.846%2029.602.024%206.405-3.418%2018.892-6.644%2024.098l-2.79%204.505%203.037.295c3.634.353%204.596%203.02%201.658%204.592-1.244.666-14.324%201.402-34.858%201.96-37.819%201.03-281.658.977-321.936-.07m17.539-8.583%207.829-.004-.524-3.902c-.412-3.073-.068-4.517%201.618-6.798l2.14-2.895-1.993-18.883a9378%209378%200%200%201-3.915-37.991c-1.057-10.51-2.112-19.3-2.345-19.533s-2.42.95-4.86%202.629c-4.651%203.2-10.994%2010.96-11.035%2013.5-.013.824%201.397%202%203.163%202.64%201.752.633%204.99%202.695%207.193%204.581%203.022%202.587%204.343%204.652%205.375%208.4.753%202.735%201.634%206.7%201.958%208.812l.59%203.84-2.907-5.28c-3.958-7.19-10.51-13.055-16.607-14.865-2.693-.8-5.82-1.455-6.949-1.455s-4.363.687-7.188%201.526c-3.927%201.166-6.406%202.804-10.531%206.96-6.69%206.739-9.675%2013.788-10.37%2024.499-.836%2012.886%202.705%2023.364%2010.671%2031.573l3.774%203.888%2013.542-.62c7.448-.34%2017.065-.62%2021.37-.622zm330.844-4.455c1.96-2.976%204.102-7.188%204.76-9.36.66-2.172%201.2-8.269%201.203-13.549%200-7.855-.423-10.734-2.347-15.84-1.74-4.617-3.756-7.652-7.758-11.674-4.13-4.151-6.62-5.795-10.543-6.96-2.825-.84-6.06-1.526-7.188-1.526-4.357%200-11.779%202.987-15.644%206.296-2.223%201.902-5.709%206.34-7.747%209.861-3.596%206.214-3.737%206.806-4.764%2020.037-.897%2011.554-.845%2014.044.342%2016.32%201.604%203.074%201.802%206.827.471%208.926-.791%201.249.969%201.51%2013.215%201.96%207.77.285%2018.247.61%2023.282.72l9.155.2zm-87.633-3.855c0-1.419-1.145-1.521-10.8-.965-5.94.343-57.78.625-115.2.627-68.957.003-104.4.33-104.4.964%200%20.635%2039.04.96%20115.2.96%20106.493%200%20115.2-.12%20115.2-1.586m-222.72-5.854c-.002-7.425-8.172-96.45-9.537-103.92-.531-2.904-1.625-10.371-2.432-16.595-1.274-9.826-1.288-11.744-.104-14.578%201.836-4.393%209.978-9.125%2015.725-9.138%202.273-.005%207.973%201.071%2012.668%202.391%2010.39%202.921%2019.671%203.097%2029.76.562%206.667-1.675%2013.545-1.861%2092.883-2.518%2071.611-.592%2085.406-.918%2084-1.986-1.377-1.045-21.686-1.282-111.795-1.307-73.494-.02-111.679.305-114.82.979-3.3.707-5.673%202.006-7.937%204.342-2.903%202.995-3.268%203.992-3.598%209.829-.22%203.905%202.17%2030.41%205.995%2066.457%203.499%2032.98%206.586%2061.366%206.86%2063.082.275%201.716.912%203.12%201.416%203.12s.916-.324.916-.72m266.697-45.354c2.668-3.643%2010.522-8.588%2014.704-9.256%202.045-.327%203.72-1.092%203.72-1.699%200-4.381-15.33-18.804-18.638-17.535-.799.306-1.557%205.665-2.355%2016.628-.647%208.897-1.374%2018.552-1.616%2021.456l-.44%205.28%201.431-6.234c.788-3.429%202.225-7.317%203.194-8.64m2.18-106.497c-.57-3.672-1.037-11.415-1.037-17.206%200-9.132.388-11.715%202.918-19.46%203.197-9.783%208.993-18.662%2012.807-19.62%201.233-.31%203.834.103%205.779.915%202.69%201.124%204.002%202.533%205.486%205.887%202.578%205.829%206.513%208.26%2012.808%207.916%204.36-.239%205.021-.607%207.92-4.415%202.326-3.057%203.162-5.145%203.162-7.9%200-2.061-.715-5.535-1.59-7.72-1.3-3.25-2.48-4.387-6.48-6.25-5.867-2.732-14.061-3.032-21.607-.791-10.252%203.044-16.685%2012.133-22.295%2031.5-2.472%208.533-2.748%2010.907-2.748%2023.686%200%2013.748.077%2014.293%202.4%2017.054%201.32%201.569%202.434%203.438%202.476%204.154.056.955.204.985.556.114.264-.653.013-4.192-.556-7.864m-21.197-2.282c0-.69-1.529-5.045-3.397-9.68-4.741-11.757-9.962-20.153-20.946-33.685l-2.32-2.86-4.669%204.596c-2.567%202.527-8.51%207.184-13.204%2010.348-15.07%2010.156-29.628%2016.163-51.036%2021.06-10.951%202.506-38.223%203.572-51.45%202.012-24.508-2.89-49.824-12.537-66.94-25.506a939%20939%200%200%200-6.89-5.182c-1.547-1.138-2.19-.684-6.121%204.32-2.417%203.074-6.012%208.612-7.99%2012.306-3.29%206.143-9.711%2021.086-9.8%2022.804-.02.396%2055.043.72%20122.363.72%20100.064%200%20122.4-.228%20122.4-1.253m-100.8-14.628c5.016-.89%2013.007-2.888%2017.757-4.438%209.888-3.227%2022.961-9.59%2030.98-15.079%207.45-5.1%2016.852-13.393%2021.943-19.358%202.31-2.706%204.2-4.993%204.202-5.082%200-.089-1.836-.162-4.08-.162-3.423%200-4.082-.305-4.082-1.893%200-1.495.909-2.048%204.32-2.627%207.958-1.352%209.074-2.25%2013.24-10.664%202.139-4.32%204.177-9.01%204.53-10.422l.641-2.566-5.765%201.795c-3.171.987-7.422%201.925-9.446%202.086-3.153.25-3.722-.007-3.976-1.789-.26-1.826.384-2.218%205.28-3.211%206.662-1.352%2012.642-3.832%2015.054-6.243%201.524-1.524%201.67-2.722%201.106-9.031-.687-7.684-3.709-21.482-5.325-24.319-1.022-1.793-.316-8.667%201.19-11.598.5-.97.69-1.978.427-2.242-.264-.264-1.919.141-3.678.9-4.483%201.935-11.432%203.496-12.956%202.91-.705-.27-1.282-1.266-1.282-2.213%200-1.286%201.276-2.022%205.04-2.91%206.933-1.633%2013.063-4.62%2014.741-7.182%203.395-5.18%202.494-34.97-1.625-53.74-2.776-12.655-3.73-15.843-6.169-20.64-2.479-4.876-5.645-8.097-8.94-9.098-3.46-1.051-11.364%204.813-20.32%2015.076-5.603%206.42-8.997%2011.443-12.178%2018.021-2.426%205.016-4.565%209.298-4.754%209.515-.189.216-1.86-.423-3.715-1.422-3.79-2.041-5.053-4.612-3.302-6.722.647-.78%201.006-1.585.8-1.79-.65-.643-14.645-5.997-17.418-6.663l-2.64-.634v29.42l3.36%203.256c3.378%203.274%204.261%206.05%202.308%207.257-.578.358-3.17-1.437-5.76-3.987l-4.708-4.637-.01-12.997c-.01-7.147-.272-14.58-.593-16.517-.577-3.492-.633-3.53-6.889-4.62-3.469-.603-9.898-1.35-14.287-1.66l-7.98-.564v27.865c0%2023.225-.233%2028.058-1.398%2029.025-.77.639-1.85.882-2.4.541-.66-.407-1.002-10.285-1.002-28.882v-28.264l-3.6.018c-4.399.021-23.075%202.622-24.31%203.385-.496.307-.89%208.564-.89%2018.669v18.118l-2.64%201.862c-1.452%201.024-4.965%203.034-7.806%204.465-4.641%202.339-5.315%202.454-6.638%201.132-2.013-2.014-.704-3.394%206.476-6.826l5.808-2.776v-16.623c0-9.143-.108-16.618-.24-16.611-.832.043-12.467%203.921-15.895%205.298-3.157%201.269-3.979%202.029-3.476%203.215%201.84%204.348%201.583%205.716-1.364%207.24-1.611.833-3.293%201.514-3.736%201.514s-2.46-3.564-4.481-7.92c-4.095-8.826-13.82-22.54-20.026-28.238-2.234-2.051-5.676-4.722-7.648-5.935-4.007-2.464-6.512-2.178-10.19%201.164-2.863%202.603-6.496%209.705-7.739%2015.132-5.843%2025.502-7.277%2037.045-6.554%2052.735.431%209.362.906%2012.246%202.343%2014.24.991%201.377%204.701%203.967%208.244%205.756%204.475%202.26%206.442%203.8%206.442%205.04%200%202.367-2.878%202.317-7.68-.134-2.07-1.056-3.951-1.92-4.18-1.92s.015%201.7.543%203.779c.766%203.018.637%204.418-.642%206.96-1.652%203.281-5.303%2017.207-5.315%2020.27-.009%202.21%206.007%207.741%2010.741%209.876%202.228%201.005%203.653%202.308%203.653%203.341%200%203.625-4.782%202.717-10.744-2.039-1.949-1.554-3.785-2.827-4.08-2.827s-.536.783-.536%201.74c0%203.052%203.668%2015.874%206.143%2021.469%202.562%205.794%204.04%206.73%2012.757%208.077%204.29.662%205.826%202.437%203.663%204.232-.858.712-2.907.86-5.826.423l-4.503-.675%204.203%205.988c5.475%207.801%2018.876%2020.532%2027.806%2026.415%208.742%205.76%2021.926%2012.037%2032.077%2015.274%206.76%202.156%2017.905%204.412%2028.32%205.734%206.855.87%2032.457-.27%2041.28-1.838zm-31.686-26.296c-4.775-1.452-8.504-3.926-11.901-7.895-3.624-4.233-5.358-8.76-5.367-14.008-.005-2.697-.335-3.12-2.437-3.12-3.567%200-9.089-2.56-9.089-4.214%200-2.304%201.657-2.691%204.724-1.105%204.013%202.075%2013.968%201.895%2018.796-.34%202.112-.978%205-3.021%206.42-4.54%202.293-2.455%204.62-6.923%204.62-8.87%200-.388-1.538-1.261-3.418-1.941-1.922-.695-3.887-2.263-4.487-3.58-.882-1.936-.729-2.801.878-4.957%201.75-2.35%202.624-2.64%208.705-2.893%206.343-.262%206.885-.121%208.781%202.29%201.112%201.413%202.021%203.12%202.021%203.795%200%201.55-5.454%206.195-7.273%206.195-1.634%200-1.703.905-.346%204.498%201.452%203.842%205.55%207.933%2010.02%2010.002%204.827%202.236%2014.782%202.416%2018.795.341%202.794-1.445%204.724-1.217%204.724.557%200%201.044-7%204.762-8.966%204.762-.974%200-1.478%201.584-1.764%205.545-.57%207.874-4.579%2013.48-12.455%2017.416-4.911%202.455-7%202.945-12.248%202.877-3.48-.046-7.41-.412-8.733-.815m17.39-6.176c1.904-.91%204.872-3.034%206.595-4.718l3.133-3.062-5.156-2.307c-6.951-3.11-17.982-3.836-24.643-1.623-2.665.885-5.374%202.246-6.02%203.024-.954%201.15-.743%201.884%201.126%203.915%201.266%201.374%204.461%203.541%207.101%204.816%203.63%201.753%205.97%202.232%209.6%201.964%202.64-.194%206.359-1.099%208.264-2.01m-55.784-72.099c-5.985-4.51-12.554-6.648-18.113-5.895-2.446.331-7.548%202.194-11.339%204.14-6.038%203.099-7.198%203.398-9.36%202.413-1.357-.619-2.468-1.728-2.468-2.466%200-1.653%2010.996-7.487%2018.524-9.828%204.76-1.48%206.33-1.569%2010.88-.615%206.389%201.34%2014.435%204.908%2019.11%208.474%202.335%201.781%203.33%203.247%203.133%204.62-.21%201.472-1.057%202.063-3.167%202.211-1.995.14-4.206-.798-7.2-3.054m78.4%202.692c-1.349-1.349-.537-3.897%202-6.274%203.585-3.36%209.2-6.055%2016.867-8.098%205.464-1.456%207.079-1.534%2010.97-.533%206.69%201.723%2020.403%208.667%2020.403%2010.332%200%20.778-1.11%201.92-2.467%202.539-2.164.986-3.323.684-9.4-2.442-11.765-6.054-18.88-5.647-29.301%201.678-4.658%203.274-7.668%204.202-9.072%202.798m68.618-34.516c-5.195-8.552-14.081-19.006-21.262-25.014-6.242-5.224-6.68-5.845-6.698-9.495q-.042-9.066%207.43-20.095c4.598-6.788%207.484-8.589%209.626-6.008.814.981-.14%203.658-4.039%2011.327-2.807%205.523-5.373%2011.181-5.7%2012.574-.502%202.129-.025%202.968%202.994%205.262%206.69%205.085%2014.545%2013.614%2019.433%2021.102%202.678%204.101%204.636%208.06%204.353%208.799s-.515%201.872-.515%202.52-.54%201.887-1.2%202.755c-1.053%201.385-1.593.93-4.422-3.727m-209.226-.556c-1.646-1.646-1.396-4.454.84-9.408%201.304-2.889%205.48-7.702%2012.607-14.531l10.658-10.212-6.042-12.264c-5.704-11.576-5.944-12.335-4.285-13.548%202.344-1.714%203.799-1.619%205.797.379%204.773%204.774%2012.873%2021.189%2012.873%2026.09%200%202.042-1.178%203.649-5.04%206.869-10.413%208.684-16.394%2015.013-20.128%2021.297-2.118%203.564-4.363%206.48-4.99%206.48-.625%200-1.656-.518-2.29-1.152'%20style='fill:%238a8a8a;stroke-width:.96'/%3e%3cpath%20d='M736.598%20555.48c-19.536-.356-37.032-.982-38.88-1.392s-3.659-1.217-4.025-1.793c-.925-1.457.996-3.512%203.282-3.512%201.693%200%201.574-.374-1.08-3.395-3.876-4.416-7.2-11.127-8.775-17.725-1.835-7.68-1.44-19.456.902-26.92%202.466-7.862%206.564-14.11%2012.871-19.628%205.166-4.518%2011.382-7.212%2016.647-7.212%202.881%200%203.39-.47%205.781-5.354%202.831-5.782%2011.812-14.869%2017.265-17.47%202.105-1.003%203.215-2.214%203.22-3.513.004-1.09-1.137-13.308-2.535-27.15-2.218-21.972-2.381-25.736-1.284-29.654.988-3.532%202.154-5.123%205.472-7.473%202.378-1.684%205.92-3.195%208.122-3.466%203.87-.475%203.928-.542%206.103-7.018%204.228-12.585%2012.053-26.941%2019.985-36.662l2.35-2.88-4.056-4.8c-5.45-6.449-9.327-12.273-12.783-19.2-8.937-17.914-10.9-35.643-6.048-54.615%201.848-7.229%201.848-7.364-.023-15.937-2.55-11.688-3.341-28.77-1.931-41.73%201.274-11.707%205.076-32.822%207.195-39.959%201.838-6.189%205.41-12.116%209.857-16.36%202.56-2.442%204.866-3.662%207.73-4.091%205.12-.766%209.382.925%2016.093%206.385%204.68%203.807%207.378%207.009%2019%2022.542%203.501%204.68%205.007%206.009%206.24%205.506%205.108-2.082%2015.892-5.512%2021.256-6.76%2011.625-2.706%2027.396-4.245%2043.572-4.253%2013.394-.007%2017.423.335%2023.52%201.99%206.676%201.814%2027.684%208.144%2030.288%209.127.588.222%202.211-1.62%203.607-4.092%203.477-6.161%2014.55-18.308%2021.164-23.216%203.005-2.23%207.476-4.74%209.937-5.578%203.577-1.22%205.176-1.311%207.978-.458%205.37%201.635%209.601%206.36%2013.725%2015.327%202.681%205.831%204.559%2012.19%206.595%2022.337%201.566%207.802%203.12%2019.074%203.454%2025.05.515%209.21.212%2013.279-1.988%2026.705-1.427%208.712-2.405%2017.784-2.173%2020.16s1.17%207.56%202.083%2011.52c1.26%205.464%201.55%209.863%201.2%2018.24-.253%206.072-1.159%2013.632-2.012%2016.8-2.027%207.523-9.088%2021.715-13.978%2028.094l-3.874%205.053%205.835%206.947c3.21%203.82%207.802%2010.1%2010.205%2013.954%204.554%207.304%2010.716%2020.75%2012.87%2028.085%201.193%204.065%201.284%203.515%201.911-11.573.595-14.31.955-16.714%203.725-24.89%206.528-19.274%2011.796-26.992%2021.773-31.904%205.46-2.688%207.607-3.184%2015.227-3.517%209.647-.422%2014.061.523%2019.871%204.256%204.185%202.689%207.854%209.324%208.822%2015.952.514%203.519.228%205.52-1.277%208.922-3.07%206.94-5.829%2010.16-10.46%2012.208-3.358%201.485-5.383%201.763-9.208%201.26-7.236-.95-12.597-4.47-15.485-10.17-1.326-2.616-2.768-4.757-3.205-4.757-1.179%200-3.973%203.325-3.973%204.728%200%20.669-.803%202.363-1.785%203.764-.981%201.402-2.597%204.924-3.59%207.828-2.238%206.549-2.406%2020.522-.48%2039.84%201.293%2012.972%201.268%2013.698-.71%2020.846-1.128%204.073-3.312%209.473-4.854%2012-2.235%203.66-2.93%206.156-3.42%2012.274-.337%204.224-.836%209.235-1.107%2011.134-.486%203.401-.39%203.516%206.25%207.528%204.66%202.816%208.373%206.092%2012.028%2010.616%202.907%203.599%206.246%208.52%207.42%2010.936%201.825%203.756%202.801%204.615%206.723%205.918%205.347%201.776%2012.824%208.157%2017.07%2014.567%204.314%206.512%206.905%2015.645%207.019%2024.741.12%209.662-1.483%2016.593-5.61%2024.24-3.174%205.884-3.196%206-1.096%206.015%201.178.008%202.745.397%203.482.863%202.338%201.48.38%203.706-3.913%204.45-2.28.394-19.699%201.014-38.707%201.377-44.24.844-255.864.838-302.4-.01zm1.156-8.277%2011.537-.62-.43-3.94c-.34-3.124.012-4.406%201.7-6.193l2.126-2.254-3.828-38.33c-2.105-21.081-4.065-38.567-4.355-38.857-.96-.96-5.927%202.28-9.961%206.497-3.553%203.715-7.71%2010.222-6.896%2010.794.171.12%202.785%201.402%205.808%202.85%203.024%201.448%206.37%203.742%207.437%205.098%201.976%202.513%203.255%206.387%204.375%2013.255l.626%203.84-2.1-3.84c-3.181-5.815-9.327-11.648-14.716-13.966-3.635-1.564-6.155-1.979-10.175-1.676-2.94.222-7.057%201.226-9.152%202.231-7.537%203.617-14.098%2012.38-16.81%2022.451-1.834%206.81-1.417%2018.048.927%2025.006%202.278%206.762%206.336%2013.229%2010.217%2016.282%202.188%201.721%203.867%201.992%2012.333%201.992%205.39%200%2014.991-.279%2021.337-.62m334.254-3.54c4.394-6.386%206.982-15.182%206.982-23.73%200-4.038-.51-9.235-1.133-11.55-2.714-10.076-9.283-18.846-16.81-22.442-5.525-2.64-12.998-3.039-18.381-.983-5.331%202.036-11.13%207.055-14.957%2012.945l-2.807%204.32.647-3.36c1.377-7.153%202.488-10.402%204.382-12.809%202.168-2.756%2012.972-8.31%2016.164-8.31%201.113%200%202.023-.368%202.023-.817%200-1.325-5.286-8.23-9.267-12.105-3.339-3.25-10.689-7.828-11.342-7.066-.144.17-1.633%2016.844-3.308%2037.056s-3.289%2037.384-3.587%2038.16-.08%201.411.483%201.411%201.542%201.73%202.175%203.843c.861%202.872.88%204.44.074%206.207l-1.077%202.364%209.805.31c5.392.172%2015.94.403%2023.438.514l13.634.202zm-53.896-.602c1.568-2.51.588-4.715-2.434-5.474-3.703-.93-260.707.63-261.681%201.589-.463.455-.563%201.938-.222%203.297l.62%202.47h131.27c129.35%200%20131.289-.027%20132.447-1.882m-256.468-20.438c-.352-5.94-.88-12.58-1.174-14.757l-.533-3.957%207.05%201.22c16.55%202.863%2029.98%203.78%2054.571%203.726%2027.344-.061%2040.42-1.234%2063.158-5.668%2040.241-7.846%2073.571-23.077%2093.438-42.698%208.32-8.217%2013.29-15.502%2016.918-24.797%202.138-5.478%202.51-7.92%202.51-16.509%200-8.612-.37-11.025-2.533-16.57-3.012-7.719-7.258-14.16-10.915-16.556-2.536-1.662-7.487-1.708-113.276-1.055-60.844.375-111.886%201.044-113.428%201.486-7.057%202.024-9.81%205.305-10.822%2012.892-.454%203.403%201.091%2021.225%205.004%2057.723%203.113%2029.04%206.113%2057.552%206.665%2063.36s1.179%2011.1%201.392%2011.76c.214.66.89%201.2%201.503%201.2.816%200%20.942-2.878.472-10.8m269.262-142.784c-.565-3.643-1.028-10.93-1.028-16.193%200-8.025.463-10.986%202.868-18.345%204.4-13.464%2010.963-21.78%2016.208-20.538%203.523.835%205.729%202.985%208.334%208.121%202.15%204.242%203.74%205.393%209.805%207.104%206.383%201.802%2013.978-5.658%2013.82-13.572-.046-2.27-.99-5.908-2.1-8.082-1.51-2.958-3.125-4.443-6.424-5.902-3.645-1.612-5.833-1.877-12.659-1.53-13.545.69-19.767%204.996-26.093%2018.055-1.474%203.043-3.888%209.793-5.363%2015-2.375%208.38-2.685%2011.07-2.7%2023.441-.016%2013.855.01%2014.002%202.624%2017.114%201.452%201.726%202.705%204.078%202.784%205.225.106%201.54.25%201.385.548-.594.222-1.474-.06-5.661-.624-9.304m-21.146-2.656c-3.838-12.928-13.47-30.031-22.82-40.523l-3.817-4.284-5.663%205.078c-7.014%206.29-18.75%2014.146-28.14%2018.837-8.832%204.412-23.854%209.385-36.8%2012.182-8.35%201.804-12.896%202.132-30.002%202.167-17.61.035-21.495-.245-30.72-2.212-12.993-2.772-25.403-6.846-35.52-11.663-8.555-4.074-20.275-11.474-25.662-16.204l-3.535-3.104-4.834%206.543c-2.66%203.599-6.579%209.874-8.71%2013.945-3.733%207.13-8.619%2019-8.619%2020.94%200%20.606%2043.49.938%20122.813.938h122.813Zm-99.882-13.153c24.996-4.83%2047.305-16.232%2063.838-32.623%208.56-8.486%2016.49-19.554%2020.759-28.966%201.512-3.335%203.67-9.42%204.796-13.524%201.647-6.007%201.923-8.865%201.412-14.677-.349-3.969-1.725-11.105-3.06-15.857-2.75-9.793-2.838-10.43-1.998-14.4.336-1.584%201.02-4.824%201.52-7.2.502-2.376%201.433-5.616%202.07-7.2.639-1.584%201.364-8.712%201.613-15.84.317-9.072-.026-16.415-1.143-24.48-2.722-19.649-6.083-32.121-10.395-38.573-2.343-3.506-3.931-4.834-6.56-5.484-3.061-.756-3.982-.503-7.857%202.164-5.292%203.64-17.265%2016.635-21.491%2023.325-1.681%202.66-4.261%207.603-5.734%2010.983s-3.054%206.145-3.515%206.145-2.093-.893-3.627-1.985c-2.926-2.084-3.559-4.54-1.658-6.44.866-.867-.197-1.72-4.56-3.659-7.26-3.227-12.231-4.785-22.97-7.2-11.023-2.478-35.14-3.481-46.679-1.941-15.78%202.106-38.933%209.154-38.582%2011.746.098.726.457%202.234.799%203.352.494%201.622-.087%202.47-2.87%204.19-1.919%201.186-3.607%202-3.751%201.807-.144-.192-1.861-3.767-3.816-7.944-6.006-12.838-17.323-27.178-26.37-33.413-3.376-2.327-4.76-2.746-7.422-2.246-5.549%201.04-10.979%2010.132-12.798%2021.426-.531%203.301-1.21%206.396-1.507%206.877-1.448%202.343-4.345%2026.732-4.354%2036.66-.01%2011.708.981%2019.112%203.242%2024.201.745%201.677%201.792%204.916%202.327%207.198.8%203.413.66%204.862-.79%208.16-.968%202.206-2.714%208.091-3.879%2013.078-1.646%207.047-2%2010.788-1.589%2016.8.622%209.103%203.788%2018.884%209.462%2029.235%205.385%209.821%2010.02%2015.943%2017.812%2023.52%208.286%208.059%2015.763%2013.623%2025.612%2019.06%2013.597%207.504%2027.432%2012.096%2044.162%2014.658%2011.371%201.74%2038.342%201.233%2049.551-.933m-32.29-26.532c-5.24-1.519-12.199-6.886-14.61-11.267-1.256-2.284-2.41-6.161-2.565-8.616-.28-4.44-.304-4.47-4.72-5.596-2.44-.623-5.09-1.674-5.887-2.336-2.616-2.17.056-2.924%205.43-1.531%203.58.928%206.885%201.118%2010.6.61%202.968-.407%206.245-1.194%207.282-1.749s3.458-2.749%205.379-4.875c3.695-4.09%205.573-8.837%203.739-9.449-.586-.195-2.49-1.33-4.232-2.524-2.333-1.598-3.096-2.78-2.902-4.495.42-3.696%203.81-5.641%209.875-5.665%204.066-.016%205.84.445%207.44%201.936%203.126%202.912%202.722%206.332-1.019%208.613-1.716%201.046-3.512%202.034-3.991%202.196-1.722.582.53%205.667%204.34%209.801%202.137%202.318%205.399%204.714%207.248%205.324%203.4%201.122%2015.173.794%2019.283-.536%201.606-.52%202.16-.321%202.16.775%200%20.917-1.815%202.078-4.8%203.07-4.731%201.57-4.8%201.65-4.82%205.597-.063%2011.824-12.127%2021.946-25.834%2021.676-2.412-.048-5.74-.48-7.396-.96m17.486-6.044c2.682-1.248%205.837-3.492%207.013-4.987l2.136-2.716-4.259-2.165c-2.342-1.19-6.794-2.57-9.892-3.065-8.213-1.313-18.532.638-21.353%204.036-1.028%201.24-.94%201.898.52%203.86%205.228%207.026%2016.742%209.272%2025.835%205.037m-55.756-72.18c-2.64-1.829-7.087-4.182-9.883-5.23-4.385-1.644-5.705-1.756-9.6-.815-2.484.6-7.362%202.562-10.84%204.36-5.39%202.786-6.71%203.12-8.957%202.265-1.45-.552-2.47-1.54-2.267-2.197.566-1.832%2015.006-9.127%2020.612-10.412%203.947-.905%205.945-.884%209.6.1%209.84%202.649%2021.415%209.651%2021.415%2012.955%200%201.255-2.11%202.447-4.158%202.35-.617-.029-3.282-1.548-5.922-3.376m77.92%202.79c-.352-.353-.64-1.41-.64-2.352%200-3.357%2011.615-10.108%2021.2-12.32%204.625-1.069%206.071-1.024%2010.56.325%206.227%201.872%2018.38%208.263%2018.904%209.94.205.657-.82%201.648-2.278%202.202-2.258.859-3.496.558-8.352-2.03-3.135-1.672-7.918-3.629-10.627-4.35-4.276-1.136-5.52-1.113-9.426.175-2.475.816-7.133%203.186-10.352%205.266-5.76%203.723-7.723%204.41-8.989%203.143m66.789-37.5c-5.805-8.817-16.594-20.78-22.317-24.746l-4.07-2.82.56-5.988c.307-3.293%201.463-7.76%202.568-9.925%202.73-5.351%208.386-14.117%209.588-14.86%201.308-.808%204.802.351%204.802%201.594%200%20.543-2.376%205.733-5.28%2011.534-2.904%205.8-5.28%2011.557-5.28%2012.79%200%201.492%201.045%202.895%203.12%204.19%204.704%202.932%2014.357%2013.222%2019.397%2020.677%203.724%205.506%204.405%207.186%204.034%209.94-.246%201.822-.843%203.71-1.328%204.195-.535.535-2.811-2.05-5.794-6.58m-207.76%201.189c-1.888-4.146%201.402-9.475%2013.462-21.8l10.989-11.23-2.15-5.09c-1.181-2.8-3.82-8.17-5.861-11.935-3.541-6.53-3.633-6.918-1.995-8.4.945-.855%202.204-1.555%202.798-1.555%203.126%200%2014.454%2019.982%2015.234%2026.87.365%203.22-.004%203.691-8.274%2010.57-9.333%207.763-14.124%2012.966-16.805%2018.253-1.963%203.869-4.28%206.707-5.476%206.707-.458%200-1.322-1.076-1.921-2.39'%20style='fill:%23474747;stroke-width:.96'/%3e%3cellipse%20cx='885.983'%20cy='326.113'%20rx='19.82'%20ry='9.5'%20style='fill:%23d67e94;fill-opacity:1;fill-rule:evenodd'/%3e%3cpath%20d='M768.245%20553.884c-34.584-.425-65.472-1.106-68.64-1.514-4.874-.626-5.76-1.036-5.76-2.66%200-1.246.74-2.025%202.107-2.22%202.031-.289%201.986-.46-1.239-4.685-6.033-7.904-9-17.173-9.017-28.173-.02-13.202%204.312-24.407%2012.723-32.903%205.169-5.22%2011.028-8.174%2017.803-8.976%204.395-.52%204.716-.764%206.69-5.066%202.957-6.446%208.647-12.5%2015.396-16.381%205.638-3.243%205.82-3.47%205.39-6.716-.246-1.848-1.318-12.216-2.382-23.04s-2.18-20.483-2.48-21.464c-.301-.981-.253-4.137.107-7.013.49-3.927%201.407-6.088%203.682-8.679%203.357-3.823%207.78-6.044%2012.035-6.044%202.537%200%202.902-.423%203.93-4.56%201.798-7.234%2011.9-26.943%2017.748-34.623%202.94-3.863%205.347-7.245%205.347-7.516s-2.112-2.943-4.693-5.937c-8.903-10.33-14.962-21.968-18.367-35.282-2.657-10.386-2.608-26.228.113-36.489%201.107-4.176%201.977-8.025%201.934-8.553s-.96-4.848-2.036-9.6c-1.49-6.578-1.97-12.19-2.018-23.52-.064-15.45.788-24.187%204.027-41.28%203.402-17.95%205.9-24.071%2012.738-31.208%203.863-4.031%204.459-4.312%209.145-4.312%202.756%200%206.394.708%208.084%201.573%206.148%203.147%2012.488%209.508%2021.501%2021.573%205.062%206.775%209.466%2012.173%209.788%2011.994%205.254-2.927%2017.624-6.818%2027.464-8.64%2015.684-2.904%2025.987-3.717%2041.28-3.255%2016.281.49%2018.337.898%2040.801%208.088%205.545%201.775%2010.364%203.227%2010.71%203.227.344%200%201.797-1.998%203.227-4.439%203.675-6.27%2014.818-18.661%2020.597-22.903%202.686-1.972%206.98-4.382%209.542-5.355%203.684-1.4%205.379-1.571%208.1-.82%201.894.523%204.823%202.112%206.509%203.53%204.173%203.512%2010.736%2017.946%2012.78%2028.11.898%204.464%202.04%209.957%202.54%2012.206.498%202.249%201.35%209.62%201.891%2016.379.916%2011.417.807%2013.367-1.533%2027.47-2.758%2016.626-2.754%2021.395.03%2036.542%201.531%208.325%201.622%2010.875.686%2019.2-1.642%2014.604-6.52%2027.296-15.195%2039.532-2.313%203.263-4.205%206.223-4.205%206.579s2.001%202.87%204.448%205.588c9.456%2010.504%2018.083%2025.465%2022.856%2039.638%202.841%208.434%204.557%209.166%203.803%201.62-.864-8.645%201.09-26.744%203.767-34.907%204.026-12.274%208.325-20.196%2014.054-25.895%207.096-7.06%2012.731-9.115%2024.992-9.115%208.1%200%209.748.308%2014.736%202.758%205.074%202.491%205.885%203.326%208.4%208.64%203.888%208.22%203.796%2013.877-.336%2020.772-4.2%207.006-8.19%209.59-14.813%209.59-8.893%200-15.494-3.917-18.286-10.85-1.123-2.787-1.938-3.582-3.447-3.36-2.245.33-6.061%207.238-9.362%2016.947-1.87%205.5-2.013%207.332-1.454%2018.72%201.79%2036.46%201.788%2036.09.093%2042.233-.897%203.25-2.926%207.953-4.509%2010.45-2.436%203.844-3.007%205.98-3.716%2013.92-1.322%2014.795-1.625%2013.736%205.022%2017.54%206.906%203.952%2016.748%2014.699%2019.95%2021.783%201.89%204.181%202.634%204.879%206.236%205.842%208.443%202.258%2017.35%2011.826%2021.845%2023.465%202.52%206.524%203.388%2020.66%201.704%2027.75-1.284%205.409-5.388%2014.907-6.825%2015.795-1.648%201.018-.795%202.202%201.801%202.501%201.9.219%202.64.843%202.64%202.224%200%201.607-.861%202.028-5.28%202.584-7.178.903-148.756%202.654-201.6%202.493-23.496-.071-71.016-.478-105.6-.903m-18.564-8.31c.086-.101-.321-1.45-.905-2.996-1.076-2.852-.552-4.807%202.39-8.906.942-1.313.454-9.134-2.457-39.36-1.998-20.747-3.812-38.277-4.031-38.956-.316-.977-.977-.934-3.181.205-1.53.792-4.203%202.634-5.939%204.095-3.267%202.75-8.593%2010.395-8.593%2012.336%200%20.608%201.832%201.928%204.07%202.932%206.465%202.899%2010.133%206.696%2011.76%2012.17%202.17%207.311%201.77%208.23-1.46%203.351-3.222-4.863-7.834-8.747-12.9-10.864-1.83-.765-5.827-1.387-8.88-1.382-10.378.018-19.737%206.638-24.785%2017.534-1.236%202.668-2.78%207.827-3.43%2011.464-1.473%208.245-.243%2017.398%203.414%2025.407%202.545%205.573%208.209%2012.412%2011.262%2013.6%201.352.525%2043.196-.078%2043.665-.63m320.74-1.387c3.239-3.447%207.058-12.769%208.167-19.933.762-4.923.721-8.286-.16-13.217-3.15-17.632-14.186-28.974-28.214-28.998-9.142-.015-16.839%204.307-21.91%2012.305-1.529%202.41-2.78%203.728-2.78%202.928%200-3.66%203.086-11.235%205.498-13.495%203.112-2.917%209.995-6.54%2012.464-6.562.945-.008%202.324-.398%203.064-.867%201.109-.701.91-1.597-1.132-5.08-3.016-5.148-9.685-11.44-14.998-14.15-3.655-1.864-3.94-1.886-3.99-.308-.03.935-1.481%2018.332-3.225%2038.66-2.718%2031.67-2.98%2037.181-1.838%2038.507%201.54%201.786%201.991%206.154.949%209.189-.632%201.838-.33%202.144%202.444%202.486%201.74.215%2012.27.46%2023.397.544%2019.845.151%2020.272.112%2022.265-2.009m-53.372-1.346c2.02-1.828%202.267-4.236.603-5.9-.885-.885-30.902-1.125-129.84-1.038-70.778.063-129.983.39-131.567.727-2.042.434-2.972%201.255-3.194%202.819-.751%205.285-8.814%204.98%20132.115%204.98%20119.738%200%20130.267-.126%20131.883-1.588m-3.378-11.198c.488-.487%209.966-112.94%2010.576-125.481.487-10.006.325-12.533-.965-15.028-.853-1.65-3.181-4.012-5.174-5.251l-3.624-2.253-123.327-.261c-75.602-.16-125.916.097-130.018.666-10.167%201.409-15.017%205.95-15.67%2014.675-.21%202.794%202.04%2027.328%205%2054.52s6.022%2055.704%206.803%2063.36%201.57%2014.352%201.754%2014.88c.22.635%2043.307.874%20127.35.706%2069.86-.14%20127.142-.38%20127.295-.533m18.54-135.533c0-3.168-.64-10.512-1.417-16.32-.778-5.808-1.417-13.623-1.422-17.367-.014-11.947%205.034-27.329%2011.55-35.193%202.323-2.804%203.67-3.6%206.089-3.6%201.709%200%203.924.598%204.923%201.328s2.922%203.431%204.273%206c3.041%205.788%207.378%208.317%2013.237%207.722%202.244-.228%204.753-.973%205.575-1.656s2.599-3.122%203.946-5.422c2.034-3.47%202.343-4.898%201.817-8.406-1.22-8.13-6.546-13.05-15.703-14.503-4.87-.773-14.544.943-19.462%203.451-7.607%203.881-13.707%2014.34-18.611%2031.914-2.402%208.608-2.593%2010.529-2.29%2023.098.318%2013.257.414%2013.812%202.91%2016.777%202.903%203.447%204.162%209.449%203.4%2016.207-.305%202.702-.171%203.878.347%203.06.463-.732.84-3.922.838-7.09m-22.661-20.4c-.358-1.452-2.183-6.312-4.054-10.8-3.357-8.05-13.306-23.768-19.716-31.148l-3.29-3.787-6.123%205.707c-10.299%209.6-24.712%2018.28-39.852%2024.002-15.643%205.91-38.217%2010.026-54.99%2010.026-11.044%200-28.13-2.26-39.495-5.223-16.877-4.4-34.198-12.472-46.035-21.453-3.28-2.488-6.776-5.127-7.77-5.863-2.09-1.55-1.898-1.737-9.317%209.019-5.589%208.102-9.573%2015.87-12.923%2025.2l-2.5%206.96h246.716zm-97.22-13.53c11.897-2.769%2021.803-6.27%2031.372-11.09%2017.052-8.59%2032.973-22.126%2042.465-36.104%205.178-7.625%2010.92-19.884%2012.88-27.495.834-3.244%201.518-8.54%201.518-11.77%200-5.623-2.757-20.339-4.977-26.574-.868-2.438-.583-4.907%201.61-13.92%203.535-14.524%204.27-32.537%201.984-48.64-.88-6.202-2.25-13.87-3.046-17.037-.796-3.168-1.874-7.488-2.396-9.6-2.306-9.331-8.123-16.8-13.085-16.8-3.507%200-10.978%205.068-15.291%2010.374-2.014%202.478-4.53%205.395-5.591%206.483-3.937%204.036-7.08%208.846-11.401%2017.45-3.275%206.52-4.817%208.69-5.883%208.282-.794-.305-1.444-.89-1.444-1.3s-.864-.971-1.92-1.247c-2.124-.555-2.561-3.498-.784-5.274.624-.625.948-1.291.72-1.481-.23-.19-4.304-1.891-9.056-3.78-4.752-1.89-13.176-4.441-18.72-5.671-8.75-1.94-12.678-2.236-29.76-2.236-15.55%200-21.292.366-27.36%201.742-9.327%202.116-15.243%203.891-23.716%207.117l-6.435%202.45%201.388%202.684c1.227%202.372%201.213%202.859-.12%204.192-2.453%202.453-5.535%203.841-5.926%202.67-1.156-3.468-8.32-17.215-10.519-20.186-11.417-15.424-19.98-23.23-25.483-23.23-1.365%200-3.757%201.074-5.315%202.385-3.509%202.952-7.57%2011.071-8.41%2016.816-.347%202.376-1.214%206.48-1.925%209.12-.71%202.64-2.013%209.906-2.895%2016.146-1.149%208.134-1.47%2015.2-1.137%2024.96.444%2012.988%201.46%2018.36%205.485%2028.974.458%201.21.043%203.52-1.123%206.24-3.023%207.057-5.536%2019.19-5.543%2026.764-.009%209.234%202.927%2019.812%208.536%2030.754%202.43%204.741%207.01%2011.93%2010.178%2015.974%206.44%208.222%2016.789%2017.54%2026.86%2024.18%2012.381%208.165%2029.016%2014.869%2044.472%2017.922%2011.284%202.23%2012.755%202.319%2032.828%201.986%2014.476-.24%2020.589-.746%2026.965-2.23m-34.818-26.45c-5.176-1.393-10.163-4.916-13.905-9.822-1.961-2.57-2.714-4.819-3.017-9.006-.398-5.505-.448-5.588-3.74-6.205-4.729-.887-7.965-2.521-7.965-4.021%200-1.64.891-1.618%205.066.127%205.159%202.155%2014.97.956%2020.412-2.495%204.593-2.913%208.112-7.71%208.118-11.064.003-1.418-1.126-2.65-3.596-3.928-4.402-2.278-5.12-5.255-2.056-8.518%201.93-2.053%202.833-2.278%207.765-1.938%205.893.406%207.989%201.483%208.984%204.618.728%202.294-2.847%206.552-5.5%206.552-1.288%200-1.753.727-1.753%202.738%200%203.823%203.58%208.724%208.658%2011.853%205.488%203.383%2014.625%204.304%2020.272%202.045%202.084-.834%204.03-1.275%204.325-.98%201.117%201.116-.864%202.598-5.14%203.845l-4.43%201.292-.17%204.86c-.34%209.658-8.124%2018.066-18.857%2020.368-5.867%201.258-7.779%201.212-13.47-.32m17.207-5.352c4.221-1.916%208.886-5.929%208.886-7.645%200-1.64-6.935-4.643-13.454-5.826-3.382-.613-8.095-.823-10.472-.466-5.846.876-11.459%203.222-12.538%205.239-.684%201.276-.18%202.344%202.188%204.634%201.691%201.636%204.588%203.628%206.436%204.428%204.78%202.067%2013.988%201.89%2018.954-.364m-3.114-46.095c0-1.709-3.167-2.51-4.53-1.147-.532.532-.662%201.461-.288%202.065.954%201.544%204.818.808%204.818-.918m-52.767-26.912c-7.495-4.98-13.8-7.058-18.828-6.209-2.137.362-6.883%202.156-10.546%203.99-6.884%203.443-10.745%203.848-11.253%201.18-.2-1.054%201.764-2.616%206.23-4.954%203.588-1.879%208.973-4.123%2011.967-4.988%205.03-1.452%205.902-1.453%2011.452-.015%207.242%201.876%2013.611%205.04%2018.145%209.012%203.256%202.854%203.302%202.989%201.496%204.394-1.025.797-2.105%201.437-2.4%201.422s-3.113-1.74-6.263-3.832m78.308%202.54c-.602-.725-.857-1.936-.567-2.692.854-2.227%2011.085-8.383%2016.676-10.034%207.983-2.358%2014.45-1.453%2024.35%203.404%204.62%202.268%208.4%204.717%208.4%205.443%200%20.727-1.058%201.587-2.35%201.911-1.634.41-4.417-.444-9.137-2.805-3.732-1.868-8.627-3.671-10.877-4.009-4.967-.745-11.398%201.474-19.112%206.594-2.906%201.929-5.51%203.507-5.786%203.507-.277%200-.996-.593-1.597-1.318m66.215-37.329c-2.948-4.482-9.59-12.267-15.322-17.959l-10.118-10.046.134-5.47c.074-3.044.867-6.89%201.787-8.673%203.25-6.296%209.304-15.1%2010.77-15.662.822-.315%202.09.023%202.818.752%201.126%201.126.613%202.678-3.424%2010.355-2.61%204.967-5.177%2010.595-5.702%2012.506l-.956%203.475%207.088%205.914c6.784%205.662%2015.736%2016.425%2018.936%2022.767%201.179%202.338%201.298%203.754.546%206.48-.53%201.919-1.051%203.485-1.159%203.481-.107-.004-2.536-3.568-5.398-7.92m-206.871%201.953c-1.592-2.43-1.562-2.706.822-7.746%201.818-3.842%205.138-7.738%2012.54-14.713%205.536-5.217%2010.068-10.182%2010.07-11.032.003-1.693-6.59-16.068-9.312-20.304-1.28-1.992-1.45-3.052-.686-4.263%201.686-2.673%203.171-2.527%206.09.597%203.585%203.838%2011.734%2020.244%2011.924%2024.006.128%202.533-1.054%203.958-9.392%2011.324-5.722%205.054-11.192%2010.923-13.67%2014.666-7.37%2011.135-6.493%2010.355-8.386%207.465'%20style='fill:%23040403;stroke-width:.96'/%3e%3cellipse%20cx='894.927'%20cy='331.661'%20rx='.305'%20ry='.191'%20style='fill:%23c8c8c8;fill-opacity:1;fill-rule:evenodd'/%3e%3cellipse%20cx='886.078'%20cy='370.851'%20rx='4.774'%20ry='.163'%20style='fill:%23fff;fill-opacity:1;fill-rule:evenodd'/%3e%3cellipse%20cx='894.548'%20cy='404.879'%20rx='2.8'%20ry='4.271'%20style='fill:%23fff;fill-opacity:1;fill-rule:evenodd'/%3e%3cellipse%20cx='1145.216'%20cy='-344.084'%20rx='5.016'%20ry='5.572'%20style='display:inline;fill:%23d67e94;fill-opacity:1;fill-rule:evenodd;stroke-width:.149008'%20transform='matrix(.73853%20.67422%20-.63988%20.76848%200%200)'/%3e%3cellipse%20cx='1161.324'%20cy='60.068'%20rx='5.016'%20ry='5.572'%20style='display:inline;fill:%23d67e94;fill-opacity:1;fill-rule:evenodd;stroke-width:.149008'%20transform='matrix(.92465%20.38081%20-.33829%20.94104%200%200)'/%3e%3cellipse%20cx='1141.388'%20cy='122.194'%20rx='5.016'%20ry='5.572'%20style='display:inline;fill:%23d67e94;fill-opacity:1;fill-rule:evenodd;stroke-width:.149008'%20transform='matrix(.94198%20.33566%20-.2924%20.9563%200%200)'/%3e%3cellipse%20cx='818.868'%20cy='559.334'%20rx='2.166'%20ry='.747'%20style='fill:%23ffdb4d;fill-opacity:.996078;fill-rule:evenodd'/%3e%3cellipse%20cx='885.732'%20cy='370.645'%20rx='5.565'%20ry='.59'%20style='fill:%23000;fill-opacity:.996078;fill-rule:evenodd'/%3e%3cpath%20d='M866.308%20513.459c.286-3.163.778-14.75%201.092-25.75.626-21.883%202.814-56.19%204.603-72.16l1.137-10.16%2011.123-2.06c27.089-5.018%2031.22-5.495%2048.123-5.558%2013.803-.05%2018.12.284%2022.958%201.776%2023.23%207.168%2033.385%2022.843%2032.318%2049.886-.402%2010.184-.634%2011.15-4.61%2019.173-10.298%2020.783-35.818%2036.819-69.186%2043.475-9.613%201.918-43.738%207.114-46.78%207.124-.975.003-1.17-1.427-.778-5.746'%20style='fill:none;fill-rule:evenodd'/%3e%3cpath%20d='M576.847%20433.52c-33.704-.235-99.078%206.542-160.356%2016.937-23.08%203.915-36.666%206.601-37.525%207.418-.468.445%205.022%2046.53%205.601%2047.023.188.16%2013.49-2.372%2029.563-5.629%2016.072-3.256%2029.426-5.727%2029.676-5.49.249.237-.672%2060.911-2.047%20134.832s-2.491%20139.574-2.479%20145.895l.022%2011.494%203.216-.588c1.77-.323%2013.897-1.702%2026.948-3.064l23.728-2.477-.642-4.533c-1.421-10.022-2.926-56.672-2.938-91.041l-.012-36.44%202.633-.01c4.417-.016%2063.011-8.66%2075.912-11.199%2064.141-12.62%2097.624-37.064%20108.858-79.469%202.325-8.775%202.656-12.833%202.67-32.822l.015-22.808-3.855-10.51c-5.024-13.697-10.579-22.316-20.113-31.213-16.02-14.948-36.468-22.874-66.475-25.768-3.418-.33-7.586-.505-12.4-.539zm636.505%2035.667c-.13-.098-6.819%201.26-14.861%203.016s-19.41%204.239-25.26%205.518l-10.635%202.326-.761%2026.328c-.419%2014.48-1.108%2033.963-1.536%2043.295l-.777%2016.967h-49.62l-5.85%2015.299-5.85%2015.298%2029.664.297%2029.666.297-.736%2043.65c-1.442%2085.626%204.027%20112.955%2027.015%20135.01%2014.122%2013.55%2029.08%2018.88%2050.358%2017.946%2012.985-.571%2021.458-2.922%2032.003-8.877%209.584-5.412%2022.007-17.961%2029.965-30.27%206.415-9.92%207.08-10.596%208.075-8.217.596%201.426%203.184%206.841%205.752%2012.033%207.966%2016.11%2021.37%2026.758%2038.529%2030.606%209.198%202.062%2014.567%202.065%2024.728.018%2016.42-3.309%2033.579-14.094%2041.916-26.346l3.858-5.666.375%2012.662c.729%2024.579-2.982%20103.33-7.438%20157.861-2.161%2026.448-7.37%2078.352-8.304%2082.762-.862%204.062-1.95%204.325%2028.79-6.904%2028.175-10.292%2024.694-5.323%2027.409-39.143%205.007-62.374%208.853-206.478%208.873-332.47l.01-61.547-9.065.742c-4.986.409-16.171%201.32-24.857%202.023l-15.793%201.281.281%207.788c.155%204.283%201.116%2021.807%202.135%2038.94%201.019%2017.135%201.681%2040.667%201.473%2052.294l-.38%2021.14-5.565%2011.016c-16.58%2032.813-36.9%2049.854-52.655%2044.156-10.576-3.824-18.196-20.11-22.168-47.382-3.093-21.241-1.586-75.265%203.211-115.092.917-7.614%201.471-14.03%201.23-14.26-.429-.408-46.636-3.466-47.13-3.12-.524.37-3.907%2020.662-5.76%2034.56-1.345%2010.085-2.021%2025.13-2.234%2049.7l-.307%2035.237-3.781%209.824c-8.142%2021.155-18.597%2038.09-29.633%2047.994-8.266%207.419-15.621%2010.672-24.127%2010.672-14.265%200-24.223-10.575-28.883-30.674-1.518-6.546-1.877-14.732-1.826-41.53.062-32.434%202.157-85.708%203.45-87.696.365-.563%2012.02-.64%2027.22-.18l26.582.807%204.275-16.244c2.352-8.934%204.276-16.576%204.276-16.983s-13.686-.49-30.414-.183l-30.414.556.01-4.57c.01-2.514%201.298-24.33%202.87-48.479%201.574-24.148%202.753-43.987%202.622-44.086zm-637.755%204.483c39.818%201.266%2060.273%2020.246%2060.214%2056.125-.027%2016.786-5.486%2028.664-19.287%2041.97-17.871%2017.231-43.408%2028.121-79.402%2033.86-20.329%203.241-46.332%206.386-46.443%205.617-.769-5.3%201.502-60.645%203.61-87.998%202.315-30.021%203.72-39.97%205.731-40.568%205.452-1.622%2044.467-7.38%2057.33-8.461q9.714-.817%2018.247-.545m318.484%2038.47c-.188.072-.463.204-.676.292q.164.016.328.008c.117-.102.23-.201.348-.3zm-27.774%201.319c-.131.247-.286.418-.414.676q.205-.212.41-.42c-.002-.086.006-.17.005-.256m23.239%209.69a3%203%200%200%200-.317.02c-.126.045-.249.096-.375.14-.223.122-.468.253-.767.4.56-.144%201.224-.341%201.469-.465zm-180.018%2032.554c-2.19.021-4.52.183-6.92.49l-7.709.987-.836%2011.908c-1.009%2014.379-5.542%2042.777-10.76%2067.404-2.11%209.966-3.499%2018.32-3.085%2018.563%201.597.938%2028.273%205.28%2028.882%204.7.355-.336%202.447-8.751%204.65-18.7s4.128-18.188%204.276-18.307c.436-.351%2026.876%203.871%2027.408%204.377.267.254-.31%205.649-1.28%2011.988-3.335%2021.764-5.685%2054.309-5.05%2069.94.697%2017.141%203.933%2029.745%2010.85%2042.265%2014.65%2026.518%2043.54%2040.485%2070.12%2033.9%2013.125-3.251%2021.385-8.058%2033.624-19.564%206.273-5.897%2011.406-10.155%2011.406-9.463.002%202.18%206.81%2015.054%2010.201%2019.293%208.524%2010.65%2026.003%2016.739%2044.739%2015.584%2016.987-1.046%2031.645-7.116%2044.797-18.549l6.162-5.357%204.662%203.856c13.114%2010.844%2025.058%2018.005%2035.076%2021.03%205.889%201.78%2020.804%201.949%2028.756.327%2029.118-5.94%2055.819-28.938%2063.691-54.86%203.34-10.995%202.007-28.213-3.351-43.288-8.163-22.968-25.68-51.247-47.051-75.961l-10.274-11.881%202.133-14.326c1.173-7.88%201.889-14.558%201.592-14.84-.932-.886-39.456-6.63-40.135-5.985-.355.338-1.18%204.824-1.836%209.97-3.829%2030.07-18.986%2082.596-32.582%20112.91l-3.441%207.67-1.479-3.085c-.812-1.696-2.04-2.888-2.73-2.648s-8.756%202.803-17.924%205.697-16.67%205.743-16.67%206.328c0%201.644%204.335%209.367%2011.983%2021.35%206.844%2010.724%206.93%2010.956%204.804%2013.191-6.608%206.95-21.1%209.277-28.119%204.516-6.551-4.445-9.646-12.426-11.142-28.735-1.349-14.695.07-78.462%202.644-118.875.622-9.756.731-18.074.244-18.484-.875-.736-47.058-3.69-47.703-3.05-.183.181-.698%2027.367-1.144%2060.411l-.813%2060.082-5.596%2011.272c-7.092%2014.287-13.317%2023.002-21.527%2030.139-15.88%2013.804-33.219%2011.545-42.373-5.52-5.534-10.315-6.8-18.378-6.773-43.123.025-23.417.583-29.762%205.828-66.248%203.394-23.612%203.085-27.439-2.74-34.024-4.28-4.837-12.886-9.876-16.868-9.876-1.79%200-8.478%202.001-14.861%204.449-23.741%209.104-32.05%204.593-29.992-16.287.702-7.124.529-8.265-1.557-10.248-2.305-2.193-7.635-3.377-14.207-3.313m318.228%2097.344c.857-.938%2010.588%2010.005%2017.153%2019.289%205.915%208.364%2011.881%2020.573%2014.513%2029.7%203.154%2010.93%202.626%2024.265-1.355%2034.241-3.645%209.135-12.527%2017.563-21.045%2019.97-9.291%202.623-14.947%202.243-22.908-1.54-6-2.851-21.506-15.764-21.506-17.908%200-.394%202.573-5.923%205.717-12.285%206.83-13.823%2016.684-37.493%2023.574-56.63%202.755-7.649%205.39-14.325%205.857-14.837'%20style='fill:%23000;stroke-width:1.14084'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",h9={name:"ErrorPage",data(){return{id:null}},mounted(){this.id=this.$route.params.id}},y9={"data-testid":"error-page",class:"surface-0 flex align-items-center justify-content-center min-h-screen min-w-screen overflow-hidden"},W9={class:"grid justify-content-center p-2 lg:p-0 error-page"},g9={class:"col-12 xl:col-6"},Y9={class:"flex justify-content-center h-full w-full m-0 py-7 px-4"},N9={class:"grid flex-column align-items-center"},X9={key:0,"data-testid":"error-page-title",class:"text-900 font-bold text-3xl lg:text-5xl mb-2"},z9={"data-testid":"error-page-message",class:"text-gray-600"};function A9(l,t,a,i,o,s){return e.openBlock(),e.createElementBlock("div",y9,[e.createElementVNode("div",W9,[t[0]||(t[0]=e.createElementVNode("div",{class:"col-12 mt-5 xl:mt-0 text-center"},[e.createElementVNode("img",{"data-testid":"error-page-logo",src:Z9,alt:"Pristy logo",class:"mb-5 pristy-logo"})],-1)),e.createElementVNode("div",g9,[e.createElementVNode("div",Y9,[e.createElementVNode("div",N9,[o.id?(e.openBlock(),e.createElementBlock("h1",X9,e.toDisplayString(l.$t("error",{error:o.id})),1)):e.createCommentVNode("",!0),e.createElementVNode("span",z9,e.toDisplayString(l.$t(`errors.${o.id}`)),1)])])])])])}const M9=H(h9,[["render",A9],["__scopeId","data-v-684dbd8b"]]),O9={install(l){l.component("PaginatorComponent",Ua),l.component("PDFComponent",Ha),l.component("PristyIcon",xl),l.component("TreeExplorer",qt),l.component("CopyOrMovePopup",Pa),l.component("EllipsisBreadcrumb",vn),l.component("BreadCrumbAlfresco",Ln),l.component("ContentTableView",qa),l.component("ContentListView",eo),l.component("ContentGridView",to),l.component("DynamicContentView",kn),l.component("ContentFiltersHeader",Cn),l.component("ImageViewer",ro),l.component("VideoPlayer",bo),l.component("PreviewPanel",Hn),l.component("CreateWorkflowPopup",ao),l.component("ImportNewVersionPopup",oo),l.component("ShareLinkPopup",co),l.component("MemberListPopup",io),l.component("SendMailPopup",no),l.component("LayoutSelector",Bn),l.component("HelpKeyMessage",En),l.component("SelectionStatus",Qn),l.component("MemberList",so),l.component("ActionMenu",Ul),l.component("CustomToastContent",Pn),l.component("UploadTargetInfo",Kn),l.component("FolderUpload",Yo),l.component("ImportPopupWithWorker",$n),l.component("UploadStatus",_n),l.component("AddPairInConfigDialog",qn),l.component("ConfigDatatable",ec),l.component("ConfigItemEditor",No),l.component("ConfigSplitView",tc),l.component("ConfigUpload",lc),l.component("ListVersionConfig",ac),l.component("AddCriterionPopup",ga),l.component("AdvancedSearchPanel",ic),l.component("AdvancedViewPanel",nc),l.component("ExactSearch",zo),l.component("FavoriteViewMenu",cc),l.component("UserViewsFavoritesPanel",Na),l.component("SaveViewPopup",Xa),l.component("PdfToolsComponent",rc),l.component("CodeMirrorEditor",Zc),l.component("DiffViewerDialog",Ao),l.component("ArrayEditor",Wa),l.component("ConfigHealthBanner",yc),l.component("ErrorComponent",jo),l.component("ChatPanel",Yc),l.component("ChatMessage",Go),l.component("ChatInput",To),l.component("ChatRoomList",wo)}};p.ActionMenu=Ul,p.AddCriterionPopup=ga,p.AddPairInConfigDialog=qn,p.AdvancedSearchPanel=ic,p.AdvancedViewPanel=nc,p.ArrayEditor=Wa,p.BreadCrumbAlfresco=Ln,p.ChatConnectionState=Ze,p.ChatInput=To,p.ChatMessage=Go,p.ChatPanel=Yc,p.ChatRoomList=wo,p.CodeMirrorEditor=Zc,p.ConfigDatatable=ec,p.ConfigHealthBanner=yc,p.ConfigItemEditor=No,p.ConfigSplitView=tc,p.ConfigUpload=lc,p.ConnectionState=_e,p.ContentFiltersHeader=Cn,p.ContentGridView=to,p.ContentListView=eo,p.ContentTableView=qa,p.CopyOrMovePopup=Pa,p.CreateWorkflowPopup=ao,p.CustomToastContent=Pn,p.DEFAULT_PREVIEW_STYLES=Zo,p.DiffViewerDialog=Ao,p.DynamicContentView=kn,p.EllipsisBreadcrumb=vn,p.ErrorComponent=jo,p.ErrorPage=M9,p.ExactSearch=zo,p.FavoriteViewMenu=cc,p.FolderUpload=Yo,p.HelpKeyMessage=En,p.ImageViewer=ro,p.ImportNewVersionPopup=oo,p.ImportPopupWithWorker=$n,p.LayoutSelector=Bn,p.ListVersionConfig=ac,p.LoginPage=b9,p.MemberList=so,p.MemberListPopup=io,p.NatureDocument=Xc,p.NotFoundPages=u9,p.PDFComponent=Ha,p.PaginatorComponent=Ua,p.PdfToolsComponent=rc,p.PreviewPanel=Hn,p.PristyIcon=xl,p.ROLE_EDITOR=Jt,p.ROLE_OBSERVER=al,p.SaveViewPopup=Xa,p.SelectionStatus=Qn,p.SendMailPopup=no,p.ShareLinkPopup=co,p.TreeExplorer=qt,p.TypeDossier=fo,p.UploadStatus=_n,p.UploadTargetInfo=Kn,p.UserViewsFavoritesPanel=Na,p.VideoPlayer=bo,p.actionsApi=Pc,p.activitiesApi=er,p.alfrescoApi=ae,p.alfrescoFileService=Xe,p.alfrescoModelService=QW,p.alfrescoNodeService=V,p.alfrescoPermissionService=VW,p.aspectsApi=xa,p.authenticationApi=l2,p.categoriesApi=_c,p.chatBackendService=Aa,p.checkNotNull=BW,p.checkString=Io,p.collabService=Tt,p.collaboraAccessService=SW,p.commentsApi=Kc,p.componentLibrary=O9,p.configHealthService=hc,p.configService=Vt,p.contentApi=jt,p.createEditorView=Sn,p.discoveryApi=tr,p.downloadsApi=$c,p.errorService=kt,p.favoriteService=ba,p.favoritesApi=Vl,p.filingPlanService=PW,p.formatService=ma,p.generatePreviewDocument=Wo,p.getBaseExtensions=Nl,p.getLanguageExtension=Yl,p.groupsApi=hl,p.i18n=$t,p.iconeService=tl,p.keyboardShortcutsService=UW,p.menuService=$a,p.messages=zn,p.nodesApi=ge,p.peopleApi=Dt,p.peopleService=lo,p.renderMarkdown=ho,p.renditionsApi=ia,p.rocketChatAuthService=it,p.rocketChatService=Al,p.sanitizeHtml=yo,p.searchApi=mt,p.sharedLinksApi=yl,p.sitesApi=Ce,p.tagsApi=qc,p.translationService=Dn,p.trashcanApi=Ec,p.typesApi=Sa,p.uploadApi=Va,p.useChatStore=gc,p.useChatWebSocket=Wc,p.useCodeMirror=Mp,p.useCollabEditor=mc,p.useCollabStore=pc,p.useCollabWebSocket=dc,p.useCollaboraStore=jn,p.useConfigStore=de,p.useFavoritesStore=Jl,p.useMarkdownPreview=go,p.useMenuStore=da,p.useNavigationStore=xe,p.usePaginatorStore=Ja,p.useScreenStore=uc,p.useSearchStore=Ya,p.useSelectionStore=Oe,p.useTaskNotificationStore=In,p.useThemeStore=ya,p.useUploadStore=el,p.useUserPreferencesStore=KW,p.useUserStore=Ge,p.useUserViewStore=Gt,p.userViewService=zt,p.versionsApi=Rt,p.vueKeyCloak=_W,p.webscriptApi=Wl,p.workflowService=ra,p.workspaceService=je,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})}));
155
155
  //# sourceMappingURL=pristy-libvue.umd.js.map