@syncfusion/ej2-filemanager 25.2.3 → 25.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * filename: ej2-filemanager.min.js
3
- * version : 25.2.3
3
+ * version : 25.2.6
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
7
7
  * licensing@syncfusion.com. Any infringement will be prosecuted under
8
8
  * applicable laws.
9
9
  */
10
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("SyncfusionBase"),require("SyncfusionData"),require("SyncfusionPopups"),require("SyncfusionInputs"),require("SyncfusionNavigations"),require("SyncfusionButtons"),require("SyncfusionLists"),require("SyncfusionSplitbuttons"),require("SyncfusionGrids"),require("SyncfusionLayouts")):"function"==typeof define&&define.amd?define(["SyncfusionBase","SyncfusionData","SyncfusionPopups","SyncfusionInputs","SyncfusionNavigations","SyncfusionButtons","SyncfusionLists","SyncfusionSplitbuttons","SyncfusionGrids","SyncfusionLayouts"],t):"object"==typeof exports?exports.SyncfusionFilemanager=t(require("SyncfusionBase"),require("SyncfusionData"),require("SyncfusionPopups"),require("SyncfusionInputs"),require("SyncfusionNavigations"),require("SyncfusionButtons"),require("SyncfusionLists"),require("SyncfusionSplitbuttons"),require("SyncfusionGrids"),require("SyncfusionLayouts")):e.SyncfusionFilemanager=t(e.SyncfusionBase,e.SyncfusionData,e.SyncfusionPopups,e.SyncfusionInputs,e.SyncfusionNavigations,e.SyncfusionButtons,e.SyncfusionLists,e.SyncfusionSplitbuttons,e.SyncfusionGrids,e.SyncfusionLayouts)}(this,function(e,t,i,n,r,s,a,o,l,d){return function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var i={};return t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=37)}([function(t,i){t.exports=e},function(e,t,i){"use strict";function n(e,t){var i=/\.\S+/.test(e),n=/\.\S+/.test(t);if(i&&!n)return 1;if(!i&&n)return-1;var r=[],s=[];for((e+"").replace(/(\d+)|(\D+)/g,function(e,t,i){return r.push([t||1/0,i||""]),""}),(t+"").replace(/(\d+)|(\D+)/g,function(e,t,i){return s.push([t||1/0,i||""]),""});r.length&&s.length;){var a=r.shift(),o=s.shift(),l=a[0]-o[0]||a[1].localeCompare(o[1]);if(l)return l}return r.length-s.length}function r(e,t,n){var r=i.i(_e.getValue)("name",t),l=e.getAttribute("data-id"),d=i.i(_e.isNullOrUndefined)(l)?r:l;n.setProperties({path:s(e,d,n.hasId)},!0),n.pathId=a(e),n.pathNames=o(e,r)}function s(e,t,i){for(var n=l(e,t,!1,i),r="/",s=n.length-2,a=s;a>=0;a--)r+=n[a]+"/";return r}function a(e){for(var t=l(e,e.getAttribute("data-uid"),!0),i=[],n=t.length-1;n>=0;n--)i.push(t[n]);return i}function o(e,t){for(var i=l(e,t,!1),n=[],r=i.length-1;r>=0;r--)n.push(i[r]);return n}function l(e,t,n,r){for(var s=[t],a=e.parentNode;!i.i(_e.isNullOrUndefined)(a);){if(i.i(_e.matches)(a,"."+be.a)){var o=n?a.getAttribute("data-uid"):r?a.getAttribute("data-id"):i.i(_e.select)("."+be.b,a).textContent;s.push(o)}if(a=a.parentNode,a.classList.contains(be.c))break}return s}function d(e){var t=e.hasId?"id":"name",n="/",r=1;for(r;r<e.pathId.length;r++){var s=i.i(_e.getValue)(e.pathId[r],e.feParent);n+=i.i(_e.getValue)(t,s)+"/"}e.setProperties({path:n},!0)}function h(e){e.isCut&&(p(e),e.selectedNodes=[],e.actionRecords=[],e.enablePaste=!1,e.notify(ve.a,{}))}function c(e,t){if(t.isSearchCut=!1,t.actionRecords=[],t.activeElements=[],t.notify(ve.b,{}),0===t.activeElements.length)return!1;p(t);var n=t.activeElements;"navigationpane"!==t.activeModule?t.targetPath=t.path:t.targetPath=B(t.path);var r=0;if(n&&(f(t,n[0]),"cut"===e))for(;r<n.length;)u(n[r]),r++;for(r=0,t.selectedNodes=[],t.enablePaste=!0,t.notify(ve.c,{});r<t.activeRecords.length;)t.actionRecords.push(t.activeRecords[r]),t.selectedNodes.push(i.i(_e.getValue)("name",t.activeRecords[r])),r++;if((""!==t.breadcrumbbarModule.searchObj.element.value||t.isFiltered)&&"navigationpane"!==t.activeModule){t.selectedNodes=[],t.isSearchCut=!0;for(var s=0;s<t.selectedItems.length;)t.selectedNodes.push(t.selectedItems[s]),s++}return!0}function u(e){e.classList.add(be.d)}function p(e,t){for(var i=t?e.element.querySelectorAll("."+be.e):e.element.querySelectorAll("."+be.d),n=0;n<i.length;)i[n].classList.remove(t?be.e:be.d),n++}function f(e,t){t&&(t.classList.contains(be.f)?e.activeModule="detailsview":i.i(_e.closest)(t,"."+be.g)?e.activeModule="largeiconsview":e.activeModule="navigationpane")}function g(e,t,n){var r;if(0!==t.length||e.isFiltered||e.notify(ve.d,{args:e}),r="startsWith"===e.searchSettings.filterType?t+"*":"endsWith"===e.searchSettings.filterType?"*"+t:"*"+t+"*",e.searchWord=r,e.itemData=[_(e)],t.length>0){var s=e.searchSettings.ignoreCase,a=e.showHiddenItems;i.i(ye.h)(e,n?ve.e:ve.f,e.path,r,a,!s)}else e.isFiltered?i.i(ye.c)(e,ve.e):e.isSortByClicked?(e.notify(ve.e,{files:"Details"===e.oldView?e.detailsviewModule.gridObj.dataSource:e.largeiconsviewModule.allItems}),e.isSortByClicked=!1):i.i(ye.a)(e,n?ve.e:ve.f,e.path)}function m(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,g(e,i,!0)}function b(e,t){var n="";t&&(n=i.i(_e.closest)(t,"."+be.h+"."+be.i+" ."+be.j)?"detailsview":i.i(_e.closest)(t,"."+be.k)?"largeiconsview":t.classList.contains("e-fullrow")||t.classList.contains("e-icon-expandable")?"navigationpane":i.i(_e.closest)(t,".e-address-list-item")?"breadcrumbbar":""),e.targetModule=n}function v(e){e.itemData=[_(e)],he(e.itemData[0])?i.i(ye.a)(e,ve.h,e.path):le(e,e.itemData[0],ve.g)}function y(e){i.i(ye.a)(e,ve.i,e.path)}function _(e){return i.i(_e.getValue)(e.pathId[e.pathId.length-1],e.feParent)}function I(e){c("copy",e)&&(e.fileAction="copy")}function O(e){c("cut",e)&&(e.isCut=!0,e.fileAction="move")}function w(e){if(!i.i(_e.getValue)("isFile",e))return be.l;var t=["bmp","dib","jpg","jpeg","jpe","jfif","gif","tif","tiff","png","ico"],n=["mp3","wav","aac","ogg","wma","aif","fla","m4a"],r=["webm","mkv","flv","vob","ogv","ogg","avi","wmv","mp4","3gp"],s=["css","exe","html","js","msi","pdf","pptx","ppt","rar","zip","txt","docx","doc","xlsx","xls","xml","rtf","php"],a=i.i(_e.getValue)("type",e);a=a.toLowerCase(),-1!==a.indexOf(".")&&(a=a.split(".").join(""));return-1!==t.indexOf(a)?be.m:-1!==n.indexOf(a)?be.n:-1!==r.indexOf(a)?be.o:-1!==s.indexOf(a)?"e-fe-"+a:"e-fe-unknown e-fe-"+a}function D(e,t){var n,r=e.ajaxSettings.getImageUrl?e.ajaxSettings.getImageUrl:e.ajaxSettings.url,s=-1!==r.indexOf("?")?"&path=":"?path=",a=encodeURIComponent(i.i(_e.getValue)("name",t)),o=i.i(_e.getValue)("filterPath",t);if(e.hasId){var l=i.i(_e.getValue)("id",t);n=r+s+e.path+"&id="+l}else n=i.i(_e.isNullOrUndefined)(o)?r+s+e.path+a:r+s+encodeURIComponent(o.replace(/\\/g,"/"))+a;n=n+"&time="+(new Date).getTime().toString();var d={fileDetails:[t],imageUrl:n};return e.trigger("beforeImageLoad",d),d.imageUrl}function S(e,t,n){var r=i.i(_e.getValue)(e.hasId?"id":"name",t)+"/",s=i.i(_e.getValue)(e.hasId?"filterId":"filterPath",t);return i.i(_e.isNullOrUndefined)(s)?n+r:s.replace(/\\/g,"/")+r}function C(e,t){var n=i.i(_e.getValue)("name",t),r=i.i(_e.getValue)("filterPath",t);return""===e.breadcrumbbarModule.searchObj.element.value&&!e.isFiltered||i.i(_e.isNullOrUndefined)(r)||(r=r.replace(/\\/g,"/"),n=r.replace(e.path,"")+n),n}function j(e,t){if(0===t.length)return t;var n;n="None"!==e.sortOrder?(new Ie.Query).sortBy(e.sortBy,e.sortOrder.toLowerCase(),!0).group("isFile"):(new Ie.Query).group("isFile");var r=new Ie.DataManager(t).executeLocal(n);return i.i(_e.getValue)("records",r)}function x(e,t,n){var r=i.i(_e.getValue)(e.pathId[e.pathId.length-1],e.feFiles),s=(new Ie.Query).where(t,"equal",n);return new Ie.DataManager(r).executeLocal(s)[0]}function E(e,t,n){var r,s=i.i(_e.select)("#"+e.element.id+be.p,e.element),a=i.i(_e.select)("#"+e.element.id+be.q,s).offsetHeight;if(r=s.offsetHeight-a,"Details"===e.view&&(r-=i.i(_e.select)("."+be.r,s).offsetHeight),i.i(_e.isNullOrUndefined)(t.querySelector("."+be.s))){var o=i.i(_e.createElement)("div",{className:be.s}),l=i.i(_e.createElement)("div",{className:be.t}),d=i.i(_e.createElement)("div",{className:be.u}),h=i.i(_e.createElement)("div",{className:be.v});"Details"===e.view?t.querySelector("."+be.w).appendChild(o):t.appendChild(o),o.appendChild(l),o.appendChild(d),o.appendChild(h)}t.querySelector("."+be.s)&&(i.i(_e.isNullOrUndefined)(n.error)?e.isFiltered?(t.querySelector("."+be.u).innerHTML=M(e,"Filter-Empty"),t.querySelector("."+be.v).innerHTML=M(e,"Filter-Key")):""!==e.breadcrumbbarModule.searchObj.element.value?(t.querySelector("."+be.u).innerHTML=M(e,"Search-Empty"),t.querySelector("."+be.v).innerHTML=M(e,"Search-Key")):(t.querySelector("."+be.u).innerHTML=M(e,"Folder-Empty"),t.querySelector("."+be.v).innerHTML=M(e,"File-Upload")):(t.querySelector("."+be.u).innerHTML=M(e,"Access-Denied"),t.querySelector("."+be.v).innerHTML=M(e,"Access-Details")));var c=i.i(_e.select)("."+be.s,t);r=(r-c.offsetHeight)/2,c.style.marginTop=r+"px"}function P(e){return new Ie.DataManager(e).executeLocal((new Ie.Query).where(ve.j,"equal",!1,!1))}function N(e,t){for(var n=P(e.files),r=0,s=n.length;r<s;r++)i.i(_e.setValue)("_fm_id",t+"_"+r,n[r])}function R(e,t,n){for(var r=0;r<e.length;r++){var s=new Date(i.i(_e.getValue)("dateCreated",e[r])),a=new Date(i.i(_e.getValue)("dateModified",e[r]));i.i(_e.isNullOrUndefined)(n)&&(n="MM/dd/yyyy"),i.i(_e.setValue)("_fm_created",t.formatDate(s,{format:n}),e[r]),i.i(_e.setValue)("_fm_modified",t.formatDate(a,{format:n}),e[r])}}function M(e,t){var i=e.localeObj.getConstant(t);return""===i?t:i}function k(e,t){var n=e.cssClass;return n=i.i(_e.isNullOrUndefined)(n)||""===n?t:n+" "+t}function L(e,t){var i;e.isSortByClicked=!0,i=-1!==t.item.id.indexOf("ascending")||-1!==t.item.id.indexOf("descending")||-1!==t.item.id.indexOf("none"),i?e.sortOrder=T(t.item.id):e.sortBy=T(t.item.id,e),e.itemData=[_(e)],"Details"===e.view&&(e.isMobile?m(e,"Details"):(e.notify(ve.k,{module:"detailsview"}),e.isSortByClicked=!1)),"LargeIcons"===e.view&&m(e,"LargeIcons"),e.notify(ve.l,{})}function T(e,t){var i,n=e.substring(e.lastIndexOf("_")+1),r=n;switch(t&&(i=t.detailsViewSettings.columns),n){case"date":for(var s=0,a=i.length;s<a;s++){if("dateModified"===i[s].field||"dateCreated"===i[s].field){r=i[s].field;break}r="_fm_modified"}break;case"ascending":r="Ascending";break;case"descending":r="Descending";break;case"none":r="None"}return r}function A(e,t){for(var n=t.split("/"),r=e.originalPath.split("/"),s=i.i(_e.getValue)(e.pathId[0],e.feParent),a=i.i(_e.isNullOrUndefined)(i.i(_e.getValue)("id",s))?"name":"id",o=n.length-1,l=r.length-1;o<l;o++){var d=""===r[o+1]?ve.m:ve.n,h=""===r[o]?"/":e.path+r[o]+"/",c=x(e,a,r[o]);if(i.i(_e.isNullOrUndefined)(c))e.originalPath=h;else{var u=i.i(_e.getValue)("_fm_id",c);e.setProperties({path:h},!0),e.pathId.push(u),e.itemData=[c],e.pathNames.push(i.i(_e.getValue)("name",c))}i.i(ye.a)(e,d,e.path);break}}function F(e,t){e.originalPath=S(e,t,e.path);var n=i.i(_e.getValue)(e.pathId[0],e.feParent),r="fe_tree"==i.i(_e.getValue)("_fm_id",e.itemData[0]),s=i.i(_e.isNullOrUndefined)(i.i(_e.getValue)("id",n))?"name":"id",a=x(e,s,i.i(_e.getValue)("name",t));if(i.i(_e.isNullOrUndefined)(a)){if(r)return void A(e,e.path);e.notify(ve.o,{selectedNode:e.pathId[e.pathId.length-1]})}else{var o=i.i(_e.getValue)("_fm_id",a);e.setProperties({path:e.originalPath},!0),e.pathId.push(o),e.itemData=[a],e.pathNames.push(i.i(_e.getValue)("name",a))}i.i(ye.a)(e,e.path!==e.originalPath?ve.n:ve.m,e.path)}function V(e){if(e.isDragDrop=!1,0!==e.selectedNodes.length&&e.enablePaste){var t=""===e.folderPath?e.path:e.folderPath;if(!U(e,e.actionRecords,t,e.path))if("move"===e.fileAction&&e.targetPath!==t||"copy"===e.fileAction)e.notify(ve.p,{}),i.i(ye.e)(e,e.targetPath,e.selectedNodes,t,e.fileAction,[],e.actionRecords);else{e.enablePaste=!1,e.notify(ve.a,{}),p(e);var n={files:null,error:{code:"402",message:M(e,"Same-Folder-Error"),fileExists:null}};i.i(Oe.a)(e,"Error",n)}}}function U(e,t,n,r){for(var s=!1,a=0;a<t.length;a++)if(i.i(_e.getValue)("isFile",t[a])){var o=e.dragNodes[a],l=0;o&&(l=o.lastIndexOf("/"));var d="";if(l>0&&(d=r+o.substring(0,l+1)),d===n){var h={files:null,error:{code:"402",message:M(e,"Same-Folder-Error"),fileExists:null}};i.i(Oe.a)(e,"Error",h),s=!0;break}}else{var c=S(e,t[a],r);if(0===n.indexOf(c)){var h={files:null,error:{code:"402",message:M(e,"Sub-Folder-Error"),fileExists:null}};i.i(Oe.a)(e,"Error",h),s=!0;break}}return s}function H(e){if(e.isDragDrop=!0,0!==e.dragData.length){e.dragPath=e.dragPath.replace(/\\/g,"/"),e.dropPath=e.dropPath.replace(/\\/g,"/");U(e,e.dragData,e.dropPath,e.dragPath)||e.dragPath===e.dropPath||(e.itemData=[e.dropData],i.i(ye.e)(e,e.dragPath,e.dragNodes,e.dropPath,"move",[],e.dragData),e.notify(ve.p,{}))}}function B(e){for(var t=e.split("/"),i=t[0]+"/",n=1;n<t.length-2;n++)i+=t[n]+"/";return i}function z(e,t){var n=i.i(_e.getValue)(e.hasId?"id":"name",t.cwd)+"/",r=i.i(_e.getValue)(e.hasId?"filterId":"filterPath",t.cwd);return i.i(_e.isNullOrUndefined)(r)?e.path+n:""===r?e.hasId?n:"/":r.replace(/\\/g,"/")+n}function q(e,t,n){"move"===t&&(e.isDragDrop?e.notify(ve.r,n):(e.enablePaste=!1,e.notify(ve.a,{}),e.notify(ve.q,n))),0===e.duplicateItems.length&&(e.pasteNodes=[]);for(var r=0;r<n.files.length;r++)e.pasteNodes.push(n.files[r][e.hasId?"id":"name"]),e.isDragDrop&&e.droppedObjects.push(n.files[r]);e.duplicateItems=[],e.duplicateRecords=[],e.isDragDrop&&!e.isPasteError?e.isDropEnd=!0:e.isDropEnd=!1,!e.isDragDrop||e.path===e.dragPath||e.path===e.dropPath||e.isSearchDrag?(e.isPathDrag=!1,i.i(ye.a)(e,ve.s,e.path)):W(e),e.trigger("success",{action:t,result:n})}function W(e){var t=i.i(_e.getValue)("_fm_id",e.dropData);if(e.expandedId=t,e.itemData=[e.dropData],e.isPathDrag)e.notify(ve.t,e.itemData);else{if(e.navigationpaneModule){var n=i.i(_e.select)('[data-uid="'+t+'"]',e.navigationpaneModule.treeObj.element);if(!n){t=document.querySelector('[data-id = "'+i.i(_e.getValue)("id",e.dropData)+'"]').getAttribute("data-uid"),n=i.i(_e.select)('[data-uid="'+t+'"]',e.navigationpaneModule.treeObj.element)}r(n,e.dropData,e)}i.i(ye.a)(e,ve.u,e.dropPath)}}function K(e,t){for(var n=null,r=e.isDragDrop?e.dragData:e.actionRecords,s=0;s<r.length;s++)if(i.i(_e.getValue)("name",r[s])===t){n=r[s];break}return n}function G(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(ie(e,e.dragData[0]))}var i=e.createElement("div",{className:"e-fe-icon "+w(e.dragData[0])}),n=e.createElement("div",{className:"e-fe-name",innerHTML:e.dragData[0].name}),r=e.createElement("div",{className:"e-fe-content"});r.appendChild(i),r.appendChild(n);var s=e.createElement("div",{className:be.x});if(s.appendChild(r),e.dragNodes.length>1){var a=e.createElement("span",{className:"e-fe-count",innerHTML:e.dragNodes.length.toString(10)});s.appendChild(a)}e.virtualDragElement=s,e.element.appendChild(e.virtualDragElement)}function Y(e,t){var n=t;n.cancel=!1,null!=e.treeExpandTimer&&(window.clearTimeout(e.treeExpandTimer),e.treeExpandTimer=null),J(e),e.element.classList.remove("e-fe-drop","e-no-drop"),p(e),e.uploadObj.dropArea=i.i(_e.select)("#"+e.element.id+be.y,e.element);var r=i.i(_e.select)("."+be.x,e.element);r&&i.i(_e.detach)(r),b(e,t.target),e.notify(ve.v,t),p(e,"hover"),n.fileDetails=e.dragData,e.trigger("fileDragStop",n,function(t){!t.cancel&&!i.i(_e.isNullOrUndefined)(e.targetModule)&&""!==e.targetModule&&e.dragCount>2&&H(e),e.dragCount=0})}function Q(e,t,n){var r=t;if(r.cancel=!1,r.fileDetails=e.dragData,e.dragCount=0,e.droppedObjects=[],(!e.allowDragAndDrop||"navigationpane"===e.activeModule&&i.i(_e.closest)(t.element,"li").getAttribute("data-uid")===e.pathId[0])&&(r.cancel=!0),"navigationpane"===e.activeModule&&-1!==e.pathId.indexOf(i.i(_e.closest)(t.element,"li").getAttribute("data-uid"))?e.isPathDrag=!0:e.isPathDrag=!1,p(e),r.cancel)n.intDestroy(t.event),X(e);else if(!r.cancel){for(var s=0;s<e.activeElements.length;)u(e.activeElements[s]),s++;e.trigger("fileDragStart",r,function(i){i.cancel?(n.intDestroy(t.event),X(e)):e.uploadObj.dropArea=null})}}function X(e){p(e);var t=i.i(_e.select)("."+be.x,e.element);t&&i.i(_e.detach)(t)}function J(e){Z(e,be.z),Z(e,be.A)}function Z(e,t){for(var i=e.element.querySelectorAll("."+t),n=0;n<i.length;n++)i[n].classList.remove(t)}function $(e,t,n,r,s){var a,o=e.getBoundingClientRect(),l=i.i(_e.select)("."+n,e);r>=o.top+e.clientHeight-30&&!i.i(_e.isNullOrUndefined)(l)&&(a="navigationpane"===t.targetModule||"detailsview"===t.targetModule?l.offsetHeight/2.5:l.offsetHeight/4.5,e.scrollBy(0,a)),!i.i(_e.isNullOrUndefined)(l)&&s<=o.top+30&&(a="navigationpane"===t.targetModule||"detailsview"===t.targetModule?l.offsetHeight/2.5:l.offsetHeight/4.5,e.scrollBy(0,-a))}function ee(e,t){var n=t;n.fileDetails=e.dragData;var r=!1;b(e,t.target),J(e),null!=e.treeExpandTimer&&(window.clearTimeout(e.treeExpandTimer),e.treeExpandTimer=null),p(e,"hover");var s,a=null;"navigationpane"===e.targetModule?(a=i.i(_e.closest)(t.target,"li"),a.classList.add(be.e,be.z),r=!0,e.treeExpandTimer=window.setTimeout(function(){e.notify(ve.w,t)},800),s=e.navigationpaneModule.treeObj.element.parentElement,$(s,e,"e-level-2",t.event.screenY,t.event.y)):"detailsview"===e.targetModule?(a=i.i(_e.closest)(t.target,"tr"),a&&a.querySelector("."+be.l)&&!a.classList.contains(be.d)?a.classList.add(be.z):!a||a.querySelector("."+be.l)||a.classList.contains(be.d)||a.classList.add(be.A),r=!0,s=e.detailsviewModule.gridObj.element.querySelector(".e-content"),$(s,e,"e-row",t.event.screenY,t.event.y)):"largeiconsview"===e.targetModule?(a=i.i(_e.closest)(t.target,"li"),a&&a.querySelector("."+be.l)&&!a.classList.contains(be.d)&&a.classList.add(be.e,be.z),r=!0,s=e.largeiconsviewModule.element.firstElementChild,$(s,e,"e-large-icon",t.event.screenY,t.event.y)):"breadcrumbbar"===e.targetModule&&(r=!0),e.element.classList.remove("e-fe-drop","e-no-drop"),e.element.classList.add(r?"e-fe-drop":"e-no-drop"),e.dragCount=e.dragCount+1,e.trigger("fileDragging",n)}function te(e){for(var t="",n=Object.keys(e),r=0;r<n.length;r++)"message"!==n[r]&&(t+=(0===r?"":", ")+n[r]+": "+i.i(_e.getValue)(n[r],e));return t}function ie(e,t){return e.hasId?i.i(_e.getValue)("id",t):C(e,t)}function ne(e,t){e.itemData=[t],e.currentItemText=i.i(_e.getValue)("name",t),e.isFile=i.i(_e.getValue)("isFile",t),e.filterPath=i.i(_e.getValue)("filterPath",t)}function re(e){ce(e.itemData[0])?i.i(Oe.a)(e,"Rename"):le(e,e.itemData[0],ve.x)}function se(e){for(var t=e.itemData,n=0;n<t.length;n++)if(!fe(t[n]))return void le(e,t[n],ve.y);e.selectedItems.length>0&&i.i(ye.i)(e,e.path,e.selectedItems)}function ae(e,t,n){for(var r=0;r<t.length;r++)if(!ce(t[r]))return void le(e,t[r],ve.x);e.itemData=t,i.i(ye.f)(e,n,e.path,"delete")}function oe(e,t,n){for(var r=0;r<t.length;r++)if(!fe(t[r]))return void le(e,t[r],ve.y);e.itemData=t,n.length>0&&i.i(ye.i)(e,e.path,n)}function le(e,t,n){var r=i.i(_e.getValue)("message",i.i(_e.getValue)("permission",t));""===r&&(r=M(e,"Access-Message").replace("{0}",i.i(_e.getValue)("name",t)).replace("{1}",n));var s={error:{code:"401",fileExists:null,message:r}};i.i(Oe.a)(e,"Error",s)}function de(e){return he(e)?"e-fe-locked":"e-fe-locked e-fe-hidden"}function he(e){var t=i.i(_e.getValue)("permission",e);return!(t&&!i.i(_e.getValue)("read",t))}function ce(e){var t=i.i(_e.getValue)("permission",e);return!t||i.i(_e.getValue)("read",t)&&i.i(_e.getValue)("write",t)}function ue(e){var t=i.i(_e.getValue)("permission",e);return!t||i.i(_e.getValue)("read",t)&&i.i(_e.getValue)("writeContents",t)}function pe(e){var t=i.i(_e.getValue)("permission",e);return!t||i.i(_e.getValue)("read",t)&&i.i(_e.getValue)("upload",t)}function fe(e){var t=i.i(_e.getValue)("permission",e);return!t||i.i(_e.getValue)("read",t)&&i.i(_e.getValue)("download",t)}function ge(e){var t=e.itemData[0];ue(t)?i.i(Oe.a)(e,"NewFolder"):le(e,t,ve.z)}function me(e){var t=e.itemData[0];if(pe(t)){var i="#"+e.element.id+be.B;document.querySelector(i).click()}else le(e,t,ve.A)}t.a=n,t.b=r,t.c=s,t.d=a,t.e=o,t.f=l,t.g=d,t.h=h,t.i=c,t.j=u,t.k=p,t.l=f,t.m=g,t.n=m,t.o=b,t.p=v,t.q=y,t.r=_,t.s=I,t.t=O,t.u=w,t.v=D,t.w=S,t.x=C,t.y=j,t.z=x,t.A=E,t.B=P,t.C=N,t.D=R,t.E=M,t.F=k,t.G=L,t.H=T,t.I=A,t.J=F,t.K=V,t.L=U,t.M=H,t.N=B,t.O=z,t.P=q,t.Q=W,t.R=K,t.S=G,t.T=Y,t.U=Q,t.V=X,t.W=J,t.X=Z,t.Y=$,t.Z=ee,t._0=te,t._1=ie,t._2=ne,t._3=re,t._4=se,t._5=ae,t._6=oe,t._7=le,t._8=de,t._9=he,t._10=ce,t._11=ue,t._12=pe,t._13=fe,t._14=ge,t._15=me;var be=i(3),ve=i(4),ye=i(5),_e=i(0),Ie=(i.n(_e),i(8)),Oe=(i.n(Ie),i(6))},function(e,t,i){"use strict";var n=i(5);i.d(t,"a",function(){return n.a}),i.d(t,"b",function(){return n.b}),i.d(t,"c",function(){return n.c}),i.d(t,"d",function(){return n.d}),i.d(t,"e",function(){return n.e}),i.d(t,"f",function(){return n.f}),i.d(t,"g",function(){return n.g}),i.d(t,"h",function(){return n.h}),i.d(t,"i",function(){return n.i});var r=i(1);i.d(t,"j",function(){return r.a}),i.d(t,"k",function(){return r.b}),i.d(t,"l",function(){return r.c}),i.d(t,"m",function(){return r.d}),i.d(t,"n",function(){return r.e}),i.d(t,"o",function(){return r.f}),i.d(t,"p",function(){return r.g}),i.d(t,"q",function(){return r.h}),i.d(t,"r",function(){return r.i}),i.d(t,"s",function(){return r.j}),i.d(t,"t",function(){return r.k}),i.d(t,"u",function(){return r.l}),i.d(t,"v",function(){return r.m}),i.d(t,"w",function(){return r.n}),i.d(t,"x",function(){return r.o}),i.d(t,"y",function(){return r.p}),i.d(t,"z",function(){return r.q}),i.d(t,"A",function(){return r.r}),i.d(t,"B",function(){return r.s}),i.d(t,"C",function(){return r.t}),i.d(t,"D",function(){return r.u}),i.d(t,"E",function(){return r.v}),i.d(t,"F",function(){return r.w}),i.d(t,"G",function(){return r.x}),i.d(t,"H",function(){return r.y}),i.d(t,"I",function(){return r.z}),i.d(t,"J",function(){return r.A}),i.d(t,"K",function(){return r.B}),i.d(t,"L",function(){return r.C}),i.d(t,"M",function(){return r.D}),i.d(t,"N",function(){return r.E}),i.d(t,"O",function(){return r.F}),i.d(t,"P",function(){return r.G}),i.d(t,"Q",function(){return r.H}),i.d(t,"R",function(){return r.I}),i.d(t,"S",function(){return r.J}),i.d(t,"T",function(){return r.K}),i.d(t,"U",function(){return r.L}),i.d(t,"V",function(){return r.M}),i.d(t,"W",function(){return r.N}),i.d(t,"X",function(){return r.O}),i.d(t,"Y",function(){return r.P}),i.d(t,"Z",function(){return r.Q}),i.d(t,"_0",function(){return r.R}),i.d(t,"_1",function(){return r.S}),i.d(t,"_2",function(){return r.T}),i.d(t,"_3",function(){return r.U}),i.d(t,"_4",function(){return r.V}),i.d(t,"_5",function(){return r.W}),i.d(t,"_6",function(){return r.X}),i.d(t,"_7",function(){return r.Y}),i.d(t,"_8",function(){return r.Z}),i.d(t,"_9",function(){return r._0}),i.d(t,"_10",function(){return r._1}),i.d(t,"_11",function(){return r._2}),i.d(t,"_12",function(){return r._3}),i.d(t,"_13",function(){return r._4}),i.d(t,"_14",function(){return r._5}),i.d(t,"_15",function(){return r._6}),i.d(t,"_16",function(){return r._7}),i.d(t,"_17",function(){return r._8}),i.d(t,"_18",function(){return r._9}),i.d(t,"_19",function(){return r._10}),i.d(t,"_20",function(){return r._11}),i.d(t,"_21",function(){return r._12}),i.d(t,"_22",function(){return r._13}),i.d(t,"_23",function(){return r._14}),i.d(t,"_24",function(){return r._15})},function(e,t,i){"use strict";i.d(t,"O",function(){return n}),i.d(t,"p",function(){return r}),i.d(t,"_26",function(){return s}),i.d(t,"R",function(){return a}),i.d(t,"S",function(){return o}),i.d(t,"T",function(){return l}),i.d(t,"E",function(){return d}),i.d(t,"_27",function(){return h}),i.d(t,"I",function(){return c}),i.d(t,"F",function(){return u}),i.d(t,"_28",function(){return p}),i.d(t,"_29",function(){return f}),i.d(t,"J",function(){return g}),i.d(t,"_30",function(){return m}),i.d(t,"_31",function(){return b}),i.d(t,"_32",function(){return v}),i.d(t,"y",function(){return y}),i.d(t,"q",function(){return _}),i.d(t,"B",function(){return I}),i.d(t,"_33",function(){return O}),i.d(t,"_21",function(){return w}),i.d(t,"h",function(){return D}),i.d(t,"i",function(){return S}),i.d(t,"_34",function(){return C}),i.d(t,"D",function(){return j}),i.d(t,"_35",function(){return x}),i.d(t,"C",function(){return E}),i.d(t,"_13",function(){return P}),i.d(t,"_23",function(){return N}),i.d(t,"_36",function(){return R}),i.d(t,"_37",function(){return M}),i.d(t,"_38",function(){return k}),i.d(t,"k",function(){return L}),i.d(t,"_24",function(){return T}),i.d(t,"a",function(){return A}),i.d(t,"b",function(){return F}),i.d(t,"_11",function(){return V}),i.d(t,"_6",function(){return U}),i.d(t,"_5",function(){return H}),i.d(t,"d",function(){return B}),i.d(t,"_12",function(){return z}),i.d(t,"e",function(){return q}),i.d(t,"_16",function(){return W}),i.d(t,"_19",function(){return K}),i.d(t,"_14",function(){return G}),i.d(t,"_15",function(){return Y}),i.d(t,"_17",function(){return Q}),i.d(t,"f",function(){return X}),i.d(t,"_39",function(){return J}),i.d(t,"s",function(){return Z}),i.d(t,"u",function(){return $}),i.d(t,"v",function(){return ee}),i.d(t,"x",function(){return te}),i.d(t,"z",function(){return ie}),i.d(t,"A",function(){return ne}),i.d(t,"l",function(){return re}),i.d(t,"m",function(){return se}),i.d(t,"n",function(){return ae}),i.d(t,"o",function(){return oe}),i.d(t,"g",function(){return le}),i.d(t,"t",function(){return de}),i.d(t,"_40",function(){return he}),i.d(t,"_41",function(){return ce}),i.d(t,"_42",function(){return ue}),i.d(t,"_43",function(){return pe}),i.d(t,"r",function(){return fe}),i.d(t,"_44",function(){return ge}),i.d(t,"c",function(){return me}),i.d(t,"P",function(){return be}),i.d(t,"L",function(){return ve}),i.d(t,"Q",function(){return ye}),i.d(t,"w",function(){return _e}),i.d(t,"j",function(){return Ie}),i.d(t,"U",function(){return Oe}),i.d(t,"V",function(){return we}),i.d(t,"W",function(){return De}),i.d(t,"X",function(){return Se}),i.d(t,"Y",function(){return Ce}),i.d(t,"Z",function(){return je}),i.d(t,"_0",function(){return xe}),i.d(t,"_1",function(){return Ee}),i.d(t,"_2",function(){return Pe}),i.d(t,"_3",function(){return Ne}),i.d(t,"_4",function(){return Re}),i.d(t,"_7",function(){return Me}),i.d(t,"_8",function(){return ke}),i.d(t,"_9",function(){return Le}),i.d(t,"_45",function(){return Te}),i.d(t,"M",function(){return Ae}),i.d(t,"K",function(){return Fe}),i.d(t,"_22",function(){return Ve}),i.d(t,"_25",function(){return Ue}),i.d(t,"_46",function(){return He}),i.d(t,"_47",function(){return Be}),i.d(t,"_48",function(){return ze}),i.d(t,"_20",function(){return qe}),i.d(t,"_49",function(){return We}),i.d(t,"H",function(){return Ke}),i.d(t,"_50",function(){return Ge}),i.d(t,"_51",function(){return Ye}),i.d(t,"_52",function(){return Qe}),i.d(t,"_10",function(){return Xe}),i.d(t,"_53",function(){return Je}),i.d(t,"N",function(){return Ze}),i.d(t,"_54",function(){return $e}),i.d(t,"_55",function(){return et}),i.d(t,"_18",function(){return tt}),i.d(t,"_56",function(){return it}),i.d(t,"G",function(){return nt});var n="_toolbar",r="_layout",s="_navigation",a="_tree",o="_grid",l="_largeicons",d="_dialog",h="_alt_dialog",c="_img_dialog",u="_extn_dialog",p="_upload_dialog",f="_retry_dialog",g="_contextmenu",m="_sortby",b="_view",v="_splitter",y="_content",_="_breadcrumbbar",I="_upload",O="_retry",w="_search",D="e-filemanager",S="e-control",C="e-fe-cb-select",j="e-fe-popup",x="e-fe-mobile",E="e-fe-popup e-fe-mobile",P="e-fe-m-select",N="e-fe-m-filter",R="e-layout",M="e-navigation",k="e-layout-content",L="e-large-icons",T="e-toolbar-item",A="e-list-item",F="e-list-text",V="e-list-parent",U="e-icons e-fe-tick",H="e-icons e-fe-dot",B="e-blur",z="e-active",q="e-hover",W="e-focus",K="e-focused",G="e-check",Y="e-frame",Q="e-checkbox-wrapper",X="e-row",J="e-rowcell",Z="e-empty",$="e-empty-content",ee="e-empty-inner-content",te="e-fe-clone",ie="e-fe-drop-folder",ne="e-fe-drop-file",re="e-fe-folder",se="e-fe-image",ae="e-fe-music",oe="e-fe-video",le="e-large-icon",de="e-empty-icon e-fe-folder",he="e-empty-icon.e-fe-folder",ce="e-fe-folder",ue="e-items",pe="e-text-content",fe="e-gridheader",ge="e-templatecell",me="e-treeview",be="e-menu-item",ve="e-menu-icon",ye="e-caret",_e="e-content",Ie="e-gridcontent",Oe="e-list-parent",we="e-icons e-fe-open",De="e-icons e-fe-upload",Se="e-icons e-fe-cut",Ce="e-icons e-fe-copy",je="e-icons e-fe-paste",xe="e-icons e-fe-delete",Ee="e-icons e-fe-rename",Pe="e-icons e-fe-newfolder",Ne="e-icons e-fe-details",Re="e-icons e-fe-sort",Me="e-icons e-fe-refresh",ke="e-icons e-fe-select",Le="e-icons e-fe-download",Te="e-icons e-fe-options",Ae="e-icons e-fe-grid",Fe="e-icons e-fe-large",Ve="e-icons e-fe-breadcrumb",Ue="e-icons e-fe-clear",He="e-icons e-fe-drop-in",Be="e-icons e-fe-drop-out",ze="e-icons e-fe-no-drop",qe="e-icons",We="e-detailslabel",Ke="e-fe-errorcontent",Ge="e-status",Ye="e-address",Qe="e-rtl",Xe="e-display-none",Je="e-node-collapsed",Ze="e-fullrow",$e="e-icon-collapsible",et="e-split-bar",tt="e-headercheck",it="e-fe-overlay",nt="e-fe-value"},function(e,t,i){"use strict";i.d(t,"j",function(){return n}),i.d(t,"V",function(){return r}),i.d(t,"n",function(){return s}),i.d(t,"m",function(){return a}),i.d(t,"I",function(){return o}),i.d(t,"_3",function(){return l}),i.d(t,"_6",function(){return d}),i.d(t,"t",function(){return h}),i.d(t,"D",function(){return c}),i.d(t,"M",function(){return u}),i.d(t,"h",function(){return p}),i.d(t,"_0",function(){return f}),i.d(t,"Z",function(){return g}),i.d(t,"K",function(){return m}),i.d(t,"U",function(){return b}),i.d(t,"E",function(){return v}),i.d(t,"_7",function(){return y}),i.d(t,"C",function(){return _}),i.d(t,"F",function(){return I}),i.d(t,"_8",function(){return O}),i.d(t,"_1",function(){return w}),i.d(t,"B",function(){return D}),i.d(t,"f",function(){return S}),i.d(t,"S",function(){return C}),i.d(t,"i",function(){return j}),i.d(t,"H",function(){return x}),i.d(t,"R",function(){return E}),i.d(t,"Y",function(){return P}),i.d(t,"o",function(){return N}),i.d(t,"e",function(){return R}),i.d(t,"l",function(){return M}),i.d(t,"_4",function(){return k}),i.d(t,"T",function(){return L}),i.d(t,"N",function(){return T}),i.d(t,"Q",function(){return A}),i.d(t,"J",function(){return F}),i.d(t,"L",function(){return V}),i.d(t,"c",function(){return U}),i.d(t,"a",function(){return H}),i.d(t,"O",function(){return B}),i.d(t,"b",function(){return z}),i.d(t,"p",function(){return q}),i.d(t,"s",function(){return W}),i.d(t,"q",function(){return K}),i.d(t,"W",function(){return G}),i.d(t,"_5",function(){return Y}),i.d(t,"_9",function(){return Q}),i.d(t,"k",function(){return X}),i.d(t,"d",function(){return J}),i.d(t,"G",function(){return Z}),i.d(t,"_10",function(){return $}),i.d(t,"P",function(){return ee}),i.d(t,"v",function(){return te}),i.d(t,"r",function(){return ie}),i.d(t,"u",function(){return ne}),i.d(t,"_11",function(){return re}),i.d(t,"w",function(){return se}),i.d(t,"_2",function(){return ae}),i.d(t,"X",function(){return oe}),i.d(t,"g",function(){return le}),i.d(t,"x",function(){return de}),i.d(t,"z",function(){return he}),i.d(t,"_12",function(){return ce}),i.d(t,"A",function(){return ue}),i.d(t,"y",function(){return pe});var n="isFile",r="model-changed",s="initial-end",a="finalize-end",o="create-end",l="filter-end",d="before-delete",h="path-drag",c="delete-init",u="delete-end",p="refresh-end",f="resize-end",g="splitter-resize",m="path-changed",b="destroy",v="before-request",y="upload",_="skip-upload",I="after-request",O="download",w="layout-refresh",D="actionFailure",S="search",C="open-init",j="open-end",x="selection-changed",E="select-all-init",P="clear-all-init",N="clear-path-init",R="layout-change",M="sort-by-change",k="node-expand",L="details-init",T="menu-item-data",A="rename-init",F="rename-end-parent",V="rename-end",U="show-paste",H="hide-paste",B="selected-data",z="cut-copy-init",q="paste-init",W="paste-end",K="cut-end",G="hide-layout",Y="update-tree-selection",Q="select-node",X="sort-column",J="path-column",Z="search-change",$="before-download",ee="download-init",te="drop-init",ie="drag-end",ne="drop-path",re="drag-helper",se="dragging",ae="update-selection-data",oe="method-call",le="read",de="write",he="writeContents",ce="copy",ue="upload",pe="download"},function(e,t,i){"use strict";function n(e,t,n){for(var r=e.itemData,s=0;s<r.length;s++)i.i(D.isNullOrUndefined)(i.i(D.getValue)("hasChild",r[s]))&&i.i(D.setValue)("hasChild",!1,r[s]);c(e,{action:"read",path:n,showHiddenItems:e.showHiddenItems,data:r},p,t)}function r(e,t){c(e,{action:"create",path:e.path,name:t,data:e.itemData},g,t)}function s(e,t){var n={action:"filter",path:e.path,showHiddenItems:e.showHiddenItems,data:[i.i(j.r)(e)]},r=e.filterData?i.i(D.extend)(void 0,n,e.filterData):n;c(e,r,f,t,i.i(D.getValue)("action",r))}function a(e,t,i){var n,r;if(""!==e.breadcrumbbarModule.searchObj.element.value||e.isFiltered){var s=e.filterPath;e.hasId?(n=e.currentItemText,r=i):(s=s.replace(/\\/g,"/"),n=s.replace(t,"")+e.currentItemText,r=s.replace(t,"")+i)}else n=e.currentItemText,r=i;c(e,{action:"rename",path:t,name:n,newName:r,data:e.itemData,showFileExtension:e.showFileExtension},m,t)}function o(e,t,i,n,r,s,a){var o={action:r,path:t,targetData:e.itemData[0],targetPath:n,names:i,renameFiles:s,data:a};e.destinationPath=n,c(e,o,b,t,r,n)}function l(e,t,i,n){c(e,{action:n,path:i,names:t,data:e.itemData},v,i)}function d(e,t,i,n){c(e,{action:n,path:i,names:t,data:e.itemData},y,i,n)}function h(e){for(var t,n=e.detailsViewSettings.columns,r=0;r<n.length;r++)if("_fm_modified"===n[r].field){i.i(D.isNullOrUndefined)(n[r].format)||(t=n[r].format.toString());break}return t}function c(e,t,n,r,s,a){var o={url:e.ajaxSettings.url,type:"POST",mode:!0,dataType:"json",contentType:"application/json",data:JSON.stringify(t),onSuccess:null,onFailure:null,beforeSend:null},l={action:i.i(D.getValue)("action",t),ajaxSettings:o,cancel:!1};e.trigger("beforeSend",l,function(o){if(!o.cancel){e.notify(S.E,{});new D.Ajax({url:i.i(D.getValue)("url",o.ajaxSettings),type:i.i(D.getValue)("type",o.ajaxSettings),mode:i.i(D.getValue)("mode",o.ajaxSettings),dataType:i.i(D.getValue)("dataType",o.ajaxSettings),contentType:i.i(D.getValue)("contentType",o.ajaxSettings),data:i.i(D.getValue)("data",o.ajaxSettings),beforeSend:i.i(D.getValue)("beforeSend",o.ajaxSettings),onSuccess:function(l){if(i.i(D.isNullOrUndefined)(l)){var d={error:{fileExists:null,message:i.i(j.E)(e,"Server-Error")+" "+e.ajaxSettings.url,code:"406"},files:null};return void u(e,o,n,d,r,s,a)}"string"==typeof l&&(l=JSON.parse(l)),e.notify(S.F,{action:"success"});var c=e.expandedId?e.expandedId:e.pathId[e.pathId.length-1];if(!i.i(D.isNullOrUndefined)(l.cwd)&&"read"===i.i(D.getValue)("action",t)&&(l.cwd.name=1===e.pathId.length?e.rootAliasName||l.cwd.name:l.cwd.name,i.i(D.setValue)("_fm_id",c,l.cwd),i.i(D.setValue)(c,l.cwd,e.feParent),!i.i(D.isNullOrUndefined)(l.files)||"401"===l.error.code)){if(("finalize-end"===r||"initial-end"===r)&&0===e.pathNames.length){var p=i.i(D.getValue)(e.pathId[0],e.feParent);e.pathNames[0]=i.i(D.getValue)("name",p),e.hasId=!i.i(D.isNullOrUndefined)(i.i(D.getValue)("id",p))}"finalize-end"===r&&i.i(j.g)(e)}var f=new D.Internationalization(e.locale);if(!i.i(D.isNullOrUndefined)(l.files)){i.i(j.D)(l.files,f,h(e));for(var g=0,m=l.files.length;g<m;g++){var b=l.files[g];i.i(D.setValue)("_fm_iconClass",i.i(j.u)(b),b)}"read"===i.i(D.getValue)("action",t)&&(i.i(j.C)(l,c),i.i(D.setValue)(c,l.files,e.feFiles))}if(!i.i(D.isNullOrUndefined)(l.details)&&!i.i(D.isNullOrUndefined)(e.rootAliasName)){var v=e.rootAliasName||i.i(D.getValue)("name",l.details),y=i.i(D.getValue)("location",l.details).replace(new RegExp("/","g"),"\\");("/"===i.i(D.getValue)("path",t)||e.hasId&&1===i.i(D.getValue)("path",t).match(/[\/]/g).length)&&0===i.i(D.getValue)("names",t).length?(i.i(D.setValue)("name",v,l.details),y=v):y=y.replace(y.substring(0,y.indexOf("\\")),v),i.i(D.setValue)("location",y,l.details)}n(e,l,r,s,a),i.i(D.isNullOrUndefined)(l.files)||"path-changed"!==r&&"finalize-end"!==r&&"open-end"!==r&&"drop-path"!==r||e.notify(S.G,l),"function"==typeof i.i(D.getValue)("onSuccess",o.ajaxSettings)&&i.i(D.getValue)("onSuccess",o.ajaxSettings)()},onFailure:function(){var t={files:null,error:{code:"404",message:i.i(j.E)(e,"Network-Error")+" "+e.ajaxSettings.url,fileExists:null}};u(e,o,n,t,r,s,a)}}).send()}})}function u(e,t,n,r,s,a,o){e.notify(S.F,{action:"failure"}),n(e,r,s,a,o),"function"==typeof i.i(D.getValue)("onFailure",t.ajaxSettings)&&i.i(D.getValue)("onFailure",t.ajaxSettings)()}function p(e,t,n){if(i.i(D.isNullOrUndefined)(t.files))"401"===t.error.code&&(t.files=[],e.notify(n,t),e.notify(S.H,{})),_(e,t,"read"),e.setProperties({path:e.oldPath},!0),e.pathNames.pop();else{e.notify(n,t),e.notify(S.H,{});var r={action:"read",result:t};e.trigger("success",r)}if(e.isDragDrop&&e.isDropEnd){if(0!==e.droppedObjects.length){var r={fileDetails:e.droppedObjects};e.trigger("fileDropped",r)}e.isDropEnd=e.isDragDrop=!1}}function f(e,t,n,r){if(i.i(D.isNullOrUndefined)(t.files))_(e,t,r);else{e.notify(n,t);var s={action:r,result:t};e.trigger("success",s)}}function g(e,t,r){if(i.i(D.isNullOrUndefined)(t.files))if("400"===t.error.code){if(e.dialogObj&&e.dialogObj.visible){var s=i.i(D.select)("#newname",e.dialogObj.element),a=i.i(j.E)(e,"Validation-NewFolder-Exists").replace("{0}",'"'+s.value+'"');s.parentElement.nextElementSibling.innerHTML=a}else{var o={files:null,error:{code:"400",message:i.i(j.E)(e,"Validation-NewFolder-Exists").replace("{0}",'"'+r+'"'),fileExists:null}};i.i(C.a)(e,"Error",o)}var l={action:"create",error:t.error};e.trigger("failure",l)}else e.dialogObj&&e.dialogObj.visible&&e.dialogObj.hide(),_(e,t,"create");else{e.dialogObj&&e.dialogObj.visible&&e.dialogObj.hide(),e.createdItem=t.files[0],e.breadcrumbbarModule.searchObj.value="";var l={action:"create",result:t};e.trigger("success",l),e.itemData=[i.i(j.r)(e)],n(e,S.I,e.path)}}function m(e,t,r){if(i.i(D.isNullOrUndefined)(t.files))if("400"===t.error.code&&e.dialogObj&&e.dialogObj.visible){var a=i.i(D.select)("#rename",e.dialogObj.element),o=i.i(j.E)(e,"Validation-Rename-Exists").replace("{0}",'"'+e.currentItemText+'"');o=o.replace("{1}",'"'+a.value+'"'),a.parentElement.nextElementSibling.innerHTML=o;var l={action:"rename",error:t.error};e.trigger("failure",l)}else i.i(D.isNullOrUndefined)(e.dialogObj)||e.dialogObj.hide(),_(e,t,"rename");else{i.i(D.isNullOrUndefined)(e.dialogObj)||e.dialogObj.hide();var l={action:"rename",result:t};e.trigger("success",l),e.renamedItem=Array.isArray(t.files)?t.files[0]:t.files,"navigationpane"===e.activeModule?(e.pathId.pop(),e.itemData=[i.i(D.getValue)(e.pathId[e.pathId.length-1],e.feParent)],n(e,S.J,i.i(D.getValue)("filterPath",e.renamedItem).replace(/\\/g,"/")),e.itemData[0]=e.renamedItem,n(e,S.K,"/"===e.path?e.path:i.i(D.getValue)("filterPath",e.renamedItem).replace(/\\/g,"/")+e.renamedItem.name+"/"),i.i(D.getValue)("filterPath",e.renamedItem)===i.i(D.getValue)("filterPath",e.itemData[0])&&e.pathNames.length>1&&(e.pathNames[e.pathNames.length-1]=e.renameText)):(e.itemData=[i.i(j.r)(e)],""!==e.breadcrumbbarModule.searchObj.value?I(e,S.L,e.path,e.searchWord,e.showHiddenItems,!e.searchSettings.ignoreCase):e.isFiltered?s(e,S.L):n(e,S.L,e.path))}}function b(e,t,n,r){t.error&&t.error.fileExists?(e.fileLength=0,i.i(D.isNullOrUndefined)(t.files)||(e.isPasteError=!0,i.i(j.P)(e,r,t)),i.i(C.b)(e,"DuplicateItems",t.error.fileExists),"404"===t.error.code&&i.i(C.a)(e,"Error",t)):t.error||i.i(D.isNullOrUndefined)(t.files)?t.error&&!i.i(D.isNullOrUndefined)(t.files)?(e.isPasteError=!0,i.i(j.P)(e,r,t),i.i(C.a)(e,"Error",t)):_(e,t,r):(e.isPasteError=!1,i.i(j.P)(e,r,t))}function v(e,t,r){if(i.i(D.isNullOrUndefined)(t.files))_(e,t,"delete");else if(e.setProperties({path:r},!0),e.itemData=[i.i(j.r)(e)],n(e,S.M,e.path),t.error)_(e,t,"delete");else{var s={action:"delete",result:t};e.trigger("success",s)}}function y(e,t,n,r){if(i.i(D.isNullOrUndefined)(t.details))_(e,t,"details");else{i.i(C.a)(e,r,null,t.details);var s={action:"details",result:t};e.trigger("success",s)}}function _(e,t,n){i.i(C.a)(e,"Error",t);var r={action:n,error:t.error};e.trigger("failure",r)}function I(e,t,i,n,r,s){c(e,{action:"search",path:i,searchString:n,showHiddenItems:r,caseSensitive:s,data:e.itemData},O,t)}function O(e,t,n){if(i.i(D.isNullOrUndefined)(t.files))_(e,t,"search");else{e.notify(n,t);var r={action:"search",result:t};e.trigger("success",r)}}function w(e,t,n){var r=e.ajaxSettings.downloadUrl?e.ajaxSettings.downloadUrl:e.ajaxSettings.url,s={action:"download",path:t,names:n,data:e.itemData},a={url:r,type:"POST",contentType:"application/json",responseType:"blob",data:JSON.stringify(s),onSuccess:null,onFailure:null,beforeSend:null},o={data:s,cancel:!1,useFormPost:!0,ajaxSettings:a};e.trigger("beforeDownload",o,function(t){if(!t.cancel)if(t.useFormPost){var n=i.i(D.createElement)("form",{id:e.element.id+"_downloadForm",attrs:{action:r,method:"post",name:"downloadForm",download:""}}),s=i.i(D.createElement)("input",{id:e.element.id+"_hiddenForm",attrs:{name:"downloadInput",value:JSON.stringify(t.data),type:"hidden"}});n.appendChild(s),e.element.appendChild(n),document.forms.namedItem("downloadForm").submit(),e.element.removeChild(n)}else{var a,o,l=new D.Fetch({url:i.i(D.getValue)("url",t.ajaxSettings),type:i.i(D.getValue)("type",t.ajaxSettings),contentType:i.i(D.getValue)("contentType",t.ajaxSettings),responseType:i.i(D.getValue)("responseType",t.ajaxSettings),beforeSend:i.i(D.getValue)("beforeSend",t.ajaxSettings),onLoad:function(t){if(a=t.headers.get("Content-Disposition")){var n=a.match(/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/),r=n&&n[1];o=r?r.replace(/['"]/g,""):o}else o=e.itemData.length>1?"files.zip":i.i(D.getValue)("isFile",e.itemData[0])?i.i(D.getValue)("name",e.itemData[0]):i.i(D.getValue)("name",e.itemData[0])+".zip"},onSuccess:function(i){e.trigger("success",t);var n=i,r=URL.createObjectURL(n),s=document.createElement("a");s.href=r,s.download=o,document.body.appendChild(s),s.click(),document.body.removeChild(s)},onFailure:function(n){var r={error:{code:n.status.toString(),message:i.i(j.E)(e,"Network-Error")+" "+e.ajaxSettings.downloadUrl}};i.i(C.a)(e,"Error",r),e.trigger("failure",t)}});l.send(JSON.stringify(t.data))}})}t.a=n,t.b=r,t.c=s,t.d=a,t.e=o,t.f=l,t.g=d,t.h=I,t.i=w;var D=i(0),S=(i.n(D),i(4)),C=i(6),j=i(1)},function(e,t,i){"use strict";function n(e,t,n,r,s){var o=_(e,t,n,r,s);i.i(T.isNullOrUndefined)(e.dialogObj)?(e.dialogObj=new L.Dialog({beforeOpen:I.bind(this,e,o.dialogName),beforeClose:function(t){a(e,e.dialogObj,t,o.dialogName)},header:o.header,content:o.content,buttons:o.buttons,animationSettings:{effect:"None"},showCloseIcon:!0,closeOnEscape:!0,visible:!0,allowDragging:!0,isModal:!0,target:e.popupTarget?e.popupTarget:"#"+e.element.id,cssClass:i.i(U.F)(e,e.isMobile?F.C:F.D),width:"350px",open:o.open,close:o.close,enableRtl:e.enableRtl,enableHtmlSanitizer:e.enableHtmlSanitizer,locale:e.locale}),e.dialogObj.isStringTemplate=!0,e.dialogObj.appendTo("#"+e.element.id+F.E)):D(e,o)}function r(e,t,n,r){var s=d(e,t,n,r);e.isApplySame=!1,i.i(T.isNullOrUndefined)(e.extDialogObj)?(e.extDialogObj=new L.Dialog({beforeOpen:O.bind(this,e,s.dialogName),beforeClose:function(t){a(e,e.extDialogObj,t,s.dialogName)},content:s.content,header:s.header,closeOnEscape:!0,allowDragging:!0,animationSettings:{effect:"None"},target:e.popupTarget?e.popupTarget:"#"+e.element.id,cssClass:i.i(U.F)(e,e.isMobile?F.C:F.D),enableRtl:e.enableRtl,showCloseIcon:!0,isModal:!0,width:350,buttons:s.buttons,open:s.open,close:s.close,enableHtmlSanitizer:e.enableHtmlSanitizer,locale:e.locale}),e.extDialogObj.isStringTemplate=!0,e.extDialogObj.appendTo("#"+e.element.id+F.F)):(e.extDialogObj.header=s.header,e.extDialogObj.close=s.close,e.extDialogObj.open=s.open,e.extDialogObj.close=s.close,e.extDialogObj.content=s.content,e.extDialogObj.buttons=s.buttons,e.extDialogObj.enableRtl=e.enableRtl,e.extDialogObj.locale=e.locale,e.extDialogObj.beforeOpen=O.bind(this,e,s.dialogName),e.extDialogObj.beforeClose=function(t){a(e,e.extDialogObj,t,s.dialogName)},e.extDialogObj.dataBind(),e.extDialogObj.show())}function s(e,t,i,n){var r={cancel:i.cancel,popupName:n,popupModule:t};e.trigger("beforePopupOpen",r,function(e){i.cancel=e.cancel})}function a(e,t,i,n){var r={cancel:i.cancel,popupModule:t,popupName:n};e.trigger("beforePopupClose",r,function(t){i.cancel=t.cancel,i.cancel||!i.isInteracted||"Rename"!==n&&"Create Folder"!==n||e.trigger(V.B,{})})}function o(e,t,i){var n={popupModule:t,element:t.element,popupName:i};e.trigger("popupOpen",n)}function l(e,t,i){var n={popupModule:t,element:t.element,popupName:i};e.trigger("popupClose",n)}function d(e,t,n,s){var a,d,p,f={header:"",content:"",buttons:[],dialogName:""};switch(f.open=function(){o(e,e.extDialogObj,f.dialogName)},f.close=function(){l(e,e.extDialogObj,f.dialogName)},t){case"Extension":f.header=i.i(U.E)(e,"Header-Rename-Confirmation"),f.content="<div>"+i.i(U.E)(e,"Content-Rename-Confirmation")+"</div>",f.buttons=[{buttonModel:{isPrimary:!0,content:i.i(U.E)(e,"Button-Yes")},click:function(){e.extDialogObj.hide(),i.i(A.d)(e,s,e.renameText)}},{buttonModel:{content:i.i(U.E)(e,"Button-No")},click:function(){e.extDialogObj.hide(),e.dialogObj.hide()}}],f.dialogName="Extension Change";break;case"DuplicateItems":f.dialogName="Duplicate Items",e.replaceItems=n,d=e.replaceItems[e.fileLength],p=d.lastIndexOf("/"),d=-1===p?d:d.substring(p),f.header=i.i(U.E)(e,"Header-Duplicate"),a="<div>"+i.i(U.E)(e,"Content-Duplicate")+"</div>",f.content=a.replace("{0}",d),f.close=function(){if(!e.isDropEnd&&0===e.duplicateItems.length){var t={fileDetails:e.droppedObjects};e.trigger("fileDropped",t),e.isDropEnd=e.isDragDrop=!1}l(e,e.extDialogObj,f.dialogName)},f.buttons=[{buttonModel:{isPrimary:!0,content:i.i(U.E)(e,"Button-Yes")},click:function(){if(e.duplicateItems.push(e.replaceItems[e.fileLength]),e.duplicateRecords.push(i.i(U.R)(e,e.replaceItems[e.fileLength])),e.fileLength++,n[e.fileLength]){var t=e.replaceItems[e.fileLength],r=t.lastIndexOf("/");t=-1===r?t:t.substring(r),e.extDialogObj.content=a.replace("{0}",t),e.extDialogObj.show()}else{e.extDialogObj.hide();var s=e.isDragDrop?e.dragPath:e.targetPath,o=e.isDragDrop?e.dropPath:""===e.folderPath?e.path:e.folderPath,l=e.isDragDrop?"move":e.fileAction;i.i(A.e)(e,s,e.duplicateItems,o,l,e.duplicateItems,e.duplicateRecords)}}},{buttonModel:{content:i.i(U.E)(e,"Button-No")},click:function(){if(e.fileLength++,n[e.fileLength]){var t=e.replaceItems[e.fileLength],r=t.lastIndexOf("/");t=-1===r?t:t.substring(r),e.extDialogObj.content=a.replace("{0}",t),e.extDialogObj.show()}else if(e.extDialogObj.hide(),0!==e.duplicateItems.length){var s=e.isDragDrop?"move":e.fileAction,o=e.isDragDrop?e.dragPath:e.targetPath,l=e.isDragDrop?e.dropPath:""===e.folderPath?e.path:e.folderPath;i.i(A.e)(e,o,e.duplicateItems,l,s,e.duplicateItems,e.duplicateRecords)}}}];break;case"UploadRetry":f.dialogName="Retry Upload",f.header=i.i(U.E)(e,"Header-Retry"),f.content=e.retryFiles[0].name+'<div class="e-fe-retrycontent">'+i.i(U.E)(e,"Content-Retry")+"</div>",f.open=u.bind(this,e),f.close=function(){e.isRetryOpened=!1,c(e),l(e,e.extDialogObj,f.dialogName)},f.buttons=[{buttonModel:{isPrimary:!0,content:i.i(U.E)(e,"Button-Keep-Both")},click:function(){h(e,!0)}},{buttonModel:{isPrimary:!0,content:i.i(U.E)(e,"Button-Replace")},click:function(){h(e,!1)}},{buttonModel:{isPrimary:!0,content:i.i(U.E)(e,"Button-Skip")},click:function(){var t=0;e.isApplySame?(t=e.retryFiles.length,e.retryFiles=[],c(e)):(t=1,e.retryFiles.splice(0,1),0!==e.retryFiles.length?r(e,"UploadRetry"):c(e)),e.notify(V.C,{count:t})}}]}return f}function h(e,t){e.isApplySame?(t?p(e):f(e),c(e)):(e.retryArgs.push({action:t?"keepboth":"replace",file:e.retryFiles[0]}),e.uploadObj.retry(e.retryFiles[0]),e.retryFiles.splice(0,1),0!==e.retryFiles.length?r(e,"UploadRetry"):c(e))}function c(e){var t=!0;e.isRetryOpened?e.isRetryOpened=!1:t=!1;var n=i.i(T.select)(".e-dlg-checkbox",e.extDialogObj.element);n&&i.i(T.remove)(n),t?e.extDialogObj.hide():e.retryFiles=[]}function u(e,t){e.isRetryOpened=!0;var n=i.i(T.getValue)("element",t),r=i.i(T.select)(".e-dlg-content",n),s=e.createElement("div",{className:"e-dlg-checkbox"}),a=e.createElement("input",{id:e.element.id+"_applyall"});s.appendChild(a),r.appendChild(s),new B.CheckBox({label:i.i(U.E)(e,"ApplyAll-Label"),change:function(t){e.isApplySame=t.checked}}).appendTo("#"+e.element.id+"_applyall"),o(e,e.extDialogObj,"Retry Upload")}function p(e){for(;0!==e.retryFiles.length;)e.retryArgs.push({action:"keepboth",file:e.retryFiles[0]}),e.uploadObj.retry(e.retryFiles[0]),e.retryFiles.splice(0,1)}function f(e){for(;0!==e.retryFiles.length;)e.retryArgs.push({action:"replace",file:e.retryFiles[0]}),e.uploadObj.retry(e.retryFiles[0]),e.retryFiles.splice(0,1)}function g(e){var t=i.i(T.select)("#newname",e.dialogObj.element);t.focus(),t.value="";var n=t.value.length;t.setSelectionRange(0,n)}function m(e){var t=i.i(T.select)("#newname",e.dialogObj.element);t.parentElement.classList.contains("e-control-wrapper")||y(t,i.i(U.E)(e,"Content-NewFolder")),t.parentElement.nextElementSibling.innerHTML="",t.oninput=function(){x(e,t)},t.onkeyup=function(t){13===N(t)&&S(e)},g(e),o(e,e.dialogObj,"Create Folder")}function b(e){var t=i.i(T.select)("#rename",e.dialogObj.element);t.parentElement.classList.contains("e-control-wrapper")||y(t,i.i(U.E)(e,"Content-Rename")),t.parentElement.nextElementSibling.innerHTML="",t.oninput=function(){x(e,t)},t.onkeyup=function(t){13===N(t)&&C(e)},v(e,t),o(e,e.dialogObj,"Rename")}function v(e,t){t.focus();var i="";if(e.isFile&&!e.showFileExtension){var n=e.currentItemText.lastIndexOf(".");i=-1===n?e.currentItemText:e.currentItemText.substring(0,n)}else i=e.currentItemText;t.value=i,e.isFile&&e.showFileExtension&&-1!==t.value.indexOf(".")?t.setSelectionRange(0,t.value.lastIndexOf(".")):t.setSelectionRange(0,t.value.length)}function y(e,t){H.Input.createInput({element:e,properties:{placeholder:t}})}function _(e,t,n,r,s){var a,d,h,c,u,p,f={header:"",content:"",buttons:[],dialogName:""};switch(f.open=function(){o(e,e.dialogObj,f.dialogName)},f.close=function(){l(e,e.dialogObj,f.dialogName)},t=r&&!0===r.multipleFiles?"MultipleFileDetails":t){case"NewFolder":f.dialogName="Create Folder",f.header=i.i(U.E)(e,"Header-NewFolder"),f.content='<input type="text" value="New folder" id="newname"><div class="e-fe-error"></div>',f.buttons=[{buttonModel:{isPrimary:!0,content:i.i(U.E)(e,"Button-Create")},click:function(t){"keydown"!==t.type&&S(e)}}],f.open=m.bind(this,e);break;case"Delete":f.dialogName="Delete",e.selectedItems.length>1?(f.content=("<div>"+i.i(U.E)(e,"Content-Multiple-Delete")+"</div>").replace("{0}",e.selectedItems.length.toString()),f.header=i.i(U.E)(e,"Header-Multiple-Delete")):(f.content="<div>"+i.i(U.E)(e,e.isFile?"Content-Delete":"Content-Folder-Delete")+"</div>",f.header=i.i(U.E)(e,e.isFile?"Header-Delete":"Header-Folder-Delete")),f.buttons=[{buttonModel:{isPrimary:!0,content:i.i(U.E)(e,"Button-Yes")},click:function(t){j(e)}},{buttonModel:{content:i.i(U.E)(e,"Button-No")},click:function(){e.dialogObj.hide()}}];break;case"Rename":f.dialogName="Rename",f.header=i.i(U.E)(e,"Header-Rename"),f.content='<input type="text" class="e-input" id="rename"><div class="e-fe-error"></div>',f.buttons=[{buttonModel:{isPrimary:!0,content:i.i(U.E)(e,"Button-Save")},click:function(t){"keydown"!==t.type&&C(e)}}],f.open=b.bind(this,e);break;case"details":f.dialogName="File Details",h=new T.Internationalization(e.locale),d=h.formatDate(new Date(r.modified),{format:"MMMM dd, yyyy HH:mm:ss"}),a="",i.i(T.isNullOrUndefined)(r.permission)||(a="<tr><td>"+i.i(U.E)(e,"Permission")+'</td><td class="'+F.G+'" >'+i.i(U._0)(r.permission)+"</td></tr>"),f.header=r.name,f.content="<table><tr><td>"+i.i(U.E)(e,"Type")+'</td><td class="'+F.G+'" title="'+(r.isFile?"File":"Folder")+'">'+(r.isFile?"File":"Folder")+"</td></tr><tr><td>"+i.i(U.E)(e,"Size")+'</td><td><span class="'+F.G+'" title ="'+r.size+'">'+r.size+"</span></td></tr><tr><td>"+i.i(U.E)(e,"Location")+'</td><td class="'+F.G+'" title="'+r.location+'">'+r.location+"</td></tr><tr><td>"+i.i(U.E)(e,"Modified")+'</td><td class="'+F.G+'" >'+d+"</td></tr>"+a+"</table>",f.buttons=[{buttonModel:{isPrimary:!0,content:i.i(U.E)(e,"Button-Ok")},click:function(t){e.dialogObj.hide()}}];break;case"MultipleFileDetails":var g;f.dialogName="File Details",c=e.itemData.map(function(e){return g=e.name.indexOf(".")+1,0!==g||e.isFile?0!==g?e.name.substr(g).replace(" ",""):"undetermined":"Folder"}),void 0==c[0]&&(c=r.name.split(",").map(function(e){return g=e.indexOf(".")+1,0===g?"Folder":e.substr(g).replace(" ","")})),u=c.every(function(e,t,i){return e===i[0]})?"Folder"===c[0]?"Folder":c[0].toLocaleUpperCase()+" Type":"Multiple Types",p=r.location,f.header=r.name,f.content="<table><tr><td>"+i.i(U.E)(e,"Type")+':</td><td class="'+F.G+'">'+u+"</td></tr><tr><td>"+i.i(U.E)(e,"Size")+":</td><td>"+r.size+'<span class="'+F.G+'" title ="'+r.size+'"></span></td></tr><tr><td>'+i.i(U.E)(e,"Location")+':</td><td class="'+F.G+'" title="'+p+'">'+p+"</td></tr></table>",f.buttons=[{buttonModel:{isPrimary:!0,content:i.i(U.E)(e,"Button-Ok")},click:function(t){"keydown"!==t.type&&e.dialogObj.hide()}}];break;case"Error":e.notify(V.B,{}),f.dialogName="Error","401"===n.error.code?f.header='<span class="e-fe-icon e-fe-access-error"></span><div class="e-fe-access-header">'+i.i(U.E)(e,"Access-Denied")+"</div>":f.header=i.i(U.E)(e,"Error"),f.content='<div class="'+F.H+'">'+n.error.message+"</div>",f.buttons=[{buttonModel:{isPrimary:!0,content:i.i(U.E)(e,"Button-Ok")},click:function(t){e.dialogObj.hide()}}]}return f}function I(e,t,n){w(i.i(T.selectAll)(".e-btn",e.dialogObj.element)),s(e,e.dialogObj,n,t)}function O(e,t,n){w(i.i(T.selectAll)(".e-btn",e.extDialogObj.element)),s(e,e.extDialogObj,n,t)}function w(e){for(var t=0;t<e.length;t++)!function(t){e[t].onkeydown=function(e){13===e.keyCode&&e.preventDefault()},e[t].onkeyup=function(i){13===i.keyCode&&e[t].click()}}(t)}function D(e,t){e.dialogObj.header=t.header,e.dialogObj.content=t.content,e.dialogObj.buttons=t.buttons,e.dialogObj.enableRtl=e.enableRtl,e.dialogObj.open=t.open,e.dialogObj.close=t.close,e.dialogObj.beforeOpen=I.bind(this,e,t.dialogName),e.dialogObj.beforeClose=function(i){a(e,e.dialogObj,i,t.dialogName)},e.dialogObj.dataBind(),e.dialogObj.show()}function S(e){var t=i.i(T.select)("#newname",e.dialogObj.element);E(e,t),""===t.parentElement.nextElementSibling.innerHTML&&i.i(A.b)(e,t.value)}function C(e){var t=i.i(T.select)("#rename",e.dialogObj.element);if(E(e,t),""===t.parentElement.nextElementSibling.innerHTML){var n=t.value,s=e.currentItemText.lastIndexOf(".");if(e.isFile&&!e.showFileExtension){n+=-1===s?"":e.currentItemText.substr(s)}if(e.renameText=n,e.currentItemText===n)return void e.dialogObj.hide();var a="navigationpane"===e.activeModule?i.i(T.getValue)("filterPath",e.itemData[0]).replace(/\\/g,"/"):e.path;if(e.renamedId=i.i(T.getValue)("id",e.itemData[0]),e.isFile){var o=-1===s?"":e.currentItemText.substr(s),l=n.lastIndexOf("."),d=-1===l?"":n.substr(l);e.showFileExtension&&o!==d?r(e,"Extension",null,a):i.i(A.d)(e,a,n)}else i.i(A.d)(e,a,n)}}function j(e){e.dialogObj.hide(),e.notify(V.D,{})}function x(e,t){/[\/\\|*?"<>:]/.test(t.value)?P(e,t):""===t.value?t.parentElement.nextElementSibling.innerHTML=i.i(U.E)(e,"Validation-Empty"):t.parentElement.nextElementSibling.innerHTML=""}function E(e,t){x(e,t);var i=t.value.length-1;""===t.value||t.value.lastIndexOf(".")!==i&&t.value.lastIndexOf(" ")!==i||!e.showFileExtension&&-1!==t.value.lastIndexOf(".")&&0!==t.value.substring(t.value.indexOf(".")+1).length||P(e,t)}function P(e,t){var n=i.i(U.E)(e,"Validation-Invalid").replace("{0}",'"'+t.value+'"');e.enableHtmlSanitizer?t.parentElement.nextElementSibling.textContent=n:t.parentElement.nextElementSibling.innerHTML=n}function N(e){return e.keyCode?e.keyCode:e.which?e.which:e.charCode}function R(e,t,n){var r=i.i(T.createElement)("div",{className:"e-image-wrap"}),o=i.i(T.createElement)("img",{className:"e-image",attrs:{src:n,alt:t}});r.appendChild(o),i.i(T.isNullOrUndefined)(e.viewerObj)?(e.viewerObj=new L.Dialog({header:t,content:r,animationSettings:{effect:"None"},showCloseIcon:!0,closeOnEscape:!0,visible:!0,isModal:!0,width:"350px",height:"350px",target:e.popupTarget?e.popupTarget:"#"+e.element.id,cssClass:i.i(U.F)(e,e.isMobile?F.C:F.D),locale:e.locale,enableResize:!0,allowDragging:!0,enableHtmlSanitizer:e.enableHtmlSanitizer,position:{X:"center",Y:"center"},enableRtl:e.enableRtl,open:M.bind(this,e),close:function(){l(e,e.viewerObj,"Image Preview")},beforeOpen:function(t){s(e,e.viewerObj,t,"Image Preview")},beforeClose:function(t){a(e,e.viewerObj,t,"Image Preview")},resizing:k.bind(this,e),resizeStop:k.bind(this,e)}),e.viewerObj.isStringTemplate=!0,e.viewerObj.appendTo("#"+e.element.id+F.I)):(e.viewerObj.refresh(),e.viewerObj.header=t,e.viewerObj.content=r,e.viewerObj.enableRtl=e.enableRtl,e.viewerObj.dataBind(),e.viewerObj.show())}function M(e){setTimeout(function(){e.viewerObj&&e.viewerObj.element.focus()}),k(e),o(e,e.viewerObj,"Image Preview")}function k(e){var t=i.i(T.select)(".e-dlg-content",e.viewerObj.element),n=i.i(T.select)(".e-image-wrap",e.viewerObj.element),r=window.getComputedStyle(t,null),s=r?2*parseFloat(r.paddingRight):36,a=r?2*parseFloat(r.paddingBottom):20;n.style.width=t.offsetWidth-s+"px",n.style.height=t.offsetHeight-a+"px"}t.a=n,t.b=r,t.c=R;var L=i(9),T=(i.n(L),i(0)),A=(i.n(T),i(5)),F=i(3),V=i(4),U=i(1),H=i(10),B=(i.n(H),i(17));i.n(B)},function(e,t,i){"use strict";var n=i(29);i.d(t,"a",function(){return n.a});var r=i(35);i.d(t,"b",function(){return r.a}),i.d(t,"c",function(){return r.b}),i.d(t,"d",function(){return r.c});var s=i(34);i.d(t,"e",function(){return s.a});var a=i(32);i.d(t,"f",function(){return a.a}),i.d(t,"g",function(){return a.b});var o=i(14);i.d(t,"h",function(){return o.b}),i.d(t,"i",function(){return o.c}),i.d(t,"j",function(){return o.d}),i.d(t,"k",function(){return o.a});var l=i(33);i.d(t,"l",function(){return l.a});var d=i(15);i.d(t,"m",function(){return d.a});var h=i(30);i.d(t,"n",function(){return h.a})},function(e,i){e.exports=t},function(e,t){e.exports=i},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t,i){"use strict";i.d(t,"a",function(){return h});var n=i(0),r=(i.n(n),i(10)),s=(i.n(r),i(19)),a=(i.n(s),i(5)),o=i(1),l=i(4),d=i(3),h=function(){function e(e){this.addressPath="",this.addressBarLink="",this.searchTimer=null,this.searchWrapWidth=null,this.parent=e,this.keyConfigs={enter:"enter"},this.render()}return e.prototype.onPropertyChanged=function(e){if(e.module===this.getModuleName()||"common"===e.module)for(var t=0,r=Object.keys(e.newProp);t<r.length;t++){var s=r[t],a=e.newProp.searchSettings;switch(s){case"searchSettings":i.i(n.isNullOrUndefined)(a.allowSearchOnTyping)||this.searchEventBind(a.allowSearchOnTyping),!this.parent.breadcrumbbarModule.searchObj.value||""===this.parent.breadcrumbbarModule.searchObj.value||!i.i(n.isNullOrUndefined)(a.allowSearchOnTyping)&&i.i(n.isNullOrUndefined)(a.filterType)&&i.i(n.isNullOrUndefined)(a.ignoreCase)||i.i(o.m)(this.parent,this.parent.breadcrumbbarModule.searchObj.value,!1)}}},e.prototype.render=function(){this.addEventListener()},e.prototype.onPathChange=function(){var e=this.parent.pathNames,t=this.parent.path.split("/"),r=this.parent.createElement("ul",{className:"e-addressbar-ul"}),s=null,a=e.length;if(e.length>0){for(var o="",l=0;l<a;l++){var h=null;s=this.parent.createElement("li",{className:"e-address-list-item"});for(var c=0;c<=l;c++)o=o+t[c]+"/";if(s.setAttribute("data-utext",o),0!==l){var u=i.i(n.createElement)("span",{className:d._20});s.appendChild(u)}a-l!=1?(h=i.i(n.createElement)("a",{className:d.b}),s.setAttribute("tabindex","0")):h=i.i(n.createElement)("span",{className:d.b}),o="",h.innerText=e[l],s.appendChild(h),r.appendChild(s)}var p=this.parent.breadCrumbBarNavigation.querySelector(".e-addressbar-ul");i.i(n.isNullOrUndefined)(p)||(i.i(n.isNullOrUndefined)(this.subMenuObj)||this.subMenuObj.destroy(),i.i(n.remove)(p));var f=this.parent.breadCrumbBarNavigation.querySelector(".e-search-wrap");f?this.parent.breadCrumbBarNavigation.appendChild(r):this.parent.breadCrumbBarNavigation.insertBefore(r,f),this.updateBreadCrumbBar(r)}},e.prototype.updateBreadCrumbBar=function(e){for(var t=e.querySelectorAll("li"),a=this.parent.breadCrumbBarNavigation.querySelector(".e-addressbar-ul"),l=window.getComputedStyle(a,null),h=parseFloat(l.getPropertyValue("padding-right")),c=parseFloat(l.getPropertyValue("padding-left")),u=a.offsetWidth-h-c,p=this.parent.createElement("ul",{className:"e-addressbar-ul"}),f=0,g=[],m=0;m<t.length;m++){var b=t[m].clientWidth;g.push(b),f+=b}i.i(n.isNullOrUndefined)(a)||i.i(n.remove)(a);var v=this.parent.createElement("div");v.setAttribute("class","e-search-wrap");var y=this.parent.element.id+d._21,_=i.i(n.createElement)("input",{id:y,attrs:{autocomplete:"off","aria-label":i.i(o.E)(this.parent,"Search")}});v.appendChild(_);var I=this.parent.breadCrumbBarNavigation.querySelector(".e-search-wrap .e-input");if(i.i(n.isNullOrUndefined)(I)){this.parent.breadCrumbBarNavigation.appendChild(v);var O=i.i(n.createElement)("span",{className:"e-icons e-fe-search"});n.EventHandler.add(O,"click",this.onShowInput,this),_.parentElement.insertBefore(O,_),this.searchObj=new r.TextBox({value:"",showClearButton:!0,placeholder:i.i(o.E)(this.parent,"Search"),focus:this.onFocus.bind(this),blur:this.onBlur.bind(this)}),this.searchObj.appendTo("#"+this.parent.element.id+d._21),this.searchEventBind(this.parent.searchSettings.allowSearchOnTyping);var w=this.searchObj.element.nextElementSibling;n.EventHandler.add(w,"mousedown",this.searchChangeHandler.bind(this),this),n.EventHandler.add(this.searchObj.element,"keyup",this.onKeyUp.bind(this),this)}var D=this.parent.breadCrumbBarNavigation.querySelector(".e-search-wrap");if(u-=this.searchWrapWidth?this.searchWrapWidth:D.offsetWidth,f>u){for(var m=t.length;m--;){var S=u-g[m];if(!(S>40)){for(var C=[],j=0;j<=m;j++){var x=t[j];C.push({text:x.innerText,utext:x.getAttribute("data-utext")})}var E=this.parent.createElement("li",{className:"e-breadcrumb-menu"}),P={className:"e-breadcrumb-submenu"},N=this.parent.createElement("button",P);E.appendChild(N),p.insertBefore(E,p.querySelector("li")),this.subMenuObj=new s.DropDownButton({items:C,cssClass:"e-caret-hide e-submenu",iconCss:d._22,iconPosition:"Top",enableHtmlSanitizer:this.parent.enableHtmlSanitizer,beforeItemRender:this.addSubMenuAttributes.bind(this),select:this.subMenuSelectOperations.bind(this)}),this.subMenuObj.isStringTemplate=!0,this.subMenuObj.appendTo(N);break}p.insertBefore(t[m],p.querySelector("li")),u=S}this.parent.breadCrumbBarNavigation.insertBefore(p,D)}else this.parent.breadCrumbBarNavigation.insertBefore(e,D)},e.prototype.onFocus=function(){i.i(n.closest)(this.searchObj.element,".e-search-wrap").classList.add("e-focus")},e.prototype.onKeyUp=function(){this.parent.notify(l.d,{args:this.parent})},e.prototype.onBlur=function(){i.i(n.closest)(this.searchObj.element,".e-search-wrap").classList.remove("e-focus")},e.prototype.subMenuSelectOperations=function(e){var t={target:e.element};this.addressPathClickHandler(t)},e.prototype.addSubMenuAttributes=function(e){e.element.setAttribute("data-utext",i.i(n.getValue)("utext",e.item));var t=this.parent.createElement("a",{className:"e-list-text"});e.element.appendChild(t)},e.prototype.searchEventBind=function(e){e?(this.searchObj.input=this.searchChangeHandler.bind(this),this.searchObj.change=null):(this.searchObj.change=this.searchChangeHandler.bind(this),this.searchObj.input=null)},e.prototype.searchChangeHandler=function(e){var t=this;i.i(n.isNullOrUndefined)(e.value)||(this.parent.isFiltered=!1,this.parent.searchSettings.allowSearchOnTyping?(window.clearTimeout(this.searchTimer),this.searchTimer=window.setTimeout(function(){i.i(o.m)(t.parent,e.value,!1)},300)):i.i(o.m)(this.parent,e.value,!1))},e.prototype.addressPathClickHandler=function(e){var t=e.target;if("LI"===t.nodeName||"A"===t.nodeName){var r="LI"===t.nodeName?t.children[0]:t;if(!i.i(n.isNullOrUndefined)(r)){this.parent.isFiltered=!1;var s=this.updatePath(r);this.parent.itemData=[i.i(n.getValue)(this.parent.pathId[this.parent.pathId.length-1],this.parent.feParent)],this.triggerFileOpen(this.parent.itemData[0]),i.i(a.a)(this.parent,l.K,s);var o=this.parent.pathId[this.parent.pathId.length-1];this.parent.notify(l._5,{module:"treeview",selectedNode:o})}}},e.prototype.triggerFileOpen=function(e){var t={cancel:!1,fileDetails:e,module:"BreadCrumbBar"};delete t.cancel,this.parent.trigger("fileOpen",t)},e.prototype.onShowInput=function(){if(this.parent.isMobile)if(this.parent.element.classList.contains(d._23))i.i(n.removeClass)([this.parent.element],d._23),this.searchWrapWidth=null;else{var e=this.parent.breadCrumbBarNavigation.querySelector(".e-search-wrap");this.searchWrapWidth=e.offsetWidth,i.i(n.addClass)([this.parent.element],d._23),this.searchObj.element.focus()}},e.prototype.updatePath=function(e){var t=i.i(n.closest)(e,"li"),r=t.getAttribute("data-utext");this.addressBarLink=r;var s=this.addressBarLink.split("/"),a=this.parent.pathId,o=this.parent.pathNames;this.parent.pathId=[],this.parent.pathNames=[];for(var l="",d=0,h=s.length-1;d<h;d++)this.parent.pathId.push(a[d]),this.parent.pathNames.push(o[d]),l+=s[d]+"/";return this.parent.setProperties({path:l},!0),l},e.prototype.onUpdatePath=function(){this.onPathChange(),this.removeSearchValue()},e.prototype.onCreateEnd=function(){this.onPathChange()},e.prototype.onRenameEnd=function(){this.onPathChange()},e.prototype.onDeleteEnd=function(){this.onUpdatePath()},e.prototype.removeSearchValue=function(){this.parent.isFiltered=!1,!this.searchObj||""===this.searchObj.value&&""===this.searchObj.element.value||(this.searchObj.value="",this.searchObj.element.value="",this.searchObj.dataBind())},e.prototype.onResize=function(){this.onPathChange()},e.prototype.onPasteEnd=function(){this.onPathChange()},e.prototype.addEventListener=function(){this.keyboardModule=new n.KeyboardEvents(this.parent.breadCrumbBarNavigation,{keyAction:this.keyActionHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"}),this.parent.on(l.V,this.onPropertyChanged,this),n.EventHandler.add(this.parent.breadCrumbBarNavigation,"click",this.addressPathClickHandler,this),this.parent.on(l.U,this.destroy,this),this.parent.on(l.K,this.onUpdatePath,this),this.parent.on(l.m,this.onUpdatePath,this),this.parent.on(l.h,this.onUpdatePath,this),this.parent.on(l.i,this.onUpdatePath,this),this.parent.on(l.I,this.onCreateEnd,this),this.parent.on(l.L,this.onRenameEnd,this),this.parent.on(l.M,this.onDeleteEnd,this),this.parent.on(l.Z,this.onResize,this),this.parent.on(l.s,this.onPasteEnd,this),this.parent.on(l._0,this.onResize,this),this.parent.on(l.G,this.onSearchTextChange,this),this.parent.on(l.v,this.onDropInit,this),this.parent.on(l._1,this.onResize,this),this.parent.on(l.u,this.onPathChange,this)},e.prototype.keyActionHandler=function(e){switch(e.action){case"enter":this.addressPathClickHandler(e)}},e.prototype.removeEventListener=function(){this.keyboardModule.destroy(),this.parent.off(l.K,this.onUpdatePath),this.parent.off(l.m,this.onUpdatePath),this.parent.off(l.h,this.onUpdatePath),this.parent.off(l.i,this.onUpdatePath),this.parent.off(l.s,this.onPasteEnd),this.parent.off(l.I,this.onCreateEnd),this.parent.off(l.L,this.onRenameEnd),this.parent.off(l.M,this.onDeleteEnd),this.parent.off(l.Z,this.onResize),this.parent.off(l._0,this.onResize),this.parent.off(l.G,this.onSearchTextChange),this.parent.off(l.v,this.onDropInit),this.parent.off(l._1,this.onResize),this.parent.off(l.u,this.onPathChange)},e.prototype.onDropInit=function(e){if(this.parent.targetModule===this.getModuleName()){var t=e.target.closest("li");this.parent.dropPath=this.updatePath(t.children[0]),this.parent.dropData=i.i(n.getValue)(this.parent.pathId[this.parent.pathId.length-1],this.parent.feParent),this.triggerFileOpen(this.parent.dropData);var r=this.parent.pathId[this.parent.pathId.length-1];this.parent.notify(l._5,{module:"treeview",selectedNode:r})}},e.prototype.getModuleName=function(){return"breadcrumbbar"},e.prototype.destroy=function(){this.parent.isDestroyed||(this.removeEventListener(),i.i(n.isNullOrUndefined)(this.subMenuObj)||this.subMenuObj.destroy(),i.i(n.isNullOrUndefined)(this.searchObj)||this.searchObj.destroy())},e.prototype.onSearchTextChange=function(e){this.searchObj.element.placeholder=null!=this.parent.searchSettings.placeholder?this.parent.searchSettings.placeholder:i.i(o.E)(this.parent,"Search")+" "+i.i(o.E)(this.parent,e.cwd.name.toString())},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return f});var n=i(18),r=(i.n(n),i(0)),s=(i.n(r),i(8)),a=(i.n(s),i(9)),o=(i.n(a),i(4)),l=i(3),d=i(17),h=(i.n(d),i(5)),c=i(2),u=i(1),p=i(6),f=function(){function e(e){this.isInteraction=!0,this.uploadOperation=!1,this.count=0,this.isRendered=!0,this.tapCount=0,this.isSelectAllCalled=!1,this.isPasteOperation=!1,this.isInteracted=!0,this.parent=e,this.element=i.i(r.select)("#"+this.parent.element.id+l.T,this.parent.element),i.i(r.addClass)([this.element],l.k),this.addEventListener(),this.keyConfigs={end:"end",home:"home",tab:"tab",moveDown:"downarrow",moveLeft:"leftarrow",moveRight:"rightarrow",moveUp:"uparrow",ctrlEnd:"ctrl+end",ctrlHome:"ctrl+home",ctrlDown:"ctrl+downarrow",ctrlLeft:"ctrl+leftarrow",ctrlRight:"ctrl+rightarrow",ctrlUp:"ctrl+uparrow",shiftEnd:"shift+end",shiftHome:"shift+home",shiftDown:"shift+downarrow",shiftLeft:"shift+leftarrow",shiftRight:"shift+rightarrow",shiftUp:"shift+uparrow",csEnd:"ctrl+shift+end",csHome:"ctrl+shift+home",csDown:"ctrl+shift+downarrow",csLeft:"ctrl+shift+leftarrow",csRight:"ctrl+shift+rightarrow",csUp:"ctrl+shift+uparrow",space:"space",ctrlSpace:"ctrl+space",shiftSpace:"shift+space",csSpace:"ctrl+shift+space",ctrlA:"ctrl+a",enter:"enter",altEnter:"alt+enter",esc:"escape",del:"delete",ctrlX:this.parent.isMac?"cmd+x":"ctrl+x",ctrlC:this.parent.isMac?"cmd+c":"ctrl+c",ctrlV:this.parent.isMac?"cmd+v":"ctrl+v",f2:"f2",shiftdel:"shift+delete",back:"backspace",ctrlD:"ctrl+d"}}return e.prototype.render=function(e){if(this.parent.visitedItem=null,this.startItem=null,i.i(a.showSpinner)(this.parent.element),"LargeIcons"===this.parent.view){this.resetMultiSelect(),this.element.setAttribute("tabindex","0"),this.listObj&&(this.unWireEvents(),this.removeEventListener()),this.parent.notify(o.W,{});var t=i.i(r.select)("#"+this.parent.element.id+l.T,this.parent.element),d=i.i(r.select)("ul",t);if(d&&i.i(r.remove)(d),this.listObj={ariaAttributes:{itemRole:"option",listRole:"listbox",itemText:"",groupItemRole:"group",wrapperRole:""},showIcon:!0,fields:{text:"name",iconCss:"_fm_icon",imageUrl:"_fm_imageUrl",htmlAttributes:"_fm_htmlAttr"},sortOrder:this.parent.sortOrder,itemCreated:this.onItemCreated.bind(this),enableHtmlSanitizer:this.parent.enableHtmlSanitizer},this.items=[],this.items=this.renderList(e),this.parent.sortComparer&&"None"!==this.parent.sortBy?this.items=this.allItems=s.DataUtil.sort(this.items,this.parent.sortBy,this.comparer.bind(this)):this.items=this.allItems=i.i(u.y)(this.parent,this.items),t.classList.remove(l._10),this.parent.enableVirtualization&&this.allItems.length>0&&(this.element.style.height||this.adjustHeight(),this.parent.virtualizationModule.setUIVirtualization()),this.listElements=n.ListBase.createListFromJson(r.createElement,this.items,this.listObj),this.itemList=Array.prototype.slice.call(i.i(r.selectAll)("."+l.a,this.listElements)),this.element.appendChild(this.listElements),this.listElements.setAttribute("aria-label","listbox"),this.preventImgDrag(),this.createDragObj(),0===this.itemList.length){var h=this.element.querySelector("."+l._11);this.element.removeChild(h),i.i(u.A)(this.parent,this.element,e)}else 0!==this.itemList.length&&this.element.querySelector("."+l.s)&&this.element.removeChild(this.element.querySelector("."+l.s));!0===this.isPasteOperation&&(this.selectItems(this.parent.pasteNodes),this.isPasteOperation=!1),!0===this.uploadOperation&&(this.selectItems(this.parent.uploadItem),this.parent.setProperties({selectedItems:[]},!0),++this.count===this.parent.uploadItem.length&&(this.uploadOperation=!1,this.parent.uploadItem=[]));var c=this.element.querySelectorAll("."+l._12);0!==c.length&&(this.parent.activeModule="largeiconsview");for(var p=0;p<c.length;p++)c[p].setAttribute("aria-selected","true");this.adjustHeight(),this.element.style.maxHeight="100%",this.getItemCount(),this.addEventListener(),this.wireEvents(),this.parent.enableVirtualization&&this.allItems.length>0&&(this.parent.virtualizationModule.setUlElementHeight(),this.parent.virtualizationModule.wireScrollEvent(!1)),this.isRendered=!0,i.i(a.hideSpinner)(this.parent.element),this.parent.selectedItems.length&&this.checkItem()}},e.prototype.comparer=function(e,t,i,n){if("Descending"===this.parent.sortOrder){var r=e;e=t,t=r}return this.parent.sortComparer(e,t)},e.prototype.preventImgDrag=function(){for(var e=0;e<this.itemList.length;)this.itemList[e].querySelector("img")&&(this.itemList[e].ondragstart=function(){return!1}),e++},e.prototype.createDragObj=function(){var e=this;this.listObj&&(this.parent.allowDragAndDrop?(this.dragObj&&this.dragObj.destroy(),this.dragObj=new r.Draggable(this.listElements,{enableTailMode:!0,distance:5,enableAutoScroll:!1,dragTarget:"."+l.g,helper:this.dragHelper.bind(this),cursorAt:this.parent.dragCursorPosition,dragArea:this.parent.element,dragStop:c._2.bind(this,this.parent),drag:c._8.bind(this,this.parent),clone:!0,dragStart:function(t){i.i(c._3)(e.parent,t,e.dragObj)}})):this.dragObj&&!this.parent.allowDragAndDrop&&this.dragObj.destroy())},e.prototype.dragHelper=function(e){var t=e.sender.target,n=i.i(r.closest)(t,".e-list-item");if(!n)return null;n&&!n.classList.contains("e-active")&&this.setFocus(n);var s=this.element.querySelectorAll("."+l._12);this.parent.activeElements=[],this.parent.dragData=[];for(var a=0;a<s.length;a++)this.parent.dragData.push(this.getItemObject(s[a])),this.parent.activeElements.push(s[a]);return i.i(c.u)(this.parent,n),this.parent.dragPath=this.parent.path,i.i(c._1)(this.parent),this.parent.virtualDragElement},e.prototype.onDropInit=function(e){if(this.parent.targetModule===this.getModuleName()){var t=i.i(r.closest)(e.target,".e-list-item"),n=i.i(r.getValue)(this.parent.pathId[this.parent.pathId.length-1],this.parent.feParent);if(t){var s=this.getItemObject(t);this.parent.dropPath=s.isFile?this.parent.path:i.i(c.F)(this.parent,s,this.parent.path),this.parent.dropData=s.isFile?n:s}else this.parent.dropPath=this.parent.path,this.parent.dropData=n}},e.prototype.getModuleName=function(){return"largeiconsview"},e.prototype.adjustHeight=function(){var e=i.i(r.select)("#"+this.parent.element.id+l.y,this.parent.element),t=i.i(r.select)("#"+this.parent.element.id+l.q,this.parent.element);this.element.style.height=e.offsetHeight-t.offsetHeight+"px"},e.prototype.onItemCreated=function(e){if(e.item.removeAttribute("aria-level"),!this.parent.showFileExtension&&i.i(r.getValue)("isFile",e.curData)){var t=e.item.querySelector("."+l.b),n=i.i(r.getValue)("name",e.curData),s=i.i(r.getValue)("type",e.curData);t.innerHTML=n.substr(0,n.length-s.length)}this.renderCheckbox(e);var a={element:e.item,fileDetails:e.curData,module:"LargeIconsView"};this.parent.trigger("fileLoad",a)},e.prototype.renderCheckbox=function(e){if(this.parent.showItemCheckBoxes){var t=i.i(d.createCheckBox)(r.createElement,!1,{checked:!1,cssClass:"e-small"});t.setAttribute("role","checkbox"),t.setAttribute("aria-checked","false"),t.setAttribute("aria-label","checkbox"),e.item.firstElementChild.insertBefore(t,e.item.firstElementChild.childNodes[0])}},e.prototype.onLayoutChange=function(e){if("LargeIcons"===this.parent.view){if(this.destroy(),this.parent.enableVirtualization&&this.parent.setProperties({selectedItems:[]},!0),this.render(e),"layout-change"===i.i(r.getValue)("name",e)&&"move"===this.parent.fileAction&&this.parent.isCut&&this.parent.selectedNodes&&0!==this.parent.selectedNodes.length)for(var t=this.getIndexes(this.parent.selectedNodes),n=0;n<t.length;)i.i(c.s)(this.itemList[t[n]]),n++;0!==this.element.querySelectorAll("."+l._12).length&&this.element.focus(),this.checkItem(),this.parent.isLayoutChange=!1}else this.element.setAttribute("tabindex","-1")},e.prototype.checkItem=function(){var e=this.element.querySelectorAll("."+l._12);if(e)for(var t=0;t<e.length;)this.checkState(e[t],!0),t++},e.prototype.renderList=function(e){for(var t=0,n=JSON.parse(JSON.stringify(e.files));t<n.length;){var s=i.i(u.u)(n[t]),a=i.i(r.getValue)("name",n[t]),o=i.i(c._10)(this.parent,n[t]),d=this.parent.selectedItems&&-1!==this.parent.selectedItems.indexOf(o)?l.g+" e-active":l.g;if(i.i(u._10)(n[t])||(d+=" "+i.i(c._17)(n[t])),s===l.m&&this.parent.showThumbnail&&i.i(u._9)(n[t])){var h=i.i(u.v)(this.parent,n[t]);i.i(r.setValue)("_fm_imageUrl",h,n[t]),i.i(r.setValue)("_fm_imageAttr",{alt:a},n[t])}else i.i(r.setValue)("_fm_icon",s,n[t]);i.i(r.setValue)("_fm_htmlAttr",{class:d,title:a},n[t]),t++}return n},e.prototype.onFinalizeEnd=function(e){this.render(e)},e.prototype.onCreateEnd=function(e){"LargeIcons"===this.parent.view&&(this.onLayoutChange(e),this.clearSelect(),this.selectItems([i.i(r.getValue)(this.parent.hasId?"id":"name",this.parent.createdItem)]),this.parent.createdItem=null,this.parent.largeiconsviewModule.element.focus(),this.parent.activeModule="largeiconsview")},e.prototype.onSelectedData=function(){"largeiconsview"===this.parent.activeModule&&this.updateSelectedData()},e.prototype.onDeleteInit=function(){"largeiconsview"===this.parent.activeModule&&i.i(h.f)(this.parent,this.parent.selectedItems,this.parent.path,"delete")},e.prototype.onDeleteEnd=function(e){"LargeIcons"===this.parent.view&&(this.onLayoutChange(e),this.parent.setProperties({selectedItems:[]},!0),this.clearSelect())},e.prototype.onRefreshEnd=function(e){"LargeIcons"===this.parent.view&&this.onLayoutChange(e)},e.prototype.onRenameInit=function(){"largeiconsview"===this.parent.activeModule&&1===this.parent.selectedItems.length&&this.updateRenameData()},e.prototype.onPathChanged=function(e){this.parent.isCut=!1,""===this.parent.breadcrumbbarModule.searchObj.element.value&&(this.parent.searchedItems=[]),"LargeIcons"===this.parent.view&&(i.i(c.t)(this.parent),this.parent.setProperties({selectedItems:[]},!0),this.onLayoutChange(e),this.parent.renamedItem&&(this.clearSelect(),this.addSelection(this.parent.renamedItem),this.parent.renamedItem=null))},e.prototype.onOpenInit=function(e){"largeiconsview"===this.parent.activeModule&&this.doOpenAction(e.target)},e.prototype.onHideLayout=function(){"LargeIcons"!==this.parent.view&&this.element&&this.element.classList.add(l._10)},e.prototype.onSelectAllInit=function(){if("LargeIcons"===this.parent.view){this.startItem=this.getFirstItem();var e=this.getLastItem(),t={ctrlKey:!0,shiftKey:!0};this.doSelection(e,t),this.isInteraction=!0,this.isInteracted=!0}},e.prototype.onClearAllInit=function(){"LargeIcons"===this.parent.view&&(this.clearSelection(),this.isInteraction=!0,this.isInteracted=!0)},e.prototype.onBeforeRequest=function(){this.isRendered=!1},e.prototype.onAfterRequest=function(){this.isRendered=!0},e.prototype.onSearch=function(e){"LargeIcons"===this.parent.view&&(this.parent.setProperties({selectedItems:[]},!0),this.parent.notify(o.H,{}),this.parent.searchedItems=e.files,this.onLayoutChange(e))},e.prototype.onLayoutRefresh=function(){"LargeIcons"===this.parent.view&&this.adjustHeight()},e.prototype.onUpdateSelectionData=function(){"LargeIcons"===this.parent.view&&this.updateSelectedData()},e.prototype.onPathColumn=function(){"LargeIcons"!==this.parent.view||i.i(r.isNullOrUndefined)(this.listObj)||""!==this.parent.breadcrumbbarModule.searchObj.element.value||this.parent.isFiltered||"filterPath"!==this.parent.sortBy||(this.parent.sortBy="name",this.parent.notify(o.l,{}))},e.prototype.removeEventListener=function(){this.parent.isDestroyed||(this.parent.off(o.d,this.onPathColumn),this.parent.off(o.m,this.onFinalizeEnd),this.parent.off(o.I,this.onCreateEnd),this.parent.off(o.O,this.onSelectedData),this.parent.off(o.D,this.onDeleteInit),this.parent.off(o.M,this.onDeleteEnd),this.parent.off(o.h,this.onRefreshEnd),this.parent.off(o.K,this.onPathChanged),this.parent.off(o.e,this.onLayoutChange),this.parent.off(o.f,this.onSearch),this.parent.off(o.S,this.onOpenInit),this.parent.off(o.i,this.onPathChanged),this.parent.off(o.V,this.onPropertyChanged),this.parent.off(o.X,this.onMethodCall),this.parent.off(o.B,this.onActionFailure),this.parent.off(o.Q,this.onRenameInit),this.parent.off(o.L,this.onPathChanged),this.parent.off(o.W,this.onHideLayout),this.parent.off(o.R,this.onSelectAllInit),this.parent.off(o.Y,this.onClearAllInit),this.parent.off(o.N,this.onMenuItemData),this.parent.off(o.E,this.onBeforeRequest),this.parent.off(o.F,this.onAfterRequest),this.parent.off(o.Z,this.splitterResizeHandler),this.parent.off(o._0,this.resizeHandler),this.parent.off(o.p,this.onpasteInit),this.parent.off(o.s,this.onpasteEnd),this.parent.off(o.b,this.oncutCopyInit),this.parent.off(o.v,this.onDropInit),this.parent.off(o.T,this.onDetailsInit),this.parent.off(o._1,this.onLayoutRefresh),this.parent.off(o.u,this.onDropPath),this.parent.off(o._2,this.onUpdateSelectionData),this.parent.off(o._3,this.onPathChanged))},e.prototype.addEventListener=function(){this.parent.on(o.d,this.onPathColumn,this),this.parent.on(o.m,this.onFinalizeEnd,this),this.parent.on(o.I,this.onCreateEnd,this),this.parent.on(o.h,this.onRefreshEnd,this),this.parent.on(o.O,this.onSelectedData,this),this.parent.on(o.K,this.onPathChanged,this),this.parent.on(o.D,this.onDeleteInit,this),this.parent.on(o.p,this.onpasteInit,this),this.parent.on(o.M,this.onDeleteEnd,this),this.parent.on(o.e,this.onLayoutChange,this),this.parent.on(o.f,this.onSearch,this),this.parent.on(o.S,this.onOpenInit,this),this.parent.on(o.Q,this.onRenameInit,this),this.parent.on(o.L,this.onPathChanged,this),this.parent.on(o.i,this.onPathChanged,this),this.parent.on(o.V,this.onPropertyChanged,this),this.parent.on(o.X,this.onMethodCall,this),this.parent.on(o.B,this.onActionFailure,this),this.parent.on(o.W,this.onHideLayout,this),this.parent.on(o.R,this.onSelectAllInit,this),this.parent.on(o.Y,this.onClearAllInit,this),this.parent.on(o.N,this.onMenuItemData,this),this.parent.on(o.E,this.onBeforeRequest,this),this.parent.on(o.F,this.onAfterRequest,this),this.parent.on(o.v,this.onDropInit,this),this.parent.on(o.T,this.onDetailsInit,this),this.parent.on(o.Z,this.splitterResizeHandler,this),this.parent.on(o._0,this.resizeHandler,this),this.parent.on(o.s,this.onpasteEnd,this),this.parent.on(o.b,this.oncutCopyInit,this),this.parent.on(o._1,this.onLayoutRefresh,this),this.parent.on(o.u,this.onDropPath,this),this.parent.on(o._2,this.onUpdateSelectionData,this),this.parent.on(o._3,this.onPathChanged,this)},e.prototype.onActionFailure=function(){this.isInteraction=!0,this.isInteracted=!0},e.prototype.onMenuItemData=function(e){if(this.parent.activeModule===this.getModuleName()){var t=i.i(r.closest)(e.target,"li");this.parent.itemData=[this.getItemObject(t)]}},e.prototype.onDetailsInit=function(){this.parent.activeModule===this.getModuleName()&&(0!==this.parent.selectedItems.length?this.updateSelectedData():this.parent.itemData=[i.i(r.getValue)(this.parent.pathId[this.parent.pathId.length-1],this.parent.feParent)])},e.prototype.onpasteInit=function(){this.parent.activeModule===this.getModuleName()&&(this.parent.itemData=""===this.parent.folderPath?[i.i(c.A)(this.parent)]:[this.getItemObject(i.i(r.select)(".e-active",this.element))])},e.prototype.oncutCopyInit=function(){if(this.parent.activeModule===this.getModuleName()){var e=this.element.querySelectorAll("."+l._12);this.parent.activeRecords=[],this.parent.activeElements=[];for(var t=0;t<e.length;t++)this.parent.activeElements.push(e[t]),this.parent.activeRecords.push(this.getItemObject(e[t]))}},e.prototype.onpasteEnd=function(e){"LargeIcons"===this.parent.view&&(this.isPasteOperation=!0,this.parent.path!==this.parent.destinationPath&&this.parent.path!==i.i(c.X)(this.parent,e)||this.onPathChanged(e))},e.prototype.onDropPath=function(e){"LargeIcons"===this.parent.view&&(this.isPasteOperation=!0,this.onPathChanged(e))},e.prototype.onPropertyChanged=function(e){var t;if(e.module===this.getModuleName()||"common"===e.module)for(var n=0,s=Object.keys(e.newProp);n<s.length;n++){var a=s[n];switch(a){case"allowDragAndDrop":this.createDragObj();break;case"height":this.adjustHeight();break;case"selectedItems":this.isInteraction=!1,this.isInteracted=!1,t=i.i(r.isNullOrUndefined)(this.parent.selectedItems)?[]:this.parent.selectedItems.slice(0),t=this.parent.allowMultiSelection?t:t.slice(t.length-1),this.parent.setProperties({selectedItems:[]},!0),this.onClearAllInit(),t.length&&this.selectItems(t),this.parent.setProperties({selectedItems:this.parent.selectedItems},!0),this.isInteraction=!0,this.isInteracted=!0;break;case"showThumbnail":i.i(u.p)(this.parent);break;case"showFileExtension":case"showHiddenItems":i.i(h.a)(this.parent,o.K,this.parent.path);break;case"allowMultiSelection":if("LargeIcons"!==this.parent.view)break;i.i(u.p)(this.parent);break;case"view":i.i(u.n)(this.parent,"LargeIcons")}}},e.prototype.destroy=function(){this.parent.isDestroyed||(this.removeEventListener(),this.listObj&&this.unWireEvents(),this.startItem=null,this.listElements=null)},e.prototype.wireEvents=function(){this.wireClickEvent(!0),this.keyboardModule=new r.KeyboardEvents(this.element,{keyAction:this.keyActionHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keyup"}),this.keyboardDownModule=new r.KeyboardEvents(this.element,{keyAction:this.keydownActionHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"}),r.EventHandler.add(this.element,"mouseover",this.onMouseOver,this)},e.prototype.unWireEvents=function(){this.wireClickEvent(!1),r.EventHandler.remove(this.element,"mouseover",this.onMouseOver),this.keyboardModule.destroy(),this.keyboardDownModule.destroy()},e.prototype.onMouseOver=function(e){var t=i.i(r.closest)(e.target,".e-list-item");i.i(c.t)(this.parent,"hover"),null!==t&&t.classList.add(l.e)},e.prototype.wireClickEvent=function(e){if(e){var t=this;this.clickObj=new r.Touch(this.element,{tap:function(e){e.originalEvent.preventDefault(),t.parent.isDevice?(t.tapCount=e.tapCount,t.tapEvent=e,setTimeout(function(){t.tapCount>0&&t.doTapAction(t.tapEvent),t.tapCount=0},350)):2===e.tapCount&&3!==e.originalEvent.which?t.dblClickHandler(e):t.clickHandler(e)},tapHold:function(e){t.parent.isDevice&&(t.multiSelect=!!t.parent.allowMultiSelection,t.parent.allowMultiSelection&&i.i(r.addClass)([t.parent.element],l._13),t.clickHandler(e))}})}else this.clickObj&&this.clickObj.destroy()},e.prototype.doTapAction=function(e){var t=e.originalEvent.target,n=i.i(r.closest)(t,"."+l.a);this.multiSelect||t.classList.contains(l._11)||i.i(r.isNullOrUndefined)(n)?this.clickHandler(e):(this.parent.isFile=!1,this.updateType(n),this.parent.isFile?2===e.tapCount?(this.clickHandler(e),this.dblClickHandler(e)):this.clickHandler(e):this.dblClickHandler(e))},e.prototype.clickHandler=function(e){var t=e.originalEvent.target;i.i(c.t)(this.parent,"hover"),this.doSelection(t,e.originalEvent),this.parent.activeModule="largeiconsview"},e.prototype.doSelection=function(e,t){var n=i.i(r.closest)(e,"."+l.a),s=e.classList;this.parent.isFile=!1;var a="select";if(3===t.which&&!i.i(r.isNullOrUndefined)(n)&&n.classList.contains(l._12))return void this.updateType(n);if(i.i(r.isNullOrUndefined)(n))this.parent.selectedItems.length===this.itemList.length&&(this.isSelectAllCalled=!0),this.clearSelection();else{this.parent.allowMultiSelection&&n.classList.contains(l._12)&&(t.ctrlKey||e.classList.contains(l._14))&&(a="unselect"),t.ctrlKey&&t.shiftKey&&(this.isSelectAllCalled=!0);if(!0!==this.triggerSelection(a,n).cancel){if(this.parent.allowMultiSelection&&(this.multiSelect||!t||t.ctrlKey)||s.contains(l._15)||(this.updateType(n),this.clearSelect()),this.parent.allowMultiSelection&&t.shiftKey){t&&t.ctrlKey||this.clearSelect(),this.startItem||(this.startItem=n);var d=this.itemList.indexOf(this.startItem),h=this.itemList.indexOf(n);if(d>h)for(var c=d;c>=h;c--)this.addActive(this.itemList[c]);else for(var c=d;c<=h;c++)this.addActive(this.itemList[c]);this.addFocus(this.itemList[h])}else this.startItem=n,this.parent.allowMultiSelection&&n.classList.contains(l._12)?this.removeActive(n):this.addActive(n),this.addFocus(n);0===this.parent.selectedItems.length&&this.resetMultiSelect(),this.parent.notify(o.H,{}),this.triggerSelect(a,n)}}i.i(r.isNullOrUndefined)(n)||(this.isSelectAllCalled=!1,this.updateType(n))},e.prototype.dblClickHandler=function(e){this.parent.activeModule="largeiconsview";var t=e.originalEvent.target;this.doOpenAction(t)},e.prototype.clearSelection=function(){this.clearSelect(),this.resetMultiSelect(),this.parent.notify(o.H,{})},e.prototype.resetMultiSelect=function(){this.multiSelect=!1,i.i(r.removeClass)([this.parent.element],l._13)},e.prototype.doOpenAction=function(e){var t=this;if(!i.i(r.isNullOrUndefined)(e)){var n=i.i(r.closest)(e,"."+l.a);if(this.parent.isFile=!1,!i.i(r.isNullOrUndefined)(n)){this.updateType(n);var s=this.getItemObject(n);if(!i.i(u._9)(s))return void i.i(u._7)(this.parent,s,o.g);var a={cancel:!1,fileDetails:s,module:"LargeIconsView"};this.parent.trigger("fileOpen",a,function(e){if(!e.cancel){var n=i.i(r.getValue)("name",s);if(t.parent.isFile){if(i.i(u.u)(s)===l.m){var a=i.i(u.v)(t.parent,s);i.i(p.c)(t.parent,n,a)}}else{if(""!==t.parent.breadcrumbbarModule.searchObj.element.value||t.parent.isFiltered)i.i(c.S)(t.parent,s);else{var o=i.i(r.getValue)("id",s);t.parent.oldPath=t.parent.path;var d=t.parent.path+(i.i(r.isNullOrUndefined)(o)?n:o)+"/";t.parent.setProperties({path:d},!0),t.parent.pathNames.push(n),t.parent.pathId.push(i.i(r.getValue)("_fm_id",s)),t.parent.itemData=[s],i.i(u.q)(t.parent)}t.parent.isFiltered=!1,t.parent.setProperties({selectedItems:[]},!0)}}})}}},e.prototype.updateType=function(e){var t=i.i(r.select)("."+l.l,e);this.parent.isFile=!!i.i(r.isNullOrUndefined)(t)},e.prototype.keydownActionHandler=function(e){if(this.isRendered)switch(e.action){case"end":case"home":case"moveDown":case"moveLeft":case"moveRight":case"moveUp":case"ctrlEnd":case"shiftEnd":case"csEnd":case"ctrlHome":case"shiftHome":case"csHome":case"ctrlDown":case"shiftDown":case"csDown":case"ctrlLeft":case"shiftLeft":case"csLeft":case"ctrlRight":case"shiftRight":case"csRight":case"space":case"ctrlSpace":case"shiftSpace":case"csSpace":case"ctrlA":case"enter":case"altEnter":case"esc":case"del":case"shiftdel":case"ctrlC":case"ctrlV":case"ctrlX":case"f2":case"ctrlD":e.preventDefault()}},e.prototype.keyActionHandler=function(e){var t=this;if(this.isRendered){var n=this.getFocusedItem(),s=this.getFirstItem(),a=this.getLastItem();switch(e.action){case"end":this.parent.enableVirtualization?(this.clearSelect(),this.element.firstElementChild.scrollTo(0,this.element.firstElementChild.scrollHeight),setTimeout(function(){t.navigateItem(t.itemList[t.itemList.length-1])},10)):this.navigateItem(a);break;case"home":this.parent.enableVirtualization?(this.clearSelect(),this.element.firstElementChild.scrollTop=0,setTimeout(function(){t.navigateItem(t.itemList[0])},10)):this.navigateItem(s);break;case"tab":i.i(r.isNullOrUndefined)(n)?i.i(r.isNullOrUndefined)(s)||this.addFocus(s):this.addFocus(n);break;case"moveDown":this.navigateDown(n,!0);break;case"moveLeft":this.navigateRight(n,!1);break;case"moveRight":this.navigateRight(n,!0);break;case"moveUp":this.navigateDown(n,!1);break;case"ctrlEnd":case"shiftEnd":case"csEnd":this.csEndKey(a,e);break;case"ctrlHome":case"shiftHome":case"csHome":this.csHomeKey(s,e);break;case"ctrlDown":case"shiftDown":case"csDown":this.csDownKey(n,e);break;case"ctrlLeft":case"shiftLeft":case"csLeft":this.csLeftKey(n,e);break;case"ctrlRight":case"shiftRight":case"csRight":this.csRightKey(n,e);break;case"ctrlUp":case"shiftUp":case"csUp":this.csUpKey(n,e);break;case"space":this.spaceKey(n);break;case"ctrlSpace":case"shiftSpace":case"csSpace":i.i(r.isNullOrUndefined)(n)||this.doSelection(n,e);break;case"ctrlA":this.ctrlAKey(s,a);break;case"enter":this.doOpenAction(this.parent.visitedItem?this.parent.visitedItem:this.getVisitedItem());break;case"altEnter":this.parent.notify(o.T,{}),i.i(h.g)(this.parent,this.parent.selectedItems,this.parent.path,"details");break;case"esc":i.i(c.q)(this.parent);break;case"del":case"shiftdel":this.performDelete();break;case"ctrlC":i.i(c.B)(this.parent);break;case"ctrlV":this.parent.folderPath="",i.i(c.T)(this.parent);break;case"ctrlX":i.i(c.C)(this.parent);break;case"f2":this.performRename();break;case"ctrlD":this.doDownload()}}},e.prototype.doDownload=function(){this.updateSelectedData(),i.i(c._13)(this.parent)},e.prototype.performDelete=function(){if(this.parent.selectedItems&&this.parent.selectedItems.length>0){this.updateSelectedData();for(var e=this.parent.itemData,t=0;t<e.length;t++)if(!i.i(u._10)(e[t]))return void i.i(u._7)(this.parent,e[t],o.x);i.i(p.a)(this.parent,"Delete")}},e.prototype.performRename=function(){1===this.parent.selectedItems.length&&(this.updateRenameData(),i.i(c._12)(this.parent))},e.prototype.updateRenameData=function(){var e=i.i(r.select)("."+l.a+"."+l._12,this.element),t=this.getItemObject(e);i.i(c._11)(this.parent,t)},e.prototype.getVisitedItem=function(){var e=this.parent.selectedItems[this.parent.selectedItems.length-1],t=this.getIndexes([e],this.parent.hasId);return this.itemList[t[0]]},e.prototype.getFocusedItem=function(){return i.i(r.select)("."+l.a+"."+l._16,this.element)},e.prototype.getActiveItem=function(){return i.i(r.select)("."+l.a+"."+l._12,this.element)},e.prototype.getFirstItem=function(){return this.itemList[0]},e.prototype.getLastItem=function(){return this.itemList[this.itemList.length-1]},e.prototype.navigateItem=function(e){this.setFocus(e)},e.prototype.navigateDown=function(e,t){var i=this.getNextItem(e,t,this.perRow);this.setFocus(i)},e.prototype.navigateRight=function(e,t){var i=this.getNextItem(e,t);this.setFocus(i)},e.prototype.getNextItem=function(e,t,n){if(i.i(r.isNullOrUndefined)(e))return this.getFocusedItem()||this.getActiveItem()||this.getFirstItem();var s,a=this.itemList.indexOf(e);do{if(a=t?n?a+n:a+1:n?a-n:a-1,s=this.itemList[a],this.parent.enableVirtualization&&i.i(r.isNullOrUndefined)(s)){var o=parseInt(window.getComputedStyle(this.itemList[0]).getPropertyValue("margin-top"),10)+parseInt(window.getComputedStyle(this.itemList[0]).getPropertyValue("margin-bottom"),10),l=this.itemList[0].getBoundingClientRect().height+o;this.element.firstElementChild.scrollTo(this.element.firstElementChild.scrollTop,this.element.firstElementChild.scrollTop+l)}if(i.i(r.isNullOrUndefined)(s))return e}while(!i.i(r.isVisible)(s));return s},e.prototype.setFocus=function(e){if(!i.i(r.isNullOrUndefined)(e)){!0!==this.triggerSelection("select",e).cancel&&(this.startItem=e,this.clearSelect(),this.addActive(e),this.addFocus(e),this.parent.notify(o.H,{}),this.triggerSelect("select",e))}},e.prototype.spaceKey=function(e){if(!i.i(r.isNullOrUndefined)(e)&&!e.classList.contains(l._12)){!0!==this.triggerSelection("select",e).cancel&&(this.addActive(e),this.parent.notify(o.H,{}),this.triggerSelect("select",e))}},e.prototype.ctrlAKey=function(e,t){if(this.parent.allowMultiSelection&&!i.i(r.isNullOrUndefined)(e)){this.startItem=e;var n={ctrlKey:!0,shiftKey:!0},s=this.element.querySelector("."+l._11),a=s.scrollTop,o=this.getFocusedItem();this.doSelection(t,n),s.scrollTop=a,i.i(r.isNullOrUndefined)(o)||this.addFocus(o)}},e.prototype.csEndKey=function(e,t){this.parent.allowMultiSelection?i.i(r.isNullOrUndefined)(e)||("ctrlEnd"===t.action?this.addFocus(e):this.doSelection(e,t)):this.navigateItem(e)},e.prototype.csHomeKey=function(e,t){this.parent.allowMultiSelection?i.i(r.isNullOrUndefined)(e)||("ctrlHome"===t.action?this.addFocus(e):this.doSelection(e,t)):this.navigateItem(e)},e.prototype.csDownKey=function(e,t){if(this.parent.allowMultiSelection){var n=this.getNextItem(e,!0,this.perRow);i.i(r.isNullOrUndefined)(n)||("ctrlDown"===t.action?this.addFocus(n):this.doSelection(n,t))}else this.navigateDown(e,!0)},e.prototype.csLeftKey=function(e,t){if(this.parent.allowMultiSelection){var n=this.getNextItem(e,!1);i.i(r.isNullOrUndefined)(n)||("ctrlLeft"===t.action?this.addFocus(n):this.doSelection(n,t))}else this.navigateRight(e,!1)},e.prototype.csRightKey=function(e,t){if(this.parent.allowMultiSelection){var n=this.getNextItem(e,!0);i.i(r.isNullOrUndefined)(n)||("ctrlRight"===t.action?this.addFocus(n):this.doSelection(n,t))}else this.navigateRight(e,!0)},e.prototype.csUpKey=function(e,t){if(this.parent.allowMultiSelection){var n=this.getNextItem(e,!1,this.perRow);i.i(r.isNullOrUndefined)(n)||("ctrlUp"===t.action?this.addFocus(n):this.doSelection(n,t))}else this.navigateDown(e,!1)},e.prototype.addActive=function(e){i.i(r.isNullOrUndefined)(e)||(e.classList.contains(l._12)||(this.parent.selectedItems.push(this.getDataName(e)),this.parent.setProperties({selectedItems:this.parent.selectedItems},!0),i.i(r.addClass)([e],[l._12]),e.setAttribute("aria-selected","true"),this.checkState(e,!0)),this.parent.visitedItem=e)},e.prototype.removeActive=function(e){if(!i.i(r.isNullOrUndefined)(e)){i.i(r.removeClass)([e],[l._12]),this.parent.allowMultiSelection?e.setAttribute("aria-selected","false"):e.removeAttribute("aria-selected"),this.checkState(e,!1);var t=this.parent.selectedItems.indexOf(this.getDataName(e));t>-1&&(this.parent.selectedItems.splice(t,1),this.parent.setProperties({selectedItems:this.parent.selectedItems},!0)),this.parent.visitedItem=null}},e.prototype.getDataName=function(e){var t=this.getItemObject(e);return i.i(c._10)(this.parent,t)},e.prototype.addFocus=function(e){this.element.setAttribute("tabindex","-1");var t=this.getFocusedItem();t&&(t.removeAttribute("tabindex"),i.i(r.removeClass)([t],[l._16])),i.i(r.addClass)([e],[l._16]),e.setAttribute("tabindex","0"),e.focus()},e.prototype.checkState=function(e,t){if(this.parent.showItemCheckBoxes){var n=i.i(r.select)("."+l._15,e);i.i(r.isNullOrUndefined)(n)||(t?n.classList.contains(l._14)||(i.i(r.addClass)([n],l._14),i.i(r.closest)(n,"."+l._17).setAttribute("aria-checked","true")):n.classList.contains(l._14)&&(i.i(r.removeClass)([n],l._14),i.i(r.closest)(n,"."+l._17).setAttribute("aria-checked","false")))}},e.prototype.clearSelect=function(){var e,t=Array.prototype.slice.call(i.i(r.selectAll)("."+l._12,this.listElements));if(0!==t.length){if(e=this.triggerSelection("unselect",t[0]),!0!==e.cancel)for(var n=0,s=t.length;n<s;n++)this.removeActive(t[n]);this.triggerSelect("unselect",t[0])}},e.prototype.resizeHandler=function(){this.getItemCount(),i.i(r.isNullOrUndefined)(this.listObj)||this.adjustHeight()},e.prototype.splitterResizeHandler=function(){this.getItemCount()},e.prototype.getItemCount=function(){var e=1;if(this.itemList)for(var t=0,i=this.itemList.length-1;t<i&&this.itemList[t].getBoundingClientRect().top===this.itemList[t+1].getBoundingClientRect().top;t++)e++;this.perRow=e},e.prototype.triggerSelection=function(e,t){var i=[];if(this.isSelectAllCalled)for(var n=0,r=this.itemList.length;n<r;n++)i[n]=this.getItemObject(this.itemList[n]);else i[0]=this.getItemObject(t);var s={action:e,fileDetails:i.length>1?i:i[0],isInteracted:this.isInteraction,cancel:!1,target:this.isSelectAllCalled?null:t};return this.parent.trigger("fileSelection",s),this.isInteraction=!0,s},e.prototype.triggerSelect=function(e,t){var i=[];if(this.isSelectAllCalled){for(var n=0,r=this.itemList.length;n<r;n++)i[n]=this.getItemObject(this.itemList[n]);this.isSelectAllCalled=!1}else i[0]=this.getItemObject(t);this.parent.visitedData=i.length>1?i[i.length-1]:i[0];var s={action:e,fileDetails:i.length>1?i:i[0],isInteracted:this.isInteracted};this.parent.trigger("fileSelect",s),this.isInteracted=!0},e.prototype.selectItems=function(e){for(var t=this.getIndexes(e,this.parent.hasId),i=0,n=t.length;i<n;i++){var r={ctrlKey:!0,shiftKey:!1};this.doSelection(this.itemList[t[i]],r)}},e.prototype.getIndexes=function(e,t){for(var n=[],s=t?"id":"name",a=0,o=this.items.length;a<o;a++)-1!==e.indexOf(i.i(r.getValue)(s,this.items[a]))&&n.push(a);return n},e.prototype.getItemObject=function(e){var t=this.itemList.indexOf(e);return this.items[t]},e.prototype.addSelection=function(e){var t=[];if(this.parent.hasId)t=new s.DataManager(this.items).executeLocal((new s.Query).where("id","equal",this.parent.renamedId,!1));else{var n=new s.DataManager(this.items).executeLocal((new s.Query).where("name","equal",i.i(r.getValue)("name",e),!1));n.length>0&&(t=new s.DataManager(n).executeLocal((new s.Query).where("filterPath","equal",this.parent.filterPath,!1)))}if(t.length>0){var a=this.items.indexOf(t[0]),o={ctrlKey:!0,shiftKey:!1};this.doSelection(this.itemList[a],o)}},e.prototype.updateSelectedData=function(){for(var e=[],t=i.i(r.selectAll)("."+l.a+"."+l._12,this.element),n=0;n<t.length;n++)e[n]=this.getItemObject(t[n]);this.parent.itemData=e},e.prototype.onMethodCall=function(e){if("LargeIcons"===this.parent.view){switch(i.i(r.getValue)("action",e)){case"deleteFiles":this.deleteFiles(i.i(r.getValue)("ids",e));break;case"downloadFiles":this.downloadFiles(i.i(r.getValue)("ids",e));break;case"openFile":this.openFile(i.i(r.getValue)("id",e));break;case"renameFile":this.isInteraction=!1,this.isInteracted=!1,this.renameFile(i.i(r.getValue)("id",e),i.i(r.getValue)("newName",e));break;case"createFolder":this.isInteraction=!1,this.isInteracted=!1;break;case"clearSelection":this.isInteraction=!1,this.isInteracted=!1,this.onClearAllInit();break;case"selectAll":this.isInteraction=!1,this.isInteracted=!1,this.onSelectAllInit()}}},e.prototype.getItemsIndex=function(e){var t=[],n=!(""===this.parent.breadcrumbbarModule.searchObj.element.value&&!this.parent.isFiltered),s=this.parent.hasId?"id":"name";if(this.parent.hasId||!n)for(var a=0,o=this.items.length;a<o;a++)-1!==e.indexOf(i.i(r.getValue)(s,this.items[a]))&&t.push(a);else for(var a=0,o=this.items.length;a<o;a++){var l=i.i(r.getValue)("filterPath",this.items[a])+i.i(r.getValue)("name",this.items[a]);-1===e.indexOf(l)&&-1===e.indexOf(i.i(r.getValue)(s,this.items[a]))||t.push(a)}return t},e.prototype.deleteFiles=function(e){if(this.parent.activeModule="largeiconsview",i.i(r.isNullOrUndefined)(e))return void this.performDelete();var t=this.getItemsIndex(e);if(0!==t.length){for(var n=[],s=[],a=0;a<t.length;a++)n[a]=this.items[t[a]],s[a]=i.i(c._10)(this.parent,n[a]);i.i(c._14)(this.parent,n,s)}},e.prototype.downloadFiles=function(e){if(i.i(r.isNullOrUndefined)(e))return void this.doDownload();var t=this.getItemsIndex(e);if(0!==t.length){for(var n=[],s=[],a=0;a<t.length;a++)n[a]=this.items[t[a]],s[a]=i.i(c._10)(this.parent,n[a]);i.i(c._15)(this.parent,n,s)}},e.prototype.openFile=function(e){if(!i.i(r.isNullOrUndefined)(e)){var t=this.getItemsIndex([e]);t.length>0&&this.doOpenAction(this.itemList[t[0]])}},e.prototype.renameFile=function(e,t){if(this.parent.activeModule="largeiconsview",i.i(r.isNullOrUndefined)(e))return void this.performRename();var n=this.getItemsIndex([e]);n.length>0&&(i.i(c._11)(this.parent,this.items[n[0]]),i.i(r.isNullOrUndefined)(t)?i.i(c._12)(this.parent):i.i(u._10)(this.parent.itemData[0])?i.i(c.d)(this.parent,this.parent.path,t):i.i(u._7)(this.parent,this.parent.itemData[0],o.x))},e}()},function(e,t,i){"use strict";i.d(t,"b",function(){return a}),i.d(t,"c",function(){return o}),i.d(t,"d",function(){return l}),i.d(t,"a",function(){return d});var n=i(0),r=(i.n(n),this&&this.__extends||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])})(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)}}()),s=this&&this.__decorate||function(e,t,i,n){var r,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,i,a):r(t,i))||a);return s>3&&a&&Object.defineProperty(t,i,a),a},a=["Open","|","Cut","Copy","|","Delete","Download","Rename","|","Details"],o=["Open","|","Cut","Copy","Paste","|","Delete","Rename","Download","|","Details"],l=["SortBy","View","Refresh","|","Paste","|","NewFolder","Upload","|","Details","|","SelectAll"],d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),s([i.i(n.Property)(a)],t.prototype,"file",void 0),s([i.i(n.Property)(o)],t.prototype,"folder",void 0),s([i.i(n.Property)(l)],t.prototype,"layout",void 0),s([i.i(n.Property)(!0)],t.prototype,"visible",void 0),t}(n.ChildProperty)},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var n=i(0),r=(i.n(n),this&&this.__extends||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])})(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)}}()),s=this&&this.__decorate||function(e,t,i,n){var r,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,i,a):r(t,i))||a);return s>3&&a&&Object.defineProperty(t,i,a),a},a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),s([i.i(n.Property)("")],t.prototype,"allowedExtensions",void 0),s([i.i(n.Property)(!0)],t.prototype,"autoUpload",void 0),s([i.i(n.Property)(!1)],t.prototype,"autoClose",void 0),s([i.i(n.Property)(!1)],t.prototype,"directoryUpload",void 0),s([i.i(n.Property)(0)],t.prototype,"minFileSize",void 0),s([i.i(n.Property)(3e7)],t.prototype,"maxFileSize",void 0),t}(n.ChildProperty)},function(e,t,i){"use strict";i.d(t,"a",function(){return h});var n=i(11),r=(i.n(n),i(0)),s=(i.n(r),i(5)),a=i(6),o=i(1),l=i(4),d=i(3),h=function(){function e(e){this.isMenuItemClicked=!1,this.currentItems=[],this.currentElement=null,this.disabledItems=[],this.parent=e,this.render()}return e.prototype.render=function(){this.keyConfigs={downarrow:"downarrow",uparrow:"uparrown"},this.contextMenu=new n.ContextMenu({enableRtl:this.parent.enableRtl,locale:this.parent.locale,target:"#"+this.parent.element.id,enableHtmlSanitizer:this.parent.enableHtmlSanitizer,beforeItemRender:this.onBeforeItemRender.bind(this),select:this.onSelect.bind(this),beforeOpen:this.onBeforeOpen.bind(this),beforeClose:this.onBeforeClose.bind(this),cssClass:i.i(o.F)(this.parent,d.D)}),this.contextMenu.isStringTemplate=!0,this.contextMenu.appendTo("#"+this.parent.element.id+d.J),this.addEventListener()},e.prototype.onBeforeItemRender=function(e){if(e.item.id===this.getMenuId("largeiconsview")){var t=i.i(r.createElement)("span"),n=e.element;n.insertBefore(t,"LargeIcons"===this.parent.view?n.childNodes[1]:n.childNodes[0]),t.setAttribute("class",d.K+" "+d.L)}if(e.item.id===this.getMenuId("detailsview")){var t=i.i(r.createElement)("span"),n=e.element;n.insertBefore(t,"Details"===this.parent.view?n.childNodes[1]:n.childNodes[0]),t.setAttribute("class",d.M+" "+d.L)}},e.prototype.onBeforeClose=function(){if(this.menuTarget=null,!this.isMenuItemClicked&&this.parent.pathId.length>1&&"navigationpane"==this.parent.activeModule){this.parent.pathId.pop();for(var e=[],t=Object.keys(this.parent.feParent),n=0,s=t;n<s.length;n++){var a=s[n],o=i.i(r.getValue)(a,this.parent.feParent);-1!==this.parent.pathNames.indexOf(o.name)&&e.push(o._fm_id)}this.parent.pathId.push(e[e.length-1]),this.parent.navigationpaneModule.treeObj.selectedNodes=[this.parent.pathId[this.parent.pathId.length-1]]}this.isMenuItemClicked=!1},e.prototype.onBeforeOpen=function(e){var t,n,s=this,a=!1,o=!1,l=e.event.target;this.menuTarget=this.targetNodeElement=l,this.currentElement=e.element,l.classList.contains("e-spinner-pane")&&(l=this.parent.navigationpaneModule.activeNode.getElementsByClassName(d.N)[0],this.menuTarget=this.targetNodeElement=l),this.targetElement="Details"===this.parent.view?i.i(r.closest)(l,"tr.e-row"):l,this.parent.enableVirtualization&&(l.classList.contains("e-virtual-bottom")||l.classList.contains("e-virtualtable"))&&(l=l.parentElement.closest("div"));var h=this.getTargetView(l);if(this.updateActiveModule(),l.classList.contains(d.c)||i.i(r.closest)(l,"th")||i.i(r.closest)(l,"#"+this.parent.element.id+d.q)||i.i(r.closest)(l,"#"+this.parent.element.id+d.O))e.cancel=!0;else if("LargeIcons"!==this.parent.view&&this.targetElement&&this.targetElement.classList.contains("e-emptyrow"))this.setLayoutItem(l);else if(i.i(r.closest)(l,"."+d.s))this.setLayoutItem(l);else if(!l.classList.contains(d.P)&&!l.classList.contains(d.L)&&!l.classList.contains(d.Q)){if("LargeIcons"!==this.parent.view||i.i(r.isNullOrUndefined)(i.i(r.closest)(l,"li"))||i.i(r.closest)(l,"#"+this.parent.element.id+d.R))i.i(r.isNullOrUndefined)(i.i(r.closest)(l,"tr.e-row"))?i.i(r.closest)(l,"#"+this.parent.element.id+d.R)&&(t=i.i(r.closest)(l,"li").getAttribute("data-uid"),o=!0):(t=this.targetElement.getAttribute("data-uid"),n=this.parent.detailsviewModule.gridObj.getRowObjectFromUID(t).data,i.i(r.isNullOrUndefined)(this.targetElement.getAttribute("aria-selected"))&&this.parent.detailsviewModule.gridObj.selectRows([parseInt(this.targetElement.getAttribute("data-rowindex"),10)]),a=!0);else{var c={ctrlKey:!0,shiftKey:!0};i.i(r.closest)(l,"li").classList.contains("e-active")||this.parent.largeiconsviewModule.doSelection(l,c),n=this.parent.visitedData,a=!0}a?!0===i.i(r.getValue)("isFile",n)?this.setFileItem():this.setFolderItem(!1):o?(this.setFolderItem(!0),t===this.parent.pathId[0]&&this.disabledItems.push("Delete","Rename","Cut","Copy")):"TreeView"===h||"GridView"===h||"LargeIcon"===h?this.setLayoutItem(l):e.cancel=!0}var u=i.i(r.select)("#"+this.getMenuId("Paste"),this.contextMenu.element);if(e.cancel||this.parent.enablePaste||!u||u.classList.contains("e-disabled")){var p=this.disabledItems.indexOf("Paste");-1!==p&&this.disabledItems.splice(p,1)}else-1===this.disabledItems.indexOf("Paste")&&this.disabledItems.push("Paste");if(e.cancel)return void(this.menuTarget=this.currentElement=null);this.contextMenu.dataBind();var f=!1;(l.classList.contains(d.P)||l.classList.contains(d.L)||l.classList.contains(d.Q))&&(f=!0),this.menuItemData=f?this.menuItemData:this.getMenuItemData();var g={fileDetails:[this.menuItemData],element:e.element,target:l,items:f?e.items:this.contextMenu.items,menuModule:this.contextMenu,cancel:!1,menuType:this.menuType,isSubMenu:f};this.currentItems=g.items,this.parent.trigger("menuOpen",g,function(t){f||(s.contextMenu.dataBind(),s.contextMenu.items=t.items,s.contextMenu.dataBind()),s.enableItems(s.disabledItems,!1,!0),e.cancel=t.cancel,t.cancel&&(s.menuTarget=s.targetNodeElement=s.currentElement=null)})},e.prototype.updateActiveModule=function(){this.parent.activeModule=i.i(r.closest)(this.menuTarget,"#"+this.parent.element.id+d.R)?"navigationpane":i.i(r.closest)(this.menuTarget,"#"+this.parent.element.id+d.S)?"detailsview":i.i(r.closest)(this.menuTarget,"#"+this.parent.element.id+d.T)?"largeiconsview":this.parent.activeModule},e.prototype.getTargetView=function(e){return e.classList.contains(d.c)?"TreeView":e.classList.contains(d.w)?"GridView":e.classList.contains(d.U)?"LargeIcon":e.classList.contains(d.k)?"LargeIcon":""},e.prototype.getItemIndex=function(e){for(var t=this.getMenuId(e),i=0;i<this.currentItems.length;i++)if(this.currentItems[i].id===t||this.currentItems[i].id===e)return i;return-1},e.prototype.disableItem=function(e){0!==e.length&&(this.disabledItems=this.disabledItems.concat(e))},e.prototype.enableItems=function(e,t,i){for(var n=0;n<e.length;n++)1===this.checkValidItem(e[n])?this.contextMenu.enableItems([this.getMenuId(e[n])],t,i):2===this.checkValidItem(e[n])&&this.contextMenu.enableItems([e[n]],t,i)},e.prototype.setFolderItem=function(e){if(this.menuType="folder",this.contextMenu.items=this.getItemData(this.parent.contextMenuSettings.folder.map(function(e){return e.trim()})),this.contextMenu.dataBind(),e){var t=i.i(r.select)('[data-uid="'+this.parent.navigationpaneModule.treeObj.selectedNodes[0]+'"]',this.parent.navigationpaneModule.treeObj.element);this.parent.pathNames[this.parent.pathNames.length-1]===t.querySelector(".e-list-text").innerHTML&&"navigationpane"===this.parent.activeModule&&this.disabledItems.push("Open")}else 1!==this.parent.selectedItems.length&&"navigationpane"!==this.parent.activeModule&&this.disabledItems.push("Rename","Paste")},e.prototype.setFileItem=function(){this.menuType="file",this.contextMenu.items=this.getItemData(this.parent.contextMenuSettings.file.map(function(e){return e.trim()})),this.contextMenu.dataBind(),1!==this.parent.selectedItems.length&&this.disabledItems.push("Rename")},e.prototype.setLayoutItem=function(e){this.menuType="layout",this.contextMenu.items=this.getItemData(this.parent.contextMenuSettings.layout.map(function(e){return e.trim()})),this.contextMenu.dataBind(),!this.parent.allowMultiSelection||"LargeIcons"===this.parent.view&&0!==i.i(r.closest)(e,"#"+this.parent.element.id+d.T).getElementsByClassName(d.s).length||"Details"===this.parent.view&&0!==i.i(r.closest)(e,"#"+this.parent.element.id+d.S).getElementsByClassName(d.s).length?this.disabledItems.push("SelectAll"):this.disabledItems=this.disabledItems.filter(function(e){return"SelectAll"!==e}),0===this.parent.selectedNodes.length&&-1===this.disabledItems.indexOf("Paste")&&this.disabledItems.push("Paste"),this.contextMenu.dataBind()},e.prototype.checkValidItem=function(e){return i.i(r.isNullOrUndefined)(i.i(r.select)("#"+this.getMenuId(e),this.currentElement))?i.i(r.isNullOrUndefined)(i.i(r.select)("#"+e,this.currentElement))?-1:2:1},e.prototype.getMenuItemData=function(){if("layout"===this.menuType)return i.i(o.r)(this.parent);var e={target:this.menuTarget};return this.parent.notify(l.N,e),this.parent.itemData[0]},e.prototype.onSelect=function(e){var t=this;if(!i.i(r.isNullOrUndefined)(e.item)&&e.item.id){var n,d=e.item.id.substr((this.parent.element.id+"_cm_").length);"refresh"===d||"newfolder"===d||"upload"===d?(n=[i.i(o.r)(this.parent)],this.parent.itemData=n):(this.parent.notify(l.O,{}),n="navigationpane"===this.parent.activeModule&&"open"===d?[this.menuItemData]:this.parent.itemData);var h={cancel:!1,element:e.element,fileDetails:n,item:e.item};this.parent.trigger("menuClick",h,function(h){var c;if(!h.cancel)switch(t.isMenuItemClicked=!0,d){case"cut":i.i(o.t)(t.parent);break;case"copy":i.i(o.s)(t.parent);break;case"paste":"folder"===t.menuType&&("largeiconsview"===t.parent.activeModule||"detailsview"===t.parent.activeModule)?t.parent.folderPath=i.i(o.w)(t.parent,t.menuItemData,t.parent.path):t.parent.folderPath="",i.i(o.K)(t.parent);break;case"delete":for(var u=0;u<n.length;u++)if(!i.i(o._10)(n[u]))return void i.i(o._7)(t.parent,n[u],l.x);i.i(a.a)(t.parent,"Delete");break;case"download":for(var p=0;p<n.length;p++)if(!i.i(o._13)(n[p]))return void i.i(o._7)(t.parent,n[p],l.y);"navigationpane"===t.parent.activeModule?t.parent.notify(l.P,{}):t.parent.selectedItems.length>0&&i.i(s.i)(t.parent,t.parent.path,t.parent.selectedItems);break;case"rename":i.i(o._10)(n[0])?(t.parent.notify(l.Q,{}),i.i(a.a)(t.parent,"Rename")):i.i(o._7)(t.parent,n[0],l.x);break;case"selectall":t.parent.notify(l.R,{});break;case"refresh":i.i(o.p)(t.parent);break;case"open":t.parent.visitedItem&&"navigationpane"!==t.parent.activeModule?t.parent.notify(l.S,{target:t.parent.visitedItem}):"navigationpane"===t.parent.activeModule&&(t.parent.visitedItem&&t.parent.notify(l.S,{target:t.parent.visitedItem}),t.parent.navigationpaneModule.openFileOnContextMenuClick(i.i(r.closest)(t.targetNodeElement,"li")));break;case"details":t.parent.notify(l.T,{}),c=t.parent.selectedItems,"navigationpane"===t.parent.activeModule&&(c=[],t.parent.navigationpaneModule.openFileOnContextMenuClick(i.i(r.closest)(t.targetNodeElement,"li"))),i.i(s.g)(t.parent,c,t.parent.path,"details");break;case"newfolder":i.i(o._14)(t.parent);break;case"upload":i.i(o._15)(t.parent);break;case"name":case"size":case"date":case"ascending":case"descending":case"none":i.i(o.G)(t.parent,e);break;case"largeiconsview":i.i(o.n)(t.parent,"LargeIcons");break;case"detailsview":i.i(o.n)(t.parent,"Details")}})}},e.prototype.onPropertyChanged=function(e){if(e.module===this.getModuleName()||"common"===e.module)for(var t=0,n=Object.keys(e.newProp);t<n.length;t++){var r=n[t];switch(r){case"cssClass":this.contextMenu.cssClass=i.i(o.F)(this.parent,d.D)}}},e.prototype.addEventListener=function(){this.parent.on(l.U,this.destroy,this),this.parent.on(l.V,this.onPropertyChanged,this),this.keyboardModule=new r.KeyboardEvents(this.contextMenu.element,{keyAction:this.keyActionHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"})},e.prototype.removeEventListener=function(){this.parent.off(l.U,this.destroy),this.parent.off(l.V,this.onPropertyChanged),this.keyboardModule.destroy()},e.prototype.keyActionHandler=function(e){switch(e.action){case"uparrow":case"downarrow":e.preventDefault()}},e.prototype.getModuleName=function(){return"contextmenu"},e.prototype.destroy=function(){this.parent.isDestroyed||(this.removeEventListener(),this.contextMenu.destroy(),this.targetElement=null)},e.prototype.getItemData=function(e){for(var t=[],n=0;n<e.length;n++){var r=void 0,s=this.getMenuId(e[n]),a=i.i(o.E)(this.parent,e[n]);switch(e[n]){case"|":r={separator:!0};break;case"Open":r={id:s,text:a,iconCss:d.V};break;case"Upload":r={id:s,text:a,iconCss:d.W};break;case"Cut":r={id:s,text:a,iconCss:d.X};break;case"Copy":r={id:s,text:a,iconCss:d.Y};break;case"Paste":r={id:s,text:a,iconCss:d.Z};break;case"Delete":r={id:s,text:a,iconCss:d._0};break;case"Rename":r={id:s,text:a,iconCss:d._1};break;case"NewFolder":r={id:s,text:a,iconCss:d._2};break;case"Details":r={id:s,text:a,iconCss:d._3};break;case"SortBy":r={id:s,text:a,iconCss:d._4,items:[{id:this.getMenuId("Name"),text:i.i(o.E)(this.parent,"Name"),iconCss:"name"===this.parent.sortBy?d._5:null},{id:this.getMenuId("Size"),text:i.i(o.E)(this.parent,"Size"),iconCss:"size"===this.parent.sortBy?d._5:null},{id:this.getMenuId("Date"),text:i.i(o.E)(this.parent,"DateModified"),iconCss:"_fm_modified"===this.parent.sortBy?d._5:null},{separator:!0},{id:this.getMenuId("Ascending"),text:i.i(o.E)(this.parent,"Ascending"),iconCss:"Ascending"===this.parent.sortOrder?d._6:null},{id:this.getMenuId("Descending"),text:i.i(o.E)(this.parent,"Descending"),iconCss:"Descending"===this.parent.sortOrder?d._6:null},{id:this.getMenuId("None"),text:i.i(o.E)(this.parent,"None"),iconCss:"None"===this.parent.sortOrder?d._6:null}]};break;case"View":r={id:s,text:a,iconCss:"Details"===this.parent.view?d.M:d.K,items:[{id:this.getMenuId("largeiconsview"),text:i.i(o.E)(this.parent,"View-LargeIcons"),iconCss:"Details"===this.parent.view?null:d._6},{id:this.getMenuId("detailsview"),text:i.i(o.E)(this.parent,"View-Details"),iconCss:"Details"===this.parent.view?d._6:null}]};break;case"Refresh":r={id:s,text:a,iconCss:d._7};break;case"SelectAll":r={id:s,text:a,iconCss:d._8};break;case"Download":r={id:s,text:a,iconCss:d._9};break;default:r={id:s,text:a}}t.push(r)}return t},e.prototype.getMenuId=function(e){return this.parent.element.id+"_cm_"+e.split(" ").join("").toLowerCase()},e}()},function(e,t){e.exports=s},function(e,t){e.exports=a},function(e,t){e.exports=o},function(e,t,i){"use strict";var n=i(7);i.d(t,"a",function(){return n.a}),i.d(t,"b",function(){return n.b}),i.d(t,"c",function(){return n.c}),i.d(t,"d",function(){return n.d}),i.d(t,"e",function(){return n.e}),i.d(t,"f",function(){return n.f}),i.d(t,"g",function(){return n.g}),i.d(t,"h",function(){return n.h}),i.d(t,"i",function(){return n.i}),i.d(t,"j",function(){return n.j}),i.d(t,"k",function(){return n.k}),i.d(t,"l",function(){return n.l}),i.d(t,"m",function(){return n.m}),i.d(t,"n",function(){return n.n});var r=i(25);i.d(t,"o",function(){return r.a}),i.d(t,"p",function(){return r.b}),i.d(t,"q",function(){return r.c}),i.d(t,"r",function(){return r.d}),i.d(t,"s",function(){return r.e}),i.d(t,"t",function(){return r.f}),i.d(t,"u",function(){return r.g}),i.d(t,"v",function(){return r.h}),i.d(t,"w",function(){return r.i}),i.d(t,"x",function(){return r.j}),i.d(t,"y",function(){return r.k}),i.d(t,"z",function(){return r.l}),i.d(t,"A",function(){return r.m}),i.d(t,"B",function(){return r.n}),i.d(t,"C",function(){return r.o}),i.d(t,"D",function(){return r.p}),i.d(t,"E",function(){return r.q}),i.d(t,"F",function(){return r.r}),i.d(t,"G",function(){return r.s}),i.d(t,"H",function(){return r.t}),i.d(t,"I",function(){return r.u}),i.d(t,"J",function(){return r.v}),i.d(t,"K",function(){return r.w}),i.d(t,"L",function(){return r.x}),i.d(t,"M",function(){return r.y}),i.d(t,"N",function(){return r.z}),i.d(t,"O",function(){return r.A}),i.d(t,"P",function(){return r.B}),i.d(t,"Q",function(){return r.C}),i.d(t,"R",function(){return r.D}),i.d(t,"S",function(){return r.E}),i.d(t,"T",function(){return r.F}),i.d(t,"U",function(){return r.G}),i.d(t,"V",function(){return r.H}),i.d(t,"W",function(){return r.I}),i.d(t,"X",function(){return r.J}),i.d(t,"Y",function(){return r.K}),i.d(t,"Z",function(){return r.L}),i.d(t,"_0",function(){return r.M}),i.d(t,"_1",function(){return r.N}),i.d(t,"_2",function(){return r.O}),i.d(t,"_3",function(){return r.P}),i.d(t,"_4",function(){return r.Q}),i.d(t,"_5",function(){return r.R}),i.d(t,"_6",function(){return r.S}),i.d(t,"_7",function(){return r.T}),i.d(t,"_8",function(){return r.U}),i.d(t,"_9",function(){return r.V}),i.d(t,"_10",function(){return r.W}),i.d(t,"_11",function(){return r.X}),i.d(t,"_12",function(){return r.Y}),i.d(t,"_13",function(){return r.Z}),i.d(t,"_14",function(){return r._0}),i.d(t,"_15",function(){return r._1}),i.d(t,"_16",function(){return r._2}),i.d(t,"_17",function(){return r._3}),i.d(t,"_18",function(){return r._4}),i.d(t,"_19",function(){return r._5}),i.d(t,"_20",function(){return r._6}),i.d(t,"_21",function(){return r._7}),i.d(t,"_22",function(){return r._8}),i.d(t,"_23",function(){return r._9}),i.d(t,"_24",function(){return r._10}),i.d(t,"_25",function(){return r._11}),i.d(t,"_26",function(){return r._12}),i.d(t,"_27",function(){return r._13}),i.d(t,"_28",function(){return r._14}),i.d(t,"_29",function(){return r._15}),i.d(t,"_30",function(){return r._16}),i.d(t,"_31",function(){return r._17}),i.d(t,"_32",function(){return r._18}),i.d(t,"_33",function(){return r._19}),i.d(t,"_34",function(){return r._20}),i.d(t,"_35",function(){return r._21}),i.d(t,"_36",function(){return r._22}),i.d(t,"_37",function(){return r._23}),i.d(t,"_38",function(){return r._24}),i.d(t,"_39",function(){return r._25}),i.d(t,"_40",function(){return r._26}),i.d(t,"_41",function(){return r._27}),i.d(t,"_42",function(){return r._28}),i.d(t,"_43",function(){return r._29}),i.d(t,"_44",function(){return r._30}),i.d(t,"_45",function(){return r._31}),i.d(t,"_46",function(){return r._32}),i.d(t,"_47",function(){return r._33}),i.d(t,"_48",function(){return r._34}),i.d(t,"_49",function(){return r._35}),i.d(t,"_50",function(){return r._36}),i.d(t,"_51",function(){return r._37}),i.d(t,"_52",function(){return r._38}),i.d(t,"_53",function(){return r._39}),i.d(t,"_54",function(){return r._40}),i.d(t,"_55",function(){return r._41}),i.d(t,"_56",function(){return r._42}),i.d(t,"_57",function(){return r._43}),i.d(t,"_58",function(){return r._44}),i.d(t,"_59",function(){return r._45}),i.d(t,"_60",function(){return r._46}),i.d(t,"_61",function(){return r._47}),i.d(t,"_62",function(){return r._48}),i.d(t,"_63",function(){return r._49}),i.d(t,"_64",function(){return r._50}),i.d(t,"_65",function(){return r._51}),i.d(t,"_66",function(){return r._52}),i.d(t,"_67",function(){return r._53}),i.d(t,"_68",function(){return r._54}),i.d(t,"_69",function(){return r._55}),i.d(t,"_70",function(){return r._56}),i.d(t,"_71",function(){return r._57}),i.d(t,"_72",function(){return r._58}),i.d(t,"_73",function(){return r._59}),i.d(t,"_74",function(){return r._60}),i.d(t,"_75",function(){return r._61}),i.d(t,"_76",function(){return r._62}),i.d(t,"_77",function(){return r._63}),i.d(t,"_78",function(){return r._64}),i.d(t,"_79",function(){return r._65}),i.d(t,"_80",function(){return r._66}),i.d(t,"_81",function(){return r._67}),i.d(t,"_82",function(){return r._68}),i.d(t,"_83",function(){return r._69}),i.d(t,"_84",function(){return r._70}),i.d(t,"_85",function(){return r._71}),i.d(t,"_86",function(){return r._72}),i.d(t,"_87",function(){return r._73}),i.d(t,"_88",function(){return r._74}),i.d(t,"_89",function(){return r._75}),i.d(t,"_90",function(){return r._76}),i.d(t,"_91",function(){return r._77}),i.d(t,"_92",function(){return r._78}),i.d(t,"_93",function(){return r._79}),i.d(t,"_94",function(){return r._80}),i.d(t,"_95",function(){return r._81}),i.d(t,"_96",function(){return r._82}),i.d(t,"_97",function(){return r._83}),i.d(t,"_98",function(){return r._84}),i.d(t,"_99",function(){return r._85}),i.d(t,"_100",function(){return r._86}),i.d(t,"_101",function(){return r._87}),i.d(t,"_102",function(){return r._88}),i.d(t,"_103",function(){return r._89}),i.d(t,"_104",function(){return r._90}),i.d(t,"_105",function(){return r._91}),i.d(t,"_106",function(){return r._92}),i.d(t,"_107",function(){return r._93}),i.d(t,"_108",function(){return r._94}),i.d(t,"_109",function(){return r._95}),i.d(t,"_110",function(){return r._96}),i.d(t,"_111",function(){return r._97}),i.d(t,"_112",function(){return r._98}),i.d(t,"_113",function(){return r._99}),i.d(t,"_114",function(){return r._100}),i.d(t,"_115",function(){return r._101}),i.d(t,"_116",function(){return r._102}),i.d(t,"_117",function(){return r._103}),i.d(t,"_118",function(){return r._104}),i.d(t,"_119",function(){return r._105}),i.d(t,"_120",function(){return r._106}),i.d(t,"_121",function(){return r._107}),i.d(t,"_122",function(){return r._108}),i.d(t,"_123",function(){return r._109}),i.d(t,"_124",function(){return r._110}),i.d(t,"_125",function(){return r._111}),i.d(t,"_126",function(){return r._112}),i.d(t,"_127",function(){return r._113}),i.d(t,"_128",function(){return r._114}),i.d(t,"_129",function(){return r._115}),i.d(t,"_130",function(){return r._116}),i.d(t,"_131",function(){return r._117}),i.d(t,"_132",function(){return r._118}),i.d(t,"_133",function(){return r._119}),i.d(t,"_134",function(){return r._120}),i.d(t,"_135",function(){return r._121}),i.d(t,"_136",function(){return r._122});var s=i(21);i.d(t,"_137",function(){return s.a}),i.d(t,"_138",function(){return s.b}),i.d(t,"_139",function(){return s.c});var a=i(27);i.d(t,"_140",function(){return a.a}),i.d(t,"_141",function(){return a.b}),i.d(t,"_142",function(){return a.c});var o=i(36);i.d(t,"_143",function(){return o.a}),i.d(t,"_144",function(){return o.b}),i.d(t,"_145",function(){return o.c}),i.d(t,"_146",function(){return o.d});var l=i(2);i.d(t,"_147",function(){return l.a}),i.d(t,"_148",function(){return l.b}),i.d(t,"_149",function(){return l.c}),i.d(t,"_150",function(){return l.d}),i.d(t,"_151",function(){return l.e}),i.d(t,"_152",function(){return l.f}),i.d(t,"_153",function(){return l.g}),i.d(t,"_154",function(){return l.h}),i.d(t,"_155",function(){return l.i}),i.d(t,"_156",function(){return l.j}),i.d(t,"_157",function(){return l.k}),i.d(t,"_158",function(){return l.l}),i.d(t,"_159",function(){return l.m}),i.d(t,"_160",function(){return l.n}),i.d(t,"_161",function(){return l.o}),i.d(t,"_162",function(){return l.p}),i.d(t,"_163",function(){return l.q}),i.d(t,"_164",function(){return l.r}),i.d(t,"_165",function(){return l.s}),i.d(t,"_166",function(){return l.t}),i.d(t,"_167",function(){return l.u}),i.d(t,"_168",function(){return l.v}),i.d(t,"_169",function(){return l.w}),i.d(t,"_170",function(){return l.x}),i.d(t,"_171",function(){return l.y}),i.d(t,"_172",function(){return l.z}),i.d(t,"_173",function(){return l.A}),i.d(t,"_174",function(){return l.B}),i.d(t,"_175",function(){return l.C}),i.d(t,"_176",function(){return l.D}),i.d(t,"_177",function(){return l.E}),i.d(t,"_178",function(){return l.F}),i.d(t,"_179",function(){return l.G}),i.d(t,"_180",function(){return l.H}),i.d(t,"_181",function(){return l.I}),i.d(t,"_182",function(){return l.J}),i.d(t,"_183",function(){return l.K}),i.d(t,"_184",function(){return l.L}),i.d(t,"_185",function(){return l.M}),i.d(t,"_186",function(){return l.N}),i.d(t,"_187",function(){return l.O}),i.d(t,"_188",function(){return l.P}),i.d(t,"_189",function(){return l.Q}),i.d(t,"_190",function(){return l.R}),i.d(t,"_191",function(){return l.S}),i.d(t,"_192",function(){return l.T}),i.d(t,"_193",function(){return l.U}),i.d(t,"_194",function(){return l.V}),i.d(t,"_195",function(){return l.W}),i.d(t,"_196",function(){return l.X}),i.d(t,"_197",function(){return l.Y}),i.d(t,"_198",function(){return l.Z}),i.d(t,"_199",function(){return l._0}),i.d(t,"_200",function(){return l._1}),i.d(t,"_201",function(){return l._2}),i.d(t,"_202",function(){return l._3}),i.d(t,"_203",function(){return l._4}),i.d(t,"_204",function(){return l._5}),i.d(t,"_205",function(){return l._6}),i.d(t,"_206",function(){return l._7}),i.d(t,"_207",function(){return l._8}),i.d(t,"_208",function(){return l._9}),i.d(t,"_209",function(){return l._10}),i.d(t,"_210",function(){return l._11}),i.d(t,"_211",function(){return l._12}),i.d(t,"_212",function(){return l._13}),i.d(t,"_213",function(){return l._14}),i.d(t,"_214",function(){return l._15}),i.d(t,"_215",function(){return l._16}),i.d(t,"_216",function(){return l._17}),i.d(t,"_217",function(){return l._18}),i.d(t,"_218",function(){return l._19}),i.d(t,"_219",function(){return l._20}),i.d(t,"_220",function(){return l._21}),i.d(t,"_221",function(){return l._22}),i.d(t,"_222",function(){return l._23}),i.d(t,"_223",function(){return l._24})},function(e,t,i){"use strict";var n=i(22);i.d(t,"a",function(){return n.a});var r=i(12);i.d(t,"b",function(){return r.a});var s=i(23);i.d(t,"c",function(){return s.a})},function(e,t,i){"use strict";i.d(t,"a",function(){return p});var n=i(11),r=(i.n(n),i(0)),s=(i.n(r),i(6)),a=i(4),o=i(3),l=i(1),d=i(5),h=i(19),c=(i.n(h),i(2)),u=this&&this.__assign||function(){return u=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},u.apply(this,arguments)},p=function(){function e(e){this.default=["Delete","Rename","Download","Cut","Copy","Paste"],this.single=["Delete","Rename","Download","Cut","Copy"],this.multiple=["Delete","Download","Cut","Copy","Refresh"],this.selection=["NewFolder","Upload","SortBy","Refresh"],this.parent=e,this.render(),this.addEventListener()}return e.prototype.render=function(){var e=this;this.items=this.toolbarItemData(this.getItems(this.parent.toolbarSettings.items.map(function(e){return e.trim()})));var t={items:this.items};this.parent.trigger("toolbarCreate",t,function(t){e.items=t.items,e.toolbarObj=new n.Toolbar({items:e.items,created:e.toolbarCreateHandler.bind(e),overflowMode:"Popup",clicked:e.onClicked.bind(e),enableHtmlSanitizer:e.parent.enableHtmlSanitizer,enableRtl:e.parent.enableRtl}),e.toolbarObj.isStringTemplate=!0,e.toolbarObj.root=e.parent.root?e.parent.root:e.parent,e.toolbarObj.appendTo("#"+e.parent.element.id+o.O)})},e.prototype.getItemIndex=function(e){for(var t=this.getId(e),i=0;i<this.items.length;i++)if(this.items[i].id===t)return i;return-1},e.prototype.getItems=function(e){var t=e.slice();return this.parent.isDevice&&this.parent.allowMultiSelection&&t.push("SelectAll"),this.parent.toolbarItems.length>0&&(t=this.parent.toolbarItems.map(function(e){return e.name})),t},e.prototype.onClicked=function(e){var t=this;if(!i.i(r.isNullOrUndefined)(e.item)&&e.item.id){var n,h=e.item.id.substr((this.parent.element.id+"_tb_").length);"refresh"===h||"newfolder"===h||"upload"===h?(n=[i.i(l.r)(this.parent)],this.parent.itemData=n):(this.parent.notify(a.O,{}),n=this.parent.itemData);var u={cancel:!1,fileDetails:n,item:e.item};this.parent.trigger("toolbarClick",u,function(u){var p,f;if(!u.cancel)switch(h){case"sortby":f=i.i(r.closest)(e.originalEvent.target,"."+o._24),f&&f.classList.contains("e-toolbar-popup")&&(e.cancel=!0);break;case"newfolder":i.i(c._23)(t.parent);break;case"cut":i.i(c.C)(t.parent);break;case"copy":i.i(c.B)(t.parent);break;case"delete":for(var g=0;g<n.length;g++)if(!i.i(c._19)(n[g]))return void i.i(l._7)(t.parent,n[g],a.x);i.i(s.a)(t.parent,"Delete");break;case"details":t.parent.notify(a.T,{}),p=t.parent.selectedItems,"navigationpane"===t.parent.activeModule&&(p=[]),i.i(d.g)(t.parent,p,t.parent.path,"details");break;case"paste":t.parent.folderPath="",i.i(c.T)(t.parent);break;case"refresh":i.i(l.p)(t.parent);break;case"download":i.i(c._13)(t.parent);break;case"rename":i.i(c._19)(n[0])?(t.parent.notify(a.Q,{}),i.i(s.a)(t.parent,"Rename")):i.i(l._7)(t.parent,n[0],a.x);break;case"upload":i.i(c._24)(t.parent);break;case"selectall":t.parent.notify(a.R,{});break;case"selection":t.parent.notify(a.Y,{})}})}},e.prototype.toolbarCreateHandler=function(){var e=this;if(!i.i(r.isNullOrUndefined)(i.i(r.select)("#"+this.getId("SortBy"),this.parent.element))){var t=[{id:this.getPupupId("name"),text:i.i(l.E)(this.parent,"Name"),iconCss:"name"===this.parent.sortBy?o._5:""},{id:this.getPupupId("size"),text:i.i(l.E)(this.parent,"Size"),iconCss:"size"===this.parent.sortBy?o._5:""},{id:this.getPupupId("date"),text:i.i(l.E)(this.parent,"DateModified"),iconCss:"_fm_modified"===this.parent.sortBy?o._5:""},{separator:!0},{id:this.getPupupId("ascending"),text:i.i(l.E)(this.parent,"Ascending"),iconCss:"Ascending"===this.parent.sortOrder?o._6:""},{id:this.getPupupId("descending"),text:i.i(l.E)(this.parent,"Descending"),iconCss:"Descending"===this.parent.sortOrder?o._6:""},{id:this.getPupupId("none"),text:i.i(l.E)(this.parent,"None"),iconCss:"None"===this.parent.sortOrder?o._6:""}];this.buttonObj=new h.DropDownButton({items:t,cssClass:i.i(l.F)(this.parent,o.D),select:l.G.bind(this,this.parent),enableHtmlSanitizer:this.parent.enableHtmlSanitizer,enableRtl:this.parent.enableRtl,iconCss:o._4}),this.buttonObj.isStringTemplate=!0,this.buttonObj.appendTo("#"+this.getId("SortBy"))}if(!i.i(r.isNullOrUndefined)(i.i(r.select)("#"+this.getId("View"),this.parent.element))){var n='<span class="'+o.M+" "+o.L+'"></span>',s='<span class="'+o.K+" "+o.L+'"></span>',a=[{id:this.getPupupId("large"),text:i.i(l.E)(this.parent,"View-LargeIcons"),iconCss:"Details"===this.parent.view?"":o._6},{id:this.getPupupId("details"),text:i.i(l.E)(this.parent,"View-Details"),iconCss:"Details"===this.parent.view?o._6:""}];this.layoutBtnObj=new h.DropDownButton({iconCss:"Details"===this.parent.view?o.M:o.K,cssClass:i.i(l.F)(this.parent,"e-caret-hide "+o.D),items:a,select:this.layoutChange.bind(this),enableRtl:this.parent.enableRtl,content:'<span class="e-tbar-btn-text">'+i.i(l.E)(this.parent,"View")+"</span>",beforeItemRender:function(t){var r=t.item.iconCss,a=t.item.text===i.i(l.E)(e.parent,"View-LargeIcons"),o=r?" e-menu-icon "+r:"";t.element.innerHTML='<span class="'+o+'"></span>'+(a?s:n)+t.item.text;var d=t.element.firstChild;d&&""===d.className&&t.element.removeChild(d)}}),this.layoutBtnObj.isStringTemplate=!0,this.layoutBtnObj.appendTo("#"+this.getId("View"))}this.hideItems(this.default,!0),this.hideStatus(),this.parent.portals&&this.toolbarObj.portals&&(this.parent.portals=this.parent.portals.concat(this.toolbarObj.portals),this.parent.renderReactTemplates());for(var d=i.i(r.selectAll)(".e-btn",this.toolbarObj.element),c=0;c<d.length;c++)!function(e){d[e].onkeydown=function(e){13!==e.keyCode||e.target.classList.contains("e-fe-popup")||e.preventDefault()},d[e].onkeyup=function(t){13!==t.keyCode||t.target.classList.contains("e-fe-popup")||d[e].click()}}(c);this.parent.refreshLayout()},e.prototype.updateSortByButton=function(){if(this.buttonObj)for(var e=this.buttonObj.items,t=0;t<e.length;t++)e[t].id===this.getPupupId("name")?e[t].iconCss="name"===this.parent.sortBy?o._5:"":e[t].id===this.getPupupId("size")?e[t].iconCss="size"===this.parent.sortBy?o._5:"":e[t].id===this.getPupupId("date")?"dateModified"===this.parent.sortBy||"dateCreated"===this.parent.sortBy?e[t].iconCss=this.parent.sortBy===this.parent.sortBy?o._5:"":e[t].iconCss="_fm_modified"===this.parent.sortBy?o._5:"":e[t].id===this.getPupupId("ascending")?e[t].iconCss="Ascending"===this.parent.sortOrder?o._6:"":e[t].id===this.getPupupId("descending")?e[t].iconCss="Descending"===this.parent.sortOrder?o._6:"":e[t].id===this.getPupupId("none")&&(e[t].iconCss="None"===this.parent.sortOrder?o._6:"")},e.prototype.getPupupId=function(e){return this.parent.element.id+"_ddl_"+e.toLowerCase()},e.prototype.layoutChange=function(e){"Details"===this.parent.view?e.item.id===this.getPupupId("large")&&i.i(l.n)(this.parent,"LargeIcons"):e.item.id===this.getPupupId("details")&&i.i(l.n)(this.parent,"Details")},e.prototype.toolbarItemData=function(e){var t=[],n="Both";this.parent.isMobile&&(n="Overflow");for(var r=0;r<e.length;r++){var s=void 0,a=void 0;this.parent.toolbarItems.length>0&&(a=this.getItemModel(this.parent.toolbarItems[parseInt(r.toString(),10)]));var d=this.getId(e[r]),h=i.i(l.E)(this.parent,e[r]),c=i.i(l.E)(this.parent,"Tooltip-"+e[r]);switch(e[r]){case"|":s={type:"Separator"};break;case"Upload":s={id:d,text:h,tooltipText:c,prefixIcon:o.W,showTextOn:n};break;case"SortBy":var p='<span class="e-tbar-btn-text e-tbar-ddb-text">'+h+"</span>";a&&a.text&&(p='<span class="e-tbar-btn-text e-tbar-ddb-text">'+a.text+"</span>"),s={id:d,tooltipText:c,template:'<button id="'+d+'" class="e-tbar-btn e-tbtn-txt" tabindex="-1">'+p+"</button>"};break;case"Refresh":s={id:d,text:h,tooltipText:c,prefixIcon:o._7,showTextOn:n};break;case"Selection":s={id:d,text:h,tooltipText:c,suffixIcon:o._25,overflow:"Show",align:"Right"};break;case"View":var f=void 0;f=a&&a.text?a.text:i.i(l.E)(this.parent,"View"),s={id:d,tooltipText:c,prefixIcon:"Details"===this.parent.view?o.M:o.K,overflow:"Show",align:"Right",text:h,showTextOn:"Overflow",template:'<button id="'+d+'" class="e-tbar-btn e-tbtn-txt" tabindex="-1" aria-label='+f+"></button>"};break;case"Details":s={id:d,tooltipText:c,prefixIcon:o._3,overflow:"Show",align:"Right",text:h,showTextOn:"Overflow"};break;case"NewFolder":s={id:d,text:h,tooltipText:c,prefixIcon:o._2,showTextOn:n};break;case"Cut":s={id:d,text:h,tooltipText:c,prefixIcon:o.X,showTextOn:n};break;case"Copy":s={id:d,text:h,tooltipText:c,prefixIcon:o.Y,showTextOn:n};break;case"Paste":s={id:d,text:h,tooltipText:c,prefixIcon:o.Z,showTextOn:n};break;case"Delete":s={id:d,text:h,tooltipText:c,prefixIcon:o._0,showTextOn:n};break;case"Rename":s={id:d,text:h,tooltipText:c,prefixIcon:o._1,showTextOn:n};break;case"Download":s={id:d,text:h,tooltipText:c,prefixIcon:o._9,showTextOn:n};break;case"SelectAll":s={id:d,text:h,tooltipText:c,prefixIcon:o._8,showTextOn:n};break;default:s={id:d,text:h,tooltipText:c,template:""}}if(this.parent.toolbarItems.length>0&&a){var g=u({},s,a);t.push(g)}else t.push(s)}return t},e.prototype.getItemModel=function(e){var t={};return e.id&&(t.id=e.id),e.text&&(t.text=e.text),e.tooltipText&&(t.tooltipText=e.tooltipText),e.prefixIcon&&(t.prefixIcon=e.prefixIcon),e.cssClass&&(t.cssClass=e.cssClass),"Both"!==e.showTextOn&&(t.showTextOn=e.showTextOn),e.template&&(t.template=e.template),e.disabled&&(t.disabled=e.disabled),"auto"!==e.width&&(t.width=e.width),e.suffixIcon&&(t.suffixIcon=e.suffixIcon),"Left"!==e.align&&(t.align=e.align),"None"!==e.overflow&&(t.overflow=e.overflow),e.htmlAttributes&&(t.htmlAttributes=e.htmlAttributes),"Button"!==e.type&&(t.type=e.type),!0!==e.visible&&(t.visible=e.visible),e.showAlwaysInPopup&&(t.showAlwaysInPopup=e.showAlwaysInPopup),-1!==e.tabIndex&&(t.tabIndex=e.tabIndex),t},e.prototype.getId=function(e){return this.parent.element.id+"_tb_"+e.toLowerCase()},e.prototype.addEventListener=function(){this.parent.on(a.V,this.onPropertyChanged,this),this.parent.on(a.H,this.onSelectionChanged,this),this.parent.on(a.e,this.onLayoutChange,this),this.parent.on(a.c,this.showPaste,this),this.parent.on(a.a,this.hidePaste,this),this.parent.on(a.U,this.destroy,this),this.parent.on(a.l,this.updateSortByButton,this)},e.prototype.reRenderToolbar=function(e){var t=this,i=[];if(this.parent.toolbarItems.length>0?i=this.parent.toolbarItems.map(function(e){return e.name}):void 0!==e.newProp.toolbarSettings.items&&(i=e.newProp.toolbarSettings.items.map(function(e){return e.trim()})),i.length>0){this.items=this.toolbarItemData(this.getItems(i));var n={items:this.items};this.parent.trigger("toolbarCreate",n,function(e){t.buttonObj&&t.buttonObj.destroy(),t.layoutBtnObj&&t.layoutBtnObj.destroy(),t.items=e.items,t.toolbarObj.items=t.items,t.toolbarObj.dataBind(),t.toolbarCreateHandler()})}},e.prototype.onSelectionChanged=function(){this.hideStatus(),this.hideItems(this.single,!0),this.hideItems(this.selection,!1),1===this.parent.selectedItems.length?(this.hideItems(this.single,!1),this.hideItems(this.selection,!0)):this.parent.selectedItems.length>1&&(this.hideItems(this.multiple,!1),this.hideItems(this.selection,!0));var e=i.i(r.select)("#"+this.getId("Selection"),this.toolbarObj.element);if(this.parent.selectedItems.length>0&&e&&!this.parent.enableVirtualization){var t=void 0;t=1===this.parent.selectedItems.length?this.parent.selectedItems.length+" "+i.i(l.E)(this.parent,"Item-Selection"):this.parent.selectedItems.length+" "+i.i(l.E)(this.parent,"Items-Selection"),i.i(r.select)(".e-tbar-btn-text",e).textContent=t,this.toolbarObj.hideItem(e.parentElement,!1)}},e.prototype.hideItems=function(e,t){for(var n=0;n<e.length;n++){var s=i.i(r.select)("#"+this.getId(e[n]),this.parent.element);s&&this.toolbarObj.hideItem(s.parentElement,t)}},e.prototype.hideStatus=function(){var e=i.i(r.select)("#"+this.getId("Selection"),this.toolbarObj.element);e&&this.toolbarObj.hideItem(e.parentElement,!0)},e.prototype.showPaste=function(){this.hideItems(["Paste"],!1)},e.prototype.hidePaste=function(){this.hideItems(["Paste"],!0)},e.prototype.onLayoutChange=function(){if(this.layoutBtnObj){this.layoutBtnObj.iconCss="Details"===this.parent.view?o.M:o.K;for(var e=this.layoutBtnObj.items,t=0;t<e.length;t++)e[t].id===this.getPupupId("large")?e[t].iconCss="LargeIcons"===this.parent.view?o._6:"":e[t].id===this.getPupupId("details")&&(e[t].iconCss="Details"===this.parent.view?o._6:"")}},e.prototype.removeEventListener=function(){this.parent.off(a.V,this.onPropertyChanged),this.parent.off(a.H,this.onSelectionChanged),this.parent.off(a.e,this.onLayoutChange),this.parent.off(a.c,this.showPaste),this.parent.off(a.a,this.hidePaste),this.parent.off(a.U,this.destroy),this.parent.off(a.l,this.updateSortByButton)},e.prototype.getModuleName=function(){return"toolbar"},e.prototype.onPropertyChanged=function(e){if(e.module===this.getModuleName()||"common"===e.module)for(var t=0,n=Object.keys(e.newProp);t<n.length;t++){var r=n[t];switch(r){case"cssClass":this.buttonObj&&(this.buttonObj.cssClass=i.i(l.F)(this.parent,o.D)),this.layoutBtnObj&&(this.layoutBtnObj.cssClass=i.i(l.F)(this.parent,"e-caret-hide "+o.D));break;case"height":case"width":this.toolbarObj.refreshOverflow();break;case"toolbarSettings":case"toolbarItems":this.reRenderToolbar(e)}}},e.prototype.destroy=function(){this.parent.isDestroyed||(this.removeEventListener(),this.buttonObj&&this.buttonObj.destroy(),this.layoutBtnObj&&this.layoutBtnObj.destroy(),this.toolbarObj.destroy(),this.parent.refreshLayout())},e.prototype.enableItems=function(e,t){for(var n=0;n<e.length;n++){var s=i.i(r.select)("#"+this.getId(e[n]),this.parent.element);s&&this.toolbarObj.enableItems(s.parentElement,t)}},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var n=i(0),r=(i.n(n),i(18)),s=(i.n(r),i(3)),a=function(){function e(e){this.filemanagerInstance=e,this.largeIconInstance=e.largeiconsviewModule}return e.prototype.setUIVirtualization=function(){var e=this.largeIconInstance.items,t=e.slice(0,1),a=r.ListBase.createListFromJson(n.createElement,t,this.largeIconInstance.listObj);this.itemList=Array.prototype.slice.call(i.i(n.selectAll)("."+s.a,a)),this.largeIconInstance.element.appendChild(a),0!==this.itemList.length&&this.largeIconInstance.element.querySelector("."+s.s)&&this.largeIconInstance.element.removeChild(this.largeIconInstance.element.querySelector("."+s.s)),this.itemCount=this.getItemCount(Object.keys(this.largeIconInstance.allItems).length),this.largeIconInstance.element.firstChild.remove(),this.largeIconInstance.items=e.slice(0,this.itemCount)},e.prototype.setUlElementHeight=function(){this.lastRowCount=(this.largeIconInstance.allItems.length-this.itemCount)%this.rowItemCount?(this.largeIconInstance.allItems.length-this.itemCount)%this.rowItemCount:this.rowItemCount,this.topElement=this.filemanagerInstance.createElement("div"),this.topElement.classList.add("e-virtual-top"),this.largeIconInstance.element.firstElementChild.insertBefore(this.topElement,this.largeIconInstance.element.firstElementChild.firstChild),this.bottomElement=this.filemanagerInstance.createElement("div"),this.bottomElement.classList.add("e-virtual-bottom"),this.largeIconInstance.element.firstElementChild.insertBefore(this.bottomElement,null);var e=parseInt(window.getComputedStyle(this.largeIconInstance.itemList[0]).getPropertyValue("margin-top"),10)+parseInt(window.getComputedStyle(this.largeIconInstance.itemList[0]).getPropertyValue("margin-bottom"),10);this.listItemHeight=this.largeIconInstance.itemList[0].getBoundingClientRect().height+e,this.totalHeight=Object.keys(this.largeIconInstance.allItems).length/this.rowItemCount*this.listItemHeight,this.topElement.style.height="0px",this.bottomElement.style.height=this.totalHeight+"px",this.topElementHeight=0,this.bottomElementHeight=this.totalHeight,this.listDiff=0,this.renderedCount=this.itemCount},e.prototype.getItemCount=function(e){var t=parseInt(window.getComputedStyle(this.itemList[0]).getPropertyValue("margin-right"),10)+parseInt(window.getComputedStyle(this.itemList[0]).getPropertyValue("margin-left"),10);this.rowItemCount=Math.floor(parseFloat(i.i(n.formatUnit)(this.largeIconInstance.element.firstElementChild.clientWidth))/(this.itemList[0].offsetWidth+t));var r=this.rowItemCount*Math.round(parseFloat(i.i(n.formatUnit)(this.largeIconInstance.element.clientHeight))/this.itemList[0].offsetHeight);return r>e&&(r=e),r},e.prototype.wireScrollEvent=function(e){e?n.EventHandler.remove(this.largeIconInstance.element.firstElementChild,"scroll",this.onVirtualUiScroll):n.EventHandler.add(this.largeIconInstance.element.firstElementChild,"scroll",this.onVirtualUiScroll,this)},e.prototype.onVirtualUiScroll=function(){var e;this.scrollPosition=i.i(n.isNullOrUndefined)(this.scrollPosition)?0:this.scrollPosition;var t=this.getscrollerHeight(0);if(this.topElementHeight=this.listItemHeight*Math.floor(t/this.listItemHeight),this.bottomElementHeight=this.totalHeight-this.topElementHeight,e=t<=this.totalHeight?[this.topElementHeight,this.bottomElementHeight]:[this.totalHeight,0],this.topElementHeight=e[0],this.bottomElementHeight=e[1],this.topElementHeight!==parseFloat(this.topElement.style.height))if(this.topElement.style.height=this.topElementHeight+"px",this.bottomElement.style.height=this.bottomElementHeight+"px",t>this.scrollPosition){var r=Math.round(this.topElementHeight/this.listItemHeight-this.listDiff);this.onNormalScroll(r,!0)}else{var r=Math.round(this.listDiff-this.topElementHeight/this.listItemHeight);this.onNormalScroll(r,!1)}this.listDiff=Math.round(this.topElementHeight/this.listItemHeight),this.scrollPosition=t,this.largeIconInstance.itemList=Array.prototype.slice.call(i.i(n.selectAll)("."+s.a,this.largeIconInstance.element)),this.largeIconInstance.items=this.largeIconInstance.allItems.slice(this.renderedCount-this.itemCount,this.renderedCount)},e.prototype.getscrollerHeight=function(e){return this.largeIconInstance.element.firstElementChild.scrollTop-e<=0?0:this.largeIconInstance.element.firstElementChild.scrollTop-e},e.prototype.onNormalScroll=function(e,t){for(var i=0;i<e;i++)this.updateUI(t)},e.prototype.updateUI=function(e){var t=this;if(e){if(this.items=this.largeIconInstance.allItems.slice(this.renderedCount,this.renderedCount+this.rowItemCount),this.items.length>0){var a=r.ListBase.createListFromJson(n.createElement,this.items,this.largeIconInstance.listObj);this.itemList=Array.prototype.slice.call(i.i(n.selectAll)("."+s.a,a)),this.itemList.forEach(function(e){t.largeIconInstance.element.firstElementChild.insertBefore(e,t.bottomElement)}),this.renderedCount=this.largeIconInstance.allItems.length>=this.renderedCount+this.rowItemCount?this.renderedCount+this.rowItemCount:this.renderedCount+this.lastRowCount;for(var o=0;o<this.rowItemCount;o++)i.i(n.detach)(this.topElement.nextElementSibling)}}else{var l=void 0,d=void 0;this.renderedCount===this.largeIconInstance.allItems.length?(l=this.renderedCount-(this.itemCount-this.rowItemCount+this.lastRowCount),this.renderedCount=this.renderedCount-this.lastRowCount<this.itemCount?this.itemCount:this.renderedCount-this.lastRowCount,d=!0):(l=this.renderedCount-this.itemCount,this.renderedCount=this.renderedCount-this.rowItemCount<this.itemCount?this.itemCount:this.renderedCount-this.rowItemCount);var h=l-this.rowItemCount>0?l-this.rowItemCount:0;if(this.items=this.largeIconInstance.allItems.slice(h,l),this.items.length>0){var a=r.ListBase.createListFromJson(n.createElement,this.items,this.largeIconInstance.listObj);this.itemList=Array.prototype.slice.call(i.i(n.selectAll)("."+s.a,a));for(var c=this.itemList.length;c>0;c--)this.largeIconInstance.element.firstElementChild.insertBefore(this.itemList[c-1],this.topElement.nextElementSibling);for(var o=0;o<(d?this.lastRowCount:this.rowItemCount);o++)i.i(n.detach)(this.bottomElement.previousElementSibling)}}},e.prototype.getModuleName=function(){return"virtualization"},e.prototype.destroy=function(){this.filemanagerInstance.isDestroyed||i.i(n.isNullOrUndefined)(this.largeIconInstance.element.firstElementChild)||this.wireScrollEvent(!0)},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return I});var n=i(0),r=(i.n(n),i(39)),s=(i.n(r),i(9)),a=(i.n(s),i(6)),o=i(7),l=i(13),d=i(10),h=(i.n(d),i(15)),c=i(4),u=i(3),p=i(5),f=i(1),g=i(14),m=i(12),b=i(16),v=i(31),y=this&&this.__extends||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])})(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)}}(),_=this&&this.__decorate||function(e,t,i,n){var r,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,i,a):r(t,i))||a);return s>3&&a&&Object.defineProperty(t,i,a),a},I=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n.filterData=null,n.selectedNodes=[],n.duplicateItems=[],n.duplicateRecords=[],n.previousPath=[],n.nextPath=[],n.isLayoutChange=!1,n.layoutSelectedItems=[],n.renamedId=null,n.uploadItem=[],n.deleteRecords=[],n.isFile=!1,n.isCut=!1,n.isSearchCut=!1,n.isSearchDrag=!1,n.isPasteError=!1,n.folderPath="",n.isSameAction=!1,n.isFiltered=!1,n.isSortByClicked=!1,n.enablePaste=!1,n.persistData=!1,n.retryArgs=[],n.isOpened=!1,n.isRetryOpened=!1,n.isPathDrag=!1,n.searchedItems=[],n.retryFiles=[],n.isApplySame=!1,n.dragData=[],n.dragNodes=[],n.dragPath="",n.dropPath="",n.isDragDrop=!1,n.treeExpandTimer=null,n.dragCursorPosition={left:44,top:18},n.isDropEnd=!1,n.dragCount=0,n.droppedObjects=[],n.uploadingCount=0,n.uploadedCount=0,n.isMac=!1,I.Inject(m.a,l.a,b.a),n}y(t,e),I=t,t.prototype.getModuleName=function(){return"filemanager"},t.prototype.preRender=function(){(i.i(n.isNullOrUndefined)(this.element.id)||""===this.element.id)&&this.element.setAttribute("id",i.i(n.getUniqueID)("filemanager")),this.ensurePath(),this.feParent=[],this.feFiles=[],i.i(n.setStyleAttribute)(this.element,{width:i.i(n.formatUnit)(this.width),height:i.i(n.formatUnit)(this.height)}),this.isDevice=n.Browser.isDevice,this.isMobile=this.checkMobile(),this.isMobile&&this.setProperties({navigationPaneSettings:{visible:!1}},!0);var e=i.i(n.closest)(this.element,".e-bigger");this.isBigger=!!e,this.activeModule="LargeIcons"===this.view?"largeiconsview":"detailsview",i.i(s.createSpinner)({target:this.element},n.createElement),this.addWrapper(),this.keyConfigs={altN:"alt+n",f5:"f5",ctrlShift1:"ctrl+shift+1",ctrlShift2:"ctrl+shift+2",ctrlU:"ctrl+u"},this.localeObj=new n.L10n(this.getModuleName(),v.a,this.locale)},t.prototype.getPersistData=function(){var e=["view","path","selectedItems"];return this.addOnPersist(e)},t.prototype.requiredModules=function(){var e=[];return e.push({member:"breadcrumbbar",args:[this]}),e.push({member:"largeiconsview",args:[this]}),this.toolbarSettings.visible&&e.push({member:"toolbar",args:[this],name:"Toolbar"}),this.navigationPaneSettings.visible&&e.push({member:"navigationpane",args:[this],name:"NavigationPane"}),this.view&&e.push({member:"detailsview",args:[this],name:"DetailsView"}),this.contextMenuSettings.visible&&!this.isDevice&&e.push({member:"contextmenu",args:[this],name:"ContextMenu"}),this.enableVirtualization&&e.push({member:"virtualization",args:[this],name:"Virtualization"}),e},t.prototype.render=function(){this.initialize();var e=i.i(n.isNullOrUndefined)(this.selectedItems)?[]:this.allowMultiSelection?this.selectedItems:this.selectedItems.slice(this.selectedItems.length-1);if(this.setProperties({selectedItems:e},!0),this.fileView=this.view,this.isMac=navigator.platform.toUpperCase().indexOf("MAC")>=0,this.setRtl(this.enableRtl),this.addEventListeners(),i.i(p.a)(this,this.path!==this.originalPath?c.n:c.m,this.path),this.adjustHeight(),i.i(n.isNullOrUndefined)(this.navigationpaneModule)){this.splitterObj.collapse(this.enableRtl?1:0);i.i(n.select)("."+u._55,this.element).classList.add(u._10)}this.wireEvents(),this.renderComplete()},t.prototype.ensurePath=function(){var e=this.path;i.i(n.isNullOrUndefined)(e)&&(e="/"),e.lastIndexOf("/")!==e.length-1&&(e+="/"),this.originalPath=e;var t=e.split("/");this.setProperties({path:t[0]+"/"},!0),this.pathNames=[],this.pathId=["fe_tree"],this.itemData=[]},t.prototype.initialize=function(){this.isMobile&&i.i(n.addClass)([this.element],u._35),this.allowMultiSelection&&i.i(n.addClass)([this.element],u._34),this.addCssClass(null,this.cssClass),this.renderFileUpload()},t.prototype.addWrapper=function(){var e=this.createElement("div",{id:this.element.id+u.O});this.element.appendChild(e);var t=this.createElement("div",{id:this.element.id+u.p,className:u._36});this.element.appendChild(t);var i=this.createElement("div",{id:this.element.id+u._26,className:u._37}),n=this.createElement("div",{id:this.element.id+u.R});i.appendChild(n);var s=this.createElement("div",{id:this.element.id+u.y,className:u._38});this.breadCrumbBarNavigation=this.createElement("div",{id:this.element.id+u.q,className:u._51}),s.appendChild(this.breadCrumbBarNavigation);var a=this.createElement("div",{id:this.element.id+u.S});s.appendChild(a);var o=this.createElement("div",{id:this.element.id+u.T,className:u.k,attrs:{role:"group"}});s.appendChild(o);var l=this.createElement("span",{className:u._56});s.appendChild(l);var d;this.enableRtl?(t.appendChild(s),t.appendChild(i),d=[{size:"75%",min:"270px"},{size:"25%",min:this.navigationPaneSettings.minWidth.toString(),max:this.navigationPaneSettings.maxWidth.toString()}]):(t.appendChild(i),t.appendChild(s),d=[{size:"25%",min:this.navigationPaneSettings.minWidth.toString(),max:this.navigationPaneSettings.maxWidth.toString()},{size:"75%",min:"270px"}]),this.splitterObj=new r.Splitter({paneSettings:d,width:"100%",enableRtl:!1,enableHtmlSanitizer:this.enableHtmlSanitizer,resizing:this.splitterResize.bind(this)}),this.splitterObj.isStringTemplate=!0,this.splitterObj.appendTo(t);var h=this.createElement("div",{id:this.element.id+u.E});this.element.appendChild(h);var c=this.createElement("ul",{id:this.element.id+u.J});this.element.appendChild(c);var p=this.createElement("div",{id:this.element.id+u.I});this.element.appendChild(p);var f=this.createElement("div",{id:this.element.id+u.F});this.element.appendChild(f);var g=this.createElement("div",{id:this.element.id+u._28});this.element.appendChild(g)},t.prototype.adjustHeight=function(){var e=i.i(n.select)("#"+this.element.id+u.O,this.element),t=e?e.offsetHeight:0;this.splitterObj&&(this.splitterObj.height=(this.element.clientHeight-t).toString(),this.splitterObj.dataBind())},t.prototype.splitterResize=function(){this.notify(c.Z,{})},t.prototype.splitterAdjust=function(){var e=i.i(n.select)("."+u._55,this.element);this.navigationPaneSettings.visible?(this.splitterObj.expand(this.enableRtl?1:0),e.classList.remove(u._10)):(this.splitterObj.collapse(this.enableRtl?1:0),e.classList.add(u._10))},t.prototype.addCssClass=function(e,t){i.i(n.isNullOrUndefined)(e)||""===e||i.i(n.removeClass)([this.element],e.split(" ")),i.i(n.isNullOrUndefined)(t)||""===t||i.i(n.addClass)([this.element],t.split(" "))},t.prototype.showSpinner=function(){i.i(s.showSpinner)(this.element)},t.prototype.hideSpinner=function(){i.i(s.hideSpinner)(this.element)},t.prototype.onContextMenu=function(e){e.preventDefault()},t.prototype.checkMobile=function(){return/iphone|ipod|android|blackberry|opera|mini|windows\sce|palm|smartphone|iemobile/i.test(n.Browser.userAgent.toLowerCase())&&/mobile/i.test(n.Browser.userAgent.toLowerCase())},t.prototype.renderFileUpload=function(){var e=this.element.id+u.B,t=this.createElement("input",{id:e,attrs:{name:"uploadFiles",type:"file"}});this.element.appendChild(t),this.uploadDialogObj=new s.Dialog({header:i.i(f.E)(this,"Header-Upload"),content:t,animationSettings:{effect:"None"},showCloseIcon:!0,closeOnEscape:!0,visible:!1,isModal:!0,width:"350px",target:this.popupTarget?this.popupTarget:"#"+this.element.id,cssClass:i.i(f.F)(this,this.isMobile?u.C:u.D),locale:this.locale,allowDragging:!0,position:{X:"center",Y:"center"},enableRtl:this.enableRtl,enableHtmlSanitizer:this.enableHtmlSanitizer,open:this.onOpen.bind(this),close:this.onClose.bind(this),beforeOpen:this.onBeforeOpen.bind(this),beforeClose:this.onBeforeClose.bind(this)}),this.uploadDialogObj.appendTo("#"+this.element.id+u._28),this.renderUploadBox()},t.prototype.renderUploadBox=function(){var e=this.ajaxSettings.uploadUrl?this.ajaxSettings.uploadUrl:this.ajaxSettings.url;this.uploadObj=new d.Uploader({dropArea:i.i(n.select)("#"+this.element.id+u.y,this.element),asyncSettings:{saveUrl:e,removeUrl:e},locale:this.locale,enableRtl:this.enableRtl,uploading:this.onUploading.bind(this),removing:this.onRemoving.bind(this),canceling:this.onCancel.bind(this),clearing:this.onClearing.bind(this),selected:this.onSelected.bind(this),success:this.onUploadSuccess.bind(this),failure:this.onUploadFailure.bind(this),autoUpload:this.uploadSettings.autoUpload,minFileSize:this.uploadSettings.minFileSize,maxFileSize:this.uploadSettings.maxFileSize,allowedExtensions:this.uploadSettings.allowedExtensions,directoryUpload:this.uploadSettings.directoryUpload,fileListRendering:this.onFileListRender.bind(this)}),this.uploadObj.appendTo("#"+this.element.id+u.B)},t.prototype.onFileListRender=function(e){this.trigger("uploadListCreate",e)},t.prototype.updateUploader=function(){this.uploadObj.autoUpload=this.uploadSettings.autoUpload,this.uploadObj.minFileSize=this.uploadSettings.minFileSize,this.uploadObj.maxFileSize=this.uploadSettings.maxFileSize,this.uploadObj.allowedExtensions=this.uploadSettings.allowedExtensions,this.uploadObj.directoryUpload=this.uploadSettings.directoryUpload,this.uploadObj.dataBind()},t.prototype.onBeforeOpen=function(e){var t={cancel:e.cancel,popupName:"Upload",popupModule:this.uploadDialogObj};this.trigger("beforePopupOpen",t,function(t){e.cancel=t.cancel})},t.prototype.onBeforeClose=function(e){var t={cancel:e.cancel,popupName:"Upload",popupModule:this.uploadDialogObj};this.trigger("beforePopupClose",t,function(t){e.cancel=t.cancel})},t.prototype.onOpen=function(){this.isOpened=!0,this.uploadDialogObj.element.focus();var e={popupModule:this.uploadDialogObj,popupName:"Upload",element:this.uploadDialogObj.element};this.trigger("popupOpen",e)},t.prototype.onClose=function(){this.isOpened=!1,this.uploadObj.clearAll();var e={popupModule:this.uploadDialogObj,popupName:"Upload",element:this.uploadDialogObj.element};this.trigger("popupClose",e)},t.prototype.onUploading=function(e){var t="save";if(0!==this.retryArgs.length)for(var r=0;r<this.retryArgs.length;r++)e.fileData.name===this.retryArgs[r].file.name&&(t=this.retryArgs[r].action,this.retryArgs.splice(r,1),r=this.retryArgs.length);var s=JSON.stringify(i.i(n.getValue)(this.pathId[this.pathId.length-1],this.feParent));e.customFormData=[{path:this.path},{action:t},{data:s},{filename:e.fileData.name}];var a=this.ajaxSettings.uploadUrl?this.ajaxSettings.uploadUrl:this.ajaxSettings.url,o={url:a,type:"POST",mode:!0,dataType:null,contentType:null,data:JSON.stringify(e.customFormData),onSuccess:null,onFailure:null,beforeSend:null};this.uploadEventArgs={action:"Upload",ajaxSettings:o,cancel:!1},this.trigger("beforeSend",this.uploadEventArgs,function(t){e.customFormData=JSON.parse(i.i(n.getValue)("data",t.ajaxSettings)),e.cancel=t.cancel;var r={cancel:!1,httpRequest:e.currentRequest};"function"==typeof i.i(n.getValue)("beforeSend",t.ajaxSettings)&&(i.i(n.getValue)("beforeSend",t.ajaxSettings)(r),i.i(n.getValue)("cancel",r)&&(e.cancel=i.i(n.getValue)("cancel",r)))})},t.prototype.onRemoving=function(){this.onFileUploadSuccess({count:1}),1===this.uploadObj.getFilesData().length&&this.uploadDialogObj.hide()},t.prototype.onCancel=function(e){var t=JSON.stringify(i.i(n.getValue)(this.pathId[this.pathId.length-1],this.feParent));e.customFormData=[{path:this.path},{action:"remove"},{data:t}]},t.prototype.onClearing=function(){this.isOpened&&this.uploadDialogObj.hide()},t.prototype.onSelected=function(e){if(0!==e.filesData.length){this.uploadingCount=e.filesData.length,this.uploadedCount=0;var t=i.i(f.r)(this);if(!i.i(f._12)(t))return e.cancel=!0,void i.i(f._7)(this,t,c.A);this.uploadDialogObj.show()}},t.prototype.onFileUploadSuccess=function(e){this.uploadedCount=this.uploadedCount+e.count,this.uploadSettings.autoClose&&this.uploadingCount===this.uploadedCount&&this.uploadDialogObj.hide()},t.prototype.onUploadSuccess=function(e){var t={action:"Upload",result:e};this.trigger("success",t),this.itemData=[i.i(n.getValue)(this.pathId[this.pathId.length-1],this.feParent)],i.i(p.a)(this,c.K,this.path),this.onFileUploadSuccess({count:1}),"function"==typeof i.i(n.getValue)("onSuccess",this.uploadEventArgs.ajaxSettings)&&i.i(n.getValue)("onSuccess",this.uploadEventArgs.ajaxSettings)()},t.prototype.onUploadFailure=function(e){var t=i.i(n.getValue)("response",e),r=i.i(n.getValue)("statusText",t);""!==r&&i.i(n.setValue)("statusText",r,e);var s={action:"Upload",error:e};this.trigger("failure",s),400===i.i(n.getValue)("statusCode",t)&&(this.retryFiles.push(i.i(n.getValue)("file",e)),this.isRetryOpened||i.i(a.b)(this,"UploadRetry")),"function"==typeof i.i(n.getValue)("onFailure",this.uploadEventArgs.ajaxSettings)&&i.i(n.getValue)("onFailure",this.uploadEventArgs.ajaxSettings)()},t.prototype.onInitialEnd=function(){i.i(f.I)(this,this.path)},t.prototype.addEventListeners=function(){this.on(c.E,this.showSpinner,this),this.on(c.F,this.hideSpinner,this),this.on(c.n,this.onInitialEnd,this),this.on(c.T,this.onDetailsInit,this),this.on(c.C,this.onFileUploadSuccess,this),n.EventHandler.add(this.element,"contextmenu",this.onContextMenu,this)},t.prototype.removeEventListeners=function(){this.isDestroyed||(this.off(c.E,this.showSpinner),this.off(c.F,this.hideSpinner),this.off(c.n,this.onInitialEnd),this.off(c.T,this.onDetailsInit),this.off(c.C,this.onFileUploadSuccess),n.EventHandler.remove(this.element,"contextmenu",this.onContextMenu))},t.prototype.onDetailsInit=function(){i.i(n.isNullOrUndefined)(this.activeModule)&&(this.itemData=[i.i(n.getValue)(this.pathId[this.pathId.length-1],this.feParent)])},t.prototype.resizeHandler=function(){this.adjustHeight(),this.notify(c._0,{})},t.prototype.keyActionHandler=function(e){var t;switch(e.action){case"altN":e.preventDefault(),this.itemData=[i.i(f.r)(this)],i.i(f._11)(this.itemData[0])?i.i(a.a)(this,"NewFolder"):i.i(f._7)(this,this.itemData[0],c.z);break;case"f5":e.preventDefault(),i.i(f.p)(this);break;case"ctrlShift1":e.preventDefault(),this.fileView="Details",this.setProperties({view:"Details"},!0),i.i(s.showSpinner)(this.element),i.i(f.n)(this,"Details");break;case"ctrlShift2":e.preventDefault(),this.fileView="LargeIcons",this.setProperties({view:"LargeIcons"},!0),i.i(s.showSpinner)(this.element),i.i(f.n)(this,"LargeIcons");break;case"ctrlU":e.preventDefault(),-1!=this.toolbarSettings.items.indexOf("Upload")&&(t=i.i(n.select)("#"+this.element.id+u.B,this.element),t.click())}},t.prototype.wireEvents=function(){n.EventHandler.add(window,"resize",this.resizeHandler,this),this.keyboardModule=new n.KeyboardEvents(this.element,{keyAction:this.keyActionHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"})},t.prototype.unWireEvents=function(){n.EventHandler.remove(window,"resize",this.resizeHandler),this.keyboardModule.destroy()},t.prototype.setPath=function(){this.setProperties({selectedItems:[]},!0),this.ensurePath(),this.notify(c.o,{selectedNode:this.pathId[0]}),i.i(p.a)(this,this.path!==this.originalPath?c.n:c.m,this.path)},t.prototype.onPropertyChanged=function(e,t){for(var r,s=0,a=Object.keys(e);s<a.length;s++){switch(a[s]){case"ajaxSettings":this.ajaxSettingSetModel(e);break;case"allowDragAndDrop":this.allowDragAndDrop=e.allowDragAndDrop,this.notify(c.V,{module:"common",newProp:e,oldProp:t});break;case"allowMultiSelection":this.allowMultiSelection?i.i(n.addClass)([this.element],u._34):(this.selectedItems.length>1&&this.setProperties({selectedItems:this.selectedItems.slice(this.selectedItems.length-1)},!0),i.i(n.removeClass)([this.element],u._34)),this.notify(c.V,{module:"common",newProp:e,oldProp:t});break;case"cssClass":this.addCssClass(t.cssClass,e.cssClass),this.notify(c.V,{module:"common",newProp:e,oldProp:t});break;case"detailsViewSettings":this.notify(c.V,{module:"detailsview",newProp:e,oldProp:t});break;case"enableRtl":this.enableRtl=e.enableRtl,this.refresh();break;case"rootAliasName":this.rootAliasName=e.rootAliasName,this.refresh();break;case"height":r=i.i(n.isNullOrUndefined)(e.height)?e.height:i.i(n.formatUnit)(e.height),i.i(n.setStyleAttribute)(this.element,{height:r}),this.adjustHeight(),this.notify(c.V,{module:"common",newProp:e,oldProp:t});break;case"locale":i.i(n.isNullOrUndefined)(e.enableRtl)||this.setProperties({enableRtl:e.enableRtl},!0),this.localeSetModelOption(e);break;case"navigationPaneSettings":this.splitterAdjust(),this.notify(c.V,{module:"navigationpane",newProp:e,oldProp:t});break;case"path":this.setPath();break;case"searchSettings":i.i(n.isNullOrUndefined)(e.searchSettings.allowSearchOnTyping)||this.setProperties({searchSettings:{allowSearchOnTyping:e.searchSettings.allowSearchOnTyping}},!0),i.i(n.isNullOrUndefined)(e.searchSettings.ignoreCase)&&this.setProperties({searchSettings:{ignoreCase:e.searchSettings.ignoreCase}},!0),i.i(n.isNullOrUndefined)(e.searchSettings.filterType)&&this.setProperties({searchSettings:{filterType:e.searchSettings.filterType}},!0),this.notify(c.V,{module:"breadcrumbbar",newProp:e,oldProp:t});break;case"selectedItems":"Details"===this.view?this.notify(c.V,{module:"detailsview",newProp:e,oldProp:t}):"LargeIcons"===this.view&&this.notify(c.V,{module:"largeiconsview",newProp:e,oldProp:t});break;case"showFileExtension":case"showHiddenItems":this.notify(c.V,{module:"common",newProp:e,oldProp:t});break;case"showThumbnail":this.notify(c.V,{module:"largeiconsview",newProp:e,oldProp:t});break;case"toolbarSettings":case"toolbarItems":this.adjustHeight(),this.notify(c.V,{module:"toolbar",newProp:e,oldProp:t});break;case"uploadSettings":this.updateUploader();break;case"view":"Details"===e.view?this.notify(c.V,{module:"detailsview",newProp:e,oldProp:t}):"LargeIcons"===e.view&&this.notify(c.V,{module:"largeiconsview",newProp:e,oldProp:t});break;case"width":i.i(n.setStyleAttribute)(this.element,{width:i.i(n.isNullOrUndefined)(e.width)?e.width:i.i(n.formatUnit)(e.width)}),this.notify(c.V,{module:"common",newProp:e,oldProp:t});break;case"sortOrder":i.i(f.p)(this),this.notify(c.l,{});break;case"sortBy":i.i(f.p)(this),this.notify(c.l,{}),"Details"===this.view&&this.notify(c.k,{});break;case"popupTarget":this.uploadDialogObj&&(this.uploadDialogObj.target=e.popupTarget),this.dialogObj&&(this.dialogObj.target=e.popupTarget),this.extDialogObj&&(this.extDialogObj.target=e.popupTarget),this.viewerObj&&(this.viewerObj.target=e.popupTarget)}}},t.prototype.ajaxSettingSetModel=function(t){i.i(n.isNullOrUndefined)(t.ajaxSettings.url)||this.setProperties({ajaxSettings:{url:t.ajaxSettings.url}},!0),i.i(n.isNullOrUndefined)(t.ajaxSettings.uploadUrl)||this.setProperties({ajaxSettings:{uploadUrl:t.ajaxSettings.uploadUrl}},!0),i.i(n.isNullOrUndefined)(t.ajaxSettings.downloadUrl)||this.setProperties({ajaxSettings:{downloadUrl:t.ajaxSettings.downloadUrl}},!0),i.i(n.isNullOrUndefined)(t.ajaxSettings.getImageUrl)||this.setProperties({ajaxSettings:{getImageUrl:t.ajaxSettings.getImageUrl}},!0),this.setProperties({path:"/"},!0),this.setProperties({selectedItems:[]},!0),e.prototype.refresh.call(this)},t.prototype.localeSetModelOption=function(t){this.uploadObj.locale=t.locale,e.prototype.refresh.call(this)},t.prototype.destroy=function(){this.isDestroyed||(this.refreshing||this.notify(c.U,{}),this.uploadObj.destroy(),this.uploadObj=null,this.uploadDialogObj.destroy(),this.uploadDialogObj=null,this.splitterObj.destroy(),this.splitterObj=null,this.dialogObj&&(this.dialogObj.destroy(),this.dialogObj=null),this.viewerObj&&(this.viewerObj.destroy(),this.viewerObj=null),this.extDialogObj&&(this.extDialogObj.destroy(),this.extDialogObj=null),this.element.removeAttribute("style"),this.element.removeAttribute("tabindex"),this.removeEventListeners(),this.unWireEvents(),this.addCssClass(this.cssClass,null),i.i(n.removeClass)([this.element],[u._52,u._35,u._34]),this.element.innerHTML="",this.breadCrumbBarNavigation=null,this.activeElements=null,this.virtualDragElement=null,this.visitedItem=null,e.prototype.destroy.call(this),this.virtualizationModule=null,this.navigationpaneModule=null,this.toolbarModule=null,this.contextmenuModule=null,this.largeiconsviewModule=null,this.detailsviewModule=null,this.breadcrumbbarModule=null)},t.prototype.createFolder=function(e){this.notify(c.X,{action:"createFolder"});var t=[i.i(f.r)(this)];if(this.itemData=t,e)if(/[\/\\|*?"<>:]/.test(e)){var n={files:null,error:{code:"402",message:i.i(f.E)(this,"Validation-Invalid").replace("{0}",'"'+e+'"'),fileExists:null}};i.i(a.a)(this,"Error",n)}else i.i(f._11)(t[0])?i.i(p.b)(this,e):i.i(f._7)(this,t[0],c.z);else i.i(f._14)(this)},t.prototype.deleteFiles=function(e){this.notify(c.X,{action:"deleteFiles",ids:e})},t.prototype.disableToolbarItems=function(e){!i.i(n.isNullOrUndefined)(e)&&this.toolbarModule&&this.toolbarModule.enableItems(e,!1)},t.prototype.downloadFiles=function(e){this.notify(c.X,{action:"downloadFiles",ids:e})},t.prototype.enableToolbarItems=function(e){!i.i(n.isNullOrUndefined)(e)&&this.toolbarModule&&this.toolbarModule.enableItems(e,!0)},t.prototype.disableMenuItems=function(e){i.i(n.isNullOrUndefined)(e)||i.i(n.isNullOrUndefined)(this.contextmenuModule.contextMenu)||this.contextmenuModule.disableItem(e)},t.prototype.getMenuItemIndex=function(e){return this.contextmenuModule?this.contextmenuModule.getItemIndex(e):-1},t.prototype.getToolbarItemIndex=function(e){return this.toolbarModule?this.toolbarModule.getItemIndex(e):-1},t.prototype.filterFiles=function(e){this.filterData=e||null,this.setProperties({selectedItems:[]},!0),this.notify(c.H,{}),this.isFiltered=!0,""!==this.breadcrumbbarModule.searchObj.element.value&&(this.breadcrumbbarModule.searchObj.element.value=""),i.i(p.c)(this,c._3)},t.prototype.getSelectedFiles=function(){return this.notify(c._2,{}),this.itemData},t.prototype.openFile=function(e){this.notify(c.X,{action:"openFile",id:e})},t.prototype.refreshFiles=function(){i.i(f.p)(this)},t.prototype.refreshLayout=function(){this.adjustHeight(),this.notify(c._1,{})},t.prototype.selectAll=function(){this.notify(c.X,{action:"selectAll"})},t.prototype.clearSelection=function(){this.notify(c.X,{action:"clearSelection"})},t.prototype.renameFile=function(e,t){this.notify(c.X,{action:"renameFile",id:e,newName:t})},t.prototype.uploadFiles=function(){var e=[i.i(f.r)(this)];this.itemData=e,i.i(f._15)(this)},t.prototype.setRtl=function(e){e?this.addCssClass(null,u._52):this.addCssClass(u._52,null),this.uploadObj&&(this.uploadDialogObj.enableRtl=e,this.uploadObj.enableRtl=e)};var I;return _([i.i(n.Complex)({},o.a)],t.prototype,"ajaxSettings",void 0),_([i.i(n.Property)(!1)],t.prototype,"allowDragAndDrop",void 0),_([i.i(n.Property)(!0)],t.prototype,"allowMultiSelection",void 0),_([i.i(n.Property)(!0)],t.prototype,"showItemCheckBoxes",void 0),_([i.i(n.Complex)({},g.a)],t.prototype,"contextMenuSettings",void 0),_([i.i(n.Property)("")],t.prototype,"cssClass",void 0),_([i.i(n.Complex)({},o.g)],t.prototype,"detailsViewSettings",void 0),_([i.i(n.Property)(!0)],t.prototype,"enableHtmlSanitizer",void 0),_([i.i(n.Property)(!1)],t.prototype,"enablePersistence",void 0),_([i.i(n.Property)(!1)],t.prototype,"enableVirtualization",void 0),_([i.i(n.Property)("400px")],t.prototype,"height",void 0),_([i.i(n.Property)("LargeIcons")],t.prototype,"view",void 0),_([i.i(n.Complex)({},o.l)],t.prototype,"navigationPaneSettings",void 0),_([i.i(n.Property)("/")],t.prototype,"path",void 0),_([i.i(n.Property)(null)],t.prototype,"popupTarget",void 0),_([i.i(n.Complex)({},o.e)],t.prototype,"searchSettings",void 0),_([i.i(n.Property)()],t.prototype,"selectedItems",void 0),_([i.i(n.Property)(!0)],t.prototype,"showFileExtension",void 0),_([i.i(n.Property)(null)],t.prototype,"rootAliasName",void 0),_([i.i(n.Property)(!1)],t.prototype,"showHiddenItems",void 0),_([i.i(n.Property)(!0)],t.prototype,"showThumbnail",void 0),_([i.i(n.Property)("Ascending")],t.prototype,"sortOrder",void 0),_([i.i(n.Property)("name")],t.prototype,"sortBy",void 0),_([i.i(n.Property)(null)],t.prototype,"sortComparer",void 0),_([i.i(n.Complex)({},o.c)],t.prototype,"toolbarSettings",void 0),_([i.i(n.Collection)([],o.d)],t.prototype,"toolbarItems",void 0),_([i.i(n.Complex)({},h.a)],t.prototype,"uploadSettings",void 0),_([i.i(n.Property)("100%")],t.prototype,"width",void 0),_([i.i(n.Event)()],t.prototype,"fileLoad",void 0),_([i.i(n.Event)()],t.prototype,"fileOpen",void 0),_([i.i(n.Event)()],t.prototype,"beforeDownload",void 0),_([i.i(n.Event)()],t.prototype,"beforeImageLoad",void 0),_([i.i(n.Event)()],t.prototype,"beforePopupClose",void 0),_([i.i(n.Event)()],t.prototype,"beforePopupOpen",void 0),_([i.i(n.Event)()],t.prototype,"beforeSend",void 0),_([i.i(n.Event)()],t.prototype,"created",void 0),_([i.i(n.Event)()],t.prototype,"destroyed",void 0),_([i.i(n.Event)()],t.prototype,"fileDragStart",void 0),_([i.i(n.Event)()],t.prototype,"fileDragging",void 0),_([i.i(n.Event)()],t.prototype,"fileDragStop",void 0),_([i.i(n.Event)()],t.prototype,"fileDropped",void 0),_([i.i(n.Event)()],t.prototype,"fileSelection",void 0),_([i.i(n.Event)()],t.prototype,"fileSelect",void 0),_([i.i(n.Event)()],t.prototype,"menuClick",void 0),_([i.i(n.Event)()],t.prototype,"menuOpen",void 0),_([i.i(n.Event)()],t.prototype,"failure",void 0),_([i.i(n.Event)()],t.prototype,"popupClose",void 0),_([i.i(n.Event)()],t.prototype,"popupOpen",void 0),_([i.i(n.Event)()],t.prototype,"success",void 0),_([i.i(n.Event)()],t.prototype,"toolbarClick",void 0),_([i.i(n.Event)()],t.prototype,"toolbarCreate",void 0),_([i.i(n.Event)()],t.prototype,"uploadListCreate",void 0),t=I=_([n.NotifyPropertyChanges],t)}(n.Component)},function(e,t,i){"use strict";var n=i(3);i.d(t,"a",function(){return n.O}),i.d(t,"b",function(){return n.p}),i.d(t,"c",function(){return n._26}),i.d(t,"d",function(){return n.R}),i.d(t,"e",function(){return n.S}),i.d(t,"f",function(){return n.T}),i.d(t,"g",function(){return n.E}),i.d(t,"h",function(){return n._27}),i.d(t,"i",function(){return n.I}),i.d(t,"j",function(){return n.F}),i.d(t,"k",function(){return n._28}),i.d(t,"l",function(){return n._29}),i.d(t,"m",function(){return n.J}),i.d(t,"n",function(){return n._30}),i.d(t,"o",function(){return n._31}),i.d(t,"p",function(){return n._32}),i.d(t,"q",function(){return n.y}),i.d(t,"r",function(){return n.q}),i.d(t,"s",function(){return n.B}),i.d(t,"t",function(){return n._33}),i.d(t,"u",function(){return n._21}),i.d(t,"v",function(){return n.h}),i.d(t,"w",function(){return n.i}),i.d(t,"x",function(){return n._34}),i.d(t,"y",function(){return n.D}),i.d(t,"z",function(){return n._35}),i.d(t,"A",function(){return n.C}),i.d(t,"B",function(){return n._13}),i.d(t,"C",function(){return n._23}),i.d(t,"D",function(){return n._36}),i.d(t,"E",function(){return n._37}),i.d(t,"F",function(){return n._38}),i.d(t,"G",function(){return n.k}),i.d(t,"H",function(){return n._24}),i.d(t,"I",function(){return n.a}),i.d(t,"J",function(){return n.b}),i.d(t,"K",function(){return n._11}),i.d(t,"L",function(){return n._6}),i.d(t,"M",function(){return n._5}),i.d(t,"N",function(){return n.d}),i.d(t,"O",function(){return n._12}),i.d(t,"P",function(){return n.e}),i.d(t,"Q",function(){return n._16}),i.d(t,"R",function(){return n._19}),i.d(t,"S",function(){return n._14}),i.d(t,"T",function(){return n._15}),i.d(t,"U",function(){return n._17}),i.d(t,"V",function(){return n.f}),i.d(t,"W",function(){return n._39}),i.d(t,"X",function(){return n.s}),i.d(t,"Y",function(){return n.u}),i.d(t,"Z",function(){return n.v}),i.d(t,"_0",function(){return n.x}),i.d(t,"_1",function(){return n.z}),i.d(t,"_2",function(){return n.A}),i.d(t,"_3",function(){return n.l}),i.d(t,"_4",function(){return n.m}),i.d(t,"_5",function(){return n.n}),i.d(t,"_6",function(){return n.o}),i.d(t,"_7",function(){return n.g}),i.d(t,"_8",function(){return n.t}),i.d(t,"_9",function(){return n._40}),i.d(t,"_10",function(){return n._41}),i.d(t,"_11",function(){return n._42}),i.d(t,"_12",function(){return n._43}),i.d(t,"_13",function(){return n.r}),i.d(t,"_14",function(){return n._44}),i.d(t,"_15",function(){return n.c}),i.d(t,"_16",function(){return n.P}),i.d(t,"_17",function(){return n.L}),i.d(t,"_18",function(){return n.Q}),i.d(t,"_19",function(){return n.w}),i.d(t,"_20",function(){return n.j}),i.d(t,"_21",function(){return n.U}),i.d(t,"_22",function(){return n.V}),i.d(t,"_23",function(){return n.W}),i.d(t,"_24",function(){return n.X}),i.d(t,"_25",function(){return n.Y}),i.d(t,"_26",function(){return n.Z}),i.d(t,"_27",function(){return n._0}),i.d(t,"_28",function(){return n._1}),i.d(t,"_29",function(){return n._2}),i.d(t,"_30",function(){return n._3}),i.d(t,"_31",function(){return n._4}),i.d(t,"_32",function(){return n._7}),i.d(t,"_33",function(){return n._8}),i.d(t,"_34",function(){return n._9}),i.d(t,"_35",function(){return n._45}),i.d(t,"_36",function(){return n.M}),i.d(t,"_37",function(){return n.K}),i.d(t,"_38",function(){return n._22}),i.d(t,"_39",function(){return n._25}),i.d(t,"_40",function(){return n._46}),i.d(t,"_41",function(){return n._47}),i.d(t,"_42",function(){return n._48}),i.d(t,"_43",function(){return n._20}),i.d(t,"_44",function(){return n._49}),i.d(t,"_45",function(){return n.H}),i.d(t,"_46",function(){return n._50}),i.d(t,"_47",function(){return n._51}),i.d(t,"_48",function(){return n._52}),i.d(t,"_49",function(){return n._10}),i.d(t,"_50",function(){return n._53}),i.d(t,"_51",function(){return n.N}),i.d(t,"_52",function(){return n._54}),i.d(t,"_53",function(){return n._55}),i.d(t,"_54",function(){return n._18}),i.d(t,"_55",function(){return n._56}),i.d(t,"_56",function(){return n.G});var r=i(4);i.d(t,"_57",function(){return r.j}),i.d(t,"_58",function(){return r.V}),i.d(t,"_59",function(){return r.n}),i.d(t,"_60",function(){return r.m}),i.d(t,"_61",function(){return r.I}),i.d(t,"_62",function(){return r._3}),i.d(t,"_63",function(){return r._6}),i.d(t,"_64",function(){return r.t}),i.d(t,"_65",function(){return r.D}),i.d(t,"_66",function(){return r.M}),i.d(t,"_67",function(){return r.h}),i.d(t,"_68",function(){return r._0}),i.d(t,"_69",function(){return r.Z}),i.d(t,"_70",function(){return r.K}),i.d(t,"_71",function(){return r.U}),i.d(t,"_72",function(){return r.E}),i.d(t,"_73",function(){return r._7}),i.d(t,"_74",function(){return r.C}),i.d(t,"_75",function(){return r.F}),i.d(t,"_76",function(){return r._8}),i.d(t,"_77",function(){return r._1}),i.d(t,"_78",function(){return r.B}),i.d(t,"_79",function(){return r.f}),i.d(t,"_80",function(){return r.S}),i.d(t,"_81",function(){return r.i}),i.d(t,"_82",function(){return r.H}),i.d(t,"_83",function(){return r.R}),i.d(t,"_84",function(){return r.Y}),i.d(t,"_85",function(){return r.o}),i.d(t,"_86",function(){return r.e}),i.d(t,"_87",function(){return r.l}),i.d(t,"_88",function(){return r._4}),i.d(t,"_89",function(){return r.T}),i.d(t,"_90",function(){return r.N}),i.d(t,"_91",function(){return r.Q}),i.d(t,"_92",function(){return r.J}),i.d(t,"_93",function(){return r.L}),i.d(t,"_94",function(){return r.c}),i.d(t,"_95",function(){return r.a}),i.d(t,"_96",function(){return r.O}),i.d(t,"_97",function(){return r.b}),i.d(t,"_98",function(){return r.p}),i.d(t,"_99",function(){return r.s}),i.d(t,"_100",function(){return r.q}),i.d(t,"_101",function(){return r.W}),i.d(t,"_102",function(){return r._5}),i.d(t,"_103",function(){return r._9}),i.d(t,"_104",function(){return r.k}),i.d(t,"_105",function(){return r.d}),i.d(t,"_106",function(){return r.G}),i.d(t,"_107",function(){return r._10}),i.d(t,"_108",function(){return r.P}),i.d(t,"_109",function(){return r.v}),i.d(t,"_110",function(){return r.r}),i.d(t,"_111",function(){return r.u}),i.d(t,"_112",function(){return r._11}),i.d(t,"_113",function(){return r.w}),i.d(t,"_114",function(){return r._2}),i.d(t,"_115",function(){return r.X}),i.d(t,"_116",function(){return r.g}),i.d(t,"_117",function(){return r.x}),i.d(t,"_118",function(){return r.z}),i.d(t,"_119",function(){return r._12}),i.d(t,"_120",function(){return r.A}),i.d(t,"_121",function(){return r.y});var s=i(24);i.d(t,"_122",function(){return s.a})},function(e,t,i){"use strict";i.d(t,"a",function(){return p});var n=i(38),r=(i.n(n),i(0)),s=(i.n(r),i(8)),a=(i.n(s),i(9)),o=(i.n(a),i(4)),l=i(3),d=i(6),h=i(1),c=i(5),u=i(2),p=function(){function e(e){this.isInteracted=!0,this.interaction=!0,this.isPasteOperation=!1,this.isColumnRefresh=!1,this.dragObj=null,this.startIndex=null,this.firstItemIndex=null,this.isSelectionUpdate=!1,this.currentSelectedItem=[],this.count=0,this.isRendered=!0,this.isLoaded=!1,this.isNameWidth=!1,this.pasteOperation=!1,this.uploadOperation=!1,n.Grid.Inject(n.Resize,n.ContextMenu,n.Sort,n.VirtualScroll),this.parent=e,this.element=i.i(r.select)("#"+this.parent.element.id+l.S,this.parent.element),this.addEventListener(),this.keyConfigs={altEnter:"alt+enter",esc:"escape",tab:"tab",moveDown:"downarrow",ctrlEnd:"ctrl+end",ctrlHome:"ctrl+home",ctrlDown:"ctrl+downarrow",ctrlLeft:"ctrl+leftarrow",ctrlRight:"ctrl+rightarrow",shiftEnd:"shift+end",shiftHome:"shift+home",shiftDown:"shift+downarrow",shiftUp:"shift+uparrow",ctrlUp:"ctrl+uparrow",csEnd:"ctrl+shift+end",csHome:"ctrl+shift+home",csDown:"ctrl+shift+downarrow",csUp:"ctrl+shift+uparrow",space:"space",ctrlSpace:"ctrl+space",shiftSpace:"shift+space",csSpace:"ctrl+shift+space",end:"end",home:"home",moveUp:"uparrow",del:"delete",ctrlX:this.parent.isMac?"cmd+x":"ctrl+x",ctrlC:this.parent.isMac?"cmd+c":"ctrl+c",ctrlV:this.parent.isMac?"cmd+v":"ctrl+v",ctrlShiftN:"ctrl+shift+n",shiftdel:"shift+delete",ctrlD:"ctrl+d",f2:"f2",ctrlA:"ctrl+a",enter:"enter"}}return e.prototype.render=function(e){if(i.i(a.showSpinner)(this.parent.element),"Details"===this.parent.view){i.i(r.removeClass)([this.parent.element],l._13);var t=i.i(h.y)(this.parent,e.files);this.checkNameWidth();var s=this.getColumns(),o=void 0;this.parent.isMobile?o=[]:"None"!==this.parent.sortOrder&&(o=[{direction:this.parent.sortOrder,field:this.parent.sortBy}]),this.gridObj=new n.Grid({dataSource:t,allowSorting:!0,rowSelecting:this.onSelection.bind(this,"select"),rowDeselecting:this.onSelection.bind(this,"unselect"),rowSelected:this.onSelected.bind(this),rowDeselected:this.onDeSelection.bind(this),allowResizing:this.parent.detailsViewSettings.columnResizing,selectionSettings:{type:this.parent.allowMultiSelection?"Multiple":"Single",checkboxMode:"ResetOnRowClick"},enableRtl:this.parent.enableRtl,pageSettings:{pageSize:20},enableVirtualization:this.parent.enableVirtualization,enablePersistence:this.parent.enablePersistence,enableVirtualMaskRow:!0,sortSettings:{allowUnsort:!1,columns:o},columns:s,recordDoubleClick:this.DblClickEvents.bind(this),beforeDataBound:this.onBeforeDataBound.bind(this),dataBound:this.onDataBound.bind(this),rowDataBound:this.onRowDataBound.bind(this),actionBegin:this.onActionBegin.bind(this),headerCellInfo:this.onHeaderCellInfo.bind(this),width:"100%",height:this.parent.enableVirtualization?this.getGridHeight():"auto",beforeCopy:function(e){e.cancel=!0},load:function(e){this.focusModule.destroy()},locale:this.parent.locale}),this.parent.isReact&&(this.gridObj.isReact=!0,this.gridObj.portals=[],this.gridObj.on("reactTemplateRender",this.reactTemplateRender,this)),this.gridObj.isStringTemplate=!0,this.gridObj.appendTo("#"+this.parent.element.id+l.S),this.wireEvents(),this.adjustHeight(),this.emptyArgs=e}},e.prototype.reactTemplateRender=function(e){this.parent.portals=e,this.parent.portals&&this.parent.toolbarModule&&this.parent.toolbarModule.toolbarObj&&this.parent.toolbarModule.toolbarObj.portals&&(this.parent.portals=this.parent.portals.concat(this.parent.toolbarModule.toolbarObj.portals)),this.parent.notify("renderReactTemplate",this.parent.portals),this.parent.renderReactTemplates()},e.prototype.getGridHeight=function(){var e=i.i(r.select)("#"+this.parent.element.id+l.y,this.parent.element),t=i.i(r.select)("#"+this.parent.element.id+l.q,this.parent.element);return e.offsetHeight-t.offsetHeight-36},e.prototype.checkNameWidth=function(){var e=this.parent.detailsViewSettings.columns;this.isNameWidth=!1;for(var t=0;t<e.length;t++)if("name"===e[t].field)return void(this.isNameWidth=!i.i(r.isNullOrUndefined)(e[t].width))},e.prototype.adjustWidth=function(e,t){if(!this.isNameWidth||"name"!==t)for(var i=0;i<e.length;i++)if(e[i].field===t){var n=void 0;n=""!==this.parent.breadcrumbbarModule.searchObj.element.value||this.parent.isFiltered?this.element.clientWidth<=680?"name"===t?"120px":"180px":"auto":this.element.clientWidth<=500?"120px":"auto",e[i].width=n}},e.prototype.getColumns=function(){var e,t=this.parent.enableHtmlSanitizer;if(this.parent.isMobile)e=[{field:"name",headerText:i.i(h.E)(this.parent,"Name"),width:"auto",minWidth:120,headerTextAlign:"Left",template:i.i(r.initializeCSPTemplate)(function(e){return'<div class="e-fe-text">'+(t?r.SanitizeHtmlHelper.sanitize(e.name):e.name)+'</div><div class="e-fe-date">'+e._fm_modified+'</div><span class="e-fe-size">'+e.size+"</span>"})}];else{e=i.i(r.extend)([],this.parent.detailsViewSettings.columns,null,!0),this.adjustWidth(e,"name");for(var n=this,s=0,a=e.length;s<a;s++)!function(s,a){if(e[s].headerText=i.i(h.E)(n.parent,e[s].headerText),"name"===e[s].field&&!i.i(r.isNullOrUndefined)(e[s].template)&&"function"!=typeof e[s].template){var o=e[s].template;e[s].template=i.i(r.initializeCSPTemplate)(function(e){var i=t?r.SanitizeHtmlHelper.sanitize(e.name):e.name;return o.replace(/\${name}/g,i)})}}(s)}var o=this.parent.isMobile||this.parent.isBigger?"54":"46",l={field:"type",width:o,minWidth:o,template:i.i(r.initializeCSPTemplate)(function(e){return'<span class="e-fe-icon '+e._fm_iconClass+'"></span>'}),allowResizing:!1,allowSorting:!0,customAttributes:{class:"e-fe-grid-icon"},headerTemplate:i.i(r.initializeCSPTemplate)(function(){return'<span class="e-fe-icon e-fe-folder"></span>'})};if(e.unshift(l),this.parent.showItemCheckBoxes){var d=this.parent.isBigger?"36":"26",c={type:"checkbox",width:d,minWidth:d,customAttributes:{class:"e-fe-checkbox"},allowResizing:!1,allowSorting:!1};this.parent.isMobile?e.push(c):e.unshift(c)}for(var s=0,a=e.length;s<a;s++)e[s].disableHtmlEncode=!this.parent.enableHtmlSanitizer;return e},e.prototype.adjustHeight=function(){if(this.gridObj){var e=i.i(r.select)("#"+this.parent.element.id+l.y,this.parent.element),t=i.i(r.select)("#"+this.parent.element.id+l.q,this.parent.element),n=i.i(r.select)("."+l.r,this.parent.element),s=e.offsetHeight-t.offsetHeight-n.offsetHeight;this.gridObj.height=s,this.gridObj.dataBind()}},e.prototype.renderCheckBox=function(){this.gridObj.columns=this.getColumns(),this.isColumnRefresh=!0,this.gridObj.refreshColumns()},e.prototype.onRowDataBound=function(e){var t=i.i(r.select)(".e-fe-grid-name",e.row);if(!t)for(var n=this.parent.detailsViewSettings.columns,s=0;s<n.length;s++)if("name"===n[s].field){t=e.row.children[this.parent.allowMultiSelection?s+2:s+1];break}if(t&&t.setAttribute("title",i.i(r.getValue)("name",e.data)),this.parent.isLayoutChange&&this.parent.isCut&&"move"===this.parent.fileAction&&this.parent.selectedNodes&&0!==this.parent.selectedNodes.length&&-1!==this.parent.selectedNodes.indexOf(i.i(r.getValue)("name",e.data))&&i.i(u.s)(e.row),!this.parent.showFileExtension&&i.i(r.getValue)("isFile",e.data)){var a=e.row.querySelector(".e-fe-text");if(a){var o=i.i(r.getValue)("name",e.data),d=i.i(r.getValue)("type",e.data);a.innerHTML=o.substr(0,o.length-d.length)}}if(void 0!==i.i(r.getValue)("size",e.data)&&e.row.querySelector(".e-fe-size")){var c=e.row.querySelector(".e-fe-size"),p=void 0;if(i.i(r.getValue)("isFile",e.data)){for(var f=i.i(r.getValue)("size",e.data),g=new r.Internationalization(this.parent.locale),m=void 0,n=this.parent.detailsViewSettings.columns,s=0;s<n.length;s++)if("size"===n[s].field){m=i.i(r.isNullOrUndefined)(n[s].format)?"n":n[s].format.toString();break}p=g.formatNumber(f/1024,{format:m})+" "+i.i(h.E)(this.parent,"KB")}else p="";c.innerHTML=p}if(this.parent.isMobile&&void 0!==i.i(r.getValue)("_fm_modified",e.data)&&e.row.querySelector(".e-fe-date")){for(var b=e.row.querySelector(".e-fe-date"),g=new r.Internationalization(this.parent.locale),n=this.parent.detailsViewSettings.columns,v=void 0,s=0;s<n.length;s++)if("dateModified"===n[s].field){v=n[s].format;break}var y=g.formatDate(new Date(i.i(r.getValue)("_fm_modified",e.data)),v);b.innerHTML=y}var _=e.row.querySelector("."+l._17);_&&_.classList.add("e-small"),i.i(u._19)(e.data)||(e.row.className+=" "+i.i(u._17)(e.data));var I={element:e.row,fileDetails:e.data,module:"DetailsView"};this.parent.trigger("fileLoad",I)},e.prototype.onActionBegin=function(e){if("sorting"===e.requestType){if(this.parent.setProperties({sortOrder:e.direction},!0),this.parent.setProperties({sortBy:e.columnName},!0),0!==this.parent.selectedItems.length){this.sortItem=!0;var t=this.gridObj.getSelectedRowIndexes(),n=t.length;for(this.sortSelectedNodes=[];n>0;){var s=this.gridObj.getRowsObject()[t[n-1]].data;this.sortSelectedNodes.push(i.i(r.getValue)(this.parent.hasId?"id":"name",s)),n--}}this.parent.notify(o.l,{})}},e.prototype.onHeaderCellInfo=function(e){var t=e.node.querySelector("."+l._17);t&&t.classList.add("e-small")},e.prototype.onBeforeDataBound=function(e){var t=this;i.i(a.showSpinner)(this.parent.element);var n=this.parent.detailsViewSettings.columns.find(function(e){return e.field===t.parent.sortBy});if(n&&!("sortComparer"in n)){var r=i.i(h.y)(this.parent,this.parent.enableVirtualization?e.result:this.gridObj.dataSource);e.result=r}},e.prototype.onDataBound=function(){if(this.createDragObj(),(0!==this.parent.selectedItems.length&&!this.parent.enableVirtualization||0!==this.parent.selectedItems.length&&this.parent.enableVirtualization&&0==this.element.querySelector(".e-content").scrollTop)&&this.selectRecords(this.parent.selectedItems),!0===this.isPasteOperation&&(this.isColumnRefresh?this.isColumnRefresh=!1:(this.selectRecords(this.parent.pasteNodes),this.isPasteOperation=!1)),this.parent.createdItem&&(this.selectRecords([i.i(r.getValue)(this.parent.hasId?"id":"name",this.parent.createdItem)]),this.parent.createdItem=null),this.parent.layoutSelectedItems.length&&this.selectRecords(this.parent.layoutSelectedItems),this.parent.renamedItem&&(this.addSelection(this.parent.renamedItem),this.parent.renamedItem=null),!0===this.sortItem&&(this.selectRecords(this.sortSelectedNodes),this.sortItem=!1),this.isSelectionUpdate&&(this.isColumnRefresh?this.isColumnRefresh=!1:(this.selectRecords(this.currentSelectedItem),this.isSelectionUpdate=!1)),!0===this.uploadOperation&&(this.count++,this.selectRecords(this.parent.uploadItem),this.count===this.parent.uploadItem.length&&(this.uploadOperation=!1,this.parent.uploadItem=[])),this.gridObj.currentViewData.length*this.gridObj.getRowHeight()<this.gridObj.height){var e=this.gridObj.getHeaderContent();e.style.paddingRight="",e.style.paddingLeft="";i.i(r.select)(".e-headercontent",e).style.borderRightWidth="0";var t=this.gridObj.getContent().querySelector(".e-content");t.style.overflowY="",t.classList.add("e-scrollShow")}else{var e=this.gridObj.getHeaderContent();this.parent.enableRtl?e.style.paddingLeft="16px":e.style.paddingRight="16px";var t=this.gridObj.getContent().querySelector(".e-content");t.classList.remove("e-scrollShow")}this.isRendered=!0,this.parent.isLayoutChange=!1,i.i(a.hideSpinner)(this.parent.element),this.checkEmptyDiv(this.emptyArgs),this.isInteracted=!!this.isLoaded||this.isInteracted,this.isLoaded=!1},e.prototype.selectRecords=function(e){for(var t=this.gridObj.getCurrentViewRecords(),n=[],s=0,a=t.length;s<a;s++){var o=this.parent.hasId?i.i(r.getValue)("id",t[s]):i.i(u.G)(this.parent,t[s]);if(-1!==e.indexOf(o))n.push(s);else if(!this.parent.showFileExtension&&o.includes(".")){var l=o.split(".").slice(0,-1).join(".");-1!==e.indexOf(l)&&n.push(s)}}0!==n.length&&(this.gridObj.selectRows(n),this.addFocus(this.gridObj.selectedRowIndex))},e.prototype.addSelection=function(e){var t=this.gridObj.getCurrentViewRecords(),n=[];if(this.parent.hasId)n=new s.DataManager(t).executeLocal((new s.Query).where("id","equal",this.parent.renamedId,!1));else{var a=new s.DataManager(t).executeLocal((new s.Query).where("name","equal",i.i(r.getValue)("name",e),!1));a.length>0&&(n=new s.DataManager(a).executeLocal((new s.Query).where("filterPath","equal",this.parent.filterPath,!1)))}if(n.length>0){var o=t.indexOf(n[0]);this.gridObj.selectRows([o])}},e.prototype.onSortColumn=function(){"None"!==this.parent.sortOrder?this.gridObj.sortModule.sortColumn(this.parent.sortBy,this.parent.sortOrder):this.gridObj.dataSource=i.i(h.y)(this.parent,this.gridObj.dataSource),0!==this.element.querySelector(".e-content").scrollTop&&this.gridObj.freezeRefresh()},e.prototype.onPropertyChanged=function(e){if(e.module===this.getModuleName()||"common"===e.module)for(var t=0,n=Object.keys(e.newProp);t<n.length;t++){var s=n[t];switch(s){case"allowDragAndDrop":this.createDragObj();break;case"height":this.adjustHeight();break;case"detailsViewSettings":if(!i.i(r.isNullOrUndefined)(this.gridObj)){this.checkNameWidth();var a=this.getColumns();this.gridObj.columns=a,this.gridObj.allowResizing=this.parent.detailsViewSettings.columnResizing,this.gridObj.dataBind(),this.gridObj.refreshColumns()}break;case"selectedItems":if(this.interaction=!1,0!==this.parent.selectedItems.length){if(!this.parent.allowMultiSelection){var l=this.parent.selectedItems.slice(this.parent.selectedItems.length-1);this.parent.setProperties({selectedItems:l},!0)}this.selectRecords(this.parent.selectedItems),this.parent.setProperties({selectedItems:this.parent.selectedItems},!0)}else i.i(r.isNullOrUndefined)(this.gridObj)||(this.gridObj.clearSelection(),this.interaction=!0);break;case"showFileExtension":case"showHiddenItems":i.i(c.a)(this.parent,o.K,this.parent.path);break;case"allowMultiSelection":i.i(r.isNullOrUndefined)(this.gridObj)||(this.currentSelectedItem=this.parent.selectedItems,this.gridObj.selectionSettings.type=e.newProp.allowMultiSelection?"Multiple":"Single",this.isSelectionUpdate=!0,this.renderCheckBox());break;case"view":i.i(h.n)(this.parent,"Details");break;case"width":this.onDetailsResize()}}},e.prototype.onPathChanged=function(e){this.parent.isCut=!1,""===this.parent.breadcrumbbarModule.searchObj.element.value.trim()&&this.gridObj&&(this.parent.searchedItems=[],this.parent.isFiltered?this.updatePathColumn():this.removePathColumn(!1)),i.i(h.k)(this.parent),"Details"===this.parent.view&&(this.isInteracted=!1,i.i(a.showSpinner)(this.parent.element),this.parent.setProperties({selectedItems:[]},!0),this.gridObj.dataSource=i.i(h.y)(this.parent,e.files),this.gridObj.freezeRefresh(),this.parent.isReact&&this.gridObj.on("reactTemplateRender",this.reactTemplateRender,this)),this.emptyArgs=e},e.prototype.updatePathColumn=function(){var e=this.gridObj.columns.length,t=JSON.parse(JSON.stringify(this.gridObj.columns));if(t[e-1].field&&"filterPath"!==t[e-1].field&&!this.parent.isMobile){var n={field:"filterPath",headerText:i.i(h.E)(this.parent,"Path"),minWidth:180,width:"auto"};this.gridObj.columns.push(n),this.adjustWidth(this.gridObj.columns,"filterPath"),this.adjustWidth(this.gridObj.columns,"name"),this.isColumnRefresh=!0,this.gridObj.refreshColumns()}},e.prototype.checkEmptyDiv=function(e){var t=i.i(h.y)(this.parent,e.files);if(0!==t.length||i.i(r.isNullOrUndefined)(this.element.querySelector("."+l.w))){if(0!==t.length&&this.element.querySelector("."+l.s))if(this.element.querySelector("."+l.w).querySelector("."+l.s)){var n=this.element.querySelector("."+l.w).querySelector("."+l.s);this.element.querySelector("."+l.w).removeChild(n)}else this.element.removeChild(this.element.querySelector("."+l.s))}else i.i(h.A)(this.parent,this.element,e)},e.prototype.onOpenInit=function(){if("detailsview"===this.parent.activeModule){var e=this.gridObj.getSelectedRecords()[0];this.openContent(e)}},e.prototype.DblClickEvents=function(e){this.gridObj.selectRows([e.rowIndex]);var t;e.rowData&&(t=JSON.parse(JSON.stringify(e.rowData)),this.openContent(t))},e.prototype.openContent=function(e){var t=this;if(!i.i(u._18)(e))return void i.i(u._16)(this.parent,e,o.g);var n={cancel:!1,fileDetails:e,module:"DetailsView"};this.parent.trigger("fileOpen",n,function(n){if(!n.cancel){var s=i.i(r.getValue)("name",e);if(i.i(r.getValue)("isFile",e)){if(i.i(h.u)(e)===l.m){var a=i.i(h.v)(t.parent,e);i.i(d.c)(t.parent,s,a)}}else{if(""!==t.parent.breadcrumbbarModule.searchObj.element.value||t.parent.isFiltered)i.i(u.S)(t.parent,e);else{var o=i.i(r.getValue)("id",e);t.parent.oldPath=t.parent.path;var c=t.parent.path+(i.i(r.isNullOrUndefined)(o)?s:o)+"/";t.parent.setProperties({path:c},!0),t.parent.pathNames.push(s),t.parent.pathId.push(i.i(r.getValue)("_fm_id",e)),t.parent.itemData=[e],i.i(h.q)(t.parent)}t.parent.isFiltered=!1}t.element.focus(),t.parent.enableVirtualization&&t.parent.element.querySelector("#"+t.parent.element.id+l.I).focus()}})},e.prototype.onLayoutChange=function(e){"Details"===this.parent.view&&(this.parent.enableVirtualization&&this.parent.setProperties({selectedItems:[]},!0),this.gridObj?this.isLoaded=!0:this.render(e),this.parent.isFiltered&&(this.updatePathColumn(),this.parent.setProperties({selectedItems:[]},!0)),this.gridObj.dataSource=i.i(h.y)(this.parent,e.files),this.parent.notify(o.W,{}),this.gridObj.element.classList.remove(l._10),this.isInteracted=!1,this.gridObj.clearSelection(),""!==this.parent.breadcrumbbarModule.searchObj.element.value.trim()&&this.onSearchFiles(e),this.adjustHeight(),this.gridObj.sortSettings.columns.length>0&&this.gridObj.sortSettings.columns[0].field!==this.parent.sortBy&&"None"!==this.parent.sortOrder&&this.gridObj.sortColumn(this.parent.sortBy,this.parent.sortOrder))},e.prototype.onSearchFiles=function(e){"Details"===this.parent.view&&(this.parent.setProperties({selectedItems:[]},!0),this.parent.notify(o.H,{}),this.parent.isLayoutChange||(this.parent.layoutSelectedItems=[]),this.updatePathColumn(),this.parent.searchedItems=e.files,this.onPathChanged(e))},e.prototype.removePathColumn=function(e){var t=this.gridObj.columns.length,n=JSON.parse(JSON.stringify(this.gridObj.columns));n[t-1].field&&"filterPath"===n[t-1].field&&(i.i(r.isNullOrUndefined)(this.gridObj.sortSettings.columns[0])||"filterPath"!==this.gridObj.sortSettings.columns[0].field||("None"!==this.parent.sortOrder?this.gridObj.sortColumn("name",this.parent.sortOrder):this.gridObj.dataSource=i.i(h.y)(this.parent,this.gridObj.dataSource),this.parent.notify(o.l,{})),this.gridObj.columns.pop(),e||(this.isColumnRefresh=!0,this.gridObj.refreshColumns()))},e.prototype.onFinalizeEnd=function(e){"Details"===this.parent.view&&(this.gridObj?this.onPathChanged(e):this.render(e))},e.prototype.onCreateEnd=function(e){"Details"===this.parent.view&&this.onPathChanged(e)},e.prototype.onRenameInit=function(){"detailsview"===this.parent.activeModule&&1===this.parent.selectedItems.length&&this.updateRenameData()},e.prototype.onSelectedData=function(){"detailsview"===this.parent.activeModule&&(this.parent.itemData=this.gridObj.getSelectedRecords())},e.prototype.onDeleteInit=function(){"detailsview"===this.parent.activeModule&&i.i(c.f)(this.parent,this.parent.selectedItems,this.parent.path,"delete")},e.prototype.onDeleteEnd=function(e){"Details"===this.parent.view&&(this.onPathChanged(e),this.parent.setProperties({selectedItems:[]},!0))},e.prototype.onRefreshEnd=function(e){"Details"===this.parent.view&&(this.isInteracted=!1,this.removePathColumn(!1),this.gridObj.dataSource=i.i(h.y)(this.parent,e.files),this.emptyArgs=e)},e.prototype.onHideLayout=function(){"Details"!==this.parent.view&&this.gridObj&&this.gridObj.element.classList.add(l._10)},e.prototype.onSelectAllInit=function(){"Details"===this.parent.view&&(this.isInteracted=!1,this.parent.allowMultiSelection?this.gridObj.selectionModule.selectRowsByRange(0,this.gridObj.getRows().length):this.gridObj.selectRow(this.gridObj.getRows().length-1),this.isInteracted=!0,this.interaction=!0)},e.prototype.onClearAllInit=function(){"Details"===this.parent.view&&(this.removeSelection(),this.interaction=!0)},e.prototype.onSelectionChanged=function(){i.i(r.removeClass)([this.element],l._18),this.parent.selectedItems.length>0&&i.i(r.addClass)([this.element],l._18)},e.prototype.onLayoutRefresh=function(){"Details"===this.parent.view&&this.adjustHeight()},e.prototype.onBeforeRequest=function(){this.isRendered=!1},e.prototype.onAfterRequest=function(){this.isRendered=!0},e.prototype.onUpdateSelectionData=function(){"Details"===this.parent.view&&(this.parent.itemData=this.gridObj.getSelectedRecords())},e.prototype.addEventListener=function(){this.parent.on(o.m,this.onFinalizeEnd,this),this.parent.on(o.U,this.destroy,this),this.parent.on(o.e,this.onLayoutChange,this),this.parent.on(o.K,this.onPathChanged,this),this.parent.on(o.I,this.onCreateEnd,this),this.parent.on(o.v,this.onDropInit,this),this.parent.on(o.T,this.onDetailsInit,this),this.parent.on(o.h,this.onRefreshEnd,this),this.parent.on(o.f,this.onSearchFiles,this),this.parent.on(o.X,this.onMethodCall,this),this.parent.on(o.B,this.onActionFailure,this),this.parent.on(o.V,this.onPropertyChanged,this),this.parent.on(o.D,this.onDeleteInit,this),this.parent.on(o.M,this.onDeleteEnd,this),this.parent.on(o.O,this.onSelectedData,this),this.parent.on(o.Q,this.onRenameInit,this),this.parent.on(o.L,this.onPathChanged,this),this.parent.on(o.S,this.onOpenInit,this),this.parent.on(o.k,this.onSortColumn,this),this.parent.on(o.i,this.onPathChanged,this),this.parent.on(o._3,this.onPathChanged,this),this.parent.on(o.p,this.onPasteInit,this),this.parent.on(o.W,this.onHideLayout,this),this.parent.on(o.R,this.onSelectAllInit,this),this.parent.on(o.Y,this.onClearAllInit,this),this.parent.on(o.d,this.onPathColumn,this),this.parent.on(o.H,this.onSelectionChanged,this),this.parent.on(o.E,this.onBeforeRequest,this),this.parent.on(o.F,this.onAfterRequest,this),this.parent.on(o.s,this.onpasteEnd,this),this.parent.on(o.b,this.oncutCopyInit,this),this.parent.on(o.N,this.onMenuItemData,this),this.parent.on(o._0,this.onDetailsResizeHandler,this),this.parent.on(o.Z,this.onDetailsResize,this),this.parent.on(o._1,this.onLayoutRefresh,this),this.parent.on(o.u,this.onDropPath,this),this.parent.on(o._2,this.onUpdateSelectionData,this)},e.prototype.removeEventListener=function(){this.parent.off(o.m,this.onFinalizeEnd),this.parent.off(o.U,this.destroy),this.parent.off(o.e,this.onLayoutChange),this.parent.off(o.K,this.onPathChanged),this.parent.off(o.p,this.onPasteInit),this.parent.off(o.I,this.onCreateEnd),this.parent.off(o.h,this.onRefreshEnd),this.parent.off(o.f,this.onSearchFiles),this.parent.off(o.X,this.onMethodCall),this.parent.off(o.B,this.onActionFailure),this.parent.off(o.V,this.onPropertyChanged),this.parent.off(o.Q,this.onRenameInit),this.parent.off(o.L,this.onPathChanged),this.parent.off(o._3,this.onPathChanged),this.parent.off(o.S,this.onOpenInit),this.parent.off(o.k,this.onSortColumn),this.parent.off(o.i,this.onPathChanged),this.parent.off(o.W,this.onHideLayout),this.parent.off(o.R,this.onSelectAllInit),this.parent.off(o.Y,this.onClearAllInit),this.parent.off(o.D,this.onDeleteInit),this.parent.off(o.M,this.onDeleteEnd),this.parent.off(o.d,this.onPathColumn),this.parent.off(o.H,this.onSelectionChanged),this.parent.off(o.E,this.onBeforeRequest),this.parent.off(o.F,this.onAfterRequest),this.parent.off(o.s,this.onpasteEnd),this.parent.off(o.b,this.oncutCopyInit),this.parent.off(o.v,this.onDropInit),this.parent.off(o.O,this.onSelectedData),this.parent.off(o.T,this.onDetailsInit),this.parent.off(o.N,this.onMenuItemData),this.parent.off(o._0,this.onDetailsResizeHandler),this.parent.off(o.Z,this.onDetailsResize),this.parent.off(o._1,this.onLayoutRefresh),this.parent.off(o.u,this.onDropPath),this.parent.off(o._2,this.onUpdateSelectionData)},e.prototype.onActionFailure=function(){this.interaction=!0},e.prototype.onMenuItemData=function(e){this.parent.activeModule===this.getModuleName()&&(this.parent.itemData=[this.gridObj.getRowInfo(e.target).rowData])},e.prototype.onPasteInit=function(){this.parent.activeModule===this.getModuleName()&&(this.parent.itemData=""!==this.parent.folderPath?this.gridObj.getSelectedRecords():[i.i(u.A)(this.parent)])},e.prototype.onDetailsInit=function(){this.parent.activeModule===this.getModuleName()&&(0!==this.parent.selectedItems.length?this.parent.itemData=this.gridObj.getSelectedRecords():this.parent.itemData=[i.i(r.getValue)(this.parent.pathId[this.parent.pathId.length-1],this.parent.feParent)])},e.prototype.dragHelper=function(e){var t=e.sender.target,n=t.closest("tr.e-row");if(!n)return null;var r;n.getElementsByClassName("e-fe-text")[0]?r=this.parent.hasId?this.gridObj.getRowInfo(n).rowData.id:n.getElementsByClassName("e-fe-text")[0].innerText:n.getElementsByClassName("e-rowcell e-templatecell")[0].nextElementSibling&&(r=this.parent.hasId?this.gridObj.getRowInfo(n).rowData.id:n.getElementsByClassName("e-rowcell e-templatecell")[0].nextElementSibling.innerText),n&&!n.querySelector(".e-active")&&this.selectRecords([r]),i.i(u.u)(this.parent,n),this.parent.activeElements=[],this.parent.dragData=[],this.parent.dragData=this.gridObj.getSelectedRecords();var s;return 0===this.parent.dragData.length&&n&&(s=this.gridObj.getRowInfo(n)),s&&this.parent.dragData.push(s.rowData),this.parent.dragPath=this.parent.path,this.parent.activeElements=this.gridObj.getSelectedRows(),i.i(u._1)(this.parent),this.parent.virtualDragElement},e.prototype.onDetailsResize=function(){if("Details"===this.parent.view&&!this.parent.isMobile&&!i.i(r.isNullOrUndefined)(this.gridObj))for(var e=this.gridObj.getHeaderContent().querySelector(".e-headercontent"),t=e.firstChild.childNodes[0],n=this.gridObj.getContent().querySelector(".e-content .e-table").children[0],s=this.gridObj.getColumns(),a=0;a<s.length;a++)(!this.isNameWidth&&"name"===s[a].field||"filterPath"===s[a].field)&&(""!==this.parent.breadcrumbbarModule.searchObj.element.value||this.parent.isFiltered?this.element.clientWidth<=680?"name"===s[a].field?(t.children[a].setAttribute("style","width: 120px"),n.children[a].setAttribute("style","width: 120px")):(t.children[a].setAttribute("style","width: 180px"),n.children[a].setAttribute("style","width: 180px")):this.element.clientWidth>680&&(t.children[a].setAttribute("style","width: auto"),n.children[a].setAttribute("style","width: auto")):this.element.clientWidth<=500?(t.children[a].setAttribute("style","width: 120px"),n.children[a].setAttribute("style","width: 120px")):this.element.clientWidth>500&&(t.children[a].setAttribute("style","width: auto"),n.children[a].setAttribute("style","width: auto")))},e.prototype.onDetailsResizeHandler=function(){this.onDetailsResize(),"Details"!==this.parent.view||this.parent.isMobile||i.i(r.isNullOrUndefined)(this.gridObj)||this.adjustHeight()},e.prototype.createDragObj=function(){var e=this;this.gridObj&&(this.parent.allowDragAndDrop?(this.dragObj&&this.dragObj.destroy(),this.dragObj=new r.Draggable(this.gridObj.element,{cursorAt:this.parent.dragCursorPosition,distance:5,enableTailMode:!0,dragArea:this.parent.element,dragTarget:"."+l.f,drag:u._8.bind(this,this.parent),dragStart:function(t){i.i(u._3)(e.parent,t,e.dragObj)},dragStop:u._2.bind(this,this.parent),enableAutoScroll:!1,helper:this.dragHelper.bind(this)})):!this.parent.allowDragAndDrop&&this.dragObj&&this.dragObj.destroy())},e.prototype.onDropInit=function(e){if(this.parent.targetModule===this.getModuleName()){var t=i.i(r.getValue)(this.parent.pathId[this.parent.pathId.length-1],this.parent.feParent);if(e.target.closest("tr")){var n=null;n=this.gridObj.getRowInfo(e.target).rowData,this.parent.dropPath=n.isFile?this.parent.path:i.i(u.F)(this.parent,n,this.parent.path),this.parent.dropData=n.isFile?t:n}else this.parent.dropPath=this.parent.path,this.parent.dropData=t}},e.prototype.oncutCopyInit=function(){this.parent.activeModule===this.getModuleName()&&(this.parent.activeRecords=this.gridObj.getSelectedRecords(),this.parent.activeElements=this.gridObj.getSelectedRows())},e.prototype.onpasteEnd=function(e){"Details"===this.parent.view&&(this.isPasteOperation=!0,this.parent.path!==this.parent.destinationPath&&this.parent.path!==i.i(u.X)(this.parent,e)||this.onPathChanged(e))},e.prototype.onDropPath=function(e){"Details"===this.parent.view&&(this.isPasteOperation=!0,this.onPathChanged(e))},e.prototype.getModuleName=function(){return"detailsview"},e.prototype.destroy=function(){this.parent.isDestroyed||(this.removeEventListener(),this.gridObj&&(this.parent.isReact&&this.gridObj.off("reactTemplateRender",this.reactTemplateRender),this.unWireEvents(),this.gridObj.destroy()))},e.prototype.updateType=function(e){var t=i.i(r.select)("."+l.l,e);this.parent.isFile=!!i.i(r.isNullOrUndefined)(t)},e.prototype.onSelection=function(e,t){var i={action:e,fileDetails:t.data,isInteracted:this.interaction,cancel:!1,target:t.target};this.parent.trigger("fileSelection",i),t.cancel=i.cancel},e.prototype.onSelected=function(e){this.parent.activeModule="detailsview",this.parent.isLayoutChange&&!this.parent.isFiltered||this.selectedRecords(),this.parent.notify(o.H,{}),1===this.gridObj.getSelectedRowIndexes().length&&(this.firstItemIndex=this.gridObj.selectedRowIndex),this.gridObj.element.setAttribute("tabindex","-1"),this.triggerSelect("select",e);var t=this.gridObj.getRowByIndex(this.gridObj.selectedRowIndex);if(this.updateType(t),!i.i(r.isNullOrUndefined)(t)&&!i.i(r.isNullOrUndefined)(t.querySelector(".e-checkselect"))){if(1!==this.gridObj.getSelectedRowIndexes().length){var n=this.gridObj.getSelectedRowIndexes()[this.gridObj.getSelectedRowIndexes().length-2];this.gridObj.getRowByIndex(n).querySelector(".e-checkselect").setAttribute("tabindex","-1")}t.querySelector(".e-rowcell.e-fe-checkbox").removeAttribute("tabindex")}i.i(r.isNullOrUndefined)(this.gridObj)||i.i(r.isNullOrUndefined)(this.gridObj.element.querySelector(".e-checkselectall"))||this.gridObj.element.querySelector(".e-checkselectall").setAttribute("tabindex","-1");var s=this.gridObj.getSelectedRowIndexes();if(!this.parent.allowMultiSelection)for(var a=0;a<s.length;a++)s[a]===this.gridObj.selectedRowIndex?this.gridObj.getRowByIndex(s[a]).setAttribute("tabindex","0"):this.gridObj.getRowByIndex(s[a]).removeAttribute("tabindex");var l=s.length;if(this.parent.enableVirtualization)this.parent.currentItemText=i.i(r.getValue)("name",e.data);else if(l>0){var d=this.gridObj.getRowsObject()[s[l-1]].data;this.parent.currentItemText=i.i(r.getValue)("name",d)}var h=i.i(r.getValue)("rowIndexes",e),c=i.i(r.getValue)("enableSelectMultiTouch",this.gridObj.selectionModule);this.parent.isDevice&&i.i(r.isNullOrUndefined)(h)&&e.target&&!c&&!e.target.closest(".e-headercell")&&(this.parent.isFile=i.i(r.getValue)("isFile",e.data),this.parent.isFile||this.openContent(e.data)),this.parent.visitedItem=e.row,this.parent.enableVirtualization&&e.isHeaderCheckboxClicked||this.addFocus(this.gridObj.selectedRowIndex),this.parent.isLayoutChange||(this.isInteracted=!0)},e.prototype.onPathColumn=function(){"Details"!==this.parent.view||i.i(r.isNullOrUndefined)(this.gridObj)||""!==this.parent.breadcrumbbarModule.searchObj.element.value||this.parent.isFiltered||this.removePathColumn(!1)},e.prototype.selectedRecords=function(){this.parent.setProperties({selectedItems:[]},!0);for(var e=this.gridSelectNodes(),t=0;t<e.length;){var n=e[t],r=i.i(u._10)(this.parent,n);this.parent.selectedItems.push(r),t++}this.parent.setProperties({selectedItems:this.parent.selectedItems},!0)},e.prototype.onDeSelection=function(e){if(!this.parent.allowMultiSelection&&i.i(r.isNullOrUndefined)(e.data))this.gridObj.getRowByIndex(e.rowIndex).removeAttribute("tabindex");else if(this.gridObj.getSelectedRowIndexes().length>1){var t=this.gridObj.getSelectedRowIndexes()[this.gridObj.getSelectedRowIndexes().length-2];this.gridObj.getRowByIndex(t).querySelector(".e-checkselect").removeAttribute("tabindex")}if(-1===this.gridObj.selectedRowIndex&&this.gridObj.element.setAttribute("tabindex","0"),!this.isInteracted)return void(this.isInteracted=!0);this.selectedRecords(),0===this.parent.selectedItems.length&&(i.i(r.setValue)("enableSelectMultiTouch",!1,this.gridObj.selectionModule),i.i(r.removeClass)([this.parent.element],l._13)),this.parent.notify(o.H,{}),this.triggerSelect("unselect",e),this.parent.visitedItem=null},e.prototype.triggerSelect=function(e,t){var i={action:e,fileDetails:t.data,isInteracted:this.interaction};this.parent.trigger("fileSelect",i),this.interaction=!0},e.prototype.wireEvents=function(){this.wireClickEvent(!0),this.keyboardModule=new r.KeyboardEvents(this.gridObj.element,{keyAction:this.keyupHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keyup"}),this.keyboardDownModule=new r.KeyboardEvents(this.element,{keyAction:this.keydownHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"}),r.EventHandler.add(this.gridObj.element,"blur",this.removeFocus,this),r.EventHandler.add(this.parent.element,"focusout",this.onBlur,this)},e.prototype.unWireEvents=function(){this.wireClickEvent(!1),this.keyboardModule.destroy(),this.keyboardDownModule.destroy(),r.EventHandler.remove(this.gridObj.element,"blur",this.removeFocus),r.EventHandler.remove(this.parent.element,"focusout",this.onBlur)},e.prototype.wireClickEvent=function(e){if(e){var t=this,n=this.gridObj.getContent();this.clickObj=new r.Touch(n,{tap:function(e){1===e.tapCount&&e.originalEvent.target.classList.contains("e-content")&&t.onClearAllInit()},tapHold:function(e){if(t.parent.isDevice){e.originalEvent.preventDefault(),t.parent.allowMultiSelection&&(i.i(r.setValue)("enableSelectMultiTouch",t.parent.allowMultiSelection,t.gridObj.selectionModule),i.i(r.addClass)([t.parent.element],l._13));var n=e.originalEvent.target;if(n){var s=i.i(r.closest)(n,"."+l.f),a=t.gridObj.getRows().indexOf(s);t.gridObj.selectRow(a)}}}})}else this.clickObj&&this.clickObj.destroy()},e.prototype.removeSelection=function(){i.i(r.removeClass)([this.parent.element],l._13),this.gridObj.clearSelection(),this.parent.setProperties({selectedItems:[]},!0),this.parent.notify(o.H,{}),-1===this.gridObj.selectedRowIndex&&(this.startIndex=null),this.isInteracted=!0},e.prototype.removeFocus=function(){this.addFocus(null)},e.prototype.onBlur=function(e){if((null===e.relatedTarget||i.i(r.closest)(e.relatedTarget,".e-grid")===e.relatedTarget)&&!i.i(r.isNullOrUndefined)(this.gridObj.element))for(var t=this.gridObj.element.querySelectorAll("th"),n=0;n<t.length;n++)t[n].classList.contains("e-focus")&&this.addFocus(null)},e.prototype.getFocusedItemIndex=function(){return i.i(r.isNullOrUndefined)(this.getFocusedItem())?null:parseInt(this.getFocusedItem().getAttribute("data-rowindex"),10)},e.prototype.keydownHandler=function(e){if(this.isRendered)switch(e.action){case"end":case"home":case"space":case"ctrlSpace":case"shiftSpace":case"csSpace":case"ctrlA":case"enter":case"altEnter":case"ctrlEnd":case"shiftEnd":case"csEnd":case"ctrlHome":case"shiftHome":case"csHome":case"ctrlDown":case"shiftDown":case"csDown":case"ctrlLeft":case"shiftLeft":case"csLeft":case"esc":case"del":case"shiftdel":case"ctrlC":case"ctrlV":case"ctrlX":case"f2":case"moveDown":case"moveUp":case"ctrlD":e.preventDefault()}},e.prototype.keyupHandler=function(e){if(this.isRendered){e.preventDefault();var t,n,s,a=e.action,l=i.i(h.y)(this.parent,this.gridObj.dataSource),d=l.length,p=(this.getFocusedItem(),this.getFocusedItemIndex()),f=this.gridObj.selectedRowIndex,g=this.gridObj.getSelectedRowIndexes();switch(a){case"altEnter":this.parent.notify(o.T,{}),i.i(c.g)(this.parent,this.parent.selectedItems,this.parent.path,"details");break;case"esc":i.i(u.q)(this.parent);break;case"del":case"shiftdel":this.performDelete();break;case"enter":if(-1===this.gridObj.selectedRowIndex&&!0===this.gridObj.allowSorting){if(!e.target.classList.contains("e-fe-grid-icon")){var m=e.target.getElementsByClassName("e-ascending").length?"Descending":"Ascending",b=this.gridObj.getColumnByUid(e.target.querySelector(".e-headercelldiv").getAttribute("e-mappinguid")).field;this.gridObj.sortColumn(b,m),i.i(r.isNullOrUndefined)(this.getFocusedItem().nextSibling)||this.getFocusedItem().nextSibling.setAttribute("tabindex","0")}break}if(t=this.gridObj.getRowsObject()[this.gridObj.selectedRowIndex].data){var v=JSON.parse(JSON.stringify(t));this.openContent(v)}break;case"ctrlC":i.i(u.B)(this.parent);break;case"ctrlV":this.parent.folderPath="",i.i(u.T)(this.parent);break;case"ctrlX":i.i(u.C)(this.parent);break;case"ctrlD":this.doDownload();break;case"f2":this.performRename();break;case"ctrlA":if(!i.i(r.isNullOrUndefined)(l[0])&&this.parent.allowMultiSelection){var y=this.gridObj.getContent().querySelector(".e-content"),_=y.scrollTop,I=this.gridObj.selectedRowIndex;this.gridObj.selectionModule.selectRowsByRange(0,l.length-1),y.scrollTop=_,-1!==I&&this.addFocus(I)}break;case"ctrlHome":case"tab":if(!i.i(r.isNullOrUndefined)(l[0]))if(this.parent.allowMultiSelection||"ctrlHome"!==e.action){if(-1!==this.gridObj.selectedRowIndex&&"tab"===e.action)return;this.addHeaderFocus(e)}else this.gridObj.selectRow(0);break;case"ctrlEnd":i.i(r.isNullOrUndefined)(l[0])||(this.parent.allowMultiSelection?this.addFocus(d-1):this.gridObj.selectRow(d-1));break;case"shiftHome":case"shiftEnd":case"csHome":case"csEnd":this.parent.allowMultiSelection?i.i(r.isNullOrUndefined)(l[0])||(i.i(r.isNullOrUndefined)(f)||-1===f?"csHome"===e.action||"shiftHome"===e.action?this.gridObj.selectRow(0):this.gridObj.selectionModule.selectRowsByRange(0,l.length-1):this.checkRowsKey(l,f,null,e)):this.gridObj.selectRow("shiftHome"===e.action||"csHome"===e.action?0:l.length-1);break;case"space":case"csSpace":case"shiftSpace":case"ctrlSpace":this.spaceSelection(g,p,f,e);break;case"csUp":case"csDown":case"shiftUp":case"shiftDown":this.shiftMoveMethod(l,f,p,g,e);break;case"ctrlUp":case"ctrlDown":this.parent.allowMultiSelection?this.ctrlMoveFunction(l,e,f):this.moveFunction(l,e,f);break;case"home":n=[i.i(r.getValue)(this.parent.hasId?"id":"name",l[0])],this.parent.setProperties({selectedItems:n},!0),this.selectRecords(n);break;case"moveUp":case"moveDown":this.moveFunction(l,e,f);break;case"end":s=[i.i(r.getValue)(this.parent.hasId?"id":"name",l[d-1])],this.parent.setProperties({selectedItems:s},!0),this.selectRecords(s)}}},e.prototype.gridSelectNodes=function(){return this.gridObj.getSelectedRecords()},e.prototype.doDownload=function(){if(0!==this.parent.selectedItems.length){this.parent.itemData=this.gridObj.getSelectedRecords();for(var e=this.parent.itemData,t=0;t<e.length;t++)if(!i.i(u._22)(e[t]))return void i.i(u._16)(this.parent,e[t],o.y);i.i(c.i)(this.parent,this.parent.path,this.parent.selectedItems)}},e.prototype.performDelete=function(){if(this.parent.selectedItems&&this.parent.selectedItems.length>0){this.parent.itemData=this.gridObj.getSelectedRecords();for(var e=this.parent.itemData,t=0;t<e.length;t++)if(!i.i(u._19)(e[t]))return void i.i(u._16)(this.parent,e[t],o.x);i.i(d.a)(this.parent,"Delete")}},e.prototype.performRename=function(){1===this.parent.selectedItems.length&&(this.updateRenameData(),i.i(u._12)(this.parent))},e.prototype.updateRenameData=function(){var e=this.gridSelectNodes()[0];i.i(u._11)(this.parent,e)},e.prototype.shiftMoveMethod=function(e,t,i,n,r){this.parent.allowMultiSelection?-1!==t||"csUp"!==r.action&&"csDown"!==r.action?-1===t||i===t||("csUp"===r.action||"csDown"===r.action)&&this.isSelected(n,i)?this.shiftSelectedItem(t,n,e,r):this.shiftSelectFocusItem(t,i,n,r):this.ctrlMoveFunction(e,r,t):this.moveFunction(e,r,t)},e.prototype.moveFunction=function(e,t,n){!i.i(r.isNullOrUndefined)(this.getFocusedItem())&&this.parent.allowMultiSelection?"moveDown"===t.action?this.gridObj.selectRow(this.getFocusedItemIndex()+1):this.gridObj.selectRow(this.getFocusedItemIndex()-1):i.i(r.isNullOrUndefined)(n)||-1===n?i.i(r.isNullOrUndefined)(e[0])||this.gridObj.selectRow(0):"moveDown"===t.action||"ctrlDown"===t.action||"shiftDown"===t.action||"csDown"===t.action?this.gridObj.selectRow(n+(n!==e.length-1?1:0)):this.gridObj.selectRow(n-(0!==n?1:0))},e.prototype.spaceSelection=function(e,t,n,s){if(this.isSelected(e,t)||-1===n||"shiftSpace"!==s.action&&"csSpace"!==s.action)if(i.i(r.isNullOrUndefined)(this.getFocusedItem())||t===n)if(-1!==n&&"ctrlSpace"===s.action&&this.parent.allowMultiSelection){var a=n;e.pop(),this.gridObj.selectRows(e),this.addFocus(a)}else"shiftSpace"===s.action&&this.gridObj.selectRow(n);else e.push(this.getFocusedItemIndex()),this.gridObj.selectRows(e);else t<n?this.gridObj.selectionModule.selectRowsByRange(t,n):this.gridObj.selectionModule.selectRowsByRange(n,t)},e.prototype.ctrlMoveFunction=function(e,t,n){var s;if(i.i(r.isNullOrUndefined)(this.getFocusedItem()))i.i(r.isNullOrUndefined)(n)||-1===n?i.i(r.isNullOrUndefined)(e[0])||(s=0):s="ctrlDown"===t.action||"csDown"===t.action?n+(n<e.length?1:0):n-(n<1?0:1);else{var a=this.getFocusedItemIndex();s="ctrlDown"===t.action||"csDown"===t.action?a+(a<e.length-1?1:0):a-(a<1?0:1)}this.addFocus(s)},e.prototype.checkRowsKey=function(e,t,n,s){"Uncheck"===this.gridObj.checkAllRows||"Intermediate"===this.gridObj.checkAllRows?"csHome"!==s.action&&"csEnd"!==s.action?(i.i(r.isNullOrUndefined)(this.startIndex)&&this.firstItemIndex!==t&&(this.firstItemIndex=t),"shiftEnd"===s.action?this.gridObj.selectionModule.selectRowsByRange(this.firstItemIndex,e.length-1):this.gridObj.selectionModule.selectRowsByRange(0,this.firstItemIndex),this.startIndex=t):"csEnd"===s.action?this.gridObj.selectRows(this.InnerItems(i.i(r.isNullOrUndefined)(t)?0:t,i.i(r.isNullOrUndefined)(n)?e.length-1:n,s)):i.i(r.isNullOrUndefined)(t)?this.gridObj.selectRow(0):this.gridObj.selectRows(this.InnerItems(i.i(r.isNullOrUndefined)(n)?0:n,t,s)):this.gridObj.selectionModule.selectRow("shiftHome"===s.action||"csHome"===s.action?0:e.length-1)},e.prototype.InnerItems=function(e,t,i){var n=this.gridObj.getSelectedRowIndexes();if("csEnd"===i.action)for(var r=e+1;r<=t;r++)n.push(r);else for(var r=t-1;e<=r;r--)n.push(r);return n},e.prototype.shiftSelectFocusItem=function(e,t,n,s){var a=t+("shiftDown"===s.action||"csDown"===s.action?1:-1),o=i.i(r.isNullOrUndefined)(this.startIndex)?e:n[0];o===a?this.gridObj.selectRow(o):o<a?"shiftDown"===s.action||"csDown"===s.action?this.gridObj.selectionModule.selectRowsByRange(o,a):this.gridObj.selectionModule.selectRowsByRange(a,o):"shiftDown"===s.action||"csDown"===s.action?this.gridObj.selectionModule.selectRowsByRange(a,o):this.gridObj.selectionModule.selectRowsByRange(o,a),this.startIndex=this.gridObj.selectedRowIndex},e.prototype.addFocus=function(e){var t=this.getFocusedItem(),n=this.gridObj.getRowByIndex(e);t&&(t.removeAttribute("tabindex"),i.i(r.removeClass)([t],[l._16,l._19])),i.i(r.isNullOrUndefined)(n)||(this.gridObj.element.setAttribute("tabindex","-1"),n.setAttribute("tabindex","0"),n.focus(),i.i(r.addClass)([n],[l._16,l._19]))},e.prototype.addHeaderFocus=function(e){var t=i.i(r.select)(".e-row",this.element);this.gridObj.element.setAttribute("tabindex","-1");var n;!i.i(r.isNullOrUndefined)(e.target)&&e.target.classList.contains("e-defaultcursor")?(this.addFocus(0),n=e.target.nextElementSibling):i.i(r.isNullOrUndefined)(this.gridObj.element.querySelector(".e-focus"))||"TH"!==this.gridObj.element.querySelector(".e-focus").tagName?n=i.i(r.select)("th.e-fe-grid-icon",this.element):(n=this.gridObj.element.querySelector(".e-focus").nextElementSibling,this.addFocus(0)),i.i(r.isNullOrUndefined)(n)||(n.setAttribute("tabindex","0"),n.focus(),i.i(r.addClass)([n],[l._16,l._19]),t.setAttribute("tabindex","0"),0===t.tabIndex&&0===n.tabIndex&&i.i(r.removeClass)([t],[l._16,l._19]))},e.prototype.getFocusedItem=function(){return i.i(r.select)("."+l._19,this.element)},e.prototype.isSelected=function(e,t){for(var i=!1,n=0;n<=e.length-1;n++)if(e[n]===t){i=!0;break}return i},e.prototype.shiftSelectedItem=function(e,t,n,s){-1===e?this.gridObj.selectRow(0):i.i(r.isNullOrUndefined)(this.startIndex)&&s.shiftKey?(this.startIndex=this.gridObj.selectedRowIndex,this.gridObj.selectRows([e,"shiftDown"===s.action||"csDown"===s.action?e+(e!==n.length-1?1:0):e-(0!==e?1:0)])):"shiftDown"===s.action||"shiftUp"===s.action?("shiftDown"===s.action&&-1===t.indexOf(e+1)?e!==n.length-1&&t.push(e+1):"shiftUp"===s.action&&-1===t.indexOf(e-1)?0!==e&&t.push(e-1):t.pop(),this.gridObj.selectRows(t)):"csDown"===s.action?this.isSelected(t,this.getFocusedItemIndex()+1)?this.addFocus(this.getFocusedItemIndex()+1):(t.push(this.getFocusedItemIndex()+1),this.gridObj.selectRows(t)):this.isSelected(t,this.getFocusedItemIndex()-1)?this.addFocus(this.getFocusedItemIndex()-1):(t.push(this.getFocusedItemIndex()-1),this.gridObj.selectRows(t))},e.prototype.onMethodCall=function(e){if("Details"===this.parent.view){switch(i.i(r.getValue)("action",e)){case"deleteFiles":this.deleteFiles(i.i(r.getValue)("ids",e));break;case"downloadFiles":this.downloadFiles(i.i(r.getValue)("ids",e));break;case"openFile":this.openFile(i.i(r.getValue)("id",e));break;case"createFolder":this.interaction=!1;break;case"renameFile":this.interaction=!1,this.renameFile(i.i(r.getValue)("id",e),i.i(r.getValue)("newName",e));break;case"selectAll":this.interaction=!1,this.onSelectAllInit();break;case"clearSelection":this.interaction=!1,this.onClearAllInit()}}},e.prototype.getRecords=function(e){var t=this.gridObj.getCurrentViewRecords(),n=[],s=!(""===this.parent.breadcrumbbarModule.searchObj.element.value&&!this.parent.isFiltered),a=this.parent.hasId?"id":"name";if(this.parent.hasId||!s)for(var o=0,l=t.length;o<l;o++)-1!==e.indexOf(i.i(r.getValue)(a,t[o]))&&n.push(t[o]);else for(var o=0,l=t.length;o<l;o++){var d=i.i(r.getValue)("filterPath",t[o])+i.i(r.getValue)("name",t[o]);-1!==e.indexOf(d)&&n.push(t[o])}return n},e.prototype.deleteFiles=function(e){if(this.parent.activeModule="detailsview",i.i(r.isNullOrUndefined)(e))return void this.performDelete();var t=this.getRecords(e);if(0!==t.length){for(var n=[],s=[],a=0;a<t.length;a++)n[a]=t[a],s[a]=i.i(u._10)(this.parent,n[a]);i.i(u._14)(this.parent,n,s)}},e.prototype.downloadFiles=function(e){if(i.i(r.isNullOrUndefined)(e))return void this.doDownload();var t=this.getRecords(e);if(0!==t.length){for(var n=[],s=[],a=0;a<t.length;a++)n[a]=t[a],s[a]=i.i(u._10)(this.parent,n[a]);i.i(u._15)(this.parent,n,s)}},e.prototype.openFile=function(e){if(!i.i(r.isNullOrUndefined)(e)){var t=this.getRecords([e]);t.length>0&&this.openContent(t[0])}},e.prototype.renameFile=function(e,t){if(this.parent.activeModule="detailsview",i.i(r.isNullOrUndefined)(e))return void this.performRename();var n=this.getRecords([e]);n.length>0&&(i.i(u._11)(this.parent,n[0]),i.i(r.isNullOrUndefined)(t)?i.i(u._12)(this.parent):i.i(u._19)(this.parent.itemData[0])?i.i(u.d)(this.parent,this.parent.path,t):i.i(u._16)(this.parent,this.parent.itemData[0],o.x))},e}()},function(e,t,i){"use strict";var n=i(28);i.d(t,"a",function(){return n.a});var r=i(26);i.d(t,"b",function(){return r.a});var s=i(13);i.d(t,"c",function(){return s.a})},function(e,t,i){"use strict";i.d(t,"a",function(){return u});var n=i(11),r=(i.n(n),i(0)),s=(i.n(r),i(8)),a=(i.n(s),i(4)),o=i(3),l=i(5),d=i(6),h=i(1),c=i(2),u=function(){function e(e){this.removeNodes=[],this.moveNames=[],this.expandTree=!1,this.isDrag=!1,this.isPathDragged=!1,this.isRenameParent=!1,this.isRightClick=!1,this.isSameNodeClicked=!1,this.isNodeExpandCalled=!1,this.renameParent=null,this.previousSelected=null,this.isNodeClickCalled=!1,this.restrictSelecting=!1,this.parent=e,this.addEventListener(),this.keyConfigs={altEnter:"alt+enter",esc:"escape",del:"delete",ctrlX:this.parent.isMac?"cmd+x":"ctrl+x",ctrlC:this.parent.isMac?"cmd+c":"ctrl+c",ctrlV:this.parent.isMac?"cmd+v":"ctrl+v",ctrlShiftN:"ctrl+shift+n",shiftF10:"shift+F10",f2:"f2"}}return e.prototype.onInit=function(){if(i.i(r.isNullOrUndefined)(this.treeObj)){var e=i.i(r.getValue)(this.parent.pathId[0],this.parent.feParent);i.i(r.setValue)("_fm_icon","e-fe-folder",e);var t={},s=i.i(r.getValue)("id",e);i.i(r.isNullOrUndefined)(s)||i.i(r.setValue)("data-id",s,t),i.i(c._19)(e)||i.i(r.setValue)("class",i.i(c._17)(e),t),i.i(r.isNullOrUndefined)(t)||i.i(r.setValue)("_fm_htmlAttr",t,e),this.treeObj=new n.TreeView({fields:{dataSource:[e],id:"_fm_id",parentID:"_fm_pId",expanded:"_fm_expanded",selected:"_fm_selected",text:"name",hasChildren:"hasChild",iconCss:"_fm_icon",htmlAttributes:"_fm_htmlAttr",tooltip:"name"},enableHtmlSanitizer:this.parent.enableHtmlSanitizer,sortOrder:this.parent.navigationPaneSettings.sortOrder,nodeSelecting:this.onNodeSelecting.bind(this),nodeSelected:this.onNodeSelected.bind(this),nodeExpanding:this.onNodeExpand.bind(this),nodeClicked:this.onNodeClicked.bind(this),allowEditing:!0,nodeEditing:this.onNodeEditing.bind(this),drawNode:this.onDrowNode.bind(this),enableRtl:this.parent.enableRtl,dataBound:this.addDragDrop.bind(this)}),this.treeObj.isStringTemplate=!0,this.treeObj.appendTo("#"+this.parent.element.id+o.R),this.wireEvents()}},e.prototype.addDragDrop=function(){var e=this;!this.parent.isMobile&&this.treeObj&&(this.parent.allowDragAndDrop?(this.dragObj&&this.dragObj.destroy(),this.dragObj=new r.Draggable(this.treeObj.element,{cursorAt:this.parent.dragCursorPosition,dragTarget:"."+o.N,distance:5,dragArea:this.parent.element,drag:c._8.bind(this,this.parent),dragStart:function(t){i.i(c._3)(e.parent,t,e.dragObj)},dragStop:c._2.bind(this,this.parent),enableTailMode:!0,enableAutoScroll:!1,helper:this.dragHelper.bind(this)})):!this.parent.allowDragAndDrop&&this.dragObj&&this.dragObj.destroy())},e.prototype.dragHelper=function(e){var t=e.sender.target;if(!t.classList.contains(o.N))return null;var n=i.i(r.closest)(t,"li");return this.parent.dragPath="",this.parent.dragData=[],this.parent.activeElements=[],this.parent.activeElements=[n],this.parent.dragNodes=[],i.i(c.u)(this.parent,n),this.parent.dragData=this.getTreeData(n),this.parent.dragPath=this.getDragPath(n,this.parent.dragData[0].name),this.parent.dragNodes.push(this.parent.dragData[0].name),i.i(c._1)(this.parent),this.parent.virtualDragElement},e.prototype.getDragPath=function(e,t){var n=this.getDropPath(e,t);return i.i(c.W)(n)},e.prototype.getDropPath=function(e,t){var n=e.getAttribute("data-id"),r=this.parent.hasId?n:t;return i.i(h.c)(e,r,this.parent.hasId)},e.prototype.onDrowNode=function(e){var t={element:e.node,fileDetails:e.nodeData,module:"NavigationPane"};this.parent.trigger("fileLoad",t)},e.prototype.addChild=function(e,t,n){var s=i.i(h.B)(e);if(s.length>0&&(null==s[0].filterPath||null==this.getTreeData(t)[0].filterPath||s[0].filterPath!==this.getTreeData(t)[0].filterPath)){for(var a=0,o=s;a<s.length;){o[a]._fm_icon="e-fe-folder";var l={},d=i.i(r.getValue)("id",o[a]);i.i(r.isNullOrUndefined)(d)||i.i(r.setValue)("data-id",d,l),i.i(c._19)(o[a])||i.i(r.setValue)("class",i.i(c._17)(o[a]),l),i.i(r.isNullOrUndefined)(l)||i.i(r.setValue)("_fm_htmlAttr",l,o[a]),a++}var u=i.i(r.select)('[data-uid="'+t+'"]',this.treeObj.element),p=i.i(r.select)("ul",u);i.i(r.isNullOrUndefined)(p)&&this.treeObj.addNodes(s,t,null,n)}},e.prototype.onNodeSelecting=function(e){if(!e.isInteracted&&!this.isRightClick&&!this.isSameNodeClicked&&!this.isPathDragged&&!this.isRenameParent||this.restrictSelecting)return this.restrictSelecting=!1,void(this.isNodeClickCalled=!1);if(!this.renameParent){this.parent.activeModule="navigationpane";var t=this.getTreeData(i.i(r.getValue)("id",e.nodeData));if(e.node.getAttribute("data-uid")!==this.parent.pathId[this.parent.pathId.length-1]&&!this.isRightClick&&!this.isNodeClickCalled||this.isSameNodeClicked){if(this.isNodeClickCalled=!1,!this.isSameNodeClicked){this.isSameNodeClicked=!0;var n={action:e.action,fileDetails:t[0],isInteracted:e.isInteracted};this.parent.trigger("fileSelect",n)}if(!this.isRightClick){var s={cancel:!1,fileDetails:t[0],module:"NavigationPane"};this.parent.trigger("fileOpen",s),e.cancel=s.cancel}e.cancel&&(this.restrictSelecting=!!this.isNodeClickCalled&&this.previousSelected[0]!==e.node.getAttribute("data-uid"),this.isNodeClickCalled=!0,this.isSameNodeClicked=!1,this.previousSelected=this.treeObj.selectedNodes,this.treeObj.selectedNodes=[e.node.getAttribute("data-uid")])}else if(this.previousSelected[0]!==e.node.getAttribute("data-uid")){var n={action:e.action,fileDetails:t[0],isInteracted:this.isNodeClickCalled};this.parent.trigger("fileSelect",n)}}},e.prototype.openFileOnContextMenuClick=function(e){var t=this.treeObj.getTreeData(e);this.parent.selectedItems=[],this.parent.itemData=t,this.activeNode=e,this.parent.activeModule="navigationpane";var n={cancel:!1,fileDetails:t[0],module:"NavigationPane"};this.parent.trigger("fileOpen",n),this.isNodeClickCalled=!0,n.cancel||(i.i(h.b)(e,this.parent.itemData[0],this.parent),i.i(l.a)(this.parent,this.isPathDragged?a.s:a.K,this.parent.path),this.parent.visitedItem=e,this.isPathDragged=this.isRenameParent=this.isRightClick=!1,this.treeObj.selectedNodes=[e.getAttribute("data-uid")])},e.prototype.onNodeSelected=function(e){if(this.parent.breadcrumbbarModule&&this.parent.breadcrumbbarModule.searchObj&&!this.renameParent&&(this.parent.breadcrumbbarModule.searchObj.element.value="",this.parent.isFiltered=!1,this.isNodeClickCalled=!1),this.parent.searchedItems=[],!(e.isInteracted||this.isRightClick||this.isSameNodeClicked||this.isPathDragged||this.isRenameParent))return void(this.parent.pathId=i.i(c.m)(e.node));this.activeNode=e.node,this.parent.activeModule="navigationpane";var t=this.getTreeData(i.i(r.getValue)("id",e.nodeData));this.parent.selectedItems=[],this.parent.itemData=t;var n=this.parent.path;!this.isRightClick&&this.isSameNodeClicked?i.i(h.b)(e.node,this.parent.itemData[0],this.parent):(this.parent.pathId=i.i(c.m)(e.node),this.parent.visitedItem=e.node),e.node.querySelector("."+o._20)&&null===e.node.querySelector("."+o.a)&&(this.expandNodeTarget="add"),n!==this.parent.path&&(!this.isRightClick&&this.isSameNodeClicked&&(i.i(l.a)(this.parent,this.isPathDragged?a.s:a.K,this.parent.path),this.isNodeClickCalled=!0),this.parent.visitedItem=e.node),this.isPathDragged=this.isRenameParent=this.isRightClick=this.isSameNodeClicked=!1},e.prototype.onPathDrag=function(e){this.isPathDragged=!0,this.selectResultNode(e[0])},e.prototype.onNodeExpand=function(e){if((e.isInteracted||this.isDrag)&&null===e.node.querySelector("."+o.a)){var t=i.i(r.getValue)("text",e.nodeData),n=e.node.getAttribute("data-id"),s=!i.i(r.isNullOrUndefined)(n),d=i.i(r.isNullOrUndefined)(n)?t:n,c=i.i(h.c)(e.node,d,s);this.expandNodeTarget=e.node.getAttribute("data-uid"),this.parent.expandedId=this.expandNodeTarget,this.parent.itemData=this.getTreeData(i.i(r.getValue)("id",e.nodeData)),this.parent.pathId.push(i.i(r.getValue)("id",e.nodeData)),i.i(l.a)(this.parent,a._4,c),this.isNodeExpandCalled=!0}},e.prototype.onNodeExpanded=function(e){this.addChild(e.files,this.expandNodeTarget,!1),this.parent.expandedId=null,this.isNodeExpandCalled=!1},e.prototype.onNodeClicked=function(e){if(this.parent.activeModule="navigationpane",this.previousSelected=this.treeObj.selectedNodes,this.activeNode=e.node,3===e.event.which&&e.node.getAttribute("data-uid")!==this.treeObj.selectedNodes[0])this.isRightClick=!0,this.isNodeClickCalled=!0,this.treeObj.selectedNodes=[e.node.getAttribute("data-uid")];else if(e.node.getAttribute("data-uid")===this.treeObj.selectedNodes[0]&&0!==this.parent.selectedItems.length){this.parent.setProperties({selectedItems:[]},!0);var t="LargeIcons"===this.parent.view?"largeiconsview":"detailsview";this.parent.notify(a.V,{module:t,newProp:{selectedItems:[]}})}else e.node.getAttribute("data-uid")!==this.treeObj.selectedNodes[0]||this.isNodeClickCalled||this.isNodeExpandCalled||(3===e.event.which&&(this.isRightClick=!0),this.isSameNodeClicked=!0,this.isNodeClickCalled=!0,this.treeObj.selectedNodes=[e.node.getAttribute("data-uid")])},e.prototype.onNodeEditing=function(e){i.i(r.isNullOrUndefined)(e.innerHtml)||(e.cancel=!0)},e.prototype.onPathChanged=function(e){this.parent.isCut=!1;var t=i.i(r.getValue)(this.parent.pathId[this.parent.pathId.length-1],this.parent.feFiles);if("add"===this.expandNodeTarget){var n=i.i(r.select)('[data-uid="'+this.treeObj.selectedNodes[0]+'"]',this.treeObj.element),s=i.i(r.isNullOrUndefined)(n)?null:i.i(r.select)("."+o._11,n);i.i(r.isNullOrUndefined)(s)&&this.addChild(e.files,this.treeObj.selectedNodes[0],!this.expandTree),this.expandNodeTarget=""}this.expandTree=!1,i.i(r.isNullOrUndefined)(t)&&i.i(r.setValue)(this.parent.pathId[this.parent.pathId.length-1],e.files,this.parent.feFiles),this.parent.uploadObj.directoryUpload&&!this.parent.hasId&&this.updateTree(e)},e.prototype.updateTree=function(e){if(this.treeObj){var t=this.treeObj.selectedNodes[0];this.updateTreeNode(e,t)}},e.prototype.updateTreeNode=function(e,t){var i=-1!==this.treeObj.expandedNodes.indexOf(t);this.removeChildNodes(t),this.addChild(e.files,t,!i)},e.prototype.removeChildNodes=function(e){var t=i.i(r.select)('[data-uid="'+e+'"]',this.treeObj.element),n=i.i(r.select)("."+o._11,t),s=n?Array.prototype.slice.call(n.children):null;s&&this.treeObj.removeNodes(s)},e.prototype.onOpenEnd=function(e){var t=this.parent.pathId[this.parent.pathId.length-1];this.treeObj.expandAll(this.treeObj.selectedNodes),this.treeObj.selectedNodes=[t],this.expandNodeTarget="add",this.onPathChanged(e)},e.prototype.onOpenInit=function(e){"navigationpane"===this.parent.activeModule&&e.target.querySelector("."+o._20)&&this.treeObj.expandAll(this.treeObj.selectedNodes)},e.prototype.onInitialEnd=function(e){this.onInit(),this.addChild(e.files,i.i(r.getValue)("_fm_id",e.cwd),!1)},e.prototype.onFinalizeEnd=function(e){this.onInit();var t=i.i(r.getValue)("_fm_id",e.cwd);this.addChild(e.files,t,!1),this.treeObj.selectedNodes=[this.parent.pathId[this.parent.pathId.length-1]]},e.prototype.onCreateEnd=function(e){this.updateTree(e)},e.prototype.onSelectedData=function(){"navigationpane"===this.parent.activeModule&&this.updateItemData()},e.prototype.onDeleteInit=function(){if("navigationpane"===this.parent.activeModule){this.updateActionData();var e=i.i(r.getValue)("name",this.parent.itemData[0]);i.i(l.f)(this.parent,[e],this.parent.path,"delete")}},e.prototype.onDeleteEnd=function(e){if("navigationpane"===this.parent.activeModule){var t=this.treeObj.selectedNodes[0],n=i.i(r.select)('[data-uid="'+t+'"]',this.treeObj.element),s=i.i(r.closest)(n,"."+o._11).parentElement;this.treeObj.selectedNodes=[s.getAttribute("data-uid")],this.treeObj.dataBind()}this.updateTree(e)},e.prototype.onRefreshEnd=function(e){this.updateTree(e)},e.prototype.onRenameInit=function(){"navigationpane"===this.parent.activeModule&&this.updateRenameData()},e.prototype.onRenameEndParent=function(e){var t=this.renameParent?this.renameParent:this.parent.pathId[this.parent.pathId.length-1];if(this.expandTree=-1!==this.treeObj.expandedNodes.indexOf(this.treeObj.selectedNodes[0]),this.updateTreeNode(e,t),this.parent.expandedId=null,this.renameParent)this.renameParent=null;else{var n=[];if(this.parent.hasId)n=new s.DataManager(this.treeObj.getTreeData()).executeLocal((new s.Query).where("id","equal",this.parent.renamedId,!1));else{var a=new s.DataManager(this.treeObj.getTreeData()).executeLocal((new s.Query).where(this.treeObj.fields.text,"equal",this.parent.renameText,!1));a.length>0&&(n=new s.DataManager(a).executeLocal((new s.Query).where("_fm_pId","equal",t,!1)))}if(n.length>0){var o=i.i(r.getValue)(this.treeObj.fields.id,n[0]);this.treeObj.selectedNodes=[o],this.treeObj.dataBind()}}},e.prototype.onRenameEnd=function(e){if(""!==this.parent.breadcrumbbarModule.searchObj.element.value||this.parent.isFiltered){var t=this.treeObj.getTreeData(),n=[];if(this.parent.hasId)n=new s.DataManager(t).executeLocal((new s.Query).where("id","equal",this.parent.renamedId,!1));else{var o=new s.DataManager(t).executeLocal((new s.Query).where(this.treeObj.fields.text,"equal",this.parent.currentItemText,!1));o.length>0&&(n=new s.DataManager(o).executeLocal((new s.Query).where("filterPath","equal",this.parent.filterPath,!1)))}n.length>0&&(this.renameParent=i.i(r.getValue)(this.treeObj.fields.parentID,n[0]),this.parent.expandedId=this.renameParent,this.parent.itemData=this.getTreeData(this.renameParent),i.i(l.a)(this.parent,a.J,this.parent.filterPath.replace(/\\/g,"/")))}else this.updateTree(e)},e.prototype.onPropertyChanged=function(e){if(e.module===this.getModuleName()||"common"===e.module)for(var t=0,n=Object.keys(e.newProp);t<n.length;t++){var r=n[t];switch(r){case"allowDragAndDrop":this.addDragDrop();break;case"navigationPaneSettings":i.i(l.a)(this.parent,a.m,"/"),e.oldProp.navigationPaneSettings.sortOrder!==e.newProp.navigationPaneSettings.sortOrder&&(this.treeObj.sortOrder=e.newProp.navigationPaneSettings.sortOrder)}}},e.prototype.onDownLoadInit=function(){this.doDownload()},e.prototype.onSelectionChanged=function(e){this.treeObj.selectedNodes=[e.selectedNode]},e.prototype.onClearPathInit=function(e){this.removeChildNodes(e.selectedNode)},e.prototype.onDragEnd=function(e){var t=[];t=this.parent.isPasteError||this.parent.isSearchDrag?this.getMoveNames(e.files,this.parent.isSearchDrag,this.parent.dragPath):this.moveNames,this.treeObj.removeNodes(t)},e.prototype.getMoveNames=function(e,t,n){for(var a=[],o=0;o<e.length;o++)if(!e[o].isFile&&!this.parent.hasId){var l=e[o].previousName;if(t){n+=e[o].previousName;var d=n.lastIndexOf("/");l=n.substring(d+1),n=n.substring(0,d+1)}for(var h=new s.DataManager(this.treeObj.getTreeData()).executeLocal((new s.Query).where(this.treeObj.fields.text,"equal",l,!1)),c=0;c<h.length;c++){var u=i.i(r.getValue)("filterPath",h[c]);if((u=u.replace(/\\/g,"/"))===n){a.push(i.i(r.getValue)(this.treeObj.fields.id,h[c]));break}}}return a},e.prototype.onCutEnd=function(e){var t=[];this.parent.isPasteError||this.parent.isSearchCut?this.moveNames=this.getMoveNames(e.files,this.parent.isSearchCut,this.parent.targetPath):t=this.moveNames,this.treeObj.removeNodes(t)},e.prototype.selectResultNode=function(e){if(this.parent.hasId){var t=this.treeObj.getTreeData().filter(function(t){return t.name===e.name})[0];this.treeObj.selectedNodes=[i.i(r.getValue)("_fm_id",t)],this.treeObj.dataBind()}else{var n=i.i(r.getValue)("filterPath",e),a=i.i(r.getValue)("name",e),o=new s.DataManager(this.treeObj.getTreeData()).executeLocal((new s.Query).where(this.treeObj.fields.text,"equal",a,!1));if(o.length>0){var l=new s.DataManager(o).executeLocal((new s.Query).where("filterPath","equal",n,!1));if(l.length>0){var d=i.i(r.getValue)(this.treeObj.fields.id,l[0]);this.treeObj.selectedNodes=[d],this.treeObj.dataBind()}}}},e.prototype.onDropPath=function(e){this.onpasteEnd(e),this.selectResultNode(this.parent.dropData),this.parent.isDropEnd=!this.parent.isPasteError},e.prototype.onpasteEnd=function(e){var t=[];if(this.parent.hasId)t=new s.DataManager(this.treeObj.getTreeData()).executeLocal((new s.Query).where("id","equal",i.i(r.getValue)("id",e.cwd),!1));else{var n=new s.DataManager(this.treeObj.getTreeData()).executeLocal((new s.Query).where(this.treeObj.fields.text,"equal",i.i(r.getValue)("name",e.cwd),!1));n.length>0&&(t=new s.DataManager(n).executeLocal((new s.Query).where("filterPath","equal",i.i(r.getValue)("filterPath",e.cwd),!1)))}if(t.length>0){var a=i.i(r.getValue)(this.treeObj.fields.id,t[0]),o=-1===this.treeObj.expandedNodes.indexOf(a);this.removeChildNodes(a),this.addChild(e.files,a,o)}this.parent.expandedId=null,this.onPathChanged(e),this.parent.isDragDrop&&this.checkDropPath(e)},e.prototype.checkDropPath=function(e){if(this.parent.hasId)return this.parent.isDropEnd=!this.parent.isPasteError,void i.i(c.Z)(this.parent);-1===this.parent.dropPath.indexOf(i.i(c.X)(this.parent,e))?(this.parent.isDropEnd=!1,i.i(c.Z)(this.parent)):this.parent.isDropEnd=!this.parent.isPasteError},e.prototype.onpasteInit=function(){this.parent.activeModule===this.getModuleName()&&this.updateItemData(),this.moveNames=[];for(var e=this.parent.isDragDrop?this.parent.dragData:this.parent.actionRecords,t=0;t<e.length;t++)!1===i.i(r.getValue)("isFile",e[t])&&this.moveNames.push(i.i(r.getValue)("_fm_id",e[t]))},e.prototype.oncutCopyInit=function(){this.parent.activeModule===this.getModuleName()&&(this.parent.activeRecords=this.getTreeData(this.treeObj.selectedNodes[0]),this.parent.activeElements=[this.activeNode])},e.prototype.addEventListener=function(){this.parent.on(a.V,this.onPropertyChanged,this),this.parent.on(a.P,this.onDownLoadInit,this),this.parent.on(a.n,this.onInitialEnd,this),this.parent.on(a.m,this.onFinalizeEnd,this),this.parent.on(a.K,this.onPathChanged,this),this.parent.on(a.s,this.onpasteEnd,this),this.parent.on(a.q,this.onCutEnd,this),this.parent.on(a.p,this.onpasteInit,this),this.parent.on(a._4,this.onNodeExpanded,this),this.parent.on(a.I,this.onCreateEnd,this),this.parent.on(a.O,this.onSelectedData,this),this.parent.on(a.D,this.onDeleteInit,this),this.parent.on(a.M,this.onDeleteEnd,this),this.parent.on(a.h,this.onRefreshEnd,this),this.parent.on(a._5,this.onSelectionChanged,this),this.parent.on(a.S,this.onOpenInit,this),this.parent.on(a.i,this.onOpenEnd,this),this.parent.on(a.U,this.destroy,this),this.parent.on(a.Q,this.onRenameInit,this),this.parent.on(a.L,this.onRenameEnd,this),this.parent.on(a.J,this.onRenameEndParent,this),this.parent.on(a.o,this.onClearPathInit,this),this.parent.on(a.b,this.oncutCopyInit,this),this.parent.on(a.v,this.onDropInit,this),this.parent.on(a.N,this.onMenuItemData,this),this.parent.on(a.r,this.onDragEnd,this),this.parent.on(a.w,this.onDragging,this),this.parent.on(a.u,this.onDropPath,this),this.parent.on(a.T,this.onDetailsInit,this),this.parent.on(a.t,this.onPathDrag,this)},e.prototype.removeEventListener=function(){this.parent.off(a.n,this.onInitialEnd),this.parent.off(a.P,this.onDownLoadInit),this.parent.off(a.m,this.onFinalizeEnd),this.parent.off(a.O,this.onSelectedData),this.parent.off(a.V,this.onPropertyChanged),this.parent.off(a.K,this.onPathChanged),this.parent.off(a.s,this.onpasteEnd),this.parent.off(a.q,this.onCutEnd),this.parent.off(a.p,this.onpasteInit),this.parent.off(a._5,this.onSelectionChanged),this.parent.off(a._4,this.onNodeExpanded),this.parent.off(a.I,this.onCreateEnd),this.parent.off(a.h,this.onRefreshEnd),this.parent.off(a.S,this.onOpenInit),this.parent.off(a.i,this.onOpenEnd),this.parent.off(a.U,this.destroy),this.parent.off(a.Q,this.onRenameInit),this.parent.off(a.L,this.onRenameEnd),this.parent.off(a.J,this.onRenameEndParent),this.parent.off(a.o,this.onClearPathInit),this.parent.off(a.D,this.onDeleteInit),this.parent.off(a.M,this.onDeleteEnd),this.parent.off(a.b,this.oncutCopyInit),this.parent.off(a.v,this.onDropInit),this.parent.off(a.r,this.onDragEnd),this.parent.off(a.w,this.onDragging),this.parent.off(a.u,this.onDropPath),this.parent.off(a.T,this.onDetailsInit),this.parent.off(a.N,this.onMenuItemData),this.parent.off(a.t,this.onPathDrag)},e.prototype.onDetailsInit=function(){if(this.parent.activeModule===this.getModuleName()){var e=this.getTreeData(this.treeObj.selectedNodes[0]);this.parent.itemData=e}},e.prototype.onMenuItemData=function(e){if(this.parent.activeModule===this.getModuleName()){var t=i.i(r.closest)(e.target,"li");this.parent.itemData=this.getTreeData(t.getAttribute("data-uid"))}},e.prototype.onDragging=function(e){var t=i.i(r.closest)(e.target,"li");if(t.classList.contains("e-node-collapsed")){this.isDrag=!0;var n=parseInt(t.getAttribute("aria-level"),10);this.treeObj.expandAll([t.getAttribute("data-uid")],n+1),this.isDrag=!1}},e.prototype.onDropInit=function(e){if(this.parent.targetModule===this.getModuleName()){var t=i.i(r.closest)(e.target,"li");this.parent.dropData=this.getTreeData(t)[0],this.parent.dropPath=this.getDropPath(t,i.i(r.getValue)("name",this.parent.dropData))}},e.prototype.getModuleName=function(){return"navigationpane"},e.prototype.destroy=function(){this.parent.isDestroyed||(this.removeEventListener(),this.treeObj&&(this.unWireEvents(),this.treeObj.destroy()))},e.prototype.wireEvents=function(){this.keyboardModule=new r.KeyboardEvents(this.treeObj.element,{keyAction:this.keyDown.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"})},e.prototype.unWireEvents=function(){this.keyboardModule.destroy()},e.prototype.keyDown=function(e){switch(e.action){case"altEnter":this.parent.notify(a.T,{}),i.i(l.g)(this.parent,[],this.parent.path,"details");break;case"esc":i.i(c.q)(this.parent);break;case"del":this.parent.pathId[0]!==this.activeNode.getAttribute("data-uid")&&(this.updateItemData(),i.i(c._19)(this.parent.itemData[0])?(this.removeNodes=[],i.i(d.a)(this.parent,"Delete")):i.i(c._16)(this.parent,this.parent.itemData[0],a.x));break;case"ctrlC":i.i(c.B)(this.parent);break;case"ctrlV":this.parent.folderPath="",i.i(c.T)(this.parent);break;case"ctrlX":i.i(c.C)(this.parent);break;case"shiftF10":if(this.updateItemData(),!i.i(c._22)(this.parent.itemData[0]))return void i.i(c._16)(this.parent,this.parent.itemData[0],a.y);0!==this.parent.selectedItems.length&&this.doDownload();break;case"f2":if(0===this.parent.selectedItems.length){var t=this.getTreeData(this.treeObj.selectedNodes[0])[0];i.i(c._19)(t)?(this.updateRenameData(),i.i(d.a)(this.parent,"Rename")):i.i(c._16)(this.parent,t,a.x)}}},e.prototype.getTreeData=function(e){for(var t=this.treeObj.getTreeData(e),n=0;n<t.length;n++)i.i(r.isNullOrUndefined)(i.i(r.getValue)("hasChild",t[n]))&&i.i(r.setValue)("hasChild",!1,t[n]);return t},e.prototype.updateRenameData=function(){this.updateItemData(),this.parent.currentItemText=i.i(r.getValue)("name",this.parent.itemData[0])},e.prototype.updateItemData=function(){var e=this.getTreeData(this.treeObj.selectedNodes[0])[0];this.parent.itemData=[e],this.parent.isFile=!1},e.prototype.updateActionData=function(){this.updateItemData();var e=i.i(c.W)(this.parent.path);this.parent.setProperties({path:e},!0),this.parent.pathId.pop(),this.parent.pathNames.pop()},e.prototype.doDownload=function(){var e=i.i(c.W)(this.parent.path),t=this.treeObj.selectedNodes[0],n=t===this.parent.pathId[0]?"":i.i(r.getValue)("name",this.parent.itemData[0]);i.i(l.i)(this.parent,e,[n])},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var n=i(0),r=(i.n(n),this&&this.__extends||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])})(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)}}()),s=this&&this.__decorate||function(e,t,i,n){var r,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,i,a):r(t,i))||a);return s>3&&a&&Object.defineProperty(t,i,a),a},a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),s([i.i(n.Property)(null)],t.prototype,"downloadUrl",void 0),s([i.i(n.Property)(null)],t.prototype,"getImageUrl",void 0),s([i.i(n.Property)(null)],t.prototype,"uploadUrl",void 0),s([i.i(n.Property)(null)],t.prototype,"url",void 0),t}(n.ChildProperty)},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var n=i(0),r=(i.n(n),this&&this.__extends||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])})(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)}}()),s=this&&this.__decorate||function(e,t,i,n){var r,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,i,a):r(t,i))||a);return s>3&&a&&Object.defineProperty(t,i,a),a},a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),s([i.i(n.Property)("")],t.prototype,"field",void 0),s([i.i(n.Property)("")],t.prototype,"headerText",void 0),s([i.i(n.Property)("")],t.prototype,"width",void 0),s([i.i(n.Property)("")],t.prototype,"minWidth",void 0),s([i.i(n.Property)("")],t.prototype,"maxWidth",void 0),s([i.i(n.Property)("Left")],t.prototype,"textAlign",void 0),s([i.i(n.Property)(null)],t.prototype,"headerTextAlign",void 0),s([i.i(n.Property)(null)],t.prototype,"type",void 0),s([i.i(n.Property)(null)],t.prototype,"format",void 0),s([i.i(n.Property)(null)],t.prototype,"template",void 0),s([i.i(n.Property)(null)],t.prototype,"sortComparer",void 0),s([i.i(n.Property)(null)],t.prototype,"headerTemplate",void 0),s([i.i(n.Property)(!0)],t.prototype,"allowSorting",void 0),s([i.i(n.Property)(!0)],t.prototype,"allowResizing",void 0),s([i.i(n.Property)(null)],t.prototype,"customAttributes",void 0),s([i.i(n.Property)("")],t.prototype,"hideAtMedia",void 0),s([i.i(n.Property)(null)],t.prototype,"customFormat",void 0),s([i.i(n.Property)(!1)],t.prototype,"isPrimaryKey",void 0),t}(n.ChildProperty)},function(e,t,i){"use strict";i.d(t,"a",function(){return n});var n={NewFolder:"New folder",Upload:"Upload",Delete:"Delete",Rename:"Rename",Download:"Download",Cut:"Cut",Copy:"Copy",Paste:"Paste",SortBy:"Sort by",Refresh:"Refresh","Item-Selection":"item selected","Items-Selection":"items selected",View:"View",Details:"Details",SelectAll:"Select all",Open:"Open","Tooltip-NewFolder":"New folder","Tooltip-Upload":"Upload","Tooltip-Delete":"Delete","Tooltip-Rename":"Rename","Tooltip-Download":"Download","Tooltip-Cut":"Cut","Tooltip-Copy":"Copy","Tooltip-Paste":"Paste","Tooltip-SortBy":"Sort by","Tooltip-Refresh":"Refresh","Tooltip-Selection":"Clear selection","Tooltip-View":"View","Tooltip-Details":"Details","Tooltip-SelectAll":"Select all",Name:"Name",Size:"Size",DateModified:"Modified",DateCreated:"Date created",Path:"Path",Modified:"Modified",Created:"Created",Location:"Location",Type:"Type",Permission:"Permission",Ascending:"Ascending",Descending:"Descending",None:"None","View-LargeIcons":"Large icons","View-Details":"Details",Search:"Search","Button-Ok":"OK","Button-Cancel":"Cancel","Button-Yes":"Yes","Button-No":"No","Button-Create":"Create","Button-Save":"Save","Header-NewFolder":"Folder","Content-NewFolder":"Enter your folder name","Header-Rename":"Rename","Content-Rename":"Enter your new name","Header-Rename-Confirmation":"Rename Confirmation","Content-Rename-Confirmation":"If you change a file name extension, the file might become unstable. Are you sure you want to change it?","Header-Delete":"Delete File","Content-Delete":"Are you sure you want to delete this file?","Header-Folder-Delete":"Delete Folder","Content-Folder-Delete":"Are you sure you want to delete this folder?","Header-Multiple-Delete":"Delete Multiple Items","Content-Multiple-Delete":"Are you sure you want to delete these {0} items?","Header-Duplicate":"File/Folder exists","Content-Duplicate":"{0} already exists. Do you want to rename and paste?","Header-Upload":"Upload Files",Error:"Error","Validation-Empty":"The file or folder name cannot be empty.","Validation-Invalid":'The file or folder name {0} contains invalid characters. Please use a different name. Valid file or folder names cannot end with a dot or space, and cannot contain any of the following characters: \\/:*?"<>|',"Validation-NewFolder-Exists":"A file or folder with the name {0} already exists.","Validation-Rename-Exists":"Cannot rename {0} to {1}: destination already exists.","Folder-Empty":"This folder is empty","File-Upload":"Drag files here to upload","Search-Empty":"No results found","Search-Key":"Try with different keywords","Filter-Empty":"No results found","Filter-Key":"Try with different filter","Sub-Folder-Error":"The destination folder is the subfolder of the source folder.","Same-Folder-Error":"The destination folder is the same as the source folder.","Access-Denied":"Access Denied","Access-Details":'You don"t have permission to access this folder.',"Header-Retry":"File Already Exists","Content-Retry":"A file with this name already exists in this folder. What would you like to do?","Button-Keep-Both":"Keep both","Button-Replace":"Replace","Button-Skip":"Skip","ApplyAll-Label":"Do this for all current items",KB:"KB","Access-Message":"{0} is not accessible. You need permission to perform the {1} action.","Network-Error":"NetworkError: Failed to send on XMLHTTPRequest: Failed to load","Server-Error":"ServerError: Invalid response from"}},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var n=i(0),r=(i.n(n),this&&this.__extends||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])})(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)}}()),s=this&&this.__decorate||function(e,t,i,n){var r,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,i,a):r(t,i))||a);return s>3&&a&&Object.defineProperty(t,i,a),a},a=[{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:i.i(n.initializeCSPTemplate)(function(e){return'<span class="e-fe-size">'+e.size+"</span>"}),format:"n2"}],o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),s([i.i(n.Property)(!0)],t.prototype,"columnResizing",void 0),s([i.i(n.Property)(a)],t.prototype,"columns",void 0),t}(n.ChildProperty)},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var n=i(0),r=(i.n(n),this&&this.__extends||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])})(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)}}()),s=this&&this.__decorate||function(e,t,i,n){var r,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,i,a):r(t,i))||a);return s>3&&a&&Object.defineProperty(t,i,a),a},a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),s([i.i(n.Property)("650px")],t.prototype,"maxWidth",void 0),s([i.i(n.Property)("240px")],t.prototype,"minWidth",void 0),s([i.i(n.Property)(!0)],t.prototype,"visible",void 0),s([i.i(n.Property)("None")],t.prototype,"sortOrder",void 0),t}(n.ChildProperty)},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var n=i(0),r=(i.n(n),this&&this.__extends||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])})(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)}}()),s=this&&this.__decorate||function(e,t,i,n){var r,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,i,a):r(t,i))||a);return s>3&&a&&Object.defineProperty(t,i,a),a},a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),s([i.i(n.Property)(!0)],t.prototype,"allowSearchOnTyping",void 0),s([i.i(n.Property)("contains")],t.prototype,"filterType",void 0),s([i.i(n.Property)(!0)],t.prototype,"ignoreCase",void 0),s([i.i(n.Property)(null)],t.prototype,"placeholder",void 0),t}(n.ChildProperty)},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o}),i.d(t,"c",function(){return l});var n=i(0),r=(i.n(n),this&&this.__extends||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])})(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)}}()),s=this&&this.__decorate||function(e,t,i,n){var r,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,i,a):r(t,i))||a);return s>3&&a&&Object.defineProperty(t,i,a),a},a=["NewFolder","Upload","Cut","Copy","Paste","Delete","Download","Rename","SortBy","Refresh","Selection","View","Details"],o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),s([i.i(n.Property)(a)],t.prototype,"items",void 0),s([i.i(n.Property)(!0)],t.prototype,"visible",void 0),t}(n.ChildProperty),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),s([i.i(n.Property)("")],t.prototype,"id",void 0),s([i.i(n.Property)("")],t.prototype,"text",void 0),s([i.i(n.Property)("auto")],t.prototype,"width",void 0),s([i.i(n.Property)("")],t.prototype,"cssClass",void 0),s([i.i(n.Property)(!1)],t.prototype,"showAlwaysInPopup",void 0),s([i.i(n.Property)(!1)],t.prototype,"disabled",void 0),s([i.i(n.Property)("")],t.prototype,"prefixIcon",void 0),s([i.i(n.Property)("")],t.prototype,"suffixIcon",void 0),s([i.i(n.Property)(!0)],t.prototype,"visible",void 0),s([i.i(n.Property)("None")],t.prototype,"overflow",void 0),s([i.i(n.Property)("")],t.prototype,"template",void 0),s([i.i(n.Property)("Button")],t.prototype,"type",void 0),s([i.i(n.Property)("Both")],t.prototype,"showTextOn",void 0),s([i.i(n.Property)(null)],t.prototype,"htmlAttributes",void 0),s([i.i(n.Property)("")],t.prototype,"tooltipText",void 0),s([i.i(n.Property)("Left")],t.prototype,"align",void 0),s([i.i(n.Property)(-1)],t.prototype,"tabIndex",void 0),s([i.i(n.Property)()],t.prototype,"name",void 0),t}(n.ChildProperty)},function(e,t,i){"use strict";var n=i(6);i.d(t,"a",function(){return n.a}),i.d(t,"b",function(){return n.b}),i.d(t,"c",function(){return n.c});var r=i(16);i.d(t,"d",function(){return r.a})},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(20);i.d(t,"AjaxSettings",function(){return n.a}),i.d(t,"defaultToolbarItems",function(){return n.b}),i.d(t,"ToolbarSettings",function(){return n.c}),i.d(t,"ToolbarItem",function(){return n.d}),i.d(t,"SearchSettings",function(){return n.e}),i.d(t,"columnArray",function(){return n.f}),i.d(t,"DetailsViewSettings",function(){return n.g}),i.d(t,"fileItems",function(){return n.h}),i.d(t,"folderItems",function(){return n.i}),i.d(t,"layoutItems",function(){return n.j}),i.d(t,"ContextMenuSettings",function(){return n.k}),i.d(t,"NavigationPaneSettings",function(){return n.l}),i.d(t,"UploadSettings",function(){return n.m}),i.d(t,"Column",function(){return n.n}),i.d(t,"TOOLBAR_ID",function(){return n.o}),i.d(t,"LAYOUT_ID",function(){return n.p}),i.d(t,"NAVIGATION_ID",function(){return n.q}),i.d(t,"TREE_ID",function(){return n.r}),i.d(t,"GRID_ID",function(){return n.s}),i.d(t,"LARGEICON_ID",function(){return n.t}),i.d(t,"DIALOG_ID",function(){return n.u}),i.d(t,"ALT_DIALOG_ID",function(){return n.v}),i.d(t,"IMG_DIALOG_ID",function(){return n.w}),i.d(t,"EXTN_DIALOG_ID",function(){return n.x}),i.d(t,"UPLOAD_DIALOG_ID",function(){return n.y}),i.d(t,"RETRY_DIALOG_ID",function(){return n.z}),i.d(t,"CONTEXT_MENU_ID",function(){return n.A}),i.d(t,"SORTBY_ID",function(){return n.B}),i.d(t,"VIEW_ID",function(){return n.C}),i.d(t,"SPLITTER_ID",function(){return n.D}),i.d(t,"CONTENT_ID",function(){return n.E}),i.d(t,"BREADCRUMBBAR_ID",function(){return n.F}),i.d(t,"UPLOAD_ID",function(){return n.G}),i.d(t,"RETRY_ID",function(){return n.H}),i.d(t,"SEARCH_ID",function(){return n.I}),i.d(t,"ROOT",function(){return n.J}),i.d(t,"CONTROL",function(){return n.K}),i.d(t,"CHECK_SELECT",function(){return n.L}),i.d(t,"ROOT_POPUP",function(){return n.M}),i.d(t,"MOBILE",function(){return n.N}),i.d(t,"MOB_POPUP",function(){return n.O}),i.d(t,"MULTI_SELECT",function(){return n.P}),i.d(t,"FILTER",function(){return n.Q}),i.d(t,"LAYOUT",function(){return n.R}),i.d(t,"NAVIGATION",function(){return n.S}),i.d(t,"LAYOUT_CONTENT",function(){return n.T}),i.d(t,"LARGE_ICONS",function(){return n.U}),i.d(t,"TB_ITEM",function(){return n.V}),i.d(t,"LIST_ITEM",function(){return n.W}),i.d(t,"LIST_TEXT",function(){return n.X}),i.d(t,"LIST_PARENT",function(){return n.Y}),i.d(t,"TB_OPTION_TICK",function(){return n.Z}),i.d(t,"TB_OPTION_DOT",function(){return n._0}),i.d(t,"BLUR",function(){return n._1}),i.d(t,"ACTIVE",function(){return n._2}),i.d(t,"HOVER",function(){return n._3}),i.d(t,"FOCUS",function(){return n._4}),i.d(t,"FOCUSED",function(){return n._5}),i.d(t,"CHECK",function(){return n._6}),i.d(t,"FRAME",function(){return n._7}),i.d(t,"CB_WRAP",function(){return n._8}),i.d(t,"ROW",function(){return n._9}),i.d(t,"ROWCELL",function(){return n._10}),i.d(t,"EMPTY",function(){return n._11}),i.d(t,"EMPTY_CONTENT",function(){return n._12}),i.d(t,"EMPTY_INNER_CONTENT",function(){return n._13}),i.d(t,"CLONE",function(){return n._14}),i.d(t,"DROP_FOLDER",function(){return n._15}),i.d(t,"DROP_FILE",function(){return n._16}),i.d(t,"FOLDER",function(){return n._17}),i.d(t,"ICON_IMAGE",function(){return n._18}),i.d(t,"ICON_MUSIC",function(){return n._19}),i.d(t,"ICON_VIDEO",function(){return n._20}),i.d(t,"LARGE_ICON",function(){return n._21}),i.d(t,"LARGE_EMPTY_FOLDER",function(){return n._22}),i.d(t,"LARGE_EMPTY_FOLDER_TWO",function(){return n._23}),i.d(t,"LARGE_ICON_FOLDER",function(){return n._24}),i.d(t,"SELECTED_ITEMS",function(){return n._25}),i.d(t,"TEXT_CONTENT",function(){return n._26}),i.d(t,"GRID_HEADER",function(){return n._27}),i.d(t,"TEMPLATE_CELL",function(){return n._28}),i.d(t,"TREE_VIEW",function(){return n._29}),i.d(t,"MENU_ITEM",function(){return n._30}),i.d(t,"MENU_ICON",function(){return n._31}),i.d(t,"SUBMENU_ICON",function(){return n._32}),i.d(t,"GRID_VIEW",function(){return n._33}),i.d(t,"GRID_CONTENT",function(){return n._34}),i.d(t,"ICON_VIEW",function(){return n._35}),i.d(t,"ICON_OPEN",function(){return n._36}),i.d(t,"ICON_UPLOAD",function(){return n._37}),i.d(t,"ICON_CUT",function(){return n._38}),i.d(t,"ICON_COPY",function(){return n._39}),i.d(t,"ICON_PASTE",function(){return n._40}),i.d(t,"ICON_DELETE",function(){return n._41}),i.d(t,"ICON_RENAME",function(){return n._42}),i.d(t,"ICON_NEWFOLDER",function(){return n._43}),i.d(t,"ICON_DETAILS",function(){return n._44}),i.d(t,"ICON_SHORTBY",function(){return n._45}),i.d(t,"ICON_REFRESH",function(){return n._46}),i.d(t,"ICON_SELECTALL",function(){return n._47}),i.d(t,"ICON_DOWNLOAD",function(){return n._48}),i.d(t,"ICON_OPTIONS",function(){return n._49}),i.d(t,"ICON_GRID",function(){return n._50}),i.d(t,"ICON_LARGE",function(){return n._51}),i.d(t,"ICON_BREADCRUMB",function(){return n._52}),i.d(t,"ICON_CLEAR",function(){return n._53}),i.d(t,"ICON_DROP_IN",function(){return n._54}),i.d(t,"ICON_DROP_OUT",function(){return n._55}),i.d(t,"ICON_NO_DROP",function(){return n._56}),i.d(t,"ICONS",function(){return n._57}),i.d(t,"DETAILS_LABEL",function(){return n._58}),i.d(t,"ERROR_CONTENT",function(){return n._59}),i.d(t,"STATUS",function(){return n._60}),i.d(t,"BREADCRUMBS",function(){return n._61}),i.d(t,"RTL",function(){return n._62}),i.d(t,"DISPLAY_NONE",function(){return n._63}),i.d(t,"COLLAPSED",function(){return n._64}),i.d(t,"FULLROW",function(){return n._65}),i.d(t,"ICON_COLLAPSIBLE",function(){return n._66}),i.d(t,"SPLIT_BAR",function(){return n._67}),i.d(t,"HEADER_CHECK",function(){return n._68}),i.d(t,"OVERLAY",function(){return n._69}),i.d(t,"VALUE",function(){return n._70}),i.d(t,"isFile",function(){return n._71}),i.d(t,"modelChanged",function(){return n._72}),i.d(t,"initialEnd",function(){return n._73}),i.d(t,"finalizeEnd",function(){return n._74}),i.d(t,"createEnd",function(){return n._75}),i.d(t,"filterEnd",function(){return n._76}),i.d(t,"beforeDelete",function(){return n._77}),i.d(t,"pathDrag",function(){return n._78}),i.d(t,"deleteInit",function(){return n._79}),i.d(t,"deleteEnd",function(){return n._80}),i.d(t,"refreshEnd",function(){return n._81}),i.d(t,"resizeEnd",function(){return n._82}),i.d(t,"splitterResize",function(){return n._83}),i.d(t,"pathChanged",function(){return n._84}),i.d(t,"destroy",function(){return n._85}),i.d(t,"beforeRequest",function(){return n._86}),i.d(t,"upload",function(){return n._87}),i.d(t,"skipUpload",function(){return n._88}),i.d(t,"afterRequest",function(){return n._89}),i.d(t,"download",function(){return n._90}),i.d(t,"layoutRefresh",function(){return n._91}),i.d(t,"actionFailure",function(){return n._92}),i.d(t,"search",function(){return n._93}),i.d(t,"openInit",function(){return n._94}),i.d(t,"openEnd",function(){return n._95}),i.d(t,"selectionChanged",function(){return n._96}),i.d(t,"selectAllInit",function(){return n._97}),i.d(t,"clearAllInit",function(){return n._98}),i.d(t,"clearPathInit",function(){return n._99}),i.d(t,"layoutChange",function(){return n._100}),i.d(t,"sortByChange",function(){return n._101}),i.d(t,"nodeExpand",function(){return n._102}),i.d(t,"detailsInit",function(){return n._103}),i.d(t,"menuItemData",function(){return n._104}),i.d(t,"renameInit",function(){return n._105}),i.d(t,"renameEndParent",function(){return n._106}),i.d(t,"renameEnd",function(){return n._107}),i.d(t,"showPaste",function(){return n._108}),i.d(t,"hidePaste",function(){return n._109}),i.d(t,"selectedData",function(){return n._110}),i.d(t,"cutCopyInit",function(){return n._111}),i.d(t,"pasteInit",function(){return n._112}),i.d(t,"pasteEnd",function(){return n._113}),i.d(t,"cutEnd",function(){return n._114}),i.d(t,"hideLayout",function(){return n._115}),i.d(t,"updateTreeSelection",function(){return n._116}),i.d(t,"treeSelect",function(){return n._117}),i.d(t,"sortColumn",function(){return n._118}),i.d(t,"pathColumn",function(){return n._119}),i.d(t,"searchTextChange",function(){return n._120}),i.d(t,"beforeDownload",function(){return n._121}),i.d(t,"downloadInit",function(){return n._122}),i.d(t,"dropInit",function(){return n._123}),i.d(t,"dragEnd",function(){return n._124}),i.d(t,"dropPath",function(){return n._125}),i.d(t,"dragHelper",function(){return n._126}),i.d(t,"dragging",function(){return n._127}),i.d(t,"updateSelectionData",function(){return n._128}),i.d(t,"methodCall",function(){return n._129}),i.d(t,"permissionRead",function(){return n._130}),i.d(t,"permissionEdit",function(){return n._131}),i.d(t,"permissionEditContents",function(){return n._132}),i.d(t,"permissionCopy",function(){return n._133}),i.d(t,"permissionUpload",function(){return n._134}),i.d(t,"permissionDownload",function(){return n._135}),i.d(t,"FileManager",function(){return n._136}),i.d(t,"Toolbar",function(){return n._137}),i.d(t,"BreadCrumbBar",function(){return n._138}),i.d(t,"Virtualization",function(){return n._139}),i.d(t,"NavigationPane",function(){return n._140}),i.d(t,"DetailsView",function(){return n._141}),i.d(t,"LargeIconsView",function(){return n._142}),i.d(t,"createDialog",function(){return n._143}),i.d(t,"createExtDialog",function(){return n._144}),i.d(t,"createImageDialog",function(){return n._145}),i.d(t,"ContextMenu",function(){return n._146}),i.d(t,"read",function(){return n._147});i.d(t,"createFolder",function(){return n._148}),i.d(t,"filter",function(){return n._149}),i.d(t,"rename",function(){return n._150}),i.d(t,"paste",function(){return n._151}),i.d(t,"Delete",function(){return n._152}),i.d(t,"GetDetails",function(){return n._153}),i.d(t,"Search",function(){return n._154}),i.d(t,"Download",function(){return n._155}),i.d(t,"sortComparer",function(){return n._156}),i.d(t,"updatePath",function(){return n._157}),i.d(t,"getPath",function(){return n._158}),i.d(t,"getPathId",function(){return n._159}),i.d(t,"getPathNames",function(){return n._160}),i.d(t,"getParents",function(){return n._161}),i.d(t,"generatePath",function(){return n._162}),i.d(t,"removeActive",function(){return n._163}),i.d(t,"activeElement",function(){return n._164}),i.d(t,"addBlur",function(){return n._165}),i.d(t,"removeBlur",function(){return n._166}),i.d(t,"getModule",function(){return n._167}),i.d(t,"searchWordHandler",function(){return n._168}),i.d(t,"updateLayout",function(){return n._169}),i.d(t,"getTargetModule",function(){return n._170}),i.d(t,"refresh",function(){return n._171}),i.d(t,"openAction",function(){return n._172}),i.d(t,"getPathObject",function(){return n._173}),i.d(t,"copyFiles",function(){return n._174}),i.d(t,"cutFiles",function(){return n._175}),i.d(t,"fileType",function(){return n._176}),i.d(t,"getImageUrl",function(){return n._177}),i.d(t,"getFullPath",function(){return n._178}),i.d(t,"getName",function(){return n._179}),i.d(t,"getSortedData",function(){return n._180}),i.d(t,"getObject",function(){return n._181}),i.d(t,"createEmptyElement",function(){return n._182}),i.d(t,"getDirectories",function(){return n._183}),i.d(t,"setNodeId",function(){return n._184}),i.d(t,"setDateObject",function(){return n._185}),i.d(t,"getLocaleText",function(){return n._186}),i.d(t,"getCssClass",function(){return n._187}),i.d(t,"sortbyClickHandler",function(){return n._188}),i.d(t,"getSortField",function(){return n._189}),i.d(t,"setNextPath",function(){return n._190}),i.d(t,"openSearchFolder",function(){return n._191}),i.d(t,"pasteHandler",function(){return n._192}),i.d(t,"validateSubFolder",function(){return n._193}),i.d(t,"dropHandler",function(){return n._194}),i.d(t,"getParentPath",function(){return n._195}),i.d(t,"getDirectoryPath",function(){return n._196}),i.d(t,"doPasteUpdate",function(){return n._197}),i.d(t,"readDropPath",function(){return n._198}),i.d(t,"getDuplicateData",function(){return n._199}),i.d(t,"createVirtualDragElement",function(){return n._200}),i.d(t,"dragStopHandler",function(){return n._201}),i.d(t,"dragStartHandler",function(){return n._202}),i.d(t,"dragCancel",function(){return n._203}),i.d(t,"removeDropTarget",function(){return n._204}),i.d(t,"removeItemClass",function(){return n._205}),i.d(t,"scrollHandler",function(){return n._206}),i.d(t,"draggingHandler",function(){return n._207}),i.d(t,"objectToString",function(){return n._208}),i.d(t,"getItemName",function(){return n._209}),i.d(t,"updateRenamingData",function(){return n._210}),i.d(t,"doRename",function(){return n._211}),i.d(t,"doDownload",function(){return n._212}),i.d(t,"doDeleteFiles",function(){return n._213}),i.d(t,"doDownloadFiles",function(){return n._214}),i.d(t,"createDeniedDialog",function(){return n._215}),i.d(t,"getAccessClass",function(){return n._216}),i.d(t,"hasReadAccess",function(){return n._217}),i.d(t,"hasEditAccess",function(){return n._218}),i.d(t,"hasContentAccess",function(){return n._219}),i.d(t,"hasUploadAccess",function(){return n._220}),i.d(t,"hasDownloadAccess",function(){return n._221}),i.d(t,"createNewFolder",function(){return n._222}),i.d(t,"uploadItem",function(){return n._223})},function(e,t){e.exports=l},function(e,t){e.exports=d}])});
10
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("SyncfusionBase"),require("SyncfusionData"),require("SyncfusionPopups"),require("SyncfusionInputs"),require("SyncfusionNavigations"),require("SyncfusionButtons"),require("SyncfusionLists"),require("SyncfusionSplitbuttons"),require("SyncfusionGrids"),require("SyncfusionLayouts")):"function"==typeof define&&define.amd?define(["SyncfusionBase","SyncfusionData","SyncfusionPopups","SyncfusionInputs","SyncfusionNavigations","SyncfusionButtons","SyncfusionLists","SyncfusionSplitbuttons","SyncfusionGrids","SyncfusionLayouts"],t):"object"==typeof exports?exports.SyncfusionFilemanager=t(require("SyncfusionBase"),require("SyncfusionData"),require("SyncfusionPopups"),require("SyncfusionInputs"),require("SyncfusionNavigations"),require("SyncfusionButtons"),require("SyncfusionLists"),require("SyncfusionSplitbuttons"),require("SyncfusionGrids"),require("SyncfusionLayouts")):e.SyncfusionFilemanager=t(e.SyncfusionBase,e.SyncfusionData,e.SyncfusionPopups,e.SyncfusionInputs,e.SyncfusionNavigations,e.SyncfusionButtons,e.SyncfusionLists,e.SyncfusionSplitbuttons,e.SyncfusionGrids,e.SyncfusionLayouts)}(this,function(e,t,i,n,r,s,a,o,l,d){return function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var i={};return t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=37)}([function(t,i){t.exports=e},function(e,t,i){"use strict";function n(e,t){var i=/\.\S+/.test(e),n=/\.\S+/.test(t);if(i&&!n)return 1;if(!i&&n)return-1;var r=[],s=[];for((e+"").replace(/(\d+)|(\D+)/g,function(e,t,i){return r.push([t||1/0,i||""]),""}),(t+"").replace(/(\d+)|(\D+)/g,function(e,t,i){return s.push([t||1/0,i||""]),""});r.length&&s.length;){var a=r.shift(),o=s.shift(),l=a[0]-o[0]||a[1].localeCompare(o[1]);if(l)return l}return r.length-s.length}function r(e,t,n){var r=i.i(_e.getValue)("name",t),l=e.getAttribute("data-id"),d=i.i(_e.isNullOrUndefined)(l)?r:l;n.setProperties({path:s(e,d,n.hasId)},!0),n.pathId=a(e),n.pathNames=o(e,r)}function s(e,t,i){for(var n=l(e,t,!1,i),r="/",s=n.length-2,a=s;a>=0;a--)r+=n[a]+"/";return r}function a(e){for(var t=l(e,e.getAttribute("data-uid"),!0),i=[],n=t.length-1;n>=0;n--)i.push(t[n]);return i}function o(e,t){for(var i=l(e,t,!1),n=[],r=i.length-1;r>=0;r--)n.push(i[r]);return n}function l(e,t,n,r){for(var s=[t],a=e.parentNode;!i.i(_e.isNullOrUndefined)(a);){if(i.i(_e.matches)(a,"."+be.a)){var o=n?a.getAttribute("data-uid"):r?a.getAttribute("data-id"):i.i(_e.select)("."+be.b,a).textContent;s.push(o)}if(a=a.parentNode,a.classList.contains(be.c))break}return s}function d(e){var t=e.hasId?"id":"name",n="/",r=1;for(r;r<e.pathId.length;r++){var s=i.i(_e.getValue)(e.pathId[r],e.feParent);n+=i.i(_e.getValue)(t,s)+"/"}e.setProperties({path:n},!0)}function h(e){e.isCut&&(p(e),e.selectedNodes=[],e.actionRecords=[],e.enablePaste=!1,e.notify(ve.a,{}))}function c(e,t){if(t.isSearchCut=!1,t.actionRecords=[],t.activeElements=[],t.notify(ve.b,{}),0===t.activeElements.length)return!1;p(t);var n=t.activeElements;"navigationpane"!==t.activeModule?t.targetPath=t.path:t.targetPath=B(t.path);var r=0;if(n&&(f(t,n[0]),"cut"===e))for(;r<n.length;)u(n[r]),r++;for(r=0,t.selectedNodes=[],t.enablePaste=!0,t.notify(ve.c,{});r<t.activeRecords.length;)t.actionRecords.push(t.activeRecords[r]),t.selectedNodes.push(i.i(_e.getValue)("name",t.activeRecords[r])),r++;if((""!==t.breadcrumbbarModule.searchObj.element.value||t.isFiltered)&&"navigationpane"!==t.activeModule){t.selectedNodes=[],t.isSearchCut=!0;for(var s=0;s<t.selectedItems.length;)t.selectedNodes.push(t.selectedItems[s]),s++}return!0}function u(e){e.classList.add(be.d)}function p(e,t){for(var i=t?e.element.querySelectorAll("."+be.e):e.element.querySelectorAll("."+be.d),n=0;n<i.length;)i[n].classList.remove(t?be.e:be.d),n++}function f(e,t){t&&(t.classList.contains(be.f)?e.activeModule="detailsview":i.i(_e.closest)(t,"."+be.g)?e.activeModule="largeiconsview":e.activeModule="navigationpane")}function g(e,t,n){var r;if(0!==t.length||e.isFiltered||e.notify(ve.d,{args:e}),r="startsWith"===e.searchSettings.filterType?t+"*":"endsWith"===e.searchSettings.filterType?"*"+t:"*"+t+"*",e.searchWord=r,e.itemData=[_(e)],t.length>0){var s=e.searchSettings.ignoreCase,a=e.showHiddenItems;i.i(ye.h)(e,n?ve.e:ve.f,e.path,r,a,!s)}else e.isFiltered?i.i(ye.c)(e,ve.e):e.isSortByClicked?(e.notify(ve.e,{files:"Details"===e.oldView?e.detailsviewModule.gridObj.dataSource:e.largeiconsviewModule.allItems}),e.isSortByClicked=!1):i.i(ye.a)(e,n?ve.e:ve.f,e.path)}function m(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,g(e,i,!0)}function b(e,t){var n="";t&&(n=i.i(_e.closest)(t,"."+be.h+"."+be.i+" ."+be.j)?"detailsview":i.i(_e.closest)(t,"."+be.k)?"largeiconsview":t.classList.contains("e-fullrow")||t.classList.contains("e-icon-expandable")?"navigationpane":i.i(_e.closest)(t,".e-address-list-item")?"breadcrumbbar":""),e.targetModule=n}function v(e){e.itemData=[_(e)],he(e.itemData[0])?i.i(ye.a)(e,ve.h,e.path):le(e,e.itemData[0],ve.g)}function y(e){i.i(ye.a)(e,ve.i,e.path)}function _(e){return i.i(_e.getValue)(e.pathId[e.pathId.length-1],e.feParent)}function I(e){c("copy",e)&&(e.fileAction="copy")}function O(e){c("cut",e)&&(e.isCut=!0,e.fileAction="move")}function w(e){if(!i.i(_e.getValue)("isFile",e))return be.l;var t=["bmp","dib","jpg","jpeg","jpe","jfif","gif","tif","tiff","png","ico"],n=["mp3","wav","aac","ogg","wma","aif","fla","m4a"],r=["webm","mkv","flv","vob","ogv","ogg","avi","wmv","mp4","3gp"],s=["css","exe","html","js","msi","pdf","pptx","ppt","rar","zip","txt","docx","doc","xlsx","xls","xml","rtf","php"],a=i.i(_e.getValue)("type",e);a=a.toLowerCase(),-1!==a.indexOf(".")&&(a=a.split(".").join(""));return-1!==t.indexOf(a)?be.m:-1!==n.indexOf(a)?be.n:-1!==r.indexOf(a)?be.o:-1!==s.indexOf(a)?"e-fe-"+a:"e-fe-unknown e-fe-"+a}function D(e,t){var n,r=e.ajaxSettings.getImageUrl?e.ajaxSettings.getImageUrl:e.ajaxSettings.url,s=-1!==r.indexOf("?")?"&path=":"?path=",a=encodeURIComponent(i.i(_e.getValue)("name",t)),o=i.i(_e.getValue)("filterPath",t);if(e.hasId){var l=i.i(_e.getValue)("id",t);n=r+s+e.path+"&id="+l}else n=i.i(_e.isNullOrUndefined)(o)?r+s+e.path+a:r+s+encodeURIComponent(o.replace(/\\/g,"/"))+a;n=n+"&time="+(new Date).getTime().toString();var d={fileDetails:[t],imageUrl:n};return e.trigger("beforeImageLoad",d),d.imageUrl}function C(e,t,n){var r=i.i(_e.getValue)(e.hasId?"id":"name",t)+"/",s=i.i(_e.getValue)(e.hasId?"filterId":"filterPath",t);return i.i(_e.isNullOrUndefined)(s)?n+r:s.replace(/\\/g,"/")+r}function S(e,t){var n=i.i(_e.getValue)("name",t),r=i.i(_e.getValue)("filterPath",t);return""===e.breadcrumbbarModule.searchObj.element.value&&!e.isFiltered||i.i(_e.isNullOrUndefined)(r)||(r=r.replace(/\\/g,"/"),n=r.replace(e.path,"")+n),n}function x(e,t){if(0===t.length)return t;var n;n="None"!==e.sortOrder?(new Ie.Query).sortBy(e.sortBy,e.sortOrder.toLowerCase(),!0).group("isFile"):(new Ie.Query).group("isFile");var r=new Ie.DataManager(t).executeLocal(n);return i.i(_e.getValue)("records",r)}function j(e,t,n){var r=i.i(_e.getValue)(e.pathId[e.pathId.length-1],e.feFiles),s=(new Ie.Query).where(t,"equal",n);return new Ie.DataManager(r).executeLocal(s)[0]}function E(e,t,n){var r,s=i.i(_e.select)("#"+e.element.id+be.p,e.element),a=i.i(_e.select)("#"+e.element.id+be.q,s).offsetHeight;if(r=s.offsetHeight-a,"Details"===e.view&&(r-=i.i(_e.select)("."+be.r,s).offsetHeight),i.i(_e.isNullOrUndefined)(t.querySelector("."+be.s))){var o=i.i(_e.createElement)("div",{className:be.s}),l=i.i(_e.createElement)("div",{className:be.t}),d=i.i(_e.createElement)("div",{className:be.u}),h=i.i(_e.createElement)("div",{className:be.v});"Details"===e.view?t.querySelector("."+be.w).appendChild(o):t.appendChild(o),o.appendChild(l),o.appendChild(d),o.appendChild(h)}t.querySelector("."+be.s)&&(i.i(_e.isNullOrUndefined)(n.error)?e.isFiltered?(t.querySelector("."+be.u).innerHTML=M(e,"Filter-Empty"),t.querySelector("."+be.v).innerHTML=M(e,"Filter-Key")):""!==e.breadcrumbbarModule.searchObj.element.value?(t.querySelector("."+be.u).innerHTML=M(e,"Search-Empty"),t.querySelector("."+be.v).innerHTML=M(e,"Search-Key")):(t.querySelector("."+be.u).innerHTML=M(e,"Folder-Empty"),t.querySelector("."+be.v).innerHTML=M(e,"File-Upload")):(t.querySelector("."+be.u).innerHTML=M(e,"Access-Denied"),t.querySelector("."+be.v).innerHTML=M(e,"Access-Details")));var c=i.i(_e.select)("."+be.s,t);r=(r-c.offsetHeight)/2,c.style.marginTop=r+"px"}function P(e){return new Ie.DataManager(e).executeLocal((new Ie.Query).where(ve.j,"equal",!1,!1))}function N(e,t){for(var n=P(e.files),r=0,s=n.length;r<s;r++)i.i(_e.setValue)("_fm_id",t+"_"+r,n[r])}function R(e,t,n){for(var r=0;r<e.length;r++){var s=new Date(i.i(_e.getValue)("dateCreated",e[r])),a=new Date(i.i(_e.getValue)("dateModified",e[r]));i.i(_e.isNullOrUndefined)(n)&&(n="MM/dd/yyyy"),i.i(_e.setValue)("_fm_created",t.formatDate(s,{format:n}),e[r]),i.i(_e.setValue)("_fm_modified",t.formatDate(a,{format:n}),e[r])}}function M(e,t){var i=e.localeObj.getConstant(t);return""===i?t:i}function k(e,t){var n=e.cssClass;return n=i.i(_e.isNullOrUndefined)(n)||""===n?t:n+" "+t}function L(e,t){var i;e.isSortByClicked=!0,i=-1!==t.item.id.indexOf("ascending")||-1!==t.item.id.indexOf("descending")||-1!==t.item.id.indexOf("none"),i?e.sortOrder=T(t.item.id):e.sortBy=T(t.item.id,e),e.itemData=[_(e)],"Details"===e.view&&(e.isMobile?m(e,"Details"):(e.notify(ve.k,{module:"detailsview"}),e.isSortByClicked=!1)),"LargeIcons"===e.view&&m(e,"LargeIcons"),e.notify(ve.l,{})}function T(e,t){var i,n=e.substring(e.lastIndexOf("_")+1),r=n;switch(t&&(i=t.detailsViewSettings.columns),n){case"date":for(var s=0,a=i.length;s<a;s++){if("dateModified"===i[s].field||"dateCreated"===i[s].field){r=i[s].field;break}r="_fm_modified"}break;case"ascending":r="Ascending";break;case"descending":r="Descending";break;case"none":r="None"}return r}function A(e,t){for(var n=t.split("/"),r=e.originalPath.split("/"),s=i.i(_e.getValue)(e.pathId[0],e.feParent),a=i.i(_e.isNullOrUndefined)(i.i(_e.getValue)("id",s))?"name":"id",o=n.length-1,l=r.length-1;o<l;o++){var d=""===r[o+1]?ve.m:ve.n,h=""===r[o]?"/":e.path+r[o]+"/",c=j(e,a,r[o]);if(i.i(_e.isNullOrUndefined)(c))e.originalPath=h;else{var u=i.i(_e.getValue)("_fm_id",c);e.setProperties({path:h},!0),e.pathId.push(u),e.itemData=[c],e.pathNames.push(i.i(_e.getValue)("name",c))}i.i(ye.a)(e,d,e.path);break}}function F(e,t){e.originalPath=C(e,t,e.path);var n=i.i(_e.getValue)(e.pathId[0],e.feParent),r="fe_tree"==i.i(_e.getValue)("_fm_id",e.itemData[0]),s=i.i(_e.isNullOrUndefined)(i.i(_e.getValue)("id",n))?"name":"id",a=j(e,s,i.i(_e.getValue)("name",t));if(i.i(_e.isNullOrUndefined)(a)){if(r)return void A(e,e.path);e.notify(ve.o,{selectedNode:e.pathId[e.pathId.length-1]})}else{var o=i.i(_e.getValue)("_fm_id",a);e.setProperties({path:e.originalPath},!0),e.pathId.push(o),e.itemData=[a],e.pathNames.push(i.i(_e.getValue)("name",a))}i.i(ye.a)(e,e.path!==e.originalPath?ve.n:ve.m,e.path)}function V(e){if(e.isDragDrop=!1,0!==e.selectedNodes.length&&e.enablePaste){var t=""===e.folderPath?e.path:e.folderPath;if(!U(e,e.actionRecords,t,e.path))if("move"===e.fileAction&&e.targetPath!==t||"copy"===e.fileAction)e.notify(ve.p,{}),i.i(ye.e)(e,e.targetPath,e.selectedNodes,t,e.fileAction,[],e.actionRecords);else{e.enablePaste=!1,e.notify(ve.a,{}),p(e);var n={files:null,error:{code:"402",message:M(e,"Same-Folder-Error"),fileExists:null}};i.i(Oe.a)(e,"Error",n)}}}function U(e,t,n,r){for(var s=!1,a=0;a<t.length;a++)if(i.i(_e.getValue)("isFile",t[a])){var o=e.dragNodes[a],l=0;o&&(l=o.lastIndexOf("/"));var d="";if(l>0&&(d=r+o.substring(0,l+1)),d===n){var h={files:null,error:{code:"402",message:M(e,"Same-Folder-Error"),fileExists:null}};i.i(Oe.a)(e,"Error",h),s=!0;break}}else{var c=C(e,t[a],r);if(0===n.indexOf(c)){var h={files:null,error:{code:"402",message:M(e,"Sub-Folder-Error"),fileExists:null}};i.i(Oe.a)(e,"Error",h),s=!0;break}}return s}function H(e){if(e.isDragDrop=!0,0!==e.dragData.length){e.dragPath=e.dragPath.replace(/\\/g,"/"),e.dropPath=e.dropPath.replace(/\\/g,"/");U(e,e.dragData,e.dropPath,e.dragPath)||e.dragPath===e.dropPath||(e.itemData=[e.dropData],i.i(ye.e)(e,e.dragPath,e.dragNodes,e.dropPath,"move",[],e.dragData),e.notify(ve.p,{}))}}function B(e){for(var t=e.split("/"),i=t[0]+"/",n=1;n<t.length-2;n++)i+=t[n]+"/";return i}function z(e,t){var n=i.i(_e.getValue)(e.hasId?"id":"name",t.cwd)+"/",r=i.i(_e.getValue)(e.hasId?"filterId":"filterPath",t.cwd);return i.i(_e.isNullOrUndefined)(r)?e.path+n:""===r?e.hasId?n:"/":r.replace(/\\/g,"/")+n}function q(e,t,n){"move"===t&&(e.isDragDrop?e.notify(ve.r,n):(e.enablePaste=!1,e.notify(ve.a,{}),e.notify(ve.q,n))),0===e.duplicateItems.length&&(e.pasteNodes=[]);for(var r=0;r<n.files.length;r++)e.pasteNodes.push(n.files[r][e.hasId?"id":"name"]),e.isDragDrop&&e.droppedObjects.push(n.files[r]);e.duplicateItems=[],e.duplicateRecords=[],e.isDragDrop&&!e.isPasteError?e.isDropEnd=!0:e.isDropEnd=!1,!e.isDragDrop||e.path===e.dragPath||e.path===e.dropPath||e.isSearchDrag?(e.isPathDrag=!1,i.i(ye.a)(e,ve.s,e.path)):W(e),e.trigger("success",{action:t,result:n})}function W(e){var t=i.i(_e.getValue)("_fm_id",e.dropData);if(e.expandedId=t,e.itemData=[e.dropData],e.isPathDrag)e.notify(ve.t,e.itemData);else{if(e.navigationpaneModule){var n=i.i(_e.select)('[data-uid="'+t+'"]',e.navigationpaneModule.treeObj.element);if(!n){t=document.querySelector('[data-id = "'+i.i(_e.getValue)("id",e.dropData)+'"]').getAttribute("data-uid"),n=i.i(_e.select)('[data-uid="'+t+'"]',e.navigationpaneModule.treeObj.element)}r(n,e.dropData,e)}i.i(ye.a)(e,ve.u,e.dropPath)}}function K(e,t){for(var n=null,r=e.isDragDrop?e.dragData:e.actionRecords,s=0;s<r.length;s++)if(i.i(_e.getValue)("name",r[s])===t){n=r[s];break}return n}function G(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(ie(e,e.dragData[0]))}var i=e.createElement("div",{className:"e-fe-icon "+w(e.dragData[0])}),n=e.createElement("div",{className:"e-fe-name",innerHTML:e.dragData[0].name}),r=e.createElement("div",{className:"e-fe-content"});r.appendChild(i),r.appendChild(n);var s=e.createElement("div",{className:be.x});if(s.appendChild(r),e.dragNodes.length>1){var a=e.createElement("span",{className:"e-fe-count",innerHTML:e.dragNodes.length.toString(10)});s.appendChild(a)}e.virtualDragElement=s,e.element.appendChild(e.virtualDragElement)}function Y(e,t){var n=t;n.cancel=!1,null!=e.treeExpandTimer&&(window.clearTimeout(e.treeExpandTimer),e.treeExpandTimer=null),J(e),e.element.classList.remove("e-fe-drop","e-no-drop"),p(e),e.uploadObj.dropArea=i.i(_e.select)("#"+e.element.id+be.y,e.element);var r=i.i(_e.select)("."+be.x,e.element);r&&i.i(_e.detach)(r),b(e,t.target),e.notify(ve.v,t),p(e,"hover"),n.fileDetails=e.dragData,e.trigger("fileDragStop",n,function(t){!t.cancel&&!i.i(_e.isNullOrUndefined)(e.targetModule)&&""!==e.targetModule&&e.dragCount>2&&H(e),e.dragCount=0})}function Q(e,t,n){var r=t;if(r.cancel=!1,r.fileDetails=e.dragData,e.dragCount=0,e.droppedObjects=[],(!e.allowDragAndDrop||"navigationpane"===e.activeModule&&i.i(_e.closest)(t.element,"li").getAttribute("data-uid")===e.pathId[0])&&(r.cancel=!0),"navigationpane"===e.activeModule&&-1!==e.pathId.indexOf(i.i(_e.closest)(t.element,"li").getAttribute("data-uid"))?e.isPathDrag=!0:e.isPathDrag=!1,p(e),r.cancel)n.intDestroy(t.event),X(e);else if(!r.cancel){for(var s=0;s<e.activeElements.length;)u(e.activeElements[s]),s++;e.trigger("fileDragStart",r,function(i){i.cancel?(n.intDestroy(t.event),X(e)):e.uploadObj.dropArea=null})}}function X(e){p(e);var t=i.i(_e.select)("."+be.x,e.element);t&&i.i(_e.detach)(t)}function J(e){Z(e,be.z),Z(e,be.A)}function Z(e,t){for(var i=e.element.querySelectorAll("."+t),n=0;n<i.length;n++)i[n].classList.remove(t)}function $(e,t,n,r,s){var a,o=e.getBoundingClientRect(),l=i.i(_e.select)("."+n,e);r>=o.top+e.clientHeight-30&&!i.i(_e.isNullOrUndefined)(l)&&(a="navigationpane"===t.targetModule||"detailsview"===t.targetModule?l.offsetHeight/2.5:l.offsetHeight/4.5,e.scrollBy(0,a)),!i.i(_e.isNullOrUndefined)(l)&&s<=o.top+30&&(a="navigationpane"===t.targetModule||"detailsview"===t.targetModule?l.offsetHeight/2.5:l.offsetHeight/4.5,e.scrollBy(0,-a))}function ee(e,t){var n=t;n.fileDetails=e.dragData;var r=!1;b(e,t.target),J(e),null!=e.treeExpandTimer&&(window.clearTimeout(e.treeExpandTimer),e.treeExpandTimer=null),p(e,"hover");var s,a=null;"navigationpane"===e.targetModule?(a=i.i(_e.closest)(t.target,"li"),a.classList.add(be.e,be.z),r=!0,e.treeExpandTimer=window.setTimeout(function(){e.notify(ve.w,t)},800),s=e.navigationpaneModule.treeObj.element.parentElement,$(s,e,"e-level-2",t.event.screenY,t.event.y)):"detailsview"===e.targetModule?(a=i.i(_e.closest)(t.target,"tr"),a&&a.querySelector("."+be.l)&&!a.classList.contains(be.d)?a.classList.add(be.z):!a||a.querySelector("."+be.l)||a.classList.contains(be.d)||a.classList.add(be.A),r=!0,s=e.detailsviewModule.gridObj.element.querySelector(".e-content"),$(s,e,"e-row",t.event.screenY,t.event.y)):"largeiconsview"===e.targetModule?(a=i.i(_e.closest)(t.target,"li"),a&&a.querySelector("."+be.l)&&!a.classList.contains(be.d)&&a.classList.add(be.e,be.z),r=!0,s=e.largeiconsviewModule.element.firstElementChild,$(s,e,"e-large-icon",t.event.screenY,t.event.y)):"breadcrumbbar"===e.targetModule&&(r=!0),e.element.classList.remove("e-fe-drop","e-no-drop"),e.element.classList.add(r?"e-fe-drop":"e-no-drop"),e.dragCount=e.dragCount+1,e.trigger("fileDragging",n)}function te(e){for(var t="",n=Object.keys(e),r=0;r<n.length;r++)"message"!==n[r]&&(t+=(0===r?"":", ")+n[r]+": "+i.i(_e.getValue)(n[r],e));return t}function ie(e,t){return e.hasId?i.i(_e.getValue)("id",t):S(e,t)}function ne(e,t){e.itemData=[t],e.currentItemText=i.i(_e.getValue)("name",t),e.isFile=i.i(_e.getValue)("isFile",t),e.filterPath=i.i(_e.getValue)("filterPath",t)}function re(e){ce(e.itemData[0])?i.i(Oe.a)(e,"Rename"):le(e,e.itemData[0],ve.x)}function se(e){for(var t=e.itemData,n=0;n<t.length;n++)if(!fe(t[n]))return void le(e,t[n],ve.y);e.selectedItems.length>0&&i.i(ye.i)(e,e.path,e.selectedItems)}function ae(e,t,n){for(var r=0;r<t.length;r++)if(!ce(t[r]))return void le(e,t[r],ve.x);e.itemData=t,i.i(ye.f)(e,n,e.path,"delete")}function oe(e,t,n){for(var r=0;r<t.length;r++)if(!fe(t[r]))return void le(e,t[r],ve.y);e.itemData=t,n.length>0&&i.i(ye.i)(e,e.path,n)}function le(e,t,n){var r=i.i(_e.getValue)("message",i.i(_e.getValue)("permission",t));""===r&&(r=M(e,"Access-Message").replace("{0}",i.i(_e.getValue)("name",t)).replace("{1}",n));var s={error:{code:"401",fileExists:null,message:r}};i.i(Oe.a)(e,"Error",s)}function de(e){return he(e)?"e-fe-locked":"e-fe-locked e-fe-hidden"}function he(e){var t=i.i(_e.getValue)("permission",e);return!(t&&!i.i(_e.getValue)("read",t))}function ce(e){var t=i.i(_e.getValue)("permission",e);return!t||i.i(_e.getValue)("read",t)&&i.i(_e.getValue)("write",t)}function ue(e){var t=i.i(_e.getValue)("permission",e);return!t||i.i(_e.getValue)("read",t)&&i.i(_e.getValue)("writeContents",t)}function pe(e){var t=i.i(_e.getValue)("permission",e);return!t||i.i(_e.getValue)("read",t)&&i.i(_e.getValue)("upload",t)}function fe(e){var t=i.i(_e.getValue)("permission",e);return!t||i.i(_e.getValue)("read",t)&&i.i(_e.getValue)("download",t)}function ge(e){var t=e.itemData[0];ue(t)?i.i(Oe.a)(e,"NewFolder"):le(e,t,ve.z)}function me(e){var t=e.itemData[0];if(pe(t)){var i="#"+e.element.id+be.B;document.querySelector(i).click()}else le(e,t,ve.A)}t.a=n,t.b=r,t.c=s,t.d=a,t.e=o,t.f=l,t.g=d,t.h=h,t.i=c,t.j=u,t.k=p,t.l=f,t.m=g,t.n=m,t.o=b,t.p=v,t.q=y,t.r=_,t.s=I,t.t=O,t.u=w,t.v=D,t.w=C,t.x=S,t.y=x,t.z=j,t.A=E,t.B=P,t.C=N,t.D=R,t.E=M,t.F=k,t.G=L,t.H=T,t.I=A,t.J=F,t.K=V,t.L=U,t.M=H,t.N=B,t.O=z,t.P=q,t.Q=W,t.R=K,t.S=G,t.T=Y,t.U=Q,t.V=X,t.W=J,t.X=Z,t.Y=$,t.Z=ee,t._0=te,t._1=ie,t._2=ne,t._3=re,t._4=se,t._5=ae,t._6=oe,t._7=le,t._8=de,t._9=he,t._10=ce,t._11=ue,t._12=pe,t._13=fe,t._14=ge,t._15=me;var be=i(3),ve=i(4),ye=i(5),_e=i(0),Ie=(i.n(_e),i(8)),Oe=(i.n(Ie),i(6))},function(e,t,i){"use strict";var n=i(5);i.d(t,"a",function(){return n.a}),i.d(t,"b",function(){return n.b}),i.d(t,"c",function(){return n.c}),i.d(t,"d",function(){return n.d}),i.d(t,"e",function(){return n.e}),i.d(t,"f",function(){return n.f}),i.d(t,"g",function(){return n.g}),i.d(t,"h",function(){return n.h}),i.d(t,"i",function(){return n.i});var r=i(1);i.d(t,"j",function(){return r.a}),i.d(t,"k",function(){return r.b}),i.d(t,"l",function(){return r.c}),i.d(t,"m",function(){return r.d}),i.d(t,"n",function(){return r.e}),i.d(t,"o",function(){return r.f}),i.d(t,"p",function(){return r.g}),i.d(t,"q",function(){return r.h}),i.d(t,"r",function(){return r.i}),i.d(t,"s",function(){return r.j}),i.d(t,"t",function(){return r.k}),i.d(t,"u",function(){return r.l}),i.d(t,"v",function(){return r.m}),i.d(t,"w",function(){return r.n}),i.d(t,"x",function(){return r.o}),i.d(t,"y",function(){return r.p}),i.d(t,"z",function(){return r.q}),i.d(t,"A",function(){return r.r}),i.d(t,"B",function(){return r.s}),i.d(t,"C",function(){return r.t}),i.d(t,"D",function(){return r.u}),i.d(t,"E",function(){return r.v}),i.d(t,"F",function(){return r.w}),i.d(t,"G",function(){return r.x}),i.d(t,"H",function(){return r.y}),i.d(t,"I",function(){return r.z}),i.d(t,"J",function(){return r.A}),i.d(t,"K",function(){return r.B}),i.d(t,"L",function(){return r.C}),i.d(t,"M",function(){return r.D}),i.d(t,"N",function(){return r.E}),i.d(t,"O",function(){return r.F}),i.d(t,"P",function(){return r.G}),i.d(t,"Q",function(){return r.H}),i.d(t,"R",function(){return r.I}),i.d(t,"S",function(){return r.J}),i.d(t,"T",function(){return r.K}),i.d(t,"U",function(){return r.L}),i.d(t,"V",function(){return r.M}),i.d(t,"W",function(){return r.N}),i.d(t,"X",function(){return r.O}),i.d(t,"Y",function(){return r.P}),i.d(t,"Z",function(){return r.Q}),i.d(t,"_0",function(){return r.R}),i.d(t,"_1",function(){return r.S}),i.d(t,"_2",function(){return r.T}),i.d(t,"_3",function(){return r.U}),i.d(t,"_4",function(){return r.V}),i.d(t,"_5",function(){return r.W}),i.d(t,"_6",function(){return r.X}),i.d(t,"_7",function(){return r.Y}),i.d(t,"_8",function(){return r.Z}),i.d(t,"_9",function(){return r._0}),i.d(t,"_10",function(){return r._1}),i.d(t,"_11",function(){return r._2}),i.d(t,"_12",function(){return r._3}),i.d(t,"_13",function(){return r._4}),i.d(t,"_14",function(){return r._5}),i.d(t,"_15",function(){return r._6}),i.d(t,"_16",function(){return r._7}),i.d(t,"_17",function(){return r._8}),i.d(t,"_18",function(){return r._9}),i.d(t,"_19",function(){return r._10}),i.d(t,"_20",function(){return r._11}),i.d(t,"_21",function(){return r._12}),i.d(t,"_22",function(){return r._13}),i.d(t,"_23",function(){return r._14}),i.d(t,"_24",function(){return r._15})},function(e,t,i){"use strict";i.d(t,"O",function(){return n}),i.d(t,"p",function(){return r}),i.d(t,"_26",function(){return s}),i.d(t,"R",function(){return a}),i.d(t,"S",function(){return o}),i.d(t,"T",function(){return l}),i.d(t,"E",function(){return d}),i.d(t,"_27",function(){return h}),i.d(t,"I",function(){return c}),i.d(t,"F",function(){return u}),i.d(t,"_28",function(){return p}),i.d(t,"_29",function(){return f}),i.d(t,"J",function(){return g}),i.d(t,"_30",function(){return m}),i.d(t,"_31",function(){return b}),i.d(t,"_32",function(){return v}),i.d(t,"y",function(){return y}),i.d(t,"q",function(){return _}),i.d(t,"B",function(){return I}),i.d(t,"_33",function(){return O}),i.d(t,"_21",function(){return w}),i.d(t,"h",function(){return D}),i.d(t,"i",function(){return C}),i.d(t,"_34",function(){return S}),i.d(t,"D",function(){return x}),i.d(t,"_35",function(){return j}),i.d(t,"C",function(){return E}),i.d(t,"_13",function(){return P}),i.d(t,"_23",function(){return N}),i.d(t,"_36",function(){return R}),i.d(t,"_37",function(){return M}),i.d(t,"_38",function(){return k}),i.d(t,"k",function(){return L}),i.d(t,"_24",function(){return T}),i.d(t,"a",function(){return A}),i.d(t,"b",function(){return F}),i.d(t,"_11",function(){return V}),i.d(t,"_6",function(){return U}),i.d(t,"_5",function(){return H}),i.d(t,"d",function(){return B}),i.d(t,"_12",function(){return z}),i.d(t,"e",function(){return q}),i.d(t,"_16",function(){return W}),i.d(t,"_19",function(){return K}),i.d(t,"_14",function(){return G}),i.d(t,"_15",function(){return Y}),i.d(t,"_17",function(){return Q}),i.d(t,"f",function(){return X}),i.d(t,"_39",function(){return J}),i.d(t,"s",function(){return Z}),i.d(t,"u",function(){return $}),i.d(t,"v",function(){return ee}),i.d(t,"x",function(){return te}),i.d(t,"z",function(){return ie}),i.d(t,"A",function(){return ne}),i.d(t,"l",function(){return re}),i.d(t,"m",function(){return se}),i.d(t,"n",function(){return ae}),i.d(t,"o",function(){return oe}),i.d(t,"g",function(){return le}),i.d(t,"t",function(){return de}),i.d(t,"_40",function(){return he}),i.d(t,"_41",function(){return ce}),i.d(t,"_42",function(){return ue}),i.d(t,"_43",function(){return pe}),i.d(t,"r",function(){return fe}),i.d(t,"_44",function(){return ge}),i.d(t,"c",function(){return me}),i.d(t,"P",function(){return be}),i.d(t,"L",function(){return ve}),i.d(t,"Q",function(){return ye}),i.d(t,"w",function(){return _e}),i.d(t,"j",function(){return Ie}),i.d(t,"U",function(){return Oe}),i.d(t,"V",function(){return we}),i.d(t,"W",function(){return De}),i.d(t,"X",function(){return Ce}),i.d(t,"Y",function(){return Se}),i.d(t,"Z",function(){return xe}),i.d(t,"_0",function(){return je}),i.d(t,"_1",function(){return Ee}),i.d(t,"_2",function(){return Pe}),i.d(t,"_3",function(){return Ne}),i.d(t,"_4",function(){return Re}),i.d(t,"_7",function(){return Me}),i.d(t,"_8",function(){return ke}),i.d(t,"_9",function(){return Le}),i.d(t,"_45",function(){return Te}),i.d(t,"M",function(){return Ae}),i.d(t,"K",function(){return Fe}),i.d(t,"_22",function(){return Ve}),i.d(t,"_25",function(){return Ue}),i.d(t,"_46",function(){return He}),i.d(t,"_47",function(){return Be}),i.d(t,"_48",function(){return ze}),i.d(t,"_20",function(){return qe}),i.d(t,"_49",function(){return We}),i.d(t,"H",function(){return Ke}),i.d(t,"_50",function(){return Ge}),i.d(t,"_51",function(){return Ye}),i.d(t,"_52",function(){return Qe}),i.d(t,"_10",function(){return Xe}),i.d(t,"_53",function(){return Je}),i.d(t,"N",function(){return Ze}),i.d(t,"_54",function(){return $e}),i.d(t,"_55",function(){return et}),i.d(t,"_18",function(){return tt}),i.d(t,"_56",function(){return it}),i.d(t,"G",function(){return nt});var n="_toolbar",r="_layout",s="_navigation",a="_tree",o="_grid",l="_largeicons",d="_dialog",h="_alt_dialog",c="_img_dialog",u="_extn_dialog",p="_upload_dialog",f="_retry_dialog",g="_contextmenu",m="_sortby",b="_view",v="_splitter",y="_content",_="_breadcrumbbar",I="_upload",O="_retry",w="_search",D="e-filemanager",C="e-control",S="e-fe-cb-select",x="e-fe-popup",j="e-fe-mobile",E="e-fe-popup e-fe-mobile",P="e-fe-m-select",N="e-fe-m-filter",R="e-layout",M="e-navigation",k="e-layout-content",L="e-large-icons",T="e-toolbar-item",A="e-list-item",F="e-list-text",V="e-list-parent",U="e-icons e-fe-tick",H="e-icons e-fe-dot",B="e-blur",z="e-active",q="e-hover",W="e-focus",K="e-focused",G="e-check",Y="e-frame",Q="e-checkbox-wrapper",X="e-row",J="e-rowcell",Z="e-empty",$="e-empty-content",ee="e-empty-inner-content",te="e-fe-clone",ie="e-fe-drop-folder",ne="e-fe-drop-file",re="e-fe-folder",se="e-fe-image",ae="e-fe-music",oe="e-fe-video",le="e-large-icon",de="e-empty-icon e-fe-folder",he="e-empty-icon.e-fe-folder",ce="e-fe-folder",ue="e-items",pe="e-text-content",fe="e-gridheader",ge="e-templatecell",me="e-treeview",be="e-menu-item",ve="e-menu-icon",ye="e-caret",_e="e-content",Ie="e-gridcontent",Oe="e-list-parent",we="e-icons e-fe-open",De="e-icons e-fe-upload",Ce="e-icons e-fe-cut",Se="e-icons e-fe-copy",xe="e-icons e-fe-paste",je="e-icons e-fe-delete",Ee="e-icons e-fe-rename",Pe="e-icons e-fe-newfolder",Ne="e-icons e-fe-details",Re="e-icons e-fe-sort",Me="e-icons e-fe-refresh",ke="e-icons e-fe-select",Le="e-icons e-fe-download",Te="e-icons e-fe-options",Ae="e-icons e-fe-grid",Fe="e-icons e-fe-large",Ve="e-icons e-fe-breadcrumb",Ue="e-icons e-fe-clear",He="e-icons e-fe-drop-in",Be="e-icons e-fe-drop-out",ze="e-icons e-fe-no-drop",qe="e-icons",We="e-detailslabel",Ke="e-fe-errorcontent",Ge="e-status",Ye="e-address",Qe="e-rtl",Xe="e-display-none",Je="e-node-collapsed",Ze="e-fullrow",$e="e-icon-collapsible",et="e-split-bar",tt="e-headercheck",it="e-fe-overlay",nt="e-fe-value"},function(e,t,i){"use strict";i.d(t,"j",function(){return n}),i.d(t,"V",function(){return r}),i.d(t,"n",function(){return s}),i.d(t,"m",function(){return a}),i.d(t,"I",function(){return o}),i.d(t,"_3",function(){return l}),i.d(t,"_6",function(){return d}),i.d(t,"t",function(){return h}),i.d(t,"D",function(){return c}),i.d(t,"M",function(){return u}),i.d(t,"h",function(){return p}),i.d(t,"_0",function(){return f}),i.d(t,"Z",function(){return g}),i.d(t,"K",function(){return m}),i.d(t,"U",function(){return b}),i.d(t,"E",function(){return v}),i.d(t,"_7",function(){return y}),i.d(t,"C",function(){return _}),i.d(t,"F",function(){return I}),i.d(t,"_8",function(){return O}),i.d(t,"_1",function(){return w}),i.d(t,"B",function(){return D}),i.d(t,"f",function(){return C}),i.d(t,"S",function(){return S}),i.d(t,"i",function(){return x}),i.d(t,"H",function(){return j}),i.d(t,"R",function(){return E}),i.d(t,"Y",function(){return P}),i.d(t,"o",function(){return N}),i.d(t,"e",function(){return R}),i.d(t,"l",function(){return M}),i.d(t,"_4",function(){return k}),i.d(t,"T",function(){return L}),i.d(t,"N",function(){return T}),i.d(t,"Q",function(){return A}),i.d(t,"J",function(){return F}),i.d(t,"L",function(){return V}),i.d(t,"c",function(){return U}),i.d(t,"a",function(){return H}),i.d(t,"O",function(){return B}),i.d(t,"b",function(){return z}),i.d(t,"p",function(){return q}),i.d(t,"s",function(){return W}),i.d(t,"q",function(){return K}),i.d(t,"W",function(){return G}),i.d(t,"_5",function(){return Y}),i.d(t,"_9",function(){return Q}),i.d(t,"k",function(){return X}),i.d(t,"d",function(){return J}),i.d(t,"G",function(){return Z}),i.d(t,"_10",function(){return $}),i.d(t,"P",function(){return ee}),i.d(t,"v",function(){return te}),i.d(t,"r",function(){return ie}),i.d(t,"u",function(){return ne}),i.d(t,"_11",function(){return re}),i.d(t,"w",function(){return se}),i.d(t,"_2",function(){return ae}),i.d(t,"X",function(){return oe}),i.d(t,"g",function(){return le}),i.d(t,"x",function(){return de}),i.d(t,"z",function(){return he}),i.d(t,"_12",function(){return ce}),i.d(t,"A",function(){return ue}),i.d(t,"y",function(){return pe});var n="isFile",r="model-changed",s="initial-end",a="finalize-end",o="create-end",l="filter-end",d="before-delete",h="path-drag",c="delete-init",u="delete-end",p="refresh-end",f="resize-end",g="splitter-resize",m="path-changed",b="destroy",v="before-request",y="upload",_="skip-upload",I="after-request",O="download",w="layout-refresh",D="actionFailure",C="search",S="open-init",x="open-end",j="selection-changed",E="select-all-init",P="clear-all-init",N="clear-path-init",R="layout-change",M="sort-by-change",k="node-expand",L="details-init",T="menu-item-data",A="rename-init",F="rename-end-parent",V="rename-end",U="show-paste",H="hide-paste",B="selected-data",z="cut-copy-init",q="paste-init",W="paste-end",K="cut-end",G="hide-layout",Y="update-tree-selection",Q="select-node",X="sort-column",J="path-column",Z="search-change",$="before-download",ee="download-init",te="drop-init",ie="drag-end",ne="drop-path",re="drag-helper",se="dragging",ae="update-selection-data",oe="method-call",le="read",de="write",he="writeContents",ce="copy",ue="upload",pe="download"},function(e,t,i){"use strict";function n(e,t,n){for(var r=e.itemData,s=0;s<r.length;s++)i.i(D.isNullOrUndefined)(i.i(D.getValue)("hasChild",r[s]))&&i.i(D.setValue)("hasChild",!1,r[s]);c(e,{action:"read",path:n,showHiddenItems:e.showHiddenItems,data:r},p,t)}function r(e,t){c(e,{action:"create",path:e.path,name:t,data:e.itemData},g,t)}function s(e,t){var n={action:"filter",path:e.path,showHiddenItems:e.showHiddenItems,data:[i.i(x.r)(e)]},r=e.filterData?i.i(D.extend)(void 0,n,e.filterData):n;c(e,r,f,t,i.i(D.getValue)("action",r))}function a(e,t,i){var n,r;if(""!==e.breadcrumbbarModule.searchObj.element.value||e.isFiltered){var s=e.filterPath;e.hasId?(n=e.currentItemText,r=i):(s=s.replace(/\\/g,"/"),n=s.replace(t,"")+e.currentItemText,r=s.replace(t,"")+i)}else n=e.currentItemText,r=i;c(e,{action:"rename",path:t,name:n,newName:r,data:e.itemData,showFileExtension:e.showFileExtension},m,t)}function o(e,t,i,n,r,s,a){var o={action:r,path:t,targetData:e.itemData[0],targetPath:n,names:i,renameFiles:s,data:a};e.destinationPath=n,c(e,o,b,t,r,n)}function l(e,t,i,n){c(e,{action:n,path:i,names:t,data:e.itemData},v,i)}function d(e,t,i,n){c(e,{action:n,path:i,names:t,data:e.itemData},y,i,n)}function h(e){for(var t,n=e.detailsViewSettings.columns,r=0;r<n.length;r++)if("_fm_modified"===n[r].field){i.i(D.isNullOrUndefined)(n[r].format)||(t=n[r].format.toString());break}return t}function c(e,t,n,r,s,a){var o={url:e.ajaxSettings.url,type:"POST",mode:!0,dataType:"json",contentType:"application/json",data:JSON.stringify(t),onSuccess:null,onFailure:null,beforeSend:null},l={action:i.i(D.getValue)("action",t),ajaxSettings:o,cancel:!1};e.trigger("beforeSend",l,function(o){if(!o.cancel){e.notify(C.E,{});new D.Ajax({url:i.i(D.getValue)("url",o.ajaxSettings),type:i.i(D.getValue)("type",o.ajaxSettings),mode:i.i(D.getValue)("mode",o.ajaxSettings),dataType:i.i(D.getValue)("dataType",o.ajaxSettings),contentType:i.i(D.getValue)("contentType",o.ajaxSettings),data:i.i(D.getValue)("data",o.ajaxSettings),beforeSend:i.i(D.getValue)("beforeSend",o.ajaxSettings),onSuccess:function(l){if(i.i(D.isNullOrUndefined)(l)){var d={error:{fileExists:null,message:i.i(x.E)(e,"Server-Error")+" "+e.ajaxSettings.url,code:"406"},files:null};return void u(e,o,n,d,r,s,a)}"string"==typeof l&&(l=JSON.parse(l)),e.notify(C.F,{action:"success"});var c=e.expandedId?e.expandedId:e.pathId[e.pathId.length-1];if(!i.i(D.isNullOrUndefined)(l.cwd)&&"read"===i.i(D.getValue)("action",t)&&(l.cwd.name=1===e.pathId.length?e.rootAliasName||l.cwd.name:l.cwd.name,i.i(D.setValue)("_fm_id",c,l.cwd),i.i(D.setValue)(c,l.cwd,e.feParent),!i.i(D.isNullOrUndefined)(l.files)||"401"===l.error.code)){if(("finalize-end"===r||"initial-end"===r)&&0===e.pathNames.length){var p=i.i(D.getValue)(e.pathId[0],e.feParent);e.pathNames[0]=i.i(D.getValue)("name",p),e.hasId=!i.i(D.isNullOrUndefined)(i.i(D.getValue)("id",p))}"finalize-end"===r&&i.i(x.g)(e)}var f=new D.Internationalization(e.locale);if(!i.i(D.isNullOrUndefined)(l.files)){i.i(x.D)(l.files,f,h(e));for(var g=0,m=l.files.length;g<m;g++){var b=l.files[g];i.i(D.setValue)("_fm_iconClass",i.i(x.u)(b),b)}"read"===i.i(D.getValue)("action",t)&&(i.i(x.C)(l,c),i.i(D.setValue)(c,l.files,e.feFiles))}if(!i.i(D.isNullOrUndefined)(l.details)&&!i.i(D.isNullOrUndefined)(e.rootAliasName)){var v=e.rootAliasName||i.i(D.getValue)("name",l.details),y=i.i(D.getValue)("location",l.details).replace(new RegExp("/","g"),"\\");("/"===i.i(D.getValue)("path",t)||e.hasId&&1===i.i(D.getValue)("path",t).match(/[\/]/g).length)&&0===i.i(D.getValue)("names",t).length?(i.i(D.setValue)("name",v,l.details),y=v):y=y.replace(y.substring(0,y.indexOf("\\")),v),i.i(D.setValue)("location",y,l.details)}n(e,l,r,s,a),i.i(D.isNullOrUndefined)(l.files)||"path-changed"!==r&&"finalize-end"!==r&&"open-end"!==r&&"drop-path"!==r||e.notify(C.G,l),"function"==typeof i.i(D.getValue)("onSuccess",o.ajaxSettings)&&i.i(D.getValue)("onSuccess",o.ajaxSettings)()},onFailure:function(){var t={files:null,error:{code:"404",message:i.i(x.E)(e,"Network-Error")+" "+e.ajaxSettings.url,fileExists:null}};u(e,o,n,t,r,s,a)}}).send()}})}function u(e,t,n,r,s,a,o){e.notify(C.F,{action:"failure"}),n(e,r,s,a,o),"function"==typeof i.i(D.getValue)("onFailure",t.ajaxSettings)&&i.i(D.getValue)("onFailure",t.ajaxSettings)()}function p(e,t,n){if(i.i(D.isNullOrUndefined)(t.files))"401"===t.error.code&&(t.files=[],e.notify(n,t),e.notify(C.H,{})),_(e,t,"read"),e.setProperties({path:e.oldPath},!0),e.pathNames.pop();else{e.notify(n,t),e.notify(C.H,{});var r={action:"read",result:t};e.trigger("success",r)}if(e.isDragDrop&&e.isDropEnd){if(0!==e.droppedObjects.length){var r={fileDetails:e.droppedObjects};e.trigger("fileDropped",r)}e.isDropEnd=e.isDragDrop=!1}}function f(e,t,n,r){if(i.i(D.isNullOrUndefined)(t.files))_(e,t,r);else{e.notify(n,t);var s={action:r,result:t};e.trigger("success",s)}}function g(e,t,r){if(i.i(D.isNullOrUndefined)(t.files))if("400"===t.error.code){if(e.dialogObj&&e.dialogObj.visible){var s=i.i(D.select)("#newname",e.dialogObj.element),a=i.i(x.E)(e,"Validation-NewFolder-Exists").replace("{0}",'"'+s.value+'"');s.parentElement.nextElementSibling.innerHTML=a}else{var o={files:null,error:{code:"400",message:i.i(x.E)(e,"Validation-NewFolder-Exists").replace("{0}",'"'+r+'"'),fileExists:null}};i.i(S.a)(e,"Error",o)}var l={action:"create",error:t.error};e.trigger("failure",l)}else e.dialogObj&&e.dialogObj.visible&&e.dialogObj.hide(),_(e,t,"create");else{e.dialogObj&&e.dialogObj.visible&&e.dialogObj.hide(),e.createdItem=t.files[0],e.breadcrumbbarModule.searchObj.value="";var l={action:"create",result:t};e.trigger("success",l),e.itemData=[i.i(x.r)(e)],n(e,C.I,e.path)}}function m(e,t,r){if(i.i(D.isNullOrUndefined)(t.files))if("400"===t.error.code&&e.dialogObj&&e.dialogObj.visible){var a=i.i(D.select)("#rename",e.dialogObj.element),o=i.i(x.E)(e,"Validation-Rename-Exists").replace("{0}",'"'+e.currentItemText+'"');o=o.replace("{1}",'"'+a.value+'"'),a.parentElement.nextElementSibling.innerHTML=o;var l={action:"rename",error:t.error};e.trigger("failure",l)}else i.i(D.isNullOrUndefined)(e.dialogObj)||e.dialogObj.hide(),_(e,t,"rename");else{i.i(D.isNullOrUndefined)(e.dialogObj)||e.dialogObj.hide();var l={action:"rename",result:t};e.trigger("success",l),e.renamedItem=Array.isArray(t.files)?t.files[0]:t.files,"navigationpane"===e.activeModule?(e.pathId.pop(),e.itemData=[i.i(D.getValue)(e.pathId[e.pathId.length-1],e.feParent)],n(e,C.J,i.i(D.getValue)("filterPath",e.renamedItem).replace(/\\/g,"/")),e.itemData[0]=e.renamedItem,n(e,C.K,"/"===e.path?e.path:i.i(D.getValue)("filterPath",e.renamedItem).replace(/\\/g,"/")+e.renamedItem.name+"/"),i.i(D.getValue)("filterPath",e.renamedItem)===i.i(D.getValue)("filterPath",e.itemData[0])&&e.pathNames.length>1&&(e.pathNames[e.pathNames.length-1]=e.renameText)):(e.itemData=[i.i(x.r)(e)],""!==e.breadcrumbbarModule.searchObj.value?I(e,C.L,e.path,e.searchWord,e.showHiddenItems,!e.searchSettings.ignoreCase):e.isFiltered?s(e,C.L):n(e,C.L,e.path))}}function b(e,t,n,r){t.error&&t.error.fileExists?(e.fileLength=0,i.i(D.isNullOrUndefined)(t.files)||(e.isPasteError=!0,i.i(x.P)(e,r,t)),i.i(S.b)(e,"DuplicateItems",t.error.fileExists),"404"===t.error.code&&i.i(S.a)(e,"Error",t)):t.error||i.i(D.isNullOrUndefined)(t.files)?t.error&&!i.i(D.isNullOrUndefined)(t.files)?(e.isPasteError=!0,i.i(x.P)(e,r,t),i.i(S.a)(e,"Error",t)):_(e,t,r):(e.isPasteError=!1,i.i(x.P)(e,r,t))}function v(e,t,r){if(i.i(D.isNullOrUndefined)(t.files))_(e,t,"delete");else if(e.setProperties({path:r},!0),e.itemData=[i.i(x.r)(e)],n(e,C.M,e.path),t.error)_(e,t,"delete");else{var s={action:"delete",result:t};e.trigger("success",s)}}function y(e,t,n,r){if(i.i(D.isNullOrUndefined)(t.details))_(e,t,"details");else{i.i(S.a)(e,r,null,t.details);var s={action:"details",result:t};e.trigger("success",s)}}function _(e,t,n){i.i(S.a)(e,"Error",t);var r={action:n,error:t.error};e.trigger("failure",r)}function I(e,t,i,n,r,s){c(e,{action:"search",path:i,searchString:n,showHiddenItems:r,caseSensitive:s,data:e.itemData},O,t)}function O(e,t,n){if(i.i(D.isNullOrUndefined)(t.files))_(e,t,"search");else{e.notify(n,t);var r={action:"search",result:t};e.trigger("success",r)}}function w(e,t,n){var r=e.ajaxSettings.downloadUrl?e.ajaxSettings.downloadUrl:e.ajaxSettings.url,s={action:"download",path:t,names:n,data:e.itemData},a={url:r,type:"POST",contentType:"application/json",responseType:"blob",data:JSON.stringify(s),onSuccess:null,onFailure:null,beforeSend:null},o={data:s,cancel:!1,useFormPost:!0,ajaxSettings:a};e.trigger("beforeDownload",o,function(t){if(!t.cancel)if(t.useFormPost){var n=i.i(D.createElement)("form",{id:e.element.id+"_downloadForm",attrs:{action:r,method:"post",name:"downloadForm",download:""}}),s=i.i(D.createElement)("input",{id:e.element.id+"_hiddenForm",attrs:{name:"downloadInput",value:JSON.stringify(t.data),type:"hidden"}});n.appendChild(s),e.element.appendChild(n),document.forms.namedItem("downloadForm").submit(),e.element.removeChild(n)}else{var a,o,l=new D.Fetch({url:i.i(D.getValue)("url",t.ajaxSettings),type:i.i(D.getValue)("type",t.ajaxSettings),contentType:i.i(D.getValue)("contentType",t.ajaxSettings),responseType:i.i(D.getValue)("responseType",t.ajaxSettings),beforeSend:i.i(D.getValue)("beforeSend",t.ajaxSettings),onLoad:function(t){if(a=t.headers.get("Content-Disposition")){var n=a.match(/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/),r=n&&n[1];o=r?r.replace(/['"]/g,""):o}else o=e.itemData.length>1?"files.zip":i.i(D.getValue)("isFile",e.itemData[0])?i.i(D.getValue)("name",e.itemData[0]):i.i(D.getValue)("name",e.itemData[0])+".zip"},onSuccess:function(i){e.trigger("success",t);var n=i,r=URL.createObjectURL(n),s=document.createElement("a");s.href=r,s.download=o,document.body.appendChild(s),s.click(),document.body.removeChild(s)},onFailure:function(n){var r={error:{code:n.status.toString(),message:i.i(x.E)(e,"Network-Error")+" "+e.ajaxSettings.downloadUrl}};i.i(S.a)(e,"Error",r),e.trigger("failure",t)}});l.send(JSON.stringify(t.data))}})}t.a=n,t.b=r,t.c=s,t.d=a,t.e=o,t.f=l,t.g=d,t.h=I,t.i=w;var D=i(0),C=(i.n(D),i(4)),S=i(6),x=i(1)},function(e,t,i){"use strict";function n(e,t,n,r,s){var o=_(e,t,n,r,s);i.i(T.isNullOrUndefined)(e.dialogObj)?(e.dialogObj=new L.Dialog({beforeOpen:I.bind(this,e,o.dialogName),beforeClose:function(t){a(e,e.dialogObj,t,o.dialogName)},header:o.header,content:o.content,buttons:o.buttons,animationSettings:{effect:"None"},showCloseIcon:!0,closeOnEscape:!0,visible:!0,allowDragging:!0,isModal:!0,target:e.popupTarget?e.popupTarget:"#"+e.element.id,cssClass:i.i(U.F)(e,e.isMobile?F.C:F.D),width:"350px",open:o.open,close:o.close,enableRtl:e.enableRtl,enableHtmlSanitizer:e.enableHtmlSanitizer,locale:e.locale}),e.dialogObj.isStringTemplate=!0,e.dialogObj.appendTo("#"+e.element.id+F.E)):D(e,o)}function r(e,t,n,r){var s=d(e,t,n,r);e.isApplySame=!1,i.i(T.isNullOrUndefined)(e.extDialogObj)?(e.extDialogObj=new L.Dialog({beforeOpen:O.bind(this,e,s.dialogName),beforeClose:function(t){a(e,e.extDialogObj,t,s.dialogName)},content:s.content,header:s.header,closeOnEscape:!0,allowDragging:!0,animationSettings:{effect:"None"},target:e.popupTarget?e.popupTarget:"#"+e.element.id,cssClass:i.i(U.F)(e,e.isMobile?F.C:F.D),enableRtl:e.enableRtl,showCloseIcon:!0,isModal:!0,width:350,buttons:s.buttons,open:s.open,close:s.close,enableHtmlSanitizer:e.enableHtmlSanitizer,locale:e.locale}),e.extDialogObj.isStringTemplate=!0,e.extDialogObj.appendTo("#"+e.element.id+F.F)):(e.extDialogObj.header=s.header,e.extDialogObj.close=s.close,e.extDialogObj.open=s.open,e.extDialogObj.close=s.close,e.extDialogObj.content=s.content,e.extDialogObj.buttons=s.buttons,e.extDialogObj.enableRtl=e.enableRtl,e.extDialogObj.locale=e.locale,e.extDialogObj.beforeOpen=O.bind(this,e,s.dialogName),e.extDialogObj.beforeClose=function(t){a(e,e.extDialogObj,t,s.dialogName)},e.extDialogObj.dataBind(),e.extDialogObj.show())}function s(e,t,i,n){var r={cancel:i.cancel,popupName:n,popupModule:t};e.trigger("beforePopupOpen",r,function(e){i.cancel=e.cancel})}function a(e,t,i,n){var r={cancel:i.cancel,popupModule:t,popupName:n};e.trigger("beforePopupClose",r,function(t){i.cancel=t.cancel,i.cancel||!i.isInteracted||"Rename"!==n&&"Create Folder"!==n||e.trigger(V.B,{})})}function o(e,t,i){var n={popupModule:t,element:t.element,popupName:i};e.trigger("popupOpen",n)}function l(e,t,i){var n={popupModule:t,element:t.element,popupName:i};e.trigger("popupClose",n)}function d(e,t,n,s){var a,d,p,f={header:"",content:"",buttons:[],dialogName:""};switch(f.open=function(){o(e,e.extDialogObj,f.dialogName)},f.close=function(){l(e,e.extDialogObj,f.dialogName)},t){case"Extension":f.header=i.i(U.E)(e,"Header-Rename-Confirmation"),f.content="<div>"+i.i(U.E)(e,"Content-Rename-Confirmation")+"</div>",f.buttons=[{buttonModel:{isPrimary:!0,content:i.i(U.E)(e,"Button-Yes")},click:function(){e.extDialogObj.hide(),i.i(A.d)(e,s,e.renameText)}},{buttonModel:{content:i.i(U.E)(e,"Button-No")},click:function(){e.extDialogObj.hide(),e.dialogObj.hide()}}],f.dialogName="Extension Change";break;case"DuplicateItems":f.dialogName="Duplicate Items",e.replaceItems=n,d=e.replaceItems[e.fileLength],p=d.lastIndexOf("/"),d=-1===p?d:d.substring(p),f.header=i.i(U.E)(e,"Header-Duplicate"),a="<div>"+i.i(U.E)(e,"Content-Duplicate")+"</div>",f.content=a.replace("{0}",d),f.close=function(){if(!e.isDropEnd&&0===e.duplicateItems.length){var t={fileDetails:e.droppedObjects};e.trigger("fileDropped",t),e.isDropEnd=e.isDragDrop=!1}l(e,e.extDialogObj,f.dialogName)},f.buttons=[{buttonModel:{isPrimary:!0,content:i.i(U.E)(e,"Button-Yes")},click:function(){if(e.duplicateItems.push(e.replaceItems[e.fileLength]),e.duplicateRecords.push(i.i(U.R)(e,e.replaceItems[e.fileLength])),e.fileLength++,n[e.fileLength]){var t=e.replaceItems[e.fileLength],r=t.lastIndexOf("/");t=-1===r?t:t.substring(r),e.extDialogObj.content=a.replace("{0}",t),e.extDialogObj.show()}else{e.extDialogObj.hide();var s=e.isDragDrop?e.dragPath:e.targetPath,o=e.isDragDrop?e.dropPath:""===e.folderPath?e.path:e.folderPath,l=e.isDragDrop?"move":e.fileAction;i.i(A.e)(e,s,e.duplicateItems,o,l,e.duplicateItems,e.duplicateRecords)}}},{buttonModel:{content:i.i(U.E)(e,"Button-No")},click:function(){if(e.fileLength++,n[e.fileLength]){var t=e.replaceItems[e.fileLength],r=t.lastIndexOf("/");t=-1===r?t:t.substring(r),e.extDialogObj.content=a.replace("{0}",t),e.extDialogObj.show()}else if(e.extDialogObj.hide(),0!==e.duplicateItems.length){var s=e.isDragDrop?"move":e.fileAction,o=e.isDragDrop?e.dragPath:e.targetPath,l=e.isDragDrop?e.dropPath:""===e.folderPath?e.path:e.folderPath;i.i(A.e)(e,o,e.duplicateItems,l,s,e.duplicateItems,e.duplicateRecords)}}}];break;case"UploadRetry":f.dialogName="Retry Upload",f.header=i.i(U.E)(e,"Header-Retry"),f.content=e.retryFiles[0].name+'<div class="e-fe-retrycontent">'+i.i(U.E)(e,"Content-Retry")+"</div>",f.open=u.bind(this,e),f.close=function(){e.isRetryOpened=!1,c(e),l(e,e.extDialogObj,f.dialogName)},f.buttons=[{buttonModel:{isPrimary:!0,content:i.i(U.E)(e,"Button-Keep-Both")},click:function(){h(e,!0)}},{buttonModel:{isPrimary:!0,content:i.i(U.E)(e,"Button-Replace")},click:function(){h(e,!1)}},{buttonModel:{isPrimary:!0,content:i.i(U.E)(e,"Button-Skip")},click:function(){var t=0;e.isApplySame?(t=e.retryFiles.length,e.retryFiles=[],c(e)):(t=1,e.retryFiles.splice(0,1),0!==e.retryFiles.length?r(e,"UploadRetry"):c(e)),e.notify(V.C,{count:t})}}]}return f}function h(e,t){e.isApplySame?(t?p(e):f(e),c(e)):(e.retryArgs.push({action:t?"keepboth":"replace",file:e.retryFiles[0]}),e.uploadObj.retry(e.retryFiles[0]),e.retryFiles.splice(0,1),0!==e.retryFiles.length?r(e,"UploadRetry"):c(e))}function c(e){var t=!0;e.isRetryOpened?e.isRetryOpened=!1:t=!1;var n=i.i(T.select)(".e-dlg-checkbox",e.extDialogObj.element);n&&i.i(T.remove)(n),t?e.extDialogObj.hide():e.retryFiles=[]}function u(e,t){e.isRetryOpened=!0;var n=i.i(T.getValue)("element",t),r=i.i(T.select)(".e-dlg-content",n),s=e.createElement("div",{className:"e-dlg-checkbox"}),a=e.createElement("input",{id:e.element.id+"_applyall"});s.appendChild(a),r.appendChild(s),new B.CheckBox({label:i.i(U.E)(e,"ApplyAll-Label"),change:function(t){e.isApplySame=t.checked}}).appendTo("#"+e.element.id+"_applyall"),o(e,e.extDialogObj,"Retry Upload")}function p(e){for(;0!==e.retryFiles.length;)e.retryArgs.push({action:"keepboth",file:e.retryFiles[0]}),e.uploadObj.retry(e.retryFiles[0]),e.retryFiles.splice(0,1)}function f(e){for(;0!==e.retryFiles.length;)e.retryArgs.push({action:"replace",file:e.retryFiles[0]}),e.uploadObj.retry(e.retryFiles[0]),e.retryFiles.splice(0,1)}function g(e){var t=i.i(T.select)("#newname",e.dialogObj.element);t.focus(),t.value="";var n=t.value.length;t.setSelectionRange(0,n)}function m(e){var t=i.i(T.select)("#newname",e.dialogObj.element);t.parentElement.classList.contains("e-control-wrapper")||y(t,i.i(U.E)(e,"Content-NewFolder")),t.parentElement.nextElementSibling.innerHTML="",t.oninput=function(){j(e,t)},t.onkeyup=function(t){13===N(t)&&C(e)},g(e),o(e,e.dialogObj,"Create Folder")}function b(e){var t=i.i(T.select)("#rename",e.dialogObj.element);t.parentElement.classList.contains("e-control-wrapper")||y(t,i.i(U.E)(e,"Content-Rename")),t.parentElement.nextElementSibling.innerHTML="",t.oninput=function(){j(e,t)},t.onkeyup=function(t){13===N(t)&&S(e)},v(e,t),o(e,e.dialogObj,"Rename")}function v(e,t){t.focus();var i="";if(e.isFile&&!e.showFileExtension){var n=e.currentItemText.lastIndexOf(".");i=-1===n?e.currentItemText:e.currentItemText.substring(0,n)}else i=e.currentItemText;t.value=i,e.isFile&&e.showFileExtension&&-1!==t.value.indexOf(".")?t.setSelectionRange(0,t.value.lastIndexOf(".")):t.setSelectionRange(0,t.value.length)}function y(e,t){H.Input.createInput({element:e,properties:{placeholder:t}})}function _(e,t,n,r,s){var a,d,h,c,u,p,f={header:"",content:"",buttons:[],dialogName:""};switch(f.open=function(){o(e,e.dialogObj,f.dialogName)},f.close=function(){l(e,e.dialogObj,f.dialogName)},t=r&&!0===r.multipleFiles?"MultipleFileDetails":t){case"NewFolder":f.dialogName="Create Folder",f.header=i.i(U.E)(e,"Header-NewFolder"),f.content='<input type="text" value="New folder" id="newname"><div class="e-fe-error"></div>',f.buttons=[{buttonModel:{isPrimary:!0,content:i.i(U.E)(e,"Button-Create")},click:function(t){"keydown"!==t.type&&C(e)}}],f.open=m.bind(this,e);break;case"Delete":f.dialogName="Delete",e.selectedItems.length>1?(f.content=("<div>"+i.i(U.E)(e,"Content-Multiple-Delete")+"</div>").replace("{0}",e.selectedItems.length.toString()),f.header=i.i(U.E)(e,"Header-Multiple-Delete")):(f.content="<div>"+i.i(U.E)(e,e.isFile?"Content-Delete":"Content-Folder-Delete")+"</div>",f.header=i.i(U.E)(e,e.isFile?"Header-Delete":"Header-Folder-Delete")),f.buttons=[{buttonModel:{isPrimary:!0,content:i.i(U.E)(e,"Button-Yes")},click:function(t){x(e)}},{buttonModel:{content:i.i(U.E)(e,"Button-No")},click:function(){e.dialogObj.hide()}}];break;case"Rename":f.dialogName="Rename",f.header=i.i(U.E)(e,"Header-Rename"),f.content='<input type="text" class="e-input" id="rename"><div class="e-fe-error"></div>',f.buttons=[{buttonModel:{isPrimary:!0,content:i.i(U.E)(e,"Button-Save")},click:function(t){"keydown"!==t.type&&S(e)}}],f.open=b.bind(this,e);break;case"details":f.dialogName="File Details",h=new T.Internationalization(e.locale),d=h.formatDate(new Date(r.modified),{format:"MMMM dd, yyyy HH:mm:ss"}),a="",i.i(T.isNullOrUndefined)(r.permission)||(a="<tr><td>"+i.i(U.E)(e,"Permission")+'</td><td class="'+F.G+'" >'+i.i(U._0)(r.permission)+"</td></tr>"),f.header=r.name,f.content="<table><tr><td>"+i.i(U.E)(e,"Type")+'</td><td class="'+F.G+'" title="'+(r.isFile?"File":"Folder")+'">'+(r.isFile?"File":"Folder")+"</td></tr><tr><td>"+i.i(U.E)(e,"Size")+'</td><td><span class="'+F.G+'" title ="'+r.size+'">'+r.size+"</span></td></tr><tr><td>"+i.i(U.E)(e,"Location")+'</td><td class="'+F.G+'" title="'+r.location+'">'+r.location+"</td></tr><tr><td>"+i.i(U.E)(e,"Modified")+'</td><td class="'+F.G+'" >'+d+"</td></tr>"+a+"</table>",f.buttons=[{buttonModel:{isPrimary:!0,content:i.i(U.E)(e,"Button-Ok")},click:function(t){e.dialogObj.hide()}}];break;case"MultipleFileDetails":var g;f.dialogName="File Details",c=e.itemData.map(function(e){return g=e.name.indexOf(".")+1,0!==g||e.isFile?0!==g?e.name.substr(g).replace(" ",""):"undetermined":"Folder"}),void 0==c[0]&&(c=r.name.split(",").map(function(e){return g=e.indexOf(".")+1,0===g?"Folder":e.substr(g).replace(" ","")})),u=c.every(function(e,t,i){return e===i[0]})?"Folder"===c[0]?"Folder":c[0].toLocaleUpperCase()+" Type":"Multiple Types",p=r.location,f.header=r.name,f.content="<table><tr><td>"+i.i(U.E)(e,"Type")+':</td><td class="'+F.G+'">'+u+"</td></tr><tr><td>"+i.i(U.E)(e,"Size")+":</td><td>"+r.size+'<span class="'+F.G+'" title ="'+r.size+'"></span></td></tr><tr><td>'+i.i(U.E)(e,"Location")+':</td><td class="'+F.G+'" title="'+p+'">'+p+"</td></tr></table>",f.buttons=[{buttonModel:{isPrimary:!0,content:i.i(U.E)(e,"Button-Ok")},click:function(t){"keydown"!==t.type&&e.dialogObj.hide()}}];break;case"Error":e.notify(V.B,{}),f.dialogName="Error","401"===n.error.code?f.header='<span class="e-fe-icon e-fe-access-error"></span><div class="e-fe-access-header">'+i.i(U.E)(e,"Access-Denied")+"</div>":f.header=i.i(U.E)(e,"Error"),f.content='<div class="'+F.H+'">'+n.error.message+"</div>",f.buttons=[{buttonModel:{isPrimary:!0,content:i.i(U.E)(e,"Button-Ok")},click:function(t){e.dialogObj.hide()}}]}return f}function I(e,t,n){w(i.i(T.selectAll)(".e-btn",e.dialogObj.element)),s(e,e.dialogObj,n,t)}function O(e,t,n){w(i.i(T.selectAll)(".e-btn",e.extDialogObj.element)),s(e,e.extDialogObj,n,t)}function w(e){for(var t=0;t<e.length;t++)!function(t){e[t].onkeydown=function(e){13===e.keyCode&&e.preventDefault()},e[t].onkeyup=function(i){13===i.keyCode&&e[t].click()}}(t)}function D(e,t){e.dialogObj.header=t.header,e.dialogObj.content=t.content,e.dialogObj.buttons=t.buttons,e.dialogObj.enableRtl=e.enableRtl,e.dialogObj.open=t.open,e.dialogObj.close=t.close,e.dialogObj.beforeOpen=I.bind(this,e,t.dialogName),e.dialogObj.beforeClose=function(i){a(e,e.dialogObj,i,t.dialogName)},e.dialogObj.dataBind(),e.dialogObj.show()}function C(e){var t=i.i(T.select)("#newname",e.dialogObj.element);E(e,t),""===t.parentElement.nextElementSibling.innerHTML&&i.i(A.b)(e,t.value)}function S(e){var t=i.i(T.select)("#rename",e.dialogObj.element);if(E(e,t),""===t.parentElement.nextElementSibling.innerHTML){var n=t.value,s=e.currentItemText.lastIndexOf(".");if(e.isFile&&!e.showFileExtension){n+=-1===s?"":e.currentItemText.substr(s)}if(e.renameText=n,e.currentItemText===n)return void e.dialogObj.hide();var a="navigationpane"===e.activeModule?i.i(T.getValue)("filterPath",e.itemData[0]).replace(/\\/g,"/"):e.path;if(e.renamedId=i.i(T.getValue)("id",e.itemData[0]),e.isFile){var o=-1===s?"":e.currentItemText.substr(s),l=n.lastIndexOf("."),d=-1===l?"":n.substr(l);e.showFileExtension&&o!==d?r(e,"Extension",null,a):i.i(A.d)(e,a,n)}else i.i(A.d)(e,a,n)}}function x(e){e.dialogObj.hide(),e.notify(V.D,{})}function j(e,t){/[\/\\|*?"<>:]/.test(t.value)?P(e,t):""===t.value?t.parentElement.nextElementSibling.innerHTML=i.i(U.E)(e,"Validation-Empty"):t.parentElement.nextElementSibling.innerHTML=""}function E(e,t){j(e,t);var i=t.value.length-1;""===t.value||t.value.lastIndexOf(".")!==i&&t.value.lastIndexOf(" ")!==i||!e.showFileExtension&&-1!==t.value.lastIndexOf(".")&&0!==t.value.substring(t.value.indexOf(".")+1).length||P(e,t)}function P(e,t){var n=i.i(U.E)(e,"Validation-Invalid").replace("{0}",'"'+t.value+'"');e.enableHtmlSanitizer?t.parentElement.nextElementSibling.textContent=n:t.parentElement.nextElementSibling.innerHTML=n}function N(e){return e.keyCode?e.keyCode:e.which?e.which:e.charCode}function R(e,t,n){var r=i.i(T.createElement)("div",{className:"e-image-wrap"}),o=i.i(T.createElement)("img",{className:"e-image",attrs:{src:n,alt:t}});r.appendChild(o),i.i(T.isNullOrUndefined)(e.viewerObj)?(e.viewerObj=new L.Dialog({header:t,content:r,animationSettings:{effect:"None"},showCloseIcon:!0,closeOnEscape:!0,visible:!0,isModal:!0,width:"350px",height:"350px",target:e.popupTarget?e.popupTarget:"#"+e.element.id,cssClass:i.i(U.F)(e,e.isMobile?F.C:F.D),locale:e.locale,enableResize:!0,allowDragging:!0,enableHtmlSanitizer:e.enableHtmlSanitizer,position:{X:"center",Y:"center"},enableRtl:e.enableRtl,open:M.bind(this,e),close:function(){l(e,e.viewerObj,"Image Preview")},beforeOpen:function(t){s(e,e.viewerObj,t,"Image Preview")},beforeClose:function(t){a(e,e.viewerObj,t,"Image Preview")},resizing:k.bind(this,e),resizeStop:k.bind(this,e)}),e.viewerObj.isStringTemplate=!0,e.viewerObj.appendTo("#"+e.element.id+F.I)):(e.viewerObj.refresh(),e.viewerObj.header=t,e.viewerObj.content=r,e.viewerObj.enableRtl=e.enableRtl,e.viewerObj.dataBind(),e.viewerObj.show())}function M(e){setTimeout(function(){e.viewerObj&&e.viewerObj.element.focus()}),k(e),o(e,e.viewerObj,"Image Preview")}function k(e){var t=i.i(T.select)(".e-dlg-content",e.viewerObj.element),n=i.i(T.select)(".e-image-wrap",e.viewerObj.element),r=window.getComputedStyle(t,null),s=r?2*parseFloat(r.paddingRight):36,a=r?2*parseFloat(r.paddingBottom):20;n.style.width=t.offsetWidth-s+"px",n.style.height=t.offsetHeight-a+"px"}t.a=n,t.b=r,t.c=R;var L=i(9),T=(i.n(L),i(0)),A=(i.n(T),i(5)),F=i(3),V=i(4),U=i(1),H=i(10),B=(i.n(H),i(17));i.n(B)},function(e,t,i){"use strict";var n=i(29);i.d(t,"a",function(){return n.a});var r=i(35);i.d(t,"b",function(){return r.a}),i.d(t,"c",function(){return r.b}),i.d(t,"d",function(){return r.c});var s=i(34);i.d(t,"e",function(){return s.a});var a=i(32);i.d(t,"f",function(){return a.a}),i.d(t,"g",function(){return a.b});var o=i(14);i.d(t,"h",function(){return o.b}),i.d(t,"i",function(){return o.c}),i.d(t,"j",function(){return o.d}),i.d(t,"k",function(){return o.a});var l=i(33);i.d(t,"l",function(){return l.a});var d=i(15);i.d(t,"m",function(){return d.a});var h=i(30);i.d(t,"n",function(){return h.a})},function(e,i){e.exports=t},function(e,t){e.exports=i},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t,i){"use strict";i.d(t,"a",function(){return h});var n=i(0),r=(i.n(n),i(10)),s=(i.n(r),i(19)),a=(i.n(s),i(5)),o=i(1),l=i(4),d=i(3),h=function(){function e(e){this.addressPath="",this.addressBarLink="",this.searchTimer=null,this.searchWrapWidth=null,this.parent=e,this.keyConfigs={enter:"enter"},this.render()}return e.prototype.onPropertyChanged=function(e){if(e.module===this.getModuleName()||"common"===e.module)for(var t=0,r=Object.keys(e.newProp);t<r.length;t++){var s=r[t],a=e.newProp.searchSettings;switch(s){case"searchSettings":i.i(n.isNullOrUndefined)(a.allowSearchOnTyping)||this.searchEventBind(a.allowSearchOnTyping),!this.parent.breadcrumbbarModule.searchObj.value||""===this.parent.breadcrumbbarModule.searchObj.value||!i.i(n.isNullOrUndefined)(a.allowSearchOnTyping)&&i.i(n.isNullOrUndefined)(a.filterType)&&i.i(n.isNullOrUndefined)(a.ignoreCase)||i.i(o.m)(this.parent,this.parent.breadcrumbbarModule.searchObj.value,!1)}}},e.prototype.render=function(){this.addEventListener()},e.prototype.onPathChange=function(){var e=this.parent.pathNames,t=this.parent.path.split("/"),r=this.parent.createElement("ul",{className:"e-addressbar-ul"}),s=null,a=e.length;if(e.length>0){for(var o="",l=0;l<a;l++){var h=null;s=this.parent.createElement("li",{className:"e-address-list-item"});for(var c=0;c<=l;c++)o=o+t[c]+"/";if(s.setAttribute("data-utext",o),0!==l){var u=i.i(n.createElement)("span",{className:d._20});s.appendChild(u)}a-l!=1?(h=i.i(n.createElement)("a",{className:d.b}),s.setAttribute("tabindex","0")):h=i.i(n.createElement)("span",{className:d.b}),o="",h.innerText=e[l],s.appendChild(h),r.appendChild(s)}var p=this.parent.breadCrumbBarNavigation.querySelector(".e-addressbar-ul");i.i(n.isNullOrUndefined)(p)||(i.i(n.isNullOrUndefined)(this.subMenuObj)||this.subMenuObj.destroy(),i.i(n.remove)(p));var f=this.parent.breadCrumbBarNavigation.querySelector(".e-search-wrap");f?this.parent.breadCrumbBarNavigation.appendChild(r):this.parent.breadCrumbBarNavigation.insertBefore(r,f),this.updateBreadCrumbBar(r)}},e.prototype.updateBreadCrumbBar=function(e){for(var t=e.querySelectorAll("li"),a=this.parent.breadCrumbBarNavigation.querySelector(".e-addressbar-ul"),l=window.getComputedStyle(a,null),h=parseFloat(l.getPropertyValue("padding-right")),c=parseFloat(l.getPropertyValue("padding-left")),u=a.offsetWidth-h-c,p=this.parent.createElement("ul",{className:"e-addressbar-ul"}),f=0,g=[],m=0;m<t.length;m++){var b=t[m].clientWidth;g.push(b),f+=b}i.i(n.isNullOrUndefined)(a)||i.i(n.remove)(a);var v=this.parent.createElement("div");v.setAttribute("class","e-search-wrap");var y=this.parent.element.id+d._21,_=i.i(n.createElement)("input",{id:y,attrs:{autocomplete:"off","aria-label":i.i(o.E)(this.parent,"Search")}});v.appendChild(_);var I=this.parent.breadCrumbBarNavigation.querySelector(".e-search-wrap .e-input");if(i.i(n.isNullOrUndefined)(I)){this.parent.breadCrumbBarNavigation.appendChild(v);var O=i.i(n.createElement)("span",{className:"e-icons e-fe-search"});n.EventHandler.add(O,"click",this.onShowInput,this),_.parentElement.insertBefore(O,_),this.searchObj=new r.TextBox({value:"",showClearButton:!0,placeholder:i.i(o.E)(this.parent,"Search"),focus:this.onFocus.bind(this),blur:this.onBlur.bind(this)}),this.searchObj.appendTo("#"+this.parent.element.id+d._21),this.searchEventBind(this.parent.searchSettings.allowSearchOnTyping);var w=this.searchObj.element.nextElementSibling;n.EventHandler.add(w,"mousedown",this.searchChangeHandler.bind(this),this),n.EventHandler.add(this.searchObj.element,"keyup",this.onKeyUp.bind(this),this)}var D=this.parent.breadCrumbBarNavigation.querySelector(".e-search-wrap");if(u-=this.searchWrapWidth?this.searchWrapWidth:D.offsetWidth,f>u){for(var m=t.length;m--;){var C=u-g[m];if(!(C>40)){for(var S=[],x=0;x<=m;x++){var j=t[x];S.push({text:j.innerText,utext:j.getAttribute("data-utext")})}var E=this.parent.createElement("li",{className:"e-breadcrumb-menu"}),P={className:"e-breadcrumb-submenu"},N=this.parent.createElement("button",P);E.appendChild(N),p.insertBefore(E,p.querySelector("li")),this.subMenuObj=new s.DropDownButton({items:S,cssClass:"e-caret-hide e-submenu",iconCss:d._22,iconPosition:"Top",enableHtmlSanitizer:this.parent.enableHtmlSanitizer,beforeItemRender:this.addSubMenuAttributes.bind(this),select:this.subMenuSelectOperations.bind(this)}),this.subMenuObj.isStringTemplate=!0,this.subMenuObj.appendTo(N);break}p.insertBefore(t[m],p.querySelector("li")),u=C}this.parent.breadCrumbBarNavigation.insertBefore(p,D)}else this.parent.breadCrumbBarNavigation.insertBefore(e,D)},e.prototype.onFocus=function(){i.i(n.closest)(this.searchObj.element,".e-search-wrap").classList.add("e-focus")},e.prototype.onKeyUp=function(){this.parent.notify(l.d,{args:this.parent})},e.prototype.onBlur=function(){i.i(n.closest)(this.searchObj.element,".e-search-wrap").classList.remove("e-focus")},e.prototype.subMenuSelectOperations=function(e){var t={target:e.element};this.addressPathClickHandler(t)},e.prototype.addSubMenuAttributes=function(e){e.element.setAttribute("data-utext",i.i(n.getValue)("utext",e.item));var t=this.parent.createElement("a",{className:"e-list-text"});e.element.appendChild(t)},e.prototype.searchEventBind=function(e){e?(this.searchObj.input=this.searchChangeHandler.bind(this),this.searchObj.change=null):(this.searchObj.change=this.searchChangeHandler.bind(this),this.searchObj.input=null)},e.prototype.searchChangeHandler=function(e){var t=this;i.i(n.isNullOrUndefined)(e.value)||(this.parent.isFiltered=!1,this.parent.searchSettings.allowSearchOnTyping?(window.clearTimeout(this.searchTimer),this.searchTimer=window.setTimeout(function(){i.i(o.m)(t.parent,e.value,!1)},300)):i.i(o.m)(this.parent,e.value,!1))},e.prototype.addressPathClickHandler=function(e){var t=e.target;if("LI"===t.nodeName||"A"===t.nodeName){var r="LI"===t.nodeName?t.children[0]:t;if(!i.i(n.isNullOrUndefined)(r)){this.parent.isFiltered=!1;var s=this.updatePath(r);this.parent.itemData=[i.i(n.getValue)(this.parent.pathId[this.parent.pathId.length-1],this.parent.feParent)],this.triggerFileOpen(this.parent.itemData[0]),i.i(a.a)(this.parent,l.K,s);var o=this.parent.pathId[this.parent.pathId.length-1];this.parent.notify(l._5,{module:"treeview",selectedNode:o})}}},e.prototype.triggerFileOpen=function(e){var t={cancel:!1,fileDetails:e,module:"BreadCrumbBar"};delete t.cancel,this.parent.trigger("fileOpen",t)},e.prototype.onShowInput=function(){if(this.parent.isMobile)if(this.parent.element.classList.contains(d._23))i.i(n.removeClass)([this.parent.element],d._23),this.searchWrapWidth=null;else{var e=this.parent.breadCrumbBarNavigation.querySelector(".e-search-wrap");this.searchWrapWidth=e.offsetWidth,i.i(n.addClass)([this.parent.element],d._23),this.searchObj.element.focus()}},e.prototype.updatePath=function(e){var t=i.i(n.closest)(e,"li"),r=t.getAttribute("data-utext");this.addressBarLink=r;var s=this.addressBarLink.split("/"),a=this.parent.pathId,o=this.parent.pathNames;this.parent.pathId=[],this.parent.pathNames=[];for(var l="",d=0,h=s.length-1;d<h;d++)this.parent.pathId.push(a[d]),this.parent.pathNames.push(o[d]),l+=s[d]+"/";return this.parent.setProperties({path:l},!0),l},e.prototype.onUpdatePath=function(){this.onPathChange(),this.removeSearchValue()},e.prototype.onCreateEnd=function(){this.onPathChange()},e.prototype.onRenameEnd=function(){this.onPathChange()},e.prototype.onDeleteEnd=function(){this.onUpdatePath()},e.prototype.removeSearchValue=function(){this.parent.isFiltered=!1,!this.searchObj||""===this.searchObj.value&&""===this.searchObj.element.value||(this.searchObj.value="",this.searchObj.element.value="",this.searchObj.dataBind())},e.prototype.onResize=function(){this.onPathChange()},e.prototype.onPasteEnd=function(){this.onPathChange()},e.prototype.addEventListener=function(){this.keyboardModule=new n.KeyboardEvents(this.parent.breadCrumbBarNavigation,{keyAction:this.keyActionHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"}),this.parent.on(l.V,this.onPropertyChanged,this),n.EventHandler.add(this.parent.breadCrumbBarNavigation,"click",this.addressPathClickHandler,this),this.parent.on(l.U,this.destroy,this),this.parent.on(l.K,this.onUpdatePath,this),this.parent.on(l.m,this.onUpdatePath,this),this.parent.on(l.h,this.onUpdatePath,this),this.parent.on(l.i,this.onUpdatePath,this),this.parent.on(l.I,this.onCreateEnd,this),this.parent.on(l.L,this.onRenameEnd,this),this.parent.on(l.M,this.onDeleteEnd,this),this.parent.on(l.Z,this.onResize,this),this.parent.on(l.s,this.onPasteEnd,this),this.parent.on(l._0,this.onResize,this),this.parent.on(l.G,this.onSearchTextChange,this),this.parent.on(l.v,this.onDropInit,this),this.parent.on(l._1,this.onResize,this),this.parent.on(l.u,this.onPathChange,this)},e.prototype.keyActionHandler=function(e){switch(e.action){case"enter":this.addressPathClickHandler(e)}},e.prototype.removeEventListener=function(){this.keyboardModule.destroy(),this.parent.off(l.K,this.onUpdatePath),this.parent.off(l.m,this.onUpdatePath),this.parent.off(l.h,this.onUpdatePath),this.parent.off(l.i,this.onUpdatePath),this.parent.off(l.s,this.onPasteEnd),this.parent.off(l.I,this.onCreateEnd),this.parent.off(l.L,this.onRenameEnd),this.parent.off(l.M,this.onDeleteEnd),this.parent.off(l.Z,this.onResize),this.parent.off(l._0,this.onResize),this.parent.off(l.G,this.onSearchTextChange),this.parent.off(l.v,this.onDropInit),this.parent.off(l._1,this.onResize),this.parent.off(l.u,this.onPathChange)},e.prototype.onDropInit=function(e){if(this.parent.targetModule===this.getModuleName()){var t=e.target.closest("li");this.parent.dropPath=this.updatePath(t.children[0]),this.parent.dropData=i.i(n.getValue)(this.parent.pathId[this.parent.pathId.length-1],this.parent.feParent),this.triggerFileOpen(this.parent.dropData);var r=this.parent.pathId[this.parent.pathId.length-1];this.parent.notify(l._5,{module:"treeview",selectedNode:r})}},e.prototype.getModuleName=function(){return"breadcrumbbar"},e.prototype.destroy=function(){this.parent.isDestroyed||(this.removeEventListener(),i.i(n.isNullOrUndefined)(this.subMenuObj)||this.subMenuObj.destroy(),i.i(n.isNullOrUndefined)(this.searchObj)||this.searchObj.destroy())},e.prototype.onSearchTextChange=function(e){this.searchObj.element.placeholder=null!=this.parent.searchSettings.placeholder?this.parent.searchSettings.placeholder:i.i(o.E)(this.parent,"Search")+" "+i.i(o.E)(this.parent,e.cwd.name.toString())},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return f});var n=i(18),r=(i.n(n),i(0)),s=(i.n(r),i(8)),a=(i.n(s),i(9)),o=(i.n(a),i(4)),l=i(3),d=i(17),h=(i.n(d),i(5)),c=i(2),u=i(1),p=i(6),f=function(){function e(e){this.isInteraction=!0,this.uploadOperation=!1,this.count=0,this.isRendered=!0,this.tapCount=0,this.isSelectAllCalled=!1,this.isPasteOperation=!1,this.isInteracted=!0,this.parent=e,this.element=i.i(r.select)("#"+this.parent.element.id+l.T,this.parent.element),i.i(r.addClass)([this.element],l.k),this.addEventListener(),this.keyConfigs={end:"end",home:"home",tab:"tab",moveDown:"downarrow",moveLeft:"leftarrow",moveRight:"rightarrow",moveUp:"uparrow",ctrlEnd:"ctrl+end",ctrlHome:"ctrl+home",ctrlDown:"ctrl+downarrow",ctrlLeft:"ctrl+leftarrow",ctrlRight:"ctrl+rightarrow",ctrlUp:"ctrl+uparrow",shiftEnd:"shift+end",shiftHome:"shift+home",shiftDown:"shift+downarrow",shiftLeft:"shift+leftarrow",shiftRight:"shift+rightarrow",shiftUp:"shift+uparrow",csEnd:"ctrl+shift+end",csHome:"ctrl+shift+home",csDown:"ctrl+shift+downarrow",csLeft:"ctrl+shift+leftarrow",csRight:"ctrl+shift+rightarrow",csUp:"ctrl+shift+uparrow",space:"space",ctrlSpace:"ctrl+space",shiftSpace:"shift+space",csSpace:"ctrl+shift+space",ctrlA:"ctrl+a",enter:"enter",altEnter:"alt+enter",esc:"escape",del:"delete",ctrlX:this.parent.isMac?"cmd+x":"ctrl+x",ctrlC:this.parent.isMac?"cmd+c":"ctrl+c",ctrlV:this.parent.isMac?"cmd+v":"ctrl+v",f2:"f2",shiftdel:"shift+delete",back:"backspace",ctrlD:"ctrl+d"}}return e.prototype.render=function(e){if(this.parent.visitedItem=null,this.startItem=null,i.i(a.showSpinner)(this.parent.element),"LargeIcons"===this.parent.view){this.resetMultiSelect(),this.element.setAttribute("tabindex","0"),this.listObj&&(this.unWireEvents(),this.removeEventListener()),this.parent.notify(o.W,{});var t=i.i(r.select)("#"+this.parent.element.id+l.T,this.parent.element),d=i.i(r.select)("ul",t);if(d&&i.i(r.remove)(d),this.listObj={ariaAttributes:{itemRole:"option",listRole:"listbox",itemText:"",groupItemRole:"group",wrapperRole:""},showIcon:!0,fields:{text:"name",iconCss:"_fm_icon",imageUrl:"_fm_imageUrl",htmlAttributes:"_fm_htmlAttr"},sortOrder:this.parent.sortOrder,itemCreated:this.onItemCreated.bind(this),enableHtmlSanitizer:this.parent.enableHtmlSanitizer},this.items=[],this.items=this.renderList(e),this.parent.sortComparer&&"None"!==this.parent.sortBy?this.items=this.allItems=s.DataUtil.sort(this.items,this.parent.sortBy,this.comparer.bind(this)):this.items=this.allItems=i.i(u.y)(this.parent,this.items),t.classList.remove(l._10),this.parent.enableVirtualization&&this.allItems.length>0&&(this.element.style.height||this.adjustHeight(),this.parent.virtualizationModule.setUIVirtualization()),this.listElements=n.ListBase.createListFromJson(r.createElement,this.items,this.listObj),this.itemList=Array.prototype.slice.call(i.i(r.selectAll)("."+l.a,this.listElements)),this.element.appendChild(this.listElements),this.listElements.setAttribute("aria-label","listbox"),this.preventImgDrag(),this.createDragObj(),0===this.itemList.length){var h=this.element.querySelector("."+l._11);this.element.removeChild(h),i.i(u.A)(this.parent,this.element,e)}else 0!==this.itemList.length&&this.element.querySelector("."+l.s)&&this.element.removeChild(this.element.querySelector("."+l.s));!0===this.isPasteOperation&&(this.selectItems(this.parent.pasteNodes),this.isPasteOperation=!1),!0===this.uploadOperation&&(this.selectItems(this.parent.uploadItem),this.parent.setProperties({selectedItems:[]},!0),++this.count===this.parent.uploadItem.length&&(this.uploadOperation=!1,this.parent.uploadItem=[]));var c=this.element.querySelectorAll("."+l._12);0!==c.length&&(this.parent.activeModule="largeiconsview");for(var p=0;p<c.length;p++)c[p].setAttribute("aria-selected","true");this.adjustHeight(),this.element.style.maxHeight="100%",this.getItemCount(),this.addEventListener(),this.wireEvents(),this.parent.enableVirtualization&&this.allItems.length>0&&(this.parent.virtualizationModule.setUlElementHeight(),this.parent.virtualizationModule.wireScrollEvent(!1)),this.isRendered=!0,i.i(a.hideSpinner)(this.parent.element),this.parent.selectedItems.length&&this.checkItem()}},e.prototype.comparer=function(e,t,i,n){if("Descending"===this.parent.sortOrder){var r=e;e=t,t=r}return this.parent.sortComparer(e,t)},e.prototype.preventImgDrag=function(){for(var e=0;e<this.itemList.length;)this.itemList[e].querySelector("img")&&(this.itemList[e].ondragstart=function(){return!1}),e++},e.prototype.createDragObj=function(){var e=this;this.listObj&&(this.parent.allowDragAndDrop?(this.dragObj&&this.dragObj.destroy(),this.dragObj=new r.Draggable(this.listElements,{enableTailMode:!0,distance:5,enableAutoScroll:!1,dragTarget:"."+l.g,helper:this.dragHelper.bind(this),cursorAt:this.parent.dragCursorPosition,dragArea:this.parent.element,dragStop:c._2.bind(this,this.parent),drag:c._8.bind(this,this.parent),clone:!0,dragStart:function(t){i.i(c._3)(e.parent,t,e.dragObj)}})):this.dragObj&&!this.parent.allowDragAndDrop&&this.dragObj.destroy())},e.prototype.dragHelper=function(e){var t=e.sender.target,n=i.i(r.closest)(t,".e-list-item");if(!n)return null;n&&!n.classList.contains("e-active")&&this.setFocus(n);var s=this.element.querySelectorAll("."+l._12);this.parent.activeElements=[],this.parent.dragData=[];for(var a=0;a<s.length;a++)this.parent.dragData.push(this.getItemObject(s[a])),this.parent.activeElements.push(s[a]);return i.i(c.u)(this.parent,n),this.parent.dragPath=this.parent.path,i.i(c._1)(this.parent),this.parent.virtualDragElement},e.prototype.onDropInit=function(e){if(this.parent.targetModule===this.getModuleName()){var t=i.i(r.closest)(e.target,".e-list-item"),n=i.i(r.getValue)(this.parent.pathId[this.parent.pathId.length-1],this.parent.feParent);if(t){var s=this.getItemObject(t);this.parent.dropPath=s.isFile?this.parent.path:i.i(c.F)(this.parent,s,this.parent.path),this.parent.dropData=s.isFile?n:s}else this.parent.dropPath=this.parent.path,this.parent.dropData=n}},e.prototype.getModuleName=function(){return"largeiconsview"},e.prototype.adjustHeight=function(){var e=i.i(r.select)("#"+this.parent.element.id+l.y,this.parent.element),t=i.i(r.select)("#"+this.parent.element.id+l.q,this.parent.element);this.element.style.height=e.offsetHeight-t.offsetHeight+"px"},e.prototype.onItemCreated=function(e){if(e.item.removeAttribute("aria-level"),!this.parent.showFileExtension&&i.i(r.getValue)("isFile",e.curData)){var t=e.item.querySelector("."+l.b),n=i.i(r.getValue)("name",e.curData),s=i.i(r.getValue)("type",e.curData);t.innerHTML=n.substr(0,n.length-s.length)}this.renderCheckbox(e);var a={element:e.item,fileDetails:e.curData,module:"LargeIconsView"};this.parent.trigger("fileLoad",a)},e.prototype.renderCheckbox=function(e){if(this.parent.showItemCheckBoxes){var t=i.i(d.createCheckBox)(r.createElement,!1,{checked:!1,cssClass:"e-small"});t.setAttribute("role","checkbox"),t.setAttribute("aria-checked","false"),t.setAttribute("aria-label","checkbox"),e.item.firstElementChild.insertBefore(t,e.item.firstElementChild.childNodes[0])}},e.prototype.onLayoutChange=function(e){if("LargeIcons"===this.parent.view){if(this.destroy(),this.parent.enableVirtualization&&this.parent.setProperties({selectedItems:[]},!0),this.render(e),"layout-change"===i.i(r.getValue)("name",e)&&"move"===this.parent.fileAction&&this.parent.isCut&&this.parent.selectedNodes&&0!==this.parent.selectedNodes.length)for(var t=this.getIndexes(this.parent.selectedNodes),n=0;n<t.length;)i.i(c.s)(this.itemList[t[n]]),n++;0!==this.element.querySelectorAll("."+l._12).length&&this.element.focus(),this.checkItem(),this.parent.isLayoutChange=!1}else this.element.setAttribute("tabindex","-1")},e.prototype.checkItem=function(){var e=this.element.querySelectorAll("."+l._12);if(e)for(var t=0;t<e.length;)this.checkState(e[t],!0),t++},e.prototype.renderList=function(e){for(var t=0,n=JSON.parse(JSON.stringify(e.files));t<n.length;){var s=i.i(u.u)(n[t]),a=i.i(r.getValue)("name",n[t]),o=i.i(c._10)(this.parent,n[t]),d=this.parent.selectedItems&&-1!==this.parent.selectedItems.indexOf(o)?l.g+" e-active":l.g;if(i.i(u._10)(n[t])||(d+=" "+i.i(c._17)(n[t])),s===l.m&&this.parent.showThumbnail&&i.i(u._9)(n[t])){var h=i.i(u.v)(this.parent,n[t]);i.i(r.setValue)("_fm_imageUrl",h,n[t]),i.i(r.setValue)("_fm_imageAttr",{alt:a},n[t])}else i.i(r.setValue)("_fm_icon",s,n[t]);i.i(r.setValue)("_fm_htmlAttr",{class:d,title:a},n[t]),t++}return n},e.prototype.onFinalizeEnd=function(e){this.render(e)},e.prototype.onCreateEnd=function(e){"LargeIcons"===this.parent.view&&(this.onLayoutChange(e),this.clearSelect(),this.selectItems([i.i(r.getValue)(this.parent.hasId?"id":"name",this.parent.createdItem)]),this.parent.createdItem=null,this.parent.largeiconsviewModule.element.focus(),this.parent.activeModule="largeiconsview")},e.prototype.onSelectedData=function(){"largeiconsview"===this.parent.activeModule&&this.updateSelectedData()},e.prototype.onDeleteInit=function(){"largeiconsview"===this.parent.activeModule&&i.i(h.f)(this.parent,this.parent.selectedItems,this.parent.path,"delete")},e.prototype.onDeleteEnd=function(e){"LargeIcons"===this.parent.view&&(this.onLayoutChange(e),this.parent.setProperties({selectedItems:[]},!0),this.clearSelect())},e.prototype.onRefreshEnd=function(e){"LargeIcons"===this.parent.view&&this.onLayoutChange(e)},e.prototype.onRenameInit=function(){"largeiconsview"===this.parent.activeModule&&1===this.parent.selectedItems.length&&this.updateRenameData()},e.prototype.onPathChanged=function(e){this.parent.isCut=!1,""===this.parent.breadcrumbbarModule.searchObj.element.value&&(this.parent.searchedItems=[]),"LargeIcons"===this.parent.view&&(i.i(c.t)(this.parent),this.parent.setProperties({selectedItems:[]},!0),this.onLayoutChange(e),this.parent.renamedItem&&(this.clearSelect(),this.addSelection(this.parent.renamedItem),this.parent.renamedItem=null))},e.prototype.onOpenInit=function(e){"largeiconsview"===this.parent.activeModule&&this.doOpenAction(e.target)},e.prototype.onHideLayout=function(){"LargeIcons"!==this.parent.view&&this.element&&this.element.classList.add(l._10)},e.prototype.onSelectAllInit=function(){if("LargeIcons"===this.parent.view){this.startItem=this.getFirstItem();var e=this.getLastItem(),t={ctrlKey:!0,shiftKey:!0};this.doSelection(e,t),this.isInteraction=!0,this.isInteracted=!0}},e.prototype.onClearAllInit=function(){"LargeIcons"===this.parent.view&&(this.clearSelection(),this.isInteraction=!0,this.isInteracted=!0)},e.prototype.onBeforeRequest=function(){this.isRendered=!1},e.prototype.onAfterRequest=function(){this.isRendered=!0},e.prototype.onSearch=function(e){"LargeIcons"===this.parent.view&&(this.parent.setProperties({selectedItems:[]},!0),this.parent.notify(o.H,{}),this.parent.searchedItems=e.files,this.onLayoutChange(e))},e.prototype.onLayoutRefresh=function(){"LargeIcons"===this.parent.view&&this.adjustHeight()},e.prototype.onUpdateSelectionData=function(){"LargeIcons"===this.parent.view&&this.updateSelectedData()},e.prototype.onPathColumn=function(){"LargeIcons"!==this.parent.view||i.i(r.isNullOrUndefined)(this.listObj)||""!==this.parent.breadcrumbbarModule.searchObj.element.value||this.parent.isFiltered||"filterPath"!==this.parent.sortBy||(this.parent.sortBy="name",this.parent.notify(o.l,{}))},e.prototype.removeEventListener=function(){this.parent.isDestroyed||(this.parent.off(o.d,this.onPathColumn),this.parent.off(o.m,this.onFinalizeEnd),this.parent.off(o.I,this.onCreateEnd),this.parent.off(o.O,this.onSelectedData),this.parent.off(o.D,this.onDeleteInit),this.parent.off(o.M,this.onDeleteEnd),this.parent.off(o.h,this.onRefreshEnd),this.parent.off(o.K,this.onPathChanged),this.parent.off(o.e,this.onLayoutChange),this.parent.off(o.f,this.onSearch),this.parent.off(o.S,this.onOpenInit),this.parent.off(o.i,this.onPathChanged),this.parent.off(o.V,this.onPropertyChanged),this.parent.off(o.X,this.onMethodCall),this.parent.off(o.B,this.onActionFailure),this.parent.off(o.Q,this.onRenameInit),this.parent.off(o.L,this.onPathChanged),this.parent.off(o.W,this.onHideLayout),this.parent.off(o.R,this.onSelectAllInit),this.parent.off(o.Y,this.onClearAllInit),this.parent.off(o.N,this.onMenuItemData),this.parent.off(o.E,this.onBeforeRequest),this.parent.off(o.F,this.onAfterRequest),this.parent.off(o.Z,this.splitterResizeHandler),this.parent.off(o._0,this.resizeHandler),this.parent.off(o.p,this.onpasteInit),this.parent.off(o.s,this.onpasteEnd),this.parent.off(o.b,this.oncutCopyInit),this.parent.off(o.v,this.onDropInit),this.parent.off(o.T,this.onDetailsInit),this.parent.off(o._1,this.onLayoutRefresh),this.parent.off(o.u,this.onDropPath),this.parent.off(o._2,this.onUpdateSelectionData),this.parent.off(o._3,this.onPathChanged))},e.prototype.addEventListener=function(){this.parent.on(o.d,this.onPathColumn,this),this.parent.on(o.m,this.onFinalizeEnd,this),this.parent.on(o.I,this.onCreateEnd,this),this.parent.on(o.h,this.onRefreshEnd,this),this.parent.on(o.O,this.onSelectedData,this),this.parent.on(o.K,this.onPathChanged,this),this.parent.on(o.D,this.onDeleteInit,this),this.parent.on(o.p,this.onpasteInit,this),this.parent.on(o.M,this.onDeleteEnd,this),this.parent.on(o.e,this.onLayoutChange,this),this.parent.on(o.f,this.onSearch,this),this.parent.on(o.S,this.onOpenInit,this),this.parent.on(o.Q,this.onRenameInit,this),this.parent.on(o.L,this.onPathChanged,this),this.parent.on(o.i,this.onPathChanged,this),this.parent.on(o.V,this.onPropertyChanged,this),this.parent.on(o.X,this.onMethodCall,this),this.parent.on(o.B,this.onActionFailure,this),this.parent.on(o.W,this.onHideLayout,this),this.parent.on(o.R,this.onSelectAllInit,this),this.parent.on(o.Y,this.onClearAllInit,this),this.parent.on(o.N,this.onMenuItemData,this),this.parent.on(o.E,this.onBeforeRequest,this),this.parent.on(o.F,this.onAfterRequest,this),this.parent.on(o.v,this.onDropInit,this),this.parent.on(o.T,this.onDetailsInit,this),this.parent.on(o.Z,this.splitterResizeHandler,this),this.parent.on(o._0,this.resizeHandler,this),this.parent.on(o.s,this.onpasteEnd,this),this.parent.on(o.b,this.oncutCopyInit,this),this.parent.on(o._1,this.onLayoutRefresh,this),this.parent.on(o.u,this.onDropPath,this),this.parent.on(o._2,this.onUpdateSelectionData,this),this.parent.on(o._3,this.onPathChanged,this)},e.prototype.onActionFailure=function(){this.isInteraction=!0,this.isInteracted=!0},e.prototype.onMenuItemData=function(e){if(this.parent.activeModule===this.getModuleName()){var t=i.i(r.closest)(e.target,"li");this.parent.itemData=[this.getItemObject(t)]}},e.prototype.onDetailsInit=function(){this.parent.activeModule===this.getModuleName()&&(0!==this.parent.selectedItems.length?this.updateSelectedData():this.parent.itemData=[i.i(r.getValue)(this.parent.pathId[this.parent.pathId.length-1],this.parent.feParent)])},e.prototype.onpasteInit=function(){this.parent.activeModule===this.getModuleName()&&(this.parent.itemData=""===this.parent.folderPath?[i.i(c.A)(this.parent)]:[this.getItemObject(i.i(r.select)(".e-active",this.element))])},e.prototype.oncutCopyInit=function(){if(this.parent.activeModule===this.getModuleName()){var e=this.element.querySelectorAll("."+l._12);this.parent.activeRecords=[],this.parent.activeElements=[];for(var t=0;t<e.length;t++)this.parent.activeElements.push(e[t]),this.parent.activeRecords.push(this.getItemObject(e[t]))}},e.prototype.onpasteEnd=function(e){"LargeIcons"===this.parent.view&&(this.isPasteOperation=!0,this.parent.path!==this.parent.destinationPath&&this.parent.path!==i.i(c.X)(this.parent,e)||this.onPathChanged(e))},e.prototype.onDropPath=function(e){"LargeIcons"===this.parent.view&&(this.isPasteOperation=!0,this.onPathChanged(e))},e.prototype.onPropertyChanged=function(e){var t;if(e.module===this.getModuleName()||"common"===e.module)for(var n=0,s=Object.keys(e.newProp);n<s.length;n++){var a=s[n];switch(a){case"allowDragAndDrop":this.createDragObj();break;case"height":this.adjustHeight();break;case"selectedItems":this.isInteraction=!1,this.isInteracted=!1,t=i.i(r.isNullOrUndefined)(this.parent.selectedItems)?[]:this.parent.selectedItems.slice(0),t=this.parent.allowMultiSelection?t:t.slice(t.length-1),this.parent.setProperties({selectedItems:[]},!0),this.onClearAllInit(),t.length&&this.selectItems(t),this.parent.setProperties({selectedItems:this.parent.selectedItems},!0),this.isInteraction=!0,this.isInteracted=!0;break;case"showThumbnail":i.i(u.p)(this.parent);break;case"showFileExtension":case"showHiddenItems":i.i(h.a)(this.parent,o.K,this.parent.path);break;case"allowMultiSelection":if("LargeIcons"!==this.parent.view)break;i.i(u.p)(this.parent);break;case"view":i.i(u.n)(this.parent,"LargeIcons")}}},e.prototype.destroy=function(){this.parent.isDestroyed||(this.removeEventListener(),this.listObj&&this.unWireEvents(),this.startItem=null,this.listElements=null)},e.prototype.wireEvents=function(){this.wireClickEvent(!0),this.keyboardModule=new r.KeyboardEvents(this.element,{keyAction:this.keyActionHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keyup"}),this.keyboardDownModule=new r.KeyboardEvents(this.element,{keyAction:this.keydownActionHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"}),r.EventHandler.add(this.element,"mouseover",this.onMouseOver,this)},e.prototype.unWireEvents=function(){this.wireClickEvent(!1),r.EventHandler.remove(this.element,"mouseover",this.onMouseOver),this.keyboardModule.destroy(),this.keyboardDownModule.destroy()},e.prototype.onMouseOver=function(e){var t=i.i(r.closest)(e.target,".e-list-item");i.i(c.t)(this.parent,"hover"),null!==t&&t.classList.add(l.e)},e.prototype.wireClickEvent=function(e){if(e){var t=this;this.clickObj=new r.Touch(this.element,{tap:function(e){e.originalEvent.preventDefault(),t.parent.isDevice?(t.tapCount=e.tapCount,t.tapEvent=e,setTimeout(function(){t.tapCount>0&&t.doTapAction(t.tapEvent),t.tapCount=0},350)):2===e.tapCount&&3!==e.originalEvent.which?t.dblClickHandler(e):t.clickHandler(e)},tapHold:function(e){t.parent.isDevice&&(t.multiSelect=!!t.parent.allowMultiSelection,t.parent.allowMultiSelection&&i.i(r.addClass)([t.parent.element],l._13),t.clickHandler(e))}})}else this.clickObj&&this.clickObj.destroy()},e.prototype.doTapAction=function(e){var t=e.originalEvent.target,n=i.i(r.closest)(t,"."+l.a);this.multiSelect||t.classList.contains(l._11)||i.i(r.isNullOrUndefined)(n)?this.clickHandler(e):(this.parent.isFile=!1,this.updateType(n),this.parent.isFile?2===e.tapCount?(this.clickHandler(e),this.dblClickHandler(e)):this.clickHandler(e):this.dblClickHandler(e))},e.prototype.clickHandler=function(e){var t=e.originalEvent.target;i.i(c.t)(this.parent,"hover"),this.doSelection(t,e.originalEvent),this.parent.activeModule="largeiconsview"},e.prototype.doSelection=function(e,t){var n=i.i(r.closest)(e,"."+l.a),s=e.classList;this.parent.isFile=!1;var a="select";if(3===t.which&&!i.i(r.isNullOrUndefined)(n)&&n.classList.contains(l._12))return void this.updateType(n);if(i.i(r.isNullOrUndefined)(n))this.parent.selectedItems.length===this.itemList.length&&(this.isSelectAllCalled=!0),this.clearSelection();else{this.parent.allowMultiSelection&&n.classList.contains(l._12)&&(t.ctrlKey||e.classList.contains(l._14))&&(a="unselect"),t.ctrlKey&&t.shiftKey&&(this.isSelectAllCalled=!0);if(!0!==this.triggerSelection(a,n).cancel){if(this.parent.allowMultiSelection&&(this.multiSelect||!t||t.ctrlKey)||s.contains(l._15)||(this.updateType(n),this.clearSelect()),this.parent.allowMultiSelection&&t.shiftKey){t&&t.ctrlKey||this.clearSelect(),this.startItem||(this.startItem=n);var d=this.itemList.indexOf(this.startItem),h=this.itemList.indexOf(n);if(d>h)for(var c=d;c>=h;c--)this.addActive(this.itemList[c]);else for(var c=d;c<=h;c++)this.addActive(this.itemList[c]);this.addFocus(this.itemList[h])}else this.startItem=n,this.parent.allowMultiSelection&&n.classList.contains(l._12)?this.removeActive(n):this.addActive(n),this.addFocus(n);0===this.parent.selectedItems.length&&this.resetMultiSelect(),this.parent.notify(o.H,{}),this.triggerSelect(a,n)}}i.i(r.isNullOrUndefined)(n)||(this.isSelectAllCalled=!1,this.updateType(n))},e.prototype.dblClickHandler=function(e){this.parent.activeModule="largeiconsview";var t=e.originalEvent.target;this.doOpenAction(t)},e.prototype.clearSelection=function(){this.clearSelect(),this.resetMultiSelect(),this.parent.notify(o.H,{})},e.prototype.resetMultiSelect=function(){this.multiSelect=!1,i.i(r.removeClass)([this.parent.element],l._13)},e.prototype.doOpenAction=function(e){var t=this;if(!i.i(r.isNullOrUndefined)(e)){var n=i.i(r.closest)(e,"."+l.a);if(this.parent.isFile=!1,!i.i(r.isNullOrUndefined)(n)){this.updateType(n);var s=this.getItemObject(n);if(!i.i(u._9)(s))return void i.i(u._7)(this.parent,s,o.g);var a={cancel:!1,fileDetails:s,module:"LargeIconsView"};this.parent.trigger("fileOpen",a,function(e){if(!e.cancel){var n=i.i(r.getValue)("name",s);if(t.parent.isFile){if(i.i(u.u)(s)===l.m){var a=i.i(u.v)(t.parent,s);i.i(p.c)(t.parent,n,a)}}else{if(""!==t.parent.breadcrumbbarModule.searchObj.element.value||t.parent.isFiltered)i.i(c.S)(t.parent,s);else{var o=i.i(r.getValue)("id",s);t.parent.oldPath=t.parent.path;var d=t.parent.path+(i.i(r.isNullOrUndefined)(o)?n:o)+"/";t.parent.setProperties({path:d},!0),t.parent.pathNames.push(n),t.parent.pathId.push(i.i(r.getValue)("_fm_id",s)),t.parent.itemData=[s],i.i(u.q)(t.parent)}t.parent.isFiltered=!1,t.parent.setProperties({selectedItems:[]},!0)}}})}}},e.prototype.updateType=function(e){var t=i.i(r.select)("."+l.l,e);this.parent.isFile=!!i.i(r.isNullOrUndefined)(t)},e.prototype.keydownActionHandler=function(e){if(this.isRendered)switch(e.action){case"end":case"home":case"moveDown":case"moveLeft":case"moveRight":case"moveUp":case"ctrlEnd":case"shiftEnd":case"csEnd":case"ctrlHome":case"shiftHome":case"csHome":case"ctrlDown":case"shiftDown":case"csDown":case"ctrlLeft":case"shiftLeft":case"csLeft":case"ctrlRight":case"shiftRight":case"csRight":case"space":case"ctrlSpace":case"shiftSpace":case"csSpace":case"ctrlA":case"enter":case"altEnter":case"esc":case"del":case"shiftdel":case"ctrlC":case"ctrlV":case"ctrlX":case"f2":case"ctrlD":e.preventDefault()}},e.prototype.keyActionHandler=function(e){var t=this;if(this.isRendered){var n=this.getFocusedItem(),s=this.getFirstItem(),a=this.getLastItem();switch(e.action){case"end":this.parent.enableVirtualization?(this.clearSelect(),this.element.firstElementChild.scrollTo(0,this.element.firstElementChild.scrollHeight),setTimeout(function(){t.navigateItem(t.itemList[t.itemList.length-1])},10)):this.navigateItem(a);break;case"home":this.parent.enableVirtualization?(this.clearSelect(),this.element.firstElementChild.scrollTop=0,setTimeout(function(){t.navigateItem(t.itemList[0])},10)):this.navigateItem(s);break;case"tab":i.i(r.isNullOrUndefined)(n)?i.i(r.isNullOrUndefined)(s)||this.addFocus(s):this.addFocus(n);break;case"moveDown":this.navigateDown(n,!0);break;case"moveLeft":this.navigateRight(n,!1);break;case"moveRight":this.navigateRight(n,!0);break;case"moveUp":this.navigateDown(n,!1);break;case"ctrlEnd":case"shiftEnd":case"csEnd":this.csEndKey(a,e);break;case"ctrlHome":case"shiftHome":case"csHome":this.csHomeKey(s,e);break;case"ctrlDown":case"shiftDown":case"csDown":this.csDownKey(n,e);break;case"ctrlLeft":case"shiftLeft":case"csLeft":this.csLeftKey(n,e);break;case"ctrlRight":case"shiftRight":case"csRight":this.csRightKey(n,e);break;case"ctrlUp":case"shiftUp":case"csUp":this.csUpKey(n,e);break;case"space":this.spaceKey(n);break;case"ctrlSpace":case"shiftSpace":case"csSpace":i.i(r.isNullOrUndefined)(n)||this.doSelection(n,e);break;case"ctrlA":this.ctrlAKey(s,a);break;case"enter":this.doOpenAction(this.parent.visitedItem?this.parent.visitedItem:this.getVisitedItem());break;case"altEnter":this.parent.notify(o.T,{}),i.i(h.g)(this.parent,this.parent.selectedItems,this.parent.path,"details");break;case"esc":i.i(c.q)(this.parent);break;case"del":case"shiftdel":this.performDelete();break;case"ctrlC":i.i(c.B)(this.parent);break;case"ctrlV":this.parent.folderPath="",i.i(c.T)(this.parent);break;case"ctrlX":i.i(c.C)(this.parent);break;case"f2":this.performRename();break;case"ctrlD":this.doDownload()}}},e.prototype.doDownload=function(){this.updateSelectedData(),i.i(c._13)(this.parent)},e.prototype.performDelete=function(){if(this.parent.selectedItems&&this.parent.selectedItems.length>0){this.updateSelectedData();for(var e=this.parent.itemData,t=0;t<e.length;t++)if(!i.i(u._10)(e[t]))return void i.i(u._7)(this.parent,e[t],o.x);i.i(p.a)(this.parent,"Delete")}},e.prototype.performRename=function(){1===this.parent.selectedItems.length&&(this.updateRenameData(),i.i(c._12)(this.parent))},e.prototype.updateRenameData=function(){var e=i.i(r.select)("."+l.a+"."+l._12,this.element),t=this.getItemObject(e);i.i(c._11)(this.parent,t)},e.prototype.getVisitedItem=function(){var e=this.parent.selectedItems[this.parent.selectedItems.length-1],t=this.getIndexes([e],this.parent.hasId);return this.itemList[t[0]]},e.prototype.getFocusedItem=function(){return i.i(r.select)("."+l.a+"."+l._16,this.element)},e.prototype.getActiveItem=function(){return i.i(r.select)("."+l.a+"."+l._12,this.element)},e.prototype.getFirstItem=function(){return this.itemList[0]},e.prototype.getLastItem=function(){return this.itemList[this.itemList.length-1]},e.prototype.navigateItem=function(e){this.setFocus(e)},e.prototype.navigateDown=function(e,t){var i=this.getNextItem(e,t,this.perRow);this.setFocus(i)},e.prototype.navigateRight=function(e,t){var i=this.getNextItem(e,t);this.setFocus(i)},e.prototype.getNextItem=function(e,t,n){if(i.i(r.isNullOrUndefined)(e))return this.getFocusedItem()||this.getActiveItem()||this.getFirstItem();var s,a=this.itemList.indexOf(e);do{if(a=t?n?a+n:a+1:n?a-n:a-1,s=this.itemList[a],this.parent.enableVirtualization&&i.i(r.isNullOrUndefined)(s)){var o=parseInt(window.getComputedStyle(this.itemList[0]).getPropertyValue("margin-top"),10)+parseInt(window.getComputedStyle(this.itemList[0]).getPropertyValue("margin-bottom"),10),l=this.itemList[0].getBoundingClientRect().height+o;this.element.firstElementChild.scrollTo(this.element.firstElementChild.scrollTop,this.element.firstElementChild.scrollTop+l)}if(i.i(r.isNullOrUndefined)(s))return e}while(!i.i(r.isVisible)(s));return s},e.prototype.setFocus=function(e){if(!i.i(r.isNullOrUndefined)(e)){!0!==this.triggerSelection("select",e).cancel&&(this.startItem=e,this.clearSelect(),this.addActive(e),this.addFocus(e),this.parent.notify(o.H,{}),this.triggerSelect("select",e))}},e.prototype.spaceKey=function(e){if(!i.i(r.isNullOrUndefined)(e)&&!e.classList.contains(l._12)){!0!==this.triggerSelection("select",e).cancel&&(this.addActive(e),this.parent.notify(o.H,{}),this.triggerSelect("select",e))}},e.prototype.ctrlAKey=function(e,t){if(this.parent.allowMultiSelection&&!i.i(r.isNullOrUndefined)(e)){this.startItem=e;var n={ctrlKey:!0,shiftKey:!0},s=this.element.querySelector("."+l._11),a=s.scrollTop,o=this.getFocusedItem();this.doSelection(t,n),s.scrollTop=a,i.i(r.isNullOrUndefined)(o)||this.addFocus(o)}},e.prototype.csEndKey=function(e,t){this.parent.allowMultiSelection?i.i(r.isNullOrUndefined)(e)||("ctrlEnd"===t.action?this.addFocus(e):this.doSelection(e,t)):this.navigateItem(e)},e.prototype.csHomeKey=function(e,t){this.parent.allowMultiSelection?i.i(r.isNullOrUndefined)(e)||("ctrlHome"===t.action?this.addFocus(e):this.doSelection(e,t)):this.navigateItem(e)},e.prototype.csDownKey=function(e,t){if(this.parent.allowMultiSelection){var n=this.getNextItem(e,!0,this.perRow);i.i(r.isNullOrUndefined)(n)||("ctrlDown"===t.action?this.addFocus(n):this.doSelection(n,t))}else this.navigateDown(e,!0)},e.prototype.csLeftKey=function(e,t){if(this.parent.allowMultiSelection){var n=this.getNextItem(e,!1);i.i(r.isNullOrUndefined)(n)||("ctrlLeft"===t.action?this.addFocus(n):this.doSelection(n,t))}else this.navigateRight(e,!1)},e.prototype.csRightKey=function(e,t){if(this.parent.allowMultiSelection){var n=this.getNextItem(e,!0);i.i(r.isNullOrUndefined)(n)||("ctrlRight"===t.action?this.addFocus(n):this.doSelection(n,t))}else this.navigateRight(e,!0)},e.prototype.csUpKey=function(e,t){if(this.parent.allowMultiSelection){var n=this.getNextItem(e,!1,this.perRow);i.i(r.isNullOrUndefined)(n)||("ctrlUp"===t.action?this.addFocus(n):this.doSelection(n,t))}else this.navigateDown(e,!1)},e.prototype.addActive=function(e){i.i(r.isNullOrUndefined)(e)||(e.classList.contains(l._12)||(this.parent.selectedItems.push(this.getDataName(e)),this.parent.setProperties({selectedItems:this.parent.selectedItems},!0),i.i(r.addClass)([e],[l._12]),e.setAttribute("aria-selected","true"),this.checkState(e,!0)),this.parent.visitedItem=e)},e.prototype.removeActive=function(e){if(!i.i(r.isNullOrUndefined)(e)){i.i(r.removeClass)([e],[l._12]),this.parent.allowMultiSelection?e.setAttribute("aria-selected","false"):e.removeAttribute("aria-selected"),this.checkState(e,!1);var t=this.parent.selectedItems.indexOf(this.getDataName(e));t>-1&&(this.parent.selectedItems.splice(t,1),this.parent.setProperties({selectedItems:this.parent.selectedItems},!0)),this.parent.visitedItem=null}},e.prototype.getDataName=function(e){var t=this.getItemObject(e);return i.i(c._10)(this.parent,t)},e.prototype.addFocus=function(e){this.element.setAttribute("tabindex","-1");var t=this.getFocusedItem();t&&(t.removeAttribute("tabindex"),i.i(r.removeClass)([t],[l._16])),i.i(r.addClass)([e],[l._16]),e.setAttribute("tabindex","0"),e.focus()},e.prototype.checkState=function(e,t){if(this.parent.showItemCheckBoxes){var n=i.i(r.select)("."+l._15,e);i.i(r.isNullOrUndefined)(n)||(t?n.classList.contains(l._14)||(i.i(r.addClass)([n],l._14),i.i(r.closest)(n,"."+l._17).setAttribute("aria-checked","true")):n.classList.contains(l._14)&&(i.i(r.removeClass)([n],l._14),i.i(r.closest)(n,"."+l._17).setAttribute("aria-checked","false")))}},e.prototype.clearSelect=function(){var e,t=Array.prototype.slice.call(i.i(r.selectAll)("."+l._12,this.listElements));if(0!==t.length){if(e=this.triggerSelection("unselect",t[0]),!0!==e.cancel)for(var n=0,s=t.length;n<s;n++)this.removeActive(t[n]);this.triggerSelect("unselect",t[0])}},e.prototype.resizeHandler=function(){this.getItemCount(),i.i(r.isNullOrUndefined)(this.listObj)||this.adjustHeight()},e.prototype.splitterResizeHandler=function(){this.getItemCount()},e.prototype.getItemCount=function(){var e=1;if(this.itemList)for(var t=0,i=this.itemList.length-1;t<i&&this.itemList[t].getBoundingClientRect().top===this.itemList[t+1].getBoundingClientRect().top;t++)e++;this.perRow=e},e.prototype.triggerSelection=function(e,t){var i=[];if(this.isSelectAllCalled)for(var n=0,r=this.itemList.length;n<r;n++)i[n]=this.getItemObject(this.itemList[n]);else i[0]=this.getItemObject(t);var s={action:e,fileDetails:i.length>1?i:i[0],isInteracted:this.isInteraction,cancel:!1,target:this.isSelectAllCalled?null:t};return this.parent.trigger("fileSelection",s),this.isInteraction=!0,s},e.prototype.triggerSelect=function(e,t){var i=[];if(this.isSelectAllCalled){for(var n=0,r=this.itemList.length;n<r;n++)i[n]=this.getItemObject(this.itemList[n]);this.isSelectAllCalled=!1}else i[0]=this.getItemObject(t);this.parent.visitedData=i.length>1?i[i.length-1]:i[0];var s={action:e,fileDetails:i.length>1?i:i[0],isInteracted:this.isInteracted};this.parent.trigger("fileSelect",s),this.isInteracted=!0},e.prototype.selectItems=function(e){for(var t=this.getIndexes(e,this.parent.hasId),i=0,n=t.length;i<n;i++){var r={ctrlKey:!0,shiftKey:!1};this.doSelection(this.itemList[t[i]],r)}},e.prototype.getIndexes=function(e,t){for(var n=[],s=t?"id":"name",a=0,o=this.items.length;a<o;a++)-1!==e.indexOf(i.i(r.getValue)(s,this.items[a]))&&n.push(a);return n},e.prototype.getItemObject=function(e){var t=this.itemList.indexOf(e);return this.items[t]},e.prototype.addSelection=function(e){var t=[];if(this.parent.hasId)t=new s.DataManager(this.items).executeLocal((new s.Query).where("id","equal",this.parent.renamedId,!1));else{var n=new s.DataManager(this.items).executeLocal((new s.Query).where("name","equal",i.i(r.getValue)("name",e),!1));n.length>0&&(t=new s.DataManager(n).executeLocal((new s.Query).where("filterPath","equal",this.parent.filterPath,!1)))}if(t.length>0){var a=this.items.indexOf(t[0]),o={ctrlKey:!0,shiftKey:!1};this.doSelection(this.itemList[a],o)}},e.prototype.updateSelectedData=function(){for(var e=[],t=i.i(r.selectAll)("."+l.a+"."+l._12,this.element),n=0;n<t.length;n++)e[n]=this.getItemObject(t[n]);this.parent.itemData=e},e.prototype.onMethodCall=function(e){if("LargeIcons"===this.parent.view){switch(i.i(r.getValue)("action",e)){case"deleteFiles":this.deleteFiles(i.i(r.getValue)("ids",e));break;case"downloadFiles":this.downloadFiles(i.i(r.getValue)("ids",e));break;case"openFile":this.openFile(i.i(r.getValue)("id",e));break;case"renameFile":this.isInteraction=!1,this.isInteracted=!1,this.renameFile(i.i(r.getValue)("id",e),i.i(r.getValue)("newName",e));break;case"createFolder":this.isInteraction=!1,this.isInteracted=!1;break;case"clearSelection":this.isInteraction=!1,this.isInteracted=!1,this.onClearAllInit();break;case"selectAll":this.isInteraction=!1,this.isInteracted=!1,this.onSelectAllInit()}}},e.prototype.getItemsIndex=function(e){var t=[],n=!(""===this.parent.breadcrumbbarModule.searchObj.element.value&&!this.parent.isFiltered),s=this.parent.hasId?"id":"name";if(this.parent.hasId||!n)for(var a=0,o=this.items.length;a<o;a++)-1!==e.indexOf(i.i(r.getValue)(s,this.items[a]))&&t.push(a);else for(var a=0,o=this.items.length;a<o;a++){var l=i.i(r.getValue)("filterPath",this.items[a])+i.i(r.getValue)("name",this.items[a]);-1===e.indexOf(l)&&-1===e.indexOf(i.i(r.getValue)(s,this.items[a]))||t.push(a)}return t},e.prototype.deleteFiles=function(e){if(this.parent.activeModule="largeiconsview",i.i(r.isNullOrUndefined)(e))return void this.performDelete();var t=this.getItemsIndex(e);if(0!==t.length){for(var n=[],s=[],a=0;a<t.length;a++)n[a]=this.items[t[a]],s[a]=i.i(c._10)(this.parent,n[a]);i.i(c._14)(this.parent,n,s)}},e.prototype.downloadFiles=function(e){if(i.i(r.isNullOrUndefined)(e))return void this.doDownload();var t=this.getItemsIndex(e);if(0!==t.length){for(var n=[],s=[],a=0;a<t.length;a++)n[a]=this.items[t[a]],s[a]=i.i(c._10)(this.parent,n[a]);i.i(c._15)(this.parent,n,s)}},e.prototype.openFile=function(e){if(!i.i(r.isNullOrUndefined)(e)){var t=this.getItemsIndex([e]);t.length>0&&this.doOpenAction(this.itemList[t[0]])}},e.prototype.renameFile=function(e,t){if(this.parent.activeModule="largeiconsview",i.i(r.isNullOrUndefined)(e))return void this.performRename();var n=this.getItemsIndex([e]);n.length>0&&(i.i(c._11)(this.parent,this.items[n[0]]),i.i(r.isNullOrUndefined)(t)?i.i(c._12)(this.parent):i.i(u._10)(this.parent.itemData[0])?i.i(c.d)(this.parent,this.parent.path,t):i.i(u._7)(this.parent,this.parent.itemData[0],o.x))},e}()},function(e,t,i){"use strict";i.d(t,"b",function(){return a}),i.d(t,"c",function(){return o}),i.d(t,"d",function(){return l}),i.d(t,"a",function(){return d});var n=i(0),r=(i.n(n),this&&this.__extends||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])})(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)}}()),s=this&&this.__decorate||function(e,t,i,n){var r,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,i,a):r(t,i))||a);return s>3&&a&&Object.defineProperty(t,i,a),a},a=["Open","|","Cut","Copy","|","Delete","Download","Rename","|","Details"],o=["Open","|","Cut","Copy","Paste","|","Delete","Rename","Download","|","Details"],l=["SortBy","View","Refresh","|","Paste","|","NewFolder","Upload","|","Details","|","SelectAll"],d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),s([i.i(n.Property)(a)],t.prototype,"file",void 0),s([i.i(n.Property)(o)],t.prototype,"folder",void 0),s([i.i(n.Property)(l)],t.prototype,"layout",void 0),s([i.i(n.Property)(!0)],t.prototype,"visible",void 0),t}(n.ChildProperty)},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var n=i(0),r=(i.n(n),this&&this.__extends||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])})(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)}}()),s=this&&this.__decorate||function(e,t,i,n){var r,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,i,a):r(t,i))||a);return s>3&&a&&Object.defineProperty(t,i,a),a},a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),s([i.i(n.Property)("")],t.prototype,"allowedExtensions",void 0),s([i.i(n.Property)(!0)],t.prototype,"autoUpload",void 0),s([i.i(n.Property)(!1)],t.prototype,"autoClose",void 0),s([i.i(n.Property)(!1)],t.prototype,"directoryUpload",void 0),s([i.i(n.Property)(0)],t.prototype,"minFileSize",void 0),s([i.i(n.Property)(3e7)],t.prototype,"maxFileSize",void 0),t}(n.ChildProperty)},function(e,t,i){"use strict";i.d(t,"a",function(){return h});var n=i(11),r=(i.n(n),i(0)),s=(i.n(r),i(5)),a=i(6),o=i(1),l=i(4),d=i(3),h=function(){function e(e){this.isMenuItemClicked=!1,this.currentItems=[],this.currentElement=null,this.disabledItems=[],this.parent=e,this.render()}return e.prototype.render=function(){this.keyConfigs={downarrow:"downarrow",uparrow:"uparrown"},this.contextMenu=new n.ContextMenu({enableRtl:this.parent.enableRtl,locale:this.parent.locale,target:"#"+this.parent.element.id,enableHtmlSanitizer:this.parent.enableHtmlSanitizer,beforeItemRender:this.onBeforeItemRender.bind(this),select:this.onSelect.bind(this),beforeOpen:this.onBeforeOpen.bind(this),beforeClose:this.onBeforeClose.bind(this),cssClass:i.i(o.F)(this.parent,d.D)}),this.contextMenu.isStringTemplate=!0,this.contextMenu.appendTo("#"+this.parent.element.id+d.J),this.addEventListener()},e.prototype.onBeforeItemRender=function(e){if(e.item.id===this.getMenuId("largeiconsview")){var t=i.i(r.createElement)("span"),n=e.element;n.insertBefore(t,"LargeIcons"===this.parent.view?n.childNodes[1]:n.childNodes[0]),t.setAttribute("class",d.K+" "+d.L)}if(e.item.id===this.getMenuId("detailsview")){var t=i.i(r.createElement)("span"),n=e.element;n.insertBefore(t,"Details"===this.parent.view?n.childNodes[1]:n.childNodes[0]),t.setAttribute("class",d.M+" "+d.L)}},e.prototype.onBeforeClose=function(){if(this.menuTarget=null,!this.isMenuItemClicked&&this.parent.pathId.length>1&&"navigationpane"==this.parent.activeModule){this.parent.pathId.pop();for(var e=[],t=Object.keys(this.parent.feParent),n=0,s=t;n<s.length;n++){var a=s[n],o=i.i(r.getValue)(a,this.parent.feParent);-1!==this.parent.pathNames.indexOf(o.name)&&e.push(o._fm_id)}this.parent.pathId.push(e[e.length-1]),this.parent.navigationpaneModule.treeObj.selectedNodes=[this.parent.pathId[this.parent.pathId.length-1]]}this.isMenuItemClicked=!1},e.prototype.onBeforeOpen=function(e){var t,n,s=this,a=!1,o=!1,l=e.event.target;this.menuTarget=this.targetNodeElement=l,this.currentElement=e.element,l.classList.contains("e-spinner-pane")&&(l=this.parent.navigationpaneModule.activeNode.getElementsByClassName(d.N)[0],this.menuTarget=this.targetNodeElement=l),this.targetElement="Details"===this.parent.view?i.i(r.closest)(l,"tr.e-row"):l,this.parent.enableVirtualization&&(l.classList.contains("e-virtual-bottom")||l.classList.contains("e-virtualtable"))&&(l=l.parentElement.closest("div"));var h=this.getTargetView(l);if(this.updateActiveModule(),l.classList.contains(d.c)||i.i(r.closest)(l,"th")||i.i(r.closest)(l,"#"+this.parent.element.id+d.q)||i.i(r.closest)(l,"#"+this.parent.element.id+d.O))e.cancel=!0;else if("LargeIcons"!==this.parent.view&&this.targetElement&&this.targetElement.classList.contains("e-emptyrow"))this.setLayoutItem(l);else if(i.i(r.closest)(l,"."+d.s))this.setLayoutItem(l);else if(!l.classList.contains(d.P)&&!l.classList.contains(d.L)&&!l.classList.contains(d.Q)){if("LargeIcons"!==this.parent.view||i.i(r.isNullOrUndefined)(i.i(r.closest)(l,"li"))||i.i(r.closest)(l,"#"+this.parent.element.id+d.R))i.i(r.isNullOrUndefined)(i.i(r.closest)(l,"tr.e-row"))?i.i(r.closest)(l,"#"+this.parent.element.id+d.R)&&(t=i.i(r.closest)(l,"li").getAttribute("data-uid"),o=!0):(t=this.targetElement.getAttribute("data-uid"),n=this.parent.detailsviewModule.gridObj.getRowObjectFromUID(t).data,i.i(r.isNullOrUndefined)(this.targetElement.getAttribute("aria-selected"))&&this.parent.detailsviewModule.gridObj.selectRows([parseInt(this.targetElement.getAttribute("data-rowindex"),10)]),a=!0);else{var c={ctrlKey:!0,shiftKey:!0};i.i(r.closest)(l,"li").classList.contains("e-active")||this.parent.largeiconsviewModule.doSelection(l,c),n=this.parent.visitedData,a=!0}a?!0===i.i(r.getValue)("isFile",n)?this.setFileItem():this.setFolderItem(!1):o?(this.setFolderItem(!0),t===this.parent.pathId[0]&&this.disabledItems.push("Delete","Rename","Cut","Copy")):"TreeView"===h||"GridView"===h||"LargeIcon"===h?this.setLayoutItem(l):e.cancel=!0}var u=i.i(r.select)("#"+this.getMenuId("Paste"),this.contextMenu.element);if(e.cancel||this.parent.enablePaste||!u||u.classList.contains("e-disabled")){var p=this.disabledItems.indexOf("Paste");-1!==p&&this.disabledItems.splice(p,1)}else-1===this.disabledItems.indexOf("Paste")&&this.disabledItems.push("Paste");if(e.cancel)return void(this.menuTarget=this.currentElement=null);this.contextMenu.dataBind();var f=!1;(l.classList.contains(d.P)||l.classList.contains(d.L)||l.classList.contains(d.Q))&&(f=!0),this.menuItemData=f?this.menuItemData:this.getMenuItemData();var g={fileDetails:[this.menuItemData],element:e.element,target:l,items:f?e.items:this.contextMenu.items,menuModule:this.contextMenu,cancel:!1,menuType:this.menuType,isSubMenu:f};this.currentItems=g.items,this.parent.trigger("menuOpen",g,function(t){f||(s.contextMenu.dataBind(),s.contextMenu.items=t.items,s.contextMenu.dataBind()),s.enableItems(s.disabledItems,!1,!0),e.cancel=t.cancel,t.cancel&&(s.menuTarget=s.targetNodeElement=s.currentElement=null)})},e.prototype.updateActiveModule=function(){this.parent.activeModule=i.i(r.closest)(this.menuTarget,"#"+this.parent.element.id+d.R)?"navigationpane":i.i(r.closest)(this.menuTarget,"#"+this.parent.element.id+d.S)?"detailsview":i.i(r.closest)(this.menuTarget,"#"+this.parent.element.id+d.T)?"largeiconsview":this.parent.activeModule},e.prototype.getTargetView=function(e){return e.classList.contains(d.c)?"TreeView":e.classList.contains(d.w)?"GridView":e.classList.contains(d.U)?"LargeIcon":e.classList.contains(d.k)?"LargeIcon":""},e.prototype.getItemIndex=function(e){for(var t=this.getMenuId(e),i=0;i<this.currentItems.length;i++)if(this.currentItems[i].id===t||this.currentItems[i].id===e)return i;return-1},e.prototype.disableItem=function(e){0!==e.length&&(this.disabledItems=this.disabledItems.concat(e))},e.prototype.enableItems=function(e,t,i){for(var n=0;n<e.length;n++)1===this.checkValidItem(e[n])?this.contextMenu.enableItems([this.getMenuId(e[n])],t,i):2===this.checkValidItem(e[n])&&this.contextMenu.enableItems([e[n]],t,i)},e.prototype.setFolderItem=function(e){if(this.menuType="folder",this.contextMenu.items=this.getItemData(this.parent.contextMenuSettings.folder.map(function(e){return e.trim()})),this.contextMenu.dataBind(),e){var t=i.i(r.select)('[data-uid="'+this.parent.navigationpaneModule.treeObj.selectedNodes[0]+'"]',this.parent.navigationpaneModule.treeObj.element);this.parent.pathNames[this.parent.pathNames.length-1]===t.querySelector(".e-list-text").innerHTML&&"navigationpane"===this.parent.activeModule&&this.disabledItems.push("Open")}else if("navigationpane"!==this.parent.activeModule)if(1===this.parent.selectedItems.length){var n=this.disabledItems.indexOf("Rename");-1!==n&&this.disabledItems.splice(n,1)}else this.disabledItems.push("Rename","Paste")},e.prototype.setFileItem=function(){if(this.menuType="file",this.contextMenu.items=this.getItemData(this.parent.contextMenuSettings.file.map(function(e){return e.trim()})),this.contextMenu.dataBind(),1===this.parent.selectedItems.length){var e=this.disabledItems.indexOf("Rename");-1!==e&&this.disabledItems.splice(e,1)}else this.disabledItems.push("Rename")},e.prototype.setLayoutItem=function(e){this.menuType="layout",this.contextMenu.items=this.getItemData(this.parent.contextMenuSettings.layout.map(function(e){return e.trim()})),this.contextMenu.dataBind(),!this.parent.allowMultiSelection||"LargeIcons"===this.parent.view&&0!==i.i(r.closest)(e,"#"+this.parent.element.id+d.T).getElementsByClassName(d.s).length||"Details"===this.parent.view&&0!==i.i(r.closest)(e,"#"+this.parent.element.id+d.S).getElementsByClassName(d.s).length?this.disabledItems.push("SelectAll"):this.disabledItems=this.disabledItems.filter(function(e){return"SelectAll"!==e}),0===this.parent.selectedNodes.length&&-1===this.disabledItems.indexOf("Paste")&&this.disabledItems.push("Paste"),this.contextMenu.dataBind()},e.prototype.checkValidItem=function(e){return i.i(r.isNullOrUndefined)(i.i(r.select)("#"+this.getMenuId(e),this.currentElement))?i.i(r.isNullOrUndefined)(i.i(r.select)("#"+e,this.currentElement))?-1:2:1},e.prototype.getMenuItemData=function(){if("layout"===this.menuType)return i.i(o.r)(this.parent);var e={target:this.menuTarget};return this.parent.notify(l.N,e),this.parent.itemData[0]},e.prototype.onSelect=function(e){var t=this;if(!i.i(r.isNullOrUndefined)(e.item)&&e.item.id){var n,d=e.item.id.substr((this.parent.element.id+"_cm_").length);"refresh"===d||"newfolder"===d||"upload"===d?(n=[i.i(o.r)(this.parent)],this.parent.itemData=n):(this.parent.notify(l.O,{}),n="navigationpane"===this.parent.activeModule&&"open"===d?[this.menuItemData]:this.parent.itemData);var h={cancel:!1,element:e.element,fileDetails:n,item:e.item};this.parent.trigger("menuClick",h,function(h){var c;if(!h.cancel)switch(t.isMenuItemClicked=!0,d){case"cut":i.i(o.t)(t.parent);break;case"copy":i.i(o.s)(t.parent);break;case"paste":"folder"===t.menuType&&("largeiconsview"===t.parent.activeModule||"detailsview"===t.parent.activeModule)?t.parent.folderPath=i.i(o.w)(t.parent,t.menuItemData,t.parent.path):t.parent.folderPath="",i.i(o.K)(t.parent);break;case"delete":for(var u=0;u<n.length;u++)if(!i.i(o._10)(n[u]))return void i.i(o._7)(t.parent,n[u],l.x);i.i(a.a)(t.parent,"Delete");break;case"download":for(var p=0;p<n.length;p++)if(!i.i(o._13)(n[p]))return void i.i(o._7)(t.parent,n[p],l.y);"navigationpane"===t.parent.activeModule?t.parent.notify(l.P,{}):t.parent.selectedItems.length>0&&i.i(s.i)(t.parent,t.parent.path,t.parent.selectedItems);break;case"rename":i.i(o._10)(n[0])?(t.parent.notify(l.Q,{}),i.i(a.a)(t.parent,"Rename")):i.i(o._7)(t.parent,n[0],l.x);break;case"selectall":t.parent.notify(l.R,{});break;case"refresh":i.i(o.p)(t.parent);break;case"open":t.parent.visitedItem&&"navigationpane"!==t.parent.activeModule?t.parent.notify(l.S,{target:t.parent.visitedItem}):"navigationpane"===t.parent.activeModule&&(t.parent.visitedItem&&t.parent.notify(l.S,{target:t.parent.visitedItem}),t.parent.navigationpaneModule.openFileOnContextMenuClick(i.i(r.closest)(t.targetNodeElement,"li")));break;case"details":t.parent.notify(l.T,{}),c=t.parent.selectedItems,"navigationpane"===t.parent.activeModule&&(c=[],t.parent.navigationpaneModule.openFileOnContextMenuClick(i.i(r.closest)(t.targetNodeElement,"li"))),i.i(s.g)(t.parent,c,t.parent.path,"details");break;case"newfolder":i.i(o._14)(t.parent);break;case"upload":i.i(o._15)(t.parent);break;case"name":case"size":case"date":case"ascending":case"descending":case"none":i.i(o.G)(t.parent,e);break;case"largeiconsview":i.i(o.n)(t.parent,"LargeIcons");break;case"detailsview":i.i(o.n)(t.parent,"Details")}})}},e.prototype.onPropertyChanged=function(e){if(e.module===this.getModuleName()||"common"===e.module)for(var t=0,n=Object.keys(e.newProp);t<n.length;t++){var r=n[t];switch(r){case"cssClass":this.contextMenu.cssClass=i.i(o.F)(this.parent,d.D)}}},e.prototype.addEventListener=function(){this.parent.on(l.U,this.destroy,this),this.parent.on(l.V,this.onPropertyChanged,this),this.keyboardModule=new r.KeyboardEvents(this.contextMenu.element,{keyAction:this.keyActionHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"})},e.prototype.removeEventListener=function(){this.parent.off(l.U,this.destroy),this.parent.off(l.V,this.onPropertyChanged),this.keyboardModule.destroy()},e.prototype.keyActionHandler=function(e){switch(e.action){case"uparrow":case"downarrow":e.preventDefault()}},e.prototype.getModuleName=function(){return"contextmenu"},e.prototype.destroy=function(){this.parent.isDestroyed||(this.removeEventListener(),this.contextMenu.destroy(),this.targetElement=null)},e.prototype.getItemData=function(e){for(var t=[],n=0;n<e.length;n++){var r=void 0,s=this.getMenuId(e[n]),a=i.i(o.E)(this.parent,e[n]);switch(e[n]){case"|":r={separator:!0};break;case"Open":r={id:s,text:a,iconCss:d.V};break;case"Upload":r={id:s,text:a,iconCss:d.W};break;case"Cut":r={id:s,text:a,iconCss:d.X};break;case"Copy":r={id:s,text:a,iconCss:d.Y};break;case"Paste":r={id:s,text:a,iconCss:d.Z};break;case"Delete":r={id:s,text:a,iconCss:d._0};break;case"Rename":r={id:s,text:a,iconCss:d._1};break;case"NewFolder":r={id:s,text:a,iconCss:d._2};break;case"Details":r={id:s,text:a,iconCss:d._3};break;case"SortBy":r={id:s,text:a,iconCss:d._4,items:[{id:this.getMenuId("Name"),text:i.i(o.E)(this.parent,"Name"),iconCss:"name"===this.parent.sortBy?d._5:null},{id:this.getMenuId("Size"),text:i.i(o.E)(this.parent,"Size"),iconCss:"size"===this.parent.sortBy?d._5:null},{id:this.getMenuId("Date"),text:i.i(o.E)(this.parent,"DateModified"),iconCss:"_fm_modified"===this.parent.sortBy?d._5:null},{separator:!0},{id:this.getMenuId("Ascending"),text:i.i(o.E)(this.parent,"Ascending"),iconCss:"Ascending"===this.parent.sortOrder?d._6:null},{id:this.getMenuId("Descending"),text:i.i(o.E)(this.parent,"Descending"),iconCss:"Descending"===this.parent.sortOrder?d._6:null},{id:this.getMenuId("None"),text:i.i(o.E)(this.parent,"None"),iconCss:"None"===this.parent.sortOrder?d._6:null}]};break;case"View":r={id:s,text:a,iconCss:"Details"===this.parent.view?d.M:d.K,items:[{id:this.getMenuId("largeiconsview"),text:i.i(o.E)(this.parent,"View-LargeIcons"),iconCss:"Details"===this.parent.view?null:d._6},{id:this.getMenuId("detailsview"),text:i.i(o.E)(this.parent,"View-Details"),iconCss:"Details"===this.parent.view?d._6:null}]};break;case"Refresh":r={id:s,text:a,iconCss:d._7};break;case"SelectAll":r={id:s,text:a,iconCss:d._8};break;case"Download":r={id:s,text:a,iconCss:d._9};break;default:r={id:s,text:a}}t.push(r)}return t},e.prototype.getMenuId=function(e){return this.parent.element.id+"_cm_"+e.split(" ").join("").toLowerCase()},e}()},function(e,t){e.exports=s},function(e,t){e.exports=a},function(e,t){e.exports=o},function(e,t,i){"use strict";var n=i(7);i.d(t,"a",function(){return n.a}),i.d(t,"b",function(){return n.b}),i.d(t,"c",function(){return n.c}),i.d(t,"d",function(){return n.d}),i.d(t,"e",function(){return n.e}),i.d(t,"f",function(){return n.f}),i.d(t,"g",function(){return n.g}),i.d(t,"h",function(){return n.h}),i.d(t,"i",function(){return n.i}),i.d(t,"j",function(){return n.j}),i.d(t,"k",function(){return n.k}),i.d(t,"l",function(){return n.l}),i.d(t,"m",function(){return n.m}),i.d(t,"n",function(){return n.n});var r=i(25);i.d(t,"o",function(){return r.a}),i.d(t,"p",function(){return r.b}),i.d(t,"q",function(){return r.c}),i.d(t,"r",function(){return r.d}),i.d(t,"s",function(){return r.e}),i.d(t,"t",function(){return r.f}),i.d(t,"u",function(){return r.g}),i.d(t,"v",function(){return r.h}),i.d(t,"w",function(){return r.i}),i.d(t,"x",function(){return r.j}),i.d(t,"y",function(){return r.k}),i.d(t,"z",function(){return r.l}),i.d(t,"A",function(){return r.m}),i.d(t,"B",function(){return r.n}),i.d(t,"C",function(){return r.o}),i.d(t,"D",function(){return r.p}),i.d(t,"E",function(){return r.q}),i.d(t,"F",function(){return r.r}),i.d(t,"G",function(){return r.s}),i.d(t,"H",function(){return r.t}),i.d(t,"I",function(){return r.u}),i.d(t,"J",function(){return r.v}),i.d(t,"K",function(){return r.w}),i.d(t,"L",function(){return r.x}),i.d(t,"M",function(){return r.y}),i.d(t,"N",function(){return r.z}),i.d(t,"O",function(){return r.A}),i.d(t,"P",function(){return r.B}),i.d(t,"Q",function(){return r.C}),i.d(t,"R",function(){return r.D}),i.d(t,"S",function(){return r.E}),i.d(t,"T",function(){return r.F}),i.d(t,"U",function(){return r.G}),i.d(t,"V",function(){return r.H}),i.d(t,"W",function(){return r.I}),i.d(t,"X",function(){return r.J}),i.d(t,"Y",function(){return r.K}),i.d(t,"Z",function(){return r.L}),i.d(t,"_0",function(){return r.M}),i.d(t,"_1",function(){return r.N}),i.d(t,"_2",function(){return r.O}),i.d(t,"_3",function(){return r.P}),i.d(t,"_4",function(){return r.Q}),i.d(t,"_5",function(){return r.R}),i.d(t,"_6",function(){return r.S}),i.d(t,"_7",function(){return r.T}),i.d(t,"_8",function(){return r.U}),i.d(t,"_9",function(){return r.V}),i.d(t,"_10",function(){return r.W}),i.d(t,"_11",function(){return r.X}),i.d(t,"_12",function(){return r.Y}),i.d(t,"_13",function(){return r.Z}),i.d(t,"_14",function(){return r._0}),i.d(t,"_15",function(){return r._1}),i.d(t,"_16",function(){return r._2}),i.d(t,"_17",function(){return r._3}),i.d(t,"_18",function(){return r._4}),i.d(t,"_19",function(){return r._5}),i.d(t,"_20",function(){return r._6}),i.d(t,"_21",function(){return r._7}),i.d(t,"_22",function(){return r._8}),i.d(t,"_23",function(){return r._9}),i.d(t,"_24",function(){return r._10}),i.d(t,"_25",function(){return r._11}),i.d(t,"_26",function(){return r._12}),i.d(t,"_27",function(){return r._13}),i.d(t,"_28",function(){return r._14}),i.d(t,"_29",function(){return r._15}),i.d(t,"_30",function(){return r._16}),i.d(t,"_31",function(){return r._17}),i.d(t,"_32",function(){return r._18}),i.d(t,"_33",function(){return r._19}),i.d(t,"_34",function(){return r._20}),i.d(t,"_35",function(){return r._21}),i.d(t,"_36",function(){return r._22}),i.d(t,"_37",function(){return r._23}),i.d(t,"_38",function(){return r._24}),i.d(t,"_39",function(){return r._25}),i.d(t,"_40",function(){return r._26}),i.d(t,"_41",function(){return r._27}),i.d(t,"_42",function(){return r._28}),i.d(t,"_43",function(){return r._29}),i.d(t,"_44",function(){return r._30}),i.d(t,"_45",function(){return r._31}),i.d(t,"_46",function(){return r._32}),i.d(t,"_47",function(){return r._33}),i.d(t,"_48",function(){return r._34}),i.d(t,"_49",function(){return r._35}),i.d(t,"_50",function(){return r._36}),i.d(t,"_51",function(){return r._37}),i.d(t,"_52",function(){return r._38}),i.d(t,"_53",function(){return r._39}),i.d(t,"_54",function(){return r._40}),i.d(t,"_55",function(){return r._41}),i.d(t,"_56",function(){return r._42}),i.d(t,"_57",function(){return r._43}),i.d(t,"_58",function(){return r._44}),i.d(t,"_59",function(){return r._45}),i.d(t,"_60",function(){return r._46}),i.d(t,"_61",function(){return r._47}),i.d(t,"_62",function(){return r._48}),i.d(t,"_63",function(){return r._49}),i.d(t,"_64",function(){return r._50}),i.d(t,"_65",function(){return r._51}),i.d(t,"_66",function(){return r._52}),i.d(t,"_67",function(){return r._53}),i.d(t,"_68",function(){return r._54}),i.d(t,"_69",function(){return r._55}),i.d(t,"_70",function(){return r._56}),i.d(t,"_71",function(){return r._57}),i.d(t,"_72",function(){return r._58}),i.d(t,"_73",function(){return r._59}),i.d(t,"_74",function(){return r._60}),i.d(t,"_75",function(){return r._61}),i.d(t,"_76",function(){return r._62}),i.d(t,"_77",function(){return r._63}),i.d(t,"_78",function(){return r._64}),i.d(t,"_79",function(){return r._65}),i.d(t,"_80",function(){return r._66}),i.d(t,"_81",function(){return r._67}),i.d(t,"_82",function(){return r._68}),i.d(t,"_83",function(){return r._69}),i.d(t,"_84",function(){return r._70}),i.d(t,"_85",function(){return r._71}),i.d(t,"_86",function(){return r._72}),i.d(t,"_87",function(){return r._73}),i.d(t,"_88",function(){return r._74}),i.d(t,"_89",function(){return r._75}),i.d(t,"_90",function(){return r._76}),i.d(t,"_91",function(){return r._77}),i.d(t,"_92",function(){return r._78}),i.d(t,"_93",function(){return r._79}),i.d(t,"_94",function(){return r._80}),i.d(t,"_95",function(){return r._81}),i.d(t,"_96",function(){return r._82}),i.d(t,"_97",function(){return r._83}),i.d(t,"_98",function(){return r._84}),i.d(t,"_99",function(){return r._85}),i.d(t,"_100",function(){return r._86}),i.d(t,"_101",function(){return r._87}),i.d(t,"_102",function(){return r._88}),i.d(t,"_103",function(){return r._89}),i.d(t,"_104",function(){return r._90}),i.d(t,"_105",function(){return r._91}),i.d(t,"_106",function(){return r._92}),i.d(t,"_107",function(){return r._93}),i.d(t,"_108",function(){return r._94}),i.d(t,"_109",function(){return r._95}),i.d(t,"_110",function(){return r._96}),i.d(t,"_111",function(){return r._97}),i.d(t,"_112",function(){return r._98}),i.d(t,"_113",function(){return r._99}),i.d(t,"_114",function(){return r._100}),i.d(t,"_115",function(){return r._101}),i.d(t,"_116",function(){return r._102}),i.d(t,"_117",function(){return r._103}),i.d(t,"_118",function(){return r._104}),i.d(t,"_119",function(){return r._105}),i.d(t,"_120",function(){return r._106}),i.d(t,"_121",function(){return r._107}),i.d(t,"_122",function(){return r._108}),i.d(t,"_123",function(){return r._109}),i.d(t,"_124",function(){return r._110}),i.d(t,"_125",function(){return r._111}),i.d(t,"_126",function(){return r._112}),i.d(t,"_127",function(){return r._113}),i.d(t,"_128",function(){return r._114}),i.d(t,"_129",function(){return r._115}),i.d(t,"_130",function(){return r._116}),i.d(t,"_131",function(){return r._117}),i.d(t,"_132",function(){return r._118}),i.d(t,"_133",function(){return r._119}),i.d(t,"_134",function(){return r._120}),i.d(t,"_135",function(){return r._121}),i.d(t,"_136",function(){return r._122});var s=i(21);i.d(t,"_137",function(){return s.a}),i.d(t,"_138",function(){return s.b}),i.d(t,"_139",function(){return s.c});var a=i(27);i.d(t,"_140",function(){return a.a}),i.d(t,"_141",function(){return a.b}),i.d(t,"_142",function(){return a.c});var o=i(36);i.d(t,"_143",function(){return o.a}),i.d(t,"_144",function(){return o.b}),i.d(t,"_145",function(){return o.c}),i.d(t,"_146",function(){return o.d});var l=i(2);i.d(t,"_147",function(){return l.a}),i.d(t,"_148",function(){return l.b}),i.d(t,"_149",function(){return l.c}),i.d(t,"_150",function(){return l.d}),i.d(t,"_151",function(){return l.e}),i.d(t,"_152",function(){return l.f}),i.d(t,"_153",function(){return l.g}),i.d(t,"_154",function(){return l.h}),i.d(t,"_155",function(){return l.i}),i.d(t,"_156",function(){return l.j}),i.d(t,"_157",function(){return l.k}),i.d(t,"_158",function(){return l.l}),i.d(t,"_159",function(){return l.m}),i.d(t,"_160",function(){return l.n}),i.d(t,"_161",function(){return l.o}),i.d(t,"_162",function(){return l.p}),i.d(t,"_163",function(){return l.q}),i.d(t,"_164",function(){return l.r}),i.d(t,"_165",function(){return l.s}),i.d(t,"_166",function(){return l.t}),i.d(t,"_167",function(){return l.u}),i.d(t,"_168",function(){return l.v}),i.d(t,"_169",function(){return l.w}),i.d(t,"_170",function(){return l.x}),i.d(t,"_171",function(){return l.y}),i.d(t,"_172",function(){return l.z}),i.d(t,"_173",function(){return l.A}),i.d(t,"_174",function(){return l.B}),i.d(t,"_175",function(){return l.C}),i.d(t,"_176",function(){return l.D}),i.d(t,"_177",function(){return l.E}),i.d(t,"_178",function(){return l.F}),i.d(t,"_179",function(){return l.G}),i.d(t,"_180",function(){return l.H}),i.d(t,"_181",function(){return l.I}),i.d(t,"_182",function(){return l.J}),i.d(t,"_183",function(){return l.K}),i.d(t,"_184",function(){return l.L}),i.d(t,"_185",function(){return l.M}),i.d(t,"_186",function(){return l.N}),i.d(t,"_187",function(){return l.O}),i.d(t,"_188",function(){return l.P}),i.d(t,"_189",function(){return l.Q}),i.d(t,"_190",function(){return l.R}),i.d(t,"_191",function(){return l.S}),i.d(t,"_192",function(){return l.T}),i.d(t,"_193",function(){return l.U}),i.d(t,"_194",function(){return l.V}),i.d(t,"_195",function(){return l.W}),i.d(t,"_196",function(){return l.X}),i.d(t,"_197",function(){return l.Y}),i.d(t,"_198",function(){return l.Z}),i.d(t,"_199",function(){return l._0}),i.d(t,"_200",function(){return l._1}),i.d(t,"_201",function(){return l._2}),i.d(t,"_202",function(){return l._3}),i.d(t,"_203",function(){return l._4}),i.d(t,"_204",function(){return l._5}),i.d(t,"_205",function(){return l._6}),i.d(t,"_206",function(){return l._7}),i.d(t,"_207",function(){return l._8}),i.d(t,"_208",function(){return l._9}),i.d(t,"_209",function(){return l._10}),i.d(t,"_210",function(){return l._11}),i.d(t,"_211",function(){return l._12}),i.d(t,"_212",function(){return l._13}),i.d(t,"_213",function(){return l._14}),i.d(t,"_214",function(){return l._15}),i.d(t,"_215",function(){return l._16}),i.d(t,"_216",function(){return l._17}),i.d(t,"_217",function(){return l._18}),i.d(t,"_218",function(){return l._19}),i.d(t,"_219",function(){return l._20}),i.d(t,"_220",function(){return l._21}),i.d(t,"_221",function(){return l._22}),i.d(t,"_222",function(){return l._23}),i.d(t,"_223",function(){return l._24})},function(e,t,i){"use strict";var n=i(22);i.d(t,"a",function(){return n.a});var r=i(12);i.d(t,"b",function(){return r.a});var s=i(23);i.d(t,"c",function(){return s.a})},function(e,t,i){"use strict";i.d(t,"a",function(){return p});var n=i(11),r=(i.n(n),i(0)),s=(i.n(r),i(6)),a=i(4),o=i(3),l=i(1),d=i(5),h=i(19),c=(i.n(h),i(2)),u=this&&this.__assign||function(){return u=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},u.apply(this,arguments)},p=function(){function e(e){this.default=["Delete","Rename","Download","Cut","Copy","Paste"],this.single=["Delete","Rename","Download","Cut","Copy"],this.multiple=["Delete","Download","Cut","Copy","Refresh"],this.selection=["NewFolder","Upload","SortBy","Refresh"],this.parent=e,this.render(),this.addEventListener()}return e.prototype.render=function(){var e=this;this.items=this.toolbarItemData(this.getItems(this.parent.toolbarSettings.items.map(function(e){return e.trim()})));var t={items:this.items};this.parent.trigger("toolbarCreate",t,function(t){e.items=t.items,e.toolbarObj=new n.Toolbar({items:e.items,created:e.toolbarCreateHandler.bind(e),overflowMode:"Popup",clicked:e.onClicked.bind(e),enableHtmlSanitizer:e.parent.enableHtmlSanitizer,enableRtl:e.parent.enableRtl}),e.toolbarObj.isStringTemplate=!0,e.toolbarObj.root=e.parent.root?e.parent.root:e.parent,e.toolbarObj.appendTo("#"+e.parent.element.id+o.O)})},e.prototype.getItemIndex=function(e){for(var t=this.getId(e),i=0;i<this.items.length;i++)if(this.items[i].id===t)return i;return-1},e.prototype.getItems=function(e){var t=e.slice();return this.parent.isDevice&&this.parent.allowMultiSelection&&t.push("SelectAll"),this.parent.toolbarItems.length>0&&(t=this.parent.toolbarItems.map(function(e){return e.name})),t},e.prototype.onClicked=function(e){var t=this;if(!i.i(r.isNullOrUndefined)(e.item)&&e.item.id){var n,h=e.item.id.substr((this.parent.element.id+"_tb_").length);"refresh"===h||"newfolder"===h||"upload"===h?(n=[i.i(l.r)(this.parent)],this.parent.itemData=n):(this.parent.notify(a.O,{}),n=this.parent.itemData);var u={cancel:!1,fileDetails:n,item:e.item};this.parent.trigger("toolbarClick",u,function(u){var p,f;if(!u.cancel)switch(h){case"sortby":f=i.i(r.closest)(e.originalEvent.target,"."+o._24),f&&f.classList.contains("e-toolbar-popup")&&(e.cancel=!0);break;case"newfolder":i.i(c._23)(t.parent);break;case"cut":i.i(c.C)(t.parent);break;case"copy":i.i(c.B)(t.parent);break;case"delete":for(var g=0;g<n.length;g++)if(!i.i(c._19)(n[g]))return void i.i(l._7)(t.parent,n[g],a.x);i.i(s.a)(t.parent,"Delete");break;case"details":t.parent.notify(a.T,{}),p=t.parent.selectedItems,"navigationpane"===t.parent.activeModule&&(p=[]),i.i(d.g)(t.parent,p,t.parent.path,"details");break;case"paste":t.parent.folderPath="",i.i(c.T)(t.parent);break;case"refresh":i.i(l.p)(t.parent);break;case"download":i.i(c._13)(t.parent);break;case"rename":i.i(c._19)(n[0])?(t.parent.notify(a.Q,{}),i.i(s.a)(t.parent,"Rename")):i.i(l._7)(t.parent,n[0],a.x);break;case"upload":i.i(c._24)(t.parent);break;case"selectall":t.parent.notify(a.R,{});break;case"selection":t.parent.notify(a.Y,{})}})}},e.prototype.toolbarCreateHandler=function(){var e=this;if(!i.i(r.isNullOrUndefined)(i.i(r.select)("#"+this.getId("SortBy"),this.parent.element))){var t=[{id:this.getPupupId("name"),text:i.i(l.E)(this.parent,"Name"),iconCss:"name"===this.parent.sortBy?o._5:""},{id:this.getPupupId("size"),text:i.i(l.E)(this.parent,"Size"),iconCss:"size"===this.parent.sortBy?o._5:""},{id:this.getPupupId("date"),text:i.i(l.E)(this.parent,"DateModified"),iconCss:"_fm_modified"===this.parent.sortBy?o._5:""},{separator:!0},{id:this.getPupupId("ascending"),text:i.i(l.E)(this.parent,"Ascending"),iconCss:"Ascending"===this.parent.sortOrder?o._6:""},{id:this.getPupupId("descending"),text:i.i(l.E)(this.parent,"Descending"),iconCss:"Descending"===this.parent.sortOrder?o._6:""},{id:this.getPupupId("none"),text:i.i(l.E)(this.parent,"None"),iconCss:"None"===this.parent.sortOrder?o._6:""}];this.buttonObj=new h.DropDownButton({items:t,cssClass:i.i(l.F)(this.parent,o.D),select:l.G.bind(this,this.parent),enableHtmlSanitizer:this.parent.enableHtmlSanitizer,enableRtl:this.parent.enableRtl,iconCss:o._4}),this.buttonObj.isStringTemplate=!0,this.buttonObj.appendTo("#"+this.getId("SortBy"))}if(!i.i(r.isNullOrUndefined)(i.i(r.select)("#"+this.getId("View"),this.parent.element))){var n='<span class="'+o.M+" "+o.L+'"></span>',s='<span class="'+o.K+" "+o.L+'"></span>',a=[{id:this.getPupupId("large"),text:i.i(l.E)(this.parent,"View-LargeIcons"),iconCss:"Details"===this.parent.view?"":o._6},{id:this.getPupupId("details"),text:i.i(l.E)(this.parent,"View-Details"),iconCss:"Details"===this.parent.view?o._6:""}];this.layoutBtnObj=new h.DropDownButton({iconCss:"Details"===this.parent.view?o.M:o.K,cssClass:i.i(l.F)(this.parent,"e-caret-hide "+o.D),items:a,select:this.layoutChange.bind(this),enableRtl:this.parent.enableRtl,content:'<span class="e-tbar-btn-text">'+i.i(l.E)(this.parent,"View")+"</span>",beforeItemRender:function(t){var r=t.item.iconCss,a=t.item.text===i.i(l.E)(e.parent,"View-LargeIcons"),o=r?" e-menu-icon "+r:"";t.element.innerHTML='<span class="'+o+'"></span>'+(a?s:n)+t.item.text;var d=t.element.firstChild;d&&""===d.className&&t.element.removeChild(d)}}),this.layoutBtnObj.isStringTemplate=!0,this.layoutBtnObj.appendTo("#"+this.getId("View"))}this.hideItems(this.default,!0),this.hideStatus(),this.parent.portals&&this.toolbarObj.portals&&(this.parent.portals=this.parent.portals.concat(this.toolbarObj.portals),this.parent.renderReactTemplates());for(var d=i.i(r.selectAll)(".e-btn",this.toolbarObj.element),c=0;c<d.length;c++)!function(e){d[e].onkeydown=function(e){13!==e.keyCode||e.target.classList.contains("e-fe-popup")||e.preventDefault()},d[e].onkeyup=function(t){13!==t.keyCode||t.target.classList.contains("e-fe-popup")||d[e].click()}}(c);this.parent.refreshLayout()},e.prototype.updateSortByButton=function(){if(this.buttonObj)for(var e=this.buttonObj.items,t=0;t<e.length;t++)e[t].id===this.getPupupId("name")?e[t].iconCss="name"===this.parent.sortBy?o._5:"":e[t].id===this.getPupupId("size")?e[t].iconCss="size"===this.parent.sortBy?o._5:"":e[t].id===this.getPupupId("date")?"dateModified"===this.parent.sortBy||"dateCreated"===this.parent.sortBy?e[t].iconCss=this.parent.sortBy===this.parent.sortBy?o._5:"":e[t].iconCss="_fm_modified"===this.parent.sortBy?o._5:"":e[t].id===this.getPupupId("ascending")?e[t].iconCss="Ascending"===this.parent.sortOrder?o._6:"":e[t].id===this.getPupupId("descending")?e[t].iconCss="Descending"===this.parent.sortOrder?o._6:"":e[t].id===this.getPupupId("none")&&(e[t].iconCss="None"===this.parent.sortOrder?o._6:"")},e.prototype.getPupupId=function(e){return this.parent.element.id+"_ddl_"+e.toLowerCase()},e.prototype.layoutChange=function(e){"Details"===this.parent.view?e.item.id===this.getPupupId("large")&&i.i(l.n)(this.parent,"LargeIcons"):e.item.id===this.getPupupId("details")&&i.i(l.n)(this.parent,"Details")},e.prototype.toolbarItemData=function(e){var t=[],n="Both";this.parent.isMobile&&(n="Overflow");for(var r=0;r<e.length;r++){var s=void 0,a=void 0;this.parent.toolbarItems.length>0&&(a=this.getItemModel(this.parent.toolbarItems[parseInt(r.toString(),10)]));var d=this.getId(e[r]),h=i.i(l.E)(this.parent,e[r]),c=i.i(l.E)(this.parent,"Tooltip-"+e[r]);switch(e[r]){case"|":s={type:"Separator"};break;case"Upload":s={id:d,text:h,tooltipText:c,prefixIcon:o.W,showTextOn:n};break;case"SortBy":var p='<span class="e-tbar-btn-text e-tbar-ddb-text">'+h+"</span>";a&&a.text&&(p='<span class="e-tbar-btn-text e-tbar-ddb-text">'+a.text+"</span>"),s={id:d,tooltipText:c,template:'<button id="'+d+'" class="e-tbar-btn e-tbtn-txt" tabindex="-1">'+p+"</button>"};break;case"Refresh":s={id:d,text:h,tooltipText:c,prefixIcon:o._7,showTextOn:n};break;case"Selection":s={id:d,text:h,tooltipText:c,suffixIcon:o._25,overflow:"Show",align:"Right"};break;case"View":var f=void 0;f=a&&a.text?a.text:i.i(l.E)(this.parent,"View"),s={id:d,tooltipText:c,prefixIcon:"Details"===this.parent.view?o.M:o.K,overflow:"Show",align:"Right",text:h,showTextOn:"Overflow",template:'<button id="'+d+'" class="e-tbar-btn e-tbtn-txt" tabindex="-1" aria-label='+f+"></button>"};break;case"Details":s={id:d,tooltipText:c,prefixIcon:o._3,overflow:"Show",align:"Right",text:h,showTextOn:"Overflow"};break;case"NewFolder":s={id:d,text:h,tooltipText:c,prefixIcon:o._2,showTextOn:n};break;case"Cut":s={id:d,text:h,tooltipText:c,prefixIcon:o.X,showTextOn:n};break;case"Copy":s={id:d,text:h,tooltipText:c,prefixIcon:o.Y,showTextOn:n};break;case"Paste":s={id:d,text:h,tooltipText:c,prefixIcon:o.Z,showTextOn:n};break;case"Delete":s={id:d,text:h,tooltipText:c,prefixIcon:o._0,showTextOn:n};break;case"Rename":s={id:d,text:h,tooltipText:c,prefixIcon:o._1,showTextOn:n};break;case"Download":s={id:d,text:h,tooltipText:c,prefixIcon:o._9,showTextOn:n};break;case"SelectAll":s={id:d,text:h,tooltipText:c,prefixIcon:o._8,showTextOn:n};break;default:s={id:d,text:h,tooltipText:c,template:""}}if(this.parent.toolbarItems.length>0&&a){var g=u({},s,a);t.push(g)}else t.push(s)}return t},e.prototype.getItemModel=function(e){var t={};return e.id&&(t.id=e.id),e.text&&(t.text=e.text),e.tooltipText&&(t.tooltipText=e.tooltipText),e.prefixIcon&&(t.prefixIcon=e.prefixIcon),e.cssClass&&(t.cssClass=e.cssClass),"Both"!==e.showTextOn&&(t.showTextOn=e.showTextOn),e.template&&(t.template=e.template),e.disabled&&(t.disabled=e.disabled),"auto"!==e.width&&(t.width=e.width),e.suffixIcon&&(t.suffixIcon=e.suffixIcon),"Left"!==e.align&&(t.align=e.align),"None"!==e.overflow&&(t.overflow=e.overflow),e.htmlAttributes&&(t.htmlAttributes=e.htmlAttributes),"Button"!==e.type&&(t.type=e.type),!0!==e.visible&&(t.visible=e.visible),e.showAlwaysInPopup&&(t.showAlwaysInPopup=e.showAlwaysInPopup),-1!==e.tabIndex&&(t.tabIndex=e.tabIndex),t},e.prototype.getId=function(e){return this.parent.element.id+"_tb_"+e.toLowerCase()},e.prototype.addEventListener=function(){this.parent.on(a.V,this.onPropertyChanged,this),this.parent.on(a.H,this.onSelectionChanged,this),this.parent.on(a.e,this.onLayoutChange,this),this.parent.on(a.c,this.showPaste,this),this.parent.on(a.a,this.hidePaste,this),this.parent.on(a.U,this.destroy,this),this.parent.on(a.l,this.updateSortByButton,this)},e.prototype.reRenderToolbar=function(e){var t=this,i=[];if(this.parent.toolbarItems.length>0?i=this.parent.toolbarItems.map(function(e){return e.name}):void 0!==e.newProp.toolbarSettings.items&&(i=e.newProp.toolbarSettings.items.map(function(e){return e.trim()})),i.length>0){this.items=this.toolbarItemData(this.getItems(i));var n={items:this.items};this.parent.trigger("toolbarCreate",n,function(e){t.buttonObj&&t.buttonObj.destroy(),t.layoutBtnObj&&t.layoutBtnObj.destroy(),t.items=e.items,t.toolbarObj.items=t.items,t.toolbarObj.dataBind(),t.toolbarCreateHandler()})}},e.prototype.onSelectionChanged=function(){this.hideStatus(),this.hideItems(this.single,!0),this.hideItems(this.selection,!1),1===this.parent.selectedItems.length?(this.hideItems(this.single,!1),this.hideItems(this.selection,!0)):this.parent.selectedItems.length>1&&(this.hideItems(this.multiple,!1),this.hideItems(this.selection,!0));var e=i.i(r.select)("#"+this.getId("Selection"),this.toolbarObj.element);if(this.parent.selectedItems.length>0&&e&&!this.parent.enableVirtualization){var t=void 0;t=1===this.parent.selectedItems.length?this.parent.selectedItems.length+" "+i.i(l.E)(this.parent,"Item-Selection"):this.parent.selectedItems.length+" "+i.i(l.E)(this.parent,"Items-Selection"),i.i(r.select)(".e-tbar-btn-text",e).textContent=t,this.toolbarObj.hideItem(e.parentElement,!1)}},e.prototype.hideItems=function(e,t){for(var n=0;n<e.length;n++){var s=i.i(r.select)("#"+this.getId(e[n]),this.parent.element);s&&this.toolbarObj.hideItem(s.parentElement,t)}},e.prototype.hideStatus=function(){var e=i.i(r.select)("#"+this.getId("Selection"),this.toolbarObj.element);e&&this.toolbarObj.hideItem(e.parentElement,!0)},e.prototype.showPaste=function(){this.hideItems(["Paste"],!1)},e.prototype.hidePaste=function(){this.hideItems(["Paste"],!0)},e.prototype.onLayoutChange=function(){if(this.layoutBtnObj){this.layoutBtnObj.iconCss="Details"===this.parent.view?o.M:o.K;for(var e=this.layoutBtnObj.items,t=0;t<e.length;t++)e[t].id===this.getPupupId("large")?e[t].iconCss="LargeIcons"===this.parent.view?o._6:"":e[t].id===this.getPupupId("details")&&(e[t].iconCss="Details"===this.parent.view?o._6:"")}},e.prototype.removeEventListener=function(){this.parent.off(a.V,this.onPropertyChanged),this.parent.off(a.H,this.onSelectionChanged),this.parent.off(a.e,this.onLayoutChange),this.parent.off(a.c,this.showPaste),this.parent.off(a.a,this.hidePaste),this.parent.off(a.U,this.destroy),this.parent.off(a.l,this.updateSortByButton)},e.prototype.getModuleName=function(){return"toolbar"},e.prototype.onPropertyChanged=function(e){if(e.module===this.getModuleName()||"common"===e.module)for(var t=0,n=Object.keys(e.newProp);t<n.length;t++){var r=n[t];switch(r){case"cssClass":this.buttonObj&&(this.buttonObj.cssClass=i.i(l.F)(this.parent,o.D)),this.layoutBtnObj&&(this.layoutBtnObj.cssClass=i.i(l.F)(this.parent,"e-caret-hide "+o.D));break;case"height":case"width":this.toolbarObj.refreshOverflow();break;case"toolbarSettings":case"toolbarItems":this.reRenderToolbar(e)}}},e.prototype.destroy=function(){this.parent.isDestroyed||(this.removeEventListener(),this.buttonObj&&this.buttonObj.destroy(),this.layoutBtnObj&&this.layoutBtnObj.destroy(),this.toolbarObj.destroy(),this.parent.refreshLayout())},e.prototype.enableItems=function(e,t){for(var n=0;n<e.length;n++){var s=i.i(r.select)("#"+this.getId(e[n]),this.parent.element);s&&this.toolbarObj.enableItems(s.parentElement,t)}},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var n=i(0),r=(i.n(n),i(18)),s=(i.n(r),i(3)),a=function(){function e(e){this.filemanagerInstance=e,this.largeIconInstance=e.largeiconsviewModule}return e.prototype.setUIVirtualization=function(){var e=this.largeIconInstance.items,t=e.slice(0,1),a=r.ListBase.createListFromJson(n.createElement,t,this.largeIconInstance.listObj);this.itemList=Array.prototype.slice.call(i.i(n.selectAll)("."+s.a,a)),this.largeIconInstance.element.appendChild(a),0!==this.itemList.length&&this.largeIconInstance.element.querySelector("."+s.s)&&this.largeIconInstance.element.removeChild(this.largeIconInstance.element.querySelector("."+s.s)),this.itemCount=this.getItemCount(Object.keys(this.largeIconInstance.allItems).length),this.largeIconInstance.element.firstChild.remove(),this.largeIconInstance.items=e.slice(0,this.itemCount)},e.prototype.setUlElementHeight=function(){this.lastRowCount=(this.largeIconInstance.allItems.length-this.itemCount)%this.rowItemCount?(this.largeIconInstance.allItems.length-this.itemCount)%this.rowItemCount:this.rowItemCount,this.topElement=this.filemanagerInstance.createElement("div"),this.topElement.classList.add("e-virtual-top"),this.largeIconInstance.element.firstElementChild.insertBefore(this.topElement,this.largeIconInstance.element.firstElementChild.firstChild),this.bottomElement=this.filemanagerInstance.createElement("div"),this.bottomElement.classList.add("e-virtual-bottom"),this.largeIconInstance.element.firstElementChild.insertBefore(this.bottomElement,null);var e=parseInt(window.getComputedStyle(this.largeIconInstance.itemList[0]).getPropertyValue("margin-top"),10)+parseInt(window.getComputedStyle(this.largeIconInstance.itemList[0]).getPropertyValue("margin-bottom"),10);this.listItemHeight=this.largeIconInstance.itemList[0].getBoundingClientRect().height+e,this.totalHeight=Object.keys(this.largeIconInstance.allItems).length/this.rowItemCount*this.listItemHeight,this.topElement.style.height="0px",this.bottomElement.style.height=this.totalHeight+"px",this.topElementHeight=0,this.bottomElementHeight=this.totalHeight,this.listDiff=0,this.renderedCount=this.itemCount},e.prototype.getItemCount=function(e){var t=parseInt(window.getComputedStyle(this.itemList[0]).getPropertyValue("margin-right"),10)+parseInt(window.getComputedStyle(this.itemList[0]).getPropertyValue("margin-left"),10);this.rowItemCount=Math.floor(parseFloat(i.i(n.formatUnit)(this.largeIconInstance.element.firstElementChild.clientWidth))/(this.itemList[0].offsetWidth+t));var r=this.rowItemCount*Math.round(parseFloat(i.i(n.formatUnit)(this.largeIconInstance.element.clientHeight))/this.itemList[0].offsetHeight);return r>e&&(r=e),r},e.prototype.wireScrollEvent=function(e){e?n.EventHandler.remove(this.largeIconInstance.element.firstElementChild,"scroll",this.onVirtualUiScroll):n.EventHandler.add(this.largeIconInstance.element.firstElementChild,"scroll",this.onVirtualUiScroll,this)},e.prototype.onVirtualUiScroll=function(){var e;this.scrollPosition=i.i(n.isNullOrUndefined)(this.scrollPosition)?0:this.scrollPosition;var t=this.getscrollerHeight(0);if(this.topElementHeight=this.listItemHeight*Math.floor(t/this.listItemHeight),this.bottomElementHeight=this.totalHeight-this.topElementHeight,e=t<=this.totalHeight?[this.topElementHeight,this.bottomElementHeight]:[this.totalHeight,0],this.topElementHeight=e[0],this.bottomElementHeight=e[1],this.topElementHeight!==parseFloat(this.topElement.style.height))if(this.topElement.style.height=this.topElementHeight+"px",this.bottomElement.style.height=this.bottomElementHeight+"px",t>this.scrollPosition){var r=Math.round(this.topElementHeight/this.listItemHeight-this.listDiff);this.onNormalScroll(r,!0)}else{var r=Math.round(this.listDiff-this.topElementHeight/this.listItemHeight);this.onNormalScroll(r,!1)}this.listDiff=Math.round(this.topElementHeight/this.listItemHeight),this.scrollPosition=t,this.largeIconInstance.itemList=Array.prototype.slice.call(i.i(n.selectAll)("."+s.a,this.largeIconInstance.element)),this.itemCount=this.itemCount!=this.largeIconInstance.itemList.length?this.largeIconInstance.itemList.length:this.itemCount,this.largeIconInstance.items=this.largeIconInstance.allItems.slice(this.renderedCount-this.itemCount,this.renderedCount)},e.prototype.getscrollerHeight=function(e){return this.largeIconInstance.element.firstElementChild.scrollTop-e<=0?0:this.largeIconInstance.element.firstElementChild.scrollTop-e},e.prototype.onNormalScroll=function(e,t){for(var i=0;i<e;i++)this.updateUI(t)},e.prototype.updateUI=function(e){var t=this;if(e){if(this.items=this.largeIconInstance.allItems.slice(this.renderedCount,this.renderedCount+this.rowItemCount),this.items.length>0){var a=r.ListBase.createListFromJson(n.createElement,this.items,this.largeIconInstance.listObj);this.itemList=Array.prototype.slice.call(i.i(n.selectAll)("."+s.a,a)),this.itemList.forEach(function(e){t.largeIconInstance.element.firstElementChild.insertBefore(e,t.bottomElement)}),this.renderedCount=this.largeIconInstance.allItems.length>=this.renderedCount+this.rowItemCount?this.renderedCount+this.rowItemCount:this.renderedCount+this.lastRowCount;for(var o=0;o<this.rowItemCount;o++)i.i(n.detach)(this.topElement.nextElementSibling)}}else{var l=void 0,d=void 0;this.renderedCount===this.largeIconInstance.allItems.length?(l=this.renderedCount-(this.itemCount-this.rowItemCount+this.lastRowCount),this.renderedCount=this.renderedCount-this.lastRowCount<this.itemCount?this.itemCount:this.renderedCount-this.lastRowCount,d=!0):(l=this.renderedCount-this.itemCount,this.renderedCount=this.renderedCount-this.rowItemCount<this.itemCount?this.itemCount:this.renderedCount-this.rowItemCount);var h=l-this.rowItemCount>0?l-this.rowItemCount:0;if(this.items=this.largeIconInstance.allItems.slice(h,l),this.items.length>0){var a=r.ListBase.createListFromJson(n.createElement,this.items,this.largeIconInstance.listObj);this.itemList=Array.prototype.slice.call(i.i(n.selectAll)("."+s.a,a));for(var c=this.itemList.length;c>0;c--)this.largeIconInstance.element.firstElementChild.insertBefore(this.itemList[c-1],this.topElement.nextElementSibling);for(var o=0;o<(d?this.lastRowCount:this.rowItemCount);o++)i.i(n.detach)(this.bottomElement.previousElementSibling)}}},e.prototype.getModuleName=function(){return"virtualization"},e.prototype.destroy=function(){this.filemanagerInstance.isDestroyed||i.i(n.isNullOrUndefined)(this.largeIconInstance.element.firstElementChild)||this.wireScrollEvent(!0)},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return I});var n=i(0),r=(i.n(n),i(39)),s=(i.n(r),i(9)),a=(i.n(s),i(6)),o=i(7),l=i(13),d=i(10),h=(i.n(d),i(15)),c=i(4),u=i(3),p=i(5),f=i(1),g=i(14),m=i(12),b=i(16),v=i(31),y=this&&this.__extends||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])})(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)}}(),_=this&&this.__decorate||function(e,t,i,n){var r,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,i,a):r(t,i))||a);return s>3&&a&&Object.defineProperty(t,i,a),a},I=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n.filterData=null,n.selectedNodes=[],n.duplicateItems=[],n.duplicateRecords=[],n.previousPath=[],n.nextPath=[],n.isLayoutChange=!1,n.layoutSelectedItems=[],n.renamedId=null,n.uploadItem=[],n.deleteRecords=[],n.isFile=!1,n.isCut=!1,n.isSearchCut=!1,n.isSearchDrag=!1,n.isPasteError=!1,n.folderPath="",n.isSameAction=!1,n.isFiltered=!1,n.isSortByClicked=!1,n.enablePaste=!1,n.persistData=!1,n.retryArgs=[],n.isOpened=!1,n.isRetryOpened=!1,n.isPathDrag=!1,n.searchedItems=[],n.retryFiles=[],n.isApplySame=!1,n.dragData=[],n.dragNodes=[],n.dragPath="",n.dropPath="",n.isDragDrop=!1,n.treeExpandTimer=null,n.dragCursorPosition={left:44,top:18},n.isDropEnd=!1,n.dragCount=0,n.droppedObjects=[],n.uploadingCount=0,n.uploadedCount=0,n.isMac=!1,I.Inject(m.a,l.a,b.a),n}y(t,e),I=t,t.prototype.getModuleName=function(){return"filemanager"},t.prototype.preRender=function(){(i.i(n.isNullOrUndefined)(this.element.id)||""===this.element.id)&&this.element.setAttribute("id",i.i(n.getUniqueID)("filemanager")),this.ensurePath(),this.feParent=[],this.feFiles=[],i.i(n.setStyleAttribute)(this.element,{width:i.i(n.formatUnit)(this.width),height:i.i(n.formatUnit)(this.height)}),this.isDevice=n.Browser.isDevice,this.isMobile=this.checkMobile(),this.isMobile&&this.setProperties({navigationPaneSettings:{visible:!1}},!0);var e=i.i(n.closest)(this.element,".e-bigger");this.isBigger=!!e,this.activeModule="LargeIcons"===this.view?"largeiconsview":"detailsview",i.i(s.createSpinner)({target:this.element},n.createElement),this.addWrapper(),this.keyConfigs={altN:"alt+n",f5:"f5",ctrlShift1:"ctrl+shift+1",ctrlShift2:"ctrl+shift+2",ctrlU:"ctrl+u"},this.localeObj=new n.L10n(this.getModuleName(),v.a,this.locale)},t.prototype.getPersistData=function(){var e=["view","path","selectedItems"];return this.addOnPersist(e)},t.prototype.requiredModules=function(){var e=[];return e.push({member:"breadcrumbbar",args:[this]}),e.push({member:"largeiconsview",args:[this]}),this.toolbarSettings.visible&&e.push({member:"toolbar",args:[this],name:"Toolbar"}),this.navigationPaneSettings.visible&&e.push({member:"navigationpane",args:[this],name:"NavigationPane"}),this.view&&e.push({member:"detailsview",args:[this],name:"DetailsView"}),this.contextMenuSettings.visible&&!this.isDevice&&e.push({member:"contextmenu",args:[this],name:"ContextMenu"}),this.enableVirtualization&&e.push({member:"virtualization",args:[this],name:"Virtualization"}),e},t.prototype.render=function(){this.initialize();var e=i.i(n.isNullOrUndefined)(this.selectedItems)?[]:this.allowMultiSelection?this.selectedItems:this.selectedItems.slice(this.selectedItems.length-1);if(this.setProperties({selectedItems:e},!0),this.fileView=this.view,this.isMac=navigator.platform.toUpperCase().indexOf("MAC")>=0,this.setRtl(this.enableRtl),this.addEventListeners(),i.i(p.a)(this,this.path!==this.originalPath?c.n:c.m,this.path),this.adjustHeight(),i.i(n.isNullOrUndefined)(this.navigationpaneModule)){this.splitterObj.collapse(this.enableRtl?1:0);i.i(n.select)("."+u._55,this.element).classList.add(u._10)}this.wireEvents(),this.renderComplete()},t.prototype.ensurePath=function(){var e=this.path;i.i(n.isNullOrUndefined)(e)&&(e="/"),e.lastIndexOf("/")!==e.length-1&&(e+="/"),this.originalPath=e;var t=e.split("/");this.setProperties({path:t[0]+"/"},!0),this.pathNames=[],this.pathId=["fe_tree"],this.itemData=[]},t.prototype.initialize=function(){this.isMobile&&i.i(n.addClass)([this.element],u._35),this.allowMultiSelection&&i.i(n.addClass)([this.element],u._34),this.addCssClass(null,this.cssClass),this.renderFileUpload()},t.prototype.addWrapper=function(){var e=this.createElement("div",{id:this.element.id+u.O});this.element.appendChild(e);var t=this.createElement("div",{id:this.element.id+u.p,className:u._36});this.element.appendChild(t);var i=this.createElement("div",{id:this.element.id+u._26,className:u._37}),n=this.createElement("div",{id:this.element.id+u.R});i.appendChild(n);var s=this.createElement("div",{id:this.element.id+u.y,className:u._38});this.breadCrumbBarNavigation=this.createElement("div",{id:this.element.id+u.q,className:u._51}),s.appendChild(this.breadCrumbBarNavigation);var a=this.createElement("div",{id:this.element.id+u.S});s.appendChild(a);var o=this.createElement("div",{id:this.element.id+u.T,className:u.k,attrs:{role:"group"}});s.appendChild(o);var l=this.createElement("span",{className:u._56});s.appendChild(l);var d;this.enableRtl?(t.appendChild(s),t.appendChild(i),d=[{size:"75%",min:"270px"},{size:"25%",min:this.navigationPaneSettings.minWidth.toString(),max:this.navigationPaneSettings.maxWidth.toString()}]):(t.appendChild(i),t.appendChild(s),d=[{size:"25%",min:this.navigationPaneSettings.minWidth.toString(),max:this.navigationPaneSettings.maxWidth.toString()},{size:"75%",min:"270px"}]),this.splitterObj=new r.Splitter({paneSettings:d,width:"100%",enableRtl:!1,enableHtmlSanitizer:this.enableHtmlSanitizer,resizing:this.splitterResize.bind(this)}),this.splitterObj.isStringTemplate=!0,this.splitterObj.appendTo(t);var h=this.createElement("div",{id:this.element.id+u.E});this.element.appendChild(h);var c=this.createElement("ul",{id:this.element.id+u.J});this.element.appendChild(c);var p=this.createElement("div",{id:this.element.id+u.I});this.element.appendChild(p);var f=this.createElement("div",{id:this.element.id+u.F});this.element.appendChild(f);var g=this.createElement("div",{id:this.element.id+u._28});this.element.appendChild(g)},t.prototype.adjustHeight=function(){var e=i.i(n.select)("#"+this.element.id+u.O,this.element),t=e?e.offsetHeight:0;this.splitterObj&&(this.splitterObj.height=(this.element.clientHeight-t).toString(),this.splitterObj.dataBind())},t.prototype.splitterResize=function(){this.notify(c.Z,{})},t.prototype.splitterAdjust=function(){var e=i.i(n.select)("."+u._55,this.element);this.navigationPaneSettings.visible?(this.splitterObj.expand(this.enableRtl?1:0),e.classList.remove(u._10)):(this.splitterObj.collapse(this.enableRtl?1:0),e.classList.add(u._10))},t.prototype.addCssClass=function(e,t){i.i(n.isNullOrUndefined)(e)||""===e||i.i(n.removeClass)([this.element],e.split(" ")),i.i(n.isNullOrUndefined)(t)||""===t||i.i(n.addClass)([this.element],t.split(" "))},t.prototype.showSpinner=function(){i.i(s.showSpinner)(this.element)},t.prototype.hideSpinner=function(){i.i(s.hideSpinner)(this.element)},t.prototype.onContextMenu=function(e){e.preventDefault()},t.prototype.checkMobile=function(){return/iphone|ipod|android|blackberry|opera|mini|windows\sce|palm|smartphone|iemobile/i.test(n.Browser.userAgent.toLowerCase())&&/mobile/i.test(n.Browser.userAgent.toLowerCase())},t.prototype.renderFileUpload=function(){var e=this.element.id+u.B,t=this.createElement("input",{id:e,attrs:{name:"uploadFiles",type:"file"}});this.element.appendChild(t),this.uploadDialogObj=new s.Dialog({header:i.i(f.E)(this,"Header-Upload"),content:t,animationSettings:{effect:"None"},showCloseIcon:!0,closeOnEscape:!0,visible:!1,isModal:!0,width:"350px",target:this.popupTarget?this.popupTarget:"#"+this.element.id,cssClass:i.i(f.F)(this,this.isMobile?u.C:u.D),locale:this.locale,allowDragging:!0,position:{X:"center",Y:"center"},enableRtl:this.enableRtl,enableHtmlSanitizer:this.enableHtmlSanitizer,open:this.onOpen.bind(this),close:this.onClose.bind(this),beforeOpen:this.onBeforeOpen.bind(this),beforeClose:this.onBeforeClose.bind(this)}),this.uploadDialogObj.appendTo("#"+this.element.id+u._28),this.renderUploadBox()},t.prototype.renderUploadBox=function(){var e=this.ajaxSettings.uploadUrl?this.ajaxSettings.uploadUrl:this.ajaxSettings.url;this.uploadObj=new d.Uploader({dropArea:i.i(n.select)("#"+this.element.id+u.y,this.element),asyncSettings:{saveUrl:e,removeUrl:e},locale:this.locale,enableRtl:this.enableRtl,uploading:this.onUploading.bind(this),removing:this.onRemoving.bind(this),canceling:this.onCancel.bind(this),clearing:this.onClearing.bind(this),selected:this.onSelected.bind(this),success:this.onUploadSuccess.bind(this),failure:this.onUploadFailure.bind(this),autoUpload:this.uploadSettings.autoUpload,minFileSize:this.uploadSettings.minFileSize,maxFileSize:this.uploadSettings.maxFileSize,allowedExtensions:this.uploadSettings.allowedExtensions,directoryUpload:this.uploadSettings.directoryUpload,fileListRendering:this.onFileListRender.bind(this)}),this.uploadObj.appendTo("#"+this.element.id+u.B)},t.prototype.onFileListRender=function(e){this.trigger("uploadListCreate",e)},t.prototype.updateUploader=function(){this.uploadObj.autoUpload=this.uploadSettings.autoUpload,this.uploadObj.minFileSize=this.uploadSettings.minFileSize,this.uploadObj.maxFileSize=this.uploadSettings.maxFileSize,this.uploadObj.allowedExtensions=this.uploadSettings.allowedExtensions,this.uploadObj.directoryUpload=this.uploadSettings.directoryUpload,this.uploadObj.dataBind()},t.prototype.onBeforeOpen=function(e){var t={cancel:e.cancel,popupName:"Upload",popupModule:this.uploadDialogObj};this.trigger("beforePopupOpen",t,function(t){e.cancel=t.cancel})},t.prototype.onBeforeClose=function(e){var t={cancel:e.cancel,popupName:"Upload",popupModule:this.uploadDialogObj};this.trigger("beforePopupClose",t,function(t){e.cancel=t.cancel})},t.prototype.onOpen=function(){this.isOpened=!0,this.uploadDialogObj.element.focus();var e={popupModule:this.uploadDialogObj,popupName:"Upload",element:this.uploadDialogObj.element};this.trigger("popupOpen",e)},t.prototype.onClose=function(){this.isOpened=!1,this.uploadObj.clearAll();var e={popupModule:this.uploadDialogObj,popupName:"Upload",element:this.uploadDialogObj.element};this.trigger("popupClose",e)},t.prototype.onUploading=function(e){var t="save";if(0!==this.retryArgs.length)for(var r=0;r<this.retryArgs.length;r++)e.fileData.name===this.retryArgs[r].file.name&&(t=this.retryArgs[r].action,this.retryArgs.splice(r,1),r=this.retryArgs.length);var s=JSON.stringify(i.i(n.getValue)(this.pathId[this.pathId.length-1],this.feParent));e.customFormData=[{path:this.path},{action:t},{data:s},{filename:e.fileData.name}];var a=this.ajaxSettings.uploadUrl?this.ajaxSettings.uploadUrl:this.ajaxSettings.url,o={url:a,type:"POST",mode:!0,dataType:null,contentType:null,data:JSON.stringify(e.customFormData),onSuccess:null,onFailure:null,beforeSend:null};this.uploadEventArgs={action:"Upload",ajaxSettings:o,cancel:!1},this.trigger("beforeSend",this.uploadEventArgs,function(t){e.customFormData=JSON.parse(i.i(n.getValue)("data",t.ajaxSettings)),e.cancel=t.cancel;var r={cancel:!1,httpRequest:e.currentRequest};"function"==typeof i.i(n.getValue)("beforeSend",t.ajaxSettings)&&(i.i(n.getValue)("beforeSend",t.ajaxSettings)(r),i.i(n.getValue)("cancel",r)&&(e.cancel=i.i(n.getValue)("cancel",r)))})},t.prototype.onRemoving=function(){this.onFileUploadSuccess({count:1}),1===this.uploadObj.getFilesData().length&&this.uploadDialogObj.hide()},t.prototype.onCancel=function(e){var t=JSON.stringify(i.i(n.getValue)(this.pathId[this.pathId.length-1],this.feParent));e.customFormData=[{path:this.path},{action:"remove"},{data:t}]},t.prototype.onClearing=function(){this.isOpened&&this.uploadDialogObj.hide()},t.prototype.onSelected=function(e){if(0!==e.filesData.length){this.uploadingCount=e.filesData.length,this.uploadedCount=0;var t=i.i(f.r)(this);if(!i.i(f._12)(t))return e.cancel=!0,void i.i(f._7)(this,t,c.A);this.uploadDialogObj.show()}},t.prototype.onFileUploadSuccess=function(e){this.uploadedCount=this.uploadedCount+e.count,this.uploadSettings.autoClose&&this.uploadingCount===this.uploadedCount&&this.uploadDialogObj.hide()},t.prototype.onUploadSuccess=function(e){var t={action:"Upload",result:e};this.trigger("success",t),this.itemData=[i.i(n.getValue)(this.pathId[this.pathId.length-1],this.feParent)],i.i(p.a)(this,c.K,this.path),this.onFileUploadSuccess({count:1}),"function"==typeof i.i(n.getValue)("onSuccess",this.uploadEventArgs.ajaxSettings)&&i.i(n.getValue)("onSuccess",this.uploadEventArgs.ajaxSettings)()},t.prototype.onUploadFailure=function(e){var t=i.i(n.getValue)("response",e),r=i.i(n.getValue)("statusText",t);""!==r&&i.i(n.setValue)("statusText",r,e);var s={action:"Upload",error:e};this.trigger("failure",s),400===i.i(n.getValue)("statusCode",t)&&(this.retryFiles.push(i.i(n.getValue)("file",e)),this.isRetryOpened||i.i(a.b)(this,"UploadRetry")),"function"==typeof i.i(n.getValue)("onFailure",this.uploadEventArgs.ajaxSettings)&&i.i(n.getValue)("onFailure",this.uploadEventArgs.ajaxSettings)()},t.prototype.onInitialEnd=function(){i.i(f.I)(this,this.path)},t.prototype.addEventListeners=function(){this.on(c.E,this.showSpinner,this),this.on(c.F,this.hideSpinner,this),this.on(c.n,this.onInitialEnd,this),this.on(c.T,this.onDetailsInit,this),this.on(c.C,this.onFileUploadSuccess,this),n.EventHandler.add(this.element,"contextmenu",this.onContextMenu,this)},t.prototype.removeEventListeners=function(){this.isDestroyed||(this.off(c.E,this.showSpinner),this.off(c.F,this.hideSpinner),this.off(c.n,this.onInitialEnd),this.off(c.T,this.onDetailsInit),this.off(c.C,this.onFileUploadSuccess),n.EventHandler.remove(this.element,"contextmenu",this.onContextMenu))},t.prototype.onDetailsInit=function(){i.i(n.isNullOrUndefined)(this.activeModule)&&(this.itemData=[i.i(n.getValue)(this.pathId[this.pathId.length-1],this.feParent)])},t.prototype.resizeHandler=function(){this.adjustHeight(),this.notify(c._0,{})},t.prototype.keyActionHandler=function(e){var t;switch(e.action){case"altN":e.preventDefault(),this.itemData=[i.i(f.r)(this)],i.i(f._11)(this.itemData[0])?i.i(a.a)(this,"NewFolder"):i.i(f._7)(this,this.itemData[0],c.z);break;case"f5":e.preventDefault(),i.i(f.p)(this);break;case"ctrlShift1":e.preventDefault(),this.fileView="Details",this.setProperties({view:"Details"},!0),i.i(s.showSpinner)(this.element),i.i(f.n)(this,"Details");break;case"ctrlShift2":e.preventDefault(),this.fileView="LargeIcons",this.setProperties({view:"LargeIcons"},!0),i.i(s.showSpinner)(this.element),i.i(f.n)(this,"LargeIcons");break;case"ctrlU":e.preventDefault(),-1!=this.toolbarSettings.items.indexOf("Upload")&&(t=i.i(n.select)("#"+this.element.id+u.B,this.element),t.click())}},t.prototype.wireEvents=function(){n.EventHandler.add(window,"resize",this.resizeHandler,this),this.keyboardModule=new n.KeyboardEvents(this.element,{keyAction:this.keyActionHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"})},t.prototype.unWireEvents=function(){n.EventHandler.remove(window,"resize",this.resizeHandler),this.keyboardModule.destroy()},t.prototype.setPath=function(){this.setProperties({selectedItems:[]},!0),this.ensurePath(),this.notify(c.o,{selectedNode:this.pathId[0]}),i.i(p.a)(this,this.path!==this.originalPath?c.n:c.m,this.path)},t.prototype.onPropertyChanged=function(e,t){for(var r,s=0,a=Object.keys(e);s<a.length;s++){switch(a[s]){case"ajaxSettings":this.ajaxSettingSetModel(e);break;case"allowDragAndDrop":this.allowDragAndDrop=e.allowDragAndDrop,this.notify(c.V,{module:"common",newProp:e,oldProp:t});break;case"allowMultiSelection":this.allowMultiSelection?i.i(n.addClass)([this.element],u._34):(this.selectedItems.length>1&&this.setProperties({selectedItems:this.selectedItems.slice(this.selectedItems.length-1)},!0),i.i(n.removeClass)([this.element],u._34)),this.notify(c.V,{module:"common",newProp:e,oldProp:t});break;case"cssClass":this.addCssClass(t.cssClass,e.cssClass),this.notify(c.V,{module:"common",newProp:e,oldProp:t});break;case"detailsViewSettings":this.notify(c.V,{module:"detailsview",newProp:e,oldProp:t});break;case"enableRtl":this.enableRtl=e.enableRtl,this.refresh();break;case"rootAliasName":this.rootAliasName=e.rootAliasName,this.refresh();break;case"height":r=i.i(n.isNullOrUndefined)(e.height)?e.height:i.i(n.formatUnit)(e.height),i.i(n.setStyleAttribute)(this.element,{height:r}),this.adjustHeight(),this.notify(c.V,{module:"common",newProp:e,oldProp:t});break;case"locale":i.i(n.isNullOrUndefined)(e.enableRtl)||this.setProperties({enableRtl:e.enableRtl},!0),this.localeSetModelOption(e);break;case"navigationPaneSettings":this.splitterAdjust(),this.notify(c.V,{module:"navigationpane",newProp:e,oldProp:t});break;case"path":this.setPath();break;case"searchSettings":i.i(n.isNullOrUndefined)(e.searchSettings.allowSearchOnTyping)||this.setProperties({searchSettings:{allowSearchOnTyping:e.searchSettings.allowSearchOnTyping}},!0),i.i(n.isNullOrUndefined)(e.searchSettings.ignoreCase)&&this.setProperties({searchSettings:{ignoreCase:e.searchSettings.ignoreCase}},!0),i.i(n.isNullOrUndefined)(e.searchSettings.filterType)&&this.setProperties({searchSettings:{filterType:e.searchSettings.filterType}},!0),this.notify(c.V,{module:"breadcrumbbar",newProp:e,oldProp:t});break;case"selectedItems":"Details"===this.view?this.notify(c.V,{module:"detailsview",newProp:e,oldProp:t}):"LargeIcons"===this.view&&this.notify(c.V,{module:"largeiconsview",newProp:e,oldProp:t});break;case"showFileExtension":case"showHiddenItems":this.notify(c.V,{module:"common",newProp:e,oldProp:t});break;case"showThumbnail":this.notify(c.V,{module:"largeiconsview",newProp:e,oldProp:t});break;case"toolbarSettings":case"toolbarItems":this.adjustHeight(),this.notify(c.V,{module:"toolbar",newProp:e,oldProp:t});break;case"uploadSettings":this.updateUploader();break;case"view":"Details"===e.view?this.notify(c.V,{module:"detailsview",newProp:e,oldProp:t}):"LargeIcons"===e.view&&this.notify(c.V,{module:"largeiconsview",newProp:e,oldProp:t});break;case"width":i.i(n.setStyleAttribute)(this.element,{width:i.i(n.isNullOrUndefined)(e.width)?e.width:i.i(n.formatUnit)(e.width)}),this.notify(c.V,{module:"common",newProp:e,oldProp:t});break;case"sortOrder":i.i(f.p)(this),this.notify(c.l,{});break;case"sortBy":i.i(f.p)(this),this.notify(c.l,{}),"Details"===this.view&&this.notify(c.k,{});break;case"popupTarget":this.uploadDialogObj&&(this.uploadDialogObj.target=e.popupTarget),this.dialogObj&&(this.dialogObj.target=e.popupTarget),this.extDialogObj&&(this.extDialogObj.target=e.popupTarget),this.viewerObj&&(this.viewerObj.target=e.popupTarget)}}},t.prototype.ajaxSettingSetModel=function(t){i.i(n.isNullOrUndefined)(t.ajaxSettings.url)||this.setProperties({ajaxSettings:{url:t.ajaxSettings.url}},!0),i.i(n.isNullOrUndefined)(t.ajaxSettings.uploadUrl)||this.setProperties({ajaxSettings:{uploadUrl:t.ajaxSettings.uploadUrl}},!0),i.i(n.isNullOrUndefined)(t.ajaxSettings.downloadUrl)||this.setProperties({ajaxSettings:{downloadUrl:t.ajaxSettings.downloadUrl}},!0),i.i(n.isNullOrUndefined)(t.ajaxSettings.getImageUrl)||this.setProperties({ajaxSettings:{getImageUrl:t.ajaxSettings.getImageUrl}},!0),this.setProperties({path:"/"},!0),this.setProperties({selectedItems:[]},!0),e.prototype.refresh.call(this)},t.prototype.localeSetModelOption=function(t){this.uploadObj.locale=t.locale,e.prototype.refresh.call(this)},t.prototype.destroy=function(){this.isDestroyed||(this.refreshing||this.notify(c.U,{}),this.uploadObj.destroy(),this.uploadObj=null,this.uploadDialogObj.destroy(),this.uploadDialogObj=null,this.splitterObj.destroy(),this.splitterObj=null,this.dialogObj&&(this.dialogObj.destroy(),this.dialogObj=null),this.viewerObj&&(this.viewerObj.destroy(),this.viewerObj=null),this.extDialogObj&&(this.extDialogObj.destroy(),this.extDialogObj=null),this.element.removeAttribute("style"),this.element.removeAttribute("tabindex"),this.removeEventListeners(),this.unWireEvents(),this.addCssClass(this.cssClass,null),i.i(n.removeClass)([this.element],[u._52,u._35,u._34]),this.element.innerHTML="",this.breadCrumbBarNavigation=null,this.activeElements=null,this.virtualDragElement=null,this.visitedItem=null,e.prototype.destroy.call(this),this.virtualizationModule=null,this.navigationpaneModule=null,this.toolbarModule=null,this.contextmenuModule=null,this.largeiconsviewModule=null,this.detailsviewModule=null,this.breadcrumbbarModule=null)},t.prototype.createFolder=function(e){this.notify(c.X,{action:"createFolder"});var t=[i.i(f.r)(this)];if(this.itemData=t,e)if(/[\/\\|*?"<>:]/.test(e)){var n={files:null,error:{code:"402",message:i.i(f.E)(this,"Validation-Invalid").replace("{0}",'"'+e+'"'),fileExists:null}};i.i(a.a)(this,"Error",n)}else i.i(f._11)(t[0])?i.i(p.b)(this,e):i.i(f._7)(this,t[0],c.z);else i.i(f._14)(this)},t.prototype.deleteFiles=function(e){this.notify(c.X,{action:"deleteFiles",ids:e})},t.prototype.disableToolbarItems=function(e){!i.i(n.isNullOrUndefined)(e)&&this.toolbarModule&&this.toolbarModule.enableItems(e,!1)},t.prototype.downloadFiles=function(e){this.notify(c.X,{action:"downloadFiles",ids:e})},t.prototype.enableToolbarItems=function(e){!i.i(n.isNullOrUndefined)(e)&&this.toolbarModule&&this.toolbarModule.enableItems(e,!0)},t.prototype.disableMenuItems=function(e){i.i(n.isNullOrUndefined)(e)||i.i(n.isNullOrUndefined)(this.contextmenuModule.contextMenu)||this.contextmenuModule.disableItem(e)},t.prototype.getMenuItemIndex=function(e){return this.contextmenuModule?this.contextmenuModule.getItemIndex(e):-1},t.prototype.getToolbarItemIndex=function(e){return this.toolbarModule?this.toolbarModule.getItemIndex(e):-1},t.prototype.filterFiles=function(e){this.filterData=e||null,this.setProperties({selectedItems:[]},!0),this.notify(c.H,{}),this.isFiltered=!0,""!==this.breadcrumbbarModule.searchObj.element.value&&(this.breadcrumbbarModule.searchObj.element.value=""),i.i(p.c)(this,c._3)},t.prototype.getSelectedFiles=function(){return this.notify(c._2,{}),this.itemData},t.prototype.openFile=function(e){this.notify(c.X,{action:"openFile",id:e})},t.prototype.refreshFiles=function(){i.i(f.p)(this)},t.prototype.refreshLayout=function(){this.adjustHeight(),this.notify(c._1,{})},t.prototype.selectAll=function(){this.notify(c.X,{action:"selectAll"})},t.prototype.clearSelection=function(){this.notify(c.X,{action:"clearSelection"})},t.prototype.renameFile=function(e,t){this.notify(c.X,{action:"renameFile",id:e,newName:t})},t.prototype.uploadFiles=function(){var e=[i.i(f.r)(this)];this.itemData=e,i.i(f._15)(this)},t.prototype.setRtl=function(e){e?this.addCssClass(null,u._52):this.addCssClass(u._52,null),this.uploadObj&&(this.uploadDialogObj.enableRtl=e,this.uploadObj.enableRtl=e)};var I;return _([i.i(n.Complex)({},o.a)],t.prototype,"ajaxSettings",void 0),_([i.i(n.Property)(!1)],t.prototype,"allowDragAndDrop",void 0),_([i.i(n.Property)(!0)],t.prototype,"allowMultiSelection",void 0),_([i.i(n.Property)(!0)],t.prototype,"showItemCheckBoxes",void 0),_([i.i(n.Complex)({},g.a)],t.prototype,"contextMenuSettings",void 0),_([i.i(n.Property)("")],t.prototype,"cssClass",void 0),_([i.i(n.Complex)({},o.g)],t.prototype,"detailsViewSettings",void 0),_([i.i(n.Property)(!0)],t.prototype,"enableHtmlSanitizer",void 0),_([i.i(n.Property)(!1)],t.prototype,"enablePersistence",void 0),_([i.i(n.Property)(!1)],t.prototype,"enableVirtualization",void 0),_([i.i(n.Property)("400px")],t.prototype,"height",void 0),_([i.i(n.Property)("LargeIcons")],t.prototype,"view",void 0),_([i.i(n.Complex)({},o.l)],t.prototype,"navigationPaneSettings",void 0),_([i.i(n.Property)("/")],t.prototype,"path",void 0),_([i.i(n.Property)(null)],t.prototype,"popupTarget",void 0),_([i.i(n.Complex)({},o.e)],t.prototype,"searchSettings",void 0),_([i.i(n.Property)()],t.prototype,"selectedItems",void 0),_([i.i(n.Property)(!0)],t.prototype,"showFileExtension",void 0),_([i.i(n.Property)(null)],t.prototype,"rootAliasName",void 0),_([i.i(n.Property)(!1)],t.prototype,"showHiddenItems",void 0),_([i.i(n.Property)(!0)],t.prototype,"showThumbnail",void 0),_([i.i(n.Property)("Ascending")],t.prototype,"sortOrder",void 0),_([i.i(n.Property)("name")],t.prototype,"sortBy",void 0),_([i.i(n.Property)(null)],t.prototype,"sortComparer",void 0),_([i.i(n.Complex)({},o.c)],t.prototype,"toolbarSettings",void 0),_([i.i(n.Collection)([],o.d)],t.prototype,"toolbarItems",void 0),_([i.i(n.Complex)({},h.a)],t.prototype,"uploadSettings",void 0),_([i.i(n.Property)("100%")],t.prototype,"width",void 0),_([i.i(n.Event)()],t.prototype,"fileLoad",void 0),_([i.i(n.Event)()],t.prototype,"fileOpen",void 0),_([i.i(n.Event)()],t.prototype,"beforeDownload",void 0),_([i.i(n.Event)()],t.prototype,"beforeImageLoad",void 0),_([i.i(n.Event)()],t.prototype,"beforePopupClose",void 0),_([i.i(n.Event)()],t.prototype,"beforePopupOpen",void 0),_([i.i(n.Event)()],t.prototype,"beforeSend",void 0),_([i.i(n.Event)()],t.prototype,"created",void 0),_([i.i(n.Event)()],t.prototype,"destroyed",void 0),_([i.i(n.Event)()],t.prototype,"fileDragStart",void 0),_([i.i(n.Event)()],t.prototype,"fileDragging",void 0),_([i.i(n.Event)()],t.prototype,"fileDragStop",void 0),_([i.i(n.Event)()],t.prototype,"fileDropped",void 0),_([i.i(n.Event)()],t.prototype,"fileSelection",void 0),_([i.i(n.Event)()],t.prototype,"fileSelect",void 0),_([i.i(n.Event)()],t.prototype,"menuClick",void 0),_([i.i(n.Event)()],t.prototype,"menuOpen",void 0),_([i.i(n.Event)()],t.prototype,"failure",void 0),_([i.i(n.Event)()],t.prototype,"popupClose",void 0),_([i.i(n.Event)()],t.prototype,"popupOpen",void 0),_([i.i(n.Event)()],t.prototype,"success",void 0),_([i.i(n.Event)()],t.prototype,"toolbarClick",void 0),_([i.i(n.Event)()],t.prototype,"toolbarCreate",void 0),_([i.i(n.Event)()],t.prototype,"uploadListCreate",void 0),t=I=_([n.NotifyPropertyChanges],t)}(n.Component)},function(e,t,i){"use strict";var n=i(3);i.d(t,"a",function(){return n.O}),i.d(t,"b",function(){return n.p}),i.d(t,"c",function(){return n._26}),i.d(t,"d",function(){return n.R}),i.d(t,"e",function(){return n.S}),i.d(t,"f",function(){return n.T}),i.d(t,"g",function(){return n.E}),i.d(t,"h",function(){return n._27}),i.d(t,"i",function(){return n.I}),i.d(t,"j",function(){return n.F}),i.d(t,"k",function(){return n._28}),i.d(t,"l",function(){return n._29}),i.d(t,"m",function(){return n.J}),i.d(t,"n",function(){return n._30}),i.d(t,"o",function(){return n._31}),i.d(t,"p",function(){return n._32}),i.d(t,"q",function(){return n.y}),i.d(t,"r",function(){return n.q}),i.d(t,"s",function(){return n.B}),i.d(t,"t",function(){return n._33}),i.d(t,"u",function(){return n._21}),i.d(t,"v",function(){return n.h}),i.d(t,"w",function(){return n.i}),i.d(t,"x",function(){return n._34}),i.d(t,"y",function(){return n.D}),i.d(t,"z",function(){return n._35}),i.d(t,"A",function(){return n.C}),i.d(t,"B",function(){return n._13}),i.d(t,"C",function(){return n._23}),i.d(t,"D",function(){return n._36}),i.d(t,"E",function(){return n._37}),i.d(t,"F",function(){return n._38}),i.d(t,"G",function(){return n.k}),i.d(t,"H",function(){return n._24}),i.d(t,"I",function(){return n.a}),i.d(t,"J",function(){return n.b}),i.d(t,"K",function(){return n._11}),i.d(t,"L",function(){return n._6}),i.d(t,"M",function(){return n._5}),i.d(t,"N",function(){return n.d}),i.d(t,"O",function(){return n._12}),i.d(t,"P",function(){return n.e}),i.d(t,"Q",function(){return n._16}),i.d(t,"R",function(){return n._19}),i.d(t,"S",function(){return n._14}),i.d(t,"T",function(){return n._15}),i.d(t,"U",function(){return n._17}),i.d(t,"V",function(){return n.f}),i.d(t,"W",function(){return n._39}),i.d(t,"X",function(){return n.s}),i.d(t,"Y",function(){return n.u}),i.d(t,"Z",function(){return n.v}),i.d(t,"_0",function(){return n.x}),i.d(t,"_1",function(){return n.z}),i.d(t,"_2",function(){return n.A}),i.d(t,"_3",function(){return n.l}),i.d(t,"_4",function(){return n.m}),i.d(t,"_5",function(){return n.n}),i.d(t,"_6",function(){return n.o}),i.d(t,"_7",function(){return n.g}),i.d(t,"_8",function(){return n.t}),i.d(t,"_9",function(){return n._40}),i.d(t,"_10",function(){return n._41}),i.d(t,"_11",function(){return n._42}),i.d(t,"_12",function(){return n._43}),i.d(t,"_13",function(){return n.r}),i.d(t,"_14",function(){return n._44}),i.d(t,"_15",function(){return n.c}),i.d(t,"_16",function(){return n.P}),i.d(t,"_17",function(){return n.L}),i.d(t,"_18",function(){return n.Q}),i.d(t,"_19",function(){return n.w}),i.d(t,"_20",function(){return n.j}),i.d(t,"_21",function(){return n.U}),i.d(t,"_22",function(){return n.V}),i.d(t,"_23",function(){return n.W}),i.d(t,"_24",function(){return n.X}),i.d(t,"_25",function(){return n.Y}),i.d(t,"_26",function(){return n.Z}),i.d(t,"_27",function(){return n._0}),i.d(t,"_28",function(){return n._1}),i.d(t,"_29",function(){return n._2}),i.d(t,"_30",function(){return n._3}),i.d(t,"_31",function(){return n._4}),i.d(t,"_32",function(){return n._7}),i.d(t,"_33",function(){return n._8}),i.d(t,"_34",function(){return n._9}),i.d(t,"_35",function(){return n._45}),i.d(t,"_36",function(){return n.M}),i.d(t,"_37",function(){return n.K}),i.d(t,"_38",function(){return n._22}),i.d(t,"_39",function(){return n._25}),i.d(t,"_40",function(){return n._46}),i.d(t,"_41",function(){return n._47}),i.d(t,"_42",function(){return n._48}),i.d(t,"_43",function(){return n._20}),i.d(t,"_44",function(){return n._49}),i.d(t,"_45",function(){return n.H}),i.d(t,"_46",function(){return n._50}),i.d(t,"_47",function(){return n._51}),i.d(t,"_48",function(){return n._52}),i.d(t,"_49",function(){return n._10}),i.d(t,"_50",function(){return n._53}),i.d(t,"_51",function(){return n.N}),i.d(t,"_52",function(){return n._54}),i.d(t,"_53",function(){return n._55}),i.d(t,"_54",function(){return n._18}),i.d(t,"_55",function(){return n._56}),i.d(t,"_56",function(){return n.G});var r=i(4);i.d(t,"_57",function(){return r.j}),i.d(t,"_58",function(){return r.V}),i.d(t,"_59",function(){return r.n}),i.d(t,"_60",function(){return r.m}),i.d(t,"_61",function(){return r.I}),i.d(t,"_62",function(){return r._3}),i.d(t,"_63",function(){return r._6}),i.d(t,"_64",function(){return r.t}),i.d(t,"_65",function(){return r.D}),i.d(t,"_66",function(){return r.M}),i.d(t,"_67",function(){return r.h}),i.d(t,"_68",function(){return r._0}),i.d(t,"_69",function(){return r.Z}),i.d(t,"_70",function(){return r.K}),i.d(t,"_71",function(){return r.U}),i.d(t,"_72",function(){return r.E}),i.d(t,"_73",function(){return r._7}),i.d(t,"_74",function(){return r.C}),i.d(t,"_75",function(){return r.F}),i.d(t,"_76",function(){return r._8}),i.d(t,"_77",function(){return r._1}),i.d(t,"_78",function(){return r.B}),i.d(t,"_79",function(){return r.f}),i.d(t,"_80",function(){return r.S}),i.d(t,"_81",function(){return r.i}),i.d(t,"_82",function(){return r.H}),i.d(t,"_83",function(){return r.R}),i.d(t,"_84",function(){return r.Y}),i.d(t,"_85",function(){return r.o}),i.d(t,"_86",function(){return r.e}),i.d(t,"_87",function(){return r.l}),i.d(t,"_88",function(){return r._4}),i.d(t,"_89",function(){return r.T}),i.d(t,"_90",function(){return r.N}),i.d(t,"_91",function(){return r.Q}),i.d(t,"_92",function(){return r.J}),i.d(t,"_93",function(){return r.L}),i.d(t,"_94",function(){return r.c}),i.d(t,"_95",function(){return r.a}),i.d(t,"_96",function(){return r.O}),i.d(t,"_97",function(){return r.b}),i.d(t,"_98",function(){return r.p}),i.d(t,"_99",function(){return r.s}),i.d(t,"_100",function(){return r.q}),i.d(t,"_101",function(){return r.W}),i.d(t,"_102",function(){return r._5}),i.d(t,"_103",function(){return r._9}),i.d(t,"_104",function(){return r.k}),i.d(t,"_105",function(){return r.d}),i.d(t,"_106",function(){return r.G}),i.d(t,"_107",function(){return r._10}),i.d(t,"_108",function(){return r.P}),i.d(t,"_109",function(){return r.v}),i.d(t,"_110",function(){return r.r}),i.d(t,"_111",function(){return r.u}),i.d(t,"_112",function(){return r._11}),i.d(t,"_113",function(){return r.w}),i.d(t,"_114",function(){return r._2}),i.d(t,"_115",function(){return r.X}),i.d(t,"_116",function(){return r.g}),i.d(t,"_117",function(){return r.x}),i.d(t,"_118",function(){return r.z}),i.d(t,"_119",function(){return r._12}),i.d(t,"_120",function(){return r.A}),i.d(t,"_121",function(){return r.y});var s=i(24);i.d(t,"_122",function(){return s.a})},function(e,t,i){"use strict";i.d(t,"a",function(){return p});var n=i(38),r=(i.n(n),i(0)),s=(i.n(r),i(8)),a=(i.n(s),i(9)),o=(i.n(a),i(4)),l=i(3),d=i(6),h=i(1),c=i(5),u=i(2),p=function(){function e(e){this.isInteracted=!0,this.interaction=!0,this.isPasteOperation=!1,this.isColumnRefresh=!1,this.dragObj=null,this.startIndex=null,this.firstItemIndex=null,this.isSelectionUpdate=!1,this.currentSelectedItem=[],this.count=0,this.isRendered=!0,this.isLoaded=!1,this.isNameWidth=!1,this.pasteOperation=!1,this.uploadOperation=!1,n.Grid.Inject(n.Resize,n.ContextMenu,n.Sort,n.VirtualScroll),this.parent=e,this.element=i.i(r.select)("#"+this.parent.element.id+l.S,this.parent.element),this.addEventListener(),this.keyConfigs={altEnter:"alt+enter",esc:"escape",tab:"tab",moveDown:"downarrow",ctrlEnd:"ctrl+end",ctrlHome:"ctrl+home",ctrlDown:"ctrl+downarrow",ctrlLeft:"ctrl+leftarrow",ctrlRight:"ctrl+rightarrow",shiftEnd:"shift+end",shiftHome:"shift+home",shiftDown:"shift+downarrow",shiftUp:"shift+uparrow",ctrlUp:"ctrl+uparrow",csEnd:"ctrl+shift+end",csHome:"ctrl+shift+home",csDown:"ctrl+shift+downarrow",csUp:"ctrl+shift+uparrow",space:"space",ctrlSpace:"ctrl+space",shiftSpace:"shift+space",csSpace:"ctrl+shift+space",end:"end",home:"home",moveUp:"uparrow",del:"delete",ctrlX:this.parent.isMac?"cmd+x":"ctrl+x",ctrlC:this.parent.isMac?"cmd+c":"ctrl+c",ctrlV:this.parent.isMac?"cmd+v":"ctrl+v",ctrlShiftN:"ctrl+shift+n",shiftdel:"shift+delete",ctrlD:"ctrl+d",f2:"f2",ctrlA:"ctrl+a",enter:"enter"}}return e.prototype.render=function(e){if(i.i(a.showSpinner)(this.parent.element),"Details"===this.parent.view){i.i(r.removeClass)([this.parent.element],l._13);var t=i.i(h.y)(this.parent,e.files);this.checkNameWidth();var s=this.getColumns(),o=void 0;this.parent.isMobile?o=[]:"None"!==this.parent.sortOrder&&(o=[{direction:this.parent.sortOrder,field:this.parent.sortBy}]),this.gridObj=new n.Grid({dataSource:t,allowSorting:!0,rowSelecting:this.onSelection.bind(this,"select"),rowDeselecting:this.onSelection.bind(this,"unselect"),rowSelected:this.onSelected.bind(this),rowDeselected:this.onDeSelection.bind(this),allowResizing:this.parent.detailsViewSettings.columnResizing,selectionSettings:{type:this.parent.allowMultiSelection?"Multiple":"Single",checkboxMode:"ResetOnRowClick"},enableRtl:this.parent.enableRtl,pageSettings:{pageSize:20},enableVirtualization:this.parent.enableVirtualization,enablePersistence:this.parent.enablePersistence,enableVirtualMaskRow:!0,sortSettings:{allowUnsort:!1,columns:o},columns:s,recordDoubleClick:this.DblClickEvents.bind(this),beforeDataBound:this.onBeforeDataBound.bind(this),dataBound:this.onDataBound.bind(this),rowDataBound:this.onRowDataBound.bind(this),actionBegin:this.onActionBegin.bind(this),headerCellInfo:this.onHeaderCellInfo.bind(this),width:"100%",height:this.parent.enableVirtualization?this.getGridHeight():"auto",beforeCopy:function(e){e.cancel=!0},load:function(e){this.focusModule.destroy()},locale:this.parent.locale}),this.parent.isReact&&(this.gridObj.isReact=!0,this.gridObj.portals=[],this.gridObj.on("reactTemplateRender",this.reactTemplateRender,this)),this.gridObj.isStringTemplate=!0,this.gridObj.appendTo("#"+this.parent.element.id+l.S),this.wireEvents(),this.adjustHeight(),this.emptyArgs=e}},e.prototype.reactTemplateRender=function(e){this.parent.portals=e,this.parent.portals&&this.parent.toolbarModule&&this.parent.toolbarModule.toolbarObj&&this.parent.toolbarModule.toolbarObj.portals&&(this.parent.portals=this.parent.portals.concat(this.parent.toolbarModule.toolbarObj.portals)),this.parent.notify("renderReactTemplate",this.parent.portals),this.parent.renderReactTemplates()},e.prototype.getGridHeight=function(){var e=i.i(r.select)("#"+this.parent.element.id+l.y,this.parent.element),t=i.i(r.select)("#"+this.parent.element.id+l.q,this.parent.element);return e.offsetHeight-t.offsetHeight-36},e.prototype.checkNameWidth=function(){var e=this.parent.detailsViewSettings.columns;this.isNameWidth=!1;for(var t=0;t<e.length;t++)if("name"===e[t].field)return void(this.isNameWidth=!i.i(r.isNullOrUndefined)(e[t].width))},e.prototype.adjustWidth=function(e,t){if(!this.isNameWidth||"name"!==t)for(var i=0;i<e.length;i++)if(e[i].field===t){var n=void 0;n=""!==this.parent.breadcrumbbarModule.searchObj.element.value||this.parent.isFiltered?this.element.clientWidth<=680?"name"===t?"120px":"180px":"auto":this.element.clientWidth<=500?"120px":"auto",e[i].width=n}},e.prototype.getColumns=function(){var e,t=this.parent.enableHtmlSanitizer;if(this.parent.isMobile)e=[{field:"name",headerText:i.i(h.E)(this.parent,"Name"),width:"auto",minWidth:120,headerTextAlign:"Left",template:i.i(r.initializeCSPTemplate)(function(e){return'<div class="e-fe-text">'+(t?r.SanitizeHtmlHelper.sanitize(e.name):e.name)+'</div><div class="e-fe-date">'+e._fm_modified+'</div><span class="e-fe-size">'+e.size+"</span>"})}];else{e=i.i(r.extend)([],this.parent.detailsViewSettings.columns,null,!0),this.adjustWidth(e,"name");for(var n=this,s=0,a=e.length;s<a;s++)!function(s,a){if(e[s].headerText=i.i(h.E)(n.parent,e[s].headerText),"name"===e[s].field&&!i.i(r.isNullOrUndefined)(e[s].template)&&"function"!=typeof e[s].template){var o=e[s].template;e[s].template=i.i(r.initializeCSPTemplate)(function(e){var i=t?r.SanitizeHtmlHelper.sanitize(e.name):e.name;return o.replace(/\${name}/g,i)})}}(s)}var o=this.parent.isMobile||this.parent.isBigger?"54":"46",l={field:"type",width:o,minWidth:o,template:i.i(r.initializeCSPTemplate)(function(e){return'<span class="e-fe-icon '+e._fm_iconClass+'"></span>'}),allowResizing:!1,allowSorting:!0,customAttributes:{class:"e-fe-grid-icon"},headerTemplate:i.i(r.initializeCSPTemplate)(function(){return'<span class="e-fe-icon e-fe-folder"></span>'})};if(e.unshift(l),this.parent.showItemCheckBoxes){var d=this.parent.isBigger?"36":"26",c={type:"checkbox",width:d,minWidth:d,customAttributes:{class:"e-fe-checkbox"},allowResizing:!1,allowSorting:!1};this.parent.isMobile?e.push(c):e.unshift(c)}for(var s=0,a=e.length;s<a;s++)e[s].disableHtmlEncode=!this.parent.enableHtmlSanitizer;return e},e.prototype.adjustHeight=function(){if(this.gridObj){var e=i.i(r.select)("#"+this.parent.element.id+l.y,this.parent.element),t=i.i(r.select)("#"+this.parent.element.id+l.q,this.parent.element),n=i.i(r.select)("."+l.r,this.parent.element),s=e.offsetHeight-t.offsetHeight-n.offsetHeight;this.gridObj.height=s,this.gridObj.dataBind()}},e.prototype.renderCheckBox=function(){this.gridObj.columns=this.getColumns(),this.isColumnRefresh=!0,this.gridObj.refreshColumns()},e.prototype.onRowDataBound=function(e){var t=i.i(r.select)(".e-fe-grid-name",e.row);if(!t)for(var n=this.parent.detailsViewSettings.columns,s=0;s<n.length;s++)if("name"===n[s].field){t=e.row.children[this.parent.allowMultiSelection?s+2:s+1];break}if(t&&t.setAttribute("title",i.i(r.getValue)("name",e.data)),this.parent.isLayoutChange&&this.parent.isCut&&"move"===this.parent.fileAction&&this.parent.selectedNodes&&0!==this.parent.selectedNodes.length&&-1!==this.parent.selectedNodes.indexOf(i.i(r.getValue)("name",e.data))&&i.i(u.s)(e.row),!this.parent.showFileExtension&&i.i(r.getValue)("isFile",e.data)){var a=e.row.querySelector(".e-fe-text");if(a){var o=i.i(r.getValue)("name",e.data),d=i.i(r.getValue)("type",e.data);a.innerHTML=o.substr(0,o.length-d.length)}}if(void 0!==i.i(r.getValue)("size",e.data)&&e.row.querySelector(".e-fe-size")){var c=e.row.querySelector(".e-fe-size"),p=void 0;if(i.i(r.getValue)("isFile",e.data)){for(var f=i.i(r.getValue)("size",e.data),g=new r.Internationalization(this.parent.locale),m=void 0,n=this.parent.detailsViewSettings.columns,s=0;s<n.length;s++)if("size"===n[s].field){m=i.i(r.isNullOrUndefined)(n[s].format)?"n":n[s].format.toString();break}p=g.formatNumber(f/1024,{format:m})+" "+i.i(h.E)(this.parent,"KB")}else p="";c.innerHTML=p}if(this.parent.isMobile&&void 0!==i.i(r.getValue)("_fm_modified",e.data)&&e.row.querySelector(".e-fe-date")){for(var b=e.row.querySelector(".e-fe-date"),g=new r.Internationalization(this.parent.locale),n=this.parent.detailsViewSettings.columns,v=void 0,s=0;s<n.length;s++)if("dateModified"===n[s].field){v=n[s].format;break}var y=g.formatDate(new Date(i.i(r.getValue)("_fm_modified",e.data)),v);b.innerHTML=y}var _=e.row.querySelector("."+l._17);_&&_.classList.add("e-small"),i.i(u._19)(e.data)||(e.row.className+=" "+i.i(u._17)(e.data));var I={element:e.row,fileDetails:e.data,module:"DetailsView"};this.parent.trigger("fileLoad",I)},e.prototype.onActionBegin=function(e){if("sorting"===e.requestType){if(this.parent.setProperties({sortOrder:e.direction},!0),this.parent.setProperties({sortBy:e.columnName},!0),0!==this.parent.selectedItems.length){this.sortItem=!0;var t=this.gridObj.getSelectedRowIndexes(),n=t.length;for(this.sortSelectedNodes=[];n>0;){var s=this.gridObj.getRowsObject()[t[n-1]].data;this.sortSelectedNodes.push(i.i(r.getValue)(this.parent.hasId?"id":"name",s)),n--}}this.parent.notify(o.l,{})}},e.prototype.onHeaderCellInfo=function(e){var t=e.node.querySelector("."+l._17);t&&t.classList.add("e-small")},e.prototype.onBeforeDataBound=function(e){var t=this;i.i(a.showSpinner)(this.parent.element);var n=this.parent.detailsViewSettings.columns.find(function(e){return e.field===t.parent.sortBy});if(n&&!("sortComparer"in n)){var r=i.i(h.y)(this.parent,this.parent.enableVirtualization?e.result:this.gridObj.dataSource);e.result=r}},e.prototype.onDataBound=function(){if(this.createDragObj(),(0!==this.parent.selectedItems.length&&!this.parent.enableVirtualization||0!==this.parent.selectedItems.length&&this.parent.enableVirtualization&&0==this.element.querySelector(".e-content").scrollTop)&&this.selectRecords(this.parent.selectedItems),!0===this.isPasteOperation&&(this.isColumnRefresh?this.isColumnRefresh=!1:(this.selectRecords(this.parent.pasteNodes),this.isPasteOperation=!1)),this.parent.createdItem&&(this.selectRecords([i.i(r.getValue)(this.parent.hasId?"id":"name",this.parent.createdItem)]),this.parent.createdItem=null),this.parent.layoutSelectedItems.length&&this.selectRecords(this.parent.layoutSelectedItems),this.parent.renamedItem&&(this.addSelection(this.parent.renamedItem),this.parent.renamedItem=null),!0===this.sortItem&&(this.selectRecords(this.sortSelectedNodes),this.sortItem=!1),this.isSelectionUpdate&&(this.isColumnRefresh?this.isColumnRefresh=!1:(this.selectRecords(this.currentSelectedItem),this.isSelectionUpdate=!1)),!0===this.uploadOperation&&(this.count++,this.selectRecords(this.parent.uploadItem),this.count===this.parent.uploadItem.length&&(this.uploadOperation=!1,this.parent.uploadItem=[])),this.gridObj.currentViewData.length*this.gridObj.getRowHeight()<this.gridObj.height){var e=this.gridObj.getHeaderContent();e.style.paddingRight="",e.style.paddingLeft="";i.i(r.select)(".e-headercontent",e).style.borderRightWidth="0";var t=this.gridObj.getContent().querySelector(".e-content");t.style.overflowY="",t.classList.add("e-scrollShow")}else{var e=this.gridObj.getHeaderContent();this.parent.enableRtl?e.style.paddingLeft="16px":e.style.paddingRight="16px";var t=this.gridObj.getContent().querySelector(".e-content");t.classList.remove("e-scrollShow")}this.isRendered=!0,this.parent.isLayoutChange=!1,i.i(a.hideSpinner)(this.parent.element),this.checkEmptyDiv(this.emptyArgs),this.isInteracted=!!this.isLoaded||this.isInteracted,this.isLoaded=!1},e.prototype.selectRecords=function(e){for(var t=this.gridObj.getCurrentViewRecords(),n=[],s=0,a=t.length;s<a;s++){var o=this.parent.hasId?i.i(r.getValue)("id",t[s]):i.i(u.G)(this.parent,t[s]);if(-1!==e.indexOf(o))n.push(s);else if(!this.parent.showFileExtension&&o.includes(".")){var l=o.split(".").slice(0,-1).join(".");-1!==e.indexOf(l)&&n.push(s)}}0!==n.length&&(this.gridObj.selectRows(n),this.addFocus(this.gridObj.selectedRowIndex))},e.prototype.addSelection=function(e){var t=this.gridObj.getCurrentViewRecords(),n=[];if(this.parent.hasId)n=new s.DataManager(t).executeLocal((new s.Query).where("id","equal",this.parent.renamedId,!1));else{var a=new s.DataManager(t).executeLocal((new s.Query).where("name","equal",i.i(r.getValue)("name",e),!1));a.length>0&&(n=new s.DataManager(a).executeLocal((new s.Query).where("filterPath","equal",this.parent.filterPath,!1)))}if(n.length>0){var o=t.indexOf(n[0]);this.gridObj.selectRows([o])}},e.prototype.onSortColumn=function(){"None"!==this.parent.sortOrder?this.gridObj.sortModule.sortColumn(this.parent.sortBy,this.parent.sortOrder):this.gridObj.dataSource=i.i(h.y)(this.parent,this.gridObj.dataSource),0!==this.element.querySelector(".e-content").scrollTop&&this.gridObj.freezeRefresh()},e.prototype.onPropertyChanged=function(e){if(e.module===this.getModuleName()||"common"===e.module)for(var t=0,n=Object.keys(e.newProp);t<n.length;t++){var s=n[t];switch(s){case"allowDragAndDrop":this.createDragObj();break;case"height":this.adjustHeight();break;case"detailsViewSettings":if(!i.i(r.isNullOrUndefined)(this.gridObj)){this.checkNameWidth();var a=this.getColumns();this.gridObj.columns=a,this.gridObj.allowResizing=this.parent.detailsViewSettings.columnResizing,this.gridObj.dataBind(),this.gridObj.refreshColumns()}break;case"selectedItems":if(this.interaction=!1,0!==this.parent.selectedItems.length){if(!this.parent.allowMultiSelection){var l=this.parent.selectedItems.slice(this.parent.selectedItems.length-1);this.parent.setProperties({selectedItems:l},!0)}this.selectRecords(this.parent.selectedItems),this.parent.setProperties({selectedItems:this.parent.selectedItems},!0)}else i.i(r.isNullOrUndefined)(this.gridObj)||(this.gridObj.clearSelection(),this.interaction=!0);break;case"showFileExtension":case"showHiddenItems":i.i(c.a)(this.parent,o.K,this.parent.path);break;case"allowMultiSelection":i.i(r.isNullOrUndefined)(this.gridObj)||(this.currentSelectedItem=this.parent.selectedItems,this.gridObj.selectionSettings.type=e.newProp.allowMultiSelection?"Multiple":"Single",this.isSelectionUpdate=!0,this.renderCheckBox());break;case"view":i.i(h.n)(this.parent,"Details");break;case"width":this.onDetailsResize()}}},e.prototype.onPathChanged=function(e){this.parent.isCut=!1,""===this.parent.breadcrumbbarModule.searchObj.element.value.trim()&&this.gridObj&&(this.parent.searchedItems=[],this.parent.isFiltered?this.updatePathColumn():this.removePathColumn(!1)),i.i(h.k)(this.parent),"Details"===this.parent.view&&(this.isInteracted=!1,i.i(a.showSpinner)(this.parent.element),this.parent.setProperties({selectedItems:[]},!0),this.gridObj.dataSource=i.i(h.y)(this.parent,e.files),this.gridObj.freezeRefresh(),this.parent.isReact&&this.gridObj.on("reactTemplateRender",this.reactTemplateRender,this)),this.emptyArgs=e},e.prototype.updatePathColumn=function(){var e=this.gridObj.columns.length,t=JSON.parse(JSON.stringify(this.gridObj.columns));if(t[e-1].field&&"filterPath"!==t[e-1].field&&!this.parent.isMobile){var n={field:"filterPath",headerText:i.i(h.E)(this.parent,"Path"),minWidth:180,width:"auto"};this.gridObj.columns.push(n),this.adjustWidth(this.gridObj.columns,"filterPath"),this.adjustWidth(this.gridObj.columns,"name"),this.isColumnRefresh=!0,this.gridObj.refreshColumns()}},e.prototype.checkEmptyDiv=function(e){var t=i.i(h.y)(this.parent,e.files);if(0!==t.length||i.i(r.isNullOrUndefined)(this.element.querySelector("."+l.w))){if(0!==t.length&&this.element.querySelector("."+l.s))if(this.element.querySelector("."+l.w).querySelector("."+l.s)){var n=this.element.querySelector("."+l.w).querySelector("."+l.s);this.element.querySelector("."+l.w).removeChild(n)}else this.element.removeChild(this.element.querySelector("."+l.s))}else i.i(h.A)(this.parent,this.element,e)},e.prototype.onOpenInit=function(){if("detailsview"===this.parent.activeModule){var e=this.gridObj.getSelectedRecords()[0];this.openContent(e)}},e.prototype.DblClickEvents=function(e){this.gridObj.selectRows([e.rowIndex]);var t;e.rowData&&(t=JSON.parse(JSON.stringify(e.rowData)),this.openContent(t))},e.prototype.openContent=function(e){var t=this;if(!i.i(u._18)(e))return void i.i(u._16)(this.parent,e,o.g);var n={cancel:!1,fileDetails:e,module:"DetailsView"};this.parent.trigger("fileOpen",n,function(n){if(!n.cancel){var s=i.i(r.getValue)("name",e);if(i.i(r.getValue)("isFile",e)){if(i.i(h.u)(e)===l.m){var a=i.i(h.v)(t.parent,e);i.i(d.c)(t.parent,s,a)}}else{if(""!==t.parent.breadcrumbbarModule.searchObj.element.value||t.parent.isFiltered)i.i(u.S)(t.parent,e);else{var o=i.i(r.getValue)("id",e);t.parent.oldPath=t.parent.path;var c=t.parent.path+(i.i(r.isNullOrUndefined)(o)?s:o)+"/";t.parent.setProperties({path:c},!0),t.parent.pathNames.push(s),t.parent.pathId.push(i.i(r.getValue)("_fm_id",e)),t.parent.itemData=[e],i.i(h.q)(t.parent)}t.parent.isFiltered=!1}t.element.focus(),t.parent.enableVirtualization&&t.parent.element.querySelector("#"+t.parent.element.id+l.I).focus()}})},e.prototype.onLayoutChange=function(e){"Details"===this.parent.view&&(this.parent.enableVirtualization&&this.parent.setProperties({selectedItems:[]},!0),this.gridObj?this.isLoaded=!0:this.render(e),this.parent.isFiltered&&(this.updatePathColumn(),this.parent.setProperties({selectedItems:[]},!0)),this.gridObj.dataSource=i.i(h.y)(this.parent,e.files),this.parent.notify(o.W,{}),this.gridObj.element.classList.remove(l._10),this.isInteracted=!1,this.gridObj.clearSelection(),""!==this.parent.breadcrumbbarModule.searchObj.element.value.trim()&&this.onSearchFiles(e),this.adjustHeight(),this.gridObj.sortSettings.columns.length>0&&this.gridObj.sortSettings.columns[0].field!==this.parent.sortBy&&"None"!==this.parent.sortOrder&&this.gridObj.sortColumn(this.parent.sortBy,this.parent.sortOrder))},e.prototype.onSearchFiles=function(e){"Details"===this.parent.view&&(this.parent.setProperties({selectedItems:[]},!0),this.parent.notify(o.H,{}),this.parent.isLayoutChange||(this.parent.layoutSelectedItems=[]),this.updatePathColumn(),this.parent.searchedItems=e.files,this.onPathChanged(e))},e.prototype.removePathColumn=function(e){var t=this.gridObj.columns.length,n=JSON.parse(JSON.stringify(this.gridObj.columns));n[t-1].field&&"filterPath"===n[t-1].field&&(i.i(r.isNullOrUndefined)(this.gridObj.sortSettings.columns[0])||"filterPath"!==this.gridObj.sortSettings.columns[0].field||("None"!==this.parent.sortOrder?this.gridObj.sortColumn("name",this.parent.sortOrder):this.gridObj.dataSource=i.i(h.y)(this.parent,this.gridObj.dataSource),this.parent.notify(o.l,{})),this.gridObj.columns.pop(),e||(this.isColumnRefresh=!0,this.gridObj.refreshColumns()))},e.prototype.onFinalizeEnd=function(e){"Details"===this.parent.view&&(this.gridObj?this.onPathChanged(e):this.render(e))},e.prototype.onCreateEnd=function(e){"Details"===this.parent.view&&this.onPathChanged(e)},e.prototype.onRenameInit=function(){"detailsview"===this.parent.activeModule&&1===this.parent.selectedItems.length&&this.updateRenameData()},e.prototype.onSelectedData=function(){"detailsview"===this.parent.activeModule&&(this.parent.itemData=this.gridObj.getSelectedRecords())},e.prototype.onDeleteInit=function(){"detailsview"===this.parent.activeModule&&i.i(c.f)(this.parent,this.parent.selectedItems,this.parent.path,"delete")},e.prototype.onDeleteEnd=function(e){"Details"===this.parent.view&&(this.onPathChanged(e),this.parent.setProperties({selectedItems:[]},!0))},e.prototype.onRefreshEnd=function(e){"Details"===this.parent.view&&(this.isInteracted=!1,this.removePathColumn(!1),this.gridObj.dataSource=i.i(h.y)(this.parent,e.files),this.emptyArgs=e)},e.prototype.onHideLayout=function(){"Details"!==this.parent.view&&this.gridObj&&this.gridObj.element.classList.add(l._10)},e.prototype.onSelectAllInit=function(){"Details"===this.parent.view&&(this.isInteracted=!1,this.parent.allowMultiSelection?this.gridObj.selectionModule.selectRowsByRange(0,this.gridObj.getRows().length):this.gridObj.selectRow(this.gridObj.getRows().length-1),this.isInteracted=!0,this.interaction=!0)},e.prototype.onClearAllInit=function(){"Details"===this.parent.view&&(this.removeSelection(),this.interaction=!0)},e.prototype.onSelectionChanged=function(){i.i(r.removeClass)([this.element],l._18),this.parent.selectedItems.length>0&&i.i(r.addClass)([this.element],l._18)},e.prototype.onLayoutRefresh=function(){"Details"===this.parent.view&&this.adjustHeight()},e.prototype.onBeforeRequest=function(){this.isRendered=!1},e.prototype.onAfterRequest=function(){this.isRendered=!0},e.prototype.onUpdateSelectionData=function(){"Details"===this.parent.view&&(this.parent.itemData=this.gridObj.getSelectedRecords())},e.prototype.addEventListener=function(){this.parent.on(o.m,this.onFinalizeEnd,this),this.parent.on(o.U,this.destroy,this),this.parent.on(o.e,this.onLayoutChange,this),this.parent.on(o.K,this.onPathChanged,this),this.parent.on(o.I,this.onCreateEnd,this),this.parent.on(o.v,this.onDropInit,this),this.parent.on(o.T,this.onDetailsInit,this),this.parent.on(o.h,this.onRefreshEnd,this),this.parent.on(o.f,this.onSearchFiles,this),this.parent.on(o.X,this.onMethodCall,this),this.parent.on(o.B,this.onActionFailure,this),this.parent.on(o.V,this.onPropertyChanged,this),this.parent.on(o.D,this.onDeleteInit,this),this.parent.on(o.M,this.onDeleteEnd,this),this.parent.on(o.O,this.onSelectedData,this),this.parent.on(o.Q,this.onRenameInit,this),this.parent.on(o.L,this.onPathChanged,this),this.parent.on(o.S,this.onOpenInit,this),this.parent.on(o.k,this.onSortColumn,this),this.parent.on(o.i,this.onPathChanged,this),this.parent.on(o._3,this.onPathChanged,this),this.parent.on(o.p,this.onPasteInit,this),this.parent.on(o.W,this.onHideLayout,this),this.parent.on(o.R,this.onSelectAllInit,this),this.parent.on(o.Y,this.onClearAllInit,this),this.parent.on(o.d,this.onPathColumn,this),this.parent.on(o.H,this.onSelectionChanged,this),this.parent.on(o.E,this.onBeforeRequest,this),this.parent.on(o.F,this.onAfterRequest,this),this.parent.on(o.s,this.onpasteEnd,this),this.parent.on(o.b,this.oncutCopyInit,this),this.parent.on(o.N,this.onMenuItemData,this),this.parent.on(o._0,this.onDetailsResizeHandler,this),this.parent.on(o.Z,this.onDetailsResize,this),this.parent.on(o._1,this.onLayoutRefresh,this),this.parent.on(o.u,this.onDropPath,this),this.parent.on(o._2,this.onUpdateSelectionData,this)},e.prototype.removeEventListener=function(){this.parent.off(o.m,this.onFinalizeEnd),this.parent.off(o.U,this.destroy),this.parent.off(o.e,this.onLayoutChange),this.parent.off(o.K,this.onPathChanged),this.parent.off(o.p,this.onPasteInit),this.parent.off(o.I,this.onCreateEnd),this.parent.off(o.h,this.onRefreshEnd),this.parent.off(o.f,this.onSearchFiles),this.parent.off(o.X,this.onMethodCall),this.parent.off(o.B,this.onActionFailure),this.parent.off(o.V,this.onPropertyChanged),this.parent.off(o.Q,this.onRenameInit),this.parent.off(o.L,this.onPathChanged),this.parent.off(o._3,this.onPathChanged),this.parent.off(o.S,this.onOpenInit),this.parent.off(o.k,this.onSortColumn),this.parent.off(o.i,this.onPathChanged),this.parent.off(o.W,this.onHideLayout),this.parent.off(o.R,this.onSelectAllInit),this.parent.off(o.Y,this.onClearAllInit),this.parent.off(o.D,this.onDeleteInit),this.parent.off(o.M,this.onDeleteEnd),this.parent.off(o.d,this.onPathColumn),this.parent.off(o.H,this.onSelectionChanged),this.parent.off(o.E,this.onBeforeRequest),this.parent.off(o.F,this.onAfterRequest),this.parent.off(o.s,this.onpasteEnd),this.parent.off(o.b,this.oncutCopyInit),this.parent.off(o.v,this.onDropInit),this.parent.off(o.O,this.onSelectedData),this.parent.off(o.T,this.onDetailsInit),this.parent.off(o.N,this.onMenuItemData),this.parent.off(o._0,this.onDetailsResizeHandler),this.parent.off(o.Z,this.onDetailsResize),this.parent.off(o._1,this.onLayoutRefresh),this.parent.off(o.u,this.onDropPath),this.parent.off(o._2,this.onUpdateSelectionData)},e.prototype.onActionFailure=function(){this.interaction=!0},e.prototype.onMenuItemData=function(e){this.parent.activeModule===this.getModuleName()&&(this.parent.itemData=[this.gridObj.getRowInfo(e.target).rowData])},e.prototype.onPasteInit=function(){this.parent.activeModule===this.getModuleName()&&(this.parent.itemData=""!==this.parent.folderPath?this.gridObj.getSelectedRecords():[i.i(u.A)(this.parent)])},e.prototype.onDetailsInit=function(){this.parent.activeModule===this.getModuleName()&&(0!==this.parent.selectedItems.length?this.parent.itemData=this.gridObj.getSelectedRecords():this.parent.itemData=[i.i(r.getValue)(this.parent.pathId[this.parent.pathId.length-1],this.parent.feParent)])},e.prototype.dragHelper=function(e){var t=e.sender.target,n=t.closest("tr.e-row");if(!n)return null;var r;n.getElementsByClassName("e-fe-text")[0]?r=this.parent.hasId?this.gridObj.getRowInfo(n).rowData.id:n.getElementsByClassName("e-fe-text")[0].innerText:n.getElementsByClassName("e-rowcell e-templatecell")[0].nextElementSibling&&(r=this.parent.hasId?this.gridObj.getRowInfo(n).rowData.id:n.getElementsByClassName("e-rowcell e-templatecell")[0].nextElementSibling.innerText),n&&!n.querySelector(".e-active")&&this.selectRecords([r]),i.i(u.u)(this.parent,n),this.parent.activeElements=[],this.parent.dragData=[],this.parent.dragData=this.gridObj.getSelectedRecords();var s;return 0===this.parent.dragData.length&&n&&(s=this.gridObj.getRowInfo(n)),s&&this.parent.dragData.push(s.rowData),this.parent.dragPath=this.parent.path,this.parent.activeElements=this.gridObj.getSelectedRows(),i.i(u._1)(this.parent),this.parent.virtualDragElement},e.prototype.onDetailsResize=function(){if("Details"===this.parent.view&&!this.parent.isMobile&&!i.i(r.isNullOrUndefined)(this.gridObj))for(var e=this.gridObj.getHeaderContent().querySelector(".e-headercontent"),t=e.firstChild.childNodes[0],n=this.gridObj.getContent().querySelector(".e-content .e-table").children[0],s=this.gridObj.getColumns(),a=0;a<s.length;a++)(!this.isNameWidth&&"name"===s[a].field||"filterPath"===s[a].field)&&(""!==this.parent.breadcrumbbarModule.searchObj.element.value||this.parent.isFiltered?this.element.clientWidth<=680?"name"===s[a].field?(t.children[a].setAttribute("style","width: 120px"),n.children[a].setAttribute("style","width: 120px")):(t.children[a].setAttribute("style","width: 180px"),n.children[a].setAttribute("style","width: 180px")):this.element.clientWidth>680&&(t.children[a].setAttribute("style","width: auto"),n.children[a].setAttribute("style","width: auto")):this.element.clientWidth<=500?(t.children[a].setAttribute("style","width: 120px"),n.children[a].setAttribute("style","width: 120px")):this.element.clientWidth>500&&(t.children[a].setAttribute("style","width: auto"),n.children[a].setAttribute("style","width: auto")))},e.prototype.onDetailsResizeHandler=function(){this.onDetailsResize(),"Details"!==this.parent.view||this.parent.isMobile||i.i(r.isNullOrUndefined)(this.gridObj)||this.adjustHeight()},e.prototype.createDragObj=function(){var e=this;this.gridObj&&(this.parent.allowDragAndDrop?(this.dragObj&&this.dragObj.destroy(),this.dragObj=new r.Draggable(this.gridObj.element,{cursorAt:this.parent.dragCursorPosition,distance:5,enableTailMode:!0,dragArea:this.parent.element,dragTarget:"."+l.f,drag:u._8.bind(this,this.parent),dragStart:function(t){i.i(u._3)(e.parent,t,e.dragObj)},dragStop:u._2.bind(this,this.parent),enableAutoScroll:!1,helper:this.dragHelper.bind(this)})):!this.parent.allowDragAndDrop&&this.dragObj&&this.dragObj.destroy())},e.prototype.onDropInit=function(e){if(this.parent.targetModule===this.getModuleName()){var t=i.i(r.getValue)(this.parent.pathId[this.parent.pathId.length-1],this.parent.feParent);if(e.target.closest("tr")){var n=null;n=this.gridObj.getRowInfo(e.target).rowData,this.parent.dropPath=n.isFile?this.parent.path:i.i(u.F)(this.parent,n,this.parent.path),this.parent.dropData=n.isFile?t:n}else this.parent.dropPath=this.parent.path,this.parent.dropData=t}},e.prototype.oncutCopyInit=function(){this.parent.activeModule===this.getModuleName()&&(this.parent.activeRecords=this.gridObj.getSelectedRecords(),this.parent.activeElements=this.gridObj.getSelectedRows())},e.prototype.onpasteEnd=function(e){"Details"===this.parent.view&&(this.isPasteOperation=!0,this.parent.path!==this.parent.destinationPath&&this.parent.path!==i.i(u.X)(this.parent,e)||this.onPathChanged(e))},e.prototype.onDropPath=function(e){"Details"===this.parent.view&&(this.isPasteOperation=!0,this.onPathChanged(e))},e.prototype.getModuleName=function(){return"detailsview"},e.prototype.destroy=function(){this.parent.isDestroyed||(this.removeEventListener(),this.gridObj&&(this.parent.isReact&&this.gridObj.off("reactTemplateRender",this.reactTemplateRender),this.unWireEvents(),this.gridObj.destroy()))},e.prototype.updateType=function(e){var t=i.i(r.select)("."+l.l,e);this.parent.isFile=!!i.i(r.isNullOrUndefined)(t)},e.prototype.onSelection=function(e,t){var i={action:e,fileDetails:t.data,isInteracted:this.interaction,cancel:!1,target:t.target};this.parent.trigger("fileSelection",i),t.cancel=i.cancel},e.prototype.onSelected=function(e){this.parent.activeModule="detailsview",this.parent.isLayoutChange&&!this.parent.isFiltered||this.selectedRecords(),this.parent.notify(o.H,{}),1===this.gridObj.getSelectedRowIndexes().length&&(this.firstItemIndex=this.gridObj.selectedRowIndex),this.gridObj.element.setAttribute("tabindex","-1"),this.triggerSelect("select",e);var t=this.gridObj.getRowByIndex(this.gridObj.selectedRowIndex);if(this.updateType(t),!i.i(r.isNullOrUndefined)(t)&&!i.i(r.isNullOrUndefined)(t.querySelector(".e-checkselect"))){if(1!==this.gridObj.getSelectedRowIndexes().length){var n=this.gridObj.getSelectedRowIndexes()[this.gridObj.getSelectedRowIndexes().length-2];this.gridObj.getRowByIndex(n).querySelector(".e-checkselect").setAttribute("tabindex","-1")}t.querySelector(".e-rowcell.e-fe-checkbox").removeAttribute("tabindex")}i.i(r.isNullOrUndefined)(this.gridObj)||i.i(r.isNullOrUndefined)(this.gridObj.element.querySelector(".e-checkselectall"))||this.gridObj.element.querySelector(".e-checkselectall").setAttribute("tabindex","-1");var s=this.gridObj.getSelectedRowIndexes();if(!this.parent.allowMultiSelection)for(var a=0;a<s.length;a++)s[a]===this.gridObj.selectedRowIndex?this.gridObj.getRowByIndex(s[a]).setAttribute("tabindex","0"):this.gridObj.getRowByIndex(s[a]).removeAttribute("tabindex");var l=s.length;if(this.parent.enableVirtualization)this.parent.currentItemText=i.i(r.getValue)("name",e.data);else if(l>0){var d=this.gridObj.getRowsObject()[s[l-1]].data;this.parent.currentItemText=i.i(r.getValue)("name",d)}var h=i.i(r.getValue)("rowIndexes",e),c=i.i(r.getValue)("enableSelectMultiTouch",this.gridObj.selectionModule);this.parent.isDevice&&i.i(r.isNullOrUndefined)(h)&&e.target&&!c&&!e.target.closest(".e-headercell")&&(this.parent.isFile=i.i(r.getValue)("isFile",e.data),this.parent.isFile||this.openContent(e.data)),this.parent.visitedItem=e.row,this.parent.enableVirtualization&&e.isHeaderCheckboxClicked||this.addFocus(this.gridObj.selectedRowIndex),this.parent.isLayoutChange||(this.isInteracted=!0)},e.prototype.onPathColumn=function(){"Details"!==this.parent.view||i.i(r.isNullOrUndefined)(this.gridObj)||""!==this.parent.breadcrumbbarModule.searchObj.element.value||this.parent.isFiltered||this.removePathColumn(!1)},e.prototype.selectedRecords=function(){this.parent.setProperties({selectedItems:[]},!0);for(var e=this.gridSelectNodes(),t=0;t<e.length;){var n=e[t],r=i.i(u._10)(this.parent,n);this.parent.selectedItems.push(r),t++}this.parent.setProperties({selectedItems:this.parent.selectedItems},!0)},e.prototype.onDeSelection=function(e){if(!this.parent.allowMultiSelection&&i.i(r.isNullOrUndefined)(e.data))this.gridObj.getRowByIndex(e.rowIndex).removeAttribute("tabindex");else if(this.gridObj.getSelectedRowIndexes().length>1){var t=this.gridObj.getSelectedRowIndexes()[this.gridObj.getSelectedRowIndexes().length-2];this.gridObj.getRowByIndex(t).querySelector(".e-checkselect").removeAttribute("tabindex")}if(-1===this.gridObj.selectedRowIndex&&this.gridObj.element.setAttribute("tabindex","0"),!this.isInteracted)return void(this.isInteracted=!0);this.selectedRecords(),0===this.parent.selectedItems.length&&(i.i(r.setValue)("enableSelectMultiTouch",!1,this.gridObj.selectionModule),i.i(r.removeClass)([this.parent.element],l._13)),this.parent.notify(o.H,{}),this.triggerSelect("unselect",e),this.parent.visitedItem=null},e.prototype.triggerSelect=function(e,t){var i={action:e,fileDetails:t.data,isInteracted:this.interaction};this.parent.trigger("fileSelect",i),this.interaction=!0},e.prototype.wireEvents=function(){this.wireClickEvent(!0),this.keyboardModule=new r.KeyboardEvents(this.gridObj.element,{keyAction:this.keyupHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keyup"}),this.keyboardDownModule=new r.KeyboardEvents(this.element,{keyAction:this.keydownHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"}),r.EventHandler.add(this.gridObj.element,"blur",this.removeFocus,this),r.EventHandler.add(this.parent.element,"focusout",this.onBlur,this)},e.prototype.unWireEvents=function(){this.wireClickEvent(!1),this.keyboardModule.destroy(),this.keyboardDownModule.destroy(),r.EventHandler.remove(this.gridObj.element,"blur",this.removeFocus),r.EventHandler.remove(this.parent.element,"focusout",this.onBlur)},e.prototype.wireClickEvent=function(e){if(e){var t=this,n=this.gridObj.getContent();this.clickObj=new r.Touch(n,{tap:function(e){1===e.tapCount&&e.originalEvent.target.classList.contains("e-content")&&t.onClearAllInit()},tapHold:function(e){if(t.parent.isDevice){e.originalEvent.preventDefault(),t.parent.allowMultiSelection&&(i.i(r.setValue)("enableSelectMultiTouch",t.parent.allowMultiSelection,t.gridObj.selectionModule),i.i(r.addClass)([t.parent.element],l._13));var n=e.originalEvent.target;if(n){var s=i.i(r.closest)(n,"."+l.f),a=t.gridObj.getRows().indexOf(s);t.gridObj.selectRow(a)}}}})}else this.clickObj&&this.clickObj.destroy()},e.prototype.removeSelection=function(){i.i(r.removeClass)([this.parent.element],l._13),this.gridObj.clearSelection(),this.parent.setProperties({selectedItems:[]},!0),this.parent.notify(o.H,{}),-1===this.gridObj.selectedRowIndex&&(this.startIndex=null),this.isInteracted=!0},e.prototype.removeFocus=function(){this.addFocus(null)},e.prototype.onBlur=function(e){if((null===e.relatedTarget||i.i(r.closest)(e.relatedTarget,".e-grid")===e.relatedTarget)&&!i.i(r.isNullOrUndefined)(this.gridObj.element))for(var t=this.gridObj.element.querySelectorAll("th"),n=0;n<t.length;n++)t[n].classList.contains("e-focus")&&this.addFocus(null)},e.prototype.getFocusedItemIndex=function(){return i.i(r.isNullOrUndefined)(this.getFocusedItem())?null:parseInt(this.getFocusedItem().getAttribute("data-rowindex"),10)},e.prototype.keydownHandler=function(e){if(this.isRendered)switch(e.action){case"end":case"home":case"space":case"ctrlSpace":case"shiftSpace":case"csSpace":case"ctrlA":case"enter":case"altEnter":case"ctrlEnd":case"shiftEnd":case"csEnd":case"ctrlHome":case"shiftHome":case"csHome":case"ctrlDown":case"shiftDown":case"csDown":case"ctrlLeft":case"shiftLeft":case"csLeft":case"esc":case"del":case"shiftdel":case"ctrlC":case"ctrlV":case"ctrlX":case"f2":case"moveDown":case"moveUp":case"ctrlD":e.preventDefault()}},e.prototype.keyupHandler=function(e){if(this.isRendered){e.preventDefault();var t,n,s,a=e.action,l=i.i(h.y)(this.parent,this.gridObj.dataSource),d=l.length,p=(this.getFocusedItem(),this.getFocusedItemIndex()),f=this.gridObj.selectedRowIndex,g=this.gridObj.getSelectedRowIndexes();switch(a){case"altEnter":this.parent.notify(o.T,{}),i.i(c.g)(this.parent,this.parent.selectedItems,this.parent.path,"details");break;case"esc":i.i(u.q)(this.parent);break;case"del":case"shiftdel":this.performDelete();break;case"enter":if(-1===this.gridObj.selectedRowIndex&&!0===this.gridObj.allowSorting){if(!e.target.classList.contains("e-fe-grid-icon")){var m=e.target.getElementsByClassName("e-ascending").length?"Descending":"Ascending",b=this.gridObj.getColumnByUid(e.target.querySelector(".e-headercelldiv").getAttribute("e-mappinguid")).field;this.gridObj.sortColumn(b,m),i.i(r.isNullOrUndefined)(this.getFocusedItem().nextSibling)||this.getFocusedItem().nextSibling.setAttribute("tabindex","0")}break}if(t=this.gridObj.getRowsObject()[this.gridObj.selectedRowIndex].data){var v=JSON.parse(JSON.stringify(t));this.openContent(v)}break;case"ctrlC":i.i(u.B)(this.parent);break;case"ctrlV":this.parent.folderPath="",i.i(u.T)(this.parent);break;case"ctrlX":i.i(u.C)(this.parent);break;case"ctrlD":this.doDownload();break;case"f2":this.performRename();break;case"ctrlA":if(!i.i(r.isNullOrUndefined)(l[0])&&this.parent.allowMultiSelection){var y=this.gridObj.getContent().querySelector(".e-content"),_=y.scrollTop,I=this.gridObj.selectedRowIndex;this.gridObj.selectionModule.selectRowsByRange(0,l.length-1),y.scrollTop=_,-1!==I&&this.addFocus(I)}break;case"ctrlHome":case"tab":if(!i.i(r.isNullOrUndefined)(l[0]))if(this.parent.allowMultiSelection||"ctrlHome"!==e.action){if(-1!==this.gridObj.selectedRowIndex&&"tab"===e.action)return;this.addHeaderFocus(e)}else this.gridObj.selectRow(0);break;case"ctrlEnd":i.i(r.isNullOrUndefined)(l[0])||(this.parent.allowMultiSelection?this.addFocus(d-1):this.gridObj.selectRow(d-1));break;case"shiftHome":case"shiftEnd":case"csHome":case"csEnd":this.parent.allowMultiSelection?i.i(r.isNullOrUndefined)(l[0])||(i.i(r.isNullOrUndefined)(f)||-1===f?"csHome"===e.action||"shiftHome"===e.action?this.gridObj.selectRow(0):this.gridObj.selectionModule.selectRowsByRange(0,l.length-1):this.checkRowsKey(l,f,null,e)):this.gridObj.selectRow("shiftHome"===e.action||"csHome"===e.action?0:l.length-1);break;case"space":case"csSpace":case"shiftSpace":case"ctrlSpace":this.spaceSelection(g,p,f,e);break;case"csUp":case"csDown":case"shiftUp":case"shiftDown":this.shiftMoveMethod(l,f,p,g,e);break;case"ctrlUp":case"ctrlDown":this.parent.allowMultiSelection?this.ctrlMoveFunction(l,e,f):this.moveFunction(l,e,f);break;case"home":n=[i.i(r.getValue)(this.parent.hasId?"id":"name",l[0])],this.parent.setProperties({selectedItems:n},!0),this.selectRecords(n);break;case"moveUp":case"moveDown":this.moveFunction(l,e,f);break;case"end":s=[i.i(r.getValue)(this.parent.hasId?"id":"name",l[d-1])],this.parent.setProperties({selectedItems:s},!0),this.selectRecords(s)}}},e.prototype.gridSelectNodes=function(){return this.gridObj.getSelectedRecords()},e.prototype.doDownload=function(){if(0!==this.parent.selectedItems.length){this.parent.itemData=this.gridObj.getSelectedRecords();for(var e=this.parent.itemData,t=0;t<e.length;t++)if(!i.i(u._22)(e[t]))return void i.i(u._16)(this.parent,e[t],o.y);i.i(c.i)(this.parent,this.parent.path,this.parent.selectedItems)}},e.prototype.performDelete=function(){if(this.parent.selectedItems&&this.parent.selectedItems.length>0){this.parent.itemData=this.gridObj.getSelectedRecords();for(var e=this.parent.itemData,t=0;t<e.length;t++)if(!i.i(u._19)(e[t]))return void i.i(u._16)(this.parent,e[t],o.x);i.i(d.a)(this.parent,"Delete")}},e.prototype.performRename=function(){1===this.parent.selectedItems.length&&(this.updateRenameData(),i.i(u._12)(this.parent))},e.prototype.updateRenameData=function(){var e=this.gridSelectNodes()[0];i.i(u._11)(this.parent,e)},e.prototype.shiftMoveMethod=function(e,t,i,n,r){this.parent.allowMultiSelection?-1!==t||"csUp"!==r.action&&"csDown"!==r.action?-1===t||i===t||("csUp"===r.action||"csDown"===r.action)&&this.isSelected(n,i)?this.shiftSelectedItem(t,n,e,r):this.shiftSelectFocusItem(t,i,n,r):this.ctrlMoveFunction(e,r,t):this.moveFunction(e,r,t)},e.prototype.moveFunction=function(e,t,n){!i.i(r.isNullOrUndefined)(this.getFocusedItem())&&this.parent.allowMultiSelection?"moveDown"===t.action?this.gridObj.selectRow(this.getFocusedItemIndex()+1):this.gridObj.selectRow(this.getFocusedItemIndex()-1):i.i(r.isNullOrUndefined)(n)||-1===n?i.i(r.isNullOrUndefined)(e[0])||this.gridObj.selectRow(0):"moveDown"===t.action||"ctrlDown"===t.action||"shiftDown"===t.action||"csDown"===t.action?this.gridObj.selectRow(n+(n!==e.length-1?1:0)):this.gridObj.selectRow(n-(0!==n?1:0))},e.prototype.spaceSelection=function(e,t,n,s){if(this.isSelected(e,t)||-1===n||"shiftSpace"!==s.action&&"csSpace"!==s.action)if(i.i(r.isNullOrUndefined)(this.getFocusedItem())||t===n)if(-1!==n&&"ctrlSpace"===s.action&&this.parent.allowMultiSelection){var a=n;e.pop(),this.gridObj.selectRows(e),this.addFocus(a)}else"shiftSpace"===s.action&&this.gridObj.selectRow(n);else e.push(this.getFocusedItemIndex()),this.gridObj.selectRows(e);else t<n?this.gridObj.selectionModule.selectRowsByRange(t,n):this.gridObj.selectionModule.selectRowsByRange(n,t)},e.prototype.ctrlMoveFunction=function(e,t,n){var s;if(i.i(r.isNullOrUndefined)(this.getFocusedItem()))i.i(r.isNullOrUndefined)(n)||-1===n?i.i(r.isNullOrUndefined)(e[0])||(s=0):s="ctrlDown"===t.action||"csDown"===t.action?n+(n<e.length?1:0):n-(n<1?0:1);else{var a=this.getFocusedItemIndex();s="ctrlDown"===t.action||"csDown"===t.action?a+(a<e.length-1?1:0):a-(a<1?0:1)}this.addFocus(s)},e.prototype.checkRowsKey=function(e,t,n,s){"Uncheck"===this.gridObj.checkAllRows||"Intermediate"===this.gridObj.checkAllRows?"csHome"!==s.action&&"csEnd"!==s.action?(i.i(r.isNullOrUndefined)(this.startIndex)&&this.firstItemIndex!==t&&(this.firstItemIndex=t),"shiftEnd"===s.action?this.gridObj.selectionModule.selectRowsByRange(this.firstItemIndex,e.length-1):this.gridObj.selectionModule.selectRowsByRange(0,this.firstItemIndex),this.startIndex=t):"csEnd"===s.action?this.gridObj.selectRows(this.InnerItems(i.i(r.isNullOrUndefined)(t)?0:t,i.i(r.isNullOrUndefined)(n)?e.length-1:n,s)):i.i(r.isNullOrUndefined)(t)?this.gridObj.selectRow(0):this.gridObj.selectRows(this.InnerItems(i.i(r.isNullOrUndefined)(n)?0:n,t,s)):this.gridObj.selectionModule.selectRow("shiftHome"===s.action||"csHome"===s.action?0:e.length-1)},e.prototype.InnerItems=function(e,t,i){var n=this.gridObj.getSelectedRowIndexes();if("csEnd"===i.action)for(var r=e+1;r<=t;r++)n.push(r);else for(var r=t-1;e<=r;r--)n.push(r);return n},e.prototype.shiftSelectFocusItem=function(e,t,n,s){var a=t+("shiftDown"===s.action||"csDown"===s.action?1:-1),o=i.i(r.isNullOrUndefined)(this.startIndex)?e:n[0];o===a?this.gridObj.selectRow(o):o<a?"shiftDown"===s.action||"csDown"===s.action?this.gridObj.selectionModule.selectRowsByRange(o,a):this.gridObj.selectionModule.selectRowsByRange(a,o):"shiftDown"===s.action||"csDown"===s.action?this.gridObj.selectionModule.selectRowsByRange(a,o):this.gridObj.selectionModule.selectRowsByRange(o,a),this.startIndex=this.gridObj.selectedRowIndex},e.prototype.addFocus=function(e){var t=this.getFocusedItem(),n=this.gridObj.getRowByIndex(e);t&&(t.removeAttribute("tabindex"),i.i(r.removeClass)([t],[l._16,l._19])),i.i(r.isNullOrUndefined)(n)||(this.gridObj.element.setAttribute("tabindex","-1"),n.setAttribute("tabindex","0"),n.focus(),i.i(r.addClass)([n],[l._16,l._19]))},e.prototype.addHeaderFocus=function(e){var t=i.i(r.select)(".e-row",this.element);this.gridObj.element.setAttribute("tabindex","-1");var n;!i.i(r.isNullOrUndefined)(e.target)&&e.target.classList.contains("e-defaultcursor")?(this.addFocus(0),n=e.target.nextElementSibling):i.i(r.isNullOrUndefined)(this.gridObj.element.querySelector(".e-focus"))||"TH"!==this.gridObj.element.querySelector(".e-focus").tagName?n=i.i(r.select)("th.e-fe-grid-icon",this.element):(n=this.gridObj.element.querySelector(".e-focus").nextElementSibling,this.addFocus(0)),i.i(r.isNullOrUndefined)(n)||(n.setAttribute("tabindex","0"),n.focus(),i.i(r.addClass)([n],[l._16,l._19]),t.setAttribute("tabindex","0"),0===t.tabIndex&&0===n.tabIndex&&i.i(r.removeClass)([t],[l._16,l._19]))},e.prototype.getFocusedItem=function(){return i.i(r.select)("."+l._19,this.element)},e.prototype.isSelected=function(e,t){for(var i=!1,n=0;n<=e.length-1;n++)if(e[n]===t){i=!0;break}return i},e.prototype.shiftSelectedItem=function(e,t,n,s){-1===e?this.gridObj.selectRow(0):i.i(r.isNullOrUndefined)(this.startIndex)&&s.shiftKey?(this.startIndex=this.gridObj.selectedRowIndex,this.gridObj.selectRows([e,"shiftDown"===s.action||"csDown"===s.action?e+(e!==n.length-1?1:0):e-(0!==e?1:0)])):"shiftDown"===s.action||"shiftUp"===s.action?("shiftDown"===s.action&&-1===t.indexOf(e+1)?e!==n.length-1&&t.push(e+1):"shiftUp"===s.action&&-1===t.indexOf(e-1)?0!==e&&t.push(e-1):t.pop(),this.gridObj.selectRows(t)):"csDown"===s.action?this.isSelected(t,this.getFocusedItemIndex()+1)?this.addFocus(this.getFocusedItemIndex()+1):(t.push(this.getFocusedItemIndex()+1),this.gridObj.selectRows(t)):this.isSelected(t,this.getFocusedItemIndex()-1)?this.addFocus(this.getFocusedItemIndex()-1):(t.push(this.getFocusedItemIndex()-1),this.gridObj.selectRows(t))},e.prototype.onMethodCall=function(e){if("Details"===this.parent.view){switch(i.i(r.getValue)("action",e)){case"deleteFiles":this.deleteFiles(i.i(r.getValue)("ids",e));break;case"downloadFiles":this.downloadFiles(i.i(r.getValue)("ids",e));break;case"openFile":this.openFile(i.i(r.getValue)("id",e));break;case"createFolder":this.interaction=!1;break;case"renameFile":this.interaction=!1,this.renameFile(i.i(r.getValue)("id",e),i.i(r.getValue)("newName",e));break;case"selectAll":this.interaction=!1,this.onSelectAllInit();break;case"clearSelection":this.interaction=!1,this.onClearAllInit()}}},e.prototype.getRecords=function(e){var t=this.gridObj.getCurrentViewRecords(),n=[],s=!(""===this.parent.breadcrumbbarModule.searchObj.element.value&&!this.parent.isFiltered),a=this.parent.hasId?"id":"name";if(this.parent.hasId||!s)for(var o=0,l=t.length;o<l;o++)-1!==e.indexOf(i.i(r.getValue)(a,t[o]))&&n.push(t[o]);else for(var o=0,l=t.length;o<l;o++){var d=i.i(r.getValue)("filterPath",t[o])+i.i(r.getValue)("name",t[o]);-1!==e.indexOf(d)&&n.push(t[o])}return n},e.prototype.deleteFiles=function(e){if(this.parent.activeModule="detailsview",i.i(r.isNullOrUndefined)(e))return void this.performDelete();var t=this.getRecords(e);if(0!==t.length){for(var n=[],s=[],a=0;a<t.length;a++)n[a]=t[a],s[a]=i.i(u._10)(this.parent,n[a]);i.i(u._14)(this.parent,n,s)}},e.prototype.downloadFiles=function(e){if(i.i(r.isNullOrUndefined)(e))return void this.doDownload();var t=this.getRecords(e);if(0!==t.length){for(var n=[],s=[],a=0;a<t.length;a++)n[a]=t[a],s[a]=i.i(u._10)(this.parent,n[a]);i.i(u._15)(this.parent,n,s)}},e.prototype.openFile=function(e){if(!i.i(r.isNullOrUndefined)(e)){var t=this.getRecords([e]);t.length>0&&this.openContent(t[0])}},e.prototype.renameFile=function(e,t){if(this.parent.activeModule="detailsview",i.i(r.isNullOrUndefined)(e))return void this.performRename();var n=this.getRecords([e]);n.length>0&&(i.i(u._11)(this.parent,n[0]),i.i(r.isNullOrUndefined)(t)?i.i(u._12)(this.parent):i.i(u._19)(this.parent.itemData[0])?i.i(u.d)(this.parent,this.parent.path,t):i.i(u._16)(this.parent,this.parent.itemData[0],o.x))},e}()},function(e,t,i){"use strict";var n=i(28);i.d(t,"a",function(){return n.a});var r=i(26);i.d(t,"b",function(){return r.a});var s=i(13);i.d(t,"c",function(){return s.a})},function(e,t,i){"use strict";i.d(t,"a",function(){return u});var n=i(11),r=(i.n(n),i(0)),s=(i.n(r),i(8)),a=(i.n(s),i(4)),o=i(3),l=i(5),d=i(6),h=i(1),c=i(2),u=function(){function e(e){this.removeNodes=[],this.moveNames=[],this.expandTree=!1,this.isDrag=!1,this.isPathDragged=!1,this.isRenameParent=!1,this.isRightClick=!1,this.isSameNodeClicked=!1,this.isNodeExpandCalled=!1,this.renameParent=null,this.previousSelected=null,this.isNodeClickCalled=!1,this.restrictSelecting=!1,this.parent=e,this.addEventListener(),this.keyConfigs={altEnter:"alt+enter",esc:"escape",del:"delete",ctrlX:this.parent.isMac?"cmd+x":"ctrl+x",ctrlC:this.parent.isMac?"cmd+c":"ctrl+c",ctrlV:this.parent.isMac?"cmd+v":"ctrl+v",ctrlShiftN:"ctrl+shift+n",shiftF10:"shift+F10",f2:"f2"}}return e.prototype.onInit=function(){if(i.i(r.isNullOrUndefined)(this.treeObj)){var e=i.i(r.getValue)(this.parent.pathId[0],this.parent.feParent);i.i(r.setValue)("_fm_icon","e-fe-folder",e);var t={},s=i.i(r.getValue)("id",e);i.i(r.isNullOrUndefined)(s)||i.i(r.setValue)("data-id",s,t),i.i(c._19)(e)||i.i(r.setValue)("class",i.i(c._17)(e),t),i.i(r.isNullOrUndefined)(t)||i.i(r.setValue)("_fm_htmlAttr",t,e),this.treeObj=new n.TreeView({fields:{dataSource:[e],id:"_fm_id",parentID:"_fm_pId",expanded:"_fm_expanded",selected:"_fm_selected",text:"name",hasChildren:"hasChild",iconCss:"_fm_icon",htmlAttributes:"_fm_htmlAttr",tooltip:"name"},enableHtmlSanitizer:this.parent.enableHtmlSanitizer,sortOrder:this.parent.navigationPaneSettings.sortOrder,nodeSelecting:this.onNodeSelecting.bind(this),nodeSelected:this.onNodeSelected.bind(this),nodeExpanding:this.onNodeExpand.bind(this),nodeClicked:this.onNodeClicked.bind(this),allowEditing:!0,nodeEditing:this.onNodeEditing.bind(this),drawNode:this.onDrowNode.bind(this),enableRtl:this.parent.enableRtl,dataBound:this.addDragDrop.bind(this)}),this.treeObj.isStringTemplate=!0,this.treeObj.appendTo("#"+this.parent.element.id+o.R),this.wireEvents()}},e.prototype.addDragDrop=function(){var e=this;!this.parent.isMobile&&this.treeObj&&(this.parent.allowDragAndDrop?(this.dragObj&&this.dragObj.destroy(),this.dragObj=new r.Draggable(this.treeObj.element,{cursorAt:this.parent.dragCursorPosition,dragTarget:"."+o.N,distance:5,dragArea:this.parent.element,drag:c._8.bind(this,this.parent),dragStart:function(t){i.i(c._3)(e.parent,t,e.dragObj)},dragStop:c._2.bind(this,this.parent),enableTailMode:!0,enableAutoScroll:!1,helper:this.dragHelper.bind(this)})):!this.parent.allowDragAndDrop&&this.dragObj&&this.dragObj.destroy())},e.prototype.dragHelper=function(e){var t=e.sender.target;if(!t.classList.contains(o.N))return null;var n=i.i(r.closest)(t,"li");return this.parent.dragPath="",this.parent.dragData=[],this.parent.activeElements=[],this.parent.activeElements=[n],this.parent.dragNodes=[],i.i(c.u)(this.parent,n),this.parent.dragData=this.getTreeData(n),this.parent.dragPath=this.getDragPath(n,this.parent.dragData[0].name),this.parent.dragNodes.push(this.parent.dragData[0].name),i.i(c._1)(this.parent),this.parent.virtualDragElement},e.prototype.getDragPath=function(e,t){var n=this.getDropPath(e,t);return i.i(c.W)(n)},e.prototype.getDropPath=function(e,t){var n=e.getAttribute("data-id"),r=this.parent.hasId?n:t;return i.i(h.c)(e,r,this.parent.hasId)},e.prototype.onDrowNode=function(e){var t={element:e.node,fileDetails:e.nodeData,module:"NavigationPane"};this.parent.trigger("fileLoad",t)},e.prototype.addChild=function(e,t,n){var s=i.i(h.B)(e);if(s.length>0&&(null==s[0].filterPath||null==this.getTreeData(t)[0].filterPath||s[0].filterPath!==this.getTreeData(t)[0].filterPath)){for(var a=0,o=s;a<s.length;){o[a]._fm_icon="e-fe-folder";var l={},d=i.i(r.getValue)("id",o[a]);i.i(r.isNullOrUndefined)(d)||i.i(r.setValue)("data-id",d,l),i.i(c._19)(o[a])||i.i(r.setValue)("class",i.i(c._17)(o[a]),l),i.i(r.isNullOrUndefined)(l)||i.i(r.setValue)("_fm_htmlAttr",l,o[a]),a++}var u=i.i(r.select)('[data-uid="'+t+'"]',this.treeObj.element),p=i.i(r.select)("ul",u);i.i(r.isNullOrUndefined)(p)&&this.treeObj.addNodes(s,t,null,n)}},e.prototype.onNodeSelecting=function(e){if(!e.isInteracted&&!this.isRightClick&&!this.isSameNodeClicked&&!this.isPathDragged&&!this.isRenameParent||this.restrictSelecting)return this.restrictSelecting=!1,void(this.isNodeClickCalled=!1);if(!this.renameParent){this.parent.activeModule="navigationpane";var t=this.getTreeData(i.i(r.getValue)("id",e.nodeData));if(e.node.getAttribute("data-uid")!==this.parent.pathId[this.parent.pathId.length-1]&&!this.isRightClick&&!this.isNodeClickCalled||this.isSameNodeClicked){if(this.isNodeClickCalled=!1,!this.isSameNodeClicked){this.isSameNodeClicked=!0;var n={action:e.action,fileDetails:t[0],isInteracted:e.isInteracted};this.parent.trigger("fileSelect",n)}if(!this.isRightClick){var s={cancel:!1,fileDetails:t[0],module:"NavigationPane"};this.parent.trigger("fileOpen",s),e.cancel=s.cancel}e.cancel&&(this.restrictSelecting=!!this.isNodeClickCalled&&this.previousSelected[0]!==e.node.getAttribute("data-uid"),this.isNodeClickCalled=!0,this.isSameNodeClicked=!1,this.previousSelected=this.treeObj.selectedNodes,this.treeObj.selectedNodes=[e.node.getAttribute("data-uid")])}else if(this.previousSelected[0]!==e.node.getAttribute("data-uid")){var n={action:e.action,fileDetails:t[0],isInteracted:this.isNodeClickCalled};this.parent.trigger("fileSelect",n)}}},e.prototype.openFileOnContextMenuClick=function(e){var t=this.treeObj.getTreeData(e);this.parent.selectedItems=[],this.parent.itemData=t,this.activeNode=e,this.parent.activeModule="navigationpane";var n={cancel:!1,fileDetails:t[0],module:"NavigationPane"};this.parent.trigger("fileOpen",n),this.isNodeClickCalled=!0,n.cancel||(i.i(h.b)(e,this.parent.itemData[0],this.parent),i.i(l.a)(this.parent,this.isPathDragged?a.s:a.K,this.parent.path),this.parent.visitedItem=e,this.isPathDragged=this.isRenameParent=this.isRightClick=!1,this.treeObj.selectedNodes=[e.getAttribute("data-uid")])},e.prototype.onNodeSelected=function(e){if(this.parent.breadcrumbbarModule&&this.parent.breadcrumbbarModule.searchObj&&!this.renameParent&&(this.parent.breadcrumbbarModule.searchObj.element.value="",this.parent.isFiltered=!1,this.isNodeClickCalled=!1),this.parent.searchedItems=[],!(e.isInteracted||this.isRightClick||this.isSameNodeClicked||this.isPathDragged||this.isRenameParent))return void(this.parent.pathId=i.i(c.m)(e.node));this.activeNode=e.node,this.parent.activeModule="navigationpane";var t=this.getTreeData(i.i(r.getValue)("id",e.nodeData));this.parent.selectedItems=[],this.parent.itemData=t;var n=this.parent.path;!this.isRightClick&&this.isSameNodeClicked?i.i(h.b)(e.node,this.parent.itemData[0],this.parent):(this.parent.pathId=i.i(c.m)(e.node),this.parent.visitedItem=e.node),e.node.querySelector("."+o._20)&&null===e.node.querySelector("."+o.a)&&(this.expandNodeTarget="add"),n!==this.parent.path&&(!this.isRightClick&&this.isSameNodeClicked&&(i.i(l.a)(this.parent,this.isPathDragged?a.s:a.K,this.parent.path),this.isNodeClickCalled=!0),this.parent.visitedItem=e.node),this.isPathDragged=this.isRenameParent=this.isRightClick=this.isSameNodeClicked=!1},e.prototype.onPathDrag=function(e){this.isPathDragged=!0,this.selectResultNode(e[0])},e.prototype.onNodeExpand=function(e){if((e.isInteracted||this.isDrag)&&null===e.node.querySelector("."+o.a)){var t=i.i(r.getValue)("text",e.nodeData),n=e.node.getAttribute("data-id"),s=!i.i(r.isNullOrUndefined)(n),d=i.i(r.isNullOrUndefined)(n)?t:n,c=i.i(h.c)(e.node,d,s);this.expandNodeTarget=e.node.getAttribute("data-uid"),this.parent.expandedId=this.expandNodeTarget,this.parent.itemData=this.getTreeData(i.i(r.getValue)("id",e.nodeData)),this.parent.pathId.push(i.i(r.getValue)("id",e.nodeData)),i.i(l.a)(this.parent,a._4,c),this.isNodeExpandCalled=!0}},e.prototype.onNodeExpanded=function(e){this.addChild(e.files,this.expandNodeTarget,!1),this.parent.expandedId=null,this.isNodeExpandCalled=!1},e.prototype.onNodeClicked=function(e){if(this.parent.activeModule="navigationpane",this.previousSelected=this.treeObj.selectedNodes,this.activeNode=e.node,3===e.event.which&&e.node.getAttribute("data-uid")!==this.treeObj.selectedNodes[0])this.isRightClick=!0,this.isNodeClickCalled=!0,this.treeObj.selectedNodes=[e.node.getAttribute("data-uid")];else if(e.node.getAttribute("data-uid")===this.treeObj.selectedNodes[0]&&0!==this.parent.selectedItems.length){this.parent.setProperties({selectedItems:[]},!0);var t="LargeIcons"===this.parent.view?"largeiconsview":"detailsview";this.parent.notify(a.V,{module:t,newProp:{selectedItems:[]}})}else e.node.getAttribute("data-uid")!==this.treeObj.selectedNodes[0]||this.isNodeClickCalled||this.isNodeExpandCalled||(3===e.event.which&&(this.isRightClick=!0),this.isSameNodeClicked=!0,this.isNodeClickCalled=!0,this.treeObj.selectedNodes=[e.node.getAttribute("data-uid")])},e.prototype.onNodeEditing=function(e){i.i(r.isNullOrUndefined)(e.innerHtml)||(e.cancel=!0)},e.prototype.onPathChanged=function(e){this.parent.isCut=!1;var t=i.i(r.getValue)(this.parent.pathId[this.parent.pathId.length-1],this.parent.feFiles);if("add"===this.expandNodeTarget){var n=i.i(r.select)('[data-uid="'+this.treeObj.selectedNodes[0]+'"]',this.treeObj.element),s=i.i(r.isNullOrUndefined)(n)?null:i.i(r.select)("."+o._11,n);i.i(r.isNullOrUndefined)(s)&&this.addChild(e.files,this.treeObj.selectedNodes[0],!this.expandTree),this.expandNodeTarget=""}this.expandTree=!1,i.i(r.isNullOrUndefined)(t)&&i.i(r.setValue)(this.parent.pathId[this.parent.pathId.length-1],e.files,this.parent.feFiles),this.parent.uploadObj.directoryUpload&&!this.parent.hasId&&this.updateTree(e)},e.prototype.updateTree=function(e){if(this.treeObj){var t=this.treeObj.selectedNodes[0];this.updateTreeNode(e,t)}},e.prototype.updateTreeNode=function(e,t){var i=-1!==this.treeObj.expandedNodes.indexOf(t);this.removeChildNodes(t),this.addChild(e.files,t,!i)},e.prototype.removeChildNodes=function(e){var t=i.i(r.select)('[data-uid="'+e+'"]',this.treeObj.element),n=i.i(r.select)("."+o._11,t),s=n?Array.prototype.slice.call(n.children):null;s&&this.treeObj.removeNodes(s)},e.prototype.onOpenEnd=function(e){var t=this.parent.pathId[this.parent.pathId.length-1];this.treeObj.expandAll(this.treeObj.selectedNodes),this.treeObj.selectedNodes=[t],this.expandNodeTarget="add",this.onPathChanged(e)},e.prototype.onOpenInit=function(e){"navigationpane"===this.parent.activeModule&&e.target.querySelector("."+o._20)&&this.treeObj.expandAll(this.treeObj.selectedNodes)},e.prototype.onInitialEnd=function(e){this.onInit(),this.addChild(e.files,i.i(r.getValue)("_fm_id",e.cwd),!1)},e.prototype.onFinalizeEnd=function(e){this.onInit();var t=i.i(r.getValue)("_fm_id",e.cwd);this.addChild(e.files,t,!1),this.treeObj.selectedNodes=[this.parent.pathId[this.parent.pathId.length-1]]},e.prototype.onCreateEnd=function(e){this.updateTree(e)},e.prototype.onSelectedData=function(){"navigationpane"===this.parent.activeModule&&this.updateItemData()},e.prototype.onDeleteInit=function(){if("navigationpane"===this.parent.activeModule){this.updateActionData();var e=i.i(r.getValue)("name",this.parent.itemData[0]);i.i(l.f)(this.parent,[e],this.parent.path,"delete")}},e.prototype.onDeleteEnd=function(e){if("navigationpane"===this.parent.activeModule){var t=this.treeObj.selectedNodes[0],n=i.i(r.select)('[data-uid="'+t+'"]',this.treeObj.element),s=i.i(r.closest)(n,"."+o._11).parentElement;this.treeObj.selectedNodes=[s.getAttribute("data-uid")],this.treeObj.dataBind()}this.updateTree(e)},e.prototype.onRefreshEnd=function(e){this.updateTree(e)},e.prototype.onRenameInit=function(){"navigationpane"===this.parent.activeModule&&this.updateRenameData()},e.prototype.onRenameEndParent=function(e){var t=this.renameParent?this.renameParent:this.parent.pathId[this.parent.pathId.length-1];if(this.expandTree=-1!==this.treeObj.expandedNodes.indexOf(this.treeObj.selectedNodes[0]),this.updateTreeNode(e,t),this.parent.expandedId=null,this.renameParent)this.renameParent=null;else{var n=[];if(this.parent.hasId)n=new s.DataManager(this.treeObj.getTreeData()).executeLocal((new s.Query).where("id","equal",this.parent.renamedId,!1));else{var a=new s.DataManager(this.treeObj.getTreeData()).executeLocal((new s.Query).where(this.treeObj.fields.text,"equal",this.parent.renameText,!1));a.length>0&&(n=new s.DataManager(a).executeLocal((new s.Query).where("_fm_pId","equal",t,!1)))}if(n.length>0){var o=i.i(r.getValue)(this.treeObj.fields.id,n[0]);this.treeObj.selectedNodes=[o],this.treeObj.dataBind()}}},e.prototype.onRenameEnd=function(e){if(""!==this.parent.breadcrumbbarModule.searchObj.element.value||this.parent.isFiltered){var t=this.treeObj.getTreeData(),n=[];if(this.parent.hasId)n=new s.DataManager(t).executeLocal((new s.Query).where("id","equal",this.parent.renamedId,!1));else{var o=new s.DataManager(t).executeLocal((new s.Query).where(this.treeObj.fields.text,"equal",this.parent.currentItemText,!1));o.length>0&&(n=new s.DataManager(o).executeLocal((new s.Query).where("filterPath","equal",this.parent.filterPath,!1)))}n.length>0&&(this.renameParent=i.i(r.getValue)(this.treeObj.fields.parentID,n[0]),this.parent.expandedId=this.renameParent,this.parent.itemData=this.getTreeData(this.renameParent),i.i(l.a)(this.parent,a.J,this.parent.filterPath.replace(/\\/g,"/")))}else this.updateTree(e)},e.prototype.onPropertyChanged=function(e){if(e.module===this.getModuleName()||"common"===e.module)for(var t=0,n=Object.keys(e.newProp);t<n.length;t++){var r=n[t];switch(r){case"allowDragAndDrop":this.addDragDrop();break;case"navigationPaneSettings":i.i(l.a)(this.parent,a.m,"/"),e.oldProp.navigationPaneSettings.sortOrder!==e.newProp.navigationPaneSettings.sortOrder&&(this.treeObj.sortOrder=e.newProp.navigationPaneSettings.sortOrder)}}},e.prototype.onDownLoadInit=function(){this.doDownload()},e.prototype.onSelectionChanged=function(e){this.treeObj.selectedNodes=[e.selectedNode]},e.prototype.onClearPathInit=function(e){this.removeChildNodes(e.selectedNode)},e.prototype.onDragEnd=function(e){var t=[];t=this.parent.isPasteError||this.parent.isSearchDrag?this.getMoveNames(e.files,this.parent.isSearchDrag,this.parent.dragPath):this.moveNames,this.treeObj.removeNodes(t)},e.prototype.getMoveNames=function(e,t,n){for(var a=[],o=0;o<e.length;o++)if(!e[o].isFile&&!this.parent.hasId){var l=e[o].previousName;if(t){n+=e[o].previousName;var d=n.lastIndexOf("/");l=n.substring(d+1),n=n.substring(0,d+1)}for(var h=new s.DataManager(this.treeObj.getTreeData()).executeLocal((new s.Query).where(this.treeObj.fields.text,"equal",l,!1)),c=0;c<h.length;c++){var u=i.i(r.getValue)("filterPath",h[c]);if((u=u.replace(/\\/g,"/"))===n){a.push(i.i(r.getValue)(this.treeObj.fields.id,h[c]));break}}}return a},e.prototype.onCutEnd=function(e){var t=[];this.parent.isPasteError||this.parent.isSearchCut?this.moveNames=this.getMoveNames(e.files,this.parent.isSearchCut,this.parent.targetPath):t=this.moveNames,this.treeObj.removeNodes(t)},e.prototype.selectResultNode=function(e){if(this.parent.hasId){var t=this.treeObj.getTreeData().filter(function(t){return t.name===e.name})[0];this.treeObj.selectedNodes=[i.i(r.getValue)("_fm_id",t)],this.treeObj.dataBind()}else{var n=i.i(r.getValue)("filterPath",e),a=i.i(r.getValue)("name",e),o=new s.DataManager(this.treeObj.getTreeData()).executeLocal((new s.Query).where(this.treeObj.fields.text,"equal",a,!1));if(o.length>0){var l=new s.DataManager(o).executeLocal((new s.Query).where("filterPath","equal",n,!1));if(l.length>0){var d=i.i(r.getValue)(this.treeObj.fields.id,l[0]);this.treeObj.selectedNodes=[d],this.treeObj.dataBind()}}}},e.prototype.onDropPath=function(e){this.onpasteEnd(e),this.selectResultNode(this.parent.dropData),this.parent.isDropEnd=!this.parent.isPasteError},e.prototype.onpasteEnd=function(e){var t=[];if(this.parent.hasId)t=new s.DataManager(this.treeObj.getTreeData()).executeLocal((new s.Query).where("id","equal",i.i(r.getValue)("id",e.cwd),!1));else{var n=new s.DataManager(this.treeObj.getTreeData()).executeLocal((new s.Query).where(this.treeObj.fields.text,"equal",i.i(r.getValue)("name",e.cwd),!1));n.length>0&&(t=new s.DataManager(n).executeLocal((new s.Query).where("filterPath","equal",i.i(r.getValue)("filterPath",e.cwd),!1)))}if(t.length>0){var a=i.i(r.getValue)(this.treeObj.fields.id,t[0]),o=-1===this.treeObj.expandedNodes.indexOf(a);this.removeChildNodes(a),this.addChild(e.files,a,o)}this.parent.expandedId=null,this.onPathChanged(e),this.parent.isDragDrop&&this.checkDropPath(e)},e.prototype.checkDropPath=function(e){if(this.parent.hasId)return this.parent.isDropEnd=!this.parent.isPasteError,void i.i(c.Z)(this.parent);-1===this.parent.dropPath.indexOf(i.i(c.X)(this.parent,e))?(this.parent.isDropEnd=!1,i.i(c.Z)(this.parent)):this.parent.isDropEnd=!this.parent.isPasteError},e.prototype.onpasteInit=function(){this.parent.activeModule===this.getModuleName()&&this.updateItemData(),this.moveNames=[];for(var e=this.parent.isDragDrop?this.parent.dragData:this.parent.actionRecords,t=0;t<e.length;t++)!1===i.i(r.getValue)("isFile",e[t])&&this.moveNames.push(i.i(r.getValue)("_fm_id",e[t]))},e.prototype.oncutCopyInit=function(){this.parent.activeModule===this.getModuleName()&&(this.parent.activeRecords=this.getTreeData(this.treeObj.selectedNodes[0]),this.parent.activeElements=[this.activeNode])},e.prototype.addEventListener=function(){this.parent.on(a.V,this.onPropertyChanged,this),this.parent.on(a.P,this.onDownLoadInit,this),this.parent.on(a.n,this.onInitialEnd,this),this.parent.on(a.m,this.onFinalizeEnd,this),this.parent.on(a.K,this.onPathChanged,this),this.parent.on(a.s,this.onpasteEnd,this),this.parent.on(a.q,this.onCutEnd,this),this.parent.on(a.p,this.onpasteInit,this),this.parent.on(a._4,this.onNodeExpanded,this),this.parent.on(a.I,this.onCreateEnd,this),this.parent.on(a.O,this.onSelectedData,this),this.parent.on(a.D,this.onDeleteInit,this),this.parent.on(a.M,this.onDeleteEnd,this),this.parent.on(a.h,this.onRefreshEnd,this),this.parent.on(a._5,this.onSelectionChanged,this),this.parent.on(a.S,this.onOpenInit,this),this.parent.on(a.i,this.onOpenEnd,this),this.parent.on(a.U,this.destroy,this),this.parent.on(a.Q,this.onRenameInit,this),this.parent.on(a.L,this.onRenameEnd,this),this.parent.on(a.J,this.onRenameEndParent,this),this.parent.on(a.o,this.onClearPathInit,this),this.parent.on(a.b,this.oncutCopyInit,this),this.parent.on(a.v,this.onDropInit,this),this.parent.on(a.N,this.onMenuItemData,this),this.parent.on(a.r,this.onDragEnd,this),this.parent.on(a.w,this.onDragging,this),this.parent.on(a.u,this.onDropPath,this),this.parent.on(a.T,this.onDetailsInit,this),this.parent.on(a.t,this.onPathDrag,this)},e.prototype.removeEventListener=function(){this.parent.off(a.n,this.onInitialEnd),this.parent.off(a.P,this.onDownLoadInit),this.parent.off(a.m,this.onFinalizeEnd),this.parent.off(a.O,this.onSelectedData),this.parent.off(a.V,this.onPropertyChanged),this.parent.off(a.K,this.onPathChanged),this.parent.off(a.s,this.onpasteEnd),this.parent.off(a.q,this.onCutEnd),this.parent.off(a.p,this.onpasteInit),this.parent.off(a._5,this.onSelectionChanged),this.parent.off(a._4,this.onNodeExpanded),this.parent.off(a.I,this.onCreateEnd),this.parent.off(a.h,this.onRefreshEnd),this.parent.off(a.S,this.onOpenInit),this.parent.off(a.i,this.onOpenEnd),this.parent.off(a.U,this.destroy),this.parent.off(a.Q,this.onRenameInit),this.parent.off(a.L,this.onRenameEnd),this.parent.off(a.J,this.onRenameEndParent),this.parent.off(a.o,this.onClearPathInit),this.parent.off(a.D,this.onDeleteInit),this.parent.off(a.M,this.onDeleteEnd),this.parent.off(a.b,this.oncutCopyInit),this.parent.off(a.v,this.onDropInit),this.parent.off(a.r,this.onDragEnd),this.parent.off(a.w,this.onDragging),this.parent.off(a.u,this.onDropPath),this.parent.off(a.T,this.onDetailsInit),this.parent.off(a.N,this.onMenuItemData),this.parent.off(a.t,this.onPathDrag)},e.prototype.onDetailsInit=function(){if(this.parent.activeModule===this.getModuleName()){var e=this.getTreeData(this.treeObj.selectedNodes[0]);this.parent.itemData=e}},e.prototype.onMenuItemData=function(e){if(this.parent.activeModule===this.getModuleName()){var t=i.i(r.closest)(e.target,"li");this.parent.itemData=this.getTreeData(t.getAttribute("data-uid"))}},e.prototype.onDragging=function(e){var t=i.i(r.closest)(e.target,"li");if(t.classList.contains("e-node-collapsed")){this.isDrag=!0;var n=parseInt(t.getAttribute("aria-level"),10);this.treeObj.expandAll([t.getAttribute("data-uid")],n+1),this.isDrag=!1}},e.prototype.onDropInit=function(e){if(this.parent.targetModule===this.getModuleName()){var t=i.i(r.closest)(e.target,"li");this.parent.dropData=this.getTreeData(t)[0],this.parent.dropPath=this.getDropPath(t,i.i(r.getValue)("name",this.parent.dropData))}},e.prototype.getModuleName=function(){return"navigationpane"},e.prototype.destroy=function(){this.parent.isDestroyed||(this.removeEventListener(),this.treeObj&&(this.unWireEvents(),this.treeObj.destroy()))},e.prototype.wireEvents=function(){this.keyboardModule=new r.KeyboardEvents(this.treeObj.element,{keyAction:this.keyDown.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"})},e.prototype.unWireEvents=function(){this.keyboardModule.destroy()},e.prototype.keyDown=function(e){switch(e.action){case"altEnter":this.parent.notify(a.T,{}),i.i(l.g)(this.parent,[],this.parent.path,"details");break;case"esc":i.i(c.q)(this.parent);break;case"del":this.parent.pathId[0]!==this.activeNode.getAttribute("data-uid")&&(this.updateItemData(),i.i(c._19)(this.parent.itemData[0])?(this.removeNodes=[],i.i(d.a)(this.parent,"Delete")):i.i(c._16)(this.parent,this.parent.itemData[0],a.x));break;case"ctrlC":i.i(c.B)(this.parent);break;case"ctrlV":this.parent.folderPath="",i.i(c.T)(this.parent);break;case"ctrlX":i.i(c.C)(this.parent);break;case"shiftF10":if(this.updateItemData(),!i.i(c._22)(this.parent.itemData[0]))return void i.i(c._16)(this.parent,this.parent.itemData[0],a.y);0!==this.parent.selectedItems.length&&this.doDownload();break;case"f2":if(0===this.parent.selectedItems.length){var t=this.getTreeData(this.treeObj.selectedNodes[0])[0];i.i(c._19)(t)?(this.updateRenameData(),i.i(d.a)(this.parent,"Rename")):i.i(c._16)(this.parent,t,a.x)}}},e.prototype.getTreeData=function(e){for(var t=this.treeObj.getTreeData(e),n=0;n<t.length;n++)i.i(r.isNullOrUndefined)(i.i(r.getValue)("hasChild",t[n]))&&i.i(r.setValue)("hasChild",!1,t[n]);return t},e.prototype.updateRenameData=function(){this.updateItemData(),this.parent.currentItemText=i.i(r.getValue)("name",this.parent.itemData[0])},e.prototype.updateItemData=function(){var e=this.getTreeData(this.treeObj.selectedNodes[0])[0];this.parent.itemData=[e],this.parent.isFile=!1},e.prototype.updateActionData=function(){this.updateItemData();var e=i.i(c.W)(this.parent.path);this.parent.setProperties({path:e},!0),this.parent.pathId.pop(),this.parent.pathNames.pop()},e.prototype.doDownload=function(){var e=i.i(c.W)(this.parent.path),t=this.treeObj.selectedNodes[0],n=t===this.parent.pathId[0]?"":i.i(r.getValue)("name",this.parent.itemData[0]);i.i(l.i)(this.parent,e,[n])},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var n=i(0),r=(i.n(n),this&&this.__extends||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])})(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)}}()),s=this&&this.__decorate||function(e,t,i,n){var r,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,i,a):r(t,i))||a);return s>3&&a&&Object.defineProperty(t,i,a),a},a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),s([i.i(n.Property)(null)],t.prototype,"downloadUrl",void 0),s([i.i(n.Property)(null)],t.prototype,"getImageUrl",void 0),s([i.i(n.Property)(null)],t.prototype,"uploadUrl",void 0),s([i.i(n.Property)(null)],t.prototype,"url",void 0),t}(n.ChildProperty)},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var n=i(0),r=(i.n(n),this&&this.__extends||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])})(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)}}()),s=this&&this.__decorate||function(e,t,i,n){var r,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,i,a):r(t,i))||a);return s>3&&a&&Object.defineProperty(t,i,a),a},a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),s([i.i(n.Property)("")],t.prototype,"field",void 0),s([i.i(n.Property)("")],t.prototype,"headerText",void 0),s([i.i(n.Property)("")],t.prototype,"width",void 0),s([i.i(n.Property)("")],t.prototype,"minWidth",void 0),s([i.i(n.Property)("")],t.prototype,"maxWidth",void 0),s([i.i(n.Property)("Left")],t.prototype,"textAlign",void 0),s([i.i(n.Property)(null)],t.prototype,"headerTextAlign",void 0),s([i.i(n.Property)(null)],t.prototype,"type",void 0),s([i.i(n.Property)(null)],t.prototype,"format",void 0),s([i.i(n.Property)(null)],t.prototype,"template",void 0),s([i.i(n.Property)(null)],t.prototype,"sortComparer",void 0),s([i.i(n.Property)(null)],t.prototype,"headerTemplate",void 0),s([i.i(n.Property)(!0)],t.prototype,"allowSorting",void 0),s([i.i(n.Property)(!0)],t.prototype,"allowResizing",void 0),s([i.i(n.Property)(null)],t.prototype,"customAttributes",void 0),s([i.i(n.Property)("")],t.prototype,"hideAtMedia",void 0),s([i.i(n.Property)(null)],t.prototype,"customFormat",void 0),s([i.i(n.Property)(!1)],t.prototype,"isPrimaryKey",void 0),t}(n.ChildProperty)},function(e,t,i){"use strict";i.d(t,"a",function(){return n});var n={NewFolder:"New folder",Upload:"Upload",Delete:"Delete",Rename:"Rename",Download:"Download",Cut:"Cut",Copy:"Copy",Paste:"Paste",SortBy:"Sort by",Refresh:"Refresh","Item-Selection":"item selected","Items-Selection":"items selected",View:"View",Details:"Details",SelectAll:"Select all",Open:"Open","Tooltip-NewFolder":"New folder","Tooltip-Upload":"Upload","Tooltip-Delete":"Delete","Tooltip-Rename":"Rename","Tooltip-Download":"Download","Tooltip-Cut":"Cut","Tooltip-Copy":"Copy","Tooltip-Paste":"Paste","Tooltip-SortBy":"Sort by","Tooltip-Refresh":"Refresh","Tooltip-Selection":"Clear selection","Tooltip-View":"View","Tooltip-Details":"Details","Tooltip-SelectAll":"Select all",Name:"Name",Size:"Size",DateModified:"Modified",DateCreated:"Date created",Path:"Path",Modified:"Modified",Created:"Created",Location:"Location",Type:"Type",Permission:"Permission",Ascending:"Ascending",Descending:"Descending",None:"None","View-LargeIcons":"Large icons","View-Details":"Details",Search:"Search","Button-Ok":"OK","Button-Cancel":"Cancel","Button-Yes":"Yes","Button-No":"No","Button-Create":"Create","Button-Save":"Save","Header-NewFolder":"Folder","Content-NewFolder":"Enter your folder name","Header-Rename":"Rename","Content-Rename":"Enter your new name","Header-Rename-Confirmation":"Rename Confirmation","Content-Rename-Confirmation":"If you change a file name extension, the file might become unstable. Are you sure you want to change it?","Header-Delete":"Delete File","Content-Delete":"Are you sure you want to delete this file?","Header-Folder-Delete":"Delete Folder","Content-Folder-Delete":"Are you sure you want to delete this folder?","Header-Multiple-Delete":"Delete Multiple Items","Content-Multiple-Delete":"Are you sure you want to delete these {0} items?","Header-Duplicate":"File/Folder exists","Content-Duplicate":"{0} already exists. Do you want to rename and paste?","Header-Upload":"Upload Files",Error:"Error","Validation-Empty":"The file or folder name cannot be empty.","Validation-Invalid":'The file or folder name {0} contains invalid characters. Please use a different name. Valid file or folder names cannot end with a dot or space, and cannot contain any of the following characters: \\/:*?"<>|',"Validation-NewFolder-Exists":"A file or folder with the name {0} already exists.","Validation-Rename-Exists":"Cannot rename {0} to {1}: destination already exists.","Folder-Empty":"This folder is empty","File-Upload":"Drag files here to upload","Search-Empty":"No results found","Search-Key":"Try with different keywords","Filter-Empty":"No results found","Filter-Key":"Try with different filter","Sub-Folder-Error":"The destination folder is the subfolder of the source folder.","Same-Folder-Error":"The destination folder is the same as the source folder.","Access-Denied":"Access Denied","Access-Details":'You don"t have permission to access this folder.',"Header-Retry":"File Already Exists","Content-Retry":"A file with this name already exists in this folder. What would you like to do?","Button-Keep-Both":"Keep both","Button-Replace":"Replace","Button-Skip":"Skip","ApplyAll-Label":"Do this for all current items",KB:"KB","Access-Message":"{0} is not accessible. You need permission to perform the {1} action.","Network-Error":"NetworkError: Failed to send on XMLHTTPRequest: Failed to load","Server-Error":"ServerError: Invalid response from"}},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var n=i(0),r=(i.n(n),this&&this.__extends||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])})(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)}}()),s=this&&this.__decorate||function(e,t,i,n){var r,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,i,a):r(t,i))||a);return s>3&&a&&Object.defineProperty(t,i,a),a},a=[{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:i.i(n.initializeCSPTemplate)(function(e){return'<span class="e-fe-size">'+e.size+"</span>"}),format:"n2"}],o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),s([i.i(n.Property)(!0)],t.prototype,"columnResizing",void 0),s([i.i(n.Property)(a)],t.prototype,"columns",void 0),t}(n.ChildProperty)},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var n=i(0),r=(i.n(n),this&&this.__extends||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])})(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)}}()),s=this&&this.__decorate||function(e,t,i,n){var r,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,i,a):r(t,i))||a);return s>3&&a&&Object.defineProperty(t,i,a),a},a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),s([i.i(n.Property)("650px")],t.prototype,"maxWidth",void 0),s([i.i(n.Property)("240px")],t.prototype,"minWidth",void 0),s([i.i(n.Property)(!0)],t.prototype,"visible",void 0),s([i.i(n.Property)("None")],t.prototype,"sortOrder",void 0),t}(n.ChildProperty)},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var n=i(0),r=(i.n(n),this&&this.__extends||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])})(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)}}()),s=this&&this.__decorate||function(e,t,i,n){var r,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,i,a):r(t,i))||a);return s>3&&a&&Object.defineProperty(t,i,a),a},a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),s([i.i(n.Property)(!0)],t.prototype,"allowSearchOnTyping",void 0),s([i.i(n.Property)("contains")],t.prototype,"filterType",void 0),s([i.i(n.Property)(!0)],t.prototype,"ignoreCase",void 0),s([i.i(n.Property)(null)],t.prototype,"placeholder",void 0),t}(n.ChildProperty)},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o}),i.d(t,"c",function(){return l});var n=i(0),r=(i.n(n),this&&this.__extends||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])})(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)}}()),s=this&&this.__decorate||function(e,t,i,n){var r,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,i,a):r(t,i))||a);return s>3&&a&&Object.defineProperty(t,i,a),a},a=["NewFolder","Upload","Cut","Copy","Paste","Delete","Download","Rename","SortBy","Refresh","Selection","View","Details"],o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),s([i.i(n.Property)(a)],t.prototype,"items",void 0),s([i.i(n.Property)(!0)],t.prototype,"visible",void 0),t}(n.ChildProperty),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),s([i.i(n.Property)("")],t.prototype,"id",void 0),s([i.i(n.Property)("")],t.prototype,"text",void 0),s([i.i(n.Property)("auto")],t.prototype,"width",void 0),s([i.i(n.Property)("")],t.prototype,"cssClass",void 0),s([i.i(n.Property)(!1)],t.prototype,"showAlwaysInPopup",void 0),s([i.i(n.Property)(!1)],t.prototype,"disabled",void 0),s([i.i(n.Property)("")],t.prototype,"prefixIcon",void 0),s([i.i(n.Property)("")],t.prototype,"suffixIcon",void 0),s([i.i(n.Property)(!0)],t.prototype,"visible",void 0),s([i.i(n.Property)("None")],t.prototype,"overflow",void 0),s([i.i(n.Property)("")],t.prototype,"template",void 0),s([i.i(n.Property)("Button")],t.prototype,"type",void 0),s([i.i(n.Property)("Both")],t.prototype,"showTextOn",void 0),s([i.i(n.Property)(null)],t.prototype,"htmlAttributes",void 0),s([i.i(n.Property)("")],t.prototype,"tooltipText",void 0),s([i.i(n.Property)("Left")],t.prototype,"align",void 0),s([i.i(n.Property)(-1)],t.prototype,"tabIndex",void 0),s([i.i(n.Property)()],t.prototype,"name",void 0),t}(n.ChildProperty)},function(e,t,i){"use strict";var n=i(6);i.d(t,"a",function(){return n.a}),i.d(t,"b",function(){return n.b}),i.d(t,"c",function(){return n.c});var r=i(16);i.d(t,"d",function(){return r.a})},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(20);i.d(t,"AjaxSettings",function(){return n.a}),i.d(t,"defaultToolbarItems",function(){return n.b}),i.d(t,"ToolbarSettings",function(){return n.c}),i.d(t,"ToolbarItem",function(){return n.d}),i.d(t,"SearchSettings",function(){return n.e}),i.d(t,"columnArray",function(){return n.f}),i.d(t,"DetailsViewSettings",function(){return n.g}),i.d(t,"fileItems",function(){return n.h}),i.d(t,"folderItems",function(){return n.i}),i.d(t,"layoutItems",function(){return n.j}),i.d(t,"ContextMenuSettings",function(){return n.k}),i.d(t,"NavigationPaneSettings",function(){return n.l}),i.d(t,"UploadSettings",function(){return n.m}),i.d(t,"Column",function(){return n.n}),i.d(t,"TOOLBAR_ID",function(){return n.o}),i.d(t,"LAYOUT_ID",function(){return n.p}),i.d(t,"NAVIGATION_ID",function(){return n.q}),i.d(t,"TREE_ID",function(){return n.r}),i.d(t,"GRID_ID",function(){return n.s}),i.d(t,"LARGEICON_ID",function(){return n.t}),i.d(t,"DIALOG_ID",function(){return n.u}),i.d(t,"ALT_DIALOG_ID",function(){return n.v}),i.d(t,"IMG_DIALOG_ID",function(){return n.w}),i.d(t,"EXTN_DIALOG_ID",function(){return n.x}),i.d(t,"UPLOAD_DIALOG_ID",function(){return n.y}),i.d(t,"RETRY_DIALOG_ID",function(){return n.z}),i.d(t,"CONTEXT_MENU_ID",function(){return n.A}),i.d(t,"SORTBY_ID",function(){return n.B}),i.d(t,"VIEW_ID",function(){return n.C}),i.d(t,"SPLITTER_ID",function(){return n.D}),i.d(t,"CONTENT_ID",function(){return n.E}),i.d(t,"BREADCRUMBBAR_ID",function(){return n.F}),i.d(t,"UPLOAD_ID",function(){return n.G}),i.d(t,"RETRY_ID",function(){return n.H}),i.d(t,"SEARCH_ID",function(){return n.I}),i.d(t,"ROOT",function(){return n.J}),i.d(t,"CONTROL",function(){return n.K}),i.d(t,"CHECK_SELECT",function(){return n.L}),i.d(t,"ROOT_POPUP",function(){return n.M}),i.d(t,"MOBILE",function(){return n.N}),i.d(t,"MOB_POPUP",function(){return n.O}),i.d(t,"MULTI_SELECT",function(){return n.P}),i.d(t,"FILTER",function(){return n.Q}),i.d(t,"LAYOUT",function(){return n.R}),i.d(t,"NAVIGATION",function(){return n.S}),i.d(t,"LAYOUT_CONTENT",function(){return n.T}),i.d(t,"LARGE_ICONS",function(){return n.U}),i.d(t,"TB_ITEM",function(){return n.V}),i.d(t,"LIST_ITEM",function(){return n.W}),i.d(t,"LIST_TEXT",function(){return n.X}),i.d(t,"LIST_PARENT",function(){return n.Y}),i.d(t,"TB_OPTION_TICK",function(){return n.Z}),i.d(t,"TB_OPTION_DOT",function(){return n._0}),i.d(t,"BLUR",function(){return n._1}),i.d(t,"ACTIVE",function(){return n._2}),i.d(t,"HOVER",function(){return n._3}),i.d(t,"FOCUS",function(){return n._4}),i.d(t,"FOCUSED",function(){return n._5}),i.d(t,"CHECK",function(){return n._6}),i.d(t,"FRAME",function(){return n._7}),i.d(t,"CB_WRAP",function(){return n._8}),i.d(t,"ROW",function(){return n._9}),i.d(t,"ROWCELL",function(){return n._10}),i.d(t,"EMPTY",function(){return n._11}),i.d(t,"EMPTY_CONTENT",function(){return n._12}),i.d(t,"EMPTY_INNER_CONTENT",function(){return n._13}),i.d(t,"CLONE",function(){return n._14}),i.d(t,"DROP_FOLDER",function(){return n._15}),i.d(t,"DROP_FILE",function(){return n._16}),i.d(t,"FOLDER",function(){return n._17}),i.d(t,"ICON_IMAGE",function(){return n._18}),i.d(t,"ICON_MUSIC",function(){return n._19}),i.d(t,"ICON_VIDEO",function(){return n._20}),i.d(t,"LARGE_ICON",function(){return n._21}),i.d(t,"LARGE_EMPTY_FOLDER",function(){return n._22}),i.d(t,"LARGE_EMPTY_FOLDER_TWO",function(){return n._23}),i.d(t,"LARGE_ICON_FOLDER",function(){return n._24}),i.d(t,"SELECTED_ITEMS",function(){return n._25}),i.d(t,"TEXT_CONTENT",function(){return n._26}),i.d(t,"GRID_HEADER",function(){return n._27}),i.d(t,"TEMPLATE_CELL",function(){return n._28}),i.d(t,"TREE_VIEW",function(){return n._29}),i.d(t,"MENU_ITEM",function(){return n._30}),i.d(t,"MENU_ICON",function(){return n._31}),i.d(t,"SUBMENU_ICON",function(){return n._32}),i.d(t,"GRID_VIEW",function(){return n._33}),i.d(t,"GRID_CONTENT",function(){return n._34}),i.d(t,"ICON_VIEW",function(){return n._35}),i.d(t,"ICON_OPEN",function(){return n._36}),i.d(t,"ICON_UPLOAD",function(){return n._37}),i.d(t,"ICON_CUT",function(){return n._38}),i.d(t,"ICON_COPY",function(){return n._39}),i.d(t,"ICON_PASTE",function(){return n._40}),i.d(t,"ICON_DELETE",function(){return n._41}),i.d(t,"ICON_RENAME",function(){return n._42}),i.d(t,"ICON_NEWFOLDER",function(){return n._43}),i.d(t,"ICON_DETAILS",function(){return n._44}),i.d(t,"ICON_SHORTBY",function(){return n._45}),i.d(t,"ICON_REFRESH",function(){return n._46}),i.d(t,"ICON_SELECTALL",function(){return n._47}),i.d(t,"ICON_DOWNLOAD",function(){return n._48}),i.d(t,"ICON_OPTIONS",function(){return n._49}),i.d(t,"ICON_GRID",function(){return n._50}),i.d(t,"ICON_LARGE",function(){return n._51}),i.d(t,"ICON_BREADCRUMB",function(){return n._52}),i.d(t,"ICON_CLEAR",function(){return n._53}),i.d(t,"ICON_DROP_IN",function(){return n._54}),i.d(t,"ICON_DROP_OUT",function(){return n._55}),i.d(t,"ICON_NO_DROP",function(){return n._56}),i.d(t,"ICONS",function(){return n._57}),i.d(t,"DETAILS_LABEL",function(){return n._58}),i.d(t,"ERROR_CONTENT",function(){return n._59}),i.d(t,"STATUS",function(){return n._60}),i.d(t,"BREADCRUMBS",function(){return n._61}),i.d(t,"RTL",function(){return n._62}),i.d(t,"DISPLAY_NONE",function(){return n._63}),i.d(t,"COLLAPSED",function(){return n._64}),i.d(t,"FULLROW",function(){return n._65}),i.d(t,"ICON_COLLAPSIBLE",function(){return n._66}),i.d(t,"SPLIT_BAR",function(){return n._67}),i.d(t,"HEADER_CHECK",function(){return n._68}),i.d(t,"OVERLAY",function(){return n._69}),i.d(t,"VALUE",function(){return n._70}),i.d(t,"isFile",function(){return n._71}),i.d(t,"modelChanged",function(){return n._72}),i.d(t,"initialEnd",function(){return n._73}),i.d(t,"finalizeEnd",function(){return n._74}),i.d(t,"createEnd",function(){return n._75}),i.d(t,"filterEnd",function(){return n._76}),i.d(t,"beforeDelete",function(){return n._77}),i.d(t,"pathDrag",function(){return n._78}),i.d(t,"deleteInit",function(){return n._79}),i.d(t,"deleteEnd",function(){return n._80}),i.d(t,"refreshEnd",function(){return n._81}),i.d(t,"resizeEnd",function(){return n._82}),i.d(t,"splitterResize",function(){return n._83}),i.d(t,"pathChanged",function(){return n._84}),i.d(t,"destroy",function(){return n._85}),i.d(t,"beforeRequest",function(){return n._86}),i.d(t,"upload",function(){return n._87}),i.d(t,"skipUpload",function(){return n._88}),i.d(t,"afterRequest",function(){return n._89}),i.d(t,"download",function(){return n._90}),i.d(t,"layoutRefresh",function(){return n._91}),i.d(t,"actionFailure",function(){return n._92}),i.d(t,"search",function(){return n._93}),i.d(t,"openInit",function(){return n._94}),i.d(t,"openEnd",function(){return n._95}),i.d(t,"selectionChanged",function(){return n._96}),i.d(t,"selectAllInit",function(){return n._97}),i.d(t,"clearAllInit",function(){return n._98}),i.d(t,"clearPathInit",function(){return n._99}),i.d(t,"layoutChange",function(){return n._100}),i.d(t,"sortByChange",function(){return n._101}),i.d(t,"nodeExpand",function(){return n._102}),i.d(t,"detailsInit",function(){return n._103}),i.d(t,"menuItemData",function(){return n._104}),i.d(t,"renameInit",function(){return n._105}),i.d(t,"renameEndParent",function(){return n._106}),i.d(t,"renameEnd",function(){return n._107}),i.d(t,"showPaste",function(){return n._108}),i.d(t,"hidePaste",function(){return n._109}),i.d(t,"selectedData",function(){return n._110}),i.d(t,"cutCopyInit",function(){return n._111}),i.d(t,"pasteInit",function(){return n._112}),i.d(t,"pasteEnd",function(){return n._113}),i.d(t,"cutEnd",function(){return n._114}),i.d(t,"hideLayout",function(){return n._115}),i.d(t,"updateTreeSelection",function(){return n._116}),i.d(t,"treeSelect",function(){return n._117}),i.d(t,"sortColumn",function(){return n._118}),i.d(t,"pathColumn",function(){return n._119}),i.d(t,"searchTextChange",function(){return n._120}),i.d(t,"beforeDownload",function(){return n._121}),i.d(t,"downloadInit",function(){return n._122}),i.d(t,"dropInit",function(){return n._123}),i.d(t,"dragEnd",function(){return n._124}),i.d(t,"dropPath",function(){return n._125}),i.d(t,"dragHelper",function(){return n._126}),i.d(t,"dragging",function(){return n._127}),i.d(t,"updateSelectionData",function(){return n._128}),i.d(t,"methodCall",function(){return n._129}),i.d(t,"permissionRead",function(){return n._130}),i.d(t,"permissionEdit",function(){return n._131}),i.d(t,"permissionEditContents",function(){return n._132}),i.d(t,"permissionCopy",function(){return n._133}),i.d(t,"permissionUpload",function(){return n._134}),i.d(t,"permissionDownload",function(){return n._135}),i.d(t,"FileManager",function(){return n._136}),i.d(t,"Toolbar",function(){return n._137}),i.d(t,"BreadCrumbBar",function(){return n._138}),i.d(t,"Virtualization",function(){return n._139}),i.d(t,"NavigationPane",function(){return n._140}),i.d(t,"DetailsView",function(){return n._141}),i.d(t,"LargeIconsView",function(){return n._142}),i.d(t,"createDialog",function(){return n._143}),i.d(t,"createExtDialog",function(){return n._144}),i.d(t,"createImageDialog",function(){return n._145}),i.d(t,"ContextMenu",function(){return n._146}),i.d(t,"read",function(){return n._147});i.d(t,"createFolder",function(){return n._148}),i.d(t,"filter",function(){return n._149}),i.d(t,"rename",function(){return n._150}),i.d(t,"paste",function(){return n._151}),i.d(t,"Delete",function(){return n._152}),i.d(t,"GetDetails",function(){return n._153}),i.d(t,"Search",function(){return n._154}),i.d(t,"Download",function(){return n._155}),i.d(t,"sortComparer",function(){return n._156}),i.d(t,"updatePath",function(){return n._157}),i.d(t,"getPath",function(){return n._158}),i.d(t,"getPathId",function(){return n._159}),i.d(t,"getPathNames",function(){return n._160}),i.d(t,"getParents",function(){return n._161}),i.d(t,"generatePath",function(){return n._162}),i.d(t,"removeActive",function(){return n._163}),i.d(t,"activeElement",function(){return n._164}),i.d(t,"addBlur",function(){return n._165}),i.d(t,"removeBlur",function(){return n._166}),i.d(t,"getModule",function(){return n._167}),i.d(t,"searchWordHandler",function(){return n._168}),i.d(t,"updateLayout",function(){return n._169}),i.d(t,"getTargetModule",function(){return n._170}),i.d(t,"refresh",function(){return n._171}),i.d(t,"openAction",function(){return n._172}),i.d(t,"getPathObject",function(){return n._173}),i.d(t,"copyFiles",function(){return n._174}),i.d(t,"cutFiles",function(){return n._175}),i.d(t,"fileType",function(){return n._176}),i.d(t,"getImageUrl",function(){return n._177}),i.d(t,"getFullPath",function(){return n._178}),i.d(t,"getName",function(){return n._179}),i.d(t,"getSortedData",function(){return n._180}),i.d(t,"getObject",function(){return n._181}),i.d(t,"createEmptyElement",function(){return n._182}),i.d(t,"getDirectories",function(){return n._183}),i.d(t,"setNodeId",function(){return n._184}),i.d(t,"setDateObject",function(){return n._185}),i.d(t,"getLocaleText",function(){return n._186}),i.d(t,"getCssClass",function(){return n._187}),i.d(t,"sortbyClickHandler",function(){return n._188}),i.d(t,"getSortField",function(){return n._189}),i.d(t,"setNextPath",function(){return n._190}),i.d(t,"openSearchFolder",function(){return n._191}),i.d(t,"pasteHandler",function(){return n._192}),i.d(t,"validateSubFolder",function(){return n._193}),i.d(t,"dropHandler",function(){return n._194}),i.d(t,"getParentPath",function(){return n._195}),i.d(t,"getDirectoryPath",function(){return n._196}),i.d(t,"doPasteUpdate",function(){return n._197}),i.d(t,"readDropPath",function(){return n._198}),i.d(t,"getDuplicateData",function(){return n._199}),i.d(t,"createVirtualDragElement",function(){return n._200}),i.d(t,"dragStopHandler",function(){return n._201}),i.d(t,"dragStartHandler",function(){return n._202}),i.d(t,"dragCancel",function(){return n._203}),i.d(t,"removeDropTarget",function(){return n._204}),i.d(t,"removeItemClass",function(){return n._205}),i.d(t,"scrollHandler",function(){return n._206}),i.d(t,"draggingHandler",function(){return n._207}),i.d(t,"objectToString",function(){return n._208}),i.d(t,"getItemName",function(){return n._209}),i.d(t,"updateRenamingData",function(){return n._210}),i.d(t,"doRename",function(){return n._211}),i.d(t,"doDownload",function(){return n._212}),i.d(t,"doDeleteFiles",function(){return n._213}),i.d(t,"doDownloadFiles",function(){return n._214}),i.d(t,"createDeniedDialog",function(){return n._215}),i.d(t,"getAccessClass",function(){return n._216}),i.d(t,"hasReadAccess",function(){return n._217}),i.d(t,"hasEditAccess",function(){return n._218}),i.d(t,"hasContentAccess",function(){return n._219}),i.d(t,"hasUploadAccess",function(){return n._220}),i.d(t,"hasDownloadAccess",function(){return n._221}),i.d(t,"createNewFolder",function(){return n._222}),i.d(t,"uploadItem",function(){return n._223})},function(e,t){e.exports=l},function(e,t){e.exports=d}])});