ode-explorer 1.3.2-dev.202401091744 → 1.3.2-dev.202401151654

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.
Files changed (57) hide show
  1. package/dist/ActionBarContainer.js +1 -1
  2. package/dist/AppAction.js +1 -1
  3. package/dist/DeleteModal.js +1 -1
  4. package/dist/DisableModal.js +1 -1
  5. package/dist/EmptyScreenApp.js +1 -1
  6. package/dist/EmptyScreenError.js +1 -1
  7. package/dist/EmptyScreenNoContentInFolder.js +1 -1
  8. package/dist/EmptyScreenSearch.js +1 -1
  9. package/dist/EmptyScreenTrash.js +1 -1
  10. package/dist/FolderModal.js +1 -1
  11. package/dist/FoldersList.js +1 -1
  12. package/dist/Library.js +1 -1
  13. package/dist/MoveModal.js +1 -1
  14. package/dist/OnboardingModal.js +1 -0
  15. package/dist/PublishModal.js +1 -0
  16. package/dist/ResourceModal.js +1 -0
  17. package/dist/ResourcesList.js +1 -1
  18. package/dist/ShareModal.js +1 -0
  19. package/dist/TrashModal.js +1 -1
  20. package/dist/edifice-icons.js +1 -0
  21. package/dist/edifice-react.js +1347 -0
  22. package/dist/index.html +3 -1
  23. package/dist/index.js +4 -223
  24. package/dist/react.js +32 -0
  25. package/dist/version.txt +1 -1
  26. package/lib/ActionBarContainer.js +213 -313
  27. package/lib/AppAction.js +24 -39
  28. package/lib/DeleteModal.js +31 -39
  29. package/lib/DisableModal.js +14 -14
  30. package/lib/EmptyScreenApp.js +27 -43
  31. package/lib/EmptyScreenError.js +9 -10
  32. package/lib/EmptyScreenNoContentInFolder.js +12 -14
  33. package/lib/EmptyScreenSearch.js +11 -13
  34. package/lib/EmptyScreenTrash.js +11 -13
  35. package/lib/FolderModal.js +86 -105
  36. package/lib/FoldersList.js +42 -55
  37. package/lib/Library.js +17 -15
  38. package/lib/MoveModal.js +53 -69
  39. package/lib/OnboardingModal.js +5 -0
  40. package/lib/PublishModal.js +5 -0
  41. package/lib/ResourceModal.js +5 -0
  42. package/lib/ResourcesList.js +190 -202
  43. package/lib/ShareModal.js +5 -0
  44. package/lib/TrashModal.js +14 -14
  45. package/lib/components/OnboardingModal.d.ts +2 -0
  46. package/lib/features/ActionBar/Disable/DisableModal.d.ts +1 -1
  47. package/lib/features/ActionBar/Publish/PublishModal.d.ts +2 -0
  48. package/lib/features/ActionBar/Resource/ResourceModal.d.ts +2 -0
  49. package/lib/features/ActionBar/Share/ShareModal.d.ts +2 -0
  50. package/lib/features/ActionBar/Trash/TrashModal.d.ts +1 -1
  51. package/lib/index.js +2 -2
  52. package/lib/index2.js +1014 -1503
  53. package/lib/services/api/index.d.ts +21 -17
  54. package/lib/store/index.d.ts +5 -5
  55. package/package.json +3 -7
  56. package/dist/style.css +0 -1
  57. package/lib/style.css +0 -410
