1"use strict";(self["webpackChunkmat_cloud"]=self["webpackChunkmat_cloud"]||[]).push([[4921],{54921:function(e,t,n){n.d(t,{Z:function(){return g}});var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{wrapClassName:"matbox-folder-selector-modal",visible:e.visible,footer:null,destroyOnClose:!0,width:"512px"},on:{cancel:function(t){return e.$emit("update:visible",!1)}}},[n("div",{staticClass:"title"},[e._v("éæ©ç½çç®å½")]),e._t("path",null,{selectedPath:e.selectedKeys}),n("div",{staticClass:"selector"},[n("a-tree",{attrs:{"show-icon":"",blockNode:"","load-data":e.onLoadData,"tree-data":e.data,expandedKeys:e.expandedKeys,selectedKeys:e.selectedKeys},on:{"update:expandedKeys":function(t){e.expandedKeys=t},"update:expanded-keys":function(t){e.expandedKeys=t},"update:selectedKeys":function(t){e.selectedKeys=t},"update:selected-keys":function(t){e.selectedKeys=t}}},[n("mp-icon",{attrs:{slot:"folder",name:"fs-folder"},slot:"folder"})],1)],1),e._t("accessPath"),n("div",{staticClass:"actions"},[n("div",{staticClass:"right"},[n("a-button",{on:{click:function(t){return e.$emit("update:visible",!1)}}},[e._v("åæ¶")]),n("a-button",{attrs:{type:"primary",disabled:!this.selectedKeys.length,loading:e.confirmLoading},on:{click:e.onConfirm}},[e._v(" ç¡®å® ")])],1)])],2)},i=[],a=n(68932),o=n(16198),s=(n(35666),n(9653),n(27852),n(21249),n(57327),n(41539),n(68309),n(26470)),l=n(82203),c=n(22185),d={model:{prop:"visible",event:"update:visible"},props:{visible:{type:Boolean,required:!0},confirmLoading:{type:Boolean,default:!1},boxKey:{type:String,defualt:c.XX.PERSONAL},domain:{type:Number}},data:function(){return{data:[{title:"/",key:"/",slots:{icon:"folder"}}],expandedKeys:["/"],selectedKeys:[]}},watch:{visible:function(e,t){e&&!t&&(this.expandedKeys=["/"],this.selectedKeys=[],this.getRoot())}},methods:{getRoot:function(){var e=this;return(0,o.Z)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.getDirs("/");case 2:n=t.sent,e.data.length&&e.$set(e.data[0],"children",n);case 4:case"end":return t.stop()}}),t)})))()},getDirs:function(e){var t=this;return(0,o.Z)(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,l.Z.getFiles({path:e.endsWith("/")?e:"".concat(e,"/")},{boxKey:t.boxKey,domain:t.domain});case 2:return r=n.sent,n.abrupt("return",r.infos.filter((function(e){return e.isDir})).map((function(t){return{title:t.name,key:(0,s.join)(e,t.name),slots:{icon:"folder"}}})));case 4:case"end":return n.stop()}}),n)})))()},onLoadData:function(e){var t=this;return new Promise((function(n){"/"!==e.dataRef.key?t.getDirs(e.dataRef.key).then((function(r){e.dataRef.children=r,t.data=(0,a.Z)(t.data),n()})):n()}))},onConfirm:function(){var e;this.selectedKeys.length&&this.$emit("confirm",null===(e=this.selectedKeys)||void 0===e?void 0:e[0])}}},u=d,f=n(1001),h=(0,f.Z)(u,r,i,!1,null,null,null),g=h.exports},26470:function(e){function t(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,a=-1,o=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(a===s-1||1===o);else if(a!==s-1&&2===o){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):(r=r.slice(0,l),i=r.length-1-r.lastIndexOf("/")),a=s,o=0;continue}}else if(2===r.length||1===r.length){r="",i=0,a=s,o=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(a+1,s):r=e.slice(a+1,s),i=s-a-1;a=s,o=0}else 46===n&&-1!==o?++o:o=-1}return r}function r(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}var i={resolve:function(){for(var e,r="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o;a>=0?o=arguments[a]:(void 0===e&&(e=process.cwd()),o=e),t(o),0!==o.length&&(r=o+"/"+r,i=47===o.charCodeAt(0))}return r=n(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return e=n(e,!r),0!==e.length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var r=arguments[n];t(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":i.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if(e=i.resolve(e),n=i.resolve(n),e===n)return"";for(var r=1;r<e.length;++r)if(47!==e.charCodeAt(r))break;for(var a=e.length,o=a-r,s=1;s<n.length;++s)if(47!==n.charCodeAt(s))break;for(var l=n.length,c=l-s,d=o<c?o:c,u=-1,f=0;f<=d;++f){if(f===d){if(c>d){if(47===n.charCodeAt(s+f))return n.slice(s+f+1);if(0===f)return n.slice(s+f)}else o>d&&(47===e.charCodeAt(r+f)?u=f:0===f&&(u=0));break}var h=e.charCodeAt(r+f),g=n.charCodeAt(s+f);if(h!==g)break;
vendor: 2,174 bytes, lines 1-2
147===h&&(u=f)}var v="";for(f=r+u+1;f<=a;++f)f!==a&&47!==e.charCodeAt(f)||(0===v.length?v+="..":v+="/..");return v.length>0?v+n.slice(s+u):(s+=u,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,a=!0,o=e.length-1;o>=1;--o)if(n=e.charCodeAt(o),47===n){if(!a){i=o;break}}else a=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!==typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,a=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!o){i=r+1;break}}else-1===l&&(o=!1,l=r+1),s>=0&&(c===n.charCodeAt(s)?-1===--s&&(a=r):(s=-1,a=l))}return i===a?a=l:-1===a&&(a=e.length),e.slice(i,a)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!o){i=r+1;break}}else-1===a&&(o=!1,a=r+1);return-1===a?"":e.slice(i,a)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47!==l)-1===i&&(a=!1,i=s+1),46===l?-1===n?n=s:1!==o&&(o=1):-1!==n&&(o=-1);else if(!a){r=s+1;break}}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!==typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return r("/",e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),a=47===i;a?(n.root="/",r=1):r=0;for(var o=-1,s=0,l=-1,c=!0,d=e.length-1,u=0;d>=r;--d)if(i=e.charCodeAt(d),47!==i)-1===l&&(c=!1,l=d+1),46===i?-1===o?o=d:1!==u&&(u=1):-1!==o&&(u=-1);else if(!c){s=d+1;break}return-1===o||-1===l||0===u||1===u&&o===l-1&&o===s+1?-1!==l&&(n.base=n.name=0===s&&a?e.slice(1,l):e.slice(s,l)):(0===s&&a?(n.name=e.slice(1,o),n.base=e.slice(1,l)):(n.name=e.slice(s,o),n.base=e.slice(s,l)),n.ext=e.slice(o,l)),s>0?n.dir=e.slice(0,s-1):a&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i}}]); 2//# sourceMappingURL=4921-legacy.2d133f9a.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.