Merge pull request #59555 from nextcloud/dependabot/npm_and_yarn/axios-1.15.0

chore(deps): Bump axios from 1.13.5 to 1.15.0
This commit is contained in:
github-actions[bot] 2026-04-13 21:54:53 +00:00 committed by GitHub
commit 7e28bac963
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
141 changed files with 144 additions and 138 deletions

View file

@ -1,2 +1,2 @@
import{a as t}from"./index-C1xmmKTZ-CmvjJKkk.chunk.mjs";import{t as e}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{C as m,a}from"./CommentView-CB2dr6mD.chunk.mjs";import{l as p}from"./activity-DdSAHrqw.chunk.mjs";import{b as i,r as s,o as n,c,m as u}from"./preload-helper-DoJVKVMq.chunk.mjs";import{_ as l}from"./public-CvthP4YJ.chunk.mjs";import"./NcDialog-nDc1gW50-CpnK8gUQ.chunk.mjs";import"./NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs";import"./mdi-BUoBIgaz.chunk.mjs";import"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import"./index-Bp9-GhMo.chunk.mjs";import"./Web-rJva_rmF.chunk.mjs";import"./TrashCanOutline-D66Xz3gd.chunk.mjs";import"./pinia-BrO7AuLF.chunk.mjs";import"./PencilOutline-BzoFsBsK.chunk.mjs";/* empty css */import"./NcAvatar-ruClKRzS-D00PbCEA.chunk.mjs";import"./index-ClciYKp3.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./colors-BfjxNgsx-Dyl_2CuU.chunk.mjs";import"./NcUserStatusIcon-JWiuiAXe-BJYvYIQF.chunk.mjs";import"./NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-L27IwP9h.chunk.mjs";import"./NcUserBubble-BE6yD-R0-BVT_gW8E.chunk.mjs";import"./GetComments-DHvGzfol.chunk.mjs";import"./index-BDmvh1Np.chunk.mjs";const d=i({components:{Comment:a},mixins:[m],props:{reloadCallback:{type:Function,required:!0}},methods:{onNewComment(){try{this.reloadCallback()}catch(o){t(e("comments","Could not reload comments")),p.error("Could not reload comments",{error:o})}}}});function C(o,f,y,w,D,N){const r=s("Comment");return n(),c(r,u(o.editorData,{autoComplete:o.autoComplete,resourceType:o.resourceType,editor:!0,userData:o.userData,resourceId:o.resourceId,class:"comments-action",onNew:o.onNewComment}),null,16,["autoComplete","resourceType","userData","resourceId","onNew"])}const R=l(d,[["render",C],["__scopeId","data-v-29a1e244"]]);export{R as default};
//# sourceMappingURL=ActivityCommentAction-C25glnNg.chunk.mjs.map
import{a as t}from"./index-C1xmmKTZ-B9NwkrZ2.chunk.mjs";import{t as e}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{C as m,a}from"./CommentView-BP3FygMe.chunk.mjs";import{l as p}from"./activity-DdSAHrqw.chunk.mjs";import{b as i,r as s,o as n,c,m as u}from"./preload-helper-DoJVKVMq.chunk.mjs";import{_ as l}from"./public-CvthP4YJ.chunk.mjs";import"./NcDialog-nDc1gW50-CpnK8gUQ.chunk.mjs";import"./NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs";import"./mdi-BUoBIgaz.chunk.mjs";import"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import"./index-Bp9-GhMo.chunk.mjs";import"./Web-rJva_rmF.chunk.mjs";import"./TrashCanOutline-D66Xz3gd.chunk.mjs";import"./pinia-BrO7AuLF.chunk.mjs";import"./PencilOutline-BzoFsBsK.chunk.mjs";/* empty css */import"./NcAvatar-ruClKRzS-C0OkDCcs.chunk.mjs";import"./index-CzqMHoWC.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./colors-BfjxNgsx-Dyl_2CuU.chunk.mjs";import"./NcUserStatusIcon-JWiuiAXe-RsQTD2PO.chunk.mjs";import"./NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-L27IwP9h.chunk.mjs";import"./NcUserBubble-BE6yD-R0-aMsD0K5b.chunk.mjs";import"./GetComments-DHvGzfol.chunk.mjs";import"./index-BDmvh1Np.chunk.mjs";const d=i({components:{Comment:a},mixins:[m],props:{reloadCallback:{type:Function,required:!0}},methods:{onNewComment(){try{this.reloadCallback()}catch(o){t(e("comments","Could not reload comments")),p.error("Could not reload comments",{error:o})}}}});function C(o,f,y,w,D,N){const r=s("Comment");return n(),c(r,u(o.editorData,{autoComplete:o.autoComplete,resourceType:o.resourceType,editor:!0,userData:o.userData,resourceId:o.resourceId,class:"comments-action",onNew:o.onNewComment}),null,16,["autoComplete","resourceType","userData","resourceId","onNew"])}const R=l(d,[["render",C],["__scopeId","data-v-29a1e244"]]);export{R as default};
//# sourceMappingURL=ActivityCommentAction-Cn4TtwWo.chunk.mjs.map

View file

@ -1 +1 @@
{"version":3,"file":"ActivityCommentAction-C25glnNg.chunk.mjs","sources":["../build/frontend/apps/comments/src/views/ActivityCommentAction.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<template>\n\t<Comment\n\t\tv-bind=\"editorData\"\n\t\t:autoComplete=\"autoComplete\"\n\t\t:resourceType=\"resourceType\"\n\t\t:editor=\"true\"\n\t\t:userData=\"userData\"\n\t\t:resourceId=\"resourceId\"\n\t\tclass=\"comments-action\"\n\t\t@new=\"onNewComment\" />\n</template>\n\n<script lang=\"ts\">\nimport { showError } from '@nextcloud/dialogs'\nimport { t } from '@nextcloud/l10n'\nimport { defineComponent } from 'vue'\nimport Comment from '../components/Comment.vue'\nimport logger from '../logger.ts'\nimport CommentView from '../mixins/CommentView.ts'\n\nexport default defineComponent({\n\tcomponents: {\n\t\tComment,\n\t},\n\n\tmixins: [CommentView],\n\tprops: {\n\t\treloadCallback: {\n\t\t\ttype: Function,\n\t\t\trequired: true,\n\t\t},\n\t},\n\n\tmethods: {\n\t\tonNewComment() {\n\t\t\ttry {\n\t\t\t\t// just force reload\n\t\t\t\tthis.reloadCallback()\n\t\t\t} catch (error) {\n\t\t\t\tshowError(t('comments', 'Could not reload comments'))\n\t\t\t\tlogger.error('Could not reload comments', { error })\n\t\t\t}\n\t\t},\n\t},\n})\n</script>\n\n<style scoped>\n.comments-action {\n\tpadding: 0;\n}\n</style>\n"],"names":["_sfc_main","defineComponent","Comment","CommentView","error","showError","t","logger","_createBlock","_component_Comment","_mergeProps","_ctx"],"mappings":"srCAyBA,MAAAA,EAAeC,EAAgB,CAC9B,WAAY,CACX,QAAAC,CAAA,EAGD,OAAQ,CAACC,CAAW,EACpB,MAAO,CACN,eAAgB,CACf,KAAM,SACN,SAAU,EAAA,CACX,EAGD,QAAS,CACR,cAAe,CACd,GAAI,CAEH,KAAK,eAAA,CACN,OAASC,EAAO,CACfC,EAAUC,EAAE,WAAY,2BAA2B,CAAC,EACpDC,EAAO,MAAM,4BAA6B,CAAE,MAAAH,CAAA,CAAO,CACpD,CACD,CAAA,CAEF,CAAC,0DA3CAI,EAQuBC,EARvBC,EAQuBC,EAPd,WAAU,CACjB,aAAcA,EAAA,aACd,aAAcA,EAAA,aACd,OAAQ,GACR,SAAUA,EAAA,SACV,WAAYA,EAAA,WACb,MAAM,kBACL,MAAKA,EAAA,YAAA,CAAA,EAAA,KAAA,GAAA,CAAA,eAAA,eAAA,WAAA,aAAA,OAAA,CAAA"}
{"version":3,"file":"ActivityCommentAction-Cn4TtwWo.chunk.mjs","sources":["../build/frontend/apps/comments/src/views/ActivityCommentAction.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<template>\n\t<Comment\n\t\tv-bind=\"editorData\"\n\t\t:autoComplete=\"autoComplete\"\n\t\t:resourceType=\"resourceType\"\n\t\t:editor=\"true\"\n\t\t:userData=\"userData\"\n\t\t:resourceId=\"resourceId\"\n\t\tclass=\"comments-action\"\n\t\t@new=\"onNewComment\" />\n</template>\n\n<script lang=\"ts\">\nimport { showError } from '@nextcloud/dialogs'\nimport { t } from '@nextcloud/l10n'\nimport { defineComponent } from 'vue'\nimport Comment from '../components/Comment.vue'\nimport logger from '../logger.ts'\nimport CommentView from '../mixins/CommentView.ts'\n\nexport default defineComponent({\n\tcomponents: {\n\t\tComment,\n\t},\n\n\tmixins: [CommentView],\n\tprops: {\n\t\treloadCallback: {\n\t\t\ttype: Function,\n\t\t\trequired: true,\n\t\t},\n\t},\n\n\tmethods: {\n\t\tonNewComment() {\n\t\t\ttry {\n\t\t\t\t// just force reload\n\t\t\t\tthis.reloadCallback()\n\t\t\t} catch (error) {\n\t\t\t\tshowError(t('comments', 'Could not reload comments'))\n\t\t\t\tlogger.error('Could not reload comments', { error })\n\t\t\t}\n\t\t},\n\t},\n})\n</script>\n\n<style scoped>\n.comments-action {\n\tpadding: 0;\n}\n</style>\n"],"names":["_sfc_main","defineComponent","Comment","CommentView","error","showError","t","logger","_createBlock","_component_Comment","_mergeProps","_ctx"],"mappings":"srCAyBA,MAAAA,EAAeC,EAAgB,CAC9B,WAAY,CACX,QAAAC,CAAA,EAGD,OAAQ,CAACC,CAAW,EACpB,MAAO,CACN,eAAgB,CACf,KAAM,SACN,SAAU,EAAA,CACX,EAGD,QAAS,CACR,cAAe,CACd,GAAI,CAEH,KAAK,eAAA,CACN,OAASC,EAAO,CACfC,EAAUC,EAAE,WAAY,2BAA2B,CAAC,EACpDC,EAAO,MAAM,4BAA6B,CAAE,MAAAH,CAAA,CAAO,CACpD,CACD,CAAA,CAEF,CAAC,0DA3CAI,EAQuBC,EARvBC,EAQuBC,EAPd,WAAU,CACjB,aAAcA,EAAA,aACd,aAAcA,EAAA,aACd,OAAQ,GACR,SAAUA,EAAA,SACV,WAAYA,EAAA,WACb,MAAM,kBACL,MAAKA,EAAA,YAAA,CAAA,EAAA,KAAA,GAAA,CAAA,eAAA,eAAA,WAAA,aAAA,OAAA,CAAA"}

View file

@ -1,2 +1,2 @@
import{t as s}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{C as p,a}from"./CommentView-CB2dr6mD.chunk.mjs";import{_ as i}from"./public-CvthP4YJ.chunk.mjs";import{r as n,o as c,c as u,m as l}from"./preload-helper-DoJVKVMq.chunk.mjs";import"./index-Bp9-GhMo.chunk.mjs";import"./pinia-BrO7AuLF.chunk.mjs";import"./PencilOutline-BzoFsBsK.chunk.mjs";import"./mdi-BUoBIgaz.chunk.mjs";import"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import"./NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs";/* empty css */import"./NcAvatar-ruClKRzS-D00PbCEA.chunk.mjs";import"./index-ClciYKp3.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./colors-BfjxNgsx-Dyl_2CuU.chunk.mjs";import"./NcUserStatusIcon-JWiuiAXe-BJYvYIQF.chunk.mjs";import"./NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-L27IwP9h.chunk.mjs";import"./Web-rJva_rmF.chunk.mjs";import"./NcUserBubble-BE6yD-R0-BVT_gW8E.chunk.mjs";import"./TrashCanOutline-D66Xz3gd.chunk.mjs";import"./index-C1xmmKTZ-CmvjJKkk.chunk.mjs";import"./NcDialog-nDc1gW50-CpnK8gUQ.chunk.mjs";import"./activity-DdSAHrqw.chunk.mjs";import"./GetComments-DHvGzfol.chunk.mjs";import"./index-BDmvh1Np.chunk.mjs";const d={name:"ActivityCommentEntry",components:{Comment:a},mixins:[p],props:{comment:{type:Object,required:!0},reloadCallback:{type:Function,required:!0}},data(){return{commentMessage:""}},watch:{comment(){this.commentMessage=this.comment.props.message}},mounted(){this.commentMessage=this.comment.props.message},methods:{t:s}};function g(t,o,e,f,m,C){const r=n("Comment");return c(),u(r,l({ref:"comment",tag:"li"},e.comment.props,{autoComplete:t.autoComplete,resourceType:t.resourceType,message:m.commentMessage,resourceId:t.resourceId,userData:t.genMentionsData(e.comment.props.mentions),class:"comments-activity",onDelete:o[0]||(o[0]=y=>e.reloadCallback())}),null,16,["autoComplete","resourceType","message","resourceId","userData"])}const P=i(d,[["render",g],["__scopeId","data-v-afc310f1"]]);export{P as default};
//# sourceMappingURL=ActivityCommentEntry-Cwz_brC_.chunk.mjs.map
import{t as s}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{C as p,a}from"./CommentView-BP3FygMe.chunk.mjs";import{_ as i}from"./public-CvthP4YJ.chunk.mjs";import{r as n,o as c,c as u,m as l}from"./preload-helper-DoJVKVMq.chunk.mjs";import"./index-Bp9-GhMo.chunk.mjs";import"./pinia-BrO7AuLF.chunk.mjs";import"./PencilOutline-BzoFsBsK.chunk.mjs";import"./mdi-BUoBIgaz.chunk.mjs";import"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import"./NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs";/* empty css */import"./NcAvatar-ruClKRzS-C0OkDCcs.chunk.mjs";import"./index-CzqMHoWC.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./colors-BfjxNgsx-Dyl_2CuU.chunk.mjs";import"./NcUserStatusIcon-JWiuiAXe-RsQTD2PO.chunk.mjs";import"./NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-L27IwP9h.chunk.mjs";import"./Web-rJva_rmF.chunk.mjs";import"./NcUserBubble-BE6yD-R0-aMsD0K5b.chunk.mjs";import"./TrashCanOutline-D66Xz3gd.chunk.mjs";import"./index-C1xmmKTZ-B9NwkrZ2.chunk.mjs";import"./NcDialog-nDc1gW50-CpnK8gUQ.chunk.mjs";import"./activity-DdSAHrqw.chunk.mjs";import"./GetComments-DHvGzfol.chunk.mjs";import"./index-BDmvh1Np.chunk.mjs";const d={name:"ActivityCommentEntry",components:{Comment:a},mixins:[p],props:{comment:{type:Object,required:!0},reloadCallback:{type:Function,required:!0}},data(){return{commentMessage:""}},watch:{comment(){this.commentMessage=this.comment.props.message}},mounted(){this.commentMessage=this.comment.props.message},methods:{t:s}};function g(t,o,e,f,m,C){const r=n("Comment");return c(),u(r,l({ref:"comment",tag:"li"},e.comment.props,{autoComplete:t.autoComplete,resourceType:t.resourceType,message:m.commentMessage,resourceId:t.resourceId,userData:t.genMentionsData(e.comment.props.mentions),class:"comments-activity",onDelete:o[0]||(o[0]=y=>e.reloadCallback())}),null,16,["autoComplete","resourceType","message","resourceId","userData"])}const P=i(d,[["render",g],["__scopeId","data-v-afc310f1"]]);export{P as default};
//# sourceMappingURL=ActivityCommentEntry-ftYt6e9Q.chunk.mjs.map

View file

@ -1 +1 @@
{"version":3,"file":"ActivityCommentEntry-Cwz_brC_.chunk.mjs","sources":["../build/frontend/apps/comments/src/views/ActivityCommentEntry.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<template>\n\t<Comment\n\t\tref=\"comment\"\n\t\ttag=\"li\"\n\t\tv-bind=\"comment.props\"\n\t\t:autoComplete=\"autoComplete\"\n\t\t:resourceType=\"resourceType\"\n\t\t:message=\"commentMessage\"\n\t\t:resourceId=\"resourceId\"\n\t\t:userData=\"genMentionsData(comment.props.mentions)\"\n\t\tclass=\"comments-activity\"\n\t\t@delete=\"reloadCallback()\" />\n</template>\n\n<script lang=\"ts\">\nimport type { PropType } from 'vue'\n\nimport { t } from '@nextcloud/l10n'\nimport Comment from '../components/Comment.vue'\nimport CommentView from '../mixins/CommentView.ts'\n\nexport default {\n\tname: 'ActivityCommentEntry',\n\n\tcomponents: {\n\t\tComment,\n\t},\n\n\tmixins: [CommentView],\n\tprops: {\n\t\tcomment: {\n\t\t\ttype: Object,\n\t\t\trequired: true,\n\t\t},\n\n\t\treloadCallback: {\n\t\t\ttype: Function as PropType<() => void>,\n\t\t\trequired: true,\n\t\t},\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tcommentMessage: '',\n\t\t}\n\t},\n\n\twatch: {\n\t\tcomment() {\n\t\t\tthis.commentMessage = this.comment.props.message\n\t\t},\n\t},\n\n\tmounted() {\n\t\tthis.commentMessage = this.comment.props.message\n\t},\n\n\tmethods: {\n\t\tt,\n\t},\n}\n</script>\n\n<style scoped>\n.comments-activity {\n\tpadding: 0;\n}\n</style>\n"],"names":["_sfc_main","Comment","CommentView","t","_openBlock","_createBlock","_component_Comment","_mergeProps","$props","_ctx","$data","_cache"],"mappings":"4pCA0BA,MAAAA,EAAe,CACd,KAAM,uBAEN,WAAY,CACX,QAAAC,CAAA,EAGD,OAAQ,CAACC,CAAW,EACpB,MAAO,CACN,QAAS,CACR,KAAM,OACN,SAAU,EAAA,EAGX,eAAgB,CACf,KAAM,SACN,SAAU,EAAA,CACX,EAGD,MAAO,CACN,MAAO,CACN,eAAgB,EAAA,CAElB,EAEA,MAAO,CACN,SAAU,CACT,KAAK,eAAiB,KAAK,QAAQ,MAAM,OAC1C,CAAA,EAGD,SAAU,CACT,KAAK,eAAiB,KAAK,QAAQ,MAAM,OAC1C,EAEA,QAAS,CAAA,EACRC,CAAA,CAEF,+CA3DC,OAAAC,EAAA,EAAAC,EAU8BC,EAV9BC,EAU8B,CAT7B,IAAI,UACJ,IAAI,IAAA,EACIC,UAAQ,MAAK,CACpB,aAAcC,EAAA,aACd,aAAcA,EAAA,aACd,QAASC,EAAA,eACT,WAAYD,EAAA,WACZ,SAAUA,EAAA,gBAAgBD,EAAA,QAAQ,MAAM,QAAQ,EACjD,MAAM,oBACL,SAAMG,eAAEH,EAAA,eAAA,EAAc,CAAA,EAAA,KAAA,GAAA,CAAA,eAAA,eAAA,UAAA,aAAA,UAAA,CAAA"}
{"version":3,"file":"ActivityCommentEntry-ftYt6e9Q.chunk.mjs","sources":["../build/frontend/apps/comments/src/views/ActivityCommentEntry.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<template>\n\t<Comment\n\t\tref=\"comment\"\n\t\ttag=\"li\"\n\t\tv-bind=\"comment.props\"\n\t\t:autoComplete=\"autoComplete\"\n\t\t:resourceType=\"resourceType\"\n\t\t:message=\"commentMessage\"\n\t\t:resourceId=\"resourceId\"\n\t\t:userData=\"genMentionsData(comment.props.mentions)\"\n\t\tclass=\"comments-activity\"\n\t\t@delete=\"reloadCallback()\" />\n</template>\n\n<script lang=\"ts\">\nimport type { PropType } from 'vue'\n\nimport { t } from '@nextcloud/l10n'\nimport Comment from '../components/Comment.vue'\nimport CommentView from '../mixins/CommentView.ts'\n\nexport default {\n\tname: 'ActivityCommentEntry',\n\n\tcomponents: {\n\t\tComment,\n\t},\n\n\tmixins: [CommentView],\n\tprops: {\n\t\tcomment: {\n\t\t\ttype: Object,\n\t\t\trequired: true,\n\t\t},\n\n\t\treloadCallback: {\n\t\t\ttype: Function as PropType<() => void>,\n\t\t\trequired: true,\n\t\t},\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tcommentMessage: '',\n\t\t}\n\t},\n\n\twatch: {\n\t\tcomment() {\n\t\t\tthis.commentMessage = this.comment.props.message\n\t\t},\n\t},\n\n\tmounted() {\n\t\tthis.commentMessage = this.comment.props.message\n\t},\n\n\tmethods: {\n\t\tt,\n\t},\n}\n</script>\n\n<style scoped>\n.comments-activity {\n\tpadding: 0;\n}\n</style>\n"],"names":["_sfc_main","Comment","CommentView","t","_openBlock","_createBlock","_component_Comment","_mergeProps","$props","_ctx","$data","_cache"],"mappings":"4pCA0BA,MAAAA,EAAe,CACd,KAAM,uBAEN,WAAY,CACX,QAAAC,CAAA,EAGD,OAAQ,CAACC,CAAW,EACpB,MAAO,CACN,QAAS,CACR,KAAM,OACN,SAAU,EAAA,EAGX,eAAgB,CACf,KAAM,SACN,SAAU,EAAA,CACX,EAGD,MAAO,CACN,MAAO,CACN,eAAgB,EAAA,CAElB,EAEA,MAAO,CACN,SAAU,CACT,KAAK,eAAiB,KAAK,QAAQ,MAAM,OAC1C,CAAA,EAGD,SAAU,CACT,KAAK,eAAiB,KAAK,QAAQ,MAAM,OAC1C,EAEA,QAAS,CAAA,EACRC,CAAA,CAEF,+CA3DC,OAAAC,EAAA,EAAAC,EAU8BC,EAV9BC,EAU8B,CAT7B,IAAI,UACJ,IAAI,IAAA,EACIC,UAAQ,MAAK,CACpB,aAAcC,EAAA,aACd,aAAcA,EAAA,aACd,QAASC,EAAA,eACT,WAAYD,EAAA,WACZ,SAAUA,EAAA,gBAAgBD,EAAA,QAAQ,MAAM,QAAQ,EACjD,MAAM,oBACL,SAAMG,eAAEH,EAAA,eAAA,EAAc,CAAA,EAAA,KAAA,GAAA,CAAA,eAAA,eAAA,UAAA,aAAA,UAAA,CAAA"}

