PageSourceSearch

https://cdn-cy1.conveyour.com/ui/releases/71f4abe0945f96750d958227…iew-files-common-FilesTable-vue.ea214bb5.js

js conveyour.com collected 2026-10-01 10:38:42 UTC 7,144 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunkconveyour_ui"]=self["webpackChunkconveyour_ui"]||[]).push([[4152,18729,63724,79448],{4696:function(e,t,l){l.d(t,{A:function(){return u}});var i=l(69390),r=l(36930),o=function(){var e=this,t=e._self._c;return t(i.A,e._b({staticClass:"share-folder-button",attrs:{fab:"",icon:""},nativeOn:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.$emit("share")}}},"v-btn",e.sizeProps,!1),[t(r.A,{attrs:{color:e.isShared?"primary":"grey"}},[e._v("share")])],1)},n=[],s={name:"ShareFolderButton",props:{isShared:Boolean,size:{type:String,default:"small"}},computed:{sizeProps(){return{xSmall:"x-small"===this.size,small:"small"===this.size,large:"large"===this.size,xLarge:"x-large"===this.size}}}},a=s,d=l(81656),c=(0,d.A)(a,o,n,!1,null,null,null),u=c.exports},20402:function(e,t,l){l.d(t,{A:function(){return f}});var i=l(69390),r=l(36930),o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"hint-block ma-auto",class:{"hint-block--light":e.light}},[e.icon?t("div",{staticClass:"hint-block__icon"},[t(r.A,{attrs:{color:"appMain",small:""}},[e._v(e._s(e.icon))])],1):e._e(),t("div",{staticClass:"hint-block__body"},[e.title?t("h4",{staticClass:"mb-0"},[e._v(e._s(e.title))]):e._e(),e._t("default",function(){return[e.text?t("p",[e._v(e._s(e.text))]):e._e()]}),e.buttonText?t("UsageLimitCheck",{staticClass:"mt-3",attrs:{limit:e.limit}},[t(i.A,{attrs:{color:"appMain"},on:{click:function(t){return e.$emit("action")}}},[e._v(" "+e._s(e.buttonText)+" ")])],1):e._e()],2)])},n=[],s=l(51043),a={name:"HintBlock",components:{UsageLimitCheck:s["default"]},props:{icon:{type:String,default:"info"},title:String,text:String,buttonText:String,limit:String,light:Boolean}},d=a,c=l(81656),u=(0,c.A)(d,o,n,!1,null,null,null),f=u.exports},99988:function(e,t,l){l.r(t),l.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("hint-block",{attrs:{text:`No files found for "${e.search}"`,buttonText:"Clear search",light:""},on:{action:e.clearSearch}})},r=[],o=l(1910),n=l(20402),s={name:"FilesNotFound",components:{HintBlock:n.A},computed:{...(0,o.L8)("files",["search"])},methods:{...(0,o.PY)("files",["setSearch"]),clearSearch(){this.setSearch("");const e=window.location.pathname;history.pushState(null,"",e)}}},a=s,d=l(81656),c=(0,d.A)(a,i,r,!1,null,null,null),u=c.exports},63724:function(e,t,l){l.r(t),l.d(t,{default:function(){return b}});var i=l(39144),r=function(){var e=this,t=e._self._c;return e.search&&0===e.tableItems.length?t("files-not-found",{staticClass:"mt-12"}):t(i.A,{staticClass:"styled-table files-table",attrs:{"item-key":"id","hide-default-footer":"","fixed-header":"",headers:e.headers,items:e.tableItems,itemsPerPage:-1,"mobile-breakpoint":0},scopedSlots:e._u([{key:"item.name",fn:function({item:l}){return[t("div",{staticClass:"d-flex align-center file-name-cell",class:{"pr-5":l.folder&&!l.folder_id},on:{click:function(t){return e.openFolder(l)}}},[t("icon-base",{staticClass:"table-icon",attrs:{icon:e.getFileTypeIcon(l),alt:""}}),t("div",{staticClass:"ml-1 mt-1"},[e._v(" "+e._s(l.name)+" ")]),l.folder?e._e():t("IngestedBadge",{staticClass:"ml-2",attrs:{size:"16",type:"file",id:l.id}}),l.folder&&!l.folder_id?t("share-folder-button",{attrs:{"is-shared":l.shared_bookmarks?.length>0,size:"x-small"},on:{share:function(t){return e.openShareDialog(l.id)}}}):e._e()],1)]}},{key:"item.action",fn:function({item:e}){return[t("div",{staticClass:"d-flex"},[e.folder?[t("file-folder-controls",{attrs:{folder:e,direction:"right"}})]:t("file-controls",{attrs:{file:e,direction:"right"}})],2)]}},{key:"item.items",fn:function({item:l}){return[l.folder?t("span",[e._v(e._s(e.getChildrenCount(l)))]):e._e()]}}])})},o=[],n=(l(74423),l(44114),l(18111),l(22489),l(1910)),s=l(76126),a=l(18974),d=l(19008),c=l(85207),u=l(99988),f=l(52792),h=l(4696),m={name:"FilesTable",components:{FileFolderControls:d["default"],FileControls:c["default"],FilesNotFound:u["default"],IngestedBadge:f.A,ShareFolderButton:h.A},computed:{...(0,n.L8)("fileFolders",{folders:"all",getFileFolder:"byId"}),...(0,n.L8)("files",{files:"all",search:"search"}),folderId(){return this.$route.params.folderId||null},folder(){return this.getFileFolder(this.folderId)},filesList(){return this.folder?.system?this.folder?.files||[]:this.files},tableItems(){const e=[...this.folders,...this.filesList];return e.map(e=>{const t=void 0!==e.files_count;return{id:e.id,name:e.name||e.filename,items:0,folder_id:e.folder_id||null,files_count:e.files_count||0,folders_count:e.folders_count||0,shared_bookmarks:e.shared_bookmarks||[],mimetype:e.mimetype,folder:t,url:e.url||null}}).filter(e=>{const t=(e.folder_id||null)===this.folderId,l=!this.search||(0,s.Kt)(e.name,this.search);return t&&l})}},data(){return{headers:[{text:"",value:"action",cellClass:"fixed pl-2 pr-0",class:"fixed",width:50,sortable:!1}
1,{text:"Name",value:"name",cellClass:"fixed",class:"fixed",width:260,maxWidth:260,sortable:!0},{text:"Type",value:"mimetype",sortable:!0},{text:"Items",value:"items",width:100,sortable:!1}]}},methods:{getChildrenCount({files_count:e=0,folders_count:t=0}){return e+t},openShareDialog(e){a.A.$emit("openFileFolderShareDialog",e)},openFolder(e){e?.folder&&this.$router.push({name:"files-folder",params:{folderId:e.id}})},getFileTypeIcon({mimetype:e,folder:t}){if(t)return"custom/folder";const l=["video","audio","image"],i=e.split("/")[0],r=l.includes(i)?i:"file";return`custom/${r}`}}},p=m,_=l(81656),g=(0,_.A)(p,r,o,!1,null,null,null),b=g.exports},19008:function(e,t,l){l.r(t),l.d(t,{default:function(){return m}});var i=l(98983),r=l(17296),o=l(38273),n=function(){var e=this,t=e._self._c;return t("div",[e.loading||e.updating?t("div",[t("spinner",{attrs:{small:""}})],1):t("dropdown-menu-button",{attrs:{direction:e.direction,size:e.size}},[t(i.A,e._l(e.filteredActions,function(l,i){return t(r.A,{key:i,on:{click:function(t){return e.handleAction(l)}}},[t(o.UZ,[e._v(" "+e._s(l.text)+" ")])],1)}),1)],1)],1)},s=[],a=(l(18111),l(22489),l(1910)),d=l(18974),c={name:"FileFolderControls",props:{folder:{type:Object,default:()=>({})},updating:Boolean,gallery:Boolean,direction:String,size:{type:String,default:"small"}},data(){return{loading:!1,actions:[{text:"Edit",action:"editFolder"},{text:"Share to Group",action:"shareFolder",check:()=>!this.gallery&&!this.folder?.folder_id},{text:"Delete",action:"openDeleteConfirmation"}]}},computed:{filteredActions(){return this.actions.filter(e=>!e.check||e.check())},folderId(){return this.folder?.id||null}},methods:{...(0,a.i0)("fileFolders",{deleteFolder:"deleteOne"}),handleAction({action:e}){this[e]&&this[e]()},shareFolder(){d.A.$emit("openFileFolderShareDialog",this.folderId)},openDeleteConfirmation(){this.openConfirmationModal({title:"Delete Folder",text:"Are you sure you want to delete this folder and all the files it contains?",onConfirm:async()=>{this.loading=!0;try{await this.deleteFolder({id:this.folderId})}finally{this.loading=!1}}})},editFolder(){d.A.$emit("openFileFolderForm",this.folderId)}}},u=c,f=l(81656),h=(0,f.A)(u,n,s,!1,null,null,null),m=h.exports}}]);
2//# sourceMappingURL=view-files-common-FilesTable-vue.ea214bb5.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.