@pristy/pristy-libvue 1.21.3 → 1.21.4
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.
- package/dist/pristy-libvue.css +1 -1
- package/dist/pristy-libvue.es.js +19 -15
- package/dist/pristy-libvue.es.js.map +1 -1
- package/dist/pristy-libvue.umd.js +3 -3
- package/dist/pristy-libvue.umd.js.map +1 -1
- package/dist/src/components/navigation/ContentGridView.vue.d.ts +2 -2
- package/dist/src/components/navigation/ContentListView.vue.d.ts +1 -1
- package/dist/src/components/navigation/ContentTableView.vue.d.ts +2 -2
- package/dist/src/components/navigation/DynamicContentView.vue.d.ts +5 -5
- package/dist/src/services/AlfrescoFileService.d.ts +1 -1
- package/dist/src/services/AlfrescoFileService.d.ts.map +1 -1
- package/dist/src/services/IconeService.d.ts.map +1 -1
- package/package.json +7 -1
|
@@ -6,8 +6,8 @@
|
|
|
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"}},Wn={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)"},gn="Close",Yn="Edit",Nn="Open",An="Download",Xn="Restore",zn="Publish",Mn="Back",On="Minimize",jn="Reload",Gn="Duplicate",Tn="Move up",wn="Move down",fn="Sort ascending",In="Sort descending",vn="Search",Ln="More actions",Dn="Edit",Rn="Home",kn="File list",Cn="Preview",Fn="Select all",Vn="View mode",xn="List",Sn="Grid",Jn="Table",Un={selectedDocuments:"Selected documents"},Hn={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."}},Qn={en:Object.freeze(Object.defineProperty({__proto__:null,alfrescoError:yi,auth:ci,back:Mn,cancel:ui,canceledImport:cn,cannotCopyHere:Ei,cannotMoveHere:Pi,chat:Wn,close:gn,collab:Zn,config:mn,configHealth:Hn,currentFolder:nn,default:{emptyPasswordOrUser:ii,unexpectedLoginError:ni,auth:ci,taskNotification:ri,fichier:di,dossier:mi,restrictedPermissions:bi,save:pi,cancel:ui,error:Zi,uploadUnknownError:hi,alfrescoError:yi,fichier_image:Wi,fichier_video:gi,fichier_pdf:Yi,fichier_eml:Ni,fichier_texte:Ai,fichier_tableur:Xi,fichier_dessin:zi,fichier_presentation:Mi,fichier_markdown:Oi,fichier_json:ji,fichier_xml:Gi,fichier_html:Ti,fichier_css:wi,fichier_csv:fi,fichier_javascript:Ii,fichier_sql:vi,fichier_shell:Li,fichier_yaml:Di,fichier_python:Ri,fichier_typescript:ki,fichier_php:Ci,fichier_java:Fi,fichier_code:Vi,fichier_config:xi,fichier_log:Si,espace:Ji,menu:Ui,tasks:Hi,pdf:Qi,sharelink:Bi,cannotCopyHere:Ei,cannotMoveHere:Pi,spaces:_i,userHomes:Ki,yes:$i,no:qi,howMuchResult:en,howMuchSelected:tn,selectAllElement:ln,selectAllElementMoreThan:an,deleteSelection:on,dropFileFolders:sn,currentFolder:nn,canceledImport:cn,lock:rn,membersPopup:dn,config:mn,rechercheAvancee:bn,pdfTools:pn,editor:un,collab:Zn,diffViewer:hn,sendingMail:yn,chat:Wn,close:gn,delete:"Delete",edit:Yn,open:Nn,download:An,restore:Xn,publish:zn,back:Mn,minimize:On,reload:jn,duplicate:Gn,moveUp:Tn,moveDown:wn,sortAscending:fn,sortDescending:In,search:vn,moreActions:Ln,"add/removeFavorite":"Add/remove favorite",modify:Dn,home:Rn,fileList:kn,previewPanel:Cn,selectAll:Fn,layoutSelector:Vn,layoutList:xn,layoutGrid:Sn,layoutTable:Jn,workflow:Un,configHealth:Hn},deleteSelection:on,diffViewer:hn,dossier:mi,download:An,dropFileFolders:sn,duplicate:Gn,edit:Yn,editor:un,emptyPasswordOrUser:ii,error:Zi,espace:Ji,fichier:di,fichier_code:Vi,fichier_config:xi,fichier_css:wi,fichier_csv:fi,fichier_dessin:zi,fichier_eml:Ni,fichier_html:Ti,fichier_image:Wi,fichier_java:Fi,fichier_javascript:Ii,fichier_json:ji,fichier_log:Si,fichier_markdown:Oi,fichier_pdf:Yi,fichier_php:Ci,fichier_presentation:Mi,fichier_python:Ri,fichier_shell:Li,fichier_sql:vi,fichier_tableur:Xi,fichier_texte:Ai,fichier_typescript:ki,fichier_video:gi,fichier_xml:Gi,fichier_yaml:Di,fileList:kn,home:Rn,howMuchResult:en,howMuchSelected:tn,layoutGrid:Sn,layoutList:xn,layoutSelector:Vn,layoutTable:Jn,lock:rn,membersPopup:dn,menu:Ui,minimize:On,modify:Dn,moreActions:Ln,moveDown:wn,moveUp:Tn,no:qi,open:Nn,pdf:Qi,pdfTools:pn,previewPanel:Cn,publish:zn,rechercheAvancee:bn,reload:jn,restore:Xn,restrictedPermissions:bi,save:pi,search:vn,selectAll:Fn,selectAllElement:ln,selectAllElementMoreThan:an,sendingMail:yn,sharelink:Bi,sortAscending:fn,sortDescending:In,spaces:_i,taskNotification:ri,tasks:Hi,unexpectedLoginError:ni,uploadUnknownError:hi,userHomes:Ki,workflow:Un,yes:$i},Symbol.toStringTag,{value:"Module"})),fr:O0};let j0=localStorage?.getItem("user.language")||window?.navigator?.language||"fr";const sl=ll.createI18n({locale:j0,messages:Qn,fallbackLocale:"fr",silentTranslationWarn:!0,silentFallbackWarn:!0}),yt=sl.global.t;class na extends Error{constructor(t,a,s){super(t),this.code=a,this.cause=s}}function Bn(l,t){let a=yt("error."+l+"."+t.status);return a||(a=yt("error."+t.status)),a||(a=t.message),a}function B(l,t){let a;if(t.status===400){let s;if(t.response?.error?.message)throw new na(t.response?.error?.message,t.status,t);try{s=typeof t.message=="string"?JSON.parse(t.message):t.message}catch(o){console.error("Erreur de parsing JSON :",o),s={}}a=s?.error?.briefSummary||Bn(l,t)}else a=Bn(l,t);return new na(a,t.status,t)}class G0{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 s=a?.error?.briefSummary||"";if(s.includes("verrouillé")||s.includes("locked"))throw B(yt("updateNodeLocked"),t)}throw B("updateNode",t)}uploadFileError(t,a){throw t.status===409?new na(yt("error.uploadFile.409",{filename:a}),t.status,t):B("uploadFile",t)}deleteNodeError(t,a){switch(t.status){case 403:case 404:case 409:throw new na(yt(`error.deleteNode.${t.status}`,{type:yt(a)}),t.status,t);default:throw B("deleteNode",t)}}getUploadErrors(t){let a=[];return t.forEach(s=>{a.push({severity:"error",content:yt("uploadUnknownError",{error:s.message})})}),a.filter((s,o)=>o===a.findIndex(i=>s.content===i.content))}}function T0(l){if(typeof l!="string")return null;try{const t=JSON.parse(l);return t?.error!==null&&typeof t?.error=="object"?t.error:null}catch{return null}}function Ka(l){const t=l.error?.message??l.message,a=T0(t),s=l.error?.response??l.response,o=a?.statusCode??s?.status??l.error?.status??l.status;let i=a??s;if(i||(i=typeof t=="string"?{message:t}:l),o)switch(o){case 400:i.message=yt("error.login.400");break;case 401:i.message=yt("error.login.401");break;case 403:i.message=yt("error.login.403");break;case 502:i.message=yt("alfrescoError");break;default:i.message=i.statusText?i.statusText:i.message}return i}const Ut=new G0;class w0{constructor(){this.lruNode=new at({maxSize:50,maxAge:3e4}),this.lruChildren=new at({maxSize:50,maxAge:5e4}),this.lruParents=new at({maxSize:20,maxAge:3e4}),this.lruDocumentLibrary=new at({maxSize:20,maxAge:2e3}),this.lruVersionHistory=new at({maxSize:5,maxAge:1e4}),this.lruHomeFolder=new at({maxSize:50,maxAge:300*1e3}),this.lruIsFolderInUserHome=new at({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 Ye.getNode(t,a).then(s=>(this.lruNode.set(t,s.entry),s.entry))}getNodeContent(t,a){const s={attachment:a};return Ye.getNodeContent(t,s).catch(o=>{throw B("getVersionContent",o)})}createNode(t,a){return Ye.createNode(t,a).catch(s=>{throw B("createNodeError",s)})}getChildren(t,a=10,s=0,o=!1){const i={include:["isFavorite","properties","allowableOperations","permissions","path","isLocked"],maxItems:a,skipCount:s};return this.getChildrenWithOpts(t,i,o)}getChildrenWithOpts(t,a,s=!1){const o=JSON.stringify({id:t,opts:a});return!s&&this.lruChildren.has(o)?Promise.resolve(this.lruChildren.get(o)):(a={...{include:["isFavorite","properties","allowableOperations","permissions","path","isLocked"]},...a},Ye.listNodeChildren(t,a).then(n=>{let r=n.list.entries.map(m=>m.entry).filter(m=>m.name==="documentLibrary")[0];return r?Ye.listNodeChildren(r.id,a).then(m=>{const h={documentLibrary:r,children:m.list.entries.map(Z=>Z.entry),pagination:m.list.pagination};return this.lruChildren.set(o,h),h}):Ye.listNodeChildren(t,a).then(m=>{const h={children:m.list.entries.map(Z=>Z.entry),pagination:m.list.pagination};return this.lruChildren.set(o,h),h})}))}getDirectChildren(t,a){const s=JSON.stringify({id:t,opts:a,direct:!0});return this.lruChildren.has(s)?Promise.resolve(this.lruChildren.get(s)):(a={...{include:["isFavorite","properties","allowableOperations","permissions","path","isLocked"]},...a},Ye.listNodeChildren(t,a).then(i=>{const c={children:i.list.entries.map(r=>r.entry),pagination:i.list.pagination};return this.lruChildren.set(s,c),c}))}updateNode(t,a){return Ye.updateNode(t,a).then(s=>(this.lruNode.delete(t),s)).catch(s=>{throw Ut.updateNodeError(s)})}updateMimeType(t,a){return Ye.getNodeContent(t).then(s=>Ye.put({path:"/nodes/{nodeId}/content",pathParams:{nodeId:t},queryParams:{majorVersion:!1},contentTypes:[a],bodyParam:s})).catch(s=>{throw Ut.updateNodeError(s)})}checkVersion(t){return Ye.getNode(t).then(a=>a.entry).then(a=>{if(!a.aspectNames.find(s=>s==="cm:versionable")){const s={aspectNames:[...a.aspectNames,"cm:versionable"]};return Ye.updateNode(t,s).then(()=>"1.0").catch(o=>{if(o.status===403)console.warn("Can’t add version - Forbidden");else throw B("updateNode",o)})}})}deleteNode(t,a){const s={};return Ye.deleteNode(t,s).catch(o=>{Ut.deleteNodeError(o,a)})}getParents(t){if(this.lruParents.has(t))return Promise.resolve(this.lruParents.get(t));const a={include:["isFavorite","properties","path"]};return Ye.listParents(t,a).then(s=>{let o=s.list.entries.map(n=>n.entry),i=o[0];return i&&i.name==="documentLibrary"?this.getParents(i.id).then(n=>{const c={documentLibrary:i,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 Ye.listNodeChildren(t,a).then(s=>{const i=s.list.entries.map(n=>n.entry).find(n=>n.name==="documentLibrary");return this.lruDocumentLibrary.set(t,i),i})}updateContentNode(t,a,s,o){let i={majorVersion:s,comment:o};return Ye.updateNodeContent(t,a,i).catch(n=>{throw B("updateContentNode",n)})}copyNode(t,a,s){const o=s!==null?{targetParentId:a,name:s}:{targetParentId:a},i={include:["path"]};return Ye.copyNode(t,o,i).catch(n=>{throw B("copyNode",n)})}moveNode(t,a,s,o){if(!t)throw new Error("moveNode: mandatory id");if(!a)throw new Error("moveNode: mandatory targetParentId");let i={targetParentId:a};return s&&(i={...i,name:s}),o||(o={include:["path"]}),Ye.moveNode(t,i,o).catch(n=>{throw B("moveNode",n)})}createSharedLink(t){const a={nodeId:t.id,expiresAt:null};return Nl.createSharedLink(a).catch(s=>{throw B("createSharedLink",s)})}deleteSharedLink(t){return Nl.deleteSharedLink(t).catch(a=>{throw B("deleteSharedLink",a)})}revertVersion(t,a,s){const o={majorVersion:!1,comment:s},i={include:["properties"]};return Jt.revertVersion(t,a,o,i).catch(n=>{throw B("revertVersion",n)})}listNodeVersionHistory(t){if(this.lruVersionHistory.has(t))return Promise.resolve(this.lruVersionHistory.get(t));const a={include:["properties"]};return Jt.listVersionHistory(t,a).then(s=>(this.lruVersionHistory.set(t,s),s)).catch(s=>{throw B("listNodeVersionHitory",s)})}getVersionContent(t,a,s){const o={attachment:s};return Jt.getVersionContent(t,a,o).catch(i=>{throw B("getVersionContent",i)})}getSharedLink(t){return Nl.getSharedLink(t).catch(a=>{throw B("sharedLink",a)})}getSharedLinkContent(t){const a={attachment:!0};return Nl.getSharedLinkContent(t,a).catch(s=>{throw B("sharedLinkContent",s.error)})}getSharedLinkRenditionContent(t){return Nl.getSharedLinkRenditionContent(t,"pdf").catch(a=>{throw B("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 ht.search(a).then(s=>(this.lruHomeFolder.set(t,s),s))}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 ht.search(a).then(s=>(this.lruHomeFolder.set(t,s),s))}isFolderInUserHome(t,a){const s=JSON.stringify({nodeId:t,homeFolderId:a});return this.lruIsFolderInUserHome.has(s)?Promise.resolve(this.lruIsFolderInUserHome.get(s)):this.getNode(t).then(o=>{const i=o.path.elements.some(n=>n.id===a);return this.lruIsFolderInUserHome.set(s,i),i}).catch(o=>(console.error("Error fetching node:",o),!1))}}const S=new w0;class f0{constructor(){this.lruWorkspaces=new at({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 Ue.listSites(a).then(s=>{const o=s.list.entries.map(i=>i.entry);return this.lruWorkspaces.set(t,o),o}).catch(s=>{throw B("getWorkspaces",s)})}searchAllWorkspaces(t=""){const a=`searchAllWorkspaces_${t}`;if(this.lruWorkspaces.has(a))return Promise.resolve(this.lruWorkspaces.get(a));const s={query:{query:"TYPE: 'st:site' "+t},include:["allowableOperations","properties","aspectNames"],paging:{maxItems:1e3,skipCount:0},localization:{locales:["fr_FR"]}};return ht.search(s).then(o=>{const i=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,i),i}).catch(o=>{throw B("searchAllWorkspaces",o)})}getWorkspace(t){const a=`workspace_${t}`;if(this.lruWorkspaces.has(a))return Promise.resolve(this.lruWorkspaces.get(a));const s={};return Ue.getSite(t,s).then(o=>(this.lruWorkspaces.set(a,o.entry),o.entry)).catch(o=>{throw B("getWorkspace",o)})}getWorkspaceMemberships(t){const a=`workspaceMemberships_${t}`;if(this.lruWorkspaces.has(a))return Promise.resolve(this.lruWorkspaces.get(a));const s={};return Ue.listSiteMemberships(t,s).then(o=>{const i=o.list.entries.map(n=>n.entry);return this.lruWorkspaces.set(a,i),i}).catch(o=>{throw B("getWorkspaceMemberships",o)})}getWorkspaceMembershipsWithOpts(t,a){const s=`workspaceMembershipsWithOpts_${t}_${JSON.stringify(a)}`;return this.lruWorkspaces.has(s)?Promise.resolve(this.lruWorkspaces.get(s)):Ue.listSiteMemberships(t,a).then(o=>(this.lruWorkspaces.set(s,o),o)).catch(o=>{throw B("getWorkspaceMemberships",o)})}getWorkspaceGroupsWithOpts(t,a){const s=`workspaceGroupsWithOpts_${t}_${JSON.stringify(a)}`;return this.lruWorkspaces.has(s)?Promise.resolve(this.lruWorkspaces.get(s)):Ue.listSiteGroups(t,a).then(o=>{const i=o.list.entries.map(n=>n.entry);return this.lruWorkspaces.set(s,i),i}).catch(o=>{throw B("getWorkspaceGroups",o)})}getWorkspaceGroups(t){const a=`workspaceGroups_${t}`;if(this.lruWorkspaces.has(a))return Promise.resolve(this.lruWorkspaces.get(a));const s={};return Ue.listSiteGroups(t,s).then(o=>{const i=o.list.entries.map(n=>n.entry);return this.lruWorkspaces.set(a,i),i}).catch(o=>{throw B("getWorkspaceGroups",o)})}createWorkspace(t,a,s,o){const i={id:t,title:a,description:s,visibility:o};return Ue.createSite(i).catch(n=>{throw B("createWorkspace",n)})}requestJoinWorkspace(t,a){const s={id:a},o={};return Ue.createSiteMembershipRequestForPerson(t,s,o).catch(i=>{throw B("requestJoinWorkspace",i)})}_invalidateMembersCache(t){const a=[];for(const s of this.lruWorkspaces.keys())(s.startsWith(`workspaceMemberships_${t}`)||s.startsWith(`workspaceMembershipsWithOpts_${t}`)||s.startsWith(`workspaceGroups_${t}`)||s.startsWith(`workspaceGroupsWithOpts_${t}`))&&a.push(s);a.forEach(s=>this.lruWorkspaces.delete(s))}addWorkspaceUser(t,a,s){const o={role:s,id:a},i={};return Ue.createSiteMembership(t,o,i).then(n=>(this._invalidateMembersCache(t),n)).catch(n=>{throw B("addWorkspaceUser",n)})}addWorkspaceGroup(t,a,s){const o={role:s,id:a},i={};return Ue.createSiteGroupMembership(t,o,i).then(n=>(this._invalidateMembersCache(t),n)).catch(n=>{throw B("addWorkspaceGroup",n)})}updateWorkspaceUserRole(t,a,s){const o={role:s},i={};return Ue.updateSiteMembership(t,a,o,i).then(n=>(this._invalidateMembersCache(t),n)).catch(n=>{throw B("updateWorkspaceUserRole",n)})}updateWorkspaceGroupRole(t,a,s){const o={role:s},i={};return Ue.updateSiteGroupMembership(t,a,o,i).then(n=>(this._invalidateMembersCache(t),n)).catch(n=>{throw B("updateWorkspaceGroupRole",n)})}deleteWorkspaceUser(t,a){return Ue.deleteSiteMembership(t,a).then(s=>(this._invalidateMembersCache(t),s)).catch(s=>{throw B("deleteWorkspaceUser",s)})}deleteWorkspaceGroup(t,a){return Ue.deleteSiteGroupMembership(t,a).then(s=>(this._invalidateMembersCache(t),s)).catch(s=>{throw B("deleteWorkspaceGroup",s)})}updateActeWorkspaceType(t,a){const s={properties:{"pm:typeEspace":a},aspectNames:["cm:tagscope","pm:specializeEspace","cm:titled","cm:auditable","am:isPublic"]};return Ye.updateNode(t,s).catch(o=>{throw B("updateWorkspaceType",o)})}updateWorkspaceType(t,a){const s={properties:{"pm:typeEspace":a}};return Ye.updateNode(t,s).catch(o=>{throw B("updateWorkspaceType",o)})}async searchUsers(t,a=25){const s=t.trim(),o={query:{language:"afts",query:`TYPE:"cm:person" AND (cm:userName:"*${s}*" OR cm:firstName:"*${s}*" OR cm:lastName:"*${s}*" OR cm:email:"*${s}*")`},localization:{locales:["en_US"]},include:["aspectNames","properties"],paging:{maxItems:a,skipCount:0}};return ht.search(o).then(i=>i.list.entries.map(n=>{const c=n.entry.properties,r=c["cm:firstName"]||"",m=c["cm:lastName"]||"",h=c["cm:email"]||"",Z=c["cm:userName"]||n.entry.name;return{id:Z,firstname:r,lastname:m,email:h,label:`${r} ${m} (${Z} - ${h})`.trim(),group:!1}})).catch(i=>{throw B("searchUsers",i)})}async searchGroups(t,a=25){const s=t.trim(),n={query:{language:"afts",query:`TYPE:"cm:authorityContainer" AND ${s.startsWith("GROUP_")?`@cm\\:authorityName:"${s}*"`:`(@cm\\:authorityName:"*${s}*" OR @cm\\:authorityDisplayName:"*${s}*" OR @cm\\:description:"*${s}*")`}`},localization:{locales:["en_US"]},include:["properties"],paging:{maxItems:a,skipCount:0}};return ht.search(n).then(c=>{const r=["site_","SITE_","ALFRESCO_","EMAIL_"];return c.list.entries.map(m=>{const h=m.entry.properties,Z=h["cm:authorityName"];return{id:Z,label:h["cm:authorityDisplayName"]||Z,group:!0}}).filter(m=>!r.some(h=>m.label.startsWith(h)))}).catch(c=>{throw B("searchGroups",c)})}deleteWorkspace(t,a=!1){const s={permanent:a};return Ue.deleteSite(t,s).catch(o=>{throw B("deleteWorkspace",o)})}updateWorkspace(t,a){return Ue.updateSite(t,a).catch(s=>{throw B("updateWorkspace",s)})}}const Oe=new f0,Be=_.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,Oe.getWorkspace(l).then(s=>(this.workspace=s,this.role=s.role,this.visibility=s.visibility,t?S.getNode(t).then(o=>o):S.getNode(s.guid).then(o=>(this.workspaceInfo=o,o)))).then(s=>(this.canUpload=s.allowableOperations?.includes("create")||!1,S.getChildren(s.guid||s.id,500,0,a).then(o=>(o.documentLibrary?this.currentNode=o.documentLibrary:this.currentNode=s,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(i=>i.isFolder),this.files=this.children.filter(i=>i.isFile)):(this.folders=[],this.files=[],this.emptyFolder=!0),this.loading=!1,s)))))},loadWithOpts(l,t,a,s){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=Oe.getWorkspace(l)):o=S.getUserHomeNode().then(i=>(this.isInUserHome=!0,i)),o.then(i=>(this.workspace=i,this.role=i.role,this.visibility=i.visibility,t?S.getNode(t).then(n=>n):S.getNode(i.guid).then(n=>(this.workspaceInfo=n,n)))).then(i=>(this.canUpload=i.allowableOperations?.includes("create")||!1,S.getChildrenWithOpts(i.guid||i.id,s,a).then(n=>(this.totalRecordNodes=n.pagination.totalItems,n.documentLibrary?this.currentNode=n.documentLibrary:this.currentNode=i,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,i))))},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,Oe.getWorkspace(l).then(s=>(this.workspace=s,this.role=s.role,this.visibility=s.visibility,t?S.getNode(t).then(o=>o):S.getNode(s.guid).then(o=>(this.workspaceInfo=o,o)))).then(s=>(this.canUpload=s.allowableOperations?.includes("create")||!1,S.getChildren(s.guid||s.id,500,0,a).then(o=>(o.documentLibrary&&S.getChildren(o.documentLibrary.id,500,0,a).then(async i=>{const n=[];for(const m of i.children){const Z=(await S.getChildren(m.id,500,0,a)).children.filter(Y=>Y.nodeType==="cm:folder").map(Y=>S.getChildren(Y.id,500,0,a)),p=await Promise.all(Z);n.push(p)}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=s,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(i=>i.isFolder),this.files=this.children.filter(i=>i.isFile)):(this.folders=[],this.files=[],this.emptyFolder=!0),this.loading=!1),s)))))}}}),$a="|";class I0{async getInitialTree(){try{const a=(await Oe.searchAllWorkspaces("AND NOT pm:typeEspace:'actes'")).map(async o=>{const i=await S.getDocumentLibrary(o.id);return{key:o.id,label:o.title,icon:"pi pi-fw pi-inbox",data:i,children:[],leaf:!1}});return(await Promise.all(a)).filter(o=>o.data!==void 0).sort((o,i)=>o.label.localeCompare(i.label))}catch(t){return console.error("Error initializing tree:",t),[]}}buildPathKeys(t){if(Be().isInUserHome)return this.buildPathKeysInUserHome(t);{const a=t.path.elements;let s="";const o=[];for(const i of a){let n=null;i?.nodeType==="st:site"?n=i.id:i?.isFolder&&i.name!=="documentLibrary"&&(n=s?s+$a+i.id:i.id),n&&n.charAt(0)==="|"&&(n=n.slice(1)),n&&(o.push({key:n,node:i}),s=n)}return o}}buildPathKeysInUserHome(t){const a=t.path.elements.slice(2);let s="",o=[];for(const i of a){let n=i.id;i?.isFolder&&i.name!=="documentLibrary"&&(n=s?s+$a+i.id:i.id),n&&n.charAt(0)==="|"&&(n=n.slice(1)),n&&(o.push({key:n,node:i}),s=n)}return o}async expandPathKeys({keys:t,nodes:a,expandedKeys:s,onNodeExpand:o,currentNode:i}){let n="";for(const{key:r,node:m}of t)await o({key:r,data:m},a),s[r]=!0,n=r;const c=n+$a+i.id;await o({key:c,data:i},a),s[c]=!0}}const qa=new I0,ca="|",v0={name:"TreeExplorer",components:{PrimeTabView:l2,PrimeTabPanel:kl,PrimeTree:hr},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 qa.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 S.getUserHomeNode();return(await S.getChildrenWithOpts(t.list.entries[0].entry.id,l,!1)).children.filter(s=>!s.aspectNames||!s.aspectNames.includes("pm:hidden")).map(s=>({key:s.id,label:s.name,icon:"pi pi-fw pi-inbox",data:s,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 i=(await S.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(i,l,t)}catch(s){console.error("getNodeChildren Error",s)}},addChildren(l,t,a){return this.splitedKey=t.key.split(ca),this.splitedKey.length===1?a.filter(s=>s.key===t.key).map(s=>s.children=l):this.addElementChildren(a,t.key,l,0)},addElementChildren(l,t,a,s){let o=l.find(i=>this.containsKey(i.key,t,s));if(o){if(o.key===t)return o.children=a,null;if(o.children)return this.addElementChildren(o.children,t,a,s+1),null}},containsKey(l,t,a){let s=t.split(ca),o=l.split(ca);for(let i=0;i<=a;i++)if(s[i]!==o[i])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=Be().isInUserHome?1:0;let l=Be().isInUserHome?this.userHomesNodes:this.nodes,t=null;this.actionsService?.buildPathKeys?t=this.actionsService.buildPathKeys(this.currentNode):t=qa.buildPathKeys(this.currentNode),await qa.expandPathKeys({keys:t,nodes:l,expandedKeys:this.expandedKeys,onNodeExpand:this.onNodeExpand,currentNode:this.currentNode})}catch(l){console.error("Error opening path:",l)}}}};function L0(l,t,a,s,o,i){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:i.onNodeSelect,onNodeExpand:t[2]||(t[2]=m=>i.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:i.onNodeSelect,onNodeExpand:t[5]||(t[5]=m=>i.onNodeExpand(m,o.userHomesNodes))},null,8,["selection-keys","expanded-keys","value","onNodeSelect"])]),_:1},8,["header"])):e.createCommentVNode("",!0)]),_:1},8,["active-index"])}const il=J(v0,[["render",L0]]),D0="st:site",R0={name:"CopyOrMovePopup",components:{TreeExplorer:il,PrimeButton:L,PrimeDataView:a2,PrimeMessage:it,PrimeDialog:Je},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=Me()},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===D0?this.documentLibrary.id:this.destination.id;const t=this.nodes.map(a=>this.getItemName(l,a).then(s=>this.actionType==="copy"?S.copyNode(a.id,l,s):S.moveNode(a.id,l,s)));Promise.allSettled(t).then(a=>{let s=a.filter(i=>i.status==="fulfilled").map(i=>i.value.entry?.name),o=a.filter(i=>i.status!=="fulfilled").map(i=>i.reason);s.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:s.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 S.getChildren(l,200,0,!0).then(a=>{let s=t.name,o=a.children,i=t.isFile?this.removeExtension(s):s,n=o.filter(c=>c.name.startsWith(i)).length;return n>0&&(s=t.isFile?`${i}-${n}.${this.getExtension(s)}`:`${i}-${n}`),s})},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")}}},k0={class:"field grid card"},C0={class:"col-3"},F0={class:"mb-3 text-900"},V0={class:"w-full"},x0={class:"flex align-items-center gap-2 text-700"},S0={key:0,class:"ri-folder-2-line"},J0={key:1,class:"ri-file-line"},U0={class:"font-semibold"},H0={class:"col-9"},Q0={class:"w-full mb-2 text-900"},B0={key:0,class:"col-12 mb-2"},E0={key:1,class:"col-12 mb-2"};function P0(l,t,a,s,o,i){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(Z=>i.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]=Z=>i.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:i.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:i.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",k0,[e.createElementVNode("div",C0,[e.createElementVNode("div",F0,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(Z=>[e.createElementVNode("div",V0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Z.items,p=>(e.openBlock(),e.createElementBlock("div",{key:p.name,class:"mb-2"},[e.createElementVNode("span",x0,[p.isFolder?(e.openBlock(),e.createElementBlock("i",S0)):(e.openBlock(),e.createElementBlock("i",J0)),e.createElementVNode("span",U0,e.toDisplayString(p.name),1)])]))),128))])]),_:1},8,["value"])]),e.createElementVNode("div",H0,[e.createElementVNode("label",Q0,[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:i.selectNode},null,8,["current-node","show-user-home","onSelectNode"])]),o.destination?(e.openBlock(),e.createElementBlock("label",B0,e.toDisplayString(l.$t("destination",{dest:o.destinationName})),1)):(e.openBlock(),e.createElementBlock("label",E0,e.toDisplayString(l.$t("noDestination")),1))])]),_:1},8,["header"])}const eo=J(R0,[["render",P0]]),En='(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',Pn=typeof self<"u"&&self.Blob&&new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);",En],{type:"text/javascript;charset=utf-8"});function _0(l){let t;try{if(t=Pn&&(self.URL||self.webkitURL).createObjectURL(Pn),!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(En),{name:l?.name})}}const to=l=>{l.preventDefault(),l.returnValue="Des téléchargements sont en cours et seront annulés si vous quittez la page."},nl=_.defineStore("upload",{state:()=>({isUploading:!1,files:[],progress:{completed:0,total:0},worker:null,activeRequests:{},classificationPlanFiles:[],uploadMetadata:null}),getters:{overallMessage(l){const t=l.progress.total;if(t===0)return"";const a=l.files.filter(o=>o.status==="rejected").length,s=l.files.filter(o=>o.status==="error").length;return a===l.files.length?"Import annulé":l.isUploading?`Importation... (${l.progress.completed} / ${t})`:s>0?`Terminé avec ${s} erreur(s)`:"Import terminé"}},actions:{startUpload(l,t,a=null){console.log(`Attempting to start upload for node ${t}.`),console.log(`Current isUploading status: ${this.isUploading}`),!this.isUploading&&(this.uploadMetadata=a,this.initializeWorker(),this.isUploading=!0,this.progress={completed:0,total:l.length},this.files=l.map(s=>({name:s.file.name,status:"pending",message:"",percent:0})),window.addEventListener("beforeunload",to),this.worker.postMessage({type:"start",payload:{files:l,nodeId:t}}))},initializeWorker(){this.worker||(this.worker=new _0,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",to),console.debug("Lot terminé. Résultats:",a),this.classificationPlanFiles=[],this.uploadMetadata=null;break}})},async handleUploadRequest(l,t){const a=l.file,s=this.files.find(c=>c.name===a.name);s&&(s.status="uploading");const i=(l.relativePath||a.webkitRelativePath||"").split("/").slice(0,-1).join("/");let n;i?n={name:a.name,nodeType:"cm:content",renditions:"doclib",relativePath:i}:n={name:a.name,nodeType:"cm:content",renditions:"doclib"};try{const c=ze.uploadFileWithProgress(t,n,a);this.activeRequests[a.name]=c;let r=await c;delete this.activeRequests[a.name];const m=this.uploadMetadata;m&&(m.aspectNames||m.properties)&&(r=await S.updateNode(r.entry.id,{aspectNames:[...new Set([...r.entry.aspectNames||[],...m.aspectNames||[]])],properties:m.properties||{}})),s&&(s.status="success",s.percent=100,s.id=r.entry.id,s.content=r.entry.content,s.isFile=r.entry.isFile,s.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=Ut.uploadFileError(c,a.name)}catch(m){r=m}s&&(s.status="error",s.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(s=>s.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,s,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",to),this.classificationPlanFiles=a.map((n,c)=>({file:n,workspaceSiteId:l,pathFull:t,metadata:s,fileRenames:o,index:c}));const i=a.map((n,c)=>({fileName:n.name,fileSize:n.size,fileType:n.type,index:c}));this.worker.postMessage({type:"startClassificationPlan",payload:{files:i}})},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,s=a.name,o=this.files.find(i=>i.name===s);o&&(o.status="uploading");try{const i=t.fileRenames?.find(h=>h.original===s),c={name:i?i.new:s,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 ye.post("/alfresco/service/fr/jeci/pristy/nodes/inject",r,{withCredentials:!0,onUploadProgress:h=>{if(h.total&&o){const Z=Math.round(h.loaded*100/h.total);o.percent=Z}},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:s}})}catch(i){console.error(i);let n;try{n=Ut.uploadFileError(i,s)}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:s}})}}}}),lo=sl.global.t;class K0{constructor(){this.lruUrls=new at({maxSize:100,maxAge:300*1e3}),this.pendingRenditions=new Set,this.failedRenditions=new at({maxSize:500,maxAge:300*1e3})}getThumbnailUrl(t){const a=`thumbnail_${t}`;if(this.lruUrls.has(a))return this.lruUrls.get(a);const s=vt.getDocumentThumbnailUrl(t);return this.lruUrls.set(a,s),s}getPreviewUrl(t){const a=`preview_${t}`;if(this.lruUrls.has(a))return this.lruUrls.get(a);const s=vt.getDocumentPreviewUrl(t);return this.lruUrls.set(a,s),s}getContentUrl(t){const a=`content_${t}`;if(this.lruUrls.has(a))return this.lruUrls.get(a);const s=vt.getContentUrl(t);return this.lruUrls.set(a,s),s}getVersionContentUrl(t,a){const s=`version_content_${t}_${a}`;if(this.lruUrls.has(s))return this.lruUrls.get(s);const o=vt.getVersionContentUrl(t,a);return this.lruUrls.set(s,o),o}uploadFile(t,a,s){return Ua.uploadFile(s,null,t,null,a).on("progress",o=>{console.log("Percent :"+o.percent)}).then(o=>(this.createMissingRenditions(o.entry.id),o)).catch(o=>{Ut.uploadFileError(o,s.name)})}createRendition(t,a){return this._createRendition(t,{id:a})}createAllRendition(t){return this._createRendition(t,[{id:"doclib"},{id:"imgpreview"}])}async createMissingRenditions(t,a=["doclib","imgpreview"]){const s=await gl.listRenditions(t),o=new Map((s?.list?.entries??[]).map(n=>[n.entry.id,n.entry.status])),i=a.filter(n=>o.get(n)==="NOT_CREATED");if(i.length!==0)return this._createRendition(t,i.map(n=>({id:n})))}_createRendition(t,a){return gl.createRendition(t,a).catch(s=>{if(s.status===400){let o=JSON.parse(s.message);console.warn(o.error?.briefSummary)}else s.status===403?console.debug("Current user does not have permission for "+t):s.status===409?console.debug("All requested renditions already exist"):console.error(s)})}createVersionRendition(t,a,s){return Jt.createVersionRendition(t,a,{id:s})}getVersionRendition(t,a,s){return Jt.getVersionRendition(t,a,s)}handleThumbnailFallback(t){const a=t?.target;a&&requestAnimationFrame(()=>{const s=a.parentElement;if(s){s.style.display="none";const o=s.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.createMissingRenditions(a).catch(s=>{this.failedRenditions.set(a,!0),s?.status===403?console.debug(`Permission denied for rendition on ${a}`):console.warn(`createMissingRenditions error ${s?.status} for ${a}`)}).finally(()=>{this.pendingRenditions.delete(a)}))}isThumbnailSupported(t){let a=["application/pdf","application/msword","application/rtf"],s=["image/svg+xml"];return t.isFile&&t.content.mimeType&&!s.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))}_findRenditionStatus(t,a){const s=t?.list?.entries?.find(o=>o.entry?.id===a);return s?s.entry.status:null}_renditionNotAvailable(t,a){const s=new Error(`Rendition "${a}" is not available for ${t}`);return s.code="RENDITION_NOT_AVAILABLE",s}_waitForRendition(t,a,s){return yr(async()=>{if((await t()).entry.status==="CREATED")return a();throw new Error(`Rendition "${s}" not ready`)},{retries:8,factor:2,minTimeout:1e3,maxTimeout:1e4,randomize:!1,onRetry:o=>{console.debug(`Waiting for rendition "${s}": ${o.message}`)}})}async getRenditionUrl(t,a="pdf"){const s=await gl.listRenditions(t),o=this._findRenditionStatus(s,a);if(o===null)throw this._renditionNotAvailable(t,a);return o==="CREATED"?vt.getRenditionUrl(t,a):(await this.createRendition(t,a),this._waitForRendition(()=>gl.getRendition(t,a),()=>vt.getRenditionUrl(t,a),a))}async getVersionRenditionUrl(t,a,s="pdf"){const o=await Jt.listVersionRenditions(t,a),i=this._findRenditionStatus(o,s);if(i===null)throw this._renditionNotAvailable(t,s);return i==="CREATED"?vt.getVersionRenditionUrl(t,a,s):(await this.createVersionRendition(t,a,s).catch(()=>{}),this._waitForRendition(()=>Jt.getVersionRendition(t,a,s),()=>vt.getVersionRenditionUrl(t,a,s),s))}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,s=re();return t.isFolder?!1:s.EDIT_WITH_MSOFFICE&&this.isMSOfficeDoc(t)&&a&&(this.isWindows()||this.isMacOs())}triggerEditOnlineAos(t){const a=re();let s=`${a.ALFRESCO_HOST}/${a.ALFRESCO_ROOT}/aos`,o="Sites",i;if(t.path.name.length>256)i=`${s}/${o}/_aos_nodeid/${t.id}/${encodeURIComponent(t.name)}`;else{let r=t.path.elements.slice(1).map(m=>m.name).join("/");i=`${s}/${r}/${t.name}`}let n=ze.getFileExtension(t.name),c=ze.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,i)}aos_tryToLaunchOfficeByMsProtocolHandler(t,a){let s=`${t}:ofe%7Cu%7C${a}`,o=document.createElement("iframe");o.style.display="none",o.src=s,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,s){const o=nl().files.find(i=>i.name===s.name);return Ua.uploadFile(s,null,t,null,a).on("progress",i=>{o.percent=i.percent})}tooltipLockContent(t){const a=t.properties["cm:lockType"],s=t.properties["cm:lockOwner"]?.displayName??t.properties["cm:lockOwner"]?.id;switch(a){case"NODE_LOCK":return lo("lock.nodeLock",{owner:s});case"READ_ONLY_LOCK":return lo("lock.readOnlyLock",{owner:s});case"WRITE_LOCK":return lo("lock.writeLock",{owner:s});default:return`Verrou inconnu (${a}).
|
|
10
|
-
Lock owner: ${s}`}}isPathElementVisible(t,a){return a>0&&t.nodeType!=="st:sites"&&t.nodeType!=="sys:container"&&t.nodeType!=="cm:person"&&t.name!=="documentLibrary"}}const ze=new K0,_n=_.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=re();return console.log(`Loading collabora extensions: ${l.COLLABORA_HOSTING_DISCOVERY}`),ye.get(`${l.COLLABORA_HOSTING_DISCOVERY}`).then(t=>new DOMParser().parseFromString(t.data,"text/xml")).catch(t=>{throw B("getCollaboraExtensions",t)})},checkIfExists(l,t){if(!this.loaded)return!1;const a=this.XMLExtensions.find(s=>s.attributes.name.value===l);return a?!![...a.getElementsByTagName("action")].find(i=>i.attributes.name.value===t):!!a}}}),Kn={"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 $n(l){const t=re(),a=_n(),s=l.content.mimeType;return!t.OPEN_PDF_WITH_COLLABORA&&s==="application/pdf"?{name:"consultation-pdf",params:{id:l.id}}:s.startsWith("image/")?{name:"consultation-image",params:{id:l.id}}:s.startsWith("video/")?{name:"consultation-video",params:{id:l.id}}:Kn[s]?{name:Kn[s],params:{id:l.id}}:s.startsWith("text/")?{name:"text-editor",params:{id:l.id}}:a.checkIfExists(s,"edit")?{name:"edit-collabora",params:{action:"edit",id:l.id}}:a.checkIfExists(s,"view")?{name:"edit-collabora",params:{action:"view",id:l.id}}:a.checkIfExists(s,"view_comment")?{name:"edit-collabora",params:{action:"view",id:l.id}}:{name:"consultation-pdf",params:{id:l.id}}}function qn(l,t={}){if(!l.path){console.warn("nodeToMenuItem, favorite has no path",l);return}let a="";const s=l.path.elements.find(i=>i.nodeType==="st:site");let o;if(l.isFolder?o={name:"navigation-dossier",params:{id:s.name,FolderId:l.id}}:(o=$n(l),o.name==="edit-collabora"&&(a="_blank")),s?.name){let i=null;if(t.parentNodeType){const n=l.path.elements.find(c=>c.nodeType===t.parentNodeType);n&&(i=n.name)}return{label:l.name,labelPrefix:i,icon:l.isFolder?"ri-folder-2-line":"ri-file-line",class:"menu-item responsive-text",target:a,to:o}}}const Q=sl.global.t;class $0{createProcess(t){return ye.post("/alfresco/api/-default-/public/workflow/versions/1/processes",t,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"}}).catch(s=>{throw console.error(Q("tasks.error.createProcess"),s),new Error(Q("tasks.error.createProcess"))})}getProcesses(){return ye.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(Q("tasks.error.getProcesses"),t),new Error(Q("tasks.error.getProcesses"))})}getProcess(t){return ye.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(Q("tasks.error.getProcess"),a),new Error(Q("tasks.error.getProcess"))})}getFinishedProcesses(){return ye.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(Q("tasks.error.getFinishedProcess"),t),new Error(Q("tasks.error.getFinishedProcess"))})}addProcessItems(t,a){const s=`/alfresco/api/-default-/public/workflow/versions/1/processes/${t}/items`;return ye.post(s,a,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"}}).catch(o=>{throw console.error(Q("tasks.error.addProcessItems"),o),new Error(Q("tasks.error.addProcessItems"))})}getProcessItems(t){return ye.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(Q("tasks.error.getProcessItems"),a),new Error(Q("tasks.error.getProcessItems"))})}getProcessVariables(t){return ye.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(Q("tasks.error.getProcessVariables"),a),new Error(Q("tasks.error.getProcessVariables"))})}getProcessDefinition(t){return ye.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(Q("tasks.error.getProcessDefinition"),a),new Error(Q("tasks.error.getProcessDefinition"))})}cancelWorkflow(t){return ye.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(Q("tasks.error.cancelWorkflow"),a),new Error(Q("tasks.error.cancelWorkflow"))})}openProcessDiagram(t){return ye.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(Q("tasks.error.openProcessDiagram"),a),new Error(Q("tasks.error.openProcessDiagram"))})}getProcessHistoryTasks(t){return ye.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(Q("tasks.error.getProcessHistoryTasks"),a),new Error(Q("tasks.error.getProcessHistoryTasks"))})}listTasks(){return ye.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(s=>{a.push(s.entry)}),a}).catch(t=>{console.error(Q("tasks.error.listTasks"),t);const a=new Error(Q("tasks.error.listTasks"));throw a.status=t.response?.status,a})}listFinishedTasks(){return ye.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(s=>{a.push(s.entry)}),a}).catch(t=>{throw console.error(Q("tasks.error.listFinishedTasks"),t),new Error(Q("tasks.error.listFinishedTasks"))})}getTask(t){return ye.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(Q("tasks.error.getTask"),a),new Error(Q("tasks.error.getTask"))})}endTask(t){const a={state:"completed"},s=`/alfresco/api/-default-/public/workflow/versions/1/tasks/${t}?select=state`;return ye.put(s,a,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json","Content-Type":"application/json"}}).catch(o=>{throw console.error(Q("tasks.error.endTask"),o),new Error(Q("tasks.error.endTask"))})}getTaskVariables(t){return ye.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(Q("tasks.error.getTaskVariables"),a),new Error(Q("tasks.error.getTaskVariables"))})}postTaskVariables(t,a){const s=`/alfresco/api/-default-/public/workflow/versions/1/tasks/${t}/variables`;return ye.post(s,a,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"}}).catch(o=>{throw console.error(Q("tasks.error.postTaskVariables"),o),new Error(Q("tasks.error.postTaskVariables"))})}updateTaskVariables(t,a){const s=`/alfresco/api/-default-/public/workflow/versions/1/tasks/${t}?select=state,variables`;return ye.put(s,a,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json","Content-Type":"application/json"}}).catch(o=>{throw console.error(Q("tasks.error.updateTaskVariables"),o),new Error(Q("tasks.error.updateTaskVariables"))})}getTaskItem(t){return ye.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(Q("tasks.error.getTaskItem"),a),new Error(Q("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?Vt.formatDate(new Date(t),"ddd D MMM YYYY"):Q("tasks.none")}formatDateWithHour(t){const a=new Date(t),s=String(a.getUTCDate()).padStart(2,"0"),o=a.getUTCMonth(),i=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()],p=["Jan","Fev","Mar","Avr","Mai","Jui","Jui","Aoû","Sep","Oct","Nov","Dec"][o];return`${h} ${s} ${p} ${i} ${n}:${c}:${r}`}displayPriority(t){return{3:Q("tasks.priority.low"),2:Q("tasks.priority.medium"),1:Q("tasks.priority.high")}[t]||Q("tasks.priority.notFound")}getTaskType(t){if(!t||!t.activityDefinitionId)return null;switch(t.activityDefinitionId){case"approved":return Q("tasks.approved");case"rejected":return Q("tasks.rejected");case"reviewTask":return Q("tasks.reviewTask");case"adhocTask":return Q("tasks.adhocTask");case"verifyTaskDone":return Q("tasks.verifyTaskDone");default:return Q("tasks.unknownTask")}}getTaskStatusLabelFromCode(t){const s=[{label:Q("tasks.statusLabel.notYetStarted"),code:"Not Yet Started"},{label:Q("tasks.statusLabel.inProgress"),code:"In Progress"},{label:Q("tasks.statusLabel.onHold"),code:"On Hold"},{label:Q("tasks.statusLabel.cancelled"),code:"Cancelled"},{label:Q("tasks.statusLabel.completed"),code:"Completed"}].find(o=>o.code===t);return s?s.label:"Unknown"}}const ra=new $0,q0=300*1e3;let Sl=null;const ec=_.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(()=>rd);t().logout();return}console.error("Failed to check active tasks:",l)}},startPolling(){Sl===null&&(this.checkTasks(),Sl=setInterval(()=>this.checkTasks(),q0))},stopPolling(){Sl!==null&&(clearInterval(Sl),Sl=null),this.hasActiveTasks=!1}}}),ed={profile:"#/personal-info",password:"#/security/signingin"};class td{constructor(t,a){this.initOptions=a,this.usernameClaim=t.OIDC_USERNAME_CLAIM||"preferred_username",this.accountUrls=t.OIDC_ACCOUNT_URLS||{},this.keycloak=new Wr(a),this.renewInterval=null,this.tokenRenewedCallbacks=[],this.sessionLostCallbacks=[]}async init(){this.keycloak.onAuthSuccess=()=>{this.renewInterval=setInterval(()=>{this.keycloak.updateToken(60).then(t=>{t&&this.notifyTokenRenewed()}).catch(()=>{this.keycloak.clearToken()})},1e4)},this.keycloak.onAuthLogout=()=>{clearInterval(this.renewInterval),this.renewInterval=null,this.notifySessionLost()},await this.keycloak.init(this.initOptions)}isAuthenticated(){return this.keycloak.authenticated===!0}async login(t){window.location.replace(this.keycloak.createLoginUrl())}async completeLogin(){return"/"}async logout(){this.keycloak.logout()}getAccessToken(){return this.keycloak.token??null}getUsername(){return this.keycloak.idTokenParsed?.[this.usernameClaim]??null}getAccountConsoleUrl(t){if(this.accountUrls[t])return this.accountUrls[t];const a=ed[t];return!a||!this.keycloak.authServerUrl||!this.keycloak.realm?null:`${this.keycloak.authServerUrl.replace(/\/+$/,"")}/realms/${this.keycloak.realm}/account/${a}`}onTokenRenewed(t){this.tokenRenewedCallbacks.push(t)}onSessionLost(t){this.sessionLostCallbacks.push(t)}notifyTokenRenewed(){this.tokenRenewedCallbacks.forEach(t=>{t()})}notifySessionLost(){this.sessionLostCallbacks.forEach(t=>{t()})}}function ld(l,{baseUrl:t,origin:a}){const s=ad(l);if(s===null)throw new Error("OIDC configuration error: OIDC_CUSTOM needs either 'oidcProvider' or both 'url' and 'realm'");if(!l.clientId)throw new Error("OIDC configuration error: OIDC_CUSTOM is missing 'clientId'");l.responseType&&console.warn(`[auth] responseType "${l.responseType}" is deprecated and ignored: the authorization code flow with PKCE is always used.`);const o=lc(t),i={authority:s,client_id:l.clientId,redirect_uri:`${a}${o}oidc-callback`,post_logout_redirect_uri:`${a}${o}`,response_type:"code",scope:l.scope||"openid profile email",automaticSilentRenew:!0,monitorSession:l.checkLoginIframe===!0,loadUserInfo:!1};return l.fetchRequestCredentials&&(i.fetchRequestCredentials=l.fetchRequestCredentials),i}function ad(l){return l.oidcProvider?tc(l.oidcProvider):l.url&&l.realm?`${tc(l.url)}/realms/${l.realm}`:null}function tc(l){return String(l).replace(/\/+$/,"")}function lc(l){const t=l||"/";return t.endsWith("/")?t:`${t}/`}const od={profile:"#/personal-info",password:"#/security/signingin"},sd=/^(.*)\/realms\/([^/]+)$/;class id{constructor(t,a){this.settings=ld(a,{baseUrl:t.BASE_URL,origin:window.location.origin}),this.usernameClaim=t.OIDC_USERNAME_CLAIM||"preferred_username",this.accountUrls=t.OIDC_ACCOUNT_URLS||{},this.user=null,this.tokenRenewedCallbacks=[],this.sessionLostCallbacks=[],this.userManager=new o2.UserManager({...this.settings,userStore:new o2.WebStorageStateStore({store:window.localStorage})}),this.userManager.events.addUserLoaded(s=>{this.user=s,this.notifyTokenRenewed()}),this.userManager.events.addSilentRenewError(s=>{console.error('[auth] Silent token renewal failed — the OIDC provider most likely issued no refresh token (check the "offline_access" scope):',s),this.notifySessionLost()}),this.userManager.events.addUserSignedOut(()=>{this.notifySessionLost()})}async init(){this.user=await this.userManager.getUser()}isAuthenticated(){return this.user!=null&&this.user.expired!==!0}async login(t){const a=t||`${window.location.pathname}${window.location.search}`;await this.userManager.signinRedirect({state:{returnTo:a}})}async completeLogin(){const t=await this.userManager.signinRedirectCallback();return this.user=t,t?.state?.returnTo||"/"}async logout(){await this.userManager.signoutRedirect()}getAccessToken(){return this.user?.access_token??null}getUsername(){return this.user?.profile?.[this.usernameClaim]??null}getAccountConsoleUrl(t){if(this.accountUrls[t])return this.accountUrls[t];const a=od[t],s=sd.exec(this.settings.authority);return!a||!s?null:`${s[1]}/realms/${s[2]}/account/${a}`}onTokenRenewed(t){this.tokenRenewedCallbacks.push(t)}onSessionLost(t){this.sessionLostCallbacks.push(t)}notifyTokenRenewed(){this.tokenRenewedCallbacks.forEach(t=>{t()})}notifySessionLost(){this.sessionLostCallbacks.forEach(t=>{t()})}}let ac=null,oc=Promise.resolve();function nd(l,t){return l.OIDC_CLIENT==="oidc-client-ts"?new id(l,t):new td(l,t)}function cd(l,t){ac=l,oc=t??Promise.resolve()}function ao(){return ac}function sc(){return oc}function oo(){const l=ao();if(l===null)throw new Error("No authentication provider installed: app.use(vueKeyCloak, …) is missing");return l}const Ae=_.defineStore({id:"UserStore",state:()=>({token:"",isAdmin:!1,isLoggedIn:!1,person:null,homeFolder:null,isPristyAdmin:null}),getters:{displayName(l){return l.person==null?"":l.person.displayName}},actions:{async logout(){ec().stopPolling(),te&&await te.logout(),this.$patch({token:"",isAdmin:!1,person:null,apiAlfresco:null,isLoggedIn:!1,isPristyAdmin:null});const l=re();if(l.isOidcAuth){try{await ye.get(`${l.ALFRESCO_HOST}/alfresco/logout`)}catch(t){console.error("Error during Alfresco logout:",t)}localStorage.removeItem("ticket-ECM"),localStorage.removeItem("ACS_USERNAME"),await ao()?.logout()}},validateSession(){return te.isLoggedIn()?re().isOidcAuth?this.getAlfTicket():y2.validateTicket().then(()=>{this.isLoggedIn=!0}).catch(()=>{this.isLoggedIn=!1}):(this.isLoggedIn=!1,Promise.resolve(void 0))},connectKeycloak:async function(l){await sc();const t=oo();if(!t.isAuthenticated()){await t.login(l);return}this.isLoggedIn||await this.validateSession(),this.person===null&&await this.getPerson()},completeLogin:async function(){await sc();const t=await oo().completeLogin();return await this.getAlfTicket(),t},accountConsoleUrl(l){return ao()?.getAccountConsoleUrl(l)??null},keycloakReady(l){return l.onTokenRenewed(()=>{this.getAlfTicket().catch(t=>{console.error("Could not refresh the Alfresco ticket:",t)})}),l.onSessionLost(()=>{this.logout().catch(t=>{console.error("Could not complete logout:",t)})}),l.isAuthenticated()?this.getAlfTicket():Promise.resolve(void 0)},getAlfTicket(l=!1){const t=re();if(!t.isOidcAuth)return console.warn("getAlfTicket() won't work in standard AUTH configuration"),Promise.resolve(void 0);const a=oo();return ye.get(`${t.ALFRESCO_HOST}/alfresco/api/-default-/public/authentication/versions/1/tickets/-me-`,{headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${a.getAccessToken()}`}}).then(s=>s.data.entry).then(s=>(te.setTicket(s.id,null),window.localStorage.setItem("ACS_USERNAME",a.getUsername()),this.isLoggedIn=!0,s)).catch(s=>{if(!l&&s.response?.status===401)return this.getAlfTicket(!0);throw this.isLoggedIn=!1,Ka(s)})},getPerson(){return ol.getPerson("-me-").then(l=>l.entry).then(l=>(this.isLoggedIn=!0,this.person=l,this.isAdmin=l.capabilities?.isAdmin===!0,l)).then(l=>ht.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 l=await Yl.listGroupMembershipsForPerson(this.person.id);this.isPristyAdmin=l.list.entries.some(t=>t.entry.id==="GROUP_PRISTY_ADMINISTRATORS")}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 te.login(l,t).then(()=>(this.isLoggedIn=!0,this.getPerson())).catch(a=>{throw this.isLoggedIn=!1,Ka(a)})},async publiclogoff(){const l=localStorage.getItem("ACS_USERNAME");l&&l.startsWith("user_publication_")&&(te.invalidateSession(),localStorage.removeItem("ticket-ECM"),localStorage.removeItem("ACS_USERNAME"))},publiclogin(l){let t=te.getTicketEcm();return typeof t<"u"&&t!=null?Promise.resolve(t):Al.executeWebScript("GET",`fr/jeci/pristy/authentication/ticket/publication/site/${l}`).then(a=>(te.setTicket(a.ticket,null),window.localStorage.setItem("ACS_USERNAME",a.login),a.ticket)).catch(a=>{throw Ka(a)})}}}),rd=Object.freeze(Object.defineProperty({__proto__:null,useUserStore:Ae},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(s=>s.key===t).items.findIndex(s=>"FolderId"in s.to.params?s.to.params.FolderId===l.to.params.FolderId:s.to.params.id===l.to.params.id);this.menu.find(s=>s.key===t).items.splice(a,1)}}});let Xl=null;const so=50,dd=["org.alfresco.share.documents.favourites","org.alfresco.share.folders.favourites"];async function md(l,t){for(const a of dd){let s;try{s=(await Ha.getPreference(l,a))?.entry?.value}catch(o){if(o?.status===404)continue;throw o}if(typeof s=="string"&&s.includes(t)){const o=s.split(",").map(i=>i.trim()).filter(i=>i&&!i.includes(t)).join(",");return await Ha.updatePreference(l,a,o),!0}}return!1}function bd(l){let t;try{t=[l?.message,l?.response?.text,typeof l?.response?.body=="string"?l.response.body:JSON.stringify(l?.response?.body),JSON.stringify(l)].filter(Boolean).join(" ")}catch{t=String(l?.message??l)}const a=t.match(/Node is not a (?:file|folder):\s*([0-9a-fA-F-]{36})/);return a?a[1]:null}const Jl=_.defineStore({id:"FavoritesStore",state:()=>({favorites:[],loaded:!1,loading:!1,loadError:!1,repairableGuid:null}),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(Xl)return Xl;this.loading=!0,this.loadError=!1,this.repairableGuid=null;const t=Ae(),a={skipCount:0,maxItems:200,include:["path"]};return Xl=Vl.listFavorites(t.person.id,a).then(s=>(this.favorites=s.list.entries.map(o=>o.entry),this.loaded=!0,this.favorites)).catch(s=>{if(s?.status===400)return Vl.listFavorites(t.person.id,{skipCount:0,maxItems:200}).then(o=>(this.favorites=o.list.entries.map(i=>i.entry),this.loaded=!0,this.favorites)).catch(o=>(console.warn("loadFavorites: favorites list unavailable",o),this.favorites=[],this.loaded=!0,this.loadError=!0,this.repairableGuid=bd(o),this.favorites));throw B("loadFavorites",s)}).finally(()=>{this.loading=!1,Xl=null}),Xl},async repairOrphanFavorites(){const l=Ae();let t=0;for(;this.repairableGuid&&t<so;){const a=this.repairableGuid;let s;try{s=await md(l.person.id,a)}catch(o){console.warn("repairOrphanFavorites: preference update failed",a,o);break}if(!s){console.warn("repairOrphanFavorites: guid not found in favourite preferences",a);break}t+=1,await this.loadFavorites(!0)}return this.repairableGuid&&t>=so&&console.warn("repairOrphanFavorites: reached safety cap",so),t},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,this.loadError=!1,this.repairableGuid=null,Xl=null}}});class pd{getFavorites(t){return Jl().loadFavorites().then(s=>t?s.filter(o=>o.target&&o.target[t]):s)}changeSingleFavorite(t,a={}){return t.isFavorite?this.deleteFavoris(t):this.createFavorite(t,a)}createFavorite(t,a={}){const s=Ae(),o=da();let i={target:{}},n={guid:t.id};return t.nodeType==="st:site"?i.target={site:n}:t.isFile?i.target={file:n}:i.target={folder:n},Vl.createFavorite(s.person.id,i).then(c=>(t.isFavorite=c.entry.targetGuid===t.id,Jl().addFavoriteToCache(c.entry),t)).then(c=>(c.isFavorite&&o.addFavorite(qn(c,a),"menuFavoris"),c)).catch(c=>{throw B("createFavorite",c)})}deleteFavoris(t){const a=Ae(),s=da();return Vl.deleteFavorite(a.person.id,t.id).then(()=>(t.isFavorite=!1,Jl().removeFavoriteFromCache(t.id),t)).then(o=>(o.isFavorite||s.removeFavorite(qn(o),"menuFavoris"),o)).catch(o=>{throw console.error(o),B("getSharedLink",o)})}}const ma=new pd;class ud{constructor(){this.lruPristyAdmin=new at({maxSize:1,maxAge:300*1e3})}clearAdminCache(){this.lruPristyAdmin.clear()}isInPristyAdminGroup(){const t="isAdmin";return this.lruPristyAdmin.has(t)?Promise.resolve(this.lruPristyAdmin.get(t)):Yl.listGroupMembershipsForPerson("-me-").then(a=>{const s=a.list.entries.some(o=>o.entry.id==="GROUP_PRISTY_ADMINISTRATORS");return this.lruPristyAdmin.set(t,s),s}).catch(a=>(console.error("Error retrieving group memberships:",a),!1))}async computeMenuActes(){let t=[],a=await Oe.searchAllWorkspaces("AND pm:typeEspace:'actes'"),s=this.actesSiteToMenuItems(a);return t.push({label:"Actes administratifs",key:"menuActes",to:{name:"mes-espaces-actes"},class:"layout-menuitem-root-text",items:s}),t}actesSiteToMenuItems(t){let a=t.map(s=>({label:s.title,class:"menu-item responsive-text",icon:"ri-folder-2-line",to:{name:"seances",params:{id:s.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,s)=>{if(!s.target)return console.warn("favoritesNodeToMenuItems, favorite has no target",s),a;const o=s.target,i=o.folder||o.file||o.site;if(!i||!i.path)return console.warn("favoritesNodeToMenuItems, target has no valid path",s),a;if(i.path.elements.find(c=>c.nodeType==="st:site")?.name){let c=this.retrieveFavorite(s);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,s=a.folder||a.file||a.site;if(!s.path){console.warn("nodeToMenuItem, favorite has no path",t);return}let o="";const i=s.path.elements.find(c=>c.nodeType==="st:site");let n;if(s.isFolder?n={name:"navigation-dossier",params:{id:i.name,FolderId:t.targetGuid}}:(n=$n(s),n.name==="edit-collabora"&&(o="_blank")),i?.name)return{label:s.name,icon:s.isFolder?"ri-folder-2-line":"ri-file-line",class:"menu-item responsive-text",target:o,to:n}}}const io=new ud,Zd={name:"ActionMenu",components:{PrimeDivider:vl,PrimeMenu:s2},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)}}},hd=["href"],yd=["href"];function Wd(l,t,a,s,o,i){const n=e.resolveComponent("PrimeDivider"),c=e.resolveComponent("router-link"),r=e.resolveComponent("PrimeMenu");return e.openBlock(),e.createBlock(r,{ref:"primeMenu",model:i.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(Z=>[e.createElementVNode("a",e.mergeProps({href:Z.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,hd)]),_: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,yd))],64))]),_:1},8,["model"])}const Ul=J(Zd,[["render",Wd]]),gd={name:"EllipsisBreadcrumb",components:{ActionMenu:Ul,PrimeButton:L,PrimeMenu:s2},directives:{tooltip:ut},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(Be,["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;S.getNode(t.id).then(s=>{this.menuActionItems=this.getBreadcrumbActions(s),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 ze.isPathElementVisible(l,t)},openModifyWorkspace(){Oe.getWorkspace(this.breadCrumbNode.name).then(l=>{l.name=l.id,this.modifyWorkspaceItem=l,this.popup="MODIFYWORKSPACE"})},openRename(){Me().selectSingleNode(this.breadCrumbNode),this.tempAspectsName=this.breadCrumbNode.aspectNames,this.breadCrumbNode.aspectNames=void 0,this.modifyPopupTitle="renameElement",this.popup="MODIFYNODE"},openModify(){Me().selectSingleNode(this.breadCrumbNode),this.tempAspectsName=this.breadCrumbNode.aspectNames,this.modifyPopupTitle="properties",this.popup="MODIFYNODE"},openMove(){Me().selectSingleNode(this.breadCrumbNode),this.popup="MOVENODE"},openCopy(){Me().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(){ma.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(){S.getNode(this.currentNode.id).then(l=>{this.breadCrumbNode.isFavorite=l.isFavorite,Oe.getWorkspace(this.breadCrumbNode.name).then(t=>{this.breadCrumbNode.title=t.title;let a=da();ma.changeSingleFavorite(this.breadCrumbNode).then(s=>{s.isFavorite?(a.addFavorite(io.siteToMenuItem(s),"menuEspaces"),this.breadCrumbNode.isFavorite=s.isFavorite,this.$toast.add({severity:"success",summary:this.$t("menu.favoris"),detail:this.$t("node.addSiteFavorite",{name:s.title}),life:3e3})):(a.removeFavorite(io.siteToMenuItem(s),"menuEspaces"),this.breadCrumbNode.isFavorite=s.isFavorite,this.$toast.add({severity:"success",summary:this.$t("menu.favoris"),detail:this.$t("node.removeSiteFavorite",{name:s.title}),life:3e3}))}).catch(s=>{console.error("erreur de favoris",s),this.$toast.add({severity:"error",summary:this.$t("node.favoriteError"),detail:s.message,life:3e3})})})})}}},Yd={key:0,class:"p-breadcrumb p-component"},Nd={class:"p-breadcrumb-list"},Ad={class:"p-menuitem"},Xd={key:0},zd={class:"p-menuitem"},Md={class:"commonElementName breadcrumbElementName"},Od={key:1,class:"ri-arrow-right-s-line breadcrumbSeparator text-2xl mb-2 mx-1"},jd={class:"p-2"},Gd={class:"ml-2 breadcrumbMenuItem"},Td={key:2,class:"ri-arrow-right-s-line breadcrumbSeparator text-2xl mb-2 mx-1"},wd={key:3},fd={class:"p-menuitem"},Id={class:"commonElementName breadcrumbElementName"},vd={class:"p-menuitem"};function Ld(l,t,a,s,o,i){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",Yd,[e.createElementVNode("div",Nd,[e.createElementVNode("div",Ad,[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",Xd,[e.createElementVNode("div",zd,[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",Md,[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",Od)),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]=Z=>i.toggleBreadCrumbMenu(Z))},null,8,["aria-label"]),e.createVNode(r,{ref:"menuBreadcrumb",model:o.menuBreadcrumbItems,popup:""},{item:e.withCtx(({item:Z})=>[e.createElementVNode("div",jd,[e.createVNode(n,{to:Z.route},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["ml-2 breadcrumbMenuItem",Z.icon])},null,2),e.createElementVNode("span",Gd,e.toDisplayString(Z.label),1)]),_:2},1032,["to"])])]),_:1},8,["model"]),a.isVerySmallScreen?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("i",Td)),a.isVerySmallScreen?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",wd,[e.createElementVNode("div",fd,[e.createVNode(n,{to:i.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",Id,[e.createTextVNode(e.toDisplayString(i.secondToLastItem.name),1)])),[[h,i.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",vd,[e.createVNode(n,{to:i.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(i.lastItem.name),1)],2)),[[h,i.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]=Z=>i.toggleMenuActionButton(Z,i.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 ic=J(gd,[["render",Ld],["__scopeId","data-v-546d4546"]]),Dd={name:"BreadCrumbAlfresco",components:{ActionMenu:Ul,PrimeButton:L,PrimeBreadcrumb:gr},directives:{tooltip:ut},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(Be,["isInConsultation","isInUserHome"])},methods:{isLastItem(l){return l.item===this.path[this.path.length-1]},toggleMenuActionButton(l,t){const a=l.currentTarget||l.target;S.getNode(t.item.id).then(s=>{this.breadCrumbActions=this.getBreadcrumbActions(s),this.$refs.breadcrumbMenuAction.getActionMenuRef().toggle({currentTarget:a})})},isNodeIgnore(l,t){return ze.isPathElementVisible(l,t)}}},Rd={class:"flex align-items-center"};function kd(l,t,a,s,o,i){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(Z=>[e.createElementVNode("div",Rd,[e.createVNode(n,{to:Z.item.to,class:"flex align-items-center"},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(Z.icon)},null,2),Z.item.nodeType==="st:site"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ri-building-line breadcrumbIcon",{"primary-color":!i.isLastItem(Z),searchOrConsultActiveClass:a.isInSearch||l.isInConsultation}]),"aria-hidden":"true"},null,2)):Z.item.nodeType==="home"?(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass(["ri-home-4-line breadcrumbIcon",{"primary-color":!i.isLastItem(Z),searchOrConsultActiveClass:a.isInSearch||l.isInConsultation}]),"aria-hidden":"true"},null,2)):Z.item.isFolder?(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass(["ri-folder-2-line breadcrumbIcon",{"primary-color":!i.isLastItem(Z),searchOrConsultActiveClass:a.isInSearch||l.isInConsultation,lastItemElementName:i.isLastItem(Z)&&!a.isInSearch&&!l.isInConsultation}]),"aria-hidden":"true"},null,2)):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["commonElementName",{lastItemElementName:i.isLastItem(Z)&&!a.isInSearch&&!l.isInConsultation,breadcrumbElementName:!i.isLastItem(Z),searchOrConsultActiveClass:a.isInSearch||l.isInConsultation}])},[e.createTextVNode(e.toDisplayString(Z.item.name),1)],2)),[[h,Z.item.name]])]),_:2},1032,["to"]),i.isLastItem(Z)&&!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:p=>i.toggleMenuActionButton(p,Z)},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 nc=J(Dd,[["render",kd],["__scopeId","data-v-e9dff6fc"]]),Cd=["en","fr"],Fd=["o","Ko","Mo","Go","To"],Vd=["o","Ko","Mo","Go","To"];class xd{convertBytesToSize(t){if(t==null||t==="")return"";let a=parseInt(t);if(a===0)return"0";const o=this.currentLang()==="fr"?Vd:Fd;let i=Math.floor(Math.log(a)/Math.log(1024)),n=a/Math.pow(1024,i);return`${n<10&&i>0?n.toFixed(1):Math.round(n)} ${o[i]}`}currentLang(){let t=localStorage?.getItem("user.language")||window?.navigator?.language;return t.indexOf("-")>0&&(t=t.substring(0,t.indexOf("-"))),Cd.includes(t)||(t="en"),t}}const cc=new xd,rc=sl.global.t;class Sd{toLocaleDateString(t){if(!t)return"";let a=new Date(t);return new Intl.DateTimeFormat("fr-FR").format(a)}formatDate(t){return Vt.formatDate(new Date(t),"ddd D MMM YYYY")}formatDateTime(t){return Vt.formatDate(new Date(t),"ddd D MMM YYYY - HH:mm:ss")}formatBool(t){if(t===!0)return rc("yes");if(t===!1)return rc("no")}}const ba=new Sd,Ze=sl.global.t;class Jd{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=Ze("dossier");else if(t.isFile)if(t.content.mimeType.startsWith("image/"))a=Ze("fichier_image");else if(t.content.mimeType.startsWith("video/"))a=Ze("fichier_video");else switch(t.content.mimeType){case"application/pdf":a=Ze("fichier_pdf");break;case"message/rfc822":a=Ze("fichier_eml");break;case"application/vnd.oasis.opendocument.text":case"application/vnd.openxmlformats-officedocument.wordprocessingml.document":case"application/msword":case"application/rtf":a=Ze("fichier_texte");break;case"application/vnd.ms-excel":case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":case"application/vnd.oasis.opendocument.spreadsheet":a=Ze("fichier_tableur");break;case"application/vnd.oasis.opendocument.graphics":a=Ze("fichier_dessin");break;case"application/vnd.oasis.opendocument.presentation":case"application/vnd.ms-powerpoint":case"application/vnd.openxmlformats-officedocument.presentationml.presentation":a=Ze("fichier_presentation");break;case"text/plain":a=Ze("fichier_texte");break;case"text/markdown":case"text/x-markdown":case"text/x-web-markdown":a=Ze("fichier_markdown");break;case"application/json":a=Ze("fichier_json");break;case"text/xml":case"application/xml":a=Ze("fichier_xml");break;case"text/html":a=Ze("fichier_html");break;case"text/css":a=Ze("fichier_css");break;case"text/csv":a=Ze("fichier_csv");break;case"application/x-javascript":case"text/javascript":a=Ze("fichier_javascript");break;case"text/sql":a=Ze("fichier_sql");break;case"application/x-sh":case"text/x-sh":a=Ze("fichier_shell");break;case"application/x-yaml":case"text/yaml":case"text/x-yaml":a=Ze("fichier_yaml");break;case"text/x-python":case"application/x-python":a=Ze("fichier_python");break;case"text/typescript":case"application/typescript":case"text/x-typescript":a=Ze("fichier_typescript");break;case"text/x-php":case"application/x-php":a=Ze("fichier_php");break;case"text/x-java":case"text/x-java-source":a=Ze("fichier_java");break;case"text/x-c":case"text/x-c++":case"text/x-go":case"text/x-rust":case"text/x-ruby":a=Ze("fichier_code");break;case"application/x-ini":case"text/x-ini":case"application/toml":case"text/x-toml":a=Ze("fichier_config");break;case"text/x-log":a=Ze("fichier_log");break;default:a=Ze("fichier")}else t.nodeType==="st:site"?a=Ze("espace"):a=t.nodeType;return a}}const cl=new Jd,Ud={name:"ContentTableView",components:{PristyIcon:xl,PrimeButton:L,PrimeImage:Ia,PrimeDataTable:Dl,PrimeCheckBox:St,PrimeColumn:Rl},directives:{tooltip:ut},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,s)=>a&&a[s]!==void 0?a[s]:void 0,l)},alfrescoFileService(){return ze},convertBytesToSize(l){return cc.convertBytesToSize(l)},toLocaleDateString(l){return ba.toLocaleDateString(l)},displaySvg(l){return l.isFile&&l.content.mimeType==="image/svg+xml"},loadIcon(l){return cl.getIcon(l)},loadIconLabel(l){return cl.getIconLabel(l)},onImageLoadFailure(l,t){ze.onImageLoadFailure(l,t)},displayThumb(l){return ze.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)}}},Hd={"data-tour":"select-all-checkbox"},Qd={"data-tour":"item-checkbox"},Bd=["src","alt"],Ed=["src","alt","onError"],Pd={key:0},_d={class:"ri-lock-line","aria-hidden":"true"},Kd={key:1},$d=["aria-label","onClick"],qd=["onClick"],em=["onClick"],tm={class:"datatable-buttons"};function lm(l,t,a,s,o,i){const n=e.resolveComponent("PrimeCheckBox"),c=e.resolveComponent("PrimeColumn"),r=e.resolveComponent("PrimeImage"),m=e.resolveComponent("PristyIcon"),h=e.resolveComponent("router-link"),Z=e.resolveComponent("PrimeButton"),p=e.resolveComponent("PrimeDataTable"),Y=e.resolveDirective("tooltip");return a.currentNode?(e.openBlock(),e.createBlock(p,{"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",Hd,[e.createVNode(n,{modelValue:i.isPageSelectedCopy,"onUpdate:modelValue":t[0]||(t[0]=A=>i.isPageSelectedCopy=A),binary:""},null,8,["modelValue"])])]),body:e.withCtx(A=>[e.createElementVNode("div",Qd,[e.createVNode(n,{id:A.data.id,modelValue:i.selectedNodesCopy,"onUpdate:modelValue":t[1]||(t[1]=X=>i.selectedNodesCopy=X),name:"option",value:A.data},null,8,["id","modelValue","value"])])]),_:1}),e.createVNode(c,{header:l.$t("column.thumbnail"),style:{width:"5rem"}},{body:e.withCtx(A=>[(e.openBlock(),e.createElementBlock("div",{key:A.data.id,"data-tour":"thumbnail"},[i.displaySvg(A.data)?(e.openBlock(),e.createBlock(r,{key:0,class:"shadow-2 cursor-pointer",onClick:X=>i.openPreviewPanel(A.data)},{image:e.withCtx(()=>[e.createElementVNode("img",{src:i.alfrescoFileService().getContentUrl(A.data.id),alt:A.data.name,class:"max-h-3rem max-w-3rem"},null,8,Bd)]),_:2},1032,["onClick"])):i.displayThumb(A.data)?(e.openBlock(),e.createBlock(r,{key:1,class:"shadow-2 cursor-pointer",onClick:X=>i.openPreviewPanel(A.data)},{image:e.withCtx(()=>[e.createElementVNode("img",{src:i.alfrescoFileService().getThumbnailUrl(A.data.id),alt:A.data.name,class:"max-h-3rem max-w-3rem",onError:X=>i.onImageLoadFailure(X,A.data)},null,40,Ed)]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(m,{class:"icon cursor-pointer",hidden:"","svg-file-name":i.loadIcon(A.data),onClick:X=>i.clickIcon(A.data)},null,8,["svg-file-name","onClick"]),[[Y,i.loadIconLabel(A.data)]]),!i.displayThumb(A.data)&&!i.displaySvg(A.data)?e.withDirectives((e.openBlock(),e.createBlock(m,{key:2,class:"icon cursor-pointer","svg-file-name":i.loadIcon(A.data),onClick:X=>i.clickIcon(A.data)},null,8,["svg-file-name","onClick"])),[[Y,i.loadIconLabel(A.data)]]):e.createCommentVNode("",!0)]))]),_:1},8,["header"]),i.hasLockedItem||i.hasBrokenInheritance?(e.openBlock(),e.createBlock(c,{key:0,style:{width:"3rem"}},{body:e.withCtx(A=>[A.data.isLocked?(e.openBlock(),e.createElementBlock("div",Pd,[e.withDirectives(e.createElementVNode("i",_d,null,512),[[Y,i.alfrescoFileService().tooltipLockContent(A.data)]])])):A.data.permissions?.isInheritanceEnabled===!1?(e.openBlock(),e.createElementBlock("div",Kd,[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",A.data),["stop"])},[...t[2]||(t[2]=[e.createElementVNode("i",{class:"ri-shield-user-line text-orange-500","aria-hidden":"true"},null,-1)])],8,$d)),[[Y,l.$t("restrictedPermissions")]])])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.visibleColumns,(A,X)=>(e.openBlock(),e.createBlock(c,{key:X,header:A.label,style:e.normalizeStyle(A.key==="name"?"max-width: 40vw; min-width: 12rem;":"")},{body:e.withCtx(z=>[A.action==="navigateTo"?e.withDirectives((e.openBlock(),e.createBlock(h,{key:0,to:i.collaboraService.getRoute(z.data),class:e.normalizeClass([{underline:i.isCurrentNodeDisplayed(z.data),"text-overflow":A.key==="name"},"noColorElement"]),onClick:y=>i.handleNavigateClick(y,z.data)},{default:e.withCtx(()=>[z.data.aspectNames?.includes(A.displayIconForProperty)?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(A.icon),"aria-hidden":"true"},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(i.applyFormat(i.getValue(z.data,A.key),A.format)),1)]),_:2},1032,["to","class","onClick"])),[[Y,i.getValue(z.data,A.key),void 0,{bottom:!0}]]):A.hasTooltip?e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass({"cursor-pointer":!!A.action,"text-overflow":A.key==="name"}),onClick:y=>i.applyAction(A.action,z.data)},[e.createTextVNode(e.toDisplayString(i.applyFormat(i.getValue(z.data,A.key),A.format)),1)],10,qd)),[[Y,i.getValue(z.data,A.key),void 0,{bottom:!0}]]):(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass({"cursor-pointer":!!A.action,"text-overflow":A.key==="name"}),onClick:y=>i.applyAction(A.action,z.data)},e.toDisplayString(i.applyFormat(i.getValue(z.data,A.key),A.format)),11,em))]),_:2},1032,["header","style"]))),128)),e.createVNode(c,null,{body:e.withCtx(A=>[e.createElementVNode("div",tm,[A.data.isFile&&!a.isPreviewPanelVisible&&!a.isSmallScreen?e.withDirectives((e.openBlock(),e.createBlock(Z,{key:0,"aria-label":l.$t("share.shareLinkSettings"),class:"simple",type:"button",icon:"ri-share-line",disabled:a.selectedNodes.length>1,rounded:"",text:"",onClick:X=>i.openShareLink(A.data)},null,8,["aria-label","disabled","onClick"])),[[Y,l.$t("share.shareLinkSettings")]]):e.createCommentVNode("",!0),!a.isPreviewPanelVisible&&!a.isSmallScreen&&!a.isInUserHome?e.withDirectives((e.openBlock(),e.createBlock(Z,{key:1,"aria-label":l.$t("add/removeFavorite"),class:"simple",type:"button",icon:A.data.isFavorite?"ri-star-fill":"ri-star-line",disabled:a.selectedNodes.length>1,rounded:"",text:"",onClick:X=>i.toggleFavorite(A.data)},null,8,["aria-label","icon","disabled","onClick"])),[[Y,l.$t("add/removeFavorite")]]):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(Z,{"aria-label":l.$t("moreActions"),class:"simple",type:"button",icon:"ri-more-2-line",disabled:a.selectedNodes.length>1,rounded:"",text:"",onClick:X=>i.toggleFileActionMenu(X,A.data)},null,8,["aria-label","disabled","onClick"]),[[Y,l.$t("moreActions"),void 0,{left:!0}]])])]),_:1})]),_:1},8,["value","state-key","data-key","filters","class"])):e.createCommentVNode("",!0)}const no=J(Ud,[["render",lm],["__scopeId","data-v-5de6ae10"]]),am={name:"ContentListView",components:{PristyIcon:xl,PrimeButton:L,PrimeCheckBox:St},directives:{tooltip:ut},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 ze},toLocaleDateString(l){return ba.toLocaleDateString(l)},loadIcon(l){return cl.getIcon(l)},loadIconLabel(l){return cl.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)}}},om={class:"border-1 border-100 overflow-hidden p-1"},sm={class:"flex align-items-center"},im={class:"mr-3 pl-2 ml-1","data-tour":"item-checkbox"},nm={key:0},cm={class:"mr-2 ri-lock-line","aria-hidden":"true"},rm={class:"flex overflow-hidden align-items-center w-full"},dm=["onClick"],mm={key:0,"data-tour":"thumbnail"},bm=["aria-label","onClick"],pm={key:2,class:"mr-1 ri-folder-2-line","aria-hidden":"true"},um=["aria-label","onClick"],Zm=["onClick"],hm={key:0,class:"p-text-secondary p-text-sm text-400"},ym={class:"justify-content-evenly w-fit"},Wm={key:0,class:"flex w-fit"},gm={key:1,class:"flex w-fit"};function Ym(l,t,a,s,o,i){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,(Z,p)=>(e.openBlock(),e.createElementBlock("div",{"data-testid":"content-list-view",key:p,class:"w-full",role:"listitem"},[e.createElementVNode("div",om,[e.createElementVNode("div",sm,[e.createElementVNode("div",im,[e.createVNode(n,{id:Z.id,modelValue:i.selectedNodesCopy,"onUpdate:modelValue":t[0]||(t[0]=Y=>i.selectedNodesCopy=Y),class:"align-items-center justify-content-center",name:"option",value:Z},null,8,["id","modelValue","value"])]),Z.isLocked?(e.openBlock(),e.createElementBlock("div",nm,[e.withDirectives(e.createElementVNode("i",cm,null,512),[[h,i.alfrescoFileService().tooltipLockContent(Z)]])])):e.createCommentVNode("",!0),e.createElementVNode("div",rm,[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=>i.nodeClicked(Z)},[Z.isFile?(e.openBlock(),e.createElementBlock("span",mm,[e.withDirectives(e.createVNode(c,{class:"small_icon cursor-pointer mr-2","svg-file-name":i.loadIcon(Z),onClick:Y=>i.clickIcon(Z)},null,8,["svg-file-name","onClick"]),[[h,i.loadIconLabel(Z)]])])):e.createCommentVNode("",!0),Z.isFile&&Z.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",Z),["stop"])},[...t[1]||(t[1]=[e.createElementVNode("i",{class:"mr-2 ri-shield-user-line text-orange-500","aria-hidden":"true"},null,-1)])],8,bm)),[[h,l.$t("restrictedPermissions")]]):e.createCommentVNode("",!0),Z.isFolder?(e.openBlock(),e.createElementBlock("i",pm)):e.createCommentVNode("",!0),Z.isFolder&&Z.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",Z),["stop"])},[...t[2]||(t[2]=[e.createElementVNode("i",{class:"mr-2 ri-shield-user-line text-orange-500","aria-hidden":"true"},null,-1)])],8,um)),[[h,l.$t("restrictedPermissions")]]):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createBlock(r,{to:i.collaboraService.getRoute(Z),class:e.normalizeClass({underline:i.isCurrentNodeDisplayed(Z)})},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(Z.name),1)]),_:2},1032,["to","class"])),[[h,Z.name,void 0,{top:!0}]]),e.createElementVNode("div",{class:"overflow-hidden white-space-nowrap text-overflow-ellipsis",onClick:Y=>i.openPreviewPanel(Z)},[Z.properties&&Z.properties["cm:title"]?e.withDirectives((e.openBlock(),e.createElementBlock("span",hm,[e.createTextVNode(e.toDisplayString(Z.properties["cm:title"]),1)])),[[h,Z.properties["cm:title"],void 0,{bottom:!0}]]):e.createCommentVNode("",!0)],8,Zm)],8,dm),e.createElementVNode("div",{class:e.normalizeClass(["mx-4",{hidden:a.isPreviewPanelVisible}])},e.toDisplayString(i.toLocaleDateString(Z.modifiedAt)),3),e.createElementVNode("div",ym,[a.isPreviewPanelVisible||a.isSmallScreen?(e.openBlock(),e.createElementBlock("div",Wm,[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",disabled:a.selectedNodes.length>1,onClick:Y=>i.toggleFileActionMenu(Y,Z)},null,8,["aria-label","disabled","onClick"]),[[h,l.$t("moreActions")]])])):(e.openBlock(),e.createElementBlock("div",gm,[e.withDirectives(e.createVNode(m,{"aria-label":l.$t("open"),icon:"ri-external-link-line",severity:"secondary",class:"mr-1",size:"small",disabled:a.selectedNodes.length>1,onClick:Y=>i.openInNewTab(Z)},null,8,["aria-label","disabled","onClick"]),[[h,l.$t("open"),void 0,{top:!0}]]),Z.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",disabled:a.selectedNodes.length>1,onClick:Y=>i.openShareLink(Z)},null,8,["aria-label","disabled","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:Z.isFavorite?"ri-star-fill":"ri-star-line",class:"mr-1",severity:"primary",size:"small",disabled:a.selectedNodes.length>1,onClick:Y=>i.toggleFavorite(Z)},null,8,["aria-label","icon","disabled","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",disabled:a.selectedNodes.length>1,onClick:Y=>i.toggleFileActionMenu(Y,Z)},null,8,["aria-label","disabled","onClick"]),[[h,l.$t("moreActions"),void 0,{top:!0}]])]))])])])])]))),128)}const co=J(am,[["render",Ym],["__scopeId","data-v-af65ba77"]]),Nm={name:"ContentGridView",components:{PristyIcon:xl,PrimeButton:L,PrimeCheckBox:St,PrimeImage:Ia},directives:{tooltip:ut},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 ze},toLocaleDateString(l){return ba.toLocaleDateString(l)},displaySvg(l){return l.isFile&&l.content.mimeType==="image/svg+xml"},loadIcon(l){return cl.getIcon(l)},loadIconLabel(l){return cl.getIconLabel(l)},onImageLoadFailure(l,t){ze.onImageLoadFailure(l,t)},displayThumb(l){return ze.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)}}},Am=["aria-label"],Xm={class:"border-1 border-round border-100 w-20rem overflow-hidden"},zm={class:"px-4 surface-100 h-17rem"},Mm={class:"flex justify-content-between flex-wrap align-items-center h-4rem"},Om={"data-tour":"item-checkbox"},jm={key:0},Gm={class:"ri-lock-line","aria-hidden":"true"},Tm=["aria-label","onClick"],wm=["onClick"],fm=["src","alt"],Im=["src","alt","onError"],vm={class:"flex justify-content-between"},Lm={class:"p-3"};function Dm(l,t,a,s,o,i){const n=e.resolveComponent("PrimeCheckBox"),c=e.resolveComponent("router-link"),r=e.resolveComponent("PrimeButton"),m=e.resolveComponent("PrimeImage"),h=e.resolveComponent("PristyIcon"),Z=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,(p,Y)=>(e.openBlock(),e.createElementBlock("div",{key:Y,class:"p-2",role:"listitem"},[e.createElementVNode("div",Xm,[e.createElementVNode("div",zm,[e.createElementVNode("div",Mm,[e.createElementVNode("div",Om,[e.createVNode(n,{id:p.id,modelValue:i.selectedNodesCopy,"onUpdate:modelValue":t[0]||(t[0]=A=>i.selectedNodesCopy=A),class:"flex align-items-center justify-content-center",name:"option",value:p},null,8,["id","modelValue","value"])]),p.isLocked?(e.openBlock(),e.createElementBlock("div",jm,[e.withDirectives(e.createElementVNode("i",Gm,null,512),[[Z,i.alfrescoFileService().tooltipLockContent(p)]])])):p.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(A=>l.$emit("open-members",p),["stop"])},[...t[1]||(t[1]=[e.createElementVNode("i",{class:"ri-shield-user-line text-orange-500","aria-hidden":"true"},null,-1)])],8,Tm)),[[Z,l.$t("restrictedPermissions")]]):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createBlock(c,{to:i.collaboraService.getRoute(p),class:e.normalizeClass(["text-sm font-medium overflow-hidden text-overflow-ellipsis flex align-items-center white-space-nowrap p-2 noColorElement",[i.isCurrentNodeDisplayed(p)?"underline":"",p.isLocked||p.permissions?.isInheritanceEnabled===!1?"w-10rem":"w-12rem"]])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.name),1)]),_:2},1032,["to","class"])),[[Z,p.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",disabled:a.selectedNodes.length>1,rounded:"",text:"",onClick:A=>i.toggleFileActionMenu(A,p)},null,8,["aria-label","disabled","onClick"]),[[Z,l.$t("moreActions"),void 0,{top:!0}]])]),(e.openBlock(),e.createElementBlock("div",{key:p.id,class:"flex justify-content-center cursor-pointer","data-tour":"thumbnail",onClick:A=>i.nodeClicked(p)},[e.createElementVNode("div",null,[i.displaySvg(p)?(e.openBlock(),e.createBlock(m,{key:0,onClick:A=>i.openPreviewPanel(p)},{image:e.withCtx(()=>[e.createElementVNode("img",{src:i.alfrescoFileService().getContentUrl(p.id),alt:p.name,class:"max-h-12rem max-w-12rem"},null,8,fm)]),_:2},1032,["onClick"])):i.displayThumb(p)?(e.openBlock(),e.createBlock(m,{key:1,onClick:A=>i.openPreviewPanel(p)},{image:e.withCtx(()=>[e.createElementVNode("img",{src:i.alfrescoFileService().getPreviewUrl(p.id),alt:p.name,class:"max-h-12rem max-w-12rem",onError:A=>i.onImageLoadFailure(A,p)},null,40,Im)]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(h,{class:"h-13rem w-13rem m-auto cursor-pointer",hidden:"","svg-file-name":i.loadIcon(p),onClick:A=>i.clickIcon(p)},null,8,["svg-file-name","onClick"]),[[Z,i.loadIconLabel(p)]]),!i.displayThumb(p)&&!i.displaySvg(p)?e.withDirectives((e.openBlock(),e.createBlock(h,{key:2,class:"h-13rem w-13rem m-auto cursor-pointer","svg-file-name":i.loadIcon(p),onClick:A=>i.clickIcon(p)},null,8,["svg-file-name","onClick"])),[[Z,i.loadIconLabel(p)]]):e.createCommentVNode("",!0)])],8,wm))]),e.createElementVNode("div",vm,[e.createElementVNode("div",Lm,e.toDisplayString(l.$t("column.modifiedAt"))+" "+e.toDisplayString(i.toLocaleDateString(p.modifiedAt)),1),e.createVNode(c,{to:i.collaboraService.getRoute(p)},{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"]),[[Z,l.$t("open"),void 0,{top:!0}]])]),_:1},8,["to"])])])]))),128))],8,Am)}const ro=J(Nm,[["render",Dm]]);class Rm{constructor(){this.lruGroupMemberships=new at({maxSize:20,maxAge:3e4}),this.lruPeople=new at({maxSize:50,maxAge:300*1e3})}getUser(t){const a=`user_${t}`;if(this.lruPeople.has(a))return Promise.resolve(this.lruPeople.get(a));const s={include:["properties","aspectNames","capabilities"]};return ol.getPerson(t,s).then(o=>(this.lruPeople.set(a,o.entry),o.entry)).catch(o=>{throw B("getUser",o)})}getUserWithOpts(t,a){const s=`user_with_opts_${t}_${JSON.stringify(a)}`;return this.lruPeople.has(s)?Promise.resolve(this.lruPeople.get(s)):ol.getPerson(t,a).then(o=>(this.lruPeople.set(s,o),o)).catch(o=>{throw B("getUser",o)})}updateUser(t,a){return ol.updatePerson(t,a).then(s=>{const o=`user_${t}`;this.lruPeople.delete(o);for(const i of this.lruPeople.keys())i.startsWith(`user_with_opts_${t}_`)&&this.lruPeople.delete(i);return s.entry}).catch(s=>{throw B("updateUser",s)})}listGroups(t,a=!1){const s=`groups_${t}`;if(!a&&this.lruGroupMemberships.has(s))return Promise.resolve(this.lruGroupMemberships.get(s));const o={};return Yl.listGroupMembershipsForPerson(t,o).then(i=>(this.lruGroupMemberships.set(s,i.list.entries),i.list.entries)).catch(i=>{throw B("listGroups",i)})}listUsers(t=!1){const a="users";if(!t&&this.lruPeople.has(a))return Promise.resolve(this.lruPeople.get(a));const s={include:["properties","aspectNames","capabilities"]};return ol.listPeople(s).then(o=>{const i=o.list.entries.map(n=>n.entry);return this.lruPeople.set(a,i),i}).catch(o=>{throw B("getAllUsers",o)})}listUsersWithOpts(t,a=!1){const s=`users_with_opts_${JSON.stringify(t)}`;return!a&&this.lruPeople.has(s)?Promise.resolve(this.lruPeople.get(s)):ol.listPeople(t).then(o=>(this.lruPeople.set(s,o),o)).catch(o=>{throw B("getAllUsers",o)})}capitalizeFirstLetter(t){return t.charAt(0).toUpperCase()+t.slice(1)}searchUser(t,a,s={}){const o=t.toUpperCase(),i=t.toLowerCase(),n=this.capitalizeFirstLetter(t),c=(Y,A,X="suffix")=>A.map(z=>{const y=X==="surround"?`*${z}*`:`${z}*`;return`${Y}:"${y}"`}).join(" OR "),r=[o,i,n],p={query:{language:"afts",query:`${`(TYPE:"cm:person" AND (${["cm:userName","cm:firstName","cm:lastName","cm:email"].map(Y=>c(Y,r,"suffix")).join(" OR ")}))`}`},localization:{locales:["en_US"]},include:["aspectNames","properties"],paging:{maxItems:s.maxItems||1e3,skipCount:s.skipCount||0},sort:a};return ht.search(p)}getUserGroups(t,a=!1){const s={fields:["id"]};return!a&&!this.lruGroupMemberships.has(t)?Yl.listGroupMembershipsForPerson(t,s).then(o=>{const i=Object.values(o.list.entries).map(n=>n.entry.id);return this.lruGroupMemberships.set(t,i),i}):Promise.resolve(this.lruGroupMemberships.get(t))}}const mo=new Rm,km={name:"CreateWorkflowPopup",components:{PrimeDialog:Je,PrimeButton:L,PrimeDataTable:Dl,PrimeColumn:Rl,PrimeDropdown:At,PrimeSteps:Yr,PrimeAvatar:va,PrimeInputText:we,PrimeIconField:Nr,PrimeCalendar:La,PrimeTextArea:hl,PrimeInputIcon:Ar,PrimeCheckbox:St,PrimeMessage:it},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 Be().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 Me().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,Oe.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,mo.searchUser(l).then(t=>{let s=(t.list.entries||[]).map(o=>{const i=o.entry.properties;return{id:i["cm:userName"],displayName:`${i["cm:firstName"]||""} ${i["cm:lastName"]||""}`.trim(),email:i["cm:email"]||""}}).filter(o=>!["publication","pastell"].some(i=>o.id.includes(i)));if(this.workspaceMembersOnly&&this.workspaceId)return Oe.getWorkspaceMemberships(this.workspaceId).then(o=>{const i=new Set(o.map(n=>n.id));this.usersList=s.filter(n=>i.has(n.id))});this.usersList=s}).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 s=Me().files.map(o=>({id:o.id}));ra.addProcessItems(a,s).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})})}}},Cm={key:0,class:"mb-3"},Fm={class:"font-bold"},Vm={class:"mt-2 pl-4"},xm={class:"flex flex-column h-12rem"},Sm={class:"flex flex-column gap-3"},Jm={class:"field flex flex-column gap-2"},Um={for:"dueDate",class:"font-bold"},Hm={class:"flex pt-4 justify-content-end"},Qm={"data-testid":"create-workflow-popup-step2"},Bm={class:"flex flex-column"},Em={class:"flex flex-column gap-3"},Pm={class:"field flex flex-column gap-2"},_m={for:"dueDate",class:"font-bold"},Km={key:0,class:"card selection-card"},$m={class:"flex flex-column"},qm={class:"flex flex-column gap-3"},eb={class:"flex justify-content-between align-items-center"},tb={key:0,class:"flex align-items-center"},lb={for:"workspace-members-only",class:"ml-2"},ab={class:"flex pt-4 justify-content-between"},ob={"data-testid":"create-workflow-popup-step3"},sb={class:"flex flex-column h-12rem"},ib={class:"flex flex-column gap-3"},nb={class:"field flex flex-column gap-2"},cb={for:"dueDate",class:"font-bold"},rb={class:"flex flex-column gap-2"},db={for:"priority",class:"font-bold"},mb={class:"flex pt-4 justify-content-between"},bb={"data-testid":"create-workflow-popup-step4"},pb={class:"flex flex-column h-12rem"},ub={for:"priority",class:"font-bold"},Zb={class:"flex pt-4 justify-content-between"};function hb(l,t,a,s,o,i){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeSteps"),r=e.resolveComponent("PrimeDropdown"),m=e.resolveComponent("PrimeCheckbox"),h=e.resolveComponent("PrimeInputIcon"),Z=e.resolveComponent("PrimeInputText"),p=e.resolveComponent("PrimeIconField"),Y=e.resolveComponent("PrimeAvatar"),A=e.resolveComponent("PrimeColumn"),X=e.resolveComponent("PrimeDataTable"),z=e.resolveComponent("PrimeCalendar"),y=e.resolveComponent("PrimeTextArea"),I=e.resolveComponent("PrimeMessage"),j=e.resolveComponent("PrimeDialog");return e.openBlock(),e.createBlock(j,{"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(v=>i.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]=v=>i.closePopup(!1))},null,8,["aria-label"])]),default:e.withCtx(()=>[e.createVNode(c,{"data-testid":"create-workflow-popup-stepper",model:i.stepItems,"active-step":o.activeStep,class:"mb-4"},null,8,["model","active-step"]),i.selectedFiles.length>1?(e.openBlock(),e.createElementBlock("div",Cm,[e.createElementVNode("label",Fm,e.toDisplayString(l.$t("workflow.selectedDocuments")),1),e.createElementVNode("ul",Vm,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.selectedFiles,v=>(e.openBlock(),e.createElementBlock("li",{key:v.id},e.toDisplayString(v.name),1))),128))])])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",null,[e.createElementVNode("div",xm,[e.createElementVNode("div",Sm,[e.createElementVNode("div",Jm,[e.createElementVNode("label",Um,[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]=v=>o.selectedWorkflowType=v),options:o.workflowOptions,"option-label":"label",placeholder:l.$t("workflow.workflowType")},null,8,["modelValue","options","placeholder"])])])]),e.createElementVNode("div",Hm,[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:i.nextStep},null,8,["label","onClick"])])],512),[[e.vShow,o.activeStep===0]]),e.withDirectives(e.createElementVNode("div",Qm,[e.createElementVNode("div",Bm,[e.createElementVNode("div",Em,[e.createElementVNode("div",Pm,[e.createElementVNode("label",_m,[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",Km," Sélection de l'utilisateur "+e.toDisplayString(o.assignee.displayName||o.assignee.id),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",$m,[e.createElementVNode("div",qm,[e.createVNode(X,{"data-testid":"create-workflow-popup-users-table",id:"users",selection:o.assignee,"onUpdate:selection":t[4]||(t[4]=v=>o.assignee=v),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",eb,[i.workspaceId?(e.openBlock(),e.createElementBlock("div",tb,[e.createVNode(m,{modelValue:o.workspaceMembersOnly,"onUpdate:modelValue":t[2]||(t[2]=v=>o.workspaceMembersOnly=v),"input-id":"workspace-members-only","data-testid":"create-workflow-popup-workspace-members-only",binary:"",onChange:i.onSearchInput},null,8,["modelValue","onChange"]),e.createElementVNode("label",lb,e.toDisplayString(l.$t("workflow.workspaceMembersOnly")),1)])):e.createCommentVNode("",!0),e.createVNode(p,{"icon-position":"left"},{default:e.withCtx(()=>[e.createVNode(h,{class:"ri-search-line"}),e.createVNode(Z,{"data-testid":"create-workflow-popup-users-search-input",modelValue:o.searchInput,"onUpdate:modelValue":t[3]||(t[3]=v=>o.searchInput=v),placeholder:l.$t("search"),onInput:i.onSearchInput},null,8,["modelValue","placeholder","onInput"])]),_:1})])]),default:e.withCtx(()=>[e.createVNode(A,{field:"avatar"},{body:e.withCtx(v=>[e.createVNode(Y,{label:v.data.displayName.charAt(0),size:"large",class:"avatar-blue",shape:"circle"},null,8,["label"])]),_:1}),e.createVNode(A,{field:"name",header:l.$t("column.name"),sortable:""},{body:e.withCtx(v=>[e.createElementVNode("span",null,e.toDisplayString(v.data.displayName),1)]),_:1},8,["header"]),e.createVNode(A,{field:"id",header:l.$t("column.id"),sortable:""},{body:e.withCtx(v=>[e.createElementVNode("span",null,e.toDisplayString(v.data.id),1)]),_:1},8,["header"]),e.createVNode(A,{field:"email",header:l.$t("column.email"),sortable:""},{body:e.withCtx(v=>[e.createElementVNode("span",null,e.toDisplayString(v.data.email),1)]),_:1},8,["header"])]),_:1},8,["selection","value","loading"])])])]),e.createElementVNode("div",ab,[e.createVNode(n,{"data-testid":"create-workflow-popup-step2-back-button",label:l.$t("workflow.back"),severity:"secondary",icon:"pi pi-arrow-left",onClick:i.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:i.nextStep},null,8,["label","onClick"])])],512),[[e.vShow,o.activeStep===1]]),e.withDirectives(e.createElementVNode("div",ob,[e.createElementVNode("div",sb,[e.createElementVNode("div",ib,[e.createElementVNode("div",nb,[e.createElementVNode("label",cb,e.toDisplayString(l.$t("workflow.dueDate")),1),e.createVNode(z,{"data-testid":"create-workflow-popup-duedate-calendar",id:"dueDate",modelValue:o.dueDate,"onUpdate:modelValue":t[5]||(t[5]=v=>o.dueDate=v),"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",rb,[e.createElementVNode("label",db,[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]=v=>o.selectedPriority=v),options:o.priorityOptions,"option-label":"label",placeholder:l.$t("workflow.choosePriority"),class:"w-full"},null,8,["modelValue","options","placeholder"])])])]),e.createElementVNode("div",mb,[e.createVNode(n,{"data-testid":"create-workflow-popup-step3-back-button",label:l.$t("workflow.back"),severity:"secondary",icon:"pi pi-arrow-left",onClick:i.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:i.nextStep},null,8,["label","onClick"])])],512),[[e.vShow,o.activeStep===2]]),e.withDirectives(e.createElementVNode("div",bb,[e.createElementVNode("div",pb,[e.createElementVNode("label",ub,[e.createTextVNode(e.toDisplayString(l.$t("workflow.taskName"))+" ",1),t[13]||(t[13]=e.createElementVNode("span",{class:"required"},"*",-1))]),e.createVNode(y,{"data-testid":"create-workflow-popup-message-textarea",modelValue:o.message,"onUpdate:modelValue":t[7]||(t[7]=v=>o.message=v)},null,8,["modelValue"])]),e.createElementVNode("div",null,[o.startWorkflowError?(e.openBlock(),e.createBlock(I,{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",Zb,[e.createVNode(n,{"data-testid":"create-workflow-popup-step4-back-button",label:l.$t("workflow.back"),severity:"secondary",icon:"pi pi-arrow-left",onClick:i.prevStep},null,8,["label","onClick"]),e.createVNode(n,{"data-testid":"create-workflow-popup-submit-button",disabled:i.isStartWorkflowButtonDisable,label:l.$t("workflow.startTheWorkflow"),severity:"primary",onClick:t[8]||(t[8]=v=>i.startWorkflow())},null,8,["disabled","label"])])],512),[[e.vShow,o.activeStep===3]])]),_:1},8,["header"])}const bo=J(km,[["render",hb],["__scopeId","data-v-b2be9982"]]),yb={name:"ImportNewVersionPopup",components:{PrimeButton:L,PrimeTextarea:hl,PrimeDialog:Je,PrimeFileUpload:aa,PrimeRadioButton:Xr},directives:{tooltip:ut},emits:["close","message"],data(){return{canUpload:!0,version:null,comment:null}},mounted(){this.node=Me().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(S.updateContentNode(this.node.id,a,this.version==="MAJEURE",this.comment))}),Promise.allSettled(t).then(a=>{const s=[],o=[],i=[];a.forEach(n=>{n.status==="fulfilled"?(s.push(n.value),o.push(n.value.entry?.name)):i.push(n.reason)}),o.length>0&&this.$emit("message",{severity:"success",content:this.$t("uploadFinish")}),i.length>0&&this.$emit("message",Ut.getUploadErrors(i)),this.closePopup(s.length>0)}).catch(a=>{this.$toast.add({severity:"error",summary:this.$t("uploadUnknownError"),detail:a,life:5e3})})}}},Wb={for:"name",class:"col-12"},gb={class:"field mt-3"},Yb={class:"field grid"},Nb={for:"name",class:"col-12 mb-2"},Ab={class:"col-12 md:col-10 w-full"},Xb={class:"field grid"},zb={class:"grid radio-display"},Mb={class:"col-12 md:col-6"},Ob={class:"field-radiobutton mb-0"},jb={for:"majeure"},Gb={class:"col-12 md:col-6"},Tb={class:"field-radiobutton mb-0"},wb={for:"mineure"};function fb(l,t,a,s,o,i){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeFileUpload"),r=e.resolveComponent("PrimeTextarea"),m=e.resolveComponent("PrimeRadioButton"),h=e.resolveComponent("PrimeDialog"),Z=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(p=>i.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]=p=>i.closePopup(!1))},null,8,["aria-label"])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("label",Wb,e.toDisplayString(l.$t("uploadFile",{file:l.node.name})),1),e.createElementVNode("div",gb,[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:i.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",Yb,[e.createElementVNode("label",Nb,e.toDisplayString(l.$t("addComment")),1),e.createElementVNode("div",Ab,[e.createVNode(r,{"data-testid":"import-new-version-popup-comment-textarea",id:"comment",modelValue:o.comment,"onUpdate:modelValue":t[1]||(t[1]=p=>o.comment=p),"auto-resize":"",rows:5},null,8,["modelValue"])])]),e.createElementVNode("div",Xb,[e.createElementVNode("div",zb,[e.createElementVNode("div",Mb,[e.createElementVNode("div",Ob,[e.createVNode(m,{"data-testid":"import-new-version-popup-major-radio",id:"majeure",modelValue:o.version,"onUpdate:modelValue":t[2]||(t[2]=p=>o.version=p),name:"majeure",value:"MAJEURE"},null,8,["modelValue"]),e.withDirectives((e.openBlock(),e.createElementBlock("label",jb,[e.createTextVNode(e.toDisplayString(l.$t("major")),1)])),[[Z,""]])])]),e.createElementVNode("div",Gb,[e.createElementVNode("div",Tb,[e.createVNode(m,{"data-testid":"import-new-version-popup-minor-radio",id:"mineure",modelValue:o.version,"onUpdate:modelValue":t[3]||(t[3]=p=>o.version=p),name:"mineure",value:"MINEURE"},null,8,["modelValue"]),e.withDirectives((e.openBlock(),e.createElementBlock("label",wb,[e.createTextVNode(e.toDisplayString(l.$t("minor")),1)])),[[Z,""]])])])])])]),_:1},8,["header"])}const po=J(yb,[["render",fb]]),Ib={name:"MemberList",components:{PrimeButton:L,PrimeDataTable:Dl,PrimeColumn:Rl,PrimeAvatar:va,PrimeDropdown:At,PrimeAutoComplete:n2},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(re,["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?Oe.addWorkspaceGroup(this.workspace.id,this.selectedMemberToAdd.id,l):Oe.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(s=>{this.$toast.add({severity:"error",summary:this.$t("error"),detail:s.message,life:3e3})})}},toggleChangeMemberRole(l){let t=this.workspace.id,a=this.getAlfrescoRole(this.selectedRole[l.id].name);(l.group?Oe.updateWorkspaceGroupRole(t,l.id,a):Oe.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?Oe.deleteWorkspaceGroup(t,l.id):Oe.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(s=>{this.$toast.add({severity:"error",summary:this.$t("error"),detail:s.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([Oe.searchUsers(t),Oe.searchGroups(t)]).then(([a,s])=>{this.filteredMembers=[...a,...s]})},restrictPermissions(){this.heredityValue=!1,this.changeHeredity()},restorePermissions(){this.heredityValue=!0,this.changeHeredity()},changeHeredity(){const l={permissions:{locallySet:[],isInheritanceEnabled:this.heredityValue}};S.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 s={permissions:{locallySet:Object.values(a.locallySet).map(o=>({authorityId:o.authorityId,name:o.name,accessStatus:o.accessStatus}))}};S.updateNode(this.folderNode.id,s).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 s={permissions:{locallySet:t}};S.updateNode(this.folderNode.id,s).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 s=0;s<t.length;s++){const o=t[s];if(o.authorityId===l.authorityId){o.name=this.getAlfrescoRole(this.selectedRole[l.name].name);break}}let a={permissions:{locallySet:t}};S.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(s=>{this.$toast.add({severity:"error",summary:this.$t("error"),detail:s.message,life:3e3})})}}},vb={class:"card"},Lb={class:"grid"},Db={key:0,class:"col-12 workspace-members-head p-3 justify-content-between lg:justify-content-center align-items-center"},Rb={class:""},kb={class:"line-height-3"},Cb={class:"text-role font-medium"},Fb={key:1,class:"col-12 p-3 justify-content-between align-items-center flex"},Vb={class:"ml-4 align-items-start"},xb={class:"align-content-center"},Sb={class:"col-12"},Jb={key:0,class:"ri-group-line members"},Ub=["aria-label","title","onClick"],Hb={class:"member-details mt-1"},Qb={key:1},Bb={key:1,class:"ri-group-line members"},Eb={key:0,class:"description"},Pb={key:1},_b={class:"grid my-2"},Kb={class:"col-fixed mr-2 mb-2"},$b={class:"p-input-icon-left p-input-icon-right"},qb={class:"member-item"},ep={key:0,class:"ri-group-line"},tp={key:1,class:"ri-user-line"},lp={class:"ml-2"},ap={class:"col-fixed mr-2 mb-2"},op={class:"col mr-2 mb-2"};function sp(l,t,a,s,o,i){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeAvatar"),r=e.resolveComponent("PrimeColumn"),m=e.resolveComponent("PrimeDropdown"),h=e.resolveComponent("PrimeDataTable"),Z=e.resolveComponent("PrimeAutoComplete");return e.openBlock(),e.createElementBlock("div",vb,[e.createElementVNode("div",Lb,[a.isSite?(e.openBlock(),e.createElementBlock("div",Db,[e.createElementVNode("div",Rb,[e.createElementVNode("h3",null,[e.createElementVNode("span",kb,[e.createTextVNode(e.toDisplayString(l.$t("members.youAre"))+" ",1),e.createElementVNode("span",Cb,e.toDisplayString(a.role),1),e.createTextVNode(" "+e.toDisplayString(l.$t("members.ofThisWorkspace"))+".",1)])])])])):(e.openBlock(),e.createElementBlock("div",Fb,[e.createElementVNode("div",Vb,e.toDisplayString(l.$t("members.nbAccess",{nbAccess:a.nbMembers})),1),e.createElementVNode("div",xb,[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]=p=>i.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]=p=>i.restorePermissions())},null,8,["label","disabled"]))])])),e.createElementVNode("div",Sb,[a.isSite?(e.openBlock(),e.createBlock(h,{key:0,id:"membres",value:i.sortableMembers,"row-hover":"","data-key":"id","responsive-layout":"scroll","removable-sort":""},{default:e.withCtx(()=>[e.createVNode(r,{field:"avatar"},{body:e.withCtx(p=>[e.createVNode(c,{label:p.data.person?p.data.person.displayName.charAt(0):p.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(p=>[p.data.isGroup?(e.openBlock(),e.createElementBlock("i",Jb)):e.createCommentVNode("",!0)]),_:1},8,["header"]),e.createVNode(r,{field:"person",header:l.$t("members.members"),sortable:"","sort-field":"displayName"},{body:e.withCtx(p=>[p.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=>i.openUserProfile(p.data.id)},[...t[6]||(t[6]=[e.createElementVNode("i",{class:"ri-user-line","aria-hidden":"true"},null,-1)])],8,Ub),e.createElementVNode("span",null,e.toDisplayString(p.data.person.displayName),1)]),e.createElementVNode("div",Hb,e.toDisplayString(p.data.id)+" - "+e.toDisplayString(p.data.person.email),1)],64)):(e.openBlock(),e.createElementBlock("span",Qb,e.toDisplayString(p.data.group.displayName),1))]),_:1},8,["header"]),e.createVNode(r,{field:"role",header:l.$t("members.role")},{body:e.withCtx(p=>[e.createVNode(m,{modelValue:o.selectedRole[p.data.id],"onUpdate:modelValue":Y=>o.selectedRole[p.data.id]=Y,options:o.rolesValues,"option-label":"name",placeholder:l.$t(`role.${p.data.role}`),value:p.data.role,disabled:!a.permissions,onChange:Y=>i.toggleChangeMemberRole(p.data)},null,8,["modelValue","onUpdate:modelValue","options","placeholder","value","disabled","onChange"])]),_:1},8,["header"]),e.createVNode(r,{field:"buttons"},{body:e.withCtx(p=>[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=>i.toggleDeleteMember(p.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(p=>[p.data.authorityId.startsWith("GROUP")?(e.openBlock(),e.createElementBlock("i",Bb)):(e.openBlock(),e.createBlock(c,{key:0,label:p.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(p=>[e.createElementVNode("span",null,e.toDisplayString(p.data.authorityId),1),p.data.groupId?(e.openBlock(),e.createElementBlock("p",Eb,e.toDisplayString(l.$t("members.fromGroup",{group:p.data.groupId})),1)):e.createCommentVNode("",!0)]),_:1},8,["header"]),e.createVNode(r,{field:"role",header:l.$t("members.role")},{body:e.withCtx(p=>[p.data.groupId?(e.openBlock(),e.createElementBlock("div",Pb,e.toDisplayString(l.$t(`role.${p.data.name}`)),1)):(e.openBlock(),e.createBlock(m,{key:0,modelValue:o.selectedRole[p.data.name],"onUpdate:modelValue":Y=>o.selectedRole[p.data.name]=Y,options:o.rolesValues,"option-label":"name",placeholder:l.$t(`role.${p.data.name}`),value:p.data.name,disabled:!a.permissions,onChange:Y=>i.changePermission(p.data)},null,8,["modelValue","onUpdate:modelValue","options","placeholder","value","disabled","onChange"]))]),_:1},8,["header"]),e.createVNode(r,{field:"buttons"},{body:e.withCtx(p=>[p.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=>i.deletePermission(p.data)},null,8,["aria-label","disabled","onClick"]))]),_:1})]),_:1},8,["value"])),e.createElementVNode("div",_b,[e.createElementVNode("div",Kb,[e.createElementVNode("span",$b,[e.createVNode(Z,{modelValue:o.selectedMemberToAdd,"onUpdate:modelValue":t[2]||(t[2]=p=>o.selectedMemberToAdd=p),"force-selection":"","option-label":"label",suggestions:o.filteredMembers,placeholder:l.$t("members.search"),disabled:!a.permissions,onComplete:t[3]||(t[3]=p=>i.searchUser(p))},{item:e.withCtx(p=>[e.createElementVNode("div",qb,[p.item.group?(e.openBlock(),e.createElementBlock("i",ep)):(e.openBlock(),e.createElementBlock("i",tp)),e.createElementVNode("div",lp,e.toDisplayString(p.item.label),1)])]),_:1},8,["modelValue","suggestions","placeholder","disabled"])])]),e.createElementVNode("div",ap,[e.createVNode(m,{modelValue:o.addSelectedRole,"onUpdate:modelValue":t[4]||(t[4]=p=>o.addSelectedRole=p),options:o.rolesValues,"option-label":"name",placeholder:l.$t("members.select"),disabled:!a.permissions},null,8,["modelValue","options","placeholder","disabled"])]),e.createElementVNode("div",op,[a.isSite?(e.openBlock(),e.createBlock(n,{key:0,type:"button",icon:"ri-add-line",label:l.$t("members.add"),disabled:!a.permissions,onClick:i.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]=p=>i.addPermissions())},null,8,["label","disabled"]))])])])])])}const uo=J(Ib,[["render",sp],["__scopeId","data-v-9c182ada"]]),ip={name:"MemberListPopup",components:{MemberList:uo,PrimeDialog:Je,PrimeButton:L},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;Oe.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 S.getNode(this.selectedNode.id).then(l=>{this.node=l,this.nodeName=l.name,this.loadPermissions()})},methods:{onGoToSiteMemberPage(){const l=Be();this.$emit("goToSiteMemberPage",l.workspace?.id),this.closePopup(!1)},closePopup(l){this.$emit("close",l)},loadMembers(l){let t={maxItems:1e3},a=Oe.getWorkspaceMembershipsWithOpts(l,t).then(o=>o.list.entries.map(i=>({...i.entry,isGroup:!1}))),s=Oe.getWorkspaceGroupsWithOpts(l,t).then(o=>o.map(i=>({...i,isGroup:!0})));Promise.all([a,s]).then(o=>this.members=[...o[0],...o[1]])},updateInheritedGroup(l){const a=`GROUP_site_${Be().workspace?.id}_SiteContributor`;return(l.permissions?.inherited||[]).filter(s=>s.authorityId!==a)},fetchGroupMemberships(){const l=["GROUP_EVERYONE"];this.membersWithGroups.filter(a=>a.authorityId.startsWith("GROUP")&&!l.includes(a.authorityId)).forEach(a=>{Yl.listGroupMemberships(a.authorityId).then(s=>{s.list.entries.forEach(i=>{let n=i.entry;n.groupId=a.authorityId,n.authorityId=n.id,n.name=a.name,this.membersWithGroups.push(n)})})})},loadPermissions(){S.getNode(this.selectedNode.id).then(l=>{this.enablePermissions=Be().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()})}}},np={class:"flex justify-content-end mb-3"};function cp(l,t,a,s,o,i){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("MemberList"),r=e.resolveComponent("PrimeDialog");return i.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=>i.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=>i.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=>i.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=>i.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=>i.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=>i.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=>i.closePopup(!0))},null,8,["label"])]),default:e.withCtx(()=>[e.createElementVNode("div",np,[e.createVNode(n,{"data-testid":"member-list-popup-folder-goto-site-button",label:l.$t("membersPopup.goToSiteMemberPage"),onClick:i.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":i.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=>i.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 Zo=J(ip,[["render",cp]]),rp={name:"SendMailPopup",components:{PrimeDialog:Je,PrimeButton:L,PrimeChips:Mr,PrimeTextarea:hl,PrimeCheckbox:St,PrimeInputText:we},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=>{Ja.validate(t)||(l=this.$t("sendingMail.errors.errorValidEmail"))}),l},checkValidCC(){let l=null;return this.cc.length>0&&this.cc.forEach(t=>{Ja.validate(t)||(l=this.$t("sendingMail.errors.errorValidEmail"))}),l},checkValidCCI(){let l=null;return this.cci.length>0&&this.cci.forEach(t=>{Ja.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=Me().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=re();l?this.link=`${t.PREVIEW_URL}${l}`:S.createSharedLink(this.node).then(a=>{this.link=`${t.PREVIEW_URL}${a.entry.id}`,this.buildDefaultMessage(),ze.createRendition(this.node.id,"pdf")}).catch(a=>{console.error("Failed to create shared link",a),this.link=null}),this.buildDefaultMessage()},methods:{buildDefaultMessage(){const l=Ae(),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 Al.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})})}}},dp={class:"p-fluid"},mp={class:"field grid"},bp={for:"name",class:"col-12 mb-2"},pp={class:"col-12"},up={class:"p-error"},Zp={class:"send-mail-toggle-links"},hp={key:0,class:"field grid"},yp={for:"name",class:"col-12 mb-2"},Wp={class:"col-12"},gp={class:"p-error"},Yp={key:1,class:"field grid"},Np={for:"name",class:"col-12 mb-2"},Ap={class:"col-12"},Xp={class:"p-error"},zp={class:"field grid"},Mp={for:"name",class:"col-12 mb-2"},Op={class:"col-12"},jp={class:"p-error"},Gp={class:"field grid"},Tp={for:"name",class:"col-12 mb-2"},wp={class:"col-12"},fp={class:"p-error"},Ip={class:"field grid"},vp={for:"name",class:"col-12 mb-2"},Lp={class:"col-12 copy-link"},Dp={class:"field grid"},Rp={class:"col-12"};function kp(l,t,a,s,o,i){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeChips"),r=e.resolveComponent("PrimeInputText"),m=e.resolveComponent("PrimeTextarea"),h=e.resolveComponent("PrimeCheckbox"),Z=e.resolveComponent("PrimeDialog");return e.openBlock(),e.createBlock(Z,{"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(p=>i.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]=p=>i.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:i.closePopup},null,8,["label","onClick"]),e.createVNode(n,{"data-testid":"send-mail-popup-submit-button",label:l.$t("send"),disabled:!i.checkAllForm,onClick:i.sendMail},null,8,["label","disabled","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("div",dp,[e.createElementVNode("div",mp,[e.createElementVNode("label",bp,[e.createTextVNode(e.toDisplayString(l.$t("field.to"))+" ",1),t[11]||(t[11]=e.createElementVNode("span",{class:"required"},"*",-1))]),e.createElementVNode("div",pp,[e.createVNode(c,{"data-testid":"send-mail-popup-to-chips",modelValue:o.to,"onUpdate:modelValue":t[1]||(t[1]=p=>o.to=p),separator:" ",class:e.normalizeClass({"p-invalid":i.checkValidTo}),"add-on-blur":""},null,8,["modelValue","class"]),e.createElementVNode("small",up,e.toDisplayString(i.checkValidTo),1)])]),e.createElementVNode("div",Zp,[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]=p=>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]=p=>o.showCci=!0)},e.toDisplayString(l.$t("sendingMail.addCci")),1))]),o.showCc?(e.openBlock(),e.createElementBlock("div",hp,[e.createElementVNode("label",yp,e.toDisplayString(l.$t("field.cc")),1),e.createElementVNode("div",Wp,[e.createVNode(c,{"data-testid":"send-mail-popup-cc-chips",modelValue:o.cc,"onUpdate:modelValue":t[4]||(t[4]=p=>o.cc=p),separator:" ",class:e.normalizeClass({"p-invalid":i.checkValidCC}),"add-on-blur":""},null,8,["modelValue","class"]),e.createElementVNode("small",gp,e.toDisplayString(i.checkValidCC),1)])])):e.createCommentVNode("",!0),o.showCci?(e.openBlock(),e.createElementBlock("div",Yp,[e.createElementVNode("label",Np,e.toDisplayString(l.$t("field.cci")),1),e.createElementVNode("div",Ap,[e.createVNode(c,{"data-testid":"send-mail-popup-cci-chips",modelValue:o.cci,"onUpdate:modelValue":t[5]||(t[5]=p=>o.cci=p),separator:" ",class:e.normalizeClass({"p-invalid":i.checkValidCCI}),"add-on-blur":""},null,8,["modelValue","class"]),e.createElementVNode("small",Xp,e.toDisplayString(i.checkValidCCI),1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",zp,[e.createElementVNode("label",Mp,[e.createTextVNode(e.toDisplayString(l.$t("field.subject"))+" ",1),t[12]||(t[12]=e.createElementVNode("span",{class:"required"},"*",-1))]),e.createElementVNode("div",Op,[e.createVNode(r,{"data-testid":"send-mail-popup-subject-input",modelValue:o.subject,"onUpdate:modelValue":t[6]||(t[6]=p=>o.subject=p),type:"text",class:e.normalizeClass({"p-invalid":i.checkSubject}),onKeyup:e.withKeys(i.sendMail,["enter"])},null,8,["modelValue","class","onKeyup"]),e.createElementVNode("small",jp,e.toDisplayString(i.checkSubject),1)])]),e.createElementVNode("div",Gp,[e.createElementVNode("label",Tp,[e.createTextVNode(e.toDisplayString(l.$t("field.message"))+" ",1),t[13]||(t[13]=e.createElementVNode("span",{class:"required"},"*",-1))]),e.createElementVNode("div",wp,[e.createVNode(m,{"data-testid":"send-mail-popup-message-textarea",modelValue:o.message,"onUpdate:modelValue":t[7]||(t[7]=p=>o.message=p),rows:8,class:e.normalizeClass({"p-invalid":i.checkMessage})},null,8,["modelValue","class"]),e.createElementVNode("small",fp,e.toDisplayString(i.checkMessage),1)])]),e.createElementVNode("div",Ip,[e.createElementVNode("label",vp,e.toDisplayString(l.$t("field.shareLink")),1),e.createElementVNode("div",Lp,[e.createVNode(r,{"data-testid":"send-mail-popup-link-input",modelValue:o.link,"onUpdate:modelValue":t[8]||(t[8]=p=>o.link=p),disabled:""},null,8,["modelValue"]),e.createVNode(n,{"data-testid":"send-mail-popup-copy-link-button",severity:"warning",onClick:i.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",Dp,[e.createElementVNode("div",Rp,[e.createVNode(h,{"data-testid":"send-mail-popup-attachment-checkbox",modelValue:o.attachment,"onUpdate:modelValue":t[9]||(t[9]=p=>o.attachment=p),class:"send-mail-attachment",name:"attachment",binary:""},null,8,["modelValue"]),e.createElementVNode("label",null,e.toDisplayString(l.$t("addAttachment")),1)])])])]),_:1},8,["header"])}const ho=J(rp,[["render",kp],["__scopeId","data-v-97b57737"]]),Cp={name:"ShareLinkPopup",components:{PrimeDialog:Je,PrimeButton:L,PrimeInputText:we,PrimeCheckbox:St,PrimeCalendar:La},directives:{tooltip:ut},emits:["close","reload"],data(){return{link:null,shareId:null,date:null,hasExpirationDate:!1,node:null}},watch:{shareId(l){if(l!==null){const t=re();this.link=`${t.PREVIEW_URL}${l}`}else this.link=null}},mounted(){this.node=Me().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}};S.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(){S.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(){S.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}),ze.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})})}}},Fp={class:"p-inputgroup"},Vp={key:0},xp={key:1},Sp={key:0},Jp={class:"field-checkbox"},Up={for:"expirationDate"},Hp={key:0,class:"p-inputgroup"};function Qp(l,t,a,s,o,i){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeInputText"),r=e.resolveComponent("PrimeCheckbox"),m=e.resolveComponent("PrimeCalendar"),h=e.resolveComponent("PrimeDialog"),Z=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(p=>i.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]=p=>i.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:i.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",Fp,[e.createVNode(c,{"data-testid":"share-link-popup-link-input",modelValue:o.link,"onUpdate:modelValue":t[1]||(t[1]=p=>o.link=p),placeholder:l.$t("sharelink.placeholder"),disabled:""},null,8,["modelValue","placeholder"]),o.shareId?(e.openBlock(),e.createElementBlock("div",xp,[e.createVNode(n,{"data-testid":"share-link-popup-copy-button",severity:"warning",onClick:i.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:i.deleteSharedLink},null,8,["aria-label","onClick"]),[[Z,l.$t("sharelink.deleteLinkTooltip")]])])):(e.openBlock(),e.createElementBlock("div",Vp,[e.createVNode(n,{"data-testid":"share-link-popup-create-button",severity:"success",onClick:i.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",Sp,[e.createElementVNode("div",Jp,[e.withDirectives(e.createVNode(r,{"data-testid":"share-link-popup-expiration-checkbox",modelValue:o.hasExpirationDate,"onUpdate:modelValue":t[2]||(t[2]=p=>o.hasExpirationDate=p),"input-id":"expirationDate",binary:"",onChange:i.dateChecked},null,8,["modelValue","onChange"]),[[Z,l.$t("sharelink.addExpirationDateLinkTooltip")]]),e.createElementVNode("label",Up,e.toDisplayString(l.$t("sharelink.expirationDate")),1)]),o.hasExpirationDate?(e.openBlock(),e.createElementBlock("div",Hp,[e.createVNode(m,{"data-testid":"share-link-popup-expiration-calendar",modelValue:o.date,"onUpdate:modelValue":t[3]||(t[3]=p=>o.date=p),"min-date":new Date,onDateSelect:i.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:i.deleteLinkDate},null,8,["aria-label","onClick"]),[[Z,l.$t("sharelink.deleteExpirationDateLinkTooltip")]])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["header"])}const yo=J(Cp,[["render",Qp]]),Bp={name:"DynamicContentView",components:{ActionMenu:Ul,ContentGridView:ro,ContentListView:co,ContentTableView:no,CopyOrMovePopup:eo,CreateWorkflowPopup:bo,ImportNewVersionPopup:po,MemberListPopup:Zo,PaginatorComponent:Pa,SendMailPopup:ho,ShareLinkPopup:yo,PrimeButton:L,PrimeDataView:a2,PrimeCheckbox:St},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:i2.FilterMatchMode.CONTAINS}},fileActionMenuItems:[],popup:null,memberListTargetNode:null,selectedNodes:[],modifyPopupTitle:"",isPageSelected:!1,actionType:null,showUserHome:!1}},created(){this.initFilters(),this.selectionStore=Me(),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--${Be().currentNode.id}`),a=JSON.parse(t),s=a.rows,o=a.first||0;if(o===0)this.selectedNodes=this.files.slice(0,s);else{const i=o%this.files.length;this.selectedNodes=this.files.slice(i,i+s)}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:i2.FilterMatchMode.CONTAINS}}},openInNewTab(l){let t;l.isFolder?t=this.$router.resolve(this.actionsService.getRouteForNavigationInNewTab(Be().workspace.id,l)):t=this.$router.resolve(this.actionsService.getRouteForOpenInNewTab(l)),window.open(t.href,"_blank_"+l.id)},deleteItem(l){S.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){ma.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)}}},Ep=["aria-label"],Pp={class:"flex justify-content-between flex-wrap"},_p=["aria-label"],Kp={class:"w-full border-1 border-100 overflow-hidden flex align-items-center"},$p={class:"mr-3","data-tour":"select-all-checkbox"},qp={class:"flex align-items-center w-full"},eu={class:"flex justify-content-between align-items-center w-9"},tu={class:"overflow-hidden white-space-nowrap text-overflow-ellipsis p-text-bold w-full"},lu={class:"flex justify-content-between flex-wrap"};function au(l,t,a,s,o,i){const n=e.resolveComponent("ActionMenu"),c=e.resolveComponent("ContentTableView"),r=e.resolveComponent("PrimeButton"),m=e.resolveComponent("PaginatorComponent"),h=e.resolveComponent("PrimeCheckbox"),Z=e.resolveComponent("ContentListView"),p=e.resolveComponent("ContentGridView"),Y=e.resolveComponent("PrimeDataView"),A=e.resolveComponent("CreateWorkflowPopup"),X=e.resolveComponent("CopyOrMovePopup"),z=e.resolveComponent("ImportNewVersionPopup"),y=e.resolveComponent("ShareLinkPopup"),I=e.resolveComponent("MemberListPopup"),j=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":i.updatePageSelectedNodes,"onUpdate:selectedNodes":i.updateSelectedNodes,onClickIcon:i.clickIcon,onOpenPreviewPanel:i.openPreviewPanel,onOpenSharelink:i.openShareLink,onToggleFavorite:i.toggleFavorite,onToggleFileActionMenu:i.setMenuActionAndOpenIt,onNavigateTo:i.navigateTo,onOpenMembers:i.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",Pp,[e.createVNode(r,{type:"button",icon:"ri-refresh-line","aria-label":l.$t("reload"),text:"",onClick:t[0]||(t[0]=v=>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:i.updateSkipCount,onChangeElementPerPage:i.reloadData},null,8,["displayed-elements","total-records","onChangePage","onChangeElementPerPage"])):e.createCommentVNode("",!0)])],8,Ep)):(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(v=>[e.createVNode(Z,{"slot-props":v,"selected-nodes":o.selectedNodes,"is-preview-panel-visible":a.isPreviewPanelVisible,"is-small-screen":a.isSmallScreen,"is-in-user-home":a.isInUserHome,"onUpdate:selectedNodes":i.updateSelectedNodes,onClickIcon:i.clickIcon,onOpenPreviewPanel:i.openPreviewPanel,onOpenSharelink:i.openShareLink,onToggleFavorite:i.toggleFavorite,onToggleFileActionMenu:i.setMenuActionAndOpenIt,onOpenInNewTab:i.openInNewTab,onNodeClicked:i.nodeClicked,onOpenMembers:i.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(v=>[e.createVNode(p,{"slot-props":v,"selected-nodes":o.selectedNodes,"is-preview-panel-visible":a.isPreviewPanelVisible,"is-small-screen":a.isSmallScreen,"is-in-user-home":a.isInUserHome,"onUpdate:selectedNodes":i.updateSelectedNodes,onClickIcon:i.clickIcon,onOpenPreviewPanel:i.openPreviewPanel,onOpenSharelink:i.openShareLink,onToggleFavorite:i.toggleFavorite,onToggleFileActionMenu:i.setMenuActionAndOpenIt,onOpenInNewTab:i.openInNewTab,onNodeClicked:i.nodeClicked,onOpenMembers:i.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",Kp,[e.createElementVNode("div",$p,[e.createVNode(h,{modelValue:o.isPageSelected,"onUpdate:modelValue":t[1]||(t[1]=v=>o.isPageSelected=v),binary:"",class:"flex align-items-center justify-content-center",name:"option","aria-label":l.$t("selectAll"),onChange:t[2]||(t[2]=v=>i.updatePageSelectedNodes(o.isPageSelected))},null,8,["modelValue","aria-label"])]),e.createElementVNode("div",qp,[e.createElementVNode("div",eu,[e.createElementVNode("div",tu,[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",lu,[e.createVNode(r,{type:"button",icon:"ri-refresh-line","aria-label":l.$t("reload"),text:"",onClick:t[3]||(t[3]=v=>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:i.updateSkipCount,onChangeElementPerPage:i.reloadData},null,8,["displayed-elements","total-records","onChangePage","onChangeElementPerPage"])):e.createCommentVNode("",!0),t[6]||(t[6]=e.createElementVNode("div",null,null,-1))])],8,_p)),o.popup==="WORKFLOW"?(e.openBlock(),e.createBlock(A,{key:2,onClose:i.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:i.closePopup},null,8,["show-user-home","action-type","current-node","onClose"])):e.createCommentVNode("",!0),o.popup==="NEWVERSION"?(e.openBlock(),e.createBlock(z,{key:4,onClose:i.closePopup,onMessage:i.emitMessage},null,8,["onClose","onMessage"])):e.createCommentVNode("",!0),o.popup==="SHARELINK"?(e.openBlock(),e.createBlock(y,{key:5,onClose:i.closePopup,onReload:t[4]||(t[4]=v=>l.$emit("reload"))},null,8,["onClose"])):e.createCommentVNode("",!0),o.popup==="MEMBERS"?(e.openBlock(),e.createBlock(I,{key:6,"is-site":!1,"selected-node":o.memberListTargetNode,onClose:i.closePopup,onReload:t[5]||(t[5]=v=>l.$emit("reload"))},null,8,["selected-node","onClose"])):e.createCommentVNode("",!0),o.popup==="SENDMAIL"?(e.openBlock(),e.createBlock(j,{key:7,onClose:i.closePopup},null,8,["onClose"])):e.createCommentVNode("",!0)],64)}const dc=J(Bp,[["render",au]]),ou={name:"ContentFiltersHeader",components:{PrimeButton:L,PrimeDropdown:At},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")}}},su={"data-testid":"content-filters-header",class:"flex justify-content-between p-3 surface-100 border-bottom-1 border-200"},iu={class:"flex gap-4"},nu={class:"font-bold text-xs"},cu={key:0,class:"flex items-center"},ru={key:1},du={class:"flex items-center"};function mu(l,t,a,s,o,i){const n=e.resolveComponent("PrimeDropdown"),c=e.resolveComponent("PrimeButton");return e.openBlock(),e.createElementBlock("div",su,[e.createElementVNode("div",iu,[e.createVNode(n,{"data-testid":"content-filters-header-sort-dropdown",modelValue:i.selectedSortFilterCopy,"onUpdate:modelValue":t[0]||(t[0]=r=>i.selectedSortFilterCopy=r),options:o.filterSortOption,"option-label":"label"},{value:e.withCtx(r=>[e.createElementVNode("div",nu,e.toDisplayString(l.$t("sortOn")),1),r.value?(e.openBlock(),e.createElementBlock("div",cu,[e.createElementVNode("div",null,e.toDisplayString(r.value.name),1)])):(e.openBlock(),e.createElementBlock("span",ru,e.toDisplayString(r.placeholder),1))]),option:e.withCtx(r=>[e.createElementVNode("div",du,[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:i.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:i.changeSortOrder},null,8,["aria-label","onClick"])):e.createCommentVNode("",!0)])])}const mc=J(ou,[["render",mu]]),bu={name:"ImageViewer",components:{PrimeButton:L,PrimeImage:Ia,PrimeToolBar:Da,PrimeTag:la},directives:{tooltip:ut},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 s=/\.[^.]+$/,o=t.replace(s,"");l.download=`${o}-v-${a}${t.match(s)[0]}`,l.click()},loadImage(){this.contentUrl="",this.contentNode.id!==void 0&&(this.versionId!==""?this.contentUrl=ze.getVersionContentUrl(this.contentNode.id,this.versionId):this.contentUrl=ze.getContentUrl(this.contentNode.id))},fitAuto(){this.zoomLevel=1},zoomIn(){this.zoomLevel<this.maxZoomLevel&&(this.zoomLevel+=.4)},zoomOut(){this.zoomLevel>this.minZoomLevel&&(this.zoomLevel-=.4)}}},pu={class:"flex"},uu={class:"flex-grow-1 overflow-hidden"},Zu={key:0,class:"consultation-title col"},hu={key:0,class:"flex gap-2"},yu={class:"card flex justify-content-center mr-1"};function Wu(l,t,a,s,o,i){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",pu,[e.createElementVNode("div",uu,[e.createVNode(r,{class:"sticky"},{center:e.withCtx(()=>[a.contentNode&&a.showTitle?(e.openBlock(),e.createElementBlock("h3",Zu,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",hu,[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]=Z=>i.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]=Z=>i.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]=Z=>i.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:i.download},null,8,["aria-label","onClick"]),[[h,l.$t("download"),void 0,{bottom:!0}]])])):e.createCommentVNode("",!0)]),_:1}),e.createElementVNode("div",yu,[a.contentNode&&i.hasContentUrl?(e.openBlock(),e.createBlock(m,{key:0,class:"image-rendition",src:o.contentUrl,alt:a.contentNode.name,style:e.normalizeStyle(i.zoomStyle)},null,8,["src","alt","style"])):e.createCommentVNode("",!0)])])])}const Wo=J(bu,[["render",Wu],["__scopeId","data-v-c21e7c8d"]]),gu={name:"VideoPlayer",components:{PrimeTag:la,PrimeToolBar:Da,PrimeButton:L},directives:{tooltip:ut},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()}}},Yu={class:"flex"},Nu={class:"flex-grow-1 overflow-scroll"},Au={key:0,class:"consultation-title col"},Xu={class:"card flex justify-content-center mr-1"},zu=["src"];function Mu(l,t,a,s,o,i){const n=e.resolveComponent("PrimeTag"),c=e.resolveComponent("PrimeButton"),r=e.resolveComponent("PrimeToolBar"),m=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock("div",Yu,[e.createElementVNode("div",Nu,[e.createVNode(r,{class:"sticky consultation-toolbar w-full"},{start:e.withCtx(()=>[a.contentNode?(e.openBlock(),e.createElementBlock("h3",Au,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=>i.download())},null,8,["aria-label"]),[[m,l.$t("download"),void 0,{bottom:!0}]])]),_:1}),e.createElementVNode("div",Xu,[a.contentUrl?(e.openBlock(),e.createElementBlock("video",{key:a.contentUrl,controls:"",class:"video-rendition"},[e.createElementVNode("source",{src:a.contentUrl},null,8,zu)])):e.createCommentVNode("",!0)])])])}const go=J(gu,[["render",Mu],["__scopeId","data-v-59a176e0"]]);let Ou=0;class Ce{constructor(t={}){this.id=Ou++,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 s=t(a);return s===void 0?null:[this,s]}}}Ce.closedBy=new Ce({deserialize:l=>l.split(" ")}),Ce.openedBy=new Ce({deserialize:l=>l.split(" ")}),Ce.group=new Ce({deserialize:l=>l.split(" ")}),Ce.isolate=new Ce({deserialize:l=>{if(l&&l!="rtl"&&l!="ltr"&&l!="auto")throw new RangeError("Invalid value for isolate: "+l);return l||"auto"}}),Ce.contextHash=new Ce({perNode:!0}),Ce.lookAhead=new Ce({perNode:!0}),Ce.mounted=new Ce({perNode:!0});const ju=Object.create(null);class Hl{constructor(t,a,s,o=0){this.name=t,this.props=a,this.id=s,this.flags=o}static define(t){let a=t.props&&t.props.length?Object.create(null):ju,s=(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,s);if(t.props){for(let i of t.props)if(Array.isArray(i)||(i=i(o)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");a[i[0].id]=i[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(Ce.group);return a?a.indexOf(t)>-1:!1}return this.id==t}static match(t){let a=Object.create(null);for(let s in t)for(let o of s.split(" "))a[o]=t[s];return s=>{for(let o=s.prop(Ce.group),i=-1;i<(o?o.length:0);i++){let n=a[i<0?s.name:o[i]];if(n)return n}}}}Hl.none=new Hl("",Object.create(null),0,8);var bc;(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"})(bc||(bc={})),new Ce({perNode:!0});let Gu=0;class nt{constructor(t,a,s,o){this.name=t,this.set=a,this.base=s,this.modified=o,this.id=Gu++}toString(){let{name:t}=this;for(let a of this.modified)a.name&&(t=`${a.name}(${t})`);return t}static define(t,a){let s=typeof t=="string"?t:"?";if(t instanceof nt&&(a=t),a?.base)throw new Error("Can not derive from a modified tag");let o=new nt(s,[],null,[]);if(o.set.push(o),a)for(let i of a.set)o.set.push(i);return o}static defineModifier(t){let a=new pa(t);return s=>s.modified.indexOf(a)>-1?s:pa.get(s.base||s,s.modified.concat(a).sort((o,i)=>o.id-i.id))}}let Tu=0;class pa{constructor(t){this.name=t,this.instances=[],this.id=Tu++}static get(t,a){if(!a.length)return t;let s=a[0].instances.find(c=>c.base==t&&wu(a,c.modified));if(s)return s;let o=[],i=new nt(t.name,o,t,a);for(let c of a)c.instances.push(i);let n=fu(a);for(let c of t.set)if(!c.modified.length)for(let r of n)o.push(pa.get(c,r));return i}}function wu(l,t){return l.length==t.length&&l.every((a,s)=>a==t[s])}function fu(l){let t=[[]];for(let a=0;a<l.length;a++)for(let s=0,o=t.length;s<o;s++)t.push(t[s].concat(l[a]));return t.sort((a,s)=>s.length-a.length)}new Ce({combine(l,t){let a,s,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 i=new Yo(o.tags,o.mode,o.context);a?a.next=i:s=i,a=i}return s}});class Yo{constructor(t,a,s,o){this.tags=t,this.mode=a,this.context=s,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}}Yo.empty=new Yo([],2,null);function Iu(l,t){let a=Object.create(null);for(let i of l)if(!Array.isArray(i.tag))a[i.tag.id]=i.class;else for(let n of i.tag)a[n.id]=i.class;let{scope:s,all:o=null}={};return{style:i=>{let n=o;for(let c of i)for(let r of c.set){let m=a[r.id];if(m){n=n?n+" "+m:m;break}}return n},scope:s}}const k=nt.define,ua=k(),Ht=k(),pc=k(Ht),uc=k(Ht),Qt=k(),Za=k(Qt),No=k(Qt),Xt=k(),rl=k(Xt),zt=k(),Mt=k(),Ao=k(),Ql=k(Ao),ha=k(),f={comment:ua,lineComment:k(ua),blockComment:k(ua),docComment:k(ua),name:Ht,variableName:k(Ht),typeName:pc,tagName:k(pc),propertyName:uc,attributeName:k(uc),className:k(Ht),labelName:k(Ht),namespace:k(Ht),macroName:k(Ht),literal:Qt,string:Za,docString:k(Za),character:k(Za),attributeValue:k(Za),number:No,integer:k(No),float:k(No),bool:k(Qt),regexp:k(Qt),escape:k(Qt),color:k(Qt),url:k(Qt),keyword:zt,self:k(zt),null:k(zt),atom:k(zt),unit:k(zt),modifier:k(zt),operatorKeyword:k(zt),controlKeyword:k(zt),definitionKeyword:k(zt),moduleKeyword:k(zt),operator:Mt,derefOperator:k(Mt),arithmeticOperator:k(Mt),logicOperator:k(Mt),bitwiseOperator:k(Mt),compareOperator:k(Mt),updateOperator:k(Mt),definitionOperator:k(Mt),typeOperator:k(Mt),controlOperator:k(Mt),punctuation:Ao,separator:k(Ao),bracket:Ql,angleBracket:k(Ql),squareBracket:k(Ql),paren:k(Ql),brace:k(Ql),content:Xt,heading:rl,heading1:k(rl),heading2:k(rl),heading3:k(rl),heading4:k(rl),heading5:k(rl),heading6:k(rl),contentSeparator:k(Xt),list:k(Xt),quote:k(Xt),emphasis:k(Xt),strong:k(Xt),link:k(Xt),monospace:k(Xt),strikethrough:k(Xt),inserted:k(),deleted:k(),changed:k(),invalid:k(),meta:ha,documentMeta:k(ha),annotation:k(ha),processingInstruction:k(ha),definition:nt.defineModifier("definition"),constant:nt.defineModifier("constant"),function:nt.defineModifier("function"),standard:nt.defineModifier("standard"),local:nt.defineModifier("local"),special:nt.defineModifier("special")};for(let l in f){let t=f[l];t instanceof nt&&(t.name=l)}Iu([{tag:f.link,class:"tok-link"},{tag:f.heading,class:"tok-heading"},{tag:f.emphasis,class:"tok-emphasis"},{tag:f.strong,class:"tok-strong"},{tag:f.keyword,class:"tok-keyword"},{tag:f.atom,class:"tok-atom"},{tag:f.bool,class:"tok-bool"},{tag:f.url,class:"tok-url"},{tag:f.labelName,class:"tok-labelName"},{tag:f.inserted,class:"tok-inserted"},{tag:f.deleted,class:"tok-deleted"},{tag:f.literal,class:"tok-literal"},{tag:f.string,class:"tok-string"},{tag:f.number,class:"tok-number"},{tag:[f.regexp,f.escape,f.special(f.string)],class:"tok-string2"},{tag:f.variableName,class:"tok-variableName"},{tag:f.local(f.variableName),class:"tok-variableName tok-local"},{tag:f.definition(f.variableName),class:"tok-variableName tok-definition"},{tag:f.special(f.variableName),class:"tok-variableName2"},{tag:f.definition(f.propertyName),class:"tok-propertyName tok-definition"},{tag:f.typeName,class:"tok-typeName"},{tag:f.namespace,class:"tok-namespace"},{tag:f.className,class:"tok-className"},{tag:f.macroName,class:"tok-macroName"},{tag:f.propertyName,class:"tok-propertyName"},{tag:f.operator,class:"tok-operator"},{tag:f.comment,class:"tok-comment"},{tag:f.meta,class:"tok-meta"},{tag:f.invalid,class:"tok-invalid"},{tag:f.punctuation,class:"tok-punctuation"}]);const vu=al.HighlightStyle.define([{tag:f.comment,color:"#6a737d",fontStyle:"italic"},{tag:f.lineComment,color:"#6a737d",fontStyle:"italic"},{tag:f.blockComment,color:"#6a737d",fontStyle:"italic"},{tag:f.string,color:"#032f62"},{tag:f.special(f.string),color:"#032f62"},{tag:f.number,color:"#005cc5"},{tag:f.integer,color:"#005cc5"},{tag:f.float,color:"#005cc5"},{tag:f.keyword,color:"#d73a49",fontWeight:"bold"},{tag:f.controlKeyword,color:"#d73a49",fontWeight:"bold"},{tag:f.operatorKeyword,color:"#d73a49"},{tag:f.operator,color:"#d73a49"},{tag:f.compareOperator,color:"#d73a49"},{tag:f.arithmeticOperator,color:"#d73a49"},{tag:f.logicOperator,color:"#d73a49"},{tag:f.definition(f.variableName),color:"#6f42c1"},{tag:f.definition(f.function(f.variableName)),color:"#6f42c1",fontWeight:"bold"},{tag:f.variableName,color:"#24292e"},{tag:f.function(f.variableName),color:"#6f42c1"},{tag:f.typeName,color:"#22863a"},{tag:f.className,color:"#22863a",fontWeight:"bold"},{tag:f.namespace,color:"#22863a"},{tag:f.propertyName,color:"#005cc5"},{tag:f.attributeName,color:"#6f42c1"},{tag:f.attributeValue,color:"#032f62"},{tag:f.heading,color:"#005cc5",fontWeight:"bold"},{tag:f.heading1,color:"#005cc5",fontWeight:"bold",fontSize:"1.4em"},{tag:f.heading2,color:"#005cc5",fontWeight:"bold",fontSize:"1.2em"},{tag:f.heading3,color:"#005cc5",fontWeight:"bold",fontSize:"1.1em"},{tag:f.emphasis,fontStyle:"italic",color:"#24292e"},{tag:f.strong,fontWeight:"bold",color:"#24292e"},{tag:f.link,color:"#0366d6",textDecoration:"underline"},{tag:f.url,color:"#0366d6"},{tag:f.quote,color:"#6a737d",fontStyle:"italic"},{tag:f.monospace,color:"#e36209",backgroundColor:"#f6f8fa"},{tag:f.strikethrough,textDecoration:"line-through"},{tag:f.list,color:"#e36209"},{tag:f.tagName,color:"#22863a"},{tag:f.angleBracket,color:"#24292e"},{tag:f.punctuation,color:"#24292e"},{tag:f.bracket,color:"#24292e"},{tag:f.brace,color:"#24292e"},{tag:f.paren,color:"#24292e"},{tag:f.meta,color:"#6a737d"},{tag:f.invalid,color:"#cb2431",backgroundColor:"#ffeef0"}]),Lu={"text/html":()=>r2.html(),"text/markdown":()=>oa.markdown({codeLanguages:Fa.languages}),"text/x-markdown":()=>oa.markdown({codeLanguages:Fa.languages}),"text/x-web-markdown":()=>oa.markdown({codeLanguages:Fa.languages}),"application/json":()=>Ra.json(),"text/json":()=>Ra.json(),"application/xml":()=>ka.xml(),"text/xml":()=>ka.xml(),"application/x-yaml":()=>sa.yaml(),"text/yaml":()=>sa.yaml(),"text/x-yaml":()=>sa.yaml(),"application/x-sh":()=>al.StreamLanguage.define(Ca.shell),"text/x-sh":()=>al.StreamLanguage.define(Ca.shell),"application/x-shellscript":()=>al.StreamLanguage.define(Ca.shell)};function zl(l){if(!l)return[];const t=Lu[l];return t?t():[]}function Ml(l={}){const{editable:t=!1,showLineNumbers:a=!0,enableHistory:s=t,dark:o=!1,lineWrapping:i=!1,onUpdate:n=null}=l,c=[o?c2.oneDark:al.syntaxHighlighting(vu,{fallback:!0}),Le.EditorView.editable.of(t),Le.keymap.of([{key:"Mod-c",run:r=>{const{from:m,to:h}=r.state.selection.main;if(m===h)return!1;const Z=r.state.sliceDoc(m,h);return navigator.clipboard.writeText(Z).catch(()=>{}),!0}}])];return i&&c.push(Le.EditorView.lineWrapping),a&&c.push(Le.lineNumbers()),s?c.push(Cl.history(),Le.keymap.of([...Cl.defaultKeymap,...Cl.historyKeymap,Cl.indentWithTab])):c.push(Le.keymap.of(Cl.defaultKeymap)),n&&c.push(Le.EditorView.updateListener.of(r=>{r.docChanged&&n(r.state.doc.toString())})),c}function Zc(l){const{parent:t,content:a="",mimeType:s="text/plain",editable:o=!1,onUpdate:i=null}=l;if(!t)throw new Error("Parent element is required to create an editor");const n=zl(s),r=[...Ml({editable:o,onUpdate:i})];n&&(!Array.isArray(n)||n.length>0)&&r.push(n);const m=It.EditorState.create({doc:a,extensions:r});return new Le.EditorView({state:m,parent:t})}function Du(){const l=e.shallowRef(null),t=i=>(a(),l.value=Zc(i),l.value),a=()=>{l.value&&(l.value.destroy(),l.value=null)};return{editorView:l,create:t,destroy:a,setContent:i=>{l.value&&l.value.dispatch({changes:{from:0,to:l.value.state.doc.length,insert:i}})},getContent:()=>l.value?l.value.state.doc.toString():"",getLanguageExtension:zl,getBaseExtensions:Ml}}d2.marked.use(Or.markedHighlight({langPrefix:"hljs language-",highlight(l,t){if(t&&xa.getLanguage(t))try{return xa.highlight(l,{language:t}).value}catch(a){console.warn("Highlight.js error:",a)}try{return xa.highlightAuto(l).value}catch{return l}}}));const hc=`
|
|
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"}},Wn={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)"},gn="Close",Yn="Edit",Nn="Open",An="Download",Xn="Restore",zn="Publish",Mn="Back",On="Minimize",jn="Reload",Gn="Duplicate",Tn="Move up",wn="Move down",fn="Sort ascending",In="Sort descending",vn="Search",Ln="More actions",Dn="Edit",Rn="Home",kn="File list",Cn="Preview",Fn="Select all",Vn="View mode",xn="List",Sn="Grid",Jn="Table",Un={selectedDocuments:"Selected documents"},Hn={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."}},Qn={en:Object.freeze(Object.defineProperty({__proto__:null,alfrescoError:yi,auth:ci,back:Mn,cancel:ui,canceledImport:cn,cannotCopyHere:Ei,cannotMoveHere:Pi,chat:Wn,close:gn,collab:Zn,config:mn,configHealth:Hn,currentFolder:nn,default:{emptyPasswordOrUser:ii,unexpectedLoginError:ni,auth:ci,taskNotification:ri,fichier:di,dossier:mi,restrictedPermissions:bi,save:pi,cancel:ui,error:Zi,uploadUnknownError:hi,alfrescoError:yi,fichier_image:Wi,fichier_video:gi,fichier_pdf:Yi,fichier_eml:Ni,fichier_texte:Ai,fichier_tableur:Xi,fichier_dessin:zi,fichier_presentation:Mi,fichier_markdown:Oi,fichier_json:ji,fichier_xml:Gi,fichier_html:Ti,fichier_css:wi,fichier_csv:fi,fichier_javascript:Ii,fichier_sql:vi,fichier_shell:Li,fichier_yaml:Di,fichier_python:Ri,fichier_typescript:ki,fichier_php:Ci,fichier_java:Fi,fichier_code:Vi,fichier_config:xi,fichier_log:Si,espace:Ji,menu:Ui,tasks:Hi,pdf:Qi,sharelink:Bi,cannotCopyHere:Ei,cannotMoveHere:Pi,spaces:_i,userHomes:Ki,yes:$i,no:qi,howMuchResult:en,howMuchSelected:tn,selectAllElement:ln,selectAllElementMoreThan:an,deleteSelection:on,dropFileFolders:sn,currentFolder:nn,canceledImport:cn,lock:rn,membersPopup:dn,config:mn,rechercheAvancee:bn,pdfTools:pn,editor:un,collab:Zn,diffViewer:hn,sendingMail:yn,chat:Wn,close:gn,delete:"Delete",edit:Yn,open:Nn,download:An,restore:Xn,publish:zn,back:Mn,minimize:On,reload:jn,duplicate:Gn,moveUp:Tn,moveDown:wn,sortAscending:fn,sortDescending:In,search:vn,moreActions:Ln,"add/removeFavorite":"Add/remove favorite",modify:Dn,home:Rn,fileList:kn,previewPanel:Cn,selectAll:Fn,layoutSelector:Vn,layoutList:xn,layoutGrid:Sn,layoutTable:Jn,workflow:Un,configHealth:Hn},deleteSelection:on,diffViewer:hn,dossier:mi,download:An,dropFileFolders:sn,duplicate:Gn,edit:Yn,editor:un,emptyPasswordOrUser:ii,error:Zi,espace:Ji,fichier:di,fichier_code:Vi,fichier_config:xi,fichier_css:wi,fichier_csv:fi,fichier_dessin:zi,fichier_eml:Ni,fichier_html:Ti,fichier_image:Wi,fichier_java:Fi,fichier_javascript:Ii,fichier_json:ji,fichier_log:Si,fichier_markdown:Oi,fichier_pdf:Yi,fichier_php:Ci,fichier_presentation:Mi,fichier_python:Ri,fichier_shell:Li,fichier_sql:vi,fichier_tableur:Xi,fichier_texte:Ai,fichier_typescript:ki,fichier_video:gi,fichier_xml:Gi,fichier_yaml:Di,fileList:kn,home:Rn,howMuchResult:en,howMuchSelected:tn,layoutGrid:Sn,layoutList:xn,layoutSelector:Vn,layoutTable:Jn,lock:rn,membersPopup:dn,menu:Ui,minimize:On,modify:Dn,moreActions:Ln,moveDown:wn,moveUp:Tn,no:qi,open:Nn,pdf:Qi,pdfTools:pn,previewPanel:Cn,publish:zn,rechercheAvancee:bn,reload:jn,restore:Xn,restrictedPermissions:bi,save:pi,search:vn,selectAll:Fn,selectAllElement:ln,selectAllElementMoreThan:an,sendingMail:yn,sharelink:Bi,sortAscending:fn,sortDescending:In,spaces:_i,taskNotification:ri,tasks:Hi,unexpectedLoginError:ni,uploadUnknownError:hi,userHomes:Ki,workflow:Un,yes:$i},Symbol.toStringTag,{value:"Module"})),fr:O0};let j0=localStorage?.getItem("user.language")||window?.navigator?.language||"fr";const sl=ll.createI18n({locale:j0,messages:Qn,fallbackLocale:"fr",silentTranslationWarn:!0,silentFallbackWarn:!0}),yt=sl.global.t;class na extends Error{constructor(t,a,s){super(t),this.code=a,this.cause=s}}function Bn(l,t){let a=yt("error."+l+"."+t.status);return a||(a=yt("error."+t.status)),a||(a=t.message),a}function B(l,t){let a;if(t.status===400){let s;if(t.response?.error?.message)throw new na(t.response?.error?.message,t.status,t);try{s=typeof t.message=="string"?JSON.parse(t.message):t.message}catch(o){console.error("Erreur de parsing JSON :",o),s={}}a=s?.error?.briefSummary||Bn(l,t)}else a=Bn(l,t);return new na(a,t.status,t)}class G0{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 s=a?.error?.briefSummary||"";if(s.includes("verrouillé")||s.includes("locked"))throw B(yt("updateNodeLocked"),t)}throw B("updateNode",t)}uploadFileError(t,a){throw t.status===409?new na(yt("error.uploadFile.409",{filename:a}),t.status,t):B("uploadFile",t)}deleteNodeError(t,a){switch(t.status){case 403:case 404:case 409:throw new na(yt(`error.deleteNode.${t.status}`,{type:yt(a)}),t.status,t);default:throw B("deleteNode",t)}}getUploadErrors(t){let a=[];return t.forEach(s=>{a.push({severity:"error",content:yt("uploadUnknownError",{error:s.message})})}),a.filter((s,o)=>o===a.findIndex(i=>s.content===i.content))}}function T0(l){if(typeof l!="string")return null;try{const t=JSON.parse(l);return t?.error!==null&&typeof t?.error=="object"?t.error:null}catch{return null}}function Ka(l){const t=l.error?.message??l.message,a=T0(t),s=l.error?.response??l.response,o=a?.statusCode??s?.status??l.error?.status??l.status;let i=a??s;if(i||(i=typeof t=="string"?{message:t}:l),o)switch(o){case 400:i.message=yt("error.login.400");break;case 401:i.message=yt("error.login.401");break;case 403:i.message=yt("error.login.403");break;case 502:i.message=yt("alfrescoError");break;default:i.message=i.statusText?i.statusText:i.message}return i}const Ut=new G0;class w0{constructor(){this.lruNode=new at({maxSize:50,maxAge:3e4}),this.lruChildren=new at({maxSize:50,maxAge:5e4}),this.lruParents=new at({maxSize:20,maxAge:3e4}),this.lruDocumentLibrary=new at({maxSize:20,maxAge:2e3}),this.lruVersionHistory=new at({maxSize:5,maxAge:1e4}),this.lruHomeFolder=new at({maxSize:50,maxAge:300*1e3}),this.lruIsFolderInUserHome=new at({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 Ye.getNode(t,a).then(s=>(this.lruNode.set(t,s.entry),s.entry))}getNodeContent(t,a){const s={attachment:a};return Ye.getNodeContent(t,s).catch(o=>{throw B("getVersionContent",o)})}createNode(t,a){return Ye.createNode(t,a).catch(s=>{throw B("createNodeError",s)})}getChildren(t,a=10,s=0,o=!1){const i={include:["isFavorite","properties","allowableOperations","permissions","path","isLocked"],maxItems:a,skipCount:s};return this.getChildrenWithOpts(t,i,o)}getChildrenWithOpts(t,a,s=!1){const o=JSON.stringify({id:t,opts:a});return!s&&this.lruChildren.has(o)?Promise.resolve(this.lruChildren.get(o)):(a={...{include:["isFavorite","properties","allowableOperations","permissions","path","isLocked"]},...a},Ye.listNodeChildren(t,a).then(n=>{let r=n.list.entries.map(m=>m.entry).filter(m=>m.name==="documentLibrary")[0];return r?Ye.listNodeChildren(r.id,a).then(m=>{const h={documentLibrary:r,children:m.list.entries.map(Z=>Z.entry),pagination:m.list.pagination};return this.lruChildren.set(o,h),h}):Ye.listNodeChildren(t,a).then(m=>{const h={children:m.list.entries.map(Z=>Z.entry),pagination:m.list.pagination};return this.lruChildren.set(o,h),h})}))}getDirectChildren(t,a){const s=JSON.stringify({id:t,opts:a,direct:!0});return this.lruChildren.has(s)?Promise.resolve(this.lruChildren.get(s)):(a={...{include:["isFavorite","properties","allowableOperations","permissions","path","isLocked"]},...a},Ye.listNodeChildren(t,a).then(i=>{const c={children:i.list.entries.map(r=>r.entry),pagination:i.list.pagination};return this.lruChildren.set(s,c),c}))}updateNode(t,a){return Ye.updateNode(t,a).then(s=>(this.lruNode.delete(t),s)).catch(s=>{throw Ut.updateNodeError(s)})}updateMimeType(t,a){return Ye.getNodeContent(t).then(s=>Ye.put({path:"/nodes/{nodeId}/content",pathParams:{nodeId:t},queryParams:{majorVersion:!1},contentTypes:[a],bodyParam:s})).catch(s=>{throw Ut.updateNodeError(s)})}checkVersion(t){return Ye.getNode(t).then(a=>a.entry).then(a=>{if(!a.aspectNames.find(s=>s==="cm:versionable")){const s={aspectNames:[...a.aspectNames,"cm:versionable"]};return Ye.updateNode(t,s).then(()=>"1.0").catch(o=>{if(o.status===403)console.warn("Can’t add version - Forbidden");else throw B("updateNode",o)})}})}deleteNode(t,a){const s={};return Ye.deleteNode(t,s).catch(o=>{Ut.deleteNodeError(o,a)})}getParents(t){if(this.lruParents.has(t))return Promise.resolve(this.lruParents.get(t));const a={include:["isFavorite","properties","path"]};return Ye.listParents(t,a).then(s=>{let o=s.list.entries.map(n=>n.entry),i=o[0];return i&&i.name==="documentLibrary"?this.getParents(i.id).then(n=>{const c={documentLibrary:i,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 Ye.listNodeChildren(t,a).then(s=>{const i=s.list.entries.map(n=>n.entry).find(n=>n.name==="documentLibrary");return this.lruDocumentLibrary.set(t,i),i})}updateContentNode(t,a,s,o){let i={majorVersion:s,comment:o};return Ye.updateNodeContent(t,a,i).catch(n=>{throw B("updateContentNode",n)})}copyNode(t,a,s){const o=s!==null?{targetParentId:a,name:s}:{targetParentId:a},i={include:["path"]};return Ye.copyNode(t,o,i).catch(n=>{throw B("copyNode",n)})}moveNode(t,a,s,o){if(!t)throw new Error("moveNode: mandatory id");if(!a)throw new Error("moveNode: mandatory targetParentId");let i={targetParentId:a};return s&&(i={...i,name:s}),o||(o={include:["path"]}),Ye.moveNode(t,i,o).catch(n=>{throw B("moveNode",n)})}createSharedLink(t){const a={nodeId:t.id,expiresAt:null};return Nl.createSharedLink(a).catch(s=>{throw B("createSharedLink",s)})}deleteSharedLink(t){return Nl.deleteSharedLink(t).catch(a=>{throw B("deleteSharedLink",a)})}revertVersion(t,a,s){const o={majorVersion:!1,comment:s},i={include:["properties"]};return Jt.revertVersion(t,a,o,i).catch(n=>{throw B("revertVersion",n)})}listNodeVersionHistory(t){if(this.lruVersionHistory.has(t))return Promise.resolve(this.lruVersionHistory.get(t));const a={include:["properties"]};return Jt.listVersionHistory(t,a).then(s=>(this.lruVersionHistory.set(t,s),s)).catch(s=>{throw B("listNodeVersionHitory",s)})}getVersionContent(t,a,s){const o={attachment:s};return Jt.getVersionContent(t,a,o).catch(i=>{throw B("getVersionContent",i)})}getSharedLink(t){return Nl.getSharedLink(t).catch(a=>{throw B("sharedLink",a)})}getSharedLinkContent(t){const a={attachment:!0};return Nl.getSharedLinkContent(t,a).catch(s=>{throw B("sharedLinkContent",s.error)})}getSharedLinkRenditionContent(t){return Nl.getSharedLinkRenditionContent(t,"pdf").catch(a=>{throw B("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 ht.search(a).then(s=>(this.lruHomeFolder.set(t,s),s))}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 ht.search(a).then(s=>(this.lruHomeFolder.set(t,s),s))}isFolderInUserHome(t,a){const s=JSON.stringify({nodeId:t,homeFolderId:a});return this.lruIsFolderInUserHome.has(s)?Promise.resolve(this.lruIsFolderInUserHome.get(s)):this.getNode(t).then(o=>{const i=o.path.elements.some(n=>n.id===a);return this.lruIsFolderInUserHome.set(s,i),i}).catch(o=>(console.error("Error fetching node:",o),!1))}}const S=new w0;class f0{constructor(){this.lruWorkspaces=new at({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 Ue.listSites(a).then(s=>{const o=s.list.entries.map(i=>i.entry);return this.lruWorkspaces.set(t,o),o}).catch(s=>{throw B("getWorkspaces",s)})}searchAllWorkspaces(t=""){const a=`searchAllWorkspaces_${t}`;if(this.lruWorkspaces.has(a))return Promise.resolve(this.lruWorkspaces.get(a));const s={query:{query:"TYPE: 'st:site' "+t},include:["allowableOperations","properties","aspectNames"],paging:{maxItems:1e3,skipCount:0},localization:{locales:["fr_FR"]}};return ht.search(s).then(o=>{const i=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,i),i}).catch(o=>{throw B("searchAllWorkspaces",o)})}getWorkspace(t){const a=`workspace_${t}`;if(this.lruWorkspaces.has(a))return Promise.resolve(this.lruWorkspaces.get(a));const s={};return Ue.getSite(t,s).then(o=>(this.lruWorkspaces.set(a,o.entry),o.entry)).catch(o=>{throw B("getWorkspace",o)})}getWorkspaceMemberships(t){const a=`workspaceMemberships_${t}`;if(this.lruWorkspaces.has(a))return Promise.resolve(this.lruWorkspaces.get(a));const s={};return Ue.listSiteMemberships(t,s).then(o=>{const i=o.list.entries.map(n=>n.entry);return this.lruWorkspaces.set(a,i),i}).catch(o=>{throw B("getWorkspaceMemberships",o)})}getWorkspaceMembershipsWithOpts(t,a){const s=`workspaceMembershipsWithOpts_${t}_${JSON.stringify(a)}`;return this.lruWorkspaces.has(s)?Promise.resolve(this.lruWorkspaces.get(s)):Ue.listSiteMemberships(t,a).then(o=>(this.lruWorkspaces.set(s,o),o)).catch(o=>{throw B("getWorkspaceMemberships",o)})}getWorkspaceGroupsWithOpts(t,a){const s=`workspaceGroupsWithOpts_${t}_${JSON.stringify(a)}`;return this.lruWorkspaces.has(s)?Promise.resolve(this.lruWorkspaces.get(s)):Ue.listSiteGroups(t,a).then(o=>{const i=o.list.entries.map(n=>n.entry);return this.lruWorkspaces.set(s,i),i}).catch(o=>{throw B("getWorkspaceGroups",o)})}getWorkspaceGroups(t){const a=`workspaceGroups_${t}`;if(this.lruWorkspaces.has(a))return Promise.resolve(this.lruWorkspaces.get(a));const s={};return Ue.listSiteGroups(t,s).then(o=>{const i=o.list.entries.map(n=>n.entry);return this.lruWorkspaces.set(a,i),i}).catch(o=>{throw B("getWorkspaceGroups",o)})}createWorkspace(t,a,s,o){const i={id:t,title:a,description:s,visibility:o};return Ue.createSite(i).catch(n=>{throw B("createWorkspace",n)})}requestJoinWorkspace(t,a){const s={id:a},o={};return Ue.createSiteMembershipRequestForPerson(t,s,o).catch(i=>{throw B("requestJoinWorkspace",i)})}_invalidateMembersCache(t){const a=[];for(const s of this.lruWorkspaces.keys())(s.startsWith(`workspaceMemberships_${t}`)||s.startsWith(`workspaceMembershipsWithOpts_${t}`)||s.startsWith(`workspaceGroups_${t}`)||s.startsWith(`workspaceGroupsWithOpts_${t}`))&&a.push(s);a.forEach(s=>this.lruWorkspaces.delete(s))}addWorkspaceUser(t,a,s){const o={role:s,id:a},i={};return Ue.createSiteMembership(t,o,i).then(n=>(this._invalidateMembersCache(t),n)).catch(n=>{throw B("addWorkspaceUser",n)})}addWorkspaceGroup(t,a,s){const o={role:s,id:a},i={};return Ue.createSiteGroupMembership(t,o,i).then(n=>(this._invalidateMembersCache(t),n)).catch(n=>{throw B("addWorkspaceGroup",n)})}updateWorkspaceUserRole(t,a,s){const o={role:s},i={};return Ue.updateSiteMembership(t,a,o,i).then(n=>(this._invalidateMembersCache(t),n)).catch(n=>{throw B("updateWorkspaceUserRole",n)})}updateWorkspaceGroupRole(t,a,s){const o={role:s},i={};return Ue.updateSiteGroupMembership(t,a,o,i).then(n=>(this._invalidateMembersCache(t),n)).catch(n=>{throw B("updateWorkspaceGroupRole",n)})}deleteWorkspaceUser(t,a){return Ue.deleteSiteMembership(t,a).then(s=>(this._invalidateMembersCache(t),s)).catch(s=>{throw B("deleteWorkspaceUser",s)})}deleteWorkspaceGroup(t,a){return Ue.deleteSiteGroupMembership(t,a).then(s=>(this._invalidateMembersCache(t),s)).catch(s=>{throw B("deleteWorkspaceGroup",s)})}updateActeWorkspaceType(t,a){const s={properties:{"pm:typeEspace":a},aspectNames:["cm:tagscope","pm:specializeEspace","cm:titled","cm:auditable","am:isPublic"]};return Ye.updateNode(t,s).catch(o=>{throw B("updateWorkspaceType",o)})}updateWorkspaceType(t,a){const s={properties:{"pm:typeEspace":a}};return Ye.updateNode(t,s).catch(o=>{throw B("updateWorkspaceType",o)})}async searchUsers(t,a=25){const s=t.trim(),o={query:{language:"afts",query:`TYPE:"cm:person" AND (cm:userName:"*${s}*" OR cm:firstName:"*${s}*" OR cm:lastName:"*${s}*" OR cm:email:"*${s}*")`},localization:{locales:["en_US"]},include:["aspectNames","properties"],paging:{maxItems:a,skipCount:0}};return ht.search(o).then(i=>i.list.entries.map(n=>{const c=n.entry.properties,r=c["cm:firstName"]||"",m=c["cm:lastName"]||"",h=c["cm:email"]||"",Z=c["cm:userName"]||n.entry.name;return{id:Z,firstname:r,lastname:m,email:h,label:`${r} ${m} (${Z} - ${h})`.trim(),group:!1}})).catch(i=>{throw B("searchUsers",i)})}async searchGroups(t,a=25){const s=t.trim(),n={query:{language:"afts",query:`TYPE:"cm:authorityContainer" AND ${s.startsWith("GROUP_")?`@cm\\:authorityName:"${s}*"`:`(@cm\\:authorityName:"*${s}*" OR @cm\\:authorityDisplayName:"*${s}*" OR @cm\\:description:"*${s}*")`}`},localization:{locales:["en_US"]},include:["properties"],paging:{maxItems:a,skipCount:0}};return ht.search(n).then(c=>{const r=["site_","SITE_","ALFRESCO_","EMAIL_"];return c.list.entries.map(m=>{const h=m.entry.properties,Z=h["cm:authorityName"];return{id:Z,label:h["cm:authorityDisplayName"]||Z,group:!0}}).filter(m=>!r.some(h=>m.label.startsWith(h)))}).catch(c=>{throw B("searchGroups",c)})}deleteWorkspace(t,a=!1){const s={permanent:a};return Ue.deleteSite(t,s).catch(o=>{throw B("deleteWorkspace",o)})}updateWorkspace(t,a){return Ue.updateSite(t,a).catch(s=>{throw B("updateWorkspace",s)})}}const Oe=new f0,Be=_.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,Oe.getWorkspace(l).then(s=>(this.workspace=s,this.role=s.role,this.visibility=s.visibility,t?S.getNode(t).then(o=>o):S.getNode(s.guid).then(o=>(this.workspaceInfo=o,o)))).then(s=>(this.canUpload=s.allowableOperations?.includes("create")||!1,S.getChildren(s.guid||s.id,500,0,a).then(o=>(o.documentLibrary?this.currentNode=o.documentLibrary:this.currentNode=s,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(i=>i.isFolder),this.files=this.children.filter(i=>i.isFile)):(this.folders=[],this.files=[],this.emptyFolder=!0),this.loading=!1,s)))))},loadWithOpts(l,t,a,s){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=Oe.getWorkspace(l)):o=S.getUserHomeNode().then(i=>(this.isInUserHome=!0,i)),o.then(i=>(this.workspace=i,this.role=i.role,this.visibility=i.visibility,t?S.getNode(t).then(n=>n):S.getNode(i.guid).then(n=>(this.workspaceInfo=n,n)))).then(i=>(this.canUpload=i.allowableOperations?.includes("create")||!1,S.getChildrenWithOpts(i.guid||i.id,s,a).then(n=>(this.totalRecordNodes=n.pagination.totalItems,n.documentLibrary?this.currentNode=n.documentLibrary:this.currentNode=i,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,i))))},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,Oe.getWorkspace(l).then(s=>(this.workspace=s,this.role=s.role,this.visibility=s.visibility,t?S.getNode(t).then(o=>o):S.getNode(s.guid).then(o=>(this.workspaceInfo=o,o)))).then(s=>(this.canUpload=s.allowableOperations?.includes("create")||!1,S.getChildren(s.guid||s.id,500,0,a).then(o=>(o.documentLibrary&&S.getChildren(o.documentLibrary.id,500,0,a).then(async i=>{const n=[];for(const m of i.children){const Z=(await S.getChildren(m.id,500,0,a)).children.filter(Y=>Y.nodeType==="cm:folder").map(Y=>S.getChildren(Y.id,500,0,a)),p=await Promise.all(Z);n.push(p)}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=s,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(i=>i.isFolder),this.files=this.children.filter(i=>i.isFile)):(this.folders=[],this.files=[],this.emptyFolder=!0),this.loading=!1),s)))))}}}),$a="|";class I0{async getInitialTree(){try{const a=(await Oe.searchAllWorkspaces("AND NOT pm:typeEspace:'actes'")).map(async o=>{const i=await S.getDocumentLibrary(o.id);return{key:o.id,label:o.title,icon:"pi pi-fw pi-inbox",data:i,children:[],leaf:!1}});return(await Promise.all(a)).filter(o=>o.data!==void 0).sort((o,i)=>o.label.localeCompare(i.label))}catch(t){return console.error("Error initializing tree:",t),[]}}buildPathKeys(t){if(Be().isInUserHome)return this.buildPathKeysInUserHome(t);{const a=t.path.elements;let s="";const o=[];for(const i of a){let n=null;i?.nodeType==="st:site"?n=i.id:i?.isFolder&&i.name!=="documentLibrary"&&(n=s?s+$a+i.id:i.id),n&&n.charAt(0)==="|"&&(n=n.slice(1)),n&&(o.push({key:n,node:i}),s=n)}return o}}buildPathKeysInUserHome(t){const a=t.path.elements.slice(2);let s="",o=[];for(const i of a){let n=i.id;i?.isFolder&&i.name!=="documentLibrary"&&(n=s?s+$a+i.id:i.id),n&&n.charAt(0)==="|"&&(n=n.slice(1)),n&&(o.push({key:n,node:i}),s=n)}return o}async expandPathKeys({keys:t,nodes:a,expandedKeys:s,onNodeExpand:o,currentNode:i}){let n="";for(const{key:r,node:m}of t)await o({key:r,data:m},a),s[r]=!0,n=r;const c=n+$a+i.id;await o({key:c,data:i},a),s[c]=!0}}const qa=new I0,ca="|",v0={name:"TreeExplorer",components:{PrimeTabView:l2,PrimeTabPanel:kl,PrimeTree:hr},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 qa.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 S.getUserHomeNode();return(await S.getChildrenWithOpts(t.list.entries[0].entry.id,l,!1)).children.filter(s=>!s.aspectNames||!s.aspectNames.includes("pm:hidden")).map(s=>({key:s.id,label:s.name,icon:"pi pi-fw pi-inbox",data:s,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 i=(await S.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(i,l,t)}catch(s){console.error("getNodeChildren Error",s)}},addChildren(l,t,a){return this.splitedKey=t.key.split(ca),this.splitedKey.length===1?a.filter(s=>s.key===t.key).map(s=>s.children=l):this.addElementChildren(a,t.key,l,0)},addElementChildren(l,t,a,s){let o=l.find(i=>this.containsKey(i.key,t,s));if(o){if(o.key===t)return o.children=a,null;if(o.children)return this.addElementChildren(o.children,t,a,s+1),null}},containsKey(l,t,a){let s=t.split(ca),o=l.split(ca);for(let i=0;i<=a;i++)if(s[i]!==o[i])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=Be().isInUserHome?1:0;let l=Be().isInUserHome?this.userHomesNodes:this.nodes,t=null;this.actionsService?.buildPathKeys?t=this.actionsService.buildPathKeys(this.currentNode):t=qa.buildPathKeys(this.currentNode),await qa.expandPathKeys({keys:t,nodes:l,expandedKeys:this.expandedKeys,onNodeExpand:this.onNodeExpand,currentNode:this.currentNode})}catch(l){console.error("Error opening path:",l)}}}};function L0(l,t,a,s,o,i){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:i.onNodeSelect,onNodeExpand:t[2]||(t[2]=m=>i.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:i.onNodeSelect,onNodeExpand:t[5]||(t[5]=m=>i.onNodeExpand(m,o.userHomesNodes))},null,8,["selection-keys","expanded-keys","value","onNodeSelect"])]),_:1},8,["header"])):e.createCommentVNode("",!0)]),_:1},8,["active-index"])}const il=J(v0,[["render",L0]]),D0="st:site",R0={name:"CopyOrMovePopup",components:{TreeExplorer:il,PrimeButton:L,PrimeDataView:a2,PrimeMessage:it,PrimeDialog:Je},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=Me()},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===D0?this.documentLibrary.id:this.destination.id;const t=this.nodes.map(a=>this.getItemName(l,a).then(s=>this.actionType==="copy"?S.copyNode(a.id,l,s):S.moveNode(a.id,l,s)));Promise.allSettled(t).then(a=>{let s=a.filter(i=>i.status==="fulfilled").map(i=>i.value.entry?.name),o=a.filter(i=>i.status!=="fulfilled").map(i=>i.reason);s.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:s.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 S.getChildren(l,200,0,!0).then(a=>{let s=t.name,o=a.children,i=t.isFile?this.removeExtension(s):s,n=o.filter(c=>c.name.startsWith(i)).length;return n>0&&(s=t.isFile?`${i}-${n}.${this.getExtension(s)}`:`${i}-${n}`),s})},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")}}},k0={class:"field grid card"},C0={class:"col-3"},F0={class:"mb-3 text-900"},V0={class:"w-full"},x0={class:"flex align-items-center gap-2 text-700"},S0={key:0,class:"ri-folder-2-line"},J0={key:1,class:"ri-file-line"},U0={class:"font-semibold"},H0={class:"col-9"},Q0={class:"w-full mb-2 text-900"},B0={key:0,class:"col-12 mb-2"},E0={key:1,class:"col-12 mb-2"};function P0(l,t,a,s,o,i){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(Z=>i.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]=Z=>i.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:i.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:i.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",k0,[e.createElementVNode("div",C0,[e.createElementVNode("div",F0,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(Z=>[e.createElementVNode("div",V0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Z.items,p=>(e.openBlock(),e.createElementBlock("div",{key:p.name,class:"mb-2"},[e.createElementVNode("span",x0,[p.isFolder?(e.openBlock(),e.createElementBlock("i",S0)):(e.openBlock(),e.createElementBlock("i",J0)),e.createElementVNode("span",U0,e.toDisplayString(p.name),1)])]))),128))])]),_:1},8,["value"])]),e.createElementVNode("div",H0,[e.createElementVNode("label",Q0,[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:i.selectNode},null,8,["current-node","show-user-home","onSelectNode"])]),o.destination?(e.openBlock(),e.createElementBlock("label",B0,e.toDisplayString(l.$t("destination",{dest:o.destinationName})),1)):(e.openBlock(),e.createElementBlock("label",E0,e.toDisplayString(l.$t("noDestination")),1))])]),_:1},8,["header"])}const eo=J(R0,[["render",P0]]),En='(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',Pn=typeof self<"u"&&self.Blob&&new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);",En],{type:"text/javascript;charset=utf-8"});function _0(l){let t;try{if(t=Pn&&(self.URL||self.webkitURL).createObjectURL(Pn),!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(En),{name:l?.name})}}const to=l=>{l.preventDefault(),l.returnValue="Des téléchargements sont en cours et seront annulés si vous quittez la page."},nl=_.defineStore("upload",{state:()=>({isUploading:!1,files:[],progress:{completed:0,total:0},worker:null,activeRequests:{},classificationPlanFiles:[],uploadMetadata:null}),getters:{overallMessage(l){const t=l.progress.total;if(t===0)return"";const a=l.files.filter(o=>o.status==="rejected").length,s=l.files.filter(o=>o.status==="error").length;return a===l.files.length?"Import annulé":l.isUploading?`Importation... (${l.progress.completed} / ${t})`:s>0?`Terminé avec ${s} erreur(s)`:"Import terminé"}},actions:{startUpload(l,t,a=null){console.log(`Attempting to start upload for node ${t}.`),console.log(`Current isUploading status: ${this.isUploading}`),!this.isUploading&&(this.uploadMetadata=a,this.initializeWorker(),this.isUploading=!0,this.progress={completed:0,total:l.length},this.files=l.map(s=>({name:s.file.name,status:"pending",message:"",percent:0})),window.addEventListener("beforeunload",to),this.worker.postMessage({type:"start",payload:{files:l,nodeId:t}}))},initializeWorker(){this.worker||(this.worker=new _0,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",to),console.debug("Lot terminé. Résultats:",a),this.classificationPlanFiles=[],this.uploadMetadata=null;break}})},async handleUploadRequest(l,t){const a=l.file,s=this.files.find(c=>c.name===a.name);s&&(s.status="uploading");const i=(l.relativePath||a.webkitRelativePath||"").split("/").slice(0,-1).join("/");let n;i?n={name:a.name,nodeType:"cm:content",renditions:"doclib",relativePath:i}:n={name:a.name,nodeType:"cm:content",renditions:"doclib"};try{const c=ze.uploadFileWithProgress(t,n,a);this.activeRequests[a.name]=c;let r=await c;delete this.activeRequests[a.name];const m=this.uploadMetadata;m&&(m.aspectNames||m.properties)&&(r=await S.updateNode(r.entry.id,{aspectNames:[...new Set([...r.entry.aspectNames||[],...m.aspectNames||[]])],properties:m.properties||{}})),s&&(s.status="success",s.percent=100,s.id=r.entry.id,s.content=r.entry.content,s.isFile=r.entry.isFile,s.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=Ut.uploadFileError(c,a.name)}catch(m){r=m}s&&(s.status="error",s.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(s=>s.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,s,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",to),this.classificationPlanFiles=a.map((n,c)=>({file:n,workspaceSiteId:l,pathFull:t,metadata:s,fileRenames:o,index:c}));const i=a.map((n,c)=>({fileName:n.name,fileSize:n.size,fileType:n.type,index:c}));this.worker.postMessage({type:"startClassificationPlan",payload:{files:i}})},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,s=a.name,o=this.files.find(i=>i.name===s);o&&(o.status="uploading");try{const i=t.fileRenames?.find(h=>h.original===s),c={name:i?i.new:s,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 ye.post("/alfresco/service/fr/jeci/pristy/nodes/inject",r,{withCredentials:!0,onUploadProgress:h=>{if(h.total&&o){const Z=Math.round(h.loaded*100/h.total);o.percent=Z}},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:s}})}catch(i){console.error(i);let n;try{n=Ut.uploadFileError(i,s)}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:s}})}}}}),lo=sl.global.t;class K0{constructor(){this.lruUrls=new at({maxSize:100,maxAge:300*1e3}),this.pendingRenditions=new Set,this.failedRenditions=new at({maxSize:500,maxAge:300*1e3})}getThumbnailUrl(t){const a=`thumbnail_${t}`;if(this.lruUrls.has(a))return this.lruUrls.get(a);const s=vt.getDocumentThumbnailUrl(t);return this.lruUrls.set(a,s),s}getPreviewUrl(t){const a=`preview_${t}`;if(this.lruUrls.has(a))return this.lruUrls.get(a);const s=vt.getDocumentPreviewUrl(t);return this.lruUrls.set(a,s),s}getContentUrl(t){const a=`content_${t}`;if(this.lruUrls.has(a))return this.lruUrls.get(a);const s=vt.getContentUrl(t);return this.lruUrls.set(a,s),s}getVersionContentUrl(t,a){const s=`version_content_${t}_${a}`;if(this.lruUrls.has(s))return this.lruUrls.get(s);const o=vt.getVersionContentUrl(t,a);return this.lruUrls.set(s,o),o}uploadFile(t,a,s){return Ua.uploadFile(s,null,t,null,a).on("progress",o=>{console.log("Percent :"+o.percent)}).then(o=>(this.createMissingRenditions(o.entry.id),o)).catch(o=>{Ut.uploadFileError(o,s.name)})}createRendition(t,a){return this._createRendition(t,{id:a})}createAllRendition(t){return this._createRendition(t,[{id:"doclib"},{id:"imgpreview"}])}async createMissingRenditions(t,a=["doclib","imgpreview"]){const s=await gl.listRenditions(t),o=new Map((s?.list?.entries??[]).map(n=>[n.entry.id,n.entry.status])),i=a.filter(n=>o.get(n)==="NOT_CREATED");if(i.length!==0)return this._createRendition(t,i.map(n=>({id:n})))}_createRendition(t,a){return gl.createRendition(t,a).catch(s=>{if(s.status===400){let o=JSON.parse(s.message);console.warn(o.error?.briefSummary)}else s.status===403?console.debug("Current user does not have permission for "+t):s.status===409?console.debug("All requested renditions already exist"):console.error(s)})}createVersionRendition(t,a,s){return Jt.createVersionRendition(t,a,{id:s})}getVersionRendition(t,a,s){return Jt.getVersionRendition(t,a,s)}handleThumbnailFallback(t){const a=t?.target;a&&requestAnimationFrame(()=>{const s=a.parentElement;if(s){s.style.display="none";const o=s.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.createMissingRenditions(a).catch(s=>{this.failedRenditions.set(a,!0),s?.status===403?console.debug(`Permission denied for rendition on ${a}`):console.warn(`createMissingRenditions error ${s?.status} for ${a}`)}).finally(()=>{this.pendingRenditions.delete(a)}))}isThumbnailSupported(t){let a=["application/pdf","application/msword","application/rtf"],s=["image/svg+xml"];const o=t.content?.mimeType;return!!(t.isFile&&o&&!s.includes(o)&&(o.startsWith("image/")||o.startsWith("video/")||o.startsWith("application/vnd")||a.includes(o)))}_findRenditionStatus(t,a){const s=t?.list?.entries?.find(o=>o.entry?.id===a);return s?s.entry.status:null}_renditionNotAvailable(t,a){const s=new Error(`Rendition "${a}" is not available for ${t}`);return s.code="RENDITION_NOT_AVAILABLE",s}_waitForRendition(t,a,s){return yr(async()=>{if((await t()).entry.status==="CREATED")return a();throw new Error(`Rendition "${s}" not ready`)},{retries:8,factor:2,minTimeout:1e3,maxTimeout:1e4,randomize:!1,onRetry:o=>{console.debug(`Waiting for rendition "${s}": ${o.message}`)}})}async getRenditionUrl(t,a="pdf"){const s=await gl.listRenditions(t),o=this._findRenditionStatus(s,a);if(o===null)throw this._renditionNotAvailable(t,a);return o==="CREATED"?vt.getRenditionUrl(t,a):(await this.createRendition(t,a),this._waitForRendition(()=>gl.getRendition(t,a),()=>vt.getRenditionUrl(t,a),a))}async getVersionRenditionUrl(t,a,s="pdf"){const o=await Jt.listVersionRenditions(t,a),i=this._findRenditionStatus(o,s);if(i===null)throw this._renditionNotAvailable(t,s);return i==="CREATED"?vt.getVersionRenditionUrl(t,a,s):(await this.createVersionRendition(t,a,s).catch(()=>{}),this._waitForRendition(()=>Jt.getVersionRendition(t,a,s),()=>vt.getVersionRenditionUrl(t,a,s),s))}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){const a=t.content?.mimeType;return!!(t.isFile&&a&&a!=="application/pdf"&&!a.includes("image/")&&!a.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,s=re();return t.isFolder?!1:s.EDIT_WITH_MSOFFICE&&this.isMSOfficeDoc(t)&&a&&(this.isWindows()||this.isMacOs())}triggerEditOnlineAos(t){const a=re();let s=`${a.ALFRESCO_HOST}/${a.ALFRESCO_ROOT}/aos`,o="Sites",i;if(t.path.name.length>256)i=`${s}/${o}/_aos_nodeid/${t.id}/${encodeURIComponent(t.name)}`;else{let r=t.path.elements.slice(1).map(m=>m.name).join("/");i=`${s}/${r}/${t.name}`}let n=ze.getFileExtension(t.name),c=ze.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,i)}aos_tryToLaunchOfficeByMsProtocolHandler(t,a){let s=`${t}:ofe%7Cu%7C${a}`,o=document.createElement("iframe");o.style.display="none",o.src=s,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,s){const o=nl().files.find(i=>i.name===s.name);return Ua.uploadFile(s,null,t,null,a).on("progress",i=>{o.percent=i.percent})}tooltipLockContent(t){const a=t.properties["cm:lockType"],s=t.properties["cm:lockOwner"]?.displayName??t.properties["cm:lockOwner"]?.id;switch(a){case"NODE_LOCK":return lo("lock.nodeLock",{owner:s});case"READ_ONLY_LOCK":return lo("lock.readOnlyLock",{owner:s});case"WRITE_LOCK":return lo("lock.writeLock",{owner:s});default:return`Verrou inconnu (${a}).
|
|
10
|
+
Lock owner: ${s}`}}isPathElementVisible(t,a){return a>0&&t.nodeType!=="st:sites"&&t.nodeType!=="sys:container"&&t.nodeType!=="cm:person"&&t.name!=="documentLibrary"}}const ze=new K0,_n=_.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=re();return console.log(`Loading collabora extensions: ${l.COLLABORA_HOSTING_DISCOVERY}`),ye.get(`${l.COLLABORA_HOSTING_DISCOVERY}`).then(t=>new DOMParser().parseFromString(t.data,"text/xml")).catch(t=>{throw B("getCollaboraExtensions",t)})},checkIfExists(l,t){if(!this.loaded)return!1;const a=this.XMLExtensions.find(s=>s.attributes.name.value===l);return a?!![...a.getElementsByTagName("action")].find(i=>i.attributes.name.value===t):!!a}}}),Kn={"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 $n(l){const t=re(),a=_n(),s=l.content?.mimeType??"";return!t.OPEN_PDF_WITH_COLLABORA&&s==="application/pdf"?{name:"consultation-pdf",params:{id:l.id}}:s.startsWith("image/")?{name:"consultation-image",params:{id:l.id}}:s.startsWith("video/")?{name:"consultation-video",params:{id:l.id}}:Kn[s]?{name:Kn[s],params:{id:l.id}}:s.startsWith("text/")?{name:"text-editor",params:{id:l.id}}:a.checkIfExists(s,"edit")?{name:"edit-collabora",params:{action:"edit",id:l.id}}:a.checkIfExists(s,"view")?{name:"edit-collabora",params:{action:"view",id:l.id}}:a.checkIfExists(s,"view_comment")?{name:"edit-collabora",params:{action:"view",id:l.id}}:{name:"consultation-pdf",params:{id:l.id}}}function qn(l,t={}){if(!l.path){console.warn("nodeToMenuItem, favorite has no path",l);return}let a="";const s=l.path.elements.find(i=>i.nodeType==="st:site");let o;if(l.isFolder?o={name:"navigation-dossier",params:{id:s.name,FolderId:l.id}}:(o=$n(l),o.name==="edit-collabora"&&(a="_blank")),s?.name){let i=null;if(t.parentNodeType){const n=l.path.elements.find(c=>c.nodeType===t.parentNodeType);n&&(i=n.name)}return{label:l.name,labelPrefix:i,icon:l.isFolder?"ri-folder-2-line":"ri-file-line",class:"menu-item responsive-text",target:a,to:o}}}const Q=sl.global.t;class $0{createProcess(t){return ye.post("/alfresco/api/-default-/public/workflow/versions/1/processes",t,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"}}).catch(s=>{throw console.error(Q("tasks.error.createProcess"),s),new Error(Q("tasks.error.createProcess"))})}getProcesses(){return ye.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(Q("tasks.error.getProcesses"),t),new Error(Q("tasks.error.getProcesses"))})}getProcess(t){return ye.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(Q("tasks.error.getProcess"),a),new Error(Q("tasks.error.getProcess"))})}getFinishedProcesses(){return ye.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(Q("tasks.error.getFinishedProcess"),t),new Error(Q("tasks.error.getFinishedProcess"))})}addProcessItems(t,a){const s=`/alfresco/api/-default-/public/workflow/versions/1/processes/${t}/items`;return ye.post(s,a,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"}}).catch(o=>{throw console.error(Q("tasks.error.addProcessItems"),o),new Error(Q("tasks.error.addProcessItems"))})}getProcessItems(t){return ye.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(Q("tasks.error.getProcessItems"),a),new Error(Q("tasks.error.getProcessItems"))})}getProcessVariables(t){return ye.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(Q("tasks.error.getProcessVariables"),a),new Error(Q("tasks.error.getProcessVariables"))})}getProcessDefinition(t){return ye.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(Q("tasks.error.getProcessDefinition"),a),new Error(Q("tasks.error.getProcessDefinition"))})}cancelWorkflow(t){return ye.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(Q("tasks.error.cancelWorkflow"),a),new Error(Q("tasks.error.cancelWorkflow"))})}openProcessDiagram(t){return ye.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(Q("tasks.error.openProcessDiagram"),a),new Error(Q("tasks.error.openProcessDiagram"))})}getProcessHistoryTasks(t){return ye.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(Q("tasks.error.getProcessHistoryTasks"),a),new Error(Q("tasks.error.getProcessHistoryTasks"))})}listTasks(){return ye.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(s=>{a.push(s.entry)}),a}).catch(t=>{console.error(Q("tasks.error.listTasks"),t);const a=new Error(Q("tasks.error.listTasks"));throw a.status=t.response?.status,a})}listFinishedTasks(){return ye.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(s=>{a.push(s.entry)}),a}).catch(t=>{throw console.error(Q("tasks.error.listFinishedTasks"),t),new Error(Q("tasks.error.listFinishedTasks"))})}getTask(t){return ye.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(Q("tasks.error.getTask"),a),new Error(Q("tasks.error.getTask"))})}endTask(t){const a={state:"completed"},s=`/alfresco/api/-default-/public/workflow/versions/1/tasks/${t}?select=state`;return ye.put(s,a,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json","Content-Type":"application/json"}}).catch(o=>{throw console.error(Q("tasks.error.endTask"),o),new Error(Q("tasks.error.endTask"))})}getTaskVariables(t){return ye.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(Q("tasks.error.getTaskVariables"),a),new Error(Q("tasks.error.getTaskVariables"))})}postTaskVariables(t,a){const s=`/alfresco/api/-default-/public/workflow/versions/1/tasks/${t}/variables`;return ye.post(s,a,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json"}}).catch(o=>{throw console.error(Q("tasks.error.postTaskVariables"),o),new Error(Q("tasks.error.postTaskVariables"))})}updateTaskVariables(t,a){const s=`/alfresco/api/-default-/public/workflow/versions/1/tasks/${t}?select=state,variables`;return ye.put(s,a,{headers:{Authorization:`Basic ${btoa(`ROLE_TICKET:${localStorage.getItem("ticket-ECM")}`)}`,Accept:"application/json","Content-Type":"application/json"}}).catch(o=>{throw console.error(Q("tasks.error.updateTaskVariables"),o),new Error(Q("tasks.error.updateTaskVariables"))})}getTaskItem(t){return ye.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(Q("tasks.error.getTaskItem"),a),new Error(Q("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?Vt.formatDate(new Date(t),"ddd D MMM YYYY"):Q("tasks.none")}formatDateWithHour(t){const a=new Date(t),s=String(a.getUTCDate()).padStart(2,"0"),o=a.getUTCMonth(),i=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()],p=["Jan","Fev","Mar","Avr","Mai","Jui","Jui","Aoû","Sep","Oct","Nov","Dec"][o];return`${h} ${s} ${p} ${i} ${n}:${c}:${r}`}displayPriority(t){return{3:Q("tasks.priority.low"),2:Q("tasks.priority.medium"),1:Q("tasks.priority.high")}[t]||Q("tasks.priority.notFound")}getTaskType(t){if(!t||!t.activityDefinitionId)return null;switch(t.activityDefinitionId){case"approved":return Q("tasks.approved");case"rejected":return Q("tasks.rejected");case"reviewTask":return Q("tasks.reviewTask");case"adhocTask":return Q("tasks.adhocTask");case"verifyTaskDone":return Q("tasks.verifyTaskDone");default:return Q("tasks.unknownTask")}}getTaskStatusLabelFromCode(t){const s=[{label:Q("tasks.statusLabel.notYetStarted"),code:"Not Yet Started"},{label:Q("tasks.statusLabel.inProgress"),code:"In Progress"},{label:Q("tasks.statusLabel.onHold"),code:"On Hold"},{label:Q("tasks.statusLabel.cancelled"),code:"Cancelled"},{label:Q("tasks.statusLabel.completed"),code:"Completed"}].find(o=>o.code===t);return s?s.label:"Unknown"}}const ra=new $0,q0=300*1e3;let Sl=null;const ec=_.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(()=>rd);t().logout();return}console.error("Failed to check active tasks:",l)}},startPolling(){Sl===null&&(this.checkTasks(),Sl=setInterval(()=>this.checkTasks(),q0))},stopPolling(){Sl!==null&&(clearInterval(Sl),Sl=null),this.hasActiveTasks=!1}}}),ed={profile:"#/personal-info",password:"#/security/signingin"};class td{constructor(t,a){this.initOptions=a,this.usernameClaim=t.OIDC_USERNAME_CLAIM||"preferred_username",this.accountUrls=t.OIDC_ACCOUNT_URLS||{},this.keycloak=new Wr(a),this.renewInterval=null,this.tokenRenewedCallbacks=[],this.sessionLostCallbacks=[]}async init(){this.keycloak.onAuthSuccess=()=>{this.renewInterval=setInterval(()=>{this.keycloak.updateToken(60).then(t=>{t&&this.notifyTokenRenewed()}).catch(()=>{this.keycloak.clearToken()})},1e4)},this.keycloak.onAuthLogout=()=>{clearInterval(this.renewInterval),this.renewInterval=null,this.notifySessionLost()},await this.keycloak.init(this.initOptions)}isAuthenticated(){return this.keycloak.authenticated===!0}async login(t){window.location.replace(this.keycloak.createLoginUrl())}async completeLogin(){return"/"}async logout(){this.keycloak.logout()}getAccessToken(){return this.keycloak.token??null}getUsername(){return this.keycloak.idTokenParsed?.[this.usernameClaim]??null}getAccountConsoleUrl(t){if(this.accountUrls[t])return this.accountUrls[t];const a=ed[t];return!a||!this.keycloak.authServerUrl||!this.keycloak.realm?null:`${this.keycloak.authServerUrl.replace(/\/+$/,"")}/realms/${this.keycloak.realm}/account/${a}`}onTokenRenewed(t){this.tokenRenewedCallbacks.push(t)}onSessionLost(t){this.sessionLostCallbacks.push(t)}notifyTokenRenewed(){this.tokenRenewedCallbacks.forEach(t=>{t()})}notifySessionLost(){this.sessionLostCallbacks.forEach(t=>{t()})}}function ld(l,{baseUrl:t,origin:a}){const s=ad(l);if(s===null)throw new Error("OIDC configuration error: OIDC_CUSTOM needs either 'oidcProvider' or both 'url' and 'realm'");if(!l.clientId)throw new Error("OIDC configuration error: OIDC_CUSTOM is missing 'clientId'");l.responseType&&console.warn(`[auth] responseType "${l.responseType}" is deprecated and ignored: the authorization code flow with PKCE is always used.`);const o=lc(t),i={authority:s,client_id:l.clientId,redirect_uri:`${a}${o}oidc-callback`,post_logout_redirect_uri:`${a}${o}`,response_type:"code",scope:l.scope||"openid profile email",automaticSilentRenew:!0,monitorSession:l.checkLoginIframe===!0,loadUserInfo:!1};return l.fetchRequestCredentials&&(i.fetchRequestCredentials=l.fetchRequestCredentials),i}function ad(l){return l.oidcProvider?tc(l.oidcProvider):l.url&&l.realm?`${tc(l.url)}/realms/${l.realm}`:null}function tc(l){return String(l).replace(/\/+$/,"")}function lc(l){const t=l||"/";return t.endsWith("/")?t:`${t}/`}const od={profile:"#/personal-info",password:"#/security/signingin"},sd=/^(.*)\/realms\/([^/]+)$/;class id{constructor(t,a){this.settings=ld(a,{baseUrl:t.BASE_URL,origin:window.location.origin}),this.usernameClaim=t.OIDC_USERNAME_CLAIM||"preferred_username",this.accountUrls=t.OIDC_ACCOUNT_URLS||{},this.user=null,this.tokenRenewedCallbacks=[],this.sessionLostCallbacks=[],this.userManager=new o2.UserManager({...this.settings,userStore:new o2.WebStorageStateStore({store:window.localStorage})}),this.userManager.events.addUserLoaded(s=>{this.user=s,this.notifyTokenRenewed()}),this.userManager.events.addSilentRenewError(s=>{console.error('[auth] Silent token renewal failed — the OIDC provider most likely issued no refresh token (check the "offline_access" scope):',s),this.notifySessionLost()}),this.userManager.events.addUserSignedOut(()=>{this.notifySessionLost()})}async init(){this.user=await this.userManager.getUser()}isAuthenticated(){return this.user!=null&&this.user.expired!==!0}async login(t){const a=t||`${window.location.pathname}${window.location.search}`;await this.userManager.signinRedirect({state:{returnTo:a}})}async completeLogin(){const t=await this.userManager.signinRedirectCallback();return this.user=t,t?.state?.returnTo||"/"}async logout(){await this.userManager.signoutRedirect()}getAccessToken(){return this.user?.access_token??null}getUsername(){return this.user?.profile?.[this.usernameClaim]??null}getAccountConsoleUrl(t){if(this.accountUrls[t])return this.accountUrls[t];const a=od[t],s=sd.exec(this.settings.authority);return!a||!s?null:`${s[1]}/realms/${s[2]}/account/${a}`}onTokenRenewed(t){this.tokenRenewedCallbacks.push(t)}onSessionLost(t){this.sessionLostCallbacks.push(t)}notifyTokenRenewed(){this.tokenRenewedCallbacks.forEach(t=>{t()})}notifySessionLost(){this.sessionLostCallbacks.forEach(t=>{t()})}}let ac=null,oc=Promise.resolve();function nd(l,t){return l.OIDC_CLIENT==="oidc-client-ts"?new id(l,t):new td(l,t)}function cd(l,t){ac=l,oc=t??Promise.resolve()}function ao(){return ac}function sc(){return oc}function oo(){const l=ao();if(l===null)throw new Error("No authentication provider installed: app.use(vueKeyCloak, …) is missing");return l}const Ae=_.defineStore({id:"UserStore",state:()=>({token:"",isAdmin:!1,isLoggedIn:!1,person:null,homeFolder:null,isPristyAdmin:null}),getters:{displayName(l){return l.person==null?"":l.person.displayName}},actions:{async logout(){ec().stopPolling(),te&&await te.logout(),this.$patch({token:"",isAdmin:!1,person:null,apiAlfresco:null,isLoggedIn:!1,isPristyAdmin:null});const l=re();if(l.isOidcAuth){try{await ye.get(`${l.ALFRESCO_HOST}/alfresco/logout`)}catch(t){console.error("Error during Alfresco logout:",t)}localStorage.removeItem("ticket-ECM"),localStorage.removeItem("ACS_USERNAME"),await ao()?.logout()}},validateSession(){return te.isLoggedIn()?re().isOidcAuth?this.getAlfTicket():y2.validateTicket().then(()=>{this.isLoggedIn=!0}).catch(()=>{this.isLoggedIn=!1}):(this.isLoggedIn=!1,Promise.resolve(void 0))},connectKeycloak:async function(l){await sc();const t=oo();if(!t.isAuthenticated()){await t.login(l);return}this.isLoggedIn||await this.validateSession(),this.person===null&&await this.getPerson()},completeLogin:async function(){await sc();const t=await oo().completeLogin();return await this.getAlfTicket(),t},accountConsoleUrl(l){return ao()?.getAccountConsoleUrl(l)??null},keycloakReady(l){return l.onTokenRenewed(()=>{this.getAlfTicket().catch(t=>{console.error("Could not refresh the Alfresco ticket:",t)})}),l.onSessionLost(()=>{this.logout().catch(t=>{console.error("Could not complete logout:",t)})}),l.isAuthenticated()?this.getAlfTicket():Promise.resolve(void 0)},getAlfTicket(l=!1){const t=re();if(!t.isOidcAuth)return console.warn("getAlfTicket() won't work in standard AUTH configuration"),Promise.resolve(void 0);const a=oo();return ye.get(`${t.ALFRESCO_HOST}/alfresco/api/-default-/public/authentication/versions/1/tickets/-me-`,{headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${a.getAccessToken()}`}}).then(s=>s.data.entry).then(s=>(te.setTicket(s.id,null),window.localStorage.setItem("ACS_USERNAME",a.getUsername()),this.isLoggedIn=!0,s)).catch(s=>{if(!l&&s.response?.status===401)return this.getAlfTicket(!0);throw this.isLoggedIn=!1,Ka(s)})},getPerson(){return ol.getPerson("-me-").then(l=>l.entry).then(l=>(this.isLoggedIn=!0,this.person=l,this.isAdmin=l.capabilities?.isAdmin===!0,l)).then(l=>ht.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 l=await Yl.listGroupMembershipsForPerson(this.person.id);this.isPristyAdmin=l.list.entries.some(t=>t.entry.id==="GROUP_PRISTY_ADMINISTRATORS")}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 te.login(l,t).then(()=>(this.isLoggedIn=!0,this.getPerson())).catch(a=>{throw this.isLoggedIn=!1,Ka(a)})},async publiclogoff(){const l=localStorage.getItem("ACS_USERNAME");l&&l.startsWith("user_publication_")&&(te.invalidateSession(),localStorage.removeItem("ticket-ECM"),localStorage.removeItem("ACS_USERNAME"))},publiclogin(l){let t=te.getTicketEcm();return typeof t<"u"&&t!=null?Promise.resolve(t):Al.executeWebScript("GET",`fr/jeci/pristy/authentication/ticket/publication/site/${l}`).then(a=>(te.setTicket(a.ticket,null),window.localStorage.setItem("ACS_USERNAME",a.login),a.ticket)).catch(a=>{throw Ka(a)})}}}),rd=Object.freeze(Object.defineProperty({__proto__:null,useUserStore:Ae},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(s=>s.key===t).items.findIndex(s=>"FolderId"in s.to.params?s.to.params.FolderId===l.to.params.FolderId:s.to.params.id===l.to.params.id);this.menu.find(s=>s.key===t).items.splice(a,1)}}});let Xl=null;const so=50,dd=["org.alfresco.share.documents.favourites","org.alfresco.share.folders.favourites"];async function md(l,t){for(const a of dd){let s;try{s=(await Ha.getPreference(l,a))?.entry?.value}catch(o){if(o?.status===404)continue;throw o}if(typeof s=="string"&&s.includes(t)){const o=s.split(",").map(i=>i.trim()).filter(i=>i&&!i.includes(t)).join(",");return await Ha.updatePreference(l,a,o),!0}}return!1}function bd(l){let t;try{t=[l?.message,l?.response?.text,typeof l?.response?.body=="string"?l.response.body:JSON.stringify(l?.response?.body),JSON.stringify(l)].filter(Boolean).join(" ")}catch{t=String(l?.message??l)}const a=t.match(/Node is not a (?:file|folder):\s*([0-9a-fA-F-]{36})/);return a?a[1]:null}const Jl=_.defineStore({id:"FavoritesStore",state:()=>({favorites:[],loaded:!1,loading:!1,loadError:!1,repairableGuid:null}),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(Xl)return Xl;this.loading=!0,this.loadError=!1,this.repairableGuid=null;const t=Ae(),a={skipCount:0,maxItems:200,include:["path"]};return Xl=Vl.listFavorites(t.person.id,a).then(s=>(this.favorites=s.list.entries.map(o=>o.entry),this.loaded=!0,this.favorites)).catch(s=>{if(s?.status===400)return Vl.listFavorites(t.person.id,{skipCount:0,maxItems:200}).then(o=>(this.favorites=o.list.entries.map(i=>i.entry),this.loaded=!0,this.favorites)).catch(o=>(console.warn("loadFavorites: favorites list unavailable",o),this.favorites=[],this.loaded=!0,this.loadError=!0,this.repairableGuid=bd(o),this.favorites));throw B("loadFavorites",s)}).finally(()=>{this.loading=!1,Xl=null}),Xl},async repairOrphanFavorites(){const l=Ae();let t=0;for(;this.repairableGuid&&t<so;){const a=this.repairableGuid;let s;try{s=await md(l.person.id,a)}catch(o){console.warn("repairOrphanFavorites: preference update failed",a,o);break}if(!s){console.warn("repairOrphanFavorites: guid not found in favourite preferences",a);break}t+=1,await this.loadFavorites(!0)}return this.repairableGuid&&t>=so&&console.warn("repairOrphanFavorites: reached safety cap",so),t},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,this.loadError=!1,this.repairableGuid=null,Xl=null}}});class pd{getFavorites(t){return Jl().loadFavorites().then(s=>t?s.filter(o=>o.target&&o.target[t]):s)}changeSingleFavorite(t,a={}){return t.isFavorite?this.deleteFavoris(t):this.createFavorite(t,a)}createFavorite(t,a={}){const s=Ae(),o=da();let i={target:{}},n={guid:t.id};return t.nodeType==="st:site"?i.target={site:n}:t.isFile?i.target={file:n}:i.target={folder:n},Vl.createFavorite(s.person.id,i).then(c=>(t.isFavorite=c.entry.targetGuid===t.id,Jl().addFavoriteToCache(c.entry),t)).then(c=>(c.isFavorite&&o.addFavorite(qn(c,a),"menuFavoris"),c)).catch(c=>{throw B("createFavorite",c)})}deleteFavoris(t){const a=Ae(),s=da();return Vl.deleteFavorite(a.person.id,t.id).then(()=>(t.isFavorite=!1,Jl().removeFavoriteFromCache(t.id),t)).then(o=>(o.isFavorite||s.removeFavorite(qn(o),"menuFavoris"),o)).catch(o=>{throw console.error(o),B("getSharedLink",o)})}}const ma=new pd;class ud{constructor(){this.lruPristyAdmin=new at({maxSize:1,maxAge:300*1e3})}clearAdminCache(){this.lruPristyAdmin.clear()}isInPristyAdminGroup(){const t="isAdmin";return this.lruPristyAdmin.has(t)?Promise.resolve(this.lruPristyAdmin.get(t)):Yl.listGroupMembershipsForPerson("-me-").then(a=>{const s=a.list.entries.some(o=>o.entry.id==="GROUP_PRISTY_ADMINISTRATORS");return this.lruPristyAdmin.set(t,s),s}).catch(a=>(console.error("Error retrieving group memberships:",a),!1))}async computeMenuActes(){let t=[],a=await Oe.searchAllWorkspaces("AND pm:typeEspace:'actes'"),s=this.actesSiteToMenuItems(a);return t.push({label:"Actes administratifs",key:"menuActes",to:{name:"mes-espaces-actes"},class:"layout-menuitem-root-text",items:s}),t}actesSiteToMenuItems(t){let a=t.map(s=>({label:s.title,class:"menu-item responsive-text",icon:"ri-folder-2-line",to:{name:"seances",params:{id:s.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,s)=>{if(!s.target)return console.warn("favoritesNodeToMenuItems, favorite has no target",s),a;const o=s.target,i=o.folder||o.file||o.site;if(!i||!i.path)return console.warn("favoritesNodeToMenuItems, target has no valid path",s),a;if(i.path.elements.find(c=>c.nodeType==="st:site")?.name){let c=this.retrieveFavorite(s);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,s=a.folder||a.file||a.site;if(!s.path){console.warn("nodeToMenuItem, favorite has no path",t);return}let o="";const i=s.path.elements.find(c=>c.nodeType==="st:site");let n;if(s.isFolder?n={name:"navigation-dossier",params:{id:i.name,FolderId:t.targetGuid}}:(n=$n(s),n.name==="edit-collabora"&&(o="_blank")),i?.name)return{label:s.name,icon:s.isFolder?"ri-folder-2-line":"ri-file-line",class:"menu-item responsive-text",target:o,to:n}}}const io=new ud,Zd={name:"ActionMenu",components:{PrimeDivider:vl,PrimeMenu:s2},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)}}},hd=["href"],yd=["href"];function Wd(l,t,a,s,o,i){const n=e.resolveComponent("PrimeDivider"),c=e.resolveComponent("router-link"),r=e.resolveComponent("PrimeMenu");return e.openBlock(),e.createBlock(r,{ref:"primeMenu",model:i.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(Z=>[e.createElementVNode("a",e.mergeProps({href:Z.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,hd)]),_: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,yd))],64))]),_:1},8,["model"])}const Ul=J(Zd,[["render",Wd]]),gd={name:"EllipsisBreadcrumb",components:{ActionMenu:Ul,PrimeButton:L,PrimeMenu:s2},directives:{tooltip:ut},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(Be,["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;S.getNode(t.id).then(s=>{this.menuActionItems=this.getBreadcrumbActions(s),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 ze.isPathElementVisible(l,t)},openModifyWorkspace(){Oe.getWorkspace(this.breadCrumbNode.name).then(l=>{l.name=l.id,this.modifyWorkspaceItem=l,this.popup="MODIFYWORKSPACE"})},openRename(){Me().selectSingleNode(this.breadCrumbNode),this.tempAspectsName=this.breadCrumbNode.aspectNames,this.breadCrumbNode.aspectNames=void 0,this.modifyPopupTitle="renameElement",this.popup="MODIFYNODE"},openModify(){Me().selectSingleNode(this.breadCrumbNode),this.tempAspectsName=this.breadCrumbNode.aspectNames,this.modifyPopupTitle="properties",this.popup="MODIFYNODE"},openMove(){Me().selectSingleNode(this.breadCrumbNode),this.popup="MOVENODE"},openCopy(){Me().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(){ma.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(){S.getNode(this.currentNode.id).then(l=>{this.breadCrumbNode.isFavorite=l.isFavorite,Oe.getWorkspace(this.breadCrumbNode.name).then(t=>{this.breadCrumbNode.title=t.title;let a=da();ma.changeSingleFavorite(this.breadCrumbNode).then(s=>{s.isFavorite?(a.addFavorite(io.siteToMenuItem(s),"menuEspaces"),this.breadCrumbNode.isFavorite=s.isFavorite,this.$toast.add({severity:"success",summary:this.$t("menu.favoris"),detail:this.$t("node.addSiteFavorite",{name:s.title}),life:3e3})):(a.removeFavorite(io.siteToMenuItem(s),"menuEspaces"),this.breadCrumbNode.isFavorite=s.isFavorite,this.$toast.add({severity:"success",summary:this.$t("menu.favoris"),detail:this.$t("node.removeSiteFavorite",{name:s.title}),life:3e3}))}).catch(s=>{console.error("erreur de favoris",s),this.$toast.add({severity:"error",summary:this.$t("node.favoriteError"),detail:s.message,life:3e3})})})})}}},Yd={key:0,class:"p-breadcrumb p-component"},Nd={class:"p-breadcrumb-list"},Ad={class:"p-menuitem"},Xd={key:0},zd={class:"p-menuitem"},Md={class:"commonElementName breadcrumbElementName"},Od={key:1,class:"ri-arrow-right-s-line breadcrumbSeparator text-2xl mb-2 mx-1"},jd={class:"p-2"},Gd={class:"ml-2 breadcrumbMenuItem"},Td={key:2,class:"ri-arrow-right-s-line breadcrumbSeparator text-2xl mb-2 mx-1"},wd={key:3},fd={class:"p-menuitem"},Id={class:"commonElementName breadcrumbElementName"},vd={class:"p-menuitem"};function Ld(l,t,a,s,o,i){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",Yd,[e.createElementVNode("div",Nd,[e.createElementVNode("div",Ad,[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",Xd,[e.createElementVNode("div",zd,[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",Md,[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",Od)),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]=Z=>i.toggleBreadCrumbMenu(Z))},null,8,["aria-label"]),e.createVNode(r,{ref:"menuBreadcrumb",model:o.menuBreadcrumbItems,popup:""},{item:e.withCtx(({item:Z})=>[e.createElementVNode("div",jd,[e.createVNode(n,{to:Z.route},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["ml-2 breadcrumbMenuItem",Z.icon])},null,2),e.createElementVNode("span",Gd,e.toDisplayString(Z.label),1)]),_:2},1032,["to"])])]),_:1},8,["model"]),a.isVerySmallScreen?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("i",Td)),a.isVerySmallScreen?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",wd,[e.createElementVNode("div",fd,[e.createVNode(n,{to:i.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",Id,[e.createTextVNode(e.toDisplayString(i.secondToLastItem.name),1)])),[[h,i.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",vd,[e.createVNode(n,{to:i.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(i.lastItem.name),1)],2)),[[h,i.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]=Z=>i.toggleMenuActionButton(Z,i.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 ic=J(gd,[["render",Ld],["__scopeId","data-v-546d4546"]]),Dd={name:"BreadCrumbAlfresco",components:{ActionMenu:Ul,PrimeButton:L,PrimeBreadcrumb:gr},directives:{tooltip:ut},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(Be,["isInConsultation","isInUserHome"])},methods:{isLastItem(l){return l.item===this.path[this.path.length-1]},toggleMenuActionButton(l,t){const a=l.currentTarget||l.target;S.getNode(t.item.id).then(s=>{this.breadCrumbActions=this.getBreadcrumbActions(s),this.$refs.breadcrumbMenuAction.getActionMenuRef().toggle({currentTarget:a})})},isNodeIgnore(l,t){return ze.isPathElementVisible(l,t)}}},Rd={class:"flex align-items-center"};function kd(l,t,a,s,o,i){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(Z=>[e.createElementVNode("div",Rd,[e.createVNode(n,{to:Z.item.to,class:"flex align-items-center"},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(Z.icon)},null,2),Z.item.nodeType==="st:site"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ri-building-line breadcrumbIcon",{"primary-color":!i.isLastItem(Z),searchOrConsultActiveClass:a.isInSearch||l.isInConsultation}]),"aria-hidden":"true"},null,2)):Z.item.nodeType==="home"?(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass(["ri-home-4-line breadcrumbIcon",{"primary-color":!i.isLastItem(Z),searchOrConsultActiveClass:a.isInSearch||l.isInConsultation}]),"aria-hidden":"true"},null,2)):Z.item.isFolder?(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass(["ri-folder-2-line breadcrumbIcon",{"primary-color":!i.isLastItem(Z),searchOrConsultActiveClass:a.isInSearch||l.isInConsultation,lastItemElementName:i.isLastItem(Z)&&!a.isInSearch&&!l.isInConsultation}]),"aria-hidden":"true"},null,2)):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["commonElementName",{lastItemElementName:i.isLastItem(Z)&&!a.isInSearch&&!l.isInConsultation,breadcrumbElementName:!i.isLastItem(Z),searchOrConsultActiveClass:a.isInSearch||l.isInConsultation}])},[e.createTextVNode(e.toDisplayString(Z.item.name),1)],2)),[[h,Z.item.name]])]),_:2},1032,["to"]),i.isLastItem(Z)&&!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:p=>i.toggleMenuActionButton(p,Z)},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 nc=J(Dd,[["render",kd],["__scopeId","data-v-e9dff6fc"]]),Cd=["en","fr"],Fd=["o","Ko","Mo","Go","To"],Vd=["o","Ko","Mo","Go","To"];class xd{convertBytesToSize(t){if(t==null||t==="")return"";let a=parseInt(t);if(a===0)return"0";const o=this.currentLang()==="fr"?Vd:Fd;let i=Math.floor(Math.log(a)/Math.log(1024)),n=a/Math.pow(1024,i);return`${n<10&&i>0?n.toFixed(1):Math.round(n)} ${o[i]}`}currentLang(){let t=localStorage?.getItem("user.language")||window?.navigator?.language;return t.indexOf("-")>0&&(t=t.substring(0,t.indexOf("-"))),Cd.includes(t)||(t="en"),t}}const cc=new xd,rc=sl.global.t;class Sd{toLocaleDateString(t){if(!t)return"";let a=new Date(t);return new Intl.DateTimeFormat("fr-FR").format(a)}formatDate(t){return Vt.formatDate(new Date(t),"ddd D MMM YYYY")}formatDateTime(t){return Vt.formatDate(new Date(t),"ddd D MMM YYYY - HH:mm:ss")}formatBool(t){if(t===!0)return rc("yes");if(t===!1)return rc("no")}}const ba=new Sd,Ze=sl.global.t;class Jd{getIcon(t){let a;if(t.isFile){const s=t.content?.mimeType??"";switch(s){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"&&(s.startsWith("image/")?a="image-unknow":s.startsWith("video/")?a="video-unknow":s.startsWith("audio/")?a="audio-unknow":s.startsWith("text/")?a="text-unknow":(s.startsWith("application/x-font-")||s.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=Ze("dossier");else if(t.isFile){const s=t.content?.mimeType??"";if(s.startsWith("image/"))a=Ze("fichier_image");else if(s.startsWith("video/"))a=Ze("fichier_video");else switch(s){case"application/pdf":a=Ze("fichier_pdf");break;case"message/rfc822":a=Ze("fichier_eml");break;case"application/vnd.oasis.opendocument.text":case"application/vnd.openxmlformats-officedocument.wordprocessingml.document":case"application/msword":case"application/rtf":a=Ze("fichier_texte");break;case"application/vnd.ms-excel":case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":case"application/vnd.oasis.opendocument.spreadsheet":a=Ze("fichier_tableur");break;case"application/vnd.oasis.opendocument.graphics":a=Ze("fichier_dessin");break;case"application/vnd.oasis.opendocument.presentation":case"application/vnd.ms-powerpoint":case"application/vnd.openxmlformats-officedocument.presentationml.presentation":a=Ze("fichier_presentation");break;case"text/plain":a=Ze("fichier_texte");break;case"text/markdown":case"text/x-markdown":case"text/x-web-markdown":a=Ze("fichier_markdown");break;case"application/json":a=Ze("fichier_json");break;case"text/xml":case"application/xml":a=Ze("fichier_xml");break;case"text/html":a=Ze("fichier_html");break;case"text/css":a=Ze("fichier_css");break;case"text/csv":a=Ze("fichier_csv");break;case"application/x-javascript":case"text/javascript":a=Ze("fichier_javascript");break;case"text/sql":a=Ze("fichier_sql");break;case"application/x-sh":case"text/x-sh":a=Ze("fichier_shell");break;case"application/x-yaml":case"text/yaml":case"text/x-yaml":a=Ze("fichier_yaml");break;case"text/x-python":case"application/x-python":a=Ze("fichier_python");break;case"text/typescript":case"application/typescript":case"text/x-typescript":a=Ze("fichier_typescript");break;case"text/x-php":case"application/x-php":a=Ze("fichier_php");break;case"text/x-java":case"text/x-java-source":a=Ze("fichier_java");break;case"text/x-c":case"text/x-c++":case"text/x-go":case"text/x-rust":case"text/x-ruby":a=Ze("fichier_code");break;case"application/x-ini":case"text/x-ini":case"application/toml":case"text/x-toml":a=Ze("fichier_config");break;case"text/x-log":a=Ze("fichier_log");break;default:a=Ze("fichier")}}else t.nodeType==="st:site"?a=Ze("espace"):a=t.nodeType;return a}}const cl=new Jd,Ud={name:"ContentTableView",components:{PristyIcon:xl,PrimeButton:L,PrimeImage:Ia,PrimeDataTable:Dl,PrimeCheckBox:St,PrimeColumn:Rl},directives:{tooltip:ut},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,s)=>a&&a[s]!==void 0?a[s]:void 0,l)},alfrescoFileService(){return ze},convertBytesToSize(l){return cc.convertBytesToSize(l)},toLocaleDateString(l){return ba.toLocaleDateString(l)},displaySvg(l){return l.isFile&&l.content?.mimeType==="image/svg+xml"},loadIcon(l){return cl.getIcon(l)},loadIconLabel(l){return cl.getIconLabel(l)},onImageLoadFailure(l,t){ze.onImageLoadFailure(l,t)},displayThumb(l){return ze.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)}}},Hd={"data-tour":"select-all-checkbox"},Qd={"data-tour":"item-checkbox"},Bd=["src","alt"],Ed=["src","alt","onError"],Pd={key:0},_d={class:"ri-lock-line","aria-hidden":"true"},Kd={key:1},$d=["aria-label","onClick"],qd=["onClick"],em=["onClick"],tm={class:"datatable-buttons"};function lm(l,t,a,s,o,i){const n=e.resolveComponent("PrimeCheckBox"),c=e.resolveComponent("PrimeColumn"),r=e.resolveComponent("PrimeImage"),m=e.resolveComponent("PristyIcon"),h=e.resolveComponent("router-link"),Z=e.resolveComponent("PrimeButton"),p=e.resolveComponent("PrimeDataTable"),Y=e.resolveDirective("tooltip");return a.currentNode?(e.openBlock(),e.createBlock(p,{"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",Hd,[e.createVNode(n,{modelValue:i.isPageSelectedCopy,"onUpdate:modelValue":t[0]||(t[0]=A=>i.isPageSelectedCopy=A),binary:""},null,8,["modelValue"])])]),body:e.withCtx(A=>[e.createElementVNode("div",Qd,[e.createVNode(n,{id:A.data.id,modelValue:i.selectedNodesCopy,"onUpdate:modelValue":t[1]||(t[1]=X=>i.selectedNodesCopy=X),name:"option",value:A.data},null,8,["id","modelValue","value"])])]),_:1}),e.createVNode(c,{header:l.$t("column.thumbnail"),style:{width:"5rem"}},{body:e.withCtx(A=>[(e.openBlock(),e.createElementBlock("div",{key:A.data.id,"data-tour":"thumbnail"},[i.displaySvg(A.data)?(e.openBlock(),e.createBlock(r,{key:0,class:"shadow-2 cursor-pointer",onClick:X=>i.openPreviewPanel(A.data)},{image:e.withCtx(()=>[e.createElementVNode("img",{src:i.alfrescoFileService().getContentUrl(A.data.id),alt:A.data.name,class:"max-h-3rem max-w-3rem"},null,8,Bd)]),_:2},1032,["onClick"])):i.displayThumb(A.data)?(e.openBlock(),e.createBlock(r,{key:1,class:"shadow-2 cursor-pointer",onClick:X=>i.openPreviewPanel(A.data)},{image:e.withCtx(()=>[e.createElementVNode("img",{src:i.alfrescoFileService().getThumbnailUrl(A.data.id),alt:A.data.name,class:"max-h-3rem max-w-3rem",onError:X=>i.onImageLoadFailure(X,A.data)},null,40,Ed)]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(m,{class:"icon cursor-pointer",hidden:"","svg-file-name":i.loadIcon(A.data),onClick:X=>i.clickIcon(A.data)},null,8,["svg-file-name","onClick"]),[[Y,i.loadIconLabel(A.data)]]),!i.displayThumb(A.data)&&!i.displaySvg(A.data)?e.withDirectives((e.openBlock(),e.createBlock(m,{key:2,class:"icon cursor-pointer","svg-file-name":i.loadIcon(A.data),onClick:X=>i.clickIcon(A.data)},null,8,["svg-file-name","onClick"])),[[Y,i.loadIconLabel(A.data)]]):e.createCommentVNode("",!0)]))]),_:1},8,["header"]),i.hasLockedItem||i.hasBrokenInheritance?(e.openBlock(),e.createBlock(c,{key:0,style:{width:"3rem"}},{body:e.withCtx(A=>[A.data.isLocked?(e.openBlock(),e.createElementBlock("div",Pd,[e.withDirectives(e.createElementVNode("i",_d,null,512),[[Y,i.alfrescoFileService().tooltipLockContent(A.data)]])])):A.data.permissions?.isInheritanceEnabled===!1?(e.openBlock(),e.createElementBlock("div",Kd,[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",A.data),["stop"])},[...t[2]||(t[2]=[e.createElementVNode("i",{class:"ri-shield-user-line text-orange-500","aria-hidden":"true"},null,-1)])],8,$d)),[[Y,l.$t("restrictedPermissions")]])])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.visibleColumns,(A,X)=>(e.openBlock(),e.createBlock(c,{key:X,header:A.label,style:e.normalizeStyle(A.key==="name"?"max-width: 40vw; min-width: 12rem;":"")},{body:e.withCtx(z=>[A.action==="navigateTo"?e.withDirectives((e.openBlock(),e.createBlock(h,{key:0,to:i.collaboraService.getRoute(z.data),class:e.normalizeClass([{underline:i.isCurrentNodeDisplayed(z.data),"text-overflow":A.key==="name"},"noColorElement"]),onClick:y=>i.handleNavigateClick(y,z.data)},{default:e.withCtx(()=>[z.data.aspectNames?.includes(A.displayIconForProperty)?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(A.icon),"aria-hidden":"true"},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(i.applyFormat(i.getValue(z.data,A.key),A.format)),1)]),_:2},1032,["to","class","onClick"])),[[Y,i.getValue(z.data,A.key),void 0,{bottom:!0}]]):A.hasTooltip?e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass({"cursor-pointer":!!A.action,"text-overflow":A.key==="name"}),onClick:y=>i.applyAction(A.action,z.data)},[e.createTextVNode(e.toDisplayString(i.applyFormat(i.getValue(z.data,A.key),A.format)),1)],10,qd)),[[Y,i.getValue(z.data,A.key),void 0,{bottom:!0}]]):(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass({"cursor-pointer":!!A.action,"text-overflow":A.key==="name"}),onClick:y=>i.applyAction(A.action,z.data)},e.toDisplayString(i.applyFormat(i.getValue(z.data,A.key),A.format)),11,em))]),_:2},1032,["header","style"]))),128)),e.createVNode(c,null,{body:e.withCtx(A=>[e.createElementVNode("div",tm,[A.data.isFile&&!a.isPreviewPanelVisible&&!a.isSmallScreen?e.withDirectives((e.openBlock(),e.createBlock(Z,{key:0,"aria-label":l.$t("share.shareLinkSettings"),class:"simple",type:"button",icon:"ri-share-line",disabled:a.selectedNodes.length>1,rounded:"",text:"",onClick:X=>i.openShareLink(A.data)},null,8,["aria-label","disabled","onClick"])),[[Y,l.$t("share.shareLinkSettings")]]):e.createCommentVNode("",!0),!a.isPreviewPanelVisible&&!a.isSmallScreen&&!a.isInUserHome?e.withDirectives((e.openBlock(),e.createBlock(Z,{key:1,"aria-label":l.$t("add/removeFavorite"),class:"simple",type:"button",icon:A.data.isFavorite?"ri-star-fill":"ri-star-line",disabled:a.selectedNodes.length>1,rounded:"",text:"",onClick:X=>i.toggleFavorite(A.data)},null,8,["aria-label","icon","disabled","onClick"])),[[Y,l.$t("add/removeFavorite")]]):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(Z,{"aria-label":l.$t("moreActions"),class:"simple",type:"button",icon:"ri-more-2-line",disabled:a.selectedNodes.length>1,rounded:"",text:"",onClick:X=>i.toggleFileActionMenu(X,A.data)},null,8,["aria-label","disabled","onClick"]),[[Y,l.$t("moreActions"),void 0,{left:!0}]])])]),_:1})]),_:1},8,["value","state-key","data-key","filters","class"])):e.createCommentVNode("",!0)}const no=J(Ud,[["render",lm],["__scopeId","data-v-ef7b0e1a"]]),am={name:"ContentListView",components:{PristyIcon:xl,PrimeButton:L,PrimeCheckBox:St},directives:{tooltip:ut},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 ze},toLocaleDateString(l){return ba.toLocaleDateString(l)},loadIcon(l){return cl.getIcon(l)},loadIconLabel(l){return cl.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)}}},om={class:"border-1 border-100 overflow-hidden p-1"},sm={class:"flex align-items-center"},im={class:"mr-3 pl-2 ml-1","data-tour":"item-checkbox"},nm={key:0},cm={class:"mr-2 ri-lock-line","aria-hidden":"true"},rm={class:"flex overflow-hidden align-items-center w-full"},dm=["onClick"],mm={key:0,"data-tour":"thumbnail"},bm=["aria-label","onClick"],pm={key:2,class:"mr-1 ri-folder-2-line","aria-hidden":"true"},um=["aria-label","onClick"],Zm=["onClick"],hm={key:0,class:"p-text-secondary p-text-sm text-400"},ym={class:"justify-content-evenly w-fit"},Wm={key:0,class:"flex w-fit"},gm={key:1,class:"flex w-fit"};function Ym(l,t,a,s,o,i){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,(Z,p)=>(e.openBlock(),e.createElementBlock("div",{"data-testid":"content-list-view",key:p,class:"w-full",role:"listitem"},[e.createElementVNode("div",om,[e.createElementVNode("div",sm,[e.createElementVNode("div",im,[e.createVNode(n,{id:Z.id,modelValue:i.selectedNodesCopy,"onUpdate:modelValue":t[0]||(t[0]=Y=>i.selectedNodesCopy=Y),class:"align-items-center justify-content-center",name:"option",value:Z},null,8,["id","modelValue","value"])]),Z.isLocked?(e.openBlock(),e.createElementBlock("div",nm,[e.withDirectives(e.createElementVNode("i",cm,null,512),[[h,i.alfrescoFileService().tooltipLockContent(Z)]])])):e.createCommentVNode("",!0),e.createElementVNode("div",rm,[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=>i.nodeClicked(Z)},[Z.isFile?(e.openBlock(),e.createElementBlock("span",mm,[e.withDirectives(e.createVNode(c,{class:"small_icon cursor-pointer mr-2","svg-file-name":i.loadIcon(Z),onClick:Y=>i.clickIcon(Z)},null,8,["svg-file-name","onClick"]),[[h,i.loadIconLabel(Z)]])])):e.createCommentVNode("",!0),Z.isFile&&Z.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",Z),["stop"])},[...t[1]||(t[1]=[e.createElementVNode("i",{class:"mr-2 ri-shield-user-line text-orange-500","aria-hidden":"true"},null,-1)])],8,bm)),[[h,l.$t("restrictedPermissions")]]):e.createCommentVNode("",!0),Z.isFolder?(e.openBlock(),e.createElementBlock("i",pm)):e.createCommentVNode("",!0),Z.isFolder&&Z.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",Z),["stop"])},[...t[2]||(t[2]=[e.createElementVNode("i",{class:"mr-2 ri-shield-user-line text-orange-500","aria-hidden":"true"},null,-1)])],8,um)),[[h,l.$t("restrictedPermissions")]]):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createBlock(r,{to:i.collaboraService.getRoute(Z),class:e.normalizeClass({underline:i.isCurrentNodeDisplayed(Z)})},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(Z.name),1)]),_:2},1032,["to","class"])),[[h,Z.name,void 0,{top:!0}]]),e.createElementVNode("div",{class:"overflow-hidden white-space-nowrap text-overflow-ellipsis",onClick:Y=>i.openPreviewPanel(Z)},[Z.properties&&Z.properties["cm:title"]?e.withDirectives((e.openBlock(),e.createElementBlock("span",hm,[e.createTextVNode(e.toDisplayString(Z.properties["cm:title"]),1)])),[[h,Z.properties["cm:title"],void 0,{bottom:!0}]]):e.createCommentVNode("",!0)],8,Zm)],8,dm),e.createElementVNode("div",{class:e.normalizeClass(["mx-4",{hidden:a.isPreviewPanelVisible}])},e.toDisplayString(i.toLocaleDateString(Z.modifiedAt)),3),e.createElementVNode("div",ym,[a.isPreviewPanelVisible||a.isSmallScreen?(e.openBlock(),e.createElementBlock("div",Wm,[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",disabled:a.selectedNodes.length>1,onClick:Y=>i.toggleFileActionMenu(Y,Z)},null,8,["aria-label","disabled","onClick"]),[[h,l.$t("moreActions")]])])):(e.openBlock(),e.createElementBlock("div",gm,[e.withDirectives(e.createVNode(m,{"aria-label":l.$t("open"),icon:"ri-external-link-line",severity:"secondary",class:"mr-1",size:"small",disabled:a.selectedNodes.length>1,onClick:Y=>i.openInNewTab(Z)},null,8,["aria-label","disabled","onClick"]),[[h,l.$t("open"),void 0,{top:!0}]]),Z.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",disabled:a.selectedNodes.length>1,onClick:Y=>i.openShareLink(Z)},null,8,["aria-label","disabled","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:Z.isFavorite?"ri-star-fill":"ri-star-line",class:"mr-1",severity:"primary",size:"small",disabled:a.selectedNodes.length>1,onClick:Y=>i.toggleFavorite(Z)},null,8,["aria-label","icon","disabled","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",disabled:a.selectedNodes.length>1,onClick:Y=>i.toggleFileActionMenu(Y,Z)},null,8,["aria-label","disabled","onClick"]),[[h,l.$t("moreActions"),void 0,{top:!0}]])]))])])])])]))),128)}const co=J(am,[["render",Ym],["__scopeId","data-v-af65ba77"]]),Nm={name:"ContentGridView",components:{PristyIcon:xl,PrimeButton:L,PrimeCheckBox:St,PrimeImage:Ia},directives:{tooltip:ut},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 ze},toLocaleDateString(l){return ba.toLocaleDateString(l)},displaySvg(l){return l.isFile&&l.content?.mimeType==="image/svg+xml"},loadIcon(l){return cl.getIcon(l)},loadIconLabel(l){return cl.getIconLabel(l)},onImageLoadFailure(l,t){ze.onImageLoadFailure(l,t)},displayThumb(l){return ze.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)}}},Am=["aria-label"],Xm={class:"border-1 border-round border-100 w-20rem overflow-hidden"},zm={class:"px-4 surface-100 h-17rem"},Mm={class:"flex justify-content-between flex-wrap align-items-center h-4rem"},Om={"data-tour":"item-checkbox"},jm={key:0},Gm={class:"ri-lock-line","aria-hidden":"true"},Tm=["aria-label","onClick"],wm=["onClick"],fm=["src","alt"],Im=["src","alt","onError"],vm={class:"flex justify-content-between"},Lm={class:"p-3"};function Dm(l,t,a,s,o,i){const n=e.resolveComponent("PrimeCheckBox"),c=e.resolveComponent("router-link"),r=e.resolveComponent("PrimeButton"),m=e.resolveComponent("PrimeImage"),h=e.resolveComponent("PristyIcon"),Z=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,(p,Y)=>(e.openBlock(),e.createElementBlock("div",{key:Y,class:"p-2",role:"listitem"},[e.createElementVNode("div",Xm,[e.createElementVNode("div",zm,[e.createElementVNode("div",Mm,[e.createElementVNode("div",Om,[e.createVNode(n,{id:p.id,modelValue:i.selectedNodesCopy,"onUpdate:modelValue":t[0]||(t[0]=A=>i.selectedNodesCopy=A),class:"flex align-items-center justify-content-center",name:"option",value:p},null,8,["id","modelValue","value"])]),p.isLocked?(e.openBlock(),e.createElementBlock("div",jm,[e.withDirectives(e.createElementVNode("i",Gm,null,512),[[Z,i.alfrescoFileService().tooltipLockContent(p)]])])):p.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(A=>l.$emit("open-members",p),["stop"])},[...t[1]||(t[1]=[e.createElementVNode("i",{class:"ri-shield-user-line text-orange-500","aria-hidden":"true"},null,-1)])],8,Tm)),[[Z,l.$t("restrictedPermissions")]]):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createBlock(c,{to:i.collaboraService.getRoute(p),class:e.normalizeClass(["text-sm font-medium overflow-hidden text-overflow-ellipsis flex align-items-center white-space-nowrap p-2 noColorElement",[i.isCurrentNodeDisplayed(p)?"underline":"",p.isLocked||p.permissions?.isInheritanceEnabled===!1?"w-10rem":"w-12rem"]])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.name),1)]),_:2},1032,["to","class"])),[[Z,p.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",disabled:a.selectedNodes.length>1,rounded:"",text:"",onClick:A=>i.toggleFileActionMenu(A,p)},null,8,["aria-label","disabled","onClick"]),[[Z,l.$t("moreActions"),void 0,{top:!0}]])]),(e.openBlock(),e.createElementBlock("div",{key:p.id,class:"flex justify-content-center cursor-pointer","data-tour":"thumbnail",onClick:A=>i.nodeClicked(p)},[e.createElementVNode("div",null,[i.displaySvg(p)?(e.openBlock(),e.createBlock(m,{key:0,onClick:A=>i.openPreviewPanel(p)},{image:e.withCtx(()=>[e.createElementVNode("img",{src:i.alfrescoFileService().getContentUrl(p.id),alt:p.name,class:"max-h-12rem max-w-12rem"},null,8,fm)]),_:2},1032,["onClick"])):i.displayThumb(p)?(e.openBlock(),e.createBlock(m,{key:1,onClick:A=>i.openPreviewPanel(p)},{image:e.withCtx(()=>[e.createElementVNode("img",{src:i.alfrescoFileService().getPreviewUrl(p.id),alt:p.name,class:"max-h-12rem max-w-12rem",onError:A=>i.onImageLoadFailure(A,p)},null,40,Im)]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(h,{class:"h-13rem w-13rem m-auto cursor-pointer",hidden:"","svg-file-name":i.loadIcon(p),onClick:A=>i.clickIcon(p)},null,8,["svg-file-name","onClick"]),[[Z,i.loadIconLabel(p)]]),!i.displayThumb(p)&&!i.displaySvg(p)?e.withDirectives((e.openBlock(),e.createBlock(h,{key:2,class:"h-13rem w-13rem m-auto cursor-pointer","svg-file-name":i.loadIcon(p),onClick:A=>i.clickIcon(p)},null,8,["svg-file-name","onClick"])),[[Z,i.loadIconLabel(p)]]):e.createCommentVNode("",!0)])],8,wm))]),e.createElementVNode("div",vm,[e.createElementVNode("div",Lm,e.toDisplayString(l.$t("column.modifiedAt"))+" "+e.toDisplayString(i.toLocaleDateString(p.modifiedAt)),1),e.createVNode(c,{to:i.collaboraService.getRoute(p)},{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"]),[[Z,l.$t("open"),void 0,{top:!0}]])]),_:1},8,["to"])])])]))),128))],8,Am)}const ro=J(Nm,[["render",Dm]]);class Rm{constructor(){this.lruGroupMemberships=new at({maxSize:20,maxAge:3e4}),this.lruPeople=new at({maxSize:50,maxAge:300*1e3})}getUser(t){const a=`user_${t}`;if(this.lruPeople.has(a))return Promise.resolve(this.lruPeople.get(a));const s={include:["properties","aspectNames","capabilities"]};return ol.getPerson(t,s).then(o=>(this.lruPeople.set(a,o.entry),o.entry)).catch(o=>{throw B("getUser",o)})}getUserWithOpts(t,a){const s=`user_with_opts_${t}_${JSON.stringify(a)}`;return this.lruPeople.has(s)?Promise.resolve(this.lruPeople.get(s)):ol.getPerson(t,a).then(o=>(this.lruPeople.set(s,o),o)).catch(o=>{throw B("getUser",o)})}updateUser(t,a){return ol.updatePerson(t,a).then(s=>{const o=`user_${t}`;this.lruPeople.delete(o);for(const i of this.lruPeople.keys())i.startsWith(`user_with_opts_${t}_`)&&this.lruPeople.delete(i);return s.entry}).catch(s=>{throw B("updateUser",s)})}listGroups(t,a=!1){const s=`groups_${t}`;if(!a&&this.lruGroupMemberships.has(s))return Promise.resolve(this.lruGroupMemberships.get(s));const o={};return Yl.listGroupMembershipsForPerson(t,o).then(i=>(this.lruGroupMemberships.set(s,i.list.entries),i.list.entries)).catch(i=>{throw B("listGroups",i)})}listUsers(t=!1){const a="users";if(!t&&this.lruPeople.has(a))return Promise.resolve(this.lruPeople.get(a));const s={include:["properties","aspectNames","capabilities"]};return ol.listPeople(s).then(o=>{const i=o.list.entries.map(n=>n.entry);return this.lruPeople.set(a,i),i}).catch(o=>{throw B("getAllUsers",o)})}listUsersWithOpts(t,a=!1){const s=`users_with_opts_${JSON.stringify(t)}`;return!a&&this.lruPeople.has(s)?Promise.resolve(this.lruPeople.get(s)):ol.listPeople(t).then(o=>(this.lruPeople.set(s,o),o)).catch(o=>{throw B("getAllUsers",o)})}capitalizeFirstLetter(t){return t.charAt(0).toUpperCase()+t.slice(1)}searchUser(t,a,s={}){const o=t.toUpperCase(),i=t.toLowerCase(),n=this.capitalizeFirstLetter(t),c=(Y,A,X="suffix")=>A.map(z=>{const y=X==="surround"?`*${z}*`:`${z}*`;return`${Y}:"${y}"`}).join(" OR "),r=[o,i,n],p={query:{language:"afts",query:`${`(TYPE:"cm:person" AND (${["cm:userName","cm:firstName","cm:lastName","cm:email"].map(Y=>c(Y,r,"suffix")).join(" OR ")}))`}`},localization:{locales:["en_US"]},include:["aspectNames","properties"],paging:{maxItems:s.maxItems||1e3,skipCount:s.skipCount||0},sort:a};return ht.search(p)}getUserGroups(t,a=!1){const s={fields:["id"]};return!a&&!this.lruGroupMemberships.has(t)?Yl.listGroupMembershipsForPerson(t,s).then(o=>{const i=Object.values(o.list.entries).map(n=>n.entry.id);return this.lruGroupMemberships.set(t,i),i}):Promise.resolve(this.lruGroupMemberships.get(t))}}const mo=new Rm,km={name:"CreateWorkflowPopup",components:{PrimeDialog:Je,PrimeButton:L,PrimeDataTable:Dl,PrimeColumn:Rl,PrimeDropdown:At,PrimeSteps:Yr,PrimeAvatar:va,PrimeInputText:we,PrimeIconField:Nr,PrimeCalendar:La,PrimeTextArea:hl,PrimeInputIcon:Ar,PrimeCheckbox:St,PrimeMessage:it},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 Be().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 Me().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,Oe.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,mo.searchUser(l).then(t=>{let s=(t.list.entries||[]).map(o=>{const i=o.entry.properties;return{id:i["cm:userName"],displayName:`${i["cm:firstName"]||""} ${i["cm:lastName"]||""}`.trim(),email:i["cm:email"]||""}}).filter(o=>!["publication","pastell"].some(i=>o.id.includes(i)));if(this.workspaceMembersOnly&&this.workspaceId)return Oe.getWorkspaceMemberships(this.workspaceId).then(o=>{const i=new Set(o.map(n=>n.id));this.usersList=s.filter(n=>i.has(n.id))});this.usersList=s}).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 s=Me().files.map(o=>({id:o.id}));ra.addProcessItems(a,s).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})})}}},Cm={key:0,class:"mb-3"},Fm={class:"font-bold"},Vm={class:"mt-2 pl-4"},xm={class:"flex flex-column h-12rem"},Sm={class:"flex flex-column gap-3"},Jm={class:"field flex flex-column gap-2"},Um={for:"dueDate",class:"font-bold"},Hm={class:"flex pt-4 justify-content-end"},Qm={"data-testid":"create-workflow-popup-step2"},Bm={class:"flex flex-column"},Em={class:"flex flex-column gap-3"},Pm={class:"field flex flex-column gap-2"},_m={for:"dueDate",class:"font-bold"},Km={key:0,class:"card selection-card"},$m={class:"flex flex-column"},qm={class:"flex flex-column gap-3"},eb={class:"flex justify-content-between align-items-center"},tb={key:0,class:"flex align-items-center"},lb={for:"workspace-members-only",class:"ml-2"},ab={class:"flex pt-4 justify-content-between"},ob={"data-testid":"create-workflow-popup-step3"},sb={class:"flex flex-column h-12rem"},ib={class:"flex flex-column gap-3"},nb={class:"field flex flex-column gap-2"},cb={for:"dueDate",class:"font-bold"},rb={class:"flex flex-column gap-2"},db={for:"priority",class:"font-bold"},mb={class:"flex pt-4 justify-content-between"},bb={"data-testid":"create-workflow-popup-step4"},pb={class:"flex flex-column h-12rem"},ub={for:"priority",class:"font-bold"},Zb={class:"flex pt-4 justify-content-between"};function hb(l,t,a,s,o,i){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeSteps"),r=e.resolveComponent("PrimeDropdown"),m=e.resolveComponent("PrimeCheckbox"),h=e.resolveComponent("PrimeInputIcon"),Z=e.resolveComponent("PrimeInputText"),p=e.resolveComponent("PrimeIconField"),Y=e.resolveComponent("PrimeAvatar"),A=e.resolveComponent("PrimeColumn"),X=e.resolveComponent("PrimeDataTable"),z=e.resolveComponent("PrimeCalendar"),y=e.resolveComponent("PrimeTextArea"),I=e.resolveComponent("PrimeMessage"),j=e.resolveComponent("PrimeDialog");return e.openBlock(),e.createBlock(j,{"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(v=>i.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]=v=>i.closePopup(!1))},null,8,["aria-label"])]),default:e.withCtx(()=>[e.createVNode(c,{"data-testid":"create-workflow-popup-stepper",model:i.stepItems,"active-step":o.activeStep,class:"mb-4"},null,8,["model","active-step"]),i.selectedFiles.length>1?(e.openBlock(),e.createElementBlock("div",Cm,[e.createElementVNode("label",Fm,e.toDisplayString(l.$t("workflow.selectedDocuments")),1),e.createElementVNode("ul",Vm,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.selectedFiles,v=>(e.openBlock(),e.createElementBlock("li",{key:v.id},e.toDisplayString(v.name),1))),128))])])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",null,[e.createElementVNode("div",xm,[e.createElementVNode("div",Sm,[e.createElementVNode("div",Jm,[e.createElementVNode("label",Um,[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]=v=>o.selectedWorkflowType=v),options:o.workflowOptions,"option-label":"label",placeholder:l.$t("workflow.workflowType")},null,8,["modelValue","options","placeholder"])])])]),e.createElementVNode("div",Hm,[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:i.nextStep},null,8,["label","onClick"])])],512),[[e.vShow,o.activeStep===0]]),e.withDirectives(e.createElementVNode("div",Qm,[e.createElementVNode("div",Bm,[e.createElementVNode("div",Em,[e.createElementVNode("div",Pm,[e.createElementVNode("label",_m,[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",Km," Sélection de l'utilisateur "+e.toDisplayString(o.assignee.displayName||o.assignee.id),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",$m,[e.createElementVNode("div",qm,[e.createVNode(X,{"data-testid":"create-workflow-popup-users-table",id:"users",selection:o.assignee,"onUpdate:selection":t[4]||(t[4]=v=>o.assignee=v),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",eb,[i.workspaceId?(e.openBlock(),e.createElementBlock("div",tb,[e.createVNode(m,{modelValue:o.workspaceMembersOnly,"onUpdate:modelValue":t[2]||(t[2]=v=>o.workspaceMembersOnly=v),"input-id":"workspace-members-only","data-testid":"create-workflow-popup-workspace-members-only",binary:"",onChange:i.onSearchInput},null,8,["modelValue","onChange"]),e.createElementVNode("label",lb,e.toDisplayString(l.$t("workflow.workspaceMembersOnly")),1)])):e.createCommentVNode("",!0),e.createVNode(p,{"icon-position":"left"},{default:e.withCtx(()=>[e.createVNode(h,{class:"ri-search-line"}),e.createVNode(Z,{"data-testid":"create-workflow-popup-users-search-input",modelValue:o.searchInput,"onUpdate:modelValue":t[3]||(t[3]=v=>o.searchInput=v),placeholder:l.$t("search"),onInput:i.onSearchInput},null,8,["modelValue","placeholder","onInput"])]),_:1})])]),default:e.withCtx(()=>[e.createVNode(A,{field:"avatar"},{body:e.withCtx(v=>[e.createVNode(Y,{label:v.data.displayName.charAt(0),size:"large",class:"avatar-blue",shape:"circle"},null,8,["label"])]),_:1}),e.createVNode(A,{field:"name",header:l.$t("column.name"),sortable:""},{body:e.withCtx(v=>[e.createElementVNode("span",null,e.toDisplayString(v.data.displayName),1)]),_:1},8,["header"]),e.createVNode(A,{field:"id",header:l.$t("column.id"),sortable:""},{body:e.withCtx(v=>[e.createElementVNode("span",null,e.toDisplayString(v.data.id),1)]),_:1},8,["header"]),e.createVNode(A,{field:"email",header:l.$t("column.email"),sortable:""},{body:e.withCtx(v=>[e.createElementVNode("span",null,e.toDisplayString(v.data.email),1)]),_:1},8,["header"])]),_:1},8,["selection","value","loading"])])])]),e.createElementVNode("div",ab,[e.createVNode(n,{"data-testid":"create-workflow-popup-step2-back-button",label:l.$t("workflow.back"),severity:"secondary",icon:"pi pi-arrow-left",onClick:i.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:i.nextStep},null,8,["label","onClick"])])],512),[[e.vShow,o.activeStep===1]]),e.withDirectives(e.createElementVNode("div",ob,[e.createElementVNode("div",sb,[e.createElementVNode("div",ib,[e.createElementVNode("div",nb,[e.createElementVNode("label",cb,e.toDisplayString(l.$t("workflow.dueDate")),1),e.createVNode(z,{"data-testid":"create-workflow-popup-duedate-calendar",id:"dueDate",modelValue:o.dueDate,"onUpdate:modelValue":t[5]||(t[5]=v=>o.dueDate=v),"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",rb,[e.createElementVNode("label",db,[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]=v=>o.selectedPriority=v),options:o.priorityOptions,"option-label":"label",placeholder:l.$t("workflow.choosePriority"),class:"w-full"},null,8,["modelValue","options","placeholder"])])])]),e.createElementVNode("div",mb,[e.createVNode(n,{"data-testid":"create-workflow-popup-step3-back-button",label:l.$t("workflow.back"),severity:"secondary",icon:"pi pi-arrow-left",onClick:i.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:i.nextStep},null,8,["label","onClick"])])],512),[[e.vShow,o.activeStep===2]]),e.withDirectives(e.createElementVNode("div",bb,[e.createElementVNode("div",pb,[e.createElementVNode("label",ub,[e.createTextVNode(e.toDisplayString(l.$t("workflow.taskName"))+" ",1),t[13]||(t[13]=e.createElementVNode("span",{class:"required"},"*",-1))]),e.createVNode(y,{"data-testid":"create-workflow-popup-message-textarea",modelValue:o.message,"onUpdate:modelValue":t[7]||(t[7]=v=>o.message=v)},null,8,["modelValue"])]),e.createElementVNode("div",null,[o.startWorkflowError?(e.openBlock(),e.createBlock(I,{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",Zb,[e.createVNode(n,{"data-testid":"create-workflow-popup-step4-back-button",label:l.$t("workflow.back"),severity:"secondary",icon:"pi pi-arrow-left",onClick:i.prevStep},null,8,["label","onClick"]),e.createVNode(n,{"data-testid":"create-workflow-popup-submit-button",disabled:i.isStartWorkflowButtonDisable,label:l.$t("workflow.startTheWorkflow"),severity:"primary",onClick:t[8]||(t[8]=v=>i.startWorkflow())},null,8,["disabled","label"])])],512),[[e.vShow,o.activeStep===3]])]),_:1},8,["header"])}const bo=J(km,[["render",hb],["__scopeId","data-v-b2be9982"]]),yb={name:"ImportNewVersionPopup",components:{PrimeButton:L,PrimeTextarea:hl,PrimeDialog:Je,PrimeFileUpload:aa,PrimeRadioButton:Xr},directives:{tooltip:ut},emits:["close","message"],data(){return{canUpload:!0,version:null,comment:null}},mounted(){this.node=Me().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(S.updateContentNode(this.node.id,a,this.version==="MAJEURE",this.comment))}),Promise.allSettled(t).then(a=>{const s=[],o=[],i=[];a.forEach(n=>{n.status==="fulfilled"?(s.push(n.value),o.push(n.value.entry?.name)):i.push(n.reason)}),o.length>0&&this.$emit("message",{severity:"success",content:this.$t("uploadFinish")}),i.length>0&&this.$emit("message",Ut.getUploadErrors(i)),this.closePopup(s.length>0)}).catch(a=>{this.$toast.add({severity:"error",summary:this.$t("uploadUnknownError"),detail:a,life:5e3})})}}},Wb={for:"name",class:"col-12"},gb={class:"field mt-3"},Yb={class:"field grid"},Nb={for:"name",class:"col-12 mb-2"},Ab={class:"col-12 md:col-10 w-full"},Xb={class:"field grid"},zb={class:"grid radio-display"},Mb={class:"col-12 md:col-6"},Ob={class:"field-radiobutton mb-0"},jb={for:"majeure"},Gb={class:"col-12 md:col-6"},Tb={class:"field-radiobutton mb-0"},wb={for:"mineure"};function fb(l,t,a,s,o,i){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeFileUpload"),r=e.resolveComponent("PrimeTextarea"),m=e.resolveComponent("PrimeRadioButton"),h=e.resolveComponent("PrimeDialog"),Z=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(p=>i.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]=p=>i.closePopup(!1))},null,8,["aria-label"])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("label",Wb,e.toDisplayString(l.$t("uploadFile",{file:l.node.name})),1),e.createElementVNode("div",gb,[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:i.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",Yb,[e.createElementVNode("label",Nb,e.toDisplayString(l.$t("addComment")),1),e.createElementVNode("div",Ab,[e.createVNode(r,{"data-testid":"import-new-version-popup-comment-textarea",id:"comment",modelValue:o.comment,"onUpdate:modelValue":t[1]||(t[1]=p=>o.comment=p),"auto-resize":"",rows:5},null,8,["modelValue"])])]),e.createElementVNode("div",Xb,[e.createElementVNode("div",zb,[e.createElementVNode("div",Mb,[e.createElementVNode("div",Ob,[e.createVNode(m,{"data-testid":"import-new-version-popup-major-radio",id:"majeure",modelValue:o.version,"onUpdate:modelValue":t[2]||(t[2]=p=>o.version=p),name:"majeure",value:"MAJEURE"},null,8,["modelValue"]),e.withDirectives((e.openBlock(),e.createElementBlock("label",jb,[e.createTextVNode(e.toDisplayString(l.$t("major")),1)])),[[Z,""]])])]),e.createElementVNode("div",Gb,[e.createElementVNode("div",Tb,[e.createVNode(m,{"data-testid":"import-new-version-popup-minor-radio",id:"mineure",modelValue:o.version,"onUpdate:modelValue":t[3]||(t[3]=p=>o.version=p),name:"mineure",value:"MINEURE"},null,8,["modelValue"]),e.withDirectives((e.openBlock(),e.createElementBlock("label",wb,[e.createTextVNode(e.toDisplayString(l.$t("minor")),1)])),[[Z,""]])])])])])]),_:1},8,["header"])}const po=J(yb,[["render",fb]]),Ib={name:"MemberList",components:{PrimeButton:L,PrimeDataTable:Dl,PrimeColumn:Rl,PrimeAvatar:va,PrimeDropdown:At,PrimeAutoComplete:n2},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(re,["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?Oe.addWorkspaceGroup(this.workspace.id,this.selectedMemberToAdd.id,l):Oe.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(s=>{this.$toast.add({severity:"error",summary:this.$t("error"),detail:s.message,life:3e3})})}},toggleChangeMemberRole(l){let t=this.workspace.id,a=this.getAlfrescoRole(this.selectedRole[l.id].name);(l.group?Oe.updateWorkspaceGroupRole(t,l.id,a):Oe.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?Oe.deleteWorkspaceGroup(t,l.id):Oe.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(s=>{this.$toast.add({severity:"error",summary:this.$t("error"),detail:s.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([Oe.searchUsers(t),Oe.searchGroups(t)]).then(([a,s])=>{this.filteredMembers=[...a,...s]})},restrictPermissions(){this.heredityValue=!1,this.changeHeredity()},restorePermissions(){this.heredityValue=!0,this.changeHeredity()},changeHeredity(){const l={permissions:{locallySet:[],isInheritanceEnabled:this.heredityValue}};S.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 s={permissions:{locallySet:Object.values(a.locallySet).map(o=>({authorityId:o.authorityId,name:o.name,accessStatus:o.accessStatus}))}};S.updateNode(this.folderNode.id,s).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 s={permissions:{locallySet:t}};S.updateNode(this.folderNode.id,s).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 s=0;s<t.length;s++){const o=t[s];if(o.authorityId===l.authorityId){o.name=this.getAlfrescoRole(this.selectedRole[l.name].name);break}}let a={permissions:{locallySet:t}};S.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(s=>{this.$toast.add({severity:"error",summary:this.$t("error"),detail:s.message,life:3e3})})}}},vb={class:"card"},Lb={class:"grid"},Db={key:0,class:"col-12 workspace-members-head p-3 justify-content-between lg:justify-content-center align-items-center"},Rb={class:""},kb={class:"line-height-3"},Cb={class:"text-role font-medium"},Fb={key:1,class:"col-12 p-3 justify-content-between align-items-center flex"},Vb={class:"ml-4 align-items-start"},xb={class:"align-content-center"},Sb={class:"col-12"},Jb={key:0,class:"ri-group-line members"},Ub=["aria-label","title","onClick"],Hb={class:"member-details mt-1"},Qb={key:1},Bb={key:1,class:"ri-group-line members"},Eb={key:0,class:"description"},Pb={key:1},_b={class:"grid my-2"},Kb={class:"col-fixed mr-2 mb-2"},$b={class:"p-input-icon-left p-input-icon-right"},qb={class:"member-item"},ep={key:0,class:"ri-group-line"},tp={key:1,class:"ri-user-line"},lp={class:"ml-2"},ap={class:"col-fixed mr-2 mb-2"},op={class:"col mr-2 mb-2"};function sp(l,t,a,s,o,i){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeAvatar"),r=e.resolveComponent("PrimeColumn"),m=e.resolveComponent("PrimeDropdown"),h=e.resolveComponent("PrimeDataTable"),Z=e.resolveComponent("PrimeAutoComplete");return e.openBlock(),e.createElementBlock("div",vb,[e.createElementVNode("div",Lb,[a.isSite?(e.openBlock(),e.createElementBlock("div",Db,[e.createElementVNode("div",Rb,[e.createElementVNode("h3",null,[e.createElementVNode("span",kb,[e.createTextVNode(e.toDisplayString(l.$t("members.youAre"))+" ",1),e.createElementVNode("span",Cb,e.toDisplayString(a.role),1),e.createTextVNode(" "+e.toDisplayString(l.$t("members.ofThisWorkspace"))+".",1)])])])])):(e.openBlock(),e.createElementBlock("div",Fb,[e.createElementVNode("div",Vb,e.toDisplayString(l.$t("members.nbAccess",{nbAccess:a.nbMembers})),1),e.createElementVNode("div",xb,[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]=p=>i.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]=p=>i.restorePermissions())},null,8,["label","disabled"]))])])),e.createElementVNode("div",Sb,[a.isSite?(e.openBlock(),e.createBlock(h,{key:0,id:"membres",value:i.sortableMembers,"row-hover":"","data-key":"id","responsive-layout":"scroll","removable-sort":""},{default:e.withCtx(()=>[e.createVNode(r,{field:"avatar"},{body:e.withCtx(p=>[e.createVNode(c,{label:p.data.person?p.data.person.displayName.charAt(0):p.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(p=>[p.data.isGroup?(e.openBlock(),e.createElementBlock("i",Jb)):e.createCommentVNode("",!0)]),_:1},8,["header"]),e.createVNode(r,{field:"person",header:l.$t("members.members"),sortable:"","sort-field":"displayName"},{body:e.withCtx(p=>[p.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=>i.openUserProfile(p.data.id)},[...t[6]||(t[6]=[e.createElementVNode("i",{class:"ri-user-line","aria-hidden":"true"},null,-1)])],8,Ub),e.createElementVNode("span",null,e.toDisplayString(p.data.person.displayName),1)]),e.createElementVNode("div",Hb,e.toDisplayString(p.data.id)+" - "+e.toDisplayString(p.data.person.email),1)],64)):(e.openBlock(),e.createElementBlock("span",Qb,e.toDisplayString(p.data.group.displayName),1))]),_:1},8,["header"]),e.createVNode(r,{field:"role",header:l.$t("members.role")},{body:e.withCtx(p=>[e.createVNode(m,{modelValue:o.selectedRole[p.data.id],"onUpdate:modelValue":Y=>o.selectedRole[p.data.id]=Y,options:o.rolesValues,"option-label":"name",placeholder:l.$t(`role.${p.data.role}`),value:p.data.role,disabled:!a.permissions,onChange:Y=>i.toggleChangeMemberRole(p.data)},null,8,["modelValue","onUpdate:modelValue","options","placeholder","value","disabled","onChange"])]),_:1},8,["header"]),e.createVNode(r,{field:"buttons"},{body:e.withCtx(p=>[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=>i.toggleDeleteMember(p.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(p=>[p.data.authorityId.startsWith("GROUP")?(e.openBlock(),e.createElementBlock("i",Bb)):(e.openBlock(),e.createBlock(c,{key:0,label:p.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(p=>[e.createElementVNode("span",null,e.toDisplayString(p.data.authorityId),1),p.data.groupId?(e.openBlock(),e.createElementBlock("p",Eb,e.toDisplayString(l.$t("members.fromGroup",{group:p.data.groupId})),1)):e.createCommentVNode("",!0)]),_:1},8,["header"]),e.createVNode(r,{field:"role",header:l.$t("members.role")},{body:e.withCtx(p=>[p.data.groupId?(e.openBlock(),e.createElementBlock("div",Pb,e.toDisplayString(l.$t(`role.${p.data.name}`)),1)):(e.openBlock(),e.createBlock(m,{key:0,modelValue:o.selectedRole[p.data.name],"onUpdate:modelValue":Y=>o.selectedRole[p.data.name]=Y,options:o.rolesValues,"option-label":"name",placeholder:l.$t(`role.${p.data.name}`),value:p.data.name,disabled:!a.permissions,onChange:Y=>i.changePermission(p.data)},null,8,["modelValue","onUpdate:modelValue","options","placeholder","value","disabled","onChange"]))]),_:1},8,["header"]),e.createVNode(r,{field:"buttons"},{body:e.withCtx(p=>[p.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=>i.deletePermission(p.data)},null,8,["aria-label","disabled","onClick"]))]),_:1})]),_:1},8,["value"])),e.createElementVNode("div",_b,[e.createElementVNode("div",Kb,[e.createElementVNode("span",$b,[e.createVNode(Z,{modelValue:o.selectedMemberToAdd,"onUpdate:modelValue":t[2]||(t[2]=p=>o.selectedMemberToAdd=p),"force-selection":"","option-label":"label",suggestions:o.filteredMembers,placeholder:l.$t("members.search"),disabled:!a.permissions,onComplete:t[3]||(t[3]=p=>i.searchUser(p))},{item:e.withCtx(p=>[e.createElementVNode("div",qb,[p.item.group?(e.openBlock(),e.createElementBlock("i",ep)):(e.openBlock(),e.createElementBlock("i",tp)),e.createElementVNode("div",lp,e.toDisplayString(p.item.label),1)])]),_:1},8,["modelValue","suggestions","placeholder","disabled"])])]),e.createElementVNode("div",ap,[e.createVNode(m,{modelValue:o.addSelectedRole,"onUpdate:modelValue":t[4]||(t[4]=p=>o.addSelectedRole=p),options:o.rolesValues,"option-label":"name",placeholder:l.$t("members.select"),disabled:!a.permissions},null,8,["modelValue","options","placeholder","disabled"])]),e.createElementVNode("div",op,[a.isSite?(e.openBlock(),e.createBlock(n,{key:0,type:"button",icon:"ri-add-line",label:l.$t("members.add"),disabled:!a.permissions,onClick:i.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]=p=>i.addPermissions())},null,8,["label","disabled"]))])])])])])}const uo=J(Ib,[["render",sp],["__scopeId","data-v-9c182ada"]]),ip={name:"MemberListPopup",components:{MemberList:uo,PrimeDialog:Je,PrimeButton:L},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;Oe.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 S.getNode(this.selectedNode.id).then(l=>{this.node=l,this.nodeName=l.name,this.loadPermissions()})},methods:{onGoToSiteMemberPage(){const l=Be();this.$emit("goToSiteMemberPage",l.workspace?.id),this.closePopup(!1)},closePopup(l){this.$emit("close",l)},loadMembers(l){let t={maxItems:1e3},a=Oe.getWorkspaceMembershipsWithOpts(l,t).then(o=>o.list.entries.map(i=>({...i.entry,isGroup:!1}))),s=Oe.getWorkspaceGroupsWithOpts(l,t).then(o=>o.map(i=>({...i,isGroup:!0})));Promise.all([a,s]).then(o=>this.members=[...o[0],...o[1]])},updateInheritedGroup(l){const a=`GROUP_site_${Be().workspace?.id}_SiteContributor`;return(l.permissions?.inherited||[]).filter(s=>s.authorityId!==a)},fetchGroupMemberships(){const l=["GROUP_EVERYONE"];this.membersWithGroups.filter(a=>a.authorityId.startsWith("GROUP")&&!l.includes(a.authorityId)).forEach(a=>{Yl.listGroupMemberships(a.authorityId).then(s=>{s.list.entries.forEach(i=>{let n=i.entry;n.groupId=a.authorityId,n.authorityId=n.id,n.name=a.name,this.membersWithGroups.push(n)})})})},loadPermissions(){S.getNode(this.selectedNode.id).then(l=>{this.enablePermissions=Be().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()})}}},np={class:"flex justify-content-end mb-3"};function cp(l,t,a,s,o,i){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("MemberList"),r=e.resolveComponent("PrimeDialog");return i.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=>i.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=>i.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=>i.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=>i.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=>i.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=>i.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=>i.closePopup(!0))},null,8,["label"])]),default:e.withCtx(()=>[e.createElementVNode("div",np,[e.createVNode(n,{"data-testid":"member-list-popup-folder-goto-site-button",label:l.$t("membersPopup.goToSiteMemberPage"),onClick:i.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":i.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=>i.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 Zo=J(ip,[["render",cp]]),rp={name:"SendMailPopup",components:{PrimeDialog:Je,PrimeButton:L,PrimeChips:Mr,PrimeTextarea:hl,PrimeCheckbox:St,PrimeInputText:we},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=>{Ja.validate(t)||(l=this.$t("sendingMail.errors.errorValidEmail"))}),l},checkValidCC(){let l=null;return this.cc.length>0&&this.cc.forEach(t=>{Ja.validate(t)||(l=this.$t("sendingMail.errors.errorValidEmail"))}),l},checkValidCCI(){let l=null;return this.cci.length>0&&this.cci.forEach(t=>{Ja.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=Me().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=re();l?this.link=`${t.PREVIEW_URL}${l}`:S.createSharedLink(this.node).then(a=>{this.link=`${t.PREVIEW_URL}${a.entry.id}`,this.buildDefaultMessage(),ze.createRendition(this.node.id,"pdf")}).catch(a=>{console.error("Failed to create shared link",a),this.link=null}),this.buildDefaultMessage()},methods:{buildDefaultMessage(){const l=Ae(),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 Al.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})})}}},dp={class:"p-fluid"},mp={class:"field grid"},bp={for:"name",class:"col-12 mb-2"},pp={class:"col-12"},up={class:"p-error"},Zp={class:"send-mail-toggle-links"},hp={key:0,class:"field grid"},yp={for:"name",class:"col-12 mb-2"},Wp={class:"col-12"},gp={class:"p-error"},Yp={key:1,class:"field grid"},Np={for:"name",class:"col-12 mb-2"},Ap={class:"col-12"},Xp={class:"p-error"},zp={class:"field grid"},Mp={for:"name",class:"col-12 mb-2"},Op={class:"col-12"},jp={class:"p-error"},Gp={class:"field grid"},Tp={for:"name",class:"col-12 mb-2"},wp={class:"col-12"},fp={class:"p-error"},Ip={class:"field grid"},vp={for:"name",class:"col-12 mb-2"},Lp={class:"col-12 copy-link"},Dp={class:"field grid"},Rp={class:"col-12"};function kp(l,t,a,s,o,i){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeChips"),r=e.resolveComponent("PrimeInputText"),m=e.resolveComponent("PrimeTextarea"),h=e.resolveComponent("PrimeCheckbox"),Z=e.resolveComponent("PrimeDialog");return e.openBlock(),e.createBlock(Z,{"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(p=>i.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]=p=>i.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:i.closePopup},null,8,["label","onClick"]),e.createVNode(n,{"data-testid":"send-mail-popup-submit-button",label:l.$t("send"),disabled:!i.checkAllForm,onClick:i.sendMail},null,8,["label","disabled","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("div",dp,[e.createElementVNode("div",mp,[e.createElementVNode("label",bp,[e.createTextVNode(e.toDisplayString(l.$t("field.to"))+" ",1),t[11]||(t[11]=e.createElementVNode("span",{class:"required"},"*",-1))]),e.createElementVNode("div",pp,[e.createVNode(c,{"data-testid":"send-mail-popup-to-chips",modelValue:o.to,"onUpdate:modelValue":t[1]||(t[1]=p=>o.to=p),separator:" ",class:e.normalizeClass({"p-invalid":i.checkValidTo}),"add-on-blur":""},null,8,["modelValue","class"]),e.createElementVNode("small",up,e.toDisplayString(i.checkValidTo),1)])]),e.createElementVNode("div",Zp,[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]=p=>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]=p=>o.showCci=!0)},e.toDisplayString(l.$t("sendingMail.addCci")),1))]),o.showCc?(e.openBlock(),e.createElementBlock("div",hp,[e.createElementVNode("label",yp,e.toDisplayString(l.$t("field.cc")),1),e.createElementVNode("div",Wp,[e.createVNode(c,{"data-testid":"send-mail-popup-cc-chips",modelValue:o.cc,"onUpdate:modelValue":t[4]||(t[4]=p=>o.cc=p),separator:" ",class:e.normalizeClass({"p-invalid":i.checkValidCC}),"add-on-blur":""},null,8,["modelValue","class"]),e.createElementVNode("small",gp,e.toDisplayString(i.checkValidCC),1)])])):e.createCommentVNode("",!0),o.showCci?(e.openBlock(),e.createElementBlock("div",Yp,[e.createElementVNode("label",Np,e.toDisplayString(l.$t("field.cci")),1),e.createElementVNode("div",Ap,[e.createVNode(c,{"data-testid":"send-mail-popup-cci-chips",modelValue:o.cci,"onUpdate:modelValue":t[5]||(t[5]=p=>o.cci=p),separator:" ",class:e.normalizeClass({"p-invalid":i.checkValidCCI}),"add-on-blur":""},null,8,["modelValue","class"]),e.createElementVNode("small",Xp,e.toDisplayString(i.checkValidCCI),1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",zp,[e.createElementVNode("label",Mp,[e.createTextVNode(e.toDisplayString(l.$t("field.subject"))+" ",1),t[12]||(t[12]=e.createElementVNode("span",{class:"required"},"*",-1))]),e.createElementVNode("div",Op,[e.createVNode(r,{"data-testid":"send-mail-popup-subject-input",modelValue:o.subject,"onUpdate:modelValue":t[6]||(t[6]=p=>o.subject=p),type:"text",class:e.normalizeClass({"p-invalid":i.checkSubject}),onKeyup:e.withKeys(i.sendMail,["enter"])},null,8,["modelValue","class","onKeyup"]),e.createElementVNode("small",jp,e.toDisplayString(i.checkSubject),1)])]),e.createElementVNode("div",Gp,[e.createElementVNode("label",Tp,[e.createTextVNode(e.toDisplayString(l.$t("field.message"))+" ",1),t[13]||(t[13]=e.createElementVNode("span",{class:"required"},"*",-1))]),e.createElementVNode("div",wp,[e.createVNode(m,{"data-testid":"send-mail-popup-message-textarea",modelValue:o.message,"onUpdate:modelValue":t[7]||(t[7]=p=>o.message=p),rows:8,class:e.normalizeClass({"p-invalid":i.checkMessage})},null,8,["modelValue","class"]),e.createElementVNode("small",fp,e.toDisplayString(i.checkMessage),1)])]),e.createElementVNode("div",Ip,[e.createElementVNode("label",vp,e.toDisplayString(l.$t("field.shareLink")),1),e.createElementVNode("div",Lp,[e.createVNode(r,{"data-testid":"send-mail-popup-link-input",modelValue:o.link,"onUpdate:modelValue":t[8]||(t[8]=p=>o.link=p),disabled:""},null,8,["modelValue"]),e.createVNode(n,{"data-testid":"send-mail-popup-copy-link-button",severity:"warning",onClick:i.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",Dp,[e.createElementVNode("div",Rp,[e.createVNode(h,{"data-testid":"send-mail-popup-attachment-checkbox",modelValue:o.attachment,"onUpdate:modelValue":t[9]||(t[9]=p=>o.attachment=p),class:"send-mail-attachment",name:"attachment",binary:""},null,8,["modelValue"]),e.createElementVNode("label",null,e.toDisplayString(l.$t("addAttachment")),1)])])])]),_:1},8,["header"])}const ho=J(rp,[["render",kp],["__scopeId","data-v-97b57737"]]),Cp={name:"ShareLinkPopup",components:{PrimeDialog:Je,PrimeButton:L,PrimeInputText:we,PrimeCheckbox:St,PrimeCalendar:La},directives:{tooltip:ut},emits:["close","reload"],data(){return{link:null,shareId:null,date:null,hasExpirationDate:!1,node:null}},watch:{shareId(l){if(l!==null){const t=re();this.link=`${t.PREVIEW_URL}${l}`}else this.link=null}},mounted(){this.node=Me().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}};S.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(){S.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(){S.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}),ze.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})})}}},Fp={class:"p-inputgroup"},Vp={key:0},xp={key:1},Sp={key:0},Jp={class:"field-checkbox"},Up={for:"expirationDate"},Hp={key:0,class:"p-inputgroup"};function Qp(l,t,a,s,o,i){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeInputText"),r=e.resolveComponent("PrimeCheckbox"),m=e.resolveComponent("PrimeCalendar"),h=e.resolveComponent("PrimeDialog"),Z=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(p=>i.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]=p=>i.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:i.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",Fp,[e.createVNode(c,{"data-testid":"share-link-popup-link-input",modelValue:o.link,"onUpdate:modelValue":t[1]||(t[1]=p=>o.link=p),placeholder:l.$t("sharelink.placeholder"),disabled:""},null,8,["modelValue","placeholder"]),o.shareId?(e.openBlock(),e.createElementBlock("div",xp,[e.createVNode(n,{"data-testid":"share-link-popup-copy-button",severity:"warning",onClick:i.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:i.deleteSharedLink},null,8,["aria-label","onClick"]),[[Z,l.$t("sharelink.deleteLinkTooltip")]])])):(e.openBlock(),e.createElementBlock("div",Vp,[e.createVNode(n,{"data-testid":"share-link-popup-create-button",severity:"success",onClick:i.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",Sp,[e.createElementVNode("div",Jp,[e.withDirectives(e.createVNode(r,{"data-testid":"share-link-popup-expiration-checkbox",modelValue:o.hasExpirationDate,"onUpdate:modelValue":t[2]||(t[2]=p=>o.hasExpirationDate=p),"input-id":"expirationDate",binary:"",onChange:i.dateChecked},null,8,["modelValue","onChange"]),[[Z,l.$t("sharelink.addExpirationDateLinkTooltip")]]),e.createElementVNode("label",Up,e.toDisplayString(l.$t("sharelink.expirationDate")),1)]),o.hasExpirationDate?(e.openBlock(),e.createElementBlock("div",Hp,[e.createVNode(m,{"data-testid":"share-link-popup-expiration-calendar",modelValue:o.date,"onUpdate:modelValue":t[3]||(t[3]=p=>o.date=p),"min-date":new Date,onDateSelect:i.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:i.deleteLinkDate},null,8,["aria-label","onClick"]),[[Z,l.$t("sharelink.deleteExpirationDateLinkTooltip")]])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["header"])}const yo=J(Cp,[["render",Qp]]),Bp={name:"DynamicContentView",components:{ActionMenu:Ul,ContentGridView:ro,ContentListView:co,ContentTableView:no,CopyOrMovePopup:eo,CreateWorkflowPopup:bo,ImportNewVersionPopup:po,MemberListPopup:Zo,PaginatorComponent:Pa,SendMailPopup:ho,ShareLinkPopup:yo,PrimeButton:L,PrimeDataView:a2,PrimeCheckbox:St},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:i2.FilterMatchMode.CONTAINS}},fileActionMenuItems:[],popup:null,memberListTargetNode:null,selectedNodes:[],modifyPopupTitle:"",isPageSelected:!1,actionType:null,showUserHome:!1}},created(){this.initFilters(),this.selectionStore=Me(),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--${Be().currentNode.id}`),a=JSON.parse(t),s=a.rows,o=a.first||0;if(o===0)this.selectedNodes=this.files.slice(0,s);else{const i=o%this.files.length;this.selectedNodes=this.files.slice(i,i+s)}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:i2.FilterMatchMode.CONTAINS}}},openInNewTab(l){let t;l.isFolder?t=this.$router.resolve(this.actionsService.getRouteForNavigationInNewTab(Be().workspace.id,l)):t=this.$router.resolve(this.actionsService.getRouteForOpenInNewTab(l)),window.open(t.href,"_blank_"+l.id)},deleteItem(l){S.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){ma.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)}}},Ep=["aria-label"],Pp={class:"flex justify-content-between flex-wrap"},_p=["aria-label"],Kp={class:"w-full border-1 border-100 overflow-hidden flex align-items-center"},$p={class:"mr-3","data-tour":"select-all-checkbox"},qp={class:"flex align-items-center w-full"},eu={class:"flex justify-content-between align-items-center w-9"},tu={class:"overflow-hidden white-space-nowrap text-overflow-ellipsis p-text-bold w-full"},lu={class:"flex justify-content-between flex-wrap"};function au(l,t,a,s,o,i){const n=e.resolveComponent("ActionMenu"),c=e.resolveComponent("ContentTableView"),r=e.resolveComponent("PrimeButton"),m=e.resolveComponent("PaginatorComponent"),h=e.resolveComponent("PrimeCheckbox"),Z=e.resolveComponent("ContentListView"),p=e.resolveComponent("ContentGridView"),Y=e.resolveComponent("PrimeDataView"),A=e.resolveComponent("CreateWorkflowPopup"),X=e.resolveComponent("CopyOrMovePopup"),z=e.resolveComponent("ImportNewVersionPopup"),y=e.resolveComponent("ShareLinkPopup"),I=e.resolveComponent("MemberListPopup"),j=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":i.updatePageSelectedNodes,"onUpdate:selectedNodes":i.updateSelectedNodes,onClickIcon:i.clickIcon,onOpenPreviewPanel:i.openPreviewPanel,onOpenSharelink:i.openShareLink,onToggleFavorite:i.toggleFavorite,onToggleFileActionMenu:i.setMenuActionAndOpenIt,onNavigateTo:i.navigateTo,onOpenMembers:i.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",Pp,[e.createVNode(r,{type:"button",icon:"ri-refresh-line","aria-label":l.$t("reload"),text:"",onClick:t[0]||(t[0]=v=>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:i.updateSkipCount,onChangeElementPerPage:i.reloadData},null,8,["displayed-elements","total-records","onChangePage","onChangeElementPerPage"])):e.createCommentVNode("",!0)])],8,Ep)):(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(v=>[e.createVNode(Z,{"slot-props":v,"selected-nodes":o.selectedNodes,"is-preview-panel-visible":a.isPreviewPanelVisible,"is-small-screen":a.isSmallScreen,"is-in-user-home":a.isInUserHome,"onUpdate:selectedNodes":i.updateSelectedNodes,onClickIcon:i.clickIcon,onOpenPreviewPanel:i.openPreviewPanel,onOpenSharelink:i.openShareLink,onToggleFavorite:i.toggleFavorite,onToggleFileActionMenu:i.setMenuActionAndOpenIt,onOpenInNewTab:i.openInNewTab,onNodeClicked:i.nodeClicked,onOpenMembers:i.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(v=>[e.createVNode(p,{"slot-props":v,"selected-nodes":o.selectedNodes,"is-preview-panel-visible":a.isPreviewPanelVisible,"is-small-screen":a.isSmallScreen,"is-in-user-home":a.isInUserHome,"onUpdate:selectedNodes":i.updateSelectedNodes,onClickIcon:i.clickIcon,onOpenPreviewPanel:i.openPreviewPanel,onOpenSharelink:i.openShareLink,onToggleFavorite:i.toggleFavorite,onToggleFileActionMenu:i.setMenuActionAndOpenIt,onOpenInNewTab:i.openInNewTab,onNodeClicked:i.nodeClicked,onOpenMembers:i.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",Kp,[e.createElementVNode("div",$p,[e.createVNode(h,{modelValue:o.isPageSelected,"onUpdate:modelValue":t[1]||(t[1]=v=>o.isPageSelected=v),binary:"",class:"flex align-items-center justify-content-center",name:"option","aria-label":l.$t("selectAll"),onChange:t[2]||(t[2]=v=>i.updatePageSelectedNodes(o.isPageSelected))},null,8,["modelValue","aria-label"])]),e.createElementVNode("div",qp,[e.createElementVNode("div",eu,[e.createElementVNode("div",tu,[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",lu,[e.createVNode(r,{type:"button",icon:"ri-refresh-line","aria-label":l.$t("reload"),text:"",onClick:t[3]||(t[3]=v=>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:i.updateSkipCount,onChangeElementPerPage:i.reloadData},null,8,["displayed-elements","total-records","onChangePage","onChangeElementPerPage"])):e.createCommentVNode("",!0),t[6]||(t[6]=e.createElementVNode("div",null,null,-1))])],8,_p)),o.popup==="WORKFLOW"?(e.openBlock(),e.createBlock(A,{key:2,onClose:i.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:i.closePopup},null,8,["show-user-home","action-type","current-node","onClose"])):e.createCommentVNode("",!0),o.popup==="NEWVERSION"?(e.openBlock(),e.createBlock(z,{key:4,onClose:i.closePopup,onMessage:i.emitMessage},null,8,["onClose","onMessage"])):e.createCommentVNode("",!0),o.popup==="SHARELINK"?(e.openBlock(),e.createBlock(y,{key:5,onClose:i.closePopup,onReload:t[4]||(t[4]=v=>l.$emit("reload"))},null,8,["onClose"])):e.createCommentVNode("",!0),o.popup==="MEMBERS"?(e.openBlock(),e.createBlock(I,{key:6,"is-site":!1,"selected-node":o.memberListTargetNode,onClose:i.closePopup,onReload:t[5]||(t[5]=v=>l.$emit("reload"))},null,8,["selected-node","onClose"])):e.createCommentVNode("",!0),o.popup==="SENDMAIL"?(e.openBlock(),e.createBlock(j,{key:7,onClose:i.closePopup},null,8,["onClose"])):e.createCommentVNode("",!0)],64)}const dc=J(Bp,[["render",au]]),ou={name:"ContentFiltersHeader",components:{PrimeButton:L,PrimeDropdown:At},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")}}},su={"data-testid":"content-filters-header",class:"flex justify-content-between p-3 surface-100 border-bottom-1 border-200"},iu={class:"flex gap-4"},nu={class:"font-bold text-xs"},cu={key:0,class:"flex items-center"},ru={key:1},du={class:"flex items-center"};function mu(l,t,a,s,o,i){const n=e.resolveComponent("PrimeDropdown"),c=e.resolveComponent("PrimeButton");return e.openBlock(),e.createElementBlock("div",su,[e.createElementVNode("div",iu,[e.createVNode(n,{"data-testid":"content-filters-header-sort-dropdown",modelValue:i.selectedSortFilterCopy,"onUpdate:modelValue":t[0]||(t[0]=r=>i.selectedSortFilterCopy=r),options:o.filterSortOption,"option-label":"label"},{value:e.withCtx(r=>[e.createElementVNode("div",nu,e.toDisplayString(l.$t("sortOn")),1),r.value?(e.openBlock(),e.createElementBlock("div",cu,[e.createElementVNode("div",null,e.toDisplayString(r.value.name),1)])):(e.openBlock(),e.createElementBlock("span",ru,e.toDisplayString(r.placeholder),1))]),option:e.withCtx(r=>[e.createElementVNode("div",du,[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:i.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:i.changeSortOrder},null,8,["aria-label","onClick"])):e.createCommentVNode("",!0)])])}const mc=J(ou,[["render",mu]]),bu={name:"ImageViewer",components:{PrimeButton:L,PrimeImage:Ia,PrimeToolBar:Da,PrimeTag:la},directives:{tooltip:ut},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 s=/\.[^.]+$/,o=t.replace(s,"");l.download=`${o}-v-${a}${t.match(s)[0]}`,l.click()},loadImage(){this.contentUrl="",this.contentNode.id!==void 0&&(this.versionId!==""?this.contentUrl=ze.getVersionContentUrl(this.contentNode.id,this.versionId):this.contentUrl=ze.getContentUrl(this.contentNode.id))},fitAuto(){this.zoomLevel=1},zoomIn(){this.zoomLevel<this.maxZoomLevel&&(this.zoomLevel+=.4)},zoomOut(){this.zoomLevel>this.minZoomLevel&&(this.zoomLevel-=.4)}}},pu={class:"flex"},uu={class:"flex-grow-1 overflow-hidden"},Zu={key:0,class:"consultation-title col"},hu={key:0,class:"flex gap-2"},yu={class:"card flex justify-content-center mr-1"};function Wu(l,t,a,s,o,i){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",pu,[e.createElementVNode("div",uu,[e.createVNode(r,{class:"sticky"},{center:e.withCtx(()=>[a.contentNode&&a.showTitle?(e.openBlock(),e.createElementBlock("h3",Zu,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",hu,[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]=Z=>i.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]=Z=>i.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]=Z=>i.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:i.download},null,8,["aria-label","onClick"]),[[h,l.$t("download"),void 0,{bottom:!0}]])])):e.createCommentVNode("",!0)]),_:1}),e.createElementVNode("div",yu,[a.contentNode&&i.hasContentUrl?(e.openBlock(),e.createBlock(m,{key:0,class:"image-rendition",src:o.contentUrl,alt:a.contentNode.name,style:e.normalizeStyle(i.zoomStyle)},null,8,["src","alt","style"])):e.createCommentVNode("",!0)])])])}const Wo=J(bu,[["render",Wu],["__scopeId","data-v-c21e7c8d"]]),gu={name:"VideoPlayer",components:{PrimeTag:la,PrimeToolBar:Da,PrimeButton:L},directives:{tooltip:ut},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()}}},Yu={class:"flex"},Nu={class:"flex-grow-1 overflow-scroll"},Au={key:0,class:"consultation-title col"},Xu={class:"card flex justify-content-center mr-1"},zu=["src"];function Mu(l,t,a,s,o,i){const n=e.resolveComponent("PrimeTag"),c=e.resolveComponent("PrimeButton"),r=e.resolveComponent("PrimeToolBar"),m=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock("div",Yu,[e.createElementVNode("div",Nu,[e.createVNode(r,{class:"sticky consultation-toolbar w-full"},{start:e.withCtx(()=>[a.contentNode?(e.openBlock(),e.createElementBlock("h3",Au,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=>i.download())},null,8,["aria-label"]),[[m,l.$t("download"),void 0,{bottom:!0}]])]),_:1}),e.createElementVNode("div",Xu,[a.contentUrl?(e.openBlock(),e.createElementBlock("video",{key:a.contentUrl,controls:"",class:"video-rendition"},[e.createElementVNode("source",{src:a.contentUrl},null,8,zu)])):e.createCommentVNode("",!0)])])])}const go=J(gu,[["render",Mu],["__scopeId","data-v-59a176e0"]]);let Ou=0;class Ce{constructor(t={}){this.id=Ou++,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 s=t(a);return s===void 0?null:[this,s]}}}Ce.closedBy=new Ce({deserialize:l=>l.split(" ")}),Ce.openedBy=new Ce({deserialize:l=>l.split(" ")}),Ce.group=new Ce({deserialize:l=>l.split(" ")}),Ce.isolate=new Ce({deserialize:l=>{if(l&&l!="rtl"&&l!="ltr"&&l!="auto")throw new RangeError("Invalid value for isolate: "+l);return l||"auto"}}),Ce.contextHash=new Ce({perNode:!0}),Ce.lookAhead=new Ce({perNode:!0}),Ce.mounted=new Ce({perNode:!0});const ju=Object.create(null);class Hl{constructor(t,a,s,o=0){this.name=t,this.props=a,this.id=s,this.flags=o}static define(t){let a=t.props&&t.props.length?Object.create(null):ju,s=(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,s);if(t.props){for(let i of t.props)if(Array.isArray(i)||(i=i(o)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");a[i[0].id]=i[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(Ce.group);return a?a.indexOf(t)>-1:!1}return this.id==t}static match(t){let a=Object.create(null);for(let s in t)for(let o of s.split(" "))a[o]=t[s];return s=>{for(let o=s.prop(Ce.group),i=-1;i<(o?o.length:0);i++){let n=a[i<0?s.name:o[i]];if(n)return n}}}}Hl.none=new Hl("",Object.create(null),0,8);var bc;(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"})(bc||(bc={})),new Ce({perNode:!0});let Gu=0;class nt{constructor(t,a,s,o){this.name=t,this.set=a,this.base=s,this.modified=o,this.id=Gu++}toString(){let{name:t}=this;for(let a of this.modified)a.name&&(t=`${a.name}(${t})`);return t}static define(t,a){let s=typeof t=="string"?t:"?";if(t instanceof nt&&(a=t),a?.base)throw new Error("Can not derive from a modified tag");let o=new nt(s,[],null,[]);if(o.set.push(o),a)for(let i of a.set)o.set.push(i);return o}static defineModifier(t){let a=new pa(t);return s=>s.modified.indexOf(a)>-1?s:pa.get(s.base||s,s.modified.concat(a).sort((o,i)=>o.id-i.id))}}let Tu=0;class pa{constructor(t){this.name=t,this.instances=[],this.id=Tu++}static get(t,a){if(!a.length)return t;let s=a[0].instances.find(c=>c.base==t&&wu(a,c.modified));if(s)return s;let o=[],i=new nt(t.name,o,t,a);for(let c of a)c.instances.push(i);let n=fu(a);for(let c of t.set)if(!c.modified.length)for(let r of n)o.push(pa.get(c,r));return i}}function wu(l,t){return l.length==t.length&&l.every((a,s)=>a==t[s])}function fu(l){let t=[[]];for(let a=0;a<l.length;a++)for(let s=0,o=t.length;s<o;s++)t.push(t[s].concat(l[a]));return t.sort((a,s)=>s.length-a.length)}new Ce({combine(l,t){let a,s,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 i=new Yo(o.tags,o.mode,o.context);a?a.next=i:s=i,a=i}return s}});class Yo{constructor(t,a,s,o){this.tags=t,this.mode=a,this.context=s,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}}Yo.empty=new Yo([],2,null);function Iu(l,t){let a=Object.create(null);for(let i of l)if(!Array.isArray(i.tag))a[i.tag.id]=i.class;else for(let n of i.tag)a[n.id]=i.class;let{scope:s,all:o=null}={};return{style:i=>{let n=o;for(let c of i)for(let r of c.set){let m=a[r.id];if(m){n=n?n+" "+m:m;break}}return n},scope:s}}const k=nt.define,ua=k(),Ht=k(),pc=k(Ht),uc=k(Ht),Qt=k(),Za=k(Qt),No=k(Qt),Xt=k(),rl=k(Xt),zt=k(),Mt=k(),Ao=k(),Ql=k(Ao),ha=k(),f={comment:ua,lineComment:k(ua),blockComment:k(ua),docComment:k(ua),name:Ht,variableName:k(Ht),typeName:pc,tagName:k(pc),propertyName:uc,attributeName:k(uc),className:k(Ht),labelName:k(Ht),namespace:k(Ht),macroName:k(Ht),literal:Qt,string:Za,docString:k(Za),character:k(Za),attributeValue:k(Za),number:No,integer:k(No),float:k(No),bool:k(Qt),regexp:k(Qt),escape:k(Qt),color:k(Qt),url:k(Qt),keyword:zt,self:k(zt),null:k(zt),atom:k(zt),unit:k(zt),modifier:k(zt),operatorKeyword:k(zt),controlKeyword:k(zt),definitionKeyword:k(zt),moduleKeyword:k(zt),operator:Mt,derefOperator:k(Mt),arithmeticOperator:k(Mt),logicOperator:k(Mt),bitwiseOperator:k(Mt),compareOperator:k(Mt),updateOperator:k(Mt),definitionOperator:k(Mt),typeOperator:k(Mt),controlOperator:k(Mt),punctuation:Ao,separator:k(Ao),bracket:Ql,angleBracket:k(Ql),squareBracket:k(Ql),paren:k(Ql),brace:k(Ql),content:Xt,heading:rl,heading1:k(rl),heading2:k(rl),heading3:k(rl),heading4:k(rl),heading5:k(rl),heading6:k(rl),contentSeparator:k(Xt),list:k(Xt),quote:k(Xt),emphasis:k(Xt),strong:k(Xt),link:k(Xt),monospace:k(Xt),strikethrough:k(Xt),inserted:k(),deleted:k(),changed:k(),invalid:k(),meta:ha,documentMeta:k(ha),annotation:k(ha),processingInstruction:k(ha),definition:nt.defineModifier("definition"),constant:nt.defineModifier("constant"),function:nt.defineModifier("function"),standard:nt.defineModifier("standard"),local:nt.defineModifier("local"),special:nt.defineModifier("special")};for(let l in f){let t=f[l];t instanceof nt&&(t.name=l)}Iu([{tag:f.link,class:"tok-link"},{tag:f.heading,class:"tok-heading"},{tag:f.emphasis,class:"tok-emphasis"},{tag:f.strong,class:"tok-strong"},{tag:f.keyword,class:"tok-keyword"},{tag:f.atom,class:"tok-atom"},{tag:f.bool,class:"tok-bool"},{tag:f.url,class:"tok-url"},{tag:f.labelName,class:"tok-labelName"},{tag:f.inserted,class:"tok-inserted"},{tag:f.deleted,class:"tok-deleted"},{tag:f.literal,class:"tok-literal"},{tag:f.string,class:"tok-string"},{tag:f.number,class:"tok-number"},{tag:[f.regexp,f.escape,f.special(f.string)],class:"tok-string2"},{tag:f.variableName,class:"tok-variableName"},{tag:f.local(f.variableName),class:"tok-variableName tok-local"},{tag:f.definition(f.variableName),class:"tok-variableName tok-definition"},{tag:f.special(f.variableName),class:"tok-variableName2"},{tag:f.definition(f.propertyName),class:"tok-propertyName tok-definition"},{tag:f.typeName,class:"tok-typeName"},{tag:f.namespace,class:"tok-namespace"},{tag:f.className,class:"tok-className"},{tag:f.macroName,class:"tok-macroName"},{tag:f.propertyName,class:"tok-propertyName"},{tag:f.operator,class:"tok-operator"},{tag:f.comment,class:"tok-comment"},{tag:f.meta,class:"tok-meta"},{tag:f.invalid,class:"tok-invalid"},{tag:f.punctuation,class:"tok-punctuation"}]);const vu=al.HighlightStyle.define([{tag:f.comment,color:"#6a737d",fontStyle:"italic"},{tag:f.lineComment,color:"#6a737d",fontStyle:"italic"},{tag:f.blockComment,color:"#6a737d",fontStyle:"italic"},{tag:f.string,color:"#032f62"},{tag:f.special(f.string),color:"#032f62"},{tag:f.number,color:"#005cc5"},{tag:f.integer,color:"#005cc5"},{tag:f.float,color:"#005cc5"},{tag:f.keyword,color:"#d73a49",fontWeight:"bold"},{tag:f.controlKeyword,color:"#d73a49",fontWeight:"bold"},{tag:f.operatorKeyword,color:"#d73a49"},{tag:f.operator,color:"#d73a49"},{tag:f.compareOperator,color:"#d73a49"},{tag:f.arithmeticOperator,color:"#d73a49"},{tag:f.logicOperator,color:"#d73a49"},{tag:f.definition(f.variableName),color:"#6f42c1"},{tag:f.definition(f.function(f.variableName)),color:"#6f42c1",fontWeight:"bold"},{tag:f.variableName,color:"#24292e"},{tag:f.function(f.variableName),color:"#6f42c1"},{tag:f.typeName,color:"#22863a"},{tag:f.className,color:"#22863a",fontWeight:"bold"},{tag:f.namespace,color:"#22863a"},{tag:f.propertyName,color:"#005cc5"},{tag:f.attributeName,color:"#6f42c1"},{tag:f.attributeValue,color:"#032f62"},{tag:f.heading,color:"#005cc5",fontWeight:"bold"},{tag:f.heading1,color:"#005cc5",fontWeight:"bold",fontSize:"1.4em"},{tag:f.heading2,color:"#005cc5",fontWeight:"bold",fontSize:"1.2em"},{tag:f.heading3,color:"#005cc5",fontWeight:"bold",fontSize:"1.1em"},{tag:f.emphasis,fontStyle:"italic",color:"#24292e"},{tag:f.strong,fontWeight:"bold",color:"#24292e"},{tag:f.link,color:"#0366d6",textDecoration:"underline"},{tag:f.url,color:"#0366d6"},{tag:f.quote,color:"#6a737d",fontStyle:"italic"},{tag:f.monospace,color:"#e36209",backgroundColor:"#f6f8fa"},{tag:f.strikethrough,textDecoration:"line-through"},{tag:f.list,color:"#e36209"},{tag:f.tagName,color:"#22863a"},{tag:f.angleBracket,color:"#24292e"},{tag:f.punctuation,color:"#24292e"},{tag:f.bracket,color:"#24292e"},{tag:f.brace,color:"#24292e"},{tag:f.paren,color:"#24292e"},{tag:f.meta,color:"#6a737d"},{tag:f.invalid,color:"#cb2431",backgroundColor:"#ffeef0"}]),Lu={"text/html":()=>r2.html(),"text/markdown":()=>oa.markdown({codeLanguages:Fa.languages}),"text/x-markdown":()=>oa.markdown({codeLanguages:Fa.languages}),"text/x-web-markdown":()=>oa.markdown({codeLanguages:Fa.languages}),"application/json":()=>Ra.json(),"text/json":()=>Ra.json(),"application/xml":()=>ka.xml(),"text/xml":()=>ka.xml(),"application/x-yaml":()=>sa.yaml(),"text/yaml":()=>sa.yaml(),"text/x-yaml":()=>sa.yaml(),"application/x-sh":()=>al.StreamLanguage.define(Ca.shell),"text/x-sh":()=>al.StreamLanguage.define(Ca.shell),"application/x-shellscript":()=>al.StreamLanguage.define(Ca.shell)};function zl(l){if(!l)return[];const t=Lu[l];return t?t():[]}function Ml(l={}){const{editable:t=!1,showLineNumbers:a=!0,enableHistory:s=t,dark:o=!1,lineWrapping:i=!1,onUpdate:n=null}=l,c=[o?c2.oneDark:al.syntaxHighlighting(vu,{fallback:!0}),Le.EditorView.editable.of(t),Le.keymap.of([{key:"Mod-c",run:r=>{const{from:m,to:h}=r.state.selection.main;if(m===h)return!1;const Z=r.state.sliceDoc(m,h);return navigator.clipboard.writeText(Z).catch(()=>{}),!0}}])];return i&&c.push(Le.EditorView.lineWrapping),a&&c.push(Le.lineNumbers()),s?c.push(Cl.history(),Le.keymap.of([...Cl.defaultKeymap,...Cl.historyKeymap,Cl.indentWithTab])):c.push(Le.keymap.of(Cl.defaultKeymap)),n&&c.push(Le.EditorView.updateListener.of(r=>{r.docChanged&&n(r.state.doc.toString())})),c}function Zc(l){const{parent:t,content:a="",mimeType:s="text/plain",editable:o=!1,onUpdate:i=null}=l;if(!t)throw new Error("Parent element is required to create an editor");const n=zl(s),r=[...Ml({editable:o,onUpdate:i})];n&&(!Array.isArray(n)||n.length>0)&&r.push(n);const m=It.EditorState.create({doc:a,extensions:r});return new Le.EditorView({state:m,parent:t})}function Du(){const l=e.shallowRef(null),t=i=>(a(),l.value=Zc(i),l.value),a=()=>{l.value&&(l.value.destroy(),l.value=null)};return{editorView:l,create:t,destroy:a,setContent:i=>{l.value&&l.value.dispatch({changes:{from:0,to:l.value.state.doc.length,insert:i}})},getContent:()=>l.value?l.value.state.doc.toString():"",getLanguageExtension:zl,getBaseExtensions:Ml}}d2.marked.use(Or.markedHighlight({langPrefix:"hljs language-",highlight(l,t){if(t&&xa.getLanguage(t))try{return xa.highlight(l,{language:t}).value}catch(a){console.warn("Highlight.js error:",a)}try{return xa.highlightAuto(l).value}catch{return l}}}));const hc=`
|
|
11
11
|
/* Highlight.js GitHub-like theme */
|
|
12
12
|
.hljs {
|
|
13
13
|
color: #24292e;
|
|
@@ -151,5 +151,5 @@ ${hc}`}</style>
|
|
|
151
151
|
}
|
|
152
152
|
});
|
|
153
153
|
<\/script>
|
|
154
|
-
</html>`}function jo(l={}){const{content:t,mimeType:a,customStyles:s=""}=l,o=e.computed(()=>{const m=a?.value;return m==="text/markdown"||m==="text/x-markdown"||m==="text/x-web-markdown"}),i=e.computed(()=>a?.value==="text/html"),n=e.computed(()=>o.value||i.value),c=e.computed(()=>t?.value?o.value?zo(t.value):i.value?Mo(t.value):"":""),r=e.computed(()=>Oo(c.value,s));return{isMarkdown:o,isHtml:i,shouldRenderPreview:n,previewBodyHtml:c,iframeContent:r,renderMarkdown:zo,sanitizeHtml:Mo,generatePreviewDocument:Oo}}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=re().PRIMEVUE_THEMES_URL,a=document.head,s=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 i=()=>{console.info(`Theme ${l} loaded`)},n=c=>{console.error(`Can’t load theme ${l}`,c)};o.addEventListener("load",i),o.addEventListener("error",n),s&&a.removeChild(s),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)}}}),ku={class:"code-viewer-wrapper"},Cu={key:0,class:"loading-container"},Fu={key:1,class:"error-container"},Vu={key:2},xu=["srcdoc"],Su={name:"PreviewPanel",components:{VideoPlayer:go,ImageViewer:Wo,PDFComponent:_a,PdfSkeleton:ia,CodeMirrorViewer:J({__name:"CodeMirrorViewer",props:{contentNode:{type:Object,required:!0},isSharedLink:{type:Boolean,default:!1}},setup(l){const{t}=ll.useI18n(),a=ya(),s=l,o=e.ref(""),i=e.ref(null),n=e.ref(null),c=e.shallowRef(null),r=e.ref(!1),m=e.ref(null),{isMarkdown:h,isHtml:Z,iframeContent:p}=jo({content:o,mimeType:i}),Y=()=>{if(!n.value)return;const z=zl(i.value),I=[...Ml({editable:!1,showLineNumbers:!0,enableHistory:!1,dark:a.dark})];z&&(!Array.isArray(z)||z.length>0)&&I.push(z);const j=It.EditorState.create({doc:o.value,extensions:I});c.value=new Le.EditorView({state:j,parent:n.value})},A=()=>{c.value&&(c.value.destroy(),c.value=null)},X=async z=>{if(!(!z.id&&!z.shareId)){r.value=!0,m.value=null;try{let y;s.isSharedLink&&z.shareId?y=await S.getSharedLinkContent(z.shareId):y=await S.getNodeContent(z.id,!1);let I=await y.text();if(z.content?.mimeType==="application/json")try{I=JSON.stringify(JSON.parse(I),null,2)}catch(j){console.warn("Failed to format JSON, displaying raw content:",j.message)}o.value=I,i.value=z.content?.mimeType||"text/plain",r.value=!1,await e.nextTick(),!h.value&&!Z.value&&Y()}catch(y){console.error("Failed to load content:",y),m.value=t("editor.loadError"),r.value=!1}}};return e.watch(()=>s.contentNode,z=>{z&&(A(),X(z))},{immediate:!0}),e.onBeforeUnmount(()=>{A()}),(z,y)=>(e.openBlock(),e.createElementBlock("div",ku,[r.value?(e.openBlock(),e.createElementBlock("div",Cu,[e.createVNode(e.unref(Zt))])):m.value?(e.openBlock(),e.createElementBlock("div",Fu,[y[0]||(y[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",Vu,[e.unref(h)||e.unref(Z)?(e.openBlock(),e.createElementBlock("iframe",{key:0,srcdoc:e.unref(p),class:"preview-iframe w-full h-screen",sandbox:"allow-scripts allow-popups"},null,8,xu)):(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"editorContainer",ref:n,class:"h-full w-full"},null,512))]))]))}},[["__scopeId","data-v-2fef27f5"]]),PrimeButton:L,PrimeMessage:it},directives:{tooltip:ut},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,isLoadingPreview:!1,previewError:!1}},computed:{..._.mapState(Be,["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)},retryPreview(){this.currentNodeDisplayed&&this.computeUrl(this.currentNodeDisplayed)},computeUrl(l){this.mimeType=l.content.mimeType,this.currentFileName=l.name,this.currentFileId=l.id,this.previewError=!1,this.mimeType&&(this.mimeType==="application/pdf"||this.mimeType.includes("image/")||this.mimeType.includes("video/"))?(this.isLoadingPreview=!1,this.url=ze.getContentUrl(l.id)):(this.url=null,this.isLoadingPreview=!0,ze.getRenditionUrl(l.id).then(t=>{this.url=t}).catch(t=>{console.warn(`Preview unavailable for "${l.name}": ${t?.message??t}`),this.previewError=!0}).finally(()=>{this.isLoadingPreview=!1}))}}},Ju=["aria-label"],Uu={class:"card p-1 flex-grow-1 overflow-visible pdfPanel scrollbar-width-none card-max-height"},Hu={key:0,class:"flex p-2 pdfPanelHeader"},Qu={"data-testid":"preview-panel-title",class:"text-xl overflow-hidden custom-ellipsis text-left m-auto w-10"},Bu={class:"flex w-fit ml-2"},Eu={key:1},Pu={key:2},_u={key:3},Ku={key:4},$u={key:5},qu={key:6,class:"previewError"};function e1(l,t,a,s,o,i){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("router-link"),r=e.resolveComponent("ImageViewer"),m=e.resolveComponent("VideoPlayer"),h=e.resolveComponent("CodeMirrorViewer"),Z=e.resolveComponent("PDFComponent"),p=e.resolveComponent("PdfSkeleton"),Y=e.resolveComponent("PrimeMessage"),A=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",Uu,[a.currentNodeDisplayed?(e.openBlock(),e.createElementBlock("div",Hu,[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:i.closeContentPanel},null,8,["aria-label","onClick"]),e.withDirectives((e.openBlock(),e.createElementBlock("div",Qu,[e.createTextVNode(e.toDisplayString(a.currentNodeDisplayed.name),1)])),[[A,a.currentNodeDisplayed.name,void 0,{top:!0}]]),e.createElementVNode("div",Bu,[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]=X=>i.showPreviousFile(l.children))},null,8,["aria-label","disabled"]),[[A,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]=X=>i.showNextFile(l.children))},null,8,["aria-label","disabled"]),[[A,l.$t("nextFile"),void 0,{bottom:!0}]]),e.createVNode(c,{to:i.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",Eu,[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",Pu,[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",_u,[e.createVNode(h,{"content-node":a.currentNodeDisplayed},null,8,["content-node"])])):o.url?(e.openBlock(),e.createElementBlock("div",Ku,[(e.openBlock(),e.createBlock(Z,{key:o.url,ref:"pdfComponent",url:o.url,class:"h-full"},null,8,["url"]))])):o.isLoadingPreview?(e.openBlock(),e.createElementBlock("div",$u,[e.createVNode(p)])):o.previewError?(e.openBlock(),e.createElementBlock("div",qu,[e.createVNode(Y,{severity:"warn",closable:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.$t("pdf.previewError")),1)]),_:1}),e.createVNode(n,{type:"button",severity:"secondary",icon:"ri-refresh-line",label:l.$t("pdf.retry"),onClick:i.retryPreview},null,8,["label","onClick"])])):e.createCommentVNode("",!0)])],10,Ju)):e.createCommentVNode("",!0)}const Wc=J(Su,[["render",e1],["__scopeId","data-v-d654a08d"]]),t1={name:"SelectionStatus",components:{PrimeProgressSpinner:Zt},inject:["actionsService"],emits:["resetPageSelection"],computed:{useSelectionStore(){return Me},..._.mapState(Me,["isSelectionRemovalVisible","isCurrentPageFullySelected"]),..._.mapState(Be,["currentNode","loading","pagination","totalRecordNodes"]),hasMoreElements(){return this.totalRecordNodes>=500},hasSelectedNodes(){return Me().nodes.length!==0&&this.pagination&&!this.loading}},methods:{deleteSelection(){Me().resetSelection(),Me().setIsCurrentPageFullySelected(!1),Me().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&&Me().selectNodes(a),Me().setIsCurrentPageFullySelected(!1),Me().setIsSelectionRemovalVisible(!0)})}}},l1={class:"align mb-1 flex-grow-1"},a1={key:1,class:"nbrOfSearchResult"},o1={key:2,class:"nbrOfSearchResult"},s1={key:3,class:"selectOrDeleteDiv"},i1={class:"ml-2 flex"},n1={key:4,class:"selectOrDeleteDiv"},c1={class:"ml-2 flex"};function r1(l,t,a,s,o,i){const n=e.resolveComponent("PrimeProgressSpinner");return e.openBlock(),e.createElementBlock("div",l1,[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&&!i.hasSelectedNodes?(e.openBlock(),e.createElementBlock("div",a1,e.toDisplayString(l.$t("howMuchResult",{nbrEntries:l.pagination.count,totalEntries:l.pagination.totalItems})),1)):i.hasSelectedNodes&&!l.isCurrentPageFullySelected&&!l.isSelectionRemovalVisible?(e.openBlock(),e.createElementBlock("div",o1,e.toDisplayString(l.$t("howMuchSelected",{nbrEntries:i.useSelectionStore().nodes.length,totalEntries:l.pagination.totalItems})),1)):i.hasSelectedNodes&&l.isCurrentPageFullySelected?(e.openBlock(),e.createElementBlock("div",s1,[e.createElementVNode("span",i1,[e.createTextVNode(e.toDisplayString(l.$t("howMuchSelected",{nbrEntries:i.useSelectionStore().nodes.length,totalEntries:l.pagination.totalItems}))+" ",1),i.hasMoreElements?(e.openBlock(),e.createElementBlock("button",{key:0,class:"font-bold cursor-pointer ml-2 p-link",onClick:t[0]||(t[0]=c=>i.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=>i.selectAllNodes())},e.toDisplayString(l.$t("selectAllElement",{totalEntries:l.pagination.totalItems})),1))])])):i.hasSelectedNodes&&l.isSelectionRemovalVisible?(e.openBlock(),e.createElementBlock("div",n1,[e.createElementVNode("span",c1,[e.createTextVNode(e.toDisplayString(l.$t("howMuchSelected",{nbrEntries:i.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=>i.deleteSelection())},e.toDisplayString(l.$t("deleteSelection")),1)])])):e.createCommentVNode("",!0)])}const gc=J(t1,[["render",r1]]),d1={name:"LayoutSelector",components:{PrimeSelectButton:yl},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}}},m1=["aria-label"],b1={class:"sr-only"};function p1(l,t,a,s,o,i){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:i.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",b1,e.toDisplayString(i.getOptionLabel(c)),1)]),_:1},8,["modelValue","options","onChange","aria-label"])],8,m1)}const Yc=J(d1,[["render",p1],["__scopeId","data-v-933501bb"]]),u1={name:"HelpKeyMessage",components:{PrimeMessage:it},props:{helpKey:{type:Boolean,default:!1}},emits:["set-help-hey"],methods:{changeHelpKey(){this.$emit("set-help-hey",!1)}}};function Z1(l,t,a,s,o,i){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:i.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 Nc=J(u1,[["render",Z1],["__scopeId","data-v-3439a6f6"]]),h1={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"}}}},y1={class:"flex w-full gap-1"},W1={class:"flex flex-column flex-grow-1 gap-1"},g1={class:"text-base font-bold"},Y1={class:"text-base"},N1=["href"],A1={key:1};function X1(l,t,a,s,o,i){return e.openBlock(),e.createElementBlock("div",y1,[e.createElementVNode("i",{class:e.normalizeClass([i.iconClass,"mr-2 text-2xl"]),"aria-hidden":"true"},null,2),e.createElementVNode("div",W1,[e.createElementVNode("div",g1,e.toDisplayString(a.summary),1),e.createElementVNode("div",Y1,[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,N1),e.createTextVNode(" "+e.toDisplayString(a.messageAfterLink),1)],64)):(e.openBlock(),e.createElementBlock("div",A1,e.toDisplayString(a.message),1))])])])}const Ac=J(h1,[["render",X1]]),z1={name:"UploadStatus",components:{PrimeKnob:jr},emits:["openFile"],data(){return{isReduced:!1}},computed:{..._.mapState(nl,["files","isUploading","overallMessage","activeRequests"])},methods:{..._.mapActions(nl,["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)}}},M1={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"},O1={class:"flex justify-content-between align-items-center"},j1={key:0,class:"file-list"},G1={class:"flex flex-column pr-1"},T1=["onClick"],w1={key:1,class:"file-name"},f1={key:2,class:"error-message text-xs"},I1={class:"status-container"},v1={key:1};function L1(l,t,a,s,o,i){const n=e.resolveComponent("Button"),c=e.resolveComponent("PrimeKnob");return l.files.length>0?(e.openBlock(),e.createElementBlock("div",M1,[e.createElementVNode("div",O1,[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:i.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",j1,[(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",G1,[r.status==="success"?(e.openBlock(),e.createElementBlock("a",{key:0,class:"file-name cursor-pointer",onClick:m=>i.openFile(r)},e.toDisplayString(r.name),9,T1)):(e.openBlock(),e.createElementBlock("span",w1,e.toDisplayString(r.name),1)),r.status==="error"?(e.openBlock(),e.createElementBlock("p",f1,e.toDisplayString(r.message),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",I1,[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",v1,e.toDisplayString(l.$t("canceledImport")),1)):(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass(`${i.iconForStatus(r.status)}`),style:e.normalizeStyle(i.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=>i.cancelFileUpload(r.name),"aria-label":"Annuler",class:"cancel-btn"},null,8,["onClick"])):e.createCommentVNode("",!0)])]))),128))]))])):e.createCommentVNode("",!0)}const Xc=J(z1,[["render",L1],["__scopeId","data-v-a3067d5a"]]),D1={name:"UploadTargetInfo",computed:{..._.mapState(Be,["currentNode","workspace"])}},R1={class:"overlay-content"},k1={class:"text-xl font-bold"},C1={class:"mt-2 text-color-secondary"};function F1(l,t,a,s,o,i){return e.openBlock(),e.createElementBlock("div",R1,[t[0]||(t[0]=e.createElementVNode("i",{class:"ri-upload-cloud-line text-8xl","aria-hidden":"true"},null,-1)),e.createElementVNode("span",k1,e.toDisplayString(l.$t("dropFileFolders")),1),e.createElementVNode("div",C1,e.toDisplayString(l.currentNode?.name==="documentLibrary"?l.workspace?.title||l.workspace?.id:l.currentNode?.name||l.$t("currentFolder")),1)])}const zc=J(D1,[["render",F1],["__scopeId","data-v-b32d0624"]]),V1={name:"FolderUpload",data(){return{isDraggingOver:!1}},emits:["close"],methods:{..._.mapActions(nl,["startUpload"]),closePopup(){this.$emit("close",!1)},handleFolderSelect(l){const a=Array.from(l.target.files).map(s=>({file:s,relativePath:s.webkitRelativePath}));this.processFiles(a)},processFiles(l){const t=Be().currentNode.id;this.startUpload(l,t),this.closePopup()},async handleDrop(l){this.isDraggingOver=!1;const t=l.dataTransfer.items,a=[],s=[],o=async i=>{if(i.isFile)return new Promise(n=>i.file(c=>{const r=i.fullPath.startsWith("/")?i.fullPath.substring(1):i.fullPath;a.push({file:c,relativePath:r}),n()}));if(i.isDirectory){const n=i.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 i of t){const n=i.webkitGetAsEntry();n&&s.push(o(n))}await Promise.all(s),a.length>0&&this.processFiles(a)},triggerFileInput(){this.$refs.fileInput.click()},handleDragOver(){this.isDraggingOver=!0},handleDragLeave(){this.isDraggingOver=!1}}},x1={class:"p-4 max-w-xl mx-auto p-fileupload p-fileupload-advanced p-component"},S1={class:"p-fileupload-buttonbar"};function J1(l,t,a,s,o,i){const n=e.resolveComponent("Button");return e.openBlock(),e.createElementBlock("div",x1,[e.createElementVNode("div",S1,[e.createVNode(n,{class:"w-full",label:l.$t("selectFolder"),onClick:i.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)=>i.handleDragOver&&i.handleDragOver(...c),["prevent"])),onDragleave:t[1]||(t[1]=e.withModifiers((...c)=>i.handleDragLeave&&i.handleDragLeave(...c),["prevent"])),onDrop:t[2]||(t[2]=e.withModifiers(c=>i.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=>i.handleFolderSelect(c)),ref:"fileInput",class:"hidden"},null,544)])}const Go=J(V1,[["render",J1],["__scopeId","data-v-f2b573ce"]]),U1={name:"ImportPopupWithWorker",components:{FolderUpload:Go},props:{node:{type:Object,required:!0},importType:{type:String,default:"file"},forcedPlanName:{type:String,default:null}},emits:["close","upload-with-plan"],computed:{..._.mapState(nl,["isUploading"])},methods:{..._.mapActions(nl,["startUpload"]),closePopup(){this.$emit("close",!1)},handleUpload(l){const t=l.files;if(!t||t.length===0)return;if(this.forcedPlanName){const s=t.map(o=>new File([o],o.name,{type:o.type}));this.$emit("upload-with-plan",{files:s,planName:this.forcedPlanName}),this.closePopup();return}const a=t.map(s=>({file:new File([s],s.name,{type:s.type}),relativePath:""}));this.startUpload(a,this.node.id),this.closePopup()}}},H1={key:0},Q1={key:1};function B1(l,t,a,s,o,i){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(i.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:i.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:i.closePopup,severity:"secondary"},null,8,["label","onClick"])]),default:e.withCtx(()=>[a.importType==="file"?(e.openBlock(),e.createElementBlock("div",H1,[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:i.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",Q1,[e.createVNode(r,{"data-testid":"import-popup-with-worker-folder-upload",onClose:i.closePopup},null,8,["onClose"])])):e.createCommentVNode("",!0)]),_:1},8,["header","onKeyup"])}const Mc=J(U1,[["render",B1]]);class E1{getConfig(t,a){const s=`fr/jeci/pristy/config/${t}/${a}`;return Al.executeWebScript("GET",s)}updateConfig(t,a,s){const o=`fr/jeci/pristy/config/${t}/${a}`;return Al.executeWebScript("PUT",o,null,null,null,s)}validateValueByType(t,a){if(a==="number"&&(isNaN(parseFloat(t))||!isFinite(t)))return this.$t("config.errors.invalidNumber");if(a==="boolean"){const s=String(t).toLowerCase();if(s!=="true"&&s!=="false")return this.$t("config.errors.invalidBoolean")}if(a==="array"||a==="object")try{const s=JSON.parse(t),o=Array.isArray(s)?"array":typeof s;if(a==="array"&&o!=="array"||a==="object"&&o!=="object")return this.$t("config.errors.typeMismatch",{type:a})}catch{return null}return null}}const Bt=new E1,P1={name:"AddPairInConfigDialog",components:{PrimeDialog:Je,PrimeButton:L,PrimeInputText:we,PrimeDropdown:At},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=Bt.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))}}},_1={class:"field"},K1={for:"newKey"},$1={key:0,class:"p-error"},q1={class:"field"},eZ={for:"newType"},tZ={class:"field"},lZ={for:"newValue"},aZ={key:0,class:"p-error"};function oZ(l,t,a,s,o,i){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:i.submit,autofocus:""},null,8,["label","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("div",_1,[e.createElementVNode("label",K1,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",$1,e.toDisplayString(o.errors.key),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",q1,[e.createElementVNode("label",eZ,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",tZ,[e.createElementVNode("label",lZ,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",aZ,e.toDisplayString(o.errors.value),1)):e.createCommentVNode("",!0)])]),_:1},8,["header","visible"])}const Oc=J(P1,[["render",oZ]]),sZ={class:"array-editor"},iZ=["aria-label"],nZ={key:1,class:"object-item"},cZ={key:0},rZ={key:0},dZ={key:1,class:"object-summary"},mZ={class:"summary-item"},bZ={key:0,class:"summary-item"},pZ={key:1,class:"summary-item"},uZ={class:"summary-item"},ZZ={key:1},hZ={class:"action-buttons"},Wa=J({__name:"ArrayEditor",props:{modelValue:{type:Array,required:!0},isMetadata:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(l,{emit:t}){const a=l,s=t,o=e.ref(JSON.parse(JSON.stringify(a.modelValue))),i=["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,C=>{o.value=JSON.parse(JSON.stringify(C))},{deep:!0});const m=C=>{const x=typeof C;return x==="string"||x==="number"||x==="boolean"},h=C=>typeof C=="object"&&C!==null,Z=(C,x)=>{o.value[C]=x,s("update:modelValue",o.value)},p=(C,x,D)=>{o.value[C][x]=D,s("update:modelValue",o.value)},Y=C=>{o.value.splice(C,1),s("update:modelValue",o.value)},A=()=>{if(a.isMetadata){const C={...r,order:o.value.length+1};o.value.push(C)}else if(o.value.length>0){const C=o.value[0],x=typeof C;x==="string"?o.value.push(""):x==="number"?o.value.push(0):x==="object"&&C!==null?o.value.push(JSON.parse(JSON.stringify(C))):o.value.push("")}else o.value.push("");s("update:modelValue",o.value)},X=C=>{const x=o.value[C];o.value[C]={...r,...x},c.value=C},z=()=>{c.value=null,s("update:modelValue",o.value)},y=C=>{const x=JSON.parse(JSON.stringify(o.value[C]));o.value.splice(C+1,0,x),o.value.forEach((D,le)=>{h(D)&&Object.prototype.hasOwnProperty.call(D,"order")&&(D.order=le+1)}),s("update:modelValue",o.value)},I=(C,x)=>{const D=C+x;if(D<0||D>=o.value.length)return;const le=o.value.splice(C,1)[0];o.value.splice(D,0,le),o.value.forEach((G,T)=>{h(G)&&Object.prototype.hasOwnProperty.call(G,"order")&&(G.order=T+1)}),s("update:modelValue",o.value)},j=()=>{o.value.forEach((C,x)=>{h(C)&&Object.prototype.hasOwnProperty.call(C,"order")&&(C.order=x+1)}),s("update:modelValue",o.value)},v=C=>{if(!a.isMetadata)return"transparent";const x=C.modelAspect||C.modelType;if(!x)return"transparent";let D=0;for(let G=0;G<x.length;G++)D=x.charCodeAt(G)+((D<<5)-D);return`hsl(${D%360}, 70%, 90%)`};return(C,x)=>(e.openBlock(),e.createElementBlock("div",sZ,[e.createVNode(e.unref(b2.VueDraggableNext),{modelValue:o.value,"onUpdate:modelValue":x[1]||(x[1]=D=>o.value=D),"ghost-class":"ghost",handle:".drag-handle","item-key":"index",onEnd:j},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(D,le)=>(e.openBlock(),e.createElementBlock("div",{key:le,class:"array-item",style:e.normalizeStyle({backgroundColor:v(D)})},[e.createElementVNode("button",{class:"drag-handle","aria-label":C.$t("config.arrayEditor.reorder")},[...x[2]||(x[2]=[e.createElementVNode("i",{class:"ri-draggable","aria-hidden":"true"},null,-1)])],8,iZ),m(D)?(e.openBlock(),e.createBlock(e.unref(we),{key:0,"model-value":D,"onUpdate:modelValue":G=>Z(le,G),class:"p-inputtext-sm"},null,8,["model-value","onUpdate:modelValue"])):(e.openBlock(),e.createElementBlock("div",nZ,[l.isMetadata?(e.openBlock(),e.createElementBlock("div",cZ,[c.value===le?(e.openBlock(),e.createElementBlock("div",rZ,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(r),G=>(e.openBlock(),e.createElementBlock("div",{key:G,class:"object-property"},[e.createElementVNode("label",null,e.toDisplayString(G),1),G==="input"?(e.openBlock(),e.createBlock(e.unref(At),{key:0,"model-value":D[G],"onUpdate:modelValue":T=>p(le,G,T),options:i,class:"p-inputtext-sm"},null,8,["model-value","onUpdate:modelValue"])):G==="display"?(e.openBlock(),e.createBlock(e.unref(Gr),{key:1,"model-value":D[G],"onUpdate:modelValue":T=>p(le,G,T),options:n,class:"p-inputtext-sm"},null,8,["model-value","onUpdate:modelValue"])):G==="readOnly"?(e.openBlock(),e.createBlock(e.unref(Sa),{key:2,"model-value":D[G],"onUpdate:modelValue":T=>p(le,G,T)},null,8,["model-value","onUpdate:modelValue"])):(e.openBlock(),e.createBlock(e.unref(we),{key:3,"model-value":D[G],"onUpdate:modelValue":T=>p(le,G,T),class:"p-inputtext-sm"},null,8,["model-value","onUpdate:modelValue"]))]))),128))])):(e.openBlock(),e.createElementBlock("div",dZ,[e.createElementVNode("div",mZ,[x[3]||(x[3]=e.createElementVNode("strong",null,"ID:",-1)),e.createTextVNode(" "+e.toDisplayString(D.id),1)]),D.title?(e.openBlock(),e.createElementBlock("div",bZ,[x[4]||(x[4]=e.createElementVNode("strong",null,"Title:",-1)),e.createTextVNode(" "+e.toDisplayString(D.title),1)])):e.createCommentVNode("",!0),D.labelId?(e.openBlock(),e.createElementBlock("div",pZ,[x[5]||(x[5]=e.createElementVNode("strong",null,"Label ID:",-1)),e.createTextVNode(" "+e.toDisplayString(D.labelId),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",uZ,[x[6]||(x[6]=e.createElementVNode("strong",null,"Input:",-1)),e.createTextVNode(" "+e.toDisplayString(D.input),1)])]))])):(e.openBlock(),e.createElementBlock("div",ZZ,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D,(G,T)=>(e.openBlock(),e.createElementBlock("div",{key:T,class:"object-property"},[e.createElementVNode("label",null,e.toDisplayString(T),1),e.createVNode(e.unref(we),{"model-value":G,"onUpdate:modelValue":F=>p(le,T,F),class:"p-inputtext-sm"},null,8,["model-value","onUpdate:modelValue"])]))),128))]))])),e.createElementVNode("div",hZ,[l.isMetadata&&c.value!==le?(e.openBlock(),e.createBlock(e.unref(L),{key:0,icon:"ri-pencil-line","aria-label":C.$t("modify"),class:"p-button-secondary p-button-sm",onClick:G=>X(le)},null,8,["aria-label","onClick"])):e.createCommentVNode("",!0),l.isMetadata&&c.value===le?(e.openBlock(),e.createBlock(e.unref(L),{key:1,icon:"ri-check-line","aria-label":C.$t("save"),class:"p-button-success p-button-sm",onClick:x[0]||(x[0]=G=>z())},null,8,["aria-label"])):e.createCommentVNode("",!0),l.isMetadata?(e.openBlock(),e.createBlock(e.unref(L),{key:2,icon:"ri-arrow-up-line","aria-label":C.$t("moveUp"),class:"p-button-secondary p-button-sm",onClick:G=>I(le,-1),disabled:le===0},null,8,["aria-label","onClick","disabled"])):e.createCommentVNode("",!0),l.isMetadata?(e.openBlock(),e.createBlock(e.unref(L),{key:3,icon:"ri-arrow-down-line","aria-label":C.$t("moveDown"),class:"p-button-secondary p-button-sm",onClick:G=>I(le,1),disabled:le===o.value.length-1},null,8,["aria-label","onClick","disabled"])):e.createCommentVNode("",!0),l.isMetadata?(e.openBlock(),e.createBlock(e.unref(L),{key:4,icon:"ri-file-copy-line","aria-label":C.$t("duplicate"),class:"p-button-secondary p-button-sm",onClick:G=>y(le)},null,8,["aria-label","onClick"])):e.createCommentVNode("",!0),e.createVNode(e.unref(L),{icon:"ri-delete-bin-line","aria-label":C.$t("delete"),class:"p-button-danger p-button-sm",onClick:G=>Y(le)},null,8,["aria-label","onClick"])])],4))),128))]),_:1},8,["modelValue"]),e.createVNode(e.unref(L),{label:C.$t("config.arrayEditor.addItem"),icon:"ri-add-line",class:"p-button-sm p-button-secondary mt-2",onClick:A},null,8,["label"])]))}},[["__scopeId","data-v-63991436"]]),yZ={class:"config-cards-container"},WZ={class:"card-title-wrapper"},gZ={class:"type-badge ml-2"},YZ={class:"title-buttons"},NZ={key:0,class:"description"},AZ={key:1,class:"undefined-container"},XZ={class:"help-text"},zZ={key:2,class:"editor-container"},MZ={key:3},jc=J({__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,s=t,o=e.ref(a.configData.reduce((h,Z)=>(Z.type==="array"&&(h[Z.key]=!1),h),{})),i=h=>{o.value[h]=!o.value[h]},n=(h,Z)=>{const p=a.configData.map(Y=>Y.key===h?{...Y,value:Z}:Y);s("update:config",p)},c=h=>{const Z=a.configData.map(p=>p.key===h?{...p,isDefined:!0}:p);s("update:config",Z)},r=h=>{const Z=a.configData.map(p=>{if(p.key===h){const Y=a.descriptions[h]?.default;return{...p,isDefined:!1,value:Y}}return p});s("update:config",Z)},m=e.computed(()=>[...a.configData].sort((h,Z)=>h.key.localeCompare(Z.key)));return(h,Z)=>(e.openBlock(),e.createElementBlock("div",yZ,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,p=>(e.openBlock(),e.createBlock(e.unref(m2),{key:p.key,class:"config-card"},{title:e.withCtx(()=>[e.createElementVNode("div",WZ,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(p.key)+" ",1),e.createElementVNode("small",gZ,e.toDisplayString(h.$t(`config.types.${p.type}`)),1)]),e.createElementVNode("div",YZ,[p.type==="array"&&p.isDefined?(e.openBlock(),e.createBlock(e.unref(L),{key:0,icon:o.value[p.key]?"ri-close-large-line":"ri-add-large-line",class:"p-button-text p-button","aria-label":o.value[p.key]?h.$t("config.buttons.collapse"):h.$t("config.buttons.expand"),onClick:Y=>i(p.key)},null,8,["icon","aria-label","onClick"])):e.createCommentVNode("",!0),p.isDefined?(e.openBlock(),e.createBlock(e.unref(L),{key:1,icon:"ri-delete-bin-line",severity:"danger","aria-label":h.$t("config.buttons.undefine"),class:"p-button-sm",onClick:Y=>r(p.key)},null,8,["aria-label","onClick"])):e.createCommentVNode("",!0)])])]),content:e.withCtx(()=>[l.descriptions[p.key]?.descriptionKey?(e.openBlock(),e.createElementBlock("p",NZ,e.toDisplayString(h.$t(l.descriptions[p.key].descriptionKey)),1)):e.createCommentVNode("",!0),p.isDefined?e.withDirectives((e.openBlock(),e.createElementBlock("div",zZ,[p.type==="boolean"?(e.openBlock(),e.createBlock(e.unref(Sa),{key:0,"model-value":p.value,"onUpdate:modelValue":Y=>n(p.key,Y)},null,8,["model-value","onUpdate:modelValue"])):p.type==="array"?(e.openBlock(),e.createBlock(Wa,{key:1,"is-metadata":p.key==="METADATA","model-value":p.value,"onUpdate:modelValue":Y=>n(p.key,Y)},null,8,["is-metadata","model-value","onUpdate:modelValue"])):p.type==="string"||p.type==="number"?(e.openBlock(),e.createBlock(e.unref(we),{key:2,"model-value":p.value,class:"w-full","onUpdate:modelValue":Y=>n(p.key,Y)},null,8,["model-value","onUpdate:modelValue"])):p.type==="object"?(e.openBlock(),e.createElementBlock("pre",MZ,e.toDisplayString(p.value),1)):e.createCommentVNode("",!0)],512)),[[e.vShow,p.type!=="array"||o.value[p.key]]]):(e.openBlock(),e.createElementBlock("div",AZ,[e.createVNode(e.unref(L),{label:h.$t("config.buttons.define"),icon:"ri-add-line",class:"p-button-outlined",onClick:Y=>c(p.key)},null,8,["label","onClick"]),e.createElementVNode("small",XZ,e.toDisplayString(h.$t("config.notDefined")),1)]))]),_:2},1024))),128))]))}},[["__scopeId","data-v-810371d5"]]),OZ={class:"config-item-editor"},jZ={class:"editor-header"},GZ={class:"config-key"},TZ={class:"type-badge"},wZ={key:0,class:"config-description"},fZ={class:"definition-actions"},IZ={key:0,class:"undefined-container"},vZ={class:"help-text"},LZ={key:1,class:"defined-actions"},DZ={key:1,class:"editor-content"},RZ={key:0,class:"editor-field"},kZ={key:1,class:"editor-field"},CZ={key:2,class:"editor-field"},FZ={key:3,class:"editor-field editor-field-array"},VZ={key:4,class:"editor-field"},xZ={class:"object-display"},SZ={key:2,class:"default-hint"},To=J({__name:"ConfigItemEditor",props:{item:{type:Object,required:!0},description:{type:Object,default:()=>({})}},emits:["update:value","define","undefine"],setup(l,{emit:t}){const a=t,s=c=>{a("update:value",c)},o=()=>{a("define")},i=()=>{a("undefine")},n=c=>typeof c=="object"?JSON.stringify(c):String(c);return(c,r)=>(e.openBlock(),e.createElementBlock("div",OZ,[e.createElementVNode("div",jZ,[e.createElementVNode("h3",GZ,e.toDisplayString(l.item.key),1),e.createElementVNode("span",TZ,e.toDisplayString(c.$t(`config.types.${l.item.type}`)),1)]),l.description?.descriptionKey?(e.openBlock(),e.createElementBlock("p",wZ,e.toDisplayString(c.$t(l.description.descriptionKey)),1)):e.createCommentVNode("",!0),e.createElementVNode("div",fZ,[l.item.isDefined?(e.openBlock(),e.createElementBlock("div",LZ,[e.createVNode(e.unref(L),{label:c.$t("config.buttons.undefine"),icon:"ri-delete-bin-line",severity:"danger",class:"p-button-outlined p-button-sm",onClick:i},null,8,["label"])])):(e.openBlock(),e.createElementBlock("div",IZ,[e.createVNode(e.unref(L),{label:c.$t("config.buttons.define"),icon:"ri-add-line",class:"p-button-outlined",onClick:o},null,8,["label"]),e.createElementVNode("small",vZ,e.toDisplayString(c.$t("config.notDefined")),1)]))]),l.item.isDefined?(e.openBlock(),e.createElementBlock("div",DZ,[l.item.type==="boolean"?(e.openBlock(),e.createElementBlock("div",RZ,[e.createElementVNode("label",null,e.toDisplayString(c.$t("config.table.valueHeader")),1),e.createVNode(e.unref(Sa),{"model-value":l.item.value,"onUpdate:modelValue":s},null,8,["model-value"])])):l.item.type==="string"?(e.openBlock(),e.createElementBlock("div",kZ,[e.createElementVNode("label",null,e.toDisplayString(c.$t("config.table.valueHeader")),1),e.createVNode(e.unref(we),{"model-value":l.item.value,class:"w-full","onUpdate:modelValue":s},null,8,["model-value"])])):l.item.type==="number"?(e.openBlock(),e.createElementBlock("div",CZ,[e.createElementVNode("label",null,e.toDisplayString(c.$t("config.table.valueHeader")),1),e.createVNode(e.unref(Ll),{"model-value":l.item.value,class:"w-full","onUpdate:modelValue":s},null,8,["model-value"])])):l.item.type==="array"?(e.openBlock(),e.createElementBlock("div",FZ,[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":s},null,8,["is-metadata","model-value"])])):l.item.type==="object"?(e.openBlock(),e.createElementBlock("div",VZ,[e.createElementVNode("label",null,e.toDisplayString(c.$t("config.table.valueHeader")),1),e.createElementVNode("pre",xZ,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",SZ,[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"]]),JZ={class:"config-split-view"},UZ={class:"config-list-panel"},HZ={class:"filter-container"},QZ={class:"p-input-icon-left w-full"},BZ={class:"config-groups"},EZ=["onClick"],PZ={class:"group-label"},_Z={class:"group-count"},KZ={class:"group-items"},$Z=["onClick"],qZ={class:"item-key"},e3=["title"],t3={key:0,class:"empty-state"},l3={class:"config-editor-panel"},a3={key:0,class:"editor-wrapper"},o3={key:1,class:"empty-editor"},Gc=J({__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}=ll.useI18n(),s=l,o=t,i=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_"]},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=y=>{for(const[I,j]of Object.entries(r))if(I!=="other"){if(j.keys&&j.keys.includes(y))return I;if(j.prefixes){for(const v of j.prefixes)if(y.startsWith(v))return I}}return"other"},h=e.computed(()=>{const y=i.value.toLowerCase().trim(),I={};for(const v of Object.keys(r))I[v]=[];for(const v of s.configData){if(y){const x=v.key.toLowerCase().includes(y),D=s.descriptions[v.key]?.descriptionKey,le=D?a(D).toLowerCase().includes(y):!1;if(!x&&!le)continue}const C=m(v.key);I[C].push(v)}for(const v of Object.keys(I))I[v].sort((C,x)=>C.key.localeCompare(x.key));const j=[];for(const[v,C]of Object.entries(r))I[v].length>0&&j.push({id:v,label:C.label,items:I[v]});return j}),Z=e.computed(()=>n.value?s.configData.find(y=>y.key===n.value):null),p=y=>{c.value[y]=!c.value[y]},Y=y=>{n.value=y},A=y=>{if(!n.value)return;const I=s.configData.map(j=>j.key===n.value?{...j,value:y}:j);o("update:config",I)},X=()=>{if(!n.value)return;const y=s.configData.map(I=>I.key===n.value?{...I,isDefined:!0}:I);o("update:config",y)},z=()=>{if(!n.value)return;const y=s.configData.map(I=>{if(I.key===n.value){const j=s.descriptions[I.key]?.default;return{...I,isDefined:!1,value:j}}return I});o("update:config",y)};return e.watch(()=>s.configData,()=>{!n.value&&s.configData.length>0&&h.value.length>0&&h.value[0].items.length>0&&(n.value=h.value[0].items[0].key)},{immediate:!0}),(y,I)=>(e.openBlock(),e.createElementBlock("div",JZ,[e.createElementVNode("div",UZ,[e.createElementVNode("div",HZ,[e.createElementVNode("span",QZ,[I[1]||(I[1]=e.createElementVNode("i",{class:"ri-search-line","aria-hidden":"true"},null,-1)),e.createVNode(e.unref(we),{modelValue:i.value,"onUpdate:modelValue":I[0]||(I[0]=j=>i.value=j),placeholder:y.$t("config.splitView.filterPlaceholder"),class:"w-full"},null,8,["modelValue","placeholder"])])]),e.createElementVNode("div",BZ,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,j=>(e.openBlock(),e.createElementBlock("div",{key:j.id,class:"config-group"},[e.createElementVNode("div",{class:"group-header",onClick:v=>p(j.id)},[e.createElementVNode("i",{class:e.normalizeClass(c.value[j.id]?"ri-arrow-right-s-line":"ri-arrow-down-s-line"),"aria-hidden":"true"},null,2),e.createElementVNode("span",PZ,e.toDisplayString(y.$t(j.label)),1),e.createElementVNode("span",_Z,e.toDisplayString(j.items.length),1)],8,EZ),e.withDirectives(e.createElementVNode("div",KZ,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.items,v=>(e.openBlock(),e.createElementBlock("div",{key:v.key,class:e.normalizeClass(["config-list-item",{"is-selected":n.value===v.key,"is-undefined":!v.isDefined}]),onClick:C=>Y(v.key)},[e.createElementVNode("span",qZ,e.toDisplayString(v.key),1),v.isDefined?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("i",{key:0,class:"ri-checkbox-blank-circle-line undefined-indicator",title:y.$t("config.notDefined"),"aria-hidden":"true"},null,8,e3))],10,$Z))),128))],512),[[e.vShow,!c.value[j.id]]])]))),128)),h.value.length===0?(e.openBlock(),e.createElementBlock("div",t3,[I[2]||(I[2]=e.createElementVNode("i",{class:"ri-search-line","aria-hidden":"true"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(y.$t("config.splitView.noResults")),1)])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",l3,[Z.value?(e.openBlock(),e.createElementBlock("div",a3,[e.createVNode(To,{item:Z.value,description:l.descriptions[Z.value.key],"onUpdate:value":A,onDefine:X,onUndefine:z},null,8,["item","description"])])):(e.openBlock(),e.createElementBlock("div",o3,[I[3]||(I[3]=e.createElementVNode("i",{class:"ri-settings-3-line","aria-hidden":"true"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(y.$t("config.splitView.selectConfig")),1)]))])]))}},[["__scopeId","data-v-c0f7b81c"]]),s3={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=s=>{try{const o=JSON.parse(s.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=s=>{console.error("handle file upload error",s)},a.readAsText(t)}}},i3={class:"p-3"},n3={class:"mt-0 mb-3 text-color-secondary"},c3={class:"mt-2 block"};function r3(l,t,a,s,o,i){const n=e.resolveComponent("PrimeFileUpload");return e.openBlock(),e.createElementBlock("div",i3,[e.createElementVNode("p",n3,e.toDisplayString(l.$t("config.raw.uploadDescription")),1),e.createVNode(n,{mode:"basic",name:"configfile[]",accept:".json",maxFileSize:1e6,customUpload:"",onUploader:i.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",c3,e.toDisplayString(l.$t("config.raw.uploadWarning")),1)])}const Tc=J(s3,[["render",r3]]),d3={name:"ListVersionConfig",components:{PrimeButton:L,PrimeCard:m2,PrimeTextarea:hl,PrimeProgressSpinner:Zt},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(),s=JSON.parse(a);this.selectedVersionContent=JSON.stringify(s,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 s=this.currentNode.name.split("."),o=s.pop(),i=s.join("."),n=document.createElement("a"),c=l.id.replace(".","-");n.href=URL.createObjectURL(t),n.download=`${i}_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});S.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(s=>{console.error(s),this.$toast.add({severity:"error",summary:this.$t("error"),detail:s.message||this.$t("config.versionViewer.error"),life:3e3})})},getContent(l,t){return S.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}):""}}},m3={key:0,class:"block text-600 font-medium mb-3"},b3={class:"grid"},p3={class:"col-12 md:col-5"},u3={class:"p-0 mx-0 mt-0 mb-4 list-none version-list-container"},Z3=["onClick"],h3={class:"w-3rem h-3rem flex align-items-center justify-content-center bg-blue-100 border-circle mr-3 flex-shrink-0"},y3={class:"text-xl text-blue-500 font-bold"},W3={class:"text-900 line-height-3 flex-grow-1"},g3={class:"text-700"},Y3={key:0},N3={class:"ml-2"},A3={class:"col-12 md:col-7"},X3={key:0,class:"flex justify-content-center align-items-center h-full"},z3={key:1,class:"h-full"},M3={key:2,class:"text-center text-color-secondary"};function O3(l,t,a,s,o,i){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",m3,e.toDisplayString(a.title.toUpperCase()),1)):e.createCommentVNode("",!0),e.createElementVNode("div",b3,[e.createElementVNode("div",p3,[e.createElementVNode("ul",u3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.versions,Z=>(e.openBlock(),e.createElementBlock("li",{key:Z.id,class:e.normalizeClass(["flex align-items-center py-2 border-bottom-1 surface-border version-row",{"active-version":o.selectedVersion&&o.selectedVersion.id===Z.entry.id}]),onClick:p=>i.selectVersion(Z.entry)},[e.createElementVNode("div",h3,[e.createElementVNode("span",y3,e.toDisplayString(Z.entry.id),1)]),e.createElementVNode("span",W3,[e.createTextVNode(e.toDisplayString(i.toLocaleDateString(Z.entry.modifiedAt))+" "+e.toDisplayString(l.$t("at"))+" "+e.toDisplayString(i.toLocaleTimeString(Z.entry.modifiedAt))+" ",1),e.createElementVNode("span",g3,[e.createTextVNode(e.toDisplayString(l.$t("by"))+" "+e.toDisplayString(Z.entry.modifiedByUser.displayName)+" ",1),t[0]||(t[0]=e.createElementVNode("br",null,null,-1)),Z.entry.versionComment?(e.openBlock(),e.createElementBlock("em",Y3,e.toDisplayString(Z.entry.versionComment),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",N3,[e.withDirectives(e.createVNode(n,{type:"button",icon:"ri-download-line","aria-label":l.$t("download"),onClick:e.withModifiers(p=>i.download(Z.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:p=>i.revert(Z.entry),severity:"secondary",rounded:"",text:""},null,8,["aria-label","onClick"]),[[h,l.$t("restore"),void 0,{left:!0}]])])],10,Z3))),128))])]),e.createElementVNode("div",A3,[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",X3,[e.createVNode(c)])):o.selectedVersionContent?(e.openBlock(),e.createElementBlock("div",z3,[e.createVNode(r,{"model-value":o.selectedVersionContent,readonly:"",class:"w-full font-mono h-25rem"},null,8,["model-value"])])):(e.openBlock(),e.createElementBlock("div",M3,[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 wc=J(d3,[["render",O3],["__scopeId","data-v-593c47b8"]]),fc={id:null,property:null,negation:!1,operator:null,value:null,value_end:null},j3={name:"AddCriterionPopup",components:{PrimeDialog:Je,PrimeDropdown:At,PrimeSelectButton:yl,PrimeInputText:we,PrimeCalendar:La,PrimeInputNumber:Ll,PrimeButton:L,PrimeDataTable:Dl,PrimeColumn:Rl},props:{visible:Boolean,properties:{type:Array,required:!0}},emits:["update:visible","add-criterion"],data(){return{criterion:{...fc},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={...fc},this.$emit("update:visible",!1)}}},G3={class:"p-fluid formgrid grid mt-3"},T3={class:"field col-12"},w3={key:0,class:"font-semibold"},f3={key:1,class:"font-semibold"},I3={class:"text-sm"},v3={key:0,class:"text-gray-600"},L3={key:1,class:"text-gray-600"},D3={class:"field col-12 md:col-6"},R3={class:"field col-12 md:col-6"},k3={class:"field col-12"},C3={class:"flex gap-2"};function F3(l,t,a,s,o,i){const n=e.resolveComponent("PrimeColumn"),c=e.resolveComponent("PrimeDataTable"),r=e.resolveComponent("PrimeSelectButton"),m=e.resolveComponent("PrimeDropdown"),h=e.resolveComponent("PrimeInputText"),Z=e.resolveComponent("PrimeCalendar"),p=e.resolveComponent("PrimeInputNumber"),Y=e.resolveComponent("PrimeButton"),A=e.resolveComponent("PrimeDialog");return e.openBlock(),e.createBlock(A,{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:i.addCriterion,disabled:!i.isCriterionValid},null,8,["label","onClick","disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",G3,[e.createElementVNode("div",T3,[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:i.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",w3,e.toDisplayString(l.$t(X.data.labelId)),1)):(e.openBlock(),e.createElementBlock("span",f3,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",I3,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",v3,e.toDisplayString(X.data.modelAspect),1)):(e.openBlock(),e.createElementBlock("span",L3,e.toDisplayString(X.data.modelType||""),1))]),_:1},8,["header"])]),_:1},8,["selection","value","paginator","onRowSelect"])]),e.createElementVNode("div",D3,[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:i.negationOptions,optionLabel:"label",optionValue:"value"},null,8,["modelValue","options"])]),e.createElementVNode("div",R3,[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:i.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",k3,[e.createElementVNode("label",null,e.toDisplayString(l.$t("rechercheAvancee.valueLabel")),1),e.createElementVNode("div",C3,[i.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),i.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:i.booleanOptions,optionLabel:"label",optionValue:"value"},null,8,["modelValue","options"])):e.createCommentVNode("",!0),i.propertyType==="date"||i.propertyType==="datetime"?(e.openBlock(),e.createBlock(Z,{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),(i.propertyType==="date"||i.propertyType==="datetime")&&o.criterion.operator==="range"?(e.openBlock(),e.createBlock(Z,{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(i.propertyType)?(e.openBlock(),e.createBlock(p,{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(i.propertyType)&&o.criterion.operator==="range"?(e.openBlock(),e.createBlock(p,{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=J(j3,[["render",F3],["__scopeId","data-v-f9a9cf16"]]),Ee=sl.global.t,Ol="env-config.json",wo="savedViews.json",Ic={include:["aspectNames","isFavorite","properties","allowableOperations","permissions","path","isLocked"],maxItems:500,skipCount:0};class V3{async _getHiddenFolder(t,a=!1){const o=(await S.getHomeFolderFromUser(t)).list.entries[0].entry.properties["cm:homeFolder"];if(!o)throw new Error(Ee("vuesUtilisateurs.noUserHomeFound"));let n=(await S.getChildrenWithOpts(o,Ic,!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 S.getChildrenWithOpts(t,Ic,!0)).children.find(i=>i.name===wo);if(!o&&a){console.warn(`No ${wo} file found, creating one...`);const i={name:wo,nodeType:"cm:content"},n={personalSavedView:[],globalFavoriteView:[]},c=new Blob([JSON.stringify(n,null,2)],{type:"application/json"}),m=(await ze.uploadFile(t,i,c)).entry;o=(await S.updateNode(m.id,{aspectNames:[...m.aspectNames||[],"pm:hidden"]})).entry}return o}async getContent(t,a,s){try{return await S.getVersionContent(t,a,s)}catch(o){throw console.error("Error getting content:",o.message),o}}async _parseFileContent(t){let a;try{const s=await this.getContent(t.id,t.properties["cm:versionLabel"],!0);a=await(i=>new Promise((n,c)=>{if(!(i instanceof Blob)){n(i);return}const r=new FileReader;r.onload=()=>n(r.result),r.onerror=m=>c(m),r.readAsText(i,"utf-8")}))(s)}catch(s){console.warn(`Could not get content for node ${t.id}, assuming empty.`,s.message),a=""}if(!a||a.trim()==="")return{personalSavedView:[],globalFavoriteView:[]};try{return JSON.parse(a)}catch(s){return console.error("Error parsing JSON content:",s),{personalSavedView:[],globalFavoriteView:[]}}}_normalizeFileContent(t){return Array.isArray(t)?{personalSavedView:t,globalFavoriteView:[]}:{personalSavedView:t?.personalSavedView||[],globalFavoriteView:t?.globalFavoriteView||[]}}async _loadViewsFileContent(){const t=Ae().person;if(!t)throw new Error(Ee("vuesUtilisateurs.userNotFound"));const a=await this._getHiddenFolder(t.id,!1);if(!a)return null;const s=await this._getOrCreateViewsFile(a.id,!1);return s?this._parseFileContent(s):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=re();return Promise.resolve(t.SAVED_VIEWS_GLOBAL||[])}async createConfigFolder(t){const a={aspectNames:["pm:hidden"],nodeType:"cm:folder",name:"Configuration"};try{return await S.createNode(t,a)}catch(s){throw console.error("Error while creating the Configuration folder :",s),s}}async _savePersonalView(t){const a=Ae().person;if(!a)throw new Error(Ee("vuesUtilisateurs.userNotFound"));const s=await this._getHiddenFolder(a.id,!0),o=await this._getOrCreateViewsFile(s.id,!0);let i=await this._parseFileContent(o),n=this._normalizeFileContent(i);const c=n.personalSavedView;if(c.some(h=>h.id===t.id))throw new Error(Ee("vuesUtilisateurs.savedViewError.idAlreadyExists",{id:t.id}));if(c.some(h=>h.name.toLowerCase()===t.name.toLowerCase()))throw new Error(Ee("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 S.updateContentNode(o.id,m,"MAJEURE",null)}async saveView(t){if(t.scope==="global")try{const a=await Bt.getConfig(re().INSTANCE_NAME,Ol),s=a.jsonContent.SAVED_VIEWS_GLOBAL||[];if(s.some(o=>o.id===t.id))throw new Error(Ee("vuesUtilisateurs.savedViewError.idAlreadyExists",{id:t.id}));if(s.some(o=>o.name.toLowerCase()===t.name.toLowerCase()))throw new Error(Ee("vuesUtilisateurs.savedViewError.nameAlreadyExists",{id:t.name}));s.push(t),a.jsonContent.SAVED_VIEWS_GLOBAL=s,await Bt.updateConfig(re().INSTANCE_NAME,Ol,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=Ae().person;if(!a)throw new Error(Ee("vuesUtilisateurs.userNotFoundForUpdate"));const s=await this._getHiddenFolder(a.id,!0),o=await this._getOrCreateViewsFile(s.id,!0);let i=await this._parseFileContent(o),n=this._normalizeFileContent(i);const c=n.personalSavedView;if(c.some(Z=>Z.id!==t.id&&Z.name.toLowerCase()===t.name.toLowerCase()))throw new Error(Ee("vuesUtilisateurs.savedViewError.nameAlreadyExists",{id:t.name}));const r=c.findIndex(Z=>Z.id===t.id);if(r===-1)throw new Error(Ee("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 S.updateContentNode(o.id,h,"MAJEURE",null)}async updateView(t){if(t.scope==="global")try{const a=await Bt.getConfig(re().INSTANCE_NAME,Ol),s=a.jsonContent.SAVED_VIEWS_GLOBAL||[];if(s.some(i=>i.id!==t.id&&i.name.toLowerCase()===t.name.toLowerCase()))throw new Error(Ee("vuesUtilisateurs.savedViewError.nameAlreadyExists",{id:t.name}));const o=s.findIndex(i=>i.id===t.id);if(o===-1)throw new Error(Ee("vuesUtilisateurs.savedViewError.globalNotFound",{id:t.id}));return s[o]=t,a.jsonContent.SAVED_VIEWS_GLOBAL=s,await Bt.updateConfig(re().INSTANCE_NAME,Ol,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=Ae().person;if(!a)throw new Error(Ee("vuesUtilisateurs.userNotFoundForDelete"));const s=await this._getHiddenFolder(a.id,!1);if(!s)throw new Error(Ee("vuesUtilisateurs.configFolderNotFound"));const o=await this._getOrCreateViewsFile(s.id,!1);if(!o)throw new Error(Ee("vuesUtilisateurs.configFileNotFound"));let i=await this._parseFileContent(o),n=this._normalizeFileContent(i);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 S.updateContentNode(o.id,m,"MAJEURE",null)}async deleteView(t){if(t.scope==="global"){try{const a=await Bt.getConfig(re().INSTANCE_NAME,Ol),s=a.jsonContent.SAVED_VIEWS_GLOBAL||[];a.jsonContent.SAVED_VIEWS_GLOBAL=s.filter(o=>o.id!==t.id),await Bt.updateConfig(re().INSTANCE_NAME,Ol,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=Ae().person;if(!a)throw new Error(Ee("vuesUtilisateurs.userNotFound"));const s=await this._getHiddenFolder(a.id,!0),o=await this._getOrCreateViewsFile(s.id,!0);let i=await this._parseFileContent(o),n=this._normalizeFileContent(i);const c=n.globalFavoriteView,r=c.findIndex(Z=>Z.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 S.updateContentNode(o.id,h,"MAJEURE",null),t}else return t.isFavorite=!t.isFavorite,await this.updateView(t)}}const Ot=new V3,Lt=_.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 Ot.saveView(l),this.loadView(l)}catch(t){throw console.error("Error saving the current view:",t),t}},async updateCurrentView(l){try{const t=await Ot.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 Ot.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 Ot.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([Ot.getPersonalViews(),Ot.getGlobalViews(),Ot.getPersonalViewsAndGlobalFavorites()]),s=a?.globalFavoriteView||[],o=(l||[]).filter(c=>c.isFavorite),i=(t||[]).filter(c=>s.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),...i.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([Ot.getPersonalViews(),Ot.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}}}}),x3=/"([^"]*)"|(\S+)/g;function S3(l){const t=[];for(const a of String(l??"").matchAll(x3)){const s=(a[1]??a[2]).trim();s&&t.push(s)}return t}function J3(l,t){const a=S3(t);return a.length===0?vc(l,""):a.map(s=>vc(l,s)).join(" AND ")}function U3(l,t){return l.replaceAll("*","").replaceAll("%s",t)}function vc(l,t){return l.replaceAll("%s",t).replaceAll("**","*")}const 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=re();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=re(),a=this.isExactSearchActivated?U3(t.SEARCH_USER_QUERY,l):J3(t.SEARCH_USER_QUERY,l);this.language="afts",this.userQuery=l;let s=this.fields.map(o=>`(${o.query})`);this.fullQuery=[a,...s].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 s=a?[]:[...this.filterQueries];s.some(i=>i.query==="-ASPECT:'pm:hidden'")||s.push({query:"-ASPECT:'pm:hidden'"});let o={query:{language:this.language,query:this.fullQuery},include:this.include,paging:this.paging,filterQueries:s.map(i=>({query:i.query})),facetQueries:this.facetQueries,facetFields:{facets:this.facets.map(i=>({field:i.field,mincount:i.mincount,label:i.label}))},sort:this.sort||this.defaultSort,facetFormat:"V2"};return ht.search(o).then(i=>{this.context=i.list.context,t>0?this.entries=[...this.entries,...i.list.entries]:this.entries=i.list.entries,this.pagination=i.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 s={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 ht.search(s).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)}}}),H3={name:"ExactSearch",components:{PrimeToggleButton:Tr},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"])}},Q3={id:"exactSearch",class:"flex gap-3 p-3 rounded-2xl"},B3={class:"text-gray-700 font-medium align-content-center"};function E3(l,t,a,s,o,i){const n=e.resolveComponent("PrimeToggleButton");return e.openBlock(),e.createElementBlock("div",Q3,[e.createElementVNode("span",B3,e.toDisplayString(l.$t("exactSearch")),1),e.createVNode(n,{modelValue:i.exactSearch,"onUpdate:modelValue":t[0]||(t[0]=c=>i.exactSearch=c),binary:"",onLabel:l.$t("enabled"),offLabel:l.$t("disabled"),class:"rounded-xl",disabled:a.disabled},null,8,["modelValue","onLabel","offLabel","disabled"])])}const fo=J(H3,[["render",E3]]),P3={name:"UserViewsFavoritesPanel",components:{PrimeDropdown:At},data(){return{selectedPersonalSearch:null,selectedGlobalSearch:null}},mounted(){this.fetchSavedViews()},computed:{..._.mapState(Lt,{loadedView:"loadedView",personalViews:"personalViews",globalViews:"globalViews",loading:"viewsLoading"}),hasGroupedSearches(){return this.personalViews.length>0||this.globalViews.length>0}},emits:["load-view"],methods:{..._.mapActions(Lt,["fetchSavedViews"]),onDropdownChange(l){l.value&&(this.selectView(l.value),this.$nextTick(()=>{this.selectedPersonalSearch=null,this.selectedGlobalSearch=null}))},selectView(l){this.$emit("load-view",l)}}},_3={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"},K3={class:"mr-2"},$3={class:"font-bold overflow-hidden text-overflow-ellipsis multi-line-ellipsis max-w-25rem"},q3={key:1,class:"text-center p-3"},eh={key:2,class:"text-center text-gray-500 p-3"},th={key:3},lh={class:"flex flex-column gap-4"},ah={key:0,class:"flex flex-column gap-2"},oh={for:"personal-searches-dropdown"},sh={class:"flex flex-column align-items-start w-30rem overflow-hidden"},ih={class:"font-bold"},nh={key:0,class:"text-color-secondary w-full overflow-hidden text-overflow-ellipsis white-space-nowrap block"},ch={key:1,class:"flex flex-column gap-2"},rh={for:"global-searches-dropdown"},dh={class:"flex flex-column align-items-start w-30rem overflow-hidden"},mh={class:"font-bold"},bh={key:0,class:"text-color-secondary w-full overflow-hidden text-overflow-ellipsis white-space-nowrap block"};function ph(l,t,a,s,o,i){const n=e.resolveComponent("PrimeDropdown"),c=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock(e.Fragment,null,[l.loadedView?(e.openBlock(),e.createElementBlock("div",_3,[e.createElementVNode("span",K3,e.toDisplayString(l.$t("vuesFavorites.loadedViewMessage")),1),e.withDirectives((e.openBlock(),e.createElementBlock("span",$3,[e.createTextVNode(e.toDisplayString(l.loadedView.name),1)])),[[c,l.loadedView.name]])])):e.createCommentVNode("",!0),l.loading?(e.openBlock(),e.createElementBlock("div",q3,[...t[2]||(t[2]=[e.createElementVNode("i",{class:"pi pi-spin pi-spinner text-4xl"},null,-1)])])):i.hasGroupedSearches?(e.openBlock(),e.createElementBlock("div",th,[e.createElementVNode("div",lh,[l.personalViews.length>0?(e.openBlock(),e.createElementBlock("div",ah,[e.createElementVNode("label",oh,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:i.onDropdownChange,filter:"",filterBy:["name","description"],filterPlaceholder:l.$t("vuesFavorites.filterSavedViews")},{option:e.withCtx(r=>[e.createElementVNode("div",sh,[e.createElementVNode("div",ih,e.toDisplayString(r.option.name),1),r.option.description?e.withDirectives((e.openBlock(),e.createElementBlock("small",nh,[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",ch,[e.createElementVNode("label",rh,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:i.onDropdownChange,filter:"",filterBy:["name","description"],filterPlaceholder:l.$t("vuesFavorites.filterSavedViews")},{option:e.withCtx(r=>[e.createElementVNode("div",dh,[e.createElementVNode("div",mh,e.toDisplayString(r.option.name),1),r.option.description?e.withDirectives((e.openBlock(),e.createElementBlock("small",bh,[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",eh,e.toDisplayString(l.$t("vuesFavorites.noSavedViews")),1))],64)}const Na=J(P3,[["render",ph],["__scopeId","data-v-8a7f3255"]]),uh={name:"SaveViewPopup",components:{PrimeDialog:Je,PrimeInputText:we,PrimeTextarea:hl,PrimeSelectButton:yl,PrimeButton:L},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(Ae,["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(Ae,["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()}}},Zh={class:"p-fluid formgrid grid mt-3"},hh={class:"field col-12"},yh={for:"searchName"},Wh={key:0,class:"p-error"},gh={key:1,class:"p-error"},Yh={class:"field col-12"},Nh={for:"searchDescription"},Ah={key:0,class:"field col-12"};function Xh(l,t,a,s,o,i){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]=Z=>l.$emit("update:visible",Z)),modal:"",header:i.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]=Z=>l.$emit("update:visible",!1)),text:""},null,8,["label"]),e.createVNode(m,{label:i.isEditMode?l.$t("vuesUtilisateurs.modifyView"):l.$t("vuesUtilisateurs.saveView"),icon:"ri-save-3-line",onClick:i.save,disabled:!i.isFormValid},null,8,["label","onClick","disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",Zh,[e.createElementVNode("div",hh,[e.createElementVNode("label",yh,e.toDisplayString(l.$t("vuesUtilisateurs.saveViewPopup.nameLabel")),1),e.createVNode(n,{id:"searchName",modelValue:o.viewName,"onUpdate:modelValue":t[0]||(t[0]=Z=>o.viewName=Z),modelModifiers:{trim:!0},class:e.normalizeClass({"p-invalid":a.errorMessage}),onInput:t[1]||(t[1]=Z=>l.$emit("clear-error"))},null,8,["modelValue","class"]),!o.viewName&&!a.errorMessage?(e.openBlock(),e.createElementBlock("small",Wh,e.toDisplayString(l.$t("vuesUtilisateurs.saveViewPopup.nameRequired")),1)):e.createCommentVNode("",!0),a.errorMessage?(e.openBlock(),e.createElementBlock("small",gh,e.toDisplayString(a.errorMessage),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Yh,[e.createElementVNode("label",Nh,e.toDisplayString(l.$t("vuesUtilisateurs.saveViewPopup.descriptionLabel")),1),e.createVNode(c,{id:"searchDescription",modelValue:o.viewDescription,"onUpdate:modelValue":t[2]||(t[2]=Z=>o.viewDescription=Z),rows:"3",autoResize:""},null,8,["modelValue"])]),l.isPristyAdmin?(e.openBlock(),e.createElementBlock("div",Ah,[e.createElementVNode("label",null,e.toDisplayString(l.$t("vuesUtilisateurs.saveViewPopup.scopeLabel")),1),e.createVNode(r,{modelValue:o.scope,"onUpdate:modelValue":t[3]||(t[3]=Z=>o.scope=Z),options:i.scopeOptions,optionLabel:"label",optionValue:"value",class:"w-full",disabled:i.isEditMode},null,8,["modelValue","options","disabled"])])):e.createCommentVNode("",!0)])]),_:1},8,["visible","header"])}const Aa=J(uh,[["render",Xh]]),zh={name:"AdvancedSearchPanel",components:{ExactSearch:fo,PrimeAccordion:p2,PrimeAccordionTab:u2,UserViewsFavoritesPanel:Na,PrimeSelectButton:yl,PrimeInputText:we,PrimeButton:L,AddCriterionPopup:ga,SaveViewPopup:Aa,PrimeDialog:Je,TreeExplorer:il},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(Ae,["isPristyAdmin"]),..._.mapState(Lt,["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 re().METADATA.filter(t=>t.display&&t.display.includes("advancedSearch"))}},methods:{..._.mapActions(Ae,["checkPristyAdminStatus"]),..._.mapActions(Lt,["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,s,o;const i={location:JSON.parse(JSON.stringify(this.location)),criteria:JSON.parse(JSON.stringify(this.criteria))};t?(a=this.saveCurrentView,o="vuesUtilisateurs.addsSavedViewSuccess",s={id:crypto.randomUUID(),name:l.name,description:l.description,scope:l.scope,config:i}):(a=this.updateCurrentView,o="vuesUtilisateurs.modifySavedViewSuccess",s={...this.loadedView,name:l.name,description:l.description,config:i});try{await a(s),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}"`}}},Mh={key:0,class:"p-2 mb-3 border-1 border-round border-blue-200 bg-blue-50 text-blue-700"},Oh={class:"font-bold"},jh={class:"p-fluid formgrid grid"},Gh={class:"field col-12"},Th={for:"locationType"},wh={key:0,class:"field col-12"},fh={for:"locationValue"},Ih={key:0,id:"username-help"},vh={class:"mt-4"},Lh={key:0,class:"text-center text-gray-500 p-3 border-1 border-dashed border-round"},Dh={key:1,class:"flex flex-column gap-2"},Rh={class:"flex-grow-1"},kh={class:"font-bold mr-1"},Ch={class:"font-italic mr-1"},Fh={class:"text-gray-700"},Vh={key:3,class:"flex gap-2 mt-2"},xh={class:"flex align-items-center"},Sh={key:0};function Jh(l,t,a,s,o,i){const n=e.resolveComponent("ExactSearch"),c=e.resolveComponent("UserViewsFavoritesPanel"),r=e.resolveComponent("PrimeAccordionTab"),m=e.resolveComponent("PrimeSelectButton"),h=e.resolveComponent("PrimeInputText"),Z=e.resolveComponent("PrimeButton"),p=e.resolveComponent("PrimeAccordion"),Y=e.resolveComponent("AddCriterionPopup"),A=e.resolveComponent("SaveViewPopup"),X=e.resolveComponent("TreeExplorer"),z=e.resolveComponent("PrimeDialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(n,{onChangeExactSearchSettings:t[0]||(t[0]=y=>l.$emit("change-exact-search-settings",y)),disabled:i.hasActiveCriteria||i.isSavedViewLoaded},null,8,["disabled"]),e.createVNode(p,{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:i.handleLoadView},null,8,["onLoadView"])]),_:1},8,["header"]),e.createVNode(r,{header:l.$t("vuesUtilisateurs.queryBuilder")},{default:e.withCtx(()=>[i.isSavedViewLoaded?(e.openBlock(),e.createElementBlock("div",Mh,[e.createTextVNode(e.toDisplayString(l.$t("vuesUtilisateurs.loadedViewMessage"))+" ",1),e.createElementVNode("span",Oh,e.toDisplayString(l.loadedView.name),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",jh,[e.createElementVNode("div",Gh,[e.createElementVNode("label",Th,e.toDisplayString(l.$t("vuesUtilisateurs.locationLabel")),1),e.createVNode(m,{id:"locationType",modelValue:i.locationModel.type,"onUpdate:modelValue":t[1]||(t[1]=y=>i.locationModel.type=y),options:i.locationOptions,optionLabel:"label",optionValue:"value",allowEmpty:"",class:"w-full"},null,8,["modelValue","options"])]),i.locationModel.type?(e.openBlock(),e.createElementBlock("div",wh,[e.createElementVNode("label",fh,e.toDisplayString(l.$t("vuesUtilisateurs.valueLabel")),1),e.createVNode(h,{id:"locationValue",value:i.locationModel.value,placeholder:i.locationPlaceholder,onClick:t[2]||(t[2]=y=>i.locationModel.type==="Folder"?o.isDossierTreeVisible=!0:null),onChange:t[3]||(t[3]=y=>i.updateLocationValue(y.target.value))},null,8,["value","placeholder"]),i.locationModel.type==="Folder"?(e.openBlock(),e.createElementBlock("small",Ih,"Ex: workspace://SpacesStore/{ID du dossier}")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",vh,[e.createElementVNode("h5",null,e.toDisplayString(l.$t("vuesUtilisateurs.criteriaTitle")),1),l.criteria.length===0?(e.openBlock(),e.createElementBlock("div",Lh,e.toDisplayString(l.$t("vuesUtilisateurs.noCriteria")),1)):(e.openBlock(),e.createElementBlock("div",Dh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.criteria,(y,I)=>(e.openBlock(),e.createElementBlock("div",{key:y.id,class:"flex align-items-center p-2 border-1 border-round border-gray-200"},[e.createElementVNode("div",Rh,[e.createElementVNode("span",kh,e.toDisplayString(l.$t(y.property.labelId)),1),e.createElementVNode("span",{class:e.normalizeClass([y.negation?"text-red-500":"text-primary","mx-1"])},e.toDisplayString(y.negation?l.$t("vuesUtilisateurs.mustNotContain"):l.$t("vuesUtilisateurs.mustContain")),3),e.createElementVNode("span",Ch,e.toDisplayString(l.$t(y.operatorLabelKey)),1),e.createElementVNode("span",Fh,e.toDisplayString(i.formatCriterionValueForDisplay(y)),1)]),e.createVNode(Z,{icon:"ri-delete-bin-line","aria-label":l.$t("delete"),text:"",rounded:"",severity:"danger",onClick:j=>l.removeCriterion(I)},null,8,["aria-label","onClick"])]))),128))])),e.createVNode(Z,{icon:"ri-add-line",label:l.$t("vuesUtilisateurs.addCriterionButton"),onClick:t[4]||(t[4]=y=>o.isAddCriterionDialogVisible=!0),class:"mt-3 w-full",outlined:""},null,8,["label"]),i.hasActiveCriteria?(e.openBlock(),e.createBlock(Z,{key:2,icon:"ri-save-3-line",label:l.$t("vuesUtilisateurs.saveView"),onClick:i.openSaveViewPopup,class:"mt-3 w-full"},null,8,["label","onClick"])):e.createCommentVNode("",!0),i.canManageLoadedView?(e.openBlock(),e.createElementBlock("div",Vh,[e.createVNode(Z,{icon:"ri-pencil-line",label:l.$t("vuesUtilisateurs.modifyView"),onClick:i.modifyView,class:"w-full",severity:"secondary"},null,8,["label","onClick"]),e.createVNode(Z,{icon:"ri-delete-bin-line",label:l.$t("vuesUtilisateurs.deleteView"),onClick:i.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]=y=>o.isAddCriterionDialogVisible=y),properties:i.availableProperties,onAddCriterion:i.handleCriterionAdded},null,8,["visible","properties","onAddCriterion"]),e.createVNode(A,{visible:o.saveViewDialogVisible,"onUpdate:visible":t[6]||(t[6]=y=>o.saveViewDialogVisible=y),"view-data":i.viewToEdit,"error-message":o.saveViewError,onSaveView:i.handleSaveView,onClearError:i.clearSaveViewError},null,8,["visible","view-data","error-message","onSaveView","onClearError"]),e.createVNode(z,{visible:o.isDossierTreeVisible,"onUpdate:visible":t[7]||(t[7]=y=>o.isDossierTreeVisible=y),header:"Choisir un dossier",modal:"",class:"w-full md:w-6"},{default:e.withCtx(()=>[e.createVNode(X,{"current-node":null,showUserHome:"",onSelectNode:i.handleDossierSelected},null,8,["onSelectNode"])]),_:1},8,["visible"]),e.createVNode(z,{visible:o.isDeleteConfirmVisible,"onUpdate:visible":t[9]||(t[9]=y=>o.isDeleteConfirmVisible=y),header:"Confirmation de suppression",modal:"",class:"dialog-confirm-delete"},{footer:e.withCtx(()=>[e.createVNode(Z,{label:l.$t("no"),icon:"ri-close-line",onClick:t[8]||(t[8]=y=>o.isDeleteConfirmVisible=!1),class:"p-button-text"},null,8,["label"]),e.createVNode(Z,{label:l.$t("yes"),icon:"ri-check-line",onClick:i.handleDeleteConfirmation,class:"p-button-danger",autofocus:""},null,8,["label","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("div",xh,[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",Sh,e.toDisplayString(l.$t("vuesUtilisateurs.confirmDelete",{name:l.loadedView.name})),1)):e.createCommentVNode("",!0)])]),_:1},8,["visible"])],64)}const Lc=J(zh,[["render",Jh]]),Uh={name:"AdvancedViewPanel",components:{PrimeAccordion:p2,PrimeAccordionTab:u2,UserViewsFavoritesPanel:Na,PrimeSelectButton:yl,PrimeInputText:we,PrimeAutoComplete:n2,PrimeButton:L,AddCriterionPopup:ga,SaveViewPopup:Aa,PrimeDialog:Je,TreeExplorer:il},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(Ae,["isPristyAdmin"]),..._.mapState(Lt,["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 re().METADATA.filter(t=>t.display&&t.display.includes("advancedSearch"))}},methods:{..._.mapActions(Ae,["checkPristyAdminStatus"]),..._.mapActions(Lt,["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,s,o;const i={locations:JSON.parse(JSON.stringify(this.locations)),criteria:JSON.parse(JSON.stringify(this.criteria))};t?(a=this.saveCurrentView,o="vuesUtilisateurs.addsSavedViewSuccess",s={id:crypto.randomUUID(),name:l.name,description:l.description,scope:l.scope,config:i}):(a=this.updateCurrentView,o="vuesUtilisateurs.modifySavedViewSuccess",s={...this.loadedView,name:l.name,description:l.description,config:i});try{await a(s),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 Oe.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)}}},Hh={key:0,class:"p-2 mb-3 border-1 border-round border-blue-200 bg-blue-50 text-blue-700"},Qh={class:"font-bold"},Bh={class:"mt-2 mb-3"},Eh={key:0,class:"text-center text-gray-500 p-3 border-1 border-dashed border-round"},Ph={key:1,class:"flex flex-column gap-2"},_h={class:"font-bold mr-1"},Kh={class:"text-gray-700 flex-grow-1"},$h={class:"mt-4"},qh={key:0,class:"text-center text-gray-500 p-3 border-1 border-dashed border-round"},e5={key:1,class:"flex flex-column gap-2"},t5={class:"flex-grow-1"},l5={class:"font-bold mr-1"},a5={class:"font-italic mr-1"},o5={class:"text-gray-700"},s5={key:3,class:"flex gap-2 mt-2"},i5={class:"p-fluid formgrid grid"},n5={class:"field col-12"},c5={class:"field col-12"},r5={key:0,class:"field col-12"},d5={class:"flex align-items-center"},m5={key:0};function b5(l,t,a,s,o,i){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("UserViewsFavoritesPanel"),r=e.resolveComponent("PrimeAccordionTab"),m=e.resolveComponent("PrimeAccordion"),h=e.resolveComponent("AddCriterionPopup"),Z=e.resolveComponent("SaveViewPopup"),p=e.resolveComponent("PrimeSelectButton"),Y=e.resolveComponent("PrimeAutoComplete"),A=e.resolveComponent("PrimeInputText"),X=e.resolveComponent("PrimeDialog"),z=e.resolveComponent("TreeExplorer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[i.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]=y=>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:i.handleLoadView},null,8,["onLoadView"])]),_:1},8,["header"]),e.createVNode(r,{header:l.$t("vuesUtilisateurs.queryBuilder")},{default:e.withCtx(()=>[i.isSavedViewLoaded?(e.openBlock(),e.createElementBlock("div",Hh,[e.createTextVNode(e.toDisplayString(l.$t("vuesUtilisateurs.loadedViewMessage"))+" ",1),e.createElementVNode("span",Qh,e.toDisplayString(l.loadedView.name),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",Bh,[e.createElementVNode("h5",null,e.toDisplayString(l.$t("vuesUtilisateurs.locationsTitle")),1),l.locations.length===0?(e.openBlock(),e.createElementBlock("div",Eh,e.toDisplayString(l.$t("vuesUtilisateurs.noLocations")),1)):(e.openBlock(),e.createElementBlock("div",Ph,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.locations,(y,I)=>(e.openBlock(),e.createElementBlock("div",{key:y.id,class:e.normalizeClass(["flex align-items-center p-2 border-1 border-round",y.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",y.negation?"bg-red-100 text-red-700":"bg-green-100 text-green-700"])},e.toDisplayString(y.negation?l.$t("vuesUtilisateurs.excludePrefix"):l.$t("vuesUtilisateurs.includePrefix")),3),e.createElementVNode("span",_h,e.toDisplayString(y.type==="Site"?l.$t("vuesUtilisateurs.locationSite"):l.$t("folder")),1),e.createElementVNode("span",Kh,e.toDisplayString(y.label),1),e.createVNode(n,{icon:"ri-delete-bin-line",text:"",rounded:"",severity:"danger","aria-label":l.$t("vuesUtilisateurs.removeLocation"),onClick:j=>l.removeLocation(I)},null,8,["aria-label","onClick"])],2))),128))])),e.createVNode(n,{icon:"ri-add-line",label:l.$t("vuesUtilisateurs.addLocationButton"),onClick:t[1]||(t[1]=y=>o.isAddLocationDialogVisible=!0),class:"mt-2 w-full",outlined:""},null,8,["label"])]),e.createElementVNode("div",$h,[e.createElementVNode("h5",null,e.toDisplayString(l.$t("vuesUtilisateurs.criteriaTitle")),1),l.criteria.length===0?(e.openBlock(),e.createElementBlock("div",qh,e.toDisplayString(l.$t("vuesUtilisateurs.noCriteria")),1)):(e.openBlock(),e.createElementBlock("div",e5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.criteria,(y,I)=>(e.openBlock(),e.createElementBlock("div",{key:y.id,class:"flex align-items-center p-2 border-1 border-round border-gray-200"},[e.createElementVNode("div",t5,[e.createElementVNode("span",l5,e.toDisplayString(l.$t(y.property.labelId)),1),e.createElementVNode("span",{class:e.normalizeClass([y.negation?"text-red-500":"text-primary","mx-1"])},e.toDisplayString(y.negation?l.$t("vuesUtilisateurs.mustNotContain"):l.$t("vuesUtilisateurs.mustContain")),3),e.createElementVNode("span",a5,e.toDisplayString(l.$t(y.operatorLabelKey)),1),e.createElementVNode("span",o5,e.toDisplayString(i.formatCriterionValueForDisplay(y)),1)]),e.createVNode(n,{icon:"ri-delete-bin-line","aria-label":l.$t("delete"),text:"",rounded:"",severity:"danger",onClick:j=>l.removeCriterion(I)},null,8,["aria-label","onClick"])]))),128))])),e.createVNode(n,{icon:"ri-add-line",label:l.$t("vuesUtilisateurs.addCriterionButton"),onClick:t[2]||(t[2]=y=>o.isAddCriterionDialogVisible=!0),class:"mt-3 w-full",outlined:""},null,8,["label"]),i.hasActiveCriteria?(e.openBlock(),e.createBlock(n,{key:2,icon:"ri-save-3-line",label:l.$t("vuesUtilisateurs.saveView"),onClick:i.openSaveViewPopup,class:"mt-3 w-full"},null,8,["label","onClick"])):e.createCommentVNode("",!0),i.canManageLoadedView?(e.openBlock(),e.createElementBlock("div",s5,[e.createVNode(n,{icon:"ri-pencil-line",label:l.$t("vuesUtilisateurs.modifyView"),onClick:i.modifyView,class:"w-full",severity:"secondary"},null,8,["label","onClick"]),e.createVNode(n,{icon:"ri-delete-bin-line",label:l.$t("vuesUtilisateurs.deleteView"),onClick:i.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]=y=>o.isAddCriterionDialogVisible=y),properties:i.availableProperties,onAddCriterion:i.handleCriterionAdded},null,8,["visible","properties","onAddCriterion"]),e.createVNode(Z,{visible:o.saveViewDialogVisible,"onUpdate:visible":t[4]||(t[4]=y=>o.saveViewDialogVisible=y),"view-data":i.viewToEdit,"error-message":o.saveViewError,onSaveView:i.handleSaveView,onClearError:i.clearSaveViewError},null,8,["visible","view-data","error-message","onSaveView","onClearError"]),e.createVNode(X,{visible:o.isAddLocationDialogVisible,"onUpdate:visible":t[10]||(t[10]=y=>o.isAddLocationDialogVisible=y),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]=y=>o.isAddLocationDialogVisible=!1),text:""},null,8,["label"]),e.createVNode(n,{label:l.$t("vuesUtilisateurs.addLocationConfirm"),icon:"ri-check-line",onClick:i.confirmAddLocation,disabled:!o.newLocation.type||!o.newLocation.value,autofocus:""},null,8,["label","onClick","disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",i5,[e.createElementVNode("div",n5,[e.createElementVNode("label",null,e.toDisplayString(l.$t("vuesUtilisateurs.conditionLabel")),1),e.createVNode(p,{modelValue:o.newLocation.negation,"onUpdate:modelValue":t[5]||(t[5]=y=>o.newLocation.negation=y),options:i.negationOptions,optionLabel:"label",optionValue:"value",class:"w-full"},null,8,["modelValue","options"])]),e.createElementVNode("div",c5,[e.createElementVNode("label",null,e.toDisplayString(l.$t("vuesUtilisateurs.locationTypeLabel")),1),e.createVNode(p,{modelValue:o.newLocation.type,"onUpdate:modelValue":t[6]||(t[6]=y=>o.newLocation.type=y),options:i.locationOptions,optionLabel:"label",optionValue:"value",class:"w-full"},null,8,["modelValue","options"])]),o.newLocation.type?(e.openBlock(),e.createElementBlock("div",r5,[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]=y=>o.newLocationSiteInput=y),suggestions:o.filteredSites,optionLabel:"title",onComplete:i.searchSites,onItemSelect:i.handleNewLocationSiteSelect,placeholder:l.$t("vuesUtilisateurs.sitePlaceholder"),class:"w-full",forceSelection:""},null,8,["modelValue","suggestions","onComplete","onItemSelect","placeholder"])):(e.openBlock(),e.createBlock(A,{key:1,value:o.newLocation.value,placeholder:l.$t("vuesUtilisateurs.folderPlaceholder"),onClick:t[8]||(t[8]=y=>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]=y=>o.isDossierTreeVisible=y),header:l.$t("folder"),modal:"",class:"w-full md:w-6"},{default:e.withCtx(()=>[e.createVNode(z,{"current-node":null,showUserHome:"",onSelectNode:i.handleDossierSelected},null,8,["onSelectNode"])]),_:1},8,["visible","header"]),e.createVNode(X,{visible:o.isDeleteConfirmVisible,"onUpdate:visible":t[13]||(t[13]=y=>o.isDeleteConfirmVisible=y),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]=y=>o.isDeleteConfirmVisible=!1),class:"p-button-text"},null,8,["label"]),e.createVNode(n,{label:l.$t("yes"),icon:"ri-check-line",onClick:i.handleDeleteConfirmation,class:"p-button-danger",autofocus:""},null,8,["label","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("div",d5,[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",m5,e.toDisplayString(l.$t("vuesUtilisateurs.confirmDelete",{name:l.loadedView.name})),1)):e.createCommentVNode("",!0)])]),_:1},8,["visible"])],64)}const Dc=J(Uh,[["render",b5]]),p5={name:"FavoriteViewMenu",props:{menuClass:{type:String,default:""}},emits:["menuitem-click"],computed:{..._.mapState(Lt,{model:"favoriteViews"})},methods:{..._.mapActions(Lt,["fetchFavoriteViews"]),onMenuItemClick(l){this.$emit("menuitem-click",l)}},async mounted(){await this.fetchFavoriteViews()}},u5={class:"menuItem mt-3"},Z5={key:0},h5={class:"layout-menu"},y5={class:"overflow-hidden text-overflow-ellipsis white-space-nowrap"};function W5(l,t,a,s,o,i){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",u5,[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",Z5,[e.createElementVNode("ul",h5,[(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:Z=>i.onMenuItemClick({originalEvent:Z,item:m})},{default:e.withCtx(()=>[e.createElementVNode("span",y5,e.toDisplayString(m.label),1)]),_:2},1032,["aria-label","to","onClick"])),[[c],[r,m.label]])]))),128))])])):e.createCommentVNode("",!0)],64)}const Rc=J(p5,[["render",W5],["__scopeId","data-v-14eafe86"]]),g5={class:"p-fluid"},Y5={class:"p-field mb-3"},N5={for:"filename"},A5={class:"p-field"},X5={for:"location"},z5={class:"p-inputgroup"},M5={key:0,class:"mt-3 border-1 surface-border p-2 overflow-y-auto"},O5={__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}=ll.useI18n(),s=l,o=t,i=e.ref(""),n=e.ref(null),c=e.ref(!1),r=e.ref(null),m=e.ref(""),h=()=>{i.value=s.defaultFilename||a("pdfTools.saveAs.defaultFilename"),n.value=s.parentFolderNode,r.value=s.parentFolderNode?.id,m.value=s.parentFolderNode?.name,c.value=!1},Z=async Y=>{if(!(!Y||!Y.isFolder)){if(Y.name==="documentLibrary")if(r.value=Y.id,Y.parentId)try{const A=await S.getNode(Y.parentId);m.value=A.properties["cm:title"]||A.name}catch(A){console.error("Could not fetch parent node name",A),m.value=Y.name}else m.value=Y.name;else r.value=Y.id,m.value=Y.name;c.value=!1}},p=()=>{r.value&&o("save",{filename:i.value,folderId:r.value})};return(Y,A)=>(e.openBlock(),e.createBlock(e.unref(Je),{visible:l.visible,modal:"",header:Y.$t("pdfTools.saveAs.title"),class:"dialog-save-as","onUpdate:visible":A[3]||(A[3]=X=>Y.$emit("close")),onShow:h},{footer:e.withCtx(()=>[e.createVNode(e.unref(L),{label:Y.$t("pdfTools.common.cancel"),icon:"pi pi-times",onClick:A[2]||(A[2]=X=>Y.$emit("close")),class:"p-button-text"},null,8,["label"]),e.createVNode(e.unref(L),{label:Y.$t("pdfTools.common.save"),icon:"pi pi-check",onClick:p,disabled:!i.value||!r.value},null,8,["label","disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",g5,[e.createElementVNode("div",Y5,[e.createElementVNode("label",N5,e.toDisplayString(Y.$t("pdfTools.saveAs.filenameLabel")),1),e.createVNode(e.unref(we),{id:"filename",modelValue:i.value,"onUpdate:modelValue":A[0]||(A[0]=X=>i.value=X)},null,8,["modelValue"])]),e.createElementVNode("div",A5,[e.createElementVNode("label",X5,e.toDisplayString(Y.$t("pdfTools.saveAs.folderLabel")),1),e.createElementVNode("div",z5,[e.createVNode(e.unref(we),{id:"location",readonly:"",value:m.value},null,8,["value"]),e.createVNode(e.unref(L),{icon:c.value?"pi pi-chevron-up":"pi pi-chevron-down",label:Y.$t("pdfTools.saveAs.browse"),onClick:A[1]||(A[1]=X=>c.value=!c.value)},null,8,["icon","label"])])]),c.value?(e.openBlock(),e.createElementBlock("div",M5,[e.createVNode(il,{"current-node":n.value,"show-user-home":"","show-files":!1,onSelectNode:Z},null,8,["current-node"])])):e.createCommentVNode("",!0)])]),_:1},8,["visible","header"]))}},j5=[1,.92,.23],G5=4,T5=({doc:l,page:t,rect:a,text:s,title:o})=>{const i=String(s??"");if(!i.trim())return;const n=l.context.obj({Type:"Annot",Subtype:"Text",Name:"Comment",Rect:[a.x,a.y,a.x+a.size,a.y+a.size],Contents:de.PDFHexString.fromText(i),T:de.PDFHexString.fromText(String(o??"")),C:j5,F:G5});t.node.addAnnot(l.context.register(n))},w5=l=>{const t=l.node.Annots();if(!t)return[];const a=[];for(let s=0;s<t.size();s++){const o=t.lookup(s);if(o?.get(de.PDFName.of("Subtype"))!==de.PDFName.of("Text"))continue;const i=o.get(de.PDFName.of("Rect"))?.asRectangle();if(!i)continue;const n=o.get(de.PDFName.of("Contents"));a.push({x:i.x,y:i.y,size:Math.max(i.width,i.height),text:typeof n?.decodeText=="function"?n.decodeText():""})}return a},f5=l=>{const t=l.node.Annots();if(t)for(let a=t.size()-1;a>=0;a--)t.lookup(a)?.get(de.PDFName.of("Subtype"))===de.PDFName.of("Text")&&t.remove(a)},I5=72,v5=200,L5=16e6,D5=async({pdfPage:l,redactions:t=[],dpi:a=v5,quality:s=.85,mimeType:o="image/jpeg",maxPixels:i=L5,createCanvas:n=()=>document.createElement("canvas")})=>{let c=a/I5;const r=l.getViewport({scale:c}),m=r.width*r.height;m>i&&(c=Math.floor(c*Math.sqrt(i/m)*1e4)/1e4);const h=l.getViewport({scale:c}),Z=n();Z.width=Math.floor(h.width),Z.height=Math.floor(h.height);const p=Z.getContext("2d");if(await l.render({canvasContext:p,viewport:h}).promise,t.length>0){p.fillStyle="#000000";for(const Y of t)p.fillRect(Y.x*Z.width,Y.y*Z.height,Y.w*Z.width,Y.h*Z.height)}return Z.toDataURL(o,s)},Xa=1.2,R5=8,k5=({overlayWidth:l,pageWidthPt:t})=>!t||!l?1:l/t,Io=l=>String(l??"").split(/\r?\n/),C5=({lines:l,fontSize:t,measureLine:a})=>{const s=l.map(o=>a(o));return{w:Math.max(R5,...s),h:l.length*t*Xa}},F5=({topY:l,lineIndex:t,fontSize:a,ascentPt:s})=>l-t*a*Xa-s,V5={class:"pdf-tools-page"},x5={class:"pdf-tools-header"},S5={key:0},J5={key:0,class:"loading-container"},U5={key:1,class:"error-container"},H5={key:2,class:"pdf-editor-layout"},Q5={class:"pdf-tools-sidebar"},B5={class:"card"},E5={class:"p-fluid"},P5={class:"p-field"},_5={class:"p-field mt-4"},K5={class:"p-field mt-4"},$5={class:"flex flex-column gap-2"},q5={class:"p-field mt-4"},ey={class:"grid mt-2"},ty={class:"col-6"},ly={class:"col-6"},ay={class:"pdf-preview-container"},oy=["onClick","onDblclick"],sy={class:"page-selection"},iy={class:"page-actions"},ny={class:"thumbnail-content"},cy={class:"page-number"},ry={class:"flex align-items-center gap-2"},dy={class:"page-editor-toolbar"},my={class:"zoom-indicator"},by={class:"page-editor-body"},py={class:"tool-group"},uy={key:0,class:"mt-2"},Zy={class:"p-field"},hy={class:"block mb-1"},yy={class:"p-field"},Wy={class:"block mb-1",for:"text-size-slider"},gy={class:"p-field"},Yy={class:"block mb-1",id:"text-color-label"},Ny={class:"color-swatches",role:"group","aria-labelledby":"text-color-label"},Ay=["aria-label","aria-pressed","onClick"],Xy={class:"color-custom"},zy=["aria-label","placeholder","onKeydown"],My={class:"flex justify-content-between w-full"},Oy={class:"flex align-items-center gap-2"},jy={class:"signature-pad"},Gy={class:"flex gap-2"},Ty={class:"p-inputgroup mb-2"},wy={key:0,class:"flex align-items-center gap-2"},fy={key:1,class:"text-color-secondary"},Iy={key:2,class:"favorites-layout"},vy={class:"favorites-list"},Ly=["onClick"],Dy={class:"flex align-items-center gap-2 flex-grow-1"},Ry={class:"text-overflow-ellipsis"},ky={class:"favorites-preview"},Cy={key:0,class:"preview-placeholder"},Fy={class:"text-color-secondary"},Vy={key:1,class:"preview-placeholder"},xy={class:"text-color-secondary"},Sy={key:2,class:"preview-wrapper"},Jy={key:0,class:"preview-controls"},Uy={class:"page-info"},Hy={class:"preview-content"},Qy={key:0,class:"flex align-items-center gap-2"},By={key:1,class:"text-color-secondary"},Ey={key:2,class:"favorites-layout"},Py={class:"favorites-list"},_y=["onClick"],Ky={class:"flex align-items-center gap-2 flex-grow-1"},$y={class:"text-overflow-ellipsis"},qy={class:"favorites-preview"},eW={key:0,class:"preview-placeholder"},tW={class:"text-color-secondary"},lW={key:1,class:"preview-placeholder"},aW={class:"text-color-secondary"},oW={key:2,class:"preview-wrapper"},sW={key:0,class:"preview-controls"},iW={class:"page-info"},nW={class:"preview-content"},cW={class:"p-fluid"},rW={class:"p-field"},dW={for:"alfrescoNodeId"},mW={class:"text-color-secondary"},bW={class:"flex gap-2 align-items-center w-full justify-content-between"},pW={class:"flex flex-column flex-grow-1 mr-2 min-w-0"},uW={key:0,class:"text-color-secondary flex align-items-center gap-1"},ZW={class:"text-color-secondary flex-shrink-0"},hW={class:"text-overflow-ellipsis font-medium white-space-nowrap overflow-hidden flex-grow-1"},yW={key:1,class:"p-error"},WW={class:"ml-auto flex gap-2"},kc=24,Cc=J({__name:"PdfToolsComponent",props:{toast:{type:Object,required:!0},id:{type:String,required:!0},closable:{type:Boolean,default:!1}},emits:["close"],setup(l,{emit:t}){const{t:a}=ll.useI18n(),s=l,o=t,i=e.ref(!1),n=()=>{i.value&&!window.confirm(a("pdfTools.closeUnsaved"))||o("close")},c=e.ref(null),r=e.ref(null),m=e.ref([]),h=e.ref(!0),Z=e.ref(null),p=e.ref(null),Y=e.ref([]),A=e.ref(!1),X=e.ref(null),z=e.ref(1),y={SELECT:"select",REDACT:"redact",HIGHLIGHT:"highlight",COMMENT:"comment",IMAGE:"image",SIGNATURE:"signature",TEXT:"text"},I=e.ref(y.SELECT),j=e.ref([]),v=e.ref(null),C=e.ref(null),x=e.ref(null),D=e.ref(null),le=e.ref(null),G=e.ref({visible:!1,tool:null,x:0,y:0,value:"",index:-1}),T=e.ref(!1),F=e.ref(null);let q=!1,K=null,ee=!1,je=null;const $e=e.ref(""),ne=e.ref(-45),se=e.ref(5),He=[{label:"Helvetica",value:"Helvetica"},{label:"Times New Roman",value:"TimesRoman"},{label:"Courier",value:"Courier"}],ot=[{name:"black",value:"#000000"},{name:"white",value:"#ffffff"},{name:"red",value:"#e53935"},{name:"orange",value:"#fb8c00"},{name:"yellow",value:"#fdd835"},{name:"green",value:"#43a047"},{name:"blue",value:"#1e88e5"},{name:"purple",value:"#8e24aa"}],Re=e.ref("Helvetica"),ae=e.ref(18),Xe=e.ref("#000000"),V=e.ref(null),H=e.ref(!1),E=e.ref(null),ce=e.ref(""),Ge=e.ref(""),Wt=e.ref(null),rt=e.ref(null),Te=e.ref(!1),me=e.ref(""),Pe=e.ref(""),fe=e.ref(null),dt=e.computed(()=>me.value&&be(me.value)?!0:!!(fe.value&&fe.value.id)),qe=e.ref(""),gt=e.ref([]),jt=e.ref(!1),Kt=e.ref(!1),mt=e.ref([]),Rt=e.ref(!1),Gt=e.ref(!1),Fe=e.ref(null),{pdf:Ve}=xt.usePDF(Fe),xe=e.ref(1),_e=e.ref(0),Tt=e.ref(null),{pdf:kt}=xt.usePDF(Tt);e.onMounted(()=>{const d=s.id;d?Bl(d):(Z.value=a("pdfTools.loadError"),h.value=!1)});const Yt=d=>Y.value.some(b=>b.pageIndex===d.pageIndex),ml=d=>{p.value=d;const b=Y.value.findIndex(g=>g.pageIndex===d.pageIndex);b>-1?Y.value.splice(b,1):Y.value.push(d)},Bl=async d=>{h.value=!0,Z.value=null;try{const b=await S.getNode(d);Wt.value=b,V.value=b.parentId,Ge.value=b&&(b.name||b.properties&&b.properties["cm:name"])||"";const g=ze.getContentUrl(d);Tt.value=g;const W=await fetch(g);if(!W.ok)throw new Error(`HTTP error! status: ${W.status}`);const w=await W.arrayBuffer();r.value=new Uint8Array(w),await et(r.value),m.value.length>0&&(p.value=m.value[0])}catch(b){console.error("Error loading PDF from Alfresco:",b),Z.value=a("pdfTools.loadError")}finally{h.value=!1}},et=async d=>{c.value=await de.PDFDocument.load(d);const b=c.value.getPageCount();m.value=Array.from({length:b},(g,W)=>({pageIndex:W,pageNumber:W+1}))},Qe=async(d,{updatePages:b=!0}={})=>{const g=await d.save();r.value=g,i.value=!0;const W=new Blob([g],{type:"application/pdf"});Tt.value&&Tt.value.startsWith("blob:")&&URL.revokeObjectURL(Tt.value),Tt.value=URL.createObjectURL(W),b&&await et(g)},bl=async()=>{if(r.value){h.value=!0;try{const d=await de.PDFDocument.create(),b=m.value.map(w=>w.pageIndex),g=await de.PDFDocument.load(r.value);(await d.copyPages(g,b)).forEach(w=>d.addPage(w)),await Qe(d)}catch(d){console.error("Error reordering pages:",d),Z.value=a("pdfTools.reorderError")}finally{h.value=!1}}},El=async d=>{if(r.value){h.value=!0;try{const b=await de.PDFDocument.load(r.value),g=b.getPage(d.pageIndex),W=g.getRotation().angle;g.setRotation({type:de.RotationTypes.Degrees,angle:(W+90)%360}),await Qe(b,{updatePages:!1})}catch(b){console.error("Error rotating page:",b),Z.value=a("pdfTools.rotateError")}finally{h.value=!1}}},Pl=async()=>{if(Y.value.length===0||!r.value)return null;const d=await de.PDFDocument.create(),b=await de.PDFDocument.load(r.value),g=Y.value.map(w=>w.pageIndex).sort((w,M)=>w-M);return(await d.copyPages(b,g)).forEach(w=>d.addPage(w)),await d.save()},O=async()=>{if(!(!r.value||Y.value.length===0)){if(Y.value.length===m.value.length){s.toast.add({severity:"warn",summary:a("pdfTools.common.warning"),detail:a("pdfTools.deleteAllPagesWarning"),life:3e3});return}h.value=!0;try{const d=await de.PDFDocument.load(r.value),b=d.getPageCount(),g=new Set(Y.value.map(U=>U.pageIndex)),W=[];for(let U=0;U<b;U++)g.has(U)||W.push(U);const w=await de.PDFDocument.create();(await w.copyPages(d,W)).forEach(U=>w.addPage(U)),await Qe(w),Y.value=[],s.toast.add({severity:"success",summary:a("pdfTools.common.deleted"),detail:a("pdfTools.pagesDeletedSuccess"),life:3e3})}catch(d){console.error("Error deleting pages:",d),Z.value=a("pdfTools.deletePagesError")}finally{h.value=!1}}},P=async()=>{me.value="",fe.value=null,Pe.value="",Te.value=!0},ie=d=>{d.index===2&&mt.value.length===0&&!Rt.value&&Kl()},pe=async()=>{let d=null;if(fe.value?.id?d=fe.value.id:me.value&&(d=be(me.value)),!d){s.toast.add({severity:"warn",summary:a("pdfTools.common.warning"),detail:a("pdfTools.insertFromAlfresco.invalidInput"),life:3e3});return}await $t(d),Te.value=!1},be=d=>{if(!d)return null;const b=d.trim();if(/^[0-9a-fA-F-]{20,}$/.test(b))return b;const g=b.match(/workspace:\/\/SpacesStore\/([0-9a-fA-F-]{20,})/);if(g&&g[1])return g[1];const W=b.match(/\b(nodes|preview|renditions|content)\/?([0-9a-fA-F-]{20,})\b/);if(W&&W[2])return W[2];const w=b.match(/#\/(?:pdf-tools|consultation-pdf|edit-collabora)\/([0-9a-fA-F-]{20,})/);if(w&&w[1])return w[1];const M=b.match(/([0-9a-fA-F]{20,})/);return M&&M[1]?M[1]:null},Ne=async d=>{if(d?.content?.mimeType==="application/pdf"&&(fe.value=d,Pe.value="",d?.id)){Gt.value=!0,xe.value=1,_e.value=0;try{const b=ze.getContentUrl(d.id);Fe.value&&Fe.value.startsWith("blob:")&&URL.revokeObjectURL(Fe.value),Fe.value=b}catch(b){console.error("Error loading PDF preview:",b),Fe.value=null}finally{Gt.value=!1}}},Ie=()=>{xe.value<_e.value&&xe.value++},bt=()=>{xe.value>1&&xe.value--},_l=d=>{Pe.value="",d.isFolder?(fe.value=null,Pe.value=a("pdfTools.insertFromAlfresco.folderSelectError")):d.content?.mimeType!=="application/pdf"?(fe.value=null,Pe.value=a("pdfTools.insertFromAlfresco.fileTypeNotAllowedError")):Ne(d)},Tl=async()=>{if(Kt.value=!0,!qe.value||qe.value.trim().length<2){gt.value=[];return}jt.value=!0;try{const d=Ya();await d.queryStore(qe.value);const b=d.entries.map(g=>g.entry||g);gt.value=b.filter(g=>g.isFile&&g.content?.mimeType==="application/pdf")}catch(d){console.error("performSearch",d),gt.value=[]}finally{jt.value=!1}},Kl=async()=>{Rt.value=!0;try{const d=Jl();await d.loadFavorites(),mt.value=d.fileFavorites.filter(b=>b?.target?.file?.content?.mimeType==="application/pdf").map(b=>b.target.file)}catch(d){console.error("loadFavorites error:",d),mt.value=[]}finally{Rt.value=!1}},$t=async d=>{if(r.value){h.value=!0;try{if((await S.getNode(d)).content?.mimeType!=="application/pdf")throw new Error(a("pdfTools.invalidNodeForInsert"));const W=await(await S.getNodeContent(d)).arrayBuffer(),w=new Uint8Array(W),M=await de.PDFDocument.load(r.value),U=await de.PDFDocument.load(w),ue=U.getPageCount(),We=Array.from({length:ue},(Se,fl)=>fl);(await M.copyPages(U,We)).forEach(Se=>M.addPage(Se)),await Qe(M),Y.value=[],s.toast.add({severity:"success",summary:a("pdfTools.common.success"),detail:a("pdfTools.insertFromPristySuccess",{count:ue}),life:3e3})}catch(b){console.error("Error inserting from Alfresco:",b),Z.value=b?.message||a("pdfTools.insertFromPristyError"),s.toast.add({severity:"error",summary:a("pdfTools.common.error"),detail:Z.value,life:4e3})}finally{h.value=!1}}},wl=async d=>{const b=d.files?.[0];b&&await qt(b)},qt=async d=>{if(r.value){h.value=!0;try{const b=await de.PDFDocument.load(r.value),g=new Uint8Array(await d.arrayBuffer()),W=await de.PDFDocument.load(g),w=W.getPageCount(),M=Array.from({length:w},(ue,We)=>We);(await b.copyPages(W,M)).forEach(ue=>b.addPage(ue)),await Qe(b),Y.value=[],s.toast.add({severity:"success",summary:a("pdfTools.common.success"),detail:a("pdfTools.insertFromFileSuccess",{count:w}),life:3e3})}catch(b){console.error("Error inserting PDF:",b),Z.value=a("pdfTools.insertError")}finally{h.value=!1}}},pt=async()=>{if(!(!$e.value||Y.value.length===0||!r.value)){h.value=!0;try{const d=await de.PDFDocument.load(r.value),b=Y.value.map(g=>g.pageIndex);for(const g of b){const W=d.getPage(g),{width:w,height:M}=W.getSize();for(let U=0;U<se.value;U++)W.drawText($e.value,{x:w/(se.value+1)*(U+1)-150,y:M/(se.value+1)*(U+1),size:50,color:de.rgb(.95,.1,.1),opacity:.5,rotate:de.degrees(ne.value)})}await Qe(d,{updatePages:!1})}catch(d){console.error("Error adding watermark:",d),Z.value=a("pdfTools.watermarkError")}finally{h.value=!1}}},Oa=async()=>{if(r.value){h.value=!0;try{const d=new Blob([r.value],{type:"application/pdf"}),b=new File([d],"modified.pdf",{type:"application/pdf"}),g={majorVersion:!0,comment:"File modified via Pristy Espaces PDF tools"};await S.updateContentNode(s.id,b,g),i.value=!1,s.toast.add({severity:"success",summary:a("pdfTools.common.success"),detail:a("pdfTools.saveSuccess"),life:3e3})}catch(d){console.error("Error saving changes:",d),s.toast.add({severity:"error",summary:a("pdfTools.common.error"),detail:a("pdfTools.saveError"),life:3e3})}finally{h.value=!1}}},$l=async d=>{if(E.value=d,ce.value=a("pdfTools.saveAs.defaultFilename"),Wt.value&&Wt.value.parentId)try{rt.value=await S.getNode(Wt.value.parentId)}catch(b){console.error("Could not fetch parent node for Save As dialog",b),rt.value=null}else rt.value=null;H.value=!0},So=async({filename:d,folderId:b})=>{H.value=!1,h.value=!0;try{let g;if(E.value==="extract"?g=await Pl():g=r.value,!g)throw new Error(a("pdfTools.noContentToSave"));const W=new Blob([g],{type:"application/pdf"}),w=new File([W],d,{type:"application/pdf"});if(!b)throw new Error("No destination folder selected.");await ze.uploadFile(b,{},w),s.toast.add({severity:"success",summary:a("pdfTools.common.success"),detail:a("pdfTools.fileCreatedSuccess",{filename:d}),life:3e3})}catch(g){console.error('Error during "Save As":',g);const W=g.status===409?a("pdfTools.saveAs.conflictError"):a("pdfTools.saveAsError");s.toast.add({severity:"error",summary:a("pdfTools.common.error"),detail:W,life:4e3})}finally{h.value=!1}},ja=async()=>{const d=X.value;if(j.value=j.value.filter(b=>b.type!==y.COMMENT),!r.value||!d){ve();return}try{const b=await de.PDFDocument.load(r.value),g=$c(),W=Zg.value;for(const w of w5(b.getPage(d.pageIndex)))j.value.push({type:y.COMMENT,rect:{x:w.x*g,y:(W-(w.y+w.size))*g,w:w.size*g,h:w.size*g},payload:{text:w.text}})}catch(b){console.error("Error reading existing comments:",b)}ve()},pl=d=>{X.value=d||p.value,A.value=!0,z.value=1,j.value=[],tt.value=-1,setTimeout(()=>{Ct(),ja()},200)},N=()=>{A.value=!1,X.value=null},R=()=>{z.value=Math.min(4,z.value+.1)},$=()=>{z.value=Math.max(.2,z.value-.1)},oe=d=>{d===y.REDACT?window.confirm(a("pdfTools.redactWarning"))&&(I.value=d):I.value=d},ke=d=>{v.value=d.files?.[0]||null,v.value&&(C.value=null,I.value=y.IMAGE)},el=()=>{T.value=!0},wt=()=>{j.value.pop(),tt.value=-1,ve()},st=async d=>{if(!(!d||d.type!==y.IMAGE||d._loading||d._bitmap)){d._loading=!0;try{let b=null;d.payload?.file?b=d.payload.file:d.payload?.signature&&(b=new Blob([new Uint8Array(d.payload.signature)],{type:"image/png"})),b&&(d._bitmap=await createImageBitmap(b),ve())}catch(b){console.warn(a("pdfTools.imagePreviewUnavailable"),b)}finally{d._loading=!1}}},Ga=()=>{const d=x.value;if(!d)return null;const b=Array.from(d.querySelectorAll("canvas"));if(b.length===0)return null;const g=b.filter(U=>U.offsetParent!==null&&U.width>0&&U.height>0),W=g.length?g:b;let w=W[0],M=0;for(const U of W){const ue=U.getBoundingClientRect(),We=Math.max(0,ue.width)*Math.max(0,ue.height);We>M&&(w=U,M=We)}return w},Ct=()=>{const d=Ga();if(!d||!D.value)return;const b=d.getBoundingClientRect(),g=window.devicePixelRatio||1;D.value.style.width=b.width+"px",D.value.style.height=b.height+"px",D.value.width=Math.round(b.width*g),D.value.height=Math.round(b.height*g),ve()},tl=d=>{const b=D.value;if(!b)return{x:0,y:0};const g=b.getBoundingClientRect(),W=window.devicePixelRatio||1;return{x:(d.clientX-g.left)*W,y:(d.clientY-g.top)*W}};let ql=null,ft=null,ea=null,ul=null;const ug=e.computed(()=>{const d=X.value||p.value;if(!c.value||!d)return 0;try{return c.value.getPage(d.pageIndex).getSize().width}catch{return 0}}),Zg=e.computed(()=>{const d=X.value||p.value;if(!c.value||!d)return 0;try{return c.value.getPage(d.pageIndex).getSize().height}catch{return 0}}),$c=()=>k5({overlayWidth:D.value?.width||0,pageWidthPt:ug.value}),Jo=d=>Math.max(1,(Number(d?.size)||18)*$c()),qc=(d,b)=>{const g=D.value.getContext("2d"),W=Jo(b);g.save(),g.font=`${W}px ${b.font||"Helvetica"}`;const w=C5({lines:Io(d),fontSize:W,measureLine:M=>g.measureText(M).width});return g.restore(),w},hg=e.computed(()=>{const d=window.devicePixelRatio||1;if(G.value.tool===y.COMMENT)return{left:`${G.value.x/d}px`,top:`${G.value.y/d}px`};const b=G.value.index>=0?j.value[G.value.index]?.payload:{size:ae.value,font:Re.value,color:Xe.value},g=Jo(b)/d;return{left:`${G.value.x/d}px`,top:`${G.value.y/d}px`,font:`${g}px ${b?.font||"Helvetica"}`,lineHeight:Xa,color:b?.color||"#000000"}}),tt=e.ref(-1);let Uo=!1;const yg=e.computed(()=>I.value===y.TEXT||j.value[tt.value]?.type===y.TEXT),Wg=d=>{tt.value=d;const b=j.value[d];b?.type===y.TEXT&&(Uo=!0,Re.value=b.payload?.font||"Helvetica",ae.value=Number(b.payload?.size)||18,Xe.value=b.payload?.color||"#000000",e.nextTick(()=>{Uo=!1})),ve()};e.watch([Re,ae,Xe],()=>{if(Uo)return;const d=tt.value,b=j.value[d];if(!b||b.type!==y.TEXT)return;const g={...b.payload,font:Re.value,size:ae.value,color:Xe.value};j.value[d]={...b,payload:g,rect:{x:b.rect.x,y:b.rect.y,...qc(g.text,g)}},ve()});const er=()=>{const d=tt.value;d<0||!j.value[d]||(j.value.splice(d,1),tt.value=-1,ve())},Ho=d=>{if(d.key==="Escape"){G.value.visible&&gg(),tt.value=-1,I.value=y.SELECT,ve();return}const b=G.value.visible||["INPUT","TEXTAREA","SELECT"].includes(d.target?.tagName);d.key==="Delete"&&!b&&er()};e.watch(A,d=>{d?document.addEventListener("keydown",Ho):document.removeEventListener("keydown",Ho)}),e.onUnmounted(()=>document.removeEventListener("keydown",Ho));const tr=e.computed(()=>G.value.tool===y.COMMENT?{label:a("pdfTools.pageEditor.tools.comment"),placeholder:a("pdfTools.pageEditor.commentPlaceholder")}:{label:a("pdfTools.pageEditor.textInputLabel"),placeholder:a("pdfTools.pageEditor.textInputPlaceholder")}),lr=(d,b,g=-1)=>{const W=g>=0?j.value[g]:null;G.value={visible:!0,tool:b,x:W?W.rect.x:d.x,y:W?W.rect.y:d.y,value:W?String(W.payload?.text||""):"",index:g},ve(),e.nextTick(()=>le.value?.focus())},gg=()=>{G.value={...G.value,visible:!1,index:-1},ve()},Qo=()=>{if(!G.value.visible)return;const{value:d,index:b,x:g,y:W,tool:w}=G.value;if(G.value={...G.value,visible:!1,index:-1},!d.trim()){b>=0&&j.value.splice(b,1),ve();return}if(w===y.COMMENT){const ue={type:y.COMMENT,rect:{x:g,y:W,w:kc,h:kc},payload:{text:d}};b>=0?j.value[b]={...j.value[b],payload:{text:d}}:j.value.push(ue),tt.value=b>=0?b:j.value.length-1,ve();return}const M=b>=0?{...j.value[b].payload,text:d}:{text:d,font:Re.value,size:ae.value,color:Xe.value},U={x:g,y:W,...qc(d,M)};b>=0?j.value[b]={...j.value[b],rect:U,payload:M}:j.value.push({type:y.TEXT,rect:U,payload:M}),tt.value=b>=0?b:j.value.length-1,ve()},Yg=d=>{const b=tl(d),g=ar(b),W=g!==-1?j.value[g].type:null;(W===y.TEXT||W===y.COMMENT)&&lr(b,W,g)},ar=d=>{for(let b=j.value.length-1;b>=0;b--){const g=j.value[b].rect;if(d.x>=g.x&&d.x<=g.x+g.w&&d.y>=g.y&&d.y<=g.y+g.h)return b}return-1},Ng=d=>{const W=6*(window.devicePixelRatio||1)/2;for(let w=j.value.length-1;w>=0;w--){const M=j.value[w];if(M.type!==y.IMAGE)continue;const U=M.rect,ue=[{key:"tl",x:U.x,y:U.y},{key:"tr",x:U.x+U.w,y:U.y},{key:"bl",x:U.x,y:U.y+U.h},{key:"br",x:U.x+U.w,y:U.y+U.h}];for(const We of ue)if(d.x>=We.x-W&&d.x<=We.x+W&&d.y>=We.y-W&&d.y<=We.y+W)return{idx:w,corner:We.key}}return null},Ag=d=>{if(G.value.visible&&Qo(),I.value===y.REDACT||I.value===y.HIGHLIGHT)ee=!0,je=tl(d);else if(I.value===y.IMAGE||I.value===y.SELECT||I.value===y.TEXT||I.value===y.COMMENT){const b=tl(d),g=Ng(b);if(g){ea=g.idx,ul=g.corner,ft={p:b,rect:{...j.value[g.idx].rect}},D.value&&(D.value.style.cursor="nwse-resize");return}const W=ar(b);if(W!==-1&&(j.value[W].type===y.IMAGE||j.value[W].type===y.TEXT||j.value[W].type===y.COMMENT)){Wg(W),ql=W,ft={p:b,rect:{...j.value[W].rect}},D.value&&(D.value.style.cursor="move");return}if(tt.value=-1,I.value===y.TEXT||I.value===y.COMMENT){d.preventDefault(),lr(b,I.value);return}if(I.value===y.IMAGE){if(!v.value&&!C.value)return;const w={type:y.IMAGE,rect:{x:b.x,y:b.y,w:150,h:100},payload:{file:v.value,signature:C.value}};j.value.push(w),st(w),ve(),I.value=y.SELECT,v.value=null,C.value=null}}},Xg=d=>{if(ea!==null&&ul){const g=tl(d),W=j.value[ea];if(W){const w=ft.rect;let M=w.x,U=w.y,ue=w.w,We=w.h;const lt=g.x-ft.p.x,Se=g.y-ft.p.y;ul==="br"?(ue=Math.max(10,w.w+lt),We=Math.max(10,w.h+Se)):ul==="tr"?(ue=Math.max(10,w.w+lt),We=Math.max(10,w.h-Se),U=w.y+Se):ul==="bl"?(ue=Math.max(10,w.w-lt),M=w.x+lt,We=Math.max(10,w.h+Se)):ul==="tl"&&(ue=Math.max(10,w.w-lt),M=w.x+lt,We=Math.max(10,w.h-Se),U=w.y+Se),W.rect.x=M,W.rect.y=U,W.rect.w=ue,W.rect.h=We,ve()}return}if(ql!==null){const g=tl(d),W=j.value[ql];if(W){const w=g.x-ft.p.x,M=g.y-ft.p.y;W.rect.x=ft.rect.x+w,W.rect.y=ft.rect.y+M,ve()}return}if(!ee||!je)return;const b=tl(d);Zl.value={x:Math.min(je.x,b.x),y:Math.min(je.y,b.y),w:Math.abs(b.x-je.x),h:Math.abs(b.y-je.y)},ve()},zg=()=>{if(ql!==null||ea!==null){ql=null,ea=null,ul=null,ft=null,D.value&&(D.value.style.cursor="crosshair"),ve();return}ee&&Zl.value&&j.value.push({type:I.value,rect:{...Zl.value}}),ee=!1,je=null,Zl.value=null,ve()},Mg=()=>{ee&&(ee=!1,je=null,Zl.value=null,ve())},Zl=e.ref(null),ve=()=>{const d=tt.value,b=D.value;if(!b)return;const g=b.getContext("2d"),W=window.devicePixelRatio||1;g.clearRect(0,0,b.width,b.height);const w=(M,U)=>{if(!(G.value.visible&&U===G.value.index)){if(M.type===y.REDACT)g.fillStyle="rgba(0,0,0,1)",g.fillRect(M.rect.x,M.rect.y,M.rect.w,M.rect.h),g.strokeStyle="rgba(0,0,0,1)",g.strokeRect(M.rect.x,M.rect.y,M.rect.w,M.rect.h);else if(M.type===y.HIGHLIGHT)g.fillStyle="rgba(255, 235, 59, 0.4)",g.fillRect(M.rect.x,M.rect.y,M.rect.w,M.rect.h),g.strokeStyle="rgba(255, 193, 7, 0.8)",g.strokeRect(M.rect.x,M.rect.y,M.rect.w,M.rect.h);else if(M.type===y.COMMENT)jg(g,M.rect.x,M.rect.y,20*W),U===d&&(g.save(),g.strokeStyle="#0ea5e9",g.lineWidth=2*W,g.setLineDash([4*W,4*W]),g.strokeRect(M.rect.x,M.rect.y,M.rect.w,M.rect.h),g.restore());else if(M.type===y.IMAGE){if(st(M),M._bitmap&&g.drawImage(M._bitmap,M.rect.x,M.rect.y,M.rect.w,M.rect.h),g.strokeStyle=U===d?"#0ea5e9":"rgba(33,150,243,0.9)",g.lineWidth=U===d?2*W:1*W,g.strokeRect(M.rect.x,M.rect.y,M.rect.w,M.rect.h),U===d){g.fillStyle="#0ea5e9";const ue=6*W,We=ue/2;[[M.rect.x,M.rect.y],[M.rect.x+M.rect.w,M.rect.y],[M.rect.x,M.rect.y+M.rect.h],[M.rect.x+M.rect.w,M.rect.y+M.rect.h]].forEach(([Se,fl])=>{g.fillRect(Se-We,fl-We,ue,ue)})}}else if(M.type===y.TEXT){const ue=M.payload||{},We=Jo(ue);g.save(),g.fillStyle=ue.color||"#000",g.font=`${We}px ${ue.font||"Helvetica"}`,g.textBaseline="top";let lt=M.rect.y;for(const Se of Io(ue.text))g.fillText(Se,M.rect.x,lt),lt+=We*Xa;g.restore(),g.save(),g.strokeStyle=U===d?"#0ea5e9":"rgba(33,150,243,0.5)",g.lineWidth=U===d?2*W:1*W,g.setLineDash([4*W,4*W]),g.strokeRect(M.rect.x,M.rect.y,M.rect.w,M.rect.h),g.restore()}}};if(j.value.forEach(w),Zl.value){const M=Zl.value;g.setLineDash([6*W,4*W]),g.strokeStyle=I.value===y.REDACT?"black":"goldenrod",g.strokeRect(M.x,M.y,M.w,M.h),g.setLineDash([])}},Og=d=>{let b=d.toString().trim();b.startsWith("#")&&(b=b.slice(1)),b.length===3&&(b=b.split("").map(U=>U+U).join(""));const g=parseInt(b||"000000",16),W=(g>>16&255)/255,w=(g>>8&255)/255,M=(g&255)/255;return{r:W,g:w,b:M}},jg=(d,b,g,W)=>{d.save(),d.translate(b,g),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()},Gg=async()=>{if(!(!r.value||!X.value)){h.value=!0;try{const d=await de.PDFDocument.load(r.value),b=X.value.pageIndex;let g=d.getPage(b);const{width:W,height:w}=g.getSize(),M=Ga();if(!M)throw new Error(a("pdfTools.pdfRenderCanvasNotFound"));if(j.value.some(De=>De.type===y.REDACT)){if(!window.confirm(a("pdfTools.redactFlattenConfirm"))){h.value=!1;return}const Eo=await(await kt.value.promise).getPage(b+1),Il=D.value,Po=await D5({pdfPage:Eo,redactions:j.value.filter(Ft=>Ft.type===y.REDACT).map(Ft=>({x:Ft.rect.x/Il.width,y:Ft.rect.y/Il.height,w:Ft.rect.w/Il.width,h:Ft.rect.h/Il.height}))}),_o=await(await fetch(Po)).arrayBuffer(),Ko=await d.embedJpg(_o),Ta=d.insertPage(b+1,[W,w]);Ta.drawImage(Ko,{x:0,y:0,width:W,height:w}),g=Ta}const ue=M.getBoundingClientRect(),We=M.width,lt=M.height,Se=window.devicePixelRatio||1,fl=We/ue.width,cr=lt/ue.height,rr=W/We,dr=w/lt;f5(g);for(const De of j.value){const br=De.rect.x/Se,Eo=De.rect.y/Se,Il=De.rect.w/Se,Po=De.rect.h/Se,_o=br*fl,Ko=Eo*cr,Ta=Il*fl,Ft=Po*cr,$o=Ta*rr,qo=Ft*dr,wa=_o*rr,fa=w-(Ko+Ft)*dr;if(De.type!==y.REDACT){if(De.type===y.HIGHLIGHT)g.drawRectangle({x:wa,y:fa,width:$o,height:qo,color:de.rgb(1,.92,.23),opacity:.4});else if(De.type===y.COMMENT)T5({doc:d,page:g,rect:{x:wa,y:fa,size:Math.max(14,$o)},text:De.payload?.text,title:a("pdfTools.pageEditor.tools.comment")});else if(De.type===y.IMAGE){let Nt=null;if(De.payload?.file?Nt=await De.payload.file.arrayBuffer():De.payload?.signature&&(Nt=De.payload.signature),Nt){let ta;try{ta=await d.embedPng(Nt)}catch{ta=await d.embedJpg(Nt)}g.drawImage(ta,{x:wa,y:fa,width:$o,height:qo,opacity:.98})}}else if(De.type===y.TEXT){const Nt=De.payload||{},ta=Nt.font==="TimesRoman"?de.StandardFonts.TimesRoman:Nt.font==="Courier"?de.StandardFonts.Courier:de.StandardFonts.Helvetica,e2=await d.embedFont(ta),t2=Math.max(6,Number(Nt.size)||18),{r:Rg,g:kg,b:Cg}=Og(Nt.color||"#000000"),Fg=fa+qo,Vg=e2.heightAtSize(t2,{descender:!1});Io(Nt.text).forEach((pr,xg)=>{pr&&g.drawText(pr,{x:wa,y:F5({topY:Fg,lineIndex:xg,fontSize:t2,ascentPt:Vg}),size:t2,font:e2,color:de.rgb(Rg,kg,Cg)})})}}}const mr=j.value.some(De=>De.type===y.REDACT);mr&&d.removePage(b),await Qe(d,{updatePages:mr}),j.value=[],tt.value=-1,await ja(),s.toast.add({severity:"success",summary:a("pdfTools.common.success"),detail:a("pdfTools.pageEditor.applySuccess"),life:2e3})}catch(d){console.error("Error applying overlay edits:",d),s.toast.add({severity:"error",summary:a("pdfTools.common.error"),detail:a("pdfTools.pageEditor.applyError"),life:3e3})}finally{h.value=!1}}};e.watch(z,()=>setTimeout(Ct,0)),e.watch(X,()=>setTimeout(Ct,0)),typeof window<"u"&&window.addEventListener("resize",()=>setTimeout(Ct,0));const Tg=()=>{z.value=1,setTimeout(Ct,0)},wg=()=>{const d=F.value;if(!d)return;const b=window.devicePixelRatio||1,g=440,W=180;d.style.width=g+"px",d.style.height=W+"px",d.width=Math.round(g*b),d.height=Math.round(W*b);const w=d.getContext("2d");w.fillStyle="#fff",w.fillRect(0,0,d.width,d.height)},fg=()=>{nr(),T.value=!1},or=d=>{q=!0,K=ir(d)},sr=d=>{if(!q)return;const b=ir(d);Lg(K,b),K=b},Ig=d=>or(d.touches[0]),vg=d=>sr(d.touches[0]),Bo=()=>{q=!1,K=null},ir=d=>{const g=F.value.getBoundingClientRect(),W=window.devicePixelRatio||1,w=d.clientX??d.pageX,M=d.clientY??d.pageY;return{x:(w-g.left)*W,y:(M-g.top)*W}},Lg=(d,b)=>{const W=F.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(b.x,b.y),W.stroke()},nr=()=>{const d=F.value;if(!d)return;const b=d.getContext("2d");b.fillStyle="#fff",b.fillRect(0,0,d.width,d.height)},Dg=()=>{const d=F.value;d&&d.toBlob(async b=>{C.value=await b.arrayBuffer(),I.value=y.IMAGE,T.value=!1})};return e.watch(T,d=>{d&&setTimeout(wg,0)}),e.watch(Ve,async d=>{if(!d){_e.value=0;return}try{const b=await d;_e.value=b.numPages}catch(b){console.error("Error loading preview PDF:",b),_e.value=0}}),(d,b)=>{const g=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock("div",V5,[e.createElementVNode("div",x5,[e.createElementVNode("h1",null,[e.createTextVNode(e.toDisplayString(d.$t("pdfTools.title"))+" ",1),Ge.value?(e.openBlock(),e.createElementBlock("span",S5,"— "+e.toDisplayString(Ge.value),1)):e.createCommentVNode("",!0)]),l.closable?(e.openBlock(),e.createBlock(e.unref(L),{key:0,class:"p-button-secondary flex-shrink-0",icon:"ri-close-line",label:d.$t("pdfTools.closeEditor"),onClick:n},null,8,["label"])):e.createCommentVNode("",!0)]),h.value?(e.openBlock(),e.createElementBlock("div",J5,[e.createVNode(e.unref(Zt)),e.createElementVNode("p",null,e.toDisplayString(d.$t("pdfTools.loading")),1)])):e.createCommentVNode("",!0),Z.value?(e.openBlock(),e.createElementBlock("div",U5,[e.createVNode(e.unref(it),{severity:"error"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(Z.value),1)]),_:1})])):e.createCommentVNode("",!0),!h.value&&!Z.value?(e.openBlock(),e.createElementBlock("div",H5,[e.createElementVNode("div",Q5,[e.createElementVNode("div",B5,[e.createElementVNode("h2",null,e.toDisplayString(d.$t("pdfTools.sidebar.actions")),1),e.createElementVNode("div",E5,[e.createVNode(e.unref(L),{icon:"ri-save-2-line",label:d.$t("pdfTools.sidebar.saveNewVersion"),onClick:Oa},null,8,["label"]),e.createVNode(e.unref(L),{class:"p-button-secondary mt-2",icon:"ri-file-copy-2-line",label:d.$t("pdfTools.sidebar.saveAs"),onClick:b[0]||(b[0]=W=>$l("saveAs"))},null,8,["label"]),e.createVNode(e.unref(vl)),e.createElementVNode("div",P5,[e.createElementVNode("h3",null,e.toDisplayString(d.$t("pdfTools.sidebar.extractPages")),1),e.createVNode(e.unref(L),{disabled:Y.value.length===0,icon:"ri-file-transfer-line",label:d.$t("pdfTools.sidebar.extractAndSave"),onClick:b[1]||(b[1]=W=>$l("extract"))},null,8,["disabled","label"])]),e.createElementVNode("div",_5,[e.createElementVNode("h3",null,e.toDisplayString(d.$t("pdfTools.sidebar.deletePages")),1),e.createVNode(e.unref(L),{disabled:Y.value.length===0||m.value.length===Y.value.length,class:"p-button-danger",icon:"ri-delete-bin-line",label:d.$t("pdfTools.sidebar.deleteSelectedPages"),onClick:O},null,8,["disabled","label"])]),e.createElementVNode("div",K5,[e.createElementVNode("h3",null,e.toDisplayString(d.$t("pdfTools.sidebar.insertPdf")),1),e.createElementVNode("div",$5,[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:wl},null,8,["choose-label"]),e.createVNode(e.unref(L),{class:"p-button-secondary",icon:"ri-cloud-line",label:d.$t("pdfTools.sidebar.fromPristy"),onClick:P},null,8,["label"])])]),e.createElementVNode("div",q5,[e.createElementVNode("h3",null,e.toDisplayString(d.$t("pdfTools.sidebar.addWatermark")),1),e.createVNode(e.unref(we),{modelValue:$e.value,"onUpdate:modelValue":b[2]||(b[2]=W=>$e.value=W),placeholder:d.$t("pdfTools.sidebar.watermarkTextPlaceholder"),type:"text"},null,8,["modelValue","placeholder"]),e.createElementVNode("div",ey,[e.createElementVNode("div",ty,[e.createVNode(e.unref(Ll),{modelValue:ne.value,"onUpdate:modelValue":b[3]||(b[3]=W=>ne.value=W),max:360,min:-360,placeholder:d.$t("pdfTools.sidebar.angle"),suffix:"°"},null,8,["modelValue","placeholder"])]),e.createElementVNode("div",ly,[e.createVNode(e.unref(Ll),{modelValue:se.value,"onUpdate:modelValue":b[4]||(b[4]=W=>se.value=W),max:10,min:1,placeholder:d.$t("pdfTools.sidebar.repetitions")},null,8,["modelValue","placeholder"])])]),e.createVNode(e.unref(L),{disabled:!$e.value||Y.value.length===0,class:"p-button-secondary mt-2",icon:"ri-paint-brush-line",label:d.$t("pdfTools.sidebar.addWatermarkButton"),onClick:pt},null,8,["disabled","label"])])])])]),e.createElementVNode("div",ay,[e.createElementVNode("h2",null,e.toDisplayString(d.$t("pdfTools.pagePreview.title")),1),e.createVNode(e.unref(b2.VueDraggableNext),{modelValue:m.value,"onUpdate:modelValue":b[5]||(b[5]=W=>m.value=W),class:"grid","ghost-class":"ghost","item-key":"pageIndex",onEnd:bl},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,W=>(e.openBlock(),e.createElementBlock("div",{key:W.pageIndex,class:"col-3"},[e.createElementVNode("div",{class:e.normalizeClass([{selected:Yt(W)},"page-thumbnail"]),onClick:w=>ml(W),onDblclick:e.withModifiers(w=>pl(W),["stop"])},[e.createElementVNode("div",sy,[e.createVNode(e.unref(St),{binary:"","model-value":Yt(W)},null,8,["model-value"])]),e.createElementVNode("div",iy,[e.createVNode(e.unref(L),{class:"p-button-rounded p-button-text",icon:"ri-clockwise-line","aria-label":d.$t("pdf.rotationRigth"),onClick:e.withModifiers(w=>El(W),["stop"])},null,8,["aria-label","onClick"]),e.createVNode(e.unref(L),{"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(w=>pl(W),["stop"])},null,8,["aria-label","onClick"])]),e.createElementVNode("div",ny,[e.createVNode(e.unref(xt.VuePDF),{annotations:!1,page:W.pageNumber,pdf:e.unref(kt),scale:.25,text:!1},null,8,["page","pdf"])]),e.createElementVNode("div",cy,e.toDisplayString(W.pageNumber),1)],42,oy)]))),128))]),_:1},8,["modelValue"])])])):e.createCommentVNode("",!0),e.createVNode(e.unref(Je),{visible:A.value,"onUpdate:visible":b[15]||(b[15]=W=>A.value=W),breakpoints:{"960px":"95vw","640px":"100vw"},closeOnEscape:!1,style:{width:"85vw",maxWidth:"1400px",height:"90vh"},dismissableMask:"",modal:"",class:"dialog-page-editor","content-class":"page-editor-dialog",onHide:N},{header:e.withCtx(()=>[e.createElementVNode("div",ry,[b[22]||(b[22]=e.createElementVNode("i",{class:"ri-file-fill","aria-hidden":"true"},null,-1)),e.createElementVNode("span",null,e.toDisplayString(d.$t("pdfTools.pageEditor.title",{pageNumber:(X.value||p.value)?.pageNumber||"",filename:Ge.value})),1)])]),footer:e.withCtx(()=>[e.createElementVNode("div",My,[e.createElementVNode("small",null,e.toDisplayString(d.$t("pdfTools.pageEditor.footerHint")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",dy,[e.createVNode(e.unref(L),{class:"p-button-text",icon:"ri-zoom-out-line","aria-label":d.$t("pdf.dezoom"),onClick:$},null,8,["aria-label"]),e.createVNode(e.unref(L),{class:"p-button-text",icon:"ri-zoom-in-line","aria-label":d.$t("pdf.zoom"),onClick:R},null,8,["aria-label"]),e.createVNode(e.unref(L),{class:"p-button-text",label:d.$t("pdfTools.pageEditor.fit"),onClick:Tg},null,8,["label"]),e.createElementVNode("span",my,e.toDisplayString(Math.round(z.value*100))+"%",1),b[23]||(b[23]=e.createElementVNode("span",{class:"spacer"},null,-1)),e.createVNode(e.unref(L),{class:"p-button-text",icon:"ri-close-line",label:d.$t("pdfTools.pageEditor.close"),onClick:N},null,8,["label"])]),e.createElementVNode("div",by,[e.createElementVNode("div",py,[e.createElementVNode("h4",null,e.toDisplayString(d.$t("pdfTools.pageEditor.tools.actions")),1),e.createVNode(e.unref(L),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:I.value===y.SELECT}]]),icon:"ri-cursor-line",label:d.$t("pdfTools.pageEditor.tools.select"),onClick:b[6]||(b[6]=W=>oe(y.SELECT))},null,8,["class","label"]),e.createVNode(e.unref(L),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:I.value===y.REDACT}]]),icon:"ri-eraser-fill",label:d.$t("pdfTools.pageEditor.tools.redact"),onClick:b[7]||(b[7]=W=>oe(y.REDACT))},null,8,["class","label"]),e.createVNode(e.unref(L),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:I.value===y.HIGHLIGHT}]]),icon:"ri-mark-pen-line",label:d.$t("pdfTools.pageEditor.tools.highlight"),onClick:b[8]||(b[8]=W=>oe(y.HIGHLIGHT))},null,8,["class","label"]),e.createVNode(e.unref(L),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:I.value===y.COMMENT}]]),icon:"ri-sticky-note-line",label:d.$t("pdfTools.pageEditor.tools.comment"),onClick:b[9]||(b[9]=W=>oe(y.COMMENT))},null,8,["class","label"]),e.createVNode(e.unref(aa),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:I.value===y.IMAGE}]]),accept:"image/*","choose-label":d.$t("pdfTools.pageEditor.tools.image"),mode:"basic",name:"image",onSelect:ke},null,8,["class","choose-label"]),e.createVNode(e.unref(L),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:I.value===y.SIGNATURE}]]),icon:"ri-ball-pen-line",label:d.$t("pdfTools.pageEditor.tools.signature"),onClick:el},null,8,["class","label"]),e.createVNode(e.unref(L),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:I.value===y.TEXT}]]),icon:"ri-font-size",label:d.$t("pdfTools.pageEditor.tools.text"),onClick:b[10]||(b[10]=W=>oe(y.TEXT))},null,8,["class","label"]),yg.value?(e.openBlock(),e.createElementBlock("div",uy,[e.createElementVNode("div",Zy,[e.createElementVNode("label",hy,e.toDisplayString(d.$t("pdfTools.pageEditor.tools.font")),1),e.createVNode(e.unref(At),{modelValue:Re.value,"onUpdate:modelValue":b[11]||(b[11]=W=>Re.value=W),options:He,class:"w-full",optionLabel:"label",optionValue:"value"},null,8,["modelValue"])]),e.createElementVNode("div",yy,[e.createElementVNode("label",Wy,e.toDisplayString(d.$t("pdfTools.pageEditor.tools.size"))+" : "+e.toDisplayString(ae.value),1),e.createVNode(e.unref(wr),{id:"text-size-slider",modelValue:ae.value,"onUpdate:modelValue":b[12]||(b[12]=W=>ae.value=W),max:144,min:6,class:"w-full"},null,8,["modelValue"])]),e.createElementVNode("div",gy,[e.createElementVNode("label",Yy,e.toDisplayString(d.$t("pdfTools.pageEditor.tools.color")),1),e.createElementVNode("div",Ny,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(ot,W=>e.createElementVNode("button",{key:W.value,type:"button",class:e.normalizeClass(["color-swatch",{selected:Xe.value===W.value}]),style:e.normalizeStyle({backgroundColor:W.value}),"aria-label":d.$t(`pdfTools.pageEditor.colors.${W.name}`),"aria-pressed":Xe.value===W.value,onClick:w=>Xe.value=W.value},null,14,Ay)),64))]),e.createElementVNode("label",Xy,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":b[13]||(b[13]=W=>Xe.value=W),type:"color",class:"color-custom-input"},null,512),[[e.vModelText,Xe.value]]),e.createElementVNode("span",null,e.toDisplayString(d.$t("pdfTools.pageEditor.colors.custom")),1)])])])):e.createCommentVNode("",!0),e.createVNode(e.unref(vl)),e.createVNode(e.unref(L),{disabled:j.value.length===0,class:"p-button-info mt-auto w-full",icon:"ri-check-line",label:d.$t("pdfTools.pageEditor.apply"),onClick:Gg},null,8,["disabled","label"]),e.createVNode(e.unref(L),{disabled:j.value.length===0,class:"p-button-warning mt-1 w-full",icon:"ri-arrow-go-back-line",label:d.$t("pdfTools.pageEditor.cancel"),onClick:wt},null,8,["disabled","label"]),tt.value>=0?(e.openBlock(),e.createBlock(e.unref(L),{key:1,class:"p-button-danger mt-1 w-full",icon:"ri-delete-bin-line",label:d.$t("pdfTools.pageEditor.deleteSelected"),onClick:er},null,8,["label"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"page-editor-canvas",onWheelPassive:Ct,onScrollPassive:Ct},[e.createElementVNode("div",{ref_key:"pdfCanvasWrapper",ref:x,class:"pdf-canvas-wrapper"},[e.unref(kt)&&(X.value||p.value)?(e.openBlock(),e.createBlock(e.unref(xt.VuePDF),{key:0,annotations:"",page:(X.value||p.value).pageNumber,pdf:e.unref(kt),scale:z.value,text:!1,class:"absolute"},null,8,["page","pdf","scale"])):e.createCommentVNode("",!0),e.createElementVNode("canvas",{ref_key:"overlayCanvas",ref:D,class:"overlay-canvas",onDblclick:Yg,onMousedown:Ag,onMouseleave:Mg,onMousemove:Xg,onMouseup:zg},null,544),G.value.visible?e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:1,ref_key:"textEditorInput",ref:le,"onUpdate:modelValue":b[14]||(b[14]=W=>G.value.value=W),"aria-label":tr.value.label,placeholder:tr.value.placeholder,style:e.normalizeStyle(hg.value),class:"text-editor-input",onBlur:Qo,onKeydown:e.withKeys(e.withModifiers(Qo,["ctrl","prevent"]),["enter"])},null,44,zy)),[[e.vModelText,G.value.value]]):e.createCommentVNode("",!0)],512)],32)])]),_:1},8,["visible"]),e.createVNode(e.unref(Je),{visible:T.value,"onUpdate:visible":b[16]||(b[16]=W=>T.value=W),modal:"",class:"dialog-signature-pad",onHide:fg},{header:e.withCtx(()=>[e.createElementVNode("div",Oy,[b[24]||(b[24]=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",Gy,[e.createVNode(e.unref(L),{class:"p-button-text",label:d.$t("pdfTools.signaturePad.clear"),onClick:nr},null,8,["label"]),e.createVNode(e.unref(L),{class:"p-button-text",label:d.$t("pdfTools.signaturePad.use"),onClick:Dg},null,8,["label"])])]),default:e.withCtx(()=>[e.createElementVNode("div",jy,[e.createElementVNode("canvas",{ref_key:"signaturePadCanvas",ref:F,class:"signature-canvas",onMousedown:or,onMouseleave:Bo,onMousemove:sr,onMouseup:Bo,onTouchstart:e.withModifiers(Ig,["prevent"]),onTouchmove:e.withModifiers(vg,["prevent"]),onTouchend:e.withModifiers(Bo,["prevent"])},null,544)])]),_:1},8,["visible"]),e.createVNode(O5,{"default-filename":ce.value,visible:H.value,"parent-folder-node":rt.value,onClose:b[17]||(b[17]=W=>H.value=!1),onSave:So},null,8,["default-filename","visible","parent-folder-node"]),e.createVNode(e.unref(Je),{visible:Te.value,modal:"",header:d.$t("pdfTools.insertFromAlfresco.title"),class:"dialog-insert-pdf","onUpdate:visible":b[21]||(b[21]=W=>Te.value=!1)},{footer:e.withCtx(()=>[e.createElementVNode("div",bW,[e.createElementVNode("div",pW,[fe.value?(e.openBlock(),e.createElementBlock("div",uW,[e.createElementVNode("span",ZW,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.selected")),1),e.withDirectives((e.openBlock(),e.createElementBlock("span",hW,[e.createTextVNode(e.toDisplayString(fe.value?.name),1)])),[[g,fe.value?.name,void 0,{top:!0}]])])):e.createCommentVNode("",!0),Pe.value?(e.openBlock(),e.createElementBlock("div",yW,e.toDisplayString(Pe.value),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",WW,[e.createVNode(e.unref(L),{label:d.$t("pdfTools.insertFromAlfresco.cancel"),class:"p-button-text",onClick:b[20]||(b[20]=W=>Te.value=!1)},null,8,["label"]),e.createVNode(e.unref(L),{disabled:!dt.value,label:d.$t("pdfTools.insertFromAlfresco.insert"),icon:"ri-add-line",onClick:pe},null,8,["disabled","label"])])])]),default:e.withCtx(()=>[e.createVNode(e.unref(l2),{onTabChange:ie},{default:e.withCtx(()=>[e.createVNode(e.unref(kl),{header:d.$t("pdfTools.insertFromAlfresco.browse")},{default:e.withCtx(()=>[e.createVNode(il,{showUserHome:"",showFiles:"",onSelectNode:_l})]),_:1},8,["header"]),e.createVNode(e.unref(kl),{header:d.$t("pdfTools.insertFromAlfresco.search")},{default:e.withCtx(()=>[e.createElementVNode("div",Ty,[e.createVNode(e.unref(we),{modelValue:qe.value,"onUpdate:modelValue":b[18]||(b[18]=W=>qe.value=W),placeholder:d.$t("pdfTools.insertFromAlfresco.searchPlaceholder"),onKeyup:e.withKeys(Tl,["enter"])},null,8,["modelValue","placeholder"]),e.createVNode(e.unref(L),{icon:"ri-search-line","aria-label":d.$t("search"),onClick:Tl},null,8,["aria-label"])]),jt.value?(e.openBlock(),e.createElementBlock("div",wy,[e.createVNode(e.unref(Zt),{class:"spinner-sm",strokeWidth:"8"}),e.createElementVNode("span",null,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.searching")),1)])):!gt.value.length&&Kt.value?(e.openBlock(),e.createElementBlock("div",fy,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.noPdfFound")),1)):gt.value.length?(e.openBlock(),e.createElementBlock("div",Iy,[e.createElementVNode("div",vy,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(gt.value,W=>(e.openBlock(),e.createElementBlock("div",{key:W.id,class:e.normalizeClass(["favorite-item",{"favorite-item-selected":fe.value?.id===W.id}]),onClick:w=>Ne(W)},[e.createElementVNode("div",Dy,[b[25]||(b[25]=e.createElementVNode("i",{class:"ri-file-pdf-line","aria-hidden":"true"},null,-1)),e.withDirectives((e.openBlock(),e.createElementBlock("span",Ry,[e.createTextVNode(e.toDisplayString(W.name),1)])),[[g,W.name,void 0,{top:!0}]])])],10,Ly))),128))]),e.createElementVNode("div",ky,[fe.value?Gt.value?(e.openBlock(),e.createElementBlock("div",Vy,[e.createVNode(e.unref(Zt),{class:"w-3rem h-3rem",strokeWidth:"6"}),e.createElementVNode("p",xy,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.loadingPreview")),1)])):e.unref(Ve)?(e.openBlock(),e.createElementBlock("div",Sy,[_e.value>0?(e.openBlock(),e.createElementBlock("div",Jy,[e.createVNode(e.unref(L),{icon:"ri-arrow-left-s-line","aria-label":d.$t("pdf.previousPage"),class:"p-button-text p-button-sm",disabled:xe.value<=1,onClick:bt},null,8,["aria-label","disabled"]),e.createElementVNode("span",Uy,e.toDisplayString(xe.value)+" / "+e.toDisplayString(_e.value),1),e.createVNode(e.unref(L),{icon:"ri-arrow-right-s-line","aria-label":d.$t("pdf.nextPage"),class:"p-button-text p-button-sm",disabled:xe.value>=_e.value,onClick:Ie},null,8,["aria-label","disabled"])])):e.createCommentVNode("",!0),e.createElementVNode("div",Hy,[e.createVNode(e.unref(xt.VuePDF),{pdf:e.unref(Ve),page:xe.value,scale:.6,annotations:!1,text:!1},null,8,["pdf","page"])])])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Cy,[b[26]||(b[26]=e.createElementVNode("i",{class:"ri-file-pdf-line text-6xl text-color-secondary","aria-hidden":"true"},null,-1)),e.createElementVNode("p",Fy,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(()=>[Rt.value?(e.openBlock(),e.createElementBlock("div",Qy,[e.createVNode(e.unref(Zt),{class:"spinner-sm",strokeWidth:"8"}),e.createElementVNode("span",null,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.loading")),1)])):mt.value.length?(e.openBlock(),e.createElementBlock("div",Ey,[e.createElementVNode("div",Py,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(mt.value,W=>(e.openBlock(),e.createElementBlock("div",{key:W.id,class:e.normalizeClass(["favorite-item",{"favorite-item-selected":fe.value?.id===W.id}]),onClick:w=>Ne(W)},[e.createElementVNode("div",Ky,[b[27]||(b[27]=e.createElementVNode("i",{class:"ri-file-pdf-line","aria-hidden":"true"},null,-1)),e.withDirectives((e.openBlock(),e.createElementBlock("span",$y,[e.createTextVNode(e.toDisplayString(W.name),1)])),[[g,W.name,void 0,{top:!0}]])])],10,_y))),128))]),e.createElementVNode("div",qy,[fe.value?Gt.value?(e.openBlock(),e.createElementBlock("div",lW,[e.createVNode(e.unref(Zt),{class:"w-3rem h-3rem",strokeWidth:"6"}),e.createElementVNode("p",aW,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.loadingPreview")),1)])):e.unref(Ve)?(e.openBlock(),e.createElementBlock("div",oW,[_e.value>0?(e.openBlock(),e.createElementBlock("div",sW,[e.createVNode(e.unref(L),{icon:"ri-arrow-left-s-line","aria-label":d.$t("pdf.previousPage"),class:"p-button-text p-button-sm",disabled:xe.value<=1,onClick:bt},null,8,["aria-label","disabled"]),e.createElementVNode("span",iW,e.toDisplayString(xe.value)+" / "+e.toDisplayString(_e.value),1),e.createVNode(e.unref(L),{icon:"ri-arrow-right-s-line","aria-label":d.$t("pdf.nextPage"),class:"p-button-text p-button-sm",disabled:xe.value>=_e.value,onClick:Ie},null,8,["aria-label","disabled"])])):e.createCommentVNode("",!0),e.createElementVNode("div",nW,[e.createVNode(e.unref(xt.VuePDF),{pdf:e.unref(Ve),page:xe.value,scale:.6,annotations:!1,text:!1},null,8,["pdf","page"])])])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",eW,[b[28]||(b[28]=e.createElementVNode("i",{class:"ri-file-pdf-line text-6xl text-color-secondary","aria-hidden":"true"},null,-1)),e.createElementVNode("p",tW,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.selectPdfToPreview")),1)]))])])):(e.openBlock(),e.createElementBlock("div",By,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",cW,[e.createElementVNode("div",rW,[e.createElementVNode("label",dW,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.alfrescoIdUrl")),1),e.createVNode(e.unref(we),{id:"alfrescoNodeId",modelValue:me.value,"onUpdate:modelValue":b[19]||(b[19]=W=>me.value=W),placeholder:d.$t("pdfTools.insertFromAlfresco.alfrescoIdUrlHint")},null,8,["modelValue","placeholder"]),e.createElementVNode("small",mW,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.alfrescoIdUrlHint")),1)])])]),_:1},8,["header"])]),_:1})]),_:1},8,["visible","header"])])}}},[["__scopeId","data-v-d5ec9ef3"]]),gW={class:"version-selectors"},YW={class:"version-selector-group"},NW={key:0,class:"flex align-items-center gap-2"},AW={key:1},XW={class:"flex align-items-center gap-2"},zW={class:"version-selector-group"},MW={key:0,class:"flex align-items-center gap-2"},OW={key:1},jW={class:"flex align-items-center gap-2"},GW={key:0,class:"diff-content"},TW={class:"diff-headers"},wW={class:"header-a"},fW={class:"header-b"},IW={class:"diff-viewer"},vW={key:0,class:"loading-container"},LW={key:1,class:"error-container"},vo=J({__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}=ll.useI18n(),s=h2.useToast(),o=ya(),i=l,n=t,c=e.ref(i.visible),r=e.ref(null),m=e.ref(null),h=e.ref(""),Z=e.ref(""),p=e.ref(!1),Y=e.ref(null),A=e.ref(null),X=e.ref(null),z=e.computed(()=>{if(!i.versions)return[];const T=i.versions.map(F=>({label:`${a("diffViewer.version")} ${F.entry.id} (${new Date(F.entry.modifiedAt).toLocaleDateString()})`,id:F.entry.id})).reverse();return T.map((F,q)=>({...F,isCurrent:q===T.length-1}))}),y=e.computed(()=>z.value.filter(T=>T.id!==m.value)),I=e.computed(()=>z.value.filter(T=>T.id!==r.value)),j=e.computed(()=>{switch(i.contentNode?.content?.mimeType||""){case"text/html":return[r2.html()];case"text/markdown":case"text/x-markdown":return[oa.markdown()];case"application/json":return[Ra.json()];case"application/xml":case"text/xml":return[ka.xml()];case"application/x-yaml":case"text/yaml":return[sa.yaml()];default:return[]}}),v=T=>{c.value=T,n("update:visible",T)},C=async()=>{if(!(!r.value||!m.value)){p.value=!0,Y.value=null;try{const[T,F]=await Promise.all([S.getVersionContent(i.contentNode.id,r.value),S.getVersionContent(i.contentNode.id,m.value)]);let q=await T.text(),K=await F.text();if(i.contentNode?.content?.mimeType==="application/json")try{q=JSON.stringify(JSON.parse(q),null,2),K=JSON.stringify(JSON.parse(K),null,2)}catch(ee){console.error("Failed to format JSON:",ee)}h.value=q,Z.value=K,p.value=!1,await e.nextTick(),x()}catch(T){console.error("Error fetching versions:",T),Y.value=a("diffViewer.errors.loadError"),p.value=!1}}},x=()=>{if(X.value&&(X.value.destroy(),X.value=null),!A.value||!h.value&&!Z.value)return;const T=o.dark?c2.oneDark:al.syntaxHighlighting(al.defaultHighlightStyle,{fallback:!0}),F=[Le.lineNumbers(),...j.value,T,It.EditorState.readOnly.of(!0)];try{X.value=new vr.MergeView({a:{doc:h.value,extensions:F},b:{doc:Z.value,extensions:F},parent:A.value})}catch(q){console.error("Error creating MergeView:",q),Y.value="Failed to create diff view: "+q.message}},D=()=>{if(z.value.length>=2){const T=z.value.length;i.initialVersionId&&z.value.some(F=>F.id===i.initialVersionId)?(r.value=i.initialVersionId,m.value=z.value[T-1]?.id===i.initialVersionId?z.value[T-2]?.id:z.value[T-1]?.id):(r.value=z.value[T-2]?.id,m.value=z.value[T-1]?.id)}},le=T=>z.value.find(F=>F.id===T)?.isCurrent,G=async T=>{const F=a("diffViewer.restoredVersionComment",{versionNumber:T});try{await S.revertVersion(i.contentNode.id,T,F),n("revertVersion"),s.add({severity:"success",summary:a("diffViewer.revertVersion.success"),detail:a("diffViewer.revertVersion.successDetail"),life:3e3}),v(!1)}catch(q){console.error("Error reverting version:",q),s.add({severity:"error",summary:a("diffViewer.revertVersion.error"),detail:q.message,life:3e3})}};return e.watch(()=>i.visible,T=>{c.value=T,T?D():(X.value&&(X.value.destroy(),X.value=null),r.value=null,m.value=null,h.value="",Z.value="",Y.value=null)}),e.watch([r,m],()=>{r.value&&m.value&&C()}),e.watch(()=>i.versions,T=>{T&&T.length>=2&&c.value&&D()},{deep:!0}),(T,F)=>{const q=e.resolveDirective("tooltip");return e.openBlock(),e.createBlock(e.unref(Je),{visible:c.value,"onUpdate:visible":[F[4]||(F[4]=K=>c.value=K),v],header:T.$t("diffViewer.compareTitle"),modal:"",maximizable:"",class:"diff-viewer-dialog"},{default:e.withCtx(()=>[e.createElementVNode("div",gW,[e.createElementVNode("div",YW,[e.createVNode(e.unref(At),{modelValue:r.value,"onUpdate:modelValue":F[0]||(F[0]=K=>r.value=K),options:y.value,"option-label":"label","option-value":"id",placeholder:T.$t("diffViewer.selectVersionA"),class:"flex-grow-1"},{value:e.withCtx(K=>[K.value?(e.openBlock(),e.createElementBlock("div",NW,[e.createElementVNode("span",null,e.toDisplayString(z.value.find(ee=>ee.id===K.value)?.label),1),z.value.find(ee=>ee.id===K.value)?.isCurrent?(e.openBlock(),e.createBlock(e.unref(Fl),{key:0,value:T.$t("diffViewer.currentVersion"),severity:"info"},null,8,["value"])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("span",AW,e.toDisplayString(K.placeholder),1))]),option:e.withCtx(K=>[e.createElementVNode("div",XW,[e.createElementVNode("span",null,e.toDisplayString(K.option.label),1),K.option.isCurrent?(e.openBlock(),e.createBlock(e.unref(Fl),{key:0,value:T.$t("diffViewer.currentVersion"),severity:"info"},null,8,["value"])):e.createCommentVNode("",!0)])]),_:1},8,["modelValue","options","placeholder"]),r.value&&!le(r.value)?e.withDirectives((e.openBlock(),e.createBlock(e.unref(L),{key:0,type:"button",icon:"ri-history-line","aria-label":T.$t("diffViewer.revertToThisVersion",{versionNumber:r.value}),onClick:F[1]||(F[1]=K=>G(r.value)),severity:"secondary",rounded:"",text:""},null,8,["aria-label"])),[[q,T.$t("diffViewer.revertToThisVersion",{versionNumber:r.value}),void 0,{top:!0}]]):e.createCommentVNode("",!0)]),e.createElementVNode("div",zW,[e.createVNode(e.unref(At),{modelValue:m.value,"onUpdate:modelValue":F[2]||(F[2]=K=>m.value=K),options:I.value,"option-label":"label","option-value":"id",placeholder:T.$t("diffViewer.selectVersionB"),class:"flex-grow-1"},{value:e.withCtx(K=>[K.value?(e.openBlock(),e.createElementBlock("div",MW,[e.createElementVNode("span",null,e.toDisplayString(z.value.find(ee=>ee.id===K.value)?.label),1),z.value.find(ee=>ee.id===K.value)?.isCurrent?(e.openBlock(),e.createBlock(e.unref(Fl),{key:0,value:T.$t("diffViewer.currentVersion"),severity:"info"},null,8,["value"])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("span",OW,e.toDisplayString(K.placeholder),1))]),option:e.withCtx(K=>[e.createElementVNode("div",jW,[e.createElementVNode("span",null,e.toDisplayString(K.option.label),1),K.option.isCurrent?(e.openBlock(),e.createBlock(e.unref(Fl),{key:0,value:T.$t("diffViewer.currentVersion"),severity:"info"},null,8,["value"])):e.createCommentVNode("",!0)])]),_:1},8,["modelValue","options","placeholder"]),m.value&&!le(m.value)?e.withDirectives((e.openBlock(),e.createBlock(e.unref(L),{key:0,type:"button",icon:"ri-history-line","aria-label":T.$t("diffViewer.revertToThisVersion",{versionNumber:m.value}),onClick:F[3]||(F[3]=K=>G(m.value)),severity:"secondary",rounded:"",text:""},null,8,["aria-label"])),[[q,T.$t("diffViewer.revertToThisVersion",{versionNumber:m.value}),void 0,{top:!0}]]):e.createCommentVNode("",!0)])]),r.value&&m.value?(e.openBlock(),e.createElementBlock("div",GW,[e.createElementVNode("div",TW,[e.createElementVNode("div",wW,[e.createElementVNode("strong",null,e.toDisplayString(T.$t("diffViewer.version"))+" "+e.toDisplayString(r.value),1)]),e.createElementVNode("div",fW,[e.createElementVNode("strong",null,e.toDisplayString(T.$t("diffViewer.version"))+" "+e.toDisplayString(m.value),1)])]),e.createElementVNode("div",IW,[p.value?(e.openBlock(),e.createElementBlock("div",vW,[e.createVNode(e.unref(Zt))])):Y.value?(e.openBlock(),e.createElementBlock("div",LW,[F[5]||(F[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:A},null,512))])])):e.createCommentVNode("",!0)]),_:1},8,["visible","header"])}}},[["__scopeId","data-v-41095169"]]),DW={reconnectInterval:1e3,maxReconnectInterval:3e4,reconnectDecay:1.5,maxReconnectAttempts:10,heartbeatInterval:3e4,messageBufferSize:100},Ke={DISCONNECTED:"disconnected",CONNECTING:"connecting",CONNECTED:"connected",RECONNECTING:"reconnecting",ERROR:"error"};function Fc(l={}){const t={...DW,...l},a=e.ref(Ke.DISCONNECTED),s=e.ref(null),o=e.ref(null),i=e.ref(0),n=e.shallowRef([]);let c=null,r=null,m=null,h=null,Z=!1;const p={onConnected:[],onDisconnected:[],onMessage:[],onError:[],onReconnecting:[]},Y=(F,q)=>(p[F]&&p[F].push(q),()=>A(F,q)),A=(F,q)=>{if(p[F]){const K=p[F].indexOf(q);K>-1&&p[F].splice(K,1)}},X=(F,...q)=>{p[F]&&p[F].forEach(K=>K(...q))},z=F=>new Promise((q,K)=>{if(c&&c.readyState===WebSocket.OPEN){q();return}h=F,Z=!1,a.value=Ke.CONNECTING;try{c=new WebSocket(F),c.onopen=()=>{a.value=Ke.CONNECTED,i.value=0,s.value=null,v(),le(),X("onConnected"),q()},c.onclose=ee=>{C(),o.value=ee.code,a.value=Ke.DISCONNECTED,Z||(console.error(`[CollabWebSocket] Connection closed unexpectedly: code=${ee.code}, reason="${ee.reason}", wasClean=${ee.wasClean}`),ee.code===1009||ee.code===1008?a.value=Ke.ERROR:x()),X("onDisconnected",ee)},c.onerror=ee=>{s.value=ee,a.value=Ke.ERROR,X("onError",ee),K(ee)},c.onmessage=ee=>{try{const je=JSON.parse(ee.data);j(je)}catch(je){console.error("[CollabWebSocket] Failed to parse message:",je)}}}catch(ee){s.value=ee,a.value=Ke.ERROR,X("onError",ee),K(ee)}}),y=()=>{Z=!0,C(),D(),c&&(c.close(1e3,"User disconnected"),c=null),a.value=Ke.DISCONNECTED,n.value=[]},I=F=>{const q=JSON.stringify(F);return c&&c.readyState===WebSocket.OPEN?(c.send(q),!0):(n.value.length<t.messageBufferSize?n.value=[...n.value,q]:console.warn("[CollabWebSocket] Message buffer full, dropping message"),!1)},j=F=>{F.type!=="pong"&&X("onMessage",F)},v=()=>{C(),r=setInterval(()=>{c&&c.readyState===WebSocket.OPEN&&I({type:"ping"})},t.heartbeatInterval)},C=()=>{r&&(clearInterval(r),r=null)},x=()=>{if(i.value>=t.maxReconnectAttempts){console.error("[CollabWebSocket] Max reconnection attempts reached"),a.value=Ke.ERROR;return}a.value=Ke.RECONNECTING,i.value++;const F=Math.min(t.reconnectInterval*Math.pow(t.reconnectDecay,i.value-1),t.maxReconnectInterval);X("onReconnecting",i.value,F),m=setTimeout(()=>{h&&!Z&&(n.value=[],z(h).catch(()=>{}))},F)},D=()=>{m&&(clearTimeout(m),m=null)},le=()=>{if(c&&c.readyState===WebSocket.OPEN&&n.value.length>0){const F=[...n.value];n.value=[],F.forEach(q=>{c.send(q)})}},G=()=>{i.value=0,Z=!1},T=()=>c&&c.readyState===WebSocket.OPEN;return e.onUnmounted(()=>{y()}),{connectionState:e.readonly(a),lastError:e.readonly(s),lastCloseCode:e.readonly(o),reconnectAttempts:e.readonly(i),bufferedMessages:e.readonly(n),connect:z,disconnect:y,send:I,isConnected:T,resetReconnectAttempts:G,on:Y,off:A}}class RW{constructor(){this.basePath="/api/collab"}getBaseUrl(){return te.config.hostEcm}async getTicket(){return te.getTicketEcm()}createAuthHeader(t){return`Basic ${btoa(`ROLE_TICKET:${t}`)}`}async checkAvailability(t){try{const a=await this.getTicket(),s=await fetch(`${this.getBaseUrl()}/alfresco/s${this.basePath}/availability/${t}`,{method:"GET",headers:{Accept:"application/json",Authorization:this.createAuthHeader(a)}});if(!s.ok){if(s.status===404)return{available:!1,enabled:!1,permissionLevel:"NONE"};if(s.status===403)return{available:!1,enabled:!0,permissionLevel:"NONE",reason:"NO_READ_PERMISSION"};throw new Error(`HTTP ${s.status}: ${s.statusText}`)}return await s.json()}catch(a){throw console.error("[CollabService] Error checking availability:",a),B("collabService.checkAvailability",a)}}async initSession(t){try{const a=await this.getTicket(),s=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(!s.ok){const o=await s.json();throw new Error(o.error||`HTTP ${s.status}`)}return await s.json()}catch(a){throw console.error("[CollabService] Error initializing session:",a),B("collabService.initSession",a)}}getWebSocketUrl(){const t=this.getBaseUrl(),a=t.startsWith("https")?"wss":"ws",s=t.replace(/^https?:\/\//,"");return`${a}://${s}/alfresco/collab`}generateClientId(){const t="pristy.collab.clientId",a=()=>`client-${Date.now()}-${Math.random().toString(36).substring(2,11)}`;try{let s=sessionStorage.getItem(t);return s||(s=a(),sessionStorage.setItem(t,s)),s}catch{return a()}}}const Dt=new RW,kW="pristy-collab-backups",Et="backups",CW=1;let jl=null;const Lo=()=>jl?Promise.resolve(jl):new Promise((l,t)=>{const a=indexedDB.open(kW,CW);a.onupgradeneeded=s=>{const o=s.target.result;o.objectStoreNames.contains(Et)||o.createObjectStore(Et,{keyPath:"nodeId"})},a.onsuccess=s=>{jl=s.target.result,jl.onclose=()=>{jl=null},l(jl)},a.onerror=s=>{t(s.target.error)}}),Pt={async saveBackup(l,t,a){try{const s=await Lo();return new Promise((o,i)=>{const n=s.transaction(Et,"readwrite");n.objectStore(Et).put({nodeId:l,content:t,timestamp:Date.now(),sessionId:a}),n.oncomplete=()=>o(),n.onerror=r=>i(r.target.error)})}catch(s){console.warn("[CollabBackup] Failed to save backup:",s)}},async loadBackup(l){try{const t=await Lo();return new Promise((a,s)=>{const n=t.transaction(Et,"readonly").objectStore(Et).get(l);n.onsuccess=()=>a(n.result||null),n.onerror=c=>s(c.target.error)})}catch(t){return console.warn("[CollabBackup] Failed to load backup:",t),null}},async clearBackup(l){try{const t=await Lo();return new Promise((a,s)=>{const o=t.transaction(Et,"readwrite");o.objectStore(Et).delete(l),o.oncomplete=()=>a(),o.onerror=n=>s(n.target.error)})}catch(t){console.warn("[CollabBackup] Failed to clear backup:",t)}}},_t="editor",dl="observer",Do=2;class FW extends Le.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 Vc=It.StateEffect.define(),za=It.StateField.define({create(){return[]},update(l,t){for(const a of t.effects)if(a.is(Vc))return a.value;return l}}),VW=Le.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 s of t)if(s.position>=0&&s.position<=l.state.doc.length&&(a.push(Le.Decoration.widget({widget:new FW(s),side:1}).range(s.position)),s.anchor!==s.position)){const o=Math.min(s.anchor,s.position),i=Math.max(s.anchor,s.position);a.push(Le.Decoration.mark({class:"cm-remote-selection",attributes:{style:`background-color: ${s.color}33`}}).range(o,i))}return Le.Decoration.set(a,!0)}},{decorations:l=>l.decorations});function xc(){const l=e.ref(!1),t=e.ref(null),a=e.ref(null),s=e.ref(null),o=e.ref(null),i=e.shallowRef([]),n=e.shallowRef([]),c=e.ref(0),r=e.ref(null),m=e.ref(!1),h=e.ref(!1),Z=e.ref(!1),p=e.ref(!1),Y=e.ref(null);let A=null,X=null,z=null;const{connectionState:y,lastCloseCode:I,connect:j,disconnect:v,send:C,on:x,off:D,resetReconnectAttempts:le}=Fc();let G=null,T=null,F=null,q=null,K=null;const ee=new It.Compartment;let je=null,$e=null;const ne=O=>{console.log("[CollabEditor] setEditorView:",O?"view set":"view cleared"),G=O},se=()=>{if(!G)return null;try{return{document:G.state.doc.toString(),version:Wl.getSyncedVersion(G.state)}}catch{return null}},He=e.computed(()=>i.value.length),ot=e.computed(()=>y.value===Ke.CONNECTED),Re=e.computed(()=>y.value===Ke.RECONNECTING),ae=e.computed(()=>y.value===Ke.ERROR),Xe=e.computed(()=>o.value===_t),V=e.computed(()=>o.value===dl),H=e.computed(()=>i.value.filter(O=>O.role===_t).length),E=e.computed(()=>i.value.filter(O=>O.role===dl).length),ce=e.computed(()=>Y.value==="WRITE"),Ge=e.computed(()=>Y.value==="READ"||Y.value==="WRITE"),Wt=O=>[Wl.collab({startVersion:O,clientID:a.value,sharedEffects:P=>{if(P.selection){const ie=P.selection.main;Bl(ie.head,ie.anchor)}return[]}}),za,VW,ee.of(Le.EditorView.editable.of(!0))],rt=async O=>new Promise((P,ie)=>{const pe=setTimeout(()=>{D("onMessage",be),ie(new Error("Authentication timeout"))},5e3),be=Ne=>{if(Ne.type==="authenticated")clearTimeout(pe),D("onMessage",be),P();else if(Ne.type==="error"&&Ne.code==="AUTH_FAILED"){clearTimeout(pe),D("onMessage",be);const Ie=new Error(Ne.message||"Authentication failed");Ie.code="AUTH_FAILED",ie(Ie)}};x("onMessage",be),C({type:"auth",ticket:O})}),Te=async(O,P,ie,pe=dl,be=null,Ne=null,Ie=null)=>{l.value&&await me(),m.value=!1,h.value=!1,Z.value=!1,p.value=!1;try{T=O,G=P,a.value=Dt.generateClientId(),je=ie,A=be,X=Ne,z=Ie,je=ie,$e=pe;const bt=await Dt.checkAvailability(T);if(Y.value=bt.permissionLevel||"WRITE",!bt.enabled)throw new Error("Collaborative editing is not available for this document");if(bt.permissionLevel==="NONE")throw new Error("Access denied to this document");bt.permissionLevel==="READ"&&pe===_t&&(pe=dl);const _l=Dt.getWebSocketUrl();x("onMessage",qe),x("onDisconnected",Ve),x("onReconnecting",_e),x("onConnected",xe),await j(_l);const Tl=await Dt.getTicket();return await rt(Tl),new Promise((Kl,$t)=>{const wl=setTimeout(()=>{$t(new Error("Timeout waiting for welcome message"))},1e4),qt=pt=>{pt.type==="welcome"?(clearTimeout(wl),D("onMessage",qt),Pe(pt),Kl(pt)):pt.type==="error"&&(clearTimeout(wl),D("onMessage",qt),pt.code==="SESSION_FULL"?m.value=!0:pt.code==="INVALID_DOCUMENT"&&(h.value=!0),$t(new Error(pt.message)))};x("onMessage",qt),C({type:"join",nodeId:T,clientId:a.value,displayName:ie,mode:pe,protocolVersion:Do})})}catch(bt){throw r.value=bt,bt}},me=async()=>{if(l.value){if(F&&(clearTimeout(F),F=null),q&&(clearInterval(q),q=null),G&&T){const O=G.state.doc.toString();await Pt.saveBackup(T,O,t.value)}t.value&&a.value&&C({type:"leave",sessionId:t.value,clientId:a.value}),D("onMessage",qe),D("onDisconnected",Ve),D("onReconnecting",_e),D("onConnected",xe),v(),l.value=!1,t.value=null,i.value=[],n.value=[],s.value=null,o.value=null,Y.value=null,A=null,X=null,z=null,G=null,T=null,je=null,$e=null}},Pe=O=>{t.value=O.sessionId,c.value=O.version,s.value=O.color,o.value=O.role||dl,i.value=O.peers||[],l.value=!0,et(),q&&clearInterval(q),q=setInterval(()=>{if(G&&T){const P=G.state.doc.toString();P!==K&&(K=P,Pt.saveBackup(T,P,t.value))}},1e4)},fe=O=>O.toJSON(),dt=O=>It.ChangeSet.fromJSON(O),qe=O=>{switch(O.type){case"updates":gt(O);break;case"peers":jt(O);break;case"cursor":Kt(O);break;case"promoted":Rt(O);break;case"saved":Gt(O);break;case"resync":Tt(O);break;case"error":mt(O);break}},gt=O=>{if(!G&&A&&O.document!==void 0){A(O.document,O.version);return}if(!G)return;const P=O.updates.map(ie=>({changes:dt(ie.changes),clientID:ie.clientID}));try{const ie=Wl.receiveUpdates(G.state,P);G.dispatch(ie),Wl.sendableUpdates(G.state).length>0&&Yt()}catch(ie){console.error("[CollabEditor] Error applying updates:",ie)}},jt=O=>{i.value=O.peers.filter(P=>P.clientId!==a.value),et()},Kt=O=>{if(O.clientId===a.value)return;const P=i.value.find(ie=>ie.clientId===O.clientId);P&&(P.cursorPosition=O.position,P.cursorAnchor=O.anchor,et())},mt=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,me()):O.code==="INVALID_DOCUMENT"?(h.value=!0,me()):O.code==="ACCESS_DENIED"?me():O.code==="INCOMPATIBLE_PROTOCOL"?(Z.value=!0,me()):O.code==="AUTH_FAILED"&&(p.value=!0,me())},Rt=O=>{o.value=_t,c.value=O.version,A&&O.document!==void 0&&A(O.document,O.version)},Gt=O=>{X&&X(O.sessionId),T&&Pt.clearBackup(T),G&&(K=G.state.doc.toString())},Fe=O=>{G?(console.log(`[CollabEditor] Setting editor editable=${O}`),G.dispatch({effects:ee.reconfigure(Le.EditorView.editable.of(O))})):console.warn("[CollabEditor] Cannot toggle editable: editorView is null")},Ve=()=>{if(Fe(!1),G&&T){const O=G.state.doc.toString();Pt.saveBackup(T,O,t.value)}},xe=async()=>{if(!(!l.value||!T)){console.log("[CollabEditor] Reconnected, re-authenticating and re-joining");try{const O=await Dt.getTicket();return await rt(O),new Promise((P,ie)=>{const pe=setTimeout(()=>{D("onMessage",be),ie(new Error("Timeout waiting for welcome after reconnection"))},1e4),be=Ne=>{Ne.type==="welcome"?(clearTimeout(pe),D("onMessage",be),Pe(Ne),z&&z(Ne.document,Ne.version),P()):Ne.type==="error"&&(clearTimeout(pe),D("onMessage",be),console.error("[CollabEditor] Error during reconnection:",Ne.message),ie(new Error(Ne.message)))};x("onMessage",be),C({type:"join",nodeId:T,clientId:a.value,displayName:je,mode:$e,protocolVersion:Do})})}catch(O){console.error("[CollabEditor] Reconnection auth/join failed:",O)}}},_e=(O,P)=>{console.log(`[CollabEditor] Reconnecting in ${P}ms (attempt ${O})`)},Tt=O=>{c.value=O.version,i.value=(O.peers||[]).filter(P=>P.clientId!==a.value),et(),z?z(O.document,O.version):A&&A(O.document,O.version)},kt=()=>{if(!G||!l.value||!ot.value){console.log("[CollabEditor] pushChanges skipped:",G?l.value?"not connected":"collab inactive":"no editorView");return}const O=Wl.sendableUpdates(G.state);if(O.length===0)return;const P=Wl.getSyncedVersion(G.state),ie=O.map(pe=>({clientID:pe.clientID,changes:fe(pe.changes)}));C({type:"push",sessionId:t.value,clientId:a.value,version:P,updates:ie})},Yt=()=>{F&&clearTimeout(F),F=setTimeout(kt,50)};let ml=null;const Bl=(O,P)=>{ml&&clearTimeout(ml),ml=setTimeout(()=>{l.value&&ot.value&&C({type:"cursor",sessionId:t.value,clientId:a.value,position:O,anchor:P})},100)},et=()=>{if(!G)return;const O=i.value.filter(P=>P.cursorPosition!==void 0).map(P=>({clientId:P.clientId,displayName:P.displayName,color:P.color,position:P.cursorPosition,anchor:P.cursorAnchor||P.cursorPosition}));n.value=O,G.dispatch({effects:Vc.of(O)})},Qe=()=>O=>{O.docChanged&&l.value&&Yt()},bl=()=>new Promise((O,P)=>{if(!l.value||!ot.value){P(new Error("Not connected to collaborative session"));return}if(o.value===_t){O({role:_t});return}const ie=setTimeout(()=>{D("onMessage",pe),P(new Error("Timeout waiting for promotion confirmation"))},1e4),pe=be=>{be.type==="promoted"?(clearTimeout(ie),D("onMessage",pe),O(be)):be.type==="error"&&be.context==="promote"&&(clearTimeout(ie),D("onMessage",pe),P(new Error(be.message)))};x("onMessage",pe),C({type:"promote",sessionId:t.value,clientId:a.value})}),El=()=>new Promise((O,P)=>{if(!l.value||!ot.value){P(new Error("Not connected to collaborative session"));return}const ie=setTimeout(()=>{D("onMessage",pe),P(new Error("Timeout waiting for save confirmation"))},1e4),pe=be=>{be.type==="saved"?(clearTimeout(ie),D("onMessage",pe),O(be)):be.type==="error"&&be.context==="save"&&(clearTimeout(ie),D("onMessage",pe),P(new Error(be.message)))};x("onMessage",pe),C({type:"save",sessionId:t.value,clientId:a.value})}),Pl=async()=>{if(!T||!l.value)throw new Error("No active collab session to retry");le();const O=Dt.getWebSocketUrl();await j(O);const P=await Dt.getTicket();return await rt(P),new Promise((ie,pe)=>{const be=setTimeout(()=>{D("onMessage",Ne),pe(new Error("Timeout waiting for welcome after retry"))},1e4),Ne=Ie=>{Ie.type==="welcome"?(clearTimeout(be),D("onMessage",Ne),Pe(Ie),z&&z(Ie.document,Ie.version),ie()):Ie.type==="error"&&(clearTimeout(be),D("onMessage",Ne),pe(new Error(Ie.message)))};x("onMessage",Ne),C({type:"join",nodeId:T,clientId:a.value,displayName:je,mode:$e,protocolVersion:Do})})};return e.onUnmounted(()=>{me()}),{isCollabActive:l,isSessionFull:m,isInvalidDocument:h,isProtocolIncompatible:Z,isAuthExpired:p,permissionLevel:Y,sessionId:t,clientId:a,myColor:s,myRole:o,connectedPeers:i,remoteCursors:n,connectionState:y,lastError:r,startVersion:c,lastCloseCode:I,peerCount:He,isConnected:ot,isConnectionFailed:ae,isReconnecting:Re,isEditor:Xe,isObserver:V,editorCount:H,observerCount:E,hasWritePermission:ce,hasReadPermission:Ge,startCollab:Te,stopCollab:me,setEditorView:ne,getSyncedState:se,createCollabExtensions:Wt,createUpdateListener:Qe,pushChanges:kt,requestSave:El,promoteToEditor:bl,retryConnection:Pl}}const Sc=_.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=re();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 Dt.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 s=this.connectedPeers.find(o=>o.clientId===l);s&&(s.cursorPosition=t,s.cursorAnchor=a)}}}),Jc=_.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}}),xW={class:"codemirror-editor-root"},SW={key:0,class:"consultation-title col"},JW={key:2,class:"collab-indicators flex align-items-center gap-2 ml-3"},UW={class:"collab-status-text text-sm"},HW={key:0,class:"collab-peers flex align-items-center gap-1"},QW={key:0,class:"collab-peer-more text-sm"},BW={key:1,class:"collab-participant-badges flex align-items-center gap-2"},EW={class:"collab-badge collab-badge-editor flex align-items-center gap-1"},PW={class:"text-sm font-medium"},_W={class:"collab-badge collab-badge-observer flex align-items-center gap-1"},KW={class:"text-sm font-medium"},$W={class:"flex gap-2 align-items-center"},qW={class:"flex gap-2 ml-3"},e9={class:"flex gap-2 ml-3"},t9={class:"card editor-wrapper border-1 surface-border border-round overflow-hidden flex flex-column p-0 m-0"},l9={key:0,class:"edit-mode-wrapper flex-grow-1 flex flex-column min-h-0"},a9={key:1,class:"consultation-view flex-grow-1"},o9=300,Uc=J({__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}=ll.useI18n(),s=h2.useToast(),o=Ir.useConfirm(),i=ya(),n=Jc(),c=Sc(),{isCollabActive:r,isSessionFull:m,isAuthExpired:h,connectedPeers:Z,isConnected:p,isReconnecting:Y,peerCount:A,myRole:X,isEditor:z,isObserver:y,editorCount:I,observerCount:j,startVersion:v,startCollab:C,stopCollab:x,setEditorView:D,getSyncedState:le,createCollabExtensions:G,createUpdateListener:T,requestSave:F,promoteToEditor:q,isConnectionFailed:K,lastCloseCode:ee,retryConnection:je}=xc(),$e=()=>window.location.reload(),ne=l,se=e.ref(""),He=e.ref(""),ot=e.ref(null),Re=e.ref(!1),ae=e.ref(!1),Xe=e.ref(n.isSmallScreen?"editor":"split"),V=e.ref(!1),H=e.ref(null),E=e.ref(null),ce=e.ref(null),Ge=e.ref(null),Wt=e.ref(null),rt=e.ref(null),Te=e.shallowRef(null),me=e.shallowRef(null),Pe=e.ref([]),fe=e.ref(!1),dt=e.ref(!1),qe=e.ref(null),gt=e.ref(null),jt=e.ref(!1),Kt=e.ref(0),mt=e.ref(null),Rt=e.ref("");let Gt=null;e.watch(se,N=>{clearTimeout(Gt),Gt=setTimeout(()=>{Rt.value=N},o9)},{immediate:!0}),e.onUnmounted(()=>{clearTimeout(Gt)});const{isMarkdown:Fe,isHtml:Ve,previewBodyHtml:xe,iframeContent:_e}=jo({content:Rt,mimeType:H});function Tt(){return Ge.value||Wt.value||rt.value}function kt(N){N&&(N.srcdoc=_e.value,N._previewInitialized=!1,N.addEventListener("load",()=>{N._previewInitialized=!0},{once:!0}))}e.watch([Ge,Wt,rt],([N,R,$],[oe,ke,el])=>{const wt=N&&N!==oe&&N||R&&R!==ke&&R||$&&$!==el&&$;wt&&kt(wt)}),e.watch(xe,N=>{const R=Tt();!R||!R._previewInitialized||R.contentWindow?.postMessage({type:"preview-update",html:N},"*")});const Yt=e.computed(()=>se.value!==He.value),ml=e.computed(()=>Pe.value&&Pe.value.length>=2),Bl=e.computed(()=>{const N=[{value:"editor",icon:"ri-code-line",label:t("editor.viewMode.editorOnly")}];return n.isSmallScreen||N.push({value:"split",icon:"ri-layout-column-fill",label:t("editor.viewMode.split")}),N.push({value:"preview",icon:"ri-eye-line",label:t("editor.viewMode.previewOnly")}),N}),et=N=>{const R=N?E:ce;if(!R.value)return;const $=zl(H.value),ke=[...Ml({editable:N,showLineNumbers:!0,enableHistory:N,dark:i.dark,lineWrapping:V.value,onUpdate:N?st=>{se.value=st}:null})];$&&(!Array.isArray($)||$.length>0)&&ke.push($);const el=It.EditorState.create({doc:se.value,extensions:ke}),wt=new Le.EditorView({state:el,parent:R.value});N?Te.value=wt:me.value=wt},Qe=N=>{N.value&&(N.value.destroy(),N.value=null)},bl=async N=>{if(!(!N.id&&!N.shareId))try{let R;ne.isSharedLink&&N.shareId?R=await S.getSharedLinkContent(N.shareId):R=await S.getNodeContent(N.id,!1);let $=await R.text();if(N.content?.mimeType==="application/json")try{$=JSON.stringify(JSON.parse($),null,2)}catch(oe){console.warn("Failed to format JSON, displaying raw content:",oe.message)}ne.readOnly||await O(N),se.value=$,He.value=$,H.value=N.content?.mimeType||"text/plain",await e.nextTick(),!ae.value&&!Fe.value&&!Ve.value&&!me.value&&et(!1)}catch(R){console.error("Failed to load content:",R),s.add({severity:"error",summary:t("error.error"),detail:t("editor.loadError"),life:3e3})}},El=async()=>{if(r.value){try{const N=await F();He.value=se.value,N.versionLabel?(s.add({severity:"success",summary:t("success"),detail:t("editor.saveSuccessVersion",{version:N.versionLabel}),life:3e3}),await Ie(ne.contentNode.id)):s.add({severity:"info",detail:t("editor.alreadySaved"),life:3e3})}catch(N){s.add({severity:"error",summary:t("error.error"),detail:N.message,life:4e3})}return}if(Yt.value)try{await S.updateContentNode(ne.contentNode.id,se.value,H.value),He.value=se.value,s.add({severity:"success",summary:t("success"),detail:t("editor.saveSuccess"),life:3e3}),await Ie(ne.contentNode.id)}catch(N){s.add({severity:"error",summary:t("error.error"),detail:N.message,life:4e3})}},Pl=async()=>{try{const N=await Ye.lockNode(ne.contentNode.id,{timeToExpire:0,type:"ALLOW_OWNER_CHANGES",lifetime:"EPHEMERAL"});await O(N.entry),await bl(N.entry)}catch{try{const R=await Ye.getNode(ne.contentNode.id,{include:["properties"]});await O(R.entry)}catch{s.add({severity:"error",summary:t("error.error"),detail:t("editor.refreshError"),life:3e3})}}},O=async N=>{const R=N.properties?.["cm:lockOwner"],$=Ae();R&&R.id!==$.person.id?(Re.value=!0,ot.value=t("node.lockedBy",{name:R.displayName})):(Re.value=!1,ot.value=null)},P=async()=>{if(!r.value)return;await(async()=>{try{Yt.value&&(await F(),He.value=se.value)}catch(oe){s.add({severity:"error",summary:t("error.error"),detail:oe.message,life:4e3});return}await ja();let $=await(await S.getNodeContent(ne.contentNode.id,!1)).text();if(ne.contentNode.content?.mimeType==="application/json")try{$=JSON.stringify(JSON.parse($),null,2)}catch{}se.value=$,He.value=$,ae.value=!1,await Pt.clearBackup(ne.contentNode.id),await Ie(ne.contentNode.id),await $l(ne.contentNode.id)})()},ie=async()=>{if(r.value){await P();return}if(Yt.value)try{await S.updateContentNode(ne.contentNode.id,se.value,H.value),He.value=se.value,s.add({severity:"success",summary:t("success"),detail:t("editor.saveSuccess"),life:3e3})}catch(N){s.add({severity:"error",summary:t("error.error"),detail:N.message,life:4e3});return}ae.value=!1,await Ye.unlockNode(ne.contentNode.id).catch(()=>{}),await Ie(ne.contentNode.id)},pe=()=>{const N=`collab.unavailableDetail.${gt.value}`,R=`collab.unavailableReason.${qe.value}`,$=a(N)?t(N):a(R)?t(R):t("collab.unavailable");s.add({severity:"warn",summary:t("collab.unavailable"),detail:$,life:5e3})},be=async()=>{if(c.enabled&&dt.value){jt.value=!0;try{ae.value=!0,await e.nextTick(),await e.nextTick();let N=0;for(;!Te.value&&N<10;)await e.nextTick(),N++;if(!Te.value)throw new Error("Editor view not created");await So(),r.value?s.add({severity:"success",summary:t("success"),detail:t("collab.connected"),life:3e3}):(ae.value=!1,s.add({severity:"error",summary:t("error.error"),detail:t("collab.initError"),life:4e3}))}catch(N){console.error("Failed to start collaborative editing:",N),ae.value=!1,s.add({severity:"error",summary:t("error.error"),detail:t("collab.initError"),life:4e3})}finally{jt.value=!1}}else await Pl(),Re.value||(ae.value=!0)},Ne=()=>{const N=document.createElement("a");N.href=ne.contentUrl,N.download=ne.contentNode.name,N.click()},Ie=async N=>{if(N)try{const R=await S.listNodeVersionHistory(N);Pe.value=R.list.entries}catch(R){console.error("Error fetching versions:",R)}},bt=()=>{fe.value=!0},_l=async()=>{await bl(ne.contentNode),await Ie(ne.contentNode.id)},Tl=async()=>{try{await navigator.clipboard.writeText(se.value),s.add({severity:"success",detail:t("collab.contentCopied"),life:3e3})}catch{s.add({severity:"error",detail:t("error.error"),life:3e3})}},Kl=async()=>{try{await je()}catch{s.add({severity:"error",detail:t("collab.retryFailed"),life:4e3})}},$t=N=>{r.value&&ae.value&&Yt.value&&(N.preventDefault(),N.returnValue="")},wl=async N=>{if(!N||ne.readOnly){dt.value=!1;return}try{const R=await c.checkAvailability(N);mt.value=R.permissionLevel||"WRITE",Kt.value=R.maxPeers||0,dt.value=R.available===!0&&mt.value!=="NONE",qe.value=!dt.value&&R.enabled&&R.reason||null,gt.value=!dt.value&&R.enabled&&R.details||null}catch(R){console.error("[Collab] Failed to check collab availability:",R),dt.value=!1,mt.value=null}},qt=(N,R)=>{if(!ae.value&&N!==void 0&&(se.value=N,He.value=N,me.value)){const $=me.value.state.update({changes:{from:0,to:me.value.state.doc.length,insert:N}});me.value.dispatch($)}},pt=()=>{He.value=se.value},Oa=async(N,R)=>{if(se.value=N,He.value=N,z.value&&Te.value)await pl(R);else if(me.value){const $=me.value.state.update({changes:{from:0,to:me.value.state.doc.length,insert:N}});me.value.dispatch($)}},$l=async N=>{if(!(!N||ne.readOnly||!c.enabled||!dt.value)&&!r.value)try{const R=Ae(),$=R.person?.displayName||R.person?.id||"User";await C(N,null,$,dl,qt,pt,Oa)}catch(R){console.error("[Collab] Failed to connect as observer:",R)}},So=async()=>{if(!ne.contentNode?.id||!Te.value)throw new Error("Missing node ID or editor view");const N=Ae(),R=N.person?.displayName||N.person?.id||"User";let $,oe;if(r.value&&y.value){const ke=await q();$=ke.version??v.value,oe=ke.document}else{const ke=await C(ne.contentNode.id,null,R,_t,qt,pt,Oa);$=ke.version,oe=ke.document}oe!==void 0&&(se.value=oe,He.value=oe),await pl($),window.addEventListener("beforeunload",$t)},ja=async()=>{window.removeEventListener("beforeunload",$t);try{await x()}catch(N){console.error("Failed to stop collaborative editing:",N)}},pl=async N=>{if(console.log(`[Collab] recreateEditorWithCollab: version=${N}`),!E.value){console.warn("[Collab] recreateEditorWithCollab: no editorContainer, aborting");return}const R=zl(H.value),$=Ml({editable:!1,showLineNumbers:!0,enableHistory:!0,dark:i.dark,lineWrapping:V.value,onUpdate:st=>{se.value=st}}),oe=G(N),ke=Le.EditorView.updateListener.of(T()),el=[...oe,...$,ke];R&&(!Array.isArray(R)||R.length>0)&&el.push(R);const wt=It.EditorState.create({doc:se.value,extensions:el});if(Te.value){const st=Te.value,Ga=st.hasFocus,Ct=st.state.selection.main.head;st.setState(wt);const tl=Math.min(Ct,st.state.doc.length);st.dispatch({selection:{anchor:tl}}),Ga&&st.focus()}else{if(await e.nextTick(),!E.value){console.warn("[Collab] recreateEditorWithCollab: editorContainer lost after nextTick, aborting");return}Te.value=new Le.EditorView({state:wt,parent:E.value})}D(Te.value),console.log("[Collab] recreateEditorWithCollab: editor created with collab extensions")};return c.init(),e.watch(()=>ne.contentNode,async N=>{if(N&&(bl(N),Ie(N.id),!ne.readOnly)){c.loaded||await c.init(),await wl(N.id);const R=await Pt.loadBackup(N.id);R&&R.content&&R.content!==se.value&&o.require({message:t("collab.recoverBackup"),header:t("collab.recoverBackupHeader"),icon:"ri-error-warning-line",group:"confirmUnsavedChanges",accept:async()=>{se.value=R.content,ae.value=!0,await Pt.clearBackup(N.id)},reject:async()=>{await Pt.clearBackup(N.id)}}),await $l(N.id)}},{immediate:!0}),e.watch(ae,async N=>{Qe(Te),Qe(me),await e.nextTick(),N?Xe.value!=="preview"&&et(!0):!Fe.value&&!Ve.value&&et(!1)}),e.watch(Xe,async(N,R)=>{if(!ae.value||!(Fe.value||Ve.value))return;const $=N!=="preview",oe=R!=="preview";let ke=null;r.value&&z.value&&(ke=le()),oe&&Qe(Te),$&&(await e.nextTick(),ke!==null?(se.value=ke.document,await pl(ke.version)):et(!0))}),e.watch(V,async()=>{if(ae.value&&Xe.value!=="preview"&&Te.value){let N=null;r.value&&z.value&&(N=le()),Qe(Te),await e.nextTick(),N!==null?(se.value=N.document,await pl(N.version)):et(!0)}else!ae.value&&!Fe.value&&!Ve.value&&me.value&&(Qe(me),await e.nextTick(),et(!1))}),e.onBeforeUnmount(async()=>{window.removeEventListener("beforeunload",$t),r.value&&await x(),Qe(Te),Qe(me),ae.value&&!Re.value&&!r.value&&Ye.unlockNode(ne.contentNode.id).catch(()=>{})}),(N,R)=>{const $=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock("div",xW,[e.createVNode(e.unref(Da),{class:"consultation-toolbar"},{start:e.withCtx(()=>[l.contentNode?(e.openBlock(),e.createElementBlock("h3",SW,e.toDisplayString(l.contentNode.name),1)):e.createCommentVNode("",!0),N.$route.params.versionId?(e.openBlock(),e.createBlock(e.unref(la),{key:1,class:"tag-version",value:N.$route.params.versionId},null,8,["value"])):e.createCommentVNode("",!0),e.unref(r)?(e.openBlock(),e.createElementBlock("div",JW,[e.createElementVNode("span",{class:e.normalizeClass(["collab-status-dot",{connected:e.unref(p),reconnecting:e.unref(Y)}])},null,2),e.createElementVNode("span",UW,e.toDisplayString(e.unref(p)?N.$t("collab.connected"):N.$t("collab.reconnecting")),1),e.unref(A)>0?(e.openBlock(),e.createElementBlock("div",HW,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Z).slice(0,6),oe=>e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:oe.clientId,class:"collab-peer-avatar",style:e.normalizeStyle({backgroundColor:oe.color})},[e.createTextVNode(e.toDisplayString(oe.displayName.charAt(0).toUpperCase()),1)],4)),[[$,oe.displayName,void 0,{bottom:!0}]])),128)),e.unref(A)>6?(e.openBlock(),e.createElementBlock("span",QW," +"+e.toDisplayString(e.unref(A)-6),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.unref(r)&&e.unref(p)?(e.openBlock(),e.createElementBlock("div",BW,[e.withDirectives((e.openBlock(),e.createElementBlock("div",EW,[R[4]||(R[4]=e.createElementVNode("i",{class:"ri-edit-fill","aria-hidden":"true"},null,-1)),e.createElementVNode("span",PW,e.toDisplayString(e.unref(I)+(e.unref(z)?1:0)),1)])),[[$,N.$t("collab.editorsTooltip"),void 0,{bottom:!0}]]),e.withDirectives((e.openBlock(),e.createElementBlock("div",_W,[R[5]||(R[5]=e.createElementVNode("i",{class:"ri-eye-fill","aria-hidden":"true"},null,-1)),e.createElementVNode("span",KW,e.toDisplayString(e.unref(j)+(e.unref(y)?1:0)),1)])),[[$,N.$t("collab.observersTooltip"),void 0,{bottom:!0}]])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),end:e.withCtx(()=>[e.createElementVNode("div",$W,[ae.value&&(e.unref(Fe)||e.unref(Ve))?(e.openBlock(),e.createBlock(e.unref(yl),{key:0,modelValue:Xe.value,"onUpdate:modelValue":R[0]||(R[0]=oe=>Xe.value=oe),options:Bl.value,"option-value":"value","allow-empty":!1,class:"view-mode-selector"},{option:e.withCtx(oe=>[e.withDirectives(e.createElementVNode("i",{class:e.normalizeClass(oe.option.icon),"aria-hidden":"true"},null,2),[[$,oe.option.label,void 0,{bottom:!0}]])]),_:1},8,["modelValue","options"])):e.createCommentVNode("",!0),!l.readOnly&&!e.unref(m)&&(!dt.value||mt.value==="WRITE")?e.withDirectives((e.openBlock(),e.createBlock(e.unref(L),{key:1,icon:ae.value?"ri-logout-box-line":"ri-pencil-line",severity:ae.value?"warning":qe.value?"secondary":"info",onClick:R[1]||(R[1]=oe=>ae.value?ie():qe.value?pe():be()),disabled:Re.value||jt.value,loading:jt.value,"aria-label":ae.value?N.$t("editor.closeEdit"):N.$t("editor.edit"),raised:""},null,8,["icon","severity","disabled","loading","aria-label"])),[[$,ae.value?N.$t("editor.closeEdit"):qe.value?N.$t("collab.unavailable"):N.$t("editor.edit"),void 0,{bottom:!0}]]):e.createCommentVNode("",!0),ae.value&&!l.readOnly?e.withDirectives((e.openBlock(),e.createBlock(e.unref(L),{key:2,icon:"ri-save-line",severity:"primary",onClick:El,disabled:Re.value||!Yt.value,"aria-label":N.$t("save"),raised:""},null,8,["disabled","aria-label"])),[[$,N.$t("save"),void 0,{bottom:!0}]]):e.createCommentVNode("",!0),R[6]||(R[6]=e.createElementVNode("div",{class:"w-1rem"},[e.createElementVNode("i",{class:"ri-more-2-line","aria-hidden":"true"})],-1)),ae.value&&Xe.value!=="preview"||!ae.value&&!e.unref(Fe)&&!e.unref(Ve)?e.withDirectives((e.openBlock(),e.createBlock(e.unref(L),{key:3,icon:"ri-text-wrap",severity:V.value?"info":"secondary",onClick:R[2]||(R[2]=oe=>V.value=!V.value),"aria-label":N.$t("editor.lineWrap"),raised:""},null,8,["severity","aria-label"])),[[$,N.$t("editor.lineWrap"),void 0,{bottom:!0}]]):e.createCommentVNode("",!0),l.isSharedLink?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createBlock(e.unref(L),{key:4,icon:"ri-layout-column-line",severity:"secondary",onClick:bt,disabled:!ml.value,"aria-label":N.$t("diffViewer.compareTitle"),raised:""},null,8,["disabled","aria-label"])),[[$,N.$t("diffViewer.compareTitle"),void 0,{bottom:!0}]]),e.withDirectives(e.createVNode(e.unref(L),{icon:"ri-download-line",severity:"secondary",onClick:Ne,"aria-label":N.$t("download"),raised:""},null,8,["aria-label"]),[[$,N.$t("download"),void 0,{bottom:!0}]])])]),_:1}),Re.value&&!l.readOnly?(e.openBlock(),e.createBlock(e.unref(it),{key:0,severity:"warn",icon:"ri-lock-line",class:"p-small-message p-0"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ot.value),1)]),_:1})):e.createCommentVNode("",!0),e.unref(m)?(e.openBlock(),e.createBlock(e.unref(it),{key:1,severity:"warn",icon:"ri-group-line",class:"p-small-message px-3 py-0"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("collab.sessionFull"))+" ("+e.toDisplayString(Kt.value)+"/"+e.toDisplayString(Kt.value)+") ",1)]),_:1})):e.createCommentVNode("",!0),e.unref(h)?(e.openBlock(),e.createBlock(e.unref(it),{key:2,severity:"error",icon:"ri-lock-unlock-line",class:"p-small-message px-3 py-0",closable:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("collab.authExpired"))+" ",1),e.createElementVNode("div",qW,[e.createVNode(e.unref(L),{label:N.$t("collab.reload"),icon:"ri-refresh-line",severity:"danger",size:"small",outlined:"","aria-label":N.$t("collab.reload"),onClick:$e},null,8,["label","aria-label"])])]),_:1})):e.createCommentVNode("",!0),e.unref(r)&&e.unref(Y)?(e.openBlock(),e.createBlock(e.unref(it),{key:3,severity:"warn",icon:"ri-wifi-off-line",class:"p-small-message p-0"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("collab.offline")),1)]),_:1})):e.createCommentVNode("",!0),e.unref(r)&&e.unref(K)&&ae.value?(e.openBlock(),e.createBlock(e.unref(it),{key:4,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(ee)===1009?N.$t("collab.messageTooLarge"):N.$t("collab.connectionFailed"))+" ",1),e.createElementVNode("div",e9,[e.createVNode(e.unref(L),{label:N.$t("collab.copyContent"),icon:"ri-clipboard-line",severity:"danger",size:"small",outlined:"","aria-label":N.$t("collab.copyContent"),onClick:Tl},null,8,["label","aria-label"]),e.unref(ee)!==1009?(e.openBlock(),e.createBlock(e.unref(L),{key:0,label:N.$t("collab.retryConnection"),icon:"ri-refresh-line",severity:"danger",size:"small",outlined:"","aria-label":N.$t("collab.retryConnection"),onClick:Kl},null,8,["label","aria-label"])):e.createCommentVNode("",!0)])]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",t9,[ae.value?(e.openBlock(),e.createElementBlock("div",l9,[(e.unref(Fe)||e.unref(Ve))&&Xe.value==="split"?(e.openBlock(),e.createBlock(e.unref(fr),{key:0,class:"flex-grow-1 h-full"},{default:e.withCtx(()=>[e.createVNode(e.unref(Z2),{class:"flex",size:50,"min-size":10},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"editorContainer",ref:E,class:"w-full flex-grow-1"},null,512)]),_:1}),e.createVNode(e.unref(Z2),{class:"flex",size:50,"min-size":10},{default:e.withCtx(()=>[e.createElementVNode("iframe",{ref_key:"splitPreviewIframe",ref:Ge,class:"preview-container w-full flex-grow-1",sandbox:"allow-scripts allow-popups"},null,512)]),_:1})]),_:1})):!e.unref(Fe)&&!e.unref(Ve)||Xe.value==="editor"?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"editorContainer",ref:E,class:"editor-only-container w-full flex-grow-1"},null,512)):Xe.value==="preview"?(e.openBlock(),e.createElementBlock("iframe",{key:2,ref_key:"editPreviewIframe",ref:Wt,class:"preview-iframe w-full flex-grow-1",sandbox:"allow-scripts allow-popups"},null,512)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",a9,[e.unref(Fe)||e.unref(Ve)?(e.openBlock(),e.createElementBlock("iframe",{key:0,ref_key:"consultPreviewIframe",ref:rt,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:ce,class:"consultation-editor-container"},null,512))]))]),e.createVNode(vo,{visible:fe.value,"onUpdate:visible":R[3]||(R[3]=oe=>fe.value=oe),"content-node":l.contentNode,versions:Pe.value,"initial-version-id":N.$route.params.versionId,onRevertVersion:_l},null,8,["visible","content-node","versions","initial-version-id"])])}}},[["__scopeId","data-v-1e3f864c"]]);class s9{async check(){const a=re().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 ht.search(o))?.list?.pagination?.totalItems??0)>0?{ok:!0,detail:"OK"}:{ok:!1,detail:"CONFIG_FOLDER_NOT_FOUND"}}catch(i){return console.error("ConfigHealthService.check failed",i),{ok:!1,detail:"CHECK_FAILED"}}}}const Hc=new s9,i9={class:"font-semibold mb-2"},n9={class:"m-0 line-height-3"},c9={class:"block mt-2 text-sm"},r9={class:"mt-2 mb-0 text-sm"},Qc={__name:"ConfigHealthBanner",setup(l,{expose:t}){const a=it,o=re().INSTANCE_NAME,i=e.ref({ok:!0,detail:""}),n=e.ref(!1),c=e.ref(!1);return e.onMounted(async()=>{n.value=!0;try{i.value=await Hc.check()}finally{n.value=!1,c.value=!0}}),t({health:i,checked:c}),(r,m)=>c.value&&!n.value&&!i.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",i9,[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",n9,e.toDisplayString(r.$t("configHealth.error.description",{instance:e.unref(o)})),1),e.createElementVNode("code",c9," /app:company_home/app:dictionary/cm:pristy-config/cm:"+e.toDisplayString(e.unref(o)),1),e.createElementVNode("p",r9,e.toDisplayString(r.$t("configHealth.error.action")),1)])]),_:1})):e.createCommentVNode("",!0)}},d9="data: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AAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/aAAwDAQACEQMRAD8A+06/ND5wKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACg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LVQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAJj1oAp3umw3QLr8snr6/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=",m9={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"})}}},b9={class:"container"},p9={class:"card custom-card"},u9={class:"text-center custom-title",id:"numError"},Z9={class:"card-img-top w-full",src:d9,alt:"user header"},h9={class:"card-body"},y9={class:"card-text custom-card-title"},W9={class:"card-text custom-card-subtitle"};function g9(l,t,a,s,o,i){const n=e.resolveComponent("Button"),c=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock("div",b9,[e.createElementVNode("div",p9,[e.createElementVNode("h2",u9,e.toDisplayString(a.errorNb),1),e.withDirectives(e.createElementVNode("img",Z9,null,512),[[c,"www.vecteezy.com"]]),e.createElementVNode("div",h9,[e.createElementVNode("p",y9,e.toDisplayString(o.title),1),e.createElementVNode("p",W9,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:i.onClick},null,8,["label","onClick"])])])])}const Ro=J(m9,[["render",g9],["__scopeId","data-v-59d82e13"]]);class Y9{getBaseUrl(){return te.config.hostEcm}async getTicket(){return te.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(),s=await fetch(`${this.getBaseUrl()}/alfresco/s/fr/jeci/pristy/chat/workspace/${t}/room`,{method:"GET",headers:{Accept:"application/json",Authorization:this.createAuthHeader(a)}});return s.ok?await s.json():(console.warn(`[ChatBackendService] Failed to get room for site ${t}:`,s.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(),s=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 s.ok?await s.json():(console.error(`[ChatBackendService] Failed to create room for site ${t}:`,s.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 s=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(s)},body:JSON.stringify({userId:t,token:a})});if(!o.ok){const i=await o.json().catch(()=>({}));throw new Error(i.message||`HTTP ${o.status}`)}return await o.json()}catch(s){throw console.error("[ChatBackendService] Error saving user token:",s),s}}}const Ma=new Y9;class N9{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",s=t.replace(/^https?:\/\//,"").replace(/\/$/,"");return`${a}://${s}/websocket`}async getCredentials(){if(this.credentials)return this.credentials;const t=await Ma.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 ct=new N9;class A9{async request(t,a={}){const s=await ct.getCredentials();if(!s)throw new Error("Not authenticated to Rocket.Chat");const i=`${ct.getServerUrl()}${t}`,n={"Content-Type":"application/json","X-Auth-Token":s.authToken,"X-User-Id":s.userId,...a.headers},c=await fetch(i,{...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 s=new URLSearchParams({roomId:t,count:a.count||50});return a.oldest&&s.append("oldest",a.oldest),a.latest&&s.append("latest",a.latest),(await this.request(`/api/v1/groups.history?${s.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 s of t)s.unread>0&&(a[s.rid]=s.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,s=""){const o=await ct.getCredentials();if(!o)throw new Error("Not authenticated to Rocket.Chat");const i=new FormData;i.append("file",a),s&&i.append("description",s);const n=ct.getServerUrl(),c=await fetch(`${n}/api/v1/rooms.upload/${t}`,{method:"POST",headers:{"X-Auth-Token":o.authToken,"X-User-Id":o.userId},body:i}),r=await c.json();if(!c.ok||r.success===!1)throw new Error(r.error||"Failed to upload file");return r}}const Gl=new A9,X9={reconnectInterval:1e3,maxReconnectInterval:3e4,reconnectDecay:1.5,maxReconnectAttempts:10,heartbeatInterval:25e3,messageBufferSize:100},he={DISCONNECTED:"disconnected",CONNECTING:"connecting",CONNECTED:"connected",AUTHENTICATING:"authenticating",READY:"ready",RECONNECTING:"reconnecting",ERROR:"error"};function Bc(l={}){const t={...X9,...l},a=e.ref(he.DISCONNECTED),s=e.ref(null),o=e.ref(0),i=e.shallowRef([]),n=e.ref(new Set);let c=null,r=null,m=null,h=!1,Z=0,p=new Map;const Y={onConnected:[],onDisconnected:[],onReady:[],onMessage:[],onRoomMessage:[],onTyping:[],onPresence:[],onError:[],onReconnecting:[]},A=(V,H)=>(Y[V]&&Y[V].push(H),()=>X(V,H)),X=(V,H)=>{if(Y[V]){const E=Y[V].indexOf(H);E>-1&&Y[V].splice(E,1)}},z=(V,...H)=>{Y[V]&&Y[V].forEach(E=>E(...H))},y=()=>String(++Z),I=()=>new Promise((V,H)=>{if(c&&c.readyState===WebSocket.OPEN){V();return}const E=ct.getWebSocketUrl();if(!E){const ce=new Error("WebSocket URL not configured");s.value=ce,a.value=he.ERROR,H(ce);return}h=!1,a.value=he.CONNECTING;try{c=new WebSocket(E),c.onopen=()=>{a.value=he.CONNECTED,o.value=0,s.value=null,v({msg:"connect",version:"1",support:["1","pre2","pre1"]}),z("onConnected")},c.onclose=ce=>{se(),a.value=he.DISCONNECTED,!h&&!ce.wasClean&&He(),z("onDisconnected",ce)},c.onerror=ce=>{s.value=ce,a.value=he.ERROR,z("onError",ce),H(ce)},c.onmessage=ce=>{try{const Ge=JSON.parse(ce.data);D(Ge,V,H)}catch(Ge){console.error("[ChatWebSocket] Failed to parse message:",Ge)}}}catch(ce){s.value=ce,a.value=he.ERROR,z("onError",ce),H(ce)}}),j=()=>{h=!0,se(),ot(),c&&(c.close(1e3,"User disconnected"),c=null),a.value=he.DISCONNECTED,i.value=[],n.value=new Set,p.clear()},v=V=>c&&c.readyState===WebSocket.OPEN?(c.send(JSON.stringify(V)),!0):!1,C=V=>v(V)?!0:(i.value.length<t.messageBufferSize?i.value=[...i.value,V]:console.warn("[ChatWebSocket] Message buffer full, dropping message"),!1),x=(V,H=[])=>new Promise((E,ce)=>{const Ge=y();p.set(Ge,{resolve:E,reject:ce}),v({msg:"method",method:V,id:Ge,params:H})||(p.delete(Ge),ce(new Error("WebSocket not connected"))),setTimeout(()=>{p.has(Ge)&&(p.delete(Ge),ce(new Error(`Method ${V} timed out`)))},3e4)}),D=(V,H,E)=>{switch(V.msg){case"connected":ne(),le(H,E);break;case"ping":v({msg:"pong"});break;case"pong":break;case"result":G(V);break;case"ready":break;case"added":case"changed":case"removed":T(V);break;case"error":F(V,E);break;case"failed":console.error("[ChatWebSocket] DDP version negotiation failed"),a.value=he.ERROR,E&&E(new Error("DDP version negotiation failed"));break;default:z("onMessage",V)}},le=async(V,H)=>{a.value=he.AUTHENTICATING;try{const E=await ct.getCredentials();if(!E)throw new Error("No credentials available");const ce=await x("login",[{resume:E.authToken}]);if(ce&&ce.id)a.value=he.READY,Re(),ee(),z("onReady"),V&&V();else throw new Error("Authentication failed")}catch(E){console.error("[ChatWebSocket] Authentication failed:",E),s.value=E,a.value=he.ERROR,z("onError",E),H&&H(E)}},G=V=>{const H=p.get(V.id);H&&(p.delete(V.id),V.error?H.reject(new Error(V.error.message||"Method error")):H.resolve(V.result))},T=V=>{const{collection:H,fields:E}=V;if(H==="stream-room-messages"){if(E&&E.args){const[ce]=E.args;z("onRoomMessage",ce)}}else if(H==="stream-notify-room"){if(E&&E.args){const[ce,...Ge]=E.args;ce==="typing"&&z("onTyping",...Ge)}}else H==="stream-notify-user"&&E&&E.args&&z("onMessage",{type:"user-notification",data:E.args})},F=(V,H)=>{const E=new Error(V.reason||"Unknown error");s.value=E,z("onError",E),H&&H(E)},q=async V=>{if(n.value.has(V))return;const H=y();v({msg:"sub",id:H,name:"stream-room-messages",params:[V,!1]});const E=y();v({msg:"sub",id:E,name:"stream-notify-room",params:[`${V}/typing`,!1]}),n.value=new Set([...n.value,V])},K=V=>{n.value=new Set([...n.value].filter(H=>H!==V))},ee=()=>{const V=[...n.value];n.value=new Set,V.forEach(H=>{q(H)})},je=async(V,H)=>x("sendMessage",[{_id:y(),rid:V,msg:H}]),$e=(V,H,E)=>{v({msg:"method",method:"stream-notify-room",id:y(),params:[`${V}/typing`,H,E]})},ne=()=>{se(),r=setInterval(()=>{c&&c.readyState===WebSocket.OPEN&&v({msg:"ping"})},t.heartbeatInterval)},se=()=>{r&&(clearInterval(r),r=null)},He=()=>{if(o.value>=t.maxReconnectAttempts){console.error("[ChatWebSocket] Max reconnection attempts reached"),a.value=he.ERROR;return}a.value=he.RECONNECTING,o.value++;const V=Math.min(t.reconnectInterval*Math.pow(t.reconnectDecay,o.value-1),t.maxReconnectInterval);z("onReconnecting",o.value,V),m=setTimeout(()=>{h||I().catch(()=>{})},V)},ot=()=>{m&&(clearTimeout(m),m=null)},Re=()=>{if(c&&c.readyState===WebSocket.OPEN&&i.value.length>0){const V=[...i.value];i.value=[],V.forEach(H=>{v(H)})}},ae=()=>a.value===he.READY&&c&&c.readyState===WebSocket.OPEN,Xe=()=>c&&c.readyState===WebSocket.OPEN;return e.onUnmounted(()=>{j()}),{connectionState:e.readonly(a),lastError:e.readonly(s),reconnectAttempts:e.readonly(o),bufferedMessages:e.readonly(i),subscribedRooms:e.readonly(n),connect:I,disconnect:j,isConnected:Xe,isReady:ae,subscribeRoom:q,unsubscribeRoom:K,sendChatMessage:je,sendTyping:$e,callMethod:x,send:C,on:A,off:X}}const Ec=_.defineStore({id:"chat",state:()=>({enabled:!1,loaded:!1,hasCredentials:!1,connectionState:he.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===he.READY,isConnecting:l=>l.connectionState===he.CONNECTING||l.connectionState===he.AUTHENTICATING,isReconnecting:l=>l.connectionState===he.RECONNECTING,isAvailable:l=>l.enabled&&l.loaded&&l.hasCredentials},actions:{async init(){try{const l=re();if(ct.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=ct.isEnabled(),this.enabled){const t=await ct.getCredentials();this.hasCredentials=!!t,this.hasCredentials&&(this.currentUser=await ct.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===he.READY)return!0;try{return this._webSocket=Bc(),this._webSocket.on("onReady",()=>{this.connectionState=he.READY,this.loadRooms(),this.currentRoomId&&this._webSocket.subscribeRoom(this.currentRoomId)}),this._webSocket.on("onDisconnected",()=>{this.connectionState=he.DISCONNECTED}),this._webSocket.on("onReconnecting",l=>{this.connectionState=he.RECONNECTING,console.log("[ChatStore] Reconnecting, attempt:",l)}),this._webSocket.on("onError",l=>{this.lastError=l,this.connectionState=he.ERROR}),this._webSocket.on("onRoomMessage",l=>{this.handleNewMessage(l)}),this._webSocket.on("onTyping",(l,t)=>{this.handleTypingIndicator(l,t)}),this.connectionState=he.CONNECTING,await this._webSocket.connect(),!0}catch(l){return console.error("[ChatStore] Connection failed:",l),this.lastError=l,this.connectionState=he.ERROR,!1}},disconnect(){this._webSocket&&(this._webSocket.disconnect(),this._webSocket=null),this.connectionState=he.DISCONNECTED},async loadRooms(){try{const l=await Gl.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 s=[...await Gl.getMessages(l,{count:t.count||50,oldest:t.oldest,latest:t.latest})].reverse();t.prepend&&this.messagesByRoom[l]?this.messagesByRoom[l]=[...s,...this.messagesByRoom[l]]:this.messagesByRoom[l]=s}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 Gl.sendMessage(this.currentRoomId,l)}catch(t){throw console.error("[ChatStore] Failed to send message:",t),t}},async markAsRead(l){try{await Gl.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(s=>s._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(s=>s!==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 Ma.getWorkspaceRoom(l);return t.found||(t=await Ma.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 Gl.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}}}),z9={name:"ChatMessage",components:{PrimeAvatar:va},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 s=0;s<l.length;s++)t=l.charCodeAt(s)+((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=ct.getServerUrl(),a=l.image_url||l.title_link;return a?a.startsWith("http")?a:`${t}${a}`:""},openAttachment(l){this.$emit("attachment-click",l)}}},M9={key:0,class:"chat-message__avatar"},O9={class:"chat-message__content"},j9={key:0,class:"chat-message__header"},G9={key:0,class:"chat-message__username"},T9={class:"chat-message__time"},w9={class:"chat-message__body"},f9={key:0,class:"chat-message__text"},I9={key:1,class:"chat-message__attachments"},v9=["src","alt","onClick"],L9={key:1,class:"chat-message__attachment-file"},D9=["href"],R9={key:0,class:"attachment-desc"},k9={key:0,class:"chat-message__text mt-2"};function C9(l,t,a,s,o,i){const n=e.resolveComponent("PrimeAvatar");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["chat-message",{"chat-message--own":i.isOwnMessage,"chat-message--system":i.isSystemMessage}])},[!i.isOwnMessage&&!i.isSystemMessage?(e.openBlock(),e.createElementBlock("div",M9,[e.createVNode(n,{label:i.avatarLabel,style:e.normalizeStyle({backgroundColor:i.avatarColor}),shape:"circle"},null,8,["label","style"])])):e.createCommentVNode("",!0),e.createElementVNode("div",O9,[i.isSystemMessage?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",j9,[i.isOwnMessage?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",G9,e.toDisplayString(a.message.u?.name||a.message.u?.username||l.$t("chat.unknownUser")),1)),e.createElementVNode("span",T9,e.toDisplayString(i.formattedTime),1)])),e.createElementVNode("div",w9,[i.hasAttachments?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",f9,e.toDisplayString(a.message.msg),1)),i.hasAttachments?(e.openBlock(),e.createElementBlock("div",I9,[(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"},[i.isImageAttachment(c)?(e.openBlock(),e.createElementBlock("img",{key:0,src:i.getAttachmentUrl(c),alt:c.title||c.description,class:"chat-message__attachment-image",onClick:r=>i.openAttachment(c)},null,8,v9)):(e.openBlock(),e.createElementBlock("div",L9,[t[0]||(t[0]=e.createElementVNode("i",{class:"ri-attachment-line","aria-hidden":"true"},null,-1)),e.createElementVNode("a",{href:i.getAttachmentUrl(c),target:"_blank",rel:"noopener noreferrer"},e.toDisplayString(c.title||l.$t("chat.attachment")),9,D9),c.description?(e.openBlock(),e.createElementBlock("span",R9,e.toDisplayString(c.description),1)):e.createCommentVNode("",!0)]))]))),128)),a.message.msg?(e.openBlock(),e.createElementBlock("div",k9,e.toDisplayString(a.message.msg),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])])],2)}const ko=J(z9,[["render",C9],["__scopeId","data-v-165e03f8"]]),F9={name:"ChatInput",components:{PrimeButton:L,PrimeTextarea:hl},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)}}},V9={class:"chat-input"},x9={class:"chat-input__container"},S9={key:0,class:"chat-input__typing"},J9={class:"typing-text"},U9={key:1,class:"chat-input__files"},H9={class:"file-name"};function Q9(l,t,a,s,o,i){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeTextarea");return e.openBlock(),e.createElementBlock("div",V9,[e.createElementVNode("div",x9,[e.createVNode(n,{type:"button",icon:"ri-attachment-line",text:"",rounded:"",disabled:a.disabled,"aria-label":l.$t("chat.attachFile"),onClick:i.triggerFileInput},null,8,["disabled","aria-label","onClick"]),e.createElementVNode("input",{ref:"fileInput",type:"file",class:"hidden",multiple:"",onChange:t[0]||(t[0]=(...r)=>i.handleFileSelect&&i.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:i.handleKeyDown,onInput:i.handleInput},null,8,["modelValue","placeholder","disabled","onKeydown","onInput"]),e.createVNode(n,{type:"button",icon:"ri-send-plane-2-fill",rounded:"",disabled:a.disabled||!i.canSend,"aria-label":l.$t("chat.send"),onClick:i.sendMessage},null,8,["disabled","aria-label","onClick"])]),a.typingUsers.length>0?(e.openBlock(),e.createElementBlock("div",S9,[t[2]||(t[2]=e.createElementVNode("span",{class:"typing-dots"},[e.createElementVNode("span"),e.createElementVNode("span"),e.createElementVNode("span")],-1)),e.createElementVNode("span",J9,e.toDisplayString(i.typingText),1)])):e.createCommentVNode("",!0),o.selectedFiles.length>0?(e.openBlock(),e.createElementBlock("div",U9,[(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",H9,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=>i.removeFile(m)},null,8,["aria-label","onClick"])]))),128))])):e.createCommentVNode("",!0)])}const Co=J(F9,[["render",Q9],["__scopeId","data-v-fd2ee6de"]]),B9={name:"ChatRoomList",components:{PrimeInputText:we,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,s=this.unreadCounts[t._id]||0;if(a!==s)return s-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)+"..."}}},E9={class:"chat-room-list"},P9={class:"chat-room-list__search"},_9={class:"p-input-icon-left w-full"},K9={class:"chat-room-list__items"},$9=["onClick"],q9={class:"chat-room-item__icon"},e4={class:"chat-room-item__info"},t4={class:"chat-room-item__name"},l4={key:0,class:"chat-room-item__last-message"},a4={key:0,class:"last-message-user"},o4={key:0,class:"chat-room-list__empty"};function s4(l,t,a,s,o,i){const n=e.resolveComponent("PrimeInputText"),c=e.resolveComponent("PrimeBadge");return e.openBlock(),e.createElementBlock("div",E9,[e.createElementVNode("div",P9,[e.createElementVNode("span",_9,[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",K9,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.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=>i.selectRoom(r)},[e.createElementVNode("div",q9,[e.createElementVNode("i",{class:e.normalizeClass(i.getRoomIcon(r)),"aria-hidden":"true"},null,2)]),e.createElementVNode("div",e4,[e.createElementVNode("div",t4,e.toDisplayString(r.fname||r.name),1),r.lastMessage?(e.openBlock(),e.createElementBlock("div",l4,[r.lastMessage.u?(e.openBlock(),e.createElementBlock("span",a4,e.toDisplayString(r.lastMessage.u.name||r.lastMessage.u.username)+": ",1)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(i.truncateMessage(r.lastMessage.msg)),1)])):e.createCommentVNode("",!0)]),i.getUnreadCount(r._id)>0?(e.openBlock(),e.createBlock(c,{key:0,value:i.getUnreadCount(r._id),severity:"danger",class:"chat-room-item__badge"},null,8,["value"])):e.createCommentVNode("",!0)],10,$9))),128)),i.filteredRooms.length===0?(e.openBlock(),e.createElementBlock("div",o4,[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 Fo=J(B9,[["render",s4],["__scopeId","data-v-94df09b1"]]),i4={name:"ChatPanel",components:{PrimeButton:L,PrimeProgressSpinner:Zt,ChatMessage:ko,ChatInput:Co,ChatRoomList:Fo},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(Ec),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()}}},n4={class:"chat-panel__header"},c4={class:"chat-panel__header-left"},r4={class:"chat-panel__title"},d4={class:"chat-panel__header-actions"},m4={class:"chat-panel__body"},b4={key:0,class:"chat-panel__status"},p4={key:0,class:"status-connecting"},u4={key:1,class:"status-reconnecting"},Z4={key:2,class:"status-not-configured"},h4={key:3,class:"status-error"},y4={ref:"messagesContainer",class:"chat-panel__messages"},W4={key:0,class:"chat-panel__load-more"},g4={key:1,class:"chat-panel__empty"};function Y4(l,t,a,s,o,i){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",n4,[e.createElementVNode("div",c4,[a.showRoomList&&i.currentRoom?(e.openBlock(),e.createBlock(n,{key:0,type:"button",icon:"ri-arrow-left-line","aria-label":l.$t("back"),text:"",rounded:"",onClick:i.backToRoomList},null,8,["aria-label","onClick"])):e.createCommentVNode("",!0),e.createElementVNode("h3",r4,e.toDisplayString(i.headerTitle),1)]),e.createElementVNode("div",d4,[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:i.toggleMinimize},null,8,["icon","aria-label","onClick"]),e.createVNode(n,{type:"button",icon:"ri-close-line","aria-label":l.$t("close"),text:"",rounded:"",onClick:i.close},null,8,["aria-label","onClick"])])]),e.withDirectives(e.createElementVNode("div",m4,[l.chatStore.isReady?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.showRoomList&&!i.currentRoom?(e.openBlock(),e.createBlock(r,{key:0,rooms:l.chatStore.rooms,"selected-room-id":l.chatStore.currentRoomId,"unread-counts":l.chatStore.unreadCounts,onSelect:i.selectRoom},null,8,["rooms","selected-room-id","unread-counts","onSelect"])):i.currentRoom?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",y4,[i.canLoadMore?(e.openBlock(),e.createElementBlock("div",W4,[e.createVNode(n,{label:l.$t("chat.loadMore"),text:"",size:"small",loading:o.loadingMore,onClick:i.loadMoreMessages},null,8,["label","loading","onClick"])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.chatStore.currentMessages,Z=>(e.openBlock(),e.createBlock(m,{key:Z._id,message:Z,"current-user-id":i.currentUserId,onAttachmentClick:i.handleAttachmentClick},null,8,["message","current-user-id","onAttachmentClick"]))),128)),l.chatStore.currentMessages.length===0?(e.openBlock(),e.createElementBlock("div",g4,[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:i.sendMessage,onTyping:i.handleTyping,onUpload:i.uploadFile},null,8,["disabled","typing-users","onSend","onTyping","onUpload"])],64)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock("div",b4,[l.chatStore.isConnecting?(e.openBlock(),e.createElementBlock("div",p4,[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",u4,[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",h4,[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:i.reconnect},null,8,["label","onClick"])])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Z4,[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:i.goToProfile},null,8,["label","onClick"])]))]))],512),[[e.vShow,!o.minimized]])],2)}const Pc=J(i4,[["render",Y4],["__scopeId","data-v-96fab464"]]);class N4{getPublicLink(){}createPublicLink(){}}class A4{getLoolUrl(t){let a=`${t}/alfresco/service/lool/host/url`;return ye.get(a).then(s=>s.data).catch(s=>{throw B("getLoolUrl",s)})}getAccessToken(t,a,s){let o=`${t}/alfresco/service/lool/token?nodeRef=workspace://SpacesStore/${a}&action=${s}`,i={headers:{Authorization:`basic ${window.btoa(window.localStorage["ticket-ECM"])}`}};return ye.get(o,i).then(n=>n.data).catch(n=>{throw B("getAccessToken",n)})}}const X4=new A4;class z4{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 M4=new z4;class O4{constructor(){this.previewableByMimeType=new Map}isNativelyPreviewable(t){return t?t.startsWith("image/")||t.startsWith("video/")||t==="application/pdf":!1}async isPreviewable(t){const a=t?.content?.mimeType;if(!a)return!1;if(this.isNativelyPreviewable(a))return!0;if(this.previewableByMimeType.has(a))return this.previewableByMimeType.get(a);try{const i=((await gl.listRenditions(t.id))?.list?.entries??[]).some(n=>n.entry?.id==="pdf");return this.previewableByMimeType.set(a,i),i}catch(s){return console.debug(`isPreviewable: listRenditions failed for ${t.id}: ${s?.message}`),!1}}}const j4=new O4;class G4{getAspects(t={}){return Qa.listAspects(t)}getAspect(t){return Qa.getAspect(t)}getTypes(t={}){return Ba.listTypes(t)}getType(t){return Ba.getType(t)}extractPropertiesFromType(t){const a=[];return t.properties&&Object.entries(t.properties).forEach(([s,o])=>{a.push({key:o.id,title:o.title||s,dataType:o.dataType||"d:text",mandatory:o.mandatory||!1})}),a}extractPropertiesFromAspect(t){const a=[];return t.properties&&Object.entries(t.properties).forEach(([s,o])=>{a.push({key:o.id,title:o.title||s,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 i=await this.getType(o.entry.id);this.extractPropertiesFromType(i.entry).forEach(c=>t.add(c.key))}const s=await this.getAspects({maxItems:1e3});if(s.list?.entries)for(const o of s.list.entries){const i=await this.getAspect(o.entry.id);this.extractPropertiesFromAspect(i.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 T4=new G4;function w4(l,t=""){if(typeof l>"u"||l===null)throw new Error("mandatory parameter "+t)}function Vo(l,t=""){if(typeof l!="string"||t.trim()==="")throw new Error("mandatory parameter "+t)}class _c{alive=!1;hide=!1;code;label;parent}class xo extends _c{groupConfidentiel;constructor({code:t,label:a,parent:s,groupConfidentiel:o,alive:i=!0}){super(),this.code=t,this.label=a,this.parent=s,this.groupConfidentiel=o,this.alive=i}isConfidentiel(){return this.groupConfidentiel&&this.groupConfidentiel.length>0}}class Kc extends _c{constructor({code:t,label:a,parent:s,hide:o=!1}){super(),this.code=t,this.label=a,this.parent=s,this.hide=o}}class f4{app="social";loading=!0;constructor(){this.filingPlans={},this.natures={}}async loadPlanClassement(t){this.loading=!0,Vo(t,"planType");let a=`plan-${t}.json`;console.info(`loading plan ${t}`);const s=`fr/jeci/pristy/config/${this.app}/${a}`;return Al.executeWebScript("GET",s).then(o=>{const i=o.PLAN_CLASSEMENT,n=o.NATURE_DOCUMENT;if(!i)throw new Error(`Missing PLAN_CLASSEMENT in ${a}`);if(!n)throw new Error(`Missing NATURE_DOCUMENT in ${a}`);this.filingPlans[t]=i.map(c=>{let r=new xo(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 Kc(c);return r.alive=!0,r}),this.loading=!1})}getTypeDossier(t,a){return this._findPlan(t,s=>s.code===a)}getTypeDossierFromLabel(t,a){return this._findPlan(t,s=>s.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 mo.getUserGroups(Ae().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(s=>s.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 s=this.getFolderNameFromPath(a);let o=this.getTypeDossierFromLabel(t,s);return o||(o=new xo({label:`${s} - 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 Vo(t,"planType"),this.getFilteredPlan(t).then(a=>a.map(s=>({id:s.id||null,key:s.code,label:s.label,children:[],isFolder:!0,confidentiel:s.isConfidentiel(),icon:"ri-folder-line"})))}}const I4=new f4,v4={install(l,t={}){const a=re(),s=t.init??{...a.oidc.init,...a.OIDC_CUSTOM},o=nd(a,s);typeof t.onAuthLogout=="function"&&o.onSessionLost(()=>{t.onAuthLogout(o)});const i=o.init().then(()=>{if(typeof t.onReady=="function")return t.onReady(o)}).then(()=>{typeof t.onInitSuccess=="function"&&t.onInitSuccess(o.isAuthenticated())}).catch(n=>{const c=new Error("Failure during initialization of the authentication provider");typeof t.onInitError=="function"?t.onInitError(c,n):console.error(c,n)});cd(o,i)}},L4={startsWith:"Commence par",contains:"Contient",notContains:"Ne contient pas",endsWith:"Se termine par",equals:"Égal à",notEquals:"Différent de",noFilter:"Aucun filtre",lt:"Inférieur à",lte:"Inférieur ou égal à",gt:"Supérieur à",gte:"Supérieur ou égal à",dateIs:"La date est",dateIsNot:"La date n'est pas",dateBefore:"Avant le",dateAfter:"Après le",clear:"Effacer",apply:"Appliquer",matchAll:"Correspond à tout",matchAny:"Correspond à n'importe lequel",addRule:"Ajouter une règle",removeRule:"Supprimer la règle",accept:"Oui",reject:"Non",choose:"Choisir",upload:"Envoyer",cancel:"Annuler",completed:"Terminé",pending:"En attente",dayNames:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],dayNamesShort:["dim","lun","mar","mer","jeu","ven","sam"],dayNamesMin:["D","L","M","M","J","V","S"],monthNames:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthNamesShort:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],chooseYear:"Choisir une année",chooseMonth:"Choisir un mois",chooseDate:"Choisir une date",prevDecade:"Décennie précédente",nextDecade:"Décennie suivante",prevYear:"Année précédente",nextYear:"Année suivante",prevMonth:"Mois précédent",nextMonth:"Mois suivant",prevHour:"Heure précédente",nextHour:"Heure suivante",prevMinute:"Minute précédente",nextMinute:"Minute suivante",prevSecond:"Seconde précédente",nextSecond:"Seconde suivante",am:"am",pm:"pm",today:"Aujourd'hui",weekHeader:"Sem",firstDayOfWeek:1,dateFormat:"dd/mm/yy",weak:"Faible",medium:"Moyen",strong:"Fort",passwordPrompt:"Saisissez un mot de passe",emptyFilterMessage:"Aucun résultat trouvé",searchMessage:"{0} résultats disponibles",selectionMessage:"{0} éléments sélectionnés",emptySelectionMessage:"Aucun élément sélectionné",emptySearchMessage:"Aucun résultat trouvé",emptyMessage:"Aucune option disponible",aria:{trueLabel:"Vrai",falseLabel:"Faux",nullLabel:"Non sélectionné",star:"1 étoile",stars:"{star} étoiles",selectAll:"Tous les éléments sélectionnés",unselectAll:"Tous les éléments désélectionnés",close:"Fermer",previous:"Précédent",next:"Suivant",navigation:"Navigation",scrollTop:"Faire défiler vers le haut",moveTop:"Déplacer tout en haut",moveUp:"Déplacer vers le haut",moveDown:"Déplacer vers le bas",moveBottom:"Déplacer tout en bas",moveToTarget:"Déplacer vers la cible",moveToSource:"Déplacer vers la source",moveAllToTarget:"Tout déplacer vers la cible",moveAllToSource:"Tout déplacer vers la source",pageLabel:"Page {page}",firstPageLabel:"Première page",lastPageLabel:"Dernière page",nextPageLabel:"Page suivante",previousPageLabel:"Page précédente",rowsPerPageLabel:"Lignes par page",jumpToPageDropdownLabel:"Aller à la page",jumpToPageInputLabel:"Aller à la page",selectRow:"Ligne sélectionnée",unselectRow:"Ligne désélectionnée",expandRow:"Ligne dépliée",collapseRow:"Ligne repliée",showFilterMenu:"Afficher le menu de filtre",hideFilterMenu:"Masquer le menu de filtre",filterOperator:"Opérateur de filtre",filterConstraint:"Contrainte de filtre",editRow:"Éditer la ligne",saveEdit:"Enregistrer la modification",cancelEdit:"Annuler la modification",listView:"Vue en liste",gridView:"Vue en grille",slide:"Diapositive",slideNumber:"{slideNumber}",zoomImage:"Agrandir l'image",zoomIn:"Zoom avant",zoomOut:"Zoom arrière",rotateRight:"Pivoter à droite",rotateLeft:"Pivoter à gauche"}},D4=_.defineStore({id:"UserPreferencesStore",state:()=>({listView:!0})}),R4={components:{PrimeButton:L,PrimeMessage:it,PrimeDivider:vl,PrimeInputText:we,PrimePassword:Lr},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(){Ae().login(this.email,this.password).then(t=>{if(t===!1)throw new Error(this.$t("emptyPasswordOrUser"));this.$route.query?.target===void 0?this.$router.push({name:"welcome"}):this.$router.replace(this.$route.query.target)}).catch(t=>{this.loginError=!0,this.failLoginMessage=typeof t?.message=="string"&&t.message!==""?t.message:this.$t("unexpectedLoginError")})}},computed:{..._.mapState(re,["SHOW_ACA_LOGIN_LINK","ACA_LINK"])}},k4={class:"surface-0 flex align-items-center justify-content-center min-h-screen min-w-screen overflow-hidden"},C4={class:"grid justify-content-center p-2 lg:p-0 login-grid"},F4={class:"col-12 xl:col-6"},V4={class:"h-full w-full m-0 py-7 px-4 login-card"},x4={class:"text-center mb-5"},S4={class:"text-900 text-3xl font-medium mb-3"},J4={class:"text-600 font-medium"},U4={class:"w-full md:w-10 mx-auto"},H4={for:"email",class:"block text-900 text-xl font-medium mb-2"},Q4={for:"password",class:"block text-900 font-medium text-xl mb-2"},B4={class:"w-full mb-3 flex justify-content-end flex-wrap"};function E4(l,t,a,s,o,i){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",k4,[e.createElementVNode("div",C4,[e.createElementVNode("div",F4,[e.createElementVNode("div",V4,[e.createElementVNode("div",x4,[t[3]||(t[3]=e.createElementVNode("div",{id:"loginLogo",class:"mb-3 inline-block"},null,-1)),e.createElementVNode("div",S4,e.toDisplayString(l.$t("welcome")),1),e.createElementVNode("span",J4,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",U4,[e.createElementVNode("label",H4,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]=Z=>o.email=Z),type:"text",class:"w-full mb-3 p-3",placeholder:l.$t("userID"),onKeyup:e.withKeys(i.login,["enter"])},null,8,["modelValue","placeholder","onKeyup"]),e.createElementVNode("label",Q4,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]=Z=>o.password=Z),placeholder:l.$t("password"),class:"w-full mb-3",inputClass:"w-full p-3",feedback:!1,onKeyup:e.withKeys(i.login,["enter"])},null,8,["modelValue","placeholder","onKeyup"]),e.createElementVNode("div",B4,[e.createElementVNode("a",{"data-testid":"login-page-forgot-password-link",class:"cursor-pointer no-underline hover:underline",onClick:t[2]||(t[2]=(...Z)=>i.goToForgotPasswordPage&&i.goToForgotPasswordPage(...Z))},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:i.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:i.goToACA},null,8,["label","onClick"])],64)):e.createCommentVNode("",!0)])])])])])}const P4=J(R4,[["render",E4],["__scopeId","data-v-a63dc1a7"]]),_4={name:"NotFoundPages",data(){return{errorNb:"404"}},components:{ErrorComponent:Ro}};function K4(l,t,a,s,o,i){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 $4=J(_4,[["render",K4]]),q4="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",eg={name:"ErrorPage",data(){return{id:null}},mounted(){this.id=this.$route.params.id}},tg={"data-testid":"error-page",class:"surface-0 flex align-items-center justify-content-center min-h-screen min-w-screen overflow-hidden"},lg={class:"grid justify-content-center p-2 lg:p-0 error-page"},ag={class:"col-12 xl:col-6"},og={class:"flex justify-content-center h-full w-full m-0 py-7 px-4"},sg={class:"grid flex-column align-items-center"},ig={key:0,"data-testid":"error-page-title",class:"text-900 font-bold text-3xl lg:text-5xl mb-2"},ng={"data-testid":"error-page-message",class:"text-gray-600"};function cg(l,t,a,s,o,i){return e.openBlock(),e.createElementBlock("div",tg,[e.createElementVNode("div",lg,[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:q4,alt:"Pristy logo",class:"mb-5 pristy-logo"})],-1)),e.createElementVNode("div",ag,[e.createElementVNode("div",og,[e.createElementVNode("div",sg,[o.id?(e.openBlock(),e.createElementBlock("h1",ig,e.toDisplayString(l.$t("error",{error:o.id})),1)):e.createCommentVNode("",!0),e.createElementVNode("span",ng,e.toDisplayString(l.$t(`errors.${o.id}`)),1)])])])])])}const rg=J(eg,[["render",cg],["__scopeId","data-v-684dbd8b"]]),dg={class:"oidc-callback flex justify-content-center p-5"},mg={key:1,role:"alert",class:"text-center"},bg=Object.assign({name:"OidcCallback",components:{PrimeProgressSpinner:Zt,PrimeButton:L}},{__name:"OidcCallback",setup(l){const t=Dr.useRouter(),a=Ae(),s=re(),o=e.ref(null);e.onMounted(async()=>{try{const n=await a.completeLogin();await t.replace(n)}catch(n){console.error("OIDC callback failed:",n),o.value=n}});function i(){window.location.replace(`${window.location.origin}${lc(s.BASE_URL)}`)}return(n,c)=>{const r=e.resolveComponent("PrimeProgressSpinner"),m=e.resolveComponent("PrimeButton");return e.openBlock(),e.createElementBlock("div",dg,[o.value===null?(e.openBlock(),e.createBlock(r,{key:0,"aria-label":n.$t("auth.signInProgress")},null,8,["aria-label"])):(e.openBlock(),e.createElementBlock("div",mg,[e.createElementVNode("p",null,e.toDisplayString(n.$t("auth.callbackError")),1),e.createVNode(m,{label:n.$t("auth.retrySignIn"),icon:"ri-refresh-line",onClick:i},null,8,["label"])]))])}}}),pg={install(l){l.component("PaginatorComponent",Pa),l.component("PDFComponent",_a),l.component("PdfSkeleton",ia),l.component("PristyIcon",xl),l.component("TreeExplorer",il),l.component("CopyOrMovePopup",eo),l.component("EllipsisBreadcrumb",ic),l.component("BreadCrumbAlfresco",nc),l.component("ContentTableView",no),l.component("ContentListView",co),l.component("ContentGridView",ro),l.component("DynamicContentView",dc),l.component("ContentFiltersHeader",mc),l.component("ImageViewer",Wo),l.component("VideoPlayer",go),l.component("PreviewPanel",Wc),l.component("CreateWorkflowPopup",bo),l.component("ImportNewVersionPopup",po),l.component("ShareLinkPopup",yo),l.component("MemberListPopup",Zo),l.component("SendMailPopup",ho),l.component("LayoutSelector",Yc),l.component("HelpKeyMessage",Nc),l.component("SelectionStatus",gc),l.component("MemberList",uo),l.component("ActionMenu",Ul),l.component("CustomToastContent",Ac),l.component("UploadTargetInfo",zc),l.component("FolderUpload",Go),l.component("ImportPopupWithWorker",Mc),l.component("UploadStatus",Xc),l.component("AddPairInConfigDialog",Oc),l.component("ConfigDatatable",jc),l.component("ConfigItemEditor",To),l.component("ConfigSplitView",Gc),l.component("ConfigUpload",Tc),l.component("ListVersionConfig",wc),l.component("AddCriterionPopup",ga),l.component("AdvancedSearchPanel",Lc),l.component("AdvancedViewPanel",Dc),l.component("ExactSearch",fo),l.component("FavoriteViewMenu",Rc),l.component("UserViewsFavoritesPanel",Na),l.component("SaveViewPopup",Aa),l.component("PdfToolsComponent",Cc),l.component("CodeMirrorEditor",Uc),l.component("DiffViewerDialog",vo),l.component("ArrayEditor",Wa),l.component("ConfigHealthBanner",Qc),l.component("ErrorComponent",Ro),l.component("ChatPanel",Pc),l.component("ChatMessage",ko),l.component("ChatInput",Co),l.component("ChatRoomList",Fo)}};u.ActionMenu=Ul,u.AddCriterionPopup=ga,u.AddPairInConfigDialog=Oc,u.AdvancedSearchPanel=Lc,u.AdvancedViewPanel=Dc,u.ArrayEditor=Wa,u.BreadCrumbAlfresco=nc,u.ChatConnectionState=he,u.ChatInput=Co,u.ChatMessage=ko,u.ChatPanel=Pc,u.ChatRoomList=Fo,u.CodeMirrorEditor=Uc,u.ConfigDatatable=jc,u.ConfigHealthBanner=Qc,u.ConfigItemEditor=To,u.ConfigSplitView=Gc,u.ConfigUpload=Tc,u.ConnectionState=Ke,u.ContentFiltersHeader=mc,u.ContentGridView=ro,u.ContentListView=co,u.ContentTableView=no,u.CopyOrMovePopup=eo,u.CreateWorkflowPopup=bo,u.CustomToastContent=Ac,u.DEFAULT_PREVIEW_STYLES=Xo,u.DiffViewerDialog=vo,u.DynamicContentView=dc,u.EllipsisBreadcrumb=ic,u.ErrorComponent=Ro,u.ErrorPage=rg,u.ExactSearch=fo,u.FavoriteViewMenu=Rc,u.FolderUpload=Go,u.HelpKeyMessage=Nc,u.ImageViewer=Wo,u.ImportNewVersionPopup=po,u.ImportPopupWithWorker=Mc,u.LayoutSelector=Yc,u.ListVersionConfig=wc,u.LoginPage=P4,u.MemberList=uo,u.MemberListPopup=Zo,u.NatureDocument=Kc,u.NotFoundPages=$4,u.OidcCallback=bg,u.PDFComponent=_a,u.PaginatorComponent=Pa,u.PdfSkeleton=ia,u.PdfToolsComponent=Cc,u.PreviewPanel=Wc,u.PristyIcon=xl,u.ROLE_EDITOR=_t,u.ROLE_OBSERVER=dl,u.SaveViewPopup=Aa,u.SelectionStatus=gc,u.SendMailPopup=ho,u.ShareLinkPopup=yo,u.TreeExplorer=il,u.TypeDossier=xo,u.UploadStatus=Xc,u.UploadTargetInfo=zc,u.UserViewsFavoritesPanel=Na,u.VideoPlayer=go,u.actionsApi=Vr,u.activitiesApi=Hr,u.alfrescoApi=te,u.alfrescoFileService=ze,u.alfrescoModelService=T4,u.alfrescoNodeService=S,u.alfrescoPermissionService=N4,u.aspectsApi=Qa,u.authenticationApi=y2,u.categoriesApi=xr,u.chatBackendService=Ma,u.checkNotNull=w4,u.checkString=Vo,u.collabService=Dt,u.collaboraAccessService=X4,u.commentsApi=Sr,u.componentLibrary=pg,u.configHealthService=Hc,u.configService=Bt,u.contentApi=vt,u.createEditorView=Zc,u.discoveryApi=Qr,u.downloadsApi=Jr,u.errorService=Ut,u.favoriteService=ma,u.favoritesApi=Vl,u.filingPlanService=I4,u.formatService=ba,u.generatePreviewDocument=Oo,u.getBaseExtensions=Ml,u.getLanguageExtension=zl,u.groupsApi=Yl,u.i18n=sl,u.iconeService=cl,u.keyboardShortcutsService=M4,u.menuService=io,u.messages=Qn,u.nodesApi=Ye,u.peopleApi=ol,u.peopleService=mo,u.preferencesApi=Ha,u.previewService=j4,u.primeLocaleFr=L4,u.renderMarkdown=zo,u.renditionsApi=gl,u.rocketChatAuthService=ct,u.rocketChatService=Gl,u.sanitizeHtml=Mo,u.searchApi=ht,u.sharedLinksApi=Nl,u.sitesApi=Ue,u.tagsApi=Ur,u.translationService=cc,u.trashcanApi=Fr,u.typesApi=Ba,u.uploadApi=Ua,u.useChatStore=Ec,u.useChatWebSocket=Bc,u.useCodeMirror=Du,u.useCollabEditor=xc,u.useCollabStore=Sc,u.useCollabWebSocket=Fc,u.useCollaboraStore=_n,u.useConfigStore=re,u.useFavoritesStore=Jl,u.useMarkdownPreview=jo,u.useMenuStore=da,u.useNavigationStore=Be,u.usePaginatorStore=Ea,u.useScreenStore=Jc,u.useSearchStore=Ya,u.useSelectionStore=Me,u.useTaskNotificationStore=ec,u.useThemeStore=ya,u.useUploadStore=nl,u.useUserPreferencesStore=D4,u.useUserStore=Ae,u.useUserViewStore=Lt,u.userViewService=Ot,u.versionsApi=Jt,u.vueKeyCloak=v4,u.webscriptApi=Al,u.workflowService=ra,u.workspaceService=Oe,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})}));
|
|
154
|
+
</html>`}function jo(l={}){const{content:t,mimeType:a,customStyles:s=""}=l,o=e.computed(()=>{const m=a?.value;return m==="text/markdown"||m==="text/x-markdown"||m==="text/x-web-markdown"}),i=e.computed(()=>a?.value==="text/html"),n=e.computed(()=>o.value||i.value),c=e.computed(()=>t?.value?o.value?zo(t.value):i.value?Mo(t.value):"":""),r=e.computed(()=>Oo(c.value,s));return{isMarkdown:o,isHtml:i,shouldRenderPreview:n,previewBodyHtml:c,iframeContent:r,renderMarkdown:zo,sanitizeHtml:Mo,generatePreviewDocument:Oo}}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=re().PRIMEVUE_THEMES_URL,a=document.head,s=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 i=()=>{console.info(`Theme ${l} loaded`)},n=c=>{console.error(`Can’t load theme ${l}`,c)};o.addEventListener("load",i),o.addEventListener("error",n),s&&a.removeChild(s),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)}}}),ku={class:"code-viewer-wrapper"},Cu={key:0,class:"loading-container"},Fu={key:1,class:"error-container"},Vu={key:2},xu=["srcdoc"],Su={name:"PreviewPanel",components:{VideoPlayer:go,ImageViewer:Wo,PDFComponent:_a,PdfSkeleton:ia,CodeMirrorViewer:J({__name:"CodeMirrorViewer",props:{contentNode:{type:Object,required:!0},isSharedLink:{type:Boolean,default:!1}},setup(l){const{t}=ll.useI18n(),a=ya(),s=l,o=e.ref(""),i=e.ref(null),n=e.ref(null),c=e.shallowRef(null),r=e.ref(!1),m=e.ref(null),{isMarkdown:h,isHtml:Z,iframeContent:p}=jo({content:o,mimeType:i}),Y=()=>{if(!n.value)return;const z=zl(i.value),I=[...Ml({editable:!1,showLineNumbers:!0,enableHistory:!1,dark:a.dark})];z&&(!Array.isArray(z)||z.length>0)&&I.push(z);const j=It.EditorState.create({doc:o.value,extensions:I});c.value=new Le.EditorView({state:j,parent:n.value})},A=()=>{c.value&&(c.value.destroy(),c.value=null)},X=async z=>{if(!(!z.id&&!z.shareId)){r.value=!0,m.value=null;try{let y;s.isSharedLink&&z.shareId?y=await S.getSharedLinkContent(z.shareId):y=await S.getNodeContent(z.id,!1);let I=await y.text();if(z.content?.mimeType==="application/json")try{I=JSON.stringify(JSON.parse(I),null,2)}catch(j){console.warn("Failed to format JSON, displaying raw content:",j.message)}o.value=I,i.value=z.content?.mimeType||"text/plain",r.value=!1,await e.nextTick(),!h.value&&!Z.value&&Y()}catch(y){console.error("Failed to load content:",y),m.value=t("editor.loadError"),r.value=!1}}};return e.watch(()=>s.contentNode,z=>{z&&(A(),X(z))},{immediate:!0}),e.onBeforeUnmount(()=>{A()}),(z,y)=>(e.openBlock(),e.createElementBlock("div",ku,[r.value?(e.openBlock(),e.createElementBlock("div",Cu,[e.createVNode(e.unref(Zt))])):m.value?(e.openBlock(),e.createElementBlock("div",Fu,[y[0]||(y[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",Vu,[e.unref(h)||e.unref(Z)?(e.openBlock(),e.createElementBlock("iframe",{key:0,srcdoc:e.unref(p),class:"preview-iframe w-full h-screen",sandbox:"allow-scripts allow-popups"},null,8,xu)):(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"editorContainer",ref:n,class:"h-full w-full"},null,512))]))]))}},[["__scopeId","data-v-2fef27f5"]]),PrimeButton:L,PrimeMessage:it},directives:{tooltip:ut},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,isLoadingPreview:!1,previewError:!1}},computed:{..._.mapState(Be,["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)},retryPreview(){this.currentNodeDisplayed&&this.computeUrl(this.currentNodeDisplayed)},computeUrl(l){this.mimeType=l.content?.mimeType,this.currentFileName=l.name,this.currentFileId=l.id,this.previewError=!1,this.mimeType&&(this.mimeType==="application/pdf"||this.mimeType.includes("image/")||this.mimeType.includes("video/"))?(this.isLoadingPreview=!1,this.url=ze.getContentUrl(l.id)):(this.url=null,this.isLoadingPreview=!0,ze.getRenditionUrl(l.id).then(t=>{this.url=t}).catch(t=>{console.warn(`Preview unavailable for "${l.name}": ${t?.message??t}`),this.previewError=!0}).finally(()=>{this.isLoadingPreview=!1}))}}},Ju=["aria-label"],Uu={class:"card p-1 flex-grow-1 overflow-visible pdfPanel scrollbar-width-none card-max-height"},Hu={key:0,class:"flex p-2 pdfPanelHeader"},Qu={"data-testid":"preview-panel-title",class:"text-xl overflow-hidden custom-ellipsis text-left m-auto w-10"},Bu={class:"flex w-fit ml-2"},Eu={key:1},Pu={key:2},_u={key:3},Ku={key:4},$u={key:5},qu={key:6,class:"previewError"};function e1(l,t,a,s,o,i){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("router-link"),r=e.resolveComponent("ImageViewer"),m=e.resolveComponent("VideoPlayer"),h=e.resolveComponent("CodeMirrorViewer"),Z=e.resolveComponent("PDFComponent"),p=e.resolveComponent("PdfSkeleton"),Y=e.resolveComponent("PrimeMessage"),A=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",Uu,[a.currentNodeDisplayed?(e.openBlock(),e.createElementBlock("div",Hu,[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:i.closeContentPanel},null,8,["aria-label","onClick"]),e.withDirectives((e.openBlock(),e.createElementBlock("div",Qu,[e.createTextVNode(e.toDisplayString(a.currentNodeDisplayed.name),1)])),[[A,a.currentNodeDisplayed.name,void 0,{top:!0}]]),e.createElementVNode("div",Bu,[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]=X=>i.showPreviousFile(l.children))},null,8,["aria-label","disabled"]),[[A,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]=X=>i.showNextFile(l.children))},null,8,["aria-label","disabled"]),[[A,l.$t("nextFile"),void 0,{bottom:!0}]]),e.createVNode(c,{to:i.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",Eu,[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",Pu,[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",_u,[e.createVNode(h,{"content-node":a.currentNodeDisplayed},null,8,["content-node"])])):o.url?(e.openBlock(),e.createElementBlock("div",Ku,[(e.openBlock(),e.createBlock(Z,{key:o.url,ref:"pdfComponent",url:o.url,class:"h-full"},null,8,["url"]))])):o.isLoadingPreview?(e.openBlock(),e.createElementBlock("div",$u,[e.createVNode(p)])):o.previewError?(e.openBlock(),e.createElementBlock("div",qu,[e.createVNode(Y,{severity:"warn",closable:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.$t("pdf.previewError")),1)]),_:1}),e.createVNode(n,{type:"button",severity:"secondary",icon:"ri-refresh-line",label:l.$t("pdf.retry"),onClick:i.retryPreview},null,8,["label","onClick"])])):e.createCommentVNode("",!0)])],10,Ju)):e.createCommentVNode("",!0)}const Wc=J(Su,[["render",e1],["__scopeId","data-v-8d9aebcb"]]),t1={name:"SelectionStatus",components:{PrimeProgressSpinner:Zt},inject:["actionsService"],emits:["resetPageSelection"],computed:{useSelectionStore(){return Me},..._.mapState(Me,["isSelectionRemovalVisible","isCurrentPageFullySelected"]),..._.mapState(Be,["currentNode","loading","pagination","totalRecordNodes"]),hasMoreElements(){return this.totalRecordNodes>=500},hasSelectedNodes(){return Me().nodes.length!==0&&this.pagination&&!this.loading}},methods:{deleteSelection(){Me().resetSelection(),Me().setIsCurrentPageFullySelected(!1),Me().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&&Me().selectNodes(a),Me().setIsCurrentPageFullySelected(!1),Me().setIsSelectionRemovalVisible(!0)})}}},l1={class:"align mb-1 flex-grow-1"},a1={key:1,class:"nbrOfSearchResult"},o1={key:2,class:"nbrOfSearchResult"},s1={key:3,class:"selectOrDeleteDiv"},i1={class:"ml-2 flex"},n1={key:4,class:"selectOrDeleteDiv"},c1={class:"ml-2 flex"};function r1(l,t,a,s,o,i){const n=e.resolveComponent("PrimeProgressSpinner");return e.openBlock(),e.createElementBlock("div",l1,[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&&!i.hasSelectedNodes?(e.openBlock(),e.createElementBlock("div",a1,e.toDisplayString(l.$t("howMuchResult",{nbrEntries:l.pagination.count,totalEntries:l.pagination.totalItems})),1)):i.hasSelectedNodes&&!l.isCurrentPageFullySelected&&!l.isSelectionRemovalVisible?(e.openBlock(),e.createElementBlock("div",o1,e.toDisplayString(l.$t("howMuchSelected",{nbrEntries:i.useSelectionStore().nodes.length,totalEntries:l.pagination.totalItems})),1)):i.hasSelectedNodes&&l.isCurrentPageFullySelected?(e.openBlock(),e.createElementBlock("div",s1,[e.createElementVNode("span",i1,[e.createTextVNode(e.toDisplayString(l.$t("howMuchSelected",{nbrEntries:i.useSelectionStore().nodes.length,totalEntries:l.pagination.totalItems}))+" ",1),i.hasMoreElements?(e.openBlock(),e.createElementBlock("button",{key:0,class:"font-bold cursor-pointer ml-2 p-link",onClick:t[0]||(t[0]=c=>i.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=>i.selectAllNodes())},e.toDisplayString(l.$t("selectAllElement",{totalEntries:l.pagination.totalItems})),1))])])):i.hasSelectedNodes&&l.isSelectionRemovalVisible?(e.openBlock(),e.createElementBlock("div",n1,[e.createElementVNode("span",c1,[e.createTextVNode(e.toDisplayString(l.$t("howMuchSelected",{nbrEntries:i.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=>i.deleteSelection())},e.toDisplayString(l.$t("deleteSelection")),1)])])):e.createCommentVNode("",!0)])}const gc=J(t1,[["render",r1]]),d1={name:"LayoutSelector",components:{PrimeSelectButton:yl},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}}},m1=["aria-label"],b1={class:"sr-only"};function p1(l,t,a,s,o,i){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:i.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",b1,e.toDisplayString(i.getOptionLabel(c)),1)]),_:1},8,["modelValue","options","onChange","aria-label"])],8,m1)}const Yc=J(d1,[["render",p1],["__scopeId","data-v-933501bb"]]),u1={name:"HelpKeyMessage",components:{PrimeMessage:it},props:{helpKey:{type:Boolean,default:!1}},emits:["set-help-hey"],methods:{changeHelpKey(){this.$emit("set-help-hey",!1)}}};function Z1(l,t,a,s,o,i){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:i.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 Nc=J(u1,[["render",Z1],["__scopeId","data-v-3439a6f6"]]),h1={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"}}}},y1={class:"flex w-full gap-1"},W1={class:"flex flex-column flex-grow-1 gap-1"},g1={class:"text-base font-bold"},Y1={class:"text-base"},N1=["href"],A1={key:1};function X1(l,t,a,s,o,i){return e.openBlock(),e.createElementBlock("div",y1,[e.createElementVNode("i",{class:e.normalizeClass([i.iconClass,"mr-2 text-2xl"]),"aria-hidden":"true"},null,2),e.createElementVNode("div",W1,[e.createElementVNode("div",g1,e.toDisplayString(a.summary),1),e.createElementVNode("div",Y1,[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,N1),e.createTextVNode(" "+e.toDisplayString(a.messageAfterLink),1)],64)):(e.openBlock(),e.createElementBlock("div",A1,e.toDisplayString(a.message),1))])])])}const Ac=J(h1,[["render",X1]]),z1={name:"UploadStatus",components:{PrimeKnob:jr},emits:["openFile"],data(){return{isReduced:!1}},computed:{..._.mapState(nl,["files","isUploading","overallMessage","activeRequests"])},methods:{..._.mapActions(nl,["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)}}},M1={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"},O1={class:"flex justify-content-between align-items-center"},j1={key:0,class:"file-list"},G1={class:"flex flex-column pr-1"},T1=["onClick"],w1={key:1,class:"file-name"},f1={key:2,class:"error-message text-xs"},I1={class:"status-container"},v1={key:1};function L1(l,t,a,s,o,i){const n=e.resolveComponent("Button"),c=e.resolveComponent("PrimeKnob");return l.files.length>0?(e.openBlock(),e.createElementBlock("div",M1,[e.createElementVNode("div",O1,[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:i.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",j1,[(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",G1,[r.status==="success"?(e.openBlock(),e.createElementBlock("a",{key:0,class:"file-name cursor-pointer",onClick:m=>i.openFile(r)},e.toDisplayString(r.name),9,T1)):(e.openBlock(),e.createElementBlock("span",w1,e.toDisplayString(r.name),1)),r.status==="error"?(e.openBlock(),e.createElementBlock("p",f1,e.toDisplayString(r.message),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",I1,[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",v1,e.toDisplayString(l.$t("canceledImport")),1)):(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass(`${i.iconForStatus(r.status)}`),style:e.normalizeStyle(i.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=>i.cancelFileUpload(r.name),"aria-label":"Annuler",class:"cancel-btn"},null,8,["onClick"])):e.createCommentVNode("",!0)])]))),128))]))])):e.createCommentVNode("",!0)}const Xc=J(z1,[["render",L1],["__scopeId","data-v-a3067d5a"]]),D1={name:"UploadTargetInfo",computed:{..._.mapState(Be,["currentNode","workspace"])}},R1={class:"overlay-content"},k1={class:"text-xl font-bold"},C1={class:"mt-2 text-color-secondary"};function F1(l,t,a,s,o,i){return e.openBlock(),e.createElementBlock("div",R1,[t[0]||(t[0]=e.createElementVNode("i",{class:"ri-upload-cloud-line text-8xl","aria-hidden":"true"},null,-1)),e.createElementVNode("span",k1,e.toDisplayString(l.$t("dropFileFolders")),1),e.createElementVNode("div",C1,e.toDisplayString(l.currentNode?.name==="documentLibrary"?l.workspace?.title||l.workspace?.id:l.currentNode?.name||l.$t("currentFolder")),1)])}const zc=J(D1,[["render",F1],["__scopeId","data-v-b32d0624"]]),V1={name:"FolderUpload",data(){return{isDraggingOver:!1}},emits:["close"],methods:{..._.mapActions(nl,["startUpload"]),closePopup(){this.$emit("close",!1)},handleFolderSelect(l){const a=Array.from(l.target.files).map(s=>({file:s,relativePath:s.webkitRelativePath}));this.processFiles(a)},processFiles(l){const t=Be().currentNode.id;this.startUpload(l,t),this.closePopup()},async handleDrop(l){this.isDraggingOver=!1;const t=l.dataTransfer.items,a=[],s=[],o=async i=>{if(i.isFile)return new Promise(n=>i.file(c=>{const r=i.fullPath.startsWith("/")?i.fullPath.substring(1):i.fullPath;a.push({file:c,relativePath:r}),n()}));if(i.isDirectory){const n=i.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 i of t){const n=i.webkitGetAsEntry();n&&s.push(o(n))}await Promise.all(s),a.length>0&&this.processFiles(a)},triggerFileInput(){this.$refs.fileInput.click()},handleDragOver(){this.isDraggingOver=!0},handleDragLeave(){this.isDraggingOver=!1}}},x1={class:"p-4 max-w-xl mx-auto p-fileupload p-fileupload-advanced p-component"},S1={class:"p-fileupload-buttonbar"};function J1(l,t,a,s,o,i){const n=e.resolveComponent("Button");return e.openBlock(),e.createElementBlock("div",x1,[e.createElementVNode("div",S1,[e.createVNode(n,{class:"w-full",label:l.$t("selectFolder"),onClick:i.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)=>i.handleDragOver&&i.handleDragOver(...c),["prevent"])),onDragleave:t[1]||(t[1]=e.withModifiers((...c)=>i.handleDragLeave&&i.handleDragLeave(...c),["prevent"])),onDrop:t[2]||(t[2]=e.withModifiers(c=>i.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=>i.handleFolderSelect(c)),ref:"fileInput",class:"hidden"},null,544)])}const Go=J(V1,[["render",J1],["__scopeId","data-v-f2b573ce"]]),U1={name:"ImportPopupWithWorker",components:{FolderUpload:Go},props:{node:{type:Object,required:!0},importType:{type:String,default:"file"},forcedPlanName:{type:String,default:null}},emits:["close","upload-with-plan"],computed:{..._.mapState(nl,["isUploading"])},methods:{..._.mapActions(nl,["startUpload"]),closePopup(){this.$emit("close",!1)},handleUpload(l){const t=l.files;if(!t||t.length===0)return;if(this.forcedPlanName){const s=t.map(o=>new File([o],o.name,{type:o.type}));this.$emit("upload-with-plan",{files:s,planName:this.forcedPlanName}),this.closePopup();return}const a=t.map(s=>({file:new File([s],s.name,{type:s.type}),relativePath:""}));this.startUpload(a,this.node.id),this.closePopup()}}},H1={key:0},Q1={key:1};function B1(l,t,a,s,o,i){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(i.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:i.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:i.closePopup,severity:"secondary"},null,8,["label","onClick"])]),default:e.withCtx(()=>[a.importType==="file"?(e.openBlock(),e.createElementBlock("div",H1,[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:i.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",Q1,[e.createVNode(r,{"data-testid":"import-popup-with-worker-folder-upload",onClose:i.closePopup},null,8,["onClose"])])):e.createCommentVNode("",!0)]),_:1},8,["header","onKeyup"])}const Mc=J(U1,[["render",B1]]);class E1{getConfig(t,a){const s=`fr/jeci/pristy/config/${t}/${a}`;return Al.executeWebScript("GET",s)}updateConfig(t,a,s){const o=`fr/jeci/pristy/config/${t}/${a}`;return Al.executeWebScript("PUT",o,null,null,null,s)}validateValueByType(t,a){if(a==="number"&&(isNaN(parseFloat(t))||!isFinite(t)))return this.$t("config.errors.invalidNumber");if(a==="boolean"){const s=String(t).toLowerCase();if(s!=="true"&&s!=="false")return this.$t("config.errors.invalidBoolean")}if(a==="array"||a==="object")try{const s=JSON.parse(t),o=Array.isArray(s)?"array":typeof s;if(a==="array"&&o!=="array"||a==="object"&&o!=="object")return this.$t("config.errors.typeMismatch",{type:a})}catch{return null}return null}}const Bt=new E1,P1={name:"AddPairInConfigDialog",components:{PrimeDialog:Je,PrimeButton:L,PrimeInputText:we,PrimeDropdown:At},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=Bt.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))}}},_1={class:"field"},K1={for:"newKey"},$1={key:0,class:"p-error"},q1={class:"field"},eZ={for:"newType"},tZ={class:"field"},lZ={for:"newValue"},aZ={key:0,class:"p-error"};function oZ(l,t,a,s,o,i){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:i.submit,autofocus:""},null,8,["label","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("div",_1,[e.createElementVNode("label",K1,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",$1,e.toDisplayString(o.errors.key),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",q1,[e.createElementVNode("label",eZ,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",tZ,[e.createElementVNode("label",lZ,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",aZ,e.toDisplayString(o.errors.value),1)):e.createCommentVNode("",!0)])]),_:1},8,["header","visible"])}const Oc=J(P1,[["render",oZ]]),sZ={class:"array-editor"},iZ=["aria-label"],nZ={key:1,class:"object-item"},cZ={key:0},rZ={key:0},dZ={key:1,class:"object-summary"},mZ={class:"summary-item"},bZ={key:0,class:"summary-item"},pZ={key:1,class:"summary-item"},uZ={class:"summary-item"},ZZ={key:1},hZ={class:"action-buttons"},Wa=J({__name:"ArrayEditor",props:{modelValue:{type:Array,required:!0},isMetadata:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(l,{emit:t}){const a=l,s=t,o=e.ref(JSON.parse(JSON.stringify(a.modelValue))),i=["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,C=>{o.value=JSON.parse(JSON.stringify(C))},{deep:!0});const m=C=>{const x=typeof C;return x==="string"||x==="number"||x==="boolean"},h=C=>typeof C=="object"&&C!==null,Z=(C,x)=>{o.value[C]=x,s("update:modelValue",o.value)},p=(C,x,D)=>{o.value[C][x]=D,s("update:modelValue",o.value)},Y=C=>{o.value.splice(C,1),s("update:modelValue",o.value)},A=()=>{if(a.isMetadata){const C={...r,order:o.value.length+1};o.value.push(C)}else if(o.value.length>0){const C=o.value[0],x=typeof C;x==="string"?o.value.push(""):x==="number"?o.value.push(0):x==="object"&&C!==null?o.value.push(JSON.parse(JSON.stringify(C))):o.value.push("")}else o.value.push("");s("update:modelValue",o.value)},X=C=>{const x=o.value[C];o.value[C]={...r,...x},c.value=C},z=()=>{c.value=null,s("update:modelValue",o.value)},y=C=>{const x=JSON.parse(JSON.stringify(o.value[C]));o.value.splice(C+1,0,x),o.value.forEach((D,le)=>{h(D)&&Object.prototype.hasOwnProperty.call(D,"order")&&(D.order=le+1)}),s("update:modelValue",o.value)},I=(C,x)=>{const D=C+x;if(D<0||D>=o.value.length)return;const le=o.value.splice(C,1)[0];o.value.splice(D,0,le),o.value.forEach((G,T)=>{h(G)&&Object.prototype.hasOwnProperty.call(G,"order")&&(G.order=T+1)}),s("update:modelValue",o.value)},j=()=>{o.value.forEach((C,x)=>{h(C)&&Object.prototype.hasOwnProperty.call(C,"order")&&(C.order=x+1)}),s("update:modelValue",o.value)},v=C=>{if(!a.isMetadata)return"transparent";const x=C.modelAspect||C.modelType;if(!x)return"transparent";let D=0;for(let G=0;G<x.length;G++)D=x.charCodeAt(G)+((D<<5)-D);return`hsl(${D%360}, 70%, 90%)`};return(C,x)=>(e.openBlock(),e.createElementBlock("div",sZ,[e.createVNode(e.unref(b2.VueDraggableNext),{modelValue:o.value,"onUpdate:modelValue":x[1]||(x[1]=D=>o.value=D),"ghost-class":"ghost",handle:".drag-handle","item-key":"index",onEnd:j},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(D,le)=>(e.openBlock(),e.createElementBlock("div",{key:le,class:"array-item",style:e.normalizeStyle({backgroundColor:v(D)})},[e.createElementVNode("button",{class:"drag-handle","aria-label":C.$t("config.arrayEditor.reorder")},[...x[2]||(x[2]=[e.createElementVNode("i",{class:"ri-draggable","aria-hidden":"true"},null,-1)])],8,iZ),m(D)?(e.openBlock(),e.createBlock(e.unref(we),{key:0,"model-value":D,"onUpdate:modelValue":G=>Z(le,G),class:"p-inputtext-sm"},null,8,["model-value","onUpdate:modelValue"])):(e.openBlock(),e.createElementBlock("div",nZ,[l.isMetadata?(e.openBlock(),e.createElementBlock("div",cZ,[c.value===le?(e.openBlock(),e.createElementBlock("div",rZ,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(r),G=>(e.openBlock(),e.createElementBlock("div",{key:G,class:"object-property"},[e.createElementVNode("label",null,e.toDisplayString(G),1),G==="input"?(e.openBlock(),e.createBlock(e.unref(At),{key:0,"model-value":D[G],"onUpdate:modelValue":T=>p(le,G,T),options:i,class:"p-inputtext-sm"},null,8,["model-value","onUpdate:modelValue"])):G==="display"?(e.openBlock(),e.createBlock(e.unref(Gr),{key:1,"model-value":D[G],"onUpdate:modelValue":T=>p(le,G,T),options:n,class:"p-inputtext-sm"},null,8,["model-value","onUpdate:modelValue"])):G==="readOnly"?(e.openBlock(),e.createBlock(e.unref(Sa),{key:2,"model-value":D[G],"onUpdate:modelValue":T=>p(le,G,T)},null,8,["model-value","onUpdate:modelValue"])):(e.openBlock(),e.createBlock(e.unref(we),{key:3,"model-value":D[G],"onUpdate:modelValue":T=>p(le,G,T),class:"p-inputtext-sm"},null,8,["model-value","onUpdate:modelValue"]))]))),128))])):(e.openBlock(),e.createElementBlock("div",dZ,[e.createElementVNode("div",mZ,[x[3]||(x[3]=e.createElementVNode("strong",null,"ID:",-1)),e.createTextVNode(" "+e.toDisplayString(D.id),1)]),D.title?(e.openBlock(),e.createElementBlock("div",bZ,[x[4]||(x[4]=e.createElementVNode("strong",null,"Title:",-1)),e.createTextVNode(" "+e.toDisplayString(D.title),1)])):e.createCommentVNode("",!0),D.labelId?(e.openBlock(),e.createElementBlock("div",pZ,[x[5]||(x[5]=e.createElementVNode("strong",null,"Label ID:",-1)),e.createTextVNode(" "+e.toDisplayString(D.labelId),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",uZ,[x[6]||(x[6]=e.createElementVNode("strong",null,"Input:",-1)),e.createTextVNode(" "+e.toDisplayString(D.input),1)])]))])):(e.openBlock(),e.createElementBlock("div",ZZ,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D,(G,T)=>(e.openBlock(),e.createElementBlock("div",{key:T,class:"object-property"},[e.createElementVNode("label",null,e.toDisplayString(T),1),e.createVNode(e.unref(we),{"model-value":G,"onUpdate:modelValue":F=>p(le,T,F),class:"p-inputtext-sm"},null,8,["model-value","onUpdate:modelValue"])]))),128))]))])),e.createElementVNode("div",hZ,[l.isMetadata&&c.value!==le?(e.openBlock(),e.createBlock(e.unref(L),{key:0,icon:"ri-pencil-line","aria-label":C.$t("modify"),class:"p-button-secondary p-button-sm",onClick:G=>X(le)},null,8,["aria-label","onClick"])):e.createCommentVNode("",!0),l.isMetadata&&c.value===le?(e.openBlock(),e.createBlock(e.unref(L),{key:1,icon:"ri-check-line","aria-label":C.$t("save"),class:"p-button-success p-button-sm",onClick:x[0]||(x[0]=G=>z())},null,8,["aria-label"])):e.createCommentVNode("",!0),l.isMetadata?(e.openBlock(),e.createBlock(e.unref(L),{key:2,icon:"ri-arrow-up-line","aria-label":C.$t("moveUp"),class:"p-button-secondary p-button-sm",onClick:G=>I(le,-1),disabled:le===0},null,8,["aria-label","onClick","disabled"])):e.createCommentVNode("",!0),l.isMetadata?(e.openBlock(),e.createBlock(e.unref(L),{key:3,icon:"ri-arrow-down-line","aria-label":C.$t("moveDown"),class:"p-button-secondary p-button-sm",onClick:G=>I(le,1),disabled:le===o.value.length-1},null,8,["aria-label","onClick","disabled"])):e.createCommentVNode("",!0),l.isMetadata?(e.openBlock(),e.createBlock(e.unref(L),{key:4,icon:"ri-file-copy-line","aria-label":C.$t("duplicate"),class:"p-button-secondary p-button-sm",onClick:G=>y(le)},null,8,["aria-label","onClick"])):e.createCommentVNode("",!0),e.createVNode(e.unref(L),{icon:"ri-delete-bin-line","aria-label":C.$t("delete"),class:"p-button-danger p-button-sm",onClick:G=>Y(le)},null,8,["aria-label","onClick"])])],4))),128))]),_:1},8,["modelValue"]),e.createVNode(e.unref(L),{label:C.$t("config.arrayEditor.addItem"),icon:"ri-add-line",class:"p-button-sm p-button-secondary mt-2",onClick:A},null,8,["label"])]))}},[["__scopeId","data-v-63991436"]]),yZ={class:"config-cards-container"},WZ={class:"card-title-wrapper"},gZ={class:"type-badge ml-2"},YZ={class:"title-buttons"},NZ={key:0,class:"description"},AZ={key:1,class:"undefined-container"},XZ={class:"help-text"},zZ={key:2,class:"editor-container"},MZ={key:3},jc=J({__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,s=t,o=e.ref(a.configData.reduce((h,Z)=>(Z.type==="array"&&(h[Z.key]=!1),h),{})),i=h=>{o.value[h]=!o.value[h]},n=(h,Z)=>{const p=a.configData.map(Y=>Y.key===h?{...Y,value:Z}:Y);s("update:config",p)},c=h=>{const Z=a.configData.map(p=>p.key===h?{...p,isDefined:!0}:p);s("update:config",Z)},r=h=>{const Z=a.configData.map(p=>{if(p.key===h){const Y=a.descriptions[h]?.default;return{...p,isDefined:!1,value:Y}}return p});s("update:config",Z)},m=e.computed(()=>[...a.configData].sort((h,Z)=>h.key.localeCompare(Z.key)));return(h,Z)=>(e.openBlock(),e.createElementBlock("div",yZ,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,p=>(e.openBlock(),e.createBlock(e.unref(m2),{key:p.key,class:"config-card"},{title:e.withCtx(()=>[e.createElementVNode("div",WZ,[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(p.key)+" ",1),e.createElementVNode("small",gZ,e.toDisplayString(h.$t(`config.types.${p.type}`)),1)]),e.createElementVNode("div",YZ,[p.type==="array"&&p.isDefined?(e.openBlock(),e.createBlock(e.unref(L),{key:0,icon:o.value[p.key]?"ri-close-large-line":"ri-add-large-line",class:"p-button-text p-button","aria-label":o.value[p.key]?h.$t("config.buttons.collapse"):h.$t("config.buttons.expand"),onClick:Y=>i(p.key)},null,8,["icon","aria-label","onClick"])):e.createCommentVNode("",!0),p.isDefined?(e.openBlock(),e.createBlock(e.unref(L),{key:1,icon:"ri-delete-bin-line",severity:"danger","aria-label":h.$t("config.buttons.undefine"),class:"p-button-sm",onClick:Y=>r(p.key)},null,8,["aria-label","onClick"])):e.createCommentVNode("",!0)])])]),content:e.withCtx(()=>[l.descriptions[p.key]?.descriptionKey?(e.openBlock(),e.createElementBlock("p",NZ,e.toDisplayString(h.$t(l.descriptions[p.key].descriptionKey)),1)):e.createCommentVNode("",!0),p.isDefined?e.withDirectives((e.openBlock(),e.createElementBlock("div",zZ,[p.type==="boolean"?(e.openBlock(),e.createBlock(e.unref(Sa),{key:0,"model-value":p.value,"onUpdate:modelValue":Y=>n(p.key,Y)},null,8,["model-value","onUpdate:modelValue"])):p.type==="array"?(e.openBlock(),e.createBlock(Wa,{key:1,"is-metadata":p.key==="METADATA","model-value":p.value,"onUpdate:modelValue":Y=>n(p.key,Y)},null,8,["is-metadata","model-value","onUpdate:modelValue"])):p.type==="string"||p.type==="number"?(e.openBlock(),e.createBlock(e.unref(we),{key:2,"model-value":p.value,class:"w-full","onUpdate:modelValue":Y=>n(p.key,Y)},null,8,["model-value","onUpdate:modelValue"])):p.type==="object"?(e.openBlock(),e.createElementBlock("pre",MZ,e.toDisplayString(p.value),1)):e.createCommentVNode("",!0)],512)),[[e.vShow,p.type!=="array"||o.value[p.key]]]):(e.openBlock(),e.createElementBlock("div",AZ,[e.createVNode(e.unref(L),{label:h.$t("config.buttons.define"),icon:"ri-add-line",class:"p-button-outlined",onClick:Y=>c(p.key)},null,8,["label","onClick"]),e.createElementVNode("small",XZ,e.toDisplayString(h.$t("config.notDefined")),1)]))]),_:2},1024))),128))]))}},[["__scopeId","data-v-810371d5"]]),OZ={class:"config-item-editor"},jZ={class:"editor-header"},GZ={class:"config-key"},TZ={class:"type-badge"},wZ={key:0,class:"config-description"},fZ={class:"definition-actions"},IZ={key:0,class:"undefined-container"},vZ={class:"help-text"},LZ={key:1,class:"defined-actions"},DZ={key:1,class:"editor-content"},RZ={key:0,class:"editor-field"},kZ={key:1,class:"editor-field"},CZ={key:2,class:"editor-field"},FZ={key:3,class:"editor-field editor-field-array"},VZ={key:4,class:"editor-field"},xZ={class:"object-display"},SZ={key:2,class:"default-hint"},To=J({__name:"ConfigItemEditor",props:{item:{type:Object,required:!0},description:{type:Object,default:()=>({})}},emits:["update:value","define","undefine"],setup(l,{emit:t}){const a=t,s=c=>{a("update:value",c)},o=()=>{a("define")},i=()=>{a("undefine")},n=c=>typeof c=="object"?JSON.stringify(c):String(c);return(c,r)=>(e.openBlock(),e.createElementBlock("div",OZ,[e.createElementVNode("div",jZ,[e.createElementVNode("h3",GZ,e.toDisplayString(l.item.key),1),e.createElementVNode("span",TZ,e.toDisplayString(c.$t(`config.types.${l.item.type}`)),1)]),l.description?.descriptionKey?(e.openBlock(),e.createElementBlock("p",wZ,e.toDisplayString(c.$t(l.description.descriptionKey)),1)):e.createCommentVNode("",!0),e.createElementVNode("div",fZ,[l.item.isDefined?(e.openBlock(),e.createElementBlock("div",LZ,[e.createVNode(e.unref(L),{label:c.$t("config.buttons.undefine"),icon:"ri-delete-bin-line",severity:"danger",class:"p-button-outlined p-button-sm",onClick:i},null,8,["label"])])):(e.openBlock(),e.createElementBlock("div",IZ,[e.createVNode(e.unref(L),{label:c.$t("config.buttons.define"),icon:"ri-add-line",class:"p-button-outlined",onClick:o},null,8,["label"]),e.createElementVNode("small",vZ,e.toDisplayString(c.$t("config.notDefined")),1)]))]),l.item.isDefined?(e.openBlock(),e.createElementBlock("div",DZ,[l.item.type==="boolean"?(e.openBlock(),e.createElementBlock("div",RZ,[e.createElementVNode("label",null,e.toDisplayString(c.$t("config.table.valueHeader")),1),e.createVNode(e.unref(Sa),{"model-value":l.item.value,"onUpdate:modelValue":s},null,8,["model-value"])])):l.item.type==="string"?(e.openBlock(),e.createElementBlock("div",kZ,[e.createElementVNode("label",null,e.toDisplayString(c.$t("config.table.valueHeader")),1),e.createVNode(e.unref(we),{"model-value":l.item.value,class:"w-full","onUpdate:modelValue":s},null,8,["model-value"])])):l.item.type==="number"?(e.openBlock(),e.createElementBlock("div",CZ,[e.createElementVNode("label",null,e.toDisplayString(c.$t("config.table.valueHeader")),1),e.createVNode(e.unref(Ll),{"model-value":l.item.value,class:"w-full","onUpdate:modelValue":s},null,8,["model-value"])])):l.item.type==="array"?(e.openBlock(),e.createElementBlock("div",FZ,[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":s},null,8,["is-metadata","model-value"])])):l.item.type==="object"?(e.openBlock(),e.createElementBlock("div",VZ,[e.createElementVNode("label",null,e.toDisplayString(c.$t("config.table.valueHeader")),1),e.createElementVNode("pre",xZ,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",SZ,[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"]]),JZ={class:"config-split-view"},UZ={class:"config-list-panel"},HZ={class:"filter-container"},QZ={class:"p-input-icon-left w-full"},BZ={class:"config-groups"},EZ=["onClick"],PZ={class:"group-label"},_Z={class:"group-count"},KZ={class:"group-items"},$Z=["onClick"],qZ={class:"item-key"},e3=["title"],t3={key:0,class:"empty-state"},l3={class:"config-editor-panel"},a3={key:0,class:"editor-wrapper"},o3={key:1,class:"empty-editor"},Gc=J({__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}=ll.useI18n(),s=l,o=t,i=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_"]},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=y=>{for(const[I,j]of Object.entries(r))if(I!=="other"){if(j.keys&&j.keys.includes(y))return I;if(j.prefixes){for(const v of j.prefixes)if(y.startsWith(v))return I}}return"other"},h=e.computed(()=>{const y=i.value.toLowerCase().trim(),I={};for(const v of Object.keys(r))I[v]=[];for(const v of s.configData){if(y){const x=v.key.toLowerCase().includes(y),D=s.descriptions[v.key]?.descriptionKey,le=D?a(D).toLowerCase().includes(y):!1;if(!x&&!le)continue}const C=m(v.key);I[C].push(v)}for(const v of Object.keys(I))I[v].sort((C,x)=>C.key.localeCompare(x.key));const j=[];for(const[v,C]of Object.entries(r))I[v].length>0&&j.push({id:v,label:C.label,items:I[v]});return j}),Z=e.computed(()=>n.value?s.configData.find(y=>y.key===n.value):null),p=y=>{c.value[y]=!c.value[y]},Y=y=>{n.value=y},A=y=>{if(!n.value)return;const I=s.configData.map(j=>j.key===n.value?{...j,value:y}:j);o("update:config",I)},X=()=>{if(!n.value)return;const y=s.configData.map(I=>I.key===n.value?{...I,isDefined:!0}:I);o("update:config",y)},z=()=>{if(!n.value)return;const y=s.configData.map(I=>{if(I.key===n.value){const j=s.descriptions[I.key]?.default;return{...I,isDefined:!1,value:j}}return I});o("update:config",y)};return e.watch(()=>s.configData,()=>{!n.value&&s.configData.length>0&&h.value.length>0&&h.value[0].items.length>0&&(n.value=h.value[0].items[0].key)},{immediate:!0}),(y,I)=>(e.openBlock(),e.createElementBlock("div",JZ,[e.createElementVNode("div",UZ,[e.createElementVNode("div",HZ,[e.createElementVNode("span",QZ,[I[1]||(I[1]=e.createElementVNode("i",{class:"ri-search-line","aria-hidden":"true"},null,-1)),e.createVNode(e.unref(we),{modelValue:i.value,"onUpdate:modelValue":I[0]||(I[0]=j=>i.value=j),placeholder:y.$t("config.splitView.filterPlaceholder"),class:"w-full"},null,8,["modelValue","placeholder"])])]),e.createElementVNode("div",BZ,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,j=>(e.openBlock(),e.createElementBlock("div",{key:j.id,class:"config-group"},[e.createElementVNode("div",{class:"group-header",onClick:v=>p(j.id)},[e.createElementVNode("i",{class:e.normalizeClass(c.value[j.id]?"ri-arrow-right-s-line":"ri-arrow-down-s-line"),"aria-hidden":"true"},null,2),e.createElementVNode("span",PZ,e.toDisplayString(y.$t(j.label)),1),e.createElementVNode("span",_Z,e.toDisplayString(j.items.length),1)],8,EZ),e.withDirectives(e.createElementVNode("div",KZ,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.items,v=>(e.openBlock(),e.createElementBlock("div",{key:v.key,class:e.normalizeClass(["config-list-item",{"is-selected":n.value===v.key,"is-undefined":!v.isDefined}]),onClick:C=>Y(v.key)},[e.createElementVNode("span",qZ,e.toDisplayString(v.key),1),v.isDefined?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("i",{key:0,class:"ri-checkbox-blank-circle-line undefined-indicator",title:y.$t("config.notDefined"),"aria-hidden":"true"},null,8,e3))],10,$Z))),128))],512),[[e.vShow,!c.value[j.id]]])]))),128)),h.value.length===0?(e.openBlock(),e.createElementBlock("div",t3,[I[2]||(I[2]=e.createElementVNode("i",{class:"ri-search-line","aria-hidden":"true"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(y.$t("config.splitView.noResults")),1)])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",l3,[Z.value?(e.openBlock(),e.createElementBlock("div",a3,[e.createVNode(To,{item:Z.value,description:l.descriptions[Z.value.key],"onUpdate:value":A,onDefine:X,onUndefine:z},null,8,["item","description"])])):(e.openBlock(),e.createElementBlock("div",o3,[I[3]||(I[3]=e.createElementVNode("i",{class:"ri-settings-3-line","aria-hidden":"true"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(y.$t("config.splitView.selectConfig")),1)]))])]))}},[["__scopeId","data-v-c0f7b81c"]]),s3={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=s=>{try{const o=JSON.parse(s.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=s=>{console.error("handle file upload error",s)},a.readAsText(t)}}},i3={class:"p-3"},n3={class:"mt-0 mb-3 text-color-secondary"},c3={class:"mt-2 block"};function r3(l,t,a,s,o,i){const n=e.resolveComponent("PrimeFileUpload");return e.openBlock(),e.createElementBlock("div",i3,[e.createElementVNode("p",n3,e.toDisplayString(l.$t("config.raw.uploadDescription")),1),e.createVNode(n,{mode:"basic",name:"configfile[]",accept:".json",maxFileSize:1e6,customUpload:"",onUploader:i.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",c3,e.toDisplayString(l.$t("config.raw.uploadWarning")),1)])}const Tc=J(s3,[["render",r3]]),d3={name:"ListVersionConfig",components:{PrimeButton:L,PrimeCard:m2,PrimeTextarea:hl,PrimeProgressSpinner:Zt},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(),s=JSON.parse(a);this.selectedVersionContent=JSON.stringify(s,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 s=this.currentNode.name.split("."),o=s.pop(),i=s.join("."),n=document.createElement("a"),c=l.id.replace(".","-");n.href=URL.createObjectURL(t),n.download=`${i}_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});S.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(s=>{console.error(s),this.$toast.add({severity:"error",summary:this.$t("error"),detail:s.message||this.$t("config.versionViewer.error"),life:3e3})})},getContent(l,t){return S.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}):""}}},m3={key:0,class:"block text-600 font-medium mb-3"},b3={class:"grid"},p3={class:"col-12 md:col-5"},u3={class:"p-0 mx-0 mt-0 mb-4 list-none version-list-container"},Z3=["onClick"],h3={class:"w-3rem h-3rem flex align-items-center justify-content-center bg-blue-100 border-circle mr-3 flex-shrink-0"},y3={class:"text-xl text-blue-500 font-bold"},W3={class:"text-900 line-height-3 flex-grow-1"},g3={class:"text-700"},Y3={key:0},N3={class:"ml-2"},A3={class:"col-12 md:col-7"},X3={key:0,class:"flex justify-content-center align-items-center h-full"},z3={key:1,class:"h-full"},M3={key:2,class:"text-center text-color-secondary"};function O3(l,t,a,s,o,i){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",m3,e.toDisplayString(a.title.toUpperCase()),1)):e.createCommentVNode("",!0),e.createElementVNode("div",b3,[e.createElementVNode("div",p3,[e.createElementVNode("ul",u3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.versions,Z=>(e.openBlock(),e.createElementBlock("li",{key:Z.id,class:e.normalizeClass(["flex align-items-center py-2 border-bottom-1 surface-border version-row",{"active-version":o.selectedVersion&&o.selectedVersion.id===Z.entry.id}]),onClick:p=>i.selectVersion(Z.entry)},[e.createElementVNode("div",h3,[e.createElementVNode("span",y3,e.toDisplayString(Z.entry.id),1)]),e.createElementVNode("span",W3,[e.createTextVNode(e.toDisplayString(i.toLocaleDateString(Z.entry.modifiedAt))+" "+e.toDisplayString(l.$t("at"))+" "+e.toDisplayString(i.toLocaleTimeString(Z.entry.modifiedAt))+" ",1),e.createElementVNode("span",g3,[e.createTextVNode(e.toDisplayString(l.$t("by"))+" "+e.toDisplayString(Z.entry.modifiedByUser.displayName)+" ",1),t[0]||(t[0]=e.createElementVNode("br",null,null,-1)),Z.entry.versionComment?(e.openBlock(),e.createElementBlock("em",Y3,e.toDisplayString(Z.entry.versionComment),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",N3,[e.withDirectives(e.createVNode(n,{type:"button",icon:"ri-download-line","aria-label":l.$t("download"),onClick:e.withModifiers(p=>i.download(Z.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:p=>i.revert(Z.entry),severity:"secondary",rounded:"",text:""},null,8,["aria-label","onClick"]),[[h,l.$t("restore"),void 0,{left:!0}]])])],10,Z3))),128))])]),e.createElementVNode("div",A3,[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",X3,[e.createVNode(c)])):o.selectedVersionContent?(e.openBlock(),e.createElementBlock("div",z3,[e.createVNode(r,{"model-value":o.selectedVersionContent,readonly:"",class:"w-full font-mono h-25rem"},null,8,["model-value"])])):(e.openBlock(),e.createElementBlock("div",M3,[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 wc=J(d3,[["render",O3],["__scopeId","data-v-593c47b8"]]),fc={id:null,property:null,negation:!1,operator:null,value:null,value_end:null},j3={name:"AddCriterionPopup",components:{PrimeDialog:Je,PrimeDropdown:At,PrimeSelectButton:yl,PrimeInputText:we,PrimeCalendar:La,PrimeInputNumber:Ll,PrimeButton:L,PrimeDataTable:Dl,PrimeColumn:Rl},props:{visible:Boolean,properties:{type:Array,required:!0}},emits:["update:visible","add-criterion"],data(){return{criterion:{...fc},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={...fc},this.$emit("update:visible",!1)}}},G3={class:"p-fluid formgrid grid mt-3"},T3={class:"field col-12"},w3={key:0,class:"font-semibold"},f3={key:1,class:"font-semibold"},I3={class:"text-sm"},v3={key:0,class:"text-gray-600"},L3={key:1,class:"text-gray-600"},D3={class:"field col-12 md:col-6"},R3={class:"field col-12 md:col-6"},k3={class:"field col-12"},C3={class:"flex gap-2"};function F3(l,t,a,s,o,i){const n=e.resolveComponent("PrimeColumn"),c=e.resolveComponent("PrimeDataTable"),r=e.resolveComponent("PrimeSelectButton"),m=e.resolveComponent("PrimeDropdown"),h=e.resolveComponent("PrimeInputText"),Z=e.resolveComponent("PrimeCalendar"),p=e.resolveComponent("PrimeInputNumber"),Y=e.resolveComponent("PrimeButton"),A=e.resolveComponent("PrimeDialog");return e.openBlock(),e.createBlock(A,{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:i.addCriterion,disabled:!i.isCriterionValid},null,8,["label","onClick","disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",G3,[e.createElementVNode("div",T3,[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:i.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",w3,e.toDisplayString(l.$t(X.data.labelId)),1)):(e.openBlock(),e.createElementBlock("span",f3,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",I3,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",v3,e.toDisplayString(X.data.modelAspect),1)):(e.openBlock(),e.createElementBlock("span",L3,e.toDisplayString(X.data.modelType||""),1))]),_:1},8,["header"])]),_:1},8,["selection","value","paginator","onRowSelect"])]),e.createElementVNode("div",D3,[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:i.negationOptions,optionLabel:"label",optionValue:"value"},null,8,["modelValue","options"])]),e.createElementVNode("div",R3,[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:i.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",k3,[e.createElementVNode("label",null,e.toDisplayString(l.$t("rechercheAvancee.valueLabel")),1),e.createElementVNode("div",C3,[i.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),i.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:i.booleanOptions,optionLabel:"label",optionValue:"value"},null,8,["modelValue","options"])):e.createCommentVNode("",!0),i.propertyType==="date"||i.propertyType==="datetime"?(e.openBlock(),e.createBlock(Z,{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),(i.propertyType==="date"||i.propertyType==="datetime")&&o.criterion.operator==="range"?(e.openBlock(),e.createBlock(Z,{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(i.propertyType)?(e.openBlock(),e.createBlock(p,{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(i.propertyType)&&o.criterion.operator==="range"?(e.openBlock(),e.createBlock(p,{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=J(j3,[["render",F3],["__scopeId","data-v-f9a9cf16"]]),Ee=sl.global.t,Ol="env-config.json",wo="savedViews.json",Ic={include:["aspectNames","isFavorite","properties","allowableOperations","permissions","path","isLocked"],maxItems:500,skipCount:0};class V3{async _getHiddenFolder(t,a=!1){const o=(await S.getHomeFolderFromUser(t)).list.entries[0].entry.properties["cm:homeFolder"];if(!o)throw new Error(Ee("vuesUtilisateurs.noUserHomeFound"));let n=(await S.getChildrenWithOpts(o,Ic,!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 S.getChildrenWithOpts(t,Ic,!0)).children.find(i=>i.name===wo);if(!o&&a){console.warn(`No ${wo} file found, creating one...`);const i={name:wo,nodeType:"cm:content"},n={personalSavedView:[],globalFavoriteView:[]},c=new Blob([JSON.stringify(n,null,2)],{type:"application/json"}),m=(await ze.uploadFile(t,i,c)).entry;o=(await S.updateNode(m.id,{aspectNames:[...m.aspectNames||[],"pm:hidden"]})).entry}return o}async getContent(t,a,s){try{return await S.getVersionContent(t,a,s)}catch(o){throw console.error("Error getting content:",o.message),o}}async _parseFileContent(t){let a;try{const s=await this.getContent(t.id,t.properties["cm:versionLabel"],!0);a=await(i=>new Promise((n,c)=>{if(!(i instanceof Blob)){n(i);return}const r=new FileReader;r.onload=()=>n(r.result),r.onerror=m=>c(m),r.readAsText(i,"utf-8")}))(s)}catch(s){console.warn(`Could not get content for node ${t.id}, assuming empty.`,s.message),a=""}if(!a||a.trim()==="")return{personalSavedView:[],globalFavoriteView:[]};try{return JSON.parse(a)}catch(s){return console.error("Error parsing JSON content:",s),{personalSavedView:[],globalFavoriteView:[]}}}_normalizeFileContent(t){return Array.isArray(t)?{personalSavedView:t,globalFavoriteView:[]}:{personalSavedView:t?.personalSavedView||[],globalFavoriteView:t?.globalFavoriteView||[]}}async _loadViewsFileContent(){const t=Ae().person;if(!t)throw new Error(Ee("vuesUtilisateurs.userNotFound"));const a=await this._getHiddenFolder(t.id,!1);if(!a)return null;const s=await this._getOrCreateViewsFile(a.id,!1);return s?this._parseFileContent(s):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=re();return Promise.resolve(t.SAVED_VIEWS_GLOBAL||[])}async createConfigFolder(t){const a={aspectNames:["pm:hidden"],nodeType:"cm:folder",name:"Configuration"};try{return await S.createNode(t,a)}catch(s){throw console.error("Error while creating the Configuration folder :",s),s}}async _savePersonalView(t){const a=Ae().person;if(!a)throw new Error(Ee("vuesUtilisateurs.userNotFound"));const s=await this._getHiddenFolder(a.id,!0),o=await this._getOrCreateViewsFile(s.id,!0);let i=await this._parseFileContent(o),n=this._normalizeFileContent(i);const c=n.personalSavedView;if(c.some(h=>h.id===t.id))throw new Error(Ee("vuesUtilisateurs.savedViewError.idAlreadyExists",{id:t.id}));if(c.some(h=>h.name.toLowerCase()===t.name.toLowerCase()))throw new Error(Ee("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 S.updateContentNode(o.id,m,"MAJEURE",null)}async saveView(t){if(t.scope==="global")try{const a=await Bt.getConfig(re().INSTANCE_NAME,Ol),s=a.jsonContent.SAVED_VIEWS_GLOBAL||[];if(s.some(o=>o.id===t.id))throw new Error(Ee("vuesUtilisateurs.savedViewError.idAlreadyExists",{id:t.id}));if(s.some(o=>o.name.toLowerCase()===t.name.toLowerCase()))throw new Error(Ee("vuesUtilisateurs.savedViewError.nameAlreadyExists",{id:t.name}));s.push(t),a.jsonContent.SAVED_VIEWS_GLOBAL=s,await Bt.updateConfig(re().INSTANCE_NAME,Ol,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=Ae().person;if(!a)throw new Error(Ee("vuesUtilisateurs.userNotFoundForUpdate"));const s=await this._getHiddenFolder(a.id,!0),o=await this._getOrCreateViewsFile(s.id,!0);let i=await this._parseFileContent(o),n=this._normalizeFileContent(i);const c=n.personalSavedView;if(c.some(Z=>Z.id!==t.id&&Z.name.toLowerCase()===t.name.toLowerCase()))throw new Error(Ee("vuesUtilisateurs.savedViewError.nameAlreadyExists",{id:t.name}));const r=c.findIndex(Z=>Z.id===t.id);if(r===-1)throw new Error(Ee("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 S.updateContentNode(o.id,h,"MAJEURE",null)}async updateView(t){if(t.scope==="global")try{const a=await Bt.getConfig(re().INSTANCE_NAME,Ol),s=a.jsonContent.SAVED_VIEWS_GLOBAL||[];if(s.some(i=>i.id!==t.id&&i.name.toLowerCase()===t.name.toLowerCase()))throw new Error(Ee("vuesUtilisateurs.savedViewError.nameAlreadyExists",{id:t.name}));const o=s.findIndex(i=>i.id===t.id);if(o===-1)throw new Error(Ee("vuesUtilisateurs.savedViewError.globalNotFound",{id:t.id}));return s[o]=t,a.jsonContent.SAVED_VIEWS_GLOBAL=s,await Bt.updateConfig(re().INSTANCE_NAME,Ol,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=Ae().person;if(!a)throw new Error(Ee("vuesUtilisateurs.userNotFoundForDelete"));const s=await this._getHiddenFolder(a.id,!1);if(!s)throw new Error(Ee("vuesUtilisateurs.configFolderNotFound"));const o=await this._getOrCreateViewsFile(s.id,!1);if(!o)throw new Error(Ee("vuesUtilisateurs.configFileNotFound"));let i=await this._parseFileContent(o),n=this._normalizeFileContent(i);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 S.updateContentNode(o.id,m,"MAJEURE",null)}async deleteView(t){if(t.scope==="global"){try{const a=await Bt.getConfig(re().INSTANCE_NAME,Ol),s=a.jsonContent.SAVED_VIEWS_GLOBAL||[];a.jsonContent.SAVED_VIEWS_GLOBAL=s.filter(o=>o.id!==t.id),await Bt.updateConfig(re().INSTANCE_NAME,Ol,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=Ae().person;if(!a)throw new Error(Ee("vuesUtilisateurs.userNotFound"));const s=await this._getHiddenFolder(a.id,!0),o=await this._getOrCreateViewsFile(s.id,!0);let i=await this._parseFileContent(o),n=this._normalizeFileContent(i);const c=n.globalFavoriteView,r=c.findIndex(Z=>Z.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 S.updateContentNode(o.id,h,"MAJEURE",null),t}else return t.isFavorite=!t.isFavorite,await this.updateView(t)}}const Ot=new V3,Lt=_.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 Ot.saveView(l),this.loadView(l)}catch(t){throw console.error("Error saving the current view:",t),t}},async updateCurrentView(l){try{const t=await Ot.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 Ot.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 Ot.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([Ot.getPersonalViews(),Ot.getGlobalViews(),Ot.getPersonalViewsAndGlobalFavorites()]),s=a?.globalFavoriteView||[],o=(l||[]).filter(c=>c.isFavorite),i=(t||[]).filter(c=>s.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),...i.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([Ot.getPersonalViews(),Ot.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}}}}),x3=/"([^"]*)"|(\S+)/g;function S3(l){const t=[];for(const a of String(l??"").matchAll(x3)){const s=(a[1]??a[2]).trim();s&&t.push(s)}return t}function J3(l,t){const a=S3(t);return a.length===0?vc(l,""):a.map(s=>vc(l,s)).join(" AND ")}function U3(l,t){return l.replaceAll("*","").replaceAll("%s",t)}function vc(l,t){return l.replaceAll("%s",t).replaceAll("**","*")}const 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=re();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=re(),a=this.isExactSearchActivated?U3(t.SEARCH_USER_QUERY,l):J3(t.SEARCH_USER_QUERY,l);this.language="afts",this.userQuery=l;let s=this.fields.map(o=>`(${o.query})`);this.fullQuery=[a,...s].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 s=a?[]:[...this.filterQueries];s.some(i=>i.query==="-ASPECT:'pm:hidden'")||s.push({query:"-ASPECT:'pm:hidden'"});let o={query:{language:this.language,query:this.fullQuery},include:this.include,paging:this.paging,filterQueries:s.map(i=>({query:i.query})),facetQueries:this.facetQueries,facetFields:{facets:this.facets.map(i=>({field:i.field,mincount:i.mincount,label:i.label}))},sort:this.sort||this.defaultSort,facetFormat:"V2"};return ht.search(o).then(i=>{this.context=i.list.context,t>0?this.entries=[...this.entries,...i.list.entries]:this.entries=i.list.entries,this.pagination=i.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 s={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 ht.search(s).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)}}}),H3={name:"ExactSearch",components:{PrimeToggleButton:Tr},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"])}},Q3={id:"exactSearch",class:"flex gap-3 p-3 rounded-2xl"},B3={class:"text-gray-700 font-medium align-content-center"};function E3(l,t,a,s,o,i){const n=e.resolveComponent("PrimeToggleButton");return e.openBlock(),e.createElementBlock("div",Q3,[e.createElementVNode("span",B3,e.toDisplayString(l.$t("exactSearch")),1),e.createVNode(n,{modelValue:i.exactSearch,"onUpdate:modelValue":t[0]||(t[0]=c=>i.exactSearch=c),binary:"",onLabel:l.$t("enabled"),offLabel:l.$t("disabled"),class:"rounded-xl",disabled:a.disabled},null,8,["modelValue","onLabel","offLabel","disabled"])])}const fo=J(H3,[["render",E3]]),P3={name:"UserViewsFavoritesPanel",components:{PrimeDropdown:At},data(){return{selectedPersonalSearch:null,selectedGlobalSearch:null}},mounted(){this.fetchSavedViews()},computed:{..._.mapState(Lt,{loadedView:"loadedView",personalViews:"personalViews",globalViews:"globalViews",loading:"viewsLoading"}),hasGroupedSearches(){return this.personalViews.length>0||this.globalViews.length>0}},emits:["load-view"],methods:{..._.mapActions(Lt,["fetchSavedViews"]),onDropdownChange(l){l.value&&(this.selectView(l.value),this.$nextTick(()=>{this.selectedPersonalSearch=null,this.selectedGlobalSearch=null}))},selectView(l){this.$emit("load-view",l)}}},_3={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"},K3={class:"mr-2"},$3={class:"font-bold overflow-hidden text-overflow-ellipsis multi-line-ellipsis max-w-25rem"},q3={key:1,class:"text-center p-3"},eh={key:2,class:"text-center text-gray-500 p-3"},th={key:3},lh={class:"flex flex-column gap-4"},ah={key:0,class:"flex flex-column gap-2"},oh={for:"personal-searches-dropdown"},sh={class:"flex flex-column align-items-start w-30rem overflow-hidden"},ih={class:"font-bold"},nh={key:0,class:"text-color-secondary w-full overflow-hidden text-overflow-ellipsis white-space-nowrap block"},ch={key:1,class:"flex flex-column gap-2"},rh={for:"global-searches-dropdown"},dh={class:"flex flex-column align-items-start w-30rem overflow-hidden"},mh={class:"font-bold"},bh={key:0,class:"text-color-secondary w-full overflow-hidden text-overflow-ellipsis white-space-nowrap block"};function ph(l,t,a,s,o,i){const n=e.resolveComponent("PrimeDropdown"),c=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock(e.Fragment,null,[l.loadedView?(e.openBlock(),e.createElementBlock("div",_3,[e.createElementVNode("span",K3,e.toDisplayString(l.$t("vuesFavorites.loadedViewMessage")),1),e.withDirectives((e.openBlock(),e.createElementBlock("span",$3,[e.createTextVNode(e.toDisplayString(l.loadedView.name),1)])),[[c,l.loadedView.name]])])):e.createCommentVNode("",!0),l.loading?(e.openBlock(),e.createElementBlock("div",q3,[...t[2]||(t[2]=[e.createElementVNode("i",{class:"pi pi-spin pi-spinner text-4xl"},null,-1)])])):i.hasGroupedSearches?(e.openBlock(),e.createElementBlock("div",th,[e.createElementVNode("div",lh,[l.personalViews.length>0?(e.openBlock(),e.createElementBlock("div",ah,[e.createElementVNode("label",oh,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:i.onDropdownChange,filter:"",filterBy:["name","description"],filterPlaceholder:l.$t("vuesFavorites.filterSavedViews")},{option:e.withCtx(r=>[e.createElementVNode("div",sh,[e.createElementVNode("div",ih,e.toDisplayString(r.option.name),1),r.option.description?e.withDirectives((e.openBlock(),e.createElementBlock("small",nh,[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",ch,[e.createElementVNode("label",rh,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:i.onDropdownChange,filter:"",filterBy:["name","description"],filterPlaceholder:l.$t("vuesFavorites.filterSavedViews")},{option:e.withCtx(r=>[e.createElementVNode("div",dh,[e.createElementVNode("div",mh,e.toDisplayString(r.option.name),1),r.option.description?e.withDirectives((e.openBlock(),e.createElementBlock("small",bh,[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",eh,e.toDisplayString(l.$t("vuesFavorites.noSavedViews")),1))],64)}const Na=J(P3,[["render",ph],["__scopeId","data-v-8a7f3255"]]),uh={name:"SaveViewPopup",components:{PrimeDialog:Je,PrimeInputText:we,PrimeTextarea:hl,PrimeSelectButton:yl,PrimeButton:L},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(Ae,["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(Ae,["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()}}},Zh={class:"p-fluid formgrid grid mt-3"},hh={class:"field col-12"},yh={for:"searchName"},Wh={key:0,class:"p-error"},gh={key:1,class:"p-error"},Yh={class:"field col-12"},Nh={for:"searchDescription"},Ah={key:0,class:"field col-12"};function Xh(l,t,a,s,o,i){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]=Z=>l.$emit("update:visible",Z)),modal:"",header:i.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]=Z=>l.$emit("update:visible",!1)),text:""},null,8,["label"]),e.createVNode(m,{label:i.isEditMode?l.$t("vuesUtilisateurs.modifyView"):l.$t("vuesUtilisateurs.saveView"),icon:"ri-save-3-line",onClick:i.save,disabled:!i.isFormValid},null,8,["label","onClick","disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",Zh,[e.createElementVNode("div",hh,[e.createElementVNode("label",yh,e.toDisplayString(l.$t("vuesUtilisateurs.saveViewPopup.nameLabel")),1),e.createVNode(n,{id:"searchName",modelValue:o.viewName,"onUpdate:modelValue":t[0]||(t[0]=Z=>o.viewName=Z),modelModifiers:{trim:!0},class:e.normalizeClass({"p-invalid":a.errorMessage}),onInput:t[1]||(t[1]=Z=>l.$emit("clear-error"))},null,8,["modelValue","class"]),!o.viewName&&!a.errorMessage?(e.openBlock(),e.createElementBlock("small",Wh,e.toDisplayString(l.$t("vuesUtilisateurs.saveViewPopup.nameRequired")),1)):e.createCommentVNode("",!0),a.errorMessage?(e.openBlock(),e.createElementBlock("small",gh,e.toDisplayString(a.errorMessage),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Yh,[e.createElementVNode("label",Nh,e.toDisplayString(l.$t("vuesUtilisateurs.saveViewPopup.descriptionLabel")),1),e.createVNode(c,{id:"searchDescription",modelValue:o.viewDescription,"onUpdate:modelValue":t[2]||(t[2]=Z=>o.viewDescription=Z),rows:"3",autoResize:""},null,8,["modelValue"])]),l.isPristyAdmin?(e.openBlock(),e.createElementBlock("div",Ah,[e.createElementVNode("label",null,e.toDisplayString(l.$t("vuesUtilisateurs.saveViewPopup.scopeLabel")),1),e.createVNode(r,{modelValue:o.scope,"onUpdate:modelValue":t[3]||(t[3]=Z=>o.scope=Z),options:i.scopeOptions,optionLabel:"label",optionValue:"value",class:"w-full",disabled:i.isEditMode},null,8,["modelValue","options","disabled"])])):e.createCommentVNode("",!0)])]),_:1},8,["visible","header"])}const Aa=J(uh,[["render",Xh]]),zh={name:"AdvancedSearchPanel",components:{ExactSearch:fo,PrimeAccordion:p2,PrimeAccordionTab:u2,UserViewsFavoritesPanel:Na,PrimeSelectButton:yl,PrimeInputText:we,PrimeButton:L,AddCriterionPopup:ga,SaveViewPopup:Aa,PrimeDialog:Je,TreeExplorer:il},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(Ae,["isPristyAdmin"]),..._.mapState(Lt,["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 re().METADATA.filter(t=>t.display&&t.display.includes("advancedSearch"))}},methods:{..._.mapActions(Ae,["checkPristyAdminStatus"]),..._.mapActions(Lt,["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,s,o;const i={location:JSON.parse(JSON.stringify(this.location)),criteria:JSON.parse(JSON.stringify(this.criteria))};t?(a=this.saveCurrentView,o="vuesUtilisateurs.addsSavedViewSuccess",s={id:crypto.randomUUID(),name:l.name,description:l.description,scope:l.scope,config:i}):(a=this.updateCurrentView,o="vuesUtilisateurs.modifySavedViewSuccess",s={...this.loadedView,name:l.name,description:l.description,config:i});try{await a(s),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}"`}}},Mh={key:0,class:"p-2 mb-3 border-1 border-round border-blue-200 bg-blue-50 text-blue-700"},Oh={class:"font-bold"},jh={class:"p-fluid formgrid grid"},Gh={class:"field col-12"},Th={for:"locationType"},wh={key:0,class:"field col-12"},fh={for:"locationValue"},Ih={key:0,id:"username-help"},vh={class:"mt-4"},Lh={key:0,class:"text-center text-gray-500 p-3 border-1 border-dashed border-round"},Dh={key:1,class:"flex flex-column gap-2"},Rh={class:"flex-grow-1"},kh={class:"font-bold mr-1"},Ch={class:"font-italic mr-1"},Fh={class:"text-gray-700"},Vh={key:3,class:"flex gap-2 mt-2"},xh={class:"flex align-items-center"},Sh={key:0};function Jh(l,t,a,s,o,i){const n=e.resolveComponent("ExactSearch"),c=e.resolveComponent("UserViewsFavoritesPanel"),r=e.resolveComponent("PrimeAccordionTab"),m=e.resolveComponent("PrimeSelectButton"),h=e.resolveComponent("PrimeInputText"),Z=e.resolveComponent("PrimeButton"),p=e.resolveComponent("PrimeAccordion"),Y=e.resolveComponent("AddCriterionPopup"),A=e.resolveComponent("SaveViewPopup"),X=e.resolveComponent("TreeExplorer"),z=e.resolveComponent("PrimeDialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(n,{onChangeExactSearchSettings:t[0]||(t[0]=y=>l.$emit("change-exact-search-settings",y)),disabled:i.hasActiveCriteria||i.isSavedViewLoaded},null,8,["disabled"]),e.createVNode(p,{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:i.handleLoadView},null,8,["onLoadView"])]),_:1},8,["header"]),e.createVNode(r,{header:l.$t("vuesUtilisateurs.queryBuilder")},{default:e.withCtx(()=>[i.isSavedViewLoaded?(e.openBlock(),e.createElementBlock("div",Mh,[e.createTextVNode(e.toDisplayString(l.$t("vuesUtilisateurs.loadedViewMessage"))+" ",1),e.createElementVNode("span",Oh,e.toDisplayString(l.loadedView.name),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",jh,[e.createElementVNode("div",Gh,[e.createElementVNode("label",Th,e.toDisplayString(l.$t("vuesUtilisateurs.locationLabel")),1),e.createVNode(m,{id:"locationType",modelValue:i.locationModel.type,"onUpdate:modelValue":t[1]||(t[1]=y=>i.locationModel.type=y),options:i.locationOptions,optionLabel:"label",optionValue:"value",allowEmpty:"",class:"w-full"},null,8,["modelValue","options"])]),i.locationModel.type?(e.openBlock(),e.createElementBlock("div",wh,[e.createElementVNode("label",fh,e.toDisplayString(l.$t("vuesUtilisateurs.valueLabel")),1),e.createVNode(h,{id:"locationValue",value:i.locationModel.value,placeholder:i.locationPlaceholder,onClick:t[2]||(t[2]=y=>i.locationModel.type==="Folder"?o.isDossierTreeVisible=!0:null),onChange:t[3]||(t[3]=y=>i.updateLocationValue(y.target.value))},null,8,["value","placeholder"]),i.locationModel.type==="Folder"?(e.openBlock(),e.createElementBlock("small",Ih,"Ex: workspace://SpacesStore/{ID du dossier}")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",vh,[e.createElementVNode("h5",null,e.toDisplayString(l.$t("vuesUtilisateurs.criteriaTitle")),1),l.criteria.length===0?(e.openBlock(),e.createElementBlock("div",Lh,e.toDisplayString(l.$t("vuesUtilisateurs.noCriteria")),1)):(e.openBlock(),e.createElementBlock("div",Dh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.criteria,(y,I)=>(e.openBlock(),e.createElementBlock("div",{key:y.id,class:"flex align-items-center p-2 border-1 border-round border-gray-200"},[e.createElementVNode("div",Rh,[e.createElementVNode("span",kh,e.toDisplayString(l.$t(y.property.labelId)),1),e.createElementVNode("span",{class:e.normalizeClass([y.negation?"text-red-500":"text-primary","mx-1"])},e.toDisplayString(y.negation?l.$t("vuesUtilisateurs.mustNotContain"):l.$t("vuesUtilisateurs.mustContain")),3),e.createElementVNode("span",Ch,e.toDisplayString(l.$t(y.operatorLabelKey)),1),e.createElementVNode("span",Fh,e.toDisplayString(i.formatCriterionValueForDisplay(y)),1)]),e.createVNode(Z,{icon:"ri-delete-bin-line","aria-label":l.$t("delete"),text:"",rounded:"",severity:"danger",onClick:j=>l.removeCriterion(I)},null,8,["aria-label","onClick"])]))),128))])),e.createVNode(Z,{icon:"ri-add-line",label:l.$t("vuesUtilisateurs.addCriterionButton"),onClick:t[4]||(t[4]=y=>o.isAddCriterionDialogVisible=!0),class:"mt-3 w-full",outlined:""},null,8,["label"]),i.hasActiveCriteria?(e.openBlock(),e.createBlock(Z,{key:2,icon:"ri-save-3-line",label:l.$t("vuesUtilisateurs.saveView"),onClick:i.openSaveViewPopup,class:"mt-3 w-full"},null,8,["label","onClick"])):e.createCommentVNode("",!0),i.canManageLoadedView?(e.openBlock(),e.createElementBlock("div",Vh,[e.createVNode(Z,{icon:"ri-pencil-line",label:l.$t("vuesUtilisateurs.modifyView"),onClick:i.modifyView,class:"w-full",severity:"secondary"},null,8,["label","onClick"]),e.createVNode(Z,{icon:"ri-delete-bin-line",label:l.$t("vuesUtilisateurs.deleteView"),onClick:i.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]=y=>o.isAddCriterionDialogVisible=y),properties:i.availableProperties,onAddCriterion:i.handleCriterionAdded},null,8,["visible","properties","onAddCriterion"]),e.createVNode(A,{visible:o.saveViewDialogVisible,"onUpdate:visible":t[6]||(t[6]=y=>o.saveViewDialogVisible=y),"view-data":i.viewToEdit,"error-message":o.saveViewError,onSaveView:i.handleSaveView,onClearError:i.clearSaveViewError},null,8,["visible","view-data","error-message","onSaveView","onClearError"]),e.createVNode(z,{visible:o.isDossierTreeVisible,"onUpdate:visible":t[7]||(t[7]=y=>o.isDossierTreeVisible=y),header:"Choisir un dossier",modal:"",class:"w-full md:w-6"},{default:e.withCtx(()=>[e.createVNode(X,{"current-node":null,showUserHome:"",onSelectNode:i.handleDossierSelected},null,8,["onSelectNode"])]),_:1},8,["visible"]),e.createVNode(z,{visible:o.isDeleteConfirmVisible,"onUpdate:visible":t[9]||(t[9]=y=>o.isDeleteConfirmVisible=y),header:"Confirmation de suppression",modal:"",class:"dialog-confirm-delete"},{footer:e.withCtx(()=>[e.createVNode(Z,{label:l.$t("no"),icon:"ri-close-line",onClick:t[8]||(t[8]=y=>o.isDeleteConfirmVisible=!1),class:"p-button-text"},null,8,["label"]),e.createVNode(Z,{label:l.$t("yes"),icon:"ri-check-line",onClick:i.handleDeleteConfirmation,class:"p-button-danger",autofocus:""},null,8,["label","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("div",xh,[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",Sh,e.toDisplayString(l.$t("vuesUtilisateurs.confirmDelete",{name:l.loadedView.name})),1)):e.createCommentVNode("",!0)])]),_:1},8,["visible"])],64)}const Lc=J(zh,[["render",Jh]]),Uh={name:"AdvancedViewPanel",components:{PrimeAccordion:p2,PrimeAccordionTab:u2,UserViewsFavoritesPanel:Na,PrimeSelectButton:yl,PrimeInputText:we,PrimeAutoComplete:n2,PrimeButton:L,AddCriterionPopup:ga,SaveViewPopup:Aa,PrimeDialog:Je,TreeExplorer:il},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(Ae,["isPristyAdmin"]),..._.mapState(Lt,["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 re().METADATA.filter(t=>t.display&&t.display.includes("advancedSearch"))}},methods:{..._.mapActions(Ae,["checkPristyAdminStatus"]),..._.mapActions(Lt,["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,s,o;const i={locations:JSON.parse(JSON.stringify(this.locations)),criteria:JSON.parse(JSON.stringify(this.criteria))};t?(a=this.saveCurrentView,o="vuesUtilisateurs.addsSavedViewSuccess",s={id:crypto.randomUUID(),name:l.name,description:l.description,scope:l.scope,config:i}):(a=this.updateCurrentView,o="vuesUtilisateurs.modifySavedViewSuccess",s={...this.loadedView,name:l.name,description:l.description,config:i});try{await a(s),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 Oe.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)}}},Hh={key:0,class:"p-2 mb-3 border-1 border-round border-blue-200 bg-blue-50 text-blue-700"},Qh={class:"font-bold"},Bh={class:"mt-2 mb-3"},Eh={key:0,class:"text-center text-gray-500 p-3 border-1 border-dashed border-round"},Ph={key:1,class:"flex flex-column gap-2"},_h={class:"font-bold mr-1"},Kh={class:"text-gray-700 flex-grow-1"},$h={class:"mt-4"},qh={key:0,class:"text-center text-gray-500 p-3 border-1 border-dashed border-round"},e5={key:1,class:"flex flex-column gap-2"},t5={class:"flex-grow-1"},l5={class:"font-bold mr-1"},a5={class:"font-italic mr-1"},o5={class:"text-gray-700"},s5={key:3,class:"flex gap-2 mt-2"},i5={class:"p-fluid formgrid grid"},n5={class:"field col-12"},c5={class:"field col-12"},r5={key:0,class:"field col-12"},d5={class:"flex align-items-center"},m5={key:0};function b5(l,t,a,s,o,i){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("UserViewsFavoritesPanel"),r=e.resolveComponent("PrimeAccordionTab"),m=e.resolveComponent("PrimeAccordion"),h=e.resolveComponent("AddCriterionPopup"),Z=e.resolveComponent("SaveViewPopup"),p=e.resolveComponent("PrimeSelectButton"),Y=e.resolveComponent("PrimeAutoComplete"),A=e.resolveComponent("PrimeInputText"),X=e.resolveComponent("PrimeDialog"),z=e.resolveComponent("TreeExplorer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[i.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]=y=>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:i.handleLoadView},null,8,["onLoadView"])]),_:1},8,["header"]),e.createVNode(r,{header:l.$t("vuesUtilisateurs.queryBuilder")},{default:e.withCtx(()=>[i.isSavedViewLoaded?(e.openBlock(),e.createElementBlock("div",Hh,[e.createTextVNode(e.toDisplayString(l.$t("vuesUtilisateurs.loadedViewMessage"))+" ",1),e.createElementVNode("span",Qh,e.toDisplayString(l.loadedView.name),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",Bh,[e.createElementVNode("h5",null,e.toDisplayString(l.$t("vuesUtilisateurs.locationsTitle")),1),l.locations.length===0?(e.openBlock(),e.createElementBlock("div",Eh,e.toDisplayString(l.$t("vuesUtilisateurs.noLocations")),1)):(e.openBlock(),e.createElementBlock("div",Ph,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.locations,(y,I)=>(e.openBlock(),e.createElementBlock("div",{key:y.id,class:e.normalizeClass(["flex align-items-center p-2 border-1 border-round",y.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",y.negation?"bg-red-100 text-red-700":"bg-green-100 text-green-700"])},e.toDisplayString(y.negation?l.$t("vuesUtilisateurs.excludePrefix"):l.$t("vuesUtilisateurs.includePrefix")),3),e.createElementVNode("span",_h,e.toDisplayString(y.type==="Site"?l.$t("vuesUtilisateurs.locationSite"):l.$t("folder")),1),e.createElementVNode("span",Kh,e.toDisplayString(y.label),1),e.createVNode(n,{icon:"ri-delete-bin-line",text:"",rounded:"",severity:"danger","aria-label":l.$t("vuesUtilisateurs.removeLocation"),onClick:j=>l.removeLocation(I)},null,8,["aria-label","onClick"])],2))),128))])),e.createVNode(n,{icon:"ri-add-line",label:l.$t("vuesUtilisateurs.addLocationButton"),onClick:t[1]||(t[1]=y=>o.isAddLocationDialogVisible=!0),class:"mt-2 w-full",outlined:""},null,8,["label"])]),e.createElementVNode("div",$h,[e.createElementVNode("h5",null,e.toDisplayString(l.$t("vuesUtilisateurs.criteriaTitle")),1),l.criteria.length===0?(e.openBlock(),e.createElementBlock("div",qh,e.toDisplayString(l.$t("vuesUtilisateurs.noCriteria")),1)):(e.openBlock(),e.createElementBlock("div",e5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.criteria,(y,I)=>(e.openBlock(),e.createElementBlock("div",{key:y.id,class:"flex align-items-center p-2 border-1 border-round border-gray-200"},[e.createElementVNode("div",t5,[e.createElementVNode("span",l5,e.toDisplayString(l.$t(y.property.labelId)),1),e.createElementVNode("span",{class:e.normalizeClass([y.negation?"text-red-500":"text-primary","mx-1"])},e.toDisplayString(y.negation?l.$t("vuesUtilisateurs.mustNotContain"):l.$t("vuesUtilisateurs.mustContain")),3),e.createElementVNode("span",a5,e.toDisplayString(l.$t(y.operatorLabelKey)),1),e.createElementVNode("span",o5,e.toDisplayString(i.formatCriterionValueForDisplay(y)),1)]),e.createVNode(n,{icon:"ri-delete-bin-line","aria-label":l.$t("delete"),text:"",rounded:"",severity:"danger",onClick:j=>l.removeCriterion(I)},null,8,["aria-label","onClick"])]))),128))])),e.createVNode(n,{icon:"ri-add-line",label:l.$t("vuesUtilisateurs.addCriterionButton"),onClick:t[2]||(t[2]=y=>o.isAddCriterionDialogVisible=!0),class:"mt-3 w-full",outlined:""},null,8,["label"]),i.hasActiveCriteria?(e.openBlock(),e.createBlock(n,{key:2,icon:"ri-save-3-line",label:l.$t("vuesUtilisateurs.saveView"),onClick:i.openSaveViewPopup,class:"mt-3 w-full"},null,8,["label","onClick"])):e.createCommentVNode("",!0),i.canManageLoadedView?(e.openBlock(),e.createElementBlock("div",s5,[e.createVNode(n,{icon:"ri-pencil-line",label:l.$t("vuesUtilisateurs.modifyView"),onClick:i.modifyView,class:"w-full",severity:"secondary"},null,8,["label","onClick"]),e.createVNode(n,{icon:"ri-delete-bin-line",label:l.$t("vuesUtilisateurs.deleteView"),onClick:i.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]=y=>o.isAddCriterionDialogVisible=y),properties:i.availableProperties,onAddCriterion:i.handleCriterionAdded},null,8,["visible","properties","onAddCriterion"]),e.createVNode(Z,{visible:o.saveViewDialogVisible,"onUpdate:visible":t[4]||(t[4]=y=>o.saveViewDialogVisible=y),"view-data":i.viewToEdit,"error-message":o.saveViewError,onSaveView:i.handleSaveView,onClearError:i.clearSaveViewError},null,8,["visible","view-data","error-message","onSaveView","onClearError"]),e.createVNode(X,{visible:o.isAddLocationDialogVisible,"onUpdate:visible":t[10]||(t[10]=y=>o.isAddLocationDialogVisible=y),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]=y=>o.isAddLocationDialogVisible=!1),text:""},null,8,["label"]),e.createVNode(n,{label:l.$t("vuesUtilisateurs.addLocationConfirm"),icon:"ri-check-line",onClick:i.confirmAddLocation,disabled:!o.newLocation.type||!o.newLocation.value,autofocus:""},null,8,["label","onClick","disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",i5,[e.createElementVNode("div",n5,[e.createElementVNode("label",null,e.toDisplayString(l.$t("vuesUtilisateurs.conditionLabel")),1),e.createVNode(p,{modelValue:o.newLocation.negation,"onUpdate:modelValue":t[5]||(t[5]=y=>o.newLocation.negation=y),options:i.negationOptions,optionLabel:"label",optionValue:"value",class:"w-full"},null,8,["modelValue","options"])]),e.createElementVNode("div",c5,[e.createElementVNode("label",null,e.toDisplayString(l.$t("vuesUtilisateurs.locationTypeLabel")),1),e.createVNode(p,{modelValue:o.newLocation.type,"onUpdate:modelValue":t[6]||(t[6]=y=>o.newLocation.type=y),options:i.locationOptions,optionLabel:"label",optionValue:"value",class:"w-full"},null,8,["modelValue","options"])]),o.newLocation.type?(e.openBlock(),e.createElementBlock("div",r5,[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]=y=>o.newLocationSiteInput=y),suggestions:o.filteredSites,optionLabel:"title",onComplete:i.searchSites,onItemSelect:i.handleNewLocationSiteSelect,placeholder:l.$t("vuesUtilisateurs.sitePlaceholder"),class:"w-full",forceSelection:""},null,8,["modelValue","suggestions","onComplete","onItemSelect","placeholder"])):(e.openBlock(),e.createBlock(A,{key:1,value:o.newLocation.value,placeholder:l.$t("vuesUtilisateurs.folderPlaceholder"),onClick:t[8]||(t[8]=y=>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]=y=>o.isDossierTreeVisible=y),header:l.$t("folder"),modal:"",class:"w-full md:w-6"},{default:e.withCtx(()=>[e.createVNode(z,{"current-node":null,showUserHome:"",onSelectNode:i.handleDossierSelected},null,8,["onSelectNode"])]),_:1},8,["visible","header"]),e.createVNode(X,{visible:o.isDeleteConfirmVisible,"onUpdate:visible":t[13]||(t[13]=y=>o.isDeleteConfirmVisible=y),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]=y=>o.isDeleteConfirmVisible=!1),class:"p-button-text"},null,8,["label"]),e.createVNode(n,{label:l.$t("yes"),icon:"ri-check-line",onClick:i.handleDeleteConfirmation,class:"p-button-danger",autofocus:""},null,8,["label","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("div",d5,[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",m5,e.toDisplayString(l.$t("vuesUtilisateurs.confirmDelete",{name:l.loadedView.name})),1)):e.createCommentVNode("",!0)])]),_:1},8,["visible"])],64)}const Dc=J(Uh,[["render",b5]]),p5={name:"FavoriteViewMenu",props:{menuClass:{type:String,default:""}},emits:["menuitem-click"],computed:{..._.mapState(Lt,{model:"favoriteViews"})},methods:{..._.mapActions(Lt,["fetchFavoriteViews"]),onMenuItemClick(l){this.$emit("menuitem-click",l)}},async mounted(){await this.fetchFavoriteViews()}},u5={class:"menuItem mt-3"},Z5={key:0},h5={class:"layout-menu"},y5={class:"overflow-hidden text-overflow-ellipsis white-space-nowrap"};function W5(l,t,a,s,o,i){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",u5,[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",Z5,[e.createElementVNode("ul",h5,[(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:Z=>i.onMenuItemClick({originalEvent:Z,item:m})},{default:e.withCtx(()=>[e.createElementVNode("span",y5,e.toDisplayString(m.label),1)]),_:2},1032,["aria-label","to","onClick"])),[[c],[r,m.label]])]))),128))])])):e.createCommentVNode("",!0)],64)}const Rc=J(p5,[["render",W5],["__scopeId","data-v-14eafe86"]]),g5={class:"p-fluid"},Y5={class:"p-field mb-3"},N5={for:"filename"},A5={class:"p-field"},X5={for:"location"},z5={class:"p-inputgroup"},M5={key:0,class:"mt-3 border-1 surface-border p-2 overflow-y-auto"},O5={__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}=ll.useI18n(),s=l,o=t,i=e.ref(""),n=e.ref(null),c=e.ref(!1),r=e.ref(null),m=e.ref(""),h=()=>{i.value=s.defaultFilename||a("pdfTools.saveAs.defaultFilename"),n.value=s.parentFolderNode,r.value=s.parentFolderNode?.id,m.value=s.parentFolderNode?.name,c.value=!1},Z=async Y=>{if(!(!Y||!Y.isFolder)){if(Y.name==="documentLibrary")if(r.value=Y.id,Y.parentId)try{const A=await S.getNode(Y.parentId);m.value=A.properties["cm:title"]||A.name}catch(A){console.error("Could not fetch parent node name",A),m.value=Y.name}else m.value=Y.name;else r.value=Y.id,m.value=Y.name;c.value=!1}},p=()=>{r.value&&o("save",{filename:i.value,folderId:r.value})};return(Y,A)=>(e.openBlock(),e.createBlock(e.unref(Je),{visible:l.visible,modal:"",header:Y.$t("pdfTools.saveAs.title"),class:"dialog-save-as","onUpdate:visible":A[3]||(A[3]=X=>Y.$emit("close")),onShow:h},{footer:e.withCtx(()=>[e.createVNode(e.unref(L),{label:Y.$t("pdfTools.common.cancel"),icon:"pi pi-times",onClick:A[2]||(A[2]=X=>Y.$emit("close")),class:"p-button-text"},null,8,["label"]),e.createVNode(e.unref(L),{label:Y.$t("pdfTools.common.save"),icon:"pi pi-check",onClick:p,disabled:!i.value||!r.value},null,8,["label","disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",g5,[e.createElementVNode("div",Y5,[e.createElementVNode("label",N5,e.toDisplayString(Y.$t("pdfTools.saveAs.filenameLabel")),1),e.createVNode(e.unref(we),{id:"filename",modelValue:i.value,"onUpdate:modelValue":A[0]||(A[0]=X=>i.value=X)},null,8,["modelValue"])]),e.createElementVNode("div",A5,[e.createElementVNode("label",X5,e.toDisplayString(Y.$t("pdfTools.saveAs.folderLabel")),1),e.createElementVNode("div",z5,[e.createVNode(e.unref(we),{id:"location",readonly:"",value:m.value},null,8,["value"]),e.createVNode(e.unref(L),{icon:c.value?"pi pi-chevron-up":"pi pi-chevron-down",label:Y.$t("pdfTools.saveAs.browse"),onClick:A[1]||(A[1]=X=>c.value=!c.value)},null,8,["icon","label"])])]),c.value?(e.openBlock(),e.createElementBlock("div",M5,[e.createVNode(il,{"current-node":n.value,"show-user-home":"","show-files":!1,onSelectNode:Z},null,8,["current-node"])])):e.createCommentVNode("",!0)])]),_:1},8,["visible","header"]))}},j5=[1,.92,.23],G5=4,T5=({doc:l,page:t,rect:a,text:s,title:o})=>{const i=String(s??"");if(!i.trim())return;const n=l.context.obj({Type:"Annot",Subtype:"Text",Name:"Comment",Rect:[a.x,a.y,a.x+a.size,a.y+a.size],Contents:de.PDFHexString.fromText(i),T:de.PDFHexString.fromText(String(o??"")),C:j5,F:G5});t.node.addAnnot(l.context.register(n))},w5=l=>{const t=l.node.Annots();if(!t)return[];const a=[];for(let s=0;s<t.size();s++){const o=t.lookup(s);if(o?.get(de.PDFName.of("Subtype"))!==de.PDFName.of("Text"))continue;const i=o.get(de.PDFName.of("Rect"))?.asRectangle();if(!i)continue;const n=o.get(de.PDFName.of("Contents"));a.push({x:i.x,y:i.y,size:Math.max(i.width,i.height),text:typeof n?.decodeText=="function"?n.decodeText():""})}return a},f5=l=>{const t=l.node.Annots();if(t)for(let a=t.size()-1;a>=0;a--)t.lookup(a)?.get(de.PDFName.of("Subtype"))===de.PDFName.of("Text")&&t.remove(a)},I5=72,v5=200,L5=16e6,D5=async({pdfPage:l,redactions:t=[],dpi:a=v5,quality:s=.85,mimeType:o="image/jpeg",maxPixels:i=L5,createCanvas:n=()=>document.createElement("canvas")})=>{let c=a/I5;const r=l.getViewport({scale:c}),m=r.width*r.height;m>i&&(c=Math.floor(c*Math.sqrt(i/m)*1e4)/1e4);const h=l.getViewport({scale:c}),Z=n();Z.width=Math.floor(h.width),Z.height=Math.floor(h.height);const p=Z.getContext("2d");if(await l.render({canvasContext:p,viewport:h}).promise,t.length>0){p.fillStyle="#000000";for(const Y of t)p.fillRect(Y.x*Z.width,Y.y*Z.height,Y.w*Z.width,Y.h*Z.height)}return Z.toDataURL(o,s)},Xa=1.2,R5=8,k5=({overlayWidth:l,pageWidthPt:t})=>!t||!l?1:l/t,Io=l=>String(l??"").split(/\r?\n/),C5=({lines:l,fontSize:t,measureLine:a})=>{const s=l.map(o=>a(o));return{w:Math.max(R5,...s),h:l.length*t*Xa}},F5=({topY:l,lineIndex:t,fontSize:a,ascentPt:s})=>l-t*a*Xa-s,V5={class:"pdf-tools-page"},x5={class:"pdf-tools-header"},S5={key:0},J5={key:0,class:"loading-container"},U5={key:1,class:"error-container"},H5={key:2,class:"pdf-editor-layout"},Q5={class:"pdf-tools-sidebar"},B5={class:"card"},E5={class:"p-fluid"},P5={class:"p-field"},_5={class:"p-field mt-4"},K5={class:"p-field mt-4"},$5={class:"flex flex-column gap-2"},q5={class:"p-field mt-4"},ey={class:"grid mt-2"},ty={class:"col-6"},ly={class:"col-6"},ay={class:"pdf-preview-container"},oy=["onClick","onDblclick"],sy={class:"page-selection"},iy={class:"page-actions"},ny={class:"thumbnail-content"},cy={class:"page-number"},ry={class:"flex align-items-center gap-2"},dy={class:"page-editor-toolbar"},my={class:"zoom-indicator"},by={class:"page-editor-body"},py={class:"tool-group"},uy={key:0,class:"mt-2"},Zy={class:"p-field"},hy={class:"block mb-1"},yy={class:"p-field"},Wy={class:"block mb-1",for:"text-size-slider"},gy={class:"p-field"},Yy={class:"block mb-1",id:"text-color-label"},Ny={class:"color-swatches",role:"group","aria-labelledby":"text-color-label"},Ay=["aria-label","aria-pressed","onClick"],Xy={class:"color-custom"},zy=["aria-label","placeholder","onKeydown"],My={class:"flex justify-content-between w-full"},Oy={class:"flex align-items-center gap-2"},jy={class:"signature-pad"},Gy={class:"flex gap-2"},Ty={class:"p-inputgroup mb-2"},wy={key:0,class:"flex align-items-center gap-2"},fy={key:1,class:"text-color-secondary"},Iy={key:2,class:"favorites-layout"},vy={class:"favorites-list"},Ly=["onClick"],Dy={class:"flex align-items-center gap-2 flex-grow-1"},Ry={class:"text-overflow-ellipsis"},ky={class:"favorites-preview"},Cy={key:0,class:"preview-placeholder"},Fy={class:"text-color-secondary"},Vy={key:1,class:"preview-placeholder"},xy={class:"text-color-secondary"},Sy={key:2,class:"preview-wrapper"},Jy={key:0,class:"preview-controls"},Uy={class:"page-info"},Hy={class:"preview-content"},Qy={key:0,class:"flex align-items-center gap-2"},By={key:1,class:"text-color-secondary"},Ey={key:2,class:"favorites-layout"},Py={class:"favorites-list"},_y=["onClick"],Ky={class:"flex align-items-center gap-2 flex-grow-1"},$y={class:"text-overflow-ellipsis"},qy={class:"favorites-preview"},eW={key:0,class:"preview-placeholder"},tW={class:"text-color-secondary"},lW={key:1,class:"preview-placeholder"},aW={class:"text-color-secondary"},oW={key:2,class:"preview-wrapper"},sW={key:0,class:"preview-controls"},iW={class:"page-info"},nW={class:"preview-content"},cW={class:"p-fluid"},rW={class:"p-field"},dW={for:"alfrescoNodeId"},mW={class:"text-color-secondary"},bW={class:"flex gap-2 align-items-center w-full justify-content-between"},pW={class:"flex flex-column flex-grow-1 mr-2 min-w-0"},uW={key:0,class:"text-color-secondary flex align-items-center gap-1"},ZW={class:"text-color-secondary flex-shrink-0"},hW={class:"text-overflow-ellipsis font-medium white-space-nowrap overflow-hidden flex-grow-1"},yW={key:1,class:"p-error"},WW={class:"ml-auto flex gap-2"},kc=24,Cc=J({__name:"PdfToolsComponent",props:{toast:{type:Object,required:!0},id:{type:String,required:!0},closable:{type:Boolean,default:!1}},emits:["close"],setup(l,{emit:t}){const{t:a}=ll.useI18n(),s=l,o=t,i=e.ref(!1),n=()=>{i.value&&!window.confirm(a("pdfTools.closeUnsaved"))||o("close")},c=e.ref(null),r=e.ref(null),m=e.ref([]),h=e.ref(!0),Z=e.ref(null),p=e.ref(null),Y=e.ref([]),A=e.ref(!1),X=e.ref(null),z=e.ref(1),y={SELECT:"select",REDACT:"redact",HIGHLIGHT:"highlight",COMMENT:"comment",IMAGE:"image",SIGNATURE:"signature",TEXT:"text"},I=e.ref(y.SELECT),j=e.ref([]),v=e.ref(null),C=e.ref(null),x=e.ref(null),D=e.ref(null),le=e.ref(null),G=e.ref({visible:!1,tool:null,x:0,y:0,value:"",index:-1}),T=e.ref(!1),F=e.ref(null);let q=!1,K=null,ee=!1,je=null;const $e=e.ref(""),ne=e.ref(-45),se=e.ref(5),He=[{label:"Helvetica",value:"Helvetica"},{label:"Times New Roman",value:"TimesRoman"},{label:"Courier",value:"Courier"}],ot=[{name:"black",value:"#000000"},{name:"white",value:"#ffffff"},{name:"red",value:"#e53935"},{name:"orange",value:"#fb8c00"},{name:"yellow",value:"#fdd835"},{name:"green",value:"#43a047"},{name:"blue",value:"#1e88e5"},{name:"purple",value:"#8e24aa"}],Re=e.ref("Helvetica"),ae=e.ref(18),Xe=e.ref("#000000"),V=e.ref(null),H=e.ref(!1),E=e.ref(null),ce=e.ref(""),Ge=e.ref(""),Wt=e.ref(null),rt=e.ref(null),Te=e.ref(!1),me=e.ref(""),Pe=e.ref(""),fe=e.ref(null),dt=e.computed(()=>me.value&&be(me.value)?!0:!!(fe.value&&fe.value.id)),qe=e.ref(""),gt=e.ref([]),jt=e.ref(!1),Kt=e.ref(!1),mt=e.ref([]),Rt=e.ref(!1),Gt=e.ref(!1),Fe=e.ref(null),{pdf:Ve}=xt.usePDF(Fe),xe=e.ref(1),_e=e.ref(0),Tt=e.ref(null),{pdf:kt}=xt.usePDF(Tt);e.onMounted(()=>{const d=s.id;d?Bl(d):(Z.value=a("pdfTools.loadError"),h.value=!1)});const Yt=d=>Y.value.some(b=>b.pageIndex===d.pageIndex),ml=d=>{p.value=d;const b=Y.value.findIndex(g=>g.pageIndex===d.pageIndex);b>-1?Y.value.splice(b,1):Y.value.push(d)},Bl=async d=>{h.value=!0,Z.value=null;try{const b=await S.getNode(d);Wt.value=b,V.value=b.parentId,Ge.value=b&&(b.name||b.properties&&b.properties["cm:name"])||"";const g=ze.getContentUrl(d);Tt.value=g;const W=await fetch(g);if(!W.ok)throw new Error(`HTTP error! status: ${W.status}`);const w=await W.arrayBuffer();r.value=new Uint8Array(w),await et(r.value),m.value.length>0&&(p.value=m.value[0])}catch(b){console.error("Error loading PDF from Alfresco:",b),Z.value=a("pdfTools.loadError")}finally{h.value=!1}},et=async d=>{c.value=await de.PDFDocument.load(d);const b=c.value.getPageCount();m.value=Array.from({length:b},(g,W)=>({pageIndex:W,pageNumber:W+1}))},Qe=async(d,{updatePages:b=!0}={})=>{const g=await d.save();r.value=g,i.value=!0;const W=new Blob([g],{type:"application/pdf"});Tt.value&&Tt.value.startsWith("blob:")&&URL.revokeObjectURL(Tt.value),Tt.value=URL.createObjectURL(W),b&&await et(g)},bl=async()=>{if(r.value){h.value=!0;try{const d=await de.PDFDocument.create(),b=m.value.map(w=>w.pageIndex),g=await de.PDFDocument.load(r.value);(await d.copyPages(g,b)).forEach(w=>d.addPage(w)),await Qe(d)}catch(d){console.error("Error reordering pages:",d),Z.value=a("pdfTools.reorderError")}finally{h.value=!1}}},El=async d=>{if(r.value){h.value=!0;try{const b=await de.PDFDocument.load(r.value),g=b.getPage(d.pageIndex),W=g.getRotation().angle;g.setRotation({type:de.RotationTypes.Degrees,angle:(W+90)%360}),await Qe(b,{updatePages:!1})}catch(b){console.error("Error rotating page:",b),Z.value=a("pdfTools.rotateError")}finally{h.value=!1}}},Pl=async()=>{if(Y.value.length===0||!r.value)return null;const d=await de.PDFDocument.create(),b=await de.PDFDocument.load(r.value),g=Y.value.map(w=>w.pageIndex).sort((w,M)=>w-M);return(await d.copyPages(b,g)).forEach(w=>d.addPage(w)),await d.save()},O=async()=>{if(!(!r.value||Y.value.length===0)){if(Y.value.length===m.value.length){s.toast.add({severity:"warn",summary:a("pdfTools.common.warning"),detail:a("pdfTools.deleteAllPagesWarning"),life:3e3});return}h.value=!0;try{const d=await de.PDFDocument.load(r.value),b=d.getPageCount(),g=new Set(Y.value.map(U=>U.pageIndex)),W=[];for(let U=0;U<b;U++)g.has(U)||W.push(U);const w=await de.PDFDocument.create();(await w.copyPages(d,W)).forEach(U=>w.addPage(U)),await Qe(w),Y.value=[],s.toast.add({severity:"success",summary:a("pdfTools.common.deleted"),detail:a("pdfTools.pagesDeletedSuccess"),life:3e3})}catch(d){console.error("Error deleting pages:",d),Z.value=a("pdfTools.deletePagesError")}finally{h.value=!1}}},P=async()=>{me.value="",fe.value=null,Pe.value="",Te.value=!0},ie=d=>{d.index===2&&mt.value.length===0&&!Rt.value&&Kl()},pe=async()=>{let d=null;if(fe.value?.id?d=fe.value.id:me.value&&(d=be(me.value)),!d){s.toast.add({severity:"warn",summary:a("pdfTools.common.warning"),detail:a("pdfTools.insertFromAlfresco.invalidInput"),life:3e3});return}await $t(d),Te.value=!1},be=d=>{if(!d)return null;const b=d.trim();if(/^[0-9a-fA-F-]{20,}$/.test(b))return b;const g=b.match(/workspace:\/\/SpacesStore\/([0-9a-fA-F-]{20,})/);if(g&&g[1])return g[1];const W=b.match(/\b(nodes|preview|renditions|content)\/?([0-9a-fA-F-]{20,})\b/);if(W&&W[2])return W[2];const w=b.match(/#\/(?:pdf-tools|consultation-pdf|edit-collabora)\/([0-9a-fA-F-]{20,})/);if(w&&w[1])return w[1];const M=b.match(/([0-9a-fA-F]{20,})/);return M&&M[1]?M[1]:null},Ne=async d=>{if(d?.content?.mimeType==="application/pdf"&&(fe.value=d,Pe.value="",d?.id)){Gt.value=!0,xe.value=1,_e.value=0;try{const b=ze.getContentUrl(d.id);Fe.value&&Fe.value.startsWith("blob:")&&URL.revokeObjectURL(Fe.value),Fe.value=b}catch(b){console.error("Error loading PDF preview:",b),Fe.value=null}finally{Gt.value=!1}}},Ie=()=>{xe.value<_e.value&&xe.value++},bt=()=>{xe.value>1&&xe.value--},_l=d=>{Pe.value="",d.isFolder?(fe.value=null,Pe.value=a("pdfTools.insertFromAlfresco.folderSelectError")):d.content?.mimeType!=="application/pdf"?(fe.value=null,Pe.value=a("pdfTools.insertFromAlfresco.fileTypeNotAllowedError")):Ne(d)},Tl=async()=>{if(Kt.value=!0,!qe.value||qe.value.trim().length<2){gt.value=[];return}jt.value=!0;try{const d=Ya();await d.queryStore(qe.value);const b=d.entries.map(g=>g.entry||g);gt.value=b.filter(g=>g.isFile&&g.content?.mimeType==="application/pdf")}catch(d){console.error("performSearch",d),gt.value=[]}finally{jt.value=!1}},Kl=async()=>{Rt.value=!0;try{const d=Jl();await d.loadFavorites(),mt.value=d.fileFavorites.filter(b=>b?.target?.file?.content?.mimeType==="application/pdf").map(b=>b.target.file)}catch(d){console.error("loadFavorites error:",d),mt.value=[]}finally{Rt.value=!1}},$t=async d=>{if(r.value){h.value=!0;try{if((await S.getNode(d)).content?.mimeType!=="application/pdf")throw new Error(a("pdfTools.invalidNodeForInsert"));const W=await(await S.getNodeContent(d)).arrayBuffer(),w=new Uint8Array(W),M=await de.PDFDocument.load(r.value),U=await de.PDFDocument.load(w),ue=U.getPageCount(),We=Array.from({length:ue},(Se,fl)=>fl);(await M.copyPages(U,We)).forEach(Se=>M.addPage(Se)),await Qe(M),Y.value=[],s.toast.add({severity:"success",summary:a("pdfTools.common.success"),detail:a("pdfTools.insertFromPristySuccess",{count:ue}),life:3e3})}catch(b){console.error("Error inserting from Alfresco:",b),Z.value=b?.message||a("pdfTools.insertFromPristyError"),s.toast.add({severity:"error",summary:a("pdfTools.common.error"),detail:Z.value,life:4e3})}finally{h.value=!1}}},wl=async d=>{const b=d.files?.[0];b&&await qt(b)},qt=async d=>{if(r.value){h.value=!0;try{const b=await de.PDFDocument.load(r.value),g=new Uint8Array(await d.arrayBuffer()),W=await de.PDFDocument.load(g),w=W.getPageCount(),M=Array.from({length:w},(ue,We)=>We);(await b.copyPages(W,M)).forEach(ue=>b.addPage(ue)),await Qe(b),Y.value=[],s.toast.add({severity:"success",summary:a("pdfTools.common.success"),detail:a("pdfTools.insertFromFileSuccess",{count:w}),life:3e3})}catch(b){console.error("Error inserting PDF:",b),Z.value=a("pdfTools.insertError")}finally{h.value=!1}}},pt=async()=>{if(!(!$e.value||Y.value.length===0||!r.value)){h.value=!0;try{const d=await de.PDFDocument.load(r.value),b=Y.value.map(g=>g.pageIndex);for(const g of b){const W=d.getPage(g),{width:w,height:M}=W.getSize();for(let U=0;U<se.value;U++)W.drawText($e.value,{x:w/(se.value+1)*(U+1)-150,y:M/(se.value+1)*(U+1),size:50,color:de.rgb(.95,.1,.1),opacity:.5,rotate:de.degrees(ne.value)})}await Qe(d,{updatePages:!1})}catch(d){console.error("Error adding watermark:",d),Z.value=a("pdfTools.watermarkError")}finally{h.value=!1}}},Oa=async()=>{if(r.value){h.value=!0;try{const d=new Blob([r.value],{type:"application/pdf"}),b=new File([d],"modified.pdf",{type:"application/pdf"}),g={majorVersion:!0,comment:"File modified via Pristy Espaces PDF tools"};await S.updateContentNode(s.id,b,g),i.value=!1,s.toast.add({severity:"success",summary:a("pdfTools.common.success"),detail:a("pdfTools.saveSuccess"),life:3e3})}catch(d){console.error("Error saving changes:",d),s.toast.add({severity:"error",summary:a("pdfTools.common.error"),detail:a("pdfTools.saveError"),life:3e3})}finally{h.value=!1}}},$l=async d=>{if(E.value=d,ce.value=a("pdfTools.saveAs.defaultFilename"),Wt.value&&Wt.value.parentId)try{rt.value=await S.getNode(Wt.value.parentId)}catch(b){console.error("Could not fetch parent node for Save As dialog",b),rt.value=null}else rt.value=null;H.value=!0},So=async({filename:d,folderId:b})=>{H.value=!1,h.value=!0;try{let g;if(E.value==="extract"?g=await Pl():g=r.value,!g)throw new Error(a("pdfTools.noContentToSave"));const W=new Blob([g],{type:"application/pdf"}),w=new File([W],d,{type:"application/pdf"});if(!b)throw new Error("No destination folder selected.");await ze.uploadFile(b,{},w),s.toast.add({severity:"success",summary:a("pdfTools.common.success"),detail:a("pdfTools.fileCreatedSuccess",{filename:d}),life:3e3})}catch(g){console.error('Error during "Save As":',g);const W=g.status===409?a("pdfTools.saveAs.conflictError"):a("pdfTools.saveAsError");s.toast.add({severity:"error",summary:a("pdfTools.common.error"),detail:W,life:4e3})}finally{h.value=!1}},ja=async()=>{const d=X.value;if(j.value=j.value.filter(b=>b.type!==y.COMMENT),!r.value||!d){ve();return}try{const b=await de.PDFDocument.load(r.value),g=$c(),W=Zg.value;for(const w of w5(b.getPage(d.pageIndex)))j.value.push({type:y.COMMENT,rect:{x:w.x*g,y:(W-(w.y+w.size))*g,w:w.size*g,h:w.size*g},payload:{text:w.text}})}catch(b){console.error("Error reading existing comments:",b)}ve()},pl=d=>{X.value=d||p.value,A.value=!0,z.value=1,j.value=[],tt.value=-1,setTimeout(()=>{Ct(),ja()},200)},N=()=>{A.value=!1,X.value=null},R=()=>{z.value=Math.min(4,z.value+.1)},$=()=>{z.value=Math.max(.2,z.value-.1)},oe=d=>{d===y.REDACT?window.confirm(a("pdfTools.redactWarning"))&&(I.value=d):I.value=d},ke=d=>{v.value=d.files?.[0]||null,v.value&&(C.value=null,I.value=y.IMAGE)},el=()=>{T.value=!0},wt=()=>{j.value.pop(),tt.value=-1,ve()},st=async d=>{if(!(!d||d.type!==y.IMAGE||d._loading||d._bitmap)){d._loading=!0;try{let b=null;d.payload?.file?b=d.payload.file:d.payload?.signature&&(b=new Blob([new Uint8Array(d.payload.signature)],{type:"image/png"})),b&&(d._bitmap=await createImageBitmap(b),ve())}catch(b){console.warn(a("pdfTools.imagePreviewUnavailable"),b)}finally{d._loading=!1}}},Ga=()=>{const d=x.value;if(!d)return null;const b=Array.from(d.querySelectorAll("canvas"));if(b.length===0)return null;const g=b.filter(U=>U.offsetParent!==null&&U.width>0&&U.height>0),W=g.length?g:b;let w=W[0],M=0;for(const U of W){const ue=U.getBoundingClientRect(),We=Math.max(0,ue.width)*Math.max(0,ue.height);We>M&&(w=U,M=We)}return w},Ct=()=>{const d=Ga();if(!d||!D.value)return;const b=d.getBoundingClientRect(),g=window.devicePixelRatio||1;D.value.style.width=b.width+"px",D.value.style.height=b.height+"px",D.value.width=Math.round(b.width*g),D.value.height=Math.round(b.height*g),ve()},tl=d=>{const b=D.value;if(!b)return{x:0,y:0};const g=b.getBoundingClientRect(),W=window.devicePixelRatio||1;return{x:(d.clientX-g.left)*W,y:(d.clientY-g.top)*W}};let ql=null,ft=null,ea=null,ul=null;const ug=e.computed(()=>{const d=X.value||p.value;if(!c.value||!d)return 0;try{return c.value.getPage(d.pageIndex).getSize().width}catch{return 0}}),Zg=e.computed(()=>{const d=X.value||p.value;if(!c.value||!d)return 0;try{return c.value.getPage(d.pageIndex).getSize().height}catch{return 0}}),$c=()=>k5({overlayWidth:D.value?.width||0,pageWidthPt:ug.value}),Jo=d=>Math.max(1,(Number(d?.size)||18)*$c()),qc=(d,b)=>{const g=D.value.getContext("2d"),W=Jo(b);g.save(),g.font=`${W}px ${b.font||"Helvetica"}`;const w=C5({lines:Io(d),fontSize:W,measureLine:M=>g.measureText(M).width});return g.restore(),w},hg=e.computed(()=>{const d=window.devicePixelRatio||1;if(G.value.tool===y.COMMENT)return{left:`${G.value.x/d}px`,top:`${G.value.y/d}px`};const b=G.value.index>=0?j.value[G.value.index]?.payload:{size:ae.value,font:Re.value,color:Xe.value},g=Jo(b)/d;return{left:`${G.value.x/d}px`,top:`${G.value.y/d}px`,font:`${g}px ${b?.font||"Helvetica"}`,lineHeight:Xa,color:b?.color||"#000000"}}),tt=e.ref(-1);let Uo=!1;const yg=e.computed(()=>I.value===y.TEXT||j.value[tt.value]?.type===y.TEXT),Wg=d=>{tt.value=d;const b=j.value[d];b?.type===y.TEXT&&(Uo=!0,Re.value=b.payload?.font||"Helvetica",ae.value=Number(b.payload?.size)||18,Xe.value=b.payload?.color||"#000000",e.nextTick(()=>{Uo=!1})),ve()};e.watch([Re,ae,Xe],()=>{if(Uo)return;const d=tt.value,b=j.value[d];if(!b||b.type!==y.TEXT)return;const g={...b.payload,font:Re.value,size:ae.value,color:Xe.value};j.value[d]={...b,payload:g,rect:{x:b.rect.x,y:b.rect.y,...qc(g.text,g)}},ve()});const er=()=>{const d=tt.value;d<0||!j.value[d]||(j.value.splice(d,1),tt.value=-1,ve())},Ho=d=>{if(d.key==="Escape"){G.value.visible&&gg(),tt.value=-1,I.value=y.SELECT,ve();return}const b=G.value.visible||["INPUT","TEXTAREA","SELECT"].includes(d.target?.tagName);d.key==="Delete"&&!b&&er()};e.watch(A,d=>{d?document.addEventListener("keydown",Ho):document.removeEventListener("keydown",Ho)}),e.onUnmounted(()=>document.removeEventListener("keydown",Ho));const tr=e.computed(()=>G.value.tool===y.COMMENT?{label:a("pdfTools.pageEditor.tools.comment"),placeholder:a("pdfTools.pageEditor.commentPlaceholder")}:{label:a("pdfTools.pageEditor.textInputLabel"),placeholder:a("pdfTools.pageEditor.textInputPlaceholder")}),lr=(d,b,g=-1)=>{const W=g>=0?j.value[g]:null;G.value={visible:!0,tool:b,x:W?W.rect.x:d.x,y:W?W.rect.y:d.y,value:W?String(W.payload?.text||""):"",index:g},ve(),e.nextTick(()=>le.value?.focus())},gg=()=>{G.value={...G.value,visible:!1,index:-1},ve()},Qo=()=>{if(!G.value.visible)return;const{value:d,index:b,x:g,y:W,tool:w}=G.value;if(G.value={...G.value,visible:!1,index:-1},!d.trim()){b>=0&&j.value.splice(b,1),ve();return}if(w===y.COMMENT){const ue={type:y.COMMENT,rect:{x:g,y:W,w:kc,h:kc},payload:{text:d}};b>=0?j.value[b]={...j.value[b],payload:{text:d}}:j.value.push(ue),tt.value=b>=0?b:j.value.length-1,ve();return}const M=b>=0?{...j.value[b].payload,text:d}:{text:d,font:Re.value,size:ae.value,color:Xe.value},U={x:g,y:W,...qc(d,M)};b>=0?j.value[b]={...j.value[b],rect:U,payload:M}:j.value.push({type:y.TEXT,rect:U,payload:M}),tt.value=b>=0?b:j.value.length-1,ve()},Yg=d=>{const b=tl(d),g=ar(b),W=g!==-1?j.value[g].type:null;(W===y.TEXT||W===y.COMMENT)&&lr(b,W,g)},ar=d=>{for(let b=j.value.length-1;b>=0;b--){const g=j.value[b].rect;if(d.x>=g.x&&d.x<=g.x+g.w&&d.y>=g.y&&d.y<=g.y+g.h)return b}return-1},Ng=d=>{const W=6*(window.devicePixelRatio||1)/2;for(let w=j.value.length-1;w>=0;w--){const M=j.value[w];if(M.type!==y.IMAGE)continue;const U=M.rect,ue=[{key:"tl",x:U.x,y:U.y},{key:"tr",x:U.x+U.w,y:U.y},{key:"bl",x:U.x,y:U.y+U.h},{key:"br",x:U.x+U.w,y:U.y+U.h}];for(const We of ue)if(d.x>=We.x-W&&d.x<=We.x+W&&d.y>=We.y-W&&d.y<=We.y+W)return{idx:w,corner:We.key}}return null},Ag=d=>{if(G.value.visible&&Qo(),I.value===y.REDACT||I.value===y.HIGHLIGHT)ee=!0,je=tl(d);else if(I.value===y.IMAGE||I.value===y.SELECT||I.value===y.TEXT||I.value===y.COMMENT){const b=tl(d),g=Ng(b);if(g){ea=g.idx,ul=g.corner,ft={p:b,rect:{...j.value[g.idx].rect}},D.value&&(D.value.style.cursor="nwse-resize");return}const W=ar(b);if(W!==-1&&(j.value[W].type===y.IMAGE||j.value[W].type===y.TEXT||j.value[W].type===y.COMMENT)){Wg(W),ql=W,ft={p:b,rect:{...j.value[W].rect}},D.value&&(D.value.style.cursor="move");return}if(tt.value=-1,I.value===y.TEXT||I.value===y.COMMENT){d.preventDefault(),lr(b,I.value);return}if(I.value===y.IMAGE){if(!v.value&&!C.value)return;const w={type:y.IMAGE,rect:{x:b.x,y:b.y,w:150,h:100},payload:{file:v.value,signature:C.value}};j.value.push(w),st(w),ve(),I.value=y.SELECT,v.value=null,C.value=null}}},Xg=d=>{if(ea!==null&&ul){const g=tl(d),W=j.value[ea];if(W){const w=ft.rect;let M=w.x,U=w.y,ue=w.w,We=w.h;const lt=g.x-ft.p.x,Se=g.y-ft.p.y;ul==="br"?(ue=Math.max(10,w.w+lt),We=Math.max(10,w.h+Se)):ul==="tr"?(ue=Math.max(10,w.w+lt),We=Math.max(10,w.h-Se),U=w.y+Se):ul==="bl"?(ue=Math.max(10,w.w-lt),M=w.x+lt,We=Math.max(10,w.h+Se)):ul==="tl"&&(ue=Math.max(10,w.w-lt),M=w.x+lt,We=Math.max(10,w.h-Se),U=w.y+Se),W.rect.x=M,W.rect.y=U,W.rect.w=ue,W.rect.h=We,ve()}return}if(ql!==null){const g=tl(d),W=j.value[ql];if(W){const w=g.x-ft.p.x,M=g.y-ft.p.y;W.rect.x=ft.rect.x+w,W.rect.y=ft.rect.y+M,ve()}return}if(!ee||!je)return;const b=tl(d);Zl.value={x:Math.min(je.x,b.x),y:Math.min(je.y,b.y),w:Math.abs(b.x-je.x),h:Math.abs(b.y-je.y)},ve()},zg=()=>{if(ql!==null||ea!==null){ql=null,ea=null,ul=null,ft=null,D.value&&(D.value.style.cursor="crosshair"),ve();return}ee&&Zl.value&&j.value.push({type:I.value,rect:{...Zl.value}}),ee=!1,je=null,Zl.value=null,ve()},Mg=()=>{ee&&(ee=!1,je=null,Zl.value=null,ve())},Zl=e.ref(null),ve=()=>{const d=tt.value,b=D.value;if(!b)return;const g=b.getContext("2d"),W=window.devicePixelRatio||1;g.clearRect(0,0,b.width,b.height);const w=(M,U)=>{if(!(G.value.visible&&U===G.value.index)){if(M.type===y.REDACT)g.fillStyle="rgba(0,0,0,1)",g.fillRect(M.rect.x,M.rect.y,M.rect.w,M.rect.h),g.strokeStyle="rgba(0,0,0,1)",g.strokeRect(M.rect.x,M.rect.y,M.rect.w,M.rect.h);else if(M.type===y.HIGHLIGHT)g.fillStyle="rgba(255, 235, 59, 0.4)",g.fillRect(M.rect.x,M.rect.y,M.rect.w,M.rect.h),g.strokeStyle="rgba(255, 193, 7, 0.8)",g.strokeRect(M.rect.x,M.rect.y,M.rect.w,M.rect.h);else if(M.type===y.COMMENT)jg(g,M.rect.x,M.rect.y,20*W),U===d&&(g.save(),g.strokeStyle="#0ea5e9",g.lineWidth=2*W,g.setLineDash([4*W,4*W]),g.strokeRect(M.rect.x,M.rect.y,M.rect.w,M.rect.h),g.restore());else if(M.type===y.IMAGE){if(st(M),M._bitmap&&g.drawImage(M._bitmap,M.rect.x,M.rect.y,M.rect.w,M.rect.h),g.strokeStyle=U===d?"#0ea5e9":"rgba(33,150,243,0.9)",g.lineWidth=U===d?2*W:1*W,g.strokeRect(M.rect.x,M.rect.y,M.rect.w,M.rect.h),U===d){g.fillStyle="#0ea5e9";const ue=6*W,We=ue/2;[[M.rect.x,M.rect.y],[M.rect.x+M.rect.w,M.rect.y],[M.rect.x,M.rect.y+M.rect.h],[M.rect.x+M.rect.w,M.rect.y+M.rect.h]].forEach(([Se,fl])=>{g.fillRect(Se-We,fl-We,ue,ue)})}}else if(M.type===y.TEXT){const ue=M.payload||{},We=Jo(ue);g.save(),g.fillStyle=ue.color||"#000",g.font=`${We}px ${ue.font||"Helvetica"}`,g.textBaseline="top";let lt=M.rect.y;for(const Se of Io(ue.text))g.fillText(Se,M.rect.x,lt),lt+=We*Xa;g.restore(),g.save(),g.strokeStyle=U===d?"#0ea5e9":"rgba(33,150,243,0.5)",g.lineWidth=U===d?2*W:1*W,g.setLineDash([4*W,4*W]),g.strokeRect(M.rect.x,M.rect.y,M.rect.w,M.rect.h),g.restore()}}};if(j.value.forEach(w),Zl.value){const M=Zl.value;g.setLineDash([6*W,4*W]),g.strokeStyle=I.value===y.REDACT?"black":"goldenrod",g.strokeRect(M.x,M.y,M.w,M.h),g.setLineDash([])}},Og=d=>{let b=d.toString().trim();b.startsWith("#")&&(b=b.slice(1)),b.length===3&&(b=b.split("").map(U=>U+U).join(""));const g=parseInt(b||"000000",16),W=(g>>16&255)/255,w=(g>>8&255)/255,M=(g&255)/255;return{r:W,g:w,b:M}},jg=(d,b,g,W)=>{d.save(),d.translate(b,g),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()},Gg=async()=>{if(!(!r.value||!X.value)){h.value=!0;try{const d=await de.PDFDocument.load(r.value),b=X.value.pageIndex;let g=d.getPage(b);const{width:W,height:w}=g.getSize(),M=Ga();if(!M)throw new Error(a("pdfTools.pdfRenderCanvasNotFound"));if(j.value.some(De=>De.type===y.REDACT)){if(!window.confirm(a("pdfTools.redactFlattenConfirm"))){h.value=!1;return}const Eo=await(await kt.value.promise).getPage(b+1),Il=D.value,Po=await D5({pdfPage:Eo,redactions:j.value.filter(Ft=>Ft.type===y.REDACT).map(Ft=>({x:Ft.rect.x/Il.width,y:Ft.rect.y/Il.height,w:Ft.rect.w/Il.width,h:Ft.rect.h/Il.height}))}),_o=await(await fetch(Po)).arrayBuffer(),Ko=await d.embedJpg(_o),Ta=d.insertPage(b+1,[W,w]);Ta.drawImage(Ko,{x:0,y:0,width:W,height:w}),g=Ta}const ue=M.getBoundingClientRect(),We=M.width,lt=M.height,Se=window.devicePixelRatio||1,fl=We/ue.width,cr=lt/ue.height,rr=W/We,dr=w/lt;f5(g);for(const De of j.value){const br=De.rect.x/Se,Eo=De.rect.y/Se,Il=De.rect.w/Se,Po=De.rect.h/Se,_o=br*fl,Ko=Eo*cr,Ta=Il*fl,Ft=Po*cr,$o=Ta*rr,qo=Ft*dr,wa=_o*rr,fa=w-(Ko+Ft)*dr;if(De.type!==y.REDACT){if(De.type===y.HIGHLIGHT)g.drawRectangle({x:wa,y:fa,width:$o,height:qo,color:de.rgb(1,.92,.23),opacity:.4});else if(De.type===y.COMMENT)T5({doc:d,page:g,rect:{x:wa,y:fa,size:Math.max(14,$o)},text:De.payload?.text,title:a("pdfTools.pageEditor.tools.comment")});else if(De.type===y.IMAGE){let Nt=null;if(De.payload?.file?Nt=await De.payload.file.arrayBuffer():De.payload?.signature&&(Nt=De.payload.signature),Nt){let ta;try{ta=await d.embedPng(Nt)}catch{ta=await d.embedJpg(Nt)}g.drawImage(ta,{x:wa,y:fa,width:$o,height:qo,opacity:.98})}}else if(De.type===y.TEXT){const Nt=De.payload||{},ta=Nt.font==="TimesRoman"?de.StandardFonts.TimesRoman:Nt.font==="Courier"?de.StandardFonts.Courier:de.StandardFonts.Helvetica,e2=await d.embedFont(ta),t2=Math.max(6,Number(Nt.size)||18),{r:Rg,g:kg,b:Cg}=Og(Nt.color||"#000000"),Fg=fa+qo,Vg=e2.heightAtSize(t2,{descender:!1});Io(Nt.text).forEach((pr,xg)=>{pr&&g.drawText(pr,{x:wa,y:F5({topY:Fg,lineIndex:xg,fontSize:t2,ascentPt:Vg}),size:t2,font:e2,color:de.rgb(Rg,kg,Cg)})})}}}const mr=j.value.some(De=>De.type===y.REDACT);mr&&d.removePage(b),await Qe(d,{updatePages:mr}),j.value=[],tt.value=-1,await ja(),s.toast.add({severity:"success",summary:a("pdfTools.common.success"),detail:a("pdfTools.pageEditor.applySuccess"),life:2e3})}catch(d){console.error("Error applying overlay edits:",d),s.toast.add({severity:"error",summary:a("pdfTools.common.error"),detail:a("pdfTools.pageEditor.applyError"),life:3e3})}finally{h.value=!1}}};e.watch(z,()=>setTimeout(Ct,0)),e.watch(X,()=>setTimeout(Ct,0)),typeof window<"u"&&window.addEventListener("resize",()=>setTimeout(Ct,0));const Tg=()=>{z.value=1,setTimeout(Ct,0)},wg=()=>{const d=F.value;if(!d)return;const b=window.devicePixelRatio||1,g=440,W=180;d.style.width=g+"px",d.style.height=W+"px",d.width=Math.round(g*b),d.height=Math.round(W*b);const w=d.getContext("2d");w.fillStyle="#fff",w.fillRect(0,0,d.width,d.height)},fg=()=>{nr(),T.value=!1},or=d=>{q=!0,K=ir(d)},sr=d=>{if(!q)return;const b=ir(d);Lg(K,b),K=b},Ig=d=>or(d.touches[0]),vg=d=>sr(d.touches[0]),Bo=()=>{q=!1,K=null},ir=d=>{const g=F.value.getBoundingClientRect(),W=window.devicePixelRatio||1,w=d.clientX??d.pageX,M=d.clientY??d.pageY;return{x:(w-g.left)*W,y:(M-g.top)*W}},Lg=(d,b)=>{const W=F.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(b.x,b.y),W.stroke()},nr=()=>{const d=F.value;if(!d)return;const b=d.getContext("2d");b.fillStyle="#fff",b.fillRect(0,0,d.width,d.height)},Dg=()=>{const d=F.value;d&&d.toBlob(async b=>{C.value=await b.arrayBuffer(),I.value=y.IMAGE,T.value=!1})};return e.watch(T,d=>{d&&setTimeout(wg,0)}),e.watch(Ve,async d=>{if(!d){_e.value=0;return}try{const b=await d;_e.value=b.numPages}catch(b){console.error("Error loading preview PDF:",b),_e.value=0}}),(d,b)=>{const g=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock("div",V5,[e.createElementVNode("div",x5,[e.createElementVNode("h1",null,[e.createTextVNode(e.toDisplayString(d.$t("pdfTools.title"))+" ",1),Ge.value?(e.openBlock(),e.createElementBlock("span",S5,"— "+e.toDisplayString(Ge.value),1)):e.createCommentVNode("",!0)]),l.closable?(e.openBlock(),e.createBlock(e.unref(L),{key:0,class:"p-button-secondary flex-shrink-0",icon:"ri-close-line",label:d.$t("pdfTools.closeEditor"),onClick:n},null,8,["label"])):e.createCommentVNode("",!0)]),h.value?(e.openBlock(),e.createElementBlock("div",J5,[e.createVNode(e.unref(Zt)),e.createElementVNode("p",null,e.toDisplayString(d.$t("pdfTools.loading")),1)])):e.createCommentVNode("",!0),Z.value?(e.openBlock(),e.createElementBlock("div",U5,[e.createVNode(e.unref(it),{severity:"error"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(Z.value),1)]),_:1})])):e.createCommentVNode("",!0),!h.value&&!Z.value?(e.openBlock(),e.createElementBlock("div",H5,[e.createElementVNode("div",Q5,[e.createElementVNode("div",B5,[e.createElementVNode("h2",null,e.toDisplayString(d.$t("pdfTools.sidebar.actions")),1),e.createElementVNode("div",E5,[e.createVNode(e.unref(L),{icon:"ri-save-2-line",label:d.$t("pdfTools.sidebar.saveNewVersion"),onClick:Oa},null,8,["label"]),e.createVNode(e.unref(L),{class:"p-button-secondary mt-2",icon:"ri-file-copy-2-line",label:d.$t("pdfTools.sidebar.saveAs"),onClick:b[0]||(b[0]=W=>$l("saveAs"))},null,8,["label"]),e.createVNode(e.unref(vl)),e.createElementVNode("div",P5,[e.createElementVNode("h3",null,e.toDisplayString(d.$t("pdfTools.sidebar.extractPages")),1),e.createVNode(e.unref(L),{disabled:Y.value.length===0,icon:"ri-file-transfer-line",label:d.$t("pdfTools.sidebar.extractAndSave"),onClick:b[1]||(b[1]=W=>$l("extract"))},null,8,["disabled","label"])]),e.createElementVNode("div",_5,[e.createElementVNode("h3",null,e.toDisplayString(d.$t("pdfTools.sidebar.deletePages")),1),e.createVNode(e.unref(L),{disabled:Y.value.length===0||m.value.length===Y.value.length,class:"p-button-danger",icon:"ri-delete-bin-line",label:d.$t("pdfTools.sidebar.deleteSelectedPages"),onClick:O},null,8,["disabled","label"])]),e.createElementVNode("div",K5,[e.createElementVNode("h3",null,e.toDisplayString(d.$t("pdfTools.sidebar.insertPdf")),1),e.createElementVNode("div",$5,[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:wl},null,8,["choose-label"]),e.createVNode(e.unref(L),{class:"p-button-secondary",icon:"ri-cloud-line",label:d.$t("pdfTools.sidebar.fromPristy"),onClick:P},null,8,["label"])])]),e.createElementVNode("div",q5,[e.createElementVNode("h3",null,e.toDisplayString(d.$t("pdfTools.sidebar.addWatermark")),1),e.createVNode(e.unref(we),{modelValue:$e.value,"onUpdate:modelValue":b[2]||(b[2]=W=>$e.value=W),placeholder:d.$t("pdfTools.sidebar.watermarkTextPlaceholder"),type:"text"},null,8,["modelValue","placeholder"]),e.createElementVNode("div",ey,[e.createElementVNode("div",ty,[e.createVNode(e.unref(Ll),{modelValue:ne.value,"onUpdate:modelValue":b[3]||(b[3]=W=>ne.value=W),max:360,min:-360,placeholder:d.$t("pdfTools.sidebar.angle"),suffix:"°"},null,8,["modelValue","placeholder"])]),e.createElementVNode("div",ly,[e.createVNode(e.unref(Ll),{modelValue:se.value,"onUpdate:modelValue":b[4]||(b[4]=W=>se.value=W),max:10,min:1,placeholder:d.$t("pdfTools.sidebar.repetitions")},null,8,["modelValue","placeholder"])])]),e.createVNode(e.unref(L),{disabled:!$e.value||Y.value.length===0,class:"p-button-secondary mt-2",icon:"ri-paint-brush-line",label:d.$t("pdfTools.sidebar.addWatermarkButton"),onClick:pt},null,8,["disabled","label"])])])])]),e.createElementVNode("div",ay,[e.createElementVNode("h2",null,e.toDisplayString(d.$t("pdfTools.pagePreview.title")),1),e.createVNode(e.unref(b2.VueDraggableNext),{modelValue:m.value,"onUpdate:modelValue":b[5]||(b[5]=W=>m.value=W),class:"grid","ghost-class":"ghost","item-key":"pageIndex",onEnd:bl},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,W=>(e.openBlock(),e.createElementBlock("div",{key:W.pageIndex,class:"col-3"},[e.createElementVNode("div",{class:e.normalizeClass([{selected:Yt(W)},"page-thumbnail"]),onClick:w=>ml(W),onDblclick:e.withModifiers(w=>pl(W),["stop"])},[e.createElementVNode("div",sy,[e.createVNode(e.unref(St),{binary:"","model-value":Yt(W)},null,8,["model-value"])]),e.createElementVNode("div",iy,[e.createVNode(e.unref(L),{class:"p-button-rounded p-button-text",icon:"ri-clockwise-line","aria-label":d.$t("pdf.rotationRigth"),onClick:e.withModifiers(w=>El(W),["stop"])},null,8,["aria-label","onClick"]),e.createVNode(e.unref(L),{"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(w=>pl(W),["stop"])},null,8,["aria-label","onClick"])]),e.createElementVNode("div",ny,[e.createVNode(e.unref(xt.VuePDF),{annotations:!1,page:W.pageNumber,pdf:e.unref(kt),scale:.25,text:!1},null,8,["page","pdf"])]),e.createElementVNode("div",cy,e.toDisplayString(W.pageNumber),1)],42,oy)]))),128))]),_:1},8,["modelValue"])])])):e.createCommentVNode("",!0),e.createVNode(e.unref(Je),{visible:A.value,"onUpdate:visible":b[15]||(b[15]=W=>A.value=W),breakpoints:{"960px":"95vw","640px":"100vw"},closeOnEscape:!1,style:{width:"85vw",maxWidth:"1400px",height:"90vh"},dismissableMask:"",modal:"",class:"dialog-page-editor","content-class":"page-editor-dialog",onHide:N},{header:e.withCtx(()=>[e.createElementVNode("div",ry,[b[22]||(b[22]=e.createElementVNode("i",{class:"ri-file-fill","aria-hidden":"true"},null,-1)),e.createElementVNode("span",null,e.toDisplayString(d.$t("pdfTools.pageEditor.title",{pageNumber:(X.value||p.value)?.pageNumber||"",filename:Ge.value})),1)])]),footer:e.withCtx(()=>[e.createElementVNode("div",My,[e.createElementVNode("small",null,e.toDisplayString(d.$t("pdfTools.pageEditor.footerHint")),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",dy,[e.createVNode(e.unref(L),{class:"p-button-text",icon:"ri-zoom-out-line","aria-label":d.$t("pdf.dezoom"),onClick:$},null,8,["aria-label"]),e.createVNode(e.unref(L),{class:"p-button-text",icon:"ri-zoom-in-line","aria-label":d.$t("pdf.zoom"),onClick:R},null,8,["aria-label"]),e.createVNode(e.unref(L),{class:"p-button-text",label:d.$t("pdfTools.pageEditor.fit"),onClick:Tg},null,8,["label"]),e.createElementVNode("span",my,e.toDisplayString(Math.round(z.value*100))+"%",1),b[23]||(b[23]=e.createElementVNode("span",{class:"spacer"},null,-1)),e.createVNode(e.unref(L),{class:"p-button-text",icon:"ri-close-line",label:d.$t("pdfTools.pageEditor.close"),onClick:N},null,8,["label"])]),e.createElementVNode("div",by,[e.createElementVNode("div",py,[e.createElementVNode("h4",null,e.toDisplayString(d.$t("pdfTools.pageEditor.tools.actions")),1),e.createVNode(e.unref(L),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:I.value===y.SELECT}]]),icon:"ri-cursor-line",label:d.$t("pdfTools.pageEditor.tools.select"),onClick:b[6]||(b[6]=W=>oe(y.SELECT))},null,8,["class","label"]),e.createVNode(e.unref(L),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:I.value===y.REDACT}]]),icon:"ri-eraser-fill",label:d.$t("pdfTools.pageEditor.tools.redact"),onClick:b[7]||(b[7]=W=>oe(y.REDACT))},null,8,["class","label"]),e.createVNode(e.unref(L),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:I.value===y.HIGHLIGHT}]]),icon:"ri-mark-pen-line",label:d.$t("pdfTools.pageEditor.tools.highlight"),onClick:b[8]||(b[8]=W=>oe(y.HIGHLIGHT))},null,8,["class","label"]),e.createVNode(e.unref(L),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:I.value===y.COMMENT}]]),icon:"ri-sticky-note-line",label:d.$t("pdfTools.pageEditor.tools.comment"),onClick:b[9]||(b[9]=W=>oe(y.COMMENT))},null,8,["class","label"]),e.createVNode(e.unref(aa),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:I.value===y.IMAGE}]]),accept:"image/*","choose-label":d.$t("pdfTools.pageEditor.tools.image"),mode:"basic",name:"image",onSelect:ke},null,8,["class","choose-label"]),e.createVNode(e.unref(L),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:I.value===y.SIGNATURE}]]),icon:"ri-ball-pen-line",label:d.$t("pdfTools.pageEditor.tools.signature"),onClick:el},null,8,["class","label"]),e.createVNode(e.unref(L),{class:e.normalizeClass(["p-button-text p-button-secondary",[{active:I.value===y.TEXT}]]),icon:"ri-font-size",label:d.$t("pdfTools.pageEditor.tools.text"),onClick:b[10]||(b[10]=W=>oe(y.TEXT))},null,8,["class","label"]),yg.value?(e.openBlock(),e.createElementBlock("div",uy,[e.createElementVNode("div",Zy,[e.createElementVNode("label",hy,e.toDisplayString(d.$t("pdfTools.pageEditor.tools.font")),1),e.createVNode(e.unref(At),{modelValue:Re.value,"onUpdate:modelValue":b[11]||(b[11]=W=>Re.value=W),options:He,class:"w-full",optionLabel:"label",optionValue:"value"},null,8,["modelValue"])]),e.createElementVNode("div",yy,[e.createElementVNode("label",Wy,e.toDisplayString(d.$t("pdfTools.pageEditor.tools.size"))+" : "+e.toDisplayString(ae.value),1),e.createVNode(e.unref(wr),{id:"text-size-slider",modelValue:ae.value,"onUpdate:modelValue":b[12]||(b[12]=W=>ae.value=W),max:144,min:6,class:"w-full"},null,8,["modelValue"])]),e.createElementVNode("div",gy,[e.createElementVNode("label",Yy,e.toDisplayString(d.$t("pdfTools.pageEditor.tools.color")),1),e.createElementVNode("div",Ny,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(ot,W=>e.createElementVNode("button",{key:W.value,type:"button",class:e.normalizeClass(["color-swatch",{selected:Xe.value===W.value}]),style:e.normalizeStyle({backgroundColor:W.value}),"aria-label":d.$t(`pdfTools.pageEditor.colors.${W.name}`),"aria-pressed":Xe.value===W.value,onClick:w=>Xe.value=W.value},null,14,Ay)),64))]),e.createElementVNode("label",Xy,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":b[13]||(b[13]=W=>Xe.value=W),type:"color",class:"color-custom-input"},null,512),[[e.vModelText,Xe.value]]),e.createElementVNode("span",null,e.toDisplayString(d.$t("pdfTools.pageEditor.colors.custom")),1)])])])):e.createCommentVNode("",!0),e.createVNode(e.unref(vl)),e.createVNode(e.unref(L),{disabled:j.value.length===0,class:"p-button-info mt-auto w-full",icon:"ri-check-line",label:d.$t("pdfTools.pageEditor.apply"),onClick:Gg},null,8,["disabled","label"]),e.createVNode(e.unref(L),{disabled:j.value.length===0,class:"p-button-warning mt-1 w-full",icon:"ri-arrow-go-back-line",label:d.$t("pdfTools.pageEditor.cancel"),onClick:wt},null,8,["disabled","label"]),tt.value>=0?(e.openBlock(),e.createBlock(e.unref(L),{key:1,class:"p-button-danger mt-1 w-full",icon:"ri-delete-bin-line",label:d.$t("pdfTools.pageEditor.deleteSelected"),onClick:er},null,8,["label"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"page-editor-canvas",onWheelPassive:Ct,onScrollPassive:Ct},[e.createElementVNode("div",{ref_key:"pdfCanvasWrapper",ref:x,class:"pdf-canvas-wrapper"},[e.unref(kt)&&(X.value||p.value)?(e.openBlock(),e.createBlock(e.unref(xt.VuePDF),{key:0,annotations:"",page:(X.value||p.value).pageNumber,pdf:e.unref(kt),scale:z.value,text:!1,class:"absolute"},null,8,["page","pdf","scale"])):e.createCommentVNode("",!0),e.createElementVNode("canvas",{ref_key:"overlayCanvas",ref:D,class:"overlay-canvas",onDblclick:Yg,onMousedown:Ag,onMouseleave:Mg,onMousemove:Xg,onMouseup:zg},null,544),G.value.visible?e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:1,ref_key:"textEditorInput",ref:le,"onUpdate:modelValue":b[14]||(b[14]=W=>G.value.value=W),"aria-label":tr.value.label,placeholder:tr.value.placeholder,style:e.normalizeStyle(hg.value),class:"text-editor-input",onBlur:Qo,onKeydown:e.withKeys(e.withModifiers(Qo,["ctrl","prevent"]),["enter"])},null,44,zy)),[[e.vModelText,G.value.value]]):e.createCommentVNode("",!0)],512)],32)])]),_:1},8,["visible"]),e.createVNode(e.unref(Je),{visible:T.value,"onUpdate:visible":b[16]||(b[16]=W=>T.value=W),modal:"",class:"dialog-signature-pad",onHide:fg},{header:e.withCtx(()=>[e.createElementVNode("div",Oy,[b[24]||(b[24]=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",Gy,[e.createVNode(e.unref(L),{class:"p-button-text",label:d.$t("pdfTools.signaturePad.clear"),onClick:nr},null,8,["label"]),e.createVNode(e.unref(L),{class:"p-button-text",label:d.$t("pdfTools.signaturePad.use"),onClick:Dg},null,8,["label"])])]),default:e.withCtx(()=>[e.createElementVNode("div",jy,[e.createElementVNode("canvas",{ref_key:"signaturePadCanvas",ref:F,class:"signature-canvas",onMousedown:or,onMouseleave:Bo,onMousemove:sr,onMouseup:Bo,onTouchstart:e.withModifiers(Ig,["prevent"]),onTouchmove:e.withModifiers(vg,["prevent"]),onTouchend:e.withModifiers(Bo,["prevent"])},null,544)])]),_:1},8,["visible"]),e.createVNode(O5,{"default-filename":ce.value,visible:H.value,"parent-folder-node":rt.value,onClose:b[17]||(b[17]=W=>H.value=!1),onSave:So},null,8,["default-filename","visible","parent-folder-node"]),e.createVNode(e.unref(Je),{visible:Te.value,modal:"",header:d.$t("pdfTools.insertFromAlfresco.title"),class:"dialog-insert-pdf","onUpdate:visible":b[21]||(b[21]=W=>Te.value=!1)},{footer:e.withCtx(()=>[e.createElementVNode("div",bW,[e.createElementVNode("div",pW,[fe.value?(e.openBlock(),e.createElementBlock("div",uW,[e.createElementVNode("span",ZW,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.selected")),1),e.withDirectives((e.openBlock(),e.createElementBlock("span",hW,[e.createTextVNode(e.toDisplayString(fe.value?.name),1)])),[[g,fe.value?.name,void 0,{top:!0}]])])):e.createCommentVNode("",!0),Pe.value?(e.openBlock(),e.createElementBlock("div",yW,e.toDisplayString(Pe.value),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",WW,[e.createVNode(e.unref(L),{label:d.$t("pdfTools.insertFromAlfresco.cancel"),class:"p-button-text",onClick:b[20]||(b[20]=W=>Te.value=!1)},null,8,["label"]),e.createVNode(e.unref(L),{disabled:!dt.value,label:d.$t("pdfTools.insertFromAlfresco.insert"),icon:"ri-add-line",onClick:pe},null,8,["disabled","label"])])])]),default:e.withCtx(()=>[e.createVNode(e.unref(l2),{onTabChange:ie},{default:e.withCtx(()=>[e.createVNode(e.unref(kl),{header:d.$t("pdfTools.insertFromAlfresco.browse")},{default:e.withCtx(()=>[e.createVNode(il,{showUserHome:"",showFiles:"",onSelectNode:_l})]),_:1},8,["header"]),e.createVNode(e.unref(kl),{header:d.$t("pdfTools.insertFromAlfresco.search")},{default:e.withCtx(()=>[e.createElementVNode("div",Ty,[e.createVNode(e.unref(we),{modelValue:qe.value,"onUpdate:modelValue":b[18]||(b[18]=W=>qe.value=W),placeholder:d.$t("pdfTools.insertFromAlfresco.searchPlaceholder"),onKeyup:e.withKeys(Tl,["enter"])},null,8,["modelValue","placeholder"]),e.createVNode(e.unref(L),{icon:"ri-search-line","aria-label":d.$t("search"),onClick:Tl},null,8,["aria-label"])]),jt.value?(e.openBlock(),e.createElementBlock("div",wy,[e.createVNode(e.unref(Zt),{class:"spinner-sm",strokeWidth:"8"}),e.createElementVNode("span",null,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.searching")),1)])):!gt.value.length&&Kt.value?(e.openBlock(),e.createElementBlock("div",fy,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.noPdfFound")),1)):gt.value.length?(e.openBlock(),e.createElementBlock("div",Iy,[e.createElementVNode("div",vy,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(gt.value,W=>(e.openBlock(),e.createElementBlock("div",{key:W.id,class:e.normalizeClass(["favorite-item",{"favorite-item-selected":fe.value?.id===W.id}]),onClick:w=>Ne(W)},[e.createElementVNode("div",Dy,[b[25]||(b[25]=e.createElementVNode("i",{class:"ri-file-pdf-line","aria-hidden":"true"},null,-1)),e.withDirectives((e.openBlock(),e.createElementBlock("span",Ry,[e.createTextVNode(e.toDisplayString(W.name),1)])),[[g,W.name,void 0,{top:!0}]])])],10,Ly))),128))]),e.createElementVNode("div",ky,[fe.value?Gt.value?(e.openBlock(),e.createElementBlock("div",Vy,[e.createVNode(e.unref(Zt),{class:"w-3rem h-3rem",strokeWidth:"6"}),e.createElementVNode("p",xy,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.loadingPreview")),1)])):e.unref(Ve)?(e.openBlock(),e.createElementBlock("div",Sy,[_e.value>0?(e.openBlock(),e.createElementBlock("div",Jy,[e.createVNode(e.unref(L),{icon:"ri-arrow-left-s-line","aria-label":d.$t("pdf.previousPage"),class:"p-button-text p-button-sm",disabled:xe.value<=1,onClick:bt},null,8,["aria-label","disabled"]),e.createElementVNode("span",Uy,e.toDisplayString(xe.value)+" / "+e.toDisplayString(_e.value),1),e.createVNode(e.unref(L),{icon:"ri-arrow-right-s-line","aria-label":d.$t("pdf.nextPage"),class:"p-button-text p-button-sm",disabled:xe.value>=_e.value,onClick:Ie},null,8,["aria-label","disabled"])])):e.createCommentVNode("",!0),e.createElementVNode("div",Hy,[e.createVNode(e.unref(xt.VuePDF),{pdf:e.unref(Ve),page:xe.value,scale:.6,annotations:!1,text:!1},null,8,["pdf","page"])])])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Cy,[b[26]||(b[26]=e.createElementVNode("i",{class:"ri-file-pdf-line text-6xl text-color-secondary","aria-hidden":"true"},null,-1)),e.createElementVNode("p",Fy,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(()=>[Rt.value?(e.openBlock(),e.createElementBlock("div",Qy,[e.createVNode(e.unref(Zt),{class:"spinner-sm",strokeWidth:"8"}),e.createElementVNode("span",null,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.loading")),1)])):mt.value.length?(e.openBlock(),e.createElementBlock("div",Ey,[e.createElementVNode("div",Py,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(mt.value,W=>(e.openBlock(),e.createElementBlock("div",{key:W.id,class:e.normalizeClass(["favorite-item",{"favorite-item-selected":fe.value?.id===W.id}]),onClick:w=>Ne(W)},[e.createElementVNode("div",Ky,[b[27]||(b[27]=e.createElementVNode("i",{class:"ri-file-pdf-line","aria-hidden":"true"},null,-1)),e.withDirectives((e.openBlock(),e.createElementBlock("span",$y,[e.createTextVNode(e.toDisplayString(W.name),1)])),[[g,W.name,void 0,{top:!0}]])])],10,_y))),128))]),e.createElementVNode("div",qy,[fe.value?Gt.value?(e.openBlock(),e.createElementBlock("div",lW,[e.createVNode(e.unref(Zt),{class:"w-3rem h-3rem",strokeWidth:"6"}),e.createElementVNode("p",aW,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.loadingPreview")),1)])):e.unref(Ve)?(e.openBlock(),e.createElementBlock("div",oW,[_e.value>0?(e.openBlock(),e.createElementBlock("div",sW,[e.createVNode(e.unref(L),{icon:"ri-arrow-left-s-line","aria-label":d.$t("pdf.previousPage"),class:"p-button-text p-button-sm",disabled:xe.value<=1,onClick:bt},null,8,["aria-label","disabled"]),e.createElementVNode("span",iW,e.toDisplayString(xe.value)+" / "+e.toDisplayString(_e.value),1),e.createVNode(e.unref(L),{icon:"ri-arrow-right-s-line","aria-label":d.$t("pdf.nextPage"),class:"p-button-text p-button-sm",disabled:xe.value>=_e.value,onClick:Ie},null,8,["aria-label","disabled"])])):e.createCommentVNode("",!0),e.createElementVNode("div",nW,[e.createVNode(e.unref(xt.VuePDF),{pdf:e.unref(Ve),page:xe.value,scale:.6,annotations:!1,text:!1},null,8,["pdf","page"])])])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",eW,[b[28]||(b[28]=e.createElementVNode("i",{class:"ri-file-pdf-line text-6xl text-color-secondary","aria-hidden":"true"},null,-1)),e.createElementVNode("p",tW,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.selectPdfToPreview")),1)]))])])):(e.openBlock(),e.createElementBlock("div",By,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",cW,[e.createElementVNode("div",rW,[e.createElementVNode("label",dW,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.alfrescoIdUrl")),1),e.createVNode(e.unref(we),{id:"alfrescoNodeId",modelValue:me.value,"onUpdate:modelValue":b[19]||(b[19]=W=>me.value=W),placeholder:d.$t("pdfTools.insertFromAlfresco.alfrescoIdUrlHint")},null,8,["modelValue","placeholder"]),e.createElementVNode("small",mW,e.toDisplayString(d.$t("pdfTools.insertFromAlfresco.alfrescoIdUrlHint")),1)])])]),_:1},8,["header"])]),_:1})]),_:1},8,["visible","header"])])}}},[["__scopeId","data-v-d5ec9ef3"]]),gW={class:"version-selectors"},YW={class:"version-selector-group"},NW={key:0,class:"flex align-items-center gap-2"},AW={key:1},XW={class:"flex align-items-center gap-2"},zW={class:"version-selector-group"},MW={key:0,class:"flex align-items-center gap-2"},OW={key:1},jW={class:"flex align-items-center gap-2"},GW={key:0,class:"diff-content"},TW={class:"diff-headers"},wW={class:"header-a"},fW={class:"header-b"},IW={class:"diff-viewer"},vW={key:0,class:"loading-container"},LW={key:1,class:"error-container"},vo=J({__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}=ll.useI18n(),s=h2.useToast(),o=ya(),i=l,n=t,c=e.ref(i.visible),r=e.ref(null),m=e.ref(null),h=e.ref(""),Z=e.ref(""),p=e.ref(!1),Y=e.ref(null),A=e.ref(null),X=e.ref(null),z=e.computed(()=>{if(!i.versions)return[];const T=i.versions.map(F=>({label:`${a("diffViewer.version")} ${F.entry.id} (${new Date(F.entry.modifiedAt).toLocaleDateString()})`,id:F.entry.id})).reverse();return T.map((F,q)=>({...F,isCurrent:q===T.length-1}))}),y=e.computed(()=>z.value.filter(T=>T.id!==m.value)),I=e.computed(()=>z.value.filter(T=>T.id!==r.value)),j=e.computed(()=>{switch(i.contentNode?.content?.mimeType||""){case"text/html":return[r2.html()];case"text/markdown":case"text/x-markdown":return[oa.markdown()];case"application/json":return[Ra.json()];case"application/xml":case"text/xml":return[ka.xml()];case"application/x-yaml":case"text/yaml":return[sa.yaml()];default:return[]}}),v=T=>{c.value=T,n("update:visible",T)},C=async()=>{if(!(!r.value||!m.value)){p.value=!0,Y.value=null;try{const[T,F]=await Promise.all([S.getVersionContent(i.contentNode.id,r.value),S.getVersionContent(i.contentNode.id,m.value)]);let q=await T.text(),K=await F.text();if(i.contentNode?.content?.mimeType==="application/json")try{q=JSON.stringify(JSON.parse(q),null,2),K=JSON.stringify(JSON.parse(K),null,2)}catch(ee){console.error("Failed to format JSON:",ee)}h.value=q,Z.value=K,p.value=!1,await e.nextTick(),x()}catch(T){console.error("Error fetching versions:",T),Y.value=a("diffViewer.errors.loadError"),p.value=!1}}},x=()=>{if(X.value&&(X.value.destroy(),X.value=null),!A.value||!h.value&&!Z.value)return;const T=o.dark?c2.oneDark:al.syntaxHighlighting(al.defaultHighlightStyle,{fallback:!0}),F=[Le.lineNumbers(),...j.value,T,It.EditorState.readOnly.of(!0)];try{X.value=new vr.MergeView({a:{doc:h.value,extensions:F},b:{doc:Z.value,extensions:F},parent:A.value})}catch(q){console.error("Error creating MergeView:",q),Y.value="Failed to create diff view: "+q.message}},D=()=>{if(z.value.length>=2){const T=z.value.length;i.initialVersionId&&z.value.some(F=>F.id===i.initialVersionId)?(r.value=i.initialVersionId,m.value=z.value[T-1]?.id===i.initialVersionId?z.value[T-2]?.id:z.value[T-1]?.id):(r.value=z.value[T-2]?.id,m.value=z.value[T-1]?.id)}},le=T=>z.value.find(F=>F.id===T)?.isCurrent,G=async T=>{const F=a("diffViewer.restoredVersionComment",{versionNumber:T});try{await S.revertVersion(i.contentNode.id,T,F),n("revertVersion"),s.add({severity:"success",summary:a("diffViewer.revertVersion.success"),detail:a("diffViewer.revertVersion.successDetail"),life:3e3}),v(!1)}catch(q){console.error("Error reverting version:",q),s.add({severity:"error",summary:a("diffViewer.revertVersion.error"),detail:q.message,life:3e3})}};return e.watch(()=>i.visible,T=>{c.value=T,T?D():(X.value&&(X.value.destroy(),X.value=null),r.value=null,m.value=null,h.value="",Z.value="",Y.value=null)}),e.watch([r,m],()=>{r.value&&m.value&&C()}),e.watch(()=>i.versions,T=>{T&&T.length>=2&&c.value&&D()},{deep:!0}),(T,F)=>{const q=e.resolveDirective("tooltip");return e.openBlock(),e.createBlock(e.unref(Je),{visible:c.value,"onUpdate:visible":[F[4]||(F[4]=K=>c.value=K),v],header:T.$t("diffViewer.compareTitle"),modal:"",maximizable:"",class:"diff-viewer-dialog"},{default:e.withCtx(()=>[e.createElementVNode("div",gW,[e.createElementVNode("div",YW,[e.createVNode(e.unref(At),{modelValue:r.value,"onUpdate:modelValue":F[0]||(F[0]=K=>r.value=K),options:y.value,"option-label":"label","option-value":"id",placeholder:T.$t("diffViewer.selectVersionA"),class:"flex-grow-1"},{value:e.withCtx(K=>[K.value?(e.openBlock(),e.createElementBlock("div",NW,[e.createElementVNode("span",null,e.toDisplayString(z.value.find(ee=>ee.id===K.value)?.label),1),z.value.find(ee=>ee.id===K.value)?.isCurrent?(e.openBlock(),e.createBlock(e.unref(Fl),{key:0,value:T.$t("diffViewer.currentVersion"),severity:"info"},null,8,["value"])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("span",AW,e.toDisplayString(K.placeholder),1))]),option:e.withCtx(K=>[e.createElementVNode("div",XW,[e.createElementVNode("span",null,e.toDisplayString(K.option.label),1),K.option.isCurrent?(e.openBlock(),e.createBlock(e.unref(Fl),{key:0,value:T.$t("diffViewer.currentVersion"),severity:"info"},null,8,["value"])):e.createCommentVNode("",!0)])]),_:1},8,["modelValue","options","placeholder"]),r.value&&!le(r.value)?e.withDirectives((e.openBlock(),e.createBlock(e.unref(L),{key:0,type:"button",icon:"ri-history-line","aria-label":T.$t("diffViewer.revertToThisVersion",{versionNumber:r.value}),onClick:F[1]||(F[1]=K=>G(r.value)),severity:"secondary",rounded:"",text:""},null,8,["aria-label"])),[[q,T.$t("diffViewer.revertToThisVersion",{versionNumber:r.value}),void 0,{top:!0}]]):e.createCommentVNode("",!0)]),e.createElementVNode("div",zW,[e.createVNode(e.unref(At),{modelValue:m.value,"onUpdate:modelValue":F[2]||(F[2]=K=>m.value=K),options:I.value,"option-label":"label","option-value":"id",placeholder:T.$t("diffViewer.selectVersionB"),class:"flex-grow-1"},{value:e.withCtx(K=>[K.value?(e.openBlock(),e.createElementBlock("div",MW,[e.createElementVNode("span",null,e.toDisplayString(z.value.find(ee=>ee.id===K.value)?.label),1),z.value.find(ee=>ee.id===K.value)?.isCurrent?(e.openBlock(),e.createBlock(e.unref(Fl),{key:0,value:T.$t("diffViewer.currentVersion"),severity:"info"},null,8,["value"])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("span",OW,e.toDisplayString(K.placeholder),1))]),option:e.withCtx(K=>[e.createElementVNode("div",jW,[e.createElementVNode("span",null,e.toDisplayString(K.option.label),1),K.option.isCurrent?(e.openBlock(),e.createBlock(e.unref(Fl),{key:0,value:T.$t("diffViewer.currentVersion"),severity:"info"},null,8,["value"])):e.createCommentVNode("",!0)])]),_:1},8,["modelValue","options","placeholder"]),m.value&&!le(m.value)?e.withDirectives((e.openBlock(),e.createBlock(e.unref(L),{key:0,type:"button",icon:"ri-history-line","aria-label":T.$t("diffViewer.revertToThisVersion",{versionNumber:m.value}),onClick:F[3]||(F[3]=K=>G(m.value)),severity:"secondary",rounded:"",text:""},null,8,["aria-label"])),[[q,T.$t("diffViewer.revertToThisVersion",{versionNumber:m.value}),void 0,{top:!0}]]):e.createCommentVNode("",!0)])]),r.value&&m.value?(e.openBlock(),e.createElementBlock("div",GW,[e.createElementVNode("div",TW,[e.createElementVNode("div",wW,[e.createElementVNode("strong",null,e.toDisplayString(T.$t("diffViewer.version"))+" "+e.toDisplayString(r.value),1)]),e.createElementVNode("div",fW,[e.createElementVNode("strong",null,e.toDisplayString(T.$t("diffViewer.version"))+" "+e.toDisplayString(m.value),1)])]),e.createElementVNode("div",IW,[p.value?(e.openBlock(),e.createElementBlock("div",vW,[e.createVNode(e.unref(Zt))])):Y.value?(e.openBlock(),e.createElementBlock("div",LW,[F[5]||(F[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:A},null,512))])])):e.createCommentVNode("",!0)]),_:1},8,["visible","header"])}}},[["__scopeId","data-v-41095169"]]),DW={reconnectInterval:1e3,maxReconnectInterval:3e4,reconnectDecay:1.5,maxReconnectAttempts:10,heartbeatInterval:3e4,messageBufferSize:100},Ke={DISCONNECTED:"disconnected",CONNECTING:"connecting",CONNECTED:"connected",RECONNECTING:"reconnecting",ERROR:"error"};function Fc(l={}){const t={...DW,...l},a=e.ref(Ke.DISCONNECTED),s=e.ref(null),o=e.ref(null),i=e.ref(0),n=e.shallowRef([]);let c=null,r=null,m=null,h=null,Z=!1;const p={onConnected:[],onDisconnected:[],onMessage:[],onError:[],onReconnecting:[]},Y=(F,q)=>(p[F]&&p[F].push(q),()=>A(F,q)),A=(F,q)=>{if(p[F]){const K=p[F].indexOf(q);K>-1&&p[F].splice(K,1)}},X=(F,...q)=>{p[F]&&p[F].forEach(K=>K(...q))},z=F=>new Promise((q,K)=>{if(c&&c.readyState===WebSocket.OPEN){q();return}h=F,Z=!1,a.value=Ke.CONNECTING;try{c=new WebSocket(F),c.onopen=()=>{a.value=Ke.CONNECTED,i.value=0,s.value=null,v(),le(),X("onConnected"),q()},c.onclose=ee=>{C(),o.value=ee.code,a.value=Ke.DISCONNECTED,Z||(console.error(`[CollabWebSocket] Connection closed unexpectedly: code=${ee.code}, reason="${ee.reason}", wasClean=${ee.wasClean}`),ee.code===1009||ee.code===1008?a.value=Ke.ERROR:x()),X("onDisconnected",ee)},c.onerror=ee=>{s.value=ee,a.value=Ke.ERROR,X("onError",ee),K(ee)},c.onmessage=ee=>{try{const je=JSON.parse(ee.data);j(je)}catch(je){console.error("[CollabWebSocket] Failed to parse message:",je)}}}catch(ee){s.value=ee,a.value=Ke.ERROR,X("onError",ee),K(ee)}}),y=()=>{Z=!0,C(),D(),c&&(c.close(1e3,"User disconnected"),c=null),a.value=Ke.DISCONNECTED,n.value=[]},I=F=>{const q=JSON.stringify(F);return c&&c.readyState===WebSocket.OPEN?(c.send(q),!0):(n.value.length<t.messageBufferSize?n.value=[...n.value,q]:console.warn("[CollabWebSocket] Message buffer full, dropping message"),!1)},j=F=>{F.type!=="pong"&&X("onMessage",F)},v=()=>{C(),r=setInterval(()=>{c&&c.readyState===WebSocket.OPEN&&I({type:"ping"})},t.heartbeatInterval)},C=()=>{r&&(clearInterval(r),r=null)},x=()=>{if(i.value>=t.maxReconnectAttempts){console.error("[CollabWebSocket] Max reconnection attempts reached"),a.value=Ke.ERROR;return}a.value=Ke.RECONNECTING,i.value++;const F=Math.min(t.reconnectInterval*Math.pow(t.reconnectDecay,i.value-1),t.maxReconnectInterval);X("onReconnecting",i.value,F),m=setTimeout(()=>{h&&!Z&&(n.value=[],z(h).catch(()=>{}))},F)},D=()=>{m&&(clearTimeout(m),m=null)},le=()=>{if(c&&c.readyState===WebSocket.OPEN&&n.value.length>0){const F=[...n.value];n.value=[],F.forEach(q=>{c.send(q)})}},G=()=>{i.value=0,Z=!1},T=()=>c&&c.readyState===WebSocket.OPEN;return e.onUnmounted(()=>{y()}),{connectionState:e.readonly(a),lastError:e.readonly(s),lastCloseCode:e.readonly(o),reconnectAttempts:e.readonly(i),bufferedMessages:e.readonly(n),connect:z,disconnect:y,send:I,isConnected:T,resetReconnectAttempts:G,on:Y,off:A}}class RW{constructor(){this.basePath="/api/collab"}getBaseUrl(){return te.config.hostEcm}async getTicket(){return te.getTicketEcm()}createAuthHeader(t){return`Basic ${btoa(`ROLE_TICKET:${t}`)}`}async checkAvailability(t){try{const a=await this.getTicket(),s=await fetch(`${this.getBaseUrl()}/alfresco/s${this.basePath}/availability/${t}`,{method:"GET",headers:{Accept:"application/json",Authorization:this.createAuthHeader(a)}});if(!s.ok){if(s.status===404)return{available:!1,enabled:!1,permissionLevel:"NONE"};if(s.status===403)return{available:!1,enabled:!0,permissionLevel:"NONE",reason:"NO_READ_PERMISSION"};throw new Error(`HTTP ${s.status}: ${s.statusText}`)}return await s.json()}catch(a){throw console.error("[CollabService] Error checking availability:",a),B("collabService.checkAvailability",a)}}async initSession(t){try{const a=await this.getTicket(),s=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(!s.ok){const o=await s.json();throw new Error(o.error||`HTTP ${s.status}`)}return await s.json()}catch(a){throw console.error("[CollabService] Error initializing session:",a),B("collabService.initSession",a)}}getWebSocketUrl(){const t=this.getBaseUrl(),a=t.startsWith("https")?"wss":"ws",s=t.replace(/^https?:\/\//,"");return`${a}://${s}/alfresco/collab`}generateClientId(){const t="pristy.collab.clientId",a=()=>`client-${Date.now()}-${Math.random().toString(36).substring(2,11)}`;try{let s=sessionStorage.getItem(t);return s||(s=a(),sessionStorage.setItem(t,s)),s}catch{return a()}}}const Dt=new RW,kW="pristy-collab-backups",Et="backups",CW=1;let jl=null;const Lo=()=>jl?Promise.resolve(jl):new Promise((l,t)=>{const a=indexedDB.open(kW,CW);a.onupgradeneeded=s=>{const o=s.target.result;o.objectStoreNames.contains(Et)||o.createObjectStore(Et,{keyPath:"nodeId"})},a.onsuccess=s=>{jl=s.target.result,jl.onclose=()=>{jl=null},l(jl)},a.onerror=s=>{t(s.target.error)}}),Pt={async saveBackup(l,t,a){try{const s=await Lo();return new Promise((o,i)=>{const n=s.transaction(Et,"readwrite");n.objectStore(Et).put({nodeId:l,content:t,timestamp:Date.now(),sessionId:a}),n.oncomplete=()=>o(),n.onerror=r=>i(r.target.error)})}catch(s){console.warn("[CollabBackup] Failed to save backup:",s)}},async loadBackup(l){try{const t=await Lo();return new Promise((a,s)=>{const n=t.transaction(Et,"readonly").objectStore(Et).get(l);n.onsuccess=()=>a(n.result||null),n.onerror=c=>s(c.target.error)})}catch(t){return console.warn("[CollabBackup] Failed to load backup:",t),null}},async clearBackup(l){try{const t=await Lo();return new Promise((a,s)=>{const o=t.transaction(Et,"readwrite");o.objectStore(Et).delete(l),o.oncomplete=()=>a(),o.onerror=n=>s(n.target.error)})}catch(t){console.warn("[CollabBackup] Failed to clear backup:",t)}}},_t="editor",dl="observer",Do=2;class FW extends Le.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 Vc=It.StateEffect.define(),za=It.StateField.define({create(){return[]},update(l,t){for(const a of t.effects)if(a.is(Vc))return a.value;return l}}),VW=Le.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 s of t)if(s.position>=0&&s.position<=l.state.doc.length&&(a.push(Le.Decoration.widget({widget:new FW(s),side:1}).range(s.position)),s.anchor!==s.position)){const o=Math.min(s.anchor,s.position),i=Math.max(s.anchor,s.position);a.push(Le.Decoration.mark({class:"cm-remote-selection",attributes:{style:`background-color: ${s.color}33`}}).range(o,i))}return Le.Decoration.set(a,!0)}},{decorations:l=>l.decorations});function xc(){const l=e.ref(!1),t=e.ref(null),a=e.ref(null),s=e.ref(null),o=e.ref(null),i=e.shallowRef([]),n=e.shallowRef([]),c=e.ref(0),r=e.ref(null),m=e.ref(!1),h=e.ref(!1),Z=e.ref(!1),p=e.ref(!1),Y=e.ref(null);let A=null,X=null,z=null;const{connectionState:y,lastCloseCode:I,connect:j,disconnect:v,send:C,on:x,off:D,resetReconnectAttempts:le}=Fc();let G=null,T=null,F=null,q=null,K=null;const ee=new It.Compartment;let je=null,$e=null;const ne=O=>{console.log("[CollabEditor] setEditorView:",O?"view set":"view cleared"),G=O},se=()=>{if(!G)return null;try{return{document:G.state.doc.toString(),version:Wl.getSyncedVersion(G.state)}}catch{return null}},He=e.computed(()=>i.value.length),ot=e.computed(()=>y.value===Ke.CONNECTED),Re=e.computed(()=>y.value===Ke.RECONNECTING),ae=e.computed(()=>y.value===Ke.ERROR),Xe=e.computed(()=>o.value===_t),V=e.computed(()=>o.value===dl),H=e.computed(()=>i.value.filter(O=>O.role===_t).length),E=e.computed(()=>i.value.filter(O=>O.role===dl).length),ce=e.computed(()=>Y.value==="WRITE"),Ge=e.computed(()=>Y.value==="READ"||Y.value==="WRITE"),Wt=O=>[Wl.collab({startVersion:O,clientID:a.value,sharedEffects:P=>{if(P.selection){const ie=P.selection.main;Bl(ie.head,ie.anchor)}return[]}}),za,VW,ee.of(Le.EditorView.editable.of(!0))],rt=async O=>new Promise((P,ie)=>{const pe=setTimeout(()=>{D("onMessage",be),ie(new Error("Authentication timeout"))},5e3),be=Ne=>{if(Ne.type==="authenticated")clearTimeout(pe),D("onMessage",be),P();else if(Ne.type==="error"&&Ne.code==="AUTH_FAILED"){clearTimeout(pe),D("onMessage",be);const Ie=new Error(Ne.message||"Authentication failed");Ie.code="AUTH_FAILED",ie(Ie)}};x("onMessage",be),C({type:"auth",ticket:O})}),Te=async(O,P,ie,pe=dl,be=null,Ne=null,Ie=null)=>{l.value&&await me(),m.value=!1,h.value=!1,Z.value=!1,p.value=!1;try{T=O,G=P,a.value=Dt.generateClientId(),je=ie,A=be,X=Ne,z=Ie,je=ie,$e=pe;const bt=await Dt.checkAvailability(T);if(Y.value=bt.permissionLevel||"WRITE",!bt.enabled)throw new Error("Collaborative editing is not available for this document");if(bt.permissionLevel==="NONE")throw new Error("Access denied to this document");bt.permissionLevel==="READ"&&pe===_t&&(pe=dl);const _l=Dt.getWebSocketUrl();x("onMessage",qe),x("onDisconnected",Ve),x("onReconnecting",_e),x("onConnected",xe),await j(_l);const Tl=await Dt.getTicket();return await rt(Tl),new Promise((Kl,$t)=>{const wl=setTimeout(()=>{$t(new Error("Timeout waiting for welcome message"))},1e4),qt=pt=>{pt.type==="welcome"?(clearTimeout(wl),D("onMessage",qt),Pe(pt),Kl(pt)):pt.type==="error"&&(clearTimeout(wl),D("onMessage",qt),pt.code==="SESSION_FULL"?m.value=!0:pt.code==="INVALID_DOCUMENT"&&(h.value=!0),$t(new Error(pt.message)))};x("onMessage",qt),C({type:"join",nodeId:T,clientId:a.value,displayName:ie,mode:pe,protocolVersion:Do})})}catch(bt){throw r.value=bt,bt}},me=async()=>{if(l.value){if(F&&(clearTimeout(F),F=null),q&&(clearInterval(q),q=null),G&&T){const O=G.state.doc.toString();await Pt.saveBackup(T,O,t.value)}t.value&&a.value&&C({type:"leave",sessionId:t.value,clientId:a.value}),D("onMessage",qe),D("onDisconnected",Ve),D("onReconnecting",_e),D("onConnected",xe),v(),l.value=!1,t.value=null,i.value=[],n.value=[],s.value=null,o.value=null,Y.value=null,A=null,X=null,z=null,G=null,T=null,je=null,$e=null}},Pe=O=>{t.value=O.sessionId,c.value=O.version,s.value=O.color,o.value=O.role||dl,i.value=O.peers||[],l.value=!0,et(),q&&clearInterval(q),q=setInterval(()=>{if(G&&T){const P=G.state.doc.toString();P!==K&&(K=P,Pt.saveBackup(T,P,t.value))}},1e4)},fe=O=>O.toJSON(),dt=O=>It.ChangeSet.fromJSON(O),qe=O=>{switch(O.type){case"updates":gt(O);break;case"peers":jt(O);break;case"cursor":Kt(O);break;case"promoted":Rt(O);break;case"saved":Gt(O);break;case"resync":Tt(O);break;case"error":mt(O);break}},gt=O=>{if(!G&&A&&O.document!==void 0){A(O.document,O.version);return}if(!G)return;const P=O.updates.map(ie=>({changes:dt(ie.changes),clientID:ie.clientID}));try{const ie=Wl.receiveUpdates(G.state,P);G.dispatch(ie),Wl.sendableUpdates(G.state).length>0&&Yt()}catch(ie){console.error("[CollabEditor] Error applying updates:",ie)}},jt=O=>{i.value=O.peers.filter(P=>P.clientId!==a.value),et()},Kt=O=>{if(O.clientId===a.value)return;const P=i.value.find(ie=>ie.clientId===O.clientId);P&&(P.cursorPosition=O.position,P.cursorAnchor=O.anchor,et())},mt=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,me()):O.code==="INVALID_DOCUMENT"?(h.value=!0,me()):O.code==="ACCESS_DENIED"?me():O.code==="INCOMPATIBLE_PROTOCOL"?(Z.value=!0,me()):O.code==="AUTH_FAILED"&&(p.value=!0,me())},Rt=O=>{o.value=_t,c.value=O.version,A&&O.document!==void 0&&A(O.document,O.version)},Gt=O=>{X&&X(O.sessionId),T&&Pt.clearBackup(T),G&&(K=G.state.doc.toString())},Fe=O=>{G?(console.log(`[CollabEditor] Setting editor editable=${O}`),G.dispatch({effects:ee.reconfigure(Le.EditorView.editable.of(O))})):console.warn("[CollabEditor] Cannot toggle editable: editorView is null")},Ve=()=>{if(Fe(!1),G&&T){const O=G.state.doc.toString();Pt.saveBackup(T,O,t.value)}},xe=async()=>{if(!(!l.value||!T)){console.log("[CollabEditor] Reconnected, re-authenticating and re-joining");try{const O=await Dt.getTicket();return await rt(O),new Promise((P,ie)=>{const pe=setTimeout(()=>{D("onMessage",be),ie(new Error("Timeout waiting for welcome after reconnection"))},1e4),be=Ne=>{Ne.type==="welcome"?(clearTimeout(pe),D("onMessage",be),Pe(Ne),z&&z(Ne.document,Ne.version),P()):Ne.type==="error"&&(clearTimeout(pe),D("onMessage",be),console.error("[CollabEditor] Error during reconnection:",Ne.message),ie(new Error(Ne.message)))};x("onMessage",be),C({type:"join",nodeId:T,clientId:a.value,displayName:je,mode:$e,protocolVersion:Do})})}catch(O){console.error("[CollabEditor] Reconnection auth/join failed:",O)}}},_e=(O,P)=>{console.log(`[CollabEditor] Reconnecting in ${P}ms (attempt ${O})`)},Tt=O=>{c.value=O.version,i.value=(O.peers||[]).filter(P=>P.clientId!==a.value),et(),z?z(O.document,O.version):A&&A(O.document,O.version)},kt=()=>{if(!G||!l.value||!ot.value){console.log("[CollabEditor] pushChanges skipped:",G?l.value?"not connected":"collab inactive":"no editorView");return}const O=Wl.sendableUpdates(G.state);if(O.length===0)return;const P=Wl.getSyncedVersion(G.state),ie=O.map(pe=>({clientID:pe.clientID,changes:fe(pe.changes)}));C({type:"push",sessionId:t.value,clientId:a.value,version:P,updates:ie})},Yt=()=>{F&&clearTimeout(F),F=setTimeout(kt,50)};let ml=null;const Bl=(O,P)=>{ml&&clearTimeout(ml),ml=setTimeout(()=>{l.value&&ot.value&&C({type:"cursor",sessionId:t.value,clientId:a.value,position:O,anchor:P})},100)},et=()=>{if(!G)return;const O=i.value.filter(P=>P.cursorPosition!==void 0).map(P=>({clientId:P.clientId,displayName:P.displayName,color:P.color,position:P.cursorPosition,anchor:P.cursorAnchor||P.cursorPosition}));n.value=O,G.dispatch({effects:Vc.of(O)})},Qe=()=>O=>{O.docChanged&&l.value&&Yt()},bl=()=>new Promise((O,P)=>{if(!l.value||!ot.value){P(new Error("Not connected to collaborative session"));return}if(o.value===_t){O({role:_t});return}const ie=setTimeout(()=>{D("onMessage",pe),P(new Error("Timeout waiting for promotion confirmation"))},1e4),pe=be=>{be.type==="promoted"?(clearTimeout(ie),D("onMessage",pe),O(be)):be.type==="error"&&be.context==="promote"&&(clearTimeout(ie),D("onMessage",pe),P(new Error(be.message)))};x("onMessage",pe),C({type:"promote",sessionId:t.value,clientId:a.value})}),El=()=>new Promise((O,P)=>{if(!l.value||!ot.value){P(new Error("Not connected to collaborative session"));return}const ie=setTimeout(()=>{D("onMessage",pe),P(new Error("Timeout waiting for save confirmation"))},1e4),pe=be=>{be.type==="saved"?(clearTimeout(ie),D("onMessage",pe),O(be)):be.type==="error"&&be.context==="save"&&(clearTimeout(ie),D("onMessage",pe),P(new Error(be.message)))};x("onMessage",pe),C({type:"save",sessionId:t.value,clientId:a.value})}),Pl=async()=>{if(!T||!l.value)throw new Error("No active collab session to retry");le();const O=Dt.getWebSocketUrl();await j(O);const P=await Dt.getTicket();return await rt(P),new Promise((ie,pe)=>{const be=setTimeout(()=>{D("onMessage",Ne),pe(new Error("Timeout waiting for welcome after retry"))},1e4),Ne=Ie=>{Ie.type==="welcome"?(clearTimeout(be),D("onMessage",Ne),Pe(Ie),z&&z(Ie.document,Ie.version),ie()):Ie.type==="error"&&(clearTimeout(be),D("onMessage",Ne),pe(new Error(Ie.message)))};x("onMessage",Ne),C({type:"join",nodeId:T,clientId:a.value,displayName:je,mode:$e,protocolVersion:Do})})};return e.onUnmounted(()=>{me()}),{isCollabActive:l,isSessionFull:m,isInvalidDocument:h,isProtocolIncompatible:Z,isAuthExpired:p,permissionLevel:Y,sessionId:t,clientId:a,myColor:s,myRole:o,connectedPeers:i,remoteCursors:n,connectionState:y,lastError:r,startVersion:c,lastCloseCode:I,peerCount:He,isConnected:ot,isConnectionFailed:ae,isReconnecting:Re,isEditor:Xe,isObserver:V,editorCount:H,observerCount:E,hasWritePermission:ce,hasReadPermission:Ge,startCollab:Te,stopCollab:me,setEditorView:ne,getSyncedState:se,createCollabExtensions:Wt,createUpdateListener:Qe,pushChanges:kt,requestSave:El,promoteToEditor:bl,retryConnection:Pl}}const Sc=_.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=re();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 Dt.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 s=this.connectedPeers.find(o=>o.clientId===l);s&&(s.cursorPosition=t,s.cursorAnchor=a)}}}),Jc=_.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}}),xW={class:"codemirror-editor-root"},SW={key:0,class:"consultation-title col"},JW={key:2,class:"collab-indicators flex align-items-center gap-2 ml-3"},UW={class:"collab-status-text text-sm"},HW={key:0,class:"collab-peers flex align-items-center gap-1"},QW={key:0,class:"collab-peer-more text-sm"},BW={key:1,class:"collab-participant-badges flex align-items-center gap-2"},EW={class:"collab-badge collab-badge-editor flex align-items-center gap-1"},PW={class:"text-sm font-medium"},_W={class:"collab-badge collab-badge-observer flex align-items-center gap-1"},KW={class:"text-sm font-medium"},$W={class:"flex gap-2 align-items-center"},qW={class:"flex gap-2 ml-3"},e9={class:"flex gap-2 ml-3"},t9={class:"card editor-wrapper border-1 surface-border border-round overflow-hidden flex flex-column p-0 m-0"},l9={key:0,class:"edit-mode-wrapper flex-grow-1 flex flex-column min-h-0"},a9={key:1,class:"consultation-view flex-grow-1"},o9=300,Uc=J({__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}=ll.useI18n(),s=h2.useToast(),o=Ir.useConfirm(),i=ya(),n=Jc(),c=Sc(),{isCollabActive:r,isSessionFull:m,isAuthExpired:h,connectedPeers:Z,isConnected:p,isReconnecting:Y,peerCount:A,myRole:X,isEditor:z,isObserver:y,editorCount:I,observerCount:j,startVersion:v,startCollab:C,stopCollab:x,setEditorView:D,getSyncedState:le,createCollabExtensions:G,createUpdateListener:T,requestSave:F,promoteToEditor:q,isConnectionFailed:K,lastCloseCode:ee,retryConnection:je}=xc(),$e=()=>window.location.reload(),ne=l,se=e.ref(""),He=e.ref(""),ot=e.ref(null),Re=e.ref(!1),ae=e.ref(!1),Xe=e.ref(n.isSmallScreen?"editor":"split"),V=e.ref(!1),H=e.ref(null),E=e.ref(null),ce=e.ref(null),Ge=e.ref(null),Wt=e.ref(null),rt=e.ref(null),Te=e.shallowRef(null),me=e.shallowRef(null),Pe=e.ref([]),fe=e.ref(!1),dt=e.ref(!1),qe=e.ref(null),gt=e.ref(null),jt=e.ref(!1),Kt=e.ref(0),mt=e.ref(null),Rt=e.ref("");let Gt=null;e.watch(se,N=>{clearTimeout(Gt),Gt=setTimeout(()=>{Rt.value=N},o9)},{immediate:!0}),e.onUnmounted(()=>{clearTimeout(Gt)});const{isMarkdown:Fe,isHtml:Ve,previewBodyHtml:xe,iframeContent:_e}=jo({content:Rt,mimeType:H});function Tt(){return Ge.value||Wt.value||rt.value}function kt(N){N&&(N.srcdoc=_e.value,N._previewInitialized=!1,N.addEventListener("load",()=>{N._previewInitialized=!0},{once:!0}))}e.watch([Ge,Wt,rt],([N,R,$],[oe,ke,el])=>{const wt=N&&N!==oe&&N||R&&R!==ke&&R||$&&$!==el&&$;wt&&kt(wt)}),e.watch(xe,N=>{const R=Tt();!R||!R._previewInitialized||R.contentWindow?.postMessage({type:"preview-update",html:N},"*")});const Yt=e.computed(()=>se.value!==He.value),ml=e.computed(()=>Pe.value&&Pe.value.length>=2),Bl=e.computed(()=>{const N=[{value:"editor",icon:"ri-code-line",label:t("editor.viewMode.editorOnly")}];return n.isSmallScreen||N.push({value:"split",icon:"ri-layout-column-fill",label:t("editor.viewMode.split")}),N.push({value:"preview",icon:"ri-eye-line",label:t("editor.viewMode.previewOnly")}),N}),et=N=>{const R=N?E:ce;if(!R.value)return;const $=zl(H.value),ke=[...Ml({editable:N,showLineNumbers:!0,enableHistory:N,dark:i.dark,lineWrapping:V.value,onUpdate:N?st=>{se.value=st}:null})];$&&(!Array.isArray($)||$.length>0)&&ke.push($);const el=It.EditorState.create({doc:se.value,extensions:ke}),wt=new Le.EditorView({state:el,parent:R.value});N?Te.value=wt:me.value=wt},Qe=N=>{N.value&&(N.value.destroy(),N.value=null)},bl=async N=>{if(!(!N.id&&!N.shareId))try{let R;ne.isSharedLink&&N.shareId?R=await S.getSharedLinkContent(N.shareId):R=await S.getNodeContent(N.id,!1);let $=await R.text();if(N.content?.mimeType==="application/json")try{$=JSON.stringify(JSON.parse($),null,2)}catch(oe){console.warn("Failed to format JSON, displaying raw content:",oe.message)}ne.readOnly||await O(N),se.value=$,He.value=$,H.value=N.content?.mimeType||"text/plain",await e.nextTick(),!ae.value&&!Fe.value&&!Ve.value&&!me.value&&et(!1)}catch(R){console.error("Failed to load content:",R),s.add({severity:"error",summary:t("error.error"),detail:t("editor.loadError"),life:3e3})}},El=async()=>{if(r.value){try{const N=await F();He.value=se.value,N.versionLabel?(s.add({severity:"success",summary:t("success"),detail:t("editor.saveSuccessVersion",{version:N.versionLabel}),life:3e3}),await Ie(ne.contentNode.id)):s.add({severity:"info",detail:t("editor.alreadySaved"),life:3e3})}catch(N){s.add({severity:"error",summary:t("error.error"),detail:N.message,life:4e3})}return}if(Yt.value)try{await S.updateContentNode(ne.contentNode.id,se.value,H.value),He.value=se.value,s.add({severity:"success",summary:t("success"),detail:t("editor.saveSuccess"),life:3e3}),await Ie(ne.contentNode.id)}catch(N){s.add({severity:"error",summary:t("error.error"),detail:N.message,life:4e3})}},Pl=async()=>{try{const N=await Ye.lockNode(ne.contentNode.id,{timeToExpire:0,type:"ALLOW_OWNER_CHANGES",lifetime:"EPHEMERAL"});await O(N.entry),await bl(N.entry)}catch{try{const R=await Ye.getNode(ne.contentNode.id,{include:["properties"]});await O(R.entry)}catch{s.add({severity:"error",summary:t("error.error"),detail:t("editor.refreshError"),life:3e3})}}},O=async N=>{const R=N.properties?.["cm:lockOwner"],$=Ae();R&&R.id!==$.person.id?(Re.value=!0,ot.value=t("node.lockedBy",{name:R.displayName})):(Re.value=!1,ot.value=null)},P=async()=>{if(!r.value)return;await(async()=>{try{Yt.value&&(await F(),He.value=se.value)}catch(oe){s.add({severity:"error",summary:t("error.error"),detail:oe.message,life:4e3});return}await ja();let $=await(await S.getNodeContent(ne.contentNode.id,!1)).text();if(ne.contentNode.content?.mimeType==="application/json")try{$=JSON.stringify(JSON.parse($),null,2)}catch{}se.value=$,He.value=$,ae.value=!1,await Pt.clearBackup(ne.contentNode.id),await Ie(ne.contentNode.id),await $l(ne.contentNode.id)})()},ie=async()=>{if(r.value){await P();return}if(Yt.value)try{await S.updateContentNode(ne.contentNode.id,se.value,H.value),He.value=se.value,s.add({severity:"success",summary:t("success"),detail:t("editor.saveSuccess"),life:3e3})}catch(N){s.add({severity:"error",summary:t("error.error"),detail:N.message,life:4e3});return}ae.value=!1,await Ye.unlockNode(ne.contentNode.id).catch(()=>{}),await Ie(ne.contentNode.id)},pe=()=>{const N=`collab.unavailableDetail.${gt.value}`,R=`collab.unavailableReason.${qe.value}`,$=a(N)?t(N):a(R)?t(R):t("collab.unavailable");s.add({severity:"warn",summary:t("collab.unavailable"),detail:$,life:5e3})},be=async()=>{if(c.enabled&&dt.value){jt.value=!0;try{ae.value=!0,await e.nextTick(),await e.nextTick();let N=0;for(;!Te.value&&N<10;)await e.nextTick(),N++;if(!Te.value)throw new Error("Editor view not created");await So(),r.value?s.add({severity:"success",summary:t("success"),detail:t("collab.connected"),life:3e3}):(ae.value=!1,s.add({severity:"error",summary:t("error.error"),detail:t("collab.initError"),life:4e3}))}catch(N){console.error("Failed to start collaborative editing:",N),ae.value=!1,s.add({severity:"error",summary:t("error.error"),detail:t("collab.initError"),life:4e3})}finally{jt.value=!1}}else await Pl(),Re.value||(ae.value=!0)},Ne=()=>{const N=document.createElement("a");N.href=ne.contentUrl,N.download=ne.contentNode.name,N.click()},Ie=async N=>{if(N)try{const R=await S.listNodeVersionHistory(N);Pe.value=R.list.entries}catch(R){console.error("Error fetching versions:",R)}},bt=()=>{fe.value=!0},_l=async()=>{await bl(ne.contentNode),await Ie(ne.contentNode.id)},Tl=async()=>{try{await navigator.clipboard.writeText(se.value),s.add({severity:"success",detail:t("collab.contentCopied"),life:3e3})}catch{s.add({severity:"error",detail:t("error.error"),life:3e3})}},Kl=async()=>{try{await je()}catch{s.add({severity:"error",detail:t("collab.retryFailed"),life:4e3})}},$t=N=>{r.value&&ae.value&&Yt.value&&(N.preventDefault(),N.returnValue="")},wl=async N=>{if(!N||ne.readOnly){dt.value=!1;return}try{const R=await c.checkAvailability(N);mt.value=R.permissionLevel||"WRITE",Kt.value=R.maxPeers||0,dt.value=R.available===!0&&mt.value!=="NONE",qe.value=!dt.value&&R.enabled&&R.reason||null,gt.value=!dt.value&&R.enabled&&R.details||null}catch(R){console.error("[Collab] Failed to check collab availability:",R),dt.value=!1,mt.value=null}},qt=(N,R)=>{if(!ae.value&&N!==void 0&&(se.value=N,He.value=N,me.value)){const $=me.value.state.update({changes:{from:0,to:me.value.state.doc.length,insert:N}});me.value.dispatch($)}},pt=()=>{He.value=se.value},Oa=async(N,R)=>{if(se.value=N,He.value=N,z.value&&Te.value)await pl(R);else if(me.value){const $=me.value.state.update({changes:{from:0,to:me.value.state.doc.length,insert:N}});me.value.dispatch($)}},$l=async N=>{if(!(!N||ne.readOnly||!c.enabled||!dt.value)&&!r.value)try{const R=Ae(),$=R.person?.displayName||R.person?.id||"User";await C(N,null,$,dl,qt,pt,Oa)}catch(R){console.error("[Collab] Failed to connect as observer:",R)}},So=async()=>{if(!ne.contentNode?.id||!Te.value)throw new Error("Missing node ID or editor view");const N=Ae(),R=N.person?.displayName||N.person?.id||"User";let $,oe;if(r.value&&y.value){const ke=await q();$=ke.version??v.value,oe=ke.document}else{const ke=await C(ne.contentNode.id,null,R,_t,qt,pt,Oa);$=ke.version,oe=ke.document}oe!==void 0&&(se.value=oe,He.value=oe),await pl($),window.addEventListener("beforeunload",$t)},ja=async()=>{window.removeEventListener("beforeunload",$t);try{await x()}catch(N){console.error("Failed to stop collaborative editing:",N)}},pl=async N=>{if(console.log(`[Collab] recreateEditorWithCollab: version=${N}`),!E.value){console.warn("[Collab] recreateEditorWithCollab: no editorContainer, aborting");return}const R=zl(H.value),$=Ml({editable:!1,showLineNumbers:!0,enableHistory:!0,dark:i.dark,lineWrapping:V.value,onUpdate:st=>{se.value=st}}),oe=G(N),ke=Le.EditorView.updateListener.of(T()),el=[...oe,...$,ke];R&&(!Array.isArray(R)||R.length>0)&&el.push(R);const wt=It.EditorState.create({doc:se.value,extensions:el});if(Te.value){const st=Te.value,Ga=st.hasFocus,Ct=st.state.selection.main.head;st.setState(wt);const tl=Math.min(Ct,st.state.doc.length);st.dispatch({selection:{anchor:tl}}),Ga&&st.focus()}else{if(await e.nextTick(),!E.value){console.warn("[Collab] recreateEditorWithCollab: editorContainer lost after nextTick, aborting");return}Te.value=new Le.EditorView({state:wt,parent:E.value})}D(Te.value),console.log("[Collab] recreateEditorWithCollab: editor created with collab extensions")};return c.init(),e.watch(()=>ne.contentNode,async N=>{if(N&&(bl(N),Ie(N.id),!ne.readOnly)){c.loaded||await c.init(),await wl(N.id);const R=await Pt.loadBackup(N.id);R&&R.content&&R.content!==se.value&&o.require({message:t("collab.recoverBackup"),header:t("collab.recoverBackupHeader"),icon:"ri-error-warning-line",group:"confirmUnsavedChanges",accept:async()=>{se.value=R.content,ae.value=!0,await Pt.clearBackup(N.id)},reject:async()=>{await Pt.clearBackup(N.id)}}),await $l(N.id)}},{immediate:!0}),e.watch(ae,async N=>{Qe(Te),Qe(me),await e.nextTick(),N?Xe.value!=="preview"&&et(!0):!Fe.value&&!Ve.value&&et(!1)}),e.watch(Xe,async(N,R)=>{if(!ae.value||!(Fe.value||Ve.value))return;const $=N!=="preview",oe=R!=="preview";let ke=null;r.value&&z.value&&(ke=le()),oe&&Qe(Te),$&&(await e.nextTick(),ke!==null?(se.value=ke.document,await pl(ke.version)):et(!0))}),e.watch(V,async()=>{if(ae.value&&Xe.value!=="preview"&&Te.value){let N=null;r.value&&z.value&&(N=le()),Qe(Te),await e.nextTick(),N!==null?(se.value=N.document,await pl(N.version)):et(!0)}else!ae.value&&!Fe.value&&!Ve.value&&me.value&&(Qe(me),await e.nextTick(),et(!1))}),e.onBeforeUnmount(async()=>{window.removeEventListener("beforeunload",$t),r.value&&await x(),Qe(Te),Qe(me),ae.value&&!Re.value&&!r.value&&Ye.unlockNode(ne.contentNode.id).catch(()=>{})}),(N,R)=>{const $=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock("div",xW,[e.createVNode(e.unref(Da),{class:"consultation-toolbar"},{start:e.withCtx(()=>[l.contentNode?(e.openBlock(),e.createElementBlock("h3",SW,e.toDisplayString(l.contentNode.name),1)):e.createCommentVNode("",!0),N.$route.params.versionId?(e.openBlock(),e.createBlock(e.unref(la),{key:1,class:"tag-version",value:N.$route.params.versionId},null,8,["value"])):e.createCommentVNode("",!0),e.unref(r)?(e.openBlock(),e.createElementBlock("div",JW,[e.createElementVNode("span",{class:e.normalizeClass(["collab-status-dot",{connected:e.unref(p),reconnecting:e.unref(Y)}])},null,2),e.createElementVNode("span",UW,e.toDisplayString(e.unref(p)?N.$t("collab.connected"):N.$t("collab.reconnecting")),1),e.unref(A)>0?(e.openBlock(),e.createElementBlock("div",HW,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Z).slice(0,6),oe=>e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:oe.clientId,class:"collab-peer-avatar",style:e.normalizeStyle({backgroundColor:oe.color})},[e.createTextVNode(e.toDisplayString(oe.displayName.charAt(0).toUpperCase()),1)],4)),[[$,oe.displayName,void 0,{bottom:!0}]])),128)),e.unref(A)>6?(e.openBlock(),e.createElementBlock("span",QW," +"+e.toDisplayString(e.unref(A)-6),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.unref(r)&&e.unref(p)?(e.openBlock(),e.createElementBlock("div",BW,[e.withDirectives((e.openBlock(),e.createElementBlock("div",EW,[R[4]||(R[4]=e.createElementVNode("i",{class:"ri-edit-fill","aria-hidden":"true"},null,-1)),e.createElementVNode("span",PW,e.toDisplayString(e.unref(I)+(e.unref(z)?1:0)),1)])),[[$,N.$t("collab.editorsTooltip"),void 0,{bottom:!0}]]),e.withDirectives((e.openBlock(),e.createElementBlock("div",_W,[R[5]||(R[5]=e.createElementVNode("i",{class:"ri-eye-fill","aria-hidden":"true"},null,-1)),e.createElementVNode("span",KW,e.toDisplayString(e.unref(j)+(e.unref(y)?1:0)),1)])),[[$,N.$t("collab.observersTooltip"),void 0,{bottom:!0}]])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),end:e.withCtx(()=>[e.createElementVNode("div",$W,[ae.value&&(e.unref(Fe)||e.unref(Ve))?(e.openBlock(),e.createBlock(e.unref(yl),{key:0,modelValue:Xe.value,"onUpdate:modelValue":R[0]||(R[0]=oe=>Xe.value=oe),options:Bl.value,"option-value":"value","allow-empty":!1,class:"view-mode-selector"},{option:e.withCtx(oe=>[e.withDirectives(e.createElementVNode("i",{class:e.normalizeClass(oe.option.icon),"aria-hidden":"true"},null,2),[[$,oe.option.label,void 0,{bottom:!0}]])]),_:1},8,["modelValue","options"])):e.createCommentVNode("",!0),!l.readOnly&&!e.unref(m)&&(!dt.value||mt.value==="WRITE")?e.withDirectives((e.openBlock(),e.createBlock(e.unref(L),{key:1,icon:ae.value?"ri-logout-box-line":"ri-pencil-line",severity:ae.value?"warning":qe.value?"secondary":"info",onClick:R[1]||(R[1]=oe=>ae.value?ie():qe.value?pe():be()),disabled:Re.value||jt.value,loading:jt.value,"aria-label":ae.value?N.$t("editor.closeEdit"):N.$t("editor.edit"),raised:""},null,8,["icon","severity","disabled","loading","aria-label"])),[[$,ae.value?N.$t("editor.closeEdit"):qe.value?N.$t("collab.unavailable"):N.$t("editor.edit"),void 0,{bottom:!0}]]):e.createCommentVNode("",!0),ae.value&&!l.readOnly?e.withDirectives((e.openBlock(),e.createBlock(e.unref(L),{key:2,icon:"ri-save-line",severity:"primary",onClick:El,disabled:Re.value||!Yt.value,"aria-label":N.$t("save"),raised:""},null,8,["disabled","aria-label"])),[[$,N.$t("save"),void 0,{bottom:!0}]]):e.createCommentVNode("",!0),R[6]||(R[6]=e.createElementVNode("div",{class:"w-1rem"},[e.createElementVNode("i",{class:"ri-more-2-line","aria-hidden":"true"})],-1)),ae.value&&Xe.value!=="preview"||!ae.value&&!e.unref(Fe)&&!e.unref(Ve)?e.withDirectives((e.openBlock(),e.createBlock(e.unref(L),{key:3,icon:"ri-text-wrap",severity:V.value?"info":"secondary",onClick:R[2]||(R[2]=oe=>V.value=!V.value),"aria-label":N.$t("editor.lineWrap"),raised:""},null,8,["severity","aria-label"])),[[$,N.$t("editor.lineWrap"),void 0,{bottom:!0}]]):e.createCommentVNode("",!0),l.isSharedLink?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createBlock(e.unref(L),{key:4,icon:"ri-layout-column-line",severity:"secondary",onClick:bt,disabled:!ml.value,"aria-label":N.$t("diffViewer.compareTitle"),raised:""},null,8,["disabled","aria-label"])),[[$,N.$t("diffViewer.compareTitle"),void 0,{bottom:!0}]]),e.withDirectives(e.createVNode(e.unref(L),{icon:"ri-download-line",severity:"secondary",onClick:Ne,"aria-label":N.$t("download"),raised:""},null,8,["aria-label"]),[[$,N.$t("download"),void 0,{bottom:!0}]])])]),_:1}),Re.value&&!l.readOnly?(e.openBlock(),e.createBlock(e.unref(it),{key:0,severity:"warn",icon:"ri-lock-line",class:"p-small-message p-0"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ot.value),1)]),_:1})):e.createCommentVNode("",!0),e.unref(m)?(e.openBlock(),e.createBlock(e.unref(it),{key:1,severity:"warn",icon:"ri-group-line",class:"p-small-message px-3 py-0"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("collab.sessionFull"))+" ("+e.toDisplayString(Kt.value)+"/"+e.toDisplayString(Kt.value)+") ",1)]),_:1})):e.createCommentVNode("",!0),e.unref(h)?(e.openBlock(),e.createBlock(e.unref(it),{key:2,severity:"error",icon:"ri-lock-unlock-line",class:"p-small-message px-3 py-0",closable:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("collab.authExpired"))+" ",1),e.createElementVNode("div",qW,[e.createVNode(e.unref(L),{label:N.$t("collab.reload"),icon:"ri-refresh-line",severity:"danger",size:"small",outlined:"","aria-label":N.$t("collab.reload"),onClick:$e},null,8,["label","aria-label"])])]),_:1})):e.createCommentVNode("",!0),e.unref(r)&&e.unref(Y)?(e.openBlock(),e.createBlock(e.unref(it),{key:3,severity:"warn",icon:"ri-wifi-off-line",class:"p-small-message p-0"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("collab.offline")),1)]),_:1})):e.createCommentVNode("",!0),e.unref(r)&&e.unref(K)&&ae.value?(e.openBlock(),e.createBlock(e.unref(it),{key:4,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(ee)===1009?N.$t("collab.messageTooLarge"):N.$t("collab.connectionFailed"))+" ",1),e.createElementVNode("div",e9,[e.createVNode(e.unref(L),{label:N.$t("collab.copyContent"),icon:"ri-clipboard-line",severity:"danger",size:"small",outlined:"","aria-label":N.$t("collab.copyContent"),onClick:Tl},null,8,["label","aria-label"]),e.unref(ee)!==1009?(e.openBlock(),e.createBlock(e.unref(L),{key:0,label:N.$t("collab.retryConnection"),icon:"ri-refresh-line",severity:"danger",size:"small",outlined:"","aria-label":N.$t("collab.retryConnection"),onClick:Kl},null,8,["label","aria-label"])):e.createCommentVNode("",!0)])]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",t9,[ae.value?(e.openBlock(),e.createElementBlock("div",l9,[(e.unref(Fe)||e.unref(Ve))&&Xe.value==="split"?(e.openBlock(),e.createBlock(e.unref(fr),{key:0,class:"flex-grow-1 h-full"},{default:e.withCtx(()=>[e.createVNode(e.unref(Z2),{class:"flex",size:50,"min-size":10},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"editorContainer",ref:E,class:"w-full flex-grow-1"},null,512)]),_:1}),e.createVNode(e.unref(Z2),{class:"flex",size:50,"min-size":10},{default:e.withCtx(()=>[e.createElementVNode("iframe",{ref_key:"splitPreviewIframe",ref:Ge,class:"preview-container w-full flex-grow-1",sandbox:"allow-scripts allow-popups"},null,512)]),_:1})]),_:1})):!e.unref(Fe)&&!e.unref(Ve)||Xe.value==="editor"?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"editorContainer",ref:E,class:"editor-only-container w-full flex-grow-1"},null,512)):Xe.value==="preview"?(e.openBlock(),e.createElementBlock("iframe",{key:2,ref_key:"editPreviewIframe",ref:Wt,class:"preview-iframe w-full flex-grow-1",sandbox:"allow-scripts allow-popups"},null,512)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",a9,[e.unref(Fe)||e.unref(Ve)?(e.openBlock(),e.createElementBlock("iframe",{key:0,ref_key:"consultPreviewIframe",ref:rt,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:ce,class:"consultation-editor-container"},null,512))]))]),e.createVNode(vo,{visible:fe.value,"onUpdate:visible":R[3]||(R[3]=oe=>fe.value=oe),"content-node":l.contentNode,versions:Pe.value,"initial-version-id":N.$route.params.versionId,onRevertVersion:_l},null,8,["visible","content-node","versions","initial-version-id"])])}}},[["__scopeId","data-v-1e3f864c"]]);class s9{async check(){const a=re().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 ht.search(o))?.list?.pagination?.totalItems??0)>0?{ok:!0,detail:"OK"}:{ok:!1,detail:"CONFIG_FOLDER_NOT_FOUND"}}catch(i){return console.error("ConfigHealthService.check failed",i),{ok:!1,detail:"CHECK_FAILED"}}}}const Hc=new s9,i9={class:"font-semibold mb-2"},n9={class:"m-0 line-height-3"},c9={class:"block mt-2 text-sm"},r9={class:"mt-2 mb-0 text-sm"},Qc={__name:"ConfigHealthBanner",setup(l,{expose:t}){const a=it,o=re().INSTANCE_NAME,i=e.ref({ok:!0,detail:""}),n=e.ref(!1),c=e.ref(!1);return e.onMounted(async()=>{n.value=!0;try{i.value=await Hc.check()}finally{n.value=!1,c.value=!0}}),t({health:i,checked:c}),(r,m)=>c.value&&!n.value&&!i.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",i9,[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",n9,e.toDisplayString(r.$t("configHealth.error.description",{instance:e.unref(o)})),1),e.createElementVNode("code",c9," /app:company_home/app:dictionary/cm:pristy-config/cm:"+e.toDisplayString(e.unref(o)),1),e.createElementVNode("p",r9,e.toDisplayString(r.$t("configHealth.error.action")),1)])]),_:1})):e.createCommentVNode("",!0)}},d9="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4QIqaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49J++7vycgaWQ9J1c1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCc/Pgo8eDp4bXBtZXRhIHhtbG5zOng9J2Fkb2JlOm5zOm1ldGEvJyB4OnhtcHRrPSdBZG9iZSBFeHByZXNzJz4KPHJkZjpSREYgeG1sbnM6cmRmPSdodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjJz4KIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PScnCiAgeG1sbnM6ZGM9J2h0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvJwogIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKID4KICA8ZGM6Y3JlYXRvcj4KICAgPHJkZjpTZXE+CiAgICA8cmRmOmxpPjkxOTAzOTM2MTQ2NDQ3MzwvcmRmOmxpPgogICA8L3JkZjpTZXE+CiAgPC9kYzpjcmVhdG9yPgogIDx4bX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KACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAMe4o8wOS8X/Fj4d+Ax/wAVX4u03T3H8Es6hj+HWt6WFrVvgi2aRpTn8KMHQf2kfgn4kvFsNK+IWlPPIcKjTBCT7Zxmtp4DE01dwZTw9SKu0ejwzwXESzW8qSo/KsjZBGM5/KuOSadnuZW1sPpALQIKACgAoAKACgAoAKACgAoAKACgAoATH5cjP0oApaxrmkaBZPqOtalb2Vsgy0s8gRQPqTVwpzqNKCu2OMXJ2irs83n/AGpfgNb3n2KT4j6V5mcZWXK5+vT9a6/7NxVr8jNvq1X+U77w54w8L+LrQX3hnXbPUoD/AB28quP0Nc1SlUpO01YzlCUNJLU2Ky23ICgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKLh0ufI/wC2F+1tL8OD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gBkyCWNoz0ZSDTTswOWkjaKRkcYKnFdsdVcsbQAUAFABQAUAFABQAUAHXqM4NDDcXryf5daEkugCKACTgYpPUA9MdqBJWCmMKACgAoAKACgAoAKACgAoAKACgBePTr1pWATjvTDTsAx1I5o0AUcHp/SgfyE/wA+tAgoAKACgAoAKACgAoAKALemQGe8XjIU5NRVdotCZ0dchIUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAZuqaaLgefCPnHBHrW1OdtGNMxGUq2GHNdBQlABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQA+KGSdxHGhJNJtR3A6Gws1s4do5c/eNcs5c5DLVQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAJj1oAp3umw3QLr8snr6/WtIVHEaZi3NlcWrbZEPsR0NdEZqRRB/KqAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKAFAzwOvpQBctdMnuSGYFEPc96ylUURXNq2tIbVNsajOOT3Nc8pOW5JPSAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKAEKq6kOoKnqD0NO9gM+40a3lJaPMbHt1FaRqyW47mdPpd1D823ePVea1VRMoqFWU4YYPvWgB707AJSAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKAHpFJKcIhJ9hUuSQF230a4k5kwi+/JqJVkthXNO20y1t8HbuYdzzWMpykK5b/X0qBBQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFABQA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gAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKAP/9k=",m9={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"})}}},b9={class:"container"},p9={class:"card custom-card"},u9={class:"text-center custom-title",id:"numError"},Z9={class:"card-img-top w-full",src:d9,alt:"user header"},h9={class:"card-body"},y9={class:"card-text custom-card-title"},W9={class:"card-text custom-card-subtitle"};function g9(l,t,a,s,o,i){const n=e.resolveComponent("Button"),c=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock("div",b9,[e.createElementVNode("div",p9,[e.createElementVNode("h2",u9,e.toDisplayString(a.errorNb),1),e.withDirectives(e.createElementVNode("img",Z9,null,512),[[c,"www.vecteezy.com"]]),e.createElementVNode("div",h9,[e.createElementVNode("p",y9,e.toDisplayString(o.title),1),e.createElementVNode("p",W9,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:i.onClick},null,8,["label","onClick"])])])])}const Ro=J(m9,[["render",g9],["__scopeId","data-v-59d82e13"]]);class Y9{getBaseUrl(){return te.config.hostEcm}async getTicket(){return te.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(),s=await fetch(`${this.getBaseUrl()}/alfresco/s/fr/jeci/pristy/chat/workspace/${t}/room`,{method:"GET",headers:{Accept:"application/json",Authorization:this.createAuthHeader(a)}});return s.ok?await s.json():(console.warn(`[ChatBackendService] Failed to get room for site ${t}:`,s.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(),s=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 s.ok?await s.json():(console.error(`[ChatBackendService] Failed to create room for site ${t}:`,s.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 s=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(s)},body:JSON.stringify({userId:t,token:a})});if(!o.ok){const i=await o.json().catch(()=>({}));throw new Error(i.message||`HTTP ${o.status}`)}return await o.json()}catch(s){throw console.error("[ChatBackendService] Error saving user token:",s),s}}}const Ma=new Y9;class N9{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",s=t.replace(/^https?:\/\//,"").replace(/\/$/,"");return`${a}://${s}/websocket`}async getCredentials(){if(this.credentials)return this.credentials;const t=await Ma.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 ct=new N9;class A9{async request(t,a={}){const s=await ct.getCredentials();if(!s)throw new Error("Not authenticated to Rocket.Chat");const i=`${ct.getServerUrl()}${t}`,n={"Content-Type":"application/json","X-Auth-Token":s.authToken,"X-User-Id":s.userId,...a.headers},c=await fetch(i,{...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 s=new URLSearchParams({roomId:t,count:a.count||50});return a.oldest&&s.append("oldest",a.oldest),a.latest&&s.append("latest",a.latest),(await this.request(`/api/v1/groups.history?${s.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 s of t)s.unread>0&&(a[s.rid]=s.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,s=""){const o=await ct.getCredentials();if(!o)throw new Error("Not authenticated to Rocket.Chat");const i=new FormData;i.append("file",a),s&&i.append("description",s);const n=ct.getServerUrl(),c=await fetch(`${n}/api/v1/rooms.upload/${t}`,{method:"POST",headers:{"X-Auth-Token":o.authToken,"X-User-Id":o.userId},body:i}),r=await c.json();if(!c.ok||r.success===!1)throw new Error(r.error||"Failed to upload file");return r}}const Gl=new A9,X9={reconnectInterval:1e3,maxReconnectInterval:3e4,reconnectDecay:1.5,maxReconnectAttempts:10,heartbeatInterval:25e3,messageBufferSize:100},he={DISCONNECTED:"disconnected",CONNECTING:"connecting",CONNECTED:"connected",AUTHENTICATING:"authenticating",READY:"ready",RECONNECTING:"reconnecting",ERROR:"error"};function Bc(l={}){const t={...X9,...l},a=e.ref(he.DISCONNECTED),s=e.ref(null),o=e.ref(0),i=e.shallowRef([]),n=e.ref(new Set);let c=null,r=null,m=null,h=!1,Z=0,p=new Map;const Y={onConnected:[],onDisconnected:[],onReady:[],onMessage:[],onRoomMessage:[],onTyping:[],onPresence:[],onError:[],onReconnecting:[]},A=(V,H)=>(Y[V]&&Y[V].push(H),()=>X(V,H)),X=(V,H)=>{if(Y[V]){const E=Y[V].indexOf(H);E>-1&&Y[V].splice(E,1)}},z=(V,...H)=>{Y[V]&&Y[V].forEach(E=>E(...H))},y=()=>String(++Z),I=()=>new Promise((V,H)=>{if(c&&c.readyState===WebSocket.OPEN){V();return}const E=ct.getWebSocketUrl();if(!E){const ce=new Error("WebSocket URL not configured");s.value=ce,a.value=he.ERROR,H(ce);return}h=!1,a.value=he.CONNECTING;try{c=new WebSocket(E),c.onopen=()=>{a.value=he.CONNECTED,o.value=0,s.value=null,v({msg:"connect",version:"1",support:["1","pre2","pre1"]}),z("onConnected")},c.onclose=ce=>{se(),a.value=he.DISCONNECTED,!h&&!ce.wasClean&&He(),z("onDisconnected",ce)},c.onerror=ce=>{s.value=ce,a.value=he.ERROR,z("onError",ce),H(ce)},c.onmessage=ce=>{try{const Ge=JSON.parse(ce.data);D(Ge,V,H)}catch(Ge){console.error("[ChatWebSocket] Failed to parse message:",Ge)}}}catch(ce){s.value=ce,a.value=he.ERROR,z("onError",ce),H(ce)}}),j=()=>{h=!0,se(),ot(),c&&(c.close(1e3,"User disconnected"),c=null),a.value=he.DISCONNECTED,i.value=[],n.value=new Set,p.clear()},v=V=>c&&c.readyState===WebSocket.OPEN?(c.send(JSON.stringify(V)),!0):!1,C=V=>v(V)?!0:(i.value.length<t.messageBufferSize?i.value=[...i.value,V]:console.warn("[ChatWebSocket] Message buffer full, dropping message"),!1),x=(V,H=[])=>new Promise((E,ce)=>{const Ge=y();p.set(Ge,{resolve:E,reject:ce}),v({msg:"method",method:V,id:Ge,params:H})||(p.delete(Ge),ce(new Error("WebSocket not connected"))),setTimeout(()=>{p.has(Ge)&&(p.delete(Ge),ce(new Error(`Method ${V} timed out`)))},3e4)}),D=(V,H,E)=>{switch(V.msg){case"connected":ne(),le(H,E);break;case"ping":v({msg:"pong"});break;case"pong":break;case"result":G(V);break;case"ready":break;case"added":case"changed":case"removed":T(V);break;case"error":F(V,E);break;case"failed":console.error("[ChatWebSocket] DDP version negotiation failed"),a.value=he.ERROR,E&&E(new Error("DDP version negotiation failed"));break;default:z("onMessage",V)}},le=async(V,H)=>{a.value=he.AUTHENTICATING;try{const E=await ct.getCredentials();if(!E)throw new Error("No credentials available");const ce=await x("login",[{resume:E.authToken}]);if(ce&&ce.id)a.value=he.READY,Re(),ee(),z("onReady"),V&&V();else throw new Error("Authentication failed")}catch(E){console.error("[ChatWebSocket] Authentication failed:",E),s.value=E,a.value=he.ERROR,z("onError",E),H&&H(E)}},G=V=>{const H=p.get(V.id);H&&(p.delete(V.id),V.error?H.reject(new Error(V.error.message||"Method error")):H.resolve(V.result))},T=V=>{const{collection:H,fields:E}=V;if(H==="stream-room-messages"){if(E&&E.args){const[ce]=E.args;z("onRoomMessage",ce)}}else if(H==="stream-notify-room"){if(E&&E.args){const[ce,...Ge]=E.args;ce==="typing"&&z("onTyping",...Ge)}}else H==="stream-notify-user"&&E&&E.args&&z("onMessage",{type:"user-notification",data:E.args})},F=(V,H)=>{const E=new Error(V.reason||"Unknown error");s.value=E,z("onError",E),H&&H(E)},q=async V=>{if(n.value.has(V))return;const H=y();v({msg:"sub",id:H,name:"stream-room-messages",params:[V,!1]});const E=y();v({msg:"sub",id:E,name:"stream-notify-room",params:[`${V}/typing`,!1]}),n.value=new Set([...n.value,V])},K=V=>{n.value=new Set([...n.value].filter(H=>H!==V))},ee=()=>{const V=[...n.value];n.value=new Set,V.forEach(H=>{q(H)})},je=async(V,H)=>x("sendMessage",[{_id:y(),rid:V,msg:H}]),$e=(V,H,E)=>{v({msg:"method",method:"stream-notify-room",id:y(),params:[`${V}/typing`,H,E]})},ne=()=>{se(),r=setInterval(()=>{c&&c.readyState===WebSocket.OPEN&&v({msg:"ping"})},t.heartbeatInterval)},se=()=>{r&&(clearInterval(r),r=null)},He=()=>{if(o.value>=t.maxReconnectAttempts){console.error("[ChatWebSocket] Max reconnection attempts reached"),a.value=he.ERROR;return}a.value=he.RECONNECTING,o.value++;const V=Math.min(t.reconnectInterval*Math.pow(t.reconnectDecay,o.value-1),t.maxReconnectInterval);z("onReconnecting",o.value,V),m=setTimeout(()=>{h||I().catch(()=>{})},V)},ot=()=>{m&&(clearTimeout(m),m=null)},Re=()=>{if(c&&c.readyState===WebSocket.OPEN&&i.value.length>0){const V=[...i.value];i.value=[],V.forEach(H=>{v(H)})}},ae=()=>a.value===he.READY&&c&&c.readyState===WebSocket.OPEN,Xe=()=>c&&c.readyState===WebSocket.OPEN;return e.onUnmounted(()=>{j()}),{connectionState:e.readonly(a),lastError:e.readonly(s),reconnectAttempts:e.readonly(o),bufferedMessages:e.readonly(i),subscribedRooms:e.readonly(n),connect:I,disconnect:j,isConnected:Xe,isReady:ae,subscribeRoom:q,unsubscribeRoom:K,sendChatMessage:je,sendTyping:$e,callMethod:x,send:C,on:A,off:X}}const Ec=_.defineStore({id:"chat",state:()=>({enabled:!1,loaded:!1,hasCredentials:!1,connectionState:he.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===he.READY,isConnecting:l=>l.connectionState===he.CONNECTING||l.connectionState===he.AUTHENTICATING,isReconnecting:l=>l.connectionState===he.RECONNECTING,isAvailable:l=>l.enabled&&l.loaded&&l.hasCredentials},actions:{async init(){try{const l=re();if(ct.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=ct.isEnabled(),this.enabled){const t=await ct.getCredentials();this.hasCredentials=!!t,this.hasCredentials&&(this.currentUser=await ct.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===he.READY)return!0;try{return this._webSocket=Bc(),this._webSocket.on("onReady",()=>{this.connectionState=he.READY,this.loadRooms(),this.currentRoomId&&this._webSocket.subscribeRoom(this.currentRoomId)}),this._webSocket.on("onDisconnected",()=>{this.connectionState=he.DISCONNECTED}),this._webSocket.on("onReconnecting",l=>{this.connectionState=he.RECONNECTING,console.log("[ChatStore] Reconnecting, attempt:",l)}),this._webSocket.on("onError",l=>{this.lastError=l,this.connectionState=he.ERROR}),this._webSocket.on("onRoomMessage",l=>{this.handleNewMessage(l)}),this._webSocket.on("onTyping",(l,t)=>{this.handleTypingIndicator(l,t)}),this.connectionState=he.CONNECTING,await this._webSocket.connect(),!0}catch(l){return console.error("[ChatStore] Connection failed:",l),this.lastError=l,this.connectionState=he.ERROR,!1}},disconnect(){this._webSocket&&(this._webSocket.disconnect(),this._webSocket=null),this.connectionState=he.DISCONNECTED},async loadRooms(){try{const l=await Gl.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 s=[...await Gl.getMessages(l,{count:t.count||50,oldest:t.oldest,latest:t.latest})].reverse();t.prepend&&this.messagesByRoom[l]?this.messagesByRoom[l]=[...s,...this.messagesByRoom[l]]:this.messagesByRoom[l]=s}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 Gl.sendMessage(this.currentRoomId,l)}catch(t){throw console.error("[ChatStore] Failed to send message:",t),t}},async markAsRead(l){try{await Gl.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(s=>s._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(s=>s!==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 Ma.getWorkspaceRoom(l);return t.found||(t=await Ma.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 Gl.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}}}),z9={name:"ChatMessage",components:{PrimeAvatar:va},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 s=0;s<l.length;s++)t=l.charCodeAt(s)+((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=ct.getServerUrl(),a=l.image_url||l.title_link;return a?a.startsWith("http")?a:`${t}${a}`:""},openAttachment(l){this.$emit("attachment-click",l)}}},M9={key:0,class:"chat-message__avatar"},O9={class:"chat-message__content"},j9={key:0,class:"chat-message__header"},G9={key:0,class:"chat-message__username"},T9={class:"chat-message__time"},w9={class:"chat-message__body"},f9={key:0,class:"chat-message__text"},I9={key:1,class:"chat-message__attachments"},v9=["src","alt","onClick"],L9={key:1,class:"chat-message__attachment-file"},D9=["href"],R9={key:0,class:"attachment-desc"},k9={key:0,class:"chat-message__text mt-2"};function C9(l,t,a,s,o,i){const n=e.resolveComponent("PrimeAvatar");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["chat-message",{"chat-message--own":i.isOwnMessage,"chat-message--system":i.isSystemMessage}])},[!i.isOwnMessage&&!i.isSystemMessage?(e.openBlock(),e.createElementBlock("div",M9,[e.createVNode(n,{label:i.avatarLabel,style:e.normalizeStyle({backgroundColor:i.avatarColor}),shape:"circle"},null,8,["label","style"])])):e.createCommentVNode("",!0),e.createElementVNode("div",O9,[i.isSystemMessage?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",j9,[i.isOwnMessage?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",G9,e.toDisplayString(a.message.u?.name||a.message.u?.username||l.$t("chat.unknownUser")),1)),e.createElementVNode("span",T9,e.toDisplayString(i.formattedTime),1)])),e.createElementVNode("div",w9,[i.hasAttachments?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",f9,e.toDisplayString(a.message.msg),1)),i.hasAttachments?(e.openBlock(),e.createElementBlock("div",I9,[(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"},[i.isImageAttachment(c)?(e.openBlock(),e.createElementBlock("img",{key:0,src:i.getAttachmentUrl(c),alt:c.title||c.description,class:"chat-message__attachment-image",onClick:r=>i.openAttachment(c)},null,8,v9)):(e.openBlock(),e.createElementBlock("div",L9,[t[0]||(t[0]=e.createElementVNode("i",{class:"ri-attachment-line","aria-hidden":"true"},null,-1)),e.createElementVNode("a",{href:i.getAttachmentUrl(c),target:"_blank",rel:"noopener noreferrer"},e.toDisplayString(c.title||l.$t("chat.attachment")),9,D9),c.description?(e.openBlock(),e.createElementBlock("span",R9,e.toDisplayString(c.description),1)):e.createCommentVNode("",!0)]))]))),128)),a.message.msg?(e.openBlock(),e.createElementBlock("div",k9,e.toDisplayString(a.message.msg),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])])],2)}const ko=J(z9,[["render",C9],["__scopeId","data-v-165e03f8"]]),F9={name:"ChatInput",components:{PrimeButton:L,PrimeTextarea:hl},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)}}},V9={class:"chat-input"},x9={class:"chat-input__container"},S9={key:0,class:"chat-input__typing"},J9={class:"typing-text"},U9={key:1,class:"chat-input__files"},H9={class:"file-name"};function Q9(l,t,a,s,o,i){const n=e.resolveComponent("PrimeButton"),c=e.resolveComponent("PrimeTextarea");return e.openBlock(),e.createElementBlock("div",V9,[e.createElementVNode("div",x9,[e.createVNode(n,{type:"button",icon:"ri-attachment-line",text:"",rounded:"",disabled:a.disabled,"aria-label":l.$t("chat.attachFile"),onClick:i.triggerFileInput},null,8,["disabled","aria-label","onClick"]),e.createElementVNode("input",{ref:"fileInput",type:"file",class:"hidden",multiple:"",onChange:t[0]||(t[0]=(...r)=>i.handleFileSelect&&i.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:i.handleKeyDown,onInput:i.handleInput},null,8,["modelValue","placeholder","disabled","onKeydown","onInput"]),e.createVNode(n,{type:"button",icon:"ri-send-plane-2-fill",rounded:"",disabled:a.disabled||!i.canSend,"aria-label":l.$t("chat.send"),onClick:i.sendMessage},null,8,["disabled","aria-label","onClick"])]),a.typingUsers.length>0?(e.openBlock(),e.createElementBlock("div",S9,[t[2]||(t[2]=e.createElementVNode("span",{class:"typing-dots"},[e.createElementVNode("span"),e.createElementVNode("span"),e.createElementVNode("span")],-1)),e.createElementVNode("span",J9,e.toDisplayString(i.typingText),1)])):e.createCommentVNode("",!0),o.selectedFiles.length>0?(e.openBlock(),e.createElementBlock("div",U9,[(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",H9,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=>i.removeFile(m)},null,8,["aria-label","onClick"])]))),128))])):e.createCommentVNode("",!0)])}const Co=J(F9,[["render",Q9],["__scopeId","data-v-fd2ee6de"]]),B9={name:"ChatRoomList",components:{PrimeInputText:we,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,s=this.unreadCounts[t._id]||0;if(a!==s)return s-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)+"..."}}},E9={class:"chat-room-list"},P9={class:"chat-room-list__search"},_9={class:"p-input-icon-left w-full"},K9={class:"chat-room-list__items"},$9=["onClick"],q9={class:"chat-room-item__icon"},e4={class:"chat-room-item__info"},t4={class:"chat-room-item__name"},l4={key:0,class:"chat-room-item__last-message"},a4={key:0,class:"last-message-user"},o4={key:0,class:"chat-room-list__empty"};function s4(l,t,a,s,o,i){const n=e.resolveComponent("PrimeInputText"),c=e.resolveComponent("PrimeBadge");return e.openBlock(),e.createElementBlock("div",E9,[e.createElementVNode("div",P9,[e.createElementVNode("span",_9,[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",K9,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.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=>i.selectRoom(r)},[e.createElementVNode("div",q9,[e.createElementVNode("i",{class:e.normalizeClass(i.getRoomIcon(r)),"aria-hidden":"true"},null,2)]),e.createElementVNode("div",e4,[e.createElementVNode("div",t4,e.toDisplayString(r.fname||r.name),1),r.lastMessage?(e.openBlock(),e.createElementBlock("div",l4,[r.lastMessage.u?(e.openBlock(),e.createElementBlock("span",a4,e.toDisplayString(r.lastMessage.u.name||r.lastMessage.u.username)+": ",1)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(i.truncateMessage(r.lastMessage.msg)),1)])):e.createCommentVNode("",!0)]),i.getUnreadCount(r._id)>0?(e.openBlock(),e.createBlock(c,{key:0,value:i.getUnreadCount(r._id),severity:"danger",class:"chat-room-item__badge"},null,8,["value"])):e.createCommentVNode("",!0)],10,$9))),128)),i.filteredRooms.length===0?(e.openBlock(),e.createElementBlock("div",o4,[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 Fo=J(B9,[["render",s4],["__scopeId","data-v-94df09b1"]]),i4={name:"ChatPanel",components:{PrimeButton:L,PrimeProgressSpinner:Zt,ChatMessage:ko,ChatInput:Co,ChatRoomList:Fo},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(Ec),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()}}},n4={class:"chat-panel__header"},c4={class:"chat-panel__header-left"},r4={class:"chat-panel__title"},d4={class:"chat-panel__header-actions"},m4={class:"chat-panel__body"},b4={key:0,class:"chat-panel__status"},p4={key:0,class:"status-connecting"},u4={key:1,class:"status-reconnecting"},Z4={key:2,class:"status-not-configured"},h4={key:3,class:"status-error"},y4={ref:"messagesContainer",class:"chat-panel__messages"},W4={key:0,class:"chat-panel__load-more"},g4={key:1,class:"chat-panel__empty"};function Y4(l,t,a,s,o,i){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",n4,[e.createElementVNode("div",c4,[a.showRoomList&&i.currentRoom?(e.openBlock(),e.createBlock(n,{key:0,type:"button",icon:"ri-arrow-left-line","aria-label":l.$t("back"),text:"",rounded:"",onClick:i.backToRoomList},null,8,["aria-label","onClick"])):e.createCommentVNode("",!0),e.createElementVNode("h3",r4,e.toDisplayString(i.headerTitle),1)]),e.createElementVNode("div",d4,[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:i.toggleMinimize},null,8,["icon","aria-label","onClick"]),e.createVNode(n,{type:"button",icon:"ri-close-line","aria-label":l.$t("close"),text:"",rounded:"",onClick:i.close},null,8,["aria-label","onClick"])])]),e.withDirectives(e.createElementVNode("div",m4,[l.chatStore.isReady?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.showRoomList&&!i.currentRoom?(e.openBlock(),e.createBlock(r,{key:0,rooms:l.chatStore.rooms,"selected-room-id":l.chatStore.currentRoomId,"unread-counts":l.chatStore.unreadCounts,onSelect:i.selectRoom},null,8,["rooms","selected-room-id","unread-counts","onSelect"])):i.currentRoom?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",y4,[i.canLoadMore?(e.openBlock(),e.createElementBlock("div",W4,[e.createVNode(n,{label:l.$t("chat.loadMore"),text:"",size:"small",loading:o.loadingMore,onClick:i.loadMoreMessages},null,8,["label","loading","onClick"])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.chatStore.currentMessages,Z=>(e.openBlock(),e.createBlock(m,{key:Z._id,message:Z,"current-user-id":i.currentUserId,onAttachmentClick:i.handleAttachmentClick},null,8,["message","current-user-id","onAttachmentClick"]))),128)),l.chatStore.currentMessages.length===0?(e.openBlock(),e.createElementBlock("div",g4,[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:i.sendMessage,onTyping:i.handleTyping,onUpload:i.uploadFile},null,8,["disabled","typing-users","onSend","onTyping","onUpload"])],64)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock("div",b4,[l.chatStore.isConnecting?(e.openBlock(),e.createElementBlock("div",p4,[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",u4,[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",h4,[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:i.reconnect},null,8,["label","onClick"])])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Z4,[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:i.goToProfile},null,8,["label","onClick"])]))]))],512),[[e.vShow,!o.minimized]])],2)}const Pc=J(i4,[["render",Y4],["__scopeId","data-v-96fab464"]]);class N4{getPublicLink(){}createPublicLink(){}}class A4{getLoolUrl(t){let a=`${t}/alfresco/service/lool/host/url`;return ye.get(a).then(s=>s.data).catch(s=>{throw B("getLoolUrl",s)})}getAccessToken(t,a,s){let o=`${t}/alfresco/service/lool/token?nodeRef=workspace://SpacesStore/${a}&action=${s}`,i={headers:{Authorization:`basic ${window.btoa(window.localStorage["ticket-ECM"])}`}};return ye.get(o,i).then(n=>n.data).catch(n=>{throw B("getAccessToken",n)})}}const X4=new A4;class z4{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 M4=new z4;class O4{constructor(){this.previewableByMimeType=new Map}isNativelyPreviewable(t){return t?t.startsWith("image/")||t.startsWith("video/")||t==="application/pdf":!1}async isPreviewable(t){const a=t?.content?.mimeType;if(!a)return!1;if(this.isNativelyPreviewable(a))return!0;if(this.previewableByMimeType.has(a))return this.previewableByMimeType.get(a);try{const i=((await gl.listRenditions(t.id))?.list?.entries??[]).some(n=>n.entry?.id==="pdf");return this.previewableByMimeType.set(a,i),i}catch(s){return console.debug(`isPreviewable: listRenditions failed for ${t.id}: ${s?.message}`),!1}}}const j4=new O4;class G4{getAspects(t={}){return Qa.listAspects(t)}getAspect(t){return Qa.getAspect(t)}getTypes(t={}){return Ba.listTypes(t)}getType(t){return Ba.getType(t)}extractPropertiesFromType(t){const a=[];return t.properties&&Object.entries(t.properties).forEach(([s,o])=>{a.push({key:o.id,title:o.title||s,dataType:o.dataType||"d:text",mandatory:o.mandatory||!1})}),a}extractPropertiesFromAspect(t){const a=[];return t.properties&&Object.entries(t.properties).forEach(([s,o])=>{a.push({key:o.id,title:o.title||s,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 i=await this.getType(o.entry.id);this.extractPropertiesFromType(i.entry).forEach(c=>t.add(c.key))}const s=await this.getAspects({maxItems:1e3});if(s.list?.entries)for(const o of s.list.entries){const i=await this.getAspect(o.entry.id);this.extractPropertiesFromAspect(i.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 T4=new G4;function w4(l,t=""){if(typeof l>"u"||l===null)throw new Error("mandatory parameter "+t)}function Vo(l,t=""){if(typeof l!="string"||t.trim()==="")throw new Error("mandatory parameter "+t)}class _c{alive=!1;hide=!1;code;label;parent}class xo extends _c{groupConfidentiel;constructor({code:t,label:a,parent:s,groupConfidentiel:o,alive:i=!0}){super(),this.code=t,this.label=a,this.parent=s,this.groupConfidentiel=o,this.alive=i}isConfidentiel(){return this.groupConfidentiel&&this.groupConfidentiel.length>0}}class Kc extends _c{constructor({code:t,label:a,parent:s,hide:o=!1}){super(),this.code=t,this.label=a,this.parent=s,this.hide=o}}class f4{app="social";loading=!0;constructor(){this.filingPlans={},this.natures={}}async loadPlanClassement(t){this.loading=!0,Vo(t,"planType");let a=`plan-${t}.json`;console.info(`loading plan ${t}`);const s=`fr/jeci/pristy/config/${this.app}/${a}`;return Al.executeWebScript("GET",s).then(o=>{const i=o.PLAN_CLASSEMENT,n=o.NATURE_DOCUMENT;if(!i)throw new Error(`Missing PLAN_CLASSEMENT in ${a}`);if(!n)throw new Error(`Missing NATURE_DOCUMENT in ${a}`);this.filingPlans[t]=i.map(c=>{let r=new xo(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 Kc(c);return r.alive=!0,r}),this.loading=!1})}getTypeDossier(t,a){return this._findPlan(t,s=>s.code===a)}getTypeDossierFromLabel(t,a){return this._findPlan(t,s=>s.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 mo.getUserGroups(Ae().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(s=>s.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 s=this.getFolderNameFromPath(a);let o=this.getTypeDossierFromLabel(t,s);return o||(o=new xo({label:`${s} - 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 Vo(t,"planType"),this.getFilteredPlan(t).then(a=>a.map(s=>({id:s.id||null,key:s.code,label:s.label,children:[],isFolder:!0,confidentiel:s.isConfidentiel(),icon:"ri-folder-line"})))}}const I4=new f4,v4={install(l,t={}){const a=re(),s=t.init??{...a.oidc.init,...a.OIDC_CUSTOM},o=nd(a,s);typeof t.onAuthLogout=="function"&&o.onSessionLost(()=>{t.onAuthLogout(o)});const i=o.init().then(()=>{if(typeof t.onReady=="function")return t.onReady(o)}).then(()=>{typeof t.onInitSuccess=="function"&&t.onInitSuccess(o.isAuthenticated())}).catch(n=>{const c=new Error("Failure during initialization of the authentication provider");typeof t.onInitError=="function"?t.onInitError(c,n):console.error(c,n)});cd(o,i)}},L4={startsWith:"Commence par",contains:"Contient",notContains:"Ne contient pas",endsWith:"Se termine par",equals:"Égal à",notEquals:"Différent de",noFilter:"Aucun filtre",lt:"Inférieur à",lte:"Inférieur ou égal à",gt:"Supérieur à",gte:"Supérieur ou égal à",dateIs:"La date est",dateIsNot:"La date n'est pas",dateBefore:"Avant le",dateAfter:"Après le",clear:"Effacer",apply:"Appliquer",matchAll:"Correspond à tout",matchAny:"Correspond à n'importe lequel",addRule:"Ajouter une règle",removeRule:"Supprimer la règle",accept:"Oui",reject:"Non",choose:"Choisir",upload:"Envoyer",cancel:"Annuler",completed:"Terminé",pending:"En attente",dayNames:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],dayNamesShort:["dim","lun","mar","mer","jeu","ven","sam"],dayNamesMin:["D","L","M","M","J","V","S"],monthNames:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthNamesShort:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],chooseYear:"Choisir une année",chooseMonth:"Choisir un mois",chooseDate:"Choisir une date",prevDecade:"Décennie précédente",nextDecade:"Décennie suivante",prevYear:"Année précédente",nextYear:"Année suivante",prevMonth:"Mois précédent",nextMonth:"Mois suivant",prevHour:"Heure précédente",nextHour:"Heure suivante",prevMinute:"Minute précédente",nextMinute:"Minute suivante",prevSecond:"Seconde précédente",nextSecond:"Seconde suivante",am:"am",pm:"pm",today:"Aujourd'hui",weekHeader:"Sem",firstDayOfWeek:1,dateFormat:"dd/mm/yy",weak:"Faible",medium:"Moyen",strong:"Fort",passwordPrompt:"Saisissez un mot de passe",emptyFilterMessage:"Aucun résultat trouvé",searchMessage:"{0} résultats disponibles",selectionMessage:"{0} éléments sélectionnés",emptySelectionMessage:"Aucun élément sélectionné",emptySearchMessage:"Aucun résultat trouvé",emptyMessage:"Aucune option disponible",aria:{trueLabel:"Vrai",falseLabel:"Faux",nullLabel:"Non sélectionné",star:"1 étoile",stars:"{star} étoiles",selectAll:"Tous les éléments sélectionnés",unselectAll:"Tous les éléments désélectionnés",close:"Fermer",previous:"Précédent",next:"Suivant",navigation:"Navigation",scrollTop:"Faire défiler vers le haut",moveTop:"Déplacer tout en haut",moveUp:"Déplacer vers le haut",moveDown:"Déplacer vers le bas",moveBottom:"Déplacer tout en bas",moveToTarget:"Déplacer vers la cible",moveToSource:"Déplacer vers la source",moveAllToTarget:"Tout déplacer vers la cible",moveAllToSource:"Tout déplacer vers la source",pageLabel:"Page {page}",firstPageLabel:"Première page",lastPageLabel:"Dernière page",nextPageLabel:"Page suivante",previousPageLabel:"Page précédente",rowsPerPageLabel:"Lignes par page",jumpToPageDropdownLabel:"Aller à la page",jumpToPageInputLabel:"Aller à la page",selectRow:"Ligne sélectionnée",unselectRow:"Ligne désélectionnée",expandRow:"Ligne dépliée",collapseRow:"Ligne repliée",showFilterMenu:"Afficher le menu de filtre",hideFilterMenu:"Masquer le menu de filtre",filterOperator:"Opérateur de filtre",filterConstraint:"Contrainte de filtre",editRow:"Éditer la ligne",saveEdit:"Enregistrer la modification",cancelEdit:"Annuler la modification",listView:"Vue en liste",gridView:"Vue en grille",slide:"Diapositive",slideNumber:"{slideNumber}",zoomImage:"Agrandir l'image",zoomIn:"Zoom avant",zoomOut:"Zoom arrière",rotateRight:"Pivoter à droite",rotateLeft:"Pivoter à gauche"}},D4=_.defineStore({id:"UserPreferencesStore",state:()=>({listView:!0})}),R4={components:{PrimeButton:L,PrimeMessage:it,PrimeDivider:vl,PrimeInputText:we,PrimePassword:Lr},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(){Ae().login(this.email,this.password).then(t=>{if(t===!1)throw new Error(this.$t("emptyPasswordOrUser"));this.$route.query?.target===void 0?this.$router.push({name:"welcome"}):this.$router.replace(this.$route.query.target)}).catch(t=>{this.loginError=!0,this.failLoginMessage=typeof t?.message=="string"&&t.message!==""?t.message:this.$t("unexpectedLoginError")})}},computed:{..._.mapState(re,["SHOW_ACA_LOGIN_LINK","ACA_LINK"])}},k4={class:"surface-0 flex align-items-center justify-content-center min-h-screen min-w-screen overflow-hidden"},C4={class:"grid justify-content-center p-2 lg:p-0 login-grid"},F4={class:"col-12 xl:col-6"},V4={class:"h-full w-full m-0 py-7 px-4 login-card"},x4={class:"text-center mb-5"},S4={class:"text-900 text-3xl font-medium mb-3"},J4={class:"text-600 font-medium"},U4={class:"w-full md:w-10 mx-auto"},H4={for:"email",class:"block text-900 text-xl font-medium mb-2"},Q4={for:"password",class:"block text-900 font-medium text-xl mb-2"},B4={class:"w-full mb-3 flex justify-content-end flex-wrap"};function E4(l,t,a,s,o,i){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",k4,[e.createElementVNode("div",C4,[e.createElementVNode("div",F4,[e.createElementVNode("div",V4,[e.createElementVNode("div",x4,[t[3]||(t[3]=e.createElementVNode("div",{id:"loginLogo",class:"mb-3 inline-block"},null,-1)),e.createElementVNode("div",S4,e.toDisplayString(l.$t("welcome")),1),e.createElementVNode("span",J4,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",U4,[e.createElementVNode("label",H4,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]=Z=>o.email=Z),type:"text",class:"w-full mb-3 p-3",placeholder:l.$t("userID"),onKeyup:e.withKeys(i.login,["enter"])},null,8,["modelValue","placeholder","onKeyup"]),e.createElementVNode("label",Q4,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]=Z=>o.password=Z),placeholder:l.$t("password"),class:"w-full mb-3",inputClass:"w-full p-3",feedback:!1,onKeyup:e.withKeys(i.login,["enter"])},null,8,["modelValue","placeholder","onKeyup"]),e.createElementVNode("div",B4,[e.createElementVNode("a",{"data-testid":"login-page-forgot-password-link",class:"cursor-pointer no-underline hover:underline",onClick:t[2]||(t[2]=(...Z)=>i.goToForgotPasswordPage&&i.goToForgotPasswordPage(...Z))},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:i.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:i.goToACA},null,8,["label","onClick"])],64)):e.createCommentVNode("",!0)])])])])])}const P4=J(R4,[["render",E4],["__scopeId","data-v-a63dc1a7"]]),_4={name:"NotFoundPages",data(){return{errorNb:"404"}},components:{ErrorComponent:Ro}};function K4(l,t,a,s,o,i){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 $4=J(_4,[["render",K4]]),q4="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",eg={name:"ErrorPage",data(){return{id:null}},mounted(){this.id=this.$route.params.id}},tg={"data-testid":"error-page",class:"surface-0 flex align-items-center justify-content-center min-h-screen min-w-screen overflow-hidden"},lg={class:"grid justify-content-center p-2 lg:p-0 error-page"},ag={class:"col-12 xl:col-6"},og={class:"flex justify-content-center h-full w-full m-0 py-7 px-4"},sg={class:"grid flex-column align-items-center"},ig={key:0,"data-testid":"error-page-title",class:"text-900 font-bold text-3xl lg:text-5xl mb-2"},ng={"data-testid":"error-page-message",class:"text-gray-600"};function cg(l,t,a,s,o,i){return e.openBlock(),e.createElementBlock("div",tg,[e.createElementVNode("div",lg,[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:q4,alt:"Pristy logo",class:"mb-5 pristy-logo"})],-1)),e.createElementVNode("div",ag,[e.createElementVNode("div",og,[e.createElementVNode("div",sg,[o.id?(e.openBlock(),e.createElementBlock("h1",ig,e.toDisplayString(l.$t("error",{error:o.id})),1)):e.createCommentVNode("",!0),e.createElementVNode("span",ng,e.toDisplayString(l.$t(`errors.${o.id}`)),1)])])])])])}const rg=J(eg,[["render",cg],["__scopeId","data-v-684dbd8b"]]),dg={class:"oidc-callback flex justify-content-center p-5"},mg={key:1,role:"alert",class:"text-center"},bg=Object.assign({name:"OidcCallback",components:{PrimeProgressSpinner:Zt,PrimeButton:L}},{__name:"OidcCallback",setup(l){const t=Dr.useRouter(),a=Ae(),s=re(),o=e.ref(null);e.onMounted(async()=>{try{const n=await a.completeLogin();await t.replace(n)}catch(n){console.error("OIDC callback failed:",n),o.value=n}});function i(){window.location.replace(`${window.location.origin}${lc(s.BASE_URL)}`)}return(n,c)=>{const r=e.resolveComponent("PrimeProgressSpinner"),m=e.resolveComponent("PrimeButton");return e.openBlock(),e.createElementBlock("div",dg,[o.value===null?(e.openBlock(),e.createBlock(r,{key:0,"aria-label":n.$t("auth.signInProgress")},null,8,["aria-label"])):(e.openBlock(),e.createElementBlock("div",mg,[e.createElementVNode("p",null,e.toDisplayString(n.$t("auth.callbackError")),1),e.createVNode(m,{label:n.$t("auth.retrySignIn"),icon:"ri-refresh-line",onClick:i},null,8,["label"])]))])}}}),pg={install(l){l.component("PaginatorComponent",Pa),l.component("PDFComponent",_a),l.component("PdfSkeleton",ia),l.component("PristyIcon",xl),l.component("TreeExplorer",il),l.component("CopyOrMovePopup",eo),l.component("EllipsisBreadcrumb",ic),l.component("BreadCrumbAlfresco",nc),l.component("ContentTableView",no),l.component("ContentListView",co),l.component("ContentGridView",ro),l.component("DynamicContentView",dc),l.component("ContentFiltersHeader",mc),l.component("ImageViewer",Wo),l.component("VideoPlayer",go),l.component("PreviewPanel",Wc),l.component("CreateWorkflowPopup",bo),l.component("ImportNewVersionPopup",po),l.component("ShareLinkPopup",yo),l.component("MemberListPopup",Zo),l.component("SendMailPopup",ho),l.component("LayoutSelector",Yc),l.component("HelpKeyMessage",Nc),l.component("SelectionStatus",gc),l.component("MemberList",uo),l.component("ActionMenu",Ul),l.component("CustomToastContent",Ac),l.component("UploadTargetInfo",zc),l.component("FolderUpload",Go),l.component("ImportPopupWithWorker",Mc),l.component("UploadStatus",Xc),l.component("AddPairInConfigDialog",Oc),l.component("ConfigDatatable",jc),l.component("ConfigItemEditor",To),l.component("ConfigSplitView",Gc),l.component("ConfigUpload",Tc),l.component("ListVersionConfig",wc),l.component("AddCriterionPopup",ga),l.component("AdvancedSearchPanel",Lc),l.component("AdvancedViewPanel",Dc),l.component("ExactSearch",fo),l.component("FavoriteViewMenu",Rc),l.component("UserViewsFavoritesPanel",Na),l.component("SaveViewPopup",Aa),l.component("PdfToolsComponent",Cc),l.component("CodeMirrorEditor",Uc),l.component("DiffViewerDialog",vo),l.component("ArrayEditor",Wa),l.component("ConfigHealthBanner",Qc),l.component("ErrorComponent",Ro),l.component("ChatPanel",Pc),l.component("ChatMessage",ko),l.component("ChatInput",Co),l.component("ChatRoomList",Fo)}};u.ActionMenu=Ul,u.AddCriterionPopup=ga,u.AddPairInConfigDialog=Oc,u.AdvancedSearchPanel=Lc,u.AdvancedViewPanel=Dc,u.ArrayEditor=Wa,u.BreadCrumbAlfresco=nc,u.ChatConnectionState=he,u.ChatInput=Co,u.ChatMessage=ko,u.ChatPanel=Pc,u.ChatRoomList=Fo,u.CodeMirrorEditor=Uc,u.ConfigDatatable=jc,u.ConfigHealthBanner=Qc,u.ConfigItemEditor=To,u.ConfigSplitView=Gc,u.ConfigUpload=Tc,u.ConnectionState=Ke,u.ContentFiltersHeader=mc,u.ContentGridView=ro,u.ContentListView=co,u.ContentTableView=no,u.CopyOrMovePopup=eo,u.CreateWorkflowPopup=bo,u.CustomToastContent=Ac,u.DEFAULT_PREVIEW_STYLES=Xo,u.DiffViewerDialog=vo,u.DynamicContentView=dc,u.EllipsisBreadcrumb=ic,u.ErrorComponent=Ro,u.ErrorPage=rg,u.ExactSearch=fo,u.FavoriteViewMenu=Rc,u.FolderUpload=Go,u.HelpKeyMessage=Nc,u.ImageViewer=Wo,u.ImportNewVersionPopup=po,u.ImportPopupWithWorker=Mc,u.LayoutSelector=Yc,u.ListVersionConfig=wc,u.LoginPage=P4,u.MemberList=uo,u.MemberListPopup=Zo,u.NatureDocument=Kc,u.NotFoundPages=$4,u.OidcCallback=bg,u.PDFComponent=_a,u.PaginatorComponent=Pa,u.PdfSkeleton=ia,u.PdfToolsComponent=Cc,u.PreviewPanel=Wc,u.PristyIcon=xl,u.ROLE_EDITOR=_t,u.ROLE_OBSERVER=dl,u.SaveViewPopup=Aa,u.SelectionStatus=gc,u.SendMailPopup=ho,u.ShareLinkPopup=yo,u.TreeExplorer=il,u.TypeDossier=xo,u.UploadStatus=Xc,u.UploadTargetInfo=zc,u.UserViewsFavoritesPanel=Na,u.VideoPlayer=go,u.actionsApi=Vr,u.activitiesApi=Hr,u.alfrescoApi=te,u.alfrescoFileService=ze,u.alfrescoModelService=T4,u.alfrescoNodeService=S,u.alfrescoPermissionService=N4,u.aspectsApi=Qa,u.authenticationApi=y2,u.categoriesApi=xr,u.chatBackendService=Ma,u.checkNotNull=w4,u.checkString=Vo,u.collabService=Dt,u.collaboraAccessService=X4,u.commentsApi=Sr,u.componentLibrary=pg,u.configHealthService=Hc,u.configService=Bt,u.contentApi=vt,u.createEditorView=Zc,u.discoveryApi=Qr,u.downloadsApi=Jr,u.errorService=Ut,u.favoriteService=ma,u.favoritesApi=Vl,u.filingPlanService=I4,u.formatService=ba,u.generatePreviewDocument=Oo,u.getBaseExtensions=Ml,u.getLanguageExtension=zl,u.groupsApi=Yl,u.i18n=sl,u.iconeService=cl,u.keyboardShortcutsService=M4,u.menuService=io,u.messages=Qn,u.nodesApi=Ye,u.peopleApi=ol,u.peopleService=mo,u.preferencesApi=Ha,u.previewService=j4,u.primeLocaleFr=L4,u.renderMarkdown=zo,u.renditionsApi=gl,u.rocketChatAuthService=ct,u.rocketChatService=Gl,u.sanitizeHtml=Mo,u.searchApi=ht,u.sharedLinksApi=Nl,u.sitesApi=Ue,u.tagsApi=Ur,u.translationService=cc,u.trashcanApi=Fr,u.typesApi=Ba,u.uploadApi=Ua,u.useChatStore=Ec,u.useChatWebSocket=Bc,u.useCodeMirror=Du,u.useCollabEditor=xc,u.useCollabStore=Sc,u.useCollabWebSocket=Fc,u.useCollaboraStore=_n,u.useConfigStore=re,u.useFavoritesStore=Jl,u.useMarkdownPreview=jo,u.useMenuStore=da,u.useNavigationStore=Be,u.usePaginatorStore=Ea,u.useScreenStore=Jc,u.useSearchStore=Ya,u.useSelectionStore=Me,u.useTaskNotificationStore=ec,u.useThemeStore=ya,u.useUploadStore=nl,u.useUserPreferencesStore=D4,u.useUserStore=Ae,u.useUserViewStore=Lt,u.userViewService=Ot,u.versionsApi=Jt,u.vueKeyCloak=v4,u.webscriptApi=Al,u.workflowService=ra,u.workspaceService=Oe,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})}));
|
|
155
155
|
//# sourceMappingURL=pristy-libvue.umd.js.map
|