@@ -1 +1 @@
1
- import{r as p,l as ne,m as U,n as oe,e as re,o as ce,p as k,q as ae,s as ie,t as le,v as ue,c as $,d as de,b as Y,j as n,B as q,w as he,x as fe,y as pe,z as Re,A as Se,L as me,_ as y}from"./index.js";import{odeServices as P,ACTION as u}from"/assets/js/edifice-ts-client/index.js";function Ee({roles:o,rights:e,action:c}){const[i,s]=p.useState(!1),{user:S}=ne(),m=U();p.useEffect(()=>{E()},[o,e]);const d=async function(a){const t=a instanceof Array?a:[a];if(o instanceof Array){const R=await P.rights().sessionHasAtLeastOneResourceRight(o,t);s(R)}else{const R=await P.rights().sessionHasResourceRight(o,t);s(R)}},h=async function(a){if(o instanceof Array){const t=await P.rights().sessionHasAtLeastOneResourceRightForEachList(o,a);s(t)}else{const t=await P.rights().sessionHasResourceRightForEachList(o,a);s(t)}},E=async function(){var a,t,R;if(o===void 0){s(!0);return}if(m&&((t=(a=e[0])==null?void 0:a.trashedBy)!=null&&t.includes(S==null?void 0:S.userId))&&c==="restore"&&!((R=e[0])!=null&&R.trashed)){s(!0);return}if(e instanceof Array)if(e.length>0)if(typeof e[0]=="string")await d(e);else{const v=e.map(O=>O.rights);await h(v)}else s(!1);else typeof e=="string"?await d(e):await d(e.rights)};return{visible:i,refreshState:E}}function G(){const[o,e]=p.useState(!1),[c,i]=p.useState("void"),[s,S]=p.useState(),m=oe(r=>r.config),d=re(),h=ce(),E=k(),a=ae(),t=ie(),R=U(),v=le(),O=ue(),{openResource:x,printSelectedResource:g,openFolder:w,clearSelectedItems:F,clearSelectedIds:T}=$(),{data:j}=de();p.useEffect(()=>{if(h.length===0&&t.length===0){e(!1);return}if(O){e(!1);return}e(!0)},[h,t]);async function L(r){var I;switch((I=document.getElementById("root"))==null||I.setAttribute("aria-hidden","true"),S(r),r.id){case u.OPEN:return h.length>0?x(E[0]):w({folder:a[0],folderId:a[0].id});case u.MOVE:return i("move");case u.PRINT:return g();case u.DELETE:return i("delete");case u.RESTORE:return await C();case u.PUBLISH:return i("publish");case u.UPD_PROPS:case"edit":return se();case u.SHARE:return i("share");default:throw Error(`Unknown action: ${r.id}`)}}function D(r){const I=h.length+t.length,A=h.length===1||t.length===1,V=I===1,M=t.length===0;switch(r.id){case u.OPEN:return V;case u.MANAGE:return A;case u.PUBLISH:return A&&M;case u.UPD_PROPS:return A&&M;case u.SHARE:return M&&A;case u.PRINT:return A&&M;case"edit":return V;default:return!0}}const B=()=>!0;async function C(){try{if(R)await v.mutate();else throw new Error("Cannot restore untrashed resources");_()}catch(r){console.error(r)}}function _(){var r;i("void"),s!=null&&s.id&&((r=document.getElementById(s==null?void 0:s.id))==null||r.focus())}const l=r=>()=>{c===r&&(_(),F(),T())},b=l("move"),N=l("move"),z=l("delete"),H=l("delete"),f=l("publish"),J=l("publish"),K=l("edit_folder"),Q=l("edit_folder"),X=l("edit_resource"),Z=l("edit_resource"),W=l("share"),ee=l("share");function se(){h&&h.length>0?i("edit_resource"):i("edit_folder")}function te(r){return r.id==="edit"&&t.length>0?"explorer.rename":`explorer.actions.${r.id}`}return{onRestore:C,actions:R?m==null?void 0:m.trashActions:j,selectedElement:[...E,...a],currentFolderId:d==null?void 0:d.id,overrideLabel:te,handleClick:L,isActivable:R?B:D,isActionBarOpen:o,isMoveModalOpen:c==="move",onMoveCancel:b,onMoveSuccess:N,isDeleteModalOpen:c==="delete",onDeleteCancel:H,onDeleteSuccess:z,isPublishModalOpen:c==="publish",onPublishCancel:J,onPublishSuccess:f,isEditFolderOpen:c==="edit_folder",onEditFolderCancel:Q,onEditFolderSuccess:K,isEditResourceOpen:c==="edit_resource",onEditResourceCancel:Z,onEditResourceSuccess:X,isShareResourceOpen:c==="share",onShareResourceCancel:ee,onShareResourceSuccess:W,onClearActionBar:_}}function _e({resourceRights:o,roleExpected:e,action:c,children:i,renderWhenForbidden:s}){const{t:S}=Y(),{overrideLabel:m}=G(),{visible:d}=Ee({roles:e,rights:o,action:c==null?void 0:c.id}),{setResourceActionDisable:h}=$(),E=U();return d?n.jsx(n.Fragment,{children:i}):s?s():E&&!d?n.jsx(q,{type:"button",color:"primary",variant:"filled",onClick:()=>{h(!0)},children:S(m(c))}):n.jsx(n.Fragment,{})}const Oe=p.lazy(async()=>({default:(await y(()=>import("./index.js").then(e=>e.a8),[])).ShareModal})),ye=p.lazy(async()=>({default:(await y(()=>import("./index.js").then(e=>e.a8),[])).PublishModal})),ve=p.lazy(async()=>({default:(await y(()=>import("./index.js").then(e=>e.a8),[])).ResourceModal})),Ae=p.lazy(async()=>await y(()=>import("./DeleteModal.js"),["DeleteModal.js","index.js"])),Ce=p.lazy(async()=>await y(()=>import("./MoveModal.js"),["MoveModal.js","index.js"])),be=p.lazy(async()=>await y(()=>import("./FolderModal.js"),["FolderModal.js","index.js"]));function Pe(){const{t:o}=Y(),{actions:e,selectedElement:c,isMoveModalOpen:i,isDeleteModalOpen:s,isPublishModalOpen:S,isActionBarOpen:m,isEditFolderOpen:d,overrideLabel:h,onEditFolderCancel:E,onEditFolderSuccess:a,isEditResourceOpen:t,onEditResourceCancel:R,onEditResourceSuccess:v,isShareResourceOpen:O,onShareResourceCancel:x,onShareResourceSuccess:g,onMoveCancel:w,onMoveSuccess:F,onDeleteCancel:T,onDeleteSuccess:j,onPublishCancel:L,onPublishSuccess:D,isActivable:B,handleClick:C}=G(),_=k(),l=he(),b=fe(),N=pe(m,{from:{opacity:0,transform:"translateY(100%)"},enter:{opacity:1,transform:"translateY(0)"},leave:{opacity:0,transform:"translateY(100%)"}});return n.jsxs(n.Fragment,{children:[N((z,H)=>H&&n.jsx(Re.div,{className:"position-fixed bottom-0 start-0 end-0 z-3",style:z,children:n.jsx(Se,{children:e==null?void 0:e.filter(f=>f.available&&f.target==="actionbar").map(f=>B(f)&&n.jsx(_e,{resourceRights:c,roleExpected:f.right,action:f,children:n.jsx(q,{id:f.id,type:"button",color:"primary",variant:"filled",onClick:()=>{C(f)},children:o(h(f))},f.id)},f.id))})})),n.jsxs(p.Suspense,{fallback:n.jsx(me,{}),children:[i&&n.jsx(Ce,{isOpen:i,onCancel:w,onSuccess:F}),s&&n.jsx(Ae,{isOpen:s,onCancel:T,onSuccess:j}),S&&n.jsx(ye,{isOpen:S,resource:_[0],onCancel:L,onSuccess:D}),d&&n.jsx(be,{edit:!0,isOpen:d,onCancel:E,onSuccess:a}),t&&n.jsx(ve,{mode:"update",actions:e,isOpen:t,selectedResource:_[0],updateResource:b,onCancel:R,onSuccess:v}),O&&n.jsx(Oe,{isOpen:O,resource:_[0],updateResource:b,shareResource:l,onCancel:x,onSuccess:g})]})]})}export{Pe as default};
1
+ import{d as V,e as ne,b as oe,f as re,g as z,h as ce,i as ae,j as ie,k as le,u as $,a as ue,l as de,m as fe,_ as y}from"./index.js";import{f as he,j as n,B as Y,w as pe,x as Re,y as Se,L as me}from"./edifice-react.js";import{r as p,u as G}from"./react.js";import{odeServices as P,ACTION as u}from"/assets/js/edifice-ts-client/index.js";import"./edifice-icons.js";function Ee({roles:a,rights:e,action:r}){const[i,s]=p.useState(!1),{user:S}=he(),m=V();p.useEffect(()=>{E()},[a,e]);const d=async function(c){const t=c instanceof Array?c:[c];if(a instanceof Array){const R=await P.rights().sessionHasAtLeastOneResourceRight(a,t);s(R)}else{const R=await P.rights().sessionHasResourceRight(a,t);s(R)}},f=async function(c){if(a instanceof Array){const t=await P.rights().sessionHasAtLeastOneResourceRightForEachList(a,c);s(t)}else{const t=await P.rights().sessionHasResourceRightForEachList(a,c);s(t)}},E=async function(){var c,t,R;if(a===void 0){s(!0);return}if(m&&((t=(c=e[0])==null?void 0:c.trashedBy)!=null&&t.includes(S==null?void 0:S.userId))&&r==="restore"&&!((R=e[0])!=null&&R.trashed)){s(!0);return}if(e instanceof Array)if(e.length>0)if(typeof e[0]=="string")await d(e);else{const v=e.map(O=>O.rights);await f(v)}else s(!1);else typeof e=="string"?await d(e):await d(e.rights)};return{visible:i,refreshState:E}}function q(){const[a,e]=p.useState(!1),[r,i]=p.useState("void"),[s,S]=p.useState(),m=ne(o=>o.config),d=oe(),f=re(),E=z(),c=ce(),t=ae(),R=V(),v=ie(),O=le(),{openResource:g,printSelectedResource:M,openFolder:w,clearSelectedItems:F,clearSelectedIds:T}=$(),{data:j}=ue();p.useEffect(()=>{if(f.length===0&&t.length===0){e(!1);return}if(O){e(!1);return}e(!0)},[f,t]);async function L(o){var I;switch((I=document.getElementById("root"))==null||I.setAttribute("aria-hidden","true"),S(o),o.id){case u.OPEN:return f.length>0?g(E[0]):w({folder:c[0],folderId:c[0].id});case u.MOVE:return i("move");case u.PRINT:return M();case u.DELETE:return i("delete");case u.RESTORE:return await C();case u.PUBLISH:return i("publish");case u.UPD_PROPS:case"edit":return se();case u.SHARE:return i("share");default:throw Error(`Unknown action: ${o.id}`)}}function D(o){const I=f.length+t.length,A=f.length===1||t.length===1,k=I===1,x=t.length===0;switch(o.id){case u.OPEN:return k;case u.MANAGE:return A;case u.PUBLISH:return A&&x;case u.UPD_PROPS:return A&&x;case u.SHARE:return x&&A;case u.PRINT:return A&&x;case"edit":return k;default:return!0}}const B=()=>!0;async function C(){try{if(R)await v.mutate();else throw new Error("Cannot restore untrashed resources");_()}catch(o){console.error(o)}}function _(){var o;i("void"),s!=null&&s.id&&((o=document.getElementById(s==null?void 0:s.id))==null||o.focus())}const l=o=>()=>{r===o&&(_(),F(),T())},b=l("move"),N=l("move"),H=l("delete"),U=l("delete"),h=l("publish"),J=l("publish"),K=l("edit_folder"),Q=l("edit_folder"),X=l("edit_resource"),Z=l("edit_resource"),W=l("share"),ee=l("share");function se(){f&&f.length>0?i("edit_resource"):i("edit_folder")}function te(o){return o.id==="edit"&&t.length>0?"explorer.rename":`explorer.actions.${o.id}`}return{onRestore:C,actions:R?m==null?void 0:m.trashActions:j,selectedElement:[...E,...c],currentFolderId:d==null?void 0:d.id,overrideLabel:te,handleClick:L,isActivable:R?B:D,isActionBarOpen:a,isMoveModalOpen:r==="move",onMoveCancel:b,onMoveSuccess:N,isDeleteModalOpen:r==="delete",onDeleteCancel:U,onDeleteSuccess:H,isPublishModalOpen:r==="publish",onPublishCancel:J,onPublishSuccess:h,isEditFolderOpen:r==="edit_folder",onEditFolderCancel:Q,onEditFolderSuccess:K,isEditResourceOpen:r==="edit_resource",onEditResourceCancel:Z,onEditResourceSuccess:X,isShareResourceOpen:r==="share",onShareResourceCancel:ee,onShareResourceSuccess:W,onClearActionBar:_}}function _e({resourceRights:a,roleExpected:e,action:r,children:i,renderWhenForbidden:s}){const{t:S}=G(),{overrideLabel:m}=q(),{visible:d}=Ee({roles:e,rights:a,action:r==null?void 0:r.id}),{setResourceActionDisable:f}=$(),E=V();return d?n.jsx(n.Fragment,{children:i}):s?s():E&&!d?n.jsx(Y,{type:"button",color:"primary",variant:"filled",onClick:()=>{f(!0)},children:S(m(r))}):n.jsx(n.Fragment,{})}const Oe=p.lazy(async()=>await y(()=>import("./ShareModal.js"),["ShareModal.js","edifice-react.js","react.js","edifice-icons.js"])),ye=p.lazy(async()=>await y(()=>import("./PublishModal.js"),["PublishModal.js","edifice-react.js","react.js","edifice-icons.js"])),ve=p.lazy(async()=>await y(()=>import("./ResourceModal.js"),["ResourceModal.js","edifice-react.js","react.js","edifice-icons.js"])),Ae=p.lazy(async()=>await y(()=>import("./DeleteModal.js"),["DeleteModal.js","edifice-react.js","react.js","edifice-icons.js","index.js"])),Ce=p.lazy(async()=>await y(()=>import("./MoveModal.js"),["MoveModal.js","edifice-react.js","react.js","edifice-icons.js","index.js"])),be=p.lazy(async()=>await y(()=>import("./FolderModal.js"),["FolderModal.js","edifice-react.js","react.js","edifice-icons.js","index.js"]));function we(){const{t:a}=G(),{actions:e,selectedElement:r,isMoveModalOpen:i,isDeleteModalOpen:s,isPublishModalOpen:S,isActionBarOpen:m,isEditFolderOpen:d,overrideLabel:f,onEditFolderCancel:E,onEditFolderSuccess:c,isEditResourceOpen:t,onEditResourceCancel:R,onEditResourceSuccess:v,isShareResourceOpen:O,onShareResourceCancel:g,onShareResourceSuccess:M,onMoveCancel:w,onMoveSuccess:F,onDeleteCancel:T,onDeleteSuccess:j,onPublishCancel:L,onPublishSuccess:D,isActivable:B,handleClick:C}=q(),_=z(),l=de(),b=fe(),N=pe(m,{from:{opacity:0,transform:"translateY(100%)"},enter:{opacity:1,transform:"translateY(0)"},leave:{opacity:0,transform:"translateY(100%)"}});return n.jsxs(n.Fragment,{children:[N((H,U)=>U&&n.jsx(Re.div,{className:"position-fixed bottom-0 start-0 end-0 z-3",style:H,children:n.jsx(Se,{children:e==null?void 0:e.filter(h=>h.available&&h.target==="actionbar").map(h=>B(h)&&n.jsx(_e,{resourceRights:r,roleExpected:h.right,action:h,children:n.jsx(Y,{id:h.id,type:"button",color:"primary",variant:"filled",onClick:()=>{C(h)},children:a(f(h))},h.id)},h.id))})})),n.jsxs(p.Suspense,{fallback:n.jsx(me,{}),children:[i&&n.jsx(Ce,{isOpen:i,onCancel:w,onSuccess:F}),s&&n.jsx(Ae,{isOpen:s,onCancel:T,onSuccess:j}),S&&n.jsx(ye,{isOpen:S,resource:_[0],onCancel:L,onSuccess:D}),d&&n.jsx(be,{edit:!0,isOpen:d,onCancel:E,onSuccess:c}),t&&n.jsx(ve,{mode:"update",actions:e,isOpen:t,selectedResource:_[0],updateResource:b,onCancel:R,onSuccess:v}),O&&n.jsx(Oe,{isOpen:O,resource:_[0],updateResource:b,shareResource:l,onCancel:g,onSuccess:M})]})]})}export{we as default};
package/dist/AppAction.js CHANGED
@@ -1 +1 @@
1
- import{u as x,a as C,b as f,c as j,d as S,e as _,f as g,j as e,B as R,S as h,r as o,L as A,_ as O}from"./index.js";import"/assets/js/edifice-ts-client/index.js";const v=o.lazy(async()=>({default:(await O(()=>import("./index.js").then(s=>s.a8),[])).ResourceModal}));function I(){const[a,s]=x(),{appCode:r}=C(),{t:n}=f(r),{clearSelectedItems:c,clearSelectedIds:l}=j(),{data:t}=S(),u=t==null?void 0:t.find(m=>m.id==="create"),d=_(),i=g(),p=()=>{c(),l(),s()};return u?e.jsxs(e.Fragment,{children:[e.jsx(R,{type:"button",color:"primary",variant:"filled",leftIcon:e.jsx(h,{}),className:"ms-auto",onClick:p,children:n("explorer.create.title")}),e.jsx(o.Suspense,{fallback:e.jsx(A,{}),children:a&&e.jsx(v,{mode:"create",actions:t,currentFolder:d,createResource:i,isOpen:a,onSuccess:s,onCancel:s})})]}):null}export{I as default};
1
+ import{u as x,a as f,b as C,c as j,_}from"./index.js";import{i as g,a as S,j as e,B as R,L as A}from"./edifice-react.js";import{u as O,r as a}from"./react.js";import{u as h}from"./edifice-icons.js";import"/assets/js/edifice-ts-client/index.js";const v=a.lazy(async()=>await _(()=>import("./ResourceModal.js"),["ResourceModal.js","edifice-react.js","react.js","edifice-icons.js"]));function L(){const[r,t]=g(),{appCode:o}=S(),{t:n}=O(o),{clearSelectedItems:c,clearSelectedIds:l}=x(),{data:s}=f(),i=s==null?void 0:s.find(m=>m.id==="create"),u=C(),d=j(),p=()=>{c(),l(),t()};return i?e.jsxs(e.Fragment,{children:[e.jsx(R,{type:"button",color:"primary",variant:"filled",leftIcon:e.jsx(h,{}),className:"ms-auto",onClick:p,children:n("explorer.create.title")}),e.jsx(a.Suspense,{fallback:e.jsx(A,{}),children:r&&e.jsx(v,{mode:"create",actions:s,currentFolder:u,createResource:d,isOpen:r,onSuccess:t,onCancel:t})})]}):null}export{L as default};
@@ -1 +1 @@
1
- import{a2 as d,a3 as c,m as x,b as h,C as p,j as t,M as a,B as i}from"./index.js";import"/assets/js/edifice-ts-client/index.js";function u({onSuccess:r}){const s=d(),l=c(),e=x();async function o(){try{e?await s.mutate():await l.mutate(),r==null||r()}catch(n){console.error(n)}}return{isTrashFolder:e,onDelete:o}}function y({isOpen:r,onSuccess:s=()=>({}),onCancel:l=()=>({})}){const{t:e}=h(),{isTrashFolder:o,onDelete:n}=u({onSuccess:s});return p.createPortal(t.jsxs(a,{isOpen:r,onModalClose:l,id:"deleteModal",children:[t.jsx(a.Header,{onModalClose:l,children:e(o?"explorer.delete.title":"explorer.trash.title")}),t.jsx(a.Body,{children:t.jsx("p",{className:"body",children:e(o?"explorer.delete.subtitle":"explorer.trash.subtitle")})}),t.jsxs(a.Footer,{children:[t.jsx(i,{color:"tertiary",onClick:l,type:"button",variant:"ghost",children:e("explorer.cancel")}),t.jsx(i,{color:"danger",onClick:n,type:"button",variant:"filled",children:e(o?"explorer.delete":"explorer.trash")})]})]}),document.getElementById("portal"))}export{y as default};
1
+ import{j as t,M as a,B as n}from"./edifice-react.js";import{u as d,a as c}from"./react.js";import{q as p,r as x,d as h}from"./index.js";import"/assets/js/edifice-ts-client/index.js";import"./edifice-icons.js";function m({onSuccess:r}){const s=p(),o=x(),e=h();async function l(){try{e?await s.mutate():await o.mutate(),r==null||r()}catch(i){console.error(i)}}return{isTrashFolder:e,onDelete:l}}function D({isOpen:r,onSuccess:s=()=>({}),onCancel:o=()=>({})}){const{t:e}=d(),{isTrashFolder:l,onDelete:i}=m({onSuccess:s});return c.createPortal(t.jsxs(a,{isOpen:r,onModalClose:o,id:"deleteModal",children:[t.jsx(a.Header,{onModalClose:o,children:e(l?"explorer.delete.title":"explorer.trash.title")}),t.jsx(a.Body,{children:t.jsx("p",{className:"body",children:e(l?"explorer.delete.subtitle":"explorer.trash.subtitle")})}),t.jsxs(a.Footer,{children:[t.jsx(n,{color:"tertiary",onClick:o,type:"button",variant:"ghost",children:e("explorer.cancel")}),t.jsx(n,{color:"danger",onClick:i,type:"button",variant:"filled",children:e(l?"explorer.delete":"explorer.trash")})]})]}),document.getElementById("portal"))}export{D as default};
@@ -1 +1 @@
1
- import{b as s,C as l,j as o,M as t,B as i}from"./index.js";import"/assets/js/edifice-ts-client/index.js";function c({isOpen:a,onCancel:e=()=>({})}){const{t:r}=s();return l.createPortal(o.jsxs(t,{isOpen:a,onModalClose:e,id:"trash_action_disable_resource",children:[o.jsx(t.Header,{onModalClose:()=>e(),children:r("explorer.trash.action.modal.title")}),o.jsx(t.Body,{children:o.jsx("p",{className:"body",children:r("explorer.trash.action.modal.text")})}),o.jsx(t.Footer,{children:o.jsx(i,{color:"primary",onClick:e,type:"button",variant:"outline",children:r("close")})})]}),document.getElementById("portal"))}export{c as default};
1
+ import{j as o,M as t,B as s}from"./edifice-react.js";import{u as l,a as i}from"./react.js";import"/assets/js/edifice-ts-client/index.js";import"./edifice-icons.js";function p({isOpen:a,onCancel:r=()=>({})}){const{t:e}=l();return i.createPortal(o.jsxs(t,{isOpen:a,onModalClose:r,id:"trash_action_disable_resource",children:[o.jsx(t.Header,{onModalClose:()=>r(),children:e("explorer.trash.action.modal.title")}),o.jsx(t.Body,{children:o.jsx("p",{className:"body",children:e("explorer.trash.action.modal.text")})}),o.jsx(t.Footer,{children:o.jsx(s,{color:"primary",onClick:r,type:"button",variant:"outline",children:e("close")})})]}),document.getElementById("portal"))}export{p as default};
@@ -1 +1 @@
1
- import{a as o,g as a,b as c,d as u,j as x,E as d,k as m}from"./index.js";import"/assets/js/edifice-ts-client/index.js";function f(){const{appCode:s}=o(),{theme:t}=a(),[l]=m(),{t:r}=c(),{data:n}=u(),e=n==null?void 0:n.find(i=>i.id==="create"),p=()=>e!=null&&e.available&&(t!=null&&t.is1d)?r("explorer.emptyScreen.txt1d.create",{ns:s}):e!=null&&e.available&&!(t!=null&&t.is1d)?r("explorer.emptyScreen.txt2d.create",{ns:s}):!(e!=null&&e.available)&&(t!=null&&t.is1d)?r("explorer.emptyScreen.txt1d.consultation",{ns:s}):r("explorer.emptyScreen.txt2d.consultation",{ns:s});return x.jsx(d,{imageSrc:`${l}/emptyscreen/illu-${s}.svg`,imageAlt:r("explorer.emptyScreen.app.alt",{ns:s}),title:`${e!=null&&e.available?r("explorer.emptyScreen.title.create",{ns:s}):r("explorer.emptyScreen.title.consultation")}`,text:p()})}export{f as default};
1
+ import{a as i,r as a,j as c,E as m,v as u}from"./edifice-react.js";import{a as x}from"./index.js";import{u as d}from"./react.js";import"/assets/js/edifice-ts-client/index.js";import"./edifice-icons.js";function E(){const{appCode:r}=i(),{theme:t}=a(),[l]=u(),{t:s}=d(),{data:n}=x(),e=n==null?void 0:n.find(p=>p.id==="create"),o=()=>e!=null&&e.available&&(t!=null&&t.is1d)?s("explorer.emptyScreen.txt1d.create",{ns:r}):e!=null&&e.available&&!(t!=null&&t.is1d)?s("explorer.emptyScreen.txt2d.create",{ns:r}):!(e!=null&&e.available)&&(t!=null&&t.is1d)?s("explorer.emptyScreen.txt1d.consultation",{ns:r}):s("explorer.emptyScreen.txt2d.consultation",{ns:r});return c.jsx(m,{imageSrc:`${l}/emptyscreen/illu-${r}.svg`,imageAlt:s("explorer.emptyScreen.app.alt",{ns:r}),title:`${e!=null&&e.available?s("explorer.emptyScreen.title.create",{ns:r}):s("explorer.emptyScreen.title.consultation")}`,text:o()})}export{E as default};
@@ -1 +1 @@
1
- import{b as t,j as s,E as o,k as a}from"./index.js";import"/assets/js/edifice-ts-client/index.js";function p(){const[e]=a(),{t:r}=t();return s.jsx(o,{imageSrc:`${e}/emptyscreen/illu-error.svg`,imageAlt:r("explorer.emptyScreen.error.alt"),text:"explorer.emptyScreen.error.text"})}export{p as default};
1
+ import{j as t,E as o,v as s}from"./edifice-react.js";import{u as m}from"./react.js";import"/assets/js/edifice-ts-client/index.js";import"./edifice-icons.js";function c(){const[r]=s(),{t:e}=m();return t.jsx(o,{imageSrc:`${r}/emptyscreen/illu-error.svg`,imageAlt:e("explorer.emptyScreen.error.alt"),text:"explorer.emptyScreen.error.text"})}export{c as default};
@@ -1 +1 @@
1
- import{a as r,b as s,j as o,E as a,k as l}from"./index.js";import"/assets/js/edifice-ts-client/index.js";function c(){const[n]=l(),{appCode:e}=r(),{t}=s();return o.jsx(a,{imageSrc:`${n}/emptyscreen/illu-no-content-in-folder.svg`,imageAlt:t("explorer.emptyScreen.folder.empty.alt",{ns:e}),text:t("explorer.emptyScreen.label",{ns:e})})}export{c as default};
1
+ import{a as r,j as o,E as s,v as a}from"./edifice-react.js";import{u as m}from"./react.js";import"/assets/js/edifice-ts-client/index.js";import"./edifice-icons.js";function u(){const[n]=a(),{appCode:e}=r(),{t}=m();return o.jsx(s,{imageSrc:`${n}/emptyscreen/illu-no-content-in-folder.svg`,imageAlt:t("explorer.emptyScreen.folder.empty.alt",{ns:e}),text:t("explorer.emptyScreen.label",{ns:e})})}export{u as default};
@@ -1 +1 @@
1
- import{a as r,b as a,j as n,E as c,k as o}from"./index.js";import"/assets/js/edifice-ts-client/index.js";function i(){const{appCode:e}=r(),[s]=o(),{t}=a();return n.jsx(c,{imageSrc:`${s}/emptyscreen/illu-search.svg`,imageAlt:t("explorer.emptyScreen.search.alt",{ns:e}),text:t("explorer.emptyScreen.search.text",{ns:e})})}export{i as default};
1
+ import{a as s,j as a,E as n,v as o}from"./edifice-react.js";import{u as m}from"./react.js";import"/assets/js/edifice-ts-client/index.js";import"./edifice-icons.js";function u(){const{appCode:e}=s(),[r]=o(),{t}=m();return a.jsx(n,{imageSrc:`${r}/emptyscreen/illu-search.svg`,imageAlt:t("explorer.emptyScreen.search.alt",{ns:e}),text:t("explorer.emptyScreen.search.text",{ns:e})})}export{u as default};
@@ -1 +1 @@
1
- import{a as s,b as a,j as n,E as p,k as m}from"./index.js";import"/assets/js/edifice-ts-client/index.js";function l(){const{appCode:t}=s(),[r]=m(),{t:e}=a();return n.jsx(p,{imageSrc:`${r}/emptyscreen/illu-trash.svg`,imageAlt:e("explorer.emptyScreen.trash.alt"),title:e("explorer.emptyScreen.trash.title"),text:e("explorer.emptyScreen.trash.empty",{ns:t})})}export{l as default};
1
+ import{a as s,j as a,E as p,v as m}from"./edifice-react.js";import{u as n}from"./react.js";import"/assets/js/edifice-ts-client/index.js";import"./edifice-icons.js";function u(){const{appCode:t}=s(),[r]=m(),{t:e}=n();return a.jsx(p,{imageSrc:`${r}/emptyscreen/illu-trash.svg`,imageAlt:e("explorer.emptyScreen.trash.alt"),title:e("explorer.emptyScreen.trash.title"),text:e("explorer.emptyScreen.trash.empty",{ns:t})})}export{u as default};
@@ -1 +1 @@
1
- import{q as D,e as q,X as B,Y as L,Z as R,r as C,b as w,C as T,j as r,M as i,$ as U,a0 as V,a1 as _,B as y}from"./index.js";import{FOLDER as k}from"/assets/js/edifice-ts-client/index.js";function z({edit:o,onSuccess:e,onClose:m}){var F;const l=D(),t=q(),c=B(),u=L(),f=o?(F=l[0])==null?void 0:F.name:void 0,{reset:a,register:p,handleSubmit:n,setFocus:x,formState:{errors:h,isSubmitting:s,isDirty:I,isValid:g}}=R({mode:"onChange",values:{name:f||""}}),E=C.useId(),M=async function({name:b}){var j;try{if(o){const d=(j=l[0])==null?void 0:j.parentId,v=l[0].id;await u.mutate({folderId:v,parentId:d,name:b}),a(),e==null||e()}else{const d=(t==null?void 0:t.id)||k.DEFAULT;await c.mutate({name:b,parentId:d}),a(),e==null||e()}}catch(d){console.error(d)}};function $(){a(),m()}return{formId:`createModal_${E}`,errors:h,isSubmitting:s,isDirty:I,isValid:g,register:p,setFocus:x,handleSubmit:n,onCancel:$,onSubmit:M}}function Y({isOpen:o,edit:e,onSuccess:m,onCancel:l}){const{t}=w(),{isDirty:c,isValid:u,isSubmitting:f,formId:a,onSubmit:p,onCancel:n,handleSubmit:x,register:h,setFocus:s}=z({edit:e,onSuccess:m,onClose:l});return C.useEffect(()=>{o&&s("name")},[o,s]),o?T.createPortal(r.jsxs(i,{isOpen:o,onModalClose:n,id:"modal_"+a,children:[r.jsx(i.Header,{onModalClose:n,children:t(e?"explorer.rename.folder":"explorer.create.folder")}),r.jsx(i.Body,{children:r.jsx("form",{id:a,onSubmit:x(p),children:r.jsxs(U,{id:"nameFolder",isRequired:!0,children:[r.jsx(V,{children:t("explorer.create.folder.name")}),r.jsx(_,{type:"text",...h("name",{required:!0,pattern:{value:/[^ ]/,message:"invalid title"}}),placeholder:t("explorer.create.folder.name"),size:"md","aria-required":!0})]})})}),r.jsxs(i.Footer,{children:[r.jsx(y,{color:"tertiary",onClick:n,type:"button",variant:"ghost",children:t("explorer.cancel")}),r.jsx(y,{form:a,type:"submit",color:"primary",variant:"filled",disabled:!c||!u||f,children:t(e?"explorer.rename":"explorer.create")})]})]}),document.getElementById("portal")):null}export{Y as default};
1
+ import{j as r,M as i,F as D,W as B,h as q,B as y}from"./edifice-react.js";import{e as L,r as C,u as R,a as w}from"./react.js";import{FOLDER as T}from"/assets/js/edifice-ts-client/index.js";import{h as U,b as V,o as _,p as k}from"./index.js";import"./edifice-icons.js";function z({edit:o,onSuccess:e,onClose:m}){var F;const l=U(),t=V(),c=_(),u=k(),f=o?(F=l[0])==null?void 0:F.name:void 0,{reset:a,register:p,handleSubmit:n,setFocus:x,formState:{errors:h,isSubmitting:s,isDirty:I,isValid:g}}=L({mode:"onChange",values:{name:f||""}}),E=C.useId(),M=async function({name:b}){var j;try{if(o){const d=(j=l[0])==null?void 0:j.parentId,$=l[0].id;await u.mutate({folderId:$,parentId:d,name:b}),a(),e==null||e()}else{const d=(t==null?void 0:t.id)||T.DEFAULT;await c.mutate({name:b,parentId:d}),a(),e==null||e()}}catch(d){console.error(d)}};function v(){a(),m()}return{formId:`createModal_${E}`,errors:h,isSubmitting:s,isDirty:I,isValid:g,register:p,setFocus:x,handleSubmit:n,onCancel:v,onSubmit:M}}function N({isOpen:o,edit:e,onSuccess:m,onCancel:l}){const{t}=R(),{isDirty:c,isValid:u,isSubmitting:f,formId:a,onSubmit:p,onCancel:n,handleSubmit:x,register:h,setFocus:s}=z({edit:e,onSuccess:m,onClose:l});return C.useEffect(()=>{o&&s("name")},[o,s]),o?w.createPortal(r.jsxs(i,{isOpen:o,onModalClose:n,id:"modal_"+a,children:[r.jsx(i.Header,{onModalClose:n,children:t(e?"explorer.rename.folder":"explorer.create.folder")}),r.jsx(i.Body,{children:r.jsx("form",{id:a,onSubmit:x(p),children:r.jsxs(D,{id:"nameFolder",isRequired:!0,children:[r.jsx(B,{children:t("explorer.create.folder.name")}),r.jsx(q,{type:"text",...h("name",{required:!0,pattern:{value:/[^ ]/,message:"invalid title"}}),placeholder:t("explorer.create.folder.name"),size:"md","aria-required":!0})]})})}),r.jsxs(i.Footer,{children:[r.jsx(y,{color:"tertiary",onClick:n,type:"button",variant:"ghost",children:t("explorer.cancel")}),r.jsx(y,{form:a,type:"submit",color:"primary",variant:"filled",disabled:!c||!u||f,children:t(e?"explorer.rename":"explorer.create")})]})]}),document.getElementById("portal")):null}export{N as default};
@@ -1 +1 @@
1
- import{j as l,D as p,F as S,a as y,q as C,s as T,c as f,G as I,H as N,z as m}from"./index.js";import"/assets/js/edifice-ts-client/index.js";const g=({app:e,name:n,isSelected:t=!1,isSelectable:i=!0,onClick:r,onSelect:c})=>l.jsx(p,{app:e,isSelectable:i,isSelected:t,onClick:r,onSelect:c,children:d=>l.jsxs(p.Body,{children:[l.jsx(S,{width:"48",height:"48",className:`color-app-${d}`}),l.jsx(p.Title,{children:n})]})});g.displayName="FolderCard";const z=({data:e})=>{var u,a;const{currentApp:n}=y(),t=C(),i=T(),{setSelectedFolders:r,setFolderIds:c,openFolder:d}=f();function F(s){i.includes(s.id)?(c(i.filter(o=>o!==s.id)),r(t.filter(o=>o.id!==s.id))):(c([...i,s.id]),r([...t,s]))}const x=I({from:{opacity:0},to:{opacity:1}}),h=N();return(u=e==null?void 0:e.pages[0])!=null&&u.folders.length?l.jsx(m.ul,{className:"grid ps-0 list-unstyled mb-24",children:(a=e==null?void 0:e.pages[0])==null?void 0:a.folders.map(s=>{const{id:o,name:j}=s;return l.jsx(m.li,{className:"g-col-4 z-1",style:{position:"relative",...x},children:l.jsx(g,{name:j,app:n,isSelected:i.includes(s.id),onClick:()=>{h(),d({folder:s,folderId:s.id})},onSelect:()=>F(s)})},o)})}):null};export{z as default};
1
+ import{j as i,C as p,a as S,H as f,u as y,x as m}from"./edifice-react.js";import{w as C}from"./edifice-icons.js";import{h as T,i as I,u as N}from"./index.js";import"./react.js";import"/assets/js/edifice-ts-client/index.js";const g=({app:e,name:c,isSelected:r=!1,isSelectable:l=!0,onClick:t,onSelect:n})=>i.jsx(p,{app:e,isSelectable:l,isSelected:r,onClick:t,onSelect:n,children:d=>i.jsxs(p.Body,{children:[i.jsx(C,{width:"48",height:"48",className:`color-app-${d}`}),i.jsx(p.Title,{children:c})]})});g.displayName="FolderCard";const k=({data:e})=>{var u,a;const{currentApp:c}=S(),r=T(),l=I(),{setSelectedFolders:t,setFolderIds:n,openFolder:d}=N();function x(s){l.includes(s.id)?(n(l.filter(o=>o!==s.id)),t(r.filter(o=>o.id!==s.id))):(n([...l,s.id]),t([...r,s]))}const h=f({from:{opacity:0},to:{opacity:1}}),F=y();return(u=e==null?void 0:e.pages[0])!=null&&u.folders.length?i.jsx(m.ul,{className:"grid ps-0 list-unstyled mb-24",children:(a=e==null?void 0:e.pages[0])==null?void 0:a.folders.map(s=>{const{id:o,name:j}=s;return i.jsx(m.li,{className:"g-col-4 z-1",style:{position:"relative",...h},children:i.jsx(g,{name:j,app:c,isSelected:l.includes(s.id),onClick:()=>{F(),d({folder:s,folderId:s.id})},onSelect:()=>x(s)})},o)})}):null};export{k as default};
package/dist/Library.js CHANGED
@@ -1 +1 @@
1
- import{b as e,g as i,h as o,j as l,i as n,k as b}from"./index.js";import"/assets/js/edifice-ts-client/index.js";const p=()=>{const{t:r}=e(),{theme:t}=i(),{libraryUrl:a}=o(),[s]=b();return l.jsx(n,{src:`${s}/${t==null?void 0:t.bootstrapVersion}/image-library.svg`,url:a,alt:r("explorer.libray.img.alt"),text:r("explorer.libray.title"),textButton:r("explorer.libray.btn")})};export{p as default};
1
+ import{r as i,s as o,j as r,t as l,B as n,v as m}from"./edifice-react.js";import{v as c}from"./edifice-icons.js";import{u as p}from"./react.js";import"/assets/js/edifice-ts-client/index.js";const b=()=>{const{t:a}=p(),{theme:s}=i(),{libraryUrl:e}=o(),[t]=m();return r.jsxs("div",{className:"p-16",children:[r.jsx(l,{width:"270",height:"140",loading:"lazy",className:"rounded",src:`${t}/${s==null?void 0:s.bootstrapVersion}/image-library.svg`,alt:a("explorer.libray.img.alt")}),r.jsx("p",{className:"m-8",children:a("explorer.libray.title")}),r.jsx("a",{href:e,target:"_blank",rel:"noreferrer",children:r.jsx(n,{rightIcon:r.jsx(c,{}),className:"py-0 px-8",variant:"ghost",color:"primary",children:a("explorer.libray.btn")})})]})};export{b as default};
package/dist/MoveModal.js CHANGED
@@ -1 +1 @@
1
- import{r as I,a4 as v,q as M,p as T,c as y,a5 as b,b as j,a6 as F,C as S,j as o,M as n,a7 as w,B as x}from"./index.js";import"/assets/js/edifice-ts-client/index.js";function E({onSuccess:a}){const[s,r]=I.useState(),l=v(),d=M(),c=T(),{foldTreeItem:i,unfoldTreeItem:m}=y(),u=b();async function f(){try{if(!s)throw new Error("explorer.move.selection.empty");await l.mutate(s),await(a==null?void 0:a())}catch(e){console.error(e)}}const h=e=>{var p;for(const t of d)if(e===t.id||e===t.parentId)return!1;for(const t of c)if(e===((t==null?void 0:t.folderIds)&&t.folderIds[0])||((p=t==null?void 0:t.folderIds)==null?void 0:p.length)===0&&e==="default")return!1;return!0};return{disableSubmit:!s,handleTreeItemSelect:e=>{h(e)?r(e):r(void 0)},handleTreeItemFold:i,handleTreeItemUnfold:async e=>await m(e,u),onMove:()=>{f()}}}function g({isOpen:a,onSuccess:s,onCancel:r}){const{t:l}=j(),{handleTreeItemFold:d,handleTreeItemSelect:c,handleTreeItemUnfold:i,onMove:m,disableSubmit:u}=E({onSuccess:s}),f=F();return S.createPortal(o.jsxs(n,{isOpen:a,onModalClose:r,id:"moveModal",children:[o.jsx(n.Header,{onModalClose:r,children:l("explorer.move.title")}),o.jsx(n.Subtitle,{children:l("explorer.move.subtitle")}),o.jsx(n.Body,{children:o.jsx(w,{data:f,onTreeItemSelect:c,onTreeItemFold:d,onTreeItemUnfold:i})}),o.jsxs(n.Footer,{children:[o.jsx(x,{color:"tertiary",onClick:r,type:"button",variant:"ghost",children:l("explorer.cancel")}),o.jsx(x,{color:"primary",onClick:m,type:"button",variant:"filled",disabled:u,children:l("explorer.move")})]})]}),document.getElementById("portal"))}export{g as default};
1
+ import{d as I,j as o,M as n,T as v,B as h}from"./edifice-react.js";import{r as T,u as M,a as y}from"./react.js";import{s as j,h as b,g as F,u as S,t as w}from"./index.js";import"/assets/js/edifice-ts-client/index.js";import"./edifice-icons.js";function E({onSuccess:a}){const[s,r]=T.useState(),l=j(),d=b(),i=F(),{foldTreeItem:c,unfoldTreeItem:m}=S(),u=I();async function f(){try{if(!s)throw new Error("explorer.move.selection.empty");await l.mutate(s),await(a==null?void 0:a())}catch(e){console.error(e)}}const x=e=>{var p;for(const t of d)if(e===t.id||e===t.parentId)return!1;for(const t of i)if(e===((t==null?void 0:t.folderIds)&&t.folderIds[0])||((p=t==null?void 0:t.folderIds)==null?void 0:p.length)===0&&e==="default")return!1;return!0};return{disableSubmit:!s,handleTreeItemSelect:e=>{x(e)?r(e):r(void 0)},handleTreeItemFold:c,handleTreeItemUnfold:async e=>await m(e,u),onMove:()=>{f()}}}function $({isOpen:a,onSuccess:s,onCancel:r}){const{t:l}=M(),{handleTreeItemFold:d,handleTreeItemSelect:i,handleTreeItemUnfold:c,onMove:m,disableSubmit:u}=E({onSuccess:s}),f=w();return y.createPortal(o.jsxs(n,{isOpen:a,onModalClose:r,id:"moveModal",children:[o.jsx(n.Header,{onModalClose:r,children:l("explorer.move.title")}),o.jsx(n.Subtitle,{children:l("explorer.move.subtitle")}),o.jsx(n.Body,{children:o.jsx(v,{data:f,onTreeItemSelect:i,onTreeItemFold:d,onTreeItemUnfold:c})}),o.jsxs(n.Footer,{children:[o.jsx(h,{color:"tertiary",onClick:r,type:"button",variant:"ghost",children:l("explorer.cancel")}),o.jsx(h,{color:"primary",onClick:m,type:"button",variant:"filled",disabled:u,children:l("explorer.move")})]})]}),document.getElementById("portal"))}export{$ as default};
@@ -0,0 +1 @@
1
+ import{z as r}from"./edifice-react.js";import"./react.js";import"/assets/js/edifice-ts-client/index.js";import"./edifice-icons.js";export{r as default};
@@ -0,0 +1 @@
1
+ import{Z as r}from"./edifice-react.js";import"./react.js";import"/assets/js/edifice-ts-client/index.js";import"./edifice-icons.js";export{r as default};
@@ -0,0 +1 @@
1
+ import{X as r}from"./edifice-react.js";import"./react.js";import"/assets/js/edifice-ts-client/index.js";import"./edifice-icons.js";export{r as default};
@@ -1 +1 @@
1
- import{b as rt,j as f,D as E,I as dt,J as lt,K as ct,N as mt,T as tt,O as _t,P as ft,Q as P,R as st,a as ht,U as Mt,o as pt,p as gt,c as vt,m as yt,G as $t,r as Yt,V as xt,W as et,z as nt,B as St}from"./index.js";import"/assets/js/edifice-ts-client/index.js";const at=({app:y,resource:d,time:m,isSelected:u=!1,isSelectable:g=!0,onClick:c,onSelect:r})=>{const b=`/userbook/avatar/${d==null?void 0:d.creatorId}`;function p(T){const{rights:w,creatorId:k}=T||{};return w.filter(I=>!I.includes(k)).length>=1}const l=p(d),x=d==null?void 0:d.public,{t:h}=rt();return f.jsx(E,{app:y,isSelected:u,isSelectable:g,onClick:c,onSelect:r,children:T=>f.jsxs(f.Fragment,{children:[f.jsxs(E.Body,{children:[f.jsx("div",{className:"card-image medium",children:d!=null&&d.thumbnail?f.jsx(dt,{alt:"",src:d==null?void 0:d.thumbnail,objectFit:"cover",className:"h-full"}):f.jsx(lt,{app:y,iconFit:"ratio",size:"80",variant:"rounded"})}),f.jsxs("div",{className:"text-truncate",children:[f.jsx(E.Title,{children:d==null?void 0:d.name}),f.jsx(E.Text,{children:f.jsx("em",{children:m})})]})]}),f.jsxs(E.Footer,{children:[f.jsxs("div",{className:"d-inline-flex align-items-center gap-8 text-truncate",children:[b?f.jsx(ct,{alt:(d==null?void 0:d.creatorName)||"",size:"xs",src:b,variant:"circle",width:"24",height:"24"}):f.jsx(mt,{}),f.jsx(E.Text,{children:d==null?void 0:d.creatorName})]}),f.jsxs("div",{className:"d-inline-flex align-items-center gap-8",children:[l&&f.jsx(tt,{message:h("tooltip.shared",{ns:T}),placement:"top",children:f.jsx(_t,{width:16,height:16})}),x&&f.jsx(tt,{message:h("tooltip.public",{ns:T}),placement:"top",children:f.jsx(ft,{width:16,height:16})})]})]})]})})};at.displayName="ResourceCard";var it={exports:{}};(function(y,d){(function(m,u){y.exports=u()})(P,function(){var m=1e3,u=6e4,g=36e5,c="millisecond",r="second",b="minute",p="hour",l="day",x="week",h="month",T="quarter",w="year",k="date",N="Invalid Date",I=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,z=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(a){var n=["th","st","nd","rd"],t=a%100;return"["+a+(n[(t-20)%10]||n[t]||n[0])+"]"}},J=function(a,n,t){var s=String(a);return!s||s.length>=n?a:""+Array(n+1-s.length).join(t)+a},S={s:J,z:function(a){var n=-a.utcOffset(),t=Math.abs(n),s=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+J(s,2,"0")+":"+J(e,2,"0")},m:function a(n,t){if(n.date()<t.date())return-a(t,n);var s=12*(t.year()-n.year())+(t.month()-n.month()),e=n.clone().add(s,h),i=t-e<0,o=n.clone().add(s+(i?-1:1),h);return+(-(s+(t-e)/(i?e-o:o-e))||0)},a:function(a){return a<0?Math.ceil(a)||0:Math.floor(a)},p:function(a){return{M:h,y:w,w:x,d:l,D:k,h:p,m:b,s:r,ms:c,Q:T}[a]||String(a||"").toLowerCase().replace(/s$/,"")},u:function(a){return a===void 0}},$="en",Y={};Y[$]=C;var R="$isDayjsObject",A=function(a){return a instanceof Q||!(!a||!a[R])},U=function a(n,t,s){var e;if(!n)return $;if(typeof n=="string"){var i=n.toLowerCase();Y[i]&&(e=i),t&&(Y[i]=t,e=i);var o=n.split("-");if(!e&&o.length>1)return a(o[0])}else{var M=n.name;Y[M]=n,e=M}return!s&&e&&($=e),e||!s&&$},D=function(a,n){if(A(a))return a.clone();var t=typeof n=="object"?n:{};return t.date=a,t.args=arguments,new Q(t)},_=S;_.l=U,_.i=A,_.w=function(a,n){return D(a,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var Q=function(){function a(t){this.$L=U(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[R]=!0}var n=a.prototype;return n.parse=function(t){this.$d=function(s){var e=s.date,i=s.utc;if(e===null)return new Date(NaN);if(_.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var o=e.match(I);if(o){var M=o[2]-1||0,v=(o[7]||"0").substring(0,3);return i?new Date(Date.UTC(o[1],M,o[3]||1,o[4]||0,o[5]||0,o[6]||0,v)):new Date(o[1],M,o[3]||1,o[4]||0,o[5]||0,o[6]||0,v)}}return new Date(e)}(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return _},n.isValid=function(){return this.$d.toString()!==N},n.isSame=function(t,s){var e=D(t);return this.startOf(s)<=e&&e<=this.endOf(s)},n.isAfter=function(t,s){return D(t)<this.startOf(s)},n.isBefore=function(t,s){return this.endOf(s)<D(t)},n.$g=function(t,s,e){return _.u(t)?this[s]:this.set(e,t)},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this.$d.getTime()},n.startOf=function(t,s){var e=this,i=!!_.u(s)||s,o=_.p(t),M=function(q,H){var F=_.w(e.$u?Date.UTC(e.$y,H,q):new Date(e.$y,H,q),e);return i?F:F.endOf(l)},v=function(q,H){return _.w(e.toDate()[q].apply(e.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(H)),e)},L=this.$W,j=this.$M,O=this.$D,B="set"+(this.$u?"UTC":"");switch(o){case w:return i?M(1,0):M(31,11);case h:return i?M(1,j):M(0,j+1);case x:var W=this.$locale().weekStart||0,Z=(L<W?L+7:L)-W;return M(i?O-Z:O+(6-Z),j);case l:case k:return v(B+"Hours",0);case p:return v(B+"Minutes",1);case b:return v(B+"Seconds",2);case r:return v(B+"Milliseconds",3);default:return this.clone()}},n.endOf=function(t){return this.startOf(t,!1)},n.$set=function(t,s){var e,i=_.p(t),o="set"+(this.$u?"UTC":""),M=(e={},e[l]=o+"Date",e[k]=o+"Date",e[h]=o+"Month",e[w]=o+"FullYear",e[p]=o+"Hours",e[b]=o+"Minutes",e[r]=o+"Seconds",e[c]=o+"Milliseconds",e)[i],v=i===l?this.$D+(s-this.$W):s;if(i===h||i===w){var L=this.clone().set(k,1);L.$d[M](v),L.init(),this.$d=L.set(k,Math.min(this.$D,L.daysInMonth())).$d}else M&&this.$d[M](v);return this.init(),this},n.set=function(t,s){return this.clone().$set(t,s)},n.get=function(t){return this[_.p(t)]()},n.add=function(t,s){var e,i=this;t=Number(t);var o=_.p(s),M=function(j){var O=D(i);return _.w(O.date(O.date()+Math.round(j*t)),i)};if(o===h)return this.set(h,this.$M+t);if(o===w)return this.set(w,this.$y+t);if(o===l)return M(1);if(o===x)return M(7);var v=(e={},e[b]=u,e[p]=g,e[r]=m,e)[o]||1,L=this.$d.getTime()+t*v;return _.w(L,this)},n.subtract=function(t,s){return this.add(-1*t,s)},n.format=function(t){var s=this,e=this.$locale();if(!this.isValid())return e.invalidDate||N;var i=t||"YYYY-MM-DDTHH:mm:ssZ",o=_.z(this),M=this.$H,v=this.$m,L=this.$M,j=e.weekdays,O=e.months,B=e.meridiem,W=function(H,F,G,K){return H&&(H[F]||H(s,i))||G[F].slice(0,K)},Z=function(H){return _.s(M%12||12,H,"0")},q=B||function(H,F,G){var K=H<12?"AM":"PM";return G?K.toLowerCase():K};return i.replace(z,function(H,F){return F||function(G){switch(G){case"YY":return String(s.$y).slice(-2);case"YYYY":return _.s(s.$y,4,"0");case"M":return L+1;case"MM":return _.s(L+1,2,"0");case"MMM":return W(e.monthsShort,L,O,3);case"MMMM":return W(O,L);case"D":return s.$D;case"DD":return _.s(s.$D,2,"0");case"d":return String(s.$W);case"dd":return W(e.weekdaysMin,s.$W,j,2);case"ddd":return W(e.weekdaysShort,s.$W,j,3);case"dddd":return j[s.$W];case"H":return String(M);case"HH":return _.s(M,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return q(M,v,!0);case"A":return q(M,v,!1);case"m":return String(v);case"mm":return _.s(v,2,"0");case"s":return String(s.$s);case"ss":return _.s(s.$s,2,"0");case"SSS":return _.s(s.$ms,3,"0");case"Z":return o}return null}(H)||o.replace(":","")})},n.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},n.diff=function(t,s,e){var i,o=this,M=_.p(s),v=D(t),L=(v.utcOffset()-this.utcOffset())*u,j=this-v,O=function(){return _.m(o,v)};switch(M){case w:i=O()/12;break;case h:i=O();break;case T:i=O()/3;break;case x:i=(j-L)/6048e5;break;case l:i=(j-L)/864e5;break;case p:i=j/g;break;case b:i=j/u;break;case r:i=j/m;break;default:i=j}return e?i:_.a(i)},n.daysInMonth=function(){return this.endOf(h).$D},n.$locale=function(){return Y[this.$L]},n.locale=function(t,s){if(!t)return this.$L;var e=this.clone(),i=U(t,s,!0);return i&&(e.$L=i),e},n.clone=function(){return _.w(this.$d,this)},n.toDate=function(){return new Date(this.valueOf())},n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toISOString=function(){return this.$d.toISOString()},n.toString=function(){return this.$d.toUTCString()},a}(),X=Q.prototype;return D.prototype=X,[["$ms",c],["$s",r],["$m",b],["$H",p],["$W",l],["$M",h],["$y",w],["$D",k]].forEach(function(a){X[a[1]]=function(n){return this.$g(n,a[0],a[1])}}),D.extend=function(a,n){return a.$i||(a(n,Q,D),a.$i=!0),D},D.locale=U,D.isDayjs=A,D.unix=function(a){return D(1e3*a)},D.en=Y[$],D.Ls=Y,D.p={},D})})(it);var V=it.exports;const ot=st(V);var ut={exports:{}};(function(y,d){(function(m,u){y.exports=u()})(P,function(){return function(m,u,g){m=m||{};var c=u.prototype,r={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function b(l,x,h,T){return c.fromToBase(l,x,h,T)}g.en.relativeTime=r,c.fromToBase=function(l,x,h,T,w){for(var k,N,I,z=h.$locale().relativeTime||r,C=m.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],J=C.length,S=0;S<J;S+=1){var $=C[S];$.d&&(k=T?g(l).diff(h,$.d,!0):h.diff(l,$.d,!0));var Y=(m.rounding||Math.round)(Math.abs(k));if(I=k>0,Y<=$.r||!$.r){Y<=1&&S>0&&($=C[S-1]);var R=z[$.l];w&&(Y=w(""+Y)),N=typeof R=="string"?R.replace("%d",Y):R(Y,x,$.l,I);break}}if(x)return N;var A=I?z.future:z.past;return typeof A=="function"?A(N):A.replace("%s",N)},c.to=function(l,x){return b(l,x,this,!0)},c.from=function(l,x){return b(l,x,this)};var p=function(l){return l.$u?g.utc():g()};c.toNow=function(l){return this.to(p(this),l)},c.fromNow=function(l){return this.from(p(this),l)}}})})(ut);var bt=ut.exports;const Dt=st(bt);var Lt={exports:{}};(function(y,d){(function(m,u){y.exports=u(V)})(P,function(m){function u(p){return p&&typeof p=="object"&&"default"in p?p:{default:p}}var g=u(m),c={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function r(p,l,x){var h=c[x];return Array.isArray(h)&&(h=h[l?0:1]),h.replace("%d",p)}var b={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(p){return p+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r}};return g.default.locale(b,null,!0),b})})(Lt);var jt={exports:{}};(function(y,d){(function(m,u){y.exports=u(V)})(P,function(m){function u(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var g=u(m),c={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(r){return r+"º"}};return g.default.locale(c,null,!0),c})})(jt);var wt={exports:{}};(function(y,d){(function(m,u){y.exports=u(V)})(P,function(m){function u(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var g=u(m),c={name:"pt",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sa".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(r){return r+"º"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}};return g.default.locale(c,null,!0),c})})(wt);var Ht={exports:{}};(function(y,d){(function(m,u){y.exports=u(V)})(P,function(m){function u(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var g=u(m),c={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(r){return""+r+(r===1?"er":"")}};return g.default.locale(c,null,!0),c})})(Ht);var Tt={exports:{}};(function(y,d){(function(m,u){y.exports=u(V)})(P,function(m){function u(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var g=u(m),c={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un' ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(r){return r+"º"}};return g.default.locale(c,null,!0),c})})(Tt);ot.extend(Dt);const Nt=({data:y,fetchNextPage:d})=>{const{currentApp:m,currentLanguage:u}=ht(),{t:g}=rt(),c=Mt(),r=pt(),b=gt(),{setSelectedResources:p,setResourceIds:l,openResource:x,setResourceIsTrash:h}=vt(),T=yt(),w=$t({from:{opacity:0},to:{opacity:1}}),N=c.pagination.startIdx+c.pagination.pageSize<(c.pagination.maxIdx||0),I=Yt.useCallback(()=>{d()},[]),z=S=>{T?(h(!0),l([S.id]),p([S])):x(S)};async function C(S){if(r.includes(S.id)){l(r.filter($=>$!==S.id)),p(b.filter($=>$.id!==S.id));return}l([...r,S.id]),p([...b,S])}const J=xt("grid ps-0 list-unstyled");return f.jsxs(et.Fragment,{children:[f.jsx(nt.ul,{className:J,children:y==null?void 0:y.pages.map((S,$)=>f.jsx(et.Fragment,{children:S.resources.map(Y=>{const{id:R,updatedAt:A}=Y,U=ot(A).locale(u).fromNow();return f.jsx(nt.li,{className:"g-col-4 z-1",style:{position:"relative",...w},children:f.jsx(at,{app:m,resource:Y,time:U,isSelectable:!0,isSelected:r.includes(Y.id),onClick:()=>z(Y),onSelect:()=>C(Y)})},R)})},$))}),N&&f.jsx("div",{className:"d-grid gap-2 col-4 mx-auto my-24",children:f.jsx(St,{type:"button",color:"secondary",variant:"filled",onClick:I,children:g("explorer.see.more")})})]})};export{Nt as default};
1
+ import{j as s,C as l,t as z,J as B,K as M,N as O,P as N,R as y,U as E,a as L,H as U,V as G,x as I,B as H}from"./edifice-react.js";import{u as $,r as J,b}from"./react.js";import{x as K,y as V}from"./edifice-icons.js";import{n as q,f as D,g as Q,u as W,d as X}from"./index.js";import"/assets/js/edifice-ts-client/index.js";const T=({app:i,resource:t,time:p,isSelected:g=!1,isSelectable:j=!0,onClick:c,onSelect:e})=>{const d=`/userbook/avatar/${t==null?void 0:t.creatorId}`;function o(n){const{rights:u,creatorId:v}=n||{};return u.filter(R=>!R.includes(v)).length>=1}const x=o(t),f=t==null?void 0:t.public,{t:h}=$();return s.jsx(l,{app:i,isSelected:g,isSelectable:j,onClick:c,onSelect:e,children:n=>s.jsxs(s.Fragment,{children:[s.jsxs(l.Body,{children:[s.jsx("div",{className:"card-image medium",children:t!=null&&t.thumbnail?s.jsx(z,{alt:"",src:t==null?void 0:t.thumbnail,objectFit:"cover",className:"h-full"}):s.jsx(B,{app:i,iconFit:"ratio",size:"80",variant:"rounded"})}),s.jsxs("div",{className:"text-truncate",children:[s.jsx(l.Title,{children:t==null?void 0:t.name}),s.jsx(l.Text,{children:s.jsx("em",{children:p})})]})]}),s.jsxs(l.Footer,{children:[s.jsxs("div",{className:"d-inline-flex align-items-center gap-8 text-truncate",children:[d?s.jsx(M,{alt:(t==null?void 0:t.creatorName)||"",size:"xs",src:d,variant:"circle",width:"24",height:"24"}):s.jsx(O,{}),s.jsx(l.Text,{children:t==null?void 0:t.creatorName})]}),s.jsxs("div",{className:"d-inline-flex align-items-center gap-8",children:[x&&s.jsx(N,{message:h("tooltip.shared",{ns:n}),placement:"top",children:s.jsx(K,{width:16,height:16})}),f&&s.jsx(N,{message:h("tooltip.public",{ns:n}),placement:"top",children:s.jsx(V,{width:16,height:16})})]})]})]})})};T.displayName="ResourceCard";y.extend(E);const as=({data:i,fetchNextPage:t})=>{const{currentApp:p,currentLanguage:g}=L(),{t:j}=$(),c=q(),e=D(),d=Q(),{setSelectedResources:o,setResourceIds:x,openResource:f,setResourceIsTrash:h}=W(),n=X(),u=U({from:{opacity:0},to:{opacity:1}}),S=c.pagination.startIdx+c.pagination.pageSize<(c.pagination.maxIdx||0),R=J.useCallback(()=>{t()},[]),C=a=>{n?(h(!0),x([a.id]),o([a])):f(a)};async function F(a){if(e.includes(a.id)){x(e.filter(m=>m!==a.id)),o(d.filter(m=>m.id!==a.id));return}x([...e,a.id]),o([...d,a])}const P=G("grid ps-0 list-unstyled");return s.jsxs(b.Fragment,{children:[s.jsx(I.ul,{className:P,children:i==null?void 0:i.pages.map((a,m)=>s.jsx(b.Fragment,{children:a.resources.map(r=>{const{id:k,updatedAt:A}=r,w=y(A).locale(g).fromNow();return s.jsx(I.li,{className:"g-col-4 z-1",style:{position:"relative",...u},children:s.jsx(T,{app:p,resource:r,time:w,isSelectable:!0,isSelected:e.includes(r.id),onClick:()=>C(r),onSelect:()=>F(r)})},k)})},m))}),S&&s.jsx("div",{className:"d-grid gap-2 col-4 mx-auto my-24",children:s.jsx(H,{type:"button",color:"secondary",variant:"filled",onClick:R,children:j("explorer.see.more")})})]})};export{as as default};
@@ -0,0 +1 @@
1
+ import{Y as r}from"./edifice-react.js";import"./react.js";import"/assets/js/edifice-ts-client/index.js";import"./edifice-icons.js";export{r as default};
@@ -1 +1 @@
1
- import{b as a,C as l,j as e,M as o,B as d}from"./index.js";import"/assets/js/edifice-ts-client/index.js";function c({isOpen:s,onCancel:r=()=>({})}){const{t}=a();return l.createPortal(e.jsxs(o,{isOpen:s,onModalClose:r,id:"trash_resource",children:[e.jsx(o.Header,{onModalClose:()=>r(),children:t("explorer.trash.modal.title")}),e.jsx(o.Body,{children:e.jsx("p",{className:"body",children:t("explorer.trash.modal.text")})}),e.jsx(o.Footer,{children:e.jsx(d,{color:"primary",onClick:r,type:"button",variant:"outline",children:t("close")})})]}),document.getElementById("portal"))}export{c as default};
1
+ import{j as o,M as r,B as a}from"./edifice-react.js";import{u as l,a as d}from"./react.js";import"/assets/js/edifice-ts-client/index.js";import"./edifice-icons.js";function p({isOpen:s,onCancel:t=()=>({})}){const{t:e}=l();return d.createPortal(o.jsxs(r,{isOpen:s,onModalClose:t,id:"trash_resource",children:[o.jsx(r.Header,{onModalClose:()=>t(),children:e("explorer.trash.modal.title")}),o.jsx(r.Body,{children:o.jsx("p",{className:"body",children:e("explorer.trash.modal.text")})}),o.jsx(r.Footer,{children:o.jsx(a,{color:"primary",onClick:t,type:"button",variant:"outline",children:e("close")})})]}),document.getElementById("portal"))}export{p as default};
@@ -0,0 +1 @@
1
+ import{j as l}from"./edifice-react.js";const d=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",clipRule:"evenodd"}),l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 6a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V7a1 1 0 0 1 1-1M11 16a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1",clipRule:"evenodd"})]}),L=d,r=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1",clipRule:"evenodd"}),l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.707 4.293a1 1 0 0 1 0 1.414L6.414 12l6.293 6.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0",clipRule:"evenodd"})]}),V=r,n=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1",clipRule:"evenodd"}),l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414-1.414L17.586 12l-6.293-6.293a1 1 0 0 1 0-1.414",clipRule:"evenodd"})]}),z=n,h=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("path",{fill:"currentColor",d:"M7 4a1 1 0 0 0-1 1v14.06l5.42-3.87a1 1 0 0 1 1.16 0L18 19.06V5a1 1 0 0 0-1-1zM4.88 2.88A3 3 0 0 1 7 2h10a3 3 0 0 1 3 3v16a1 1 0 0 1-1.58.81L12 17.23 5.58 21.8A1 1 0 0 1 4 21V5a3 3 0 0 1 .88-2.12"})]}),F=h,s=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M21 5c0 .828-.711 1.5-1.588 1.5H4.588C3.711 6.5 3 5.828 3 5s.711-1.5 1.588-1.5h14.824C20.289 3.5 21 4.172 21 5M21 12c0 .828-.711 1.5-1.588 1.5H4.588C3.711 13.5 3 12.828 3 12s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5M21 19c0 .828-.711 1.5-1.588 1.5H4.588C3.711 20.5 3 19.828 3 19s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5",clipRule:"evenodd"})]}),_=s,o=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.222 4.222a1.1 1.1 0 0 1 1.556 0l14 14a1.1 1.1 0 1 1-1.556 1.556l-14-14a1.1 1.1 0 0 1 0-1.556",clipRule:"evenodd"}),l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.778 4.222a1.1 1.1 0 0 1 0 1.556l-14 14a1.1 1.1 0 1 1-1.556-1.556l14-14a1.1 1.1 0 0 1 1.556 0",clipRule:"evenodd"})]}),k=o,v=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.676 3c.284-.672.853-1 1.263-1h11.423c.566 0 1.438.628 1.438 1.923v13.154c0 1.056-.58 1.668-1.1 1.858V6.923C19.7 4.99 18.3 3 16.061 3zm-2.272.007C4.765 1.41 6.056 0 7.939 0h11.423C21.599 0 23 1.99 23 3.923v13.154c0 1.865-1.303 3.782-3.403 3.916C19.235 22.59 17.944 24 16.06 24H4.638C2.401 24 1 22.01 1 20.077V6.923c0-1.865 1.303-3.782 3.404-3.916M3.2 6.923C3.2 5.628 4.072 5 4.638 5h11.423c.567 0 1.439.628 1.439 1.923v13.154c0 1.295-.872 1.923-1.439 1.923H4.638c-.566 0-1.438-.628-1.438-1.923z",clipRule:"evenodd"})]}),E=v,t=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.461 3.689a.96.96 0 0 1 .675-.28h3.819a.955.955 0 0 1 .954.955v.954H9.182v-.954c0-.254.1-.496.28-.675m7.357.675v.954h3.818a.955.955 0 0 1 0 1.91h-.954v12.408a2.864 2.864 0 0 1-2.864 2.864H7.273a2.864 2.864 0 0 1-2.864-2.864V7.227h-.954a.955.955 0 1 1 0-1.909h3.818v-.954A2.864 2.864 0 0 1 10.136 1.5h3.819a2.864 2.864 0 0 1 2.863 2.864m-10.5 2.863v12.41a.954.954 0 0 0 .955.954h9.545a.955.955 0 0 0 .955-.955V7.227zm3.818 2.864c.528 0 .955.427.955.955v5.727a.955.955 0 1 1-1.91 0v-5.727c0-.528.428-.955.955-.955m4.773 6.682v-5.727a.955.955 0 0 0-1.909 0v5.727a.955.955 0 1 0 1.91 0",clipRule:"evenodd"})]}),D=t,c=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.879 3.879A3 3 0 0 1 4 3h7a1 1 0 1 1 0 2H4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7a1 1 0 1 1 2 0v7a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V6a3 3 0 0 1 .879-2.121",clipRule:"evenodd"}),l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20 2.879c-.297 0-.583.118-.793.328l-9.304 9.304-.529 2.115 2.115-.529 9.304-9.304A1.121 1.121 0 0 0 20 2.879m-2.207-1.086a3.121 3.121 0 0 1 4.414 4.414l-9.5 9.5a1 1 0 0 1-.464.263l-4 1a1 1 0 0 1-1.213-1.212l1-4a1 1 0 0 1 .263-.465z",clipRule:"evenodd"})]}),O=c,g=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0m9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1M8.293 15.707a1 1 0 0 1 0-1.414L10.586 12 8.293 9.707a1 1 0 0 1 1.414-1.414L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414 0",clipRule:"evenodd"})]}),P=g,u=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.91 9.14v1.27H8.25a4.7 4.7 0 0 0-3.86 1.98L1.5 16.53V6.4a2.3 2.3 0 0 1 .77-1.69A2.68 2.68 0 0 1 4.11 4h3.73a2.68 2.68 0 0 1 1.84.71c.25.22.45.48.58.77s.2.6.2.92v.34h7.84c.7.01 1.35.27 1.84.71.49.45.76 1.06.77 1.7ZM8.25 11.92h14.47c.63 0 1 .68.64 1.18l-3.52 5.04a3.13 3.13 0 0 1-2.57 1.32H2.79c-.62 0-.99-.68-.64-1.18l3.53-5.04a3.13 3.13 0 0 1 2.57-1.32",clipRule:"evenodd"})]}),U=u,w=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.093 2.58A1 1 0 0 1 2 2h20a1 1 0 0 1 .764 1.646L15 12.826V21a1 1 0 0 1-1.447.894l-4-2A1 1 0 0 1 9 19v-6.174l-7.764-9.18a1 1 0 0 1-.143-1.067M4.155 4l6.609 7.814a1 1 0 0 1 .236.646v5.922l2 1V12.46a1 1 0 0 1 .236-.646L19.845 4z",clipRule:"evenodd"})]}),G=w,x=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.057 5.5A.057.057 0 0 0 3 5.557v13.03h18V7.875h-8.697a1 1 0 0 1-1-1c0-.759-.615-1.374-1.374-1.374zM1 5.557C1 4.42 1.92 3.5 3.057 3.5h6.872c1.515 0 2.797.999 3.223 2.374H21a2 2 0 0 1 2 2v10.714a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2z",clipRule:"evenodd"})]}),q=x,f=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.726 3.29A9.01 9.01 0 0 0 3.055 11H7.05a16.3 16.3 0 0 1 2.676-7.71m4.548 0A16.3 16.3 0 0 1 16.95 11h3.995a9.01 9.01 0 0 0-6.67-7.71m.668 7.71A14.3 14.3 0 0 0 12 3.55 14.3 14.3 0 0 0 9.058 11zm-5.884 2h5.884A14.3 14.3 0 0 1 12 20.45 14.3 14.3 0 0 1 9.058 13M7.05 13H3.055a9.01 9.01 0 0 0 6.67 7.71A16.3 16.3 0 0 1 7.05 13m7.224 7.71A16.3 16.3 0 0 0 16.95 13h3.995a9.01 9.01 0 0 1-6.67 7.71M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11",clipRule:"evenodd"})]}),Z=f,p=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",clipRule:"evenodd"}),l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.01 17a1 1 0 0 1-1-1v-5a1 1 0 1 1 2 0v5a1 1 0 0 1-1 1M13.01 7.5a1 1 0 0 1-1 1H12a1 1 0 1 1 0-2h.01a1 1 0 0 1 1 1",clipRule:"evenodd"})]}),J=p,j=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.672 5.558a7.96 7.96 0 0 0-9.841.397 7.95 7.95 0 0 0-1.908 9.66 7.964 7.964 0 0 0 8.949 4.12A7.95 7.95 0 0 0 19.962 12a1.021 1.021 0 1 1 2.045 0A9.994 9.994 0 0 1 7.83 21.083a10.01 10.01 0 0 1-5.634-11.027 9.99 9.99 0 0 1 9.402-8.048c2.244-.09 4.453.577 6.272 1.895a1.022 1.022 0 1 1-1.198 1.655",clipRule:"evenodd"})]}),K=j,R=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("circle",{cx:12,cy:4,r:2.5,fill:"currentColor"}),l.jsx("circle",{cx:12,cy:12,r:2.5,fill:"currentColor"}),l.jsx("circle",{cx:12,cy:20,r:2.5,fill:"currentColor"})]}),N=R,S=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13 4a1 1 0 1 0-2 0v7H4a1 1 0 1 0 0 2h7v7a1 1 0 1 0 2 0v-7h7a1 1 0 1 0 0-2h-7z",clipRule:"evenodd"})]}),Q=S,C=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.012 7.871a1.5 1.5 0 0 1 2.117.141L12 14.722l5.871-6.71a1.5 1.5 0 1 1 2.258 1.976l-7 8a1.5 1.5 0 0 1-2.258 0l-7-8a1.5 1.5 0 0 1 .141-2.117",clipRule:"evenodd"})]}),T=C,b=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.129 4.012a1.5 1.5 0 0 1-.141 2.117L9.278 12l6.71 5.871a1.5 1.5 0 0 1-1.976 2.258l-8-7a1.5 1.5 0 0 1 0-2.258l8-7a1.5 1.5 0 0 1 2.117.141",clipRule:"evenodd"})]}),W=b,M=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.871 19.988a1.5 1.5 0 0 1 .141-2.117L14.722 12l-6.71-5.871A1.5 1.5 0 0 1 9.988 3.87l8 7a1.5 1.5 0 0 1 0 2.258l-8 7a1.5 1.5 0 0 1-2.117-.141",clipRule:"evenodd"})]}),X=M,m=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.988 17.129a1.5 1.5 0 0 1-2.117-.141L12 10.278l-5.871 6.71a1.5 1.5 0 0 1-2.258-1.976l7-8a1.5 1.5 0 0 1 2.258 0l7 8a1.5 1.5 0 0 1-.141 2.117",clipRule:"evenodd"})]}),Y=m,y=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5 4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h1v-7a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v7h1a1 1 0 0 0 1-1V8.414L15.586 4H8v3h7a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1V4zm2-2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V8a1 1 0 0 0-.293-.707l-5-5A1 1 0 0 0 16 2zm1 12v6h8v-6z",clipRule:"evenodd"})]}),I=y,B=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 10a7 7 0 1 1 14 0 7 7 0 0 1-14 0m7-9a9 9 0 1 0 5.7 15.96 1 1 0 0 0 .24.4l4.35 4.35a1 1 0 0 0 1.42-1.42l-4.35-4.35a1 1 0 0 0-.4-.24A9 9 0 0 0 11 1",clipRule:"evenodd"})]}),l1=B,A=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",clipRule:"evenodd"}),l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.59 8.192a1 1 0 0 1 .218 1.397l-4.375 6a1 1 0 0 1-1.584.042L8.224 12.4a1 1 0 0 1 1.552-1.261l1.806 2.223 3.61-4.951a1 1 0 0 1 1.397-.219",clipRule:"evenodd"})]}),e1=A,$=({title:e,titleId:i,...a})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":i,...a,children:[e?l.jsx("title",{id:i,children:e}):null,l.jsx("g",{fill:"currentColor",fillRule:"evenodd",clipPath:"url(#users_svg__a)",clipRule:"evenodd",children:l.jsx("path",{d:"M19.055 12.803a1 1 0 0 1 1.272-.618c1.128.39 2.061 1.247 2.7 2.351.64 1.106.972 2.435.973 3.782V21a1 1 0 1 1-2 0v-2.681c0-1.03-.258-2.009-.704-2.782-.448-.773-1.034-1.258-1.623-1.462a1 1 0 0 1-.618-1.272M15.187 1.384a1 1 0 0 1 1.036-.962 5.129 5.129 0 0 1 2.11 9.71 1 1 0 1 1-.896-1.788 3.129 3.129 0 0 0-1.288-5.924 1 1 0 0 1-.962-1.036M1.505 15.694C2.481 14.622 3.825 14 5.25 14h8.5c1.424 0 2.769.622 3.744 1.694.974 1.068 1.506 2.498 1.506 3.973V22a1 1 0 1 1-2 0v-2.333c0-1.001-.363-1.945-.984-2.627-.618-.679-1.436-1.04-2.266-1.04h-8.5c-.83 0-1.648.361-2.266 1.04-.621.682-.984 1.626-.984 2.627V22a1 1 0 1 1-2 0v-2.333c0-1.475.533-2.905 1.505-3.974M9.5 3a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7M4 6.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0"})}),l.jsx("defs",{children:l.jsx("clipPath",{id:"users_svg__a",children:l.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),i1=$;export{F as S,T as a,J as b,I as c,k as d,O as e,D as f,E as g,W as h,e1 as i,L as j,P as k,K as l,l1 as m,N as n,Y as o,X as p,q,_ as r,V as s,G as t,Q as u,z as v,U as w,i1 as x,Z as y};