PluginProbe
WPIDE – File Manager & Code Editor / 3.5.9
WPIDE – File Manager & Code Editor v3.5.9
3.5.9 3.5.8 3.5.7 2.0.14 2.0.15 2.0.16 2.0.2 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1 2.2 2.3 2.3.1 2.3.2 2.4.0 2.5 2.6 3.0 3.1 3.2 3.3 All 55 releases
wpide / dist / js / chunks / FileManager / FileManager-SortDropdown.js

FileManager-SortDropdown.js in WPIDE – File Manager & Code Editor 3.5.9, at dist/js/chunks/FileManager/FileManager-SortDropdown.js

1 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 "use strict";(self.webpackChunkwpide=self.webpackChunkwpide||[]).push([[404],{36565(t,r,e){e.r(r),e.d(r,{default:()=>o});e(26910),e(50113),e(18111),e(20116),e(26099);const n={name:"SortDropdown",props:["label","sortIcon","sortBy","sort"],data:function(){return{options:[{value:"name",label:"Name"},{value:"size",label:"Size"},{value:"time",label:"Updated"}]}},computed:{currentSortLabel:function(){var t=this,r=this.options.find(function(r){return r.value===t.sort.param});return this.label?r?this.label+" "+r.label.toLowerCase():"":r?r.label:""}}};const o=(0,e(81656).A)(n,function(){var t=this,r=t._self._c;return r("b-nav-item-dropdown",{attrs:{"toggle-class":"nk-switch-icon w-auto","menu-class":"link-list-plain no-bdr",right:""},scopedSlots:t._u([{key:"button-content",fn:function(){return[r("span",{staticClass:"p-0",domProps:{textContent:t._s(t.currentSortLabel)}}),r("em",{staticClass:"ni",class:t.sortIcon(t.sort.param)})]},proxy:!0},{key:"default",fn:function(){return[t._l(t.options,function(e){return[r("b-dropdown-item",{key:e.value,on:{click:function(r){return r.preventDefault(),t.sortBy(e.value)}}},[r("em",{staticClass:"icon ni",class:t.sortIcon(e.value)}),r("span",[t._v(t._s(e.label))])])]})]},proxy:!0}])})},[],!1,null,null,null).exports},13709(t,r,e){var n=e(82839).match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]},13763(t,r,e){var n=e(82839);t.exports=/MSIE|Trident/.test(n)},3607(t,r,e){var n=e(82839).match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]},26910(t,r,e){var n=e(46518),o=e(79504),a=e(79306),s=e(48981),i=e(26198),u=e(84606),l=e(655),c=e(79039),f=e(74488),p=e(34598),d=e(13709),v=e(13763),h=e(39519),b=e(3607),m=[],k=o(m.sort),w=o(m.push),C=c(function(){m.sort(void 0)}),x=c(function(){m.sort(null)}),y=p("sort"),g=!c(function(){if(h)return h<70;if(!(d&&d>3)){if(v)return!0;if(b)return b<603;var t,r,e,n,o="";for(t=65;t<76;t++){switch(r=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:e=3;break;case 68:case 71:e=4;break;default:e=2}for(n=0;n<47;n++)m.push({k:r+n,v:e})}for(m.sort(function(t,r){return r.v-t.v}),n=0;n<m.length;n++)r=m[n].k.charAt(0),o.charAt(o.length-1)!==r&&(o+=r);return"DGBEFHACIJK"!==o}});n({target:"Array",proto:!0,forced:C||!x||!y||!g},{sort:function(t){void 0!==t&&a(t);var r=s(this);if(g)return void 0===t?k(r):k(r,t);var e,n,o=[],c=i(r);for(n=0;n<c;n++)n in r&&w(o,r[n]);for(f(o,function(t){return function(r,e){if(void 0===e)return-1;if(void 0===r)return 1;if(void 0!==t)return+t(r,e)||0;var n=l(r),o=l(e);return n===o?0:n>o?1:-1}}(t)),e=i(o),n=0;n<e;)r[n]=o[n++];for(;n<c;)u(r,n++);return r}})}}]);