View file

@ -1,2 +1,2 @@
import{b as y,z as g,u as l,o as r,c as p,P as h,w as v,j as _,t as V,C as b,n as x,f as d,H as K,I as M,K as w,L as U,k as f,l as j}from"./preload-helper-DoJVKVMq.chunk.mjs";import{c as q}from"./index-ClciYKp3.chunk.mjs";import{a as C}from"./index-C1xmmKTZ-CmvjJKkk.chunk.mjs";import{t as s}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{b as L}from"./index-Bp9-GhMo.chunk.mjs";import{N}from"./mdi-BUoBIgaz.chunk.mjs";import{N as S}from"./NcSelect-B1uITk_3-D769WsNG.chunk.mjs";import{N as z}from"./NcCheckboxRadioSwitch-D0gFwEVl-CZhGfPiT.chunk.mjs";import{N as A}from"./NcPasswordField-BOLzDHBJ-DvzsiWPp.chunk.mjs";import{_ as E}from"./NcTextField.vue_vue_type_script_setup_true_lang-B-4HNjYH-C1HLa-yu.chunk.mjs";import{a as c,C as k}from"./types-DFCYS_Od.chunk.mjs";import{l as P}from"./logger-DJqOozHk.chunk.mjs";const B=y({__name:"ConfigurationEntry",props:b({configKey:{},configOption:{}},{modelValue:{type:[String,Boolean],default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=g(e,"modelValue");return(t,i)=>e.configOption.type!==l(c).Boolean?(r(),p(h(e.configOption.type===l(c).Password?l(A):l(E)),{key:0,modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=o=>a.value=o),name:e.configKey,required:!(e.configOption.flags&l(k).Optional),label:e.configOption.value,title:e.configOption.tooltip},null,8,["modelValue","name","required","label","title"])):(r(),p(l(z),{key:1,modelValue:a.value,"onUpdate:modelValue":i[1]||(i[1]=o=>a.value=o),type:"switch",title:e.configOption.tooltip},{default:v(()=>[_(V(e.configOption.value),1)]),_:1},8,["modelValue","title"]))}}),R=y({__name:"AuthMechanismRsa",props:b({authMechanism:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=g(e,"modelValue"),t=j();x(t,()=>{t.value&&(a.value.private_key="",a.value.public_key="")});async function i(){try{const{data:o}=await q.post(L("/apps/files_external/ajax/public_key.php"),{keyLength:t.value});a.value.private_key=o.data.private_key,a.value.public_key=o.data.public_key}catch(o){P.error("Error generating RSA key pair",{error:o}),C(s("files_external","Error generating key pair"))}}return(o,m)=>(r(),d("div",null,[(r(!0),d(K,null,M(e.authMechanism.configuration,(n,u)=>w((r(),p(B,{key:n.value,modelValue:a.value[u],"onUpdate:modelValue":O=>a.value[u]=O,configKey:u,configOption:n},null,8,["modelValue","onUpdate:modelValue","configKey","configOption"])),[[U,!(n.flags&l(k).Hidden)]])),128)),f(l(S),{modelValue:t.value,"onUpdate:modelValue":m[0]||(m[0]=n=>t.value=n),clearable:!1,inputLabel:l(s)("files_external","Key size"),options:[1024,2048,4096],required:""},null,8,["modelValue","inputLabel"]),f(l(N),{disabled:!t.value,wide:"",onClick:i},{default:v(()=>[_(V(l(s)("files_external","Generate keys")),1)]),_:1},8,["disabled"])]))}}),$=Object.freeze(Object.defineProperty({__proto__:null,default:R},Symbol.toStringTag,{value:"Module"}));export{$ as A,B as _};
//# sourceMappingURL=AuthMechanismRsa-BlelMfh_.chunk.mjs.map
import{b as y,z as g,u as l,o as r,c as p,P as h,w as v,j as _,t as V,C as b,n as x,f as d,H as K,I as M,K as w,L as U,k as f,l as j}from"./preload-helper-DoJVKVMq.chunk.mjs";import{c as q}from"./index-CzqMHoWC.chunk.mjs";import{a as C}from"./index-C1xmmKTZ-B9NwkrZ2.chunk.mjs";import{t as s}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{b as L}from"./index-Bp9-GhMo.chunk.mjs";import{N}from"./mdi-BUoBIgaz.chunk.mjs";import{N as S}from"./NcSelect-B1uITk_3-D769WsNG.chunk.mjs";import{N as z}from"./NcCheckboxRadioSwitch-D0gFwEVl-CZhGfPiT.chunk.mjs";import{N as A}from"./NcPasswordField-BOLzDHBJ-DXc0Hn8T.chunk.mjs";import{_ as E}from"./NcTextField.vue_vue_type_script_setup_true_lang-B-4HNjYH-C1HLa-yu.chunk.mjs";import{a as c,C as k}from"./types-DFCYS_Od.chunk.mjs";import{l as P}from"./logger-DJqOozHk.chunk.mjs";const B=y({__name:"ConfigurationEntry",props:b({configKey:{},configOption:{}},{modelValue:{type:[String,Boolean],default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=g(e,"modelValue");return(t,i)=>e.configOption.type!==l(c).Boolean?(r(),p(h(e.configOption.type===l(c).Password?l(A):l(E)),{key:0,modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=o=>a.value=o),name:e.configKey,required:!(e.configOption.flags&l(k).Optional),label:e.configOption.value,title:e.configOption.tooltip},null,8,["modelValue","name","required","label","title"])):(r(),p(l(z),{key:1,modelValue:a.value,"onUpdate:modelValue":i[1]||(i[1]=o=>a.value=o),type:"switch",title:e.configOption.tooltip},{default:v(()=>[_(V(e.configOption.value),1)]),_:1},8,["modelValue","title"]))}}),R=y({__name:"AuthMechanismRsa",props:b({authMechanism:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=g(e,"modelValue"),t=j();x(t,()=>{t.value&&(a.value.private_key="",a.value.public_key="")});async function i(){try{const{data:o}=await q.post(L("/apps/files_external/ajax/public_key.php"),{keyLength:t.value});a.value.private_key=o.data.private_key,a.value.public_key=o.data.public_key}catch(o){P.error("Error generating RSA key pair",{error:o}),C(s("files_external","Error generating key pair"))}}return(o,m)=>(r(),d("div",null,[(r(!0),d(K,null,M(e.authMechanism.configuration,(n,u)=>w((r(),p(B,{key:n.value,modelValue:a.value[u],"onUpdate:modelValue":O=>a.value[u]=O,configKey:u,configOption:n},null,8,["modelValue","onUpdate:modelValue","configKey","configOption"])),[[U,!(n.flags&l(k).Hidden)]])),128)),f(l(S),{modelValue:t.value,"onUpdate:modelValue":m[0]||(m[0]=n=>t.value=n),clearable:!1,inputLabel:l(s)("files_external","Key size"),options:[1024,2048,4096],required:""},null,8,["modelValue","inputLabel"]),f(l(N),{disabled:!t.value,wide:"",onClick:i},{default:v(()=>[_(V(l(s)("files_external","Generate keys")),1)]),_:1},8,["disabled"])]))}}),$=Object.freeze(Object.defineProperty({__proto__:null,default:R},Symbol.toStringTag,{value:"Module"}));export{$ as A,B as _};
//# sourceMappingURL=AuthMechanismRsa-JUxOuUjJ.chunk.mjs.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,2 +1,2 @@
import{t}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{N as u}from"./NcDialog-nDc1gW50-CpnK8gUQ.chunk.mjs";import{N as d}from"./TrashCanOutline-D66Xz3gd.chunk.mjs";import{N as p}from"./NcPasswordField-BOLzDHBJ-DvzsiWPp.chunk.mjs";import{_ as c}from"./NcTextField.vue_vue_type_script_setup_true_lang-B-4HNjYH-C1HLa-yu.chunk.mjs";import{b as g,o as f,c as h,w as x,k as s,u as e,l as n}from"./preload-helper-DoJVKVMq.chunk.mjs";import"./index-Bp9-GhMo.chunk.mjs";import"./NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs";import"./mdi-BUoBIgaz.chunk.mjs";import"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import"./public-CvthP4YJ.chunk.mjs";import"./Web-rJva_rmF.chunk.mjs";import"./index-ClciYKp3.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./NcInputField-CPL-a_MM-DHVwy56P.chunk.mjs";const D=g({__name:"CredentialsDialog",emits:["close"],setup(_){const o=n(""),r=n(""),m=[{label:t("files_external","Confirm"),type:"submit",variant:"primary"}];return(i,a)=>(f(),h(e(u),{buttons:m,class:"external-storage-auth",closeOnClickOutside:"","data-cy-external-storage-auth":"",isForm:"",name:e(t)("files_external","Storage credentials"),outTransition:"",onSubmit:a[2]||(a[2]=l=>i.$emit("close",{login:o.value,password:r.value})),"onUpdate:open":a[3]||(a[3]=l=>i.$emit("close"))},{default:x(()=>[s(e(d),{class:"external-storage-auth__header",text:e(t)("files_external","To access the storage, you need to provide the authentication credentials."),type:"info"},null,8,["text"]),s(e(c),{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=l=>o.value=l),autofocus:"",class:"external-storage-auth__login","data-cy-external-storage-auth-dialog-login":"",label:e(t)("files_external","Login"),placeholder:e(t)("files_external","Enter the storage login"),minlength:"2",name:"login",required:""},null,8,["modelValue","label","placeholder"]),s(e(p),{modelValue:r.value,"onUpdate:modelValue":a[1]||(a[1]=l=>r.value=l),class:"external-storage-auth__password","data-cy-external-storage-auth-dialog-password":"",label:e(t)("files_external","Password"),placeholder:e(t)("files_external","Enter the storage password"),name:"password",required:""},null,8,["modelValue","label","placeholder"])]),_:1},8,["name"]))}});export{D as default};
//# sourceMappingURL=CredentialsDialog-BvmpvYyW.chunk.mjs.map
import{t}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{N as u}from"./NcDialog-nDc1gW50-CpnK8gUQ.chunk.mjs";import{N as d}from"./TrashCanOutline-D66Xz3gd.chunk.mjs";import{N as p}from"./NcPasswordField-BOLzDHBJ-DXc0Hn8T.chunk.mjs";import{_ as c}from"./NcTextField.vue_vue_type_script_setup_true_lang-B-4HNjYH-C1HLa-yu.chunk.mjs";import{b as g,o as f,c as h,w as x,k as s,u as e,l as n}from"./preload-helper-DoJVKVMq.chunk.mjs";import"./index-Bp9-GhMo.chunk.mjs";import"./NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs";import"./mdi-BUoBIgaz.chunk.mjs";import"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import"./public-CvthP4YJ.chunk.mjs";import"./Web-rJva_rmF.chunk.mjs";import"./index-CzqMHoWC.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./NcInputField-CPL-a_MM-DHVwy56P.chunk.mjs";const D=g({__name:"CredentialsDialog",emits:["close"],setup(_){const o=n(""),r=n(""),m=[{label:t("files_external","Confirm"),type:"submit",variant:"primary"}];return(i,a)=>(f(),h(e(u),{buttons:m,class:"external-storage-auth",closeOnClickOutside:"","data-cy-external-storage-auth":"",isForm:"",name:e(t)("files_external","Storage credentials"),outTransition:"",onSubmit:a[2]||(a[2]=l=>i.$emit("close",{login:o.value,password:r.value})),"onUpdate:open":a[3]||(a[3]=l=>i.$emit("close"))},{default:x(()=>[s(e(d),{class:"external-storage-auth__header",text:e(t)("files_external","To access the storage, you need to provide the authentication credentials."),type:"info"},null,8,["text"]),s(e(c),{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=l=>o.value=l),autofocus:"",class:"external-storage-auth__login","data-cy-external-storage-auth-dialog-login":"",label:e(t)("files_external","Login"),placeholder:e(t)("files_external","Enter the storage login"),minlength:"2",name:"login",required:""},null,8,["modelValue","label","placeholder"]),s(e(p),{modelValue:r.value,"onUpdate:modelValue":a[1]||(a[1]=l=>r.value=l),class:"external-storage-auth__password","data-cy-external-storage-auth-dialog-password":"",label:e(t)("files_external","Password"),placeholder:e(t)("files_external","Enter the storage password"),name:"password",required:""},null,8,["modelValue","label","placeholder"])]),_:1},8,["name"]))}});export{D as default};
//# sourceMappingURL=CredentialsDialog-DBVSys8W.chunk.mjs.map

View file

@ -1 +1 @@
{"version":3,"file":"CredentialsDialog-BvmpvYyW.chunk.mjs","sources":["../build/frontend/apps/files_external/src/views/CredentialsDialog.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<script setup lang=\"ts\">\nimport { t } from '@nextcloud/l10n'\nimport { ref } from 'vue'\nimport NcDialog from '@nextcloud/vue/components/NcDialog'\nimport NcNoteCard from '@nextcloud/vue/components/NcNoteCard'\nimport NcPasswordField from '@nextcloud/vue/components/NcPasswordField'\nimport NcTextField from '@nextcloud/vue/components/NcTextField'\n\ndefineEmits<{\n\tclose: [payload?: { login: string, password: string }]\n}>()\n\nconst login = ref('')\nconst password = ref('')\n\nconst dialogButtons: InstanceType<typeof NcDialog>['buttons'] = [{\n\tlabel: t('files_external', 'Confirm'),\n\ttype: 'submit',\n\tvariant: 'primary',\n}]\n</script>\n\n<template>\n\t<NcDialog\n\t\t:buttons=\"dialogButtons\"\n\t\tclass=\"external-storage-auth\"\n\t\tcloseOnClickOutside\n\t\tdata-cy-external-storage-auth\n\t\tisForm\n\t\t:name=\"t('files_external', 'Storage credentials')\"\n\t\toutTransition\n\t\t@submit=\"$emit('close', { login, password })\"\n\t\t@update:open=\"$emit('close')\">\n\t\t<!-- Header -->\n\t\t<NcNoteCard\n\t\t\tclass=\"external-storage-auth__header\"\n\t\t\t:text=\"t('files_external', 'To access the storage, you need to provide the authentication credentials.')\"\n\t\t\ttype=\"info\" />\n\n\t\t<!-- Login -->\n\t\t<NcTextField\n\t\t\tv-model=\"login\"\n\t\t\tautofocus\n\t\t\tclass=\"external-storage-auth__login\"\n\t\t\tdata-cy-external-storage-auth-dialog-login\n\t\t\t:label=\"t('files_external', 'Login')\"\n\t\t\t:placeholder=\"t('files_external', 'Enter the storage login')\"\n\t\t\tminlength=\"2\"\n\t\t\tname=\"login\"\n\t\t\trequired />\n\n\t\t<!-- Password -->\n\t\t<NcPasswordField\n\t\t\tv-model=\"password\"\n\t\t\tclass=\"external-storage-auth__password\"\n\t\t\tdata-cy-external-storage-auth-dialog-password\n\t\t\t:label=\"t('files_external', 'Password')\"\n\t\t\t:placeholder=\"t('files_external', 'Enter the storage password')\"\n\t\t\tname=\"password\"\n\t\t\trequired />\n\t</NcDialog>\n</template>\n"],"names":["login","ref","password","dialogButtons","t","_createBlock","_unref","NcDialog","_cache","$event","$emit","_createVNode","NcNoteCard","NcTextField","NcPasswordField"],"mappings":"w1BAiBA,MAAMA,EAAQC,EAAI,EAAE,EACdC,EAAWD,EAAI,EAAE,EAEjBE,EAA0D,CAAC,CAChE,MAAOC,EAAE,iBAAkB,SAAS,EACpC,KAAM,SACN,QAAS,SAAA,CACT,oBAIAC,EAqCWC,EAAAC,CAAA,EAAA,CApCT,QAASJ,EACV,MAAM,wBACN,oBAAA,GACA,gCAAA,GACA,OAAA,GACC,KAAMG,EAAAF,CAAA,EAAC,iBAAA,qBAAA,EACR,cAAA,GACC,SAAMI,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAC,GAAEC,EAAAA,MAAK,QAAA,CAAA,MAAYV,EAAA,eAAOE,EAAA,MAAQ,GACxC,+BAAaQ,EAAAA,MAAK,OAAA,EAAA,aAEnB,IAGe,CAHfC,EAGeL,EAAAM,CAAA,EAAA,CAFd,MAAM,gCACL,KAAMN,EAAAF,CAAA,EAAC,iBAAA,4EAAA,EACR,KAAK,MAAA,mBAGNO,EASYL,EAAAO,CAAA,EAAA,YARFb,EAAA,2CAAAA,EAAK,MAAAS,GACd,UAAA,GACA,MAAM,+BACN,6CAAA,GACC,MAAOH,EAAAF,CAAA,EAAC,iBAAA,OAAA,EACR,YAAaE,EAAAF,CAAA,EAAC,iBAAA,yBAAA,EACf,UAAU,IACV,KAAK,QACL,SAAA,EAAA,+CAGDO,EAOYL,EAAAQ,CAAA,EAAA,YANFZ,EAAA,2CAAAA,EAAQ,MAAAO,GACjB,MAAM,kCACN,gDAAA,GACC,MAAOH,EAAAF,CAAA,EAAC,iBAAA,UAAA,EACR,YAAaE,EAAAF,CAAA,EAAC,iBAAA,4BAAA,EACf,KAAK,WACL,SAAA,EAAA"}
{"version":3,"file":"CredentialsDialog-DBVSys8W.chunk.mjs","sources":["../build/frontend/apps/files_external/src/views/CredentialsDialog.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<script setup lang=\"ts\">\nimport { t } from '@nextcloud/l10n'\nimport { ref } from 'vue'\nimport NcDialog from '@nextcloud/vue/components/NcDialog'\nimport NcNoteCard from '@nextcloud/vue/components/NcNoteCard'\nimport NcPasswordField from '@nextcloud/vue/components/NcPasswordField'\nimport NcTextField from '@nextcloud/vue/components/NcTextField'\n\ndefineEmits<{\n\tclose: [payload?: { login: string, password: string }]\n}>()\n\nconst login = ref('')\nconst password = ref('')\n\nconst dialogButtons: InstanceType<typeof NcDialog>['buttons'] = [{\n\tlabel: t('files_external', 'Confirm'),\n\ttype: 'submit',\n\tvariant: 'primary',\n}]\n</script>\n\n<template>\n\t<NcDialog\n\t\t:buttons=\"dialogButtons\"\n\t\tclass=\"external-storage-auth\"\n\t\tcloseOnClickOutside\n\t\tdata-cy-external-storage-auth\n\t\tisForm\n\t\t:name=\"t('files_external', 'Storage credentials')\"\n\t\toutTransition\n\t\t@submit=\"$emit('close', { login, password })\"\n\t\t@update:open=\"$emit('close')\">\n\t\t<!-- Header -->\n\t\t<NcNoteCard\n\t\t\tclass=\"external-storage-auth__header\"\n\t\t\t:text=\"t('files_external', 'To access the storage, you need to provide the authentication credentials.')\"\n\t\t\ttype=\"info\" />\n\n\t\t<!-- Login -->\n\t\t<NcTextField\n\t\t\tv-model=\"login\"\n\t\t\tautofocus\n\t\t\tclass=\"external-storage-auth__login\"\n\t\t\tdata-cy-external-storage-auth-dialog-login\n\t\t\t:label=\"t('files_external', 'Login')\"\n\t\t\t:placeholder=\"t('files_external', 'Enter the storage login')\"\n\t\t\tminlength=\"2\"\n\t\t\tname=\"login\"\n\t\t\trequired />\n\n\t\t<!-- Password -->\n\t\t<NcPasswordField\n\t\t\tv-model=\"password\"\n\t\t\tclass=\"external-storage-auth__password\"\n\t\t\tdata-cy-external-storage-auth-dialog-password\n\t\t\t:label=\"t('files_external', 'Password')\"\n\t\t\t:placeholder=\"t('files_external', 'Enter the storage password')\"\n\t\t\tname=\"password\"\n\t\t\trequired />\n\t</NcDialog>\n</template>\n"],"names":["login","ref","password","dialogButtons","t","_createBlock","_unref","NcDialog","_cache","$event","$emit","_createVNode","NcNoteCard","NcTextField","NcPasswordField"],"mappings":"w1BAiBA,MAAMA,EAAQC,EAAI,EAAE,EACdC,EAAWD,EAAI,EAAE,EAEjBE,EAA0D,CAAC,CAChE,MAAOC,EAAE,iBAAkB,SAAS,EACpC,KAAM,SACN,QAAS,SAAA,CACT,oBAIAC,EAqCWC,EAAAC,CAAA,EAAA,CApCT,QAASJ,EACV,MAAM,wBACN,oBAAA,GACA,gCAAA,GACA,OAAA,GACC,KAAMG,EAAAF,CAAA,EAAC,iBAAA,qBAAA,EACR,cAAA,GACC,SAAMI,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAC,GAAEC,EAAAA,MAAK,QAAA,CAAA,MAAYV,EAAA,eAAOE,EAAA,MAAQ,GACxC,+BAAaQ,EAAAA,MAAK,OAAA,EAAA,aAEnB,IAGe,CAHfC,EAGeL,EAAAM,CAAA,EAAA,CAFd,MAAM,gCACL,KAAMN,EAAAF,CAAA,EAAC,iBAAA,4EAAA,EACR,KAAK,MAAA,mBAGNO,EASYL,EAAAO,CAAA,EAAA,YARFb,EAAA,2CAAAA,EAAK,MAAAS,GACd,UAAA,GACA,MAAM,+BACN,6CAAA,GACC,MAAOH,EAAAF,CAAA,EAAC,iBAAA,OAAA,EACR,YAAaE,EAAAF,CAAA,EAAC,iBAAA,yBAAA,EACf,UAAU,IACV,KAAK,QACL,SAAA,EAAA,+CAGDO,EAOYL,EAAAQ,CAAA,EAAA,YANFZ,EAAA,2CAAAA,EAAQ,MAAAO,GACjB,MAAM,kCACN,gDAAA,GACC,MAAOH,EAAAF,CAAA,EAAC,iBAAA,UAAA,EACR,YAAaE,EAAAF,CAAA,EAAC,iBAAA,4BAAA,EACf,KAAK,WACL,SAAA,EAAA"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import{a as x}from"./index-C1xmmKTZ-CmvjJKkk.chunk.mjs";import{t as y}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{v as M}from"./NcAvatar-ruClKRzS-D00PbCEA.chunk.mjs";import{N}from"./mdi-BUoBIgaz.chunk.mjs";import{N as S}from"./NcEmptyContent-CDgWCt_m-MnlDvtO9.chunk.mjs";import{_ as f}from"./public-CvthP4YJ.chunk.mjs";import{f as r,g as I,t as p,h as d,m as h,o as s,K as z,k as c,H as C,c as _,w as g,I as O,F,ae as L,r as m,j as $,b as B,D as q}from"./preload-helper-DoJVKVMq.chunk.mjs";import{C as P,a as b}from"./CommentView-CB2dr6mD.chunk.mjs";import{l as v}from"./activity-DdSAHrqw.chunk.mjs";import{c as j,g as U,D as w}from"./GetComments-DHvGzfol.chunk.mjs";const E={name:"AlertCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Z=["aria-hidden","aria-label"],K=["fill","width","height"],G={d:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z"},J={key:0};function Q(t,o,e,a,i,n){return s(),r("span",h(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon alert-circle-outline-icon",role:"img",onClick:o[0]||(o[0]=l=>t.$emit("click",l))}),[(s(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[I("path",G,[e.title?(s(),r("title",J,p(e.title),1)):d("",!0)])],8,K))],16,Z)}const W=f(E,[["render",Q]]),X={name:"MessageReplyTextOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Y=["aria-hidden","aria-label"],ee=["fill","width","height"],te={d:"M9 11H18V13H9V11M18 7H6V9H18V7M22 4V22L18 18H4C2.9 18 2 17.11 2 16V4C2 2.9 2.9 2 4 2H20C21.1 2 22 2.89 22 4M20 4H4V16H18.83L20 17.17V4Z"},oe={key:0};function se(t,o,e,a,i,n){return s(),r("span",h(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon message-reply-text-outline-icon",role:"img",onClick:o[0]||(o[0]=l=>t.$emit("click",l))}),[(s(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[I("path",te,[e.title?(s(),r("title",oe,p(e.title),1)):d("",!0)])],8,ee))],16,Y)}const re=f(X,[["render",se]]),ie={name:"RefreshIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ne=["aria-hidden","aria-label"],ae=["fill","width","height"],le={d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"},ce={key:0};function me(t,o,e,a,i,n){return s(),r("span",h(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon refresh-icon",role:"img",onClick:o[0]||(o[0]=l=>t.$emit("click",l))}),[(s(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[I("path",le,[e.title?(s(),r("title",ce,p(e.title),1)):d("",!0)])],8,ae))],16,ne)}const de=f(ie,[["render",me]]);function ue(t,o,e){const a=["",t,o].join("/"),i=e.toUTCString();return j.customRequest(a,{method:"PROPPATCH",data:`<?xml version="1.0"?>
import{a as x}from"./index-C1xmmKTZ-B9NwkrZ2.chunk.mjs";import{t as y}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{v as M}from"./NcAvatar-ruClKRzS-C0OkDCcs.chunk.mjs";import{N}from"./mdi-BUoBIgaz.chunk.mjs";import{N as S}from"./NcEmptyContent-CDgWCt_m-MnlDvtO9.chunk.mjs";import{_ as f}from"./public-CvthP4YJ.chunk.mjs";import{f as r,g as I,t as p,h as d,m as h,o as s,K as z,k as c,H as C,c as _,w as g,I as O,F,ae as L,r as m,j as $,b as B,D as q}from"./preload-helper-DoJVKVMq.chunk.mjs";import{C as P,a as b}from"./CommentView-BP3FygMe.chunk.mjs";import{l as v}from"./activity-DdSAHrqw.chunk.mjs";import{c as j,g as U,D as w}from"./GetComments-DHvGzfol.chunk.mjs";const E={name:"AlertCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Z=["aria-hidden","aria-label"],K=["fill","width","height"],G={d:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z"},J={key:0};function Q(t,o,e,a,i,n){return s(),r("span",h(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon alert-circle-outline-icon",role:"img",onClick:o[0]||(o[0]=l=>t.$emit("click",l))}),[(s(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[I("path",G,[e.title?(s(),r("title",J,p(e.title),1)):d("",!0)])],8,K))],16,Z)}const W=f(E,[["render",Q]]),X={name:"MessageReplyTextOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Y=["aria-hidden","aria-label"],ee=["fill","width","height"],te={d:"M9 11H18V13H9V11M18 7H6V9H18V7M22 4V22L18 18H4C2.9 18 2 17.11 2 16V4C2 2.9 2.9 2 4 2H20C21.1 2 22 2.89 22 4M20 4H4V16H18.83L20 17.17V4Z"},oe={key:0};function se(t,o,e,a,i,n){return s(),r("span",h(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon message-reply-text-outline-icon",role:"img",onClick:o[0]||(o[0]=l=>t.$emit("click",l))}),[(s(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[I("path",te,[e.title?(s(),r("title",oe,p(e.title),1)):d("",!0)])],8,ee))],16,Y)}const re=f(X,[["render",se]]),ie={name:"RefreshIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ne=["aria-hidden","aria-label"],ae=["fill","width","height"],le={d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"},ce={key:0};function me(t,o,e,a,i,n){return s(),r("span",h(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon refresh-icon",role:"img",onClick:o[0]||(o[0]=l=>t.$emit("click",l))}),[(s(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[I("path",le,[e.title?(s(),r("title",ce,p(e.title),1)):d("",!0)])],8,ae))],16,ne)}const de=f(ie,[["render",me]]);function ue(t,o,e){const a=["",t,o].join("/"),i=e.toUTCString();return j.customRequest(a,{method:"PROPPATCH",data:`<?xml version="1.0"?>
<d:propertyupdate
xmlns:d="DAV:"
xmlns:oc="http://owncloud.org/ns">
@ -8,4 +8,4 @@ import{a as x}from"./index-C1xmmKTZ-CmvjJKkk.chunk.mjs";import{t as y}from"./tra
</d:prop>
</d:set>
</d:propertyupdate>`})}function pe(t){const o=new AbortController,e=o.signal;return{request:async function(a,i){return await t(a,{signal:e,...i})},abort:()=>o.abort()}}const he={name:"CommentsApp",components:{Comment:b,NcEmptyContent:S,NcButton:N,IconRefresh:de,IconMessageReplyTextOutline:re,IconAlertCircleOutline:W},directives:{elementVisibility:M},mixins:[P],expose:["update"],data(){return{error:"",loading:!1,done:!1,offset:0,comments:[],cancelRequest:()=>{},Comment:b,userData:{}}},computed:{hasComments(){return this.comments.length>0},isFirstLoading(){return this.loading&&this.offset===0}},watch:{resourceId(){this.currentResourceId=this.resourceId}},methods:{t:y,async onVisibilityChange(t){if(t)try{await ue(this.resourceType,this.currentResourceId,new Date)}catch(o){x(o.message||y("comments","Failed to mark comments as read"))}},async update(t){this.currentResourceId=t,this.resetState(),await this.getComments()},onScrollBottomReached(){this.error||this.done||this.loading||this.getComments()},async getComments(){this.cancelRequest("cancel");try{this.loading=!0,this.error="";const{request:t,abort:o}=pe(U);this.cancelRequest=o;const{data:e}=await t({resourceType:this.resourceType,resourceId:this.currentResourceId},{offset:this.offset})||{data:[]};this.logger.debug(`Processed ${e.length} comments`,{comments:e}),e.length<w&&(this.done=!0);for(const a of e)a.props.actorId=a.props.actorId.toString();this.comments=[...this.comments,...e],this.offset+=w}catch(t){if(t.message==="cancel")return;this.error=y("comments","Unable to load the comments list"),v.error("Error loading the comments list",{error:t})}finally{this.loading=!1}},onNewComment(t){this.comments.unshift(t)},onDelete(t){const o=this.comments.findIndex(e=>e.props.id===t);o>-1?this.comments.splice(o,1):v.error("Could not find the deleted comment in the list",{id:t})},resetState(){this.error="",this.loading=!1,this.done=!1,this.offset=0,this.comments=[]}}},ge={key:1},fe={key:2,class:"comments__info icon-loading"},ye={key:3,class:"comments__info"};function Ce(t,o,e,a,i,n){const l=m("Comment"),V=m("IconMessageReplyTextOutline"),k=m("NcEmptyContent"),R=m("IconAlertCircleOutline"),A=m("IconRefresh"),T=m("NcButton"),D=L("element-visibility");return z((s(),r("div",{class:F(["comments",{"icon-loading":n.isFirstLoading}])},[c(l,h(t.editorData,{editor:"",autoComplete:t.autoComplete,resourceType:t.resourceType,userData:i.userData,resourceId:t.currentResourceId,class:"comments__writer",onNew:n.onNewComment}),null,16,["autoComplete","resourceType","userData","resourceId","onNew"]),n.isFirstLoading?d("",!0):(s(),r(C,{key:0},[!n.hasComments&&i.done?(s(),_(k,{key:0,class:"comments__empty",name:n.t("comments","No comments yet, start the conversation!")},{icon:g(()=>[c(V)]),_:1},8,["name"])):(s(),r("ul",ge,[(s(!0),r(C,null,O(i.comments,u=>(s(),_(l,h({key:u.props.id,modelValue:u.props.message,"onUpdate:modelValue":H=>u.props.message=H,tag:"li"},{ref_for:!0},u.props,{autoComplete:t.autoComplete,resourceType:t.resourceType,resourceId:t.currentResourceId,userData:t.genMentionsData(u.props.mentions),class:"comments__list",onDelete:n.onDelete}),null,16,["modelValue","onUpdate:modelValue","autoComplete","resourceType","resourceId","userData","onDelete"]))),128))])),i.loading&&!n.isFirstLoading?(s(),r("div",fe)):n.hasComments&&i.done?(s(),r("div",ye,p(n.t("comments","No more messages")),1)):i.error?(s(),r(C,{key:4},[c(k,{class:"comments__error",name:i.error},{icon:g(()=>[c(R)]),_:1},8,["name"]),c(T,{class:"comments__retry",onClick:n.getComments},{icon:g(()=>[c(A)]),default:g(()=>[$(" "+p(n.t("comments","Retry")),1)]),_:1},8,["onClick"])],64)):d("",!0)],64))],2)),[[D,n.onVisibilityChange]])}const _e=f(he,[["render",Ce],["__scopeId","data-v-2295a278"]]),Ie=B({__name:"FilesSidebarTab",props:{node:{},active:{type:Boolean},folder:{},view:{}},setup(t){const o=t,e=q(()=>o.node?.fileid);return(a,i)=>e.value!==void 0?(s(),_(_e,{key:e.value,resourceId:e.value,resourceType:"files"},null,8,["resourceId"])):d("",!0)}}),xe=Object.freeze(Object.defineProperty({__proto__:null,default:Ie},Symbol.toStringTag,{value:"Module"}));export{_e as C,xe as F};
//# sourceMappingURL=FilesSidebarTab-DjFYKtGP.chunk.mjs.map
//# sourceMappingURL=FilesSidebarTab-7Od1VwNN.chunk.mjs.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,2 +1,2 @@
import{l as k,h as V,i as S}from"./mdi-BUoBIgaz.chunk.mjs";import{c as N}from"./index-ClciYKp3.chunk.mjs";import{g as F}from"./public-CvthP4YJ.chunk.mjs";import{d as L,c as M}from"./index-Bp9-GhMo.chunk.mjs";import{r as $,e as z,_ as A,b as n,N as D}from"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import{N as H}from"./NcInputField-CPL-a_MM-DHVwy56P.chunk.mjs";import{b as I,z as c,n as O,A as U,o as j,c as q,B as E,w as v,i as G,k as J,u as o,m as K,C as m,l as h,D as f}from"./preload-helper-DoJVKVMq.chunk.mjs";$(z);const Q=I({__name:"NcPasswordField",props:m({class:{},inputClass:{default:""},id:{},label:{},labelOutside:{type:Boolean},placeholder:{},showTrailingButton:{type:Boolean,default:!0},success:{type:Boolean},error:{type:Boolean},helperText:{},disabled:{type:Boolean},pill:{type:Boolean},checkPasswordStrength:{type:Boolean},minlength:{default:void 0},asText:{type:Boolean}},{modelValue:{default:""},modelModifiers:{},visible:{type:Boolean,default:!1},visibleModifiers:{}}),emits:m(["valid","invalid"],["update:modelValue","update:visible"]),setup(l,{expose:w,emit:y}){const s=c(l,"modelValue"),a=c(l,"visible"),t=l,d=y;O(s,L(b,500)),w({focus:_,select:C});const{password_policy:g}=F(),u=U("inputField"),i=h(""),r=h(),x=f(()=>{const e={...t};return delete e.checkPasswordStrength,delete e.minlength,delete e.asText,delete e.error,delete e.helperText,delete e.inputClass,delete e.success,e}),B=f(()=>t.minlength??(t.checkPasswordStrength?g?.minLength:void 0)??void 0);async function b(){if(t.checkPasswordStrength)try{const{data:e}=await N.post(M("apps/password_policy/api/v1/validate"),{password:s.value});if(r.value=e.ocs.data.passed,e.ocs.data.passed){i.value=n("Password is secure"),d("valid");return}i.value=e.ocs.data.reason,d("invalid")}catch(e){k.error("Password policy returned an error",{error:e})}}function T(){a.value=!a.value}function _(e){u.value.focus(e)}function C(){u.value.select()}return(e,p)=>(j(),q(H,K(x.value,{ref:"inputField",modelValue:s.value,"onUpdate:modelValue":p[0]||(p[0]=P=>s.value=P),error:e.error||r.value===!1,helperText:e.helperText||i.value,inputClass:[e.inputClass,{"password-field__input--secure-text":!a.value&&e.asText}],minlength:B.value,success:e.success||r.value===!0,trailingButtonLabel:a.value?o(n)("Hide password"):o(n)("Show password"),type:a.value||e.asText?"text":"password",onTrailingButtonClick:T}),E({"trailing-button-icon":v(()=>[J(D,{path:a.value?o(V):o(S)},null,8,["path"])]),_:2},[e.$slots.icon?{name:"icon",fn:v(()=>[G(e.$slots,"icon",{},void 0,!0)]),key:"0"}:void 0]),1040,["modelValue","error","helperText","inputClass","minlength","success","trailingButtonLabel","type"]))}}),se=A(Q,[["__scopeId","data-v-00e75248"]]);export{se as N};
//# sourceMappingURL=NcPasswordField-BOLzDHBJ-DvzsiWPp.chunk.mjs.map
import{l as k,h as V,i as S}from"./mdi-BUoBIgaz.chunk.mjs";import{c as N}from"./index-CzqMHoWC.chunk.mjs";import{g as F}from"./public-CvthP4YJ.chunk.mjs";import{d as L,c as M}from"./index-Bp9-GhMo.chunk.mjs";import{r as $,e as z,_ as A,b as n,N as D}from"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import{N as H}from"./NcInputField-CPL-a_MM-DHVwy56P.chunk.mjs";import{b as I,z as c,n as O,A as U,o as j,c as q,B as E,w as v,i as G,k as J,u as o,m as K,C as m,l as h,D as f}from"./preload-helper-DoJVKVMq.chunk.mjs";$(z);const Q=I({__name:"NcPasswordField",props:m({class:{},inputClass:{default:""},id:{},label:{},labelOutside:{type:Boolean},placeholder:{},showTrailingButton:{type:Boolean,default:!0},success:{type:Boolean},error:{type:Boolean},helperText:{},disabled:{type:Boolean},pill:{type:Boolean},checkPasswordStrength:{type:Boolean},minlength:{default:void 0},asText:{type:Boolean}},{modelValue:{default:""},modelModifiers:{},visible:{type:Boolean,default:!1},visibleModifiers:{}}),emits:m(["valid","invalid"],["update:modelValue","update:visible"]),setup(l,{expose:w,emit:y}){const s=c(l,"modelValue"),a=c(l,"visible"),t=l,d=y;O(s,L(b,500)),w({focus:_,select:C});const{password_policy:g}=F(),u=U("inputField"),i=h(""),r=h(),x=f(()=>{const e={...t};return delete e.checkPasswordStrength,delete e.minlength,delete e.asText,delete e.error,delete e.helperText,delete e.inputClass,delete e.success,e}),B=f(()=>t.minlength??(t.checkPasswordStrength?g?.minLength:void 0)??void 0);async function b(){if(t.checkPasswordStrength)try{const{data:e}=await N.post(M("apps/password_policy/api/v1/validate"),{password:s.value});if(r.value=e.ocs.data.passed,e.ocs.data.passed){i.value=n("Password is secure"),d("valid");return}i.value=e.ocs.data.reason,d("invalid")}catch(e){k.error("Password policy returned an error",{error:e})}}function T(){a.value=!a.value}function _(e){u.value.focus(e)}function C(){u.value.select()}return(e,p)=>(j(),q(H,K(x.value,{ref:"inputField",modelValue:s.value,"onUpdate:modelValue":p[0]||(p[0]=P=>s.value=P),error:e.error||r.value===!1,helperText:e.helperText||i.value,inputClass:[e.inputClass,{"password-field__input--secure-text":!a.value&&e.asText}],minlength:B.value,success:e.success||r.value===!0,trailingButtonLabel:a.value?o(n)("Hide password"):o(n)("Show password"),type:a.value||e.asText?"text":"password",onTrailingButtonClick:T}),E({"trailing-button-icon":v(()=>[J(D,{path:a.value?o(V):o(S)},null,8,["path"])]),_:2},[e.$slots.icon?{name:"icon",fn:v(()=>[G(e.$slots,"icon",{},void 0,!0)]),key:"0"}:void 0]),1040,["modelValue","error","helperText","inputClass","minlength","success","trailingButtonLabel","type"]))}}),se=A(Q,[["__scopeId","data-v-00e75248"]]);export{se as N};
//# sourceMappingURL=NcPasswordField-BOLzDHBJ-DXc0Hn8T.chunk.mjs.map

View file

@ -1,4 +1,4 @@
import{r as V,h as N,b as r,_ as x}from"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import{l as g}from"./mdi-BUoBIgaz.chunk.mjs";import{N as c,a as T}from"./NcSelect-B1uITk_3-D769WsNG.chunk.mjs";import{c as O}from"./index-ClciYKp3.chunk.mjs";import{h as v}from"./index-Bp9-GhMo.chunk.mjs";import{r as m,o as w,c as F,B as S,I as $,w as n,i as A,N as D,O as I,k as h,m as P}from"./preload-helper-DoJVKVMq.chunk.mjs";V(N);function u(e){let t={};if(e.nodeType===1){if(e.attributes.length>0){t["@attributes"]={};for(let s=0;s<e.attributes.length;s++){const o=e.attributes.item(s);t["@attributes"][o.nodeName]=o.nodeValue}}}else e.nodeType===3&&(t=e.nodeValue);if(e.hasChildNodes())for(let s=0;s<e.childNodes.length;s++){const o=e.childNodes.item(s),a=o.nodeName;if(typeof t[a]>"u")t[a]=u(o);else{if(typeof t[a].push>"u"){const l=t[a];t[a]=[],t[a].push(l)}t[a].push(u(o))}}return t}function B(e){let t=null;try{t=new DOMParser().parseFromString(e,"text/xml")}catch(s){g.error("[NcSelectTags] Failed to parse xml document",{error:s})}return t}function f(e){const t=u(B(e))["d:multistatus"]["d:response"],s=[];for(const o in t){const a=t[o]["d:propstat"];a["d:status"]["#text"]==="HTTP/1.1 200 OK"&&s.push({id:parseInt(a["d:prop"]["oc:id"]["#text"]),displayName:a["d:prop"]["oc:display-name"]["#text"],canAssign:a["d:prop"]["oc:can-assign"]["#text"]==="true",userAssignable:a["d:prop"]["oc:user-assignable"]["#text"]==="true",userVisible:a["d:prop"]["oc:user-visible"]["#text"]==="true"})}return s}async function L(){if(window.NextcloudVueDocs)return Promise.resolve(f(window.NextcloudVueDocs.tags));const e=await O({method:"PROPFIND",url:v("dav")+"/systemtags/",data:`<?xml version="1.0"?>
import{r as V,h as N,b as r,_ as x}from"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import{l as g}from"./mdi-BUoBIgaz.chunk.mjs";import{N as c,a as T}from"./NcSelect-B1uITk_3-D769WsNG.chunk.mjs";import{c as O}from"./index-CzqMHoWC.chunk.mjs";import{h as v}from"./index-Bp9-GhMo.chunk.mjs";import{r as m,o as w,c as F,B as S,I as $,w as n,i as A,N as D,O as I,k as h,m as P}from"./preload-helper-DoJVKVMq.chunk.mjs";V(N);function u(e){let t={};if(e.nodeType===1){if(e.attributes.length>0){t["@attributes"]={};for(let s=0;s<e.attributes.length;s++){const o=e.attributes.item(s);t["@attributes"][o.nodeName]=o.nodeValue}}}else e.nodeType===3&&(t=e.nodeValue);if(e.hasChildNodes())for(let s=0;s<e.childNodes.length;s++){const o=e.childNodes.item(s),a=o.nodeName;if(typeof t[a]>"u")t[a]=u(o);else{if(typeof t[a].push>"u"){const l=t[a];t[a]=[],t[a].push(l)}t[a].push(u(o))}}return t}function B(e){let t=null;try{t=new DOMParser().parseFromString(e,"text/xml")}catch(s){g.error("[NcSelectTags] Failed to parse xml document",{error:s})}return t}function f(e){const t=u(B(e))["d:multistatus"]["d:response"],s=[];for(const o in t){const a=t[o]["d:propstat"];a["d:status"]["#text"]==="HTTP/1.1 200 OK"&&s.push({id:parseInt(a["d:prop"]["oc:id"]["#text"]),displayName:a["d:prop"]["oc:display-name"]["#text"],canAssign:a["d:prop"]["oc:can-assign"]["#text"]==="true",userAssignable:a["d:prop"]["oc:user-assignable"]["#text"]==="true",userVisible:a["d:prop"]["oc:user-visible"]["#text"]==="true"})}return s}async function L(){if(window.NextcloudVueDocs)return Promise.resolve(f(window.NextcloudVueDocs.tags));const e=await O({method:"PROPFIND",url:v("dav")+"/systemtags/",data:`<?xml version="1.0"?>
<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
<d:prop>
<oc:id />
@ -8,4 +8,4 @@ import{r as V,h as N,b as r,_ as x}from"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chu
<oc:can-assign />
</d:prop>
</d:propfind>`});return f(e.data)}const E={name:"NcSelectTags",components:{NcEllipsisedOption:T,NcSelect:c},props:{...c.props,fetchTags:{type:Boolean,default:!0},getOptionLabel:{type:Function,default:e=>{const{displayName:t,userVisible:s,userAssignable:o}=e;return s===!1?r("{tag} (invisible)",{tag:t}):o===!1?r("{tag} (restricted)",{tag:t}):t}},limit:{type:Number,default:5},multiple:{type:Boolean,default:!0},optionsFilter:{type:Function,default:null},passthru:{type:Boolean,default:!1},placeholder:{type:String,default:r("Select a tag")},modelValue:{type:[Number,Array,Object],default:null}," ":{}},emits:["update:modelValue"," "],data(){return{search:"",availableTags:[]}},computed:{availableOptions(){return this.optionsFilter?this.tags.filter(this.optionsFilter):this.tags},localValue(){return this.passthru?this.modelValue:this.tags.length===0?[]:this.multiple?this.modelValue.filter(e=>e!=="").map(e=>this.tags.find(t=>t.id===e)):this.tags.find(e=>e.id===this.modelValue)},propsToForward(){const e={...this.$props};return delete e.fetchTags,delete e.optionsFilter,delete e.passthru,e},tags(){return this.fetchTags?this.availableTags:this.options}},async created(){if(this.fetchTags)try{const e=await L();this.availableTags=e}catch(e){g.error("[NcSelectTags] Loading systemtags failed",e)}},methods:{handleInput(e){if(this.passthru){this.$emit("update:modelValue",e);return}this.multiple?this.$emit("update:modelValue",e.map(t=>t.id)):e===null?this.$emit("update:modelValue",null):this.$emit("update:modelValue",e.id)}}};function _(e,t,s,o,a,l){const p=m("NcEllipsisedOption"),b=m("NcSelect");return w(),F(b,P(l.propsToForward,{options:l.availableOptions,closeOnSelect:!s.multiple,modelValue:l.localValue,onSearch:t[0]||(t[0]=i=>a.search=i),"onUpdate:modelValue":l.handleInput}),S({option:n(i=>[h(p,{name:s.getOptionLabel(i),search:a.search},null,8,["name","search"])]),"selected-option":n(i=>[h(p,{name:s.getOptionLabel(i),search:a.search},null,8,["name","search"])]),_:2},[$(e.$slots,(i,d)=>({name:d,fn:n(y=>[A(e.$slots,d,D(I(y)))])}))]),1040,["options","closeOnSelect","modelValue","onUpdate:modelValue"])}const K=x(E,[["render",_]]);export{K as N};
//# sourceMappingURL=NcSelectTags-B3_tcJAf-Bsjr_Zz2.chunk.mjs.map
//# sourceMappingURL=NcSelectTags-B3_tcJAf-Di5Y0cZX.chunk.mjs.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,2 +1,2 @@
import{R as U}from"./mdi-BUoBIgaz.chunk.mjs";import{N as z}from"./NcAvatar-ruClKRzS-D00PbCEA.chunk.mjs";import{y as R}from"./NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs";import{_ as y}from"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import{b as k,z as x,n as S,o as l,c,w as i,i as o,P as b,m as B,k as C,R as L,g as M,t as j,f as g,h as D,C as f,D as s,aj as H}from"./preload-helper-DoJVKVMq.chunk.mjs";const P={};function T(r,n){return l(),g("div",null,[o(r.$slots,"trigger")])}const W=y(P,[["render",T]]),q={class:"user-bubble__name"},A={key:0,class:"user-bubble__secondary"},E=k({__name:"NcUserBubble",props:f({avatarImage:{default:void 0},user:{default:void 0},displayName:{default:void 0},showUserStatus:{type:Boolean},url:{default:void 0},to:{default:void 0},primary:{type:Boolean},size:{default:20},margin:{default:2}},{open:{type:Boolean},openModifiers:{}}),emits:f(["click"],["update:open"]),setup(r,{emit:n}){const d=x(r,"open"),e=r,_=n,p=s(()=>{if(!e.avatarImage)return!1;try{return!!new URL(e.avatarImage)}catch{return!1}}),m=s(()=>!!e.avatarImage),h=s(()=>({marginInlineStart:`${e.margin}px`})),v=s(()=>{if(!e.url||e.url.trim()==="")return!1;try{return!!new URL(e.url,e.url?.startsWith?.("/")?window.location.href:void 0)}catch{return H("[NcUserBubble] Invalid URL passed",{url:e.url}),!1}}),w=s(()=>v.value?e.url:void 0),N=s(()=>v.value?"a":e.to?U:"div"),I=s(()=>({height:`${e.size}px`,lineHeight:`${e.size}px`,borderRadius:`${e.size/2}px`}));return S([()=>e.displayName,()=>e.user],()=>{!e.displayName&&e.user}),(a,t)=>(l(),c(b(a.$slots.default?R:W),{shown:d.value,"onUpdate:shown":t[1]||(t[1]=u=>d.value=u),class:"user-bubble__wrapper",trigger:"hover focus"},{trigger:i(({attrs:u})=>[(l(),c(b(N.value),B({class:["user-bubble__content",{"user-bubble__content--primary":a.primary}],style:I.value,to:a.to,href:w.value},u,{onClick:t[0]||(t[0]=$=>_("click",$))}),{default:i(()=>[C(z,{url:m.value&&p.value?a.avatarImage:void 0,iconClass:m.value&&!p.value?a.avatarImage:void 0,user:a.user,displayName:a.displayName,size:a.size-a.margin*2,style:L(h.value),disableTooltip:"",disableMenu:"",hideStatus:!a.showUserStatus,class:"user-bubble__avatar"},null,8,["url","iconClass","user","displayName","size","style","hideStatus"]),M("span",q,j(a.displayName||a.user),1),a.$slots.name?(l(),g("span",A,[o(a.$slots,"name",{},void 0,!0)])):D("",!0)]),_:2},1040,["class","style","to","href"]))]),default:i(()=>[o(a.$slots,"default",{},void 0,!0)]),_:3},40,["shown"]))}}),K=y(E,[["__scopeId","data-v-9189d023"]]);export{K as N};
//# sourceMappingURL=NcUserBubble-BE6yD-R0-BVT_gW8E.chunk.mjs.map
import{R as U}from"./mdi-BUoBIgaz.chunk.mjs";import{N as z}from"./NcAvatar-ruClKRzS-C0OkDCcs.chunk.mjs";import{y as R}from"./NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs";import{_ as y}from"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import{b as k,z as x,n as S,o as l,c,w as i,i as o,P as b,m as B,k as C,R as L,g as M,t as j,f as g,h as D,C as f,D as s,aj as H}from"./preload-helper-DoJVKVMq.chunk.mjs";const P={};function T(r,n){return l(),g("div",null,[o(r.$slots,"trigger")])}const W=y(P,[["render",T]]),q={class:"user-bubble__name"},A={key:0,class:"user-bubble__secondary"},E=k({__name:"NcUserBubble",props:f({avatarImage:{default:void 0},user:{default:void 0},displayName:{default:void 0},showUserStatus:{type:Boolean},url:{default:void 0},to:{default:void 0},primary:{type:Boolean},size:{default:20},margin:{default:2}},{open:{type:Boolean},openModifiers:{}}),emits:f(["click"],["update:open"]),setup(r,{emit:n}){const d=x(r,"open"),e=r,_=n,p=s(()=>{if(!e.avatarImage)return!1;try{return!!new URL(e.avatarImage)}catch{return!1}}),m=s(()=>!!e.avatarImage),h=s(()=>({marginInlineStart:`${e.margin}px`})),v=s(()=>{if(!e.url||e.url.trim()==="")return!1;try{return!!new URL(e.url,e.url?.startsWith?.("/")?window.location.href:void 0)}catch{return H("[NcUserBubble] Invalid URL passed",{url:e.url}),!1}}),w=s(()=>v.value?e.url:void 0),N=s(()=>v.value?"a":e.to?U:"div"),I=s(()=>({height:`${e.size}px`,lineHeight:`${e.size}px`,borderRadius:`${e.size/2}px`}));return S([()=>e.displayName,()=>e.user],()=>{!e.displayName&&e.user}),(a,t)=>(l(),c(b(a.$slots.default?R:W),{shown:d.value,"onUpdate:shown":t[1]||(t[1]=u=>d.value=u),class:"user-bubble__wrapper",trigger:"hover focus"},{trigger:i(({attrs:u})=>[(l(),c(b(N.value),B({class:["user-bubble__content",{"user-bubble__content--primary":a.primary}],style:I.value,to:a.to,href:w.value},u,{onClick:t[0]||(t[0]=$=>_("click",$))}),{default:i(()=>[C(z,{url:m.value&&p.value?a.avatarImage:void 0,iconClass:m.value&&!p.value?a.avatarImage:void 0,user:a.user,displayName:a.displayName,size:a.size-a.margin*2,style:L(h.value),disableTooltip:"",disableMenu:"",hideStatus:!a.showUserStatus,class:"user-bubble__avatar"},null,8,["url","iconClass","user","displayName","size","style","hideStatus"]),M("span",q,j(a.displayName||a.user),1),a.$slots.name?(l(),g("span",A,[o(a.$slots,"name",{},void 0,!0)])):D("",!0)]),_:2},1040,["class","style","to","href"]))]),default:i(()=>[o(a.$slots,"default",{},void 0,!0)]),_:3},40,["shown"]))}}),K=y(E,[["__scopeId","data-v-9189d023"]]);export{K as N};
//# sourceMappingURL=NcUserBubble-BE6yD-R0-aMsD0K5b.chunk.mjs.map

View file

@ -1,4 +1,4 @@
import{c as p}from"./index-ClciYKp3.chunk.mjs";import{g as T}from"./public-CvthP4YJ.chunk.mjs";import{c as g}from"./index-Bp9-GhMo.chunk.mjs";import{r as l,f as h,g as q,_ as w,b as s}from"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import{l as f}from"./mdi-BUoBIgaz.chunk.mjs";import{b as x,z as m,n as b,o as y,f as D,F as B,h as I,C as S,D as o}from"./preload-helper-DoJVKVMq.chunk.mjs";const P=`<!--
import{c as p}from"./index-CzqMHoWC.chunk.mjs";import{g as T}from"./public-CvthP4YJ.chunk.mjs";import{c as g}from"./index-Bp9-GhMo.chunk.mjs";import{r as l,f as h,g as q,_ as w,b as s}from"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import{l as f}from"./mdi-BUoBIgaz.chunk.mjs";import{b as x,z as m,n as b,o as y,f as D,F as B,h as I,C as S,D as o}from"./preload-helper-DoJVKVMq.chunk.mjs";const P=`<!--
- SPDX-FileCopyrightText: 2020 Google Inc.
- SPDX-License-Identifier: Apache-2.0
-->
@ -44,4 +44,4 @@ import{c as p}from"./index-ClciYKp3.chunk.mjs";import{g as T}from"./public-CvthP
d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/>
</svg>
`;l(h),l(q);function C(a){switch(a){case"away":return s("away");case"busy":return s("busy");case"dnd":return s("do not disturb");case"online":return s("online");case"invisible":return s("invisible");case"offline":return s("offline");default:return a}}const L=["aria-hidden","aria-label","innerHTML"],_=x({__name:"NcUserStatusIcon",props:S({user:{default:void 0},ariaHidden:{type:[Boolean,String],default:!1}},{status:{},statusModifiers:{}}),emits:["update:status"],setup(a){const e=m(a,"status"),i=a,c=o(()=>e.value&&["invisible","offline"].includes(e.value)),n=o(()=>e.value&&(!i.ariaHidden||i.ariaHidden==="false")?s("User status: {status}",{status:C(e.value)}):void 0);b(()=>i.user,async r=>{if(!e.value&&r&&T()?.user_status?.enabled)try{const{data:t}=await p.get(g("/apps/user_status/api/v1/statuses/{user}",{user:r}));e.value=t.ocs?.data?.status}catch(t){f.debug("Error while fetching user status",{error:t})}},{immediate:!0});const v={online:M,away:P,busy:X,dnd:Z,invisible:u,offline:u},d=o(()=>e.value&&v[e.value]);return(r,t)=>e.value?(y(),D("span",{key:0,class:B(["user-status-icon",{"user-status-icon--invisible":c.value}]),"aria-hidden":!n.value||void 0,"aria-label":n.value,role:"img",innerHTML:d.value},null,10,L)):I("",!0)}}),k=w(_,[["__scopeId","data-v-881a79fb"]]);export{k as N,C as g};
//# sourceMappingURL=NcUserStatusIcon-JWiuiAXe-BJYvYIQF.chunk.mjs.map
//# sourceMappingURL=NcUserStatusIcon-JWiuiAXe-RsQTD2PO.chunk.mjs.map

View file

@ -1,2 +1,2 @@
import{c as d}from"./index-ClciYKp3.chunk.mjs";import{b as h,c as m,d as C}from"./index-Bp9-GhMo.chunk.mjs";import{A as _,N as I}from"./mdi-BUoBIgaz.chunk.mjs";import{N as S}from"./NcEmptyContent-CDgWCt_m-MnlDvtO9.chunk.mjs";import{N as U}from"./NcSelect-B1uITk_3-D769WsNG.chunk.mjs";import{A as R,l as g}from"./logger-CCXn6sb0.chunk.mjs";import{_ as A}from"./public-CvthP4YJ.chunk.mjs";import{r as s,o as b,f as O,g as a,t as f,k as c,w as u,j as y,c as x,h as T}from"./preload-helper-DoJVKVMq.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import"./NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs";import"./Web-rJva_rmF.chunk.mjs";const $={name:"ProfilesCustomPicker",components:{NcSelect:U,NcButton:I,NcEmptyContent:S,AccountOutline:R,ArrowRightIcon:_},props:{providerId:{type:String,required:!0},accessible:{type:Boolean,default:!1}},emits:["submit"],data(){return{searchQuery:"",loading:!1,resultUrl:null,reference:null,profiles:[],selectedProfile:null,abortController:null}},computed:{options(){return this.searchQuery!==""?this.profiles:[]},noResultText(){return this.loading?t("profile","Searching …"):t("profile","Not found")}},mounted(){this.focusOnInput()},methods:{focusOnInput(){this.$nextTick(()=>{this.$refs["profiles-search-input"].$el.getElementsByTagName("input")[0]?.focus()})},async searchForProfile(e){e.trim()===""||e.trim().length<3||(this.searchQuery=e.trim(),this.loading=!0,await this.debounceFindProfiles(e))},debounceFindProfiles:C(function(...e){this.findProfiles(...e)},300),async findProfiles(e){const r=m("core/autocomplete/get?search={searchQuery}&itemType=%20&itemId=%20&shareTypes[]=0&limit=20",{searchQuery:e});try{const n=await d.get(r);this.profiles=n.data.ocs.data.map(i=>({user:i.id,displayName:i.label,icon:i.icon,subtitle:i.subline,isNoUser:i.source.startsWith("users")}))}catch(n){g.error("profile_picker: error while searching for users",{error:n})}finally{this.loading=!1}},submit(){this.resultUrl=window.location.origin+h(`/u/${this.selectedProfile.user.trim().toLowerCase()}`,null,{noRewrite:!0}),this.$emit("submit",this.resultUrl),this.$el.dispatchEvent(new CustomEvent("submit",{detail:this.resultUrl,bubbles:!0}))},async resolveResult(e){this.loading=!0,this.abortController=new AbortController,this.selectedProfile=e,this.resultUrl=window.location.origin+h(`/u/${this.selectedProfile.user.trim().toLowerCase()}`,null,{noRewrite:!0});try{const r=await d.get(m("references/resolve",2)+"?reference="+encodeURIComponent(this.resultUrl),{signal:this.abortController.signal});this.reference=r.data.ocs.data.references[this.resultUrl]}catch(r){g.error("profile_picker: error resolving the user profile link",{error:r})}finally{this.loading=!1}},clearSelection(){this.selectedProfile=null,this.resultUrl=null,this.reference=null}}},B={class:"profile-picker"},E={class:"profile-picker__heading"},Q={class:"input-wrapper"},F={class:"profile-picker__footer"};function V(e,r,n,i,o,l){const w=s("NcSelect"),P=s("AccountOutline"),k=s("NcEmptyContent"),N=s("ArrowRightIcon"),v=s("NcButton");return b(),O("div",B,[a("div",E,[a("h2",null,f(e.t("profile","Profile picker")),1),a("div",Q,[c(w,{ref:"profiles-search-input",modelValue:o.selectedProfile,"onUpdate:modelValue":r[0]||(r[0]=p=>o.selectedProfile=p),inputId:"profiles-search",loading:o.loading,filterable:!1,placeholder:e.t("profile","Search for a user profile"),clearSearchOnBlur:()=>!1,multiple:!1,options:l.options,label:"displayName",onSearch:l.searchForProfile,"onOption:selecting":l.resolveResult},{"no-options":u(({search:p})=>[y(f(p?l.noResultText:e.t("profile","Search for a user profile. Start typing")),1)]),_:1},8,["modelValue","loading","placeholder","options","onSearch","onOption:selecting"])]),c(k,{class:"empty-content"},{icon:u(()=>[c(P,{size:20})]),_:1})]),a("div",F,[o.selectedProfile!==null?(b(),x(v,{key:0,variant:"primary","aria-label":e.t("profile","Insert selected user profile link"),disabled:o.loading||o.selectedProfile===null,onClick:l.submit},{icon:u(()=>[c(N)]),default:u(()=>[y(f(e.t("profile","Insert"))+" ",1)]),_:1},8,["aria-label","disabled","onClick"])):T("",!0)])])}const Z=A($,[["render",V],["__scopeId","data-v-5dbe4c82"]]);export{Z as default};
//# sourceMappingURL=ProfilesCustomPicker-D15-Kf4I.chunk.mjs.map
import{c as d}from"./index-CzqMHoWC.chunk.mjs";import{b as h,c as m,d as C}from"./index-Bp9-GhMo.chunk.mjs";import{A as _,N as I}from"./mdi-BUoBIgaz.chunk.mjs";import{N as S}from"./NcEmptyContent-CDgWCt_m-MnlDvtO9.chunk.mjs";import{N as U}from"./NcSelect-B1uITk_3-D769WsNG.chunk.mjs";import{A as R,l as g}from"./logger-CCXn6sb0.chunk.mjs";import{_ as A}from"./public-CvthP4YJ.chunk.mjs";import{r as s,o as b,f as O,g as a,t as f,k as c,w as u,j as y,c as x,h as T}from"./preload-helper-DoJVKVMq.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import"./NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs";import"./Web-rJva_rmF.chunk.mjs";const $={name:"ProfilesCustomPicker",components:{NcSelect:U,NcButton:I,NcEmptyContent:S,AccountOutline:R,ArrowRightIcon:_},props:{providerId:{type:String,required:!0},accessible:{type:Boolean,default:!1}},emits:["submit"],data(){return{searchQuery:"",loading:!1,resultUrl:null,reference:null,profiles:[],selectedProfile:null,abortController:null}},computed:{options(){return this.searchQuery!==""?this.profiles:[]},noResultText(){return this.loading?t("profile","Searching …"):t("profile","Not found")}},mounted(){this.focusOnInput()},methods:{focusOnInput(){this.$nextTick(()=>{this.$refs["profiles-search-input"].$el.getElementsByTagName("input")[0]?.focus()})},async searchForProfile(e){e.trim()===""||e.trim().length<3||(this.searchQuery=e.trim(),this.loading=!0,await this.debounceFindProfiles(e))},debounceFindProfiles:C(function(...e){this.findProfiles(...e)},300),async findProfiles(e){const r=m("core/autocomplete/get?search={searchQuery}&itemType=%20&itemId=%20&shareTypes[]=0&limit=20",{searchQuery:e});try{const n=await d.get(r);this.profiles=n.data.ocs.data.map(i=>({user:i.id,displayName:i.label,icon:i.icon,subtitle:i.subline,isNoUser:i.source.startsWith("users")}))}catch(n){g.error("profile_picker: error while searching for users",{error:n})}finally{this.loading=!1}},submit(){this.resultUrl=window.location.origin+h(`/u/${this.selectedProfile.user.trim().toLowerCase()}`,null,{noRewrite:!0}),this.$emit("submit",this.resultUrl),this.$el.dispatchEvent(new CustomEvent("submit",{detail:this.resultUrl,bubbles:!0}))},async resolveResult(e){this.loading=!0,this.abortController=new AbortController,this.selectedProfile=e,this.resultUrl=window.location.origin+h(`/u/${this.selectedProfile.user.trim().toLowerCase()}`,null,{noRewrite:!0});try{const r=await d.get(m("references/resolve",2)+"?reference="+encodeURIComponent(this.resultUrl),{signal:this.abortController.signal});this.reference=r.data.ocs.data.references[this.resultUrl]}catch(r){g.error("profile_picker: error resolving the user profile link",{error:r})}finally{this.loading=!1}},clearSelection(){this.selectedProfile=null,this.resultUrl=null,this.reference=null}}},B={class:"profile-picker"},E={class:"profile-picker__heading"},Q={class:"input-wrapper"},F={class:"profile-picker__footer"};function V(e,r,n,i,o,l){const w=s("NcSelect"),P=s("AccountOutline"),k=s("NcEmptyContent"),N=s("ArrowRightIcon"),v=s("NcButton");return b(),O("div",B,[a("div",E,[a("h2",null,f(e.t("profile","Profile picker")),1),a("div",Q,[c(w,{ref:"profiles-search-input",modelValue:o.selectedProfile,"onUpdate:modelValue":r[0]||(r[0]=p=>o.selectedProfile=p),inputId:"profiles-search",loading:o.loading,filterable:!1,placeholder:e.t("profile","Search for a user profile"),clearSearchOnBlur:()=>!1,multiple:!1,options:l.options,label:"displayName",onSearch:l.searchForProfile,"onOption:selecting":l.resolveResult},{"no-options":u(({search:p})=>[y(f(p?l.noResultText:e.t("profile","Search for a user profile. Start typing")),1)]),_:1},8,["modelValue","loading","placeholder","options","onSearch","onOption:selecting"])]),c(k,{class:"empty-content"},{icon:u(()=>[c(P,{size:20})]),_:1})]),a("div",F,[o.selectedProfile!==null?(b(),x(v,{key:0,variant:"primary","aria-label":e.t("profile","Insert selected user profile link"),disabled:o.loading||o.selectedProfile===null,onClick:l.submit},{icon:u(()=>[c(N)]),default:u(()=>[y(f(e.t("profile","Insert"))+" ",1)]),_:1},8,["aria-label","disabled","onClick"])):T("",!0)])])}const Z=A($,[["render",V],["__scopeId","data-v-5dbe4c82"]]);export{Z as default};
//# sourceMappingURL=ProfilesCustomPicker-Bb1SF-6b.chunk.mjs.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import{c as u}from"./index-ClciYKp3.chunk.mjs";import{g as y,f as c,c as f}from"./index-Bp9-GhMo.chunk.mjs";import{t as o}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{c as h}from"./index-8DHsl0up.chunk.mjs";import{g as b}from"./dav-B4SnxxuE.chunk.mjs";const r=y().setApp("systemtags").detectUser().build(),O={userVisible:!0,userAssignable:!0,canAssign:!0},x=Object.freeze({"display-name":"displayName","user-visible":"userVisible","user-assignable":"userAssignable","can-assign":"canAssign"});function p(t){return t.map(({props:s})=>Object.fromEntries(Object.entries(s).map(([e,a])=>(e=x[e]??e,a=e==="displayName"?String(a):a,[e,a]))))}function w(t){const s=t.indexOf("?");s>0&&(t=t.substring(0,s));const e=t.split("/");let a;do a=e[e.length-1],e.pop();while(!a&&e.length>0);return Number(a)}function v(t){if("name"in t&&!("displayName"in t))return{...t};const s={...t};return s.name=s.displayName,delete s.displayName,s}function V(t){const s=t.attributes?.["system-tags"]?.["system-tag"];return s===void 0?[]:[s].flat().map(e=>typeof e=="string"?e:e.text)}function N(t,s){t.attributes["system-tags"]={"system-tag":s},c("files:node:updated",t)}const n=b(),l=`<?xml version="1.0"?>
import{c as u}from"./index-CzqMHoWC.chunk.mjs";import{g as y,f as c,c as f}from"./index-Bp9-GhMo.chunk.mjs";import{t as o}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{c as h}from"./index-40yxvI8X.chunk.mjs";import{g as b}from"./dav-B4SnxxuE.chunk.mjs";const r=y().setApp("systemtags").detectUser().build(),O={userVisible:!0,userAssignable:!0,canAssign:!0},x=Object.freeze({"display-name":"displayName","user-visible":"userVisible","user-assignable":"userAssignable","can-assign":"canAssign"});function p(t){return t.map(({props:s})=>Object.fromEntries(Object.entries(s).map(([e,a])=>(e=x[e]??e,a=e==="displayName"?String(a):a,[e,a]))))}function w(t){const s=t.indexOf("?");s>0&&(t=t.substring(0,s));const e=t.split("/");let a;do a=e[e.length-1],e.pop();while(!a&&e.length>0);return Number(a)}function v(t){if("name"in t&&!("displayName"in t))return{...t};const s={...t};return s.name=s.displayName,delete s.displayName,s}function V(t){const s=t.attributes?.["system-tags"]?.["system-tag"];return s===void 0?[]:[s].flat().map(e=>typeof e=="string"?e:e.text)}function N(t,s){t.attributes["system-tags"]={"system-tag":s},c("files:node:updated",t)}const n=b(),l=`<?xml version="1.0"?>
<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
<d:prop>
<oc:id />
@ -40,4 +40,4 @@ import{c as u}from"./index-ClciYKp3.chunk.mjs";import{g as y,f as c,c as f}from"
</d:prop>
</d:remove>
</d:propertyupdate>`),await n.customRequest(i,{method:"PROPPATCH",data:d,headers:{"if-match":a}})}async function k(t){const s=t?"1":"0",e=f("/apps/provisioning_api/api/v1/config/apps/{appId}/{key}",{appId:"systemtags",key:"restrict_creation_to_admin"});await h();const{data:a}=await u.post(e,{value:s});return a}export{T as a,k as b,C as c,O as d,V as e,P as f,_ as g,N as h,D as i,r as l,q as s,R as u};
//# sourceMappingURL=api-DTPVu_Rq.chunk.mjs.map
//# sourceMappingURL=api-BSMxiHS5.chunk.mjs.map

File diff suppressed because one or more lines are too long

View file

@ -1,2 +1,2 @@
import{l as o}from"./activity-DdSAHrqw.chunk.mjs";import{a as m,t as s}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{c as n}from"./pinia-BrO7AuLF.chunk.mjs";import{e as r}from"./preload-helper-DoJVKVMq.chunk.mjs";import{C as a}from"./FilesSidebarTab-DjFYKtGP.chunk.mjs";import"./index-Bp9-GhMo.chunk.mjs";import"./public-CvthP4YJ.chunk.mjs";import"./index-C1xmmKTZ-CmvjJKkk.chunk.mjs";import"./NcDialog-nDc1gW50-CpnK8gUQ.chunk.mjs";import"./NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs";import"./mdi-BUoBIgaz.chunk.mjs";import"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import"./Web-rJva_rmF.chunk.mjs";import"./TrashCanOutline-D66Xz3gd.chunk.mjs";import"./NcAvatar-ruClKRzS-D00PbCEA.chunk.mjs";import"./index-ClciYKp3.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./colors-BfjxNgsx-Dyl_2CuU.chunk.mjs";import"./NcUserStatusIcon-JWiuiAXe-BJYvYIQF.chunk.mjs";import"./PencilOutline-BzoFsBsK.chunk.mjs";import"./NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-L27IwP9h.chunk.mjs";import"./NcEmptyContent-CDgWCt_m-MnlDvtO9.chunk.mjs";import"./CommentView-CB2dr6mD.chunk.mjs";/* empty css */import"./NcUserBubble-BE6yD-R0-BVT_gW8E.chunk.mjs";import"./GetComments-DHvGzfol.chunk.mjs";import"./index-BDmvh1Np.chunk.mjs";class e{app;instance;constructor(t="files",i={}){const p=n();this.app=r(a,{...i.propsData??{},...i.props??{},resourceType:t}),this.app.mixin({data(){return{logger:o}},methods:{t:s,n:m}}),this.app.use(p),i.el&&(this.instance=this.app.mount(i.el))}$mount(t){this.instance&&this.app.unmount(),this.instance=this.app.mount(t)}$unmount(){this.app.unmount(),this.instance=void 0}update(t){this.instance&&this.instance.update(t)}}window.OCA&&!window.OCA.Comments&&Object.assign(window.OCA,{Comments:{}}),Object.assign(window.OCA.Comments,{View:e}),o.debug("OCA.Comments.View initialized");
import{l as o}from"./activity-DdSAHrqw.chunk.mjs";import{a as m,t as s}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{c as n}from"./pinia-BrO7AuLF.chunk.mjs";import{e as r}from"./preload-helper-DoJVKVMq.chunk.mjs";import{C as a}from"./FilesSidebarTab-7Od1VwNN.chunk.mjs";import"./index-Bp9-GhMo.chunk.mjs";import"./public-CvthP4YJ.chunk.mjs";import"./index-C1xmmKTZ-B9NwkrZ2.chunk.mjs";import"./NcDialog-nDc1gW50-CpnK8gUQ.chunk.mjs";import"./NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs";import"./mdi-BUoBIgaz.chunk.mjs";import"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import"./Web-rJva_rmF.chunk.mjs";import"./TrashCanOutline-D66Xz3gd.chunk.mjs";import"./NcAvatar-ruClKRzS-C0OkDCcs.chunk.mjs";import"./index-CzqMHoWC.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./colors-BfjxNgsx-Dyl_2CuU.chunk.mjs";import"./NcUserStatusIcon-JWiuiAXe-RsQTD2PO.chunk.mjs";import"./PencilOutline-BzoFsBsK.chunk.mjs";import"./NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-L27IwP9h.chunk.mjs";import"./NcEmptyContent-CDgWCt_m-MnlDvtO9.chunk.mjs";import"./CommentView-BP3FygMe.chunk.mjs";/* empty css */import"./NcUserBubble-BE6yD-R0-aMsD0K5b.chunk.mjs";import"./GetComments-DHvGzfol.chunk.mjs";import"./index-BDmvh1Np.chunk.mjs";class e{app;instance;constructor(t="files",i={}){const p=n();this.app=r(a,{...i.propsData??{},...i.props??{},resourceType:t}),this.app.mixin({data(){return{logger:o}},methods:{t:s,n:m}}),this.app.use(p),i.el&&(this.instance=this.app.mount(i.el))}$mount(t){this.instance&&this.app.unmount(),this.instance=this.app.mount(t)}$unmount(){this.app.unmount(),this.instance=void 0}update(t){this.instance&&this.instance.update(t)}}window.OCA&&!window.OCA.Comments&&Object.assign(window.OCA,{Comments:{}}),Object.assign(window.OCA.Comments,{View:e}),o.debug("OCA.Comments.View initialized");
//# sourceMappingURL=comments-comments-app.mjs.map

View file

@ -1,3 +1,3 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('', '', 'dist/ActivityCommentAction-C25glnNg.chunk.mjs'),window.OC.filePath('', '', 'dist/index-C1xmmKTZ-CmvjJKkk.chunk.mjs'),window.OC.filePath('', '', 'dist/preload-helper-DoJVKVMq.chunk.mjs'),window.OC.filePath('', '', 'dist/NcDialog-nDc1gW50-CpnK8gUQ.chunk.mjs'),window.OC.filePath('', '', 'dist/NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs'),window.OC.filePath('', '', 'dist/mdi-BUoBIgaz.chunk.mjs'),window.OC.filePath('', '', 'dist/NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs'),window.OC.filePath('', '', 'dist/translation-DoG5ZELJ-DJHEP2RB.chunk.mjs'),window.OC.filePath('', '', 'dist/index-Bp9-GhMo.chunk.mjs'),window.OC.filePath('', '', 'dist/NcIconSvgWrapper-De-2-ukl-C_oBIsvc.chunk.css'),window.OC.filePath('', '', 'dist/public-CvthP4YJ.chunk.mjs'),window.OC.filePath('', '', 'dist/mdi-D7L4ZBkR.chunk.css'),window.OC.filePath('', '', 'dist/NcModal-kyWZ3UFC-DgqchLjq.chunk.css'),window.OC.filePath('', '', 'dist/Web-rJva_rmF.chunk.mjs'),window.OC.filePath('', '', 'dist/Web-BYHcrfvW.chunk.css'),window.OC.filePath('', '', 'dist/NcDialog-nDc1gW50-DYA_tnKg.chunk.css'),window.OC.filePath('', '', 'dist/TrashCanOutline-D66Xz3gd.chunk.mjs'),window.OC.filePath('', '', 'dist/TrashCanOutline-Jq77EThs.chunk.css'),window.OC.filePath('', '', 'dist/CommentView-CB2dr6mD.chunk.mjs'),window.OC.filePath('', '', 'dist/pinia-BrO7AuLF.chunk.mjs'),window.OC.filePath('', '', 'dist/PencilOutline-BzoFsBsK.chunk.mjs'),window.OC.filePath('', '', 'dist/PencilOutline-DdQinVMt.chunk.css'),window.OC.filePath('', '', 'dist/NcAvatar-ruClKRzS-D00PbCEA.chunk.mjs'),window.OC.filePath('', '', 'dist/index-ClciYKp3.chunk.mjs'),window.OC.filePath('', '', 'dist/util-Caafb9Jl.chunk.mjs'),window.OC.filePath('', '', 'dist/colors-BfjxNgsx-Dyl_2CuU.chunk.mjs'),window.OC.filePath('', '', 'dist/NcUserStatusIcon-JWiuiAXe-BJYvYIQF.chunk.mjs'),window.OC.filePath('', '', 'dist/NcUserStatusIcon-JWiuiAXe-Bq_6hmXG.chunk.css'),window.OC.filePath('', '', 'dist/NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-L27IwP9h.chunk.mjs'),window.OC.filePath('', '', 'dist/NcDateTime-DS-ziNw6.chunk.css'),window.OC.filePath('', '', 'dist/NcAvatar-ruClKRzS-CVm1ngoc.chunk.css'),window.OC.filePath('', '', 'dist/NcUserBubble-BE6yD-R0-BVT_gW8E.chunk.mjs'),window.OC.filePath('', '', 'dist/NcUserBubble-BE6yD-R0-f2DD9EAL.chunk.css'),window.OC.filePath('', '', 'dist/activity-DdSAHrqw.chunk.mjs'),window.OC.filePath('', '', 'dist/GetComments-DHvGzfol.chunk.mjs'),window.OC.filePath('', '', 'dist/index-BDmvh1Np.chunk.mjs'),window.OC.filePath('', '', 'dist/CommentView-D9eoYnuL.chunk.css'),window.OC.filePath('', '', 'dist/NcActionSeparator-Ct2RnclR-pXJ_-D_I.chunk.css'),window.OC.filePath('', '', 'dist/comments-ActivityCommentAction-D5Q48MrJ.chunk.css'),window.OC.filePath('', '', 'dist/ActivityCommentEntry-Cwz_brC_.chunk.mjs'),window.OC.filePath('', '', 'dist/comments-ActivityCommentEntry-CVfnMLz5.chunk.css'),window.OC.filePath('', '', 'dist/FilesSidebarTab-DjFYKtGP.chunk.mjs'),window.OC.filePath('', '', 'dist/NcEmptyContent-CDgWCt_m-MnlDvtO9.chunk.mjs'),window.OC.filePath('', '', 'dist/NcEmptyContent-CDgWCt_m-DoZPzs7J.chunk.css'),window.OC.filePath('', '', 'dist/FilesSidebarTab-D1FhhmK6.chunk.css')])))=>i.map(i=>d[i]);
import{_ as m,e as c,d as w}from"./preload-helper-DoJVKVMq.chunk.mjs";import{r as _}from"./index-DMw01uN3.chunk.mjs";import{t as g}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{c as l}from"./pinia-BrO7AuLF.chunk.mjs";import{l as r,i as A}from"./activity-DdSAHrqw.chunk.mjs";import{g as v}from"./GetComments-DHvGzfol.chunk.mjs";import"./folder-29HuacU_-GslSi8fz.chunk.mjs";import"./index-Bp9-GhMo.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./public-CvthP4YJ.chunk.mjs";import"./index-BDmvh1Np.chunk.mjs";const y='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-message-reply-text" viewBox="0 0 24 24"><path d="M18,8H6V6H18V8M18,11H6V9H18V11M18,14H6V12H18V14M22,4A2,2 0 0,0 20,2H4A2,2 0 0,0 2,4V16A2,2 0 0,0 4,18H18L22,22V4Z" /></svg>';function V(){let o;window.OCA.Activity.registerSidebarAction({mount:async(t,{node:e,reload:i})=>{const a=l();if(!o){const{default:s}=await m(async()=>{const{default:n}=await import("./ActivityCommentAction-C25glnNg.chunk.mjs");return{default:n}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38]),import.meta.url);o=c(s,{reloadCallback:i,resourceId:e.fileid})}o.use(a),o.mount(t),r.info("Comments plugin mounted in Activity sidebar action",{node:e})},unmount:()=>{o?.unmount()}}),window.OCA.Activity.registerSidebarEntries(async({node:t,limit:e,offset:i})=>{const{data:a}=await v({resourceType:"files",resourceId:t.fileid},{limit:e,offset:i??0});r.debug("Loaded comments",{node:t,comments:a});const{default:s}=await m(async()=>{const{default:n}=await import("./ActivityCommentEntry-Cwz_brC_.chunk.mjs");return{default:n}},__vite__mapDeps([39,7,8,18,2,19,20,5,6,9,10,11,4,12,21,22,23,24,25,26,27,28,29,13,14,30,31,32,16,17,1,3,15,33,34,35,36,37,40]),import.meta.url);return a.map(n=>({_CommentsViewInstance:void 0,timestamp:Date.parse(n.props?.creationDateTime??""),mount(f,{reload:p}){const d=c(s,{comment:n,resourceId:t.fileid,reloadCallback:p});d.mount(f),this._CommentsViewInstance=d},unmount(){this._CommentsViewInstance?.unmount()}}))}),window.OCA.Activity.registerSidebarFilter(t=>t.type!=="comments"),r.info("Comments plugin registered for Activity sidebar action")}const u="comments_files-sidebar-tab";A()?window.addEventListener("DOMContentLoaded",function(){V()}):_({id:"comments",displayName:g("comments","Comments"),iconSvgInline:y,order:50,tagName:u,async onInit(){const{default:o}=await m(async()=>{const{default:e}=await import("./FilesSidebarTab-DjFYKtGP.chunk.mjs").then(i=>i.F);return{default:e}},__vite__mapDeps([41,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,22,23,24,25,26,27,20,21,28,29,30,42,43,18,19,31,32,33,34,35,36,37,44]),import.meta.url),t=w(o,{configureApp(e){const i=l();e.use(i)},shadowRoot:!1});window.customElements.define(u,t)}});
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('', '', 'dist/ActivityCommentAction-Cn4TtwWo.chunk.mjs'),window.OC.filePath('', '', 'dist/index-C1xmmKTZ-B9NwkrZ2.chunk.mjs'),window.OC.filePath('', '', 'dist/preload-helper-DoJVKVMq.chunk.mjs'),window.OC.filePath('', '', 'dist/NcDialog-nDc1gW50-CpnK8gUQ.chunk.mjs'),window.OC.filePath('', '', 'dist/NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs'),window.OC.filePath('', '', 'dist/mdi-BUoBIgaz.chunk.mjs'),window.OC.filePath('', '', 'dist/NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs'),window.OC.filePath('', '', 'dist/translation-DoG5ZELJ-DJHEP2RB.chunk.mjs'),window.OC.filePath('', '', 'dist/index-Bp9-GhMo.chunk.mjs'),window.OC.filePath('', '', 'dist/NcIconSvgWrapper-De-2-ukl-C_oBIsvc.chunk.css'),window.OC.filePath('', '', 'dist/public-CvthP4YJ.chunk.mjs'),window.OC.filePath('', '', 'dist/mdi-D7L4ZBkR.chunk.css'),window.OC.filePath('', '', 'dist/NcModal-kyWZ3UFC-DgqchLjq.chunk.css'),window.OC.filePath('', '', 'dist/Web-rJva_rmF.chunk.mjs'),window.OC.filePath('', '', 'dist/Web-BYHcrfvW.chunk.css'),window.OC.filePath('', '', 'dist/NcDialog-nDc1gW50-DYA_tnKg.chunk.css'),window.OC.filePath('', '', 'dist/TrashCanOutline-D66Xz3gd.chunk.mjs'),window.OC.filePath('', '', 'dist/TrashCanOutline-Jq77EThs.chunk.css'),window.OC.filePath('', '', 'dist/CommentView-BP3FygMe.chunk.mjs'),window.OC.filePath('', '', 'dist/pinia-BrO7AuLF.chunk.mjs'),window.OC.filePath('', '', 'dist/PencilOutline-BzoFsBsK.chunk.mjs'),window.OC.filePath('', '', 'dist/PencilOutline-DdQinVMt.chunk.css'),window.OC.filePath('', '', 'dist/NcAvatar-ruClKRzS-C0OkDCcs.chunk.mjs'),window.OC.filePath('', '', 'dist/index-CzqMHoWC.chunk.mjs'),window.OC.filePath('', '', 'dist/util-Caafb9Jl.chunk.mjs'),window.OC.filePath('', '', 'dist/colors-BfjxNgsx-Dyl_2CuU.chunk.mjs'),window.OC.filePath('', '', 'dist/NcUserStatusIcon-JWiuiAXe-RsQTD2PO.chunk.mjs'),window.OC.filePath('', '', 'dist/NcUserStatusIcon-JWiuiAXe-Bq_6hmXG.chunk.css'),window.OC.filePath('', '', 'dist/NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-L27IwP9h.chunk.mjs'),window.OC.filePath('', '', 'dist/NcDateTime-DS-ziNw6.chunk.css'),window.OC.filePath('', '', 'dist/NcAvatar-ruClKRzS-CVm1ngoc.chunk.css'),window.OC.filePath('', '', 'dist/NcUserBubble-BE6yD-R0-aMsD0K5b.chunk.mjs'),window.OC.filePath('', '', 'dist/NcUserBubble-BE6yD-R0-f2DD9EAL.chunk.css'),window.OC.filePath('', '', 'dist/activity-DdSAHrqw.chunk.mjs'),window.OC.filePath('', '', 'dist/GetComments-DHvGzfol.chunk.mjs'),window.OC.filePath('', '', 'dist/index-BDmvh1Np.chunk.mjs'),window.OC.filePath('', '', 'dist/CommentView-D9eoYnuL.chunk.css'),window.OC.filePath('', '', 'dist/NcActionSeparator-Ct2RnclR-pXJ_-D_I.chunk.css'),window.OC.filePath('', '', 'dist/comments-ActivityCommentAction-D5Q48MrJ.chunk.css'),window.OC.filePath('', '', 'dist/ActivityCommentEntry-ftYt6e9Q.chunk.mjs'),window.OC.filePath('', '', 'dist/comments-ActivityCommentEntry-CVfnMLz5.chunk.css'),window.OC.filePath('', '', 'dist/FilesSidebarTab-7Od1VwNN.chunk.mjs'),window.OC.filePath('', '', 'dist/NcEmptyContent-CDgWCt_m-MnlDvtO9.chunk.mjs'),window.OC.filePath('', '', 'dist/NcEmptyContent-CDgWCt_m-DoZPzs7J.chunk.css'),window.OC.filePath('', '', 'dist/FilesSidebarTab-D1FhhmK6.chunk.css')])))=>i.map(i=>d[i]);
import{_ as m,e as c,d as w}from"./preload-helper-DoJVKVMq.chunk.mjs";import{r as _}from"./index-DMw01uN3.chunk.mjs";import{t as g}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{c as l}from"./pinia-BrO7AuLF.chunk.mjs";import{l as r,i as A}from"./activity-DdSAHrqw.chunk.mjs";import{g as v}from"./GetComments-DHvGzfol.chunk.mjs";import"./folder-29HuacU_-GslSi8fz.chunk.mjs";import"./index-Bp9-GhMo.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./public-CvthP4YJ.chunk.mjs";import"./index-BDmvh1Np.chunk.mjs";const y='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-message-reply-text" viewBox="0 0 24 24"><path d="M18,8H6V6H18V8M18,11H6V9H18V11M18,14H6V12H18V14M22,4A2,2 0 0,0 20,2H4A2,2 0 0,0 2,4V16A2,2 0 0,0 4,18H18L22,22V4Z" /></svg>';function V(){let o;window.OCA.Activity.registerSidebarAction({mount:async(t,{node:e,reload:i})=>{const a=l();if(!o){const{default:s}=await m(async()=>{const{default:n}=await import("./ActivityCommentAction-Cn4TtwWo.chunk.mjs");return{default:n}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38]),import.meta.url);o=c(s,{reloadCallback:i,resourceId:e.fileid})}o.use(a),o.mount(t),r.info("Comments plugin mounted in Activity sidebar action",{node:e})},unmount:()=>{o?.unmount()}}),window.OCA.Activity.registerSidebarEntries(async({node:t,limit:e,offset:i})=>{const{data:a}=await v({resourceType:"files",resourceId:t.fileid},{limit:e,offset:i??0});r.debug("Loaded comments",{node:t,comments:a});const{default:s}=await m(async()=>{const{default:n}=await import("./ActivityCommentEntry-ftYt6e9Q.chunk.mjs");return{default:n}},__vite__mapDeps([39,7,8,18,2,19,20,5,6,9,10,11,4,12,21,22,23,24,25,26,27,28,29,13,14,30,31,32,16,17,1,3,15,33,34,35,36,37,40]),import.meta.url);return a.map(n=>({_CommentsViewInstance:void 0,timestamp:Date.parse(n.props?.creationDateTime??""),mount(f,{reload:p}){const d=c(s,{comment:n,resourceId:t.fileid,reloadCallback:p});d.mount(f),this._CommentsViewInstance=d},unmount(){this._CommentsViewInstance?.unmount()}}))}),window.OCA.Activity.registerSidebarFilter(t=>t.type!=="comments"),r.info("Comments plugin registered for Activity sidebar action")}const u="comments_files-sidebar-tab";A()?window.addEventListener("DOMContentLoaded",function(){V()}):_({id:"comments",displayName:g("comments","Comments"),iconSvgInline:y,order:50,tagName:u,async onInit(){const{default:o}=await m(async()=>{const{default:e}=await import("./FilesSidebarTab-7Od1VwNN.chunk.mjs").then(i=>i.F);return{default:e}},__vite__mapDeps([41,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,22,23,24,25,26,27,20,21,28,29,30,42,43,18,19,31,32,33,34,35,36,37,44]),import.meta.url),t=w(o,{configureApp(e){const i=l();e.use(i)},shadowRoot:!1});window.customElements.define(u,t)}});
//# sourceMappingURL=comments-comments-tab.mjs.map

