UNPKG

@syncfusion/ej2-filemanager

Version:
10 lines 256 kB
/*! * filename: ej2-filemanager.min.js * version : 29.1.37 * Copyright Syncfusion Inc. 2001 - 2024. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing * licensing@syncfusion.com. Any infringement will be prosecuted under * applicable laws. */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("SyncfusionBase"),require("SyncfusionLayouts"),require("SyncfusionPopups"),require("SyncfusionData"),require("SyncfusionGrids"),require("SyncfusionInputs"),require("SyncfusionButtons"),require("SyncfusionLists"),require("SyncfusionSplitbuttons"),require("SyncfusionNavigations")):"function"==typeof define&&define.amd?define(["SyncfusionBase","SyncfusionLayouts","SyncfusionPopups","SyncfusionData","SyncfusionGrids","SyncfusionInputs","SyncfusionButtons","SyncfusionLists","SyncfusionSplitbuttons","SyncfusionNavigations"],t):"object"==typeof exports?exports.SyncfusionFilemanager=t(require("SyncfusionBase"),require("SyncfusionLayouts"),require("SyncfusionPopups"),require("SyncfusionData"),require("SyncfusionGrids"),require("SyncfusionInputs"),require("SyncfusionButtons"),require("SyncfusionLists"),require("SyncfusionSplitbuttons"),require("SyncfusionNavigations")):e.SyncfusionFilemanager=t(e.SyncfusionBase,e.SyncfusionLayouts,e.SyncfusionPopups,e.SyncfusionData,e.SyncfusionGrids,e.SyncfusionInputs,e.SyncfusionButtons,e.SyncfusionLists,e.SyncfusionSplitbuttons,e.SyncfusionNavigations)}(self,((e,t,i,n,a,s,r,o,l,h)=>(()=>{"use strict";var d={766:t=>{t.exports=e},741:e=>{e.exports=r},74:e=>{e.exports=n},707:e=>{e.exports=a},323:e=>{e.exports=s},40:e=>{e.exports=t},90:e=>{e.exports=o},215:e=>{e.exports=h},197:e=>{e.exports=i},295:e=>{e.exports=l}},p={};function c(e){var t=p[e];if(void 0!==t)return t.exports;var i=p[e]={exports:{}};return d[e](i,i.exports,c),i.exports}c.d=(e,t)=>{for(var i in t)c.o(t,i)&&!c.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return(()=>{c.r(u),c.d(u,{ACTIVE:()=>Ie,ALT_DIALOG_ID:()=>H,AjaxSettings:()=>a,BLUR:()=>ye,BREADCRUMBBAR_ID:()=>X,BREADCRUMBS:()=>Ct,BreadCrumbBar:()=>Ss,CB_WRAP:()=>xe,CHECK:()=>Se,CHECK_SELECT:()=>ne,CLONE:()=>Me,COLLAPSED:()=>Nt,CONTENT_ID:()=>Q,CONTEXT_MENU_ID:()=>K,CONTROL:()=>ie,Column:()=>k,ContextMenu:()=>xs,ContextMenuSettings:()=>S,DETAILS_LABEL:()=>wt,DIALOG_ID:()=>_,DISPLAY_NONE:()=>jt,DROP_FILE:()=>Le,DROP_FOLDER:()=>ke,Delete:()=>Ia,DetailsView:()=>Ls,DetailsViewSettings:()=>v,Download:()=>Ga,EMPTY:()=>Pe,EMPTY_CONTENT:()=>Ee,EMPTY_INNER_CONTENT:()=>Re,ERROR_CONTENT:()=>Dt,EXTN_DIALOG_ID:()=>z,FILTER:()=>le,FOCUS:()=>we,FOCUSED:()=>De,FOLDER:()=>Te,FRAME:()=>Ce,FULLROW:()=>Pt,FileManager:()=>Es,GRID_CONTENT:()=>$e,GRID_HEADER:()=>We,GRID_ID:()=>U,GRID_VIEW:()=>Xe,GetDetails:()=>Oa,HEADER_CHECK:()=>Mt,HOVER:()=>Oe,ICONS:()=>Ot,ICON_BREADCRUMB:()=>mt,ICON_CLEAR:()=>bt,ICON_COLLAPSIBLE:()=>Et,ICON_COPY:()=>nt,ICON_CUT:()=>it,ICON_DELETE:()=>st,ICON_DETAILS:()=>lt,ICON_DOWNLOAD:()=>ct,ICON_DROP_IN:()=>vt,ICON_DROP_OUT:()=>yt,ICON_GRID:()=>ft,ICON_IMAGE:()=>Ae,ICON_LARGE:()=>gt,ICON_MUSIC:()=>Fe,ICON_NEWFOLDER:()=>ot,ICON_NO_DROP:()=>It,ICON_OPEN:()=>et,ICON_OPTIONS:()=>ut,ICON_PASTE:()=>at,ICON_REFRESH:()=>dt,ICON_RENAME:()=>rt,ICON_SELECTALL:()=>pt,ICON_SHORTBY:()=>ht,ICON_UPLOAD:()=>tt,ICON_VIDEO:()=>Ue,ICON_VIEW:()=>Ze,IMG_DIALOG_ID:()=>B,LARGEICON_ID:()=>V,LARGE_EMPTY_FOLDER:()=>_e,LARGE_EMPTY_FOLDER_TWO:()=>He,LARGE_ICON:()=>Ve,LARGE_ICONS:()=>ce,LARGE_ICON_FOLDER:()=>Be,LAYOUT:()=>he,LAYOUT_CONTENT:()=>pe,LAYOUT_ID:()=>T,LIST_ITEM:()=>fe,LIST_PARENT:()=>me,LIST_TEXT:()=>ge,LargeIconsView:()=>ws,MENU_ICON:()=>Je,MENU_ITEM:()=>Ye,MOBILE:()=>se,MOB_POPUP:()=>re,MULTI_SELECT:()=>oe,NAVIGATION:()=>de,NAVIGATION_ID:()=>A,NavigationPane:()=>ks,NavigationPaneSettings:()=>j,OVERLAY:()=>kt,RETRY_DIALOG_ID:()=>W,RETRY_ID:()=>Z,ROOT:()=>te,ROOT_POPUP:()=>ae,ROW:()=>je,ROWCELL:()=>Ne,RTL:()=>xt,SEARCH_ID:()=>ee,SELECTED_ITEMS:()=>ze,SORTBY_ID:()=>G,SPLITTER_ID:()=>J,SPLIT_BAR:()=>Rt,STATUS:()=>St,SUBMENU_ICON:()=>Qe,Search:()=>Wa,SearchSettings:()=>f,TB_ITEM:()=>ue,TB_OPTION_DOT:()=>ve,TB_OPTION_TICK:()=>be,TEMPLATE_CELL:()=>Ke,TEXT_CONTENT:()=>qe,TOOLBAR_ID:()=>L,TREE_ID:()=>F,TREE_VIEW:()=>Ge,Toolbar:()=>Rs,ToolbarItem:()=>h,ToolbarSettings:()=>l,UPLOAD_DIALOG_ID:()=>q,UPLOAD_ID:()=>$,UploadSettings:()=>E,VALUE:()=>Lt,VIEW_ID:()=>Y,Virtualization:()=>Ms,actionFailure:()=>ii,activeElement:()=>an,addBlur:()=>sn,afterRequest:()=>Zt,beforeDelete:()=>Ht,beforeDownload:()=>Ri,beforeRequest:()=>Qt,clearAllInit:()=>li,clearPathInit:()=>hi,closePopup:()=>pa,columnArray:()=>b,copyFiles:()=>gn,createDeniedDialog:()=>ia,createDialog:()=>Xa,createEmptyElement:()=>Dn,createEnd:()=>Vt,createExtDialog:()=>$a,createFolder:()=>ma,createImageDialog:()=>vs,createNewFolder:()=>ha,createVirtualDragElement:()=>Hn,cutCopyInit:()=>Oi,cutEnd:()=>Si,cutFiles:()=>mn,defaultToolbarItems:()=>o,deleteEnd:()=>qt,deleteInit:()=>zt,destroy:()=>Jt,detailsInit:()=>ui,doDeleteFiles:()=>ea,doDownload:()=>Zn,doDownloadFiles:()=>ta,doPasteUpdate:()=>Un,doRename:()=>$n,download:()=>ei,downloadInit:()=>Mi,dragCancel:()=>qn,dragEnd:()=>Li,dragHelper:()=>Ai,dragStartHandler:()=>zn,dragStopHandler:()=>Bn,dragging:()=>Fi,draggingHandler:()=>Yn,dropHandler:()=>Tn,dropInit:()=>ki,dropPath:()=>Ti,fileItems:()=>O,fileType:()=>bn,filter:()=>ba,filterEnd:()=>_t,finalizeEnd:()=>Ut,folderItems:()=>w,generatePath:()=>tn,getAccessClass:()=>na,getAccessDetails:()=>ua,getAllChildItems:()=>ln,getCssClass:()=>Nn,getDirectories:()=>Sn,getDirectoryPath:()=>Fn,getDuplicateData:()=>_n,getFullPath:()=>yn,getImageUrl:()=>vn,getItemName:()=>Qn,getLocaleText:()=>jn,getModule:()=>on,getName:()=>In,getObject:()=>wn,getParentPath:()=>An,getParents:()=>en,getPath:()=>Xi,getPathId:()=>$i,getPathNames:()=>Zi,getPathObject:()=>fn,getSortField:()=>En,getSortedData:()=>On,getTargetModule:()=>pn,getTargetPath:()=>ca,hasContentAccess:()=>ra,hasDownloadAccess:()=>la,hasEditAccess:()=>sa,hasReadAccess:()=>aa,hasUploadAccess:()=>oa,hideLayout:()=>Ci,hidePaste:()=>yi,initialEnd:()=>Ft,isFile:()=>Tt,isFileSystemData:()=>wa,layoutChange:()=>di,layoutItems:()=>D,layoutRefresh:()=>ti,menuItemData:()=>fi,methodCall:()=>Vi,modelChanged:()=>At,nodeExpand:()=>ci,objectToString:()=>Jn,openAction:()=>un,openEnd:()=>si,openInit:()=>ai,openSearchFolder:()=>Mn,paste:()=>ya,pasteEnd:()=>Di,pasteHandler:()=>kn,pasteInit:()=>wi,pathChanged:()=>Yt,pathColumn:()=>Pi,pathDrag:()=>Bt,permissionCopy:()=>zi,permissionDownload:()=>Wi,permissionEdit:()=>Hi,permissionEditContents:()=>Bi,permissionRead:()=>_i,permissionUpload:()=>qi,read:()=>ga,readDropPath:()=>Vn,refresh:()=>cn,refreshEnd:()=>Wt,removeActive:()=>nn,removeBlur:()=>rn,removeDropTarget:()=>Wn,removeItemClass:()=>Kn,rename:()=>va,renameEnd:()=>bi,renameEndParent:()=>mi,renameInit:()=>gi,resizeEnd:()=>Kt,scrollHandler:()=>Gn,search:()=>ni,searchTextChange:()=>Ei,searchWordHandler:()=>hn,selectAllInit:()=>oi,selectedData:()=>Ii,selectionChanged:()=>ri,setDateObject:()=>xn,setNextPath:()=>Rn,setNodeId:()=>Cn,showPaste:()=>vi,skipUpload:()=>$t,sortByChange:()=>pi,sortColumn:()=>Ni,sortComparer:()=>Ji,sortbyClickHandler:()=>Pn,splitterResize:()=>Gt,treeSelect:()=>ji,updateLayout:()=>dn,updatePath:()=>Qi,updateRenamingData:()=>Xn,updateSelectionData:()=>Ui,updateTreeSelection:()=>xi,upload:()=>Xt,uploadItem:()=>da,validateSubFolder:()=>Ln});var e,t=c(766),i=(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)},function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),n=function(e,t,i,n){var a,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},a=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return i(a,e),n([(0,t.Property)(null)],a.prototype,"downloadUrl",void 0),n([(0,t.Property)(null)],a.prototype,"getImageUrl",void 0),n([(0,t.Property)(null)],a.prototype,"uploadUrl",void 0),n([(0,t.Property)(null)],a.prototype,"url",void 0),a}(t.ChildProperty),s=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),r=function(e,t,i,n){var a,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},o=["NewFolder","Upload","Cut","Copy","Paste","Delete","Download","Rename","SortBy","Refresh","Selection","View","Details"],l=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return s(i,e),r([(0,t.Property)(o)],i.prototype,"items",void 0),r([(0,t.Property)(!0)],i.prototype,"visible",void 0),i}(t.ChildProperty),h=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return s(i,e),r([(0,t.Property)("")],i.prototype,"id",void 0),r([(0,t.Property)("")],i.prototype,"text",void 0),r([(0,t.Property)("auto")],i.prototype,"width",void 0),r([(0,t.Property)("")],i.prototype,"cssClass",void 0),r([(0,t.Property)(!1)],i.prototype,"showAlwaysInPopup",void 0),r([(0,t.Property)(!1)],i.prototype,"disabled",void 0),r([(0,t.Property)("")],i.prototype,"prefixIcon",void 0),r([(0,t.Property)("")],i.prototype,"suffixIcon",void 0),r([(0,t.Property)(!0)],i.prototype,"visible",void 0),r([(0,t.Property)("None")],i.prototype,"overflow",void 0),r([(0,t.Property)("")],i.prototype,"template",void 0),r([(0,t.Property)("Button")],i.prototype,"type",void 0),r([(0,t.Property)("Both")],i.prototype,"showTextOn",void 0),r([(0,t.Property)(null)],i.prototype,"htmlAttributes",void 0),r([(0,t.Property)("")],i.prototype,"tooltipText",void 0),r([(0,t.Property)("Left")],i.prototype,"align",void 0),r([(0,t.Property)(-1)],i.prototype,"tabIndex",void 0),r([(0,t.Property)()],i.prototype,"name",void 0),i}(t.ChildProperty),d=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),p=function(e,t,i,n){var a,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},f=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return d(i,e),p([(0,t.Property)(!0)],i.prototype,"allowSearchOnTyping",void 0),p([(0,t.Property)("contains")],i.prototype,"filterType",void 0),p([(0,t.Property)(!0)],i.prototype,"ignoreCase",void 0),p([(0,t.Property)(null)],i.prototype,"placeholder",void 0),i}(t.ChildProperty),g=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),m=function(e,t,i,n){var a,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},b=[{field:"name",headerText:"Name",minWidth:120,template:'<span class="e-fe-text">${name}</span>',customAttributes:{class:"e-fe-grid-name"}},{field:"_fm_modified",headerText:"DateModified",type:"dateTime",format:"MMMM dd, yyyy HH:mm",minWidth:120,width:"190"},{field:"size",headerText:"Size",minWidth:90,width:"110",template:(0,t.initializeCSPTemplate)((function(e){return'<span class="e-fe-size">'+e.size+"</span>"})),format:"n2"}],v=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return g(i,e),m([(0,t.Property)(!0)],i.prototype,"columnResizing",void 0),m([(0,t.Property)(b)],i.prototype,"columns",void 0),i}(t.ChildProperty),y=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),I=function(e,t,i,n){var a,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},O=["Open","|","Cut","Copy","|","Delete","Download","Rename","|","Details"],w=["Open","|","Cut","Copy","Paste","|","Delete","Rename","Download","|","Details"],D=["SortBy","View","Refresh","|","Paste","|","NewFolder","Upload","|","Details","|","SelectAll"],S=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return y(i,e),I([(0,t.Property)(O)],i.prototype,"file",void 0),I([(0,t.Property)(w)],i.prototype,"folder",void 0),I([(0,t.Property)(D)],i.prototype,"layout",void 0),I([(0,t.Property)(!0)],i.prototype,"visible",void 0),i}(t.ChildProperty),C=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),x=function(e,t,i,n){var a,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},j=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return C(i,e),x([(0,t.Property)("650px")],i.prototype,"maxWidth",void 0),x([(0,t.Property)("240px")],i.prototype,"minWidth",void 0),x([(0,t.Property)(!0)],i.prototype,"visible",void 0),x([(0,t.Property)("None")],i.prototype,"sortOrder",void 0),i}(t.ChildProperty),N=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),P=function(e,t,i,n){var a,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},E=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return N(i,e),P([(0,t.Property)("")],i.prototype,"allowedExtensions",void 0),P([(0,t.Property)(!0)],i.prototype,"autoUpload",void 0),P([(0,t.Property)(!1)],i.prototype,"autoClose",void 0),P([(0,t.Property)(!1)],i.prototype,"directoryUpload",void 0),P([(0,t.Property)(0)],i.prototype,"minFileSize",void 0),P([(0,t.Property)(3e7)],i.prototype,"maxFileSize",void 0),P([(0,t.Property)(0)],i.prototype,"chunkSize",void 0),i}(t.ChildProperty),R=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),M=function(e,t,i,n){var a,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},k=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return R(i,e),M([(0,t.Property)("")],i.prototype,"field",void 0),M([(0,t.Property)("")],i.prototype,"headerText",void 0),M([(0,t.Property)("")],i.prototype,"width",void 0),M([(0,t.Property)("")],i.prototype,"minWidth",void 0),M([(0,t.Property)("")],i.prototype,"maxWidth",void 0),M([(0,t.Property)("Left")],i.prototype,"textAlign",void 0),M([(0,t.Property)(null)],i.prototype,"headerTextAlign",void 0),M([(0,t.Property)(null)],i.prototype,"type",void 0),M([(0,t.Property)(null)],i.prototype,"format",void 0),M([(0,t.Property)(null)],i.prototype,"template",void 0),M([(0,t.Property)(null)],i.prototype,"sortComparer",void 0),M([(0,t.Property)(null)],i.prototype,"headerTemplate",void 0),M([(0,t.Property)(!0)],i.prototype,"allowSorting",void 0),M([(0,t.Property)(!0)],i.prototype,"allowResizing",void 0),M([(0,t.Property)(null)],i.prototype,"customAttributes",void 0),M([(0,t.Property)("")],i.prototype,"hideAtMedia",void 0),M([(0,t.Property)(null)],i.prototype,"customFormat",void 0),M([(0,t.Property)(!1)],i.prototype,"isPrimaryKey",void 0),i}(t.ChildProperty),L="_toolbar",T="_layout",A="_navigation",F="_tree",U="_grid",V="_largeicons",_="_dialog",H="_alt_dialog",B="_img_dialog",z="_extn_dialog",q="_upload_dialog",W="_retry_dialog",K="_contextmenu",G="_sortby",Y="_view",J="_splitter",Q="_content",X="_breadcrumbbar",$="_upload",Z="_retry",ee="_search",te="e-filemanager",ie="e-control",ne="e-fe-cb-select",ae="e-fe-popup",se="e-fe-mobile",re="e-fe-popup e-fe-mobile",oe="e-fe-m-select",le="e-fe-m-filter",he="e-layout",de="e-navigation",pe="e-layout-content",ce="e-large-icons",ue="e-toolbar-item",fe="e-list-item",ge="e-list-text",me="e-list-parent",be="e-icons e-fe-tick",ve="e-icons e-fe-dot",ye="e-blur",Ie="e-active",Oe="e-hover",we="e-focus",De="e-focused",Se="e-check",Ce="e-frame",xe="e-checkbox-wrapper",je="e-row",Ne="e-rowcell",Pe="e-empty",Ee="e-empty-content",Re="e-empty-inner-content",Me="e-fe-clone",ke="e-fe-drop-folder",Le="e-fe-drop-file",Te="e-fe-folder",Ae="e-fe-image",Fe="e-fe-music",Ue="e-fe-video",Ve="e-large-icon",_e="e-empty-icon e-fe-folder",He="e-empty-icon.e-fe-folder",Be="e-fe-folder",ze="e-items",qe="e-text-content",We="e-gridheader",Ke="e-templatecell",Ge="e-treeview",Ye="e-menu-item",Je="e-menu-icon",Qe="e-caret",Xe="e-content",$e="e-gridcontent",Ze="e-list-parent",et="e-icons e-fe-open",tt="e-icons e-fe-upload",it="e-icons e-fe-cut",nt="e-icons e-fe-copy",at="e-icons e-fe-paste",st="e-icons e-fe-delete",rt="e-icons e-fe-rename",ot="e-icons e-fe-newfolder",lt="e-icons e-fe-details",ht="e-icons e-fe-sort",dt="e-icons e-fe-refresh",pt="e-icons e-fe-select",ct="e-icons e-fe-download",ut="e-icons e-fe-options",ft="e-icons e-fe-grid",gt="e-icons e-fe-large",mt="e-icons e-fe-breadcrumb",bt="e-icons e-fe-clear",vt="e-icons e-fe-drop-in",yt="e-icons e-fe-drop-out",It="e-icons e-fe-no-drop",Ot="e-icons",wt="e-detailslabel",Dt="e-fe-errorcontent",St="e-status",Ct="e-address",xt="e-rtl",jt="e-display-none",Nt="e-node-collapsed",Pt="e-fullrow",Et="e-icon-collapsible",Rt="e-split-bar",Mt="e-headercheck",kt="e-fe-overlay",Lt="e-fe-value",Tt="isFile",At="model-changed",Ft="initial-end",Ut="finalize-end",Vt="create-end",_t="filter-end",Ht="before-delete",Bt="path-drag",zt="delete-init",qt="delete-end",Wt="refresh-end",Kt="resize-end",Gt="splitter-resize",Yt="path-changed",Jt="destroy",Qt="before-request",Xt="upload",$t="skip-upload",Zt="after-request",ei="download",ti="layout-refresh",ii="actionFailure",ni="search",ai="open-init",si="open-end",ri="selection-changed",oi="select-all-init",li="clear-all-init",hi="clear-path-init",di="layout-change",pi="sort-by-change",ci="node-expand",ui="details-init",fi="menu-item-data",gi="rename-init",mi="rename-end-parent",bi="rename-end",vi="show-paste",yi="hide-paste",Ii="selected-data",Oi="cut-copy-init",wi="paste-init",Di="paste-end",Si="cut-end",Ci="hide-layout",xi="update-tree-selection",ji="select-node",Ni="sort-column",Pi="path-column",Ei="search-change",Ri="before-download",Mi="download-init",ki="drop-init",Li="drag-end",Ti="drop-path",Ai="drag-helper",Fi="dragging",Ui="update-selection-data",Vi="method-call",_i="read",Hi="write",Bi="writeContents",zi="copy",qi="upload",Wi="download",Ki=c(40),Gi=c(197),Yi=c(74);function Ji(e,t){var i=/\.\S+/.test(e),n=/\.\S+/.test(t);if(i&&!n)return 1;if(!i&&n)return-1;var a=[],s=[];for((e+"").replace(/(\d+)|(\D+)/g,(function(e,t,i){return a.push([t||1/0,i||""]),""})),(t+"").replace(/(\d+)|(\D+)/g,(function(e,t,i){return s.push([t||1/0,i||""]),""}));a.length&&s.length;){var r=a.shift(),o=s.shift();if(r&&o){var l=r[0]-o[0]||r[1].localeCompare(o[1]);if(l)return l}}return a.length-s.length}function Qi(e,i,n){var a=(0,t.getValue)("name",i),s=e.getAttribute("data-id"),r=(0,t.isNullOrUndefined)(s)?a:s;n.setProperties({path:Xi(e,r,n.hasId)},!0),n.pathId=$i(e),n.pathNames=Zi(e,a)}function Xi(e,t,i){for(var n=en(e,t,!1,i),a="/",s=n.length-2;s>=0;s--)a+=n[s]+"/";return a}function $i(e){for(var t=en(e,e.getAttribute("data-uid"),!0),i=[],n=t.length-1;n>=0;n--)i.push(t[n]);return i}function Zi(e,t){for(var i=en(e,t,!1),n=[],a=i.length-1;a>=0;a--)n.push(i[a]);return n}function en(e,i,n,a){for(var s=[i],r=e.parentNode;!(0,t.isNullOrUndefined)(r);){if((0,t.matches)(r,"."+fe)){var o=n?r.getAttribute("data-uid"):a?r.getAttribute("data-id"):(0,t.select)("."+ge,r).textContent;s.push(o)}if((r=r.parentNode).classList.contains(Ge))break}return s}function tn(e){for(var i=e.hasId?"id":"name",n="/",a=1;a<e.pathId.length;a++){var s=(0,t.getValue)(e.pathId[parseInt(a.toString(),10)],e.feParent);n+=(0,t.getValue)(i,s)+"/"}e.setProperties({path:n},!0)}function nn(e){e.isCut&&(rn(e),e.selectedNodes=[],e.actionRecords=[],e.enablePaste=!1,e.notify(yi,{}))}function an(e,i){if(i.isSearchCut=!1,i.actionRecords=[],i.activeElements=[],i.notify(Oi,{}),0===i.activeElements.length)return!1;rn(i);var n=i.activeElements;"navigationpane"!==i.activeModule?i.targetPath=i.path:i.targetPath=An(i.path);var a=0;if(n&&(on(i,n[0]),"cut"===e))for(;a<n.length;)sn(n[a]),a++;for(a=0,i.selectedNodes=[],i.enablePaste=!0,i.notify(vi,{});a<i.activeRecords.length;)i.actionRecords.push(i.activeRecords[a]),i.selectedNodes.push((0,t.getValue)("name",i.activeRecords[a])),a++;if((""!==i.breadcrumbbarModule.searchObj.element.value||i.isFiltered)&&"navigationpane"!==i.activeModule){i.selectedNodes=[],i.isSearchCut=!0;for(var s=0;s<i.selectedItems.length;)i.selectedNodes.push(i.selectedItems[s]),s++}return!0}function sn(e){e.classList.add(ye)}function rn(e,t){for(var i=t?e.element.querySelectorAll("."+Oe):e.element.querySelectorAll("."+ye),n=0;n<i.length;)i[n].classList.remove(t?Oe:ye),n++}function on(e,i){i&&(i.classList.contains(je)?e.activeModule="detailsview":(0,t.closest)(i,"."+Ve)?e.activeModule="largeiconsview":e.activeModule="navigationpane")}function ln(e,t){var i=e.fileSystemData.filter((function(e){return String(e.parentId)===String(t)})),n=i.slice();return i.forEach((function(t){var i=t.id;n=n.concat(ln(e,i))})),n}function hn(e,i,n){var a;if(0!==i.length||e.isFiltered||e.notify(Pi,{args:e}),wa(e))if(""===i)e.itemData=e.fileSystemData,ga(e,n?di:ni,e.path);else{e.searchSettings.filterType=(0,t.isNullOrUndefined)(e.searchSettings.filterType)?"contains":e.searchSettings.filterType;var s=(0,t.getValue)(e.pathId[e.pathId.length-1],e.feParent),r=ln(e,(0,t.getValue)("id",s)),o=new Yi.DataManager(r).executeLocal((new Yi.Query).where("name",e.searchSettings.filterType,i,e.searchSettings.ignoreCase)),l=e.searchSettings.ignoreCase?i.toLowerCase():i;e.itemData=o,Wa(e,n?di:ni,e.path,l,e.showHiddenItems,!e.searchSettings.ignoreCase)}else if(a="startsWith"===e.searchSettings.filterType?i+"*":"endsWith"===e.searchSettings.filterType?"*"+i:"*"+i+"*",e.searchWord=a,e.itemData=[fn(e)],i.length>0){var h=e.searchSettings.ignoreCase,d=e.showHiddenItems;Wa(e,n?di:ni,e.path,a,d,!h)}else e.isFiltered?ba(e,di):e.isSortByClicked?(e.notify(di,{files:"Details"===e.oldView?e.detailsviewModule.gridObj.dataSource:e.largeiconsviewModule.allItems}),e.isSortByClicked=!1):ga(e,n?di:ni,e.path)}function dn(e,t){e.oldView=e.view,e.setProperties({view:t},!0),(""!==e.breadcrumbbarModule.searchObj.element.value||e.isFiltered)&&(e.layoutSelectedItems=e.selectedItems);var i="";e.breadcrumbbarModule.searchObj.element.value&&(i=e.breadcrumbbarModule.searchObj.element.value),e.isLayoutChange=!0,hn(e,i,!0)}function pn(e,i){var n="";i&&(n=(0,t.closest)(i,"."+te+"."+ie+" ."+$e)?"detailsview":(0,t.closest)(i,"."+ce)?"largeiconsview":i.classList.contains("e-fullrow")||i.classList.contains("e-icon-expandable")?"navigationpane":(0,t.closest)(i,".e-address-list-item")?"breadcrumbbar":""),e.targetModule=n}function cn(e){e.itemData=[fn(e)],aa(e.itemData[0])?ga(e,Wt,e.path):ia(e,e.itemData[0],_i)}function un(e){ga(e,si,e.path)}function fn(e){return(0,t.getValue)(e.pathId[e.pathId.length-1],e.feParent)}function gn(e){an("copy",e)&&(e.fileAction="copy")}function mn(e){an("cut",e)&&(e.isCut=!0,e.fileAction="move")}function bn(e){if(!(0,t.getValue)("isFile",e))return Te;var i=(0,t.getValue)("type",e);return-1!==(i=i.toLowerCase()).indexOf(".")&&(i=i.split(".").join("")),-1!==["bmp","dib","jpg","jpeg","jpe","jfif","gif","tif","tiff","png","ico"].indexOf(i)?Ae:-1!==["mp3","wav","aac","ogg","wma","aif","fla","m4a"].indexOf(i)?Fe:-1!==["webm","mkv","flv","vob","ogv","ogg","avi","wmv","mp4","3gp"].indexOf(i)?Ue:-1!==["css","exe","html","js","msi","pdf","pptx","ppt","rar","zip","txt","docx","doc","xlsx","xls","xml","rtf","php"].indexOf(i)?"e-fe-"+i:"e-fe-unknown e-fe-"+i}function vn(e,i){var n=wa(e)?(0,t.getValue)("imageUrl",i):"";if(wa(e)){var a={fileDetails:[i],imageUrl:n};return e.trigger("beforeImageLoad",a),a.imageUrl}var s=e.ajaxSettings.getImageUrl?e.ajaxSettings.getImageUrl:e.ajaxSettings.url,r=-1!==s.indexOf("?")?"&path=":"?path=",o=encodeURIComponent((0,t.getValue)("name",i)),l=(0,t.getValue)("filterPath",i);if(e.hasId){var h=(0,t.getValue)("id",i);n=s+r+e.path+"&id="+h}else n=(0,t.isNullOrUndefined)(l)?s+r+e.path+o:s+r+encodeURIComponent(l.replace(/\\/g,"/"))+o;var d={fileDetails:[i],imageUrl:n=n+"&time="+(new Date).getTime().toString()};return e.trigger("beforeImageLoad",d),d.imageUrl}function yn(e,i,n){var a=(0,t.getValue)(e.hasId?"id":"name",i)+"/",s=(0,t.getValue)(e.hasId?"filterId":"filterPath",i);return(0,t.isNullOrUndefined)(s)?n+a:s.replace(/\\/g,"/").replace(/^.*?(?=\/)/,"")+a}function In(e,i){var n=(0,t.getValue)("name",i),a=(0,t.getValue)("filterPath",i);return""===e.breadcrumbbarModule.searchObj.element.value&&!e.isFiltered||(0,t.isNullOrUndefined)(a)||(n=(a=a.replace(/\\/g,"/")).replace(e.path,"")+n),n}function On(e,i){if(0===i.length)return i;var n;n="None"===e.sortOrder||(0,t.isNullOrUndefined)(e.sortOrder)?(new Yi.Query).group("isFile"):(new Yi.Query).sortBy(e.sortBy,e.sortOrder.toLowerCase(),!0).group("isFile");var a=new Yi.DataManager(i).executeLocal(n);return(0,t.getValue)("records",a)}function wn(e,i,n){return(0,t.getValue)(e.pathId[e.pathId.length-1],e.feFiles).filter((function(e){return e[i].toString()===n}))[0]}function Dn(e,i,n){var a,s=(0,t.select)("#"+e.element.id+T,e.element),r=(0,t.select)("#"+e.element.id+X,s).offsetHeight;if(a=s.offsetHeight-r,"Details"===e.view&&(a-=(0,t.select)("."+We,s).offsetHeight),(0,t.isNullOrUndefined)(i.querySelector("."+Pe))){var o=(0,t.createElement)("div",{className:Pe}),l=(0,t.createElement)("div",{className:_e}),h=(0,t.createElement)("div",{className:Ee}),d=(0,t.createElement)("div",{className:Re});"Details"===e.view?i.querySelector("."+Xe).appendChild(o):i.appendChild(o),o.appendChild(l),o.appendChild(h),o.appendChild(d)}i.querySelector("."+Pe)&&((0,t.isNullOrUndefined)(n.error)?e.isFiltered?(i.querySelector("."+Ee).innerHTML=jn(e,"Filter-Empty"),i.querySelector("."+Re).innerHTML=jn(e,"Filter-Key")):""!==e.breadcrumbbarModule.searchObj.element.value?(i.querySelector("."+Ee).innerHTML=jn(e,"Search-Empty"),i.querySelector("."+Re).innerHTML=jn(e,"Search-Key")):(i.querySelector("."+Ee).innerHTML=jn(e,"Folder-Empty"),i.querySelector("."+Re).innerHTML=jn(e,"File-Upload")):(i.querySelector("."+Ee).innerHTML=jn(e,"Access-Denied"),i.querySelector("."+Re).innerHTML=jn(e,"Access-Details")));var p=(0,t.select)("."+Pe,i);a=(a-p.offsetHeight)/2,p.style.marginTop=a+"px"}function Sn(e){return new Yi.DataManager(e).executeLocal((new Yi.Query).where(Tt,"equal",!1,!1))}function Cn(e,i){for(var n=Sn(e.files),a=0,s=n.length;a<s;a++)(0,t.setValue)("_fm_id",i+"_"+a,n[a])}function xn(e){for(var i=0;i<e.length;i++){var n=new Date((0,t.getValue)("dateCreated",e[i])),a=new Date((0,t.getValue)("dateModified",e[i]));(0,t.setValue)("_fm_created",n,e[i]),(0,t.setValue)("_fm_modified",a,e[i])}}function jn(e,t){var i=e.localeObj.getConstant(t);return""===i?t:i}function Nn(e,i){var n=e.cssClass;return n=(0,t.isNullOrUndefined)(n)||""===n?i:n+" "+i}function Pn(e,t){e.isSortByClicked=!0,-1!==t.item.id.indexOf("ascending")||-1!==t.item.id.indexOf("descending")||-1!==t.item.id.indexOf("none")?e.sortOrder=En(t.item.id):e.sortBy=En(t.item.id,e),e.itemData=[fn(e)],"Details"===e.view&&(e.isMobile?dn(e,"Details"):(e.notify(Ni,{module:"detailsview"}),e.isSortByClicked=!1)),"LargeIcons"===e.view&&dn(e,"LargeIcons"),e.notify(pi,{})}function En(e,t){var i,n=e.substring(e.lastIndexOf("_")+1),a=n;switch(t&&(i=t.detailsViewSettings.columns),n){case"date":for(var s=0,r=i.length;s<r;s++){if("dateModified"===i[s].field||"dateCreated"===i[s].field){a=i[s].field;break}a="_fm_modified"}break;case"ascending":a="Ascending";break;case"descending":a="Descending";break;case"none":a="None"}return a}function Rn(e,i){for(var n=i.split("/"),a=e.originalPath.split("/"),s=(0,t.getValue)(e.pathId[0],e.feParent),r=(0,t.isNullOrUndefined)((0,t.getValue)("id",s))?"name":"id",o=n.length-1,l=a.length-1;o<l;o++){var h=""===a[o+1]?Ut:Ft,d=""===a[o]?"/":e.path+a[o]+"/",p=wn(e,r,a[parseInt(o.toString(),10)]),c=(0,t.getValue)("_fm_id",p);e.setProperties({path:d},!0),(0,t.isNullOrUndefined)(c)||e.pathId.push(c),e.itemData=[p],e.pathNames.push((0,t.getValue)("name",p)),ga(e,h,e.path);break}}function Mn(e,i){e.originalPath=yn(e,i,e.path);var n=(0,t.getValue)(e.pathId[0],e.feParent),a=e.feParent[(0,t.getValue)("_fm_id",e.itemData[0])],s=(0,t.isNullOrUndefined)(a)||"fe_tree"===(0,t.getValue)("_fm_id",a),r=wn(e,(0,t.isNullOrUndefined)((0,t.getValue)("id",n))?"name":"id",wa(e)?(0,t.getValue)("id",i):(0,t.getValue)("name",i));if((0,t.isNullOrUndefined)(r)){if(s)return void Rn(e,e.path);e.notify(hi,{selectedNode:e.pathId[e.pathId.length-1]})}else{var o=(0,t.getValue)("_fm_id",r);e.setProperties({path:e.originalPath},!0),e.pathId.push(o),e.itemData=[r],e.pathNames.push((0,t.getValue)("name",r))}ga(e,e.path!==e.originalPath?Ft:Ut,e.path)}function kn(e){if(e.isDragDrop=!1,0!==e.selectedNodes.length&&e.enablePaste){var t=""===e.folderPath?e.path:e.folderPath;if("navigationpane"!==e.activeModule||e.selectedNodes[0].includes("/")||(e.targetPath=ca(e,e.actionRecords[0])),!Ln(e,e.actionRecords,t,e.path))if("move"===e.fileAction&&e.targetPath!==t||"copy"===e.fileAction)e.notify(wi,{}),ya(e,e.targetPath,e.selectedNodes,t,e.fileAction,[],e.actionRecords);else e.enablePaste=!1,e.notify(yi,{}),rn(e),Xa(e,"Error",{files:null,error:{code:"402",message:jn(e,"Same-Folder-Error"),fileExists:null}})}}function Ln(e,i,n,a){for(var s=!1,r=0;r<i.length;r++)if((0,t.getValue)("isFile",i[r])){var o=e.dragData[r]?e.dragData[r].name:null,l=wa(e)?o:e.dragNodes[r],h=0;l&&(h=l.lastIndexOf("/"));var d="";if(h>0&&(d=a+l.substring(0,h+1)),d===n){Xa(e,"Error",{files:null,error:{code:"402",message:jn(e,"Same-Folder-Error"),fileExists:null}}),s=!0;break}}else{var p=yn(e,i[r],a);if(0===n.indexOf(p)){Xa(e,"Error",{files:null,error:{code:"402",message:jn(e,"Sub-Folder-Error"),fileExists:null}}),s=!0;break}}return s}function Tn(e){(e.isDragDrop=!0,0!==e.dragData.length)&&(e.dragPath=e.dragPath.replace(/\\/g,"/"),e.dropPath=e.dropPath.replace(/\\/g,"/"),Ln(e,e.dragData,e.dropPath,e.dragPath)||e.dragPath===e.dropPath||(e.itemData=[e.dropData],ya(e,e.dragPath,e.dragNodes,e.dropPath,"move",[],e.dragData),e.notify(wi,{})))}function An(e){for(var t=e.split("/"),i=t[0]+"/",n=1;n<t.length-2;n++)i+=t[n]+"/";return i}function Fn(e,i){var n=(0,t.getValue)(e.hasId?"id":"name",i.cwd)+"/",a=(0,t.getValue)(e.hasId&&!(0,t.isNullOrUndefined)(e.ajaxSettings.url)?"filterId":"filterPath",i.cwd);return(0,t.isNullOrUndefined)(a)?wa(e)?n:e.path+n:""===a?"/":a.replace(/\\/g,"/").replace(/^.*?(?=\/)/,"")+n}function Un(e,t,i){"move"===t&&(e.isDragDrop?e.notify(Li,i):(e.enablePaste=!1,e.notify(yi,{}),e.notify(Si,i))),0===e.duplicateItems.length&&(e.pasteNodes=[]);for(var n=0;n<i.files.length;n++)e.pasteNodes.push(i.files[n][e.hasId?"id":"name"]),e.isDragDrop&&e.droppedObjects.push(i.files[n]);e.duplicateItems=[],e.duplicateRecords=[],e.isDragDrop&&!e.isPasteError?e.isDropEnd=!0:e.isDropEnd=!1,e.trigger("success",{action:t,result:i}),!e.isDragDrop||e.path===e.dragPath||e.path===e.dropPath||e.isSearchDrag?(e.isPathDrag=!1,ga(e,Di,e.path)):Vn(e)}function Vn(e){var i=(0,t.getValue)("_fm_id",e.dropData);if(e.expandedId=i,e.itemData=[e.dropData],e.isPathDrag)e.notify(Bt,e.itemData);else{if(e.navigationpaneModule){var n=(0,t.select)('[data-uid="'+i+'"]',e.navigationpaneModule.treeObj.element);if(!n)i=document.querySelector('[data-id = "'+(0,t.getValue)("id",e.dropData)+'"]').getAttribute("data-uid"),n=(0,t.select)('[data-uid="'+i+'"]',e.navigationpaneModule.treeObj.element);Qi(n,e.dropData,e)}ga(e,Ti,e.dropPath)}}function _n(e,i){for(var n=null,a=e.isDragDrop?e.dragData:e.actionRecords,s=0;s<a.length;s++)if((0,t.getValue)("name",a[s])===i){n=a[s];break}return n}function Hn(e){if(e.isSearchDrag=!1,""!==e.breadcrumbbarModule.searchObj.element.value&&(e.isSearchDrag=!0),"navigationpane"!==e.activeModule){e.dragNodes=[];for(var t=0;t<e.selectedItems.length;)e.dragNodes.push(e.selectedItems[t]),t++;0===e.selectedItems.length&&e.dragData&&1===e.dragData.length&&e.dragNodes.push(Qn(e,e.dragData[0]))}var i=e.createElement("div",{className:"e-fe-icon "+bn(e.dragData[0])}),n=e.createElement("div",{className:"e-fe-name",innerHTML:e.dragData[0].name}),a=e.createElement("div",{className:"e-fe-content"});a.appendChild(i),a.appendChild(n);var s=e.createElement("div",{className:Me});if(s.appendChild(a),e.dragNodes.length>1){var r=e.createElement("span",{className:"e-fe-count",innerHTML:e.dragNodes.length.toString(10)});s.appendChild(r)}e.virtualDragElement=s,e.element.appendChild(e.virtualDragElement)}function Bn(e,i){var n=i;n.cancel=!1,null!=e.treeExpandTimer&&(window.clearTimeout(e.treeExpandTimer),e.treeExpandTimer=null),Wn(e),e.element.classList.remove("e-fe-drop","e-no-drop"),rn(e),e.uploadObj.dropArea=(0,t.select)("#"+e.element.id+Q,e.element);var a=(0,t.select)("."+Me,e.element);a&&(0,t.detach)(a),pn(e,i.target),e.notify(ki,i),rn(e,"hover"),n.fileDetails=e.dragData,e.trigger("fileDragStop",n,(function(i){!i.cancel&&!(0,t.isNullOrUndefined)(e.targetModule)&&""!==e.targetModule&&e.dragCount>2&&Tn(e),e.dragCount=0}))}function zn(e,i,n){var a=i;if(a.cancel=!1,a.fileDetails=e.dragData,e.dragCount=0,e.droppedObjects=[],(!e.allowDragAndDrop||"navigationpane"===e.activeModule&&(0,t.closest)(i.element,"li").getAttribute("data-uid")===e.pathId[0])&&(a.cancel=!0),"navigationpane"===e.activeModule&&-1!==e.pathId.indexOf((0,t.closest)(i.element,"li").getAttribute("data-uid"))?e.isPathDrag=!0:e.isPathDrag=!1,rn(e),a.cancel)n.intDestroy(i.event),qn(e);else if(!a.cancel){for(var s=0;s<e.activeElements.length;)sn(e.activeElements[s]),s++;e.trigger("fileDragStart",a,(function(t){t.cancel?(n.intDestroy(i.event),qn(e)):e.uploadObj.dropArea=null}))}}function qn(e){rn(e);var i=(0,t.select)("."+Me,e.element);i&&(0,t.detach)(i)}function Wn(e){Kn(e,ke),Kn(e,Le)}function Kn(e,t){for(var i=e.element.querySelectorAll("."+t),n=0;n<i.length;n++)i[n].classList.remove(t)}function Gn(e,i,n,a){var s,r=e.getBoundingClientRect(),o=(0,t.select)("."+n,e);a>=r.top+e.clientHeight-30&&!(0,t.isNullOrUndefined)(o)&&(s="navigationpane"===i.targetModule||"detailsview"===i.targetModule?o.offsetHeight/2.5:o.offsetHeight/4.5,e.scrollBy(0,s)),!(0,t.isNullOrUndefined)(o)&&a<=r.top+30&&(s="navigationpane"===i.targetModule||"detailsview"===i.targetModule?o.offsetHeight/2.5:o.offsetHeight/4.5,e.scrollBy(0,-s))}function Yn(e,i){var n=i;n.fileDetails=e.dragData;var a=!1;pn(e,i.target),Wn(e),null!=e.treeExpandTimer&&(window.clearTimeout(e.treeExpandTimer),e.treeExpandTimer=null),rn(e,"hover");var s=null;"navigationpane"===e.targetModule?((s=(0,t.closest)(i.target,"li")).classList.add(Oe,ke),a=!0,e.treeExpandTimer=window.setTimeout((function(){e.notify(Fi,i)}),800),Gn(e.navigationpaneModule.treeObj.element.parentElement,e,"e-level-2",i.event.y)):"detailsview"===e.targetModule?((s=(0,t.closest)(i.target,"tr"))&&s.querySelector("."+Te)&&!s.classList.contains(ye)?s.classList.add(ke):!s||s.querySelector("."+Te)||s.classList.contains(ye)||s.classList.add(Le),a=!0,Gn(e.detailsviewModule.gridObj.element.querySelector(".e-content"),e,"e-row",i.event.y)):"largeiconsview"===e.targetModule?((s=(0,t.closest)(i.target,"li"))&&s.querySelector("."+Te)&&!s.classList.contains(ye)&&s.classList.add(Oe,ke),a=!0,Gn(e.largeiconsviewModule.element.firstElementChild,e,"e-large-icon",i.event.y)):"breadcrumbbar"===e.targetModule&&(a=!0),e.element.classList.remove("e-fe-drop","e-no-drop"),e.element.classList.add(a?"e-fe-drop":"e-no-drop"),e.dragCount=e.dragCount+1,e.trigger("fileDragging",n)}function Jn(e){for(var i="",n=Object.keys(e),a=0;a<n.length;a++)"message"!==n[a]&&(i+=(0===a?"":", ")+n[a]+": "+(0,t.getValue)(n[a],e));return i}function Qn(e,i){return e.hasId?(0,t.getValue)("id",i):In(e,i)}function Xn(e,i){e.itemData=[i],e.currentItemText=(0,t.getValue)("name",i),e.isFile=(0,t.getValue)("isFile",i),e.filterPath=(0,t.getValue)("filterPath",i)}function $n(e){sa(e.itemData[0])?Xa(e,"Rename"):ia(e,e.itemData[0],Hi)}function Zn(e){for(var t=e.itemData,i=0;i<t.length;i++)if(!la(t[i]))return void ia(e,t[i],Wi);e.selectedItems.length>0&&Ga(e,e.path,e.selectedItems)}function ea(e,t,i){for(var n=0;n<t.length;n++)if(!sa(t[n]))return void ia(e,t[n],Hi);e.itemData=t,Ia(e,i,e.path,"delete")}function ta(e,t,i){for(var n=0;n<t.length;n++)if(!la(t[n]))return void ia(e,t[n],Wi);e.itemData=t,i.length>0&&Ga(e,e.path,i)}function ia(e,i,n){var a=(0,t.getValue)("message",(0,t.getValue)("permission",i));""===a&&(a=jn(e,"Access-Message").replace("{0}",(0,t.getValue)("name",i)).replace("{1}",n)),Xa(e,"Error",{error:{code:"401",fileExists:null,message:a}})}function na(e){return aa(e)?"e-fe-locked":"e-fe-locked e-fe-hidden"}function aa(e){var i=(0,t.getValue)("permission",e);return!(i&&!(0,t.getValue)("read",i))}function sa(e){var i=(0,t.getValue)("permission",e);return!i||(0,t.getValue)("read",i)&&(0,t.getValue)("write",i)}function ra(e){var i=(0,t.getValue)("permission",e);return!i||(0,t.getValue)("read",i)&&(0,t.getValue)("writeContents",i)}function oa(e){var i=(0,t.getValue)("permission",e);return!i||(0,t.getValue)("read",i)&&(0,t.getValue)("upload",i)}function la(e){var i=(0,t.getValue)("permission",e);return!i||(0,t.getValue)("read",i)&&(0,t.getValue)("download",i)}function ha(e){var t=e.itemData[0];ra(t)?Xa(e,"NewFolder"):ia(e,t,Bi)}function da(e){var t=e.itemData[0];if(oa(t)){var i="#"+e.element.id+$;document.querySelector(i).click()}else ia(e,t,qi)}function pa(e){(0,t.isNullOrUndefined)(e.dialogObj)||e.dialogObj.hide()}function ca(e,i){return e.hasId&&!(0,t.isNullOrUndefined)((0,t.getValue)("filterId",i))?(0,t.getValue)("filterId",i).replace(/\\/g,"/").replace(/^[^/]+\//,"/"):(0,t.getValue)("filterPath",i).replace(/\\/g,"/")}function ua(e,i,n,a){for(var s="",r=0;r<i.length;r++){var o=(0,t.getValue)("permission",i[r]);if(null==o&&(o=void 0),a)!o||(0,t.getValue)("read",o)&&(0,t.getValue)("writeContents",o)||""===(s=(0,t.getValue)("message",(0,t.getValue)("permission",i[r])))&&(s=jn(e,"Access-Message").replace("{0}",(0,t.getValue)("name",i[r])).replace("{1}","writeContents"));else{var l="copy"===n?(0,t.getValue)("copy",o):(0,t.getValue)("write",o);!o||(0,t.getValue)("read",o)&&l||""===(s=(0,t.getValue)("message",(0,t.getValue)("permission",i[r])))&&(s=jn(e,"Access-Message").replace("{0}",(0,t.getValue)("name",i[r])).replace("{1}",n))}if(""!==s){e.responseData={cwd:null,details:null,error:{code:"401",message:s,fileExists:null},files:null};break}}return s}var fa=c(707);function ga(e,i,n){for(var a=e.itemData,s=0;s<a.length;s++)(0,t.isNullOrUndefined)((0,t.getValue)("hasChild",a[s]))&&(0,t.setValue)("hasChild",!1,a[s]);Ma(e,{action:"read",path:n,showHiddenItems:e.showHiddenItems,data:a},Fa,i)}function ma(e,t){Ma(e,{action:"create",path:e.path,name:t,data:e.itemData},Va,t)}function ba(e,i){var n={action:"filter",path:e.path,showHiddenItems:e.showHiddenItems,data:[fn(e)]},a=e.filterData?(0,t.extend)(undefined,n,e.filterData):n;Ma(e,a,Ua,i,(0,t.getValue)("action",a))}function va(e,t,i){var n,a;if(""!==e.breadcrumbbarModule.searchObj.element.value||e.isFiltered){var s=e.filterPath;e.hasId?(n=e.currentItemText,a=i):(n=(s=s.replace(/\\/g,"/")).replace(t,"")+e.currentItemText,a=s.replace(t,"")+i)}else n=e.currentItemText,a=i;Ma(e,{action:"rename",path:t,name:n,newName:a,data:e.itemData,showFileExtension:e.showFileExtension},_a,t)}function ya(e,t,i,n,a,s,r){var o={action:a,path:t,targetData:e.itemData[0],targetPath:n,names:i,renameFiles:s,data:r};e.destinationPath=n,Ma(e,o,Ha,t,a,n)}function Ia(e,t,i,n){Ma(e,{action:n,path:i,names:t,data:e.itemData},Ba,i)}function Oa(e,t,i,n){Ma(e,{action:n,path:i,names:t,data:e.itemData},za,i,n)}function wa(e){return e.fileSystemData.length>=0&&(0,t.isNullOrUndefined)(e.ajaxSettings.url)}function Da(e,t){return e.some((function(e){return e.name===t}))}function Sa(e,i){return e.fileSystemData.findIndex((function(e){return!(0,t.isNullOrUndefined)(e)&&String(e.id)===String(i)}))}function Ca(e,t){return e.fileSystemData.filter((function(e){return String(e.id)===String(t)}))[0]}function xa(e,t){return e.fileSystemData.filter((function(e){return String(e.parentId)===String(t)}))}function ja(e,i,n,a){var s={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(s[r]=null);var o=new Date,l=String(i.id)===String(0)||(0,t.isNullOrUndefined)(i.parentId)?"\\":i.filterPath+i.name+"\\";return Object.assign(s,{dateCreated:o,dateModified:o,filterPath:l,hasChild:!!a&&e.hasChild,id:(0,fa.getUid)(null===n?e.name:n),isFile:!!a&&e.isFile,name:null===n?e.name:n,parentId:i.id,size:a?e.size:0,type:a?e.type:""}),s}function Na(e,t,i,n){e.responseData={cwd:null,details:null,error:{code:i,message:t,fileExists:null!=n?n:null},files:null}}function Pa(e,i,n){var a={cancel:!1,newName:(0,t.getValue)("newName",i),itemData:(0,t.getValue)("data",i),path:(0,t.getValue)("path",i)};e.trigger("beforeRename",a,(function(t){if(t.cancel)n.cancel=!0;else if(wa(e))if(Da(e.fileSystemData,t.newName)){var i="Cannot rename"+t.itemData[0].name+"to"+t.newName+": destination already exists.";Na(e,i,"400",null)}else{var a=Ca(e,t.itemData[0].id),s=a.name;a.name=t.newName,Ea(e,a.id,s,t.newName)}}))}function Ea(e,t,i,n){e.fileSystemData.forEach((function(a){if(String(a.parentId)===String(t)){var s=a.filterPath.replace(i+"\\",n+"\\");a.filterPath=s,Ea(e,a.id,i,n)}}))}function Ra(e,i,n){switch((0,t.getValue)("action",i)){case"create":!function(e,i,n){var a={folderName:(0,t.getValue)("name",i),cancel:!1,path:(0,t.getValue)("path",i),parentFolder:(0,t.getValue)("data",i)};e.trigger("beforeFolderCreate",a,(function(t){if(t.cancel)n.cancel=!0;else if(wa(e))if(Da(e.fileSystemData,t.folderName)){var i="A file or folder with the name "+t.folderName+" already exists.";Na(e,i,"400",null)}else{var a=t.parentFolder[0],s=ja(a,a,t.folderName,!1);e.fileSystemData.push(s)}}))}(e,i,n);break;case"delete":!function(e,i,n){var a={cancel:!1,itemData:(0,t.getValue)("data",i),path:(0,t.getValue)("path",i)};e.trigger("beforeDelete",a,(function(t){t.cancel?n.cancel=!0:wa(e)&&t.itemData.forEach((function(t){var i=Sa(e,t.id);-1!==i&&e.fileSystemData.splice(i,1),t.isFile||e.fileSystemData.filter((function(e){return e.filterPath.includes(t.name)})).forEach((function(t){var i=Sa(e,t.id);-1!==i&&e.fileSystemData.splice(i,1)}))}))}))}(e,i,n);break;case"rename":Pa(e,i,n);break;case"move":case"copy":!function(e,i,n){var a={cancel:!1,itemData:(0,t.getValue)("data",i),isCopy:"copy"===(0,t.getValue)("action",i),path:(0,t.getValue)("path",i),targetData:(0,t.getValue)("targetData",i),targetPath:(0,t.getValue)("targetPath",i)};e.trigger("beforeMove",a,(function(a){if(a.cancel)n.cancel=!0;else if(wa(e)){var s="File Already Exists",r=(0,t.getValue)("action",i),o=ua(e,a.itemData,r,!1),l=ua(e,[a.targetData],r,!0),h=[];if(e.pasteNodes=[],""===o&&""===l){if(a.isCopy){var d=xa(e,a.targetData.id);return a.itemData.forEach((function(n){if(!Da(d,n.name)||(0,t.getValue)("renameFiles",i).length>0){if((0,t.getValue)("renameFiles",i).length>0){var s=n.name.split("."),r=n.name.includes(".")?s[0]+"("+e.existingFileCount+")."+s[1]:s[0]+"("+e.existingFileCount+")";return Ta(e,n,a.targetData,r),e.responseData.error=null,void e.existingFileCount++}Ta(e,n,a.targetData,null)}else h.push(n.name)})),void(h.length>0&&Na(e,s,"400",h))}for(var p=a.targetData,c=xa(e,p.id),u=0;u<a.itemData.length;u++){var f=a.itemData[u];if(!Da(c,f.name)||(0,t.getValue)("renameFiles",i).length>0){if(!p.hasChild){p.hasChild=!f.isFile;var g=e.fileSystemData.filter((function(e){return String(e.id)===String(p.id)}));g.length>0&&(g[0].hasChild=p.hasChild)}if(!f.isFile){var m=0!==f.parentId?xa(e,f.parentId):[];Ca(e,f.parentId).hasChild=m.length>1}var b=Ca(e,f.id);if((0,t.getValue)("renameFiles",i).length>0){var v=f.name.split(".");f.name=f.name.includes(".")?v[0]+"("+e.existingFileCount+")."+v[1]:v[0]+"("+e.existingFileCount+")",b.name=f.name,e.responseData.error=null,e.existingFileCount++,e.dropData=p,e.dropPath=a.path;var y=a.targetPath.replace(/^\/|\/$/g,"").split("/");p=Ca(e,y[y.length-1])}b.parentId=p.id,b.filterPath=0===p.id?"\\":p.filterPath+p.name+"\\"}else h.push(f.name)}h.length>0&&Na(e,s,"400",h)}}}))}(e,i,n);break;case"search":!function(e,i,n){var a={searchResults:(0,t.getValue)("data",i),cancel:!1,path:(0,t.getValue)("path",i),searchText:(0,t.getValue)("searchString",i),caseSensitive:(0,t.getValue)("caseSensitive",i),showHiddenItems:(0,t.getValue)("showHiddenItems",i)};e.trigger("search",a,(function(e){(0,t.setValue)("data",e.searchResults,i),e.cancel&&(n.cancel=!0)}))}(e,i,n)}}function Ma(e,i,n,a,s,r){var o={url:e.ajaxSettings.url,type:"POST",mode:!0,dataType:"json",contentType:"application/json",data:JSON.stringify(i),onSuccess:null,onFailure:null,beforeSend:null},l={action:(0,t.getValue)("action",i),ajaxSettings:o,cancel:!1};Ra(e,i,l),e.trigger("beforeSend",l,(function(o){if(!o.cancel){if(e.notify(Qt,{}),wa(e)){var l=("node-expand"===a||"finalize-end"===a||"rename-end-parent"===a?(0,t.getValue)("path",i):e.path).replace(/^\/|\/$/g,"").split("/"),h="rename-end-parent"===a||"path-changed"===a&&0!==(0,t.getValue)("data",i).length&&(0,t.isNullOrUndefined)(e.renamedItem)?(0,t.getValue)("data",i)[0].id:l[l.length-1],d=(0,t.getValue)("action",i),p=("move"===d||"rename"===d||"copy"===d||"delete"===d||"search"===d)&&"rename-end"!==a;if("read"===d||"create"===d||"rename-end"===a){var c=e.fileSystemData.filter((function(e){return(0,t.isNullOrUndefined)(e.parentId)})).length>0?e.fileSystemData.filter((function(e){return(0,t.isNullOrUndefined)(e.parentId)}))[0].id:0;if(e.responseData={cwd:Ca(e,"/"===e.path&&"node-expand"!==a&&"rename-end-parent"!==a?c:h),details:null,error:null,files:xa(e,"/"===e.path&&"node-expand"!==a&&"rename-end-parent"!==a?c:h)},(0,t.isNullOrUndefined)(e.responseData.cwd)){Na(e,"Cannot load empty data within the File Manager.","400",null)}}else if(p&&null===e.responseData.error){0===(u="search"===d||"delete"===d?(0,t.getValue)("data",i):[]).length&&(u="copy"===d?e.pasteNodes.map((function(t){return Ca(e,t)})):(0,t.getValue)("data",i).map((function(t){return Ca(e,t.id)}))),e.responseData={cwd:null,details:null,error:null,files:u}}else if("details"===(0,t.getValue)("action",i)){var u,f=(u=(0,t.getValue)("data",i))[0],g=u.length>1,m=u.map((function(e){return e.name})),b=ka(g?u.reduce((function(e,t){return e+(t.size||0)}),0):f.size),v=e.pathNames.includes(f.name)||g?e.pathNames.join("/"):e.pathNames.join("/")+"/"+f.name;e.responseData.details=Object.assign({location:v,multipleFiles:g,name:m.join(", "),size:b},g?{}:{created:f.dateCreated,isFile:f.isFile,modified:f.dateModified,permission:f.permission})}return void La(e,e.responseData,n,i,a,s,r,o)}new t.Ajax({url:(0,t.getValue)("url",o.ajaxSettings),type:(0,t.getValue)("type",o.ajaxSettings),mode:(0,t.getValue)("mode",o.ajaxSettings),dataType:(0,t.getValue)("dataType",o.ajaxSettings),contentType:(0,t.getValue)("contentType",o.ajaxSettings),data:(0,t.getValue)("data",o.ajaxSettings),beforeSend:(0,t.getValue)("beforeSend",o.ajaxSettings),onSuccess:function(l){if((0,t.isNullOrUndefined)(l)