View file

@ -1,2 +1,2 @@
import{r as v,o as y,c as g,w as l,g as n,k as m,j as c,t as r,e as b}from"./preload-helper-DoJVKVMq.chunk.mjs";import{c as R}from"./index-ClciYKp3.chunk.mjs";import{l as i,_ as E}from"./public-CvthP4YJ.chunk.mjs";import{t as p}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{b as C}from"./index-Bp9-GhMo.chunk.mjs";import{N as S}from"./NcCheckboxRadioSwitch-D0gFwEVl-CZhGfPiT.chunk.mjs";import{N as V}from"./ContentCopy-BZd-i-FC.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import"./Web-rJva_rmF.chunk.mjs";const h=i("dav","userSyncCalendarsDocUrl","#"),k={name:"CalDavSettings",components:{NcCheckboxRadioSwitch:S,NcSettingsSection:V},setup(){return{t:p}},data(){return{userSyncCalendarsDocUrl:h,sendInvitations:i("dav","sendInvitations"),generateBirthdayCalendar:i("dav","generateBirthdayCalendar"),sendEventReminders:i("dav","sendEventReminders"),sendEventRemindersToSharedUsers:i("dav","sendEventRemindersToSharedUsers"),sendEventRemindersPush:i("dav","sendEventRemindersPush")}},computed:{hint(){return p("dav","Also install the {calendarappstoreopen}Calendar app{linkclose}, or {calendardocopen}connect your desktop & mobile for syncing ↗{linkclose}.").replace("{calendarappstoreopen}",'<a target="_blank" href="../apps/office/calendar">').replace("{calendardocopen}",`<a target="_blank" href="${h}" rel="noreferrer noopener">`).replace(/\{linkclose\}/g,"</a>")},sendInvitationsHelpText(){return p("dav","Please make sure to properly set up {emailopen}the email server{linkclose}.").replace("{emailopen}",'<a href="../admin#mail_general_settings">').replace("{linkclose}","</a>")},sendEventRemindersHelpText(){return p("dav","Please make sure to properly set up {emailopen}the email server{linkclose}.").replace("{emailopen}",'<a href="../admin#mail_general_settings">').replace("{linkclose}","</a>")}},watch:{generateBirthdayCalendar(d){const e=d?"/apps/dav/enableBirthdayCalendar":"/apps/dav/disableBirthdayCalendar";R.post(C(e))},sendInvitations(d){OCP.AppConfig.setValue("dav","sendInvitations",d?"yes":"no")},sendEventReminders(d){OCP.AppConfig.setValue("dav","sendEventReminders",d?"yes":"no")},sendEventRemindersToSharedUsers(d){OCP.AppConfig.setValue("dav","sendEventRemindersToSharedUsers",d?"yes":"no")},sendEventRemindersPush(d){OCP.AppConfig.setValue("dav","sendEventRemindersPush",d?"yes":"no")}}},T=["innerHTML"],U=["innerHTML"],w=["innerHTML"],_={class:"indented"},P={class:"indented"};function H(d,e,x,t,a,u){const o=v("NcCheckboxRadioSwitch"),f=v("NcSettingsSection");return y(),g(f,{name:t.t("dav","Calendar server"),docUrl:a.userSyncCalendarsDocUrl},{default:l(()=>[n("p",{class:"settings-hint",innerHTML:u.hint},null,8,T),n("p",null,[m(o,{id:"caldavSendInvitations",modelValue:a.sendInvitations,"onUpdate:modelValue":e[0]||(e[0]=s=>a.sendInvitations=s),type:"switch"},{default:l(()=>[c(r(t.t("dav","Send invitations to attendees")),1)]),_:1},8,["modelValue"]),n("em",{innerHTML:u.sendInvitationsHelpText},null,8,U)]),n("p",null,[m(o,{id:"caldavGenerateBirthdayCalendar",modelValue:a.generateBirthdayCalendar,"onUpdate:modelValue":e[1]||(e[1]=s=>a.generateBirthdayCalendar=s),type:"switch",class:"checkbox"},{default:l(()=>[c(r(t.t("dav","Automatically generate a birthday calendar")),1)]),_:1},8,["modelValue"]),n("em",null,r(t.t("dav","Birthday calendars will be generated by a background job.")),1),e[5]||(e[5]=n("br",null,null,-1)),n("em",null,r(t.t("dav","Hence they will not be available immediately after enabling but will show up after some time.")),1)]),n("p",null,[m(o,{id:"caldavSendEventReminders",modelValue:a.sendEventReminders,"onUpdate:modelValue":e[2]||(e[2]=s=>a.sendEventReminders=s),type:"switch"},{default:l(()=>[c(r(t.t("dav","Send notifications for events")),1)]),_:1},8,["modelValue"]),n("em",{innerHTML:u.sendEventRemindersHelpText},null,8,w),e[6]||(e[6]=n("br",null,null,-1)),n("em",null,r(t.t("dav","Notifications are sent via background jobs, so these must occur often enough.")),1)]),n("p",_,[m(o,{id:"caldavSendEventRemindersToSharedGroupMembers",modelValue:a.sendEventRemindersToSharedUsers,"onUpdate:modelValue":e[3]||(e[3]=s=>a.sendEventRemindersToSharedUsers=s),type:"switch",disabled:!a.sendEventReminders},{default:l(()=>[c(r(t.t("dav","Send reminder notifications to calendar sharees as well")),1)]),_:1},8,["modelValue","disabled"]),n("em",null,r(t.t("dav","Reminders are always sent to organizers and attendees.")),1)]),n("p",P,[m(o,{id:"caldavSendEventRemindersPush",modelValue:a.sendEventRemindersPush,"onUpdate:modelValue":e[4]||(e[4]=s=>a.sendEventRemindersPush=s),type:"switch",disabled:!a.sendEventReminders},{default:l(()=>[c(r(t.t("dav","Enable notifications for events via push")),1)]),_:1},8,["modelValue","disabled"])])]),_:1},8,["name","docUrl"])}const I=E(k,[["render",H],["__scopeId","data-v-795da2a0"]]),B=b(I);B.mount("#settings-admin-caldav");
import{r as v,o as y,c as g,w as l,g as n,k as m,j as c,t as r,e as b}from"./preload-helper-DoJVKVMq.chunk.mjs";import{c as R}from"./index-CzqMHoWC.chunk.mjs";import{l as i,_ as E}from"./public-CvthP4YJ.chunk.mjs";import{t as p}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{b as C}from"./index-Bp9-GhMo.chunk.mjs";import{N as S}from"./NcCheckboxRadioSwitch-D0gFwEVl-CZhGfPiT.chunk.mjs";import{N as V}from"./ContentCopy-BZd-i-FC.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import"./Web-rJva_rmF.chunk.mjs";const h=i("dav","userSyncCalendarsDocUrl","#"),k={name:"CalDavSettings",components:{NcCheckboxRadioSwitch:S,NcSettingsSection:V},setup(){return{t:p}},data(){return{userSyncCalendarsDocUrl:h,sendInvitations:i("dav","sendInvitations"),generateBirthdayCalendar:i("dav","generateBirthdayCalendar"),sendEventReminders:i("dav","sendEventReminders"),sendEventRemindersToSharedUsers:i("dav","sendEventRemindersToSharedUsers"),sendEventRemindersPush:i("dav","sendEventRemindersPush")}},computed:{hint(){return p("dav","Also install the {calendarappstoreopen}Calendar app{linkclose}, or {calendardocopen}connect your desktop & mobile for syncing ↗{linkclose}.").replace("{calendarappstoreopen}",'<a target="_blank" href="../apps/office/calendar">').replace("{calendardocopen}",`<a target="_blank" href="${h}" rel="noreferrer noopener">`).replace(/\{linkclose\}/g,"</a>")},sendInvitationsHelpText(){return p("dav","Please make sure to properly set up {emailopen}the email server{linkclose}.").replace("{emailopen}",'<a href="../admin#mail_general_settings">').replace("{linkclose}","</a>")},sendEventRemindersHelpText(){return p("dav","Please make sure to properly set up {emailopen}the email server{linkclose}.").replace("{emailopen}",'<a href="../admin#mail_general_settings">').replace("{linkclose}","</a>")}},watch:{generateBirthdayCalendar(d){const e=d?"/apps/dav/enableBirthdayCalendar":"/apps/dav/disableBirthdayCalendar";R.post(C(e))},sendInvitations(d){OCP.AppConfig.setValue("dav","sendInvitations",d?"yes":"no")},sendEventReminders(d){OCP.AppConfig.setValue("dav","sendEventReminders",d?"yes":"no")},sendEventRemindersToSharedUsers(d){OCP.AppConfig.setValue("dav","sendEventRemindersToSharedUsers",d?"yes":"no")},sendEventRemindersPush(d){OCP.AppConfig.setValue("dav","sendEventRemindersPush",d?"yes":"no")}}},T=["innerHTML"],U=["innerHTML"],w=["innerHTML"],_={class:"indented"},P={class:"indented"};function H(d,e,x,t,a,u){const o=v("NcCheckboxRadioSwitch"),f=v("NcSettingsSection");return y(),g(f,{name:t.t("dav","Calendar server"),docUrl:a.userSyncCalendarsDocUrl},{default:l(()=>[n("p",{class:"settings-hint",innerHTML:u.hint},null,8,T),n("p",null,[m(o,{id:"caldavSendInvitations",modelValue:a.sendInvitations,"onUpdate:modelValue":e[0]||(e[0]=s=>a.sendInvitations=s),type:"switch"},{default:l(()=>[c(r(t.t("dav","Send invitations to attendees")),1)]),_:1},8,["modelValue"]),n("em",{innerHTML:u.sendInvitationsHelpText},null,8,U)]),n("p",null,[m(o,{id:"caldavGenerateBirthdayCalendar",modelValue:a.generateBirthdayCalendar,"onUpdate:modelValue":e[1]||(e[1]=s=>a.generateBirthdayCalendar=s),type:"switch",class:"checkbox"},{default:l(()=>[c(r(t.t("dav","Automatically generate a birthday calendar")),1)]),_:1},8,["modelValue"]),n("em",null,r(t.t("dav","Birthday calendars will be generated by a background job.")),1),e[5]||(e[5]=n("br",null,null,-1)),n("em",null,r(t.t("dav","Hence they will not be available immediately after enabling but will show up after some time.")),1)]),n("p",null,[m(o,{id:"caldavSendEventReminders",modelValue:a.sendEventReminders,"onUpdate:modelValue":e[2]||(e[2]=s=>a.sendEventReminders=s),type:"switch"},{default:l(()=>[c(r(t.t("dav","Send notifications for events")),1)]),_:1},8,["modelValue"]),n("em",{innerHTML:u.sendEventRemindersHelpText},null,8,w),e[6]||(e[6]=n("br",null,null,-1)),n("em",null,r(t.t("dav","Notifications are sent via background jobs, so these must occur often enough.")),1)]),n("p",_,[m(o,{id:"caldavSendEventRemindersToSharedGroupMembers",modelValue:a.sendEventRemindersToSharedUsers,"onUpdate:modelValue":e[3]||(e[3]=s=>a.sendEventRemindersToSharedUsers=s),type:"switch",disabled:!a.sendEventReminders},{default:l(()=>[c(r(t.t("dav","Send reminder notifications to calendar sharees as well")),1)]),_:1},8,["modelValue","disabled"]),n("em",null,r(t.t("dav","Reminders are always sent to organizers and attendees.")),1)]),n("p",P,[m(o,{id:"caldavSendEventRemindersPush",modelValue:a.sendEventRemindersPush,"onUpdate:modelValue":e[4]||(e[4]=s=>a.sendEventRemindersPush=s),type:"switch",disabled:!a.sendEventReminders},{default:l(()=>[c(r(t.t("dav","Enable notifications for events via push")),1)]),_:1},8,["modelValue","disabled"])])]),_:1},8,["name","docUrl"])}const I=E(k,[["render",H],["__scopeId","data-v-795da2a0"]]),B=b(I);B.mount("#settings-admin-caldav");
//# sourceMappingURL=dav-settings-admin-caldav.mjs.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,2 +1,2 @@
import{a as o,b as i}from"./index-Bp9-GhMo.chunk.mjs";import{c as r}from"./index-ClciYKp3.chunk.mjs";import{s as a}from"./index-C1xmmKTZ-CmvjJKkk.chunk.mjs";import"./preload-helper-DoJVKVMq.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./NcDialog-nDc1gW50-CpnK8gUQ.chunk.mjs";import"./NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs";import"./mdi-BUoBIgaz.chunk.mjs";import"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import"./public-CvthP4YJ.chunk.mjs";import"./Web-rJva_rmF.chunk.mjs";import"./TrashCanOutline-D66Xz3gd.chunk.mjs";window.addEventListener("DOMContentLoaded",async function(){if(o()===null)return;const{data:t}=await r.get(i("/apps/encryption/ajax/getStatus"));t.status==="interactionNeeded"&&a(t.data.message)});
import{a as o,b as i}from"./index-Bp9-GhMo.chunk.mjs";import{c as r}from"./index-CzqMHoWC.chunk.mjs";import{s as a}from"./index-C1xmmKTZ-B9NwkrZ2.chunk.mjs";import"./preload-helper-DoJVKVMq.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./NcDialog-nDc1gW50-CpnK8gUQ.chunk.mjs";import"./NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs";import"./mdi-BUoBIgaz.chunk.mjs";import"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import"./public-CvthP4YJ.chunk.mjs";import"./Web-rJva_rmF.chunk.mjs";import"./TrashCanOutline-D66Xz3gd.chunk.mjs";window.addEventListener("DOMContentLoaded",async function(){if(o()===null)return;const{data:t}=await r.get(i("/apps/encryption/ajax/getStatus"));t.status==="interactionNeeded"&&a(t.data.message)});
//# sourceMappingURL=encryption-encryption.mjs.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,2 +1,2 @@
import{c as d,i as _}from"./index-ClciYKp3.chunk.mjs";import{b as y,a as u}from"./index-C1xmmKTZ-CmvjJKkk.chunk.mjs";import{s as b,b as m}from"./index-Bp9-GhMo.chunk.mjs";import{_ as R,l as D}from"./public-CvthP4YJ.chunk.mjs";import{t}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{N as v,s as S}from"./NcDialog-nDc1gW50-CpnK8gUQ.chunk.mjs";import{N as F}from"./NcPasswordField-BOLzDHBJ-DvzsiWPp.chunk.mjs";import{b as O,o as f,c as h,w as k,g as C,t as P,u as i,F as q,h as x,l as N,D as E}from"./preload-helper-DoJVKVMq.chunk.mjs";import{l as M}from"./logger-BKNNYSvV.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import"./TrashCanOutline-D66Xz3gd.chunk.mjs";import"./mdi-BUoBIgaz.chunk.mjs";import"./NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs";import"./Web-rJva_rmF.chunk.mjs";import"./NcInputField-CPL-a_MM-DHVwy56P.chunk.mjs";const T=O({__name:"RemoteShareDialog",props:{name:{},owner:{},remote:{},passwordRequired:{type:Boolean}},emits:["close"],setup(e,{emit:r}){const s=e,a=r,o=N(""),n=E(()=>[{label:t("federatedfilesharing","Cancel"),callback:()=>a("close",!1)},{label:t("federatedfilesharing","Add remote share"),type:s.passwordRequired?"submit":void 0,variant:"primary",callback:()=>a("close",!0,o.value)}]);return(p,l)=>(f(),h(i(v),{buttons:n.value,isForm:e.passwordRequired,name:i(t)("federatedfilesharing","Remote share"),onSubmit:l[1]||(l[1]=w=>a("close",!0,o.value))},{default:k(()=>[C("p",null,P(i(t)("federatedfilesharing","Do you want to add the remote share {name} from {owner}@{remote}?",{name:e.name,owner:e.owner,remote:e.remote})),1),e.passwordRequired?(f(),h(i(F),{key:0,modelValue:o.value,"onUpdate:modelValue":l[0]||(l[0]=w=>o.value=w),class:q(p.$style.remoteShareDialog__password),label:i(t)("federatedfilesharing","Remote share password")},null,8,["modelValue","class","label"])):x("",!0)]),_:1},8,["buttons","isForm","name"]))}}),U="_remoteShareDialog__password_1ccpy_2",V={remoteShareDialog__password:U},$={$style:V},j=R(T,[["__cssModules",$]]);async function I(e,r,s,a=!1){const[o,n]=await S(j,{name:e,owner:r,remote:s,passwordRequired:a});if(a&&o)return n;if(!o)throw new Error("Dialog was cancelled")}window.addEventListener("DOMContentLoaded",()=>{L(),D("federatedfilesharing","notificationsEnabled",!0)!==!0&&A(),b("notifications:action:executed",({action:e,notification:r})=>{r.app==="files_sharing"&&r.object_type==="remote_share"&&e.type==="POST"&&c()})});function c(){if(!window?.OCP?.Files?.Router?.goToRoute){window.location.reload();return}window.OCP.Files.Router.goToRoute(null,{...window.OCP.Files.Router.params,fileid:void 0},{...window.OCP.Files.Router.query,dir:"/",openfile:void 0})}function L(){const e=window.OC.Util.History.parseUrlQuery();if(e.remote&&e.token&&e.name){const r=(s,a)=>{s!==!1&&d.post(m("apps/federatedfilesharing/askForFederatedShare"),{remote:a.remote,token:a.token,owner:a.owner,ownerDisplayName:a.ownerDisplayName||a.owner,name:a.name,password:a.password||""}).then(({data:o})=>{Object.hasOwn(o,"legacyMount")?c():y(o.message)}).catch(o=>{M.error("Error while processing incoming share",{error:o}),_(o)&&o.response.data.message?u(o.response.data.message):u(t("federatedfilesharing","Incoming share could not be processed"))})};location.hash="",e.passwordProtected=parseInt(e.protected,10)===1,g(e,e.passwordProtected,r)}}async function A(){const{data:e}=await d.get(m("/apps/files_sharing/api/externalShares"));for(let r=0;r<e.length;++r)g(e[r],!1,function(s,a){s===!1?d.delete(m("/apps/files_sharing/api/externalShares/"+a.id)):d.post(m("/apps/files_sharing/api/externalShares"),{id:a.id}).then(()=>c())})}function g(e,r,s){const a=e.ownerDisplayName||e.owner,o=e.name,n=e.remote.replace(/^https?:\/\//,"").replace(/\/$/,"");I(o,a,n,r).then(p=>s(!0,{...e,password:p})).catch(()=>s(!1,e))}
import{c as d,i as _}from"./index-CzqMHoWC.chunk.mjs";import{b as y,a as u}from"./index-C1xmmKTZ-B9NwkrZ2.chunk.mjs";import{s as b,b as m}from"./index-Bp9-GhMo.chunk.mjs";import{_ as R,l as D}from"./public-CvthP4YJ.chunk.mjs";import{t}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{N as v,s as S}from"./NcDialog-nDc1gW50-CpnK8gUQ.chunk.mjs";import{N as F}from"./NcPasswordField-BOLzDHBJ-DXc0Hn8T.chunk.mjs";import{b as O,o as f,c as h,w as k,g as C,t as P,u as i,F as q,h as x,l as N,D as E}from"./preload-helper-DoJVKVMq.chunk.mjs";import{l as M}from"./logger-BKNNYSvV.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import"./TrashCanOutline-D66Xz3gd.chunk.mjs";import"./mdi-BUoBIgaz.chunk.mjs";import"./NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs";import"./Web-rJva_rmF.chunk.mjs";import"./NcInputField-CPL-a_MM-DHVwy56P.chunk.mjs";const T=O({__name:"RemoteShareDialog",props:{name:{},owner:{},remote:{},passwordRequired:{type:Boolean}},emits:["close"],setup(e,{emit:r}){const s=e,a=r,o=N(""),n=E(()=>[{label:t("federatedfilesharing","Cancel"),callback:()=>a("close",!1)},{label:t("federatedfilesharing","Add remote share"),type:s.passwordRequired?"submit":void 0,variant:"primary",callback:()=>a("close",!0,o.value)}]);return(p,l)=>(f(),h(i(v),{buttons:n.value,isForm:e.passwordRequired,name:i(t)("federatedfilesharing","Remote share"),onSubmit:l[1]||(l[1]=w=>a("close",!0,o.value))},{default:k(()=>[C("p",null,P(i(t)("federatedfilesharing","Do you want to add the remote share {name} from {owner}@{remote}?",{name:e.name,owner:e.owner,remote:e.remote})),1),e.passwordRequired?(f(),h(i(F),{key:0,modelValue:o.value,"onUpdate:modelValue":l[0]||(l[0]=w=>o.value=w),class:q(p.$style.remoteShareDialog__password),label:i(t)("federatedfilesharing","Remote share password")},null,8,["modelValue","class","label"])):x("",!0)]),_:1},8,["buttons","isForm","name"]))}}),U="_remoteShareDialog__password_1ccpy_2",V={remoteShareDialog__password:U},$={$style:V},j=R(T,[["__cssModules",$]]);async function I(e,r,s,a=!1){const[o,n]=await S(j,{name:e,owner:r,remote:s,passwordRequired:a});if(a&&o)return n;if(!o)throw new Error("Dialog was cancelled")}window.addEventListener("DOMContentLoaded",()=>{L(),D("federatedfilesharing","notificationsEnabled",!0)!==!0&&A(),b("notifications:action:executed",({action:e,notification:r})=>{r.app==="files_sharing"&&r.object_type==="remote_share"&&e.type==="POST"&&c()})});function c(){if(!window?.OCP?.Files?.Router?.goToRoute){window.location.reload();return}window.OCP.Files.Router.goToRoute(null,{...window.OCP.Files.Router.params,fileid:void 0},{...window.OCP.Files.Router.query,dir:"/",openfile:void 0})}function L(){const e=window.OC.Util.History.parseUrlQuery();if(e.remote&&e.token&&e.name){const r=(s,a)=>{s!==!1&&d.post(m("apps/federatedfilesharing/askForFederatedShare"),{remote:a.remote,token:a.token,owner:a.owner,ownerDisplayName:a.ownerDisplayName||a.owner,name:a.name,password:a.password||""}).then(({data:o})=>{Object.hasOwn(o,"legacyMount")?c():y(o.message)}).catch(o=>{M.error("Error while processing incoming share",{error:o}),_(o)&&o.response.data.message?u(o.response.data.message):u(t("federatedfilesharing","Incoming share could not be processed"))})};location.hash="",e.passwordProtected=parseInt(e.protected,10)===1,g(e,e.passwordProtected,r)}}async function A(){const{data:e}=await d.get(m("/apps/files_sharing/api/externalShares"));for(let r=0;r<e.length;++r)g(e[r],!1,function(s,a){s===!1?d.delete(m("/apps/files_sharing/api/externalShares/"+a.id)):d.post(m("/apps/files_sharing/api/externalShares"),{id:a.id}).then(()=>c())})}function g(e,r,s){const a=e.ownerDisplayName||e.owner,o=e.name,n=e.remote.replace(/^https?:\/\//,"").replace(/\/$/,"");I(o,a,n,r).then(p=>s(!0,{...e,password:p})).catch(()=>s(!1,e))}
//# sourceMappingURL=federatedfilesharing-init-files.mjs.map

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import{o as l,f as g,g as r,t as i,h as D,m as j,b as A,c as v,w as t,k as s,u as e,j as d,H as J,R as W,l as N,D as C,e as Z}from"./preload-helper-DoJVKVMq.chunk.mjs";import{d as L}from"./index-C1xmmKTZ-CmvjJKkk.chunk.mjs";import{_ as S,l as c}from"./public-CvthP4YJ.chunk.mjs";import{t as a}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{k as _}from"./index-Bp9-GhMo.chunk.mjs";import{N as m}from"./mdi-BUoBIgaz.chunk.mjs";import{N as q}from"./NcInputField-CPL-a_MM-DHVwy56P.chunk.mjs";import{I as E,N as G}from"./ContentCopy-BZd-i-FC.chunk.mjs";import{W as K}from"./Web-rJva_rmF.chunk.mjs";import"./modulepreload-polyfill-BxzAKjcf.chunk.mjs";import"./NcDialog-nDc1gW50-CpnK8gUQ.chunk.mjs";import"./NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs";import"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import"./TrashCanOutline-D66Xz3gd.chunk.mjs";const Q={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},X=["aria-hidden","aria-label"],ee=["fill","width","height"],ae={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},re={key:0};function te(b,u,o,w,h,x){return l(),g("span",j(b.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon check-icon",role:"img",onClick:u[0]||(u[0]=k=>b.$emit("click",k))}),[(l(),g("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[r("path",ae,[o.title?(l(),g("title",re,i(o.title),1)):D("",!0)])],8,ee))],16,X)}const oe=S(Q,[["render",te]]),ie={class:"social-button"},le=["src"],ne=["src"],se=["src"],de={style:{margin:"10px 0"}},ce=["href"],ue=A({__name:"PersonalSettings",setup(b){const u=window.OC.theme.productName,o=c("federatedfilesharing","color"),w=c("federatedfilesharing","textColor"),h=c("federatedfilesharing","cloudId"),x=c("federatedfilesharing","docUrlFederated"),k=c("federatedfilesharing","logoPath"),f=c("federatedfilesharing","reference"),U=_("core","facebook"),z=_("core","mastodon"),F=_("core","bluesky"),B=a("federatedfilesharing","Share with me through my #Nextcloud Federated Cloud ID, see {url}",{url:f}),R=a("federatedfilesharing","Share with me through my #Nextcloud Federated Cloud ID"),M=`https://mastodon.social/?text=${encodeURIComponent(R)}&url=${encodeURIComponent(f)}`,T=`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(f)}`,O=`https://bsky.app/intent/compose?text=${encodeURIComponent(B)}`,P=new URL(k,location.origin),y=N(!1),p=N(!1),I=C(()=>`
import{o as l,f as g,g as r,t as i,h as D,m as j,b as A,c as v,w as t,k as s,u as e,j as d,H as J,R as W,l as N,D as C,e as Z}from"./preload-helper-DoJVKVMq.chunk.mjs";import{d as L}from"./index-C1xmmKTZ-B9NwkrZ2.chunk.mjs";import{_ as S,l as c}from"./public-CvthP4YJ.chunk.mjs";import{t as a}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{k as _}from"./index-Bp9-GhMo.chunk.mjs";import{N as m}from"./mdi-BUoBIgaz.chunk.mjs";import{N as q}from"./NcInputField-CPL-a_MM-DHVwy56P.chunk.mjs";import{I as E,N as G}from"./ContentCopy-BZd-i-FC.chunk.mjs";import{W as K}from"./Web-rJva_rmF.chunk.mjs";import"./modulepreload-polyfill-BxzAKjcf.chunk.mjs";import"./NcDialog-nDc1gW50-CpnK8gUQ.chunk.mjs";import"./NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs";import"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import"./TrashCanOutline-D66Xz3gd.chunk.mjs";const Q={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},X=["aria-hidden","aria-label"],ee=["fill","width","height"],ae={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},re={key:0};function te(b,u,o,w,h,x){return l(),g("span",j(b.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon check-icon",role:"img",onClick:u[0]||(u[0]=k=>b.$emit("click",k))}),[(l(),g("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[r("path",ae,[o.title?(l(),g("title",re,i(o.title),1)):D("",!0)])],8,ee))],16,X)}const oe=S(Q,[["render",te]]),ie={class:"social-button"},le=["src"],ne=["src"],se=["src"],de={style:{margin:"10px 0"}},ce=["href"],ue=A({__name:"PersonalSettings",setup(b){const u=window.OC.theme.productName,o=c("federatedfilesharing","color"),w=c("federatedfilesharing","textColor"),h=c("federatedfilesharing","cloudId"),x=c("federatedfilesharing","docUrlFederated"),k=c("federatedfilesharing","logoPath"),f=c("federatedfilesharing","reference"),U=_("core","facebook"),z=_("core","mastodon"),F=_("core","bluesky"),B=a("federatedfilesharing","Share with me through my #Nextcloud Federated Cloud ID, see {url}",{url:f}),R=a("federatedfilesharing","Share with me through my #Nextcloud Federated Cloud ID"),M=`https://mastodon.social/?text=${encodeURIComponent(R)}&url=${encodeURIComponent(f)}`,T=`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(f)}`,O=`https://bsky.app/intent/compose?text=${encodeURIComponent(B)}`,P=new URL(k,location.origin),y=N(!1),p=N(!1),I=C(()=>`
padding:10px;
background-color:${o};
color:${w};

File diff suppressed because one or more lines are too long

View file

@ -1,3 +1,3 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('', '', 'dist/AuthMechanismRsa-BlelMfh_.chunk.mjs'),window.OC.filePath('', '', 'dist/preload-helper-DoJVKVMq.chunk.mjs'),window.OC.filePath('', '', 'dist/index-ClciYKp3.chunk.mjs'),window.OC.filePath('', '', 'dist/index-Bp9-GhMo.chunk.mjs'),window.OC.filePath('', '', 'dist/util-Caafb9Jl.chunk.mjs'),window.OC.filePath('', '', 'dist/index-C1xmmKTZ-CmvjJKkk.chunk.mjs'),window.OC.filePath('', '', 'dist/NcDialog-nDc1gW50-CpnK8gUQ.chunk.mjs'),window.OC.filePath('', '', 'dist/NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs'),window.OC.filePath('', '', 'dist/mdi-BUoBIgaz.chunk.mjs'),window.OC.filePath('', '', 'dist/NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs'),window.OC.filePath('', '', 'dist/translation-DoG5ZELJ-DJHEP2RB.chunk.mjs'),window.OC.filePath('', '', 'dist/NcIconSvgWrapper-De-2-ukl-C_oBIsvc.chunk.css'),window.OC.filePath('', '', 'dist/public-CvthP4YJ.chunk.mjs'),window.OC.filePath('', '', 'dist/mdi-D7L4ZBkR.chunk.css'),window.OC.filePath('', '', 'dist/NcModal-kyWZ3UFC-DgqchLjq.chunk.css'),window.OC.filePath('', '', 'dist/Web-rJva_rmF.chunk.mjs'),window.OC.filePath('', '', 'dist/Web-BYHcrfvW.chunk.css'),window.OC.filePath('', '', 'dist/NcDialog-nDc1gW50-DYA_tnKg.chunk.css'),window.OC.filePath('', '', 'dist/TrashCanOutline-D66Xz3gd.chunk.mjs'),window.OC.filePath('', '', 'dist/TrashCanOutline-Jq77EThs.chunk.css'),window.OC.filePath('', '', 'dist/NcSelect-B1uITk_3-D769WsNG.chunk.mjs'),window.OC.filePath('', '', 'dist/NcSelect-B1uITk_3-B9mkBKAR.chunk.css'),window.OC.filePath('', '', 'dist/NcCheckboxRadioSwitch-D0gFwEVl-CZhGfPiT.chunk.mjs'),window.OC.filePath('', '', 'dist/NcCheckboxRadioSwitch-D0gFwEVl-CQwJiKOs.chunk.css'),window.OC.filePath('', '', 'dist/NcPasswordField-BOLzDHBJ-DvzsiWPp.chunk.mjs'),window.OC.filePath('', '', 'dist/NcInputField-CPL-a_MM-DHVwy56P.chunk.mjs'),window.OC.filePath('', '', 'dist/NcInputField-CPL-a_MM-Bsffit-T.chunk.css'),window.OC.filePath('', '', 'dist/NcPasswordField-BOLzDHBJ-DxPSRxK-.chunk.css'),window.OC.filePath('', '', 'dist/NcTextField.vue_vue_type_script_setup_true_lang-B-4HNjYH-C1HLa-yu.chunk.mjs'),window.OC.filePath('', '', 'dist/types-DFCYS_Od.chunk.mjs'),window.OC.filePath('', '', 'dist/logger-DJqOozHk.chunk.mjs')])))=>i.map(i=>d[i]);
import{d as a,a as t,_ as i}from"./preload-helper-DoJVKVMq.chunk.mjs";const s=t(()=>i(()=>import("./AuthMechanismRsa-BlelMfh_.chunk.mjs").then(e=>e.A),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]),import.meta.url)),r=a(s,{shadowRoot:!1});customElements.define("files_external-auth-mechanism-rsa",r),window.OCA.FilesExternal.AuthMechanism.registerHandler({id:"rsa",tagName:"files_external-auth-mechanism-rsa",enabled(e){return e.scheme==="publickey"&&e.identifier==="publickey::rsa"}});
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('', '', 'dist/AuthMechanismRsa-JUxOuUjJ.chunk.mjs'),window.OC.filePath('', '', 'dist/preload-helper-DoJVKVMq.chunk.mjs'),window.OC.filePath('', '', 'dist/index-CzqMHoWC.chunk.mjs'),window.OC.filePath('', '', 'dist/index-Bp9-GhMo.chunk.mjs'),window.OC.filePath('', '', 'dist/util-Caafb9Jl.chunk.mjs'),window.OC.filePath('', '', 'dist/index-C1xmmKTZ-B9NwkrZ2.chunk.mjs'),window.OC.filePath('', '', 'dist/NcDialog-nDc1gW50-CpnK8gUQ.chunk.mjs'),window.OC.filePath('', '', 'dist/NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs'),window.OC.filePath('', '', 'dist/mdi-BUoBIgaz.chunk.mjs'),window.OC.filePath('', '', 'dist/NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs'),window.OC.filePath('', '', 'dist/translation-DoG5ZELJ-DJHEP2RB.chunk.mjs'),window.OC.filePath('', '', 'dist/NcIconSvgWrapper-De-2-ukl-C_oBIsvc.chunk.css'),window.OC.filePath('', '', 'dist/public-CvthP4YJ.chunk.mjs'),window.OC.filePath('', '', 'dist/mdi-D7L4ZBkR.chunk.css'),window.OC.filePath('', '', 'dist/NcModal-kyWZ3UFC-DgqchLjq.chunk.css'),window.OC.filePath('', '', 'dist/Web-rJva_rmF.chunk.mjs'),window.OC.filePath('', '', 'dist/Web-BYHcrfvW.chunk.css'),window.OC.filePath('', '', 'dist/NcDialog-nDc1gW50-DYA_tnKg.chunk.css'),window.OC.filePath('', '', 'dist/TrashCanOutline-D66Xz3gd.chunk.mjs'),window.OC.filePath('', '', 'dist/TrashCanOutline-Jq77EThs.chunk.css'),window.OC.filePath('', '', 'dist/NcSelect-B1uITk_3-D769WsNG.chunk.mjs'),window.OC.filePath('', '', 'dist/NcSelect-B1uITk_3-B9mkBKAR.chunk.css'),window.OC.filePath('', '', 'dist/NcCheckboxRadioSwitch-D0gFwEVl-CZhGfPiT.chunk.mjs'),window.OC.filePath('', '', 'dist/NcCheckboxRadioSwitch-D0gFwEVl-CQwJiKOs.chunk.css'),window.OC.filePath('', '', 'dist/NcPasswordField-BOLzDHBJ-DXc0Hn8T.chunk.mjs'),window.OC.filePath('', '', 'dist/NcInputField-CPL-a_MM-DHVwy56P.chunk.mjs'),window.OC.filePath('', '', 'dist/NcInputField-CPL-a_MM-Bsffit-T.chunk.css'),window.OC.filePath('', '', 'dist/NcPasswordField-BOLzDHBJ-DxPSRxK-.chunk.css'),window.OC.filePath('', '', 'dist/NcTextField.vue_vue_type_script_setup_true_lang-B-4HNjYH-C1HLa-yu.chunk.mjs'),window.OC.filePath('', '', 'dist/types-DFCYS_Od.chunk.mjs'),window.OC.filePath('', '', 'dist/logger-DJqOozHk.chunk.mjs')])))=>i.map(i=>d[i]);
import{d as a,a as t,_ as i}from"./preload-helper-DoJVKVMq.chunk.mjs";const s=t(()=>i(()=>import("./AuthMechanismRsa-JUxOuUjJ.chunk.mjs").then(e=>e.A),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]),import.meta.url)),r=a(s,{shadowRoot:!1});customElements.define("files_external-auth-mechanism-rsa",r),window.OCA.FilesExternal.AuthMechanism.registerHandler({id:"rsa",tagName:"files_external-auth-mechanism-rsa",enabled(e){return e.scheme==="publickey"&&e.identifier==="publickey::rsa"}});
//# sourceMappingURL=files_external-auth_rsa.mjs.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import{C as c,V as _,b as v,c as x,a as V}from"./index-DMw01uN3.chunk.mjs";import{a as o,b as H,i as A,g as C,h as N,j as E,f as h}from"./index-Bp9-GhMo.chunk.mjs";import{c as u,i as S}from"./index-ClciYKp3.chunk.mjs";import{a as b,d as $,g as I}from"./index-C1xmmKTZ-CmvjJKkk.chunk.mjs";import{P as D}from"./folder-29HuacU_-GslSi8fz.chunk.mjs";import{g as y,b as f,t as n}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{g as L,a as M,b as T,r as k,d as F}from"./dav-B4SnxxuE.chunk.mjs";import{f as B}from"./NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs";import{e as U}from"./preload-helper-DoJVKVMq.chunk.mjs";import{N as P}from"./NcUserBubble-BE6yD-R0-BVT_gW8E.chunk.mjs";import{l as O}from"./public-CvthP4YJ.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./NcDialog-nDc1gW50-CpnK8gUQ.chunk.mjs";import"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import"./mdi-BUoBIgaz.chunk.mjs";import"./Web-rJva_rmF.chunk.mjs";import"./TrashCanOutline-D66Xz3gd.chunk.mjs";import"./index-BDmvh1Np.chunk.mjs";import"./NcAvatar-ruClKRzS-D00PbCEA.chunk.mjs";import"./colors-BfjxNgsx-Dyl_2CuU.chunk.mjs";import"./NcUserStatusIcon-JWiuiAXe-BJYvYIQF.chunk.mjs";import"./PencilOutline-BzoFsBsK.chunk.mjs";import"./NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-L27IwP9h.chunk.mjs";const R='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-history" viewBox="0 0 24 24"><path d="M13.5,8H12V13L16.28,15.54L17,14.33L13.5,12.25V8M13,3A9,9 0 0,0 4,12H1L4.96,16.03L9,12H6A7,7 0 0,1 13,5A7,7 0 0,1 20,12A7,7 0 0,1 13,19C11.07,19 9.32,18.21 8.06,16.94L6.64,18.36C8.27,20 10.5,21 13,21A9,9 0 0,0 22,12A9,9 0 0,0 13,3" /></svg>',j='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-trash-can-outline" viewBox="0 0 24 24"><path d="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z" /></svg>',w=`/trashbin/${o()?.uid}/trash`,q=L(),z=`<?xml version="1.0"?>
import{C as c,V as _,b as v,c as x,a as V}from"./index-DMw01uN3.chunk.mjs";import{a as o,b as H,i as A,g as C,h as N,j as E,f as h}from"./index-Bp9-GhMo.chunk.mjs";import{c as u,i as S}from"./index-CzqMHoWC.chunk.mjs";import{a as b,d as $,g as I}from"./index-C1xmmKTZ-B9NwkrZ2.chunk.mjs";import{P as D}from"./folder-29HuacU_-GslSi8fz.chunk.mjs";import{g as y,b as f,t as n}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{g as L,a as M,b as T,r as k,d as F}from"./dav-B4SnxxuE.chunk.mjs";import{f as B}from"./NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs";import{e as U}from"./preload-helper-DoJVKVMq.chunk.mjs";import{N as P}from"./NcUserBubble-BE6yD-R0-aMsD0K5b.chunk.mjs";import{l as O}from"./public-CvthP4YJ.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./NcDialog-nDc1gW50-CpnK8gUQ.chunk.mjs";import"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import"./mdi-BUoBIgaz.chunk.mjs";import"./Web-rJva_rmF.chunk.mjs";import"./TrashCanOutline-D66Xz3gd.chunk.mjs";import"./index-BDmvh1Np.chunk.mjs";import"./NcAvatar-ruClKRzS-C0OkDCcs.chunk.mjs";import"./colors-BfjxNgsx-Dyl_2CuU.chunk.mjs";import"./NcUserStatusIcon-JWiuiAXe-RsQTD2PO.chunk.mjs";import"./PencilOutline-BzoFsBsK.chunk.mjs";import"./NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-L27IwP9h.chunk.mjs";const R='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-history" viewBox="0 0 24 24"><path d="M13.5,8H12V13L16.28,15.54L17,14.33L13.5,12.25V8M13,3A9,9 0 0,0 4,12H1L4.96,16.03L9,12H6A7,7 0 0,1 13,5A7,7 0 0,1 20,12A7,7 0 0,1 13,19C11.07,19 9.32,18.21 8.06,16.94L6.64,18.36C8.27,20 10.5,21 13,21A9,9 0 0,0 22,12A9,9 0 0,0 13,3" /></svg>',j='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-trash-can-outline" viewBox="0 0 24 24"><path d="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z" /></svg>',w=`/trashbin/${o()?.uid}/trash`,q=L(),z=`<?xml version="1.0"?>
<d:propfind ${M()}>
<d:prop>
<nc:trashbin-deletion-time />

View file

@ -1,3 +1,3 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('', '', 'dist/FilesVersionsSidebarTab-DrTnCHTX.chunk.mjs'),window.OC.filePath('', '', 'dist/index-C1xmmKTZ-CmvjJKkk.chunk.mjs'),window.OC.filePath('', '', 'dist/preload-helper-DoJVKVMq.chunk.mjs'),window.OC.filePath('', '', 'dist/NcDialog-nDc1gW50-CpnK8gUQ.chunk.mjs'),window.OC.filePath('', '', 'dist/NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs'),window.OC.filePath('', '', 'dist/mdi-BUoBIgaz.chunk.mjs'),window.OC.filePath('', '', 'dist/NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs'),window.OC.filePath('', '', 'dist/translation-DoG5ZELJ-DJHEP2RB.chunk.mjs'),window.OC.filePath('', '', 'dist/index-Bp9-GhMo.chunk.mjs'),window.OC.filePath('', '', 'dist/NcIconSvgWrapper-De-2-ukl-C_oBIsvc.chunk.css'),window.OC.filePath('', '', 'dist/public-CvthP4YJ.chunk.mjs'),window.OC.filePath('', '', 'dist/mdi-D7L4ZBkR.chunk.css'),window.OC.filePath('', '', 'dist/NcModal-kyWZ3UFC-DgqchLjq.chunk.css'),window.OC.filePath('', '', 'dist/Web-rJva_rmF.chunk.mjs'),window.OC.filePath('', '', 'dist/Web-BYHcrfvW.chunk.css'),window.OC.filePath('', '', 'dist/NcDialog-nDc1gW50-DYA_tnKg.chunk.css'),window.OC.filePath('', '', 'dist/TrashCanOutline-D66Xz3gd.chunk.mjs'),window.OC.filePath('', '', 'dist/TrashCanOutline-Jq77EThs.chunk.css'),window.OC.filePath('', '', 'dist/index-DMw01uN3.chunk.mjs'),window.OC.filePath('', '', 'dist/folder-29HuacU_-GslSi8fz.chunk.mjs'),window.OC.filePath('', '', 'dist/util-Caafb9Jl.chunk.mjs'),window.OC.filePath('', '', 'dist/PencilOutline-BzoFsBsK.chunk.mjs'),window.OC.filePath('', '', 'dist/PencilOutline-DdQinVMt.chunk.css'),window.OC.filePath('', '', 'dist/NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-L27IwP9h.chunk.mjs'),window.OC.filePath('', '', 'dist/NcDateTime-DS-ziNw6.chunk.css'),window.OC.filePath('', '', 'dist/NcAvatar-ruClKRzS-D00PbCEA.chunk.mjs'),window.OC.filePath('', '', 'dist/index-ClciYKp3.chunk.mjs'),window.OC.filePath('', '', 'dist/colors-BfjxNgsx-Dyl_2CuU.chunk.mjs'),window.OC.filePath('', '', 'dist/NcUserStatusIcon-JWiuiAXe-BJYvYIQF.chunk.mjs'),window.OC.filePath('', '', 'dist/NcUserStatusIcon-JWiuiAXe-Bq_6hmXG.chunk.css'),window.OC.filePath('', '', 'dist/NcAvatar-ruClKRzS-CVm1ngoc.chunk.css'),window.OC.filePath('', '', 'dist/TrayArrowDown-DvXQ0D8Q.chunk.mjs'),window.OC.filePath('', '', 'dist/TrayArrowDown-D79n0IQ6.chunk.css'),window.OC.filePath('', '', 'dist/NcTextField.vue_vue_type_script_setup_true_lang-B-4HNjYH-C1HLa-yu.chunk.mjs'),window.OC.filePath('', '', 'dist/NcInputField-CPL-a_MM-DHVwy56P.chunk.mjs'),window.OC.filePath('', '', 'dist/NcInputField-CPL-a_MM-Bsffit-T.chunk.css'),window.OC.filePath('', '', 'dist/dav-B4SnxxuE.chunk.mjs'),window.OC.filePath('', '', 'dist/index-BDmvh1Np.chunk.mjs'),window.OC.filePath('', '', 'dist/files_versions-FilesVersionsSidebarTab-Cjl2hr1y.chunk.css')])))=>i.map(i=>d[i]);
import{d as i,a as r,_ as e}from"./preload-helper-DoJVKVMq.chunk.mjs";import{r as t}from"./index-DMw01uN3.chunk.mjs";import{t as m}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{i as n}from"./public-CvthP4YJ.chunk.mjs";import{F as a}from"./folder-29HuacU_-GslSi8fz.chunk.mjs";import"./index-Bp9-GhMo.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";const d='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-backup-restore" viewBox="0 0 24 24"><path d="M12,3A9,9 0 0,0 3,12H0L4,16L8,12H5A7,7 0 0,1 12,5A7,7 0 0,1 19,12A7,7 0 0,1 12,19C10.5,19 9.09,18.5 7.94,17.7L6.5,19.14C8.04,20.3 9.94,21 12,21A9,9 0 0,0 21,12A9,9 0 0,0 12,3M14,12A2,2 0 0,0 12,10A2,2 0 0,0 10,12A2,2 0 0,0 12,14A2,2 0 0,0 14,12Z" /></svg>',s="files-versions_sidebar-tab";t({id:"files_versions",tagName:s,order:90,displayName:m("files_versions","Versions"),iconSvgInline:d,enabled({node:o}){return!(n()||o.type!==a.File)},async onInit(){const o=r(()=>e(()=>import("./FilesVersionsSidebarTab-DrTnCHTX.chunk.mjs"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38]),import.meta.url));window.customElements.define(s,i(o,{shadowRoot:!1}))}});
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('', '', 'dist/FilesVersionsSidebarTab-DoQGfzpv.chunk.mjs'),window.OC.filePath('', '', 'dist/index-C1xmmKTZ-B9NwkrZ2.chunk.mjs'),window.OC.filePath('', '', 'dist/preload-helper-DoJVKVMq.chunk.mjs'),window.OC.filePath('', '', 'dist/NcDialog-nDc1gW50-CpnK8gUQ.chunk.mjs'),window.OC.filePath('', '', 'dist/NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs'),window.OC.filePath('', '', 'dist/mdi-BUoBIgaz.chunk.mjs'),window.OC.filePath('', '', 'dist/NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs'),window.OC.filePath('', '', 'dist/translation-DoG5ZELJ-DJHEP2RB.chunk.mjs'),window.OC.filePath('', '', 'dist/index-Bp9-GhMo.chunk.mjs'),window.OC.filePath('', '', 'dist/NcIconSvgWrapper-De-2-ukl-C_oBIsvc.chunk.css'),window.OC.filePath('', '', 'dist/public-CvthP4YJ.chunk.mjs'),window.OC.filePath('', '', 'dist/mdi-D7L4ZBkR.chunk.css'),window.OC.filePath('', '', 'dist/NcModal-kyWZ3UFC-DgqchLjq.chunk.css'),window.OC.filePath('', '', 'dist/Web-rJva_rmF.chunk.mjs'),window.OC.filePath('', '', 'dist/Web-BYHcrfvW.chunk.css'),window.OC.filePath('', '', 'dist/NcDialog-nDc1gW50-DYA_tnKg.chunk.css'),window.OC.filePath('', '', 'dist/TrashCanOutline-D66Xz3gd.chunk.mjs'),window.OC.filePath('', '', 'dist/TrashCanOutline-Jq77EThs.chunk.css'),window.OC.filePath('', '', 'dist/index-DMw01uN3.chunk.mjs'),window.OC.filePath('', '', 'dist/folder-29HuacU_-GslSi8fz.chunk.mjs'),window.OC.filePath('', '', 'dist/util-Caafb9Jl.chunk.mjs'),window.OC.filePath('', '', 'dist/PencilOutline-BzoFsBsK.chunk.mjs'),window.OC.filePath('', '', 'dist/PencilOutline-DdQinVMt.chunk.css'),window.OC.filePath('', '', 'dist/NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-L27IwP9h.chunk.mjs'),window.OC.filePath('', '', 'dist/NcDateTime-DS-ziNw6.chunk.css'),window.OC.filePath('', '', 'dist/NcAvatar-ruClKRzS-C0OkDCcs.chunk.mjs'),window.OC.filePath('', '', 'dist/index-CzqMHoWC.chunk.mjs'),window.OC.filePath('', '', 'dist/colors-BfjxNgsx-Dyl_2CuU.chunk.mjs'),window.OC.filePath('', '', 'dist/NcUserStatusIcon-JWiuiAXe-RsQTD2PO.chunk.mjs'),window.OC.filePath('', '', 'dist/NcUserStatusIcon-JWiuiAXe-Bq_6hmXG.chunk.css'),window.OC.filePath('', '', 'dist/NcAvatar-ruClKRzS-CVm1ngoc.chunk.css'),window.OC.filePath('', '', 'dist/TrayArrowDown-DvXQ0D8Q.chunk.mjs'),window.OC.filePath('', '', 'dist/TrayArrowDown-D79n0IQ6.chunk.css'),window.OC.filePath('', '', 'dist/NcTextField.vue_vue_type_script_setup_true_lang-B-4HNjYH-C1HLa-yu.chunk.mjs'),window.OC.filePath('', '', 'dist/NcInputField-CPL-a_MM-DHVwy56P.chunk.mjs'),window.OC.filePath('', '', 'dist/NcInputField-CPL-a_MM-Bsffit-T.chunk.css'),window.OC.filePath('', '', 'dist/dav-B4SnxxuE.chunk.mjs'),window.OC.filePath('', '', 'dist/index-BDmvh1Np.chunk.mjs'),window.OC.filePath('', '', 'dist/files_versions-FilesVersionsSidebarTab-Cjl2hr1y.chunk.css')])))=>i.map(i=>d[i]);
import{d as i,a as r,_ as e}from"./preload-helper-DoJVKVMq.chunk.mjs";import{r as t}from"./index-DMw01uN3.chunk.mjs";import{t as m}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";import{i as n}from"./public-CvthP4YJ.chunk.mjs";import{F as a}from"./folder-29HuacU_-GslSi8fz.chunk.mjs";import"./index-Bp9-GhMo.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";const d='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-backup-restore" viewBox="0 0 24 24"><path d="M12,3A9,9 0 0,0 3,12H0L4,16L8,12H5A7,7 0 0,1 12,5A7,7 0 0,1 19,12A7,7 0 0,1 12,19C10.5,19 9.09,18.5 7.94,17.7L6.5,19.14C8.04,20.3 9.94,21 12,21A9,9 0 0,0 21,12A9,9 0 0,0 12,3M14,12A2,2 0 0,0 12,10A2,2 0 0,0 10,12A2,2 0 0,0 12,14A2,2 0 0,0 14,12Z" /></svg>',s="files-versions_sidebar-tab";t({id:"files_versions",tagName:s,order:90,displayName:m("files_versions","Versions"),iconSvgInline:d,enabled({node:o}){return!(n()||o.type!==a.File)},async onInit(){const o=r(()=>e(()=>import("./FilesVersionsSidebarTab-DoQGfzpv.chunk.mjs"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38]),import.meta.url));window.customElements.define(s,i(o,{shadowRoot:!1}))}});
//# sourceMappingURL=files_versions-sidebar-tab.mjs.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show more